@synergy-design-system/components 3.10.4 → 3.11.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 (368) hide show
  1. package/dist/chunks/{chunk.SEFQZCXH.js → chunk.2HNX2X6Q.js} +2 -2
  2. package/dist/chunks/{chunk.VQIKOPDQ.js → chunk.2I3NFVSC.js} +2 -2
  3. package/dist/chunks/{chunk.MCPWGLHA.js → chunk.2KXVPOKG.js} +2 -2
  4. package/dist/chunks/{chunk.7QOLPG6I.js → chunk.2SGF3JMK.js} +7 -7
  5. package/dist/chunks/{chunk.GH7TQI4G.js → chunk.35EJKD3N.js} +2 -2
  6. package/dist/chunks/{chunk.YRJIEE7U.js → chunk.4DDISSWY.js} +2 -2
  7. package/dist/chunks/{chunk.A3W6ZU5H.js → chunk.4UQWIPGL.js} +2 -2
  8. package/dist/chunks/{chunk.BHJVE26D.js → chunk.54DNKD6O.js} +13 -22
  9. package/dist/chunks/chunk.54DNKD6O.js.map +7 -0
  10. package/dist/chunks/{chunk.7RX544HT.js → chunk.5DNSWJSB.js} +3 -3
  11. package/dist/chunks/{chunk.BPZGBVGP.js → chunk.5UIIXBXR.js} +2 -2
  12. package/dist/chunks/{chunk.6DZPP5HX.js → chunk.6DBSTC7T.js} +5 -5
  13. package/dist/chunks/{chunk.K7JJWYOY.js → chunk.6J4UZMXX.js} +10 -10
  14. package/dist/chunks/{chunk.6XRGRS74.js → chunk.6LKHXBJA.js} +2 -2
  15. package/dist/chunks/{chunk.6XRGRS74.js.map → chunk.6LKHXBJA.js.map} +1 -1
  16. package/dist/chunks/{chunk.A2XGTPOZ.js → chunk.6NDXDTNI.js} +2 -2
  17. package/dist/chunks/{chunk.7XFCNPGQ.js → chunk.76KNL7J2.js} +7 -7
  18. package/dist/chunks/{chunk.45DKGBTQ.js → chunk.7SI6WX2S.js} +3 -3
  19. package/dist/chunks/{chunk.JX2IM7S6.js → chunk.7XVOJDSE.js} +2 -2
  20. package/dist/chunks/{chunk.KP2574GH.js → chunk.AGBLYBF2.js} +6 -6
  21. package/dist/chunks/{chunk.ODU2NISM.js → chunk.AQRVUCQ7.js} +2 -2
  22. package/dist/chunks/{chunk.5E5POTDI.js → chunk.AWFTGRF6.js} +2 -2
  23. package/dist/chunks/{chunk.KWJSWLSH.js → chunk.AWLNERNQ.js} +4 -4
  24. package/dist/chunks/{chunk.GPZH6JIL.js → chunk.BP7L5HUX.js} +2 -2
  25. package/dist/chunks/{chunk.O5FEBL7L.js → chunk.BURTXEFN.js} +2 -2
  26. package/dist/chunks/{chunk.NI4UJNQY.js → chunk.BZZPENFR.js} +2 -2
  27. package/dist/chunks/{chunk.IGXG356T.js → chunk.CH6OJFIQ.js} +3 -3
  28. package/dist/chunks/{chunk.XKIFUNFQ.js → chunk.D5NZLPGT.js} +6 -6
  29. package/dist/chunks/{chunk.FVEHR2AI.js → chunk.DVPZRSXB.js} +2 -2
  30. package/dist/chunks/{chunk.RHJL4TOW.js → chunk.E222JVXP.js} +2 -2
  31. package/dist/chunks/{chunk.USAKZTYK.js → chunk.EWBPEJJI.js} +2 -2
  32. package/dist/chunks/chunk.F5DLRUHG.js +17 -0
  33. package/dist/chunks/chunk.F5DLRUHG.js.map +7 -0
  34. package/dist/chunks/{chunk.RTWESAR6.js → chunk.FMSG55AA.js} +2 -2
  35. package/dist/chunks/{chunk.ZBPDDEIB.js → chunk.FOSFQVB5.js} +2 -2
  36. package/dist/chunks/{chunk.BTZBAYDE.js → chunk.GGXOTKY3.js} +8 -8
  37. package/dist/chunks/{chunk.ZY7VYOGF.js → chunk.GHY7NBED.js} +8 -8
  38. package/dist/chunks/{chunk.BCRV2CJV.js → chunk.GID3MKNG.js} +8 -8
  39. package/dist/chunks/{chunk.HCI4ZMBD.js → chunk.GXEAYKLW.js} +2 -2
  40. package/dist/chunks/{chunk.2J7JSSEX.js → chunk.H4RNHFGE.js} +5 -5
  41. package/dist/chunks/{chunk.X6LZQKZ2.js → chunk.HDJ5KQLI.js} +3 -3
  42. package/dist/chunks/{chunk.76SNH7KD.js → chunk.HENR6U6R.js} +2 -2
  43. package/dist/chunks/{chunk.NQ7O4B3H.js → chunk.I3N2I4BY.js} +5 -5
  44. package/dist/chunks/{chunk.LM5KLKWI.js → chunk.IA6NR7XS.js} +2 -2
  45. package/dist/chunks/{chunk.ZCWS4D3I.js → chunk.IKDOE7C6.js} +3 -3
  46. package/dist/chunks/{chunk.NZWFPVYW.js → chunk.IQ6P4BDG.js} +2 -2
  47. package/dist/chunks/{chunk.CR7KFMTQ.js → chunk.IXW4YFRU.js} +2 -2
  48. package/dist/chunks/{chunk.3JUU3XQ4.js → chunk.JUG6MDRZ.js} +2 -2
  49. package/dist/chunks/{chunk.B2PVLMXH.js → chunk.KMEAI3RT.js} +7 -7
  50. package/dist/chunks/{chunk.3HWP6U7F.js → chunk.KZS7MQRC.js} +6 -6
  51. package/dist/chunks/{chunk.JWISPLLL.js → chunk.LAQO7C2D.js} +2 -2
  52. package/dist/chunks/{chunk.QJ7SBIQQ.js → chunk.LAZUT3QZ.js} +10 -10
  53. package/dist/chunks/{chunk.GYQWDBJD.js → chunk.LJXLCAAJ.js} +2 -2
  54. package/dist/chunks/{chunk.QEYVKVWW.js → chunk.LNO5Y3AG.js} +3 -3
  55. package/dist/chunks/{chunk.MDBD636W.js → chunk.LV5UFJAH.js} +6 -6
  56. package/dist/chunks/{chunk.WNOCAJT2.js → chunk.M4SHPFNY.js} +2 -2
  57. package/dist/chunks/{chunk.XWJ6CFWB.js → chunk.MBOHBJQ5.js} +2 -2
  58. package/dist/chunks/{chunk.4KH27W3Y.js → chunk.MF3COJYK.js} +2 -2
  59. package/dist/chunks/{chunk.6JGLMGLL.js → chunk.MGW5ZHFL.js} +2 -2
  60. package/dist/chunks/{chunk.H4GJQFID.js → chunk.MKKLMPDZ.js} +2 -2
  61. package/dist/chunks/{chunk.GRT2IHGI.js → chunk.MPF7WKGD.js} +2 -2
  62. package/dist/chunks/{chunk.7LTUA2PA.js → chunk.MTIKH7A4.js} +2 -2
  63. package/dist/chunks/{chunk.4I4TOYAL.js → chunk.NHKD7WKN.js} +4 -4
  64. package/dist/chunks/{chunk.J5D5JRRX.js → chunk.NRFA32LN.js} +9 -9
  65. package/dist/chunks/{chunk.EACJ7B2A.js → chunk.PJLYLCFA.js} +3 -3
  66. package/dist/chunks/{chunk.FCNF6EC7.js → chunk.PRVEXEXZ.js} +6 -6
  67. package/dist/chunks/{chunk.GVISB3QH.js → chunk.PSXXSTX7.js} +6 -6
  68. package/dist/chunks/chunk.PWUNMARH.js +139 -0
  69. package/dist/chunks/chunk.PWUNMARH.js.map +7 -0
  70. package/dist/chunks/{chunk.UDW4U2CW.js → chunk.PZ7VKPB3.js} +2 -2
  71. package/dist/chunks/{chunk.RI63MYO4.js → chunk.Q2HMXEMT.js} +8 -8
  72. package/dist/chunks/{chunk.FZZHK37A.js → chunk.Q2LKBDUY.js} +6 -6
  73. package/dist/chunks/{chunk.GMXNY7CG.js → chunk.Q4L52SC3.js} +2 -2
  74. package/dist/chunks/{chunk.NLE4EUJ3.js → chunk.QMSKWFV7.js} +2 -2
  75. package/dist/chunks/{chunk.MQ7ISR4Y.js → chunk.QSLO3JHB.js} +6 -6
  76. package/dist/chunks/{chunk.7WY4YRBC.js → chunk.QVS6KRQN.js} +6 -6
  77. package/dist/chunks/{chunk.DEGAJBJO.js → chunk.R3HJAGVT.js} +8 -8
  78. package/dist/chunks/{chunk.LORH2GA2.js → chunk.R77MKBEY.js} +2 -2
  79. package/dist/chunks/{chunk.ZIOQDKZH.js → chunk.RMN62BJ2.js} +2 -2
  80. package/dist/chunks/{chunk.7NNJJUXZ.js → chunk.RTNGARKQ.js} +2 -2
  81. package/dist/chunks/{chunk.TASI3EOP.js → chunk.RWEYGYJ5.js} +2 -2
  82. package/dist/chunks/{chunk.YZPI6FWX.js → chunk.RZQ4JGZR.js} +2 -2
  83. package/dist/chunks/{chunk.IHKNIO2A.js → chunk.S7RUPJNJ.js} +7 -7
  84. package/dist/chunks/{chunk.3TL6CTKJ.js → chunk.SL4W2AF3.js} +2 -2
  85. package/dist/chunks/{chunk.SMSEBZ33.js → chunk.SRLLSHRU.js} +2 -2
  86. package/dist/chunks/{chunk.DTB4VZXC.js → chunk.T5WNEOPU.js} +6 -6
  87. package/dist/chunks/{chunk.FVOP6XAW.js → chunk.TBJP5QWR.js} +10 -10
  88. package/dist/chunks/{chunk.CLPDBCAN.js → chunk.U4UF4ZCH.js} +2 -2
  89. package/dist/chunks/{chunk.CHKACCPI.js → chunk.UQHDX27K.js} +2 -2
  90. package/dist/chunks/{chunk.7OHHUKQO.js → chunk.V7E5GIU7.js} +2 -2
  91. package/dist/chunks/{chunk.KRPJMKCF.js → chunk.V7IJUEZ4.js} +2 -2
  92. package/dist/chunks/{chunk.X4RCWHDF.js → chunk.VNTQBOEP.js} +2 -2
  93. package/dist/chunks/{chunk.CXWVYETD.js → chunk.W6DCMVJG.js} +2 -2
  94. package/dist/chunks/{chunk.YTI4UXTA.js → chunk.WLDU5JFX.js} +5 -5
  95. package/dist/chunks/{chunk.HRRGDEFF.js → chunk.WN7YK23K.js} +2 -2
  96. package/dist/chunks/{chunk.WJS3JOXC.js → chunk.WUAZEDTL.js} +2 -2
  97. package/dist/chunks/{chunk.5WHSE6F4.js → chunk.XOJ754AM.js} +2 -2
  98. package/dist/chunks/chunk.XQSKN3CN.js +1 -0
  99. package/dist/chunks/chunk.XQSKN3CN.js.map +7 -0
  100. package/dist/chunks/{chunk.LZYA5BP7.js → chunk.XTILKGND.js} +5 -5
  101. package/dist/chunks/{chunk.BW3JK7OW.js → chunk.YC7YJVWB.js} +4 -4
  102. package/dist/chunks/{chunk.S43J5RCI.js → chunk.YCKNDC7C.js} +2 -2
  103. package/dist/chunks/{chunk.CFYEPT7Z.js → chunk.YD6X6Q2V.js} +2 -2
  104. package/dist/chunks/{chunk.KX3DPZJN.js → chunk.Z4Z2Z52E.js} +2 -2
  105. package/dist/chunks/{chunk.6BOXG2R5.js → chunk.ZFGJMZMH.js} +2 -2
  106. package/dist/chunks/{chunk.OTWZ3VEV.js → chunk.ZFZ7GL6L.js} +9 -9
  107. package/dist/components/accordion/accordion.component.js +3 -3
  108. package/dist/components/accordion/accordion.js +4 -4
  109. package/dist/components/alert/alert.component.js +10 -8
  110. package/dist/components/alert/alert.js +11 -9
  111. package/dist/components/badge/badge.component.js +8 -6
  112. package/dist/components/badge/badge.js +9 -7
  113. package/dist/components/breadcrumb/breadcrumb.component.js +9 -7
  114. package/dist/components/breadcrumb/breadcrumb.js +10 -8
  115. package/dist/components/breadcrumb-item/breadcrumb-item.component.js +2 -2
  116. package/dist/components/breadcrumb-item/breadcrumb-item.js +3 -3
  117. package/dist/components/button/button.component.js +9 -7
  118. package/dist/components/button/button.js +10 -8
  119. package/dist/components/button-group/button-group.component.js +2 -2
  120. package/dist/components/button-group/button-group.js +3 -3
  121. package/dist/components/card/card.component.js +2 -2
  122. package/dist/components/card/card.js +3 -3
  123. package/dist/components/checkbox/checkbox.component.js +4 -4
  124. package/dist/components/checkbox/checkbox.js +5 -5
  125. package/dist/components/combobox/combobox.component.js +12 -10
  126. package/dist/components/combobox/combobox.js +13 -11
  127. package/dist/components/details/details.component.js +8 -6
  128. package/dist/components/details/details.js +9 -7
  129. package/dist/components/dialog/dialog.component.js +9 -7
  130. package/dist/components/dialog/dialog.js +10 -8
  131. package/dist/components/divider/divider.component.js +2 -2
  132. package/dist/components/divider/divider.js +3 -3
  133. package/dist/components/drawer/drawer.component.js +9 -7
  134. package/dist/components/drawer/drawer.js +10 -8
  135. package/dist/components/dropdown/dropdown.component.js +7 -5
  136. package/dist/components/dropdown/dropdown.js +8 -6
  137. package/dist/components/file/file.component.js +10 -8
  138. package/dist/components/file/file.js +11 -9
  139. package/dist/components/header/header.component.js +8 -6
  140. package/dist/components/header/header.js +9 -7
  141. package/dist/components/icon/icon.component.js +2 -2
  142. package/dist/components/icon/icon.js +3 -3
  143. package/dist/components/icon-button/icon-button.component.js +4 -4
  144. package/dist/components/icon-button/icon-button.js +5 -5
  145. package/dist/components/input/input.component.js +9 -7
  146. package/dist/components/input/input.js +10 -8
  147. package/dist/components/menu/menu.component.js +2 -2
  148. package/dist/components/menu/menu.js +3 -3
  149. package/dist/components/menu-item/menu-item.component.js +9 -7
  150. package/dist/components/menu-item/menu-item.js +10 -8
  151. package/dist/components/menu-label/menu-label.component.js +3 -3
  152. package/dist/components/menu-label/menu-label.js +4 -4
  153. package/dist/components/nav-item/nav-item.component.js +4 -4
  154. package/dist/components/nav-item/nav-item.js +5 -5
  155. package/dist/components/optgroup/optgroup.component.js +3 -3
  156. package/dist/components/optgroup/optgroup.js +4 -4
  157. package/dist/components/option/option.component.js +8 -6
  158. package/dist/components/option/option.js +9 -7
  159. package/dist/components/popup/popup.component.js +6 -4
  160. package/dist/components/popup/popup.js +7 -5
  161. package/dist/components/prio-nav/prio-nav.component.js +12 -10
  162. package/dist/components/prio-nav/prio-nav.js +13 -11
  163. package/dist/components/progress-bar/progress-bar.component.js +6 -4
  164. package/dist/components/progress-bar/progress-bar.js +7 -5
  165. package/dist/components/progress-ring/progress-ring.component.js +6 -4
  166. package/dist/components/progress-ring/progress-ring.js +7 -5
  167. package/dist/components/radio/radio.component.js +4 -4
  168. package/dist/components/radio/radio.js +5 -5
  169. package/dist/components/radio-button/radio-button.component.js +3 -3
  170. package/dist/components/radio-button/radio-button.js +4 -4
  171. package/dist/components/radio-group/radio-group.component.js +4 -4
  172. package/dist/components/radio-group/radio-group.js +5 -5
  173. package/dist/components/range/range.component.js +9 -7
  174. package/dist/components/range/range.js +10 -8
  175. package/dist/components/range-tick/range-tick.component.js +2 -2
  176. package/dist/components/range-tick/range-tick.js +3 -3
  177. package/dist/components/resize-observer/resize-observer.component.js +2 -2
  178. package/dist/components/select/select.component.js +11 -9
  179. package/dist/components/select/select.js +12 -10
  180. package/dist/components/side-nav/side-nav.component.js +12 -10
  181. package/dist/components/side-nav/side-nav.js +13 -11
  182. package/dist/components/spinner/spinner.component.js +6 -4
  183. package/dist/components/spinner/spinner.js +7 -5
  184. package/dist/components/switch/switch.component.js +3 -3
  185. package/dist/components/switch/switch.js +4 -4
  186. package/dist/components/tab/tab.component.js +9 -7
  187. package/dist/components/tab/tab.js +10 -8
  188. package/dist/components/tab-group/tab-group.component.js +10 -8
  189. package/dist/components/tab-group/tab-group.js +11 -9
  190. package/dist/components/tab-panel/tab-panel.component.js +2 -2
  191. package/dist/components/tab-panel/tab-panel.js +3 -3
  192. package/dist/components/tag/tag.component.js +9 -7
  193. package/dist/components/tag/tag.js +10 -8
  194. package/dist/components/tag-group/tag-group.component.js +3 -3
  195. package/dist/components/tag-group/tag-group.js +4 -4
  196. package/dist/components/textarea/textarea.component.js +3 -3
  197. package/dist/components/textarea/textarea.js +4 -4
  198. package/dist/components/tooltip/tooltip.component.js +7 -5
  199. package/dist/components/tooltip/tooltip.js +8 -6
  200. package/dist/components/validate/utility.js +2 -2
  201. package/dist/components/validate/validate.component.js +14 -12
  202. package/dist/components/validate/validate.js +15 -13
  203. package/dist/custom-elements.json +77 -77
  204. package/dist/styles/index.css +1 -1
  205. package/dist/synergy.js +112 -110
  206. package/dist/translations/cs.d.ts +3 -0
  207. package/dist/translations/cs.js +60 -0
  208. package/dist/translations/cs.js.map +7 -0
  209. package/dist/translations/da.d.ts +3 -0
  210. package/dist/translations/da.js +57 -0
  211. package/dist/translations/da.js.map +7 -0
  212. package/dist/translations/de.js +5 -15
  213. package/dist/translations/de.js.map +2 -2
  214. package/dist/translations/en.js +2 -1
  215. package/dist/translations/es.d.ts +3 -0
  216. package/dist/translations/es.js +57 -0
  217. package/dist/translations/es.js.map +7 -0
  218. package/dist/translations/fi.d.ts +3 -0
  219. package/dist/translations/fi.js +57 -0
  220. package/dist/translations/fi.js.map +7 -0
  221. package/dist/translations/fr.d.ts +3 -0
  222. package/dist/translations/fr.js +57 -0
  223. package/dist/translations/fr.js.map +7 -0
  224. package/dist/translations/it.d.ts +3 -0
  225. package/dist/translations/it.js +57 -0
  226. package/dist/translations/it.js.map +7 -0
  227. package/dist/translations/ja.d.ts +3 -0
  228. package/dist/translations/ja.js +57 -0
  229. package/dist/translations/ja.js.map +7 -0
  230. package/dist/translations/ko.d.ts +3 -0
  231. package/dist/translations/ko.js +57 -0
  232. package/dist/translations/ko.js.map +7 -0
  233. package/dist/translations/nl.d.ts +3 -0
  234. package/dist/translations/nl.js +57 -0
  235. package/dist/translations/nl.js.map +7 -0
  236. package/dist/translations/pl.d.ts +3 -0
  237. package/dist/translations/pl.js +60 -0
  238. package/dist/translations/pl.js.map +7 -0
  239. package/dist/translations/pt-br.d.ts +3 -0
  240. package/dist/translations/pt-br.js +57 -0
  241. package/dist/translations/pt-br.js.map +7 -0
  242. package/dist/translations/ru.d.ts +3 -0
  243. package/dist/translations/ru.js +60 -0
  244. package/dist/translations/ru.js.map +7 -0
  245. package/dist/translations/sv.d.ts +3 -0
  246. package/dist/translations/sv.js +57 -0
  247. package/dist/translations/sv.js.map +7 -0
  248. package/dist/translations/tr.d.ts +3 -0
  249. package/dist/translations/tr.js +57 -0
  250. package/dist/translations/tr.js.map +7 -0
  251. package/dist/translations/zh-cn.d.ts +3 -0
  252. package/dist/translations/zh-cn.js +57 -0
  253. package/dist/translations/zh-cn.js.map +7 -0
  254. package/dist/translations/zh-tw.d.ts +3 -0
  255. package/dist/translations/zh-tw.js +57 -0
  256. package/dist/translations/zh-tw.js.map +7 -0
  257. package/dist/utilities/localize/controller.d.ts +4 -0
  258. package/dist/utilities/localize/controller.js +10 -0
  259. package/dist/utilities/localize/controller.js.map +7 -0
  260. package/dist/utilities/localize/core.d.ts +59 -0
  261. package/dist/utilities/localize/core.js +12 -0
  262. package/dist/utilities/localize/core.js.map +7 -0
  263. package/dist/utilities/localize/types.d.ts +42 -0
  264. package/dist/utilities/localize/types.js +1 -0
  265. package/dist/utilities/localize/types.js.map +7 -0
  266. package/dist/utilities/localize.d.ts +3 -51
  267. package/dist/utilities/localize.js +6 -3
  268. package/dist/vscode.html-custom-data.json +23 -23
  269. package/package.json +14 -16
  270. package/dist/chunks/chunk.BHJVE26D.js.map +0 -7
  271. package/dist/chunks/chunk.QLETXF4A.js +0 -16
  272. package/dist/chunks/chunk.QLETXF4A.js.map +0 -7
  273. /package/dist/chunks/{chunk.SEFQZCXH.js.map → chunk.2HNX2X6Q.js.map} +0 -0
  274. /package/dist/chunks/{chunk.VQIKOPDQ.js.map → chunk.2I3NFVSC.js.map} +0 -0
  275. /package/dist/chunks/{chunk.MCPWGLHA.js.map → chunk.2KXVPOKG.js.map} +0 -0
  276. /package/dist/chunks/{chunk.7QOLPG6I.js.map → chunk.2SGF3JMK.js.map} +0 -0
  277. /package/dist/chunks/{chunk.GH7TQI4G.js.map → chunk.35EJKD3N.js.map} +0 -0
  278. /package/dist/chunks/{chunk.YRJIEE7U.js.map → chunk.4DDISSWY.js.map} +0 -0
  279. /package/dist/chunks/{chunk.A3W6ZU5H.js.map → chunk.4UQWIPGL.js.map} +0 -0
  280. /package/dist/chunks/{chunk.7RX544HT.js.map → chunk.5DNSWJSB.js.map} +0 -0
  281. /package/dist/chunks/{chunk.BPZGBVGP.js.map → chunk.5UIIXBXR.js.map} +0 -0
  282. /package/dist/chunks/{chunk.6DZPP5HX.js.map → chunk.6DBSTC7T.js.map} +0 -0
  283. /package/dist/chunks/{chunk.K7JJWYOY.js.map → chunk.6J4UZMXX.js.map} +0 -0
  284. /package/dist/chunks/{chunk.A2XGTPOZ.js.map → chunk.6NDXDTNI.js.map} +0 -0
  285. /package/dist/chunks/{chunk.7XFCNPGQ.js.map → chunk.76KNL7J2.js.map} +0 -0
  286. /package/dist/chunks/{chunk.45DKGBTQ.js.map → chunk.7SI6WX2S.js.map} +0 -0
  287. /package/dist/chunks/{chunk.JX2IM7S6.js.map → chunk.7XVOJDSE.js.map} +0 -0
  288. /package/dist/chunks/{chunk.KP2574GH.js.map → chunk.AGBLYBF2.js.map} +0 -0
  289. /package/dist/chunks/{chunk.ODU2NISM.js.map → chunk.AQRVUCQ7.js.map} +0 -0
  290. /package/dist/chunks/{chunk.5E5POTDI.js.map → chunk.AWFTGRF6.js.map} +0 -0
  291. /package/dist/chunks/{chunk.KWJSWLSH.js.map → chunk.AWLNERNQ.js.map} +0 -0
  292. /package/dist/chunks/{chunk.GPZH6JIL.js.map → chunk.BP7L5HUX.js.map} +0 -0
  293. /package/dist/chunks/{chunk.O5FEBL7L.js.map → chunk.BURTXEFN.js.map} +0 -0
  294. /package/dist/chunks/{chunk.NI4UJNQY.js.map → chunk.BZZPENFR.js.map} +0 -0
  295. /package/dist/chunks/{chunk.IGXG356T.js.map → chunk.CH6OJFIQ.js.map} +0 -0
  296. /package/dist/chunks/{chunk.XKIFUNFQ.js.map → chunk.D5NZLPGT.js.map} +0 -0
  297. /package/dist/chunks/{chunk.FVEHR2AI.js.map → chunk.DVPZRSXB.js.map} +0 -0
  298. /package/dist/chunks/{chunk.RHJL4TOW.js.map → chunk.E222JVXP.js.map} +0 -0
  299. /package/dist/chunks/{chunk.USAKZTYK.js.map → chunk.EWBPEJJI.js.map} +0 -0
  300. /package/dist/chunks/{chunk.RTWESAR6.js.map → chunk.FMSG55AA.js.map} +0 -0
  301. /package/dist/chunks/{chunk.ZBPDDEIB.js.map → chunk.FOSFQVB5.js.map} +0 -0
  302. /package/dist/chunks/{chunk.BTZBAYDE.js.map → chunk.GGXOTKY3.js.map} +0 -0
  303. /package/dist/chunks/{chunk.ZY7VYOGF.js.map → chunk.GHY7NBED.js.map} +0 -0
  304. /package/dist/chunks/{chunk.BCRV2CJV.js.map → chunk.GID3MKNG.js.map} +0 -0
  305. /package/dist/chunks/{chunk.HCI4ZMBD.js.map → chunk.GXEAYKLW.js.map} +0 -0
  306. /package/dist/chunks/{chunk.2J7JSSEX.js.map → chunk.H4RNHFGE.js.map} +0 -0
  307. /package/dist/chunks/{chunk.X6LZQKZ2.js.map → chunk.HDJ5KQLI.js.map} +0 -0
  308. /package/dist/chunks/{chunk.76SNH7KD.js.map → chunk.HENR6U6R.js.map} +0 -0
  309. /package/dist/chunks/{chunk.NQ7O4B3H.js.map → chunk.I3N2I4BY.js.map} +0 -0
  310. /package/dist/chunks/{chunk.LM5KLKWI.js.map → chunk.IA6NR7XS.js.map} +0 -0
  311. /package/dist/chunks/{chunk.ZCWS4D3I.js.map → chunk.IKDOE7C6.js.map} +0 -0
  312. /package/dist/chunks/{chunk.NZWFPVYW.js.map → chunk.IQ6P4BDG.js.map} +0 -0
  313. /package/dist/chunks/{chunk.CR7KFMTQ.js.map → chunk.IXW4YFRU.js.map} +0 -0
  314. /package/dist/chunks/{chunk.3JUU3XQ4.js.map → chunk.JUG6MDRZ.js.map} +0 -0
  315. /package/dist/chunks/{chunk.B2PVLMXH.js.map → chunk.KMEAI3RT.js.map} +0 -0
  316. /package/dist/chunks/{chunk.3HWP6U7F.js.map → chunk.KZS7MQRC.js.map} +0 -0
  317. /package/dist/chunks/{chunk.JWISPLLL.js.map → chunk.LAQO7C2D.js.map} +0 -0
  318. /package/dist/chunks/{chunk.QJ7SBIQQ.js.map → chunk.LAZUT3QZ.js.map} +0 -0
  319. /package/dist/chunks/{chunk.GYQWDBJD.js.map → chunk.LJXLCAAJ.js.map} +0 -0
  320. /package/dist/chunks/{chunk.QEYVKVWW.js.map → chunk.LNO5Y3AG.js.map} +0 -0
  321. /package/dist/chunks/{chunk.MDBD636W.js.map → chunk.LV5UFJAH.js.map} +0 -0
  322. /package/dist/chunks/{chunk.WNOCAJT2.js.map → chunk.M4SHPFNY.js.map} +0 -0
  323. /package/dist/chunks/{chunk.XWJ6CFWB.js.map → chunk.MBOHBJQ5.js.map} +0 -0
  324. /package/dist/chunks/{chunk.4KH27W3Y.js.map → chunk.MF3COJYK.js.map} +0 -0
  325. /package/dist/chunks/{chunk.6JGLMGLL.js.map → chunk.MGW5ZHFL.js.map} +0 -0
  326. /package/dist/chunks/{chunk.H4GJQFID.js.map → chunk.MKKLMPDZ.js.map} +0 -0
  327. /package/dist/chunks/{chunk.GRT2IHGI.js.map → chunk.MPF7WKGD.js.map} +0 -0
  328. /package/dist/chunks/{chunk.7LTUA2PA.js.map → chunk.MTIKH7A4.js.map} +0 -0
  329. /package/dist/chunks/{chunk.4I4TOYAL.js.map → chunk.NHKD7WKN.js.map} +0 -0
  330. /package/dist/chunks/{chunk.J5D5JRRX.js.map → chunk.NRFA32LN.js.map} +0 -0
  331. /package/dist/chunks/{chunk.EACJ7B2A.js.map → chunk.PJLYLCFA.js.map} +0 -0
  332. /package/dist/chunks/{chunk.FCNF6EC7.js.map → chunk.PRVEXEXZ.js.map} +0 -0
  333. /package/dist/chunks/{chunk.GVISB3QH.js.map → chunk.PSXXSTX7.js.map} +0 -0
  334. /package/dist/chunks/{chunk.UDW4U2CW.js.map → chunk.PZ7VKPB3.js.map} +0 -0
  335. /package/dist/chunks/{chunk.RI63MYO4.js.map → chunk.Q2HMXEMT.js.map} +0 -0
  336. /package/dist/chunks/{chunk.FZZHK37A.js.map → chunk.Q2LKBDUY.js.map} +0 -0
  337. /package/dist/chunks/{chunk.GMXNY7CG.js.map → chunk.Q4L52SC3.js.map} +0 -0
  338. /package/dist/chunks/{chunk.NLE4EUJ3.js.map → chunk.QMSKWFV7.js.map} +0 -0
  339. /package/dist/chunks/{chunk.MQ7ISR4Y.js.map → chunk.QSLO3JHB.js.map} +0 -0
  340. /package/dist/chunks/{chunk.7WY4YRBC.js.map → chunk.QVS6KRQN.js.map} +0 -0
  341. /package/dist/chunks/{chunk.DEGAJBJO.js.map → chunk.R3HJAGVT.js.map} +0 -0
  342. /package/dist/chunks/{chunk.LORH2GA2.js.map → chunk.R77MKBEY.js.map} +0 -0
  343. /package/dist/chunks/{chunk.ZIOQDKZH.js.map → chunk.RMN62BJ2.js.map} +0 -0
  344. /package/dist/chunks/{chunk.7NNJJUXZ.js.map → chunk.RTNGARKQ.js.map} +0 -0
  345. /package/dist/chunks/{chunk.TASI3EOP.js.map → chunk.RWEYGYJ5.js.map} +0 -0
  346. /package/dist/chunks/{chunk.YZPI6FWX.js.map → chunk.RZQ4JGZR.js.map} +0 -0
  347. /package/dist/chunks/{chunk.IHKNIO2A.js.map → chunk.S7RUPJNJ.js.map} +0 -0
  348. /package/dist/chunks/{chunk.3TL6CTKJ.js.map → chunk.SL4W2AF3.js.map} +0 -0
  349. /package/dist/chunks/{chunk.SMSEBZ33.js.map → chunk.SRLLSHRU.js.map} +0 -0
  350. /package/dist/chunks/{chunk.DTB4VZXC.js.map → chunk.T5WNEOPU.js.map} +0 -0
  351. /package/dist/chunks/{chunk.FVOP6XAW.js.map → chunk.TBJP5QWR.js.map} +0 -0
  352. /package/dist/chunks/{chunk.CLPDBCAN.js.map → chunk.U4UF4ZCH.js.map} +0 -0
  353. /package/dist/chunks/{chunk.CHKACCPI.js.map → chunk.UQHDX27K.js.map} +0 -0
  354. /package/dist/chunks/{chunk.7OHHUKQO.js.map → chunk.V7E5GIU7.js.map} +0 -0
  355. /package/dist/chunks/{chunk.KRPJMKCF.js.map → chunk.V7IJUEZ4.js.map} +0 -0
  356. /package/dist/chunks/{chunk.X4RCWHDF.js.map → chunk.VNTQBOEP.js.map} +0 -0
  357. /package/dist/chunks/{chunk.CXWVYETD.js.map → chunk.W6DCMVJG.js.map} +0 -0
  358. /package/dist/chunks/{chunk.YTI4UXTA.js.map → chunk.WLDU5JFX.js.map} +0 -0
  359. /package/dist/chunks/{chunk.HRRGDEFF.js.map → chunk.WN7YK23K.js.map} +0 -0
  360. /package/dist/chunks/{chunk.WJS3JOXC.js.map → chunk.WUAZEDTL.js.map} +0 -0
  361. /package/dist/chunks/{chunk.5WHSE6F4.js.map → chunk.XOJ754AM.js.map} +0 -0
  362. /package/dist/chunks/{chunk.LZYA5BP7.js.map → chunk.XTILKGND.js.map} +0 -0
  363. /package/dist/chunks/{chunk.BW3JK7OW.js.map → chunk.YC7YJVWB.js.map} +0 -0
  364. /package/dist/chunks/{chunk.S43J5RCI.js.map → chunk.YCKNDC7C.js.map} +0 -0
  365. /package/dist/chunks/{chunk.CFYEPT7Z.js.map → chunk.YD6X6Q2V.js.map} +0 -0
  366. /package/dist/chunks/{chunk.KX3DPZJN.js.map → chunk.Z4Z2Z52E.js.map} +0 -0
  367. /package/dist/chunks/{chunk.6BOXG2R5.js.map → chunk.ZFGJMZMH.js.map} +0 -0
  368. /package/dist/chunks/{chunk.OTWZ3VEV.js.map → chunk.ZFZ7GL6L.js.map} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynRadioButton
