@dso-toolkit/core 68.3.0 → 68.5.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 +26 -6
- package/dist/cjs/dso-accordion-section.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-alert_6.cjs.entry.js +21 -8
- package/dist/cjs/dso-alert_6.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-annotation-locatie_2.cjs.entry.js +1 -1
- package/dist/cjs/dso-annotation-locatie_2.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-dropdown-menu.cjs.entry.js +1 -1
- package/dist/cjs/dso-helpcenter-panel.cjs.entry.js +2 -2
- 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-info-button.cjs.entry.js +1 -1
- package/dist/cjs/dso-info_2.cjs.entry.js +2 -2
- package/dist/cjs/dso-input-range.cjs.entry.js +2 -2
- package/dist/cjs/dso-label_3.cjs.entry.js +193 -0
- package/dist/cjs/dso-label_3.cjs.entry.js.map +1 -0
- package/dist/cjs/dso-legend-item.cjs.entry.js +2 -2
- package/dist/cjs/dso-list-button.cjs.entry.js +2 -2
- package/dist/cjs/dso-list-button.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-logo.cjs.entry.js +1 -1
- package/dist/cjs/dso-map-base-layers.cjs.entry.js +1 -1
- package/dist/cjs/dso-map-controls.cjs.entry.js +1 -1
- package/dist/cjs/dso-map-overlays.cjs.entry.js +1 -1
- package/dist/cjs/dso-mark-bar.cjs.entry.js +1 -1
- package/dist/cjs/dso-modal.cjs.entry.js +2 -2
- package/dist/cjs/dso-plekinfo-card.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-project-item.cjs.entry.js +1 -1
- package/dist/cjs/dso-responsive-element.cjs.entry.js +1 -1
- package/dist/cjs/dso-scrollable.cjs.entry.js +2 -2
- package/dist/cjs/dso-skiplink.cjs.entry.js +1 -1
- package/dist/cjs/dso-survey-rating.cjs.entry.js +44 -0
- package/dist/cjs/dso-survey-rating.cjs.entry.js.map +1 -0
- package/dist/cjs/dso-tabs.cjs.entry.js +1 -1
- package/dist/cjs/dso-toggletip.cjs.entry.js +1 -1
- package/dist/cjs/dso-toolkit.cjs.js +1 -1
- package/dist/cjs/{dso-label_2.cjs.entry.js → dso-tooltip.cjs.entry.js} +8 -123
- package/dist/cjs/dso-tooltip.cjs.entry.js.map +1 -0
- package/dist/cjs/dso-tree-view.cjs.entry.js +1 -1
- package/dist/cjs/dso-viewer-grid.cjs.entry.js +2 -2
- package/dist/cjs/dsot-document-component-demo.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/accordion/components/accordion-section.css +44 -10
- package/dist/collection/components/accordion/components/accordion-section.interfaces.js.map +1 -1
- package/dist/collection/components/accordion/components/accordion-section.js +85 -5
- package/dist/collection/components/accordion/components/accordion-section.js.map +1 -1
- package/dist/collection/components/document-component/document-component.js +38 -4
- package/dist/collection/components/document-component/document-component.js.map +1 -1
- package/dist/collection/components/document-component/document-component.models.js.map +1 -1
- package/dist/collection/components/document-component-demo/document-component.demo.js +1 -1
- package/dist/collection/components/dropdown-menu/dropdown-menu.js +1 -1
- package/dist/collection/components/helpcenter-panel/helpcenter-panel.js +2 -2
- package/dist/collection/components/highlight-box/highlight-box.js +1 -1
- package/dist/collection/components/icon/icon.js +1 -1
- package/dist/collection/components/info/info.js +1 -1
- package/dist/collection/components/info-button/info-button.js +1 -1
- package/dist/collection/components/input-range/input-range.js +2 -2
- package/dist/collection/components/label/label.js +3 -3
- package/dist/collection/components/legend-item/legend-item.js +2 -2
- package/dist/collection/components/list-button/list-button.css +0 -7
- package/dist/collection/components/list-button/list-button.js +1 -1
- package/dist/collection/components/logo/logo.js +1 -1
- package/dist/collection/components/map-base-layers/map-base-layers.js +1 -1
- package/dist/collection/components/map-controls/map-controls.js +1 -1
- package/dist/collection/components/map-overlays/map-overlays.js +1 -1
- package/dist/collection/components/mark-bar/mark-bar.js +1 -1
- package/dist/collection/components/modal/modal.js +2 -2
- package/dist/collection/components/ozon-content/nodes/{opschrift.node.js → kop.node.js} +3 -3
- package/dist/collection/components/ozon-content/nodes/kop.node.js.map +1 -0
- package/dist/collection/components/ozon-content/ozon-content-context.interface.js.map +1 -1
- package/dist/collection/components/ozon-content/ozon-content-mapper.js +8 -4
- package/dist/collection/components/ozon-content/ozon-content-mapper.js.map +1 -1
- package/dist/collection/components/ozon-content/ozon-content.js +26 -1
- package/dist/collection/components/ozon-content/ozon-content.js.map +1 -1
- package/dist/collection/components/panel/panel.css +3 -2
- package/dist/collection/components/plekinfo-card/plekinfo-card.js +1 -1
- package/dist/collection/components/progress-bar/progress-bar.js +1 -1
- package/dist/collection/components/progress-indicator/progress-indicator.js +1 -1
- package/dist/collection/components/project-item/project-item.js +1 -1
- package/dist/collection/components/renvooi/renvooi.js +1 -1
- package/dist/collection/components/responsive-element/responsive-element.js +1 -1
- package/dist/collection/components/scrollable/scrollable.js +2 -2
- package/dist/collection/components/selectable/selectable.js +1 -1
- package/dist/collection/components/skiplink/skiplink.js +1 -1
- package/dist/collection/components/slide-toggle/slide-toggle.css +5 -0
- package/dist/collection/components/slide-toggle/slide-toggle.js +2 -1
- package/dist/collection/components/slide-toggle/slide-toggle.js.map +1 -1
- package/dist/collection/components/survey-rating/survey-rating.css +392 -0
- package/dist/collection/components/survey-rating/survey-rating.interfaces.js +2 -0
- package/dist/collection/components/survey-rating/survey-rating.interfaces.js.map +1 -0
- package/dist/collection/components/survey-rating/survey-rating.js +84 -0
- package/dist/collection/components/survey-rating/survey-rating.js.map +1 -0
- package/dist/collection/components/table/table.js +1 -1
- package/dist/collection/components/tabs/tabs.js +1 -1
- package/dist/collection/components/toggletip/toggletip.js +1 -1
- package/dist/collection/components/tooltip/tooltip.js +1 -1
- package/dist/collection/components/tree-view/tree-view.js +1 -1
- package/dist/collection/components/viewer-grid/viewer-grid.js +2 -2
- package/dist/components/document-component.js +2 -1
- package/dist/components/document-component.js.map +1 -1
- package/dist/components/dropdown-menu.js +1 -1
- package/dist/components/dso-accordion-section.js +44 -16
- package/dist/components/dso-accordion-section.js.map +1 -1
- package/dist/components/dso-helpcenter-panel.js +2 -2
- package/dist/components/dso-highlight-box.js +1 -1
- package/dist/components/dso-input-range.js +2 -2
- package/dist/components/dso-legend-item.js +2 -2
- package/dist/components/dso-list-button.js +2 -2
- package/dist/components/dso-list-button.js.map +1 -1
- package/dist/components/dso-logo.js +1 -1
- package/dist/components/dso-map-base-layers.js +1 -1
- package/dist/components/dso-map-controls.js +1 -1
- package/dist/components/dso-map-overlays.js +1 -1
- package/dist/components/dso-mark-bar.js +1 -1
- package/dist/components/dso-modal.js +2 -2
- package/dist/components/dso-plekinfo-card.js +1 -1
- package/dist/components/dso-progress-bar.js +1 -1
- package/dist/components/dso-project-item.js +1 -1
- package/dist/components/dso-skiplink.js +1 -1
- package/dist/components/dso-survey-rating.d.ts +11 -0
- package/dist/components/dso-survey-rating.js +70 -0
- package/dist/components/dso-survey-rating.js.map +1 -0
- package/dist/components/dso-tabs.js +1 -1
- package/dist/components/dso-tree-view.js +1 -1
- package/dist/components/dso-viewer-grid.js +2 -2
- package/dist/components/dsot-document-component-demo.js +1 -1
- package/dist/components/icon.js +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +1 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/info-button.js +1 -1
- package/dist/components/info.js +1 -1
- package/dist/components/label.js +3 -3
- package/dist/components/ozon-content.js +20 -6
- package/dist/components/ozon-content.js.map +1 -1
- package/dist/components/panel.js +1 -1
- package/dist/components/panel.js.map +1 -1
- package/dist/components/progress-indicator.js +1 -1
- package/dist/components/renvooi.js +1 -1
- package/dist/components/responsive-element.js +1 -1
- package/dist/components/scrollable.js +2 -2
- package/dist/components/selectable.js +1 -1
- package/dist/components/slide-toggle.js +3 -3
- package/dist/components/slide-toggle.js.map +1 -1
- package/dist/components/table.js +1 -1
- package/dist/components/toggletip.js +1 -1
- package/dist/components/tooltip.js +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-b3deb707.entry.js → p-0499bdce.entry.js} +2 -2
- package/dist/dso-toolkit/p-0499bdce.entry.js.map +1 -0
- package/dist/dso-toolkit/p-0dcef2bb.entry.js +2 -0
- package/dist/dso-toolkit/p-0dcef2bb.entry.js.map +1 -0
- package/dist/dso-toolkit/{p-df6c1f5f.entry.js → p-11e367b3.entry.js} +2 -2
- package/dist/dso-toolkit/{p-a6df0d43.entry.js → p-1746cde9.entry.js} +2 -2
- package/dist/dso-toolkit/p-1746cde9.entry.js.map +1 -0
- package/dist/dso-toolkit/{p-f1dc313d.entry.js → p-1ec998ba.entry.js} +2 -2
- package/dist/dso-toolkit/{p-35186e39.entry.js → p-236e6d02.entry.js} +2 -2
- package/dist/dso-toolkit/p-2aaad2dd.entry.js +2 -0
- package/dist/dso-toolkit/{p-3270708a.entry.js → p-3033a7f3.entry.js} +2 -2
- package/dist/dso-toolkit/p-323455dc.entry.js +2 -0
- package/dist/dso-toolkit/p-323455dc.entry.js.map +1 -0
- package/dist/dso-toolkit/{p-ad38ad02.entry.js → p-40d7c6bf.entry.js} +2 -2
- package/dist/dso-toolkit/{p-ee7e35f5.entry.js → p-4bcf2efb.entry.js} +2 -2
- package/dist/dso-toolkit/{p-7e626a87.entry.js → p-4e8fa5f6.entry.js} +2 -2
- package/dist/dso-toolkit/p-55306107.entry.js +2 -0
- package/dist/dso-toolkit/{p-fccb414d.entry.js.map → p-55306107.entry.js.map} +1 -1
- package/dist/dso-toolkit/{p-7e2c9463.entry.js → p-5cdbbba6.entry.js} +2 -2
- package/dist/dso-toolkit/{p-faa6b9d5.entry.js → p-5ec31b61.entry.js} +2 -2
- package/dist/dso-toolkit/{p-8b5409ad.entry.js → p-60e40f8f.entry.js} +2 -2
- package/dist/dso-toolkit/p-631af6b1.entry.js +2 -0
- package/dist/dso-toolkit/p-631af6b1.entry.js.map +1 -0
- package/dist/dso-toolkit/p-8597633a.entry.js +2 -0
- package/dist/dso-toolkit/{p-1aefb8a6.entry.js.map → p-8597633a.entry.js.map} +1 -1
- package/dist/dso-toolkit/{p-e8064fba.entry.js → p-880d04c4.entry.js} +2 -2
- package/dist/dso-toolkit/p-898ad366.entry.js +2 -0
- package/dist/dso-toolkit/p-898ad366.entry.js.map +1 -0
- package/dist/dso-toolkit/{p-acfb9f16.entry.js → p-9331c2fc.entry.js} +2 -2
- package/dist/dso-toolkit/{p-e19e851b.entry.js → p-943ad4a8.entry.js} +2 -2
- package/dist/dso-toolkit/{p-80c945ed.entry.js → p-984d922e.entry.js} +2 -2
- package/dist/dso-toolkit/{p-d9cb06fc.entry.js → p-99d7326e.entry.js} +2 -2
- package/dist/dso-toolkit/{p-007802e5.entry.js → p-9d176f6f.entry.js} +2 -2
- package/dist/dso-toolkit/{p-3be76968.entry.js → p-a496f58f.entry.js} +2 -2
- package/dist/dso-toolkit/{p-8a3e9f50.entry.js → p-b57af35d.entry.js} +2 -2
- package/dist/dso-toolkit/p-b5c5ca39.entry.js +2 -0
- package/dist/dso-toolkit/{p-9dbebb2e.entry.js.map → p-b5c5ca39.entry.js.map} +1 -1
- package/dist/dso-toolkit/{p-8cc798d5.entry.js → p-cf32927d.entry.js} +2 -2
- package/dist/dso-toolkit/{p-1f14320f.entry.js → p-d3131297.entry.js} +2 -2
- package/dist/dso-toolkit/p-e4f473e2.entry.js +2 -0
- package/dist/dso-toolkit/p-e4f473e2.entry.js.map +1 -0
- package/dist/dso-toolkit/{p-fd989862.entry.js → p-e9d15fae.entry.js} +2 -2
- package/dist/dso-toolkit/{p-a341b666.entry.js → p-ed33d023.entry.js} +2 -2
- package/dist/esm/dso-accordion-section.entry.js +26 -6
- package/dist/esm/dso-accordion-section.entry.js.map +1 -1
- package/dist/esm/dso-alert_6.entry.js +21 -8
- package/dist/esm/dso-alert_6.entry.js.map +1 -1
- package/dist/esm/dso-annotation-locatie_2.entry.js +1 -1
- package/dist/esm/dso-annotation-locatie_2.entry.js.map +1 -1
- package/dist/esm/dso-dropdown-menu.entry.js +1 -1
- package/dist/esm/dso-helpcenter-panel.entry.js +2 -2
- package/dist/esm/dso-highlight-box.entry.js +1 -1
- package/dist/esm/dso-icon.entry.js +1 -1
- package/dist/esm/dso-info-button.entry.js +1 -1
- package/dist/esm/dso-info_2.entry.js +2 -2
- package/dist/esm/dso-input-range.entry.js +2 -2
- package/dist/esm/dso-label_3.entry.js +187 -0
- package/dist/esm/dso-label_3.entry.js.map +1 -0
- package/dist/esm/dso-legend-item.entry.js +2 -2
- package/dist/esm/dso-list-button.entry.js +2 -2
- package/dist/esm/dso-list-button.entry.js.map +1 -1
- package/dist/esm/dso-logo.entry.js +1 -1
- package/dist/esm/dso-map-base-layers.entry.js +1 -1
- package/dist/esm/dso-map-controls.entry.js +1 -1
- package/dist/esm/dso-map-overlays.entry.js +1 -1
- package/dist/esm/dso-mark-bar.entry.js +1 -1
- package/dist/esm/dso-modal.entry.js +2 -2
- package/dist/esm/dso-plekinfo-card.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-project-item.entry.js +1 -1
- package/dist/esm/dso-responsive-element.entry.js +1 -1
- package/dist/esm/dso-scrollable.entry.js +2 -2
- package/dist/esm/dso-skiplink.entry.js +1 -1
- package/dist/esm/dso-survey-rating.entry.js +40 -0
- package/dist/esm/dso-survey-rating.entry.js.map +1 -0
- package/dist/esm/dso-tabs.entry.js +1 -1
- package/dist/esm/dso-toggletip.entry.js +1 -1
- package/dist/esm/dso-toolkit.js +1 -1
- package/dist/esm/{dso-label_2.entry.js → dso-tooltip.entry.js} +5 -119
- package/dist/esm/dso-tooltip.entry.js.map +1 -0
- package/dist/esm/dso-tree-view.entry.js +1 -1
- package/dist/esm/dso-viewer-grid.entry.js +2 -2
- package/dist/esm/dsot-document-component-demo.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/accordion/components/accordion-section.d.ts +16 -1
- package/dist/types/components/accordion/components/accordion-section.interfaces.d.ts +11 -0
- package/dist/types/components/document-component/document-component.d.ts +7 -0
- package/dist/types/components/document-component/document-component.models.d.ts +1 -1
- package/dist/types/components/ozon-content/nodes/{opschrift.node.d.ts → kop.node.d.ts} +2 -2
- package/dist/types/components/ozon-content/ozon-content-context.interface.d.ts +1 -0
- package/dist/types/components/ozon-content/ozon-content.d.ts +4 -0
- package/dist/types/components/survey-rating/survey-rating.d.ts +16 -0
- package/dist/types/components/survey-rating/survey-rating.interfaces.d.ts +15 -0
- package/dist/types/components.d.ts +84 -2
- package/package.json +3 -3
- package/dist/cjs/dso-label_2.cjs.entry.js.map +0 -1
- package/dist/cjs/dso-renvooi_2.cjs.entry.js +0 -76
- package/dist/cjs/dso-renvooi_2.cjs.entry.js.map +0 -1
- package/dist/collection/components/ozon-content/nodes/opschrift.node.js.map +0 -1
- package/dist/dso-toolkit/p-03e5e9e1.entry.js +0 -2
- package/dist/dso-toolkit/p-1ad6315b.entry.js +0 -2
- package/dist/dso-toolkit/p-1ad6315b.entry.js.map +0 -1
- package/dist/dso-toolkit/p-1aefb8a6.entry.js +0 -2
- package/dist/dso-toolkit/p-7e0130d8.entry.js +0 -2
- package/dist/dso-toolkit/p-7e0130d8.entry.js.map +0 -1
- package/dist/dso-toolkit/p-9dbebb2e.entry.js +0 -2
- package/dist/dso-toolkit/p-a6df0d43.entry.js.map +0 -1
- package/dist/dso-toolkit/p-b3deb707.entry.js.map +0 -1
- package/dist/dso-toolkit/p-eb04878c.entry.js +0 -2
- package/dist/dso-toolkit/p-eb04878c.entry.js.map +0 -1
- package/dist/dso-toolkit/p-fca1f5bd.entry.js +0 -2
- package/dist/dso-toolkit/p-fca1f5bd.entry.js.map +0 -1
- package/dist/dso-toolkit/p-fccb414d.entry.js +0 -2
- package/dist/esm/dso-label_2.entry.js.map +0 -1
- package/dist/esm/dso-renvooi_2.entry.js +0 -71
- package/dist/esm/dso-renvooi_2.entry.js.map +0 -1
- /package/dist/dso-toolkit/{p-df6c1f5f.entry.js.map → p-11e367b3.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-f1dc313d.entry.js.map → p-1ec998ba.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-35186e39.entry.js.map → p-236e6d02.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-03e5e9e1.entry.js.map → p-2aaad2dd.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-3270708a.entry.js.map → p-3033a7f3.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-ad38ad02.entry.js.map → p-40d7c6bf.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-ee7e35f5.entry.js.map → p-4bcf2efb.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-7e626a87.entry.js.map → p-4e8fa5f6.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-7e2c9463.entry.js.map → p-5cdbbba6.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-faa6b9d5.entry.js.map → p-5ec31b61.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-8b5409ad.entry.js.map → p-60e40f8f.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-e8064fba.entry.js.map → p-880d04c4.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-acfb9f16.entry.js.map → p-9331c2fc.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-e19e851b.entry.js.map → p-943ad4a8.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-80c945ed.entry.js.map → p-984d922e.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-d9cb06fc.entry.js.map → p-99d7326e.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-007802e5.entry.js.map → p-9d176f6f.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-3be76968.entry.js.map → p-a496f58f.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-8a3e9f50.entry.js.map → p-b57af35d.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-8cc798d5.entry.js.map → p-cf32927d.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-1f14320f.entry.js.map → p-d3131297.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-fd989862.entry.js.map → p-e9d15fae.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-a341b666.entry.js.map → p-ed33d023.entry.js.map} +0 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface DsoSurveyRating extends Components.DsoSurveyRating, HTMLElement {}
|
|
4
|
+
export const DsoSurveyRating: {
|
|
5
|
+
prototype: DsoSurveyRating;
|
|
6
|
+
new (): DsoSurveyRating;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Fragment } from '@stencil/core/internal/client';
|
|
2
|
+
import { d as defineCustomElement$3 } from './icon.js';
|
|
3
|
+
import { d as defineCustomElement$2 } from './panel.js';
|
|
4
|
+
|
|
5
|
+
const surveyRatingCss = ":host {\n display: block;\n position: absolute;\n inset-block-end: 16px;\n inset-inline-start: 16px;\n inline-size: 370px;\n box-shadow: -3px 3px 6px 0 rgba(0, 0, 0, 0.5);\n border-radius: 4px;\n}\n@media screen and (max-width: 480px) {\n :host {\n inline-size: 320px;\n inset-block-end: 0;\n inset-inline-start: 0;\n --panel-heading-padding-inline-start: 8px;\n --panel-body-padding-inline: 8px;\n }\n}\n\n*,\n*::after,\n*::before {\n box-sizing: border-box;\n}\n\n.sr-only {\n position: absolute;\n inline-size: 1px;\n block-size: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n border: 0;\n}\n\n.visual-rating-labels {\n display: flex;\n justify-content: space-between;\n margin-block: 8px;\n}\n\ninput[type=radio] {\n appearance: none;\n cursor: pointer;\n position: absolute;\n margin-inline: 0;\n margin-block: 0;\n inset-block: 8px 0;\n inset-inline: 0;\n z-index: 1;\n}\n\nlabel {\n position: relative;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n inline-size: 48px;\n block-size: 48px;\n border: 1px solid #ccc;\n border-inline-end-width: 0;\n padding-block-start: 8px;\n}\n@media screen and (max-width: 480px) {\n label {\n inline-size: 43px;\n block-size: 43px;\n }\n}\nlabel:hover {\n background-color: #f2f2f2;\n}\nlabel:active {\n background-color: #e5e5e5;\n}\nlabel:first-of-type {\n border-radius: 4px 0 0 4px;\n}\nlabel:first-of-type::before {\n border-radius: 3px 0 0;\n}\nlabel:last-of-type {\n border-inline-end-width: 1px;\n border-radius: 0 4px 4px 0;\n}\nlabel:last-of-type::before {\n border-radius: 0 3px 0 0;\n}\nlabel::before {\n content: \"\";\n display: block;\n position: absolute;\n inset-block-start: 0;\n block-size: 8px;\n inline-size: 100%;\n border-block-end: 1px solid #ccc;\n}\nlabel:has(input:checked) {\n font-weight: bold;\n}\nlabel.survey-rating-1::before, label.survey-rating-1:has(input:checked) {\n --link-color: currentColor;\n --link-hover-color: currentColor;\n --link-visited-color: currentColor;\n background-color: #b62f41;\n border-color: #ccc;\n color: #fff;\n}\nlabel.survey-rating-1::before a:is(.download, .download:hover, .download:focus-visible), label.survey-rating-1:has(input:checked) a:is(.download, .download:hover, .download:focus-visible) {\n background-image: var(--_dso-di-background-image, url(\"./di.svg#download-wit\"));\n}\nlabel.survey-rating-1::before a:is(.extern, .extern:hover, .extern:focus-visible), label.survey-rating-1:has(input:checked) a:is(.extern, .extern:hover, .extern:focus-visible) {\n background-image: var(--_dso-di-background-image, url(\"./di.svg#external-link-wit\"));\n}\nlabel.survey-rating-1::before a:is([href^=\"tel:\"], [href^=\"tel:\"]:hover, [href^=\"tel:\"]:focus-visible), label.survey-rating-1:has(input:checked) a:is([href^=\"tel:\"], [href^=\"tel:\"]:hover, [href^=\"tel:\"]:focus-visible) {\n background-image: var(--_dso-di-background-image, url(\"./di.svg#call-wit\"));\n}\nlabel.survey-rating-1::before a:is([href^=\"mailto:\"], [href^=\"mailto:\"]:hover, [href^=\"mailto:\"]:focus-visible), label.survey-rating-1:has(input:checked) a:is([href^=\"mailto:\"], [href^=\"mailto:\"]:hover, [href^=\"mailto:\"]:focus-visible) {\n background-image: var(--_dso-di-background-image, url(\"./di.svg#email-wit\"));\n}\nlabel.survey-rating-2::before, label.survey-rating-2:has(input:checked) {\n --link-color: currentColor;\n --link-hover-color: currentColor;\n --link-visited-color: currentColor;\n background-color: #ce3f51;\n border-color: #ccc;\n color: #fff;\n}\nlabel.survey-rating-2::before a:is(.download, .download:hover, .download:focus-visible), label.survey-rating-2:has(input:checked) a:is(.download, .download:hover, .download:focus-visible) {\n background-image: var(--_dso-di-background-image, url(\"./di.svg#download-wit\"));\n}\nlabel.survey-rating-2::before a:is(.extern, .extern:hover, .extern:focus-visible), label.survey-rating-2:has(input:checked) a:is(.extern, .extern:hover, .extern:focus-visible) {\n background-image: var(--_dso-di-background-image, url(\"./di.svg#external-link-wit\"));\n}\nlabel.survey-rating-2::before a:is([href^=\"tel:\"], [href^=\"tel:\"]:hover, [href^=\"tel:\"]:focus-visible), label.survey-rating-2:has(input:checked) a:is([href^=\"tel:\"], [href^=\"tel:\"]:hover, [href^=\"tel:\"]:focus-visible) {\n background-image: var(--_dso-di-background-image, url(\"./di.svg#call-wit\"));\n}\nlabel.survey-rating-2::before a:is([href^=\"mailto:\"], [href^=\"mailto:\"]:hover, [href^=\"mailto:\"]:focus-visible), label.survey-rating-2:has(input:checked) a:is([href^=\"mailto:\"], [href^=\"mailto:\"]:hover, [href^=\"mailto:\"]:focus-visible) {\n background-image: var(--_dso-di-background-image, url(\"./di.svg#email-wit\"));\n}\nlabel.survey-rating-3::before, label.survey-rating-3:has(input:checked) {\n --link-color: currentColor;\n --link-hover-color: currentColor;\n --link-visited-color: currentColor;\n background-color: #e17000;\n border-color: #ccc;\n color: #191919;\n}\nlabel.survey-rating-3::before a:is(.download, .download:hover, .download:focus-visible), label.survey-rating-3:has(input:checked) a:is(.download, .download:hover, .download:focus-visible) {\n background-image: var(--_dso-di-background-image, url(\"./di.svg#download-zwart\"));\n}\nlabel.survey-rating-3::before a:is(.extern, .extern:hover, .extern:focus-visible), label.survey-rating-3:has(input:checked) a:is(.extern, .extern:hover, .extern:focus-visible) {\n background-image: var(--_dso-di-background-image, url(\"./di.svg#external-link-zwart\"));\n}\nlabel.survey-rating-3::before a:is([href^=\"tel:\"], [href^=\"tel:\"]:hover, [href^=\"tel:\"]:focus-visible), label.survey-rating-3:has(input:checked) a:is([href^=\"tel:\"], [href^=\"tel:\"]:hover, [href^=\"tel:\"]:focus-visible) {\n background-image: var(--_dso-di-background-image, url(\"./di.svg#call-zwart\"));\n}\nlabel.survey-rating-3::before a:is([href^=\"mailto:\"], [href^=\"mailto:\"]:hover, [href^=\"mailto:\"]:focus-visible), label.survey-rating-3:has(input:checked) a:is([href^=\"mailto:\"], [href^=\"mailto:\"]:hover, [href^=\"mailto:\"]:focus-visible) {\n background-image: var(--_dso-di-background-image, url(\"./di.svg#email-zwart\"));\n}\nlabel.survey-rating-4::before, label.survey-rating-4:has(input:checked) {\n --link-color: currentColor;\n --link-hover-color: currentColor;\n --link-visited-color: currentColor;\n background-color: #dcd400;\n border-color: #ccc;\n color: #191919;\n}\nlabel.survey-rating-4::before a:is(.download, .download:hover, .download:focus-visible), label.survey-rating-4:has(input:checked) a:is(.download, .download:hover, .download:focus-visible) {\n background-image: var(--_dso-di-background-image, url(\"./di.svg#download-zwart\"));\n}\nlabel.survey-rating-4::before a:is(.extern, .extern:hover, .extern:focus-visible), label.survey-rating-4:has(input:checked) a:is(.extern, .extern:hover, .extern:focus-visible) {\n background-image: var(--_dso-di-background-image, url(\"./di.svg#external-link-zwart\"));\n}\nlabel.survey-rating-4::before a:is([href^=\"tel:\"], [href^=\"tel:\"]:hover, [href^=\"tel:\"]:focus-visible), label.survey-rating-4:has(input:checked) a:is([href^=\"tel:\"], [href^=\"tel:\"]:hover, [href^=\"tel:\"]:focus-visible) {\n background-image: var(--_dso-di-background-image, url(\"./di.svg#call-zwart\"));\n}\nlabel.survey-rating-4::before a:is([href^=\"mailto:\"], [href^=\"mailto:\"]:hover, [href^=\"mailto:\"]:focus-visible), label.survey-rating-4:has(input:checked) a:is([href^=\"mailto:\"], [href^=\"mailto:\"]:hover, [href^=\"mailto:\"]:focus-visible) {\n background-image: var(--_dso-di-background-image, url(\"./di.svg#email-zwart\"));\n}\nlabel.survey-rating-5::before, label.survey-rating-5:has(input:checked) {\n --link-color: currentColor;\n --link-hover-color: currentColor;\n --link-visited-color: currentColor;\n background-color: #79b929;\n border-color: #ccc;\n color: #191919;\n}\nlabel.survey-rating-5::before a:is(.download, .download:hover, .download:focus-visible), label.survey-rating-5:has(input:checked) a:is(.download, .download:hover, .download:focus-visible) {\n background-image: var(--_dso-di-background-image, url(\"./di.svg#download-zwart\"));\n}\nlabel.survey-rating-5::before a:is(.extern, .extern:hover, .extern:focus-visible), label.survey-rating-5:has(input:checked) a:is(.extern, .extern:hover, .extern:focus-visible) {\n background-image: var(--_dso-di-background-image, url(\"./di.svg#external-link-zwart\"));\n}\nlabel.survey-rating-5::before a:is([href^=\"tel:\"], [href^=\"tel:\"]:hover, [href^=\"tel:\"]:focus-visible), label.survey-rating-5:has(input:checked) a:is([href^=\"tel:\"], [href^=\"tel:\"]:hover, [href^=\"tel:\"]:focus-visible) {\n background-image: var(--_dso-di-background-image, url(\"./di.svg#call-zwart\"));\n}\nlabel.survey-rating-5::before a:is([href^=\"mailto:\"], [href^=\"mailto:\"]:hover, [href^=\"mailto:\"]:focus-visible), label.survey-rating-5:has(input:checked) a:is([href^=\"mailto:\"], [href^=\"mailto:\"]:hover, [href^=\"mailto:\"]:focus-visible) {\n background-image: var(--_dso-di-background-image, url(\"./di.svg#email-zwart\"));\n}\nlabel.survey-rating-6::before, label.survey-rating-6:has(input:checked) {\n --link-color: currentColor;\n --link-hover-color: currentColor;\n --link-visited-color: currentColor;\n background-color: #39870c;\n border-color: #ccc;\n color: #fff;\n}\nlabel.survey-rating-6::before a:is(.download, .download:hover, .download:focus-visible), label.survey-rating-6:has(input:checked) a:is(.download, .download:hover, .download:focus-visible) {\n background-image: var(--_dso-di-background-image, url(\"./di.svg#download-wit\"));\n}\nlabel.survey-rating-6::before a:is(.extern, .extern:hover, .extern:focus-visible), label.survey-rating-6:has(input:checked) a:is(.extern, .extern:hover, .extern:focus-visible) {\n background-image: var(--_dso-di-background-image, url(\"./di.svg#external-link-wit\"));\n}\nlabel.survey-rating-6::before a:is([href^=\"tel:\"], [href^=\"tel:\"]:hover, [href^=\"tel:\"]:focus-visible), label.survey-rating-6:has(input:checked) a:is([href^=\"tel:\"], [href^=\"tel:\"]:hover, [href^=\"tel:\"]:focus-visible) {\n background-image: var(--_dso-di-background-image, url(\"./di.svg#call-wit\"));\n}\nlabel.survey-rating-6::before a:is([href^=\"mailto:\"], [href^=\"mailto:\"]:hover, [href^=\"mailto:\"]:focus-visible), label.survey-rating-6:has(input:checked) a:is([href^=\"mailto:\"], [href^=\"mailto:\"]:hover, [href^=\"mailto:\"]:focus-visible) {\n background-image: var(--_dso-di-background-image, url(\"./di.svg#email-wit\"));\n}\nlabel.survey-rating-7::before, label.survey-rating-7:has(input:checked) {\n --link-color: currentColor;\n --link-hover-color: currentColor;\n --link-visited-color: currentColor;\n background-color: #275937;\n border-color: #ccc;\n color: #fff;\n}\nlabel.survey-rating-7::before a:is(.download, .download:hover, .download:focus-visible), label.survey-rating-7:has(input:checked) a:is(.download, .download:hover, .download:focus-visible) {\n background-image: var(--_dso-di-background-image, url(\"./di.svg#download-wit\"));\n}\nlabel.survey-rating-7::before a:is(.extern, .extern:hover, .extern:focus-visible), label.survey-rating-7:has(input:checked) a:is(.extern, .extern:hover, .extern:focus-visible) {\n background-image: var(--_dso-di-background-image, url(\"./di.svg#external-link-wit\"));\n}\nlabel.survey-rating-7::before a:is([href^=\"tel:\"], [href^=\"tel:\"]:hover, [href^=\"tel:\"]:focus-visible), label.survey-rating-7:has(input:checked) a:is([href^=\"tel:\"], [href^=\"tel:\"]:hover, [href^=\"tel:\"]:focus-visible) {\n background-image: var(--_dso-di-background-image, url(\"./di.svg#call-wit\"));\n}\nlabel.survey-rating-7::before a:is([href^=\"mailto:\"], [href^=\"mailto:\"]:hover, [href^=\"mailto:\"]:focus-visible), label.survey-rating-7:has(input:checked) a:is([href^=\"mailto:\"], [href^=\"mailto:\"]:hover, [href^=\"mailto:\"]:focus-visible) {\n background-image: var(--_dso-di-background-image, url(\"./di.svg#email-wit\"));\n}\n\nbutton {\n -webkit-appearance: button;\n color: inherit;\n cursor: pointer;\n font: inherit;\n font-family: inherit;\n font-size: inherit;\n line-height: inherit;\n margin: 0;\n overflow: visible;\n text-transform: none;\n margin-block-start: 16px;\n}\nbutton[disabled] {\n cursor: default;\n}\nbutton::-moz-focus-inner {\n border: 0;\n padding: 0;\n}\nbutton.dso-secondary {\n display: inline-block;\n font-size: 1em;\n font-weight: 500;\n margin-block-end: 0;\n text-decoration: none;\n touch-action: manipulation;\n text-align: start;\n user-select: none;\n vertical-align: middle;\n}\nbutton.dso-secondary:focus, button.dso-secondary:focus-visible {\n outline-offset: 2px;\n}\nbutton.dso-secondary:active {\n outline: 0;\n}\nbutton.dso-secondary.extern::after, button.dso-secondary.download::after {\n content: \"\";\n display: inline-block;\n margin-inline-start: 8px;\n}\nbutton.dso-secondary {\n background-color: #fff;\n border-color: #39870c;\n color: #39870c;\n}\nbutton.dso-secondary {\n border-width: 1px;\n border-style: solid;\n border-radius: 4px;\n line-height: 1.5;\n min-inline-size: 56px;\n padding-block: 11px;\n padding-inline: 15px;\n}\nbutton.dso-secondary:hover {\n background-color: #d7e7ce;\n border-color: #39870c;\n color: #39870c;\n}\nbutton.dso-secondary:active {\n background-color: #39870c;\n border-color: #39870c;\n color: #fff;\n}\nbutton.dso-secondary[disabled], button.dso-secondary[disabled]:hover {\n background-color: #fff;\n border-color: #afcf9d;\n color: #afcf9d;\n}\nbutton.dso-secondary.dso-small {\n line-height: 1rem;\n}\nbutton.dso-secondary.dso-small dso-icon,\nbutton.dso-secondary.dso-small svg.di, button.dso-secondary.dso-small.extern::after, button.dso-secondary.dso-small.download::after, button.dso-secondary.dso-small.dso-spinner::before {\n margin-block-end: -4px;\n margin-block-start: -4px;\n}\nbutton.dso-secondary.dso-small.dso-spinner-left::before {\n block-size: 16px;\n inline-size: 16px;\n}\nbutton.dso-secondary.dso-small.dso-spinner-right::after {\n block-size: 16px;\n inline-size: 16px;\n}\nbutton.dso-secondary dso-icon,\nbutton.dso-secondary svg.di {\n margin-inline-start: -8px;\n margin-inline-end: 8px;\n}\nbutton.dso-secondary span + dso-icon,\nbutton.dso-secondary span + svg.di {\n margin-inline-start: 8px;\n margin-inline-end: -8px;\n}\nbutton.dso-secondary.dso-spinner-left[disabled], button.dso-secondary.dso-spinner-right[disabled] {\n background-color: #fff;\n border-color: #39870c;\n color: #39870c;\n}\nbutton.dso-secondary.dso-spinner-left::before {\n 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\");\n background-repeat: no-repeat;\n content: \"\";\n display: inline-block;\n block-size: 24px;\n vertical-align: top;\n inline-size: 24px;\n margin-inline-end: 8px;\n}\nbutton.dso-secondary.dso-spinner-left:not([disabled]):hover::before {\n 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: %23fff; 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\");\n background-repeat: no-repeat;\n content: \"\";\n display: inline-block;\n block-size: 24px;\n vertical-align: top;\n inline-size: 24px;\n margin-inline-end: 8px;\n}\nbutton.dso-secondary.dso-spinner-left:not([disabled]).dso-small:hover::before {\n block-size: 16px;\n inline-size: 16px;\n}\nbutton.dso-secondary.dso-spinner-right::after {\n 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\");\n background-repeat: no-repeat;\n content: \"\";\n display: inline-block;\n block-size: 24px;\n vertical-align: top;\n inline-size: 24px;\n margin-inline-start: 8px;\n}\nbutton.dso-secondary.dso-spinner-right:not([disabled]):hover::after {\n 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: %23fff; 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\");\n background-repeat: no-repeat;\n content: \"\";\n display: inline-block;\n block-size: 24px;\n vertical-align: top;\n inline-size: 24px;\n margin-inline-start: 8px;\n}\nbutton.dso-secondary.dso-spinner-right:not([disabled]).dso-small:hover::after {\n block-size: 16px;\n inline-size: 16px;\n}";
|
|
6
|
+
const DsoSurveyRatingStyle0 = surveyRatingCss;
|
|
7
|
+
|
|
8
|
+
const SurveyRating = /*@__PURE__*/ proxyCustomElement(class SurveyRating extends HTMLElement {
|
|
9
|
+
constructor() {
|
|
10
|
+
super();
|
|
11
|
+
this.__registerHost();
|
|
12
|
+
this.__attachShadow();
|
|
13
|
+
this.dsoSubmit = createEvent(this, "dsoSubmit", 7);
|
|
14
|
+
this.dsoClose = createEvent(this, "dsoClose", 7);
|
|
15
|
+
}
|
|
16
|
+
handleForm(e) {
|
|
17
|
+
e.preventDefault();
|
|
18
|
+
this.dsoSubmit.emit({ rating: this.rating, scale: { start: 1, end: 7 }, originalEvent: e });
|
|
19
|
+
}
|
|
20
|
+
handleChange(e) {
|
|
21
|
+
const target = e.target;
|
|
22
|
+
this.rating = Number(target.value);
|
|
23
|
+
}
|
|
24
|
+
render() {
|
|
25
|
+
const ratings = [
|
|
26
|
+
"Heel moeilijk",
|
|
27
|
+
"Moeilijk",
|
|
28
|
+
"Redelijk moeilijk",
|
|
29
|
+
"Neutraal",
|
|
30
|
+
"Redelijk makkelijk",
|
|
31
|
+
"Makkelijk",
|
|
32
|
+
"Heel makkelijk",
|
|
33
|
+
];
|
|
34
|
+
return (h("dso-panel", { key: 'ee2d66c3664442953dfa287dbb234f1c2b24973d', emphasized: true, onDsoCloseClick: (e) => this.dsoClose.emit({ originalEvent: e }) }, h("h2", { key: '1762bf6ae0ce6c7603bdcf6986e233f71e7a48f1', slot: "heading" }, "Help ons met een onderzoek"), h("strong", { key: 'b0a318ab699be1e36b6044b115becc6682bd0bb3' }, "Hoe moeilijk of makkelijk was deze taak om uit te voeren"), h("form", { key: '3d66888af1d2d535f4723346029f9edbc03102a3', onSubmit: (e) => this.handleForm(e) }, h("div", { key: '66ed1a08b68aaa791ba1772bf2cf81f305745829', class: "visual-rating-labels", "aria-hidden": "true" }, h("span", { key: 'a0edb09da125715b09186138db492a516ecbe6ea' }, "Heel moeilijk"), h("span", { key: 'e0d3b6c28a88a4edeca0689cb5b8c62bf074ac48' }, "Heel makkelijk")), h("div", { key: '2730d1b4941f078c506bbda76af4843157abc22c', role: "radiogroup" }, ratings.map((rating, index) => {
|
|
35
|
+
const ratingNumber = index + 1;
|
|
36
|
+
return (h(Fragment, null, h("label", { class: `survey-rating-${ratingNumber}` }, ratingNumber, h("span", { class: "sr-only" }, rating), h("input", { type: "radio", name: "rating", value: ratingNumber, checked: ratingNumber === this.rating, onChange: (e) => this.handleChange(e) }))));
|
|
37
|
+
})), h("button", { key: '4b5a9454231d24e64cc4e09385b2161262982de7', type: "submit", class: "dso-secondary" }, h("span", { key: '6d6e9f53abec5e1522e5a8b04eea8793c354f101' }, "Antwoord verzenden")))));
|
|
38
|
+
}
|
|
39
|
+
static get style() { return DsoSurveyRatingStyle0; }
|
|
40
|
+
}, [1, "dso-survey-rating"]);
|
|
41
|
+
function defineCustomElement$1() {
|
|
42
|
+
if (typeof customElements === "undefined") {
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
const components = ["dso-survey-rating", "dso-icon", "dso-panel"];
|
|
46
|
+
components.forEach(tagName => { switch (tagName) {
|
|
47
|
+
case "dso-survey-rating":
|
|
48
|
+
if (!customElements.get(tagName)) {
|
|
49
|
+
customElements.define(tagName, SurveyRating);
|
|
50
|
+
}
|
|
51
|
+
break;
|
|
52
|
+
case "dso-icon":
|
|
53
|
+
if (!customElements.get(tagName)) {
|
|
54
|
+
defineCustomElement$3();
|
|
55
|
+
}
|
|
56
|
+
break;
|
|
57
|
+
case "dso-panel":
|
|
58
|
+
if (!customElements.get(tagName)) {
|
|
59
|
+
defineCustomElement$2();
|
|
60
|
+
}
|
|
61
|
+
break;
|
|
62
|
+
} });
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
const DsoSurveyRating = SurveyRating;
|
|
66
|
+
const defineCustomElement = defineCustomElement$1;
|
|
67
|
+
|
|
68
|
+
export { DsoSurveyRating, defineCustomElement };
|
|
69
|
+
|
|
70
|
+
//# sourceMappingURL=dso-survey-rating.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"dso-survey-rating.js","mappings":";;;;AAAA,MAAM,eAAe,GAAG,2qlBAA2qlB,CAAC;AACpslB,8BAAe,eAAe;;MCOjB,YAAY;;;;;;;;IAef,UAAU,CAAC,CAAQ;QACzB,CAAC,CAAC,cAAc,EAAE,CAAC;QACnB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE,aAAa,EAAE,CAAC,EAAE,CAAC,CAAC;KAC7F;IAEO,YAAY,CAAC,CAAQ;QAC3B,MAAM,MAAM,GAAG,CAAC,CAAC,MAA0B,CAAC;QAC5C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;KACpC;IAED,MAAM;QACJ,MAAM,OAAO,GAAG;YACd,eAAe;YACf,UAAU;YACV,mBAAmB;YACnB,UAAU;YACV,oBAAoB;YACpB,WAAW;YACX,gBAAgB;SACjB,CAAC;QAEF,QACE,kEAAW,UAAU,QAAC,eAAe,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,aAAa,EAAE,CAAC,EAAE,CAAC,IACpF,2DAAI,IAAI,EAAC,SAAS,iCAAgC,EAClD,4HAAyE,EACzE,6DAAM,QAAQ,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,IACvC,4DAAK,KAAK,EAAC,sBAAsB,iBAAa,MAAM,IAClD,+EAA0B,EAC1B,gFAA2B,CACvB,EACN,4DAAK,IAAI,EAAC,YAAY,IACnB,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,KAAK;YACzB,MAAM,YAAY,GAAG,KAAK,GAAG,CAAC,CAAC;YAE/B,QACE,kBACE,aAAO,KAAK,EAAE,iBAAiB,YAAY,EAAE,IAC1C,YAAY,EACb,YAAM,KAAK,EAAC,SAAS,IAAE,MAAM,CAAQ,EACrC,aACE,IAAI,EAAC,OAAO,EACZ,IAAI,EAAC,QAAQ,EACb,KAAK,EAAE,YAAY,EACnB,OAAO,EAAE,YAAY,KAAK,IAAI,CAAC,MAAM,EACrC,QAAQ,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,GACrC,CACI,CACP,EACH;SACH,CAAC,CACE,EACN,+DAAQ,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAC,eAAe,IACzC,oFAA+B,CACxB,CACJ,CACG,EACZ;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/survey-rating/survey-rating.scss?tag=dso-survey-rating&encapsulation=shadow","src/components/survey-rating/survey-rating.tsx"],"sourcesContent":["@use \"sass:list\";\r\n@use \"sass:map\";\r\n\r\n@use \"~dso-toolkit/src/components/button\";\r\n@use \"~dso-toolkit/src/global/mixins/set-colors.mixin\" as set-colors;\r\n@use \"~dso-toolkit/src/utilities\";\r\n@use \"~dso-toolkit/src/variables/media-query-breakpoints\";\r\n@use \"~dso-toolkit/src/variables/units\";\r\n\r\n@use \"survey-rating.variables\" as survey-rating-variables;\r\n\r\n:host {\r\n display: block;\r\n position: absolute;\r\n inset-block-end: units.$u2;\r\n inset-inline-start: units.$u2;\r\n inline-size: survey-rating-variables.$survey-rating-inline-size;\r\n box-shadow: -3px 3px 6px 0 rgba(0, 0, 0, 0.5);\r\n border-radius: survey-rating-variables.$survey-rating-border-radius;\r\n\r\n @media screen and (max-width: media-query-breakpoints.$screen-xs-min) {\r\n inline-size: survey-rating-variables.$survey-rating-xs-min-inline-size;\r\n inset-block-end: 0;\r\n inset-inline-start: 0;\r\n\r\n --panel-heading-padding-inline-start: #{units.$u1};\r\n --panel-body-padding-inline: #{units.$u1};\r\n }\r\n}\r\n\r\n@include utilities.box-sizing();\r\n\r\n.sr-only {\r\n @include utilities.sr-only();\r\n}\r\n\r\n.visual-rating-labels {\r\n display: flex;\r\n justify-content: space-between;\r\n margin-block: units.$u1;\r\n}\r\n\r\ninput[type=\"radio\"] {\r\n appearance: none;\r\n cursor: pointer;\r\n position: absolute;\r\n margin-inline: 0;\r\n margin-block: 0;\r\n inset-block: units.$u1 0;\r\n inset-inline: 0;\r\n z-index: 1;\r\n}\r\n\r\nlabel {\r\n position: relative;\r\n display: inline-flex;\r\n align-items: center;\r\n justify-content: center;\r\n inline-size: survey-rating-variables.$survey-rating-input-label-size;\r\n block-size: survey-rating-variables.$survey-rating-input-label-size;\r\n border: 1px solid survey-rating-variables.$survey-rating-border-color;\r\n border-inline-end-width: 0;\r\n padding-block-start: units.$u1;\r\n\r\n @media screen and (max-width: media-query-breakpoints.$screen-xs-min) {\r\n inline-size: survey-rating-variables.$survey-rating-rating-label-xs-min-size;\r\n block-size: survey-rating-variables.$survey-rating-rating-label-xs-min-size;\r\n }\r\n\r\n &:hover {\r\n background-color: survey-rating-variables.$survey-rating-color-hover;\r\n }\r\n\r\n &:active {\r\n background-color: survey-rating-variables.$survey-rating-color-active;\r\n }\r\n\r\n &:first-of-type {\r\n border-radius: survey-rating-variables.$survey-rating-border-radius 0 0\r\n survey-rating-variables.$survey-rating-border-radius;\r\n\r\n &::before {\r\n border-radius: (survey-rating-variables.$survey-rating-border-radius - 1) 0 0;\r\n }\r\n }\r\n\r\n &:last-of-type {\r\n border-inline-end-width: 1px;\r\n border-radius: 0 survey-rating-variables.$survey-rating-border-radius\r\n survey-rating-variables.$survey-rating-border-radius 0;\r\n\r\n &::before {\r\n border-radius: 0 (survey-rating-variables.$survey-rating-border-radius - 1) 0 0;\r\n }\r\n }\r\n\r\n &::before {\r\n content: \"\";\r\n display: block;\r\n position: absolute;\r\n inset-block-start: 0;\r\n block-size: units.$u1;\r\n inline-size: 100%;\r\n border-block-end: 1px solid survey-rating-variables.$survey-rating-border-color;\r\n }\r\n\r\n &:has(input:checked) {\r\n font-weight: bold;\r\n }\r\n\r\n @each $survey-rating in survey-rating-variables.$survey-ratings {\r\n $i: list.index(survey-rating-variables.$survey-ratings, $survey-rating);\r\n $color: map.get($survey-rating, color);\r\n\r\n &.survey-rating-#{$i} {\r\n &::before,\r\n &:has(input:checked) {\r\n @include set-colors.apply($color, survey-rating-variables.$survey-rating-border-color);\r\n }\r\n }\r\n }\r\n}\r\n\r\nbutton {\r\n @include button.element();\r\n\r\n &.dso-secondary {\r\n @include button.secondary($base-styling: true);\r\n }\r\n\r\n margin-block-start: units.$u2;\r\n}\r\n","import { Component, ComponentInterface, Event, EventEmitter, Fragment, h } from \"@stencil/core\";\r\nimport { SurveyRatingCloseEvent, SurveyRatingSubmitEvent } from \"./survey-rating.interfaces\";\r\n\r\n@Component({\r\n tag: \"dso-survey-rating\",\r\n styleUrl: \"survey-rating.scss\",\r\n shadow: true,\r\n})\r\nexport class SurveyRating implements ComponentInterface {\r\n private rating: number | undefined;\r\n\r\n /**\r\n * Emitted when user submits the Survey Rating.\r\n */\r\n @Event()\r\n dsoSubmit!: EventEmitter<SurveyRatingSubmitEvent>;\r\n\r\n /**\r\n * Emitted when the user wants to close the Survey Rating.\r\n */\r\n @Event()\r\n dsoClose!: EventEmitter<SurveyRatingCloseEvent>;\r\n\r\n private handleForm(e: Event): void {\r\n e.preventDefault();\r\n this.dsoSubmit.emit({ rating: this.rating, scale: { start: 1, end: 7 }, originalEvent: e });\r\n }\r\n\r\n private handleChange(e: Event): void {\r\n const target = e.target as HTMLInputElement;\r\n this.rating = Number(target.value);\r\n }\r\n\r\n render() {\r\n const ratings = [\r\n \"Heel moeilijk\",\r\n \"Moeilijk\",\r\n \"Redelijk moeilijk\",\r\n \"Neutraal\",\r\n \"Redelijk makkelijk\",\r\n \"Makkelijk\",\r\n \"Heel makkelijk\",\r\n ];\r\n\r\n return (\r\n <dso-panel emphasized onDsoCloseClick={(e) => this.dsoClose.emit({ originalEvent: e })}>\r\n <h2 slot=\"heading\">Help ons met een onderzoek</h2>\r\n <strong>Hoe moeilijk of makkelijk was deze taak om uit te voeren</strong>\r\n <form onSubmit={(e) => this.handleForm(e)}>\r\n <div class=\"visual-rating-labels\" aria-hidden=\"true\">\r\n <span>Heel moeilijk</span>\r\n <span>Heel makkelijk</span>\r\n </div>\r\n <div role=\"radiogroup\">\r\n {ratings.map((rating, index) => {\r\n const ratingNumber = index + 1;\r\n\r\n return (\r\n <>\r\n <label class={`survey-rating-${ratingNumber}`}>\r\n {ratingNumber}\r\n <span class=\"sr-only\">{rating}</span>\r\n <input\r\n type=\"radio\"\r\n name=\"rating\"\r\n value={ratingNumber}\r\n checked={ratingNumber === this.rating}\r\n onChange={(e) => this.handleChange(e)}\r\n />\r\n </label>\r\n </>\r\n );\r\n })}\r\n </div>\r\n <button type=\"submit\" class=\"dso-secondary\">\r\n <span>Antwoord verzenden</span>\r\n </button>\r\n </form>\r\n </dso-panel>\r\n );\r\n }\r\n}\r\n"],"version":3}
|
|
@@ -67,7 +67,7 @@ const Tabs = /*@__PURE__*/ proxyCustomElement(class Tabs extends HTMLElement {
|
|
|
67
67
|
(_a = this.mutationObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
68
68
|
}
|
|
69
69
|
render() {
|
|
70
|
-
return (h(Host, { key: '
|
|
70
|
+
return (h(Host, { key: 'eda4f3cabd4f4a373ebf5e5b2fce9c5a336f4680' }, h("div", { key: '445a0b6a745a1f45eca44ca59def6f4557904748', class: "tabs", role: "tablist", onKeyUp: this.keyUpHandler }, h("slot", { key: 'd344d2c68cc0bd6d0abbea591a7ffa22b17dbdf7' })), h("div", { key: 'c17a1774b3cf81c30e07c0c8446f05d8a6e86b95', role: "tabpanel", tabindex: "0" }, h("slot", { key: 'c32d940c2e5fe01b67919d7253bb5d2666146f6f', name: "panel" }))));
|
|
71
71
|
}
|
|
72
72
|
get host() { return this; }
|
|
73
73
|
static get style() { return DsoTabsStyle0; }
|
|
@@ -198,7 +198,7 @@ const TreeView = /*@__PURE__*/ proxyCustomElement(class TreeView extends HTMLEle
|
|
|
198
198
|
}
|
|
199
199
|
render() {
|
|
200
200
|
var _a;
|
|
201
|
-
return (h("div", { key: '
|
|
201
|
+
return (h("div", { key: 'f6f6832d0613dcb1eb30f1170cc848e5dd5a47f3', id: "tree", class: "dso-tree", onKeyDown: (e) => this.keyDownListener(e), ref: (element) => (this.tree = element) }, h("ul", { key: 'aaea2cfc733ff714e907758e41ea31fa2f460b68', role: "tree", "aria-label": "Objectenboom" }, (_a = this.collection) === null || _a === void 0 ? void 0 : _a.map((item, index) => (h(DsoTreeItem, { owner: this, ancestors: [], item: item, index: index, level: 1, setSize: this.collection.length }))))));
|
|
202
202
|
}
|
|
203
203
|
static get style() { return DsoTreeViewStyle0; }
|
|
204
204
|
}, [1, "dso-tree-view", {
|
|
@@ -301,8 +301,8 @@ const ViewerGrid = /*@__PURE__*/ proxyCustomElement(class ViewerGrid extends HTM
|
|
|
301
301
|
}
|
|
302
302
|
render() {
|
|
303
303
|
const tabLabels = this.mode === "vdk" ? viewerGridVdkTabs : viewerGridVrkTabs;
|
|
304
|
-
return (h(Fragment, null, this.tabView && (h("nav", { key: '
|
|
305
|
-
(this.tabView && ((this.activeTab === "main" && this.mode === "vrk") || this.activeTab === "search"))) && (h(Filterpanel, { key: '
|
|
304
|
+
return (h(Fragment, null, this.tabView && (h("nav", { key: 'd8a89e6fd85a9ec4adea0b52670c1cba714350ef', class: "dso-navbar" }, h("ul", { key: '34b3436df21fd14c6403b33b0b728415c7ee2c3f', class: "dso-nav dso-nav-sub" }, tabLabels.map((tab) => (h("li", { key: tab, class: clsx({ "dso-active": this.activeTab === tab }) }, h("button", { type: "button", class: "dso-tertiary", onClick: () => this.switchActiveTab(tab) }, viewerGridTabLabelMap[tab]))))))), (!this.tabView || (this.tabView && (this.activeTab === "main" || this.activeTab === "search"))) && (h(MainPanel, { key: 'a5166e11ec537da288535ef1f78027b6942288bc', mode: this.mode, tabView: this.tabView, mainSize: this.mainSize, documentPanelOpen: this.documentPanelOpen, mainPanelExpanded: this.mainPanelExpanded, mainPanelHidden: this.mainPanelHidden, shrinkMain: this.emitShrinkMain, expandMain: this.emitExpandMain, toggleMainPanel: this.toggleMainPanel, dsoMainSizeChangeAnimationEnd: this.dsoMainSizeChangeAnimationEnd })), (!this.tabView ||
|
|
305
|
+
(this.tabView && ((this.activeTab === "main" && this.mode === "vrk") || this.activeTab === "search"))) && (h(Filterpanel, { key: '994efb6648cd215a4ff8e0fe7fffe16b65a40775', title: this.filterpanelTitle, mode: this.mode, ref: (element) => (this.filterpanel = element), onApply: this.handleFilterpanelApply, onCancel: this.handleFilterpanelCancel, dsoCloseFilterpanel: (e) => this.dsoCloseFilterpanel.emit({ originalEvent: e }) })), (!this.tabView || (this.tabView && this.activeTab === "map")) && (h("div", { key: 'b021cfb6be8c3a16453eb9927f6dac93736b0d2b', class: "map", ref: (element) => (this.mapElement = element) }, h("slot", { key: '85a6dbcd00d82a8c6eb78e55755bae26aed76076', name: "map" }))), ((!this.tabView && this.documentPanelOpen) || (this.tabView && this.activeTab === "document")) && (h(DocumentPanel, { key: '163277775c959cf0f83ed6bf8bd79ff2a81d3806', tabView: this.tabView, panelSize: this.documentPanelSize, shrinkDocumentPanel: this.shrinkDocumentPanel, expandDocumentPanel: this.expandDocumentPanel, dsoDocumentPanelSizeChangeAnimationEnd: this.dsoDocumentPanelSizeChangeAnimationEnd })), h(Overlay, { key: '2577736644258d037e41fef06ec19be4d9db92fa', ref: (element) => (this.overlay = element), dsoCloseOverlay: (e) => this.dsoCloseOverlay.emit({ originalEvent: e }) })));
|
|
306
306
|
}
|
|
307
307
|
get host() { return this; }
|
|
308
308
|
static get watchers() { return {
|
|
@@ -1818,7 +1818,7 @@ const DocumentComponentDemo = /*@__PURE__*/ proxyCustomElement(class DocumentCom
|
|
|
1818
1818
|
render() {
|
|
1819
1819
|
var _a, _b;
|
|
1820
1820
|
const { DocumentComponent, MenuButton } = this;
|
|
1821
|
-
return (h("dso-responsive-element", { key: '
|
|
1821
|
+
return (h("dso-responsive-element", { key: '0bdcbedac77e5fff00d9be2e0b2e725edf2ec07f', class: "dso-document-components" }, h("div", { key: 'b9068348ddfc4c5dd46d4b65eeb2a0bb28a02d8b', class: "dso-navbar" }, h("ul", { key: 'e57f4fbd2da501279edd93b0e29fa210319ded13', class: "dso-nav dso-nav-sub" }, (_b = (_a = this.getEmbeddedDocumentComponents(this.response)) === null || _a === void 0 ? void 0 : _a.documentComponents) === null || _b === void 0 ? void 0 : _b.map((d) => (h("li", { class: this.document === d ? "dso-active" : undefined }, h(MenuButton, { documentComponent: d })))))), this.document && h(DocumentComponent, { key: '64016b330af123112c59778dcd783c2a22f3a71f', path: [this.document] })));
|
|
1822
1822
|
}
|
|
1823
1823
|
static get watchers() { return {
|
|
1824
1824
|
"jsonFile": ["jsonFileWatcher"],
|
package/dist/components/icon.js
CHANGED
|
@@ -690,7 +690,7 @@ const Icon = /*@__PURE__*/ proxyCustomElement(class Icon extends HTMLElement {
|
|
|
690
690
|
if (!icon) {
|
|
691
691
|
throw new TypeError(`Unknown svg: ${this.icon}`);
|
|
692
692
|
}
|
|
693
|
-
return h("span", { key: '
|
|
693
|
+
return h("span", { key: '5805a81ad34f4f4f8adb5eaafc0019924c4b4efa', class: "icon-container", innerHTML: icon.svg });
|
|
694
694
|
}
|
|
695
695
|
}
|
|
696
696
|
static get style() { return DsoIconStyle0; }
|
|
@@ -107,6 +107,8 @@ export { Skiplink as DsoSkiplink } from '../types/components/skiplink/skiplink';
|
|
|
107
107
|
export { defineCustomElement as defineCustomElementDsoSkiplink } from './dso-skiplink';
|
|
108
108
|
export { SlideToggle as DsoSlideToggle } from '../types/components/slide-toggle/slide-toggle';
|
|
109
109
|
export { defineCustomElement as defineCustomElementDsoSlideToggle } from './dso-slide-toggle';
|
|
110
|
+
export { SurveyRating as DsoSurveyRating } from '../types/components/survey-rating/survey-rating';
|
|
111
|
+
export { defineCustomElement as defineCustomElementDsoSurveyRating } from './dso-survey-rating';
|
|
110
112
|
export { Tab as DsoTab } from '../types/components/tabs/components/tab';
|
|
111
113
|
export { defineCustomElement as defineCustomElementDsoTab } from './dso-tab';
|
|
112
114
|
export { Table as DsoTable } from '../types/components/table/table';
|
package/dist/components/index.js
CHANGED
|
@@ -53,6 +53,7 @@ export { DsoScrollable, defineCustomElement as defineCustomElementDsoScrollable
|
|
|
53
53
|
export { DsoSelectable, defineCustomElement as defineCustomElementDsoSelectable } from './dso-selectable.js';
|
|
54
54
|
export { DsoSkiplink, defineCustomElement as defineCustomElementDsoSkiplink } from './dso-skiplink.js';
|
|
55
55
|
export { DsoSlideToggle, defineCustomElement as defineCustomElementDsoSlideToggle } from './dso-slide-toggle.js';
|
|
56
|
+
export { DsoSurveyRating, defineCustomElement as defineCustomElementDsoSurveyRating } from './dso-survey-rating.js';
|
|
56
57
|
export { DsoTab, defineCustomElement as defineCustomElementDsoTab } from './dso-tab.js';
|
|
57
58
|
export { DsoTable, defineCustomElement as defineCustomElementDsoTable } from './dso-table.js';
|
|
58
59
|
export { DsoTabs, defineCustomElement as defineCustomElementDsoTabs } from './dso-tabs.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"index.js","mappings":"
|
|
1
|
+
{"file":"index.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
|
|
@@ -29,7 +29,7 @@ const InfoButton = /*@__PURE__*/ proxyCustomElement(class InfoButton extends HTM
|
|
|
29
29
|
this.dsoToggle.emit({ originalEvent: e, active: this.active });
|
|
30
30
|
}
|
|
31
31
|
render() {
|
|
32
|
-
return (h(Host, { key: '
|
|
32
|
+
return (h(Host, { key: 'e120f58b26565a2606afc191c43d3cd9392d7c94', onMouseenter: () => (this.hover = true), onMouseleave: () => (this.hover = false) }, h("button", { key: '452ef5c21ea617508d47f5be9a64bb7dc06dd0ef', type: "button", class: clsx({ "dso-open": !!this.active, "dso-info-secondary": !!this.secondary }), "aria-expanded": typeof this.active === "boolean" ? this.active.toString() : undefined, onClick: (e) => this.handleToggle(e), ref: (element) => (this.button = element) }, h("dso-icon", { key: '8311c98a00ed1caa8ff19d771179aa01b7289f6c', icon: this.active || this.hover ? "info-active" : "info" }), h("span", { key: '715319494ea7f899fecea285a8bb3b22c84bc61e', class: "sr-only" }, this.label))));
|
|
33
33
|
}
|
|
34
34
|
static get style() { return DsoInfoButtonStyle0; }
|
|
35
35
|
}, [1, "dso-info-button", {
|
package/dist/components/info.js
CHANGED
|
@@ -12,7 +12,7 @@ const Info = /*@__PURE__*/ proxyCustomElement(class Info extends HTMLElement {
|
|
|
12
12
|
this.dsoClose = createEvent(this, "dsoClose", 7);
|
|
13
13
|
}
|
|
14
14
|
render() {
|
|
15
|
-
return (h(Fragment, { key: '
|
|
15
|
+
return (h(Fragment, { key: 'a9db2b8522cbfa55e8629b58a9757d58931ecbca' }, h("slot", { key: '2059c0fb8926f48a4b1f36a2210d5c8e48861b1a' }), !this.fixed && (h("button", { key: '7430b1282b3a04b27185cb0f65d77ba82f28045d', type: "button", onClick: (e) => this.dsoClose.emit(e) }, h("dso-icon", { key: 'dcc0f11655e09ce94b96299f1e4ef7a9f0e72f8b', icon: "times" }), h("span", { key: '9f127628f9741a7036a9cc1b23bfe1b585ed7b29', class: "sr-only" }, "Sluiten")))));
|
|
16
16
|
}
|
|
17
17
|
static get style() { return DsoInfoStyle0; }
|
|
18
18
|
}, [1, "dso-info", {
|
package/dist/components/label.js
CHANGED
|
@@ -104,13 +104,13 @@ const Label = /*@__PURE__*/ proxyCustomElement(class Label extends HTMLElement {
|
|
|
104
104
|
this.isTruncated = false;
|
|
105
105
|
}
|
|
106
106
|
render() {
|
|
107
|
-
return (h(Fragment, { key: '
|
|
107
|
+
return (h(Fragment, { key: '3bf1a2b10d7cdb37d200dc8435872757f730f7f3' }, h("span", { key: '2963be77a7e44f85c07ae9885dd7aaeb4b6a04ae', "aria-describedby": "toggle-anchor", class: clsx("dso-label", {
|
|
108
108
|
[`dso-label-${this.status}`]: this.status,
|
|
109
109
|
"dso-compact": this.compact && !this.removable,
|
|
110
110
|
"dso-hover": this.removeHover || this.removeFocus,
|
|
111
|
-
}) }, h("slot", { key: '
|
|
111
|
+
}) }, h("slot", { key: '55b447e4ea124705739d3e65c53b3dcc87b6d8c4', name: "symbol" }), h("span", { key: '48fd3d404c04bcc3c4e69e1ac3e918997959a65c', class: clsx("dso-label-content", {
|
|
112
112
|
"dso-truncate": !!this.truncate,
|
|
113
|
-
}), ref: (element) => (this.labelContent = element), tabindex: this.truncate && this.isTruncated ? 0 : undefined, onMouseEnter: () => (this.textHover = true), onMouseLeave: () => (this.textHover = false), onFocus: () => (this.textFocus = true), onBlur: () => (this.textFocus = false) }, h("slot", { key: '
|
|
113
|
+
}), ref: (element) => (this.labelContent = element), tabindex: this.truncate && this.isTruncated ? 0 : undefined, onMouseEnter: () => (this.textHover = true), onMouseLeave: () => (this.textHover = false), onFocus: () => (this.textFocus = true), onBlur: () => (this.textFocus = false) }, h("slot", { key: 'ba3e40904693080e4558c9d0d982b8146092ecb2' })), this.removable && (h("button", { key: '6aa571c0e12e356951d1970e8f9afa4189c36fd0', type: "button", onClick: (e) => this.dsoRemoveClick.emit(e), onMouseEnter: () => (this.removeHover = true), onMouseLeave: () => (this.removeHover = false), onFocus: () => (this.removeFocus = true), onBlur: () => (this.removeFocus = false) }, h("span", { key: '4c06e38f4bad11a7208d924f715b0d7b4e3b5382', class: "sr-only" }, "Verwijder: ", this.labelText), h("dso-icon", { key: 'b549e2c517416cd705778addcc5594a6b2bd8b18', icon: "times" })))), this.isTruncated && (h("dso-tooltip", { key: '6782bb54d4a720f90433ded22edc81badfc6acfb', stateless: true, id: "toggle-anchor", active: this.textHover || this.textFocus, position: "top", strategy: "absolute" }, this.labelText))));
|
|
114
114
|
}
|
|
115
115
|
get host() { return this; }
|
|
116
116
|
static get watchers() { return {
|
|
@@ -752,9 +752,9 @@ class OzonContentNootNode {
|
|
|
752
752
|
}
|
|
753
753
|
}
|
|
754
754
|
|
|
755
|
-
class
|
|
755
|
+
class OzonContentKopNode {
|
|
756
756
|
constructor() {
|
|
757
|
-
this.name = "Opschrift";
|
|
757
|
+
this.name = ["Opschrift", "Label", "Nummer", "Kop"];
|
|
758
758
|
}
|
|
759
759
|
render(node, { mapNodeToJsx }) {
|
|
760
760
|
let content = mapNodeToJsx(node.childNodes);
|
|
@@ -934,7 +934,7 @@ class Mapper {
|
|
|
934
934
|
new OzonContentTextNode(),
|
|
935
935
|
new OzonContentDocumentNode(),
|
|
936
936
|
new OzonContentInhoudNode(),
|
|
937
|
-
new
|
|
937
|
+
new OzonContentKopNode(),
|
|
938
938
|
new OzonContentIntRefNode(),
|
|
939
939
|
new OzonContentExtRefNode(),
|
|
940
940
|
new OzonContentAlNode(),
|
|
@@ -972,10 +972,18 @@ class Mapper {
|
|
|
972
972
|
mapNodeToJsx(node, context, path) {
|
|
973
973
|
var _a;
|
|
974
974
|
if (node instanceof NodeList) {
|
|
975
|
-
return h(Fragment, null, Array.from(node).map((n) =>
|
|
975
|
+
return (h(Fragment, null, Array.from(node).map((n, index) => {
|
|
976
|
+
return (h(Fragment, null,
|
|
977
|
+
context.addSpaceBeforeNode && index > 0 && " ",
|
|
978
|
+
this.mapNodeToJsx(n, context, path)));
|
|
979
|
+
})));
|
|
976
980
|
}
|
|
977
981
|
if (Array.isArray(node)) {
|
|
978
|
-
return h(Fragment, null, node.map((n) =>
|
|
982
|
+
return (h(Fragment, null, node.map((n, index) => {
|
|
983
|
+
return (h(Fragment, null,
|
|
984
|
+
context.addSpaceBeforeNode && index > 0 && " ",
|
|
985
|
+
this.mapNodeToJsx(n, context, path)));
|
|
986
|
+
})));
|
|
979
987
|
}
|
|
980
988
|
const nodeName = getNodeName(node);
|
|
981
989
|
const mapper = this.findMapper(nodeName);
|
|
@@ -1040,6 +1048,10 @@ const OzonContent = /*@__PURE__*/ proxyCustomElement(class OzonContent extends H
|
|
|
1040
1048
|
* Setting this property creates dso-ozon-content as inline element instead of a block element.
|
|
1041
1049
|
*/
|
|
1042
1050
|
this.inline = false;
|
|
1051
|
+
/**
|
|
1052
|
+
* Adds a non breaking space to the node element.
|
|
1053
|
+
*/
|
|
1054
|
+
this.addSpaceBeforeNode = false;
|
|
1043
1055
|
this.state = {};
|
|
1044
1056
|
this.handleMarkItemHighlight = (text, elementRef) => {
|
|
1045
1057
|
this.dsoOzonContentMarkItemHighlight.emit({ text, elementRef });
|
|
@@ -1051,6 +1063,7 @@ const OzonContent = /*@__PURE__*/ proxyCustomElement(class OzonContent extends H
|
|
|
1051
1063
|
render() {
|
|
1052
1064
|
const context = {
|
|
1053
1065
|
state: this.state,
|
|
1066
|
+
addSpaceBeforeNode: this.addSpaceBeforeNode,
|
|
1054
1067
|
inline: this.inline,
|
|
1055
1068
|
mark: this.mark,
|
|
1056
1069
|
setState: (state) => (this.state = state),
|
|
@@ -1058,7 +1071,7 @@ const OzonContent = /*@__PURE__*/ proxyCustomElement(class OzonContent extends H
|
|
|
1058
1071
|
emitAnchorClick: this.dsoAnchorClick.emit,
|
|
1059
1072
|
};
|
|
1060
1073
|
const transformed = mapper.transform(this.content, context);
|
|
1061
|
-
return h(Fragment, { key: '
|
|
1074
|
+
return h(Fragment, { key: 'fa2f5b571b572007dace7776e56a2ce800ddc3b6' }, transformed);
|
|
1062
1075
|
}
|
|
1063
1076
|
static get watchers() { return {
|
|
1064
1077
|
"content": ["contentWatcher"]
|
|
@@ -1067,6 +1080,7 @@ const OzonContent = /*@__PURE__*/ proxyCustomElement(class OzonContent extends H
|
|
|
1067
1080
|
}, [1, "dso-ozon-content", {
|
|
1068
1081
|
"content": [1],
|
|
1069
1082
|
"inline": [516],
|
|
1083
|
+
"addSpaceBeforeNode": [516, "add-space-before-node"],
|
|
1070
1084
|
"mark": [16],
|
|
1071
1085
|
"state": [32]
|
|
1072
1086
|
}, undefined, {
|