@baloise/ds-core 17.2.0-snapshot.1553-38c517d35 → 17.2.1

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.
Files changed (182) hide show
  1. package/components/all.d.ts +0 -2
  2. package/components/all.js +0 -3
  3. package/components/bal-app.js +93 -1
  4. package/components/bal-carousel2.js +1 -1
  5. package/components/bal-close2.js +1 -1
  6. package/components/bal-date-calendar2.js +1 -1
  7. package/components/bal-date.js +1 -1
  8. package/components/bal-input-date2.js +2 -2
  9. package/components/bal-list-item-accordion-body2.js +3 -3
  10. package/components/bal-pagination2.js +4 -4
  11. package/components/bal-segment.js +1 -1
  12. package/components/bal-stage-image.js +1 -1
  13. package/components/index.js +304 -5
  14. package/components/tokens.esm.js +1 -1
  15. package/dist/baloise-design-system/baloise-design-system.esm.js +1 -1
  16. package/dist/baloise-design-system/baloise-design-system.js +1 -1
  17. package/dist/baloise-design-system/index.esm.js +1 -1
  18. package/dist/baloise-design-system/{p-1e671bea.js → p-00281d6b.js} +1 -1
  19. package/dist/baloise-design-system/{p-799a292492.entry.js → p-04979ee232.entry.js} +1 -1
  20. package/dist/baloise-design-system/{p-cc4dc17721.system.entry.js → p-18fbeec32d.system.entry.js} +1 -1
  21. package/dist/baloise-design-system/{p-e8d8f9a210.entry.js → p-19abec97c4.entry.js} +1 -1
  22. package/dist/baloise-design-system/{p-cb8c1c17.system.js → p-1c118a88.system.js} +1 -1
  23. package/dist/baloise-design-system/{p-aebb3198c4.system.entry.js → p-1cb1fb71d4.system.entry.js} +1 -1
  24. package/dist/baloise-design-system/{p-c045d5a57c.system.entry.js → p-20d7a74311.system.entry.js} +1 -1
  25. package/dist/baloise-design-system/{p-0ab5029794.system.entry.js → p-25e640839d.system.entry.js} +1 -1
  26. package/dist/baloise-design-system/{p-2e5b8cdb77.system.entry.js → p-27d3f5d35a.system.entry.js} +1 -1
  27. package/dist/baloise-design-system/{p-7e297d4300.entry.js → p-296b12e3a9.entry.js} +1 -1
  28. package/dist/baloise-design-system/{p-49f8f73dfe.entry.js → p-2ad664ad93.entry.js} +1 -1
  29. package/dist/baloise-design-system/{p-bc6c642b.system.js → p-35120ab6.system.js} +1 -1
  30. package/dist/baloise-design-system/{p-9f83acd71d.entry.js → p-39ad885d73.entry.js} +1 -1
  31. package/dist/baloise-design-system/{p-8779c572cd.system.entry.js → p-3a0a84fbcc.system.entry.js} +1 -1
  32. package/dist/baloise-design-system/{p-264ebc05d2.entry.js → p-47ae469120.entry.js} +1 -1
  33. package/dist/baloise-design-system/{p-3423e78c.system.js → p-486eb96d.system.js} +1 -1
  34. package/dist/baloise-design-system/p-51380295.system.js +1 -0
  35. package/dist/baloise-design-system/{p-78e5f81fa3.entry.js → p-58f7826179.entry.js} +1 -1
  36. package/dist/baloise-design-system/{p-6da90e864a.system.entry.js → p-61b87619ac.system.entry.js} +1 -1
  37. package/dist/baloise-design-system/p-65b542bd.system.js +1 -1
  38. package/dist/baloise-design-system/{p-782825e8fe.system.entry.js → p-682a1550e1.system.entry.js} +1 -1
  39. package/dist/baloise-design-system/{p-78ead945.js → p-7684efd8.js} +1 -1
  40. package/dist/baloise-design-system/{p-2228c8050e.system.entry.js → p-77a1d547e2.system.entry.js} +1 -1
  41. package/dist/baloise-design-system/{p-992c49c23e.system.entry.js → p-7d63b70a40.system.entry.js} +1 -1
  42. package/dist/baloise-design-system/{p-684e162170.entry.js → p-7e50273c21.entry.js} +1 -1
  43. package/dist/baloise-design-system/{p-9ef02421.system.js → p-9d3f7645.system.js} +1 -1
  44. package/dist/baloise-design-system/{p-e08f9ea35e.system.entry.js → p-9e2730c56b.system.entry.js} +1 -1
  45. package/dist/baloise-design-system/{p-9e9a0779c0.entry.js → p-a33ee4ca30.entry.js} +1 -1
  46. package/dist/baloise-design-system/{p-1106d54d6b.entry.js → p-a5a8da4e09.entry.js} +1 -1
  47. package/dist/baloise-design-system/{p-d4dec4c5bd.entry.js → p-a76969fe16.entry.js} +1 -1
  48. package/dist/baloise-design-system/{p-7520c5d0be.entry.js → p-aa08fe2376.entry.js} +1 -1
  49. package/dist/baloise-design-system/{p-b4abe7e0bd.entry.js → p-ac2b4a256d.entry.js} +1 -1
  50. package/dist/baloise-design-system/{p-8b22e2ca75.system.entry.js → p-b5c538994b.system.entry.js} +1 -1
  51. package/dist/baloise-design-system/{p-be6d3bde8f.entry.js → p-c486a8a8ed.entry.js} +1 -1
  52. package/dist/baloise-design-system/{p-29a80b8673.system.entry.js → p-cd5cbb0462.system.entry.js} +1 -1
  53. package/dist/baloise-design-system/{p-4a70ddd752.system.entry.js → p-d21e99c2da.system.entry.js} +1 -1
  54. package/dist/baloise-design-system/{p-bb06c30171.system.entry.js → p-d8420ad3d5.system.entry.js} +1 -1
  55. package/dist/baloise-design-system/{p-76961cab.system.js → p-dafb9ede.system.js} +1 -1
  56. package/dist/baloise-design-system/{p-34c50dfa1e.entry.js → p-dc032a0d49.entry.js} +1 -1
  57. package/dist/baloise-design-system/p-e3167218.js +1 -1
  58. package/dist/baloise-design-system/p-e563e447.js +1 -0
  59. package/dist/baloise-design-system/{p-f9d328f49d.system.entry.js → p-e5724f1013.system.entry.js} +1 -1
  60. package/dist/baloise-design-system/{p-4227a8f4dd.entry.js → p-fc915218bf.entry.js} +1 -1
  61. package/dist/baloise-design-system/p-fe30593a.js +1 -0
  62. package/dist/cjs/{global-9176b6c7.js → app-globals-661b320a.js} +4 -2
  63. package/dist/cjs/bal-carousel_2.cjs.entry.js +4 -4
  64. package/dist/cjs/bal-close.cjs.entry.js +1 -1
  65. package/dist/cjs/bal-date-calendar_2.cjs.entry.js +3 -3
  66. package/dist/cjs/bal-date.cjs.entry.js +1 -1
  67. package/dist/cjs/bal-hint_5.cjs.entry.js +3 -3
  68. package/dist/cjs/bal-list_8.cjs.entry.js +6 -6
  69. package/dist/cjs/bal-logo.cjs.entry.js +3 -3
  70. package/dist/cjs/bal-nav_8.cjs.entry.js +3 -3
  71. package/dist/cjs/bal-navbar_5.cjs.entry.js +3 -3
  72. package/dist/cjs/bal-pagination.cjs.entry.js +7 -7
  73. package/dist/cjs/bal-progress-bar.cjs.entry.js +4 -4
  74. package/dist/cjs/bal-segment_2.cjs.entry.js +5 -5
  75. package/dist/cjs/bal-shape.cjs.entry.js +1 -1
  76. package/dist/cjs/bal-stage_6.cjs.entry.js +1 -1
  77. package/dist/cjs/bal-steps.cjs.entry.js +3 -3
  78. package/dist/cjs/bal-tab-item_2.cjs.entry.js +3 -3
  79. package/dist/cjs/baloise-design-system.cjs.js +2 -3
  80. package/dist/cjs/{breakpoints.decorator-8b9fdf04.js → breakpoints.decorator-2c97bb36.js} +1 -1
  81. package/dist/cjs/{breakpoints.subject-59bfbfda.js → breakpoints.subject-f3104eb9.js} +1 -1
  82. package/dist/cjs/index.cjs.js +2 -2
  83. package/dist/cjs/initialize-6421e1c1.js +1 -1
  84. package/dist/cjs/loader.cjs.js +2 -3
  85. package/dist/cjs/{tokens.esm-f341db5d.js → tokens.esm-dbef942e.js} +1 -1
  86. package/dist/cjs/{window-resize.decorator-2bd81a2d.js → window-resize.decorator-69ff6e4c.js} +1 -1
  87. package/dist/collection/collection-manifest.json +1 -2
  88. package/dist/collection/components/bal-carousel/bal-carousel.js +3 -3
  89. package/dist/collection/components/bal-close/bal-close.js +4 -4
  90. package/dist/collection/components/bal-date/bal-date-calendar/bal-date-calendar.js +1 -1
  91. package/dist/collection/components/bal-date/bal-date.js +3 -3
  92. package/dist/collection/components/bal-input/bal-input-date/bal-input-date.js +4 -4
  93. package/dist/collection/components/bal-list/bal-list-item-accordion-body/bal-list-item-accordion-body.js +3 -3
  94. package/dist/collection/components/bal-pagination/bal-pagination.js +6 -6
  95. package/dist/collection/components/bal-segment/bal-segment.js +1 -1
  96. package/dist/collection/components/bal-stage/bal-stage-image/bal-stage-image.js +1 -1
  97. package/dist/collection/utils/constants/version.constant.js +1 -1
  98. package/dist/esm/{global-7dca4c85.js → app-globals-665b5c71.js} +4 -2
  99. package/dist/esm/bal-carousel_2.entry.js +4 -4
  100. package/dist/esm/bal-close.entry.js +1 -1
  101. package/dist/esm/bal-date-calendar_2.entry.js +3 -3
  102. package/dist/esm/bal-date.entry.js +1 -1
  103. package/dist/esm/bal-hint_5.entry.js +3 -3
  104. package/dist/esm/bal-list_8.entry.js +6 -6
  105. package/dist/esm/bal-logo.entry.js +3 -3
  106. package/dist/esm/bal-nav_8.entry.js +3 -3
  107. package/dist/esm/bal-navbar_5.entry.js +3 -3
  108. package/dist/esm/bal-pagination.entry.js +7 -7
  109. package/dist/esm/bal-progress-bar.entry.js +4 -4
  110. package/dist/esm/bal-segment_2.entry.js +5 -5
  111. package/dist/esm/bal-shape.entry.js +1 -1
  112. package/dist/esm/bal-stage_6.entry.js +1 -1
  113. package/dist/esm/bal-steps.entry.js +3 -3
  114. package/dist/esm/bal-tab-item_2.entry.js +3 -3
  115. package/dist/esm/baloise-design-system.js +2 -3
  116. package/dist/esm/{breakpoints.decorator-ce1b3485.js → breakpoints.decorator-a8efc52b.js} +1 -1
  117. package/dist/esm/{breakpoints.subject-74513229.js → breakpoints.subject-0764e6ff.js} +1 -1
  118. package/dist/esm/index.js +3 -3
  119. package/dist/esm/initialize-b9912138.js +1 -1
  120. package/dist/esm/loader.js +2 -3
  121. package/dist/esm/{tokens.esm-38aa2448.js → tokens.esm-69df759d.js} +1 -1
  122. package/dist/esm/{window-resize.decorator-8698f75e.js → window-resize.decorator-53d6279e.js} +1 -1
  123. package/dist/esm-es5/app-globals-665b5c71.js +1 -0
  124. package/dist/esm-es5/bal-carousel_2.entry.js +1 -1
  125. package/dist/esm-es5/bal-close.entry.js +1 -1
  126. package/dist/esm-es5/bal-date-calendar_2.entry.js +1 -1
  127. package/dist/esm-es5/bal-date.entry.js +1 -1
  128. package/dist/esm-es5/bal-hint_5.entry.js +1 -1
  129. package/dist/esm-es5/bal-list_8.entry.js +1 -1
  130. package/dist/esm-es5/bal-logo.entry.js +1 -1
  131. package/dist/esm-es5/bal-nav_8.entry.js +1 -1
  132. package/dist/esm-es5/bal-navbar_5.entry.js +1 -1
  133. package/dist/esm-es5/bal-pagination.entry.js +1 -1
  134. package/dist/esm-es5/bal-progress-bar.entry.js +1 -1
  135. package/dist/esm-es5/bal-segment_2.entry.js +1 -1
  136. package/dist/esm-es5/bal-shape.entry.js +1 -1
  137. package/dist/esm-es5/bal-stage_6.entry.js +1 -1
  138. package/dist/esm-es5/bal-steps.entry.js +1 -1
  139. package/dist/esm-es5/bal-tab-item_2.entry.js +1 -1
  140. package/dist/esm-es5/baloise-design-system.js +1 -1
  141. package/dist/esm-es5/breakpoints.decorator-a8efc52b.js +1 -0
  142. package/dist/esm-es5/{breakpoints.subject-74513229.js → breakpoints.subject-0764e6ff.js} +1 -1
  143. package/dist/esm-es5/index.js +1 -1
  144. package/dist/esm-es5/initialize-b9912138.js +1 -1
  145. package/dist/esm-es5/loader.js +1 -1
  146. package/dist/esm-es5/{window-resize.decorator-8698f75e.js → window-resize.decorator-53d6279e.js} +1 -1
  147. package/dist/types/components/bal-carousel/bal-carousel.d.ts +1 -2
  148. package/dist/types/components/bal-close/bal-close.d.ts +1 -2
  149. package/dist/types/components/bal-date/bal-date-calendar/bal-date-calendar.d.ts +1 -1
  150. package/dist/types/components/bal-date/bal-date.d.ts +1 -2
  151. package/dist/types/components/bal-input/bal-input-date/bal-input-date.d.ts +1 -1
  152. package/dist/types/components/bal-list/bal-list-item-accordion-body/bal-list-item-accordion-body.d.ts +1 -1
  153. package/dist/types/components/bal-pagination/bal-pagination.d.ts +1 -2
  154. package/dist/types/components/bal-segment/bal-segment.d.ts +1 -1
  155. package/dist/types/components.d.ts +7 -44
  156. package/package.json +7 -7
  157. package/components/bal-app2.js +0 -95
  158. package/components/bal-doc-app.d.ts +0 -11
  159. package/components/bal-doc-app.js +0 -262
  160. package/components/initialize.js +0 -303
  161. package/dist/baloise-design-system/p-44a9de84.js +0 -1
  162. package/dist/baloise-design-system/p-576c7123.system.js +0 -1
  163. package/dist/baloise-design-system/p-605cf17f30.entry.js +0 -1
  164. package/dist/baloise-design-system/p-92a6c4407c.system.entry.js +0 -1
  165. package/dist/baloise-design-system/p-a24e650e.js +0 -1
  166. package/dist/baloise-design-system/p-a29f60e9.js +0 -1
  167. package/dist/baloise-design-system/p-fabf47dd.system.js +0 -1
  168. package/dist/cjs/app-globals-d0a40f5b.js +0 -7
  169. package/dist/cjs/bal-doc-app.cjs.entry.js +0 -233
  170. package/dist/collection/components/docs/bal-doc-app/bal-doc-app.css +0 -1
  171. package/dist/collection/components/docs/bal-doc-app/bal-doc-app.js +0 -229
  172. package/dist/esm/app-globals-10882328.js +0 -5
  173. package/dist/esm/bal-doc-app.entry.js +0 -229
  174. package/dist/esm-es5/app-globals-10882328.js +0 -1
  175. package/dist/esm-es5/bal-doc-app.entry.js +0 -1
  176. package/dist/esm-es5/breakpoints.decorator-ce1b3485.js +0 -1
  177. package/dist/esm-es5/global-7dca4c85.js +0 -1
  178. package/dist/types/components/docs/bal-doc-app/bal-doc-app.d.ts +0 -21
  179. package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/icons/src/index.d.ts +0 -82
  180. /package/dist/baloise-design-system/{p-f7dad636.js → p-0521dc23.js} +0 -0
  181. /package/dist/baloise-design-system/{p-c430fe70.system.js → p-342d34ac.system.js} +0 -0
  182. /package/dist/esm-es5/{tokens.esm-38aa2448.js → tokens.esm-69df759d.js} +0 -0