3
- } from "./chunk.6DZPP5HX.js";
3
+ } from "./chunk.6DBSTC7T.js";
4
4
 
5
5
  // src/components/radio-button/radio-button.ts
6
6
  var radio_button_default = SynRadioButton;
@@ -9,4 +9,4 @@ SynRadioButton.define("syn-radio-button");
9
9
  export {
10
10
  radio_button_default
11
11
  };
12
- //# sourceMappingURL=chunk.WNOCAJT2.js.map
12
+ //# sourceMappingURL=chunk.M4SHPFNY.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynSpinner
3
- } from "./chunk.45DKGBTQ.js";
3
+ } from "./chunk.7SI6WX2S.js";
4
4
 
5
5
  // src/components/spinner/spinner.ts
6
6
  var spinner_default = SynSpinner;
@@ -9,4 +9,4 @@ SynSpinner.define("syn-spinner");
9
9
  export {
10
10
  spinner_default
11
11
  };
12
- //# sourceMappingURL=chunk.XWJ6CFWB.js.map
12
+ //# sourceMappingURL=chunk.MBOHBJQ5.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynIconButton
3
- } from "./chunk.EACJ7B2A.js";
3
+ } from "./chunk.PJLYLCFA.js";
4
4
 
5
5
  // src/components/icon-button/icon-button.ts
