@dso-toolkit/core 72.1.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 (364) 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_6.cjs.entry.js +2 -2
  13. package/dist/cjs/dso-annotation-activiteit.cjs.entry.js +4 -4
  14. package/dist/cjs/dso-annotation-gebiedsaanwijzing.cjs.entry.js +3 -3
  15. package/dist/cjs/dso-annotation-kaart.cjs.entry.js +2 -2
  16. package/dist/cjs/dso-annotation-locatie_2.cjs.entry.js +3 -3
  17. package/dist/cjs/dso-annotation-omgevingsnormwaarde.cjs.entry.js +4 -4
  18. package/dist/cjs/dso-attachments-counter_2.cjs.entry.js +1 -1
  19. package/dist/cjs/dso-autosuggest.cjs.entry.js +2 -2
  20. package/dist/cjs/dso-banner.cjs.entry.js +1 -1
  21. package/dist/cjs/dso-card-container.cjs.entry.js +1 -1
  22. package/dist/cjs/dso-card.cjs.entry.js +1 -1
  23. package/dist/cjs/dso-contact-information.cjs.entry.js +1 -1
  24. package/dist/cjs/dso-date-picker-legacy.cjs.entry.js +1 -1
  25. package/dist/cjs/dso-date-picker.cjs.entry.js +1 -1
  26. package/dist/cjs/dso-document-card.cjs.entry.js +1 -1
  27. package/dist/cjs/dso-dropdown-menu.cjs.entry.js +1 -1
  28. package/dist/cjs/dso-header.cjs.entry.js +2 -2
  29. package/dist/cjs/dso-highlight-box.cjs.entry.js +1 -1
  30. package/dist/cjs/dso-icon.cjs.entry.js +1 -1
  31. package/dist/cjs/dso-info-button.cjs.entry.js +1 -1
  32. package/dist/cjs/dso-info_2.cjs.entry.js +1 -1
  33. package/dist/cjs/dso-input-range.cjs.entry.js +1 -1
  34. package/dist/cjs/dso-label_3.cjs.entry.js +1 -1
  35. package/dist/cjs/dso-legend-item.cjs.entry.js +1 -1
  36. package/dist/cjs/dso-list-button.cjs.entry.js +1 -1
  37. package/dist/cjs/dso-logo.cjs.entry.js +1 -1
  38. package/dist/cjs/dso-map-base-layers.cjs.entry.js +2 -2
  39. package/dist/cjs/dso-map-controls.cjs.entry.js +2 -2
  40. package/dist/cjs/dso-map-overlays.cjs.entry.js +2 -2
  41. package/dist/cjs/dso-mark-bar.cjs.entry.js +1 -1
  42. package/dist/cjs/dso-modal.cjs.entry.js +2 -2
  43. package/dist/cjs/dso-onboarding-tip.cjs.entry.js +1 -1
  44. package/dist/cjs/dso-pagination.cjs.entry.js +1 -1
  45. package/dist/cjs/dso-plekinfo-card.cjs.entry.js +1 -1
  46. package/dist/cjs/dso-progress-bar.cjs.entry.js +1 -1
  47. package/dist/cjs/dso-progress-indicator.cjs.entry.js +2 -2
  48. package/dist/cjs/dso-project-item.cjs.entry.js +1 -1
  49. package/dist/cjs/dso-responsive-element.cjs.entry.js +1 -1
  50. package/dist/cjs/dso-scrollable.cjs.entry.js +1 -1
  51. package/dist/cjs/dso-skiplink.cjs.entry.js +1 -1
  52. package/dist/cjs/dso-survey-rating.cjs.entry.js +3 -3
  53. package/dist/cjs/dso-survey-rating.cjs.entry.js.map +1 -1
  54. package/dist/cjs/dso-survey-rating.entry.cjs.js.map +1 -1
  55. package/dist/cjs/dso-tab.cjs.entry.js +1 -1
  56. package/dist/cjs/dso-tabs.cjs.entry.js +1 -1
  57. package/dist/cjs/dso-toggletip.cjs.entry.js +1 -1
  58. package/dist/cjs/dso-toolkit.cjs.js +3 -3
  59. package/dist/cjs/dso-toolkit.cjs.js.map +1 -1
  60. package/dist/cjs/dso-tooltip.cjs.entry.js +1 -1
  61. package/dist/cjs/dso-tree-view.cjs.entry.js +1 -1
  62. package/dist/cjs/dso-viewer-grid.cjs.entry.js +4 -4
  63. package/dist/cjs/dso-viewer-grid.cjs.entry.js.map +1 -1
  64. package/dist/cjs/dso-viewer-grid.entry.cjs.js.map +1 -1
  65. package/dist/cjs/dsot-document-component-demo.cjs.entry.js +1 -1
  66. package/dist/cjs/{i18n-DXkB0Cg-.js → i18n-D9iWFntP.js} +106 -97
  67. package/dist/cjs/i18n-D9iWFntP.js.map +1 -0
  68. package/dist/cjs/{index-CkTcEJuV.js → index-DvrTSHdI.js} +24 -6
  69. package/dist/cjs/index-DvrTSHdI.js.map +1 -0
  70. package/dist/cjs/loader.cjs.js +2 -2
  71. package/dist/collection/collection-manifest.json +1 -1
  72. package/dist/collection/components/accordion/accordion.js +2 -2
  73. package/dist/collection/components/accordion/components/accordion-section.js +14 -14
  74. package/dist/collection/components/action-list/action-list.js +1 -1
  75. package/dist/collection/components/action-list/components/action-list-item.js +5 -5
  76. package/dist/collection/components/advanced-select/advanced-select.js +3 -1
  77. package/dist/collection/components/advanced-select/advanced-select.js.map +1 -1
  78. package/dist/collection/components/alert/alert.js +4 -4
  79. package/dist/collection/components/annotation/annotation-activiteit/annotation-activiteit.js +7 -6
  80. package/dist/collection/components/annotation/annotation-activiteit/annotation-activiteit.js.map +1 -1
  81. package/dist/collection/components/annotation/annotation-gebiedsaanwijzing/annotation-gebiedsaanwijzing.js +4 -4
  82. package/dist/collection/components/annotation/annotation-kaart/annotation-kaart.js +3 -3
  83. package/dist/collection/components/annotation/annotation-locatie/annotation-locatie.js +4 -4
  84. package/dist/collection/components/annotation/annotation-omgevingsnormwaarde/annotation-omgevingsnormwaarde.js +7 -6
  85. package/dist/collection/components/annotation/annotation-omgevingsnormwaarde/annotation-omgevingsnormwaarde.js.map +1 -1
  86. package/dist/collection/components/attachments-counter/attachments-counter.js +1 -1
  87. package/dist/collection/components/autosuggest/autosuggest.js +7 -5
  88. package/dist/collection/components/autosuggest/autosuggest.js.map +1 -1
  89. package/dist/collection/components/badge/badge.js +1 -1
  90. package/dist/collection/components/banner/banner.js +3 -3
  91. package/dist/collection/components/card/card.js +3 -3
  92. package/dist/collection/components/card-container/card-container.js +1 -1
  93. package/dist/collection/components/date-picker/date-picker.js +10 -10
  94. package/dist/collection/components/date-picker-legacy/date-picker-legacy.js +12 -12
  95. package/dist/collection/components/document-card/document-card.js +2 -2
  96. package/dist/collection/components/document-component/document-component.js +24 -22
  97. package/dist/collection/components/document-component/document-component.js.map +1 -1
  98. package/dist/collection/components/document-component-demo/document-component.demo.js +5 -4
  99. package/dist/collection/components/document-component-demo/document-component.demo.js.map +1 -1
  100. package/dist/collection/components/dropdown-menu/dropdown-menu.js +7 -7
  101. package/dist/collection/components/expandable/expandable.js +3 -3
  102. package/dist/collection/components/header/header.js +11 -10
  103. package/dist/collection/components/header/header.js.map +1 -1
  104. package/dist/collection/components/highlight-box/highlight-box.js +5 -5
  105. package/dist/collection/components/icon/icon.js +1 -1
  106. package/dist/collection/components/image-overlay/image-overlay.js +1 -1
  107. package/dist/collection/components/info/info.js +2 -2
  108. package/dist/collection/components/info-button/info-button.js +3 -3
  109. package/dist/collection/components/input-range/input-range.js +7 -7
  110. package/dist/collection/components/label/label.js +4 -4
  111. package/dist/collection/components/legend-item/legend-item.js +3 -3
  112. package/dist/collection/components/list-button/list-button.js +8 -8
  113. package/dist/collection/components/logo/logo.js +5 -5
  114. package/dist/collection/components/map-base-layers/map-base-layers.js +2 -1
  115. package/dist/collection/components/map-base-layers/map-base-layers.js.map +1 -1
  116. package/dist/collection/components/map-controls/map-controls.js +2 -2
  117. package/dist/collection/components/map-overlays/map-overlays.js +2 -1
  118. package/dist/collection/components/map-overlays/map-overlays.js.map +1 -1
  119. package/dist/collection/components/mark-bar/mark-bar.js +4 -4
  120. package/dist/collection/components/modal/modal.js +5 -5
  121. package/dist/collection/components/onboarding-tip/onboarding-tip.js +1 -1
  122. package/dist/collection/components/ozon-content/ozon-content.js +4 -2
  123. package/dist/collection/components/ozon-content/ozon-content.js.map +1 -1
  124. package/dist/collection/components/pagination/pagination.js +3 -2
  125. package/dist/collection/components/pagination/pagination.js.map +1 -1
  126. package/dist/collection/components/panel/panel.js +2 -2
  127. package/dist/collection/components/plekinfo-card/plekinfo-card.js +4 -4
  128. package/dist/collection/components/progress-bar/progress-bar.js +3 -3
  129. package/dist/collection/components/progress-indicator/progress-indicator.js +3 -3
  130. package/dist/collection/components/project-item/project-item.js +1 -1
  131. package/dist/collection/components/renvooi/renvooi.js +2 -1
  132. package/dist/collection/components/renvooi/renvooi.js.map +1 -1
  133. package/dist/collection/components/selectable/selectable.js +12 -12
  134. package/dist/collection/components/skiplink/skiplink.js +2 -2
  135. package/dist/collection/components/slide-toggle/slide-toggle.js +5 -5
  136. package/dist/collection/components/survey-rating/survey-rating.js +3 -3
  137. package/dist/collection/components/survey-rating/survey-rating.js.map +1 -1
  138. package/dist/collection/components/table/table.js +2 -2
  139. package/dist/collection/components/tabs/components/tab.js +3 -3
  140. package/dist/collection/components/toggletip/toggletip.js +4 -4
  141. package/dist/collection/components/tooltip/tooltip.js +7 -7
  142. package/dist/collection/components/tree-view/tree-view.js +1 -0
  143. package/dist/collection/components/tree-view/tree-view.js.map +1 -1
  144. package/dist/collection/components/viewer-grid/viewer-grid.css +5 -0
  145. package/dist/collection/components/viewer-grid/viewer-grid.js +13 -12
  146. package/dist/collection/components/viewer-grid/viewer-grid.js.map +1 -1
  147. package/dist/components/document-component.js +1 -1
  148. package/dist/components/dso-annotation-activiteit.js +1 -1
  149. package/dist/components/dso-header.js +1 -1
  150. package/dist/components/dso-map-base-layers.js +1 -1
  151. package/dist/components/dso-pagination.js +1 -1
  152. package/dist/components/dso-survey-rating.js +2 -2
  153. package/dist/components/dso-survey-rating.js.map +1 -1
  154. package/dist/components/dso-viewer-grid.js +3 -3
  155. package/dist/components/dso-viewer-grid.js.map +1 -1
  156. package/dist/components/dsot-document-component-demo.js +1 -1
  157. package/dist/components/i18n.js +104 -95
  158. package/dist/components/i18n.js.map +1 -1
  159. package/dist/components/index.js +1 -1
  160. package/dist/components/ozon-content.js +1 -1
  161. package/dist/dso-toolkit/dso-survey-rating.entry.esm.js.map +1 -1
  162. package/dist/dso-toolkit/dso-toolkit.esm.js +1 -1
  163. package/dist/dso-toolkit/dso-toolkit.esm.js.map +1 -1
  164. package/dist/dso-toolkit/dso-viewer-grid.entry.esm.js.map +1 -1
  165. package/dist/dso-toolkit/{p-6c413b75.entry.js → p-00431d87.entry.js} +2 -2
  166. package/dist/dso-toolkit/{p-0a2dd4a9.entry.js → p-077f0a02.entry.js} +2 -2
  167. package/dist/dso-toolkit/{p-61dfc1f5.entry.js → p-08aa7f78.entry.js} +2 -2
  168. package/dist/dso-toolkit/{p-a66fd056.entry.js → p-0b902049.entry.js} +2 -2
  169. package/dist/dso-toolkit/{p-24f64459.entry.js → p-13042742.entry.js} +2 -2
  170. package/dist/dso-toolkit/{p-b673cbdb.entry.js → p-1636f9be.entry.js} +2 -2
  171. package/dist/dso-toolkit/{p-49af1837.entry.js → p-1f7f6d8b.entry.js} +2 -2
  172. package/dist/dso-toolkit/{p-5b25e608.entry.js → p-23c5e409.entry.js} +2 -2
  173. package/dist/dso-toolkit/{p-91f1ac00.entry.js → p-2711b352.entry.js} +2 -2
  174. package/dist/dso-toolkit/{p-6b6b5ed2.entry.js → p-2a0e7fab.entry.js} +2 -2
  175. package/dist/dso-toolkit/{p-7b7ae40b.entry.js → p-3092991c.entry.js} +2 -2
  176. package/dist/dso-toolkit/{p-710e1719.entry.js → p-31754dd5.entry.js} +2 -2
  177. package/dist/dso-toolkit/{p-35b096ec.entry.js → p-32081789.entry.js} +2 -2
  178. package/dist/dso-toolkit/{p-7531a336.entry.js → p-37864ec3.entry.js} +2 -2
  179. package/dist/dso-toolkit/{p-1d96f67a.entry.js → p-38a17746.entry.js} +2 -2
  180. package/dist/dso-toolkit/{p-5f01431d.entry.js → p-3dc6df90.entry.js} +2 -2
  181. package/dist/dso-toolkit/{p-e87edda8.entry.js → p-4282580b.entry.js} +2 -2
  182. package/dist/dso-toolkit/{p-1da9f680.entry.js → p-45a523e5.entry.js} +2 -2
  183. package/dist/dso-toolkit/{p-55176bef.entry.js → p-47936ff6.entry.js} +2 -2
  184. package/dist/dso-toolkit/{p-ebc43652.entry.js → p-47bdc747.entry.js} +2 -2
  185. package/dist/dso-toolkit/p-47bdc747.entry.js.map +1 -0
  186. package/dist/dso-toolkit/{p-70b9abf1.entry.js → p-487f46df.entry.js} +2 -2
  187. package/dist/dso-toolkit/{p-759d18f9.entry.js → p-49fc2235.entry.js} +2 -2
  188. package/dist/dso-toolkit/{p-a250b931.entry.js → p-4a034e40.entry.js} +2 -2
  189. package/dist/dso-toolkit/{p-5509732c.entry.js → p-4a5cc3fc.entry.js} +2 -2
  190. package/dist/dso-toolkit/{p-ee5df97d.entry.js → p-5183876a.entry.js} +2 -2
  191. package/dist/dso-toolkit/{p-ca14935b.entry.js → p-5193e894.entry.js} +2 -2
  192. package/dist/dso-toolkit/{p-70fc8d65.entry.js → p-53b338f1.entry.js} +2 -2
  193. package/dist/dso-toolkit/{p-f6a81839.entry.js → p-583bd6db.entry.js} +2 -2
  194. package/dist/dso-toolkit/{p-09dcedd1.entry.js → p-6070a869.entry.js} +2 -2
  195. package/dist/dso-toolkit/{p-4956ca51.entry.js → p-621a9bbb.entry.js} +2 -2
  196. package/dist/dso-toolkit/{p-3aac8417.entry.js → p-6a2a4141.entry.js} +2 -2
  197. package/dist/dso-toolkit/{p-79e6a042.entry.js → p-6e6d93a3.entry.js} +2 -2
  198. package/dist/dso-toolkit/{p-d260469c.entry.js → p-6f211cd5.entry.js} +2 -2
  199. package/dist/dso-toolkit/{p-4790e06e.entry.js → p-78420f02.entry.js} +2 -2
  200. package/dist/dso-toolkit/{p-3315d028.entry.js → p-86849be0.entry.js} +2 -2
  201. package/dist/dso-toolkit/{p-e232a8ad.entry.js → p-8941035f.entry.js} +2 -2
  202. package/dist/dso-toolkit/{p-ada03e5c.entry.js → p-8a677aba.entry.js} +2 -2
  203. package/dist/dso-toolkit/{p-9213f126.entry.js → p-8e1a144a.entry.js} +2 -2
  204. package/dist/dso-toolkit/{p-70d63a6a.entry.js → p-90d2a099.entry.js} +2 -2
  205. package/dist/dso-toolkit/p-90d2a099.entry.js.map +1 -0
  206. package/dist/dso-toolkit/p-BbNJ4wXp.js +2 -0
  207. package/dist/dso-toolkit/p-BbNJ4wXp.js.map +1 -0
  208. package/dist/dso-toolkit/{p-CcZz5H_k.js → p-COKRRU_q.js} +2 -2
  209. package/dist/dso-toolkit/{p-CcZz5H_k.js.map → p-COKRRU_q.js.map} +1 -1
  210. package/dist/dso-toolkit/p-ChsEPkam.js +2 -0
  211. package/dist/dso-toolkit/{p-CzQFr230.js.map → p-ChsEPkam.js.map} +1 -1
  212. package/dist/dso-toolkit/p-D2Jo0W7B.js +3 -0
  213. package/dist/dso-toolkit/p-D2Jo0W7B.js.map +1 -0
  214. package/dist/dso-toolkit/{p-CXy7CeUE.js → p-D4cSA4l8.js} +2 -2
  215. package/dist/dso-toolkit/{p-CXy7CeUE.js.map → p-D4cSA4l8.js.map} +1 -1
  216. package/dist/dso-toolkit/{p-a186b796.entry.js → p-a0960751.entry.js} +2 -2
  217. package/dist/dso-toolkit/{p-2f99bb30.entry.js → p-a92bee24.entry.js} +2 -2
  218. package/dist/dso-toolkit/{p-6a620f5f.entry.js → p-b7bbdb17.entry.js} +2 -2
  219. package/dist/dso-toolkit/{p-0e6d0886.entry.js → p-bae3006c.entry.js} +2 -2
  220. package/dist/dso-toolkit/{p-53910728.entry.js → p-c5325945.entry.js} +2 -2
  221. package/dist/dso-toolkit/{p-13cda4e5.entry.js → p-c9049181.entry.js} +2 -2
  222. package/dist/dso-toolkit/{p-ee93ae83.entry.js → p-c9461ffa.entry.js} +2 -2
  223. package/dist/dso-toolkit/{p-c059397d.entry.js → p-d112b93b.entry.js} +2 -2
  224. package/dist/dso-toolkit/{p-c01b6283.entry.js → p-d4ac95de.entry.js} +2 -2
  225. package/dist/dso-toolkit/{p-bb88881a.entry.js → p-daafcc37.entry.js} +2 -2
  226. package/dist/dso-toolkit/{p-7918004d.entry.js → p-dfd980b6.entry.js} +2 -2
  227. package/dist/dso-toolkit/{p-215e9ecd.entry.js → p-e097b372.entry.js} +2 -2
  228. package/dist/dso-toolkit/{p-159753d7.entry.js → p-e990ee37.entry.js} +2 -2
  229. package/dist/dso-toolkit/{p-ed11ee1b.entry.js → p-eea3b9c8.entry.js} +2 -2
  230. package/dist/esm/{annotation-body-Bwcvd5YG.js → annotation-body-C13C3XCU.js} +3 -3
  231. package/dist/esm/{annotation-body-Bwcvd5YG.js.map → annotation-body-C13C3XCU.js.map} +1 -1
  232. package/dist/esm/{annotation-list-renvooi-values-D_I-aAbM.js → annotation-list-renvooi-values-D75KxHAC.js} +3 -3
  233. package/dist/esm/{annotation-list-renvooi-values-D_I-aAbM.js.map → annotation-list-renvooi-values-D75KxHAC.js.map} +1 -1
  234. package/dist/esm/{annotation-symbol-slot-BlF4i_Mi.js → annotation-symbol-slot-CRK43mu1.js} +3 -3
  235. package/dist/esm/{annotation-symbol-slot-BlF4i_Mi.js.map → annotation-symbol-slot-CRK43mu1.js.map} +1 -1
  236. package/dist/esm/dso-accordion-section.entry.js +1 -1
  237. package/dist/esm/dso-accordion.entry.js +1 -1
  238. package/dist/esm/dso-action-list-item.entry.js +1 -1
  239. package/dist/esm/dso-action-list.entry.js +1 -1
  240. package/dist/esm/dso-advanced-select.entry.js +1 -1
  241. package/dist/esm/dso-alert_6.entry.js +2 -2
  242. package/dist/esm/dso-annotation-activiteit.entry.js +4 -4
  243. package/dist/esm/dso-annotation-gebiedsaanwijzing.entry.js +3 -3
  244. package/dist/esm/dso-annotation-kaart.entry.js +2 -2
  245. package/dist/esm/dso-annotation-locatie_2.entry.js +3 -3
  246. package/dist/esm/dso-annotation-omgevingsnormwaarde.entry.js +4 -4
  247. package/dist/esm/dso-attachments-counter_2.entry.js +1 -1
  248. package/dist/esm/dso-autosuggest.entry.js +2 -2
  249. package/dist/esm/dso-banner.entry.js +1 -1
  250. package/dist/esm/dso-card-container.entry.js +1 -1
  251. package/dist/esm/dso-card.entry.js +1 -1
  252. package/dist/esm/dso-contact-information.entry.js +1 -1
  253. package/dist/esm/dso-date-picker-legacy.entry.js +1 -1
  254. package/dist/esm/dso-date-picker.entry.js +1 -1
  255. package/dist/esm/dso-document-card.entry.js +1 -1
  256. package/dist/esm/dso-dropdown-menu.entry.js +1 -1
  257. package/dist/esm/dso-header.entry.js +2 -2
  258. package/dist/esm/dso-highlight-box.entry.js +1 -1
  259. package/dist/esm/dso-icon.entry.js +1 -1
  260. package/dist/esm/dso-info-button.entry.js +1 -1
  261. package/dist/esm/dso-info_2.entry.js +1 -1
  262. package/dist/esm/dso-input-range.entry.js +1 -1
  263. package/dist/esm/dso-label_3.entry.js +1 -1
  264. package/dist/esm/dso-legend-item.entry.js +1 -1
  265. package/dist/esm/dso-list-button.entry.js +1 -1
  266. package/dist/esm/dso-logo.entry.js +1 -1
  267. package/dist/esm/dso-map-base-layers.entry.js +2 -2
  268. package/dist/esm/dso-map-controls.entry.js +2 -2
  269. package/dist/esm/dso-map-overlays.entry.js +2 -2
  270. package/dist/esm/dso-mark-bar.entry.js +1 -1
  271. package/dist/esm/dso-modal.entry.js +2 -2
  272. package/dist/esm/dso-onboarding-tip.entry.js +1 -1
  273. package/dist/esm/dso-pagination.entry.js +1 -1
  274. package/dist/esm/dso-plekinfo-card.entry.js +1 -1
  275. package/dist/esm/dso-progress-bar.entry.js +1 -1
  276. package/dist/esm/dso-progress-indicator.entry.js +2 -2
  277. package/dist/esm/dso-project-item.entry.js +1 -1
  278. package/dist/esm/dso-responsive-element.entry.js +1 -1
  279. package/dist/esm/dso-scrollable.entry.js +1 -1
  280. package/dist/esm/dso-skiplink.entry.js +1 -1
  281. package/dist/esm/dso-survey-rating.entry.js +3 -3
  282. package/dist/esm/dso-survey-rating.entry.js.map +1 -1
  283. package/dist/esm/dso-tab.entry.js +1 -1
  284. package/dist/esm/dso-tabs.entry.js +1 -1
  285. package/dist/esm/dso-toggletip.entry.js +1 -1
  286. package/dist/esm/dso-toolkit.js +4 -4
  287. package/dist/esm/dso-toolkit.js.map +1 -1
  288. package/dist/esm/dso-tooltip.entry.js +1 -1
  289. package/dist/esm/dso-tree-view.entry.js +1 -1
  290. package/dist/esm/dso-viewer-grid.entry.js +4 -4
  291. package/dist/esm/dso-viewer-grid.entry.js.map +1 -1
  292. package/dist/esm/dsot-document-component-demo.entry.js +1 -1
  293. package/dist/esm/{i18n-D6dst_Em.js → i18n-BbNJ4wXp.js} +106 -97
  294. package/dist/esm/i18n-BbNJ4wXp.js.map +1 -0
  295. package/dist/esm/{index-BzEnSYbR.js → index-D2Jo0W7B.js} +24 -6
  296. package/dist/esm/index-D2Jo0W7B.js.map +1 -0
  297. package/dist/esm/loader.js +3 -3
  298. package/dist/types/components/survey-rating/survey-rating.d.ts +1 -1
  299. package/dist/types/components/viewer-grid/viewer-grid.d.ts +1 -0
  300. package/dist/types/components.d.ts +1 -1
  301. package/dist/types/stencil-public-runtime.d.ts +21 -0
  302. package/package.json +8 -8
  303. package/dist/cjs/i18n-DXkB0Cg-.js.map +0 -1
  304. package/dist/cjs/index-CkTcEJuV.js.map +0 -1
  305. package/dist/dso-toolkit/p-70d63a6a.entry.js.map +0 -1
  306. package/dist/dso-toolkit/p-BzEnSYbR.js +0 -3
  307. package/dist/dso-toolkit/p-BzEnSYbR.js.map +0 -1
  308. package/dist/dso-toolkit/p-CzQFr230.js +0 -2
  309. package/dist/dso-toolkit/p-D6dst_Em.js +0 -2
  310. package/dist/dso-toolkit/p-D6dst_Em.js.map +0 -1
  311. package/dist/dso-toolkit/p-ebc43652.entry.js.map +0 -1
  312. package/dist/esm/i18n-D6dst_Em.js.map +0 -1
  313. package/dist/esm/index-BzEnSYbR.js.map +0 -1
  314. /package/dist/dso-toolkit/{p-6c413b75.entry.js.map → p-00431d87.entry.js.map} +0 -0
  315. /package/dist/dso-toolkit/{p-0a2dd4a9.entry.js.map → p-077f0a02.entry.js.map} +0 -0
  316. /package/dist/dso-toolkit/{p-61dfc1f5.entry.js.map → p-08aa7f78.entry.js.map} +0 -0
  317. /package/dist/dso-toolkit/{p-a66fd056.entry.js.map → p-0b902049.entry.js.map} +0 -0
  318. /package/dist/dso-toolkit/{p-24f64459.entry.js.map → p-13042742.entry.js.map} +0 -0
  319. /package/dist/dso-toolkit/{p-b673cbdb.entry.js.map → p-1636f9be.entry.js.map} +0 -0
  320. /package/dist/dso-toolkit/{p-49af1837.entry.js.map → p-1f7f6d8b.entry.js.map} +0 -0
  321. /package/dist/dso-toolkit/{p-5b25e608.entry.js.map → p-23c5e409.entry.js.map} +0 -0
  322. /package/dist/dso-toolkit/{p-91f1ac00.entry.js.map → p-2711b352.entry.js.map} +0 -0
  323. /package/dist/dso-toolkit/{p-6b6b5ed2.entry.js.map → p-2a0e7fab.entry.js.map} +0 -0
  324. /package/dist/dso-toolkit/{p-7b7ae40b.entry.js.map → p-3092991c.entry.js.map} +0 -0
  325. /package/dist/dso-toolkit/{p-710e1719.entry.js.map → p-31754dd5.entry.js.map} +0 -0
  326. /package/dist/dso-toolkit/{p-35b096ec.entry.js.map → p-32081789.entry.js.map} +0 -0
  327. /package/dist/dso-toolkit/{p-7531a336.entry.js.map → p-37864ec3.entry.js.map} +0 -0
  328. /package/dist/dso-toolkit/{p-1d96f67a.entry.js.map → p-38a17746.entry.js.map} +0 -0
  329. /package/dist/dso-toolkit/{p-5f01431d.entry.js.map → p-3dc6df90.entry.js.map} +0 -0
  330. /package/dist/dso-toolkit/{p-e87edda8.entry.js.map → p-4282580b.entry.js.map} +0 -0
  331. /package/dist/dso-toolkit/{p-1da9f680.entry.js.map → p-45a523e5.entry.js.map} +0 -0
  332. /package/dist/dso-toolkit/{p-55176bef.entry.js.map → p-47936ff6.entry.js.map} +0 -0
  333. /package/dist/dso-toolkit/{p-70b9abf1.entry.js.map → p-487f46df.entry.js.map} +0 -0
  334. /package/dist/dso-toolkit/{p-759d18f9.entry.js.map → p-49fc2235.entry.js.map} +0 -0
  335. /package/dist/dso-toolkit/{p-a250b931.entry.js.map → p-4a034e40.entry.js.map} +0 -0
  336. /package/dist/dso-toolkit/{p-5509732c.entry.js.map → p-4a5cc3fc.entry.js.map} +0 -0
  337. /package/dist/dso-toolkit/{p-ee5df97d.entry.js.map → p-5183876a.entry.js.map} +0 -0
  338. /package/dist/dso-toolkit/{p-ca14935b.entry.js.map → p-5193e894.entry.js.map} +0 -0
  339. /package/dist/dso-toolkit/{p-70fc8d65.entry.js.map → p-53b338f1.entry.js.map} +0 -0
  340. /package/dist/dso-toolkit/{p-f6a81839.entry.js.map → p-583bd6db.entry.js.map} +0 -0
  341. /package/dist/dso-toolkit/{p-09dcedd1.entry.js.map → p-6070a869.entry.js.map} +0 -0
  342. /package/dist/dso-toolkit/{p-4956ca51.entry.js.map → p-621a9bbb.entry.js.map} +0 -0
  343. /package/dist/dso-toolkit/{p-3aac8417.entry.js.map → p-6a2a4141.entry.js.map} +0 -0
  344. /package/dist/dso-toolkit/{p-79e6a042.entry.js.map → p-6e6d93a3.entry.js.map} +0 -0
  345. /package/dist/dso-toolkit/{p-d260469c.entry.js.map → p-6f211cd5.entry.js.map} +0 -0
  346. /package/dist/dso-toolkit/{p-4790e06e.entry.js.map → p-78420f02.entry.js.map} +0 -0
  347. /package/dist/dso-toolkit/{p-3315d028.entry.js.map → p-86849be0.entry.js.map} +0 -0
  348. /package/dist/dso-toolkit/{p-e232a8ad.entry.js.map → p-8941035f.entry.js.map} +0 -0
  349. /package/dist/dso-toolkit/{p-ada03e5c.entry.js.map → p-8a677aba.entry.js.map} +0 -0
  350. /package/dist/dso-toolkit/{p-9213f126.entry.js.map → p-8e1a144a.entry.js.map} +0 -0
  351. /package/dist/dso-toolkit/{p-a186b796.entry.js.map → p-a0960751.entry.js.map} +0 -0
  352. /package/dist/dso-toolkit/{p-2f99bb30.entry.js.map → p-a92bee24.entry.js.map} +0 -0
  353. /package/dist/dso-toolkit/{p-6a620f5f.entry.js.map → p-b7bbdb17.entry.js.map} +0 -0
  354. /package/dist/dso-toolkit/{p-0e6d0886.entry.js.map → p-bae3006c.entry.js.map} +0 -0
  355. /package/dist/dso-toolkit/{p-53910728.entry.js.map → p-c5325945.entry.js.map} +0 -0
  356. /package/dist/dso-toolkit/{p-13cda4e5.entry.js.map → p-c9049181.entry.js.map} +0 -0
  357. /package/dist/dso-toolkit/{p-ee93ae83.entry.js.map → p-c9461ffa.entry.js.map} +0 -0
  358. /package/dist/dso-toolkit/{p-c059397d.entry.js.map → p-d112b93b.entry.js.map} +0 -0
  359. /package/dist/dso-toolkit/{p-c01b6283.entry.js.map → p-d4ac95de.entry.js.map} +0 -0
  360. /package/dist/dso-toolkit/{p-bb88881a.entry.js.map → p-daafcc37.entry.js.map} +0 -0
  361. /package/dist/dso-toolkit/{p-7918004d.entry.js.map → p-dfd980b6.entry.js.map} +0 -0
  362. /package/dist/dso-toolkit/{p-215e9ecd.entry.js.map → p-e097b372.entry.js.map} +0 -0
  363. /package/dist/dso-toolkit/{p-159753d7.entry.js.map → p-e990ee37.entry.js.map} +0 -0
  364. /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, options) {
488
- let nsSeparator = options.nsSeparator !== undefined ? options.nsSeparator : this.options.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 = options.keySeparator !== undefined ? options.keySeparator : this.options.keySeparator;
491
- let namespaces = options.ns || this.options.defaultNS || [];
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 && !options.keySeparator && !this.options.userDefinedNsSeparator && !options.nsSeparator && !looksLikeObjectPath(key, nsSeparator, keySeparator);
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, options, lastKey) {
512
- if (typeof options !== 'object' && this.options.overloadTranslationOptionHandler) {
513
- options = this.options.overloadTranslationOptionHandler(arguments);
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') options = {
516
- ...options
515
+ if (typeof options === 'object') opt = {
516
+ ...opt
517
517
  };
518
- if (!options) options = {};
518
+ if (!opt) opt = {};
519
519
  if (keys == null) return '';
520
520
  if (!Array.isArray(keys)) keys = [String(keys)];
521
- const returnDetails = options.returnDetails !== undefined ? options.returnDetails : this.options.returnDetails;
522
- const keySeparator = options.keySeparator !== undefined ? options.keySeparator : this.options.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], options);
526
+ } = this.extractFromKey(keys[keys.length - 1], opt);
527
527
  const namespace = namespaces[namespaces.length - 1];
