@baloise/ds-core 19.9.3 → 19.9.4-nightly.20260427
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 -2
- 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-file-upload.js +5 -5
- 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.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/swipe.subject.js +19 -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-ea9aa92049.entry.js → p-041bf35913.entry.js} +1 -1
- package/dist/baloise-design-system/{p-83c6c17ed8.system.entry.js → p-16b185dad1.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-03852c362f.entry.js → p-21c48cf4dc.entry.js} +1 -1
- package/dist/baloise-design-system/p-21ea7b32f1.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-cef33e1117.entry.js → p-22def77ab2.entry.js} +1 -1
- package/dist/baloise-design-system/{p-7eec8c7a78.system.entry.js → p-26753a4e71.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-b585853436.system.entry.js → p-339ebbd4b5.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-f647a73892.system.entry.js → p-36934c6f59.system.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-890c3ea355.system.entry.js → p-3a7485bf4b.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-1e26da72e8.entry.js → p-3affa87b70.entry.js} +1 -1
- package/dist/baloise-design-system/{p-14219e3845.entry.js → p-3caecad45b.entry.js} +1 -1
- package/dist/baloise-design-system/{p-BCtb7Ny9.system.js → p-4RgSLeC0.system.js} +1 -1
- package/dist/baloise-design-system/{p-3bc249e38e.entry.js → p-54eb6e9571.entry.js} +1 -1
- package/dist/baloise-design-system/{p-a5f3b37e21.system.entry.js → p-5c90302967.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-370f98a376.entry.js → p-5fb1a48855.entry.js} +1 -1
- package/dist/baloise-design-system/{p-ee61799a11.system.entry.js → p-7f0bace3b5.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-8346d5f6ae.entry.js +1 -0
- package/dist/baloise-design-system/{p-ed56778833.system.entry.js → p-8e7bf4426b.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-05221bf226.system.entry.js → p-901481b44e.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-9ca0a9bf5c.entry.js +1 -0
- package/dist/baloise-design-system/{p-8bdcf69b1f.system.entry.js → p-9cae69a8ca.system.entry.js} +1 -1
- 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-TGlXe_VY.js → p-Bc9poO2c.js} +1 -1
- package/dist/baloise-design-system/{p-0g14KuPx.system.js → p-Bl6P1gs4.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-DlPc3plk.js → p-CIWvfgPh.js} +1 -1
- package/dist/baloise-design-system/p-C_FHgwWW.js +1 -0
- package/dist/baloise-design-system/p-C_qvcMEM.system.js +1 -0
- package/dist/baloise-design-system/{p-DUpGQx_U.system.js → p-CkmzNEOM.system.js} +1 -1
- package/dist/baloise-design-system/{p-xlS5vO33.system.js → p-D5aEF_JU.system.js} +1 -1
- package/dist/baloise-design-system/{p-CFZjZt-s.js → p-DNTRij3s.js} +1 -1
- package/dist/baloise-design-system/{p-CHTPLy3W.system.js → p-DR3QfQXp.system.js} +1 -1
- package/dist/baloise-design-system/{p-ZalPEZLa.js → p-DRqAN-8G.js} +1 -1
- package/dist/baloise-design-system/p-Ectc3YAG.js +1 -0
- package/dist/baloise-design-system/{p-818b880ec5.entry.js → p-a714dfd9b4.entry.js} +1 -1
- package/dist/baloise-design-system/{p-14475f12e8.entry.js → p-c2dcd00373.entry.js} +1 -1
- package/dist/baloise-design-system/{p-dd48a60d74.entry.js → p-c6cbc389ee.entry.js} +1 -1
- package/dist/baloise-design-system/{p-8ea84ad7c7.entry.js → p-ce004dc80d.entry.js} +1 -1
- package/dist/baloise-design-system/{p-01fdb2af3e.entry.js → p-de86c8d638.entry.js} +1 -1
- package/dist/baloise-design-system/{p-dd5caee1bb.system.entry.js → p-e13bd26284.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-ea38ac08ce.system.entry.js → p-e17c3e7827.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-c47294e251.system.entry.js → p-e6dbf2325b.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-41a0556d46.entry.js → p-e93cb8d6a1.entry.js} +1 -1
- package/dist/baloise-design-system/{p-3d9555be79.system.entry.js → p-eebeeda9c8.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-9191e04f14.system.entry.js → p-f393662ba3.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-239938cbc2.entry.js → p-fa30ecfd70.entry.js} +1 -1
- package/dist/baloise-design-system/{p-COFcDrAS.system.js → p-wBdKFrw3.system.js} +1 -1
- package/dist/cjs/app-globals-DcKvQZAC.js +7 -0
- package/dist/cjs/bal-accordion_4.cjs.entry.js +0 -1
- package/dist/cjs/bal-carousel_2.cjs.entry.js +5 -5
- package/dist/cjs/bal-date-calendar_2.cjs.entry.js +2 -2
- package/dist/cjs/bal-doc-app.cjs.entry.js +231 -0
- package/dist/cjs/bal-field_5.cjs.entry.js +3 -3
- package/dist/cjs/bal-file-upload.cjs.entry.js +5 -5
- package/dist/cjs/bal-hint_5.cjs.entry.js +3 -3
- 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 +3 -3
- 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-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 +5 -5
- package/dist/cjs/baloise-design-system.cjs.js +3 -2
- package/dist/cjs/{breakpoints.decorator-DVSgAJPa.js → breakpoints.decorator-RNtFPvEH.js} +1 -1
- package/dist/cjs/{breakpoints.subject-PPg53GM5.js → breakpoints.subject-CzWuGU2-.js} +1 -1
- package/dist/cjs/{app-globals-D4xKyILL.js → global-BOGOCc0T.js} +2 -4
- package/dist/cjs/index.cjs.js +3 -3
- package/dist/cjs/initialize-BzrcZo6Y.js +1 -1
- package/dist/cjs/loader.cjs.js +3 -2
- package/dist/cjs/{swipe.decorator-BZYUlkYt.js → swipe.decorator-C_jX7Il5.js} +1 -1
- package/dist/cjs/{swipe.subject-BaKNugDQ.js → swipe.subject-iyL-XVHG.js} +18 -0
- package/dist/cjs/{tokens.esm-B1kdQjzR.js → tokens.esm-Djn6_EE0.js} +1 -1
- package/dist/cjs/{window-resize.decorator-DHvgxiqB.js → window-resize.decorator-CSFSOm8f.js} +1 -1
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/bal-accordion/bal-accordion.js +2 -6
- package/dist/collection/components/bal-file-upload/bal-file-upload.js +5 -5
- 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/collection/utils/swipe/swipe.listener.js +19 -0
- package/dist/esm/app-globals-CIj5uAPM.js +5 -0
- package/dist/esm/bal-accordion_4.entry.js +0 -1
- package/dist/esm/bal-carousel_2.entry.js +5 -5
- package/dist/esm/bal-date-calendar_2.entry.js +2 -2
- package/dist/esm/bal-doc-app.entry.js +229 -0
- package/dist/esm/bal-field_5.entry.js +3 -3
- package/dist/esm/bal-file-upload.entry.js +5 -5
- package/dist/esm/bal-hint_5.entry.js +3 -3
- 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 +3 -3
- package/dist/esm/bal-navbar_5.entry.js +3 -3
- package/dist/esm/bal-pagination.entry.js +3 -3
- 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 +5 -5
- package/dist/esm/baloise-design-system.js +3 -2
- package/dist/esm/{breakpoints.decorator-CJwbnRPE.js → breakpoints.decorator-BSJRJLjh.js} +1 -1
- package/dist/esm/{breakpoints.subject-CKmK7JA0.js → breakpoints.subject-DpwS0UFy.js} +1 -1
- package/dist/esm/{app-globals-Blx--ecs.js → global-Llrc69_N.js} +2 -4
- package/dist/esm/index.js +4 -4
- package/dist/esm/initialize-W3od-FM9.js +1 -1
- package/dist/esm/loader.js +3 -2
- package/dist/esm/{swipe.decorator-B_Ghrp1o.js → swipe.decorator-B-pmjyNr.js} +1 -1
- package/dist/esm/{swipe.subject-T0VStuOK.js → swipe.subject-BXuaiulg.js} +18 -0
- package/dist/esm/{tokens.esm-DTyLTqMF.js → tokens.esm-1vqLg2fr.js} +1 -1
- package/dist/esm/{window-resize.decorator-xoiS5CvH.js → window-resize.decorator-aZK1dG1y.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-calendar_2.entry.js +1 -1
- package/dist/esm-es5/bal-doc-app.entry.js +1 -0
- package/dist/esm-es5/bal-field_5.entry.js +1 -1
- package/dist/esm-es5/bal-file-upload.entry.js +1 -1
- package/dist/esm-es5/bal-hint_5.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-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/baloise-design-system.js +1 -1
- package/dist/esm-es5/{breakpoints.decorator-CJwbnRPE.js → breakpoints.decorator-BSJRJLjh.js} +1 -1
- package/dist/esm-es5/{breakpoints.subject-CKmK7JA0.js → breakpoints.subject-DpwS0UFy.js} +1 -1
- 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/{swipe.decorator-B_Ghrp1o.js → swipe.decorator-B-pmjyNr.js} +1 -1
- package/dist/esm-es5/swipe.subject-BXuaiulg.js +1 -0
- package/dist/esm-es5/{window-resize.decorator-xoiS5CvH.js → window-resize.decorator-aZK1dG1y.js} +1 -1
- package/dist/html.html-data.json +4 -0
- package/dist/types/components/bal-accordion/bal-accordion.d.ts +0 -1
- package/dist/types/components/docs/bal-doc-app/bal-doc-app.d.ts +21 -0
- package/dist/types/components.d.ts +81 -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/swipe/swipe.listener.d.ts +1 -0
- package/package.json +6 -6
- package/dist/baloise-design-system/p-Bk7UdnZ5.system.js +0 -1
- package/dist/baloise-design-system/p-CKN3W8qn.js +0 -1
- package/dist/baloise-design-system/p-CeIZ5hSt.js +0 -1
- package/dist/baloise-design-system/p-fb2960c1b6.entry.js +0 -1
- package/dist/esm-es5/app-globals-Blx--ecs.js +0 -1
- package/dist/esm-es5/swipe.subject-T0VStuOK.js +0 -1
- /package/dist/baloise-design-system/{p-DTyLTqMF.js → p-1vqLg2fr.js} +0 -0
- /package/dist/baloise-design-system/{p-68c75901a4.system.entry.js → p-67f2a7fbef.system.entry.js} +0 -0
- /package/dist/baloise-design-system/{p-7563a0a66d.entry.js → p-692f76ee0c.entry.js} +0 -0
- /package/dist/baloise-design-system/{p-1D6CbirM.system.js → p-BD5Br3wu.system.js} +0 -0
- /package/dist/esm-es5/{tokens.esm-DTyLTqMF.js → tokens.esm-1vqLg2fr.js} +0 -0
package/components/all.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ import { BalDate, defineCustomElement as defineBalDate } from './bal-date'
|
|
|
27
27
|
import { BalDateCalendar, defineCustomElement as defineBalDateCalendar } from './bal-date-calendar'
|
|
28
28
|
import { BalDateCalendarCell, defineCustomElement as defineBalDateCalendarCell } from './bal-date-calendar-cell'
|
|
29
29
|
import { BalDivider, defineCustomElement as defineBalDivider } from './bal-divider'
|
|
30
|
+
import { BalDocApp, defineCustomElement as defineBalDocApp } from './bal-doc-app'
|
|
30
31
|
import { BalDropdown, defineCustomElement as defineBalDropdown } from './bal-dropdown'
|
|
31
32
|
import { BalField, defineCustomElement as defineBalField } from './bal-field'
|
|
32
33
|
import { BalFieldControl, defineCustomElement as defineBalFieldControl } from './bal-field-control'
|
|
@@ -145,6 +146,7 @@ export { BalDate, defineBalDate }
|
|
|
145
146
|
export { BalDateCalendar, defineBalDateCalendar }
|
|
146
147
|
export { BalDateCalendarCell, defineBalDateCalendarCell }
|
|
147
148
|
export { BalDivider, defineBalDivider }
|
|
149
|
+
export { BalDocApp, defineBalDocApp }
|
|
148
150
|
export { BalDropdown, defineBalDropdown }
|
|
149
151
|
export { BalField, defineBalField }
|
|
150
152
|
export { BalFieldControl, defineBalFieldControl }
|
package/components/all.js
CHANGED
|
@@ -27,6 +27,7 @@ import { BalDate, defineCustomElement as defineBalDate } from './bal-date'
|
|
|
27
27
|
import { BalDateCalendar, defineCustomElement as defineBalDateCalendar } from './bal-date-calendar'
|
|
28
28
|
import { BalDateCalendarCell, defineCustomElement as defineBalDateCalendarCell } from './bal-date-calendar-cell'
|
|
29
29
|
import { BalDivider, defineCustomElement as defineBalDivider } from './bal-divider'
|
|
30
|
+
import { BalDocApp, defineCustomElement as defineBalDocApp } from './bal-doc-app'
|
|
30
31
|
import { BalDropdown, defineCustomElement as defineBalDropdown } from './bal-dropdown'
|
|
31
32
|
import { BalField, defineCustomElement as defineBalField } from './bal-field'
|
|
32
33
|
import { BalFieldControl, defineCustomElement as defineBalFieldControl } from './bal-field-control'
|
|
@@ -145,6 +146,7 @@ export { BalDate, defineBalDate }
|
|
|
145
146
|
export { BalDateCalendar, defineBalDateCalendar }
|
|
146
147
|
export { BalDateCalendarCell, defineBalDateCalendarCell }
|
|
147
148
|
export { BalDivider, defineBalDivider }
|
|
149
|
+
export { BalDocApp, defineBalDocApp }
|
|
148
150
|
export { BalDropdown, defineBalDropdown }
|
|
149
151
|
export { BalField, defineBalField }
|
|
150
152
|
export { BalFieldControl, defineBalFieldControl }
|
|
@@ -264,6 +266,7 @@ export const defineAllComponents = () => {
|
|
|
264
266
|
defineBalDateCalendar()
|
|
265
267
|
defineBalDateCalendarCell()
|
|
266
268
|
defineBalDivider()
|
|
269
|
+
defineBalDocApp()
|
|
267
270
|
defineBalDropdown()
|
|
268
271
|
defineBalField()
|
|
269
272
|
defineBalFieldControl()
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { q as debounce, v as isChildOfEventTarget, o as addEventListener, p as removeEventListener } from './helpers.js';
|
|
2
2
|
import { L as ListenerAbstract, a as SingleSubject } from './listener.js';
|
|
3
3
|
|
|
4
4
|
class BalAnimationListener extends ListenerAbstract {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { _ as __decorate, a as __metadata } from './tslib.es6.js';
|
|
3
3
|
import { B as BEM } from './bem.js';
|
|
4
|
-
import { r as raf, k as debounceEvent,
|
|
4
|
+
import { r as raf, k as debounceEvent, f as waitForComponent, t as transitionEndAsync } from './helpers.js';
|
|
5
5
|
import { L as Logger } from './log.js';
|
|
6
6
|
import { d as defineCustomElement$4 } from './bal-button2.js';
|
|
7
7
|
import { d as defineCustomElement$3 } from './bal-icon2.js';
|
|
@@ -56,7 +56,6 @@ const Accordion = /*@__PURE__*/ proxyCustomElement(class Accordion extends HTMLE
|
|
|
56
56
|
*/
|
|
57
57
|
this.card = false;
|
|
58
58
|
/**
|
|
59
|
-
* @internal
|
|
60
59
|
* defines the version of the component
|
|
61
60
|
*/
|
|
62
61
|
this.version = 2;
|
package/components/bal-app.js
CHANGED
|
@@ -1,105 +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 { s as startFocusVisible } from './focus-visible.js';
|
|
6
|
-
import { l as debounce, m as rIC, n as rOnLoad } from './helpers.js';
|
|
7
|
-
import { L as Logger } from './log.js';
|
|
8
|
-
import { b as updateBalAnimated } from './config.utils.js';
|
|
9
|
-
|
|
10
|
-
const balAppCss = ":root{--bal-app-height:100%}.bal-app{position:relative}.lcp-wait{opacity:0;visibility:hidden;display:none}.lcp-ready .lcp-wait{opacity:inherit;visibility:inherit;display:inherit}";
|
|
11
|
-
|
|
12
|
-
const App = /*@__PURE__*/ proxyCustomElement(class App extends HTMLElement {
|
|
13
|
-
constructor(registerHost) {
|
|
14
|
-
super();
|
|
15
|
-
if (registerHost !== false) {
|
|
16
|
-
this.__registerHost();
|
|
17
|
-
}
|
|
18
|
-
this.balAppReady = createEvent(this, "balAppReady", 7);
|
|
19
|
-
this.debouncedNotify = debounce(() => this.notifyResize(), 100);
|
|
20
|
-
/**
|
|
21
|
-
* Disables all animation inside the bal-app. Can be used for simplify e2e testing.
|
|
22
|
-
*/
|
|
23
|
-
this.animated = true;
|
|
24
|
-
/**
|
|
25
|
-
* @internal Is `true` when DS components are ready to be shown.
|
|
26
|
-
*/
|
|
27
|
-
this.ready = false;
|
|
28
|
-
this.notifyResize = async () => {
|
|
29
|
-
if (balBrowser.hasDocument && balBrowser.hasWindow) {
|
|
30
|
-
const doc = document.documentElement;
|
|
31
|
-
doc.style.setProperty('--bal-app-height', `${window.innerHeight}px`);
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
createLogger(log) {
|
|
36
|
-
this.log = log;
|
|
37
|
-
}
|
|
38
|
-
connectedCallback() {
|
|
39
|
-
if (this.animated === false) {
|
|
40
|
-
updateBalAnimated(this.animated);
|
|
41
|
-
}
|
|
42
|
-
if (balBrowser.hasWindow) {
|
|
43
|
-
window.addEventListener('resize', this.debouncedNotify);
|
|
44
|
-
this.debouncedNotify();
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
componentDidLoad() {
|
|
48
|
-
rIC(() => {
|
|
49
|
-
this.ready = true;
|
|
50
|
-
startFocusVisible();
|
|
51
|
-
});
|
|
52
|
-
rOnLoad(() => {
|
|
53
|
-
if (balBrowser.hasDocument && balBrowser.hasWindow) {
|
|
54
|
-
const doc = document.documentElement;
|
|
55
|
-
doc.classList.add('lcp-ready');
|
|
56
|
-
this.balAppReady.emit();
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
disconnectedCallback() {
|
|
61
|
-
if (balBrowser.hasWindow) {
|
|
62
|
-
window.removeEventListener('resize', this.debouncedNotify);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
async setFocus(elements) {
|
|
66
|
-
if (this.focusVisible) {
|
|
67
|
-
this.focusVisible.setFocus(elements);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
render() {
|
|
71
|
-
return (h(Host, { key: 'e6229236201fea92c4ccb1812f2f280a06130889', class: {
|
|
72
|
-
'bal-app': true,
|
|
73
|
-
'bal-app--safari': balBrowser.isSafari,
|
|
74
|
-
'bal-app--touch': balDevice.hasTouchScreen,
|
|
75
|
-
} }, h("slot", { key: '7712c7609c709dbe754eaf5700fd43ca3992a39f' })));
|
|
76
|
-
}
|
|
77
|
-
get el() { return this; }
|
|
78
|
-
static get style() { return balAppCss; }
|
|
79
|
-
}, [260, "bal-app", {
|
|
80
|
-
"animated": [516],
|
|
81
|
-
"ready": [1540],
|
|
82
|
-
"setFocus": [64]
|
|
83
|
-
}]);
|
|
84
|
-
__decorate([
|
|
85
|
-
Logger('bal-app'),
|
|
86
|
-
__metadata("design:type", Function),
|
|
87
|
-
__metadata("design:paramtypes", [Function]),
|
|
88
|
-
__metadata("design:returntype", void 0)
|
|
89
|
-
], App.prototype, "createLogger", null);
|
|
90
|
-
function defineCustomElement$1() {
|
|
91
|
-
if (typeof customElements === "undefined") {
|
|
92
|
-
return;
|
|
93
|
-
}
|
|
94
|
-
const components = ["bal-app"];
|
|
95
|
-
components.forEach(tagName => { switch (tagName) {
|
|
96
|
-
case "bal-app":
|
|
97
|
-
if (!customElements.get(tagName)) {
|
|
98
|
-
customElements.define(tagName, App);
|
|
99
|
-
}
|
|
100
|
-
break;
|
|
101
|
-
} });
|
|
102
|
-
}
|
|
1
|
+
import { A as App, d as defineCustomElement$1 } from './bal-app2.js';
|
|
103
2
|
|
|
104
3
|
const BalApp = App;
|
|
105
4
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, 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 { s as startFocusVisible } from './focus-visible.js';
|
|
6
|
+
import { q as debounce, n as rIC, l as rOnLoad } from './helpers.js';
|
|
7
|
+
import { L as Logger } from './log.js';
|
|
8
|
+
import { b as updateBalAnimated } from './config.utils.js';
|
|
9
|
+
|
|
10
|
+
const balAppCss = ":root{--bal-app-height:100%}.bal-app{position:relative}.lcp-wait{opacity:0;visibility:hidden;display:none}.lcp-ready .lcp-wait{opacity:inherit;visibility:inherit;display:inherit}";
|
|
11
|
+
|
|
12
|
+
const App = /*@__PURE__*/ proxyCustomElement(class App extends HTMLElement {
|
|
13
|
+
constructor(registerHost) {
|
|
14
|
+
super();
|
|
15
|
+
if (registerHost !== false) {
|
|
16
|
+
this.__registerHost();
|
|
17
|
+
}
|
|
18
|
+
this.balAppReady = createEvent(this, "balAppReady", 7);
|
|
19
|
+
this.debouncedNotify = debounce(() => this.notifyResize(), 100);
|
|
20
|
+
/**
|
|
21
|
+
* Disables all animation inside the bal-app. Can be used for simplify e2e testing.
|
|
22
|
+
*/
|
|
23
|
+
this.animated = true;
|
|
24
|
+
/**
|
|
25
|
+
* @internal Is `true` when DS components are ready to be shown.
|
|
26
|
+
*/
|
|
27
|
+
this.ready = false;
|
|
28
|
+
this.notifyResize = async () => {
|
|
29
|
+
if (balBrowser.hasDocument && balBrowser.hasWindow) {
|
|
30
|
+
const doc = document.documentElement;
|
|
31
|
+
doc.style.setProperty('--bal-app-height', `${window.innerHeight}px`);
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
createLogger(log) {
|
|
36
|
+
this.log = log;
|
|
37
|
+
}
|
|
38
|
+
connectedCallback() {
|
|
39
|
+
if (this.animated === false) {
|
|
40
|
+
updateBalAnimated(this.animated);
|
|
41
|
+
}
|
|
42
|
+
if (balBrowser.hasWindow) {
|
|
43
|
+
window.addEventListener('resize', this.debouncedNotify);
|
|
44
|
+
this.debouncedNotify();
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
componentDidLoad() {
|
|
48
|
+
rIC(() => {
|
|
49
|
+
this.ready = true;
|
|
50
|
+
startFocusVisible();
|
|
51
|
+
});
|
|
52
|
+
rOnLoad(() => {
|
|
53
|
+
if (balBrowser.hasDocument && balBrowser.hasWindow) {
|
|
54
|
+
const doc = document.documentElement;
|
|
55
|
+
doc.classList.add('lcp-ready');
|
|
56
|
+
this.balAppReady.emit();
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
disconnectedCallback() {
|
|
61
|
+
if (balBrowser.hasWindow) {
|
|
62
|
+
window.removeEventListener('resize', this.debouncedNotify);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
async setFocus(elements) {
|
|
66
|
+
if (this.focusVisible) {
|
|
67
|
+
this.focusVisible.setFocus(elements);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
render() {
|
|
71
|
+
return (h(Host, { key: 'e6229236201fea92c4ccb1812f2f280a06130889', class: {
|
|
72
|
+
'bal-app': true,
|
|
73
|
+
'bal-app--safari': balBrowser.isSafari,
|
|
74
|
+
'bal-app--touch': balDevice.hasTouchScreen,
|
|
75
|
+
} }, h("slot", { key: '7712c7609c709dbe754eaf5700fd43ca3992a39f' })));
|
|
76
|
+
}
|
|
77
|
+
get el() { return this; }
|
|
78
|
+
static get style() { return balAppCss; }
|
|
79
|
+
}, [260, "bal-app", {
|
|
80
|
+
"animated": [516],
|
|
81
|
+
"ready": [1540],
|
|
82
|
+
"setFocus": [64]
|
|
83
|
+
}]);
|
|
84
|
+
__decorate([
|
|
85
|
+
Logger('bal-app'),
|
|
86
|
+
__metadata("design:type", Function),
|
|
87
|
+
__metadata("design:paramtypes", [Function]),
|
|
88
|
+
__metadata("design:returntype", void 0)
|
|
89
|
+
], App.prototype, "createLogger", null);
|
|
90
|
+
function defineCustomElement() {
|
|
91
|
+
if (typeof customElements === "undefined") {
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
const components = ["bal-app"];
|
|
95
|
+
components.forEach(tagName => { switch (tagName) {
|
|
96
|
+
case "bal-app":
|
|
97
|
+
if (!customElements.get(tagName)) {
|
|
98
|
+
customElements.define(tagName, App);
|
|
99
|
+
}
|
|
100
|
+
break;
|
|
101
|
+
} });
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export { App as A, defineCustomElement as d };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { a as ariaBooleanToString } from './aria.js';
|
|
3
3
|
import { i as inheritAttributes } from './attributes.js';
|
|
4
|
-
import {
|
|
4
|
+
import { l as rOnLoad } from './helpers.js';
|
|
5
5
|
import { d as defineCustomElement$2 } from './bal-icon2.js';
|
|
6
6
|
import { d as defineCustomElement$1 } from './bal-spinner2.js';
|
|
7
7
|
|
|
@@ -2,7 +2,7 @@ import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/
|
|
|
2
2
|
import { s as sanitizeSvg } from './svg.js';
|
|
3
3
|
import { i as inheritAttributes } from './attributes.js';
|
|
4
4
|
import { B as BEM } from './bem.js';
|
|
5
|
-
import {
|
|
5
|
+
import { l as rOnLoad, a as waitAfterFramePaint } from './helpers.js';
|
|
6
6
|
import { t as toKebabCase } from './string.js';
|
|
7
7
|
|
|
8
8
|
const CarouselItem = /*@__PURE__*/ proxyCustomElement(class CarouselItem extends HTMLElement {
|
|
@@ -6,7 +6,7 @@ import { i as inheritAttributes } from './attributes.js';
|
|
|
6
6
|
import { B as BEM } from './bem.js';
|
|
7
7
|
import { d as defaultBalAriaForm } from './form.js';
|
|
8
8
|
import { s as stopEventBubbling } from './form-input.js';
|
|
9
|
-
import { i as isDescendant,
|
|
9
|
+
import { i as isDescendant, m as hasTagName } from './helpers.js';
|
|
10
10
|
import { L as Logger } from './log.js';
|
|
11
11
|
import { d as defineCustomElement$2 } from './bal-checkbox2.js';
|
|
12
12
|
import { L as ListenToFocus } from './focus.decorator.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h, proxyCustomElement, HTMLElement, createEvent, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { _ as __decorate, a as __metadata } from './tslib.es6.js';
|
|
3
3
|
import { B as BEM } from './bem.js';
|
|
4
|
-
import {
|
|
4
|
+
import { a as waitAfterFramePaint } from './helpers.js';
|
|
5
5
|
import { L as Logger } from './log.js';
|
|
6
6
|
import { p as padStart } from './index3.js';
|
|
7
7
|
import { i as isNil } from './index2.js';
|
package/components/bal-date.js
CHANGED
|
@@ -9,7 +9,7 @@ import { b as balFloatingUi } from './floating-ui.js';
|
|
|
9
9
|
import { F as FOCUS_KEYS } from './focus-visible.js';
|
|
10
10
|
import { d as defaultBalAriaForm } from './form.js';
|
|
11
11
|
import { s as stopEventBubbling } from './form-input.js';
|
|
12
|
-
import {
|
|
12
|
+
import { n as rIC, k as debounceEvent, o as addEventListener, p as removeEventListener, b as waitAfterIdleCallback } from './helpers.js';
|
|
13
13
|
import { L as Logger } from './log.js';
|
|
14
14
|
import { i as i18nBalDate } from './bal-date.i18n.js';
|
|
15
15
|
import { d as defineCustomElement$6 } from './bal-date-calendar2.js';
|
|
@@ -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;
|