@baloise/ds-core 19.9.0 → 19.9.1-nightly.20260306
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/animation.decorator.js +1 -1
- package/components/bal-accordion.js +1 -1
- package/components/bal-app.js +1 -102
- package/components/bal-app2.js +104 -0
- package/components/bal-button2.js +1 -1
- package/components/bal-carousel-item.js +1 -1
- package/components/bal-checkbox-group.js +1 -1
- package/components/bal-date-calendar2.js +1 -1
- package/components/bal-date.js +1 -1
- package/components/bal-doc-app.d.ts +11 -0
- package/components/bal-doc-app.js +264 -0
- package/components/bal-dropdown.js +1 -1
- package/components/bal-field.js +1 -1
- package/components/bal-footer.js +1 -1
- package/components/bal-form.js +1 -1
- package/components/bal-input-stepper.js +1 -1
- package/components/bal-list-item-accordion-body2.js +1 -1
- package/components/bal-list-item2.js +1 -1
- package/components/bal-logo2.js +1 -1
- package/components/bal-modal.js +1 -1
- package/components/bal-nav.js +1 -1
- package/components/bal-navbar-brand.js +1 -1
- package/components/bal-option-list2.js +1 -1
- package/components/bal-popup2.js +1 -1
- package/components/bal-radio-group.js +1 -1
- package/components/bal-segment-item.js +1 -1
- package/components/bal-select2.js +1 -1
- package/components/bal-spinner2.js +1 -1
- package/components/bal-stage-image.js +1 -1
- package/components/bal-tabs2.js +1 -1
- package/components/breakpoints.subject.js +1 -1
- package/components/element-states.decorator.js +1 -1
- package/components/floating-ui.dom.js +151 -125
- package/components/floating-ui.js +1 -1
- package/components/focus.decorator.js +1 -1
- package/components/form-input.js +1 -1
- package/components/helpers.js +1 -1
- package/components/index.js +5 -449
- package/components/initialize.js +450 -0
- package/components/mutation.decorator.js +1 -1
- package/components/overlays.js +1 -1
- package/components/resize.decorator.js +1 -1
- package/components/svg.js +1595 -1325
- package/components/swipe.subject.js +1 -1
- package/components/swiper.util.js +1 -1
- package/components/tokens.esm.js +1 -1
- package/components/visibility.decorator.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-79006350e3.system.entry.js → p-00d493e589.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-2333a469fa.entry.js → p-02323ca1fe.entry.js} +1 -1
- package/dist/baloise-design-system/{p-efd2551aca.entry.js → p-0974dcb139.entry.js} +1 -1
- package/dist/baloise-design-system/{p-c23854bd63.entry.js → p-0c6ba6301e.entry.js} +1 -1
- package/dist/baloise-design-system/{p-b75b727fbc.entry.js → p-0e3426206e.entry.js} +1 -1
- package/dist/baloise-design-system/{p-1ee3f23f54.entry.js → p-152208f063.entry.js} +1 -1
- package/dist/baloise-design-system/p-21ea7b32f1.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-DmVt6SeJ.js → p-24rZdRsl.js} +1 -1
- package/dist/baloise-design-system/{p-e9095ec856.system.entry.js → p-29defa9270.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-14ae6214c4.system.entry.js → p-31f4de64f4.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-586de1181e.entry.js → p-340cd7b9e8.entry.js} +1 -1
- package/dist/baloise-design-system/{p-CsPrCX4f.system.js → p-3VlTyI5Z.system.js} +1 -1
- package/dist/baloise-design-system/{p-772db94619.system.entry.js → p-3ff089ddd6.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-7f2e1e1be7.entry.js → p-4ab003ce66.entry.js} +1 -1
- package/dist/baloise-design-system/{p-44137a3d17.system.entry.js → p-4dabda27fe.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-54ec2bae4d.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-bd5655b6a8.entry.js → p-5b2bf90d1e.entry.js} +1 -1
- package/dist/baloise-design-system/p-669607ed56.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-ee0b45ff30.system.entry.js → p-6c25f9b1e4.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-0077e5a12f.entry.js → p-79d0e94ea1.entry.js} +1 -1
- package/dist/baloise-design-system/{p-fec5974e23.entry.js → p-81735072dc.entry.js} +1 -1
- package/dist/baloise-design-system/{p-393a31ad6e.system.entry.js → p-86e640b692.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-b9bbf796f3.system.entry.js → p-8c3b1cc257.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-862bf2c3e6.entry.js → p-96ed4c183d.entry.js} +1 -1
- package/dist/baloise-design-system/{p-493e239429.entry.js → p-9c40fa0127.entry.js} +1 -1
- package/dist/baloise-design-system/p-9ca0a9bf5c.entry.js +1 -0
- package/dist/baloise-design-system/p-BFRjY4w3.js +1 -1
- package/dist/baloise-design-system/p-BRAmUyPx.system.js +1 -1
- package/dist/baloise-design-system/p-BmOE4zEk.system.js +1 -0
- package/dist/baloise-design-system/{p-TqRS9XF1.system.js → p-Bp0A6Ore.system.js} +1 -1
- package/dist/baloise-design-system/{p-CE3V5D8z.system.js → p-BspU5Bvj.system.js} +1 -1
- package/dist/baloise-design-system/p-BvSkuJ_n.js +1 -0
- package/dist/baloise-design-system/p-BzIZLOtt.system.js +1 -0
- package/dist/baloise-design-system/p-CAb2C8az.js +1 -0
- package/dist/baloise-design-system/p-CIEmrKWY.js +1 -0
- package/dist/baloise-design-system/{p-Dn1vzM6-.js → p-CTg4sHAa.js} +1 -1
- package/dist/baloise-design-system/p-C_qvcMEM.system.js +1 -0
- package/dist/baloise-design-system/{p-bNRkwxp2.system.js → p-CjpezEkO.system.js} +1 -1
- package/dist/baloise-design-system/p-Ck7YRry-.system.js +2 -0
- package/dist/baloise-design-system/p-Cr2H7Jt3.js +1 -0
- package/dist/baloise-design-system/{p-BDYdAsv_.system.js → p-DWB7R0je.system.js} +1 -1
- package/dist/baloise-design-system/p-DojUs2K8.js +2 -0
- package/dist/baloise-design-system/p-Ectc3YAG.js +1 -0
- package/dist/baloise-design-system/{p-7cb15b231d.entry.js → p-a1482cbe4a.entry.js} +1 -1
- package/dist/baloise-design-system/p-ba5c2c06b5.entry.js +1 -0
- package/dist/baloise-design-system/{p-a7503a0c9d.entry.js → p-bb075b017d.entry.js} +1 -1
- package/dist/baloise-design-system/{p-bb255885a4.system.entry.js → p-bcfff80afa.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-0556bebe3a.system.entry.js → p-c0a6358c98.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-eb98a3713f.system.entry.js → p-c811cc4dd7.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-c637edb9ea.entry.js → p-d07ec2cded.entry.js} +1 -1
- package/dist/baloise-design-system/{p-6191805e40.system.entry.js → p-d41ca5c096.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-5c3f48e883.system.entry.js → p-de296becb2.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-de7e17e5d3.entry.js +1 -0
- package/dist/baloise-design-system/{p-3ed3bfc59a.system.entry.js → p-e485e00095.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-fb980109e2.system.entry.js → p-e694b56c36.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-8029d2f939.entry.js → p-e99f63fa4f.entry.js} +1 -1
- package/dist/baloise-design-system/{p-c8491fda99.system.entry.js → p-fc8024a9d7.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-a10bc9e5d8.entry.js → p-fc9a46b295.entry.js} +1 -1
- package/dist/baloise-design-system/{p-a3558335f2.system.entry.js → p-fd5d4c0fd7.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-jo1Ip2AP.system.js +1 -0
- package/dist/cjs/app-globals-DcKvQZAC.js +7 -0
- package/dist/cjs/bal-carousel_2.cjs.entry.js +5 -4
- package/dist/cjs/bal-date.cjs.entry.js +1 -1
- package/dist/cjs/bal-doc-app.cjs.entry.js +231 -0
- package/dist/cjs/bal-dropdown_3.cjs.entry.js +1 -1
- package/dist/cjs/bal-field_5.cjs.entry.js +3 -3
- package/dist/cjs/bal-footer.cjs.entry.js +1 -1
- package/dist/cjs/bal-hint_5.cjs.entry.js +3 -3
- package/dist/cjs/bal-icon.cjs.entry.js +1 -1
- 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-nav_8.cjs.entry.js +5 -4
- package/dist/cjs/bal-navbar_5.cjs.entry.js +3 -3
- package/dist/cjs/bal-pagination.cjs.entry.js +3 -3
- package/dist/cjs/bal-popup.cjs.entry.js +1 -1
- package/dist/cjs/bal-progress-bar.cjs.entry.js +4 -4
- package/dist/cjs/bal-segment_2.cjs.entry.js +4 -4
- 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/bal-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/baloise-design-system.cjs.js +3 -2
- package/dist/cjs/{breakpoints.decorator-DhiWnqha.js → breakpoints.decorator-cBRgRCVd.js} +1 -1
- package/dist/cjs/{breakpoints.subject-DPTVZ3As.js → breakpoints.subject-dUbNkLKT.js} +1 -1
- package/dist/cjs/{floating-ui-DyN44UhF.js → floating-ui-BE1Qsw-b.js} +1 -1
- package/dist/cjs/{floating-ui.dom-BPU3HWKX.js → floating-ui.dom-DCg2YBDr.js} +151 -125
- package/dist/cjs/{app-globals-D4xKyILL.js → global-BOGOCc0T.js} +2 -4
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/initialize-BzrcZo6Y.js +1 -1
- package/dist/cjs/loader.cjs.js +3 -2
- package/dist/cjs/svg-qEvvK3mS.js +1607 -0
- package/dist/cjs/{tokens.esm-DM_dMnsW.js → tokens.esm-FSnzh3XM.js} +1 -1
- package/dist/cjs/{window-resize.decorator-oyMA7gDI.js → window-resize.decorator-BQv9yB3l.js} +1 -1
- package/dist/collection/collection-manifest.json +2 -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 +248 -0
- package/dist/collection/utils/constants/version.constant.js +1 -1
- package/dist/esm/app-globals-CIj5uAPM.js +5 -0
- package/dist/esm/bal-carousel_2.entry.js +5 -4
- package/dist/esm/bal-date.entry.js +1 -1
- package/dist/esm/bal-doc-app.entry.js +229 -0
- package/dist/esm/bal-dropdown_3.entry.js +1 -1
- package/dist/esm/bal-field_5.entry.js +3 -3
- package/dist/esm/bal-footer.entry.js +1 -1
- package/dist/esm/bal-hint_5.entry.js +3 -3
- package/dist/esm/bal-icon.entry.js +1 -1
- package/dist/esm/bal-list_8.entry.js +3 -3
- package/dist/esm/bal-logo.entry.js +3 -3
- package/dist/esm/bal-nav_8.entry.js +5 -4
- package/dist/esm/bal-navbar_5.entry.js +3 -3
- package/dist/esm/bal-pagination.entry.js +3 -3
- package/dist/esm/bal-popup.entry.js +1 -1
- package/dist/esm/bal-progress-bar.entry.js +4 -4
- package/dist/esm/bal-segment_2.entry.js +4 -4
- 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/bal-tooltip.entry.js +1 -1
- package/dist/esm/baloise-design-system.js +3 -2
- package/dist/esm/{breakpoints.decorator-C-DmFJbn.js → breakpoints.decorator-B3XKRnsG.js} +1 -1
- package/dist/esm/{breakpoints.subject-Iyftu-nV.js → breakpoints.subject-BFZRA6eH.js} +1 -1
- package/dist/esm/{floating-ui-Bx04QSXP.js → floating-ui-gZ7E41T8.js} +1 -1
- package/dist/esm/{floating-ui.dom-DKxvaA1I.js → floating-ui.dom-Cr2H7Jt3.js} +151 -125
- package/dist/esm/{app-globals-Blx--ecs.js → global-Llrc69_N.js} +2 -4
- package/dist/esm/index.js +3 -3
- package/dist/esm/initialize-W3od-FM9.js +1 -1
- package/dist/esm/loader.js +3 -2
- package/dist/esm/svg-DhNz-XmR.js +1605 -0
- package/dist/esm/{tokens.esm-C9EQ_6RZ.js → tokens.esm-D4NmoGxn.js} +1 -1
- package/dist/esm/{window-resize.decorator-BU569j2_.js → window-resize.decorator-DpUIcEOX.js} +1 -1
- package/dist/esm-es5/app-globals-CIj5uAPM.js +1 -0
- package/dist/esm-es5/bal-carousel_2.entry.js +1 -1
- package/dist/esm-es5/bal-date.entry.js +1 -1
- package/dist/esm-es5/bal-doc-app.entry.js +1 -0
- package/dist/esm-es5/bal-dropdown_3.entry.js +1 -1
- package/dist/esm-es5/bal-field_5.entry.js +1 -1
- package/dist/esm-es5/bal-footer.entry.js +1 -1
- package/dist/esm-es5/bal-hint_5.entry.js +1 -1
- package/dist/esm-es5/bal-icon.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-nav_8.entry.js +1 -1
- package/dist/esm-es5/bal-navbar_5.entry.js +1 -1
- package/dist/esm-es5/bal-pagination.entry.js +1 -1
- package/dist/esm-es5/bal-popup.entry.js +1 -1
- package/dist/esm-es5/bal-progress-bar.entry.js +1 -1
- package/dist/esm-es5/bal-segment_2.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/bal-tooltip.entry.js +1 -1
- package/dist/esm-es5/baloise-design-system.js +1 -1
- package/dist/esm-es5/breakpoints.decorator-B3XKRnsG.js +1 -0
- package/dist/esm-es5/{breakpoints.subject-Iyftu-nV.js → breakpoints.subject-BFZRA6eH.js} +1 -1
- package/dist/esm-es5/{floating-ui-Bx04QSXP.js → floating-ui-gZ7E41T8.js} +1 -1
- package/dist/esm-es5/floating-ui.dom-Cr2H7Jt3.js +1 -0
- package/dist/esm-es5/global-Llrc69_N.js +1 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/initialize-W3od-FM9.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/svg-DhNz-XmR.js +2 -0
- package/dist/esm-es5/{window-resize.decorator-BU569j2_.js → window-resize.decorator-DpUIcEOX.js} +1 -1
- package/dist/types/components/docs/bal-doc-app/bal-doc-app.d.ts +21 -0
- package/dist/types/components.d.ts +75 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/icons/src/index.d.ts +82 -0
- package/dist/types/utils/svg.d.ts +1 -1
- package/package.json +9 -9
- package/dist/baloise-design-system/p-37641c340c.entry.js +0 -1
- package/dist/baloise-design-system/p-BIBFYhYa.system.js +0 -1
- package/dist/baloise-design-system/p-BS3tl84b.system.js +0 -3
- package/dist/baloise-design-system/p-Bk7UdnZ5.system.js +0 -1
- package/dist/baloise-design-system/p-CI2FR64u.js +0 -1
- package/dist/baloise-design-system/p-CKN3W8qn.js +0 -1
- package/dist/baloise-design-system/p-DKxvaA1I.js +0 -1
- package/dist/baloise-design-system/p-DUNB4kTY.js +0 -2
- package/dist/baloise-design-system/p-Dz-E2PRm.system.js +0 -1
- package/dist/baloise-design-system/p-Ere8qsaI.js +0 -1
- package/dist/baloise-design-system/p-a31aacd887.system.entry.js +0 -1
- package/dist/baloise-design-system/p-c1f871bb5b.system.entry.js +0 -1
- package/dist/baloise-design-system/p-dc45f7cf9c.entry.js +0 -1
- package/dist/cjs/svg-Bw61tXih.js +0 -1337
- package/dist/esm/svg-DUNB4kTY.js +0 -1335
- package/dist/esm-es5/app-globals-Blx--ecs.js +0 -1
- package/dist/esm-es5/breakpoints.decorator-C-DmFJbn.js +0 -1
- package/dist/esm-es5/floating-ui.dom-DKxvaA1I.js +0 -1
- package/dist/esm-es5/svg-DUNB4kTY.js +0 -2
- /package/dist/baloise-design-system/{p-C9EQ_6RZ.js → p-D4NmoGxn.js} +0 -0
- /package/dist/baloise-design-system/{p-dEE6wNs_.system.js → p-DcCv3JwS.system.js} +0 -0
- /package/dist/esm-es5/{tokens.esm-C9EQ_6RZ.js → tokens.esm-D4NmoGxn.js} +0 -0
package/components/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { setPlatformHelpers } from '@stencil/core/internal/client';
|
|
2
1
|
export { getAssetPath, render, setAssetPath, setNonce, setPlatformOptions } from '@stencil/core/internal/client';
|
|
3
2
|
export { F as FileUploadRejectionReason } from './bal-file-upload.type.js';
|
|
4
3
|
export { i as i18nBalClose } from './bal-close.i18n.js';
|
|
@@ -8,177 +7,25 @@ export { i as i18nBalLabel } from './bal-label.i18n.js';
|
|
|
8
7
|
export { i as i18nBalTimeInput } from './bal-time-input.i18n.js';
|
|
9
8
|
export { n as newBalStepOption } from './bal-step.util.js';
|
|
10
9
|
export { n as newBalTabOption } from './bal-tab.util.js';
|
|
10
|
+
export { B as BalSnackbarController, a as BalToastController, b as balSnackbarController, c as balToastController, i as initialize, i as initializeBaloiseDesignSystem, s as setupConfig } from './initialize.js';
|
|
11
11
|
import { b as balBrowser } from './browser.js';
|
|
12
|
-
import { w as waitForComponent, g as getAppRoot, c as componentOnReady } from './helpers.js';
|
|
13
|
-
export { d as deepReady, i as isDescendant, s as shallowReady, a as wait, b as waitAfterFramePaint, e as waitAfterIdleCallback, f as waitAfterLargestContentfulPaintCallback, h as waitForDesignSystem, j as waitOnLoadEventCallback } from './helpers.js';
|
|
14
|
-
import { d as defaultConfig } from './config.default.js';
|
|
15
12
|
import { b as balDevice } from './device.js';
|
|
16
13
|
export { B as BalDevice } from './device.js';
|
|
17
14
|
export { n as newBalOption } from './option.js';
|
|
18
15
|
export { s as scrollToFirstInvalidField } from './form.js';
|
|
16
|
+
import { g as getAppRoot, c as componentOnReady } from './helpers.js';
|
|
17
|
+
export { d as deepReady, i as isDescendant, s as shallowReady, w as wait, a as waitAfterFramePaint, b as waitAfterIdleCallback, e as waitAfterLargestContentfulPaintCallback, f as waitForComponent, h as waitForDesignSystem, j as waitOnLoadEventCallback } from './helpers.js';
|
|
19
18
|
export { I as INVALID_VALUE } from './mask-util.js';
|
|
20
19
|
export { B as BalScrollHandler } from './scroll.js';
|
|
21
20
|
import { g as getOverlays, a as getOverlay } from './overlays.js';
|
|
22
21
|
import { B as BalWindowResizeListener, b as balBreakpoints } from './breakpoints.subject.js';
|
|
23
22
|
export { c as BalBreakpointSubject, d as BalBreakpointsUtil, a as balBreakpointSubject } from './breakpoints.subject.js';
|
|
24
23
|
export { a as attachToConfig, d as detachFromConfig, o as onBalConfigChange, u as updateBalAllowedLanguages, b as updateBalAnimated, c as updateBalIcons, e as updateBalLanguage, f as updateBalRegion, g as useBalConfig } from './config.utils.js';
|
|
24
|
+
export { d as defaultConfig } from './config.default.js';
|
|
25
25
|
export { B as BalDate } from './date.js';
|
|
26
26
|
import { S as Subject } from './listener.js';
|
|
27
27
|
export { B as BalSwipeSubject } from './swipe.subject.js';
|
|
28
28
|
|
|
29
|
-
const BALOISE_ANIMATION_KEY = 'baloise-animated';
|
|
30
|
-
|
|
31
|
-
class Config {
|
|
32
|
-
constructor() {
|
|
33
|
-
this._componentObservers = [];
|
|
34
|
-
this._observers = [];
|
|
35
|
-
this._config = defaultConfig;
|
|
36
|
-
}
|
|
37
|
-
get locale() {
|
|
38
|
-
return `${this._config.language}-${this._config.region}`;
|
|
39
|
-
}
|
|
40
|
-
get region() {
|
|
41
|
-
return this._config.region;
|
|
42
|
-
}
|
|
43
|
-
set region(region) {
|
|
44
|
-
if (region !== this._config.region) {
|
|
45
|
-
this._config.region = region;
|
|
46
|
-
this._notify();
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
get language() {
|
|
50
|
-
return this._config.language;
|
|
51
|
-
}
|
|
52
|
-
get brand() {
|
|
53
|
-
return this._config.brand;
|
|
54
|
-
}
|
|
55
|
-
set brand(brand) {
|
|
56
|
-
if (brand !== this._config.brand) {
|
|
57
|
-
this._config.brand = brand;
|
|
58
|
-
this._notify();
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
set language(language) {
|
|
62
|
-
if (language !== this._config.language) {
|
|
63
|
-
if (this._config.allowedLanguages.includes(language)) {
|
|
64
|
-
this._config.language = language;
|
|
65
|
-
}
|
|
66
|
-
else {
|
|
67
|
-
this._config.language = this._config.fallbackLanguage;
|
|
68
|
-
}
|
|
69
|
-
this._notify();
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
get allowedLanguages() {
|
|
73
|
-
return this._config.allowedLanguages;
|
|
74
|
-
}
|
|
75
|
-
set allowedLanguages(allowedLanguages) {
|
|
76
|
-
if (allowedLanguages !== this._config.allowedLanguages) {
|
|
77
|
-
this._config.allowedLanguages = allowedLanguages;
|
|
78
|
-
this._notify();
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
get icons() {
|
|
82
|
-
return this._config.icons;
|
|
83
|
-
}
|
|
84
|
-
set icons(icons) {
|
|
85
|
-
this._config.icons = Object.assign(Object.assign({}, this._config.icons), icons);
|
|
86
|
-
this._notify();
|
|
87
|
-
}
|
|
88
|
-
get logger() {
|
|
89
|
-
return this._config.logger;
|
|
90
|
-
}
|
|
91
|
-
set logger(logger) {
|
|
92
|
-
this._config.logger = Object.assign({}, logger);
|
|
93
|
-
this._notify();
|
|
94
|
-
}
|
|
95
|
-
get animated() {
|
|
96
|
-
return this._config.animated;
|
|
97
|
-
}
|
|
98
|
-
set animated(animated) {
|
|
99
|
-
this._config.animated = animated;
|
|
100
|
-
this._notify();
|
|
101
|
-
}
|
|
102
|
-
get httpFormSubmit() {
|
|
103
|
-
return this._config.httpFormSubmit;
|
|
104
|
-
}
|
|
105
|
-
set httpFormSubmit(httpFormSubmit) {
|
|
106
|
-
this._config.httpFormSubmit = httpFormSubmit;
|
|
107
|
-
this._notify();
|
|
108
|
-
}
|
|
109
|
-
attach(observer) {
|
|
110
|
-
const isExist = this._observers.includes(observer);
|
|
111
|
-
if (isExist) {
|
|
112
|
-
return console.log('Subject: Observer has been attached already.');
|
|
113
|
-
}
|
|
114
|
-
this._observers.push(observer);
|
|
115
|
-
observer.configChanged(this._config);
|
|
116
|
-
}
|
|
117
|
-
detach(observer) {
|
|
118
|
-
const observerIndex = this._observers.indexOf(observer);
|
|
119
|
-
if (observerIndex === -1) {
|
|
120
|
-
return console.log('Subject: Nonexistent observer.');
|
|
121
|
-
}
|
|
122
|
-
this._observers.splice(observerIndex, 1);
|
|
123
|
-
}
|
|
124
|
-
attachComponent(observer) {
|
|
125
|
-
const isExist = this._componentObservers.includes(observer);
|
|
126
|
-
if (isExist) {
|
|
127
|
-
return console.log('Subject: Observer has been attached already.');
|
|
128
|
-
}
|
|
129
|
-
this._componentObservers.push(observer);
|
|
130
|
-
observer.configChanged(this._config);
|
|
131
|
-
}
|
|
132
|
-
detachComponent(observer) {
|
|
133
|
-
const observerIndex = this._componentObservers.indexOf(observer);
|
|
134
|
-
if (observerIndex === -1) {
|
|
135
|
-
return console.log('Subject: Nonexistent observer.');
|
|
136
|
-
}
|
|
137
|
-
this._componentObservers.splice(observerIndex, 1);
|
|
138
|
-
}
|
|
139
|
-
toString() {
|
|
140
|
-
return JSON.stringify(this._config);
|
|
141
|
-
}
|
|
142
|
-
reset(config) {
|
|
143
|
-
this._config = Object.assign(Object.assign(Object.assign({}, this._config), config), { icons: Object.assign(Object.assign({}, this._config.icons), config.icons) });
|
|
144
|
-
this._notify(false);
|
|
145
|
-
}
|
|
146
|
-
_notify(all = true) {
|
|
147
|
-
for (const observer of this._componentObservers) {
|
|
148
|
-
observer.configChanged(this._config);
|
|
149
|
-
}
|
|
150
|
-
if (all) {
|
|
151
|
-
for (const observer of this._observers) {
|
|
152
|
-
observer.configChanged(this._config);
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
const config = /*@__PURE__*/ new Config();
|
|
158
|
-
const configFromLocalStorage = (win) => {
|
|
159
|
-
try {
|
|
160
|
-
const animated = JSON.parse(win.localStorage.getItem(BALOISE_ANIMATION_KEY));
|
|
161
|
-
if (animated !== null) {
|
|
162
|
-
return {
|
|
163
|
-
animated,
|
|
164
|
-
};
|
|
165
|
-
}
|
|
166
|
-
return {};
|
|
167
|
-
}
|
|
168
|
-
catch (e) {
|
|
169
|
-
return {};
|
|
170
|
-
}
|
|
171
|
-
};
|
|
172
|
-
|
|
173
|
-
const setupConfig = (userConfig = {}, win = {}) => {
|
|
174
|
-
if (Object.keys(win).length === 0 && balBrowser.hasWindow) {
|
|
175
|
-
win = window;
|
|
176
|
-
}
|
|
177
|
-
win.BaloiseDesignSystem = win.BaloiseDesignSystem || {};
|
|
178
|
-
config.reset(Object.assign(Object.assign(Object.assign({}, configFromLocalStorage(win)), userConfig), { icons: Object.assign({}, userConfig.icons) }));
|
|
179
|
-
win.BaloiseDesignSystem.config = config;
|
|
180
|
-
};
|
|
181
|
-
|
|
182
29
|
const i18nBalFieldLabel = {
|
|
183
30
|
de: {
|
|
184
31
|
optional: ' (optional)',
|
|
@@ -232,297 +79,6 @@ const newBalSingleOptionValue = (valueAndLabel, disabled = false, data) => {
|
|
|
232
79
|
return newBalOptionValue(valueAndLabel, valueAndLabel, disabled, data);
|
|
233
80
|
};
|
|
234
81
|
|
|
235
|
-
class BalNoticeController {
|
|
236
|
-
constructor(options) {
|
|
237
|
-
this.options = options;
|
|
238
|
-
this.container = null;
|
|
239
|
-
this.queue = [];
|
|
240
|
-
this.preQueue = [];
|
|
241
|
-
this.queueLimit = 5;
|
|
242
|
-
}
|
|
243
|
-
create(options) {
|
|
244
|
-
if (balBrowser.hasDocument) {
|
|
245
|
-
this.setupContainer(options);
|
|
246
|
-
const clone = this.findClone(options);
|
|
247
|
-
if (clone === undefined) {
|
|
248
|
-
const el = document.createElement(this.options.tag);
|
|
249
|
-
Object.assign(el, options);
|
|
250
|
-
el.addEventListener('balClose', ev => {
|
|
251
|
-
this.removeFromQueue(ev.detail);
|
|
252
|
-
});
|
|
253
|
-
this.preQueue.push(el);
|
|
254
|
-
this.updateQueue();
|
|
255
|
-
return el;
|
|
256
|
-
}
|
|
257
|
-
return clone;
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
setQueue(queueLimit) {
|
|
261
|
-
this.queueLimit = queueLimit;
|
|
262
|
-
}
|
|
263
|
-
async dismissAll() {
|
|
264
|
-
var _a;
|
|
265
|
-
const elements = (_a = this.container) === null || _a === void 0 ? void 0 : _a.querySelectorAll(this.options.tag);
|
|
266
|
-
if (elements) {
|
|
267
|
-
const closingQueue = [];
|
|
268
|
-
for (let index = 0; index < elements.length; index++) {
|
|
269
|
-
const el = elements[index];
|
|
270
|
-
if (el.close) {
|
|
271
|
-
closingQueue.push(el.close());
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
await Promise.all(closingQueue);
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
/**
|
|
278
|
-
* @deprecated use dismissAll instead
|
|
279
|
-
*/
|
|
280
|
-
async clearAll() {
|
|
281
|
-
console.warn('[DEPRECATED] - use dismissAll() instead');
|
|
282
|
-
return this.dismissAll();
|
|
283
|
-
}
|
|
284
|
-
findClone(options) {
|
|
285
|
-
for (let index = 0; index < this.queue.length; index++) {
|
|
286
|
-
const el = this.queue[index];
|
|
287
|
-
if (el.message === options.message && el.color === options.color) {
|
|
288
|
-
return el;
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
return undefined;
|
|
292
|
-
}
|
|
293
|
-
setupContainer(options) {
|
|
294
|
-
if (balBrowser.hasDocument) {
|
|
295
|
-
const containerId = `${this.options.tag}-container`;
|
|
296
|
-
this.container = document.getElementById(containerId);
|
|
297
|
-
if (this.container)
|
|
298
|
-
return;
|
|
299
|
-
if (!this.container) {
|
|
300
|
-
this.container = document.createElement('bal-notices');
|
|
301
|
-
this.container.setAttribute('interface', this.options.tag.replace('bal-', ''));
|
|
302
|
-
this.container.setAttribute('animated', options.animated ? 'true' : 'false');
|
|
303
|
-
if (options.container !== undefined) {
|
|
304
|
-
this.container.setAttribute('container', options.container === true ? '' : options.container);
|
|
305
|
-
}
|
|
306
|
-
this.container.id = containerId;
|
|
307
|
-
}
|
|
308
|
-
document.body.appendChild(this.container);
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
async updateQueue() {
|
|
312
|
-
var _a;
|
|
313
|
-
if (this.queue.length < this.queueLimit) {
|
|
314
|
-
const el = this.preQueue.shift();
|
|
315
|
-
if (el && this.container) {
|
|
316
|
-
await waitForComponent(this.container);
|
|
317
|
-
const innerEl = this.container.querySelector('.bal-notices__inner');
|
|
318
|
-
if (innerEl) {
|
|
319
|
-
this.queue.push(el);
|
|
320
|
-
innerEl.insertAdjacentElement('beforeend', el);
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
if (this.queue.length === 0) {
|
|
325
|
-
(_a = this.container) === null || _a === void 0 ? void 0 : _a.remove();
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
removeFromQueue(toastId) {
|
|
329
|
-
this.queue = this.queue.filter(el => el.id !== toastId);
|
|
330
|
-
setTimeout(() => this.updateQueue(), 0);
|
|
331
|
-
}
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
class BalSnackbarController extends BalNoticeController {
|
|
335
|
-
constructor() {
|
|
336
|
-
super({
|
|
337
|
-
tag: 'bal-snackbar',
|
|
338
|
-
});
|
|
339
|
-
}
|
|
340
|
-
create(options) {
|
|
341
|
-
return super.create(options);
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
const balSnackbarController = new BalSnackbarController();
|
|
345
|
-
|
|
346
|
-
class BalToastController extends BalNoticeController {
|
|
347
|
-
constructor() {
|
|
348
|
-
super({
|
|
349
|
-
tag: 'bal-toast',
|
|
350
|
-
});
|
|
351
|
-
}
|
|
352
|
-
create(options) {
|
|
353
|
-
return super.create(options);
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
const balToastController = new BalToastController();
|
|
357
|
-
|
|
358
|
-
const tags = [
|
|
359
|
-
"bal-accordion",
|
|
360
|
-
"bal-accordion-details",
|
|
361
|
-
"bal-accordion-summary",
|
|
362
|
-
"bal-accordion-trigger",
|
|
363
|
-
"bal-app",
|
|
364
|
-
"bal-badge",
|
|
365
|
-
"bal-button",
|
|
366
|
-
"bal-button-group",
|
|
367
|
-
"bal-card",
|
|
368
|
-
"bal-card-actions",
|
|
369
|
-
"bal-card-button",
|
|
370
|
-
"bal-card-content",
|
|
371
|
-
"bal-card-subtitle",
|
|
372
|
-
"bal-card-title",
|
|
373
|
-
"bal-carousel",
|
|
374
|
-
"bal-carousel-item",
|
|
375
|
-
"bal-check",
|
|
376
|
-
"bal-checkbox",
|
|
377
|
-
"bal-checkbox-group",
|
|
378
|
-
"bal-close",
|
|
379
|
-
"bal-content",
|
|
380
|
-
"bal-data",
|
|
381
|
-
"bal-data-item",
|
|
382
|
-
"bal-data-label",
|
|
383
|
-
"bal-data-value",
|
|
384
|
-
"bal-date",
|
|
385
|
-
"bal-date-calendar",
|
|
386
|
-
"bal-date-calendar-cell",
|
|
387
|
-
"bal-divider",
|
|
388
|
-
"bal-dropdown",
|
|
389
|
-
"bal-field",
|
|
390
|
-
"bal-field-control",
|
|
391
|
-
"bal-field-hint",
|
|
392
|
-
"bal-field-label",
|
|
393
|
-
"bal-field-message",
|
|
394
|
-
"bal-file-upload",
|
|
395
|
-
"bal-footer",
|
|
396
|
-
"bal-form",
|
|
397
|
-
"bal-form-col",
|
|
398
|
-
"bal-form-grid",
|
|
399
|
-
"bal-heading",
|
|
400
|
-
"bal-hint",
|
|
401
|
-
"bal-hint-text",
|
|
402
|
-
"bal-hint-title",
|
|
403
|
-
"bal-icon",
|
|
404
|
-
"bal-input",
|
|
405
|
-
"bal-input-date",
|
|
406
|
-
"bal-input-group",
|
|
407
|
-
"bal-input-slider",
|
|
408
|
-
"bal-input-stepper",
|
|
409
|
-
"bal-label",
|
|
410
|
-
"bal-list",
|
|
411
|
-
"bal-list-item",
|
|
412
|
-
"bal-list-item-accordion-body",
|
|
413
|
-
"bal-list-item-accordion-head",
|
|
414
|
-
"bal-list-item-content",
|
|
415
|
-
"bal-list-item-icon",
|
|
416
|
-
"bal-list-item-subtitle",
|
|
417
|
-
"bal-list-item-title",
|
|
418
|
-
"bal-logo",
|
|
419
|
-
"bal-modal",
|
|
420
|
-
"bal-modal-body",
|
|
421
|
-
"bal-modal-header",
|
|
422
|
-
"bal-nav",
|
|
423
|
-
"bal-nav-link",
|
|
424
|
-
"bal-nav-link-grid",
|
|
425
|
-
"bal-nav-link-grid-col",
|
|
426
|
-
"bal-nav-link-group",
|
|
427
|
-
"bal-nav-menu-bar",
|
|
428
|
-
"bal-nav-menu-flyout",
|
|
429
|
-
"bal-nav-meta-bar",
|
|
430
|
-
"bal-navbar",
|
|
431
|
-
"bal-navbar-brand",
|
|
432
|
-
"bal-navbar-menu",
|
|
433
|
-
"bal-navbar-menu-end",
|
|
434
|
-
"bal-navbar-menu-start",
|
|
435
|
-
"bal-notices",
|
|
436
|
-
"bal-notification",
|
|
437
|
-
"bal-number-input",
|
|
438
|
-
"bal-option",
|
|
439
|
-
"bal-option-list",
|
|
440
|
-
"bal-pagination",
|
|
441
|
-
"bal-popover",
|
|
442
|
-
"bal-popover-content",
|
|
443
|
-
"bal-popup",
|
|
444
|
-
"bal-progress-bar",
|
|
445
|
-
"bal-radio",
|
|
446
|
-
"bal-radio-group",
|
|
447
|
-
"bal-radio-icon",
|
|
448
|
-
"bal-segment",
|
|
449
|
-
"bal-segment-item",
|
|
450
|
-
"bal-select",
|
|
451
|
-
"bal-select-option",
|
|
452
|
-
"bal-shape",
|
|
453
|
-
"bal-sheet",
|
|
454
|
-
"bal-snackbar",
|
|
455
|
-
"bal-spinner",
|
|
456
|
-
"bal-stack",
|
|
457
|
-
"bal-stage",
|
|
458
|
-
"bal-stage-back-link",
|
|
459
|
-
"bal-stage-body",
|
|
460
|
-
"bal-stage-foot",
|
|
461
|
-
"bal-stage-head",
|
|
462
|
-
"bal-stage-image",
|
|
463
|
-
"bal-step-item",
|
|
464
|
-
"bal-steps",
|
|
465
|
-
"bal-switch",
|
|
466
|
-
"bal-tab-item",
|
|
467
|
-
"bal-table",
|
|
468
|
-
"bal-tabs",
|
|
469
|
-
"bal-tag",
|
|
470
|
-
"bal-tag-group",
|
|
471
|
-
"bal-text",
|
|
472
|
-
"bal-textarea",
|
|
473
|
-
"bal-time-input",
|
|
474
|
-
"bal-toast",
|
|
475
|
-
"bal-tooltip"
|
|
476
|
-
];
|
|
477
|
-
|
|
478
|
-
// generated by .build/version.js
|
|
479
|
-
const VERSION = '19.9.0';
|
|
480
|
-
|
|
481
|
-
const initializeBaloiseDesignSystem = (userConfig = {}, platformConfig = undefined, win = {}) => {
|
|
482
|
-
if (Object.keys(win).length === 0 && balBrowser.hasWindow) {
|
|
483
|
-
win = window;
|
|
484
|
-
}
|
|
485
|
-
win.BaloiseDesignSystem = win.BaloiseDesignSystem || {};
|
|
486
|
-
if (platformConfig) {
|
|
487
|
-
setPlatformHelpers(platformConfig);
|
|
488
|
-
}
|
|
489
|
-
setupConfig(Object.assign(Object.assign({}, userConfig), platformConfig), win);
|
|
490
|
-
win.BaloiseDesignSystem.toastController = balToastController;
|
|
491
|
-
win.BaloiseDesignSystem.snackbarController = balSnackbarController;
|
|
492
|
-
win.BaloiseDesignSystem.initialize = () => setupConfig(win.BaloiseDesignSystem.config, win);
|
|
493
|
-
win.BaloiseDesignSystem.version = VERSION;
|
|
494
|
-
if (userConfig._generateHydrateForCustomElementsOutput) {
|
|
495
|
-
generateHydrateForCustomElementsOutput(tags);
|
|
496
|
-
}
|
|
497
|
-
};
|
|
498
|
-
/**
|
|
499
|
-
* This function generates the CSS needed for custom elements hydration and inserts it into the document head.
|
|
500
|
-
* The CSS rules include styles for slot fallback and the hydrated class.
|
|
501
|
-
*
|
|
502
|
-
* This is copied from the Stencil core library.
|
|
503
|
-
* src/runtime/bootstrap-lazy.ts
|
|
504
|
-
*/
|
|
505
|
-
const generateHydrateForCustomElementsOutput = (cmpTags = []) => {
|
|
506
|
-
const SLOT_FB_CSS = 'slot-fb{display:contents}slot-fb[hidden]{display:none}';
|
|
507
|
-
const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
|
|
508
|
-
const win = typeof window !== 'undefined' ? window : {};
|
|
509
|
-
if (!win.document) {
|
|
510
|
-
console.warn('Stencil: No document found. Skipping bootstrapping lazy components.');
|
|
511
|
-
return;
|
|
512
|
-
}
|
|
513
|
-
const head = win.document.head;
|
|
514
|
-
const metaCharset = /* @__PURE__ */ head.querySelector('meta[charset]');
|
|
515
|
-
const dataStyles = /* @__PURE__ */ win.document.createElement('style');
|
|
516
|
-
if (cmpTags.length > 0) {
|
|
517
|
-
dataStyles.textContent += SLOT_FB_CSS;
|
|
518
|
-
dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
|
|
519
|
-
if (dataStyles.innerHTML.length) {
|
|
520
|
-
dataStyles.setAttribute('data-styles', '');
|
|
521
|
-
head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
|
|
522
|
-
}
|
|
523
|
-
}
|
|
524
|
-
};
|
|
525
|
-
|
|
526
82
|
class BalOrientationSubject extends Subject {
|
|
527
83
|
constructor() {
|
|
528
84
|
super(observer => observer.orientationListener(this.state));
|
|
@@ -620,4 +176,4 @@ const isPlatform = (winOrPlatform, platform) => {
|
|
|
620
176
|
const NewBalOptionValue = newBalOptionValue;
|
|
621
177
|
const NewBalSingleOptionValue = newBalSingleOptionValue;
|
|
622
178
|
|
|
623
|
-
export { BalModalController, BalOrientationSubject,
|
|
179
|
+
export { BalModalController, BalOrientationSubject, NewBalOptionValue, NewBalSingleOptionValue, balBreakpoints, balBrowser, balDevice, balModalController, balOrientationSubject, componentOnReady, getAppRoot, getPlatforms, hasTouchSupport, i18nBalFieldLabel, isBrowser, isPlatform, newBalCheckboxOption, newBalOptionValue, newBalRadioOption, newBalSingleOptionValue };
|