@baloise/ds-core 17.2.0 → 17.2.1-nightly.20241219
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/all.d.ts +2 -0
- package/components/all.js +3 -0
- package/components/bal-app.js +1 -93
- package/components/bal-app2.js +95 -0
- package/components/bal-carousel2.js +1 -1
- package/components/bal-close2.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 +262 -0
- package/components/bal-input-date2.js +2 -2
- package/components/bal-list-item-accordion-body2.js +3 -3
- package/components/bal-pagination2.js +4 -4
- package/components/bal-segment.js +1 -1
- package/components/bal-stage-image.js +1 -1
- package/components/bal-tabs2.js +12 -14
- package/components/index.js +5 -304
- package/components/initialize.js +303 -0
- package/components/mutation.decorator.js +11 -13
- package/components/tokens.esm.js +1 -1
- package/dist/baloise-design-system/baloise-design-system.esm.js +1 -1
- package/dist/baloise-design-system/baloise-design-system.js +1 -1
- package/dist/baloise-design-system/index.esm.js +1 -1
- package/dist/baloise-design-system/{p-246e9e2585.system.entry.js → p-0165eb3271.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-799a292492.entry.js → p-04979ee232.entry.js} +1 -1
- package/dist/baloise-design-system/{p-d1c71ad702.entry.js → p-13799acb4f.entry.js} +1 -1
- package/dist/baloise-design-system/{p-73efab2c3a.system.entry.js → p-18781c4bb5.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-cc4dc17721.system.entry.js → p-18fbeec32d.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-aebb3198c4.system.entry.js → p-1cb1fb71d4.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-c045d5a57c.system.entry.js → p-20d7a74311.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-56f5e6d1.system.js → p-2765fa95.system.js} +1 -1
- package/dist/baloise-design-system/p-28180788a0.entry.js +1 -0
- package/dist/baloise-design-system/{p-fd88b00c71.system.entry.js → p-32d5481b75.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-e3a563de25.system.entry.js → p-374ce10b98.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-9f83acd71d.entry.js → p-39ad885d73.entry.js} +1 -1
- package/dist/baloise-design-system/{p-a7cf23072c.entry.js → p-3aef9814d4.entry.js} +1 -1
- package/dist/baloise-design-system/p-3d1747bc.system.js +1 -0
- package/dist/baloise-design-system/{p-b5152365.system.js → p-40609c07.system.js} +1 -1
- package/dist/baloise-design-system/{p-5361e8255f.system.entry.js → p-54bb55e3a8.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-576c7123.system.js +1 -0
- package/dist/baloise-design-system/{p-88be14c716.entry.js → p-5bbc6e33c0.entry.js} +1 -1
- package/dist/baloise-design-system/{p-512a273a.js → p-5e3dec59.js} +1 -1
- package/dist/baloise-design-system/p-605cf17f30.entry.js +1 -0
- package/dist/baloise-design-system/{p-a68d21a21e.system.entry.js → p-6236a3b00c.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-01cdb12b31.entry.js → p-63793834ec.entry.js} +1 -1
- package/dist/baloise-design-system/p-65b542bd.system.js +1 -1
- package/dist/baloise-design-system/{p-4023b8977a.entry.js → p-680052cf37.entry.js} +1 -1
- package/dist/baloise-design-system/{p-737eb79c75.entry.js → p-6ba0604ab2.entry.js} +1 -1
- package/dist/baloise-design-system/{p-c72669019f.system.entry.js → p-78396db7ee.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-992c49c23e.system.entry.js → p-7d63b70a40.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-de13d5c0.system.js → p-86c12274.system.js} +1 -1
- package/dist/baloise-design-system/p-877cba21c4.entry.js +1 -0
- package/dist/baloise-design-system/{p-ba38ccde00.entry.js → p-87edd14ec1.entry.js} +1 -1
- package/dist/baloise-design-system/{p-d8fb982e61.system.entry.js → p-895bd03430.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-92a6c4407c.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-9d3f7645.system.js → p-9ef02421.system.js} +1 -1
- package/dist/baloise-design-system/p-a24e650e.js +1 -0
- package/dist/baloise-design-system/p-a29f60e9.js +1 -0
- package/dist/baloise-design-system/{p-4c8470249b.system.entry.js → p-a2cb918d0b.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-b86876e144.entry.js → p-a6556b9bd0.entry.js} +1 -1
- package/dist/baloise-design-system/{p-fb2a9f7542.system.entry.js → p-a7727f8278.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-749fe3de.system.js → p-a960dc3f.system.js} +1 -1
- package/dist/baloise-design-system/{p-8e244ba61a.entry.js → p-aabb1d34da.entry.js} +1 -1
- package/dist/baloise-design-system/{p-30679d51bd.system.entry.js → p-ab64213bd1.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-3c4bbee680.system.entry.js → p-abe6a48f20.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-ccee08eae1.system.entry.js → p-b3d47ebaca.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-c412a7d9f5.system.entry.js → p-bfcf702dd3.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-be6d3bde8f.entry.js → p-c486a8a8ed.entry.js} +1 -1
- package/dist/baloise-design-system/{p-faaf77375f.system.entry.js → p-c6ee7ff820.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-eee34b1983.entry.js → p-c9b9b11a24.entry.js} +1 -1
- package/dist/baloise-design-system/p-ce674dca.js +1 -0
- package/dist/baloise-design-system/{p-8b8019c57c.entry.js → p-d67cfae0f0.entry.js} +1 -1
- package/dist/baloise-design-system/{p-34c50dfa1e.entry.js → p-dc032a0d49.entry.js} +1 -1
- package/dist/baloise-design-system/p-e3167218.js +1 -1
- package/dist/baloise-design-system/{p-749056f366.entry.js → p-e69fef658f.entry.js} +1 -1
- package/dist/baloise-design-system/{p-38eaad35.js → p-ec45ad1c.js} +1 -1
- package/dist/baloise-design-system/p-f6e118b3.js +1 -0
- package/dist/baloise-design-system/p-fabf47dd.system.js +1 -0
- package/dist/baloise-design-system/{p-13e7a8817c.entry.js → p-fb97a23d36.entry.js} +1 -1
- package/dist/cjs/app-globals-d0a40f5b.js +7 -0
- package/dist/cjs/bal-carousel_2.cjs.entry.js +5 -5
- package/dist/cjs/bal-checkbox_2.cjs.entry.js +1 -1
- package/dist/cjs/bal-close.cjs.entry.js +1 -1
- package/dist/cjs/bal-date-calendar_2.cjs.entry.js +3 -3
- package/dist/cjs/bal-date.cjs.entry.js +1 -1
- package/dist/cjs/bal-doc-app.cjs.entry.js +233 -0
- package/dist/cjs/bal-field_5.cjs.entry.js +1 -1
- package/dist/cjs/bal-hint_5.cjs.entry.js +3 -3
- package/dist/cjs/bal-list_8.cjs.entry.js +6 -6
- package/dist/cjs/bal-logo.cjs.entry.js +3 -3
- package/dist/cjs/bal-nav_8.cjs.entry.js +4 -4
- package/dist/cjs/bal-navbar_5.cjs.entry.js +3 -3
- package/dist/cjs/bal-pagination.cjs.entry.js +7 -7
- package/dist/cjs/bal-progress-bar.cjs.entry.js +4 -4
- package/dist/cjs/bal-radio_2.cjs.entry.js +1 -1
- package/dist/cjs/bal-segment_2.cjs.entry.js +5 -5
- package/dist/cjs/bal-shape.cjs.entry.js +1 -1
- package/dist/cjs/bal-stage_6.cjs.entry.js +1 -1
- package/dist/cjs/bal-steps.cjs.entry.js +4 -4
- package/dist/cjs/bal-tab-item_2.cjs.entry.js +16 -18
- package/dist/cjs/baloise-design-system.cjs.js +3 -2
- package/dist/cjs/{breakpoints.decorator-8bde2bcf.js → breakpoints.decorator-17819ac3.js} +1 -1
- package/dist/cjs/{breakpoints.subject-15687772.js → breakpoints.subject-47b018ff.js} +1 -1
- package/dist/cjs/{app-globals-661b320a.js → global-9176b6c7.js} +2 -4
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/initialize-6421e1c1.js +1 -1
- package/dist/cjs/loader.cjs.js +3 -2
- package/dist/cjs/{mutation.decorator-d2ce6c1a.js → mutation.decorator-5ac1e198.js} +10 -12
- package/dist/cjs/{tokens.esm-bdae5d02.js → tokens.esm-3d2c7866.js} +1 -1
- package/dist/cjs/{window-resize.decorator-e1fbbe1f.js → window-resize.decorator-c481d3ad.js} +1 -1
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/bal-carousel/bal-carousel.js +3 -3
- package/dist/collection/components/bal-close/bal-close.js +4 -4
- package/dist/collection/components/bal-date/bal-date-calendar/bal-date-calendar.js +1 -1
- package/dist/collection/components/bal-date/bal-date.js +3 -3
- package/dist/collection/components/bal-input/bal-input-date/bal-input-date.js +4 -4
- package/dist/collection/components/bal-list/bal-list-item-accordion-body/bal-list-item-accordion-body.js +3 -3
- package/dist/collection/components/bal-pagination/bal-pagination.js +6 -6
- package/dist/collection/components/bal-segment/bal-segment.js +1 -1
- package/dist/collection/components/bal-stage/bal-stage-image/bal-stage-image.js +1 -1
- package/dist/collection/components/bal-tabs/bal-tabs.js +12 -14
- package/dist/collection/components/docs/bal-doc-app/bal-doc-app.css +1 -0
- package/dist/collection/components/docs/bal-doc-app/bal-doc-app.js +229 -0
- package/dist/collection/utils/constants/version.constant.js +1 -1
- package/dist/collection/utils/mutation/mutation.subject.js +11 -13
- package/dist/esm/app-globals-10882328.js +5 -0
- package/dist/esm/bal-carousel_2.entry.js +5 -5
- package/dist/esm/bal-checkbox_2.entry.js +1 -1
- package/dist/esm/bal-close.entry.js +1 -1
- package/dist/esm/bal-date-calendar_2.entry.js +3 -3
- package/dist/esm/bal-date.entry.js +1 -1
- package/dist/esm/bal-doc-app.entry.js +229 -0
- package/dist/esm/bal-field_5.entry.js +1 -1
- package/dist/esm/bal-hint_5.entry.js +3 -3
- package/dist/esm/bal-list_8.entry.js +6 -6
- package/dist/esm/bal-logo.entry.js +3 -3
- package/dist/esm/bal-nav_8.entry.js +4 -4
- package/dist/esm/bal-navbar_5.entry.js +3 -3
- package/dist/esm/bal-pagination.entry.js +7 -7
- package/dist/esm/bal-progress-bar.entry.js +4 -4
- package/dist/esm/bal-radio_2.entry.js +1 -1
- package/dist/esm/bal-segment_2.entry.js +5 -5
- package/dist/esm/bal-shape.entry.js +1 -1
- package/dist/esm/bal-stage_6.entry.js +1 -1
- package/dist/esm/bal-steps.entry.js +4 -4
- package/dist/esm/bal-tab-item_2.entry.js +16 -18
- package/dist/esm/baloise-design-system.js +3 -2
- package/dist/esm/{breakpoints.decorator-7623ded8.js → breakpoints.decorator-5f5cd8a1.js} +1 -1
- package/dist/esm/{breakpoints.subject-ac2d9287.js → breakpoints.subject-f62164a1.js} +1 -1
- package/dist/esm/{app-globals-665b5c71.js → global-7dca4c85.js} +2 -4
- package/dist/esm/index.js +3 -3
- package/dist/esm/initialize-b9912138.js +1 -1
- package/dist/esm/loader.js +3 -2
- package/dist/esm/{mutation.decorator-985cc0a1.js → mutation.decorator-74831883.js} +11 -13
- package/dist/esm/{tokens.esm-44ff650d.js → tokens.esm-e42a33f5.js} +1 -1
- package/dist/esm/{window-resize.decorator-ab11c379.js → window-resize.decorator-6997c1b0.js} +1 -1
- package/dist/esm-es5/app-globals-10882328.js +1 -0
- package/dist/esm-es5/bal-carousel_2.entry.js +1 -1
- package/dist/esm-es5/bal-checkbox_2.entry.js +1 -1
- package/dist/esm-es5/bal-close.entry.js +1 -1
- package/dist/esm-es5/bal-date-calendar_2.entry.js +1 -1
- package/dist/esm-es5/bal-date.entry.js +1 -1
- package/dist/esm-es5/bal-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-radio_2.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-stage_6.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-7623ded8.js → breakpoints.decorator-5f5cd8a1.js} +1 -1
- package/dist/esm-es5/{breakpoints.subject-ac2d9287.js → breakpoints.subject-f62164a1.js} +1 -1
- package/dist/esm-es5/global-7dca4c85.js +1 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/initialize-b9912138.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mutation.decorator-74831883.js +1 -0
- package/dist/esm-es5/{window-resize.decorator-ab11c379.js → window-resize.decorator-6997c1b0.js} +1 -1
- package/dist/types/components/bal-carousel/bal-carousel.d.ts +1 -2
- package/dist/types/components/bal-close/bal-close.d.ts +1 -2
- package/dist/types/components/bal-date/bal-date-calendar/bal-date-calendar.d.ts +1 -1
- package/dist/types/components/bal-date/bal-date.d.ts +1 -2
- package/dist/types/components/bal-input/bal-input-date/bal-input-date.d.ts +1 -1
- package/dist/types/components/bal-list/bal-list-item-accordion-body/bal-list-item-accordion-body.d.ts +1 -1
- package/dist/types/components/bal-pagination/bal-pagination.d.ts +1 -2
- package/dist/types/components/bal-segment/bal-segment.d.ts +1 -1
- package/dist/types/components/docs/bal-doc-app/bal-doc-app.d.ts +21 -0
- package/dist/types/components.d.ts +44 -7
- package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/icons/src/index.d.ts +82 -0
- package/package.json +7 -7
- package/dist/baloise-design-system/p-12a557557c.entry.js +0 -1
- package/dist/baloise-design-system/p-34b1a9a33b.entry.js +0 -1
- package/dist/baloise-design-system/p-51380295.system.js +0 -1
- package/dist/baloise-design-system/p-55d6475b.js +0 -1
- package/dist/baloise-design-system/p-738ca720.system.js +0 -1
- package/dist/baloise-design-system/p-950bd476.js +0 -1
- package/dist/baloise-design-system/p-e563e447.js +0 -1
- package/dist/esm-es5/app-globals-665b5c71.js +0 -1
- package/dist/esm-es5/mutation.decorator-985cc0a1.js +0 -1
- /package/dist/baloise-design-system/{p-18a74018.js → p-05047b2e.js} +0 -0
- /package/dist/baloise-design-system/{p-69313d59.system.js → p-7f6db7d0.system.js} +0 -0
- /package/dist/esm-es5/{tokens.esm-44ff650d.js → tokens.esm-e42a33f5.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'
|
|
@@ -144,6 +145,7 @@ export { BalDate, defineBalDate }
|
|
|
144
145
|
export { BalDateCalendar, defineBalDateCalendar }
|
|
145
146
|
export { BalDateCalendarCell, defineBalDateCalendarCell }
|
|
146
147
|
export { BalDivider, defineBalDivider }
|
|
148
|
+
export { BalDocApp, defineBalDocApp }
|
|
147
149
|
export { BalDropdown, defineBalDropdown }
|
|
148
150
|
export { BalField, defineBalField }
|
|
149
151
|
export { BalFieldControl, defineBalFieldControl }
|
package/components/all.js
CHANGED
|
@@ -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'
|
|
@@ -144,6 +145,7 @@ export { BalDate, defineBalDate }
|
|
|
144
145
|
export { BalDateCalendar, defineBalDateCalendar }
|
|
145
146
|
export { BalDateCalendarCell, defineBalDateCalendarCell }
|
|
146
147
|
export { BalDivider, defineBalDivider }
|
|
148
|
+
export { BalDocApp, defineBalDocApp }
|
|
147
149
|
export { BalDropdown, defineBalDropdown }
|
|
148
150
|
export { BalField, defineBalField }
|
|
149
151
|
export { BalFieldControl, defineBalFieldControl }
|
|
@@ -262,6 +264,7 @@ export const defineAllComponents = () => {
|
|
|
262
264
|
defineBalDateCalendar()
|
|
263
265
|
defineBalDateCalendarCell()
|
|
264
266
|
defineBalDivider()
|
|
267
|
+
defineBalDocApp()
|
|
265
268
|
defineBalDropdown()
|
|
266
269
|
defineBalField()
|
|
267
270
|
defineBalFieldControl()
|
package/components/bal-app.js
CHANGED
|
@@ -1,96 +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 { j as debounce, o as rIC, l as rLCP } from './helpers.js';
|
|
6
|
-
import { L as Logger } from './log.js';
|
|
7
|
-
import { s as startFocusVisible } from './focus-visible.js';
|
|
8
|
-
import { b as updateBalAnimated } from './config.utils.js';
|
|
9
|
-
|
|
10
|
-
const balAppCss = ":root{--bal-app-height:100%}.bal-app{position:relative;display:block}.lcp-wait{opacity:0;visibility:hidden;display:none}.lcp-ready .lcp-wait{opacity:inherit;visibility:inherit;display:inherit}";
|
|
11
|
-
const BalAppStyle0 = balAppCss;
|
|
12
|
-
|
|
13
|
-
const App = /*@__PURE__*/ proxyCustomElement(class App extends HTMLElement {
|
|
14
|
-
constructor() {
|
|
15
|
-
super();
|
|
16
|
-
this.__registerHost();
|
|
17
|
-
this.debouncedNotify = debounce(() => this.notifyResize(), 100);
|
|
18
|
-
this.notifyResize = async () => {
|
|
19
|
-
if (balBrowser.hasDocument && balBrowser.hasWindow) {
|
|
20
|
-
const doc = document.documentElement;
|
|
21
|
-
doc.style.setProperty('--bal-app-height', `${window.innerHeight}px`);
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
this.animated = true;
|
|
25
|
-
this.ready = false;
|
|
26
|
-
}
|
|
27
|
-
createLogger(log) {
|
|
28
|
-
this.log = log;
|
|
29
|
-
}
|
|
30
|
-
connectedCallback() {
|
|
31
|
-
if (this.animated === false) {
|
|
32
|
-
updateBalAnimated(this.animated);
|
|
33
|
-
}
|
|
34
|
-
if (balBrowser.hasWindow) {
|
|
35
|
-
window.addEventListener('resize', this.debouncedNotify);
|
|
36
|
-
this.debouncedNotify();
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
componentDidLoad() {
|
|
40
|
-
rIC(() => {
|
|
41
|
-
this.ready = true;
|
|
42
|
-
startFocusVisible();
|
|
43
|
-
});
|
|
44
|
-
rLCP(() => {
|
|
45
|
-
if (balBrowser.hasDocument && balBrowser.hasWindow) {
|
|
46
|
-
const doc = document.documentElement;
|
|
47
|
-
doc.classList.add('lcp-ready');
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
disconnectedCallback() {
|
|
52
|
-
if (balBrowser.hasWindow) {
|
|
53
|
-
window.removeEventListener('resize', this.debouncedNotify);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
async setFocus(elements) {
|
|
57
|
-
if (this.focusVisible) {
|
|
58
|
-
this.focusVisible.setFocus(elements);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
render() {
|
|
62
|
-
return (h(Host, { key: '8e124474f0e95f8fdcd4546d7998556764d81d71', class: {
|
|
63
|
-
'bal-app': true,
|
|
64
|
-
'bal-app--safari': balBrowser.isSafari,
|
|
65
|
-
'bal-app--touch': balDevice.hasTouchScreen,
|
|
66
|
-
} }, h("slot", { key: 'e4a8974a3f55ec71c4ff7c46f2a9728d7efd4408' })));
|
|
67
|
-
}
|
|
68
|
-
get el() { return this; }
|
|
69
|
-
static get style() { return BalAppStyle0; }
|
|
70
|
-
}, [4, "bal-app", {
|
|
71
|
-
"animated": [516],
|
|
72
|
-
"ready": [1540],
|
|
73
|
-
"setFocus": [64]
|
|
74
|
-
}]);
|
|
75
|
-
__decorate([
|
|
76
|
-
Logger('bal-app'),
|
|
77
|
-
__metadata("design:type", Function),
|
|
78
|
-
__metadata("design:paramtypes", [Function]),
|
|
79
|
-
__metadata("design:returntype", void 0)
|
|
80
|
-
], App.prototype, "createLogger", null);
|
|
81
|
-
function defineCustomElement$1() {
|
|
82
|
-
if (typeof customElements === "undefined") {
|
|
83
|
-
return;
|
|
84
|
-
}
|
|
85
|
-
const components = ["bal-app"];
|
|
86
|
-
components.forEach(tagName => { switch (tagName) {
|
|
87
|
-
case "bal-app":
|
|
88
|
-
if (!customElements.get(tagName)) {
|
|
89
|
-
customElements.define(tagName, App);
|
|
90
|
-
}
|
|
91
|
-
break;
|
|
92
|
-
} });
|
|
93
|
-
}
|
|
1
|
+
import { A as App, d as defineCustomElement$1 } from './bal-app2.js';
|
|
94
2
|
|
|
95
3
|
const BalApp = App;
|
|
96
4
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { _ as __decorate, a as __metadata } from './tslib.es6.js';
|
|
3
|
+
import { b as balBrowser } from './browser.js';
|
|
4
|
+
import { b as balDevice } from './device.js';
|
|
5
|
+
import { j as debounce, o as rIC, l as rLCP } from './helpers.js';
|
|
6
|
+
import { L as Logger } from './log.js';
|
|
7
|
+
import { s as startFocusVisible } from './focus-visible.js';
|
|
8
|
+
import { b as updateBalAnimated } from './config.utils.js';
|
|
9
|
+
|
|
10
|
+
const balAppCss = ":root{--bal-app-height:100%}.bal-app{position:relative;display:block}.lcp-wait{opacity:0;visibility:hidden;display:none}.lcp-ready .lcp-wait{opacity:inherit;visibility:inherit;display:inherit}";
|
|
11
|
+
const BalAppStyle0 = balAppCss;
|
|
12
|
+
|
|
13
|
+
const App = /*@__PURE__*/ proxyCustomElement(class App extends HTMLElement {
|
|
14
|
+
constructor() {
|
|
15
|
+
super();
|
|
16
|
+
this.__registerHost();
|
|
17
|
+
this.debouncedNotify = debounce(() => this.notifyResize(), 100);
|
|
18
|
+
this.notifyResize = async () => {
|
|
19
|
+
if (balBrowser.hasDocument && balBrowser.hasWindow) {
|
|
20
|
+
const doc = document.documentElement;
|
|
21
|
+
doc.style.setProperty('--bal-app-height', `${window.innerHeight}px`);
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
this.animated = true;
|
|
25
|
+
this.ready = false;
|
|
26
|
+
}
|
|
27
|
+
createLogger(log) {
|
|
28
|
+
this.log = log;
|
|
29
|
+
}
|
|
30
|
+
connectedCallback() {
|
|
31
|
+
if (this.animated === false) {
|
|
32
|
+
updateBalAnimated(this.animated);
|
|
33
|
+
}
|
|
34
|
+
if (balBrowser.hasWindow) {
|
|
35
|
+
window.addEventListener('resize', this.debouncedNotify);
|
|
36
|
+
this.debouncedNotify();
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
componentDidLoad() {
|
|
40
|
+
rIC(() => {
|
|
41
|
+
this.ready = true;
|
|
42
|
+
startFocusVisible();
|
|
43
|
+
});
|
|
44
|
+
rLCP(() => {
|
|
45
|
+
if (balBrowser.hasDocument && balBrowser.hasWindow) {
|
|
46
|
+
const doc = document.documentElement;
|
|
47
|
+
doc.classList.add('lcp-ready');
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
disconnectedCallback() {
|
|
52
|
+
if (balBrowser.hasWindow) {
|
|
53
|
+
window.removeEventListener('resize', this.debouncedNotify);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
async setFocus(elements) {
|
|
57
|
+
if (this.focusVisible) {
|
|
58
|
+
this.focusVisible.setFocus(elements);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
render() {
|
|
62
|
+
return (h(Host, { key: '8e124474f0e95f8fdcd4546d7998556764d81d71', class: {
|
|
63
|
+
'bal-app': true,
|
|
64
|
+
'bal-app--safari': balBrowser.isSafari,
|
|
65
|
+
'bal-app--touch': balDevice.hasTouchScreen,
|
|
66
|
+
} }, h("slot", { key: 'e4a8974a3f55ec71c4ff7c46f2a9728d7efd4408' })));
|
|
67
|
+
}
|
|
68
|
+
get el() { return this; }
|
|
69
|
+
static get style() { return BalAppStyle0; }
|
|
70
|
+
}, [4, "bal-app", {
|
|
71
|
+
"animated": [516],
|
|
72
|
+
"ready": [1540],
|
|
73
|
+
"setFocus": [64]
|
|
74
|
+
}]);
|
|
75
|
+
__decorate([
|
|
76
|
+
Logger('bal-app'),
|
|
77
|
+
__metadata("design:type", Function),
|
|
78
|
+
__metadata("design:paramtypes", [Function]),
|
|
79
|
+
__metadata("design:returntype", void 0)
|
|
80
|
+
], App.prototype, "createLogger", null);
|
|
81
|
+
function defineCustomElement() {
|
|
82
|
+
if (typeof customElements === "undefined") {
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
const components = ["bal-app"];
|
|
86
|
+
components.forEach(tagName => { switch (tagName) {
|
|
87
|
+
case "bal-app":
|
|
88
|
+
if (!customElements.get(tagName)) {
|
|
89
|
+
customElements.define(tagName, App);
|
|
90
|
+
}
|
|
91
|
+
break;
|
|
92
|
+
} });
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export { App as A, defineCustomElement as d };
|
|
@@ -409,7 +409,7 @@ const Carousel = /*@__PURE__*/ proxyCustomElement(class Carousel extends HTMLEle
|
|
|
409
409
|
const leftControlTitle = i18nControlLabel[this.language].left;
|
|
410
410
|
const rightControlTitle = i18nControlLabel[this.language].right;
|
|
411
411
|
const controlItems = this.getAllControlItems();
|
|
412
|
-
return (h(Host, { key: '
|
|
412
|
+
return (h(Host, { key: '9805dc838ffaf76bf0db144968685dd4c8483816', class: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, block.class()), block.modifier(this.interface).class(this.interface !== '')), block.modifier(`full-height`).class(this.fullHeight)), block.modifier('controls-sticky').class(this.controlsSticky)), block.modifier(`controls-${this.controls}`).class()) }, this.isLargestContentfulPaintDone && this.controls === 'tabs' ? (h(TabControl, { value: this.value, items: controlItems, containerId: this.carouselContainerId, onControlChange: item => this.onControlChange(item.value) })) : (''), h("div", { key: 'dced19705178ae9cdca9ab3594793ed9b86d0a9f', class: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, inner.class()), inner.modifier(`items-per-view-${this.itemsPerView}`).class()), inner.modifier(`is-${this.aspectRatio}`).class()), inner.modifier(`inverted`).class(this.inverted)), inner.modifier(`full-height`).class(this.fullHeight)), inner.modifier(`shadow-left`).class(this.hasShadowLeft())), inner.modifier(`shadow-right`).class(this.hasShadowRight())), ref: el => (this.innerEl = el) }, h("div", { key: '64b95814c1bba169bab81a1384a2d753dfcf964d', role: this.htmlRole, "aria-live": this.htmlRole !== '' ? 'polite' : undefined, id: this.carouselContainerId, class: Object.assign(Object.assign(Object.assign({}, container.class()), container.modifier(`border`).class(this.border)), container.modifier(`is-${this.aspectRatio}`).class()), ref: el => (this.containerEl = el) }, h("slot", { key: '2baee20f00ff09cc771ba6743bff97f62a1a7570' }), this.border ? (h("div", { id: `${this.carouselId}-border`, "aria-hidden": "true", class: Object.assign(Object.assign({}, container.element('border').class()), container.element('border').modifier('inverted').class(this.inverted)), ref: el => (this.borderEl = el) })) : (''))), this.isLargestContentfulPaintDone && this.controls === 'dots' ? (h(DotControl, { value: this.value, items: controlItems, containerId: this.carouselContainerId, onControlChange: item => this.onControlChange(item.value) })) : (''), this.isLargestContentfulPaintDone && this.controls === 'large' ? (h(LargeControl, { isFirst: this.isFirst(), isLast: this.isLast(), inverted: this.inverted, areControlsHidden: !this.isMobile, leftControlTitle: leftControlTitle, rightControlTitle: rightControlTitle, containerId: this.carouselContainerId, onNextClick: () => this.onNextButtonClick(), onPreviousClick: () => this.onPreviousButtonClick() })) : (''), this.isLargestContentfulPaintDone && this.controls === 'small' ? (h(SmallControl, { isFirst: this.isFirst(), isLast: this.isLast(), inverted: this.inverted, leftControlTitle: leftControlTitle, rightControlTitle: rightControlTitle, containerId: this.carouselContainerId, onNextClick: () => this.onNextButtonClick(), onPreviousClick: () => this.onPreviousButtonClick() })) : ('')));
|
|
413
413
|
}
|
|
414
414
|
get el() { return this; }
|
|
415
415
|
static get style() { return BalCarouselStyle0; }
|
package/components/bal-close2.js
CHANGED
|
@@ -30,7 +30,7 @@ const Close = /*@__PURE__*/ proxyCustomElement(class Close extends HTMLElement {
|
|
|
30
30
|
const buttonEl = blockEl.element('button');
|
|
31
31
|
const iconEl = buttonEl.element('icon');
|
|
32
32
|
const label = i18nBalClose[this.language].close;
|
|
33
|
-
return (h(Host, { key: '
|
|
33
|
+
return (h(Host, { key: '9ae168e3f5e98e623d888abab7cbc88a6274cde0', class: Object.assign({}, blockEl.class()) }, h("button", { key: '7969304603871177f81ef7a1b1c78e58f1d32c38', type: "button", "aria-label": label, title: label, tabindex: "0", class: Object.assign(Object.assign(Object.assign({}, buttonEl.class()), buttonEl.modifier('inverted').class(this.inverted)), buttonEl.modifier(`size-${this.size}`).class(this.size !== '')), "data-testid": "bal-close" }, h("bal-icon", { key: 'c83093000ff43d5f99676914a52ef4c8977fb61c', name: "close", size: this.size === 'small' ? 'x-small' : this.size === 'medium' ? 'medium' : 'small', inverted: this.inverted, class: Object.assign({}, iconEl.class()) }))));
|
|
34
34
|
}
|
|
35
35
|
get el() { return this; }
|
|
36
36
|
static get style() { return BalCloseStyle0; }
|
|
@@ -437,7 +437,7 @@ const DateCalendar = /*@__PURE__*/ proxyCustomElement(class DateCalendar extends
|
|
|
437
437
|
const block = BEM.block('date-calendar');
|
|
438
438
|
const blockBody = block.element('body');
|
|
439
439
|
const blockFoot = block.element('foot');
|
|
440
|
-
return (h(Host, { key: '
|
|
440
|
+
return (h(Host, { key: 'e6348fe5b0ddab2253f7c79cb41a16fd93fe9a63', class: Object.assign({}, block.class()) }, h(CalendarNav, { key: 'fc808b662835df468fe53a659cfdb048a2ce2325', language: this.language, monthFullNames: this.monthFullNames, month: this.month, year: this.year, isCalendarVisible: this.isCalendarVisible, isListVisible: this.isMonthListVisible || this.isYearListVisible, onClickSelectMonthAndYear: this.onClickSelectMonthAndYear, onClickPreviousMonth: this.onClickPreviousMonth, onClickNextMonth: this.onClickNextMonth }), h("div", { key: '14a071d6e691964876d2a832a9d2a7b20e2b5139', class: Object.assign({}, blockBody.class()) }, h(CalendarGrid, { key: 'd7d81606a5bcf10637f48ad9d5f095cac4851c60', isVisible: this.isCalendarVisible, grid: this.calendarGrid, weekdays: this.weekdays, firstDayOfWeek: this.firstDayOfWeek, selectedDate: this.selectedDate, ref: el => (this.gridEl = el), onSelectDay: isoDate => this.onSelectDay(isoDate) }), h(CalendarList, { key: '3804356a689232d66ecbac4ad02c152a7e11739f', name: "year", isVisible: this.isYearListVisible, girdHeight: girdHeight, list: this.years, ref: el => (this.yearListEl = el), onSelect: item => this.onClickYear(item.value) }), h(CalendarList, { key: '2721e28b96097dfb3f824c6ef085657c56c89342', name: "month", isVisible: this.isMonthListVisible, girdHeight: girdHeight, list: this.months, onSelect: item => this.onClickMonth(item.value) })), h("div", { key: 'da53c2e514df3bf5d4890a16fdc5738e55366f31', class: Object.assign({}, blockFoot.class()) }, h("slot", { key: '6b75be6d0ad833854a0eade0d014ee26b05bc868' }))));
|
|
441
441
|
}
|
|
442
442
|
get el() { return this; }
|
|
443
443
|
static get watchers() { return {
|
package/components/bal-date.js
CHANGED
|
@@ -292,7 +292,7 @@ const Date = /*@__PURE__*/ proxyCustomElement(class Date extends HTMLElement {
|
|
|
292
292
|
const block = BEM.block('date');
|
|
293
293
|
const blockIcon = block.element('icon');
|
|
294
294
|
const blockPopup = block.element('popup');
|
|
295
|
-
return (h(Host, { key: '
|
|
295
|
+
return (h(Host, { key: '0cff526d6fd1f6855de72ec6b8515a0cd7132f71', id: this.inputId, class: Object.assign({}, block.class()) }, h("bal-input-group", { key: 'e7309e15124f27a90a977cccb8ee7b03052ce450', invalid: this.invalid, readonly: this.readonly, disabled: this.disabled, ref: el => (this.referenceEl = el) }, h("bal-input-date", Object.assign({ key: '6e344882e69619d3cc26bdb29601f417de5cf4fe', name: this.name, required: this.required, placeholder: this.placeholder, value: this.value, min: this.min, max: this.max, invalid: this.invalid, readonly: this.readonly, disabled: this.disabled, allowInvalidValue: this.allowInvalidValue, autocomplete: this.autocomplete, onClick: this.onInputClick, onBalInput: this.onInputInput, onBalChange: this.onInputChange, onBalFocus: this.onInputFocus, onBalBlur: this.onInputBlur, onBalKeyPress: this.onKeyPress, ref: el => (this.inputEl = el) }, this.inheritedAttributes)), !this.freeSolo ? (h("bal-icon", { name: "date", role: "button", tabindex: -1, class: Object.assign(Object.assign({}, blockIcon.class()), blockIcon.modifier('clickable').class(!this.disabled && !this.readonly)), "is-right": true, color: this.disabled || this.readonly ? 'grey' : this.invalid ? 'danger' : 'primary', onClick: this.onIconClick, "aria-label": i18nBalDate[this.language].toggleDatepicker, "aria-haspopup": "true", "aria-expanded": this.isExpanded ? 'true' : 'false' })) : ('')), h("div", { key: '4de1fda8322aa577c9f178f8183f0584591bb280', role: "dialog", class: Object.assign(Object.assign({}, blockPopup.class()), blockPopup.modifier('visible').class(this.isExpanded)), ref: el => (this.floatingEl = el), "aria-hidden": `${this.isExpanded !== true}`, "aria-presented": `${this.isExpanded === true}` }, h("bal-date-calendar", { key: 'c29fae49306412def5c835457c17224f93d4144d', value: this.calendarValue, min: this.min, max: this.max, minYearProp: this.minYearProp, maxYearProp: this.maxYearProp, defaultDate: this.defaultDate, allowedDates: this.allowedDates, onBalChange: this.onCalendarChange }))));
|
|
296
296
|
}
|
|
297
297
|
get el() { return this; }
|
|
298
298
|
static get watchers() { return {
|
|
@@ -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;
|