@baloise/ds-core 19.0.1 → 19.1.0
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/bal-button2.js +14 -10
- package/components/bal-date.js +84 -61
- 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 +1 -1
- 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/index.esm.js +1 -1
- package/dist/baloise-design-system/{p-3b1a0df0.js → p-022af4f2.js} +1 -1
- package/dist/baloise-design-system/{p-bbdf082862.entry.js → p-131fd635ef.entry.js} +1 -1
- package/dist/baloise-design-system/{p-40b022e526.entry.js → p-13ea819488.entry.js} +1 -1
- package/dist/baloise-design-system/{p-beb28f85.system.js → p-14c507db.system.js} +1 -1
- package/dist/baloise-design-system/{p-8f17a55f2b.system.entry.js → p-1693fa7649.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-0ac528b6cb.entry.js → p-16ebe71517.entry.js} +1 -1
- 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-20bc89d933.entry.js +1 -0
- package/dist/baloise-design-system/{p-817f7907be.system.entry.js → p-2367556371.system.entry.js} +1 -1
- 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-2a27350c.js +1 -0
- package/dist/baloise-design-system/{p-b79164fedd.entry.js → p-32bf71aa6c.entry.js} +1 -1
- package/dist/baloise-design-system/p-345aa92d.system.js +1 -1
- package/dist/baloise-design-system/{p-a15a24d3a1.system.entry.js → p-35fde87c2a.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-363a7f7760.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-b268996da1.system.entry.js → p-42b2e62411.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-9f14664495.system.entry.js → p-47eaccc384.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-1e738175.system.js → p-490383ab.system.js} +1 -1
- package/dist/baloise-design-system/{p-f005df0cd0.entry.js → p-53b2b718c5.entry.js} +1 -1
- package/dist/baloise-design-system/{p-58cd37922d.system.entry.js → p-58b1d6fa96.system.entry.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-c8ee46d5bc.entry.js → p-64916e34a4.entry.js} +1 -1
- package/dist/baloise-design-system/p-659ecadc.system.js +1 -1
- package/dist/baloise-design-system/{p-655d37c8.system.js → p-68d7e929.system.js} +1 -1
- package/dist/baloise-design-system/p-702abad387.entry.js +1 -0
- package/dist/baloise-design-system/p-7d4fac85.js +1 -0
- package/dist/baloise-design-system/p-8a9fb4619a.entry.js +1 -0
- package/dist/baloise-design-system/p-8bd42bba68.entry.js +1 -0
- package/dist/baloise-design-system/p-967bdfab.js +1 -0
- package/dist/baloise-design-system/{p-5cfc65b40f.system.entry.js → p-98cf514345.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-9d3935fbbc.entry.js +1 -0
- package/dist/baloise-design-system/{p-f19ea306.system.js → p-9f7a1215.system.js} +1 -1
- 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-ef4bf5f5.js → p-b96e5a6c.js} +1 -1
- package/dist/baloise-design-system/{p-ec777a9167.entry.js → p-b9a4f3580b.entry.js} +1 -1
- package/dist/baloise-design-system/{p-df5ddf4439.system.entry.js → p-c5ac7b5d30.system.entry.js} +1 -1
- package/dist/baloise-design-system/{p-2bc77d4c8d.system.entry.js → p-c89750c825.system.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-234c26f450.system.entry.js → p-dd2a76bd7c.system.entry.js} +1 -1
- package/dist/baloise-design-system/p-df9bc850dc.system.entry.js +1 -0
- package/dist/baloise-design-system/p-e43b61e151.system.entry.js +1 -0
- package/dist/baloise-design-system/{p-5281d378.system.js → p-e453a2de.system.js} +1 -1
- package/dist/baloise-design-system/p-e75452d8.system.js +1 -0
- package/dist/baloise-design-system/{p-77c6d65eb1.entry.js → p-eaed1f800c.entry.js} +1 -1
- package/dist/baloise-design-system/p-f04cab5af1.entry.js +1 -0
- package/dist/baloise-design-system/p-f2cc4e63d4.entry.js +1 -0
- package/dist/baloise-design-system/{p-2556cb83d1.entry.js → p-f6b1d87619.entry.js} +1 -1
- 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-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 +1 -1
- package/dist/cjs/{breakpoints.decorator-9a0be218.js → breakpoints.decorator-5086ec90.js} +1 -1
- package/dist/cjs/{breakpoints.subject-19c7123e.js → breakpoints.subject-a1180187.js} +1 -1
- 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 +1 -1
- package/dist/cjs/{scroll-73c1b762.js → scroll-dc37ea84.js} +2 -0
- package/dist/cjs/{tokens.esm-3468979c.js → tokens.esm-263be70d.js} +1 -1
- package/dist/cjs/{window-resize.decorator-86974eaf.js → window-resize.decorator-9a06680f.js} +1 -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/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/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-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 +1 -1
- package/dist/esm/{breakpoints.decorator-899aba5d.js → breakpoints.decorator-3666716a.js} +1 -1
- package/dist/esm/{breakpoints.subject-2397d734.js → breakpoints.subject-1aa7be9a.js} +1 -1
- 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 +1 -1
- package/dist/esm/{scroll-f4b20848.js → scroll-521224a9.js} +2 -0
- package/dist/esm/{tokens.esm-a6a0f537.js → tokens.esm-a3abda33.js} +1 -1
- package/dist/esm/{window-resize.decorator-f286b710.js → window-resize.decorator-ef52bf33.js} +1 -1
- 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-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-3666716a.js +1 -0
- package/dist/esm-es5/{breakpoints.subject-2397d734.js → breakpoints.subject-1aa7be9a.js} +1 -1
- 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-ef52bf33.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.d.ts +5 -1
- package/package.json +6 -6
- 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-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-b26a67d805.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/baloise-design-system/p-f89208a3.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-95d42ad1.js → p-928bbc47.js} +0 -0
- package/dist/baloise-design-system/{p-cebe968d.system.js → p-bccc3d48.system.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-a3abda33.js} +0 -0
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';
|