@otto-de/b2b-core-components 1.32.2 → 1.33.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.
Files changed (183) hide show
  1. package/dist/b2b-core-components/b2b-core-components.esm.js +1 -1
  2. package/dist/b2b-core-components/icons-100/b2b_icon-arrow-misdirected.svg +3 -0
  3. package/dist/b2b-core-components/icons-100/b2b_icon-clipboard-check.svg +3 -0
  4. package/dist/b2b-core-components/icons-100/b2b_icon-cosmetics.png +0 -0
  5. package/dist/b2b-core-components/icons-100/b2b_icon-cosmetics.svg +3 -0
  6. package/dist/b2b-core-components/icons-100/b2b_icon-lock-open.svg +4 -0
  7. package/dist/b2b-core-components/icons-100/b2b_icon-person-wheelchair.svg +3 -0
  8. package/dist/b2b-core-components/icons-100/b2b_icon-speech-bubble-sparkles.svg +3 -0
  9. package/dist/b2b-core-components/icons-100/b2b_icon-sustainable-organic-food.svg +3 -0
  10. package/dist/b2b-core-components/icons-100/b2b_icon-universal-access.svg +3 -0
  11. package/dist/b2b-core-components/icons-100/b2b_icon-voice-sparkles.svg +3 -0
  12. package/dist/b2b-core-components/icons-100/b2b_icon-webhook.svg +3 -0
  13. package/dist/b2b-core-components/icons-50/b2b_icon-arrow-long-left.svg +3 -0
  14. package/dist/b2b-core-components/icons-50/b2b_icon-arrow-long-right.svg +3 -0
  15. package/dist/b2b-core-components/icons-50/b2b_icon-arrow-misdirected.svg +3 -0
  16. package/dist/b2b-core-components/icons-50/b2b_icon-arrow-return.svg +3 -0
  17. package/dist/b2b-core-components/icons-50/b2b_icon-callback.svg +10 -0
  18. package/dist/b2b-core-components/icons-50/b2b_icon-feedback.svg +3 -0
  19. package/dist/b2b-core-components/icons-50/b2b_icon-flag-chequered.svg +3 -0
  20. package/dist/b2b-core-components/icons-50/b2b_icon-flame.svg +3 -0
  21. package/dist/b2b-core-components/icons-50/b2b_icon-inplace-zoom.svg +3 -0
  22. package/dist/b2b-core-components/icons-50/b2b_icon-lock-closed.svg +3 -0
  23. package/dist/b2b-core-components/icons-50/b2b_icon-lock-open.svg +10 -0
  24. package/dist/b2b-core-components/icons-50/b2b_icon-notification.svg +3 -0
  25. package/dist/b2b-core-components/icons-50/b2b_icon-pending.svg +3 -0
  26. package/dist/b2b-core-components/icons-50/b2b_icon-phone.svg +3 -0
  27. package/dist/b2b-core-components/icons-50/b2b_icon-print.svg +3 -0
  28. package/dist/b2b-core-components/icons-50/b2b_icon-qr-code.svg +10 -0
  29. package/dist/b2b-core-components/icons-50/b2b_icon-skip-link.svg +3 -0
  30. package/dist/b2b-core-components/icons-50/b2b_icon-smiley-angry.svg +13 -0
  31. package/dist/b2b-core-components/icons-50/b2b_icon-smiley-happy.svg +10 -0
  32. package/dist/b2b-core-components/icons-50/b2b_icon-smiley-negative.svg +10 -0
  33. package/dist/b2b-core-components/icons-50/b2b_icon-smiley-neutral.svg +10 -0
  34. package/dist/b2b-core-components/icons-50/b2b_icon-sparkles.svg +10 -0
  35. package/dist/b2b-core-components/icons-50/b2b_icon-voucher.svg +3 -0
  36. package/dist/b2b-core-components/p-24c6aa56.entry.js +1 -0
  37. package/dist/b2b-core-components/p-2daee203.entry.js +1 -0
  38. package/dist/b2b-core-components/p-3369f3c0.entry.js +1 -0
  39. package/dist/b2b-core-components/{p-660c758b.entry.js → p-57842105.entry.js} +1 -1
  40. package/dist/b2b-core-components/p-5dacf68a.entry.js +1 -0
  41. package/dist/b2b-core-components/p-6abfdb73.entry.js +1 -0
  42. package/dist/b2b-core-components/p-703da47c.entry.js +1 -0
  43. package/dist/b2b-core-components/p-76573f9f.entry.js +1 -0
  44. package/dist/b2b-core-components/p-76bf79ec.entry.js +1 -0
  45. package/dist/b2b-core-components/p-840dd6cd.entry.js +1 -0
  46. package/dist/b2b-core-components/{p-f661154c.entry.js → p-917a7f00.entry.js} +1 -1
  47. package/dist/b2b-core-components/p-953fc46b.js +1 -0
  48. package/dist/b2b-core-components/{p-4dad7870.entry.js → p-bc2b17c6.entry.js} +1 -1
  49. package/dist/b2b-core-components/p-fea90226.entry.js +1 -0
  50. package/dist/cjs/b2b-checkbox-group.cjs.entry.js +5 -12
  51. package/dist/cjs/b2b-checkbox.cjs.entry.js +6 -4
  52. package/dist/cjs/b2b-chip-component_2.cjs.entry.js +4 -2
  53. package/dist/cjs/b2b-core-components.cjs.js +1 -1
  54. package/dist/cjs/b2b-custom-dropdown.cjs.entry.js +13 -11
  55. package/dist/cjs/b2b-date-picker-days_5.cjs.entry.js +30 -22
  56. package/dist/cjs/b2b-date-picker.cjs.entry.js +10 -5
  57. package/dist/cjs/b2b-dropdown.cjs.entry.js +8 -7
  58. package/dist/cjs/b2b-icon-100.cjs.entry.js +402 -392
  59. package/dist/cjs/b2b-icon-50.cjs.entry.js +57 -35
  60. package/dist/cjs/b2b-icon.cjs.entry.js +355 -356
  61. package/dist/cjs/b2b-input-group_2.cjs.entry.js +4 -11
  62. package/dist/cjs/b2b-input_2.cjs.entry.js +7 -9
  63. package/dist/cjs/b2b-multiselect-dropdown.cjs.entry.js +82 -55
  64. package/dist/cjs/loader.cjs.js +1 -1
  65. package/dist/cjs/{request-801c6ba1.js → request-a16ba589.js} +1 -1
  66. package/dist/collection/components/checkbox/checkbox.js +6 -4
  67. package/dist/collection/components/checkbox-group/checkbox-group.js +5 -12
  68. package/dist/collection/components/custom-dropdown/custom-dropdown.css +6 -0
  69. package/dist/collection/components/custom-dropdown/custom-dropdown.js +32 -11
  70. package/dist/collection/components/date-picker/date-picker-months.js +38 -10
  71. package/dist/collection/components/date-picker/date-picker-years.js +35 -15
  72. package/dist/collection/components/date-picker/date-picker.css +2 -3
  73. package/dist/collection/components/date-picker/date-picker.js +9 -4
  74. package/dist/collection/components/date-picker/date-picker.stories.js +9 -3
  75. package/dist/collection/components/dropdown/dropdown.css +4 -0
  76. package/dist/collection/components/dropdown/dropdown.e2e.js +1 -1
  77. package/dist/collection/components/dropdown/dropdown.js +28 -6
  78. package/dist/collection/components/dropdown/dropdown.stories.js +17 -4
  79. package/dist/collection/components/flyout-menu/flyout-menu.e2e.js +7 -2
  80. package/dist/collection/components/icon/types.js +354 -355
  81. package/dist/collection/components/icon-100/icon-100.js +1 -1
  82. package/dist/collection/components/icon-100/icons-100/b2b_icon-arrow-misdirected.svg +3 -0
  83. package/dist/collection/components/icon-100/icons-100/b2b_icon-clipboard-check.svg +3 -0
  84. package/dist/collection/components/icon-100/icons-100/b2b_icon-cosmetics.png +0 -0
  85. package/dist/collection/components/icon-100/icons-100/b2b_icon-cosmetics.svg +3 -0
  86. package/dist/collection/components/icon-100/icons-100/b2b_icon-lock-open.svg +4 -0
  87. package/dist/collection/components/icon-100/icons-100/b2b_icon-person-wheelchair.svg +3 -0
  88. package/dist/collection/components/icon-100/icons-100/b2b_icon-speech-bubble-sparkles.svg +3 -0
  89. package/dist/collection/components/icon-100/icons-100/b2b_icon-sustainable-organic-food.svg +3 -0
  90. package/dist/collection/components/icon-100/icons-100/b2b_icon-universal-access.svg +3 -0
  91. package/dist/collection/components/icon-100/icons-100/b2b_icon-voice-sparkles.svg +3 -0
  92. package/dist/collection/components/icon-100/icons-100/b2b_icon-webhook.svg +3 -0
  93. package/dist/collection/components/icon-100/types.js +401 -391
  94. package/dist/collection/components/icon-50/icon-50.js +1 -1
  95. package/dist/collection/components/icon-50/icons-50/b2b_icon-arrow-long-left.svg +3 -0
  96. package/dist/collection/components/icon-50/icons-50/b2b_icon-arrow-long-right.svg +3 -0
  97. package/dist/collection/components/icon-50/icons-50/b2b_icon-arrow-misdirected.svg +3 -0
  98. package/dist/collection/components/icon-50/icons-50/b2b_icon-arrow-return.svg +3 -0
  99. package/dist/collection/components/icon-50/icons-50/b2b_icon-callback.svg +10 -0
  100. package/dist/collection/components/icon-50/icons-50/b2b_icon-feedback.svg +3 -0
  101. package/dist/collection/components/icon-50/icons-50/b2b_icon-flag-chequered.svg +3 -0
  102. package/dist/collection/components/icon-50/icons-50/b2b_icon-flame.svg +3 -0
  103. package/dist/collection/components/icon-50/icons-50/b2b_icon-inplace-zoom.svg +3 -0
  104. package/dist/collection/components/icon-50/icons-50/b2b_icon-lock-closed.svg +3 -0
  105. package/dist/collection/components/icon-50/icons-50/b2b_icon-lock-open.svg +10 -0
  106. package/dist/collection/components/icon-50/icons-50/b2b_icon-notification.svg +3 -0
  107. package/dist/collection/components/icon-50/icons-50/b2b_icon-pending.svg +3 -0
  108. package/dist/collection/components/icon-50/icons-50/b2b_icon-phone.svg +3 -0
  109. package/dist/collection/components/icon-50/icons-50/b2b_icon-print.svg +3 -0
  110. package/dist/collection/components/icon-50/icons-50/b2b_icon-qr-code.svg +10 -0
  111. package/dist/collection/components/icon-50/icons-50/b2b_icon-skip-link.svg +3 -0
  112. package/dist/collection/components/icon-50/icons-50/b2b_icon-smiley-angry.svg +13 -0
  113. package/dist/collection/components/icon-50/icons-50/b2b_icon-smiley-happy.svg +10 -0
  114. package/dist/collection/components/icon-50/icons-50/b2b_icon-smiley-negative.svg +10 -0
  115. package/dist/collection/components/icon-50/icons-50/b2b_icon-smiley-neutral.svg +10 -0
  116. package/dist/collection/components/icon-50/icons-50/b2b_icon-sparkles.svg +10 -0
  117. package/dist/collection/components/icon-50/icons-50/b2b_icon-voucher.svg +3 -0
  118. package/dist/collection/components/icon-50/types.js +56 -34
  119. package/dist/collection/components/input/input.js +7 -9
  120. package/dist/collection/components/input-group/input-group.js +4 -11
  121. package/dist/collection/components/multiselect-dropdown/multiselect-dropdown.e2e.js +15 -0
  122. package/dist/collection/components/multiselect-dropdown/multiselect-dropdown.js +121 -61
  123. package/dist/collection/components/multiselect-dropdown/multiselect-dropdown.stories.js +44 -11
  124. package/dist/collection/components/multiselect-dropdown/multiselect-option/multiselect-option.js +22 -3
  125. package/dist/collection/utils/icon/request.js +1 -1
  126. package/dist/components/b2b-checkbox-group.js +5 -12
  127. package/dist/components/b2b-custom-dropdown.js +16 -12
  128. package/dist/components/b2b-date-picker.js +10 -5
  129. package/dist/components/b2b-dropdown.js +9 -7
  130. package/dist/components/b2b-icon-50.js +56 -34
  131. package/dist/components/b2b-icon.js +354 -355
  132. package/dist/components/b2b-multiselect-dropdown.js +85 -55
  133. package/dist/components/checkbox.js +6 -4
  134. package/dist/components/date-picker-months.js +16 -8
  135. package/dist/components/date-picker-years.js +14 -14
  136. package/dist/components/icon-100.js +401 -391
  137. package/dist/components/input-group.js +4 -11
  138. package/dist/components/input.js +7 -9
  139. package/dist/components/multiselect-option.js +5 -2
  140. package/dist/components/request.js +1 -1
  141. package/dist/custom-elements.json +108 -1
  142. package/dist/esm/b2b-checkbox-group.entry.js +5 -12
  143. package/dist/esm/b2b-checkbox.entry.js +6 -4
  144. package/dist/esm/b2b-chip-component_2.entry.js +4 -2
  145. package/dist/esm/b2b-core-components.js +1 -1
  146. package/dist/esm/b2b-custom-dropdown.entry.js +13 -11
  147. package/dist/esm/b2b-date-picker-days_5.entry.js +30 -22
  148. package/dist/esm/b2b-date-picker.entry.js +10 -5
  149. package/dist/esm/b2b-dropdown.entry.js +8 -7
  150. package/dist/esm/b2b-icon-100.entry.js +402 -392
  151. package/dist/esm/b2b-icon-50.entry.js +57 -35
  152. package/dist/esm/b2b-icon.entry.js +355 -356
  153. package/dist/esm/b2b-input-group_2.entry.js +4 -11
  154. package/dist/esm/b2b-input_2.entry.js +7 -9
  155. package/dist/esm/b2b-multiselect-dropdown.entry.js +82 -55
  156. package/dist/esm/loader.js +1 -1
  157. package/dist/esm/{request-1d048f8a.js → request-6bb66f19.js} +1 -1
  158. package/dist/types/components/custom-dropdown/custom-dropdown.d.ts +6 -2
  159. package/dist/types/components/date-picker/date-picker-months.d.ts +7 -4
  160. package/dist/types/components/date-picker/date-picker-years.d.ts +6 -5
  161. package/dist/types/components/date-picker/date-picker.d.ts +4 -4
  162. package/dist/types/components/dropdown/dropdown.d.ts +2 -0
  163. package/dist/types/components/dropdown/dropdown.stories.d.ts +1 -0
  164. package/dist/types/components/icon/types.d.ts +1 -1
  165. package/dist/types/components/icon-100/types.d.ts +2 -2
  166. package/dist/types/components/icon-50/types.d.ts +2 -2
  167. package/dist/types/components/multiselect-dropdown/multiselect-dropdown.d.ts +19 -9
  168. package/dist/types/components/multiselect-dropdown/multiselect-dropdown.stories.d.ts +23 -4
  169. package/dist/types/components/multiselect-dropdown/multiselect-option/multiselect-option.d.ts +3 -1
  170. package/dist/types/components.d.ts +36 -8
  171. package/dist/web-types.json +51 -12
  172. package/package.json +2 -2
  173. package/dist/b2b-core-components/p-0bf2c192.entry.js +0 -1
  174. package/dist/b2b-core-components/p-54eee61c.entry.js +0 -1
  175. package/dist/b2b-core-components/p-61b2a6ad.js +0 -1
  176. package/dist/b2b-core-components/p-639d68a2.entry.js +0 -1
  177. package/dist/b2b-core-components/p-6b291a01.entry.js +0 -1
  178. package/dist/b2b-core-components/p-6c60d337.entry.js +0 -1
  179. package/dist/b2b-core-components/p-88bf92be.entry.js +0 -1
  180. package/dist/b2b-core-components/p-a614bd46.entry.js +0 -1
  181. package/dist/b2b-core-components/p-ae7ec34a.entry.js +0 -1
  182. package/dist/b2b-core-components/p-b4d46a07.entry.js +0 -1
  183. package/dist/b2b-core-components/p-f83dd748.entry.js +0 -1
