@trintel/zooy 1.0.1-beta.0 → 1.0.1

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 (284) hide show
  1. package/README.md +284 -339
  2. package/dist/chunks/{16-ChlL35BX.js → 16-BXti8Tu-.js} +6 -6
  3. package/dist/chunks/16-CMCRqVYz.js +1 -0
  4. package/dist/chunks/{20-CZPIOG-A.js → 20-CQLnFcRb.js} +9 -9
  5. package/dist/chunks/20-Df0dXwyx.js +1 -0
  6. package/dist/chunks/button-B1jzfT-Z.js +272 -0
  7. package/dist/chunks/button-C-oX8EmF.js +66 -0
  8. package/dist/chunks/button-skeleton-CK3BHdja.js +21 -0
  9. package/dist/chunks/{button-skeleton-COf2kCDL.js → button-skeleton-DoCp6sBb.js} +10 -9
  10. package/dist/chunks/checkbox-CgFjYxQ_.js +201 -0
  11. package/dist/chunks/checkbox-t3G-H1NN.js +40 -0
  12. package/dist/chunks/{class-map-BfNAkUL_.js → class-map-D6tjF27Y.js} +2 -2
  13. package/dist/chunks/{class-map-DEHG4tmw.js → class-map-FWQBIzSx.js} +1 -1
  14. package/dist/chunks/collection-helpers-Bk68Vaau.js +7 -0
  15. package/dist/chunks/collection-helpers-afBvMQaC.js +1 -0
  16. package/dist/chunks/content-switcher-item-CedjjtvP.js +351 -0
  17. package/dist/chunks/content-switcher-item-c4WBWz31.js +27 -0
  18. package/dist/chunks/defs-C88lSWuJ.js +1 -0
  19. package/dist/chunks/defs-Do0OvCKd.js +1165 -0
  20. package/dist/chunks/dropdown-item-C0SHr4st.js +69 -0
  21. package/dist/chunks/dropdown-item-Dh5IEXDr.js +621 -0
  22. package/dist/chunks/{focus-rQSNiwy7.js → focus-B3iymVyL.js} +1 -1
  23. package/dist/chunks/{focus-B9JYe97T.js → focus-WnKGH_xB.js} +1 -1
  24. package/dist/chunks/{icon-loader-Dk_AU26w.js → icon-loader-CJxyg-lp.js} +1 -1
  25. package/dist/chunks/{icon-loader-o_JYDmJX.js → icon-loader-ChKeNR4s.js} +1 -1
  26. package/dist/chunks/{icon-loader-utils-BEOGXn0q.js → icon-loader-utils-BwViqIXz.js} +23 -23
  27. package/dist/chunks/icon-loader-utils-DK8DViXt.js +5 -0
  28. package/dist/chunks/if-defined-DYWhlnlE.js +5 -0
  29. package/dist/chunks/{if-defined-C0yJsxi2.js → if-defined-eJcDYClo.js} +1 -1
  30. package/dist/chunks/{if-non-empty-DTGflHtA.js → if-non-empty-COTeEFkK.js} +1 -1
  31. package/dist/chunks/if-non-empty-CxMysAQW.js +1 -0
  32. package/dist/chunks/index-0AElqkkj.js +12 -0
  33. package/dist/chunks/{index-B3mXrMt1.js → index-4WNeLsiw.js} +4 -3
  34. package/dist/chunks/{index-BXczHDk-.js → index-4XJJobHw.js} +12 -11
  35. package/dist/chunks/index-7cXLLw89.js +881 -0
  36. package/dist/chunks/index-9fmHblh5.js +121 -0
  37. package/dist/chunks/{index-BwIoRMDI.js → index-B0nToMRj.js} +7 -6
  38. package/dist/chunks/index-B4SxU_Hu.js +87 -0
  39. package/dist/chunks/index-B5DpS-cb.js +2 -0
  40. package/dist/chunks/{index-CzTjJ8lP.js → index-B5GB0rQW.js} +47 -37
  41. package/dist/chunks/index-B8Ze9ISK.js +17 -0
  42. package/dist/chunks/index-BAAA4wkE.js +45 -0
  43. package/dist/chunks/index-BBWp83R-.js +160 -0
  44. package/dist/chunks/index-BBap1uCI.js +1 -0
  45. package/dist/chunks/index-BGGDxbLL.js +368 -0
  46. package/dist/chunks/index-BMquNDkd.js +381 -0
  47. package/dist/chunks/index-BQnyeVHX.js +1 -0
  48. package/dist/chunks/index-BRnzFxjk.js +25 -0
  49. package/dist/chunks/index-BbJQIwkY.js +452 -0
  50. package/dist/chunks/{index-hLI0Bnyb.js → index-Bb_1S0pr.js} +7 -6
  51. package/dist/chunks/index-BeMnerDj.js +111 -0
  52. package/dist/chunks/index-Bff6B9vY.js +254 -0
  53. package/dist/chunks/index-Bi9WliCA.js +683 -0
  54. package/dist/chunks/{index-D0xRAPD5.js → index-Bls8zdHV.js} +6 -5
  55. package/dist/chunks/index-Bo2QmpPO.js +1 -0
  56. package/dist/chunks/index-BseD7Jzt.js +75 -0
  57. package/dist/chunks/index-Bt7v-zqV.js +77 -0
  58. package/dist/chunks/index-Bunat0DP.js +337 -0
  59. package/dist/chunks/index-BvdNKhJw.js +19 -0
  60. package/dist/chunks/index-BwFE4R87.js +30 -0
  61. package/dist/chunks/index-BwRxBdeg.js +158 -0
  62. package/dist/chunks/index-Bymsj9gH.js +1 -0
  63. package/dist/chunks/index-C-pfDP7B.js +1 -0
  64. package/dist/chunks/index-C2oV5vU3.js +4 -0
  65. package/dist/chunks/index-C3n83pM3.js +103 -0
  66. package/dist/chunks/index-C572_UKV.js +22 -0
  67. package/dist/chunks/index-C6bOvXSf.js +129 -0
  68. package/dist/chunks/{index-CByffhPq.js → index-CBICHiFD.js} +147 -134
  69. package/dist/chunks/index-CEy6bu7P.js +79 -0
  70. package/dist/chunks/index-CFqKkC5Z.js +36 -0
  71. package/dist/chunks/index-CIZ3Gnmm.js +8 -0
  72. package/dist/chunks/index-CIiIAqrQ.js +414 -0
  73. package/dist/chunks/index-CJdEJ8pY.js +15 -0
  74. package/dist/chunks/index-CKYRBtLC.js +79 -0
  75. package/dist/chunks/index-CQl4NaPS.js +65 -0
  76. package/dist/chunks/index-CR3DrmQi.js +235 -0
  77. package/dist/chunks/index-CTsGb3mD.js +364 -0
  78. package/dist/chunks/{index-rwBsdvh6.js → index-CV7TVQ4T.js} +9 -8
  79. package/dist/chunks/index-CWlg_Hu2.js +150 -0
  80. package/dist/chunks/{index-Bwix1iwB.js → index-CYIcfuAW.js} +6 -5
  81. package/dist/chunks/{index-WNXgzThF.js → index-CkxGsCJy.js} +181 -181
  82. package/dist/chunks/index-ClE0uX_c.js +27 -0
  83. package/dist/chunks/index-Cnsy7Qk3.js +511 -0
  84. package/dist/chunks/index-CoAT1iC6.js +12 -0
  85. package/dist/chunks/index-Cp3P3KaW.js +45 -0
  86. package/dist/chunks/index-CqQZpHti.js +3 -0
  87. package/dist/chunks/index-CsjJntyD.js +23 -0
  88. package/dist/chunks/{index-BIaF1Dfx.js → index-Ctna95NT.js} +5 -4
  89. package/dist/chunks/index-Cu1u3Mjn.js +150 -0
  90. package/dist/chunks/index-Cv6qE9qP.js +22 -0
  91. package/dist/chunks/index-Cwb1pbm9.js +252 -0
  92. package/dist/chunks/{index-BSgHSOVT.js → index-CzAwJhyQ.js} +4 -3
  93. package/dist/chunks/index-D8LE8G2j.js +81 -0
  94. package/dist/chunks/{index-C_K070Kn.js → index-D9sRIKMQ.js} +9 -8
  95. package/dist/chunks/index-DBsASlZI.js +15 -0
  96. package/dist/chunks/{index-DurPWBYc.js → index-DGw1TVFB.js} +3 -2
  97. package/dist/chunks/index-DIsXKJDH.js +4 -0
  98. package/dist/chunks/{index-CT43RMOu.js → index-DNWjc2SJ.js} +3 -2
  99. package/dist/chunks/index-DSOPjl5x.js +563 -0
  100. package/dist/chunks/index-DUtoSCTU.js +455 -0
  101. package/dist/chunks/index-DWjrCygZ.js +49 -0
  102. package/dist/chunks/index-DYvD9xjl.js +4 -0
  103. package/dist/chunks/index-DZabSr3s.js +36 -0
  104. package/dist/chunks/index-DbAeG1nY.js +1 -0
  105. package/dist/chunks/index-Dc51G1mo.js +26 -0
  106. package/dist/chunks/index-Dd9iSSXa.js +260 -0
  107. package/dist/chunks/{index-C8LyfVmf.js → index-DfFx1Jz3.js} +6 -5
  108. package/dist/chunks/index-Dh4LYLg5.js +1604 -0
  109. package/dist/chunks/index-Dk3tlz8Q.js +15 -0
  110. package/dist/chunks/index-Do1DszoZ.js +1 -0
  111. package/dist/chunks/index-DrDKdYFJ.js +58 -0
  112. package/dist/chunks/index-DyO3Wdy_.js +37 -0
  113. package/dist/chunks/index-DyyLrVDY.js +188 -0
  114. package/dist/chunks/{index-45EApaFs.js → index-GDVDUQtg.js} +14 -13
  115. package/dist/chunks/index-GbWz6fuF.js +243 -0
  116. package/dist/chunks/index-JWULDURW.js +89 -0
  117. package/dist/chunks/index-MgWriQfr.js +35 -0
  118. package/dist/chunks/index-OgL1A9Rm.js +42 -0
  119. package/dist/chunks/{index-DdNZTQw1.js → index-QzojJs5M.js} +3 -2
  120. package/dist/chunks/index-TJL02uup.js +291 -0
  121. package/dist/chunks/index-Z4ar01y-.js +259 -0
  122. package/dist/chunks/{index-BSh7UYcP.js → index-_xRytR0j.js} +3 -3
  123. package/dist/chunks/index-cuMoh7qn.js +1 -0
  124. package/dist/chunks/index-du3RQU31.js +62 -0
  125. package/dist/chunks/{index-DFA4_spk.js → index-hH_m653R.js} +9 -8
  126. package/dist/chunks/index-hn76Yo-L.js +1 -0
  127. package/dist/chunks/index-i4heE-wx.js +71 -0
  128. package/dist/chunks/index-i9jyrFc9.js +19 -0
  129. package/dist/chunks/index-lFqOe0IJ.js +46 -0
  130. package/dist/chunks/index-pS6-humH.js +74 -0
  131. package/dist/chunks/index-pc36PiDY.js +57 -0
  132. package/dist/chunks/index-qgl9W8eF.js +52 -0
  133. package/dist/chunks/{index-BUxB7aWd.js → index-uwN33H1P.js} +9 -8
  134. package/dist/chunks/index-uxZPrL2m.js +406 -0
  135. package/dist/chunks/index-yzFU-E6F.js +22 -0
  136. package/dist/chunks/{loading-icon-DhJR6LyV.js → loading-icon-CPvmJvpZ.js} +2 -2
  137. package/dist/chunks/loading-icon-DdwpAk8-.js +24 -0
  138. package/dist/chunks/main-BGOPab-5.js +4041 -0
  139. package/dist/chunks/main-Bx21zlkN.js +65 -0
  140. package/dist/chunks/{property-pT1z5CCa.js → property-BkjBVRuu.js} +1 -1
  141. package/dist/chunks/property-DAFv3PCb.js +5 -0
  142. package/dist/chunks/register-BCEOkbXG.js +1583 -0
  143. package/dist/chunks/{register-BK21_Wkj.js → register-Bkr1UKav.js} +1 -1
  144. package/dist/chunks/{register-BMNs2hNG.js → register-DTXmg-gw.js} +1 -1
  145. package/dist/chunks/register-D_CXtGy1.js +1 -0
  146. package/dist/chunks/search-DDFN8-Mz.js +30 -0
  147. package/dist/chunks/search-npG8ywjx.js +240 -0
  148. package/dist/chunks/select-CFy3MvH6.js +76 -0
  149. package/dist/chunks/select-DkCpQORs.js +357 -0
  150. package/dist/chunks/settings-Bgpv8zuU.js +62 -0
  151. package/dist/chunks/settings-jvP7vP60.js +66 -0
  152. package/dist/chunks/{state-FnSmMH94.js → state-BdgD82MZ.js} +1 -1
  153. package/dist/chunks/{state-Bpmgn27B.js → state-uF7CZaP5.js} +1 -1
  154. package/dist/chunks/text-input-BUdM-ojg.js +68 -0
  155. package/dist/chunks/text-input-DVdkm07X.js +372 -0
  156. package/dist/chunks/tooltip-content-BXcBmMsV.js +3 -0
  157. package/dist/chunks/tooltip-content-CWRE_NqH.js +135 -0
  158. package/dist/chunks/{unsafe-html-D49sIpJ5.js → unsafe-html-Bg0eM3hS.js} +5 -5
  159. package/dist/chunks/{unsafe-html-C_MKAcuC.js → unsafe-html-CpAqmPyx.js} +1 -1
  160. package/dist/zooy.cjs.js +1 -1
  161. package/dist/zooy.es.js +20 -2
  162. package/package.json +3 -4
  163. package/src/sass/carbon.scss +117 -0
  164. package/src/sass/main.scss +1 -1
  165. package/src/sass/panels.scss +268 -359
  166. package/src/sass/split.scss +1 -0
  167. package/dist/chunks/16-41wFkj7S.js +0 -1
  168. package/dist/chunks/20-gmyNFvDv.js +0 -1
  169. package/dist/chunks/button-DdJepOoE.js +0 -271
  170. package/dist/chunks/button-skeleton-rf3WDPTZ.js +0 -21
  171. package/dist/chunks/button-zHEPxpXa.js +0 -66
  172. package/dist/chunks/checkbox-B5mHvx0J.js +0 -200
  173. package/dist/chunks/checkbox-BRPCg-DN.js +0 -40
  174. package/dist/chunks/collection-helpers-BwUB2CEz.js +0 -8
  175. package/dist/chunks/collection-helpers-CYLIiyii.js +0 -1
  176. package/dist/chunks/content-switcher-item-DeGjVRQY.js +0 -350
  177. package/dist/chunks/content-switcher-item-DucclV1b.js +0 -27
  178. package/dist/chunks/defs-DMmigODC.js +0 -1077
  179. package/dist/chunks/defs-DPD20sPK.js +0 -1
  180. package/dist/chunks/dropdown-item-BgLQ1VLo.js +0 -69
  181. package/dist/chunks/dropdown-item-DPdwOION.js +0 -620
  182. package/dist/chunks/icon-loader-utils-BBjK16O-.js +0 -5
  183. package/dist/chunks/if-defined-BdZRLDJ6.js +0 -5
  184. package/dist/chunks/if-non-empty-CEHK-hqx.js +0 -1
  185. package/dist/chunks/index-16wphaSo.js +0 -4
  186. package/dist/chunks/index-27oFQaOS.js +0 -37
  187. package/dist/chunks/index-5jmZyISW.js +0 -1
  188. package/dist/chunks/index-B1vQ44Hl.js +0 -363
  189. package/dist/chunks/index-B3CDjjXh.js +0 -214
  190. package/dist/chunks/index-B7mGUQhz.js +0 -79
  191. package/dist/chunks/index-BBNaYDog.js +0 -22
  192. package/dist/chunks/index-BBt9OmO5.js +0 -12
  193. package/dist/chunks/index-BJAuRs3y.js +0 -75
  194. package/dist/chunks/index-BJKftWYn.js +0 -89
  195. package/dist/chunks/index-BLjNrhkN.js +0 -4
  196. package/dist/chunks/index-BOTu9u-3.js +0 -86
  197. package/dist/chunks/index-BPVpH8ll.js +0 -160
  198. package/dist/chunks/index-BRuvyoCz.js +0 -15
  199. package/dist/chunks/index-BXIxcS00.js +0 -22
  200. package/dist/chunks/index-BaVyBv2V.js +0 -25
  201. package/dist/chunks/index-BgbqX0uv.js +0 -234
  202. package/dist/chunks/index-BjQlt8g2.js +0 -451
  203. package/dist/chunks/index-BoNLj7PW.js +0 -44
  204. package/dist/chunks/index-BxVW3p3I.js +0 -258
  205. package/dist/chunks/index-ByKyGGzb.js +0 -3
  206. package/dist/chunks/index-ByTSSU1x.js +0 -1
  207. package/dist/chunks/index-CBbsFlsv.js +0 -290
  208. package/dist/chunks/index-CIbRjtWm.js +0 -32
  209. package/dist/chunks/index-CIzeMGQv.js +0 -81
  210. package/dist/chunks/index-CLGxSjLW.js +0 -62
  211. package/dist/chunks/index-CMF5Cawn.js +0 -70
  212. package/dist/chunks/index-CO-A2KY9.js +0 -562
  213. package/dist/chunks/index-CONgwvp0.js +0 -12
  214. package/dist/chunks/index-CUgiXqyk.js +0 -4
  215. package/dist/chunks/index-C_ttE2g9.js +0 -16
  216. package/dist/chunks/index-CcgnA1uu.js +0 -29
  217. package/dist/chunks/index-Cd7aoWrX.js +0 -336
  218. package/dist/chunks/index-Ce-pMzBC.js +0 -19
  219. package/dist/chunks/index-CgYZ66P_.js +0 -187
  220. package/dist/chunks/index-ChcHMeAS.js +0 -35
  221. package/dist/chunks/index-Cixdzvwd.js +0 -682
  222. package/dist/chunks/index-Clq0Fl19.js +0 -15
  223. package/dist/chunks/index-CtxTJnIm.js +0 -58
  224. package/dist/chunks/index-Cv1hWa_y.js +0 -242
  225. package/dist/chunks/index-D25buhRm.js +0 -79
  226. package/dist/chunks/index-D4DqJG5_.js +0 -16
  227. package/dist/chunks/index-D5GGFPcS.js +0 -251
  228. package/dist/chunks/index-D5kiHJpX.js +0 -413
  229. package/dist/chunks/index-DEjRiv5B.js +0 -1
  230. package/dist/chunks/index-DFZsXFsx.js +0 -19
  231. package/dist/chunks/index-DGauWNwV.js +0 -156
  232. package/dist/chunks/index-DIR0jr3f.js +0 -127
  233. package/dist/chunks/index-DNeagy5a.js +0 -65
  234. package/dist/chunks/index-DO0fmDR9.js +0 -2
  235. package/dist/chunks/index-DSitHBEh.js +0 -36
  236. package/dist/chunks/index-DW7ST0tB.js +0 -1
  237. package/dist/chunks/index-DWfFgEXE.js +0 -110
  238. package/dist/chunks/index-DX6WAtmo.js +0 -874
  239. package/dist/chunks/index-DaPfSuLu.js +0 -393
  240. package/dist/chunks/index-DbKlVm7y.js +0 -74
  241. package/dist/chunks/index-Dgi-m1K-.js +0 -1
  242. package/dist/chunks/index-Dh4uigJs.js +0 -454
  243. package/dist/chunks/index-DnYNK1mz.js +0 -8
  244. package/dist/chunks/index-DnierBep.js +0 -510
  245. package/dist/chunks/index-DnpSGM23.js +0 -213
  246. package/dist/chunks/index-DntY4deR.js +0 -41
  247. package/dist/chunks/index-Dp4A8k6C.js +0 -103
  248. package/dist/chunks/index-Dphpk5r2.js +0 -1
  249. package/dist/chunks/index-DrBrgF-v.js +0 -49
  250. package/dist/chunks/index-Dr_cqQ-_.js +0 -77
  251. package/dist/chunks/index-Dt-nBtrQ.js +0 -26
  252. package/dist/chunks/index-DwTj7cFr.js +0 -57
  253. package/dist/chunks/index-DyZVAYLv.js +0 -52
  254. package/dist/chunks/index-Hh597Yu6.js +0 -121
  255. package/dist/chunks/index-LxkAuMAA.js +0 -1
  256. package/dist/chunks/index-OaQhvPR1.js +0 -46
  257. package/dist/chunks/index-UPr2EvBX.js +0 -149
  258. package/dist/chunks/index-WvrCPen2.js +0 -367
  259. package/dist/chunks/index-cTXIVcWI.js +0 -45
  260. package/dist/chunks/index-caLn8cu1.js +0 -1603
  261. package/dist/chunks/index-jBse-XgU.js +0 -35
  262. package/dist/chunks/index-oTjafsfN.js +0 -25
  263. package/dist/chunks/index-qNmuI3RB.js +0 -149
  264. package/dist/chunks/index-qiqzy9MI.js +0 -23
  265. package/dist/chunks/index-siqJUhKa.js +0 -1
  266. package/dist/chunks/index-w-G9CFId.js +0 -1
  267. package/dist/chunks/index-x6SeA7x7.js +0 -405
  268. package/dist/chunks/loading-icon-DJQIjg97.js +0 -23
  269. package/dist/chunks/main-DUusfqrI.js +0 -18
  270. package/dist/chunks/main-Dp7wHHgP.js +0 -2882
  271. package/dist/chunks/property-DCYiZTFF.js +0 -5
  272. package/dist/chunks/register-Cc9zkA5F.js +0 -1
  273. package/dist/chunks/register-JwwMwdRf.js +0 -1273
  274. package/dist/chunks/search-C3raqgOD.js +0 -30
  275. package/dist/chunks/search-CIhxkVjj.js +0 -239
  276. package/dist/chunks/select-item-4aISXm0r.js +0 -76
  277. package/dist/chunks/select-item-DjoxYopL.js +0 -356
  278. package/dist/chunks/settings-BPOpwVkr.js +0 -594
  279. package/dist/chunks/settings-CK2vhfPu.js +0 -78
  280. package/dist/chunks/text-input-BygzMjjc.js +0 -371
  281. package/dist/chunks/text-input-cjcnMXO-.js +0 -68
  282. package/dist/chunks/tooltip-content-BjdZJ_Ui.js +0 -134
  283. package/dist/chunks/tooltip-content-DHyDYyOH.js +0 -3
  284. package/src/sass/carbon-icons.scss +0 -46
