@dso-toolkit/core 47.0.1 → 48.0.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 (215) hide show
  1. package/dist/cjs/dso-accordion-section.cjs.entry.js +1447 -58
  2. package/dist/cjs/dso-autosuggest.cjs.entry.js +57 -47
  3. package/dist/cjs/dso-date-picker.cjs.entry.js +3 -2
  4. package/dist/cjs/dso-dropdown-menu.cjs.entry.js +2 -2
  5. package/dist/cjs/dso-helpcenter-panel.cjs.entry.js +1 -1
  6. package/dist/cjs/dso-image-overlay.cjs.entry.js +1 -1
  7. package/dist/cjs/dso-info_2.cjs.entry.js +2 -2
  8. package/dist/cjs/dso-label.cjs.entry.js +2 -2
  9. package/dist/cjs/dso-modal.cjs.entry.js +4 -7
  10. package/dist/cjs/dso-ozon-content.cjs.entry.js +3 -3
  11. package/dist/cjs/dso-table.cjs.entry.js +3 -5
  12. package/dist/cjs/dso-toggletip.cjs.entry.js +1 -1
  13. package/dist/cjs/dso-toolkit.cjs.js +2 -2
  14. package/dist/cjs/dso-tooltip.cjs.entry.js +13 -21
  15. package/dist/cjs/dso-viewer-grid.cjs.entry.js +8 -3
  16. package/dist/cjs/{focus-trap.esm-d83fd673.js → focus-trap.esm-c501d382.js} +82 -155
  17. package/dist/cjs/loader.cjs.js +2 -2
  18. package/dist/collection/collection-manifest.json +8 -8
  19. package/dist/collection/components/accordion/components/accordion-section.css +27 -4
  20. package/dist/collection/components/accordion/components/accordion-section.interfaces.js +6 -0
  21. package/dist/collection/components/accordion/components/accordion-section.js +91 -59
  22. package/dist/collection/components/accordion/components/handles/element.handle.js +7 -0
  23. package/dist/collection/components/accordion/components/handles/heading.handle.js +14 -0
  24. package/dist/collection/components/accordion/components/handles/icon.handle.js +13 -0
  25. package/dist/collection/components/accordion/components/handles/index.js +4 -0
  26. package/dist/collection/components/accordion/components/handles/state-icon.handle.js +15 -0
  27. package/dist/collection/components/autosuggest/autosuggest.interfaces.js +1 -0
  28. package/dist/collection/components/autosuggest/autosuggest.js +61 -49
  29. package/dist/collection/components/banner/banner.js +1 -1
  30. package/dist/collection/components/card-container/card-container.js +1 -1
  31. package/dist/collection/components/date-picker/date-picker.interfaces.js +1 -0
  32. package/dist/collection/components/date-picker/date-picker.js +19 -11
  33. package/dist/collection/components/dropdown-menu/dropdown-menu.js +2 -2
  34. package/dist/collection/components/header/header.js +2 -6
  35. package/dist/collection/components/info-button/info-button.interfaces.js +1 -0
  36. package/dist/collection/components/info-button/info-button.js +2 -1
  37. package/dist/collection/components/label/label.js +2 -2
  38. package/dist/collection/components/modal/modal.css +103 -75
  39. package/dist/collection/components/modal/modal.interfaces.js +1 -0
  40. package/dist/collection/components/modal/modal.js +5 -7
  41. package/dist/collection/components/ozon-content/nodes/noot.node.js +1 -1
  42. package/dist/collection/components/ozon-content/nodes/table.node/table.node.js +1 -1
  43. package/dist/collection/components/progress-indicator/progress-indicator.js +1 -1
  44. package/dist/collection/components/selectable/selectable.css +18 -1
  45. package/dist/collection/components/selectable/selectable.interfaces.js +1 -0
  46. package/dist/collection/components/selectable/selectable.js +3 -2
  47. package/dist/collection/components/table/table.css +49 -16
  48. package/dist/collection/components/table/table.js +2 -4
  49. package/dist/collection/components/toggletip/toggletip.js +1 -1
  50. package/dist/collection/components/tooltip/tooltip.js +13 -42
  51. package/dist/collection/components/tree-view/tree-view.js +8 -2
  52. package/dist/collection/components/viewer-grid/viewer-grid.interfaces.js +1 -0
  53. package/dist/collection/components/viewer-grid/viewer-grid.js +19 -11
  54. package/dist/collection/index.js +13 -0
  55. package/dist/components/clsx.m.js +3 -0
  56. package/dist/components/create-identifier.js +15 -0
  57. package/dist/components/dropdown-menu.js +151 -0
  58. package/dist/components/dso-accordion-section.d.ts +11 -0
  59. package/dist/components/dso-accordion-section.js +1535 -0
  60. package/dist/components/dso-accordion.d.ts +11 -0
  61. package/dist/components/dso-accordion.js +316 -0
  62. package/dist/components/dso-alert.d.ts +11 -0
  63. package/dist/components/dso-alert.js +55 -0
  64. package/dist/components/dso-attachments-counter.d.ts +11 -0
  65. package/dist/components/dso-attachments-counter.js +42 -0
  66. package/dist/components/dso-autosuggest.d.ts +11 -0
  67. package/dist/components/dso-autosuggest.js +309 -0
  68. package/dist/components/dso-badge.d.ts +11 -0
  69. package/dist/components/dso-badge.js +37 -0
  70. package/dist/components/dso-banner.d.ts +11 -0
  71. package/dist/components/dso-banner.js +37 -0
  72. package/dist/components/dso-card-container.d.ts +11 -0
  73. package/dist/components/dso-card-container.js +36 -0
  74. package/dist/components/dso-card.d.ts +11 -0
  75. package/dist/components/dso-card.js +66 -0
  76. package/dist/components/dso-date-picker.d.ts +11 -0
  77. package/dist/components/dso-date-picker.js +682 -0
  78. package/dist/components/dso-dropdown-menu.d.ts +11 -0
  79. package/dist/components/dso-dropdown-menu.js +6 -0
  80. package/dist/components/dso-header.d.ts +11 -0
  81. package/dist/components/dso-header.js +159 -0
  82. package/dist/components/dso-helpcenter-panel.d.ts +11 -0
  83. package/dist/components/dso-helpcenter-panel.js +127 -0
  84. package/dist/components/dso-highlight-box.d.ts +11 -0
  85. package/dist/components/dso-highlight-box.js +55 -0
  86. package/dist/components/dso-icon.d.ts +11 -0
  87. package/dist/components/dso-icon.js +6 -0
  88. package/dist/components/dso-image-overlay.d.ts +11 -0
  89. package/dist/components/dso-image-overlay.js +129 -0
  90. package/dist/components/dso-info-button.d.ts +11 -0
  91. package/dist/components/dso-info-button.js +6 -0
  92. package/dist/components/dso-info.d.ts +11 -0
  93. package/dist/components/dso-info.js +6 -0
  94. package/dist/components/dso-label.d.ts +11 -0
  95. package/dist/components/dso-label.js +156 -0
  96. package/dist/components/dso-map-base-layers.d.ts +11 -0
  97. package/dist/components/dso-map-base-layers.js +80 -0
  98. package/dist/components/dso-map-controls.d.ts +11 -0
  99. package/dist/components/dso-map-controls.js +86 -0
  100. package/dist/components/dso-map-overlays.d.ts +11 -0
  101. package/dist/components/dso-map-overlays.js +81 -0
  102. package/dist/components/dso-modal.d.ts +11 -0
  103. package/dist/components/dso-modal.js +85 -0
  104. package/dist/components/dso-ozon-content.d.ts +11 -0
  105. package/dist/components/dso-ozon-content.js +507 -0
  106. package/dist/components/dso-pagination.d.ts +11 -0
  107. package/dist/components/dso-pagination.js +159 -0
  108. package/dist/components/dso-progress-bar.d.ts +11 -0
  109. package/dist/components/dso-progress-bar.js +42 -0
  110. package/dist/components/dso-progress-indicator.d.ts +11 -0
  111. package/dist/components/dso-progress-indicator.js +6 -0
  112. package/dist/components/dso-responsive-element.d.ts +11 -0
  113. package/dist/components/dso-responsive-element.js +6 -0
  114. package/dist/components/dso-selectable.d.ts +11 -0
  115. package/dist/components/dso-selectable.js +6 -0
  116. package/dist/components/dso-table.d.ts +11 -0
  117. package/dist/components/dso-table.js +111 -0
  118. package/dist/components/dso-toggletip.d.ts +11 -0
  119. package/dist/components/dso-toggletip.js +90 -0
  120. package/dist/components/dso-tooltip.d.ts +11 -0
  121. package/dist/components/dso-tooltip.js +6 -0
  122. package/dist/components/dso-tree-view.d.ts +11 -0
  123. package/dist/components/dso-tree-view.js +227 -0
  124. package/dist/components/dso-viewer-grid.d.ts +11 -0
  125. package/dist/components/dso-viewer-grid.js +171 -0
  126. package/dist/components/focus-trap.esm.js +688 -0
  127. package/dist/components/icon.js +663 -0
  128. package/dist/components/index.d.ts +55 -0
  129. package/dist/components/index.esm.js +458 -0
  130. package/dist/components/index.js +35 -0
  131. package/dist/components/index2.js +70 -0
  132. package/dist/components/info-button.js +56 -0
  133. package/dist/components/info.js +42 -0
  134. package/dist/components/is-modified-event.js +4 -0
  135. package/dist/components/progress-indicator.js +44 -0
  136. package/dist/components/responsive-element.js +67 -0
  137. package/dist/components/selectable.js +108 -0
  138. package/dist/components/tooltip.js +2047 -0
  139. package/dist/components/v4.js +66 -0
  140. package/dist/dso-toolkit/dso-toolkit.esm.js +1 -1
  141. package/dist/dso-toolkit/p-04ffcc93.entry.js +1 -0
  142. package/dist/dso-toolkit/{p-e0a37d82.entry.js → p-06b4f78d.entry.js} +1 -1
  143. package/dist/dso-toolkit/{p-2b83a825.entry.js → p-35687d62.entry.js} +1 -1
  144. package/dist/dso-toolkit/p-52bc72d0.entry.js +1 -0
  145. package/dist/dso-toolkit/p-57ceabab.js +5 -0
  146. package/dist/dso-toolkit/p-655eff47.entry.js +1 -0
  147. package/dist/dso-toolkit/p-672c8323.entry.js +1 -0
  148. package/dist/dso-toolkit/p-7f8be9bc.entry.js +1 -0
  149. package/dist/dso-toolkit/p-80575700.entry.js +1 -0
  150. package/dist/dso-toolkit/p-8e9f6355.entry.js +1 -0
  151. package/dist/dso-toolkit/p-a8cb2eae.entry.js +1 -0
  152. package/dist/dso-toolkit/p-d31805a9.entry.js +1 -0
  153. package/dist/dso-toolkit/{p-dcc74039.entry.js → p-d7b2adc3.entry.js} +1 -1
  154. package/dist/dso-toolkit/{p-800e1267.entry.js → p-daee3252.entry.js} +1 -1
  155. package/dist/dso-toolkit/p-ec5412aa.entry.js +1 -0
  156. package/dist/esm/dso-accordion-section.entry.js +1448 -59
  157. package/dist/esm/dso-autosuggest.entry.js +57 -47
  158. package/dist/esm/dso-date-picker.entry.js +3 -2
  159. package/dist/esm/dso-dropdown-menu.entry.js +2 -2
  160. package/dist/esm/dso-helpcenter-panel.entry.js +1 -1
  161. package/dist/esm/dso-image-overlay.entry.js +1 -1
  162. package/dist/esm/dso-info_2.entry.js +2 -2
  163. package/dist/esm/dso-label.entry.js +2 -2
  164. package/dist/esm/dso-modal.entry.js +5 -8
  165. package/dist/esm/dso-ozon-content.entry.js +3 -3
  166. package/dist/esm/dso-table.entry.js +3 -5
  167. package/dist/esm/dso-toggletip.entry.js +1 -1
  168. package/dist/esm/dso-toolkit.js +2 -2
  169. package/dist/esm/dso-tooltip.entry.js +13 -21
  170. package/dist/esm/dso-viewer-grid.entry.js +8 -3
  171. package/dist/esm/{focus-trap.esm-33203b60.js → focus-trap.esm-94794d92.js} +82 -155
  172. package/dist/esm/loader.js +2 -2
  173. package/dist/types/components/accordion/accordion.interfaces.d.ts +0 -2
  174. package/dist/types/components/accordion/components/accordion-section.d.ts +10 -1
  175. package/dist/types/components/accordion/components/accordion-section.interfaces.d.ts +3 -0
  176. package/dist/types/components/accordion/components/handles/element.handle.d.ts +6 -0
  177. package/dist/types/components/accordion/components/handles/heading.handle.d.ts +5 -0
  178. package/dist/types/components/accordion/components/handles/icon.handle.d.ts +7 -0
  179. package/dist/types/components/accordion/components/handles/index.d.ts +4 -0
  180. package/dist/types/components/accordion/components/handles/state-icon.handle.d.ts +5 -0
  181. package/dist/types/components/autosuggest/autosuggest.d.ts +2 -15
  182. package/dist/types/components/autosuggest/autosuggest.interfaces.d.ts +14 -0
  183. package/dist/types/components/date-picker/date-picker.d.ts +2 -15
  184. package/dist/types/components/date-picker/date-picker.interfaces.d.ts +14 -0
  185. package/dist/types/components/dropdown-menu/dropdown-menu.d.ts +1 -1
  186. package/dist/types/components/header/header.d.ts +2 -2
  187. package/dist/types/components/header/header.interfaces.d.ts +1 -0
  188. package/dist/types/components/info-button/info-button.d.ts +1 -4
  189. package/dist/types/components/info-button/info-button.interfaces.d.ts +4 -0
  190. package/dist/types/components/map-overlays/map-overlays.d.ts +1 -1
  191. package/dist/types/components/modal/modal.d.ts +2 -4
  192. package/dist/types/components/modal/modal.interfaces.d.ts +3 -0
  193. package/dist/types/components/selectable/selectable.d.ts +1 -2
  194. package/dist/types/components/selectable/selectable.interfaces.d.ts +2 -0
  195. package/dist/types/components/table/table.d.ts +1 -1
  196. package/dist/types/components/tooltip/tooltip.d.ts +0 -8
  197. package/dist/types/components/tree-view/tree-view.d.ts +2 -2
  198. package/dist/types/components/viewer-grid/viewer-grid.d.ts +5 -16
  199. package/dist/types/components/viewer-grid/viewer-grid.interfaces.d.ts +15 -0
  200. package/dist/types/components.d.ts +20 -26
  201. package/dist/types/index.d.ts +13 -0
  202. package/package.json +8 -8
  203. package/dist/custom-elements/index.d.ts +0 -243
  204. package/dist/custom-elements/index.js +0 -7555
  205. package/dist/dso-toolkit/p-0917f18a.entry.js +0 -1
  206. package/dist/dso-toolkit/p-0c8cd0d8.entry.js +0 -1
  207. package/dist/dso-toolkit/p-203fc66c.entry.js +0 -1
  208. package/dist/dso-toolkit/p-3ab4441a.entry.js +0 -1
  209. package/dist/dso-toolkit/p-44c0bb3e.entry.js +0 -1
  210. package/dist/dso-toolkit/p-89d262b7.js +0 -5
  211. package/dist/dso-toolkit/p-9aa3fa9d.entry.js +0 -1
  212. package/dist/dso-toolkit/p-ba253bcd.entry.js +0 -1
  213. package/dist/dso-toolkit/p-e43e39cf.entry.js +0 -1
  214. package/dist/dso-toolkit/p-e8b22546.entry.js +0 -1
  215. package/dist/dso-toolkit/p-f93b7c7a.entry.js +0 -1
