@trintel/zooy 1.0.16 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (213) hide show
  1. package/dist/chunks/component-library-registry-BBQV6Kpv.js +1 -0
  2. package/dist/chunks/component-library-registry-DB5UeqC2.js +58 -0
  3. package/dist/chunks/register-D3pWAXhm.js +266 -0
  4. package/dist/chunks/register-D7SMu1Gy.js +1372 -0
  5. package/dist/chunks/register-HYODt48Q.js +1 -0
  6. package/dist/chunks/register-g5KUNRdI.js +1 -0
  7. package/dist/chunks/tree-utils-B2JEGXHR.js +267 -0
  8. package/dist/chunks/tree-utils-BYnipT-p.js +1 -0
  9. package/dist/chunks/zoo-CY2QpG41.js +52 -0
  10. package/dist/chunks/zoo-DgdxBjlN.js +390 -0
  11. package/dist/zooy.cjs.js +19 -1
  12. package/dist/zooy.es.js +1298 -20
  13. package/package.json +8 -6
  14. package/dist/chunks/16-30f5E9no.js +0 -1
  15. package/dist/chunks/16-4Ffg4DOO.js +0 -1
  16. package/dist/chunks/16-8pr5mbIO.js +0 -28
  17. package/dist/chunks/16-B56B50XT.js +0 -1
  18. package/dist/chunks/16-BFJN6B6d.js +0 -39
  19. package/dist/chunks/16-BTonF5Je.js +0 -29
  20. package/dist/chunks/16-BXti8Tu-.js +0 -62
  21. package/dist/chunks/16-BiShwKPX.js +0 -28
  22. package/dist/chunks/16-BwDdccyH.js +0 -33
  23. package/dist/chunks/16-C7Xs-wKv.js +0 -1
  24. package/dist/chunks/16-CDRTWf-C.js +0 -21
  25. package/dist/chunks/16-CMCRqVYz.js +0 -1
  26. package/dist/chunks/16-CSWwhDUY.js +0 -21
  27. package/dist/chunks/16-CpNRIuiB.js +0 -1
  28. package/dist/chunks/16-CqC9427V.js +0 -21
  29. package/dist/chunks/16-Cubm18Em.js +0 -1
  30. package/dist/chunks/16-D3Ol0pdg.js +0 -21
  31. package/dist/chunks/16-DH311Of_.js +0 -1
  32. package/dist/chunks/16-Dlq3qxDh.js +0 -1
  33. package/dist/chunks/16-Drl9-5Gn.js +0 -21
  34. package/dist/chunks/16-Dt4v0bcc.js +0 -1
  35. package/dist/chunks/16-DylBiJnm.js +0 -1
  36. package/dist/chunks/20-CQLnFcRb.js +0 -84
  37. package/dist/chunks/20-Df0dXwyx.js +0 -1
  38. package/dist/chunks/button-D3QMXGP6.js +0 -66
  39. package/dist/chunks/button-cEVHuDC9.js +0 -272
  40. package/dist/chunks/button-skeleton-BuDQrAgi.js +0 -21
  41. package/dist/chunks/button-skeleton-CxKOKEQr.js +0 -49
  42. package/dist/chunks/carbon-element-CbfPUYRT.js +0 -1
  43. package/dist/chunks/carbon-element-DzDuXiyl.js +0 -25
  44. package/dist/chunks/checkbox-B_b_oOJ5.js +0 -40
  45. package/dist/chunks/checkbox-CsuLOYIT.js +0 -201
  46. package/dist/chunks/class-map-BwrbvkxB.js +0 -5
  47. package/dist/chunks/class-map-CgGieoOz.js +0 -32
  48. package/dist/chunks/collection-helpers-Bk68Vaau.js +0 -7
  49. package/dist/chunks/collection-helpers-afBvMQaC.js +0 -1
  50. package/dist/chunks/content-switcher-item-C1gdd6k4.js +0 -351
  51. package/dist/chunks/content-switcher-item-c0sXBGJ-.js +0 -27
  52. package/dist/chunks/defs-C88lSWuJ.js +0 -1
  53. package/dist/chunks/defs-Do0OvCKd.js +0 -1165
  54. package/dist/chunks/directive-Dp4ZTz-F.js +0 -5
  55. package/dist/chunks/directive-kLG6oqUu.js +0 -27
  56. package/dist/chunks/dropdown-item-T1jCm1fo.js +0 -69
  57. package/dist/chunks/dropdown-item-Wc8Nj3w-.js +0 -632
  58. package/dist/chunks/focus-B3iymVyL.js +0 -1
  59. package/dist/chunks/focus-WnKGH_xB.js +0 -20
  60. package/dist/chunks/form-D6Tce4-W.js +0 -1
  61. package/dist/chunks/form-DpI-v6DA.js +0 -20
  62. package/dist/chunks/host-listener-CN245INl.js +0 -37
  63. package/dist/chunks/host-listener-DD3oGxvg.js +0 -16
  64. package/dist/chunks/host-listener-gxrTpxgv.js +0 -1
  65. package/dist/chunks/host-listener-rUcT_LUW.js +0 -1
  66. package/dist/chunks/icon-loader-CTCoE5GC.js +0 -7
  67. package/dist/chunks/icon-loader-C_ze306U.js +0 -1
  68. package/dist/chunks/icon-loader-utils-DSajrZop.js +0 -117
  69. package/dist/chunks/icon-loader-utils-DxaQOvJB.js +0 -5
  70. package/dist/chunks/if-defined-7syLabv-.js +0 -10
  71. package/dist/chunks/if-defined-CfI-rREy.js +0 -5
  72. package/dist/chunks/if-non-empty-CsjL_4Ck.js +0 -5
  73. package/dist/chunks/if-non-empty-Dp8CFMva.js +0 -1
  74. package/dist/chunks/index-24ucriY6.js +0 -4
  75. package/dist/chunks/index-5uuGFlSc.js +0 -1
  76. package/dist/chunks/index-ACUVets3.js +0 -188
  77. package/dist/chunks/index-B-VOos8Q.js +0 -108
  78. package/dist/chunks/index-B-qA_3dy.js +0 -52
  79. package/dist/chunks/index-B0PkuE0I.js +0 -188
  80. package/dist/chunks/index-B1QlHHpn.js +0 -381
  81. package/dist/chunks/index-B2dVOGmx.js +0 -458
  82. package/dist/chunks/index-BEAD73rD.js +0 -17
  83. package/dist/chunks/index-BEyeMcZh.js +0 -25
  84. package/dist/chunks/index-BJ3okuBC.js +0 -78
  85. package/dist/chunks/index-BJNdKx6x.js +0 -23
  86. package/dist/chunks/index-BL8xz2V4.js +0 -161
  87. package/dist/chunks/index-BL_Y57_H.js +0 -57
  88. package/dist/chunks/index-BLxE94Et.js +0 -3
  89. package/dist/chunks/index-BP0bDhTG.js +0 -2340
  90. package/dist/chunks/index-BUXzbqzT.js +0 -364
  91. package/dist/chunks/index-BVDZj6Fh.js +0 -76
  92. package/dist/chunks/index-BWqDKfds.js +0 -62
  93. package/dist/chunks/index-BaVSzIan.js +0 -79
  94. package/dist/chunks/index-BatQ1Mfz.js +0 -25
  95. package/dist/chunks/index-BefBe_sK.js +0 -19
  96. package/dist/chunks/index-BekoThXC.js +0 -49
  97. package/dist/chunks/index-BnOH6_4r.js +0 -103
  98. package/dist/chunks/index-Bnfa6YBY.js +0 -71
  99. package/dist/chunks/index-BrtdLKIG.js +0 -455
  100. package/dist/chunks/index-BtFYirUg.js +0 -44
  101. package/dist/chunks/index-BtHVJn7K.js +0 -75
  102. package/dist/chunks/index-Bu7ZAHDG.js +0 -12
  103. package/dist/chunks/index-BxRbUwdY.js +0 -30
  104. package/dist/chunks/index-ByQl0Dwz.js +0 -9
  105. package/dist/chunks/index-C-PAoN2Y.js +0 -25
  106. package/dist/chunks/index-C2-pFkgT.js +0 -406
  107. package/dist/chunks/index-C2r3MkpB.js +0 -252
  108. package/dist/chunks/index-C5DwYOee.js +0 -89
  109. package/dist/chunks/index-C5euLddc.js +0 -46
  110. package/dist/chunks/index-C89rc2i5.js +0 -35
  111. package/dist/chunks/index-C8IUL9KS.js +0 -22
  112. package/dist/chunks/index-C99Nf_aK.js +0 -15
  113. package/dist/chunks/index-CDaECc1q.js +0 -12
  114. package/dist/chunks/index-CIeU44CB.js +0 -97
  115. package/dist/chunks/index-CL8Un64Y.js +0 -150
  116. package/dist/chunks/index-CQ1zfW-Z.js +0 -22
  117. package/dist/chunks/index-CR6HxSEn.js +0 -15
  118. package/dist/chunks/index-CSH8oUIN.js +0 -36
  119. package/dist/chunks/index-CTB8Esah.js +0 -1
  120. package/dist/chunks/index-CX6f-3xD.js +0 -563
  121. package/dist/chunks/index-CXSCYGFC.js +0 -452
  122. package/dist/chunks/index-CZQ45Dj9.js +0 -1
  123. package/dist/chunks/index-Cc-HBEN2.js +0 -150
  124. package/dist/chunks/index-Cf3ALdZ-.js +0 -4
  125. package/dist/chunks/index-Cid77wr3.js +0 -45
  126. package/dist/chunks/index-ClBPGpC0.js +0 -129
  127. package/dist/chunks/index-CmXHpydu.js +0 -121
  128. package/dist/chunks/index-CsaKV6jI.js +0 -511
  129. package/dist/chunks/index-CvxrJ8vE.js +0 -39
  130. package/dist/chunks/index-Cy6EogCp.js +0 -429
  131. package/dist/chunks/index-CyTN35KA.js +0 -424
  132. package/dist/chunks/index-D3hwHwSn.js +0 -243
  133. package/dist/chunks/index-D6Eg6Zh4.js +0 -22
  134. package/dist/chunks/index-D7GY2E-B.js +0 -8
  135. package/dist/chunks/index-DCqxl0e0.js +0 -26
  136. package/dist/chunks/index-DDKqKtU4.js +0 -15
  137. package/dist/chunks/index-DHksIe-y.js +0 -1
  138. package/dist/chunks/index-DI-PunST.js +0 -224
  139. package/dist/chunks/index-DIWoAC3Z.js +0 -74
  140. package/dist/chunks/index-DLWyvZrE.js +0 -21
  141. package/dist/chunks/index-DLa-KLg_.js +0 -881
  142. package/dist/chunks/index-DLwGUJd2.js +0 -25
  143. package/dist/chunks/index-DMIKb9St.js +0 -2
  144. package/dist/chunks/index-DOfvb1f6.js +0 -79
  145. package/dist/chunks/index-DQoGlgyI.js +0 -1
  146. package/dist/chunks/index-DR8UmItB.js +0 -1
  147. package/dist/chunks/index-DUiT0Yz_.js +0 -57
  148. package/dist/chunks/index-DW1p-hc-.js +0 -1604
  149. package/dist/chunks/index-DbPU3mfX.js +0 -368
  150. package/dist/chunks/index-DgI4_4yz.js +0 -37
  151. package/dist/chunks/index-DhPg7DCD.js +0 -1
  152. package/dist/chunks/index-Dj-7w7wt.js +0 -65
  153. package/dist/chunks/index-DjSdHUmw.js +0 -284
  154. package/dist/chunks/index-DpCo2duE.js +0 -87
  155. package/dist/chunks/index-DqLDehu6.js +0 -111
  156. package/dist/chunks/index-Ds3e0NlH.js +0 -285
  157. package/dist/chunks/index-DsKNYemW.js +0 -295
  158. package/dist/chunks/index-DwGKd66A.js +0 -259
  159. package/dist/chunks/index-FAwjNd-C.js +0 -4
  160. package/dist/chunks/index-HTZtnvAV.js +0 -81
  161. package/dist/chunks/index-JUJu4Jsu.js +0 -235
  162. package/dist/chunks/index-JmiGhJR9.js +0 -1
  163. package/dist/chunks/index-K3aE8_a_.js +0 -45
  164. package/dist/chunks/index-LVNWqV95.js +0 -683
  165. package/dist/chunks/index-NduNWecG.js +0 -88
  166. package/dist/chunks/index-QOHPo0v8.js +0 -19
  167. package/dist/chunks/index-TnoTOPwm.js +0 -158
  168. package/dist/chunks/index-UIEjSWhu.js +0 -58
  169. package/dist/chunks/index-WQ40q6Fp.js +0 -77
  170. package/dist/chunks/index-a_56_OA-.js +0 -776
  171. package/dist/chunks/index-azaqRvif.js +0 -27
  172. package/dist/chunks/index-dT_yGOFJ.js +0 -1
  173. package/dist/chunks/index-kjtnf5Y1.js +0 -66
  174. package/dist/chunks/index-lOiJBnZe.js +0 -160
  175. package/dist/chunks/index-sl9jQQX-.js +0 -36
  176. package/dist/chunks/index-vkfOeAd5.js +0 -260
  177. package/dist/chunks/index-z2pAR1iR.js +0 -337
  178. package/dist/chunks/loading-icon-9-L_8sVv.js +0 -16
  179. package/dist/chunks/loading-icon-CMPQny72.js +0 -24
  180. package/dist/chunks/main-CXPn-jnk.js +0 -4260
  181. package/dist/chunks/main-CZIPBRMI.js +0 -88
  182. package/dist/chunks/on-BPhwbVf3.js +0 -10
  183. package/dist/chunks/on-XRofyGQh.js +0 -1
  184. package/dist/chunks/property-BIgIlh0E.js +0 -5
  185. package/dist/chunks/property-CTp3Zz2M.js +0 -36
  186. package/dist/chunks/query-CbRg6ZGy.js +0 -23
  187. package/dist/chunks/query-Dh8joWcT.js +0 -9
  188. package/dist/chunks/radio-group-manager-DBAEmhDM.js +0 -1
  189. package/dist/chunks/radio-group-manager-Du5wSOS1.js +0 -102
  190. package/dist/chunks/register-BgvWUC9m.js +0 -11035
  191. package/dist/chunks/register-CFDNay1l.js +0 -1
  192. package/dist/chunks/register-DyYwnhHb.js +0 -2157
  193. package/dist/chunks/register-HH_4Uw0Q.js +0 -1678
  194. package/dist/chunks/search-CC47funo.js +0 -241
  195. package/dist/chunks/search-DB4cjN-w.js +0 -31
  196. package/dist/chunks/select-item-D6rKfA9z.js +0 -80
  197. package/dist/chunks/select-item-Dj2fYOn6.js +0 -364
  198. package/dist/chunks/settings-Bgpv8zuU.js +0 -62
  199. package/dist/chunks/settings-jvP7vP60.js +0 -66
  200. package/dist/chunks/shared-enums-BJDDuJr7.js +0 -1
  201. package/dist/chunks/shared-enums-DALKjQ7e.js +0 -7
  202. package/dist/chunks/state-4XYw1ZN5.js +0 -12
  203. package/dist/chunks/state-BoZ0xvIn.js +0 -5
  204. package/dist/chunks/text-input-BUBwT5gK.js +0 -68
  205. package/dist/chunks/text-input-Dpl3TIYz.js +0 -372
  206. package/dist/chunks/tooltip-content-BV1N7BVi.js +0 -3
  207. package/dist/chunks/tooltip-content-UQcG3dlT.js +0 -135
  208. package/dist/chunks/tslib.es6-B07k2eac.js +0 -1
  209. package/dist/chunks/tslib.es6-C5gLNDSD.js +0 -160
  210. package/dist/chunks/unsafe-html-CCJqBESk.js +0 -5
  211. package/dist/chunks/unsafe-html-KUWR4Xn7.js +0 -27
  212. package/dist/chunks/validity-BMLNCMmP.js +0 -1
  213. package/dist/chunks/validity-CTz7ivUd.js +0 -59
