@baloise/ds-core 19.9.2 → 19.9.3-nightly.20260403
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 +34 -12
- 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.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-591debd7c3.entry.js → p-0d4f106841.entry.js} +1 -1
- package/dist/baloise-design-system/p-21ea7b32f1.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-35a5ef54a0.system.entry.js → p-21f1707096.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-1f5ead4b22.entry.js → p-2a39bddb32.entry.js} +1 -1
- package/dist/baloise-design-system/{p-1d1f8316d7.system.entry.js → p-2ceb3f6333.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-414a850825.system.entry.js → p-355dab162a.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-874298b6f3.system.entry.js → p-3a19ba2b9b.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-62d22238a8.system.entry.js → p-3a3484447d.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-8f0624929d.system.entry.js → p-42e73341e6.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-550f1b809a.entry.js → p-4f3188d84d.entry.js} +1 -1
- package/dist/baloise-design-system/{p-5e3d004ff0.entry.js → p-523b4b23c2.entry.js} +1 -1
- package/dist/baloise-design-system/{p-778faed2c9.entry.js → p-5443ea92b6.entry.js} +1 -1
- package/dist/baloise-design-system/{p-d8f0f0e341.system.entry.js → p-57e2653070.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-402da722fc.system.entry.js → p-63383e4905.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-a19115481e.entry.js → p-65fabe9f0a.entry.js} +1 -1
- package/dist/baloise-design-system/p-68c75901a4.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-396bf929bc.system.entry.js → p-6dd84402db.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-3f3fd4d0fb.entry.js → p-720cba47c9.entry.js} +1 -1
- package/dist/baloise-design-system/p-7563a0a66d.entry.js +1 -0
- package/dist/baloise-design-system/{p-c638ff8e96.system.entry.js → p-81de2b6ce9.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-9e1dd8fae9.system.entry.js → p-84c44e94a1.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-BT9kotrD.system.js → p-8ShVW5i8.system.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-BIQomDzv.system.js +1 -0
- package/dist/baloise-design-system/p-BRAmUyPx.system.js +1 -1
- package/dist/baloise-design-system/{p-BLNTV2y9.js → p-Bj1UIKJa.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-OSNEECer.js → p-CWl_Z8Ck.js} +1 -1
- package/dist/baloise-design-system/p-C_qvcMEM.system.js +1 -0
- package/dist/baloise-design-system/p-Ectc3YAG.js +1 -0
- package/dist/baloise-design-system/{p-lqmCqCXD.system.js → p-If81YPiv.system.js} +1 -1
- package/dist/baloise-design-system/{p-D4HExdbi.system.js → p-WD7fTBn2.system.js} +1 -1
- package/dist/baloise-design-system/{p-3111be34fe.entry.js → p-a7819c965d.entry.js} +1 -1
- package/dist/baloise-design-system/{p-98b209c6fb.entry.js → p-ac26bf1c41.entry.js} +1 -1
- package/dist/baloise-design-system/{p-4fd089ea55.entry.js → p-b30d16fc24.entry.js} +1 -1
- package/dist/baloise-design-system/{p-0858ef65f2.system.entry.js → p-be738b2b15.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-ce1ac691fc.entry.js → p-c534dba230.entry.js} +1 -1
- package/dist/baloise-design-system/{p-33a49c1b2b.system.entry.js → p-c8d1052385.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-4d7d8d1fd3.entry.js → p-e8a5dc1823.entry.js} +1 -1
- package/dist/baloise-design-system/{p-ca021528cf.entry.js → p-ef35eaa717.entry.js} +1 -1
- package/dist/baloise-design-system/{p-cnNPy_UF.js → p-mpQwTmfD.js} +1 -1
- package/dist/cjs/app-globals-DcKvQZAC.js +7 -0
- package/dist/cjs/bal-accordion_4.cjs.entry.js +33 -11
- 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 +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 +3 -3
- package/dist/cjs/baloise-design-system.cjs.js +3 -2
- package/dist/cjs/{breakpoints.decorator-BLbtZQPE.js → breakpoints.decorator-B8DRTYL_.js} +1 -1
- package/dist/cjs/{breakpoints.subject-Dm5PhV8R.js → breakpoints.subject-Bkyagu5K.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-DizoRyJW.js → tokens.esm-BZIpYmb1.js} +1 -1
- package/dist/cjs/{window-resize.decorator-0M6RxXln.js → window-resize.decorator-51XJuaGr.js} +1 -1
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/bal-accordion/bal-accordion.js +33 -11
- 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-accordion_4.entry.js +33 -11
- 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 +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 +3 -3
- package/dist/esm/baloise-design-system.js +3 -2
- package/dist/esm/{breakpoints.decorator-D8tyvKfl.js → breakpoints.decorator-DiyER4G8.js} +1 -1
- package/dist/esm/{breakpoints.subject-C7sMRxmL.js → breakpoints.subject-C7x4XnK0.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-CggbMUrI.js → tokens.esm-CVJxXAEJ.js} +1 -1
- package/dist/esm/{window-resize.decorator-CzU20wtn.js → window-resize.decorator-DpVzfcm-.js} +1 -1
- package/dist/esm-es5/app-globals-CIj5uAPM.js +1 -0
- package/dist/esm-es5/bal-accordion_4.entry.js +1 -1
- 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-D8tyvKfl.js → breakpoints.decorator-DiyER4G8.js} +1 -1
- package/dist/esm-es5/{breakpoints.subject-C7sMRxmL.js → breakpoints.subject-C7x4XnK0.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-CzU20wtn.js → window-resize.decorator-DpVzfcm-.js} +1 -1
- package/dist/types/components/bal-accordion/bal-accordion.d.ts +3 -0
- 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-Bk7UdnZ5.system.js +0 -1
- package/dist/baloise-design-system/p-CKN3W8qn.js +0 -1
- package/dist/baloise-design-system/p-aec5e73a82.system.entry.js +0 -1
- package/dist/baloise-design-system/p-aqkRpbjU.system.js +0 -1
- package/dist/baloise-design-system/p-ce2de36f43.entry.js +0 -1
- package/dist/esm-es5/app-globals-Blx--ecs.js +0 -1
- /package/dist/baloise-design-system/{p-DYEfn6Be.system.js → p-C9MTMdnA.system.js} +0 -0
- /package/dist/baloise-design-system/{p-CggbMUrI.js → p-CVJxXAEJ.js} +0 -0
- /package/dist/esm-es5/{tokens.esm-CggbMUrI.js → tokens.esm-CVJxXAEJ.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';
|
|
@@ -20,6 +20,7 @@ const Accordion = /*@__PURE__*/ proxyCustomElement(class Accordion extends HTMLE
|
|
|
20
20
|
this.balWillAnimate = createEvent(this, "balWillAnimate", 7);
|
|
21
21
|
this.balDidAnimate = createEvent(this, "balDidAnimate", 7);
|
|
22
22
|
this.componentId = `bal-accordion-${accordionIds++}`;
|
|
23
|
+
this.animationGeneration = 0;
|
|
23
24
|
this.state = 1 /* AccordionState.Collapsed */;
|
|
24
25
|
this.animated = true;
|
|
25
26
|
/**
|
|
@@ -101,6 +102,17 @@ const Accordion = /*@__PURE__*/ proxyCustomElement(class Accordion extends HTMLE
|
|
|
101
102
|
summaryElement.active = this.active;
|
|
102
103
|
}
|
|
103
104
|
};
|
|
105
|
+
this.cancelAnimation = () => {
|
|
106
|
+
if (this.currentRaf !== undefined) {
|
|
107
|
+
cancelAnimationFrame(this.currentRaf);
|
|
108
|
+
this.currentRaf = undefined;
|
|
109
|
+
}
|
|
110
|
+
if (this.currentRafInner !== undefined) {
|
|
111
|
+
cancelAnimationFrame(this.currentRafInner);
|
|
112
|
+
this.currentRafInner = undefined;
|
|
113
|
+
}
|
|
114
|
+
this.animationGeneration++;
|
|
115
|
+
};
|
|
104
116
|
this.expand = (initialUpdate = false) => {
|
|
105
117
|
this.active = true;
|
|
106
118
|
const detailsElement = this.detailsElement;
|
|
@@ -112,18 +124,23 @@ const Accordion = /*@__PURE__*/ proxyCustomElement(class Accordion extends HTMLE
|
|
|
112
124
|
if (this.state === 4 /* AccordionState.Expanded */) {
|
|
113
125
|
return this.active;
|
|
114
126
|
}
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
}
|
|
127
|
+
this.cancelAnimation();
|
|
128
|
+
const generation = this.animationGeneration;
|
|
118
129
|
if (this.shouldAnimate()) {
|
|
119
|
-
raf(() => {
|
|
130
|
+
this.currentRaf = raf(() => {
|
|
131
|
+
if (generation !== this.animationGeneration)
|
|
132
|
+
return;
|
|
120
133
|
this.setState(8 /* AccordionState.Expanding */);
|
|
121
134
|
this.balWillAnimate.emit(this.active);
|
|
122
|
-
this.
|
|
135
|
+
this.currentRafInner = raf(async () => {
|
|
136
|
+
if (generation !== this.animationGeneration)
|
|
137
|
+
return;
|
|
123
138
|
const contentHeight = detailsWrapperElement.offsetHeight;
|
|
124
139
|
const waitForTransition = transitionEndAsync(detailsElement, 300);
|
|
125
140
|
detailsElement.style.setProperty('max-height', `${contentHeight}px`);
|
|
126
141
|
await waitForTransition;
|
|
142
|
+
if (generation !== this.animationGeneration)
|
|
143
|
+
return;
|
|
127
144
|
this.setState(4 /* AccordionState.Expanded */);
|
|
128
145
|
detailsElement.style.removeProperty('max-height');
|
|
129
146
|
this.balDidAnimate.emit(this.active);
|
|
@@ -147,18 +164,23 @@ const Accordion = /*@__PURE__*/ proxyCustomElement(class Accordion extends HTMLE
|
|
|
147
164
|
if (this.state === 1 /* AccordionState.Collapsed */) {
|
|
148
165
|
return this.active;
|
|
149
166
|
}
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
}
|
|
167
|
+
this.cancelAnimation();
|
|
168
|
+
const generation = this.animationGeneration;
|
|
153
169
|
if (this.shouldAnimate()) {
|
|
154
170
|
this.currentRaf = raf(async () => {
|
|
171
|
+
if (generation !== this.animationGeneration)
|
|
172
|
+
return;
|
|
155
173
|
const contentHeight = detailsElement.offsetHeight;
|
|
156
174
|
detailsElement.style.setProperty('max-height', `${contentHeight}px`);
|
|
157
|
-
raf(async () => {
|
|
175
|
+
this.currentRafInner = raf(async () => {
|
|
176
|
+
if (generation !== this.animationGeneration)
|
|
177
|
+
return;
|
|
158
178
|
const waitForTransition = transitionEndAsync(detailsElement, 300);
|
|
159
179
|
this.setState(2 /* AccordionState.Collapsing */);
|
|
160
|
-
this.
|
|
180
|
+
this.balWillAnimate.emit(this.active);
|
|
161
181
|
await waitForTransition;
|
|
182
|
+
if (generation !== this.animationGeneration)
|
|
183
|
+
return;
|
|
162
184
|
this.setState(1 /* AccordionState.Collapsed */);
|
|
163
185
|
detailsElement.style.removeProperty('max-height');
|
|
164
186
|
this.balDidAnimate.emit(this.active);
|
|
@@ -166,7 +188,7 @@ const Accordion = /*@__PURE__*/ proxyCustomElement(class Accordion extends HTMLE
|
|
|
166
188
|
});
|
|
167
189
|
}
|
|
168
190
|
else {
|
|
169
|
-
this.
|
|
191
|
+
this.balWillAnimate.emit(this.active);
|
|
170
192
|
this.setState(1 /* AccordionState.Collapsed */);
|
|
171
193
|
this.balDidAnimate.emit(this.active);
|
|
172
194
|
}
|
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;
|