@@ -95,42 +95,45 @@ export class Autosuggest {
95
95
  }
96
96
  }
97
97
  connectedCallback() {
98
- const input = this.host.querySelector('input[type="text"]');
99
- if (!(input instanceof HTMLInputElement)) {
100
- throw new ReferenceError("Mandatory text input not found");
101
- }
102
- this.input = input;
103
- if (input.id) {
104
- this.inputId = input.id;
105
- }
106
- else {
107
- input.id = this.inputId;
108
- }
109
- if (!this.input.labels || this.input.labels.length < 1) {
110
- throw new ReferenceError("Mandatory label for text input not found");
111
- }
112
- const label = this.input.labels[0];
113
- if (label.id) {
114
- this.labelId = label.id;
115
- }
116
- else {
117
- label.id = this.labelId;
118
- }
119
- this.input.setAttribute("role", "combobox");
120
- this.input.setAttribute("aria-haspopup", "listbox");
121
- this.input.setAttribute("aria-controls", this.listboxId);
122
- this.input.setAttribute("aria-expanded", "false");
123
- this.input.setAttribute("autocomplete", "off");
124
- this.input.setAttribute("aria-autocomplete", "list");
125
- this.input.setAttribute("aria-activedescendant", "");
126
- this.input.addEventListener("input", this.onInput);
127
- this.input.addEventListener("keydown", this.onKeyDown);
128
- this.input.addEventListener("focusin", this.onFocusIn);
98
+ setTimeout(() => {
99
+ const input = this.host.querySelector('input[type="text"]');
100
+ if (!(input instanceof HTMLInputElement)) {
101
+ throw new ReferenceError("Mandatory text input not found");
102
+ }
103
+ this.input = input;
104
+ if (input.id) {
105
+ this.inputId = input.id;
106
+ }
107
+ else {
108
+ input.id = this.inputId;
109
+ }
110
+ if (!this.input.labels || this.input.labels.length < 1) {
111
+ throw new ReferenceError("Mandatory label for text input not found");
112
+ }
113
+ const label = this.input.labels[0];
114
+ if (label.id) {
115
+ this.labelId = label.id;
116
+ }
117
+ else {
118
+ label.id = this.labelId;
119
+ }
120
+ this.input.setAttribute("role", "combobox");
121
+ this.input.setAttribute("aria-haspopup", "listbox");
122
+ this.input.setAttribute("aria-controls", this.listboxId);
123
+ this.input.setAttribute("aria-expanded", "false");
124
+ this.input.setAttribute("autocomplete", "off");
125
+ this.input.setAttribute("aria-autocomplete", "list");
126
+ this.input.setAttribute("aria-activedescendant", "");
127
+ this.input.addEventListener("input", this.onInput);
128
+ this.input.addEventListener("keydown", this.onKeyDown);
129
+ this.input.addEventListener("focusin", this.onFocusIn);
130
+ });
129
131
  }
