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
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<button type="button" disabled class="dso-tertiary"><span class="sr-only">Aantal verlagen (disabled)</span>
|
|
10
10
|
<dso-icon icon="minus-square"></dso-icon>
|
|
11
11
|
</button>
|
|
12
|
-
<input type="number" id="minimum-limit" readonly tabindex="-1" class="dso-input-step-counter" value="0">
|
|
12
|
+
<input type="number" id="minimum-limit" readonly tabindex="-1" min="0" class="dso-input-step-counter" value="0">
|
|
13
13
|
<button type="button" class="dso-tertiary"><span class="sr-only">Aantal verhogen</span>
|
|
14
14
|
<dso-icon icon="plus-square"></dso-icon>
|
|
15
15
|
</button>
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
<div class="form-group dso-input-number">
|
|
2
2
|
<div class="dso-label-container">
|
|
3
|
-
<label for="no-label" class="control-label">
|
|
4
|
-
</label>
|
|
5
3
|
</div>
|
|
6
4
|
<div class="dso-field-container">
|
|
7
5
|
<div class="dso-input-number">
|
|
8
6
|
<button type="button" class="dso-tertiary"><span class="sr-only">Aantal verlagen</span>
|
|
9
7
|
<dso-icon icon="minus-square"></dso-icon>
|
|
10
8
|
</button>
|
|
11
|
-
<input type="number" id="no-label" readonly tabindex="-1" class="dso-input-step-counter" value="99">
|
|
9
|
+
<input type="number" id="no-label" readonly tabindex="-1" aria-label="Aantal" class="dso-input-step-counter" value="99">
|
|
12
10
|
<button type="button" class="dso-tertiary"><span class="sr-only">Aantal verhogen</span>
|
|
13
11
|
<dso-icon icon="plus-square"></dso-icon>
|
|
14
12
|
</button>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<button type="button" class="dso-tertiary"><span class="sr-only">Aantal verlagen</span>
|
|
3
3
|
<dso-icon icon="minus-square"></dso-icon>
|
|
4
4
|
</button>
|
|
5
|
-
<input type="number" id="no-label" readonly tabindex="-1" class="dso-input-step-counter" value="99">
|
|
5
|
+
<input type="number" id="no-label" readonly tabindex="-1" aria-label="Aantal" class="dso-input-step-counter" value="99">
|
|
6
6
|
<button type="button" class="dso-tertiary"><span class="sr-only">Aantal verhogen</span>
|
|
7
7
|
<dso-icon icon="plus-square"></dso-icon>
|
|
8
8
|
</button>
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<button type="button" class="dso-tertiary"><span class="sr-only">Aantal verlagen</span>
|
|
8
8
|
<dso-icon icon="minus-square"></dso-icon>
|
|
9
9
|
</button>
|
|
10
|
-
<input type="number" id="list-button-EL-with-input" readonly tabindex="-1" class="dso-input-step-counter" value="2">
|
|
10
|
+
<input type="number" id="list-button-EL-with-input" readonly tabindex="-1" aria-label="Aantal" class="dso-input-step-counter" value="2">
|
|
11
11
|
<button type="button" class="dso-tertiary"><span class="sr-only">Aantal verhogen</span>
|
|
12
12
|
<dso-icon icon="plus-square"></dso-icon>
|
|
13
13
|
</button>
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<button type="button" class="dso-tertiary"><span class="sr-only">Aantal verlagen</span>
|
|
7
7
|
<dso-icon icon="minus-square"></dso-icon>
|
|
8
8
|
</button>
|
|
9
|
-
<input type="number" id="list-button-with-input-selected" readonly tabindex="-1" class="dso-input-step-counter" value="2">
|
|
9
|
+
<input type="number" id="list-button-with-input-selected" readonly tabindex="-1" aria-label="Aantal" class="dso-input-step-counter" value="2">
|
|
10
10
|
<button type="button" class="dso-tertiary"><span class="sr-only">Aantal verhogen</span>
|
|
11
11
|
<dso-icon icon="plus-square"></dso-icon>
|
|
12
12
|
</button>
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<button type="button" class="dso-tertiary"><span class="sr-only">Aantal verlagen</span>
|
|
7
7
|
<dso-icon icon="minus-square"></dso-icon>
|
|
8
8
|
</button>
|
|
9
|
-
<input type="number" id="list-button-with-input" readonly tabindex="-1" class="dso-input-step-counter" value="0">
|
|
9
|
+
<input type="number" id="list-button-with-input" readonly tabindex="-1" aria-label="Aantal" class="dso-input-step-counter" value="0">
|
|
10
10
|
<button type="button" class="dso-tertiary"><span class="sr-only">Aantal verhogen</span>
|
|
11
11
|
<dso-icon icon="plus-square"></dso-icon>
|
|
12
12
|
</button>
|
|
@@ -24,7 +24,7 @@ Opslaan <mark>van</mark> ontplofbare stoffen voor civiel gebruik
|
|
|
24
24
|
<button type="button" class="dso-tertiary"><span class="sr-only">Aantal verlagen</span>
|
|
25
25
|
<dso-icon icon="minus-square"></dso-icon>
|
|
26
26
|
</button>
|
|
27
|
-
<input type="number" id="list-button-LOT-EL-with-input" readonly tabindex="-1" class="dso-input-step-counter" value="2">
|
|
27
|
+
<input type="number" id="list-button-LOT-EL-with-input" readonly tabindex="-1" aria-label="Aantal" class="dso-input-step-counter" value="2">
|
|
28
28
|
<button type="button" class="dso-tertiary"><span class="sr-only">Aantal verhogen</span>
|
|
29
29
|
<dso-icon icon="plus-square"></dso-icon>
|
|
30
30
|
</button>
|
|
@@ -23,7 +23,7 @@ Opslaan <mark>van</mark> ontplofbare stoffen voor civiel gebruik
|
|
|
23
23
|
<button type="button" class="dso-tertiary"><span class="sr-only">Aantal verlagen</span>
|
|
24
24
|
<dso-icon icon="minus-square"></dso-icon>
|
|
25
25
|
</button>
|
|
26
|
-
<input type="number" id="list-button-LOT-with-input" readonly tabindex="-1" class="dso-input-step-counter" value="2">
|
|
26
|
+
<input type="number" id="list-button-LOT-with-input" readonly tabindex="-1" aria-label="Aantal" class="dso-input-step-counter" value="2">
|
|
27
27
|
<button type="button" class="dso-tertiary"><span class="sr-only">Aantal verhogen</span>
|
|
28
28
|
<dso-icon icon="plus-square"></dso-icon>
|
|
29
29
|
</button>
|
package/reference/render/list-button--button-met-optionele-tekst-en-input-number-en-extra-label.html
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<button type="button" class="dso-tertiary"><span class="sr-only">Aantal verlagen</span>
|
|
10
10
|
<dso-icon icon="minus-square"></dso-icon>
|
|
11
11
|
</button>
|
|
12
|
-
<input type="number" id="list-button-OT-EL-with-input" readonly tabindex="-1" class="dso-input-step-counter" value="2">
|
|
12
|
+
<input type="number" id="list-button-OT-EL-with-input" readonly tabindex="-1" aria-label="Aantal" class="dso-input-step-counter" value="2">
|
|
13
13
|
<button type="button" class="dso-tertiary"><span class="sr-only">Aantal verhogen</span>
|
|
14
14
|
<dso-icon icon="plus-square"></dso-icon>
|
|
15
15
|
</button>
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<button type="button" class="dso-tertiary"><span class="sr-only">Aantal verlagen</span>
|
|
9
9
|
<dso-icon icon="minus-square"></dso-icon>
|
|
10
10
|
</button>
|
|
11
|
-
<input type="number" id="list-button-OT-with-input" readonly tabindex="-1" class="dso-input-step-counter" value="2">
|
|
11
|
+
<input type="number" id="list-button-OT-with-input" readonly tabindex="-1" aria-label="Aantal" class="dso-input-step-counter" value="2">
|
|
12
12
|
<button type="button" class="dso-tertiary"><span class="sr-only">Aantal verhogen</span>
|
|
13
13
|
<dso-icon icon="plus-square"></dso-icon>
|
|
14
14
|
</button>
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{r as c,h as t,F as e,g as n}from"./p-a40eeb32.js";import{v as r}from"./p-19b890a3.js";
|
|
2
|
-
/*!
|
|
3
|
-
* tabbable 5.2.1
|
|
4
|
-
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
5
|
-
*/var o=["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 r=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!r||r===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(o));return t&&i.call(c,o)&&n.unshift(c),n.filter(e)}(c,(t=t||{}).includeContainer,u.bind(null,t)).forEach((function(c,t){var r=s(c);0===r?e.push(c):n.push({documentOrder:t,tabIndex:r,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=r()),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()}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{--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 +0,0 @@
|
|
|
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.reference,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:"tree-content",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-level":l,"aria-setsize":c,"aria-posinset":a+1,"aria-busy":s.loading?"true":void 0,onClick:e=>o.itemClick(e,n,s)},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([...t,o])}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 a,:host .tree-content a:visited{color:#39870c;text-decoration:none}:host .tree-content a:hover,:host .tree-content a:focus{color:#676cb0;text-decoration:underline}:host .tree-content a:active{text-decoration:none}:host .tree-content dso-icon{vertical-align:text-bottom;font-size:0.75em;margin-left:0.5em}*,*::after,*::before{box-sizing:border-box}";export{s as dso_tree_view}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{r as c,h as t,F as e,g as n}from"./p-a40eeb32.js";import{v as r}from"./p-19b890a3.js";
|
|
2
|
-
/*!
|
|
3
|
-
* tabbable 5.2.1
|
|
4
|
-
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
5
|
-
*/var o=["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 r=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!r||r===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(o));return t&&i.call(c,o)&&n.unshift(c),n.filter(e)}(c,(t=t||{}).includeContainer,u.bind(null,t)).forEach((function(c,t){var r=s(c);0===r?e.push(c):n.push({documentOrder:t,tabIndex:r,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=r()),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()}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{--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 +0,0 @@
|
|
|
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.reference,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:"tree-content",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-level":l,"aria-setsize":c,"aria-posinset":a+1,"aria-busy":s.loading?"true":void 0,onClick:e=>o.itemClick(e,n,s)},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([...t,o])}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 a,:host .tree-content a:visited{color:#39870c;text-decoration:none}:host .tree-content a:hover,:host .tree-content a:focus{color:#676cb0;text-decoration:underline}:host .tree-content a:active{text-decoration:none}:host .tree-content dso-icon{vertical-align:text-bottom;font-size:0.75em;margin-left:0.5em}*,*::after,*::before{box-sizing:border-box}";export{s as dso_tree_view}
|