@baloise/ds-core 16.1.0 → 16.2.0-nightly.20240517
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/all.d.ts +2 -0
- package/components/all.js +3 -0
- package/components/bal-app.js +1 -85
- package/components/bal-app2.js +87 -0
- package/components/bal-date.js +3 -1
- package/components/bal-doc-app.d.ts +11 -0
- package/components/bal-doc-app.js +260 -0
- package/components/bal-footer.js +7 -2
- package/components/bal-input-date2.js +15 -3
- package/components/index.js +6 -289
- package/components/initialize.js +288 -0
- package/components/mask-util.js +3 -0
- package/components/scroll.js +1 -1
- package/components/tokens.esm.js +1 -1
- package/dist/baloise-design-system/baloise-design-system.esm.js +1 -1
- package/dist/baloise-design-system/baloise-design-system.js +1 -1
- package/dist/baloise-design-system/index.esm.js +1 -1
- package/dist/baloise-design-system/{p-14ae0709.system.js → p-0068ac6b.system.js} +1 -1
- package/dist/baloise-design-system/{p-d16557d133.system.entry.js → p-0219755155.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-bcebf41b74.entry.js → p-05cb3c5fba.entry.js} +1 -1
- package/dist/baloise-design-system/{p-135c5759c5.entry.js → p-078213e100.entry.js} +1 -1
- package/dist/baloise-design-system/{p-60e94f8144.entry.js → p-1447540369.entry.js} +1 -1
- package/dist/baloise-design-system/p-1509eaa7.system.js +1 -1
- package/dist/baloise-design-system/{p-8c209ac52b.system.entry.js → p-15faa06205.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-16b1404ab3.system.entry.js +1 -0
- package/dist/baloise-design-system/p-1876e0cbba.entry.js +1 -0
- package/dist/baloise-design-system/p-1a158488.js +1 -0
- package/dist/baloise-design-system/{p-d7a758b3.js → p-1ab43b93.js} +1 -1
- package/dist/baloise-design-system/{p-f233fe25.system.js → p-1d351673.system.js} +1 -1
- package/dist/baloise-design-system/{p-f1b95d78af.system.entry.js → p-1e9188212a.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-20fa708430.entry.js +1 -0
- package/dist/baloise-design-system/{p-cd8e72d87f.system.entry.js → p-2a891b5a2d.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-317cee9b56.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-9dc5cb62e3.system.entry.js → p-3586f88589.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-360068a4.system.js +1 -0
- package/dist/baloise-design-system/{p-b8d99064.js → p-37ec5ebf.js} +1 -1
- package/dist/baloise-design-system/{p-a8022ee701.entry.js → p-3b577dd17d.entry.js} +1 -1
- package/dist/baloise-design-system/{p-9a0640d065.entry.js → p-3d99621c0b.entry.js} +1 -1
- package/dist/baloise-design-system/{p-3128128969.system.entry.js → p-4381347e17.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-45e0c0783b.entry.js +1 -0
- package/dist/baloise-design-system/p-4afba8511a.system.entry.js +1 -0
- package/dist/baloise-design-system/p-51c0348938.entry.js +1 -0
- package/dist/baloise-design-system/p-54f81c32.js +1 -1
- package/dist/baloise-design-system/p-5f26e92f.system.js +1 -0
- package/dist/baloise-design-system/{p-f0b43f1452.system.entry.js → p-64ad8acd56.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-bb3914c87a.system.entry.js → p-660804d5ed.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-6648acba05.entry.js +1 -0
- package/dist/baloise-design-system/{p-4aba4c66ee.entry.js → p-6c7fc37ae2.entry.js} +1 -1
- package/dist/baloise-design-system/{p-a97cbb7dda.entry.js → p-6ced5e69d7.entry.js} +1 -1
- package/dist/baloise-design-system/p-6d1b6215.js +1 -0
- package/dist/baloise-design-system/{p-58fc8247.js → p-6e0f125e.js} +1 -1
- package/dist/baloise-design-system/p-6f4a362824.system.entry.js +1 -0
- package/dist/baloise-design-system/p-7291766c.system.js +1 -0
- package/dist/baloise-design-system/{p-f8974d743d.entry.js → p-8c8f853fee.entry.js} +1 -1
- package/dist/baloise-design-system/{p-8fe94b9e21.entry.js → p-919f9841b2.entry.js} +1 -1
- package/dist/baloise-design-system/p-ba14aa7026.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-25da216e4f.entry.js → p-bb54caf001.entry.js} +1 -1
- package/dist/baloise-design-system/p-bf89ed68.system.js +1 -0
- package/dist/baloise-design-system/{p-0fed7a5f26.system.entry.js → p-c548564fc4.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-cef24f8c62.entry.js +1 -0
- package/dist/baloise-design-system/{p-74f4b9818b.system.entry.js → p-d0bd469f0f.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-1facd2a3f2.entry.js → p-dc45a57023.entry.js} +1 -1
- package/dist/baloise-design-system/{p-25e0d82e89.system.entry.js → p-de0c09ae72.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-10b8686d91.entry.js → p-e474fc082c.entry.js} +1 -1
- package/dist/baloise-design-system/p-e8ffddeb.js +1 -0
- package/dist/baloise-design-system/{p-cc61fac8.system.js → p-eedffff3.system.js} +1 -1
- package/dist/baloise-design-system/{p-ddf9b2a289.entry.js → p-f01845d1da.entry.js} +1 -1
- package/dist/baloise-design-system/{p-013b4c72.system.js → p-f959646a.system.js} +1 -1
- package/dist/baloise-design-system/{p-62ab1f0ae2.system.entry.js → p-fadf5687e1.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-d919753ed0.system.entry.js → p-fb9c3f86d6.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-62b792a34b.system.entry.js → p-fc9d1e8318.system.entry.js} +1 -1
- package/dist/cjs/app-globals-5fd73c0c.js +7 -0
- package/dist/cjs/bal-carousel_2.cjs.entry.js +3 -3
- package/dist/cjs/bal-date-calendar_2.cjs.entry.js +14 -3
- package/dist/cjs/bal-date.cjs.entry.js +2 -1
- package/dist/cjs/bal-datepicker.cjs.entry.js +3 -3
- package/dist/cjs/bal-doc-app.cjs.entry.js +231 -0
- package/dist/cjs/bal-footer.cjs.entry.js +7 -2
- package/dist/cjs/bal-hint_3.cjs.entry.js +4 -4
- package/dist/cjs/bal-list_8.cjs.entry.js +3 -3
- package/dist/cjs/bal-logo.cjs.entry.js +3 -3
- package/dist/cjs/bal-modal_3.cjs.entry.js +1 -1
- package/dist/cjs/bal-nav_8.cjs.entry.js +4 -4
- package/dist/cjs/bal-navbar_5.cjs.entry.js +4 -4
- package/dist/cjs/{bal-snackbar.cjs.entry.js → bal-notices_3.cjs.entry.js} +67 -0
- package/dist/cjs/bal-pagination.cjs.entry.js +3 -3
- package/dist/cjs/bal-popover_2.cjs.entry.js +3 -3
- package/dist/cjs/bal-progress-bar.cjs.entry.js +3 -3
- package/dist/cjs/bal-shape.cjs.entry.js +1 -1
- package/dist/cjs/bal-steps.cjs.entry.js +3 -3
- package/dist/cjs/bal-tab-item_2.cjs.entry.js +3 -3
- package/dist/cjs/baloise-design-system.cjs.js +3 -2
- package/dist/cjs/{breakpoints.decorator-47fd6060.js → breakpoints.decorator-212f98f2.js} +1 -1
- package/dist/cjs/{breakpoints.subject-66093c8f.js → breakpoints.subject-332028d6.js} +1 -1
- package/dist/cjs/{app-globals-ae3a8623.js → global-2562a984.js} +2 -4
- package/dist/cjs/index.cjs.js +5 -3
- package/dist/cjs/initialize-2a19d091.js +1 -1
- package/dist/cjs/loader.cjs.js +3 -2
- package/dist/cjs/mask-util-19c28b4a.js +5 -0
- package/dist/cjs/{scroll-b839ffe1.js → scroll-5d6ac91d.js} +1 -1
- package/dist/cjs/{tokens.esm-bb0ef2db.js → tokens.esm-73274252.js} +1 -1
- package/dist/collection/collection-manifest.json +9 -16
- package/dist/collection/components/bal-date/bal-date.js +21 -2
- package/dist/collection/components/bal-footer/bal-footer.css +1 -1
- package/dist/collection/components/bal-footer/bal-footer.js +6 -1
- package/dist/collection/components/bal-input/bal-input-date/bal-input-date.js +19 -0
- package/dist/collection/components/bal-select/bal-select.js +1 -1
- package/dist/collection/components/docs/bal-doc-app/bal-doc-app.css +1 -0
- package/dist/collection/components/docs/bal-doc-app/bal-doc-app.js +229 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/utils/constants/version.constant.js +1 -1
- package/dist/collection/utils/mask/__test__/mask-component.mock.js +1 -0
- package/dist/collection/utils/mask/context/mask-context.js +1 -0
- package/dist/collection/utils/mask/mask-util.js +1 -0
- package/dist/collection/utils/mask/mask.js +2 -2
- package/dist/collection/utils/mask/types/mask-date.js +10 -1
- package/dist/collection/utils/scroll.js +1 -1
- package/dist/esm/app-globals-970bab17.js +5 -0
- package/dist/esm/bal-carousel_2.entry.js +3 -3
- package/dist/esm/bal-date-calendar_2.entry.js +14 -3
- package/dist/esm/bal-date.entry.js +2 -1
- package/dist/esm/bal-datepicker.entry.js +3 -3
- package/dist/esm/bal-doc-app.entry.js +227 -0
- package/dist/esm/bal-footer.entry.js +7 -2
- package/dist/esm/bal-hint_3.entry.js +4 -4
- package/dist/esm/bal-list_8.entry.js +3 -3
- package/dist/esm/bal-logo.entry.js +3 -3
- package/dist/esm/bal-modal_3.entry.js +1 -1
- package/dist/esm/bal-nav_8.entry.js +4 -4
- package/dist/esm/bal-navbar_5.entry.js +4 -4
- package/dist/esm/{bal-snackbar.entry.js → bal-notices_3.entry.js} +67 -2
- package/dist/esm/bal-pagination.entry.js +3 -3
- package/dist/esm/bal-popover_2.entry.js +3 -3
- package/dist/esm/bal-progress-bar.entry.js +3 -3
- package/dist/esm/bal-shape.entry.js +1 -1
- package/dist/esm/bal-steps.entry.js +3 -3
- package/dist/esm/bal-tab-item_2.entry.js +3 -3
- package/dist/esm/baloise-design-system.js +3 -2
- package/dist/esm/{breakpoints.decorator-021fbaf0.js → breakpoints.decorator-ba41ffe2.js} +1 -1
- package/dist/esm/{breakpoints.subject-ef464f89.js → breakpoints.subject-88d66fc6.js} +1 -1
- package/dist/esm/{app-globals-b0dd0fc4.js → global-63f4bcec.js} +2 -4
- package/dist/esm/index.js +5 -4
- package/dist/esm/initialize-e216cfe4.js +1 -1
- package/dist/esm/loader.js +3 -2
- package/dist/esm/mask-util-71edc2b8.js +3 -0
- package/dist/esm/{scroll-972c7ce5.js → scroll-e341d95b.js} +1 -1
- package/dist/esm/{tokens.esm-aab9bd61.js → tokens.esm-9056967e.js} +1 -1
- package/dist/esm-es5/app-globals-970bab17.js +1 -0
- package/dist/esm-es5/bal-carousel_2.entry.js +1 -1
- package/dist/esm-es5/bal-date-calendar_2.entry.js +1 -1
- package/dist/esm-es5/bal-date.entry.js +1 -1
- package/dist/esm-es5/bal-datepicker.entry.js +1 -1
- package/dist/esm-es5/bal-doc-app.entry.js +1 -0
- package/dist/esm-es5/bal-footer.entry.js +1 -1
- package/dist/esm-es5/bal-hint_3.entry.js +1 -1
- package/dist/esm-es5/bal-list_8.entry.js +1 -1
- package/dist/esm-es5/bal-logo.entry.js +1 -1
- package/dist/esm-es5/bal-modal_3.entry.js +1 -1
- package/dist/esm-es5/bal-nav_8.entry.js +1 -1
- package/dist/esm-es5/bal-navbar_5.entry.js +1 -1
- package/dist/esm-es5/bal-notices_3.entry.js +1 -0
- package/dist/esm-es5/bal-pagination.entry.js +1 -1
- package/dist/esm-es5/bal-popover_2.entry.js +1 -1
- package/dist/esm-es5/bal-progress-bar.entry.js +1 -1
- package/dist/esm-es5/bal-shape.entry.js +1 -1
- package/dist/esm-es5/bal-steps.entry.js +1 -1
- package/dist/esm-es5/bal-tab-item_2.entry.js +1 -1
- package/dist/esm-es5/baloise-design-system.js +1 -1
- package/dist/esm-es5/breakpoints.decorator-ba41ffe2.js +1 -0
- package/dist/esm-es5/{breakpoints.subject-ef464f89.js → breakpoints.subject-88d66fc6.js} +1 -1
- package/dist/esm-es5/global-63f4bcec.js +1 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/initialize-e216cfe4.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mask-util-71edc2b8.js +1 -0
- package/dist/esm-es5/{scroll-972c7ce5.js → scroll-e341d95b.js} +1 -1
- package/dist/html.html-data.json +10 -2
- package/dist/types/components/bal-date/bal-date.d.ts +5 -1
- package/dist/types/components/bal-footer/bal-footer.d.ts +1 -0
- package/dist/types/components/bal-input/bal-input-date/bal-input-date.d.ts +4 -0
- package/dist/types/components/bal-select/bal-select.d.ts +1 -1
- package/dist/types/components/docs/bal-doc-app/bal-doc-app.d.ts +21 -0
- package/dist/types/components.d.ts +57 -4
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/icons/src/index.d.ts +81 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/utils/mask/__test__/mask-component.mock.d.ts +1 -0
- package/dist/types/utils/mask/component/mask-component-interfaces.d.ts +1 -0
- package/dist/types/utils/mask/context/mask-context.d.ts +2 -0
- package/dist/types/utils/mask/mask-util.d.ts +1 -0
- package/dist/types/utils/mask/mask.d.ts +3 -1
- package/dist/types/utils/mask/types/mask-date.d.ts +3 -1
- package/package.json +7 -7
- package/dist/baloise-design-system/p-06e9a468fc.system.entry.js +0 -1
- package/dist/baloise-design-system/p-18e2e391e0.system.entry.js +0 -1
- package/dist/baloise-design-system/p-19556c290a.entry.js +0 -1
- package/dist/baloise-design-system/p-5951d6c64b.system.entry.js +0 -1
- package/dist/baloise-design-system/p-5b571a9fb1.entry.js +0 -1
- package/dist/baloise-design-system/p-7c42a363f3.entry.js +0 -1
- package/dist/baloise-design-system/p-acb5cea0.system.js +0 -1
- package/dist/baloise-design-system/p-b9f197815f.entry.js +0 -1
- package/dist/baloise-design-system/p-bcca1ed3.system.js +0 -1
- package/dist/baloise-design-system/p-c0e6e5565c.system.entry.js +0 -1
- package/dist/baloise-design-system/p-d02efb178c.entry.js +0 -1
- package/dist/baloise-design-system/p-dc05800595.system.entry.js +0 -1
- package/dist/baloise-design-system/p-e4de708de1.system.entry.js +0 -1
- package/dist/baloise-design-system/p-e78a6409.js +0 -1
- package/dist/baloise-design-system/p-f12abda2db.entry.js +0 -1
- package/dist/baloise-design-system/p-ffc0bea891.entry.js +0 -1
- package/dist/cjs/bal-notices.cjs.entry.js +0 -25
- package/dist/cjs/bal-toast.cjs.entry.js +0 -54
- package/dist/esm/bal-notices.entry.js +0 -21
- package/dist/esm/bal-toast.entry.js +0 -50
- package/dist/esm-es5/app-globals-b0dd0fc4.js +0 -1
- package/dist/esm-es5/bal-notices.entry.js +0 -1
- package/dist/esm-es5/bal-snackbar.entry.js +0 -1
- package/dist/esm-es5/bal-toast.entry.js +0 -1
- package/dist/esm-es5/breakpoints.decorator-021fbaf0.js +0 -1
- /package/dist/baloise-design-system/{p-7b9c33ba.js → p-129e7058.js} +0 -0
- /package/dist/baloise-design-system/{p-03c136e2.system.js → p-dbd154e8.system.js} +0 -0
- /package/dist/esm-es5/{tokens.esm-aab9bd61.js → tokens.esm-9056967e.js} +0 -0
package/components/all.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ import { BalDateCalendar, defineCustomElement as defineBalDateCalendar } from '.
|
|
|
28
28
|
import { BalDateCalendarCell, defineCustomElement as defineBalDateCalendarCell } from './bal-date-calendar-cell'
|
|
29
29
|
import { BalDatepicker, defineCustomElement as defineBalDatepicker } from './bal-datepicker'
|
|
30
30
|
import { BalDivider, defineCustomElement as defineBalDivider } from './bal-divider'
|
|
31
|
+
import { BalDocApp, defineCustomElement as defineBalDocApp } from './bal-doc-app'
|
|
31
32
|
import { BalDropdown, defineCustomElement as defineBalDropdown } from './bal-dropdown'
|
|
32
33
|
import { BalField, defineCustomElement as defineBalField } from './bal-field'
|
|
33
34
|
import { BalFieldControl, defineCustomElement as defineBalFieldControl } from './bal-field-control'
|
|
@@ -144,6 +145,7 @@ export { BalDateCalendar, defineBalDateCalendar }
|
|
|
144
145
|
export { BalDateCalendarCell, defineBalDateCalendarCell }
|
|
145
146
|
export { BalDatepicker, defineBalDatepicker }
|
|
146
147
|
export { BalDivider, defineBalDivider }
|
|
148
|
+
export { BalDocApp, defineBalDocApp }
|
|
147
149
|
export { BalDropdown, defineBalDropdown }
|
|
148
150
|
export { BalField, defineBalField }
|
|
149
151
|
export { BalFieldControl, defineBalFieldControl }
|
package/components/all.js
CHANGED
|
@@ -28,6 +28,7 @@ import { BalDateCalendar, defineCustomElement as defineBalDateCalendar } from '.
|
|
|
28
28
|
import { BalDateCalendarCell, defineCustomElement as defineBalDateCalendarCell } from './bal-date-calendar-cell'
|
|
29
29
|
import { BalDatepicker, defineCustomElement as defineBalDatepicker } from './bal-datepicker'
|
|
30
30
|
import { BalDivider, defineCustomElement as defineBalDivider } from './bal-divider'
|
|
31
|
+
import { BalDocApp, defineCustomElement as defineBalDocApp } from './bal-doc-app'
|
|
31
32
|
import { BalDropdown, defineCustomElement as defineBalDropdown } from './bal-dropdown'
|
|
32
33
|
import { BalField, defineCustomElement as defineBalField } from './bal-field'
|
|
33
34
|
import { BalFieldControl, defineCustomElement as defineBalFieldControl } from './bal-field-control'
|
|
@@ -144,6 +145,7 @@ export { BalDateCalendar, defineBalDateCalendar }
|
|
|
144
145
|
export { BalDateCalendarCell, defineBalDateCalendarCell }
|
|
145
146
|
export { BalDatepicker, defineBalDatepicker }
|
|
146
147
|
export { BalDivider, defineBalDivider }
|
|
148
|
+
export { BalDocApp, defineBalDocApp }
|
|
147
149
|
export { BalDropdown, defineBalDropdown }
|
|
148
150
|
export { BalField, defineBalField }
|
|
149
151
|
export { BalFieldControl, defineBalFieldControl }
|
|
@@ -261,6 +263,7 @@ export const defineAllComponents = () => {
|
|
|
261
263
|
defineBalDateCalendarCell()
|
|
262
264
|
defineBalDatepicker()
|
|
263
265
|
defineBalDivider()
|
|
266
|
+
defineBalDocApp()
|
|
264
267
|
defineBalDropdown()
|
|
265
268
|
defineBalField()
|
|
266
269
|
defineBalFieldControl()
|
package/components/bal-app.js
CHANGED
|
@@ -1,88 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _ as __decorate, a as __metadata } from './tslib.es6.js';
|
|
3
|
-
import { b as balBrowser } from './browser.js';
|
|
4
|
-
import { b as balDevice } from './device.js';
|
|
5
|
-
import { h as debounce, k as rIC } from './helpers.js';
|
|
6
|
-
import { L as Logger } from './log.js';
|
|
7
|
-
import { s as startFocusVisible } from './focus-visible.js';
|
|
8
|
-
import { b as updateBalAnimated } from './config.utils.js';
|
|
9
|
-
|
|
10
|
-
const balAppCss = ":root{--bal-app-height:100%}.bal-app{position:relative;display:block}";
|
|
11
|
-
const BalAppStyle0 = balAppCss;
|
|
12
|
-
|
|
13
|
-
const App = /*@__PURE__*/ proxyCustomElement(class App extends HTMLElement {
|
|
14
|
-
constructor() {
|
|
15
|
-
super();
|
|
16
|
-
this.__registerHost();
|
|
17
|
-
this.debouncedNotify = debounce(() => this.notifyResize(), 100);
|
|
18
|
-
this.notifyResize = async () => {
|
|
19
|
-
if (balBrowser.hasDocument && balBrowser.hasWindow) {
|
|
20
|
-
const doc = document.documentElement;
|
|
21
|
-
doc.style.setProperty('--bal-app-height', `${window.innerHeight}px`);
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
this.animated = true;
|
|
25
|
-
this.ready = false;
|
|
26
|
-
}
|
|
27
|
-
createLogger(log) {
|
|
28
|
-
this.log = log;
|
|
29
|
-
}
|
|
30
|
-
connectedCallback() {
|
|
31
|
-
updateBalAnimated(this.animated);
|
|
32
|
-
if (balBrowser.hasWindow) {
|
|
33
|
-
window.addEventListener('resize', this.debouncedNotify);
|
|
34
|
-
this.debouncedNotify();
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
componentDidLoad() {
|
|
38
|
-
rIC(async () => {
|
|
39
|
-
this.ready = true;
|
|
40
|
-
startFocusVisible();
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
disconnectedCallback() {
|
|
44
|
-
if (balBrowser.hasWindow) {
|
|
45
|
-
window.removeEventListener('resize', this.debouncedNotify);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
async setFocus(elements) {
|
|
49
|
-
if (this.focusVisible) {
|
|
50
|
-
this.focusVisible.setFocus(elements);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
render() {
|
|
54
|
-
return (h(Host, { class: {
|
|
55
|
-
'bal-app': true,
|
|
56
|
-
'bal-app--safari': balBrowser.isSafari,
|
|
57
|
-
'bal-app--touch': balDevice.hasTouchScreen,
|
|
58
|
-
} }, h("slot", null)));
|
|
59
|
-
}
|
|
60
|
-
get el() { return this; }
|
|
61
|
-
static get style() { return BalAppStyle0; }
|
|
62
|
-
}, [4, "bal-app", {
|
|
63
|
-
"animated": [516],
|
|
64
|
-
"ready": [1540],
|
|
65
|
-
"setFocus": [64]
|
|
66
|
-
}]);
|
|
67
|
-
__decorate([
|
|
68
|
-
Logger('bal-app'),
|
|
69
|
-
__metadata("design:type", Function),
|
|
70
|
-
__metadata("design:paramtypes", [Function]),
|
|
71
|
-
__metadata("design:returntype", void 0)
|
|
72
|
-
], App.prototype, "createLogger", null);
|
|
73
|
-
function defineCustomElement$1() {
|
|
74
|
-
if (typeof customElements === "undefined") {
|
|
75
|
-
return;
|
|
76
|
-
}
|
|
77
|
-
const components = ["bal-app"];
|
|
78
|
-
components.forEach(tagName => { switch (tagName) {
|
|
79
|
-
case "bal-app":
|
|
80
|
-
if (!customElements.get(tagName)) {
|
|
81
|
-
customElements.define(tagName, App);
|
|
82
|
-
}
|
|
83
|
-
break;
|
|
84
|
-
} });
|
|
85
|
-
}
|
|
1
|
+
import { A as App, d as defineCustomElement$1 } from './bal-app2.js';
|
|
86
2
|
|
|
87
3
|
const BalApp = App;
|
|
88
4
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { _ as __decorate, a as __metadata } from './tslib.es6.js';
|
|
3
|
+
import { b as balBrowser } from './browser.js';
|
|
4
|
+
import { b as balDevice } from './device.js';
|
|
5
|
+
import { h as debounce, k as rIC } from './helpers.js';
|
|
6
|
+
import { L as Logger } from './log.js';
|
|
7
|
+
import { s as startFocusVisible } from './focus-visible.js';
|
|
8
|
+
import { b as updateBalAnimated } from './config.utils.js';
|
|
9
|
+
|
|
10
|
+
const balAppCss = ":root{--bal-app-height:100%}.bal-app{position:relative;display:block}";
|
|
11
|
+
const BalAppStyle0 = balAppCss;
|
|
12
|
+
|
|
13
|
+
const App = /*@__PURE__*/ proxyCustomElement(class App extends HTMLElement {
|
|
14
|
+
constructor() {
|
|
15
|
+
super();
|
|
16
|
+
this.__registerHost();
|
|
17
|
+
this.debouncedNotify = debounce(() => this.notifyResize(), 100);
|
|
18
|
+
this.notifyResize = async () => {
|
|
19
|
+
if (balBrowser.hasDocument && balBrowser.hasWindow) {
|
|
20
|
+
const doc = document.documentElement;
|
|
21
|
+
doc.style.setProperty('--bal-app-height', `${window.innerHeight}px`);
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
this.animated = true;
|
|
25
|
+
this.ready = false;
|
|
26
|
+
}
|
|
27
|
+
createLogger(log) {
|
|
28
|
+
this.log = log;
|
|
29
|
+
}
|
|
30
|
+
connectedCallback() {
|
|
31
|
+
updateBalAnimated(this.animated);
|
|
32
|
+
if (balBrowser.hasWindow) {
|
|
33
|
+
window.addEventListener('resize', this.debouncedNotify);
|
|
34
|
+
this.debouncedNotify();
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
componentDidLoad() {
|
|
38
|
+
rIC(async () => {
|
|
39
|
+
this.ready = true;
|
|
40
|
+
startFocusVisible();
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
disconnectedCallback() {
|
|
44
|
+
if (balBrowser.hasWindow) {
|
|
45
|
+
window.removeEventListener('resize', this.debouncedNotify);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
async setFocus(elements) {
|
|
49
|
+
if (this.focusVisible) {
|
|
50
|
+
this.focusVisible.setFocus(elements);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
render() {
|
|
54
|
+
return (h(Host, { class: {
|
|
55
|
+
'bal-app': true,
|
|
56
|
+
'bal-app--safari': balBrowser.isSafari,
|
|
57
|
+
'bal-app--touch': balDevice.hasTouchScreen,
|
|
58
|
+
} }, h("slot", null)));
|
|
59
|
+
}
|
|
60
|
+
get el() { return this; }
|
|
61
|
+
static get style() { return BalAppStyle0; }
|
|
62
|
+
}, [4, "bal-app", {
|
|
63
|
+
"animated": [516],
|
|
64
|
+
"ready": [1540],
|
|
65
|
+
"setFocus": [64]
|
|
66
|
+
}]);
|
|
67
|
+
__decorate([
|
|
68
|
+
Logger('bal-app'),
|
|
69
|
+
__metadata("design:type", Function),
|
|
70
|
+
__metadata("design:paramtypes", [Function]),
|
|
71
|
+
__metadata("design:returntype", void 0)
|
|
72
|
+
], App.prototype, "createLogger", null);
|
|
73
|
+
function defineCustomElement() {
|
|
74
|
+
if (typeof customElements === "undefined") {
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
const components = ["bal-app"];
|
|
78
|
+
components.forEach(tagName => { switch (tagName) {
|
|
79
|
+
case "bal-app":
|
|
80
|
+
if (!customElements.get(tagName)) {
|
|
81
|
+
customElements.define(tagName, App);
|
|
82
|
+
}
|
|
83
|
+
break;
|
|
84
|
+
} });
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export { App as A, defineCustomElement as d };
|
package/components/bal-date.js
CHANGED
|
@@ -114,6 +114,7 @@ const Date = /*@__PURE__*/ proxyCustomElement(class Date extends HTMLElement {
|
|
|
114
114
|
this.maxYearProp = undefined;
|
|
115
115
|
this.defaultDate = undefined;
|
|
116
116
|
this.allowedDates = undefined;
|
|
117
|
+
this.allowInvalidValue = false;
|
|
117
118
|
this.debounce = 0;
|
|
118
119
|
this.autoInvalidOff = false;
|
|
119
120
|
}
|
|
@@ -285,7 +286,7 @@ const Date = /*@__PURE__*/ proxyCustomElement(class Date extends HTMLElement {
|
|
|
285
286
|
const block = BEM.block('date');
|
|
286
287
|
const blockIcon = block.element('icon');
|
|
287
288
|
const blockPopup = block.element('popup');
|
|
288
|
-
return (h(Host, { id: this.inputId, class: Object.assign({}, block.class()) }, h("bal-input-group", { invalid: this.invalid, readonly: this.readonly, disabled: this.disabled, ref: el => (this.referenceEl = el) }, h("bal-input-date", Object.assign({ name: this.name, required: this.required, placeholder: this.placeholder, value: this.value, min: this.min, max: this.max, invalid: this.invalid, readonly: this.readonly, disabled: this.disabled, onClick: this.onInputClick, onBalInput: this.onInputInput, onBalChange: this.onInputChange, onBalFocus: this.onInputFocus, onBalBlur: this.onInputBlur, onBalKeyPress: this.onKeyPress, ref: el => (this.inputEl = el) }, this.inheritedAttributes)), !this.freeSolo ? (h("bal-icon", { name: "date", role: "button", tabindex: -1, class: Object.assign(Object.assign({}, blockIcon.class()), blockIcon.modifier('clickable').class(!this.disabled && !this.readonly)), "is-right": true, color: this.disabled || this.readonly ? 'grey' : this.invalid ? 'danger' : 'primary', onClick: this.onIconClick, "aria-label": i18nBalDate[this.language].toggleDatepicker, "aria-haspopup": "true", "aria-expanded": this.isExpanded ? 'true' : 'false' })) : ('')), h("div", { role: "dialog", class: Object.assign(Object.assign({}, blockPopup.class()), blockPopup.modifier('visible').class(this.isExpanded)), ref: el => (this.floatingEl = el), "aria-hidden": `${this.isExpanded !== true}`, "aria-presented": `${this.isExpanded === true}` }, h("bal-date-calendar", { value: this.calendarValue, min: this.min, max: this.max, minYearProp: this.minYearProp, maxYearProp: this.maxYearProp, defaultDate: this.defaultDate, allowedDates: this.allowedDates, onBalChange: this.onCalendarChange }))));
|
|
289
|
+
return (h(Host, { id: this.inputId, class: Object.assign({}, block.class()) }, h("bal-input-group", { invalid: this.invalid, readonly: this.readonly, disabled: this.disabled, ref: el => (this.referenceEl = el) }, h("bal-input-date", Object.assign({ name: this.name, required: this.required, placeholder: this.placeholder, value: this.value, min: this.min, max: this.max, invalid: this.invalid, readonly: this.readonly, disabled: this.disabled, allowInvalidValue: this.allowInvalidValue, onClick: this.onInputClick, onBalInput: this.onInputInput, onBalChange: this.onInputChange, onBalFocus: this.onInputFocus, onBalBlur: this.onInputBlur, onBalKeyPress: this.onKeyPress, ref: el => (this.inputEl = el) }, this.inheritedAttributes)), !this.freeSolo ? (h("bal-icon", { name: "date", role: "button", tabindex: -1, class: Object.assign(Object.assign({}, blockIcon.class()), blockIcon.modifier('clickable').class(!this.disabled && !this.readonly)), "is-right": true, color: this.disabled || this.readonly ? 'grey' : this.invalid ? 'danger' : 'primary', onClick: this.onIconClick, "aria-label": i18nBalDate[this.language].toggleDatepicker, "aria-haspopup": "true", "aria-expanded": this.isExpanded ? 'true' : 'false' })) : ('')), h("div", { role: "dialog", class: Object.assign(Object.assign({}, blockPopup.class()), blockPopup.modifier('visible').class(this.isExpanded)), ref: el => (this.floatingEl = el), "aria-hidden": `${this.isExpanded !== true}`, "aria-presented": `${this.isExpanded === true}` }, h("bal-date-calendar", { value: this.calendarValue, min: this.min, max: this.max, minYearProp: this.minYearProp, maxYearProp: this.maxYearProp, defaultDate: this.defaultDate, allowedDates: this.allowedDates, onBalChange: this.onCalendarChange }))));
|
|
289
290
|
}
|
|
290
291
|
get el() { return this; }
|
|
291
292
|
static get watchers() { return {
|
|
@@ -310,6 +311,7 @@ const Date = /*@__PURE__*/ proxyCustomElement(class Date extends HTMLElement {
|
|
|
310
311
|
"maxYearProp": [2, "max-year"],
|
|
311
312
|
"defaultDate": [1, "default-date"],
|
|
312
313
|
"allowedDates": [16],
|
|
314
|
+
"allowInvalidValue": [4, "allow-invalid-value"],
|
|
313
315
|
"debounce": [2],
|
|
314
316
|
"autoInvalidOff": [516, "auto-invalid-off"],
|
|
315
317
|
"isExpanded": [32],
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../dist/types/components";
|
|
2
|
+
|
|
3
|
+
interface BalDocApp extends Components.BalDocApp, HTMLElement {}
|
|
4
|
+
export const BalDocApp: {
|
|
5
|
+
prototype: BalDocApp;
|
|
6
|
+
new (): BalDocApp;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|