130
132
  disconnectedCallback() {
131
- this.input.removeEventListener("input", this.onInput);
132
- this.input.removeEventListener("keydown", this.onKeyDown);
133
- this.input.removeEventListener("focusin", this.onFocusIn);
133
+ var _a, _b, _c;
134
+ (_a = this.input) === null || _a === void 0 ? void 0 : _a.removeEventListener("input", this.onInput);
135
+ (_b = this.input) === null || _b === void 0 ? void 0 : _b.removeEventListener("keydown", this.onKeyDown);
136
+ (_c = this.input) === null || _c === void 0 ? void 0 : _c.removeEventListener("focusin", this.onFocusIn);
134
137
  }
135
138
  markTerms(suggestionValue, terms) {
136
139
  if (!suggestionValue || !terms || terms.length === 0) {
@@ -151,60 +154,64 @@ export class Autosuggest {
151
154
  });
152
155
  }
153
156
  selectSuggestion(suggestion) {
157
+ var _a;
154
158
  this.selectedSuggestion = suggestion;
155
- this.input.setAttribute("aria-activedescendant", this.listboxItemId(suggestion));
159
+ (_a = this.input) === null || _a === void 0 ? void 0 : _a.setAttribute("aria-activedescendant", this.listboxItemId(suggestion));
156
160
  }