528
- const lng = options.lng || this.language;
529
- const appendNamespaceToCIMode = options.appendNamespaceToCIMode || this.options.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 = options.nsSeparator || this.options.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(options)
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(options)
552
+ usedParams: this.getUsedParamsDetails(opt)
553
553
  };
554
554
  }
555
555
  return key;
556
556
  }
557
- const resolved = this.resolve(keys, options);
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 = options.joinArrays !== undefined ? options.joinArrays : this.options.joinArrays;
562
+ const joinArrays = opt.joinArrays !== undefined ? opt.joinArrays : this.options.joinArrays;
563
563
  const handleAsObjectInI18nFormat = !this.i18nFormat || this.i18nFormat.handleAsObject;
564
- const needsPluralHandling = options.count !== undefined && !isString(options.count);
565
- const hasDefaultValue = Translator.hasDefaultValue(options);
566
- const defaultValueSuffix = needsPluralHandling ? this.pluralResolver.getSuffix(lng, options.count, options) : '';
567
- const defaultValueSuffixOrdinalFallback = options.ordinal && needsPluralHandling ? this.pluralResolver.getSuffix(lng, options.count, {
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 && !options.ordinal && options.count === 0;
571
- const defaultValue = needsZeroSuffixLookup && options[`defaultValue${this.options.pluralSeparator}zero`] || options[`defaultValue${defaultValueSuffix}`] || options[`defaultValue${defaultValueSuffixOrdinalFallback}`] || options.defaultValue;
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 (!options.returnObjects && !this.options.returnObjects) {
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
- ...options,
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(options);
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
- ...options,
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
- ...options,
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, options, lastKey);
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 = options.missingKeyNoValueFallbackToKey || this.options.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
- ...options,
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, options.lng || this.language);
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(options.lng || this.language);
657
+ lngs = this.languageUtils.toResolveHierarchy(opt.lng || this.language);
658
658
  } else {
659
- lngs.push(options.lng || this.language);
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, options);
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, options);
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, options);
674
- if (needsZeroSuffixLookup && options[`defaultValue${this.options.pluralSeparator}zero`] && suffixes.indexOf(`${this.options.pluralSeparator}zero`) < 0) {
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, options[`defaultValue${suffix}`] || defaultValue);
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, options, resolved, lastKey);
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(options);
694
+ resolved.usedParams = this.getUsedParamsDetails(opt);
695
695
  return resolved;
