@dso-toolkit/core 45.2.0 → 46.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/clsx.m-b81c6b86.js +5 -0
- package/dist/cjs/{create-identifier-fa070b11.js → create-identifier-6ee2a08b.js} +1 -3
- package/dist/cjs/dso-accordion-section.cjs.entry.js +37 -33
- package/dist/cjs/dso-accordion.cjs.entry.js +17 -19
- package/dist/cjs/dso-alert.cjs.entry.js +10 -8
- package/dist/cjs/dso-attachments-counter.cjs.entry.js +4 -3
- package/dist/cjs/dso-autosuggest.cjs.entry.js +36 -61
- package/dist/cjs/dso-badge.cjs.entry.js +5 -4
- package/dist/cjs/dso-banner.cjs.entry.js +5 -4
- package/dist/cjs/dso-date-picker.cjs.entry.js +88 -128
- package/dist/cjs/dso-dropdown-menu.cjs.entry.js +9 -21
- package/dist/cjs/dso-header.cjs.entry.js +23 -29
- package/dist/cjs/dso-helpcenter-panel.cjs.entry.js +22 -21
- package/dist/cjs/dso-highlight-box.cjs.entry.js +16 -11
- package/dist/cjs/dso-icon.cjs.entry.js +389 -385
- package/dist/cjs/dso-image-overlay.cjs.entry.js +13 -13
- package/dist/cjs/dso-info-button.cjs.entry.js +7 -5
- package/dist/cjs/dso-info_2.cjs.entry.js +22 -9
- package/dist/cjs/dso-label.cjs.entry.js +30 -18
- package/dist/cjs/dso-map-base-layers.cjs.entry.js +7 -8
- package/dist/cjs/dso-map-controls.cjs.entry.js +10 -8
- package/dist/cjs/dso-map-overlays.cjs.entry.js +7 -8
- package/dist/cjs/dso-modal.cjs.entry.js +62 -0
- package/dist/cjs/dso-ozon-content.cjs.entry.js +110 -146
- package/dist/cjs/dso-pagination.cjs.entry.js +22 -28
- package/dist/cjs/dso-progress-bar.cjs.entry.js +3 -2
- package/dist/cjs/dso-progress-indicator.cjs.entry.js +11 -8
- package/dist/cjs/dso-responsive-element.cjs.entry.js +13 -10
- package/dist/cjs/dso-table.cjs.entry.js +17 -17
- package/dist/cjs/dso-toggletip.cjs.entry.js +9 -7
- package/dist/cjs/dso-toolkit.cjs.js +3 -3
- package/dist/cjs/dso-tooltip.cjs.entry.js +103 -104
- package/dist/cjs/dso-tree-view.cjs.entry.js +39 -44
- package/dist/cjs/dso-viewer-grid.cjs.entry.js +31 -32
- package/dist/cjs/{focus-trap.esm-e2addb10.js → focus-trap.esm-d83fd673.js} +1 -1
- package/dist/cjs/{index-4066351a.js → index-ecec64a0.js} +486 -500
- package/dist/cjs/{index.esm-50325ea2.js → index.esm-03a9e0b4.js} +50 -112
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/v4-abb5dc0c.js +68 -0
- package/dist/collection/collection-manifest.json +3 -2
- package/dist/collection/components/accordion/accordion.js +183 -174
- package/dist/collection/components/accordion/components/accordion-section.css +19 -11
- package/dist/collection/components/accordion/components/accordion-section.js +211 -211
- package/dist/collection/components/alert/alert.js +58 -53
- package/dist/collection/components/attachments-counter/attachments-counter.js +36 -33
- package/dist/collection/components/autosuggest/autosuggest.js +223 -240
- package/dist/collection/components/badge/badge.js +37 -29
- package/dist/collection/components/banner/banner.js +37 -29
- package/dist/collection/components/date-picker/date-localization.js +24 -45
- package/dist/collection/components/date-picker/date-picker-day.js +3 -5
- package/dist/collection/components/date-picker/date-picker-month.js +2 -10
- package/dist/collection/components/date-picker/date-picker.js +386 -436
- package/dist/collection/components/date-picker/date-utils.js +15 -15
- package/dist/collection/components/dropdown-menu/dropdown-menu.js +73 -82
- package/dist/collection/components/header/header.js +210 -246
- package/dist/collection/components/helpcenter-panel/helpcenter-panel.js +94 -90
- package/dist/collection/components/highlight-box/highlight-box.js +112 -101
- package/dist/collection/components/icon/icon.js +220 -209
- package/dist/collection/components/image-overlay/image-overlay.js +38 -44
- package/dist/collection/components/info/info.js +73 -65
- package/dist/collection/components/info-button/info-button.js +113 -102
- package/dist/collection/components/label/label.js +151 -140
- package/dist/collection/components/map-base-layers/map-base-layers.js +75 -74
- package/dist/collection/components/map-controls/map-controls.js +115 -116
- package/dist/collection/components/map-overlays/map-overlays.js +75 -74
- package/dist/collection/components/modal/modal.css +155 -0
- package/dist/collection/components/modal/modal.js +133 -0
- package/dist/collection/components/ozon-content/get-node-name.function.js +2 -2
- package/dist/collection/components/ozon-content/nodes/al.node.js +6 -8
- package/dist/collection/components/ozon-content/nodes/document.node.js +2 -2
- package/dist/collection/components/ozon-content/nodes/ext-ref.node.js +4 -9
- package/dist/collection/components/ozon-content/nodes/fallback.node.js +4 -4
- package/dist/collection/components/ozon-content/nodes/figuur.node.js +20 -32
- package/dist/collection/components/ozon-content/nodes/inhoud.node.js +2 -6
- package/dist/collection/components/ozon-content/nodes/inline-tekst-afbeelding.node.js +3 -6
- package/dist/collection/components/ozon-content/nodes/inline.nodes.js +3 -11
- package/dist/collection/components/ozon-content/nodes/int-io-ref.node.js +4 -4
- package/dist/collection/components/ozon-content/nodes/int-ref.node.js +4 -4
- package/dist/collection/components/ozon-content/nodes/lijst.node.js +12 -17
- package/dist/collection/components/ozon-content/nodes/noot.node.js +9 -13
- package/dist/collection/components/ozon-content/nodes/opschrift.node.js +2 -2
- package/dist/collection/components/ozon-content/nodes/table.node/colspec/colspec-mapper.js +11 -11
- package/dist/collection/components/ozon-content/nodes/table.node/colspec/colspec.interface.js +0 -1
- package/dist/collection/components/ozon-content/nodes/table.node/index.js +1 -1
- package/dist/collection/components/ozon-content/nodes/table.node/table-cell.js +8 -8
- package/dist/collection/components/ozon-content/nodes/table.node/table-colgroup.js +2 -4
- package/dist/collection/components/ozon-content/nodes/table.node/table-rows.js +3 -3
- package/dist/collection/components/ozon-content/nodes/table.node/table.node.js +13 -20
- package/dist/collection/components/ozon-content/nodes/text.node.js +2 -2
- package/dist/collection/components/ozon-content/ozon-content-mapper.js +27 -25
- package/dist/collection/components/ozon-content/ozon-content.interfaces.js +0 -1
- package/dist/collection/components/ozon-content/ozon-content.js +138 -151
- package/dist/collection/components/pagination/pagination.js +118 -125
- package/dist/collection/components/progress-bar/progress-bar.js +68 -65
- package/dist/collection/components/progress-indicator/progress-indicator.js +76 -70
- package/dist/collection/components/responsive-element/responsive-element.js +70 -58
- package/dist/collection/components/selectable/selectable.js +260 -243
- package/dist/collection/components/table/table.css +48 -61
- package/dist/collection/components/table/table.js +70 -81
- package/dist/collection/components/toggletip/toggletip.js +94 -87
- package/dist/collection/components/tooltip/tooltip.js +252 -254
- package/dist/collection/components/tree-view/tree-item.js +5 -19
- package/dist/collection/components/tree-view/tree-view.js +151 -139
- package/dist/collection/components/viewer-grid/viewer-grid-filterpanel-buttons.js +2 -7
- package/dist/collection/components/viewer-grid/viewer-grid.css +4 -4
- package/dist/collection/components/viewer-grid/viewer-grid.js +181 -198
- package/dist/collection/index.js +2 -2
- package/dist/collection/utils/create-identifier.js +1 -3
- package/dist/custom-elements/index.d.ts +6 -0
- package/dist/custom-elements/index.js +1200 -1335
- package/dist/dso-toolkit/dso-toolkit.esm.js +1 -1
- package/dist/dso-toolkit/p-0917f18a.entry.js +1 -0
- package/dist/dso-toolkit/p-0c8cd0d8.entry.js +1 -0
- package/dist/dso-toolkit/p-19323600.entry.js +1 -0
- package/dist/dso-toolkit/p-2b83a825.entry.js +1 -0
- package/dist/dso-toolkit/p-2fa96ac0.entry.js +1 -0
- package/dist/dso-toolkit/p-3635427a.js +5 -0
- package/dist/dso-toolkit/p-39a33b89.entry.js +1 -0
- package/dist/dso-toolkit/p-3ab4441a.entry.js +1 -0
- package/dist/dso-toolkit/p-3bd6cf49.entry.js +1 -0
- package/dist/dso-toolkit/p-3ebba0dc.entry.js +1 -0
- package/dist/dso-toolkit/p-427f6d90.entry.js +1 -0
- package/dist/dso-toolkit/p-44c0bb3e.entry.js +1 -0
- package/dist/dso-toolkit/p-4b994946.entry.js +1 -0
- package/dist/dso-toolkit/p-5d7f4ff2.js +1 -0
- package/dist/dso-toolkit/{p-4070c1e5.js → p-6a1980b4.js} +0 -0
- package/dist/dso-toolkit/{p-7b37bd52.js → p-6c543986.js} +0 -0
- package/dist/dso-toolkit/p-746dc38a.entry.js +1 -0
- package/dist/dso-toolkit/p-76a1428a.entry.js +1 -0
- package/dist/dso-toolkit/p-800e1267.entry.js +1 -0
- package/dist/dso-toolkit/p-85d516c5.entry.js +1 -0
- package/dist/dso-toolkit/{p-22c35db5.js → p-89d262b7.js} +2 -2
- package/dist/dso-toolkit/p-8c8286e6.entry.js +1 -0
- package/dist/dso-toolkit/p-8f35c8f8.js +2 -0
- package/dist/dso-toolkit/p-a4086aa3.entry.js +1 -0
- package/dist/dso-toolkit/p-a9baa631.entry.js +1 -0
- package/dist/dso-toolkit/p-c4cf2359.entry.js +1 -0
- package/dist/dso-toolkit/p-c7ec6e6e.entry.js +1 -0
- package/dist/dso-toolkit/p-c9ad94a6.entry.js +1 -0
- package/dist/dso-toolkit/p-daba2d98.entry.js +1 -0
- package/dist/dso-toolkit/p-dad32839.entry.js +1 -0
- package/dist/dso-toolkit/p-dcc74039.entry.js +1 -0
- package/dist/dso-toolkit/p-e0a37d82.entry.js +1 -0
- package/dist/dso-toolkit/p-e43e39cf.entry.js +1 -0
- package/dist/dso-toolkit/p-e8b22546.entry.js +1 -0
- package/dist/dso-toolkit/p-ec25868b.entry.js +1 -0
- package/dist/dso-toolkit/p-f93b7c7a.entry.js +1 -0
- package/dist/dso-toolkit/p-ff72ee4c.entry.js +1 -0
- package/dist/esm/clsx.m-25174a58.js +3 -0
- package/dist/esm/{create-identifier-22acd3a3.js → create-identifier-51ee50c4.js} +1 -3
- package/dist/esm/dso-accordion-section.entry.js +37 -33
- package/dist/esm/dso-accordion.entry.js +17 -19
- package/dist/esm/dso-alert.entry.js +10 -8
- package/dist/esm/dso-attachments-counter.entry.js +4 -3
- package/dist/esm/dso-autosuggest.entry.js +36 -61
- package/dist/esm/dso-badge.entry.js +5 -4
- package/dist/esm/dso-banner.entry.js +5 -4
- package/dist/esm/dso-date-picker.entry.js +88 -128
- package/dist/esm/dso-dropdown-menu.entry.js +9 -21
- package/dist/esm/dso-header.entry.js +23 -29
- package/dist/esm/dso-helpcenter-panel.entry.js +22 -21
- package/dist/esm/dso-highlight-box.entry.js +16 -11
- package/dist/esm/dso-icon.entry.js +389 -385
- package/dist/esm/dso-image-overlay.entry.js +13 -13
- package/dist/esm/dso-info-button.entry.js +7 -5
- package/dist/esm/dso-info_2.entry.js +22 -9
- package/dist/esm/dso-label.entry.js +30 -18
- package/dist/esm/dso-map-base-layers.entry.js +7 -8
- package/dist/esm/dso-map-controls.entry.js +10 -8
- package/dist/esm/dso-map-overlays.entry.js +7 -8
- package/dist/esm/dso-modal.entry.js +58 -0
- package/dist/esm/dso-ozon-content.entry.js +110 -146
- package/dist/esm/dso-pagination.entry.js +22 -28
- package/dist/esm/dso-progress-bar.entry.js +3 -2
- package/dist/esm/dso-progress-indicator.entry.js +11 -8
- package/dist/esm/dso-responsive-element.entry.js +13 -10
- package/dist/esm/dso-table.entry.js +17 -17
- package/dist/esm/dso-toggletip.entry.js +9 -7
- package/dist/esm/dso-toolkit.js +3 -3
- package/dist/esm/dso-tooltip.entry.js +103 -104
- package/dist/esm/dso-tree-view.entry.js +39 -44
- package/dist/esm/dso-viewer-grid.entry.js +31 -32
- package/dist/esm/{focus-trap.esm-e3b5bde3.js → focus-trap.esm-33203b60.js} +1 -1
- package/dist/esm/{index-771c1291.js → index-1a4dda48.js} +486 -500
- package/dist/esm/{index.esm-4510c39e.js → index.esm-8fc07ad8.js} +50 -112
- package/dist/esm/loader.js +3 -3
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/v4-d398bde5.js +66 -0
- package/dist/types/components/accordion/accordion.d.ts +2 -2
- package/dist/types/components/accordion/accordion.interfaces.d.ts +3 -3
- package/dist/types/components/accordion/components/accordion-section.d.ts +2 -2
- package/dist/types/components/alert/alert.d.ts +1 -1
- package/dist/types/components/autosuggest/autosuggest.d.ts +3 -3
- package/dist/types/components/badge/badge.d.ts +1 -1
- package/dist/types/components/banner/banner.d.ts +1 -1
- package/dist/types/components/date-picker/date-picker.d.ts +1 -1
- package/dist/types/components/header/header.d.ts +2 -2
- package/dist/types/components/header/header.interfaces.d.ts +1 -1
- package/dist/types/components/helpcenter-panel/helpcenter-panel.d.ts +1 -1
- package/dist/types/components/image-overlay/image-overlay.d.ts +1 -1
- package/dist/types/components/info/info.d.ts +1 -1
- package/dist/types/components/info-button/info-button.d.ts +1 -1
- package/dist/types/components/label/label.d.ts +2 -2
- package/dist/types/components/map-base-layers/map-base-layers.d.ts +2 -2
- package/dist/types/components/map-controls/map-controls.d.ts +2 -2
- package/dist/types/components/map-overlays/map-overlays.d.ts +3 -3
- package/dist/types/components/modal/modal.d.ts +22 -0
- package/dist/types/components/ozon-content/nodes/al.node.d.ts +2 -2
- package/dist/types/components/ozon-content/nodes/document.node.d.ts +2 -2
- package/dist/types/components/ozon-content/nodes/ext-ref.node.d.ts +2 -2
- package/dist/types/components/ozon-content/nodes/fallback.node.d.ts +2 -2
- package/dist/types/components/ozon-content/nodes/figuur.node.d.ts +2 -2
- package/dist/types/components/ozon-content/nodes/inhoud.node.d.ts +2 -2
- package/dist/types/components/ozon-content/nodes/inline-tekst-afbeelding.node.d.ts +1 -1
- package/dist/types/components/ozon-content/nodes/inline.nodes.d.ts +2 -2
- package/dist/types/components/ozon-content/nodes/int-io-ref.node.d.ts +2 -2
- package/dist/types/components/ozon-content/nodes/int-ref.node.d.ts +2 -2
- package/dist/types/components/ozon-content/nodes/lijst.node.d.ts +2 -2
- package/dist/types/components/ozon-content/nodes/noot.node.d.ts +2 -2
- package/dist/types/components/ozon-content/nodes/opschrift.node.d.ts +2 -2
- package/dist/types/components/ozon-content/nodes/table.node/colspec/colspec-mapper.d.ts +1 -1
- package/dist/types/components/ozon-content/nodes/table.node/index.d.ts +1 -1
- package/dist/types/components/ozon-content/nodes/table.node/table-cell.d.ts +3 -3
- package/dist/types/components/ozon-content/nodes/table.node/table-colgroup.d.ts +2 -2
- package/dist/types/components/ozon-content/nodes/table.node/table-rows.d.ts +3 -3
- package/dist/types/components/ozon-content/nodes/table.node/table.node.d.ts +2 -2
- package/dist/types/components/ozon-content/nodes/text.node.d.ts +1 -1
- package/dist/types/components/ozon-content/ozon-content-context.interface.d.ts +4 -4
- package/dist/types/components/ozon-content/ozon-content-mapper.d.ts +2 -1
- package/dist/types/components/ozon-content/ozon-content-node-context.interface.d.ts +2 -1
- package/dist/types/components/ozon-content/ozon-content-node.interface.d.ts +2 -1
- package/dist/types/components/ozon-content/ozon-content.d.ts +5 -4
- package/dist/types/components/pagination/pagination.d.ts +3 -3
- package/dist/types/components/progress-indicator/progress-indicator.d.ts +1 -1
- package/dist/types/components/responsive-element/responsive-element.d.ts +2 -2
- package/dist/types/components/responsive-element/responsive-element.interfaces.d.ts +1 -1
- package/dist/types/components/selectable/selectable.d.ts +2 -2
- package/dist/types/components/table/table.d.ts +2 -2
- package/dist/types/components/tooltip/tooltip.d.ts +2 -2
- package/dist/types/components/tree-view/tree-item.d.ts +3 -3
- package/dist/types/components/tree-view/tree-view.d.ts +5 -5
- package/dist/types/components/viewer-grid/viewer-grid-filterpanel-buttons.d.ts +1 -1
- package/dist/types/components/viewer-grid/viewer-grid.d.ts +2 -1
- package/dist/types/components.d.ts +152 -58
- package/dist/types/globals.d.ts +16 -16
- package/dist/types/index.d.ts +3 -3
- package/dist/types/stencil-public-runtime.d.ts +26 -8
- package/loader/package.json +1 -0
- package/package.json +15 -16
- package/readme.md +3 -3
- package/dist/cjs/clsx.m-b00fa5e1.js +0 -44
- package/dist/cjs/v4-8e8d6fbc.js +0 -77
- package/dist/collection/components/accordion/accordion.template.js +0 -26
- package/dist/collection/components/alert/alert.template.js +0 -20
- package/dist/collection/components/attachments-counter/attachments-counter.template.js +0 -6
- package/dist/collection/components/autosuggest/autosuggest.template.js +0 -19
- package/dist/collection/components/badge/badge.template.js +0 -7
- package/dist/collection/components/banner/banner.template.js +0 -19
- package/dist/collection/components/date-picker/date-picker.template.js +0 -16
- package/dist/collection/components/dropdown-menu/dropdown-menu.template.js +0 -36
- package/dist/collection/components/header/header.template.js +0 -18
- package/dist/collection/components/helpcenter-panel/helpcenter-panel.template.js +0 -13
- package/dist/collection/components/highlight-box/highlight-box.template.js +0 -20
- package/dist/collection/components/icon/icon.template.js +0 -10
- package/dist/collection/components/image-overlay/image-overlay.template.js +0 -15
- package/dist/collection/components/info/info.template.js +0 -12
- package/dist/collection/components/info-button/info-button.template.js +0 -11
- package/dist/collection/components/label/label.template.js +0 -23
- package/dist/collection/components/map-controls/map-controls.template.js +0 -23
- package/dist/collection/components/ozon-content/ozon-content.template.js +0 -14
- package/dist/collection/components/pagination/pagination.template.js +0 -11
- package/dist/collection/components/progress-bar/progress-bar.template.js +0 -11
- package/dist/collection/components/progress-indicator/progress-indicator.template.js +0 -11
- package/dist/collection/components/responsive-element/responsive-element.template.js +0 -10
- package/dist/collection/components/selectable/selectable.template.js +0 -24
- package/dist/collection/components/table/table.template.js +0 -26
- package/dist/collection/components/toggletip/toggletip.template.js +0 -12
- package/dist/collection/components/tooltip/tooltip.template.js +0 -7
- package/dist/collection/components/tree-view/tree-view.template.js +0 -11
- package/dist/collection/components/viewer-grid/viewer-grid.template.js +0 -20
- package/dist/dso-toolkit/p-02b2e01c.entry.js +0 -1
- package/dist/dso-toolkit/p-05a9e206.entry.js +0 -1
- package/dist/dso-toolkit/p-19b890a3.js +0 -1
- package/dist/dso-toolkit/p-1a19ce42.entry.js +0 -1
- package/dist/dso-toolkit/p-2e74485e.entry.js +0 -1
- package/dist/dso-toolkit/p-2f6b1092.entry.js +0 -1
- package/dist/dso-toolkit/p-3381c859.entry.js +0 -1
- package/dist/dso-toolkit/p-37a34037.entry.js +0 -1
- package/dist/dso-toolkit/p-383227b9.entry.js +0 -1
- package/dist/dso-toolkit/p-42450cfe.js +0 -1
- package/dist/dso-toolkit/p-4c44d27c.entry.js +0 -1
- package/dist/dso-toolkit/p-4fd140e9.entry.js +0 -1
- package/dist/dso-toolkit/p-53c7bf4f.entry.js +0 -1
- package/dist/dso-toolkit/p-662b7663.entry.js +0 -1
- package/dist/dso-toolkit/p-67b11174.entry.js +0 -1
- package/dist/dso-toolkit/p-6a414479.entry.js +0 -1
- package/dist/dso-toolkit/p-6cac0292.entry.js +0 -1
- package/dist/dso-toolkit/p-7213783b.entry.js +0 -1
- package/dist/dso-toolkit/p-83de460b.entry.js +0 -1
- package/dist/dso-toolkit/p-9aaadf4f.entry.js +0 -1
- package/dist/dso-toolkit/p-a5a5b24b.entry.js +0 -1
- package/dist/dso-toolkit/p-a9b0a83e.entry.js +0 -1
- package/dist/dso-toolkit/p-ac0c0eee.entry.js +0 -1
- package/dist/dso-toolkit/p-b6afe104.entry.js +0 -1
- package/dist/dso-toolkit/p-b9531adb.entry.js +0 -1
- package/dist/dso-toolkit/p-d2255268.entry.js +0 -1
- package/dist/dso-toolkit/p-de50f5f1.entry.js +0 -1
- package/dist/dso-toolkit/p-e16b5d71.entry.js +0 -1
- package/dist/dso-toolkit/p-ea1d4c81.entry.js +0 -1
- package/dist/dso-toolkit/p-eb326df8.entry.js +0 -1
- package/dist/dso-toolkit/p-ec3b8800.entry.js +0 -1
- package/dist/dso-toolkit/p-f1b5baf9.entry.js +0 -1
- package/dist/dso-toolkit/p-f8b023c4.js +0 -5
- package/dist/esm/clsx.m-071989db.js +0 -42
- package/dist/esm/v4-fa4bb814.js +0 -75
- package/dist/types/components/accordion/accordion.template.d.ts +0 -2
- package/dist/types/components/alert/alert.template.d.ts +0 -3
- package/dist/types/components/attachments-counter/attachments-counter.template.d.ts +0 -2
- package/dist/types/components/autosuggest/autosuggest.template.d.ts +0 -3
- package/dist/types/components/badge/badge.template.d.ts +0 -2
- package/dist/types/components/banner/banner.template.d.ts +0 -3
- package/dist/types/components/date-picker/date-picker.template.d.ts +0 -2
- package/dist/types/components/dropdown-menu/dropdown-menu.template.d.ts +0 -2
- package/dist/types/components/header/header.template.d.ts +0 -2
- package/dist/types/components/helpcenter-panel/helpcenter-panel.template.d.ts +0 -2
- package/dist/types/components/highlight-box/highlight-box.template.d.ts +0 -3
- package/dist/types/components/icon/icon.template.d.ts +0 -2
- package/dist/types/components/image-overlay/image-overlay.template.d.ts +0 -2
- package/dist/types/components/info/info.template.d.ts +0 -3
- package/dist/types/components/info-button/info-button.template.d.ts +0 -2
- package/dist/types/components/label/label.template.d.ts +0 -2
- package/dist/types/components/map-controls/map-controls.template.d.ts +0 -2
- package/dist/types/components/ozon-content/ozon-content.template.d.ts +0 -2
- package/dist/types/components/pagination/pagination.template.d.ts +0 -2
- package/dist/types/components/progress-bar/progress-bar.template.d.ts +0 -2
- package/dist/types/components/progress-indicator/progress-indicator.template.d.ts +0 -2
- package/dist/types/components/responsive-element/responsive-element.template.d.ts +0 -3
- package/dist/types/components/selectable/selectable.template.d.ts +0 -3
- package/dist/types/components/table/table.template.d.ts +0 -2
- package/dist/types/components/toggletip/toggletip.template.d.ts +0 -2
- package/dist/types/components/tooltip/tooltip.template.d.ts +0 -2
- package/dist/types/components/tree-view/tree-view.template.d.ts +0 -2
- package/dist/types/components/viewer-grid/viewer-grid.template.d.ts +0 -3
|
@@ -1,35 +1,33 @@
|
|
|
1
|
-
import { h, F as Fragment, r as registerInstance, c as createEvent, H as Host, a as getElement } from './index-
|
|
2
|
-
import { i as isTabbable } from './index.esm-
|
|
1
|
+
import { h, F as Fragment, r as registerInstance, c as createEvent, H as Host, a as getElement } from './index-1a4dda48.js';
|
|
2
|
+
import { i as isTabbable } from './index.esm-8fc07ad8.js';
|
|
3
3
|
|
|
4
4
|
function getNodeName(node) {
|
|
5
5
|
if (node instanceof Element) {
|
|
6
6
|
return node.localName;
|
|
7
7
|
}
|
|
8
|
-
if (node.nodeName.includes(
|
|
9
|
-
return node.nodeName.substring(node.nodeName.indexOf(
|
|
8
|
+
if (node.nodeName.includes(":")) {
|
|
9
|
+
return node.nodeName.substring(node.nodeName.indexOf(":") + 1);
|
|
10
10
|
}
|
|
11
11
|
return node.nodeName;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
class OzonContentAlNode {
|
|
15
15
|
constructor() {
|
|
16
|
-
this.name =
|
|
16
|
+
this.name = "Al";
|
|
17
17
|
}
|
|
18
18
|
render(node, { mapNodeToJsx, path }) {
|
|
19
|
-
const nestedAl = path.some(node => {
|
|
19
|
+
const nestedAl = path.some((node) => {
|
|
20
20
|
const nodeName = getNodeName(node);
|
|
21
|
-
return nodeName ===
|
|
21
|
+
return nodeName === "Al" || nodeName === "Opschrift";
|
|
22
22
|
});
|
|
23
23
|
const content = mapNodeToJsx(node.childNodes);
|
|
24
|
-
return nestedAl
|
|
25
|
-
? h("span", { role: "paragraph" }, content)
|
|
26
|
-
: h("p", null, content);
|
|
24
|
+
return nestedAl ? h("span", { role: "paragraph" }, content) : h("p", null, content);
|
|
27
25
|
}
|
|
28
26
|
}
|
|
29
27
|
|
|
30
28
|
class OzonContentDocumentNode {
|
|
31
29
|
constructor() {
|
|
32
|
-
this.name =
|
|
30
|
+
this.name = "#document";
|
|
33
31
|
}
|
|
34
32
|
render(node, { mapNodeToJsx }) {
|
|
35
33
|
return h(Fragment, null, mapNodeToJsx(node.childNodes));
|
|
@@ -38,13 +36,10 @@ class OzonContentDocumentNode {
|
|
|
38
36
|
|
|
39
37
|
class OzonContentExtRefNode {
|
|
40
38
|
constructor() {
|
|
41
|
-
this.name = [
|
|
42
|
-
'ExtRef',
|
|
43
|
-
'ExtIoRef'
|
|
44
|
-
];
|
|
39
|
+
this.name = ["ExtRef", "ExtIoRef"];
|
|
45
40
|
}
|
|
46
41
|
render(node, { mapNodeToJsx }) {
|
|
47
|
-
const href = node.tagName ===
|
|
42
|
+
const href = node.tagName === "ExtIoRef" ? node.getAttribute("href") : node.getAttribute("ref");
|
|
48
43
|
return (h("a", { target: "_blank", rel: "noopener noreferrer", href: href !== null && href !== void 0 ? href : undefined },
|
|
49
44
|
h("span", { class: "sr-only" }, "opent in nieuw venster"),
|
|
50
45
|
mapNodeToJsx(node.childNodes)));
|
|
@@ -54,13 +49,11 @@ class OzonContentExtRefNode {
|
|
|
54
49
|
const Bijschrift = ({ bijschrift, bron, mapNodeToJsx }) => {
|
|
55
50
|
return (h("span", { class: "figuur-bijschrift" },
|
|
56
51
|
bijschrift && bijschrift.inhoud && mapNodeToJsx(bijschrift.inhoud),
|
|
57
|
-
bron &&
|
|
52
|
+
bron && `${bijschrift ? " " : ""}(bron: ${mapNodeToJsx(bron)})`));
|
|
58
53
|
};
|
|
59
54
|
class OzonContentFiguurNode {
|
|
60
55
|
constructor() {
|
|
61
|
-
this.name = [
|
|
62
|
-
'Figuur',
|
|
63
|
-
];
|
|
56
|
+
this.name = ["Figuur"];
|
|
64
57
|
}
|
|
65
58
|
setImageDimensions(imageElement, schaal) {
|
|
66
59
|
const { naturalHeight, naturalWidth } = imageElement;
|
|
@@ -75,45 +68,42 @@ class OzonContentFiguurNode {
|
|
|
75
68
|
render(node, { mapNodeToJsx }) {
|
|
76
69
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
77
70
|
const childNodes = Array.from(node.childNodes);
|
|
78
|
-
const titel = (_a = childNodes.find(n => getNodeName(n) ===
|
|
79
|
-
const bron = (_b = childNodes.find(n => getNodeName(n) ===
|
|
80
|
-
const illustratieNode = childNodes.find(n => getNodeName(n) ===
|
|
81
|
-
const bijschriftNode = childNodes.find(n => getNodeName(n) ===
|
|
71
|
+
const titel = (_a = childNodes.find((n) => getNodeName(n) === "Titel")) === null || _a === void 0 ? void 0 : _a.textContent;
|
|
72
|
+
const bron = (_b = childNodes.find((n) => getNodeName(n) === "Bron")) === null || _b === void 0 ? void 0 : _b.childNodes;
|
|
73
|
+
const illustratieNode = childNodes.find((n) => getNodeName(n) === "Illustratie");
|
|
74
|
+
const bijschriftNode = childNodes.find((n) => getNodeName(n) === "Bijschrift");
|
|
82
75
|
if (illustratieNode instanceof Element) {
|
|
83
76
|
const illustratie = {
|
|
84
|
-
naam: illustratieNode.getAttribute(
|
|
85
|
-
breedte: illustratieNode.getAttribute(
|
|
86
|
-
hoogte: illustratieNode.getAttribute(
|
|
87
|
-
uitlijning: illustratieNode.getAttribute(
|
|
88
|
-
alt: illustratieNode.getAttribute(
|
|
89
|
-
schaal: illustratieNode.getAttribute(
|
|
77
|
+
naam: illustratieNode.getAttribute("naam"),
|
|
78
|
+
breedte: illustratieNode.getAttribute("breedte"),
|
|
79
|
+
hoogte: illustratieNode.getAttribute("hoogte"),
|
|
80
|
+
uitlijning: illustratieNode.getAttribute("uitlijning"),
|
|
81
|
+
alt: illustratieNode.getAttribute("alt"),
|
|
82
|
+
schaal: illustratieNode.getAttribute("schaal"),
|
|
90
83
|
};
|
|
91
|
-
const bijschrift = bijschriftNode instanceof Element
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
84
|
+
const bijschrift = bijschriftNode instanceof Element
|
|
85
|
+
? {
|
|
86
|
+
inhoud: bijschriftNode.childNodes,
|
|
87
|
+
locatie: (_c = bijschriftNode.getAttribute("locatie")) !== null && _c !== void 0 ? _c : "onder",
|
|
88
|
+
}
|
|
95
89
|
: undefined;
|
|
96
|
-
return (h("div", { class: `dso-ozon-figuur ${bijschrift ? `bijschrift-${bijschrift.locatie}` :
|
|
97
|
-
titel &&
|
|
98
|
-
(bijschrift === null || bijschrift === void 0 ? void 0 : bijschrift.locatie) ===
|
|
90
|
+
return (h("div", { class: `dso-ozon-figuur ${bijschrift ? `bijschrift-${bijschrift.locatie}` : "onder"}` },
|
|
91
|
+
titel && h("span", { class: "figuur-titel" }, titel),
|
|
92
|
+
(bijschrift === null || bijschrift === void 0 ? void 0 : bijschrift.locatie) === "boven" && (h(Bijschrift, { bijschrift: bijschrift, bron: bron, mapNodeToJsx: mapNodeToJsx })),
|
|
99
93
|
h("dso-image-overlay", null,
|
|
100
94
|
h("div", { slot: "titel" },
|
|
101
95
|
h("span", null, titel)),
|
|
102
96
|
h("img", { src: (_d = illustratie.naam) !== null && _d !== void 0 ? _d : undefined, alt: (_g = (_f = (_e = illustratie.alt) !== null && _e !== void 0 ? _e : titel) !== null && _f !== void 0 ? _f : illustratie.naam) !== null && _g !== void 0 ? _g : undefined, onLoad: (event) => this.onImageLoad(event, Number(illustratie.schaal)) }),
|
|
103
97
|
h("div", { slot: "bijschrift" },
|
|
104
98
|
h(Bijschrift, { bijschrift: bijschrift, bron: bron, mapNodeToJsx: mapNodeToJsx }))),
|
|
105
|
-
((bijschrift === null || bijschrift === void 0 ? void 0 : bijschrift.locatie) ===
|
|
99
|
+
((bijschrift === null || bijschrift === void 0 ? void 0 : bijschrift.locatie) === "onder" || (!bijschrift && bron)) && (h(Bijschrift, { bijschrift: bijschrift, bron: bron, mapNodeToJsx: mapNodeToJsx }))));
|
|
106
100
|
}
|
|
107
101
|
}
|
|
108
102
|
}
|
|
109
103
|
|
|
110
104
|
class OzonContentInhoudNode {
|
|
111
105
|
constructor() {
|
|
112
|
-
this.name = [
|
|
113
|
-
'Inhoud',
|
|
114
|
-
'ContainerBlocksType',
|
|
115
|
-
'BlockMixedcontentMetMaximaleInlinesMarkersPopupsType'
|
|
116
|
-
];
|
|
106
|
+
this.name = ["Inhoud", "ContainerBlocksType", "BlockMixedcontentMetMaximaleInlinesMarkersPopupsType"];
|
|
117
107
|
}
|
|
118
108
|
render(node, { mapNodeToJsx }) {
|
|
119
109
|
return h("div", { class: "dso-rich-content" }, mapNodeToJsx(node.childNodes));
|
|
@@ -122,20 +112,17 @@ class OzonContentInhoudNode {
|
|
|
122
112
|
|
|
123
113
|
class OzonContentInlineTekstAfbeeldingNode {
|
|
124
114
|
constructor() {
|
|
125
|
-
this.name = [
|
|
126
|
-
'InlineTekstAfbeelding',
|
|
127
|
-
'Illustratie',
|
|
128
|
-
];
|
|
115
|
+
this.name = ["InlineTekstAfbeelding", "Illustratie"];
|
|
129
116
|
}
|
|
130
117
|
render(node) {
|
|
131
118
|
var _a, _b, _c, _d;
|
|
132
|
-
return (h("img", { src: (_a = node.getAttribute(
|
|
119
|
+
return (h("img", { src: (_a = node.getAttribute("naam")) !== null && _a !== void 0 ? _a : undefined, alt: (_b = node.getAttribute("naam")) !== null && _b !== void 0 ? _b : undefined, height: (_c = node.getAttribute("hoogte")) !== null && _c !== void 0 ? _c : undefined, width: (_d = node.getAttribute("breedte")) !== null && _d !== void 0 ? _d : undefined }));
|
|
133
120
|
}
|
|
134
121
|
}
|
|
135
122
|
|
|
136
123
|
class OzonContentOpschriftNode {
|
|
137
124
|
constructor() {
|
|
138
|
-
this.name =
|
|
125
|
+
this.name = "Opschrift";
|
|
139
126
|
}
|
|
140
127
|
render(node, { mapNodeToJsx }) {
|
|
141
128
|
return h(Fragment, null, mapNodeToJsx(node.childNodes));
|
|
@@ -144,18 +131,10 @@ class OzonContentOpschriftNode {
|
|
|
144
131
|
|
|
145
132
|
class OzonContentInlineNodes {
|
|
146
133
|
constructor() {
|
|
147
|
-
this.name = [
|
|
148
|
-
'sub',
|
|
149
|
-
'sup',
|
|
150
|
-
'strong',
|
|
151
|
-
'b',
|
|
152
|
-
'u',
|
|
153
|
-
'i',
|
|
154
|
-
'br'
|
|
155
|
-
];
|
|
134
|
+
this.name = ["sub", "sup", "strong", "b", "u", "i", "br"];
|
|
156
135
|
}
|
|
157
136
|
render(node, { mapNodeToJsx }) {
|
|
158
|
-
if (node.localName ===
|
|
137
|
+
if (node.localName === "br") {
|
|
159
138
|
return h("br", null);
|
|
160
139
|
}
|
|
161
140
|
const Tag = node.localName;
|
|
@@ -165,10 +144,10 @@ class OzonContentInlineNodes {
|
|
|
165
144
|
|
|
166
145
|
class OzonContentIntIoRefNode {
|
|
167
146
|
constructor() {
|
|
168
|
-
this.name =
|
|
147
|
+
this.name = "IntIoRef";
|
|
169
148
|
}
|
|
170
149
|
render(node, { mapNodeToJsx, emitAnchorClick }) {
|
|
171
|
-
const ref = node.getAttribute(
|
|
150
|
+
const ref = node.getAttribute("ref");
|
|
172
151
|
if (!ref) {
|
|
173
152
|
return mapNodeToJsx(node.childNodes);
|
|
174
153
|
}
|
|
@@ -183,7 +162,7 @@ class OzonContentIntIoRefNode {
|
|
|
183
162
|
node: this.name,
|
|
184
163
|
href,
|
|
185
164
|
documentComponent: ref,
|
|
186
|
-
originalEvent: event
|
|
165
|
+
originalEvent: event,
|
|
187
166
|
});
|
|
188
167
|
};
|
|
189
168
|
return (h("a", { href: `#${ref}`, onClick: intRefOnClick }, mapNodeToJsx(node.childNodes)));
|
|
@@ -192,10 +171,10 @@ class OzonContentIntIoRefNode {
|
|
|
192
171
|
|
|
193
172
|
class OzonContentIntRefNode {
|
|
194
173
|
constructor() {
|
|
195
|
-
this.name =
|
|
174
|
+
this.name = "IntRef";
|
|
196
175
|
}
|
|
197
176
|
render(node, { mapNodeToJsx, emitAnchorClick }) {
|
|
198
|
-
const ref = node.getAttribute(
|
|
177
|
+
const ref = node.getAttribute("ref");
|
|
199
178
|
if (!ref) {
|
|
200
179
|
return mapNodeToJsx(node.childNodes);
|
|
201
180
|
}
|
|
@@ -210,7 +189,7 @@ class OzonContentIntRefNode {
|
|
|
210
189
|
node: this.name,
|
|
211
190
|
href,
|
|
212
191
|
documentComponent: ref,
|
|
213
|
-
originalEvent: event
|
|
192
|
+
originalEvent: event,
|
|
214
193
|
});
|
|
215
194
|
};
|
|
216
195
|
return (h("a", { href: `#${ref}`, onClick: intRefOnClick }, mapNodeToJsx(node.childNodes)));
|
|
@@ -219,27 +198,27 @@ class OzonContentIntRefNode {
|
|
|
219
198
|
|
|
220
199
|
class OzonContentNootNode {
|
|
221
200
|
constructor() {
|
|
222
|
-
this.name =
|
|
223
|
-
this.handles = [
|
|
201
|
+
this.name = "Noot";
|
|
202
|
+
this.handles = ["NootNummer"];
|
|
224
203
|
}
|
|
225
204
|
identify() {
|
|
226
|
-
return
|
|
205
|
+
return "Noot";
|
|
227
206
|
}
|
|
228
207
|
render(node, { mapNodeToJsx, state: openNoteId, setState }) {
|
|
229
208
|
var _a, _b;
|
|
230
|
-
const noteId = node.getAttribute(
|
|
209
|
+
const noteId = node.getAttribute("id");
|
|
231
210
|
if (!noteId) {
|
|
232
|
-
console.error(
|
|
211
|
+
console.error("Noot node without id", node);
|
|
233
212
|
return h(Fragment, null);
|
|
234
213
|
}
|
|
235
214
|
const noteControlsId = `dso-ozon-note-${noteId}`;
|
|
236
215
|
const childNodes = Array.from(node.childNodes);
|
|
237
|
-
const nootNummer = (_b = (_a = childNodes.find(n => getNodeName(n) ===
|
|
216
|
+
const nootNummer = (_b = (_a = childNodes.find((n) => getNodeName(n) === "NootNummer")) === null || _a === void 0 ? void 0 : _a.textContent) !== null && _b !== void 0 ? _b : noteId;
|
|
238
217
|
return (h(Fragment, null,
|
|
239
218
|
h("sup", null,
|
|
240
|
-
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 ?
|
|
219
|
+
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)),
|
|
241
220
|
h("dso-tooltip", { active: openNoteId === noteId, for: noteControlsId, stateless: true, descriptive: true },
|
|
242
|
-
h("span", { role: "section" }, mapNodeToJsx(Array.from(node.querySelectorAll(
|
|
221
|
+
h("span", { role: "section" }, mapNodeToJsx(Array.from(node.querySelectorAll(":scope > Al")))))));
|
|
243
222
|
}
|
|
244
223
|
}
|
|
245
224
|
|
|
@@ -251,52 +230,50 @@ function mapColspecs(count, nodeList) {
|
|
|
251
230
|
count,
|
|
252
231
|
columns: elements.map((element, index) => {
|
|
253
232
|
var _a;
|
|
254
|
-
const colNumber = element.getAttribute(
|
|
233
|
+
const colNumber = element.getAttribute("colnum");
|
|
255
234
|
return {
|
|
256
|
-
name: (_a = element.getAttribute(
|
|
235
|
+
name: (_a = element.getAttribute("colname")) !== null && _a !== void 0 ? _a : "",
|
|
257
236
|
number: colNumber ? parseInt(colNumber, 10) : index + 1,
|
|
258
|
-
width: getWidth(totalWidth, element)
|
|
237
|
+
width: getWidth(totalWidth, element),
|
|
259
238
|
};
|
|
260
|
-
})
|
|
239
|
+
}),
|
|
261
240
|
};
|
|
262
241
|
}
|
|
263
242
|
function getTotalWidth(elements) {
|
|
264
243
|
return elements.reduce((totalWidth, element) => {
|
|
265
244
|
var _a, _b;
|
|
266
|
-
const width = (_b = (_a = element.getAttribute(
|
|
245
|
+
const width = (_b = (_a = element.getAttribute("colwidth")) === null || _a === void 0 ? void 0 : _a.replace(/[^0-9]/, "")) !== null && _b !== void 0 ? _b : "";
|
|
267
246
|
const colWidth = parseInt(width, 10);
|
|
268
247
|
return totalWidth + (isNaN(colWidth) ? 0 : colWidth);
|
|
269
248
|
}, 0);
|
|
270
249
|
}
|
|
271
250
|
function getWidth(totalWidth, element) {
|
|
272
|
-
const width = element.getAttribute(
|
|
251
|
+
const width = element.getAttribute("colwidth");
|
|
273
252
|
if (!width) {
|
|
274
253
|
return undefined;
|
|
275
254
|
}
|
|
276
|
-
if (width ===
|
|
277
|
-
return
|
|
255
|
+
if (width === "*") {
|
|
256
|
+
return "100%";
|
|
278
257
|
}
|
|
279
|
-
if (width.includes(
|
|
280
|
-
const colWidth = parseInt(width.replace(/[^0-9]/,
|
|
281
|
-
return `${Math.round(colWidth / totalWidth * 100)}%`;
|
|
258
|
+
if (width.includes("*") || width.match(/^[\d+]$/)) {
|
|
259
|
+
const colWidth = parseInt(width.replace(/[^0-9]/, ""), 10);
|
|
260
|
+
return `${Math.round((colWidth / totalWidth) * 100)}%`;
|
|
282
261
|
}
|
|
283
262
|
return width;
|
|
284
263
|
}
|
|
285
264
|
|
|
286
|
-
const Colgroup = ({ colspecs }) =>
|
|
287
|
-
? (h("colgroup", null, colspecs.columns.map(colspec => (h("col", { style: { width: colspec.width } })))))
|
|
288
|
-
: h(Fragment, null));
|
|
265
|
+
const Colgroup = ({ colspecs }) => colspecs.columns.length > 0 ? (h("colgroup", null, colspecs.columns.map((colspec) => (h("col", { style: { width: colspec.width } }))))) : (h(Fragment, null));
|
|
289
266
|
|
|
290
267
|
function getData(cell) {
|
|
291
268
|
return {
|
|
292
|
-
moreRows: cell.getAttribute(
|
|
293
|
-
nameStart: cell.getAttribute(
|
|
294
|
-
nameEnd: cell.getAttribute(
|
|
269
|
+
moreRows: cell.getAttribute("morerows"),
|
|
270
|
+
nameStart: cell.getAttribute("namest"),
|
|
271
|
+
nameEnd: cell.getAttribute("nameend"),
|
|
295
272
|
};
|
|
296
273
|
}
|
|
297
274
|
function getColspan({ columns }, nameStart, nameEnd) {
|
|
298
|
-
const colspecStart = columns.find(c => c.name === nameStart);
|
|
299
|
-
const colspecEnd = columns.find(c => c.name === nameEnd);
|
|
275
|
+
const colspecStart = columns.find((c) => c.name === nameStart);
|
|
276
|
+
const colspecEnd = columns.find((c) => c.name === nameEnd);
|
|
300
277
|
if (!colspecStart || !colspecEnd) {
|
|
301
278
|
return undefined;
|
|
302
279
|
}
|
|
@@ -307,38 +284,38 @@ const Cell = ({ context: { mapNodeToJsx }, colspecs, cell }) => {
|
|
|
307
284
|
const { moreRows, nameStart, nameEnd } = getData(cell);
|
|
308
285
|
const td = {
|
|
309
286
|
rowSpan: moreRows ? parseInt(moreRows, 10) + 1 : undefined,
|
|
310
|
-
colSpan: colspecs && nameStart && nameEnd ? getColspan(colspecs, nameStart, nameEnd) : undefined
|
|
287
|
+
colSpan: colspecs && nameStart && nameEnd ? getColspan(colspecs, nameStart, nameEnd) : undefined,
|
|
311
288
|
};
|
|
312
|
-
return
|
|
289
|
+
return h("td", Object.assign({}, td), mapNodeToJsx(cell.childNodes));
|
|
313
290
|
};
|
|
314
291
|
|
|
315
292
|
const Rows = ({ context, colspecs, rows }) => {
|
|
316
|
-
return (h(Fragment, null, rows.map(row => (h("tr", null, Array.from(row.children).map(cell => (h(Cell, { cell: cell, colspecs: colspecs, context: context }))))))));
|
|
293
|
+
return (h(Fragment, null, rows.map((row) => (h("tr", null, Array.from(row.children).map((cell) => (h(Cell, { cell: cell, colspecs: colspecs, context: context }))))))));
|
|
317
294
|
};
|
|
318
295
|
|
|
319
296
|
function mapData(node) {
|
|
320
297
|
var _a, _b, _c;
|
|
321
|
-
const tgroup = node.querySelector(
|
|
322
|
-
const colAttribute = (_a = tgroup === null || tgroup === void 0 ? void 0 : tgroup.getAttribute(
|
|
298
|
+
const tgroup = node.querySelector(":scope > tgroup");
|
|
299
|
+
const colAttribute = (_a = tgroup === null || tgroup === void 0 ? void 0 : tgroup.getAttribute("cols")) !== null && _a !== void 0 ? _a : undefined;
|
|
323
300
|
const columnCount = colAttribute ? parseInt(colAttribute, 10) : undefined;
|
|
324
301
|
return {
|
|
325
|
-
caption: (_c = (_b = node.querySelector(
|
|
326
|
-
colspecs: tgroup && columnCount ? mapColspecs(columnCount, tgroup.querySelectorAll(
|
|
327
|
-
headRows: Array.from(node.querySelectorAll(
|
|
328
|
-
bodyRows: Array.from(node.querySelectorAll(
|
|
302
|
+
caption: (_c = (_b = node.querySelector(":scope > title")) === null || _b === void 0 ? void 0 : _b.textContent) !== null && _c !== void 0 ? _c : undefined,
|
|
303
|
+
colspecs: tgroup && columnCount ? mapColspecs(columnCount, tgroup.querySelectorAll(":scope > colspec")) : undefined,
|
|
304
|
+
headRows: Array.from(node.querySelectorAll(":scope > tgroup > thead > row")),
|
|
305
|
+
bodyRows: Array.from(node.querySelectorAll(":scope > tgroup > tbody > row")),
|
|
329
306
|
};
|
|
330
307
|
}
|
|
331
308
|
class OzonContentTableNode {
|
|
332
309
|
constructor() {
|
|
333
|
-
this.name =
|
|
334
|
-
this.handles = [
|
|
310
|
+
this.name = "table";
|
|
311
|
+
this.handles = ["title", "tgroup", "colspec", "thead", "tbody", "row", "cell"];
|
|
335
312
|
}
|
|
336
313
|
render(node, context) {
|
|
337
314
|
const { caption, colspecs, headRows, bodyRows } = mapData(node);
|
|
338
315
|
return (h("dso-table", null,
|
|
339
316
|
h("table", { class: "table" },
|
|
340
|
-
caption &&
|
|
341
|
-
colspecs &&
|
|
317
|
+
caption && h("caption", null, caption),
|
|
318
|
+
colspecs && h(Colgroup, { colspecs: colspecs }),
|
|
342
319
|
headRows.length > 0 && (h("thead", null,
|
|
343
320
|
h(Rows, { rows: headRows, colspecs: colspecs, context: context }))),
|
|
344
321
|
bodyRows.length > 0 && (h("tbody", null,
|
|
@@ -348,7 +325,7 @@ class OzonContentTableNode {
|
|
|
348
325
|
|
|
349
326
|
class OzonContentTextNode {
|
|
350
327
|
constructor() {
|
|
351
|
-
this.name =
|
|
328
|
+
this.name = "#text";
|
|
352
329
|
}
|
|
353
330
|
render(node) {
|
|
354
331
|
return h(Fragment, null, node.textContent);
|
|
@@ -358,32 +335,32 @@ class OzonContentTextNode {
|
|
|
358
335
|
class OzonContentFallbackNode {
|
|
359
336
|
constructor() {
|
|
360
337
|
// This name does not match any elements
|
|
361
|
-
this.name = [
|
|
338
|
+
this.name = ["<fallback>"];
|
|
362
339
|
}
|
|
363
340
|
render(node, { mapNodeToJsx }) {
|
|
364
|
-
return
|
|
341
|
+
return h("span", { class: `fallback od-${getNodeName(node)}` }, mapNodeToJsx(node.childNodes));
|
|
365
342
|
}
|
|
366
343
|
}
|
|
367
344
|
|
|
368
345
|
class OzonContentLijstNode {
|
|
369
346
|
constructor() {
|
|
370
|
-
this.name =
|
|
347
|
+
this.name = "Lijst";
|
|
371
348
|
}
|
|
372
349
|
render(node, { mapNodeToJsx }) {
|
|
373
350
|
var _a;
|
|
374
351
|
const childNodes = Array.from(node.childNodes);
|
|
375
|
-
const aanhef = childNodes.find(n => getNodeName(n) ===
|
|
376
|
-
const sluiting = childNodes.find(n => getNodeName(n) ===
|
|
377
|
-
const listItems = childNodes.filter(n => getNodeName(n) ===
|
|
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");
|
|
378
355
|
return (h("div", { class: "dso-ozon-lijst od-Lijst" },
|
|
379
356
|
aanhef && mapNodeToJsx(aanhef),
|
|
380
|
-
h("ul", { class: (_a = node.getAttribute(
|
|
357
|
+
h("ul", { class: (_a = node.getAttribute("type")) !== null && _a !== void 0 ? _a : "" }, listItems.map((item) => {
|
|
381
358
|
var _a;
|
|
382
359
|
const itemNodes = Array.from(item.childNodes);
|
|
383
|
-
const liNummer = (_a = itemNodes.find(n => getNodeName(n) ===
|
|
360
|
+
const liNummer = (_a = itemNodes.find((n) => getNodeName(n) === "LiNummer")) === null || _a === void 0 ? void 0 : _a.textContent;
|
|
384
361
|
return (h("li", { class: "od-Li" },
|
|
385
362
|
liNummer && h("span", { class: "od-LiNummer" }, liNummer),
|
|
386
|
-
mapNodeToJsx(itemNodes.filter(n => getNodeName(n) !==
|
|
363
|
+
mapNodeToJsx(itemNodes.filter((n) => getNodeName(n) !== "LiNummer"))));
|
|
387
364
|
})),
|
|
388
365
|
sluiting && mapNodeToJsx(sluiting)));
|
|
389
366
|
}
|
|
@@ -421,20 +398,20 @@ class Mapper {
|
|
|
421
398
|
if (this.skip.includes(name)) {
|
|
422
399
|
return undefined;
|
|
423
400
|
}
|
|
424
|
-
return (_a = this.mappers.find(m => {
|
|
401
|
+
return ((_a = this.mappers.find((m) => {
|
|
425
402
|
if (Array.isArray(m.name)) {
|
|
426
403
|
return m.name.includes(name);
|
|
427
404
|
}
|
|
428
405
|
return m.name === name;
|
|
429
|
-
})) !== null && _a !== void 0 ? _a : this.fallbackNode;
|
|
406
|
+
})) !== null && _a !== void 0 ? _a : this.fallbackNode);
|
|
430
407
|
}
|
|
431
408
|
mapNodeToJsx(node, context, path) {
|
|
432
409
|
var _a;
|
|
433
410
|
if (node instanceof NodeList) {
|
|
434
|
-
return h(Fragment, null, Array.from(node).map(n => this.mapNodeToJsx(n, context, path)));
|
|
411
|
+
return h(Fragment, null, Array.from(node).map((n) => this.mapNodeToJsx(n, context, path)));
|
|
435
412
|
}
|
|
436
413
|
if (Array.isArray(node)) {
|
|
437
|
-
return h(Fragment, null, node.map(n => this.mapNodeToJsx(n, context, path)));
|
|
414
|
+
return h(Fragment, null, node.map((n) => this.mapNodeToJsx(n, context, path)));
|
|
438
415
|
}
|
|
439
416
|
const nodeName = getNodeName(node);
|
|
440
417
|
const mapper = this.findMapper(nodeName);
|
|
@@ -443,18 +420,20 @@ class Mapper {
|
|
|
443
420
|
}
|
|
444
421
|
const identity = (_a = mapper.identify) === null || _a === void 0 ? void 0 : _a.call(mapper, node);
|
|
445
422
|
const state = identity ? context.state[identity] : undefined;
|
|
446
|
-
const setState = identity
|
|
423
|
+
const setState = identity
|
|
424
|
+
? (state) => context.setState(Object.assign(Object.assign({}, context.state), { [identity]: state }))
|
|
425
|
+
: undefined;
|
|
447
426
|
return mapper.render(node, {
|
|
448
|
-
mapNodeToJsx: n => this.mapNodeToJsx(n, context, [...path, node]),
|
|
427
|
+
mapNodeToJsx: (n) => this.mapNodeToJsx(n, context, [...path, node]),
|
|
449
428
|
emitAnchorClick: context.emitAnchorClick,
|
|
450
429
|
setState,
|
|
451
430
|
state,
|
|
452
|
-
path
|
|
431
|
+
path,
|
|
453
432
|
});
|
|
454
433
|
}
|
|
455
434
|
transform(xml, context) {
|
|
456
435
|
if (!this.cache || this.cache.xml !== xml) {
|
|
457
|
-
this.cache = { xml, document: this.domParser.parseFromString(xml,
|
|
436
|
+
this.cache = { xml, document: this.domParser.parseFromString(xml, "text/xml") };
|
|
458
437
|
}
|
|
459
438
|
const xmlDocument = this.cache.document;
|
|
460
439
|
return this.mapNodeToJsx(xmlDocument.getRootNode(), context, []);
|
|
@@ -463,39 +442,24 @@ class Mapper {
|
|
|
463
442
|
|
|
464
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}";
|
|
465
444
|
|
|
466
|
-
|
|
445
|
+
const OzonContent = class {
|
|
467
446
|
constructor(hostRef) {
|
|
468
447
|
registerInstance(this, hostRef);
|
|
469
448
|
this.dsoAnchorClick = createEvent(this, "dsoAnchorClick", 7);
|
|
470
449
|
this.dsoClick = createEvent(this, "dsoClick", 7);
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
*/
|
|
450
|
+
this.mapper = new Mapper();
|
|
451
|
+
this.content = undefined;
|
|
474
452
|
this.inline = false;
|
|
475
|
-
/**
|
|
476
|
-
* Marks content as deleted using visual and accessible clues.
|
|
477
|
-
*/
|
|
478
453
|
this.deleted = false;
|
|
479
|
-
/**
|
|
480
|
-
* Visualize the component as interactive. This means that the component will emit `dsoClick` events when the user clicks non-interactive elements.
|
|
481
|
-
*
|
|
482
|
-
* **Do not** use this without an accessible companion element! `interactive` is only
|
|
483
|
-
* meant to ease the use of the companion element for mouse/touch users.
|
|
484
|
-
*
|
|
485
|
-
* * `true`: Interactive anchor-look-alike
|
|
486
|
-
* * `"sub"`: Interactive anchor-look-alike for sub navigation
|
|
487
|
-
* * `false | undefined`: Disabled
|
|
488
|
-
*/
|
|
489
454
|
this.interactive = false;
|
|
490
455
|
this.state = {};
|
|
491
|
-
this.mapper = new Mapper();
|
|
492
456
|
}
|
|
493
457
|
handleHostOnClick(e) {
|
|
494
458
|
// '' is `true`: <dso-ozon-content interactive>
|
|
495
|
-
if (this.interactive !==
|
|
459
|
+
if (this.interactive !== "" && !this.interactive) {
|
|
496
460
|
return;
|
|
497
461
|
}
|
|
498
|
-
const doIt = e.composedPath().find(e => e === this.host || (e instanceof HTMLElement && isTabbable(e))) === this.host;
|
|
462
|
+
const doIt = e.composedPath().find((e) => e === this.host || (e instanceof HTMLElement && isTabbable(e))) === this.host;
|
|
499
463
|
if (doIt) {
|
|
500
464
|
this.dsoClick.emit({ originalEvent: e });
|
|
501
465
|
}
|
|
@@ -504,10 +468,10 @@ let OzonContent = class {
|
|
|
504
468
|
var _a;
|
|
505
469
|
const context = {
|
|
506
470
|
state: this.state,
|
|
507
|
-
setState: state => this.state = state,
|
|
508
|
-
emitAnchorClick: this.dsoAnchorClick.emit
|
|
471
|
+
setState: (state) => (this.state = state),
|
|
472
|
+
emitAnchorClick: this.dsoAnchorClick.emit,
|
|
509
473
|
};
|
|
510
|
-
const transformed = this.mapper.transform((_a = this.content) !== null && _a !== void 0 ? _a :
|
|
474
|
+
const transformed = this.mapper.transform((_a = this.content) !== null && _a !== void 0 ? _a : "", context);
|
|
511
475
|
if (this.deleted) {
|
|
512
476
|
return (h("section", null, h("slot", { name: "prefix" }), h("span", { class: "deleted-start" }, "Begin verwijderd element"), transformed, h("span", { class: "deleted-end" }, "Einde verwijderd element"), h("slot", { name: "suffix" })));
|
|
513
477
|
}
|