@dso-toolkit/core 45.1.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 +11 -9
- 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 +89 -129
- package/dist/cjs/dso-dropdown-menu.cjs.entry.js +9 -21
- package/dist/cjs/dso-header.cjs.entry.js +24 -30
- package/dist/cjs/dso-helpcenter-panel.cjs.entry.js +23 -22
- package/dist/cjs/dso-highlight-box.cjs.entry.js +17 -12
- 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 +135 -145
- package/dist/cjs/dso-pagination.cjs.entry.js +23 -29
- package/dist/cjs/dso-progress-bar.cjs.entry.js +4 -3
- 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 +89 -0
- 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 +4 -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.css +10 -10
- 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.css +2 -2
- 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.css +24 -17
- package/dist/collection/components/header/header.js +210 -246
- package/dist/collection/components/helpcenter-panel/helpcenter-panel.css +18 -2
- package/dist/collection/components/helpcenter-panel/helpcenter-panel.js +94 -90
- package/dist/collection/components/highlight-box/highlight-box.css +1 -1
- 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 +20 -0
- 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 -19
- package/dist/collection/components/ozon-content/nodes/text.node.js +2 -2
- package/dist/collection/components/ozon-content/ozon-content-mapper.js +28 -24
- package/dist/collection/components/ozon-content/ozon-content.css +18 -9
- 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 +119 -126
- package/dist/collection/components/progress-bar/progress-bar.css +1 -1
- 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 +283 -0
- package/dist/collection/components/table/table.interfaces.js +1 -0
- package/dist/collection/components/table/table.js +135 -0
- 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 -84
- 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 +12 -0
- package/dist/custom-elements/index.js +1301 -1328
- 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 +11 -9
- 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 +89 -129
- package/dist/esm/dso-dropdown-menu.entry.js +9 -21
- package/dist/esm/dso-header.entry.js +24 -30
- package/dist/esm/dso-helpcenter-panel.entry.js +23 -22
- package/dist/esm/dso-highlight-box.entry.js +17 -12
- 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 +135 -145
- package/dist/esm/dso-pagination.entry.js +23 -29
- package/dist/esm/dso-progress-bar.entry.js +4 -3
- 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 +85 -0
- 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 +6 -0
- 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 +26 -0
- package/dist/types/components/table/table.interfaces.d.ts +3 -0
- 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 +181 -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/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-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-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-67b11174.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-73bbb9a6.entry.js +0 -1
- package/dist/dso-toolkit/p-8515d157.entry.js +0 -1
- package/dist/dso-toolkit/p-93b53eb7.entry.js +0 -1
- package/dist/dso-toolkit/p-ac0c0eee.entry.js +0 -1
- package/dist/dso-toolkit/p-b1a75b67.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-c339891f.entry.js +0 -1
- package/dist/dso-toolkit/p-d2255268.entry.js +0 -1
- package/dist/dso-toolkit/p-d6192ab8.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-e2e2106e.entry.js +0 -1
- package/dist/dso-toolkit/p-ea1d4c81.entry.js +0 -1
- package/dist/dso-toolkit/p-ec3b8800.entry.js +0 -1
- package/dist/dso-toolkit/p-efd815dc.entry.js +0 -1
- package/dist/dso-toolkit/p-f42d8240.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/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,283 @@
|
|
|
1
|
+
@keyframes slideInFromTop {
|
|
2
|
+
0% {
|
|
3
|
+
opacity: 0;
|
|
4
|
+
}
|
|
5
|
+
100% {
|
|
6
|
+
opacity: 1;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
:host {
|
|
10
|
+
display: block;
|
|
11
|
+
margin-bottom: 24px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.dso-header h2 {
|
|
15
|
+
color: #275937;
|
|
16
|
+
font-size: 1.5rem;
|
|
17
|
+
font-weight: 700;
|
|
18
|
+
}
|
|
19
|
+
.dso-header .dso-close {
|
|
20
|
+
color: #275937;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
:host .dso-modal {
|
|
24
|
+
inset: 0px;
|
|
25
|
+
height: 100%;
|
|
26
|
+
position: fixed;
|
|
27
|
+
z-index: 530;
|
|
28
|
+
}
|
|
29
|
+
:host .dso-modal .dso-dialog {
|
|
30
|
+
background-color: #fff;
|
|
31
|
+
box-shadow: 0 8px 24px 0 rgba(25, 25, 25, 0.4);
|
|
32
|
+
}
|
|
33
|
+
:host .dso-modal .dso-header {
|
|
34
|
+
border-bottom: 1px solid #ccc;
|
|
35
|
+
padding: 16px;
|
|
36
|
+
position: relative;
|
|
37
|
+
}
|
|
38
|
+
:host .dso-modal .dso-header h2 {
|
|
39
|
+
color: #275937;
|
|
40
|
+
margin: 0;
|
|
41
|
+
max-width: calc(100% - 24px);
|
|
42
|
+
}
|
|
43
|
+
:host .dso-modal .dso-header .dso-close {
|
|
44
|
+
background-color: transparent;
|
|
45
|
+
border: 0;
|
|
46
|
+
height: 32px;
|
|
47
|
+
padding: 0;
|
|
48
|
+
position: absolute;
|
|
49
|
+
right: 13px;
|
|
50
|
+
text-align: center;
|
|
51
|
+
top: 16px;
|
|
52
|
+
width: 32px;
|
|
53
|
+
}
|
|
54
|
+
:host .dso-modal .dso-body {
|
|
55
|
+
height: calc(100% - 96px - 1.5rem);
|
|
56
|
+
max-height: calc(70vh - 144px - 1.5em);
|
|
57
|
+
min-height: 1.5rem;
|
|
58
|
+
overflow-x: auto;
|
|
59
|
+
padding: 32px;
|
|
60
|
+
}
|
|
61
|
+
:host .dso-modal .dso-body p {
|
|
62
|
+
margin: 0 0 16px;
|
|
63
|
+
}
|
|
64
|
+
:host .dso-modal .dso-body ul,
|
|
65
|
+
:host .dso-modal .dso-body ol {
|
|
66
|
+
margin-bottom: 16px;
|
|
67
|
+
}
|
|
68
|
+
:host .dso-modal .dso-body ul:not(.list-group):not(.dso-link-list):not(.dso-columns-list),
|
|
69
|
+
:host .dso-modal .dso-body ol:not(.list-group):not(.dso-link-list):not(.dso-columns-list) {
|
|
70
|
+
padding-inline-start: 24px;
|
|
71
|
+
}
|
|
72
|
+
:host .dso-modal .dso-body pre {
|
|
73
|
+
margin: 0 0 16px;
|
|
74
|
+
}
|
|
75
|
+
:host .dso-modal .dso-body blockquote {
|
|
76
|
+
padding: 16px 24px;
|
|
77
|
+
}
|
|
78
|
+
:host .dso-modal .dso-body dso-highlight-box,
|
|
79
|
+
:host .dso-modal .dso-body .dso-highlight-box {
|
|
80
|
+
margin-bottom: 24px;
|
|
81
|
+
}
|
|
82
|
+
:host .dso-modal .dso-body img {
|
|
83
|
+
height: auto;
|
|
84
|
+
max-width: 100%;
|
|
85
|
+
}
|
|
86
|
+
:host .dso-modal .dso-footer {
|
|
87
|
+
min-height: 80px;
|
|
88
|
+
padding: 0 32px 32px;
|
|
89
|
+
text-align: right;
|
|
90
|
+
}
|
|
91
|
+
@media screen and (min-width: 768px) {
|
|
92
|
+
:host .dso-modal {
|
|
93
|
+
bottom: 0;
|
|
94
|
+
height: 100%;
|
|
95
|
+
left: 0;
|
|
96
|
+
position: fixed;
|
|
97
|
+
right: 0;
|
|
98
|
+
top: 0;
|
|
99
|
+
z-index: 530;
|
|
100
|
+
}
|
|
101
|
+
:host .dso-modal .dso-dialog {
|
|
102
|
+
animation: 1s ease-out 0s 1 slideInFromTop;
|
|
103
|
+
margin: auto;
|
|
104
|
+
margin-top: 15vh;
|
|
105
|
+
max-width: 640px;
|
|
106
|
+
opacity: 1;
|
|
107
|
+
}
|
|
108
|
+
:host .dso-modal .dso-footer .btn + .dso-secondary, :host .dso-modal .dso-footer .btn + .btn-default, :host .dso-modal .dso-footer .dso-primary + .dso-secondary, :host .dso-modal .dso-footer .dso-primary + .btn-default, :host .dso-modal .dso-footer .dso-secondary + .dso-secondary, :host .dso-modal .dso-footer .dso-secondary + .btn-default, :host .dso-modal .dso-footer .dso-tertiary + .dso-secondary, :host .dso-modal .dso-footer .dso-tertiary + .btn-default {
|
|
109
|
+
margin-left: 16px;
|
|
110
|
+
}
|
|
111
|
+
:host .dso-modal .dso-footer .btn + .dso-tertiary, :host .dso-modal .dso-footer .btn + .btn-link, :host .dso-modal .dso-footer .dso-primary + .dso-tertiary, :host .dso-modal .dso-footer .dso-primary + .btn-link, :host .dso-modal .dso-footer .dso-secondary + .dso-tertiary, :host .dso-modal .dso-footer .dso-secondary + .btn-link, :host .dso-modal .dso-footer .dso-tertiary + .dso-tertiary, :host .dso-modal .dso-footer .dso-tertiary + .btn-link {
|
|
112
|
+
margin-left: 0;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
@media screen and (max-width: 767px) {
|
|
116
|
+
:host .dso-modal {
|
|
117
|
+
max-width: 100%;
|
|
118
|
+
}
|
|
119
|
+
:host .dso-modal .dso-footer .btn + .btn, :host .dso-modal .dso-footer .btn + .dso-primary, :host .dso-modal .dso-footer .btn + .dso-secondary, :host .dso-modal .dso-footer .btn + .dso-tertiary, :host .dso-modal .dso-footer .dso-primary + .btn, :host .dso-modal .dso-footer .dso-primary + .dso-primary, :host .dso-modal .dso-footer .dso-primary + .dso-secondary, :host .dso-modal .dso-footer .dso-primary + .dso-tertiary, :host .dso-modal .dso-footer .dso-secondary + .btn, :host .dso-modal .dso-footer .dso-secondary + .dso-primary, :host .dso-modal .dso-footer .dso-secondary + .dso-secondary, :host .dso-modal .dso-footer .dso-secondary + .dso-tertiary, :host .dso-modal .dso-footer .dso-tertiary + .btn, :host .dso-modal .dso-footer .dso-tertiary + .dso-primary, :host .dso-modal .dso-footer .dso-tertiary + .dso-secondary, :host .dso-modal .dso-footer .dso-tertiary + .dso-tertiary {
|
|
120
|
+
margin-left: 0;
|
|
121
|
+
}
|
|
122
|
+
:host .dso-modal .dso-footer button {
|
|
123
|
+
text-align: center;
|
|
124
|
+
width: 100%;
|
|
125
|
+
}
|
|
126
|
+
:host .dso-modal .dso-footer button + button {
|
|
127
|
+
margin-top: 8px;
|
|
128
|
+
}
|
|
129
|
+
:host .dso-modal .dso-footer button.dso-tertiary,
|
|
130
|
+
:host .dso-modal .dso-footer button.dso-tertiary span, :host .dso-modal .dso-footer button.btn-link,
|
|
131
|
+
:host .dso-modal .dso-footer button.btn-link span {
|
|
132
|
+
float: none;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.dso-modal .dso-dialog.dso-table-dialog {
|
|
137
|
+
max-width: calc(100% - 2rem);
|
|
138
|
+
}
|
|
139
|
+
@media screen and (max-width: 767px) {
|
|
140
|
+
.dso-modal .dso-dialog.dso-table-dialog {
|
|
141
|
+
max-width: 100%;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
:host([is-responsive]) .dso-table-body {
|
|
146
|
+
border: 1px solid #ccc;
|
|
147
|
+
margin-bottom: 0;
|
|
148
|
+
overflow-y: hidden;
|
|
149
|
+
width: 100%;
|
|
150
|
+
}
|
|
151
|
+
:host([is-responsive]) .dso-table-body.dso-body {
|
|
152
|
+
width: calc(100% - 64px);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.dso-table-utilities {
|
|
156
|
+
align-items: center;
|
|
157
|
+
display: flex;
|
|
158
|
+
justify-content: space-between;
|
|
159
|
+
margin-bottom: 8px;
|
|
160
|
+
}
|
|
161
|
+
.dso-table-utilities .dso-responsive-message {
|
|
162
|
+
margin-bottom: 0;
|
|
163
|
+
}
|
|
164
|
+
.dso-table-utilities .dso-responsive-message:only-child {
|
|
165
|
+
width: 100%;
|
|
166
|
+
}
|
|
167
|
+
.dso-table-utilities .open-modal-button:only-child {
|
|
168
|
+
margin-left: auto;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.dso-responsive-message {
|
|
172
|
+
font-size: 0.8em;
|
|
173
|
+
margin-bottom: 8px;
|
|
174
|
+
position: relative;
|
|
175
|
+
text-align: center;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.dso-tertiary {
|
|
179
|
+
display: inline-block;
|
|
180
|
+
font-size: 1em;
|
|
181
|
+
font-weight: 500;
|
|
182
|
+
margin-bottom: 0;
|
|
183
|
+
text-decoration: none;
|
|
184
|
+
touch-action: manipulation;
|
|
185
|
+
text-align: left;
|
|
186
|
+
user-select: none;
|
|
187
|
+
vertical-align: middle;
|
|
188
|
+
border: 0;
|
|
189
|
+
color: #39870c;
|
|
190
|
+
line-height: 1;
|
|
191
|
+
padding: 0;
|
|
192
|
+
background-color: transparent;
|
|
193
|
+
cursor: pointer;
|
|
194
|
+
}
|
|
195
|
+
.dso-tertiary:focus, .dso-tertiary:focus-visible {
|
|
196
|
+
outline-offset: 2px;
|
|
197
|
+
}
|
|
198
|
+
.dso-tertiary:active {
|
|
199
|
+
outline: 0;
|
|
200
|
+
}
|
|
201
|
+
.dso-tertiary[disabled] {
|
|
202
|
+
color: #afcf9d;
|
|
203
|
+
}
|
|
204
|
+
.dso-tertiary[disabled].dso-spinner-left, .dso-tertiary[disabled].dso-spinner-right {
|
|
205
|
+
color: #39870c;
|
|
206
|
+
}
|
|
207
|
+
.dso-tertiary:not([disabled]):hover {
|
|
208
|
+
color: #676cb0;
|
|
209
|
+
text-decoration: underline;
|
|
210
|
+
text-underline-position: under;
|
|
211
|
+
}
|
|
212
|
+
.dso-tertiary:not([disabled]):active {
|
|
213
|
+
color: #676cb0;
|
|
214
|
+
}
|
|
215
|
+
.dso-tertiary.btn-align {
|
|
216
|
+
line-height: calc(1.5em - 1px);
|
|
217
|
+
padding: 11px 0;
|
|
218
|
+
position: relative;
|
|
219
|
+
}
|
|
220
|
+
.dso-tertiary.dso-spinner-left::before {
|
|
221
|
+
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");
|
|
222
|
+
background-repeat: no-repeat;
|
|
223
|
+
content: "";
|
|
224
|
+
display: inline-block;
|
|
225
|
+
height: 24px;
|
|
226
|
+
vertical-align: middle;
|
|
227
|
+
width: 24px;
|
|
228
|
+
margin-right: 8px;
|
|
229
|
+
}
|
|
230
|
+
.dso-tertiary.dso-spinner-right::after {
|
|
231
|
+
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");
|
|
232
|
+
background-repeat: no-repeat;
|
|
233
|
+
content: "";
|
|
234
|
+
display: inline-block;
|
|
235
|
+
height: 24px;
|
|
236
|
+
vertical-align: middle;
|
|
237
|
+
width: 24px;
|
|
238
|
+
margin-left: 8px;
|
|
239
|
+
}
|
|
240
|
+
.dso-tertiary dso-icon + span:not(.sr-only),
|
|
241
|
+
.dso-tertiary svg.di + span:not(.sr-only),
|
|
242
|
+
.dso-tertiary span:not(.sr-only) + dso-icon,
|
|
243
|
+
.dso-tertiary span:not(.sr-only) + svg.di {
|
|
244
|
+
margin-left: 8px;
|
|
245
|
+
}
|
|
246
|
+
.dso-tertiary svg.di.di-chevron-down + span:not(.sr-only),
|
|
247
|
+
.dso-tertiary svg.di.di-chevron-up + span:not(.sr-only),
|
|
248
|
+
.dso-tertiary span:not(.sr-only) + svg.di.di-chevron-down,
|
|
249
|
+
.dso-tertiary span:not(.sr-only) + svg.di.di-chevron-up {
|
|
250
|
+
margin-left: 4px;
|
|
251
|
+
}
|
|
252
|
+
.dso-tertiary dso-icon[icon=chevron-left] + span:not(.sr-only),
|
|
253
|
+
.dso-tertiary dso-icon[icon=chevron-right] + span:not(.sr-only),
|
|
254
|
+
.dso-tertiary svg.di.di-angle-down + span:not(.sr-only),
|
|
255
|
+
.dso-tertiary svg.di.di-angle-up + span:not(.sr-only),
|
|
256
|
+
.dso-tertiary span:not(.sr-only) + svg.di.di-angle-down,
|
|
257
|
+
.dso-tertiary span:not(.sr-only) + svg.di.di-angle-up,
|
|
258
|
+
.dso-tertiary span:not(.sr-only) + dso-icon[icon=chevron-left],
|
|
259
|
+
.dso-tertiary span:not(.sr-only) + dso-icon[icon=chevron-right] {
|
|
260
|
+
margin-left: 0;
|
|
261
|
+
}
|
|
262
|
+
.dso-tertiary dso-icon,
|
|
263
|
+
.dso-tertiary svg.di,
|
|
264
|
+
.dso-tertiary span {
|
|
265
|
+
vertical-align: middle;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.sr-only {
|
|
269
|
+
position: absolute;
|
|
270
|
+
width: 1px;
|
|
271
|
+
height: 1px;
|
|
272
|
+
padding: 0;
|
|
273
|
+
margin: -1px;
|
|
274
|
+
overflow: hidden;
|
|
275
|
+
clip: rect(0, 0, 0, 0);
|
|
276
|
+
border: 0;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.dso-table-placeholder {
|
|
280
|
+
box-shadow: inset 0 0 0 1px #ccc;
|
|
281
|
+
display: grid;
|
|
282
|
+
place-content: center;
|
|
283
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
import debounce from "debounce";
|
|
3
|
+
import { createFocusTrap } from "focus-trap";
|
|
4
|
+
import { v4 } from "uuid";
|
|
5
|
+
export class Table {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.labelledbyId = v4();
|
|
8
|
+
this.noModal = false;
|
|
9
|
+
this.isResponsive = false;
|
|
10
|
+
this.modalActive = false;
|
|
11
|
+
this.placeholderHeight = undefined;
|
|
12
|
+
}
|
|
13
|
+
startResponsiveBehavior() {
|
|
14
|
+
var _a;
|
|
15
|
+
(_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.observe(this.host);
|
|
16
|
+
}
|
|
17
|
+
componentWillLoad() {
|
|
18
|
+
this.resizeObserver = new ResizeObserver(debounce((entries) => this.setResponsiveTable(entries), 200));
|
|
19
|
+
}
|
|
20
|
+
componentDidLoad() {
|
|
21
|
+
this.startResponsiveBehavior();
|
|
22
|
+
}
|
|
23
|
+
componentDidRender() {
|
|
24
|
+
this.setFocusTrap();
|
|
25
|
+
}
|
|
26
|
+
disconnectedCallback() {
|
|
27
|
+
var _a;
|
|
28
|
+
(_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
29
|
+
}
|
|
30
|
+
render() {
|
|
31
|
+
var _a, _b;
|
|
32
|
+
const caption = (_b = (_a = this.host.querySelector(":scope > table > caption")) === null || _a === void 0 ? void 0 : _a.textContent) === null || _b === void 0 ? void 0 : _b.trim();
|
|
33
|
+
return (h(Host, null, this.modalActive && this.placeholderHeight && (h("div", { class: "dso-table-placeholder", style: { height: `${this.placeholderHeight}px` } })), h("div", { class: { "dso-modal": this.modalActive } }, h("div", Object.assign({ class: { "dso-dialog": this.modalActive, "dso-table-dialog": true }, ref: (element) => (this.focusTrapElement = element) }, (this.modalActive ? { ["aria-labelledby"]: this.labelledbyId, role: "dialog" } : {})), (this.isResponsive || !this.noModal) && (h("div", { class: "dso-table-utilities", style: this.modalActive ? { display: "none" } : undefined }, this.isResponsive && (h("div", { class: "dso-responsive-message" }, h("span", null, "beweeg de tabel van links naar rechts"))), !this.noModal && (h("button", { type: "button", class: "dso-tertiary open-modal-button", ref: (element) => (this.buttonElement = element), onClick: () => this.openModal() }, h("span", { class: "sr-only" }, "tabel ", caption !== null && caption !== void 0 ? caption : "", " "), h("span", null, "vergroten"), h("dso-icon", { icon: "external-link" }))))), this.modalActive && (h("div", { class: "dso-header" }, h("h2", { id: this.labelledbyId, class: { "sr-only": !caption } }, caption || "Uitvergrote tabel dialoog"), h("button", { type: "button", class: "dso-close", onClick: () => this.closeModal() }, h("dso-icon", { icon: "times" }), h("span", { class: "sr-only" }, "Sluiten")))), h("div", { class: { "dso-body": this.modalActive, "dso-table-body": true } }, h("slot", null))))));
|
|
34
|
+
}
|
|
35
|
+
openModal() {
|
|
36
|
+
this.placeholderHeight = this.host.clientHeight;
|
|
37
|
+
document.body.classList.add("dso-modal-open");
|
|
38
|
+
this.modalActive = true;
|
|
39
|
+
}
|
|
40
|
+
closeModal() {
|
|
41
|
+
this.placeholderHeight = undefined;
|
|
42
|
+
document.body.classList.remove("dso-modal-open", "dso-modal-open");
|
|
43
|
+
this.modalActive = false;
|
|
44
|
+
}
|
|
45
|
+
setFocusTrap() {
|
|
46
|
+
var _a, _b;
|
|
47
|
+
if (this.modalActive && this.focusTrapElement && !this.trap) {
|
|
48
|
+
this.trap = createFocusTrap([this.host, this.focusTrapElement], {
|
|
49
|
+
escapeDeactivates: true,
|
|
50
|
+
clickOutsideDeactivates: (e) => {
|
|
51
|
+
if (e instanceof MouseEvent && e.composedPath()[0] === this.focusTrapElement) {
|
|
52
|
+
this.closeModal();
|
|
53
|
+
return false;
|
|
54
|
+
}
|
|
55
|
+
return true;
|
|
56
|
+
},
|
|
57
|
+
setReturnFocus: (_a = this.buttonElement) !== null && _a !== void 0 ? _a : false,
|
|
58
|
+
onDeactivate: () => this.closeModal(),
|
|
59
|
+
tabbableOptions: {
|
|
60
|
+
getShadowRoot: true,
|
|
61
|
+
},
|
|
62
|
+
}).activate();
|
|
63
|
+
}
|
|
64
|
+
else if (!this.modalActive && this.trap) {
|
|
65
|
+
(_b = this.trap) === null || _b === void 0 ? void 0 : _b.deactivate();
|
|
66
|
+
delete this.trap;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
setResponsiveTable([dsoTable]) {
|
|
70
|
+
const tableElement = dsoTable.target.querySelector("table");
|
|
71
|
+
if (dsoTable && tableElement instanceof HTMLTableElement) {
|
|
72
|
+
this.isResponsive =
|
|
73
|
+
Math.floor(tableElement.getBoundingClientRect().width) > Math.floor(dsoTable.contentRect.width);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
static get is() { return "dso-table"; }
|
|
77
|
+
static get encapsulation() { return "shadow"; }
|
|
78
|
+
static get originalStyleUrls() {
|
|
79
|
+
return {
|
|
80
|
+
"$": ["table.scss"]
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
static get styleUrls() {
|
|
84
|
+
return {
|
|
85
|
+
"$": ["table.css"]
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
static get properties() {
|
|
89
|
+
return {
|
|
90
|
+
"noModal": {
|
|
91
|
+
"type": "boolean",
|
|
92
|
+
"mutable": false,
|
|
93
|
+
"complexType": {
|
|
94
|
+
"original": "boolean",
|
|
95
|
+
"resolved": "boolean",
|
|
96
|
+
"references": {}
|
|
97
|
+
},
|
|
98
|
+
"required": false,
|
|
99
|
+
"optional": false,
|
|
100
|
+
"docs": {
|
|
101
|
+
"tags": [],
|
|
102
|
+
"text": "Prevents the table being opened in a modal."
|
|
103
|
+
},
|
|
104
|
+
"attribute": "no-modal",
|
|
105
|
+
"reflect": true,
|
|
106
|
+
"defaultValue": "false"
|
|
107
|
+
},
|
|
108
|
+
"isResponsive": {
|
|
109
|
+
"type": "boolean",
|
|
110
|
+
"mutable": false,
|
|
111
|
+
"complexType": {
|
|
112
|
+
"original": "boolean",
|
|
113
|
+
"resolved": "boolean",
|
|
114
|
+
"references": {}
|
|
115
|
+
},
|
|
116
|
+
"required": false,
|
|
117
|
+
"optional": false,
|
|
118
|
+
"docs": {
|
|
119
|
+
"tags": [],
|
|
120
|
+
"text": "Indicates whether the table is currently horizontally scrollable"
|
|
121
|
+
},
|
|
122
|
+
"attribute": "is-responsive",
|
|
123
|
+
"reflect": true,
|
|
124
|
+
"defaultValue": "false"
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
static get states() {
|
|
129
|
+
return {
|
|
130
|
+
"modalActive": {},
|
|
131
|
+
"placeholderHeight": {}
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
static get elementRef() { return "host"; }
|
|
135
|
+
}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import { h,
|
|
1
|
+
import { h, Fragment } from "@stencil/core";
|
|
2
2
|
export class Toggletip {
|
|
3
3
|
constructor() {
|
|
4
|
-
this.active = false;
|
|
5
|
-
this.label = "Toelichting";
|
|
6
|
-
this.position = "right";
|
|
7
4
|
this.click = () => {
|
|
8
5
|
this.active ? this.close() : this.open();
|
|
9
6
|
};
|
|
@@ -24,102 +21,112 @@ export class Toggletip {
|
|
|
24
21
|
};
|
|
25
22
|
this.keyDownListener = (event) => {
|
|
26
23
|
var _a;
|
|
27
|
-
if (!event.defaultPrevented && event.key
|
|
24
|
+
if (!event.defaultPrevented && event.key === "Escape") {
|
|
28
25
|
this.close();
|
|
29
26
|
(_a = this.infoButton) === null || _a === void 0 ? void 0 : _a.setFocus();
|
|
30
27
|
event.preventDefault();
|
|
31
28
|
}
|
|
32
29
|
return;
|
|
33
30
|
};
|
|
31
|
+
this.active = false;
|
|
32
|
+
this.label = "Toelichting";
|
|
33
|
+
this.position = "right";
|
|
34
|
+
this.small = undefined;
|
|
35
|
+
this.secondary = undefined;
|
|
34
36
|
}
|
|
35
37
|
render() {
|
|
36
|
-
return (h(Fragment, null,
|
|
37
|
-
h("dso-info-button", { id: "toggle", onClick: this.click, label: this.label, active: this.active, secondary: this.secondary, ref: element => this.infoButton = element }),
|
|
38
|
-
h("dso-tooltip", { stateless: true, descriptive: true, for: "toggle", active: this.active, position: this.position, small: this.small },
|
|
39
|
-
h("slot", null))));
|
|
38
|
+
return (h(Fragment, null, h("dso-info-button", { id: "toggle", onClick: this.click, label: this.label, active: this.active, secondary: this.secondary, ref: (element) => (this.infoButton = element) }), h("dso-tooltip", { stateless: true, descriptive: true, for: "toggle", active: this.active, position: this.position, small: this.small }, h("slot", null))));
|
|
40
39
|
}
|
|
41
40
|
static get is() { return "dso-toggletip"; }
|
|
42
41
|
static get encapsulation() { return "shadow"; }
|
|
43
|
-
static get originalStyleUrls() {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
"
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
"original": "\"top\" | \"right\" | \"bottom\" | \"left\"",
|
|
73
|
-
"resolved": "\"bottom\" | \"left\" | \"right\" | \"top\"",
|
|
74
|
-
"references": {}
|
|
75
|
-
},
|
|
76
|
-
"required": false,
|
|
77
|
-
"optional": false,
|
|
78
|
-
"docs": {
|
|
79
|
-
"tags": [],
|
|
80
|
-
"text": ""
|
|
81
|
-
},
|
|
82
|
-
"attribute": "position",
|
|
83
|
-
"reflect": false,
|
|
84
|
-
"defaultValue": "\"right\""
|
|
85
|
-
},
|
|
86
|
-
"small": {
|
|
87
|
-
"type": "boolean",
|
|
88
|
-
"mutable": false,
|
|
89
|
-
"complexType": {
|
|
90
|
-
"original": "boolean",
|
|
91
|
-
"resolved": "boolean | undefined",
|
|
92
|
-
"references": {}
|
|
93
|
-
},
|
|
94
|
-
"required": false,
|
|
95
|
-
"optional": true,
|
|
96
|
-
"docs": {
|
|
97
|
-
"tags": [],
|
|
98
|
-
"text": ""
|
|
42
|
+
static get originalStyleUrls() {
|
|
43
|
+
return {
|
|
44
|
+
"$": ["toggletip.scss"]
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
static get styleUrls() {
|
|
48
|
+
return {
|
|
49
|
+
"$": ["toggletip.css"]
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
static get properties() {
|
|
53
|
+
return {
|
|
54
|
+
"label": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"mutable": false,
|
|
57
|
+
"complexType": {
|
|
58
|
+
"original": "string",
|
|
59
|
+
"resolved": "string",
|
|
60
|
+
"references": {}
|
|
61
|
+
},
|
|
62
|
+
"required": false,
|
|
63
|
+
"optional": false,
|
|
64
|
+
"docs": {
|
|
65
|
+
"tags": [],
|
|
66
|
+
"text": ""
|
|
67
|
+
},
|
|
68
|
+
"attribute": "label",
|
|
69
|
+
"reflect": false,
|
|
70
|
+
"defaultValue": "\"Toelichting\""
|
|
99
71
|
},
|
|
100
|
-
"
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
"
|
|
109
|
-
"
|
|
72
|
+
"position": {
|
|
73
|
+
"type": "string",
|
|
74
|
+
"mutable": false,
|
|
75
|
+
"complexType": {
|
|
76
|
+
"original": "\"top\" | \"right\" | \"bottom\" | \"left\"",
|
|
77
|
+
"resolved": "\"bottom\" | \"left\" | \"right\" | \"top\"",
|
|
78
|
+
"references": {}
|
|
79
|
+
},
|
|
80
|
+
"required": false,
|
|
81
|
+
"optional": false,
|
|
82
|
+
"docs": {
|
|
83
|
+
"tags": [],
|
|
84
|
+
"text": ""
|
|
85
|
+
},
|
|
86
|
+
"attribute": "position",
|
|
87
|
+
"reflect": false,
|
|
88
|
+
"defaultValue": "\"right\""
|
|
110
89
|
},
|
|
111
|
-
"
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
"
|
|
115
|
-
|
|
90
|
+
"small": {
|
|
91
|
+
"type": "boolean",
|
|
92
|
+
"mutable": false,
|
|
93
|
+
"complexType": {
|
|
94
|
+
"original": "boolean",
|
|
95
|
+
"resolved": "boolean | undefined",
|
|
96
|
+
"references": {}
|
|
97
|
+
},
|
|
98
|
+
"required": false,
|
|
99
|
+
"optional": true,
|
|
100
|
+
"docs": {
|
|
101
|
+
"tags": [],
|
|
102
|
+
"text": ""
|
|
103
|
+
},
|
|
104
|
+
"attribute": "small",
|
|
105
|
+
"reflect": false
|
|
116
106
|
},
|
|
117
|
-
"
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
107
|
+
"secondary": {
|
|
108
|
+
"type": "boolean",
|
|
109
|
+
"mutable": false,
|
|
110
|
+
"complexType": {
|
|
111
|
+
"original": "boolean",
|
|
112
|
+
"resolved": "boolean | undefined",
|
|
113
|
+
"references": {}
|
|
114
|
+
},
|
|
115
|
+
"required": false,
|
|
116
|
+
"optional": true,
|
|
117
|
+
"docs": {
|
|
118
|
+
"tags": [],
|
|
119
|
+
"text": ""
|
|
120
|
+
},
|
|
121
|
+
"attribute": "secondary",
|
|
122
|
+
"reflect": false
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
static get states() {
|
|
127
|
+
return {
|
|
128
|
+
"active": {}
|
|
129
|
+
};
|
|
130
|
+
}
|
|
124
131
|
static get elementRef() { return "host"; }
|
|
125
132
|
}
|