@dso-toolkit/core 47.0.1 → 49.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 +1509 -62
- package/dist/cjs/dso-accordion.cjs.entry.js +24 -4
- 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 +14 -22
- 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/accordion.js +29 -6
- 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 +179 -64
- 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/icon/icon.js +95 -95
- 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 +14 -43
- 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 +1594 -0
- package/dist/components/dso-accordion.d.ts +11 -0
- package/dist/components/dso-accordion.js +336 -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-bcd19ae7.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-d8ba8db6.entry.js +1 -0
- package/dist/dso-toolkit/{p-800e1267.entry.js → p-daee3252.entry.js} +1 -1
- package/dist/esm/dso-accordion-section.entry.js +1510 -63
- package/dist/esm/dso-accordion.entry.js +24 -4
- 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 +14 -22
- 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.d.ts +7 -2
- package/dist/types/components/accordion/accordion.interfaces.d.ts +6 -3
- package/dist/types/components/accordion/components/accordion-section.d.ts +19 -3
- 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 +6 -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-item.d.ts +1 -1
- 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 +29 -30
- package/dist/types/index.d.ts +13 -0
- package/package.json +20 -25
- 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-39a33b89.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
|
}
|
|
@@ -1,99 +1,99 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import air from "
|
|
3
|
-
import angleDown from "
|
|
4
|
-
import angleLeft from "
|
|
5
|
-
import angleRight from "
|
|
6
|
-
import angleUp from "
|
|
7
|
-
import balloon from "
|
|
8
|
-
import bars from "
|
|
9
|
-
import buildings from "
|
|
10
|
-
import calendar from "
|
|
11
|
-
import call from "
|
|
12
|
-
import caretDown from "
|
|
13
|
-
import check from "
|
|
14
|
-
import checkCircle from "
|
|
15
|
-
import chevronDown from "
|
|
16
|
-
import chevronLeft from "
|
|
17
|
-
import chevronRight from "
|
|
18
|
-
import chevronUp from "
|
|
19
|
-
import circleNotch from "
|
|
20
|
-
import clock from "
|
|
21
|
-
import copy from "
|
|
22
|
-
import crown from "
|
|
23
|
-
import cultural from "
|
|
24
|
-
import document from "
|
|
25
|
-
import download from "
|
|
26
|
-
import email from "
|
|
27
|
-
import energy from "
|
|
28
|
-
import environment from "
|
|
29
|
-
import exclamation from "
|
|
30
|
-
import externalLink from "
|
|
31
|
-
import eyeSlash from "
|
|
32
|
-
import eye from "
|
|
33
|
-
import filter from "
|
|
34
|
-
import forbidden from "
|
|
35
|
-
import health from "
|
|
36
|
-
import helpActive from "
|
|
37
|
-
import help from "
|
|
38
|
-
import house from "
|
|
39
|
-
import infoActive from "
|
|
40
|
-
import infoI from "
|
|
41
|
-
import info from "
|
|
42
|
-
import infrastructure from "
|
|
43
|
-
import label from "
|
|
44
|
-
import land from "
|
|
45
|
-
import landscape from "
|
|
46
|
-
import layers from "
|
|
47
|
-
import location from "
|
|
48
|
-
import locationOutline from "
|
|
49
|
-
import locationSearch from "
|
|
50
|
-
import lock from "
|
|
51
|
-
import magnet from "
|
|
52
|
-
import mapLayers from "
|
|
53
|
-
import mapLocation from "
|
|
54
|
-
import marker from "
|
|
55
|
-
import measurement from "
|
|
56
|
-
import minusSquare from "
|
|
57
|
-
import minus from "
|
|
58
|
-
import more from "
|
|
59
|
-
import municipality from "
|
|
60
|
-
import nature from "
|
|
61
|
-
import newWindow from "
|
|
62
|
-
import paperclip from "
|
|
63
|
-
import parking from "
|
|
64
|
-
import pencil from "
|
|
65
|
-
import pin from "
|
|
66
|
-
import pinOutline from "
|
|
67
|
-
import plusSquare from "
|
|
68
|
-
import plus from "
|
|
69
|
-
import print from "
|
|
70
|
-
import procedures from "
|
|
71
|
-
import redo from "
|
|
72
|
-
import safety from "
|
|
73
|
-
import search from "
|
|
74
|
-
import scale from "
|
|
75
|
-
import sitemap from "
|
|
76
|
-
import soil from "
|
|
77
|
-
import sortAscending from "
|
|
78
|
-
import sortDescending from "
|
|
79
|
-
import sort from "
|
|
80
|
-
import sound from "
|
|
81
|
-
import statusError from "
|
|
82
|
-
import statusDanger from "
|
|
83
|
-
import statusInfo from "
|
|
84
|
-
import statusSuccess from "
|
|
85
|
-
import statusWarning from "
|
|
86
|
-
import statusWarningInline from "
|
|
87
|
-
import statusWarningInlineNegative from "
|
|
88
|
-
import table from "
|
|
89
|
-
import times from "
|
|
90
|
-
import trash from "
|
|
91
|
-
import undo from "
|
|
92
|
-
import userLine from "
|
|
93
|
-
import user from "
|
|
94
|
-
import users from "
|
|
95
|
-
import water from "
|
|
96
|
-
import wipWip from "
|
|
2
|
+
import air from "dso-toolkit/src/icons/air.svg";
|
|
3
|
+
import angleDown from "dso-toolkit/src/icons/angle-down.svg";
|
|
4
|
+
import angleLeft from "dso-toolkit/src/icons/angle-left.svg";
|
|
5
|
+
import angleRight from "dso-toolkit/src/icons/angle-right.svg";
|
|
6
|
+
import angleUp from "dso-toolkit/src/icons/angle-up.svg";
|
|
7
|
+
import balloon from "dso-toolkit/src/icons/balloon.svg";
|
|
8
|
+
import bars from "dso-toolkit/src/icons/bars.svg";
|
|
9
|
+
import buildings from "dso-toolkit/src/icons/buildings.svg";
|
|
10
|
+
import calendar from "dso-toolkit/src/icons/calendar.svg";
|
|
11
|
+
import call from "dso-toolkit/src/icons/call.svg";
|
|
12
|
+
import caretDown from "dso-toolkit/src/icons/caret-down.svg";
|
|
13
|
+
import check from "dso-toolkit/src/icons/check.svg";
|
|
14
|
+
import checkCircle from "dso-toolkit/src/icons/check-circle.svg";
|
|
15
|
+
import chevronDown from "dso-toolkit/src/icons/chevron-down.svg";
|
|
16
|
+
import chevronLeft from "dso-toolkit/src/icons/chevron-left.svg";
|
|
17
|
+
import chevronRight from "dso-toolkit/src/icons/chevron-right.svg";
|
|
18
|
+
import chevronUp from "dso-toolkit/src/icons/chevron-up.svg";
|
|
19
|
+
import circleNotch from "dso-toolkit/src/icons/circle-notch.svg";
|
|
20
|
+
import clock from "dso-toolkit/src/icons/clock.svg";
|
|
21
|
+
import copy from "dso-toolkit/src/icons/copy.svg";
|
|
22
|
+
import crown from "dso-toolkit/src/icons/crown.svg";
|
|
23
|
+
import cultural from "dso-toolkit/src/icons/cultural.svg";
|
|
24
|
+
import document from "dso-toolkit/src/icons/document.svg";
|
|
25
|
+
import download from "dso-toolkit/src/icons/download.svg";
|
|
26
|
+
import email from "dso-toolkit/src/icons/email.svg";
|
|
27
|
+
import energy from "dso-toolkit/src/icons/energy.svg";
|
|
28
|
+
import environment from "dso-toolkit/src/icons/environment.svg";
|
|
29
|
+
import exclamation from "dso-toolkit/src/icons/exclamation.svg";
|
|
30
|
+
import externalLink from "dso-toolkit/src/icons/external-link.svg";
|
|
31
|
+
import eyeSlash from "dso-toolkit/src/icons/eye-slash.svg";
|
|
32
|
+
import eye from "dso-toolkit/src/icons/eye.svg";
|
|
33
|
+
import filter from "dso-toolkit/src/icons/filter.svg";
|
|
34
|
+
import forbidden from "dso-toolkit/src/icons/forbidden.svg";
|
|
35
|
+
import health from "dso-toolkit/src/icons/health.svg";
|
|
36
|
+
import helpActive from "dso-toolkit/src/icons/help-active.svg";
|
|
37
|
+
import help from "dso-toolkit/src/icons/help.svg";
|
|
38
|
+
import house from "dso-toolkit/src/icons/house.svg";
|
|
39
|
+
import infoActive from "dso-toolkit/src/icons/info-active.svg";
|
|
40
|
+
import infoI from "dso-toolkit/src/icons/info-i.svg";
|
|
41
|
+
import info from "dso-toolkit/src/icons/info.svg";
|
|
42
|
+
import infrastructure from "dso-toolkit/src/icons/infrastructure.svg";
|
|
43
|
+
import label from "dso-toolkit/src/icons/label.svg";
|
|
44
|
+
import land from "dso-toolkit/src/icons/land.svg";
|
|
45
|
+
import landscape from "dso-toolkit/src/icons/landscape.svg";
|
|
46
|
+
import layers from "dso-toolkit/src/icons/layers.svg";
|
|
47
|
+
import location from "dso-toolkit/src/icons/location.svg";
|
|
48
|
+
import locationOutline from "dso-toolkit/src/icons/location-outline.svg";
|
|
49
|
+
import locationSearch from "dso-toolkit/src/icons/location-search.svg";
|
|
50
|
+
import lock from "dso-toolkit/src/icons/lock.svg";
|
|
51
|
+
import magnet from "dso-toolkit/src/icons/magnet.svg";
|
|
52
|
+
import mapLayers from "dso-toolkit/src/icons/map-layers.svg";
|
|
53
|
+
import mapLocation from "dso-toolkit/src/icons/map-location.svg";
|
|
54
|
+
import marker from "dso-toolkit/src/icons/marker.svg";
|
|
55
|
+
import measurement from "dso-toolkit/src/icons/measurement.svg";
|
|
56
|
+
import minusSquare from "dso-toolkit/src/icons/minus-square.svg";
|
|
57
|
+
import minus from "dso-toolkit/src/icons/minus.svg";
|
|
58
|
+
import more from "dso-toolkit/src/icons/more.svg";
|
|
59
|
+
import municipality from "dso-toolkit/src/icons/municipality.svg";
|
|
60
|
+
import nature from "dso-toolkit/src/icons/nature.svg";
|
|
61
|
+
import newWindow from "dso-toolkit/src/icons/new-window.svg";
|
|
62
|
+
import paperclip from "dso-toolkit/src/icons/paperclip.svg";
|
|
63
|
+
import parking from "dso-toolkit/src/icons/parking.svg";
|
|
64
|
+
import pencil from "dso-toolkit/src/icons/pencil.svg";
|
|
65
|
+
import pin from "dso-toolkit/src/icons/pin.svg";
|
|
66
|
+
import pinOutline from "dso-toolkit/src/icons/pin-outline.svg";
|
|
67
|
+
import plusSquare from "dso-toolkit/src/icons/plus-square.svg";
|
|
68
|
+
import plus from "dso-toolkit/src/icons/plus.svg";
|
|
69
|
+
import print from "dso-toolkit/src/icons/print.svg";
|
|
70
|
+
import procedures from "dso-toolkit/src/icons/procedures.svg";
|
|
71
|
+
import redo from "dso-toolkit/src/icons/redo.svg";
|
|
72
|
+
import safety from "dso-toolkit/src/icons/safety.svg";
|
|
73
|
+
import search from "dso-toolkit/src/icons/search.svg";
|
|
74
|
+
import scale from "dso-toolkit/src/icons/scale.svg";
|
|
75
|
+
import sitemap from "dso-toolkit/src/icons/sitemap.svg";
|
|
76
|
+
import soil from "dso-toolkit/src/icons/soil.svg";
|
|
77
|
+
import sortAscending from "dso-toolkit/src/icons/sort-ascending.svg";
|
|
78
|
+
import sortDescending from "dso-toolkit/src/icons/sort-descending.svg";
|
|
79
|
+
import sort from "dso-toolkit/src/icons/sort.svg";
|
|
80
|
+
import sound from "dso-toolkit/src/icons/sound.svg";
|
|
81
|
+
import statusError from "dso-toolkit/src/icons/status-error.svg";
|
|
82
|
+
import statusDanger from "dso-toolkit/src/icons/status-danger.svg";
|
|
83
|
+
import statusInfo from "dso-toolkit/src/icons/status-info.svg";
|
|
84
|
+
import statusSuccess from "dso-toolkit/src/icons/status-success.svg";
|
|
85
|
+
import statusWarning from "dso-toolkit/src/icons/status-warning.svg";
|
|
86
|
+
import statusWarningInline from "dso-toolkit/src/icons/status-warning-inline.svg";
|
|
87
|
+
import statusWarningInlineNegative from "dso-toolkit/src/icons/status-warning-inline-negative.svg";
|
|
88
|
+
import table from "dso-toolkit/src/icons/table.svg";
|
|
89
|
+
import times from "dso-toolkit/src/icons/times.svg";
|
|
90
|
+
import trash from "dso-toolkit/src/icons/trash.svg";
|
|
91
|
+
import undo from "dso-toolkit/src/icons/undo.svg";
|
|
92
|
+
import userLine from "dso-toolkit/src/icons/user-line.svg";
|
|
93
|
+
import user from "dso-toolkit/src/icons/user.svg";
|
|
94
|
+
import users from "dso-toolkit/src/icons/users.svg";
|
|
95
|
+
import water from "dso-toolkit/src/icons/water.svg";
|
|
96
|
+
import wipWip from "dso-toolkit/src/icons/wip-wip.svg";
|
|
97
97
|
const icons = [
|
|
98
98
|
{ alias: "air", svg: air },
|
|
99
99
|
{ alias: "angle-down", svg: angleDown },
|
|
@@ -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"; }
|