@trintel/zooy 1.0.1-beta.1 → 1.0.2

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 (254) hide show
  1. package/README.md +4 -4
  2. package/dist/chunks/button--cIzwEQA.js +66 -0
  3. package/dist/chunks/button-i6QyRwAM.js +272 -0
  4. package/dist/chunks/{button-skeleton-BcyctpC3.js → button-skeleton-Bk2Vw5Mq.js} +1 -1
  5. package/dist/chunks/{button-skeleton-DEmHtnd8.js → button-skeleton-D2TeTVpP.js} +5 -5
  6. package/dist/chunks/checkbox-Dyh34VfG.js +201 -0
  7. package/dist/chunks/checkbox-atdz21pu.js +40 -0
  8. package/dist/chunks/{class-map-Dt10N9TS.js → class-map-CziJvhVR.js} +1 -1
  9. package/dist/chunks/{class-map-emHvptF6.js → class-map-hWNVHb09.js} +1 -1
  10. package/dist/chunks/collection-helpers-Bk68Vaau.js +7 -0
  11. package/dist/chunks/collection-helpers-afBvMQaC.js +1 -0
  12. package/dist/chunks/content-switcher-item-88PWpM2j.js +27 -0
  13. package/dist/chunks/content-switcher-item-CpNfKVu-.js +351 -0
  14. package/dist/chunks/defs-C88lSWuJ.js +1 -0
  15. package/dist/chunks/defs-Do0OvCKd.js +1165 -0
  16. package/dist/chunks/dropdown-item-CDbnp5_k.js +621 -0
  17. package/dist/chunks/dropdown-item-CRyAm4Ku.js +69 -0
  18. package/dist/chunks/{focus-Dty12qxz.js → focus-B3iymVyL.js} +1 -1
  19. package/dist/chunks/{focus-Cyj1QfBL.js → focus-WnKGH_xB.js} +1 -1
  20. package/dist/chunks/{icon-loader-C2EqV5wJ.js → icon-loader-C3acLKRm.js} +1 -1
  21. package/dist/chunks/{icon-loader-DS-X84Yz.js → icon-loader-CsKt-G8D.js} +1 -1
  22. package/dist/chunks/{icon-loader-utils-B6kq3DHp.js → icon-loader-utils-DKbXKLDh.js} +1 -1
  23. package/dist/chunks/{icon-loader-utils-BIiU-zGK.js → icon-loader-utils-DXGGCFfD.js} +1 -1
  24. package/dist/chunks/{if-defined--xXVpdta.js → if-defined-D2rCHx2p.js} +1 -1
  25. package/dist/chunks/{if-defined-CFTJFEK6.js → if-defined-uehgcl8e.js} +1 -1
  26. package/dist/chunks/if-non-empty-BEpfFFDX.js +1 -0
  27. package/dist/chunks/{if-non-empty-0zvrDGPr.js → if-non-empty-CcwduEjT.js} +1 -1
  28. package/dist/chunks/index--Q3NhIVC.js +26 -0
  29. package/dist/chunks/index-B16kSrMy.js +259 -0
  30. package/dist/chunks/index-B6vimuhF.js +74 -0
  31. package/dist/chunks/index-B8fGrrzJ.js +235 -0
  32. package/dist/chunks/index-BEDYiyp9.js +15 -0
  33. package/dist/chunks/{index-BKsBoGOO.js → index-BEyCs2cc.js} +147 -135
  34. package/dist/chunks/index-BIJ3miZu.js +103 -0
  35. package/dist/chunks/index-BIvyXnIe.js +62 -0
  36. package/dist/chunks/{index-C6SudlSp.js → index-BMJjuXme.js} +1 -1
  37. package/dist/chunks/{index-B3EmHaO7.js → index-BMNd2Qad.js} +5 -5
  38. package/dist/chunks/{index-TCPPpE9b.js → index-BMNv7Afr.js} +1 -1
  39. package/dist/chunks/index-BMzAaQhy.js +52 -0
  40. package/dist/chunks/index-BODxU-Mu.js +455 -0
  41. package/dist/chunks/{index-CZ2kGMvF.js → index-BPRteboN.js} +6 -6
  42. package/dist/chunks/{index-1G2UuijG.js → index-BTUYIkmg.js} +9 -9
  43. package/dist/chunks/index-BUcMLg1n.js +35 -0
  44. package/dist/chunks/index-BVpkxHll.js +15 -0
  45. package/dist/chunks/index-BWBjCDwY.js +79 -0
  46. package/dist/chunks/index-BYHXKkvf.js +381 -0
  47. package/dist/chunks/index-BeKAg3cB.js +65 -0
  48. package/dist/chunks/index-Bgo3KCFI.js +364 -0
  49. package/dist/chunks/{index-DXoeeipa.js → index-Bh3jqbKV.js} +6 -6
  50. package/dist/chunks/{index-Ci2M9li9.js → index-Bk2MEnMu.js} +181 -182
  51. package/dist/chunks/index-BlAm81hv.js +79 -0
  52. package/dist/chunks/index-Bp5LwA_m.js +75 -0
  53. package/dist/chunks/index-BqExj5O7.js +158 -0
  54. package/dist/chunks/index-BrqEja9V.js +452 -0
  55. package/dist/chunks/{index-h66Bp4Cx.js → index-BtPiuBUm.js} +1 -1
  56. package/dist/chunks/index-Bu6R2tix.js +22 -0
  57. package/dist/chunks/index-Bug3BjgA.js +71 -0
  58. package/dist/chunks/index-BwhAoVy-.js +254 -0
  59. package/dist/chunks/index-BxGUZ-qP.js +17 -0
  60. package/dist/chunks/index-ByNfpHAO.js +368 -0
  61. package/dist/chunks/index-Byf_K1x1.js +111 -0
  62. package/dist/chunks/index-C-P030e_.js +260 -0
  63. package/dist/chunks/{index-BhJiw5Wx.js → index-C1Eehpcx.js} +1 -1
  64. package/dist/chunks/index-C4GpRDm7.js +15 -0
  65. package/dist/chunks/{index-Bd60xpxv.js → index-C5b2680a.js} +1 -1
  66. package/dist/chunks/{index-Df3VILTD.js → index-C5s9Z5Ou.js} +4 -4
  67. package/dist/chunks/index-C9HJjC2j.js +3 -0
  68. package/dist/chunks/index-CFG5exAl.js +19 -0
  69. package/dist/chunks/index-CHIQ4wsM.js +57 -0
  70. package/dist/chunks/index-CO_QGXLN.js +881 -0
  71. package/dist/chunks/index-CPLpCt6z.js +30 -0
  72. package/dist/chunks/{index-CArtDXbg.js → index-CP_zaIyv.js} +1 -1
  73. package/dist/chunks/index-CPzh43Kr.js +45 -0
  74. package/dist/chunks/{index-B1YLd9rD.js → index-CTEnXoVq.js} +1 -1
  75. package/dist/chunks/{index-CmA3uuMd.js → index-CUI3NPWg.js} +1 -1
  76. package/dist/chunks/{index-CZwmnbDv.js → index-C_JOABLw.js} +1 -1
  77. package/dist/chunks/index-C_NhQPDA.js +27 -0
  78. package/dist/chunks/{index-Cl1_9l1N.js → index-CbiknV4d.js} +1 -1
  79. package/dist/chunks/{index-DEcgB0oH.js → index-CcK76f0I.js} +4 -4
  80. package/dist/chunks/{index-D1PpRn2p.js → index-Cd1j7Qp1.js} +40 -31
  81. package/dist/chunks/{index-LR7m5odx.js → index-Chyr-DU2.js} +3 -3
  82. package/dist/chunks/index-CjVvmbL6.js +22 -0
  83. package/dist/chunks/index-CsKII5mz.js +1 -0
  84. package/dist/chunks/index-CwpgmKTP.js +87 -0
  85. package/dist/chunks/index-CxJCioQg.js +77 -0
  86. package/dist/chunks/{index-CKBFfWOV.js → index-CyF5Kef-.js} +7 -7
  87. package/dist/chunks/index-CyR413wv.js +511 -0
  88. package/dist/chunks/{index-C3LD0iwa.js → index-CyvZ9jxn.js} +12 -12
  89. package/dist/chunks/index-Czs-UAWh.js +129 -0
  90. package/dist/chunks/{index-DocEKbBo.js → index-D-iqTNbL.js} +5 -5
  91. package/dist/chunks/index-D9nVgUNo.js +121 -0
  92. package/dist/chunks/{index-BJHILyIN.js → index-DDUqY4Rl.js} +3 -3
  93. package/dist/chunks/index-DEdeVoZn.js +42 -0
  94. package/dist/chunks/index-DEtGo4Q7.js +150 -0
  95. package/dist/chunks/{index-RlFlo7pl.js → index-DGvLgX2O.js} +1 -1
  96. package/dist/chunks/{index-cMdyiXPa.js → index-DGvVa-5J.js} +1 -1
  97. package/dist/chunks/index-DIg4fP-p.js +683 -0
  98. package/dist/chunks/index-DNkLJEg1.js +1604 -0
  99. package/dist/chunks/index-DPCfOgTU.js +89 -0
  100. package/dist/chunks/index-DPnGRDRl.js +1 -0
  101. package/dist/chunks/index-DQ4Y-fiZ.js +150 -0
  102. package/dist/chunks/{index-DkUS58Ay.js → index-DSMPUWJU.js} +14 -14
  103. package/dist/chunks/{index-Clei4V9i.js → index-DSgb2u7b.js} +1 -1
  104. package/dist/chunks/index-DTadLLRG.js +160 -0
  105. package/dist/chunks/index-DTtMSAgV.js +25 -0
  106. package/dist/chunks/index-DX2JlRat.js +12 -0
  107. package/dist/chunks/index-DZrmJ7Ll.js +243 -0
  108. package/dist/chunks/{index-CYg05Ph9.js → index-DdkIREYU.js} +4 -4
  109. package/dist/chunks/index-DkphY0sd.js +46 -0
  110. package/dist/chunks/index-Do9f8Pwe.js +45 -0
  111. package/dist/chunks/index-Dr4evLL7.js +414 -0
  112. package/dist/chunks/{index-BG3BMHhy.js → index-DwCXQC7X.js} +3 -3
  113. package/dist/chunks/index-DwDG_y9_.js +58 -0
  114. package/dist/chunks/index-F2zwTZm1.js +19 -0
  115. package/dist/chunks/index-HbS1lUW6.js +12 -0
  116. package/dist/chunks/index-LtB-4-X9.js +1 -0
  117. package/dist/chunks/index-QuyEX50y.js +49 -0
  118. package/dist/chunks/{index-CYpHcMws.js → index-WpBhhuED.js} +4 -4
  119. package/dist/chunks/{index-DQZqjZ8k.js → index-d0CqW2Cm.js} +7 -7
  120. package/dist/chunks/{index-C_Xg4nHN.js → index-el9l-ZQy.js} +7 -7
  121. package/dist/chunks/index-gfbRBI-d.js +1 -0
  122. package/dist/chunks/index-hhX-bWEv.js +252 -0
  123. package/dist/chunks/{index-Dl6HFhg1.js → index-jdx-M5Y-.js} +1 -1
  124. package/dist/chunks/index-nfJ9ioGW.js +406 -0
  125. package/dist/chunks/{index-BQNhvN2i.js → index-oS8XvY4G.js} +4 -4
  126. package/dist/chunks/index-t9TINCcm.js +563 -0
  127. package/dist/chunks/index-tQGRhvw0.js +337 -0
  128. package/dist/chunks/index-tdmIA8Xp.js +291 -0
  129. package/dist/chunks/index-w027CjA0.js +81 -0
  130. package/dist/chunks/index-wgp15jn2.js +188 -0
  131. package/dist/chunks/index-xipeWGGU.js +2 -0
  132. package/dist/chunks/{loading-icon-D7mJr3sa.js → loading-icon-CN-iehcR.js} +2 -2
  133. package/dist/chunks/{loading-icon-Bw73Z2Lq.js → loading-icon-q__8yLZw.js} +1 -1
  134. package/dist/chunks/main-BPWCMI5R.js +65 -0
  135. package/dist/chunks/{main-DTOZMPON.js → main-BywCEBtD.js} +1437 -1031
  136. package/dist/chunks/{property-C5teVlku.js → property-DCTz3KPt.js} +1 -1
  137. package/dist/chunks/{property-Coy6Dag6.js → property-DzfJpYmn.js} +1 -1
  138. package/dist/chunks/{register-BO2Fr57T.js → register-B4yRiHm6.js} +1 -1
  139. package/dist/chunks/register-C3XDWad0.js +1618 -0
  140. package/dist/chunks/{register-CHuMnx--.js → register-CyNp_638.js} +1 -1
  141. package/dist/chunks/register-DpOrINOx.js +1 -0
  142. package/dist/chunks/search-BCJx6Xft.js +240 -0
  143. package/dist/chunks/search-CzmoEHwa.js +30 -0
  144. package/dist/chunks/select-0jyl720Y.js +357 -0
  145. package/dist/chunks/select-DC0T8Fw_.js +76 -0
  146. package/dist/chunks/{settings-NO9fjW0P.js → settings-Bgpv8zuU.js} +2 -0
  147. package/dist/chunks/{settings-Dy9UPb4i.js → settings-jvP7vP60.js} +2 -0
  148. package/dist/chunks/{state-BFc9dfyj.js → state-BiEAGUqO.js} +1 -1
  149. package/dist/chunks/{state-C2XTwLOv.js → state-DJQLwKiU.js} +1 -1
  150. package/dist/chunks/text-input-BGuFqOdN.js +372 -0
  151. package/dist/chunks/text-input-BPvBDzky.js +68 -0
  152. package/dist/chunks/tooltip-content-BOefn0hU.js +3 -0
  153. package/dist/chunks/tooltip-content-CWdOnBaw.js +135 -0
  154. package/dist/chunks/{unsafe-html-H7RRvoR7.js → unsafe-html-Bi2pB4Lb.js} +1 -1
  155. package/dist/chunks/{unsafe-html-9YCxB3h1.js → unsafe-html-xqClX-6M.js} +1 -1
  156. package/dist/zooy.cjs.js +1 -1
  157. package/dist/zooy.es.js +11 -11
  158. package/package.json +2 -2
  159. package/src/sass/carbon.scss +78 -4
  160. package/src/sass/panels.scss +263 -377
  161. package/src/sass/split.scss +0 -13
  162. package/dist/chunks/button-CgQW6Alg.js +0 -272
  163. package/dist/chunks/button-CnwdjMNF.js +0 -66
  164. package/dist/chunks/checkbox-Bt024Adv.js +0 -40
  165. package/dist/chunks/checkbox-D2LeqAn8.js +0 -201
  166. package/dist/chunks/collection-helpers-BwUB2CEz.js +0 -8
  167. package/dist/chunks/collection-helpers-CYLIiyii.js +0 -1
  168. package/dist/chunks/content-switcher-item-D6gOZCuS.js +0 -351
  169. package/dist/chunks/content-switcher-item-Dtv8UD1x.js +0 -27
  170. package/dist/chunks/defs-DMmigODC.js +0 -1077
  171. package/dist/chunks/defs-DPD20sPK.js +0 -1
  172. package/dist/chunks/dropdown-item-BDRUe-IF.js +0 -621
  173. package/dist/chunks/dropdown-item-DNLmqxnr.js +0 -69
  174. package/dist/chunks/if-non-empty-BIwvmklX.js +0 -1
  175. package/dist/chunks/index-21j_5emj.js +0 -35
  176. package/dist/chunks/index-82K_ozYZ.js +0 -455
  177. package/dist/chunks/index-B4JPT-gj.js +0 -683
  178. package/dist/chunks/index-B5-56fkV.js +0 -62
  179. package/dist/chunks/index-B612bWya.js +0 -58
  180. package/dist/chunks/index-B8nOkbPA.js +0 -77
  181. package/dist/chunks/index-BAEdnwkZ.js +0 -25
  182. package/dist/chunks/index-BAMMtRO9.js +0 -214
  183. package/dist/chunks/index-BC-p6lrw.js +0 -337
  184. package/dist/chunks/index-BEOc7JG-.js +0 -16
  185. package/dist/chunks/index-BHWaezgU.js +0 -259
  186. package/dist/chunks/index-BNjgzCq_.js +0 -1
  187. package/dist/chunks/index-BTND2b3S.js +0 -19
  188. package/dist/chunks/index-BZmOT6Xm.js +0 -89
  189. package/dist/chunks/index-B_C9vt_w.js +0 -30
  190. package/dist/chunks/index-B_JMGygD.js +0 -188
  191. package/dist/chunks/index-Bl6sE0-K.js +0 -1
  192. package/dist/chunks/index-BmvLxuoI.js +0 -16
  193. package/dist/chunks/index-BwMEAhRr.js +0 -2
  194. package/dist/chunks/index-BwOJ4JFm.js +0 -1604
  195. package/dist/chunks/index-BzmpjZ1o.js +0 -26
  196. package/dist/chunks/index-C06cFvgb.js +0 -406
  197. package/dist/chunks/index-C4JzGVcF.js +0 -49
  198. package/dist/chunks/index-C5nYdcCH.js +0 -875
  199. package/dist/chunks/index-C6WHuZdF.js +0 -79
  200. package/dist/chunks/index-C8YWVLB0.js +0 -128
  201. package/dist/chunks/index-C8miW4lw.js +0 -364
  202. package/dist/chunks/index-CDNshf0_.js +0 -57
  203. package/dist/chunks/index-CFYfFa1Z.js +0 -235
  204. package/dist/chunks/index-CJZtiqY-.js +0 -22
  205. package/dist/chunks/index-CMD0FIe-.js +0 -41
  206. package/dist/chunks/index-COcNpxlj.js +0 -87
  207. package/dist/chunks/index-CUTw26ex.js +0 -368
  208. package/dist/chunks/index-CUd_43Fv.js +0 -414
  209. package/dist/chunks/index-CXgbBzE5.js +0 -252
  210. package/dist/chunks/index-C_S3O2rJ.js +0 -79
  211. package/dist/chunks/index-CbuopDOc.js +0 -1
  212. package/dist/chunks/index-CcxiTkam.js +0 -150
  213. package/dist/chunks/index-Ce9jg1n7.js +0 -15
  214. package/dist/chunks/index-CfLbYyk0.js +0 -3
  215. package/dist/chunks/index-CkMd-UJg.js +0 -52
  216. package/dist/chunks/index-Co5m8M3y.js +0 -12
  217. package/dist/chunks/index-CoPuejcu.js +0 -511
  218. package/dist/chunks/index-Cq6Vdh__.js +0 -215
  219. package/dist/chunks/index-Cwe1NunF.js +0 -46
  220. package/dist/chunks/index-D1OTs_P5.js +0 -1
  221. package/dist/chunks/index-D3ldTviC.js +0 -150
  222. package/dist/chunks/index-DBvXH68A.js +0 -26
  223. package/dist/chunks/index-DC7qmnoW.js +0 -74
  224. package/dist/chunks/index-DDRkmmQp.js +0 -156
  225. package/dist/chunks/index-DH9eR0DH.js +0 -32
  226. package/dist/chunks/index-DLUPGsWM.js +0 -71
  227. package/dist/chunks/index-D_pgjOiX.js +0 -81
  228. package/dist/chunks/index-DktSeVhc.js +0 -563
  229. package/dist/chunks/index-Dqe5xXlT.js +0 -160
  230. package/dist/chunks/index-DuGskRLI.js +0 -243
  231. package/dist/chunks/index-DyoG-yF-.js +0 -75
  232. package/dist/chunks/index-E_bjKqnf.js +0 -15
  233. package/dist/chunks/index-GRYR4d36.js +0 -394
  234. package/dist/chunks/index-H-w5fBQG.js +0 -65
  235. package/dist/chunks/index-HvLIPR2y.js +0 -291
  236. package/dist/chunks/index-OhwD9m-A.js +0 -12
  237. package/dist/chunks/index-XTPnXw_W.js +0 -45
  238. package/dist/chunks/index-ZyhwV5v-.js +0 -452
  239. package/dist/chunks/index-cFX6zBu4.js +0 -19
  240. package/dist/chunks/index-fghrBFfu.js +0 -103
  241. package/dist/chunks/index-wTRaGtNG.js +0 -45
  242. package/dist/chunks/index-wigDmvr8.js +0 -121
  243. package/dist/chunks/index-y_a1ZQAA.js +0 -111
  244. package/dist/chunks/main-A63e59aD.js +0 -67
  245. package/dist/chunks/register-B533U9U9.js +0 -1
  246. package/dist/chunks/register-ClkXTZwT.js +0 -1383
  247. package/dist/chunks/search-CsRC23Cp.js +0 -240
  248. package/dist/chunks/search-DsyFfaxl.js +0 -30
  249. package/dist/chunks/select-BoaR85ix.js +0 -76
  250. package/dist/chunks/select-CKe8zwIo.js +0 -357
  251. package/dist/chunks/text-input-BuK8MjZG.js +0 -68
  252. package/dist/chunks/text-input-D2BsjPTx.js +0 -372
  253. package/dist/chunks/tooltip-content-B6aAm7Zu.js +0 -3
  254. package/dist/chunks/tooltip-content-DXrPA6JW.js +0 -135
