@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.
Files changed (438) hide show
  1. package/dist/cjs/{annotation-body-BwdNcAAd.js → annotation-body-BBlFDtNQ.js} +3 -3
  2. package/dist/cjs/{annotation-body-BwdNcAAd.js.map → annotation-body-BBlFDtNQ.js.map} +1 -1
  3. package/dist/cjs/{annotation-list-renvooi-values-GE2SwBhG.js → annotation-list-renvooi-values-BRsXjGPr.js} +3 -3
  4. package/dist/cjs/{annotation-list-renvooi-values-GE2SwBhG.js.map → annotation-list-renvooi-values-BRsXjGPr.js.map} +1 -1
  5. package/dist/cjs/{annotation-symbol-slot-Cvk1q2gb.js → annotation-symbol-slot-Ko-yyBqQ.js} +3 -3
  6. package/dist/cjs/{annotation-symbol-slot-Cvk1q2gb.js.map → annotation-symbol-slot-Ko-yyBqQ.js.map} +1 -1
  7. package/dist/cjs/dso-accordion-section.cjs.entry.js +1 -1
  8. package/dist/cjs/dso-accordion.cjs.entry.js +1 -1
  9. package/dist/cjs/dso-action-list-item.cjs.entry.js +1 -1
  10. package/dist/cjs/dso-action-list.cjs.entry.js +1 -1
  11. package/dist/cjs/dso-advanced-select.cjs.entry.js +1 -1
  12. package/dist/cjs/dso-alert.dso-badge.dso-image-overlay.dso-ozon-content.dso-panel.dso-table.entry.cjs.js.map +1 -1
  13. package/dist/cjs/dso-alert_6.cjs.entry.js +7 -7
  14. package/dist/cjs/dso-alert_6.cjs.entry.js.map +1 -1
  15. package/dist/cjs/dso-annotation-activiteit.cjs.entry.js +4 -4
  16. package/dist/cjs/dso-annotation-gebiedsaanwijzing.cjs.entry.js +3 -3
  17. package/dist/cjs/dso-annotation-kaart.cjs.entry.js +2 -2
  18. package/dist/cjs/dso-annotation-locatie.dso-document-component.entry.cjs.js.map +1 -1
  19. package/dist/cjs/dso-annotation-locatie_2.cjs.entry.js +4 -4
  20. package/dist/cjs/dso-annotation-locatie_2.cjs.entry.js.map +1 -1
  21. package/dist/cjs/dso-annotation-omgevingsnormwaarde.cjs.entry.js +4 -4
  22. package/dist/cjs/dso-attachments-counter_2.cjs.entry.js +1 -1
  23. package/dist/cjs/dso-autosuggest.cjs.entry.js +2 -2
  24. package/dist/cjs/dso-banner.cjs.entry.js +1 -1
  25. package/dist/cjs/dso-card-container.cjs.entry.js +1 -1
  26. package/dist/cjs/dso-card.cjs.entry.js +1 -1
  27. package/dist/cjs/dso-contact-information.cjs.entry.js +1 -1
  28. package/dist/cjs/dso-date-picker-legacy.cjs.entry.js +1 -1
  29. package/dist/cjs/dso-date-picker.cjs.entry.js +1 -1
  30. package/dist/cjs/dso-document-card.cjs.entry.js +1 -1
  31. package/dist/cjs/dso-dropdown-menu.cjs.entry.js +1 -1
  32. package/dist/cjs/dso-header.cjs.entry.js +2 -2
  33. package/dist/cjs/dso-highlight-box.cjs.entry.js +1 -1
  34. package/dist/cjs/dso-icon.cjs.entry.js +9 -2
  35. package/dist/cjs/dso-icon.cjs.entry.js.map +1 -1
  36. package/dist/cjs/dso-icon.entry.cjs.js.map +1 -1
  37. package/dist/cjs/dso-info-button.cjs.entry.js +1 -1
  38. package/dist/cjs/dso-info_2.cjs.entry.js +2 -2
  39. package/dist/cjs/dso-input-range.cjs.entry.js +1 -1
  40. package/dist/cjs/dso-label_3.cjs.entry.js +2 -2
  41. package/dist/cjs/dso-legend-item.cjs.entry.js +1 -1
  42. package/dist/cjs/dso-list-button.cjs.entry.js +1 -1
  43. package/dist/cjs/dso-logo.cjs.entry.js +1 -1
  44. package/dist/cjs/dso-map-base-layers.cjs.entry.js +2 -2
  45. package/dist/cjs/dso-map-controls.cjs.entry.js +3 -3
  46. package/dist/cjs/dso-map-controls.cjs.entry.js.map +1 -1
  47. package/dist/cjs/dso-map-controls.entry.cjs.js.map +1 -1
  48. package/dist/cjs/dso-map-overlays.cjs.entry.js +2 -2
  49. package/dist/cjs/dso-mark-bar.cjs.entry.js +1 -1
  50. package/dist/cjs/dso-modal.cjs.entry.js +2 -2
  51. package/dist/cjs/dso-onboarding-tip.cjs.entry.js +1788 -0
  52. package/dist/cjs/dso-onboarding-tip.cjs.entry.js.map +1 -0
  53. package/dist/cjs/dso-onboarding-tip.entry.cjs.js.map +1 -0
  54. package/dist/cjs/dso-pagination.cjs.entry.js +1 -1
  55. package/dist/cjs/dso-plekinfo-card.cjs.entry.js +2 -2
  56. package/dist/cjs/dso-progress-bar.cjs.entry.js +2 -2
  57. package/dist/cjs/dso-progress-indicator.cjs.entry.js +3 -3
  58. package/dist/cjs/dso-project-item.cjs.entry.js +2 -2
  59. package/dist/cjs/dso-responsive-element.cjs.entry.js +2 -2
  60. package/dist/cjs/dso-scrollable.cjs.entry.js +3 -3
  61. package/dist/cjs/dso-skiplink.cjs.entry.js +2 -2
  62. package/dist/cjs/dso-survey-rating.cjs.entry.js +4 -4
  63. package/dist/cjs/dso-survey-rating.cjs.entry.js.map +1 -1
  64. package/dist/cjs/dso-survey-rating.entry.cjs.js.map +1 -1
  65. package/dist/cjs/dso-tab.cjs.entry.js +1 -1
  66. package/dist/cjs/dso-tabs.cjs.entry.js +2 -2
  67. package/dist/cjs/dso-toggletip.cjs.entry.js +2 -2
  68. package/dist/cjs/dso-toolkit.cjs.js +3 -3
  69. package/dist/cjs/dso-toolkit.cjs.js.map +1 -1
  70. package/dist/cjs/dso-tooltip.cjs.entry.js +2 -2
  71. package/dist/cjs/dso-tree-view.cjs.entry.js +2 -2
  72. package/dist/cjs/dso-viewer-grid.cjs.entry.js +4 -4
  73. package/dist/cjs/dso-viewer-grid.cjs.entry.js.map +1 -1
  74. package/dist/cjs/dso-viewer-grid.entry.cjs.js.map +1 -1
  75. package/dist/cjs/dsot-document-component-demo.cjs.entry.js +1 -1
  76. package/dist/cjs/{i18n-DXkB0Cg-.js → i18n-D9iWFntP.js} +106 -97
  77. package/dist/cjs/i18n-D9iWFntP.js.map +1 -0
  78. package/dist/cjs/{index-CkTcEJuV.js → index-DvrTSHdI.js} +24 -6
  79. package/dist/cjs/index-DvrTSHdI.js.map +1 -0
  80. package/dist/cjs/loader.cjs.js +2 -2
  81. package/dist/collection/collection-manifest.json +2 -1
  82. package/dist/collection/components/accordion/accordion.js +2 -2
  83. package/dist/collection/components/accordion/components/accordion-section.js +14 -14
  84. package/dist/collection/components/action-list/action-list.js +1 -1
  85. package/dist/collection/components/action-list/components/action-list-item.js +5 -5
  86. package/dist/collection/components/advanced-select/advanced-select.js +3 -1
  87. package/dist/collection/components/advanced-select/advanced-select.js.map +1 -1
  88. package/dist/collection/components/alert/alert.js +4 -4
  89. package/dist/collection/components/annotation/annotation-activiteit/annotation-activiteit.js +7 -6
  90. package/dist/collection/components/annotation/annotation-activiteit/annotation-activiteit.js.map +1 -1
  91. package/dist/collection/components/annotation/annotation-gebiedsaanwijzing/annotation-gebiedsaanwijzing.js +4 -4
  92. package/dist/collection/components/annotation/annotation-kaart/annotation-kaart.js +3 -3
  93. package/dist/collection/components/annotation/annotation-locatie/annotation-locatie.js +4 -4
  94. package/dist/collection/components/annotation/annotation-omgevingsnormwaarde/annotation-omgevingsnormwaarde.js +7 -6
  95. package/dist/collection/components/annotation/annotation-omgevingsnormwaarde/annotation-omgevingsnormwaarde.js.map +1 -1
  96. package/dist/collection/components/attachments-counter/attachments-counter.js +1 -1
  97. package/dist/collection/components/autosuggest/autosuggest.js +7 -5
  98. package/dist/collection/components/autosuggest/autosuggest.js.map +1 -1
  99. package/dist/collection/components/badge/badge.js +1 -1
  100. package/dist/collection/components/banner/banner.js +3 -3
  101. package/dist/collection/components/card/card.js +3 -3
  102. package/dist/collection/components/card-container/card-container.js +1 -1
  103. package/dist/collection/components/date-picker/date-picker.js +10 -10
  104. package/dist/collection/components/date-picker-legacy/date-picker-legacy.js +12 -12
  105. package/dist/collection/components/document-card/document-card.js +2 -2
  106. package/dist/collection/components/document-component/document-component.css +24 -24
  107. package/dist/collection/components/document-component/document-component.js +24 -22
  108. package/dist/collection/components/document-component/document-component.js.map +1 -1
  109. package/dist/collection/components/document-component-demo/document-component.demo.js +5 -4
  110. package/dist/collection/components/document-component-demo/document-component.demo.js.map +1 -1
  111. package/dist/collection/components/dropdown-menu/dropdown-menu.js +7 -7
  112. package/dist/collection/components/expandable/expandable.js +3 -3
  113. package/dist/collection/components/header/header.js +11 -10
  114. package/dist/collection/components/header/header.js.map +1 -1
  115. package/dist/collection/components/highlight-box/highlight-box.js +5 -5
  116. package/dist/collection/components/icon/icon.js +4 -2
  117. package/dist/collection/components/icon/icon.js.map +1 -1
  118. package/dist/collection/components/image-overlay/image-overlay.css +24 -24
  119. package/dist/collection/components/image-overlay/image-overlay.js +1 -1
  120. package/dist/collection/components/info/info.js +2 -2
  121. package/dist/collection/components/info-button/info-button.js +3 -3
  122. package/dist/collection/components/input-range/input-range.js +7 -7
  123. package/dist/collection/components/label/label.js +4 -4
  124. package/dist/collection/components/legend-item/legend-item.js +3 -3
  125. package/dist/collection/components/list-button/list-button.js +8 -8
  126. package/dist/collection/components/logo/logo.js +5 -5
  127. package/dist/collection/components/map-base-layers/map-base-layers.js +2 -1
  128. package/dist/collection/components/map-base-layers/map-base-layers.js.map +1 -1
  129. package/dist/collection/components/map-controls/map-controls.css +24 -24
  130. package/dist/collection/components/map-controls/map-controls.js +2 -2
  131. package/dist/collection/components/map-overlays/map-overlays.js +2 -1
  132. package/dist/collection/components/map-overlays/map-overlays.js.map +1 -1
  133. package/dist/collection/components/mark-bar/mark-bar.js +4 -4
  134. package/dist/collection/components/modal/modal.js +5 -5
  135. package/dist/collection/components/onboarding-tip/onboarding-tip.css +160 -0
  136. package/dist/collection/components/onboarding-tip/onboarding-tip.interfaces.js +2 -0
  137. package/dist/collection/components/onboarding-tip/onboarding-tip.interfaces.js.map +1 -0
  138. package/dist/collection/components/onboarding-tip/onboarding-tip.js +196 -0
  139. package/dist/collection/components/onboarding-tip/onboarding-tip.js.map +1 -0
  140. package/dist/collection/components/ozon-content/ozon-content.css +24 -24
  141. package/dist/collection/components/ozon-content/ozon-content.js +5 -3
  142. package/dist/collection/components/ozon-content/ozon-content.js.map +1 -1
  143. package/dist/collection/components/pagination/pagination.js +3 -2
  144. package/dist/collection/components/pagination/pagination.js.map +1 -1
  145. package/dist/collection/components/panel/panel.js +2 -2
  146. package/dist/collection/components/plekinfo-card/plekinfo-card.js +5 -5
  147. package/dist/collection/components/progress-bar/progress-bar.js +4 -4
  148. package/dist/collection/components/progress-indicator/progress-indicator.js +4 -4
  149. package/dist/collection/components/project-item/project-item.js +2 -2
  150. package/dist/collection/components/renvooi/renvooi.js +2 -1
  151. package/dist/collection/components/renvooi/renvooi.js.map +1 -1
  152. package/dist/collection/components/responsive-element/responsive-element.js +1 -1
  153. package/dist/collection/components/scrollable/scrollable.js +2 -2
  154. package/dist/collection/components/selectable/selectable.js +13 -13
  155. package/dist/collection/components/skiplink/skiplink.js +3 -3
  156. package/dist/collection/components/slide-toggle/slide-toggle.js +6 -6
  157. package/dist/collection/components/survey-rating/survey-rating.css +12 -12
  158. package/dist/collection/components/survey-rating/survey-rating.js +3 -3
  159. package/dist/collection/components/survey-rating/survey-rating.js.map +1 -1
  160. package/dist/collection/components/table/table.css +24 -24
  161. package/dist/collection/components/table/table.js +3 -3
  162. package/dist/collection/components/tabs/components/tab.js +3 -3
  163. package/dist/collection/components/tabs/tabs.js +1 -1
  164. package/dist/collection/components/toggletip/toggletip.js +5 -5
  165. package/dist/collection/components/tooltip/tooltip.js +8 -8
  166. package/dist/collection/components/tree-view/tree-view.js +2 -1
  167. package/dist/collection/components/tree-view/tree-view.js.map +1 -1
  168. package/dist/collection/components/viewer-grid/viewer-grid.css +41 -36
  169. package/dist/collection/components/viewer-grid/viewer-grid.js +13 -12
  170. package/dist/collection/components/viewer-grid/viewer-grid.js.map +1 -1
  171. package/dist/components/document-component.js +2 -2
  172. package/dist/components/document-component.js.map +1 -1
  173. package/dist/components/dso-annotation-activiteit.js +1 -1
  174. package/dist/components/dso-header.js +1 -1
  175. package/dist/components/dso-map-base-layers.js +1 -1
  176. package/dist/components/dso-map-controls.js +1 -1
  177. package/dist/components/dso-map-controls.js.map +1 -1
  178. package/dist/components/dso-onboarding-tip.d.ts +11 -0
  179. package/dist/components/dso-onboarding-tip.js +1812 -0
  180. package/dist/components/dso-onboarding-tip.js.map +1 -0
  181. package/dist/components/dso-pagination.js +1 -1
  182. package/dist/components/dso-plekinfo-card.js +1 -1
  183. package/dist/components/dso-progress-bar.js +1 -1
  184. package/dist/components/dso-project-item.js +1 -1
  185. package/dist/components/dso-skiplink.js +1 -1
  186. package/dist/components/dso-survey-rating.js +3 -3
  187. package/dist/components/dso-survey-rating.js.map +1 -1
  188. package/dist/components/dso-tabs.js +1 -1
  189. package/dist/components/dso-tree-view.js +1 -1
  190. package/dist/components/dso-viewer-grid.js +3 -3
  191. package/dist/components/dso-viewer-grid.js.map +1 -1
  192. package/dist/components/dsot-document-component-demo.js +1 -1
  193. package/dist/components/i18n.js +104 -95
  194. package/dist/components/i18n.js.map +1 -1
  195. package/dist/components/icon.js +8 -1
  196. package/dist/components/icon.js.map +1 -1
  197. package/dist/components/image-overlay.js +1 -1
  198. package/dist/components/image-overlay.js.map +1 -1
  199. package/dist/components/index.d.ts +2 -0
  200. package/dist/components/index.js +2 -1
  201. package/dist/components/index.js.map +1 -1
  202. package/dist/components/ozon-content.js +3 -3
  203. package/dist/components/ozon-content.js.map +1 -1
  204. package/dist/components/progress-indicator.js +1 -1
  205. package/dist/components/responsive-element.js +1 -1
  206. package/dist/components/scrollable.js +2 -2
  207. package/dist/components/selectable.js +1 -1
  208. package/dist/components/slide-toggle.js +1 -1
  209. package/dist/components/table.js +2 -2
  210. package/dist/components/table.js.map +1 -1
  211. package/dist/components/toggletip.js +1 -1
  212. package/dist/components/tooltip.js +1 -1
  213. package/dist/dso-toolkit/dso-alert.dso-badge.dso-image-overlay.dso-ozon-content.dso-panel.dso-table.entry.esm.js.map +1 -1
  214. package/dist/dso-toolkit/dso-annotation-locatie.dso-document-component.entry.esm.js.map +1 -1
  215. package/dist/dso-toolkit/dso-icon.entry.esm.js.map +1 -1
  216. package/dist/dso-toolkit/dso-map-controls.entry.esm.js.map +1 -1
  217. package/dist/dso-toolkit/dso-onboarding-tip.entry.esm.js.map +1 -0
  218. package/dist/dso-toolkit/dso-survey-rating.entry.esm.js.map +1 -1
  219. package/dist/dso-toolkit/dso-toolkit.esm.js +1 -1
  220. package/dist/dso-toolkit/dso-toolkit.esm.js.map +1 -1
  221. package/dist/dso-toolkit/dso-viewer-grid.entry.esm.js.map +1 -1
  222. package/dist/dso-toolkit/{p-3f85169a.entry.js → p-00431d87.entry.js} +2 -2
  223. package/dist/dso-toolkit/{p-0a2dd4a9.entry.js → p-077f0a02.entry.js} +2 -2
  224. package/dist/dso-toolkit/{p-61dfc1f5.entry.js → p-08aa7f78.entry.js} +2 -2
  225. package/dist/dso-toolkit/{p-a66fd056.entry.js → p-0b902049.entry.js} +2 -2
  226. package/dist/dso-toolkit/{p-24f64459.entry.js → p-13042742.entry.js} +2 -2
  227. package/dist/dso-toolkit/{p-b673cbdb.entry.js → p-1636f9be.entry.js} +2 -2
  228. package/dist/dso-toolkit/{p-49af1837.entry.js → p-1f7f6d8b.entry.js} +2 -2
  229. package/dist/dso-toolkit/{p-5b25e608.entry.js → p-23c5e409.entry.js} +2 -2
  230. package/dist/dso-toolkit/{p-91f1ac00.entry.js → p-2711b352.entry.js} +2 -2
  231. package/dist/dso-toolkit/{p-6b6b5ed2.entry.js → p-2a0e7fab.entry.js} +2 -2
  232. package/dist/dso-toolkit/{p-7b7ae40b.entry.js → p-3092991c.entry.js} +2 -2
  233. package/dist/dso-toolkit/p-31754dd5.entry.js +2 -0
  234. package/dist/dso-toolkit/{p-35b096ec.entry.js → p-32081789.entry.js} +2 -2
  235. package/dist/dso-toolkit/{p-7531a336.entry.js → p-37864ec3.entry.js} +2 -2
  236. package/dist/dso-toolkit/{p-1d96f67a.entry.js → p-38a17746.entry.js} +2 -2
  237. package/dist/dso-toolkit/{p-5f01431d.entry.js → p-3dc6df90.entry.js} +2 -2
  238. package/dist/dso-toolkit/{p-e87edda8.entry.js → p-4282580b.entry.js} +2 -2
  239. package/dist/dso-toolkit/{p-1da9f680.entry.js → p-45a523e5.entry.js} +2 -2
  240. package/dist/dso-toolkit/{p-55176bef.entry.js → p-47936ff6.entry.js} +2 -2
  241. package/dist/dso-toolkit/p-47bdc747.entry.js +2 -0
  242. package/dist/dso-toolkit/p-47bdc747.entry.js.map +1 -0
  243. package/dist/dso-toolkit/{p-70b9abf1.entry.js → p-487f46df.entry.js} +2 -2
  244. package/dist/dso-toolkit/{p-759d18f9.entry.js → p-49fc2235.entry.js} +2 -2
  245. package/dist/dso-toolkit/{p-a250b931.entry.js → p-4a034e40.entry.js} +2 -2
  246. package/dist/dso-toolkit/{p-5509732c.entry.js → p-4a5cc3fc.entry.js} +2 -2
  247. package/dist/dso-toolkit/p-5183876a.entry.js +2 -0
  248. package/dist/dso-toolkit/{p-43b5e74b.entry.js.map → p-5183876a.entry.js.map} +1 -1
  249. package/dist/dso-toolkit/{p-c50310e2.entry.js → p-5193e894.entry.js} +2 -2
  250. package/dist/dso-toolkit/{p-ac221ee6.entry.js → p-53b338f1.entry.js} +2 -2
  251. package/dist/dso-toolkit/{p-7f8fc024.entry.js → p-583bd6db.entry.js} +2 -2
  252. package/dist/dso-toolkit/p-6070a869.entry.js +2 -0
  253. package/dist/dso-toolkit/{p-7b715bdf.entry.js.map → p-6070a869.entry.js.map} +1 -1
  254. package/dist/dso-toolkit/{p-4956ca51.entry.js → p-621a9bbb.entry.js} +2 -2
  255. package/dist/dso-toolkit/{p-4eefa210.entry.js → p-6a2a4141.entry.js} +2 -2
  256. package/dist/dso-toolkit/{p-79e6a042.entry.js → p-6e6d93a3.entry.js} +2 -2
  257. package/dist/dso-toolkit/{p-d260469c.entry.js → p-6f211cd5.entry.js} +2 -2
  258. package/dist/dso-toolkit/{p-4790e06e.entry.js → p-78420f02.entry.js} +2 -2
  259. package/dist/dso-toolkit/{p-a0a78026.entry.js → p-86849be0.entry.js} +2 -2
  260. package/dist/dso-toolkit/{p-e232a8ad.entry.js → p-8941035f.entry.js} +2 -2
  261. package/dist/dso-toolkit/p-8a677aba.entry.js +2 -0
  262. package/dist/dso-toolkit/p-8a677aba.entry.js.map +1 -0
  263. package/dist/dso-toolkit/{p-9213f126.entry.js → p-8e1a144a.entry.js} +2 -2
  264. package/dist/dso-toolkit/{p-6dac4086.entry.js → p-90d2a099.entry.js} +2 -2
  265. package/dist/dso-toolkit/p-90d2a099.entry.js.map +1 -0
  266. package/dist/dso-toolkit/p-BbNJ4wXp.js +2 -0
  267. package/dist/dso-toolkit/p-BbNJ4wXp.js.map +1 -0
  268. package/dist/dso-toolkit/{p-CcZz5H_k.js → p-COKRRU_q.js} +2 -2
  269. package/dist/dso-toolkit/{p-CcZz5H_k.js.map → p-COKRRU_q.js.map} +1 -1
  270. package/dist/dso-toolkit/p-ChsEPkam.js +2 -0
  271. package/dist/dso-toolkit/{p-CzQFr230.js.map → p-ChsEPkam.js.map} +1 -1
  272. package/dist/dso-toolkit/p-D2Jo0W7B.js +3 -0
  273. package/dist/dso-toolkit/p-D2Jo0W7B.js.map +1 -0
  274. package/dist/dso-toolkit/{p-CXy7CeUE.js → p-D4cSA4l8.js} +2 -2
  275. package/dist/dso-toolkit/{p-CXy7CeUE.js.map → p-D4cSA4l8.js.map} +1 -1
  276. package/dist/dso-toolkit/{p-a186b796.entry.js → p-a0960751.entry.js} +2 -2
  277. package/dist/dso-toolkit/{p-2f99bb30.entry.js → p-a92bee24.entry.js} +2 -2
  278. package/dist/dso-toolkit/p-b7bbdb17.entry.js +2 -0
  279. package/dist/dso-toolkit/p-b7bbdb17.entry.js.map +1 -0
  280. package/dist/dso-toolkit/{p-c13b26ad.entry.js → p-bae3006c.entry.js} +2 -2
  281. package/dist/dso-toolkit/{p-00580562.entry.js → p-c5325945.entry.js} +2 -2
  282. package/dist/dso-toolkit/{p-5f820aec.entry.js → p-c9049181.entry.js} +2 -2
  283. package/dist/dso-toolkit/p-c9461ffa.entry.js +2 -0
  284. package/dist/dso-toolkit/{p-3cb4ac7e.entry.js.map → p-c9461ffa.entry.js.map} +1 -1
  285. package/dist/dso-toolkit/{p-896b4e39.entry.js → p-d112b93b.entry.js} +2 -2
  286. package/dist/dso-toolkit/{p-6973b064.entry.js → p-d4ac95de.entry.js} +2 -2
  287. package/dist/dso-toolkit/p-daafcc37.entry.js +2 -0
  288. package/dist/dso-toolkit/{p-7918004d.entry.js → p-dfd980b6.entry.js} +2 -2
  289. package/dist/dso-toolkit/{p-215e9ecd.entry.js → p-e097b372.entry.js} +2 -2
  290. package/dist/dso-toolkit/{p-159753d7.entry.js → p-e990ee37.entry.js} +2 -2
  291. package/dist/dso-toolkit/{p-ed11ee1b.entry.js → p-eea3b9c8.entry.js} +2 -2
  292. package/dist/esm/{annotation-body-Bwcvd5YG.js → annotation-body-C13C3XCU.js} +3 -3
  293. package/dist/esm/{annotation-body-Bwcvd5YG.js.map → annotation-body-C13C3XCU.js.map} +1 -1
  294. package/dist/esm/{annotation-list-renvooi-values-D_I-aAbM.js → annotation-list-renvooi-values-D75KxHAC.js} +3 -3
  295. package/dist/esm/{annotation-list-renvooi-values-D_I-aAbM.js.map → annotation-list-renvooi-values-D75KxHAC.js.map} +1 -1
  296. package/dist/esm/{annotation-symbol-slot-BlF4i_Mi.js → annotation-symbol-slot-CRK43mu1.js} +3 -3
  297. package/dist/esm/{annotation-symbol-slot-BlF4i_Mi.js.map → annotation-symbol-slot-CRK43mu1.js.map} +1 -1
  298. package/dist/esm/dso-accordion-section.entry.js +1 -1
  299. package/dist/esm/dso-accordion.entry.js +1 -1
  300. package/dist/esm/dso-action-list-item.entry.js +1 -1
  301. package/dist/esm/dso-action-list.entry.js +1 -1
  302. package/dist/esm/dso-advanced-select.entry.js +1 -1
  303. package/dist/esm/dso-alert.dso-badge.dso-image-overlay.dso-ozon-content.dso-panel.dso-table.entry.js.map +1 -1
  304. package/dist/esm/dso-alert_6.entry.js +7 -7
  305. package/dist/esm/dso-alert_6.entry.js.map +1 -1
  306. package/dist/esm/dso-annotation-activiteit.entry.js +4 -4
  307. package/dist/esm/dso-annotation-gebiedsaanwijzing.entry.js +3 -3
  308. package/dist/esm/dso-annotation-kaart.entry.js +2 -2
  309. package/dist/esm/dso-annotation-locatie.dso-document-component.entry.js.map +1 -1
  310. package/dist/esm/dso-annotation-locatie_2.entry.js +4 -4
  311. package/dist/esm/dso-annotation-locatie_2.entry.js.map +1 -1
  312. package/dist/esm/dso-annotation-omgevingsnormwaarde.entry.js +4 -4
  313. package/dist/esm/dso-attachments-counter_2.entry.js +1 -1
  314. package/dist/esm/dso-autosuggest.entry.js +2 -2
  315. package/dist/esm/dso-banner.entry.js +1 -1
  316. package/dist/esm/dso-card-container.entry.js +1 -1
  317. package/dist/esm/dso-card.entry.js +1 -1
  318. package/dist/esm/dso-contact-information.entry.js +1 -1
  319. package/dist/esm/dso-date-picker-legacy.entry.js +1 -1
  320. package/dist/esm/dso-date-picker.entry.js +1 -1
  321. package/dist/esm/dso-document-card.entry.js +1 -1
  322. package/dist/esm/dso-dropdown-menu.entry.js +1 -1
  323. package/dist/esm/dso-header.entry.js +2 -2
  324. package/dist/esm/dso-highlight-box.entry.js +1 -1
  325. package/dist/esm/dso-icon.entry.js +9 -2
  326. package/dist/esm/dso-icon.entry.js.map +1 -1
  327. package/dist/esm/dso-info-button.entry.js +1 -1
  328. package/dist/esm/dso-info_2.entry.js +2 -2
  329. package/dist/esm/dso-input-range.entry.js +1 -1
  330. package/dist/esm/dso-label_3.entry.js +2 -2
  331. package/dist/esm/dso-legend-item.entry.js +1 -1
  332. package/dist/esm/dso-list-button.entry.js +1 -1
  333. package/dist/esm/dso-logo.entry.js +1 -1
  334. package/dist/esm/dso-map-base-layers.entry.js +2 -2
  335. package/dist/esm/dso-map-controls.entry.js +3 -3
  336. package/dist/esm/dso-map-controls.entry.js.map +1 -1
  337. package/dist/esm/dso-map-overlays.entry.js +2 -2
  338. package/dist/esm/dso-mark-bar.entry.js +1 -1
  339. package/dist/esm/dso-modal.entry.js +2 -2
  340. package/dist/esm/dso-onboarding-tip.entry.js +1786 -0
  341. package/dist/esm/dso-onboarding-tip.entry.js.map +1 -0
  342. package/dist/esm/dso-pagination.entry.js +1 -1
  343. package/dist/esm/dso-plekinfo-card.entry.js +2 -2
  344. package/dist/esm/dso-progress-bar.entry.js +2 -2
  345. package/dist/esm/dso-progress-indicator.entry.js +3 -3
  346. package/dist/esm/dso-project-item.entry.js +2 -2
  347. package/dist/esm/dso-responsive-element.entry.js +2 -2
  348. package/dist/esm/dso-scrollable.entry.js +3 -3
  349. package/dist/esm/dso-skiplink.entry.js +2 -2
  350. package/dist/esm/dso-survey-rating.entry.js +4 -4
  351. package/dist/esm/dso-survey-rating.entry.js.map +1 -1
  352. package/dist/esm/dso-tab.entry.js +1 -1
  353. package/dist/esm/dso-tabs.entry.js +2 -2
  354. package/dist/esm/dso-toggletip.entry.js +2 -2
  355. package/dist/esm/dso-toolkit.js +4 -4
  356. package/dist/esm/dso-toolkit.js.map +1 -1
  357. package/dist/esm/dso-tooltip.entry.js +2 -2
  358. package/dist/esm/dso-tree-view.entry.js +2 -2
  359. package/dist/esm/dso-viewer-grid.entry.js +4 -4
  360. package/dist/esm/dso-viewer-grid.entry.js.map +1 -1
  361. package/dist/esm/dsot-document-component-demo.entry.js +1 -1
  362. package/dist/esm/{i18n-D6dst_Em.js → i18n-BbNJ4wXp.js} +106 -97
  363. package/dist/esm/i18n-BbNJ4wXp.js.map +1 -0
  364. package/dist/esm/{index-BzEnSYbR.js → index-D2Jo0W7B.js} +24 -6
  365. package/dist/esm/index-D2Jo0W7B.js.map +1 -0
  366. package/dist/esm/loader.js +3 -3
  367. package/dist/types/components/onboarding-tip/onboarding-tip.d.ts +25 -0
  368. package/dist/types/components/onboarding-tip/onboarding-tip.interfaces.d.ts +4 -0
  369. package/dist/types/components/survey-rating/survey-rating.d.ts +1 -1
  370. package/dist/types/components/viewer-grid/viewer-grid.d.ts +1 -0
  371. package/dist/types/components.d.ts +43 -1
  372. package/dist/types/stencil-public-runtime.d.ts +21 -0
  373. package/package.json +9 -8
  374. package/dist/cjs/i18n-DXkB0Cg-.js.map +0 -1
  375. package/dist/cjs/index-CkTcEJuV.js.map +0 -1
  376. package/dist/dso-toolkit/p-26d6681e.entry.js +0 -2
  377. package/dist/dso-toolkit/p-26d6681e.entry.js.map +0 -1
  378. package/dist/dso-toolkit/p-3cb4ac7e.entry.js +0 -2
  379. package/dist/dso-toolkit/p-43b5e74b.entry.js +0 -2
  380. package/dist/dso-toolkit/p-6dac4086.entry.js.map +0 -1
  381. package/dist/dso-toolkit/p-7853e0ff.entry.js +0 -2
  382. package/dist/dso-toolkit/p-7b715bdf.entry.js +0 -2
  383. package/dist/dso-toolkit/p-BzEnSYbR.js +0 -3
  384. package/dist/dso-toolkit/p-BzEnSYbR.js.map +0 -1
  385. package/dist/dso-toolkit/p-CzQFr230.js +0 -2
  386. package/dist/dso-toolkit/p-D6dst_Em.js +0 -2
  387. package/dist/dso-toolkit/p-D6dst_Em.js.map +0 -1
  388. package/dist/dso-toolkit/p-a74dabd9.entry.js +0 -2
  389. package/dist/dso-toolkit/p-a74dabd9.entry.js.map +0 -1
  390. package/dist/dso-toolkit/p-b26fded2.entry.js +0 -2
  391. package/dist/esm/i18n-D6dst_Em.js.map +0 -1
  392. package/dist/esm/index-BzEnSYbR.js.map +0 -1
  393. /package/dist/dso-toolkit/{p-3f85169a.entry.js.map → p-00431d87.entry.js.map} +0 -0
  394. /package/dist/dso-toolkit/{p-0a2dd4a9.entry.js.map → p-077f0a02.entry.js.map} +0 -0
  395. /package/dist/dso-toolkit/{p-61dfc1f5.entry.js.map → p-08aa7f78.entry.js.map} +0 -0
  396. /package/dist/dso-toolkit/{p-a66fd056.entry.js.map → p-0b902049.entry.js.map} +0 -0
  397. /package/dist/dso-toolkit/{p-24f64459.entry.js.map → p-13042742.entry.js.map} +0 -0
  398. /package/dist/dso-toolkit/{p-b673cbdb.entry.js.map → p-1636f9be.entry.js.map} +0 -0
  399. /package/dist/dso-toolkit/{p-49af1837.entry.js.map → p-1f7f6d8b.entry.js.map} +0 -0
  400. /package/dist/dso-toolkit/{p-5b25e608.entry.js.map → p-23c5e409.entry.js.map} +0 -0
  401. /package/dist/dso-toolkit/{p-91f1ac00.entry.js.map → p-2711b352.entry.js.map} +0 -0
  402. /package/dist/dso-toolkit/{p-6b6b5ed2.entry.js.map → p-2a0e7fab.entry.js.map} +0 -0
  403. /package/dist/dso-toolkit/{p-7b7ae40b.entry.js.map → p-3092991c.entry.js.map} +0 -0
  404. /package/dist/dso-toolkit/{p-7853e0ff.entry.js.map → p-31754dd5.entry.js.map} +0 -0
  405. /package/dist/dso-toolkit/{p-35b096ec.entry.js.map → p-32081789.entry.js.map} +0 -0
  406. /package/dist/dso-toolkit/{p-7531a336.entry.js.map → p-37864ec3.entry.js.map} +0 -0
  407. /package/dist/dso-toolkit/{p-1d96f67a.entry.js.map → p-38a17746.entry.js.map} +0 -0
  408. /package/dist/dso-toolkit/{p-5f01431d.entry.js.map → p-3dc6df90.entry.js.map} +0 -0
  409. /package/dist/dso-toolkit/{p-e87edda8.entry.js.map → p-4282580b.entry.js.map} +0 -0
  410. /package/dist/dso-toolkit/{p-1da9f680.entry.js.map → p-45a523e5.entry.js.map} +0 -0
  411. /package/dist/dso-toolkit/{p-55176bef.entry.js.map → p-47936ff6.entry.js.map} +0 -0
  412. /package/dist/dso-toolkit/{p-70b9abf1.entry.js.map → p-487f46df.entry.js.map} +0 -0
  413. /package/dist/dso-toolkit/{p-759d18f9.entry.js.map → p-49fc2235.entry.js.map} +0 -0
  414. /package/dist/dso-toolkit/{p-a250b931.entry.js.map → p-4a034e40.entry.js.map} +0 -0
  415. /package/dist/dso-toolkit/{p-5509732c.entry.js.map → p-4a5cc3fc.entry.js.map} +0 -0
  416. /package/dist/dso-toolkit/{p-c50310e2.entry.js.map → p-5193e894.entry.js.map} +0 -0
  417. /package/dist/dso-toolkit/{p-ac221ee6.entry.js.map → p-53b338f1.entry.js.map} +0 -0
  418. /package/dist/dso-toolkit/{p-7f8fc024.entry.js.map → p-583bd6db.entry.js.map} +0 -0
  419. /package/dist/dso-toolkit/{p-4956ca51.entry.js.map → p-621a9bbb.entry.js.map} +0 -0
  420. /package/dist/dso-toolkit/{p-4eefa210.entry.js.map → p-6a2a4141.entry.js.map} +0 -0
  421. /package/dist/dso-toolkit/{p-79e6a042.entry.js.map → p-6e6d93a3.entry.js.map} +0 -0
  422. /package/dist/dso-toolkit/{p-d260469c.entry.js.map → p-6f211cd5.entry.js.map} +0 -0
  423. /package/dist/dso-toolkit/{p-4790e06e.entry.js.map → p-78420f02.entry.js.map} +0 -0
  424. /package/dist/dso-toolkit/{p-a0a78026.entry.js.map → p-86849be0.entry.js.map} +0 -0
  425. /package/dist/dso-toolkit/{p-e232a8ad.entry.js.map → p-8941035f.entry.js.map} +0 -0
  426. /package/dist/dso-toolkit/{p-9213f126.entry.js.map → p-8e1a144a.entry.js.map} +0 -0
  427. /package/dist/dso-toolkit/{p-a186b796.entry.js.map → p-a0960751.entry.js.map} +0 -0
  428. /package/dist/dso-toolkit/{p-2f99bb30.entry.js.map → p-a92bee24.entry.js.map} +0 -0
  429. /package/dist/dso-toolkit/{p-c13b26ad.entry.js.map → p-bae3006c.entry.js.map} +0 -0
  430. /package/dist/dso-toolkit/{p-00580562.entry.js.map → p-c5325945.entry.js.map} +0 -0
  431. /package/dist/dso-toolkit/{p-5f820aec.entry.js.map → p-c9049181.entry.js.map} +0 -0
  432. /package/dist/dso-toolkit/{p-896b4e39.entry.js.map → p-d112b93b.entry.js.map} +0 -0
  433. /package/dist/dso-toolkit/{p-6973b064.entry.js.map → p-d4ac95de.entry.js.map} +0 -0
  434. /package/dist/dso-toolkit/{p-b26fded2.entry.js.map → p-daafcc37.entry.js.map} +0 -0
  435. /package/dist/dso-toolkit/{p-7918004d.entry.js.map → p-dfd980b6.entry.js.map} +0 -0
  436. /package/dist/dso-toolkit/{p-215e9ecd.entry.js.map → p-e097b372.entry.js.map} +0 -0
  437. /package/dist/dso-toolkit/{p-159753d7.entry.js.map → p-e990ee37.entry.js.map} +0 -0
  438. /package/dist/dso-toolkit/{p-ed11ee1b.entry.js.map → p-eea3b9c8.entry.js.map} +0 -0