6
6
  var icon_button_default = SynIconButton;
@@ -9,4 +9,4 @@ SynIconButton.define("syn-icon-button");
9
9
  export {
10
10
  icon_button_default
11
11
  };
12
- //# sourceMappingURL=chunk.4KH27W3Y.js.map
12
+ //# sourceMappingURL=chunk.MF3COJYK.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynMenuLabel
3
- } from "./chunk.7RX544HT.js";
3
+ } from "./chunk.5DNSWJSB.js";
4
4
 
5
5
  // src/components/menu-label/menu-label.ts
6
6
  var menu_label_default = SynMenuLabel;
@@ -9,4 +9,4 @@ SynMenuLabel.define("syn-menu-label");
9
9
  export {
10
10
  menu_label_default
11
11
  };
12
- //# sourceMappingURL=chunk.6JGLMGLL.js.map
12
+ //# sourceMappingURL=chunk.MGW5ZHFL.js.map
@@ -12,7 +12,7 @@ import {
12
12
  } from "./chunk.2NT3B5WJ.js";
13
13
  import {
14
14
  SynergyElement
15
- } from "./chunk.6XRGRS74.js";
15
+ } from "./chunk.6LKHXBJA.js";
16
16
  import {
17
17
  __decorateClass
18
18
  } from "./chunk.MO2GTRUM.js";