@@ -0,0 +1,1618 @@
1
+ import { _ as W, c as mt, d as ut, g as r, e as ht, B as vt, o as ft, h as gt, p as Et, j as E, C as bt } from "./main-BywCEBtD.js";
2
+ var Ct = /* @__PURE__ */ W(function(e, n) {
3
+ return n == null || n !== n ? e : n;
4
+ }), St = /* @__PURE__ */ mt(function(e, n, o) {
5
+ return Ct(e, ut(n, o));
6
+ }), It = /* @__PURE__ */ W(function(e, n) {
7
+ for (var o = {}, s = 0; s < e.length; )
8
+ e[s] in n && (o[e[s]] = n[e[s]]), s += 1;
9
+ return o;
10
+ }), B = {}, U;
11
+ function At() {
12
+ return U || (U = 1, (function(t) {
13
+ t.TABLE_SIZE = void 0, (function(n) {
14
+ n.XS = "xs", n.SM = "sm", n.MD = "md", n.LG = "lg", n.XL = "xl";
15
+ })(t.TABLE_SIZE || (t.TABLE_SIZE = {})), t.TABLE_SORT_DIRECTION = void 0, (function(n) {
16
+ n.NONE = "none", n.ASCENDING = "ascending", n.DESCENDING = "descending";
17
+ })(t.TABLE_SORT_DIRECTION || (t.TABLE_SORT_DIRECTION = {})), t.TABLE_SORT_CYCLE = void 0, (function(n) {
18
+ 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";
19
+ })(t.TABLE_SORT_CYCLE || (t.TABLE_SORT_CYCLE = {}));
20
+ const e = {
21
+ [t.TABLE_SORT_CYCLE.BI_STATES_FROM_ASCENDING]: [
22
+ t.TABLE_SORT_DIRECTION.ASCENDING,
23
+ t.TABLE_SORT_DIRECTION.DESCENDING
24
+ ],
25
+ [t.TABLE_SORT_CYCLE.BI_STATES_FROM_DESCENDING]: [
26
+ t.TABLE_SORT_DIRECTION.DESCENDING,
27
+ t.TABLE_SORT_DIRECTION.ASCENDING
28
+ ],
29
+ [t.TABLE_SORT_CYCLE.TRI_STATES_FROM_ASCENDING]: [
30
+ t.TABLE_SORT_DIRECTION.NONE,
31
+ t.TABLE_SORT_DIRECTION.ASCENDING,
32
+ t.TABLE_SORT_DIRECTION.DESCENDING
33
+ ],
34
+ [t.TABLE_SORT_CYCLE.TRI_STATES_FROM_DESCENDING]: [
35
+ t.TABLE_SORT_DIRECTION.NONE,
36
+ t.TABLE_SORT_DIRECTION.DESCENDING,
37
+ t.TABLE_SORT_DIRECTION.ASCENDING
38
+ ]
39
+ };
40
+ t.TABLE_SORT_CYCLES = e;
41
+ })(B)), B;
42
+ }
43
+ var Dt = At();
44
+ const Nt = () => import("./index-DNkLJEg1.js"), Y = () => import("./index-Bgo3KCFI.js"), Pt = {
45
+ "cds-pagination": {
46
+ import: Y,
47
+ /**
48
+ * Initialize a standalone pagination component.
49
+ *
50
+ * Note: The pagination parameter is a CDSPagination instance from @carbon/web-components.
51
+ * To access the CDSPagination class and its static properties:
52
+ * const CDSPagination = customElements.get('cds-pagination');
53
+ * // or
54
+ * const CDSPagination = pagination.constructor;
55
+ *
56
+ * @param {CDSPagination} pagination - The CDSPagination custom element instance
57
+ * @this {Panel} The panel instance
58
+ */
59
+ init: function(t) {
60
+ const e = this, n = customElements.get("cds-pagination");
61
+ let o = null;
62
+ e.listen(t, n.eventChangeCurrent, (s) => {
63
+ const i = s.detail.page, c = t.pageSize, a = (i - 1) * c;
64
+ a !== o && (o = a, e.dispatchPanelEvent("pagination-changed-current", {
65
+ detail: {
66
+ page: i,
67
+ pageSize: c,
68
+ action: "page-change"
69
+ }
70
+ }));
71
+ }), e.listen(t, n.eventPageSizeChanged, (s) => {
72
+ const i = t.pageSize;
73
+ o = null, e.dispatchPanelEvent("pagination-changed-page-size", {
74
+ detail: {
75
+ page: 1,
76
+ // Reset to page 1 when changing size
77
+ pageSize: i,
78
+ action: "page-size-change"
79
+ }
80
+ });
81
+ });
82
+ }
83
+ }
84
+ }, V = (t, e, n) => {
85
+ const o = customElements.get("cds-table"), s = customElements.get("cds-pagination"), i = customElements.get(o.selectorTableBatchActions);
86
+ customElements.get("cds-popover");
87
+ const c = e.dataBinder, a = e.pagination, d = e.skeleton, b = e.querySelector(o.selectorTableToolbarSearch), S = e.querySelector(o.selectorTableBatchActions), P = e.querySelector(o.selectorTableToolbarContent), O = e.querySelector(o.selectorTableBody), Z = ["button", "a", "input", "select", "textarea", '[role="button"]', ".cds--table-expand", ".cds--table-column-checkbox"].join(","), x = e.querySelectorAll(o.selectorHeaderCell + "[is-sortable]"), J = e.isSortable || x.length > 0, R = Symbol(), M = Symbol(), _ = /* @__PURE__ */ new Map(), K = (l) => {
88
+ t.listen(e, "click", (p) => {
89
+ const m = p.target.closest(o.selectorTableRow);
90
+ if (!m || p.composedPath().some((h) => h.matches && h.matches(Z))) return;
91
+ p.stopPropagation();
92
+ const u = r(m);
93
+ t.dispatchPanelEvent(l, {
94
+ ...u
95
+ });
96
+ });
97
+ }, Q = (l) => {
98
+ t.listen(e, o.eventExpandoToggle, (p) => {
99
+ const m = p.target, u = m.tagName === "CDS-TABLE-HEADER-ROW", h = p.detail.expanded, f = r(m), C = {
100
+ tableAttrs: n,
101
+ ...f,
102
+ target: m,
103
+ allRows: u,
104
+ didExpand: h
105
+ };
106
+ t.dispatchPanelEvent(l, C);
107
+ });
108
+ }, tt = (l) => {
109
+ _.set(R, (p) => {
110
+ t.dispatchPanelEvent(l, p);
111
+ });
112
+ }, et = (l) => {
113
+ _.set(M, (p) => {
114
+ const m = p.detail.selectedRows, u = Math.min(m.length, S.totalRowsCount), h = p.target, f = r(h), C = m.map(r), I = {
115
+ tableAttrs: n,
116
+ ...f,
117
+ target: h,
118
+ selectCount: u,
119
+ selection: C
120
+ };
121
+ t.dispatchPanelEvent(l, I);
122
+ });
123
+ }, nt = (l) => {
124
+ t.listen(e, o.eventTableRowSelect, (p) => {
125
+ const m = p.target, u = p.detail.selectedRows || [], h = u.length, f = u.map(r), C = r(m), I = {
126
+ tableAttrs: n,
127
+ ...C,
128
+ selectCount: h,
129
+ selection: f,
130
+ target: m
131
+ };
132
+ t.dispatchPanelEvent(l, I);
133
+ });
134
+ }, ot = () => {
135
+ t.listen(e, o.eventBeforeSort, (l) => {
136
+ const p = l.target, m = l.detail.oldSortDirection, u = l.detail.sortDirection, h = r(p), f = h.sortField, C = u === Dt.TABLE_SORT_DIRECTION.DESCENDING ? `-${f}` : f;
137
+ l.cancelBubble = !0, l.stopPropagation(), l.preventDefault(), O.innerHTML = "", d && d.show(), x.forEach((D, v) => {
138
+ D === p ? (D.setAttribute("sort-active", "true"), D.setAttribute("sort-direction", u)) : (D.removeAttribute("sort-active"), D.setAttribute("sort-direction", "none"));
139
+ });
140
+ const I = { ordering: C };
141
+ c.fetchData(I).then(() => {
142
+ a.setData(c), d && d.hide();
143
+ }), _.has(R) && _.get(R)({
144
+ tableAttrs: n,
145
+ ...h,
146
+ sortNow: u,
147
+ sortWas: m,
148
+ sortField: f,
149
+ ordering: C,
150
+ target: p
151
+ });
152
+ });
153
+ }, st = () => {
154
+ t.listen(e, o.eventTableRowSelectAll, (l) => {
155
+ l.detail.selectedRows.length === 0 && e.querySelectorAll(o.selectorTableRow).forEach((p) => {
156
+ p.disabled = !1, p.selected = !1;
157
+ }), _.has(M) && _.get(M)(l);
158
+ });
159
+ }, it = () => {
160
+ t.listen(e, o.eventBeforeChangeSelectionAll, (l) => {
161
+ l.stopPropagation(), l.detail.callback && l.detail.callback();
162
+ });
163
+ }, ct = (l) => {
164
+ const p = e.querySelector("cds-table-header-row");
165
+ t.listen(l, i.eventClickSelectAll, (m) => {
166
+ m.stopPropagation(), p.dispatchEvent(new CustomEvent(o.eventBeforeChangeSelectionAll, {
167
+ bubbles: !0,
168
+ cancelable: !0,
169
+ composed: !0,
170
+ detail: {
171
+ selected: !0,
172
+ callback: () => {
173
+ l.selectedRowsCount = l.totalRowsCount, e.querySelectorAll(o.selectorTableRow).forEach((u) => {
174
+ u.disabled = !0;
175
+ });
176
+ }
177
+ }
178
+ }));
179
+ });
180
+ }, at = (l) => {
181
+ t.listen(l, "keydown", (p) => {
182
+ if (p.key === "Enter") {
183
+ d && d.show(), a.totalItems = 0, e.querySelector("cds-table-body").replaceChildren();
184
+ const u = { search: l.value || "", offset: 0 };
185
+ c.fetchData(u).then(() => {
186
+ a.setData(c), d && d.hide();
187
+ });
188
+ }
189
+ });
190
+ }, rt = (l) => {
191
+ t.listen(l, o.eventSearchInput, (p) => {
192
+ if ((p.detail.value || "") === "") {
193
+ const u = { search: "", offset: 0 };
194
+ d && d.show(), c.fetchData(u).then(() => {
195
+ d && d.hide(), a.setData(c);
196
+ });
197
+ }
198
+ });
199
+ }, lt = (l) => {
200
+ l.caret = !1;
201
+ const p = l.querySelector("cds-icon-button, button:not([slot])"), m = l.querySelectorAll("cds-checkbox"), u = l.querySelectorAll("cds-modal-footer-button"), h = [...l.querySelectorAll("cds-checkbox-group")].map(r).map(St("noop", ["zoo", "filter", "field"])).reduce(
202
+ (v, g) => (v[g] = null, v),
203
+ { offset: 0 }
204
+ );
205
+ if (!p || !u) {
206
+ console.error("Improperly configured Batch Filter popover");
207
+ return;
208
+ }
209
+ new MutationObserver(() => {
210
+ l.classList.toggle("cds--overflow-menu--open", l.open);
211
+ }).observe(l, {
212
+ attributes: !0,
213
+ attributeFilter: ["open"]
214
+ });
215
+ const f = Symbol(), C = Symbol(), I = [...u].reduce((v, g, N) => (g.hasAttribute("reset-filter") && v.set(f, g), g.hasAttribute("apply-filter") && v.set(C, g), v), /* @__PURE__ */ new Map()), D = () => {
216
+ const v = /* @__PURE__ */ new Map();
217
+ return m.forEach((g) => {
218
+ const N = g.getAttribute("id");
219
+ if (!N || !N.includes(":")) return;
220
+ const [k, T] = N.split(":");
221
+ v.has(k) || v.set(k, []), g.checked && v.get(k).push(T);
222
+ }), v;
223
+ };
224
+ if (I.has(f)) {
225
+ const v = (g) => g.checked = !1;
226
+ t.listen(I.get(f), "click", (g) => {
227
+ g.stopPropagation(), m.forEach(v), d && d.show(), c.fetchData(h).then(() => {
228
+ a && a.setData(c), d && d.hide(), l.open = !1;
229
+ });
230
+ });
231
+ }
232
+ I.has(C) && t.listen(I.get(C), "click", (v) => {
233
+ v.stopPropagation();
234
+ const g = [...D()].reduce((N, [k, T]) => (N[k] = T === [] ? null : T, N), { offset: 0 });
235
+ d && d.show(), c.fetchData(g).then(() => {
236
+ a && a.setData(c), d && d.hide(), l.open = !1;
237
+ });
238
+ }), t.listen(p, "click", (v) => {
239
+ v.stopPropagation(), l.open = !l.open, l.classList.toggle("cds--overflow-menu--open", l.open);
240
+ });
241
+ }, dt = () => {
242
+ t.listen(a, s.eventPageSizeChanged, (l) => {
243
+ const m = {
244
+ limit: a.pageSize,
245
+ offset: 0
246
+ };
247
+ c.fetchData(m).then(() => {
248
+ a.setData(c);
249
+ });
250
+ });
251
+ }, pt = () => {
252
+ let l = null;
253
+ t.listen(a, s.eventChangeCurrent, (p) => {
254
+ const { page: m } = p.detail, u = a.pageSize, h = (m - 1) * u;
255
+ if (h !== l) {
256
+ l = h;
257
+ const f = { limit: u, offset: h };
258
+ c.fetchData(f).then(() => {
259
+ a.setData(c), d && d.hide();
260
+ });
261
+ }
262
+ });
263
+ };
264
+ c && a && (dt(), pt()), c && b && (at(b), rt(b));
265
+ const F = P.querySelectorAll("cds-popover[data-batch-filter]");
266
+ c && F && F.forEach(lt), e.isSelectable && (st(), it(), S && ct(S)), c && J && ot();
267
+ const G = {
268
+ zoo: {
269
+ event: {
270
+ row: {
271
+ click: K,
272
+ expand: Q,
273
+ check: {
274
+ one: nt,
275
+ all: et
276
+ }
277
+ },
278
+ column: {
279
+ sort: tt
280
+ }
281
+ }
282
+ }
283
+ };
284
+ ft(n).forEach(([l, p]) => {
285
+ gt(l, G) && Et(l, G)(p);
286
+ });
287
+ }, _t = (t) => {
288
+ const e = document.createElement("cds-pagination");
289
+ 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) => {
290
+ const o = document.createElement("cds-select-item");
291
+ o.value = n.toString(), o.textContent = n.toString(), e.appendChild(o);
292
+ }), e.setData = (n) => {
293
+ if (n.isPaginated) {
294
+ const { count: o } = It(["count"], n.data), s = Math.ceil(o / n.limit), i = 100;
295
+ e.pagesUnknown = s > i, e.totalItems = o, e.pagesUnknown ? e.formatStatusWithIndeterminateTotal = ({ start: c, end: a }) => `${c}–${a} of ${o} item${o <= 1 ? "" : "s"}` : delete e.formatStatusWithIndeterminateTotal;
296
+ }
297
+ }, e;
298
+ }, kt = (t) => {
299
+ if (!t.parentNode) {
300
+ console.error("[Carbon Table] Cannot create skeleton: table has no parent node");
301
+ return;
302
+ }
303
+ 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"), a = document.createElement("cds-table-skeleton");
304
+ a.showHeader = e || n, a.showToolbar = o, a.zebra = i, a.columnCount = s, a.size = c, a.show = () => a.classList.remove("hidden"), a.hide = () => a.classList.add("hidden");
305
+ const d = document.createElement("div");
306
+ return d.classList.add("zoo-datatable-skeleton-wrapper"), t.parentNode.insertBefore(d, t), d.appendChild(a), d.appendChild(t), a;
307
+ }, yt = (t, e) => {
308
+ const n = e.getAttribute("zoo-url-api"), o = parseInt(e.getAttribute("data-page-size") || 25, 10);
309
+ if (n)
310
+ return new vt(t, n, e, {
311
+ urlParams: { limit: o }
312
+ });
313
+ }, Tt = {
314
+ selector: "cds-table",
315
+ import: [Nt, Y],
316
+ /**
317
+ * Initialize a Carbon data table component.
318
+ *
319
+ * Note: The cdsTable parameter is a CDSTable instance from @carbon/web-components.
320
+ * To access the CDSTable class and its static properties/methods, use:
321
+ * const CDSTable = customElements.get('cds-table');
322
+ * // or
323
+ * const CDSTable = cdsTable.constructor;
324
+ *
325
+ * Example - Using static event names:
326
+ * const CDSTable = customElements.get('cds-table');
327
+ * panel.listen(cdsTable, CDSTable.eventBeforeChangeSelection, e => {...});
328
+ *
329
+ * Initialization flow:
330
+ * 1. Extract semantic attributes from table element
331
+ * 2. Check for zoo-url-api attribute to determine if Binder is needed
332
+ * 3. If Binder:
333
+ * - Create Binder instance with configured page size
334
+ * - Create and show skeleton loader
335
+ * - Create pagination component
336
+ * - Fetch initial data
337
+ * - Remove skeleton and configure pagination when data arrives
338
+ * - Set up event handlers after data is loaded (prevents duplicate initial fetch)
339
+ * 4. If no Binder:
340
+ * - Set up event handlers immediately for client-side behavior
341
+ *
342
+ * @param {CDSTable} cdsTable - The CDSTable custom element instance (from @carbon/web-components)
343
+ * @this {Panel} The panel instance
344
+ */
345
+ init: function(t) {
346
+ const e = r(t), n = this, o = yt(n, t);
347
+ if (ht(o)) {
348
+ t.dataBinder = o;
349
+ const s = kt(t);
350
+ t.skeleton = s;
351
+ const i = _t(o);
352
+ t.pagination = i, t.after(i), o.fetchData().then((c) => {
353
+ s.hide(), i.setData(o), V(n, t, e);
354
+ });
355
+ } else
356
+ V(n, t, e);
357
+ }
358
+ }, A = () => import("./index-BYHXKkvf.js"), wt = {
359
+ selector: "cds-modal",
360
+ import: A,
361
+ /**
362
+ * @param {CDSModal} modal - The CDSModal custom element instance
363
+ * @this {Panel} The panel instance
364
+ */
365
+ init: function(t) {
366
+ const e = customElements.get("cds-modal"), n = r(t), o = E(t, "open-event", "event");
367
+ o && this.listen(t, "cds-modal-beingopened", (c) => {
368
+ this.dispatchPanelEvent(o, {
369
+ ...n,
370
+ action: "opened"
371
+ });
372
+ });
373
+ const s = t.getAttribute("before-close-event");
374
+ s && this.listen(t, e.eventBeforeClose, (c) => {
375
+ this.dispatchPanelEvent(s, {
376
+ ...n,
377
+ action: "closing",
378
+ cancelable: !0
379
+ });
380
+ }), this.listen(t, e.eventClose, (c) => {
381
+ this.dispatchPanelEvent("destroy_me", {
382
+ ...n,
383
+ action: "closed",
384
+ triggeredBy: c.detail?.triggeredBy
385
+ });
386
+ });
387
+ const i = E(t, "primary-event", "event");
388
+ i && this.listen(t, "cds-modal-primary-focus", (c) => {
389
+ this.dispatchPanelEvent(i, {
390
+ ...n,
391
+ action: "primary"
392
+ });
393
+ });
394
+ }
395
+ }, Ot = {
396
+ "cds-modal-header": {
397
+ import: A
398
+ // No event handling - presentational header wrapper
399
+ },
400
+ "cds-modal-heading": {
401
+ import: A
402
+ // No event handling - presentational heading element
403
+ },
404
+ "cds-modal-label": {
405
+ import: A
406
+ // No event handling - presentational label element
407
+ },
408
+ "cds-modal-close-button": {
409
+ import: A
410
+ // No event handling - close button handled by modal itself via data-modal-close
411
+ },
412
+ "cds-modal-body": {
413
+ import: A
414
+ // No event handling - presentational body wrapper
415
+ },
416
+ "cds-modal-body-content": {
417
+ import: A
418
+ // No event handling - presentational content wrapper
419
+ },
420
+ "cds-modal-footer": {
421
+ import: A
422
+ // No event handling - presentational footer wrapper
423
+ },
424
+ "cds-modal-footer-button": {
425
+ import: A,
426
+ init: function(t) {
427
+ const e = r(t);
428
+ if (t.getAttribute("type") === "submit") {
429
+ this.listen(t, "click", (s) => {
430
+ let i = t.closest("form");
431
+ if (!i) {
432
+ const c = t.getAttribute("form");
433
+ c && (i = document.getElementById(c));
434
+ }
435
+ i && i.requestSubmit();
436
+ });
437
+ return;
438
+ }
439
+ const o = e.event;
440
+ o && this.listen(t, "click", (s) => {
441
+ s.stopPropagation(), this.dispatchPanelEvent(o, e);
442
+ });
443
+ }
444
+ }
445
+ }, $ = () => import("./index-BEyCs2cc.js"), Rt = {
446
+ selector: "cds-menu",
447
+ import: $,
448
+ /**
449
+ * @param {CDSMenu} menu - The CDSMenu custom element instance
450
+ * @this {Panel} The panel instance
451
+ */
452
+ init: function(t) {
453
+ const e = r(t), n = E(t, "open-event");
454
+ n && this.listen(t, "cds-menu-opened", (s) => {
455
+ this.dispatchPanelEvent(n, {
456
+ ...e,
457
+ action: "opened"
458
+ });
459
+ });
460
+ const o = E(t, "close-event");
461
+ o && this.listen(t, "cds-menu-closed", (s) => {
462
+ this.dispatchPanelEvent(o, {
463
+ ...e,
464
+ action: "closed"
465
+ });
466
+ }), this.listen(t, "click", (s) => {
467
+ if (s.target.tagName === "CDS-MENU-ITEM") {
468
+ const i = r(s.target), c = i.event || e.event;
469
+ c && (s.stopPropagation(), this.dispatchPanelEvent(c, {
470
+ ...e,
471
+ ...i
472
+ }));
473
+ }
474
+ }), this.listen(t, "cds-item-changed", (s) => {
475
+ const i = s.detail.triggeredBy, c = r(i), a = c.event || e.event;
476
+ a && this.dispatchPanelEvent(a, {
477
+ ...e,
478
+ ...c,
479
+ action: "selection-changed"
480
+ });
481
+ });
482
+ }
483
+ }, Mt = {
484
+ "cds-menu-button": {
485
+ import: $,
486
+ /**
487
+ * @param {CDSMenuButton} menuButton - The CDSMenuButton custom element instance
488
+ * @this {Panel} The panel instance
489
+ */
490
+ init: function(t) {
491
+ const e = r(t), n = t.querySelector("cds-menu");
492
+ n && this.listen(n, "click", (o) => {
493
+ if (o.target.tagName === "CDS-MENU-ITEM") {
494
+ const s = r(o.target), i = s.event || e.event;
495
+ i && (o.stopPropagation(), this.dispatchPanelEvent(i, {
496
+ ...e,
497
+ ...s
498
+ }));
499
+ }
500
+ });
501
+ }
502
+ }
503
+ }, X = () => import("./index-Bh3jqbKV.js"), j = () => import("./index-CwpgmKTP.js").then((t) => t.i), Bt = () => import("./index-Byf_K1x1.js"), zt = () => import("./index-Czs-UAWh.js"), Lt = {
504
+ selector: "cds-button",
505
+ import: X,
506
+ /**
507
+ * @param {CDSButton} button - The CDSButton custom element instance
508
+ * @this {Panel} The panel instance
509
+ */
510
+ init: function(t) {
511
+ const e = r(t);
512
+ if (t.getAttribute("type") === "submit") {
513
+ this.listen(t, "click", (s) => {
514
+ let i = t.closest("form");
515
+ if (!i) {
516
+ const c = t.getAttribute("form");
517
+ c && (i = document.getElementById(c));
518
+ }
519
+ i && i.requestSubmit();
520
+ });
521
+ return;
522
+ }
523
+ const o = e.event;
524
+ o && this.listen(t, "click", (s) => {
525
+ s.stopPropagation(), this.dispatchPanelEvent(o, r(t));
526
+ });
527
+ }
528
+ }, qt = {
529
+ // Icon Button (non-toggle)
530
+ "cds-icon-button:not([data-toggle])": {
531
+ import: j,
532
+ event: "click",
533
+ getData: (t, e) => e
534
+ },
535
+ // Icon Toggle - Toggles Carbon's built-in isSelected state for ghost icon buttons
536
+ // Visual styling (subtle background change) is handled by Carbon's CSS
537
+ "cds-icon-button[data-toggle]": {
538
+ import: j,
539
+ init: function(t) {
540
+ const e = r(t);
541
+ e.event && this.listen(t, "click", (n) => {
542
+ n.stopPropagation(), t.isSelected = !t.isSelected, this.dispatchPanelEvent(e.event, {
543
+ ...e,
544
+ isOn: t.isSelected
545
+ });
546
+ });
547
+ }
548
+ },
549
+ // FAB (Floating Action Button) - just a styled button
550
+ "cds-button[data-fab]": {
551
+ import: X,
552
+ event: "click",
553
+ getData: (t, e) => e
554
+ },
555
+ // Copy Button - Button that copies text to clipboard
556
+ "cds-copy-button": {
557
+ import: zt,
558
+ init: function(t) {
559
+ const e = r(t), n = e.event;
560
+ n && this.listen(t, "click", (s) => {
561
+ s.stopPropagation(), this.dispatchPanelEvent(n, {
562
+ ...e,
563
+ action: "copy"
564
+ });
565
+ });
566
+ const o = t.getAttribute("success-event");
567
+ if (o) {
568
+ const s = new MutationObserver(() => {
569
+ t.hasAttribute("feedback-shown") && this.dispatchPanelEvent(o, {
570
+ ...e,
571
+ action: "copied"
572
+ });
573
+ });
574
+ s.observe(t, {
575
+ attributes: !0,
576
+ attributeFilter: ["feedback-shown"]
577
+ }), t._copyObserver = s;
578
+ }
579
+ }
580
+ },
581
+ // Combo Button - composed of button + menu
582
+ "cds-combo-button": {
583
+ import: Bt,
584
+ init: function(t) {
585
+ const e = r(t);
586
+ e.event && this.listen(t, "click", (o) => {
587
+ const s = o.composedPath(), i = s.some((a) => a.tagName === "CDS-MENU-ITEM"), c = s.some((a) => a.tagName === "CDS-ICON-BUTTON");
588
+ !i && !c && (o.stopPropagation(), this.dispatchPanelEvent(e.event, {
589
+ ...e,
590
+ action: "primary"
591
+ }));
592
+ });
593
+ const n = t.querySelector("cds-menu");
594
+ n && this.listen(n, "click", (o) => {
595
+ if (o.target.tagName === "CDS-MENU-ITEM") {
596
+ const s = r(o.target), i = s.event || E(t, "menu-event", "event");
597
+ i && this.dispatchPanelEvent(i, {
598
+ ...e,
599
+ ...s,
600
+ action: "menu-item"
601
+ });
602
+ }
603
+ });
604
+ }
605
+ }
606
+ }, xt = () => import("./index-DDUqY4Rl.js"), Ft = () => import("./index-BwhAoVy-.js"), Gt = () => import("./index-BrqEja9V.js"), Ut = {
607
+ selector: "cds-dropdown",
608
+ import: xt,
609
+ /**
610
+ * @param {CDSDropdown} dropdown - The CDSDropdown custom element instance
611
+ * @this {Panel} The panel instance
612
+ */
613
+ init: function(t) {
614
+ const e = customElements.get("cds-dropdown"), n = r(t), o = n.event;
615
+ o && this.listen(t, e.eventSelect, (i) => {
616
+ this.dispatchPanelEvent(o, {
617
+ ...n,
618
+ value: t.value,
619
+ selectedValue: i.detail?.item?.value,
620
+ selectedText: i.detail?.item?.textContent?.trim()
621
+ });
622
+ });
623
+ const s = t.getAttribute("toggle-event");
624
+ s && this.listen(t, e.eventToggle, (i) => {
625
+ this.dispatchPanelEvent(s, {
626
+ ...n,
627
+ open: t.hasAttribute("open")
628
+ });
629
+ });
630
+ }
631
+ }, Vt = {
632
+ // Combo Box
633
+ "cds-combo-box": {
634
+ import: Ft,
635
+ /**
636
+ * @param {CDSComboBox} comboBox - The CDSComboBox custom element instance
637
+ * @this {Panel} The panel instance
638
+ */
639
+ init: function(t) {
640
+ const e = customElements.get("cds-combo-box"), n = r(t), o = n.event;
641
+ o && this.listen(t, e.eventSelect, (i) => {
642
+ const c = i.detail?.item;
643
+ this.dispatchPanelEvent(o, {
644
+ ...n,
645
+ value: t.value,
646
+ selectedValue: c?.value,
647
+ selectedText: c?.textContent?.trim()
648
+ });
649
+ });
650
+ const s = t.getAttribute("toggle-event");
651
+ s && this.listen(t, e.eventToggle, (i) => {
652
+ this.dispatchPanelEvent(s, {
653
+ ...n,
654
+ open: t.hasAttribute("open")
655
+ });
656
+ });
657
+ }
658
+ },
659
+ // Multi Select
660
+ "cds-multi-select": {
661
+ import: Gt,
662
+ /**
663
+ * @param {CDSMultiSelect} multiSelect - The CDSMultiSelect custom element instance
664
+ * @this {Panel} The panel instance
665
+ */
666
+ init: function(t) {
667
+ const e = customElements.get("cds-multi-select"), n = r(t), o = n.event;
668
+ o && this.listen(t, e.eventSelect, (i) => {
669
+ const c = t.value ? t.value.split(",") : [];
670
+ this.dispatchPanelEvent(o, {
671
+ ...n,
672
+ selectedItems: c
673
+ });
674
+ });
675
+ const s = t.getAttribute("toggle-event");
676
+ s && this.listen(t, e.eventToggle, (i) => {
677
+ this.dispatchPanelEvent(s, {
678
+ ...n,
679
+ open: t.hasAttribute("open")
680
+ });
681
+ });
682
+ }
683
+ }
684
+ }, jt = () => import("./index-Bk2MEnMu.js"), Ht = () => import("./index-tdmIA8Xp.js"), Wt = {
685
+ selector: "cds-date-picker",
686
+ import: jt,
687
+ /**
688
+ * @param {CDSDatePicker} datePicker - The CDSDatePicker custom element instance
689
+ * @this {Panel} The panel instance
690
+ */
691
+ init: function(t) {
692
+ const e = customElements.get("cds-date-picker"), n = r(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;
693
+ c && this.listen(t, e.eventChange, (d) => {
694
+ let b;
695
+ i ? b = {
696
+ from: o.value || "",
697
+ to: s.value || ""
698
+ } : b = t.value, this.dispatchPanelEvent(c, {
699
+ ...n,
700
+ value: b
701
+ });
702
+ });
703
+ const a = t.getAttribute("error-event");
704
+ a && this.listen(t, e.eventFlatpickrError, (d) => {
705
+ this.dispatchPanelEvent(a, {
706
+ ...n,
707
+ error: d.detail
708
+ });
709
+ });
710
+ }
711
+ }, Yt = {
712
+ "cds-time-picker": {
713
+ import: Ht,
714
+ event: "cds-time-picker-changed",
715
+ getData: (t, e, n) => ({
716
+ ...e,
717
+ value: n.value
718
+ })
719
+ }
720
+ }, $t = () => import("./index-BODxU-Mu.js"), Xt = {
721
+ selector: "cds-file-uploader",
722
+ import: $t,
723
+ /**
724
+ * @param {CDSFileUploader} uploader - The CDSFileUploader custom element instance
725
+ * @this {Panel} The panel instance
726
+ */
727
+ init: function(t) {
728
+ const e = r(t), n = e.event;
729
+ if (n) {
730
+ const s = t.querySelector('input[type="file"]');
731
+ s && this.listen(s, "change", (i) => {
732
+ this.dispatchPanelEvent(n, {
733
+ ...e,
734
+ files: Array.from(i.target.files || [])
735
+ });
736
+ });
737
+ }
738
+ const o = t.getAttribute("delete-event");
739
+ o && this.listen(t, "cds-file-uploader-item-deleted", (s) => {
740
+ this.dispatchPanelEvent(o, {
741
+ ...e,
742
+ fileName: s.detail?.fileName,
743
+ fileId: s.detail?.fileId
744
+ });
745
+ });
746
+ }
747
+ }, Zt = () => import("./index-nfJ9ioGW.js"), Jt = () => import("./index-BTUYIkmg.js"), Kt = () => import("./index-xipeWGGU.js"), Qt = {
748
+ selector: "cds-tabs",
749
+ import: Zt,
750
+ /**
751
+ * @param {CDSTabs} tabs - The CDSTabs custom element instance
752
+ * @this {Panel} The panel instance
753
+ */
754
+ init: function(t) {
755
+ const e = customElements.get("cds-tabs"), n = r(t), o = t.getAttribute("before-select-event");
756
+ o && this.listen(t, e.eventBeforeSelect, (i) => {
757
+ this.dispatchPanelEvent(o, {
758
+ ...n,
759
+ tabValue: i.detail.value,
760
+ cancelable: !0
761
+ });
762
+ });
763
+ const s = n.event;
764
+ s && this.listen(t, e.eventSelect, (i) => {
765
+ const c = i.detail.item, a = r(c);
766
+ this.dispatchPanelEvent(s, {
767
+ ...n,
768
+ ...a,
769
+ tabValue: i.detail.value
770
+ });
771
+ });
772
+ }
773
+ }, te = {
774
+ // Accordion
775
+ "cds-accordion": {
776
+ import: Jt,
777
+ /**
778
+ * @param {CDSAccordion} accordion - The CDSAccordion custom element instance
779
+ * @this {Panel} The panel instance
780
+ */
781
+ init: function(t) {
782
+ const e = customElements.get("cds-accordion-item"), n = r(t);
783
+ [...t.querySelectorAll("cds-accordion-item")].forEach((s) => {
784
+ const i = r(s), c = i.event || n.event;
785
+ c && this.listen(s, e.eventToggle, (a) => {
786
+ this.dispatchPanelEvent(c, {
787
+ ...n,
788
+ ...i,
789
+ open: a.detail.open
790
+ });
791
+ });
792
+ });
793
+ }
794
+ },
795
+ // Content Switcher
796
+ "cds-content-switcher": {
797
+ import: Kt,
798
+ /**
799
+ * @param {CDSContentSwitcher} switcher - The CDSContentSwitcher custom element instance
800
+ * @this {Panel} The panel instance
801
+ */
802
+ init: function(t) {
803
+ const e = customElements.get("cds-content-switcher"), n = r(t), o = t.getAttribute("before-select-event");
804
+ o && this.listen(t, e.eventBeforeSelect, (i) => {
805
+ this.dispatchPanelEvent(o, {
806
+ ...n,
807
+ value: i.detail.value,
808
+ cancelable: !0
809
+ });
810
+ });
811
+ const s = n.event;
812
+ s && this.listen(t, e.eventSelect, (i) => {
813
+ const c = i.detail.item, a = r(c);
814
+ this.dispatchPanelEvent(s, {
815
+ ...n,
816
+ ...a,
817
+ value: c.getAttribute("value")
818
+ });
819
+ });
820
+ }
821
+ }
822
+ }, z = () => import("./index-DQ4Y-fiZ.js"), ee = {
823
+ selector: "cds-breadcrumb",
824
+ import: z,
825
+ /**
826
+ * @param {CDSBreadcrumb} breadcrumb - The CDSBreadcrumb custom element instance
827
+ * @this {Panel} The panel instance
828
+ */
829
+ init: function(t) {
830
+ const e = this, n = r(t), o = n.event;
831
+ if (o) {
832
+ const s = (c) => {
833
+ e.dispatchPanelEvent(o, {
834
+ ...n,
835
+ ...c
836
+ });
837
+ };
838
+ e.listen(t, "click", (c) => {
839
+ const a = c.target.closest("cds-breadcrumb-link");
840
+ if (a) {
841
+ c.preventDefault(), c.stopPropagation();
842
+ const d = r(a);
843
+ s(d);
844
+ }
845
+ });
846
+ const i = t.querySelector("cds-overflow-menu-body");
847
+ i && e.listen(i, "cds-overflow-menu-item-clicked", (c) => {
848
+ c.stopPropagation();
849
+ const a = r(c.target);
850
+ s(a);
851
+ });
852
+ }
853
+ }
854
+ }, ne = {
855
+ // Breadcrumb Item - Wrapper for breadcrumb links
856
+ "cds-breadcrumb-item": {
857
+ import: z
858
+ // No event handling - presentational wrapper
859
+ },
860
+ // Breadcrumb Link - Individual breadcrumb link
861
+ "cds-breadcrumb-link": {
862
+ import: z,
863
+ event: "click",
864
+ getData: (t, e, n) => (t.preventDefault(), {
865
+ ...e,
866
+ href: n.getAttribute("href")
867
+ })
868
+ }
869
+ }, oe = () => import("./index-CcK76f0I.js"), se = () => import("./index-DSMPUWJU.js"), ie = () => import("./index-tQGRhvw0.js"), ce = () => import("./index-B8fGrrzJ.js"), ae = () => import("./index-D-iqTNbL.js"), re = {
870
+ selector: "cds-text-input",
871
+ import: oe,
872
+ multiEvent: !0,
873
+ events: [
874
+ {
875
+ type: "input",
876
+ attrName: "event",
877
+ getData: (t, e) => ({
878
+ ...e,
879
+ value: t.currentTarget.value
880
+ })
881
+ },
882
+ {
883
+ type: "change",
884
+ attrName: "change-event",
885
+ getData: (t, e) => ({
886
+ ...e,
887
+ value: t.currentTarget.value
888
+ })
889
+ }
890
+ ]
891
+ }, le = {
892
+ // Text Area
893
+ "cds-textarea": {
894
+ import: se,
895
+ multiEvent: !0,
896
+ events: [
897
+ {
898
+ type: "input",
899
+ attrName: "event",
900
+ getData: (t, e) => ({
901
+ ...e,
902
+ value: t.currentTarget.value
903
+ })
904
+ },
905
+ {
906
+ type: "change",
907
+ attrName: "change-event",
908
+ getData: (t, e) => ({
909
+ ...e,
910
+ value: t.currentTarget.value
911
+ })
912
+ }
913
+ ]
914
+ },
915
+ // Number Input
916
+ "cds-number-input": {
917
+ import: ie,
918
+ event: "cds-number-input",
919
+ getData: (t, e, n) => ({
920
+ ...e,
921
+ value: t.detail.value,
922
+ direction: t.detail.direction
923
+ // 'up' or 'down' when using steppers
924
+ })
925
+ },
926
+ // Password Input
927
+ "cds-password-input": {
928
+ import: ce,
929
+ multiEvent: !0,
930
+ events: [
931
+ {
932
+ type: "input",
933
+ attrName: "event",
934
+ getData: (t, e) => ({
935
+ ...e,
936
+ value: t.currentTarget.value
937
+ })
938
+ },
939
+ {
940
+ type: "change",
941
+ attrName: "change-event",
942
+ getData: (t, e) => ({
943
+ ...e,
944
+ value: t.currentTarget.value
945
+ })
946
+ }
947
+ ]
948
+ },
949
+ // Search
950
+ "cds-search": {
951
+ import: ae,
952
+ event: "cds-search-input",
953
+ getData: (t, e, n) => ({
954
+ ...e,
955
+ value: n.value
956
+ })
957
+ }
958
+ }, de = () => import("./index-BPRteboN.js"), pe = () => import("./index-Cd1j7Qp1.js"), me = () => import("./index-CyvZ9jxn.js"), ue = () => import("./index-C5s9Z5Ou.js"), he = () => import("./index-CO_QGXLN.js"), ve = {
959
+ selector: "cds-checkbox",
960
+ import: de,
961
+ event: "cds-checkbox-changed",
962
+ getData: (t, e, n) => ({
963
+ ...e,
964
+ checked: t.detail.checked,
965
+ value: n.value
966
+ })
967
+ }, fe = {
968
+ // Radio Button Group - only listen to the group, not individual buttons
969
+ "cds-radio-button-group": {
970
+ import: pe,
971
+ event: "cds-radio-button-group-changed",
972
+ getData: (t, e) => ({
973
+ ...e,
974
+ value: t.detail?.value
975
+ })
976
+ },
977
+ // Toggle
978
+ "cds-toggle": {
979
+ import: me,
980
+ event: "cds-toggle-changed",
981
+ getData: (t, e) => ({
982
+ ...e,
983
+ isOn: t.detail.checked,
984
+ value: t.detail.checked
985
+ })
986
+ },
987
+ // Select
988
+ "cds-select": {
989
+ import: ue,
990
+ event: "cds-select-selected",
991
+ getData: (t, e) => ({
992
+ ...e,
993
+ value: t.detail.value
994
+ })
995
+ },
996
+ // Slider
997
+ "cds-slider": {
998
+ import: he,
999
+ /**
1000
+ * @param {CDSSlider} slider - The CDSSlider custom element instance
1001
+ * @this {Panel} The panel instance
1002
+ */
1003
+ init: function(t) {
1004
+ const e = r(t), n = e.event;
1005
+ n && this.listen(t, "cds-slider-changed", (s) => {
1006
+ this.dispatchPanelEvent(n, {
1007
+ ...e,
1008
+ value: s.detail.value
1009
+ });
1010
+ });
1011
+ const o = t.getAttribute("input-event");
1012
+ o && this.listen(t, "cds-slider-input-changed", (s) => {
1013
+ this.dispatchPanelEvent(o, {
1014
+ ...e,
1015
+ value: s.detail.value
1016
+ });
1017
+ });
1018
+ }
1019
+ }
1020
+ }, L = () => import("./index-t9TINCcm.js"), ge = {
1021
+ selector: "cds-tag",
1022
+ import: L,
1023
+ event: "click",
1024
+ getData: (t, e) => e
1025
+ }, Ee = {
1026
+ // Dismissible tags (closeable tags with X button)
1027
+ "cds-dismissible-tag": {
1028
+ import: L,
1029
+ /**
1030
+ * @param {CDSDismissibleTag} tag - The CDSDismissibleTag custom element instance
1031
+ * @this {Panel} The panel instance
1032
+ */
1033
+ init: function(t) {
1034
+ const e = r(t), n = t.getAttribute("click-event");
1035
+ n && this.listen(t, "click", (s) => {
1036
+ s.target.closest("button") || this.dispatchPanelEvent(n, {
1037
+ ...e
1038
+ });
1039
+ });
1040
+ const o = e.event;
1041
+ o && this.listen(t, "cds-dismissible-tag-closed", (s) => {
1042
+ this.dispatchPanelEvent(o, {
1043
+ ...e,
1044
+ action: "closed"
1045
+ });
1046
+ });
1047
+ }
1048
+ },
1049
+ // Filter tags (closeable tags used for filters)
1050
+ "cds-filter-tag": {
1051
+ import: L,
1052
+ event: "cds-filter-tag-closed",
1053
+ getData: (t, e) => ({
1054
+ ...e,
1055
+ action: "remove"
1056
+ })
1057
+ }
1058
+ }, be = () => import("./index-Dr4evLL7.js"), Ce = () => import("./index-hhX-bWEv.js"), Se = () => import("./index-ByNfpHAO.js"), Ie = {
1059
+ selector: "cds-overflow-menu",
1060
+ import: be,
1061
+ // We collect the menu attributes from the menu, but we listen for the
1062
+ // events on the menu body.
1063
+ /**
1064
+ * @param {CDSOverflowMenu} overflowMenu - The CDSOverflowMenu custom element instance
1065
+ * @this {Panel} The panel instance
1066
+ */
1067
+ init: function(t) {
1068
+ const e = r(t), n = e.event, o = t.querySelector("cds-overflow-menu-body");
1069
+ n && o && this.listen(o, "cds-overflow-menu-item-clicked", (s) => {
1070
+ s.stopPropagation();
1071
+ const i = r(s.target);
1072
+ this.dispatchPanelEvent(n, {
1073
+ ...e,
1074
+ ...i
1075
+ });
1076
+ });
1077
+ }
1078
+ }, Ae = {
1079
+ // Structured List
1080
+ "cds-structured-list": {
1081
+ import: Ce,
1082
+ /**
1083
+ * @param {CDSStructuredList} list - The CDSStructuredList custom element instance
1084
+ * @this {Panel} The panel instance
1085
+ */
1086
+ init: function(t) {
1087
+ const e = r(t);
1088
+ [...t.querySelectorAll("cds-structured-list-row")].forEach((o) => {
1089
+ const s = r(o), i = s.event || e.event;
1090
+ i && this.listen(o, "click", (c) => {
1091
+ c.stopPropagation(), this.dispatchPanelEvent(i, {
1092
+ ...e,
1093
+ ...s
1094
+ });
1095
+ });
1096
+ }), t.hasAttribute("selection") && this.listen(t, "cds-structured-list-selected", (o) => {
1097
+ const s = o.detail.row, i = r(s), c = e.event;
1098
+ c && this.dispatchPanelEvent(c, {
1099
+ ...e,
1100
+ ...i
1101
+ });
1102
+ });
1103
+ }
1104
+ },
1105
+ // Tree View
1106
+ "cds-tree-view": {
1107
+ import: Se,
1108
+ /**
1109
+ * @param {CDSTreeView} tree - The CDSTreeView custom element instance
1110
+ * @this {Panel} The panel instance
1111
+ */
1112
+ init: function(t) {
1113
+ const e = r(t);
1114
+ this.listen(t, "cds-tree-node-selected", (o) => {
1115
+ const s = o.detail.node, i = r(s), c = i.event || e.event;
1116
+ c && this.dispatchPanelEvent(c, {
1117
+ ...e,
1118
+ ...i,
1119
+ nodeId: s.id,
1120
+ label: s.getAttribute("label")
1121
+ });
1122
+ });
1123
+ const n = E(t, "expand-event");
1124
+ n && this.listen(t, "cds-tree-node-expanded", (o) => {
1125
+ this.dispatchPanelEvent(n, {
1126
+ ...e,
1127
+ nodeId: o.detail.node.id,
1128
+ expanded: o.detail.expanded
1129
+ });
1130
+ });
1131
+ }
1132
+ }
1133
+ }, q = () => import("./index-CyR413wv.js"), De = {
1134
+ selector: "cds-toast-notification",
1135
+ import: q,
1136
+ event: "cds-notification-closed",
1137
+ getData: (t, e) => ({
1138
+ ...e,
1139
+ action: "closed"
1140
+ })
1141
+ }, Ne = {
1142
+ // Inline Notification
1143
+ "cds-inline-notification": {
1144
+ import: q,
1145
+ event: "cds-notification-closed",
1146
+ getData: (t, e) => ({
1147
+ ...e,
1148
+ action: "closed"
1149
+ })
1150
+ },
1151
+ // Actionable Notification
1152
+ "cds-actionable-notification": {
1153
+ import: q,
1154
+ /**
1155
+ * @param {CDSActionableNotification} notification - The CDSActionableNotification custom element instance
1156
+ * @this {Panel} The panel instance
1157
+ */
1158
+ init: function(t) {
1159
+ const e = r(t), n = E(t, "close-event", "event");
1160
+ n && this.listen(t, "cds-notification-closed", (s) => {
1161
+ this.dispatchPanelEvent(n, {
1162
+ ...e,
1163
+ action: "closed"
1164
+ });
1165
+ });
1166
+ const o = E(t, "action-event");
1167
+ o && this.listen(t, "cds-notification-actioned", (s) => {
1168
+ this.dispatchPanelEvent(o, {
1169
+ ...e,
1170
+ action: "actioned"
1171
+ });
1172
+ });
1173
+ }
1174
+ }
1175
+ }, w = () => import("./index-DIg4fP-p.js"), Pe = {
1176
+ selector: "cds-clickable-tile",
1177
+ import: w,
1178
+ event: "click",
1179
+ getData: (t, e) => ({
1180
+ ...e,
1181
+ href: t.currentTarget.getAttribute("href")
1182
+ })
1183
+ }, _e = {
1184
+ // Expandable Tile
1185
+ "cds-expandable-tile": {
1186
+ import: w,
1187
+ /**
1188
+ * @param {CDSExpandableTile} tile - The CDSExpandableTile custom element instance
1189
+ * @this {Panel} The panel instance
1190
+ */
1191
+ init: function(t) {
1192
+ const e = r(t), n = t.getAttribute("before-toggle-event");
1193
+ n && this.listen(t, "cds-expandable-tile-beingtoggled", (s) => {
1194
+ this.dispatchPanelEvent(n, {
1195
+ ...e,
1196
+ expanded: s.detail.expanded,
1197
+ cancelable: !0
1198
+ });
1199
+ });
1200
+ const o = e.event;
1201
+ o && this.listen(t, "cds-expandable-tile-toggled", (s) => {
1202
+ this.dispatchPanelEvent(o, {
1203
+ ...e,
1204
+ expanded: s.detail.expanded
1205
+ });
1206
+ });
1207
+ }
1208
+ },
1209
+ // Selectable Tile
1210
+ "cds-selectable-tile": {
1211
+ import: w,
1212
+ event: "cds-selectable-tile-changed",
1213
+ getData: (t, e, n) => ({
1214
+ ...e,
1215
+ selected: t.detail.selected,
1216
+ value: n.value
1217
+ })
1218
+ },
1219
+ // Radio Tile
1220
+ "cds-radio-tile": {
1221
+ import: w,
1222
+ event: "cds-selectable-tile-changed",
1223
+ getData: (t, e, n) => ({
1224
+ ...e,
1225
+ selected: t.detail.selected,
1226
+ value: n.value
1227
+ })
1228
+ }
1229
+ }, ke = () => import("./index-BMNd2Qad.js"), ye = () => import("./index-B16kSrMy.js"), Te = () => import("./index-CyF5Kef-.js"), we = {
1230
+ selector: "cds-progress-bar",
1231
+ import: ke,
1232
+ /**
1233
+ * @param {CDSProgressBar} progressBar - The CDSProgressBar custom element instance
1234
+ * @this {Panel} The panel instance
1235
+ */
1236
+ init: function(t) {
1237
+ const e = r(t);
1238
+ if (e.event) {
1239
+ const n = new MutationObserver(() => {
1240
+ const o = parseFloat(t.getAttribute("value") || "0"), s = parseFloat(t.getAttribute("max") || "100");
1241
+ o >= s && this.dispatchPanelEvent(e.event, {
1242
+ ...e,
1243
+ value: o,
1244
+ status: "complete"
1245
+ });
1246
+ });
1247
+ n.observe(t, {
1248
+ attributes: !0,
1249
+ attributeFilter: ["value"]
1250
+ }), t._progressObserver = n;
1251
+ }
1252
+ }
1253
+ }, Oe = {
1254
+ // Progress Indicator
1255
+ "cds-progress-indicator": {
1256
+ import: ye,
1257
+ /**
1258
+ * @param {CDSProgressIndicator} indicator - The CDSProgressIndicator custom element instance
1259
+ * @this {Panel} The panel instance
1260
+ */
1261
+ init: function(t) {
1262
+ const e = r(t);
1263
+ this.listen(t, "cds-progress-step-click", (n) => {
1264
+ const o = n.target, s = r(o), i = s.event || e.event;
1265
+ i && this.dispatchPanelEvent(i, {
1266
+ ...e,
1267
+ ...s,
1268
+ stepIndex: o.getAttribute("data-index"),
1269
+ stepLabel: o.getAttribute("label")
1270
+ });
1271
+ });
1272
+ }
1273
+ },
1274
+ // Inline Loading - Loading indicator for inline actions (e.g., form submit)
1275
+ "cds-inline-loading": {
1276
+ import: Te,
1277
+ /**
1278
+ * @param {CDSInlineLoading} inlineLoading - The CDSInlineLoading custom element instance
1279
+ * @this {Panel} The panel instance
1280
+ */
1281
+ init: function(t) {
1282
+ const e = r(t), n = e.event;
1283
+ n && this.listen(t, "cds-inline-loading-onsuccess", (s) => {
1284
+ this.dispatchPanelEvent(n, {
1285
+ ...e,
1286
+ status: "finished"
1287
+ });
1288
+ });
1289
+ const o = t.getAttribute("status-event");
1290
+ if (o) {
1291
+ const s = new MutationObserver((i) => {
1292
+ i.forEach((c) => {
1293
+ if (c.attributeName === "status") {
1294
+ const a = t.getAttribute("status");
1295
+ this.dispatchPanelEvent(o, {
1296
+ ...e,
1297
+ status: a
1298
+ });
1299
+ }
1300
+ });
1301
+ });
1302
+ s.observe(t, {
1303
+ attributes: !0,
1304
+ attributeFilter: ["status"]
1305
+ }), t._statusObserver = s;
1306
+ }
1307
+ }
1308
+ }
1309
+ }, Re = () => import("./index-d0CqW2Cm.js"), Me = () => import("./index-C-P030e_.js").then((t) => t.i), Be = () => import("./index-wgp15jn2.js"), ze = {
1310
+ selector: "cds-tooltip",
1311
+ import: Re,
1312
+ /**
1313
+ * @param {CDSTooltip} tooltip - The CDSTooltip custom element instance
1314
+ * @this {Panel} The panel instance
1315
+ */
1316
+ init: function(t) {
1317
+ const e = r(t), n = E(t, "open-event");
1318
+ n && this.listen(t, "cds-tooltip-beingopened", (s) => {
1319
+ this.dispatchPanelEvent(n, {
1320
+ ...e,
1321
+ action: "opened"
1322
+ });
1323
+ });
1324
+ const o = E(t, "close-event");
1325
+ o && this.listen(t, "cds-tooltip-closed", (s) => {
1326
+ this.dispatchPanelEvent(o, {
1327
+ ...e,
1328
+ action: "closed"
1329
+ });
1330
+ });
1331
+ }
1332
+ }, Le = {
1333
+ // Popover
1334
+ "cds-popover": {
1335
+ import: Me,
1336
+ /**
1337
+ * @param {CDSPopover} popover - The CDSPopover custom element instance
1338
+ * @this {Panel} The panel instance
1339
+ */
1340
+ init: function(t) {
1341
+ const e = r(t), n = E(t, "open-event");
1342
+ n && this.listen(t, "cds-popover-beingopened", (s) => {
1343
+ this.dispatchPanelEvent(n, {
1344
+ ...e,
1345
+ action: "opened"
1346
+ });
1347
+ });
1348
+ const o = E(t, "close-event");
1349
+ o && this.listen(t, "cds-popover-closed", (s) => {
1350
+ this.dispatchPanelEvent(o, {
1351
+ ...e,
1352
+ action: "closed"
1353
+ });
1354
+ });
1355
+ }
1356
+ },
1357
+ // Toggletip - tooltip that stays open until dismissed
1358
+ "cds-toggletip": {
1359
+ import: Be,
1360
+ /**
1361
+ * @param {CDSToggletip} toggletip - The CDSToggletip custom element instance
1362
+ * @this {Panel} The panel instance
1363
+ */
1364
+ init: function(t) {
1365
+ const e = r(t);
1366
+ if (e.event) {
1367
+ const n = new MutationObserver((o) => {
1368
+ o.forEach((s) => {
1369
+ if (s.attributeName === "open") {
1370
+ const i = t.hasAttribute("open");
1371
+ this.dispatchPanelEvent(e.event, {
1372
+ ...e,
1373
+ action: i ? "opened" : "closed",
1374
+ open: i
1375
+ });
1376
+ }
1377
+ });
1378
+ });
1379
+ n.observe(t, {
1380
+ attributes: !0,
1381
+ attributeFilter: ["open"]
1382
+ }), t._toggletipObserver = n;
1383
+ }
1384
+ }
1385
+ }
1386
+ }, qe = () => import("./index-DEtGo4Q7.js").then((t) => t.i), xe = () => import("./index-DZrmJ7Ll.js"), Fe = {
1387
+ selector: "cds-link",
1388
+ import: qe,
1389
+ event: "click",
1390
+ getData: (t, e, n) => ({
1391
+ ...e,
1392
+ href: n.getAttribute("href")
1393
+ })
1394
+ }, Ge = {
1395
+ // Code Snippet
1396
+ "cds-code-snippet": {
1397
+ import: xe,
1398
+ event: "cds-copy-button-clicked",
1399
+ getData: (t, e) => ({
1400
+ ...e,
1401
+ action: "copied"
1402
+ })
1403
+ }
1404
+ }, H = () => import("./index--Q3NhIVC.js"), Ue = () => import("./index-Do9f8Pwe.js"), Ve = () => import("./index-DwCXQC7X.js"), je = () => import("./index-WpBhhuED.js"), He = () => import("./index-DdkIREYU.js"), We = () => import("./index-oS8XvY4G.js"), Ye = () => import("./index-el9l-ZQy.js").then((t) => t.i), $e = () => import("./index-Bug3BjgA.js").then((t) => t.i), Xe = () => import("./index-CPLpCt6z.js"), Ze = () => import("./index-Chyr-DU2.js"), Je = {
1405
+ // Form structure components (presentational only - no event handling needed)
1406
+ "cds-form": {
1407
+ import: H
1408
+ // No event handling - wraps native <form> which works naturally
1409
+ },
1410
+ "cds-form-item": {
1411
+ import: H
1412
+ // No event handling - presentational wrapper for form fields
1413
+ },
1414
+ "cds-form-group": {
1415
+ import: Ue
1416
+ // No event handling - presentational fieldset wrapper
1417
+ },
1418
+ "cds-stack": {
1419
+ import: Ve
1420
+ // No event handling - layout utility for spacing items vertically or horizontally
1421
+ },
1422
+ // Typography & Icons (Presentational)
1423
+ "cds-heading": {
1424
+ import: je
1425
+ // No event handling - semantic heading component
1426
+ },
1427
+ "cds-icon": {
1428
+ import: He
1429
+ // No event handling - icon display component
1430
+ },
1431
+ "cds-icon-indicator": {
1432
+ import: We
1433
+ // No event handling - status indicator icon
1434
+ },
1435
+ // Badge Indicator - Status badge component (typically used in tabs/icons)
1436
+ "cds-badge-indicator": {
1437
+ import: Ze
1438
+ // No event handling - presentational status indicator
1439
+ // Typically appears as a dot on tabs or icons to show notifications/status
1440
+ },
1441
+ // Loading - Full-page or section loading spinner
1442
+ "cds-loading": {
1443
+ import: Ye
1444
+ // No event handling - presentational loading spinner
1445
+ },
1446
+ // Skeleton components - Loading placeholders
1447
+ "cds-skeleton-text": {
1448
+ import: $e
1449
+ // No event handling - presentational loading placeholder
1450
+ },
1451
+ "cds-skeleton-placeholder": {
1452
+ import: Xe
1453
+ // No event handling - presentational loading placeholder
1454
+ }
1455
+ }, Ke = [
1456
+ Tt,
1457
+ wt,
1458
+ Rt,
1459
+ Lt,
1460
+ Ut,
1461
+ Wt,
1462
+ Xt,
1463
+ Qt,
1464
+ ee,
1465
+ re,
1466
+ ve,
1467
+ ge,
1468
+ Ie,
1469
+ De,
1470
+ Pe,
1471
+ we,
1472
+ ze,
1473
+ Fe
1474
+ ];
1475
+ function Qe() {
1476
+ const t = /* @__PURE__ */ new Map();
1477
+ return Ke.forEach((n) => {
1478
+ t.set(n.selector, n);
1479
+ }), [
1480
+ Ot,
1481
+ Mt,
1482
+ qt,
1483
+ Vt,
1484
+ Yt,
1485
+ te,
1486
+ ne,
1487
+ Pt,
1488
+ le,
1489
+ fe,
1490
+ Ee,
1491
+ Ae,
1492
+ Ne,
1493
+ _e,
1494
+ Oe,
1495
+ Le,
1496
+ Ge,
1497
+ Je
1498
+ ].forEach((n) => {
1499
+ Object.entries(n).forEach(([o, s]) => {
1500
+ t.set(o, s);
1501
+ });
1502
+ }), t;
1503
+ }
1504
+ function tn(t) {
1505
+ const e = /* @__PURE__ */ new Map();
1506
+ if (!t || !(t instanceof Element))
1507
+ return e;
1508
+ for (const o of Object.keys(y))
1509
+ e.set(o, []);
1510
+ for (const [o, s] of Object.entries(y))
1511
+ t.matches(o) && e.get(o).push(t);
1512
+ const n = t.querySelectorAll("*");
1513
+ for (const o of n)
1514
+ for (const [s, i] of Object.entries(y))
1515
+ o.matches(s) && e.get(s).push(o);
1516
+ for (const [o, s] of e.entries())
1517
+ s.length === 0 && e.delete(o);
1518
+ return e;
1519
+ }
1520
+ function en(t) {
1521
+ const e = /* @__PURE__ */ new Set();
1522
+ for (const [n, o] of t.entries()) {
1523
+ const s = y[n];
1524
+ s && s.import && o.length > 0 && (Array.isArray(s.import) ? s.import : [s.import]).forEach((c) => e.add(c));
1525
+ }
1526
+ return e;
1527
+ }
1528
+ async function nn(t, e) {
1529
+ if (t.size === 0)
1530
+ return;
1531
+ const n = Array.from(t).map(async (o) => (e.has(o) || e.set(o, o()), e.get(o)));
1532
+ await Promise.all(n);
1533
+ }
1534
+ function on(t, e) {
1535
+ let n = 0;
1536
+ for (const [o, s] of t.entries()) {
1537
+ const i = y[o];
1538
+ s.forEach((c) => {
1539
+ if (i.init) {
1540
+ i.init.call(e, c);
1541
+ return;
1542
+ }
1543
+ if (i.multiEvent) {
1544
+ const b = r(c);
1545
+ i.events.forEach((S) => {
1546
+ const P = E(c, S.attrName, "event");
1547
+ P && e.listen(c, S.type, (O) => {
1548
+ e.dispatchPanelEvent(P, S.getData(O, b, c));
1549
+ });
1550
+ });
1551
+ return;
1552
+ }
1553
+ const a = r(c), d = a.event;
1554
+ d && e.listen(c, i.event, (b) => {
1555
+ b.stopPropagation();
1556
+ const S = i.getData(b, a, c), P = S._eventOverride || d;
1557
+ delete S._eventOverride, e.dispatchPanelEvent(P, S);
1558
+ });
1559
+ }), n += s.length;
1560
+ }
1561
+ return n;
1562
+ }
1563
+ const y = {
1564
+ ...Object.fromEntries(Qe())
1565
+ }, sn = async function(t, e) {
1566
+ const n = tn(t);
1567
+ if (n.size === 0) {
1568
+ this.debugMe("[Carbon] No Carbon components found in panel");
1569
+ return;
1570
+ }
1571
+ this.carbonComponents || (this.carbonComponents = /* @__PURE__ */ new Map());
1572
+ for (const [i, c] of n.entries())
1573
+ this.carbonComponents.set(i, c);
1574
+ const o = en(n);
1575
+ if (o.size > 0)
1576
+ try {
1577
+ await nn(o, e);
1578
+ } catch (i) {
1579
+ console.error("[Carbon] Failed to load some component modules:", i);
1580
+ }
1581
+ const s = on(n, this);
1582
+ s > 0 && this.debugMe(`[Carbon] Total components initialized: ${s}`);
1583
+ }, an = () => {
1584
+ bt.register("carbon", {
1585
+ /**
1586
+ * Main render function that orchestrates Carbon component initialization.
1587
+ * Called by Panel.parseContent() for each panel that enters the document.
1588
+ *
1589
+ * @param {Element} panel - The panel DOM element to scan and initialize
1590
+ * @param {Map} cache - Import cache to prevent duplicate module loads
1591
+ * @returns {Promise<void>}
1592
+ */
1593
+ render: async function(t, e) {
1594
+ try {
1595
+ await sn.call(this, t, e);
1596
+ } catch (n) {
1597
+ console.error("[Carbon] Initialization error:", n);
1598
+ }
1599
+ },
1600
+ /**
1601
+ * Cleans up Carbon components when a component is disposed.
1602
+ * Carbon Web Components (native web components) automatically cleanup when
1603
+ * removed from the DOM, so this is primarily here for completeness and
1604
+ * future extensibility.
1605
+ *
1606
+ * @param {Element} _element - The element being disposed
1607
+ */
1608
+ dispose: function(t) {
1609
+ },
1610
+ config: {
1611
+ version: "2.0",
1612
+ description: "IBM Carbon Design System Web Components"
1613
+ }
1614
+ }), console.debug("[Zooy] Carbon Design System library registered");
1615
+ };
1616
+ export {
1617
+ an as registerCarbonLibrary
1618
+ };