@baloise/ds-core 19.9.1 → 19.9.2-nightly.20260312
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 +2 -2
- 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 +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-777471c320.entry.js → p-02ee94f3eb.entry.js} +1 -1
- package/dist/baloise-design-system/{p-3d9d33c487.entry.js → p-0778a72803.entry.js} +1 -1
- package/dist/baloise-design-system/{p-d5de2680ad.system.entry.js → p-0d2edc9dc7.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-213c4d93f4.system.entry.js → p-0ecfe12b56.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-38d8f6459e.system.entry.js → p-10752c6cb1.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-239ed27774.entry.js → p-16aaf58f8f.entry.js} +1 -1
- package/dist/baloise-design-system/p-17f8332c84.entry.js +1 -0
- package/dist/baloise-design-system/{p-f4c4d03e6e.entry.js → p-1dbd8b9957.entry.js} +1 -1
- package/dist/baloise-design-system/p-21ea7b32f1.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-1c913d4359.entry.js → p-290e7bb92d.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-b1877d6778.system.entry.js → p-520738abbb.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-5ed691fea4.system.entry.js → p-61ee73a3e5.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-a9d42c63a1.system.entry.js → p-6691861d31.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-1f0f2e599d.entry.js → p-770d13acc8.entry.js} +1 -1
- package/dist/baloise-design-system/{p-78eb8b6cd9.system.entry.js → p-7c7f374fc8.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-3ec4feac2e.entry.js → p-8b5f57a8e6.entry.js} +1 -1
- package/dist/baloise-design-system/{p-198c6e75ad.entry.js → p-8e7a06847d.entry.js} +1 -1
- package/dist/baloise-design-system/{p-25dce380f8.system.entry.js → p-8fac435a34.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-f481d72c52.system.entry.js → p-94ff5782d1.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-12d43e06d9.entry.js → p-9765bc96ba.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-BzAHSyRi.js → p-BTcRU1Tz.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-C_qvcMEM.system.js +1 -0
- package/dist/baloise-design-system/{p-G8UK5F7H.system.js → p-DCHC0AH7.system.js} +1 -1
- package/dist/baloise-design-system/{p-4MIQMEtx.js → p-DDuMi9h4.js} +1 -1
- package/dist/baloise-design-system/{p-P4eJh_wN.js → p-DFbJ5rLM.js} +1 -1
- package/dist/baloise-design-system/{p-CkIgsCwS.system.js → p-DMMhOU8k.system.js} +1 -1
- package/dist/baloise-design-system/{p-C8LDaK6Z.system.js → p-Duesi2dC.system.js} +1 -1
- package/dist/baloise-design-system/{p-DvahsaGu.system.js → p-DyfQv-rM.system.js} +1 -1
- package/dist/baloise-design-system/p-Ectc3YAG.js +1 -0
- package/dist/baloise-design-system/p-ab726e7c00.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-0c0190dc67.system.entry.js → p-af441cfe18.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-bc641f2029.system.entry.js → p-b5e2c799a3.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-01b27feafd.entry.js → p-d491382825.entry.js} +1 -1
- package/dist/baloise-design-system/{p-f22c5ab5ed.system.entry.js → p-e159283b34.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-dafa925d2c.entry.js → p-e22452574f.entry.js} +1 -1
- package/dist/baloise-design-system/{p-992840a30d.entry.js → p-e9e31dbf56.entry.js} +1 -1
- package/dist/cjs/app-globals-DcKvQZAC.js +7 -0
- package/dist/cjs/bal-carousel_2.cjs.entry.js +3 -3
- 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-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 +4 -4
- 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 +3 -3
- package/dist/cjs/baloise-design-system.cjs.js +3 -2
- package/dist/cjs/{breakpoints.decorator-Cc1aDi12.js → breakpoints.decorator-sCge_U_Z.js} +1 -1
- package/dist/cjs/{breakpoints.subject-CEyIkleD.js → breakpoints.subject-PcWc3le6.js} +1 -1
- 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/{tokens.esm-CO4NpDkI.js → tokens.esm-DNfnPMKX.js} +1 -1
- package/dist/cjs/{window-resize.decorator-DiYHzl6q.js → window-resize.decorator-65VFDwhd.js} +1 -1
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/bal-logo/bal-logo.js +0 -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 +3 -3
- package/dist/esm/bal-doc-app.entry.js +229 -0
- package/dist/esm/bal-field_5.entry.js +3 -3
- 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 +4 -4
- 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 +3 -3
- package/dist/esm/baloise-design-system.js +3 -2
- package/dist/esm/{breakpoints.decorator-CFE2cXqN.js → breakpoints.decorator-CurQay1T.js} +1 -1
- package/dist/esm/{breakpoints.subject-BtghxYYt.js → breakpoints.subject-BXtYBhFC.js} +1 -1
- 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/{tokens.esm-DcKTia-G.js → tokens.esm-CKoK3EFm.js} +1 -1
- package/dist/esm/{window-resize.decorator-DJtj2dCF.js → window-resize.decorator-BjJrAdhX.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-doc-app.entry.js +1 -0
- package/dist/esm-es5/bal-field_5.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-CFE2cXqN.js → breakpoints.decorator-CurQay1T.js} +1 -1
- package/dist/esm-es5/{breakpoints.subject-BtghxYYt.js → breakpoints.subject-BXtYBhFC.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/{window-resize.decorator-DJtj2dCF.js → window-resize.decorator-BjJrAdhX.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/package.json +6 -6
- package/dist/baloise-design-system/p-0732a81f81.entry.js +0 -1
- package/dist/baloise-design-system/p-6620c99966.system.entry.js +0 -1
- package/dist/baloise-design-system/p-Bk7UdnZ5.system.js +0 -1
- package/dist/baloise-design-system/p-CKN3W8qn.js +0 -1
- package/dist/esm-es5/app-globals-Blx--ecs.js +0 -1
- /package/dist/baloise-design-system/{p-DcKTia-G.js → p-CKoK3EFm.js} +0 -0
- /package/dist/baloise-design-system/{p-q1IO5uRR.system.js → p-DLdNtVfE.system.js} +0 -0
- /package/dist/esm-es5/{tokens.esm-DcKTia-G.js → tokens.esm-CKoK3EFm.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';
|
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;
|