@dso-toolkit/core 62.26.0 → 62.28.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/annotation-body-88802b1e.js +15 -0
- package/dist/cjs/annotation-body-88802b1e.js.map +1 -0
- package/dist/cjs/annotation-symbol-slot-939136f8.js +38 -0
- package/dist/cjs/annotation-symbol-slot-939136f8.js.map +1 -0
- package/dist/cjs/dso-accordion-section.cjs.entry.js +6 -4
- package/dist/cjs/dso-accordion-section.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-accordion.cjs.entry.js +1 -1
- package/dist/cjs/dso-action-list-item.cjs.entry.js +1 -1
- package/dist/cjs/dso-action-list.cjs.entry.js +1 -1
- package/dist/cjs/dso-advanced-select.cjs.entry.js +1 -1
- package/dist/cjs/{dso-alert_6.cjs.entry.js → dso-alert_5.cjs.entry.js} +13 -27
- package/dist/cjs/dso-alert_5.cjs.entry.js.map +1 -0
- package/dist/cjs/dso-annotation-activiteit.cjs.entry.js +14 -4
- package/dist/cjs/dso-annotation-activiteit.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-annotation-gebiedsaanwijzing.cjs.entry.js +14 -4
- package/dist/cjs/dso-annotation-gebiedsaanwijzing.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-annotation-kaart.cjs.entry.js +39 -0
- package/dist/cjs/dso-annotation-kaart.cjs.entry.js.map +1 -0
- package/dist/cjs/dso-annotation-locatie.cjs.entry.js +38 -0
- package/dist/cjs/dso-annotation-locatie.cjs.entry.js.map +1 -0
- package/dist/cjs/dso-annotation-omgevingsnormwaarde.cjs.entry.js +41 -0
- package/dist/cjs/dso-annotation-omgevingsnormwaarde.cjs.entry.js.map +1 -0
- package/dist/cjs/dso-annotation-output_2.cjs.entry.js +5 -5
- package/dist/cjs/dso-annotation-output_2.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-attachments-counter.cjs.entry.js +2 -2
- package/dist/cjs/dso-autosuggest.cjs.entry.js +3 -3
- package/dist/cjs/dso-badge.cjs.entry.js +24 -0
- package/dist/cjs/dso-badge.cjs.entry.js.map +1 -0
- package/dist/cjs/dso-banner.cjs.entry.js +4 -4
- package/dist/cjs/dso-banner.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-card-container.cjs.entry.js +2 -2
- package/dist/cjs/dso-card.cjs.entry.js +3 -3
- package/dist/cjs/dso-date-picker-legacy.cjs.entry.js +5 -5
- package/dist/cjs/dso-date-picker-legacy.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-date-picker.cjs.entry.js +3 -3
- package/dist/cjs/dso-date-picker.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-dropdown-menu.cjs.entry.js +3 -3
- package/dist/cjs/dso-expandable.cjs.entry.js +1 -1
- package/dist/cjs/dso-header.cjs.entry.js +1 -1
- package/dist/cjs/dso-helpcenter-panel.cjs.entry.js +3 -3
- package/dist/cjs/dso-highlight-box.cjs.entry.js +2 -2
- package/dist/cjs/dso-icon.cjs.entry.js +2 -2
- package/dist/cjs/dso-info-button.cjs.entry.js +2 -2
- package/dist/cjs/dso-info_2.cjs.entry.js +4 -4
- package/dist/cjs/dso-info_2.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-input-range.cjs.entry.js +3 -3
- package/dist/cjs/dso-label_2.cjs.entry.js +252 -27
- package/dist/cjs/dso-label_2.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-legend-item.cjs.entry.js +4 -4
- package/dist/cjs/dso-legend-item.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-list-button.cjs.entry.js +3 -3
- package/dist/cjs/dso-list-button.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-logo.cjs.entry.js +3 -3
- package/dist/cjs/dso-map-base-layers.cjs.entry.js +3 -3
- package/dist/cjs/dso-map-controls.cjs.entry.js +3 -3
- package/dist/cjs/dso-map-controls.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-map-overlays.cjs.entry.js +3 -3
- package/dist/cjs/dso-mark-bar.cjs.entry.js +2 -2
- package/dist/cjs/dso-modal.cjs.entry.js +5 -5
- package/dist/cjs/dso-modal.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-pagination.cjs.entry.js +2 -2
- package/dist/cjs/dso-pagination.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-progress-bar.cjs.entry.js +2 -2
- package/dist/cjs/dso-progress-indicator.cjs.entry.js +3 -3
- package/dist/cjs/dso-progress-indicator.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-renvooi_2.cjs.entry.js +68 -0
- package/dist/cjs/dso-renvooi_2.cjs.entry.js.map +1 -0
- package/dist/cjs/dso-responsive-element.cjs.entry.js +2 -2
- package/dist/cjs/dso-scrollable.cjs.entry.js +3 -3
- package/dist/cjs/dso-toggletip.cjs.entry.js +2 -2
- package/dist/cjs/dso-toolkit.cjs.js +3 -3
- package/dist/cjs/dso-toolkit.cjs.js.map +1 -1
- package/dist/cjs/dso-tree-view.cjs.entry.js +2 -2
- package/dist/cjs/dso-viewer-grid.cjs.entry.js +3 -3
- package/dist/cjs/dso-viewer-grid.cjs.entry.js.map +1 -1
- package/dist/cjs/dsot-document-component-demo.cjs.entry.js +2 -2
- package/dist/cjs/{index-56461a0b.js → index-ac055dd1.js} +159 -142
- package/dist/cjs/index-ac055dd1.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{v4-c23234d2.js → v4-7014b8b0.js} +27 -30
- package/dist/cjs/v4-7014b8b0.js.map +1 -0
- package/dist/collection/collection-manifest.json +5 -3
- package/dist/collection/components/accordion/components/accordion-section.css +11 -0
- package/dist/collection/components/accordion/components/accordion-section.js +44 -2
- package/dist/collection/components/accordion/components/accordion-section.js.map +1 -1
- package/dist/collection/components/alert/alert.css +46 -3
- package/dist/collection/components/alert/alert.js +19 -1
- package/dist/collection/components/alert/alert.js.map +1 -1
- package/dist/collection/components/annotation/annotation-activiteit/annotation-activiteit.js +26 -16
- package/dist/collection/components/annotation/annotation-activiteit/annotation-activiteit.js.map +1 -1
- package/dist/collection/components/annotation/annotation-body.js +1 -1
- package/dist/collection/components/annotation/annotation-body.js.map +1 -1
- package/dist/collection/components/annotation/annotation-gebiedsaanwijzing/annotation-gebiedsaanwijzing.js +17 -7
- package/dist/collection/components/annotation/annotation-gebiedsaanwijzing/annotation-gebiedsaanwijzing.js.map +1 -1
- package/dist/collection/components/annotation/annotation-gewijzigde-locatie.js.map +1 -1
- package/dist/collection/components/annotation/annotation-kaart/annotation-kaart.interfaces.js +2 -0
- package/dist/collection/components/annotation/annotation-kaart/annotation-kaart.interfaces.js.map +1 -0
- package/dist/collection/components/annotation/annotation-kaart/annotation-kaart.js +128 -0
- package/dist/collection/components/annotation/annotation-kaart/annotation-kaart.js.map +1 -0
- package/dist/collection/components/annotation/{annotation-werkingsgebied/annotation-werkingsgebied.js → annotation-locatie/annotation-locatie.js} +20 -10
- package/dist/collection/components/annotation/annotation-locatie/annotation-locatie.js.map +1 -0
- package/dist/collection/components/annotation/{annotation-omgevingsnorm/annotation-omgevingsnorm.js → annotation-omgevingsnormwaarde/annotation-omgevingsnormwaarde.js} +52 -22
- package/dist/collection/components/annotation/annotation-omgevingsnormwaarde/annotation-omgevingsnormwaarde.js.map +1 -0
- package/dist/collection/components/annotation/annotation-symbol-slot.js +3 -0
- package/dist/collection/components/annotation/annotation-symbol-slot.js.map +1 -0
- package/dist/collection/components/annotation/annotation-watcher.js +26 -0
- package/dist/collection/components/annotation/annotation-watcher.js.map +1 -0
- package/dist/collection/components/annotation/annotation.css +56 -40
- package/dist/collection/components/annotation/annotation.interfaces.js.map +1 -1
- package/dist/collection/components/annotation-button/annotation-button.css +2 -1
- package/dist/collection/components/attachments-counter/attachments-counter.js +1 -1
- package/dist/collection/components/autosuggest/autosuggest.js +1 -1
- package/dist/collection/components/badge/badge.css +2 -1
- package/dist/collection/components/badge/badge.interfaces.js +2 -0
- package/dist/collection/components/badge/badge.interfaces.js.map +1 -0
- package/dist/collection/components/badge/badge.js +9 -3
- package/dist/collection/components/badge/badge.js.map +1 -1
- package/dist/collection/components/banner/banner.css +4 -2
- package/dist/collection/components/banner/banner.js +2 -2
- package/dist/collection/components/card/card.js +2 -2
- package/dist/collection/components/card-container/card-container.js +1 -1
- package/dist/collection/components/date-picker/date-picker.css +2 -1
- package/dist/collection/components/date-picker/date-picker.js +1 -1
- package/dist/collection/components/date-picker-legacy/date-picker-legacy.css +2 -1
- package/dist/collection/components/date-picker-legacy/date-picker-legacy.js +3 -3
- package/dist/collection/components/document-component/document-component.css +2 -1
- package/dist/collection/components/document-component/document-component.js +3 -3
- package/dist/collection/components/document-component/document-component.js.map +1 -1
- package/dist/collection/components/document-component-demo/document-component.demo.js +1 -1
- package/dist/collection/components/dropdown-menu/dropdown-menu.js +1 -1
- package/dist/collection/components/helpcenter-panel/helpcenter-panel.js +2 -2
- package/dist/collection/components/highlight-box/highlight-box.js +1 -1
- package/dist/collection/components/icon/icon.js +1 -1
- package/dist/collection/components/image-overlay/image-overlay.js +2 -2
- package/dist/collection/components/image-overlay/image-overlay.js.map +1 -1
- package/dist/collection/components/info/info.css +2 -1
- package/dist/collection/components/info/info.js +1 -1
- package/dist/collection/components/info-button/info-button.js +1 -1
- package/dist/collection/components/input-range/input-range.js +2 -2
- package/dist/collection/components/label/label.css +4 -2
- package/dist/collection/components/label/label.js +3 -3
- package/dist/collection/components/legend-item/legend-item.css +2 -1
- package/dist/collection/components/legend-item/legend-item.js +2 -2
- package/dist/collection/components/list-button/list-button.css +10 -5
- package/dist/collection/components/list-button/list-button.js +1 -1
- package/dist/collection/components/logo/logo.js +2 -2
- package/dist/collection/components/map-base-layers/map-base-layers.js +1 -1
- package/dist/collection/components/map-controls/map-controls.css +4 -2
- package/dist/collection/components/map-controls/map-controls.js +1 -1
- package/dist/collection/components/map-overlays/map-overlays.js +1 -1
- package/dist/collection/components/mark-bar/mark-bar.js +1 -1
- package/dist/collection/components/modal/modal.css +34 -10
- package/dist/collection/components/modal/modal.js +2 -2
- package/dist/collection/components/ozon-content/ozon-content.css +34 -9
- package/dist/collection/components/ozon-content/ozon-content.js +1 -1
- package/dist/collection/components/pagination/pagination.css +2 -0
- package/dist/collection/components/progress-bar/progress-bar.js +1 -1
- package/dist/collection/components/progress-indicator/progress-indicator.css +4 -2
- package/dist/collection/components/progress-indicator/progress-indicator.js +1 -1
- package/dist/collection/components/renvooi/renvooi.css +54 -0
- package/dist/collection/components/renvooi/renvooi.interfaces.js +2 -0
- package/dist/collection/components/renvooi/renvooi.interfaces.js.map +1 -0
- package/dist/collection/components/renvooi/renvooi.js +65 -0
- package/dist/collection/components/renvooi/renvooi.js.map +1 -0
- package/dist/collection/components/responsive-element/responsive-element.js +1 -1
- package/dist/collection/components/scrollable/scrollable.js +2 -2
- package/dist/collection/components/selectable/selectable.js +1 -1
- package/dist/collection/components/slide-toggle/slide-toggle.js +1 -1
- package/dist/collection/components/table/table.css +36 -11
- package/dist/collection/components/table/table.js +1 -1
- package/dist/collection/components/toggletip/toggletip.js +1 -1
- package/dist/collection/components/tooltip/tooltip.js +1 -1
- package/dist/collection/components/tree-view/tree-view.js +1 -1
- package/dist/collection/components/viewer-grid/viewer-grid.css +10 -5
- package/dist/collection/components/viewer-grid/viewer-grid.js +1 -1
- package/dist/components/alert.js +5 -3
- package/dist/components/alert.js.map +1 -1
- package/dist/components/annotation-body.js +13 -0
- package/dist/components/annotation-body.js.map +1 -0
- package/dist/components/annotation-button.js +1 -1
- package/dist/components/annotation-button.js.map +1 -1
- package/dist/components/annotation-symbol-slot.js +34 -0
- package/dist/components/annotation-symbol-slot.js.map +1 -0
- package/dist/components/attachments-counter.js +1 -1
- package/dist/components/badge.js +2 -2
- package/dist/components/badge.js.map +1 -1
- package/dist/components/document-component.js +4 -4
- package/dist/components/document-component.js.map +1 -1
- package/dist/components/dropdown-menu.js +1 -1
- package/dist/components/dso-accordion-section.js +15 -5
- package/dist/components/dso-accordion-section.js.map +1 -1
- package/dist/components/dso-annotation-activiteit.js +23 -7
- package/dist/components/dso-annotation-activiteit.js.map +1 -1
- package/dist/components/dso-annotation-gebiedsaanwijzing.js +23 -7
- package/dist/components/dso-annotation-gebiedsaanwijzing.js.map +1 -1
- package/dist/components/dso-annotation-kaart.d.ts +11 -0
- package/dist/components/dso-annotation-kaart.js +75 -0
- package/dist/components/dso-annotation-kaart.js.map +1 -0
- package/dist/components/dso-annotation-locatie.d.ts +11 -0
- package/dist/components/dso-annotation-locatie.js +87 -0
- package/dist/components/dso-annotation-locatie.js.map +1 -0
- package/dist/components/dso-annotation-omgevingsnormwaarde.d.ts +11 -0
- package/dist/components/dso-annotation-omgevingsnormwaarde.js +93 -0
- package/dist/components/dso-annotation-omgevingsnormwaarde.js.map +1 -0
- package/dist/components/dso-autosuggest.js +1 -1
- package/dist/components/dso-banner.js +3 -3
- package/dist/components/dso-banner.js.map +1 -1
- package/dist/components/dso-card-container.js +1 -1
- package/dist/components/dso-card.js +2 -2
- package/dist/components/dso-date-picker-legacy.js +4 -4
- package/dist/components/dso-date-picker-legacy.js.map +1 -1
- package/dist/components/dso-date-picker.js +2 -2
- package/dist/components/dso-date-picker.js.map +1 -1
- package/dist/components/dso-helpcenter-panel.js +2 -2
- package/dist/components/dso-highlight-box.js +1 -1
- package/dist/components/dso-input-range.js +2 -2
- package/dist/components/dso-legend-item.js +3 -3
- package/dist/components/dso-legend-item.js.map +1 -1
- package/dist/components/dso-list-button.js +2 -2
- package/dist/components/dso-list-button.js.map +1 -1
- package/dist/components/dso-logo.js +2 -2
- package/dist/components/dso-map-base-layers.js +1 -1
- package/dist/components/dso-map-controls.js +2 -2
- package/dist/components/dso-map-controls.js.map +1 -1
- package/dist/components/dso-map-overlays.js +1 -1
- package/dist/components/dso-mark-bar.js +1 -1
- package/dist/components/dso-modal.js +3 -3
- package/dist/components/dso-modal.js.map +1 -1
- package/dist/components/dso-pagination.js +1 -1
- package/dist/components/dso-pagination.js.map +1 -1
- package/dist/components/dso-progress-bar.js +1 -1
- package/dist/components/dso-renvooi.d.ts +11 -0
- package/dist/components/dso-renvooi.js +8 -0
- package/dist/components/dso-renvooi.js.map +1 -0
- package/dist/components/dso-tree-view.js +1 -1
- package/dist/components/dso-viewer-grid.js +2 -2
- package/dist/components/dso-viewer-grid.js.map +1 -1
- package/dist/components/dsot-document-component-demo.js +1 -1
- package/dist/components/icon.js +1 -1
- package/dist/components/image-overlay.js +2 -2
- package/dist/components/image-overlay.js.map +1 -1
- package/dist/components/index.d.ts +8 -4
- package/dist/components/index.js +4 -2
- package/dist/components/index.js.map +1 -1
- package/dist/components/info-button.js +1 -1
- package/dist/components/info.js +2 -2
- package/dist/components/info.js.map +1 -1
- package/dist/components/label.js +4 -4
- package/dist/components/label.js.map +1 -1
- package/dist/components/ozon-content.js +2 -2
- package/dist/components/ozon-content.js.map +1 -1
- package/dist/components/progress-indicator.js +2 -2
- package/dist/components/progress-indicator.js.map +1 -1
- package/dist/components/renvooi.js +54 -0
- package/dist/components/renvooi.js.map +1 -0
- package/dist/components/responsive-element.js +1 -1
- package/dist/components/scrollable.js +2 -2
- package/dist/components/selectable.js +1 -1
- package/dist/components/slide-toggle.js +1 -1
- package/dist/components/table.js +2 -2
- package/dist/components/table.js.map +1 -1
- package/dist/components/toggletip.js +1 -1
- package/dist/components/tooltip.js +1 -1
- package/dist/components/v4.js +26 -29
- package/dist/components/v4.js.map +1 -1
- package/dist/dso-toolkit/dso-toolkit.esm.js +1 -1
- package/dist/dso-toolkit/dso-toolkit.esm.js.map +1 -1
- package/dist/dso-toolkit/p-01daefd6.entry.js +2 -0
- package/dist/dso-toolkit/{p-b6292d1a.entry.js.map → p-01daefd6.entry.js.map} +1 -1
- package/dist/dso-toolkit/{p-cbb4f112.entry.js → p-08dba16d.entry.js} +2 -2
- package/dist/dso-toolkit/{p-299d8fdc.entry.js → p-0900fddd.entry.js} +2 -2
- package/dist/dso-toolkit/{p-ae92d7c8.entry.js → p-0bc8b0cb.entry.js} +2 -2
- package/dist/dso-toolkit/p-200b6f6d.entry.js +2 -0
- package/dist/dso-toolkit/{p-2265897c.entry.js → p-357d709b.entry.js} +2 -2
- package/dist/dso-toolkit/p-380eef98.entry.js +2 -0
- package/dist/dso-toolkit/{p-8933926d.entry.js.map → p-380eef98.entry.js.map} +1 -1
- package/dist/dso-toolkit/{p-deed4932.entry.js → p-3b01f2a2.entry.js} +2 -2
- package/dist/dso-toolkit/{p-cbcb4d1f.entry.js → p-45934ea5.entry.js} +2 -2
- package/dist/dso-toolkit/{p-f9865457.entry.js → p-4cfc3dba.entry.js} +2 -2
- package/dist/dso-toolkit/{p-f9865457.entry.js.map → p-4cfc3dba.entry.js.map} +1 -1
- package/dist/dso-toolkit/p-536b70d8.entry.js +2 -0
- package/dist/dso-toolkit/p-536b70d8.entry.js.map +1 -0
- package/dist/dso-toolkit/p-65103f88.entry.js +2 -0
- package/dist/dso-toolkit/p-65103f88.entry.js.map +1 -0
- package/dist/dso-toolkit/p-65c3fa6f.entry.js +2 -0
- package/dist/dso-toolkit/{p-3cba474c.entry.js.map → p-65c3fa6f.entry.js.map} +1 -1
- package/dist/dso-toolkit/p-6c73ed77.js +2 -0
- package/dist/dso-toolkit/p-6c73ed77.js.map +1 -0
- package/dist/dso-toolkit/p-6d87bed5.entry.js +2 -0
- package/dist/dso-toolkit/p-6d87bed5.entry.js.map +1 -0
- package/dist/dso-toolkit/{p-53e04851.entry.js → p-70f2eed4.entry.js} +2 -2
- package/dist/dso-toolkit/{p-be2de19c.entry.js → p-81790cb0.entry.js} +2 -2
- package/dist/dso-toolkit/p-84d7b509.entry.js +2 -0
- package/dist/dso-toolkit/{p-26d0cacc.entry.js.map → p-84d7b509.entry.js.map} +1 -1
- package/dist/dso-toolkit/{p-bdaa4b01.entry.js → p-8e4ec29c.entry.js} +2 -2
- package/dist/dso-toolkit/p-91f631a2.entry.js +2 -0
- package/dist/dso-toolkit/p-97b5ad7b.entry.js +2 -0
- package/dist/dso-toolkit/{p-a16adf8a.entry.js.map → p-97b5ad7b.entry.js.map} +1 -1
- package/dist/dso-toolkit/{p-f1c58804.entry.js → p-98325f23.entry.js} +2 -2
- package/dist/dso-toolkit/p-995b15a4.entry.js +2 -0
- package/dist/dso-toolkit/{p-b43b959f.entry.js.map → p-995b15a4.entry.js.map} +1 -1
- package/dist/dso-toolkit/{p-824b23ee.entry.js → p-9b698eb6.entry.js} +2 -2
- package/dist/dso-toolkit/p-a070bb9e.entry.js +2 -0
- package/dist/dso-toolkit/{p-fc3cbf49.entry.js → p-a092b873.entry.js} +2 -2
- package/dist/dso-toolkit/{p-9b35c459.entry.js → p-a3d88101.entry.js} +2 -2
- package/dist/dso-toolkit/p-a6a47dd2.entry.js +2 -0
- package/dist/dso-toolkit/p-ab91a31a.entry.js +2 -0
- package/dist/dso-toolkit/p-ab91a31a.entry.js.map +1 -0
- package/dist/dso-toolkit/p-ac583d76.js +2 -0
- package/dist/dso-toolkit/p-ac583d76.js.map +1 -0
- package/dist/dso-toolkit/{p-216b7e41.entry.js → p-b245e776.entry.js} +2 -2
- package/dist/dso-toolkit/{p-8f126e70.entry.js → p-b4452919.entry.js} +2 -2
- package/dist/dso-toolkit/{p-e6222cd3.entry.js → p-ba0bd24d.entry.js} +2 -2
- package/dist/dso-toolkit/{p-358d71cb.entry.js → p-bc3f6f57.entry.js} +2 -2
- package/dist/dso-toolkit/p-be09cdfb.entry.js +2 -0
- package/dist/dso-toolkit/{p-31a70deb.entry.js.map → p-be09cdfb.entry.js.map} +1 -1
- package/dist/dso-toolkit/p-c076cd49.entry.js +2 -0
- package/dist/dso-toolkit/p-c076cd49.entry.js.map +1 -0
- package/dist/dso-toolkit/p-c1ae4697.entry.js +2 -0
- package/dist/dso-toolkit/p-c1ae4697.entry.js.map +1 -0
- package/dist/dso-toolkit/p-c2f27106.entry.js +2 -0
- package/dist/dso-toolkit/p-c311d632.entry.js +2 -0
- package/dist/dso-toolkit/{p-02a600ee.entry.js.map → p-c311d632.entry.js.map} +1 -1
- package/dist/dso-toolkit/p-d072c749.entry.js +2 -0
- package/dist/dso-toolkit/{p-e737a905.entry.js.map → p-d072c749.entry.js.map} +1 -1
- package/dist/dso-toolkit/p-d638c2b0.js +3 -0
- package/dist/dso-toolkit/p-d638c2b0.js.map +1 -0
- package/dist/dso-toolkit/{p-31aca00a.entry.js → p-d7048b9e.entry.js} +2 -2
- package/dist/dso-toolkit/p-d8744e6e.entry.js +2 -0
- package/dist/dso-toolkit/p-d8744e6e.entry.js.map +1 -0
- package/dist/dso-toolkit/{p-602f573d.entry.js → p-d8cbc58f.entry.js} +2 -2
- package/dist/dso-toolkit/{p-618fee5c.entry.js → p-dd2e80f0.entry.js} +2 -2
- package/dist/dso-toolkit/p-ef8cccbd.entry.js +2 -0
- package/dist/dso-toolkit/p-ef8cccbd.entry.js.map +1 -0
- package/dist/dso-toolkit/p-f0637435.entry.js +2 -0
- package/dist/dso-toolkit/{p-0361ac95.entry.js.map → p-f0637435.entry.js.map} +1 -1
- package/dist/dso-toolkit/p-f4893ad4.entry.js +2 -0
- package/dist/dso-toolkit/{p-9a1dee2d.entry.js.map → p-f4893ad4.entry.js.map} +1 -1
- package/dist/dso-toolkit/{p-ce66b495.entry.js → p-f59101bd.entry.js} +2 -2
- package/dist/dso-toolkit/p-f5ff676c.js +2 -0
- package/dist/dso-toolkit/p-f5ff676c.js.map +1 -0
- package/dist/dso-toolkit/p-f850de62.entry.js +2 -0
- package/dist/dso-toolkit/p-f850de62.entry.js.map +1 -0
- package/dist/dso-toolkit/p-fb4f7c98.entry.js +2 -0
- package/dist/dso-toolkit/p-fb4f7c98.entry.js.map +1 -0
- package/dist/esm/annotation-body-a8fadf3a.js +13 -0
- package/dist/esm/annotation-body-a8fadf3a.js.map +1 -0
- package/dist/esm/annotation-symbol-slot-28380b95.js +34 -0
- package/dist/esm/annotation-symbol-slot-28380b95.js.map +1 -0
- package/dist/esm/dso-accordion-section.entry.js +6 -4
- package/dist/esm/dso-accordion-section.entry.js.map +1 -1
- package/dist/esm/dso-accordion.entry.js +1 -1
- package/dist/esm/dso-action-list-item.entry.js +1 -1
- package/dist/esm/dso-action-list.entry.js +1 -1
- package/dist/esm/dso-advanced-select.entry.js +1 -1
- package/dist/esm/{dso-alert_6.entry.js → dso-alert_5.entry.js} +14 -27
- package/dist/esm/dso-alert_5.entry.js.map +1 -0
- package/dist/esm/dso-annotation-activiteit.entry.js +14 -4
- package/dist/esm/dso-annotation-activiteit.entry.js.map +1 -1
- package/dist/esm/dso-annotation-gebiedsaanwijzing.entry.js +14 -4
- package/dist/esm/dso-annotation-gebiedsaanwijzing.entry.js.map +1 -1
- package/dist/esm/dso-annotation-kaart.entry.js +35 -0
- package/dist/esm/dso-annotation-kaart.entry.js.map +1 -0
- package/dist/esm/dso-annotation-locatie.entry.js +34 -0
- package/dist/esm/dso-annotation-locatie.entry.js.map +1 -0
- package/dist/esm/dso-annotation-omgevingsnormwaarde.entry.js +37 -0
- package/dist/esm/dso-annotation-omgevingsnormwaarde.entry.js.map +1 -0
- package/dist/esm/dso-annotation-output_2.entry.js +5 -5
- package/dist/esm/dso-annotation-output_2.entry.js.map +1 -1
- package/dist/esm/dso-attachments-counter.entry.js +2 -2
- package/dist/esm/dso-autosuggest.entry.js +3 -3
- package/dist/esm/dso-badge.entry.js +20 -0
- package/dist/esm/dso-badge.entry.js.map +1 -0
- package/dist/esm/dso-banner.entry.js +4 -4
- package/dist/esm/dso-banner.entry.js.map +1 -1
- package/dist/esm/dso-card-container.entry.js +2 -2
- package/dist/esm/dso-card.entry.js +3 -3
- package/dist/esm/dso-date-picker-legacy.entry.js +5 -5
- package/dist/esm/dso-date-picker-legacy.entry.js.map +1 -1
- package/dist/esm/dso-date-picker.entry.js +3 -3
- package/dist/esm/dso-date-picker.entry.js.map +1 -1
- package/dist/esm/dso-dropdown-menu.entry.js +3 -3
- package/dist/esm/dso-expandable.entry.js +1 -1
- package/dist/esm/dso-header.entry.js +1 -1
- package/dist/esm/dso-helpcenter-panel.entry.js +3 -3
- package/dist/esm/dso-highlight-box.entry.js +2 -2
- package/dist/esm/dso-icon.entry.js +2 -2
- package/dist/esm/dso-info-button.entry.js +2 -2
- package/dist/esm/dso-info_2.entry.js +4 -4
- package/dist/esm/dso-info_2.entry.js.map +1 -1
- package/dist/esm/dso-input-range.entry.js +3 -3
- package/dist/esm/dso-label_2.entry.js +252 -27
- package/dist/esm/dso-label_2.entry.js.map +1 -1
- package/dist/esm/dso-legend-item.entry.js +4 -4
- package/dist/esm/dso-legend-item.entry.js.map +1 -1
- package/dist/esm/dso-list-button.entry.js +3 -3
- package/dist/esm/dso-list-button.entry.js.map +1 -1
- package/dist/esm/dso-logo.entry.js +3 -3
- package/dist/esm/dso-map-base-layers.entry.js +3 -3
- package/dist/esm/dso-map-controls.entry.js +3 -3
- package/dist/esm/dso-map-controls.entry.js.map +1 -1
- package/dist/esm/dso-map-overlays.entry.js +3 -3
- package/dist/esm/dso-mark-bar.entry.js +2 -2
- package/dist/esm/dso-modal.entry.js +5 -5
- package/dist/esm/dso-modal.entry.js.map +1 -1
- package/dist/esm/dso-pagination.entry.js +2 -2
- package/dist/esm/dso-pagination.entry.js.map +1 -1
- package/dist/esm/dso-progress-bar.entry.js +2 -2
- package/dist/esm/dso-progress-indicator.entry.js +3 -3
- package/dist/esm/dso-progress-indicator.entry.js.map +1 -1
- package/dist/esm/dso-renvooi_2.entry.js +63 -0
- package/dist/esm/dso-renvooi_2.entry.js.map +1 -0
- package/dist/esm/dso-responsive-element.entry.js +2 -2
- package/dist/esm/dso-scrollable.entry.js +3 -3
- package/dist/esm/dso-toggletip.entry.js +2 -2
- package/dist/esm/dso-toolkit.js +4 -4
- package/dist/esm/dso-toolkit.js.map +1 -1
- package/dist/esm/dso-tree-view.entry.js +2 -2
- package/dist/esm/dso-viewer-grid.entry.js +3 -3
- package/dist/esm/dso-viewer-grid.entry.js.map +1 -1
- package/dist/esm/dsot-document-component-demo.entry.js +2 -2
- package/dist/esm/{index-93de4a35.js → index-c8e19f05.js} +159 -142
- package/dist/esm/index-c8e19f05.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{v4-23648a96.js → v4-a79185f4.js} +27 -30
- package/dist/esm/v4-a79185f4.js.map +1 -0
- package/dist/types/components/accordion/components/accordion-section.d.ts +9 -0
- package/dist/types/components/alert/alert.d.ts +4 -0
- package/dist/types/components/annotation/annotation-activiteit/annotation-activiteit.d.ts +9 -4
- package/dist/types/components/annotation/annotation-body.d.ts +3 -2
- package/dist/types/components/annotation/annotation-gebiedsaanwijzing/annotation-gebiedsaanwijzing.d.ts +7 -2
- package/dist/types/components/annotation/annotation-gewijzigde-locatie.d.ts +2 -1
- package/dist/types/components/annotation/annotation-kaart/annotation-kaart.d.ts +28 -0
- package/dist/types/components/annotation/annotation-kaart/annotation-kaart.interfaces.d.ts +5 -0
- package/dist/types/components/annotation/{annotation-werkingsgebied/annotation-werkingsgebied.d.ts → annotation-locatie/annotation-locatie.d.ts} +8 -3
- package/dist/types/components/annotation/annotation-omgevingsnormwaarde/annotation-omgevingsnormwaarde.d.ts +47 -0
- package/dist/types/components/annotation/annotation-symbol-slot.d.ts +2 -0
- package/dist/types/components/annotation/annotation-watcher.d.ts +5 -0
- package/dist/types/components/annotation/annotation.interfaces.d.ts +1 -9
- package/dist/types/components/badge/badge.d.ts +2 -1
- package/dist/types/components/badge/badge.interfaces.d.ts +1 -0
- package/dist/types/components/renvooi/renvooi.d.ts +12 -0
- package/dist/types/components/renvooi/renvooi.interfaces.d.ts +8 -0
- package/dist/types/components.d.ts +241 -102
- package/dist/types/stencil-public-runtime.d.ts +0 -2
- package/loader/index.d.ts +3 -0
- package/package.json +9 -9
- package/dist/cjs/annotation-gewijzigde-locatie-4dc4c219.js +0 -41
- package/dist/cjs/annotation-gewijzigde-locatie-4dc4c219.js.map +0 -1
- package/dist/cjs/dso-alert_6.cjs.entry.js.map +0 -1
- package/dist/cjs/dso-annotation-omgevingsnorm.cjs.entry.js +0 -30
- package/dist/cjs/dso-annotation-omgevingsnorm.cjs.entry.js.map +0 -1
- package/dist/cjs/dso-annotation-werkingsgebied.cjs.entry.js +0 -28
- package/dist/cjs/dso-annotation-werkingsgebied.cjs.entry.js.map +0 -1
- package/dist/cjs/dso-tooltip.cjs.entry.js +0 -267
- package/dist/cjs/dso-tooltip.cjs.entry.js.map +0 -1
- package/dist/cjs/index-56461a0b.js.map +0 -1
- package/dist/cjs/v4-c23234d2.js.map +0 -1
- package/dist/collection/components/annotation/annotation-diff-renderer.js +0 -17
- package/dist/collection/components/annotation/annotation-diff-renderer.js.map +0 -1
- package/dist/collection/components/annotation/annotation-omgevingsnorm/annotation-omgevingsnorm.js.map +0 -1
- package/dist/collection/components/annotation/annotation-werkingsgebied/annotation-werkingsgebied.js.map +0 -1
- package/dist/collection/components/ozon-content/nodes/table.node/colspec/colspec.interface.js +0 -2
- package/dist/collection/components/ozon-content/nodes/table.node/colspec/colspec.interface.js.map +0 -1
- package/dist/components/annotation-gewijzigde-locatie.js +0 -37
- package/dist/components/annotation-gewijzigde-locatie.js.map +0 -1
- package/dist/components/dso-annotation-omgevingsnorm.d.ts +0 -11
- package/dist/components/dso-annotation-omgevingsnorm.js +0 -75
- package/dist/components/dso-annotation-omgevingsnorm.js.map +0 -1
- package/dist/components/dso-annotation-werkingsgebied.d.ts +0 -11
- package/dist/components/dso-annotation-werkingsgebied.js +0 -71
- package/dist/components/dso-annotation-werkingsgebied.js.map +0 -1
- package/dist/dso-toolkit/p-02a600ee.entry.js +0 -2
- package/dist/dso-toolkit/p-0361ac95.entry.js +0 -2
- package/dist/dso-toolkit/p-137fc4f4.js +0 -2
- package/dist/dso-toolkit/p-137fc4f4.js.map +0 -1
- package/dist/dso-toolkit/p-14616bce.js +0 -2
- package/dist/dso-toolkit/p-14616bce.js.map +0 -1
- package/dist/dso-toolkit/p-208d5671.entry.js +0 -2
- package/dist/dso-toolkit/p-208d5671.entry.js.map +0 -1
- package/dist/dso-toolkit/p-26d0cacc.entry.js +0 -2
- package/dist/dso-toolkit/p-300cbb00.entry.js +0 -2
- package/dist/dso-toolkit/p-31a70deb.entry.js +0 -2
- package/dist/dso-toolkit/p-3cba474c.entry.js +0 -2
- package/dist/dso-toolkit/p-3e5d417d.entry.js +0 -2
- package/dist/dso-toolkit/p-520ac2a9.entry.js +0 -2
- package/dist/dso-toolkit/p-520ac2a9.entry.js.map +0 -1
- package/dist/dso-toolkit/p-68cbd0c9.entry.js +0 -2
- package/dist/dso-toolkit/p-68cbd0c9.entry.js.map +0 -1
- package/dist/dso-toolkit/p-74ec4384.entry.js +0 -2
- package/dist/dso-toolkit/p-8933926d.entry.js +0 -2
- package/dist/dso-toolkit/p-9a1dee2d.entry.js +0 -2
- package/dist/dso-toolkit/p-a16adf8a.entry.js +0 -2
- package/dist/dso-toolkit/p-b43b959f.entry.js +0 -2
- package/dist/dso-toolkit/p-b57ca08c.entry.js +0 -2
- package/dist/dso-toolkit/p-b57ca08c.entry.js.map +0 -1
- package/dist/dso-toolkit/p-b6292d1a.entry.js +0 -2
- package/dist/dso-toolkit/p-b886759a.entry.js +0 -2
- package/dist/dso-toolkit/p-c55b506b.entry.js +0 -2
- package/dist/dso-toolkit/p-c55b506b.entry.js.map +0 -1
- package/dist/dso-toolkit/p-c58ffc7a.entry.js +0 -2
- package/dist/dso-toolkit/p-c58ffc7a.entry.js.map +0 -1
- package/dist/dso-toolkit/p-c7714f92.entry.js +0 -2
- package/dist/dso-toolkit/p-c7714f92.entry.js.map +0 -1
- package/dist/dso-toolkit/p-cd598033.entry.js +0 -2
- package/dist/dso-toolkit/p-cd598033.entry.js.map +0 -1
- package/dist/dso-toolkit/p-da8e5f1c.entry.js +0 -2
- package/dist/dso-toolkit/p-e6cf4fdb.js +0 -3
- package/dist/dso-toolkit/p-e6cf4fdb.js.map +0 -1
- package/dist/dso-toolkit/p-e737a905.entry.js +0 -2
- package/dist/esm/annotation-gewijzigde-locatie-5f4be68e.js +0 -37
- package/dist/esm/annotation-gewijzigde-locatie-5f4be68e.js.map +0 -1
- package/dist/esm/dso-alert_6.entry.js.map +0 -1
- package/dist/esm/dso-annotation-omgevingsnorm.entry.js +0 -26
- package/dist/esm/dso-annotation-omgevingsnorm.entry.js.map +0 -1
- package/dist/esm/dso-annotation-werkingsgebied.entry.js +0 -24
- package/dist/esm/dso-annotation-werkingsgebied.entry.js.map +0 -1
- package/dist/esm/dso-tooltip.entry.js +0 -263
- package/dist/esm/dso-tooltip.entry.js.map +0 -1
- package/dist/esm/index-93de4a35.js.map +0 -1
- package/dist/esm/v4-23648a96.js.map +0 -1
- package/dist/types/components/annotation/annotation-diff-renderer.d.ts +0 -7
- package/dist/types/components/annotation/annotation-omgevingsnorm/annotation-omgevingsnorm.d.ts +0 -36
- package/dist/types/components/ozon-content/nodes/table.node/colspec/colspec.interface.d.ts +0 -12
- /package/dist/dso-toolkit/{p-cbb4f112.entry.js.map → p-08dba16d.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-299d8fdc.entry.js.map → p-0900fddd.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-ae92d7c8.entry.js.map → p-0bc8b0cb.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-300cbb00.entry.js.map → p-200b6f6d.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-2265897c.entry.js.map → p-357d709b.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-deed4932.entry.js.map → p-3b01f2a2.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-cbcb4d1f.entry.js.map → p-45934ea5.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-53e04851.entry.js.map → p-70f2eed4.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-be2de19c.entry.js.map → p-81790cb0.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-bdaa4b01.entry.js.map → p-8e4ec29c.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-da8e5f1c.entry.js.map → p-91f631a2.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-f1c58804.entry.js.map → p-98325f23.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-824b23ee.entry.js.map → p-9b698eb6.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-b886759a.entry.js.map → p-a070bb9e.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-fc3cbf49.entry.js.map → p-a092b873.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-9b35c459.entry.js.map → p-a3d88101.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-3e5d417d.entry.js.map → p-a6a47dd2.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-216b7e41.entry.js.map → p-b245e776.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-8f126e70.entry.js.map → p-b4452919.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-e6222cd3.entry.js.map → p-ba0bd24d.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-358d71cb.entry.js.map → p-bc3f6f57.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-74ec4384.entry.js.map → p-c2f27106.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-31aca00a.entry.js.map → p-d7048b9e.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-602f573d.entry.js.map → p-d8cbc58f.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-618fee5c.entry.js.map → p-dd2e80f0.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-ce66b495.entry.js.map → p-f59101bd.entry.js.map} +0 -0
package/dist/components/icon.js
CHANGED
|
@@ -660,7 +660,7 @@ const Icon = /*@__PURE__*/ proxyCustomElement(class Icon extends HTMLElement {
|
|
|
660
660
|
if (!icon) {
|
|
661
661
|
throw new TypeError(`Unknown svg: ${this.icon}`);
|
|
662
662
|
}
|
|
663
|
-
return h("span", { key: '
|
|
663
|
+
return h("span", { key: 'ad568e901aca0e1bb7bfb6c5cf35579fd78e97f9', class: "icon-container", innerHTML: icon.svg });
|
|
664
664
|
}
|
|
665
665
|
}
|
|
666
666
|
static get style() { return DsoIconStyle0; }
|
|
@@ -79,8 +79,8 @@ const ImageOverlay = /*@__PURE__*/ proxyCustomElement(class ImageOverlay extends
|
|
|
79
79
|
const { width, naturalWidth, height, naturalHeight } = imageElement;
|
|
80
80
|
this.zoomable = width < naturalWidth || height < naturalHeight;
|
|
81
81
|
}
|
|
82
|
-
isWijzigactie(
|
|
83
|
-
return
|
|
82
|
+
isWijzigactie(wijzigactie) {
|
|
83
|
+
return wijzigactie === "voegtoe" || wijzigactie === "verwijder";
|
|
84
84
|
}
|
|
85
85
|
render() {
|
|
86
86
|
var _a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"image-overlay.js","mappings":";;;;;AAAA,MAAM,eAAe,GAAG,sijBAAsijB,CAAC;AAC/jjB,8BAAe,eAAe;;ACgB9B,MAAM,iBAAiB,GAAyD;IAC9E,SAAS,EAAE,YAAY;IACvB,OAAO,EAAE,YAAY;CACtB,CAAC;AAEF,MAAM,MAAM,GAMP,CAAC,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,EAAE,QAAQ,KAC9C,MAAM;IACN,GAAG;IACH,GAAG,KACD,WAAK,KAAK,EAAC,QAAQ,IACjB,WAAK,KAAK,EAAC,SAAS,EAAC,GAAG,EAAE,GAAG,IAC1B,QAAQ,CAAC,CAAC,CAAC,EACX,QAAQ,CAAC,CAAC,CAAC,EACZ,WAAK,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,GAAI,EAC3B,cAAQ,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAC,OAAO,EAAC,OAAO,EAAE,KAAK,IAChD,gBAAU,IAAI,EAAC,OAAO,GAAY,EAClC,0BAAoB,CACb,EACR,QAAQ,CAAC,CAAC,CAAC,CACR,CACF,CACP,CAAC;MAOS,YAAY;;;;;QAsBf,cAAS,GAAuB,IAAI,CAAC;QAErC,mBAAc,GAAuB,IAAI,CAAC;;sBAbzC,KAAK;wBAGH,KAAK;;IAiBhB,YAAY,CAAC,KAAY;QACv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C,iBAAiB,EAAE,IAAI;gBACvB,uBAAuB,EAAE,CAAC,CAAC;oBACzB,IAAI,CAAC,YAAY,UAAU,IAAI,CAAC,CAAC,YAAY,EAAE,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,cAAc,EAAE;wBAC1E,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;wBAEpB,OAAO,KAAK,CAAC;qBACd;oBAED,OAAO,IAAI,CAAC;iBACb;gBACD,cAAc,EAAE,MAAA,IAAI,CAAC,aAAa,mCAAI,KAAK;gBAC3C,YAAY,EAAE,OAAO,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;aAC1C,CAAC,CAAC,QAAQ,EAAE,CAAC;SACf;aAAM,IAAI,CAAC,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,IAAI,EAAE;YACpC,MAAA,IAAI,CAAC,IAAI,0CAAE,UAAU,EAAE,CAAC;YAExB,OAAO,IAAI,CAAC,IAAI,CAAC;SAClB;KACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/image-overlay/image-overlay.scss?tag=dso-image-overlay&encapsulation=shadow","src/components/image-overlay/image-overlay.tsx"],"sourcesContent":["@use \"~dso-toolkit/src/utilities\";\r\n\r\n@use \"~dso-toolkit/src/variables/colors\";\r\n@use \"~dso-toolkit/src/variables/units\";\r\n@use \"~dso-toolkit/src/variables/zindex\";\r\n\r\n@use \"~dso-toolkit/src/components/button\";\r\n@use \"~dso-toolkit/src/components/insert\";\r\n@use \"~dso-toolkit/src/components/delete\";\r\n\r\n:host {\r\n display: inline-block;\r\n position: relative;\r\n}\r\n\r\n:host(:hover) .open,\r\n.open:focus {\r\n opacity: 1;\r\n}\r\n\r\nbutton {\r\n @include button.element();\r\n}\r\n\r\n.open {\r\n @include button.secondary($modifiers: false, $icon-only: true);\r\n\r\n border: 0;\r\n box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.5);\r\n min-inline-size: auto;\r\n padding: units.$u1;\r\n opacity: 0;\r\n position: absolute;\r\n inset-inline-end: units.$u2;\r\n inset-block-start: units.$u2;\r\n}\r\n\r\n.dimmer {\r\n position: fixed;\r\n inset: 0;\r\n z-index: zindex.$image-overlay - 1;\r\n display: flex;\r\n padding: units.$u4;\r\n background-color: fade-out(colors.$wit, 0.2);\r\n justify-content: center;\r\n}\r\n\r\n.wrapper {\r\n align-self: center;\r\n box-shadow: 0 units.$u1 units.$u3 0 rgba(25, 25, 25, 0.4);\r\n line-height: 0;\r\n outline: 4px solid colors.$wit;\r\n position: relative;\r\n z-index: zindex.$image-overlay;\r\n\r\n .title {\r\n background-color: colors.$wit;\r\n font-weight: 700;\r\n line-height: initial;\r\n padding: units.$u1;\r\n position: absolute;\r\n }\r\n\r\n img {\r\n inline-size: auto;\r\n block-size: auto;\r\n max-inline-size: 100%;\r\n max-block-size: calc(100vh - units.$u8);\r\n }\r\n\r\n .figuur-bijschrift:not([hidden]) {\r\n display: block;\r\n font-size: 0.75rem;\r\n font-style: italic;\r\n padding-block-end: units.$u1 * 1.5;\r\n padding-block-start: units.$u2;\r\n }\r\n}\r\n\r\n.close {\r\n @include button.secondary($modifiers: false, $icon-only: true);\r\n\r\n border: 0;\r\n box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.5);\r\n min-inline-size: auto;\r\n padding: units.$u1;\r\n position: absolute;\r\n inset-block-start: units.$u2;\r\n inset-inline-end: units.$u2;\r\n}\r\n\r\nins.editaction-add {\r\n display: inline-block;\r\n margin-block-end: units.$u1;\r\n padding: units.$u1;\r\n @include insert.element();\r\n @include insert.root();\r\n\r\n .wrapper {\r\n outline: none;\r\n padding: units.$u1;\r\n @include insert.root();\r\n\r\n .editaction-label {\r\n line-height: 1.5;\r\n }\r\n\r\n .close {\r\n inset-block-start: units.$u6;\r\n }\r\n }\r\n\r\n .open {\r\n inset-block-start: units.$u6;\r\n }\r\n}\r\n\r\ndel.editaction-remove {\r\n display: inline-block;\r\n margin-block-end: units.$u1;\r\n padding: units.$u1;\r\n @include delete.root();\r\n\r\n .wrapper {\r\n outline: none;\r\n padding: units.$u1;\r\n @include delete.root();\r\n\r\n .title {\r\n text-decoration: line-through;\r\n }\r\n\r\n .editaction-label {\r\n line-height: 1.5;\r\n }\r\n\r\n .close {\r\n inset-block-start: units.$u6;\r\n }\r\n }\r\n\r\n .open {\r\n inset-block-start: units.$u6;\r\n }\r\n}\r\n\r\n.editaction-label {\r\n font-style: italic;\r\n margin-block-end: units.$u1;\r\n}\r\n","import {\r\n Component,\r\n ComponentInterface,\r\n Element,\r\n forceUpdate,\r\n FunctionalComponent,\r\n h,\r\n Host,\r\n Listen,\r\n Prop,\r\n State,\r\n} from \"@stencil/core\";\r\nimport debounce from \"debounce\";\r\nimport { createFocusTrap, FocusTrap } from \"focus-trap\";\r\n\r\ntype ImageOverlayWijzigactie = \"voegtoe\" | \"verwijder\";\r\n\r\nconst wijzigactieLabels: { [wijzigactie in ImageOverlayWijzigactie]: string } = {\r\n verwijder: \"Verwijderd\",\r\n voegtoe: \"Toegevoegd\",\r\n};\r\n\r\nconst Dimmer: FunctionalComponent<{\r\n active: boolean;\r\n src: string | undefined;\r\n alt: string | undefined;\r\n ref: (element: HTMLHeadingElement | undefined) => void;\r\n click: () => void;\r\n}> = ({ active, src, alt, ref, click }, children) =>\r\n active &&\r\n src &&\r\n alt && (\r\n <div class=\"dimmer\">\r\n <div class=\"wrapper\" ref={ref}>\r\n {children[2]}\r\n {children[0]}\r\n <img src={src} alt={alt} />\r\n <button type=\"button\" class=\"close\" onClick={click}>\r\n <dso-icon icon=\"times\"></dso-icon>\r\n <span>Sluiten</span>\r\n </button>\r\n {children[1]}\r\n </div>\r\n </div>\r\n );\r\n\r\n@Component({\r\n tag: \"dso-image-overlay\",\r\n styleUrl: \"./image-overlay.scss\",\r\n shadow: true,\r\n})\r\nexport class ImageOverlay implements ComponentInterface {\r\n @Element()\r\n host!: HTMLDsoImageOverlayElement;\r\n\r\n /**\r\n * The wijzigactie.\r\n */\r\n @Prop()\r\n wijzigactie?: string;\r\n\r\n @State()\r\n active = false;\r\n\r\n @State()\r\n zoomable = false;\r\n\r\n private buttonElement: HTMLButtonElement | undefined;\r\n\r\n private wrapperElement: HTMLDivElement | undefined;\r\n\r\n private trap: FocusTrap | undefined;\r\n\r\n private titelSlot: HTMLElement | null = null;\r\n\r\n private bijschriftSlot: HTMLElement | null = null;\r\n\r\n private mutationObserver?: MutationObserver;\r\n\r\n private resizeObserver?: ResizeObserver;\r\n\r\n @Listen(\"load\", { capture: true })\r\n loadListener(event: Event) {\r\n if (event.target instanceof HTMLImageElement) {\r\n this.setZoomable(event.target);\r\n }\r\n }\r\n\r\n connectedCallback() {\r\n this.titelSlot = this.host.querySelector<HTMLDivElement>(\"div[slot='titel']\");\r\n\r\n this.bijschriftSlot = this.host.querySelector<HTMLDivElement>(\"div[slot='bijschrift']\");\r\n }\r\n\r\n componentDidLoad() {\r\n this.resizeObserver = new ResizeObserver(\r\n debounce(() => {\r\n const imgElement = this.host.querySelector(\"img\");\r\n\r\n if (imgElement instanceof HTMLImageElement) {\r\n this.setZoomable(imgElement);\r\n }\r\n }, 200),\r\n );\r\n\r\n this.mutationObserver = new MutationObserver((e) => {\r\n forceUpdate(this.host);\r\n\r\n if (e[0]?.type === \"childList\") {\r\n this.resizeObserver?.disconnect();\r\n // <img> is gone or a new element.\r\n this.initZoomableImage();\r\n }\r\n });\r\n\r\n this.mutationObserver.observe(this.host, {\r\n attributes: true,\r\n subtree: true,\r\n attributeFilter: [\"src\", \"alt\"],\r\n childList: true,\r\n });\r\n\r\n this.initZoomableImage();\r\n }\r\n\r\n disconnectedCallback() {\r\n this.trap?.deactivate();\r\n this.mutationObserver?.disconnect();\r\n this.resizeObserver?.disconnect();\r\n }\r\n\r\n private initZoomableImage(): void {\r\n const imgElement = this.host.querySelector(\"img\");\r\n\r\n if (!(imgElement instanceof HTMLImageElement)) {\r\n return;\r\n }\r\n\r\n // Due to timing issues where the image is loaded before we listen to load events we double check if the image is already complete.\r\n if (imgElement.complete) {\r\n this.setZoomable(imgElement);\r\n }\r\n\r\n this.resizeObserver?.observe(imgElement);\r\n }\r\n\r\n private setZoomable(imageElement: HTMLImageElement): void {\r\n const { width, naturalWidth, height, naturalHeight } = imageElement;\r\n\r\n this.zoomable = width < naturalWidth || height < naturalHeight;\r\n }\r\n\r\n private isWijzigactie(wijzigActie: string): wijzigActie is ImageOverlayWijzigactie {\r\n return wijzigActie === \"voegtoe\" || wijzigActie === \"verwijder\";\r\n }\r\n\r\n render() {\r\n const { src, alt } = this.host.querySelector(\"img\") ?? {};\r\n\r\n const editActionLabel: string | undefined =\r\n (this.wijzigactie && this.isWijzigactie(this.wijzigactie) && wijzigactieLabels[this.wijzigactie]) || undefined;\r\n\r\n const button = this.zoomable && (\r\n <button\r\n type=\"button\"\r\n class=\"open\"\r\n ref={(element) => (this.buttonElement = element)}\r\n onClick={() => (this.active = true)}\r\n >\r\n <dso-icon icon=\"external-link\"></dso-icon>\r\n <span>Afbeelding vergroot weergeven</span>\r\n </button>\r\n );\r\n\r\n if (this.wijzigactie === \"verwijder\") {\r\n return (\r\n <Host onClick={() => this.buttonElement?.focus()}>\r\n <del class=\"editaction-remove\">\r\n <div class=\"editaction-label\">{editActionLabel}:</div>\r\n <Dimmer\r\n active={this.active}\r\n src={src}\r\n alt={alt}\r\n ref={(element) => (this.wrapperElement = element)}\r\n click={() => (this.active = false)}\r\n >\r\n {this.titelSlot && (\r\n <div class=\"title\">\r\n <slot name=\"titel\" />\r\n </div>\r\n )}\r\n <div class=\"figuur-bijschrift\" hidden={!this.bijschriftSlot}>\r\n <slot name=\"bijschrift\" />\r\n </div>\r\n {<div class=\"editaction-label\">{editActionLabel}:</div>}\r\n </Dimmer>\r\n <slot />\r\n {button}\r\n </del>\r\n </Host>\r\n );\r\n }\r\n\r\n if (this.wijzigactie === \"voegtoe\") {\r\n return (\r\n <Host onClick={() => this.buttonElement?.focus()}>\r\n <ins class=\"editaction-add\">\r\n <div class=\"editaction-label\">{editActionLabel}:</div>\r\n <Dimmer\r\n active={this.active}\r\n src={src}\r\n alt={alt}\r\n ref={(element) => (this.wrapperElement = element)}\r\n click={() => (this.active = false)}\r\n >\r\n {this.titelSlot && (\r\n <div class=\"title\">\r\n <slot name=\"titel\" />\r\n </div>\r\n )}\r\n <div class=\"figuur-bijschrift\" hidden={!this.bijschriftSlot}>\r\n <slot name=\"bijschrift\" />\r\n </div>\r\n {<div class=\"editaction-label\">{editActionLabel}:</div>}\r\n </Dimmer>\r\n <slot />\r\n {button}\r\n </ins>\r\n </Host>\r\n );\r\n }\r\n\r\n return (\r\n <Host onClick={() => this.buttonElement?.focus()}>\r\n <Dimmer\r\n active={this.active}\r\n src={src}\r\n alt={alt}\r\n ref={(element) => (this.wrapperElement = element)}\r\n click={() => (this.active = false)}\r\n >\r\n {this.titelSlot && (\r\n <div class=\"title\">\r\n <slot name=\"titel\" />\r\n </div>\r\n )}\r\n <div class=\"figuur-bijschrift\" hidden={!this.bijschriftSlot}>\r\n <slot name=\"bijschrift\" />\r\n </div>\r\n </Dimmer>\r\n <slot />\r\n {button}\r\n </Host>\r\n );\r\n }\r\n\r\n componentDidRender() {\r\n if (this.active && this.wrapperElement && !this.trap) {\r\n this.trap = createFocusTrap(this.wrapperElement, {\r\n escapeDeactivates: true,\r\n clickOutsideDeactivates: (e) => {\r\n if (e instanceof MouseEvent && e.composedPath()[0] === this.wrapperElement) {\r\n this.active = false;\r\n\r\n return false;\r\n }\r\n\r\n return true;\r\n },\r\n setReturnFocus: this.buttonElement ?? false,\r\n onDeactivate: () => (this.active = false),\r\n }).activate();\r\n } else if (!this.active && this.trap) {\r\n this.trap?.deactivate();\r\n\r\n delete this.trap;\r\n }\r\n }\r\n}\r\n"],"version":3}
|
|
1
|
+
{"file":"image-overlay.js","mappings":";;;;;AAAA,MAAM,eAAe,GAAG,sijBAAsijB,CAAC;AAC/jjB,8BAAe,eAAe;;ACgB9B,MAAM,iBAAiB,GAAyD;IAC9E,SAAS,EAAE,YAAY;IAC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I,CAAC,IAAI,0CAAE,UAAU,EAAE,CAAC;YAExB,OAAO,IAAI,CAAC,IAAI,CAAC;SAClB;KACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/image-overlay/image-overlay.scss?tag=dso-image-overlay&encapsulation=shadow","src/components/image-overlay/image-overlay.tsx"],"sourcesContent":["@use \"~dso-toolkit/src/utilities\";\r\n\r\n@use \"~dso-toolkit/src/variables/colors\";\r\n@use \"~dso-toolkit/src/variables/units\";\r\n@use \"~dso-toolkit/src/variables/zindex\";\r\n\r\n@use \"~dso-toolkit/src/components/button\";\r\n@use \"~dso-toolkit/src/components/insert\";\r\n@use \"~dso-toolkit/src/components/delete\";\r\n\r\n:host {\r\n display: inline-block;\r\n position: relative;\r\n}\r\n\r\n:host(:hover) .open,\r\n.open:focus {\r\n opacity: 1;\r\n}\r\n\r\nbutton {\r\n @include button.element();\r\n}\r\n\r\n.open {\r\n @include button.secondary($modifiers: false, $icon-only: true);\r\n\r\n border: 0;\r\n box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.5);\r\n min-inline-size: auto;\r\n padding: units.$u1;\r\n opacity: 0;\r\n position: absolute;\r\n inset-inline-end: units.$u2;\r\n inset-block-start: units.$u2;\r\n}\r\n\r\n.dimmer {\r\n position: fixed;\r\n inset: 0;\r\n z-index: zindex.$image-overlay - 1;\r\n display: flex;\r\n padding: units.$u4;\r\n background-color: fade-out(colors.$wit, 0.2);\r\n justify-content: center;\r\n}\r\n\r\n.wrapper {\r\n align-self: center;\r\n box-shadow: 0 units.$u1 units.$u3 0 rgba(25, 25, 25, 0.4);\r\n line-height: 0;\r\n outline: 4px solid colors.$wit;\r\n position: relative;\r\n z-index: zindex.$image-overlay;\r\n\r\n .title {\r\n background-color: colors.$wit;\r\n font-weight: 700;\r\n line-height: initial;\r\n padding: units.$u1;\r\n position: absolute;\r\n }\r\n\r\n img {\r\n inline-size: auto;\r\n block-size: auto;\r\n max-inline-size: 100%;\r\n max-block-size: calc(100vh - units.$u8);\r\n }\r\n\r\n .figuur-bijschrift:not([hidden]) {\r\n display: block;\r\n font-size: 0.75rem;\r\n font-style: italic;\r\n padding-block-end: units.$u1 * 1.5;\r\n padding-block-start: units.$u2;\r\n }\r\n}\r\n\r\n.close {\r\n @include button.secondary($modifiers: false, $icon-only: true);\r\n\r\n border: 0;\r\n box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.5);\r\n min-inline-size: auto;\r\n padding: units.$u1;\r\n position: absolute;\r\n inset-block-start: units.$u2;\r\n inset-inline-end: units.$u2;\r\n}\r\n\r\nins.editaction-add {\r\n display: inline-block;\r\n margin-block-end: units.$u1;\r\n padding: units.$u1;\r\n @include insert.element();\r\n @include insert.root();\r\n\r\n .wrapper {\r\n outline: none;\r\n padding: units.$u1;\r\n @include insert.root();\r\n\r\n .editaction-label {\r\n line-height: 1.5;\r\n }\r\n\r\n .close {\r\n inset-block-start: units.$u6;\r\n }\r\n }\r\n\r\n .open {\r\n inset-block-start: units.$u6;\r\n }\r\n}\r\n\r\ndel.editaction-remove {\r\n display: inline-block;\r\n margin-block-end: units.$u1;\r\n padding: units.$u1;\r\n @include delete.root();\r\n\r\n .wrapper {\r\n outline: none;\r\n padding: units.$u1;\r\n @include delete.root();\r\n\r\n .title {\r\n text-decoration: line-through;\r\n }\r\n\r\n .editaction-label {\r\n line-height: 1.5;\r\n }\r\n\r\n .close {\r\n inset-block-start: units.$u6;\r\n }\r\n }\r\n\r\n .open {\r\n inset-block-start: units.$u6;\r\n }\r\n}\r\n\r\n.editaction-label {\r\n font-style: italic;\r\n margin-block-end: units.$u1;\r\n}\r\n","import {\r\n Component,\r\n ComponentInterface,\r\n Element,\r\n forceUpdate,\r\n FunctionalComponent,\r\n h,\r\n Host,\r\n Listen,\r\n Prop,\r\n State,\r\n} from \"@stencil/core\";\r\nimport debounce from \"debounce\";\r\nimport { createFocusTrap, FocusTrap } from \"focus-trap\";\r\n\r\ntype ImageOverlayWijzigactie = \"voegtoe\" | \"verwijder\";\r\n\r\nconst wijzigactieLabels: { [wijzigactie in ImageOverlayWijzigactie]: string } = {\r\n verwijder: \"Verwijderd\",\r\n voegtoe: \"Toegevoegd\",\r\n};\r\n\r\nconst Dimmer: FunctionalComponent<{\r\n active: boolean;\r\n src: string | undefined;\r\n alt: string | undefined;\r\n ref: (element: HTMLHeadingElement | undefined) => void;\r\n click: () => void;\r\n}> = ({ active, src, alt, ref, click }, children) =>\r\n active &&\r\n src &&\r\n alt && (\r\n <div class=\"dimmer\">\r\n <div class=\"wrapper\" ref={ref}>\r\n {children[2]}\r\n {children[0]}\r\n <img src={src} alt={alt} />\r\n <button type=\"button\" class=\"close\" onClick={click}>\r\n <dso-icon icon=\"times\"></dso-icon>\r\n <span>Sluiten</span>\r\n </button>\r\n {children[1]}\r\n </div>\r\n </div>\r\n );\r\n\r\n@Component({\r\n tag: \"dso-image-overlay\",\r\n styleUrl: \"./image-overlay.scss\",\r\n shadow: true,\r\n})\r\nexport class ImageOverlay implements ComponentInterface {\r\n @Element()\r\n host!: HTMLDsoImageOverlayElement;\r\n\r\n /**\r\n * The wijzigactie.\r\n */\r\n @Prop()\r\n wijzigactie?: string;\r\n\r\n @State()\r\n active = false;\r\n\r\n @State()\r\n zoomable = false;\r\n\r\n private buttonElement: HTMLButtonElement | undefined;\r\n\r\n private wrapperElement: HTMLDivElement | undefined;\r\n\r\n private trap: FocusTrap | undefined;\r\n\r\n private titelSlot: HTMLElement | null = null;\r\n\r\n private bijschriftSlot: HTMLElement | null = null;\r\n\r\n private mutationObserver?: MutationObserver;\r\n\r\n private resizeObserver?: ResizeObserver;\r\n\r\n @Listen(\"load\", { capture: true })\r\n loadListener(event: Event) {\r\n if (event.target instanceof HTMLImageElement) {\r\n this.setZoomable(event.target);\r\n }\r\n }\r\n\r\n connectedCallback() {\r\n this.titelSlot = this.host.querySelector<HTMLDivElement>(\"div[slot='titel']\");\r\n\r\n this.bijschriftSlot = this.host.querySelector<HTMLDivElement>(\"div[slot='bijschrift']\");\r\n }\r\n\r\n componentDidLoad() {\r\n this.resizeObserver = new ResizeObserver(\r\n debounce(() => {\r\n const imgElement = this.host.querySelector(\"img\");\r\n\r\n if (imgElement instanceof HTMLImageElement) {\r\n this.setZoomable(imgElement);\r\n }\r\n }, 200),\r\n );\r\n\r\n this.mutationObserver = new MutationObserver((e) => {\r\n forceUpdate(this.host);\r\n\r\n if (e[0]?.type === \"childList\") {\r\n this.resizeObserver?.disconnect();\r\n // <img> is gone or a new element.\r\n this.initZoomableImage();\r\n }\r\n });\r\n\r\n this.mutationObserver.observe(this.host, {\r\n attributes: true,\r\n subtree: true,\r\n attributeFilter: [\"src\", \"alt\"],\r\n childList: true,\r\n });\r\n\r\n this.initZoomableImage();\r\n }\r\n\r\n disconnectedCallback() {\r\n this.trap?.deactivate();\r\n this.mutationObserver?.disconnect();\r\n this.resizeObserver?.disconnect();\r\n }\r\n\r\n private initZoomableImage(): void {\r\n const imgElement = this.host.querySelector(\"img\");\r\n\r\n if (!(imgElement instanceof HTMLImageElement)) {\r\n return;\r\n }\r\n\r\n // Due to timing issues where the image is loaded before we listen to load events we double check if the image is already complete.\r\n if (imgElement.complete) {\r\n this.setZoomable(imgElement);\r\n }\r\n\r\n this.resizeObserver?.observe(imgElement);\r\n }\r\n\r\n private setZoomable(imageElement: HTMLImageElement): void {\r\n const { width, naturalWidth, height, naturalHeight } = imageElement;\r\n\r\n this.zoomable = width < naturalWidth || height < naturalHeight;\r\n }\r\n\r\n private isWijzigactie(wijzigactie: string): wijzigactie is ImageOverlayWijzigactie {\r\n return wijzigactie === \"voegtoe\" || wijzigactie === \"verwijder\";\r\n }\r\n\r\n render() {\r\n const { src, alt } = this.host.querySelector(\"img\") ?? {};\r\n\r\n const editActionLabel: string | undefined =\r\n (this.wijzigactie && this.isWijzigactie(this.wijzigactie) && wijzigactieLabels[this.wijzigactie]) || undefined;\r\n\r\n const button = this.zoomable && (\r\n <button\r\n type=\"button\"\r\n class=\"open\"\r\n ref={(element) => (this.buttonElement = element)}\r\n onClick={() => (this.active = true)}\r\n >\r\n <dso-icon icon=\"external-link\"></dso-icon>\r\n <span>Afbeelding vergroot weergeven</span>\r\n </button>\r\n );\r\n\r\n if (this.wijzigactie === \"verwijder\") {\r\n return (\r\n <Host onClick={() => this.buttonElement?.focus()}>\r\n <del class=\"editaction-remove\">\r\n <div class=\"editaction-label\">{editActionLabel}:</div>\r\n <Dimmer\r\n active={this.active}\r\n src={src}\r\n alt={alt}\r\n ref={(element) => (this.wrapperElement = element)}\r\n click={() => (this.active = false)}\r\n >\r\n {this.titelSlot && (\r\n <div class=\"title\">\r\n <slot name=\"titel\" />\r\n </div>\r\n )}\r\n <div class=\"figuur-bijschrift\" hidden={!this.bijschriftSlot}>\r\n <slot name=\"bijschrift\" />\r\n </div>\r\n {<div class=\"editaction-label\">{editActionLabel}:</div>}\r\n </Dimmer>\r\n <slot />\r\n {button}\r\n </del>\r\n </Host>\r\n );\r\n }\r\n\r\n if (this.wijzigactie === \"voegtoe\") {\r\n return (\r\n <Host onClick={() => this.buttonElement?.focus()}>\r\n <ins class=\"editaction-add\">\r\n <div class=\"editaction-label\">{editActionLabel}:</div>\r\n <Dimmer\r\n active={this.active}\r\n src={src}\r\n alt={alt}\r\n ref={(element) => (this.wrapperElement = element)}\r\n click={() => (this.active = false)}\r\n >\r\n {this.titelSlot && (\r\n <div class=\"title\">\r\n <slot name=\"titel\" />\r\n </div>\r\n )}\r\n <div class=\"figuur-bijschrift\" hidden={!this.bijschriftSlot}>\r\n <slot name=\"bijschrift\" />\r\n </div>\r\n {<div class=\"editaction-label\">{editActionLabel}:</div>}\r\n </Dimmer>\r\n <slot />\r\n {button}\r\n </ins>\r\n </Host>\r\n );\r\n }\r\n\r\n return (\r\n <Host onClick={() => this.buttonElement?.focus()}>\r\n <Dimmer\r\n active={this.active}\r\n src={src}\r\n alt={alt}\r\n ref={(element) => (this.wrapperElement = element)}\r\n click={() => (this.active = false)}\r\n >\r\n {this.titelSlot && (\r\n <div class=\"title\">\r\n <slot name=\"titel\" />\r\n </div>\r\n )}\r\n <div class=\"figuur-bijschrift\" hidden={!this.bijschriftSlot}>\r\n <slot name=\"bijschrift\" />\r\n </div>\r\n </Dimmer>\r\n <slot />\r\n {button}\r\n </Host>\r\n );\r\n }\r\n\r\n componentDidRender() {\r\n if (this.active && this.wrapperElement && !this.trap) {\r\n this.trap = createFocusTrap(this.wrapperElement, {\r\n escapeDeactivates: true,\r\n clickOutsideDeactivates: (e) => {\r\n if (e instanceof MouseEvent && e.composedPath()[0] === this.wrapperElement) {\r\n this.active = false;\r\n\r\n return false;\r\n }\r\n\r\n return true;\r\n },\r\n setReturnFocus: this.buttonElement ?? false,\r\n onDeactivate: () => (this.active = false),\r\n }).activate();\r\n } else if (!this.active && this.trap) {\r\n this.trap?.deactivate();\r\n\r\n delete this.trap;\r\n }\r\n }\r\n}\r\n"],"version":3}
|
|
@@ -17,12 +17,14 @@ export { AnnotationButton as DsoAnnotationButton } from '../types/components/ann
|
|
|
17
17
|
export { defineCustomElement as defineCustomElementDsoAnnotationButton } from './dso-annotation-button';
|
|
18
18
|
export { AnnotationGebiedsaanwijzing as DsoAnnotationGebiedsaanwijzing } from '../types/components/annotation/annotation-gebiedsaanwijzing/annotation-gebiedsaanwijzing';
|
|
19
19
|
export { defineCustomElement as defineCustomElementDsoAnnotationGebiedsaanwijzing } from './dso-annotation-gebiedsaanwijzing';
|
|
20
|
-
export {
|
|
21
|
-
export { defineCustomElement as
|
|
20
|
+
export { AnnotationKaart as DsoAnnotationKaart } from '../types/components/annotation/annotation-kaart/annotation-kaart';
|
|
21
|
+
export { defineCustomElement as defineCustomElementDsoAnnotationKaart } from './dso-annotation-kaart';
|
|
22
|
+
export { AnnotationLocatie as DsoAnnotationLocatie } from '../types/components/annotation/annotation-locatie/annotation-locatie';
|
|
23
|
+
export { defineCustomElement as defineCustomElementDsoAnnotationLocatie } from './dso-annotation-locatie';
|
|
24
|
+
export { AnnotationOmgevingsnormwaarde as DsoAnnotationOmgevingsnormwaarde } from '../types/components/annotation/annotation-omgevingsnormwaarde/annotation-omgevingsnormwaarde';
|
|
25
|
+
export { defineCustomElement as defineCustomElementDsoAnnotationOmgevingsnormwaarde } from './dso-annotation-omgevingsnormwaarde';
|
|
22
26
|
export { AnnotationOutput as DsoAnnotationOutput } from '../types/components/annotation-output/annotation-output';
|
|
23
27
|
export { defineCustomElement as defineCustomElementDsoAnnotationOutput } from './dso-annotation-output';
|
|
24
|
-
export { AnnotationWerkingsgebied as DsoAnnotationWerkingsgebied } from '../types/components/annotation/annotation-werkingsgebied/annotation-werkingsgebied';
|
|
25
|
-
export { defineCustomElement as defineCustomElementDsoAnnotationWerkingsgebied } from './dso-annotation-werkingsgebied';
|
|
26
28
|
export { AttachmentsCounter as DsoAttachmentsCounter } from '../types/components/attachments-counter/attachments-counter';
|
|
27
29
|
export { defineCustomElement as defineCustomElementDsoAttachmentsCounter } from './dso-attachments-counter';
|
|
28
30
|
export { Autosuggest as DsoAutosuggest } from '../types/components/autosuggest/autosuggest';
|
|
@@ -87,6 +89,8 @@ export { ProgressBar as DsoProgressBar } from '../types/components/progress-bar/
|
|
|
87
89
|
export { defineCustomElement as defineCustomElementDsoProgressBar } from './dso-progress-bar';
|
|
88
90
|
export { Progressindicator as DsoProgressIndicator } from '../types/components/progress-indicator/progress-indicator';
|
|
89
91
|
export { defineCustomElement as defineCustomElementDsoProgressIndicator } from './dso-progress-indicator';
|
|
92
|
+
export { Renvooi as DsoRenvooi } from '../types/components/renvooi/renvooi';
|
|
93
|
+
export { defineCustomElement as defineCustomElementDsoRenvooi } from './dso-renvooi';
|
|
90
94
|
export { ResponsiveElement as DsoResponsiveElement } from '../types/components/responsive-element/responsive-element';
|
|
91
95
|
export { defineCustomElement as defineCustomElementDsoResponsiveElement } from './dso-responsive-element';
|
|
92
96
|
export { Scrollable as DsoScrollable } from '../types/components/scrollable/scrollable';
|
package/dist/components/index.js
CHANGED
|
@@ -8,9 +8,10 @@ export { DsoAlert, defineCustomElement as defineCustomElementDsoAlert } from './
|
|
|
8
8
|
export { DsoAnnotationActiviteit, defineCustomElement as defineCustomElementDsoAnnotationActiviteit } from './dso-annotation-activiteit.js';
|
|
9
9
|
export { DsoAnnotationButton, defineCustomElement as defineCustomElementDsoAnnotationButton } from './dso-annotation-button.js';
|
|
10
10
|
export { DsoAnnotationGebiedsaanwijzing, defineCustomElement as defineCustomElementDsoAnnotationGebiedsaanwijzing } from './dso-annotation-gebiedsaanwijzing.js';
|
|
11
|
-
export {
|
|
11
|
+
export { DsoAnnotationKaart, defineCustomElement as defineCustomElementDsoAnnotationKaart } from './dso-annotation-kaart.js';
|
|
12
|
+
export { DsoAnnotationLocatie, defineCustomElement as defineCustomElementDsoAnnotationLocatie } from './dso-annotation-locatie.js';
|
|
13
|
+
export { DsoAnnotationOmgevingsnormwaarde, defineCustomElement as defineCustomElementDsoAnnotationOmgevingsnormwaarde } from './dso-annotation-omgevingsnormwaarde.js';
|
|
12
14
|
export { DsoAnnotationOutput, defineCustomElement as defineCustomElementDsoAnnotationOutput } from './dso-annotation-output.js';
|
|
13
|
-
export { DsoAnnotationWerkingsgebied, defineCustomElement as defineCustomElementDsoAnnotationWerkingsgebied } from './dso-annotation-werkingsgebied.js';
|
|
14
15
|
export { DsoAttachmentsCounter, defineCustomElement as defineCustomElementDsoAttachmentsCounter } from './dso-attachments-counter.js';
|
|
15
16
|
export { DsoAutosuggest, defineCustomElement as defineCustomElementDsoAutosuggest } from './dso-autosuggest.js';
|
|
16
17
|
export { DsoBadge, defineCustomElement as defineCustomElementDsoBadge } from './dso-badge.js';
|
|
@@ -43,6 +44,7 @@ export { DsoOzonContent, defineCustomElement as defineCustomElementDsoOzonConten
|
|
|
43
44
|
export { DsoPagination, defineCustomElement as defineCustomElementDsoPagination } from './dso-pagination.js';
|
|
44
45
|
export { DsoProgressBar, defineCustomElement as defineCustomElementDsoProgressBar } from './dso-progress-bar.js';
|
|
45
46
|
export { DsoProgressIndicator, defineCustomElement as defineCustomElementDsoProgressIndicator } from './dso-progress-indicator.js';
|
|
47
|
+
export { DsoRenvooi, defineCustomElement as defineCustomElementDsoRenvooi } from './dso-renvooi.js';
|
|
46
48
|
export { DsoResponsiveElement, defineCustomElement as defineCustomElementDsoResponsiveElement } from './dso-responsive-element.js';
|
|
47
49
|
export { DsoScrollable, defineCustomElement as defineCustomElementDsoScrollable } from './dso-scrollable.js';
|
|
48
50
|
export { DsoSelectable, defineCustomElement as defineCustomElementDsoSelectable } from './dso-selectable.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"index.js","mappings":"
|
|
1
|
+
{"file":"index.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
|
|
@@ -28,7 +28,7 @@ const InfoButton = /*@__PURE__*/ proxyCustomElement(class InfoButton extends HTM
|
|
|
28
28
|
this.dsoToggle.emit({ originalEvent: e, active: this.active });
|
|
29
29
|
}
|
|
30
30
|
render() {
|
|
31
|
-
return (h(Host, { key: '
|
|
31
|
+
return (h(Host, { key: 'a6e2aa03eb9724228f309392cfb9b2a8da123a15', onMouseenter: () => (this.hover = true), onMouseleave: () => (this.hover = false) }, h("button", { key: '419f8090a67ec29c910b1d925177451d4e98609c', type: "button", class: clsx({ "dso-open": !!this.active, "dso-info-secondary": !!this.secondary }), "aria-expanded": typeof this.active === "boolean" ? this.active.toString() : undefined, onClick: (e) => this.handleToggle(e), ref: (element) => (this.button = element) }, h("dso-icon", { key: '2f5b81f8142336f42e51c800fc8486b98095a40c', icon: this.active || this.hover ? "info-active" : "info" }), h("span", { key: '310fa68092bbee52d8c3935e48d6e5befd16c4ea', class: "sr-only" }, this.label))));
|
|
32
32
|
}
|
|
33
33
|
static get style() { return DsoInfoButtonStyle0; }
|
|
34
34
|
}, [1, "dso-info-button", {
|
package/dist/components/info.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Fragment } from '@stencil/core/internal/client';
|
|
2
2
|
import { d as defineCustomElement$1 } from './icon.js';
|
|
3
3
|
|
|
4
|
-
const infoCss = ":host{display:block;padding:16px 32px
|
|
4
|
+
const infoCss = ":host{display:block;padding-block:16px;padding-inline:16px 32px;position:relative}:host>button{background-color:transparent;border-style:none;padding:0;position:absolute;inset-inline-end:8px;inset-block-start:8px}:host(:not([active],[fixed])),:host([active=false]:not([fixed])),:host([active=false][fixed=false]){display:none}button{-webkit-appearance:button;color:inherit;cursor:pointer;font:inherit;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible;text-transform:none}button[disabled]{cursor:default}button::-moz-focus-inner{border:0;padding:0}*,*::after,*::before{box-sizing:border-box}.sr-only{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}";
|
|
5
5
|
const DsoInfoStyle0 = infoCss;
|
|
6
6
|
|
|
7
7
|
const Info = /*@__PURE__*/ proxyCustomElement(class Info extends HTMLElement {
|
|
@@ -14,7 +14,7 @@ const Info = /*@__PURE__*/ proxyCustomElement(class Info extends HTMLElement {
|
|
|
14
14
|
this.active = undefined;
|
|
15
15
|
}
|
|
16
16
|
render() {
|
|
17
|
-
return (h(Fragment, { key: '
|
|
17
|
+
return (h(Fragment, { key: '902f98c97248e2ddd76978921405904b843de499' }, h("slot", { key: 'fe9eed78ba371fc455ccaa6d9d3cc5eb5d042184' }), !this.fixed && (h("button", { key: 'c915ed3281316046b27b60e32d5f8a2d3399839d', type: "button", onClick: (e) => this.dsoClose.emit(e) }, h("dso-icon", { key: '7f342560dc0cd59123e8a1f3a37fcf0d88da9efa', icon: "times" }), h("span", { key: '966b0fdafa67cd988cb5c2c7efbcc90288810ca5', class: "sr-only" }, "Sluiten")))));
|
|
18
18
|
}
|
|
19
19
|
static get style() { return DsoInfoStyle0; }
|
|
20
20
|
}, [1, "dso-info", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"info.js","mappings":";;;AAAA,MAAM,OAAO,GAAG,
|
|
1
|
+
{"file":"info.js","mappings":";;;AAAA,MAAM,OAAO,GAAG,ivBAAivB,CAAC;AAClwB,sBAAe,OAAO;;MCMT,IAAI;;;;;;;;;IAmBf,MAAM;QACJ,QACE,EAAC,QAAQ,uDACP,8DAAa,EACZ,CAAC,IAAI,CAAC,KAAK,KACV,+DAAQ,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,IACzD,iEAAU,IAAI,EAAC,OAAO,GAAY,EAClC,6DAAM,KAAK,EAAC,SAAS,cAAe,CAC7B,CACV,CACQ,EACX;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/info/info.scss?tag=dso-info&encapsulation=shadow","src/components/info/info.tsx"],"sourcesContent":["@use \"~dso-toolkit/src/utilities\";\r\n@use \"~dso-toolkit/src/components/button\";\r\n@use \"~dso-toolkit/src/components/info\";\r\n\r\n:host {\r\n display: block;\r\n\r\n @include info.root();\r\n}\r\n\r\n:host(:not([active], [fixed])),\r\n:host([active=\"false\"]:not([fixed])),\r\n:host([active=\"false\"][fixed=\"false\"]) {\r\n display: none;\r\n}\r\n\r\nbutton {\r\n @include button.element();\r\n}\r\n\r\n@include utilities.box-sizing();\r\n\r\n.sr-only {\r\n @include utilities.sr-only();\r\n}\r\n","import { h, Component, Event, Prop, EventEmitter, Fragment } from \"@stencil/core\";\r\n\r\n@Component({\r\n tag: \"dso-info\",\r\n styleUrl: \"./info.scss\",\r\n shadow: true,\r\n})\r\nexport class Info {\r\n /**\r\n * Set to true if the Info should not be toggled and always visible.\r\n */\r\n @Prop({ reflect: true })\r\n fixed?: boolean;\r\n\r\n /**\r\n * Whether the Info is active.\r\n */\r\n @Prop({ reflect: true })\r\n active?: boolean;\r\n\r\n /**\r\n * Emitted when the user activates the close button.\r\n */\r\n @Event()\r\n dsoClose!: EventEmitter<MouseEvent>;\r\n\r\n render() {\r\n return (\r\n <Fragment>\r\n <slot></slot>\r\n {!this.fixed && (\r\n <button type=\"button\" onClick={(e) => this.dsoClose.emit(e)}>\r\n <dso-icon icon=\"times\"></dso-icon>\r\n <span class=\"sr-only\">Sluiten</span>\r\n </button>\r\n )}\r\n </Fragment>\r\n );\r\n }\r\n}\r\n"],"version":3}
|
package/dist/components/label.js
CHANGED
|
@@ -4,7 +4,7 @@ import { d as debounce } from './index2.js';
|
|
|
4
4
|
import { d as defineCustomElement$2 } from './icon.js';
|
|
5
5
|
import { d as defineCustomElement$1 } from './tooltip.js';
|
|
6
6
|
|
|
7
|
-
const labelCss = ":host{display:inline-block;max-inline-size:100%}*,*::after,*::before{box-sizing:border-box}.sr-only{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}.dso-label{border-radius:4px;display:inline-block;line-height:1.5;max-inline-size:100%;padding:4px
|
|
7
|
+
const labelCss = ":host{display:inline-block;max-inline-size:100%}*,*::after,*::before{box-sizing:border-box}.sr-only{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}.dso-label{border-radius:4px;display:inline-block;line-height:1.5;max-inline-size:100%;padding-block:4px;padding-inline:8px}.dso-label:focus-within,.dso-label.dso-hover{text-decoration:line-through}.dso-label button{background:none;border:0;border-radius:0 4px 4px 0;color:inherit;float:inline-end;font-size:1rem;margin-block-end:-4px;margin-inline-start:8px;margin-inline-end:-4px;margin-block-start:0;padding:0}.dso-label button:hover{cursor:pointer}.dso-label button>dso-icon,.dso-label button>svg.di{display:block}.dso-label{background-color:#f2f2f2;border-color:#f2f2f2;color:#191919}.dso-label.dso-label-info{background-color:#6ca4d9;border-color:#6ca4d9;color:#191919}.dso-label.dso-label-primary{background-color:#275937;border-color:#275937;color:#fff}.dso-label.dso-label-success{background-color:#39870c;border-color:#39870c;color:#fff}.dso-label.dso-label-warning{background-color:#dcd400;border-color:#dcd400;color:#191919}.dso-label.dso-label-danger{background-color:#ce3f51;border-color:#ce3f51;color:#fff}.dso-label.dso-label-error{background-color:#ce3f51;border-color:#ce3f51;color:#fff}.dso-label.dso-label-bright{background-color:#fff;border-color:#fff;color:#191919;outline:1px solid #ccc;outline-offset:-1px}.dso-label.dso-label-attention{background-color:#8b4a6a;border-color:#8b4a6a;color:#fff}.dso-label.dso-compact{padding-block:0;padding-inline:8px}.dso-label.dso-hover .dso-label-content{text-decoration:line-through}.dso-truncate.dso-label-content{display:inline-block;max-inline-size:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:bottom;white-space:nowrap}:host([removable]) .dso-truncate.dso-label-content{max-inline-size:calc(100% - 28px)}";
|
|
8
8
|
const DsoLabelStyle0 = labelCss;
|
|
9
9
|
|
|
10
10
|
const resizeObserver = new ResizeObserver(debounce((entries) => {
|
|
@@ -112,13 +112,13 @@ const Label = /*@__PURE__*/ proxyCustomElement(class Label extends HTMLElement {
|
|
|
112
112
|
this.isTruncated = false;
|
|
113
113
|
}
|
|
114
114
|
render() {
|
|
115
|
-
return (h(Fragment, { key: '
|
|
115
|
+
return (h(Fragment, { key: '63bab23d605ff8edc1fe6bd2bdac751f890d81f4' }, h("span", { key: 'c7e6f11ba9be8c3666f335c0a1acd8f0a20a1c90', "aria-describedby": "toggle-anchor", class: clsx("dso-label", {
|
|
116
116
|
[`dso-label-${this.status}`]: this.status,
|
|
117
117
|
"dso-compact": this.compact && !this.removable,
|
|
118
118
|
"dso-hover": this.removeHover || this.removeFocus,
|
|
119
|
-
}) }, h("slot", { key: '
|
|
119
|
+
}) }, h("slot", { key: 'b973a7965b5100f9ac28309dd48ffacb44276198', name: "symbol" }), h("span", { key: 'da0cc9a0f71117144d0e67efe86bc70bf970ee65', class: clsx("dso-label-content", {
|
|
120
120
|
"dso-truncate": !!this.truncate,
|
|
121
|
-
}), ref: (element) => (this.labelContent = element), tabindex: this.truncate && this.isTruncated ? 0 : undefined, onMouseEnter: () => (this.textHover = true), onMouseLeave: () => (this.textHover = false), onFocus: () => (this.textFocus = true), onBlur: () => (this.textFocus = false) }, h("slot", { key: '
|
|
121
|
+
}), ref: (element) => (this.labelContent = element), tabindex: this.truncate && this.isTruncated ? 0 : undefined, onMouseEnter: () => (this.textHover = true), onMouseLeave: () => (this.textHover = false), onFocus: () => (this.textFocus = true), onBlur: () => (this.textFocus = false) }, h("slot", { key: '0a74dc7a557ebae1a0d7a30888fe6716b4bdee72' })), this.removable && (h("button", { key: '53edfc2ee675a00196afc294fe3f92832074e0b8', type: "button", onClick: (e) => this.dsoRemoveClick.emit(e), onMouseEnter: () => (this.removeHover = true), onMouseLeave: () => (this.removeHover = false), onFocus: () => (this.removeFocus = true), onBlur: () => (this.removeFocus = false) }, h("span", { key: '4d01d7c7583881847012605dc95633875d8c63c3', class: "sr-only" }, "Verwijder: ", this.labelText), h("dso-icon", { key: '2c491a534f65603292b65905e17da3cd6c11d00f', icon: "times" })))), this.isTruncated && (h("dso-tooltip", { key: 'e7a24a236e64f272a694ae81ac9fa6a2442aa2d1', stateless: true, id: "toggle-anchor", active: this.textHover || this.textFocus, position: "top", strategy: "absolute" }, this.labelText))));
|
|
122
122
|
}
|
|
123
123
|
get host() { return this; }
|
|
124
124
|
static get watchers() { return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"label.js","mappings":";;;;;;AAAA,MAAM,QAAQ,GAAG,s0DAAs0D,CAAC;AACx1D,uBAAe,QAAQ;;ACgBvB,MAAM,cAAc,GAAG,IAAI,cAAc,CACvC,QAAQ,CAAC,CAAC,OAA8B;IACtC,OAAO,CAAC,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE;QACzB,IAAI,mBAAmB,CAAC,MAAM,CAAC,EAAE;YAC/B,MAAM,CAAC,cAAc,EAAE,CAAC;SACzB;KACF,CAAC,CAAC;AACL,CAAC,EAAE,GAAG,CAAC,CACR,CAAC;AAEF,SAAS,m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EAAC,KAAK,EACd,QAAQ,EAAC,UAAU,IAElB,IAAI,CAAC,SAAS,CACH,CACf,CACQ,EACX;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/label/label.scss?tag=dso-label&encapsulation=shadow","src/components/label/label.tsx"],"sourcesContent":["@use \"~dso-toolkit/src/utilities\";\r\n@use \"~dso-toolkit/src/variables/units\";\r\n@use \"~dso-toolkit/src/components/label\";\r\n\r\n:host {\r\n display: inline-block;\r\n max-inline-size: 100%;\r\n}\r\n\r\n@include utilities.box-sizing();\r\n\r\n// Todo: Replace .sr-only selector with web component specific selector, no need for .sr-only if we can generate the SCSS\r\n.sr-only {\r\n @include utilities.sr-only();\r\n}\r\n\r\n.dso-label {\r\n @include label.root();\r\n\r\n &.dso-hover {\r\n .dso-label-content {\r\n text-decoration: line-through;\r\n }\r\n }\r\n}\r\n\r\n.dso-truncate.dso-label-content {\r\n display: inline-block;\r\n max-inline-size: 100%;\r\n overflow: hidden;\r\n text-overflow: ellipsis; // stylelint-disable-line declaration-property-value-disallowed-list -- full text can be viewed via tooltip.\r\n vertical-align: bottom;\r\n white-space: nowrap; // stylelint-disable-line declaration-property-value-disallowed-list -- full text can be viewed via tooltip.\r\n}\r\n\r\n:host([removable]) {\r\n .dso-truncate.dso-label-content {\r\n max-inline-size: calc(100% - (units.$u3 + 4px));\r\n }\r\n}\r\n","import {\r\n h,\r\n Component,\r\n ComponentInterface,\r\n Element,\r\n Event,\r\n EventEmitter,\r\n Fragment,\r\n Method,\r\n Prop,\r\n State,\r\n Watch,\r\n Listen,\r\n} from \"@stencil/core\";\r\nimport clsx from \"clsx\";\r\nimport debounce from \"debounce\";\r\n\r\nconst resizeObserver = new ResizeObserver(\r\n debounce((entries: ResizeObserverEntry[]) => {\r\n entries.forEach(({ target }) => {\r\n if (isDsoLabelComponent(target)) {\r\n target._truncateLabel();\r\n }\r\n });\r\n }, 150),\r\n);\r\n\r\nfunction isDsoLabelComponent(element: Element): element is HTMLDsoLabelElement {\r\n return element.tagName === \"DSO-LABEL\";\r\n}\r\n\r\nfunction hasEllipses(el: HTMLElement): boolean {\r\n return el.scrollWidth > el.clientWidth;\r\n}\r\n\r\n@Component({\r\n tag: \"dso-label\",\r\n styleUrl: \"label.scss\",\r\n shadow: true,\r\n})\r\nexport class Label implements ComponentInterface {\r\n private labelContent: HTMLSpanElement | undefined;\r\n\r\n private mutationObserver?: MutationObserver;\r\n\r\n @Element()\r\n private host!: HTMLDsoLabelElement;\r\n\r\n /**\r\n * For compact Label\r\n */\r\n @Prop()\r\n compact?: boolean;\r\n\r\n /**\r\n * Shows a button that can be used to remove the Label.\r\n */\r\n @Prop()\r\n removable?: boolean;\r\n\r\n /**\r\n * The status of this Label.\r\n */\r\n @Prop()\r\n status?: \"primary\" | \"info\" | \"success\" | \"warning\" | \"danger\" | \"error\" | \"bright\" | \"attention\";\r\n\r\n /**\r\n * Emitted when the user activates the remove button.\r\n */\r\n @Event()\r\n dsoRemoveClick!: EventEmitter<MouseEvent>;\r\n\r\n @State()\r\n removeHover?: boolean;\r\n\r\n @State()\r\n removeFocus?: boolean;\r\n\r\n /**\r\n * Whether the Label is allowed to truncate the contents if it does not fit the container element.\r\n */\r\n @Prop()\r\n truncate?: boolean;\r\n\r\n @State()\r\n textHover?: boolean;\r\n\r\n @State()\r\n textFocus?: boolean;\r\n\r\n @State()\r\n isTruncated = false;\r\n\r\n @State()\r\n labelText = \"\";\r\n\r\n @Watch(\"removable\")\r\n watchRemovable(removable: boolean) {\r\n if (removable) {\r\n this.startMutationObserver();\r\n } else {\r\n this.stopMutationObserver();\r\n }\r\n }\r\n\r\n @Watch(\"truncate\")\r\n watchTruncate(truncate: boolean) {\r\n if (truncate) {\r\n this.startTruncate();\r\n } else {\r\n this.stopTruncate();\r\n }\r\n }\r\n\r\n @Listen(\"keydown\", { target: \"document\" })\r\n keyDownListener(event: KeyboardEvent) {\r\n if (event.key === \"Escape\") {\r\n this.textHover = false;\r\n this.textFocus = false;\r\n }\r\n }\r\n\r\n /**\r\n * @internal\r\n */\r\n @Method()\r\n async _truncateLabel() {\r\n setTimeout(() => {\r\n this.isTruncated = !!this.labelContent && hasEllipses(this.labelContent);\r\n });\r\n }\r\n\r\n private syncLabelText() {\r\n this.labelText = this.host.textContent?.trim() ?? \"\";\r\n }\r\n\r\n componentDidLoad() {\r\n if (this.truncate) {\r\n this.startTruncate();\r\n }\r\n\r\n if (this.removable) {\r\n this.startMutationObserver();\r\n }\r\n }\r\n\r\n disconnectedCallback() {\r\n this.stopTruncate();\r\n\r\n this.stopMutationObserver(true);\r\n }\r\n\r\n /** The mutationObserver fetches the text placed inside the label, this is then used for the remove button and tooltip. */\r\n private startMutationObserver(): void {\r\n this.mutationObserver = new MutationObserver(() => this.syncLabelText());\r\n\r\n this.mutationObserver.observe(this.host, {\r\n characterData: true,\r\n childList: true,\r\n subtree: true,\r\n attributes: true,\r\n });\r\n\r\n this.syncLabelText();\r\n }\r\n\r\n private stopMutationObserver(force = false): void {\r\n if (force || !(this.truncate && this.removable)) {\r\n this.mutationObserver?.disconnect();\r\n\r\n delete this.mutationObserver;\r\n }\r\n }\r\n\r\n private startTruncate(): void {\r\n resizeObserver.observe(this.host);\r\n this.startMutationObserver();\r\n this._truncateLabel();\r\n }\r\n\r\n private stopTruncate(): void {\r\n resizeObserver.unobserve(this.host);\r\n this.stopMutationObserver();\r\n this.isTruncated = false;\r\n }\r\n\r\n render() {\r\n return (\r\n <Fragment>\r\n <span\r\n aria-describedby=\"toggle-anchor\"\r\n class={clsx(\"dso-label\", {\r\n [`dso-label-${this.status}`]: this.status,\r\n \"dso-compact\": this.compact && !this.removable,\r\n \"dso-hover\": this.removeHover || this.removeFocus,\r\n })}\r\n >\r\n <slot name=\"symbol\"></slot>\r\n <span\r\n class={clsx(\"dso-label-content\", {\r\n \"dso-truncate\": !!this.truncate,\r\n })}\r\n ref={(element) => (this.labelContent = element)}\r\n tabindex={this.truncate && this.isTruncated ? 0 : undefined}\r\n onMouseEnter={() => (this.textHover = true)}\r\n onMouseLeave={() => (this.textHover = false)}\r\n onFocus={() => (this.textFocus = true)}\r\n onBlur={() => (this.textFocus = false)}\r\n >\r\n <slot></slot>\r\n </span>\r\n {this.removable && (\r\n <button\r\n type=\"button\"\r\n onClick={(e) => this.dsoRemoveClick.emit(e)}\r\n onMouseEnter={() => (this.removeHover = true)}\r\n onMouseLeave={() => (this.removeHover = false)}\r\n onFocus={() => (this.removeFocus = true)}\r\n onBlur={() => (this.removeFocus = false)}\r\n >\r\n <span class=\"sr-only\">Verwijder: {this.labelText}</span>\r\n <dso-icon icon=\"times\"></dso-icon>\r\n </button>\r\n )}\r\n </span>\r\n {this.isTruncated && (\r\n <dso-tooltip\r\n stateless\r\n id=\"toggle-anchor\"\r\n active={this.textHover || this.textFocus}\r\n position=\"top\"\r\n strategy=\"absolute\"\r\n >\r\n {this.labelText}\r\n </dso-tooltip>\r\n )}\r\n </Fragment>\r\n );\r\n }\r\n}\r\n"],"version":3}
|
|
1
|
+
{"file":"label.js","mappings":";;;;;;AAAA,MAAM,QAAQ,GAAG,g3DAAg3D,CAAC;AACl4D,uBAAe,QAAQ;;ACgBvB,MAAM,cAAc,GAAG,IAAI,cAAc,CACvC,QAAQ,CAAC,CAAC,OAA8B;IACtC,OAAO,CAAC,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE;QACzB,IAAI,mBAAmB,CAAC,MAAM,CAAC,EAAE;YAC/B,MAAM,CAAC,cAAc,EAAE,CAAC;SACzB;KACF,CAAC,CAAC;AACL,CAAC,EAAE,GAAG,CAAC,CACR,CAAC;AAEF,SAAS,mBAAmB,CAAC,OAAgB;IAC3C,OAAO,OAAO,CAAC,OAAO,KAAK,WAAW,CAAC;AACzC,CAAC;AAED,SAAS,WAAW,CAAC,EAAe;IAClC,OAAO,EAAE,CAAC,WAAW,GAAG,EAAE,CAAC,WAAW,CAAC;AACzC,CAAC;MAOY,KAAK;;;;;;;;;;;;;;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esContent":["@use \"~dso-toolkit/src/utilities\";\r\n@use \"~dso-toolkit/src/variables/units\";\r\n@use \"~dso-toolkit/src/components/label\";\r\n\r\n:host {\r\n display: inline-block;\r\n max-inline-size: 100%;\r\n}\r\n\r\n@include utilities.box-sizing();\r\n\r\n// Todo: Replace .sr-only selector with web component specific selector, no need for .sr-only if we can generate the SCSS\r\n.sr-only {\r\n @include utilities.sr-only();\r\n}\r\n\r\n.dso-label {\r\n @include label.root();\r\n\r\n &.dso-hover {\r\n .dso-label-content {\r\n text-decoration: line-through;\r\n }\r\n }\r\n}\r\n\r\n.dso-truncate.dso-label-content {\r\n display: inline-block;\r\n max-inline-size: 100%;\r\n overflow: hidden;\r\n text-overflow: ellipsis; // stylelint-disable-line declaration-property-value-disallowed-list -- full text can be viewed via tooltip.\r\n vertical-align: bottom;\r\n white-space: nowrap; // stylelint-disable-line declaration-property-value-disallowed-list -- full text can be viewed via tooltip.\r\n}\r\n\r\n:host([removable]) {\r\n .dso-truncate.dso-label-content {\r\n max-inline-size: calc(100% - (units.$u3 + 4px));\r\n }\r\n}\r\n","import {\r\n h,\r\n Component,\r\n ComponentInterface,\r\n Element,\r\n Event,\r\n EventEmitter,\r\n Fragment,\r\n Method,\r\n Prop,\r\n State,\r\n Watch,\r\n Listen,\r\n} from \"@stencil/core\";\r\nimport clsx from \"clsx\";\r\nimport debounce from \"debounce\";\r\n\r\nconst resizeObserver = new ResizeObserver(\r\n debounce((entries: ResizeObserverEntry[]) => {\r\n entries.forEach(({ target }) => {\r\n if (isDsoLabelComponent(target)) {\r\n target._truncateLabel();\r\n }\r\n });\r\n }, 150),\r\n);\r\n\r\nfunction isDsoLabelComponent(element: Element): element is HTMLDsoLabelElement {\r\n return element.tagName === \"DSO-LABEL\";\r\n}\r\n\r\nfunction hasEllipses(el: HTMLElement): boolean {\r\n return el.scrollWidth > el.clientWidth;\r\n}\r\n\r\n@Component({\r\n tag: \"dso-label\",\r\n styleUrl: \"label.scss\",\r\n shadow: true,\r\n})\r\nexport class Label implements ComponentInterface {\r\n private labelContent: HTMLSpanElement | undefined;\r\n\r\n private mutationObserver?: MutationObserver;\r\n\r\n @Element()\r\n private host!: HTMLDsoLabelElement;\r\n\r\n /**\r\n * For compact Label\r\n */\r\n @Prop()\r\n compact?: boolean;\r\n\r\n /**\r\n * Shows a button that can be used to remove the Label.\r\n */\r\n @Prop()\r\n removable?: boolean;\r\n\r\n /**\r\n * The status of this Label.\r\n */\r\n @Prop()\r\n status?: \"primary\" | \"info\" | \"success\" | \"warning\" | \"danger\" | \"error\" | \"bright\" | \"attention\";\r\n\r\n /**\r\n * Emitted when the user activates the remove button.\r\n */\r\n @Event()\r\n dsoRemoveClick!: EventEmitter<MouseEvent>;\r\n\r\n @State()\r\n removeHover?: boolean;\r\n\r\n @State()\r\n removeFocus?: boolean;\r\n\r\n /**\r\n * Whether the Label is allowed to truncate the contents if it does not fit the container element.\r\n */\r\n @Prop()\r\n truncate?: boolean;\r\n\r\n @State()\r\n textHover?: boolean;\r\n\r\n @State()\r\n textFocus?: boolean;\r\n\r\n @State()\r\n isTruncated = false;\r\n\r\n @State()\r\n labelText = \"\";\r\n\r\n @Watch(\"removable\")\r\n watchRemovable(removable: boolean) {\r\n if (removable) {\r\n this.startMutationObserver();\r\n } else {\r\n this.stopMutationObserver();\r\n }\r\n }\r\n\r\n @Watch(\"truncate\")\r\n watchTruncate(truncate: boolean) {\r\n if (truncate) {\r\n this.startTruncate();\r\n } else {\r\n this.stopTruncate();\r\n }\r\n }\r\n\r\n @Listen(\"keydown\", { target: \"document\" })\r\n keyDownListener(event: KeyboardEvent) {\r\n if (event.key === \"Escape\") {\r\n this.textHover = false;\r\n this.textFocus = false;\r\n }\r\n }\r\n\r\n /**\r\n * @internal\r\n */\r\n @Method()\r\n async _truncateLabel() {\r\n setTimeout(() => {\r\n this.isTruncated = !!this.labelContent && hasEllipses(this.labelContent);\r\n });\r\n }\r\n\r\n private syncLabelText() {\r\n this.labelText = this.host.textContent?.trim() ?? \"\";\r\n }\r\n\r\n componentDidLoad() {\r\n if (this.truncate) {\r\n this.startTruncate();\r\n }\r\n\r\n if (this.removable) {\r\n this.startMutationObserver();\r\n }\r\n }\r\n\r\n disconnectedCallback() {\r\n this.stopTruncate();\r\n\r\n this.stopMutationObserver(true);\r\n }\r\n\r\n /** The mutationObserver fetches the text placed inside the label, this is then used for the remove button and tooltip. */\r\n private startMutationObserver(): void {\r\n this.mutationObserver = new MutationObserver(() => this.syncLabelText());\r\n\r\n this.mutationObserver.observe(this.host, {\r\n characterData: true,\r\n childList: true,\r\n subtree: true,\r\n attributes: true,\r\n });\r\n\r\n this.syncLabelText();\r\n }\r\n\r\n private stopMutationObserver(force = false): void {\r\n if (force || !(this.truncate && this.removable)) {\r\n this.mutationObserver?.disconnect();\r\n\r\n delete this.mutationObserver;\r\n }\r\n }\r\n\r\n private startTruncate(): void {\r\n resizeObserver.observe(this.host);\r\n this.startMutationObserver();\r\n this._truncateLabel();\r\n }\r\n\r\n private stopTruncate(): void {\r\n resizeObserver.unobserve(this.host);\r\n this.stopMutationObserver();\r\n this.isTruncated = false;\r\n }\r\n\r\n render() {\r\n return (\r\n <Fragment>\r\n <span\r\n aria-describedby=\"toggle-anchor\"\r\n class={clsx(\"dso-label\", {\r\n [`dso-label-${this.status}`]: this.status,\r\n \"dso-compact\": this.compact && !this.removable,\r\n \"dso-hover\": this.removeHover || this.removeFocus,\r\n })}\r\n >\r\n <slot name=\"symbol\"></slot>\r\n <span\r\n class={clsx(\"dso-label-content\", {\r\n \"dso-truncate\": !!this.truncate,\r\n })}\r\n ref={(element) => (this.labelContent = element)}\r\n tabindex={this.truncate && this.isTruncated ? 0 : undefined}\r\n onMouseEnter={() => (this.textHover = true)}\r\n onMouseLeave={() => (this.textHover = false)}\r\n onFocus={() => (this.textFocus = true)}\r\n onBlur={() => (this.textFocus = false)}\r\n >\r\n <slot></slot>\r\n </span>\r\n {this.removable && (\r\n <button\r\n type=\"button\"\r\n onClick={(e) => this.dsoRemoveClick.emit(e)}\r\n onMouseEnter={() => (this.removeHover = true)}\r\n onMouseLeave={() => (this.removeHover = false)}\r\n onFocus={() => (this.removeFocus = true)}\r\n onBlur={() => (this.removeFocus = false)}\r\n >\r\n <span class=\"sr-only\">Verwijder: {this.labelText}</span>\r\n <dso-icon icon=\"times\"></dso-icon>\r\n </button>\r\n )}\r\n </span>\r\n {this.isTruncated && (\r\n <dso-tooltip\r\n stateless\r\n id=\"toggle-anchor\"\r\n active={this.textHover || this.textFocus}\r\n position=\"top\"\r\n strategy=\"absolute\"\r\n >\r\n {this.labelText}\r\n </dso-tooltip>\r\n )}\r\n </Fragment>\r\n );\r\n }\r\n}\r\n"],"version":3}
|