@nxgt/material 1.16.6 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/README.md +70 -0
  2. package/dist/{abnfDiagram-O67JEVCF-C88Owqiu.js → abnfDiagram-O67JEVCF-DDqmYxyZ.js} +4 -4
  3. package/dist/{architectureDiagram-NJMV4G6O-axK6UwPN.js → architectureDiagram-NJMV4G6O-PwBg8yU0.js} +7 -7
  4. package/dist/{blockDiagram-BEXU5L5S-BcN02g5h.js → blockDiagram-BEXU5L5S-DF3vGlXD.js} +11 -11
  5. package/dist/{c4Diagram-YGBWAQC7-CRVFZ7-A.js → c4Diagram-YGBWAQC7-Dq3xGNd4.js} +8 -8
  6. package/dist/{channel-Dm6W4mIV.js → channel-DIvZvk0q.js} +1 -1
  7. package/dist/{chunk-3FUC2YCW-DfTDMgng.js → chunk-3FUC2YCW-CAJ0rgCP.js} +8 -8
  8. package/dist/{chunk-5DYCD2WN-BI-ll9_1.js → chunk-5DYCD2WN-BepRdgxI.js} +3 -3
  9. package/dist/{chunk-6AEJRKK7-Ct5Fr-Kw.js → chunk-6AEJRKK7-BN1V-pJK.js} +2 -2
  10. package/dist/{chunk-742MDFTN-CuIwv2zZ.js → chunk-742MDFTN-B7xNATkT.js} +2 -2
  11. package/dist/{chunk-7INBJB4K-Bo71Xvlg.js → chunk-7INBJB4K-BgETHnGm.js} +6 -6
  12. package/dist/{chunk-7M6MHVWA-DWgFd77P.js → chunk-7M6MHVWA-DAfeILvI.js} +9 -9
  13. package/dist/{chunk-7PRAP22T-0zjlyNkC.js → chunk-7PRAP22T-1TE3ytg4.js} +1 -1
  14. package/dist/{chunk-GNY47TPC-CCE4ioVo.js → chunk-GNY47TPC-CN53JUAg.js} +11 -11
  15. package/dist/{chunk-GTNCS2PH-Goksh023.js → chunk-GTNCS2PH-DHDm9wdf.js} +3 -3
  16. package/dist/{chunk-GWA4HPMP-Dr5VSQJH.js → chunk-GWA4HPMP-Dk5EfWHB.js} +3 -3
  17. package/dist/{chunk-MBY4JIJT-DDuMgLcN.js → chunk-MBY4JIJT-CKKv0vlf.js} +4 -4
  18. package/dist/{chunk-NETBCI7D-BiT_DqDz.js → chunk-NETBCI7D-D-hMoCi1.js} +1 -1
  19. package/dist/{chunk-O7XYJQB3-CbQfGgSU.js → chunk-O7XYJQB3-kPU-FrcW.js} +1 -1
  20. package/dist/{chunk-UA2S7LBM-BCgyBiHo.js → chunk-UA2S7LBM-BUjL6NMa.js} +6 -6
  21. package/dist/{chunk-WEXAMYUT-CYEY7_Hw.js → chunk-WEXAMYUT-CLclanOP.js} +2 -2
  22. package/dist/{chunk-XXDRQBXY-zSZ_Brfs.js → chunk-XXDRQBXY-BnSZ-xBE.js} +1 -1
  23. package/dist/{chunk-Z7XXMR3K-DALaxLVM.js → chunk-Z7XXMR3K-DFs9CL0g.js} +8 -8
  24. package/dist/{chunk-ZIGJFQKS-w5i2_K-G.js → chunk-ZIGJFQKS-7XzdXF8V.js} +3 -3
  25. package/dist/{classDiagram-v2-NBCMYWYE-AZpEawkH.js → classDiagram-v2-NBCMYWYE-4wLAMwQS.js} +14 -14
  26. package/dist/components.js +4 -3
  27. package/dist/{cose-bilkent-JH36ORCC-BU6Wbqb5.js → cose-bilkent-JH36ORCC-PSraAr7H.js} +2 -2
  28. package/dist/{cynefinDiagram-VND7K2PF-DRUKb1l_.js → cynefinDiagram-VND7K2PF-Ds3RkBsV.js} +4 -4
  29. package/dist/{dagre-6A5THRUB-RZJBVCxb.js → dagre-6A5THRUB-0G8VOjTo.js} +676 -676
  30. package/dist/{diagram-22UHCM2B-CuKrTESa.js → diagram-22UHCM2B-DpQbjmb8.js} +15 -15
  31. package/dist/{diagram-3UASUU5V-Ci1NLcda.js → diagram-3UASUU5V-BZgAQDVW.js} +6 -6
  32. package/dist/{diagram-ATOU4E4O-DVIkEo6K.js → diagram-ATOU4E4O-QGWopkvz.js} +3 -3
  33. package/dist/{diagram-CDSNMT55-DuyNqX4d.js → diagram-CDSNMT55-ywYyPUbh.js} +5 -5
  34. package/dist/{diagram-MLGK6HIB-DKb6OlEW.js → diagram-MLGK6HIB-CVioCY-C.js} +4 -4
  35. package/dist/{diagram-MPIPVDR6-DXr5IaHr.js → diagram-MPIPVDR6-RNx6m_jT.js} +4 -4
  36. package/dist/{dist-DnGvOM55.js → dist-Cxzqei1q.js} +1 -1
  37. package/dist/{dist-CQ1ETizD.js → dist-NZAlFjcd.js} +4 -4
  38. package/dist/dnd.js +2 -2
  39. package/dist/{ebnfDiagram-ZINNZB2B-CYG1vd5L.js → ebnfDiagram-ZINNZB2B-DgcwhTtc.js} +4 -4
  40. package/dist/{elk-276RUBZZ-Dj55zh5D.js → elk-276RUBZZ-DgpGvMfb.js} +13 -13
  41. package/dist/{erDiagram-OPXOYQCR-Cwx28Yhq.js → erDiagram-OPXOYQCR-BQdPcP9U.js} +14 -14
  42. package/dist/flowDiagram-KWPJA3E3-Dip-pIe-.js +17 -0
  43. package/dist/{ganttDiagram-FUAMR5RP-BKDcY09B.js → ganttDiagram-FUAMR5RP-B5YjspG8.js} +19 -18
  44. package/dist/{gitGraphDiagram-X574FWY7-DFWT3FaG.js → gitGraphDiagram-X574FWY7-eqb34wSw.js} +3 -3
  45. package/dist/{graphlib-CmPj7FPi.js → graphlib-DXJ-RYOD.js} +76 -76
  46. package/dist/{infoDiagram-VRGFBTTK-gay5B8_E.js → infoDiagram-VRGFBTTK-BShm-0Tw.js} +3 -3
  47. package/dist/{ishikawaDiagram-OU5B5YK6-OBhbaeSj.js → ishikawaDiagram-OU5B5YK6-DspMoedf.js} +4 -4
  48. package/dist/{journeyDiagram-ZHPQQLJL-b3tmW_HU.js → journeyDiagram-ZHPQQLJL-BHYQHz8d.js} +4 -4
  49. package/dist/{kanban-definition-PNTS6WVX-B41BEol5.js → kanban-definition-PNTS6WVX-1HKJEIG1.js} +10 -10
  50. package/dist/lib/components/index.d.ts +0 -1
  51. package/dist/lib/print/index.d.ts +31 -0
  52. package/dist/lib/vite/index.d.ts +65 -0
  53. package/dist/lib-BDc9msmn.js +667 -0
  54. package/dist/lib.js +3 -2
  55. package/dist/{main-DtbNRPNw.js → main-C6rjLaqK.js} +33867 -41695
  56. package/dist/main.js +8 -6
  57. package/dist/{mermaid.core-BIxPv4qb.js → mermaid.core-DPqKYf9L.js} +49 -49
  58. package/dist/{mindmap-definition-NLK3R4M7-CUPCdkn5.js → mindmap-definition-NLK3R4M7-DbG40nE4.js} +13 -13
  59. package/dist/{pegDiagram-GJSIUBJH-DfsVyOK7.js → pegDiagram-GJSIUBJH-BL5Aabgf.js} +4 -4
  60. package/dist/{pieDiagram-5QR66LMP-DMgULRT9.js → pieDiagram-5QR66LMP-dMM51IAn.js} +11 -11
  61. package/dist/print.js +219 -0
  62. package/dist/{quadrantDiagram-O4NWA36T-ZBLqBkt3.js → quadrantDiagram-O4NWA36T-BaSKZiw5.js} +3 -3
  63. package/dist/{railroadDiagram-XR7U4H2S-cc2uSJ13.js → railroadDiagram-XR7U4H2S-CIx08g98.js} +4 -4
  64. package/dist/{requirementDiagram-PLB6GJNP-BrXpXZAm.js → requirementDiagram-PLB6GJNP-DxwpOB3H.js} +13 -13
  65. package/dist/{sankeyDiagram-IPEJSGJF-C0pfGSxC.js → sankeyDiagram-IPEJSGJF-PcxB8umJ.js} +3 -3
  66. package/dist/{sequenceDiagram-PO4LG4MO-NQKg3CCS.js → sequenceDiagram-PO4LG4MO-Bu-eRq6c.js} +5 -5
  67. package/dist/sortable-provider-BCaeM3pZ.js +5367 -0
  68. package/dist/{src-CE5AUZ74.js → src-ripuExsx.js} +1 -1
  69. package/dist/{stateDiagram-v2-GCMORJYK-wfhFmqqR.js → stateDiagram-v2-GCMORJYK-DXqVvjkk.js} +14 -14
  70. package/dist/{swimlanes-2SLR337P-z_V4Pe3v.js → swimlanes-2SLR337P-MVsSgObR.js} +12 -12
  71. package/dist/swimlanesDiagram-TC7HE7FX-fSzW_vlb.js +28 -0
  72. package/dist/{timeline-definition-EJHVYXUP-DZkiO-SY.js → timeline-definition-EJHVYXUP-DtX7hK_l.js} +5 -5
  73. package/dist/{usecaseDiagram-POWQR4AR-Dx9mxFEf.js → usecaseDiagram-POWQR4AR-DmFl7fb7.js} +13 -13
  74. package/dist/utils-Brj-Qb2N.js +1734 -0
  75. package/dist/{vennDiagram-UO4OBE2U-82VBQyR3.js → vennDiagram-UO4OBE2U-CNd0-YPm.js} +4 -4
  76. package/dist/vite.js +18 -0
  77. package/dist/{wardleyDiagram-VNRHLVJA-DZUdROHn.js → wardleyDiagram-VNRHLVJA-DH3az7Ec.js} +4 -4
  78. package/dist/{xychartDiagram-PMCCYNJV-Bw0GEB7d.js → xychartDiagram-PMCCYNJV-BZsPm_3V.js} +24 -24
  79. package/package.json +27 -4
  80. package/dist/flowDiagram-KWPJA3E3-nE63ofem.js +0 -17
  81. package/dist/lib/components/ui/print/index.d.ts +0 -9
  82. package/dist/lib-CuGr3v8i.js +0 -2400
  83. package/dist/swimlanesDiagram-TC7HE7FX-BSU_gTGC.js +0 -28
  84. /package/dist/lib/{components/ui/print → print}/components/print-badge.d.ts +0 -0
  85. /package/dist/lib/{components/ui/print → print}/components/print-card.d.ts +0 -0
  86. /package/dist/lib/{components/ui/print → print}/components/print-header.d.ts +0 -0
  87. /package/dist/lib/{components/ui/print → print}/components/print-section.d.ts +0 -0
  88. /package/dist/lib/{components/ui/print → print}/components/print-table.d.ts +0 -0
  89. /package/dist/lib/{components/ui/print → print}/components/print-totals.d.ts +0 -0
  90. /package/dist/lib/{components/ui/print → print}/styles.d.ts +0 -0
  91. /package/dist/lib/{components/ui/print → print}/styles.test.d.ts +0 -0
  92. /package/dist/lib/{components/ui/print → print}/tailwind.d.ts +0 -0
  93. /package/dist/lib/{components/ui/print → print}/tailwind.test.d.ts +0 -0
  94. /package/dist/lib/{components/ui/print → print}/utils.d.ts +0 -0
  95. /package/dist/lib/{components/ui/print → print}/utils.test.d.ts +0 -0