157
161
  selectFirstSuggestion() {
162
+ var _a;
158
163
  if (!this.suggestions) {
159
164
  return;
160
165
  }
161
166
  this.selectedSuggestion = this.suggestions[0];
162
167
  if (this.selectedSuggestion) {
163
- this.input.setAttribute("aria-activedescendant", this.listboxItemId(this.selectedSuggestion));
168
+ (_a = this.input) === null || _a === void 0 ? void 0 : _a.setAttribute("aria-activedescendant", this.listboxItemId(this.selectedSuggestion));
164
169
  }
165
170
  }
166
171
  selectLastSuggestion() {
172
+ var _a;
167
173
  if (!this.suggestions) {
168
174
  return;
169
175
  }
170
176
  this.selectedSuggestion = this.suggestions[this.suggestions.length - 1];
171
177
  if (this.selectedSuggestion) {
172
- this.input.setAttribute("aria-activedescendant", this.listboxItemId(this.selectedSuggestion));
178
+ (_a = this.input) === null || _a === void 0 ? void 0 : _a.setAttribute("aria-activedescendant", this.listboxItemId(this.selectedSuggestion));
173
179
  }
174
180
  }
175
181
  selectNextSuggestion() {
176
- var _a;
182
+ var _a, _b;
177
183
  if (!this.suggestions) {
178
184
  return;
179
185
  }
180
186
  const index = this.selectedSuggestion ? this.suggestions.indexOf(this.selectedSuggestion) : -1;
181
187
  this.selectedSuggestion = (_a = this.suggestions[index + 1]) !== null && _a !== void 0 ? _a : this.suggestions[0];
182
188
  if (this.selectedSuggestion) {
183
- this.input.setAttribute("aria-activedescendant", this.listboxItemId(this.selectedSuggestion));
189
+ (_b = this.input) === null || _b === void 0 ? void 0 : _b.setAttribute("aria-activedescendant", this.listboxItemId(this.selectedSuggestion));
184
190
  }
185
191
  }
