@dso-toolkit/core 67.3.1 → 68.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/{annotation-body-9e62da5c.js → annotation-body-17541223.js} +2 -2
- package/dist/cjs/{annotation-body-9e62da5c.js.map → annotation-body-17541223.js.map} +1 -1
- package/dist/cjs/{annotation-symbol-slot-46421527.js → annotation-symbol-slot-0d0e0294.js} +2 -2
- package/dist/cjs/{annotation-symbol-slot-46421527.js.map → annotation-symbol-slot-0d0e0294.js.map} +1 -1
- package/dist/cjs/dso-accordion-section.cjs.entry.js +14 -14
- package/dist/cjs/dso-accordion-section.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-accordion.cjs.entry.js +9 -1
- package/dist/cjs/dso-accordion.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-action-list-item.cjs.entry.js +10 -3
- package/dist/cjs/dso-action-list-item.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-action-list.cjs.entry.js +1 -2
- package/dist/cjs/dso-action-list.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-advanced-select.cjs.entry.js +10 -6
- package/dist/cjs/dso-advanced-select.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-alert_6.cjs.entry.js +29 -22
- package/dist/cjs/dso-alert_6.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-annotation-activiteit.cjs.entry.js +4 -11
- package/dist/cjs/dso-annotation-activiteit.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-annotation-gebiedsaanwijzing.cjs.entry.js +4 -8
- package/dist/cjs/dso-annotation-gebiedsaanwijzing.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-annotation-kaart.cjs.entry.js +3 -6
- package/dist/cjs/dso-annotation-kaart.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-annotation-locatie_2.cjs.entry.js +49 -31
- package/dist/cjs/dso-annotation-locatie_2.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-annotation-omgevingsnormwaarde.cjs.entry.js +4 -11
- package/dist/cjs/dso-annotation-omgevingsnormwaarde.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-attachments-counter_2.cjs.entry.js +5 -5
- package/dist/cjs/dso-attachments-counter_2.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-autosuggest.cjs.entry.js +31 -17
- package/dist/cjs/dso-autosuggest.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-banner.cjs.entry.js +11 -4
- package/dist/cjs/dso-banner.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-card-container.cjs.entry.js +5 -2
- package/dist/cjs/dso-card-container.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-card.cjs.entry.js +3 -6
- package/dist/cjs/dso-card.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-date-picker-legacy.cjs.entry.js +45 -20
- package/dist/cjs/dso-date-picker-legacy.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-date-picker.cjs.entry.js +23 -12
- package/dist/cjs/dso-date-picker.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-document-card.cjs.entry.js +2 -4
- package/dist/cjs/dso-document-card.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-dropdown-menu.cjs.entry.js +24 -10
- package/dist/cjs/dso-dropdown-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-header.cjs.entry.js +20 -16
- package/dist/cjs/dso-header.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-helpcenter-panel.cjs.entry.js +12 -10
- package/dist/cjs/dso-helpcenter-panel.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-highlight-box.cjs.entry.js +2 -7
- package/dist/cjs/dso-highlight-box.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-icon.cjs.entry.js +8 -3
- package/dist/cjs/dso-icon.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-info-button.cjs.entry.js +5 -4
- package/dist/cjs/dso-info-button.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-info_2.cjs.entry.js +5 -19
- package/dist/cjs/dso-info_2.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-input-range.cjs.entry.js +6 -9
- package/dist/cjs/dso-input-range.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-label_2.cjs.entry.js +26 -21
- package/dist/cjs/dso-label_2.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-legend-item.cjs.entry.js +6 -5
- package/dist/cjs/dso-legend-item.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-list-button.cjs.entry.js +13 -65
- package/dist/cjs/dso-list-button.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-logo.cjs.entry.js +10 -7
- package/dist/cjs/dso-logo.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-map-base-layers.cjs.entry.js +8 -6
- package/dist/cjs/dso-map-base-layers.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-map-controls.cjs.entry.js +8 -6
- package/dist/cjs/dso-map-controls.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-map-overlays.cjs.entry.js +8 -6
- package/dist/cjs/dso-map-overlays.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-mark-bar.cjs.entry.js +6 -6
- package/dist/cjs/dso-mark-bar.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-modal.cjs.entry.js +21 -8
- package/dist/cjs/dso-modal.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-pagination.cjs.entry.js +4 -4
- package/dist/cjs/dso-pagination.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-plekinfo-card.cjs.entry.js +5 -5
- package/dist/cjs/dso-plekinfo-card.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-progress-bar.cjs.entry.js +8 -3
- package/dist/cjs/dso-progress-bar.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-progress-indicator.cjs.entry.js +3 -6
- package/dist/cjs/dso-progress-indicator.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-project-item.cjs.entry.js +2 -3
- package/dist/cjs/dso-project-item.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-renvooi_2.cjs.entry.js +13 -8
- package/dist/cjs/dso-renvooi_2.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-responsive-element.cjs.entry.js +4 -4
- package/dist/cjs/dso-responsive-element.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-scrollable.cjs.entry.js +3 -3
- package/dist/cjs/dso-scrollable.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-skiplink.cjs.entry.js +2 -4
- package/dist/cjs/dso-skiplink.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-tab.cjs.entry.js +1 -4
- package/dist/cjs/dso-tab.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-tabs.cjs.entry.js +2 -2
- package/dist/cjs/dso-toggletip.cjs.entry.js +11 -7
- package/dist/cjs/dso-toggletip.cjs.entry.js.map +1 -1
- 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 -3
- package/dist/cjs/dso-tree-view.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-viewer-grid.cjs.entry.js +39 -12
- package/dist/cjs/dso-viewer-grid.cjs.entry.js.map +1 -1
- package/dist/cjs/dsot-document-component-demo.cjs.entry.js +19 -13
- package/dist/cjs/dsot-document-component-demo.cjs.entry.js.map +1 -1
- package/dist/cjs/{focus-trap.esm-b5c60ce2.js → focus-trap.esm-14b4a31b.js} +68 -45
- package/dist/cjs/focus-trap.esm-14b4a31b.js.map +1 -0
- package/dist/cjs/{i18n-0da568ee.js → i18n-b5f9d73e.js} +22 -7
- package/dist/cjs/i18n-b5f9d73e.js.map +1 -0
- package/dist/cjs/{index-9c71ed34.js → index-52cc9a2a.js} +350 -267
- package/dist/cjs/index-52cc9a2a.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{v4-6fbeaa38.js → v4-2a8f5623.js} +8 -2
- package/dist/cjs/v4-2a8f5623.js.map +1 -0
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/accordion/accordion.js +12 -0
- package/dist/collection/components/accordion/accordion.js.map +1 -1
- package/dist/collection/components/accordion/components/accordion-section.js +37 -13
- package/dist/collection/components/accordion/components/accordion-section.js.map +1 -1
- package/dist/collection/components/action-list/action-list.js +2 -3
- package/dist/collection/components/action-list/action-list.js.map +1 -1
- package/dist/collection/components/action-list/components/action-list-item.js +19 -2
- package/dist/collection/components/action-list/components/action-list-item.js.map +1 -1
- package/dist/collection/components/advanced-select/advanced-select.js +15 -5
- package/dist/collection/components/advanced-select/advanced-select.js.map +1 -1
- package/dist/collection/components/alert/alert.css +31 -3
- package/dist/collection/components/alert/alert.i18n.js +2 -0
- package/dist/collection/components/alert/alert.i18n.js.map +1 -1
- package/dist/collection/components/alert/alert.interfaces.js +2 -0
- package/dist/collection/components/alert/alert.interfaces.js.map +1 -0
- package/dist/collection/components/alert/alert.js +55 -4
- package/dist/collection/components/alert/alert.js.map +1 -1
- package/dist/collection/components/annotation/annotation-activiteit/annotation-activiteit.js +16 -9
- package/dist/collection/components/annotation/annotation-activiteit/annotation-activiteit.js.map +1 -1
- package/dist/collection/components/annotation/annotation-gebiedsaanwijzing/annotation-gebiedsaanwijzing.js +9 -5
- package/dist/collection/components/annotation/annotation-gebiedsaanwijzing/annotation-gebiedsaanwijzing.js.map +1 -1
- package/dist/collection/components/annotation/annotation-kaart/annotation-kaart.js +7 -4
- package/dist/collection/components/annotation/annotation-kaart/annotation-kaart.js.map +1 -1
- package/dist/collection/components/annotation/annotation-locatie/annotation-locatie.js +9 -5
- package/dist/collection/components/annotation/annotation-locatie/annotation-locatie.js.map +1 -1
- package/dist/collection/components/annotation/annotation-omgevingsnormwaarde/annotation-omgevingsnormwaarde.js +16 -9
- package/dist/collection/components/annotation/annotation-omgevingsnormwaarde/annotation-omgevingsnormwaarde.js.map +1 -1
- package/dist/collection/components/attachments-counter/attachments-counter.js +3 -4
- package/dist/collection/components/attachments-counter/attachments-counter.js.map +1 -1
- package/dist/collection/components/autosuggest/autosuggest.js +43 -15
- package/dist/collection/components/autosuggest/autosuggest.js.map +1 -1
- package/dist/collection/components/badge/badge.js +3 -4
- package/dist/collection/components/badge/badge.js.map +1 -1
- package/dist/collection/components/banner/banner.js +16 -3
- package/dist/collection/components/banner/banner.js.map +1 -1
- package/dist/collection/components/card/card.js +8 -7
- package/dist/collection/components/card/card.js.map +1 -1
- package/dist/collection/components/card-container/card-container.js +6 -1
- package/dist/collection/components/card-container/card-container.js.map +1 -1
- package/dist/collection/components/date-picker/date-picker.js +42 -11
- package/dist/collection/components/date-picker/date-picker.js.map +1 -1
- package/dist/collection/components/date-picker-legacy/date-picker-legacy.js +68 -19
- package/dist/collection/components/date-picker-legacy/date-picker-legacy.js.map +1 -1
- package/dist/collection/components/document-card/document-card.js +5 -5
- package/dist/collection/components/document-card/document-card.js.map +1 -1
- package/dist/collection/components/document-component/document-component.js +90 -24
- package/dist/collection/components/document-component/document-component.js.map +1 -1
- package/dist/collection/components/document-component-demo/document-component.demo.js +26 -12
- package/dist/collection/components/document-component-demo/document-component.demo.js.map +1 -1
- package/dist/collection/components/dropdown-menu/dropdown-menu.js +36 -8
- package/dist/collection/components/dropdown-menu/dropdown-menu.js.map +1 -1
- package/dist/collection/components/expandable/expandable.js +9 -2
- package/dist/collection/components/expandable/expandable.js.map +1 -1
- package/dist/collection/components/header/header.js +40 -14
- package/dist/collection/components/header/header.js.map +1 -1
- package/dist/collection/components/helpcenter-panel/helpcenter-panel.js +14 -8
- package/dist/collection/components/helpcenter-panel/helpcenter-panel.js.map +1 -1
- package/dist/collection/components/highlight-box/highlight-box.js +11 -8
- package/dist/collection/components/highlight-box/highlight-box.js.map +1 -1
- package/dist/collection/components/icon/icon.js +5 -4
- package/dist/collection/components/icon/icon.js.map +1 -1
- package/dist/collection/components/image-overlay/image-overlay.js +4 -3
- package/dist/collection/components/image-overlay/image-overlay.js.map +1 -1
- package/dist/collection/components/info/info.js +5 -5
- package/dist/collection/components/info/info.js.map +1 -1
- package/dist/collection/components/info-button/info-button.js +10 -3
- package/dist/collection/components/info-button/info-button.js.map +1 -1
- package/dist/collection/components/input-range/input-range.js +19 -8
- package/dist/collection/components/input-range/input-range.js.map +1 -1
- package/dist/collection/components/label/label.js +11 -11
- package/dist/collection/components/label/label.js.map +1 -1
- package/dist/collection/components/legend-item/legend-item.js +11 -4
- package/dist/collection/components/legend-item/legend-item.js.map +1 -1
- package/dist/collection/components/list-button/list-button.css +1 -92
- package/dist/collection/components/list-button/list-button.js +28 -90
- package/dist/collection/components/list-button/list-button.js.map +1 -1
- package/dist/collection/components/logo/logo.js +19 -6
- package/dist/collection/components/logo/logo.js.map +1 -1
- package/dist/collection/components/map-base-layers/map-base-layers.js +10 -4
- package/dist/collection/components/map-base-layers/map-base-layers.js.map +1 -1
- package/dist/collection/components/map-controls/map-controls.js +10 -4
- package/dist/collection/components/map-controls/map-controls.js.map +1 -1
- package/dist/collection/components/map-overlays/map-overlays.js +10 -4
- package/dist/collection/components/map-overlays/map-overlays.js.map +1 -1
- package/dist/collection/components/mark-bar/mark-bar.js +13 -5
- package/dist/collection/components/mark-bar/mark-bar.js.map +1 -1
- package/dist/collection/components/modal/modal.js +28 -5
- package/dist/collection/components/modal/modal.js.map +1 -1
- package/dist/collection/components/ozon-content/ozon-content.js +13 -6
- package/dist/collection/components/ozon-content/ozon-content.js.map +1 -1
- package/dist/collection/components/pagination/pagination.js +9 -3
- package/dist/collection/components/pagination/pagination.js.map +1 -1
- package/dist/collection/components/panel/panel.js +2 -1
- package/dist/collection/components/panel/panel.js.map +1 -1
- package/dist/collection/components/plekinfo-card/plekinfo-card.js +12 -4
- package/dist/collection/components/plekinfo-card/plekinfo-card.js.map +1 -1
- package/dist/collection/components/progress-bar/progress-bar.js +13 -2
- package/dist/collection/components/progress-bar/progress-bar.js.map +1 -1
- package/dist/collection/components/progress-indicator/progress-indicator.js +7 -4
- package/dist/collection/components/progress-indicator/progress-indicator.js.map +1 -1
- package/dist/collection/components/project-item/project-item.js +3 -4
- package/dist/collection/components/project-item/project-item.js.map +1 -1
- package/dist/collection/components/renvooi/renvooi.js +3 -4
- package/dist/collection/components/renvooi/renvooi.js.map +1 -1
- package/dist/collection/components/responsive-element/responsive-element.js +3 -3
- package/dist/collection/components/responsive-element/responsive-element.js.map +1 -1
- package/dist/collection/components/scrollable/scrollable.js +2 -2
- package/dist/collection/components/scrollable/scrollable.js.map +1 -1
- package/dist/collection/components/selectable/selectable.js +27 -15
- package/dist/collection/components/selectable/selectable.js.map +1 -1
- package/dist/collection/components/skiplink/skiplink.js +5 -5
- package/dist/collection/components/skiplink/skiplink.js.map +1 -1
- package/dist/collection/components/slide-toggle/slide-toggle.js +20 -4
- package/dist/collection/components/slide-toggle/slide-toggle.js.map +1 -1
- package/dist/collection/components/table/table.js +11 -2
- package/dist/collection/components/table/table.js.map +1 -1
- package/dist/collection/components/tabs/components/tab.js +6 -3
- package/dist/collection/components/tabs/components/tab.js.map +1 -1
- package/dist/collection/components/tabs/tabs.js +1 -1
- package/dist/collection/components/toggletip/toggletip.js +18 -6
- package/dist/collection/components/toggletip/toggletip.js.map +1 -1
- package/dist/collection/components/tooltip/tooltip.js +36 -9
- package/dist/collection/components/tooltip/tooltip.js.map +1 -1
- package/dist/collection/components/tree-view/tree-view.js +4 -3
- package/dist/collection/components/tree-view/tree-view.js.map +1 -1
- package/dist/collection/components/viewer-grid/viewer-grid.js +56 -11
- package/dist/collection/components/viewer-grid/viewer-grid.js.map +1 -1
- package/dist/components/alert.js +12 -7
- package/dist/components/alert.js.map +1 -1
- package/dist/components/annotation-locatie.js +1 -5
- package/dist/components/annotation-locatie.js.map +1 -1
- package/dist/components/attachments-counter.js +1 -2
- package/dist/components/attachments-counter.js.map +1 -1
- package/dist/components/badge.js +1 -2
- package/dist/components/badge.js.map +1 -1
- package/dist/components/document-component.js +45 -23
- package/dist/components/document-component.js.map +1 -1
- package/dist/components/dropdown-menu.js +22 -8
- package/dist/components/dropdown-menu.js.map +1 -1
- package/dist/components/dso-accordion-section.js +13 -13
- package/dist/components/dso-accordion-section.js.map +1 -1
- package/dist/components/dso-accordion.js +8 -0
- package/dist/components/dso-accordion.js.map +1 -1
- package/dist/components/dso-action-list-item.js +9 -2
- package/dist/components/dso-action-list-item.js.map +1 -1
- package/dist/components/dso-action-list.js +0 -1
- package/dist/components/dso-action-list.js.map +1 -1
- package/dist/components/dso-advanced-select.js +8 -4
- package/dist/components/dso-advanced-select.js.map +1 -1
- package/dist/components/dso-annotation-activiteit.js +1 -8
- package/dist/components/dso-annotation-activiteit.js.map +1 -1
- package/dist/components/dso-annotation-gebiedsaanwijzing.js +1 -5
- package/dist/components/dso-annotation-gebiedsaanwijzing.js.map +1 -1
- package/dist/components/dso-annotation-kaart.js +1 -4
- package/dist/components/dso-annotation-kaart.js.map +1 -1
- package/dist/components/dso-annotation-omgevingsnormwaarde.js +1 -8
- package/dist/components/dso-annotation-omgevingsnormwaarde.js.map +1 -1
- package/dist/components/dso-autosuggest.js +28 -14
- package/dist/components/dso-autosuggest.js.map +1 -1
- package/dist/components/dso-banner.js +10 -3
- package/dist/components/dso-banner.js.map +1 -1
- package/dist/components/dso-card-container.js +4 -1
- package/dist/components/dso-card-container.js.map +1 -1
- package/dist/components/dso-card.js +2 -5
- package/dist/components/dso-card.js.map +1 -1
- package/dist/components/dso-date-picker-legacy.js +44 -19
- package/dist/components/dso-date-picker-legacy.js.map +1 -1
- package/dist/components/dso-date-picker.js +22 -11
- package/dist/components/dso-date-picker.js.map +1 -1
- package/dist/components/dso-document-card.js +1 -3
- package/dist/components/dso-document-card.js.map +1 -1
- package/dist/components/dso-header.js +18 -14
- package/dist/components/dso-header.js.map +1 -1
- package/dist/components/dso-helpcenter-panel.js +10 -8
- package/dist/components/dso-helpcenter-panel.js.map +1 -1
- package/dist/components/dso-highlight-box.js +1 -6
- package/dist/components/dso-highlight-box.js.map +1 -1
- package/dist/components/dso-input-range.js +5 -8
- package/dist/components/dso-input-range.js.map +1 -1
- package/dist/components/dso-legend-item.js +5 -4
- package/dist/components/dso-legend-item.js.map +1 -1
- package/dist/components/dso-list-button.js +14 -70
- package/dist/components/dso-list-button.js.map +1 -1
- package/dist/components/dso-logo.js +9 -6
- package/dist/components/dso-logo.js.map +1 -1
- package/dist/components/dso-map-base-layers.js +5 -3
- package/dist/components/dso-map-base-layers.js.map +1 -1
- package/dist/components/dso-map-controls.js +6 -4
- package/dist/components/dso-map-controls.js.map +1 -1
- package/dist/components/dso-map-overlays.js +5 -3
- package/dist/components/dso-map-overlays.js.map +1 -1
- package/dist/components/dso-mark-bar.js +5 -5
- package/dist/components/dso-mark-bar.js.map +1 -1
- package/dist/components/dso-modal.js +18 -5
- package/dist/components/dso-modal.js.map +1 -1
- package/dist/components/dso-pagination.js +3 -3
- package/dist/components/dso-pagination.js.map +1 -1
- package/dist/components/dso-plekinfo-card.js +4 -4
- package/dist/components/dso-plekinfo-card.js.map +1 -1
- package/dist/components/dso-progress-bar.js +7 -2
- package/dist/components/dso-progress-bar.js.map +1 -1
- package/dist/components/dso-project-item.js +1 -2
- package/dist/components/dso-project-item.js.map +1 -1
- package/dist/components/dso-skiplink.js +1 -3
- package/dist/components/dso-skiplink.js.map +1 -1
- package/dist/components/dso-tab.js +0 -3
- package/dist/components/dso-tab.js.map +1 -1
- package/dist/components/dso-tabs.js +1 -1
- package/dist/components/dso-tree-view.js +1 -2
- package/dist/components/dso-tree-view.js.map +1 -1
- package/dist/components/dso-viewer-grid.js +38 -11
- package/dist/components/dso-viewer-grid.js.map +1 -1
- package/dist/components/dsot-document-component-demo.js +18 -12
- package/dist/components/dsot-document-component-demo.js.map +1 -1
- package/dist/components/expandable.js +3 -2
- package/dist/components/expandable.js.map +1 -1
- package/dist/components/focus-trap.esm.js +68 -45
- package/dist/components/focus-trap.esm.js.map +1 -1
- package/dist/components/i18n.js +21 -6
- package/dist/components/i18n.js.map +1 -1
- package/dist/components/icon.js +7 -2
- package/dist/components/icon.js.map +1 -1
- package/dist/components/image-overlay.js +2 -3
- package/dist/components/image-overlay.js.map +1 -1
- package/dist/components/index.esm.js +1 -1
- package/dist/components/info-button.js +4 -3
- package/dist/components/info-button.js.map +1 -1
- package/dist/components/info.js +1 -3
- package/dist/components/info.js.map +1 -1
- package/dist/components/label.js +3 -11
- package/dist/components/label.js.map +1 -1
- package/dist/components/ozon-content.js +6 -5
- package/dist/components/ozon-content.js.map +1 -1
- package/dist/components/panel.js +0 -1
- package/dist/components/panel.js.map +1 -1
- package/dist/components/progress-indicator.js +1 -4
- package/dist/components/progress-indicator.js.map +1 -1
- package/dist/components/renvooi.js +1 -2
- package/dist/components/renvooi.js.map +1 -1
- package/dist/components/responsive-element.js +3 -3
- package/dist/components/responsive-element.js.map +1 -1
- package/dist/components/scrollable.js +2 -2
- package/dist/components/scrollable.js.map +1 -1
- package/dist/components/selectable.js +3 -15
- package/dist/components/selectable.js.map +1 -1
- package/dist/components/slide-toggle.js +10 -4
- package/dist/components/slide-toggle.js.map +1 -1
- package/dist/components/table.js +7 -2
- package/dist/components/table.js.map +1 -1
- package/dist/components/toggletip.js +10 -6
- package/dist/components/toggletip.js.map +1 -1
- package/dist/components/tooltip.js +22 -9
- package/dist/components/tooltip.js.map +1 -1
- package/dist/components/v4.js +7 -1
- 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-4b21a36d.entry.js → p-00dc4ab0.entry.js} +2 -2
- package/dist/dso-toolkit/p-00dc4ab0.entry.js.map +1 -0
- package/dist/dso-toolkit/{p-671dc9e8.entry.js → p-08ddc940.entry.js} +2 -2
- package/dist/dso-toolkit/p-08ddc940.entry.js.map +1 -0
- package/dist/dso-toolkit/p-0ae73bbd.entry.js +2 -0
- package/dist/dso-toolkit/p-0ae73bbd.entry.js.map +1 -0
- package/dist/dso-toolkit/p-0b0559e6.entry.js +2 -0
- package/dist/dso-toolkit/{p-43365ccd.entry.js.map → p-0b0559e6.entry.js.map} +1 -1
- package/dist/dso-toolkit/{p-45c45f06.entry.js → p-120c16f3.entry.js} +2 -2
- package/dist/dso-toolkit/p-120c16f3.entry.js.map +1 -0
- package/dist/dso-toolkit/{p-c425fe06.entry.js → p-12d75d7e.entry.js} +2 -2
- package/dist/dso-toolkit/{p-c425fe06.entry.js.map → p-12d75d7e.entry.js.map} +1 -1
- package/dist/dso-toolkit/p-164c0a52.entry.js +2 -0
- package/dist/dso-toolkit/p-164c0a52.entry.js.map +1 -0
- package/dist/dso-toolkit/p-16f98bb4.entry.js +2 -0
- package/dist/dso-toolkit/p-16f98bb4.entry.js.map +1 -0
- package/dist/dso-toolkit/p-1db82eab.entry.js +2 -0
- package/dist/dso-toolkit/p-1db82eab.entry.js.map +1 -0
- package/dist/dso-toolkit/{p-a421fb7b.entry.js → p-1ff75ae7.entry.js} +2 -2
- package/dist/dso-toolkit/{p-a421fb7b.entry.js.map → p-1ff75ae7.entry.js.map} +1 -1
- package/dist/dso-toolkit/p-2185e445.entry.js +2 -0
- package/dist/dso-toolkit/p-2185e445.entry.js.map +1 -0
- package/dist/dso-toolkit/p-2fce414d.entry.js +2 -0
- package/dist/dso-toolkit/p-2fce414d.entry.js.map +1 -0
- package/dist/dso-toolkit/{p-289d338d.entry.js → p-34ae249e.entry.js} +2 -2
- package/dist/dso-toolkit/p-34ae249e.entry.js.map +1 -0
- package/dist/dso-toolkit/p-35cc2afa.entry.js +2 -0
- package/dist/dso-toolkit/p-35cc2afa.entry.js.map +1 -0
- package/dist/dso-toolkit/p-3efab733.entry.js +2 -0
- package/dist/dso-toolkit/p-3efab733.entry.js.map +1 -0
- package/dist/dso-toolkit/{p-6a319038.entry.js → p-42904e2f.entry.js} +2 -2
- package/dist/dso-toolkit/p-42904e2f.entry.js.map +1 -0
- package/dist/dso-toolkit/p-4798d219.js +3 -0
- package/dist/dso-toolkit/p-4798d219.js.map +1 -0
- package/dist/dso-toolkit/p-488aa456.entry.js +2 -0
- package/dist/dso-toolkit/p-488aa456.entry.js.map +1 -0
- package/dist/dso-toolkit/p-48b2280f.entry.js +2 -0
- package/dist/dso-toolkit/p-48b2280f.entry.js.map +1 -0
- package/dist/dso-toolkit/p-53cc8cd4.entry.js +2 -0
- package/dist/dso-toolkit/p-53cc8cd4.entry.js.map +1 -0
- package/dist/dso-toolkit/{p-f17bf401.entry.js → p-5a06d044.entry.js} +2 -2
- package/dist/dso-toolkit/p-5a06d044.entry.js.map +1 -0
- package/dist/dso-toolkit/p-694be48f.entry.js +2 -0
- package/dist/dso-toolkit/p-694be48f.entry.js.map +1 -0
- package/dist/dso-toolkit/{p-78b43f2d.entry.js → p-763e1f17.entry.js} +2 -2
- package/dist/dso-toolkit/p-763e1f17.entry.js.map +1 -0
- package/dist/dso-toolkit/p-764ce885.entry.js +2 -0
- package/dist/dso-toolkit/p-764ce885.entry.js.map +1 -0
- package/dist/dso-toolkit/p-770c5940.entry.js +2 -0
- package/dist/dso-toolkit/p-770c5940.entry.js.map +1 -0
- package/dist/dso-toolkit/p-77ebc549.entry.js +2 -0
- package/dist/dso-toolkit/p-77ebc549.entry.js.map +1 -0
- package/dist/dso-toolkit/p-7e930584.js +2 -0
- package/dist/dso-toolkit/p-7e930584.js.map +1 -0
- package/dist/dso-toolkit/p-7ed4eb26.entry.js +2 -0
- package/dist/dso-toolkit/{p-c688843d.entry.js.map → p-7ed4eb26.entry.js.map} +1 -1
- package/dist/dso-toolkit/p-802bac7e.entry.js +2 -0
- package/dist/dso-toolkit/p-802bac7e.entry.js.map +1 -0
- package/dist/dso-toolkit/p-82796232.js +2 -0
- package/dist/dso-toolkit/p-82796232.js.map +1 -0
- package/dist/dso-toolkit/{p-1dbcaeef.js → p-86133aa5.js} +2 -2
- package/dist/dso-toolkit/{p-65ed101b.entry.js → p-8c0abadc.entry.js} +2 -2
- package/dist/dso-toolkit/p-8c0abadc.entry.js.map +1 -0
- package/dist/dso-toolkit/p-8e8c3445.entry.js +2 -0
- package/dist/dso-toolkit/{p-ef108c9f.entry.js.map → p-8e8c3445.entry.js.map} +1 -1
- package/dist/dso-toolkit/p-8f44a71d.js +6 -0
- package/dist/dso-toolkit/p-8f44a71d.js.map +1 -0
- package/dist/dso-toolkit/{p-e7a14497.entry.js → p-90c790cf.entry.js} +2 -2
- package/dist/dso-toolkit/p-90c790cf.entry.js.map +1 -0
- package/dist/dso-toolkit/p-9835211f.entry.js +2 -0
- package/dist/dso-toolkit/p-9835211f.entry.js.map +1 -0
- package/dist/dso-toolkit/{p-51385dad.entry.js → p-a1fdcf6f.entry.js} +2 -2
- package/dist/dso-toolkit/p-a1fdcf6f.entry.js.map +1 -0
- package/dist/dso-toolkit/p-aa66d910.entry.js +2 -0
- package/dist/dso-toolkit/p-aa66d910.entry.js.map +1 -0
- package/dist/dso-toolkit/{p-583222e7.entry.js → p-acdbba92.entry.js} +2 -2
- package/dist/dso-toolkit/p-acdbba92.entry.js.map +1 -0
- package/dist/dso-toolkit/{p-977cc2f7.entry.js → p-ae2d657a.entry.js} +2 -2
- package/dist/dso-toolkit/p-ae2d657a.entry.js.map +1 -0
- package/dist/dso-toolkit/{p-8fce6b98.entry.js → p-b37acdc7.entry.js} +2 -2
- package/dist/dso-toolkit/p-b37acdc7.entry.js.map +1 -0
- package/dist/dso-toolkit/p-b66bd089.entry.js +2 -0
- package/dist/dso-toolkit/p-b66bd089.entry.js.map +1 -0
- package/dist/dso-toolkit/{p-c2f8f46c.entry.js → p-b7223b58.entry.js} +2 -2
- package/dist/dso-toolkit/p-b9063235.js +2 -0
- package/dist/dso-toolkit/p-b9a2793a.entry.js +2 -0
- package/dist/dso-toolkit/p-b9a2793a.entry.js.map +1 -0
- package/dist/dso-toolkit/p-bc5f2c50.entry.js +2 -0
- package/dist/dso-toolkit/p-bc5f2c50.entry.js.map +1 -0
- package/dist/dso-toolkit/p-be4bb602.entry.js +2 -0
- package/dist/dso-toolkit/p-be4bb602.entry.js.map +1 -0
- package/dist/dso-toolkit/{p-6ea8333e.entry.js → p-c318a28a.entry.js} +2 -2
- package/dist/dso-toolkit/p-c318a28a.entry.js.map +1 -0
- package/dist/dso-toolkit/{p-0c8a8830.entry.js → p-c68cd4d5.entry.js} +2 -2
- package/dist/dso-toolkit/p-c68cd4d5.entry.js.map +1 -0
- package/dist/dso-toolkit/{p-f02dcd60.entry.js → p-cb72480b.entry.js} +2 -2
- package/dist/dso-toolkit/{p-f02dcd60.entry.js.map → p-cb72480b.entry.js.map} +1 -1
- package/dist/dso-toolkit/p-d3eacf71.js +2 -0
- package/dist/dso-toolkit/p-d5357c6e.entry.js +2 -0
- package/dist/dso-toolkit/p-d5357c6e.entry.js.map +1 -0
- package/dist/dso-toolkit/{p-17795a3a.entry.js → p-d73b0a55.entry.js} +2 -2
- package/dist/dso-toolkit/p-d73b0a55.entry.js.map +1 -0
- package/dist/dso-toolkit/{p-19421acf.entry.js → p-df5ba83d.entry.js} +2 -2
- package/dist/dso-toolkit/{p-19421acf.entry.js.map → p-df5ba83d.entry.js.map} +1 -1
- package/dist/dso-toolkit/{p-4094d996.entry.js → p-e2f6ce9e.entry.js} +2 -2
- package/dist/dso-toolkit/p-e2f6ce9e.entry.js.map +1 -0
- package/dist/dso-toolkit/p-eedaa0ae.entry.js +2 -0
- package/dist/dso-toolkit/p-eedaa0ae.entry.js.map +1 -0
- package/dist/dso-toolkit/p-f2f4324c.entry.js +2 -0
- package/dist/dso-toolkit/p-f2f4324c.entry.js.map +1 -0
- package/dist/dso-toolkit/{p-fc225870.entry.js → p-f730ff77.entry.js} +2 -2
- package/dist/dso-toolkit/p-f730ff77.entry.js.map +1 -0
- package/dist/esm/{annotation-body-732ca768.js → annotation-body-90b88291.js} +2 -2
- package/dist/esm/{annotation-body-732ca768.js.map → annotation-body-90b88291.js.map} +1 -1
- package/dist/esm/{annotation-symbol-slot-568fe5cc.js → annotation-symbol-slot-8423ced1.js} +2 -2
- package/dist/esm/{annotation-symbol-slot-568fe5cc.js.map → annotation-symbol-slot-8423ced1.js.map} +1 -1
- package/dist/esm/dso-accordion-section.entry.js +14 -14
- package/dist/esm/dso-accordion-section.entry.js.map +1 -1
- package/dist/esm/dso-accordion.entry.js +9 -1
- package/dist/esm/dso-accordion.entry.js.map +1 -1
- package/dist/esm/dso-action-list-item.entry.js +10 -3
- package/dist/esm/dso-action-list-item.entry.js.map +1 -1
- package/dist/esm/dso-action-list.entry.js +1 -2
- package/dist/esm/dso-action-list.entry.js.map +1 -1
- package/dist/esm/dso-advanced-select.entry.js +11 -7
- package/dist/esm/dso-advanced-select.entry.js.map +1 -1
- package/dist/esm/dso-alert_6.entry.js +30 -23
- package/dist/esm/dso-alert_6.entry.js.map +1 -1
- package/dist/esm/dso-annotation-activiteit.entry.js +4 -11
- package/dist/esm/dso-annotation-activiteit.entry.js.map +1 -1
- package/dist/esm/dso-annotation-gebiedsaanwijzing.entry.js +4 -8
- package/dist/esm/dso-annotation-gebiedsaanwijzing.entry.js.map +1 -1
- package/dist/esm/dso-annotation-kaart.entry.js +3 -6
- package/dist/esm/dso-annotation-kaart.entry.js.map +1 -1
- package/dist/esm/dso-annotation-locatie_2.entry.js +49 -31
- package/dist/esm/dso-annotation-locatie_2.entry.js.map +1 -1
- package/dist/esm/dso-annotation-omgevingsnormwaarde.entry.js +4 -11
- package/dist/esm/dso-annotation-omgevingsnormwaarde.entry.js.map +1 -1
- package/dist/esm/dso-attachments-counter_2.entry.js +5 -5
- package/dist/esm/dso-attachments-counter_2.entry.js.map +1 -1
- package/dist/esm/dso-autosuggest.entry.js +31 -17
- package/dist/esm/dso-autosuggest.entry.js.map +1 -1
- package/dist/esm/dso-banner.entry.js +11 -4
- package/dist/esm/dso-banner.entry.js.map +1 -1
- package/dist/esm/dso-card-container.entry.js +5 -2
- package/dist/esm/dso-card-container.entry.js.map +1 -1
- package/dist/esm/dso-card.entry.js +3 -6
- package/dist/esm/dso-card.entry.js.map +1 -1
- package/dist/esm/dso-date-picker-legacy.entry.js +45 -20
- package/dist/esm/dso-date-picker-legacy.entry.js.map +1 -1
- package/dist/esm/dso-date-picker.entry.js +23 -12
- package/dist/esm/dso-date-picker.entry.js.map +1 -1
- package/dist/esm/dso-document-card.entry.js +2 -4
- package/dist/esm/dso-document-card.entry.js.map +1 -1
- package/dist/esm/dso-dropdown-menu.entry.js +25 -11
- package/dist/esm/dso-dropdown-menu.entry.js.map +1 -1
- package/dist/esm/dso-header.entry.js +20 -16
- package/dist/esm/dso-header.entry.js.map +1 -1
- package/dist/esm/dso-helpcenter-panel.entry.js +13 -11
- package/dist/esm/dso-helpcenter-panel.entry.js.map +1 -1
- package/dist/esm/dso-highlight-box.entry.js +2 -7
- package/dist/esm/dso-highlight-box.entry.js.map +1 -1
- package/dist/esm/dso-icon.entry.js +8 -3
- package/dist/esm/dso-icon.entry.js.map +1 -1
- package/dist/esm/dso-info-button.entry.js +5 -4
- package/dist/esm/dso-info-button.entry.js.map +1 -1
- package/dist/esm/dso-info_2.entry.js +5 -19
- package/dist/esm/dso-info_2.entry.js.map +1 -1
- package/dist/esm/dso-input-range.entry.js +6 -9
- package/dist/esm/dso-input-range.entry.js.map +1 -1
- package/dist/esm/dso-label_2.entry.js +26 -21
- package/dist/esm/dso-label_2.entry.js.map +1 -1
- package/dist/esm/dso-legend-item.entry.js +6 -5
- package/dist/esm/dso-legend-item.entry.js.map +1 -1
- package/dist/esm/dso-list-button.entry.js +13 -65
- package/dist/esm/dso-list-button.entry.js.map +1 -1
- package/dist/esm/dso-logo.entry.js +10 -7
- package/dist/esm/dso-logo.entry.js.map +1 -1
- package/dist/esm/dso-map-base-layers.entry.js +8 -6
- package/dist/esm/dso-map-base-layers.entry.js.map +1 -1
- package/dist/esm/dso-map-controls.entry.js +8 -6
- package/dist/esm/dso-map-controls.entry.js.map +1 -1
- package/dist/esm/dso-map-overlays.entry.js +8 -6
- package/dist/esm/dso-map-overlays.entry.js.map +1 -1
- package/dist/esm/dso-mark-bar.entry.js +6 -6
- package/dist/esm/dso-mark-bar.entry.js.map +1 -1
- package/dist/esm/dso-modal.entry.js +21 -8
- package/dist/esm/dso-modal.entry.js.map +1 -1
- package/dist/esm/dso-pagination.entry.js +4 -4
- package/dist/esm/dso-pagination.entry.js.map +1 -1
- package/dist/esm/dso-plekinfo-card.entry.js +5 -5
- package/dist/esm/dso-plekinfo-card.entry.js.map +1 -1
- package/dist/esm/dso-progress-bar.entry.js +8 -3
- package/dist/esm/dso-progress-bar.entry.js.map +1 -1
- package/dist/esm/dso-progress-indicator.entry.js +3 -6
- package/dist/esm/dso-progress-indicator.entry.js.map +1 -1
- package/dist/esm/dso-project-item.entry.js +2 -3
- package/dist/esm/dso-project-item.entry.js.map +1 -1
- package/dist/esm/dso-renvooi_2.entry.js +13 -8
- package/dist/esm/dso-renvooi_2.entry.js.map +1 -1
- package/dist/esm/dso-responsive-element.entry.js +4 -4
- package/dist/esm/dso-responsive-element.entry.js.map +1 -1
- package/dist/esm/dso-scrollable.entry.js +3 -3
- package/dist/esm/dso-scrollable.entry.js.map +1 -1
- package/dist/esm/dso-skiplink.entry.js +2 -4
- package/dist/esm/dso-skiplink.entry.js.map +1 -1
- package/dist/esm/dso-tab.entry.js +1 -4
- package/dist/esm/dso-tab.entry.js.map +1 -1
- package/dist/esm/dso-tabs.entry.js +2 -2
- package/dist/esm/dso-toggletip.entry.js +11 -7
- package/dist/esm/dso-toggletip.entry.js.map +1 -1
- 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 -3
- package/dist/esm/dso-tree-view.entry.js.map +1 -1
- package/dist/esm/dso-viewer-grid.entry.js +39 -12
- package/dist/esm/dso-viewer-grid.entry.js.map +1 -1
- package/dist/esm/dsot-document-component-demo.entry.js +19 -13
- package/dist/esm/dsot-document-component-demo.entry.js.map +1 -1
- package/dist/esm/{focus-trap.esm-26a44fc9.js → focus-trap.esm-b5ae7e82.js} +69 -46
- package/dist/esm/focus-trap.esm-b5ae7e82.js.map +1 -0
- package/dist/esm/{i18n-43c79e8f.js → i18n-001de5be.js} +22 -7
- package/dist/esm/i18n-001de5be.js.map +1 -0
- package/dist/esm/{index-60b7c895.js → index-b281ec90.js} +350 -267
- package/dist/esm/index-b281ec90.js.map +1 -0
- package/dist/esm/{index.esm-7a561c35.js → index.esm-7e16e884.js} +2 -2
- package/dist/esm/{index.esm-7a561c35.js.map → index.esm-7e16e884.js.map} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{v4-692dad5f.js → v4-c74494dc.js} +8 -2
- package/dist/esm/v4-c74494dc.js.map +1 -0
- package/dist/types/components/alert/alert.d.ts +10 -0
- package/dist/types/components/alert/alert.interfaces.d.ts +3 -0
- package/dist/types/components/list-button/list-button.d.ts +0 -15
- package/dist/types/components.d.ts +29 -8
- package/package.json +9 -9
- package/dist/cjs/focus-trap.esm-b5c60ce2.js.map +0 -1
- package/dist/cjs/i18n-0da568ee.js.map +0 -1
- package/dist/cjs/index-9c71ed34.js.map +0 -1
- package/dist/cjs/v4-6fbeaa38.js.map +0 -1
- package/dist/dso-toolkit/p-098ff158.entry.js +0 -2
- package/dist/dso-toolkit/p-098ff158.entry.js.map +0 -1
- package/dist/dso-toolkit/p-0baa02fe.entry.js +0 -2
- package/dist/dso-toolkit/p-0baa02fe.entry.js.map +0 -1
- package/dist/dso-toolkit/p-0bb48c73.entry.js +0 -2
- package/dist/dso-toolkit/p-0bb48c73.entry.js.map +0 -1
- package/dist/dso-toolkit/p-0c8a8830.entry.js.map +0 -1
- package/dist/dso-toolkit/p-17795a3a.entry.js.map +0 -1
- package/dist/dso-toolkit/p-1b0a9864.entry.js +0 -2
- package/dist/dso-toolkit/p-1b0a9864.entry.js.map +0 -1
- package/dist/dso-toolkit/p-1d087bc6.entry.js +0 -2
- package/dist/dso-toolkit/p-1d087bc6.entry.js.map +0 -1
- package/dist/dso-toolkit/p-20b90390.entry.js +0 -2
- package/dist/dso-toolkit/p-20b90390.entry.js.map +0 -1
- package/dist/dso-toolkit/p-22af5661.entry.js +0 -2
- package/dist/dso-toolkit/p-22af5661.entry.js.map +0 -1
- package/dist/dso-toolkit/p-264f31ed.entry.js +0 -2
- package/dist/dso-toolkit/p-264f31ed.entry.js.map +0 -1
- package/dist/dso-toolkit/p-28182fdb.entry.js +0 -2
- package/dist/dso-toolkit/p-28182fdb.entry.js.map +0 -1
- package/dist/dso-toolkit/p-289d338d.entry.js.map +0 -1
- package/dist/dso-toolkit/p-29ab9e47.entry.js +0 -2
- package/dist/dso-toolkit/p-29ab9e47.entry.js.map +0 -1
- package/dist/dso-toolkit/p-2f25bf04.entry.js +0 -2
- package/dist/dso-toolkit/p-2f25bf04.entry.js.map +0 -1
- package/dist/dso-toolkit/p-3b3ee91d.entry.js +0 -2
- package/dist/dso-toolkit/p-3b3ee91d.entry.js.map +0 -1
- package/dist/dso-toolkit/p-4094d996.entry.js.map +0 -1
- package/dist/dso-toolkit/p-43365ccd.entry.js +0 -2
- package/dist/dso-toolkit/p-45c45f06.entry.js.map +0 -1
- package/dist/dso-toolkit/p-4b21a36d.entry.js.map +0 -1
- package/dist/dso-toolkit/p-51385dad.entry.js.map +0 -1
- package/dist/dso-toolkit/p-53096a64.js +0 -3
- package/dist/dso-toolkit/p-53096a64.js.map +0 -1
- package/dist/dso-toolkit/p-559d80cb.js +0 -2
- package/dist/dso-toolkit/p-583222e7.entry.js.map +0 -1
- package/dist/dso-toolkit/p-65ed101b.entry.js.map +0 -1
- package/dist/dso-toolkit/p-671dc9e8.entry.js.map +0 -1
- package/dist/dso-toolkit/p-6a319038.entry.js.map +0 -1
- package/dist/dso-toolkit/p-6ea8333e.entry.js.map +0 -1
- package/dist/dso-toolkit/p-75b53abf.entry.js +0 -2
- package/dist/dso-toolkit/p-75b53abf.entry.js.map +0 -1
- package/dist/dso-toolkit/p-78b43f2d.entry.js.map +0 -1
- package/dist/dso-toolkit/p-8383d346.entry.js +0 -2
- package/dist/dso-toolkit/p-8383d346.entry.js.map +0 -1
- package/dist/dso-toolkit/p-88411ea2.entry.js +0 -2
- package/dist/dso-toolkit/p-88411ea2.entry.js.map +0 -1
- package/dist/dso-toolkit/p-8b0b2029.entry.js +0 -2
- package/dist/dso-toolkit/p-8b0b2029.entry.js.map +0 -1
- package/dist/dso-toolkit/p-8f1a91bc.entry.js +0 -2
- package/dist/dso-toolkit/p-8f1a91bc.entry.js.map +0 -1
- package/dist/dso-toolkit/p-8fce6b98.entry.js.map +0 -1
- package/dist/dso-toolkit/p-93d7574c.js +0 -2
- package/dist/dso-toolkit/p-971e3998.entry.js +0 -2
- package/dist/dso-toolkit/p-971e3998.entry.js.map +0 -1
- package/dist/dso-toolkit/p-977cc2f7.entry.js.map +0 -1
- package/dist/dso-toolkit/p-98899b90.entry.js +0 -2
- package/dist/dso-toolkit/p-98899b90.entry.js.map +0 -1
- package/dist/dso-toolkit/p-b2899bee.entry.js +0 -2
- package/dist/dso-toolkit/p-b2899bee.entry.js.map +0 -1
- package/dist/dso-toolkit/p-c67a3896.entry.js +0 -2
- package/dist/dso-toolkit/p-c67a3896.entry.js.map +0 -1
- package/dist/dso-toolkit/p-c688843d.entry.js +0 -2
- package/dist/dso-toolkit/p-c9b922b2.entry.js +0 -2
- package/dist/dso-toolkit/p-c9b922b2.entry.js.map +0 -1
- package/dist/dso-toolkit/p-de463284.entry.js +0 -2
- package/dist/dso-toolkit/p-de463284.entry.js.map +0 -1
- package/dist/dso-toolkit/p-e7a14497.entry.js.map +0 -1
- package/dist/dso-toolkit/p-e8ea7939.entry.js +0 -2
- package/dist/dso-toolkit/p-e8ea7939.entry.js.map +0 -1
- package/dist/dso-toolkit/p-ef108c9f.entry.js +0 -2
- package/dist/dso-toolkit/p-f17bf401.entry.js.map +0 -1
- package/dist/dso-toolkit/p-f26ade44.entry.js +0 -2
- package/dist/dso-toolkit/p-f26ade44.entry.js.map +0 -1
- package/dist/dso-toolkit/p-f279a706.js +0 -2
- package/dist/dso-toolkit/p-f279a706.js.map +0 -1
- package/dist/dso-toolkit/p-f31285ef.js +0 -6
- package/dist/dso-toolkit/p-f31285ef.js.map +0 -1
- package/dist/dso-toolkit/p-fc225870.entry.js.map +0 -1
- package/dist/dso-toolkit/p-ffb34aa5.js +0 -2
- package/dist/dso-toolkit/p-ffb34aa5.js.map +0 -1
- package/dist/esm/focus-trap.esm-26a44fc9.js.map +0 -1
- package/dist/esm/i18n-43c79e8f.js.map +0 -1
- package/dist/esm/index-60b7c895.js.map +0 -1
- package/dist/esm/v4-692dad5f.js.map +0 -1
- /package/dist/dso-toolkit/{p-1dbcaeef.js.map → p-86133aa5.js.map} +0 -0
- /package/dist/dso-toolkit/{p-c2f8f46c.entry.js.map → p-b7223b58.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-559d80cb.js.map → p-b9063235.js.map} +0 -0
- /package/dist/dso-toolkit/{p-93d7574c.js.map → p-d3eacf71.js.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectable.js","sourceRoot":"","sources":["../../../../src/components/selectable/selectable.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,CAAC,EACD,SAAS,EACT,IAAI,EACJ,KAAK,EAEL,QAAQ,EACR,OAAO,EACP,KAAK,EACL,WAAW,EACX,KAAK,EACL,MAAM,GAEP,MAAM,eAAe,CAAC;AACvB,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAGjE;;;;GAIG;AAMH,MAAM,OAAO,UAAU;;QA0Gb,uBAAkB,GAAG,gBAAgB,CAAC,eAAe,CAAC,CAAC;QAIvD,mBAAc,GAAG,CAAC,CAAQ,EAAE,EAAE;YACpC,MAAM,EAAE,MAAM,EAAE,GAAG,CAAC,CAAC;YAErB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;gBAClB,aAAa,EAAE,CAAC;gBAChB,OAAO,EAAE,MAAM,YAAY,gBAAgB,IAAI,MAAM,CAAC,OAAO;aAC9D,CAAC,CAAC;YAEH,WAAW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AAC,SAAS,EAC9D,KAAK,EAAE,IAAI,CAAC,SAAS,EACrB,MAAM,EAAE,IAAI,CAAC,UAAU,EACvB,UAAU,EAAE,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;gBAE3C;oBACE,6DAAM,IAAI,EAAC,MAAM,GAAQ,CACrB,CACG,CACZ;YACD,6DAAM,IAAI,EAAC,SAAS,GAAG,CACd,CACZ,CAAC;IACJ,CAAC;IAED,kBAAkB;QAChB,IAAI,IAAI,CAAC,KAAK,IAAI,OAAO,IAAI,CAAC,OAAO,KAAK,SAAS,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,KAAK,IAAI,CAAC,OAAO,EAAE,CAAC;YAC3F,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;QACpC,CAAC;IACH,CAAC;IAEO,aAAa;;QACnB,OAAO,MAAA,IAAI,CAAC,UAAU,mCAAI,IAAI,CAAC,kBAAkB,CAAC;IACpD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import {\r\n h,\r\n Component,\r\n Prop,\r\n Event,\r\n EventEmitter,\r\n Fragment,\r\n Element,\r\n State,\r\n forceUpdate,\r\n Watch,\r\n Method,\r\n ComponentInterface,\r\n} from \"@stencil/core\";\r\nimport clsx from \"clsx\";\r\nimport { createIdentifier } from \"../../utils/create-identifier\";\r\nimport { SelectableChangeEvent } from \"./selectable.interfaces\";\r\n\r\n/**\r\n * @slot - The label for this control\r\n * @slot info - Rich Content to be slotted in Info.\r\n * @slot options - for further nested selectable options: `<ul class=\"dso-selectable-options\" slot=\"options\">` and wrap each Selectable in a `<li>`.\r\n */\r\n@Component({\r\n tag: \"dso-selectable\",\r\n styleUrl: \"selectable.scss\",\r\n scoped: true,\r\n})\r\nexport class Selectable implements ComponentInterface {\r\n /**\r\n * Type of Selectable.\r\n *\r\n * `checkbox`: Multiple options\r\n * `radio`: Single option.\r\n */\r\n @Prop()\r\n type!: \"checkbox\" | \"radio\";\r\n\r\n /**\r\n * To set `<input id>` attribute for external references.\r\n */\r\n @Prop()\r\n identifier?: string;\r\n\r\n /**\r\n * Name of the Selectable. Can be used to group Selectables.\r\n */\r\n @Prop()\r\n name?: string;\r\n\r\n /**\r\n * The value of the Selectable.\r\n */\r\n @Prop()\r\n value!: string;\r\n\r\n /**\r\n * Set to true of the current value is not valid.\r\n */\r\n @Prop()\r\n invalid?: boolean;\r\n\r\n /**\r\n * To link this control to an element that describes it.\r\n */\r\n @Prop()\r\n describedById?: string;\r\n\r\n /**\r\n * To link this control to an element that labels it.\r\n */\r\n @Prop()\r\n labelledById?: string;\r\n\r\n /**\r\n * To disable the Selectable.\r\n */\r\n @Prop()\r\n disabled?: boolean;\r\n\r\n /**\r\n * To mark the Selectable as required.\r\n */\r\n @Prop()\r\n required?: boolean;\r\n\r\n /**\r\n * Mark the Selectable as checked\r\n */\r\n @Prop({ reflect: true })\r\n checked?: boolean;\r\n\r\n /**\r\n * An indeterminate state is neither true or false. It means the answer is somewhere in between.\r\n *\r\n * Can be used to indicate child Selectables that are a mix of checked and unchecked.\r\n */\r\n @Prop()\r\n indeterminate?: boolean;\r\n\r\n /**\r\n * Set to true if the Info should not be toggled and always visible.\r\n */\r\n @Prop()\r\n infoFixed?: boolean;\r\n\r\n /**\r\n * Emitted when the user checks or unchecks the Selectable.\r\n */\r\n @Event()\r\n dsoChange!: EventEmitter<SelectableChangeEvent>;\r\n\r\n @Element()\r\n host!: HTMLDsoSelectableElement;\r\n\r\n @State()\r\n infoActive = false;\r\n\r\n @State()\r\n keyboardFocus = false;\r\n\r\n /**\r\n * Method to toggle the Info. Is set to `active` when passed.\r\n *\r\n * If `active` is not passed, Info is toggled to opposite value.\r\n * @param active\r\n */\r\n @Method()\r\n async toggleInfo(active?: boolean) {\r\n this.infoActive = active ?? !this.infoActive;\r\n }\r\n\r\n private mutationObserver?: MutationObserver;\r\n\r\n private fallbackIdentifier = createIdentifier(\"DsoSelectable\");\r\n\r\n private input: HTMLInputElement | undefined;\r\n\r\n private handleOnChange = (e: Event) => {\r\n const { target } = e;\r\n\r\n this.dsoChange.emit({\r\n originalEvent: e,\r\n checked: target instanceof HTMLInputElement && target.checked,\r\n });\r\n\r\n forceUpdate(this.host);\r\n };\r\n\r\n componentDidLoad() {\r\n this.mutationObserver?.disconnect();\r\n\r\n this.mutationObserver = new MutationObserver(() => forceUpdate(this.host));\r\n this.mutationObserver.observe(this.host, {\r\n childList: true,\r\n });\r\n\r\n this.setIndeterminate();\r\n }\r\n\r\n disconnectedCallback() {\r\n this.mutationObserver?.disconnect();\r\n }\r\n\r\n @Watch(\"indeterminate\")\r\n setIndeterminate() {\r\n if (!(this.input instanceof HTMLInputElement) || this.type !== \"checkbox\") {\r\n return;\r\n }\r\n\r\n this.input.indeterminate = !!this.indeterminate;\r\n }\r\n\r\n render() {\r\n const hasInfo = !!this.host.querySelector('[slot=\"info\"]');\r\n\r\n return (\r\n <Fragment>\r\n <div class=\"dso-selectable-container\">\r\n <div class={clsx(\"dso-selectable-input-wrapper\", { \"dso-keyboard-focus\": this.keyboardFocus })}>\r\n <input\r\n type={this.type}\r\n id={this.getIdentifier()}\r\n value={this.value}\r\n name={this.name}\r\n aria-invalid={this.invalid?.toString()}\r\n aria-describedby={hasInfo && this.infoFixed ? this.describedById : undefined}\r\n aria-labelledBy={this.labelledById}\r\n disabled={this.disabled}\r\n required={this.required}\r\n checked={this.checked}\r\n onChange={this.handleOnChange}\r\n onBlur={() => (this.keyboardFocus = false)}\r\n onKeyUp={() => (this.keyboardFocus = true)}\r\n ref={(el) => (this.input = el)}\r\n />\r\n {!this.labelledById ? (\r\n <label htmlFor={this.getIdentifier()}>\r\n <slot />\r\n </label>\r\n ) : (\r\n <label>\r\n <slot />\r\n </label>\r\n )}\r\n </div>\r\n {hasInfo && !this.infoFixed && (\r\n <dso-info-button\r\n active={this.infoActive}\r\n onDsoToggle={(e) => (this.infoActive = e.detail.active)}\r\n ></dso-info-button>\r\n )}\r\n </div>\r\n {hasInfo && (\r\n <dso-info\r\n id={hasInfo && this.infoFixed ? this.describedById : undefined}\r\n fixed={this.infoFixed}\r\n active={this.infoActive}\r\n onDsoClose={() => (this.infoActive = false)}\r\n >\r\n <div>\r\n <slot name=\"info\"></slot>\r\n </div>\r\n </dso-info>\r\n )}\r\n <slot name=\"options\" />\r\n </Fragment>\r\n );\r\n }\r\n\r\n componentDidRender(): void {\r\n if (this.input && typeof this.checked === \"boolean\" && this.input.checked !== this.checked) {\r\n this.input.checked = this.checked;\r\n }\r\n }\r\n\r\n private getIdentifier(): string {\r\n return this.identifier ?? this.fallbackIdentifier;\r\n }\r\n}\r\n"]}
|
|
1
|
+
{"version":3,"file":"selectable.js","sourceRoot":"","sources":["../../../../src/components/selectable/selectable.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,CAAC,EACD,SAAS,EACT,IAAI,EACJ,KAAK,EAEL,QAAQ,EACR,OAAO,EACP,KAAK,EACL,WAAW,EACX,KAAK,EACL,MAAM,GAEP,MAAM,eAAe,CAAC;AACvB,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAGjE;;;;GAIG;AAMH,MAAM,OAAO,UAAU;IALvB;QA6FE,eAAU,GAAG,KAAK,CAAC;QAGnB,kBAAa,GAAG,KAAK,CAAC;QAed,uBAAkB,GAAG,gBAAgB,CAAC,eAAe,CAAC,CAAC;QAIvD,mBAAc,GAAG,CA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n Event,\r\n EventEmitter,\r\n Fragment,\r\n Element,\r\n State,\r\n forceUpdate,\r\n Watch,\r\n Method,\r\n ComponentInterface,\r\n} from \"@stencil/core\";\r\nimport clsx from \"clsx\";\r\nimport { createIdentifier } from \"../../utils/create-identifier\";\r\nimport { SelectableChangeEvent } from \"./selectable.interfaces\";\r\n\r\n/**\r\n * @slot - The label for this control\r\n * @slot info - Rich Content to be slotted in Info.\r\n * @slot options - for further nested selectable options: `<ul class=\"dso-selectable-options\" slot=\"options\">` and wrap each Selectable in a `<li>`.\r\n */\r\n@Component({\r\n tag: \"dso-selectable\",\r\n styleUrl: \"selectable.scss\",\r\n scoped: true,\r\n})\r\nexport class Selectable implements ComponentInterface {\r\n /**\r\n * Type of Selectable.\r\n *\r\n * `checkbox`: Multiple options\r\n * `radio`: Single option.\r\n */\r\n @Prop()\r\n type!: \"checkbox\" | \"radio\";\r\n\r\n /**\r\n * To set `<input id>` attribute for external references.\r\n */\r\n @Prop()\r\n identifier?: string;\r\n\r\n /**\r\n * Name of the Selectable. Can be used to group Selectables.\r\n */\r\n @Prop()\r\n name?: string;\r\n\r\n /**\r\n * The value of the Selectable.\r\n */\r\n @Prop()\r\n value!: string;\r\n\r\n /**\r\n * Set to true of the current value is not valid.\r\n */\r\n @Prop()\r\n invalid?: boolean;\r\n\r\n /**\r\n * To link this control to an element that describes it.\r\n */\r\n @Prop()\r\n describedById?: string;\r\n\r\n /**\r\n * To link this control to an element that labels it.\r\n */\r\n @Prop()\r\n labelledById?: string;\r\n\r\n /**\r\n * To disable the Selectable.\r\n */\r\n @Prop()\r\n disabled?: boolean;\r\n\r\n /**\r\n * To mark the Selectable as required.\r\n */\r\n @Prop()\r\n required?: boolean;\r\n\r\n /**\r\n * Mark the Selectable as checked\r\n */\r\n @Prop({ reflect: true })\r\n checked?: boolean;\r\n\r\n /**\r\n * An indeterminate state is neither true or false. It means the answer is somewhere in between.\r\n *\r\n * Can be used to indicate child Selectables that are a mix of checked and unchecked.\r\n */\r\n @Prop()\r\n indeterminate?: boolean;\r\n\r\n /**\r\n * Set to true if the Info should not be toggled and always visible.\r\n */\r\n @Prop()\r\n infoFixed?: boolean;\r\n\r\n /**\r\n * Emitted when the user checks or unchecks the Selectable.\r\n */\r\n @Event()\r\n dsoChange!: EventEmitter<SelectableChangeEvent>;\r\n\r\n @Element()\r\n host!: HTMLDsoSelectableElement;\r\n\r\n @State()\r\n infoActive = false;\r\n\r\n @State()\r\n keyboardFocus = false;\r\n\r\n /**\r\n * Method to toggle the Info. Is set to `active` when passed.\r\n *\r\n * If `active` is not passed, Info is toggled to opposite value.\r\n * @param active\r\n */\r\n @Method()\r\n async toggleInfo(active?: boolean) {\r\n this.infoActive = active ?? !this.infoActive;\r\n }\r\n\r\n private mutationObserver?: MutationObserver;\r\n\r\n private fallbackIdentifier = createIdentifier(\"DsoSelectable\");\r\n\r\n private input: HTMLInputElement | undefined;\r\n\r\n private handleOnChange = (e: Event) => {\r\n const { target } = e;\r\n\r\n this.dsoChange.emit({\r\n originalEvent: e,\r\n checked: target instanceof HTMLInputElement && target.checked,\r\n });\r\n\r\n forceUpdate(this.host);\r\n };\r\n\r\n componentDidLoad() {\r\n this.mutationObserver?.disconnect();\r\n\r\n this.mutationObserver = new MutationObserver(() => forceUpdate(this.host));\r\n this.mutationObserver.observe(this.host, {\r\n childList: true,\r\n });\r\n\r\n this.setIndeterminate();\r\n }\r\n\r\n disconnectedCallback() {\r\n this.mutationObserver?.disconnect();\r\n }\r\n\r\n @Watch(\"indeterminate\")\r\n setIndeterminate() {\r\n if (!(this.input instanceof HTMLInputElement) || this.type !== \"checkbox\") {\r\n return;\r\n }\r\n\r\n this.input.indeterminate = !!this.indeterminate;\r\n }\r\n\r\n render() {\r\n const hasInfo = !!this.host.querySelector('[slot=\"info\"]');\r\n\r\n return (\r\n <Fragment>\r\n <div class=\"dso-selectable-container\">\r\n <div class={clsx(\"dso-selectable-input-wrapper\", { \"dso-keyboard-focus\": this.keyboardFocus })}>\r\n <input\r\n type={this.type}\r\n id={this.getIdentifier()}\r\n value={this.value}\r\n name={this.name}\r\n aria-invalid={this.invalid?.toString()}\r\n aria-describedby={hasInfo && this.infoFixed ? this.describedById : undefined}\r\n aria-labelledBy={this.labelledById}\r\n disabled={this.disabled}\r\n required={this.required}\r\n checked={this.checked}\r\n onChange={this.handleOnChange}\r\n onBlur={() => (this.keyboardFocus = false)}\r\n onKeyUp={() => (this.keyboardFocus = true)}\r\n ref={(el) => (this.input = el)}\r\n />\r\n {!this.labelledById ? (\r\n <label htmlFor={this.getIdentifier()}>\r\n <slot />\r\n </label>\r\n ) : (\r\n <label>\r\n <slot />\r\n </label>\r\n )}\r\n </div>\r\n {hasInfo && !this.infoFixed && (\r\n <dso-info-button\r\n active={this.infoActive}\r\n onDsoToggle={(e) => (this.infoActive = e.detail.active)}\r\n ></dso-info-button>\r\n )}\r\n </div>\r\n {hasInfo && (\r\n <dso-info\r\n id={hasInfo && this.infoFixed ? this.describedById : undefined}\r\n fixed={this.infoFixed}\r\n active={this.infoActive}\r\n onDsoClose={() => (this.infoActive = false)}\r\n >\r\n <div>\r\n <slot name=\"info\"></slot>\r\n </div>\r\n </dso-info>\r\n )}\r\n <slot name=\"options\" />\r\n </Fragment>\r\n );\r\n }\r\n\r\n componentDidRender(): void {\r\n if (this.input && typeof this.checked === \"boolean\" && this.input.checked !== this.checked) {\r\n this.input.checked = this.checked;\r\n }\r\n }\r\n\r\n private getIdentifier(): string {\r\n return this.identifier ?? this.fallbackIdentifier;\r\n }\r\n}\r\n"]}
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { isModifiedEvent } from "../../utils/is-modified-event";
|
|
3
3
|
export class Skiplink {
|
|
4
|
-
constructor() {
|
|
5
|
-
this.to = undefined;
|
|
6
|
-
this.label = undefined;
|
|
7
|
-
}
|
|
8
4
|
clickEventHandler(e) {
|
|
9
5
|
if (!(e.target instanceof HTMLElement) || !this.to) {
|
|
10
6
|
return;
|
|
@@ -12,7 +8,7 @@ export class Skiplink {
|
|
|
12
8
|
return this.dsoSkiplinkClick.emit({ originalEvent: e, isModifiedEvent: isModifiedEvent(e) });
|
|
13
9
|
}
|
|
14
10
|
render() {
|
|
15
|
-
return (h("a", { key: '
|
|
11
|
+
return (h("a", { key: '9ea0faf0f29664560824f8d4308282c6553fa59d', href: `#${this.to}`, onClick: (e) => this.clickEventHandler(e) }, this.label, h("dso-icon", { key: '47783ba800794b0e1681c78c0cd21af6319df498', icon: "chevron-right" })));
|
|
16
12
|
}
|
|
17
13
|
static get is() { return "dso-skiplink"; }
|
|
18
14
|
static get encapsulation() { return "shadow"; }
|
|
@@ -42,6 +38,8 @@ export class Skiplink {
|
|
|
42
38
|
"tags": [],
|
|
43
39
|
"text": "The location to which the skiplink links."
|
|
44
40
|
},
|
|
41
|
+
"getter": false,
|
|
42
|
+
"setter": false,
|
|
45
43
|
"attribute": "to",
|
|
46
44
|
"reflect": true
|
|
47
45
|
},
|
|
@@ -59,6 +57,8 @@ export class Skiplink {
|
|
|
59
57
|
"tags": [],
|
|
60
58
|
"text": "link text"
|
|
61
59
|
},
|
|
60
|
+
"getter": false,
|
|
61
|
+
"setter": false,
|
|
62
62
|
"attribute": "label",
|
|
63
63
|
"reflect": true
|
|
64
64
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skiplink.js","sourceRoot":"","sources":["../../../../src/components/skiplink/skiplink.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAsB,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAE5F,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAShE,MAAM,OAAO,QAAQ
|
|
1
|
+
{"version":3,"file":"skiplink.js","sourceRoot":"","sources":["../../../../src/components/skiplink/skiplink.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAsB,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAE5F,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAShE,MAAM,OAAO,QAAQ;IAmBX,iBAAiB,CAAC,CAAa;QACrC,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,YAAY,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC;YACnD,OAAO;QACT,CAAC;QAED,OAAO,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,EAAE,aAAa,EAAE,CAAC,EAAE,eAAe,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAC/F,CAAC;IAED,MAAM;QACJ,OAAO,CACL,0DAAG,IAAI,EAAE,IAAI,IAAI,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC;YAC9D,IAAI,CAAC,KAAK;YACX,iEAAU,IAAI,EAAC,eAAe,GAAY,CACxC,CACL,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, ComponentInterface, Event, EventEmitter, h, Prop } from \"@stencil/core\";\r\n\r\nimport { isModifiedEvent } from \"../../utils/is-modified-event\";\r\n\r\nimport { SkiplinkClickEvent } from \"./skiplink.interfaces\";\r\n\r\n@Component({\r\n tag: \"dso-skiplink\",\r\n styleUrl: \"skiplink.scss\",\r\n shadow: true,\r\n})\r\nexport class Skiplink implements ComponentInterface {\r\n /**\r\n * The location to which the skiplink links.\r\n */\r\n @Prop({ reflect: true })\r\n to!: string | undefined;\r\n\r\n /**\r\n * link text\r\n */\r\n @Prop({ reflect: true })\r\n label!: string | undefined;\r\n\r\n /**\r\n * Emitted when the Skiplink is clicked.\r\n */\r\n @Event()\r\n dsoSkiplinkClick!: EventEmitter<SkiplinkClickEvent>;\r\n\r\n private clickEventHandler(e: MouseEvent) {\r\n if (!(e.target instanceof HTMLElement) || !this.to) {\r\n return;\r\n }\r\n\r\n return this.dsoSkiplinkClick.emit({ originalEvent: e, isModifiedEvent: isModifiedEvent(e) });\r\n }\r\n\r\n render() {\r\n return (\r\n <a href={`#${this.to}`} onClick={(e) => this.clickEventHandler(e)}>\r\n {this.label}\r\n <dso-icon icon=\"chevron-right\"></dso-icon>\r\n </a>\r\n );\r\n }\r\n}\r\n"]}
|
|
@@ -2,11 +2,17 @@ import { h, Fragment } from "@stencil/core";
|
|
|
2
2
|
import { v4 } from "uuid";
|
|
3
3
|
export class SlideToggle {
|
|
4
4
|
constructor() {
|
|
5
|
+
/**
|
|
6
|
+
* Set to true if Slide Toggle is checked.
|
|
7
|
+
*/
|
|
5
8
|
this.checked = false;
|
|
9
|
+
/**
|
|
10
|
+
* Disables the Slide Toggle, preventing it from checking/unchecking and therefor not emitting any events.
|
|
11
|
+
*/
|
|
6
12
|
this.disabled = false;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Provide an `id` for the `<button>`. Useful for placing your to place your own `<label for="id">`.
|
|
15
|
+
*/
|
|
10
16
|
this.identifier = v4();
|
|
11
17
|
}
|
|
12
18
|
handleSwitch(e) {
|
|
@@ -19,7 +25,7 @@ export class SlideToggle {
|
|
|
19
25
|
this.hasVisibleLabel = this.host.querySelector("*") !== null;
|
|
20
26
|
}
|
|
21
27
|
render() {
|
|
22
|
-
return (h(Fragment, null, h("button", Object.assign({ key: '
|
|
28
|
+
return (h(Fragment, null, h("button", Object.assign({ key: '306eb41c32a4811e8ae34fb407f827bc8b875d90', id: this.identifier, role: "switch", class: "dso-slider", "aria-checked": "" + this.checked, disabled: this.disabled, onClick: (e) => this.handleSwitch(e) }, (this.accessibleLabel ? { "aria-label": this.accessibleLabel } : {}), (this.labelledbyId ? { "aria-labelledby": this.labelledbyId } : {})), h("svg", { key: '35dac095c112ff5ebfe85701c5d3a44d5b1dbf68', xmlns: "http://www.w3.org/2000/svg", width: "40", height: "20", viewBox: "0 0 40 20" }, h("g", { key: 'b6db44931a28ffbf074ebe22b6ad2aaca58609d1', fill: "none", "fill-rule": "evenodd" }, h("rect", { key: '40618cd396f7fb4c316c58fb9afe7138aa5dffd5', width: "40", height: "20", fill: "currentColor", rx: "10" }), h("circle", { key: '3bd59d43e08c68849e89ec62f89d8cd32e68542b', cy: "10", r: "8", fill: "currentColor" })))), this.hasVisibleLabel && (h("label", { key: '1de645b2d4f302b4c34ffbcbd7f012b6aa2eb164', htmlFor: this.identifier }, h("slot", { key: '21915a975abcff59b830a891660cb1f23f604a6f' })))));
|
|
23
29
|
}
|
|
24
30
|
static get is() { return "dso-slide-toggle"; }
|
|
25
31
|
static get originalStyleUrls() {
|
|
@@ -48,6 +54,8 @@ export class SlideToggle {
|
|
|
48
54
|
"tags": [],
|
|
49
55
|
"text": "Set to true if Slide Toggle is checked."
|
|
50
56
|
},
|
|
57
|
+
"getter": false,
|
|
58
|
+
"setter": false,
|
|
51
59
|
"attribute": "checked",
|
|
52
60
|
"reflect": false,
|
|
53
61
|
"defaultValue": "false"
|
|
@@ -66,6 +74,8 @@ export class SlideToggle {
|
|
|
66
74
|
"tags": [],
|
|
67
75
|
"text": "Disables the Slide Toggle, preventing it from checking/unchecking and therefor not emitting any events."
|
|
68
76
|
},
|
|
77
|
+
"getter": false,
|
|
78
|
+
"setter": false,
|
|
69
79
|
"attribute": "disabled",
|
|
70
80
|
"reflect": false,
|
|
71
81
|
"defaultValue": "false"
|
|
@@ -84,6 +94,8 @@ export class SlideToggle {
|
|
|
84
94
|
"tags": [],
|
|
85
95
|
"text": "When provided the `<button>` will be labelled with `aria-label`. For a visible label provide a `<span>` inside the component."
|
|
86
96
|
},
|
|
97
|
+
"getter": false,
|
|
98
|
+
"setter": false,
|
|
87
99
|
"attribute": "accessible-label",
|
|
88
100
|
"reflect": false
|
|
89
101
|
},
|
|
@@ -101,6 +113,8 @@ export class SlideToggle {
|
|
|
101
113
|
"tags": [],
|
|
102
114
|
"text": "Provide the `id` of the element that labels this element. this property sets the `aria-labelledby` on the switch button."
|
|
103
115
|
},
|
|
116
|
+
"getter": false,
|
|
117
|
+
"setter": false,
|
|
104
118
|
"attribute": "labelledby-id",
|
|
105
119
|
"reflect": false
|
|
106
120
|
},
|
|
@@ -118,6 +132,8 @@ export class SlideToggle {
|
|
|
118
132
|
"tags": [],
|
|
119
133
|
"text": "Provide an `id` for the `<button>`. Useful for placing your to place your own `<label for=\"id\">`."
|
|
120
134
|
},
|
|
135
|
+
"getter": false,
|
|
136
|
+
"setter": false,
|
|
121
137
|
"attribute": "identifier",
|
|
122
138
|
"reflect": false,
|
|
123
139
|
"defaultValue": "v4()"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slide-toggle.js","sourceRoot":"","sources":["../../../../src/components/slide-toggle/slide-toggle.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,SAAS,EAAsB,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAgB,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtH,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC;AAQ1B,MAAM,OAAO,WAAW;;
|
|
1
|
+
{"version":3,"file":"slide-toggle.js","sourceRoot":"","sources":["../../../../src/components/slide-toggle/slide-toggle.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,SAAS,EAAsB,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAgB,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtH,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC;AAQ1B,MAAM,OAAO,WAAW;IALxB;QASE;;WAEG;QAEH,YAAO,GAAG,KAAK,CAAC;QAEhB;;WAEG;QAEH,aAAQ,GAAG,KAAK,CAAC;QAiBjB;;WAEG;QAEH,eAAU,GAAG,EAAE,EAAE,CAAC;KA+CnB;IAv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,CAAC,UAAU;gBAC7B,8DAAQ,CACF,CACT,CACA,CACJ,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { h, Component, ComponentInterface, Event, Fragment, Prop, EventEmitter, Element, State } from \"@stencil/core\";\r\nimport { v4 } from \"uuid\";\r\nimport { SlideToggleActiveEvent } from \"./slide-toggle.interfaces\";\r\n\r\n@Component({\r\n tag: \"dso-slide-toggle\",\r\n styleUrl: \"slide-toggle.scss\",\r\n shadow: false,\r\n})\r\nexport class SlideToggle implements ComponentInterface {\r\n @Element()\r\n private host!: HTMLDsoSlideToggleElement;\r\n\r\n /**\r\n * Set to true if Slide Toggle is checked.\r\n */\r\n @Prop()\r\n checked = false;\r\n\r\n /**\r\n * Disables the Slide Toggle, preventing it from checking/unchecking and therefor not emitting any events.\r\n */\r\n @Prop()\r\n disabled = false;\r\n\r\n /**\r\n * When provided the `<button>` will be labelled with `aria-label`. For a visible label provide a `<span>` inside the component.\r\n */\r\n @Prop()\r\n accessibleLabel?: string;\r\n\r\n /**\r\n * Provide the `id` of the element that labels this element. this property sets the `aria-labelledby` on the switch button.\r\n */\r\n @Prop()\r\n labelledbyId?: string;\r\n\r\n @State()\r\n hasVisibleLabel?: boolean;\r\n\r\n /**\r\n * Provide an `id` for the `<button>`. Useful for placing your to place your own `<label for=\"id\">`.\r\n */\r\n @Prop()\r\n identifier = v4();\r\n\r\n /**\r\n * Emitted when user checks or unchecks the Slide Toggle.\r\n */\r\n @Event({ composed: false })\r\n dsoActiveChange!: EventEmitter<SlideToggleActiveEvent>;\r\n\r\n private handleSwitch(e: Event): void {\r\n this.dsoActiveChange.emit({\r\n originalEvent: e,\r\n checked: !this.checked,\r\n });\r\n }\r\n\r\n componentWillLoad(): void {\r\n this.hasVisibleLabel = this.host.querySelector(\"*\") !== null;\r\n }\r\n\r\n render() {\r\n return (\r\n <>\r\n <button\r\n id={this.identifier}\r\n role=\"switch\"\r\n class=\"dso-slider\"\r\n aria-checked={\"\" + this.checked}\r\n disabled={this.disabled}\r\n onClick={(e) => this.handleSwitch(e)}\r\n {...(this.accessibleLabel ? { \"aria-label\": this.accessibleLabel } : {})}\r\n {...(this.labelledbyId ? { \"aria-labelledby\": this.labelledbyId } : {})}\r\n >\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"40\" height=\"20\" viewBox=\"0 0 40 20\">\r\n <g fill=\"none\" fill-rule=\"evenodd\">\r\n <rect width=\"40\" height=\"20\" fill=\"currentColor\" rx=\"10\" />\r\n <circle cy=\"10\" r=\"8\" fill=\"currentColor\" />\r\n </g>\r\n </svg>\r\n </button>\r\n {this.hasVisibleLabel && (\r\n <label htmlFor={this.identifier}>\r\n <slot />\r\n </label>\r\n )}\r\n </>\r\n );\r\n }\r\n}\r\n"]}
|
|
@@ -5,10 +5,15 @@ import { v4 } from "uuid";
|
|
|
5
5
|
export class Table {
|
|
6
6
|
constructor() {
|
|
7
7
|
this.labelledbyId = v4();
|
|
8
|
+
/**
|
|
9
|
+
* Prevents the table being opened in a modal.
|
|
10
|
+
*/
|
|
8
11
|
this.noModal = false;
|
|
12
|
+
/**
|
|
13
|
+
* Indicates whether the table is currently horizontally scrollable.
|
|
14
|
+
*/
|
|
9
15
|
this.isResponsive = false;
|
|
10
16
|
this.modalActive = false;
|
|
11
|
-
this.placeholderHeight = undefined;
|
|
12
17
|
}
|
|
13
18
|
startResponsiveBehavior() {
|
|
14
19
|
var _a;
|
|
@@ -30,7 +35,7 @@ export class Table {
|
|
|
30
35
|
render() {
|
|
31
36
|
var _a, _b;
|
|
32
37
|
const caption = (_b = (_a = this.host.querySelector(":scope > table > caption")) === null || _a === void 0 ? void 0 : _a.textContent) === null || _b === void 0 ? void 0 : _b.trim();
|
|
33
|
-
return (h(Host, { key: '
|
|
38
|
+
return (h(Host, { key: '938a684ea916f6b2bfb741ad8ea1a07ee2b800a1' }, this.modalActive && this.placeholderHeight && (h("div", { key: 'b4215b34413a54a9715810c71400cebbd262c72f', class: "dso-table-placeholder", style: { height: `${this.placeholderHeight}px` } })), this.modalActive && h("div", { key: 'f7b9e6d0d60b7395dea511fbfff066ea78d0ac2d', class: "dso-modal-overlay" }), h("div", { key: 'ee15e6948a5c45cec6ebcc20b96886690568b846', class: { "dso-modal": this.modalActive } }, h("div", Object.assign({ key: 'bbd957170c048e6511659370abb231733de3b304', class: { "dso-dialog": this.modalActive, "dso-table-dialog": true }, ref: (element) => (this.focusTrapElement = element) }, (this.modalActive ? { ["aria-labelledby"]: this.labelledbyId, role: "dialog" } : {})), (this.isResponsive || !this.noModal) && (h("div", { key: 'ef992251b2c61f5d39c07671a505b261778cd802', class: "dso-table-utilities", style: this.modalActive ? { display: "none" } : undefined }, this.isResponsive && (h("div", { key: '7353c51b91d45764a2c1554e11b88554562622f7', class: "dso-responsive-message" }, h("span", { key: 'fa2859739ccfd5d2feade45fb6b146589422176b' }, "beweeg de tabel van links naar rechts"))), !this.noModal && (h("button", { key: '6238fab58ee5d1ca1544704baa799ec87f2759a4', type: "button", class: "dso-tertiary open-modal-button", ref: (element) => (this.buttonElement = element), onClick: () => this.openModal() }, h("span", { key: '0a65833cee370dd7b74453758963070d29c315bb', class: "sr-only" }, "tabel ", caption !== null && caption !== void 0 ? caption : "", " "), h("span", { key: '7de772f54616cc4723e92eb98933f4d55937bcd6' }, "vergroten"), h("dso-icon", { key: 'bc085946ea5591a3b9c6ee5cd8cb9bd352182283', icon: "external-link" }))))), this.modalActive && (h("div", { key: '2d2505608302cda259d9e51ef5f98d8ceebf292f', class: "dso-header" }, h("h2", { key: '2e7269709c803dc248300ca87555f3589ada73b8', id: this.labelledbyId, class: { "sr-only": !caption } }, caption || "Uitvergrote tabel dialoog"), h("button", { key: 'bc26e2181aaaa38b9d200aeb044250717cc78880', type: "button", class: "dso-close", onClick: () => this.closeModal() }, h("dso-icon", { key: '79707874e61cb4f5cd0bfe800946e70719efcd9b', icon: "times" }), h("span", { key: '3a552318df143dd8d91342d767417d05ce27d95b', class: "sr-only" }, "Sluiten")))), h("div", { key: 'e05e8573d30faf5102f3593ee0d32416f2212d65', class: { "dso-body": this.modalActive, "dso-table-body": true } }, h("slot", { key: '9d31d8f0dc6567feba03c67c4397935d2a853367' }))))));
|
|
34
39
|
}
|
|
35
40
|
openModal() {
|
|
36
41
|
this.placeholderHeight = this.host.clientHeight;
|
|
@@ -102,6 +107,8 @@ export class Table {
|
|
|
102
107
|
"tags": [],
|
|
103
108
|
"text": "Prevents the table being opened in a modal."
|
|
104
109
|
},
|
|
110
|
+
"getter": false,
|
|
111
|
+
"setter": false,
|
|
105
112
|
"attribute": "no-modal",
|
|
106
113
|
"reflect": true,
|
|
107
114
|
"defaultValue": "false"
|
|
@@ -120,6 +127,8 @@ export class Table {
|
|
|
120
127
|
"tags": [],
|
|
121
128
|
"text": "Indicates whether the table is currently horizontally scrollable."
|
|
122
129
|
},
|
|
130
|
+
"getter": false,
|
|
131
|
+
"setter": false,
|
|
123
132
|
"attribute": "is-responsive",
|
|
124
133
|
"reflect": true,
|
|
125
134
|
"defaultValue": "false"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.js","sourceRoot":"","sources":["../../../../src/components/table/table.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,SAAS,EAAsB,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC7F,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,eAAe,EAAa,MAAM,YAAY,CAAC;AACxD,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC;AAO1B,MAAM,OAAO,KAAK
|
|
1
|
+
{"version":3,"file":"table.js","sourceRoot":"","sources":["../../../../src/components/table/table.tsx"],"names":[],"mappings":"AAA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AC;wBAC7E,IAAI,CAAC,UAAU,EAAE,CAAC;wBAElB,OAAO,KAAK,CAAC;oBACf,CAAC;oBAED,OAAO,IAAI,CAAC;gBACd,CAAC;gBACD,cAAc,EAAE,MAAA,IAAI,CAAC,aAAa,mCAAI,KAAK;gBAC3C,YAAY,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,UAAU,EAAE;gBACrC,eAAe,EAAE;oBACf,aAAa,EAAE,IAAI;iBACpB;aACF,CAAC,CAAC,QAAQ,EAAE,CAAC;QAChB,CAAC;aAAM,IAAI,CAAC,IAAI,CAAC,WAAW,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC;YAC1C,MAAA,IAAI,CAAC,IAAI,0CAAE,UAAU,EAAE,CAAC;YAExB,OAAO,IAAI,CAAC,IAAI,CAAC;QACnB,CAAC;IACH,CAAC;IAEO,kBAAkB,CAAC,CAAC,QAAQ,CAAwB;QAC1D,IAAI,CAAC,QAAQ,EAAE,CAAC;YACd,MAAM,IAAI,KAAK,CAAC,mBAAmB,CAAC,CAAC;QACvC,CAAC;QAED,MAAM,YAAY,GAAG,QAAQ,CAAC,MAAM,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QAE5D,IAAI,QAAQ,IAAI,YAAY,YAAY,gBAAgB,EAAE,CAAC;YACzD,IAAI,CAAC,YAAY;gBACf,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,qBAAqB,EAAE,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;QACpG,CAAC;IACH,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { h, Component, ComponentInterface, Element, Host, Prop, State } from \"@stencil/core\";\r\nimport debounce from \"debounce\";\r\nimport { createFocusTrap, FocusTrap } from \"focus-trap\";\r\nimport { v4 } from \"uuid\";\r\n\r\n@Component({\r\n tag: \"dso-table\",\r\n styleUrl: \"table.scss\",\r\n shadow: true,\r\n})\r\nexport class Table implements ComponentInterface {\r\n private resizeObserver?: ResizeObserver;\r\n\r\n private focusTrapElement?: HTMLDivElement;\r\n\r\n private buttonElement?: HTMLButtonElement;\r\n\r\n private trap?: FocusTrap;\r\n\r\n private labelledbyId = v4();\r\n\r\n @Element()\r\n host!: HTMLDsoTableElement;\r\n\r\n /**\r\n * Prevents the table being opened in a modal.\r\n */\r\n @Prop({ reflect: true })\r\n noModal = false;\r\n\r\n /**\r\n * Indicates whether the table is currently horizontally scrollable.\r\n */\r\n @Prop({ reflect: true })\r\n isResponsive = false;\r\n\r\n @State()\r\n modalActive = false;\r\n\r\n @State()\r\n placeholderHeight?: number;\r\n\r\n private startResponsiveBehavior(): void {\r\n this.resizeObserver?.observe(this.host);\r\n }\r\n\r\n componentWillLoad(): void {\r\n this.resizeObserver = new ResizeObserver(debounce((entries) => this.setResponsiveTable(entries), 200));\r\n }\r\n\r\n componentDidLoad(): void {\r\n this.startResponsiveBehavior();\r\n }\r\n\r\n componentDidRender() {\r\n this.setFocusTrap();\r\n }\r\n\r\n disconnectedCallback() {\r\n this.resizeObserver?.disconnect();\r\n }\r\n\r\n render() {\r\n const caption = this.host.querySelector(\":scope > table > caption\")?.textContent?.trim();\r\n\r\n return (\r\n <Host>\r\n {this.modalActive && this.placeholderHeight && (\r\n <div class=\"dso-table-placeholder\" style={{ height: `${this.placeholderHeight}px` }} />\r\n )}\r\n\r\n {this.modalActive && <div class=\"dso-modal-overlay\"></div>}\r\n\r\n <div class={{ \"dso-modal\": this.modalActive }}>\r\n <div\r\n class={{ \"dso-dialog\": this.modalActive, \"dso-table-dialog\": true }}\r\n ref={(element) => (this.focusTrapElement = element)}\r\n {...(this.modalActive ? { [\"aria-labelledby\"]: this.labelledbyId, role: \"dialog\" } : {})}\r\n >\r\n {(this.isResponsive || !this.noModal) && (\r\n <div class=\"dso-table-utilities\" style={this.modalActive ? { display: \"none\" } : undefined}>\r\n {this.isResponsive && (\r\n <div class=\"dso-responsive-message\">\r\n <span>beweeg de tabel van links naar rechts</span>\r\n </div>\r\n )}\r\n\r\n {!this.noModal && (\r\n <button\r\n type=\"button\"\r\n class=\"dso-tertiary open-modal-button\"\r\n ref={(element) => (this.buttonElement = element)}\r\n onClick={() => this.openModal()}\r\n >\r\n <span class=\"sr-only\">tabel {caption ?? \"\"} </span>\r\n <span>vergroten</span>\r\n <dso-icon icon=\"external-link\"></dso-icon>\r\n </button>\r\n )}\r\n </div>\r\n )}\r\n\r\n {this.modalActive && (\r\n <div class=\"dso-header\">\r\n <h2 id={this.labelledbyId} class={{ \"sr-only\": !caption }}>\r\n {caption || \"Uitvergrote tabel dialoog\"}\r\n </h2>\r\n <button type=\"button\" class=\"dso-close\" onClick={() => this.closeModal()}>\r\n <dso-icon icon=\"times\"></dso-icon>\r\n <span class=\"sr-only\">Sluiten</span>\r\n </button>\r\n </div>\r\n )}\r\n\r\n <div class={{ \"dso-body\": this.modalActive, \"dso-table-body\": true }}>\r\n <slot></slot>\r\n </div>\r\n </div>\r\n </div>\r\n </Host>\r\n );\r\n }\r\n\r\n private openModal() {\r\n this.placeholderHeight = this.host.clientHeight;\r\n this.modalActive = true;\r\n }\r\n\r\n private closeModal() {\r\n this.placeholderHeight = undefined;\r\n this.modalActive = false;\r\n }\r\n\r\n private setFocusTrap() {\r\n if (this.modalActive && this.focusTrapElement && !this.trap) {\r\n this.trap = createFocusTrap([this.host, this.focusTrapElement], {\r\n escapeDeactivates: true,\r\n clickOutsideDeactivates: (e) => {\r\n if (e instanceof MouseEvent && e.composedPath()[0] === this.focusTrapElement) {\r\n this.closeModal();\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.closeModal(),\r\n tabbableOptions: {\r\n getShadowRoot: true,\r\n },\r\n }).activate();\r\n } else if (!this.modalActive && this.trap) {\r\n this.trap?.deactivate();\r\n\r\n delete this.trap;\r\n }\r\n }\r\n\r\n private setResponsiveTable([dsoTable]: ResizeObserverEntry[]): void {\r\n if (!dsoTable) {\r\n throw new Error(\"No dsoTable found\");\r\n }\r\n\r\n const tableElement = dsoTable.target.querySelector(\"table\");\r\n\r\n if (dsoTable && tableElement instanceof HTMLTableElement) {\r\n this.isResponsive =\r\n Math.floor(tableElement.getBoundingClientRect().width) > Math.floor(dsoTable.contentRect.width);\r\n }\r\n }\r\n}\r\n"]}
|
|
@@ -24,9 +24,6 @@ export class Tab {
|
|
|
24
24
|
this.emitEvent(e);
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
|
-
this.active = undefined;
|
|
28
|
-
this.disabled = undefined;
|
|
29
|
-
this.href = undefined;
|
|
30
27
|
}
|
|
31
28
|
/**
|
|
32
29
|
* @internal
|
|
@@ -66,6 +63,8 @@ export class Tab {
|
|
|
66
63
|
"tags": [],
|
|
67
64
|
"text": "Makes the tab active. The tab for which the tabpanel is visible is the active tab."
|
|
68
65
|
},
|
|
66
|
+
"getter": false,
|
|
67
|
+
"setter": false,
|
|
69
68
|
"attribute": "active",
|
|
70
69
|
"reflect": true
|
|
71
70
|
},
|
|
@@ -83,6 +82,8 @@ export class Tab {
|
|
|
83
82
|
"tags": [],
|
|
84
83
|
"text": "Disables the tab. A disabled tab cannot be activated and it's tabpanel cannot be shown."
|
|
85
84
|
},
|
|
85
|
+
"getter": false,
|
|
86
|
+
"setter": false,
|
|
86
87
|
"attribute": "disabled",
|
|
87
88
|
"reflect": true
|
|
88
89
|
},
|
|
@@ -100,6 +101,8 @@ export class Tab {
|
|
|
100
101
|
"tags": [],
|
|
101
102
|
"text": "The optional href of the tab. Creates an anchor if present. Creates a button if absent."
|
|
102
103
|
},
|
|
104
|
+
"getter": false,
|
|
105
|
+
"setter": false,
|
|
103
106
|
"attribute": "href",
|
|
104
107
|
"reflect": false
|
|
105
108
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tab.js","sourceRoot":"","sources":["../../../../../src/components/tabs/components/tab.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACzF,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAGnE;;GAEG;AAMH,MAAM,OAAO,GAAG
|
|
1
|
+
{"version":3,"file":"tab.js","sourceRoot":"","sources":["../../../../../src/components/tabs/components/tab.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACzF,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAGnE;;GAEG;AAMH,MAAM,OAAO,GAAG;IALhB;QA2CU,cAAS,GAAG,CAAC,CAA6B,EAAE,EAAE;YACpD,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC;gBACrB,aAAa,EAAE,CAAC;gBAChB,eAAe,EAAE,CAAC,YAAY,UAAU,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK;aACtE,CAAC,CAAC;QACL,CAAC,CAAC;QAEM,iBAAY,GAAG,CAAC,CAAgB,EAAE,EAAE;YAC1C,IAAI,CAAC,CAAC,GAAG,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;gBACpD,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;YACpB,CAAC;QACH,CAAC,CAAC;QAEM,iBAAY,GAAG,CAAC,CAAa,EAAE,EAAE;YACvC,IAAI,CAAC,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;gBAChD,CAAC,CAAC,cAAc,EAAE,CAAC;YACrB,CAAC;iBAAM,CAAC;gBACN,IAAI,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Event, EventEmitter, Prop, h, Method } from \"@stencil/core\";\r\nimport { isModifiedEvent } from \"../../../utils/is-modified-event\";\r\nimport { TabsSwitchEvent } from \"../tabs.interfaces\";\r\n\r\n/**\r\n * @slot - The label for this tab\r\n */\r\n@Component({\r\n tag: \"dso-tab\",\r\n styleUrl: \"tab.scss\",\r\n shadow: true,\r\n})\r\nexport class Tab {\r\n @Element()\r\n host!: HTMLDsoTabElement;\r\n\r\n /**\r\n * Makes the tab active. The tab for which the tabpanel is visible is the active tab.\r\n */\r\n @Prop({ reflect: true })\r\n active?: boolean;\r\n\r\n /**\r\n * Disables the tab. A disabled tab cannot be activated and it's tabpanel cannot be shown.\r\n */\r\n @Prop({ reflect: true })\r\n disabled?: boolean;\r\n\r\n /**\r\n * The optional href of the tab. Creates an anchor if present. Creates a button if absent.\r\n */\r\n @Prop()\r\n href?: string;\r\n\r\n /**\r\n * Emitted when the user activates tab via click or arrow keys followed by space or enter.\r\n */\r\n @Event()\r\n dsoTabSwitch!: EventEmitter<TabsSwitchEvent>;\r\n\r\n /**\r\n * @internal\r\n */\r\n @Method()\r\n async _dsoFocus() {\r\n this.anchorOrButtonRef?.focus();\r\n }\r\n\r\n private anchorOrButtonRef?: HTMLAnchorElement | HTMLButtonElement;\r\n\r\n private emitEvent = (e: MouseEvent | KeyboardEvent) => {\r\n this.dsoTabSwitch.emit({\r\n originalEvent: e,\r\n isModifiedEvent: e instanceof MouseEvent ? isModifiedEvent(e) : false,\r\n });\r\n };\r\n\r\n private keyUpHandler = (e: KeyboardEvent) => {\r\n if (e.key === \" \" && !this.disabled && !this.active) {\r\n this.emitEvent(e);\r\n }\r\n };\r\n\r\n private clickHandler = (e: MouseEvent) => {\r\n if ((this.disabled && this.href) || this.active) {\r\n e.preventDefault();\r\n } else {\r\n this.emitEvent(e);\r\n }\r\n };\r\n\r\n render() {\r\n return this.href ? (\r\n <a\r\n role=\"tab\"\r\n href={this.href}\r\n onKeyUp={this.keyUpHandler}\r\n onClick={this.clickHandler}\r\n aria-selected={this.active ? \"true\" : \"false\"}\r\n {...(!this.active ? { tabIndex: -1 } : {})}\r\n ref={(element) => (this.anchorOrButtonRef = element)}\r\n >\r\n <slot />\r\n </a>\r\n ) : (\r\n <button\r\n role=\"tab\"\r\n type=\"button\"\r\n disabled={this.disabled}\r\n onClick={this.clickHandler}\r\n aria-selected={this.active ? \"true\" : \"false\"}\r\n {...(!this.active ? { tabIndex: -1 } : {})}\r\n ref={(element) => (this.anchorOrButtonRef = element)}\r\n >\r\n <slot />\r\n </button>\r\n );\r\n }\r\n}\r\n"]}
|
|
@@ -64,7 +64,7 @@ export class Tabs {
|
|
|
64
64
|
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
65
65
|
}
|
|
66
66
|
render() {
|
|
67
|
-
return (h(Host, { key: '
|
|
67
|
+
return (h(Host, { key: '6f2a81d22ac8cd8702205ec9677dc77aab2def53' }, h("div", { key: 'c91c2d14016e0aeec92935fc8cfe17d7e8134d0a', class: "tabs", role: "tablist", onKeyUp: this.keyUpHandler }, h("slot", { key: '2bd28da0f1be671d9e34d175d87fcb153cb7b806' })), h("div", { key: 'ece2325b9520401d784445c737d819aba6773f3b', role: "tabpanel", tabindex: "0" }, h("slot", { key: '9606d989fd9c6aead0175b20aff4362a67931b4c', name: "panel" }))));
|
|
68
68
|
}
|
|
69
69
|
static get is() { return "dso-tabs"; }
|
|
70
70
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import { h, Fragment } from "@stencil/core";
|
|
2
2
|
export class Toggletip {
|
|
3
3
|
constructor() {
|
|
4
|
+
this.active = false;
|
|
5
|
+
/**
|
|
6
|
+
* Toggletip label.
|
|
7
|
+
*/
|
|
8
|
+
this.label = "Toelichting";
|
|
9
|
+
/**
|
|
10
|
+
* Toggletip position.
|
|
11
|
+
*/
|
|
12
|
+
this.position = "right";
|
|
4
13
|
this.click = () => {
|
|
5
14
|
if (this.active) {
|
|
6
15
|
this.close();
|
|
@@ -33,14 +42,9 @@ export class Toggletip {
|
|
|
33
42
|
}
|
|
34
43
|
return;
|
|
35
44
|
};
|
|
36
|
-
this.active = false;
|
|
37
|
-
this.label = "Toelichting";
|
|
38
|
-
this.position = "right";
|
|
39
|
-
this.small = undefined;
|
|
40
|
-
this.secondary = undefined;
|
|
41
45
|
}
|
|
42
46
|
render() {
|
|
43
|
-
return (h(Fragment, null, h("dso-info-button", { key: '
|
|
47
|
+
return (h(Fragment, null, h("dso-info-button", { key: '2f938583863cae9802fe5f214720e3fa4826f238', "aria-describedby": "toggle", onClick: this.click, label: this.label, active: this.active, secondary: this.secondary, ref: (element) => (this.infoButton = element) }), h("dso-tooltip", { key: '263d9cb3b19468446ccf7a61bbe34a26f3b81fb8', stateless: true, descriptive: true, id: "toggle", strategy: "absolute", active: this.active, position: this.position, small: this.small }, h("slot", { key: 'f947899c3292662b0126598c54a30f923391eca0' }))));
|
|
44
48
|
}
|
|
45
49
|
static get is() { return "dso-toggletip"; }
|
|
46
50
|
static get encapsulation() { return "shadow"; }
|
|
@@ -70,6 +74,8 @@ export class Toggletip {
|
|
|
70
74
|
"tags": [],
|
|
71
75
|
"text": "Toggletip label."
|
|
72
76
|
},
|
|
77
|
+
"getter": false,
|
|
78
|
+
"setter": false,
|
|
73
79
|
"attribute": "label",
|
|
74
80
|
"reflect": false,
|
|
75
81
|
"defaultValue": "\"Toelichting\""
|
|
@@ -94,6 +100,8 @@ export class Toggletip {
|
|
|
94
100
|
"tags": [],
|
|
95
101
|
"text": "Toggletip position."
|
|
96
102
|
},
|
|
103
|
+
"getter": false,
|
|
104
|
+
"setter": false,
|
|
97
105
|
"attribute": "position",
|
|
98
106
|
"reflect": false,
|
|
99
107
|
"defaultValue": "\"right\""
|
|
@@ -112,6 +120,8 @@ export class Toggletip {
|
|
|
112
120
|
"tags": [],
|
|
113
121
|
"text": "Set to true for small Toggletip."
|
|
114
122
|
},
|
|
123
|
+
"getter": false,
|
|
124
|
+
"setter": false,
|
|
115
125
|
"attribute": "small",
|
|
116
126
|
"reflect": false
|
|
117
127
|
},
|
|
@@ -129,6 +139,8 @@ export class Toggletip {
|
|
|
129
139
|
"tags": [],
|
|
130
140
|
"text": "Set to true for secondary Toggletip."
|
|
131
141
|
},
|
|
142
|
+
"getter": false,
|
|
143
|
+
"setter": false,
|
|
132
144
|
"attribute": "secondary",
|
|
133
145
|
"reflect": false
|
|
134
146
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggletip.js","sourceRoot":"","sources":["../../../../src/components/toggletip/toggletip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAQ7E,MAAM,OAAO,SAAS;;
|
|
1
|
+
{"version":3,"file":"toggletip.js","sourceRoot":"","sources":["../../../../src/components/toggletip/toggletip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAQ7E,MAAM,OAAO,SAAS;IALtB;QAUE,WAAM,GAAG,KAAK,CAAC;QAEf;;WAEG;QAEH,UAAK,GAAG,aAAa,CAAC;QAEtB;;WAEG;QAEH,aAAQ,GAAc,OAAO,CAAC;QAgBtB,UAAK,GAAG,GAAG,EAAE;YACnB,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;gBAChB,IAAI,CAAC,KAAK,EAAE,CAAC;YACf,CAAC;iBAAM,CAAC;gBACN,IAAI,CAAC,IAAI,EAAE,CAAC;YACd,CAAC;QACH,CAAC,CAAC;QAEM,SAAI,GAAG,GAAG,EAAE;YAClB,IAAI,CAAC,MAAM,GAAG,IAAI,C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IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,GAC7C;YACF,oEACE,SAAS,QACT,WAAW,QACX,EAAE,EAAC,QAAQ,EACX,QAAQ,EAAC,UAAU,EACnB,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,KAAK,EAAE,IAAI,CAAC,KAAK;gBAEjB,8DAAQ,CACI,CACb,CACJ,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { h, Component, Fragment, Element, Prop, State } from \"@stencil/core\";\r\nimport { Placement } from \"@popperjs/core\";\r\n\r\n@Component({\r\n tag: \"dso-toggletip\",\r\n styleUrl: \"toggletip.scss\",\r\n shadow: true,\r\n})\r\nexport class Toggletip {\r\n @Element()\r\n host!: HTMLDsoToggletipElement;\r\n\r\n @State()\r\n active = false;\r\n\r\n /**\r\n * Toggletip label.\r\n */\r\n @Prop()\r\n label = \"Toelichting\";\r\n\r\n /**\r\n * Toggletip position.\r\n */\r\n @Prop()\r\n position: Placement = \"right\";\r\n\r\n /**\r\n * Set to true for small Toggletip.\r\n */\r\n @Prop()\r\n small?: boolean;\r\n\r\n /**\r\n * Set to true for secondary Toggletip.\r\n */\r\n @Prop()\r\n secondary?: boolean;\r\n\r\n private infoButton?: HTMLDsoInfoButtonElement;\r\n\r\n private click = () => {\r\n if (this.active) {\r\n this.close();\r\n } else {\r\n this.open();\r\n }\r\n };\r\n\r\n private open = () => {\r\n this.active = true;\r\n this.host.addEventListener(\"keydown\", this.keyDownListener);\r\n this.host.addEventListener(\"focusout\", this.focusOutListener);\r\n };\r\n\r\n private close = () => {\r\n this.host.removeEventListener(\"focusout\", this.focusOutListener);\r\n this.host.removeEventListener(\"keydown\", this.keyDownListener);\r\n this.active = false;\r\n };\r\n\r\n private focusOutListener = (event: FocusEvent) => {\r\n if (!this.host.contains(event.relatedTarget as Node)) {\r\n this.close();\r\n }\r\n };\r\n\r\n private keyDownListener = (event: KeyboardEvent) => {\r\n if (!event.defaultPrevented && event.key === \"Escape\") {\r\n this.close();\r\n this.infoButton?.setFocus();\r\n event.preventDefault();\r\n }\r\n\r\n return;\r\n };\r\n\r\n render() {\r\n return (\r\n <>\r\n <dso-info-button\r\n aria-describedby=\"toggle\"\r\n onClick={this.click}\r\n label={this.label}\r\n active={this.active}\r\n secondary={this.secondary}\r\n ref={(element) => (this.infoButton = element)}\r\n />\r\n <dso-tooltip\r\n stateless\r\n descriptive\r\n id=\"toggle\"\r\n strategy=\"absolute\"\r\n active={this.active}\r\n position={this.position}\r\n small={this.small}\r\n >\r\n <slot />\r\n </dso-tooltip>\r\n </>\r\n );\r\n }\r\n}\r\n"]}
|
|
@@ -38,6 +38,26 @@ const applyMaxSize = {
|
|
|
38
38
|
};
|
|
39
39
|
export class Tooltip {
|
|
40
40
|
constructor() {
|
|
41
|
+
/**
|
|
42
|
+
* Defines if the tooltip is descriptive. A descriptive tooltip contains a meaningful message. Tooltips that are not descriptive are hidden from screenreaders using `aria-hidden`.
|
|
43
|
+
*/
|
|
44
|
+
this.descriptive = false;
|
|
45
|
+
/**
|
|
46
|
+
* Set position of tooltip relative to target
|
|
47
|
+
*/
|
|
48
|
+
this.position = "top";
|
|
49
|
+
/**
|
|
50
|
+
* Set position strategy of tooltip
|
|
51
|
+
*/
|
|
52
|
+
this.strategy = "auto";
|
|
53
|
+
/**
|
|
54
|
+
* Set attribute `no-arrow` to hide the arrow
|
|
55
|
+
*/
|
|
56
|
+
this.noArrow = false;
|
|
57
|
+
/**
|
|
58
|
+
* Whether or not to show the tooltip. To control the tooltip add the `active` attribute or use the `activate()` and `deactivate()` instance methods.
|
|
59
|
+
*/
|
|
60
|
+
this.active = false;
|
|
41
61
|
this.callbacks = {
|
|
42
62
|
activate: () => (this.active = true),
|
|
43
63
|
deactivate: () => (this.active = false),
|
|
@@ -48,6 +68,7 @@ export class Tooltip {
|
|
|
48
68
|
this.callbacks.deactivate();
|
|
49
69
|
}
|
|
50
70
|
};
|
|
71
|
+
this.hidden = true;
|
|
51
72
|
this.keyDownListener = (event) => {
|
|
52
73
|
if (event.key === "Escape") {
|
|
53
74
|
this.deactivate();
|
|
@@ -60,14 +81,6 @@ export class Tooltip {
|
|
|
60
81
|
this.popper = undefined;
|
|
61
82
|
}, transitionDuration);
|
|
62
83
|
_Tooltip_target.set(this, void 0);
|
|
63
|
-
this.descriptive = false;
|
|
64
|
-
this.position = "top";
|
|
65
|
-
this.strategy = "auto";
|
|
66
|
-
this.noArrow = false;
|
|
67
|
-
this.stateless = undefined;
|
|
68
|
-
this.small = undefined;
|
|
69
|
-
this.active = false;
|
|
70
|
-
this.hidden = true;
|
|
71
84
|
}
|
|
72
85
|
/**
|
|
73
86
|
* Activate the tooltip (Sets the `active` attribute)
|
|
@@ -168,7 +181,7 @@ export class Tooltip {
|
|
|
168
181
|
}
|
|
169
182
|
}
|
|
170
183
|
render() {
|
|
171
|
-
return (h(Host, { key: '
|
|
184
|
+
return (h(Host, { key: 'e37d4e704377fbefd6bb82a624b9f622a64b01c8', class: { hidden: this.hidden }, role: "tooltip", onClick: this.listenClick }, h("div", { key: '774735ed5b3bd6a450d2a456c3267baabc58f606', class: clsx("tooltip", { in: this.active }) }, !this.noArrow && h("div", { key: '9506905d58afcbe73303fcd72ccf1fa0211edd94', "data-popper-arrow": true, class: "tooltip-arrow" }), h("div", { key: '888c1a89ba70457e1593b2b33f6053da4f5165cf', "aria-hidden": !this.descriptive || undefined, class: clsx("tooltip-inner", { "dso-small": this.small }) }, h("slot", { key: '4a7e78664f3ff6bd4502b886647cb5060e11bf86' })))));
|
|
172
185
|
}
|
|
173
186
|
activatePopper() {
|
|
174
187
|
var _a;
|
|
@@ -239,6 +252,8 @@ export class Tooltip {
|
|
|
239
252
|
"tags": [],
|
|
240
253
|
"text": "Defines if the tooltip is descriptive. A descriptive tooltip contains a meaningful message. Tooltips that are not descriptive are hidden from screenreaders using `aria-hidden`."
|
|
241
254
|
},
|
|
255
|
+
"getter": false,
|
|
256
|
+
"setter": false,
|
|
242
257
|
"attribute": "descriptive",
|
|
243
258
|
"reflect": true,
|
|
244
259
|
"defaultValue": "false"
|
|
@@ -263,6 +278,8 @@ export class Tooltip {
|
|
|
263
278
|
"tags": [],
|
|
264
279
|
"text": "Set position of tooltip relative to target"
|
|
265
280
|
},
|
|
281
|
+
"getter": false,
|
|
282
|
+
"setter": false,
|
|
266
283
|
"attribute": "position",
|
|
267
284
|
"reflect": false,
|
|
268
285
|
"defaultValue": "\"top\""
|
|
@@ -281,6 +298,8 @@ export class Tooltip {
|
|
|
281
298
|
"tags": [],
|
|
282
299
|
"text": "Set position strategy of tooltip"
|
|
283
300
|
},
|
|
301
|
+
"getter": false,
|
|
302
|
+
"setter": false,
|
|
284
303
|
"attribute": "strategy",
|
|
285
304
|
"reflect": false,
|
|
286
305
|
"defaultValue": "\"auto\""
|
|
@@ -299,6 +318,8 @@ export class Tooltip {
|
|
|
299
318
|
"tags": [],
|
|
300
319
|
"text": "Set attribute `no-arrow` to hide the arrow"
|
|
301
320
|
},
|
|
321
|
+
"getter": false,
|
|
322
|
+
"setter": false,
|
|
302
323
|
"attribute": "no-arrow",
|
|
303
324
|
"reflect": false,
|
|
304
325
|
"defaultValue": "false"
|
|
@@ -317,6 +338,8 @@ export class Tooltip {
|
|
|
317
338
|
"tags": [],
|
|
318
339
|
"text": "Deactivates mouseover behaviour"
|
|
319
340
|
},
|
|
341
|
+
"getter": false,
|
|
342
|
+
"setter": false,
|
|
320
343
|
"attribute": "stateless",
|
|
321
344
|
"reflect": false
|
|
322
345
|
},
|
|
@@ -334,6 +357,8 @@ export class Tooltip {
|
|
|
334
357
|
"tags": [],
|
|
335
358
|
"text": "Defines if the tooltip has a smaller max-width"
|
|
336
359
|
},
|
|
360
|
+
"getter": false,
|
|
361
|
+
"setter": false,
|
|
337
362
|
"attribute": "small",
|
|
338
363
|
"reflect": false
|
|
339
364
|
},
|
|
@@ -351,6 +376,8 @@ export class Tooltip {
|
|
|
351
376
|
"tags": [],
|
|
352
377
|
"text": "Whether or not to show the tooltip. To control the tooltip add the `active` attribute or use the `activate()` and `deactivate()` instance methods."
|
|
353
378
|
},
|
|
379
|
+
"getter": false,
|
|
380
|
+
"setter": false,
|
|
354
381
|
"attribute": "active",
|
|
355
382
|
"reflect": true,
|
|
356
383
|
"defaultValue": "false"
|