@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
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { createFocusTrap } from "focus-trap";
|
|
3
|
+
import { v4 } from "uuid";
|
|
4
|
+
export class Modal {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.ariaId = v4();
|
|
7
|
+
this.hasFooter = undefined;
|
|
8
|
+
this.modalTitle = undefined;
|
|
9
|
+
this.role = "dialog";
|
|
10
|
+
}
|
|
11
|
+
componentWillLoad() {
|
|
12
|
+
this.hasFooter = this.host.querySelector("*[slot = 'footer']") !== null;
|
|
13
|
+
}
|
|
14
|
+
componentDidLoad() {
|
|
15
|
+
document.body.classList.add(Modal.modalOpenClass);
|
|
16
|
+
this.setFocusTrap();
|
|
17
|
+
}
|
|
18
|
+
disconnectedCallback() {
|
|
19
|
+
var _a;
|
|
20
|
+
document.body.classList.remove(Modal.modalOpenClass);
|
|
21
|
+
(_a = this.trap) === null || _a === void 0 ? void 0 : _a.deactivate();
|
|
22
|
+
}
|
|
23
|
+
render() {
|
|
24
|
+
return (h(Host, { class: "dso-modal", role: this.role, "aria-modal": "true", "aria-labelledby": this.ariaId }, h("div", { class: "dso-dialog", role: "document", ref: (element) => (this.dialogElement = element) }, this.modalTitle ? (h("div", { class: "dso-header" }, h("h2", { id: this.ariaId }, this.modalTitle), h("button", { type: "button", class: "dso-close", onClick: (e) => this.dsoClose.emit({ originalEvent: e }) }, h("dso-icon", { icon: "times" }), h("span", { class: "sr-only" }, "Sluiten")))) : (h("span", { class: "sr-only", id: this.ariaId }, "Dialoog")), h("div", { class: "dso-body" }, h("slot", { name: "body" })), this.hasFooter && (h("div", { class: "dso-footer" }, h("slot", { name: "footer" }))))));
|
|
25
|
+
}
|
|
26
|
+
setFocusTrap() {
|
|
27
|
+
if (this.dialogElement && !this.trap) {
|
|
28
|
+
this.trap = createFocusTrap(this.dialogElement, {
|
|
29
|
+
allowOutsideClick: true,
|
|
30
|
+
escapeDeactivates: true,
|
|
31
|
+
tabbableOptions: {
|
|
32
|
+
getShadowRoot: true,
|
|
33
|
+
},
|
|
34
|
+
clickOutsideDeactivates: (e) => {
|
|
35
|
+
if (e instanceof MouseEvent && e.composedPath()[0] === this.host) {
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
return false;
|
|
39
|
+
},
|
|
40
|
+
onDeactivate: () => {
|
|
41
|
+
delete this.trap;
|
|
42
|
+
this.dsoClose.emit({ originalEvent: undefined });
|
|
43
|
+
},
|
|
44
|
+
}).activate();
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
static get is() { return "dso-modal"; }
|
|
48
|
+
static get encapsulation() { return "shadow"; }
|
|
49
|
+
static get originalStyleUrls() {
|
|
50
|
+
return {
|
|
51
|
+
"$": ["modal.scss"]
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
static get styleUrls() {
|
|
55
|
+
return {
|
|
56
|
+
"$": ["modal.css"]
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
static get properties() {
|
|
60
|
+
return {
|
|
61
|
+
"modalTitle": {
|
|
62
|
+
"type": "string",
|
|
63
|
+
"mutable": false,
|
|
64
|
+
"complexType": {
|
|
65
|
+
"original": "string",
|
|
66
|
+
"resolved": "string | undefined",
|
|
67
|
+
"references": {}
|
|
68
|
+
},
|
|
69
|
+
"required": false,
|
|
70
|
+
"optional": true,
|
|
71
|
+
"docs": {
|
|
72
|
+
"tags": [],
|
|
73
|
+
"text": ""
|
|
74
|
+
},
|
|
75
|
+
"attribute": "modal-title",
|
|
76
|
+
"reflect": false
|
|
77
|
+
},
|
|
78
|
+
"role": {
|
|
79
|
+
"type": "string",
|
|
80
|
+
"mutable": false,
|
|
81
|
+
"complexType": {
|
|
82
|
+
"original": "ModalRole",
|
|
83
|
+
"resolved": "\"alert\" | \"alertdialog\" | \"dialog\"",
|
|
84
|
+
"references": {
|
|
85
|
+
"ModalRole": {
|
|
86
|
+
"location": "import",
|
|
87
|
+
"path": "@dso-toolkit/sources"
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"required": false,
|
|
92
|
+
"optional": false,
|
|
93
|
+
"docs": {
|
|
94
|
+
"tags": [],
|
|
95
|
+
"text": "the role for the modal `dialog` | `alert` | `alertdialog` defaults to `dialog`"
|
|
96
|
+
},
|
|
97
|
+
"attribute": "role",
|
|
98
|
+
"reflect": false,
|
|
99
|
+
"defaultValue": "\"dialog\""
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
static get states() {
|
|
104
|
+
return {
|
|
105
|
+
"ariaId": {},
|
|
106
|
+
"hasFooter": {}
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
static get events() {
|
|
110
|
+
return [{
|
|
111
|
+
"method": "dsoClose",
|
|
112
|
+
"name": "dsoClose",
|
|
113
|
+
"bubbles": true,
|
|
114
|
+
"cancelable": true,
|
|
115
|
+
"composed": true,
|
|
116
|
+
"docs": {
|
|
117
|
+
"tags": [],
|
|
118
|
+
"text": ""
|
|
119
|
+
},
|
|
120
|
+
"complexType": {
|
|
121
|
+
"original": "DsoModalCloseEvent",
|
|
122
|
+
"resolved": "DsoModalCloseEvent",
|
|
123
|
+
"references": {
|
|
124
|
+
"DsoModalCloseEvent": {
|
|
125
|
+
"location": "local"
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}];
|
|
130
|
+
}
|
|
131
|
+
static get elementRef() { return "host"; }
|
|
132
|
+
}
|
|
133
|
+
Modal.modalOpenClass = "dso-modal-open";
|
|
@@ -2,8 +2,8 @@ export function getNodeName(node) {
|
|
|
2
2
|
if (node instanceof Element) {
|
|
3
3
|
return node.localName;
|
|
4
4
|
}
|
|
5
|
-
if (node.nodeName.includes(
|
|
6
|
-
return node.nodeName.substring(node.nodeName.indexOf(
|
|
5
|
+
if (node.nodeName.includes(":")) {
|
|
6
|
+
return node.nodeName.substring(node.nodeName.indexOf(":") + 1);
|
|
7
7
|
}
|
|
8
8
|
return node.nodeName;
|
|
9
9
|
}
|
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
import { h } from
|
|
2
|
-
import { getNodeName } from
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { getNodeName } from "../get-node-name.function";
|
|
3
3
|
export class OzonContentAlNode {
|
|
4
4
|
constructor() {
|
|
5
|
-
this.name =
|
|
5
|
+
this.name = "Al";
|
|
6
6
|
}
|
|
7
7
|
render(node, { mapNodeToJsx, path }) {
|
|
8
|
-
const nestedAl = path.some(node => {
|
|
8
|
+
const nestedAl = path.some((node) => {
|
|
9
9
|
const nodeName = getNodeName(node);
|
|
10
|
-
return nodeName ===
|
|
10
|
+
return nodeName === "Al" || nodeName === "Opschrift";
|
|
11
11
|
});
|
|
12
12
|
const content = mapNodeToJsx(node.childNodes);
|
|
13
|
-
return nestedAl
|
|
14
|
-
? h("span", { role: "paragraph" }, content)
|
|
15
|
-
: h("p", null, content);
|
|
13
|
+
return nestedAl ? h("span", { role: "paragraph" }, content) : h("p", null, content);
|
|
16
14
|
}
|
|
17
15
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Fragment, h } from
|
|
1
|
+
import { Fragment, h } from "@stencil/core";
|
|
2
2
|
export class OzonContentDocumentNode {
|
|
3
3
|
constructor() {
|
|
4
|
-
this.name =
|
|
4
|
+
this.name = "#document";
|
|
5
5
|
}
|
|
6
6
|
render(node, { mapNodeToJsx }) {
|
|
7
7
|
return h(Fragment, null, mapNodeToJsx(node.childNodes));
|
|
@@ -1,15 +1,10 @@
|
|
|
1
|
-
import { h } from
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
2
|
export class OzonContentExtRefNode {
|
|
3
3
|
constructor() {
|
|
4
|
-
this.name = [
|
|
5
|
-
'ExtRef',
|
|
6
|
-
'ExtIoRef'
|
|
7
|
-
];
|
|
4
|
+
this.name = ["ExtRef", "ExtIoRef"];
|
|
8
5
|
}
|
|
9
6
|
render(node, { mapNodeToJsx }) {
|
|
10
|
-
const href = node.tagName ===
|
|
11
|
-
return (h("a", { target: "_blank", rel: "noopener noreferrer", href: href !== null && href !== void 0 ? href : undefined },
|
|
12
|
-
h("span", { class: "sr-only" }, "opent in nieuw venster"),
|
|
13
|
-
mapNodeToJsx(node.childNodes)));
|
|
7
|
+
const href = node.tagName === "ExtIoRef" ? node.getAttribute("href") : node.getAttribute("ref");
|
|
8
|
+
return (h("a", { target: "_blank", rel: "noopener noreferrer", href: href !== null && href !== void 0 ? href : undefined }, h("span", { class: "sr-only" }, "opent in nieuw venster"), mapNodeToJsx(node.childNodes)));
|
|
14
9
|
}
|
|
15
10
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { h } from
|
|
2
|
-
import { getNodeName } from
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { getNodeName } from "../get-node-name.function";
|
|
3
3
|
export class OzonContentFallbackNode {
|
|
4
4
|
constructor() {
|
|
5
5
|
// This name does not match any elements
|
|
6
|
-
this.name = [
|
|
6
|
+
this.name = ["<fallback>"];
|
|
7
7
|
}
|
|
8
8
|
render(node, { mapNodeToJsx }) {
|
|
9
|
-
return
|
|
9
|
+
return h("span", { class: `fallback od-${getNodeName(node)}` }, mapNodeToJsx(node.childNodes));
|
|
10
10
|
}
|
|
11
11
|
}
|
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
import { h } from
|
|
2
|
-
import { getNodeName } from
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { getNodeName } from "../get-node-name.function";
|
|
3
3
|
const Bijschrift = ({ bijschrift, bron, mapNodeToJsx }) => {
|
|
4
|
-
return (h("span", { class: "figuur-bijschrift" },
|
|
5
|
-
bijschrift && bijschrift.inhoud && mapNodeToJsx(bijschrift.inhoud),
|
|
6
|
-
bron && (`${bijschrift ? ' ' : ''}(bron: ${mapNodeToJsx(bron)})`)));
|
|
4
|
+
return (h("span", { class: "figuur-bijschrift" }, bijschrift && bijschrift.inhoud && mapNodeToJsx(bijschrift.inhoud), bron && `${bijschrift ? " " : ""}(bron: ${mapNodeToJsx(bron)})`));
|
|
7
5
|
};
|
|
8
6
|
export class OzonContentFiguurNode {
|
|
9
7
|
constructor() {
|
|
10
|
-
this.name = [
|
|
11
|
-
'Figuur',
|
|
12
|
-
];
|
|
8
|
+
this.name = ["Figuur"];
|
|
13
9
|
}
|
|
14
10
|
setImageDimensions(imageElement, schaal) {
|
|
15
11
|
const { naturalHeight, naturalWidth } = imageElement;
|
|
@@ -24,34 +20,26 @@ export class OzonContentFiguurNode {
|
|
|
24
20
|
render(node, { mapNodeToJsx }) {
|
|
25
21
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
26
22
|
const childNodes = Array.from(node.childNodes);
|
|
27
|
-
const titel = (_a = childNodes.find(n => getNodeName(n) ===
|
|
28
|
-
const bron = (_b = childNodes.find(n => getNodeName(n) ===
|
|
29
|
-
const illustratieNode = childNodes.find(n => getNodeName(n) ===
|
|
30
|
-
const bijschriftNode = childNodes.find(n => getNodeName(n) ===
|
|
23
|
+
const titel = (_a = childNodes.find((n) => getNodeName(n) === "Titel")) === null || _a === void 0 ? void 0 : _a.textContent;
|
|
24
|
+
const bron = (_b = childNodes.find((n) => getNodeName(n) === "Bron")) === null || _b === void 0 ? void 0 : _b.childNodes;
|
|
25
|
+
const illustratieNode = childNodes.find((n) => getNodeName(n) === "Illustratie");
|
|
26
|
+
const bijschriftNode = childNodes.find((n) => getNodeName(n) === "Bijschrift");
|
|
31
27
|
if (illustratieNode instanceof Element) {
|
|
32
28
|
const illustratie = {
|
|
33
|
-
naam: illustratieNode.getAttribute(
|
|
34
|
-
breedte: illustratieNode.getAttribute(
|
|
35
|
-
hoogte: illustratieNode.getAttribute(
|
|
36
|
-
uitlijning: illustratieNode.getAttribute(
|
|
37
|
-
alt: illustratieNode.getAttribute(
|
|
38
|
-
schaal: illustratieNode.getAttribute(
|
|
29
|
+
naam: illustratieNode.getAttribute("naam"),
|
|
30
|
+
breedte: illustratieNode.getAttribute("breedte"),
|
|
31
|
+
hoogte: illustratieNode.getAttribute("hoogte"),
|
|
32
|
+
uitlijning: illustratieNode.getAttribute("uitlijning"),
|
|
33
|
+
alt: illustratieNode.getAttribute("alt"),
|
|
34
|
+
schaal: illustratieNode.getAttribute("schaal"),
|
|
39
35
|
};
|
|
40
|
-
const bijschrift = bijschriftNode instanceof Element
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
36
|
+
const bijschrift = bijschriftNode instanceof Element
|
|
37
|
+
? {
|
|
38
|
+
inhoud: bijschriftNode.childNodes,
|
|
39
|
+
locatie: (_c = bijschriftNode.getAttribute("locatie")) !== null && _c !== void 0 ? _c : "onder",
|
|
40
|
+
}
|
|
44
41
|
: undefined;
|
|
45
|
-
return (h("div", { class: `dso-ozon-figuur ${bijschrift ? `bijschrift-${bijschrift.locatie}` :
|
|
46
|
-
titel && (h("span", { class: "figuur-titel" }, titel)),
|
|
47
|
-
(bijschrift === null || bijschrift === void 0 ? void 0 : bijschrift.locatie) === 'boven' && h(Bijschrift, { bijschrift: bijschrift, bron: bron, mapNodeToJsx: mapNodeToJsx }),
|
|
48
|
-
h("dso-image-overlay", null,
|
|
49
|
-
h("div", { slot: "titel" },
|
|
50
|
-
h("span", null, titel)),
|
|
51
|
-
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)) }),
|
|
52
|
-
h("div", { slot: "bijschrift" },
|
|
53
|
-
h(Bijschrift, { bijschrift: bijschrift, bron: bron, mapNodeToJsx: mapNodeToJsx }))),
|
|
54
|
-
((bijschrift === null || bijschrift === void 0 ? void 0 : bijschrift.locatie) === 'onder' || (!bijschrift && bron)) && h(Bijschrift, { bijschrift: bijschrift, bron: bron, mapNodeToJsx: mapNodeToJsx })));
|
|
42
|
+
return (h("div", { class: `dso-ozon-figuur ${bijschrift ? `bijschrift-${bijschrift.locatie}` : "onder"}` }, titel && h("span", { class: "figuur-titel" }, titel), (bijschrift === null || bijschrift === void 0 ? void 0 : bijschrift.locatie) === "boven" && (h(Bijschrift, { bijschrift: bijschrift, bron: bron, mapNodeToJsx: mapNodeToJsx })), h("dso-image-overlay", null, h("div", { slot: "titel" }, h("span", null, titel)), 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)) }), h("div", { slot: "bijschrift" }, h(Bijschrift, { bijschrift: bijschrift, bron: bron, mapNodeToJsx: mapNodeToJsx }))), ((bijschrift === null || bijschrift === void 0 ? void 0 : bijschrift.locatie) === "onder" || (!bijschrift && bron)) && (h(Bijschrift, { bijschrift: bijschrift, bron: bron, mapNodeToJsx: mapNodeToJsx }))));
|
|
55
43
|
}
|
|
56
44
|
}
|
|
57
45
|
}
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
import { h } from
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
2
|
export class OzonContentInhoudNode {
|
|
3
3
|
constructor() {
|
|
4
|
-
this.name = [
|
|
5
|
-
'Inhoud',
|
|
6
|
-
'ContainerBlocksType',
|
|
7
|
-
'BlockMixedcontentMetMaximaleInlinesMarkersPopupsType'
|
|
8
|
-
];
|
|
4
|
+
this.name = ["Inhoud", "ContainerBlocksType", "BlockMixedcontentMetMaximaleInlinesMarkersPopupsType"];
|
|
9
5
|
}
|
|
10
6
|
render(node, { mapNodeToJsx }) {
|
|
11
7
|
return h("div", { class: "dso-rich-content" }, mapNodeToJsx(node.childNodes));
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import { h } from
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
2
|
export class OzonContentInlineTekstAfbeeldingNode {
|
|
3
3
|
constructor() {
|
|
4
|
-
this.name = [
|
|
5
|
-
'InlineTekstAfbeelding',
|
|
6
|
-
'Illustratie',
|
|
7
|
-
];
|
|
4
|
+
this.name = ["InlineTekstAfbeelding", "Illustratie"];
|
|
8
5
|
}
|
|
9
6
|
render(node) {
|
|
10
7
|
var _a, _b, _c, _d;
|
|
11
|
-
return (h("img", { src: (_a = node.getAttribute(
|
|
8
|
+
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 }));
|
|
12
9
|
}
|
|
13
10
|
}
|
|
@@ -1,18 +1,10 @@
|
|
|
1
|
-
import { h } from
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
2
|
export class OzonContentInlineNodes {
|
|
3
3
|
constructor() {
|
|
4
|
-
this.name = [
|
|
5
|
-
'sub',
|
|
6
|
-
'sup',
|
|
7
|
-
'strong',
|
|
8
|
-
'b',
|
|
9
|
-
'u',
|
|
10
|
-
'i',
|
|
11
|
-
'br'
|
|
12
|
-
];
|
|
4
|
+
this.name = ["sub", "sup", "strong", "b", "u", "i", "br"];
|
|
13
5
|
}
|
|
14
6
|
render(node, { mapNodeToJsx }) {
|
|
15
|
-
if (node.localName ===
|
|
7
|
+
if (node.localName === "br") {
|
|
16
8
|
return h("br", null);
|
|
17
9
|
}
|
|
18
10
|
const Tag = node.localName;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { h } from
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
2
|
export class OzonContentIntIoRefNode {
|
|
3
3
|
constructor() {
|
|
4
|
-
this.name =
|
|
4
|
+
this.name = "IntIoRef";
|
|
5
5
|
}
|
|
6
6
|
render(node, { mapNodeToJsx, emitAnchorClick }) {
|
|
7
|
-
const ref = node.getAttribute(
|
|
7
|
+
const ref = node.getAttribute("ref");
|
|
8
8
|
if (!ref) {
|
|
9
9
|
return mapNodeToJsx(node.childNodes);
|
|
10
10
|
}
|
|
@@ -19,7 +19,7 @@ export class OzonContentIntIoRefNode {
|
|
|
19
19
|
node: this.name,
|
|
20
20
|
href,
|
|
21
21
|
documentComponent: ref,
|
|
22
|
-
originalEvent: event
|
|
22
|
+
originalEvent: event,
|
|
23
23
|
});
|
|
24
24
|
};
|
|
25
25
|
return (h("a", { href: `#${ref}`, onClick: intRefOnClick }, mapNodeToJsx(node.childNodes)));
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { h } from
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
2
|
export class OzonContentIntRefNode {
|
|
3
3
|
constructor() {
|
|
4
|
-
this.name =
|
|
4
|
+
this.name = "IntRef";
|
|
5
5
|
}
|
|
6
6
|
render(node, { mapNodeToJsx, emitAnchorClick }) {
|
|
7
|
-
const ref = node.getAttribute(
|
|
7
|
+
const ref = node.getAttribute("ref");
|
|
8
8
|
if (!ref) {
|
|
9
9
|
return mapNodeToJsx(node.childNodes);
|
|
10
10
|
}
|
|
@@ -19,7 +19,7 @@ export class OzonContentIntRefNode {
|
|
|
19
19
|
node: this.name,
|
|
20
20
|
href,
|
|
21
21
|
documentComponent: ref,
|
|
22
|
-
originalEvent: event
|
|
22
|
+
originalEvent: event,
|
|
23
23
|
});
|
|
24
24
|
};
|
|
25
25
|
return (h("a", { href: `#${ref}`, onClick: intRefOnClick }, mapNodeToJsx(node.childNodes)));
|
|
@@ -1,25 +1,20 @@
|
|
|
1
|
-
import { h } from
|
|
2
|
-
import { getNodeName } from
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { getNodeName } from "../get-node-name.function";
|
|
3
3
|
export class OzonContentLijstNode {
|
|
4
4
|
constructor() {
|
|
5
|
-
this.name =
|
|
5
|
+
this.name = "Lijst";
|
|
6
6
|
}
|
|
7
7
|
render(node, { mapNodeToJsx }) {
|
|
8
8
|
var _a;
|
|
9
9
|
const childNodes = Array.from(node.childNodes);
|
|
10
|
-
const aanhef = childNodes.find(n => getNodeName(n) ===
|
|
11
|
-
const sluiting = childNodes.find(n => getNodeName(n) ===
|
|
12
|
-
const listItems = childNodes.filter(n => getNodeName(n) ===
|
|
13
|
-
return (h("div", { class: "dso-ozon-lijst od-Lijst" },
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
return (h("li", { class: "od-Li" },
|
|
20
|
-
liNummer && h("span", { class: "od-LiNummer" }, liNummer),
|
|
21
|
-
mapNodeToJsx(itemNodes.filter(n => getNodeName(n) !== 'LiNummer'))));
|
|
22
|
-
})),
|
|
23
|
-
sluiting && mapNodeToJsx(sluiting)));
|
|
10
|
+
const aanhef = childNodes.find((n) => getNodeName(n) === "Lijstaanhef");
|
|
11
|
+
const sluiting = childNodes.find((n) => getNodeName(n) === "Lijstsluiting");
|
|
12
|
+
const listItems = childNodes.filter((n) => getNodeName(n) === "Li");
|
|
13
|
+
return (h("div", { class: "dso-ozon-lijst od-Lijst" }, aanhef && mapNodeToJsx(aanhef), h("ul", { class: (_a = node.getAttribute("type")) !== null && _a !== void 0 ? _a : "" }, listItems.map((item) => {
|
|
14
|
+
var _a;
|
|
15
|
+
const itemNodes = Array.from(item.childNodes);
|
|
16
|
+
const liNummer = (_a = itemNodes.find((n) => getNodeName(n) === "LiNummer")) === null || _a === void 0 ? void 0 : _a.textContent;
|
|
17
|
+
return (h("li", { class: "od-Li" }, liNummer && h("span", { class: "od-LiNummer" }, liNummer), mapNodeToJsx(itemNodes.filter((n) => getNodeName(n) !== "LiNummer"))));
|
|
18
|
+
})), sluiting && mapNodeToJsx(sluiting)));
|
|
24
19
|
}
|
|
25
20
|
}
|
|
@@ -1,27 +1,23 @@
|
|
|
1
|
-
import { h, Fragment } from
|
|
2
|
-
import { getNodeName } from
|
|
1
|
+
import { h, Fragment } from "@stencil/core";
|
|
2
|
+
import { getNodeName } from "../get-node-name.function";
|
|
3
3
|
export class OzonContentNootNode {
|
|
4
4
|
constructor() {
|
|
5
|
-
this.name =
|
|
6
|
-
this.handles = [
|
|
5
|
+
this.name = "Noot";
|
|
6
|
+
this.handles = ["NootNummer"];
|
|
7
7
|
}
|
|
8
8
|
identify() {
|
|
9
|
-
return
|
|
9
|
+
return "Noot";
|
|
10
10
|
}
|
|
11
11
|
render(node, { mapNodeToJsx, state: openNoteId, setState }) {
|
|
12
12
|
var _a, _b;
|
|
13
|
-
const noteId = node.getAttribute(
|
|
13
|
+
const noteId = node.getAttribute("id");
|
|
14
14
|
if (!noteId) {
|
|
15
|
-
console.error(
|
|
15
|
+
console.error("Noot node without id", node);
|
|
16
16
|
return h(Fragment, null);
|
|
17
17
|
}
|
|
18
18
|
const noteControlsId = `dso-ozon-note-${noteId}`;
|
|
19
19
|
const childNodes = Array.from(node.childNodes);
|
|
20
|
-
const nootNummer = (_b = (_a = childNodes.find(n => getNodeName(n) ===
|
|
21
|
-
return (h(Fragment, null,
|
|
22
|
-
h("sup", null,
|
|
23
|
-
h("button", { type: "button", class: "toggle-note", id: noteControlsId, onClick: () => setState === null || setState === void 0 ? void 0 : setState(openNoteId === noteId ? undefined : noteId), onBlur: () => setState === null || setState === void 0 ? void 0 : setState(undefined), "aria-expanded": openNoteId === noteId ? 'true' : 'false' }, nootNummer)),
|
|
24
|
-
h("dso-tooltip", { active: openNoteId === noteId, for: noteControlsId, stateless: true, descriptive: true },
|
|
25
|
-
h("span", { role: "section" }, mapNodeToJsx(Array.from(node.querySelectorAll(':scope > Al')))))));
|
|
20
|
+
const nootNummer = (_b = (_a = childNodes.find((n) => getNodeName(n) === "NootNummer")) === null || _a === void 0 ? void 0 : _a.textContent) !== null && _b !== void 0 ? _b : noteId;
|
|
21
|
+
return (h(Fragment, null, h("sup", null, 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)), h("dso-tooltip", { active: openNoteId === noteId, for: noteControlsId, stateless: true, descriptive: true }, h("span", { role: "section" }, mapNodeToJsx(Array.from(node.querySelectorAll(":scope > Al")))))));
|
|
26
22
|
}
|
|
27
23
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { h, Fragment } from
|
|
1
|
+
import { h, Fragment } from "@stencil/core";
|
|
2
2
|
export class OzonContentOpschriftNode {
|
|
3
3
|
constructor() {
|
|
4
|
-
this.name =
|
|
4
|
+
this.name = "Opschrift";
|
|
5
5
|
}
|
|
6
6
|
render(node, { mapNodeToJsx }) {
|
|
7
7
|
return h(Fragment, null, mapNodeToJsx(node.childNodes));
|
|
@@ -6,34 +6,34 @@ export function mapColspecs(count, nodeList) {
|
|
|
6
6
|
count,
|
|
7
7
|
columns: elements.map((element, index) => {
|
|
8
8
|
var _a;
|
|
9
|
-
const colNumber = element.getAttribute(
|
|
9
|
+
const colNumber = element.getAttribute("colnum");
|
|
10
10
|
return {
|
|
11
|
-
name: (_a = element.getAttribute(
|
|
11
|
+
name: (_a = element.getAttribute("colname")) !== null && _a !== void 0 ? _a : "",
|
|
12
12
|
number: colNumber ? parseInt(colNumber, 10) : index + 1,
|
|
13
|
-
width: getWidth(totalWidth, element)
|
|
13
|
+
width: getWidth(totalWidth, element),
|
|
14
14
|
};
|
|
15
|
-
})
|
|
15
|
+
}),
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
18
|
function getTotalWidth(elements) {
|
|
19
19
|
return elements.reduce((totalWidth, element) => {
|
|
20
20
|
var _a, _b;
|
|
21
|
-
const width = (_b = (_a = element.getAttribute(
|
|
21
|
+
const width = (_b = (_a = element.getAttribute("colwidth")) === null || _a === void 0 ? void 0 : _a.replace(/[^0-9]/, "")) !== null && _b !== void 0 ? _b : "";
|
|
22
22
|
const colWidth = parseInt(width, 10);
|
|
23
23
|
return totalWidth + (isNaN(colWidth) ? 0 : colWidth);
|
|
24
24
|
}, 0);
|
|
25
25
|
}
|
|
26
26
|
function getWidth(totalWidth, element) {
|
|
27
|
-
const width = element.getAttribute(
|
|
27
|
+
const width = element.getAttribute("colwidth");
|
|
28
28
|
if (!width) {
|
|
29
29
|
return undefined;
|
|
30
30
|
}
|
|
31
|
-
if (width ===
|
|
32
|
-
return
|
|
31
|
+
if (width === "*") {
|
|
32
|
+
return "100%";
|
|
33
33
|
}
|
|
34
|
-
if (width.includes(
|
|
35
|
-
const colWidth = parseInt(width.replace(/[^0-9]/,
|
|
36
|
-
return `${Math.round(colWidth / totalWidth * 100)}%`;
|
|
34
|
+
if (width.includes("*") || width.match(/^[\d+]$/)) {
|
|
35
|
+
const colWidth = parseInt(width.replace(/[^0-9]/, ""), 10);
|
|
36
|
+
return `${Math.round((colWidth / totalWidth) * 100)}%`;
|
|
37
37
|
}
|
|
38
38
|
return width;
|
|
39
39
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { OzonContentTableNode } from
|
|
1
|
+
export { OzonContentTableNode } from "./table.node";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { h } from
|
|
1
|
+
import { h } from "@stencil/core/internal";
|
|
2
2
|
function getData(cell) {
|
|
3
3
|
return {
|
|
4
|
-
moreRows: cell.getAttribute(
|
|
5
|
-
nameStart: cell.getAttribute(
|
|
6
|
-
nameEnd: cell.getAttribute(
|
|
4
|
+
moreRows: cell.getAttribute("morerows"),
|
|
5
|
+
nameStart: cell.getAttribute("namest"),
|
|
6
|
+
nameEnd: cell.getAttribute("nameend"),
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
9
|
function getColspan({ columns }, nameStart, nameEnd) {
|
|
10
|
-
const colspecStart = columns.find(c => c.name === nameStart);
|
|
11
|
-
const colspecEnd = columns.find(c => c.name === nameEnd);
|
|
10
|
+
const colspecStart = columns.find((c) => c.name === nameStart);
|
|
11
|
+
const colspecEnd = columns.find((c) => c.name === nameEnd);
|
|
12
12
|
if (!colspecStart || !colspecEnd) {
|
|
13
13
|
return undefined;
|
|
14
14
|
}
|
|
@@ -19,7 +19,7 @@ export const Cell = ({ context: { mapNodeToJsx }, colspecs, cell }) => {
|
|
|
19
19
|
const { moreRows, nameStart, nameEnd } = getData(cell);
|
|
20
20
|
const td = {
|
|
21
21
|
rowSpan: moreRows ? parseInt(moreRows, 10) + 1 : undefined,
|
|
22
|
-
colSpan: colspecs && nameStart && nameEnd ? getColspan(colspecs, nameStart, nameEnd) : undefined
|
|
22
|
+
colSpan: colspecs && nameStart && nameEnd ? getColspan(colspecs, nameStart, nameEnd) : undefined,
|
|
23
23
|
};
|
|
24
|
-
return
|
|
24
|
+
return h("td", Object.assign({}, td), mapNodeToJsx(cell.childNodes));
|
|
25
25
|
};
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import { Fragment, h } from
|
|
2
|
-
export const Colgroup = ({ colspecs }) =>
|
|
3
|
-
? (h("colgroup", null, colspecs.columns.map(colspec => (h("col", { style: { width: colspec.width } })))))
|
|
4
|
-
: h(Fragment, null));
|
|
1
|
+
import { Fragment, h } from "@stencil/core";
|
|
2
|
+
export const Colgroup = ({ colspecs }) => colspecs.columns.length > 0 ? (h("colgroup", null, colspecs.columns.map((colspec) => (h("col", { style: { width: colspec.width } }))))) : (h(Fragment, null));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Fragment, h } from
|
|
2
|
-
import { Cell } from
|
|
1
|
+
import { Fragment, h } from "@stencil/core";
|
|
2
|
+
import { Cell } from "./table-cell";
|
|
3
3
|
export const Rows = ({ context, colspecs, rows }) => {
|
|
4
|
-
return (h(Fragment, null, rows.map(row => (h("tr", null, Array.from(row.children).map(cell => (h(Cell, { cell: cell, colspecs: colspecs, context: context }))))))));
|
|
4
|
+
return (h(Fragment, null, rows.map((row) => (h("tr", null, Array.from(row.children).map((cell) => (h(Cell, { cell: cell, colspecs: colspecs, context: context }))))))));
|
|
5
5
|
};
|