@dso-toolkit/core 72.0.0 → 72.2.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-BwdNcAAd.js → annotation-body-BBlFDtNQ.js} +3 -3
- package/dist/cjs/{annotation-body-BwdNcAAd.js.map → annotation-body-BBlFDtNQ.js.map} +1 -1
- package/dist/cjs/{annotation-list-renvooi-values-GE2SwBhG.js → annotation-list-renvooi-values-BRsXjGPr.js} +3 -3
- package/dist/cjs/{annotation-list-renvooi-values-GE2SwBhG.js.map → annotation-list-renvooi-values-BRsXjGPr.js.map} +1 -1
- package/dist/cjs/{annotation-symbol-slot-Cvk1q2gb.js → annotation-symbol-slot-Ko-yyBqQ.js} +3 -3
- package/dist/cjs/{annotation-symbol-slot-Cvk1q2gb.js.map → annotation-symbol-slot-Ko-yyBqQ.js.map} +1 -1
- package/dist/cjs/dso-accordion-section.cjs.entry.js +1 -1
- package/dist/cjs/dso-accordion.cjs.entry.js +1 -1
- package/dist/cjs/dso-action-list-item.cjs.entry.js +1 -1
- package/dist/cjs/dso-action-list.cjs.entry.js +1 -1
- package/dist/cjs/dso-advanced-select.cjs.entry.js +1 -1
- package/dist/cjs/dso-alert.dso-badge.dso-image-overlay.dso-ozon-content.dso-panel.dso-table.entry.cjs.js.map +1 -1
- package/dist/cjs/dso-alert_6.cjs.entry.js +7 -7
- package/dist/cjs/dso-alert_6.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-annotation-activiteit.cjs.entry.js +4 -4
- 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.dso-document-component.entry.cjs.js.map +1 -1
- 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 +4 -4
- 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-highlight-box.cjs.entry.js +1 -1
- package/dist/cjs/dso-icon.cjs.entry.js +9 -2
- package/dist/cjs/dso-icon.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-icon.entry.cjs.js.map +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 +1 -1
- package/dist/cjs/dso-label_3.cjs.entry.js +2 -2
- 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 +3 -3
- package/dist/cjs/dso-map-controls.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-map-controls.entry.cjs.js.map +1 -1
- 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-onboarding-tip.cjs.entry.js +1788 -0
- package/dist/cjs/dso-onboarding-tip.cjs.entry.js.map +1 -0
- package/dist/cjs/dso-onboarding-tip.entry.cjs.js.map +1 -0
- package/dist/cjs/dso-pagination.cjs.entry.js +1 -1
- package/dist/cjs/dso-plekinfo-card.cjs.entry.js +2 -2
- package/dist/cjs/dso-progress-bar.cjs.entry.js +2 -2
- package/dist/cjs/dso-progress-indicator.cjs.entry.js +3 -3
- package/dist/cjs/dso-project-item.cjs.entry.js +2 -2
- package/dist/cjs/dso-responsive-element.cjs.entry.js +2 -2
- package/dist/cjs/dso-scrollable.cjs.entry.js +3 -3
- package/dist/cjs/dso-skiplink.cjs.entry.js +2 -2
- package/dist/cjs/dso-survey-rating.cjs.entry.js +4 -4
- package/dist/cjs/dso-survey-rating.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-survey-rating.entry.cjs.js.map +1 -1
- 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-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/dso-tree-view.cjs.entry.js +2 -2
- package/dist/cjs/dso-viewer-grid.cjs.entry.js +4 -4
- package/dist/cjs/dso-viewer-grid.cjs.entry.js.map +1 -1
- package/dist/cjs/dso-viewer-grid.entry.cjs.js.map +1 -1
- package/dist/cjs/dsot-document-component-demo.cjs.entry.js +1 -1
- package/dist/cjs/{i18n-DXkB0Cg-.js → i18n-D9iWFntP.js} +106 -97
- package/dist/cjs/i18n-D9iWFntP.js.map +1 -0
- package/dist/cjs/{index-CkTcEJuV.js → index-DvrTSHdI.js} +24 -6
- package/dist/cjs/index-DvrTSHdI.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.js +2 -2
- package/dist/collection/components/accordion/components/accordion-section.js +14 -14
- package/dist/collection/components/action-list/action-list.js +1 -1
- package/dist/collection/components/action-list/components/action-list-item.js +5 -5
- package/dist/collection/components/advanced-select/advanced-select.js +3 -1
- package/dist/collection/components/advanced-select/advanced-select.js.map +1 -1
- package/dist/collection/components/alert/alert.js +4 -4
- package/dist/collection/components/annotation/annotation-activiteit/annotation-activiteit.js +7 -6
- package/dist/collection/components/annotation/annotation-activiteit/annotation-activiteit.js.map +1 -1
- package/dist/collection/components/annotation/annotation-gebiedsaanwijzing/annotation-gebiedsaanwijzing.js +4 -4
- package/dist/collection/components/annotation/annotation-kaart/annotation-kaart.js +3 -3
- package/dist/collection/components/annotation/annotation-locatie/annotation-locatie.js +4 -4
- package/dist/collection/components/annotation/annotation-omgevingsnormwaarde/annotation-omgevingsnormwaarde.js +7 -6
- package/dist/collection/components/annotation/annotation-omgevingsnormwaarde/annotation-omgevingsnormwaarde.js.map +1 -1
- package/dist/collection/components/attachments-counter/attachments-counter.js +1 -1
- package/dist/collection/components/autosuggest/autosuggest.js +7 -5
- package/dist/collection/components/autosuggest/autosuggest.js.map +1 -1
- package/dist/collection/components/badge/badge.js +1 -1
- package/dist/collection/components/banner/banner.js +3 -3
- package/dist/collection/components/card/card.js +3 -3
- package/dist/collection/components/card-container/card-container.js +1 -1
- package/dist/collection/components/date-picker/date-picker.js +10 -10
- package/dist/collection/components/date-picker-legacy/date-picker-legacy.js +12 -12
- package/dist/collection/components/document-card/document-card.js +2 -2
- package/dist/collection/components/document-component/document-component.css +24 -24
- package/dist/collection/components/document-component/document-component.js +24 -22
- package/dist/collection/components/document-component/document-component.js.map +1 -1
- package/dist/collection/components/document-component-demo/document-component.demo.js +5 -4
- package/dist/collection/components/document-component-demo/document-component.demo.js.map +1 -1
- package/dist/collection/components/dropdown-menu/dropdown-menu.js +7 -7
- package/dist/collection/components/expandable/expandable.js +3 -3
- package/dist/collection/components/header/header.js +11 -10
- package/dist/collection/components/header/header.js.map +1 -1
- package/dist/collection/components/highlight-box/highlight-box.js +5 -5
- package/dist/collection/components/icon/icon.js +4 -2
- package/dist/collection/components/icon/icon.js.map +1 -1
- package/dist/collection/components/image-overlay/image-overlay.css +24 -24
- package/dist/collection/components/image-overlay/image-overlay.js +1 -1
- package/dist/collection/components/info/info.js +2 -2
- package/dist/collection/components/info-button/info-button.js +3 -3
- package/dist/collection/components/input-range/input-range.js +7 -7
- package/dist/collection/components/label/label.js +4 -4
- package/dist/collection/components/legend-item/legend-item.js +3 -3
- package/dist/collection/components/list-button/list-button.js +8 -8
- package/dist/collection/components/logo/logo.js +5 -5
- package/dist/collection/components/map-base-layers/map-base-layers.js +2 -1
- package/dist/collection/components/map-base-layers/map-base-layers.js.map +1 -1
- package/dist/collection/components/map-controls/map-controls.css +24 -24
- package/dist/collection/components/map-controls/map-controls.js +2 -2
- package/dist/collection/components/map-overlays/map-overlays.js +2 -1
- package/dist/collection/components/map-overlays/map-overlays.js.map +1 -1
- package/dist/collection/components/mark-bar/mark-bar.js +4 -4
- package/dist/collection/components/modal/modal.js +5 -5
- package/dist/collection/components/onboarding-tip/onboarding-tip.css +160 -0
- package/dist/collection/components/onboarding-tip/onboarding-tip.interfaces.js +2 -0
- package/dist/collection/components/onboarding-tip/onboarding-tip.interfaces.js.map +1 -0
- package/dist/collection/components/onboarding-tip/onboarding-tip.js +196 -0
- package/dist/collection/components/onboarding-tip/onboarding-tip.js.map +1 -0
- package/dist/collection/components/ozon-content/ozon-content.css +24 -24
- package/dist/collection/components/ozon-content/ozon-content.js +5 -3
- package/dist/collection/components/ozon-content/ozon-content.js.map +1 -1
- package/dist/collection/components/pagination/pagination.js +3 -2
- package/dist/collection/components/pagination/pagination.js.map +1 -1
- package/dist/collection/components/panel/panel.js +2 -2
- package/dist/collection/components/plekinfo-card/plekinfo-card.js +5 -5
- package/dist/collection/components/progress-bar/progress-bar.js +4 -4
- package/dist/collection/components/progress-indicator/progress-indicator.js +4 -4
- package/dist/collection/components/project-item/project-item.js +2 -2
- package/dist/collection/components/renvooi/renvooi.js +2 -1
- package/dist/collection/components/renvooi/renvooi.js.map +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 +13 -13
- package/dist/collection/components/skiplink/skiplink.js +3 -3
- package/dist/collection/components/slide-toggle/slide-toggle.js +6 -6
- package/dist/collection/components/survey-rating/survey-rating.css +12 -12
- package/dist/collection/components/survey-rating/survey-rating.js +3 -3
- package/dist/collection/components/survey-rating/survey-rating.js.map +1 -1
- package/dist/collection/components/table/table.css +24 -24
- package/dist/collection/components/table/table.js +3 -3
- package/dist/collection/components/tabs/components/tab.js +3 -3
- package/dist/collection/components/tabs/tabs.js +1 -1
- package/dist/collection/components/toggletip/toggletip.js +5 -5
- package/dist/collection/components/tooltip/tooltip.js +8 -8
- package/dist/collection/components/tree-view/tree-view.js +2 -1
- package/dist/collection/components/tree-view/tree-view.js.map +1 -1
- package/dist/collection/components/viewer-grid/viewer-grid.css +41 -36
- package/dist/collection/components/viewer-grid/viewer-grid.js +13 -12
- package/dist/collection/components/viewer-grid/viewer-grid.js.map +1 -1
- package/dist/components/document-component.js +2 -2
- package/dist/components/document-component.js.map +1 -1
- package/dist/components/dso-annotation-activiteit.js +1 -1
- package/dist/components/dso-header.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-controls.js.map +1 -1
- package/dist/components/dso-onboarding-tip.d.ts +11 -0
- package/dist/components/dso-onboarding-tip.js +1812 -0
- package/dist/components/dso-onboarding-tip.js.map +1 -0
- package/dist/components/dso-pagination.js +1 -1
- 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.js +3 -3
- package/dist/components/dso-survey-rating.js.map +1 -1
- package/dist/components/dso-tabs.js +1 -1
- package/dist/components/dso-tree-view.js +1 -1
- package/dist/components/dso-viewer-grid.js +3 -3
- package/dist/components/dso-viewer-grid.js.map +1 -1
- package/dist/components/dsot-document-component-demo.js +1 -1
- package/dist/components/i18n.js +104 -95
- package/dist/components/i18n.js.map +1 -1
- package/dist/components/icon.js +8 -1
- package/dist/components/icon.js.map +1 -1
- package/dist/components/image-overlay.js +1 -1
- package/dist/components/image-overlay.js.map +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +2 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/ozon-content.js +3 -3
- package/dist/components/ozon-content.js.map +1 -1
- package/dist/components/progress-indicator.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 +1 -1
- package/dist/components/table.js +2 -2
- package/dist/components/table.js.map +1 -1
- package/dist/components/toggletip.js +1 -1
- package/dist/components/tooltip.js +1 -1
- package/dist/dso-toolkit/dso-alert.dso-badge.dso-image-overlay.dso-ozon-content.dso-panel.dso-table.entry.esm.js.map +1 -1
- package/dist/dso-toolkit/dso-annotation-locatie.dso-document-component.entry.esm.js.map +1 -1
- package/dist/dso-toolkit/dso-icon.entry.esm.js.map +1 -1
- package/dist/dso-toolkit/dso-map-controls.entry.esm.js.map +1 -1
- package/dist/dso-toolkit/dso-onboarding-tip.entry.esm.js.map +1 -0
- package/dist/dso-toolkit/dso-survey-rating.entry.esm.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/dso-viewer-grid.entry.esm.js.map +1 -1
- package/dist/dso-toolkit/{p-3f85169a.entry.js → p-00431d87.entry.js} +2 -2
- package/dist/dso-toolkit/{p-0a2dd4a9.entry.js → p-077f0a02.entry.js} +2 -2
- package/dist/dso-toolkit/{p-61dfc1f5.entry.js → p-08aa7f78.entry.js} +2 -2
- package/dist/dso-toolkit/{p-a66fd056.entry.js → p-0b902049.entry.js} +2 -2
- package/dist/dso-toolkit/{p-24f64459.entry.js → p-13042742.entry.js} +2 -2
- package/dist/dso-toolkit/{p-b673cbdb.entry.js → p-1636f9be.entry.js} +2 -2
- package/dist/dso-toolkit/{p-49af1837.entry.js → p-1f7f6d8b.entry.js} +2 -2
- package/dist/dso-toolkit/{p-5b25e608.entry.js → p-23c5e409.entry.js} +2 -2
- package/dist/dso-toolkit/{p-91f1ac00.entry.js → p-2711b352.entry.js} +2 -2
- package/dist/dso-toolkit/{p-6b6b5ed2.entry.js → p-2a0e7fab.entry.js} +2 -2
- package/dist/dso-toolkit/{p-7b7ae40b.entry.js → p-3092991c.entry.js} +2 -2
- package/dist/dso-toolkit/p-31754dd5.entry.js +2 -0
- package/dist/dso-toolkit/{p-35b096ec.entry.js → p-32081789.entry.js} +2 -2
- package/dist/dso-toolkit/{p-7531a336.entry.js → p-37864ec3.entry.js} +2 -2
- package/dist/dso-toolkit/{p-1d96f67a.entry.js → p-38a17746.entry.js} +2 -2
- package/dist/dso-toolkit/{p-5f01431d.entry.js → p-3dc6df90.entry.js} +2 -2
- package/dist/dso-toolkit/{p-e87edda8.entry.js → p-4282580b.entry.js} +2 -2
- package/dist/dso-toolkit/{p-1da9f680.entry.js → p-45a523e5.entry.js} +2 -2
- package/dist/dso-toolkit/{p-55176bef.entry.js → p-47936ff6.entry.js} +2 -2
- package/dist/dso-toolkit/p-47bdc747.entry.js +2 -0
- package/dist/dso-toolkit/p-47bdc747.entry.js.map +1 -0
- package/dist/dso-toolkit/{p-70b9abf1.entry.js → p-487f46df.entry.js} +2 -2
- package/dist/dso-toolkit/{p-759d18f9.entry.js → p-49fc2235.entry.js} +2 -2
- package/dist/dso-toolkit/{p-a250b931.entry.js → p-4a034e40.entry.js} +2 -2
- package/dist/dso-toolkit/{p-5509732c.entry.js → p-4a5cc3fc.entry.js} +2 -2
- package/dist/dso-toolkit/p-5183876a.entry.js +2 -0
- package/dist/dso-toolkit/{p-43b5e74b.entry.js.map → p-5183876a.entry.js.map} +1 -1
- package/dist/dso-toolkit/{p-c50310e2.entry.js → p-5193e894.entry.js} +2 -2
- package/dist/dso-toolkit/{p-ac221ee6.entry.js → p-53b338f1.entry.js} +2 -2
- package/dist/dso-toolkit/{p-7f8fc024.entry.js → p-583bd6db.entry.js} +2 -2
- package/dist/dso-toolkit/p-6070a869.entry.js +2 -0
- package/dist/dso-toolkit/{p-7b715bdf.entry.js.map → p-6070a869.entry.js.map} +1 -1
- package/dist/dso-toolkit/{p-4956ca51.entry.js → p-621a9bbb.entry.js} +2 -2
- package/dist/dso-toolkit/{p-4eefa210.entry.js → p-6a2a4141.entry.js} +2 -2
- package/dist/dso-toolkit/{p-79e6a042.entry.js → p-6e6d93a3.entry.js} +2 -2
- package/dist/dso-toolkit/{p-d260469c.entry.js → p-6f211cd5.entry.js} +2 -2
- package/dist/dso-toolkit/{p-4790e06e.entry.js → p-78420f02.entry.js} +2 -2
- package/dist/dso-toolkit/{p-a0a78026.entry.js → p-86849be0.entry.js} +2 -2
- package/dist/dso-toolkit/{p-e232a8ad.entry.js → p-8941035f.entry.js} +2 -2
- package/dist/dso-toolkit/p-8a677aba.entry.js +2 -0
- package/dist/dso-toolkit/p-8a677aba.entry.js.map +1 -0
- package/dist/dso-toolkit/{p-9213f126.entry.js → p-8e1a144a.entry.js} +2 -2
- package/dist/dso-toolkit/{p-6dac4086.entry.js → p-90d2a099.entry.js} +2 -2
- package/dist/dso-toolkit/p-90d2a099.entry.js.map +1 -0
- package/dist/dso-toolkit/p-BbNJ4wXp.js +2 -0
- package/dist/dso-toolkit/p-BbNJ4wXp.js.map +1 -0
- package/dist/dso-toolkit/{p-CcZz5H_k.js → p-COKRRU_q.js} +2 -2
- package/dist/dso-toolkit/{p-CcZz5H_k.js.map → p-COKRRU_q.js.map} +1 -1
- package/dist/dso-toolkit/p-ChsEPkam.js +2 -0
- package/dist/dso-toolkit/{p-CzQFr230.js.map → p-ChsEPkam.js.map} +1 -1
- package/dist/dso-toolkit/p-D2Jo0W7B.js +3 -0
- package/dist/dso-toolkit/p-D2Jo0W7B.js.map +1 -0
- package/dist/dso-toolkit/{p-CXy7CeUE.js → p-D4cSA4l8.js} +2 -2
- package/dist/dso-toolkit/{p-CXy7CeUE.js.map → p-D4cSA4l8.js.map} +1 -1
- package/dist/dso-toolkit/{p-a186b796.entry.js → p-a0960751.entry.js} +2 -2
- package/dist/dso-toolkit/{p-2f99bb30.entry.js → p-a92bee24.entry.js} +2 -2
- package/dist/dso-toolkit/p-b7bbdb17.entry.js +2 -0
- package/dist/dso-toolkit/p-b7bbdb17.entry.js.map +1 -0
- package/dist/dso-toolkit/{p-c13b26ad.entry.js → p-bae3006c.entry.js} +2 -2
- package/dist/dso-toolkit/{p-00580562.entry.js → p-c5325945.entry.js} +2 -2
- package/dist/dso-toolkit/{p-5f820aec.entry.js → p-c9049181.entry.js} +2 -2
- package/dist/dso-toolkit/p-c9461ffa.entry.js +2 -0
- package/dist/dso-toolkit/{p-3cb4ac7e.entry.js.map → p-c9461ffa.entry.js.map} +1 -1
- package/dist/dso-toolkit/{p-896b4e39.entry.js → p-d112b93b.entry.js} +2 -2
- package/dist/dso-toolkit/{p-6973b064.entry.js → p-d4ac95de.entry.js} +2 -2
- package/dist/dso-toolkit/p-daafcc37.entry.js +2 -0
- package/dist/dso-toolkit/{p-7918004d.entry.js → p-dfd980b6.entry.js} +2 -2
- package/dist/dso-toolkit/{p-215e9ecd.entry.js → p-e097b372.entry.js} +2 -2
- package/dist/dso-toolkit/{p-159753d7.entry.js → p-e990ee37.entry.js} +2 -2
- package/dist/dso-toolkit/{p-ed11ee1b.entry.js → p-eea3b9c8.entry.js} +2 -2
- package/dist/esm/{annotation-body-Bwcvd5YG.js → annotation-body-C13C3XCU.js} +3 -3
- package/dist/esm/{annotation-body-Bwcvd5YG.js.map → annotation-body-C13C3XCU.js.map} +1 -1
- package/dist/esm/{annotation-list-renvooi-values-D_I-aAbM.js → annotation-list-renvooi-values-D75KxHAC.js} +3 -3
- package/dist/esm/{annotation-list-renvooi-values-D_I-aAbM.js.map → annotation-list-renvooi-values-D75KxHAC.js.map} +1 -1
- package/dist/esm/{annotation-symbol-slot-BlF4i_Mi.js → annotation-symbol-slot-CRK43mu1.js} +3 -3
- package/dist/esm/{annotation-symbol-slot-BlF4i_Mi.js.map → annotation-symbol-slot-CRK43mu1.js.map} +1 -1
- package/dist/esm/dso-accordion-section.entry.js +1 -1
- package/dist/esm/dso-accordion.entry.js +1 -1
- package/dist/esm/dso-action-list-item.entry.js +1 -1
- package/dist/esm/dso-action-list.entry.js +1 -1
- package/dist/esm/dso-advanced-select.entry.js +1 -1
- package/dist/esm/dso-alert.dso-badge.dso-image-overlay.dso-ozon-content.dso-panel.dso-table.entry.js.map +1 -1
- package/dist/esm/dso-alert_6.entry.js +7 -7
- package/dist/esm/dso-alert_6.entry.js.map +1 -1
- package/dist/esm/dso-annotation-activiteit.entry.js +4 -4
- 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.dso-document-component.entry.js.map +1 -1
- 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 +4 -4
- 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-highlight-box.entry.js +1 -1
- package/dist/esm/dso-icon.entry.js +9 -2
- package/dist/esm/dso-icon.entry.js.map +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 +1 -1
- package/dist/esm/dso-label_3.entry.js +2 -2
- 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 +3 -3
- package/dist/esm/dso-map-controls.entry.js.map +1 -1
- 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-onboarding-tip.entry.js +1786 -0
- package/dist/esm/dso-onboarding-tip.entry.js.map +1 -0
- package/dist/esm/dso-pagination.entry.js +1 -1
- package/dist/esm/dso-plekinfo-card.entry.js +2 -2
- package/dist/esm/dso-progress-bar.entry.js +2 -2
- package/dist/esm/dso-progress-indicator.entry.js +3 -3
- package/dist/esm/dso-project-item.entry.js +2 -2
- package/dist/esm/dso-responsive-element.entry.js +2 -2
- package/dist/esm/dso-scrollable.entry.js +3 -3
- package/dist/esm/dso-skiplink.entry.js +2 -2
- package/dist/esm/dso-survey-rating.entry.js +4 -4
- package/dist/esm/dso-survey-rating.entry.js.map +1 -1
- 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-tooltip.entry.js +2 -2
- package/dist/esm/dso-tree-view.entry.js +2 -2
- package/dist/esm/dso-viewer-grid.entry.js +4 -4
- package/dist/esm/dso-viewer-grid.entry.js.map +1 -1
- package/dist/esm/dsot-document-component-demo.entry.js +1 -1
- package/dist/esm/{i18n-D6dst_Em.js → i18n-BbNJ4wXp.js} +106 -97
- package/dist/esm/i18n-BbNJ4wXp.js.map +1 -0
- package/dist/esm/{index-BzEnSYbR.js → index-D2Jo0W7B.js} +24 -6
- package/dist/esm/index-D2Jo0W7B.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/onboarding-tip/onboarding-tip.d.ts +25 -0
- package/dist/types/components/onboarding-tip/onboarding-tip.interfaces.d.ts +4 -0
- package/dist/types/components/survey-rating/survey-rating.d.ts +1 -1
- package/dist/types/components/viewer-grid/viewer-grid.d.ts +1 -0
- package/dist/types/components.d.ts +43 -1
- package/dist/types/stencil-public-runtime.d.ts +21 -0
- package/package.json +9 -8
- package/dist/cjs/i18n-DXkB0Cg-.js.map +0 -1
- package/dist/cjs/index-CkTcEJuV.js.map +0 -1
- package/dist/dso-toolkit/p-26d6681e.entry.js +0 -2
- package/dist/dso-toolkit/p-26d6681e.entry.js.map +0 -1
- package/dist/dso-toolkit/p-3cb4ac7e.entry.js +0 -2
- package/dist/dso-toolkit/p-43b5e74b.entry.js +0 -2
- package/dist/dso-toolkit/p-6dac4086.entry.js.map +0 -1
- package/dist/dso-toolkit/p-7853e0ff.entry.js +0 -2
- package/dist/dso-toolkit/p-7b715bdf.entry.js +0 -2
- package/dist/dso-toolkit/p-BzEnSYbR.js +0 -3
- package/dist/dso-toolkit/p-BzEnSYbR.js.map +0 -1
- package/dist/dso-toolkit/p-CzQFr230.js +0 -2
- package/dist/dso-toolkit/p-D6dst_Em.js +0 -2
- package/dist/dso-toolkit/p-D6dst_Em.js.map +0 -1
- package/dist/dso-toolkit/p-a74dabd9.entry.js +0 -2
- package/dist/dso-toolkit/p-a74dabd9.entry.js.map +0 -1
- package/dist/dso-toolkit/p-b26fded2.entry.js +0 -2
- package/dist/esm/i18n-D6dst_Em.js.map +0 -1
- package/dist/esm/index-BzEnSYbR.js.map +0 -1
- /package/dist/dso-toolkit/{p-3f85169a.entry.js.map → p-00431d87.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-0a2dd4a9.entry.js.map → p-077f0a02.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-61dfc1f5.entry.js.map → p-08aa7f78.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-a66fd056.entry.js.map → p-0b902049.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-24f64459.entry.js.map → p-13042742.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-b673cbdb.entry.js.map → p-1636f9be.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-49af1837.entry.js.map → p-1f7f6d8b.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-5b25e608.entry.js.map → p-23c5e409.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-91f1ac00.entry.js.map → p-2711b352.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-6b6b5ed2.entry.js.map → p-2a0e7fab.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-7b7ae40b.entry.js.map → p-3092991c.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-7853e0ff.entry.js.map → p-31754dd5.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-35b096ec.entry.js.map → p-32081789.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-7531a336.entry.js.map → p-37864ec3.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-1d96f67a.entry.js.map → p-38a17746.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-5f01431d.entry.js.map → p-3dc6df90.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-e87edda8.entry.js.map → p-4282580b.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-1da9f680.entry.js.map → p-45a523e5.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-55176bef.entry.js.map → p-47936ff6.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-70b9abf1.entry.js.map → p-487f46df.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-759d18f9.entry.js.map → p-49fc2235.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-a250b931.entry.js.map → p-4a034e40.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-5509732c.entry.js.map → p-4a5cc3fc.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-c50310e2.entry.js.map → p-5193e894.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-ac221ee6.entry.js.map → p-53b338f1.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-7f8fc024.entry.js.map → p-583bd6db.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-4956ca51.entry.js.map → p-621a9bbb.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-4eefa210.entry.js.map → p-6a2a4141.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-79e6a042.entry.js.map → p-6e6d93a3.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-d260469c.entry.js.map → p-6f211cd5.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-4790e06e.entry.js.map → p-78420f02.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-a0a78026.entry.js.map → p-86849be0.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-e232a8ad.entry.js.map → p-8941035f.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-9213f126.entry.js.map → p-8e1a144a.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-a186b796.entry.js.map → p-a0960751.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-2f99bb30.entry.js.map → p-a92bee24.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-c13b26ad.entry.js.map → p-bae3006c.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-00580562.entry.js.map → p-c5325945.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-5f820aec.entry.js.map → p-c9049181.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-896b4e39.entry.js.map → p-d112b93b.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-6973b064.entry.js.map → p-d4ac95de.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-b26fded2.entry.js.map → p-daafcc37.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-7918004d.entry.js.map → p-dfd980b6.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-215e9ecd.entry.js.map → p-e097b372.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-159753d7.entry.js.map → p-e990ee37.entry.js.map} +0 -0
- /package/dist/dso-toolkit/{p-ed11ee1b.entry.js.map → p-eea3b9c8.entry.js.map} +0 -0
|
@@ -484,13 +484,13 @@ class Translator extends EventEmitter {
|
|
|
484
484
|
const resolved = this.resolve(key, options);
|
|
485
485
|
return resolved?.res !== undefined;
|
|
486
486
|
}
|
|
487
|
-
extractFromKey(key,
|
|
488
|
-
let nsSeparator =
|
|
487
|
+
extractFromKey(key, opt) {
|
|
488
|
+
let nsSeparator = opt.nsSeparator !== undefined ? opt.nsSeparator : this.options.nsSeparator;
|
|
489
489
|
if (nsSeparator === undefined) nsSeparator = ':';
|
|
490
|
-
const keySeparator =
|
|
491
|
-
let namespaces =
|
|
490
|
+
const keySeparator = opt.keySeparator !== undefined ? opt.keySeparator : this.options.keySeparator;
|
|
491
|
+
let namespaces = opt.ns || this.options.defaultNS || [];
|
|
492
492
|
const wouldCheckForNsInKey = nsSeparator && key.indexOf(nsSeparator) > -1;
|
|
493
|
-
const seemsNaturalLanguage = !this.options.userDefinedKeySeparator && !
|
|
493
|
+
const seemsNaturalLanguage = !this.options.userDefinedKeySeparator && !opt.keySeparator && !this.options.userDefinedNsSeparator && !opt.nsSeparator && !looksLikeObjectPath(key, nsSeparator, keySeparator);
|
|
494
494
|
if (wouldCheckForNsInKey && !seemsNaturalLanguage) {
|
|
495
495
|
const m = key.match(this.interpolator.nestingRegexp);
|
|
496
496
|
if (m && m.length > 0) {
|
|
@@ -508,28 +508,28 @@ class Translator extends EventEmitter {
|
|
|
508
508
|
namespaces: isString(namespaces) ? [namespaces] : namespaces
|
|
509
509
|
};
|
|
510
510
|
}
|
|
511
|
-
translate(keys,
|
|
512
|
-
if (typeof
|
|
513
|
-
|
|
511
|
+
translate(keys, opt, lastKey) {
|
|
512
|
+
if (typeof opt !== 'object' && this.options.overloadTranslationOptionHandler) {
|
|
513
|
+
opt = this.options.overloadTranslationOptionHandler(arguments);
|
|
514
514
|
}
|
|
515
|
-
if (typeof options === 'object')
|
|
516
|
-
...
|
|
515
|
+
if (typeof options === 'object') opt = {
|
|
516
|
+
...opt
|
|
517
517
|
};
|
|
518
|
-
if (!
|
|
518
|
+
if (!opt) opt = {};
|
|
519
519
|
if (keys == null) return '';
|
|
520
520
|
if (!Array.isArray(keys)) keys = [String(keys)];
|
|
521
|
-
const returnDetails =
|
|
522
|
-
const keySeparator =
|
|
521
|
+
const returnDetails = opt.returnDetails !== undefined ? opt.returnDetails : this.options.returnDetails;
|
|
522
|
+
const keySeparator = opt.keySeparator !== undefined ? opt.keySeparator : this.options.keySeparator;
|
|
523
523
|
const {
|
|
524
524
|
key,
|
|
525
525
|
namespaces
|
|
526
|
-
} = this.extractFromKey(keys[keys.length - 1],
|
|
526
|
+
} = this.extractFromKey(keys[keys.length - 1], opt);
|
|
527
527
|
const namespace = namespaces[namespaces.length - 1];
|
|
528
|
-
const lng =
|
|
529
|
-
const appendNamespaceToCIMode =
|
|
528
|
+
const lng = opt.lng || this.language;
|
|
529
|
+
const appendNamespaceToCIMode = opt.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
|
|
530
530
|
if (lng?.toLowerCase() === 'cimode') {
|
|
531
531
|
if (appendNamespaceToCIMode) {
|
|
532
|
-
const nsSeparator =
|
|
532
|
+
const nsSeparator = opt.nsSeparator || this.options.nsSeparator;
|
|
533
533
|
if (returnDetails) {
|
|
534
534
|
return {
|
|
535
535
|
res: `${namespace}${nsSeparator}${key}`,
|
|
@@ -537,7 +537,7 @@ class Translator extends EventEmitter {
|
|
|
537
537
|
exactUsedKey: key,
|
|
538
538
|
usedLng: lng,
|
|
539
539
|
usedNS: namespace,
|
|
540
|
-
usedParams: this.getUsedParamsDetails(
|
|
540
|
+
usedParams: this.getUsedParamsDetails(opt)
|
|
541
541
|
};
|
|
542
542
|
}
|
|
543
543
|
return `${namespace}${nsSeparator}${key}`;
|
|
@@ -549,26 +549,26 @@ class Translator extends EventEmitter {
|
|
|
549
549
|
exactUsedKey: key,
|
|
550
550
|
usedLng: lng,
|
|
551
551
|
usedNS: namespace,
|
|
552
|
-
usedParams: this.getUsedParamsDetails(
|
|
552
|
+
usedParams: this.getUsedParamsDetails(opt)
|
|
553
553
|
};
|
|
554
554
|
}
|
|
555
555
|
return key;
|
|
556
556
|
}
|
|
557
|
-
const resolved = this.resolve(keys,
|
|
557
|
+
const resolved = this.resolve(keys, opt);
|
|
558
558
|
let res = resolved?.res;
|
|
559
559
|
const resUsedKey = resolved?.usedKey || key;
|
|
560
560
|
const resExactUsedKey = resolved?.exactUsedKey || key;
|
|
561
561
|
const noObject = ['[object Number]', '[object Function]', '[object RegExp]'];
|
|
562
|
-
const joinArrays =
|
|
562
|
+
const joinArrays = opt.joinArrays !== undefined ? opt.joinArrays : this.options.joinArrays;
|
|
563
563
|
const handleAsObjectInI18nFormat = !this.i18nFormat || this.i18nFormat.handleAsObject;
|
|
564
|
-
const needsPluralHandling =
|
|
565
|
-
const hasDefaultValue = Translator.hasDefaultValue(
|
|
566
|
-
const defaultValueSuffix = needsPluralHandling ? this.pluralResolver.getSuffix(lng,
|
|
567
|
-
const defaultValueSuffixOrdinalFallback =
|
|
564
|
+
const needsPluralHandling = opt.count !== undefined && !isString(opt.count);
|
|
565
|
+
const hasDefaultValue = Translator.hasDefaultValue(opt);
|
|
566
|
+
const defaultValueSuffix = needsPluralHandling ? this.pluralResolver.getSuffix(lng, opt.count, opt) : '';
|
|
567
|
+
const defaultValueSuffixOrdinalFallback = opt.ordinal && needsPluralHandling ? this.pluralResolver.getSuffix(lng, opt.count, {
|
|
568
568
|
ordinal: false
|
|
569
569
|
}) : '';
|
|
570
|
-
const needsZeroSuffixLookup = needsPluralHandling && !
|
|
571
|
-
const defaultValue = needsZeroSuffixLookup &&
|
|
570
|
+
const needsZeroSuffixLookup = needsPluralHandling && !opt.ordinal && opt.count === 0;
|
|
571
|
+
const defaultValue = needsZeroSuffixLookup && opt[`defaultValue${this.options.pluralSeparator}zero`] || opt[`defaultValue${defaultValueSuffix}`] || opt[`defaultValue${defaultValueSuffixOrdinalFallback}`] || opt.defaultValue;
|
|
572
572
|
let resForObjHndl = res;
|
|
573
573
|
if (handleAsObjectInI18nFormat && !res && hasDefaultValue) {
|
|
574
574
|
resForObjHndl = defaultValue;
|
|
@@ -576,17 +576,17 @@ class Translator extends EventEmitter {
|
|
|
576
576
|
const handleAsObject = shouldHandleAsObject(resForObjHndl);
|
|
577
577
|
const resType = Object.prototype.toString.apply(resForObjHndl);
|
|
578
578
|
if (handleAsObjectInI18nFormat && resForObjHndl && handleAsObject && noObject.indexOf(resType) < 0 && !(isString(joinArrays) && Array.isArray(resForObjHndl))) {
|
|
579
|
-
if (!
|
|
579
|
+
if (!opt.returnObjects && !this.options.returnObjects) {
|
|
580
580
|
if (!this.options.returnedObjectHandler) {
|
|
581
581
|
this.logger.warn('accessing an object - but returnObjects options is not enabled!');
|
|
582
582
|
}
|
|
583
583
|
const r = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(resUsedKey, resForObjHndl, {
|
|
584
|
-
...
|
|
584
|
+
...opt,
|
|
585
585
|
ns: namespaces
|
|
586
586
|
}) : `key '${key} (${this.language})' returned an object instead of string.`;
|
|
587
587
|
if (returnDetails) {
|
|
588
588
|
resolved.res = r;
|
|
589
|
-
resolved.usedParams = this.getUsedParamsDetails(
|
|
589
|
+
resolved.usedParams = this.getUsedParamsDetails(opt);
|
|
590
590
|
return resolved;
|
|
591
591
|
}
|
|
592
592
|
return r;
|
|
@@ -600,7 +600,7 @@ class Translator extends EventEmitter {
|
|
|
600
600
|
const deepKey = `${newKeyToUse}${keySeparator}${m}`;
|
|
601
601
|
if (hasDefaultValue && !res) {
|
|
602
602
|
copy[m] = this.translate(deepKey, {
|
|
603
|
-
...
|
|
603
|
+
...opt,
|
|
604
604
|
defaultValue: shouldHandleAsObject(defaultValue) ? defaultValue[m] : undefined,
|
|
605
605
|
...{
|
|
606
606
|
joinArrays: false,
|
|
@@ -609,7 +609,7 @@ class Translator extends EventEmitter {
|
|
|
609
609
|
});
|
|
610
610
|
} else {
|
|
611
611
|
copy[m] = this.translate(deepKey, {
|
|
612
|
-
...
|
|
612
|
+
...opt,
|
|
613
613
|
...{
|
|
614
614
|
joinArrays: false,
|
|
615
615
|
ns: namespaces
|
|
@@ -623,7 +623,7 @@ class Translator extends EventEmitter {
|
|
|
623
623
|
}
|
|
624
624
|
} else if (handleAsObjectInI18nFormat && isString(joinArrays) && Array.isArray(res)) {
|
|
625
625
|
res = res.join(joinArrays);
|
|
626
|
-
if (res) res = this.extendTranslation(res, keys,
|
|
626
|
+
if (res) res = this.extendTranslation(res, keys, opt, lastKey);
|
|
627
627
|
} else {
|
|
628
628
|
let usedDefault = false;
|
|
629
629
|
let usedKey = false;
|
|
@@ -635,47 +635,47 @@ class Translator extends EventEmitter {
|
|
|
635
635
|
usedKey = true;
|
|
636
636
|
res = key;
|
|
637
637
|
}
|
|
638
|
-
const missingKeyNoValueFallbackToKey =
|
|
638
|
+
const missingKeyNoValueFallbackToKey = opt.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey;
|
|
639
639
|
const resForMissing = missingKeyNoValueFallbackToKey && usedKey ? undefined : res;
|
|
640
640
|
const updateMissing = hasDefaultValue && defaultValue !== res && this.options.updateMissing;
|
|
641
641
|
if (usedKey || usedDefault || updateMissing) {
|
|
642
642
|
this.logger.log(updateMissing ? 'updateKey' : 'missingKey', lng, namespace, key, updateMissing ? defaultValue : res);
|
|
643
643
|
if (keySeparator) {
|
|
644
644
|
const fk = this.resolve(key, {
|
|
645
|
-
...
|
|
645
|
+
...opt,
|
|
646
646
|
keySeparator: false
|
|
647
647
|
});
|
|
648
648
|
if (fk && fk.res) this.logger.warn('Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.');
|
|
649
649
|
}
|
|
650
650
|
let lngs = [];
|
|
651
|
-
const fallbackLngs = this.languageUtils.getFallbackCodes(this.options.fallbackLng,
|
|
651
|
+
const fallbackLngs = this.languageUtils.getFallbackCodes(this.options.fallbackLng, opt.lng || this.language);
|
|
652
652
|
if (this.options.saveMissingTo === 'fallback' && fallbackLngs && fallbackLngs[0]) {
|
|
653
653
|
for (let i = 0; i < fallbackLngs.length; i++) {
|
|
654
654
|
lngs.push(fallbackLngs[i]);
|
|
655
655
|
}
|
|
656
656
|
} else if (this.options.saveMissingTo === 'all') {
|
|
657
|
-
lngs = this.languageUtils.toResolveHierarchy(
|
|
657
|
+
lngs = this.languageUtils.toResolveHierarchy(opt.lng || this.language);
|
|
658
658
|
} else {
|
|
659
|
-
lngs.push(
|
|
659
|
+
lngs.push(opt.lng || this.language);
|
|
660
660
|
}
|
|
661
661
|
const send = (l, k, specificDefaultValue) => {
|
|
662
662
|
const defaultForMissing = hasDefaultValue && specificDefaultValue !== res ? specificDefaultValue : resForMissing;
|
|
663
663
|
if (this.options.missingKeyHandler) {
|
|
664
|
-
this.options.missingKeyHandler(l, namespace, k, defaultForMissing, updateMissing,
|
|
664
|
+
this.options.missingKeyHandler(l, namespace, k, defaultForMissing, updateMissing, opt);
|
|
665
665
|
} else if (this.backendConnector?.saveMissing) {
|
|
666
|
-
this.backendConnector.saveMissing(l, namespace, k, defaultForMissing, updateMissing,
|
|
666
|
+
this.backendConnector.saveMissing(l, namespace, k, defaultForMissing, updateMissing, opt);
|
|
667
667
|
}
|
|
668
668
|
this.emit('missingKey', l, namespace, k, res);
|
|
669
669
|
};
|
|
670
670
|
if (this.options.saveMissing) {
|
|
671
671
|
if (this.options.saveMissingPlurals && needsPluralHandling) {
|
|
672
672
|
lngs.forEach(language => {
|
|
673
|
-
const suffixes = this.pluralResolver.getSuffixes(language,
|
|
674
|
-
if (needsZeroSuffixLookup &&
|
|
673
|
+
const suffixes = this.pluralResolver.getSuffixes(language, opt);
|
|
674
|
+
if (needsZeroSuffixLookup && opt[`defaultValue${this.options.pluralSeparator}zero`] && suffixes.indexOf(`${this.options.pluralSeparator}zero`) < 0) {
|
|
675
675
|
suffixes.push(`${this.options.pluralSeparator}zero`);
|
|
676
676
|
}
|
|
677
677
|
suffixes.forEach(suffix => {
|
|
678
|
-
send([language], key + suffix,
|
|
678
|
+
send([language], key + suffix, opt[`defaultValue${suffix}`] || defaultValue);
|
|
679
679
|
});
|
|
680
680
|
});
|
|
681
681
|
} else {
|
|
@@ -683,7 +683,7 @@ class Translator extends EventEmitter {
|
|
|
683
683
|
}
|
|
684
684
|
}
|
|
685
685
|
}
|
|
686
|
-
res = this.extendTranslation(res, keys,
|
|
686
|
+
res = this.extendTranslation(res, keys, opt, resolved, lastKey);
|
|
687
687
|
if (usedKey && res === key && this.options.appendNamespaceToMissingKey) res = `${namespace}:${key}`;
|
|
688
688
|
if ((usedKey || usedDefault) && this.options.parseMissingKeyHandler) {
|
|
689
689
|
res = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${namespace}:${key}` : key, usedDefault ? res : undefined);
|
|
@@ -691,75 +691,75 @@ class Translator extends EventEmitter {
|
|
|
691
691
|
}
|
|
692
692
|
if (returnDetails) {
|
|
693
693
|
resolved.res = res;
|
|
694
|
-
resolved.usedParams = this.getUsedParamsDetails(
|
|
694
|
+
resolved.usedParams = this.getUsedParamsDetails(opt);
|
|
695
695
|
return resolved;
|
|
696
696
|
}
|
|
697
697
|
return res;
|
|
698
698
|
}
|
|
699
|
-
extendTranslation(res, key,
|
|
699
|
+
extendTranslation(res, key, opt, resolved, lastKey) {
|
|
700
700
|
var _this = this;
|
|
701
701
|
if (this.i18nFormat?.parse) {
|
|
702
702
|
res = this.i18nFormat.parse(res, {
|
|
703
703
|
...this.options.interpolation.defaultVariables,
|
|
704
|
-
...
|
|
705
|
-
},
|
|
704
|
+
...opt
|
|
705
|
+
}, opt.lng || this.language || resolved.usedLng, resolved.usedNS, resolved.usedKey, {
|
|
706
706
|
resolved
|
|
707
707
|
});
|
|
708
|
-
} else if (!
|
|
709
|
-
if (
|
|
710
|
-
...
|
|
708
|
+
} else if (!opt.skipInterpolation) {
|
|
709
|
+
if (opt.interpolation) this.interpolator.init({
|
|
710
|
+
...opt,
|
|
711
711
|
...{
|
|
712
712
|
interpolation: {
|
|
713
713
|
...this.options.interpolation,
|
|
714
|
-
...
|
|
714
|
+
...opt.interpolation
|
|
715
715
|
}
|
|
716
716
|
}
|
|
717
717
|
});
|
|
718
|
-
const skipOnVariables = isString(res) && (
|
|
718
|
+
const skipOnVariables = isString(res) && (opt?.interpolation?.skipOnVariables !== undefined ? opt.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
|
|
719
719
|
let nestBef;
|
|
720
720
|
if (skipOnVariables) {
|
|
721
721
|
const nb = res.match(this.interpolator.nestingRegexp);
|
|
722
722
|
nestBef = nb && nb.length;
|
|
723
723
|
}
|
|
724
|
-
let data =
|
|
724
|
+
let data = opt.replace && !isString(opt.replace) ? opt.replace : opt;
|
|
725
725
|
if (this.options.interpolation.defaultVariables) data = {
|
|
726
726
|
...this.options.interpolation.defaultVariables,
|
|
727
727
|
...data
|
|
728
728
|
};
|
|
729
|
-
res = this.interpolator.interpolate(res, data,
|
|
729
|
+
res = this.interpolator.interpolate(res, data, opt.lng || this.language || resolved.usedLng, opt);
|
|
730
730
|
if (skipOnVariables) {
|
|
731
731
|
const na = res.match(this.interpolator.nestingRegexp);
|
|
732
732
|
const nestAft = na && na.length;
|
|
733
|
-
if (nestBef < nestAft)
|
|
733
|
+
if (nestBef < nestAft) opt.nest = false;
|
|
734
734
|
}
|
|
735
|
-
if (!
|
|
736
|
-
if (
|
|
735
|
+
if (!opt.lng && resolved && resolved.res) opt.lng = this.language || resolved.usedLng;
|
|
736
|
+
if (opt.nest !== false) res = this.interpolator.nest(res, function () {
|
|
737
737
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
738
738
|
args[_key] = arguments[_key];
|
|
739
739
|
}
|
|
740
|
-
if (lastKey?.[0] === args[0] && !
|
|
740
|
+
if (lastKey?.[0] === args[0] && !opt.context) {
|
|
741
741
|
_this.logger.warn(`It seems you are nesting recursively key: ${args[0]} in key: ${key[0]}`);
|
|
742
742
|
return null;
|
|
743
743
|
}
|
|
744
744
|
return _this.translate(...args, key);
|
|
745
|
-
},
|
|
746
|
-
if (
|
|
745
|
+
}, opt);
|
|
746
|
+
if (opt.interpolation) this.interpolator.reset();
|
|
747
747
|
}
|
|
748
|
-
const postProcess =
|
|
748
|
+
const postProcess = opt.postProcess || this.options.postProcess;
|
|
749
749
|
const postProcessorNames = isString(postProcess) ? [postProcess] : postProcess;
|
|
750
|
-
if (res != null && postProcessorNames?.length &&
|
|
750
|
+
if (res != null && postProcessorNames?.length && opt.applyPostProcessor !== false) {
|
|
751
751
|
res = postProcessor.handle(postProcessorNames, res, key, this.options && this.options.postProcessPassResolved ? {
|
|
752
752
|
i18nResolved: {
|
|
753
753
|
...resolved,
|
|
754
|
-
usedParams: this.getUsedParamsDetails(
|
|
754
|
+
usedParams: this.getUsedParamsDetails(opt)
|
|
755
755
|
},
|
|
756
|
-
...
|
|
757
|
-
} :
|
|
756
|
+
...opt
|
|
757
|
+
} : opt, this);
|
|
758
758
|
}
|
|
759
759
|
return res;
|
|
760
760
|
}
|
|
761
761
|
resolve(keys) {
|
|
762
|
-
let
|
|
762
|
+
let opt = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
763
763
|
let found;
|
|
764
764
|
let usedKey;
|
|
765
765
|
let exactUsedKey;
|
|
@@ -768,15 +768,15 @@ class Translator extends EventEmitter {
|
|
|
768
768
|
if (isString(keys)) keys = [keys];
|
|
769
769
|
keys.forEach(k => {
|
|
770
770
|
if (this.isValidLookup(found)) return;
|
|
771
|
-
const extracted = this.extractFromKey(k,
|
|
771
|
+
const extracted = this.extractFromKey(k, opt);
|
|
772
772
|
const key = extracted.key;
|
|
773
773
|
usedKey = key;
|
|
774
774
|
let namespaces = extracted.namespaces;
|
|
775
775
|
if (this.options.fallbackNS) namespaces = namespaces.concat(this.options.fallbackNS);
|
|
776
|
-
const needsPluralHandling =
|
|
777
|
-
const needsZeroSuffixLookup = needsPluralHandling && !
|
|
778
|
-
const needsContextHandling =
|
|
779
|
-
const codes =
|
|
776
|
+
const needsPluralHandling = opt.count !== undefined && !isString(opt.count);
|
|
777
|
+
const needsZeroSuffixLookup = needsPluralHandling && !opt.ordinal && opt.count === 0;
|
|
778
|
+
const needsContextHandling = opt.context !== undefined && (isString(opt.context) || typeof opt.context === 'number') && opt.context !== '';
|
|
779
|
+
const codes = opt.lngs ? opt.lngs : this.languageUtils.toResolveHierarchy(opt.lng || this.language, opt.fallbackLng);
|
|
780
780
|
namespaces.forEach(ns => {
|
|
781
781
|
if (this.isValidLookup(found)) return;
|
|
782
782
|
usedNS = ns;
|
|
@@ -789,15 +789,15 @@ class Translator extends EventEmitter {
|
|
|
789
789
|
usedLng = code;
|
|
790
790
|
const finalKeys = [key];
|
|
791
791
|
if (this.i18nFormat?.addLookupKeys) {
|
|
792
|
-
this.i18nFormat.addLookupKeys(finalKeys, key, code, ns,
|
|
792
|
+
this.i18nFormat.addLookupKeys(finalKeys, key, code, ns, opt);
|
|
793
793
|
} else {
|
|
794
794
|
let pluralSuffix;
|
|
795
|
-
if (needsPluralHandling) pluralSuffix = this.pluralResolver.getSuffix(code,
|
|
795
|
+
if (needsPluralHandling) pluralSuffix = this.pluralResolver.getSuffix(code, opt.count, opt);
|
|
796
796
|
const zeroSuffix = `${this.options.pluralSeparator}zero`;
|
|
797
797
|
const ordinalPrefix = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
798
798
|
if (needsPluralHandling) {
|
|
799
799
|
finalKeys.push(key + pluralSuffix);
|
|
800
|
-
if (
|
|
800
|
+
if (opt.ordinal && pluralSuffix.indexOf(ordinalPrefix) === 0) {
|
|
801
801
|
finalKeys.push(key + pluralSuffix.replace(ordinalPrefix, this.options.pluralSeparator));
|
|
802
802
|
}
|
|
803
803
|
if (needsZeroSuffixLookup) {
|
|
@@ -805,11 +805,11 @@ class Translator extends EventEmitter {
|
|
|
805
805
|
}
|
|
806
806
|
}
|
|
807
807
|
if (needsContextHandling) {
|
|
808
|
-
const contextKey = `${key}${this.options.contextSeparator}${
|
|
808
|
+
const contextKey = `${key}${this.options.contextSeparator}${opt.context}`;
|
|
809
809
|
finalKeys.push(contextKey);
|
|
810
810
|
if (needsPluralHandling) {
|
|
811
811
|
finalKeys.push(contextKey + pluralSuffix);
|
|
812
|
-
if (
|
|
812
|
+
if (opt.ordinal && pluralSuffix.indexOf(ordinalPrefix) === 0) {
|
|
813
813
|
finalKeys.push(contextKey + pluralSuffix.replace(ordinalPrefix, this.options.pluralSeparator));
|
|
814
814
|
}
|
|
815
815
|
if (needsZeroSuffixLookup) {
|
|
@@ -822,7 +822,7 @@ class Translator extends EventEmitter {
|
|
|
822
822
|
while (possibleKey = finalKeys.pop()) {
|
|
823
823
|
if (!this.isValidLookup(found)) {
|
|
824
824
|
exactUsedKey = possibleKey;
|
|
825
|
-
found = this.getResource(code, ns, possibleKey,
|
|
825
|
+
found = this.getResource(code, ns, possibleKey, opt);
|
|
826
826
|
}
|
|
827
827
|
}
|
|
828
828
|
});
|
|
@@ -934,6 +934,8 @@ class LanguageUtil {
|
|
|
934
934
|
if (!found && this.options.supportedLngs) {
|
|
935
935
|
codes.forEach(code => {
|
|
936
936
|
if (found) return;
|
|
937
|
+
const lngScOnly = this.getScriptPartFromCode(code);
|
|
938
|
+
if (this.isSupportedCode(lngScOnly)) return found = lngScOnly;
|
|
937
939
|
const lngOnly = this.getLanguagePartFromCode(code);
|
|
938
940
|
if (this.isSupportedCode(lngOnly)) return found = lngOnly;
|
|
939
941
|
found = this.options.supportedLngs.find(supportedLng => {
|
|
@@ -1966,6 +1968,10 @@ class I18n extends EventEmitter {
|
|
|
1966
1968
|
break;
|
|
1967
1969
|
}
|
|
1968
1970
|
}
|
|
1971
|
+
if (!this.resolvedLanguage && this.languages.indexOf(l) < 0 && this.store.hasLanguageSomeTranslations(l)) {
|
|
1972
|
+
this.resolvedLanguage = l;
|
|
1973
|
+
if (this.languages.indexOf(l) < 0) this.languages.unshift(l);
|
|
1974
|
+
}
|
|
1969
1975
|
}
|
|
1970
1976
|
changeLanguage(lng, callback) {
|
|
1971
1977
|
var _this2 = this;
|
|
@@ -1980,11 +1986,13 @@ class I18n extends EventEmitter {
|
|
|
1980
1986
|
};
|
|
1981
1987
|
const done = (err, l) => {
|
|
1982
1988
|
if (l) {
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1989
|
+
if (this.isLanguageChangingTo === lng) {
|
|
1990
|
+
setLngProps(l);
|
|
1991
|
+
this.translator.changeLanguage(l);
|
|
1992
|
+
this.isLanguageChangingTo = undefined;
|
|
1993
|
+
this.emit('languageChanged', l);
|
|
1994
|
+
this.logger.log('languageChanged', l);
|
|
1995
|
+
}
|
|
1988
1996
|
} else {
|
|
1989
1997
|
this.isLanguageChangingTo = undefined;
|
|
1990
1998
|
}
|
|
@@ -1997,7 +2005,8 @@ class I18n extends EventEmitter {
|
|
|
1997
2005
|
};
|
|
1998
2006
|
const setLng = lngs => {
|
|
1999
2007
|
if (!lng && !lngs && this.services.languageDetector) lngs = [];
|
|
2000
|
-
const
|
|
2008
|
+
const fl = isString(lngs) ? lngs : lngs && lngs[0];
|
|
2009
|
+
const l = this.store.hasLanguageSomeTranslations(fl) ? fl : this.services.languageUtils.getBestMatchFromCodes(isString(lngs) ? [lngs] : lngs);
|
|
2001
2010
|
if (l) {
|
|
2002
2011
|
if (!this.language) {
|
|
2003
2012
|
setLngProps(l);
|
|
@@ -2025,29 +2034,29 @@ class I18n extends EventEmitter {
|
|
|
2025
2034
|
getFixedT(lng, ns, keyPrefix) {
|
|
2026
2035
|
var _this3 = this;
|
|
2027
2036
|
const fixedT = function (key, opts) {
|
|
2028
|
-
let
|
|
2037
|
+
let o;
|
|
2029
2038
|
if (typeof opts !== 'object') {
|
|
2030
2039
|
for (var _len3 = arguments.length, rest = new Array(_len3 > 2 ? _len3 - 2 : 0), _key3 = 2; _key3 < _len3; _key3++) {
|
|
2031
2040
|
rest[_key3 - 2] = arguments[_key3];
|
|
2032
2041
|
}
|
|
2033
|
-
|
|
2042
|
+
o = _this3.options.overloadTranslationOptionHandler([key, opts].concat(rest));
|
|
2034
2043
|
} else {
|
|
2035
|
-
|
|
2044
|
+
o = {
|
|
2036
2045
|
...opts
|
|
2037
2046
|
};
|
|
2038
2047
|
}
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
if (
|
|
2048
|
+
o.lng = o.lng || fixedT.lng;
|
|
2049
|
+
o.lngs = o.lngs || fixedT.lngs;
|
|
2050
|
+
o.ns = o.ns || fixedT.ns;
|
|
2051
|
+
if (o.keyPrefix !== '') o.keyPrefix = o.keyPrefix || keyPrefix || fixedT.keyPrefix;
|
|
2043
2052
|
const keySeparator = _this3.options.keySeparator || '.';
|
|
2044
2053
|
let resultKey;
|
|
2045
|
-
if (
|
|
2046
|
-
resultKey = key.map(k => `${
|
|
2054
|
+
if (o.keyPrefix && Array.isArray(key)) {
|
|
2055
|
+
resultKey = key.map(k => `${o.keyPrefix}${keySeparator}${k}`);
|
|
2047
2056
|
} else {
|
|
2048
|
-
resultKey =
|
|
2057
|
+
resultKey = o.keyPrefix ? `${o.keyPrefix}${keySeparator}${key}` : key;
|
|
2049
2058
|
}
|
|
2050
|
-
return _this3.t(resultKey,
|
|
2059
|
+
return _this3.t(resultKey, o);
|
|
2051
2060
|
};
|
|
2052
2061
|
if (isString(lng)) {
|
|
2053
2062
|
fixedT.lng = lng;
|
|
@@ -2247,6 +2256,6 @@ function i18n(getElement, resources) {
|
|
|
2247
2256
|
}
|
|
2248
2257
|
|
|
2249
2258
|
exports.i18n = i18n;
|
|
2250
|
-
//# sourceMappingURL=i18n-
|
|
2259
|
+
//# sourceMappingURL=i18n-D9iWFntP.js.map
|
|
2251
2260
|
|
|
2252
|
-
//# sourceMappingURL=i18n-
|
|
2261
|
+
//# sourceMappingURL=i18n-D9iWFntP.js.map
|