@dso-toolkit/core 51.1.0 → 51.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/dso-badge.cjs.entry.js +1 -1
- package/dist/cjs/dso-label.cjs.entry.js +1 -1
- package/dist/cjs/dso-ozon-content.cjs.entry.js +69 -52
- package/dist/collection/components/badge/badge.css +5 -0
- package/dist/collection/components/badge/badge.js +2 -2
- package/dist/collection/components/banner/banner.js +2 -2
- package/dist/collection/components/label/label.css +4 -0
- package/dist/collection/components/label/label.js +2 -2
- package/dist/collection/components/ozon-content/nodes/bron.node.js +9 -0
- package/dist/collection/components/ozon-content/nodes/ext-ref.node.js +1 -1
- package/dist/collection/components/ozon-content/nodes/figuur.node.js +6 -6
- package/dist/collection/components/ozon-content/nodes/table.node/table.node.js +5 -1
- package/dist/collection/components/ozon-content/ozon-content-mapper.js +6 -4
- package/dist/collection/components/ozon-content/ozon-content.css +5 -0
- package/dist/components/dso-badge.js +1 -1
- package/dist/components/dso-label.js +1 -1
- package/dist/components/dso-ozon-content.js +69 -52
- package/dist/dso-toolkit/dso-toolkit.esm.js +1 -1
- package/dist/dso-toolkit/p-520a2cdd.entry.js +1 -0
- package/dist/dso-toolkit/{p-52bc72d0.entry.js → p-9287b2f2.entry.js} +1 -1
- package/dist/dso-toolkit/{p-daba2d98.entry.js → p-ce475f06.entry.js} +1 -1
- package/dist/esm/dso-badge.entry.js +1 -1
- package/dist/esm/dso-label.entry.js +1 -1
- package/dist/esm/dso-ozon-content.entry.js +69 -52
- package/dist/types/components/badge/badge.d.ts +1 -1
- package/dist/types/components/banner/banner.d.ts +1 -1
- package/dist/types/components/label/label.d.ts +1 -1
- package/dist/types/components/ozon-content/nodes/bron.node.d.ts +6 -0
- package/dist/types/components/ozon-content/nodes/table.node/table.node.d.ts +1 -0
- package/dist/types/components.d.ts +6 -6
- package/package.json +2 -2
- package/dist/dso-toolkit/p-d31805a9.entry.js +0 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { h, F as Fragment, r as registerInstance, c as createEvent, H as Host, a as getElement } from './index-1a4dda48.js';
|
|
2
2
|
import { i as isTabbable } from './index.esm-8fc07ad8.js';
|
|
3
|
+
import { v as v4 } from './v4-d398bde5.js';
|
|
3
4
|
|
|
4
5
|
function getNodeName(node) {
|
|
5
6
|
if (node instanceof Element) {
|
|
@@ -25,6 +26,15 @@ class OzonContentAlNode {
|
|
|
25
26
|
}
|
|
26
27
|
}
|
|
27
28
|
|
|
29
|
+
class OzonContentBronNode {
|
|
30
|
+
constructor() {
|
|
31
|
+
this.name = "Bron";
|
|
32
|
+
}
|
|
33
|
+
render(node, { mapNodeToJsx }) {
|
|
34
|
+
return h("span", { class: "dso-ozon-bron" }, mapNodeToJsx(node.childNodes));
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
28
38
|
class OzonContentDocumentNode {
|
|
29
39
|
constructor() {
|
|
30
40
|
this.name = "#document";
|
|
@@ -41,15 +51,28 @@ class OzonContentExtRefNode {
|
|
|
41
51
|
render(node, { mapNodeToJsx }) {
|
|
42
52
|
const href = node.tagName === "ExtIoRef" ? node.getAttribute("href") : node.getAttribute("ref");
|
|
43
53
|
return (h("a", { target: "_blank", rel: "noopener noreferrer", href: href !== null && href !== void 0 ? href : undefined },
|
|
44
|
-
h("span", { class: "sr-only" }, "opent in nieuw venster"),
|
|
54
|
+
h("span", { class: "sr-only" }, "opent in nieuw venster "),
|
|
45
55
|
mapNodeToJsx(node.childNodes)));
|
|
46
56
|
}
|
|
47
57
|
}
|
|
48
58
|
|
|
59
|
+
class OzonContentFallbackNode {
|
|
60
|
+
constructor() {
|
|
61
|
+
// This name does not match any elements
|
|
62
|
+
this.name = ["<fallback>"];
|
|
63
|
+
}
|
|
64
|
+
render(node, { mapNodeToJsx }) {
|
|
65
|
+
return h("span", { class: `fallback od-${getNodeName(node)}` }, mapNodeToJsx(node.childNodes));
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
49
69
|
const Bijschrift = ({ bijschrift, bron, mapNodeToJsx }) => {
|
|
50
70
|
return (h("span", { class: "figuur-bijschrift" },
|
|
51
71
|
bijschrift && bijschrift.inhoud && mapNodeToJsx(bijschrift.inhoud),
|
|
52
|
-
bron &&
|
|
72
|
+
bron && (h(Fragment, null,
|
|
73
|
+
`${bijschrift ? " " : ""}(bron: `,
|
|
74
|
+
mapNodeToJsx(bron),
|
|
75
|
+
")"))));
|
|
53
76
|
};
|
|
54
77
|
class OzonContentFiguurNode {
|
|
55
78
|
constructor() {
|
|
@@ -66,10 +89,10 @@ class OzonContentFiguurNode {
|
|
|
66
89
|
}
|
|
67
90
|
}
|
|
68
91
|
render(node, { mapNodeToJsx }) {
|
|
69
|
-
var _a, _b, _c, _d, _e, _f
|
|
92
|
+
var _a, _b, _c, _d, _e, _f;
|
|
70
93
|
const childNodes = Array.from(node.childNodes);
|
|
71
94
|
const titel = (_a = childNodes.find((n) => getNodeName(n) === "Titel")) === null || _a === void 0 ? void 0 : _a.textContent;
|
|
72
|
-
const bron =
|
|
95
|
+
const bron = childNodes.find((n) => getNodeName(n) === "Bron");
|
|
73
96
|
const illustratieNode = childNodes.find((n) => getNodeName(n) === "Illustratie");
|
|
74
97
|
const bijschriftNode = childNodes.find((n) => getNodeName(n) === "Bijschrift");
|
|
75
98
|
if (illustratieNode instanceof Element) {
|
|
@@ -84,7 +107,7 @@ class OzonContentFiguurNode {
|
|
|
84
107
|
const bijschrift = bijschriftNode instanceof Element
|
|
85
108
|
? {
|
|
86
109
|
inhoud: bijschriftNode.childNodes,
|
|
87
|
-
locatie: (
|
|
110
|
+
locatie: (_b = bijschriftNode.getAttribute("locatie")) !== null && _b !== void 0 ? _b : "onder",
|
|
88
111
|
}
|
|
89
112
|
: undefined;
|
|
90
113
|
return (h("div", { class: `dso-ozon-figuur ${bijschrift ? `bijschrift-${bijschrift.locatie}` : "onder"}` },
|
|
@@ -93,7 +116,7 @@ class OzonContentFiguurNode {
|
|
|
93
116
|
h("dso-image-overlay", null,
|
|
94
117
|
titel && (h("div", { slot: "titel" },
|
|
95
118
|
h("span", null, titel))),
|
|
96
|
-
h("img", { src: (
|
|
119
|
+
h("img", { src: (_c = illustratie.naam) !== null && _c !== void 0 ? _c : undefined, alt: (_f = (_e = (_d = illustratie.alt) !== null && _d !== void 0 ? _d : titel) !== null && _e !== void 0 ? _e : illustratie.naam) !== null && _f !== void 0 ? _f : undefined, onLoad: (event) => this.onImageLoad(event, Number(illustratie.schaal)) }),
|
|
97
120
|
(bijschrift || bron) && (h("div", { slot: "bijschrift" },
|
|
98
121
|
h(Bijschrift, { bijschrift: bijschrift, bron: bron, mapNodeToJsx: mapNodeToJsx })))),
|
|
99
122
|
((bijschrift === null || bijschrift === void 0 ? void 0 : bijschrift.locatie) === "onder" || (!bijschrift && bron)) && (h(Bijschrift, { bijschrift: bijschrift, bron: bron, mapNodeToJsx: mapNodeToJsx }))));
|
|
@@ -120,15 +143,6 @@ class OzonContentInlineTekstAfbeeldingNode {
|
|
|
120
143
|
}
|
|
121
144
|
}
|
|
122
145
|
|
|
123
|
-
class OzonContentOpschriftNode {
|
|
124
|
-
constructor() {
|
|
125
|
-
this.name = "Opschrift";
|
|
126
|
-
}
|
|
127
|
-
render(node, { mapNodeToJsx }) {
|
|
128
|
-
return h(Fragment, null, mapNodeToJsx(node.childNodes));
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
|
|
132
146
|
class OzonContentInlineNodes {
|
|
133
147
|
constructor() {
|
|
134
148
|
this.name = ["sub", "sup", "strong", "b", "u", "i", "br"];
|
|
@@ -196,6 +210,30 @@ class OzonContentIntRefNode {
|
|
|
196
210
|
}
|
|
197
211
|
}
|
|
198
212
|
|
|
213
|
+
class OzonContentLijstNode {
|
|
214
|
+
constructor() {
|
|
215
|
+
this.name = "Lijst";
|
|
216
|
+
}
|
|
217
|
+
render(node, { mapNodeToJsx }) {
|
|
218
|
+
var _a;
|
|
219
|
+
const childNodes = Array.from(node.childNodes);
|
|
220
|
+
const aanhef = childNodes.find((n) => getNodeName(n) === "Lijstaanhef");
|
|
221
|
+
const sluiting = childNodes.find((n) => getNodeName(n) === "Lijstsluiting");
|
|
222
|
+
const listItems = childNodes.filter((n) => getNodeName(n) === "Li");
|
|
223
|
+
return (h("div", { class: "dso-ozon-lijst od-Lijst" },
|
|
224
|
+
aanhef && mapNodeToJsx(aanhef),
|
|
225
|
+
h("ul", { class: (_a = node.getAttribute("type")) !== null && _a !== void 0 ? _a : "" }, listItems.map((item) => {
|
|
226
|
+
var _a;
|
|
227
|
+
const itemNodes = Array.from(item.childNodes);
|
|
228
|
+
const liNummer = (_a = itemNodes.find((n) => getNodeName(n) === "LiNummer")) === null || _a === void 0 ? void 0 : _a.textContent;
|
|
229
|
+
return (h("li", { class: "od-Li" },
|
|
230
|
+
liNummer && h("span", { class: "od-LiNummer" }, liNummer),
|
|
231
|
+
mapNodeToJsx(itemNodes.filter((n) => getNodeName(n) !== "LiNummer"))));
|
|
232
|
+
})),
|
|
233
|
+
sluiting && mapNodeToJsx(sluiting)));
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
|
|
199
237
|
class OzonContentNootNode {
|
|
200
238
|
constructor() {
|
|
201
239
|
this.name = "Noot";
|
|
@@ -222,6 +260,15 @@ class OzonContentNootNode {
|
|
|
222
260
|
}
|
|
223
261
|
}
|
|
224
262
|
|
|
263
|
+
class OzonContentOpschriftNode {
|
|
264
|
+
constructor() {
|
|
265
|
+
this.name = "Opschrift";
|
|
266
|
+
}
|
|
267
|
+
render(node, { mapNodeToJsx }) {
|
|
268
|
+
return h(Fragment, null, mapNodeToJsx(node.childNodes));
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
|
|
225
272
|
function mapColspecs(count, nodeList) {
|
|
226
273
|
const elements = Array.from(nodeList);
|
|
227
274
|
const totalWidth = getTotalWidth(elements);
|
|
@@ -309,17 +356,20 @@ class OzonContentTableNode {
|
|
|
309
356
|
constructor() {
|
|
310
357
|
this.name = "table";
|
|
311
358
|
this.handles = ["title", "tgroup", "colspec", "thead", "tbody", "row", "cell"];
|
|
359
|
+
this.id = v4();
|
|
312
360
|
}
|
|
313
361
|
render(node, context) {
|
|
314
362
|
const { caption, colspecs, headRows, bodyRows } = mapData(node);
|
|
363
|
+
const bron = Array.from(node.childNodes).find((n) => getNodeName(n) === "Bron");
|
|
315
364
|
return (h("dso-table", null,
|
|
316
|
-
h("table", { class: "table dso-table-vertical-lines" },
|
|
365
|
+
h("table", Object.assign({ class: "table dso-table-vertical-lines" }, (bron ? { "aria-describedby": this.id } : {})),
|
|
317
366
|
caption && h("caption", null, caption),
|
|
318
367
|
colspecs && h(Colgroup, { colspecs: colspecs }),
|
|
319
368
|
headRows.length > 0 && (h("thead", null,
|
|
320
369
|
h(Rows, { rows: headRows, colspecs: colspecs, context: context }))),
|
|
321
370
|
bodyRows.length > 0 && (h("tbody", null,
|
|
322
|
-
h(Rows, { rows: bodyRows, colspecs: colspecs, context: context }))))
|
|
371
|
+
h(Rows, { rows: bodyRows, colspecs: colspecs, context: context })))),
|
|
372
|
+
bron && h("div", { id: this.id }, context.mapNodeToJsx(bron))));
|
|
323
373
|
}
|
|
324
374
|
}
|
|
325
375
|
|
|
@@ -332,40 +382,6 @@ class OzonContentTextNode {
|
|
|
332
382
|
}
|
|
333
383
|
}
|
|
334
384
|
|
|
335
|
-
class OzonContentFallbackNode {
|
|
336
|
-
constructor() {
|
|
337
|
-
// This name does not match any elements
|
|
338
|
-
this.name = ["<fallback>"];
|
|
339
|
-
}
|
|
340
|
-
render(node, { mapNodeToJsx }) {
|
|
341
|
-
return h("span", { class: `fallback od-${getNodeName(node)}` }, mapNodeToJsx(node.childNodes));
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
class OzonContentLijstNode {
|
|
346
|
-
constructor() {
|
|
347
|
-
this.name = "Lijst";
|
|
348
|
-
}
|
|
349
|
-
render(node, { mapNodeToJsx }) {
|
|
350
|
-
var _a;
|
|
351
|
-
const childNodes = Array.from(node.childNodes);
|
|
352
|
-
const aanhef = childNodes.find((n) => getNodeName(n) === "Lijstaanhef");
|
|
353
|
-
const sluiting = childNodes.find((n) => getNodeName(n) === "Lijstsluiting");
|
|
354
|
-
const listItems = childNodes.filter((n) => getNodeName(n) === "Li");
|
|
355
|
-
return (h("div", { class: "dso-ozon-lijst od-Lijst" },
|
|
356
|
-
aanhef && mapNodeToJsx(aanhef),
|
|
357
|
-
h("ul", { class: (_a = node.getAttribute("type")) !== null && _a !== void 0 ? _a : "" }, listItems.map((item) => {
|
|
358
|
-
var _a;
|
|
359
|
-
const itemNodes = Array.from(item.childNodes);
|
|
360
|
-
const liNummer = (_a = itemNodes.find((n) => getNodeName(n) === "LiNummer")) === null || _a === void 0 ? void 0 : _a.textContent;
|
|
361
|
-
return (h("li", { class: "od-Li" },
|
|
362
|
-
liNummer && h("span", { class: "od-LiNummer" }, liNummer),
|
|
363
|
-
mapNodeToJsx(itemNodes.filter((n) => getNodeName(n) !== "LiNummer"))));
|
|
364
|
-
})),
|
|
365
|
-
sluiting && mapNodeToJsx(sluiting)));
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
|
|
369
385
|
class Mapper {
|
|
370
386
|
constructor() {
|
|
371
387
|
this.mappers = [
|
|
@@ -383,6 +399,7 @@ class Mapper {
|
|
|
383
399
|
new OzonContentIntIoRefNode(),
|
|
384
400
|
new OzonContentFiguurNode(),
|
|
385
401
|
new OzonContentLijstNode(),
|
|
402
|
+
new OzonContentBronNode(),
|
|
386
403
|
];
|
|
387
404
|
this.skip = this.mappers.reduce((t, m) => {
|
|
388
405
|
if (m.handles) {
|
|
@@ -440,7 +457,7 @@ class Mapper {
|
|
|
440
457
|
}
|
|
441
458
|
}
|
|
442
459
|
|
|
443
|
-
const ozonContentCss = ".sc-dso-ozon-content-h:not([inline]) {\n display: block;\n}\n\n[inline].sc-dso-ozon-content-h {\n display: inline;\n}\n\n[deleted].sc-dso-ozon-content-h *.sc-dso-ozon-content {\n text-decoration: line-through !important;\n}\n\n[interactive].sc-dso-ozon-content-h {\n background-color: transparent;\n color: #39870c;\n text-decoration: underline;\n cursor: pointer;\n color: #275937;\n font-weight: 600;\n text-decoration: none;\n}\n[interactive].sc-dso-ozon-content-h:hover, [interactive].sc-dso-ozon-content-h:focus {\n color: #676cb0;\n text-decoration: underline;\n}\n[interactive].sc-dso-ozon-content-h:active {\n text-decoration: none;\n}\n\n[interactive=sub].sc-dso-ozon-content-h {\n color: #191919;\n}\n\n.deleted-start.sc-dso-ozon-content, .deleted-end.sc-dso-ozon-content {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n border: 0;\n}\n\nbutton.toggle-note.sc-dso-ozon-content {\n display: inline-block;\n font-size: 1em;\n font-weight: 500;\n margin-bottom: 0;\n text-decoration: none;\n touch-action: manipulation;\n text-align: left;\n user-select: none;\n vertical-align: middle;\n border: 0;\n color: #39870c;\n line-height: 1;\n padding: 0;\n background-color: transparent;\n}\nbutton.toggle-note.sc-dso-ozon-content:focus, button.toggle-note.sc-dso-ozon-content:focus-visible {\n outline-offset: 2px;\n}\nbutton.toggle-note.sc-dso-ozon-content:active {\n outline: 0;\n}\nbutton.toggle-note[disabled].sc-dso-ozon-content {\n color: #afcf9d;\n}\nbutton.toggle-note[disabled].dso-spinner-left.sc-dso-ozon-content, button.toggle-note[disabled].dso-spinner-right.sc-dso-ozon-content {\n color: #39870c;\n}\nbutton.toggle-note.sc-dso-ozon-content:not([disabled]):hover {\n color: #676cb0;\n text-decoration: underline;\n text-underline-position: under;\n}\nbutton.toggle-note.sc-dso-ozon-content:not([disabled]):active {\n color: #676cb0;\n}\nbutton.toggle-note.btn-align.sc-dso-ozon-content {\n line-height: calc(1.5em - 1px);\n padding: 11px 0;\n position: relative;\n}\nbutton.toggle-note.dso-spinner-left.sc-dso-ozon-content::before {\n background-image: url(\"data:image/svg+xml,%3Csvg class='spinner' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg' %3E%3Cstyle%3E .spinner %7B animation: rotator 8s linear infinite; transform-origin: center; %7D @keyframes rotator %7B 0%25 %7B transform: rotate(0deg); %7D 100%25 %7B transform: rotate(360deg); %7D %7D .path %7B stroke-dasharray: 265; stroke-dashoffset: 0; transform-origin: center; stroke: %2339870c; animation: dash 2s ease-in-out infinite; %7D @keyframes dash %7B 0%25 %7B stroke-dashoffset: 265; %7D 50%25 %7B stroke-dashoffset: 65; transform:rotate(90deg); %7D 100%25 %7B stroke-dashoffset: 265; transform:rotate(360deg); %7D %3C/style%3E%3Ccircle class='path' fill='none' stroke-width='10' stroke-linecap='butt' cx='50' cy='50' r='45'%3E%3C/circle%3E%3C/svg%3E\");\n background-repeat: no-repeat;\n content: \"\";\n display: inline-block;\n height: 24px;\n vertical-align: middle;\n width: 24px;\n margin-right: 8px;\n}\nbutton.toggle-note.dso-spinner-right.sc-dso-ozon-content::after {\n background-image: url(\"data:image/svg+xml,%3Csvg class='spinner' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg' %3E%3Cstyle%3E .spinner %7B animation: rotator 8s linear infinite; transform-origin: center; %7D @keyframes rotator %7B 0%25 %7B transform: rotate(0deg); %7D 100%25 %7B transform: rotate(360deg); %7D %7D .path %7B stroke-dasharray: 265; stroke-dashoffset: 0; transform-origin: center; stroke: %2339870c; animation: dash 2s ease-in-out infinite; %7D @keyframes dash %7B 0%25 %7B stroke-dashoffset: 265; %7D 50%25 %7B stroke-dashoffset: 65; transform:rotate(90deg); %7D 100%25 %7B stroke-dashoffset: 265; transform:rotate(360deg); %7D %3C/style%3E%3Ccircle class='path' fill='none' stroke-width='10' stroke-linecap='butt' cx='50' cy='50' r='45'%3E%3C/circle%3E%3C/svg%3E\");\n background-repeat: no-repeat;\n content: \"\";\n display: inline-block;\n height: 24px;\n vertical-align: middle;\n width: 24px;\n margin-left: 8px;\n}\nbutton.toggle-note.sc-dso-ozon-content dso-icon.sc-dso-ozon-content + span.sc-dso-ozon-content:not(.sr-only), button.toggle-note.sc-dso-ozon-content svg.di.sc-dso-ozon-content + span.sc-dso-ozon-content:not(.sr-only), button.toggle-note.sc-dso-ozon-content span.sc-dso-ozon-content:not(.sr-only) + dso-icon.sc-dso-ozon-content, button.toggle-note.sc-dso-ozon-content span.sc-dso-ozon-content:not(.sr-only) + svg.di.sc-dso-ozon-content {\n margin-left: 8px;\n}\nbutton.toggle-note.sc-dso-ozon-content svg.di.di-chevron-down.sc-dso-ozon-content + span.sc-dso-ozon-content:not(.sr-only), button.toggle-note.sc-dso-ozon-content svg.di.di-chevron-up.sc-dso-ozon-content + span.sc-dso-ozon-content:not(.sr-only), button.toggle-note.sc-dso-ozon-content span.sc-dso-ozon-content:not(.sr-only) + svg.di.di-chevron-down.sc-dso-ozon-content, button.toggle-note.sc-dso-ozon-content span.sc-dso-ozon-content:not(.sr-only) + svg.di.di-chevron-up.sc-dso-ozon-content {\n margin-left: 4px;\n}\nbutton.toggle-note.sc-dso-ozon-content dso-icon[icon=chevron-left].sc-dso-ozon-content + span.sc-dso-ozon-content:not(.sr-only), button.toggle-note.sc-dso-ozon-content dso-icon[icon=chevron-right].sc-dso-ozon-content + span.sc-dso-ozon-content:not(.sr-only), button.toggle-note.sc-dso-ozon-content svg.di.di-angle-down.sc-dso-ozon-content + span.sc-dso-ozon-content:not(.sr-only), button.toggle-note.sc-dso-ozon-content svg.di.di-angle-up.sc-dso-ozon-content + span.sc-dso-ozon-content:not(.sr-only), button.toggle-note.sc-dso-ozon-content span.sc-dso-ozon-content:not(.sr-only) + svg.di.di-angle-down.sc-dso-ozon-content, button.toggle-note.sc-dso-ozon-content span.sc-dso-ozon-content:not(.sr-only) + svg.di.di-angle-up.sc-dso-ozon-content, button.toggle-note.sc-dso-ozon-content span.sc-dso-ozon-content:not(.sr-only) + dso-icon[icon=chevron-left].sc-dso-ozon-content, button.toggle-note.sc-dso-ozon-content span.sc-dso-ozon-content:not(.sr-only) + dso-icon[icon=chevron-right].sc-dso-ozon-content {\n margin-left: 0;\n}\nbutton.toggle-note.sc-dso-ozon-content dso-icon.sc-dso-ozon-content, button.toggle-note.sc-dso-ozon-content svg.di.sc-dso-ozon-content, button.toggle-note.sc-dso-ozon-content span.sc-dso-ozon-content {\n vertical-align: middle;\n}\n\nspan[role=section].sc-dso-ozon-content, span[role=paragraph].sc-dso-ozon-content {\n display: block;\n}\n\n.fallback.sc-dso-ozon-content {\n display: block;\n}\n\n.od-Term.sc-dso-ozon-content {\n font-weight: 700;\n}\n\n.od-Definitie.sc-dso-ozon-content, .od-Tussenkop.sc-dso-ozon-content {\n font-style: italic;\n}\n\n.od-Inhoud.sc-dso-ozon-content, .od-Inhoud.sc-dso-ozon-content > .od-Lijst.sc-dso-ozon-content, .od-IntIoRef.sc-dso-ozon-content, .od-Lidnr.sc-dso-ozon-content, .od-LiNr.sc-dso-ozon-content, .od-Opschrift.sc-dso-ozon-content, .od-Tussenkop.sc-dso-ozon-content {\n display: inline;\n}\n\n.od-Al.sc-dso-ozon-content {\n margin-bottom: 0.75em;\n}\n\n.od-IntIoRef.sc-dso-ozon-content {\n border-bottom: 1px dotted;\n}\n\n.dso-ozon-figuur.sc-dso-ozon-content {\n margin-bottom: 16px;\n}\n.dso-ozon-figuur.sc-dso-ozon-content .figuur-bijschrift.sc-dso-ozon-content {\n display: block;\n font-size: 0.75rem;\n font-style: italic;\n}\n.dso-ozon-figuur.bijschrift-boven.sc-dso-ozon-content .figuur-bijschrift.sc-dso-ozon-content {\n padding-bottom: 0.25rem;\n}\n.dso-ozon-figuur.bijschrift-onder.sc-dso-ozon-content .figuur-bijschrift.sc-dso-ozon-content {\n padding-top: 0.25rem;\n}\n.dso-ozon-figuur.sc-dso-ozon-content .figuur-titel.sc-dso-ozon-content {\n color: #8b4a6a;\n display: block;\n font-weight: 500;\n padding-bottom: 0.5rem;\n}\n\n.dso-ozon-lijst.sc-dso-ozon-content span.od-Lijstaanhef.sc-dso-ozon-content, .dso-ozon-lijst.sc-dso-ozon-content span.od-Lijstsluiting.sc-dso-ozon-content {\n margin-bottom: 1rem;\n}\n.dso-ozon-lijst.sc-dso-ozon-content ul.expliciet.sc-dso-ozon-content {\n list-style: none;\n}\n.dso-ozon-lijst.sc-dso-ozon-content ul.expliciet.sc-dso-ozon-content > .od-Li.sc-dso-ozon-content {\n position: relative;\n}\n.dso-ozon-lijst.sc-dso-ozon-content ul.expliciet.sc-dso-ozon-content > .od-Li.sc-dso-ozon-content > span.od-LiNummer.sc-dso-ozon-content {\n position: absolute;\n left: -44px;\n text-align: right;\n width: 40px;\n}\n\n.od-Tabel.sc-dso-ozon-content thead.sc-dso-ozon-content {\n font-weight: 600;\n}\n\n.od-Kadertekst.sc-dso-ozon-content {\n border: 1px solid #e5e5e5;\n margin-bottom: 1rem;\n padding: 1rem;\n}";
|
|
460
|
+
const ozonContentCss = ".sc-dso-ozon-content-h:not([inline]) {\n display: block;\n}\n\n[inline].sc-dso-ozon-content-h {\n display: inline;\n}\n\n[deleted].sc-dso-ozon-content-h *.sc-dso-ozon-content {\n text-decoration: line-through !important;\n}\n\n[interactive].sc-dso-ozon-content-h {\n background-color: transparent;\n color: #39870c;\n text-decoration: underline;\n cursor: pointer;\n color: #275937;\n font-weight: 600;\n text-decoration: none;\n}\n[interactive].sc-dso-ozon-content-h:hover, [interactive].sc-dso-ozon-content-h:focus {\n color: #676cb0;\n text-decoration: underline;\n}\n[interactive].sc-dso-ozon-content-h:active {\n text-decoration: none;\n}\n\n[interactive=sub].sc-dso-ozon-content-h {\n color: #191919;\n}\n\n.deleted-start.sc-dso-ozon-content, .deleted-end.sc-dso-ozon-content {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n border: 0;\n}\n\nbutton.toggle-note.sc-dso-ozon-content {\n display: inline-block;\n font-size: 1em;\n font-weight: 500;\n margin-bottom: 0;\n text-decoration: none;\n touch-action: manipulation;\n text-align: left;\n user-select: none;\n vertical-align: middle;\n border: 0;\n color: #39870c;\n line-height: 1;\n padding: 0;\n background-color: transparent;\n}\nbutton.toggle-note.sc-dso-ozon-content:focus, button.toggle-note.sc-dso-ozon-content:focus-visible {\n outline-offset: 2px;\n}\nbutton.toggle-note.sc-dso-ozon-content:active {\n outline: 0;\n}\nbutton.toggle-note[disabled].sc-dso-ozon-content {\n color: #afcf9d;\n}\nbutton.toggle-note[disabled].dso-spinner-left.sc-dso-ozon-content, button.toggle-note[disabled].dso-spinner-right.sc-dso-ozon-content {\n color: #39870c;\n}\nbutton.toggle-note.sc-dso-ozon-content:not([disabled]):hover {\n color: #676cb0;\n text-decoration: underline;\n text-underline-position: under;\n}\nbutton.toggle-note.sc-dso-ozon-content:not([disabled]):active {\n color: #676cb0;\n}\nbutton.toggle-note.btn-align.sc-dso-ozon-content {\n line-height: calc(1.5em - 1px);\n padding: 11px 0;\n position: relative;\n}\nbutton.toggle-note.dso-spinner-left.sc-dso-ozon-content::before {\n background-image: url(\"data:image/svg+xml,%3Csvg class='spinner' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg' %3E%3Cstyle%3E .spinner %7B animation: rotator 8s linear infinite; transform-origin: center; %7D @keyframes rotator %7B 0%25 %7B transform: rotate(0deg); %7D 100%25 %7B transform: rotate(360deg); %7D %7D .path %7B stroke-dasharray: 265; stroke-dashoffset: 0; transform-origin: center; stroke: %2339870c; animation: dash 2s ease-in-out infinite; %7D @keyframes dash %7B 0%25 %7B stroke-dashoffset: 265; %7D 50%25 %7B stroke-dashoffset: 65; transform:rotate(90deg); %7D 100%25 %7B stroke-dashoffset: 265; transform:rotate(360deg); %7D %3C/style%3E%3Ccircle class='path' fill='none' stroke-width='10' stroke-linecap='butt' cx='50' cy='50' r='45'%3E%3C/circle%3E%3C/svg%3E\");\n background-repeat: no-repeat;\n content: \"\";\n display: inline-block;\n height: 24px;\n vertical-align: middle;\n width: 24px;\n margin-right: 8px;\n}\nbutton.toggle-note.dso-spinner-right.sc-dso-ozon-content::after {\n background-image: url(\"data:image/svg+xml,%3Csvg class='spinner' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg' %3E%3Cstyle%3E .spinner %7B animation: rotator 8s linear infinite; transform-origin: center; %7D @keyframes rotator %7B 0%25 %7B transform: rotate(0deg); %7D 100%25 %7B transform: rotate(360deg); %7D %7D .path %7B stroke-dasharray: 265; stroke-dashoffset: 0; transform-origin: center; stroke: %2339870c; animation: dash 2s ease-in-out infinite; %7D @keyframes dash %7B 0%25 %7B stroke-dashoffset: 265; %7D 50%25 %7B stroke-dashoffset: 65; transform:rotate(90deg); %7D 100%25 %7B stroke-dashoffset: 265; transform:rotate(360deg); %7D %3C/style%3E%3Ccircle class='path' fill='none' stroke-width='10' stroke-linecap='butt' cx='50' cy='50' r='45'%3E%3C/circle%3E%3C/svg%3E\");\n background-repeat: no-repeat;\n content: \"\";\n display: inline-block;\n height: 24px;\n vertical-align: middle;\n width: 24px;\n margin-left: 8px;\n}\nbutton.toggle-note.sc-dso-ozon-content dso-icon.sc-dso-ozon-content + span.sc-dso-ozon-content:not(.sr-only), button.toggle-note.sc-dso-ozon-content svg.di.sc-dso-ozon-content + span.sc-dso-ozon-content:not(.sr-only), button.toggle-note.sc-dso-ozon-content span.sc-dso-ozon-content:not(.sr-only) + dso-icon.sc-dso-ozon-content, button.toggle-note.sc-dso-ozon-content span.sc-dso-ozon-content:not(.sr-only) + svg.di.sc-dso-ozon-content {\n margin-left: 8px;\n}\nbutton.toggle-note.sc-dso-ozon-content svg.di.di-chevron-down.sc-dso-ozon-content + span.sc-dso-ozon-content:not(.sr-only), button.toggle-note.sc-dso-ozon-content svg.di.di-chevron-up.sc-dso-ozon-content + span.sc-dso-ozon-content:not(.sr-only), button.toggle-note.sc-dso-ozon-content span.sc-dso-ozon-content:not(.sr-only) + svg.di.di-chevron-down.sc-dso-ozon-content, button.toggle-note.sc-dso-ozon-content span.sc-dso-ozon-content:not(.sr-only) + svg.di.di-chevron-up.sc-dso-ozon-content {\n margin-left: 4px;\n}\nbutton.toggle-note.sc-dso-ozon-content dso-icon[icon=chevron-left].sc-dso-ozon-content + span.sc-dso-ozon-content:not(.sr-only), button.toggle-note.sc-dso-ozon-content dso-icon[icon=chevron-right].sc-dso-ozon-content + span.sc-dso-ozon-content:not(.sr-only), button.toggle-note.sc-dso-ozon-content svg.di.di-angle-down.sc-dso-ozon-content + span.sc-dso-ozon-content:not(.sr-only), button.toggle-note.sc-dso-ozon-content svg.di.di-angle-up.sc-dso-ozon-content + span.sc-dso-ozon-content:not(.sr-only), button.toggle-note.sc-dso-ozon-content span.sc-dso-ozon-content:not(.sr-only) + svg.di.di-angle-down.sc-dso-ozon-content, button.toggle-note.sc-dso-ozon-content span.sc-dso-ozon-content:not(.sr-only) + svg.di.di-angle-up.sc-dso-ozon-content, button.toggle-note.sc-dso-ozon-content span.sc-dso-ozon-content:not(.sr-only) + dso-icon[icon=chevron-left].sc-dso-ozon-content, button.toggle-note.sc-dso-ozon-content span.sc-dso-ozon-content:not(.sr-only) + dso-icon[icon=chevron-right].sc-dso-ozon-content {\n margin-left: 0;\n}\nbutton.toggle-note.sc-dso-ozon-content dso-icon.sc-dso-ozon-content, button.toggle-note.sc-dso-ozon-content svg.di.sc-dso-ozon-content, button.toggle-note.sc-dso-ozon-content span.sc-dso-ozon-content {\n vertical-align: middle;\n}\n\nspan[role=section].sc-dso-ozon-content, span[role=paragraph].sc-dso-ozon-content {\n display: block;\n}\n\n.fallback.sc-dso-ozon-content {\n display: block;\n}\n\n.od-Term.sc-dso-ozon-content {\n font-weight: 700;\n}\n\n.od-Definitie.sc-dso-ozon-content, .od-Tussenkop.sc-dso-ozon-content {\n font-style: italic;\n}\n\n.od-Inhoud.sc-dso-ozon-content, .od-Inhoud.sc-dso-ozon-content > .od-Lijst.sc-dso-ozon-content, .od-IntIoRef.sc-dso-ozon-content, .od-Lidnr.sc-dso-ozon-content, .od-LiNr.sc-dso-ozon-content, .od-Opschrift.sc-dso-ozon-content, .od-Tussenkop.sc-dso-ozon-content {\n display: inline;\n}\n\n.od-Al.sc-dso-ozon-content {\n margin-bottom: 0.75em;\n}\n\n.od-IntIoRef.sc-dso-ozon-content {\n border-bottom: 1px dotted;\n}\n\n.dso-ozon-bron.sc-dso-ozon-content {\n font-style: italic;\n font-size: 0.75rem;\n}\n\n.dso-ozon-figuur.sc-dso-ozon-content {\n margin-bottom: 16px;\n}\n.dso-ozon-figuur.sc-dso-ozon-content .figuur-bijschrift.sc-dso-ozon-content {\n display: block;\n font-size: 0.75rem;\n font-style: italic;\n}\n.dso-ozon-figuur.bijschrift-boven.sc-dso-ozon-content .figuur-bijschrift.sc-dso-ozon-content {\n padding-bottom: 0.25rem;\n}\n.dso-ozon-figuur.bijschrift-onder.sc-dso-ozon-content .figuur-bijschrift.sc-dso-ozon-content {\n padding-top: 0.25rem;\n}\n.dso-ozon-figuur.sc-dso-ozon-content .figuur-titel.sc-dso-ozon-content {\n color: #8b4a6a;\n display: block;\n font-weight: 500;\n padding-bottom: 0.5rem;\n}\n\n.dso-ozon-lijst.sc-dso-ozon-content span.od-Lijstaanhef.sc-dso-ozon-content, .dso-ozon-lijst.sc-dso-ozon-content span.od-Lijstsluiting.sc-dso-ozon-content {\n margin-bottom: 1rem;\n}\n.dso-ozon-lijst.sc-dso-ozon-content ul.expliciet.sc-dso-ozon-content {\n list-style: none;\n}\n.dso-ozon-lijst.sc-dso-ozon-content ul.expliciet.sc-dso-ozon-content > .od-Li.sc-dso-ozon-content {\n position: relative;\n}\n.dso-ozon-lijst.sc-dso-ozon-content ul.expliciet.sc-dso-ozon-content > .od-Li.sc-dso-ozon-content > span.od-LiNummer.sc-dso-ozon-content {\n position: absolute;\n left: -44px;\n text-align: right;\n width: 40px;\n}\n\n.od-Tabel.sc-dso-ozon-content thead.sc-dso-ozon-content {\n font-weight: 600;\n}\n\n.od-Kadertekst.sc-dso-ozon-content {\n border: 1px solid #e5e5e5;\n margin-bottom: 1rem;\n padding: 1rem;\n}";
|
|
444
461
|
|
|
445
462
|
const OzonContent = class {
|
|
446
463
|
constructor(hostRef) {
|
|
@@ -7,7 +7,7 @@ export declare class Label implements ComponentInterface {
|
|
|
7
7
|
private host;
|
|
8
8
|
compact?: boolean;
|
|
9
9
|
removable?: boolean;
|
|
10
|
-
status?: "primary" | "info" | "success" | "warning" | "danger" | "bright";
|
|
10
|
+
status?: "primary" | "info" | "success" | "warning" | "danger" | "error" | "bright";
|
|
11
11
|
removeHover?: boolean;
|
|
12
12
|
removeFocus?: boolean;
|
|
13
13
|
truncate?: boolean;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { OzonContentNodeContext } from "../ozon-content-node-context.interface";
|
|
2
|
+
import { OzonContentNode } from "../ozon-content-node.interface";
|
|
3
|
+
export declare class OzonContentBronNode implements OzonContentNode {
|
|
4
|
+
name: string;
|
|
5
|
+
render(node: Element, { mapNodeToJsx }: OzonContentNodeContext): any;
|
|
6
|
+
}
|
|
@@ -115,10 +115,10 @@ export namespace Components {
|
|
|
115
115
|
"suggestions": Suggestion[] | null;
|
|
116
116
|
}
|
|
117
117
|
interface DsoBadge {
|
|
118
|
-
"status"?: "primary" | "success" | "info" | "warning" | "danger" | "outline";
|
|
118
|
+
"status"?: "primary" | "success" | "info" | "warning" | "danger" | "error" | "outline";
|
|
119
119
|
}
|
|
120
120
|
interface DsoBanner {
|
|
121
|
-
"status": "warning" | "danger";
|
|
121
|
+
"status": "warning" | "danger" | "error";
|
|
122
122
|
}
|
|
123
123
|
interface DsoCard {
|
|
124
124
|
"hasImage": boolean;
|
|
@@ -240,7 +240,7 @@ export namespace Components {
|
|
|
240
240
|
interface DsoLabel {
|
|
241
241
|
"compact"?: boolean;
|
|
242
242
|
"removable"?: boolean;
|
|
243
|
-
"status"?: "primary" | "info" | "success" | "warning" | "danger" | "bright";
|
|
243
|
+
"status"?: "primary" | "info" | "success" | "warning" | "danger" | "error" | "bright";
|
|
244
244
|
"truncate"?: boolean;
|
|
245
245
|
}
|
|
246
246
|
interface DsoListButton {
|
|
@@ -860,10 +860,10 @@ declare namespace LocalJSX {
|
|
|
860
860
|
"suggestions"?: Suggestion[] | null;
|
|
861
861
|
}
|
|
862
862
|
interface DsoBadge {
|
|
863
|
-
"status"?: "primary" | "success" | "info" | "warning" | "danger" | "outline";
|
|
863
|
+
"status"?: "primary" | "success" | "info" | "warning" | "danger" | "error" | "outline";
|
|
864
864
|
}
|
|
865
865
|
interface DsoBanner {
|
|
866
|
-
"status": "warning" | "danger";
|
|
866
|
+
"status": "warning" | "danger" | "error";
|
|
867
867
|
}
|
|
868
868
|
interface DsoCard {
|
|
869
869
|
"hasImage"?: boolean;
|
|
@@ -1000,7 +1000,7 @@ declare namespace LocalJSX {
|
|
|
1000
1000
|
"compact"?: boolean;
|
|
1001
1001
|
"onDsoRemoveClick"?: (event: DsoLabelCustomEvent<MouseEvent>) => void;
|
|
1002
1002
|
"removable"?: boolean;
|
|
1003
|
-
"status"?: "primary" | "info" | "success" | "warning" | "danger" | "bright";
|
|
1003
|
+
"status"?: "primary" | "info" | "success" | "warning" | "danger" | "error" | "bright";
|
|
1004
1004
|
"truncate"?: boolean;
|
|
1005
1005
|
}
|
|
1006
1006
|
interface DsoListButton {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dso-toolkit/core",
|
|
3
|
-
"version": "51.
|
|
3
|
+
"version": "51.2.0",
|
|
4
4
|
"description": "DSO Toolkit Web Components",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/components/index.js",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@stencil/store": "^2.0.1",
|
|
25
25
|
"animejs": "3.2.1",
|
|
26
26
|
"clsx": "1.2.1",
|
|
27
|
-
"dso-toolkit": "51.
|
|
27
|
+
"dso-toolkit": "51.2.0",
|
|
28
28
|
"escape-string-regexp": "^5.0.0",
|
|
29
29
|
"focus-trap": "^7.1.0",
|
|
30
30
|
"popper-max-size-modifier": "^0.2.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as n,F as o,r as t,c as e,H as s,a as c}from"./p-8f35c8f8.js";import{i}from"./p-3635427a.js";function r(n){return n instanceof Element?n.localName:n.nodeName.includes(":")?n.nodeName.substring(n.nodeName.indexOf(":")+1):n.nodeName}class d{constructor(){this.name="Al"}render(o,{mapNodeToJsx:t,path:e}){const s=e.some((n=>{const o=r(n);return"Al"===o||"Opschrift"===o})),c=t(o.childNodes);return s?n("span",{role:"paragraph"},c):n("p",null,c)}}class l{constructor(){this.name="#document"}render(t,{mapNodeToJsx:e}){return n(o,null,e(t.childNodes))}}class a{constructor(){this.name=["ExtRef","ExtIoRef"]}render(o,{mapNodeToJsx:t}){const e=o.getAttribute("ExtIoRef"===o.tagName?"href":"ref");return n("a",{target:"_blank",rel:"noopener noreferrer",href:null!=e?e:void 0},n("span",{class:"sr-only"},"opent in nieuw venster"),t(o.childNodes))}}const u=({bijschrift:o,bron:t,mapNodeToJsx:e})=>n("span",{class:"figuur-bijschrift"},o&&o.inhoud&&e(o.inhoud),t&&`${o?" ":""}(bron: ${e(t)})`);class h{constructor(){this.name=["Figuur"]}setImageDimensions(n,o){const{naturalHeight:t,naturalWidth:e}=n;n.height=t*(o/100),n.width=e*(o/100)}onImageLoad(n,o){n.target instanceof HTMLImageElement&&o&&this.setImageDimensions(n.target,o)}render(o,{mapNodeToJsx:t}){var e,s,c,i,d,l,a;const h=Array.from(o.childNodes),g=null===(e=h.find((n=>"Titel"===r(n))))||void 0===e?void 0:e.textContent,p=null===(s=h.find((n=>"Bron"===r(n))))||void 0===s?void 0:s.childNodes,f=h.find((n=>"Illustratie"===r(n))),m=h.find((n=>"Bijschrift"===r(n)));if(f instanceof Element){const o={naam:f.getAttribute("naam"),breedte:f.getAttribute("breedte"),hoogte:f.getAttribute("hoogte"),uitlijning:f.getAttribute("uitlijning"),alt:f.getAttribute("alt"),schaal:f.getAttribute("schaal")},e=m instanceof Element?{inhoud:m.childNodes,locatie:null!==(c=m.getAttribute("locatie"))&&void 0!==c?c:"onder"}:void 0;return n("div",{class:"dso-ozon-figuur "+(e?`bijschrift-${e.locatie}`:"onder")},g&&n("span",{class:"figuur-titel"},g),"boven"===(null==e?void 0:e.locatie)&&n(u,{bijschrift:e,bron:p,mapNodeToJsx:t}),n("dso-image-overlay",null,g&&n("div",{slot:"titel"},n("span",null,g)),n("img",{src:null!==(i=o.naam)&&void 0!==i?i:void 0,alt:null!==(a=null!==(l=null!==(d=o.alt)&&void 0!==d?d:g)&&void 0!==l?l:o.naam)&&void 0!==a?a:void 0,onLoad:n=>this.onImageLoad(n,Number(o.schaal))}),(e||p)&&n("div",{slot:"bijschrift"},n(u,{bijschrift:e,bron:p,mapNodeToJsx:t}))),("onder"===(null==e?void 0:e.locatie)||!e&&p)&&n(u,{bijschrift:e,bron:p,mapNodeToJsx:t}))}}}class g{constructor(){this.name=["Inhoud","ContainerBlocksType","BlockMixedcontentMetMaximaleInlinesMarkersPopupsType"]}render(o,{mapNodeToJsx:t}){return n("div",{class:"dso-rich-content"},t(o.childNodes))}}class p{constructor(){this.name=["InlineTekstAfbeelding","Illustratie"]}render(o){var t,e,s,c;return n("img",{src:null!==(t=o.getAttribute("naam"))&&void 0!==t?t:void 0,alt:null!==(e=o.getAttribute("naam"))&&void 0!==e?e:void 0,height:null!==(s=o.getAttribute("hoogte"))&&void 0!==s?s:void 0,width:null!==(c=o.getAttribute("breedte"))&&void 0!==c?c:void 0})}}class f{constructor(){this.name="Opschrift"}render(t,{mapNodeToJsx:e}){return n(o,null,e(t.childNodes))}}class m{constructor(){this.name=["sub","sup","strong","b","u","i","br"]}render(o,{mapNodeToJsx:t}){return"br"===o.localName?n("br",null):n(o.localName,null,t(o.childNodes))}}class z{constructor(){this.name="IntIoRef"}render(o,{mapNodeToJsx:t,emitAnchorClick:e}){const s=o.getAttribute("ref");return s?n("a",{href:`#${s}`,onClick:n=>{n.preventDefault();const o=n.currentTarget;if(!(o instanceof HTMLAnchorElement))return;const{href:t}=o;e({node:this.name,href:t,documentComponent:s,originalEvent:n})}},t(o.childNodes)):t(o.childNodes)}}class v{constructor(){this.name="IntRef"}render(o,{mapNodeToJsx:t,emitAnchorClick:e}){const s=o.getAttribute("ref");return s?n("a",{href:`#${s}`,onClick:n=>{n.preventDefault();const o=n.currentTarget;if(!(o instanceof HTMLAnchorElement))return;const{href:t}=o;e({node:this.name,href:t,documentComponent:s,originalEvent:n})}},t(o.childNodes)):t(o.childNodes)}}class b{constructor(){this.name="Noot",this.handles=["NootNummer"]}identify(){return"Noot"}render(t,{mapNodeToJsx:e,state:s,setState:c}){var i,d;const l=t.getAttribute("id");if(!l)return console.error("Noot node without id",t),n(o,null);const a=`dso-ozon-note-${l}`,u=null!==(d=null===(i=Array.from(t.childNodes).find((n=>"NootNummer"===r(n))))||void 0===i?void 0:i.textContent)&&void 0!==d?d:l;return n(o,null,n("sup",null,n("button",{type:"button",class:"toggle-note","aria-describedby":a,onClick:()=>null==c?void 0:c(s===l?void 0:l),onBlur:()=>null==c?void 0:c(void 0),"aria-expanded":s===l?"true":"false"},u)),n("dso-tooltip",{active:s===l,id:a,stateless:!0,descriptive:!0},n("span",{role:"section"},e(Array.from(t.querySelectorAll(":scope > Al"))))))}}function x(n,o){const t=Array.from(o),e=function(n){return n.reduce(((n,o)=>{var t,e;const s=null!==(e=null===(t=o.getAttribute("colwidth"))||void 0===t?void 0:t.replace(/[^0-9]/,""))&&void 0!==e?e:"",c=parseInt(s,10);return n+(isNaN(c)?0:c)}),0)}(t);return{totalWidth:e,count:n,columns:t.map(((n,o)=>{var t;const s=n.getAttribute("colnum");return{name:null!==(t=n.getAttribute("colname"))&&void 0!==t?t:"",number:s?parseInt(s,10):o+1,width:y(e,n)}}))}}function y(n,o){const t=o.getAttribute("colwidth");if(t){if("*"===t)return"100%";if(t.includes("*")||t.match(/^[\d+]$/)){const o=parseInt(t.replace(/[^0-9]/,""),10);return`${Math.round(o/n*100)}%`}return t}}const w=({colspecs:t})=>t.columns.length>0?n("colgroup",null,t.columns.map((o=>n("col",{style:{width:o.width}})))):n(o,null);function k({columns:n},o,t){const e=n.find((n=>n.name===o)),s=n.find((n=>n.name===t));if(!e||!s)return;const c=s.number-e.number+1;return 1===c?void 0:c}const j=({context:{mapNodeToJsx:o},colspecs:t,cell:e})=>{const{moreRows:s,nameStart:c,nameEnd:i}=function(n){return{moreRows:n.getAttribute("morerows"),nameStart:n.getAttribute("namest"),nameEnd:n.getAttribute("nameend")}}(e),r={rowSpan:s?parseInt(s,10)+1:void 0,colSpan:t&&c&&i?k(t,c,i):void 0};return n("td",Object.assign({},r),o(e.childNodes))},N=({context:t,colspecs:e,rows:s})=>n(o,null,s.map((o=>n("tr",null,Array.from(o.children).map((o=>n(j,{cell:o,colspecs:e,context:t})))))));class T{constructor(){this.name="table",this.handles=["title","tgroup","colspec","thead","tbody","row","cell"]}render(o,t){const{caption:e,colspecs:s,headRows:c,bodyRows:i}=function(n){var o,t,e;const s=n.querySelector(":scope > tgroup"),c=null!==(o=null==s?void 0:s.getAttribute("cols"))&&void 0!==o?o:void 0,i=c?parseInt(c,10):void 0;return{caption:null!==(e=null===(t=n.querySelector(":scope > title"))||void 0===t?void 0:t.textContent)&&void 0!==e?e:void 0,colspecs:s&&i?x(i,s.querySelectorAll(":scope > colspec")):void 0,headRows:Array.from(n.querySelectorAll(":scope > tgroup > thead > row")),bodyRows:Array.from(n.querySelectorAll(":scope > tgroup > tbody > row"))}}(o);return n("dso-table",null,n("table",{class:"table dso-table-vertical-lines"},e&&n("caption",null,e),s&&n(w,{colspecs:s}),c.length>0&&n("thead",null,n(N,{rows:c,colspecs:s,context:t})),i.length>0&&n("tbody",null,n(N,{rows:i,colspecs:s,context:t}))))}}class E{constructor(){this.name="#text"}render(t){return n(o,null,t.textContent)}}class B{constructor(){this.name=["<fallback>"]}render(o,{mapNodeToJsx:t}){return n("span",{class:`fallback od-${r(o)}`},t(o.childNodes))}}class C{constructor(){this.name="Lijst"}render(o,{mapNodeToJsx:t}){var e;const s=Array.from(o.childNodes),c=s.find((n=>"Lijstaanhef"===r(n))),i=s.find((n=>"Lijstsluiting"===r(n))),d=s.filter((n=>"Li"===r(n)));return n("div",{class:"dso-ozon-lijst od-Lijst"},c&&t(c),n("ul",{class:null!==(e=o.getAttribute("type"))&&void 0!==e?e:""},d.map((o=>{var e;const s=Array.from(o.childNodes),c=null===(e=s.find((n=>"LiNummer"===r(n))))||void 0===e?void 0:e.textContent;return n("li",{class:"od-Li"},c&&n("span",{class:"od-LiNummer"},c),t(s.filter((n=>"LiNummer"!==r(n)))))}))),i&&t(i))}}class A{constructor(){this.mappers=[new E,new l,new g,new f,new v,new a,new d,new m,new p,new b,new T,new z,new h,new C],this.skip=this.mappers.reduce(((n,o)=>(o.handles&&n.push(...o.handles),n)),[]),this.fallbackNode=new B,this.domParser=new DOMParser}findMapper(n){var o;if(!this.skip.includes(n))return null!==(o=this.mappers.find((o=>Array.isArray(o.name)?o.name.includes(n):o.name===n)))&&void 0!==o?o:this.fallbackNode}mapNodeToJsx(t,e,s){var c;if(t instanceof NodeList)return n(o,null,Array.from(t).map((n=>this.mapNodeToJsx(n,e,s))));if(Array.isArray(t))return n(o,null,t.map((n=>this.mapNodeToJsx(n,e,s))));const i=r(t),d=this.findMapper(i);if(!d)return n(o,null);const l=null===(c=d.identify)||void 0===c?void 0:c.call(d,t),a=l?n=>e.setState(Object.assign(Object.assign({},e.state),{[l]:n})):void 0;return d.render(t,{mapNodeToJsx:n=>this.mapNodeToJsx(n,e,[...s,t]),emitAnchorClick:e.emitAnchorClick,setState:a,state:l?e.state[l]:void 0,path:s})}transform(n,o){return this.cache&&this.cache.xml===n||(this.cache={xml:n,document:this.domParser.parseFromString(n,"text/xml")}),this.mapNodeToJsx(this.cache.document.getRootNode(),o,[])}}const I=class{constructor(n){t(this,n),this.dsoAnchorClick=e(this,"dsoAnchorClick",7),this.dsoClick=e(this,"dsoClick",7),this.mapper=new A,this.content=void 0,this.inline=!1,this.deleted=!1,this.interactive=!1,this.state={}}handleHostOnClick(n){(""===this.interactive||this.interactive)&&n.composedPath().find((n=>n===this.host||n instanceof HTMLElement&&i(n)))===this.host&&this.dsoClick.emit({originalEvent:n})}render(){var o;const t=this.mapper.transform(null!==(o=this.content)&&void 0!==o?o:"",{state:this.state,setState:n=>this.state=n,emitAnchorClick:this.dsoAnchorClick.emit});return this.deleted?n("section",null,n("slot",{name:"prefix"}),n("span",{class:"deleted-start"},"Begin verwijderd element"),t,n("span",{class:"deleted-end"},"Einde verwijderd element"),n("slot",{name:"suffix"})):n(s,{onClick:n=>this.handleHostOnClick(n)},n("slot",{name:"prefix"}),t,n("slot",{name:"suffix"}))}get host(){return c(this)}};I.style=".sc-dso-ozon-content-h:not([inline]) {\n display: block;\n}\n\n[inline].sc-dso-ozon-content-h {\n display: inline;\n}\n\n[deleted].sc-dso-ozon-content-h *.sc-dso-ozon-content {\n text-decoration: line-through !important;\n}\n\n[interactive].sc-dso-ozon-content-h {\n background-color: transparent;\n color: #39870c;\n text-decoration: underline;\n cursor: pointer;\n color: #275937;\n font-weight: 600;\n text-decoration: none;\n}\n[interactive].sc-dso-ozon-content-h:hover, [interactive].sc-dso-ozon-content-h:focus {\n color: #676cb0;\n text-decoration: underline;\n}\n[interactive].sc-dso-ozon-content-h:active {\n text-decoration: none;\n}\n\n[interactive=sub].sc-dso-ozon-content-h {\n color: #191919;\n}\n\n.deleted-start.sc-dso-ozon-content, .deleted-end.sc-dso-ozon-content {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n border: 0;\n}\n\nbutton.toggle-note.sc-dso-ozon-content {\n display: inline-block;\n font-size: 1em;\n font-weight: 500;\n margin-bottom: 0;\n text-decoration: none;\n touch-action: manipulation;\n text-align: left;\n user-select: none;\n vertical-align: middle;\n border: 0;\n color: #39870c;\n line-height: 1;\n padding: 0;\n background-color: transparent;\n}\nbutton.toggle-note.sc-dso-ozon-content:focus, button.toggle-note.sc-dso-ozon-content:focus-visible {\n outline-offset: 2px;\n}\nbutton.toggle-note.sc-dso-ozon-content:active {\n outline: 0;\n}\nbutton.toggle-note[disabled].sc-dso-ozon-content {\n color: #afcf9d;\n}\nbutton.toggle-note[disabled].dso-spinner-left.sc-dso-ozon-content, button.toggle-note[disabled].dso-spinner-right.sc-dso-ozon-content {\n color: #39870c;\n}\nbutton.toggle-note.sc-dso-ozon-content:not([disabled]):hover {\n color: #676cb0;\n text-decoration: underline;\n text-underline-position: under;\n}\nbutton.toggle-note.sc-dso-ozon-content:not([disabled]):active {\n color: #676cb0;\n}\nbutton.toggle-note.btn-align.sc-dso-ozon-content {\n line-height: calc(1.5em - 1px);\n padding: 11px 0;\n position: relative;\n}\nbutton.toggle-note.dso-spinner-left.sc-dso-ozon-content::before {\n background-image: url(\"data:image/svg+xml,%3Csvg class='spinner' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg' %3E%3Cstyle%3E .spinner %7B animation: rotator 8s linear infinite; transform-origin: center; %7D @keyframes rotator %7B 0%25 %7B transform: rotate(0deg); %7D 100%25 %7B transform: rotate(360deg); %7D %7D .path %7B stroke-dasharray: 265; stroke-dashoffset: 0; transform-origin: center; stroke: %2339870c; animation: dash 2s ease-in-out infinite; %7D @keyframes dash %7B 0%25 %7B stroke-dashoffset: 265; %7D 50%25 %7B stroke-dashoffset: 65; transform:rotate(90deg); %7D 100%25 %7B stroke-dashoffset: 265; transform:rotate(360deg); %7D %3C/style%3E%3Ccircle class='path' fill='none' stroke-width='10' stroke-linecap='butt' cx='50' cy='50' r='45'%3E%3C/circle%3E%3C/svg%3E\");\n background-repeat: no-repeat;\n content: \"\";\n display: inline-block;\n height: 24px;\n vertical-align: middle;\n width: 24px;\n margin-right: 8px;\n}\nbutton.toggle-note.dso-spinner-right.sc-dso-ozon-content::after {\n background-image: url(\"data:image/svg+xml,%3Csvg class='spinner' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg' %3E%3Cstyle%3E .spinner %7B animation: rotator 8s linear infinite; transform-origin: center; %7D @keyframes rotator %7B 0%25 %7B transform: rotate(0deg); %7D 100%25 %7B transform: rotate(360deg); %7D %7D .path %7B stroke-dasharray: 265; stroke-dashoffset: 0; transform-origin: center; stroke: %2339870c; animation: dash 2s ease-in-out infinite; %7D @keyframes dash %7B 0%25 %7B stroke-dashoffset: 265; %7D 50%25 %7B stroke-dashoffset: 65; transform:rotate(90deg); %7D 100%25 %7B stroke-dashoffset: 265; transform:rotate(360deg); %7D %3C/style%3E%3Ccircle class='path' fill='none' stroke-width='10' stroke-linecap='butt' cx='50' cy='50' r='45'%3E%3C/circle%3E%3C/svg%3E\");\n background-repeat: no-repeat;\n content: \"\";\n display: inline-block;\n height: 24px;\n vertical-align: middle;\n width: 24px;\n margin-left: 8px;\n}\nbutton.toggle-note.sc-dso-ozon-content dso-icon.sc-dso-ozon-content + span.sc-dso-ozon-content:not(.sr-only), button.toggle-note.sc-dso-ozon-content svg.di.sc-dso-ozon-content + span.sc-dso-ozon-content:not(.sr-only), button.toggle-note.sc-dso-ozon-content span.sc-dso-ozon-content:not(.sr-only) + dso-icon.sc-dso-ozon-content, button.toggle-note.sc-dso-ozon-content span.sc-dso-ozon-content:not(.sr-only) + svg.di.sc-dso-ozon-content {\n margin-left: 8px;\n}\nbutton.toggle-note.sc-dso-ozon-content svg.di.di-chevron-down.sc-dso-ozon-content + span.sc-dso-ozon-content:not(.sr-only), button.toggle-note.sc-dso-ozon-content svg.di.di-chevron-up.sc-dso-ozon-content + span.sc-dso-ozon-content:not(.sr-only), button.toggle-note.sc-dso-ozon-content span.sc-dso-ozon-content:not(.sr-only) + svg.di.di-chevron-down.sc-dso-ozon-content, button.toggle-note.sc-dso-ozon-content span.sc-dso-ozon-content:not(.sr-only) + svg.di.di-chevron-up.sc-dso-ozon-content {\n margin-left: 4px;\n}\nbutton.toggle-note.sc-dso-ozon-content dso-icon[icon=chevron-left].sc-dso-ozon-content + span.sc-dso-ozon-content:not(.sr-only), button.toggle-note.sc-dso-ozon-content dso-icon[icon=chevron-right].sc-dso-ozon-content + span.sc-dso-ozon-content:not(.sr-only), button.toggle-note.sc-dso-ozon-content svg.di.di-angle-down.sc-dso-ozon-content + span.sc-dso-ozon-content:not(.sr-only), button.toggle-note.sc-dso-ozon-content svg.di.di-angle-up.sc-dso-ozon-content + span.sc-dso-ozon-content:not(.sr-only), button.toggle-note.sc-dso-ozon-content span.sc-dso-ozon-content:not(.sr-only) + svg.di.di-angle-down.sc-dso-ozon-content, button.toggle-note.sc-dso-ozon-content span.sc-dso-ozon-content:not(.sr-only) + svg.di.di-angle-up.sc-dso-ozon-content, button.toggle-note.sc-dso-ozon-content span.sc-dso-ozon-content:not(.sr-only) + dso-icon[icon=chevron-left].sc-dso-ozon-content, button.toggle-note.sc-dso-ozon-content span.sc-dso-ozon-content:not(.sr-only) + dso-icon[icon=chevron-right].sc-dso-ozon-content {\n margin-left: 0;\n}\nbutton.toggle-note.sc-dso-ozon-content dso-icon.sc-dso-ozon-content, button.toggle-note.sc-dso-ozon-content svg.di.sc-dso-ozon-content, button.toggle-note.sc-dso-ozon-content span.sc-dso-ozon-content {\n vertical-align: middle;\n}\n\nspan[role=section].sc-dso-ozon-content, span[role=paragraph].sc-dso-ozon-content {\n display: block;\n}\n\n.fallback.sc-dso-ozon-content {\n display: block;\n}\n\n.od-Term.sc-dso-ozon-content {\n font-weight: 700;\n}\n\n.od-Definitie.sc-dso-ozon-content, .od-Tussenkop.sc-dso-ozon-content {\n font-style: italic;\n}\n\n.od-Inhoud.sc-dso-ozon-content, .od-Inhoud.sc-dso-ozon-content > .od-Lijst.sc-dso-ozon-content, .od-IntIoRef.sc-dso-ozon-content, .od-Lidnr.sc-dso-ozon-content, .od-LiNr.sc-dso-ozon-content, .od-Opschrift.sc-dso-ozon-content, .od-Tussenkop.sc-dso-ozon-content {\n display: inline;\n}\n\n.od-Al.sc-dso-ozon-content {\n margin-bottom: 0.75em;\n}\n\n.od-IntIoRef.sc-dso-ozon-content {\n border-bottom: 1px dotted;\n}\n\n.dso-ozon-figuur.sc-dso-ozon-content {\n margin-bottom: 16px;\n}\n.dso-ozon-figuur.sc-dso-ozon-content .figuur-bijschrift.sc-dso-ozon-content {\n display: block;\n font-size: 0.75rem;\n font-style: italic;\n}\n.dso-ozon-figuur.bijschrift-boven.sc-dso-ozon-content .figuur-bijschrift.sc-dso-ozon-content {\n padding-bottom: 0.25rem;\n}\n.dso-ozon-figuur.bijschrift-onder.sc-dso-ozon-content .figuur-bijschrift.sc-dso-ozon-content {\n padding-top: 0.25rem;\n}\n.dso-ozon-figuur.sc-dso-ozon-content .figuur-titel.sc-dso-ozon-content {\n color: #8b4a6a;\n display: block;\n font-weight: 500;\n padding-bottom: 0.5rem;\n}\n\n.dso-ozon-lijst.sc-dso-ozon-content span.od-Lijstaanhef.sc-dso-ozon-content, .dso-ozon-lijst.sc-dso-ozon-content span.od-Lijstsluiting.sc-dso-ozon-content {\n margin-bottom: 1rem;\n}\n.dso-ozon-lijst.sc-dso-ozon-content ul.expliciet.sc-dso-ozon-content {\n list-style: none;\n}\n.dso-ozon-lijst.sc-dso-ozon-content ul.expliciet.sc-dso-ozon-content > .od-Li.sc-dso-ozon-content {\n position: relative;\n}\n.dso-ozon-lijst.sc-dso-ozon-content ul.expliciet.sc-dso-ozon-content > .od-Li.sc-dso-ozon-content > span.od-LiNummer.sc-dso-ozon-content {\n position: absolute;\n left: -44px;\n text-align: right;\n width: 40px;\n}\n\n.od-Tabel.sc-dso-ozon-content thead.sc-dso-ozon-content {\n font-weight: 600;\n}\n\n.od-Kadertekst.sc-dso-ozon-content {\n border: 1px solid #e5e5e5;\n margin-bottom: 1rem;\n padding: 1rem;\n}";export{I as dso_ozon_content}
|