@@ -27,7 +27,6 @@ import { BalDate, defineCustomElement as defineBalDate } from './bal-date'
27
27
  import { BalDateCalendar, defineCustomElement as defineBalDateCalendar } from './bal-date-calendar'
28
28
  import { BalDateCalendarCell, defineCustomElement as defineBalDateCalendarCell } from './bal-date-calendar-cell'
29
29
  import { BalDivider, defineCustomElement as defineBalDivider } from './bal-divider'
30
- import { BalDocApp, defineCustomElement as defineBalDocApp } from './bal-doc-app'
31
30
  import { BalDropdown, defineCustomElement as defineBalDropdown } from './bal-dropdown'
32
31
  import { BalField, defineCustomElement as defineBalField } from './bal-field'
33
32
  import { BalFieldControl, defineCustomElement as defineBalFieldControl } from './bal-field-control'
@@ -145,7 +144,6 @@ export { BalDate, defineBalDate }
145
144
  export { BalDateCalendar, defineBalDateCalendar }
146
145
  export { BalDateCalendarCell, defineBalDateCalendarCell }
147
146
  export { BalDivider, defineBalDivider }
148
- export { BalDocApp, defineBalDocApp }
149
147
  export { BalDropdown, defineBalDropdown }
150
148
  export { BalField, defineBalField }