@@ -482,13 +482,13 @@ class Translator extends EventEmitter {
482
482
  const resolved = this.resolve(key, options);
483
483
  return resolved?.res !== undefined;
484
484
  }
485
- extractFromKey(key, options) {
486
- let nsSeparator = options.nsSeparator !== undefined ? options.nsSeparator : this.options.nsSeparator;
485
+ extractFromKey(key, opt) {
486
+ let nsSeparator = opt.nsSeparator !== undefined ? opt.nsSeparator : this.options.nsSeparator;
487
487
  if (nsSeparator === undefined) nsSeparator = ':';
488
- const keySeparator = options.keySeparator !== undefined ? options.keySeparator : this.options.keySeparator;
489
- let namespaces = options.ns || this.options.defaultNS || [];
488
+ const keySeparator = opt.keySeparator !== undefined ? opt.keySeparator : this.options.keySeparator;
489
+ let namespaces = opt.ns || this.options.defaultNS || [];
490
490
  const wouldCheckForNsInKey = nsSeparator && key.indexOf(nsSeparator) > -1;
491
- const seemsNaturalLanguage = !this.options.userDefinedKeySeparator && !options.keySeparator && !this.options.userDefinedNsSeparator && !options.nsSeparator && !looksLikeObjectPath(key, nsSeparator, keySeparator);
491
+ const seemsNaturalLanguage = !this.options.userDefinedKeySeparator && !opt.keySeparator && !this.options.userDefinedNsSeparator && !opt.nsSeparator && !looksLikeObjectPath(key, nsSeparator, keySeparator);
492
492
  if (wouldCheckForNsInKey && !seemsNaturalLanguage) {
493
493
  const m = key.match(this.interpolator.nestingRegexp);
494
494
  if (m && m.length > 0) {
@@ -506,28 +506,28 @@ class Translator extends EventEmitter {
506
506
  namespaces: isString(namespaces) ? [namespaces] : namespaces
507
507
  };
508
508
  }
509
- translate(keys, options, lastKey) {
510
- if (typeof options !== 'object' && this.options.overloadTranslationOptionHandler) {
511
- options = this.options.overloadTranslationOptionHandler(arguments);
509
+ translate(keys, opt, lastKey) {
510
+ if (typeof opt !== 'object' && this.options.overloadTranslationOptionHandler) {
511
+ opt = this.options.overloadTranslationOptionHandler(arguments);
512
512
  }
513
- if (typeof options === 'object') options = {
514
- ...options
513
+ if (typeof options === 'object') opt = {
514
+ ...opt
515
515
  };
516
- if (!options) options = {};
516
+ if (!opt) opt = {};
517
517
  if (keys == null) return '';
518
518
  if (!Array.isArray(keys)) keys = [String(keys)];
519
- const returnDetails = options.returnDetails !== undefined ? options.returnDetails : this.options.returnDetails;
520
- const keySeparator = options.keySeparator !== undefined ? options.keySeparator : this.options.keySeparator;
519
+ const returnDetails = opt.returnDetails !== undefined ? opt.returnDetails : this.options.returnDetails;
520
+ const keySeparator = opt.keySeparator !== undefined ? opt.keySeparator : this.options.keySeparator;
521
521
  const {
522
522
  key,
523
523
  namespaces
524
- } = this.extractFromKey(keys[keys.length - 1], options);
524
+ } = this.extractFromKey(keys[keys.length - 1], opt);
525
525
  const namespace = namespaces[namespaces.length - 1];
526
- const lng = options.lng || this.language;
527
- const appendNamespaceToCIMode = options.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
526
+ const lng = opt.lng || this.language;
527
+ const appendNamespaceToCIMode = opt.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
528
528
  if (lng?.toLowerCase() === 'cimode') {
529
529
  if (appendNamespaceToCIMode) {
530
- const nsSeparator = options.nsSeparator || this.options.nsSeparator;
530
+ const nsSeparator = opt.nsSeparator || this.options.nsSeparator;
531
531
  if (returnDetails) {
532
532
  return {
533
533
  res: `${namespace}${nsSeparator}${key}`,
@@ -535,7 +535,7 @@ class Translator extends EventEmitter {
535
535
  exactUsedKey: key,
536
536
  usedLng: lng,
537
537
  usedNS: namespace,
538
- usedParams: this.getUsedParamsDetails(options)
538
+ usedParams: this.getUsedParamsDetails(opt)
539
539
  };
540
540
  }
541
541
  return `${namespace}${nsSeparator}${key}`;
@@ -547,26 +547,26 @@ class Translator extends EventEmitter {
547
547
  exactUsedKey: key,
548
548
  usedLng: lng,
549
549
  usedNS: namespace,
550
- usedParams: this.getUsedParamsDetails(options)
550
+ usedParams: this.getUsedParamsDetails(opt)
551
551
  };
552
552
  }
553
553
  return key;
554
554
  }
555
- const resolved = this.resolve(keys, options);
555
+ const resolved = this.resolve(keys, opt);
556
556
  let res = resolved?.res;
557
557
  const resUsedKey = resolved?.usedKey || key;
558
558
  const resExactUsedKey = resolved?.exactUsedKey || key;
559
559
  const noObject = ['[object Number]', '[object Function]', '[object RegExp]'];
560
- const joinArrays = options.joinArrays !== undefined ? options.joinArrays : this.options.joinArrays;
560
+ const joinArrays = opt.joinArrays !== undefined ? opt.joinArrays : this.options.joinArrays;
561
561
  const handleAsObjectInI18nFormat = !this.i18nFormat || this.i18nFormat.handleAsObject;
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, {
562
+ const needsPluralHandling = opt.count !== undefined && !isString(opt.count);
563
+ const hasDefaultValue = Translator.hasDefaultValue(opt);
564
+ const defaultValueSuffix = needsPluralHandling ? this.pluralResolver.getSuffix(lng, opt.count, opt) : '';
565
+ const defaultValueSuffixOrdinalFallback = opt.ordinal && needsPluralHandling ? this.pluralResolver.getSuffix(lng, opt.count, {
566
566
  ordinal: false
567
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;
568
+ const needsZeroSuffixLookup = needsPluralHandling && !opt.ordinal && opt.count === 0;
569
+ const defaultValue = needsZeroSuffixLookup && opt[`defaultValue${this.options.pluralSeparator}zero`] || opt[`defaultValue${defaultValueSuffix}`] || opt[`defaultValue${defaultValueSuffixOrdinalFallback}`] || opt.defaultValue;
570
570
  let resForObjHndl = res;
571
571
  if (handleAsObjectInI18nFormat && !res && hasDefaultValue) {
572
572
  resForObjHndl = defaultValue;
@@ -574,17 +574,17 @@ class Translator extends EventEmitter {
574
574
  const handleAsObject = shouldHandleAsObject(resForObjHndl);
575
575
  const resType = Object.prototype.toString.apply(resForObjHndl);
576
576
  if (handleAsObjectInI18nFormat && resForObjHndl && handleAsObject && noObject.indexOf(resType) < 0 && !(isString(joinArrays) && Array.isArray(resForObjHndl))) {
577
- if (!options.returnObjects && !this.options.returnObjects) {
577
+ if (!opt.returnObjects && !this.options.returnObjects) {
578
578
  if (!this.options.returnedObjectHandler) {
579
579
  this.logger.warn('accessing an object - but returnObjects options is not enabled!');
580
580
  }
581
581
  const r = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(resUsedKey, resForObjHndl, {
582
- ...options,
582
+ ...opt,
583
583
  ns: namespaces
584
584
  }) : `key '${key} (${this.language})' returned an object instead of string.`;
585
585
  if (returnDetails) {
586
586
  resolved.res = r;
587
- resolved.usedParams = this.getUsedParamsDetails(options);
587
+ resolved.usedParams = this.getUsedParamsDetails(opt);
588
588
  return resolved;
589
589
  }
590
590
  return r;
@@ -598,7 +598,7 @@ class Translator extends EventEmitter {
598
598
  const deepKey = `${newKeyToUse}${keySeparator}${m}`;
599
599
  if (hasDefaultValue && !res) {
600
600
  copy[m] = this.translate(deepKey, {
601
- ...options,
601
+ ...opt,
602
602
  defaultValue: shouldHandleAsObject(defaultValue) ? defaultValue[m] : undefined,
603
603
  ...{
604
604
  joinArrays: false,
@@ -607,7 +607,7 @@ class Translator extends EventEmitter {
607
607
  });
608
608
  } else {
609
609
  copy[m] = this.translate(deepKey, {
610
- ...options,
610
+ ...opt,
611
611
  ...{
612
612
  joinArrays: false,
613
613
  ns: namespaces
@@ -621,7 +621,7 @@ class Translator extends EventEmitter {
621
621
  }
622
622
  } else if (handleAsObjectInI18nFormat && isString(joinArrays) && Array.isArray(res)) {
623
623
  res = res.join(joinArrays);
624
- if (res) res = this.extendTranslation(res, keys, options, lastKey);
624
+ if (res) res = this.extendTranslation(res, keys, opt, lastKey);
625
625
  } else {
626
626
  let usedDefault = false;
627
627
  let usedKey = false;
@@ -633,47 +633,47 @@ class Translator extends EventEmitter {
633
633
  usedKey = true;
634
634
  res = key;
635
635
  }
636
- const missingKeyNoValueFallbackToKey = options.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey;
636
+ const missingKeyNoValueFallbackToKey = opt.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey;
637
637
  const resForMissing = missingKeyNoValueFallbackToKey && usedKey ? undefined : res;
638
638
  const updateMissing = hasDefaultValue && defaultValue !== res && this.options.updateMissing;
639
639
  if (usedKey || usedDefault || updateMissing) {
640
640
  this.logger.log(updateMissing ? 'updateKey' : 'missingKey', lng, namespace, key, updateMissing ? defaultValue : res);
641
641
  if (keySeparator) {
642
642
  const fk = this.resolve(key, {
643
- ...options,
643
+ ...opt,
644
644
  keySeparator: false
645
645
  });
646
646
  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.');
647
647
  }
648
648
  let lngs = [];
649
- const fallbackLngs = this.languageUtils.getFallbackCodes(this.options.fallbackLng, options.lng || this.language);
649
+ const fallbackLngs = this.languageUtils.getFallbackCodes(this.options.fallbackLng, opt.lng || this.language);
650
650
  if (this.options.saveMissingTo === 'fallback' && fallbackLngs && fallbackLngs[0]) {
651
651
  for (let i = 0; i < fallbackLngs.length; i++) {
652
652
  lngs.push(fallbackLngs[i]);
653
653
  }
654
654
  } else if (this.options.saveMissingTo === 'all') {
655
- lngs = this.languageUtils.toResolveHierarchy(options.lng || this.language);
655
+ lngs = this.languageUtils.toResolveHierarchy(opt.lng || this.language);
656
656
  } else {
657
- lngs.push(options.lng || this.language);
657
+ lngs.push(opt.lng || this.language);
658
658
  }
659
659
  const send = (l, k, specificDefaultValue) => {
660
660
  const defaultForMissing = hasDefaultValue && specificDefaultValue !== res ? specificDefaultValue : resForMissing;
661
661
  if (this.options.missingKeyHandler) {
662
- this.options.missingKeyHandler(l, namespace, k, defaultForMissing, updateMissing, options);
662
+ this.options.missingKeyHandler(l, namespace, k, defaultForMissing, updateMissing, opt);
663
663
  } else if (this.backendConnector?.saveMissing) {
664
- this.backendConnector.saveMissing(l, namespace, k, defaultForMissing, updateMissing, options);
664
+ this.backendConnector.saveMissing(l, namespace, k, defaultForMissing, updateMissing, opt);
665
665
  }
666
666
  this.emit('missingKey', l, namespace, k, res);
667
667
  };
668
668
  if (this.options.saveMissing) {
669
669
  if (this.options.saveMissingPlurals && needsPluralHandling) {
670
670
  lngs.forEach(language => {
671
- const suffixes = this.pluralResolver.getSuffixes(language, options);
672
- if (needsZeroSuffixLookup && options[`defaultValue${this.options.pluralSeparator}zero`] && suffixes.indexOf(`${this.options.pluralSeparator}zero`) < 0) {
671
+ const suffixes = this.pluralResolver.getSuffixes(language, opt);
672
+ if (needsZeroSuffixLookup && opt[`defaultValue${this.options.pluralSeparator}zero`] && suffixes.indexOf(`${this.options.pluralSeparator}zero`) < 0) {
673
673
  suffixes.push(`${this.options.pluralSeparator}zero`);
674
674
  }
675
675
  suffixes.forEach(suffix => {
676
- send([language], key + suffix, options[`defaultValue${suffix}`] || defaultValue);
676
+ send([language], key + suffix, opt[`defaultValue${suffix}`] || defaultValue);
677
677
  });
678
678
  });
679
679
  } else {
@@ -681,7 +681,7 @@ class Translator extends EventEmitter {
681
681
  }
682
682
  }
683
683
  }
684
- res = this.extendTranslation(res, keys, options, resolved, lastKey);
684
+ res = this.extendTranslation(res, keys, opt, resolved, lastKey);
685
685
  if (usedKey && res === key && this.options.appendNamespaceToMissingKey) res = `${namespace}:${key}`;
686
686
  if ((usedKey || usedDefault) && this.options.parseMissingKeyHandler) {
687
687
  res = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${namespace}:${key}` : key, usedDefault ? res : undefined);
@@ -689,75 +689,75 @@ class Translator extends EventEmitter {
689
689
  }
690
690
  if (returnDetails) {
691
691
  resolved.res = res;
692
- resolved.usedParams = this.getUsedParamsDetails(options);
692
+ resolved.usedParams = this.getUsedParamsDetails(opt);
693
693
  return resolved;
694
694
  }
695
695
  return res;
696
696
  }
697
- extendTranslation(res, key, options, resolved, lastKey) {
697
+ extendTranslation(res, key, opt, resolved, lastKey) {
698
698
  var _this = this;
699
699
  if (this.i18nFormat?.parse) {
700
700
  res = this.i18nFormat.parse(res, {
701
701
  ...this.options.interpolation.defaultVariables,
702
- ...options
703
- }, options.lng || this.language || resolved.usedLng, resolved.usedNS, resolved.usedKey, {
702
+ ...opt
703
+ }, opt.lng || this.language || resolved.usedLng, resolved.usedNS, resolved.usedKey, {
704
704
  resolved
705
705
  });
706
- } else if (!options.skipInterpolation) {
707
- if (options.interpolation) this.interpolator.init({
708
- ...options,
706
+ } else if (!opt.skipInterpolation) {
707
+ if (opt.interpolation) this.interpolator.init({
708
+ ...opt,
709
709
  ...{
710
710
  interpolation: {
711
711
  ...this.options.interpolation,
712
- ...options.interpolation
712
+ ...opt.interpolation
713
713
  }
714
714
  }
715
715
  });
716
- const skipOnVariables = isString(res) && (options?.interpolation?.skipOnVariables !== undefined ? options.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
716
+ const skipOnVariables = isString(res) && (opt?.interpolation?.skipOnVariables !== undefined ? opt.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
717
717
  let nestBef;
718
718
  if (skipOnVariables) {
719
719
  const nb = res.match(this.interpolator.nestingRegexp);
720
720
  nestBef = nb && nb.length;
721
721
  }
722
- let data = options.replace && !isString(options.replace) ? options.replace : options;
722
+ let data = opt.replace && !isString(opt.replace) ? opt.replace : opt;
723
723
  if (this.options.interpolation.defaultVariables) data = {
724
724
  ...this.options.interpolation.defaultVariables,
725
725
  ...data
726
726
  };
727
- res = this.interpolator.interpolate(res, data, options.lng || this.language || resolved.usedLng, options);
727
+ res = this.interpolator.interpolate(res, data, opt.lng || this.language || resolved.usedLng, opt);
728
728
  if (skipOnVariables) {
729
729
  const na = res.match(this.interpolator.nestingRegexp);
730
730
  const nestAft = na && na.length;
731
- if (nestBef < nestAft) options.nest = false;
731
+ if (nestBef < nestAft) opt.nest = false;
732
732
  }
733
- if (!options.lng && resolved && resolved.res) options.lng = this.language || resolved.usedLng;
734
- if (options.nest !== false) res = this.interpolator.nest(res, function () {
733
+ if (!opt.lng && resolved && resolved.res) opt.lng = this.language || resolved.usedLng;
734
+ if (opt.nest !== false) res = this.interpolator.nest(res, function () {
735
735
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
736
736
  args[_key] = arguments[_key];
737
737
  }
738
- if (lastKey?.[0] === args[0] && !options.context) {
738
+ if (lastKey?.[0] === args[0] && !opt.context) {
739
739
  _this.logger.warn(`It seems you are nesting recursively key: ${args[0]} in key: ${key[0]}`);
740
740
  return null;
741
741
  }
742
742
  return _this.translate(...args, key);
743
- }, options);
744
- if (options.interpolation) this.interpolator.reset();
743
+ }, opt);
744
+ if (opt.interpolation) this.interpolator.reset();
745
745
  }
746
- const postProcess = options.postProcess || this.options.postProcess;
746
+ const postProcess = opt.postProcess || this.options.postProcess;
747
747
  const postProcessorNames = isString(postProcess) ? [postProcess] : postProcess;
748
- if (res != null && postProcessorNames?.length && options.applyPostProcessor !== false) {
748
+ if (res != null && postProcessorNames?.length && opt.applyPostProcessor !== false) {
749
749
  res = postProcessor.handle(postProcessorNames, res, key, this.options && this.options.postProcessPassResolved ? {
750
750
  i18nResolved: {
751
751
  ...resolved,
752
- usedParams: this.getUsedParamsDetails(options)
752
+ usedParams: this.getUsedParamsDetails(opt)
753
753
  },
754
- ...options
755
- } : options, this);
754
+ ...opt
755
+ } : opt, this);
756
756
  }
757
757
  return res;
758
758
  }
759
759
  resolve(keys) {
760
- let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
760
+ let opt = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
761
761
  let found;
762
762
  let usedKey;
763
763
  let exactUsedKey;
@@ -766,15 +766,15 @@ class Translator extends EventEmitter {
766
766
  if (isString(keys)) keys = [keys];
767
767
  keys.forEach(k => {
768
768
  if (this.isValidLookup(found)) return;
769
- const extracted = this.extractFromKey(k, options);
769
+ const extracted = this.extractFromKey(k, opt);
770
770
  const key = extracted.key;
771
771
  usedKey = key;
772
772
  let namespaces = extracted.namespaces;
773
773
  if (this.options.fallbackNS) namespaces = namespaces.concat(this.options.fallbackNS);
774
- const needsPluralHandling = options.count !== undefined && !isString(options.count);
775
- const needsZeroSuffixLookup = needsPluralHandling && !options.ordinal && options.count === 0;
776
- const needsContextHandling = options.context !== undefined && (isString(options.context) || typeof options.context === 'number') && options.context !== '';
777
- const codes = options.lngs ? options.lngs : this.languageUtils.toResolveHierarchy(options.lng || this.language, options.fallbackLng);
774
+ const needsPluralHandling = opt.count !== undefined && !isString(opt.count);
775
+ const needsZeroSuffixLookup = needsPluralHandling && !opt.ordinal && opt.count === 0;
776
+ const needsContextHandling = opt.context !== undefined && (isString(opt.context) || typeof opt.context === 'number') && opt.context !== '';
777
+ const codes = opt.lngs ? opt.lngs : this.languageUtils.toResolveHierarchy(opt.lng || this.language, opt.fallbackLng);
778
778
  namespaces.forEach(ns => {
779
779
  if (this.isValidLookup(found)) return;
780
780
  usedNS = ns;
@@ -787,15 +787,15 @@ class Translator extends EventEmitter {
787
787
  usedLng = code;
788
788
  const finalKeys = [key];
789
789
  if (this.i18nFormat?.addLookupKeys) {
790
- this.i18nFormat.addLookupKeys(finalKeys, key, code, ns, options);
790
+ this.i18nFormat.addLookupKeys(finalKeys, key, code, ns, opt);
791
791
  } else {
792
792
  let pluralSuffix;
793
- if (needsPluralHandling) pluralSuffix = this.pluralResolver.getSuffix(code, options.count, options);
793
+ if (needsPluralHandling) pluralSuffix = this.pluralResolver.getSuffix(code, opt.count, opt);
794
794
  const zeroSuffix = `${this.options.pluralSeparator}zero`;
795
795
  const ordinalPrefix = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
796
796
  if (needsPluralHandling) {
797
797
  finalKeys.push(key + pluralSuffix);
798
- if (options.ordinal && pluralSuffix.indexOf(ordinalPrefix) === 0) {
798
+ if (opt.ordinal && pluralSuffix.indexOf(ordinalPrefix) === 0) {
799
799
  finalKeys.push(key + pluralSuffix.replace(ordinalPrefix, this.options.pluralSeparator));
800
800
  }
801
801
  if (needsZeroSuffixLookup) {
@@ -803,11 +803,11 @@ class Translator extends EventEmitter {
803
803
  }
804
804
  }
805
805
  if (needsContextHandling) {
806
- const contextKey = `${key}${this.options.contextSeparator}${options.context}`;
806
+ const contextKey = `${key}${this.options.contextSeparator}${opt.context}`;
807
807
  finalKeys.push(contextKey);
808
808
  if (needsPluralHandling) {
809
809
  finalKeys.push(contextKey + pluralSuffix);
810
- if (options.ordinal && pluralSuffix.indexOf(ordinalPrefix) === 0) {
810
+ if (opt.ordinal && pluralSuffix.indexOf(ordinalPrefix) === 0) {
811
811
  finalKeys.push(contextKey + pluralSuffix.replace(ordinalPrefix, this.options.pluralSeparator));
812
812
  }
813
813
  if (needsZeroSuffixLookup) {
@@ -820,7 +820,7 @@ class Translator extends EventEmitter {
820
820
  while (possibleKey = finalKeys.pop()) {
821
821
  if (!this.isValidLookup(found)) {
822
822
  exactUsedKey = possibleKey;
823
- found = this.getResource(code, ns, possibleKey, options);
823
+ found = this.getResource(code, ns, possibleKey, opt);
824
824
  }
825
825
  }
826
826
  });
@@ -932,6 +932,8 @@ class LanguageUtil {
932
932
  if (!found && this.options.supportedLngs) {
933
933
  codes.forEach(code => {
934
934
  if (found) return;
935
+ const lngScOnly = this.getScriptPartFromCode(code);
936
+ if (this.isSupportedCode(lngScOnly)) return found = lngScOnly;
935
937
  const lngOnly = this.getLanguagePartFromCode(code);
936
938
  if (this.isSupportedCode(lngOnly)) return found = lngOnly;
937
939
  found = this.options.supportedLngs.find(supportedLng => {
@@ -1964,6 +1966,10 @@ class I18n extends EventEmitter {
1964
1966
  break;
1965
1967
  }
1966
1968
  }
1969
+ if (!this.resolvedLanguage && this.languages.indexOf(l) < 0 && this.store.hasLanguageSomeTranslations(l)) {
1970
+ this.resolvedLanguage = l;
1971
+ if (this.languages.indexOf(l) < 0) this.languages.unshift(l);
1972
+ }
1967
1973
  }
1968
1974
  changeLanguage(lng, callback) {
1969
1975
  var _this2 = this;
@@ -1978,11 +1984,13 @@ class I18n extends EventEmitter {
1978
1984
  };
1979
1985
  const done = (err, l) => {
1980
1986
  if (l) {
1981
- setLngProps(l);
1982
- this.translator.changeLanguage(l);
1983
- this.isLanguageChangingTo = undefined;
1984
- this.emit('languageChanged', l);
1985
- this.logger.log('languageChanged', l);
1987
+ if (this.isLanguageChangingTo === lng) {
1988
+ setLngProps(l);
1989
+ this.translator.changeLanguage(l);
1990
+ this.isLanguageChangingTo = undefined;
1991
+ this.emit('languageChanged', l);
1992
+ this.logger.log('languageChanged', l);
1993
+ }
1986
1994
  } else {
1987
1995
  this.isLanguageChangingTo = undefined;
1988
1996
  }
@@ -1995,7 +2003,8 @@ class I18n extends EventEmitter {
1995
2003
  };
1996
2004
  const setLng = lngs => {
1997
2005
  if (!lng && !lngs && this.services.languageDetector) lngs = [];
1998
- const l = isString(lngs) ? lngs : this.services.languageUtils.getBestMatchFromCodes(lngs);
2006
+ const fl = isString(lngs) ? lngs : lngs && lngs[0];
2007
+ const l = this.store.hasLanguageSomeTranslations(fl) ? fl : this.services.languageUtils.getBestMatchFromCodes(isString(lngs) ? [lngs] : lngs);
1999
2008
  if (l) {
2000
2009
  if (!this.language) {
2001
2010
  setLngProps(l);
@@ -2023,29 +2032,29 @@ class I18n extends EventEmitter {
2023
2032
  getFixedT(lng, ns, keyPrefix) {
2024
2033
  var _this3 = this;
2025
2034
  const fixedT = function (key, opts) {
2026
- let options;
2035
+ let o;
2027
2036
  if (typeof opts !== 'object') {
2028
2037
  for (var _len3 = arguments.length, rest = new Array(_len3 > 2 ? _len3 - 2 : 0), _key3 = 2; _key3 < _len3; _key3++) {
2029
2038
  rest[_key3 - 2] = arguments[_key3];
2030
2039
  }
2031
- options = _this3.options.overloadTranslationOptionHandler([key, opts].concat(rest));
2040
+ o = _this3.options.overloadTranslationOptionHandler([key, opts].concat(rest));
2032
2041
  } else {
2033
- options = {
2042
+ o = {
2034
2043
  ...opts
2035
2044
  };
2036
2045
  }
2037
- options.lng = options.lng || fixedT.lng;
2038
- options.lngs = options.lngs || fixedT.lngs;
2039
- options.ns = options.ns || fixedT.ns;
2040
- if (options.keyPrefix !== '') options.keyPrefix = options.keyPrefix || keyPrefix || fixedT.keyPrefix;
2046
+ o.lng = o.lng || fixedT.lng;
2047
+ o.lngs = o.lngs || fixedT.lngs;
2048
+ o.ns = o.ns || fixedT.ns;
2049
+ if (o.keyPrefix !== '') o.keyPrefix = o.keyPrefix || keyPrefix || fixedT.keyPrefix;
2041
2050
  const keySeparator = _this3.options.keySeparator || '.';
2042
2051
  let resultKey;
2043
- if (options.keyPrefix && Array.isArray(key)) {
2044
- resultKey = key.map(k => `${options.keyPrefix}${keySeparator}${k}`);
2052
+ if (o.keyPrefix && Array.isArray(key)) {
2053
+ resultKey = key.map(k => `${o.keyPrefix}${keySeparator}${k}`);
2045
2054
  } else {
2046
- resultKey = options.keyPrefix ? `${options.keyPrefix}${keySeparator}${key}` : key;
2055
+ resultKey = o.keyPrefix ? `${o.keyPrefix}${keySeparator}${key}` : key;
2047
2056
  }
2048
- return _this3.t(resultKey, options);
2057
+ return _this3.t(resultKey, o);
2049
2058
  };
2050
2059
  if (isString(lng)) {
2051
2060
  fixedT.lng = lng;
@@ -2245,6 +2254,6 @@ function i18n(getElement, resources) {
2245
2254
  }
2246
2255
 
2247
2256
  export { i18n as i };
2248
- //# sourceMappingURL=i18n-D6dst_Em.js.map
2257
+ //# sourceMappingURL=i18n-BbNJ4wXp.js.map
2249
2258
 
2250
- //# sourceMappingURL=i18n-D6dst_Em.js.map
2259
+ //# sourceMappingURL=i18n-BbNJ4wXp.js.map