@baloise/ds-core 19.0.1 → 19.1.0-nightly.20250606
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-button2.js +14 -10
- package/components/bal-date.js +84 -61
- package/components/bal-doc-app.d.ts +11 -0
- package/components/bal-doc-app.js +262 -0
- package/components/bal-field-hint.js +22 -10
- package/components/bal-hint2.js +35 -28
- package/components/bal-nav.js +154 -154
- package/components/bal-number-input.js +3 -0
- package/components/bal-popover2.js +1 -1
- package/components/bal-popup.js +1 -692
- package/components/bal-popup2.js +694 -0
- package/components/bal-radio2.js +1 -1
- package/components/bal-steps.js +1 -1
- package/components/bal-tabs2.js +35 -27
- package/components/index.esm.js +7 -1
- package/components/index.js +7 -314
- package/components/initialize.js +312 -0
- package/components/scroll.js +2 -0
- package/components/swiper.util.js +36 -36
- 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-8f17a55f2b.system.entry.js → p-0a1216b6ed.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-bbdf082862.entry.js → p-0a128a0582.entry.js} +1 -1
- package/dist/baloise-design-system/{p-40b022e526.entry.js → p-0a9399ab02.entry.js} +1 -1
- package/dist/baloise-design-system/{p-5cfc65b40f.system.entry.js → p-108f7ee53c.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-1d28b6256d.entry.js +1 -0
- package/dist/baloise-design-system/p-1d4ea7e42b.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-9b9be713.system.js → p-1d7c3cf2.system.js} +1 -1
- package/dist/baloise-design-system/{p-98b6f8ba43.entry.js → p-1e0a2263fb.entry.js} +1 -1
- package/dist/baloise-design-system/p-1e142b10.system.js +1 -0
- package/dist/baloise-design-system/p-20bc89d933.entry.js +1 -0
- package/dist/baloise-design-system/{p-859c0fae39.system.entry.js → p-24336e0fca.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-290dfd0212.system.entry.js +1 -0
- package/dist/baloise-design-system/p-294f38c2.js +1 -0
- package/dist/baloise-design-system/p-2a27350c.js +1 -0
- package/dist/baloise-design-system/{p-3b1a0df0.js → p-2e2e6a4c.js} +1 -1
- package/dist/baloise-design-system/{p-df5ddf4439.system.entry.js → p-2f404143c0.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-343cc097d4.entry.js +1 -0
- package/dist/baloise-design-system/{p-afe7f75fcf.system.entry.js → p-390b2af6a5.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-3913c6ae.js +1 -1
- package/dist/baloise-design-system/{p-b79164fedd.entry.js → p-3987eefdaa.entry.js} +1 -1
- package/dist/baloise-design-system/{p-9f14664495.system.entry.js → p-39e9f6d9bb.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-5281d378.system.js → p-3b7576b2.system.js} +1 -1
- package/dist/baloise-design-system/p-42e66219.system.js +1 -0
- package/dist/baloise-design-system/p-47f0669a.js +1 -0
- package/dist/baloise-design-system/{p-f005df0cd0.entry.js → p-5baff7d4d9.entry.js} +1 -1
- package/dist/baloise-design-system/{p-655d37c8.system.js → p-5f0e4685.system.js} +1 -1
- package/dist/baloise-design-system/{p-faab35937e.system.entry.js → p-5fcfbec540.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-659ecadc.system.js +1 -1
- package/dist/baloise-design-system/{p-a15a24d3a1.system.entry.js → p-6dd267be7b.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-1e738175.system.js → p-71b8b5c5.system.js} +1 -1
- package/dist/baloise-design-system/{p-2bc77d4c8d.system.entry.js → p-7373babec6.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-7d4fac85.js +1 -0
- package/dist/baloise-design-system/{p-456114b8.system.js → p-83512f21.system.js} +1 -1
- package/dist/baloise-design-system/p-85e0544cb3.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-b26a67d805.entry.js → p-88863649e4.entry.js} +1 -1
- package/dist/baloise-design-system/p-8a9fb4619a.entry.js +1 -0
- package/dist/baloise-design-system/{p-2556cb83d1.entry.js → p-9185638454.entry.js} +1 -1
- package/dist/baloise-design-system/{p-234c26f450.system.entry.js → p-9267e4b02c.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-96301206d3.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-ef4bf5f5.js → p-9ad64ed0.js} +1 -1
- package/dist/baloise-design-system/{p-f89208a3.js → p-9d32397c.js} +1 -1
- package/dist/baloise-design-system/{p-f19ea306.system.js → p-9f7a1215.system.js} +1 -1
- package/dist/baloise-design-system/{p-c8ee46d5bc.entry.js → p-a40b334557.entry.js} +1 -1
- package/dist/baloise-design-system/p-a5d1fcdf7f.entry.js +1 -0
- package/dist/baloise-design-system/p-a64c7a3b82.system.entry.js +1 -0
- package/dist/baloise-design-system/p-a7963df92a.entry.js +1 -0
- package/dist/baloise-design-system/p-b2f7e364.js +1 -0
- package/dist/baloise-design-system/p-b5833e6ed1.entry.js +1 -0
- package/dist/baloise-design-system/{p-beb28f85.system.js → p-b78a9a97.system.js} +1 -1
- package/dist/baloise-design-system/{p-ec777a9167.entry.js → p-b9a4f3580b.entry.js} +1 -1
- package/dist/baloise-design-system/{p-f4f96647cf.system.entry.js → p-d09026edb1.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-817f7907be.system.entry.js → p-d8a8722dc3.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-58cd37922d.system.entry.js → p-da10213371.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-0ac528b6cb.entry.js → p-de9421f0b2.entry.js} +1 -1
- package/dist/baloise-design-system/{p-b268996da1.system.entry.js → p-df62a1de48.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-e75452d8.system.js +1 -0
- package/dist/baloise-design-system/p-e8f23d5d2a.entry.js +1 -0
- package/dist/baloise-design-system/p-eaba60de9f.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-77c6d65eb1.entry.js → p-eaed1f800c.entry.js} +1 -1
- package/dist/baloise-design-system/p-f2cc4e63d4.entry.js +1 -0
- package/dist/cjs/app-globals-f63c33e7.js +7 -0
- package/dist/cjs/bal-button_2.cjs.entry.js +13 -9
- package/dist/cjs/bal-carousel_2.cjs.entry.js +4 -4
- package/dist/cjs/bal-date.cjs.entry.js +83 -60
- package/dist/cjs/bal-doc-app.cjs.entry.js +233 -0
- package/dist/cjs/bal-footer.cjs.entry.js +1 -1
- package/dist/cjs/bal-hint_5.cjs.entry.js +16 -21
- 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-modal_3.cjs.entry.js +1 -1
- package/dist/cjs/bal-nav_8.cjs.entry.js +157 -157
- package/dist/cjs/bal-navbar_5.cjs.entry.js +4 -4
- package/dist/cjs/bal-number-input.cjs.entry.js +3 -0
- package/dist/cjs/bal-pagination.cjs.entry.js +3 -3
- package/dist/cjs/bal-popup.cjs.entry.js +4 -4
- 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 +4 -4
- package/dist/cjs/bal-shape.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 +36 -28
- package/dist/cjs/baloise-design-system.cjs.js +3 -2
- package/dist/cjs/{breakpoints.decorator-9a0be218.js → breakpoints.decorator-84de567a.js} +1 -1
- package/dist/cjs/{breakpoints.subject-19c7123e.js → breakpoints.subject-3b1dc531.js} +1 -1
- package/dist/cjs/{app-globals-0d8db19e.js → global-2a76769b.js} +2 -4
- package/dist/cjs/index.cjs.js +3 -3
- package/dist/cjs/{index.esm-1f386b07.js → index.esm-a38eebac.js} +7 -0
- package/dist/cjs/initialize-2e8978a4.js +1 -1
- package/dist/cjs/loader.cjs.js +3 -2
- package/dist/cjs/{scroll-73c1b762.js → scroll-dc37ea84.js} +2 -0
- package/dist/cjs/{tokens.esm-3468979c.js → tokens.esm-64843789.js} +1 -1
- package/dist/cjs/{window-resize.decorator-86974eaf.js → window-resize.decorator-9d469f95.js} +1 -1
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/bal-button/bal-button.js +33 -10
- package/dist/collection/components/bal-date/bal-date.js +86 -107
- package/dist/collection/components/bal-hint/bal-hint.css +1 -1
- package/dist/collection/components/bal-hint/bal-hint.js +11 -16
- package/dist/collection/components/bal-nav/bal-nav.js +7 -7
- package/dist/collection/components/bal-number-input/bal-number-input.utils.js +3 -0
- package/dist/collection/components/bal-popup/bal-popup.css +1 -1
- package/dist/collection/components/bal-popup/bal-popup.js +3 -3
- package/dist/collection/components/bal-steps/components/step-button.js +1 -1
- package/dist/collection/components/bal-tabs/bal-tabs.js +12 -12
- package/dist/collection/components/bal-tabs/components/tab-nav.js +9 -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 +247 -0
- package/dist/collection/utils/constants/version.constant.js +1 -1
- package/dist/collection/utils/scroll.js +2 -0
- package/dist/collection/utils/swiper/swiper.util.js +6 -6
- package/dist/esm/app-globals-1ecf000f.js +5 -0
- package/dist/esm/bal-button_2.entry.js +13 -9
- package/dist/esm/bal-carousel_2.entry.js +4 -4
- package/dist/esm/bal-date.entry.js +84 -61
- package/dist/esm/bal-doc-app.entry.js +229 -0
- package/dist/esm/bal-footer.entry.js +1 -1
- package/dist/esm/bal-hint_5.entry.js +16 -21
- package/dist/esm/bal-list_8.entry.js +3 -3
- package/dist/esm/bal-logo.entry.js +3 -3
- package/dist/esm/bal-modal_3.entry.js +1 -1
- package/dist/esm/bal-nav_8.entry.js +157 -157
- package/dist/esm/bal-navbar_5.entry.js +4 -4
- package/dist/esm/bal-number-input.entry.js +3 -0
- package/dist/esm/bal-pagination.entry.js +3 -3
- package/dist/esm/bal-popup.entry.js +4 -4
- 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 +4 -4
- package/dist/esm/bal-shape.entry.js +1 -1
- package/dist/esm/bal-steps.entry.js +4 -4
- package/dist/esm/bal-tab-item_2.entry.js +36 -28
- package/dist/esm/baloise-design-system.js +3 -2
- package/dist/esm/{breakpoints.decorator-899aba5d.js → breakpoints.decorator-d541305e.js} +1 -1
- package/dist/esm/{breakpoints.subject-2397d734.js → breakpoints.subject-edc3db33.js} +1 -1
- package/dist/esm/{app-globals-5dd5fe6b.js → global-6e86728b.js} +2 -4
- package/dist/esm/{index.esm-21c97d14.js → index.esm-9079680d.js} +7 -1
- package/dist/esm/index.js +4 -4
- package/dist/esm/initialize-be160cc4.js +1 -1
- package/dist/esm/loader.js +3 -2
- package/dist/esm/{scroll-f4b20848.js → scroll-521224a9.js} +2 -0
- package/dist/esm/{tokens.esm-a6a0f537.js → tokens.esm-a6e86375.js} +1 -1
- package/dist/esm/{window-resize.decorator-f286b710.js → window-resize.decorator-3c332e15.js} +1 -1
- package/dist/esm-es5/app-globals-1ecf000f.js +1 -0
- package/dist/esm-es5/bal-button_2.entry.js +1 -1
- package/dist/esm-es5/bal-carousel_2.entry.js +1 -1
- package/dist/esm-es5/bal-date.entry.js +1 -1
- package/dist/esm-es5/bal-doc-app.entry.js +1 -0
- package/dist/esm-es5/bal-footer.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-modal_3.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-number-input.entry.js +1 -1
- package/dist/esm-es5/bal-pagination.entry.js +1 -1
- package/dist/esm-es5/bal-popup.entry.js +1 -1
- package/dist/esm-es5/bal-progress-bar.entry.js +1 -1
- package/dist/esm-es5/bal-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-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-d541305e.js +1 -0
- package/dist/esm-es5/{breakpoints.subject-2397d734.js → breakpoints.subject-edc3db33.js} +1 -1
- package/dist/esm-es5/global-6e86728b.js +1 -0
- package/dist/esm-es5/index.esm-9079680d.js +1 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/initialize-be160cc4.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/scroll-521224a9.js +1 -0
- package/dist/esm-es5/{swiper.util-01fa2dd9.js → swiper.util-5f92ac1c.js} +1 -1
- package/dist/esm-es5/{window-resize.decorator-f286b710.js → window-resize.decorator-3c332e15.js} +1 -1
- package/dist/types/components/bal-button/bal-button.d.ts +5 -1
- package/dist/types/components/bal-button/bal-button.interfaces.d.ts +2 -0
- package/dist/types/components/bal-date/bal-date.d.ts +10 -15
- package/dist/types/components/bal-hint/bal-hint.d.ts +3 -2
- package/dist/types/components/bal-nav/bal-nav.d.ts +5 -5
- package/dist/types/components/bal-popup/bal-popup.d.ts +1 -1
- package/dist/types/components/bal-tabs/bal-tabs.d.ts +6 -6
- package/dist/types/components/bal-tabs/components/tab-nav.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 +42 -1
- 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-002d7bb9.js +0 -1
- package/dist/baloise-design-system/p-058dece332.system.entry.js +0 -1
- package/dist/baloise-design-system/p-082910ce81.entry.js +0 -1
- package/dist/baloise-design-system/p-28fbcf6fc9.entry.js +0 -1
- package/dist/baloise-design-system/p-2ff3021da9.entry.js +0 -1
- package/dist/baloise-design-system/p-345aa92d.system.js +0 -1
- package/dist/baloise-design-system/p-36ce945a77.entry.js +0 -1
- package/dist/baloise-design-system/p-42629a573a.system.entry.js +0 -1
- package/dist/baloise-design-system/p-5e1f2c26.js +0 -1
- package/dist/baloise-design-system/p-65e20456c6.entry.js +0 -1
- package/dist/baloise-design-system/p-85a6191cd8.entry.js +0 -1
- package/dist/baloise-design-system/p-894423fd.system.js +0 -1
- package/dist/baloise-design-system/p-917729be7f.entry.js +0 -1
- package/dist/baloise-design-system/p-c1852273.js +0 -1
- package/dist/baloise-design-system/p-c661a0bb96.system.entry.js +0 -1
- package/dist/baloise-design-system/p-c72db97c1c.system.entry.js +0 -1
- package/dist/baloise-design-system/p-ddec5b99.js +0 -1
- package/dist/baloise-design-system/p-e5604d449d.system.entry.js +0 -1
- package/dist/baloise-design-system/p-ee275c12a9.entry.js +0 -1
- package/dist/esm-es5/app-globals-5dd5fe6b.js +0 -1
- package/dist/esm-es5/breakpoints.decorator-899aba5d.js +0 -1
- package/dist/esm-es5/index.esm-21c97d14.js +0 -1
- package/dist/esm-es5/scroll-f4b20848.js +0 -1
- package/dist/baloise-design-system/{p-cebe968d.system.js → p-a3c758d3.system.js} +0 -0
- package/dist/baloise-design-system/{p-95d42ad1.js → p-d1097822.js} +0 -0
- package/dist/cjs/{swiper.util-f1c856f3.js → swiper.util-d23b8eb0.js} +36 -36
- package/dist/esm/{swiper.util-01fa2dd9.js → swiper.util-5f92ac1c.js} +36 -36
- /package/dist/esm-es5/{tokens.esm-a6a0f537.js → tokens.esm-a6e86375.js} +0 -0
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { B as BEM } from './bem.js';
|
|
3
|
-
import { d as defineCustomElement$
|
|
4
|
-
import { d as defineCustomElement$
|
|
3
|
+
import { d as defineCustomElement$c } from './bal-button2.js';
|
|
4
|
+
import { d as defineCustomElement$b } from './bal-button-group2.js';
|
|
5
|
+
import { d as defineCustomElement$a } from './bal-close2.js';
|
|
6
|
+
import { d as defineCustomElement$9 } from './bal-heading2.js';
|
|
5
7
|
import { d as defineCustomElement$8 } from './bal-hint2.js';
|
|
6
8
|
import { d as defineCustomElement$7 } from './bal-hint-text2.js';
|
|
7
9
|
import { d as defineCustomElement$6 } from './bal-hint-title2.js';
|
|
8
10
|
import { d as defineCustomElement$5 } from './bal-icon2.js';
|
|
9
|
-
import { d as defineCustomElement$4 } from './bal-
|
|
10
|
-
import { d as defineCustomElement$3 } from './bal-
|
|
11
|
-
import { d as defineCustomElement$2 } from './bal-
|
|
11
|
+
import { d as defineCustomElement$4 } from './bal-popup2.js';
|
|
12
|
+
import { d as defineCustomElement$3 } from './bal-spinner2.js';
|
|
13
|
+
import { d as defineCustomElement$2 } from './bal-stack2.js';
|
|
12
14
|
|
|
13
15
|
const FieldHint = /*@__PURE__*/ proxyCustomElement(class FieldHint extends HTMLElement {
|
|
14
16
|
constructor() {
|
|
@@ -31,7 +33,7 @@ function defineCustomElement$1() {
|
|
|
31
33
|
if (typeof customElements === "undefined") {
|
|
32
34
|
return;
|
|
33
35
|
}
|
|
34
|
-
const components = ["bal-field-hint", "bal-button", "bal-button-group", "bal-hint", "bal-hint-text", "bal-hint-title", "bal-icon", "bal-
|
|
36
|
+
const components = ["bal-field-hint", "bal-button", "bal-button-group", "bal-close", "bal-heading", "bal-hint", "bal-hint-text", "bal-hint-title", "bal-icon", "bal-popup", "bal-spinner", "bal-stack"];
|
|
35
37
|
components.forEach(tagName => { switch (tagName) {
|
|
36
38
|
case "bal-field-hint":
|
|
37
39
|
if (!customElements.get(tagName)) {
|
|
@@ -40,10 +42,20 @@ function defineCustomElement$1() {
|
|
|
40
42
|
break;
|
|
41
43
|
case "bal-button":
|
|
42
44
|
if (!customElements.get(tagName)) {
|
|
43
|
-
defineCustomElement$
|
|
45
|
+
defineCustomElement$c();
|
|
44
46
|
}
|
|
45
47
|
break;
|
|
46
48
|
case "bal-button-group":
|
|
49
|
+
if (!customElements.get(tagName)) {
|
|
50
|
+
defineCustomElement$b();
|
|
51
|
+
}
|
|
52
|
+
break;
|
|
53
|
+
case "bal-close":
|
|
54
|
+
if (!customElements.get(tagName)) {
|
|
55
|
+
defineCustomElement$a();
|
|
56
|
+
}
|
|
57
|
+
break;
|
|
58
|
+
case "bal-heading":
|
|
47
59
|
if (!customElements.get(tagName)) {
|
|
48
60
|
defineCustomElement$9();
|
|
49
61
|
}
|
|
@@ -68,17 +80,17 @@ function defineCustomElement$1() {
|
|
|
68
80
|
defineCustomElement$5();
|
|
69
81
|
}
|
|
70
82
|
break;
|
|
71
|
-
case "bal-
|
|
83
|
+
case "bal-popup":
|
|
72
84
|
if (!customElements.get(tagName)) {
|
|
73
85
|
defineCustomElement$4();
|
|
74
86
|
}
|
|
75
87
|
break;
|
|
76
|
-
case "bal-
|
|
88
|
+
case "bal-spinner":
|
|
77
89
|
if (!customElements.get(tagName)) {
|
|
78
90
|
defineCustomElement$3();
|
|
79
91
|
}
|
|
80
92
|
break;
|
|
81
|
-
case "bal-
|
|
93
|
+
case "bal-stack":
|
|
82
94
|
if (!customElements.get(tagName)) {
|
|
83
95
|
defineCustomElement$2();
|
|
84
96
|
}
|
package/components/bal-hint2.js
CHANGED
|
@@ -3,18 +3,20 @@ import { _ as __decorate, a as __metadata } from './tslib.es6.js';
|
|
|
3
3
|
import { B as BEM } from './bem.js';
|
|
4
4
|
import { p as preventDefault } from './utils.js';
|
|
5
5
|
import { B as BalScrollHandler } from './scroll.js';
|
|
6
|
-
import { d as defineCustomElement$
|
|
7
|
-
import { d as defineCustomElement$
|
|
6
|
+
import { d as defineCustomElement$8 } from './bal-button2.js';
|
|
7
|
+
import { d as defineCustomElement$7 } from './bal-button-group2.js';
|
|
8
|
+
import { d as defineCustomElement$6 } from './bal-close2.js';
|
|
9
|
+
import { d as defineCustomElement$5 } from './bal-heading2.js';
|
|
8
10
|
import { d as defineCustomElement$4 } from './bal-icon2.js';
|
|
9
|
-
import { d as defineCustomElement$3 } from './bal-
|
|
10
|
-
import { d as defineCustomElement$2 } from './bal-
|
|
11
|
-
import { d as defineCustomElement$1 } from './bal-
|
|
12
|
-
import { b as balBreakpoints } from './breakpoints.subject.js';
|
|
11
|
+
import { d as defineCustomElement$3 } from './bal-popup2.js';
|
|
12
|
+
import { d as defineCustomElement$2 } from './bal-spinner2.js';
|
|
13
|
+
import { d as defineCustomElement$1 } from './bal-stack2.js';
|
|
13
14
|
import { L as ListenToBreakpoints } from './breakpoints.decorator.js';
|
|
15
|
+
import { b as balBreakpoints } from './breakpoints.subject.js';
|
|
14
16
|
import { L as ListenToConfig } from './config.decorator.js';
|
|
15
17
|
import { i as isEnterKey, a as isSpaceKey } from './keyboard.helpers.js';
|
|
16
18
|
|
|
17
|
-
const balHintCss = "@media (hover: hover)and (pointer: fine){.bal-hint__icon:focus-visible:not(:active){-webkit-box-shadow:var(--bal-focus-shadow) !important;box-shadow:var(--bal-focus-shadow) !important}}:root{--bal-hint-content-background:var(--bal-color-grey-2)}.bal-hint{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-block}.bal-hint__icon{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.bal-hint__icon:hover svg,.bal-hint__icon:hover g,.bal-hint__icon:hover path,.bal-hint__icon:hover circle{fill:var(--bal-color-light-blue-5)}.bal-hint__content{background:var(--bal-hint-content-background);display:-ms-flexbox;display:flex;gap:1.5rem;-ms-flex-direction:column;flex-direction:column}@media screen and (max-width: 768px){.bal-hint__content{padding:1.25rem;min-height:100%}.bal-hint__content>div{-ms-flex:1;flex:1}}.bal-hint__content__title{display:block;margin-bottom:1rem}.bal-hint__content__title__heading{font-family:var(--bal-title-font-family);font-weight:var(--bal-title-font-weight);font-size:var(--bal-text-size-x-large);line-height:var(--bal-line-height-x-large)}@media screen and (min-width: 769px),print{.bal-hint__content__title__heading{font-size:var(--bal-text-size-x-large-tablet);line-height:var(--bal-line-height-tablet-x-large)}}@media screen and (min-width: 1024px){.bal-hint__content__title__heading{font-size:var(--bal-text-size-x-large-desktop);line-height:var(--bal-line-height-desktop-x-large)}}@media screen and (min-width: 769px),print{.bal-hint__content__buttons--is-hidden-desktop{display:none !important}}.bal-hint__content__text__field{font-family:var(--bal-font-family-text);font-weight:var(--bal-font-weight-regular);line-height:var(--bal-text-line-height-text);font-size:var(--bal-text-size-normal)}.bal-hint__overlay__content{position:fixed;display:none;overflow:auto;top:0;left:0;right:0;bottom:0;z-index:var(--bal-z-index-popup)}.bal-hint__overlay__content--active{display:block}";
|
|
19
|
+
const balHintCss = "@media (hover: hover)and (pointer: fine){.bal-hint__icon:focus-visible:not(:active){-webkit-box-shadow:var(--bal-focus-shadow) !important;box-shadow:var(--bal-focus-shadow) !important}}:root{--bal-hint-content-background:var(--bal-color-grey-2)}.bal-hint{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-block}.bal-hint__icon{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.bal-hint__icon:hover svg,.bal-hint__icon:hover g,.bal-hint__icon:hover path,.bal-hint__icon:hover circle{fill:var(--bal-color-light-blue-5)}.bal-hint .bal-popup__container{z-index:var(--bal-z-index-popup);background:var(--bal-hint-content-background);width:auto;max-width:30rem;min-width:16.25rem}.bal-hint__content{background:var(--bal-hint-content-background);display:-ms-flexbox;display:flex;gap:1.5rem;-ms-flex-direction:column;flex-direction:column}@media screen and (max-width: 768px){.bal-hint__content{padding:1.25rem;min-height:100%}.bal-hint__content>div{-ms-flex:1;flex:1}}.bal-hint__content__title{display:block;margin-bottom:1rem}.bal-hint__content__title__heading{font-family:var(--bal-title-font-family);font-weight:var(--bal-title-font-weight);font-size:var(--bal-text-size-x-large);line-height:var(--bal-line-height-x-large)}@media screen and (min-width: 769px),print{.bal-hint__content__title__heading{font-size:var(--bal-text-size-x-large-tablet);line-height:var(--bal-line-height-tablet-x-large)}}@media screen and (min-width: 1024px){.bal-hint__content__title__heading{font-size:var(--bal-text-size-x-large-desktop);line-height:var(--bal-line-height-desktop-x-large)}}@media screen and (min-width: 769px),print{.bal-hint__content__buttons--is-hidden-desktop{display:none !important}}.bal-hint__content__text__field{font-family:var(--bal-font-family-text);font-weight:var(--bal-font-weight-regular);line-height:var(--bal-text-line-height-text);font-size:var(--bal-text-size-normal)}.bal-hint__overlay__content{position:fixed;display:none;overflow:auto;top:0;left:0;right:0;bottom:0;z-index:var(--bal-z-index-popup)}.bal-hint__overlay__content--active{display:block}";
|
|
18
20
|
const BalHintStyle0 = balHintCss;
|
|
19
21
|
|
|
20
22
|
const Hint = /*@__PURE__*/ proxyCustomElement(class Hint extends HTMLElement {
|
|
@@ -22,7 +24,8 @@ const Hint = /*@__PURE__*/ proxyCustomElement(class Hint extends HTMLElement {
|
|
|
22
24
|
super();
|
|
23
25
|
this.__registerHost();
|
|
24
26
|
this.bodyScrollHandler = new BalScrollHandler();
|
|
25
|
-
this.
|
|
27
|
+
this.componentId = `bal-hint-${hintIds++}`;
|
|
28
|
+
this.onPopupChange = (ev) => {
|
|
26
29
|
this.isActive = ev.detail;
|
|
27
30
|
preventDefault(ev);
|
|
28
31
|
};
|
|
@@ -87,8 +90,8 @@ const Hint = /*@__PURE__*/ proxyCustomElement(class Hint extends HTMLElement {
|
|
|
87
90
|
* Opens the hint box.
|
|
88
91
|
*/
|
|
89
92
|
async present() {
|
|
90
|
-
if (this.
|
|
91
|
-
this.
|
|
93
|
+
if (this.popupElement) {
|
|
94
|
+
this.popupElement.present();
|
|
92
95
|
}
|
|
93
96
|
if (this.isMobile) {
|
|
94
97
|
this.bodyScrollHandler.disable();
|
|
@@ -99,8 +102,8 @@ const Hint = /*@__PURE__*/ proxyCustomElement(class Hint extends HTMLElement {
|
|
|
99
102
|
* Closes the hint box.
|
|
100
103
|
*/
|
|
101
104
|
async dismiss() {
|
|
102
|
-
if (this.
|
|
103
|
-
this.
|
|
105
|
+
if (this.popupElement) {
|
|
106
|
+
this.popupElement.dismiss();
|
|
104
107
|
}
|
|
105
108
|
if (this.isMobile) {
|
|
106
109
|
this.bodyScrollHandler.enable();
|
|
@@ -117,10 +120,8 @@ const Hint = /*@__PURE__*/ proxyCustomElement(class Hint extends HTMLElement {
|
|
|
117
120
|
const elIcon = block.element('icon');
|
|
118
121
|
const elContent = block.element('content');
|
|
119
122
|
const elButtons = elContent.element('buttons');
|
|
120
|
-
const padding = this.isMobile ? 0 : 8;
|
|
121
|
-
const offsetY = this.isMobile ? 0 : 16;
|
|
122
123
|
const TriggerIcon = () => {
|
|
123
|
-
return (h("bal-icon", { class: Object.assign({}, elIcon.class()), "
|
|
124
|
+
return (h("bal-icon", { class: Object.assign({}, elIcon.class()), "bal-popup": this.componentId, "data-testid": "bal-hint-trigger", "aria-haspopup": "true", role: "button", name: "info-circle", tabindex: 0, onKeyDown: event => {
|
|
124
125
|
if (isEnterKey(event) || isSpaceKey(event)) {
|
|
125
126
|
event.preventDefault();
|
|
126
127
|
this.toggle();
|
|
@@ -130,15 +131,10 @@ const Hint = /*@__PURE__*/ proxyCustomElement(class Hint extends HTMLElement {
|
|
|
130
131
|
const HintContent = () => {
|
|
131
132
|
return (h("div", { class: Object.assign({}, elContent.class()), "data-testid": "bal-hint-content" }, h("div", { ref: el => (this.hintContentEl = el) }), h("bal-button-group", { class: Object.assign(Object.assign({}, elButtons.class()), elButtons.modifier('is-hidden-desktop').class(this.small)) }, h("bal-button", { "data-testid": "bal-hint-close", color: "info", onClick: () => this.dismiss() }, this.closeLabel ? this.closeLabel : this.innerCloseLabel))));
|
|
132
133
|
};
|
|
133
|
-
const
|
|
134
|
-
|
|
135
|
-
return (h("div", { class: Object.assign({}, elOverlay.class()) }, h(TriggerIcon, null), h("div", { class: Object.assign(Object.assign({}, elOverlay.element('content').class()), elOverlay.element('content').modifier('active').class(this.isActive)) }, h(HintContent, null))));
|
|
134
|
+
const Popup = () => {
|
|
135
|
+
return (h("div", { class: Object.assign({}, block.element('popup').class()) }, h(TriggerIcon, null), h("bal-popup", { id: this.componentId, placement: "right", ref: el => (this.popupElement = el), onBalChange: this.onPopupChange, variant: this.isMobile ? 'fullscreen' : 'popover', offset: this.isMobile ? 0 : 16 }, h("bal-popup-content", null, h(HintContent, null)))));
|
|
136
136
|
};
|
|
137
|
-
|
|
138
|
-
return (h("div", { class: Object.assign({}, block.element('popover').class()) }, h("bal-popover", { hint: true, position: "right", offsetX: 0, offsetY: offsetY, padding: padding, ref: el => (this.popoverElement = el), onBalChange: this.onPopoverChange }, h(TriggerIcon, null), h("bal-popover-content", { color: "grey" }, h(HintContent, null)))));
|
|
139
|
-
};
|
|
140
|
-
const HintElement = this.isMobile ? MobileOverlay : Popover;
|
|
141
|
-
return (h(Host, { class: Object.assign({}, block.class()) }, h(HintElement, null), h("div", { ref: el => (this.slotWrapperEl = el), style: { display: 'none' } }, h("slot", null))));
|
|
137
|
+
return (h(Host, { class: Object.assign({}, block.class()) }, h(Popup, null), h("div", { ref: el => (this.slotWrapperEl = el), style: { display: 'none' } }, h("slot", null))));
|
|
142
138
|
}
|
|
143
139
|
get element() { return this; }
|
|
144
140
|
static get style() { return BalHintStyle0; }
|
|
@@ -165,11 +161,12 @@ __decorate([
|
|
|
165
161
|
__metadata("design:paramtypes", [Object]),
|
|
166
162
|
__metadata("design:returntype", Promise)
|
|
167
163
|
], Hint.prototype, "configChanged", null);
|
|
164
|
+
let hintIds = 0;
|
|
168
165
|
function defineCustomElement() {
|
|
169
166
|
if (typeof customElements === "undefined") {
|
|
170
167
|
return;
|
|
171
168
|
}
|
|
172
|
-
const components = ["bal-hint", "bal-button", "bal-button-group", "bal-
|
|
169
|
+
const components = ["bal-hint", "bal-button", "bal-button-group", "bal-close", "bal-heading", "bal-icon", "bal-popup", "bal-spinner", "bal-stack"];
|
|
173
170
|
components.forEach(tagName => { switch (tagName) {
|
|
174
171
|
case "bal-hint":
|
|
175
172
|
if (!customElements.get(tagName)) {
|
|
@@ -178,10 +175,20 @@ function defineCustomElement() {
|
|
|
178
175
|
break;
|
|
179
176
|
case "bal-button":
|
|
180
177
|
if (!customElements.get(tagName)) {
|
|
181
|
-
defineCustomElement$
|
|
178
|
+
defineCustomElement$8();
|
|
182
179
|
}
|
|
183
180
|
break;
|
|
184
181
|
case "bal-button-group":
|
|
182
|
+
if (!customElements.get(tagName)) {
|
|
183
|
+
defineCustomElement$7();
|
|
184
|
+
}
|
|
185
|
+
break;
|
|
186
|
+
case "bal-close":
|
|
187
|
+
if (!customElements.get(tagName)) {
|
|
188
|
+
defineCustomElement$6();
|
|
189
|
+
}
|
|
190
|
+
break;
|
|
191
|
+
case "bal-heading":
|
|
185
192
|
if (!customElements.get(tagName)) {
|
|
186
193
|
defineCustomElement$5();
|
|
187
194
|
}
|
|
@@ -191,17 +198,17 @@ function defineCustomElement() {
|
|
|
191
198
|
defineCustomElement$4();
|
|
192
199
|
}
|
|
193
200
|
break;
|
|
194
|
-
case "bal-
|
|
201
|
+
case "bal-popup":
|
|
195
202
|
if (!customElements.get(tagName)) {
|
|
196
203
|
defineCustomElement$3();
|
|
197
204
|
}
|
|
198
205
|
break;
|
|
199
|
-
case "bal-
|
|
206
|
+
case "bal-spinner":
|
|
200
207
|
if (!customElements.get(tagName)) {
|
|
201
208
|
defineCustomElement$2();
|
|
202
209
|
}
|
|
203
210
|
break;
|
|
204
|
-
case "bal-
|
|
211
|
+
case "bal-stack":
|
|
205
212
|
if (!customElements.get(tagName)) {
|
|
206
213
|
defineCustomElement$1();
|
|
207
214
|
}
|
package/components/bal-nav.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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 { L as Logger } from './log.js';
|
|
5
4
|
import { b as balBrowser } from './browser.js';
|
|
6
|
-
import { B as BalScrollHandler } from './scroll.js';
|
|
7
5
|
import { w as waitForComponent, d as waitAfterIdleCallback } from './helpers.js';
|
|
6
|
+
import { L as Logger } from './log.js';
|
|
7
|
+
import { B as BalScrollHandler } from './scroll.js';
|
|
8
8
|
import { d as defineCustomElement$t } from './bal-badge2.js';
|
|
9
9
|
import { d as defineCustomElement$s } from './bal-button2.js';
|
|
10
10
|
import { d as defineCustomElement$r } from './bal-checkbox2.js';
|
|
@@ -39,6 +39,79 @@ import { L as ListenToMutation } from './mutation.decorator.js';
|
|
|
39
39
|
import { L as ListenToBreakpoints } from './breakpoints.decorator.js';
|
|
40
40
|
import { L as ListenToConfig } from './config.decorator.js';
|
|
41
41
|
|
|
42
|
+
const i18nNavBars = {
|
|
43
|
+
de: {
|
|
44
|
+
mainNavigation: 'Hauptnavigation',
|
|
45
|
+
navigation: 'Navigation',
|
|
46
|
+
subNavigation: 'Subnavigation',
|
|
47
|
+
open: 'Menü öffnen',
|
|
48
|
+
close: 'Menü schliessen',
|
|
49
|
+
},
|
|
50
|
+
en: {
|
|
51
|
+
mainNavigation: 'Main navigation',
|
|
52
|
+
navigation: 'Navigation',
|
|
53
|
+
subNavigation: 'Sub navigation',
|
|
54
|
+
open: 'Open Menu',
|
|
55
|
+
close: 'Close Menu',
|
|
56
|
+
},
|
|
57
|
+
fr: {
|
|
58
|
+
mainNavigation: 'Navigation principale',
|
|
59
|
+
navigation: 'Navigation',
|
|
60
|
+
subNavigation: 'Sous-navigation',
|
|
61
|
+
open: 'Ouvrir le menu',
|
|
62
|
+
close: 'Fermer le menu',
|
|
63
|
+
},
|
|
64
|
+
it: {
|
|
65
|
+
mainNavigation: 'Navigazione principale',
|
|
66
|
+
navigation: 'Navigazione',
|
|
67
|
+
subNavigation: 'Sottonavigazione',
|
|
68
|
+
open: 'Apri Menù',
|
|
69
|
+
close: 'Chiudi menù',
|
|
70
|
+
},
|
|
71
|
+
nl: {
|
|
72
|
+
mainNavigation: 'Hoofdnavigatie',
|
|
73
|
+
navigation: 'Navigatie',
|
|
74
|
+
subNavigation: 'Subnavigatie',
|
|
75
|
+
open: 'Menu openen',
|
|
76
|
+
close: 'Menu sluiten',
|
|
77
|
+
},
|
|
78
|
+
es: {
|
|
79
|
+
mainNavigation: 'Navegación principal',
|
|
80
|
+
navigation: 'Navegación',
|
|
81
|
+
subNavigation: 'Subnavegación',
|
|
82
|
+
open: 'Menú abierto',
|
|
83
|
+
close: 'Cerrar menú',
|
|
84
|
+
},
|
|
85
|
+
pl: {
|
|
86
|
+
mainNavigation: 'Nawigacja główna',
|
|
87
|
+
navigation: 'Nawigacja',
|
|
88
|
+
subNavigation: 'Nawigacja podrzędna',
|
|
89
|
+
open: 'Otwórz menu',
|
|
90
|
+
close: 'Zamknij menu',
|
|
91
|
+
},
|
|
92
|
+
pt: {
|
|
93
|
+
mainNavigation: 'Navegação principal',
|
|
94
|
+
navigation: 'Navegação',
|
|
95
|
+
subNavigation: 'Subnavegação',
|
|
96
|
+
open: 'Menu aberto',
|
|
97
|
+
close: 'Fechar menu',
|
|
98
|
+
},
|
|
99
|
+
sv: {
|
|
100
|
+
mainNavigation: 'Huvudnavigering',
|
|
101
|
+
navigation: 'Navigering',
|
|
102
|
+
subNavigation: 'Undernavigering',
|
|
103
|
+
open: 'Öppna menyn',
|
|
104
|
+
close: 'Stäng menyn',
|
|
105
|
+
},
|
|
106
|
+
fi: {
|
|
107
|
+
mainNavigation: 'Päänavigaatio',
|
|
108
|
+
navigation: 'Navigaatio',
|
|
109
|
+
subNavigation: 'Alinavigaatio',
|
|
110
|
+
open: 'Avaa valikko',
|
|
111
|
+
close: 'Sulje valikko',
|
|
112
|
+
},
|
|
113
|
+
};
|
|
114
|
+
|
|
42
115
|
class NavLinkItem {
|
|
43
116
|
constructor(item, observer) {
|
|
44
117
|
this.observer = observer;
|
|
@@ -94,6 +167,85 @@ class NavLinkItem {
|
|
|
94
167
|
}
|
|
95
168
|
let NavLinkItemIDs = 0;
|
|
96
169
|
|
|
170
|
+
class NavMetaButton extends NavLinkItem {
|
|
171
|
+
constructor(item, observer) {
|
|
172
|
+
super(item, observer);
|
|
173
|
+
this.touchPlacement = 'top';
|
|
174
|
+
this.id = `nav-meta-button-${NavMetaButtonIDs++}`;
|
|
175
|
+
this.touchPlacement = item.touchPlacement || 'top';
|
|
176
|
+
this.value = item.value || this.id;
|
|
177
|
+
this.icon = item.icon;
|
|
178
|
+
this.popoverId = item.popupId;
|
|
179
|
+
this.ariaLabel = item.ariaLabel;
|
|
180
|
+
this.htmlTitle = item.htmlTitle;
|
|
181
|
+
this.href = item.href || '';
|
|
182
|
+
this.target = item.target || '_self';
|
|
183
|
+
}
|
|
184
|
+
get type() {
|
|
185
|
+
return 'NavMetaButton';
|
|
186
|
+
}
|
|
187
|
+
get isLink() {
|
|
188
|
+
return !!this.href;
|
|
189
|
+
}
|
|
190
|
+
renderAtMetaBar() {
|
|
191
|
+
if (this.isLink) {
|
|
192
|
+
return (h("bal-button", { id: this.value, color: "light", size: "small", icon: this.icon, square: !this.label || this.label.length < 3, inverted: true, rel: this.rel, href: this.href, target: this.target, aria: {
|
|
193
|
+
title: this.htmlTitle,
|
|
194
|
+
label: this.ariaLabel || this.label,
|
|
195
|
+
} }, this.label));
|
|
196
|
+
}
|
|
197
|
+
return (h("bal-button", { id: this.value, class: "bal-popup-permanent-trigger bal-nav__popup--desktop", color: "light", size: "small", icon: this.icon, square: !this.label || this.label.length < 3, aria: {
|
|
198
|
+
title: this.htmlTitle,
|
|
199
|
+
label: this.ariaLabel || this.label,
|
|
200
|
+
}, inverted: true, "bal-popup": this.popoverId, "bal-popup-variant": "popover", "bal-popup-arrow": "true", "bal-popup-backdrop": "true", "bal-popup-backdrop-dismiss": "true", "bal-popup-closable": "true", "bal-popup-placement": "bottom-end", "bal-popup-reference": "bal-nav__meta-buttons" }, this.label));
|
|
201
|
+
}
|
|
202
|
+
renderAtTouchTopMetaBar() {
|
|
203
|
+
if (this.touchPlacement === 'top') {
|
|
204
|
+
if (this.isLink) {
|
|
205
|
+
return (h("bal-button", { id: this.value, color: "light", icon: this.icon, square: !!this.icon || !this.label || this.label.length < 3, href: this.href, rel: this.rel, target: this.target, aria: {
|
|
206
|
+
title: this.htmlTitle,
|
|
207
|
+
label: this.ariaLabel || this.label,
|
|
208
|
+
} }, this.icon ? '' : this.label));
|
|
209
|
+
}
|
|
210
|
+
return (h("bal-button", { id: this.value, class: "bal-nav__popup--touch-top", color: "light", icon: this.icon, square: !!this.icon || !this.label || this.label.length < 3, inverted: false, aria: {
|
|
211
|
+
title: this.htmlTitle,
|
|
212
|
+
label: this.ariaLabel || this.label,
|
|
213
|
+
}, "bal-popup": this.popoverId, "bal-popup-variant": "fullscreen", "bal-popup-closable": "true", "bal-popup-offset": "64" }, this.icon ? '' : this.label));
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
renderAtTouchBottomMetaBar() {
|
|
217
|
+
if (this.touchPlacement === 'bottom') {
|
|
218
|
+
if (this.isLink) {
|
|
219
|
+
return (h("bal-button", { id: this.value, color: "info", inverted: false, icon: this.icon, square: !this.label || this.label.length < 3, aria: {
|
|
220
|
+
title: this.htmlTitle,
|
|
221
|
+
label: this.ariaLabel || this.label,
|
|
222
|
+
}, href: this.href, target: this.target }, this.label));
|
|
223
|
+
}
|
|
224
|
+
return (h("bal-button", { id: this.value, class: "bal-nav__popup--touch-bottom", icon: this.icon, square: !this.label || this.label.length < 3, color: "info", inverted: false, aria: {
|
|
225
|
+
title: this.htmlTitle,
|
|
226
|
+
label: this.ariaLabel || this.label,
|
|
227
|
+
}, "bal-popup": this.popoverId, "bal-popup-variant": "drawer", "bal-popup-closable": "true", "bal-popup-backdrop": "true", "bal-popup-backdrop-dismiss": "true", "bal-popup-offset": "64" }, this.label));
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
resetTouchBottomMetaBar() {
|
|
231
|
+
if (balBrowser.hasDocument && this.touchPlacement === 'bottom') {
|
|
232
|
+
const button = document.getElementById(this.value);
|
|
233
|
+
if (button && button.balPopupVariant === 'drawer') {
|
|
234
|
+
button.color = 'info';
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
resetDesktopMetaBar() {
|
|
239
|
+
if (balBrowser.hasDocument) {
|
|
240
|
+
const button = document.getElementById(this.value);
|
|
241
|
+
if (button && button.balPopupVariant === 'popover') {
|
|
242
|
+
button.color = 'info';
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
let NavMetaButtonIDs = 0;
|
|
248
|
+
|
|
97
249
|
class NavSectionLinkItem extends NavLinkItem {
|
|
98
250
|
constructor(item, observer) {
|
|
99
251
|
super(item, observer);
|
|
@@ -258,158 +410,6 @@ class NavMetaLinkItem extends NavLinkItem {
|
|
|
258
410
|
}
|
|
259
411
|
let NavMetaLinkItemIDs = 0;
|
|
260
412
|
|
|
261
|
-
class NavMetaButton extends NavLinkItem {
|
|
262
|
-
constructor(item, observer) {
|
|
263
|
-
super(item, observer);
|
|
264
|
-
this.touchPlacement = 'top';
|
|
265
|
-
this.id = `nav-meta-button-${NavMetaButtonIDs++}`;
|
|
266
|
-
this.touchPlacement = item.touchPlacement || 'top';
|
|
267
|
-
this.value = item.value || this.id;
|
|
268
|
-
this.icon = item.icon;
|
|
269
|
-
this.popoverId = item.popupId;
|
|
270
|
-
this.ariaLabel = item.ariaLabel;
|
|
271
|
-
this.htmlTitle = item.htmlTitle;
|
|
272
|
-
this.href = item.href || '';
|
|
273
|
-
this.target = item.target || '_self';
|
|
274
|
-
}
|
|
275
|
-
get type() {
|
|
276
|
-
return 'NavMetaButton';
|
|
277
|
-
}
|
|
278
|
-
get isLink() {
|
|
279
|
-
return !!this.href;
|
|
280
|
-
}
|
|
281
|
-
renderAtMetaBar() {
|
|
282
|
-
if (this.isLink) {
|
|
283
|
-
return (h("bal-button", { id: this.value, color: "light", size: "small", icon: this.icon, square: !this.label || this.label.length < 3, inverted: true, rel: this.rel, href: this.href, target: this.target, aria: {
|
|
284
|
-
title: this.htmlTitle,
|
|
285
|
-
label: this.ariaLabel || this.label,
|
|
286
|
-
} }, this.label));
|
|
287
|
-
}
|
|
288
|
-
return (h("bal-button", { id: this.value, class: "bal-popup-permanent-trigger bal-nav__popup--desktop", color: "light", size: "small", icon: this.icon, square: !this.label || this.label.length < 3, aria: {
|
|
289
|
-
title: this.htmlTitle,
|
|
290
|
-
label: this.ariaLabel || this.label,
|
|
291
|
-
}, inverted: true, "bal-popup": this.popoverId, "bal-popup-variant": "popover", "bal-popup-arrow": "true", "bal-popup-backdrop": "true", "bal-popup-backdrop-dismiss": "true", "bal-popup-closable": "true", "bal-popup-placement": "bottom-end", "bal-popup-reference": "bal-nav__meta-buttons" }, this.label));
|
|
292
|
-
}
|
|
293
|
-
renderAtTouchTopMetaBar() {
|
|
294
|
-
if (this.touchPlacement === 'top') {
|
|
295
|
-
if (this.isLink) {
|
|
296
|
-
return (h("bal-button", { id: this.value, color: "light", icon: this.icon, square: !!this.icon || !this.label || this.label.length < 3, href: this.href, rel: this.rel, target: this.target, aria: {
|
|
297
|
-
title: this.htmlTitle,
|
|
298
|
-
label: this.ariaLabel || this.label,
|
|
299
|
-
} }, this.icon ? '' : this.label));
|
|
300
|
-
}
|
|
301
|
-
return (h("bal-button", { id: this.value, class: "bal-nav__popup--touch-top", color: "light", icon: this.icon, square: !!this.icon || !this.label || this.label.length < 3, inverted: false, aria: {
|
|
302
|
-
title: this.htmlTitle,
|
|
303
|
-
label: this.ariaLabel || this.label,
|
|
304
|
-
}, "bal-popup": this.popoverId, "bal-popup-variant": "fullscreen", "bal-popup-closable": "true", "bal-popup-offset": "64" }, this.icon ? '' : this.label));
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
renderAtTouchBottomMetaBar() {
|
|
308
|
-
if (this.touchPlacement === 'bottom') {
|
|
309
|
-
if (this.isLink) {
|
|
310
|
-
return (h("bal-button", { id: this.value, color: "info", inverted: false, icon: this.icon, square: !this.label || this.label.length < 3, aria: {
|
|
311
|
-
title: this.htmlTitle,
|
|
312
|
-
label: this.ariaLabel || this.label,
|
|
313
|
-
}, href: this.href, target: this.target }, this.label));
|
|
314
|
-
}
|
|
315
|
-
return (h("bal-button", { id: this.value, class: "bal-nav__popup--touch-bottom", icon: this.icon, square: !this.label || this.label.length < 3, color: "info", inverted: false, aria: {
|
|
316
|
-
title: this.htmlTitle,
|
|
317
|
-
label: this.ariaLabel || this.label,
|
|
318
|
-
}, "bal-popup": this.popoverId, "bal-popup-variant": "drawer", "bal-popup-closable": "true", "bal-popup-backdrop": "true", "bal-popup-backdrop-dismiss": "true", "bal-popup-offset": "64" }, this.label));
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
resetTouchBottomMetaBar() {
|
|
322
|
-
if (balBrowser.hasDocument && this.touchPlacement === 'bottom') {
|
|
323
|
-
const button = document.getElementById(this.value);
|
|
324
|
-
if (button && button.balPopupVariant === 'drawer') {
|
|
325
|
-
button.color = 'info';
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
resetDesktopMetaBar() {
|
|
330
|
-
if (balBrowser.hasDocument) {
|
|
331
|
-
const button = document.getElementById(this.value);
|
|
332
|
-
if (button && button.balPopupVariant === 'popover') {
|
|
333
|
-
button.color = 'info';
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
let NavMetaButtonIDs = 0;
|
|
339
|
-
|
|
340
|
-
const i18nNavBars = {
|
|
341
|
-
de: {
|
|
342
|
-
mainNavigation: 'Hauptnavigation',
|
|
343
|
-
navigation: 'Navigation',
|
|
344
|
-
subNavigation: 'Subnavigation',
|
|
345
|
-
open: 'Menü öffnen',
|
|
346
|
-
close: 'Menü schliessen',
|
|
347
|
-
},
|
|
348
|
-
en: {
|
|
349
|
-
mainNavigation: 'Main navigation',
|
|
350
|
-
navigation: 'Navigation',
|
|
351
|
-
subNavigation: 'Sub navigation',
|
|
352
|
-
open: 'Open Menu',
|
|
353
|
-
close: 'Close Menu',
|
|
354
|
-
},
|
|
355
|
-
fr: {
|
|
356
|
-
mainNavigation: 'Navigation principale',
|
|
357
|
-
navigation: 'Navigation',
|
|
358
|
-
subNavigation: 'Sous-navigation',
|
|
359
|
-
open: 'Ouvrir le menu',
|
|
360
|
-
close: 'Fermer le menu',
|
|
361
|
-
},
|
|
362
|
-
it: {
|
|
363
|
-
mainNavigation: 'Navigazione principale',
|
|
364
|
-
navigation: 'Navigazione',
|
|
365
|
-
subNavigation: 'Sottonavigazione',
|
|
366
|
-
open: 'Apri Menù',
|
|
367
|
-
close: 'Chiudi menù',
|
|
368
|
-
},
|
|
369
|
-
nl: {
|
|
370
|
-
mainNavigation: 'Hoofdnavigatie',
|
|
371
|
-
navigation: 'Navigatie',
|
|
372
|
-
subNavigation: 'Subnavigatie',
|
|
373
|
-
open: 'Menu openen',
|
|
374
|
-
close: 'Menu sluiten',
|
|
375
|
-
},
|
|
376
|
-
es: {
|
|
377
|
-
mainNavigation: 'Navegación principal',
|
|
378
|
-
navigation: 'Navegación',
|
|
379
|
-
subNavigation: 'Subnavegación',
|
|
380
|
-
open: 'Menú abierto',
|
|
381
|
-
close: 'Cerrar menú',
|
|
382
|
-
},
|
|
383
|
-
pl: {
|
|
384
|
-
mainNavigation: 'Nawigacja główna',
|
|
385
|
-
navigation: 'Nawigacja',
|
|
386
|
-
subNavigation: 'Nawigacja podrzędna',
|
|
387
|
-
open: 'Otwórz menu',
|
|
388
|
-
close: 'Zamknij menu',
|
|
389
|
-
},
|
|
390
|
-
pt: {
|
|
391
|
-
mainNavigation: 'Navegação principal',
|
|
392
|
-
navigation: 'Navegação',
|
|
393
|
-
subNavigation: 'Subnavegação',
|
|
394
|
-
open: 'Menu aberto',
|
|
395
|
-
close: 'Fechar menu',
|
|
396
|
-
},
|
|
397
|
-
sv: {
|
|
398
|
-
mainNavigation: 'Huvudnavigering',
|
|
399
|
-
navigation: 'Navigering',
|
|
400
|
-
subNavigation: 'Undernavigering',
|
|
401
|
-
open: 'Öppna menyn',
|
|
402
|
-
close: 'Stäng menyn',
|
|
403
|
-
},
|
|
404
|
-
fi: {
|
|
405
|
-
mainNavigation: 'Päänavigaatio',
|
|
406
|
-
navigation: 'Navigaatio',
|
|
407
|
-
subNavigation: 'Alinavigaatio',
|
|
408
|
-
open: 'Avaa valikko',
|
|
409
|
-
close: 'Sulje valikko',
|
|
410
|
-
},
|
|
411
|
-
};
|
|
412
|
-
|
|
413
413
|
const balNavCss = "@media (hover: hover)and (pointer: fine){.bal-nav__logo:focus-visible{-webkit-box-shadow:var(--bal-focus-shadow) !important;box-shadow:var(--bal-focus-shadow) !important}}:root{--bal-nav-background:var(--bal-color-primary);--bal-nav-service-background-grey:var(--bal-color-grey);--bal-nav-service-background-purple:var(--bal-color-purple);--bal-nav-service-background-red:var(--bal-color-red);--bal-nav-service-background-yellow:var(--bal-color-yellow);--bal-nav-service-background-green:var(--bal-color-green)}.bal-nav{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:block;width:100%}.bal-nav__flyout{background:var(--bal-color-white);scroll-padding-top:1rem;padding-top:1rem;padding-bottom:1rem;height:calc(var(--bal-app-height, 100%) - 4rem - 4rem);overflow-y:auto}@media screen and (min-width: 1024px){.bal-nav__flyout{display:none;visibility:hidden}}.bal-nav__flyout__container{-ms-flex-positive:1;flex-grow:1;margin:0 auto;position:relative;width:auto;width:100% !important;padding-left:var(--bal-container-space);padding-right:var(--bal-container-space)}.bal-nav__flyout__container--fluid{max-width:var(--bal-container-size-fluid) !important}.bal-nav__flyout__container--detail-page{max-width:var(--bal-container-size-detail-page) !important}.bal-nav__flyout__container--compact{max-width:var(--bal-container-size-compact) !important}.bal-nav__flyout__container--blog-page{max-width:var(--bal-container-size-blog-page) !important}@media screen and (min-width: 769px),print{.bal-nav__flyout__container{padding-left:var(--bal-container-space-tablet);padding-right:var(--bal-container-space-tablet)}}@media screen and (min-width: 1024px){.bal-nav__flyout__container{padding-left:var(--bal-container-space-desktop);padding-right:var(--bal-container-space-desktop);max-width:var(--bal-container-size-normal)}}.bal-nav__flyout:not(.bal-nav__flyout--visible){position:absolute !important;height:1px !important;width:1px !important;padding:0 !important;overflow:hidden !important;border:none !important;white-space:nowrap !important;clip:rect(1px 1px 1px 1px) !important;clip:rect(1px, 1px, 1px, 1px) !important}.bal-nav .bal-nav-meta-bar,.bal-nav .bal-nav-menu-bar{z-index:auto !important}.bal-list__item__accordion-head:after{background:rgba(0,0,0,0) !important}.bal-nav-meta-bar-transform-touch{z-index:var(--bal-z-index-popup);position:relative}.bal-nav__mobile-meta-item{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;text-align:start;width:100%;min-height:3rem;border:none;padding:0;margin:0;gap:var(--bal-space-normal);background:rgba(0,0,0,0);font-family:var(--bal-font-family-title);font-weight:var(--bal-font-weight-bold);font-size:var(--bal-size-x-large);line-height:var(--bal-line-heigh-x-large);cursor:pointer}.bal-nav__mobile-menu-item{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;text-align:start;width:100%;min-height:3rem;border:none;margin:0;padding:0 0 0 1rem;gap:var(--bal-space-normal);background:rgba(0,0,0,0);font-family:var(--bal-font-family-title);font-weight:var(--bal-font-weight-bold);font-size:var(--bal-size-large);line-height:var(--bal-line-heigh-large);cursor:pointer}.bal-nav__mobile-section-item,.bal-nav__mobile-service-item>a{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;text-align:start;width:100%;min-height:2rem;border:none;margin:0;padding:0 2rem 0 2rem;gap:var(--bal-space-normal);background:rgba(0,0,0,0);font-family:var(--bal-font-family-title);font-weight:var(--bal-font-weight-bold);font-size:var(--bal-size-normal);line-height:var(--bal-line-heigh-normal)}.bal-nav__mobile-links{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;text-align:start;width:100%;min-height:2rem;border:none;margin:0;padding:0 2rem 0 2rem;gap:var(--bal-space-normal);background:rgba(0,0,0,0);font-family:var(--bal-font-family-text);font-size:var(--bal-size-normal);line-height:var(--bal-line-heigh-normal)}.bal-nav__mobile-meta-list,.bal-nav__mobile-meta-list>li,.bal-nav__mobile-menu-list,.bal-nav__mobile-menu-list>li,.bal-nav__mobile-section-list,.bal-nav__mobile-service-list,.bal-nav__mobile-section-list>li,.bal-nav__mobile-service-list>li,.bal-nav__mobile-links-list{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.bal-nav__mobile-meta-list,.bal-nav__mobile-meta-list>li{gap:var(--bal-space-normal)}.bal-nav__mobile-menu-list{gap:var(--bal-space-normal)}.bal-nav__mobile-menu-list>li{gap:var(--bal-space-normal)}.bal-nav__mobile-section-list,.bal-nav__mobile-service-list{gap:var(--bal-space-x-large)}.bal-nav__mobile-section-list>li,.bal-nav__mobile-service-list>li{gap:var(--bal-space-xx-small)}.bal-nav__mobile-links-list{gap:var(--bal-space-xx-small)}.bal-nav__mobile-section-list{padding-top:1rem}.bal-nav__mobile-service-list>li{border-radius:var(--bal-radius-normal);padding-top:1rem;padding-bottom:1rem}.bal-nav__mobile-section-list--invisible,.bal-nav__mobile-service-list--invisible{position:absolute !important;height:1px !important;width:1px !important;padding:0 !important;overflow:hidden !important;border:none !important;white-space:nowrap !important;clip:rect(1px 1px 1px 1px) !important;clip:rect(1px, 1px, 1px, 1px) !important}.bal-nav__mobile-overview-link{font-family:var(--bal-font-family-text);font-weight:var(--bal-font-weight-bold);font-size:var(--bal-size-x-small);line-height:var(--bal-line-height-x-small)}.bal-nav__mobile-overview-link--invisible{position:absolute !important;height:1px !important;width:1px !important;padding:0 !important;overflow:hidden !important;border:none !important;white-space:nowrap !important;clip:rect(1px 1px 1px 1px) !important;clip:rect(1px, 1px, 1px, 1px) !important}.bal-nav__mobile-overview-link--menu{padding:0 0 0 1rem}.bal-nav__line{background-color:var(--bal-color-border-grey-light);height:var(--bal-border-width-normal);border:none;display:block;border-radius:var(--bal-list-item-radius);width:100%;margin:0;padding:0}.bal-nav__mobile-links--clickable,.bal-nav__mobile-section-item--clickable,.bal-nav__mobile-service-item--clickable>a{cursor:pointer}.bal-nav__mobile-links--selected,.bal-nav__mobile-section-item--selected,.bal-nav__mobile-service-item--selected>a{text-decoration:underline}.bal-nav__mobile-service-item--color-grey{background:var(--bal-nav-service-background-grey)}.bal-nav__mobile-service-item--color-purple{background:var(--bal-nav-service-background-purple)}.bal-nav__mobile-service-item--color-red{background:var(--bal-nav-service-background-red)}.bal-nav__mobile-service-item--color-yellow{background:var(--bal-nav-service-background-yellow)}.bal-nav__mobile-service-item--color-green{background:var(--bal-nav-service-background-green)}";
|
|
414
414
|
const BalNavStyle0 = balNavCss;
|
|
415
415
|
|
|
@@ -149,6 +149,9 @@ function toNumber(value, decimalPoints = 0) {
|
|
|
149
149
|
if (checkIfValueIsStringAndDoesNotHaveGermanFormat(val)) {
|
|
150
150
|
val = val.split(getThousandSeparator()).join('').split('`').join('').split("'").join('');
|
|
151
151
|
}
|
|
152
|
+
if (typeof val === 'string') {
|
|
153
|
+
val = val.replace(getDecimalSeparator(), '.');
|
|
154
|
+
}
|
|
152
155
|
return decimalPoints === 0 ? parseInt(val, 10) : parseFloat(val);
|
|
153
156
|
}
|
|
154
157
|
function toFixedNumber(value, decimalPoints = 0) {
|
|
@@ -3,8 +3,8 @@ import { _ as __decorate, a as __metadata } from './tslib.es6.js';
|
|
|
3
3
|
import { B as BEM } from './bem.js';
|
|
4
4
|
import { b as balBrowser } from './browser.js';
|
|
5
5
|
import { L as Logger } from './log.js';
|
|
6
|
-
import { L as ListenToBreakpoints } from './breakpoints.decorator.js';
|
|
7
6
|
import { b as balBreakpoints } from './breakpoints.subject.js';
|
|
7
|
+
import { L as ListenToBreakpoints } from './breakpoints.decorator.js';
|
|
8
8
|
|
|
9
9
|
var top = 'top';
|
|
10
10
|
var bottom = 'bottom';
|