@@ -148,4 +148,4 @@ function findButton(el) {
148
148
  export {
149
149
  SynButtonGroup
150
150
  };
151
- //# sourceMappingURL=chunk.H4GJQFID.js.map
151
+ //# sourceMappingURL=chunk.MKKLMPDZ.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynPrioNav
3
- } from "./chunk.7QOLPG6I.js";
3
+ } from "./chunk.2SGF3JMK.js";
4
4
 
5
5
  // src/components/prio-nav/prio-nav.ts
6
6
  var prio_nav_default = SynPrioNav;
@@ -9,4 +9,4 @@ SynPrioNav.define("syn-prio-nav");
9
9
  export {
10
10
  prio_nav_default
11
11
  };
12
- //# sourceMappingURL=chunk.GRT2IHGI.js.map
12
+ //# sourceMappingURL=chunk.MPF7WKGD.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynTooltip
3
- } from "./chunk.GVISB3QH.js";
3
+ } from "./chunk.PSXXSTX7.js";
4
4
 
5
5
  // src/components/tooltip/tooltip.ts
6
6
  var tooltip_default = SynTooltip;
@@ -9,4 +9,4 @@ SynTooltip.define("syn-tooltip");
9
9
  export {
10
10
  tooltip_default
11
11
  };
12
- //# sourceMappingURL=chunk.7LTUA2PA.js.map
12
+ //# sourceMappingURL=chunk.MTIKH7A4.js.map
@@ -3,13 +3,13 @@ import {
3
3
  } from "./chunk.K5MZVORR.js";
