dso-toolkit 32.2.0 → 33.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/assets/dummy/images/{Medewerker.png → medewerker.png} +0 -0
- package/components/Componenten/form-elements/group-input-number.config.yml +2 -0
- package/components/Componenten/form-elements/group-input-number.njk +8 -3
- package/components/Componenten/input-number/input-number.config.yml +3 -3
- package/components/Componenten/input-number/input-number.njk +9 -8
- package/components/Componenten/list-button/list-button.njk +2 -2
- package/dist/library/@dso-toolkit/core/cjs/dso-dropdown-menu.cjs.entry.js +4 -1
- package/dist/library/@dso-toolkit/core/cjs/dso-toggletip.cjs.entry.js +2 -1
- package/dist/library/@dso-toolkit/core/cjs/dso-tree-view.cjs.entry.js +5 -4
- package/dist/library/@dso-toolkit/core/collection/components/dropdown-menu/dropdown-menu.css +4 -0
- package/dist/library/@dso-toolkit/core/collection/components/dropdown-menu/dropdown-menu.js +3 -0
- package/dist/library/@dso-toolkit/core/collection/components/toggletip/toggletip.css +4 -0
- package/dist/library/@dso-toolkit/core/collection/components/toggletip/toggletip.js +1 -0
- package/dist/library/@dso-toolkit/core/collection/components/tree-view/tree-item.js +3 -2
- package/dist/library/@dso-toolkit/core/collection/components/tree-view/tree-view.css +33 -5
- package/dist/library/@dso-toolkit/core/collection/components/tree-view/tree-view.js +11 -11
- package/dist/library/@dso-toolkit/core/collection/components/tree-view/tree-view.stories.js +23 -3
- package/dist/library/@dso-toolkit/core/custom-elements/index.js +11 -6
- package/dist/library/@dso-toolkit/core/dso-toolkit/dso-toolkit.esm.js +1 -1
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-741e96de.entry.js +5 -0
- package/dist/{toolkit/core/p-e2dc97c4.entry.js → library/@dso-toolkit/core/dso-toolkit/p-984551a8.entry.js} +1 -1
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-e814d644.entry.js +1 -0
- package/dist/library/@dso-toolkit/core/esm/dso-dropdown-menu.entry.js +4 -1
- package/dist/library/@dso-toolkit/core/esm/dso-toggletip.entry.js +2 -1
- package/dist/library/@dso-toolkit/core/esm/dso-tree-view.entry.js +5 -4
- package/dist/library/@dso-toolkit/core/types/components/dropdown-menu/dropdown-menu.d.ts +1 -0
- package/dist/library/@dso-toolkit/core/types/components/tree-view/tree-item.d.ts +4 -4
- package/dist/library/@dso-toolkit/core/types/components/tree-view/tree-view.d.ts +12 -9
- package/dist/library/@dso-toolkit/core/types/components/tree-view/tree-view.interfaces.d.ts +14 -4
- package/dist/library/@dso-toolkit/core/types/components/tree-view/tree-view.template.d.ts +1 -1
- package/dist/library/@dso-toolkit/core/types/components.d.ts +7 -7
- package/dist/library/components/detail/activiteiten.html +2 -1
- package/dist/library/components/detail/form--autocomplete.html +1 -1
- package/dist/library/components/detail/form--form-horizontal.html +4 -1
- package/dist/library/components/detail/form--form-vertical.html +4 -1
- package/dist/library/components/detail/form--multi-page.html +1 -1
- package/dist/library/components/detail/form--sections.html +1 -1
- package/dist/library/components/detail/form--simple-form.html +1 -1
- package/dist/library/components/detail/form--single-page.html +1 -1
- package/dist/library/components/detail/form.html +7 -1
- package/dist/library/components/detail/group-input-number--default.html +11 -3
- package/dist/library/components/detail/group-input-number--input-number-inactive.html +11 -3
- package/dist/library/components/detail/group-input-number--input-number-maximum-limit.html +13 -4
- package/dist/library/components/detail/group-input-number--input-number-minimum-limit.html +13 -4
- package/dist/library/components/detail/group-input-number--no-label.html +10 -6
- package/dist/library/components/detail/group-input-number.html +26 -8
- package/dist/library/components/detail/input-number--default.html +8 -7
- package/dist/library/components/detail/input-number--input-number-inactive.html +8 -7
- package/dist/library/components/detail/input-number--input-number-maximum-limit.html +9 -8
- package/dist/library/components/detail/input-number--input-number-minimum-limit.html +9 -8
- package/dist/library/components/detail/input-number--no-label.html +10 -9
- package/dist/library/components/detail/input-number.html +12 -11
- package/dist/library/components/detail/list-button--button-disabled.html +2 -2
- package/dist/library/components/detail/list-button--button-met-extra-label-disabled.html +2 -2
- package/dist/library/components/detail/list-button--button-met-extra-label-en-input-number.html +4 -3
- package/dist/library/components/detail/list-button--button-met-extra-label-selected.html +2 -2
- package/dist/library/components/detail/list-button--button-met-extra-label.html +2 -2
- package/dist/library/components/detail/list-button--button-met-input-number-selected.html +4 -3
- package/dist/library/components/detail/list-button--button-met-input-number.html +4 -3
- package/dist/library/components/detail/list-button--button-met-lange-optionele-tekst-en-extra-label.html +2 -2
- package/dist/library/components/detail/list-button--button-met-lange-optionele-tekst-en-input-number-en-extra-label.html +4 -3
- package/dist/library/components/detail/list-button--button-met-lange-optionele-tekst-en-input-number.html +4 -3
- package/dist/library/components/detail/list-button--button-met-lange-optionele-tekst.html +2 -2
- package/dist/library/components/detail/list-button--button-met-optionele-tekst-disabled.html +2 -2
- package/dist/library/components/detail/list-button--button-met-optionele-tekst-en-extra-label-disabled.html +2 -2
- package/dist/library/components/detail/list-button--button-met-optionele-tekst-en-extra-label-selected.html +2 -2
- package/dist/library/components/detail/list-button--button-met-optionele-tekst-en-extra-label.html +2 -2
- package/dist/library/components/detail/list-button--button-met-optionele-tekst-en-input-number-en-extra-label.html +4 -3
- package/dist/library/components/detail/list-button--button-met-optionele-tekst-en-input-number.html +4 -3
- package/dist/library/components/detail/list-button--button-met-optionele-tekst-selected.html +2 -2
- package/dist/library/components/detail/list-button--button-met-optionele-tekst.html +2 -2
- package/dist/library/components/detail/list-button--button-selected.html +2 -2
- package/dist/library/components/detail/list-button--default.html +2 -2
- package/dist/library/components/detail/list-button.html +16 -9
- package/dist/library/components/preview/activiteiten.html +2 -0
- package/dist/library/components/preview/group-input-number--default.html +14 -10
- package/dist/library/components/preview/group-input-number--input-number-inactive.html +14 -10
- package/dist/library/components/preview/group-input-number--input-number-maximum-limit.html +14 -10
- package/dist/library/components/preview/group-input-number--input-number-minimum-limit.html +14 -10
- package/dist/library/components/preview/group-input-number--no-label.html +10 -10
- package/dist/library/components/preview/group-input-number.html +66 -50
- package/dist/library/components/preview/input-number--default.html +9 -7
- package/dist/library/components/preview/input-number--input-number-inactive.html +9 -7
- package/dist/library/components/preview/input-number--input-number-maximum-limit.html +9 -7
- package/dist/library/components/preview/input-number--input-number-minimum-limit.html +9 -7
- package/dist/library/components/preview/input-number--no-label.html +9 -7
- package/dist/library/components/preview/input-number.html +40 -35
- package/dist/library/components/preview/list-button--button-met-extra-label-en-input-number.html +10 -8
- package/dist/library/components/preview/list-button--button-met-input-number-selected.html +10 -8
- package/dist/library/components/preview/list-button--button-met-input-number.html +10 -8
- package/dist/library/components/preview/list-button--button-met-lange-optionele-tekst-en-input-number-en-extra-label.html +10 -8
- package/dist/library/components/preview/list-button--button-met-lange-optionele-tekst-en-input-number.html +10 -8
- package/dist/library/components/preview/list-button--button-met-optionele-tekst-en-input-number-en-extra-label.html +10 -8
- package/dist/library/components/preview/list-button--button-met-optionele-tekst-en-input-number.html +10 -8
- package/dist/library/components/preview/list-button.html +63 -49
- package/dist/library/components/render/activiteiten.html +10 -8
- package/dist/library/components/render/form--form-horizontal.html +14 -10
- package/dist/library/components/render/form--form-vertical.html +14 -10
- package/dist/library/components/render/form.html +28 -20
- package/dist/library/components/render/group-input-number--default.html +14 -10
- package/dist/library/components/render/group-input-number--input-number-inactive.html +14 -10
- package/dist/library/components/render/group-input-number--input-number-maximum-limit.html +14 -10
- package/dist/library/components/render/group-input-number--input-number-minimum-limit.html +14 -10
- package/dist/library/components/render/group-input-number--no-label.html +10 -10
- package/dist/library/components/render/group-input-number.html +66 -50
- package/dist/library/components/render/input-number--default.html +9 -7
- package/dist/library/components/render/input-number--input-number-inactive.html +9 -7
- package/dist/library/components/render/input-number--input-number-maximum-limit.html +9 -7
- package/dist/library/components/render/input-number--input-number-minimum-limit.html +9 -7
- package/dist/library/components/render/input-number--no-label.html +9 -7
- package/dist/library/components/render/input-number.html +40 -35
- package/dist/library/components/render/list-button--button-met-extra-label-en-input-number.html +10 -8
- package/dist/library/components/render/list-button--button-met-input-number-selected.html +10 -8
- package/dist/library/components/render/list-button--button-met-input-number.html +10 -8
- package/dist/library/components/render/list-button--button-met-lange-optionele-tekst-en-input-number-en-extra-label.html +10 -8
- package/dist/library/components/render/list-button--button-met-lange-optionele-tekst-en-input-number.html +10 -8
- package/dist/library/components/render/list-button--button-met-optionele-tekst-en-input-number-en-extra-label.html +10 -8
- package/dist/library/components/render/list-button--button-met-optionele-tekst-en-input-number.html +10 -8
- package/dist/library/components/render/list-button.html +63 -49
- package/dist/library/dummy/images/{Medewerker.png → medewerker.png} +0 -0
- package/dist/toolkit/core/dso-toolkit.esm.js +1 -1
- package/dist/toolkit/core/p-741e96de.entry.js +5 -0
- package/dist/{library/@dso-toolkit/core/dso-toolkit/p-e2dc97c4.entry.js → toolkit/core/p-984551a8.entry.js} +1 -1
- package/dist/toolkit/core/p-e814d644.entry.js +1 -0
- package/dist/toolkit/dummy/images/{Medewerker.png → medewerker.png} +0 -0
- package/hydrate/index.js +11 -6
- package/libs/@dso-toolkit/sources/src/components/input-number/input-number.stories.ts +1 -1
- package/libs/@dso-toolkit/sources/src/components/tree-view/tree-view.content.ts +40 -39
- package/libs/@dso-toolkit/sources/src/components/tree-view/tree-view.demo.ts +92 -9
- package/libs/@dso-toolkit/sources/src/components/tree-view/tree-view.models.ts +20 -9
- package/libs/@dso-toolkit/sources/src/components/tree-view/tree-view.stories.ts +16 -5
- package/package.json +2 -2
- package/reference/render/activiteiten.html +1 -1
- package/reference/render/group-input-number--input-number-maximum-limit.html +1 -1
- package/reference/render/group-input-number--input-number-minimum-limit.html +1 -1
- package/reference/render/group-input-number--no-label.html +1 -3
- package/reference/render/input-number--no-label.html +1 -1
- package/reference/render/list-button--button-met-extra-label-en-input-number.html +1 -1
- package/reference/render/list-button--button-met-input-number-selected.html +1 -1
- package/reference/render/list-button--button-met-input-number.html +1 -1
- package/reference/render/list-button--button-met-lange-optionele-tekst-en-input-number-en-extra-label.html +1 -1
- package/reference/render/list-button--button-met-lange-optionele-tekst-en-input-number.html +1 -1
- package/reference/render/list-button--button-met-optionele-tekst-en-input-number-en-extra-label.html +1 -1
- package/reference/render/list-button--button-met-optionele-tekst-en-input-number.html +1 -1
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-12f7e7d7.entry.js +0 -5
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-ad8f467f.entry.js +0 -1
- package/dist/toolkit/core/p-12f7e7d7.entry.js +0 -5
- package/dist/toolkit/core/p-ad8f467f.entry.js +0 -1
|
File without changes
|
|
@@ -24,6 +24,7 @@ variants:
|
|
|
24
24
|
label: Input number with minimum limit
|
|
25
25
|
id: minimum-limit
|
|
26
26
|
count: 0
|
|
27
|
+
min: 0
|
|
27
28
|
minusButtonInactive: true
|
|
28
29
|
minusButtonLabel: Aantal verlagen (disabled)
|
|
29
30
|
- name: input-number-maximum-limit
|
|
@@ -31,6 +32,7 @@ variants:
|
|
|
31
32
|
__title: Maximum limit (optional)
|
|
32
33
|
label: Input number with maximum limit
|
|
33
34
|
id: maximum-limit
|
|
35
|
+
max: 99
|
|
34
36
|
plusButtonInactive: true
|
|
35
37
|
plusButtonLabel: Aantal verhogen (disabled)
|
|
36
38
|
- name: no-label
|
|
@@ -2,14 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
<div class="form-group dso-input-number">
|
|
4
4
|
<div class="dso-label-container">
|
|
5
|
-
|
|
6
|
-
{{
|
|
7
|
-
|
|
5
|
+
{% if label %}
|
|
6
|
+
<label for="{{ localId }}" class="control-label">
|
|
7
|
+
{{ label }}
|
|
8
|
+
</label>
|
|
9
|
+
{% endif %}
|
|
8
10
|
</div>
|
|
9
11
|
<div class="dso-field-container">
|
|
10
12
|
{% render '@input-number', {
|
|
11
13
|
id: localId,
|
|
12
14
|
count: count,
|
|
15
|
+
min: min,
|
|
16
|
+
max: max,
|
|
17
|
+
label: null if label else '',
|
|
13
18
|
minusButtonLabel: minusButtonLabel,
|
|
14
19
|
minusButtonInactive: minusButtonInactive,
|
|
15
20
|
plusButtonLabel: plusButtonLabel,
|
|
@@ -24,7 +24,7 @@ variants:
|
|
|
24
24
|
label: Input number with minimum limit
|
|
25
25
|
id: minimum-limit
|
|
26
26
|
count: 0
|
|
27
|
-
min:
|
|
27
|
+
min: 0
|
|
28
28
|
minusButtonInactive: true
|
|
29
29
|
minusButtonLabel: Aantal verlagen (disabled)
|
|
30
30
|
- name: input-number-maximum-limit
|
|
@@ -33,11 +33,11 @@ variants:
|
|
|
33
33
|
label: Input number with maximum limit
|
|
34
34
|
id: maximum-limit
|
|
35
35
|
count: 5
|
|
36
|
-
max:
|
|
36
|
+
max: 99
|
|
37
37
|
plusButtonInactive: true
|
|
38
38
|
plusButtonLabel: Aantal verhogen (disabled)
|
|
39
39
|
- name: no-label
|
|
40
40
|
context:
|
|
41
41
|
__title: no label
|
|
42
|
-
label:
|
|
42
|
+
label: ""
|
|
43
43
|
id: no-label
|
|
@@ -6,12 +6,13 @@
|
|
|
6
6
|
{% endif %}
|
|
7
7
|
{% render '@button', {type: 'button', modifier: 'dso-tertiary', label: minusButtonLabel, icon: 'minus-square', iconOnly: 'true', disabled: minusButtonInactive} %}
|
|
8
8
|
<input type="number"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
9
|
+
id="{{ id }}"
|
|
10
|
+
readonly
|
|
11
|
+
tabindex="-1"
|
|
12
|
+
{% if min or min == 0 %} min="{{ min }}"{% endif %}
|
|
13
|
+
{% if max or max == 0 %} max="{{ max }}"{% endif %}
|
|
14
|
+
{% if not label and label != null %} aria-label="Aantal"{% endif %}
|
|
15
|
+
class="dso-input-step-counter"
|
|
16
|
+
value="{{ count }}">
|
|
16
17
|
{% render '@button', {type: 'button', modifier: 'dso-tertiary', label: plusButtonLabel, icon: 'plus-square', iconOnly: 'true', disabled: plusButtonInactive} %}
|
|
17
|
-
</div>
|
|
18
|
+
</div>
|
|
@@ -16,6 +16,6 @@
|
|
|
16
16
|
{% endif %}
|
|
17
17
|
</button>
|
|
18
18
|
{% if inputNumber == true %}
|
|
19
|
-
{% render '@input-number', { id: localId, count: count, minusButtonLabel: minusButtonLabel, minusButtonInactive: minusButtonInactive, plusButtonLabel: plusButtonLabel, plusButtonInactive: plusButtonInactive } %}
|
|
20
|
-
</div>
|
|
19
|
+
{% render '@input-number', { id: localId, count: count, label: '', minusButtonLabel: minusButtonLabel, minusButtonInactive: minusButtonInactive, plusButtonLabel: plusButtonLabel, plusButtonInactive: plusButtonInactive } %}
|
|
20
|
+
</div>
|
|
21
21
|
{% endif %}
|
|
@@ -230,7 +230,7 @@ var tabbable = function tabbable(el, options) {
|
|
|
230
230
|
return tabbableNodes;
|
|
231
231
|
};
|
|
232
232
|
|
|
233
|
-
const dropdownMenuCss = ":host{--di-check-wit:url(\"data:image/svg+xml,%3csvg id='check' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: white%3b'%3e %3cpath fill='currentColor' d='M10.11%2c18%2c5.29%2c13.31A.92.92%2c0%2c0%2c1%2c5.3%2c12a1%2c1%2c0%2c0%2c1%2c1.41%2c0l3.4%2c3.3%2c7.18-7a1%2c1%2c0%2c0%2c1%2c1.41%2c0%2c.92.92%2c0%2c0%2c1%2c0%2c1.35Z'/%3e %3c/svg%3e\");--di-chevron-down:url(\"data:image/svg+xml,%3csvg id='chevron-down' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %2339870c%3b'%3e %3cpath fill='currentColor' d='M12%2c16%2c5.29%2c9.63a.93.93%2c0%2c0%2c1%2c0-1.35%2c1%2c1%2c0%2c0%2c1%2c1.42%2c0l5.29%2c5%2c5.29-5a1%2c1%2c0%2c0%2c1%2c1.42%2c0%2c.91.91%2c0%2c0%2c1%2c0%2c1.34Z'/%3e %3c/svg%3e\");--di-chevron-down-scampi:url(\"data:image/svg+xml,%3csvg id='chevron-down' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %23676cb0%3b'%3e %3cpath fill='currentColor' d='M12%2c16%2c5.29%2c9.63a.93.93%2c0%2c0%2c1%2c0-1.35%2c1%2c1%2c0%2c0%2c1%2c1.42%2c0l5.29%2c5%2c5.29-5a1%2c1%2c0%2c0%2c1%2c1.42%2c0%2c.91.91%2c0%2c0%2c1%2c0%2c1.34Z'/%3e %3c/svg%3e\");--di-chevron-down-wit:url(\"data:image/svg+xml,%3csvg id='chevron-down' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: white%3b'%3e %3cpath fill='currentColor' d='M12%2c16%2c5.29%2c9.63a.93.93%2c0%2c0%2c1%2c0-1.35%2c1%2c1%2c0%2c0%2c1%2c1.42%2c0l5.29%2c5%2c5.29-5a1%2c1%2c0%2c0%2c1%2c1.42%2c0%2c.91.91%2c0%2c0%2c1%2c0%2c1.34Z'/%3e %3c/svg%3e\");--di-chevron-up:url(\"data:image/svg+xml,%3csvg id='chevron-up' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %2339870c%3b'%3e %3cpath fill='currentColor' d='M18%2c16a1%2c1%2c0%2c0%2c1-.71-.28l-5.29-5-5.29%2c5a1%2c1%2c0%2c0%2c1-1.42%2c0%2c.93.93%2c0%2c0%2c1%2c0-1.35L12%2c8l6.71%2c6.38a.91.91%2c0%2c0%2c1%2c0%2c1.34A1%2c1%2c0%2c0%2c1%2c18%2c16Z'/%3e %3c/svg%3e\");--di-chevron-up-scampi:url(\"data:image/svg+xml,%3csvg id='chevron-up' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %23676cb0%3b'%3e %3cpath fill='currentColor' d='M18%2c16a1%2c1%2c0%2c0%2c1-.71-.28l-5.29-5-5.29%2c5a1%2c1%2c0%2c0%2c1-1.42%2c0%2c.93.93%2c0%2c0%2c1%2c0-1.35L12%2c8l6.71%2c6.38a.91.91%2c0%2c0%2c1%2c0%2c1.34A1%2c1%2c0%2c0%2c1%2c18%2c16Z'/%3e %3c/svg%3e\");--di-chevron-up-wit:url(\"data:image/svg+xml,%3csvg id='chevron-up' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: white%3b'%3e %3cpath fill='currentColor' d='M18%2c16a1%2c1%2c0%2c0%2c1-.71-.28l-5.29-5-5.29%2c5a1%2c1%2c0%2c0%2c1-1.42%2c0%2c.93.93%2c0%2c0%2c1%2c0-1.35L12%2c8l6.71%2c6.38a.91.91%2c0%2c0%2c1%2c0%2c1.34A1%2c1%2c0%2c0%2c1%2c18%2c16Z'/%3e %3c/svg%3e\");display:inline-block;position:relative}";
|
|
233
|
+
const dropdownMenuCss = ":host(:focus){outline:none}:host{--di-check-wit:url(\"data:image/svg+xml,%3csvg id='check' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: white%3b'%3e %3cpath fill='currentColor' d='M10.11%2c18%2c5.29%2c13.31A.92.92%2c0%2c0%2c1%2c5.3%2c12a1%2c1%2c0%2c0%2c1%2c1.41%2c0l3.4%2c3.3%2c7.18-7a1%2c1%2c0%2c0%2c1%2c1.41%2c0%2c.92.92%2c0%2c0%2c1%2c0%2c1.35Z'/%3e %3c/svg%3e\");--di-chevron-down:url(\"data:image/svg+xml,%3csvg id='chevron-down' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %2339870c%3b'%3e %3cpath fill='currentColor' d='M12%2c16%2c5.29%2c9.63a.93.93%2c0%2c0%2c1%2c0-1.35%2c1%2c1%2c0%2c0%2c1%2c1.42%2c0l5.29%2c5%2c5.29-5a1%2c1%2c0%2c0%2c1%2c1.42%2c0%2c.91.91%2c0%2c0%2c1%2c0%2c1.34Z'/%3e %3c/svg%3e\");--di-chevron-down-scampi:url(\"data:image/svg+xml,%3csvg id='chevron-down' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %23676cb0%3b'%3e %3cpath fill='currentColor' d='M12%2c16%2c5.29%2c9.63a.93.93%2c0%2c0%2c1%2c0-1.35%2c1%2c1%2c0%2c0%2c1%2c1.42%2c0l5.29%2c5%2c5.29-5a1%2c1%2c0%2c0%2c1%2c1.42%2c0%2c.91.91%2c0%2c0%2c1%2c0%2c1.34Z'/%3e %3c/svg%3e\");--di-chevron-down-wit:url(\"data:image/svg+xml,%3csvg id='chevron-down' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: white%3b'%3e %3cpath fill='currentColor' d='M12%2c16%2c5.29%2c9.63a.93.93%2c0%2c0%2c1%2c0-1.35%2c1%2c1%2c0%2c0%2c1%2c1.42%2c0l5.29%2c5%2c5.29-5a1%2c1%2c0%2c0%2c1%2c1.42%2c0%2c.91.91%2c0%2c0%2c1%2c0%2c1.34Z'/%3e %3c/svg%3e\");--di-chevron-up:url(\"data:image/svg+xml,%3csvg id='chevron-up' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %2339870c%3b'%3e %3cpath fill='currentColor' d='M18%2c16a1%2c1%2c0%2c0%2c1-.71-.28l-5.29-5-5.29%2c5a1%2c1%2c0%2c0%2c1-1.42%2c0%2c.93.93%2c0%2c0%2c1%2c0-1.35L12%2c8l6.71%2c6.38a.91.91%2c0%2c0%2c1%2c0%2c1.34A1%2c1%2c0%2c0%2c1%2c18%2c16Z'/%3e %3c/svg%3e\");--di-chevron-up-scampi:url(\"data:image/svg+xml,%3csvg id='chevron-up' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %23676cb0%3b'%3e %3cpath fill='currentColor' d='M18%2c16a1%2c1%2c0%2c0%2c1-.71-.28l-5.29-5-5.29%2c5a1%2c1%2c0%2c0%2c1-1.42%2c0%2c.93.93%2c0%2c0%2c1%2c0-1.35L12%2c8l6.71%2c6.38a.91.91%2c0%2c0%2c1%2c0%2c1.34A1%2c1%2c0%2c0%2c1%2c18%2c16Z'/%3e %3c/svg%3e\");--di-chevron-up-wit:url(\"data:image/svg+xml,%3csvg id='chevron-up' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: white%3b'%3e %3cpath fill='currentColor' d='M18%2c16a1%2c1%2c0%2c0%2c1-.71-.28l-5.29-5-5.29%2c5a1%2c1%2c0%2c0%2c1-1.42%2c0%2c.93.93%2c0%2c0%2c1%2c0-1.35L12%2c8l6.71%2c6.38a.91.91%2c0%2c0%2c1%2c0%2c1.34A1%2c1%2c0%2c0%2c1%2c18%2c16Z'/%3e %3c/svg%3e\");display:inline-block;position:relative}";
|
|
234
234
|
|
|
235
235
|
let DropdownMenu = class {
|
|
236
236
|
constructor(hostRef) {
|
|
@@ -325,6 +325,9 @@ let DropdownMenu = class {
|
|
|
325
325
|
this.openPopup();
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
|
+
componentDidRender() {
|
|
329
|
+
this.host.setAttribute("tabindex", "-1");
|
|
330
|
+
}
|
|
328
331
|
componentWillRender() {
|
|
329
332
|
for (const li of Array.from(this.host.getElementsByTagName("li"))) {
|
|
330
333
|
for (const tab of tabbable(li)) {
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-fcdfdd38.js');
|
|
6
6
|
|
|
7
|
-
const toggletipCss = "*,*::after,*::before{box-sizing:border-box}";
|
|
7
|
+
const toggletipCss = "*,*::after,*::before{box-sizing:border-box}:host(:focus){outline:none}";
|
|
8
8
|
|
|
9
9
|
let Toggletip = class {
|
|
10
10
|
constructor(hostRef) {
|
|
@@ -51,6 +51,7 @@ let Toggletip = class {
|
|
|
51
51
|
throw Error("button not found");
|
|
52
52
|
}
|
|
53
53
|
this.button = button;
|
|
54
|
+
this.host.setAttribute("tabindex", "-1");
|
|
54
55
|
}
|
|
55
56
|
render() {
|
|
56
57
|
return (index.h(index.Fragment, null, index.h("dso-info-button", { id: "toggle", onClick: this.click, label: this.label, active: this.active, secondary: this.secondary }), index.h("dso-tooltip", { stateless: true, for: "toggle", active: this.active, position: this.position, small: this.small }, index.h("slot", null))));
|
|
@@ -7,13 +7,14 @@ const clsx_m = require('./clsx.m-b00fa5e1.js');
|
|
|
7
7
|
|
|
8
8
|
const DsoTreeItem = ({ owner, ancestors, item, index: index$1, level, setSize }) => {
|
|
9
9
|
var _a, _b, _c;
|
|
10
|
-
return (index.h("li", { key: item.
|
|
10
|
+
return (index.h("li", { key: item.id, class: clsx_m.clsx('tree-item', { 'has-child': item.hasItems }), role: 'none' },
|
|
11
11
|
index.h("div", { class: "tree-branch-control" }, item.hasItems
|
|
12
12
|
?
|
|
13
13
|
index.h("div", { onClick: (e) => owner.itemClick(e, ancestors, item) },
|
|
14
14
|
index.h("dso-icon", { icon: item.open ? 'chevron-down' : 'chevron-right' }))
|
|
15
15
|
: index.h("dso-icon", null)),
|
|
16
|
-
index.h("p", { class:
|
|
16
|
+
index.h("p", { class: clsx_m.clsx('tree-content', { 'active': item.active }, { 'selected': item.selected }), tabindex: level === 1 && index$1 === 0 ? 0 : -1, role: "treeitem", "aria-expanded": item.hasItems ? '' + (!!item.open && !!((_a = item.items) === null || _a === void 0 ? void 0 : _a.length)) : undefined, "aria-current": item.active ? 'true' : undefined, "aria-level": level, "aria-setsize": setSize, "aria-posinset": index$1 + 1, "aria-busy": item.loading ? 'true' : undefined, onClick: (e) => owner.itemClick(e, ancestors, item) },
|
|
17
|
+
item.selected && index.h("span", { class: "sr-only" }, "Resultaat: "),
|
|
17
18
|
item.href
|
|
18
19
|
? index.h("a", { href: item.href, tabindex: "-1" }, item.label)
|
|
19
20
|
: index.h("span", null, item.label), (_b = item.icons) === null || _b === void 0 ? void 0 :
|
|
@@ -24,7 +25,7 @@ const DsoTreeItem = ({ owner, ancestors, item, index: index$1, level, setSize })
|
|
|
24
25
|
: index.h("ul", { role: "group" }, (_c = item.items) === null || _c === void 0 ? void 0 : _c.map((childItem, index$1, org) => index.h(DsoTreeItem, { owner: owner, ancestors: [...ancestors, item], item: childItem, index: index$1, level: level + 1, setSize: org.length }))))));
|
|
25
26
|
};
|
|
26
27
|
|
|
27
|
-
const treeViewCss = ":host ul{list-style-type:none}:host ul[role=tree]{padding-left:0}:host li[role=treeitem]>ul{padding-left:1.5em}:host .tree-branch-control{cursor:pointer;display:inline-block}:host .tree-content{cursor:pointer;display:inline-block;margin:8px 0}:host .tree-content a,:host .tree-content a:visited{color:#
|
|
28
|
+
const treeViewCss = ":host ul{list-style-type:none}:host ul[role=tree]{padding-left:0}:host li[role=treeitem]>ul{padding-left:1.5em}:host .tree-branch-control{cursor:pointer;display:inline-block}:host .tree-content{cursor:pointer;display:inline-block;margin:8px 0}:host .tree-content.active{font-weight:700}:host .tree-content.active:hover{text-decoration:underline}:host .tree-content.active a{text-decoration:none}:host .tree-content.selected{color:#191919;font-weight:700;text-decoration:underline}:host .tree-content.selected:hover,:host .tree-content.selected:focus{text-decoration:none}:host .tree-content a,:host .tree-content a:visited{color:#191919;text-decoration:underline}:host .tree-content a:hover,:host .tree-content a:focus{color:#191919;text-decoration:none}:host .tree-content a:active{text-decoration:none}:host .tree-content dso-icon{font-size:0.75em;margin-left:0.5em;vertical-align:text-bottom}*,*::after,*::before{box-sizing:border-box}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}";
|
|
28
29
|
|
|
29
30
|
let TreeView = class {
|
|
30
31
|
constructor(hostRef) {
|
|
@@ -85,7 +86,7 @@ let TreeView = class {
|
|
|
85
86
|
return;
|
|
86
87
|
}
|
|
87
88
|
TreeView.setFocus(tree, contentElement);
|
|
88
|
-
this.clickItem.emit([...ancestors, item]);
|
|
89
|
+
this.clickItem.emit({ path: [...ancestors, item], originalEvent: event });
|
|
89
90
|
return;
|
|
90
91
|
}
|
|
91
92
|
if (item.open) {
|
package/dist/library/@dso-toolkit/core/collection/components/dropdown-menu/dropdown-menu.css
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
/* stylelint-disable value-keyword-case */
|
|
2
2
|
/* stylelint-disable string-no-newline */
|
|
3
3
|
/* stylelint-enable */
|
|
4
|
+
:host(:focus) {
|
|
5
|
+
outline: none;
|
|
6
|
+
}
|
|
7
|
+
|
|
4
8
|
:host {
|
|
5
9
|
--di-check-wit: url("data:image/svg+xml,%3csvg id='check' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: white%3b'%3e %3cpath fill='currentColor' d='M10.11%2c18%2c5.29%2c13.31A.92.92%2c0%2c0%2c1%2c5.3%2c12a1%2c1%2c0%2c0%2c1%2c1.41%2c0l3.4%2c3.3%2c7.18-7a1%2c1%2c0%2c0%2c1%2c1.41%2c0%2c.92.92%2c0%2c0%2c1%2c0%2c1.35Z'/%3e %3c/svg%3e");
|
|
6
10
|
--di-chevron-down: url("data:image/svg+xml,%3csvg id='chevron-down' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %2339870c%3b'%3e %3cpath fill='currentColor' d='M12%2c16%2c5.29%2c9.63a.93.93%2c0%2c0%2c1%2c0-1.35%2c1%2c1%2c0%2c0%2c1%2c1.42%2c0l5.29%2c5%2c5.29-5a1%2c1%2c0%2c0%2c1%2c1.42%2c0%2c.91.91%2c0%2c0%2c1%2c0%2c1.34Z'/%3e %3c/svg%3e");
|
|
@@ -93,6 +93,9 @@ export class DropdownMenu {
|
|
|
93
93
|
this.openPopup();
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
|
+
componentDidRender() {
|
|
97
|
+
this.host.setAttribute("tabindex", "-1");
|
|
98
|
+
}
|
|
96
99
|
componentWillRender() {
|
|
97
100
|
for (const li of Array.from(this.host.getElementsByTagName("li"))) {
|
|
98
101
|
for (const tab of tabbable(li)) {
|
|
@@ -2,13 +2,14 @@ import { h, Fragment } from '@stencil/core';
|
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
export const DsoTreeItem = ({ owner, ancestors, item, index, level, setSize }) => {
|
|
4
4
|
var _a, _b, _c;
|
|
5
|
-
return (h("li", { key: item.
|
|
5
|
+
return (h("li", { key: item.id, class: clsx('tree-item', { 'has-child': item.hasItems }), role: 'none' },
|
|
6
6
|
h("div", { class: "tree-branch-control" }, item.hasItems
|
|
7
7
|
?
|
|
8
8
|
h("div", { onClick: (e) => owner.itemClick(e, ancestors, item) },
|
|
9
9
|
h("dso-icon", { icon: item.open ? 'chevron-down' : 'chevron-right' }))
|
|
10
10
|
: h("dso-icon", null)),
|
|
11
|
-
h("p", { class:
|
|
11
|
+
h("p", { class: clsx('tree-content', { 'active': item.active }, { 'selected': item.selected }), tabindex: level === 1 && index === 0 ? 0 : -1, role: "treeitem", "aria-expanded": item.hasItems ? '' + (!!item.open && !!((_a = item.items) === null || _a === void 0 ? void 0 : _a.length)) : undefined, "aria-current": item.active ? 'true' : undefined, "aria-level": level, "aria-setsize": setSize, "aria-posinset": index + 1, "aria-busy": item.loading ? 'true' : undefined, onClick: (e) => owner.itemClick(e, ancestors, item) },
|
|
12
|
+
item.selected && h("span", { class: "sr-only" }, "Resultaat: "),
|
|
12
13
|
item.href
|
|
13
14
|
? h("a", { href: item.href, tabindex: "-1" }, item.label)
|
|
14
15
|
: h("span", null, item.label), (_b = item.icons) === null || _b === void 0 ? void 0 :
|
|
@@ -19,25 +19,53 @@
|
|
|
19
19
|
display: inline-block;
|
|
20
20
|
margin: 8px 0;
|
|
21
21
|
}
|
|
22
|
-
:host .tree-content
|
|
23
|
-
|
|
22
|
+
:host .tree-content.active {
|
|
23
|
+
font-weight: 700;
|
|
24
|
+
}
|
|
25
|
+
:host .tree-content.active:hover {
|
|
26
|
+
text-decoration: underline;
|
|
27
|
+
}
|
|
28
|
+
:host .tree-content.active a {
|
|
24
29
|
text-decoration: none;
|
|
25
30
|
}
|
|
26
|
-
:host .tree-content
|
|
27
|
-
color: #
|
|
31
|
+
:host .tree-content.selected {
|
|
32
|
+
color: #191919;
|
|
33
|
+
font-weight: 700;
|
|
28
34
|
text-decoration: underline;
|
|
29
35
|
}
|
|
36
|
+
:host .tree-content.selected:hover, :host .tree-content.selected:focus {
|
|
37
|
+
text-decoration: none;
|
|
38
|
+
}
|
|
39
|
+
:host .tree-content a, :host .tree-content a:visited {
|
|
40
|
+
color: #191919;
|
|
41
|
+
text-decoration: underline;
|
|
42
|
+
}
|
|
43
|
+
:host .tree-content a:hover, :host .tree-content a:focus {
|
|
44
|
+
color: #191919;
|
|
45
|
+
text-decoration: none;
|
|
46
|
+
}
|
|
30
47
|
:host .tree-content a:active {
|
|
31
48
|
text-decoration: none;
|
|
32
49
|
}
|
|
33
50
|
:host .tree-content dso-icon {
|
|
34
|
-
vertical-align: text-bottom;
|
|
35
51
|
font-size: 0.75em;
|
|
36
52
|
margin-left: 0.5em;
|
|
53
|
+
vertical-align: text-bottom;
|
|
37
54
|
}
|
|
38
55
|
|
|
39
56
|
*,
|
|
40
57
|
*::after,
|
|
41
58
|
*::before {
|
|
42
59
|
box-sizing: border-box;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.sr-only {
|
|
63
|
+
position: absolute;
|
|
64
|
+
width: 1px;
|
|
65
|
+
height: 1px;
|
|
66
|
+
padding: 0;
|
|
67
|
+
margin: -1px;
|
|
68
|
+
overflow: hidden;
|
|
69
|
+
clip: rect(0, 0, 0, 0);
|
|
70
|
+
border: 0;
|
|
43
71
|
}
|
|
@@ -55,7 +55,7 @@ export class TreeView {
|
|
|
55
55
|
return;
|
|
56
56
|
}
|
|
57
57
|
TreeView.setFocus(tree, contentElement);
|
|
58
|
-
this.clickItem.emit([...ancestors, item]);
|
|
58
|
+
this.clickItem.emit({ path: [...ancestors, item], originalEvent: event });
|
|
59
59
|
return;
|
|
60
60
|
}
|
|
61
61
|
if (item.open) {
|
|
@@ -158,8 +158,8 @@ export class TreeView {
|
|
|
158
158
|
"type": "unknown",
|
|
159
159
|
"mutable": false,
|
|
160
160
|
"complexType": {
|
|
161
|
-
"original": "TreeViewItem
|
|
162
|
-
"resolved": "TreeViewItem
|
|
161
|
+
"original": "TreeViewItem[]",
|
|
162
|
+
"resolved": "TreeViewItem[]",
|
|
163
163
|
"references": {
|
|
164
164
|
"TreeViewItem": {
|
|
165
165
|
"location": "import",
|
|
@@ -186,8 +186,8 @@ export class TreeView {
|
|
|
186
186
|
"text": "Emitted when a tree view item is opened.\nThe `detail` property of the `CustomEvent`\u00A0will contain the complete path of TreeViewItems from the\nroot to the item that is emitting the open event. The consumer of the event is responsible for updating\nthe TreeView's collection (usually set the open state on the last TreeViewItem in path)."
|
|
187
187
|
},
|
|
188
188
|
"complexType": {
|
|
189
|
-
"original": "TreeViewItem
|
|
190
|
-
"resolved": "TreeViewItem
|
|
189
|
+
"original": "TreeViewItem[]",
|
|
190
|
+
"resolved": "TreeViewItem[]",
|
|
191
191
|
"references": {
|
|
192
192
|
"TreeViewItem": {
|
|
193
193
|
"location": "import",
|
|
@@ -206,8 +206,8 @@ export class TreeView {
|
|
|
206
206
|
"text": "Emitted when a tree view item is closed.\nThe `detail` property of the `CustomEvent`\u00A0will contain the complete path of TreeViewItems from the\nroot to the item that is emitting the close event. The consumer of the event is responsible for updating\nthe TreeView's collection (usually set the closed state on the last TreeViewItem in path)."
|
|
207
207
|
},
|
|
208
208
|
"complexType": {
|
|
209
|
-
"original": "TreeViewItem
|
|
210
|
-
"resolved": "TreeViewItem
|
|
209
|
+
"original": "TreeViewItem[]",
|
|
210
|
+
"resolved": "TreeViewItem[]",
|
|
211
211
|
"references": {
|
|
212
212
|
"TreeViewItem": {
|
|
213
213
|
"location": "import",
|
|
@@ -223,13 +223,13 @@ export class TreeView {
|
|
|
223
223
|
"composed": true,
|
|
224
224
|
"docs": {
|
|
225
225
|
"tags": [],
|
|
226
|
-
"text": "Emitted when a tree view item is clicked.\nThe `detail` property of the `CustomEvent`\u00A0will contain the complete path of TreeViewItems from the
|
|
226
|
+
"text": "Emitted when a tree view item is clicked.\nThe `detail` property of the `CustomEvent`\u00A0will contain an object with:\n`path` = the complete path of TreeViewItems from the root to the item that is emitting the clicked event.\n`originalEvent` = the original click event.\nThe consumer of the event is responsible for updating the TreeView's collection (usually set the active\nstate on the last TreeViewItem in path and clear all other active item states)."
|
|
227
227
|
},
|
|
228
228
|
"complexType": {
|
|
229
|
-
"original": "
|
|
230
|
-
"resolved": "
|
|
229
|
+
"original": "TreeViewPointerEvent",
|
|
230
|
+
"resolved": "TreeViewPointerEvent",
|
|
231
231
|
"references": {
|
|
232
|
-
"
|
|
232
|
+
"TreeViewPointerEvent": {
|
|
233
233
|
"location": "import",
|
|
234
234
|
"path": "./tree-view.interfaces"
|
|
235
235
|
}
|
|
@@ -8,8 +8,10 @@ storiesOfTreeView({
|
|
|
8
8
|
storiesOf,
|
|
9
9
|
readme
|
|
10
10
|
}, {
|
|
11
|
-
treeViewDemoTemplate: (collection, onOpenItem, onCloseItem, onClickItem) => html `
|
|
12
|
-
|
|
11
|
+
treeViewDemoTemplate: (collection, onOpenItem, onCloseItem, onClickItem, onFilterInput) => html `
|
|
12
|
+
<div class="container" style="display: flex; width: 100%;">
|
|
13
|
+
<div style="flex: 1">
|
|
14
|
+
${treeViewTemplate({
|
|
13
15
|
collection,
|
|
14
16
|
onOpenItem: function (e) {
|
|
15
17
|
onOpenItem(e.detail, collection => this.collection = collection);
|
|
@@ -18,8 +20,26 @@ storiesOfTreeView({
|
|
|
18
20
|
onCloseItem(e.detail, collection => this.collection = collection);
|
|
19
21
|
},
|
|
20
22
|
onClickItem: function (e) {
|
|
21
|
-
onClickItem(e.detail);
|
|
23
|
+
onClickItem(e.detail.path, e.detail.originalEvent, collection => this.collection = collection);
|
|
22
24
|
}
|
|
23
25
|
})}
|
|
26
|
+
</div>
|
|
27
|
+
<div style="flex: 1">
|
|
28
|
+
<label for="treeViewSearchInput">Zoek</label>
|
|
29
|
+
<input
|
|
30
|
+
type="text"
|
|
31
|
+
id="treeViewSearchInput"
|
|
32
|
+
@input=${(e) => onFilterInput(e.target.value, (collection, searchResultCountText) => {
|
|
33
|
+
document.querySelector('dso-tree-view').collection = collection;
|
|
34
|
+
const target = document.getElementById('treeViewSearchResultCount');
|
|
35
|
+
if (target) {
|
|
36
|
+
target.innerText = searchResultCountText;
|
|
37
|
+
}
|
|
38
|
+
})}
|
|
39
|
+
/>
|
|
40
|
+
<span id="treeViewSearchResultCount" aria-live="polite"></span>
|
|
41
|
+
<pre id="treeViewState" style="background-color: #eee; font-size: smaller; margin: 0; overflow: auto; padding: 0.5rem">${JSON.stringify(collection, null, 2)}</pre>
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
24
44
|
`
|
|
25
45
|
});
|
|
@@ -1359,7 +1359,7 @@ var tabbable = function tabbable(el, options) {
|
|
|
1359
1359
|
return tabbableNodes;
|
|
1360
1360
|
};
|
|
1361
1361
|
|
|
1362
|
-
const dropdownMenuCss = ":host{--di-check-wit:url(\"data:image/svg+xml,%3csvg id='check' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: white%3b'%3e %3cpath fill='currentColor' d='M10.11%2c18%2c5.29%2c13.31A.92.92%2c0%2c0%2c1%2c5.3%2c12a1%2c1%2c0%2c0%2c1%2c1.41%2c0l3.4%2c3.3%2c7.18-7a1%2c1%2c0%2c0%2c1%2c1.41%2c0%2c.92.92%2c0%2c0%2c1%2c0%2c1.35Z'/%3e %3c/svg%3e\");--di-chevron-down:url(\"data:image/svg+xml,%3csvg id='chevron-down' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %2339870c%3b'%3e %3cpath fill='currentColor' d='M12%2c16%2c5.29%2c9.63a.93.93%2c0%2c0%2c1%2c0-1.35%2c1%2c1%2c0%2c0%2c1%2c1.42%2c0l5.29%2c5%2c5.29-5a1%2c1%2c0%2c0%2c1%2c1.42%2c0%2c.91.91%2c0%2c0%2c1%2c0%2c1.34Z'/%3e %3c/svg%3e\");--di-chevron-down-scampi:url(\"data:image/svg+xml,%3csvg id='chevron-down' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %23676cb0%3b'%3e %3cpath fill='currentColor' d='M12%2c16%2c5.29%2c9.63a.93.93%2c0%2c0%2c1%2c0-1.35%2c1%2c1%2c0%2c0%2c1%2c1.42%2c0l5.29%2c5%2c5.29-5a1%2c1%2c0%2c0%2c1%2c1.42%2c0%2c.91.91%2c0%2c0%2c1%2c0%2c1.34Z'/%3e %3c/svg%3e\");--di-chevron-down-wit:url(\"data:image/svg+xml,%3csvg id='chevron-down' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: white%3b'%3e %3cpath fill='currentColor' d='M12%2c16%2c5.29%2c9.63a.93.93%2c0%2c0%2c1%2c0-1.35%2c1%2c1%2c0%2c0%2c1%2c1.42%2c0l5.29%2c5%2c5.29-5a1%2c1%2c0%2c0%2c1%2c1.42%2c0%2c.91.91%2c0%2c0%2c1%2c0%2c1.34Z'/%3e %3c/svg%3e\");--di-chevron-up:url(\"data:image/svg+xml,%3csvg id='chevron-up' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %2339870c%3b'%3e %3cpath fill='currentColor' d='M18%2c16a1%2c1%2c0%2c0%2c1-.71-.28l-5.29-5-5.29%2c5a1%2c1%2c0%2c0%2c1-1.42%2c0%2c.93.93%2c0%2c0%2c1%2c0-1.35L12%2c8l6.71%2c6.38a.91.91%2c0%2c0%2c1%2c0%2c1.34A1%2c1%2c0%2c0%2c1%2c18%2c16Z'/%3e %3c/svg%3e\");--di-chevron-up-scampi:url(\"data:image/svg+xml,%3csvg id='chevron-up' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %23676cb0%3b'%3e %3cpath fill='currentColor' d='M18%2c16a1%2c1%2c0%2c0%2c1-.71-.28l-5.29-5-5.29%2c5a1%2c1%2c0%2c0%2c1-1.42%2c0%2c.93.93%2c0%2c0%2c1%2c0-1.35L12%2c8l6.71%2c6.38a.91.91%2c0%2c0%2c1%2c0%2c1.34A1%2c1%2c0%2c0%2c1%2c18%2c16Z'/%3e %3c/svg%3e\");--di-chevron-up-wit:url(\"data:image/svg+xml,%3csvg id='chevron-up' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: white%3b'%3e %3cpath fill='currentColor' d='M18%2c16a1%2c1%2c0%2c0%2c1-.71-.28l-5.29-5-5.29%2c5a1%2c1%2c0%2c0%2c1-1.42%2c0%2c.93.93%2c0%2c0%2c1%2c0-1.35L12%2c8l6.71%2c6.38a.91.91%2c0%2c0%2c1%2c0%2c1.34A1%2c1%2c0%2c0%2c1%2c18%2c16Z'/%3e %3c/svg%3e\");display:inline-block;position:relative}";
|
|
1362
|
+
const dropdownMenuCss = ":host(:focus){outline:none}:host{--di-check-wit:url(\"data:image/svg+xml,%3csvg id='check' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: white%3b'%3e %3cpath fill='currentColor' d='M10.11%2c18%2c5.29%2c13.31A.92.92%2c0%2c0%2c1%2c5.3%2c12a1%2c1%2c0%2c0%2c1%2c1.41%2c0l3.4%2c3.3%2c7.18-7a1%2c1%2c0%2c0%2c1%2c1.41%2c0%2c.92.92%2c0%2c0%2c1%2c0%2c1.35Z'/%3e %3c/svg%3e\");--di-chevron-down:url(\"data:image/svg+xml,%3csvg id='chevron-down' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %2339870c%3b'%3e %3cpath fill='currentColor' d='M12%2c16%2c5.29%2c9.63a.93.93%2c0%2c0%2c1%2c0-1.35%2c1%2c1%2c0%2c0%2c1%2c1.42%2c0l5.29%2c5%2c5.29-5a1%2c1%2c0%2c0%2c1%2c1.42%2c0%2c.91.91%2c0%2c0%2c1%2c0%2c1.34Z'/%3e %3c/svg%3e\");--di-chevron-down-scampi:url(\"data:image/svg+xml,%3csvg id='chevron-down' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %23676cb0%3b'%3e %3cpath fill='currentColor' d='M12%2c16%2c5.29%2c9.63a.93.93%2c0%2c0%2c1%2c0-1.35%2c1%2c1%2c0%2c0%2c1%2c1.42%2c0l5.29%2c5%2c5.29-5a1%2c1%2c0%2c0%2c1%2c1.42%2c0%2c.91.91%2c0%2c0%2c1%2c0%2c1.34Z'/%3e %3c/svg%3e\");--di-chevron-down-wit:url(\"data:image/svg+xml,%3csvg id='chevron-down' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: white%3b'%3e %3cpath fill='currentColor' d='M12%2c16%2c5.29%2c9.63a.93.93%2c0%2c0%2c1%2c0-1.35%2c1%2c1%2c0%2c0%2c1%2c1.42%2c0l5.29%2c5%2c5.29-5a1%2c1%2c0%2c0%2c1%2c1.42%2c0%2c.91.91%2c0%2c0%2c1%2c0%2c1.34Z'/%3e %3c/svg%3e\");--di-chevron-up:url(\"data:image/svg+xml,%3csvg id='chevron-up' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %2339870c%3b'%3e %3cpath fill='currentColor' d='M18%2c16a1%2c1%2c0%2c0%2c1-.71-.28l-5.29-5-5.29%2c5a1%2c1%2c0%2c0%2c1-1.42%2c0%2c.93.93%2c0%2c0%2c1%2c0-1.35L12%2c8l6.71%2c6.38a.91.91%2c0%2c0%2c1%2c0%2c1.34A1%2c1%2c0%2c0%2c1%2c18%2c16Z'/%3e %3c/svg%3e\");--di-chevron-up-scampi:url(\"data:image/svg+xml,%3csvg id='chevron-up' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %23676cb0%3b'%3e %3cpath fill='currentColor' d='M18%2c16a1%2c1%2c0%2c0%2c1-.71-.28l-5.29-5-5.29%2c5a1%2c1%2c0%2c0%2c1-1.42%2c0%2c.93.93%2c0%2c0%2c1%2c0-1.35L12%2c8l6.71%2c6.38a.91.91%2c0%2c0%2c1%2c0%2c1.34A1%2c1%2c0%2c0%2c1%2c18%2c16Z'/%3e %3c/svg%3e\");--di-chevron-up-wit:url(\"data:image/svg+xml,%3csvg id='chevron-up' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: white%3b'%3e %3cpath fill='currentColor' d='M18%2c16a1%2c1%2c0%2c0%2c1-.71-.28l-5.29-5-5.29%2c5a1%2c1%2c0%2c0%2c1-1.42%2c0%2c.93.93%2c0%2c0%2c1%2c0-1.35L12%2c8l6.71%2c6.38a.91.91%2c0%2c0%2c1%2c0%2c1.34A1%2c1%2c0%2c0%2c1%2c18%2c16Z'/%3e %3c/svg%3e\");display:inline-block;position:relative}";
|
|
1363
1363
|
|
|
1364
1364
|
let DropdownMenu = class extends HTMLElement {
|
|
1365
1365
|
constructor() {
|
|
@@ -1456,6 +1456,9 @@ let DropdownMenu = class extends HTMLElement {
|
|
|
1456
1456
|
this.openPopup();
|
|
1457
1457
|
}
|
|
1458
1458
|
}
|
|
1459
|
+
componentDidRender() {
|
|
1460
|
+
this.host.setAttribute("tabindex", "-1");
|
|
1461
|
+
}
|
|
1459
1462
|
componentWillRender() {
|
|
1460
1463
|
for (const li of Array.from(this.host.getElementsByTagName("li"))) {
|
|
1461
1464
|
for (const tab of tabbable(li)) {
|
|
@@ -2883,7 +2886,7 @@ let Selectable = class extends HTMLElement {
|
|
|
2883
2886
|
static get style() { return selectableCss; }
|
|
2884
2887
|
};
|
|
2885
2888
|
|
|
2886
|
-
const toggletipCss = "*,*::after,*::before{box-sizing:border-box}";
|
|
2889
|
+
const toggletipCss = "*,*::after,*::before{box-sizing:border-box}:host(:focus){outline:none}";
|
|
2887
2890
|
|
|
2888
2891
|
let Toggletip = class extends HTMLElement {
|
|
2889
2892
|
constructor() {
|
|
@@ -2932,6 +2935,7 @@ let Toggletip = class extends HTMLElement {
|
|
|
2932
2935
|
throw Error("button not found");
|
|
2933
2936
|
}
|
|
2934
2937
|
this.button = button;
|
|
2938
|
+
this.host.setAttribute("tabindex", "-1");
|
|
2935
2939
|
}
|
|
2936
2940
|
render() {
|
|
2937
2941
|
return (h(Fragment, null, h("dso-info-button", { id: "toggle", onClick: this.click, label: this.label, active: this.active, secondary: this.secondary }), h("dso-tooltip", { stateless: true, for: "toggle", active: this.active, position: this.position, small: this.small }, h("slot", null))));
|
|
@@ -4822,13 +4826,14 @@ let Tooltip = class extends HTMLElement {
|
|
|
4822
4826
|
|
|
4823
4827
|
const DsoTreeItem = ({ owner, ancestors, item, index, level, setSize }) => {
|
|
4824
4828
|
var _a, _b, _c;
|
|
4825
|
-
return (h("li", { key: item.
|
|
4829
|
+
return (h("li", { key: item.id, class: clsx('tree-item', { 'has-child': item.hasItems }), role: 'none' },
|
|
4826
4830
|
h("div", { class: "tree-branch-control" }, item.hasItems
|
|
4827
4831
|
?
|
|
4828
4832
|
h("div", { onClick: (e) => owner.itemClick(e, ancestors, item) },
|
|
4829
4833
|
h("dso-icon", { icon: item.open ? 'chevron-down' : 'chevron-right' }))
|
|
4830
4834
|
: h("dso-icon", null)),
|
|
4831
|
-
h("p", { class:
|
|
4835
|
+
h("p", { class: clsx('tree-content', { 'active': item.active }, { 'selected': item.selected }), tabindex: level === 1 && index === 0 ? 0 : -1, role: "treeitem", "aria-expanded": item.hasItems ? '' + (!!item.open && !!((_a = item.items) === null || _a === void 0 ? void 0 : _a.length)) : undefined, "aria-current": item.active ? 'true' : undefined, "aria-level": level, "aria-setsize": setSize, "aria-posinset": index + 1, "aria-busy": item.loading ? 'true' : undefined, onClick: (e) => owner.itemClick(e, ancestors, item) },
|
|
4836
|
+
item.selected && h("span", { class: "sr-only" }, "Resultaat: "),
|
|
4832
4837
|
item.href
|
|
4833
4838
|
? h("a", { href: item.href, tabindex: "-1" }, item.label)
|
|
4834
4839
|
: h("span", null, item.label), (_b = item.icons) === null || _b === void 0 ? void 0 :
|
|
@@ -4839,7 +4844,7 @@ const DsoTreeItem = ({ owner, ancestors, item, index, level, setSize }) => {
|
|
|
4839
4844
|
: h("ul", { role: "group" }, (_c = item.items) === null || _c === void 0 ? void 0 : _c.map((childItem, index, org) => h(DsoTreeItem, { owner: owner, ancestors: [...ancestors, item], item: childItem, index: index, level: level + 1, setSize: org.length }))))));
|
|
4840
4845
|
};
|
|
4841
4846
|
|
|
4842
|
-
const treeViewCss = ":host ul{list-style-type:none}:host ul[role=tree]{padding-left:0}:host li[role=treeitem]>ul{padding-left:1.5em}:host .tree-branch-control{cursor:pointer;display:inline-block}:host .tree-content{cursor:pointer;display:inline-block;margin:8px 0}:host .tree-content a,:host .tree-content a:visited{color:#
|
|
4847
|
+
const treeViewCss = ":host ul{list-style-type:none}:host ul[role=tree]{padding-left:0}:host li[role=treeitem]>ul{padding-left:1.5em}:host .tree-branch-control{cursor:pointer;display:inline-block}:host .tree-content{cursor:pointer;display:inline-block;margin:8px 0}:host .tree-content.active{font-weight:700}:host .tree-content.active:hover{text-decoration:underline}:host .tree-content.active a{text-decoration:none}:host .tree-content.selected{color:#191919;font-weight:700;text-decoration:underline}:host .tree-content.selected:hover,:host .tree-content.selected:focus{text-decoration:none}:host .tree-content a,:host .tree-content a:visited{color:#191919;text-decoration:underline}:host .tree-content a:hover,:host .tree-content a:focus{color:#191919;text-decoration:none}:host .tree-content a:active{text-decoration:none}:host .tree-content dso-icon{font-size:0.75em;margin-left:0.5em;vertical-align:text-bottom}*,*::after,*::before{box-sizing:border-box}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}";
|
|
4843
4848
|
|
|
4844
4849
|
let TreeView = class extends HTMLElement {
|
|
4845
4850
|
constructor() {
|
|
@@ -4902,7 +4907,7 @@ let TreeView = class extends HTMLElement {
|
|
|
4902
4907
|
return;
|
|
4903
4908
|
}
|
|
4904
4909
|
TreeView.setFocus(tree, contentElement);
|
|
4905
|
-
this.clickItem.emit([...ancestors, item]);
|
|
4910
|
+
this.clickItem.emit({ path: [...ancestors, item], originalEvent: event });
|
|
4906
4911
|
return;
|
|
4907
4912
|
}
|
|
4908
4913
|
if (item.open) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as o}from"./p-a40eeb32.js";(()=>{const o=import.meta.url,s={};return""!==o&&(s.resourcesUrl=new URL(".",o).href),e(s)})().then((e=>o([["p-08427682",[[1,"dso-map-base-layers",{baseLayers:[16],selectedBaseLayer:[1040]}]]],["p-e7700d9e",[[1,"dso-map-overlays",{overlays:[16],checkedOverlays:[1040]}]]],["p-
|
|
1
|
+
import{p as e,b as o}from"./p-a40eeb32.js";(()=>{const o=import.meta.url,s={};return""!==o&&(s.resourcesUrl=new URL(".",o).href),e(s)})().then((e=>o([["p-08427682",[[1,"dso-map-base-layers",{baseLayers:[16],selectedBaseLayer:[1040]}]]],["p-e7700d9e",[[1,"dso-map-overlays",{overlays:[16],checkedOverlays:[1040]}]]],["p-984551a8",[[1,"dso-toggletip",{label:[1],position:[1],small:[4],secondary:[4],active:[32]}]]],["p-e814d644",[[1,"dso-tree-view",{collection:[16]}]]],["p-e03d7741",[[1,"dso-date-picker",{name:[1],identifier:[1],disabled:[516],role:[1],direction:[1],required:[4],dsoAutofocus:[4,"dso-autofocus"],value:[1537],min:[1],max:[1],activeFocus:[32],focusedDay:[32],open:[32],setFocus:[64],show:[64],hide:[64]},[[6,"click","handleDocumentClick"]]]]],["p-b07991b9",[[1,"dso-helpcenter-panel",{label:[1],url:[1],visibility:[32],isOpen:[32],slideState:[32],loadIframe:[32]}]]],["p-9e9f8bcf",[[1,"dso-label",{compact:[4],removable:[4],status:[1],hover:[32]}]]],["p-e4269e02",[[1,"dso-map-controls",{open:[1540],disableZoom:[1,"disable-zoom"],hideContent:[32]}]]],["p-83f166b3",[[1,"dso-alert",{status:[1],roleAlert:[4,"role-alert"]}]]],["p-2e7d535c",[[1,"dso-attachments-counter",{count:[2]}]]],["p-39dae284",[[6,"dso-autosuggest",{suggestions:[16],suggestOnFocus:[4,"suggest-on-focus"],showSuggestions:[32],selectedSuggestion:[32]},[[4,"click","onDocumentClick"]]]]],["p-c9c1bc8f",[[1,"dso-badge",{status:[1]}]]],["p-19de4cc7",[[1,"dso-banner",{status:[1]}]]],["p-741e96de",[[1,"dso-dropdown-menu",{open:[1540],dropdownAlign:[1,"dropdown-align"],checkable:[4]}]]],["p-be5682cc",[[1,"dso-highlight-box",{yellow:[4],border:[4],white:[4],dropShadow:[4,"drop-shadow"],step:[2]}]]],["p-a52d3623",[[0,"dso-ozon-content",{content:[1]},[[0,"click","handleClick"]]]]],["p-262858dd",[[1,"dso-progress-bar",{progress:[2],min:[2],max:[2]}]]],["p-b5b946de",[[1,"dso-progress-indicator",{label:[1],size:[1],block:[4]}]]],["p-759920d0",[[1,"dso-tooltip",{position:[1],for:[1],noArrow:[4,"no-arrow"],stateless:[4],small:[4],active:[1540],hidden:[32],activate:[64],deactivate:[64]},[[0,"click","listenClick"]]]]],["p-5665f1ee",[[1,"dso-info-button",{active:[1540],secondary:[4],label:[1]}]]],["p-affe82e6",[[1,"dso-selectable",{type:[1],identifier:[1],name:[1],value:[1],invalid:[4],describedById:[1,"described-by-id"],disabled:[4],required:[4],checked:[4],indeterminate:[4],infoFixed:[4,"info-fixed"],infoActive:[32]}],[1,"dso-info",{fixed:[516],active:[516]}]]],["p-75233655",[[1,"dso-icon",{icon:[1]}]]]],e)));
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{r as c,h as t,F as e,g as n}from"./p-a40eeb32.js";import{v as o}from"./p-19b890a3.js";
|
|
2
|
+
/*!
|
|
3
|
+
* tabbable 5.2.1
|
|
4
|
+
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
5
|
+
*/var r=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"].join(","),i="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,s=function(c){var t=parseInt(c.getAttribute("tabindex"),10);return isNaN(t)?function(c){return"true"===c.contentEditable}(c)?0:"AUDIO"!==c.nodeName&&"VIDEO"!==c.nodeName&&"DETAILS"!==c.nodeName||null!==c.getAttribute("tabindex")?c.tabIndex:0:t},a=function(c,t){return c.tabIndex===t.tabIndex?c.documentOrder-t.documentOrder:c.tabIndex-t.tabIndex},l=function(c){return"INPUT"===c.tagName},u=function(c,t){return!(!function(c,t){return!(t.disabled||function(c){return l(c)&&"hidden"===c.type}(t)||function(c,t){if("hidden"===getComputedStyle(c).visibility)return!0;var e=i.call(c,"details>summary:first-of-type");if(i.call(e?c.parentElement:c,"details:not([open]) *"))return!0;if(t&&"full"!==t){if("non-zero-area"===t){var n=c.getBoundingClientRect();return 0===n.width&&0===n.height}}else for(;c;){if("none"===getComputedStyle(c).display)return!0;c=c.parentElement}return!1}(t,c.displayCheck)||function(c){return"DETAILS"===c.tagName&&Array.prototype.slice.apply(c.children).some((function(c){return"SUMMARY"===c.tagName}))}(t)||function(c){if(l(c)||"SELECT"===c.tagName||"TEXTAREA"===c.tagName||"BUTTON"===c.tagName)for(var t=c.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var e=0;e<t.children.length;e++){var n=t.children.item(e);if("LEGEND"===n.tagName)return!n.contains(c)}return!0}t=t.parentElement}return!1}(t))}(c,t)||function(c){return function(c){return l(c)&&"radio"===c.type}(c)&&!function(c){if(!c.name)return!0;var t,e=c.form||c.ownerDocument,n=function(c){return e.querySelectorAll('input[type="radio"][name="'+c+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=n(window.CSS.escape(c.name));else try{t=n(c.name)}catch(c){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",c.message),!1}var o=function(c,t){for(var e=0;e<c.length;e++)if(c[e].checked&&c[e].form===t)return c[e]}(t,c.form);return!o||o===c}(c)}(t)||s(t)<0)},d=function(c,t){var e=[],n=[];return function(c,t,e){var n=Array.prototype.slice.apply(c.querySelectorAll(r));return t&&i.call(c,r)&&n.unshift(c),n.filter(e)}(c,(t=t||{}).includeContainer,u.bind(null,t)).forEach((function(c,t){var o=s(c);0===o?e.push(c):n.push({documentOrder:t,tabIndex:o,node:c})})),n.sort(a).map((function(c){return c.node})).concat(e)};let h=class{constructor(t){c(this,t),this.open=!1,this.dropdownAlign="left",this.checkable=!1,this.focusOutListener=c=>{this.tabbables.includes(c.relatedTarget)||(this.open=!1)},this.keyDownListener=c=>{if(!c.defaultPrevented){switch(c.key){case"ArrowDown":this.tabInPopup(1);break;case"ArrowUp":this.tabInPopup(-1);break;case"Escape":this.escape();break;case" ":c.target instanceof HTMLElement&&c.target.click();break;default:return}c.preventDefault()}},this.escape=()=>{this.button.focus(),this.open=!1}}get button(){const c=this.host.querySelectorAll('button[slot="toggle"]')[0];if(!(c instanceof HTMLButtonElement))throw new ReferenceError("Mandatory toggle button not found");return c}get tabbables(){return d(this.host).filter((c=>c!==this.button))}openWatch(c){c?this.openPopup():this.closePopup()}connectedCallback(){this.button.setAttribute("aria-haspopup","menu"),this.button.setAttribute("aria-expanded","false"),this.button.id||(this.button.id=o()),this.button.addEventListener("click",(()=>{this.open=!this.open}));const c=this.host.querySelector(".dso-dropdown-options");if(null==c)throw new ReferenceError("Dropdown options not found");c.setAttribute("role","menu"),c.setAttribute("aria-labelledby",this.button.id);for(const c of Array.from(this.host.getElementsByTagName("ul"))){c.setAttribute("role","none");for(const t of Array.from(c.getElementsByTagName("li")))t.setAttribute("role","none")}this.open&&this.openPopup()}componentDidRender(){this.host.setAttribute("tabindex","-1")}componentWillRender(){for(const c of Array.from(this.host.getElementsByTagName("li")))for(const t of d(c))t.setAttribute("role",this.checkable?"menuitemradio":"menuitem"),this.checkable&&c.classList.contains("dso-checked")?t.setAttribute("aria-checked","true"):t.removeAttribute("aria-checked")}openPopup(){this.host.addEventListener("keydown",this.keyDownListener),this.host.addEventListener("focusout",this.focusOutListener),this.button.setAttribute("aria-expanded","true"),this.tabbables.forEach((c=>c.addEventListener("click",this.escape)))}closePopup(){this.host.removeEventListener("keydown",this.keyDownListener),this.host.removeEventListener("focusout",this.focusOutListener),this.button.setAttribute("aria-expanded","false"),this.tabbables.forEach((c=>c.removeEventListener("click",this.escape)))}tabInPopup(c){const t=this.tabbables;let e=t.findIndex((c=>c===document.activeElement))+c;e>=t.length?e=0:e<0&&(e=t.length-1),t[e].focus()}render(){return t(e,null,t("slot",{name:"toggle"}),t("div",{hidden:!this.open},t("slot",null)))}get host(){return n(this)}static get watchers(){return{open:["openWatch"]}}};h.style=":host(:focus){outline:none}:host{--di-check-wit:url(\"data:image/svg+xml,%3csvg id='check' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: white%3b'%3e %3cpath fill='currentColor' d='M10.11%2c18%2c5.29%2c13.31A.92.92%2c0%2c0%2c1%2c5.3%2c12a1%2c1%2c0%2c0%2c1%2c1.41%2c0l3.4%2c3.3%2c7.18-7a1%2c1%2c0%2c0%2c1%2c1.41%2c0%2c.92.92%2c0%2c0%2c1%2c0%2c1.35Z'/%3e %3c/svg%3e\");--di-chevron-down:url(\"data:image/svg+xml,%3csvg id='chevron-down' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %2339870c%3b'%3e %3cpath fill='currentColor' d='M12%2c16%2c5.29%2c9.63a.93.93%2c0%2c0%2c1%2c0-1.35%2c1%2c1%2c0%2c0%2c1%2c1.42%2c0l5.29%2c5%2c5.29-5a1%2c1%2c0%2c0%2c1%2c1.42%2c0%2c.91.91%2c0%2c0%2c1%2c0%2c1.34Z'/%3e %3c/svg%3e\");--di-chevron-down-scampi:url(\"data:image/svg+xml,%3csvg id='chevron-down' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %23676cb0%3b'%3e %3cpath fill='currentColor' d='M12%2c16%2c5.29%2c9.63a.93.93%2c0%2c0%2c1%2c0-1.35%2c1%2c1%2c0%2c0%2c1%2c1.42%2c0l5.29%2c5%2c5.29-5a1%2c1%2c0%2c0%2c1%2c1.42%2c0%2c.91.91%2c0%2c0%2c1%2c0%2c1.34Z'/%3e %3c/svg%3e\");--di-chevron-down-wit:url(\"data:image/svg+xml,%3csvg id='chevron-down' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: white%3b'%3e %3cpath fill='currentColor' d='M12%2c16%2c5.29%2c9.63a.93.93%2c0%2c0%2c1%2c0-1.35%2c1%2c1%2c0%2c0%2c1%2c1.42%2c0l5.29%2c5%2c5.29-5a1%2c1%2c0%2c0%2c1%2c1.42%2c0%2c.91.91%2c0%2c0%2c1%2c0%2c1.34Z'/%3e %3c/svg%3e\");--di-chevron-up:url(\"data:image/svg+xml,%3csvg id='chevron-up' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %2339870c%3b'%3e %3cpath fill='currentColor' d='M18%2c16a1%2c1%2c0%2c0%2c1-.71-.28l-5.29-5-5.29%2c5a1%2c1%2c0%2c0%2c1-1.42%2c0%2c.93.93%2c0%2c0%2c1%2c0-1.35L12%2c8l6.71%2c6.38a.91.91%2c0%2c0%2c1%2c0%2c1.34A1%2c1%2c0%2c0%2c1%2c18%2c16Z'/%3e %3c/svg%3e\");--di-chevron-up-scampi:url(\"data:image/svg+xml,%3csvg id='chevron-up' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %23676cb0%3b'%3e %3cpath fill='currentColor' d='M18%2c16a1%2c1%2c0%2c0%2c1-.71-.28l-5.29-5-5.29%2c5a1%2c1%2c0%2c0%2c1-1.42%2c0%2c.93.93%2c0%2c0%2c1%2c0-1.35L12%2c8l6.71%2c6.38a.91.91%2c0%2c0%2c1%2c0%2c1.34A1%2c1%2c0%2c0%2c1%2c18%2c16Z'/%3e %3c/svg%3e\");--di-chevron-up-wit:url(\"data:image/svg+xml,%3csvg id='chevron-up' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: white%3b'%3e %3cpath fill='currentColor' d='M18%2c16a1%2c1%2c0%2c0%2c1-.71-.28l-5.29-5-5.29%2c5a1%2c1%2c0%2c0%2c1-1.42%2c0%2c.93.93%2c0%2c0%2c1%2c0-1.35L12%2c8l6.71%2c6.38a.91.91%2c0%2c0%2c1%2c0%2c1.34A1%2c1%2c0%2c0%2c1%2c18%2c16Z'/%3e %3c/svg%3e\");display:inline-block;position:relative}";export{h as dso_dropdown_menu}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as s,F as i,g as o}from"./p-a40eeb32.js";let h=class{constructor(s){t(this,s),this.active=!1,this.label="Toelichting",this.position="right",this.click=()=>{this.active?this.close():this.open()},this.open=()=>{this.active=!0,this.host.addEventListener("keydown",this.keyDownListener),this.host.addEventListener("focusout",this.focusOutListener)},this.close=()=>{this.host.removeEventListener("focusout",this.focusOutListener),this.host.removeEventListener("keydown",this.keyDownListener),this.active=!1},this.focusOutListener=t=>{this.host.contains(t.relatedTarget)||this.close()},this.keyDownListener=t=>{t.defaultPrevented||"Escape"!=t.key||(this.close(),this.button.focus(),t.preventDefault())}}componentDidRender(){var t,s,i;const o=null===(t=this.host.shadowRoot)||void 0===t?void 0:t.querySelector("dso-info-button");if(!o)throw Error("dso-info-button not found");this.infoButton=o;const h=null===(i=null===(s=this.infoButton)||void 0===s?void 0:s.shadowRoot)||void 0===i?void 0:i.querySelector("button");if(!h)throw Error("button not found");this.button=h}render(){return s(i,null,s("dso-info-button",{id:"toggle",onClick:this.click,label:this.label,active:this.active,secondary:this.secondary}),s("dso-tooltip",{stateless:!0,for:"toggle",active:this.active,position:this.position,small:this.small},s("slot",null)))}get host(){return o(this)}};h.style="*,*::after,*::before{box-sizing:border-box}";export{h as dso_toggletip}
|
|
1
|
+
import{r as t,h as s,F as i,g as o}from"./p-a40eeb32.js";let h=class{constructor(s){t(this,s),this.active=!1,this.label="Toelichting",this.position="right",this.click=()=>{this.active?this.close():this.open()},this.open=()=>{this.active=!0,this.host.addEventListener("keydown",this.keyDownListener),this.host.addEventListener("focusout",this.focusOutListener)},this.close=()=>{this.host.removeEventListener("focusout",this.focusOutListener),this.host.removeEventListener("keydown",this.keyDownListener),this.active=!1},this.focusOutListener=t=>{this.host.contains(t.relatedTarget)||this.close()},this.keyDownListener=t=>{t.defaultPrevented||"Escape"!=t.key||(this.close(),this.button.focus(),t.preventDefault())}}componentDidRender(){var t,s,i;const o=null===(t=this.host.shadowRoot)||void 0===t?void 0:t.querySelector("dso-info-button");if(!o)throw Error("dso-info-button not found");this.infoButton=o;const h=null===(i=null===(s=this.infoButton)||void 0===s?void 0:s.shadowRoot)||void 0===i?void 0:i.querySelector("button");if(!h)throw Error("button not found");this.button=h,this.host.setAttribute("tabindex","-1")}render(){return s(i,null,s("dso-info-button",{id:"toggle",onClick:this.click,label:this.label,active:this.active,secondary:this.secondary}),s("dso-tooltip",{stateless:!0,for:"toggle",active:this.active,position:this.position,small:this.small},s("slot",null)))}get host(){return o(this)}};h.style="*,*::after,*::before{box-sizing:border-box}:host(:focus){outline:none}";export{h as dso_toggletip}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as e,F as t,r as o,c as n}from"./p-a40eeb32.js";import{c as r}from"./p-4070c1e5.js";const i=({owner:o,ancestors:n,item:s,index:a,level:l,setSize:c})=>{var d,u,v;return e("li",{key:s.id,class:r("tree-item",{"has-child":s.hasItems}),role:"none"},e("div",{class:"tree-branch-control"},s.hasItems?e("div",{onClick:e=>o.itemClick(e,n,s)},e("dso-icon",{icon:s.open?"chevron-down":"chevron-right"})):e("dso-icon",null)),e("p",{class:r("tree-content",{active:s.active},{selected:s.selected}),tabindex:1===l&&0===a?0:-1,role:"treeitem","aria-expanded":s.hasItems?""+(!!s.open&&!!(null===(d=s.items)||void 0===d?void 0:d.length)):void 0,"aria-current":s.active?"true":void 0,"aria-level":l,"aria-setsize":c,"aria-posinset":a+1,"aria-busy":s.loading?"true":void 0,onClick:e=>o.itemClick(e,n,s)},s.selected&&e("span",{class:"sr-only"},"Resultaat: "),s.href?e("a",{href:s.href,tabindex:"-1"},s.label):e("span",null,s.label),null===(u=s.icons)||void 0===u?void 0:u.map((t=>e("dso-icon",{icon:t.icon,title:t.label})))),s.open&&e(t,null,s.hasItems&&!s.items&&s.loading?e("dso-progress-indicator",{size:"small",label:"Resultaten laden: een moment geduld alstublieft."}):e("ul",{role:"group"},null===(v=s.items)||void 0===v?void 0:v.map(((t,r,a)=>e(i,{owner:o,ancestors:[...n,s],item:t,index:r,level:l+1,setSize:a.length}))))))};let s=class{constructor(e){o(this,e),this.openItem=n(this,"openItem",7),this.closeItem=n(this,"closeItem",7),this.clickItem=n(this,"clickItem",7),this.keyDownListener=e=>{if(e.defaultPrevented)return;const t=e.composedPath().find((e=>e instanceof HTMLElement&&"dso-tree"===e.className));if(e.target instanceof HTMLParagraphElement&&t instanceof HTMLElement){switch(e.key){case"ArrowDown":s.moveFocus(t,e.target,"next");break;case"ArrowUp":s.moveFocus(t,e.target,"previous");break;case"ArrowRight":s.expandItemOrFocusChild(t,e.target);break;case"ArrowLeft":s.collapseItemOrFocusParent(t,e.target);break;case"End":s.moveFocus(t,e.target,"last");break;case"Home":s.moveFocus(t,e.target,"first");break;case"Enter":case" ":e.target.click();break;default:if(1===(o=e.key).length&&o.match(/\S/)&&s.setFocusByFirstCharacter(t,e.target,e.key,e.shiftKey))break;return}var o;e.preventDefault()}},this.itemClick=(e,t,o)=>{if(!(e.target instanceof HTMLElement))return;const n=e.target.closest(".tree-content");if(n){const r=e.composedPath().find((e=>e instanceof HTMLElement&&"dso-tree"===e.className));if(!(n instanceof HTMLParagraphElement&&r instanceof HTMLElement))return;return s.setFocus(r,n),void this.clickItem.emit({path:[...t,o],originalEvent:e})}o.open?this.closeItem.emit([...t,o]):this.openItem.emit([...t,o])}}static setFocus(e,t){t&&(Array.from(e.querySelectorAll("p")).filter((e=>0===e.tabIndex)).forEach((e=>e.tabIndex=-1)),t.tabIndex=0,t.focus())}static moveFocus(e,t,o){const n=Array.from(e.querySelectorAll("p")).filter((e=>e.offsetWidth>0&&e.offsetHeight>0));let r=0;switch(o){case"first":r=0;break;case"previous":r=n.indexOf(t)-1;break;case"next":r=n.indexOf(t)+1;break;case"last":r=n.length-1}s.setFocus(e,n[r])}static expandItemOrFocusChild(e,t){var o;if("true"===(null==t?void 0:t.getAttribute("aria-expanded")))s.moveFocus(e,t,"next");else{const e=null===(o=t.previousElementSibling)||void 0===o?void 0:o.firstElementChild;e instanceof HTMLElement&&e.click()}}static collapseItemOrFocusParent(e,t){var o,n,r;if("true"===(null==t?void 0:t.getAttribute("aria-expanded"))){const e=null===(o=t.previousElementSibling)||void 0===o?void 0:o.firstElementChild;e instanceof HTMLElement&&e.click()}else{const o=null===(r=null===(n=null==t?void 0:t.parentElement)||void 0===n?void 0:n.parentElement)||void 0===r?void 0:r.previousElementSibling;o instanceof HTMLElement&&s.setFocus(e,o)}}static setFocusByFirstCharacter(e,t,o,n){const r=Array.from(e.querySelectorAll("p")).filter((e=>e.offsetWidth>0&&e.offsetHeight>0));n&&r.reverse();const i=r.indexOf(t);o=o.toLowerCase();let a=r.find(((e,t)=>{var n;return t>i&&(null===(n=e.textContent)||void 0===n?void 0:n.toLowerCase().startsWith(o))}));return a||(a=r.find(((e,t)=>{var n;return t<i&&(null===(n=e.textContent)||void 0===n?void 0:n.toLowerCase().startsWith(o))}))),!!a&&(s.setFocus(e,a),!0)}render(){var t;return e("div",{id:"tree",class:"dso-tree",onKeyDown:e=>this.keyDownListener(e)},e("ul",{role:"tree","aria-label":"Objectenboom"},null===(t=this.collection)||void 0===t?void 0:t.map(((t,o)=>e(i,{owner:this,ancestors:[],item:t,index:o,level:1,setSize:this.collection.length})))))}};s.style=":host ul{list-style-type:none}:host ul[role=tree]{padding-left:0}:host li[role=treeitem]>ul{padding-left:1.5em}:host .tree-branch-control{cursor:pointer;display:inline-block}:host .tree-content{cursor:pointer;display:inline-block;margin:8px 0}:host .tree-content.active{font-weight:700}:host .tree-content.active:hover{text-decoration:underline}:host .tree-content.active a{text-decoration:none}:host .tree-content.selected{color:#191919;font-weight:700;text-decoration:underline}:host .tree-content.selected:hover,:host .tree-content.selected:focus{text-decoration:none}:host .tree-content a,:host .tree-content a:visited{color:#191919;text-decoration:underline}:host .tree-content a:hover,:host .tree-content a:focus{color:#191919;text-decoration:none}:host .tree-content a:active{text-decoration:none}:host .tree-content dso-icon{font-size:0.75em;margin-left:0.5em;vertical-align:text-bottom}*,*::after,*::before{box-sizing:border-box}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}";export{s as dso_tree_view}
|
|
@@ -226,7 +226,7 @@ var tabbable = function tabbable(el, options) {
|
|
|
226
226
|
return tabbableNodes;
|
|
227
227
|
};
|
|
228
228
|
|
|
229
|
-
const dropdownMenuCss = ":host{--di-check-wit:url(\"data:image/svg+xml,%3csvg id='check' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: white%3b'%3e %3cpath fill='currentColor' d='M10.11%2c18%2c5.29%2c13.31A.92.92%2c0%2c0%2c1%2c5.3%2c12a1%2c1%2c0%2c0%2c1%2c1.41%2c0l3.4%2c3.3%2c7.18-7a1%2c1%2c0%2c0%2c1%2c1.41%2c0%2c.92.92%2c0%2c0%2c1%2c0%2c1.35Z'/%3e %3c/svg%3e\");--di-chevron-down:url(\"data:image/svg+xml,%3csvg id='chevron-down' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %2339870c%3b'%3e %3cpath fill='currentColor' d='M12%2c16%2c5.29%2c9.63a.93.93%2c0%2c0%2c1%2c0-1.35%2c1%2c1%2c0%2c0%2c1%2c1.42%2c0l5.29%2c5%2c5.29-5a1%2c1%2c0%2c0%2c1%2c1.42%2c0%2c.91.91%2c0%2c0%2c1%2c0%2c1.34Z'/%3e %3c/svg%3e\");--di-chevron-down-scampi:url(\"data:image/svg+xml,%3csvg id='chevron-down' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %23676cb0%3b'%3e %3cpath fill='currentColor' d='M12%2c16%2c5.29%2c9.63a.93.93%2c0%2c0%2c1%2c0-1.35%2c1%2c1%2c0%2c0%2c1%2c1.42%2c0l5.29%2c5%2c5.29-5a1%2c1%2c0%2c0%2c1%2c1.42%2c0%2c.91.91%2c0%2c0%2c1%2c0%2c1.34Z'/%3e %3c/svg%3e\");--di-chevron-down-wit:url(\"data:image/svg+xml,%3csvg id='chevron-down' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: white%3b'%3e %3cpath fill='currentColor' d='M12%2c16%2c5.29%2c9.63a.93.93%2c0%2c0%2c1%2c0-1.35%2c1%2c1%2c0%2c0%2c1%2c1.42%2c0l5.29%2c5%2c5.29-5a1%2c1%2c0%2c0%2c1%2c1.42%2c0%2c.91.91%2c0%2c0%2c1%2c0%2c1.34Z'/%3e %3c/svg%3e\");--di-chevron-up:url(\"data:image/svg+xml,%3csvg id='chevron-up' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %2339870c%3b'%3e %3cpath fill='currentColor' d='M18%2c16a1%2c1%2c0%2c0%2c1-.71-.28l-5.29-5-5.29%2c5a1%2c1%2c0%2c0%2c1-1.42%2c0%2c.93.93%2c0%2c0%2c1%2c0-1.35L12%2c8l6.71%2c6.38a.91.91%2c0%2c0%2c1%2c0%2c1.34A1%2c1%2c0%2c0%2c1%2c18%2c16Z'/%3e %3c/svg%3e\");--di-chevron-up-scampi:url(\"data:image/svg+xml,%3csvg id='chevron-up' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %23676cb0%3b'%3e %3cpath fill='currentColor' d='M18%2c16a1%2c1%2c0%2c0%2c1-.71-.28l-5.29-5-5.29%2c5a1%2c1%2c0%2c0%2c1-1.42%2c0%2c.93.93%2c0%2c0%2c1%2c0-1.35L12%2c8l6.71%2c6.38a.91.91%2c0%2c0%2c1%2c0%2c1.34A1%2c1%2c0%2c0%2c1%2c18%2c16Z'/%3e %3c/svg%3e\");--di-chevron-up-wit:url(\"data:image/svg+xml,%3csvg id='chevron-up' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: white%3b'%3e %3cpath fill='currentColor' d='M18%2c16a1%2c1%2c0%2c0%2c1-.71-.28l-5.29-5-5.29%2c5a1%2c1%2c0%2c0%2c1-1.42%2c0%2c.93.93%2c0%2c0%2c1%2c0-1.35L12%2c8l6.71%2c6.38a.91.91%2c0%2c0%2c1%2c0%2c1.34A1%2c1%2c0%2c0%2c1%2c18%2c16Z'/%3e %3c/svg%3e\");display:inline-block;position:relative}";
|
|
229
|
+
const dropdownMenuCss = ":host(:focus){outline:none}:host{--di-check-wit:url(\"data:image/svg+xml,%3csvg id='check' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: white%3b'%3e %3cpath fill='currentColor' d='M10.11%2c18%2c5.29%2c13.31A.92.92%2c0%2c0%2c1%2c5.3%2c12a1%2c1%2c0%2c0%2c1%2c1.41%2c0l3.4%2c3.3%2c7.18-7a1%2c1%2c0%2c0%2c1%2c1.41%2c0%2c.92.92%2c0%2c0%2c1%2c0%2c1.35Z'/%3e %3c/svg%3e\");--di-chevron-down:url(\"data:image/svg+xml,%3csvg id='chevron-down' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %2339870c%3b'%3e %3cpath fill='currentColor' d='M12%2c16%2c5.29%2c9.63a.93.93%2c0%2c0%2c1%2c0-1.35%2c1%2c1%2c0%2c0%2c1%2c1.42%2c0l5.29%2c5%2c5.29-5a1%2c1%2c0%2c0%2c1%2c1.42%2c0%2c.91.91%2c0%2c0%2c1%2c0%2c1.34Z'/%3e %3c/svg%3e\");--di-chevron-down-scampi:url(\"data:image/svg+xml,%3csvg id='chevron-down' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %23676cb0%3b'%3e %3cpath fill='currentColor' d='M12%2c16%2c5.29%2c9.63a.93.93%2c0%2c0%2c1%2c0-1.35%2c1%2c1%2c0%2c0%2c1%2c1.42%2c0l5.29%2c5%2c5.29-5a1%2c1%2c0%2c0%2c1%2c1.42%2c0%2c.91.91%2c0%2c0%2c1%2c0%2c1.34Z'/%3e %3c/svg%3e\");--di-chevron-down-wit:url(\"data:image/svg+xml,%3csvg id='chevron-down' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: white%3b'%3e %3cpath fill='currentColor' d='M12%2c16%2c5.29%2c9.63a.93.93%2c0%2c0%2c1%2c0-1.35%2c1%2c1%2c0%2c0%2c1%2c1.42%2c0l5.29%2c5%2c5.29-5a1%2c1%2c0%2c0%2c1%2c1.42%2c0%2c.91.91%2c0%2c0%2c1%2c0%2c1.34Z'/%3e %3c/svg%3e\");--di-chevron-up:url(\"data:image/svg+xml,%3csvg id='chevron-up' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %2339870c%3b'%3e %3cpath fill='currentColor' d='M18%2c16a1%2c1%2c0%2c0%2c1-.71-.28l-5.29-5-5.29%2c5a1%2c1%2c0%2c0%2c1-1.42%2c0%2c.93.93%2c0%2c0%2c1%2c0-1.35L12%2c8l6.71%2c6.38a.91.91%2c0%2c0%2c1%2c0%2c1.34A1%2c1%2c0%2c0%2c1%2c18%2c16Z'/%3e %3c/svg%3e\");--di-chevron-up-scampi:url(\"data:image/svg+xml,%3csvg id='chevron-up' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %23676cb0%3b'%3e %3cpath fill='currentColor' d='M18%2c16a1%2c1%2c0%2c0%2c1-.71-.28l-5.29-5-5.29%2c5a1%2c1%2c0%2c0%2c1-1.42%2c0%2c.93.93%2c0%2c0%2c1%2c0-1.35L12%2c8l6.71%2c6.38a.91.91%2c0%2c0%2c1%2c0%2c1.34A1%2c1%2c0%2c0%2c1%2c18%2c16Z'/%3e %3c/svg%3e\");--di-chevron-up-wit:url(\"data:image/svg+xml,%3csvg id='chevron-up' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: white%3b'%3e %3cpath fill='currentColor' d='M18%2c16a1%2c1%2c0%2c0%2c1-.71-.28l-5.29-5-5.29%2c5a1%2c1%2c0%2c0%2c1-1.42%2c0%2c.93.93%2c0%2c0%2c1%2c0-1.35L12%2c8l6.71%2c6.38a.91.91%2c0%2c0%2c1%2c0%2c1.34A1%2c1%2c0%2c0%2c1%2c18%2c16Z'/%3e %3c/svg%3e\");display:inline-block;position:relative}";
|
|
230
230
|
|
|
231
231
|
let DropdownMenu = class {
|
|
232
232
|
constructor(hostRef) {
|
|
@@ -321,6 +321,9 @@ let DropdownMenu = class {
|
|
|
321
321
|
this.openPopup();
|
|
322
322
|
}
|
|
323
323
|
}
|
|
324
|
+
componentDidRender() {
|
|
325
|
+
this.host.setAttribute("tabindex", "-1");
|
|
326
|
+
}
|
|
324
327
|
componentWillRender() {
|
|
325
328
|
for (const li of Array.from(this.host.getElementsByTagName("li"))) {
|
|
326
329
|
for (const tab of tabbable(li)) {
|