151
149
  export { BalFieldControl, defineBalFieldControl }
package/components/all.js CHANGED
@@ -27,7 +27,6 @@ import { BalDate, defineCustomElement as defineBalDate } from './bal-date'
27
27
  import { BalDateCalendar, defineCustomElement as defineBalDateCalendar } from './bal-date-calendar'
28
28
  import { BalDateCalendarCell, defineCustomElement as defineBalDateCalendarCell } from './bal-date-calendar-cell'
29
29
  import { BalDivider, defineCustomElement as defineBalDivider } from './bal-divider'
30
- import { BalDocApp, defineCustomElement as defineBalDocApp } from './bal-doc-app'
31
30
  import { BalDropdown, defineCustomElement as defineBalDropdown } from './bal-dropdown'
32
31
  import { BalField, defineCustomElement as defineBalField } from './bal-field'
33
32
  import { BalFieldControl, defineCustomElement as defineBalFieldControl } from './bal-field-control'
@@ -145,7 +144,6 @@ export { BalDate, defineBalDate }
145
144
  export { BalDateCalendar, defineBalDateCalendar }
146
145
  export { BalDateCalendarCell, defineBalDateCalendarCell }
147
146
  export { BalDivider, defineBalDivider }
148
- export { BalDocApp, defineBalDocApp }
149
147
  export { BalDropdown, defineBalDropdown }
150
148
  export { BalField, defineBalField }
151
149
  export { BalFieldControl, defineBalFieldControl }
@@ -264,7 +262,6 @@ export const defineAllComponents = () => {
264
262
  defineBalDateCalendar()
265
263
  defineBalDateCalendarCell()
266
264
  defineBalDivider()
267
- defineBalDocApp()
268
265
  defineBalDropdown()
269
266
  defineBalField()
270
267
  defineBalFieldControl()
@@ -1,4 +1,96 @@
1
- import { A as App, d as defineCustomElement$1 } from './bal-app2.js';
1
+ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
+ import { _ as __decorate, a as __metadata } from './tslib.es6.js';
3
+ import { b as balBrowser } from './browser.js';
4
+ import { b as balDevice } from './device.js';
5
+ import { j as debounce, o as rIC, l as rLCP } from './helpers.js';
6
+ import { L as Logger } from './log.js';
7
+ import { s as startFocusVisible } from './focus-visible.js';
8
+ import { b as updateBalAnimated } from './config.utils.js';
9
+
10
+ const balAppCss = ":root{--bal-app-height:100%}.bal-app{position:relative;display:block}.lcp-wait{opacity:0;visibility:hidden;display:none}.lcp-ready .lcp-wait{opacity:inherit;visibility:inherit;display:inherit}";
11
+ const BalAppStyle0 = balAppCss;
12
+
13
+ const App = /*@__PURE__*/ proxyCustomElement(class App extends HTMLElement {
14
+ constructor() {
15
+ super();
16
+ this.__registerHost();
17
+ this.debouncedNotify = debounce(() => this.notifyResize(), 100);
18
+ this.notifyResize = async () => {
19
+ if (balBrowser.hasDocument && balBrowser.hasWindow) {
20
+ const doc = document.documentElement;
21
+ doc.style.setProperty('--bal-app-height', `${window.innerHeight}px`);
22
+ }
23
+ };
24
+ this.animated = true;
25
+ this.ready = false;
26
+ }
27
+ createLogger(log) {
28
+ this.log = log;
29
+ }
30
+ connectedCallback() {
31
+ if (this.animated === false) {
32
+ updateBalAnimated(this.animated);
33
+ }
34
+ if (balBrowser.hasWindow) {
35
+ window.addEventListener('resize', this.debouncedNotify);
36
+ this.debouncedNotify();
37
+ }
38
+ }
39
+ componentDidLoad() {
40
+ rIC(() => {
41
+ this.ready = true;
42
+ startFocusVisible();
43
+ });
44
+ rLCP(() => {
45
+ if (balBrowser.hasDocument && balBrowser.hasWindow) {
46
+ const doc = document.documentElement;
47
+ doc.classList.add('lcp-ready');
48
+ }
49
+ });
50
+ }
51
+ disconnectedCallback() {
52
+ if (balBrowser.hasWindow) {
53
+ window.removeEventListener('resize', this.debouncedNotify);
54
+ }
55
+ }
56
+ async setFocus(elements) {
57
+ if (this.focusVisible) {
58
+ this.focusVisible.setFocus(elements);
59
+ }
60
+ }
61
+ render() {
62
+ return (h(Host, { key: '8e124474f0e95f8fdcd4546d7998556764d81d71', class: {
63
+ 'bal-app': true,
64
+ 'bal-app--safari': balBrowser.isSafari,
65
+ 'bal-app--touch': balDevice.hasTouchScreen,
66
+ } }, h("slot", { key: 'e4a8974a3f55ec71c4ff7c46f2a9728d7efd4408' })));
67
+ }
68
+ get el() { return this; }
69
+ static get style() { return BalAppStyle0; }
70
+ }, [4, "bal-app", {
71
+ "animated": [516],
72
+ "ready": [1540],
73
+ "setFocus": [64]
74
+ }]);
75
+ __decorate([
76
+ Logger('bal-app'),
77
+ __metadata("design:type", Function),
78
+ __metadata("design:paramtypes", [Function]),
79
+ __metadata("design:returntype", void 0)
80
+ ], App.prototype, "createLogger", null);
81
+ function defineCustomElement$1() {
82
+ if (typeof customElements === "undefined") {
83
+ return;
84
+ }
85
+ const components = ["bal-app"];
86
+ components.forEach(tagName => { switch (tagName) {
87
+ case "bal-app":
88
+ if (!customElements.get(tagName)) {
89
+ customElements.define(tagName, App);
90
+ }
91
+ break;
92
+ } });
93
+ }
2
94
 
3
95
  const BalApp = App;
4
96
  const defineCustomElement = defineCustomElement$1;
@@ -409,7 +409,7 @@ const Carousel = /*@__PURE__*/ proxyCustomElement(class Carousel extends HTMLEle
409
409
  const leftControlTitle = i18nControlLabel[this.language].left;
410
410
  const rightControlTitle = i18nControlLabel[this.language].right;
411
411
  const controlItems = this.getAllControlItems();
412
- return (h(Host, { key: '8f136f31e2fe4fb99703fdd2a5974697cea659b7', class: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, block.class()), block.modifier(this.interface).class(this.interface !== '')), block.modifier(`full-height`).class(this.fullHeight)), block.modifier('controls-sticky').class(this.controlsSticky)), block.modifier(`controls-${this.controls}`).class()) }, this.isLargestContentfulPaintDone && this.controls === 'tabs' ? (h(TabControl, { value: this.value, items: controlItems, containerId: this.carouselContainerId, onControlChange: item => this.onControlChange(item.value) })) : (''), h("div", { key: '76e644a3db07b7aeae2a599b560903a24312cb6b', class: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, inner.class()), inner.modifier(`items-per-view-${this.itemsPerView}`).class()), inner.modifier(`is-${this.aspectRatio}`).class()), inner.modifier(`inverted`).class(this.inverted)), inner.modifier(`full-height`).class(this.fullHeight)), inner.modifier(`shadow-left`).class(this.hasShadowLeft())), inner.modifier(`shadow-right`).class(this.hasShadowRight())), ref: el => (this.innerEl = el) }, h("div", { key: '8040a1b67deccfa135bda7c1b3cef5b05492ad19', role: this.htmlRole, "aria-live": this.htmlRole !== '' ? 'polite' : undefined, id: this.carouselContainerId, class: Object.assign(Object.assign(Object.assign({}, container.class()), container.modifier(`border`).class(this.border)), container.modifier(`is-${this.aspectRatio}`).class()), ref: el => (this.containerEl = el) }, h("slot", { key: '855f44ac6e8b1cfdfd31cc39f9fd2d9749a2f326' }), this.border ? (h("div", { id: `${this.carouselId}-border`, "aria-hidden": "true", class: Object.assign(Object.assign({}, container.element('border').class()), container.element('border').modifier('inverted').class(this.inverted)), ref: el => (this.borderEl = el) })) : (''))), this.isLargestContentfulPaintDone && this.controls === 'dots' ? (h(DotControl, { value: this.value, items: controlItems, containerId: this.carouselContainerId, onControlChange: item => this.onControlChange(item.value) })) : (''), this.isLargestContentfulPaintDone && this.controls === 'large' ? (h(LargeControl, { isFirst: this.isFirst(), isLast: this.isLast(), inverted: this.inverted, areControlsHidden: !this.isMobile, leftControlTitle: leftControlTitle, rightControlTitle: rightControlTitle, containerId: this.carouselContainerId, onNextClick: () => this.onNextButtonClick(), onPreviousClick: () => this.onPreviousButtonClick() })) : (''), this.isLargestContentfulPaintDone && this.controls === 'small' ? (h(SmallControl, { isFirst: this.isFirst(), isLast: this.isLast(), inverted: this.inverted, leftControlTitle: leftControlTitle, rightControlTitle: rightControlTitle, containerId: this.carouselContainerId, onNextClick: () => this.onNextButtonClick(), onPreviousClick: () => this.onPreviousButtonClick() })) : ('')));
412
+ return (h(Host, { key: '9805dc838ffaf76bf0db144968685dd4c8483816', class: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, block.class()), block.modifier(this.interface).class(this.interface !== '')), block.modifier(`full-height`).class(this.fullHeight)), block.modifier('controls-sticky').class(this.controlsSticky)), block.modifier(`controls-${this.controls}`).class()) }, this.isLargestContentfulPaintDone && this.controls === 'tabs' ? (h(TabControl, { value: this.value, items: controlItems, containerId: this.carouselContainerId, onControlChange: item => this.onControlChange(item.value) })) : (''), h("div", { key: 'dced19705178ae9cdca9ab3594793ed9b86d0a9f', class: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, inner.class()), inner.modifier(`items-per-view-${this.itemsPerView}`).class()), inner.modifier(`is-${this.aspectRatio}`).class()), inner.modifier(`inverted`).class(this.inverted)), inner.modifier(`full-height`).class(this.fullHeight)), inner.modifier(`shadow-left`).class(this.hasShadowLeft())), inner.modifier(`shadow-right`).class(this.hasShadowRight())), ref: el => (this.innerEl = el) }, h("div", { key: '64b95814c1bba169bab81a1384a2d753dfcf964d', role: this.htmlRole, "aria-live": this.htmlRole !== '' ? 'polite' : undefined, id: this.carouselContainerId, class: Object.assign(Object.assign(Object.assign({}, container.class()), container.modifier(`border`).class(this.border)), container.modifier(`is-${this.aspectRatio}`).class()), ref: el => (this.containerEl = el) }, h("slot", { key: '2baee20f00ff09cc771ba6743bff97f62a1a7570' }), this.border ? (h("div", { id: `${this.carouselId}-border`, "aria-hidden": "true", class: Object.assign(Object.assign({}, container.element('border').class()), container.element('border').modifier('inverted').class(this.inverted)), ref: el => (this.borderEl = el) })) : (''))), this.isLargestContentfulPaintDone && this.controls === 'dots' ? (h(DotControl, { value: this.value, items: controlItems, containerId: this.carouselContainerId, onControlChange: item => this.onControlChange(item.value) })) : (''), this.isLargestContentfulPaintDone && this.controls === 'large' ? (h(LargeControl, { isFirst: this.isFirst(), isLast: this.isLast(), inverted: this.inverted, areControlsHidden: !this.isMobile, leftControlTitle: leftControlTitle, rightControlTitle: rightControlTitle, containerId: this.carouselContainerId, onNextClick: () => this.onNextButtonClick(), onPreviousClick: () => this.onPreviousButtonClick() })) : (''), this.isLargestContentfulPaintDone && this.controls === 'small' ? (h(SmallControl, { isFirst: this.isFirst(), isLast: this.isLast(), inverted: this.inverted, leftControlTitle: leftControlTitle, rightControlTitle: rightControlTitle, containerId: this.carouselContainerId, onNextClick: () => this.onNextButtonClick(), onPreviousClick: () => this.onPreviousButtonClick() })) : ('')));
413
413
  }