186
192
  selectPreviousSuggestion() {
187
- var _a;
193
+ var _a, _b;
188
194
  if (!this.suggestions) {
189
195
  return;
190
196
  }
191
197
  const index = this.selectedSuggestion ? this.suggestions.indexOf(this.selectedSuggestion) : 0;
192
198
  this.selectedSuggestion = (_a = this.suggestions[index - 1]) !== null && _a !== void 0 ? _a : this.suggestions[this.suggestions.length - 1];
193
199
  if (this.selectedSuggestion) {
194
- this.input.setAttribute("aria-activedescendant", this.listboxItemId(this.selectedSuggestion));
200
+ (_b = this.input) === null || _b === void 0 ? void 0 : _b.setAttribute("aria-activedescendant", this.listboxItemId(this.selectedSuggestion));
195
201
  }
196
202
  }
197
203
  resetSelectedSuggestion() {
204
+ var _a;
198
205
  this.showLoading = !this.loadingDelayed;
199
206
  this.notFound = false;
200
207
  this.selectedSuggestion = undefined;
201
- this.input.setAttribute("aria-activedescendant", "");
208
+ (_a = this.input) === null || _a === void 0 ? void 0 : _a.setAttribute("aria-activedescendant", "");
202
209
  }
203
210
  openSuggestions(selectSuggestion) {
204
- var _a, _b, _c;
211
+ var _a, _b, _c, _d;
205
212
  this.showSuggestions = (_a = (this.suggestions && this.suggestions.length > 0)) !== null && _a !== void 0 ? _a : false;
206
213
  this.notFound = (_c = ((_b = this.suggestions) === null || _b === void 0 ? void 0 : _b.length) === 0) !== null && _c !== void 0 ? _c : false;
207
- this.input.setAttribute("aria-expanded", (this.showSuggestions || this.notFound).toString());
214
+ (_d = this.input) === null || _d === void 0 ? void 0 : _d.setAttribute("aria-expanded", (this.showSuggestions || this.notFound).toString());
208
215
  if (this.showSuggestions && selectSuggestion === "first") {
209
216
  this.selectFirstSuggestion();
210
217
  }
@@ -213,17 +220,19 @@ export class Autosuggest {
213
220
  }
214
221
  }
215
222
  closeSuggestions() {
223
+ var _a;
216
224
  this.showSuggestions = false;
217
225
  this.notFound = false;
218
- this.input.setAttribute("aria-expanded", "false");
226
+ (_a = this.input) === null || _a === void 0 ? void 0 : _a.setAttribute("aria-expanded", "false");
219
227
  this.selectFirstSuggestion();
220
228
  }