@@ -0,0 +1 @@
1
+ var u=Object.create,i=Object.defineProperty,g=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,b=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty,f=(e,t)=>{let r={};for(var a in e)i(r,a,{get:e[a],enumerable:!0});return t||i(r,Symbol.toStringTag,{value:"Module"}),r},_=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(var s=p(t),o=0,c=s.length,n;o<c;o++)n=s[o],!h.call(e,n)&&n!==r&&i(e,n,{get:(l=>t[l]).bind(null,n),enumerable:!(a=g(t,n))||a.enumerable});return e},y=(e,t,r)=>(r=e!=null?u(b(e)):{},_(t||!e||!e.__esModule?i(r,"default",{value:e,enumerable:!0}):r,e)),d=class{static#e=new Map;static register(e,t){if(!t.render)throw new Error(`Component library '${e}' must provide a render function`);this.#e.set(e,{...t,dispose:t.dispose||null,cache:t.cache||new Map,config:t.config||{}}),console.debug(`[ComponentLibraryRegistry] Registered: ${e}`)}static get(e){if(!this.#e.has(e)){const t=Array.from(this.#e.keys()).join(", ");throw new Error(`Component library '${e}' is not registered. Available: ${t||"none"}`)}return this.#e.get(e)}static has(e){return this.#e.has(e)}static getRegisteredLibraries(){return Array.from(this.#e.keys())}static getCacheStats(){const e={};for(const[t,r]of this.#e.entries())e[t]={cacheSize:r.cache.size,config:r.config};return e}static clearAllCaches(){for(const[e,t]of this.#e.entries())t.cache.clear(),console.debug(`[ComponentLibraryRegistry] Cleared cache for: ${e}`)}static clearCache(e){this.get(e).cache.clear(),console.debug(`[ComponentLibraryRegistry] Cleared cache for: ${e}`)}static unregister(e){return this.#e.delete(e)}static unregisterAll(){this.#e.clear()}};Object.defineProperty(exports,"ComponentLibraryRegistry",{enumerable:!0,get:function(){return d}});Object.defineProperty(exports,"__exportAll",{enumerable:!0,get:function(){return f}});Object.defineProperty(exports,"__toESM",{enumerable:!0,get:function(){return y}});
@@ -0,0 +1,58 @@
1
+ var i = Object.defineProperty, a = (e, t) => {
2
+ let r = {};
3
+ for (var s in e)
4
+ i(r, s, {
5
+ get: e[s],
6
+ enumerable: !0
7
+ });
8
+ return t || i(r, Symbol.toStringTag, { value: "Module" }), r;
9
+ }, o = class {
10
+ static #e = /* @__PURE__ */ new Map();
11
+ static register(e, t) {
12
+ if (!t.render) throw new Error(`Component library '${e}' must provide a render function`);
13
+ this.#e.set(e, {
14
+ ...t,
15
+ dispose: t.dispose || null,
16
+ cache: t.cache || /* @__PURE__ */ new Map(),
17
+ config: t.config || {}
18
+ }), console.debug(`[ComponentLibraryRegistry] Registered: ${e}`);
19
+ }
20
+ static get(e) {
21
+ if (!this.#e.has(e)) {
22
+ const t = Array.from(this.#e.keys()).join(", ");
23
+ throw new Error(`Component library '${e}' is not registered. Available: ${t || "none"}`);
24
+ }
25
+ return this.#e.get(e);
26
+ }
27
+ static has(e) {
28
+ return this.#e.has(e);
29
+ }
30
+ static getRegisteredLibraries() {
31
+ return Array.from(this.#e.keys());
32
+ }
33
+ static getCacheStats() {
34
+ const e = {};
35
+ for (const [t, r] of this.#e.entries()) e[t] = {
36
+ cacheSize: r.cache.size,
37
+ config: r.config
38
+ };
39
+ return e;
40
+ }
41
+ static clearAllCaches() {
42
+ for (const [e, t] of this.#e.entries())
43
+ t.cache.clear(), console.debug(`[ComponentLibraryRegistry] Cleared cache for: ${e}`);
44
+ }
45
+ static clearCache(e) {
46
+ this.get(e).cache.clear(), console.debug(`[ComponentLibraryRegistry] Cleared cache for: ${e}`);
47
+ }
48
+ static unregister(e) {
49
+ return this.#e.delete(e);
50
+ }
51
+ static unregisterAll() {
52
+ this.#e.clear();
53
+ }
54
+ };
55
+ export {
56
+ a as n,
57
+ o as t
58
+ };
@@ -0,0 +1,266 @@
1
+ import { t as M } from "./component-library-registry-DB5UeqC2.js";
2
+ import { r as E, s as l } from "./tree-utils-B2JEGXHR.js";
3
+ import { isDefAndNotNull as p, toLowerCase as C } from "badu";
4
+ import * as a from "material-components-web";
5
+ var y = function(t) {
6
+ [...t.querySelectorAll(".mdc-ripple-surface")].forEach(a.ripple.MDCRipple.attachTo);
7
+ }, b = function(t) {
8
+ [...t.querySelectorAll(".mdc-button")].forEach((o) => {
9
+ a.ripple.MDCRipple.attachTo(o), this.listen(o, "click", (n) => {
10
+ const r = n.currentTarget, e = l(r);
11
+ this.dispatchPanelEvent(e.zv, Object.assign({
12
+ orgEvt: n,
13
+ trigger: r,
14
+ href: r.href || e.href
15
+ }, e));
16
+ });
17
+ });
18
+ }, D = function(t) {
19
+ [...t.querySelectorAll(".mdc-fab")].forEach((o) => {
20
+ a.ripple.MDCRipple.attachTo(o), this.listen(o, "click", (n) => {
21
+ n.stopPropagation();
22
+ const r = n.currentTarget, e = l(r);
23
+ this.dispatchPanelEvent(e.zv, Object.assign({
24
+ orgEvt: n,
25
+ trigger: r,
26
+ href: r.href || e.href
27
+ }, e));
28
+ });
29
+ });
30
+ }, S = function(t) {
31
+ [...t.querySelectorAll(".mdc-icon-button:not(.mdc-icon-toggle)")].forEach((o) => {
32
+ const n = new a.ripple.MDCRipple(o);
33
+ o.zComponent = n, n.unbounded = !0, this.listen(o, "click", (r) => {
34
+ const e = r.currentTarget, c = l(e), s = c.zv;
35
+ p(s) && (r.stopPropagation(), this.dispatchPanelEvent(c.zv, Object.assign({
36
+ orgEvt: r,
37
+ trigger: e,
38
+ href: e.href || c.href
39
+ }, c)));
40
+ });
41
+ });
42
+ }, w = function(t) {
43
+ [...t.querySelectorAll(".mdc-icon-toggle")].forEach((o) => {
44
+ const n = o.ariaPressed === "true", r = new a.iconButton.MDCIconButtonToggle(o);
45
+ r.on = n, o.zComponent = r, this.listen(o, "click", (e) => e.stopPropagation()), this.listen(o, "MDCIconButtonToggle:change", (e) => {
46
+ e.stopPropagation();
47
+ const c = e.currentTarget, s = e.detail.isOn, i = l(c);
48
+ this.dispatchPanelEvent(i.zv, Object.assign({
49
+ orgEvt: e,
50
+ trigger: c,
51
+ href: c.href || i.href,
52
+ isOn: s
53
+ }, i));
54
+ });
55
+ });
56
+ }, A = function(t) {
57
+ const o = "mdc-checkbox__native-control";
58
+ [...t.querySelectorAll(".mdc-data-table")].forEach((n) => {
59
+ const r = new a.dataTable.MDCDataTable(n);
60
+ r.selectedAllAcrossPages = !1, r.onSomeSelected = (c) => {
61
+ }, r.onNoneSelected = (c) => {
62
+ }, r.onAllSelected = (c) => {
63
+ }, r.toggleSelectAcrossPages = () => (r.selectedAllAcrossPages = !r.selectedAllAcrossPages, r.selectedAllAcrossPages), r.setSelectAcrossPages = (c) => (r.selectedAllAcrossPages = c, r.selectedAllAcrossPages), r.getSelectAcrossPages = () => r.selectedAllAcrossPages, n.zComponent = r, n.dataTable = r;
64
+ const e = (c) => {
65
+ const s = r.getSelectedRowIds().length;
66
+ c.type === "MDCDataTable:selectedAll" ? r.onAllSelected(s) : s === 0 ? r.onNoneSelected(s) : r.onSomeSelected(s);
67
+ };
68
+ [
69
+ "MDCDataTable:rowSelectionChanged",
70
+ "MDCDataTable:selectedAll",
71
+ "MDCDataTable:unselectedAll"
72
+ ].forEach((c) => {
73
+ this.listen(n, c, e);
74
+ }), [...n.querySelectorAll(".mdc-data-table__row")].forEach((c) => {
75
+ this.listen(c, "click", (s) => {
76
+ if (!s.target.classList.contains(o)) {
77
+ s.stopPropagation();
78
+ const i = s.currentTarget, d = l(i);
79
+ this.dispatchPanelEvent(d.zv, Object.assign({
80
+ orgEvt: s,
81
+ trigger: i,
82
+ href: i.href || d.href
83
+ }, d));
84
+ }
85
+ });
86
+ });
87
+ });
88
+ }, T = function(t) {
89
+ [...t.querySelectorAll(".mdc-tab-bar")].forEach((o) => {
90
+ const n = new a.tabBar.MDCTabBar(o);
91
+ o.zComponent = n, this.listen(o, "MDCTabBar:activated", (r) => {
92
+ const e = n.tabList[r.detail.index].root, c = l(e);
93
+ this.dispatchPanelEvent(c.zv, Object.assign({
94
+ orgEvt: r,
95
+ trigger: e,
96
+ href: e.href || c.href
97
+ }, c));
98
+ });
99
+ });
100
+ }, P = function(t) {
101
+ [...t.querySelectorAll(".mdc-switch")].forEach((o) => {
102
+ const n = o.querySelector("input"), r = l(n);
103
+ this.listen(n, "change", (e) => {
104
+ e.stopPropagation(), this.dispatchPanelEvent(r.zv, Object.assign({
105
+ orgEvt: e,
106
+ trigger: n,
107
+ href: n.href || r.href,
108
+ isOn: n.checked
109
+ }, r));
110
+ });
111
+ });
112
+ }, x = function(t) {
113
+ [...t.querySelectorAll(".mdc-chip-set")].forEach((o) => {
114
+ const n = a.chips.MDCChipSet.attachTo(o);
115
+ o.zComponent = n, n.listen("MDCChip:interaction", (r) => {
116
+ const e = n.chips.find((i) => i.id === r.detail.chipId), c = e.root, s = l(c);
117
+ this.dispatchPanelEvent(s.zv, Object.assign({
118
+ orgEvt: r,
119
+ trigger: c,
120
+ href: c.href || s.href,
121
+ isOn: e.selected
122
+ }, s));
123
+ });
124
+ });
125
+ }, q = function(t) {
126
+ [...t.querySelectorAll(".mdc-menu-surface")].forEach(a.menuSurface.MDCMenuSurface.attachTo);
127
+ }, _ = function(t) {
128
+ [...t.querySelectorAll(".mdc-menu-surface--anchor:not(.mdc-select__menu)")].forEach((o) => {
129
+ const n = o.querySelector(".mdc-menu"), r = l(n).corner || "BOTTOM_START", e = new a.menu.MDCMenu(n);
130
+ if (n.zComponent = e, e.setAnchorCorner(a.menuSurface.Corner[r]), e.items.forEach(a.ripple.MDCRipple.attachTo), e.quickOpen = !1, e.listen("click", (c) => c.stopPropagation()), e.listen("MDCMenu:selected", (c) => {
131
+ c.stopPropagation();
132
+ const s = c.detail.item, i = l(s);
133
+ this.dispatchPanelEvent(i.zv, Object.assign({
134
+ orgEvt: c,
135
+ trigger: s,
136
+ href: s.href || i.href
137
+ }, i));
138
+ }), o.addEventListener("click", () => e.open = !e.open), n.classList.contains("z2-filter-on-keydown")) {
139
+ const c = () => {
140
+ i = "", e.items.forEach((h) => h.classList.remove("hidden-list-itme"));
141
+ }, s = [...e.items].map((h) => C(h.querySelector(".mdc-deprecated-list-item__text").textContent));
142
+ let i = "";
143
+ const d = "abcdefghijklmnopqrstuvwxyz0123456789 -_", m = (h) => {
144
+ const f = C(h.key);
145
+ h.defaultPrevented || (d.includes(f) ? i = `${i}${f}` : f === "escape" ? c() : f === "backspace" && (i = i.slice(0, -1)), i !== "" && s.forEach((v, g) => {
146
+ v.includes(i) ? e.items[g].classList.remove("hidden-list-itme") : e.items[g].classList.add("hidden-list-itme");
147
+ }));
148
+ };
149
+ e.listen("MDCMenuSurface:closed", () => {
150
+ c(), document.removeEventListener("keydown", m, !0);
151
+ }), e.listen("MDCMenuSurface:opened", () => {
152
+ c(), document.addEventListener("keydown", m, !0);
153
+ });
154
+ }
155
+ });
156
+ }, k = function(t) {
157
+ [...t.querySelectorAll(".mdc-deprecated-list:not(.mdc-menu__items)")].forEach((o) => {
158
+ const n = new a.list.MDCList(o);
159
+ o.zComponent = n, p(o.id) && this.listMap.set(o.id, n), n.listElements.forEach((r) => a.ripple.MDCRipple.attachTo(r)), this.listen(o, "click", (r) => {
160
+ const e = r.target.closest("li"), c = l(e);
161
+ this.dispatchPanelEvent(c.zv, Object.assign({
162
+ orgEvt: r,
163
+ trigger: e,
164
+ href: e.href || c.href
165
+ }, c));
166
+ });
167
+ });
168
+ }, O = function(t) {
169
+ [...t.querySelectorAll(".mdc-slider")].forEach((o) => {
170
+ const n = new a.slider.MDCSlider(o);
171
+ o.zComponent = n;
172
+ const r = l(o), e = o.parentElement.querySelector(`#${r.inputid}`);
173
+ this.listen(o, "MDCSlider:change", () => {
174
+ e.value = n.value;
175
+ });
176
+ });
177
+ }, z = function(t) {
178
+ [...t.querySelectorAll(".mdc-linear-progress")].forEach((o) => {
179
+ o.linProg = a.linearProgress.MDCLinearProgress.attachTo(o);
180
+ });
181
+ }, L = function(t) {
182
+ [...t.querySelectorAll(".mdc-text-field")].forEach(a.textField.MDCTextField.attachTo);
183
+ }, F = function(t) {
184
+ [...t.querySelectorAll(".mdc-text-field-icon")].forEach(a.textField.MDCTextFieldIcon.attachTo);
185
+ }, I = function(t, o) {
186
+ const n = (e) => {
187
+ const c = document.createElement("li");
188
+ c.classList.add("mdc-deprecated-list-item"), c.dataset.value = e.value;
189
+ const s = document.createElement("span");
190
+ s.classList.add("mdc-deprecated-list-item__ripple"), c.appendChild(s);
191
+ const i = document.createElement("span");
192
+ return i.classList.add("mdc-deprecated-list-item__text"), i.textContent = e.textContent, c.appendChild(i), e.selected && c.classList.add("mdc-deprecated-list-item--selected"), c;
193
+ }, r = (e, c, s) => () => {
194
+ for (; e.firstChild; ) e.removeChild(e.lastChild);
195
+ [...c.options].forEach((i) => e.appendChild(n(i))), s.layoutOptions();
196
+ try {
197
+ s.selectedIndex = c.options.selectedIndex;
198
+ } catch (i) {
199
+ console.error("MDC Select index sync error:", {
200
+ targetIndex: c.options.selectedIndex,
201
+ htmSelectField: c,
202
+ mdcSelect: s,
203
+ currentIndex: s.selectedIndex,
204
+ error: i
205
+ });
206
+ }
207
+ };
208
+ [...t.querySelectorAll(".mdc-select")].forEach((e) => {
209
+ const c = e.querySelector("ul.mdc-deprecated-list"), s = e.querySelector("select"), i = new a.select.MDCSelect(e);
210
+ e.zComponent = i, s.buildMenu = r(c, s, i), s.buildMenu();
211
+ const d = i.menu;
212
+ o.hoist(d.menuSurface.root), d.setIsHoisted(!0), i.listen("MDCSelect:change", () => {
213
+ s.options[i.selectedIndex].selected = !0, s.dispatchEvent(new Event("custom:select:change"));
214
+ });
215
+ });
216
+ }, B = function(t) {
217
+ [...t.querySelectorAll(".mdc-form-field:not(.for-radio):not(.for-checkbox)")].forEach(a.formField.MDCFormField.attachTo);
218
+ }, j = function(t) {
219
+ [...t.querySelectorAll(".mdc-form-field.for-radio")].forEach((o) => {
220
+ const n = new a.formField.MDCFormField(o), r = o.querySelector(".mdc-radio");
221
+ r.querySelector('input[type="radio"]').classList.add("mdc-radio__native-control"), n.input = new a.radio.MDCRadio(r);
222
+ });
223
+ }, R = function(t) {
224
+ [...t.querySelectorAll(".mdc-form-field.for-checkbox")].forEach((o) => {
225
+ const n = o.querySelector(".mdc-checkbox"), r = new a.checkbox.MDCCheckbox(n), e = new a.formField.MDCFormField(o);
226
+ e.input = r;
227
+ });
228
+ }, u = null;
229
+ function N() {
230
+ return u || (p(window.mdc) && Object.prototype.hasOwnProperty.call(window.mdc, "autoInit") ? (u = Promise.resolve(), u) : (u = new Promise((t, o) => {
231
+ const n = window.__MDC_CDN_URL__ || "https://unpkg.com/material-components-web@14.0.0/dist/material-components-web.min.js", r = document.createElement("script");
232
+ r.src = n, r.async = !0, r.onload = () => {
233
+ p(window.mdc) && Object.prototype.hasOwnProperty.call(window.mdc, "autoInit") ? t() : o(/* @__PURE__ */ new Error("MDC library loaded but window.mdc is not available"));
234
+ }, r.onerror = () => {
235
+ o(/* @__PURE__ */ new Error(`Failed to load MDC library from ${n}`));
236
+ }, document.head.appendChild(r);
237
+ }), u));
238
+ }
239
+ async function V() {
240
+ try {
241
+ await N();
242
+ } catch (t) {
243
+ throw t;
244
+ }
245
+ M.register("mdc", {
246
+ render: function(t, o) {
247
+ p(window.mdc) && Object.prototype.hasOwnProperty.call(window.mdc, "autoInit") && (y.call(this, t), b.call(this, t), D.call(this, t), S.call(this, t), w.call(this, t), T.call(this, t), P.call(this, t), x.call(this, t), q.call(this, t), _.call(this, t), k.call(this, t), O.call(this, t), z.call(this, t), B.call(this, t), I.call(this, t, this), F.call(this, t), L.call(this, t), j.call(this, t), R.call(this, t), A.call(this, t));
248
+ },
249
+ dispose: function(t) {
250
+ [...t.querySelectorAll("[data-mdc-auto-init]")].forEach((o) => {
251
+ try {
252
+ o[o.getAttribute("data-mdc-auto-init")].destroy();
253
+ } catch {
254
+ }
255
+ });
256
+ },
257
+ config: {
258
+ version: "1.0",
259
+ description: "Google Material Design Components (legacy, being phased out)"
260
+ },
261
+ utils: E
262
+ }), console.debug("[Zooy] MDC library registered");
263
+ }
264
+ export {
265
+ V as registerMdcLibrary
266
+ };