@dso-toolkit/core 73.0.1 → 73.1.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 (343) hide show
  1. package/dist/cjs/{annotation-body-BBlFDtNQ.js → annotation-body-DiF6OSBJ.js} +3 -3
  2. package/dist/cjs/{annotation-body-BBlFDtNQ.js.map → annotation-body-DiF6OSBJ.js.map} +1 -1
  3. package/dist/cjs/{annotation-list-renvooi-values-BRsXjGPr.js → annotation-list-renvooi-values-BsuXHY9R.js} +3 -3
  4. package/dist/cjs/{annotation-list-renvooi-values-BRsXjGPr.js.map → annotation-list-renvooi-values-BsuXHY9R.js.map} +1 -1
  5. package/dist/cjs/{annotation-symbol-slot-Ko-yyBqQ.js → annotation-symbol-slot-CwCc6l70.js} +3 -3
  6. package/dist/cjs/{annotation-symbol-slot-Ko-yyBqQ.js.map → annotation-symbol-slot-CwCc6l70.js.map} +1 -1
  7. package/dist/cjs/dso-accordion-section.cjs.entry.js +2 -2
  8. package/dist/cjs/dso-accordion-section.cjs.entry.js.map +1 -1
  9. package/dist/cjs/dso-accordion-section.entry.cjs.js.map +1 -1
  10. package/dist/cjs/dso-accordion.cjs.entry.js +1 -1
  11. package/dist/cjs/dso-action-list-item.cjs.entry.js +1 -1
  12. package/dist/cjs/dso-action-list.cjs.entry.js +1 -1
  13. package/dist/cjs/dso-advanced-select.cjs.entry.js +1 -1
  14. package/dist/cjs/dso-alert_6.cjs.entry.js +2 -2
  15. package/dist/cjs/dso-annotation-activiteit.cjs.entry.js +5 -5
  16. package/dist/cjs/dso-annotation-activiteit.cjs.entry.js.map +1 -1
  17. package/dist/cjs/dso-annotation-activiteit.entry.cjs.js.map +1 -1
  18. package/dist/cjs/dso-annotation-gebiedsaanwijzing.cjs.entry.js +4 -4
  19. package/dist/cjs/dso-annotation-gebiedsaanwijzing.cjs.entry.js.map +1 -1
  20. package/dist/cjs/dso-annotation-gebiedsaanwijzing.entry.cjs.js.map +1 -1
  21. package/dist/cjs/dso-annotation-kaart.cjs.entry.js +3 -3
  22. package/dist/cjs/dso-annotation-kaart.cjs.entry.js.map +1 -1
  23. package/dist/cjs/dso-annotation-kaart.entry.cjs.js.map +1 -1
  24. package/dist/cjs/dso-annotation-locatie.dso-document-component.entry.cjs.js.map +1 -1
  25. package/dist/cjs/dso-annotation-locatie_2.cjs.entry.js +4 -4
  26. package/dist/cjs/dso-annotation-locatie_2.cjs.entry.js.map +1 -1
  27. package/dist/cjs/dso-annotation-omgevingsnormwaarde.cjs.entry.js +5 -5
  28. package/dist/cjs/dso-annotation-omgevingsnormwaarde.cjs.entry.js.map +1 -1
  29. package/dist/cjs/dso-annotation-omgevingsnormwaarde.entry.cjs.js.map +1 -1
  30. package/dist/cjs/dso-attachments-counter_2.cjs.entry.js +1 -1
  31. package/dist/cjs/dso-autosuggest.cjs.entry.js +2 -2
  32. package/dist/cjs/dso-banner.cjs.entry.js +1 -1
  33. package/dist/cjs/dso-card-container.cjs.entry.js +1 -1
  34. package/dist/cjs/dso-card.cjs.entry.js +1 -1
  35. package/dist/cjs/dso-contact-information.cjs.entry.js +1 -1
  36. package/dist/cjs/dso-date-picker-legacy.cjs.entry.js +1 -1
  37. package/dist/cjs/dso-date-picker.cjs.entry.js +1 -1
  38. package/dist/cjs/dso-document-card.cjs.entry.js +1 -1
  39. package/dist/cjs/dso-dropdown-menu.cjs.entry.js +1 -1
  40. package/dist/cjs/dso-header.cjs.entry.js +2 -2
  41. package/dist/cjs/dso-highlight-box.cjs.entry.js +1 -1
  42. package/dist/cjs/dso-icon.cjs.entry.js +1 -1
  43. package/dist/cjs/dso-info-button.cjs.entry.js +1 -1
  44. package/dist/cjs/dso-info_2.cjs.entry.js +1 -1
  45. package/dist/cjs/dso-input-range.cjs.entry.js +1 -1
  46. package/dist/cjs/dso-label_3.cjs.entry.js +1 -1
  47. package/dist/cjs/dso-legend-item.cjs.entry.js +1 -1
  48. package/dist/cjs/dso-list-button.cjs.entry.js +1 -1
  49. package/dist/cjs/dso-logo.cjs.entry.js +1 -1
  50. package/dist/cjs/dso-map-base-layers.cjs.entry.js +2 -2
  51. package/dist/cjs/dso-map-controls.cjs.entry.js +3 -3
  52. package/dist/cjs/dso-map-controls.cjs.entry.js.map +1 -1
  53. package/dist/cjs/dso-map-controls.entry.cjs.js.map +1 -1
  54. package/dist/cjs/dso-map-overlays.cjs.entry.js +2 -2
  55. package/dist/cjs/dso-mark-bar.cjs.entry.js +1 -1
  56. package/dist/cjs/dso-modal.cjs.entry.js +2 -2
  57. package/dist/cjs/dso-onboarding-tip.cjs.entry.js +28 -16
  58. package/dist/cjs/dso-onboarding-tip.cjs.entry.js.map +1 -1
  59. package/dist/cjs/dso-onboarding-tip.entry.cjs.js.map +1 -1
  60. package/dist/cjs/dso-pagination.cjs.entry.js +1 -1
  61. package/dist/cjs/dso-plekinfo-card.cjs.entry.js +3 -3
  62. package/dist/cjs/dso-plekinfo-card.cjs.entry.js.map +1 -1
  63. package/dist/cjs/dso-plekinfo-card.entry.cjs.js.map +1 -1
  64. package/dist/cjs/dso-progress-bar.cjs.entry.js +1 -1
  65. package/dist/cjs/dso-progress-indicator.cjs.entry.js +2 -2
  66. package/dist/cjs/dso-project-item.cjs.entry.js +1 -1
  67. package/dist/cjs/dso-responsive-element.cjs.entry.js +1 -1
  68. package/dist/cjs/dso-scrollable.cjs.entry.js +1 -1
  69. package/dist/cjs/dso-skiplink.cjs.entry.js +1 -1
  70. package/dist/cjs/dso-survey-rating.cjs.entry.js +1 -1
  71. package/dist/cjs/dso-tab.cjs.entry.js +1 -1
  72. package/dist/cjs/dso-tabs.cjs.entry.js +1 -1
  73. package/dist/cjs/dso-toggletip.cjs.entry.js +1 -1
  74. package/dist/cjs/dso-toolkit.cjs.js +2 -2
  75. package/dist/cjs/dso-toolkit.cjs.js.map +1 -1
  76. package/dist/cjs/dso-tooltip.cjs.entry.js +2 -2
  77. package/dist/cjs/dso-tooltip.cjs.entry.js.map +1 -1
  78. package/dist/cjs/dso-tooltip.entry.cjs.js.map +1 -1
  79. package/dist/cjs/dso-tree-view.cjs.entry.js +1 -1
  80. package/dist/cjs/dso-viewer-grid.cjs.entry.js +1 -1
  81. package/dist/cjs/dsot-document-component-demo.cjs.entry.js +1 -1
  82. package/dist/cjs/{i18n-D9iWFntP.js → i18n-D6gzajyT.js} +120 -203
  83. package/dist/cjs/i18n-D6gzajyT.js.map +1 -0
  84. package/dist/cjs/{index-DvrTSHdI.js → index-Bfuot2fD.js} +3 -3
  85. package/dist/cjs/{index-DvrTSHdI.js.map → index-Bfuot2fD.js.map} +1 -1
  86. package/dist/cjs/loader.cjs.js +1 -1
  87. package/dist/collection/collection-manifest.json +1 -1
  88. package/dist/collection/components/accordion/components/accordion-section.css +1 -1
  89. package/dist/collection/components/annotation/annotation.css +1 -1
  90. package/dist/collection/components/map-controls/map-controls.css +8 -1
  91. package/dist/collection/components/onboarding-tip/onboarding-tip.css +1 -1
  92. package/dist/collection/components/plekinfo-card/plekinfo-card.css +12 -4
  93. package/dist/collection/components/plekinfo-card/plekinfo-card.js +1 -1
  94. package/dist/collection/components/plekinfo-card/plekinfo-card.js.map +1 -1
  95. package/dist/collection/components/tooltip/tooltip.css +1 -1
  96. package/dist/components/annotation-locatie.js +1 -1
  97. package/dist/components/annotation-locatie.js.map +1 -1
  98. package/dist/components/dso-accordion-section.js +1 -1
  99. package/dist/components/dso-accordion-section.js.map +1 -1
  100. package/dist/components/dso-annotation-activiteit.js +1 -1
  101. package/dist/components/dso-annotation-activiteit.js.map +1 -1
  102. package/dist/components/dso-annotation-gebiedsaanwijzing.js +1 -1
  103. package/dist/components/dso-annotation-gebiedsaanwijzing.js.map +1 -1
  104. package/dist/components/dso-annotation-kaart.js +1 -1
  105. package/dist/components/dso-annotation-kaart.js.map +1 -1
  106. package/dist/components/dso-annotation-omgevingsnormwaarde.js +1 -1
  107. package/dist/components/dso-annotation-omgevingsnormwaarde.js.map +1 -1
  108. package/dist/components/dso-map-controls.js +1 -1
  109. package/dist/components/dso-map-controls.js.map +1 -1
  110. package/dist/components/dso-onboarding-tip.js +27 -15
  111. package/dist/components/dso-onboarding-tip.js.map +1 -1
  112. package/dist/components/dso-plekinfo-card.js +2 -2
  113. package/dist/components/dso-plekinfo-card.js.map +1 -1
  114. package/dist/components/i18n.js +118 -201
  115. package/dist/components/i18n.js.map +1 -1
  116. package/dist/components/tooltip.js +1 -1
  117. package/dist/components/tooltip.js.map +1 -1
  118. package/dist/dso-toolkit/dso-accordion-section.entry.esm.js.map +1 -1
  119. package/dist/dso-toolkit/dso-annotation-activiteit.entry.esm.js.map +1 -1
  120. package/dist/dso-toolkit/dso-annotation-gebiedsaanwijzing.entry.esm.js.map +1 -1
  121. package/dist/dso-toolkit/dso-annotation-kaart.entry.esm.js.map +1 -1
  122. package/dist/dso-toolkit/dso-annotation-locatie.dso-document-component.entry.esm.js.map +1 -1
  123. package/dist/dso-toolkit/dso-annotation-omgevingsnormwaarde.entry.esm.js.map +1 -1
  124. package/dist/dso-toolkit/dso-map-controls.entry.esm.js.map +1 -1
  125. package/dist/dso-toolkit/dso-onboarding-tip.entry.esm.js.map +1 -1
  126. package/dist/dso-toolkit/dso-plekinfo-card.entry.esm.js.map +1 -1
  127. package/dist/dso-toolkit/dso-toolkit.esm.js +1 -1
  128. package/dist/dso-toolkit/dso-toolkit.esm.js.map +1 -1
  129. package/dist/dso-toolkit/dso-tooltip.entry.esm.js.map +1 -1
  130. package/dist/dso-toolkit/{p-a0960751.entry.js → p-0764520c.entry.js} +2 -2
  131. package/dist/dso-toolkit/{p-ce882c53.entry.js → p-0775a693.entry.js} +2 -2
  132. package/dist/dso-toolkit/{p-13042742.entry.js → p-1107be6c.entry.js} +2 -2
  133. package/dist/dso-toolkit/{p-f0d63537.entry.js → p-12dfeddc.entry.js} +2 -2
  134. package/dist/dso-toolkit/{p-0917a964.entry.js → p-189729b9.entry.js} +2 -2
  135. package/dist/dso-toolkit/p-189729b9.entry.js.map +1 -0
  136. package/dist/dso-toolkit/{p-1f7f6d8b.entry.js → p-1a22b0dc.entry.js} +2 -2
  137. package/dist/dso-toolkit/{p-45a523e5.entry.js → p-1b3db27c.entry.js} +2 -2
  138. package/dist/dso-toolkit/{p-f35cd2b5.entry.js → p-25121130.entry.js} +2 -2
  139. package/dist/dso-toolkit/{p-47936ff6.entry.js → p-2b70dfec.entry.js} +2 -2
  140. package/dist/dso-toolkit/{p-621a9bbb.entry.js → p-2edbb43d.entry.js} +2 -2
  141. package/dist/dso-toolkit/{p-23c5e409.entry.js → p-2ef001ae.entry.js} +2 -2
  142. package/dist/dso-toolkit/{p-8123ed2f.entry.js → p-2f5521cb.entry.js} +2 -2
  143. package/dist/dso-toolkit/{p-33acabc1.entry.js → p-3645517b.entry.js} +2 -2
  144. package/dist/dso-toolkit/p-3645517b.entry.js.map +1 -0
  145. package/dist/dso-toolkit/{p-38a17746.entry.js → p-3c74fd03.entry.js} +2 -2
  146. package/dist/dso-toolkit/p-3e3efd7f.entry.js +2 -0
  147. package/dist/dso-toolkit/p-3e3efd7f.entry.js.map +1 -0
  148. package/dist/dso-toolkit/{p-4a034e40.entry.js → p-3e60b05f.entry.js} +2 -2
  149. package/dist/dso-toolkit/{p-a676810d.entry.js → p-3ec9e63e.entry.js} +2 -2
  150. package/dist/dso-toolkit/{p-3dc6df90.entry.js → p-4222c5b4.entry.js} +2 -2
  151. package/dist/dso-toolkit/{p-60a2339f.entry.js → p-4728d309.entry.js} +2 -2
  152. package/dist/dso-toolkit/{p-6841ccee.entry.js → p-4d9f250d.entry.js} +2 -2
  153. package/dist/dso-toolkit/p-5663e142.entry.js +2 -0
  154. package/dist/dso-toolkit/p-5663e142.entry.js.map +1 -0
  155. package/dist/dso-toolkit/{p-6bbde78f.entry.js → p-5db88bab.entry.js} +2 -2
  156. package/dist/dso-toolkit/p-5db88bab.entry.js.map +1 -0
  157. package/dist/dso-toolkit/{p-fa1cbcb0.entry.js → p-64c4fbb5.entry.js} +2 -2
  158. package/dist/dso-toolkit/{p-e3ddc3cf.entry.js → p-66be9677.entry.js} +2 -2
  159. package/dist/dso-toolkit/{p-49c301fd.entry.js → p-670ea4fe.entry.js} +2 -2
  160. package/dist/dso-toolkit/p-6a156238.entry.js +2 -0
  161. package/dist/dso-toolkit/p-6a156238.entry.js.map +1 -0
  162. package/dist/dso-toolkit/{p-15700a11.entry.js → p-6c1feb1f.entry.js} +2 -2
  163. package/dist/dso-toolkit/{p-78420f02.entry.js → p-6cc9e6a1.entry.js} +2 -2
  164. package/dist/dso-toolkit/{p-eebf32bf.entry.js → p-6d475b54.entry.js} +2 -2
  165. package/dist/dso-toolkit/{p-1882b8ad.entry.js → p-6e13ae72.entry.js} +2 -2
  166. package/dist/dso-toolkit/{p-e097b372.entry.js → p-715ed1f5.entry.js} +2 -2
  167. package/dist/dso-toolkit/{p-487f46df.entry.js → p-7d1adc2e.entry.js} +2 -2
  168. package/dist/dso-toolkit/{p-13b2dc83.entry.js → p-7e2d432b.entry.js} +2 -2
  169. package/dist/dso-toolkit/p-7e2d432b.entry.js.map +1 -0
  170. package/dist/dso-toolkit/{p-aa6c0df1.entry.js → p-802d9be8.entry.js} +2 -2
  171. package/dist/dso-toolkit/{p-638cfb25.entry.js → p-85db5881.entry.js} +2 -2
  172. package/dist/dso-toolkit/{p-0b902049.entry.js → p-90ead8a5.entry.js} +2 -2
  173. package/dist/dso-toolkit/{p-08aa7f78.entry.js → p-9a30700a.entry.js} +2 -2
  174. package/dist/dso-toolkit/{p-eea3b9c8.entry.js → p-9ccc682a.entry.js} +2 -2
  175. package/dist/dso-toolkit/{p-D2Jo0W7B.js → p-C-b4jsbt.js} +1 -1
  176. package/dist/dso-toolkit/{p-D2Jo0W7B.js.map → p-C-b4jsbt.js.map} +1 -1
  177. package/dist/dso-toolkit/p-CrdKfv3R.js +2 -0
  178. package/dist/dso-toolkit/p-CrdKfv3R.js.map +1 -0
  179. package/dist/dso-toolkit/{p-ChsEPkam.js → p-D5RszRxh.js} +2 -2
  180. package/dist/dso-toolkit/{p-ChsEPkam.js.map → p-D5RszRxh.js.map} +1 -1
  181. package/dist/dso-toolkit/p-Ds10WquL.js +2 -0
  182. package/dist/dso-toolkit/{p-COKRRU_q.js.map → p-Ds10WquL.js.map} +1 -1
  183. package/dist/dso-toolkit/p-JeFk1Yvm.js +2 -0
  184. package/dist/dso-toolkit/{p-D4cSA4l8.js.map → p-JeFk1Yvm.js.map} +1 -1
  185. package/dist/dso-toolkit/{p-4fd85452.entry.js → p-aa5dc824.entry.js} +2 -2
  186. package/dist/dso-toolkit/{p-e990ee37.entry.js → p-b3588a49.entry.js} +2 -2
  187. package/dist/dso-toolkit/{p-0a38c6fa.entry.js → p-bff9db69.entry.js} +2 -2
  188. package/dist/dso-toolkit/p-bff9db69.entry.js.map +1 -0
  189. package/dist/dso-toolkit/{p-be3f30c8.entry.js → p-c02f13f7.entry.js} +2 -2
  190. package/dist/dso-toolkit/{p-8941035f.entry.js → p-c4fe6ee2.entry.js} +2 -2
  191. package/dist/dso-toolkit/{p-49fc2235.entry.js → p-c5003184.entry.js} +2 -2
  192. package/dist/dso-toolkit/{p-52cd0064.entry.js → p-c52827dc.entry.js} +2 -2
  193. package/dist/dso-toolkit/{p-c1f19841.entry.js → p-ca2bef1c.entry.js} +2 -2
  194. package/dist/dso-toolkit/p-cc784131.entry.js +2 -0
  195. package/dist/dso-toolkit/p-cc784131.entry.js.map +1 -0
  196. package/dist/dso-toolkit/{p-ee4c2669.entry.js → p-e0289156.entry.js} +2 -2
  197. package/dist/dso-toolkit/{p-3ada9fe0.entry.js → p-e9236c1f.entry.js} +2 -2
  198. package/dist/dso-toolkit/p-e9236c1f.entry.js.map +1 -0
  199. package/dist/dso-toolkit/{p-75819075.entry.js → p-f1f414b6.entry.js} +2 -2
  200. package/dist/dso-toolkit/{p-f579815f.entry.js → p-f3d04785.entry.js} +2 -2
  201. package/dist/dso-toolkit/{p-2d22eaa5.entry.js → p-fda975de.entry.js} +2 -2
  202. package/dist/dso-toolkit/{p-8a677aba.entry.js → p-ffa5a867.entry.js} +2 -2
  203. package/dist/esm/{annotation-body-C13C3XCU.js → annotation-body-CHp1npGM.js} +3 -3
  204. package/dist/esm/{annotation-body-C13C3XCU.js.map → annotation-body-CHp1npGM.js.map} +1 -1
  205. package/dist/esm/{annotation-list-renvooi-values-D75KxHAC.js → annotation-list-renvooi-values-D1J_Fugb.js} +3 -3
  206. package/dist/esm/{annotation-list-renvooi-values-D75KxHAC.js.map → annotation-list-renvooi-values-D1J_Fugb.js.map} +1 -1
  207. package/dist/esm/{annotation-symbol-slot-CRK43mu1.js → annotation-symbol-slot-BCge7vfY.js} +3 -3
  208. package/dist/esm/{annotation-symbol-slot-CRK43mu1.js.map → annotation-symbol-slot-BCge7vfY.js.map} +1 -1
  209. package/dist/esm/dso-accordion-section.entry.js +2 -2
  210. package/dist/esm/dso-accordion-section.entry.js.map +1 -1
  211. package/dist/esm/dso-accordion.entry.js +1 -1
  212. package/dist/esm/dso-action-list-item.entry.js +1 -1
  213. package/dist/esm/dso-action-list.entry.js +1 -1
  214. package/dist/esm/dso-advanced-select.entry.js +1 -1
  215. package/dist/esm/dso-alert_6.entry.js +2 -2
  216. package/dist/esm/dso-annotation-activiteit.entry.js +5 -5
  217. package/dist/esm/dso-annotation-activiteit.entry.js.map +1 -1
  218. package/dist/esm/dso-annotation-gebiedsaanwijzing.entry.js +4 -4
  219. package/dist/esm/dso-annotation-gebiedsaanwijzing.entry.js.map +1 -1
  220. package/dist/esm/dso-annotation-kaart.entry.js +3 -3
  221. package/dist/esm/dso-annotation-kaart.entry.js.map +1 -1
  222. package/dist/esm/dso-annotation-locatie.dso-document-component.entry.js.map +1 -1
  223. package/dist/esm/dso-annotation-locatie_2.entry.js +4 -4
  224. package/dist/esm/dso-annotation-locatie_2.entry.js.map +1 -1
  225. package/dist/esm/dso-annotation-omgevingsnormwaarde.entry.js +5 -5
  226. package/dist/esm/dso-annotation-omgevingsnormwaarde.entry.js.map +1 -1
  227. package/dist/esm/dso-attachments-counter_2.entry.js +1 -1
  228. package/dist/esm/dso-autosuggest.entry.js +2 -2
  229. package/dist/esm/dso-banner.entry.js +1 -1
  230. package/dist/esm/dso-card-container.entry.js +1 -1
  231. package/dist/esm/dso-card.entry.js +1 -1
  232. package/dist/esm/dso-contact-information.entry.js +1 -1
  233. package/dist/esm/dso-date-picker-legacy.entry.js +1 -1
  234. package/dist/esm/dso-date-picker.entry.js +1 -1
  235. package/dist/esm/dso-document-card.entry.js +1 -1
  236. package/dist/esm/dso-dropdown-menu.entry.js +1 -1
  237. package/dist/esm/dso-header.entry.js +2 -2
  238. package/dist/esm/dso-highlight-box.entry.js +1 -1
  239. package/dist/esm/dso-icon.entry.js +1 -1
  240. package/dist/esm/dso-info-button.entry.js +1 -1
  241. package/dist/esm/dso-info_2.entry.js +1 -1
  242. package/dist/esm/dso-input-range.entry.js +1 -1
  243. package/dist/esm/dso-label_3.entry.js +1 -1
  244. package/dist/esm/dso-legend-item.entry.js +1 -1
  245. package/dist/esm/dso-list-button.entry.js +1 -1
  246. package/dist/esm/dso-logo.entry.js +1 -1
  247. package/dist/esm/dso-map-base-layers.entry.js +2 -2
  248. package/dist/esm/dso-map-controls.entry.js +3 -3
  249. package/dist/esm/dso-map-controls.entry.js.map +1 -1
  250. package/dist/esm/dso-map-overlays.entry.js +2 -2
  251. package/dist/esm/dso-mark-bar.entry.js +1 -1
  252. package/dist/esm/dso-modal.entry.js +2 -2
  253. package/dist/esm/dso-onboarding-tip.entry.js +28 -16
  254. package/dist/esm/dso-onboarding-tip.entry.js.map +1 -1
  255. package/dist/esm/dso-pagination.entry.js +1 -1
  256. package/dist/esm/dso-plekinfo-card.entry.js +3 -3
  257. package/dist/esm/dso-plekinfo-card.entry.js.map +1 -1
  258. package/dist/esm/dso-progress-bar.entry.js +1 -1
  259. package/dist/esm/dso-progress-indicator.entry.js +2 -2
  260. package/dist/esm/dso-project-item.entry.js +1 -1
  261. package/dist/esm/dso-responsive-element.entry.js +1 -1
  262. package/dist/esm/dso-scrollable.entry.js +1 -1
  263. package/dist/esm/dso-skiplink.entry.js +1 -1
  264. package/dist/esm/dso-survey-rating.entry.js +1 -1
  265. package/dist/esm/dso-tab.entry.js +1 -1
  266. package/dist/esm/dso-tabs.entry.js +1 -1
  267. package/dist/esm/dso-toggletip.entry.js +1 -1
  268. package/dist/esm/dso-toolkit.js +3 -3
  269. package/dist/esm/dso-toolkit.js.map +1 -1
  270. package/dist/esm/dso-tooltip.entry.js +2 -2
  271. package/dist/esm/dso-tooltip.entry.js.map +1 -1
  272. package/dist/esm/dso-tree-view.entry.js +1 -1
  273. package/dist/esm/dso-viewer-grid.entry.js +1 -1
  274. package/dist/esm/dsot-document-component-demo.entry.js +1 -1
  275. package/dist/esm/{i18n-BbNJ4wXp.js → i18n-CrdKfv3R.js} +120 -203
  276. package/dist/esm/i18n-CrdKfv3R.js.map +1 -0
  277. package/dist/esm/{index-D2Jo0W7B.js → index-C-b4jsbt.js} +3 -3
  278. package/dist/esm/{index-D2Jo0W7B.js.map → index-C-b4jsbt.js.map} +1 -1
  279. package/dist/esm/loader.js +2 -2
  280. package/package.json +8 -8
  281. package/dist/cjs/i18n-D9iWFntP.js.map +0 -1
  282. package/dist/dso-toolkit/p-0917a964.entry.js.map +0 -1
  283. package/dist/dso-toolkit/p-0a38c6fa.entry.js.map +0 -1
  284. package/dist/dso-toolkit/p-13b2dc83.entry.js.map +0 -1
  285. package/dist/dso-toolkit/p-2a0e7fab.entry.js +0 -2
  286. package/dist/dso-toolkit/p-2a0e7fab.entry.js.map +0 -1
  287. package/dist/dso-toolkit/p-2cac4eb4.entry.js +0 -2
  288. package/dist/dso-toolkit/p-2cac4eb4.entry.js.map +0 -1
  289. package/dist/dso-toolkit/p-33acabc1.entry.js.map +0 -1
  290. package/dist/dso-toolkit/p-33e435a4.entry.js +0 -2
  291. package/dist/dso-toolkit/p-33e435a4.entry.js.map +0 -1
  292. package/dist/dso-toolkit/p-3ada9fe0.entry.js.map +0 -1
  293. package/dist/dso-toolkit/p-6bbde78f.entry.js.map +0 -1
  294. package/dist/dso-toolkit/p-BbNJ4wXp.js +0 -2
  295. package/dist/dso-toolkit/p-BbNJ4wXp.js.map +0 -1
  296. package/dist/dso-toolkit/p-COKRRU_q.js +0 -2
  297. package/dist/dso-toolkit/p-D4cSA4l8.js +0 -2
  298. package/dist/dso-toolkit/p-ad5f409c.entry.js +0 -2
  299. package/dist/dso-toolkit/p-ad5f409c.entry.js.map +0 -1
  300. package/dist/esm/i18n-BbNJ4wXp.js.map +0 -1
  301. /package/dist/dso-toolkit/{p-a0960751.entry.js.map → p-0764520c.entry.js.map} +0 -0
  302. /package/dist/dso-toolkit/{p-ce882c53.entry.js.map → p-0775a693.entry.js.map} +0 -0
  303. /package/dist/dso-toolkit/{p-13042742.entry.js.map → p-1107be6c.entry.js.map} +0 -0
  304. /package/dist/dso-toolkit/{p-f0d63537.entry.js.map → p-12dfeddc.entry.js.map} +0 -0
  305. /package/dist/dso-toolkit/{p-1f7f6d8b.entry.js.map → p-1a22b0dc.entry.js.map} +0 -0
  306. /package/dist/dso-toolkit/{p-45a523e5.entry.js.map → p-1b3db27c.entry.js.map} +0 -0
  307. /package/dist/dso-toolkit/{p-f35cd2b5.entry.js.map → p-25121130.entry.js.map} +0 -0
  308. /package/dist/dso-toolkit/{p-47936ff6.entry.js.map → p-2b70dfec.entry.js.map} +0 -0
  309. /package/dist/dso-toolkit/{p-621a9bbb.entry.js.map → p-2edbb43d.entry.js.map} +0 -0
  310. /package/dist/dso-toolkit/{p-23c5e409.entry.js.map → p-2ef001ae.entry.js.map} +0 -0
  311. /package/dist/dso-toolkit/{p-8123ed2f.entry.js.map → p-2f5521cb.entry.js.map} +0 -0
  312. /package/dist/dso-toolkit/{p-38a17746.entry.js.map → p-3c74fd03.entry.js.map} +0 -0
  313. /package/dist/dso-toolkit/{p-4a034e40.entry.js.map → p-3e60b05f.entry.js.map} +0 -0
  314. /package/dist/dso-toolkit/{p-a676810d.entry.js.map → p-3ec9e63e.entry.js.map} +0 -0
  315. /package/dist/dso-toolkit/{p-3dc6df90.entry.js.map → p-4222c5b4.entry.js.map} +0 -0
  316. /package/dist/dso-toolkit/{p-60a2339f.entry.js.map → p-4728d309.entry.js.map} +0 -0
  317. /package/dist/dso-toolkit/{p-6841ccee.entry.js.map → p-4d9f250d.entry.js.map} +0 -0
  318. /package/dist/dso-toolkit/{p-fa1cbcb0.entry.js.map → p-64c4fbb5.entry.js.map} +0 -0
  319. /package/dist/dso-toolkit/{p-e3ddc3cf.entry.js.map → p-66be9677.entry.js.map} +0 -0
  320. /package/dist/dso-toolkit/{p-49c301fd.entry.js.map → p-670ea4fe.entry.js.map} +0 -0
  321. /package/dist/dso-toolkit/{p-15700a11.entry.js.map → p-6c1feb1f.entry.js.map} +0 -0
  322. /package/dist/dso-toolkit/{p-78420f02.entry.js.map → p-6cc9e6a1.entry.js.map} +0 -0
  323. /package/dist/dso-toolkit/{p-eebf32bf.entry.js.map → p-6d475b54.entry.js.map} +0 -0
  324. /package/dist/dso-toolkit/{p-1882b8ad.entry.js.map → p-6e13ae72.entry.js.map} +0 -0
  325. /package/dist/dso-toolkit/{p-e097b372.entry.js.map → p-715ed1f5.entry.js.map} +0 -0
  326. /package/dist/dso-toolkit/{p-487f46df.entry.js.map → p-7d1adc2e.entry.js.map} +0 -0
  327. /package/dist/dso-toolkit/{p-aa6c0df1.entry.js.map → p-802d9be8.entry.js.map} +0 -0
  328. /package/dist/dso-toolkit/{p-638cfb25.entry.js.map → p-85db5881.entry.js.map} +0 -0
  329. /package/dist/dso-toolkit/{p-0b902049.entry.js.map → p-90ead8a5.entry.js.map} +0 -0
  330. /package/dist/dso-toolkit/{p-08aa7f78.entry.js.map → p-9a30700a.entry.js.map} +0 -0
  331. /package/dist/dso-toolkit/{p-eea3b9c8.entry.js.map → p-9ccc682a.entry.js.map} +0 -0
  332. /package/dist/dso-toolkit/{p-4fd85452.entry.js.map → p-aa5dc824.entry.js.map} +0 -0
  333. /package/dist/dso-toolkit/{p-e990ee37.entry.js.map → p-b3588a49.entry.js.map} +0 -0
  334. /package/dist/dso-toolkit/{p-be3f30c8.entry.js.map → p-c02f13f7.entry.js.map} +0 -0
  335. /package/dist/dso-toolkit/{p-8941035f.entry.js.map → p-c4fe6ee2.entry.js.map} +0 -0
  336. /package/dist/dso-toolkit/{p-49fc2235.entry.js.map → p-c5003184.entry.js.map} +0 -0
  337. /package/dist/dso-toolkit/{p-52cd0064.entry.js.map → p-c52827dc.entry.js.map} +0 -0
  338. /package/dist/dso-toolkit/{p-c1f19841.entry.js.map → p-ca2bef1c.entry.js.map} +0 -0
  339. /package/dist/dso-toolkit/{p-ee4c2669.entry.js.map → p-e0289156.entry.js.map} +0 -0
  340. /package/dist/dso-toolkit/{p-75819075.entry.js.map → p-f1f414b6.entry.js.map} +0 -0
  341. /package/dist/dso-toolkit/{p-f579815f.entry.js.map → p-f3d04785.entry.js.map} +0 -0
  342. /package/dist/dso-toolkit/{p-2d22eaa5.entry.js.map → p-fda975de.entry.js.map} +0 -0
  343. /package/dist/dso-toolkit/{p-8a677aba.entry.js.map → p-ffa5a867.entry.js.map} +0 -0