@@ -28,16 +28,9 @@ const B2BInputGroup = class {
28
28
  };
29
29
  this.toggleAllDisabled = () => {
30
30
  let nodes = this.getChildNodes();
31
- if (this.disabled) {
32
- nodes.forEach(node => {
33
- node.disabled = true;
34
- });
35
- }
36
- else {
37
- nodes.forEach(node => {
38
- node.groupDisabled = this.disabled;
39
- });
40
- }
31
+ nodes.forEach(node => {
32
+ node.groupDisabled = this.disabled;
33
+ });
41
34
  };
42
35
  this.getChildNodes = () => {
43
36
  return Array.from(this.host.children);
@@ -61,7 +54,7 @@ const B2BInputGroup = class {
61
54
  }
62
55
  }
63
56
  render() {
64
- return (h(Host, { key: '57a5aa8deaadb27c20de3771a232833ae95e82a4' }, h("div", { key: 'fd0c4bc60e08a60fe6b5abc93bdac9219c41b09c', class: { 'b2b-input-wrapper': true } }, h("slot", { key: '36cd34bf6b4aa62c2f544d0329d9c95f3d70259d', name: "start" }), h("slot", { key: 'a32cec43572ec254a0eb91e09bc8136984f8143f' }), h("slot", { key: '7b99a7c32bc2c54e1400d90d947df0c63920b243', name: "end" })), (this.hint || (this.invalid && !this.disabled)) && (h("span", { class: {
57
+ return (h(Host, { key: 'a7c7a69265ce9bbaa46e93871acc705c454ef751' }, h("div", { key: '636e0bac6bf428c88e219e23fa7e409c60f93db3', class: { 'b2b-input-wrapper': true } }, h("slot", { key: '0a30095318f623283741415830ed6a4603834be1', name: "start" }), h("slot", { key: '4f268d66af86c1a30c1f3605aed3812eccd578b2' }), h("slot", { key: 'bd032c28e48612eea1279eed5209b892721d949a', name: "end" })), (this.hint || (this.invalid && !this.disabled)) && (h("span", { class: {
65
58
  'b2b-input-wrapper__hint': true,
66
59
  'b2b-input-wrapper__hint--error': this.invalid && !this.disabled,
67
60
  } }, this.invalid && !this.disabled ? this.error : this.hint))));
@@ -26,9 +26,7 @@ const InputComponent = class {
26
26
  };
27
27
  this.onInput = (ev) => {
28
28
  const input = ev.target;
29
- if (input !== (null)) {
30
- this.value = input.value || '';
31
- }
29
+ this.value = (input === null || input === void 0 ? void 0 : input.value) || '';
32
30
  this.b2bInput.emit(input);
33
31
  };
34
32
  this.getSlottedText = () => {
@@ -105,19 +103,19 @@ const InputComponent = class {
105
103
  this.filterHintSlotContent();
106
104
  }
107
105
  render() {
108
- return (h(Host, { key: 'f24ddfd309213b97dde35beafeafe167164fab05', class: {
106
+ return (h(Host, { key: '0212d347a56c41c9551ffb75d608f02dfc0d51d4', class: {
109
107
  'b2b-input': true,
110
108
  'b2b-input--error': this.invalid && !this.disabled,
111
- } }, (this.label || this.labelSlot) && (h("b2b-input-label", { id: this.name, required: this.required }, h("slot", { name: "label" }, this.label))), h("div", { key: '65948e5a8bf67ea0f2bf2e9a56af1e9211b854a7', class: {
109
+ } }, (this.label || this.labelSlot) && (h("b2b-input-label", { id: this.name, required: this.required }, h("slot", { name: "label" }, this.label))), h("div", { key: '969261c802e5740defee8d8223e08717f0b10ba0', class: {
112
110
  'b2b-input__wrapper': true,
113
111
  'b2b-input__wrapper--focused': this.hasFocus,
114
112
  'b2b-input__wrapper--disabled': this.disabled || this.groupDisabled,
115
- } }, h("slot", { key: '2b8a7cc9ddd4457b9c833a04a5201912147958d8', name: "start" }), this.hasTextPrefix && h("div", { class: "border" }), h("input", { key: 'fd07b1da34c8d628521ebc59a5d8e2d279a167ba', class: {
113
+ } }, h("slot", { key: 'b8513af326ebd43dd370c6f1b47c6c9a13d70d34', name: "start" }), this.hasTextPrefix && h("div", { class: "border" }), h("input", { key: '99de10f9c62b5c0f899c6896e4aca54da8670613', class: {
116
114
  'b2b-input__native-input': true,
117
115
  ['b2b-input__native-input--align-' + this.inputTextAlign]: true,
118
- 'b2b-input__native-input--disabled': this.disabled,
119
- }, "aria-labelledby": this.name, type: this.type, placeholder: this.placeholder, value: this.value, name: this.name, disabled: this.disabled || this.groupDisabled, autoFocus: this.focusOnLoad, onFocus: this.onFocus, onBlur: this.onBlur, onInput: this.onInput, ref: el => (this.focusableElement = el) }), this.hasTextSuffix && h("div", { class: "border" }), h("slot", { key: '1147f2bdf14ade737b8e3e02d03dea9424aef1e9', name: "end" })), (this.hint !== undefined || this.hintSlot) &&
120
- (!this.invalid || this.disabled) ? (h("span", null, h("slot", { name: "hint" }, this.hint))) : (''), this.error !== undefined && this.invalid && !this.disabled ? (h("span", null, this.error)) : ('')));
116
+ 'b2b-input__native-input--disabled': this.disabled || this.groupDisabled,
117
+ }, "aria-labelledby": this.name, type: this.type, placeholder: this.placeholder, value: this.value, name: this.name, disabled: this.disabled || this.groupDisabled, autoFocus: this.focusOnLoad, onFocus: this.onFocus, onBlur: this.onBlur, onInput: this.onInput, ref: el => (this.focusableElement = el) }), this.hasTextSuffix && h("div", { class: "border" }), h("slot", { key: 'd7462cca8b0d7a3e315212a835633817ce9a6d9b', name: "end" })), (this.hint !== undefined || this.hintSlot) &&
118
+ (!this.invalid || this.disabled || this.groupDisabled) ? (h("span", null, h("slot", { name: "hint" }, this.hint))) : (''), this.error !== undefined && this.invalid && !this.disabled ? (h("span", null, this.error)) : ('')));
121
119
  }
122
120
  get hostElement() { return getElement(this); }
123
121
  };
@@ -8,18 +8,17 @@ const B2bMultiSelectDropdown = class {
8
8
  constructor(hostRef) {
9
9
  registerInstance(this, hostRef);
10
10
  this.b2bChange = createEvent(this, "b2b-selected", 7);
11
- this.handleInput = event => {
12
- if (this.disabled) {
11
+ this.handleInput = (event) => {
12
+ if (this.disabled || this.groupDisabled)
13
13
  return;
14
- }
15
- this.value = event.target.value.toLowerCase();
16
- if (this.value !== '') {
17
- const filteredList = this.optionsList.filter(option => option.toLowerCase().indexOf(this.value) > -1);
18
- this.currentList = filteredList;
19
- }
20
- else if (this.value === '') {
21
- this.currentList = this.optionsList;
22
- }
14
+ const term = event.target.value.toLowerCase();
15
+ this.value = term;
16
+ const list = this.normalizedOptions;
17
+ this.currentList =
18
+ term === ''
19
+ ? list
20
+ : list.filter(o => o.label.toLowerCase().includes(term) ||
21
+ o.value.toLowerCase().includes(term));
23
22
  };
24
23
  this.getOptions = () => {
25
24
  return Array.from(this.hostElement.shadowRoot.querySelectorAll('b2b-multiselect-option')).slice(1);
@@ -27,10 +26,10 @@ const B2bMultiSelectDropdown = class {
27
26
  this.renderChips = () => {
28
27
  return this.currentSelectedValues.map((option, index) => {
29
28
  if (index < this.maxOptionsVisible) {
30
- return (h("b2b-chip-component", { label: option, value: option, "onB2b-close": this.handleChipClose }));
29
+ return (h("b2b-chip-component", { label: option.label, value: option.value, disabled: this.disabled || this.groupDisabled, "onB2b-close": this.handleChipClose }));
31
30
  }
32
31
  else if (index === this.maxOptionsVisible) {
33
- return (h("b2b-chip-component", { label: "...", class: "b2b-multiselect-dropdown__option--show-more-button", hasCloseButton: true, onClick: this.handleOverflowOptionsClick }));
32
+ return (h("b2b-chip-component", { label: "...", class: "b2b-multiselect-dropdown__option--show-more-button", disabled: this.disabled || this.groupDisabled, onClick: this.handleOverflowOptionsClick }));
34
33
  }
35
34
  else {
36
35
  return;
@@ -42,18 +41,24 @@ const B2bMultiSelectDropdown = class {
42
41
  this.setElementOnFocus();
43
42
  }
44
43
  };
45
- this.handleSelectedChange = event => {
46
- const newOption = event.detail.selectedOption;
44
+ this.handleSelectedChange = (event) => {
45
+ const value = event.detail.selectedOption;
46
+ const opt = this.normalizedOptions.find(o => o.value === value);
47
+ if (opt === undefined)
48
+ return;
47
49
  if (event.detail.selected) {
48
- this.currentSelectedValues = [...this.currentSelectedValues, newOption];
50
+ if (!this.currentSelectedValues.some(o => o.value === value)) {
51
+ this.currentSelectedValues = [...this.currentSelectedValues, opt];
52
+ }
49
53
  }
50
54
  else {
51
- this.currentSelectedValues = this.currentSelectedValues.filter(el => el !== newOption);
55
+ this.currentSelectedValues = this.currentSelectedValues.filter(o => o.value !== value);
52
56
  }
53
57
  };
54
- this.handleChipClose = event => {
55
- this.currentSelectedValues = this.currentSelectedValues.filter(el => el !== event.detail.value);
56
- this.updateOption(event.detail.value);
58
+ this.handleChipClose = (event) => {
59
+ const value = event.detail.value;
60
+ this.currentSelectedValues = this.currentSelectedValues.filter(o => o.value !== value);
61
+ this.updateOption(value);
57
62
  this.isOpen = true;
58
63
  this.resetFocus();
59
64
  };
@@ -62,21 +67,22 @@ const B2bMultiSelectDropdown = class {
62
67
  const optionToUpdate = options.find(el => el.option === option);
63
68
  optionToUpdate.selected = false;
64
69
  };
65
- this.updateAllOptions = options => {
66
- // Deselect all to avoid caching issues in Vue
70
+ this.updateAllOptions = (options) => {
67
71
  options.forEach(option => (option.selected = false));
72
+ const selectedSet = new Set(this.currentSelectedValues.map(o => o.value));
68
73
  options
69
- .filter(option => this.currentSelectedValues.includes(option.option))
74
+ .filter(option => selectedSet.has(option.option))
70
75
  .forEach(option => (option.selected = true));
71
76
  };
72
77
  this.setElementOnFocus = () => {
73
- if (this.disabled)
78
+ if (this.disabled || this.groupDisabled)
74
79
  return;
75
80
  this.isElementFocused = true;
76
81
  };
77
82
  this.setElementOnBlur = (event) => {
78
83
  const nextFocusedElement = event === null || event === void 0 ? void 0 : event.relatedTarget;
79
- if (!nextFocusedElement || !this.hostElement.contains(nextFocusedElement)) {
84
+ if (!(nextFocusedElement instanceof Node) ||
85
+ !this.hostElement.contains(nextFocusedElement)) {
80
86
  this.isOpen = false;
81
87
  }
82
88
  else {
@@ -85,14 +91,14 @@ const B2bMultiSelectDropdown = class {
85
91
  this.isElementFocused = false;
86
92
  };
87
93
  this.resetFocus = () => {
88
- if (this.disabled)
94
+ if (this.disabled || this.groupDisabled)
89
95
  return;
90
96
  const el = this.hostElement.shadowRoot.querySelector('.b2b-multiselect-dropdown');
91
97
  el.focus();
92
98
  };
93
99
  this.handleMouseDown = (event) => {
94
100
  /** Keep dropdown open if a tag is removed */
95
- if (this.disabled) {
101
+ if (this.disabled || this.groupDisabled) {
96
102
  event.preventDefault();
97
103
  return;
98
104
  }
@@ -104,7 +110,7 @@ const B2bMultiSelectDropdown = class {
104
110
  }
105
111
  };
106
112
  this.handleKeyDown = (event) => {
107
- if (this.disabled)
113
+ if (this.disabled || this.groupDisabled)
108
114
  return;
109
115
  if (event.key === 'Enter') {
110
116
  event.preventDefault();
@@ -115,19 +121,21 @@ const B2bMultiSelectDropdown = class {
115
121
  this.setElementOnBlur();
116
122
  }
117
123
  };
118
- this.handleSelectAll = event => {
124
+ this.handleSelectAll = (event) => {
119
125
  const newVal = event.detail.selected;
120
126
  const options = this.getOptions();
121
- const newVals = options.map(el => el.option);
122
- for (let i = 0, n = options.length; i < n; i++) {
123
- options[i].selected = newVal;
124
- }
127
+ const values = options.map(el => el.option);
128
+ options.forEach(el => (el.selected = newVal));
125
129
  if (newVal) {
126
- // filter out duplicates
127
- this.currentSelectedValues = Array.from(new Set([...this.currentSelectedValues, ...newVals]));
130
+ const toAdd = this.normalizedOptions.filter(o => values.includes(o.value));
131
+ const set = new Set(this.currentSelectedValues.map(o => o.value));
132
+ this.currentSelectedValues = [
133
+ ...this.currentSelectedValues,
134
+ ...toAdd.filter(o => !set.has(o.value)),
135
+ ];
128
136
  }
129
137
  else {
130
- this.currentSelectedValues = this.currentSelectedValues.filter(option => !newVals.includes(option));
138
+ this.currentSelectedValues = this.currentSelectedValues.filter(o => !values.includes(o.value));
131
139
  }
132
140
  };
133
141
  this.updateSelectAll = (options) => {
@@ -149,35 +157,51 @@ const B2bMultiSelectDropdown = class {
149
157
  this.errorMessage = undefined;
150
158
  this.hint = undefined;
151
159
  this.disabled = false;
160
+ this.groupDisabled = false;
152
161
  this.currentSelectedValues = [];
153
- this.currentList = this.optionsList;
162
+ this.currentList = [];
154
163
  this.value = '';
155
164
  this.isElementFocused = false;
156
165
  this.isOpen = false;
166
+ this.normalizedOptions = [];
167
+ this.normalizedSelected = [];
157
168
  this.hasOptionList = this.optionsList.length > 0;
158
169
  }
170
+ parsePropToOptArray(value) {
171
+ if (Array.isArray(value) && typeof value[0] === 'object') {
172
+ return value;
173
+ }
174
+ return parsePropToArray(value).map(v => ({
175
+ label: v,
176
+ value: v,
177
+ }));
178
+ }
159
179
  componentWillLoad() {
160
- this.selectedValues = parsePropToArray(this.selectedValues);
161
- this.optionsList = parsePropToArray(this.optionsList);
162
- this.currentList = this.optionsList;
163
- this.currentSelectedValues = this.selectedValues.filter(value => this.optionsList.includes(value));
180
+ this.normalizedSelected = this.parsePropToOptArray(this.selectedValues);
181
+ this.normalizedOptions = this.parsePropToOptArray(this.optionsList);
182
+ this.currentList = this.normalizedOptions;
183
+ this.hasOptionList = this.normalizedOptions.length > 0;
184
+ const selectedSet = new Set(this.normalizedSelected.map(o => o.value));
185
+ this.currentSelectedValues = this.normalizedOptions.filter(opt => selectedSet.has(opt.value));
164
186
  }
165
187
  /** Needed to trigger a re-render for async data */
166
188
  watchPropHandler(newList) {
167
- this.optionsList = parsePropToArray(newList);
168
- this.hasOptionList = this.optionsList.length > 0;
189
+ this.normalizedOptions = this.parsePropToOptArray(newList);
190
+ this.hasOptionList = this.normalizedOptions.length > 0;
169
191
  if (this.hasOptionList) {
170
- this.currentList = this.optionsList;
171
- this.currentSelectedValues = this.selectedValues.filter(value => this.optionsList.includes(value));
192
+ this.currentList = this.normalizedOptions;
193
+ const selectedSet = new Set(this.normalizedSelected.map(o => o.value));
194
+ this.currentSelectedValues = this.normalizedOptions.filter(opt => selectedSet.has(opt.value));
172
195
  }
173
196
  }
174
197
  /** Needed to trigger a re-render for async data */
175
198
  handleSelectedValuesChangeFromOutside(newVal) {
176
- this.selectedValues = parsePropToArray(newVal);
177
- this.currentSelectedValues = this.selectedValues.filter(val => this.optionsList.includes(val));
199
+ this.normalizedSelected = this.parsePropToOptArray(newVal);
200
+ const selectedSet = new Set(this.normalizedSelected.map(o => o.value));
201
+ this.currentSelectedValues = this.normalizedOptions.filter(o => selectedSet.has(o.value));
178
202
  }
179
203
  handleSelectedValuesChange(newValues) {
180
- this.b2bChange.emit(newValues);
204
+ this.b2bChange.emit(newValues.map(o => o.value));
181
205
  }
182
206
  componentDidUpdate() {
183
207
  const options = this.getOptions();
@@ -185,18 +209,21 @@ const B2bMultiSelectDropdown = class {
185
209
  this.updateSelectAll(options);
186
210
  }
187
211
  render() {
188
- return (h(Host, { key: '964bdaefbeef0b8f9f29be1f2e76b795b95ba17e', onFocus: this.setElementOnFocus, onBlur: this.setElementOnBlur, onClick: this.handleMouseDown, onKeyDown: this.handleKeyDown }, h("b2b-input-label", { key: '88ab1efa48ac4ecb42c88ac35e6edbb2ad08ece2', required: this.required }, this.label), h("div", { key: '5befcc8a885278bac7f00a7407d25ff738b52366', class: {
212
+ const disabled = this.disabled || this.groupDisabled;
213
+ const hasError = this.invalid && !disabled;
214
+ const showHint = this.hint && !hasError;
215
+ const showError = this.errorMessage && hasError;
216
+ return (h(Host, { key: 'c7428f2ae958e0560c2725b11418d6303d762bd6', onFocus: this.setElementOnFocus, onBlur: this.setElementOnBlur, onClick: this.handleMouseDown, onKeyDown: this.handleKeyDown }, h("b2b-input-label", { key: 'ec356ec9b842ff998adc0156c9cadc5e64aaba02', required: this.required }, this.label), h("div", { key: '292e2e884448319fd956a39b0b5cb154bb8ac599', class: {
189
217
  'b2b-multiselect-dropdown': true,
190
218
  'b2b-multiselect-dropdown--open': this.isOpen,
191
- 'b2b-multiselect-dropdown--error': this.invalid && !this.disabled,
192
- 'b2b-multiselect-dropdown--disabled': this.disabled,
219
+ 'b2b-multiselect-dropdown--error': hasError,
220
+ 'b2b-multiselect-dropdown--disabled': disabled,
193
221
  'b2b-multiselect-dropdown--focused': this.invalid && this.isElementFocused,
194
- }, tabindex: 0, role: "combobox", onClick: () => (this.isOpen = !this.isOpen), "aria-expanded": this.isElementFocused }, h("div", { key: 'a0e37fe748d07f62fe0e2c1976369eb7ddcecbe9', class: "b2b-multiselect-dropdown__chip-container" }, this.currentSelectedValues.length === 0 ? (h("span", { class: "b2b-multiselect-dropdown__placeholder" }, this.placeholder)) : (this.renderChips())), h("b2b-icon-100", { key: 'c6ffcd302b797626eca29c0ae2876d5bedc1b41f', icon: "b2b_icon-arrow-down" })), h("div", { key: '7ceeb281cf01a1bc526c9d0b6d6c1c0d3c1bca9a', class: {
222
+ }, tabindex: 0, role: "combobox", onClick: () => (this.isOpen = !this.isOpen && !disabled), "aria-expanded": this.isElementFocused }, h("div", { key: 'e3078ea1d5ce658f84cbd7db8d15fbec5c10bcc4', class: "b2b-multiselect-dropdown__chip-container" }, this.currentSelectedValues.length === 0 ? (h("span", { class: "b2b-multiselect-dropdown__placeholder" }, this.placeholder)) : (this.renderChips())), h("b2b-icon-100", { key: '1591c3ee5f61627ca75e3ca7b1fa4873209d8e52', icon: "b2b_icon-arrow-down" })), h("div", { key: 'a521b5578bcfbab5ceebd638a309e2f68eea0095', class: {
195
223
  'b2b-multiselect-dropdown__options-container': true,
196
224
  'b2b-multiselect-dropdown__options-container--visible': this.isOpen,
197
- } }, h("div", { key: '6c44f49ba781b31ed5bdcfad9e4c571e5bbdc871', class: "b2b-multiselect-dropdown__options", role: "listbox", "aria-label": this.label, tabIndex: -1 }, h("div", { key: '07c1bc3b8acb485632e76ae2f688ea9b6647d94b', class: "b2b-multiselect-dropdown__option__search" }, h("input", { key: '9264228fda064567ee88f3b26e953ef4bc4071b8', type: "text", onInput: this.handleInput, class: "b2b-multiselect-dropdown__option__search__input", placeholder: this.searchPlaceholder })), h("b2b-multiselect-option", { key: '461fc919fecefa0bcbf7ef3adc54ed78e827f8fb', class: "b2b-multiselect-dropdown__option__select-all", option: this.selectAllLabel, id: "select-all", "onB2b-option-selected": this.handleSelectAll }), this.hasOptionList &&
198
- this.currentList.map(option => (h("b2b-multiselect-option", { "onB2b-option-selected": this.handleSelectedChange, option: option }))))), (this.hint !== undefined && !this.invalid) ||
199
- (this.hint !== undefined && this.disabled) ? (h("span", { class: "b2b-multiselect-dropdown__hint" }, this.hint)) : (''), this.errorMessage !== undefined && this.invalid && !this.disabled ? (h("span", { class: "b2b-multiselect-dropdown__error-message" }, this.errorMessage)) : ('')));
225
+ } }, h("div", { key: '85abaf3ebe291b14f6d13758fec48972e6e0bf92', class: "b2b-multiselect-dropdown__options", role: "listbox", "aria-label": this.label, tabIndex: -1 }, h("div", { key: 'fb4f61401da1bf145aa024a17dd8ecb295a369bc', class: "b2b-multiselect-dropdown__option__search" }, h("input", { key: '0971102609b6fa583f12e2c3f15f70a961ebebaa', type: "text", onInput: this.handleInput, class: "b2b-multiselect-dropdown__option__search__input", placeholder: this.searchPlaceholder })), h("b2b-multiselect-option", { key: '2238627bb301f45c5bd3d4d143fc5312bec0e445', class: "b2b-multiselect-dropdown__option__select-all", option: this.selectAllLabel, id: "select-all", "onB2b-option-selected": this.handleSelectAll }), this.hasOptionList &&
226
+ this.currentList.map(option => (h("b2b-multiselect-option", { "onB2b-option-selected": this.handleSelectedChange, option: option.value, label: option.label }))))), showHint && (h("span", { class: "b2b-multiselect-dropdown__hint" }, this.hint)), showError && (h("span", { class: "b2b-multiselect-dropdown__error-message" }, this.errorMessage))));
200
227
  }
201
228
  get hostElement() { return getElement(this); }
202
229
  static get watchers() { return {
@@ -5,7 +5,7 @@ import { g as globalScripts } from './app-globals-0f993ce5.js';
5
5
  const defineCustomElements = async (win, options) => {
6
6
  if (typeof window === 'undefined') return undefined;
7
7
  await globalScripts();
8
- return bootstrapLazy(JSON.parse("[[\"b2b-date-picker\",[[1,\"b2b-date-picker\",{\"disablePastDates\":[4,\"disable-past-dates\"],\"disableFutureDates\":[4,\"disable-future-dates\"],\"disableWeekends\":[4,\"disable-weekends\"],\"disableDates\":[1,\"disable-dates\"],\"label\":[1],\"required\":[516],\"preSelectedDate\":[1,\"pre-selected-date\"],\"showHint\":[4,\"show-hint\"],\"width\":[2],\"disableDays\":[1,\"disable-days\"],\"disableDatesUntil\":[1,\"disable-dates-until\"],\"disableDatesFrom\":[1,\"disable-dates-from\"],\"hint\":[1],\"placeholder\":[513],\"language\":[1],\"showDatePicker\":[32],\"focused\":[32],\"datePickerView\":[32],\"selectedMonth\":[32],\"selectedYear\":[32],\"selectedDay\":[32],\"selectedDate\":[32],\"userInputDate\":[32],\"invalid\":[32],\"errorMessage\":[32],\"datesToBeDisabled\":[32],\"normalizedDisableEvery\":[32],\"normalizedDisableDatesUntil\":[32],\"normalizedDisableDatesFrom\":[32]},[[0,\"b2b-date-picker-escape\",\"handleEscapePress\"],[0,\"b2b-date-selected\",\"handleDateSelection\"],[0,\"b2b-date-picker-previous-month\",\"getPreviousMonth\"],[0,\"b2b-date-picker-next-month\",\"getNextMonth\"],[0,\"b2b-date-picker-view-changed\",\"handleDatePickerViewChanged\"],[0,\"b2b-date-picker-month-selected\",\"handleMonthSelected\"],[0,\"b2b-date-picker-year-selected\",\"handleYearSelected\"]],{\"disableDates\":[\"handleDisableDatesChanged\"],\"disableDays\":[\"handleDisableDaysChanged\"],\"disableDatesUntil\":[\"handleDisableDatesUntilChanged\"],\"disableDatesFrom\":[\"handleDisableDatesFromChanged\"],\"disablePastDates\":[\"handleDisablePastDatesChanged\"],\"disableFutureDates\":[\"handleDisableFutureDatesChanged\"],\"disableWeekends\":[\"handleDisableWeekendsChanged\"]}]]],[\"b2b-search\",[[1,\"b2b-search\",{\"placeholder\":[1],\"optionsList\":[16],\"value\":[1537],\"disabled\":[516],\"closed\":[32]},[[0,\"keydown\",\"handleKeyDown\"]]]]],[\"b2b-multiselect-dropdown\",[[1,\"b2b-multiselect-dropdown\",{\"label\":[1],\"placeholder\":[513],\"selectedValues\":[1,\"selected-values\"],\"optionsList\":[1,\"options-list\"],\"searchPlaceholder\":[1,\"search-placeholder\"],\"selectAllLabel\":[1,\"select-all-label\"],\"maxOptionsVisible\":[2,\"max-options-visible\"],\"required\":[516],\"invalid\":[516],\"errorMessage\":[1,\"error-message\"],\"hint\":[1],\"disabled\":[516],\"currentSelectedValues\":[32],\"currentList\":[32],\"value\":[32],\"isElementFocused\":[32],\"isOpen\":[32],\"hasOptionList\":[32]},null,{\"optionsList\":[\"watchPropHandler\"],\"selectedValues\":[\"handleSelectedValuesChangeFromOutside\"],\"currentSelectedValues\":[\"handleSelectedValuesChange\"]}]]],[\"b2b-table-row\",[[1,\"b2b-table-row\",{\"highlight\":[4],\"color\":[1],\"selectable\":[4],\"size\":[1],\"value\":[1],\"indeterminate\":[4],\"checked\":[1028],\"isAccordionValue\":[32],\"isOpen\":[32],\"toggleAccordion\":[64]},[[0,\"b2b-change\",\"toggleSelected\"]]]]],[\"b2b-custom-dropdown\",[[1,\"b2b-custom-dropdown\",{\"placeholder\":[513],\"disabled\":[516],\"dropshadow\":[516],\"border\":[516],\"autoDisableSearch\":[4,\"auto-disable-search\"],\"opened\":[1028],\"selectedOption\":[32],\"value\":[32],\"allOptions\":[32]},[[0,\"b2b-custom-dropdown-option-selected\",\"handleOptionSelected\"],[4,\"click\",\"handleClickOutside\"]]]]],[\"b2b-wizard-step\",[[1,\"b2b-wizard-step\",{\"state\":[1],\"step\":[1],\"checkIcon\":[4,\"check-icon\"]}]]],[\"b2b-modal\",[[1,\"b2b-modal\",{\"heading\":[1],\"opened\":[1540],\"backdropDismiss\":[4,\"backdrop-dismiss\"],\"escDismiss\":[4,\"esc-dismiss\"],\"variant\":[1],\"iconHover\":[32],\"isOpen\":[32]},[[0,\"keydown\",\"handleKeypress\"]],{\"opened\":[\"openedChanged\"]}]]],[\"b2b-pagination\",[[1,\"b2b-pagination\",{\"totalPages\":[2,\"total-pages\"],\"activePage\":[1538,\"active-page\"],\"ariaLabelNextPage\":[1,\"aria-label-next-page\"],\"ariaLabelPreviousPage\":[1,\"aria-label-previous-page\"]},null,{\"totalPages\":[\"onTotalPagesChange\"],\"activePage\":[\"onActivePageChange\"]}]]],[\"b2b-alert\",[[1,\"b2b-alert\",{\"type\":[1],\"size\":[1],\"opened\":[1028],\"hasCloseButton\":[4,\"has-close-button\"],\"customIcon\":[4,\"custom-icon\"]},null,{\"opened\":[\"openedChanged\"]}]]],[\"b2b-checkbox-group\",[[1,\"b2b-checkbox-group\",{\"label\":[1],\"required\":[4],\"disabled\":[4],\"invalid\":[4],\"alignment\":[1],\"hint\":[1],\"error\":[1]},[[0,\"b2b-change\",\"handleCheckboxChange\"]],{\"disabled\":[\"disabledChanged\"],\"invalid\":[\"invalidChanged\"]}]]],[\"b2b-custom-dropdown-option\",[[1,\"b2b-custom-dropdown-option\",{\"option\":[1],\"disabled\":[516],\"separator\":[4],\"selected\":[516],\"hoverIcon\":[520,\"hover-icon\"],\"hoverIconColor\":[513,\"hover-icon-color\"],\"selectedIcon\":[520,\"selected-icon\"],\"selectedIconColor\":[513,\"selected-icon-color\"],\"isHovered\":[32]},[[1,\"mouseenter\",\"handleMouseEnter\"],[1,\"mouseleave\",\"handleMouseLeave\"]]]]],[\"b2b-dropdown\",[[1,\"b2b-dropdown\",{\"label\":[1],\"required\":[516],\"name\":[513],\"placeholder\":[1],\"placeholderValue\":[1,\"placeholder-value\"],\"disabled\":[516],\"invalid\":[516],\"hint\":[1],\"error\":[1],\"isOpen\":[32],\"focused\":[32],\"selectedValue\":[32],\"selectedText\":[32],\"options\":[32],\"clearSelection\":[64]},null,{\"isOpen\":[\"watchDropdownState\"]}]]],[\"b2b-radio-button\",[[1,\"b2b-radio-button\",{\"label\":[1],\"required\":[516],\"name\":[513],\"checked\":[1540],\"disabled\":[516],\"invalid\":[4],\"value\":[513],\"hint\":[1],\"error\":[1]}]]],[\"b2b-radio-group\",[[1,\"b2b-radio-group\",{\"name\":[1],\"label\":[1],\"required\":[4],\"alignment\":[1],\"disabled\":[516],\"invalid\":[516],\"hint\":[1],\"error\":[1],\"currentValue\":[32]},[[0,\"b2b-change\",\"handleRadioButtonChange\"]],{\"invalid\":[\"invalidChanged\"],\"disabled\":[\"disabledChanged\"]}]]],[\"b2b-required-separator\",[[1,\"b2b-required-separator\",{\"label\":[1]}]]],[\"b2b-snackbar\",[[1,\"b2b-snackbar\",{\"description\":[1],\"type\":[1],\"opened\":[1540],\"timed\":[4],\"duration\":[2],\"hasAction\":[4,\"has-action\"],\"actionLabel\":[1,\"action-label\"],\"width\":[1]},null,{\"opened\":[\"onVisibleChange\"]}]]],[\"b2b-tab-group\",[[1,\"b2b-tab-group\",{\"useRouter\":[4,\"use-router\"]},[[0,\"click\",\"handleClick\"],[0,\"keydown\",\"handleKeydown\"]]]]],[\"b2b-textarea\",[[1,\"b2b-textarea\",{\"label\":[1],\"required\":[516],\"placeholder\":[513],\"disabled\":[516],\"invalid\":[516],\"focusOnLoad\":[516,\"focus-on-load\"],\"resize\":[513],\"hint\":[1],\"error\":[1],\"value\":[1537],\"name\":[513],\"maxLength\":[514,\"max-length\"],\"height\":[1]}]]],[\"b2b-anchor\",[[1,\"b2b-anchor\",{\"href\":[1],\"download\":[1],\"target\":[1],\"size\":[1],\"hoverColor\":[1,\"hover-color\"],\"underlineText\":[4,\"underline-text\"]}]]],[\"b2b-breadcrumb\",[[1,\"b2b-breadcrumb\",{\"paddingTop\":[2,\"padding-top\"],\"paddingBottom\":[2,\"padding-bottom\"]},[[0,\"b2b-change\",\"onSelectedChange\"]]]]],[\"b2b-breadcrumb-item\",[[1,\"b2b-breadcrumb-item\",{\"href\":[1],\"value\":[8],\"active\":[1028]}]]],[\"b2b-card\",[[1,\"b2b-card\",{\"disabled\":[4],\"href\":[1],\"target\":[1]},[[0,\"click\",\"onClick\"],[0,\"keydown\",\"onKeyDown\"]]]]],[\"b2b-flyout-menu\",[[1,\"b2b-flyout-menu\",{\"opened\":[1028]},[[0,\"keydown\",\"handleKeyDown\"],[0,\"b2b-option-selected\",\"handleSelected\"],[4,\"click\",\"handleClickOutside\"]]]]],[\"b2b-flyout-menu-option\",[[1,\"b2b-flyout-menu-option\",{\"option\":[1],\"disabled\":[516],\"separator\":[4]},[[0,\"keydown\",\"handleKeyDown\"]]]]],[\"b2b-grid\",[[1,\"b2b-grid\",{\"margin\":[2]}]]],[\"b2b-grid-col\",[[1,\"b2b-grid-col\",{\"span\":[514],\"textAlign\":[1,\"text-align\"]}]]],[\"b2b-grid-row\",[[1,\"b2b-grid-row\",{\"columnGap\":[2,\"column-gap\"],\"rowGap\":[2,\"row-gap\"],\"alignItems\":[1,\"align-items\"],\"justify\":[1]}]]],[\"b2b-icon\",[[1,\"b2b-icon\",{\"icon\":[1],\"color\":[1],\"size\":[1],\"clickable\":[4],\"focusable\":[4],\"pathData\":[32]},null,{\"icon\":[\"loadIconPathData\"]}]]],[\"b2b-icon-50\",[[1,\"b2b-icon-50\",{\"icon\":[1],\"color\":[1],\"clickable\":[4],\"focusable\":[4],\"pathData\":[32]},null,{\"icon\":[\"loadIconPathData\"]}]]],[\"b2b-label\",[[1,\"b2b-label\",{\"type\":[1]}]]],[\"b2b-paragraph\",[[1,\"b2b-paragraph\",{\"weight\":[1],\"size\":[1],\"align\":[1],\"margin\":[4],\"variant\":[1],\"display\":[1]}]]],[\"b2b-progress-bar\",[[1,\"b2b-progress-bar\",{\"progress\":[2],\"label\":[1],\"labelType\":[1,\"label-type\"],\"labelPosition\":[1,\"label-position\"]}]]],[\"b2b-scrollable-container\",[[1,\"b2b-scrollable-container\"]]],[\"b2b-shimmer\",[[1,\"b2b-shimmer\",{\"loading\":[4],\"width\":[2],\"height\":[2]}]]],[\"b2b-tab\",[[1,\"b2b-tab\",{\"selected\":[516],\"disabled\":[4],\"invalid\":[4]},null,{\"selected\":[\"propagateChange\"]}]]],[\"b2b-tab-panel\",[[1,\"b2b-tab-panel\"]]],[\"b2b-table\",[[1,\"b2b-table\",{\"size\":[1]},[[0,\"b2b-change\",\"onColumnSelected\"]]]]],[\"b2b-table-rowgroup\",[[1,\"b2b-table-rowgroup\",{\"type\":[1],\"size\":[1],\"accordion\":[516],\"selectable\":[4],\"fixed\":[4],\"opened\":[516],\"selectedValues\":[32]},[[0,\"b2b-open\",\"handleOpenChange\"],[0,\"b2b-row-selected\",\"handleSelectedChange\"]]]]],[\"b2b-toggle-button\",[[1,\"b2b-toggle-button\",{\"label\":[1],\"name\":[513],\"checked\":[1540],\"disabled\":[516],\"value\":[513]}]]],[\"b2b-toggle-chip\",[[1,\"b2b-toggle-chip\",{\"label\":[1],\"value\":[520],\"name\":[513],\"active\":[1028],\"disabled\":[516]}]]],[\"b2b-toggle-group\",[[1,\"b2b-toggle-group\",{\"name\":[1],\"disabled\":[516],\"currentValue\":[32]},[[0,\"b2b-change\",\"handleToggleButtonChange\"]],{\"disabled\":[\"disabledChanged\"]}]]],[\"b2b-toggle-switch\",[[1,\"b2b-toggle-switch\",{\"label\":[1],\"name\":[1],\"labelPosition\":[1,\"label-position\"],\"disabled\":[4],\"state\":[1028]}]]],[\"b2b-tooltip\",[[1,\"b2b-tooltip\",{\"position\":[1],\"content\":[1],\"trigger\":[1],\"opened\":[1540]},null,{\"opened\":[\"handleOpenedChange\"]}]]],[\"b2b-wizard\",[[1,\"b2b-wizard\",{\"activeStep\":[1,\"active-step\"],\"custom\":[4],\"checkIcon\":[4,\"check-icon\"]}]]],[\"b2b-wizard-icon\",[[1,\"b2b-wizard-icon\",{\"step\":[1],\"state\":[1],\"checkIcon\":[4,\"check-icon\"]}]]],[\"b2b-background-box\",[[1,\"b2b-background-box\",{\"maxWidth\":[4,\"max-width\"],\"noPadding\":[4,\"no-padding\"],\"borderTop\":[1,\"border-top\"],\"borderRight\":[1,\"border-right\"],\"borderBottom\":[1,\"border-bottom\"],\"borderLeft\":[1,\"border-left\"]}]]],[\"b2b-input-group_2\",[[1,\"b2b-input-list\",{\"label\":[1],\"required\":[516],\"placeholder\":[513],\"optionsList\":[16],\"value\":[1537],\"disabled\":[516],\"groupDisabled\":[4,\"group-disabled\"],\"hasOptionList\":[32],\"isElementFocused\":[32]},[[0,\"keydown\",\"handleKeyDown\"]],{\"optionsList\":[\"watchPropHandler\"]}],[1,\"b2b-input-group\",{\"invalid\":[4],\"disabled\":[4],\"error\":[1],\"hint\":[1]},null,{\"invalid\":[\"invalidChanged\"],\"disabled\":[\"disabledChanged\"]}]]],[\"b2b-chip-component_2\",[[0,\"b2b-multiselect-option\",{\"option\":[1],\"selected\":[1028],\"indeterminate\":[4]}],[1,\"b2b-chip-component\",{\"label\":[1],\"type\":[1],\"labelStyle\":[1,\"label-style\"],\"disabled\":[4],\"hasCloseButton\":[4,\"has-close-button\"],\"value\":[520],\"customMargin\":[1,\"custom-margin\"]}]]],[\"b2b-table-cell_2\",[[1,\"b2b-table-cell\",{\"textWrap\":[516,\"text-wrap\"],\"size\":[1],\"align\":[1],\"divider\":[4],\"color\":[1],\"colspan\":[2],\"totalCols\":[2,\"total-cols\"],\"useTextEllipsis\":[32]}],[1,\"b2b-table-header\",{\"divider\":[4],\"size\":[1],\"fixed\":[4],\"sortDirection\":[1537,\"sort-direction\"],\"sortId\":[1,\"sort-id\"],\"colspan\":[2],\"contentAlign\":[1,\"content-align\"],\"totalCols\":[2,\"total-cols\"],\"active\":[32],\"iconAlign\":[32]}]]],[\"b2b-rounded-icon\",[[1,\"b2b-rounded-icon\",{\"color\":[1],\"borderColor\":[1,\"border-color\"],\"contentColor\":[1,\"content-color\"]}]]],[\"b2b-separator\",[[1,\"b2b-separator\",{\"alignment\":[1]}]]],[\"b2b-checkbox\",[[1,\"b2b-checkbox\",{\"label\":[1],\"required\":[516],\"checked\":[1540],\"disabled\":[516],\"indeterminate\":[1028],\"error\":[1],\"hint\":[1],\"name\":[513],\"value\":[520],\"invalid\":[4],\"standalone\":[4],\"groupDisabled\":[4,\"group-disabled\"]}]]],[\"b2b-headline\",[[1,\"b2b-headline\",{\"size\":[1],\"align\":[1],\"noMargin\":[4,\"no-margin\"]}]]],[\"b2b-icon-100\",[[1,\"b2b-icon-100\",{\"icon\":[1],\"color\":[1],\"size\":[2],\"clickable\":[4],\"focusable\":[4],\"pathData\":[32]},null,{\"icon\":[\"loadIconPathData\"]}]]],[\"b2b-date-picker-days_5\",[[1,\"b2b-date-picker-header\",{\"selectedMonth\":[2,\"selected-month\"],\"selectedYear\":[2,\"selected-year\"],\"language\":[1]}],[1,\"b2b-date-picker-days\",{\"selectedMonth\":[2,\"selected-month\"],\"selectedYear\":[2,\"selected-year\"],\"selectedDay\":[2,\"selected-day\"],\"disablePastDates\":[4,\"disable-past-dates\"],\"disableFutureDates\":[4,\"disable-future-dates\"],\"disableWeekends\":[4,\"disable-weekends\"],\"disableDates\":[16],\"disableEvery\":[16],\"disableDatesUntil\":[16],\"disableDatesFrom\":[16],\"disabled\":[32]},[[0,\"keydown\",\"handleKeyDown\"]]],[1,\"b2b-date-picker-days-header\",{\"language\":[1]}],[1,\"b2b-date-picker-months\",{\"selectedMonth\":[2,\"selected-month\"],\"language\":[1]},[[0,\"keydown\",\"handleKeyDown\"]]],[1,\"b2b-date-picker-years\",{\"selectedYear\":[2,\"selected-year\"],\"yearsRange\":[32]},[[0,\"keydown\",\"handleKeyDown\"]]]]],[\"b2b-button_2\",[[1,\"b2b-button\",{\"variant\":[1],\"type\":[1],\"size\":[1],\"width\":[1],\"disabled\":[516],\"loading\":[4],\"active\":[516],\"href\":[1],\"target\":[1],\"download\":[1],\"groupDisabled\":[4,\"group-disabled\"],\"setFocus\":[64]},[[2,\"click\",\"handleHostClick\"]]],[1,\"b2b-spinner\",{\"size\":[1],\"color\":[1]}]]],[\"b2b-input-label\",[[1,\"b2b-input-label\",{\"required\":[4],\"disabled\":[4]}]]],[\"b2b-input_2\",[[0,\"b2b-input-list-option\",{\"option\":[1]},[[0,\"keydown\",\"handleKeyDown\"]]],[1,\"b2b-input\",{\"label\":[1],\"required\":[516],\"type\":[513],\"disabled\":[516],\"invalid\":[516],\"placeholder\":[513],\"value\":[1537],\"name\":[513],\"hint\":[1],\"error\":[1],\"focusOnLoad\":[4,\"focus-on-load\"],\"groupDisabled\":[4,\"group-disabled\"],\"inputTextAlign\":[1,\"input-text-align\"],\"hasFocus\":[32],\"hasTextPrefix\":[32],\"hasTextSuffix\":[32],\"setFocus\":[64],\"clearInput\":[64]}]]]]"), options);
8
+ return bootstrapLazy(JSON.parse("[[\"b2b-date-picker\",[[1,\"b2b-date-picker\",{\"disablePastDates\":[4,\"disable-past-dates\"],\"disableFutureDates\":[4,\"disable-future-dates\"],\"disableWeekends\":[4,\"disable-weekends\"],\"disableDates\":[1,\"disable-dates\"],\"label\":[1],\"required\":[516],\"preSelectedDate\":[1,\"pre-selected-date\"],\"showHint\":[4,\"show-hint\"],\"width\":[2],\"disableDays\":[1,\"disable-days\"],\"disableDatesUntil\":[1,\"disable-dates-until\"],\"disableDatesFrom\":[1,\"disable-dates-from\"],\"hint\":[1],\"placeholder\":[513],\"language\":[1],\"showDatePicker\":[32],\"focused\":[32],\"datePickerView\":[32],\"selectedMonth\":[32],\"selectedYear\":[32],\"selectedDay\":[32],\"selectedDate\":[32],\"userInputDate\":[32],\"invalid\":[32],\"errorMessage\":[32],\"datesToBeDisabled\":[32],\"normalizedDisableEvery\":[32],\"normalizedDisableDatesUntil\":[32],\"normalizedDisableDatesFrom\":[32]},[[0,\"b2b-date-picker-escape\",\"handleEscapePress\"],[0,\"b2b-date-selected\",\"handleDateSelection\"],[0,\"b2b-date-picker-previous-month\",\"getPreviousMonth\"],[0,\"b2b-date-picker-next-month\",\"getNextMonth\"],[0,\"b2b-date-picker-view-changed\",\"handleDatePickerViewChanged\"],[0,\"b2b-date-picker-month-selected\",\"handleMonthSelected\"],[0,\"b2b-date-picker-year-selected\",\"handleYearSelected\"]],{\"disableDates\":[\"handleDisableDatesChanged\"],\"disableDays\":[\"handleDisableDaysChanged\"],\"disableDatesUntil\":[\"handleDisableDatesUntilChanged\"],\"disableDatesFrom\":[\"handleDisableDatesFromChanged\"],\"disablePastDates\":[\"handleDisablePastDatesChanged\"],\"disableFutureDates\":[\"handleDisableFutureDatesChanged\"],\"disableWeekends\":[\"handleDisableWeekendsChanged\"]}]]],[\"b2b-search\",[[1,\"b2b-search\",{\"placeholder\":[1],\"optionsList\":[16],\"value\":[1537],\"disabled\":[516],\"closed\":[32]},[[0,\"keydown\",\"handleKeyDown\"]]]]],[\"b2b-multiselect-dropdown\",[[1,\"b2b-multiselect-dropdown\",{\"label\":[1],\"placeholder\":[513],\"selectedValues\":[1,\"selected-values\"],\"optionsList\":[1,\"options-list\"],\"searchPlaceholder\":[1,\"search-placeholder\"],\"selectAllLabel\":[1,\"select-all-label\"],\"maxOptionsVisible\":[2,\"max-options-visible\"],\"required\":[516],\"invalid\":[516],\"errorMessage\":[1,\"error-message\"],\"hint\":[1],\"disabled\":[516],\"groupDisabled\":[4,\"group-disabled\"],\"currentSelectedValues\":[32],\"currentList\":[32],\"value\":[32],\"isElementFocused\":[32],\"isOpen\":[32],\"normalizedOptions\":[32],\"normalizedSelected\":[32],\"hasOptionList\":[32]},null,{\"optionsList\":[\"watchPropHandler\"],\"selectedValues\":[\"handleSelectedValuesChangeFromOutside\"],\"currentSelectedValues\":[\"handleSelectedValuesChange\"]}]]],[\"b2b-table-row\",[[1,\"b2b-table-row\",{\"highlight\":[4],\"color\":[1],\"selectable\":[4],\"size\":[1],\"value\":[1],\"indeterminate\":[4],\"checked\":[1028],\"isAccordionValue\":[32],\"isOpen\":[32],\"toggleAccordion\":[64]},[[0,\"b2b-change\",\"toggleSelected\"]]]]],[\"b2b-custom-dropdown\",[[1,\"b2b-custom-dropdown\",{\"placeholder\":[513],\"disabled\":[516],\"dropshadow\":[516],\"border\":[516],\"autoDisableSearch\":[4,\"auto-disable-search\"],\"opened\":[1028],\"noResultsText\":[1,\"no-results-text\"],\"selectedOption\":[32],\"value\":[32],\"allOptions\":[32],\"hasVisibleOptions\":[32]},[[0,\"b2b-custom-dropdown-option-selected\",\"handleOptionSelected\"],[4,\"click\",\"handleClickOutside\"]]]]],[\"b2b-wizard-step\",[[1,\"b2b-wizard-step\",{\"state\":[1],\"step\":[1],\"checkIcon\":[4,\"check-icon\"]}]]],[\"b2b-modal\",[[1,\"b2b-modal\",{\"heading\":[1],\"opened\":[1540],\"backdropDismiss\":[4,\"backdrop-dismiss\"],\"escDismiss\":[4,\"esc-dismiss\"],\"variant\":[1],\"iconHover\":[32],\"isOpen\":[32]},[[0,\"keydown\",\"handleKeypress\"]],{\"opened\":[\"openedChanged\"]}]]],[\"b2b-pagination\",[[1,\"b2b-pagination\",{\"totalPages\":[2,\"total-pages\"],\"activePage\":[1538,\"active-page\"],\"ariaLabelNextPage\":[1,\"aria-label-next-page\"],\"ariaLabelPreviousPage\":[1,\"aria-label-previous-page\"]},null,{\"totalPages\":[\"onTotalPagesChange\"],\"activePage\":[\"onActivePageChange\"]}]]],[\"b2b-alert\",[[1,\"b2b-alert\",{\"type\":[1],\"size\":[1],\"opened\":[1028],\"hasCloseButton\":[4,\"has-close-button\"],\"customIcon\":[4,\"custom-icon\"]},null,{\"opened\":[\"openedChanged\"]}]]],[\"b2b-checkbox-group\",[[1,\"b2b-checkbox-group\",{\"label\":[1],\"required\":[4],\"disabled\":[4],\"invalid\":[4],\"alignment\":[1],\"hint\":[1],\"error\":[1]},[[0,\"b2b-change\",\"handleCheckboxChange\"]],{\"disabled\":[\"disabledChanged\"],\"invalid\":[\"invalidChanged\"]}]]],[\"b2b-custom-dropdown-option\",[[1,\"b2b-custom-dropdown-option\",{\"option\":[1],\"disabled\":[516],\"separator\":[4],\"selected\":[516],\"hoverIcon\":[520,\"hover-icon\"],\"hoverIconColor\":[513,\"hover-icon-color\"],\"selectedIcon\":[520,\"selected-icon\"],\"selectedIconColor\":[513,\"selected-icon-color\"],\"isHovered\":[32]},[[1,\"mouseenter\",\"handleMouseEnter\"],[1,\"mouseleave\",\"handleMouseLeave\"]]]]],[\"b2b-dropdown\",[[1,\"b2b-dropdown\",{\"label\":[1],\"required\":[516],\"name\":[513],\"placeholder\":[1],\"placeholderValue\":[1,\"placeholder-value\"],\"disabled\":[516],\"invalid\":[516],\"hint\":[1],\"error\":[1],\"groupDisabled\":[4,\"group-disabled\"],\"isOpen\":[32],\"focused\":[32],\"selectedValue\":[32],\"selectedText\":[32],\"options\":[32],\"clearSelection\":[64]},null,{\"isOpen\":[\"watchDropdownState\"]}]]],[\"b2b-radio-button\",[[1,\"b2b-radio-button\",{\"label\":[1],\"required\":[516],\"name\":[513],\"checked\":[1540],\"disabled\":[516],\"invalid\":[4],\"value\":[513],\"hint\":[1],\"error\":[1]}]]],[\"b2b-radio-group\",[[1,\"b2b-radio-group\",{\"name\":[1],\"label\":[1],\"required\":[4],\"alignment\":[1],\"disabled\":[516],\"invalid\":[516],\"hint\":[1],\"error\":[1],\"currentValue\":[32]},[[0,\"b2b-change\",\"handleRadioButtonChange\"]],{\"invalid\":[\"invalidChanged\"],\"disabled\":[\"disabledChanged\"]}]]],[\"b2b-required-separator\",[[1,\"b2b-required-separator\",{\"label\":[1]}]]],[\"b2b-snackbar\",[[1,\"b2b-snackbar\",{\"description\":[1],\"type\":[1],\"opened\":[1540],\"timed\":[4],\"duration\":[2],\"hasAction\":[4,\"has-action\"],\"actionLabel\":[1,\"action-label\"],\"width\":[1]},null,{\"opened\":[\"onVisibleChange\"]}]]],[\"b2b-tab-group\",[[1,\"b2b-tab-group\",{\"useRouter\":[4,\"use-router\"]},[[0,\"click\",\"handleClick\"],[0,\"keydown\",\"handleKeydown\"]]]]],[\"b2b-textarea\",[[1,\"b2b-textarea\",{\"label\":[1],\"required\":[516],\"placeholder\":[513],\"disabled\":[516],\"invalid\":[516],\"focusOnLoad\":[516,\"focus-on-load\"],\"resize\":[513],\"hint\":[1],\"error\":[1],\"value\":[1537],\"name\":[513],\"maxLength\":[514,\"max-length\"],\"height\":[1]}]]],[\"b2b-anchor\",[[1,\"b2b-anchor\",{\"href\":[1],\"download\":[1],\"target\":[1],\"size\":[1],\"hoverColor\":[1,\"hover-color\"],\"underlineText\":[4,\"underline-text\"]}]]],[\"b2b-breadcrumb\",[[1,\"b2b-breadcrumb\",{\"paddingTop\":[2,\"padding-top\"],\"paddingBottom\":[2,\"padding-bottom\"]},[[0,\"b2b-change\",\"onSelectedChange\"]]]]],[\"b2b-breadcrumb-item\",[[1,\"b2b-breadcrumb-item\",{\"href\":[1],\"value\":[8],\"active\":[1028]}]]],[\"b2b-card\",[[1,\"b2b-card\",{\"disabled\":[4],\"href\":[1],\"target\":[1]},[[0,\"click\",\"onClick\"],[0,\"keydown\",\"onKeyDown\"]]]]],[\"b2b-flyout-menu\",[[1,\"b2b-flyout-menu\",{\"opened\":[1028]},[[0,\"keydown\",\"handleKeyDown\"],[0,\"b2b-option-selected\",\"handleSelected\"],[4,\"click\",\"handleClickOutside\"]]]]],[\"b2b-flyout-menu-option\",[[1,\"b2b-flyout-menu-option\",{\"option\":[1],\"disabled\":[516],\"separator\":[4]},[[0,\"keydown\",\"handleKeyDown\"]]]]],[\"b2b-grid\",[[1,\"b2b-grid\",{\"margin\":[2]}]]],[\"b2b-grid-col\",[[1,\"b2b-grid-col\",{\"span\":[514],\"textAlign\":[1,\"text-align\"]}]]],[\"b2b-grid-row\",[[1,\"b2b-grid-row\",{\"columnGap\":[2,\"column-gap\"],\"rowGap\":[2,\"row-gap\"],\"alignItems\":[1,\"align-items\"],\"justify\":[1]}]]],[\"b2b-icon\",[[1,\"b2b-icon\",{\"icon\":[1],\"color\":[1],\"size\":[1],\"clickable\":[4],\"focusable\":[4],\"pathData\":[32]},null,{\"icon\":[\"loadIconPathData\"]}]]],[\"b2b-icon-50\",[[1,\"b2b-icon-50\",{\"icon\":[1],\"color\":[1],\"clickable\":[4],\"focusable\":[4],\"pathData\":[32]},null,{\"icon\":[\"loadIconPathData\"]}]]],[\"b2b-label\",[[1,\"b2b-label\",{\"type\":[1]}]]],[\"b2b-paragraph\",[[1,\"b2b-paragraph\",{\"weight\":[1],\"size\":[1],\"align\":[1],\"margin\":[4],\"variant\":[1],\"display\":[1]}]]],[\"b2b-progress-bar\",[[1,\"b2b-progress-bar\",{\"progress\":[2],\"label\":[1],\"labelType\":[1,\"label-type\"],\"labelPosition\":[1,\"label-position\"]}]]],[\"b2b-scrollable-container\",[[1,\"b2b-scrollable-container\"]]],[\"b2b-shimmer\",[[1,\"b2b-shimmer\",{\"loading\":[4],\"width\":[2],\"height\":[2]}]]],[\"b2b-tab\",[[1,\"b2b-tab\",{\"selected\":[516],\"disabled\":[4],\"invalid\":[4]},null,{\"selected\":[\"propagateChange\"]}]]],[\"b2b-tab-panel\",[[1,\"b2b-tab-panel\"]]],[\"b2b-table\",[[1,\"b2b-table\",{\"size\":[1]},[[0,\"b2b-change\",\"onColumnSelected\"]]]]],[\"b2b-table-rowgroup\",[[1,\"b2b-table-rowgroup\",{\"type\":[1],\"size\":[1],\"accordion\":[516],\"selectable\":[4],\"fixed\":[4],\"opened\":[516],\"selectedValues\":[32]},[[0,\"b2b-open\",\"handleOpenChange\"],[0,\"b2b-row-selected\",\"handleSelectedChange\"]]]]],[\"b2b-toggle-button\",[[1,\"b2b-toggle-button\",{\"label\":[1],\"name\":[513],\"checked\":[1540],\"disabled\":[516],\"value\":[513]}]]],[\"b2b-toggle-chip\",[[1,\"b2b-toggle-chip\",{\"label\":[1],\"value\":[520],\"name\":[513],\"active\":[1028],\"disabled\":[516]}]]],[\"b2b-toggle-group\",[[1,\"b2b-toggle-group\",{\"name\":[1],\"disabled\":[516],\"currentValue\":[32]},[[0,\"b2b-change\",\"handleToggleButtonChange\"]],{\"disabled\":[\"disabledChanged\"]}]]],[\"b2b-toggle-switch\",[[1,\"b2b-toggle-switch\",{\"label\":[1],\"name\":[1],\"labelPosition\":[1,\"label-position\"],\"disabled\":[4],\"state\":[1028]}]]],[\"b2b-tooltip\",[[1,\"b2b-tooltip\",{\"position\":[1],\"content\":[1],\"trigger\":[1],\"opened\":[1540]},null,{\"opened\":[\"handleOpenedChange\"]}]]],[\"b2b-wizard\",[[1,\"b2b-wizard\",{\"activeStep\":[1,\"active-step\"],\"custom\":[4],\"checkIcon\":[4,\"check-icon\"]}]]],[\"b2b-wizard-icon\",[[1,\"b2b-wizard-icon\",{\"step\":[1],\"state\":[1],\"checkIcon\":[4,\"check-icon\"]}]]],[\"b2b-background-box\",[[1,\"b2b-background-box\",{\"maxWidth\":[4,\"max-width\"],\"noPadding\":[4,\"no-padding\"],\"borderTop\":[1,\"border-top\"],\"borderRight\":[1,\"border-right\"],\"borderBottom\":[1,\"border-bottom\"],\"borderLeft\":[1,\"border-left\"]}]]],[\"b2b-input-group_2\",[[1,\"b2b-input-list\",{\"label\":[1],\"required\":[516],\"placeholder\":[513],\"optionsList\":[16],\"value\":[1537],\"disabled\":[516],\"groupDisabled\":[4,\"group-disabled\"],\"hasOptionList\":[32],\"isElementFocused\":[32]},[[0,\"keydown\",\"handleKeyDown\"]],{\"optionsList\":[\"watchPropHandler\"]}],[1,\"b2b-input-group\",{\"invalid\":[4],\"disabled\":[4],\"error\":[1],\"hint\":[1]},null,{\"invalid\":[\"invalidChanged\"],\"disabled\":[\"disabledChanged\"]}]]],[\"b2b-chip-component_2\",[[0,\"b2b-multiselect-option\",{\"option\":[1],\"label\":[1],\"selected\":[1028],\"indeterminate\":[4]}],[1,\"b2b-chip-component\",{\"label\":[1],\"type\":[1],\"labelStyle\":[1,\"label-style\"],\"disabled\":[4],\"hasCloseButton\":[4,\"has-close-button\"],\"value\":[520],\"customMargin\":[1,\"custom-margin\"]}]]],[\"b2b-table-cell_2\",[[1,\"b2b-table-cell\",{\"textWrap\":[516,\"text-wrap\"],\"size\":[1],\"align\":[1],\"divider\":[4],\"color\":[1],\"colspan\":[2],\"totalCols\":[2,\"total-cols\"],\"useTextEllipsis\":[32]}],[1,\"b2b-table-header\",{\"divider\":[4],\"size\":[1],\"fixed\":[4],\"sortDirection\":[1537,\"sort-direction\"],\"sortId\":[1,\"sort-id\"],\"colspan\":[2],\"contentAlign\":[1,\"content-align\"],\"totalCols\":[2,\"total-cols\"],\"active\":[32],\"iconAlign\":[32]}]]],[\"b2b-rounded-icon\",[[1,\"b2b-rounded-icon\",{\"color\":[1],\"borderColor\":[1,\"border-color\"],\"contentColor\":[1,\"content-color\"]}]]],[\"b2b-separator\",[[1,\"b2b-separator\",{\"alignment\":[1]}]]],[\"b2b-checkbox\",[[1,\"b2b-checkbox\",{\"label\":[1],\"required\":[516],\"checked\":[1540],\"disabled\":[516],\"indeterminate\":[1028],\"error\":[1],\"hint\":[1],\"name\":[513],\"value\":[520],\"invalid\":[4],\"standalone\":[4],\"groupDisabled\":[4,\"group-disabled\"]}]]],[\"b2b-headline\",[[1,\"b2b-headline\",{\"size\":[1],\"align\":[1],\"noMargin\":[4,\"no-margin\"]}]]],[\"b2b-icon-100\",[[1,\"b2b-icon-100\",{\"icon\":[1],\"color\":[1],\"size\":[2],\"clickable\":[4],\"focusable\":[4],\"pathData\":[32]},null,{\"icon\":[\"loadIconPathData\"]}]]],[\"b2b-date-picker-days_5\",[[1,\"b2b-date-picker-header\",{\"selectedMonth\":[2,\"selected-month\"],\"selectedYear\":[2,\"selected-year\"],\"language\":[1]}],[1,\"b2b-date-picker-days\",{\"selectedMonth\":[2,\"selected-month\"],\"selectedYear\":[2,\"selected-year\"],\"selectedDay\":[2,\"selected-day\"],\"disablePastDates\":[4,\"disable-past-dates\"],\"disableFutureDates\":[4,\"disable-future-dates\"],\"disableWeekends\":[4,\"disable-weekends\"],\"disableDates\":[16],\"disableEvery\":[16],\"disableDatesUntil\":[16],\"disableDatesFrom\":[16],\"disabled\":[32]},[[0,\"keydown\",\"handleKeyDown\"]]],[1,\"b2b-date-picker-days-header\",{\"language\":[1]}],[1,\"b2b-date-picker-months\",{\"selectedMonth\":[2,\"selected-month\"],\"language\":[1]},[[0,\"keydown\",\"handleKeyDown\"]]],[1,\"b2b-date-picker-years\",{\"selectedYear\":[2,\"selected-year\"],\"yearsRange\":[32]},[[0,\"keydown\",\"handleKeyDown\"]]]]],[\"b2b-button_2\",[[1,\"b2b-button\",{\"variant\":[1],\"type\":[1],\"size\":[1],\"width\":[1],\"disabled\":[516],\"loading\":[4],\"active\":[516],\"href\":[1],\"target\":[1],\"download\":[1],\"groupDisabled\":[4,\"group-disabled\"],\"setFocus\":[64]},[[2,\"click\",\"handleHostClick\"]]],[1,\"b2b-spinner\",{\"size\":[1],\"color\":[1]}]]],[\"b2b-input-label\",[[1,\"b2b-input-label\",{\"required\":[4],\"disabled\":[4]}]]],[\"b2b-input_2\",[[0,\"b2b-input-list-option\",{\"option\":[1]},[[0,\"keydown\",\"handleKeyDown\"]]],[1,\"b2b-input\",{\"label\":[1],\"required\":[516],\"type\":[513],\"disabled\":[516],\"invalid\":[516],\"placeholder\":[513],\"value\":[1537],\"name\":[513],\"hint\":[1],\"error\":[1],\"focusOnLoad\":[4,\"focus-on-load\"],\"groupDisabled\":[4,\"group-disabled\"],\"inputTextAlign\":[1,\"input-text-align\"],\"hasFocus\":[32],\"hasTextPrefix\":[32],\"hasTextSuffix\":[32],\"setFocus\":[64],\"clearInput\":[64]}]]]]"), options);
9
9
  };
10
10
 
11
11
  export { defineCustomElements };
@@ -5,7 +5,7 @@ const requests = new Map();
5
5
  const fetchIcon = (icon) => {
6
6
  // see if we already have a request for this url
7
7
  let req = requests.get(icon);
8
- if (req === undefined || null) {
8
+ if (req == null) {
9
9
  if (typeof fetch !== 'undefined' && typeof document !== 'undefined') {
10
10
  // we don't already have a request
11
11
  req = fetch(icon).then(rsp => {
@@ -1,5 +1,6 @@
1
- import { OptionSelectedEventDetail } from '../../utils/interfaces/form.interface';
2
- export declare class B2bCustomDropdownComponent {
1
+ import type { ComponentInterface } from '../../stencil-public-runtime';
2
+ import type { OptionSelectedEventDetail } from '../../utils/interfaces/form.interface';
3
+ export declare class B2bCustomDropdownComponent implements ComponentInterface {
3
4
  /** The placeholder shown in the input field. */
4
5
  placeholder: string;
5
6
  /** Whether the dropdown is disabled. Default is false. */
@@ -12,10 +13,13 @@ export declare class B2bCustomDropdownComponent {
12
13
  autoDisableSearch: boolean;
13
14
  /** Internal: if the dropdown is opened */
14
15
  opened: boolean;
16
+ /** The text to show, when no results have been found. */
17
+ noResultsText: string;
15
18
  /** The currently selected option */
16
19
  selectedOption: string | null;
17
20
  value: string;
18
21
  allOptions: HTMLB2bCustomDropdownOptionElement[];
22
+ hasVisibleOptions: boolean;
19
23
  handleOptionSelected(event: CustomEvent<OptionSelectedEventDetail>): void;
20
24
  hostElement: HTMLB2bCustomDropdownElement;
21
25
  private triggerEl;
@@ -1,17 +1,20 @@
1
- import { EventEmitter } from '../../stencil-public-runtime';
2
- import { MonthSelectedEventDetail } from '../../utils/interfaces/form.interface';
3
- export declare class B2bDatePickerMonths {
1
+ import type { ComponentInterface, EventEmitter } from '../../stencil-public-runtime';
2
+ import type { EscapePressed, MonthSelectedEventDetail } from '../../utils/interfaces/form.interface';
3
+ export declare class B2bDatePickerMonths implements ComponentInterface {
4
4
  host: HTMLB2bDatePickerMonthsElement;
5
5
  /** Internal selected month */
6
6
  selectedMonth: number;
7
7
  /** Internal The language for month and the weekdays will be decided based on the given input. By default, this will be de which is german */
8
8
  language: 'de' | 'en';
9
- /** Event emitted on selecting month**/
9
+ /** Event emitted on selecting month */
10
10
  b2bDatePickerMonthSelected: EventEmitter<MonthSelectedEventDetail>;
11
+ /** Event emitted on escape press */
12
+ b2bDatePickerEscape: EventEmitter<EscapePressed>;
11
13
  handleKeyDown(event: KeyboardEvent): void;
12
14
  private getAllMonths;
13
15
  private getCurrentMonth;
14
16
  private focusCurrentMonth;
15
17
  private renderDatePickerMonths;
18
+ componentDidRender(): void;
16
19
  render(): any;
17
20
  }
@@ -1,14 +1,15 @@
1
- import { EventEmitter } from '../../stencil-public-runtime';
2
- import { YearSelectedEventDetail } from '../../utils/interfaces/form.interface';
3
- export declare class B2bDatePickerYears {
1
+ import type { ComponentInterface, EventEmitter } from '../../stencil-public-runtime';
2
+ import type { EscapePressed, YearSelectedEventDetail } from '../../utils/interfaces/form.interface';
3
+ export declare class B2bDatePickerYears implements ComponentInterface {
4
4
  host: HTMLB2bDatePickerYearsElement;
5
5
  /** Internal selected year */
6
6
  selectedYear: number;
7
7
  private yearsRange;
8
- /** Event emitted on selecting year**/
8
+ /** Event emitted on selecting year */
9
9
  b2bDatePickerYearSelected: EventEmitter<YearSelectedEventDetail>;
10
+ /** Event emitted on escape press */
11
+ b2bDatePickerEscape: EventEmitter<EscapePressed>;
10
12
  handleKeyDown(event: KeyboardEvent): void;
11
- componentWillLoad(): void;
12
13
  componentDidLoad(): void;
13
14
  private getAllYears;
14
15
  private getCurrentYear;
@@ -1,6 +1,6 @@
1
- import { EventEmitter } from '../../stencil-public-runtime';
2
- import { DateClear, DatePickerEventDetail, DatePickerViewChangedEventDetail, MonthSelectedEventDetail, YearSelectedEventDetail } from '../../utils/interfaces/form.interface';
3
- export declare class B2bDatePicker {
1
+ import type { ComponentInterface, EventEmitter } from '../../stencil-public-runtime';
2
+ import type { DateClear, DatePickerEventDetail, DatePickerViewChangedEventDetail, MonthSelectedEventDetail, YearSelectedEventDetail } from '../../utils/interfaces/form.interface';
3
+ export declare class B2bDatePicker implements ComponentInterface {
4
4
  host: HTMLB2bDatePickerElement;
5
5
  /** Whether the previous dates from the current date are disabled. By default, this is true. */
6
6
  disablePastDates: boolean;
@@ -57,7 +57,7 @@ export declare class B2bDatePicker {
57
57
  private isWithWithinLimit;
58
58
  private normalizeDisableDatesUntilAndFrom;
59
59
  componentWillLoad(): void;
60
- handleEscapePress(): void;
60
+ handleEscapePress(event: CustomEvent): void;
61
61
  handleDateSelection(event: CustomEvent): void;
62
62
  getPreviousMonth(): void;
63
63
  handleDisableDatesChanged(newVal: string | string[]): void;
@@ -19,6 +19,8 @@ export declare class DropdownComponent {
19
19
  hint?: string;
20
20
  /** An optional error message for the dropdown. This will only appear if invalid is set to true. */
21
21
  error?: string;
22
+ /** @internal Whether the parent input group is disabled. Per default, it is false. */
23
+ groupDisabled: boolean;
22
24
  /** Emits the option whenever a new option is chosen. */
23
25
  b2bChange: EventEmitter<string>;
24
26
  /** Emits whenever the dropdown receives focus. */
@@ -3,5 +3,6 @@ export declare const story010Default: any;
3
3
  export declare const story020Disabled: any;
4
4
  export declare const story030Error: any;
5
5
  export declare const story040Required: any;
6
+ export declare const story050Selected: any;
6
7
  declare const _default: Meta;
7
8
  export default _default;
@@ -1,2 +1,2 @@
1
1
  export declare const iconTypes: readonly ["b2b_icon-360-degree", "b2b_icon-advice", "b2b_icon-allergen-sulfur-dioxide-sulfite", "b2b_icon-almond", "b2b_icon-archive", "b2b_icon-armchair", "b2b_icon-arrow-down-50", "b2b_icon-arrow-down", "b2b_icon-arrow-graph", "b2b_icon-arrow-left-50", "b2b_icon-arrow-left", "b2b_icon-arrow-right-50", "b2b_icon-arrow-right", "b2b_icon-arrow-up-50", "b2b_icon-arrow-up", "b2b_icon-assembly", "b2b_icon-assortment", "b2b_icon-attachment", "b2b_icon-augmented-reality", "b2b_icon-autonomous-team", "b2b_icon-bank-details", "b2b_icon-bar-graph-ascending", "b2b_icon-bar-graph-axis", "b2b_icon-barley", "b2b_icon-basket-50", "b2b_icon-basket-sale", "b2b_icon-basket", "b2b_icon-basketball", "b2b_icon-bikini", "b2b_icon-blogs", "b2b_icon-brandshop", "b2b_icon-brazil-nut", "b2b_icon-browser-click", "b2b_icon-browser-content", "b2b_icon-browser-psm", "b2b_icon-burger", "b2b_icon-bus", "b2b_icon-callback", "b2b_icon-camera", "b2b_icon-cashback", "b2b_icon-cashew-nut", "b2b_icon-catalogue", "b2b_icon-categories", "b2b_icon-celery", "b2b_icon-certificate", "b2b_icon-chair", "b2b_icon-chat", "b2b_icon-chatbot", "b2b_icon-check-50", "b2b_icon-check-bold", "b2b_icon-check", "b2b_icon-chicken", "b2b_icon-city", "b2b_icon-clear", "b2b_icon-close-50", "b2b_icon-close-bold", "b2b_icon-close", "b2b_icon-code-management", "b2b_icon-contact-mail", "b2b_icon-copy", "b2b_icon-cow", "b2b_icon-crab", "b2b_icon-critique", "b2b_icon-curtain", "b2b_icon-cut-out", "b2b_icon-dashboard", "b2b_icon-deer", "b2b_icon-delete-50", "b2b_icon-delete", "b2b_icon-delivery-24h", "b2b_icon-delivery-desired-date-selection", "b2b_icon-delivery-desired-date", "b2b_icon-delivery-express", "b2b_icon-delivery-flat", "b2b_icon-delivery-on-hangers", "b2b_icon-delivery-preferred-place", "b2b_icon-desktop-phone-ads-click", "b2b_icon-desktop-phone-ads", "b2b_icon-desktop-phone", "b2b_icon-desktop", "b2b_icon-devices-monitor-laptop-tablet", "b2b_icon-dish-feature-lactose-free", "b2b_icon-dislike", "b2b_icon-disposal", "b2b_icon-document-sign", "b2b_icon-downloads", "b2b_icon-dress", "b2b_icon-dungarees", "b2b_icon-duplicate", "b2b_icon-duration", "b2b_icon-e-invoice", "b2b_icon-edit-pad", "b2b_icon-edit", "b2b_icon-egg", "b2b_icon-ellipsis", "b2b_icon-email-verification-confirmed-safe", "b2b_icon-email-verification-confirmed", "b2b_icon-email-verification-sent-safe", "b2b_icon-email-verification-sent", "b2b_icon-empty-hint", "b2b_icon-end-to-end", "b2b_icon-error-article-image", "b2b_icon-error-hint-50", "b2b_icon-error-hint", "b2b_icon-error", "b2b_icon-euro", "b2b_icon-event", "b2b_icon-events", "b2b_icon-expand", "b2b_icon-faq", "b2b_icon-feedback", "b2b_icon-filter-50", "b2b_icon-filter", "b2b_icon-fish", "b2b_icon-fitness", "b2b_icon-flag-chequered", "b2b_icon-flexible-work", "b2b_icon-flip", "b2b_icon-food-processor", "b2b_icon-fullscreen", "b2b_icon-gallery-view", "b2b_icon-gamepad", "b2b_icon-garlic", "b2b_icon-gender-intersex", "b2b_icon-globe", "b2b_icon-gluten", "b2b_icon-glutenfree", "b2b_icon-handshake", "b2b_icon-hashtag", "b2b_icon-hazelnut", "b2b_icon-hide", "b2b_icon-high-heels", "b2b_icon-home", "b2b_icon-info-50", "b2b_icon-info-hint-50", "b2b_icon-info-small", "b2b_icon-info", "b2b_icon-inplace-zoom-reverse", "b2b_icon-inplace-zoom", "b2b_icon-insurance", "b2b_icon-kamut", "b2b_icon-laptop-os", "b2b_icon-laptop", "b2b_icon-leaving-page-50", "b2b_icon-leaving-page", "b2b_icon-light-bulb", "b2b_icon-like-fingers", "b2b_icon-like-product", "b2b_icon-like", "b2b_icon-line-graph", "b2b_icon-list-view", "b2b_icon-location", "b2b_icon-lupine", "b2b_icon-macadamia", "b2b_icon-material-samples", "b2b_icon-measurement", "b2b_icon-megaphone", "b2b_icon-menu", "b2b_icon-mic", "b2b_icon-milk", "b2b_icon-minus-50", "b2b_icon-minus", "b2b_icon-module-operations", "b2b_icon-money-coins", "b2b_icon-money-document", "b2b_icon-money-plus", "b2b_icon-money-stack", "b2b_icon-money", "b2b_icon-move", "b2b_icon-mustard", "b2b_icon-nav", "b2b_icon-new", "b2b_icon-newsletter-sign-up", "b2b_icon-notification", "b2b_icon-nuts", "b2b_icon-oat", "b2b_icon-order-cancelled", "b2b_icon-order-delivered", "b2b_icon-order-form", "b2b_icon-order-management", "b2b_icon-order-misdirected", "b2b_icon-order-on-road", "b2b_icon-order-packed", "b2b_icon-order-payment", "b2b_icon-order-received", "b2b_icon-order-return", "b2b_icon-order-shipped", "b2b_icon-order-state-unknown", "b2b_icon-order-stored", "b2b_icon-order", "b2b_icon-otto-app", "b2b_icon-otto-campus", "b2b_icon-otto-company", "b2b_icon-otto-laptop", "b2b_icon-otto-logo", "b2b_icon-otto-up-points", "b2b_icon-otto-up", "b2b_icon-paper-plane", "b2b_icon-pause", "b2b_icon-payment-credit-card", "b2b_icon-payment-invoice", "b2b_icon-payment-pause", "b2b_icon-payment-plan-protection", "b2b_icon-payment-plan", "b2b_icon-pdf", "b2b_icon-peanut", "b2b_icon-pecan-nut", "b2b_icon-pending", "b2b_icon-person-access", "b2b_icon-person-callcenter", "b2b_icon-person-check", "b2b_icon-person-colleagues", "b2b_icon-person-community", "b2b_icon-person-development", "b2b_icon-person-female", "b2b_icon-person-info", "b2b_icon-person-male", "b2b_icon-person-rating", "b2b_icon-person-support", "b2b_icon-person-switch", "b2b_icon-person-workshop", "b2b_icon-person", "b2b_icon-phone-permission", "b2b_icon-phone", "b2b_icon-pig", "b2b_icon-pin-50", "b2b_icon-pin", "b2b_icon-pinch-gesture", "b2b_icon-pinch", "b2b_icon-pistachio", "b2b_icon-plant", "b2b_icon-play-1", "b2b_icon-play", "b2b_icon-plus-50", "b2b_icon-plus", "b2b_icon-price-alert", "b2b_icon-price-tag", "b2b_icon-print", "b2b_icon-puzzle", "b2b_icon-qr-code", "b2b_icon-question-50", "b2b_icon-question-hint-50", "b2b_icon-question-hint", "b2b_icon-question", "b2b_icon-rating-empty-50", "b2b_icon-rating-empty", "b2b_icon-rating-filled-50", "b2b_icon-rating-filled", "b2b_icon-rating-half-50", "b2b_icon-rating-half", "b2b_icon-rating-order", "b2b_icon-rating-payment", "b2b_icon-refresh-50", "b2b_icon-remote-work", "b2b_icon-repair", "b2b_icon-reply-50", "b2b_icon-reply", "b2b_icon-retirement-provision", "b2b_icon-rocket", "b2b_icon-rye", "b2b_icon-sabbatical", "b2b_icon-sale", "b2b_icon-save", "b2b_icon-sea", "b2b_icon-search-enter", "b2b_icon-search", "b2b_icon-seo", "b2b_icon-service-info", "b2b_icon-sesame", "b2b_icon-settings", "b2b_icon-share-ios", "b2b_icon-share", "b2b_icon-sheep", "b2b_icon-shell", "b2b_icon-shirt", "b2b_icon-shopping-cart-euro", "b2b_icon-shopping-cart", "b2b_icon-show", "b2b_icon-smiley-angry", "b2b_icon-smiley-happy", "b2b_icon-smiley-negative", "b2b_icon-smiley-neutral", "b2b_icon-smiley-positive-50", "b2b_icon-smiley-positive", "b2b_icon-sms-info", "b2b_icon-sneaker", "b2b_icon-sort-50", "b2b_icon-sort-ascending-50", "b2b_icon-sort-ascending", "b2b_icon-sort-descending-50", "b2b_icon-sort-descending", "b2b_icon-sort", "b2b_icon-soy", "b2b_icon-spelt", "b2b_icon-stationary", "b2b_icon-studies", "b2b_icon-success-hint-50", "b2b_icon-success", "b2b_icon-sustainable-delivery", "b2b_icon-sustainable-energy-efficient", "b2b_icon-sustainable-production", "b2b_icon-sustainable-recycling", "b2b_icon-sustainable-resource", "b2b_icon-swipe-gesture", "b2b_icon-sync-device", "b2b_icon-t-shirt", "b2b_icon-tablet", "b2b_icon-tableware", "b2b_icon-target-group", "b2b_icon-teddy", "b2b_icon-test-result", "b2b_icon-town", "b2b_icon-trash", "b2b_icon-trend-down-50", "b2b_icon-trend-down", "b2b_icon-trend-left", "b2b_icon-trend-right", "b2b_icon-trend-up-50", "b2b_icon-trend-up", "b2b_icon-trousers", "b2b_icon-trusted", "b2b_icon-unpin", "b2b_icon-upload", "b2b_icon-user-management", "b2b_icon-vacation", "b2b_icon-variant-content", "b2b_icon-vegan", "b2b_icon-vegetarian", "b2b_icon-viewtoggle-tiles", "b2b_icon-village", "b2b_icon-volume-off", "b2b_icon-volume-on", "b2b_icon-voucher", "b2b_icon-walnut", "b2b_icon-warning-hint-50", "b2b_icon-warning-hint", "b2b_icon-warning", "b2b_icon-warranty", "b2b_icon-washing-machine", "b2b_icon-whatsapp", "b2b_icon-wheat", "b2b_icon-wifi", "b2b_icon-wishlist-50", "b2b_icon-wishlist-active-50", "b2b_icon-wishlist-active", "b2b_icon-wishlist", "b2b_icon-work-life", "b2b_icon-workshop", "b2b_icon-zoom-in", "b2b_icon-zoom-out", "b2b_logo-carrier-dhl", "b2b_logo-carrier-gls", "b2b_logo-carrier-hermes", "b2b_logo-carrier-ups"];
2
- export type IconName = typeof iconTypes[number];
2
+ export type IconName = (typeof iconTypes)[number];