@dso-toolkit/core 56.1.0 → 58.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/dso-accordion-section.cjs.entry.js +2 -2
- package/dist/cjs/dso-accordion-section.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-accordion.cjs.entry.js +1 -1
- package/dist/cjs/dso-action-list-item.cjs.entry.js +1 -1
- package/dist/cjs/dso-action-list.cjs.entry.js +1 -1
- package/dist/cjs/dso-alert_5.cjs.entry.js +3 -3
- package/dist/cjs/dso-alert_5.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-annotation-output_3.cjs.entry.js +1 -1
- package/dist/cjs/dso-attachments-counter.cjs.entry.js +1 -1
- package/dist/cjs/dso-autosuggest.cjs.entry.js +1 -1
- package/dist/cjs/dso-banner.cjs.entry.js +1 -1
- package/dist/cjs/dso-card-container.cjs.entry.js +1 -1
- package/dist/cjs/dso-card.cjs.entry.js +1 -1
- package/dist/cjs/dso-date-picker.cjs.entry.js +1 -1
- package/dist/cjs/dso-dropdown-menu.cjs.entry.js +1 -1
- package/dist/cjs/dso-expandable.cjs.entry.js +1 -1
- package/dist/cjs/dso-header.cjs.entry.js +2 -2
- package/dist/cjs/dso-header.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-helpcenter-panel.cjs.entry.js +2 -2
- package/dist/cjs/dso-helpcenter-panel.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-highlight-box.cjs.entry.js +1 -1
- package/dist/cjs/dso-icon.cjs.entry.js +1 -1
- package/dist/cjs/dso-image-overlay.cjs.entry.js +2 -2
- package/dist/cjs/dso-image-overlay.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-info-button.cjs.entry.js +2 -2
- package/dist/cjs/dso-info-button.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-info_2.cjs.entry.js +1 -1
- package/dist/cjs/dso-list-button.cjs.entry.js +3 -3
- package/dist/cjs/dso-list-button.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-map-base-layers.cjs.entry.js +1 -1
- package/dist/cjs/dso-map-controls.cjs.entry.js +2 -2
- package/dist/cjs/dso-map-controls.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-map-overlays.cjs.entry.js +1 -1
- package/dist/cjs/dso-modal.cjs.entry.js +13 -45
- package/dist/cjs/dso-modal.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-pagination.cjs.entry.js +1 -1
- package/dist/cjs/dso-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/dso-progress-indicator.cjs.entry.js +1 -1
- package/dist/cjs/dso-responsive-element.cjs.entry.js +1 -1
- package/dist/cjs/dso-scrollable.cjs.entry.js +1 -1
- package/dist/cjs/dso-table.cjs.entry.js +2 -2
- package/dist/cjs/dso-table.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-toggletip.cjs.entry.js +1 -1
- package/dist/cjs/dso-toolkit.cjs.js +2 -2
- package/dist/cjs/dso-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/dso-tree-view.cjs.entry.js +1 -1
- package/dist/cjs/dso-viewer-grid.cjs.entry.js +83 -62
- package/dist/cjs/dso-viewer-grid.cjs.entry.js.map +1 -1
- package/dist/cjs/dsot-document-component-demo.cjs.entry.js +1 -1
- package/dist/cjs/{index-efc2222e.js → index-d4003ee3.js} +1 -4
- package/dist/cjs/index-d4003ee3.js.map +1 -0
- package/dist/cjs/index.cjs.js +0 -72
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/components/accordion/accordion.interfaces.js.map +1 -1
- package/dist/collection/components/accordion/accordion.js +1 -1
- package/dist/collection/components/accordion/components/accordion-section.css +66 -1
- package/dist/collection/components/annotation-button/annotation-button.css +59 -383
- package/dist/collection/components/header/header.css +3 -3
- package/dist/collection/components/helpcenter-panel/helpcenter-panel.css +12 -12
- package/dist/collection/components/image-overlay/image-overlay.css +14 -14
- package/dist/collection/components/info-button/info-button.js +1 -1
- package/dist/collection/components/info-button/info-button.js.map +1 -1
- package/dist/collection/components/list-button/list-button.css +29 -23
- package/dist/collection/components/list-button/list-button.js +1 -1
- package/dist/collection/components/list-button/list-button.js.map +1 -1
- package/dist/collection/components/map-controls/map-controls.css +21 -15
- package/dist/collection/components/modal/modal.css +92 -65
- package/dist/collection/components/modal/modal.interfaces.js.map +1 -1
- package/dist/collection/components/modal/modal.js +33 -90
- package/dist/collection/components/modal/modal.js.map +1 -1
- package/dist/collection/components/ozon-content/ozon-content.css +7 -1
- package/dist/collection/components/table/table.css +60 -55
- package/dist/collection/components/viewer-grid/components/filterpanel.js +7 -0
- package/dist/collection/components/viewer-grid/components/filterpanel.js.map +1 -0
- package/dist/collection/components/viewer-grid/components/index.js +4 -0
- package/dist/collection/components/viewer-grid/components/index.js.map +1 -0
- package/dist/collection/components/viewer-grid/components/main-panel.js +10 -0
- package/dist/collection/components/viewer-grid/components/main-panel.js.map +1 -0
- package/dist/collection/components/viewer-grid/components/overlay.js +6 -0
- package/dist/collection/components/viewer-grid/components/overlay.js.map +1 -0
- package/dist/collection/components/viewer-grid/components/viewer-grid-filterpanel-buttons.js.map +1 -0
- package/dist/collection/components/viewer-grid/viewer-grid.css +331 -108
- package/dist/collection/components/viewer-grid/viewer-grid.interfaces.js +1 -1
- package/dist/collection/components/viewer-grid/viewer-grid.interfaces.js.map +1 -1
- package/dist/collection/components/viewer-grid/viewer-grid.js +59 -73
- package/dist/collection/components/viewer-grid/viewer-grid.js.map +1 -1
- package/dist/collection/index.js +0 -1
- package/dist/collection/index.js.map +1 -1
- package/dist/components/annotation-button.js +1 -1
- package/dist/components/annotation-button.js.map +1 -1
- package/dist/components/dso-accordion-section.js +1 -1
- package/dist/components/dso-accordion-section.js.map +1 -1
- package/dist/components/dso-header.js +1 -1
- package/dist/components/dso-header.js.map +1 -1
- package/dist/components/dso-helpcenter-panel.js +1 -1
- package/dist/components/dso-helpcenter-panel.js.map +1 -1
- package/dist/components/dso-image-overlay.js +1 -1
- package/dist/components/dso-image-overlay.js.map +1 -1
- package/dist/components/dso-list-button.js +2 -2
- package/dist/components/dso-list-button.js.map +1 -1
- package/dist/components/dso-map-controls.js +1 -1
- package/dist/components/dso-map-controls.js.map +1 -1
- package/dist/components/dso-modal.js +14 -46
- package/dist/components/dso-modal.js.map +1 -1
- package/dist/components/dso-table.js +1 -1
- package/dist/components/dso-table.js.map +1 -1
- package/dist/components/dso-viewer-grid.js +86 -68
- package/dist/components/dso-viewer-grid.js.map +1 -1
- package/dist/components/index.js +0 -71
- package/dist/components/index.js.map +1 -1
- package/dist/components/info-button.js +1 -1
- package/dist/components/info-button.js.map +1 -1
- package/dist/components/ozon-content.js +1 -1
- package/dist/components/ozon-content.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/index.esm.js +1 -1
- package/dist/dso-toolkit/index.esm.js.map +1 -1
- package/dist/dso-toolkit/p-0dffb117.entry.js +2 -0
- package/dist/dso-toolkit/{p-29752a45.entry.js.map → p-0dffb117.entry.js.map} +1 -1
- package/dist/dso-toolkit/{p-14453f73.entry.js → p-14aa091d.entry.js} +2 -2
- package/dist/dso-toolkit/p-1a1a43fd.js +3 -0
- package/dist/dso-toolkit/p-1a1a43fd.js.map +1 -0
- package/dist/dso-toolkit/{p-d8c137b5.entry.js → p-1c721290.entry.js} +2 -2
- package/dist/dso-toolkit/{p-56d87a53.entry.js → p-22baee8e.entry.js} +2 -2
- package/dist/dso-toolkit/{p-a616ab8a.entry.js → p-2ccbf58d.entry.js} +2 -2
- package/dist/dso-toolkit/{p-9f2bb98b.entry.js → p-3cbf8b97.entry.js} +2 -2
- package/dist/dso-toolkit/{p-29b741cb.entry.js → p-3d4308ba.entry.js} +2 -2
- package/dist/dso-toolkit/{p-c8165a50.entry.js → p-420e0d23.entry.js} +2 -2
- package/dist/dso-toolkit/{p-bf203ab8.entry.js → p-423fa057.entry.js} +2 -2
- package/dist/dso-toolkit/{p-debbe184.entry.js → p-440fc4ae.entry.js} +2 -2
- package/dist/dso-toolkit/{p-d3f69d06.entry.js → p-49bce8b2.entry.js} +2 -2
- package/dist/dso-toolkit/{p-f56c1b28.entry.js → p-4bc67e5c.entry.js} +2 -2
- package/dist/dso-toolkit/{p-9b587a94.entry.js → p-4da2fa8b.entry.js} +2 -2
- package/dist/dso-toolkit/{p-0e5a93c3.entry.js → p-4e86089d.entry.js} +2 -2
- package/dist/dso-toolkit/{p-68e9f61b.entry.js → p-51f19c06.entry.js} +2 -2
- package/dist/dso-toolkit/{p-05ea1fba.entry.js → p-54c65314.entry.js} +2 -2
- package/dist/dso-toolkit/p-5e5302ef.entry.js +2 -0
- package/dist/dso-toolkit/p-5e5302ef.entry.js.map +1 -0
- package/dist/dso-toolkit/{p-818d032e.entry.js → p-5ee79846.entry.js} +2 -2
- package/dist/dso-toolkit/p-604eb60b.entry.js +2 -0
- package/dist/dso-toolkit/p-604eb60b.entry.js.map +1 -0
- package/dist/dso-toolkit/p-669c3743.entry.js +2 -0
- package/dist/dso-toolkit/{p-88f4366e.entry.js.map → p-669c3743.entry.js.map} +1 -1
- package/dist/dso-toolkit/p-712fca2c.entry.js +2 -0
- package/dist/dso-toolkit/p-712fca2c.entry.js.map +1 -0
- package/dist/dso-toolkit/{p-b67631ef.entry.js → p-745b6678.entry.js} +2 -2
- package/dist/dso-toolkit/{p-cfd6f4ef.entry.js → p-7a6be9c1.entry.js} +2 -2
- package/dist/dso-toolkit/p-8b77b083.entry.js +2 -0
- package/dist/dso-toolkit/{p-b627d9ac.entry.js.map → p-8b77b083.entry.js.map} +1 -1
- package/dist/dso-toolkit/{p-3fa7489e.entry.js → p-8f8dd254.entry.js} +2 -2
- package/dist/dso-toolkit/p-918bcdbe.entry.js +2 -0
- package/dist/dso-toolkit/p-918bcdbe.entry.js.map +1 -0
- package/dist/dso-toolkit/p-98f7ede6.entry.js +2 -0
- package/dist/dso-toolkit/p-98f7ede6.entry.js.map +1 -0
- package/dist/dso-toolkit/{p-fafa5ea1.entry.js → p-a00c4003.entry.js} +2 -2
- package/dist/dso-toolkit/p-a0798096.entry.js +2 -0
- package/dist/dso-toolkit/{p-42d3c595.entry.js.map → p-a0798096.entry.js.map} +1 -1
- package/dist/dso-toolkit/{p-9fee52e5.entry.js → p-a1060560.entry.js} +2 -2
- package/dist/dso-toolkit/{p-6050e8e6.entry.js → p-b34f24b4.entry.js} +2 -2
- package/dist/dso-toolkit/{p-168750a2.entry.js → p-b76768a5.entry.js} +2 -2
- package/dist/dso-toolkit/{p-674e2406.entry.js → p-b9d441d5.entry.js} +2 -2
- package/dist/dso-toolkit/p-b9d441d5.entry.js.map +1 -0
- package/dist/dso-toolkit/p-bc9e3037.entry.js +2 -0
- package/dist/dso-toolkit/{p-422bcf93.entry.js.map → p-bc9e3037.entry.js.map} +1 -1
- package/dist/dso-toolkit/{p-bcae3f55.entry.js → p-bcecc743.entry.js} +2 -2
- package/dist/dso-toolkit/p-e69d7e62.entry.js +2 -0
- package/dist/dso-toolkit/{p-5265e22b.entry.js.map → p-e69d7e62.entry.js.map} +1 -1
- package/dist/dso-toolkit/{p-83cdfde8.entry.js → p-f21e4ccc.entry.js} +2 -2
- package/dist/dso-toolkit/{p-83cdfde8.entry.js.map → p-f21e4ccc.entry.js.map} +1 -1
- package/dist/esm/dso-accordion-section.entry.js +2 -2
- package/dist/esm/dso-accordion-section.entry.js.map +1 -1
- package/dist/esm/dso-accordion.entry.js +1 -1
- package/dist/esm/dso-action-list-item.entry.js +1 -1
- package/dist/esm/dso-action-list.entry.js +1 -1
- package/dist/esm/dso-alert_5.entry.js +3 -3
- package/dist/esm/dso-alert_5.entry.js.map +1 -1
- package/dist/esm/dso-annotation-output_3.entry.js +1 -1
- package/dist/esm/dso-attachments-counter.entry.js +1 -1
- package/dist/esm/dso-autosuggest.entry.js +1 -1
- package/dist/esm/dso-banner.entry.js +1 -1
- package/dist/esm/dso-card-container.entry.js +1 -1
- package/dist/esm/dso-card.entry.js +1 -1
- package/dist/esm/dso-date-picker.entry.js +1 -1
- package/dist/esm/dso-dropdown-menu.entry.js +1 -1
- package/dist/esm/dso-expandable.entry.js +1 -1
- package/dist/esm/dso-header.entry.js +2 -2
- package/dist/esm/dso-header.entry.js.map +1 -1
- package/dist/esm/dso-helpcenter-panel.entry.js +2 -2
- package/dist/esm/dso-helpcenter-panel.entry.js.map +1 -1
- package/dist/esm/dso-highlight-box.entry.js +1 -1
- package/dist/esm/dso-icon.entry.js +1 -1
- package/dist/esm/dso-image-overlay.entry.js +2 -2
- package/dist/esm/dso-image-overlay.entry.js.map +1 -1
- package/dist/esm/dso-info-button.entry.js +2 -2
- package/dist/esm/dso-info-button.entry.js.map +1 -1
- package/dist/esm/dso-info_2.entry.js +1 -1
- package/dist/esm/dso-list-button.entry.js +3 -3
- package/dist/esm/dso-list-button.entry.js.map +1 -1
- package/dist/esm/dso-map-base-layers.entry.js +1 -1
- package/dist/esm/dso-map-controls.entry.js +2 -2
- package/dist/esm/dso-map-controls.entry.js.map +1 -1
- package/dist/esm/dso-map-overlays.entry.js +1 -1
- package/dist/esm/dso-modal.entry.js +13 -45
- package/dist/esm/dso-modal.entry.js.map +1 -1
- package/dist/esm/dso-pagination.entry.js +1 -1
- package/dist/esm/dso-progress-bar.entry.js +1 -1
- package/dist/esm/dso-progress-indicator.entry.js +1 -1
- package/dist/esm/dso-responsive-element.entry.js +1 -1
- package/dist/esm/dso-scrollable.entry.js +1 -1
- package/dist/esm/dso-table.entry.js +2 -2
- package/dist/esm/dso-table.entry.js.map +1 -1
- package/dist/esm/dso-toggletip.entry.js +1 -1
- package/dist/esm/dso-toolkit.js +3 -3
- package/dist/esm/dso-tooltip.entry.js +1 -1
- package/dist/esm/dso-tree-view.entry.js +1 -1
- package/dist/esm/dso-viewer-grid.entry.js +83 -62
- package/dist/esm/dso-viewer-grid.entry.js.map +1 -1
- package/dist/esm/dsot-document-component-demo.entry.js +1 -1
- package/dist/esm/{index-367cff36.js → index-3e9ed0c5.js} +1 -4
- package/dist/esm/index-3e9ed0c5.js.map +1 -0
- package/dist/esm/index.js +0 -69
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/accordion/accordion.interfaces.d.ts +1 -1
- package/dist/types/components/modal/modal.d.ts +9 -15
- package/dist/types/components/modal/modal.interfaces.d.ts +2 -13
- package/dist/types/components/viewer-grid/components/filterpanel.d.ts +7 -0
- package/dist/types/components/viewer-grid/components/index.d.ts +3 -0
- package/dist/types/components/viewer-grid/components/main-panel.d.ts +10 -0
- package/dist/types/components/viewer-grid/components/overlay.d.ts +6 -0
- package/dist/types/components/viewer-grid/components/viewer-grid-filterpanel-buttons.d.ts +6 -0
- package/dist/types/components/viewer-grid/viewer-grid.d.ts +12 -11
- package/dist/types/components/viewer-grid/viewer-grid.interfaces.d.ts +13 -2
- package/dist/types/components.d.ts +14 -24
- package/dist/types/index.d.ts +0 -1
- package/package.json +2 -2
- package/dist/cjs/index-efc2222e.js.map +0 -1
- package/dist/collection/components/modal/modal-ref.js +0 -19
- package/dist/collection/components/modal/modal-ref.js.map +0 -1
- package/dist/collection/components/modal/modal.controller.js +0 -51
- package/dist/collection/components/modal/modal.controller.js.map +0 -1
- package/dist/collection/components/viewer-grid/viewer-grid-filterpanel-buttons.js.map +0 -1
- package/dist/dso-toolkit/p-021589dc.entry.js +0 -2
- package/dist/dso-toolkit/p-021589dc.entry.js.map +0 -1
- package/dist/dso-toolkit/p-29752a45.entry.js +0 -2
- package/dist/dso-toolkit/p-3c554a18.entry.js +0 -2
- package/dist/dso-toolkit/p-3c554a18.entry.js.map +0 -1
- package/dist/dso-toolkit/p-422bcf93.entry.js +0 -2
- package/dist/dso-toolkit/p-42d3c595.entry.js +0 -2
- package/dist/dso-toolkit/p-5265e22b.entry.js +0 -2
- package/dist/dso-toolkit/p-674e2406.entry.js.map +0 -1
- package/dist/dso-toolkit/p-88f4366e.entry.js +0 -2
- package/dist/dso-toolkit/p-909ccf98.entry.js +0 -2
- package/dist/dso-toolkit/p-909ccf98.entry.js.map +0 -1
- package/dist/dso-toolkit/p-9c0477fc.entry.js +0 -2
- package/dist/dso-toolkit/p-9c0477fc.entry.js.map +0 -1
- package/dist/dso-toolkit/p-b627d9ac.entry.js +0 -2
- package/dist/dso-toolkit/p-ce928197.js +0 -3
- package/dist/dso-toolkit/p-ce928197.js.map +0 -1
- package/dist/dso-toolkit/p-d4320890.entry.js +0 -2
- package/dist/dso-toolkit/p-d4320890.entry.js.map +0 -1
- package/dist/esm/index-367cff36.js.map +0 -1
- package/dist/types/components/modal/modal-ref.d.ts +0 -8
- package/dist/types/components/modal/modal.controller.d.ts +0 -6
- package/dist/types/components/viewer-grid/viewer-grid-filterpanel-buttons.d.ts +0 -6
- /package/dist/collection/components/viewer-grid/{viewer-grid-filterpanel-buttons.js → components/viewer-grid-filterpanel-buttons.js} +0 -0
- /package/dist/dso-toolkit/{p-14453f73.entry.js.map → p-14aa091d.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-d8c137b5.entry.js.map → p-1c721290.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-56d87a53.entry.js.map → p-22baee8e.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-a616ab8a.entry.js.map → p-2ccbf58d.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-9f2bb98b.entry.js.map → p-3cbf8b97.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-29b741cb.entry.js.map → p-3d4308ba.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-c8165a50.entry.js.map → p-420e0d23.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-bf203ab8.entry.js.map → p-423fa057.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-debbe184.entry.js.map → p-440fc4ae.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-d3f69d06.entry.js.map → p-49bce8b2.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-f56c1b28.entry.js.map → p-4bc67e5c.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-9b587a94.entry.js.map → p-4da2fa8b.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-0e5a93c3.entry.js.map → p-4e86089d.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-68e9f61b.entry.js.map → p-51f19c06.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-05ea1fba.entry.js.map → p-54c65314.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-818d032e.entry.js.map → p-5ee79846.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-b67631ef.entry.js.map → p-745b6678.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-cfd6f4ef.entry.js.map → p-7a6be9c1.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-3fa7489e.entry.js.map → p-8f8dd254.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-fafa5ea1.entry.js.map → p-a00c4003.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-9fee52e5.entry.js.map → p-a1060560.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-6050e8e6.entry.js.map → p-b34f24b4.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-168750a2.entry.js.map → p-b76768a5.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-bcae3f55.entry.js.map → p-bcecc743.entry.js.map} +0 -0
|
@@ -77,19 +77,19 @@ button::-moz-focus-inner {
|
|
|
77
77
|
border-color: #afcf9d;
|
|
78
78
|
color: #afcf9d;
|
|
79
79
|
}
|
|
80
|
-
.open.
|
|
80
|
+
.open.dso-small {
|
|
81
81
|
line-height: 1rem;
|
|
82
82
|
}
|
|
83
|
-
.open.
|
|
84
|
-
.open.
|
|
83
|
+
.open.dso-small dso-icon,
|
|
84
|
+
.open.dso-small svg.di, .open.dso-small.extern::after, .open.dso-small.download::after, .open.dso-small.dso-spinner::before {
|
|
85
85
|
margin-bottom: -4px;
|
|
86
86
|
margin-top: -4px;
|
|
87
87
|
}
|
|
88
|
-
.open.
|
|
88
|
+
.open.dso-small.dso-spinner-left::before {
|
|
89
89
|
height: 16px;
|
|
90
90
|
width: 16px;
|
|
91
91
|
}
|
|
92
|
-
.open.
|
|
92
|
+
.open.dso-small.dso-spinner-right::after {
|
|
93
93
|
height: 16px;
|
|
94
94
|
width: 16px;
|
|
95
95
|
}
|
|
@@ -128,7 +128,7 @@ button::-moz-focus-inner {
|
|
|
128
128
|
width: 24px;
|
|
129
129
|
margin-right: 8px;
|
|
130
130
|
}
|
|
131
|
-
.open.dso-spinner-left:not([disabled]).
|
|
131
|
+
.open.dso-spinner-left:not([disabled]).dso-small:hover::before {
|
|
132
132
|
height: 16px;
|
|
133
133
|
width: 16px;
|
|
134
134
|
}
|
|
@@ -152,7 +152,7 @@ button::-moz-focus-inner {
|
|
|
152
152
|
width: 24px;
|
|
153
153
|
margin-left: 8px;
|
|
154
154
|
}
|
|
155
|
-
.open.dso-spinner-right:not([disabled]).
|
|
155
|
+
.open.dso-spinner-right:not([disabled]).dso-small:hover::after {
|
|
156
156
|
height: 16px;
|
|
157
157
|
width: 16px;
|
|
158
158
|
}
|
|
@@ -247,19 +247,19 @@ button::-moz-focus-inner {
|
|
|
247
247
|
border-color: #afcf9d;
|
|
248
248
|
color: #afcf9d;
|
|
249
249
|
}
|
|
250
|
-
.close.
|
|
250
|
+
.close.dso-small {
|
|
251
251
|
line-height: 1rem;
|
|
252
252
|
}
|
|
253
|
-
.close.
|
|
254
|
-
.close.
|
|
253
|
+
.close.dso-small dso-icon,
|
|
254
|
+
.close.dso-small svg.di, .close.dso-small.extern::after, .close.dso-small.download::after, .close.dso-small.dso-spinner::before {
|
|
255
255
|
margin-bottom: -4px;
|
|
256
256
|
margin-top: -4px;
|
|
257
257
|
}
|
|
258
|
-
.close.
|
|
258
|
+
.close.dso-small.dso-spinner-left::before {
|
|
259
259
|
height: 16px;
|
|
260
260
|
width: 16px;
|
|
261
261
|
}
|
|
262
|
-
.close.
|
|
262
|
+
.close.dso-small.dso-spinner-right::after {
|
|
263
263
|
height: 16px;
|
|
264
264
|
width: 16px;
|
|
265
265
|
}
|
|
@@ -298,7 +298,7 @@ button::-moz-focus-inner {
|
|
|
298
298
|
width: 24px;
|
|
299
299
|
margin-right: 8px;
|
|
300
300
|
}
|
|
301
|
-
.close.dso-spinner-left:not([disabled]).
|
|
301
|
+
.close.dso-spinner-left:not([disabled]).dso-small:hover::before {
|
|
302
302
|
height: 16px;
|
|
303
303
|
width: 16px;
|
|
304
304
|
}
|
|
@@ -322,7 +322,7 @@ button::-moz-focus-inner {
|
|
|
322
322
|
width: 24px;
|
|
323
323
|
margin-left: 8px;
|
|
324
324
|
}
|
|
325
|
-
.close.dso-spinner-right:not([disabled]).
|
|
325
|
+
.close.dso-spinner-right:not([disabled]).dso-small:hover::after {
|
|
326
326
|
height: 16px;
|
|
327
327
|
width: 16px;
|
|
328
328
|
}
|
|
@@ -19,7 +19,7 @@ export class InfoButton {
|
|
|
19
19
|
this.dsoToggle.emit({ originalEvent: e, active: this.active });
|
|
20
20
|
}
|
|
21
21
|
render() {
|
|
22
|
-
return (h(Host, { onMouseenter: () => (this.hover = true), onMouseleave: () => (this.hover = false) }, h("button", { type: "button", class: clsx(
|
|
22
|
+
return (h(Host, { onMouseenter: () => (this.hover = true), onMouseleave: () => (this.hover = false) }, h("button", { type: "button", class: clsx({ "dso-open": !!this.active, "dso-info-secondary": !!this.secondary }), "aria-expanded": typeof this.active === "boolean" ? this.active.toString() : undefined, onClick: (e) => this.handleToggle(e), ref: (element) => (this.button = element) }, h("dso-icon", { icon: this.active || this.hover ? "info-active" : "info" }), h("span", { class: "sr-only" }, this.label))));
|
|
23
23
|
}
|
|
24
24
|
static get is() { return "dso-info-button"; }
|
|
25
25
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"info-button.js","sourceRoot":"","sources":["../../../src/components/info-button/info-button.tsx"],"names":[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Component, Event, Prop, EventEmitter, Method, Host, State } from \"@stencil/core\";\r\nimport clsx from \"clsx\";\r\n\r\nimport { InfoButtonToggleEvent } from \"./info-button.interfaces\";\r\n\r\n@Component({\r\n tag: \"dso-info-button\",\r\n shadow: true,\r\n styleUrl: \"info-button.scss\",\r\n})\r\nexport class InfoButton {\r\n private button?: HTMLButtonElement;\r\n\r\n /**\r\n * Whether the InfoButton is active.\r\n */\r\n @Prop({ mutable: true, reflect: true })\r\n active?: boolean;\r\n\r\n @State()\r\n hover = false;\r\n\r\n /**\r\n * For secondary Info Button.\r\n */\r\n @Prop()\r\n secondary?: boolean;\r\n\r\n /**\r\n * The label.\r\n */\r\n @Prop()\r\n label = \"Toelichting bij optie\";\r\n\r\n /**\r\n * Emitted when the user activates the Info Button.\r\n */\r\n @Event()\r\n dsoToggle!: EventEmitter<InfoButtonToggleEvent>;\r\n\r\n /**\r\n * To set focus to the toggle button.\r\n */\r\n @Method()\r\n async setFocus() {\r\n this.button?.focus();\r\n }\r\n\r\n private handleToggle(e: MouseEvent) {\r\n this.active = !this.active;\r\n this.dsoToggle.emit({ originalEvent: e, active: this.active });\r\n }\r\n\r\n render() {\r\n return (\r\n <Host onMouseenter={() => (this.hover = true)} onMouseleave={() => (this.hover = false)}>\r\n <button\r\n type=\"button\"\r\n class={clsx({ \"dso-open\": !!this.active, \"dso-info-secondary\": !!this.secondary })}\r\n aria-expanded={typeof this.active === \"boolean\" ? this.active.toString() : undefined}\r\n onClick={(e) => this.handleToggle(e)}\r\n ref={(element) => (this.button = element)}\r\n >\r\n <dso-icon icon={this.active || this.hover ? \"info-active\" : \"info\"}></dso-icon>\r\n <span class=\"sr-only\">{this.label}</span>\r\n </button>\r\n </Host>\r\n );\r\n }\r\n}\r\n"]}
|
|
@@ -60,11 +60,17 @@
|
|
|
60
60
|
.dso-tertiary:not([disabled]):active {
|
|
61
61
|
color: #173521;
|
|
62
62
|
}
|
|
63
|
-
.dso-tertiary.
|
|
63
|
+
.dso-tertiary.dso-align {
|
|
64
64
|
line-height: calc(1.5em - 1px);
|
|
65
65
|
padding: 11px 0;
|
|
66
66
|
position: relative;
|
|
67
67
|
}
|
|
68
|
+
.dso-tertiary.dso-truncate {
|
|
69
|
+
max-width: 100%;
|
|
70
|
+
overflow: hidden;
|
|
71
|
+
text-overflow: ellipsis;
|
|
72
|
+
white-space: nowrap;
|
|
73
|
+
}
|
|
68
74
|
.dso-tertiary.dso-spinner-left::before {
|
|
69
75
|
background-image: url("data:image/svg+xml,%3Csvg class='spinner' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg' %3E%3Cstyle%3E .spinner %7B animation: rotator 8s linear infinite; transform-origin: center; %7D @keyframes rotator %7B 0%25 %7B transform: rotate(0deg); %7D 100%25 %7B transform: rotate(360deg); %7D %7D .path %7B stroke-dasharray: 265; stroke-dashoffset: 0; transform-origin: center; stroke: %2339870c; animation: dash 2s ease-in-out infinite; %7D @keyframes dash %7B 0%25 %7B stroke-dashoffset: 265; %7D 50%25 %7B stroke-dashoffset: 65; transform:rotate(90deg); %7D 100%25 %7B stroke-dashoffset: 265; transform:rotate(360deg); %7D %3C/style%3E%3Ccircle class='path' fill='none' stroke-width='10' stroke-linecap='butt' cx='50' cy='50' r='45'%3E%3C/circle%3E%3C/svg%3E");
|
|
70
76
|
background-repeat: no-repeat;
|
|
@@ -141,32 +147,32 @@
|
|
|
141
147
|
-moz-appearance: textfield;
|
|
142
148
|
}
|
|
143
149
|
|
|
144
|
-
.dso-
|
|
150
|
+
.dso-button-group {
|
|
145
151
|
display: flex;
|
|
146
152
|
flex-direction: row;
|
|
147
153
|
}
|
|
148
|
-
.dso-
|
|
154
|
+
.dso-button-group.dso-disabled > * {
|
|
149
155
|
background-color: #fff;
|
|
150
156
|
border-color: #e5e5e5;
|
|
151
157
|
color: #666;
|
|
152
158
|
pointer-events: none;
|
|
153
159
|
}
|
|
154
|
-
.dso-
|
|
160
|
+
.dso-button-group > * {
|
|
155
161
|
border-radius: 0;
|
|
156
162
|
}
|
|
157
|
-
.dso-
|
|
163
|
+
.dso-button-group > *:first-child {
|
|
158
164
|
border-radius: 4px 0 0 4px;
|
|
159
165
|
}
|
|
160
|
-
.dso-
|
|
166
|
+
.dso-button-group > *:not(:first-child) {
|
|
161
167
|
border-left-style: none !important;
|
|
162
168
|
}
|
|
163
|
-
.dso-
|
|
169
|
+
.dso-button-group > *:last-child {
|
|
164
170
|
border-radius: 0 4px 4px 0;
|
|
165
171
|
}
|
|
166
|
-
.dso-
|
|
172
|
+
.dso-button-group > *:only-child {
|
|
167
173
|
border-radius: 4px;
|
|
168
174
|
}
|
|
169
|
-
.dso-
|
|
175
|
+
.dso-button-group > .dso-input-number {
|
|
170
176
|
background-color: #fff;
|
|
171
177
|
border-color: #ccc;
|
|
172
178
|
color: #191919;
|
|
@@ -176,38 +182,38 @@
|
|
|
176
182
|
padding: 0 16px;
|
|
177
183
|
}
|
|
178
184
|
@media screen and (max-width: 767px) {
|
|
179
|
-
.dso-
|
|
185
|
+
.dso-button-group > .dso-input-number {
|
|
180
186
|
justify-content: center;
|
|
181
187
|
}
|
|
182
188
|
}
|
|
183
|
-
.dso-
|
|
184
|
-
.dso-
|
|
189
|
+
.dso-button-group > *:hover + .dso-input-number,
|
|
190
|
+
.dso-button-group > *:focus + .dso-input-number {
|
|
185
191
|
background-color: #fff;
|
|
186
192
|
border-color: #39870c;
|
|
187
193
|
color: #191919;
|
|
188
194
|
}
|
|
189
|
-
.dso-
|
|
195
|
+
.dso-button-group > *.dso-selected + .dso-input-number {
|
|
190
196
|
background-color: #fff;
|
|
191
197
|
border-color: #39870c;
|
|
192
198
|
color: #191919;
|
|
193
199
|
box-shadow: inset 0 -1px 0 0 #39870c, inset 0 1px 0 0 #39870c, inset -1px 0 0 0 #39870c;
|
|
194
200
|
}
|
|
195
|
-
.dso-
|
|
196
|
-
.dso-
|
|
197
|
-
.dso-
|
|
201
|
+
.dso-button-group > *:active + .dso-input-number, .dso-button-group > *:active + .dso-input-number:hover,
|
|
202
|
+
.dso-button-group > *.active + .dso-input-number,
|
|
203
|
+
.dso-button-group > *.active + .dso-input-number:hover {
|
|
198
204
|
background-color: #fff;
|
|
199
205
|
border-color: #39870c;
|
|
200
206
|
color: #191919;
|
|
201
207
|
}
|
|
202
|
-
.dso-
|
|
203
|
-
.dso-
|
|
204
|
-
.dso-
|
|
208
|
+
.dso-button-group > *.disabled + .dso-input-number, .dso-button-group > *.disabled + .dso-input-number:hover,
|
|
209
|
+
.dso-button-group > *[disabled] + .dso-input-number,
|
|
210
|
+
.dso-button-group > *[disabled] + .dso-input-number:hover {
|
|
205
211
|
background-color: #fff;
|
|
206
212
|
border-color: #ccc;
|
|
207
213
|
color: #666;
|
|
208
214
|
opacity: 1;
|
|
209
215
|
}
|
|
210
|
-
.dso-
|
|
216
|
+
.dso-button-group .dso-list-button {
|
|
211
217
|
padding-right: 15px;
|
|
212
218
|
}
|
|
213
219
|
|
|
@@ -444,9 +450,9 @@
|
|
|
444
450
|
}
|
|
445
451
|
|
|
446
452
|
.dso-list-button + .dso-list-button,
|
|
447
|
-
.dso-list-button + .dso-
|
|
448
|
-
.dso-
|
|
449
|
-
.dso-
|
|
453
|
+
.dso-list-button + .dso-button-group,
|
|
454
|
+
.dso-button-group + .dso-list-button,
|
|
455
|
+
.dso-button-group + .dso-button-group {
|
|
450
456
|
margin-top: 4px;
|
|
451
457
|
}
|
|
452
458
|
|
|
@@ -100,7 +100,7 @@ export class ListButton {
|
|
|
100
100
|
render() {
|
|
101
101
|
const showButtonInputs = this.manualCount === undefined;
|
|
102
102
|
const selected = this.checked || (this.count !== undefined && this.count > 0);
|
|
103
|
-
return (h("div", { class: clsx(["dso-
|
|
103
|
+
return (h("div", { class: clsx(["dso-button-group", { "dso-disabled": this.disabled }]) }, h("div", { class: clsx(["dso-list-button", { "dso-selected": selected, "dso-single-count": this.count === 1 }]), onClick: (e) => this.handleSelectClick(e) }, h("div", { class: "dso-selectable" }, h("input", { id: "dso-list-button-checkbox", type: "checkbox", value: "list-button", name: "naam", checked: selected, disabled: this.disabled, "aria-label": this.label }), h("label", { htmlFor: "dso-list-button-checkbox" }, this.label)), this.sublabel && h("span", { class: "dso-sublabel" }, this.sublabel), h("slot", { name: "subcontent" })), this.count !== undefined && this.count > 0 && (h("div", { class: "dso-input-number" }, this.manualCount === undefined && this.count > 1 && (h("button", { type: "button", class: "dso-tertiary", disabled: this.count === Number(this.min) || this.disabled, onClick: (e) => this.stepValue(e, "decrement") }, h("dso-icon", { icon: "minus-circle" }), h("span", { class: "sr-only" }, "Aantal verlagen"))), h("div", { class: "dso-input-wrapper" }, this.manualCount === undefined && this.count > 1 && (h("input", { class: "dso-input-step-counter", type: "number", tabIndex: -1, "aria-label": "Aantal", value: this.count, readOnly: true })), h("form", { onSubmit: (e) => this.setCount(e) }, h("div", { ref: (element) => (this.manualInputWrapperElement = element) }, h("input", { class: clsx("form-control", { hidden: showButtonInputs }), type: "number", "aria-label": "Aantal", value: this.manualCount, min: this.min, max: this.max, onInput: (e) => this.handleOnChange(e) })), this.manual === true && (h("button", { class: clsx("dso-manual-input-button", { "sr-only": !showButtonInputs }), type: !showButtonInputs ? "submit" : "button", disabled: this.disabled, onClick: () => showButtonInputs && this.startManualCountInput() }, showButtonInputs ? (h("span", { class: "sr-only" }, "Handmatig aantal invullen")) : (h("span", { class: "sr-only" }, "Zet waarde")))))), showButtonInputs && (h("button", { type: "button", class: "dso-tertiary", disabled: this.count === Number(this.max) || this.disabled, onClick: (e) => this.stepValue(e, "increment") }, h("dso-icon", { icon: "plus-circle" }), h("span", { class: "sr-only" }, "Aantal verhogen")))))));
|
|
104
104
|
}
|
|
105
105
|
static get is() { return "dso-list-button"; }
|
|
106
106
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-button.js","sourceRoot":"","sources":["../../../src/components/list-button/list-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAsB,CAAC,EAAE,IAAI,E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AAa,GAAY;UACxC,YAAM,KAAK,EAAC,SAAS,sBAAuB,CACrC,CACV,CACG,CACP,CACG,CACP,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, ComponentInterface, h, Prop, Event, EventEmitter, State, Watch } from \"@stencil/core\";\r\nimport { ListButtonChangeEvent, ListButtonSelectedEvent } from \"./list-button.interfaces\";\r\n\r\nimport { createFocusTrap, FocusTrap } from \"focus-trap\";\r\nimport clsx from \"clsx\";\r\n\r\n@Component({\r\n tag: \"dso-list-button\",\r\n shadow: true,\r\n styleUrl: \"list-button.scss\",\r\n})\r\nexport class ListButton implements ComponentInterface {\r\n private trap?: FocusTrap;\r\n\r\n @State()\r\n private manualInputWrapperElement?: HTMLDivElement;\r\n\r\n private manualInputButtonElement?: HTMLButtonElement;\r\n\r\n @State()\r\n manualCount?: number;\r\n\r\n /**\r\n * The label of the List Button.\r\n */\r\n @Prop()\r\n label?: string;\r\n\r\n /**\r\n * The sublabel of the List Button.\r\n */\r\n @Prop()\r\n sublabel?: string;\r\n\r\n /**\r\n * When defined the count can show on the List Button.\r\n */\r\n @Prop()\r\n count?: number;\r\n\r\n /**\r\n * The minimum value.\r\n */\r\n @Prop()\r\n min?: string | number;\r\n\r\n /**\r\n * The maximum value.\r\n */\r\n @Prop()\r\n max?: string | number;\r\n\r\n /**\r\n * Whether the List Button is checked.\r\n */\r\n @Prop({ reflect: true })\r\n checked = false;\r\n\r\n /**\r\n * Whether the List Button is disabled.\r\n */\r\n @Prop({ reflect: true })\r\n disabled = false;\r\n\r\n /**\r\n * Allow user to directly input a value.\r\n *\r\n * Set to `false` to force users to use plus/minus buttons.\r\n */\r\n @Prop()\r\n manual = true;\r\n\r\n /**\r\n * Emitted when the user changes the count.\r\n */\r\n @Event()\r\n dsoCountChange!: EventEmitter<ListButtonChangeEvent>;\r\n\r\n /**\r\n * Emitted when the user activates the List Button itself.\r\n *\r\n * Does not fire when the user activates the count controls.\r\n */\r\n @Event()\r\n dsoSelectedChange!: EventEmitter<ListButtonSelectedEvent>;\r\n\r\n @Watch(\"manual\")\r\n watchManualCallback() {\r\n if (!this.manual && this.manualCount) {\r\n this.stopManualCountInput();\r\n }\r\n }\r\n\r\n componentDidRender(): void {\r\n if (this.manualCount !== undefined && this.manualInputWrapperElement && !this.trap) {\r\n this.trap = createFocusTrap(this.manualInputWrapperElement, {\r\n escapeDeactivates: true,\r\n setReturnFocus: false,\r\n\r\n clickOutsideDeactivates: (e) => {\r\n this.setCount(e);\r\n\r\n return true;\r\n },\r\n onDeactivate: () => this.stopManualCountInput(),\r\n onPostDeactivate: () => this.manualInputButtonElement?.focus(),\r\n }).activate();\r\n } else if (this.manualCount === undefined && this.trap) {\r\n this.trap?.deactivate();\r\n\r\n delete this.trap;\r\n }\r\n }\r\n\r\n disconnectedCallback(): void {\r\n this.trap?.deactivate();\r\n }\r\n\r\n private handleOnChange({ target }: Event): void {\r\n if (target instanceof HTMLInputElement) {\r\n this.manualCount = target.valueAsNumber;\r\n }\r\n }\r\n\r\n private stepValue(e: Event, direction: \"increment\" | \"decrement\"): void {\r\n if (typeof this.count === \"number\") {\r\n const newValue = direction === \"increment\" ? this.count + 1 : this.count - 1;\r\n\r\n if (this.isNewCountValid(newValue) === false) {\r\n return;\r\n }\r\n\r\n this.dsoCountChange.emit({\r\n originalEvent: e,\r\n count: newValue,\r\n });\r\n }\r\n }\r\n\r\n private setCount(e: Event): void {\r\n e.preventDefault();\r\n\r\n if (typeof this.manualCount === \"number\" && this.isNewCountValid(this.manualCount)) {\r\n this.dsoCountChange.emit({\r\n originalEvent: e,\r\n count: this.manualCount,\r\n });\r\n this.stopManualCountInput();\r\n }\r\n }\r\n\r\n private handleSelectClick(e: Event): void {\r\n e.preventDefault();\r\n\r\n if (this.count !== undefined) {\r\n this.dsoCountChange.emit({\r\n originalEvent: e,\r\n count: this.count > 0 ? 0 : 1,\r\n });\r\n\r\n return;\r\n }\r\n\r\n this.dsoSelectedChange.emit({\r\n originalEvent: e,\r\n checked: !this.checked,\r\n });\r\n }\r\n\r\n private startManualCountInput(): void {\r\n this.manualCount = this.count;\r\n }\r\n\r\n private stopManualCountInput(): void {\r\n this.manualCount = undefined;\r\n }\r\n\r\n private isNewCountValid(newValue: number): boolean {\r\n if (\r\n this.min !== undefined &&\r\n this.max !== undefined &&\r\n (newValue < Number(this.min) || newValue > Number(this.max))\r\n ) {\r\n return false;\r\n }\r\n\r\n return true;\r\n }\r\n\r\n render() {\r\n const showButtonInputs = this.manualCount === undefined;\r\n\r\n const selected = this.checked || (this.count !== undefined && this.count > 0);\r\n\r\n return (\r\n <div class={clsx([\"dso-btn-group\", { \"dso-disabled\": this.disabled }])}>\r\n <div\r\n class={clsx([\"dso-list-button\", { \"dso-selected\": selected, \"dso-single-count\": this.count === 1 }])}\r\n onClick={(e) => this.handleSelectClick(e)}\r\n >\r\n <div class=\"dso-selectable\">\r\n <input\r\n id=\"dso-list-button-checkbox\"\r\n type=\"checkbox\"\r\n value=\"list-button\"\r\n name=\"naam\"\r\n checked={selected}\r\n disabled={this.disabled}\r\n aria-label={this.label}\r\n />\r\n <label htmlFor=\"dso-list-button-checkbox\">{this.label}</label>\r\n </div>\r\n {this.sublabel && <span class=\"dso-sublabel\">{this.sublabel}</span>}\r\n <slot name=\"subcontent\" />\r\n </div>\r\n\r\n {this.count !== undefined && this.count > 0 && (\r\n <div class=\"dso-input-number\">\r\n {this.manualCount === undefined && this.count > 1 && (\r\n <button\r\n type=\"button\"\r\n class=\"dso-tertiary\"\r\n disabled={this.count === Number(this.min) || this.disabled}\r\n onClick={(e) => this.stepValue(e, \"decrement\")}\r\n >\r\n <dso-icon icon=\"minus-circle\"></dso-icon>\r\n <span class=\"sr-only\">Aantal verlagen</span>\r\n </button>\r\n )}\r\n\r\n <div class=\"dso-input-wrapper\">\r\n {this.manualCount === undefined && this.count > 1 && (\r\n <input\r\n class=\"dso-input-step-counter\"\r\n type=\"number\"\r\n tabIndex={-1}\r\n aria-label=\"Aantal\"\r\n value={this.count}\r\n readOnly\r\n />\r\n )}\r\n\r\n <form onSubmit={(e) => this.setCount(e)}>\r\n <div ref={(element) => (this.manualInputWrapperElement = element)}>\r\n <input\r\n class={clsx(\"form-control\", { hidden: showButtonInputs })}\r\n type=\"number\"\r\n aria-label=\"Aantal\"\r\n value={this.manualCount}\r\n min={this.min}\r\n max={this.max}\r\n onInput={(e) => this.handleOnChange(e)}\r\n />\r\n </div>\r\n\r\n {this.manual === true && (\r\n <button\r\n class={clsx(\"dso-manual-input-button\", { \"sr-only\": !showButtonInputs })}\r\n type={!showButtonInputs ? \"submit\" : \"button\"}\r\n disabled={this.disabled}\r\n onClick={() => showButtonInputs && this.startManualCountInput()}\r\n >\r\n {showButtonInputs ? (\r\n <span class=\"sr-only\">Handmatig aantal invullen</span>\r\n ) : (\r\n <span class=\"sr-only\">Zet waarde</span>\r\n )}\r\n </button>\r\n )}\r\n </form>\r\n </div>\r\n\r\n {showButtonInputs && (\r\n <button\r\n type=\"button\"\r\n class=\"dso-tertiary\"\r\n disabled={this.count === Number(this.max) || this.disabled}\r\n onClick={(e) => this.stepValue(e, \"increment\")}\r\n >\r\n <dso-icon icon=\"plus-circle\"></dso-icon>\r\n <span class=\"sr-only\">Aantal verhogen</span>\r\n </button>\r\n )}\r\n </div>\r\n )}\r\n </div>\r\n );\r\n }\r\n}\r\n"]}
|
|
1
|
+
{"version":3,"file":"list-button.js","sourceRoot":"","sources":["../../../src/components/list-button/list-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAsB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAgB,KAAK,EAAE,KAAK,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,SAAS,sBAAuB,CACrC,CACV,CACG,CACP,CACG,CACP,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, ComponentInterface, h, Prop, Event, EventEmitter, State, Watch } from \"@stencil/core\";\r\nimport { ListButtonChangeEvent, ListButtonSelectedEvent } from \"./list-button.interfaces\";\r\n\r\nimport { createFocusTrap, FocusTrap } from \"focus-trap\";\r\nimport clsx from \"clsx\";\r\n\r\n@Component({\r\n tag: \"dso-list-button\",\r\n shadow: true,\r\n styleUrl: \"list-button.scss\",\r\n})\r\nexport class ListButton implements ComponentInterface {\r\n private trap?: FocusTrap;\r\n\r\n @State()\r\n private manualInputWrapperElement?: HTMLDivElement;\r\n\r\n private manualInputButtonElement?: HTMLButtonElement;\r\n\r\n @State()\r\n manualCount?: number;\r\n\r\n /**\r\n * The label of the List Button.\r\n */\r\n @Prop()\r\n label?: string;\r\n\r\n /**\r\n * The sublabel of the List Button.\r\n */\r\n @Prop()\r\n sublabel?: string;\r\n\r\n /**\r\n * When defined the count can show on the List Button.\r\n */\r\n @Prop()\r\n count?: number;\r\n\r\n /**\r\n * The minimum value.\r\n */\r\n @Prop()\r\n min?: string | number;\r\n\r\n /**\r\n * The maximum value.\r\n */\r\n @Prop()\r\n max?: string | number;\r\n\r\n /**\r\n * Whether the List Button is checked.\r\n */\r\n @Prop({ reflect: true })\r\n checked = false;\r\n\r\n /**\r\n * Whether the List Button is disabled.\r\n */\r\n @Prop({ reflect: true })\r\n disabled = false;\r\n\r\n /**\r\n * Allow user to directly input a value.\r\n *\r\n * Set to `false` to force users to use plus/minus buttons.\r\n */\r\n @Prop()\r\n manual = true;\r\n\r\n /**\r\n * Emitted when the user changes the count.\r\n */\r\n @Event()\r\n dsoCountChange!: EventEmitter<ListButtonChangeEvent>;\r\n\r\n /**\r\n * Emitted when the user activates the List Button itself.\r\n *\r\n * Does not fire when the user activates the count controls.\r\n */\r\n @Event()\r\n dsoSelectedChange!: EventEmitter<ListButtonSelectedEvent>;\r\n\r\n @Watch(\"manual\")\r\n watchManualCallback() {\r\n if (!this.manual && this.manualCount) {\r\n this.stopManualCountInput();\r\n }\r\n }\r\n\r\n componentDidRender(): void {\r\n if (this.manualCount !== undefined && this.manualInputWrapperElement && !this.trap) {\r\n this.trap = createFocusTrap(this.manualInputWrapperElement, {\r\n escapeDeactivates: true,\r\n setReturnFocus: false,\r\n\r\n clickOutsideDeactivates: (e) => {\r\n this.setCount(e);\r\n\r\n return true;\r\n },\r\n onDeactivate: () => this.stopManualCountInput(),\r\n onPostDeactivate: () => this.manualInputButtonElement?.focus(),\r\n }).activate();\r\n } else if (this.manualCount === undefined && this.trap) {\r\n this.trap?.deactivate();\r\n\r\n delete this.trap;\r\n }\r\n }\r\n\r\n disconnectedCallback(): void {\r\n this.trap?.deactivate();\r\n }\r\n\r\n private handleOnChange({ target }: Event): void {\r\n if (target instanceof HTMLInputElement) {\r\n this.manualCount = target.valueAsNumber;\r\n }\r\n }\r\n\r\n private stepValue(e: Event, direction: \"increment\" | \"decrement\"): void {\r\n if (typeof this.count === \"number\") {\r\n const newValue = direction === \"increment\" ? this.count + 1 : this.count - 1;\r\n\r\n if (this.isNewCountValid(newValue) === false) {\r\n return;\r\n }\r\n\r\n this.dsoCountChange.emit({\r\n originalEvent: e,\r\n count: newValue,\r\n });\r\n }\r\n }\r\n\r\n private setCount(e: Event): void {\r\n e.preventDefault();\r\n\r\n if (typeof this.manualCount === \"number\" && this.isNewCountValid(this.manualCount)) {\r\n this.dsoCountChange.emit({\r\n originalEvent: e,\r\n count: this.manualCount,\r\n });\r\n this.stopManualCountInput();\r\n }\r\n }\r\n\r\n private handleSelectClick(e: Event): void {\r\n e.preventDefault();\r\n\r\n if (this.count !== undefined) {\r\n this.dsoCountChange.emit({\r\n originalEvent: e,\r\n count: this.count > 0 ? 0 : 1,\r\n });\r\n\r\n return;\r\n }\r\n\r\n this.dsoSelectedChange.emit({\r\n originalEvent: e,\r\n checked: !this.checked,\r\n });\r\n }\r\n\r\n private startManualCountInput(): void {\r\n this.manualCount = this.count;\r\n }\r\n\r\n private stopManualCountInput(): void {\r\n this.manualCount = undefined;\r\n }\r\n\r\n private isNewCountValid(newValue: number): boolean {\r\n if (\r\n this.min !== undefined &&\r\n this.max !== undefined &&\r\n (newValue < Number(this.min) || newValue > Number(this.max))\r\n ) {\r\n return false;\r\n }\r\n\r\n return true;\r\n }\r\n\r\n render() {\r\n const showButtonInputs = this.manualCount === undefined;\r\n\r\n const selected = this.checked || (this.count !== undefined && this.count > 0);\r\n\r\n return (\r\n <div class={clsx([\"dso-button-group\", { \"dso-disabled\": this.disabled }])}>\r\n <div\r\n class={clsx([\"dso-list-button\", { \"dso-selected\": selected, \"dso-single-count\": this.count === 1 }])}\r\n onClick={(e) => this.handleSelectClick(e)}\r\n >\r\n <div class=\"dso-selectable\">\r\n <input\r\n id=\"dso-list-button-checkbox\"\r\n type=\"checkbox\"\r\n value=\"list-button\"\r\n name=\"naam\"\r\n checked={selected}\r\n disabled={this.disabled}\r\n aria-label={this.label}\r\n />\r\n <label htmlFor=\"dso-list-button-checkbox\">{this.label}</label>\r\n </div>\r\n {this.sublabel && <span class=\"dso-sublabel\">{this.sublabel}</span>}\r\n <slot name=\"subcontent\" />\r\n </div>\r\n\r\n {this.count !== undefined && this.count > 0 && (\r\n <div class=\"dso-input-number\">\r\n {this.manualCount === undefined && this.count > 1 && (\r\n <button\r\n type=\"button\"\r\n class=\"dso-tertiary\"\r\n disabled={this.count === Number(this.min) || this.disabled}\r\n onClick={(e) => this.stepValue(e, \"decrement\")}\r\n >\r\n <dso-icon icon=\"minus-circle\"></dso-icon>\r\n <span class=\"sr-only\">Aantal verlagen</span>\r\n </button>\r\n )}\r\n\r\n <div class=\"dso-input-wrapper\">\r\n {this.manualCount === undefined && this.count > 1 && (\r\n <input\r\n class=\"dso-input-step-counter\"\r\n type=\"number\"\r\n tabIndex={-1}\r\n aria-label=\"Aantal\"\r\n value={this.count}\r\n readOnly\r\n />\r\n )}\r\n\r\n <form onSubmit={(e) => this.setCount(e)}>\r\n <div ref={(element) => (this.manualInputWrapperElement = element)}>\r\n <input\r\n class={clsx(\"form-control\", { hidden: showButtonInputs })}\r\n type=\"number\"\r\n aria-label=\"Aantal\"\r\n value={this.manualCount}\r\n min={this.min}\r\n max={this.max}\r\n onInput={(e) => this.handleOnChange(e)}\r\n />\r\n </div>\r\n\r\n {this.manual === true && (\r\n <button\r\n class={clsx(\"dso-manual-input-button\", { \"sr-only\": !showButtonInputs })}\r\n type={!showButtonInputs ? \"submit\" : \"button\"}\r\n disabled={this.disabled}\r\n onClick={() => showButtonInputs && this.startManualCountInput()}\r\n >\r\n {showButtonInputs ? (\r\n <span class=\"sr-only\">Handmatig aantal invullen</span>\r\n ) : (\r\n <span class=\"sr-only\">Zet waarde</span>\r\n )}\r\n </button>\r\n )}\r\n </form>\r\n </div>\r\n\r\n {showButtonInputs && (\r\n <button\r\n type=\"button\"\r\n class=\"dso-tertiary\"\r\n disabled={this.count === Number(this.max) || this.disabled}\r\n onClick={(e) => this.stepValue(e, \"increment\")}\r\n >\r\n <dso-icon icon=\"plus-circle\"></dso-icon>\r\n <span class=\"sr-only\">Aantal verhogen</span>\r\n </button>\r\n )}\r\n </div>\r\n )}\r\n </div>\r\n );\r\n }\r\n}\r\n"]}
|
|
@@ -98,19 +98,19 @@ button::-moz-focus-inner {
|
|
|
98
98
|
border-color: #afcf9d;
|
|
99
99
|
color: #afcf9d;
|
|
100
100
|
}
|
|
101
|
-
.toggle-visibility-button.
|
|
101
|
+
.toggle-visibility-button.dso-small {
|
|
102
102
|
line-height: 1rem;
|
|
103
103
|
}
|
|
104
|
-
.toggle-visibility-button.
|
|
105
|
-
.toggle-visibility-button.
|
|
104
|
+
.toggle-visibility-button.dso-small dso-icon,
|
|
105
|
+
.toggle-visibility-button.dso-small svg.di, .toggle-visibility-button.dso-small.extern::after, .toggle-visibility-button.dso-small.download::after, .toggle-visibility-button.dso-small.dso-spinner::before {
|
|
106
106
|
margin-bottom: -4px;
|
|
107
107
|
margin-top: -4px;
|
|
108
108
|
}
|
|
109
|
-
.toggle-visibility-button.
|
|
109
|
+
.toggle-visibility-button.dso-small.dso-spinner-left::before {
|
|
110
110
|
height: 16px;
|
|
111
111
|
width: 16px;
|
|
112
112
|
}
|
|
113
|
-
.toggle-visibility-button.
|
|
113
|
+
.toggle-visibility-button.dso-small.dso-spinner-right::after {
|
|
114
114
|
height: 16px;
|
|
115
115
|
width: 16px;
|
|
116
116
|
}
|
|
@@ -149,7 +149,7 @@ button::-moz-focus-inner {
|
|
|
149
149
|
width: 24px;
|
|
150
150
|
margin-right: 8px;
|
|
151
151
|
}
|
|
152
|
-
.toggle-visibility-button.dso-spinner-left:not([disabled]).
|
|
152
|
+
.toggle-visibility-button.dso-spinner-left:not([disabled]).dso-small:hover::before {
|
|
153
153
|
height: 16px;
|
|
154
154
|
width: 16px;
|
|
155
155
|
}
|
|
@@ -173,7 +173,7 @@ button::-moz-focus-inner {
|
|
|
173
173
|
width: 24px;
|
|
174
174
|
margin-left: 8px;
|
|
175
175
|
}
|
|
176
|
-
.toggle-visibility-button.dso-spinner-right:not([disabled]).
|
|
176
|
+
.toggle-visibility-button.dso-spinner-right:not([disabled]).dso-small:hover::after {
|
|
177
177
|
height: 16px;
|
|
178
178
|
width: 16px;
|
|
179
179
|
}
|
|
@@ -244,19 +244,19 @@ button::-moz-focus-inner {
|
|
|
244
244
|
border-color: #afcf9d;
|
|
245
245
|
color: #afcf9d;
|
|
246
246
|
}
|
|
247
|
-
.zoom-buttons button.
|
|
247
|
+
.zoom-buttons button.dso-small {
|
|
248
248
|
line-height: 1rem;
|
|
249
249
|
}
|
|
250
|
-
.zoom-buttons button.
|
|
251
|
-
.zoom-buttons button.
|
|
250
|
+
.zoom-buttons button.dso-small dso-icon,
|
|
251
|
+
.zoom-buttons button.dso-small svg.di, .zoom-buttons button.dso-small.extern::after, .zoom-buttons button.dso-small.download::after, .zoom-buttons button.dso-small.dso-spinner::before {
|
|
252
252
|
margin-bottom: -4px;
|
|
253
253
|
margin-top: -4px;
|
|
254
254
|
}
|
|
255
|
-
.zoom-buttons button.
|
|
255
|
+
.zoom-buttons button.dso-small.dso-spinner-left::before {
|
|
256
256
|
height: 16px;
|
|
257
257
|
width: 16px;
|
|
258
258
|
}
|
|
259
|
-
.zoom-buttons button.
|
|
259
|
+
.zoom-buttons button.dso-small.dso-spinner-right::after {
|
|
260
260
|
height: 16px;
|
|
261
261
|
width: 16px;
|
|
262
262
|
}
|
|
@@ -295,7 +295,7 @@ button::-moz-focus-inner {
|
|
|
295
295
|
width: 24px;
|
|
296
296
|
margin-right: 8px;
|
|
297
297
|
}
|
|
298
|
-
.zoom-buttons button.dso-spinner-left:not([disabled]).
|
|
298
|
+
.zoom-buttons button.dso-spinner-left:not([disabled]).dso-small:hover::before {
|
|
299
299
|
height: 16px;
|
|
300
300
|
width: 16px;
|
|
301
301
|
}
|
|
@@ -319,7 +319,7 @@ button::-moz-focus-inner {
|
|
|
319
319
|
width: 24px;
|
|
320
320
|
margin-left: 8px;
|
|
321
321
|
}
|
|
322
|
-
.zoom-buttons button.dso-spinner-right:not([disabled]).
|
|
322
|
+
.zoom-buttons button.dso-spinner-right:not([disabled]).dso-small:hover::after {
|
|
323
323
|
height: 16px;
|
|
324
324
|
width: 16px;
|
|
325
325
|
}
|
|
@@ -376,11 +376,17 @@ button::-moz-focus-inner {
|
|
|
376
376
|
.close-button:not([disabled]):active {
|
|
377
377
|
color: #173521;
|
|
378
378
|
}
|
|
379
|
-
.close-button.
|
|
379
|
+
.close-button.dso-align {
|
|
380
380
|
line-height: calc(1.5em - 1px);
|
|
381
381
|
padding: 11px 0;
|
|
382
382
|
position: relative;
|
|
383
383
|
}
|
|
384
|
+
.close-button.dso-truncate {
|
|
385
|
+
max-width: 100%;
|
|
386
|
+
overflow: hidden;
|
|
387
|
+
text-overflow: ellipsis;
|
|
388
|
+
white-space: nowrap;
|
|
389
|
+
}
|
|
384
390
|
.close-button.dso-spinner-left::before {
|
|
385
391
|
background-image: url("data:image/svg+xml,%3Csvg class='spinner' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg' %3E%3Cstyle%3E .spinner %7B animation: rotator 8s linear infinite; transform-origin: center; %7D @keyframes rotator %7B 0%25 %7B transform: rotate(0deg); %7D 100%25 %7B transform: rotate(360deg); %7D %7D .path %7B stroke-dasharray: 265; stroke-dashoffset: 0; transform-origin: center; stroke: %2339870c; animation: dash 2s ease-in-out infinite; %7D @keyframes dash %7B 0%25 %7B stroke-dashoffset: 265; %7D 50%25 %7B stroke-dashoffset: 65; transform:rotate(90deg); %7D 100%25 %7B stroke-dashoffset: 265; transform:rotate(360deg); %7D %3C/style%3E%3Ccircle class='path' fill='none' stroke-width='10' stroke-linecap='butt' cx='50' cy='50' r='45'%3E%3C/circle%3E%3C/svg%3E");
|
|
386
392
|
background-repeat: no-repeat;
|