@dso-toolkit/core 68.2.0 → 68.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{annotation-body-17541223.js → annotation-body-f6a7ba3d.js} +2 -2
- package/dist/cjs/{annotation-body-17541223.js.map → annotation-body-f6a7ba3d.js.map} +1 -1
- package/dist/cjs/{annotation-symbol-slot-0d0e0294.js → annotation-symbol-slot-f6c46cfe.js} +2 -2
- package/dist/cjs/{annotation-symbol-slot-0d0e0294.js.map → annotation-symbol-slot-f6c46cfe.js.map} +1 -1
- package/dist/cjs/dso-accordion-section.cjs.entry.js +1 -1
- package/dist/cjs/dso-accordion.cjs.entry.js +30 -29
- package/dist/cjs/dso-accordion.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-action-list-item.cjs.entry.js +1 -1
- package/dist/cjs/dso-action-list.cjs.entry.js +1 -1
- package/dist/cjs/dso-advanced-select.cjs.entry.js +1 -1
- package/dist/cjs/dso-alert_6.cjs.entry.js +12 -10
- package/dist/cjs/dso-alert_6.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-annotation-activiteit.cjs.entry.js +3 -3
- package/dist/cjs/dso-annotation-gebiedsaanwijzing.cjs.entry.js +3 -3
- package/dist/cjs/dso-annotation-kaart.cjs.entry.js +2 -2
- package/dist/cjs/dso-annotation-locatie_2.cjs.entry.js +4 -4
- package/dist/cjs/dso-annotation-locatie_2.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-annotation-omgevingsnormwaarde.cjs.entry.js +3 -3
- package/dist/cjs/dso-attachments-counter_2.cjs.entry.js +1 -1
- package/dist/cjs/dso-autosuggest.cjs.entry.js +2 -2
- 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-contact-information.cjs.entry.js +1 -1
- package/dist/cjs/dso-date-picker-legacy.cjs.entry.js +1 -1
- package/dist/cjs/dso-date-picker.cjs.entry.js +1 -1
- package/dist/cjs/dso-document-card.cjs.entry.js +1 -1
- package/dist/cjs/dso-dropdown-menu.cjs.entry.js +1 -1
- package/dist/cjs/dso-header.cjs.entry.js +2 -2
- package/dist/cjs/dso-helpcenter-panel.cjs.entry.js +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-info-button.cjs.entry.js +1 -1
- package/dist/cjs/dso-info_2.cjs.entry.js +1 -1
- package/dist/cjs/dso-input-range.cjs.entry.js +1 -1
- package/dist/cjs/dso-label_2.cjs.entry.js +11 -3
- package/dist/cjs/dso-label_2.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-legend-item.cjs.entry.js +1 -1
- package/dist/cjs/dso-list-button.cjs.entry.js +1 -1
- package/dist/cjs/dso-logo.cjs.entry.js +1 -1
- package/dist/cjs/dso-map-base-layers.cjs.entry.js +2 -2
- package/dist/cjs/dso-map-controls.cjs.entry.js +2 -2
- package/dist/cjs/dso-map-overlays.cjs.entry.js +2 -2
- 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-pagination.cjs.entry.js +1 -1
- 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 +2 -2
- package/dist/cjs/dso-project-item.cjs.entry.js +1 -1
- package/dist/cjs/dso-renvooi_2.cjs.entry.js +3 -3
- package/dist/cjs/dso-renvooi_2.cjs.entry.js.map +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-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-tab.cjs.entry.js +1 -1
- package/dist/cjs/dso-tabs.cjs.entry.js +2 -2
- package/dist/cjs/dso-toggletip.cjs.entry.js +2 -2
- package/dist/cjs/dso-toolkit.cjs.js +3 -3
- package/dist/cjs/dso-toolkit.cjs.js.map +1 -1
- package/dist/cjs/dso-tree-view.cjs.entry.js +2 -2
- package/dist/cjs/dso-viewer-grid.cjs.entry.js +3 -3
- package/dist/cjs/dsot-document-component-demo.cjs.entry.js +1 -1
- package/dist/cjs/{i18n-b5f9d73e.js → i18n-f348f39e.js} +40 -24
- package/dist/cjs/i18n-f348f39e.js.map +1 -0
- package/dist/cjs/{index-52cc9a2a.js → index-57504611.js} +268 -243
- package/dist/cjs/index-57504611.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/accordion/accordion.interfaces.js.map +1 -1
- package/dist/collection/components/accordion/accordion.js +34 -40
- package/dist/collection/components/accordion/accordion.js.map +1 -1
- package/dist/collection/components/document-component/document-component.js +1 -1
- package/dist/collection/components/document-component/document-component.js.map +1 -1
- package/dist/collection/components/ozon-content/nodes/ext-ref.node.js +1 -1
- package/dist/collection/components/ozon-content/nodes/ext-ref.node.js.map +1 -1
- package/dist/collection/components/ozon-content/ozon-content.css +0 -11
- package/dist/collection/components/panel/panel.css +7 -2
- package/dist/collection/components/panel/panel.js +26 -1
- package/dist/collection/components/panel/panel.js.map +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 +10 -2
- package/dist/collection/components/tooltip/tooltip.js.map +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 +1 -1
- package/dist/components/document-component.js.map +1 -1
- package/dist/components/dso-accordion.js +33 -35
- package/dist/components/dso-accordion.js.map +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/i18n.js +39 -23
- package/dist/components/i18n.js.map +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/ozon-content.js +3 -5
- package/dist/components/ozon-content.js.map +1 -1
- package/dist/components/panel.js +9 -3
- package/dist/components/panel.js.map +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 +10 -2
- package/dist/components/tooltip.js.map +1 -1
- package/dist/dso-toolkit/dso-toolkit.esm.js +1 -1
- package/dist/dso-toolkit/dso-toolkit.esm.js.map +1 -1
- package/dist/dso-toolkit/{p-0c0f628d.entry.js → p-007802e5.entry.js} +2 -2
- package/dist/dso-toolkit/{p-e6c2e6df.entry.js → p-03e5e9e1.entry.js} +2 -2
- package/dist/dso-toolkit/p-078b7eca.js +2 -0
- package/dist/dso-toolkit/p-078b7eca.js.map +1 -0
- package/dist/dso-toolkit/{p-802bac7e.entry.js → p-10d0c70f.entry.js} +2 -2
- package/dist/dso-toolkit/{p-1db82eab.entry.js → p-135bf595.entry.js} +2 -2
- package/dist/dso-toolkit/p-13b91ce2.js +2 -0
- package/dist/dso-toolkit/{p-51f62e27.entry.js → p-1a3140fc.entry.js} +2 -2
- package/dist/dso-toolkit/p-1a3140fc.entry.js.map +1 -0
- package/dist/dso-toolkit/{p-06e2b0d8.entry.js → p-1aefb8a6.entry.js} +2 -2
- package/dist/dso-toolkit/{p-e803037a.entry.js → p-2a933ac2.entry.js} +2 -2
- package/dist/dso-toolkit/{p-ef783949.entry.js → p-327cbc96.entry.js} +2 -2
- package/dist/dso-toolkit/p-32f26545.entry.js +2 -0
- package/dist/dso-toolkit/p-32f26545.entry.js.map +1 -0
- package/dist/dso-toolkit/{p-bad7ac4d.entry.js → p-35186e39.entry.js} +2 -2
- package/dist/dso-toolkit/{p-24148706.entry.js → p-3be76968.entry.js} +2 -2
- package/dist/dso-toolkit/{p-0eade502.entry.js → p-3e401cf1.entry.js} +2 -2
- package/dist/dso-toolkit/{p-16f98bb4.entry.js → p-46a5a752.entry.js} +2 -2
- package/dist/dso-toolkit/{p-8988519f.entry.js → p-4747018b.entry.js} +2 -2
- package/dist/dso-toolkit/{p-aa0884ab.entry.js → p-4b536d17.entry.js} +2 -2
- package/dist/dso-toolkit/{p-8907e052.entry.js → p-4b70b133.entry.js} +2 -2
- package/dist/dso-toolkit/p-6fe845b2.entry.js +2 -0
- package/dist/dso-toolkit/p-6fe845b2.entry.js.map +1 -0
- package/dist/dso-toolkit/{p-d83e13fa.entry.js → p-7ca364e9.entry.js} +2 -2
- package/dist/dso-toolkit/{p-42a674f5.entry.js → p-7e2c9463.entry.js} +2 -2
- package/dist/dso-toolkit/{p-29a4cdd6.entry.js → p-7e626a87.entry.js} +2 -2
- package/dist/dso-toolkit/p-7fa13a99.entry.js +2 -0
- package/dist/dso-toolkit/p-7fa13a99.entry.js.map +1 -0
- package/dist/dso-toolkit/p-80c945ed.entry.js +2 -0
- package/dist/dso-toolkit/{p-db952528.entry.js.map → p-80c945ed.entry.js.map} +1 -1
- package/dist/dso-toolkit/{p-641a2d92.entry.js → p-8a3e9f50.entry.js} +2 -2
- package/dist/dso-toolkit/{p-f91f8106.entry.js → p-8b5409ad.entry.js} +2 -2
- package/dist/dso-toolkit/{p-3e48118b.entry.js → p-8cc798d5.entry.js} +2 -2
- package/dist/dso-toolkit/{p-d5357c6e.entry.js → p-93dc3680.entry.js} +2 -2
- package/dist/dso-toolkit/{p-4af88598.entry.js → p-98037a08.entry.js} +2 -2
- package/dist/dso-toolkit/{p-278f922e.entry.js → p-9dbebb2e.entry.js} +2 -2
- package/dist/dso-toolkit/{p-d8431a02.entry.js → p-a341b666.entry.js} +2 -2
- package/dist/dso-toolkit/{p-a1fdcf6f.entry.js → p-a52dcbb8.entry.js} +2 -2
- package/dist/dso-toolkit/{p-764ce885.entry.js → p-a6c30fa5.entry.js} +2 -2
- package/dist/dso-toolkit/{p-db7af6e8.entry.js → p-a6df0d43.entry.js} +2 -2
- package/dist/dso-toolkit/{p-db7af6e8.entry.js.map → p-a6df0d43.entry.js.map} +1 -1
- package/dist/dso-toolkit/p-abc59cdf.js +3 -0
- package/dist/dso-toolkit/p-abc59cdf.js.map +1 -0
- package/dist/dso-toolkit/{p-9f5428f5.entry.js → p-ad38ad02.entry.js} +2 -2
- package/dist/dso-toolkit/{p-a030c29d.entry.js → p-b3deb707.entry.js} +2 -2
- package/dist/dso-toolkit/p-b51b2ca6.entry.js +2 -0
- package/dist/dso-toolkit/p-b51b2ca6.entry.js.map +1 -0
- package/dist/dso-toolkit/{p-f2f4324c.entry.js → p-ba49c0e5.entry.js} +2 -2
- package/dist/dso-toolkit/{p-281c77c9.entry.js → p-ba7b4c62.entry.js} +2 -2
- package/dist/dso-toolkit/{p-724241bc.entry.js → p-bdd5651e.entry.js} +2 -2
- package/dist/dso-toolkit/{p-019289a8.entry.js → p-c2abc6c7.entry.js} +2 -2
- package/dist/dso-toolkit/{p-21bdc089.entry.js → p-cc3366a5.entry.js} +2 -2
- package/dist/dso-toolkit/p-d1ed09c3.js +2 -0
- package/dist/dso-toolkit/{p-6b29b8e9.entry.js → p-d8c11809.entry.js} +2 -2
- package/dist/dso-toolkit/{p-6b494b68.entry.js → p-d9cb06fc.entry.js} +2 -2
- package/dist/dso-toolkit/{p-770c5940.entry.js → p-da7f089a.entry.js} +2 -2
- package/dist/dso-toolkit/{p-961b357a.entry.js → p-e19e851b.entry.js} +2 -2
- package/dist/dso-toolkit/p-e2d3d553.entry.js +2 -0
- package/dist/dso-toolkit/{p-45040369.entry.js → p-e8064fba.entry.js} +2 -2
- package/dist/dso-toolkit/{p-a19b9a99.entry.js → p-ee7e35f5.entry.js} +2 -2
- package/dist/dso-toolkit/{p-375dcd83.entry.js → p-f1dc313d.entry.js} +2 -2
- package/dist/dso-toolkit/{p-b2fe38cd.entry.js → p-faa6b9d5.entry.js} +2 -2
- package/dist/dso-toolkit/{p-a70592fa.entry.js → p-fca1f5bd.entry.js} +2 -2
- package/dist/dso-toolkit/{p-85ed6394.entry.js → p-fccb414d.entry.js} +2 -2
- package/dist/dso-toolkit/{p-e9d8509a.entry.js → p-fd989862.entry.js} +2 -2
- package/dist/dso-toolkit/{p-f730ff77.entry.js → p-fee1dd65.entry.js} +2 -2
- package/dist/esm/{annotation-body-90b88291.js → annotation-body-b9f370b0.js} +2 -2
- package/dist/esm/{annotation-body-90b88291.js.map → annotation-body-b9f370b0.js.map} +1 -1
- package/dist/esm/{annotation-symbol-slot-8423ced1.js → annotation-symbol-slot-70466ae5.js} +2 -2
- package/dist/esm/{annotation-symbol-slot-8423ced1.js.map → annotation-symbol-slot-70466ae5.js.map} +1 -1
- package/dist/esm/dso-accordion-section.entry.js +1 -1
- package/dist/esm/dso-accordion.entry.js +30 -29
- package/dist/esm/dso-accordion.entry.js.map +1 -1
- package/dist/esm/dso-action-list-item.entry.js +1 -1
- package/dist/esm/dso-action-list.entry.js +1 -1
- package/dist/esm/dso-advanced-select.entry.js +1 -1
- package/dist/esm/dso-alert_6.entry.js +12 -10
- package/dist/esm/dso-alert_6.entry.js.map +1 -1
- package/dist/esm/dso-annotation-activiteit.entry.js +3 -3
- package/dist/esm/dso-annotation-gebiedsaanwijzing.entry.js +3 -3
- package/dist/esm/dso-annotation-kaart.entry.js +2 -2
- package/dist/esm/dso-annotation-locatie_2.entry.js +4 -4
- package/dist/esm/dso-annotation-locatie_2.entry.js.map +1 -1
- package/dist/esm/dso-annotation-omgevingsnormwaarde.entry.js +3 -3
- package/dist/esm/dso-attachments-counter_2.entry.js +1 -1
- package/dist/esm/dso-autosuggest.entry.js +2 -2
- 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-contact-information.entry.js +1 -1
- package/dist/esm/dso-date-picker-legacy.entry.js +1 -1
- package/dist/esm/dso-date-picker.entry.js +1 -1
- package/dist/esm/dso-document-card.entry.js +1 -1
- package/dist/esm/dso-dropdown-menu.entry.js +1 -1
- package/dist/esm/dso-header.entry.js +2 -2
- package/dist/esm/dso-helpcenter-panel.entry.js +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-info-button.entry.js +1 -1
- package/dist/esm/dso-info_2.entry.js +1 -1
- package/dist/esm/dso-input-range.entry.js +1 -1
- package/dist/esm/dso-label_2.entry.js +11 -3
- package/dist/esm/dso-label_2.entry.js.map +1 -1
- package/dist/esm/dso-legend-item.entry.js +1 -1
- package/dist/esm/dso-list-button.entry.js +1 -1
- package/dist/esm/dso-logo.entry.js +1 -1
- package/dist/esm/dso-map-base-layers.entry.js +2 -2
- package/dist/esm/dso-map-controls.entry.js +2 -2
- package/dist/esm/dso-map-overlays.entry.js +2 -2
- package/dist/esm/dso-mark-bar.entry.js +1 -1
- package/dist/esm/dso-modal.entry.js +2 -2
- package/dist/esm/dso-pagination.entry.js +1 -1
- 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 +2 -2
- package/dist/esm/dso-project-item.entry.js +1 -1
- package/dist/esm/dso-renvooi_2.entry.js +3 -3
- package/dist/esm/dso-renvooi_2.entry.js.map +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-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-tab.entry.js +1 -1
- package/dist/esm/dso-tabs.entry.js +2 -2
- package/dist/esm/dso-toggletip.entry.js +2 -2
- package/dist/esm/dso-toolkit.js +4 -4
- package/dist/esm/dso-toolkit.js.map +1 -1
- package/dist/esm/dso-tree-view.entry.js +2 -2
- package/dist/esm/dso-viewer-grid.entry.js +3 -3
- package/dist/esm/dsot-document-component-demo.entry.js +1 -1
- package/dist/esm/{i18n-001de5be.js → i18n-653506dc.js} +40 -24
- package/dist/esm/i18n-653506dc.js.map +1 -0
- package/dist/esm/{index-b281ec90.js → index-91149367.js} +268 -243
- package/dist/esm/index-91149367.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/accordion/accordion.d.ts +6 -7
- package/dist/types/components/accordion/accordion.interfaces.d.ts +2 -2
- package/dist/types/components/panel/panel.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/tooltip/tooltip.d.ts +2 -1
- package/dist/types/components.d.ts +47 -0
- package/package.json +5 -5
- package/dist/cjs/i18n-b5f9d73e.js.map +0 -1
- package/dist/cjs/index-52cc9a2a.js.map +0 -1
- package/dist/dso-toolkit/p-05569dac.entry.js +0 -2
- package/dist/dso-toolkit/p-12d75d7e.entry.js +0 -2
- package/dist/dso-toolkit/p-12d75d7e.entry.js.map +0 -1
- package/dist/dso-toolkit/p-453e717f.entry.js +0 -2
- package/dist/dso-toolkit/p-453e717f.entry.js.map +0 -1
- package/dist/dso-toolkit/p-4798d219.js +0 -3
- package/dist/dso-toolkit/p-4798d219.js.map +0 -1
- package/dist/dso-toolkit/p-51f62e27.entry.js.map +0 -1
- package/dist/dso-toolkit/p-7e930584.js +0 -2
- package/dist/dso-toolkit/p-7e930584.js.map +0 -1
- package/dist/dso-toolkit/p-b9063235.js +0 -2
- package/dist/dso-toolkit/p-d3eacf71.js +0 -2
- package/dist/dso-toolkit/p-db952528.entry.js +0 -2
- package/dist/dso-toolkit/p-fb91818b.entry.js +0 -2
- package/dist/dso-toolkit/p-fb91818b.entry.js.map +0 -1
- package/dist/esm/i18n-001de5be.js.map +0 -1
- package/dist/esm/index-b281ec90.js.map +0 -1
- /package/dist/dso-toolkit/{p-0c0f628d.entry.js.map → p-007802e5.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-e6c2e6df.entry.js.map → p-03e5e9e1.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-802bac7e.entry.js.map → p-10d0c70f.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-1db82eab.entry.js.map → p-135bf595.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-d3eacf71.js.map → p-13b91ce2.js.map} +0 -0
- /package/dist/dso-toolkit/{p-06e2b0d8.entry.js.map → p-1aefb8a6.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-e803037a.entry.js.map → p-2a933ac2.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-ef783949.entry.js.map → p-327cbc96.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-bad7ac4d.entry.js.map → p-35186e39.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-24148706.entry.js.map → p-3be76968.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-0eade502.entry.js.map → p-3e401cf1.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-16f98bb4.entry.js.map → p-46a5a752.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-8988519f.entry.js.map → p-4747018b.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-aa0884ab.entry.js.map → p-4b536d17.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-8907e052.entry.js.map → p-4b70b133.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-d83e13fa.entry.js.map → p-7ca364e9.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-42a674f5.entry.js.map → p-7e2c9463.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-29a4cdd6.entry.js.map → p-7e626a87.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-641a2d92.entry.js.map → p-8a3e9f50.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-f91f8106.entry.js.map → p-8b5409ad.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-3e48118b.entry.js.map → p-8cc798d5.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-d5357c6e.entry.js.map → p-93dc3680.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-4af88598.entry.js.map → p-98037a08.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-278f922e.entry.js.map → p-9dbebb2e.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-d8431a02.entry.js.map → p-a341b666.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-a1fdcf6f.entry.js.map → p-a52dcbb8.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-764ce885.entry.js.map → p-a6c30fa5.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-9f5428f5.entry.js.map → p-ad38ad02.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-a030c29d.entry.js.map → p-b3deb707.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-f2f4324c.entry.js.map → p-ba49c0e5.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-281c77c9.entry.js.map → p-ba7b4c62.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-724241bc.entry.js.map → p-bdd5651e.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-019289a8.entry.js.map → p-c2abc6c7.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-21bdc089.entry.js.map → p-cc3366a5.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-b9063235.js.map → p-d1ed09c3.js.map} +0 -0
- /package/dist/dso-toolkit/{p-6b29b8e9.entry.js.map → p-d8c11809.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-6b494b68.entry.js.map → p-d9cb06fc.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-770c5940.entry.js.map → p-da7f089a.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-961b357a.entry.js.map → p-e19e851b.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-05569dac.entry.js.map → p-e2d3d553.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-45040369.entry.js.map → p-e8064fba.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-a19b9a99.entry.js.map → p-ee7e35f5.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-375dcd83.entry.js.map → p-f1dc313d.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-b2fe38cd.entry.js.map → p-faa6b9d5.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-a70592fa.entry.js.map → p-fca1f5bd.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-85ed6394.entry.js.map → p-fccb414d.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-e9d8509a.entry.js.map → p-fd989862.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-f730ff77.entry.js.map → p-fee1dd65.entry.js.map} +0 -0
|
@@ -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: '349c801fdadbfd077ca6cc68f5d1f48dea0d4ff4' }, h("div", { key: '1413312c78b126135b10295690aa957d99304acf', class: "tabs", role: "tablist", onKeyUp: this.keyUpHandler }, h("slot", { key: '3b4cbf35c3d29ba1f6158853d755335dd8a05b5e' })), h("div", { key: '95e97aa712722fc019bbf1578dfb1c6224ecebb5', role: "tabpanel", tabindex: "0" }, h("slot", { key: '305195dcc64770963bb740d64c5cc0d08f0c16bc', 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: 'fda90d8a03ae58672b99f314ec5f97c1ac9dab19', id: "tree", class: "dso-tree", onKeyDown: (e) => this.keyDownListener(e), ref: (element) => (this.tree = element) }, h("ul", { key: '02c4d4665e8d3fdb2618e6e730ad899776149501', 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: '67c2e60734775ecdbf3139555fb6915013b1961e', class: "dso-navbar" }, h("ul", { key: '4e50ab7896a2ffdeb8fa9a279e1a2d0182a81499', 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: '2ed0b4973958f49af4878f8b47837204645b6648', 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: '24f3be6f1165b6d88b0978c05091636e2fbcedaf', 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: 'b846fb472829718e3e092817f485a9186e4f0c30', class: "map", ref: (element) => (this.mapElement = element) }, h("slot", { key: '158e2d376aeb183114e90965ebff21ed71b95184', name: "map" }))), ((!this.tabView && this.documentPanelOpen) || (this.tabView && this.activeTab === "document")) && (h(DocumentPanel, { key: '58f4e9ab3208a6d1144877505965ea40ebfe8a75', tabView: this.tabView, panelSize: this.documentPanelSize, shrinkDocumentPanel: this.shrinkDocumentPanel, expandDocumentPanel: this.expandDocumentPanel, dsoDocumentPanelSizeChangeAnimationEnd: this.dsoDocumentPanelSizeChangeAnimationEnd })), h(Overlay, { key: '1d22628a694b5dfc081ccf865eb93f4bab3325b7', 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 {
|
package/dist/components/i18n.js
CHANGED
|
@@ -457,6 +457,7 @@ var postProcessor = {
|
|
|
457
457
|
};
|
|
458
458
|
|
|
459
459
|
const checkedLoadedFor = {};
|
|
460
|
+
const shouldHandleAsObject = res => !isString(res) && typeof res !== 'boolean' && typeof res !== 'number';
|
|
460
461
|
class Translator extends EventEmitter {
|
|
461
462
|
constructor(services) {
|
|
462
463
|
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
@@ -555,17 +556,29 @@ class Translator extends EventEmitter {
|
|
|
555
556
|
let res = resolved?.res;
|
|
556
557
|
const resUsedKey = resolved?.usedKey || key;
|
|
557
558
|
const resExactUsedKey = resolved?.exactUsedKey || key;
|
|
558
|
-
const resType = Object.prototype.toString.apply(res);
|
|
559
559
|
const noObject = ['[object Number]', '[object Function]', '[object RegExp]'];
|
|
560
560
|
const joinArrays = options.joinArrays !== undefined ? options.joinArrays : this.options.joinArrays;
|
|
561
561
|
const handleAsObjectInI18nFormat = !this.i18nFormat || this.i18nFormat.handleAsObject;
|
|
562
|
-
const
|
|
563
|
-
|
|
562
|
+
const needsPluralHandling = options.count !== undefined && !isString(options.count);
|
|
563
|
+
const hasDefaultValue = Translator.hasDefaultValue(options);
|
|
564
|
+
const defaultValueSuffix = needsPluralHandling ? this.pluralResolver.getSuffix(lng, options.count, options) : '';
|
|
565
|
+
const defaultValueSuffixOrdinalFallback = options.ordinal && needsPluralHandling ? this.pluralResolver.getSuffix(lng, options.count, {
|
|
566
|
+
ordinal: false
|
|
567
|
+
}) : '';
|
|
568
|
+
const needsZeroSuffixLookup = needsPluralHandling && !options.ordinal && options.count === 0;
|
|
569
|
+
const defaultValue = needsZeroSuffixLookup && options[`defaultValue${this.options.pluralSeparator}zero`] || options[`defaultValue${defaultValueSuffix}`] || options[`defaultValue${defaultValueSuffixOrdinalFallback}`] || options.defaultValue;
|
|
570
|
+
let resForObjHndl = res;
|
|
571
|
+
if (handleAsObjectInI18nFormat && !res && hasDefaultValue) {
|
|
572
|
+
resForObjHndl = defaultValue;
|
|
573
|
+
}
|
|
574
|
+
const handleAsObject = shouldHandleAsObject(resForObjHndl);
|
|
575
|
+
const resType = Object.prototype.toString.apply(resForObjHndl);
|
|
576
|
+
if (handleAsObjectInI18nFormat && resForObjHndl && handleAsObject && noObject.indexOf(resType) < 0 && !(isString(joinArrays) && Array.isArray(resForObjHndl))) {
|
|
564
577
|
if (!options.returnObjects && !this.options.returnObjects) {
|
|
565
578
|
if (!this.options.returnedObjectHandler) {
|
|
566
579
|
this.logger.warn('accessing an object - but returnObjects options is not enabled!');
|
|
567
580
|
}
|
|
568
|
-
const r = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(resUsedKey,
|
|
581
|
+
const r = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(resUsedKey, resForObjHndl, {
|
|
569
582
|
...options,
|
|
570
583
|
ns: namespaces
|
|
571
584
|
}) : `key '${key} (${this.language})' returned an object instead of string.`;
|
|
@@ -577,20 +590,31 @@ class Translator extends EventEmitter {
|
|
|
577
590
|
return r;
|
|
578
591
|
}
|
|
579
592
|
if (keySeparator) {
|
|
580
|
-
const resTypeIsArray = Array.isArray(
|
|
593
|
+
const resTypeIsArray = Array.isArray(resForObjHndl);
|
|
581
594
|
const copy = resTypeIsArray ? [] : {};
|
|
582
595
|
const newKeyToUse = resTypeIsArray ? resExactUsedKey : resUsedKey;
|
|
583
|
-
for (const m in
|
|
584
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
596
|
+
for (const m in resForObjHndl) {
|
|
597
|
+
if (Object.prototype.hasOwnProperty.call(resForObjHndl, m)) {
|
|
585
598
|
const deepKey = `${newKeyToUse}${keySeparator}${m}`;
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
599
|
+
if (hasDefaultValue && !res) {
|
|
600
|
+
copy[m] = this.translate(deepKey, {
|
|
601
|
+
...options,
|
|
602
|
+
defaultValue: shouldHandleAsObject(defaultValue) ? defaultValue[m] : undefined,
|
|
603
|
+
...{
|
|
604
|
+
joinArrays: false,
|
|
605
|
+
ns: namespaces
|
|
606
|
+
}
|
|
607
|
+
});
|
|
608
|
+
} else {
|
|
609
|
+
copy[m] = this.translate(deepKey, {
|
|
610
|
+
...options,
|
|
611
|
+
...{
|
|
612
|
+
joinArrays: false,
|
|
613
|
+
ns: namespaces
|
|
614
|
+
}
|
|
615
|
+
});
|
|
616
|
+
}
|
|
617
|
+
if (copy[m] === deepKey) copy[m] = resForObjHndl[m];
|
|
594
618
|
}
|
|
595
619
|
}
|
|
596
620
|
res = copy;
|
|
@@ -601,14 +625,6 @@ class Translator extends EventEmitter {
|
|
|
601
625
|
} else {
|
|
602
626
|
let usedDefault = false;
|
|
603
627
|
let usedKey = false;
|
|
604
|
-
const needsPluralHandling = options.count !== undefined && !isString(options.count);
|
|
605
|
-
const hasDefaultValue = Translator.hasDefaultValue(options);
|
|
606
|
-
const defaultValueSuffix = needsPluralHandling ? this.pluralResolver.getSuffix(lng, options.count, options) : '';
|
|
607
|
-
const defaultValueSuffixOrdinalFallback = options.ordinal && needsPluralHandling ? this.pluralResolver.getSuffix(lng, options.count, {
|
|
608
|
-
ordinal: false
|
|
609
|
-
}) : '';
|
|
610
|
-
const needsZeroSuffixLookup = needsPluralHandling && !options.ordinal && options.count === 0;
|
|
611
|
-
const defaultValue = needsZeroSuffixLookup && options[`defaultValue${this.options.pluralSeparator}zero`] || options[`defaultValue${defaultValueSuffix}`] || options[`defaultValue${defaultValueSuffixOrdinalFallback}`] || options.defaultValue;
|
|
612
628
|
if (!this.isValidLookup(res) && hasDefaultValue) {
|
|
613
629
|
usedDefault = true;
|
|
614
630
|
res = defaultValue;
|