@@ -0,0 +1,1583 @@
1
+ import { _ as ct, g as a, c as at, B as rt, o as lt, h as dt, p as pt, d as h, C as mt } from "./main-BGOPab-5.js";
2
+ var ut = /* @__PURE__ */ ct(function(e, n) {
3
+ for (var o = {}, s = 0; s < e.length; )
4
+ e[s] in n && (o[e[s]] = n[e[s]]), s += 1;
5
+ return o;
6
+ }), T = {}, L;
7
+ function vt() {
8
+ return L || (L = 1, (function(t) {
9
+ t.TABLE_SIZE = void 0, (function(n) {
10
+ n.XS = "xs", n.SM = "sm", n.MD = "md", n.LG = "lg", n.XL = "xl";
11
+ })(t.TABLE_SIZE || (t.TABLE_SIZE = {})), t.TABLE_SORT_DIRECTION = void 0, (function(n) {
12
+ n.NONE = "none", n.ASCENDING = "ascending", n.DESCENDING = "descending";
13
+ })(t.TABLE_SORT_DIRECTION || (t.TABLE_SORT_DIRECTION = {})), t.TABLE_SORT_CYCLE = void 0, (function(n) {
14
+ n.BI_STATES_FROM_ASCENDING = "bi-states-from-ascending", n.BI_STATES_FROM_DESCENDING = "bi-states-from-descending", n.TRI_STATES_FROM_ASCENDING = "tri-states-from-ascending", n.TRI_STATES_FROM_DESCENDING = "tri-states-from-descending";
15
+ })(t.TABLE_SORT_CYCLE || (t.TABLE_SORT_CYCLE = {}));
16
+ const e = {
17
+ [t.TABLE_SORT_CYCLE.BI_STATES_FROM_ASCENDING]: [
18
+ t.TABLE_SORT_DIRECTION.ASCENDING,
19
+ t.TABLE_SORT_DIRECTION.DESCENDING
20
+ ],
21
+ [t.TABLE_SORT_CYCLE.BI_STATES_FROM_DESCENDING]: [
22
+ t.TABLE_SORT_DIRECTION.DESCENDING,
23
+ t.TABLE_SORT_DIRECTION.ASCENDING
24
+ ],
25
+ [t.TABLE_SORT_CYCLE.TRI_STATES_FROM_ASCENDING]: [
26
+ t.TABLE_SORT_DIRECTION.NONE,
27
+ t.TABLE_SORT_DIRECTION.ASCENDING,
28
+ t.TABLE_SORT_DIRECTION.DESCENDING
29
+ ],
30
+ [t.TABLE_SORT_CYCLE.TRI_STATES_FROM_DESCENDING]: [
31
+ t.TABLE_SORT_DIRECTION.NONE,
32
+ t.TABLE_SORT_DIRECTION.DESCENDING,
33
+ t.TABLE_SORT_DIRECTION.ASCENDING
34
+ ]
35
+ };
36
+ t.TABLE_SORT_CYCLES = e;
37
+ })(T)), T;
38
+ }
39
+ var ht = vt();
40
+ const gt = () => import("./index-Dh4LYLg5.js"), G = () => import("./index-CTsGb3mD.js"), ft = {
41
+ "cds-pagination": {
42
+ import: G,
43
+ /**
44
+ * Initialize a standalone pagination component.
45
+ *
46
+ * Note: The pagination parameter is a CDSPagination instance from @carbon/web-components.
47
+ * To access the CDSPagination class and its static properties:
48
+ * const CDSPagination = customElements.get('cds-pagination');
49
+ * // or
50
+ * const CDSPagination = pagination.constructor;
51
+ *
52
+ * @param {CDSPagination} pagination - The CDSPagination custom element instance
53
+ * @this {Panel} The panel instance
54
+ */
55
+ init: function(t) {
56
+ const e = this, n = customElements.get("cds-pagination");
57
+ let o = null;
58
+ e.listen(t, n.eventChangeCurrent, (s) => {
59
+ const i = s.detail.page, c = t.pageSize, r = (i - 1) * c;
60
+ r !== o && (o = r, e.dispatchPanelEvent("pagination-changed-current", {
61
+ detail: {
62
+ page: i,
63
+ pageSize: c,
64
+ action: "page-change"
65
+ }
66
+ }));
67
+ }), e.listen(t, n.eventPageSizeChanged, (s) => {
68
+ const i = t.pageSize;
69
+ o = null, e.dispatchPanelEvent("pagination-changed-page-size", {
70
+ detail: {
71
+ page: 1,
72
+ // Reset to page 1 when changing size
73
+ pageSize: i,
74
+ action: "page-size-change"
75
+ }
76
+ });
77
+ });
78
+ }
79
+ }
80
+ }, q = (t, e, n) => {
81
+ const o = customElements.get("cds-table"), s = customElements.get("cds-pagination"), i = customElements.get(o.selectorTableBatchActions);
82
+ customElements.get("cds-popover");
83
+ const c = e.dataBinder, r = e.pagination, p = e.skeleton, g = e.querySelector(o.selectorTableToolbarSearch), f = e.querySelector(o.selectorTableBatchActions), S = e.querySelector(o.selectorTableToolbarContent), _ = e.querySelector(o.selectorTableBody), H = ["button", "a", "input", "select", "textarea", '[role="button"]', ".cds--table-expand", ".cds--table-column-checkbox"].join(","), M = e.querySelectorAll(o.selectorHeaderCell + "[is-sortable]"), j = e.isSortable || M.length > 0, k = Symbol(), y = Symbol(), I = /* @__PURE__ */ new Map(), Y = (l) => {
84
+ t.listen(e, "click", (d) => {
85
+ const m = d.target.closest(o.selectorTableRow);
86
+ if (!m || d.composedPath().some((v) => v.matches && v.matches(H))) return;
87
+ d.stopPropagation();
88
+ const u = a(m);
89
+ t.dispatchPanelEvent(l, {
90
+ ...u
91
+ });
92
+ });
93
+ }, W = (l) => {
94
+ t.listen(e, o.eventExpandoToggle, (d) => {
95
+ const m = d.target, u = m.tagName === "CDS-TABLE-HEADER-ROW", v = d.detail.expanded, E = a(m), C = {
96
+ tableAttrs: n,
97
+ ...E,
98
+ target: m,
99
+ allRows: u,
100
+ didExpand: v
101
+ };
102
+ t.dispatchPanelEvent(l, C);
103
+ });
104
+ }, X = (l) => {
105
+ I.set(k, (d) => {
106
+ t.dispatchPanelEvent(l, d);
107
+ });
108
+ }, Z = (l) => {
109
+ I.set(y, (d) => {
110
+ const m = d.detail.selectedRows, u = Math.min(m.length, f.totalRowsCount), v = d.target, E = a(v), C = m.map(a), A = {
111
+ tableAttrs: n,
112
+ ...E,
113
+ target: v,
114
+ selectCount: u,
115
+ selection: C
116
+ };
117
+ t.dispatchPanelEvent(l, A);
118
+ });
119
+ }, $ = (l) => {
120
+ t.listen(e, o.eventTableRowSelect, (d) => {
121
+ const m = d.target, u = d.detail.selectedRows || [], v = u.length, E = u.map(a), C = a(m), A = {
122
+ tableAttrs: n,
123
+ ...C,
124
+ selectCount: v,
125
+ selection: E,
126
+ target: m
127
+ };
128
+ t.dispatchPanelEvent(l, A);
129
+ });
130
+ }, J = () => {
131
+ t.listen(e, o.eventBeforeSort, (l) => {
132
+ const d = l.target, m = l.detail.oldSortDirection, u = l.detail.sortDirection, v = a(d), E = v.sortField, C = u === ht.TABLE_SORT_DIRECTION.DESCENDING ? `-${E}` : E;
133
+ l.cancelBubble = !0, l.stopPropagation(), l.preventDefault(), _.innerHTML = "", p && p.show(), M.forEach((D, $e) => {
134
+ D === d ? (D.setAttribute("sort-active", "true"), D.setAttribute("sort-direction", u)) : (D.removeAttribute("sort-active"), D.setAttribute("sort-direction", "none"));
135
+ });
136
+ const A = { ordering: C };
137
+ c.fetchData(A).then(() => {
138
+ r.setData(c), p && p.hide();
139
+ }), I.has(k) && I.get(k)({
140
+ tableAttrs: n,
141
+ ...v,
142
+ sortNow: u,
143
+ sortWas: m,
144
+ sortField: E,
145
+ ordering: C,
146
+ target: d
147
+ });
148
+ });
149
+ }, K = () => {
150
+ t.listen(e, o.eventTableRowSelectAll, (l) => {
151
+ l.detail.selectedRows.length === 0 && e.querySelectorAll(o.selectorTableRow).forEach((d) => {
152
+ d.disabled = !1, d.selected = !1;
153
+ }), I.has(y) && I.get(y)(l);
154
+ });
155
+ }, Q = () => {
156
+ t.listen(e, o.eventBeforeChangeSelectionAll, (l) => {
157
+ l.stopPropagation(), l.detail.callback && l.detail.callback();
158
+ });
159
+ }, tt = (l) => {
160
+ const d = e.querySelector("cds-table-header-row");
161
+ t.listen(l, i.eventClickSelectAll, (m) => {
162
+ m.stopPropagation(), d.dispatchEvent(new CustomEvent(o.eventBeforeChangeSelectionAll, {
163
+ bubbles: !0,
164
+ cancelable: !0,
165
+ composed: !0,
166
+ detail: {
167
+ selected: !0,
168
+ callback: () => {
169
+ l.selectedRowsCount = l.totalRowsCount, e.querySelectorAll(o.selectorTableRow).forEach((u) => {
170
+ u.disabled = !0;
171
+ });
172
+ }
173
+ }
174
+ }));
175
+ });
176
+ }, et = (l) => {
177
+ t.listen(l, "keydown", (d) => {
178
+ if (d.key === "Enter") {
179
+ p && p.show(), r.totalItems = 0, e.querySelector("cds-table-body").replaceChildren();
180
+ const u = { search: l.value || "", offset: 0 };
181
+ c.fetchData(u).then(() => {
182
+ r.setData(c), p && p.hide();
183
+ });
184
+ }
185
+ });
186
+ }, nt = (l) => {
187
+ t.listen(l, o.eventSearchInput, (d) => {
188
+ if ((d.detail.value || "") === "") {
189
+ const u = { search: "", offset: 0 };
190
+ p && p.show(), c.fetchData(u).then(() => {
191
+ p && p.hide(), r.setData(c);
192
+ });
193
+ }
194
+ });
195
+ }, ot = (l) => {
196
+ const d = l.querySelector("cds-icon-button, button:not([slot])");
197
+ if (!d) return;
198
+ l.caret = !1, t.listen(d, "click", (u) => {
199
+ u.stopPropagation(), l.open = !l.open, l.classList.toggle("cds--overflow-menu--open", l.open);
200
+ }), new MutationObserver(() => {
201
+ l.classList.toggle("cds--overflow-menu--open", l.open);
202
+ }).observe(l, {
203
+ attributes: !0,
204
+ attributeFilter: ["open"]
205
+ });
206
+ }, st = () => {
207
+ t.listen(r, s.eventPageSizeChanged, (l) => {
208
+ const m = {
209
+ limit: r.pageSize,
210
+ offset: 0
211
+ };
212
+ c.fetchData(m).then(() => {
213
+ r.setData(c);
214
+ });
215
+ });
216
+ }, it = () => {
217
+ let l = null;
218
+ t.listen(r, s.eventChangeCurrent, (d) => {
219
+ const { page: m } = d.detail, u = r.pageSize, v = (m - 1) * u;
220
+ if (v !== l) {
221
+ l = v;
222
+ const E = { limit: u, offset: v };
223
+ c.fetchData(E).then(() => {
224
+ r.setData(c), p && p.hide();
225
+ });
226
+ }
227
+ });
228
+ };
229
+ c && r && (st(), it()), c && g && (et(g), nt(g));
230
+ const B = S.querySelectorAll("cds-popover[data-batch-filter]");
231
+ B && B.forEach(ot), e.isSelectable && (K(), Q(), f && tt(f)), c && j && J();
232
+ const z = {
233
+ zoo: {
234
+ event: {
235
+ row: {
236
+ click: Y,
237
+ expand: W,
238
+ check: {
239
+ one: $,
240
+ all: Z
241
+ }
242
+ },
243
+ column: {
244
+ sort: X
245
+ }
246
+ }
247
+ }
248
+ };
249
+ lt(n).forEach(([l, d]) => {
250
+ dt(l, z) && pt(l, z)(d);
251
+ });
252
+ }, Et = (t) => {
253
+ const e = document.createElement("cds-pagination");
254
+ return e.backwardText = "Previous page", e.forwardText = "Next page", e.itemsPerPageText = "Items per page:", e.pageSize = t.limit, e.size = "lg", [10, 25, 50, 100, 500].forEach((n) => {
255
+ const o = document.createElement("cds-select-item");
256
+ o.value = n.toString(), o.textContent = n.toString(), e.appendChild(o);
257
+ }), e.setData = (n) => {
258
+ if (n.isPaginated) {
259
+ const { count: o } = ut(["count"], n.data), s = Math.ceil(o / n.limit), i = 100;
260
+ e.pagesUnknown = s > i, e.totalItems = o;
261
+ }
262
+ }, e;
263
+ }, bt = (t) => {
264
+ if (!t.parentNode) {
265
+ console.error("[Carbon Table] Cannot create skeleton: table has no parent node");
266
+ return;
267
+ }
268
+ const e = !!t.querySelector("cds-table-header-title"), n = !!t.querySelector("cds-table-header-description"), o = !!t.querySelector("cds-table-toolbar"), s = [...t.querySelectorAll("cds-table-header-cell")].length, i = t.hasAttribute("zebra"), c = t.getAttribute("size"), r = document.createElement("cds-table-skeleton");
269
+ r.showHeader = e || n, r.showToolbar = o, r.zebra = i, r.columnCount = s, r.size = c, r.show = () => r.classList.remove("hidden"), r.hide = () => r.classList.add("hidden");
270
+ const p = document.createElement("div");
271
+ return p.classList.add("zoo-datatable-skeleton-wrapper"), t.parentNode.insertBefore(p, t), p.appendChild(r), p.appendChild(t), r;
272
+ }, Ct = (t, e) => {
273
+ const n = e.getAttribute("zoo-url-api"), o = parseInt(e.getAttribute("data-page-size") || 25, 10);
274
+ if (n)
275
+ return new rt(t, n, e, {
276
+ urlParams: { limit: o }
277
+ });
278
+ }, St = {
279
+ selector: "cds-table",
280
+ import: [gt, G],
281
+ /**
282
+ * Initialize a Carbon data table component.
283
+ *
284
+ * Note: The cdsTable parameter is a CDSTable instance from @carbon/web-components.
285
+ * To access the CDSTable class and its static properties/methods, use:
286
+ * const CDSTable = customElements.get('cds-table');
287
+ * // or
288
+ * const CDSTable = cdsTable.constructor;
289
+ *
290
+ * Example - Using static event names:
291
+ * const CDSTable = customElements.get('cds-table');
292
+ * panel.listen(cdsTable, CDSTable.eventBeforeChangeSelection, e => {...});
293
+ *
294
+ * Initialization flow:
295
+ * 1. Extract semantic attributes from table element
296
+ * 2. Check for zoo-url-api attribute to determine if Binder is needed
297
+ * 3. If Binder:
298
+ * - Create Binder instance with configured page size
299
+ * - Create and show skeleton loader
300
+ * - Create pagination component
301
+ * - Fetch initial data
302
+ * - Remove skeleton and configure pagination when data arrives
303
+ * - Set up event handlers after data is loaded (prevents duplicate initial fetch)
304
+ * 4. If no Binder:
305
+ * - Set up event handlers immediately for client-side behavior
306
+ *
307
+ * @param {CDSTable} cdsTable - The CDSTable custom element instance (from @carbon/web-components)
308
+ * @this {Panel} The panel instance
309
+ */
310
+ init: function(t) {
311
+ const e = a(t), n = this, o = Ct(n, t);
312
+ if (at(o)) {
313
+ t.dataBinder = o;
314
+ const s = bt(t);
315
+ t.skeleton = s;
316
+ const i = Et(o);
317
+ t.pagination = i, t.after(i), o.fetchData().then((c) => {
318
+ s.hide(), i.setData(o), q(n, t, e);
319
+ });
320
+ } else
321
+ q(n, t, e);
322
+ }
323
+ }, b = () => import("./index-BMquNDkd.js"), It = {
324
+ selector: "cds-modal",
325
+ import: b,
326
+ /**
327
+ * @param {CDSModal} modal - The CDSModal custom element instance
328
+ * @this {Panel} The panel instance
329
+ */
330
+ init: function(t) {
331
+ const e = customElements.get("cds-modal"), n = a(t), o = h(t, "open-event", "event");
332
+ o && this.listen(t, "cds-modal-beingopened", (c) => {
333
+ this.dispatchPanelEvent(o, {
334
+ ...n,
335
+ action: "opened"
336
+ });
337
+ });
338
+ const s = t.getAttribute("before-close-event");
339
+ s && this.listen(t, e.eventBeforeClose, (c) => {
340
+ this.dispatchPanelEvent(s, {
341
+ ...n,
342
+ action: "closing",
343
+ cancelable: !0
344
+ });
345
+ }), this.listen(t, e.eventClose, (c) => {
346
+ this.dispatchPanelEvent("destroy_me", {
347
+ ...n,
348
+ action: "closed",
349
+ triggeredBy: c.detail?.triggeredBy
350
+ });
351
+ });
352
+ const i = h(t, "primary-event", "event");
353
+ i && this.listen(t, "cds-modal-primary-focus", (c) => {
354
+ this.dispatchPanelEvent(i, {
355
+ ...n,
356
+ action: "primary"
357
+ });
358
+ });
359
+ }
360
+ }, At = {
361
+ "cds-modal-header": {
362
+ import: b
363
+ // No event handling - presentational header wrapper
364
+ },
365
+ "cds-modal-heading": {
366
+ import: b
367
+ // No event handling - presentational heading element
368
+ },
369
+ "cds-modal-label": {
370
+ import: b
371
+ // No event handling - presentational label element
372
+ },
373
+ "cds-modal-close-button": {
374
+ import: b
375
+ // No event handling - close button handled by modal itself via data-modal-close
376
+ },
377
+ "cds-modal-body": {
378
+ import: b
379
+ // No event handling - presentational body wrapper
380
+ },
381
+ "cds-modal-body-content": {
382
+ import: b
383
+ // No event handling - presentational content wrapper
384
+ },
385
+ "cds-modal-footer": {
386
+ import: b
387
+ // No event handling - presentational footer wrapper
388
+ },
389
+ "cds-modal-footer-button": {
390
+ import: b,
391
+ init: function(t) {
392
+ const e = a(t);
393
+ if (t.getAttribute("type") === "submit") {
394
+ this.listen(t, "click", (s) => {
395
+ let i = t.closest("form");
396
+ if (!i) {
397
+ const c = t.getAttribute("form");
398
+ c && (i = document.getElementById(c));
399
+ }
400
+ i && i.requestSubmit();
401
+ });
402
+ return;
403
+ }
404
+ const o = e.event;
405
+ o && this.listen(t, "click", (s) => {
406
+ s.stopPropagation(), this.dispatchPanelEvent(o, e);
407
+ });
408
+ }
409
+ }
410
+ }, U = () => import("./index-CBICHiFD.js"), Dt = {
411
+ selector: "cds-menu",
412
+ import: U,
413
+ /**
414
+ * @param {CDSMenu} menu - The CDSMenu custom element instance
415
+ * @this {Panel} The panel instance
416
+ */
417
+ init: function(t) {
418
+ const e = a(t), n = h(t, "open-event");
419
+ n && this.listen(t, "cds-menu-opened", (s) => {
420
+ this.dispatchPanelEvent(n, {
421
+ ...e,
422
+ action: "opened"
423
+ });
424
+ });
425
+ const o = h(t, "close-event");
426
+ o && this.listen(t, "cds-menu-closed", (s) => {
427
+ this.dispatchPanelEvent(o, {
428
+ ...e,
429
+ action: "closed"
430
+ });
431
+ }), this.listen(t, "click", (s) => {
432
+ if (s.target.tagName === "CDS-MENU-ITEM") {
433
+ const i = a(s.target), c = i.event || e.event;
434
+ c && (s.stopPropagation(), this.dispatchPanelEvent(c, {
435
+ ...e,
436
+ ...i
437
+ }));
438
+ }
439
+ }), this.listen(t, "cds-item-changed", (s) => {
440
+ const i = s.detail.triggeredBy, c = a(i), r = c.event || e.event;
441
+ r && this.dispatchPanelEvent(r, {
442
+ ...e,
443
+ ...c,
444
+ action: "selection-changed"
445
+ });
446
+ });
447
+ }
448
+ }, Nt = {
449
+ "cds-menu-button": {
450
+ import: U,
451
+ /**
452
+ * @param {CDSMenuButton} menuButton - The CDSMenuButton custom element instance
453
+ * @this {Panel} The panel instance
454
+ */
455
+ init: function(t) {
456
+ const e = a(t), n = t.querySelector("cds-menu");
457
+ n && this.listen(n, "click", (o) => {
458
+ if (o.target.tagName === "CDS-MENU-ITEM") {
459
+ const s = a(o.target), i = s.event || e.event;
460
+ i && (o.stopPropagation(), this.dispatchPanelEvent(i, {
461
+ ...e,
462
+ ...s
463
+ }));
464
+ }
465
+ });
466
+ }
467
+ }
468
+ }, V = () => import("./index-Bls8zdHV.js"), x = () => import("./index-B4SxU_Hu.js").then((t) => t.i), Pt = () => import("./index-BeMnerDj.js"), _t = () => import("./index-C6bOvXSf.js"), kt = {
469
+ selector: "cds-button",
470
+ import: V,
471
+ /**
472
+ * @param {CDSButton} button - The CDSButton custom element instance
473
+ * @this {Panel} The panel instance
474
+ */
475
+ init: function(t) {
476
+ const e = a(t);
477
+ if (t.getAttribute("type") === "submit") {
478
+ this.listen(t, "click", (s) => {
479
+ let i = t.closest("form");
480
+ if (!i) {
481
+ const c = t.getAttribute("form");
482
+ c && (i = document.getElementById(c));
483
+ }
484
+ i && i.requestSubmit();
485
+ });
486
+ return;
487
+ }
488
+ const o = e.event;
489
+ o && this.listen(t, "click", (s) => {
490
+ s.stopPropagation(), this.dispatchPanelEvent(o, e);
491
+ });
492
+ }
493
+ }, yt = {
494
+ // Icon Button (non-toggle)
495
+ "cds-icon-button:not([data-toggle])": {
496
+ import: x,
497
+ event: "click",
498
+ getData: (t, e) => e
499
+ },
500
+ // Icon Toggle - Toggles Carbon's built-in isSelected state for ghost icon buttons
501
+ // Visual styling (subtle background change) is handled by Carbon's CSS
502
+ "cds-icon-button[data-toggle]": {
503
+ import: x,
504
+ init: function(t) {
505
+ const e = a(t);
506
+ e.event && this.listen(t, "click", (n) => {
507
+ n.stopPropagation(), t.isSelected = !t.isSelected, this.dispatchPanelEvent(e.event, {
508
+ ...e,
509
+ isOn: t.isSelected
510
+ });
511
+ });
512
+ }
513
+ },
514
+ // FAB (Floating Action Button) - just a styled button
515
+ "cds-button[data-fab]": {
516
+ import: V,
517
+ event: "click",
518
+ getData: (t, e) => e
519
+ },
520
+ // Copy Button - Button that copies text to clipboard
521
+ "cds-copy-button": {
522
+ import: _t,
523
+ init: function(t) {
524
+ const e = a(t), n = e.event;
525
+ n && this.listen(t, "click", (s) => {
526
+ s.stopPropagation(), this.dispatchPanelEvent(n, {
527
+ ...e,
528
+ action: "copy"
529
+ });
530
+ });
531
+ const o = t.getAttribute("success-event");
532
+ if (o) {
533
+ const s = new MutationObserver(() => {
534
+ t.hasAttribute("feedback-shown") && this.dispatchPanelEvent(o, {
535
+ ...e,
536
+ action: "copied"
537
+ });
538
+ });
539
+ s.observe(t, {
540
+ attributes: !0,
541
+ attributeFilter: ["feedback-shown"]
542
+ }), t._copyObserver = s;
543
+ }
544
+ }
545
+ },
546
+ // Combo Button - composed of button + menu
547
+ "cds-combo-button": {
548
+ import: Pt,
549
+ init: function(t) {
550
+ const e = a(t);
551
+ e.event && this.listen(t, "click", (o) => {
552
+ const s = o.composedPath(), i = s.some((r) => r.tagName === "CDS-MENU-ITEM"), c = s.some((r) => r.tagName === "CDS-ICON-BUTTON");
553
+ !i && !c && (o.stopPropagation(), this.dispatchPanelEvent(e.event, {
554
+ ...e,
555
+ action: "primary"
556
+ }));
557
+ });
558
+ const n = t.querySelector("cds-menu");
559
+ n && this.listen(n, "click", (o) => {
560
+ if (o.target.tagName === "CDS-MENU-ITEM") {
561
+ const s = a(o.target), i = s.event || h(t, "menu-event", "event");
562
+ i && this.dispatchPanelEvent(i, {
563
+ ...e,
564
+ ...s,
565
+ action: "menu-item"
566
+ });
567
+ }
568
+ });
569
+ }
570
+ }
571
+ }, Tt = () => import("./index-DNWjc2SJ.js"), wt = () => import("./index-Bff6B9vY.js"), Ot = () => import("./index-BbJQIwkY.js"), Rt = {
572
+ selector: "cds-dropdown",
573
+ import: Tt,
574
+ /**
575
+ * @param {CDSDropdown} dropdown - The CDSDropdown custom element instance
576
+ * @this {Panel} The panel instance
577
+ */
578
+ init: function(t) {
579
+ const e = customElements.get("cds-dropdown"), n = a(t), o = n.event;
580
+ o && this.listen(t, e.eventSelect, (i) => {
581
+ this.dispatchPanelEvent(o, {
582
+ ...n,
583
+ value: t.value,
584
+ selectedValue: i.detail?.item?.value,
585
+ selectedText: i.detail?.item?.textContent?.trim()
586
+ });
587
+ });
588
+ const s = t.getAttribute("toggle-event");
589
+ s && this.listen(t, e.eventToggle, (i) => {
590
+ this.dispatchPanelEvent(s, {
591
+ ...n,
592
+ open: t.hasAttribute("open")
593
+ });
594
+ });
595
+ }
596
+ }, Mt = {
597
+ // Combo Box
598
+ "cds-combo-box": {
599
+ import: wt,
600
+ /**
601
+ * @param {CDSComboBox} comboBox - The CDSComboBox custom element instance
602
+ * @this {Panel} The panel instance
603
+ */
604
+ init: function(t) {
605
+ const e = customElements.get("cds-combo-box"), n = a(t), o = n.event;
606
+ o && this.listen(t, e.eventSelect, (i) => {
607
+ const c = i.detail?.item;
608
+ this.dispatchPanelEvent(o, {
609
+ ...n,
610
+ value: t.value,
611
+ selectedValue: c?.value,
612
+ selectedText: c?.textContent?.trim()
613
+ });
614
+ });
615
+ const s = t.getAttribute("toggle-event");
616
+ s && this.listen(t, e.eventToggle, (i) => {
617
+ this.dispatchPanelEvent(s, {
618
+ ...n,
619
+ open: t.hasAttribute("open")
620
+ });
621
+ });
622
+ }
623
+ },
624
+ // Multi Select
625
+ "cds-multi-select": {
626
+ import: Ot,
627
+ /**
628
+ * @param {CDSMultiSelect} multiSelect - The CDSMultiSelect custom element instance
629
+ * @this {Panel} The panel instance
630
+ */
631
+ init: function(t) {
632
+ const e = customElements.get("cds-multi-select"), n = a(t), o = n.event;
633
+ o && this.listen(t, e.eventSelect, (i) => {
634
+ const c = t.value ? t.value.split(",") : [];
635
+ this.dispatchPanelEvent(o, {
636
+ ...n,
637
+ selectedItems: c
638
+ });
639
+ });
640
+ const s = t.getAttribute("toggle-event");
641
+ s && this.listen(t, e.eventToggle, (i) => {
642
+ this.dispatchPanelEvent(s, {
643
+ ...n,
644
+ open: t.hasAttribute("open")
645
+ });
646
+ });
647
+ }
648
+ }
649
+ }, Bt = () => import("./index-CkxGsCJy.js"), zt = () => import("./index-TJL02uup.js"), Lt = {
650
+ selector: "cds-date-picker",
651
+ import: Bt,
652
+ /**
653
+ * @param {CDSDatePicker} datePicker - The CDSDatePicker custom element instance
654
+ * @this {Panel} The panel instance
655
+ */
656
+ init: function(t) {
657
+ const e = customElements.get("cds-date-picker"), n = a(t), o = t.querySelector('cds-date-picker-input[kind="from"]'), s = t.querySelector('cds-date-picker-input[kind="to"]'), i = o && s, c = n.event;
658
+ c && this.listen(t, e.eventChange, (p) => {
659
+ let g;
660
+ i ? g = {
661
+ from: o.value || "",
662
+ to: s.value || ""
663
+ } : g = t.value, this.dispatchPanelEvent(c, {
664
+ ...n,
665
+ value: g
666
+ });
667
+ });
668
+ const r = t.getAttribute("error-event");
669
+ r && this.listen(t, e.eventFlatpickrError, (p) => {
670
+ this.dispatchPanelEvent(r, {
671
+ ...n,
672
+ error: p.detail
673
+ });
674
+ });
675
+ }
676
+ }, qt = {
677
+ "cds-time-picker": {
678
+ import: zt,
679
+ event: "cds-time-picker-changed",
680
+ getData: (t, e, n) => ({
681
+ ...e,
682
+ value: n.value
683
+ })
684
+ }
685
+ }, xt = () => import("./index-DUtoSCTU.js"), Ft = {
686
+ selector: "cds-file-uploader",
687
+ import: xt,
688
+ /**
689
+ * @param {CDSFileUploader} uploader - The CDSFileUploader custom element instance
690
+ * @this {Panel} The panel instance
691
+ */
692
+ init: function(t) {
693
+ const e = a(t), n = e.event;
694
+ if (n) {
695
+ const s = t.querySelector('input[type="file"]');
696
+ s && this.listen(s, "change", (i) => {
697
+ this.dispatchPanelEvent(n, {
698
+ ...e,
699
+ files: Array.from(i.target.files || [])
700
+ });
701
+ });
702
+ }
703
+ const o = t.getAttribute("delete-event");
704
+ o && this.listen(t, "cds-file-uploader-item-deleted", (s) => {
705
+ this.dispatchPanelEvent(o, {
706
+ ...e,
707
+ fileName: s.detail?.fileName,
708
+ fileId: s.detail?.fileId
709
+ });
710
+ });
711
+ }
712
+ }, Gt = () => import("./index-uxZPrL2m.js"), Ut = () => import("./index-D9sRIKMQ.js"), Vt = () => import("./index-B5DpS-cb.js"), Ht = {
713
+ selector: "cds-tabs",
714
+ import: Gt,
715
+ /**
716
+ * @param {CDSTabs} tabs - The CDSTabs custom element instance
717
+ * @this {Panel} The panel instance
718
+ */
719
+ init: function(t) {
720
+ const e = customElements.get("cds-tabs"), n = a(t), o = t.getAttribute("before-select-event");
721
+ o && this.listen(t, e.eventBeforeSelect, (i) => {
722
+ this.dispatchPanelEvent(o, {
723
+ ...n,
724
+ tabValue: i.detail.value,
725
+ cancelable: !0
726
+ });
727
+ });
728
+ const s = n.event;
729
+ s && this.listen(t, e.eventSelect, (i) => {
730
+ const c = i.detail.item, r = a(c);
731
+ this.dispatchPanelEvent(s, {
732
+ ...n,
733
+ ...r,
734
+ tabValue: i.detail.value
735
+ });
736
+ });
737
+ }
738
+ }, jt = {
739
+ // Accordion
740
+ "cds-accordion": {
741
+ import: Ut,
742
+ /**
743
+ * @param {CDSAccordion} accordion - The CDSAccordion custom element instance
744
+ * @this {Panel} The panel instance
745
+ */
746
+ init: function(t) {
747
+ const e = customElements.get("cds-accordion-item"), n = a(t);
748
+ [...t.querySelectorAll("cds-accordion-item")].forEach((s) => {
749
+ const i = a(s), c = i.event || n.event;
750
+ c && this.listen(s, e.eventToggle, (r) => {
751
+ this.dispatchPanelEvent(c, {
752
+ ...n,
753
+ ...i,
754
+ open: r.detail.open
755
+ });
756
+ });
757
+ });
758
+ }
759
+ },
760
+ // Content Switcher
761
+ "cds-content-switcher": {
762
+ import: Vt,
763
+ /**
764
+ * @param {CDSContentSwitcher} switcher - The CDSContentSwitcher custom element instance
765
+ * @this {Panel} The panel instance
766
+ */
767
+ init: function(t) {
768
+ const e = customElements.get("cds-content-switcher"), n = a(t), o = t.getAttribute("before-select-event");
769
+ o && this.listen(t, e.eventBeforeSelect, (i) => {
770
+ this.dispatchPanelEvent(o, {
771
+ ...n,
772
+ value: i.detail.value,
773
+ cancelable: !0
774
+ });
775
+ });
776
+ const s = n.event;
777
+ s && this.listen(t, e.eventSelect, (i) => {
778
+ const c = i.detail.item, r = a(c);
779
+ this.dispatchPanelEvent(s, {
780
+ ...n,
781
+ ...r,
782
+ value: c.getAttribute("value")
783
+ });
784
+ });
785
+ }
786
+ }
787
+ }, w = () => import("./index-CWlg_Hu2.js"), Yt = {
788
+ selector: "cds-breadcrumb",
789
+ import: w,
790
+ /**
791
+ * @param {CDSBreadcrumb} breadcrumb - The CDSBreadcrumb custom element instance
792
+ * @this {Panel} The panel instance
793
+ */
794
+ init: function(t) {
795
+ const e = a(t), n = e.event;
796
+ if (n) {
797
+ const o = (i) => {
798
+ this.dispatchPanelEvent(n, {
799
+ ...e,
800
+ ...i
801
+ });
802
+ };
803
+ this.listen(t, "click", (i) => {
804
+ const c = i.target.closest("cds-breadcrumb-link");
805
+ if (c) {
806
+ i.preventDefault(), i.stopPropagation();
807
+ const r = a(c);
808
+ o(r);
809
+ }
810
+ });
811
+ const s = t.querySelector("cds-overflow-menu-body");
812
+ s && this.listen(s, "cds-overflow-menu-item-clicked", (i) => {
813
+ i.stopPropagation();
814
+ const c = a(i.target);
815
+ o(c);
816
+ });
817
+ }
818
+ }
819
+ }, Wt = {
820
+ // Breadcrumb Item - Wrapper for breadcrumb links
821
+ "cds-breadcrumb-item": {
822
+ import: w
823
+ // No event handling - presentational wrapper
824
+ },
825
+ // Breadcrumb Link - Individual breadcrumb link
826
+ "cds-breadcrumb-link": {
827
+ import: w,
828
+ event: "click",
829
+ getData: (t, e, n) => (t.preventDefault(), {
830
+ ...e,
831
+ href: n.getAttribute("href")
832
+ })
833
+ }
834
+ }, Xt = () => import("./index-4WNeLsiw.js"), Zt = () => import("./index-GDVDUQtg.js"), $t = () => import("./index-Bunat0DP.js"), Jt = () => import("./index-CR3DrmQi.js"), Kt = () => import("./index-B0nToMRj.js"), Qt = {
835
+ selector: "cds-text-input",
836
+ import: Xt,
837
+ multiEvent: !0,
838
+ events: [
839
+ {
840
+ type: "input",
841
+ attrName: "event",
842
+ getData: (t, e) => ({
843
+ ...e,
844
+ value: t.currentTarget.value
845
+ })
846
+ },
847
+ {
848
+ type: "change",
849
+ attrName: "change-event",
850
+ getData: (t, e) => ({
851
+ ...e,
852
+ value: t.currentTarget.value
853
+ })
854
+ }
855
+ ]
856
+ }, te = {
857
+ // Text Area
858
+ "cds-textarea": {
859
+ import: Zt,
860
+ multiEvent: !0,
861
+ events: [
862
+ {
863
+ type: "input",
864
+ attrName: "event",
865
+ getData: (t, e) => ({
866
+ ...e,
867
+ value: t.currentTarget.value
868
+ })
869
+ },
870
+ {
871
+ type: "change",
872
+ attrName: "change-event",
873
+ getData: (t, e) => ({
874
+ ...e,
875
+ value: t.currentTarget.value
876
+ })
877
+ }
878
+ ]
879
+ },
880
+ // Number Input
881
+ "cds-number-input": {
882
+ import: $t,
883
+ event: "cds-number-input",
884
+ getData: (t, e, n) => ({
885
+ ...e,
886
+ value: t.detail.value,
887
+ direction: t.detail.direction
888
+ // 'up' or 'down' when using steppers
889
+ })
890
+ },
891
+ // Password Input
892
+ "cds-password-input": {
893
+ import: Jt,
894
+ multiEvent: !0,
895
+ events: [
896
+ {
897
+ type: "input",
898
+ attrName: "event",
899
+ getData: (t, e) => ({
900
+ ...e,
901
+ value: t.currentTarget.value
902
+ })
903
+ },
904
+ {
905
+ type: "change",
906
+ attrName: "change-event",
907
+ getData: (t, e) => ({
908
+ ...e,
909
+ value: t.currentTarget.value
910
+ })
911
+ }
912
+ ]
913
+ },
914
+ // Search
915
+ "cds-search": {
916
+ import: Kt,
917
+ event: "cds-search-input",
918
+ getData: (t, e, n) => ({
919
+ ...e,
920
+ value: n.value
921
+ })
922
+ }
923
+ }, ee = () => import("./index-hH_m653R.js"), ne = () => import("./index-B5GB0rQW.js"), oe = () => import("./index-4XJJobHw.js"), se = () => import("./index-CYIcfuAW.js"), ie = () => import("./index-7cXLLw89.js"), ce = {
924
+ selector: "cds-checkbox",
925
+ import: ee,
926
+ event: "cds-checkbox-changed",
927
+ getData: (t, e, n) => ({
928
+ ...e,
929
+ checked: t.detail.checked,
930
+ value: n.value
931
+ })
932
+ }, ae = {
933
+ // Radio Button Group - only listen to the group, not individual buttons
934
+ "cds-radio-button-group": {
935
+ import: ne,
936
+ event: "cds-radio-button-group-changed",
937
+ getData: (t, e) => ({
938
+ ...e,
939
+ value: t.detail?.value
940
+ })
941
+ },
942
+ // Toggle
943
+ "cds-toggle": {
944
+ import: oe,
945
+ event: "cds-toggle-changed",
946
+ getData: (t, e) => ({
947
+ ...e,
948
+ isOn: t.detail.checked,
949
+ value: t.detail.checked
950
+ })
951
+ },
952
+ // Select
953
+ "cds-select": {
954
+ import: se,
955
+ event: "cds-select-selected",
956
+ getData: (t, e) => ({
957
+ ...e,
958
+ value: t.detail.value
959
+ })
960
+ },
961
+ // Slider
962
+ "cds-slider": {
963
+ import: ie,
964
+ /**
965
+ * @param {CDSSlider} slider - The CDSSlider custom element instance
966
+ * @this {Panel} The panel instance
967
+ */
968
+ init: function(t) {
969
+ const e = a(t), n = e.event;
970
+ n && this.listen(t, "cds-slider-changed", (s) => {
971
+ this.dispatchPanelEvent(n, {
972
+ ...e,
973
+ value: s.detail.value
974
+ });
975
+ });
976
+ const o = t.getAttribute("input-event");
977
+ o && this.listen(t, "cds-slider-input-changed", (s) => {
978
+ this.dispatchPanelEvent(o, {
979
+ ...e,
980
+ value: s.detail.value
981
+ });
982
+ });
983
+ }
984
+ }
985
+ }, O = () => import("./index-DSOPjl5x.js"), re = {
986
+ selector: "cds-tag",
987
+ import: O,
988
+ event: "click",
989
+ getData: (t, e) => e
990
+ }, le = {
991
+ // Dismissible tags (closeable tags with X button)
992
+ "cds-dismissible-tag": {
993
+ import: O,
994
+ /**
995
+ * @param {CDSDismissibleTag} tag - The CDSDismissibleTag custom element instance
996
+ * @this {Panel} The panel instance
997
+ */
998
+ init: function(t) {
999
+ const e = a(t), n = t.getAttribute("click-event");
1000
+ n && this.listen(t, "click", (s) => {
1001
+ s.target.closest("button") || this.dispatchPanelEvent(n, {
1002
+ ...e
1003
+ });
1004
+ });
1005
+ const o = e.event;
1006
+ o && this.listen(t, "cds-dismissible-tag-closed", (s) => {
1007
+ this.dispatchPanelEvent(o, {
1008
+ ...e,
1009
+ action: "closed"
1010
+ });
1011
+ });
1012
+ }
1013
+ },
1014
+ // Filter tags (closeable tags used for filters)
1015
+ "cds-filter-tag": {
1016
+ import: O,
1017
+ event: "cds-filter-tag-closed",
1018
+ getData: (t, e) => ({
1019
+ ...e,
1020
+ action: "remove"
1021
+ })
1022
+ }
1023
+ }, de = () => import("./index-CIiIAqrQ.js"), pe = () => import("./index-Cwb1pbm9.js"), me = () => import("./index-BGGDxbLL.js"), ue = {
1024
+ selector: "cds-overflow-menu",
1025
+ import: de,
1026
+ // We collect the menu attributes from the menu, but we listen for the
1027
+ // events on the menu body.
1028
+ /**
1029
+ * @param {CDSOverflowMenu} overflowMenu - The CDSOverflowMenu custom element instance
1030
+ * @this {Panel} The panel instance
1031
+ */
1032
+ init: function(t) {
1033
+ const e = a(t), n = e.event, o = t.querySelector("cds-overflow-menu-body");
1034
+ n && o && this.listen(o, "cds-overflow-menu-item-clicked", (s) => {
1035
+ s.stopPropagation();
1036
+ const i = a(s.target);
1037
+ this.dispatchPanelEvent(n, {
1038
+ ...e,
1039
+ ...i
1040
+ });
1041
+ });
1042
+ }
1043
+ }, ve = {
1044
+ // Structured List
1045
+ "cds-structured-list": {
1046
+ import: pe,
1047
+ /**
1048
+ * @param {CDSStructuredList} list - The CDSStructuredList custom element instance
1049
+ * @this {Panel} The panel instance
1050
+ */
1051
+ init: function(t) {
1052
+ const e = a(t);
1053
+ [...t.querySelectorAll("cds-structured-list-row")].forEach((o) => {
1054
+ const s = a(o), i = s.event || e.event;
1055
+ i && this.listen(o, "click", (c) => {
1056
+ c.stopPropagation(), this.dispatchPanelEvent(i, {
1057
+ ...e,
1058
+ ...s
1059
+ });
1060
+ });
1061
+ }), t.hasAttribute("selection") && this.listen(t, "cds-structured-list-selected", (o) => {
1062
+ const s = o.detail.row, i = a(s), c = e.event;
1063
+ c && this.dispatchPanelEvent(c, {
1064
+ ...e,
1065
+ ...i
1066
+ });
1067
+ });
1068
+ }
1069
+ },
1070
+ // Tree View
1071
+ "cds-tree-view": {
1072
+ import: me,
1073
+ /**
1074
+ * @param {CDSTreeView} tree - The CDSTreeView custom element instance
1075
+ * @this {Panel} The panel instance
1076
+ */
1077
+ init: function(t) {
1078
+ const e = a(t);
1079
+ this.listen(t, "cds-tree-node-selected", (o) => {
1080
+ const s = o.detail.node, i = a(s), c = i.event || e.event;
1081
+ c && this.dispatchPanelEvent(c, {
1082
+ ...e,
1083
+ ...i,
1084
+ nodeId: s.id,
1085
+ label: s.getAttribute("label")
1086
+ });
1087
+ });
1088
+ const n = h(t, "expand-event");
1089
+ n && this.listen(t, "cds-tree-node-expanded", (o) => {
1090
+ this.dispatchPanelEvent(n, {
1091
+ ...e,
1092
+ nodeId: o.detail.node.id,
1093
+ expanded: o.detail.expanded
1094
+ });
1095
+ });
1096
+ }
1097
+ }
1098
+ }, R = () => import("./index-Cnsy7Qk3.js"), he = {
1099
+ selector: "cds-toast-notification",
1100
+ import: R,
1101
+ event: "cds-notification-closed",
1102
+ getData: (t, e) => ({
1103
+ ...e,
1104
+ action: "closed"
1105
+ })
1106
+ }, ge = {
1107
+ // Inline Notification
1108
+ "cds-inline-notification": {
1109
+ import: R,
1110
+ event: "cds-notification-closed",
1111
+ getData: (t, e) => ({
1112
+ ...e,
1113
+ action: "closed"
1114
+ })
1115
+ },
1116
+ // Actionable Notification
1117
+ "cds-actionable-notification": {
1118
+ import: R,
1119
+ /**
1120
+ * @param {CDSActionableNotification} notification - The CDSActionableNotification custom element instance
1121
+ * @this {Panel} The panel instance
1122
+ */
1123
+ init: function(t) {
1124
+ const e = a(t), n = h(t, "close-event", "event");
1125
+ n && this.listen(t, "cds-notification-closed", (s) => {
1126
+ this.dispatchPanelEvent(n, {
1127
+ ...e,
1128
+ action: "closed"
1129
+ });
1130
+ });
1131
+ const o = h(t, "action-event");
1132
+ o && this.listen(t, "cds-notification-actioned", (s) => {
1133
+ this.dispatchPanelEvent(o, {
1134
+ ...e,
1135
+ action: "actioned"
1136
+ });
1137
+ });
1138
+ }
1139
+ }
1140
+ }, P = () => import("./index-Bi9WliCA.js"), fe = {
1141
+ selector: "cds-clickable-tile",
1142
+ import: P,
1143
+ event: "click",
1144
+ getData: (t, e) => ({
1145
+ ...e,
1146
+ href: t.currentTarget.getAttribute("href")
1147
+ })
1148
+ }, Ee = {
1149
+ // Expandable Tile
1150
+ "cds-expandable-tile": {
1151
+ import: P,
1152
+ /**
1153
+ * @param {CDSExpandableTile} tile - The CDSExpandableTile custom element instance
1154
+ * @this {Panel} The panel instance
1155
+ */
1156
+ init: function(t) {
1157
+ const e = a(t), n = t.getAttribute("before-toggle-event");
1158
+ n && this.listen(t, "cds-expandable-tile-beingtoggled", (s) => {
1159
+ this.dispatchPanelEvent(n, {
1160
+ ...e,
1161
+ expanded: s.detail.expanded,
1162
+ cancelable: !0
1163
+ });
1164
+ });
1165
+ const o = e.event;
1166
+ o && this.listen(t, "cds-expandable-tile-toggled", (s) => {
1167
+ this.dispatchPanelEvent(o, {
1168
+ ...e,
1169
+ expanded: s.detail.expanded
1170
+ });
1171
+ });
1172
+ }
1173
+ },
1174
+ // Selectable Tile
1175
+ "cds-selectable-tile": {
1176
+ import: P,
1177
+ event: "cds-selectable-tile-changed",
1178
+ getData: (t, e, n) => ({
1179
+ ...e,
1180
+ selected: t.detail.selected,
1181
+ value: n.value
1182
+ })
1183
+ },
1184
+ // Radio Tile
1185
+ "cds-radio-tile": {
1186
+ import: P,
1187
+ event: "cds-selectable-tile-changed",
1188
+ getData: (t, e, n) => ({
1189
+ ...e,
1190
+ selected: t.detail.selected,
1191
+ value: n.value
1192
+ })
1193
+ }
1194
+ }, be = () => import("./index-Ctna95NT.js"), Ce = () => import("./index-Z4ar01y-.js"), Se = () => import("./index-uwN33H1P.js"), Ie = {
1195
+ selector: "cds-progress-bar",
1196
+ import: be,
1197
+ /**
1198
+ * @param {CDSProgressBar} progressBar - The CDSProgressBar custom element instance
1199
+ * @this {Panel} The panel instance
1200
+ */
1201
+ init: function(t) {
1202
+ const e = a(t);
1203
+ if (e.event) {
1204
+ const n = new MutationObserver(() => {
1205
+ const o = parseFloat(t.getAttribute("value") || "0"), s = parseFloat(t.getAttribute("max") || "100");
1206
+ o >= s && this.dispatchPanelEvent(e.event, {
1207
+ ...e,
1208
+ value: o,
1209
+ status: "complete"
1210
+ });
1211
+ });
1212
+ n.observe(t, {
1213
+ attributes: !0,
1214
+ attributeFilter: ["value"]
1215
+ }), t._progressObserver = n;
1216
+ }
1217
+ }
1218
+ }, Ae = {
1219
+ // Progress Indicator
1220
+ "cds-progress-indicator": {
1221
+ import: Ce,
1222
+ /**
1223
+ * @param {CDSProgressIndicator} indicator - The CDSProgressIndicator custom element instance
1224
+ * @this {Panel} The panel instance
1225
+ */
1226
+ init: function(t) {
1227
+ const e = a(t);
1228
+ this.listen(t, "cds-progress-step-click", (n) => {
1229
+ const o = n.target, s = a(o), i = s.event || e.event;
1230
+ i && this.dispatchPanelEvent(i, {
1231
+ ...e,
1232
+ ...s,
1233
+ stepIndex: o.getAttribute("data-index"),
1234
+ stepLabel: o.getAttribute("label")
1235
+ });
1236
+ });
1237
+ }
1238
+ },
1239
+ // Inline Loading - Loading indicator for inline actions (e.g., form submit)
1240
+ "cds-inline-loading": {
1241
+ import: Se,
1242
+ /**
1243
+ * @param {CDSInlineLoading} inlineLoading - The CDSInlineLoading custom element instance
1244
+ * @this {Panel} The panel instance
1245
+ */
1246
+ init: function(t) {
1247
+ const e = a(t), n = e.event;
1248
+ n && this.listen(t, "cds-inline-loading-onsuccess", (s) => {
1249
+ this.dispatchPanelEvent(n, {
1250
+ ...e,
1251
+ status: "finished"
1252
+ });
1253
+ });
1254
+ const o = t.getAttribute("status-event");
1255
+ if (o) {
1256
+ const s = new MutationObserver((i) => {
1257
+ i.forEach((c) => {
1258
+ if (c.attributeName === "status") {
1259
+ const r = t.getAttribute("status");
1260
+ this.dispatchPanelEvent(o, {
1261
+ ...e,
1262
+ status: r
1263
+ });
1264
+ }
1265
+ });
1266
+ });
1267
+ s.observe(t, {
1268
+ attributes: !0,
1269
+ attributeFilter: ["status"]
1270
+ }), t._statusObserver = s;
1271
+ }
1272
+ }
1273
+ }
1274
+ }, De = () => import("./index-Bb_1S0pr.js"), Ne = () => import("./index-Dd9iSSXa.js").then((t) => t.i), Pe = () => import("./index-DyyLrVDY.js"), _e = {
1275
+ selector: "cds-tooltip",
1276
+ import: De,
1277
+ /**
1278
+ * @param {CDSTooltip} tooltip - The CDSTooltip custom element instance
1279
+ * @this {Panel} The panel instance
1280
+ */
1281
+ init: function(t) {
1282
+ const e = a(t), n = h(t, "open-event");
1283
+ n && this.listen(t, "cds-tooltip-beingopened", (s) => {
1284
+ this.dispatchPanelEvent(n, {
1285
+ ...e,
1286
+ action: "opened"
1287
+ });
1288
+ });
1289
+ const o = h(t, "close-event");
1290
+ o && this.listen(t, "cds-tooltip-closed", (s) => {
1291
+ this.dispatchPanelEvent(o, {
1292
+ ...e,
1293
+ action: "closed"
1294
+ });
1295
+ });
1296
+ }
1297
+ }, ke = {
1298
+ // Popover
1299
+ "cds-popover": {
1300
+ import: Ne,
1301
+ /**
1302
+ * @param {CDSPopover} popover - The CDSPopover custom element instance
1303
+ * @this {Panel} The panel instance
1304
+ */
1305
+ init: function(t) {
1306
+ const e = a(t), n = h(t, "open-event");
1307
+ n && this.listen(t, "cds-popover-beingopened", (s) => {
1308
+ this.dispatchPanelEvent(n, {
1309
+ ...e,
1310
+ action: "opened"
1311
+ });
1312
+ });
1313
+ const o = h(t, "close-event");
1314
+ o && this.listen(t, "cds-popover-closed", (s) => {
1315
+ this.dispatchPanelEvent(o, {
1316
+ ...e,
1317
+ action: "closed"
1318
+ });
1319
+ });
1320
+ }
1321
+ },
1322
+ // Toggletip - tooltip that stays open until dismissed
1323
+ "cds-toggletip": {
1324
+ import: Pe,
1325
+ /**
1326
+ * @param {CDSToggletip} toggletip - The CDSToggletip custom element instance
1327
+ * @this {Panel} The panel instance
1328
+ */
1329
+ init: function(t) {
1330
+ const e = a(t);
1331
+ if (e.event) {
1332
+ const n = new MutationObserver((o) => {
1333
+ o.forEach((s) => {
1334
+ if (s.attributeName === "open") {
1335
+ const i = t.hasAttribute("open");
1336
+ this.dispatchPanelEvent(e.event, {
1337
+ ...e,
1338
+ action: i ? "opened" : "closed",
1339
+ open: i
1340
+ });
1341
+ }
1342
+ });
1343
+ });
1344
+ n.observe(t, {
1345
+ attributes: !0,
1346
+ attributeFilter: ["open"]
1347
+ }), t._toggletipObserver = n;
1348
+ }
1349
+ }
1350
+ }
1351
+ }, ye = () => import("./index-Cu1u3Mjn.js").then((t) => t.i), Te = () => import("./index-GbWz6fuF.js"), we = {
1352
+ selector: "cds-link",
1353
+ import: ye,
1354
+ event: "click",
1355
+ getData: (t, e, n) => ({
1356
+ ...e,
1357
+ href: n.getAttribute("href")
1358
+ })
1359
+ }, Oe = {
1360
+ // Code Snippet
1361
+ "cds-code-snippet": {
1362
+ import: Te,
1363
+ event: "cds-copy-button-clicked",
1364
+ getData: (t, e) => ({
1365
+ ...e,
1366
+ action: "copied"
1367
+ })
1368
+ }
1369
+ }, F = () => import("./index-Dc51G1mo.js"), Re = () => import("./index-BAAA4wkE.js"), Me = () => import("./index-QzojJs5M.js"), Be = () => import("./index-CzAwJhyQ.js"), ze = () => import("./index-DZabSr3s.js"), Le = () => import("./index-DfFx1Jz3.js"), qe = () => import("./index-CV7TVQ4T.js").then((t) => t.i), xe = () => import("./index-i4heE-wx.js").then((t) => t.i), Fe = () => import("./index-BwFE4R87.js"), Ge = () => import("./index-DGw1TVFB.js"), Ue = {
1370
+ // Form structure components (presentational only - no event handling needed)
1371
+ "cds-form": {
1372
+ import: F
1373
+ // No event handling - wraps native <form> which works naturally
1374
+ },
1375
+ "cds-form-item": {
1376
+ import: F
1377
+ // No event handling - presentational wrapper for form fields
1378
+ },
1379
+ "cds-form-group": {
1380
+ import: Re
1381
+ // No event handling - presentational fieldset wrapper
1382
+ },
1383
+ "cds-stack": {
1384
+ import: Me
1385
+ // No event handling - layout utility for spacing items vertically or horizontally
1386
+ },
1387
+ // Typography & Icons (Presentational)
1388
+ "cds-heading": {
1389
+ import: Be
1390
+ // No event handling - semantic heading component
1391
+ },
1392
+ "cds-icon": {
1393
+ import: ze
1394
+ // No event handling - icon display component
1395
+ },
1396
+ "cds-icon-indicator": {
1397
+ import: Le
1398
+ // No event handling - status indicator icon
1399
+ },
1400
+ // Badge Indicator - Status badge component (typically used in tabs/icons)
1401
+ "cds-badge-indicator": {
1402
+ import: Ge
1403
+ // No event handling - presentational status indicator
1404
+ // Typically appears as a dot on tabs or icons to show notifications/status
1405
+ },
1406
+ // Loading - Full-page or section loading spinner
1407
+ "cds-loading": {
1408
+ import: qe
1409
+ // No event handling - presentational loading spinner
1410
+ },
1411
+ // Skeleton components - Loading placeholders
1412
+ "cds-skeleton-text": {
1413
+ import: xe
1414
+ // No event handling - presentational loading placeholder
1415
+ },
1416
+ "cds-skeleton-placeholder": {
1417
+ import: Fe
1418
+ // No event handling - presentational loading placeholder
1419
+ }
1420
+ }, Ve = [
1421
+ St,
1422
+ It,
1423
+ Dt,
1424
+ kt,
1425
+ Rt,
1426
+ Lt,
1427
+ Ft,
1428
+ Ht,
1429
+ Yt,
1430
+ Qt,
1431
+ ce,
1432
+ re,
1433
+ ue,
1434
+ he,
1435
+ fe,
1436
+ Ie,
1437
+ _e,
1438
+ we
1439
+ ];
1440
+ function He() {
1441
+ const t = /* @__PURE__ */ new Map();
1442
+ return Ve.forEach((n) => {
1443
+ t.set(n.selector, n);
1444
+ }), [
1445
+ At,
1446
+ Nt,
1447
+ yt,
1448
+ Mt,
1449
+ qt,
1450
+ jt,
1451
+ Wt,
1452
+ ft,
1453
+ te,
1454
+ ae,
1455
+ le,
1456
+ ve,
1457
+ ge,
1458
+ Ee,
1459
+ Ae,
1460
+ ke,
1461
+ Oe,
1462
+ Ue
1463
+ ].forEach((n) => {
1464
+ Object.entries(n).forEach(([o, s]) => {
1465
+ t.set(o, s);
1466
+ });
1467
+ }), t;
1468
+ }
1469
+ function je(t) {
1470
+ const e = /* @__PURE__ */ new Map();
1471
+ if (!t || !(t instanceof Element))
1472
+ return e;
1473
+ for (const o of Object.keys(N))
1474
+ e.set(o, []);
1475
+ for (const [o, s] of Object.entries(N))
1476
+ t.matches(o) && e.get(o).push(t);
1477
+ const n = t.querySelectorAll("*");
1478
+ for (const o of n)
1479
+ for (const [s, i] of Object.entries(N))
1480
+ o.matches(s) && e.get(s).push(o);
1481
+ for (const [o, s] of e.entries())
1482
+ s.length === 0 && e.delete(o);
1483
+ return e;
1484
+ }
1485
+ function Ye(t) {
1486
+ const e = /* @__PURE__ */ new Set();
1487
+ for (const [n, o] of t.entries()) {
1488
+ const s = N[n];
1489
+ s && s.import && o.length > 0 && (Array.isArray(s.import) ? s.import : [s.import]).forEach((c) => e.add(c));
1490
+ }
1491
+ return e;
1492
+ }
1493
+ async function We(t, e) {
1494
+ if (t.size === 0)
1495
+ return;
1496
+ const n = Array.from(t).map(async (o) => (e.has(o) || e.set(o, o()), e.get(o)));
1497
+ await Promise.all(n);
1498
+ }
1499
+ function Xe(t, e) {
1500
+ let n = 0;
1501
+ for (const [o, s] of t.entries()) {
1502
+ const i = N[o];
1503
+ s.forEach((c) => {
1504
+ if (i.init) {
1505
+ i.init.call(e, c);
1506
+ return;
1507
+ }
1508
+ if (i.multiEvent) {
1509
+ const g = a(c);
1510
+ i.events.forEach((f) => {
1511
+ const S = h(c, f.attrName, "event");
1512
+ S && e.listen(c, f.type, (_) => {
1513
+ e.dispatchPanelEvent(S, f.getData(_, g, c));
1514
+ });
1515
+ });
1516
+ return;
1517
+ }
1518
+ const r = a(c), p = r.event;
1519
+ p && e.listen(c, i.event, (g) => {
1520
+ g.stopPropagation();
1521
+ const f = i.getData(g, r, c), S = f._eventOverride || p;
1522
+ delete f._eventOverride, e.dispatchPanelEvent(S, f);
1523
+ });
1524
+ }), n += s.length;
1525
+ }
1526
+ return n;
1527
+ }
1528
+ const N = {
1529
+ ...Object.fromEntries(He())
1530
+ }, Ze = async function(t, e) {
1531
+ const n = je(t);
1532
+ if (n.size === 0) {
1533
+ this.debugMe("[Carbon] No Carbon components found in panel");
1534
+ return;
1535
+ }
1536
+ this.carbonComponents || (this.carbonComponents = /* @__PURE__ */ new Map());
1537
+ for (const [i, c] of n.entries())
1538
+ this.carbonComponents.set(i, c);
1539
+ const o = Ye(n);
1540
+ if (o.size > 0)
1541
+ try {
1542
+ await We(o, e);
1543
+ } catch (i) {
1544
+ console.error("[Carbon] Failed to load some component modules:", i);
1545
+ }
1546
+ const s = Xe(n, this);
1547
+ s > 0 && this.debugMe(`[Carbon] Total components initialized: ${s}`);
1548
+ }, Ke = () => {
1549
+ mt.register("carbon", {
1550
+ /**
1551
+ * Main render function that orchestrates Carbon component initialization.
1552
+ * Called by Panel.parseContent() for each panel that enters the document.
1553
+ *
1554
+ * @param {Element} panel - The panel DOM element to scan and initialize
1555
+ * @param {Map} cache - Import cache to prevent duplicate module loads
1556
+ * @returns {Promise<void>}
1557
+ */
1558
+ render: async function(t, e) {
1559
+ try {
1560
+ await Ze.call(this, t, e);
1561
+ } catch (n) {
1562
+ console.error("[Carbon] Initialization error:", n);
1563
+ }
1564
+ },
1565
+ /**
1566
+ * Cleans up Carbon components when a component is disposed.
1567
+ * Carbon Web Components (native web components) automatically cleanup when
1568
+ * removed from the DOM, so this is primarily here for completeness and
1569
+ * future extensibility.
1570
+ *
1571
+ * @param {Element} _element - The element being disposed
1572
+ */
1573
+ dispose: function(t) {
1574
+ },
1575
+ config: {
1576
+ version: "2.0",
1577
+ description: "IBM Carbon Design System Web Components"
1578
+ }
1579
+ }), console.debug("[Zooy] Carbon Design System library registered");
1580
+ };
1581
+ export {
1582
+ Ke as registerCarbonLibrary
1583
+ };