4
4
  import {
5
5
  SynDivider
6
- } from "./chunk.UDW4U2CW.js";
6
+ } from "./chunk.PZ7VKPB3.js";
7
7
  import {
8
8
  HasSlotController
9
9
  } from "./chunk.CHFWLQN5.js";
10
10
  import {
11
11
  SynIcon
12
- } from "./chunk.YZPI6FWX.js";
12
+ } from "./chunk.RZQ4JGZR.js";
13
13
  import {
14
14
  watch
15
15
  } from "./chunk.SMIMHADA.js";
@@ -18,7 +18,7 @@ import {
18
18
  } from "./chunk.2NT3B5WJ.js";
19
19
  import {
20
20
  SynergyElement
21
- } from "./chunk.6XRGRS74.js";
21
+ } from "./chunk.6LKHXBJA.js";
22
22
  import {
23
23
  __decorateClass
24
24
  } from "./chunk.MO2GTRUM.js";
@@ -353,4 +353,4 @@ __decorateClass([
353
353
  export {
354
354
  SynNavItem
355
355
  };
356
- //# sourceMappingURL=chunk.4I4TOYAL.js.map
356
+ //# sourceMappingURL=chunk.NHKD7WKN.js.map
@@ -1,6 +1,12 @@
1
+ import {
2
+ badge_custom_styles_default
3
+ } from "./chunk.SA423NRC.js";
4
+ import {
5
+ badge_styles_default
6
+ } from "./chunk.CMOZ4SCN.js";
1
7
  import {
2
8
  LocalizeController
3
- } from "./chunk.QLETXF4A.js";
9
+ } from "./chunk.F5DLRUHG.js";
4
10
  import {
5
11
  enableDefaultSettings
6
12
  } from "./chunk.WCFCAC7D.js";
@@ -9,13 +15,7 @@ import {
9
15
  } from "./chunk.2NT3B5WJ.js";
10
16
  import {
11
17
  SynergyElement
12
- } from "./chunk.6XRGRS74.js";
13
- import {
14
- badge_custom_styles_default
15
- } from "./chunk.SA423NRC.js";
16
- import {
17
- badge_styles_default
18
- } from "./chunk.CMOZ4SCN.js";
18
+ } from "./chunk.6LKHXBJA.js";
19
19
  import {
20
20
  __decorateClass
21
21
  } from "./chunk.MO2GTRUM.js";