414
414
  get el() { return this; }
415
415
  static get style() { return BalCarouselStyle0; }
@@ -30,7 +30,7 @@ const Close = /*@__PURE__*/ proxyCustomElement(class Close extends HTMLElement {
30
30
  const buttonEl = blockEl.element('button');
31
31
  const iconEl = buttonEl.element('icon');
32
32
  const label = i18nBalClose[this.language].close;
33
- return (h(Host, { key: '28a807ed717bd60d6534beee83086e87165c6b8f', class: Object.assign({}, blockEl.class()) }, h("button", { key: 'f74d31fca4b77c4a39365cb43ff44279fbfcfe65', type: "button", "aria-label": label, title: label, tabindex: "0", class: Object.assign(Object.assign(Object.assign({}, buttonEl.class()), buttonEl.modifier('inverted').class(this.inverted)), buttonEl.modifier(`size-${this.size}`).class(this.size !== '')), "data-testid": "bal-close" }, h("bal-icon", { key: '49e49cf68edacc7d69e8d7c42abfb98ff1281f28', name: "close", size: this.size === 'small' ? 'x-small' : this.size === 'medium' ? 'medium' : 'small', inverted: this.inverted, class: Object.assign({}, iconEl.class()) }))));
33
+ return (h(Host, { key: '9ae168e3f5e98e623d888abab7cbc88a6274cde0', class: Object.assign({}, blockEl.class()) }, h("button", { key: '7969304603871177f81ef7a1b1c78e58f1d32c38', type: "button", "aria-label": label, title: label, tabindex: "0", class: Object.assign(Object.assign(Object.assign({}, buttonEl.class()), buttonEl.modifier('inverted').class(this.inverted)), buttonEl.modifier(`size-${this.size}`).class(this.size !== '')), "data-testid": "bal-close" }, h("bal-icon", { key: 'c83093000ff43d5f99676914a52ef4c8977fb61c', name: "close", size: this.size === 'small' ? 'x-small' : this.size === 'medium' ? 'medium' : 'small', inverted: this.inverted, class: Object.assign({}, iconEl.class()) }))));
34
34
  }
35
35
  get el() { return this; }
36
36
  static get style() { return BalCloseStyle0; }
@@ -437,7 +437,7 @@ const DateCalendar = /*@__PURE__*/ proxyCustomElement(class DateCalendar extends
437
437
  const block = BEM.block('date-calendar');
438
438
  const blockBody = block.element('body');
439
439
  const blockFoot = block.element('foot');
440
- return (h(Host, { key: '248e291f860cdb55eb13cce3afa9fd453efd9bb1', class: Object.assign({}, block.class()) }, h(CalendarNav, { key: 'b22fb7f5d3459b29b1bc7ad10925f797964a1bf2', language: this.language, monthFullNames: this.monthFullNames, month: this.month, year: this.year, isCalendarVisible: this.isCalendarVisible, isListVisible: this.isMonthListVisible || this.isYearListVisible, onClickSelectMonthAndYear: this.onClickSelectMonthAndYear, onClickPreviousMonth: this.onClickPreviousMonth, onClickNextMonth: this.onClickNextMonth }), h("div", { key: 'e7348e9fe457bd309ecf8645ae1af0138d6ea156', class: Object.assign({}, blockBody.class()) }, h(CalendarGrid, { key: '87bab404d1e8777b818c4d4df0d49092b29e96ff', isVisible: this.isCalendarVisible, grid: this.calendarGrid, weekdays: this.weekdays, firstDayOfWeek: this.firstDayOfWeek, selectedDate: this.selectedDate, ref: el => (this.gridEl = el), onSelectDay: isoDate => this.onSelectDay(isoDate) }), h(CalendarList, { key: '106142481bd53e6d24e91ef0245fe336704c0578', name: "year", isVisible: this.isYearListVisible, girdHeight: girdHeight, list: this.years, ref: el => (this.yearListEl = el), onSelect: item => this.onClickYear(item.value) }), h(CalendarList, { key: '9341dbb8c0f7ce5713a9cbdb5e4a22d3db83b43a', name: "month", isVisible: this.isMonthListVisible, girdHeight: girdHeight, list: this.months, onSelect: item => this.onClickMonth(item.value) })), h("div", { key: '5e74571cea6b858964554f3065eb40092535f1dd', class: Object.assign({}, blockFoot.class()) }, h("slot", { key: 'c3cc4f4f43d40b095ad03fe23a8645282e658765' }))));
440
+ return (h(Host, { key: 'e6348fe5b0ddab2253f7c79cb41a16fd93fe9a63', class: Object.assign({}, block.class()) }, h(CalendarNav, { key: 'fc808b662835df468fe53a659cfdb048a2ce2325', language: this.language, monthFullNames: this.monthFullNames, month: this.month, year: this.year, isCalendarVisible: this.isCalendarVisible, isListVisible: this.isMonthListVisible || this.isYearListVisible, onClickSelectMonthAndYear: this.onClickSelectMonthAndYear, onClickPreviousMonth: this.onClickPreviousMonth, onClickNextMonth: this.onClickNextMonth }), h("div", { key: '14a071d6e691964876d2a832a9d2a7b20e2b5139', class: Object.assign({}, blockBody.class()) }, h(CalendarGrid, { key: 'd7d81606a5bcf10637f48ad9d5f095cac4851c60', isVisible: this.isCalendarVisible, grid: this.calendarGrid, weekdays: this.weekdays, firstDayOfWeek: this.firstDayOfWeek, selectedDate: this.selectedDate, ref: el => (this.gridEl = el), onSelectDay: isoDate => this.onSelectDay(isoDate) }), h(CalendarList, { key: '3804356a689232d66ecbac4ad02c152a7e11739f', name: "year", isVisible: this.isYearListVisible, girdHeight: girdHeight, list: this.years, ref: el => (this.yearListEl = el), onSelect: item => this.onClickYear(item.value) }), h(CalendarList, { key: '2721e28b96097dfb3f824c6ef085657c56c89342', name: "month", isVisible: this.isMonthListVisible, girdHeight: girdHeight, list: this.months, onSelect: item => this.onClickMonth(item.value) })), h("div", { key: 'da53c2e514df3bf5d4890a16fdc5738e55366f31', class: Object.assign({}, blockFoot.class()) }, h("slot", { key: '6b75be6d0ad833854a0eade0d014ee26b05bc868' }))));
441
441
  }
442
442
  get el() { return this; }
443
443
  static get watchers() { return {
@@ -292,7 +292,7 @@ const Date = /*@__PURE__*/ proxyCustomElement(class Date extends HTMLElement {
292
292
  const block = BEM.block('date');
293
293
  const blockIcon = block.element('icon');
294
294
  const blockPopup = block.element('popup');
295
- return (h(Host, { key: '71ecc523323aea5b610663af71761730cafdf72d', id: this.inputId, class: Object.assign({}, block.class()) }, h("bal-input-group", { key: 'fac9940b61f22766e728f2025491f1d743b65a04', invalid: this.invalid, readonly: this.readonly, disabled: this.disabled, ref: el => (this.referenceEl = el) }, h("bal-input-date", Object.assign({ key: '9ff8ef04e188c3492419029967aedbb47f6cd80d', name: this.name, required: this.required, placeholder: this.placeholder, value: this.value, min: this.min, max: this.max, invalid: this.invalid, readonly: this.readonly, disabled: this.disabled, allowInvalidValue: this.allowInvalidValue, autocomplete: this.autocomplete, onClick: this.onInputClick, onBalInput: this.onInputInput, onBalChange: this.onInputChange, onBalFocus: this.onInputFocus, onBalBlur: this.onInputBlur, onBalKeyPress: this.onKeyPress, ref: el => (this.inputEl = el) }, this.inheritedAttributes)), !this.freeSolo ? (h("bal-icon", { name: "date", role: "button", tabindex: -1, class: Object.assign(Object.assign({}, blockIcon.class()), blockIcon.modifier('clickable').class(!this.disabled && !this.readonly)), "is-right": true, color: this.disabled || this.readonly ? 'grey' : this.invalid ? 'danger' : 'primary', onClick: this.onIconClick, "aria-label": i18nBalDate[this.language].toggleDatepicker, "aria-haspopup": "true", "aria-expanded": this.isExpanded ? 'true' : 'false' })) : ('')), h("div", { key: 'a693f4ce01308178268a00e31ef08a052d1972b2', role: "dialog", class: Object.assign(Object.assign({}, blockPopup.class()), blockPopup.modifier('visible').class(this.isExpanded)), ref: el => (this.floatingEl = el), "aria-hidden": `${this.isExpanded !== true}`, "aria-presented": `${this.isExpanded === true}` }, h("bal-date-calendar", { key: '8ac00879f736c54cb7662cd9811c44cdc80859ff', value: this.calendarValue, min: this.min, max: this.max, minYearProp: this.minYearProp, maxYearProp: this.maxYearProp, defaultDate: this.defaultDate, allowedDates: this.allowedDates, onBalChange: this.onCalendarChange }))));
295
+ return (h(Host, { key: '0cff526d6fd1f6855de72ec6b8515a0cd7132f71', id: this.inputId, class: Object.assign({}, block.class()) }, h("bal-input-group", { key: 'e7309e15124f27a90a977cccb8ee7b03052ce450', invalid: this.invalid, readonly: this.readonly, disabled: this.disabled, ref: el => (this.referenceEl = el) }, h("bal-input-date", Object.assign({ key: '6e344882e69619d3cc26bdb29601f417de5cf4fe', name: this.name, required: this.required, placeholder: this.placeholder, value: this.value, min: this.min, max: this.max, invalid: this.invalid, readonly: this.readonly, disabled: this.disabled, allowInvalidValue: this.allowInvalidValue, autocomplete: this.autocomplete, onClick: this.onInputClick, onBalInput: this.onInputInput, onBalChange: this.onInputChange, onBalFocus: this.onInputFocus, onBalBlur: this.onInputBlur, onBalKeyPress: this.onKeyPress, ref: el => (this.inputEl = el) }, this.inheritedAttributes)), !this.freeSolo ? (h("bal-icon", { name: "date", role: "button", tabindex: -1, class: Object.assign(Object.assign({}, blockIcon.class()), blockIcon.modifier('clickable').class(!this.disabled && !this.readonly)), "is-right": true, color: this.disabled || this.readonly ? 'grey' : this.invalid ? 'danger' : 'primary', onClick: this.onIconClick, "aria-label": i18nBalDate[this.language].toggleDatepicker, "aria-haspopup": "true", "aria-expanded": this.isExpanded ? 'true' : 'false' })) : ('')), h("div", { key: '4de1fda8322aa577c9f178f8183f0584591bb280', role: "dialog", class: Object.assign(Object.assign({}, blockPopup.class()), blockPopup.modifier('visible').class(this.isExpanded)), ref: el => (this.floatingEl = el), "aria-hidden": `${this.isExpanded !== true}`, "aria-presented": `${this.isExpanded === true}` }, h("bal-date-calendar", { key: 'c29fae49306412def5c835457c17224f93d4144d', value: this.calendarValue, min: this.min, max: this.max, minYearProp: this.minYearProp, maxYearProp: this.maxYearProp, defaultDate: this.defaultDate, allowedDates: this.allowedDates, onBalChange: this.onCalendarChange }))));
296
296
  }
297
297
  get el() { return this; }
298
298
  static get watchers() { return {
@@ -989,14 +989,14 @@ const InputDate = /*@__PURE__*/ proxyCustomElement(class InputDate extends HTMLE
989
989
  render() {
990
990
  const block = BEM.block('input-date');
991
991
  const native = block.element('native');
992
- return (h(Host, { key: 'c19d0b61364480bbcb5067bf0c5d68b83dab6fa7', onClick: (event) => this.maskAdapter.bindHostClick(event), class: Object.assign({}, block.class()) }, h("input", Object.assign({ key: 'e8cbf0a3372a06823953459eeb754f2c22fc0b22', class: {
992
+ return (h(Host, { key: '14148968dbe8593f608bb83cb80431c1af6c10cb', onClick: (event) => this.maskAdapter.bindHostClick(event), class: Object.assign({}, block.class()) }, h("input", Object.assign({ key: '7a9307a111eb7eaca7d043e6102220f83ed407ef', class: {
993
993
  'input': true,
994
994
  'is-disabled': this.disabled || this.readonly,
995
995
  'is-danger': this.invalid,
996
996
  'is-clickable': this.clickable && !(this.disabled || this.readonly),
997
997
  'bal-focusable': !this.disabled,
998
998
  'has-icon-right': this.hasIconRight,
999
- }, "data-testid": "bal-date-input", ref: el => (this.nativeInput = el), id: this.ariaForm.controlId || this.inputId, "aria-labelledby": this.ariaForm.labelId, "aria-describedby": this.ariaForm.messageId, "aria-invalid": this.invalid === true ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : null, required: this.required, disabled: this.disabled, readonly: this.readonly, autoComplete: this.autocomplete }, this.maskAdapter.attributes, this.inheritedAttributes, { placeholder: this.placeholder, value: this.inputValue, onKeyDown: event => this.maskAdapter.bindKeyDown(event), onClick: event => this.maskAdapter.bindClick(event), onFocus: event => this.maskAdapter.bindFocus(event), onBlur: event => this.maskAdapter.bindBlur(event), onPaste: event => this.maskAdapter.bindPaste(event) })), h("input", { key: 'b6acc3e893caf68b4823addac74e4cea27fdc98b', type: "date", class: Object.assign({}, native.class()), name: this.name, min: this.min, max: this.max, value: this.value, tabindex: -1, "aria-hidden": "true" })));
999
+ }, "data-testid": "bal-date-input", ref: el => (this.nativeInput = el), id: this.ariaForm.controlId || this.inputId, "aria-labelledby": this.ariaForm.labelId, "aria-describedby": this.ariaForm.messageId, "aria-invalid": this.invalid === true ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : null, required: this.required, disabled: this.disabled, readonly: this.readonly, autoComplete: this.autocomplete }, this.maskAdapter.attributes, this.inheritedAttributes, { placeholder: this.placeholder, value: this.inputValue, onKeyDown: event => this.maskAdapter.bindKeyDown(event), onClick: event => this.maskAdapter.bindClick(event), onFocus: event => this.maskAdapter.bindFocus(event), onBlur: event => this.maskAdapter.bindBlur(event), onPaste: event => this.maskAdapter.bindPaste(event) })), h("input", { key: '23e89b524f1cd68f76461720e386034d1872689a', type: "date", class: Object.assign({}, native.class()), name: this.name, min: this.min, max: this.max, value: this.value, tabindex: -1, "aria-hidden": "true" })));
1000
1000
  }
1001
1001
  get el() { return this; }
1002
1002
  static get watchers() { return {
@@ -70,15 +70,15 @@ const ListItemAccordionBody = /*@__PURE__*/ proxyCustomElement(class ListItemAcc
70
70
  * ------------------------------------------------------
71
71
  */
72
72
  render() {
73
- return (h(Host, { key: '78f1e89ac8d2bbae824d5a2c6acf960873095a7c', class: {
73
+ return (h(Host, { key: '3a4e503ddae6d6c84658b2942a82cc7946ed6e9d', class: {
74
74
  'bal-list__item': true,
75
75
  'bal-list__item__accordion-body': true,
76
76
  'bal-list__item__accordion-body--grouped': this.accordionGroup !== undefined && this.accordionGroup !== '',
77
- } }, h("div", { key: '183a52fd932b5624e4b2f5766306f87efa1e4b74', class: {
77
+ } }, h("div", { key: 'f17506b393c8ee3ad69914cba638615dc96b1d46', class: {
78
78
  'bal-list__item__accordion-body__content': true,
79
79
  [`bal-list__item__accordion-body__content--${this.contentAlignment}`]: this.contentAlignment !== undefined,
80
80
  [`bal-list__item__accordion-body__content--space-${this.contentSpace}`]: this.contentSpace !== undefined,
81
- }, ref: contentElWrapper => (this.contentElWrapper = contentElWrapper) }, h("slot", { key: '6061cb6e659056e298dca4f1e0180ee103b883ad' }))));
81
+ }, ref: contentElWrapper => (this.contentElWrapper = contentElWrapper) }, h("slot", { key: 'ef461ed5b0e17b6dd4b79b7d88ccc4dc84b7694b' }))));
82
82
  }
83
83
  get el() { return this; }
84
84
  }, [4, "bal-list-item-accordion-body", {
@@ -233,10 +233,10 @@ const Pagination = /*@__PURE__*/ proxyCustomElement(class Pagination extends HTM
233
233
  const leftControlTitle = i18nControlLabel[this.language].left;
234
234
  const rightControlTitle = i18nControlLabel[this.language].right;
235
235
  const hasBasicNavigationButtons = this.interface === '' || (isSmall && this.totalPages <= 5);
236
- const SmallWithText = () => (h("span", { key: 'b9053c6e1ecf8a94ea93af48d554c508126fd21e', class: Object.assign(Object.assign({}, elList.class()), elList.modifier(`context-${this.interface}`).class()) }, h("span", { key: 'e2c9788314a42180f53285add2a1488d67030630' }, this._value), ' / ' + this.totalPages));
237
- const PaginationTablet = () => (h("ul", { key: 'f165f8e63bdf180408344aa91b69032ce5ce320c', class: Object.assign(Object.assign(Object.assign({}, elList.class()), elList.modifier(`context-${this.interface}`).class()), { 'is-disabled': this.disabled }), "data-testid": "bal-pagination-list" }, tabletItems));
238
- const PaginationMobile = () => (h("ul", { key: 'a9c58c583f943609606998eff081ac505fd82ff3', class: Object.assign(Object.assign(Object.assign({}, elList.class()), elList.modifier(`context-${this.interface}`).class()), { 'is-disabled': this.disabled }), "data-testid": "bal-pagination-list" }, mobileItems));
239
- return (h(Host, { key: '09e36de547b42f23a30189e0e1ed4d28be5f1ba7', class: Object.assign(Object.assign({}, block.class()), block.modifier('is-sticky').class(this.sticky)) }, h("nav", { key: '7f0c6770282939433a0315307a0c06be9440419c', class: Object.assign(Object.assign(Object.assign({}, elNav.class()), elNav.modifier(`context-${this.interface}`).class(this.interface !== '')), elNav.modifier(`align-${this.align}`).class(this.align !== '')), role: "navigation", "aria-label": "pagination" }, h("bal-button", { key: '0ea2d28d497cbe89a8858071a252e284790febd0', square: true, color: buttonColor, size: buttonSize, flat: flat, class: Object.assign(Object.assign({}, elPrevious.class()), elPrevious.modifier(`context-${this.interface}`).class()), disabled: this._value < 2 || this.disabled, onClick: () => this.previous(), "data-testid": "bal-pagination-controls-left", title: leftControlTitle }, h("bal-icon", { key: 'f509547f7dddfd18e01b828992403b3ce3ea47a1', name: "nav-go-left", size: "small" })), h("bal-button", { key: '2658807aa50c6b2c3f17427cdf4d8d684d4349f9', square: true, color: buttonColor, size: buttonSize, flat: flat, class: Object.assign(Object.assign({}, elNext.class()), elNext.modifier(`context-${this.interface}`).class()), disabled: this._value === this.totalPages || this.disabled, onClick: () => this.next(), "data-testid": "bal-pagination-controls-right", title: rightControlTitle }, h("bal-icon", { key: '1cd086e9b73eea943723e05593a4edf83479c5f3', name: "nav-go-right", size: "small" })), hasBasicNavigationButtons && this.isMobile ? h(PaginationMobile, null) : '', hasBasicNavigationButtons && !this.isMobile ? h(PaginationTablet, null) : '', !hasBasicNavigationButtons ? h(SmallWithText, null) : '')));
236
+ const SmallWithText = () => (h("span", { key: '8d0f477acb2db965fe7ca9a323db754dadb8c2d1', class: Object.assign(Object.assign({}, elList.class()), elList.modifier(`context-${this.interface}`).class()) }, h("span", { key: '25bc274a3580f3103acb6aa21bb0f132da31a4cd' }, this._value), ' / ' + this.totalPages));
237
+ const PaginationTablet = () => (h("ul", { key: '635a052d90c4d86104752eedf70d28d60a3ea194', class: Object.assign(Object.assign(Object.assign({}, elList.class()), elList.modifier(`context-${this.interface}`).class()), { 'is-disabled': this.disabled }), "data-testid": "bal-pagination-list" }, tabletItems));
238
+ const PaginationMobile = () => (h("ul", { key: '36bc734dd92d55f93cae88e34c032fbae5239ae2', class: Object.assign(Object.assign(Object.assign({}, elList.class()), elList.modifier(`context-${this.interface}`).class()), { 'is-disabled': this.disabled }), "data-testid": "bal-pagination-list" }, mobileItems));
239
+ return (h(Host, { key: '1f6888814e691b8f4b46987055e3d474078bac38', class: Object.assign(Object.assign({}, block.class()), block.modifier('is-sticky').class(this.sticky)) }, h("nav", { key: '00eba4def4d24082f102861ef471043c3646a18a', class: Object.assign(Object.assign(Object.assign({}, elNav.class()), elNav.modifier(`context-${this.interface}`).class(this.interface !== '')), elNav.modifier(`align-${this.align}`).class(this.align !== '')), role: "navigation", "aria-label": "pagination" }, h("bal-button", { key: '068a1d8b79deecd129b3280ac4eefb4e6c7ef814', square: true, color: buttonColor, size: buttonSize, flat: flat, class: Object.assign(Object.assign({}, elPrevious.class()), elPrevious.modifier(`context-${this.interface}`).class()), disabled: this._value < 2 || this.disabled, onClick: () => this.previous(), "data-testid": "bal-pagination-controls-left", title: leftControlTitle }, h("bal-icon", { key: '0ceeb68b1426edc0b1425b6bb1236941534ead5d', name: "nav-go-left", size: "small" })), h("bal-button", { key: '3eb18c38c467b0f8bfc2326341e93e236567c060', square: true, color: buttonColor, size: buttonSize, flat: flat, class: Object.assign(Object.assign({}, elNext.class()), elNext.modifier(`context-${this.interface}`).class()), disabled: this._value === this.totalPages || this.disabled, onClick: () => this.next(), "data-testid": "bal-pagination-controls-right", title: rightControlTitle }, h("bal-icon", { key: 'fa8feb6b44def140d75218f387fcfdbb984bd99a', name: "nav-go-right", size: "small" })), hasBasicNavigationButtons && this.isMobile ? h(PaginationMobile, null) : '', hasBasicNavigationButtons && !this.isMobile ? h(PaginationTablet, null) : '', !hasBasicNavigationButtons ? h(SmallWithText, null) : '')));
240
240
  }
241
241
  get el() { return this; }
242
242
  static get watchers() { return {
@@ -316,7 +316,7 @@ const Segment = /*@__PURE__*/ proxyCustomElement(class Segment extends HTMLEleme
316
316
  render() {
317
317
  const { invalid, isVertical, scrollable, keyboardMode, expanded, isMobile, disabled } = this;
318
318
  const block = BEM.block('segment');
319
- return (h(Host, { key: '3554d8bc4b44417e273a935a70ae89ff87e26d45', role: "radiogroup", id: this.ariaForm.controlId, "aria-labelledby": this.ariaForm.labelId, "aria-describedby": this.ariaForm.messageId, class: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, block.class()), block.modifier('invalid').class(invalid)), block.modifier('vertical').class(isVertical)), block.modifier('scrollable').class(scrollable)), block.modifier('keyboard').class(keyboardMode)), block.modifier('disabled').class(disabled)), block.modifier('expanded').class((expanded || isMobile) && !isVertical)), onClick: this.onClick }, h("slot", { key: '9271b42436f9c30077a60bcef7847ac04d093052', onSlotchange: this.onSlottedItemsChange })));
319
+ return (h(Host, { key: 'eadae45bddff8b5367b8db4e38c2eb467097ffb3', role: "radiogroup", id: this.ariaForm.controlId, "aria-labelledby": this.ariaForm.labelId, "aria-describedby": this.ariaForm.messageId, class: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, block.class()), block.modifier('invalid').class(invalid)), block.modifier('vertical').class(isVertical)), block.modifier('scrollable').class(scrollable)), block.modifier('keyboard').class(keyboardMode)), block.modifier('disabled').class(disabled)), block.modifier('expanded').class((expanded || isMobile) && !isVertical)), onClick: this.onClick }, h("slot", { key: 'b82c45b87b6cbd116d3b176fbd93661944740823', onSlotchange: this.onSlottedItemsChange })));
320
320
  }
