@trintel/zooy 1.0.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.
- package/dist/chunks/{button-C-oX8EmF.js → button--cIzwEQA.js} +1 -1
- package/dist/chunks/{button-B1jzfT-Z.js → button-i6QyRwAM.js} +4 -4
- package/dist/chunks/{button-skeleton-CK3BHdja.js → button-skeleton-Bk2Vw5Mq.js} +1 -1
- package/dist/chunks/{button-skeleton-DoCp6sBb.js → button-skeleton-D2TeTVpP.js} +4 -4
- package/dist/chunks/{checkbox-CgFjYxQ_.js → checkbox-Dyh34VfG.js} +5 -5
- package/dist/chunks/{checkbox-t3G-H1NN.js → checkbox-atdz21pu.js} +1 -1
- package/dist/chunks/{class-map-D6tjF27Y.js → class-map-CziJvhVR.js} +1 -1
- package/dist/chunks/{class-map-FWQBIzSx.js → class-map-hWNVHb09.js} +1 -1
- package/dist/chunks/{content-switcher-item-c4WBWz31.js → content-switcher-item-88PWpM2j.js} +1 -1
- package/dist/chunks/{content-switcher-item-CedjjtvP.js → content-switcher-item-CpNfKVu-.js} +4 -4
- package/dist/chunks/{dropdown-item-Dh5IEXDr.js → dropdown-item-CDbnp5_k.js} +6 -6
- package/dist/chunks/{dropdown-item-C0SHr4st.js → dropdown-item-CRyAm4Ku.js} +1 -1
- package/dist/chunks/{icon-loader-CJxyg-lp.js → icon-loader-C3acLKRm.js} +1 -1
- package/dist/chunks/{icon-loader-ChKeNR4s.js → icon-loader-CsKt-G8D.js} +1 -1
- package/dist/chunks/{icon-loader-utils-DK8DViXt.js → icon-loader-utils-DKbXKLDh.js} +1 -1
- package/dist/chunks/{icon-loader-utils-BwViqIXz.js → icon-loader-utils-DXGGCFfD.js} +1 -1
- package/dist/chunks/{if-defined-eJcDYClo.js → if-defined-D2rCHx2p.js} +1 -1
- package/dist/chunks/{if-defined-DYWhlnlE.js → if-defined-uehgcl8e.js} +1 -1
- package/dist/chunks/if-non-empty-BEpfFFDX.js +1 -0
- package/dist/chunks/{if-non-empty-COTeEFkK.js → if-non-empty-CcwduEjT.js} +1 -1
- package/dist/chunks/{index-Dc51G1mo.js → index--Q3NhIVC.js} +1 -1
- package/dist/chunks/{index-Z4ar01y-.js → index-B16kSrMy.js} +4 -4
- package/dist/chunks/{index-pS6-humH.js → index-B6vimuhF.js} +1 -1
- package/dist/chunks/{index-CR3DrmQi.js → index-B8fGrrzJ.js} +8 -8
- package/dist/chunks/{index-DBsASlZI.js → index-BEDYiyp9.js} +1 -1
- package/dist/chunks/{index-CBICHiFD.js → index-BEyCs2cc.js} +5 -5
- package/dist/chunks/{index-C3n83pM3.js → index-BIJ3miZu.js} +1 -1
- package/dist/chunks/{index-du3RQU31.js → index-BIvyXnIe.js} +1 -1
- package/dist/chunks/{index-C2oV5vU3.js → index-BMJjuXme.js} +1 -1
- package/dist/chunks/{index-Ctna95NT.js → index-BMNd2Qad.js} +4 -4
- package/dist/chunks/{index-_xRytR0j.js → index-BMNv7Afr.js} +1 -1
- package/dist/chunks/{index-qgl9W8eF.js → index-BMzAaQhy.js} +1 -1
- package/dist/chunks/{index-DUtoSCTU.js → index-BODxU-Mu.js} +9 -9
- package/dist/chunks/{index-hH_m653R.js → index-BPRteboN.js} +5 -5
- package/dist/chunks/{index-D9sRIKMQ.js → index-BTUYIkmg.js} +5 -5
- package/dist/chunks/{index-MgWriQfr.js → index-BUcMLg1n.js} +1 -1
- package/dist/chunks/{index-CJdEJ8pY.js → index-BVpkxHll.js} +1 -1
- package/dist/chunks/{index-CKYRBtLC.js → index-BWBjCDwY.js} +1 -1
- package/dist/chunks/{index-BMquNDkd.js → index-BYHXKkvf.js} +6 -6
- package/dist/chunks/{index-CQl4NaPS.js → index-BeKAg3cB.js} +1 -1
- package/dist/chunks/{index-CTsGb3mD.js → index-Bgo3KCFI.js} +7 -7
- package/dist/chunks/{index-Bls8zdHV.js → index-Bh3jqbKV.js} +5 -5
- package/dist/chunks/{index-CkxGsCJy.js → index-Bk2MEnMu.js} +7 -7
- package/dist/chunks/{index-CEy6bu7P.js → index-BlAm81hv.js} +1 -1
- package/dist/chunks/{index-BseD7Jzt.js → index-Bp5LwA_m.js} +1 -1
- package/dist/chunks/{index-BwRxBdeg.js → index-BqExj5O7.js} +1 -1
- package/dist/chunks/{index-BbJQIwkY.js → index-BrqEja9V.js} +8 -8
- package/dist/chunks/{index-CIZ3Gnmm.js → index-BtPiuBUm.js} +1 -1
- package/dist/chunks/{index-yzFU-E6F.js → index-Bu6R2tix.js} +1 -1
- package/dist/chunks/{index-i4heE-wx.js → index-Bug3BjgA.js} +3 -3
- package/dist/chunks/{index-Bff6B9vY.js → index-BwhAoVy-.js} +7 -7
- package/dist/chunks/{index-B8Ze9ISK.js → index-BxGUZ-qP.js} +1 -1
- package/dist/chunks/{index-BGGDxbLL.js → index-ByNfpHAO.js} +5 -5
- package/dist/chunks/{index-BeMnerDj.js → index-Byf_K1x1.js} +8 -8
- package/dist/chunks/{index-Dd9iSSXa.js → index-C-P030e_.js} +3 -3
- package/dist/chunks/{index-DbAeG1nY.js → index-C1Eehpcx.js} +1 -1
- package/dist/chunks/{index-Dk3tlz8Q.js → index-C4GpRDm7.js} +1 -1
- package/dist/chunks/{index-hn76Yo-L.js → index-C5b2680a.js} +1 -1
- package/dist/chunks/{index-CYIcfuAW.js → index-C5s9Z5Ou.js} +3 -3
- package/dist/chunks/{index-CqQZpHti.js → index-C9HJjC2j.js} +1 -1
- package/dist/chunks/{index-i9jyrFc9.js → index-CFG5exAl.js} +1 -1
- package/dist/chunks/{index-pc36PiDY.js → index-CHIQ4wsM.js} +1 -1
- package/dist/chunks/{index-7cXLLw89.js → index-CO_QGXLN.js} +5 -5
- package/dist/chunks/{index-BwFE4R87.js → index-CPLpCt6z.js} +3 -3
- package/dist/chunks/{index-Cv6qE9qP.js → index-CP_zaIyv.js} +1 -1
- package/dist/chunks/{index-Cp3P3KaW.js → index-CPzh43Kr.js} +1 -1
- package/dist/chunks/{index-CsjJntyD.js → index-CTEnXoVq.js} +1 -1
- package/dist/chunks/{index-DyO3Wdy_.js → index-CUI3NPWg.js} +1 -1
- package/dist/chunks/{index-C-pfDP7B.js → index-C_JOABLw.js} +1 -1
- package/dist/chunks/{index-ClE0uX_c.js → index-C_NhQPDA.js} +1 -1
- package/dist/chunks/{index-DYvD9xjl.js → index-CbiknV4d.js} +1 -1
- package/dist/chunks/{index-4WNeLsiw.js → index-CcK76f0I.js} +3 -3
- package/dist/chunks/{index-B5GB0rQW.js → index-Cd1j7Qp1.js} +5 -5
- package/dist/chunks/{index-DGw1TVFB.js → index-Chyr-DU2.js} +2 -2
- package/dist/chunks/{index-C572_UKV.js → index-CjVvmbL6.js} +1 -1
- package/dist/chunks/{index-BBap1uCI.js → index-CsKII5mz.js} +1 -1
- package/dist/chunks/{index-B4SxU_Hu.js → index-CwpgmKTP.js} +7 -7
- package/dist/chunks/{index-Bt7v-zqV.js → index-CxJCioQg.js} +1 -1
- package/dist/chunks/{index-uwN33H1P.js → index-CyF5Kef-.js} +5 -5
- package/dist/chunks/{index-Cnsy7Qk3.js → index-CyR413wv.js} +5 -5
- package/dist/chunks/{index-4XJJobHw.js → index-CyvZ9jxn.js} +5 -5
- package/dist/chunks/{index-C6bOvXSf.js → index-Czs-UAWh.js} +4 -4
- package/dist/chunks/{index-B0nToMRj.js → index-D-iqTNbL.js} +4 -4
- package/dist/chunks/{index-9fmHblh5.js → index-D9nVgUNo.js} +1 -1
- package/dist/chunks/{index-DNWjc2SJ.js → index-DDUqY4Rl.js} +2 -2
- package/dist/chunks/{index-OgL1A9Rm.js → index-DEdeVoZn.js} +1 -1
- package/dist/chunks/{index-Cu1u3Mjn.js → index-DEtGo4Q7.js} +4 -4
- package/dist/chunks/{index-BQnyeVHX.js → index-DGvLgX2O.js} +1 -1
- package/dist/chunks/{index-Bymsj9gH.js → index-DGvVa-5J.js} +1 -1
- package/dist/chunks/{index-Bi9WliCA.js → index-DIg4fP-p.js} +6 -6
- package/dist/chunks/{index-Dh4LYLg5.js → index-DNkLJEg1.js} +10 -10
- package/dist/chunks/{index-JWULDURW.js → index-DPCfOgTU.js} +1 -1
- package/dist/chunks/index-DPnGRDRl.js +1 -0
- package/dist/chunks/{index-CWlg_Hu2.js → index-DQ4Y-fiZ.js} +4 -4
- package/dist/chunks/{index-GDVDUQtg.js → index-DSMPUWJU.js} +7 -7
- package/dist/chunks/{index-DIsXKJDH.js → index-DSgb2u7b.js} +1 -1
- package/dist/chunks/{index-BBWp83R-.js → index-DTadLLRG.js} +1 -1
- package/dist/chunks/{index-BRnzFxjk.js → index-DTtMSAgV.js} +1 -1
- package/dist/chunks/{index-0AElqkkj.js → index-DX2JlRat.js} +1 -1
- package/dist/chunks/{index-GbWz6fuF.js → index-DZrmJ7Ll.js} +5 -5
- package/dist/chunks/{index-DZabSr3s.js → index-DdkIREYU.js} +3 -3
- package/dist/chunks/{index-lFqOe0IJ.js → index-DkphY0sd.js} +1 -1
- package/dist/chunks/{index-BAAA4wkE.js → index-Do9f8Pwe.js} +2 -2
- package/dist/chunks/{index-CIiIAqrQ.js → index-Dr4evLL7.js} +3 -3
- package/dist/chunks/{index-QzojJs5M.js → index-DwCXQC7X.js} +2 -2
- package/dist/chunks/{index-DrDKdYFJ.js → index-DwDG_y9_.js} +1 -1
- package/dist/chunks/{index-BvdNKhJw.js → index-F2zwTZm1.js} +1 -1
- package/dist/chunks/{index-CoAT1iC6.js → index-HbS1lUW6.js} +1 -1
- package/dist/chunks/{index-Bo2QmpPO.js → index-LtB-4-X9.js} +1 -1
- package/dist/chunks/{index-DWjrCygZ.js → index-QuyEX50y.js} +1 -1
- package/dist/chunks/{index-CzAwJhyQ.js → index-WpBhhuED.js} +3 -3
- package/dist/chunks/{index-Bb_1S0pr.js → index-d0CqW2Cm.js} +5 -5
- package/dist/chunks/{index-CV7TVQ4T.js → index-el9l-ZQy.js} +4 -4
- package/dist/chunks/{index-cuMoh7qn.js → index-gfbRBI-d.js} +1 -1
- package/dist/chunks/{index-Cwb1pbm9.js → index-hhX-bWEv.js} +5 -5
- package/dist/chunks/{index-CFqKkC5Z.js → index-jdx-M5Y-.js} +1 -1
- package/dist/chunks/{index-uxZPrL2m.js → index-nfJ9ioGW.js} +6 -6
- package/dist/chunks/{index-DfFx1Jz3.js → index-oS8XvY4G.js} +3 -3
- package/dist/chunks/{index-DSOPjl5x.js → index-t9TINCcm.js} +7 -7
- package/dist/chunks/{index-Bunat0DP.js → index-tQGRhvw0.js} +6 -6
- package/dist/chunks/{index-TJL02uup.js → index-tdmIA8Xp.js} +6 -6
- package/dist/chunks/{index-D8LE8G2j.js → index-w027CjA0.js} +1 -1
- package/dist/chunks/{index-DyyLrVDY.js → index-wgp15jn2.js} +4 -4
- package/dist/chunks/index-xipeWGGU.js +2 -0
- package/dist/chunks/{loading-icon-DdwpAk8-.js → loading-icon-CN-iehcR.js} +1 -1
- package/dist/chunks/{loading-icon-CPvmJvpZ.js → loading-icon-q__8yLZw.js} +1 -1
- package/dist/chunks/{main-Bx21zlkN.js → main-BPWCMI5R.js} +7 -7
- package/dist/chunks/{main-BGOPab-5.js → main-BywCEBtD.js} +214 -168
- package/dist/chunks/{property-DAFv3PCb.js → property-DCTz3KPt.js} +1 -1
- package/dist/chunks/{property-BkjBVRuu.js → property-DzfJpYmn.js} +1 -1
- package/dist/chunks/{register-DTXmg-gw.js → register-B4yRiHm6.js} +1 -1
- package/dist/chunks/{register-BCEOkbXG.js → register-C3XDWad0.js} +393 -358
- package/dist/chunks/{register-Bkr1UKav.js → register-CyNp_638.js} +1 -1
- package/dist/chunks/register-DpOrINOx.js +1 -0
- package/dist/chunks/{search-npG8ywjx.js → search-BCJx6Xft.js} +6 -6
- package/dist/chunks/{search-DDFN8-Mz.js → search-CzmoEHwa.js} +1 -1
- package/dist/chunks/{select-DkCpQORs.js → select-0jyl720Y.js} +7 -7
- package/dist/chunks/{select-CFy3MvH6.js → select-DC0T8Fw_.js} +1 -1
- package/dist/chunks/{state-BdgD82MZ.js → state-BiEAGUqO.js} +1 -1
- package/dist/chunks/{state-uF7CZaP5.js → state-DJQLwKiU.js} +1 -1
- package/dist/chunks/{text-input-DVdkm07X.js → text-input-BGuFqOdN.js} +5 -5
- package/dist/chunks/{text-input-BUdM-ojg.js → text-input-BPvBDzky.js} +1 -1
- package/dist/chunks/{tooltip-content-BXcBmMsV.js → tooltip-content-BOefn0hU.js} +1 -1
- package/dist/chunks/{tooltip-content-CWRE_NqH.js → tooltip-content-CWdOnBaw.js} +3 -3
- package/dist/chunks/{unsafe-html-CpAqmPyx.js → unsafe-html-Bi2pB4Lb.js} +1 -1
- package/dist/chunks/{unsafe-html-Bg0eM3hS.js → unsafe-html-xqClX-6M.js} +1 -1
- package/dist/zooy.cjs.js +1 -1
- package/dist/zooy.es.js +3 -3
- package/package.json +1 -1
- package/src/sass/carbon.scss +46 -13
- package/dist/chunks/if-non-empty-CxMysAQW.js +0 -1
- package/dist/chunks/index-B5DpS-cb.js +0 -2
- package/dist/chunks/index-Do1DszoZ.js +0 -1
- package/dist/chunks/register-D_CXtGy1.js +0 -1
package/dist/zooy.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./chunks/main-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./chunks/main-BPWCMI5R.js");exports.Binder=e.Binder;exports.Component=e.Component;exports.ComponentLibraryRegistry=e.ComponentLibraryRegistry;exports.Conductor=e.Conductor;exports.Dragger=e.Dragger;exports.Evt=e.Evt;exports.FormPanel=e.FormPanel;exports.Panel=e.Panel;exports.Split=e.Split;exports.UiEventType=e.UiEventType;exports.UserManager=e.UserManager;exports.View=e.View;exports.default=e.zooy;exports.domUtils=e.domUtils;exports.handlers=e.handlers;exports.registerCarbonLibrary=e.registerCarbonLibrary;exports.registerMdcLibrary=e.registerMdcLibrary;exports.uriUtils=e.uriUtils;exports.zoo=e.zoo;
|
package/dist/zooy.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as r,
|
|
1
|
+
import { B as r, s as e, C as i, w as n, D as o, q as t, F as l, P as d, S as g, v as y, U as m, V as p, z as C, y as U, G as b, r as u, n as v, A as L, H as P } from "./chunks/main-BywCEBtD.js";
|
|
2
2
|
export {
|
|
3
3
|
r as Binder,
|
|
4
4
|
e as Component,
|
|
@@ -9,8 +9,8 @@ export {
|
|
|
9
9
|
l as FormPanel,
|
|
10
10
|
d as Panel,
|
|
11
11
|
g as Split,
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
y as UiEventType,
|
|
13
|
+
m as UserManager,
|
|
14
14
|
p as View,
|
|
15
15
|
C as default,
|
|
16
16
|
U as domUtils,
|
package/package.json
CHANGED
package/src/sass/carbon.scss
CHANGED
|
@@ -64,25 +64,62 @@ cds-table {
|
|
|
64
64
|
cds-table-cell {
|
|
65
65
|
&.number {
|
|
66
66
|
text-align: right;
|
|
67
|
+
|
|
68
|
+
&.index {
|
|
69
|
+
width: 2.5em;
|
|
70
|
+
}
|
|
67
71
|
}
|
|
68
72
|
}
|
|
69
73
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
text-align: right;
|
|
74
|
-
}
|
|
74
|
+
cds-table-header-cell.number::part(label-text) {
|
|
75
|
+
flex: 1;
|
|
76
|
+
text-align: right;
|
|
75
77
|
}
|
|
78
|
+
|
|
76
79
|
}
|
|
77
80
|
|
|
81
|
+
|
|
78
82
|
// Batch filter popover - active state styling
|
|
79
83
|
// Matches Carbon's overflow menu behavior when open
|
|
80
|
-
cds-popover
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
+
cds-popover {
|
|
85
|
+
&.cds--overflow-menu--open {
|
|
86
|
+
box-shadow: 0 2px 6px var(--cds-shadow);
|
|
87
|
+
background-color: var(--cds-background);
|
|
88
|
+
transition: none;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
cds-popover-content {
|
|
92
|
+
.batch-filter-container {
|
|
93
|
+
display: flex;
|
|
94
|
+
|
|
95
|
+
&.horizontal {
|
|
96
|
+
flex-flow: row nowrap;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
&.vertical {
|
|
100
|
+
flex-flow: column nowrap;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
padding: 1.5rem;
|
|
104
|
+
gap: 1.5rem;
|
|
105
|
+
|
|
106
|
+
.divider {
|
|
107
|
+
border-block-start: 1px solid var(--cds-layer-accent);
|
|
108
|
+
border-inline-start: 1px solid var(--cds-layer-accent);
|
|
109
|
+
|
|
110
|
+
&:last-of-type {
|
|
111
|
+
border: none;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
&[data-batch-filter] cds-popover-content::part(content) {
|
|
118
|
+
max-inline-size: 700px !important;
|
|
119
|
+
}
|
|
84
120
|
}
|
|
85
121
|
|
|
122
|
+
|
|
86
123
|
.zoo-datatable-skeleton-wrapper {
|
|
87
124
|
display: grid;
|
|
88
125
|
grid-template-columns: 1fr;
|
|
@@ -111,7 +148,3 @@ cds-popover.cds--overflow-menu--open {
|
|
|
111
148
|
}
|
|
112
149
|
}
|
|
113
150
|
|
|
114
|
-
.hidden {
|
|
115
|
-
opacity: 0;
|
|
116
|
-
visibility: hidden;
|
|
117
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const n=require("./if-defined-DYWhlnlE.js");var d=i=>n.o(i===""?void 0:i??void 0);exports.ifNonEmpty=d;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";require("./tooltip-content-BXcBmMsV.js");require("./content-switcher-item-c4WBWz31.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./main-Bx21zlkN.js");var it=r._curry2(function(e,n){for(var s={},o=0;o<e.length;)e[o]in n&&(s[e[o]]=n[e[o]]),o+=1;return s}),k={},B;function ct(){return B||(B=1,(function(t){t.TABLE_SIZE=void 0,(function(n){n.XS="xs",n.SM="sm",n.MD="md",n.LG="lg",n.XL="xl"})(t.TABLE_SIZE||(t.TABLE_SIZE={})),t.TABLE_SORT_DIRECTION=void 0,(function(n){n.NONE="none",n.ASCENDING="ascending",n.DESCENDING="descending"})(t.TABLE_SORT_DIRECTION||(t.TABLE_SORT_DIRECTION={})),t.TABLE_SORT_CYCLE=void 0,(function(n){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"})(t.TABLE_SORT_CYCLE||(t.TABLE_SORT_CYCLE={}));const e={[t.TABLE_SORT_CYCLE.BI_STATES_FROM_ASCENDING]:[t.TABLE_SORT_DIRECTION.ASCENDING,t.TABLE_SORT_DIRECTION.DESCENDING],[t.TABLE_SORT_CYCLE.BI_STATES_FROM_DESCENDING]:[t.TABLE_SORT_DIRECTION.DESCENDING,t.TABLE_SORT_DIRECTION.ASCENDING],[t.TABLE_SORT_CYCLE.TRI_STATES_FROM_ASCENDING]:[t.TABLE_SORT_DIRECTION.NONE,t.TABLE_SORT_DIRECTION.ASCENDING,t.TABLE_SORT_DIRECTION.DESCENDING],[t.TABLE_SORT_CYCLE.TRI_STATES_FROM_DESCENDING]:[t.TABLE_SORT_DIRECTION.NONE,t.TABLE_SORT_DIRECTION.DESCENDING,t.TABLE_SORT_DIRECTION.ASCENDING]};t.TABLE_SORT_CYCLES=e})(k)),k}var rt=ct();const at=()=>Promise.resolve().then(()=>require("./index-BwRxBdeg.js")),F=()=>Promise.resolve().then(()=>require("./index-Bt7v-zqV.js")),lt={"cds-pagination":{import:F,init:function(t){const e=this,n=customElements.get("cds-pagination");let s=null;e.listen(t,n.eventChangeCurrent,o=>{const i=o.detail.page,c=t.pageSize,a=(i-1)*c;a!==s&&(s=a,e.dispatchPanelEvent("pagination-changed-current",{detail:{page:i,pageSize:c,action:"page-change"}}))}),e.listen(t,n.eventPageSizeChanged,o=>{const i=t.pageSize;s=null,e.dispatchPanelEvent("pagination-changed-page-size",{detail:{page:1,pageSize:i,action:"page-size-change"}})})}}},L=(t,e,n)=>{const s=customElements.get("cds-table"),o=customElements.get("cds-pagination"),i=customElements.get(s.selectorTableBatchActions);customElements.get("cds-popover");const c=e.dataBinder,a=e.pagination,u=e.skeleton,h=e.querySelector(s.selectorTableToolbarSearch),g=e.querySelector(s.selectorTableBatchActions),S=e.querySelector(s.selectorTableToolbarContent),N=e.querySelector(s.selectorTableBody),V=["button","a","input","select","textarea",'[role="button"]',".cds--table-expand",".cds--table-column-checkbox"].join(","),w=e.querySelectorAll(s.selectorHeaderCell+"[is-sortable]"),j=e.isSortable||w.length>0,_=Symbol(),y=Symbol(),A=new Map,H=l=>{t.listen(e,"click",d=>{const m=d.target.closest(s.selectorTableRow);if(!m||d.composedPath().some(v=>v.matches&&v.matches(V)))return;d.stopPropagation();const p=r.getSemanticAttributes(m);t.dispatchPanelEvent(l,{...p})})},Y=l=>{t.listen(e,s.eventExpandoToggle,d=>{const m=d.target,p=m.tagName==="CDS-TABLE-HEADER-ROW",v=d.detail.expanded,f=r.getSemanticAttributes(m),E={tableAttrs:n,...f,target:m,allRows:p,didExpand:v};t.dispatchPanelEvent(l,E)})},W=l=>{A.set(_,d=>{t.dispatchPanelEvent(l,d)})},X=l=>{A.set(y,d=>{const m=d.detail.selectedRows,p=Math.min(m.length,g.totalRowsCount),v=d.target,f=r.getSemanticAttributes(v),E=m.map(r.getSemanticAttributes),C={tableAttrs:n,...f,target:v,selectCount:p,selection:E};t.dispatchPanelEvent(l,C)})},$=l=>{t.listen(e,s.eventTableRowSelect,d=>{const m=d.target,p=d.detail.selectedRows||[],v=p.length,f=p.map(r.getSemanticAttributes),E=r.getSemanticAttributes(m),C={tableAttrs:n,...E,selectCount:v,selection:f,target:m};t.dispatchPanelEvent(l,C)})},Z=()=>{t.listen(e,s.eventBeforeSort,l=>{const d=l.target,m=l.detail.oldSortDirection,p=l.detail.sortDirection,v=r.getSemanticAttributes(d),f=v.sortField,E=p===rt.TABLE_SORT_DIRECTION.DESCENDING?`-${f}`:f;l.cancelBubble=!0,l.stopPropagation(),l.preventDefault(),N.innerHTML="",u&&u.show(),w.forEach((P,Ve)=>{P===d?(P.setAttribute("sort-active","true"),P.setAttribute("sort-direction",p)):(P.removeAttribute("sort-active"),P.setAttribute("sort-direction","none"))});const C={ordering:E};c.fetchData(C).then(()=>{a.setData(c),u&&u.hide()}),A.has(_)&&A.get(_)({tableAttrs:n,...v,sortNow:p,sortWas:m,sortField:f,ordering:E,target:d})})},J=()=>{t.listen(e,s.eventTableRowSelectAll,l=>{l.detail.selectedRows.length===0&&e.querySelectorAll(s.selectorTableRow).forEach(d=>{d.disabled=!1,d.selected=!1}),A.has(y)&&A.get(y)(l)})},K=()=>{t.listen(e,s.eventBeforeChangeSelectionAll,l=>{l.stopPropagation(),l.detail.callback&&l.detail.callback()})},Q=l=>{const d=e.querySelector("cds-table-header-row");t.listen(l,i.eventClickSelectAll,m=>{m.stopPropagation(),d.dispatchEvent(new CustomEvent(s.eventBeforeChangeSelectionAll,{bubbles:!0,cancelable:!0,composed:!0,detail:{selected:!0,callback:()=>{l.selectedRowsCount=l.totalRowsCount,e.querySelectorAll(s.selectorTableRow).forEach(p=>{p.disabled=!0})}}}))})},tt=l=>{t.listen(l,"keydown",d=>{if(d.key==="Enter"){u&&u.show(),a.totalItems=0,e.querySelector("cds-table-body").replaceChildren();const p={search:l.value||"",offset:0};c.fetchData(p).then(()=>{a.setData(c),u&&u.hide()})}})},et=l=>{t.listen(l,s.eventSearchInput,d=>{if((d.detail.value||"")===""){const p={search:"",offset:0};u&&u.show(),c.fetchData(p).then(()=>{u&&u.hide(),a.setData(c)})}})},nt=l=>{const d=l.querySelector("cds-icon-button, button:not([slot])");if(!d)return;l.caret=!1,t.listen(d,"click",p=>{p.stopPropagation(),l.open=!l.open,l.classList.toggle("cds--overflow-menu--open",l.open)}),new MutationObserver(()=>{l.classList.toggle("cds--overflow-menu--open",l.open)}).observe(l,{attributes:!0,attributeFilter:["open"]})},st=()=>{t.listen(a,o.eventPageSizeChanged,l=>{const m={limit:a.pageSize,offset:0};c.fetchData(m).then(()=>{a.setData(c)})})},ot=()=>{let l=null;t.listen(a,o.eventChangeCurrent,d=>{const{page:m}=d.detail,p=a.pageSize,v=(m-1)*p;if(v!==l){l=v;const f={limit:p,offset:v};c.fetchData(f).then(()=>{a.setData(c),u&&u.hide()})}})};c&&a&&(st(),ot()),c&&h&&(tt(h),et(h));const R=S.querySelectorAll("cds-popover[data-batch-filter]");R&&R.forEach(nt),e.isSelectable&&(J(),K(),g&&Q(g)),c&&j&&Z();const M={zoo:{event:{row:{click:H,expand:Y,check:{one:$,all:X}},column:{sort:W}}}};r.objToPaths(n).forEach(([l,d])=>{r.hasPath(l,M)&&r.path(l,M)(d)})},dt=t=>{const e=document.createElement("cds-pagination");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=>{const s=document.createElement("cds-select-item");s.value=n.toString(),s.textContent=n.toString(),e.appendChild(s)}),e.setData=n=>{if(n.isPaginated){const{count:s}=it(["count"],n.data),o=Math.ceil(s/n.limit),i=100;e.pagesUnknown=o>i,e.totalItems=s}},e},ut=t=>{if(!t.parentNode){console.error("[Carbon Table] Cannot create skeleton: table has no parent node");return}const e=!!t.querySelector("cds-table-header-title"),n=!!t.querySelector("cds-table-header-description"),s=!!t.querySelector("cds-table-toolbar"),o=[...t.querySelectorAll("cds-table-header-cell")].length,i=t.hasAttribute("zebra"),c=t.getAttribute("size"),a=document.createElement("cds-table-skeleton");a.showHeader=e||n,a.showToolbar=s,a.zebra=i,a.columnCount=o,a.size=c,a.show=()=>a.classList.remove("hidden"),a.hide=()=>a.classList.add("hidden");const u=document.createElement("div");return u.classList.add("zoo-datatable-skeleton-wrapper"),t.parentNode.insertBefore(u,t),u.appendChild(a),u.appendChild(t),a},mt=(t,e)=>{const n=e.getAttribute("zoo-url-api"),s=parseInt(e.getAttribute("data-page-size")||25,10);if(n)return new r.Binder(t,n,e,{urlParams:{limit:s}})},pt={selector:"cds-table",import:[at,F],init:function(t){const e=r.getSemanticAttributes(t),n=this,s=mt(n,t);if(r.isDefAndNotNull(s)){t.dataBinder=s;const o=ut(t);t.skeleton=o;const i=dt(s);t.pagination=i,t.after(i),s.fetchData().then(c=>{o.hide(),i.setData(s),L(n,t,e)})}else L(n,t,e)}},b=()=>Promise.resolve().then(()=>require("./index-C572_UKV.js")),vt={selector:"cds-modal",import:b,init:function(t){const e=customElements.get("cds-modal"),n=r.getSemanticAttributes(t),s=r.getEventAttribute(t,"open-event","event");s&&this.listen(t,"cds-modal-beingopened",c=>{this.dispatchPanelEvent(s,{...n,action:"opened"})});const o=t.getAttribute("before-close-event");o&&this.listen(t,e.eventBeforeClose,c=>{this.dispatchPanelEvent(o,{...n,action:"closing",cancelable:!0})}),this.listen(t,e.eventClose,c=>{this.dispatchPanelEvent("destroy_me",{...n,action:"closed",triggeredBy:c.detail?.triggeredBy})});const i=r.getEventAttribute(t,"primary-event","event");i&&this.listen(t,"cds-modal-primary-focus",c=>{this.dispatchPanelEvent(i,{...n,action:"primary"})})}},ht={"cds-modal-header":{import:b},"cds-modal-heading":{import:b},"cds-modal-label":{import:b},"cds-modal-close-button":{import:b},"cds-modal-body":{import:b},"cds-modal-body-content":{import:b},"cds-modal-footer":{import:b},"cds-modal-footer-button":{import:b,init:function(t){const e=r.getSemanticAttributes(t);if(t.getAttribute("type")==="submit"){this.listen(t,"click",o=>{let i=t.closest("form");if(!i){const c=t.getAttribute("form");c&&(i=document.getElementById(c))}i&&i.requestSubmit()});return}const s=e.event;s&&this.listen(t,"click",o=>{o.stopPropagation(),this.dispatchPanelEvent(s,e)})}}},G=()=>Promise.resolve().then(()=>require("./index-D8LE8G2j.js")),gt={selector:"cds-menu",import:G,init:function(t){const e=r.getSemanticAttributes(t),n=r.getEventAttribute(t,"open-event");n&&this.listen(t,"cds-menu-opened",o=>{this.dispatchPanelEvent(n,{...e,action:"opened"})});const s=r.getEventAttribute(t,"close-event");s&&this.listen(t,"cds-menu-closed",o=>{this.dispatchPanelEvent(s,{...e,action:"closed"})}),this.listen(t,"click",o=>{if(o.target.tagName==="CDS-MENU-ITEM"){const i=r.getSemanticAttributes(o.target),c=i.event||e.event;c&&(o.stopPropagation(),this.dispatchPanelEvent(c,{...e,...i}))}}),this.listen(t,"cds-item-changed",o=>{const i=o.detail.triggeredBy,c=r.getSemanticAttributes(i),a=c.event||e.event;a&&this.dispatchPanelEvent(a,{...e,...c,action:"selection-changed"})})}},ft={"cds-menu-button":{import:G,init:function(t){const e=r.getSemanticAttributes(t),n=t.querySelector("cds-menu");n&&this.listen(n,"click",s=>{if(s.target.tagName==="CDS-MENU-ITEM"){const o=r.getSemanticAttributes(s.target),i=o.event||e.event;i&&(s.stopPropagation(),this.dispatchPanelEvent(i,{...e,...o}))}})}}},U=()=>Promise.resolve().then(()=>require("./index-hn76Yo-L.js")),z=()=>Promise.resolve().then(()=>require("./index-DBsASlZI.js")).then(t=>t.index),bt=()=>Promise.resolve().then(()=>require("./index-Dk3tlz8Q.js")),Et=()=>Promise.resolve().then(()=>require("./index-B8Ze9ISK.js")),St={selector:"cds-button",import:U,init:function(t){const e=r.getSemanticAttributes(t);if(t.getAttribute("type")==="submit"){this.listen(t,"click",o=>{let i=t.closest("form");if(!i){const c=t.getAttribute("form");c&&(i=document.getElementById(c))}i&&i.requestSubmit()});return}const s=e.event;s&&this.listen(t,"click",o=>{o.stopPropagation(),this.dispatchPanelEvent(s,e)})}},At={"cds-icon-button:not([data-toggle])":{import:z,event:"click",getData:(t,e)=>e},"cds-icon-button[data-toggle]":{import:z,init:function(t){const e=r.getSemanticAttributes(t);e.event&&this.listen(t,"click",n=>{n.stopPropagation(),t.isSelected=!t.isSelected,this.dispatchPanelEvent(e.event,{...e,isOn:t.isSelected})})}},"cds-button[data-fab]":{import:U,event:"click",getData:(t,e)=>e},"cds-copy-button":{import:Et,init:function(t){const e=r.getSemanticAttributes(t),n=e.event;n&&this.listen(t,"click",o=>{o.stopPropagation(),this.dispatchPanelEvent(n,{...e,action:"copy"})});const s=t.getAttribute("success-event");if(s){const o=new MutationObserver(()=>{t.hasAttribute("feedback-shown")&&this.dispatchPanelEvent(s,{...e,action:"copied"})});o.observe(t,{attributes:!0,attributeFilter:["feedback-shown"]}),t._copyObserver=o}}},"cds-combo-button":{import:bt,init:function(t){const e=r.getSemanticAttributes(t);e.event&&this.listen(t,"click",s=>{const o=s.composedPath(),i=o.some(a=>a.tagName==="CDS-MENU-ITEM"),c=o.some(a=>a.tagName==="CDS-ICON-BUTTON");!i&&!c&&(s.stopPropagation(),this.dispatchPanelEvent(e.event,{...e,action:"primary"}))});const n=t.querySelector("cds-menu");n&&this.listen(n,"click",s=>{if(s.target.tagName==="CDS-MENU-ITEM"){const o=r.getSemanticAttributes(s.target),i=o.event||r.getEventAttribute(t,"menu-event","event");i&&this.dispatchPanelEvent(i,{...e,...o,action:"menu-item"})}})}}},Ct=()=>Promise.resolve().then(()=>require("./index-CIZ3Gnmm.js")),Pt=()=>Promise.resolve().then(()=>require("./index-ClE0uX_c.js")),It=()=>Promise.resolve().then(()=>require("./index-du3RQU31.js")),Dt={selector:"cds-dropdown",import:Ct,init:function(t){const e=customElements.get("cds-dropdown"),n=r.getSemanticAttributes(t),s=n.event;s&&this.listen(t,e.eventSelect,i=>{this.dispatchPanelEvent(s,{...n,value:t.value,selectedValue:i.detail?.item?.value,selectedText:i.detail?.item?.textContent?.trim()})});const o=t.getAttribute("toggle-event");o&&this.listen(t,e.eventToggle,i=>{this.dispatchPanelEvent(o,{...n,open:t.hasAttribute("open")})})}},Nt={"cds-combo-box":{import:Pt,init:function(t){const e=customElements.get("cds-combo-box"),n=r.getSemanticAttributes(t),s=n.event;s&&this.listen(t,e.eventSelect,i=>{const c=i.detail?.item;this.dispatchPanelEvent(s,{...n,value:t.value,selectedValue:c?.value,selectedText:c?.textContent?.trim()})});const o=t.getAttribute("toggle-event");o&&this.listen(t,e.eventToggle,i=>{this.dispatchPanelEvent(o,{...n,open:t.hasAttribute("open")})})}},"cds-multi-select":{import:It,init:function(t){const e=customElements.get("cds-multi-select"),n=r.getSemanticAttributes(t),s=n.event;s&&this.listen(t,e.eventSelect,i=>{const c=t.value?t.value.split(","):[];this.dispatchPanelEvent(s,{...n,selectedItems:c})});const o=t.getAttribute("toggle-event");o&&this.listen(t,e.eventToggle,i=>{this.dispatchPanelEvent(o,{...n,open:t.hasAttribute("open")})})}}},_t=()=>Promise.resolve().then(()=>require("./index-CEy6bu7P.js")),yt=()=>Promise.resolve().then(()=>require("./index-qgl9W8eF.js")),kt={selector:"cds-date-picker",import:_t,init:function(t){const e=customElements.get("cds-date-picker"),n=r.getSemanticAttributes(t),s=t.querySelector('cds-date-picker-input[kind="from"]'),o=t.querySelector('cds-date-picker-input[kind="to"]'),i=s&&o,c=n.event;c&&this.listen(t,e.eventChange,u=>{let h;i?h={from:s.value||"",to:o.value||""}:h=t.value,this.dispatchPanelEvent(c,{...n,value:h})});const a=t.getAttribute("error-event");a&&this.listen(t,e.eventFlatpickrError,u=>{this.dispatchPanelEvent(a,{...n,error:u.detail})})}},Tt={"cds-time-picker":{import:yt,event:"cds-time-picker-changed",getData:(t,e,n)=>({...e,value:n.value})}},qt=()=>Promise.resolve().then(()=>require("./index-CKYRBtLC.js")),Ot={selector:"cds-file-uploader",import:qt,init:function(t){const e=r.getSemanticAttributes(t),n=e.event;if(n){const o=t.querySelector('input[type="file"]');o&&this.listen(o,"change",i=>{this.dispatchPanelEvent(n,{...e,files:Array.from(i.target.files||[])})})}const s=t.getAttribute("delete-event");s&&this.listen(t,"cds-file-uploader-item-deleted",o=>{this.dispatchPanelEvent(s,{...e,fileName:o.detail?.fileName,fileId:o.detail?.fileId})})}},wt=()=>Promise.resolve().then(()=>require("./index-DrDKdYFJ.js")),Rt=()=>Promise.resolve().then(()=>require("./index-Cp3P3KaW.js")),Mt=()=>Promise.resolve().then(()=>require("./index-Do1DszoZ.js")),Bt={selector:"cds-tabs",import:wt,init:function(t){const e=customElements.get("cds-tabs"),n=r.getSemanticAttributes(t),s=t.getAttribute("before-select-event");s&&this.listen(t,e.eventBeforeSelect,i=>{this.dispatchPanelEvent(s,{...n,tabValue:i.detail.value,cancelable:!0})});const o=n.event;o&&this.listen(t,e.eventSelect,i=>{const c=i.detail.item,a=r.getSemanticAttributes(c);this.dispatchPanelEvent(o,{...n,...a,tabValue:i.detail.value})})}},Lt={"cds-accordion":{import:Rt,init:function(t){const e=customElements.get("cds-accordion-item"),n=r.getSemanticAttributes(t);[...t.querySelectorAll("cds-accordion-item")].forEach(o=>{const i=r.getSemanticAttributes(o),c=i.event||n.event;c&&this.listen(o,e.eventToggle,a=>{this.dispatchPanelEvent(c,{...n,...i,open:a.detail.open})})})}},"cds-content-switcher":{import:Mt,init:function(t){const e=customElements.get("cds-content-switcher"),n=r.getSemanticAttributes(t),s=t.getAttribute("before-select-event");s&&this.listen(t,e.eventBeforeSelect,i=>{this.dispatchPanelEvent(s,{...n,value:i.detail.value,cancelable:!0})});const o=n.event;o&&this.listen(t,e.eventSelect,i=>{const c=i.detail.item,a=r.getSemanticAttributes(c);this.dispatchPanelEvent(o,{...n,...a,value:c.getAttribute("value")})})}}},T=()=>Promise.resolve().then(()=>require("./index-i9jyrFc9.js")),zt={selector:"cds-breadcrumb",import:T,init:function(t){const e=r.getSemanticAttributes(t),n=e.event;if(n){const s=i=>{this.dispatchPanelEvent(n,{...e,...i})};this.listen(t,"click",i=>{const c=i.target.closest("cds-breadcrumb-link");if(c){i.preventDefault(),i.stopPropagation();const a=r.getSemanticAttributes(c);s(a)}});const o=t.querySelector("cds-overflow-menu-body");o&&this.listen(o,"cds-overflow-menu-item-clicked",i=>{i.stopPropagation();const c=r.getSemanticAttributes(i.target);s(c)})}}},xt={"cds-breadcrumb-item":{import:T},"cds-breadcrumb-link":{import:T,event:"click",getData:(t,e,n)=>(t.preventDefault(),{...e,href:n.getAttribute("href")})}},Ft=()=>Promise.resolve().then(()=>require("./index-C2oV5vU3.js")),Gt=()=>Promise.resolve().then(()=>require("./index-DWjrCygZ.js")),Ut=()=>Promise.resolve().then(()=>require("./index-BseD7Jzt.js")),Vt=()=>Promise.resolve().then(()=>require("./index-CQl4NaPS.js")),jt=()=>Promise.resolve().then(()=>require("./index-DIsXKJDH.js")),Ht={selector:"cds-text-input",import:Ft,multiEvent:!0,events:[{type:"input",attrName:"event",getData:(t,e)=>({...e,value:t.currentTarget.value})},{type:"change",attrName:"change-event",getData:(t,e)=>({...e,value:t.currentTarget.value})}]},Yt={"cds-textarea":{import:Gt,multiEvent:!0,events:[{type:"input",attrName:"event",getData:(t,e)=>({...e,value:t.currentTarget.value})},{type:"change",attrName:"change-event",getData:(t,e)=>({...e,value:t.currentTarget.value})}]},"cds-number-input":{import:Ut,event:"cds-number-input",getData:(t,e,n)=>({...e,value:t.detail.value,direction:t.detail.direction})},"cds-password-input":{import:Vt,multiEvent:!0,events:[{type:"input",attrName:"event",getData:(t,e)=>({...e,value:t.currentTarget.value})},{type:"change",attrName:"change-event",getData:(t,e)=>({...e,value:t.currentTarget.value})}]},"cds-search":{import:jt,event:"cds-search-input",getData:(t,e,n)=>({...e,value:n.value})}},Wt=()=>Promise.resolve().then(()=>require("./index-DyO3Wdy_.js")),Xt=()=>Promise.resolve().then(()=>require("./index-OgL1A9Rm.js")),$t=()=>Promise.resolve().then(()=>require("./index-CFqKkC5Z.js")),Zt=()=>Promise.resolve().then(()=>require("./index-DYvD9xjl.js")),Jt=()=>Promise.resolve().then(()=>require("./index-BBWp83R-.js")),Kt={selector:"cds-checkbox",import:Wt,event:"cds-checkbox-changed",getData:(t,e,n)=>({...e,checked:t.detail.checked,value:n.value})},Qt={"cds-radio-button-group":{import:Xt,event:"cds-radio-button-group-changed",getData:(t,e)=>({...e,value:t.detail?.value})},"cds-toggle":{import:$t,event:"cds-toggle-changed",getData:(t,e)=>({...e,isOn:t.detail.checked,value:t.detail.checked})},"cds-select":{import:Zt,event:"cds-select-selected",getData:(t,e)=>({...e,value:t.detail.value})},"cds-slider":{import:Jt,init:function(t){const e=r.getSemanticAttributes(t),n=e.event;n&&this.listen(t,"cds-slider-changed",o=>{this.dispatchPanelEvent(n,{...e,value:o.detail.value})});const s=t.getAttribute("input-event");s&&this.listen(t,"cds-slider-input-changed",o=>{this.dispatchPanelEvent(s,{...e,value:o.detail.value})})}}},q=()=>Promise.resolve().then(()=>require("./index-9fmHblh5.js")),te={selector:"cds-tag",import:q,event:"click",getData:(t,e)=>e},ee={"cds-dismissible-tag":{import:q,init:function(t){const e=r.getSemanticAttributes(t),n=t.getAttribute("click-event");n&&this.listen(t,"click",o=>{o.target.closest("button")||this.dispatchPanelEvent(n,{...e})});const s=e.event;s&&this.listen(t,"cds-dismissible-tag-closed",o=>{this.dispatchPanelEvent(s,{...e,action:"closed"})})}},"cds-filter-tag":{import:q,event:"cds-filter-tag-closed",getData:(t,e)=>({...e,action:"remove"})}},ne=()=>Promise.resolve().then(()=>require("./index-yzFU-E6F.js")),se=()=>Promise.resolve().then(()=>require("./index-BvdNKhJw.js")),oe=()=>Promise.resolve().then(()=>require("./index-C3n83pM3.js")),ie={selector:"cds-overflow-menu",import:ne,init:function(t){const e=r.getSemanticAttributes(t),n=e.event,s=t.querySelector("cds-overflow-menu-body");n&&s&&this.listen(s,"cds-overflow-menu-item-clicked",o=>{o.stopPropagation();const i=r.getSemanticAttributes(o.target);this.dispatchPanelEvent(n,{...e,...i})})}},ce={"cds-structured-list":{import:se,init:function(t){const e=r.getSemanticAttributes(t);[...t.querySelectorAll("cds-structured-list-row")].forEach(s=>{const o=r.getSemanticAttributes(s),i=o.event||e.event;i&&this.listen(s,"click",c=>{c.stopPropagation(),this.dispatchPanelEvent(i,{...e,...o})})}),t.hasAttribute("selection")&&this.listen(t,"cds-structured-list-selected",s=>{const o=s.detail.row,i=r.getSemanticAttributes(o),c=e.event;c&&this.dispatchPanelEvent(c,{...e,...i})})}},"cds-tree-view":{import:oe,init:function(t){const e=r.getSemanticAttributes(t);this.listen(t,"cds-tree-node-selected",s=>{const o=s.detail.node,i=r.getSemanticAttributes(o),c=i.event||e.event;c&&this.dispatchPanelEvent(c,{...e,...i,nodeId:o.id,label:o.getAttribute("label")})});const n=r.getEventAttribute(t,"expand-event");n&&this.listen(t,"cds-tree-node-expanded",s=>{this.dispatchPanelEvent(n,{...e,nodeId:s.detail.node.id,expanded:s.detail.expanded})})}}},O=()=>Promise.resolve().then(()=>require("./index-JWULDURW.js")),re={selector:"cds-toast-notification",import:O,event:"cds-notification-closed",getData:(t,e)=>({...e,action:"closed"})},ae={"cds-inline-notification":{import:O,event:"cds-notification-closed",getData:(t,e)=>({...e,action:"closed"})},"cds-actionable-notification":{import:O,init:function(t){const e=r.getSemanticAttributes(t),n=r.getEventAttribute(t,"close-event","event");n&&this.listen(t,"cds-notification-closed",o=>{this.dispatchPanelEvent(n,{...e,action:"closed"})});const s=r.getEventAttribute(t,"action-event");s&&this.listen(t,"cds-notification-actioned",o=>{this.dispatchPanelEvent(s,{...e,action:"actioned"})})}}},D=()=>Promise.resolve().then(()=>require("./index-pS6-humH.js")),le={selector:"cds-clickable-tile",import:D,event:"click",getData:(t,e)=>({...e,href:t.currentTarget.getAttribute("href")})},de={"cds-expandable-tile":{import:D,init:function(t){const e=r.getSemanticAttributes(t),n=t.getAttribute("before-toggle-event");n&&this.listen(t,"cds-expandable-tile-beingtoggled",o=>{this.dispatchPanelEvent(n,{...e,expanded:o.detail.expanded,cancelable:!0})});const s=e.event;s&&this.listen(t,"cds-expandable-tile-toggled",o=>{this.dispatchPanelEvent(s,{...e,expanded:o.detail.expanded})})}},"cds-selectable-tile":{import:D,event:"cds-selectable-tile-changed",getData:(t,e,n)=>({...e,selected:t.detail.selected,value:n.value})},"cds-radio-tile":{import:D,event:"cds-selectable-tile-changed",getData:(t,e,n)=>({...e,selected:t.detail.selected,value:n.value})}},ue=()=>Promise.resolve().then(()=>require("./index-Cv6qE9qP.js")),me=()=>Promise.resolve().then(()=>require("./index-MgWriQfr.js")),pe=()=>Promise.resolve().then(()=>require("./index-0AElqkkj.js")),ve={selector:"cds-progress-bar",import:ue,init:function(t){const e=r.getSemanticAttributes(t);if(e.event){const n=new MutationObserver(()=>{const s=parseFloat(t.getAttribute("value")||"0"),o=parseFloat(t.getAttribute("max")||"100");s>=o&&this.dispatchPanelEvent(e.event,{...e,value:s,status:"complete"})});n.observe(t,{attributes:!0,attributeFilter:["value"]}),t._progressObserver=n}}},he={"cds-progress-indicator":{import:me,init:function(t){const e=r.getSemanticAttributes(t);this.listen(t,"cds-progress-step-click",n=>{const s=n.target,o=r.getSemanticAttributes(s),i=o.event||e.event;i&&this.dispatchPanelEvent(i,{...e,...o,stepIndex:s.getAttribute("data-index"),stepLabel:s.getAttribute("label")})})}},"cds-inline-loading":{import:pe,init:function(t){const e=r.getSemanticAttributes(t),n=e.event;n&&this.listen(t,"cds-inline-loading-onsuccess",o=>{this.dispatchPanelEvent(n,{...e,status:"finished"})});const s=t.getAttribute("status-event");if(s){const o=new MutationObserver(i=>{i.forEach(c=>{if(c.attributeName==="status"){const a=t.getAttribute("status");this.dispatchPanelEvent(s,{...e,status:a})}})});o.observe(t,{attributes:!0,attributeFilter:["status"]}),t._statusObserver=o}}}},ge=()=>Promise.resolve().then(()=>require("./index-CsjJntyD.js")),fe=()=>Promise.resolve().then(()=>require("./index-CJdEJ8pY.js")).then(t=>t.index),be=()=>Promise.resolve().then(()=>require("./index-lFqOe0IJ.js")),Ee={selector:"cds-tooltip",import:ge,init:function(t){const e=r.getSemanticAttributes(t),n=r.getEventAttribute(t,"open-event");n&&this.listen(t,"cds-tooltip-beingopened",o=>{this.dispatchPanelEvent(n,{...e,action:"opened"})});const s=r.getEventAttribute(t,"close-event");s&&this.listen(t,"cds-tooltip-closed",o=>{this.dispatchPanelEvent(s,{...e,action:"closed"})})}},Se={"cds-popover":{import:fe,init:function(t){const e=r.getSemanticAttributes(t),n=r.getEventAttribute(t,"open-event");n&&this.listen(t,"cds-popover-beingopened",o=>{this.dispatchPanelEvent(n,{...e,action:"opened"})});const s=r.getEventAttribute(t,"close-event");s&&this.listen(t,"cds-popover-closed",o=>{this.dispatchPanelEvent(s,{...e,action:"closed"})})}},"cds-toggletip":{import:be,init:function(t){const e=r.getSemanticAttributes(t);if(e.event){const n=new MutationObserver(s=>{s.forEach(o=>{if(o.attributeName==="open"){const i=t.hasAttribute("open");this.dispatchPanelEvent(e.event,{...e,action:i?"opened":"closed",open:i})}})});n.observe(t,{attributes:!0,attributeFilter:["open"]}),t._toggletipObserver=n}}}},Ae=()=>Promise.resolve().then(()=>require("./index-BRnzFxjk.js")).then(t=>t.index),Ce=()=>Promise.resolve().then(()=>require("./index-pc36PiDY.js")),Pe={selector:"cds-link",import:Ae,event:"click",getData:(t,e,n)=>({...e,href:n.getAttribute("href")})},Ie={"cds-code-snippet":{import:Ce,event:"cds-copy-button-clicked",getData:(t,e)=>({...e,action:"copied"})}},x=()=>Promise.resolve().then(()=>require("./index-CqQZpHti.js")),De=()=>Promise.resolve().then(()=>require("./index-CoAT1iC6.js")),Ne=()=>Promise.resolve().then(()=>require("./index-Bymsj9gH.js")),_e=()=>Promise.resolve().then(()=>require("./index-_xRytR0j.js")),ye=()=>Promise.resolve().then(()=>require("./index-C-pfDP7B.js")),ke=()=>Promise.resolve().then(()=>require("./index-DbAeG1nY.js")),Te=()=>Promise.resolve().then(()=>require("./index-cuMoh7qn.js")).then(t=>t.index),qe=()=>Promise.resolve().then(()=>require("./index-Bo2QmpPO.js")).then(t=>t.index),Oe=()=>Promise.resolve().then(()=>require("./index-BBap1uCI.js")),we=()=>Promise.resolve().then(()=>require("./index-BQnyeVHX.js")),Re={"cds-form":{import:x},"cds-form-item":{import:x},"cds-form-group":{import:De},"cds-stack":{import:Ne},"cds-heading":{import:_e},"cds-icon":{import:ye},"cds-icon-indicator":{import:ke},"cds-badge-indicator":{import:we},"cds-loading":{import:Te},"cds-skeleton-text":{import:qe},"cds-skeleton-placeholder":{import:Oe}},Me=[pt,vt,gt,St,Dt,kt,Ot,Bt,zt,Ht,Kt,te,ie,re,le,ve,Ee,Pe];function Be(){const t=new Map;return Me.forEach(n=>{t.set(n.selector,n)}),[ht,ft,At,Nt,Tt,Lt,xt,lt,Yt,Qt,ee,ce,ae,de,he,Se,Ie,Re].forEach(n=>{Object.entries(n).forEach(([s,o])=>{t.set(s,o)})}),t}function Le(t){const e=new Map;if(!t||!(t instanceof Element))return e;for(const s of Object.keys(I))e.set(s,[]);for(const[s,o]of Object.entries(I))t.matches(s)&&e.get(s).push(t);const n=t.querySelectorAll("*");for(const s of n)for(const[o,i]of Object.entries(I))s.matches(o)&&e.get(o).push(s);for(const[s,o]of e.entries())o.length===0&&e.delete(s);return e}function ze(t){const e=new Set;for(const[n,s]of t.entries()){const o=I[n];o&&o.import&&s.length>0&&(Array.isArray(o.import)?o.import:[o.import]).forEach(c=>e.add(c))}return e}async function xe(t,e){if(t.size===0)return;const n=Array.from(t).map(async s=>(e.has(s)||e.set(s,s()),e.get(s)));await Promise.all(n)}function Fe(t,e){let n=0;for(const[s,o]of t.entries()){const i=I[s];o.forEach(c=>{if(i.init){i.init.call(e,c);return}if(i.multiEvent){const h=r.getSemanticAttributes(c);i.events.forEach(g=>{const S=r.getEventAttribute(c,g.attrName,"event");S&&e.listen(c,g.type,N=>{e.dispatchPanelEvent(S,g.getData(N,h,c))})});return}const a=r.getSemanticAttributes(c),u=a.event;u&&e.listen(c,i.event,h=>{h.stopPropagation();const g=i.getData(h,a,c),S=g._eventOverride||u;delete g._eventOverride,e.dispatchPanelEvent(S,g)})}),n+=o.length}return n}const I={...Object.fromEntries(Be())},Ge=async function(t,e){const n=Le(t);if(n.size===0){this.debugMe("[Carbon] No Carbon components found in panel");return}this.carbonComponents||(this.carbonComponents=new Map);for(const[i,c]of n.entries())this.carbonComponents.set(i,c);const s=ze(n);if(s.size>0)try{await xe(s,e)}catch(i){console.error("[Carbon] Failed to load some component modules:",i)}const o=Fe(n,this);o>0&&this.debugMe(`[Carbon] Total components initialized: ${o}`)},Ue=()=>{r.ComponentLibraryRegistry.register("carbon",{render:async function(t,e){try{await Ge.call(this,t,e)}catch(n){console.error("[Carbon] Initialization error:",n)}},dispose:function(t){},config:{version:"2.0",description:"IBM Carbon Design System Web Components"}}),console.debug("[Zooy] Carbon Design System library registered")};exports.registerCarbonLibrary=Ue;
|