221
229
  pickSelectedValue() {
230
+ var _a;
222
231
  if (this.selectedSuggestion && this.showSuggestions) {
223
232
  this.dsoSelect.emit(this.selectedSuggestion);
224
233
  }
225
234
  else {
226
- this.dsoSearch.emit(this.input.value);
235
+ this.dsoSearch.emit((_a = this.input) === null || _a === void 0 ? void 0 : _a.value);
227
236
  }
228
237
  this.closeSuggestions();
229
238
  }
@@ -234,7 +243,8 @@ export class Autosuggest {
234
243
  return `${this.inputId}-${this.suggestions.indexOf(suggestion) + 1}`;
235
244
  }
236
245
  render() {
237
- const terms = this.input.value.split(" ").filter((t) => t);
246
+ var _a, _b;
247
+ const terms = (_b = (_a = this.input) === null || _a === void 0 ? void 0 : _a.value.split(" ").filter((t) => t)) !== null && _b !== void 0 ? _b : [];
238
248
  return (h(Fragment, null, h("slot", null), this.loading && this.showLoading ? (h("div", { class: "autosuggest-progress-box" }, h("dso-progress-indicator", { label: this.loadingLabel }))) : (h("ul", { role: "listbox", id: this.listboxId, "aria-labelledby": this.labelId, ref: (element) => (this.listbox = element), hidden: !this.showSuggestions && !this.notFound }, this.showSuggestions && this.suggestions ? (this.suggestions.map((suggestion) => (h("li", { role: "option", id: this.listboxItemId(suggestion), key: suggestion.value, onMouseEnter: () => this.selectSuggestion(suggestion), onMouseLeave: () => this.resetSelectedSuggestion(), onClick: () => this.pickSelectedValue(), "aria-selected": (suggestion === this.selectedSuggestion).toString(), "aria-label": suggestion.value }, h("span", { class: "value" }, this.markTerms(suggestion.value, terms)), suggestion.type ? h("span", { class: "type" }, suggestion.type) : undefined)))) : this.notFound ? (h("li", null, h("span", { class: "value" }, !this.notFoundLabel ? (this.markTerms(`${this.inputValue} is niet gevonden.`, terms)) : (h("span", null, this.notFoundLabel))))) : undefined))));
239
249
  }
240
250
  static get is() { return "dso-autosuggest"; }
@@ -259,7 +269,8 @@ export class Autosuggest {
259
269
  "resolved": "Suggestion[] | null",
260
270
  "references": {
261
271
  "Suggestion": {
262
- "location": "local"
272
+ "location": "import",
273
+ "path": "./autosuggest.interfaces"
263
274
  }
264
275
  }
265
276
  },
@@ -385,7 +396,8 @@ export class Autosuggest {
385
396
  "resolved": "Suggestion",
386
397
  "references": {
387
398
  "Suggestion": {
388
- "location": "local"
399
+ "location": "import",
400
+ "path": "./autosuggest.interfaces"
389
401
  }
390
402
  }
391
403
  }
@@ -36,7 +36,7 @@ export class Banner {
36
36
  "text": ""
37
37
  },
38
38
  "attribute": "status",
39
- "reflect": false
39
+ "reflect": true
40
40
  }
41
41
  };
42
42
  }
@@ -40,7 +40,7 @@ export class CardContainer {
40
40
  "text": ""
41
41
  },
42
42
  "attribute": "mode",
43
- "reflect": false,
43
+ "reflect": true,
44
44
  "defaultValue": "\"list\""
45
45
  }
46
46
  };
