@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
|
@@ -1,192 +1,197 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import air from
|
|
3
|
-
import angleDown from
|
|
4
|
-
import angleLeft from
|
|
5
|
-
import angleRight from
|
|
6
|
-
import angleUp from
|
|
7
|
-
import balloon from
|
|
8
|
-
import bars from
|
|
9
|
-
import buildings from
|
|
10
|
-
import calendar from
|
|
11
|
-
import call from
|
|
12
|
-
import caretDown from
|
|
13
|
-
import check from
|
|
14
|
-
import checkCircle from
|
|
15
|
-
import chevronDown from
|
|
16
|
-
import chevronLeft from
|
|
17
|
-
import chevronRight from
|
|
18
|
-
import chevronUp from
|
|
19
|
-
import circleNotch from
|
|
20
|
-
import clock from
|
|
21
|
-
import copy from
|
|
22
|
-
import crown from
|
|
23
|
-
import cultural from
|
|
24
|
-
import document from
|
|
25
|
-
import download from
|
|
26
|
-
import email from
|
|
27
|
-
import energy from
|
|
28
|
-
import environment from
|
|
29
|
-
import exclamation from
|
|
30
|
-
import externalLink from
|
|
31
|
-
import eyeSlash from
|
|
32
|
-
import eye from
|
|
33
|
-
import filter from
|
|
34
|
-
import forbidden from
|
|
35
|
-
import health from
|
|
36
|
-
import helpActive from
|
|
37
|
-
import help from
|
|
38
|
-
import house from
|
|
39
|
-
import infoActive from
|
|
40
|
-
import infoI from
|
|
41
|
-
import info from
|
|
42
|
-
import infrastructure from
|
|
43
|
-
import label from
|
|
44
|
-
import land from
|
|
45
|
-
import landscape from
|
|
46
|
-
import layers from
|
|
47
|
-
import location from
|
|
48
|
-
import locationOutline from
|
|
49
|
-
import locationSearch from
|
|
50
|
-
import lock from
|
|
51
|
-
import magnet from
|
|
52
|
-
import
|
|
53
|
-
import
|
|
54
|
-
import
|
|
55
|
-
import
|
|
56
|
-
import
|
|
57
|
-
import
|
|
58
|
-
import
|
|
59
|
-
import
|
|
60
|
-
import
|
|
61
|
-
import
|
|
62
|
-
import
|
|
63
|
-
import
|
|
64
|
-
import
|
|
65
|
-
import
|
|
66
|
-
import
|
|
67
|
-
import
|
|
68
|
-
import
|
|
69
|
-
import
|
|
70
|
-
import
|
|
71
|
-
import
|
|
72
|
-
import
|
|
73
|
-
import
|
|
74
|
-
import
|
|
75
|
-
import
|
|
76
|
-
import
|
|
77
|
-
import
|
|
78
|
-
import
|
|
79
|
-
import
|
|
80
|
-
import
|
|
81
|
-
import
|
|
82
|
-
import
|
|
83
|
-
import
|
|
84
|
-
import
|
|
85
|
-
import
|
|
86
|
-
import
|
|
87
|
-
import
|
|
88
|
-
import
|
|
89
|
-
import
|
|
90
|
-
import
|
|
91
|
-
import
|
|
92
|
-
import
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import air from "@dso-toolkit/sources/src/icons/air.svg";
|
|
3
|
+
import angleDown from "@dso-toolkit/sources/src/icons/angle-down.svg";
|
|
4
|
+
import angleLeft from "@dso-toolkit/sources/src/icons/angle-left.svg";
|
|
5
|
+
import angleRight from "@dso-toolkit/sources/src/icons/angle-right.svg";
|
|
6
|
+
import angleUp from "@dso-toolkit/sources/src/icons/angle-up.svg";
|
|
7
|
+
import balloon from "@dso-toolkit/sources/src/icons/balloon.svg";
|
|
8
|
+
import bars from "@dso-toolkit/sources/src/icons/bars.svg";
|
|
9
|
+
import buildings from "@dso-toolkit/sources/src/icons/buildings.svg";
|
|
10
|
+
import calendar from "@dso-toolkit/sources/src/icons/calendar.svg";
|
|
11
|
+
import call from "@dso-toolkit/sources/src/icons/call.svg";
|
|
12
|
+
import caretDown from "@dso-toolkit/sources/src/icons/caret-down.svg";
|
|
13
|
+
import check from "@dso-toolkit/sources/src/icons/check.svg";
|
|
14
|
+
import checkCircle from "@dso-toolkit/sources/src/icons/check-circle.svg";
|
|
15
|
+
import chevronDown from "@dso-toolkit/sources/src/icons/chevron-down.svg";
|
|
16
|
+
import chevronLeft from "@dso-toolkit/sources/src/icons/chevron-left.svg";
|
|
17
|
+
import chevronRight from "@dso-toolkit/sources/src/icons/chevron-right.svg";
|
|
18
|
+
import chevronUp from "@dso-toolkit/sources/src/icons/chevron-up.svg";
|
|
19
|
+
import circleNotch from "@dso-toolkit/sources/src/icons/circle-notch.svg";
|
|
20
|
+
import clock from "@dso-toolkit/sources/src/icons/clock.svg";
|
|
21
|
+
import copy from "@dso-toolkit/sources/src/icons/copy.svg";
|
|
22
|
+
import crown from "@dso-toolkit/sources/src/icons/crown.svg";
|
|
23
|
+
import cultural from "@dso-toolkit/sources/src/icons/cultural.svg";
|
|
24
|
+
import document from "@dso-toolkit/sources/src/icons/document.svg";
|
|
25
|
+
import download from "@dso-toolkit/sources/src/icons/download.svg";
|
|
26
|
+
import email from "@dso-toolkit/sources/src/icons/email.svg";
|
|
27
|
+
import energy from "@dso-toolkit/sources/src/icons/energy.svg";
|
|
28
|
+
import environment from "@dso-toolkit/sources/src/icons/environment.svg";
|
|
29
|
+
import exclamation from "@dso-toolkit/sources/src/icons/exclamation.svg";
|
|
30
|
+
import externalLink from "@dso-toolkit/sources/src/icons/external-link.svg";
|
|
31
|
+
import eyeSlash from "@dso-toolkit/sources/src/icons/eye-slash.svg";
|
|
32
|
+
import eye from "@dso-toolkit/sources/src/icons/eye.svg";
|
|
33
|
+
import filter from "@dso-toolkit/sources/src/icons/filter.svg";
|
|
34
|
+
import forbidden from "@dso-toolkit/sources/src/icons/forbidden.svg";
|
|
35
|
+
import health from "@dso-toolkit/sources/src/icons/health.svg";
|
|
36
|
+
import helpActive from "@dso-toolkit/sources/src/icons/help-active.svg";
|
|
37
|
+
import help from "@dso-toolkit/sources/src/icons/help.svg";
|
|
38
|
+
import house from "@dso-toolkit/sources/src/icons/house.svg";
|
|
39
|
+
import infoActive from "@dso-toolkit/sources/src/icons/info-active.svg";
|
|
40
|
+
import infoI from "@dso-toolkit/sources/src/icons/info-i.svg";
|
|
41
|
+
import info from "@dso-toolkit/sources/src/icons/info.svg";
|
|
42
|
+
import infrastructure from "@dso-toolkit/sources/src/icons/infrastructure.svg";
|
|
43
|
+
import label from "@dso-toolkit/sources/src/icons/label.svg";
|
|
44
|
+
import land from "@dso-toolkit/sources/src/icons/land.svg";
|
|
45
|
+
import landscape from "@dso-toolkit/sources/src/icons/landscape.svg";
|
|
46
|
+
import layers from "@dso-toolkit/sources/src/icons/layers.svg";
|
|
47
|
+
import location from "@dso-toolkit/sources/src/icons/location.svg";
|
|
48
|
+
import locationOutline from "@dso-toolkit/sources/src/icons/location-outline.svg";
|
|
49
|
+
import locationSearch from "@dso-toolkit/sources/src/icons/location-search.svg";
|
|
50
|
+
import lock from "@dso-toolkit/sources/src/icons/lock.svg";
|
|
51
|
+
import magnet from "@dso-toolkit/sources/src/icons/magnet.svg";
|
|
52
|
+
import mapLayers from "@dso-toolkit/sources/src/icons/map-layers.svg";
|
|
53
|
+
import mapLocation from "@dso-toolkit/sources/src/icons/map-location.svg";
|
|
54
|
+
import marker from "@dso-toolkit/sources/src/icons/marker.svg";
|
|
55
|
+
import measurement from "@dso-toolkit/sources/src/icons/measurement.svg";
|
|
56
|
+
import minusSquare from "@dso-toolkit/sources/src/icons/minus-square.svg";
|
|
57
|
+
import minus from "@dso-toolkit/sources/src/icons/minus.svg";
|
|
58
|
+
import more from "@dso-toolkit/sources/src/icons/more.svg";
|
|
59
|
+
import municipality from "@dso-toolkit/sources/src/icons/municipality.svg";
|
|
60
|
+
import nature from "@dso-toolkit/sources/src/icons/nature.svg";
|
|
61
|
+
import newWindow from "@dso-toolkit/sources/src/icons/new-window.svg";
|
|
62
|
+
import paperclip from "@dso-toolkit/sources/src/icons/paperclip.svg";
|
|
63
|
+
import parking from "@dso-toolkit/sources/src/icons/parking.svg";
|
|
64
|
+
import pencil from "@dso-toolkit/sources/src/icons/pencil.svg";
|
|
65
|
+
import pin from "@dso-toolkit/sources/src/icons/pin.svg";
|
|
66
|
+
import pinOutline from "@dso-toolkit/sources/src/icons/pin-outline.svg";
|
|
67
|
+
import plusSquare from "@dso-toolkit/sources/src/icons/plus-square.svg";
|
|
68
|
+
import plus from "@dso-toolkit/sources/src/icons/plus.svg";
|
|
69
|
+
import print from "@dso-toolkit/sources/src/icons/print.svg";
|
|
70
|
+
import procedures from "@dso-toolkit/sources/src/icons/procedures.svg";
|
|
71
|
+
import redo from "@dso-toolkit/sources/src/icons/redo.svg";
|
|
72
|
+
import safety from "@dso-toolkit/sources/src/icons/safety.svg";
|
|
73
|
+
import search from "@dso-toolkit/sources/src/icons/search.svg";
|
|
74
|
+
import scale from "@dso-toolkit/sources/src/icons/scale.svg";
|
|
75
|
+
import sitemap from "@dso-toolkit/sources/src/icons/sitemap.svg";
|
|
76
|
+
import soil from "@dso-toolkit/sources/src/icons/soil.svg";
|
|
77
|
+
import sortAscending from "@dso-toolkit/sources/src/icons/sort-ascending.svg";
|
|
78
|
+
import sortDescending from "@dso-toolkit/sources/src/icons/sort-descending.svg";
|
|
79
|
+
import sort from "@dso-toolkit/sources/src/icons/sort.svg";
|
|
80
|
+
import sound from "@dso-toolkit/sources/src/icons/sound.svg";
|
|
81
|
+
import statusDanger from "@dso-toolkit/sources/src/icons/status-danger.svg";
|
|
82
|
+
import statusInfo from "@dso-toolkit/sources/src/icons/status-info.svg";
|
|
83
|
+
import statusSuccess from "@dso-toolkit/sources/src/icons/status-success.svg";
|
|
84
|
+
import statusWarning from "@dso-toolkit/sources/src/icons/status-warning.svg";
|
|
85
|
+
import table from "@dso-toolkit/sources/src/icons/table.svg";
|
|
86
|
+
import times from "@dso-toolkit/sources/src/icons/times.svg";
|
|
87
|
+
import trash from "@dso-toolkit/sources/src/icons/trash.svg";
|
|
88
|
+
import undo from "@dso-toolkit/sources/src/icons/undo.svg";
|
|
89
|
+
import userLine from "@dso-toolkit/sources/src/icons/user-line.svg";
|
|
90
|
+
import user from "@dso-toolkit/sources/src/icons/user.svg";
|
|
91
|
+
import users from "@dso-toolkit/sources/src/icons/users.svg";
|
|
92
|
+
import water from "@dso-toolkit/sources/src/icons/water.svg";
|
|
93
|
+
import wipWip from "@dso-toolkit/sources/src/icons/wip-wip.svg";
|
|
93
94
|
const icons = [
|
|
94
|
-
{ alias:
|
|
95
|
-
{ alias:
|
|
96
|
-
{ alias:
|
|
97
|
-
{ alias:
|
|
98
|
-
{ alias:
|
|
99
|
-
{ alias:
|
|
100
|
-
{ alias:
|
|
101
|
-
{ alias:
|
|
102
|
-
{ alias:
|
|
103
|
-
{ alias:
|
|
104
|
-
{ alias:
|
|
105
|
-
{ alias:
|
|
106
|
-
{ alias:
|
|
107
|
-
{ alias:
|
|
108
|
-
{ alias:
|
|
109
|
-
{ alias:
|
|
110
|
-
{ alias:
|
|
111
|
-
{ alias:
|
|
112
|
-
{ alias:
|
|
113
|
-
{ alias:
|
|
114
|
-
{ alias:
|
|
115
|
-
{ alias:
|
|
116
|
-
{ alias:
|
|
117
|
-
{ alias:
|
|
118
|
-
{ alias:
|
|
119
|
-
{ alias:
|
|
120
|
-
{ alias:
|
|
121
|
-
{ alias:
|
|
122
|
-
{ alias:
|
|
123
|
-
{ alias:
|
|
124
|
-
{ alias:
|
|
125
|
-
{ alias:
|
|
126
|
-
{ alias:
|
|
127
|
-
{ alias:
|
|
128
|
-
{ alias:
|
|
129
|
-
{ alias:
|
|
130
|
-
{ alias:
|
|
131
|
-
{ alias:
|
|
132
|
-
{ alias:
|
|
133
|
-
{ alias:
|
|
134
|
-
{ alias:
|
|
135
|
-
{ alias:
|
|
136
|
-
{ alias:
|
|
137
|
-
{ alias:
|
|
138
|
-
{ alias:
|
|
139
|
-
{ alias:
|
|
140
|
-
{ alias:
|
|
141
|
-
{ alias:
|
|
142
|
-
{ alias:
|
|
143
|
-
{ alias:
|
|
144
|
-
{ alias:
|
|
145
|
-
{ alias:
|
|
146
|
-
{ alias:
|
|
147
|
-
{ alias:
|
|
148
|
-
{ alias:
|
|
149
|
-
{ alias:
|
|
150
|
-
{ alias:
|
|
151
|
-
{ alias:
|
|
152
|
-
{ alias:
|
|
153
|
-
{ alias:
|
|
154
|
-
{ alias:
|
|
155
|
-
{ alias:
|
|
156
|
-
{ alias:
|
|
157
|
-
{ alias:
|
|
158
|
-
{ alias:
|
|
159
|
-
{ alias:
|
|
160
|
-
{ alias:
|
|
161
|
-
{ alias:
|
|
162
|
-
{ alias:
|
|
163
|
-
{ alias:
|
|
164
|
-
{ alias:
|
|
165
|
-
{ alias:
|
|
166
|
-
{ alias:
|
|
167
|
-
{ alias:
|
|
168
|
-
{ alias:
|
|
169
|
-
{ alias:
|
|
170
|
-
{ alias:
|
|
171
|
-
{ alias:
|
|
172
|
-
{ alias:
|
|
173
|
-
{ alias:
|
|
174
|
-
{ alias:
|
|
175
|
-
{ alias:
|
|
176
|
-
{ alias:
|
|
177
|
-
{ alias:
|
|
178
|
-
{ alias:
|
|
179
|
-
{ alias:
|
|
180
|
-
{ alias:
|
|
181
|
-
{ alias:
|
|
182
|
-
{ alias:
|
|
183
|
-
{ alias:
|
|
184
|
-
{ alias:
|
|
95
|
+
{ alias: "air", svg: air },
|
|
96
|
+
{ alias: "angle-down", svg: angleDown },
|
|
97
|
+
{ alias: "angle-left", svg: angleLeft },
|
|
98
|
+
{ alias: "angle-right", svg: angleRight },
|
|
99
|
+
{ alias: "angle-up", svg: angleUp },
|
|
100
|
+
{ alias: "balloon", svg: balloon },
|
|
101
|
+
{ alias: "bars", svg: bars },
|
|
102
|
+
{ alias: "buildings", svg: buildings },
|
|
103
|
+
{ alias: "calendar", svg: calendar },
|
|
104
|
+
{ alias: "call", svg: call },
|
|
105
|
+
{ alias: "caret-down", svg: caretDown },
|
|
106
|
+
{ alias: "check", svg: check },
|
|
107
|
+
{ alias: "check-circle", svg: checkCircle },
|
|
108
|
+
{ alias: "chevron-down", svg: chevronDown },
|
|
109
|
+
{ alias: "chevron-left", svg: chevronLeft },
|
|
110
|
+
{ alias: "chevron-right", svg: chevronRight },
|
|
111
|
+
{ alias: "chevron-up", svg: chevronUp },
|
|
112
|
+
{ alias: "circle-notch", svg: circleNotch },
|
|
113
|
+
{ alias: "clock", svg: clock },
|
|
114
|
+
{ alias: "copy", svg: copy },
|
|
115
|
+
{ alias: "crown", svg: crown },
|
|
116
|
+
{ alias: "cultural", svg: cultural },
|
|
117
|
+
{ alias: "document", svg: document },
|
|
118
|
+
{ alias: "download", svg: download },
|
|
119
|
+
{ alias: "email", svg: email },
|
|
120
|
+
{ alias: "energy", svg: energy },
|
|
121
|
+
{ alias: "environment", svg: environment },
|
|
122
|
+
{ alias: "exclamation", svg: exclamation },
|
|
123
|
+
{ alias: "external-link", svg: externalLink },
|
|
124
|
+
{ alias: "eye-slash", svg: eyeSlash },
|
|
125
|
+
{ alias: "eye", svg: eye },
|
|
126
|
+
{ alias: "filter", svg: filter },
|
|
127
|
+
{ alias: "forbidden", svg: forbidden },
|
|
128
|
+
{ alias: "health", svg: health },
|
|
129
|
+
{ alias: "help-active", svg: helpActive },
|
|
130
|
+
{ alias: "help", svg: help },
|
|
131
|
+
{ alias: "house", svg: house },
|
|
132
|
+
{ alias: "info-active", svg: infoActive },
|
|
133
|
+
{ alias: "info-i", svg: infoI },
|
|
134
|
+
{ alias: "info", svg: info },
|
|
135
|
+
{ alias: "infrastructure", svg: infrastructure },
|
|
136
|
+
{ alias: "label", svg: label },
|
|
137
|
+
{ alias: "land", svg: land },
|
|
138
|
+
{ alias: "landscape", svg: landscape },
|
|
139
|
+
{ alias: "layers", svg: layers },
|
|
140
|
+
{ alias: "location", svg: location },
|
|
141
|
+
{ alias: "location-outline", svg: locationOutline },
|
|
142
|
+
{ alias: "location-search", svg: locationSearch },
|
|
143
|
+
{ alias: "lock", svg: lock },
|
|
144
|
+
{ alias: "magnet", svg: magnet },
|
|
145
|
+
{ alias: "map-layers", svg: mapLayers },
|
|
146
|
+
{ alias: "map-location", svg: mapLocation },
|
|
147
|
+
{ alias: "marker", svg: marker },
|
|
148
|
+
{ alias: "measurement", svg: measurement },
|
|
149
|
+
{ alias: "minus-square", svg: minusSquare },
|
|
150
|
+
{ alias: "minus", svg: minus },
|
|
151
|
+
{ alias: "more", svg: more },
|
|
152
|
+
{ alias: "municipality", svg: municipality },
|
|
153
|
+
{ alias: "nature", svg: nature },
|
|
154
|
+
{ alias: "new-window", svg: newWindow },
|
|
155
|
+
{ alias: "paperclip", svg: paperclip },
|
|
156
|
+
{ alias: "parking", svg: parking },
|
|
157
|
+
{ alias: "pencil", svg: pencil },
|
|
158
|
+
{ alias: "pin", svg: pin },
|
|
159
|
+
{ alias: "pin-outline", svg: pinOutline },
|
|
160
|
+
{ alias: "plus-square", svg: plusSquare },
|
|
161
|
+
{ alias: "plus", svg: plus },
|
|
162
|
+
{ alias: "print", svg: print },
|
|
163
|
+
{ alias: "procedures", svg: procedures },
|
|
164
|
+
{ alias: "redo", svg: redo },
|
|
165
|
+
{ alias: "safety", svg: safety },
|
|
166
|
+
{ alias: "scale", svg: scale },
|
|
167
|
+
{ alias: "search", svg: search },
|
|
168
|
+
{ alias: "sitemap", svg: sitemap },
|
|
169
|
+
{ alias: "soil", svg: soil },
|
|
170
|
+
{ alias: "sort-ascending", svg: sortAscending },
|
|
171
|
+
{ alias: "sort-descending", svg: sortDescending },
|
|
172
|
+
{ alias: "sort", svg: sort },
|
|
173
|
+
{ alias: "sound", svg: sound },
|
|
174
|
+
{ alias: "status-danger", svg: statusDanger },
|
|
175
|
+
{ alias: "status-info", svg: statusInfo },
|
|
176
|
+
{ alias: "status-success", svg: statusSuccess },
|
|
177
|
+
{ alias: "status-warning", svg: statusWarning },
|
|
178
|
+
{ alias: "table", svg: table },
|
|
179
|
+
{ alias: "times", svg: times },
|
|
180
|
+
{ alias: "trash", svg: trash },
|
|
181
|
+
{ alias: "undo", svg: undo },
|
|
182
|
+
{ alias: "user-line", svg: userLine },
|
|
183
|
+
{ alias: "user", svg: user },
|
|
184
|
+
{ alias: "users", svg: users },
|
|
185
|
+
{ alias: "water", svg: water },
|
|
186
|
+
{ alias: "wip-wip", svg: wipWip },
|
|
185
187
|
];
|
|
186
188
|
export class Icon {
|
|
189
|
+
constructor() {
|
|
190
|
+
this.icon = undefined;
|
|
191
|
+
}
|
|
187
192
|
render() {
|
|
188
193
|
if (this.icon) {
|
|
189
|
-
const icon = icons.find(i => i.alias === this.icon);
|
|
194
|
+
const icon = icons.find((i) => i.alias === this.icon);
|
|
190
195
|
if (!icon) {
|
|
191
196
|
throw new TypeError(`Unknown svg: ${this.icon}`);
|
|
192
197
|
}
|
|
@@ -195,29 +200,35 @@ export class Icon {
|
|
|
195
200
|
}
|
|
196
201
|
static get is() { return "dso-icon"; }
|
|
197
202
|
static get encapsulation() { return "shadow"; }
|
|
198
|
-
static get originalStyleUrls() {
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
"
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
203
|
+
static get originalStyleUrls() {
|
|
204
|
+
return {
|
|
205
|
+
"$": ["./icon.scss"]
|
|
206
|
+
};
|
|
207
|
+
}
|
|
208
|
+
static get styleUrls() {
|
|
209
|
+
return {
|
|
210
|
+
"$": ["icon.css"]
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
static get properties() {
|
|
214
|
+
return {
|
|
215
|
+
"icon": {
|
|
216
|
+
"type": "string",
|
|
217
|
+
"mutable": false,
|
|
218
|
+
"complexType": {
|
|
219
|
+
"original": "string",
|
|
220
|
+
"resolved": "string | undefined",
|
|
221
|
+
"references": {}
|
|
222
|
+
},
|
|
223
|
+
"required": false,
|
|
224
|
+
"optional": true,
|
|
225
|
+
"docs": {
|
|
226
|
+
"tags": [],
|
|
227
|
+
"text": ""
|
|
228
|
+
},
|
|
229
|
+
"attribute": "icon",
|
|
230
|
+
"reflect": false
|
|
231
|
+
}
|
|
232
|
+
};
|
|
233
|
+
}
|
|
223
234
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import debounce from
|
|
3
|
-
import { createFocusTrap } from
|
|
1
|
+
import { forceUpdate, h, Host } from "@stencil/core";
|
|
2
|
+
import debounce from "debounce";
|
|
3
|
+
import { createFocusTrap } from "focus-trap";
|
|
4
4
|
export class ImageOverlay {
|
|
5
5
|
constructor() {
|
|
6
|
+
this.titelSlot = null;
|
|
7
|
+
this.bijschriftSlot = null;
|
|
6
8
|
this.active = false;
|
|
7
9
|
this.focused = false;
|
|
8
10
|
this.zoomable = false;
|
|
9
|
-
this.titelSlot = null;
|
|
10
|
-
this.bijschriftSlot = null;
|
|
11
11
|
}
|
|
12
12
|
loadListener(event) {
|
|
13
13
|
if (event.target instanceof HTMLImageElement) {
|
|
@@ -20,7 +20,7 @@ export class ImageOverlay {
|
|
|
20
20
|
}
|
|
21
21
|
componentDidLoad() {
|
|
22
22
|
this.resizeObserver = new ResizeObserver(debounce(() => {
|
|
23
|
-
const imgElement = this.host.querySelector(
|
|
23
|
+
const imgElement = this.host.querySelector("img");
|
|
24
24
|
if (imgElement instanceof HTMLImageElement) {
|
|
25
25
|
this.setZoomable(imgElement);
|
|
26
26
|
}
|
|
@@ -28,7 +28,7 @@ export class ImageOverlay {
|
|
|
28
28
|
this.mutationObserver = new MutationObserver((e) => {
|
|
29
29
|
var _a, _b;
|
|
30
30
|
forceUpdate(this.host);
|
|
31
|
-
if (((_a = e[0]) === null || _a === void 0 ? void 0 : _a.type) ===
|
|
31
|
+
if (((_a = e[0]) === null || _a === void 0 ? void 0 : _a.type) === "childList") {
|
|
32
32
|
(_b = this.resizeObserver) === null || _b === void 0 ? void 0 : _b.disconnect();
|
|
33
33
|
// <img> is gone or a new element.
|
|
34
34
|
this.initZoomableImage();
|
|
@@ -37,7 +37,7 @@ export class ImageOverlay {
|
|
|
37
37
|
this.mutationObserver.observe(this.host, {
|
|
38
38
|
attributes: true,
|
|
39
39
|
subtree: true,
|
|
40
|
-
attributeFilter: [
|
|
40
|
+
attributeFilter: ["src", "alt"],
|
|
41
41
|
childList: true,
|
|
42
42
|
});
|
|
43
43
|
this.initZoomableImage();
|
|
@@ -50,7 +50,7 @@ export class ImageOverlay {
|
|
|
50
50
|
}
|
|
51
51
|
initZoomableImage() {
|
|
52
52
|
var _a;
|
|
53
|
-
const imgElement = this.host.querySelector(
|
|
53
|
+
const imgElement = this.host.querySelector("img");
|
|
54
54
|
if (!(imgElement instanceof HTMLImageElement)) {
|
|
55
55
|
return;
|
|
56
56
|
}
|
|
@@ -66,22 +66,8 @@ export class ImageOverlay {
|
|
|
66
66
|
}
|
|
67
67
|
render() {
|
|
68
68
|
var _a;
|
|
69
|
-
const { src, alt } = (_a = this.host.querySelector(
|
|
70
|
-
return (h(Host, { tabindex: this.focused || !this.zoomable ? -1 : 0, onFocus: () => { var _a; return (_a = this.buttonElement) === null || _a === void 0 ? void 0 : _a.focus(); } },
|
|
71
|
-
this.active && src && alt && (h("div", { class: "dimmer" },
|
|
72
|
-
h("div", { class: "wrapper", ref: element => this.wrapperElement = element },
|
|
73
|
-
h("div", { class: "titel", hidden: !this.titelSlot },
|
|
74
|
-
h("slot", { name: "titel" })),
|
|
75
|
-
h("img", { src: src, alt: alt }),
|
|
76
|
-
h("button", { type: "button", class: "close", onClick: () => this.active = false },
|
|
77
|
-
h("dso-icon", { icon: "times" }),
|
|
78
|
-
h("span", null, "Sluiten")),
|
|
79
|
-
h("div", { class: "figuur-bijschrift", hidden: !this.bijschriftSlot },
|
|
80
|
-
h("slot", { name: "bijschrift" }))))),
|
|
81
|
-
h("slot", null),
|
|
82
|
-
this.zoomable && (h("button", { type: "button", class: "open", ref: element => this.buttonElement = element, onClick: () => this.active = true, onFocus: () => this.focused = true, onBlur: () => this.focused = false },
|
|
83
|
-
h("dso-icon", { icon: "external-link" }),
|
|
84
|
-
h("span", null, "Afbeelding vergroot weergeven")))));
|
|
69
|
+
const { src, alt } = (_a = this.host.querySelector("img")) !== null && _a !== void 0 ? _a : {};
|
|
70
|
+
return (h(Host, { tabindex: this.focused || !this.zoomable ? -1 : 0, onFocus: () => { var _a; return (_a = this.buttonElement) === null || _a === void 0 ? void 0 : _a.focus(); } }, this.active && src && alt && (h("div", { class: "dimmer" }, h("div", { class: "wrapper", ref: (element) => (this.wrapperElement = element) }, h("div", { class: "titel", hidden: !this.titelSlot }, h("slot", { name: "titel" })), h("img", { src: src, alt: alt }), h("button", { type: "button", class: "close", onClick: () => (this.active = false) }, h("dso-icon", { icon: "times" }), h("span", null, "Sluiten")), h("div", { class: "figuur-bijschrift", hidden: !this.bijschriftSlot }, h("slot", { name: "bijschrift" }))))), h("slot", null), this.zoomable && (h("button", { type: "button", class: "open", ref: (element) => (this.buttonElement = element), onClick: () => (this.active = true), onFocus: () => (this.focused = true), onBlur: () => (this.focused = false) }, h("dso-icon", { icon: "external-link" }), h("span", null, "Afbeelding vergroot weergeven")))));
|
|
85
71
|
}
|
|
86
72
|
componentDidRender() {
|
|
87
73
|
var _a, _b;
|
|
@@ -96,7 +82,7 @@ export class ImageOverlay {
|
|
|
96
82
|
return true;
|
|
97
83
|
},
|
|
98
84
|
setReturnFocus: (_a = this.buttonElement) !== null && _a !== void 0 ? _a : false,
|
|
99
|
-
onDeactivate: () => this.active = false
|
|
85
|
+
onDeactivate: () => (this.active = false),
|
|
100
86
|
}).activate();
|
|
101
87
|
}
|
|
102
88
|
else if (!this.active && this.trap) {
|
|
@@ -106,23 +92,31 @@ export class ImageOverlay {
|
|
|
106
92
|
}
|
|
107
93
|
static get is() { return "dso-image-overlay"; }
|
|
108
94
|
static get encapsulation() { return "shadow"; }
|
|
109
|
-
static get originalStyleUrls() {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
95
|
+
static get originalStyleUrls() {
|
|
96
|
+
return {
|
|
97
|
+
"$": ["./image-overlay.scss"]
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
static get styleUrls() {
|
|
101
|
+
return {
|
|
102
|
+
"$": ["image-overlay.css"]
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
static get states() {
|
|
106
|
+
return {
|
|
107
|
+
"active": {},
|
|
108
|
+
"focused": {},
|
|
109
|
+
"zoomable": {}
|
|
110
|
+
};
|
|
111
|
+
}
|
|
120
112
|
static get elementRef() { return "host"; }
|
|
121
|
-
static get listeners() {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
113
|
+
static get listeners() {
|
|
114
|
+
return [{
|
|
115
|
+
"name": "load",
|
|
116
|
+
"method": "loadListener",
|
|
117
|
+
"target": undefined,
|
|
118
|
+
"capture": true,
|
|
119
|
+
"passive": false
|
|
120
|
+
}];
|
|
121
|
+
}
|
|
128
122
|
}
|