dso-toolkit 37.0.0 → 38.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/components/Componenten/highlight-box/highlight-box.config.yml +8 -6
- package/components/Componenten/rich-content/rich-content.njk +8 -6
- package/components/Componenten/tooltip/tooltip.njk +1 -1
- package/components/Componenten/tooltip-css/tooltip-css.njk +1 -1
- package/dist/library/@dso-toolkit/core/cjs/dso-autosuggest.cjs.entry.js +17 -7
- package/dist/library/@dso-toolkit/core/cjs/dso-helpcenter-panel.cjs.entry.js +2 -2
- package/dist/library/@dso-toolkit/core/cjs/dso-highlight-box.cjs.entry.js +1 -1
- package/dist/library/@dso-toolkit/core/cjs/dso-ozon-content.cjs.entry.js +1 -1
- package/dist/library/@dso-toolkit/core/cjs/dso-toggletip.cjs.entry.js +1 -2
- package/dist/library/@dso-toolkit/core/cjs/dso-toolkit.cjs.js +1 -1
- package/dist/library/@dso-toolkit/core/cjs/dso-tooltip.cjs.entry.js +5 -1
- package/dist/library/@dso-toolkit/core/cjs/loader.cjs.js +1 -1
- package/dist/library/@dso-toolkit/core/collection/components/autosuggest/autosuggest.css +11 -2
- package/dist/library/@dso-toolkit/core/collection/components/autosuggest/autosuggest.js +55 -8
- package/dist/library/@dso-toolkit/core/collection/components/autosuggest/autosuggest.stories.js +8 -6
- package/dist/library/@dso-toolkit/core/collection/components/autosuggest/autosuggest.template.js +4 -1
- package/dist/library/@dso-toolkit/core/collection/components/helpcenter-panel/helpcenter-panel.css +1 -0
- package/dist/library/@dso-toolkit/core/collection/components/helpcenter-panel/helpcenter-panel.js +4 -4
- package/dist/library/@dso-toolkit/core/collection/components/highlight-box/highlight-box.css +1 -1
- package/dist/library/@dso-toolkit/core/collection/components/highlight-box/highlight-box.stories.js +8 -6
- package/dist/library/@dso-toolkit/core/collection/components/ozon-content/nodes/noot.node.js +1 -1
- package/dist/library/@dso-toolkit/core/collection/components/toggletip/toggletip.js +1 -2
- package/dist/library/@dso-toolkit/core/collection/components/tooltip/tooltip.js +24 -2
- package/dist/library/@dso-toolkit/core/collection/components/tooltip/tooltip.template.js +2 -2
- package/dist/library/@dso-toolkit/core/custom-elements/index.js +29 -16
- package/dist/library/@dso-toolkit/core/dso-toolkit/dso-toolkit.css +1 -1
- package/dist/library/@dso-toolkit/core/dso-toolkit/dso-toolkit.esm.js +1 -1
- package/dist/library/@dso-toolkit/core/dso-toolkit/{p-d6c47662.entry.js → p-14fc5767.entry.js} +1 -1
- package/dist/{toolkit/core/packages/core/dist/dso-toolkit/p-7b67e324.entry.js → library/@dso-toolkit/core/dso-toolkit/p-150fe323.entry.js} +1 -1
- package/dist/{toolkit/core/packages/core/dist/dso-toolkit/p-2daedd0a.entry.js → library/@dso-toolkit/core/dso-toolkit/p-1e92e29d.entry.js} +1 -1
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-2f64bded.entry.js +1 -0
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-723ef97b.entry.js +1 -0
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-e1496a15.entry.js +1 -0
- package/dist/library/@dso-toolkit/core/esm/dso-autosuggest.entry.js +17 -7
- package/dist/library/@dso-toolkit/core/esm/dso-helpcenter-panel.entry.js +2 -2
- package/dist/library/@dso-toolkit/core/esm/dso-highlight-box.entry.js +1 -1
- package/dist/library/@dso-toolkit/core/esm/dso-ozon-content.entry.js +1 -1
- package/dist/library/@dso-toolkit/core/esm/dso-toggletip.entry.js +1 -2
- package/dist/library/@dso-toolkit/core/esm/dso-toolkit.js +1 -1
- package/dist/library/@dso-toolkit/core/esm/dso-tooltip.entry.js +5 -1
- package/dist/library/@dso-toolkit/core/esm/loader.js +1 -1
- package/dist/library/@dso-toolkit/core/types/components/autosuggest/autosuggest.d.ts +8 -0
- package/dist/library/@dso-toolkit/core/types/components/autosuggest/autosuggest.template.d.ts +1 -1
- package/dist/library/@dso-toolkit/core/types/components/tooltip/tooltip.d.ts +4 -0
- package/dist/library/@dso-toolkit/core/types/components/tooltip/tooltip.template.d.ts +1 -1
- package/dist/library/@dso-toolkit/core/types/components.d.ts +24 -0
- package/dist/library/components/detail/form--autocomplete.html +1 -1
- package/dist/library/components/detail/form--form-horizontal.html +1 -1
- package/dist/library/components/detail/form--form-vertical.html +1 -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 +1 -1
- package/dist/library/components/detail/highlight-box--bordered.html +20 -14
- package/dist/library/components/detail/highlight-box--default.html +20 -14
- package/dist/library/components/detail/highlight-box--icon-indicator.html +20 -14
- package/dist/library/components/detail/highlight-box--link-list.html +8 -6
- package/dist/library/components/detail/highlight-box--step-indicator.html +20 -14
- package/dist/library/components/detail/highlight-box--white-drop-shadow.html +20 -14
- package/dist/library/components/detail/highlight-box--yellow.html +20 -14
- package/dist/library/components/detail/highlight-box.html +128 -90
- package/dist/library/components/detail/rich-content.html +16 -12
- package/dist/library/components/detail/tooltip--default.html +3 -3
- package/dist/library/components/detail/tooltip--tooltip-bottom.html +5 -3
- package/dist/library/components/detail/tooltip--tooltip-left.html +5 -3
- package/dist/library/components/detail/tooltip--tooltip-right-small.html +3 -3
- package/dist/library/components/detail/tooltip--tooltip-right.html +3 -3
- package/dist/library/components/detail/tooltip-css--default.html +2 -2
- package/dist/library/components/detail/tooltip-css--tooltip-bottom.html +2 -2
- package/dist/library/components/detail/tooltip-css--tooltip-left.html +2 -2
- package/dist/library/components/detail/tooltip-css--tooltip-right-small.html +2 -2
- package/dist/library/components/detail/tooltip-css--tooltip-right.html +2 -2
- package/dist/library/components/detail/tooltip-css.html +6 -6
- package/dist/library/components/detail/tooltip.html +15 -11
- package/dist/library/components/preview/highlight-box--bordered.html +12 -8
- package/dist/library/components/preview/highlight-box--default.html +12 -8
- package/dist/library/components/preview/highlight-box--icon-indicator.html +12 -8
- package/dist/library/components/preview/highlight-box--step-indicator.html +12 -8
- package/dist/library/components/preview/highlight-box--white-drop-shadow.html +12 -8
- package/dist/library/components/preview/highlight-box--yellow.html +12 -8
- package/dist/library/components/preview/highlight-box.html +90 -66
- package/dist/library/components/preview/rich-content.html +15 -8
- package/dist/library/components/preview/tooltip--default.html +1 -1
- package/dist/library/components/preview/tooltip--tooltip-bottom.html +1 -1
- package/dist/library/components/preview/tooltip--tooltip-left.html +1 -1
- package/dist/library/components/preview/tooltip--tooltip-right-small.html +1 -1
- package/dist/library/components/preview/tooltip--tooltip-right.html +1 -1
- package/dist/library/components/preview/tooltip-css--default.html +1 -1
- package/dist/library/components/preview/tooltip-css--tooltip-bottom.html +1 -1
- package/dist/library/components/preview/tooltip-css--tooltip-left.html +1 -1
- package/dist/library/components/preview/tooltip-css--tooltip-right-small.html +1 -1
- package/dist/library/components/preview/tooltip-css--tooltip-right.html +1 -1
- package/dist/library/components/preview/tooltip-css.html +5 -5
- package/dist/library/components/preview/tooltip.html +5 -5
- package/dist/library/components/render/highlight-box--bordered.html +4 -2
- package/dist/library/components/render/highlight-box--default.html +4 -2
- package/dist/library/components/render/highlight-box--icon-indicator.html +4 -2
- package/dist/library/components/render/highlight-box--step-indicator.html +4 -2
- package/dist/library/components/render/highlight-box--white-drop-shadow.html +4 -2
- package/dist/library/components/render/highlight-box--yellow.html +4 -2
- package/dist/library/components/render/highlight-box.html +24 -12
- package/dist/library/components/render/rich-content.html +8 -6
- package/dist/library/components/render/tooltip--default.html +1 -1
- package/dist/library/components/render/tooltip--tooltip-bottom.html +1 -1
- package/dist/library/components/render/tooltip--tooltip-left.html +1 -1
- package/dist/library/components/render/tooltip--tooltip-right-small.html +1 -1
- package/dist/library/components/render/tooltip--tooltip-right.html +1 -1
- package/dist/library/components/render/tooltip-css--default.html +1 -1
- package/dist/library/components/render/tooltip-css--tooltip-bottom.html +1 -1
- package/dist/library/components/render/tooltip-css--tooltip-left.html +1 -1
- package/dist/library/components/render/tooltip-css--tooltip-right-small.html +1 -1
- package/dist/library/components/render/tooltip-css--tooltip-right.html +1 -1
- package/dist/library/components/render/tooltip-css.html +5 -5
- package/dist/library/components/render/tooltip.html +5 -5
- package/dist/library/styles/dso.css +1 -2
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/dso-toolkit.css +1 -1
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/dso-toolkit.esm.js +1 -1
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/{p-d6c47662.entry.js → p-14fc5767.entry.js} +1 -1
- package/dist/{library/@dso-toolkit/core/dso-toolkit/p-7b67e324.entry.js → toolkit/core/packages/core/dist/dso-toolkit/p-150fe323.entry.js} +1 -1
- package/dist/{library/@dso-toolkit/core/dso-toolkit/p-2daedd0a.entry.js → toolkit/core/packages/core/dist/dso-toolkit/p-1e92e29d.entry.js} +1 -1
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/p-2f64bded.entry.js +1 -0
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/p-723ef97b.entry.js +1 -0
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/p-e1496a15.entry.js +1 -0
- package/dist/toolkit/styles/dso.css +1 -2
- package/hydrate/index.js +31 -15
- package/libs/@dso-toolkit/css/src/components/list/list.scss +1 -1
- package/libs/@dso-toolkit/css/src/components/modal/modal.scss +1 -1
- package/libs/@dso-toolkit/css/src/components/rich-content/rich-content.scss +1 -1
- package/libs/@dso-toolkit/sources/src/components/autosuggest/autosuggest.args.ts +12 -0
- package/libs/@dso-toolkit/sources/src/components/autosuggest/autosuggest.models.ts +2 -0
- package/libs/@dso-toolkit/sources/src/components/autosuggest/autosuggest.stories.ts +6 -3
- package/libs/@dso-toolkit/sources/src/components/highlight-box/highlight-box.scss +1 -2
- package/libs/@dso-toolkit/sources/src/components/tooltip/tooltip.args.ts +7 -0
- package/libs/@dso-toolkit/sources/src/components/tooltip/tooltip.models.ts +1 -0
- package/libs/@dso-toolkit/sources/src/styling/global/dl.scss +1 -1
- package/libs/@dso-toolkit/sources/src/styling/global/table.scss +1 -1
- package/libs/@dso-toolkit/sources/src/styling/mixins/rich-content.scss +1 -1
- package/package.json +2 -2
- package/reference/render/highlight-box--bordered.html +4 -2
- package/reference/render/highlight-box--default.html +4 -2
- package/reference/render/highlight-box--icon-indicator.html +4 -2
- package/reference/render/highlight-box--step-indicator.html +4 -2
- package/reference/render/highlight-box--white-drop-shadow.html +4 -2
- package/reference/render/highlight-box--yellow.html +4 -2
- package/reference/render/rich-content.html +8 -6
- package/reference/render/tooltip--default.html +1 -1
- package/reference/render/tooltip--tooltip-bottom.html +1 -1
- package/reference/render/tooltip--tooltip-left.html +1 -1
- package/reference/render/tooltip--tooltip-right-small.html +1 -1
- package/reference/render/tooltip--tooltip-right.html +1 -1
- package/reference/render/tooltip-css--default.html +1 -1
- package/reference/render/tooltip-css--tooltip-bottom.html +1 -1
- package/reference/render/tooltip-css--tooltip-left.html +1 -1
- package/reference/render/tooltip-css--tooltip-right-small.html +1 -1
- package/reference/render/tooltip-css--tooltip-right.html +1 -1
- package/src/styles/components/_jumbotron.scss +1 -1
- package/src/styles/components/_panel.scss +1 -1
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-1dc02e51.entry.js +0 -1
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-50c71bd2.entry.js +0 -1
- package/dist/library/@dso-toolkit/core/dso-toolkit/p-d1f62081.entry.js +0 -1
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/p-1dc02e51.entry.js +0 -1
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/p-50c71bd2.entry.js +0 -1
- package/dist/toolkit/core/packages/core/dist/dso-toolkit/p-d1f62081.entry.js +0 -1
|
@@ -12,12 +12,14 @@ context:
|
|
|
12
12
|
<p>Het Opleverdossier (zie voor een nadere omschrijving van de informatieproducten de volgende paragrafen) is de, door gebruikers gewenste, centrale registratie waarin alle informatie over een bouwwerk is opgenomen. Het gaat hierbij om de tekeningen, berekeningen en de resultaten van de kwaliteitsborging (zoals toetsen en inspecties).</p>
|
|
13
13
|
<p>De <a href="#">Bouwregelgeving</a> is een database met alle bouwregelgeving in Nederland, die op zodanige wijze moet zijn ingericht en ontsloten dat die voldoet aan de eisen van de Omgevingswet (3B's), en daarmee bruikbaar is in de ontwerp- en toetsingsfase van ieder bouwwerk.</p>
|
|
14
14
|
<p>Het derde informatieproduct zijn de Vergunningvrije bouwwerken, hierin zijn opgenomen de (bekende) bouwwerken die vergunningvrij, maar niet regelvrij, zijn gerealiseerd. Het vierde en vooralsnog laatste informatieproduct is de Digitaliseringshulp, een service voor het centraal en gestandaardiseerd digitaliseren van documenten.</p>
|
|
15
|
-
<
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
<div class="dso-button-row">
|
|
16
|
+
<a href="#" class="dso-primary">Primaire button</a>
|
|
17
|
+
<a href="#" class="dso-secondary">Secundaire button</a>
|
|
18
|
+
<a href="#" class="dso-tertiary btn-align">
|
|
19
|
+
Tertiaire button
|
|
20
|
+
<dso-icon icon="chevron-down"></dso-icon>
|
|
21
|
+
</a>
|
|
22
|
+
</div>
|
|
21
23
|
</div>
|
|
22
24
|
variants:
|
|
23
25
|
- name: yellow
|
|
@@ -34,12 +34,14 @@
|
|
|
34
34
|
<p>Het Opleverdossier (zie voor een nadere omschrijving van de informatieproducten de volgende paragrafen) is de, door gebruikers gewenste, centrale registratie waarin alle informatie over een bouwwerk is opgenomen. Het gaat hierbij om de tekeningen, berekeningen en de resultaten van de kwaliteitsborging (zoals toetsen en inspecties).</p>
|
|
35
35
|
<p>De <a href="#">Bouwregelgeving</a> is een database met alle bouwregelgeving in Nederland, die op zodanige wijze moet zijn ingericht en ontsloten dat die voldoet aan de eisen van de Omgevingswet (3B's), en daarmee bruikbaar is in de ontwerp- en toetsingsfase van ieder bouwwerk.</p>
|
|
36
36
|
<p>Het derde informatieproduct zijn de Vergunningvrije bouwwerken, hierin zijn opgenomen de (bekende) bouwwerken die vergunningvrij, maar niet regelvrij, zijn gerealiseerd. Het vierde en vooralsnog laatste informatieproduct is de Digitaliseringshulp, een service voor het centraal en gestandaardiseerd digitaliseren van documenten.</p>
|
|
37
|
-
<
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
37
|
+
<div class="dso-button-row">
|
|
38
|
+
<a href="#" class="dso-primary">Primaire button</a>
|
|
39
|
+
<a href="#" class="dso-secondary">Secundaire button</a>
|
|
40
|
+
<a href="#" class="dso-tertiary btn-align">
|
|
41
|
+
Tertiaire button
|
|
42
|
+
<dso-icon icon="chevron-down"></dso-icon>
|
|
43
|
+
</a>
|
|
44
|
+
</div>
|
|
43
45
|
</div>
|
|
44
46
|
</dso-highlight-box>
|
|
45
47
|
<p>Lorem Ipsum is slechts een proeftekst uit het drukkerij- en zetterijwezen. Lorem Ipsum is de standaard proeftekst in deze bedrijfstak sinds de 16e eeuw, toen een onbekende drukker een zethaak met letters nam en ze door elkaar husselde om een font-catalogus te maken.</p>
|
|
@@ -7,6 +7,6 @@
|
|
|
7
7
|
|
|
8
8
|
<!-- Expliciet: @for attribute met verwijzing naar ander element -->
|
|
9
9
|
<input type="text" id="demo-{{ _self.handle }}">
|
|
10
|
-
<dso-tooltip position="{{ position }}" for="demo-{{ _self.handle }}" {{ attributes([small, 'small']) }}>
|
|
10
|
+
<dso-tooltip descriptive position="{{ position }}" for="demo-{{ _self.handle }}" {{ attributes([small, 'small']) }}>
|
|
11
11
|
{{ label }}
|
|
12
12
|
</dso-tooltip>
|
|
@@ -18,7 +18,7 @@ function escapeStringRegexp(string) {
|
|
|
18
18
|
.replace(/-/g, '\\x2d');
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
const autosuggestCss = ".sc-dso-autosuggest-h{display:block;position:relative}ul.sc-dso-autosuggest{background-clip:padding-box;background-color:#fff;border:1px solid rgba(0, 0, 0, 0.15);border-radius:4px;box-shadow:0 6px 12px rgba(0, 0, 0, 0.175);list-style-type:none;margin-top:2px;padding:4px 0;position:absolute;left:0;right:0;top:100%;z-index:200}ul.sc-dso-autosuggest li.sc-dso-autosuggest{display:flex;justify-content:space-between;padding:4px
|
|
21
|
+
const autosuggestCss = ".sc-dso-autosuggest-h{display:block;position:relative}ul.sc-dso-autosuggest,.autosuggest-progress-box.sc-dso-autosuggest{background-clip:padding-box;background-color:#fff;border:1px solid rgba(0, 0, 0, 0.15);border-radius:4px;box-shadow:0 6px 12px rgba(0, 0, 0, 0.175);list-style-type:none;margin-top:2px;padding:4px 0;position:absolute;left:0;right:0;top:100%;z-index:200}.autosuggest-progress-box.sc-dso-autosuggest{padding:12px 8px}ul.sc-dso-autosuggest{padding:8px 0}ul.sc-dso-autosuggest li.sc-dso-autosuggest{display:flex;justify-content:space-between;padding:4px 16px}li[aria-selected=true].sc-dso-autosuggest{cursor:pointer;background-color:#39870c}li[aria-selected=true].sc-dso-autosuggest,li[aria-selected=true].sc-dso-autosuggest .type.sc-dso-autosuggest{color:#fff}mark.sc-dso-autosuggest{font-weight:700;background-color:inherit;color:inherit;padding:0}.type.sc-dso-autosuggest{color:#666}";
|
|
22
22
|
|
|
23
23
|
let Autosuggest = class {
|
|
24
24
|
constructor(hostRef) {
|
|
@@ -34,6 +34,14 @@ let Autosuggest = class {
|
|
|
34
34
|
* the original object that was used to create the suggestion.
|
|
35
35
|
*/
|
|
36
36
|
this.suggestions = [];
|
|
37
|
+
/**
|
|
38
|
+
* Shows progress indicator when fetching results.
|
|
39
|
+
*/
|
|
40
|
+
this.loading = false;
|
|
41
|
+
/**
|
|
42
|
+
* To override progress indicator's default loading label.
|
|
43
|
+
*/
|
|
44
|
+
this.loadingLabel = "Een moment geduld.";
|
|
37
45
|
/**
|
|
38
46
|
* Whether the previous suggestions will be presented when the input gets focus again.
|
|
39
47
|
*/
|
|
@@ -55,7 +63,7 @@ let Autosuggest = class {
|
|
|
55
63
|
}
|
|
56
64
|
};
|
|
57
65
|
this.onKeyDown = (event) => {
|
|
58
|
-
if (event.defaultPrevented) {
|
|
66
|
+
if (event.defaultPrevented || this.loading) {
|
|
59
67
|
return;
|
|
60
68
|
}
|
|
61
69
|
switch (event.key) {
|
|
@@ -229,11 +237,13 @@ let Autosuggest = class {
|
|
|
229
237
|
}
|
|
230
238
|
render() {
|
|
231
239
|
const terms = this.input.value.split(' ').filter(t => t);
|
|
232
|
-
return (index.h(index.Fragment, null, index.h("slot", null),
|
|
233
|
-
?
|
|
234
|
-
|
|
235
|
-
:
|
|
236
|
-
|
|
240
|
+
return (index.h(index.Fragment, null, index.h("slot", null), this.loading
|
|
241
|
+
? index.h("div", { class: "autosuggest-progress-box" }, index.h("dso-progress-indicator", { label: this.loadingLabel }))
|
|
242
|
+
: index.h("ul", { role: "listbox", id: this.listboxId, "aria-labelledby": this.labelId, ref: element => this.listbox = element, hidden: !this.showSuggestions }, this.showSuggestions
|
|
243
|
+
? this.suggestions.map((suggestion) => (index.h("li", { role: "option", id: this.listboxItemId(suggestion), key: suggestion.value, onMouseEnter: () => this.selectSuggestion(suggestion), onMouseLeave: () => this.resetSelectedSuggestion(), onClick: () => this.pickSelectedValue(), "aria-selected": (suggestion === this.selectedSuggestion).toString(), "aria-label": suggestion.value }, index.h("span", { class: "value" }, this.markTerms(suggestion.value, terms)), suggestion.type
|
|
244
|
+
? (index.h("span", { class: "type" }, suggestion.type))
|
|
245
|
+
: undefined)))
|
|
246
|
+
: undefined)));
|
|
237
247
|
}
|
|
238
248
|
get host() { return index.getElement(this); }
|
|
239
249
|
static get watchers() { return {
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-0a7c679a.js');
|
|
6
6
|
|
|
7
|
-
const helpcenterPanelCss = ":host{display:block;--di-times:url(\"data:image/svg+xml,%3csvg id='times' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %2339870c%3b'%3e %3cpath fill='currentColor' d='M13.36%2c12l3.3-3.3A1%2c1%2c0%2c1%2c0%2c15.3%2c7.34L12%2c10.64%2c8.7%2c7.34A1%2c1%2c0%2c1%2c0%2c7.34%2c8.7l3.3%2c3.3-3.3%2c3.3A1%2c1%2c0%2c1%2c0%2c8.7%2c16.66l3.3-3.3%2c3.3%2c3.3a1%2c1%2c0%2c1%2c0%2c1.36-1.36Z'/%3e %3c/svg%3e\");--di-times-wit:url(\"data:image/svg+xml,%3csvg id='times' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: white%3b'%3e %3cpath fill='currentColor' d='M13.36%2c12l3.3-3.3A1%2c1%2c0%2c1%2c0%2c15.3%2c7.34L12%2c10.64%2c8.7%2c7.34A1%2c1%2c0%2c1%2c0%2c7.34%2c8.7l3.3%2c3.3-3.3%2c3.3A1%2c1%2c0%2c1%2c0%2c8.7%2c16.66l3.3-3.3%2c3.3%2c3.3a1%2c1%2c0%2c1%2c0%2c1.36-1.36Z'/%3e %3c/svg%3e\")}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}.wrapper{height:100%;left:0;position:fixed;top:0;visibility:hidden;width:100%}.wrapper.visible{visibility:visible}.dimscreen{background-color:#000;height:100%;opacity:0.4;width:100%}.open-button{display:inline-block;font-size:1em;font-weight:500;margin-bottom:0;text-decoration:none;touch-action:manipulation;text-align:left;user-select:none;vertical-align:middle;display:inline-block;font-size:1em;font-weight:500;margin-bottom:0;text-decoration:none;touch-action:manipulation;text-align:left;user-select:none;vertical-align:middle;background-color:#39870c;border-color:#39870c;color:#fff;border-width:1px;border-style:solid;border-radius:4px;line-height:1.5;min-width:56px;padding:11px 15px;border:0;bottom:16px;font-family:Asap, sans-serif;position:fixed;right:16px}.open-button:focus,.open-button:focus-visible{outline-offset:2px}.open-button:active{outline:0}.open-button.extern::after,.open-button.download::after{content:\"\";display:inline-block;height:1.5em;margin-left:8px;vertical-align:top;width:1.5em}.open-button:focus,.open-button:focus-visible{outline-offset:2px}.open-button:active{outline:0}.open-button.extern::after,.open-button.download::after{content:\"\";display:inline-block;height:1.5em;margin-left:8px;vertical-align:top;width:1.5em}.open-button:hover{background-color:#275937;border-color:#275937;color:#fff}.open-button:active{background-color:#15301e;border-color:#15301e;color:#fff}.open-button[disabled],.open-button[disabled]:hover{background-color:#afcf9d;border-color:#afcf9d;color:#fff}.open-button.btn-sm{line-height:16px}.open-button.btn-sm dso-icon,.open-button.btn-sm svg.di,.open-button.btn-sm.extern::after,.open-button.btn-sm.download::after{margin-bottom:-4px;margin-top:-4px}.open-button.download::after{background:var(--dso-icon, var(--di-download-wit)) no-repeat;background-position:center;background-size:cover;height:24px;vertical-align:top;width:24px}.open-button.extern::after{background:var(--dso-icon, var(--di-external-link-wit)) no-repeat;background-position:center;background-size:cover;height:24px;vertical-align:top;width:24px}.open-button dso-icon,.open-button svg.di{margin-left:-8px;margin-right:8px}.open-button span+dso-icon,.open-button span+svg.di{margin-left:8px;margin-right:-8px}.open-button:hover{cursor:pointer}.open-button.open{display:none}.close-button{display:inline-block;font-size:1em;font-weight:500;margin-bottom:0;text-decoration:none;touch-action:manipulation;text-align:left;user-select:none;vertical-align:middle;background-color:#fff;border-color:#39870c;color:#39870c;border-width:1px;border-style:solid;border-radius:4px;line-height:1.5;min-width:56px;padding:11px 15px;border-right:0;border-top:0;border-radius:0 0 0 8px;height:40px;min-width:40px;padding:0;position:fixed;right:0;width:40px;top:0}.close-button:focus,.close-button:focus-visible{outline-offset:2px}.close-button:active{outline:0}.close-button.extern::after,.close-button.download::after{content:\"\";display:inline-block;height:1.5em;margin-left:8px;vertical-align:top;width:1.5em}.close-button:hover{background-color:#39870c;border-color:#39870c;color:#fff}.close-button:active{background-color:#275937;border-color:#275937;color:#fff}.close-button[disabled],.close-button[disabled]:hover{background-color:#fff;border-color:#afcf9d;color:#afcf9d}.close-button.btn-sm{line-height:16px}.close-button.btn-sm dso-icon,.close-button.btn-sm svg.di,.close-button.btn-sm.extern::after,.close-button.btn-sm.download::after{margin-bottom:-4px;margin-top:-4px}.close-button.download::after{background:var(--dso-icon, var(--di-download)) no-repeat;background-position:center;background-size:cover;height:24px;vertical-align:top;width:24px}.close-button.download:hover::after{--dso-icon:var(--di-download-wit)}.close-button.download[disabled]::after{--dso-icon:var(--di-download-grasgroen-40)}.close-button.extern::after{background:var(--dso-icon, var(--di-external-link)) no-repeat;background-position:center;background-size:cover;height:24px;vertical-align:top;width:24px}.close-button.extern:hover::after{--dso-icon:var(--di-external-link-wit)}.close-button.extern[disabled]::after{--dso-icon:var(--di-external-link-grasgroen-40)}.close-button dso-icon,.close-button svg.di{margin-left:-8px;margin-right:8px}.close-button span+dso-icon,.close-button span+svg.di{margin-left:8px;margin-right:-8px}.close-button::before{background:var(--dso-icon, var(--di-times)) no-repeat;background-position:center;background-size:cover;height:24px;vertical-align:top;width:24px;content:\"\";display:inline-block;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%)}.close-button:hover,.close-button:active,.close-button:focus{cursor:pointer}.close-button:hover::before,.close-button:active::before,.close-button:focus::before{background:var(--dso-icon, var(--di-times-wit)) no-repeat;background-position:center;background-size:cover;height:24px;vertical-align:top;width:24px}.close-button.close{display:none}.iframe-container{background-color:#fff;border:0;border-left:1px solid #ccc;box-shadow:0 2px 8px 0 rgba(0, 0, 0, 0.4);height:100%;position:absolute;right:-640px;top:0;transition:right 0.5s;width:640px}.iframe-container.open{right:0}iframe{border:0;height:100%;width:100%}";
|
|
7
|
+
const helpcenterPanelCss = ":host{display:block;--di-times:url(\"data:image/svg+xml,%3csvg id='times' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %2339870c%3b'%3e %3cpath fill='currentColor' d='M13.36%2c12l3.3-3.3A1%2c1%2c0%2c1%2c0%2c15.3%2c7.34L12%2c10.64%2c8.7%2c7.34A1%2c1%2c0%2c1%2c0%2c7.34%2c8.7l3.3%2c3.3-3.3%2c3.3A1%2c1%2c0%2c1%2c0%2c8.7%2c16.66l3.3-3.3%2c3.3%2c3.3a1%2c1%2c0%2c1%2c0%2c1.36-1.36Z'/%3e %3c/svg%3e\");--di-times-wit:url(\"data:image/svg+xml,%3csvg id='times' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: white%3b'%3e %3cpath fill='currentColor' d='M13.36%2c12l3.3-3.3A1%2c1%2c0%2c1%2c0%2c15.3%2c7.34L12%2c10.64%2c8.7%2c7.34A1%2c1%2c0%2c1%2c0%2c7.34%2c8.7l3.3%2c3.3-3.3%2c3.3A1%2c1%2c0%2c1%2c0%2c8.7%2c16.66l3.3-3.3%2c3.3%2c3.3a1%2c1%2c0%2c1%2c0%2c1.36-1.36Z'/%3e %3c/svg%3e\")}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}.wrapper{height:100%;left:0;position:fixed;top:0;visibility:hidden;width:100%}.wrapper.visible{visibility:visible}.dimscreen{background-color:#000;height:100%;opacity:0.4;width:100%}.open-button{display:inline-block;font-size:1em;font-weight:500;margin-bottom:0;text-decoration:none;touch-action:manipulation;text-align:left;user-select:none;vertical-align:middle;display:inline-block;font-size:1em;font-weight:500;margin-bottom:0;text-decoration:none;touch-action:manipulation;text-align:left;user-select:none;vertical-align:middle;background-color:#39870c;border-color:#39870c;color:#fff;border-width:1px;border-style:solid;border-radius:4px;line-height:1.5;min-width:56px;padding:11px 15px;border:0;bottom:16px;font-family:Asap, sans-serif;position:fixed;right:16px;box-shadow:0 4px 8px 0 rgba(0, 0, 0, 0.2)}.open-button:focus,.open-button:focus-visible{outline-offset:2px}.open-button:active{outline:0}.open-button.extern::after,.open-button.download::after{content:\"\";display:inline-block;height:1.5em;margin-left:8px;vertical-align:top;width:1.5em}.open-button:focus,.open-button:focus-visible{outline-offset:2px}.open-button:active{outline:0}.open-button.extern::after,.open-button.download::after{content:\"\";display:inline-block;height:1.5em;margin-left:8px;vertical-align:top;width:1.5em}.open-button:hover{background-color:#275937;border-color:#275937;color:#fff}.open-button:active{background-color:#15301e;border-color:#15301e;color:#fff}.open-button[disabled],.open-button[disabled]:hover{background-color:#afcf9d;border-color:#afcf9d;color:#fff}.open-button.btn-sm{line-height:16px}.open-button.btn-sm dso-icon,.open-button.btn-sm svg.di,.open-button.btn-sm.extern::after,.open-button.btn-sm.download::after{margin-bottom:-4px;margin-top:-4px}.open-button.download::after{background:var(--dso-icon, var(--di-download-wit)) no-repeat;background-position:center;background-size:cover;height:24px;vertical-align:top;width:24px}.open-button.extern::after{background:var(--dso-icon, var(--di-external-link-wit)) no-repeat;background-position:center;background-size:cover;height:24px;vertical-align:top;width:24px}.open-button dso-icon,.open-button svg.di{margin-left:-8px;margin-right:8px}.open-button span+dso-icon,.open-button span+svg.di{margin-left:8px;margin-right:-8px}.open-button:hover{cursor:pointer}.open-button.open{display:none}.close-button{display:inline-block;font-size:1em;font-weight:500;margin-bottom:0;text-decoration:none;touch-action:manipulation;text-align:left;user-select:none;vertical-align:middle;background-color:#fff;border-color:#39870c;color:#39870c;border-width:1px;border-style:solid;border-radius:4px;line-height:1.5;min-width:56px;padding:11px 15px;border-right:0;border-top:0;border-radius:0 0 0 8px;height:40px;min-width:40px;padding:0;position:fixed;right:0;width:40px;top:0}.close-button:focus,.close-button:focus-visible{outline-offset:2px}.close-button:active{outline:0}.close-button.extern::after,.close-button.download::after{content:\"\";display:inline-block;height:1.5em;margin-left:8px;vertical-align:top;width:1.5em}.close-button:hover{background-color:#39870c;border-color:#39870c;color:#fff}.close-button:active{background-color:#275937;border-color:#275937;color:#fff}.close-button[disabled],.close-button[disabled]:hover{background-color:#fff;border-color:#afcf9d;color:#afcf9d}.close-button.btn-sm{line-height:16px}.close-button.btn-sm dso-icon,.close-button.btn-sm svg.di,.close-button.btn-sm.extern::after,.close-button.btn-sm.download::after{margin-bottom:-4px;margin-top:-4px}.close-button.download::after{background:var(--dso-icon, var(--di-download)) no-repeat;background-position:center;background-size:cover;height:24px;vertical-align:top;width:24px}.close-button.download:hover::after{--dso-icon:var(--di-download-wit)}.close-button.download[disabled]::after{--dso-icon:var(--di-download-grasgroen-40)}.close-button.extern::after{background:var(--dso-icon, var(--di-external-link)) no-repeat;background-position:center;background-size:cover;height:24px;vertical-align:top;width:24px}.close-button.extern:hover::after{--dso-icon:var(--di-external-link-wit)}.close-button.extern[disabled]::after{--dso-icon:var(--di-external-link-grasgroen-40)}.close-button dso-icon,.close-button svg.di{margin-left:-8px;margin-right:8px}.close-button span+dso-icon,.close-button span+svg.di{margin-left:8px;margin-right:-8px}.close-button::before{background:var(--dso-icon, var(--di-times)) no-repeat;background-position:center;background-size:cover;height:24px;vertical-align:top;width:24px;content:\"\";display:inline-block;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%)}.close-button:hover,.close-button:active,.close-button:focus{cursor:pointer}.close-button:hover::before,.close-button:active::before,.close-button:focus::before{background:var(--dso-icon, var(--di-times-wit)) no-repeat;background-position:center;background-size:cover;height:24px;vertical-align:top;width:24px}.close-button.close{display:none}.iframe-container{background-color:#fff;border:0;border-left:1px solid #ccc;box-shadow:0 2px 8px 0 rgba(0, 0, 0, 0.4);height:100%;position:absolute;right:-640px;top:0;transition:right 0.5s;width:640px}.iframe-container.open{right:0}iframe{border:0;height:100%;width:100%}";
|
|
8
8
|
|
|
9
9
|
const maxCssTransitionMilliseconds = 500;
|
|
10
10
|
let HelpcenterPanel = class {
|
|
@@ -36,7 +36,7 @@ let HelpcenterPanel = class {
|
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
38
|
render() {
|
|
39
|
-
return (index.h(index.Fragment, null, index.h("button", { type: "button", onClick: this.openClick, class: `open-button ${this.isOpen}
|
|
39
|
+
return (index.h(index.Fragment, null, index.h("button", { type: "button", onClick: this.openClick, class: `open-button ${this.isOpen}`, "aria-expanded": "false", "aria-haspopup": "dialog" }, index.h("dso-icon", { icon: "help" }), index.h("span", null, this.label)), index.h("div", { class: `wrapper ${this.visibility}` }, index.h("div", { class: "dimscreen", onClick: this.closeClick }), index.h("div", { class: `iframe-container ${this.slideState}`, "aria-live": "polite" }, this.loadIframe ? index.h("iframe", { src: this.url }) : index.h("div", null)), index.h("button", { type: "button", class: `close-button ${this.isOpen}`, onClick: this.closeClick, "aria-expanded": "true" }, index.h("span", { class: "sr-only" }, "sluiten")))));
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
42
|
HelpcenterPanel.style = helpcenterPanelCss;
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-0a7c679a.js');
|
|
6
6
|
const clsx_m = require('./clsx.m-b00fa5e1.js');
|
|
7
7
|
|
|
8
|
-
const highlightBoxCss = ":host{--di-external-link-grijs90:url(\"data:image/svg+xml,%3csvg id='external-link' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %23191919%3b'%3e %3cpath fill='currentColor' d='M19%2c6V9.69c0%2c.33-.2.41-.43.17L17.06%2c8.35l-3.35%2c3.36a1%2c1%2c0%2c0%2c1-1.42%2c0%2c1%2c1%2c0%2c0%2c1%2c0-1.42l3.36-3.35L14.14%2c5.43C13.9%2c5.19%2c14%2c5%2c14.31%2c5H19V6ZM18%2c17V13a1%2c1%2c0%2c0%2c0-2%2c0v4a1%2c1%2c0%2c0%2c1-1%2c1H7a1%2c1%2c0%2c0%2c1-1-1V9A1%2c1%2c0%2c0%2c1%2c7%2c8h4a1%2c1%2c0%2c0%2c0%2c0-2H7A3%2c3%2c0%2c0%2c0%2c4%2c9v8a3%2c3%2c0%2c0%2c0%2c3%2c3h8A3%2c3%2c0%2c0%2c0%2c18%2c17Z'/%3e %3c/svg%3e\");--di-download-grijs90:url(\"data:image/svg+xml,%3csvg id='download' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %23191919%3b'%3e %3cpath fill='currentColor' d='M18.72%2c10.44%2c12%2c17l-6.7-6.52C4.8%2c10%2c5%2c9.63%2c5.63%2c9.63H8.5V1.82A.8.8%2c0%2c0%2c1%2c9.28%2c1h5.44a.8.8%2c0%2c0%2c1%2c.78.82V9.61h2.87C19%2c9.6%2c19.2%2c10%2c18.72%2c10.44ZM1%2c17v6H23V17Zm16%2c3a2%2c2%2c0%2c1%2c1-2-2A2%2c2%2c0%2c0%2c1%2c17%2c20Zm5%2c0a2%2c2%2c0%2c1%2c1-2-2A2%2c2%2c0%2c0%2c1%2c22%2c20Z'/%3e %3c/svg%3e\");display:block}:host-context(.row.dso-equal-heights){height:100%;min-height:auto}:host-context(.row.dso-equal-heights)>.dso-highlight-box{min-height:auto}:host-context(.row.dso-equal-heights)>.dso-highlight-box.dso-has-counter{height:calc(100% - 48px)}:host-context(.row.dso-equal-heights)>.dso-highlight-box:not(.dso-has-counter){height:calc(100% - 16px)}*,*::after,*::before{box-sizing:border-box}.dso-highlight-box{background-color:#f2f2f2;margin-top:16px;padding:16px;margin-bottom:
|
|
8
|
+
const highlightBoxCss = ":host{--di-external-link-grijs90:url(\"data:image/svg+xml,%3csvg id='external-link' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %23191919%3b'%3e %3cpath fill='currentColor' d='M19%2c6V9.69c0%2c.33-.2.41-.43.17L17.06%2c8.35l-3.35%2c3.36a1%2c1%2c0%2c0%2c1-1.42%2c0%2c1%2c1%2c0%2c0%2c1%2c0-1.42l3.36-3.35L14.14%2c5.43C13.9%2c5.19%2c14%2c5%2c14.31%2c5H19V6ZM18%2c17V13a1%2c1%2c0%2c0%2c0-2%2c0v4a1%2c1%2c0%2c0%2c1-1%2c1H7a1%2c1%2c0%2c0%2c1-1-1V9A1%2c1%2c0%2c0%2c1%2c7%2c8h4a1%2c1%2c0%2c0%2c0%2c0-2H7A3%2c3%2c0%2c0%2c0%2c4%2c9v8a3%2c3%2c0%2c0%2c0%2c3%2c3h8A3%2c3%2c0%2c0%2c0%2c18%2c17Z'/%3e %3c/svg%3e\");--di-download-grijs90:url(\"data:image/svg+xml,%3csvg id='download' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='color: %23191919%3b'%3e %3cpath fill='currentColor' d='M18.72%2c10.44%2c12%2c17l-6.7-6.52C4.8%2c10%2c5%2c9.63%2c5.63%2c9.63H8.5V1.82A.8.8%2c0%2c0%2c1%2c9.28%2c1h5.44a.8.8%2c0%2c0%2c1%2c.78.82V9.61h2.87C19%2c9.6%2c19.2%2c10%2c18.72%2c10.44ZM1%2c17v6H23V17Zm16%2c3a2%2c2%2c0%2c1%2c1-2-2A2%2c2%2c0%2c0%2c1%2c17%2c20Zm5%2c0a2%2c2%2c0%2c1%2c1-2-2A2%2c2%2c0%2c0%2c1%2c22%2c20Z'/%3e %3c/svg%3e\");display:block}:host-context(.row.dso-equal-heights){height:100%;min-height:auto}:host-context(.row.dso-equal-heights)>.dso-highlight-box{min-height:auto}:host-context(.row.dso-equal-heights)>.dso-highlight-box.dso-has-counter{height:calc(100% - 48px)}:host-context(.row.dso-equal-heights)>.dso-highlight-box:not(.dso-has-counter){height:calc(100% - 16px)}*,*::after,*::before{box-sizing:border-box}.dso-highlight-box{background-color:#f2f2f2;margin-top:16px;padding:16px;margin-bottom:24px}.dso-highlight-box.dso-white{background-color:#fff}.dso-highlight-box.dso-yellow{background-color:#f8f6cc}.dso-highlight-box.dso-drop-shadow{box-shadow:0 4px 8px 0 rgba(0, 0, 0, 0.2)}.dso-highlight-box.dso-border{background-color:#fff;border:1px solid #ccc;padding:15px}.dso-highlight-box.dso-has-counter{margin-top:48px}.dso-highlight-box.dso-has-counter{padding-top:40px;position:relative}.dso-highlight-box .dso-step-counter{background-color:#275937;border:8px solid #79b929;border-radius:50%;box-sizing:content-box;color:#fff;font-size:1.25em;font-weight:500;height:32px;left:16px;line-height:32px;position:absolute;text-align:center;top:-24px;width:32px}.dso-highlight-box dso-icon{vertical-align:text-top}";
|
|
9
9
|
|
|
10
10
|
let HighlightBox = class {
|
|
11
11
|
constructor(hostRef) {
|
|
@@ -157,7 +157,7 @@ class OzonContentNootNode {
|
|
|
157
157
|
return (index.h(index.Fragment, null,
|
|
158
158
|
index.h("sup", null,
|
|
159
159
|
index.h("button", { type: "button", class: "toggle-note", id: noteControlsId, onClick: () => setState === null || setState === void 0 ? void 0 : setState(openNoteId === noteId ? undefined : noteId), onBlur: () => setState === null || setState === void 0 ? void 0 : setState(undefined), "aria-expanded": openNoteId === noteId ? 'true' : 'false' }, nootNummer)),
|
|
160
|
-
index.h("dso-tooltip", { active: openNoteId === noteId, for: noteControlsId, stateless: true },
|
|
160
|
+
index.h("dso-tooltip", { active: openNoteId === noteId, for: noteControlsId, stateless: true, descriptive: true },
|
|
161
161
|
index.h("span", { role: "section" }, mapNodeToJsx(Array.from(node.querySelectorAll(':scope > Al')))))));
|
|
162
162
|
}
|
|
163
163
|
}
|
|
@@ -51,10 +51,9 @@ let Toggletip = class {
|
|
|
51
51
|
throw Error("button not found");
|
|
52
52
|
}
|
|
53
53
|
this.button = button;
|
|
54
|
-
this.host.setAttribute("tabindex", "-1");
|
|
55
54
|
}
|
|
56
55
|
render() {
|
|
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))));
|
|
56
|
+
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, descriptive: true, for: "toggle", active: this.active, position: this.position, small: this.small }, index.h("slot", null))));
|
|
58
57
|
}
|
|
59
58
|
get host() { return index.getElement(this); }
|
|
60
59
|
};
|
|
@@ -15,5 +15,5 @@ const patchBrowser = () => {
|
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(options => {
|
|
18
|
-
return index.bootstrapLazy([["dso-map-base-layers.cjs",[[1,"dso-map-base-layers",{"baseLayers":[16]}]]],["dso-map-overlays.cjs",[[1,"dso-map-overlays",{"overlays":[16]}]]],["dso-header.cjs",[[1,"dso-header",{"loginUrl":[1,"login-url"],"logoutUrl":[1,"logout-url"],"mainMenu":[16],"useDropDownMenu":[1,"use-drop-down-menu"],"isLoggedIn":[4,"is-logged-in"],"userProfileName":[1,"user-profile-name"],"userProfileUrl":[1,"user-profile-url"],"userHomeUrl":[1,"user-home-url"],"showDropDown":[32],"hasSubLogo":[32],"overflowMenuItems":[32]}]]],["dso-toggletip.cjs",[[1,"dso-toggletip",{"label":[1],"position":[1],"small":[4],"secondary":[4],"active":[32]}]]],["dso-tree-view.cjs",[[1,"dso-tree-view",{"collection":[16]}]]],["dso-date-picker.cjs",[[2,"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],"visible":[32],"setFocus":[64],"show":[64],"hide":[64]},[[6,"click","handleDocumentClick"]]]]],["dso-helpcenter-panel.cjs",[[1,"dso-helpcenter-panel",{"label":[1],"url":[1],"visibility":[32],"isOpen":[32],"slideState":[32],"loadIframe":[32]}]]],["dso-image-overlay.cjs",[[1,"dso-image-overlay",{"active":[32],"focused":[32]}]]],["dso-label.cjs",[[1,"dso-label",{"compact":[4],"removable":[4],"status":[1],"hover":[32]}]]],["dso-map-controls.cjs",[[1,"dso-map-controls",{"open":[1540],"disableZoom":[1,"disable-zoom"],"hideContent":[32]}]]],["dso-viewer-grid.cjs",[[1,"dso-viewer-grid",{"filterpanelOpen":[516,"filterpanel-open"],"overlayOpen":[516,"overlay-open"],"mainSize":[32]}]]],["dso-alert.cjs",[[1,"dso-alert",{"status":[1],"roleAlert":[4,"role-alert"]}]]],["dso-attachments-counter.cjs",[[1,"dso-attachments-counter",{"count":[2]}]]],["dso-
|
|
18
|
+
return index.bootstrapLazy([["dso-map-base-layers.cjs",[[1,"dso-map-base-layers",{"baseLayers":[16]}]]],["dso-map-overlays.cjs",[[1,"dso-map-overlays",{"overlays":[16]}]]],["dso-header.cjs",[[1,"dso-header",{"loginUrl":[1,"login-url"],"logoutUrl":[1,"logout-url"],"mainMenu":[16],"useDropDownMenu":[1,"use-drop-down-menu"],"isLoggedIn":[4,"is-logged-in"],"userProfileName":[1,"user-profile-name"],"userProfileUrl":[1,"user-profile-url"],"userHomeUrl":[1,"user-home-url"],"showDropDown":[32],"hasSubLogo":[32],"overflowMenuItems":[32]}]]],["dso-toggletip.cjs",[[1,"dso-toggletip",{"label":[1],"position":[1],"small":[4],"secondary":[4],"active":[32]}]]],["dso-tree-view.cjs",[[1,"dso-tree-view",{"collection":[16]}]]],["dso-autosuggest.cjs",[[6,"dso-autosuggest",{"suggestions":[16],"loading":[4],"loadingLabel":[1,"loading-label"],"suggestOnFocus":[4,"suggest-on-focus"],"showSuggestions":[32],"selectedSuggestion":[32]},[[4,"click","onDocumentClick"]]]]],["dso-date-picker.cjs",[[2,"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],"visible":[32],"setFocus":[64],"show":[64],"hide":[64]},[[6,"click","handleDocumentClick"]]]]],["dso-helpcenter-panel.cjs",[[1,"dso-helpcenter-panel",{"label":[1],"url":[1],"visibility":[32],"isOpen":[32],"slideState":[32],"loadIframe":[32]}]]],["dso-image-overlay.cjs",[[1,"dso-image-overlay",{"active":[32],"focused":[32]}]]],["dso-label.cjs",[[1,"dso-label",{"compact":[4],"removable":[4],"status":[1],"hover":[32]}]]],["dso-map-controls.cjs",[[1,"dso-map-controls",{"open":[1540],"disableZoom":[1,"disable-zoom"],"hideContent":[32]}]]],["dso-viewer-grid.cjs",[[1,"dso-viewer-grid",{"filterpanelOpen":[516,"filterpanel-open"],"overlayOpen":[516,"overlay-open"],"mainSize":[32]}]]],["dso-alert.cjs",[[1,"dso-alert",{"status":[1],"roleAlert":[4,"role-alert"]}]]],["dso-attachments-counter.cjs",[[1,"dso-attachments-counter",{"count":[2]}]]],["dso-badge.cjs",[[1,"dso-badge",{"status":[1]}]]],["dso-banner.cjs",[[1,"dso-banner",{"status":[1]}]]],["dso-highlight-box.cjs",[[1,"dso-highlight-box",{"yellow":[4],"border":[4],"white":[4],"dropShadow":[4,"drop-shadow"],"step":[2]}]]],["dso-ozon-content.cjs",[[2,"dso-ozon-content",{"content":[1],"inline":[516],"deleted":[516],"state":[32]}]]],["dso-progress-bar.cjs",[[1,"dso-progress-bar",{"progress":[2],"min":[2],"max":[2]}]]],["dso-dropdown-menu.cjs",[[1,"dso-dropdown-menu",{"open":[1540],"dropdownAlign":[1,"dropdown-align"],"checkable":[4]}]]],["dso-tooltip.cjs",[[1,"dso-tooltip",{"descriptive":[516],"position":[1],"for":[1],"noArrow":[4,"no-arrow"],"stateless":[4],"small":[4],"active":[1540],"hidden":[32],"activate":[64],"deactivate":[64]},[[0,"click","listenClick"]]]]],["dso-progress-indicator.cjs",[[1,"dso-progress-indicator",{"label":[1],"size":[1],"block":[4]}]]],["dso-info-button.cjs",[[1,"dso-info-button",{"active":[1540],"secondary":[4],"label":[1]}]]],["dso-info_2.cjs",[[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],"toggleInfo":[64]}],[1,"dso-info",{"fixed":[516],"active":[516]}]]],["dso-icon.cjs",[[1,"dso-icon",{"icon":[1]}]]]], options);
|
|
19
19
|
});
|
|
@@ -1833,6 +1833,10 @@ const transitionDuration = 150;
|
|
|
1833
1833
|
let Tooltip = class {
|
|
1834
1834
|
constructor(hostRef) {
|
|
1835
1835
|
index.registerInstance(this, hostRef);
|
|
1836
|
+
/**
|
|
1837
|
+
* Defines if the tooltip is descriptive. A descriptive tooltip contains a meaningful message. Tooltips that are not descriptive are hidden from screenreaders using `aria-hidden`.
|
|
1838
|
+
*/
|
|
1839
|
+
this.descriptive = false;
|
|
1836
1840
|
/**
|
|
1837
1841
|
* Set position of tooltip relative to target
|
|
1838
1842
|
*/
|
|
@@ -1949,7 +1953,7 @@ let Tooltip = class {
|
|
|
1949
1953
|
}
|
|
1950
1954
|
}
|
|
1951
1955
|
render() {
|
|
1952
|
-
return (index.h(index.Host, { class: { 'hidden': this.hidden } }, index.h("div", { class: clsx_m.clsx('tooltip', { in: this.active })
|
|
1956
|
+
return (index.h(index.Host, { class: { 'hidden': this.hidden } }, index.h("div", { class: clsx_m.clsx('tooltip', { in: this.active }) }, !this.noArrow && index.h("div", { "data-popper-arrow": true, class: "tooltip-arrow" }), index.h("div", { "aria-hidden": !this.descriptive || undefined, class: clsx_m.clsx('tooltip-inner', { 'dso-small': this.small }) }, index.h("slot", null)))));
|
|
1953
1957
|
}
|
|
1954
1958
|
getTarget() {
|
|
1955
1959
|
if (this.for instanceof HTMLElement) {
|
|
@@ -14,7 +14,7 @@ const patchEsm = () => {
|
|
|
14
14
|
const defineCustomElements = (win, options) => {
|
|
15
15
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
16
16
|
return patchEsm().then(() => {
|
|
17
|
-
return index.bootstrapLazy([["dso-map-base-layers.cjs",[[1,"dso-map-base-layers",{"baseLayers":[16]}]]],["dso-map-overlays.cjs",[[1,"dso-map-overlays",{"overlays":[16]}]]],["dso-header.cjs",[[1,"dso-header",{"loginUrl":[1,"login-url"],"logoutUrl":[1,"logout-url"],"mainMenu":[16],"useDropDownMenu":[1,"use-drop-down-menu"],"isLoggedIn":[4,"is-logged-in"],"userProfileName":[1,"user-profile-name"],"userProfileUrl":[1,"user-profile-url"],"userHomeUrl":[1,"user-home-url"],"showDropDown":[32],"hasSubLogo":[32],"overflowMenuItems":[32]}]]],["dso-toggletip.cjs",[[1,"dso-toggletip",{"label":[1],"position":[1],"small":[4],"secondary":[4],"active":[32]}]]],["dso-tree-view.cjs",[[1,"dso-tree-view",{"collection":[16]}]]],["dso-date-picker.cjs",[[2,"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],"visible":[32],"setFocus":[64],"show":[64],"hide":[64]},[[6,"click","handleDocumentClick"]]]]],["dso-helpcenter-panel.cjs",[[1,"dso-helpcenter-panel",{"label":[1],"url":[1],"visibility":[32],"isOpen":[32],"slideState":[32],"loadIframe":[32]}]]],["dso-image-overlay.cjs",[[1,"dso-image-overlay",{"active":[32],"focused":[32]}]]],["dso-label.cjs",[[1,"dso-label",{"compact":[4],"removable":[4],"status":[1],"hover":[32]}]]],["dso-map-controls.cjs",[[1,"dso-map-controls",{"open":[1540],"disableZoom":[1,"disable-zoom"],"hideContent":[32]}]]],["dso-viewer-grid.cjs",[[1,"dso-viewer-grid",{"filterpanelOpen":[516,"filterpanel-open"],"overlayOpen":[516,"overlay-open"],"mainSize":[32]}]]],["dso-alert.cjs",[[1,"dso-alert",{"status":[1],"roleAlert":[4,"role-alert"]}]]],["dso-attachments-counter.cjs",[[1,"dso-attachments-counter",{"count":[2]}]]],["dso-
|
|
17
|
+
return index.bootstrapLazy([["dso-map-base-layers.cjs",[[1,"dso-map-base-layers",{"baseLayers":[16]}]]],["dso-map-overlays.cjs",[[1,"dso-map-overlays",{"overlays":[16]}]]],["dso-header.cjs",[[1,"dso-header",{"loginUrl":[1,"login-url"],"logoutUrl":[1,"logout-url"],"mainMenu":[16],"useDropDownMenu":[1,"use-drop-down-menu"],"isLoggedIn":[4,"is-logged-in"],"userProfileName":[1,"user-profile-name"],"userProfileUrl":[1,"user-profile-url"],"userHomeUrl":[1,"user-home-url"],"showDropDown":[32],"hasSubLogo":[32],"overflowMenuItems":[32]}]]],["dso-toggletip.cjs",[[1,"dso-toggletip",{"label":[1],"position":[1],"small":[4],"secondary":[4],"active":[32]}]]],["dso-tree-view.cjs",[[1,"dso-tree-view",{"collection":[16]}]]],["dso-autosuggest.cjs",[[6,"dso-autosuggest",{"suggestions":[16],"loading":[4],"loadingLabel":[1,"loading-label"],"suggestOnFocus":[4,"suggest-on-focus"],"showSuggestions":[32],"selectedSuggestion":[32]},[[4,"click","onDocumentClick"]]]]],["dso-date-picker.cjs",[[2,"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],"visible":[32],"setFocus":[64],"show":[64],"hide":[64]},[[6,"click","handleDocumentClick"]]]]],["dso-helpcenter-panel.cjs",[[1,"dso-helpcenter-panel",{"label":[1],"url":[1],"visibility":[32],"isOpen":[32],"slideState":[32],"loadIframe":[32]}]]],["dso-image-overlay.cjs",[[1,"dso-image-overlay",{"active":[32],"focused":[32]}]]],["dso-label.cjs",[[1,"dso-label",{"compact":[4],"removable":[4],"status":[1],"hover":[32]}]]],["dso-map-controls.cjs",[[1,"dso-map-controls",{"open":[1540],"disableZoom":[1,"disable-zoom"],"hideContent":[32]}]]],["dso-viewer-grid.cjs",[[1,"dso-viewer-grid",{"filterpanelOpen":[516,"filterpanel-open"],"overlayOpen":[516,"overlay-open"],"mainSize":[32]}]]],["dso-alert.cjs",[[1,"dso-alert",{"status":[1],"roleAlert":[4,"role-alert"]}]]],["dso-attachments-counter.cjs",[[1,"dso-attachments-counter",{"count":[2]}]]],["dso-badge.cjs",[[1,"dso-badge",{"status":[1]}]]],["dso-banner.cjs",[[1,"dso-banner",{"status":[1]}]]],["dso-highlight-box.cjs",[[1,"dso-highlight-box",{"yellow":[4],"border":[4],"white":[4],"dropShadow":[4,"drop-shadow"],"step":[2]}]]],["dso-ozon-content.cjs",[[2,"dso-ozon-content",{"content":[1],"inline":[516],"deleted":[516],"state":[32]}]]],["dso-progress-bar.cjs",[[1,"dso-progress-bar",{"progress":[2],"min":[2],"max":[2]}]]],["dso-dropdown-menu.cjs",[[1,"dso-dropdown-menu",{"open":[1540],"dropdownAlign":[1,"dropdown-align"],"checkable":[4]}]]],["dso-tooltip.cjs",[[1,"dso-tooltip",{"descriptive":[516],"position":[1],"for":[1],"noArrow":[4,"no-arrow"],"stateless":[4],"small":[4],"active":[1540],"hidden":[32],"activate":[64],"deactivate":[64]},[[0,"click","listenClick"]]]]],["dso-progress-indicator.cjs",[[1,"dso-progress-indicator",{"label":[1],"size":[1],"block":[4]}]]],["dso-info-button.cjs",[[1,"dso-info-button",{"active":[1540],"secondary":[4],"label":[1]}]]],["dso-info_2.cjs",[[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],"toggleInfo":[64]}],[1,"dso-info",{"fixed":[516],"active":[516]}]]],["dso-icon.cjs",[[1,"dso-icon",{"icon":[1]}]]]], options);
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
position: relative;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
-
ul
|
|
6
|
+
ul,
|
|
7
|
+
.autosuggest-progress-box {
|
|
7
8
|
background-clip: padding-box;
|
|
8
9
|
background-color: #fff;
|
|
9
10
|
border: 1px solid rgba(0, 0, 0, 0.15);
|
|
@@ -18,10 +19,18 @@ ul {
|
|
|
18
19
|
top: 100%;
|
|
19
20
|
z-index: 200;
|
|
20
21
|
}
|
|
22
|
+
|
|
23
|
+
.autosuggest-progress-box {
|
|
24
|
+
padding: 12px 8px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
ul {
|
|
28
|
+
padding: 8px 0;
|
|
29
|
+
}
|
|
21
30
|
ul li {
|
|
22
31
|
display: flex;
|
|
23
32
|
justify-content: space-between;
|
|
24
|
-
padding: 4px
|
|
33
|
+
padding: 4px 16px;
|
|
25
34
|
}
|
|
26
35
|
|
|
27
36
|
li[aria-selected=true] {
|
|
@@ -12,6 +12,14 @@ export class Autosuggest {
|
|
|
12
12
|
* the original object that was used to create the suggestion.
|
|
13
13
|
*/
|
|
14
14
|
this.suggestions = [];
|
|
15
|
+
/**
|
|
16
|
+
* Shows progress indicator when fetching results.
|
|
17
|
+
*/
|
|
18
|
+
this.loading = false;
|
|
19
|
+
/**
|
|
20
|
+
* To override progress indicator's default loading label.
|
|
21
|
+
*/
|
|
22
|
+
this.loadingLabel = "Een moment geduld.";
|
|
15
23
|
/**
|
|
16
24
|
* Whether the previous suggestions will be presented when the input gets focus again.
|
|
17
25
|
*/
|
|
@@ -33,7 +41,7 @@ export class Autosuggest {
|
|
|
33
41
|
}
|
|
34
42
|
};
|
|
35
43
|
this.onKeyDown = (event) => {
|
|
36
|
-
if (event.defaultPrevented) {
|
|
44
|
+
if (event.defaultPrevented || this.loading) {
|
|
37
45
|
return;
|
|
38
46
|
}
|
|
39
47
|
switch (event.key) {
|
|
@@ -209,13 +217,16 @@ export class Autosuggest {
|
|
|
209
217
|
const terms = this.input.value.split(' ').filter(t => t);
|
|
210
218
|
return (h(Fragment, null,
|
|
211
219
|
h("slot", null),
|
|
212
|
-
|
|
213
|
-
?
|
|
214
|
-
h("
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
:
|
|
218
|
-
|
|
220
|
+
this.loading
|
|
221
|
+
? h("div", { class: "autosuggest-progress-box" },
|
|
222
|
+
h("dso-progress-indicator", { label: this.loadingLabel }))
|
|
223
|
+
: h("ul", { role: "listbox", id: this.listboxId, "aria-labelledby": this.labelId, ref: element => this.listbox = element, hidden: !this.showSuggestions }, this.showSuggestions
|
|
224
|
+
? this.suggestions.map((suggestion) => (h("li", { role: "option", id: this.listboxItemId(suggestion), key: suggestion.value, onMouseEnter: () => this.selectSuggestion(suggestion), onMouseLeave: () => this.resetSelectedSuggestion(), onClick: () => this.pickSelectedValue(), "aria-selected": (suggestion === this.selectedSuggestion).toString(), "aria-label": suggestion.value },
|
|
225
|
+
h("span", { class: "value" }, this.markTerms(suggestion.value, terms)),
|
|
226
|
+
suggestion.type
|
|
227
|
+
? (h("span", { class: "type" }, suggestion.type))
|
|
228
|
+
: undefined)))
|
|
229
|
+
: undefined)));
|
|
219
230
|
}
|
|
220
231
|
static get is() { return "dso-autosuggest"; }
|
|
221
232
|
static get encapsulation() { return "scoped"; }
|
|
@@ -246,6 +257,42 @@ export class Autosuggest {
|
|
|
246
257
|
},
|
|
247
258
|
"defaultValue": "[]"
|
|
248
259
|
},
|
|
260
|
+
"loading": {
|
|
261
|
+
"type": "boolean",
|
|
262
|
+
"mutable": false,
|
|
263
|
+
"complexType": {
|
|
264
|
+
"original": "boolean",
|
|
265
|
+
"resolved": "boolean",
|
|
266
|
+
"references": {}
|
|
267
|
+
},
|
|
268
|
+
"required": false,
|
|
269
|
+
"optional": false,
|
|
270
|
+
"docs": {
|
|
271
|
+
"tags": [],
|
|
272
|
+
"text": "Shows progress indicator when fetching results."
|
|
273
|
+
},
|
|
274
|
+
"attribute": "loading",
|
|
275
|
+
"reflect": false,
|
|
276
|
+
"defaultValue": "false"
|
|
277
|
+
},
|
|
278
|
+
"loadingLabel": {
|
|
279
|
+
"type": "string",
|
|
280
|
+
"mutable": false,
|
|
281
|
+
"complexType": {
|
|
282
|
+
"original": "string",
|
|
283
|
+
"resolved": "string | undefined",
|
|
284
|
+
"references": {}
|
|
285
|
+
},
|
|
286
|
+
"required": false,
|
|
287
|
+
"optional": true,
|
|
288
|
+
"docs": {
|
|
289
|
+
"tags": [],
|
|
290
|
+
"text": "To override progress indicator's default loading label."
|
|
291
|
+
},
|
|
292
|
+
"attribute": "loading-label",
|
|
293
|
+
"reflect": false,
|
|
294
|
+
"defaultValue": "\"Een moment geduld.\""
|
|
295
|
+
},
|
|
249
296
|
"suggestOnFocus": {
|
|
250
297
|
"type": "boolean",
|
|
251
298
|
"mutable": false,
|
package/dist/library/@dso-toolkit/core/collection/components/autosuggest/autosuggest.stories.js
CHANGED
|
@@ -3,7 +3,7 @@ import { storiesOf } from "@storybook/web-components";
|
|
|
3
3
|
import { html } from 'lit-html';
|
|
4
4
|
import { autosuggestTemplate } from "./autosuggest.template";
|
|
5
5
|
import readme from "./readme.md";
|
|
6
|
-
const autosuggestConnector = ([fetchSuggestions, onSelect, onChange, onSearch, suggestOnFocus]) => ({
|
|
6
|
+
const autosuggestConnector = ([fetchSuggestions, onSelect, onChange, onSearch, suggestOnFocus, loading, loadingLabel]) => ({
|
|
7
7
|
suggestions: [],
|
|
8
8
|
onChange: function (e) {
|
|
9
9
|
onChange(e);
|
|
@@ -15,26 +15,28 @@ const autosuggestConnector = ([fetchSuggestions, onSelect, onChange, onSearch, s
|
|
|
15
15
|
},
|
|
16
16
|
onSelect,
|
|
17
17
|
onSearch,
|
|
18
|
-
suggestOnFocus
|
|
18
|
+
suggestOnFocus,
|
|
19
|
+
loading,
|
|
20
|
+
loadingLabel
|
|
19
21
|
});
|
|
20
22
|
storiesOfAutosuggest({
|
|
21
23
|
module,
|
|
22
24
|
storiesOf,
|
|
23
25
|
readme,
|
|
24
26
|
}, {
|
|
25
|
-
autosuggestDemoTemplate: (fetchSuggestions, onSelect, onChange, onSearch, suggestOnFocus) => html `
|
|
27
|
+
autosuggestDemoTemplate: (fetchSuggestions, onSelect, onChange, onSearch, suggestOnFocus, loading, loadingLabel) => html `
|
|
26
28
|
<label for="autosuggestInputId">Label voor input</label>
|
|
27
|
-
${autosuggestTemplate(autosuggestConnector([fetchSuggestions, onSelect, onChange, onSearch, suggestOnFocus]), html `
|
|
29
|
+
${autosuggestTemplate(autosuggestConnector([fetchSuggestions, onSelect, onChange, onSearch, suggestOnFocus, loading, loadingLabel]), html `
|
|
28
30
|
<input id="autosuggestInputId" type="text" class="form-control">
|
|
29
31
|
`)}
|
|
30
32
|
<pre id="suggestions-demo">[]</pre>
|
|
31
33
|
`,
|
|
32
|
-
autosuggestInSearchBarTemplate: (fetchSuggestions, onSelect, onChange, onSearch, suggestOnFocus) => html `
|
|
34
|
+
autosuggestInSearchBarTemplate: (fetchSuggestions, onSelect, onChange, onSearch, suggestOnFocus, loading, loadingLabel) => html `
|
|
33
35
|
<div class="dso-search-bar">
|
|
34
36
|
<div class="dso-search-bar-input">
|
|
35
37
|
<label for="search-bar--with-value">Label</label>
|
|
36
38
|
<span class="dso-search-icon" aria-hidden="true"></span>
|
|
37
|
-
${autosuggestTemplate(autosuggestConnector([fetchSuggestions, onSelect, onChange, onSearch, suggestOnFocus]), html `
|
|
39
|
+
${autosuggestTemplate(autosuggestConnector([fetchSuggestions, onSelect, onChange, onSearch, suggestOnFocus, loading, loadingLabel]), html `
|
|
38
40
|
<input type="text" id="search-bar--with-value" placeholder="Bijvoorbeeld 'Rotterdam'">
|
|
39
41
|
`)}
|
|
40
42
|
<button type="button">
|
package/dist/library/@dso-toolkit/core/collection/components/autosuggest/autosuggest.template.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { html } from 'lit-html';
|
|
2
|
-
|
|
2
|
+
import { ifDefined } from 'lit-html/directives/if-defined.js';
|
|
3
|
+
export function autosuggestTemplate({ suggestions, onSelect, onChange, onSearch, suggestOnFocus, loading, loadingLabel }, children) {
|
|
3
4
|
return html `
|
|
4
5
|
<dso-autosuggest
|
|
5
6
|
.suggestions=${suggestions}
|
|
@@ -7,6 +8,8 @@ export function autosuggestTemplate({ suggestions, onSelect, onChange, onSearch,
|
|
|
7
8
|
@dsoChange=${onChange}
|
|
8
9
|
@dsoSearch=${onSearch}
|
|
9
10
|
?suggest-on-focus=${suggestOnFocus}
|
|
11
|
+
?loading=${loading}
|
|
12
|
+
loading-label=${ifDefined(loadingLabel)}
|
|
10
13
|
>
|
|
11
14
|
${children}
|
|
12
15
|
</dso-autosuggest>
|
package/dist/library/@dso-toolkit/core/collection/components/helpcenter-panel/helpcenter-panel.js
CHANGED
|
@@ -29,13 +29,13 @@ export class HelpcenterPanel {
|
|
|
29
29
|
}
|
|
30
30
|
render() {
|
|
31
31
|
return (h(Fragment, null,
|
|
32
|
-
h("button", { type: "button", onClick: this.openClick, class: `open-button ${this.isOpen}
|
|
32
|
+
h("button", { type: "button", onClick: this.openClick, class: `open-button ${this.isOpen}`, "aria-expanded": "false", "aria-haspopup": "dialog" },
|
|
33
33
|
h("dso-icon", { icon: "help" }),
|
|
34
34
|
h("span", null, this.label)),
|
|
35
35
|
h("div", { class: `wrapper ${this.visibility}` },
|
|
36
|
-
h("div", { class: "dimscreen" }),
|
|
37
|
-
h("div", { class: `iframe-container ${this.slideState}
|
|
38
|
-
h("button", { type: "button", class: `close-button ${this.isOpen}`, onClick: this.closeClick },
|
|
36
|
+
h("div", { class: "dimscreen", onClick: this.closeClick }),
|
|
37
|
+
h("div", { class: `iframe-container ${this.slideState}`, "aria-live": "polite" }, this.loadIframe ? h("iframe", { src: this.url }) : h("div", null)),
|
|
38
|
+
h("button", { type: "button", class: `close-button ${this.isOpen}`, onClick: this.closeClick, "aria-expanded": "true" },
|
|
39
39
|
h("span", { class: "sr-only" }, "sluiten")))));
|
|
40
40
|
}
|
|
41
41
|
static get is() { return "dso-helpcenter-panel"; }
|
package/dist/library/@dso-toolkit/core/collection/components/highlight-box/highlight-box.stories.js
CHANGED
|
@@ -11,12 +11,14 @@ const richContent = html `
|
|
|
11
11
|
<p>Het Opleverdossier (zie voor een nadere omschrijving van de informatieproducten de volgende paragrafen) is de, door gebruikers gewenste, centrale registratie waarin alle informatie over een bouwwerk is opgenomen. Het gaat hierbij om de tekeningen, berekeningen en de resultaten van de kwaliteitsborging (zoals toetsen en inspecties).</p>
|
|
12
12
|
<p>De <a href="#">Bouwregelgeving</a> is een database met alle bouwregelgeving in Nederland, die op zodanige wijze moet zijn ingericht en ontsloten dat die voldoet aan de eisen van de Omgevingswet (3B's), en daarmee bruikbaar is in de ontwerp- en toetsingsfase van ieder bouwwerk.</p>
|
|
13
13
|
<p>Het derde informatieproduct zijn de Vergunningvrije bouwwerken, hierin zijn opgenomen de (bekende) bouwwerken die vergunningvrij, maar niet regelvrij, zijn gerealiseerd. Het vierde en vooralsnog laatste informatieproduct is de Digitaliseringshulp, een service voor het centraal en gestandaardiseerd digitaliseren van documenten.</p>
|
|
14
|
-
<
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
14
|
+
<div class="dso-button-row">
|
|
15
|
+
<a href="#" class="btn btn-primary">Primaire button</a>
|
|
16
|
+
<a href="#" class="btn btn-default">Secundaire button</a>
|
|
17
|
+
<a href="#" class="btn btn-link btn-align">
|
|
18
|
+
Tertiaire button
|
|
19
|
+
${iconTemplate({ icon: 'chevron-down' })}
|
|
20
|
+
</a>
|
|
21
|
+
</div>
|
|
20
22
|
</div>
|
|
21
23
|
`;
|
|
22
24
|
storiesOfHighlightBox({
|
package/dist/library/@dso-toolkit/core/collection/components/ozon-content/nodes/noot.node.js
CHANGED
|
@@ -21,7 +21,7 @@ export class OzonContentNootNode {
|
|
|
21
21
|
return (h(Fragment, null,
|
|
22
22
|
h("sup", null,
|
|
23
23
|
h("button", { type: "button", class: "toggle-note", id: noteControlsId, onClick: () => setState === null || setState === void 0 ? void 0 : setState(openNoteId === noteId ? undefined : noteId), onBlur: () => setState === null || setState === void 0 ? void 0 : setState(undefined), "aria-expanded": openNoteId === noteId ? 'true' : 'false' }, nootNummer)),
|
|
24
|
-
h("dso-tooltip", { active: openNoteId === noteId, for: noteControlsId, stateless: true },
|
|
24
|
+
h("dso-tooltip", { active: openNoteId === noteId, for: noteControlsId, stateless: true, descriptive: true },
|
|
25
25
|
h("span", { role: "section" }, mapNodeToJsx(Array.from(node.querySelectorAll(':scope > Al')))))));
|
|
26
26
|
}
|
|
27
27
|
}
|
|
@@ -43,12 +43,11 @@ export class Toggletip {
|
|
|
43
43
|
throw Error("button not found");
|
|
44
44
|
}
|
|
45
45
|
this.button = button;
|
|
46
|
-
this.host.setAttribute("tabindex", "-1");
|
|
47
46
|
}
|
|
48
47
|
render() {
|
|
49
48
|
return (h(Fragment, null,
|
|
50
49
|
h("dso-info-button", { id: "toggle", onClick: this.click, label: this.label, active: this.active, secondary: this.secondary }),
|
|
51
|
-
h("dso-tooltip", { stateless: true, for: "toggle", active: this.active, position: this.position, small: this.small },
|
|
50
|
+
h("dso-tooltip", { stateless: true, descriptive: true, for: "toggle", active: this.active, position: this.position, small: this.small },
|
|
52
51
|
h("slot", null))));
|
|
53
52
|
}
|
|
54
53
|
static get is() { return "dso-toggletip"; }
|
|
@@ -6,6 +6,10 @@ import clsx from 'clsx';
|
|
|
6
6
|
const transitionDuration = 150;
|
|
7
7
|
export class Tooltip {
|
|
8
8
|
constructor() {
|
|
9
|
+
/**
|
|
10
|
+
* Defines if the tooltip is descriptive. A descriptive tooltip contains a meaningful message. Tooltips that are not descriptive are hidden from screenreaders using `aria-hidden`.
|
|
11
|
+
*/
|
|
12
|
+
this.descriptive = false;
|
|
9
13
|
/**
|
|
10
14
|
* Set position of tooltip relative to target
|
|
11
15
|
*/
|
|
@@ -123,9 +127,9 @@ export class Tooltip {
|
|
|
123
127
|
}
|
|
124
128
|
render() {
|
|
125
129
|
return (h(Host, { class: { 'hidden': this.hidden } },
|
|
126
|
-
h("div", { class: clsx('tooltip', { in: this.active })
|
|
130
|
+
h("div", { class: clsx('tooltip', { in: this.active }) },
|
|
127
131
|
!this.noArrow && h("div", { "data-popper-arrow": true, class: "tooltip-arrow" }),
|
|
128
|
-
h("div", { class: clsx('tooltip-inner', { 'dso-small': this.small }) },
|
|
132
|
+
h("div", { "aria-hidden": !this.descriptive || undefined, class: clsx('tooltip-inner', { 'dso-small': this.small }) },
|
|
129
133
|
h("slot", null)))));
|
|
130
134
|
}
|
|
131
135
|
getTarget() {
|
|
@@ -158,6 +162,24 @@ export class Tooltip {
|
|
|
158
162
|
"$": ["tooltip.css"]
|
|
159
163
|
}; }
|
|
160
164
|
static get properties() { return {
|
|
165
|
+
"descriptive": {
|
|
166
|
+
"type": "boolean",
|
|
167
|
+
"mutable": false,
|
|
168
|
+
"complexType": {
|
|
169
|
+
"original": "boolean",
|
|
170
|
+
"resolved": "boolean",
|
|
171
|
+
"references": {}
|
|
172
|
+
},
|
|
173
|
+
"required": false,
|
|
174
|
+
"optional": false,
|
|
175
|
+
"docs": {
|
|
176
|
+
"tags": [],
|
|
177
|
+
"text": "Defines if the tooltip is descriptive. A descriptive tooltip contains a meaningful message. Tooltips that are not descriptive are hidden from screenreaders using `aria-hidden`."
|
|
178
|
+
},
|
|
179
|
+
"attribute": "descriptive",
|
|
180
|
+
"reflect": true,
|
|
181
|
+
"defaultValue": "false"
|
|
182
|
+
},
|
|
161
183
|
"position": {
|
|
162
184
|
"type": "string",
|
|
163
185
|
"mutable": false,
|