@@ -0,0 +1,667 @@
1
+ import { A as e, B as t, F as n, R as r, T as i, V as a, a as o, b as s, d as c, h as l, i as u, j as d, m as f, p, r as m, u as h, v as g, x as _, z as v } from "./isArrayLikeObject-VG1KOJ3m.js";
2
+ import { a as y, p as b } from "./i18n-CGol3PGw.js";
3
+ import { L as ee } from "./number.utils-BR3XO6me.js";
4
+ import { Suspense as te, createContext as ne, createElement as x, useCallback as S, useContext as re, useMemo as C, useReducer as ie } from "react";
5
+ import { asyncThunkCreator as ae, buildCreateSlice as oe, createSlice as w } from "@reduxjs/toolkit";
6
+ import { useDispatch as se } from "react-redux";
7
+ //#region node_modules/lodash-es/_WeakMap.js
8
+ var T = e(a, "WeakMap"), ce = p(Object.keys, Object), le = Object.prototype.hasOwnProperty;
9
+ function ue(e) {
10
+ if (!s(e)) return ce(e);
11
+ var t = [];
12
+ for (var n in Object(e)) le.call(e, n) && n != "constructor" && t.push(n);
13
+ return t;
14
+ }
15
+ //#endregion
16
+ //#region node_modules/lodash-es/keys.js
17
+ function E(e) {
18
+ return _(e) ? f(e) : ue(e);
19
+ }
20
+ //#endregion
21
+ //#region node_modules/lodash-es/_arrayPush.js
22
+ function D(e, t) {
23
+ for (var n = -1, r = t.length, i = e.length; ++n < r;) e[i + n] = t[n];
24
+ return e;
25
+ }
26
+ //#endregion
27
+ //#region node_modules/lodash-es/_arrayFilter.js
28
+ function O(e, t) {
29
+ for (var n = -1, r = e == null ? 0 : e.length, i = 0, a = []; ++n < r;) {
30
+ var o = e[n];
31
+ t(o, n, e) && (a[i++] = o);
32
+ }
33
+ return a;
34
+ }
35
+ //#endregion
36
+ //#region node_modules/lodash-es/stubArray.js
37
+ function k() {
38
+ return [];
39
+ }
40
+ //#endregion
41
+ //#region node_modules/lodash-es/_getSymbols.js
42
+ var de = Object.prototype.propertyIsEnumerable, A = Object.getOwnPropertySymbols, fe = A ? function(e) {
43
+ return e == null ? [] : (e = Object(e), O(A(e), function(t) {
44
+ return de.call(e, t);
45
+ }));
46
+ } : k;
47
+ //#endregion
48
+ //#region node_modules/lodash-es/_baseGetAllKeys.js
49
+ function j(e, t, r) {
50
+ var i = t(e);
51
+ return n(e) ? i : D(i, r(e));
52
+ }
53
+ //#endregion
54
+ //#region node_modules/lodash-es/_getAllKeys.js
55
+ function M(e) {
56
+ return j(e, E, fe);
57
+ }
58
+ //#endregion
59
+ //#region node_modules/lodash-es/_DataView.js
60
+ var N = e(a, "DataView"), P = e(a, "Promise"), F = e(a, "Set"), pe = "[object Map]", me = "[object Object]", he = "[object Promise]", I = "[object Set]", L = "[object WeakMap]", R = "[object DataView]", ge = d(N), _e = d(c), ve = d(P), ye = d(F), be = d(T), z = v;
61
+ (N && z(new N(/* @__PURE__ */ new ArrayBuffer(1))) != R || c && z(new c()) != pe || P && z(P.resolve()) != he || F && z(new F()) != I || T && z(new T()) != L) && (z = function(e) {
62
+ var t = v(e), n = t == me ? e.constructor : void 0, r = n ? d(n) : "";
63
+ if (r) switch (r) {
64
+ case ge: return R;
65
+ case _e: return pe;
66
+ case ve: return he;
67
+ case ye: return I;
68
+ case be: return L;
69
+ }
70
+ return t;
71
+ });
72
+ var B = z, xe = "__lodash_hash_undefined__";
73
+ function Se(e) {
74
+ return this.__data__.set(e, xe), this;
75
+ }
76
+ //#endregion
77
+ //#region node_modules/lodash-es/_setCacheHas.js
78
+ function Ce(e) {
79
+ return this.__data__.has(e);
80
+ }
81
+ //#endregion
82
+ //#region node_modules/lodash-es/_SetCache.js
83
+ function V(e) {
84
+ var t = -1, n = e == null ? 0 : e.length;
85
+ for (this.__data__ = new h(); ++t < n;) this.add(e[t]);
86
+ }
87
+ V.prototype.add = V.prototype.push = Se, V.prototype.has = Ce;
88
+ //#endregion
89
+ //#region node_modules/lodash-es/_arraySome.js
90
+ function we(e, t) {
91
+ for (var n = -1, r = e == null ? 0 : e.length; ++n < r;) if (t(e[n], n, e)) return !0;
92
+ return !1;
93
+ }
94
+ //#endregion
95
+ //#region node_modules/lodash-es/_cacheHas.js
96
+ function H(e, t) {
97
+ return e.has(t);
98
+ }
99
+ //#endregion
100
+ //#region node_modules/lodash-es/_equalArrays.js
101
+ var Te = 1, Ee = 2;
102
+ function U(e, t, n, r, i, a) {
103
+ var o = n & Te, s = e.length, c = t.length;
104
+ if (s != c && !(o && c > s)) return !1;
105
+ var l = a.get(e), u = a.get(t);
106
+ if (l && u) return l == t && u == e;
107
+ var d = -1, f = !0, p = n & Ee ? new V() : void 0;
108
+ for (a.set(e, t), a.set(t, e); ++d < s;) {
109
+ var m = e[d], h = t[d];
110
+ if (r) var g = o ? r(h, m, d, t, e, a) : r(m, h, d, e, t, a);
111
+ if (g !== void 0) {
112
+ if (g) continue;
113
+ f = !1;
114
+ break;
115
+ }
116
+ if (p) {
117
+ if (!we(t, function(e, t) {
118
+ if (!H(p, t) && (m === e || i(m, e, n, r, a))) return p.push(t);
119
+ })) {
120
+ f = !1;
121
+ break;
122
+ }
123
+ } else if (!(m === h || i(m, h, n, r, a))) {
124
+ f = !1;
125
+ break;
126
+ }
127
+ }
128
+ return a.delete(e), a.delete(t), f;
129
+ }
130
+ //#endregion
131
+ //#region node_modules/lodash-es/_mapToArray.js
132
+ function De(e) {
133
+ var t = -1, n = Array(e.size);
134
+ return e.forEach(function(e, r) {
135
+ n[++t] = [r, e];
136
+ }), n;
137
+ }
138
+ //#endregion
139
+ //#region node_modules/lodash-es/_setToArray.js
140
+ function W(e) {
141
+ var t = -1, n = Array(e.size);
142
+ return e.forEach(function(e) {
143
+ n[++t] = e;
144
+ }), n;
145
+ }
146
+ //#endregion
147
+ //#region node_modules/lodash-es/_equalByTag.js
148
+ var Oe = 1, ke = 2, Ae = "[object Boolean]", je = "[object Date]", Me = "[object Error]", Ne = "[object Map]", Pe = "[object Number]", Fe = "[object RegExp]", Ie = "[object Set]", Le = "[object String]", Re = "[object Symbol]", ze = "[object ArrayBuffer]", Be = "[object DataView]", G = t ? t.prototype : void 0, K = G ? G.valueOf : void 0;
149
+ function Ve(e, t, n, r, a, o, s) {
150
+ switch (n) {
151
+ case Be:
152
+ if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset) return !1;
153
+ e = e.buffer, t = t.buffer;
154
+ case ze: return !(e.byteLength != t.byteLength || !o(new m(e), new m(t)));
155
+ case Ae:
156
+ case je:
157
+ case Pe: return i(+e, +t);
158
+ case Me: return e.name == t.name && e.message == t.message;
159
+ case Fe:
160
+ case Le: return e == t + "";
161
+ case Ne: var c = De;
162
+ case Ie:
163
+ var l = r & Oe;
164
+ if (c ||= W, e.size != t.size && !l) return !1;
165
+ var u = s.get(e);
166
+ if (u) return u == t;
167
+ r |= ke, s.set(e, t);
168
+ var d = U(c(e), c(t), r, a, o, s);
169
+ return s.delete(e), d;
170
+ case Re: if (K) return K.call(e) == K.call(t);
171
+ }
172
+ return !1;
173
+ }
174
+ //#endregion
175
+ //#region node_modules/lodash-es/_equalObjects.js
176
+ var He = 1, Ue = Object.prototype.hasOwnProperty;
177
+ function We(e, t, n, r, i, a) {
178
+ var o = n & He, s = M(e), c = s.length;
179
+ if (c != M(t).length && !o) return !1;
180
+ for (var l = c; l--;) {
181
+ var u = s[l];
182
+ if (!(o ? u in t : Ue.call(t, u))) return !1;
183
+ }
184
+ var d = a.get(e), f = a.get(t);
185
+ if (d && f) return d == t && f == e;
186
+ var p = !0;
187
+ a.set(e, t), a.set(t, e);
188
+ for (var m = o; ++l < c;) {
189
+ u = s[l];
190
+ var h = e[u], g = t[u];
191
+ if (r) var _ = o ? r(g, h, u, t, e, a) : r(h, g, u, e, t, a);
192
+ if (!(_ === void 0 ? h === g || i(h, g, n, r, a) : _)) {
193
+ p = !1;
194
+ break;
195
+ }
196
+ m ||= u == "constructor";
197
+ }
198
+ if (p && !m) {
199
+ var v = e.constructor, y = t.constructor;
200
+ v != y && "constructor" in e && "constructor" in t && !(typeof v == "function" && v instanceof v && typeof y == "function" && y instanceof y) && (p = !1);
201
+ }
202
+ return a.delete(e), a.delete(t), p;
203
+ }
204
+ //#endregion
205
+ //#region node_modules/lodash-es/_baseIsEqualDeep.js
206
+ var Ge = 1, q = "[object Arguments]", J = "[object Array]", Y = "[object Object]", X = Object.prototype.hasOwnProperty;
207
+ function Ke(e, t, r, i, a, o) {
208
+ var s = n(e), c = n(t), d = s ? J : B(e), f = c ? J : B(t);
209
+ d = d == q ? Y : d, f = f == q ? Y : f;
210
+ var p = d == Y, m = f == Y, h = d == f;
211
+ if (h && g(e)) {
212
+ if (!g(t)) return !1;
213
+ s = !0, p = !1;
214
+ }
215
+ if (h && !p) return o ||= new u(), s || l(e) ? U(e, t, r, i, a, o) : Ve(e, t, d, r, i, a, o);
216
+ if (!(r & Ge)) {
217
+ var _ = p && X.call(e, "__wrapped__"), v = m && X.call(t, "__wrapped__");
218
+ if (_ || v) {
219
+ var y = _ ? e.value() : e, b = v ? t.value() : t;
220
+ return o ||= new u(), a(y, b, r, i, o);
221
+ }
222
+ }
223
+ return h ? (o ||= new u(), We(e, t, r, i, a, o)) : !1;
224
+ }
225
+ //#endregion
226
+ //#region node_modules/lodash-es/_baseIsEqual.js
227
+ function Z(e, t, n, i, a) {
228
+ return e === t ? !0 : e == null || t == null || !r(e) && !r(t) ? e !== e && t !== t : Ke(e, t, n, i, Z, a);
229
+ }
230
+ //#endregion
231
+ //#region node_modules/lodash-es/isEqual.js
232
+ function qe(e, t) {
233
+ return Z(e, t);
234
+ }
235
+ //#endregion
236
+ //#region node_modules/lodash-es/isNil.js
237
+ function Je(e) {
238
+ return e == null;
239
+ }
240
+ //#endregion
241
+ //#region lib/lib/string.utils.ts
242
+ function Ye(e) {
243
+ return e.normalize("NFKD").replace(/[\u0300-\u036f]/g, "").toLowerCase().trim().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
244
+ }
245
+ function Xe(e) {
246
+ return e ? e.toLowerCase().replace(/_/g, "-") : "";
247
+ }
248
+ function Ze(e, t = ", ") {
249
+ return e.filter((e) => !!e).join(t);
250
+ }
251
+ function Qe(e, t) {
252
+ let n = t.trim();
253
+ if (!n) return [{
254
+ text: e,
255
+ match: !1
256
+ }];
257
+ let r = n.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), i = new RegExp(r, "ig"), a = [], o = 0;
258
+ for (let t of e.matchAll(i)) {
259
+ let n = t.index ?? 0;
260
+ n > o && a.push({
261
+ text: e.slice(o, n),
262
+ match: !1
263
+ }), a.push({
264
+ text: t[0],
265
+ match: !0
266
+ }), o = n + t[0].length;
267
+ }
268
+ return o < e.length && a.push({
269
+ text: e.slice(o),
270
+ match: !1
271
+ }), a.length > 0 ? a : [{
272
+ text: e,
273
+ match: !1
274
+ }];
275
+ }
276
+ var $e = {
277
+ enumToKebabCase: Xe,
278
+ joinTruthyParts: Ze,
279
+ slugify: Ye,
280
+ splitMatch: Qe
281
+ };
282
+ //#endregion
283
+ //#region lib/lib/array.utils.ts
284
+ function et(e) {
285
+ return Array.from(new Set(e));
286
+ }
287
+ function tt(e, t, n) {
288
+ return e.find((e) => e[t] === n);
289
+ }
290
+ function nt(e, t, n) {
291
+ return e.filter((e) => n.includes(e[t]));
292
+ }
293
+ function rt(e, t) {
294
+ return {
295
+ findByKey: S((n) => tt(e, t, n), [e, t]),
296
+ findByKeyIn: S((n) => nt(e, t, n), [e, t])
297
+ };
298
+ }
299
+ function it(e) {
300
+ return rt(e, "id");
301
+ }
302
+ //#endregion
303
+ //#region lib/lib/build-field-options.ts
304
+ function at(e, { valueKey: t, label: n }) {
305
+ return e.map((e) => ({
306
+ value: o(e, t),
307
+ label: typeof n == "function" ? n(e) : o(e, n)
308
+ }));
309
+ }
310
+ //#endregion
311
+ //#region lib/lib/client-only.utils.ts
312
+ var ot = ne(!1);
313
+ function st(e) {
314
+ function t(t) {
315
+ let n = re(ot), r = ee();
316
+ return !n && !r ? null : x(ot.Provider, { value: !0 }, x(te, { fallback: null }, x(e, t)));
317
+ }
318
+ return t.displayName = `ClientOnly(${e.displayName ?? e.name ?? "Component"})`, t;
319
+ }
320
+ //#endregion
321
+ //#region lib/lib/format.utils.ts
322
+ function ct(e, t) {
323
+ return e?.length ? e : t;
324
+ }
325
+ function lt(e, t) {
326
+ return e?.length ? e : t;
327
+ }
328
+ function ut(e) {
329
+ let t = new FormData();
330
+ return typeof e == "object" && Object.entries(e).forEach(([e, n]) => {
331
+ Je(n) || t.append(e, n);
332
+ }), t;
333
+ }
334
+ function dt(e) {
335
+ let t = {};
336
+ for (let [n, r] of e.entries()) t[n] = r;
337
+ return t;
338
+ }
339
+ //#endregion
340
+ //#region lib/lib/object.utils.ts
341
+ function ft(e, t) {
342
+ let n = {};
343
+ if (!Array.isArray(t)) n[t] = e?.[t];
344
+ else for (let r of t) n[r] = e?.[r];
345
+ return n;
346
+ }
347
+ function pt(e, t) {
348
+ let n = { ...e };
349
+ if (Array.isArray(t)) for (let e of t) delete n?.[e];
350
+ else delete n?.[t];
351
+ return n ?? {};
352
+ }
353
+ function mt(e) {
354
+ return e;
355
+ }
356
+ async function ht(e) {
357
+ return await e;
358
+ }
359
+ function gt(e, t = !1) {
360
+ return Object.fromEntries(Object.entries(e).filter(([e, n]) => t ? n != null && n !== void 0 : n !== void 0));
361
+ }
362
+ //#endregion
363
+ //#region lib/lib/promise.utils.ts
364
+ function _t(e) {
365
+ return new Promise((t) => setTimeout(t, e));
366
+ }
367
+ //#endregion
368
+ //#region lib/lib/redux/async-slice.ts
369
+ var vt = oe({ creators: { asyncThunk: ae } });
370
+ //#endregion
371
+ //#region lib/lib/redux/filter-slice.ts
372
+ function yt({ name: e, initialState: t, reducers: n = void 0, selectors: r = {} }) {
373
+ return w({
374
+ name: e,
375
+ initialState: t,
376
+ reducers: (e) => ({
377
+ updateFilter: e.reducer((e, t) => {
378
+ let { filter: n, sort: r } = t.payload;
379
+ n && (e.filter = {
380
+ ...e.filter,
381
+ ...n
382
+ }), r && (e.sort = {
383
+ ...e.sort,
384
+ ...r
385
+ });
386
+ }),
387
+ resetFilter: e.reducer((e) => {
388
+ e.filter = t.filter, e.sort = t.sort;
389
+ }),
390
+ ...n?.(e)
391
+ }),
392
+ selectors: { ...r }
393
+ });
394
+ }
395
+ //#endregion
396
+ //#region lib/lib/redux/status-slice.ts
397
+ var bt = ({ name: e, initialState: t = { status: "idle" }, reducers: n = {}, selectors: r = {} }) => w({
398
+ name: e,
399
+ initialState: t,
400
+ reducers: {
401
+ reset(e) {
402
+ e.status = t.status;
403
+ },
404
+ start(e) {
405
+ e.status = "loading";
406
+ },
407
+ success(e, t) {
408
+ e.data = t.payload, e.status = "success";
409
+ },
410
+ error(e, t) {
411
+ e.error = t.payload, e.status = "error";
412
+ },
413
+ ...n
414
+ },
415
+ selectors: { ...r }
416
+ }), xt = ({ name: e, initialState: t, reducers: n = {}, selectors: r = {} }) => w({
417
+ name: e,
418
+ initialState: t,
419
+ reducers: {
420
+ reset(e, n) {
421
+ e[n.payload] = t[n.payload];
422
+ },
423
+ start(e, t) {
424
+ e[t.payload].status = "loading";
425
+ },
426
+ success(e, t) {
427
+ let n = t.payload.path;
428
+ e[n].data = t.payload.data, e[n].status = "success";
429
+ },
430
+ error(e, t) {
431
+ let n = t.payload.path;
432
+ e[n].error = t.payload.message, e[n].status = "error";
433
+ },
434
+ ...n
435
+ },
436
+ selectors: {
437
+ ...r,
438
+ status(e, t) {
439
+ return e[t].status;
440
+ }
441
+ }
442
+ });
443
+ //#endregion
444
+ //#region lib/lib/storage.utils.ts
445
+ function St(e, t) {
446
+ try {
447
+ let n = localStorage.getItem(e);
448
+ if (n) return typeof t == "string" ? n : JSON.parse(n);
449
+ } catch (t) {
450
+ console.warn(`Failed to restore state for key "${e}":`, t);
451
+ }
452
+ return t;
453
+ }
454
+ function Q(e, t) {
455
+ try {
456
+ localStorage.setItem(e, typeof t == "string" ? t : JSON.stringify(t));
457
+ } catch (t) {
458
+ console.warn(`Failed to store state for key "${e}":`, t);
459
+ }
460
+ }
461
+ function Ct(e) {
462
+ try {
463
+ localStorage.removeItem(e);
464
+ } catch (t) {
465
+ console.warn(`Failed to remove state for key "${e}":`, t);
466
+ }
467
+ }
468
+ var wt = {
469
+ safeGetItem: St,
470
+ safeSetItem: Q,
471
+ safeRemoveItem: Ct
472
+ }, $ = {
473
+ isDirty: !1,
474
+ step: 0,
475
+ values: {}
476
+ }, Tt = ({ name: e, initialState: t, reducers: n = void 0, selectors: r = {} }) => {
477
+ let i = () => ({
478
+ ...$,
479
+ values: t ?? $.values
480
+ });
481
+ return w({
482
+ name: e,
483
+ initialState: i(),
484
+ reducers: (t) => ({
485
+ updateStep: t.reducer((t, n) => {
486
+ t.step = typeof n.payload == "function" ? n.payload(t.step) : n.payload, Q(e, t);
487
+ }),
488
+ updateFormValues: t.reducer((e, t) => {
489
+ e.values = {
490
+ ...e.values,
491
+ ...typeof t.payload == "function" ? t.payload(e.values) : t.payload
492
+ }, e.isDirty = !qe(e.values, $.values);
493
+ }),
494
+ reset: t.reducer((e) => {
495
+ Object.assign(e, i());
496
+ }),
497
+ ...n?.(t)
498
+ }),
499
+ selectors: { ...r }
500
+ });
501
+ };
502
+ //#endregion
503
+ //#region node_modules/redux/dist/redux.mjs
504
+ function Et(e) {
505
+ return `Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `;
506
+ }
507
+ var Dt = () => Math.random().toString(36).substring(7).split("").join(".");
508
+ `${/* @__PURE__ */ Dt()}`, `${/* @__PURE__ */ Dt()}`;
509
+ function Ot(e) {
510
+ if (e === void 0) return "undefined";
511
+ if (e === null) return "null";
512
+ let t = typeof e;
513
+ switch (t) {
514
+ case "boolean":
515
+ case "string":
516
+ case "number":
517
+ case "symbol":
518
+ case "function": return t;
519
+ }
520
+ if (Array.isArray(e)) return "array";
521
+ if (jt(e)) return "date";
522
+ if (At(e)) return "error";
523
+ let n = kt(e);
524
+ switch (n) {
525
+ case "Symbol":
526
+ case "Promise":
527
+ case "WeakMap":
528
+ case "WeakSet":
529
+ case "Map":
530
+ case "Set": return n;
531
+ }
532
+ return Object.prototype.toString.call(e).slice(8, -1).toLowerCase().replace(/\s/g, "");
533
+ }
534
+ function kt(e) {
535
+ return typeof e.constructor == "function" ? e.constructor.name : null;
536
+ }
537
+ function At(e) {
538
+ return e instanceof Error || typeof e.message == "string" && e.constructor && typeof e.constructor.stackTraceLimit == "number";
539
+ }
540
+ function jt(e) {
541
+ return e instanceof Date || typeof e.toDateString == "function" && typeof e.getDate == "function" && typeof e.setDate == "function";
542
+ }
543
+ function Mt(e) {
544
+ let t = typeof e;
545
+ return process.env.NODE_ENV !== "production" && (t = Ot(e)), t;
546
+ }
547
+ function Nt(e, t) {
548
+ return function(...n) {
549
+ return t(e.apply(this, n));
550
+ };
551
+ }
552
+ function Pt(e, t) {
553
+ if (typeof e == "function") return Nt(e, t);
554
+ if (typeof e != "object" || !e) throw Error(process.env.NODE_ENV === "production" ? Et(16) : `bindActionCreators expected an object or a function, but instead received: '${Mt(e)}'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?`);
555
+ let n = {};
556
+ for (let r in e) {
557
+ let i = e[r];
558
+ typeof i == "function" && (n[r] = Nt(i, t));
559
+ }
560
+ return n;
561
+ }
562
+ //#endregion
563
+ //#region lib/lib/redux/use-actions.ts
564
+ function Ft(e, t) {
565
+ let n = se();
566
+ return C(() => Pt(e, n), t ? [n, ...t] : [n]);
567
+ }
568
+ //#endregion
569
+ //#region lib/lib/redux/use-slice-reducer.ts
570
+ function It(e, t) {
571
+ return t ? {
572
+ ...e,
573
+ ...t
574
+ } : e;
575
+ }
576
+ function Lt(e, t) {
577
+ let [n, r] = ie(e.reducer, It(e.getInitialState(), t));
578
+ return [n, C(() => {
579
+ let t = {};
580
+ for (let n in e.actions) t[n] = (...t) => {
581
+ r(e.actions[n](...t));
582
+ };
583
+ return t;
584
+ }, [r, e.actions])];
585
+ }
586
+ //#endregion
587
+ //#region lib/lib/redux/use-slice-selector.ts
588
+ function Rt(e, t) {
589
+ return C(() => t(e), [e, t]);
590
+ }
591
+ //#endregion
592
+ //#region lib/lib/styles.utils.ts
593
+ var zt = { colorFromVariable(e, t = 1) {
594
+ return `rgb(from var(--${e}) r g b / ${t})`;
595
+ } }, Bt = (e, t) => typeof e == "function" ? e(t) : e, Vt = (e, t = "files") => {
596
+ let r = new FormData();
597
+ return (n(e) ? e.filter(Boolean) : [e]).forEach((e) => {
598
+ r.append(t, e, e.name);
599
+ }), r;
600
+ };
601
+ //#endregion
602
+ //#region lib/lib/url.utils.ts
603
+ function Ht(e) {
604
+ return new URL(e.url).searchParams;
605
+ }
606
+ function Ut(e, t) {
607
+ return Ht(e).get(t);
608
+ }
609
+ function Wt(e) {
610
+ return /^(https?:)?\/\//.test(e) || e.startsWith("mailto:");
611
+ }
612
+ //#endregion
613
+ //#region lib/lib/zod-error-map.ts
614
+ var Gt = (e) => {
615
+ let t = typeof e;
616
+ switch (t) {
617
+ case "number": return Number.isNaN(e) ? "NaN" : "number";
618
+ case "object":
619
+ if (Array.isArray(e)) return "array";
620
+ if (e === null) return "null";
621
+ if (Object.getPrototypeOf(e) !== Object.prototype && e.constructor) return e.constructor.name;
622
+ }
623
+ return t;
624
+ }, Kt = () => localStorage.getItem("language") === "fr" ? "fr" : "en", qt = () => (e) => {
625
+ let t = Kt(), n = b[t].material.zod.sizing[e.origin], r = b[t].material.zod.nouns;
626
+ switch (e.code) {
627
+ case "invalid_type": return y(e.input ? `material.zod.invalid_type.${e.expected}` : "material.zod.required", {
628
+ expected: e.expected,
629
+ received: Gt(e.input)
630
+ });
631
+ case "invalid_value": return e.values.length === 1 ? y("material.zod.invalid_value_single", { value: e.values[0] }) : y("material.zod.invalid_value_multiple", { values: e.values.join(" | ") });
632
+ case "too_big": {
633
+ let t = e.inclusive ? "inclusive" : "exclusive";
634
+ return n?.unit ? y(`material.zod.too_big_${t}`, {
635
+ origin: e.origin ?? "value",
636
+ maximum: e.maximum.toString(),
637
+ unit: n.unit
638
+ }) : y(`material.zod.too_big_no_unit_${t}`, {
639
+ origin: e.origin ?? "value",
640
+ maximum: e.maximum.toString()
641
+ });
642
+ }
643
+ case "too_small": {
644
+ let t = e.inclusive ? "inclusive" : "exclusive";
645
+ return n?.unit ? y(`material.zod.too_small_${t}`, {
646
+ origin: e.origin,
647
+ minimum: e.minimum.toString(),
648
+ unit: n.unit
649
+ }) : y(`material.zod.too_small_no_unit_${t}`, {
650
+ origin: e.origin,
651
+ minimum: e.minimum.toString()
652
+ });
653
+ }
654
+ case "invalid_format": {
655
+ let t = e;
656
+ return t.format === "starts_with" ? y("material.zod.invalid_format.starts_with", { prefix: t.prefix }) : t.format === "ends_with" ? y("material.zod.invalid_format.ends_with", { suffix: t.suffix }) : t.format === "includes" ? y("material.zod.invalid_format.includes", { includes: t.includes }) : t.format === "regex" ? y("material.zod.invalid_format.regex", { pattern: t.pattern }) : y("material.zod.invalid_format.default", { noun: r[t.format] ?? t.format });
657
+ }
658
+ case "not_multiple_of": return y("material.zod.not_multiple_of", { divisor: e.divisor });
659
+ case "unrecognized_keys": return y(`material.zod.unrecognized_keys_${e.keys.length > 1 ? "multiple" : "single"}`, { keys: e.keys.join(", ") });
660
+ case "invalid_key": return y("material.zod.invalid_key", { origin: e.origin });
661
+ case "invalid_union": return y("material.zod.invalid_union");
662
+ case "invalid_element": return y("material.zod.invalid_element", { origin: e.origin });
663
+ default: return y("material.zod.default");
664
+ }
665
+ };
666
+ //#endregion
667
+ export { fe as $, ct as A, Xe as B, mt as C, ft as D, pt as E, nt as F, Z as G, Ye as H, et as I, V as J, W as K, it as L, st as M, at as N, dt as O, tt as P, j as Q, rt as R, _t as S, gt as T, Qe as U, Ze as V, Je as W, F as X, B as Y, M as Z, Q as _, Ht as a, yt as b, zt as c, Lt as d, k as et, Ft as f, Ct as g, St as h, Ut as i, ue as it, ut as j, lt as k, Rt as l, wt as m, qt as n, D as nt, Vt as o, Tt as p, H as q, Wt as r, E as rt, Bt as s, Gt as t, O as tt, It as u, bt as v, ht as w, vt as x, xt as y, $e as z };
package/dist/lib.js CHANGED
@@ -1,3 +1,4 @@
1
- import { A as e, B as t, C as n, D as r, E as i, F as a, H as o, I as s, L as c, M as l, N as u, O as d, P as f, R as p, S as m, T as h, U as g, V as _, _ as v, a as y, at as b, b as x, c as S, d as C, f as w, g as T, h as E, i as D, j as O, k, l as A, m as j, n as M, o as N, p as P, r as F, s as I, t as L, u as R, v as z, w as B, x as V, y as H, z as U } from "./lib-CuGr3v8i.js";
1
+ import { t as e } from "./utils-Brj-Qb2N.js";
2
+ import { A as t, B as n, C as r, D as i, E as a, F as o, H as s, I as c, L as l, M as u, N as d, O as f, P as p, R as m, S as h, T as g, U as _, V as v, _ as y, a as b, b as x, c as S, d as C, f as w, g as T, h as E, i as D, j as O, k, l as A, m as j, n as M, o as N, p as P, r as F, s as I, t as L, u as R, v as z, w as B, x as V, y as H, z as U } from "./lib-BDc9msmn.js";
2
3
  import { n as W, r as G, t as K } from "./number.utils-BR3XO6me.js";
