@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.
- package/dist/cjs/dso-accordion-section.cjs.entry.js +1447 -58
- package/dist/cjs/dso-autosuggest.cjs.entry.js +57 -47
- package/dist/cjs/dso-date-picker.cjs.entry.js +3 -2
- package/dist/cjs/dso-dropdown-menu.cjs.entry.js +2 -2
- package/dist/cjs/dso-helpcenter-panel.cjs.entry.js +1 -1
- package/dist/cjs/dso-image-overlay.cjs.entry.js +1 -1
- package/dist/cjs/dso-info_2.cjs.entry.js +2 -2
- package/dist/cjs/dso-label.cjs.entry.js +2 -2
- package/dist/cjs/dso-modal.cjs.entry.js +4 -7
- package/dist/cjs/dso-ozon-content.cjs.entry.js +3 -3
- package/dist/cjs/dso-table.cjs.entry.js +3 -5
- package/dist/cjs/dso-toggletip.cjs.entry.js +1 -1
- package/dist/cjs/dso-toolkit.cjs.js +2 -2
- package/dist/cjs/dso-tooltip.cjs.entry.js +13 -21
- package/dist/cjs/dso-viewer-grid.cjs.entry.js +8 -3
- package/dist/cjs/{focus-trap.esm-d83fd673.js → focus-trap.esm-c501d382.js} +82 -155
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +8 -8
- package/dist/collection/components/accordion/components/accordion-section.css +27 -4
- package/dist/collection/components/accordion/components/accordion-section.interfaces.js +6 -0
- package/dist/collection/components/accordion/components/accordion-section.js +91 -59
- package/dist/collection/components/accordion/components/handles/element.handle.js +7 -0
- package/dist/collection/components/accordion/components/handles/heading.handle.js +14 -0
- package/dist/collection/components/accordion/components/handles/icon.handle.js +13 -0
- package/dist/collection/components/accordion/components/handles/index.js +4 -0
- package/dist/collection/components/accordion/components/handles/state-icon.handle.js +15 -0
- package/dist/collection/components/autosuggest/autosuggest.interfaces.js +1 -0
- package/dist/collection/components/autosuggest/autosuggest.js +61 -49
- package/dist/collection/components/banner/banner.js +1 -1
- package/dist/collection/components/card-container/card-container.js +1 -1
- package/dist/collection/components/date-picker/date-picker.interfaces.js +1 -0
- package/dist/collection/components/date-picker/date-picker.js +19 -11
- package/dist/collection/components/dropdown-menu/dropdown-menu.js +2 -2
- package/dist/collection/components/header/header.js +2 -6
- package/dist/collection/components/info-button/info-button.interfaces.js +1 -0
- package/dist/collection/components/info-button/info-button.js +2 -1
- package/dist/collection/components/label/label.js +2 -2
- package/dist/collection/components/modal/modal.css +103 -75
- package/dist/collection/components/modal/modal.interfaces.js +1 -0
- package/dist/collection/components/modal/modal.js +5 -7
- package/dist/collection/components/ozon-content/nodes/noot.node.js +1 -1
- package/dist/collection/components/ozon-content/nodes/table.node/table.node.js +1 -1
- package/dist/collection/components/progress-indicator/progress-indicator.js +1 -1
- package/dist/collection/components/selectable/selectable.css +18 -1
- package/dist/collection/components/selectable/selectable.interfaces.js +1 -0
- package/dist/collection/components/selectable/selectable.js +3 -2
- package/dist/collection/components/table/table.css +49 -16
- package/dist/collection/components/table/table.js +2 -4
- package/dist/collection/components/toggletip/toggletip.js +1 -1
- package/dist/collection/components/tooltip/tooltip.js +13 -42
- package/dist/collection/components/tree-view/tree-view.js +8 -2
- package/dist/collection/components/viewer-grid/viewer-grid.interfaces.js +1 -0
- package/dist/collection/components/viewer-grid/viewer-grid.js +19 -11
- package/dist/collection/index.js +13 -0
- package/dist/components/clsx.m.js +3 -0
- package/dist/components/create-identifier.js +15 -0
- package/dist/components/dropdown-menu.js +151 -0
- package/dist/components/dso-accordion-section.d.ts +11 -0
- package/dist/components/dso-accordion-section.js +1535 -0
- package/dist/components/dso-accordion.d.ts +11 -0
- package/dist/components/dso-accordion.js +316 -0
- package/dist/components/dso-alert.d.ts +11 -0
- package/dist/components/dso-alert.js +55 -0
- package/dist/components/dso-attachments-counter.d.ts +11 -0
- package/dist/components/dso-attachments-counter.js +42 -0
- package/dist/components/dso-autosuggest.d.ts +11 -0
- package/dist/components/dso-autosuggest.js +309 -0
- package/dist/components/dso-badge.d.ts +11 -0
- package/dist/components/dso-badge.js +37 -0
- package/dist/components/dso-banner.d.ts +11 -0
- package/dist/components/dso-banner.js +37 -0
- package/dist/components/dso-card-container.d.ts +11 -0
- package/dist/components/dso-card-container.js +36 -0
- package/dist/components/dso-card.d.ts +11 -0
- package/dist/components/dso-card.js +66 -0
- package/dist/components/dso-date-picker.d.ts +11 -0
- package/dist/components/dso-date-picker.js +682 -0
- package/dist/components/dso-dropdown-menu.d.ts +11 -0
- package/dist/components/dso-dropdown-menu.js +6 -0
- package/dist/components/dso-header.d.ts +11 -0
- package/dist/components/dso-header.js +159 -0
- package/dist/components/dso-helpcenter-panel.d.ts +11 -0
- package/dist/components/dso-helpcenter-panel.js +127 -0
- package/dist/components/dso-highlight-box.d.ts +11 -0
- package/dist/components/dso-highlight-box.js +55 -0
- package/dist/components/dso-icon.d.ts +11 -0
- package/dist/components/dso-icon.js +6 -0
- package/dist/components/dso-image-overlay.d.ts +11 -0
- package/dist/components/dso-image-overlay.js +129 -0
- package/dist/components/dso-info-button.d.ts +11 -0
- package/dist/components/dso-info-button.js +6 -0
- package/dist/components/dso-info.d.ts +11 -0
- package/dist/components/dso-info.js +6 -0
- package/dist/components/dso-label.d.ts +11 -0
- package/dist/components/dso-label.js +156 -0
- package/dist/components/dso-map-base-layers.d.ts +11 -0
- package/dist/components/dso-map-base-layers.js +80 -0
- package/dist/components/dso-map-controls.d.ts +11 -0
- package/dist/components/dso-map-controls.js +86 -0
- package/dist/components/dso-map-overlays.d.ts +11 -0
- package/dist/components/dso-map-overlays.js +81 -0
- package/dist/components/dso-modal.d.ts +11 -0
- package/dist/components/dso-modal.js +85 -0
- package/dist/components/dso-ozon-content.d.ts +11 -0
- package/dist/components/dso-ozon-content.js +507 -0
- package/dist/components/dso-pagination.d.ts +11 -0
- package/dist/components/dso-pagination.js +159 -0
- package/dist/components/dso-progress-bar.d.ts +11 -0
- package/dist/components/dso-progress-bar.js +42 -0
- package/dist/components/dso-progress-indicator.d.ts +11 -0
- package/dist/components/dso-progress-indicator.js +6 -0
- package/dist/components/dso-responsive-element.d.ts +11 -0
- package/dist/components/dso-responsive-element.js +6 -0
- package/dist/components/dso-selectable.d.ts +11 -0
- package/dist/components/dso-selectable.js +6 -0
- package/dist/components/dso-table.d.ts +11 -0
- package/dist/components/dso-table.js +111 -0
- package/dist/components/dso-toggletip.d.ts +11 -0
- package/dist/components/dso-toggletip.js +90 -0
- package/dist/components/dso-tooltip.d.ts +11 -0
- package/dist/components/dso-tooltip.js +6 -0
- package/dist/components/dso-tree-view.d.ts +11 -0
- package/dist/components/dso-tree-view.js +227 -0
- package/dist/components/dso-viewer-grid.d.ts +11 -0
- package/dist/components/dso-viewer-grid.js +171 -0
- package/dist/components/focus-trap.esm.js +688 -0
- package/dist/components/icon.js +663 -0
- package/dist/components/index.d.ts +55 -0
- package/dist/components/index.esm.js +458 -0
- package/dist/components/index.js +35 -0
- package/dist/components/index2.js +70 -0
- package/dist/components/info-button.js +56 -0
- package/dist/components/info.js +42 -0
- package/dist/components/is-modified-event.js +4 -0
- package/dist/components/progress-indicator.js +44 -0
- package/dist/components/responsive-element.js +67 -0
- package/dist/components/selectable.js +108 -0
- package/dist/components/tooltip.js +2047 -0
- package/dist/components/v4.js +66 -0
- package/dist/dso-toolkit/dso-toolkit.esm.js +1 -1
- package/dist/dso-toolkit/p-04ffcc93.entry.js +1 -0
- package/dist/dso-toolkit/{p-e0a37d82.entry.js → p-06b4f78d.entry.js} +1 -1
- package/dist/dso-toolkit/{p-2b83a825.entry.js → p-35687d62.entry.js} +1 -1
- package/dist/dso-toolkit/p-52bc72d0.entry.js +1 -0
- package/dist/dso-toolkit/p-57ceabab.js +5 -0
- package/dist/dso-toolkit/p-655eff47.entry.js +1 -0
- package/dist/dso-toolkit/p-672c8323.entry.js +1 -0
- package/dist/dso-toolkit/p-7f8be9bc.entry.js +1 -0
- package/dist/dso-toolkit/p-80575700.entry.js +1 -0
- package/dist/dso-toolkit/p-8e9f6355.entry.js +1 -0
- package/dist/dso-toolkit/p-a8cb2eae.entry.js +1 -0
- package/dist/dso-toolkit/p-d31805a9.entry.js +1 -0
- package/dist/dso-toolkit/{p-dcc74039.entry.js → p-d7b2adc3.entry.js} +1 -1
- package/dist/dso-toolkit/{p-800e1267.entry.js → p-daee3252.entry.js} +1 -1
- package/dist/dso-toolkit/p-ec5412aa.entry.js +1 -0
- package/dist/esm/dso-accordion-section.entry.js +1448 -59
- package/dist/esm/dso-autosuggest.entry.js +57 -47
- package/dist/esm/dso-date-picker.entry.js +3 -2
- package/dist/esm/dso-dropdown-menu.entry.js +2 -2
- package/dist/esm/dso-helpcenter-panel.entry.js +1 -1
- package/dist/esm/dso-image-overlay.entry.js +1 -1
- package/dist/esm/dso-info_2.entry.js +2 -2
- package/dist/esm/dso-label.entry.js +2 -2
- package/dist/esm/dso-modal.entry.js +5 -8
- package/dist/esm/dso-ozon-content.entry.js +3 -3
- package/dist/esm/dso-table.entry.js +3 -5
- package/dist/esm/dso-toggletip.entry.js +1 -1
- package/dist/esm/dso-toolkit.js +2 -2
- package/dist/esm/dso-tooltip.entry.js +13 -21
- package/dist/esm/dso-viewer-grid.entry.js +8 -3
- package/dist/esm/{focus-trap.esm-33203b60.js → focus-trap.esm-94794d92.js} +82 -155
- package/dist/esm/loader.js +2 -2
- package/dist/types/components/accordion/accordion.interfaces.d.ts +0 -2
- package/dist/types/components/accordion/components/accordion-section.d.ts +10 -1
- package/dist/types/components/accordion/components/accordion-section.interfaces.d.ts +3 -0
- package/dist/types/components/accordion/components/handles/element.handle.d.ts +6 -0
- package/dist/types/components/accordion/components/handles/heading.handle.d.ts +5 -0
- package/dist/types/components/accordion/components/handles/icon.handle.d.ts +7 -0
- package/dist/types/components/accordion/components/handles/index.d.ts +4 -0
- package/dist/types/components/accordion/components/handles/state-icon.handle.d.ts +5 -0
- package/dist/types/components/autosuggest/autosuggest.d.ts +2 -15
- package/dist/types/components/autosuggest/autosuggest.interfaces.d.ts +14 -0
- package/dist/types/components/date-picker/date-picker.d.ts +2 -15
- package/dist/types/components/date-picker/date-picker.interfaces.d.ts +14 -0
- package/dist/types/components/dropdown-menu/dropdown-menu.d.ts +1 -1
- package/dist/types/components/header/header.d.ts +2 -2
- package/dist/types/components/header/header.interfaces.d.ts +1 -0
- package/dist/types/components/info-button/info-button.d.ts +1 -4
- package/dist/types/components/info-button/info-button.interfaces.d.ts +4 -0
- package/dist/types/components/map-overlays/map-overlays.d.ts +1 -1
- package/dist/types/components/modal/modal.d.ts +2 -4
- package/dist/types/components/modal/modal.interfaces.d.ts +3 -0
- package/dist/types/components/selectable/selectable.d.ts +1 -2
- package/dist/types/components/selectable/selectable.interfaces.d.ts +2 -0
- package/dist/types/components/table/table.d.ts +1 -1
- package/dist/types/components/tooltip/tooltip.d.ts +0 -8
- package/dist/types/components/tree-view/tree-view.d.ts +2 -2
- package/dist/types/components/viewer-grid/viewer-grid.d.ts +5 -16
- package/dist/types/components/viewer-grid/viewer-grid.interfaces.d.ts +15 -0
- package/dist/types/components.d.ts +20 -26
- package/dist/types/index.d.ts +13 -0
- package/package.json +8 -8
- package/dist/custom-elements/index.d.ts +0 -243
- package/dist/custom-elements/index.js +0 -7555
- package/dist/dso-toolkit/p-0917f18a.entry.js +0 -1
- package/dist/dso-toolkit/p-0c8cd0d8.entry.js +0 -1
- package/dist/dso-toolkit/p-203fc66c.entry.js +0 -1
- package/dist/dso-toolkit/p-3ab4441a.entry.js +0 -1
- package/dist/dso-toolkit/p-44c0bb3e.entry.js +0 -1
- package/dist/dso-toolkit/p-89d262b7.js +0 -5
- package/dist/dso-toolkit/p-9aa3fa9d.entry.js +0 -1
- package/dist/dso-toolkit/p-ba253bcd.entry.js +0 -1
- package/dist/dso-toolkit/p-e43e39cf.entry.js +0 -1
- package/dist/dso-toolkit/p-e8b22546.entry.js +0 -1
- 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
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
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
|
-
|
|
132
|
-
this.input.removeEventListener("
|
|
133
|
-
this.input.removeEventListener("
|
|
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
|
-
|
|
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": "
|
|
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": "
|
|
399
|
+
"location": "import",
|
|
400
|
+
"path": "./autosuggest.interfaces"
|
|
389
401
|
}
|
|
390
402
|
}
|
|
391
403
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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 =
|
|
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 |
|
|
486
|
-
"resolved": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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.
|
|
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
|
-
|
|
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": "
|
|
283
|
+
"original": "HeaderEvent",
|
|
284
284
|
"resolved": "HeaderClickEvent | HeaderClickMenuItemEvent",
|
|
285
285
|
"references": {
|
|
286
|
-
"
|
|
287
|
-
"location": "import",
|
|
288
|
-
"path": "./header.interfaces"
|
|
289
|
-
},
|
|
290
|
-
"HeaderClickMenuItemEvent": {
|
|
286
|
+
"HeaderEvent": {
|
|
291
287
|
"location": "import",
|
|
292
288
|
"path": "./header.interfaces"
|
|
293
289
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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", {
|
|
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,
|
|
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"; }
|