321
321
  get el() { return this; }
322
322
  static get watchers() { return {
@@ -23,7 +23,7 @@ const StageImage = /*@__PURE__*/ proxyCustomElement(class StageImage extends HTM
23
23
  render() {
24
24
  const block = BEM.block('stage-image');
25
25
  const imageSrc = this.fallback ? this.fallback : this.srcSet.split(',')[0];
26
- return (h(Host, { key: '5e50cf626868a688afd1ae52bc4d3bbee8985e6f', class: Object.assign({}, block.class()) }, this.isLargestContentfulPaintDone ? (h("img", Object.assign({ src: imageSrc, srcset: this.srcSet, sizes: "100vw" }, this.imageInheritAttributes))) : ('')));
26
+ return (h(Host, { key: 'fc6b85b3671ee0ef029f22d3e0468849cf09c3ac', class: Object.assign({}, block.class()) }, this.isLargestContentfulPaintDone ? (h("img", Object.assign({ src: imageSrc, srcset: this.srcSet, sizes: "100vw" }, this.imageInheritAttributes))) : ('')));
27
27
  }
28
28
  get el() { return this; }
29
29
  }, [0, "bal-stage-image", {
@@ -1,3 +1,4 @@
1
+ import { setPlatformHelpers } from '@stencil/core/internal/client';
1
2
  export { getAssetPath, setAssetPath, setNonce, setPlatformOptions } from '@stencil/core/internal/client';
2
3
  export { F as FileUploadRejectionReason } from './bal-file-upload.type.js';
3
4
  export { i as i18nBalDate } from './bal-date.i18n.js';
@@ -5,7 +6,10 @@ export { i as i18nBalClose } from './bal-close.i18n.js';
5
6
  export { i as i18nBalTimeInput } from './bal-time-input.i18n.js';
6
7
  export { i as i18nBalInputStepper } from './bal-input-stepper.i18n.js';
7
8
  export { i as i18nBalLabel } from './bal-label.i18n.js';
8
- export { a as BalSnackbarController, B as BalToastController, c as balSnackbarController, b as balToastController, i as initialize, i as initializeBaloiseDesignSystem, s as setupConfig } from './initialize.js';
9
+ import { b as balBrowser } from './browser.js';
10
+ export { b as balBrowser } from './browser.js';
11
+ import { d as defaultConfig } from './config.default.js';
12
+ export { d as defaultConfig } from './config.default.js';
9
13
  export { n as newBalOption } from './option.js';
10
14
  export { n as newBalStepOption } from './bal-step.util.js';
11
15
  export { n as newBalTabOption } from './bal-tab.util.js';
@@ -13,8 +17,6 @@ import { g as getAppRoot, c as componentOnReady } from './helpers.js';
13
17
  export { c as componentOnReady, f as deepReady, g as getAppRoot, i as isDescendant, s as shallowReady, h as wait, b as waitAfterFramePaint, d as waitAfterIdleCallback, e as waitAfterLargestContentfulPaintCallback, w as waitForComponent, a as waitForDesignSystem } from './helpers.js';
14
18
  export { s as scrollToFirstInvalidField } from './form.js';
15
19
  export { B as BalScrollHandler } from './scroll.js';
16
- import { b as balBrowser } from './browser.js';
17
- export { b as balBrowser } from './browser.js';
18
20
  import { b as balDevice } from './device.js';
19
21
  export { B as BalDevice, b as balDevice } from './device.js';
20
22
  export { I as INVALID_VALUE } from './mask-util.js';
@@ -22,11 +24,175 @@ import { g as getOverlays, a as getOverlay } from './overlays.js';
22
24
  import { B as BalWindowResizeListener, b as balBreakpoints } from './breakpoints.subject.js';
23
25
  export { c as BalBreakpointSubject, d as BalBreakpointsUtil, a as balBreakpointSubject, b as balBreakpoints } from './breakpoints.subject.js';
24
26
  export { a as attachToConfig, d as detachFromConfig, o as onBalConfigChange, u as updateBalAllowedLanguages, b as updateBalAnimated, c as updateBalIcons, e as updateBalLanguage, f as updateBalRegion, g as useBalConfig } from './config.utils.js';
25
- export { d as defaultConfig } from './config.default.js';
26
27
  import { S as Subject } from './listener.js';
27
28
  export { B as BalSwipeSubject } from './swipe.subject.js';
28
29
  export { B as BalDate } from './date.js';
29
30
 
31
+ const BALOISE_SESSION_KEY = 'baloise-persist-config';
32
+ const BALOISE_ANIMATION_KEY = 'baloise-animated';
33
+
34
+ class Config {
35
+ constructor() {
36
+ this._componentObservers = [];
37
+ this._observers = [];
38
+ this._config = defaultConfig;
39
+ }
40
+ get locale() {
41
+ return `${this._config.language}-${this._config.region}`;
42
+ }
43
+ get region() {
44
+ return this._config.region;
45
+ }
46
+ set region(region) {
47
+ if (region !== this._config.region) {
48
+ this._config.region = region;
49
+ this._notify();
50
+ }
51
+ }
52
+ get language() {
53
+ return this._config.language;
54
+ }
55
+ set language(language) {
56
+ if (language !== this._config.language) {
57
+ if (this._config.allowedLanguages.includes(language)) {
58
+ this._config.language = language;
59
+ }
60
+ else {
61
+ this._config.language = this._config.fallbackLanguage;
62
+ }
63
+ this._notify();
64
+ }
65
+ }
66
+ get allowedLanguages() {
67
+ return this._config.allowedLanguages;
68
+ }
69
+ set allowedLanguages(allowedLanguages) {
70
+ if (allowedLanguages !== this._config.allowedLanguages) {
71
+ this._config.allowedLanguages = allowedLanguages;
72
+ this._notify();
73
+ }
74
+ }
75
+ get icons() {
76
+ return this._config.icons;
77
+ }
78
+ set icons(icons) {
79
+ this._config.icons = Object.assign(Object.assign({}, this._config.icons), icons);
80
+ this._notify();
81
+ }
82
+ get logger() {
83
+ return this._config.logger;
84
+ }
85
+ set logger(logger) {
86
+ this._config.logger = Object.assign({}, logger);
87
+ this._notify();
88
+ }
89
+ get animated() {
90
+ return this._config.animated;
91
+ }
92
+ set animated(animated) {
93
+ this._config.animated = animated;
94
+ this._notify();
95
+ }
96
+ get httpFormSubmit() {
97
+ return this._config.httpFormSubmit;
98
+ }
99
+ set httpFormSubmit(httpFormSubmit) {
100
+ this._config.httpFormSubmit = httpFormSubmit;
101
+ this._notify();
102
+ }
103
+ attach(observer) {
104
+ const isExist = this._observers.includes(observer);
105
+ if (isExist) {
106
+ return console.log('Subject: Observer has been attached already.');
107
+ }
108
+ this._observers.push(observer);
109
+ observer.configChanged(this._config);
110
+ }
111
+ detach(observer) {
112
+ const observerIndex = this._observers.indexOf(observer);
113
+ if (observerIndex === -1) {
114
+ return console.log('Subject: Nonexistent observer.');
115
+ }
116
+ this._observers.splice(observerIndex, 1);
117
+ }
118
+ attachComponent(observer) {
119
+ const isExist = this._componentObservers.includes(observer);
120
+ if (isExist) {
121
+ return console.log('Subject: Observer has been attached already.');
122
+ }
123
+ this._componentObservers.push(observer);
124
+ observer.configChanged(this._config);
125
+ }
126
+ detachComponent(observer) {
127
+ const observerIndex = this._componentObservers.indexOf(observer);
128
+ if (observerIndex === -1) {
129
+ return console.log('Subject: Nonexistent observer.');
130
+ }
131
+ this._componentObservers.splice(observerIndex, 1);
132
+ }
133
+ toString() {
134
+ return JSON.stringify(this._config);
135
+ }
136
+ reset(config) {
137
+ this._config = Object.assign(Object.assign(Object.assign({}, this._config), config), { icons: Object.assign(Object.assign({}, this._config.icons), config.icons) });
138
+ this._notify(false);
139
+ }
140
+ _notify(all = true) {
141
+ for (const observer of this._componentObservers) {
142
+ observer.configChanged(this._config);
143
+ }
144
+ if (all) {
145
+ for (const observer of this._observers) {
146
+ observer.configChanged(this._config);
147
+ }
148
+ }
149
+ if (balBrowser.hasWindow) {
150
+ saveConfig(window, this._config);
151
+ }
152
+ }
153
+ }
154
+ const config = /*@__PURE__*/ new Config();
155
+ const configFromSession = (win) => {
156
+ try {
157
+ const configStr = win.sessionStorage.getItem(BALOISE_SESSION_KEY);
158
+ return configStr !== null ? JSON.parse(configStr) : {};
159
+ }
160
+ catch (e) {
161
+ return {};
162
+ }
163
+ };
164
+ const configFromLocalStorage = (win) => {
165
+ try {
166
+ const animated = JSON.parse(win.localStorage.getItem(BALOISE_ANIMATION_KEY));
167
+ if (animated !== null) {
168
+ return {
169
+ animated,
170
+ };
171
+ }
172
+ return {};
173
+ }
174
+ catch (e) {
175
+ return {};
176
+ }
177
+ };
178
+ const saveConfig = (win, c) => {
179
+ try {
180
+ win.sessionStorage.setItem(BALOISE_SESSION_KEY, JSON.stringify(c));
181
+ }
182
+ catch (e) {
183
+ return;
184
+ }
185
+ };
186
+
187
+ const setupConfig = (userConfig = {}, win = {}) => {
188
+ if (Object.keys(win).length === 0 && balBrowser.hasWindow) {
189
+ win = window;
190
+ }
191
+ win.BaloiseDesignSystem = win.BaloiseDesignSystem || {};
192
+ config.reset(Object.assign(Object.assign(Object.assign(Object.assign({}, configFromSession(win)), configFromLocalStorage(win)), userConfig), { icons: Object.assign(Object.assign({}, configFromSession(win).icons), userConfig.icons) }));
193
+ win.BaloiseDesignSystem.config = config;
194
+ };
195
+
30
196
  const i18nBalFieldLabel = {
31
197
  de: {
32
198
  optional: ' (optional)',
@@ -60,6 +226,139 @@ const i18nBalFieldLabel = {
60
226
  },
61
227
  };
62
228
 
229
+ class BalNoticeController {
230
+ constructor(options) {
231
+ this.options = options;
232
+ this.container = null;
233
+ this.queue = [];
234
+ this.preQueue = [];
235
+ this.queueLimit = 5;
236
+ }
237
+ create(options) {
238
+ if (balBrowser.hasDocument) {
239
+ this.setupContainer();
240
+ const clone = this.findClone(options);
241
+ if (clone === undefined) {
242
+ const el = document.createElement(this.options.tag);
243
+ Object.assign(el, options);
244
+ el.addEventListener('balClose', ev => {
245
+ this.removeFromQueue(ev.detail);
246
+ });
247
+ this.preQueue.push(el);
248
+ this.updateQueue();
249
+ return el;
250
+ }
251
+ return clone;
252
+ }
253
+ }
254
+ setQueue(queueLimit) {
255
+ this.queueLimit = queueLimit;
256
+ }
257
+ async dismissAll() {
258
+ var _a;
259
+ const elements = (_a = this.container) === null || _a === void 0 ? void 0 : _a.querySelectorAll(this.options.tag);
260
+ if (elements) {
261
+ const closingQueue = [];
262
+ for (let index = 0; index < elements.length; index++) {
263
+ const el = elements[index];
264
+ if (el.close) {
265
+ closingQueue.push(el.close());
266
+ }
267
+ }
268
+ await Promise.all(closingQueue);
269
+ }
270
+ }
271
+ /**
272
+ * @deprecated use dismissAll instead
273
+ */
274
+ async clearAll() {
275
+ console.warn('[DEPRECATED] - use dismissAll() instead');
276
+ return this.dismissAll();
277
+ }
278
+ findClone(options) {
279
+ for (let index = 0; index < this.queue.length; index++) {
280
+ const el = this.queue[index];
281
+ if (el.message === options.message && el.color === options.color) {
282
+ return el;
283
+ }
284
+ }
285
+ return undefined;
286
+ }
287
+ setupContainer() {
288
+ if (balBrowser.hasDocument) {
289
+ const containerId = `${this.options.tag}-container`;
290
+ this.container = document.getElementById(containerId);
291
+ if (this.container)
292
+ return;
293
+ if (!this.container) {
294
+ this.container = document.createElement('bal-notices');
295
+ this.container.setAttribute('interface', this.options.tag.replace('bal-', ''));
296
+ this.container.id = containerId;
297
+ }
298
+ document.body.appendChild(this.container);
299
+ }
300
+ }
301
+ updateQueue() {
302
+ var _a;
303
+ if (this.queue.length < this.queueLimit) {
304
+ const el = this.preQueue.shift();
305
+ if (el && this.container) {
306
+ this.queue.push(el);
307
+ this.container.insertAdjacentElement('beforeend', el);
308
+ }
309
+ }
310
+ if (this.queue.length === 0) {
311
+ (_a = this.container) === null || _a === void 0 ? void 0 : _a.remove();
312
+ }
313
+ }
314
+ removeFromQueue(toastId) {
315
+ this.queue = this.queue.filter(el => el.id !== toastId);
316
+ setTimeout(() => this.updateQueue(), 0);
317
+ }
318
+ }
319
+
320
+ class BalToastController extends BalNoticeController {
321
+ constructor() {
322
+ super({
323
+ tag: 'bal-toast',
324
+ });
325
+ }
326
+ create(options) {
327
+ return super.create(options);
328
+ }
329
+ }
330
+ const balToastController = new BalToastController();
331
+
332
+ class BalSnackbarController extends BalNoticeController {
333
+ constructor() {
334
+ super({
335
+ tag: 'bal-snackbar',
336
+ });
337
+ }
338
+ create(options) {
339
+ return super.create(options);
340
+ }
341
+ }
342
+ const balSnackbarController = new BalSnackbarController();
343
+
344
+ // generated by .build/version.js
345
+ const VERSION = '17.2.1';
346
+
347
+ const initializeBaloiseDesignSystem = (userConfig = {}, platformConfig = undefined, win = {}) => {
348
+ if (Object.keys(win).length === 0 && balBrowser.hasWindow) {
349
+ win = window;
350
+ }
351
+ win.BaloiseDesignSystem = win.BaloiseDesignSystem || {};
352
+ if (platformConfig) {
353
+ setPlatformHelpers(platformConfig);
354
+ }
355
+ setupConfig(Object.assign(Object.assign({}, userConfig), platformConfig), win);
356
+ win.BaloiseDesignSystem.toastController = balToastController;
357
+ win.BaloiseDesignSystem.snackbarController = balSnackbarController;
358
+ win.BaloiseDesignSystem.initialize = () => setupConfig(win.BaloiseDesignSystem.config, win);
359
+ win.BaloiseDesignSystem.version = VERSION;
360
+ };
361
+
63
362
  const newBalCheckboxOption = (option) => {
64
363
  return Object.assign(Object.assign({ interface: 'checkbox', labelHidden: false, flat: false, disabled: false, readonly: false, required: false, nonSubmit: false, invalid: false, checked: false }, option), { label: '', html: option.label });
65
364
  };
@@ -177,4 +476,4 @@ const isPlatform = (winOrPlatform, platform) => {
177
476
  const NewBalOptionValue = newBalOptionValue;
178
477
  const NewBalSingleOptionValue = newBalSingleOptionValue;
179
478
 
180
- export { BalModalController, BalOrientationSubject, NewBalOptionValue, NewBalSingleOptionValue, balModalController, balOrientationSubject, getPlatforms, hasTouchSupport, i18nBalFieldLabel, isBrowser, isPlatform, newBalCheckboxOption, newBalOptionValue, newBalRadioOption, newBalSingleOptionValue };
479
+ export { BalModalController, BalOrientationSubject, BalSnackbarController, BalToastController, NewBalOptionValue, NewBalSingleOptionValue, balModalController, balOrientationSubject, balSnackbarController, balToastController, getPlatforms, hasTouchSupport, i18nBalFieldLabel, initializeBaloiseDesignSystem as initialize, initializeBaloiseDesignSystem, isBrowser, isPlatform, newBalCheckboxOption, newBalOptionValue, newBalRadioOption, newBalSingleOptionValue, setupConfig };