3
- export { W as DATE_UTILS, j as LOCALE_STORE_UTILS, U as STRING_UTILS, S as STYLES_UTILS, u as buildFieldOptions, n as cast, B as castAsync, h as cleanObject, l as clientOnly, b as cn, N as convertToFormData, V as createAsyncSlice, x as createSliceWithFilter, z as createStatusSlice, H as createStatusesSlice, P as createStepFormSlice, m as delay, t as enumToKebabCase, f as findByKey, a as findByKeyIn, d as formDataToObject, G as formatDateRangeFilter, K as formatNumber, k as ifEmptyList, e as ifEmptyString, F as isExternalHref, _ as joinTruthyParts, O as objectToFormData, i as omit, L as parsedType, r as pick, I as renderSlot, R as resolveSliceState, E as safeGetItem, T as safeRemoveItem, v as safeSetItem, D as searchParam, y as searchParams, o as slugify, g as splitMatch, s as uniqueArray, w as useActions, c as useFindById, p as useFindByKey, C as useSliceReducer, A as useSliceSelector, M as zodLocaleError };
4
+ export { W as DATE_UTILS, j as LOCALE_STORE_UTILS, U as STRING_UTILS, S as STYLES_UTILS, d as buildFieldOptions, r as cast, B as castAsync, g as cleanObject, u as clientOnly, e as cn, N as convertToFormData, V as createAsyncSlice, x as createSliceWithFilter, z as createStatusSlice, H as createStatusesSlice, P as createStepFormSlice, h as delay, n as enumToKebabCase, p as findByKey, o as findByKeyIn, f as formDataToObject, G as formatDateRangeFilter, K as formatNumber, k as ifEmptyList, t as ifEmptyString, F as isExternalHref, v as joinTruthyParts, O as objectToFormData, a as omit, L as parsedType, i as pick, I as renderSlot, R as resolveSliceState, E as safeGetItem, T as safeRemoveItem, y as safeSetItem, D as searchParam, b as searchParams, s as slugify, _ as splitMatch, c as uniqueArray, w as useActions, l as useFindById, m as useFindByKey, C as useSliceReducer, A as useSliceSelector, M as zodLocaleError };