@@ -158,8 +158,7 @@ const looksLikeObjectPath = (key, nsSeparator, keySeparator) => {
158
158
  }
159
159
  return matched;
160
160
  };
161
- const deepFind = function (obj, path) {
162
- let keySeparator = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '.';
161
+ const deepFind = (obj, path, keySeparator = '.') => {
163
162
  if (!obj) return undefined;
164
163
  if (obj[path]) {
165
164
  if (!Object.prototype.hasOwnProperty.call(obj, path)) return undefined;
@@ -209,39 +208,25 @@ const consoleLogger = {
209
208
  }
210
209
  };
211
210
  class Logger {
212
- constructor(concreteLogger) {
213
- let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
211
+ constructor(concreteLogger, options = {}) {
214
212
  this.init(concreteLogger, options);
215
213
  }
216
- init(concreteLogger) {
217
- let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
214
+ init(concreteLogger, options = {}) {
218
215
  this.prefix = options.prefix || 'i18next:';
219
216
  this.logger = concreteLogger || consoleLogger;
220
217
  this.options = options;
221
218
  this.debug = options.debug;
222
219
  }
223
- log() {
224
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
225
- args[_key] = arguments[_key];
226
- }
220
+ log(...args) {
227
221
  return this.forward(args, 'log', '', true);
228
222
  }
229
- warn() {
230
- for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
231
- args[_key2] = arguments[_key2];
232
- }
223
+ warn(...args) {
233
224
  return this.forward(args, 'warn', '', true);
234
225
  }
235
- error() {
236
- for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
237
- args[_key3] = arguments[_key3];
238
- }
226
+ error(...args) {
239
227
  return this.forward(args, 'error', '');
240
228
  }
241
- deprecate() {
242
- for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
243
- args[_key4] = arguments[_key4];
244
- }
229
+ deprecate(...args) {
245
230
  return this.forward(args, 'warn', 'WARNING DEPRECATED: ', true);
246
231
  }
247
232
  forward(args, lvl, prefix, debugOnly) {
@@ -285,14 +270,10 @@ class EventEmitter {
285
270
  }
286
271
  this.observers[event].delete(listener);
287
272
  }
288
- emit(event) {
289
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
290
- args[_key - 1] = arguments[_key];
291
- }
273
+ emit(event, ...args) {
292
274
  if (this.observers[event]) {
293
275
  const cloned = Array.from(this.observers[event].entries());
294
- cloned.forEach(_ref => {
295
- let [observer, numTimesAdded] = _ref;
276
+ cloned.forEach(([observer, numTimesAdded]) => {
296
277
  for (let i = 0; i < numTimesAdded; i++) {
297
278
  observer(...args);
298
279
  }
@@ -300,8 +281,7 @@ class EventEmitter {
300
281
  }
301
282
  if (this.observers['*']) {
302
283
  const cloned = Array.from(this.observers['*'].entries());
303
- cloned.forEach(_ref2 => {
304
- let [observer, numTimesAdded] = _ref2;
284
+ cloned.forEach(([observer, numTimesAdded]) => {
305
285
  for (let i = 0; i < numTimesAdded; i++) {
306
286
  observer.apply(observer, [event, ...args]);
307
287
  }
@@ -311,11 +291,10 @@ class EventEmitter {
311
291
  }
312
292
 
313
293
  class ResourceStore extends EventEmitter {
314
- constructor(data) {
315
- let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
316
- ns: ['translation'],
317
- defaultNS: 'translation'
318
- };
294
+ constructor(data, options = {
295
+ ns: ['translation'],
296
+ defaultNS: 'translation'
297
+ }) {
319
298
  super();
320
299
  this.data = data || {};
321
300
  this.options = options;
@@ -337,8 +316,7 @@ class ResourceStore extends EventEmitter {
337
316
  this.options.ns.splice(index, 1);
338
317
  }
339
318
  }
340
- getResource(lng, ns, key) {
341
- let options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
319
+ getResource(lng, ns, key, options = {}) {
342
320
  const keySeparator = options.keySeparator !== undefined ? options.keySeparator : this.options.keySeparator;
343
321
  const ignoreJSONStructure = options.ignoreJSONStructure !== undefined ? options.ignoreJSONStructure : this.options.ignoreJSONStructure;
344
322
  let path;
@@ -365,10 +343,9 @@ class ResourceStore extends EventEmitter {
365
343
  if (result || !ignoreJSONStructure || !isString(key)) return result;
366
344
  return deepFind(this.data?.[lng]?.[ns], key, keySeparator);
367
345
  }
368
- addResource(lng, ns, key, value) {
369
- let options = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {
370
- silent: false
371
- };
346
+ addResource(lng, ns, key, value, options = {
347
+ silent: false
348
+ }) {
372
349
  const keySeparator = options.keySeparator !== undefined ? options.keySeparator : this.options.keySeparator;
373
350
  let path = [lng, ns];
374
351
  if (key) path = path.concat(keySeparator ? key.split(keySeparator) : key);
@@ -381,10 +358,9 @@ class ResourceStore extends EventEmitter {
381
358
  setPath(this.data, path, value);
382
359
  if (!options.silent) this.emit('added', lng, ns, key, value);
383
360
  }
384
- addResources(lng, ns, resources) {
385
- let options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {
386
- silent: false
387
- };
361
+ addResources(lng, ns, resources, options = {
362
+ silent: false
363
+ }) {
388
364
  for (const m in resources) {
389
365
  if (isString(resources[m]) || Array.isArray(resources[m])) this.addResource(lng, ns, m, resources[m], {
390
366
  silent: true
@@ -392,11 +368,10 @@ class ResourceStore extends EventEmitter {
392
368
  }
393
369
  if (!options.silent) this.emit('added', lng, ns, resources);
394
370
  }
395
- addResourceBundle(lng, ns, resources, deep, overwrite) {
396
- let options = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : {
397
- silent: false,
398
- skipCopy: false
399
- };
371
+ addResourceBundle(lng, ns, resources, deep, overwrite, options = {
372
+ silent: false,
373
+ skipCopy: false
374
+ }) {
400
375
  let path = [lng, ns];
401
376
  if (lng.indexOf('.') > -1) {
402
377
  path = lng.split('.');
@@ -461,8 +436,7 @@ var postProcessor = {
461
436
  const checkedLoadedFor = {};
462
437
  const shouldHandleAsObject = res => !isString(res) && typeof res !== 'boolean' && typeof res !== 'number';
463
438
  class Translator extends EventEmitter {
464
- constructor(services) {
465
- let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
439
+ constructor(services, options = {}) {
466
440
  super();
467
441
  copy(['resourceStore', 'languageUtils', 'pluralResolver', 'interpolator', 'backendConnector', 'i18nFormat', 'utils'], services, this);
468
442
  this.options = options;
@@ -474,14 +448,14 @@ class Translator extends EventEmitter {
474
448
  changeLanguage(lng) {
475
449
  if (lng) this.language = lng;
476
450
  }
477
- exists(key) {
478
- let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
479
- interpolation: {}
451
+ exists(key, o = {
452
+ interpolation: {}
453
+ }) {
454
+ const opt = {
455
+ ...o
480
456
  };
481
- if (key == null) {
482
- return false;
483
- }
484
- const resolved = this.resolve(key, options);
457
+ if (key == null) return false;
458
+ const resolved = this.resolve(key, opt);
485
459
  return resolved?.res !== undefined;
486
460
  }
487
461
  extractFromKey(key, opt) {
@@ -508,7 +482,10 @@ class Translator extends EventEmitter {
508
482
  namespaces: isString(namespaces) ? [namespaces] : namespaces
509
483
  };
510
484
  }
511
- translate(keys, opt, lastKey) {
485
+ translate(keys, o, lastKey) {
486
+ let opt = typeof o === 'object' ? {
487
+ ...o
488
+ } : o;
512
489
  if (typeof opt !== 'object' && this.options.overloadTranslationOptionHandler) {
513
490
  opt = this.options.overloadTranslationOptionHandler(arguments);
514
491
  }
@@ -525,11 +502,12 @@ class Translator extends EventEmitter {
525
502
  namespaces
526
503
  } = this.extractFromKey(keys[keys.length - 1], opt);
527
504
  const namespace = namespaces[namespaces.length - 1];
505
+ let nsSeparator = opt.nsSeparator !== undefined ? opt.nsSeparator : this.options.nsSeparator;
506
+ if (nsSeparator === undefined) nsSeparator = ':';
528
507
  const lng = opt.lng || this.language;
529
508
  const appendNamespaceToCIMode = opt.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
530
509
  if (lng?.toLowerCase() === 'cimode') {
531
510
  if (appendNamespaceToCIMode) {
532
- const nsSeparator = opt.nsSeparator || this.options.nsSeparator;
533
511
  if (returnDetails) {
534
512
  return {
535
513
  res: `${namespace}${nsSeparator}${key}`,
@@ -684,9 +662,11 @@ class Translator extends EventEmitter {
684
662
  }
685
663
  }
686
664
  res = this.extendTranslation(res, keys, opt, resolved, lastKey);
687
- if (usedKey && res === key && this.options.appendNamespaceToMissingKey) res = `${namespace}:${key}`;
665
+ if (usedKey && res === key && this.options.appendNamespaceToMissingKey) {
666
+ res = `${namespace}${nsSeparator}${key}`;
667
+ }
688
668
  if ((usedKey || usedDefault) && this.options.parseMissingKeyHandler) {
689
- res = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${namespace}:${key}` : key, usedDefault ? res : undefined);
669
+ res = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${namespace}${nsSeparator}${key}` : key, usedDefault ? res : undefined, opt);
690
670
  }
691
671
  }
692
672
  if (returnDetails) {
@@ -697,7 +677,6 @@ class Translator extends EventEmitter {
697
677
  return res;
698
678
  }
699
679
  extendTranslation(res, key, opt, resolved, lastKey) {
700
- var _this = this;
701
680
  if (this.i18nFormat?.parse) {
702
681
  res = this.i18nFormat.parse(res, {
703
682
  ...this.options.interpolation.defaultVariables,
@@ -733,15 +712,12 @@ class Translator extends EventEmitter {
733
712
  if (nestBef < nestAft) opt.nest = false;
734
713
  }
735
714
  if (!opt.lng && resolved && resolved.res) opt.lng = this.language || resolved.usedLng;
736
- if (opt.nest !== false) res = this.interpolator.nest(res, function () {
737
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
738
- args[_key] = arguments[_key];
739
- }
715
+ if (opt.nest !== false) res = this.interpolator.nest(res, (...args) => {
740
716
  if (lastKey?.[0] === args[0] && !opt.context) {
741
- _this.logger.warn(`It seems you are nesting recursively key: ${args[0]} in key: ${key[0]}`);
717
+ this.logger.warn(`It seems you are nesting recursively key: ${args[0]} in key: ${key[0]}`);
742
718
  return null;
743
719
  }
744
- return _this.translate(...args, key);
720
+ return this.translate(...args, key);
745
721
  }, opt);
746
722
  if (opt.interpolation) this.interpolator.reset();
747
723
  }
@@ -758,8 +734,7 @@ class Translator extends EventEmitter {
758
734
  }
759
735
  return res;
760
736
  }
761
- resolve(keys) {
762
- let opt = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
737
+ resolve(keys, opt = {}) {
763
738
  let found;
764
739
  let usedKey;
765
740
  let exactUsedKey;
@@ -839,13 +814,11 @@ class Translator extends EventEmitter {
839
814
  isValidLookup(res) {
840
815
  return res !== undefined && !(!this.options.returnNull && res === null) && !(!this.options.returnEmptyString && res === '');
841
816
  }
842
- getResource(code, ns, key) {
843
- let options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
817
+ getResource(code, ns, key, options = {}) {
844
818
  if (this.i18nFormat?.getResource) return this.i18nFormat.getResource(code, ns, key, options);
845
819
  return this.resourceStore.getResource(code, ns, key, options);
846
820
  }
847
- getUsedParamsDetails() {
848
- let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
821
+ getUsedParamsDetails(options = {}) {
849
822
  const optionsKeys = ['defaultValue', 'ordinal', 'context', 'replace', 'lng', 'lngs', 'fallbackLng', 'ns', 'keySeparator', 'nsSeparator', 'returnObjects', 'returnDetails', 'joinArrays', 'postProcess', 'interpolation'];
850
823
  const useOptionsReplaceForData = options.replace && !isString(options.replace);
851
824
  let data = useOptionsReplaceForData ? options.replace : options;
@@ -1002,8 +975,7 @@ const dummyRule = {
1002
975
  })
1003
976
  };
1004
977
  class PluralResolver {
1005
- constructor(languageUtils) {
1006
- let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
978
+ constructor(languageUtils, options = {}) {
1007
979
  this.languageUtils = languageUtils;
1008
980
  this.options = options;
1009
981
  this.logger = baseLogger.create('pluralResolver');
@@ -1015,8 +987,7 @@ class PluralResolver {
1015
987
  clearCache() {
1016
988
  this.pluralRulesCache = {};
1017
989
  }
1018
- getRule(code) {
1019
- let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
990
+ getRule(code, options = {}) {
1020
991
  const cleanedCode = getCleanedCode(code === 'dev' ? 'en' : code);
1021
992
  const type = options.ordinal ? 'ordinal' : 'cardinal';
1022
993
  const cacheKey = JSON.stringify({
@@ -1043,25 +1014,21 @@ class PluralResolver {
1043
1014
  this.pluralRulesCache[cacheKey] = rule;
1044
1015
  return rule;
1045
1016
  }
1046
- needsPlural(code) {
1047
- let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1017
+ needsPlural(code, options = {}) {
1048
1018
  let rule = this.getRule(code, options);
1049
1019
  if (!rule) rule = this.getRule('dev', options);
1050
1020
  return rule?.resolvedOptions().pluralCategories.length > 1;
1051
1021
  }
1052
- getPluralFormsOfKey(code, key) {
1053
- let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
1022
+ getPluralFormsOfKey(code, key, options = {}) {
1054
1023
  return this.getSuffixes(code, options).map(suffix => `${key}${suffix}`);
1055
1024
  }
1056
- getSuffixes(code) {
1057
- let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1025
+ getSuffixes(code, options = {}) {
1058
1026
  let rule = this.getRule(code, options);
1059
1027
  if (!rule) rule = this.getRule('dev', options);
1060
1028
  if (!rule) return [];
1061
1029
  return rule.resolvedOptions().pluralCategories.sort((pluralCategory1, pluralCategory2) => suffixesOrder[pluralCategory1] - suffixesOrder[pluralCategory2]).map(pluralCategory => `${this.options.prepend}${options.ordinal ? `ordinal${this.options.prepend}` : ''}${pluralCategory}`);
1062
1030
  }
1063
- getSuffix(code, count) {
1064
- let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
1031
+ getSuffix(code, count, options = {}) {
1065
1032
  const rule = this.getRule(code, options);
1066
1033
  if (rule) {
1067
1034
  return `${this.options.prepend}${options.ordinal ? `ordinal${this.options.prepend}` : ''}${rule.select(count)}`;
@@ -1071,9 +1038,7 @@ class PluralResolver {
1071
1038
  }
1072
1039
  }
1073
1040
 
1074
- const deepFindWithDefaults = function (data, defaultData, key) {
1075
- let keySeparator = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '.';
1076
- let ignoreJSONStructure = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true;
1041
+ const deepFindWithDefaults = (data, defaultData, key, keySeparator = '.', ignoreJSONStructure = true) => {
1077
1042
  let path = getPathWithDefaults(data, defaultData, key);
1078
1043
  if (!path && ignoreJSONStructure && isString(key)) {
1079
1044
  path = deepFind(data, key, keySeparator);
@@ -1083,15 +1048,13 @@ const deepFindWithDefaults = function (data, defaultData, key) {
1083
1048
  };
1084
1049
  const regexSafe = val => val.replace(/\$/g, '$$$$');
1085
1050
  class Interpolator {
1086
- constructor() {
1087
- let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1051
+ constructor(options = {}) {
1088
1052
  this.logger = baseLogger.create('interpolator');
1089
1053
  this.options = options;
1090
1054
  this.format = options?.interpolation?.format || (value => value);
1091
1055
  this.init(options);
1092
1056
  }
1093
- init() {
1094
- let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1057
+ init(options = {}) {
1095
1058
  if (!options.interpolation) options.interpolation = {
1096
1059
  escapeValue: true
1097
1060
  };
@@ -1214,8 +1177,7 @@ class Interpolator {
1214
1177
  });
1215
1178
  return str;
1216
1179
  }
1217
- nest(str, fc) {
1218
- let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
1180
+ nest(str, fc, options = {}) {
1219
1181
  let match;
1220
1182
  let value;
1221
1183
  let clonedOptions;
@@ -1312,68 +1274,68 @@ const parseFormatStr = formatStr => {
1312
1274
  };
1313
1275
  const createCachedFormatter = fn => {
1314
1276
  const cache = {};
1315
- return (val, lng, options) => {
1316
- let optForCache = options;
1317
- if (options && options.interpolationkey && options.formatParams && options.formatParams[options.interpolationkey] && options[options.interpolationkey]) {
1277
+ return (v, l, o) => {
1278
+ let optForCache = o;
1279
+ if (o && o.interpolationkey && o.formatParams && o.formatParams[o.interpolationkey] && o[o.interpolationkey]) {
1318
1280
  optForCache = {
1319
1281
  ...optForCache,
1320
- [options.interpolationkey]: undefined
1282
+ [o.interpolationkey]: undefined
1321
1283
  };
1322
1284
  }
1323
- const key = lng + JSON.stringify(optForCache);
1324
- let formatter = cache[key];
1325
- if (!formatter) {
1326
- formatter = fn(getCleanedCode(lng), options);
1327
- cache[key] = formatter;
1285
+ const key = l + JSON.stringify(optForCache);
1286
+ let frm = cache[key];
1287
+ if (!frm) {
1288
+ frm = fn(getCleanedCode(l), o);
1289
+ cache[key] = frm;
1328
1290
  }
1329
- return formatter(val);
1291
+ return frm(v);
1330
1292
  };
1331
1293
  };
1294
+ const createNonCachedFormatter = fn => (v, l, o) => fn(getCleanedCode(l), o)(v);
1332
1295
  class Formatter {
1333
- constructor() {
1334
- let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1296
+ constructor(options = {}) {
1335
1297
  this.logger = baseLogger.create('formatter');
1336
1298
  this.options = options;
1299
+ this.init(options);
1300
+ }
1301
+ init(services, options = {
1302
+ interpolation: {}
1303
+ }) {
1304
+ this.formatSeparator = options.interpolation.formatSeparator || ',';
1305
+ const cf = options.cacheInBuiltFormats ? createCachedFormatter : createNonCachedFormatter;
1337
1306
  this.formats = {
1338
- number: createCachedFormatter((lng, opt) => {
1307
+ number: cf((lng, opt) => {
1339
1308
  const formatter = new Intl.NumberFormat(lng, {
1340
1309
  ...opt
1341
1310
  });
1342
1311
  return val => formatter.format(val);
1343
1312
  }),
1344
- currency: createCachedFormatter((lng, opt) => {
1313
+ currency: cf((lng, opt) => {
1345
1314
  const formatter = new Intl.NumberFormat(lng, {
1346
1315
  ...opt,
1347
1316
  style: 'currency'
1348
1317
  });
1349
1318
  return val => formatter.format(val);
1350
1319
  }),
1351
- datetime: createCachedFormatter((lng, opt) => {
1320
+ datetime: cf((lng, opt) => {
1352
1321
  const formatter = new Intl.DateTimeFormat(lng, {
1353
1322
  ...opt
1354
1323
  });
1355
1324
  return val => formatter.format(val);
1356
1325
  }),
1357
- relativetime: createCachedFormatter((lng, opt) => {
1326
+ relativetime: cf((lng, opt) => {
1358
1327
  const formatter = new Intl.RelativeTimeFormat(lng, {
1359
1328
  ...opt
1360
1329
  });
1361
1330
  return val => formatter.format(val, opt.range || 'day');
1362
1331
  }),
1363
- list: createCachedFormatter((lng, opt) => {
1332
+ list: cf((lng, opt) => {
1364
1333
  const formatter = new Intl.ListFormat(lng, {
1365
1334
  ...opt
1366
1335
  });
1367
1336
  return val => formatter.format(val);
1368
1337
  })
1369
1338
  };
1370
- this.init(options);
1371
- }
1372
- init(services) {
1373
- let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
1374
- interpolation: {}
1375
- };
1376
- this.formatSeparator = options.interpolation.formatSeparator || ',';
1377
1339
  }
1378
1340
  add(name, fc) {
1379
1341
  this.formats[name.toLowerCase().trim()] = fc;
@@ -1381,8 +1343,7 @@ class Formatter {
1381
1343
  addCached(name, fc) {
1382
1344
  this.formats[name.toLowerCase().trim()] = createCachedFormatter(fc);
1383
1345
  }
1384
- format(value, format, lng) {
1385
- let options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
1346
+ format(value, format, lng, options = {}) {
1386
1347
  const formats = format.split(this.formatSeparator);
1387
1348
  if (formats.length > 1 && formats[0].indexOf('(') > 1 && formats[0].indexOf(')') < 0 && formats.find(f => f.indexOf(')') > -1)) {
1388
1349
  const lastIndex = formats.findIndex(f => f.indexOf(')') > -1);
@@ -1423,8 +1384,7 @@ const removePending = (q, name) => {
1423
1384
  }
1424
1385
  };
1425
1386
  class Connector extends EventEmitter {
1426
- constructor(backend, store, services) {
1427
- let options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
1387
+ constructor(backend, store, services, options = {}) {
1428
1388
  super();
1429
1389
  this.backend = backend;
1430
1390
  this.store = store;
@@ -1518,10 +1478,7 @@ class Connector extends EventEmitter {
1518
1478
  this.emit('loaded', loaded);
1519
1479
  this.queue = this.queue.filter(q => !q.done);
1520
1480
  }
1521
- read(lng, ns, fcName) {
1522
- let tried = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;
1523
- let wait = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : this.retryTimeout;
1524
- let callback = arguments.length > 5 ? arguments[5] : undefined;
1481
+ read(lng, ns, fcName, tried = 0, wait = this.retryTimeout, callback) {
1525
1482
  if (!lng.length) return callback(null, {});
1526
1483
  if (this.readingCalls >= this.maxParallelReads) {
1527
1484
  this.waitingReads.push({
@@ -1565,9 +1522,7 @@ class Connector extends EventEmitter {
1565
1522
  }
1566
1523
  return fc(lng, ns, resolver);
1567
1524
  }
1568
- prepareLoading(languages, namespaces) {
1569
- let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
1570
- let callback = arguments.length > 3 ? arguments[3] : undefined;
1525
+ prepareLoading(languages, namespaces, options = {}, callback) {
1571
1526
  if (!this.backend) {
1572
1527
  this.logger.warn('No backend was added via i18next.use. Will not load resources.');
1573
1528
  return callback && callback();
@@ -1591,8 +1546,7 @@ class Connector extends EventEmitter {
1591
1546
  reload: true
1592
1547
  }, callback);
1593
1548
  }
1594
- loadOne(name) {
1595
- let prefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
1549
+ loadOne(name, prefix = '') {
1596
1550
  const s = name.split('|');
1597
1551
  const lng = s[0];
1598
1552
  const ns = s[1];
@@ -1602,9 +1556,7 @@ class Connector extends EventEmitter {
1602
1556
  this.loaded(name, err, data);
1603
1557
  });
1604
1558
  }
1605
- saveMissing(languages, namespace, key, fallbackValue, isUpdate) {
1606
- let options = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : {};
1607
- let clb = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : () => {};
1559
+ saveMissing(languages, namespace, key, fallbackValue, isUpdate, options = {}, clb = () => {}) {
1608
1560
  if (this.services?.utils?.hasLoadedNamespace && !this.services?.utils?.hasLoadedNamespace(namespace)) {
1609
1561
  this.logger.warn(`did not save key "${key}" as the namespace "${namespace}" was not yet loaded`, 'This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!');
1610
1562
  return;
@@ -1699,7 +1651,8 @@ const get = () => ({
1699
1651
  nestingOptionsSeparator: ',',
1700
1652
  maxReplaces: 1000,
1701
1653
  skipOnVariables: true
1702
- }
1654
+ },
1655
+ cacheInBuiltFormats: true
1703
1656
  });
1704
1657
  const transformOptions = options => {
1705
1658
  if (isString(options.ns)) options.ns = [options.ns];
@@ -1722,9 +1675,7 @@ const bindMemberFunctions = inst => {
1722
1675
  });
1723
1676
  };
1724
1677
  class I18n extends EventEmitter {
1725
- constructor() {
1726
- let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1727
- let callback = arguments.length > 1 ? arguments[1] : undefined;
1678
+ constructor(options = {}, callback) {
1728
1679
  super();
1729
1680
  this.options = transformOptions(options);
1730
1681
  this.services = {};
@@ -1743,10 +1694,7 @@ class I18n extends EventEmitter {
1743
1694
  }, 0);
1744
1695
  }
1745
1696
  }
1746
- init() {
1747
- var _this = this;
1748
- let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1749
- let callback = arguments.length > 1 ? arguments[1] : undefined;
1697
+ init(options = {}, callback) {
1750
1698
  this.isInitializing = true;
1751
1699
  if (typeof options === 'function') {
1752
1700
  callback = options;
@@ -1812,11 +1760,8 @@ class I18n extends EventEmitter {
1812
1760
  hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
1813
1761
  };
1814
1762
  s.backendConnector = new Connector(createClassOnDemand(this.modules.backend), s.resourceStore, s, this.options);
1815
- s.backendConnector.on('*', function (event) {
1816
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
1817
- args[_key - 1] = arguments[_key];
1818
- }
1819
- _this.emit(event, ...args);
1763
+ s.backendConnector.on('*', (event, ...args) => {
1764
+ this.emit(event, ...args);
1820
1765
  });
1821
1766
  if (this.modules.languageDetector) {
1822
1767
  s.languageDetector = createClassOnDemand(this.modules.languageDetector);
@@ -1827,11 +1772,8 @@ class I18n extends EventEmitter {
1827
1772
  if (s.i18nFormat.init) s.i18nFormat.init(this);
1828
1773
  }
1829
1774
  this.translator = new Translator(this.services, this.options);
1830
- this.translator.on('*', function (event) {
1831
- for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
1832
- args[_key2 - 1] = arguments[_key2];
1833
- }
1834
- _this.emit(event, ...args);
1775
+ this.translator.on('*', (event, ...args) => {
1776
+ this.emit(event, ...args);
1835
1777
  });
1836
1778
  this.modules.external.forEach(m => {
1837
1779
  if (m.init) m.init(this);
@@ -1848,15 +1790,13 @@ class I18n extends EventEmitter {
1848
1790
  }
1849
1791
  const storeApi = ['getResource', 'hasResourceBundle', 'getResourceBundle', 'getDataByLanguage'];
1850
1792
  storeApi.forEach(fcName => {
1851
- this[fcName] = function () {
1852
- return _this.store[fcName](...arguments);
1853
- };
1793
+ this[fcName] = (...args) => this.store[fcName](...args);
1854
1794
  });
1855
1795
  const storeApiChained = ['addResource', 'addResources', 'addResourceBundle', 'removeResourceBundle'];
1856
1796
  storeApiChained.forEach(fcName => {
1857
- this[fcName] = function () {
1858
- _this.store[fcName](...arguments);
1859
- return _this;
1797
+ this[fcName] = (...args) => {
1798
+ this.store[fcName](...args);
1799
+ return this;
1860
1800
  };
1861
1801
  });
1862
1802
  const deferred = defer();
@@ -1880,8 +1820,7 @@ class I18n extends EventEmitter {
1880
1820
  }
1881
1821
  return deferred;
1882
1822
  }
1883
- loadResources(language) {
1884
- let callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : noop;
1823
+ loadResources(language, callback = noop) {
1885
1824
  let usedCallback = callback;
1886
1825
  const usedLng = isString(language) ? language : this.language;
1887
1826
  if (typeof language === 'function') usedCallback = language;
@@ -1970,11 +1909,10 @@ class I18n extends EventEmitter {
1970
1909
  }
1971
1910
  if (!this.resolvedLanguage && this.languages.indexOf(l) < 0 && this.store.hasLanguageSomeTranslations(l)) {
1972
1911
  this.resolvedLanguage = l;
1973
- if (this.languages.indexOf(l) < 0) this.languages.unshift(l);
1912
+ this.languages.unshift(l);
1974
1913
  }
1975
1914
  }
1976
1915
  changeLanguage(lng, callback) {
1977
- var _this2 = this;
1978
1916
  this.isLanguageChangingTo = lng;
1979
1917
  const deferred = defer();
1980
1918
  this.emit('languageChanging', lng);
@@ -1996,12 +1934,8 @@ class I18n extends EventEmitter {
1996
1934
  } else {
1997
1935
  this.isLanguageChangingTo = undefined;
1998
1936
  }
1999
- deferred.resolve(function () {
2000
- return _this2.t(...arguments);
2001
- });
2002
- if (callback) callback(err, function () {
2003
- return _this2.t(...arguments);
2004
- });
1937
+ deferred.resolve((...args) => this.t(...args));
1938
+ if (callback) callback(err, (...args) => this.t(...args));
2005
1939
  };
2006
1940
  const setLng = lngs => {
2007
1941
  if (!lng && !lngs && this.services.languageDetector) lngs = [];
@@ -2032,14 +1966,10 @@ class I18n extends EventEmitter {
2032
1966
  return deferred;
2033
1967
  }
2034
1968
  getFixedT(lng, ns, keyPrefix) {
2035
- var _this3 = this;
2036
- const fixedT = function (key, opts) {
1969
+ const fixedT = (key, opts, ...rest) => {
2037
1970
  let o;
2038
1971
  if (typeof opts !== 'object') {
2039
- for (var _len3 = arguments.length, rest = new Array(_len3 > 2 ? _len3 - 2 : 0), _key3 = 2; _key3 < _len3; _key3++) {
2040
- rest[_key3 - 2] = arguments[_key3];
2041
- }
2042
- o = _this3.options.overloadTranslationOptionHandler([key, opts].concat(rest));
1972
+ o = this.options.overloadTranslationOptionHandler([key, opts].concat(rest));
2043
1973
  } else {
2044
1974
  o = {
2045
1975
  ...opts
@@ -2049,14 +1979,14 @@ class I18n extends EventEmitter {
2049
1979
  o.lngs = o.lngs || fixedT.lngs;
2050
1980
  o.ns = o.ns || fixedT.ns;
2051
1981
  if (o.keyPrefix !== '') o.keyPrefix = o.keyPrefix || keyPrefix || fixedT.keyPrefix;
2052
- const keySeparator = _this3.options.keySeparator || '.';
1982
+ const keySeparator = this.options.keySeparator || '.';
2053
1983
  let resultKey;
2054
1984
  if (o.keyPrefix && Array.isArray(key)) {
2055
1985
  resultKey = key.map(k => `${o.keyPrefix}${keySeparator}${k}`);
2056
1986
  } else {
2057
1987
  resultKey = o.keyPrefix ? `${o.keyPrefix}${keySeparator}${key}` : key;
2058
1988
  }
2059
- return _this3.t(resultKey, o);
1989
+ return this.t(resultKey, o);
2060
1990
  };
2061
1991
  if (isString(lng)) {
2062
1992
  fixedT.lng = lng;
@@ -2067,23 +1997,16 @@ class I18n extends EventEmitter {
2067
1997
  fixedT.keyPrefix = keyPrefix;
2068
1998
  return fixedT;
2069
1999
  }
2070
- t() {
2071
- for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
2072
- args[_key4] = arguments[_key4];
2073
- }
2000
+ t(...args) {
2074
2001
  return this.translator?.translate(...args);
2075
2002
  }
2076
- exists() {
2077
- for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
2078
- args[_key5] = arguments[_key5];
2079
- }
2003
+ exists(...args) {
2080
2004
  return this.translator?.exists(...args);
2081
2005
  }
2082
2006
  setDefaultNamespace(ns) {
2083
2007
  this.options.defaultNS = ns;
2084
2008
  }
2085
- hasLoadedNamespace(ns) {
2086
- let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
2009
+ hasLoadedNamespace(ns, options = {}) {
2087
2010
  if (!this.isInitialized) {
2088
2011
  this.logger.warn('hasLoadedNamespace: i18next was not initialized', this.languages);
2089
2012
  return false;
@@ -2148,14 +2071,10 @@ class I18n extends EventEmitter {
2148
2071
  const languageUtils = this.services?.languageUtils || new LanguageUtil(get());
2149
2072
  return rtlLngs.indexOf(languageUtils.getLanguagePartFromCode(lng)) > -1 || lng.toLowerCase().indexOf('-arab') > 1 ? 'rtl' : 'ltr';
2150
2073
  }
2151
- static createInstance() {
2152
- let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
2153
- let callback = arguments.length > 1 ? arguments[1] : undefined;
2074
+ static createInstance(options = {}, callback) {
2154
2075
  return new I18n(options, callback);
2155
2076
  }
2156
- cloneInstance() {
2157
- let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
2158
- let callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : noop;
2077
+ cloneInstance(options = {}, callback = noop) {
2159
2078
  const forkResourceStore = options.forkResourceStore;
2160
2079
  if (forkResourceStore) delete options.forkResourceStore;
2161
2080
  const mergedOptions = {
@@ -2184,21 +2103,19 @@ class I18n extends EventEmitter {
2184
2103
  prev[l] = {
2185
2104
  ...this.store.data[l]
2186
2105
  };
2187
- return Object.keys(prev[l]).reduce((acc, n) => {
2106
+ prev[l] = Object.keys(prev[l]).reduce((acc, n) => {
2188
2107
  acc[n] = {
2189
2108
  ...prev[l][n]
2190
2109
  };
2191
2110
  return acc;
2192
- }, {});
2111
+ }, prev[l]);
2112
+ return prev;
2193
2113
  }, {});
2194
2114
  clone.store = new ResourceStore(clonedData, mergedOptions);
2195
2115
  clone.services.resourceStore = clone.store;
2196
2116
  }
2197
2117
  clone.translator = new Translator(clone.services, mergedOptions);
2198
- clone.translator.on('*', function (event) {
2199
- for (var _len6 = arguments.length, args = new Array(_len6 > 1 ? _len6 - 1 : 0), _key6 = 1; _key6 < _len6; _key6++) {
2200
- args[_key6 - 1] = arguments[_key6];
2201
- }
2118
+ clone.translator.on('*', (event, ...args) => {
2202
2119
  clone.emit(event, ...args);
2203
2120
  });
2204
2121
  clone.init(mergedOptions, callback);
@@ -2256,6 +2173,6 @@ function i18n(getElement, resources) {
2256
2173
  }
2257
2174
 
2258
2175
  exports.i18n = i18n;
2259
- //# sourceMappingURL=i18n-D9iWFntP.js.map
2176
+ //# sourceMappingURL=i18n-D6gzajyT.js.map
2260
2177
 
2261
- //# sourceMappingURL=i18n-D9iWFntP.js.map
2178
+ //# sourceMappingURL=i18n-D6gzajyT.js.map