@@ -66,4 +66,4 @@ SynBadge = __decorateClass([
66
66
  export {
67
67
  SynBadge
68
68
  };
69
- //# sourceMappingURL=chunk.J5D5JRRX.js.map
69
+ //# sourceMappingURL=chunk.NRFA32LN.js.map
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk.DAIQ5WRI.js";
7
7
  import {
8
8
  SynIcon
9
- } from "./chunk.YZPI6FWX.js";
9
+ } from "./chunk.RZQ4JGZR.js";
10
10
  import {
11
11
  enableDefaultSettings
12
12
  } from "./chunk.WCFCAC7D.js";
@@ -15,7 +15,7 @@ import {
15
15
  } from "./chunk.2NT3B5WJ.js";
16
16
  import {
17
17
  SynergyElement
18
- } from "./chunk.6XRGRS74.js";
18
+ } from "./chunk.6LKHXBJA.js";
19
19
  import {
20
20
  __decorateClass
21
21
  } from "./chunk.MO2GTRUM.js";
@@ -144,4 +144,4 @@ SynIconButton = __decorateClass([
144
144
  export {
145
145
  SynIconButton
146
146
  };
147
- //# sourceMappingURL=chunk.EACJ7B2A.js.map
147
+ //# sourceMappingURL=chunk.PJLYLCFA.js.map
@@ -1,21 +1,21 @@
1
- import {
2
- SynIcon
3
- } from "./chunk.YZPI6FWX.js";
4
1
  import {
5
2
  breadcrumb_custom_styles_default
6
3
  } from "./chunk.32CYREEV.js";
7
4
  import {
8
5
  breadcrumb_styles_default
9
6
  } from "./chunk.WRPQ3635.js";
7
+ import {
8
+ SynIcon
9
+ } from "./chunk.RZQ4JGZR.js";
10
10
  import {
11
11
  LocalizeController
12
- } from "./chunk.QLETXF4A.js";
12
+ } from "./chunk.F5DLRUHG.js";
13
13
  import {
14
14
  component_styles_default
15
15
  } from "./chunk.2NT3B5WJ.js";
16
16
  import {
17
17
  SynergyElement
18
- } from "./chunk.6XRGRS74.js";
18
+ } from "./chunk.6LKHXBJA.js";
19
19
  import {
20
20
  __decorateClass
21
21
  } from "./chunk.MO2GTRUM.js";
@@ -91,4 +91,4 @@ __decorateClass([
91
91
  export {
92
92
  SynBreadcrumb
93
93
  };
94
- //# sourceMappingURL=chunk.FCNF6EC7.js.map
94
+ //# sourceMappingURL=chunk.PRVEXEXZ.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk.EQUDFX74.js";
4
4
  import {
5
5
  SynPopup
6
- } from "./chunk.IGXG356T.js";
6
+ } from "./chunk.CH6OJFIQ.js";
7
7
  import {
8
8
  waitForEvent
9
9
  } from "./chunk.LQDIH4Z5.js";
@@ -16,18 +16,18 @@ import {
16
16
  getAnimation,
17
17
  setDefaultAnimation
18
18
  } from "./chunk.RJUVM6NO.js";
19
+ import {
20
+ LocalizeController
21
+ } from "./chunk.F5DLRUHG.js";
19
22
  import {
20
23
  watch
21
24
  } from "./chunk.SMIMHADA.js";
22
- import {
23
- LocalizeController
24
- } from "./chunk.QLETXF4A.js";
25
25
  import {
26
26
  component_styles_default
27
27
  } from "./chunk.2NT3B5WJ.js";
28
28
  import {
29
29
  SynergyElement
30
- } from "./chunk.6XRGRS74.js";
30
+ } from "./chunk.6LKHXBJA.js";
31
31
  import {
32
32
  __decorateClass
33
33
  } from "./chunk.MO2GTRUM.js";