696
696
  }
697
697
  return res;
698
698
  }
699
- extendTranslation(res, key, options, resolved, lastKey) {
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
- ...options
705
- }, options.lng || this.language || resolved.usedLng, resolved.usedNS, resolved.usedKey, {
704
+ ...opt
705
+ }, opt.lng || this.language || resolved.usedLng, resolved.usedNS, resolved.usedKey, {
706
706
  resolved
707
707
  });
708
- } else if (!options.skipInterpolation) {
709
- if (options.interpolation) this.interpolator.init({
710
- ...options,
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
- ...options.interpolation
714
+ ...opt.interpolation
715
715
  }
716
716
  }
717
717
  });
718
- const skipOnVariables = isString(res) && (options?.interpolation?.skipOnVariables !== undefined ? options.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
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 = options.replace && !isString(options.replace) ? options.replace : options;
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, options.lng || this.language || resolved.usedLng, options);
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) options.nest = false;
733
+ if (nestBef < nestAft) opt.nest = false;
734
734
  }
735
- if (!options.lng && resolved && resolved.res) options.lng = this.language || resolved.usedLng;
736
- if (options.nest !== false) res = this.interpolator.nest(res, function () {
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] && !options.context) {
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
- }, options);
746
- if (options.interpolation) this.interpolator.reset();
745
+ }, opt);
746
+ if (opt.interpolation) this.interpolator.reset();
747
747
  }