@@ -268,7 +268,7 @@ export class DsoDatePicker {
268
268
  this.name = "date";
269
269
  this.identifier = undefined;
270
270
  this.disabled = false;
271
- this.role = undefined;
271
+ this.role = null;
272
272
  this.direction = "right";
273
273
  this.required = false;
274
274
  this.dsoAutofocus = false;
@@ -388,6 +388,7 @@ export class DsoDatePicker {
388
388
  * Always the last one in the class.
389
389
  */
390
390
  render() {
391
+ var _a;
391
392
  const valueAsDate = parseDutchDate(this.value);
392
393
  const formattedDate = valueAsDate && printDutchDate(valueAsDate);
393
394
  const selectedYear = (valueAsDate || this.focusedDay).getFullYear();
@@ -405,7 +406,7 @@ export class DsoDatePicker {
405
406
  if (maxDate) {
406
407
  maxYear = Math.min(maxYear, maxDate.getFullYear());
407
408
  }
408
- return (h(Host, null, h("div", { class: { "dso-date": true, "dso-visible": this.visible } }, h("div", { class: "dso-date__input-wrapper" }, h("input", { class: "dso-date__input", value: this.value, placeholder: this.localization.placeholder, id: this.identifier, disabled: this.disabled, role: this.role, required: this.required ? true : undefined, "aria-autocomplete": "none", onInput: this.handleInputChange, onFocus: this.handleFocus, onBlur: this.handleBlur, onKeyUp: this.handleKeyUp, onKeyDown: this.handleKeyDown, autoComplete: "off", ref: (element) => (this.datePickerInput = element) }), h("button", { type: "button", class: "dso-date__toggle", onClick: this.toggleOpen, disabled: this.disabled, ref: (element) => (this.datePickerButton = element) }, h("span", { class: "dso-date__toggle-icon" }, h("dso-icon", { icon: "calendar" })), h("span", { class: "dso-date__vhidden" }, this.localization.buttonLabel, formattedDate && (h("span", null, ", ", this.localization.selectedDateMessage, " ", formattedDate))))), h("div", { class: {
409
+ return (h(Host, null, h("div", { class: { "dso-date": true, "dso-visible": this.visible } }, h("div", { class: "dso-date__input-wrapper" }, h("input", { class: "dso-date__input", value: this.value, placeholder: this.localization.placeholder, id: this.identifier, disabled: this.disabled, role: (_a = this.role) !== null && _a !== void 0 ? _a : undefined, required: this.required ? true : undefined, "aria-autocomplete": "none", onInput: this.handleInputChange, onFocus: this.handleFocus, onBlur: this.handleBlur, onKeyUp: this.handleKeyUp, onKeyDown: this.handleKeyDown, autoComplete: "off", ref: (element) => (this.datePickerInput = element) }), h("button", { type: "button", class: "dso-date__toggle", onClick: this.toggleOpen, disabled: this.disabled, ref: (element) => (this.datePickerButton = element) }, h("span", { class: "dso-date__toggle-icon" }, h("dso-icon", { icon: "calendar" })), h("span", { class: "dso-date__vhidden" }, this.localization.buttonLabel, formattedDate && (h("span", null, ", ", this.localization.selectedDateMessage, " ", formattedDate))))), h("div", { class: {
409
410
  "dso-date__dialog": true,
410
411
  "is-left": this.direction === "left",
411
412
  "is-active": this.open,
@@ -482,8 +483,8 @@ export class DsoDatePicker {
482
483
  "type": "string",
483
484
  "mutable": false,
484
485
  "complexType": {
485
- "original": "string | undefined",
486
- "resolved": "string | undefined",
486
+ "original": "string | null",
487
+ "resolved": "null | string",
487
488
  "references": {}
488
489
  },
489
490
  "required": false,
@@ -493,7 +494,8 @@ export class DsoDatePicker {
493
494
  "text": "Defines a specific role attribute for the date picker input."
494
495
  },
495
496
  "attribute": "role",
496
- "reflect": false
497
+ "reflect": false,
498
+ "defaultValue": "null"
497
499
  },
498
500
  "direction": {
499
501
  "type": "string",
@@ -503,7 +505,8 @@ export class DsoDatePicker {
503
505
  "resolved": "\"left\" | \"right\"",
504
506
  "references": {
505
507
  "DsoDatePickerDirection": {
506
- "location": "local"
508
+ "location": "import",
509
+ "path": "./date-picker.interfaces"
507
510
  }
508
511
  }
509
512
  },
@@ -631,7 +634,8 @@ export class DsoDatePicker {
631
634
  "resolved": "{ component: \"dso-date-picker\"; valueAsDate: Date | undefined; value: string; error?: \"invalid\" | \"required\" | \"min-range\" | \"max-range\" | undefined; }",
632
635
  "references": {
633
636
  "DsoDatePickerChangeEvent": {
634
- "location": "local"
637
+ "location": "import",
638
+ "path": "./date-picker.interfaces"
635
639
  }
636
640
  }
637
641
  }
@@ -650,7 +654,8 @@ export class DsoDatePicker {
650
654
  "resolved": "{ component: \"dso-date-picker\"; }",
651
655
  "references": {
652
656
  "DsoDatePickerFocusEvent": {
653
- "location": "local"
657
+ "location": "import",
658
+ "path": "./date-picker.interfaces"
654
659
  }
655
660
  }
656
661
  }
@@ -669,7 +674,8 @@ export class DsoDatePicker {
669
674
  "resolved": "{ component: \"dso-date-picker\"; originalEvent: KeyboardEvent; }",
670
675
  "references": {
671
676
  "DsoDatePickerKeyboardEvent": {
672
- "location": "local"
677
+ "location": "import",
678
+ "path": "./date-picker.interfaces"
673
679
  }
674
680
  }
675
681
  }
@@ -688,7 +694,8 @@ export class DsoDatePicker {
688
694
  "resolved": "{ component: \"dso-date-picker\"; originalEvent: KeyboardEvent; }",
689
695
  "references": {
690
696
  "DsoDatePickerKeyboardEvent": {
691
- "location": "local"
697
+ "location": "import",
698
+ "path": "./date-picker.interfaces"
692
699
  }
693
700
  }
694
701
  }
@@ -707,7 +714,8 @@ export class DsoDatePicker {
707
714
  "resolved": "{ component: \"dso-date-picker\"; }",
708
715
  "references": {
709
716
  "DsoDatePickerFocusEvent": {
710
- "location": "local"
717
+ "location": "import",
718
+ "path": "./date-picker.interfaces"
711
719
  }
712
720
  }
713
721
  }
@@ -41,7 +41,7 @@ export class DropdownMenu {
41
41
  this.checkable = false;
42
42
  }
43
43
  get button() {
44
- const button = this.host.querySelectorAll('button[slot="toggle"]')[0];
44
+ const button = this.host.querySelector('button[slot="toggle"]');
45
45
  if (!(button instanceof HTMLButtonElement)) {
46
46
  throw new ReferenceError("Mandatory toggle button not found");
47
47
  }
@@ -50,7 +50,7 @@ export class DropdownMenu {
50
50
  get tabbables() {
51
51
  return tabbable(this.host).filter((e) => e !== this.button);
52
52
  }
53
- connectedCallback() {
53
+ componentDidLoad() {
54
54
  this.button.setAttribute("aria-haspopup", "menu");
55
55
  this.button.setAttribute("aria-expanded", "false");
56
56
  if (!this.button.id) {
@@ -280,14 +280,10 @@ export class Header {
280
280
  "text": "Emitted when something in the header is selected.\r\n\r\n`event.detail.type` indicates the functionality the user pressed. eg. `'login'` or `'menuItem'`"
281
281
  },
282
282
  "complexType": {
283
- "original": "HeaderClickEvent | HeaderClickMenuItemEvent",
283
+ "original": "HeaderEvent",
284
284
  "resolved": "HeaderClickEvent | HeaderClickMenuItemEvent",
285
285
  "references": {
286
- "HeaderClickEvent": {
287
- "location": "import",
288
- "path": "./header.interfaces"
289
- },
290
- "HeaderClickMenuItemEvent": {
286
+ "HeaderEvent": {
291
287
  "location": "import",
292
288
  "path": "./header.interfaces"
293
289
  }
@@ -107,7 +107,8 @@ export class InfoButton {
107
107
  "resolved": "InfoButtonToggleEvent",
108
108
  "references": {
109
109
  "InfoButtonToggleEvent": {
110
- "location": "local"
110
+ "location": "import",
111
+ "path": "./info-button.interfaces"
111
112
  }
112
113
  }
113
114
  }
@@ -84,13 +84,13 @@ export class Label {
84
84
  const status = this.status && Label.statusMap.get(this.status);
85
85
  return (h(Host, { "aria-roledescription": this.truncate && this.truncatedContent
86
86
  ? "Deze tekst is visueel afgekapt en wordt volledig zichtbaar bij focus."
87
- : undefined }, h("span", { id: "toggle-anchor", class: clsx("dso-label", {
87
+ : undefined }, h("span", { "aria-describedby": "toggle-anchor", class: clsx("dso-label", {
88
88
  [`dso-label-${this.status}`]: this.status,
89
89
  "dso-compact": this.compact && !this.removable,
90
90
  "dso-hover": this.removeHover || this.removeFocus,
91
91
  }) }, h("slot", { name: "symbol" }), status && h("span", { class: "sr-only" }, status, ": "), h("span", { class: clsx("dso-label-content", {
92
92
  "dso-truncate": !!this.truncate,
93
- }), ref: (element) => (this.labelContent = element), tabindex: this.truncate && this.truncatedContent ? 0 : -1, onMouseEnter: () => (this.textHover = true), onMouseLeave: () => (this.textHover = false), onFocus: () => (this.textFocus = true), onBlur: () => (this.textFocus = false) }, h("slot", null)), this.removable && (h("button", { type: "button", onClick: (e) => this.dsoRemoveClick.emit(e), onMouseEnter: () => (this.removeHover = true), onMouseLeave: () => (this.removeHover = false), onFocus: () => (this.removeFocus = true), onBlur: () => (this.removeFocus = false) }, h("span", { class: "sr-only" }, "Verwijder: ", this.labelText), h("dso-icon", { icon: "times" })))), h("dso-tooltip", { stateless: true, for: "toggle-anchor", active: !!this.truncatedContent && (this.textHover || this.textFocus), position: "top", strategy: "absolute" }, this.truncatedContent)));
93
+ }), ref: (element) => (this.labelContent = element), tabindex: this.truncate && this.truncatedContent ? 0 : -1, onMouseEnter: () => (this.textHover = true), onMouseLeave: () => (this.textHover = false), onFocus: () => (this.textFocus = true), onBlur: () => (this.textFocus = false) }, h("slot", null)), this.removable && (h("button", { type: "button", onClick: (e) => this.dsoRemoveClick.emit(e), onMouseEnter: () => (this.removeHover = true), onMouseLeave: () => (this.removeHover = false), onFocus: () => (this.removeFocus = true), onBlur: () => (this.removeFocus = false) }, h("span", { class: "sr-only" }, "Verwijder: ", this.labelText), h("dso-icon", { icon: "times" })))), h("dso-tooltip", { stateless: true, id: "toggle-anchor", active: !!this.truncatedContent && (this.textHover || this.textFocus), position: "top", strategy: "absolute" }, this.truncatedContent)));
94
94
  }
95
95
  static get is() { return "dso-label"; }
96
96
  static get encapsulation() { return "shadow"; }