@@ -272,4 +272,4 @@ setDefaultAnimation("tooltip.hide", {
272
272
  export {
273
273
  SynTooltip
274
274
  };
275
- //# sourceMappingURL=chunk.GVISB3QH.js.map
275
+ //# sourceMappingURL=chunk.PSXXSTX7.js.map
@@ -0,0 +1,139 @@
1
+ import {
2
+ __spreadValues
3
+ } from "./chunk.MO2GTRUM.js";
4
+
5
+ // src/utilities/localize/core.ts
6
+ var connectedElements = /* @__PURE__ */ new Set();
7
+ var translations = /* @__PURE__ */ new Map();
8
+ var fallback;
9
+ var documentDirection = "ltr";
10
+ var documentLanguage = "en";
11
+ var isClient = typeof MutationObserver !== "undefined" && typeof document !== "undefined" && typeof document.documentElement !== "undefined";
12
+ function update() {
13
+ if (isClient) {
14
+ documentDirection = document.documentElement.dir || "ltr";
15
+ documentLanguage = document.documentElement.lang || navigator.language;
16
+ }
17
+ [...connectedElements.keys()].forEach((el) => {
18
+ if (typeof el.requestUpdate === "function") {
19
+ el.requestUpdate();
20
+ }
21
+ });
22
+ }
23
+ if (isClient) {
24
+ const documentElementObserver = new MutationObserver(update);
25
+ documentDirection = document.documentElement.dir || "ltr";
26
+ documentLanguage = document.documentElement.lang || navigator.language;
27
+ documentElementObserver.observe(document.documentElement, {
28
+ attributeFilter: ["dir", "lang"],
29
+ attributes: true
30
+ });
31
+ }
32
+ function registerTranslation(...translation) {
33
+ translation.forEach((t) => {
34
+ const code = t.$code.toLowerCase();
35
+ if (translations.has(code)) {
36
+ translations.set(code, __spreadValues(__spreadValues({}, translations.get(code)), t));
37
+ } else {
38
+ translations.set(code, t);
39
+ }
40
+ if (!fallback) {
41
+ fallback = t;
42
+ }
43
+ });
44
+ update();
45
+ }
46
+ var LocalizeController = class {
47
+ constructor(host) {
48
+ this.host = host;
49
+ this.host.addController(this);
50
+ }
51
+ hostConnected() {
52
+ connectedElements.add(this.host);
53
+ }
54
+ hostDisconnected() {
55
+ connectedElements.delete(this.host);
56
+ }
57
+ /**
58
+ * Gets the host element's directionality as determined by the `dir` attribute. The return value is transformed to
59
+ * lowercase.
60
+ */
61
+ dir() {
62
+ return `${this.host.dir || documentDirection}`.toLowerCase();
63
+ }
64
+ /**
65
+ * Gets the host element's language as determined by the `lang` attribute. The return value is transformed to
66
+ * lowercase.
67
+ */
68
+ lang() {
69
+ return `${this.host.lang || documentLanguage}`.toLowerCase();
70
+ }
71
+ // eslint-disable-next-line class-methods-use-this
72
+ getTranslationData(lang) {
73
+ var _a, _b;
74
+ const locale = new Intl.Locale(lang.replace(/_/g, "-"));
75
+ const language = locale == null ? void 0 : locale.language.toLowerCase();
76
+ const region = (_b = (_a = locale == null ? void 0 : locale.region) == null ? void 0 : _a.toLowerCase()) != null ? _b : "";
77
+ const primary = translations.get(`${language}-${region}`);
78
+ const secondary = translations.get(language);
79
+ return {
80
+ language,
81
+ locale,
82
+ primary,
83
+ region,
84
+ secondary
85
+ };
86
+ }
87
+ /** Determines if the specified term exists, optionally checking the fallback translation. */
88
+ exists(key, options) {
89
+ var _a;
90
+ const { primary, secondary } = this.getTranslationData((_a = options.lang) != null ? _a : this.lang());
91
+ const finalOptions = __spreadValues({
92
+ ignoreFallback: false
93
+ }, options);
94
+ if (primary && primary[key] || secondary && secondary[key] || finalOptions.includeFallback && fallback && fallback[key]) {
95
+ return true;
96
+ }
97
+ return false;
98
+ }
99
+ /** Outputs a translated term. */
100
+ term(key, ...args) {
101
+ const { primary, secondary } = this.getTranslationData(this.lang());
102
+ let term;
103
+ if (primary && primary[key]) {
104
+ term = primary[key];
105
+ } else if (secondary && secondary[key]) {
106
+ term = secondary[key];
107
+ } else if (fallback && fallback[key]) {
108
+ term = fallback[key];
109
+ } else {
110
+ console.error(`No translation found for: ${String(key)}`);
111
+ return String(key);
112
+ }
113
+ if (typeof term === "function") {
114
+ return term(...args);
115
+ }
116
+ return term;
117
+ }
118
+ /** Outputs a localized date in the specified format. */
119
+ date(dateToFormat, options) {
120
+ const date = new Date(dateToFormat);
121
+ return new Intl.DateTimeFormat(this.lang(), options).format(date);
122
+ }
123
+ /** Outputs a localized number in the specified format. */
124
+ number(numberToFormat, options) {
125
+ const num = Number(numberToFormat);
126
+ return isNaN(num) ? "" : new Intl.NumberFormat(this.lang(), options).format(num);
127
+ }
128
+ /** Outputs a localized time in relative format. */
129
+ relativeTime(value, unit, options) {
130
+ return new Intl.RelativeTimeFormat(this.lang(), options).format(value, unit);
131
+ }
132
+ };
133
+
134
+ export {
135
+ update,
136
+ registerTranslation,
137
+ LocalizeController
138
+ };
139
+ //# sourceMappingURL=chunk.PWUNMARH.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/utilities/localize/core.ts"],
4
+ "sourcesContent": ["/**\n * This file was forked from the original source at https://github.com/shoelace-style/localize\n * Copyright (c) 2021-present the original author or authors. All rights reserved.\n * Licensed under the MIT License. See LICENSE in the project root for license information.\n * Modifications have been made to adapt the code for use in this project.\n * Please refer to the original source for the initial implementation and any additional context.\n */\nimport type { LitElement, ReactiveController, ReactiveControllerHost } from 'lit';\nimport type {\n DefaultTranslation,\n ExistsOptions,\n FunctionParams,\n Translation,\n} from './types.js';\n\nconst connectedElements = new Set<HTMLElement>();\nconst translations: Map<string, Translation> = new Map();\n\nlet fallback: Translation;\n\n// TODO: We need some way for users to be able to set these on the server.\nlet documentDirection = 'ltr';\n\n// Fallback for server.\nlet documentLanguage = 'en';\n\nconst isClient = (typeof MutationObserver !== 'undefined' && typeof document !== 'undefined' && typeof document.documentElement !== 'undefined');\n\n/** Updates all localized elements that are currently connected */\nexport function update() {\n if (isClient) {\n documentDirection = document.documentElement.dir || 'ltr';\n documentLanguage = document.documentElement.lang || navigator.language;\n }\n\n [...connectedElements.keys()].forEach((el: LitElement) => {\n if (typeof el.requestUpdate === 'function') {\n el.requestUpdate();\n }\n });\n}\n\nif (isClient) {\n const documentElementObserver = new MutationObserver(update);\n documentDirection = document.documentElement.dir || 'ltr';\n documentLanguage = document.documentElement.lang || navigator.language;\n\n // Watch for changes on <html lang>\n documentElementObserver.observe(document.documentElement, {\n attributeFilter: ['dir', 'lang'],\n attributes: true,\n });\n}\n\n/** Registers one or more translations */\nexport function registerTranslation(...translation: Translation[]) {\n translation.forEach(t => {\n const code = t.$code.toLowerCase();\n\n if (translations.has(code)) {\n // Merge translations that share the same language code\n translations.set(code, { ...translations.get(code), ...t });\n } else {\n translations.set(code, t);\n }\n\n // The first translation that's registered is the fallback\n if (!fallback) {\n fallback = t;\n }\n });\n\n update();\n}\n\n/**\n * Localize Reactive Controller for components built with Lit\n *\n * To use this controller, import the class and instantiate it in a custom element constructor:\n *\n * private localize = new LocalizeController(this);\n *\n * This will add the element to the set and make it respond to changes to <html dir|lang> automatically. To make it\n * respond to changes to its own dir|lang properties, make it a property:\n *\n * @property() dir: string;\n * @property() lang: string;\n *\n * To use a translation method, call it like this:\n *\n * ${this.localize.term('term_key_here')}\n * ${this.localize.date('2021-12-03')}\n * ${this.localize.number(1000000)}\n */\nexport class LocalizeController<UserTranslation extends Translation = DefaultTranslation> implements ReactiveController {\n host: ReactiveControllerHost & HTMLElement;\n\n constructor(host: ReactiveControllerHost & HTMLElement) {\n this.host = host;\n this.host.addController(this);\n }\n\n hostConnected() {\n connectedElements.add(this.host);\n }\n\n hostDisconnected() {\n connectedElements.delete(this.host);\n }\n\n /**\n * Gets the host element's directionality as determined by the `dir` attribute. The return value is transformed to\n * lowercase.\n */\n dir() {\n return `${this.host.dir || documentDirection}`.toLowerCase();\n }\n\n /**\n * Gets the host element's language as determined by the `lang` attribute. The return value is transformed to\n * lowercase.\n */\n lang() {\n return `${this.host.lang || documentLanguage}`.toLowerCase();\n }\n\n // eslint-disable-next-line class-methods-use-this\n private getTranslationData(lang: string) {\n // Convert \"en_US\" to \"en-US\". Note that both underscores and dashes are allowed per spec, but underscores result in\n // a RangeError by the call to `new Intl.Locale()`. See: https://unicode.org/reports/tr35/#unicode-locale-identifier\n const locale = new Intl.Locale(lang.replace(/_/g, '-'));\n const language = locale?.language.toLowerCase();\n const region = locale?.region?.toLowerCase() ?? '';\n const primary = <UserTranslation>translations.get(`${language}-${region}`);\n const secondary = <UserTranslation>translations.get(language);\n\n return {\n language,\n locale,\n primary,\n region,\n secondary,\n };\n }\n\n /** Determines if the specified term exists, optionally checking the fallback translation. */\n exists<K extends keyof UserTranslation>(key: K, options: Partial<ExistsOptions>): boolean {\n const { primary, secondary } = this.getTranslationData(options.lang ?? this.lang());\n\n const finalOptions = {\n ignoreFallback: false,\n ...options,\n };\n\n if (\n (primary && primary[key])\n || (secondary && secondary[key])\n || (finalOptions.includeFallback && fallback && fallback[key as keyof Translation])\n ) {\n return true;\n }\n\n return false;\n }\n\n /** Outputs a translated term. */\n term<K extends keyof UserTranslation>(key: K, ...args: FunctionParams<UserTranslation[K]>): string {\n const { primary, secondary } = this.getTranslationData(this.lang());\n let term: unknown;\n\n // Look for a matching term using regionCode, code, then the fallback\n if (primary && primary[key]) {\n term = primary[key];\n } else if (secondary && secondary[key]) {\n term = secondary[key];\n } else if (fallback && fallback[key as keyof Translation]) {\n term = fallback[key as keyof Translation];\n } else {\n // eslint-disable-next-line no-console\n console.error(`No translation found for: ${String(key)}`);\n return String(key);\n }\n\n if (typeof term === 'function') {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-call\n return term(...args) as string;\n }\n\n return term as string;\n }\n\n /** Outputs a localized date in the specified format. */\n date(dateToFormat: Date | string, options?: Intl.DateTimeFormatOptions): string {\n const date = new Date(dateToFormat);\n return new Intl.DateTimeFormat(this.lang(), options).format(date);\n }\n\n /** Outputs a localized number in the specified format. */\n number(numberToFormat: number | string, options?: Intl.NumberFormatOptions): string {\n const num = Number(numberToFormat);\n // eslint-disable-next-line no-restricted-globals\n return isNaN(num) ? '' : new Intl.NumberFormat(this.lang(), options).format(num);\n }\n\n /** Outputs a localized time in relative format. */\n relativeTime(value: number, unit: Intl.RelativeTimeFormatUnit, options?: Intl.RelativeTimeFormatOptions): string {\n return new Intl.RelativeTimeFormat(this.lang(), options).format(value, unit);\n }\n}\n"],
5
+ "mappings": "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",
6
+ "names": []
7
+ }
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk.2NT3B5WJ.js";
10
10
  import {
11
11
  SynergyElement
12
- } from "./chunk.6XRGRS74.js";
12
+ } from "./chunk.6LKHXBJA.js";
13
13
  import {
14
14
  __decorateClass
15
15
  } from "./chunk.MO2GTRUM.js";