748
- const postProcess = options.postProcess || this.options.postProcess;
748
+ const postProcess = opt.postProcess || this.options.postProcess;
749
749
  const postProcessorNames = isString(postProcess) ? [postProcess] : postProcess;
750
- if (res != null && postProcessorNames?.length && options.applyPostProcessor !== false) {
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(options)
754
+ usedParams: this.getUsedParamsDetails(opt)
755
755
  },
756
- ...options
757
- } : options, this);
756
+ ...opt
757
+ } : opt, this);
758
758
  }
759
759
  return res;
760
760
  }
761
761
  resolve(keys) {
762
- let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
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, options);
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 = options.count !== undefined && !isString(options.count);
777
- const needsZeroSuffixLookup = needsPluralHandling && !options.ordinal && options.count === 0;
778
- const needsContextHandling = options.context !== undefined && (isString(options.context) || typeof options.context === 'number') && options.context !== '';
779
- const codes = options.lngs ? options.lngs : this.languageUtils.toResolveHierarchy(options.lng || this.language, options.fallbackLng);
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, options);
792
+ this.i18nFormat.addLookupKeys(finalKeys, key, code, ns, opt);
793
793
  } else {
794
794
  let pluralSuffix;
795
- if (needsPluralHandling) pluralSuffix = this.pluralResolver.getSuffix(code, options.count, options);
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 (options.ordinal && pluralSuffix.indexOf(ordinalPrefix) === 0) {
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}${options.context}`;
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 (options.ordinal && pluralSuffix.indexOf(ordinalPrefix) === 0) {
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, options);
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
- setLngProps(l);
1984
- this.translator.changeLanguage(l);
1985
- this.isLanguageChangingTo = undefined;
1986
- this.emit('languageChanged', l);
1987
- this.logger.log('languageChanged', l);
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 l = isString(lngs) ? lngs : this.services.languageUtils.getBestMatchFromCodes(lngs);
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 options;
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
- options = _this3.options.overloadTranslationOptionHandler([key, opts].concat(rest));
2042
+ o = _this3.options.overloadTranslationOptionHandler([key, opts].concat(rest));
2034
2043
  } else {
2035
- options = {
2044
+ o = {
2036
2045
  ...opts
2037
2046
  };
2038
2047
  }
2039
- options.lng = options.lng || fixedT.lng;
2040
- options.lngs = options.lngs || fixedT.lngs;
2041
- options.ns = options.ns || fixedT.ns;
2042
- if (options.keyPrefix !== '') options.keyPrefix = options.keyPrefix || keyPrefix || fixedT.keyPrefix;
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 (options.keyPrefix && Array.isArray(key)) {
2046
- resultKey = key.map(k => `${options.keyPrefix}${keySeparator}${k}`);
2054
+ if (o.keyPrefix && Array.isArray(key)) {
2055
+ resultKey = key.map(k => `${o.keyPrefix}${keySeparator}${k}`);
2047
2056
  } else {
2048
- resultKey = options.keyPrefix ? `${options.keyPrefix}${keySeparator}${key}` : key;
2057
+ resultKey = o.keyPrefix ? `${o.keyPrefix}${keySeparator}${key}` : key;
2049
2058
  }
2050
- return _this3.t(resultKey, options);
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-DXkB0Cg-.js.map
2259
+ //# sourceMappingURL=i18n-D9iWFntP.js.map
2251
2260
 
2252
- //# sourceMappingURL=i18n-DXkB0Cg-.js.map
2261
+ //# sourceMappingURL=i18n-D9iWFntP.js.map