@@ -40,4 +40,4 @@ __decorateClass([
40
40
  export {
41
41
  SynDivider
42
42
  };
43
- //# sourceMappingURL=chunk.UDW4U2CW.js.map
43
+ //# sourceMappingURL=chunk.PZ7VKPB3.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynSpinner
3
- } from "./chunk.45DKGBTQ.js";
3
+ } from "./chunk.7SI6WX2S.js";
4
4
  import {
5
5
  FormControlController,
6
6
  validValidityState
@@ -17,22 +17,22 @@ import {
17
17
  } from "./chunk.CHFWLQN5.js";
18
18
  import {
19
19
  SynIcon
20
- } from "./chunk.YZPI6FWX.js";
21
- import {
22
- watch
23
- } from "./chunk.SMIMHADA.js";
20
+ } from "./chunk.RZQ4JGZR.js";
24
21
  import {
25
22
  LocalizeController
26
- } from "./chunk.QLETXF4A.js";
23
+ } from "./chunk.F5DLRUHG.js";
27
24
  import {
28
25
  enableDefaultSettings
29
26
  } from "./chunk.WCFCAC7D.js";
27
+ import {
28
+ watch
29
+ } from "./chunk.SMIMHADA.js";
30
30
  import {
31
31
  component_styles_default
32
32
  } from "./chunk.2NT3B5WJ.js";
33
33
  import {
34
34
  SynergyElement
35
- } from "./chunk.6XRGRS74.js";
35
+ } from "./chunk.6LKHXBJA.js";
36
36
  import {
37
37
  __decorateClass
38
38
  } from "./chunk.MO2GTRUM.js";
@@ -295,4 +295,4 @@ SynButton = __decorateClass([
295
295
  export {
296
296
  SynButton
297
297
  };
298
- //# sourceMappingURL=chunk.RI63MYO4.js.map
298
+ //# sourceMappingURL=chunk.Q2HMXEMT.js.map
@@ -6,19 +6,19 @@ import {
6
6
  } from "./chunk.JDYQ7EFG.js";
7
7
  import {
8
8
  SynIconButton
9
- } from "./chunk.EACJ7B2A.js";
9
+ } from "./chunk.PJLYLCFA.js";
10
+ import {
11
+ LocalizeController
12
+ } from "./chunk.F5DLRUHG.js";
10
13
  import {
11
14
  watch
12
15
  } from "./chunk.SMIMHADA.js";
13
- import {
14
- LocalizeController
15
- } from "./chunk.QLETXF4A.js";
16
16
  import {
17
17
  component_styles_default
18
18
  } from "./chunk.2NT3B5WJ.js";
19
19
  import {
20
20
  SynergyElement
21
- } from "./chunk.6XRGRS74.js";
21
+ } from "./chunk.6LKHXBJA.js";
22
22
  import {
23
23
  __decorateClass
24
24
  } from "./chunk.MO2GTRUM.js";
@@ -118,4 +118,4 @@ __decorateClass([
118
118
  export {
119
119
  SynTab
120
120
  };
121
- //# sourceMappingURL=chunk.FZZHK37A.js.map
121
+ //# sourceMappingURL=chunk.Q2LKBDUY.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynSelect
3
- } from "./chunk.OTWZ3VEV.js";
3
+ } from "./chunk.ZFZ7GL6L.js";
4
4
 
5
5
  // src/components/select/select.ts
6
6
  var select_default = SynSelect;
@@ -9,4 +9,4 @@ SynSelect.define("syn-select");
9
9
  export {
10
10
  select_default
11
11
  };
12
- //# sourceMappingURL=chunk.GMXNY7CG.js.map
12
+ //# sourceMappingURL=chunk.Q4L52SC3.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynRadioGroup
3
- } from "./chunk.KP2574GH.js";
3
+ } from "./chunk.AGBLYBF2.js";
4
4
 
5
5
  // src/components/radio-group/radio-group.ts
6
6
  var radio_group_default = SynRadioGroup;
@@ -9,4 +9,4 @@ SynRadioGroup.define("syn-radio-group");
9
9
  export {
10
10
  radio_group_default
11
11
  };
12
- //# sourceMappingURL=chunk.NLE4EUJ3.js.map
12
+ //# sourceMappingURL=chunk.QMSKWFV7.js.map
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk.XRSLCQH3.js";
8
8
  import {
9
9
  SynPopup
10
- } from "./chunk.IGXG356T.js";
10
+ } from "./chunk.CH6OJFIQ.js";
11
11
  import {
12
12
  waitForEvent
13
13
  } from "./chunk.LQDIH4Z5.js";
@@ -19,18 +19,18 @@ import {
19
19
  getAnimation,
20
20
  setDefaultAnimation
21
21
  } from "./chunk.RJUVM6NO.js";
22
+ import {
23
+ LocalizeController
24
+ } from "./chunk.F5DLRUHG.js";
22
25
  import {
23
26
  watch
24
27
  } from "./chunk.SMIMHADA.js";
25
- import {
26
- LocalizeController
27
- } from "./chunk.QLETXF4A.js";
28
28
  import {
29
29
  component_styles_default
30
30
  } from "./chunk.2NT3B5WJ.js";
31
31
  import {
32
32
  SynergyElement
33
- } from "./chunk.6XRGRS74.js";
33
+ } from "./chunk.6LKHXBJA.js";
34
34
  import {
35
35
  __decorateClass
36
36
  } from "./chunk.MO2GTRUM.js";
@@ -377,4 +377,4 @@ setDefaultAnimation("dropdown.hide", {
377
377
  export {
378
378
  SynDropdown
379
379
  };
380
- //# sourceMappingURL=chunk.MQ7ISR4Y.js.map
380
+ //# sourceMappingURL=chunk.QSLO3JHB.js.map
@@ -1,24 +1,24 @@
1
1
  import {
2
2
  icon_default
3
- } from "./chunk.WJS3JOXC.js";
3
+ } from "./chunk.WUAZEDTL.js";
4
4
  import {
5
5
  header_styles_default
6
6
  } from "./chunk.MPJ2QALZ.js";
7
7
  import {
8
8
  HasSlotController
9
9
  } from "./chunk.CHFWLQN5.js";
10
+ import {
11
+ LocalizeController
12
+ } from "./chunk.F5DLRUHG.js";
10
13
  import {
11
14
  watch
12
15
  } from "./chunk.SMIMHADA.js";
13
- import {
14
- LocalizeController
15
- } from "./chunk.QLETXF4A.js";
16
16
  import {
17
17
  component_styles_default
18
18
  } from "./chunk.2NT3B5WJ.js";
19
19
  import {
20
20
  SynergyElement
21
- } from "./chunk.6XRGRS74.js";
21
+ } from "./chunk.6LKHXBJA.js";
22
22
  import {
23
23
  __decorateClass
24
24
  } from "./chunk.MO2GTRUM.js";
@@ -235,4 +235,4 @@ __decorateClass([
235
235
  export {
236
236
  SynHeader
237
237
  };
238
- //# sourceMappingURL=chunk.7WY4YRBC.js.map
238
+ //# sourceMappingURL=chunk.QVS6KRQN.js.map
@@ -6,29 +6,29 @@ import {
6
6
  } from "./chunk.CAEBFUZN.js";
7
7
  import {
8
8
  SynPopup
9
- } from "./chunk.IGXG356T.js";
9
+ } from "./chunk.CH6OJFIQ.js";
10
10
  import {
11
11
  SynSpinner
12
- } from "./chunk.45DKGBTQ.js";
12
+ } from "./chunk.7SI6WX2S.js";
13
13
  import {
14
14
  HasSlotController,
15
15
  getTextContent
16
16
  } from "./chunk.CHFWLQN5.js";
17
17
  import {
18
18
  SynIcon
19
- } from "./chunk.YZPI6FWX.js";
19
+ } from "./chunk.RZQ4JGZR.js";
20
+ import {
21
+ LocalizeController
22
+ } from "./chunk.F5DLRUHG.js";
20
23
  import {
21
24
  watch
22
25
  } from "./chunk.SMIMHADA.js";
23
- import {
24
- LocalizeController
25
- } from "./chunk.QLETXF4A.js";
26
26
  import {
27
27
  component_styles_default
28
28
  } from "./chunk.2NT3B5WJ.js";
29
29
  import {
30
30
  SynergyElement
31
- } from "./chunk.6XRGRS74.js";
31
+ } from "./chunk.6LKHXBJA.js";
32
32
  import {
33
33
  __decorateClass,
34
34
  __privateAdd,
@@ -238,4 +238,4 @@ SynMenuItem = __decorateClass([
238
238
  export {
239
239
  SynMenuItem
240
240
  };
241
- //# sourceMappingURL=chunk.DEGAJBJO.js.map
241
+ //# sourceMappingURL=chunk.R3HJAGVT.js.map