dynamic-mui 2.2.0 → 2.3.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 (166) hide show
  1. package/README.md +142 -5
  2. package/dist/accordion-DqBdGRim.mjs +23 -0
  3. package/dist/accordion-lvbD_BpX.js +1 -0
  4. package/dist/addressfield-CGX3UppE.mjs +152 -0
  5. package/dist/addressfield-DDG15fqJ.js +1 -0
  6. package/dist/asyncautocomplete-BAfBR9P7.mjs +89 -0
  7. package/dist/asyncautocomplete-w9q_1DWt.js +1 -0
  8. package/dist/bar-BzO7tvYJ.mjs +20 -0
  9. package/dist/bar-DEVxyUVS.js +1 -0
  10. package/dist/cascadeselect-C3QVfoig.mjs +64 -0
  11. package/dist/cascadeselect-DzbhK9en.js +1 -0
  12. package/dist/colorpicker-5qmEq7ZI.js +1 -0
  13. package/dist/colorpicker-DhNZulJY.mjs +98 -0
  14. package/dist/components/DynamicComponent.d.ts +2 -0
  15. package/dist/components/FormGenerator.d.ts +99 -10
  16. package/dist/components/controls/index.d.ts +45 -79
  17. package/dist/consentfield-B7Rm8d3U.js +1 -0
  18. package/dist/consentfield-CBQUR4J5.mjs +78 -0
  19. package/dist/datatable-BIQznwQe.mjs +20 -0
  20. package/dist/datatable-BWlcUP0M.js +1 -0
  21. package/dist/dynamic-mui.cjs +1 -0
  22. package/dist/dynamic-mui.mjs +32 -0
  23. package/dist/editabletable-DCoRmsEO.js +1 -0
  24. package/dist/editabletable-DRlBV8lk.mjs +126 -0
  25. package/dist/fileupload-ByBv1UjT.mjs +172 -0
  26. package/dist/fileupload-Cze3Oc_2.js +1 -0
  27. package/dist/formrepeater-BBkKGLFJ.mjs +71 -0
  28. package/dist/formrepeater-BxJzXoHx.js +1 -0
  29. package/dist/formwizard-BDZE1UDD.js +1 -0
  30. package/dist/formwizard-D2u1bMvK.mjs +83 -0
  31. package/dist/geofield-8WTeZk0Z.mjs +104 -0
  32. package/dist/geofield-Bw3p4NLJ.js +1 -0
  33. package/dist/group-B2mSylHd.mjs +23 -0
  34. package/dist/group-BlfO3ZZf.js +1 -0
  35. package/dist/imagelist-Bn9QhIv7.js +1 -0
  36. package/dist/imagelist-rqmJajHt.mjs +18 -0
  37. package/dist/index-CddjLTWF.mjs +12499 -0
  38. package/dist/index-D08GIfqF.js +43 -0
  39. package/dist/index.d.ts +9 -1
  40. package/dist/intlphone-B_Xn98pU.js +1 -0
  41. package/dist/intlphone-DtQZ12xk.mjs +140 -0
  42. package/dist/keyvaluefield-B_1NeGuP.mjs +125 -0
  43. package/dist/keyvaluefield-DyKCGd32.js +1 -0
  44. package/dist/line-B-DwR1hm.mjs +20 -0
  45. package/dist/line-BkymZu31.js +1 -0
  46. package/dist/lineitemlist-DGo8UOZC.js +1 -0
  47. package/dist/lineitemlist-vGKzJlQx.mjs +166 -0
  48. package/dist/list-7uNWrepS.mjs +20 -0
  49. package/dist/list-C0FgmtQw.js +1 -0
  50. package/dist/locationfield-CeUgxLkQ.mjs +119 -0
  51. package/dist/locationfield-Duyw1ZEz.js +1 -0
  52. package/dist/markdowneditor-B1y-hfny.mjs +90 -0
  53. package/dist/markdowneditor-Db0Un1_Z.js +2 -0
  54. package/dist/matrixfield-C7Sc-YpI.mjs +117 -0
  55. package/dist/matrixfield-CckODuPn.js +1 -0
  56. package/dist/mixChart-C3o184UT.js +1 -0
  57. package/dist/mixChart-ISf3Kbr-.mjs +75 -0
  58. package/dist/multitextbox-BYazIAeG.js +1 -0
  59. package/dist/multitextbox-ide2lvJ6.mjs +78 -0
  60. package/dist/npsscale-C2e88qk_.js +1 -0
  61. package/dist/npsscale-lndz7GEq.mjs +87 -0
  62. package/dist/numberstepper-DitbcvV9.mjs +128 -0
  63. package/dist/numberstepper-DyRjQM_K.js +1 -0
  64. package/dist/pie-CJSL8Sv5.js +1 -0
  65. package/dist/pie-CL29dlh5.mjs +20 -0
  66. package/dist/richtexteditor-CVg-MnKp.js +1 -0
  67. package/dist/richtexteditor-DsC1XC7h.mjs +141 -0
  68. package/dist/s3Upload-B0JeoLkS.js +1 -0
  69. package/dist/s3Upload-dpioZ2c8.mjs +51 -0
  70. package/dist/signature-14OrZriO.mjs +1225 -0
  71. package/dist/signature-D582X6tB.js +2 -0
  72. package/dist/stepper-B-FpcZvT.js +1 -0
  73. package/dist/stepper-CDfEy_C6.mjs +140 -0
  74. package/dist/summaryfield-B08ZmVHh.js +1 -0
  75. package/dist/summaryfield-CTpPlZBG.mjs +96 -0
  76. package/dist/tabs-BIliqFOs.js +1 -0
  77. package/dist/tabs-DDeJCFt8.mjs +39 -0
  78. package/dist/tagsinput-D-q6rRZS.mjs +58 -0
  79. package/dist/tagsinput-qh_lhdFb.js +1 -0
  80. package/dist/util/registry.d.ts +29 -0
  81. package/dist/util/resolvers.d.ts +45 -0
  82. package/dist/util/useFormEngine.d.ts +74 -0
  83. package/dist/util/validateSchema.d.ts +23 -0
  84. package/dist/v4-BysszJq8.mjs +30 -0
  85. package/dist/v4-CqdK_b8Y.js +1 -0
  86. package/package.json +36 -11
  87. package/dist/AxisSharedComponents-BbsKw1BT.js +0 -3
  88. package/dist/AxisSharedComponents-xLtpOLH_.mjs +0 -605
  89. package/dist/ChartsAxis-CANvBdY9.mjs +0 -47
  90. package/dist/ChartsAxis-EZ7m_KrU.js +0 -1
  91. package/dist/ChartsGrid-BCRTvNTr.js +0 -3
  92. package/dist/ChartsGrid-C_HT7qpL.mjs +0 -381
  93. package/dist/ChartsWrapper-CM7EDyAK.js +0 -5
  94. package/dist/ChartsWrapper-CO5_Z6BD.mjs +0 -1878
  95. package/dist/ChartsXAxis-CPmuCRhq.mjs +0 -487
  96. package/dist/ChartsXAxis-DFFY1sPg.js +0 -3
  97. package/dist/ChartsYAxis-DLUMr9vG.mjs +0 -392
  98. package/dist/ChartsYAxis-fpevi1sP.js +0 -1
  99. package/dist/XmlShapeDeserializer-3yQdm0b0.mjs +0 -237
  100. package/dist/XmlShapeDeserializer-XKJAoqLc.js +0 -1
  101. package/dist/clampAngle-BvZjnf53.mjs +0 -11
  102. package/dist/clampAngle-DpAsDoeT.js +0 -1
  103. package/dist/createSelector-B-9FwV16.mjs +0 -430
  104. package/dist/createSelector-f0oqn8Lr.js +0 -7
  105. package/dist/date-utils-CFUUt6NL.js +0 -4
  106. package/dist/date-utils-pGzaKb0p.mjs +0 -477
  107. package/dist/dynamic-mui.cjs.js +0 -1
  108. package/dist/dynamic-mui.es.js +0 -22
  109. package/dist/index--8Zky9Oh.js +0 -299
  110. package/dist/index-6WTs1Xy_.js +0 -1
  111. package/dist/index-B1R1akM2.js +0 -1
  112. package/dist/index-BW8_rRff.js +0 -7
  113. package/dist/index-BXFVK_GX.js +0 -1
  114. package/dist/index-B_KNUTjy.js +0 -1
  115. package/dist/index-BhaKvHkU.mjs +0 -62051
  116. package/dist/index-Bif92ima.js +0 -1
  117. package/dist/index-BnZOu8CL.js +0 -1
  118. package/dist/index-CDxpgRlR.mjs +0 -7
  119. package/dist/index-CThMfvtJ.mjs +0 -2555
  120. package/dist/index-CVqLvm8B.js +0 -1
  121. package/dist/index-CodJBIn6.mjs +0 -1665
  122. package/dist/index-Cr6Wp_S-.mjs +0 -3141
  123. package/dist/index-CslPwsrf.mjs +0 -4
  124. package/dist/index-CuV0MQzZ.mjs +0 -1173
  125. package/dist/index-DA0XouZs.mjs +0 -153
  126. package/dist/index-DKS5Sz9e.js +0 -14
  127. package/dist/index-DSkYYZuW.mjs +0 -4
  128. package/dist/index-DU78_FiA.js +0 -1
  129. package/dist/index-D_mYhgJ0.js +0 -10
  130. package/dist/index-DcWfyXJp.mjs +0 -92
  131. package/dist/index-Dlimbnxj.mjs +0 -2965
  132. package/dist/index-MllWgTJ5.mjs +0 -9372
  133. package/dist/index-in5z9hUb.js +0 -133
  134. package/dist/index-qUW7FnZ-.mjs +0 -20540
  135. package/dist/index.browser-BSu11T_q.mjs +0 -363
  136. package/dist/index.browser-By7-GABP.js +0 -4
  137. package/dist/isDeepEqual-BHfPvf9U.mjs +0 -393
  138. package/dist/isDeepEqual-CqxZGVRk.js +0 -1
  139. package/dist/loadCognitoIdentity-DtYTy-DW.js +0 -1
  140. package/dist/loadCognitoIdentity-DzdR91GB.mjs +0 -872
  141. package/dist/loadSts-Cic6UToN.mjs +0 -593
  142. package/dist/loadSts-csbFP6zX.js +0 -1
  143. package/dist/main.d.ts +0 -1
  144. package/dist/noAuth-B8ui2kBg.mjs +0 -71
  145. package/dist/noAuth-JPA2o4dt.js +0 -1
  146. package/dist/playground/AIContext.d.ts +0 -18
  147. package/dist/playground/AIPanel.d.ts +0 -10
  148. package/dist/playground/Builder.d.ts +0 -1
  149. package/dist/playground/Canvas.d.ts +0 -9
  150. package/dist/playground/DemoGallery.d.ts +0 -6
  151. package/dist/playground/PropertiesEditor.d.ts +0 -10
  152. package/dist/playground/Sidebar.d.ts +0 -9
  153. package/dist/playground/demoForms.d.ts +0 -3
  154. package/dist/playground/demoRecipes.d.ts +0 -15
  155. package/dist/playground/demoVariants.d.ts +0 -11
  156. package/dist/playground/documentation.d.ts +0 -6
  157. package/dist/playground/templates.d.ts +0 -7
  158. package/dist/playground/testData.d.ts +0 -2
  159. package/dist/test/setup.d.ts +0 -0
  160. package/dist/theme/theme.d.ts +0 -6
  161. package/dist/useAxis-DSbfEtO7.js +0 -3
  162. package/dist/useAxis-SiNBMMWq.mjs +0 -3010
  163. package/dist/useChartContainerProps-Bl3hO-r1.mjs +0 -5418
  164. package/dist/useChartContainerProps-C_C_PZoi.js +0 -12
  165. package/dist/useItemHighlightedGetter-9CIwqsGj.js +0 -1
  166. package/dist/useItemHighlightedGetter-CTISrNdV.mjs +0 -88
@@ -1,477 +0,0 @@
1
- class D {
2
- method;
3
- protocol;
4
- hostname;
5
- port;
6
- path;
7
- query;
8
- headers;
9
- username;
10
- password;
11
- fragment;
12
- body;
13
- constructor(t) {
14
- this.method = t.method || "GET", this.hostname = t.hostname || "localhost", this.port = t.port, this.query = t.query || {}, this.headers = t.headers || {}, this.body = t.body, this.protocol = t.protocol ? t.protocol.slice(-1) !== ":" ? `${t.protocol}:` : t.protocol : "https:", this.path = t.path ? t.path.charAt(0) !== "/" ? `/${t.path}` : t.path : "/", this.username = t.username, this.password = t.password, this.fragment = t.fragment;
15
- }
16
- static clone(t) {
17
- const r = new D({
18
- ...t,
19
- headers: { ...t.headers }
20
- });
21
- return r.query && (r.query = Z(r.query)), r;
22
- }
23
- static isInstance(t) {
24
- if (!t)
25
- return !1;
26
- const r = t;
27
- return "method" in r && "protocol" in r && "hostname" in r && "path" in r && typeof r.query == "object" && typeof r.headers == "object";
28
- }
29
- clone() {
30
- return D.clone(this);
31
- }
32
- }
33
- function Z(e) {
34
- return Object.keys(e).reduce((t, r) => {
35
- const n = e[r];
36
- return {
37
- ...t,
38
- [r]: Array.isArray(n) ? [...n] : n
39
- };
40
- }, {});
41
- }
42
- class L {
43
- statusCode;
44
- reason;
45
- headers;
46
- body;
47
- constructor(t) {
48
- this.statusCode = t.statusCode, this.reason = t.reason, this.headers = t.headers || {}, this.body = t.body;
49
- }
50
- static isInstance(t) {
51
- if (!t)
52
- return !1;
53
- const r = t;
54
- return typeof r.statusCode == "number" && typeof r.headers == "object";
55
- }
56
- }
57
- const Be = (e) => {
58
- if (typeof e == "function")
59
- return e;
60
- const t = Promise.resolve(e);
61
- return () => t;
62
- }, q = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", _ = Object.entries(q).reduce((e, [t, r]) => (e[r] = Number(t), e), {}), Q = q.split(""), g = 6, E = 8, K = 63, v = (e) => {
63
- let t = e.length / 4 * 3;
64
- e.slice(-2) === "==" ? t -= 2 : e.slice(-1) === "=" && t--;
65
- const r = new ArrayBuffer(t), n = new DataView(r);
66
- for (let o = 0; o < e.length; o += 4) {
67
- let s = 0, a = 0;
68
- for (let i = o, d = o + 3; i <= d; i++)
69
- if (e[i] !== "=") {
70
- if (!(e[i] in _))
71
- throw new TypeError(`Invalid character ${e[i]} in base64 string.`);
72
- s |= _[e[i]] << (d - i) * g, a += g;
73
- } else
74
- s >>= g;
75
- const c = o / 4 * 3;
76
- s >>= a % E;
77
- const f = Math.floor(a / E);
78
- for (let i = 0; i < f; i++) {
79
- const d = (f - i - 1) * E;
80
- n.setUint8(c + i, (s & 255 << d) >> d);
81
- }
82
- }
83
- return new Uint8Array(r);
84
- }, ee = (e) => new TextEncoder().encode(e), te = (e) => {
85
- if (typeof e == "string")
86
- return e;
87
- if (typeof e != "object" || typeof e.byteOffset != "number" || typeof e.byteLength != "number")
88
- throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");
89
- return new TextDecoder("utf-8").decode(e);
90
- };
91
- function re(e) {
92
- let t;
93
- typeof e == "string" ? t = ee(e) : t = e;
94
- const r = typeof t == "object" && typeof t.length == "number", n = typeof t == "object" && typeof t.byteOffset == "number" && typeof t.byteLength == "number";
95
- if (!r && !n)
96
- throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");
97
- let o = "";
98
- for (let s = 0; s < t.length; s += 3) {
99
- let a = 0, c = 0;
100
- for (let i = s, d = Math.min(s + 3, t.length); i < d; i++)
101
- a |= t[i] << (d - i - 1) * E, c += E;
102
- const f = Math.ceil(c / g);
103
- a <<= f * g - c;
104
- for (let i = 1; i <= f; i++) {
105
- const d = (f - i) * g;
106
- o += Q[(a & K << d) >> d];
107
- }
108
- o += "==".slice(0, 4 - f);
109
- }
110
- return o;
111
- }
112
- const P = (e) => typeof ReadableStream == "function" && (e?.constructor?.name === ReadableStream.name || e instanceof ReadableStream), M = (e) => encodeURIComponent(e).replace(/[!'()*]/g, ne), ne = (e) => `%${e.charCodeAt(0).toString(16).toUpperCase()}`;
113
- function oe(e) {
114
- const t = [];
115
- for (let r of Object.keys(e).sort()) {
116
- const n = e[r];
117
- if (r = M(r), Array.isArray(n))
118
- for (let o = 0, s = n.length; o < s; o++)
119
- t.push(`${r}=${M(n[o])}`);
120
- else {
121
- let o = r;
122
- (n || typeof n == "string") && (o += `=${M(n)}`), t.push(o);
123
- }
124
- }
125
- return t.join("&");
126
- }
127
- function k(e, t) {
128
- return new Request(e, t);
129
- }
130
- function se(e = 0) {
131
- return new Promise((t, r) => {
132
- e && setTimeout(() => {
133
- const n = new Error(`Request did not complete within ${e} ms`);
134
- n.name = "TimeoutError", r(n);
135
- }, e);
136
- });
137
- }
138
- const R = {
139
- supported: void 0
140
- };
141
- class G {
142
- config;
143
- configProvider;
144
- static create(t) {
145
- return typeof t?.handle == "function" ? t : new G(t);
146
- }
147
- constructor(t) {
148
- typeof t == "function" ? this.configProvider = t().then((r) => r || {}) : (this.config = t ?? {}, this.configProvider = Promise.resolve(this.config)), R.supported === void 0 && (R.supported = typeof Request < "u" && "keepalive" in k("https://[::1]"));
149
- }
150
- destroy() {
151
- }
152
- async handle(t, { abortSignal: r, requestTimeout: n } = {}) {
153
- this.config || (this.config = await this.configProvider);
154
- const o = n ?? this.config.requestTimeout, s = this.config.keepAlive === !0, a = this.config.credentials;
155
- if (r?.aborted) {
156
- const u = new Error("Request aborted");
157
- return u.name = "AbortError", Promise.reject(u);
158
- }
159
- let c = t.path;
160
- const f = oe(t.query || {});
161
- f && (c += `?${f}`), t.fragment && (c += `#${t.fragment}`);
162
- let i = "";
163
- if (t.username != null || t.password != null) {
164
- const u = t.username ?? "", T = t.password ?? "";
165
- i = `${u}:${T}@`;
166
- }
167
- const { port: d, method: y } = t, w = `${t.protocol}//${i}${t.hostname}${d ? `:${d}` : ""}${c}`, x = y === "GET" || y === "HEAD" ? void 0 : t.body, h = {
168
- body: x,
169
- headers: new Headers(t.headers),
170
- method: y,
171
- credentials: a
172
- };
173
- this.config?.cache && (h.cache = this.config.cache), x && (h.duplex = "half"), typeof AbortController < "u" && (h.signal = r), R.supported && (h.keepalive = s), typeof this.config.requestInit == "function" && Object.assign(h, this.config.requestInit(t));
174
- let B = () => {
175
- };
176
- const z = k(w, h), O = [
177
- fetch(z).then((u) => {
178
- const T = u.headers, m = {};
179
- for (const A of T.entries())
180
- m[A[0]] = A[1];
181
- return u.body != null ? {
182
- response: new L({
183
- headers: m,
184
- reason: u.statusText,
185
- statusCode: u.status,
186
- body: u.body
187
- })
188
- } : u.blob().then((A) => ({
189
- response: new L({
190
- headers: m,
191
- reason: u.statusText,
192
- statusCode: u.status,
193
- body: A
194
- })
195
- }));
196
- }),
197
- se(o)
198
- ];
199
- return r && O.push(new Promise((u, T) => {
200
- const m = () => {
201
- const p = new Error("Request aborted");
202
- p.name = "AbortError", T(p);
203
- };
204
- if (typeof r.addEventListener == "function") {
205
- const p = r;
206
- p.addEventListener("abort", m, { once: !0 }), B = () => p.removeEventListener("abort", m);
207
- } else
208
- r.onabort = m;
209
- })), Promise.race(O).finally(B);
210
- }
211
- updateHttpClientConfig(t, r) {
212
- this.config = void 0, this.configProvider = this.configProvider.then((n) => (n[t] = r, n));
213
- }
214
- httpHandlerConfigs() {
215
- return this.config ?? {};
216
- }
217
- }
218
- const ie = async (e) => typeof Blob == "function" && e instanceof Blob || e.constructor?.name === "Blob" ? Blob.prototype.arrayBuffer !== void 0 ? new Uint8Array(await e.arrayBuffer()) : ae(e) : ce(e);
219
- async function ae(e) {
220
- const t = await fe(e), r = v(t);
221
- return new Uint8Array(r);
222
- }
223
- async function ce(e) {
224
- const t = [], r = e.getReader();
225
- let n = !1, o = 0;
226
- for (; !n; ) {
227
- const { done: c, value: f } = await r.read();
228
- f && (t.push(f), o += f.length), n = c;
229
- }
230
- const s = new Uint8Array(o);
231
- let a = 0;
232
- for (const c of t)
233
- s.set(c, a), a += c.length;
234
- return s;
235
- }
236
- function fe(e) {
237
- return new Promise((t, r) => {
238
- const n = new FileReader();
239
- n.onloadend = () => {
240
- if (n.readyState !== 2)
241
- return r(new Error("Reader aborted too early"));
242
- const o = n.result ?? "", s = o.indexOf(","), a = s > -1 ? s + 1 : o.length;
243
- t(o.substring(a));
244
- }, n.onabort = () => r(new Error("Read aborted")), n.onerror = () => r(n.error), n.readAsDataURL(e);
245
- });
246
- }
247
- const V = {}, U = {};
248
- for (let e = 0; e < 256; e++) {
249
- let t = e.toString(16).toLowerCase();
250
- t.length === 1 && (t = `0${t}`), V[e] = t, U[t] = e;
251
- }
252
- function Oe(e) {
253
- if (e.length % 2 !== 0)
254
- throw new Error("Hex encoded strings must have an even number length");
255
- const t = new Uint8Array(e.length / 2);
256
- for (let r = 0; r < e.length; r += 2) {
257
- const n = e.slice(r, r + 2).toLowerCase();
258
- if (n in U)
259
- t[r / 2] = U[n];
260
- else
261
- throw new Error(`Cannot decode unrecognized sequence ${n} as hexadecimal`);
262
- }
263
- return t;
264
- }
265
- function de(e) {
266
- let t = "";
267
- for (let r = 0; r < e.byteLength; r++)
268
- t += V[e[r]];
269
- return t;
270
- }
271
- const H = "The stream has already been transformed.", Le = (e) => {
272
- if (!j(e) && !P(e)) {
273
- const o = e?.__proto__?.constructor?.name || e;
274
- throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${o}`);
275
- }
276
- let t = !1;
277
- const r = async () => {
278
- if (t)
279
- throw new Error(H);
280
- return t = !0, await ie(e);
281
- }, n = (o) => {
282
- if (typeof o.stream != "function")
283
- throw new Error(`Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.
284
- If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body`);
285
- return o.stream();
286
- };
287
- return Object.assign(e, {
288
- transformToByteArray: r,
289
- transformToString: async (o) => {
290
- const s = await r();
291
- if (o === "base64")
292
- return re(s);
293
- if (o === "hex")
294
- return de(s);
295
- if (o === void 0 || o === "utf8" || o === "utf-8")
296
- return te(s);
297
- if (typeof TextDecoder == "function")
298
- return new TextDecoder(o).decode(s);
299
- throw new Error("TextDecoder is not available, please make sure polyfill is provided.");
300
- },
301
- transformToWebStream: () => {
302
- if (t)
303
- throw new Error(H);
304
- if (t = !0, j(e))
305
- return n(e);
306
- if (P(e))
307
- return e;
308
- throw new Error(`Cannot transform payload to web stream, got ${e}`);
309
- }
310
- });
311
- }, j = (e) => typeof Blob == "function" && e instanceof Blob, N = (e) => {
312
- if (e != null) {
313
- if (typeof e == "string") {
314
- const t = parseFloat(e);
315
- if (!Number.isNaN(t))
316
- return String(t) !== String(e) && we.warn(be(`Expected number but observed string: ${e}`)), t;
317
- }
318
- if (typeof e == "number")
319
- return e;
320
- throw new TypeError(`Expected number, got ${typeof e}: ${e}`);
321
- }
322
- }, ue = Math.ceil(2 ** 127 * (2 - 2 ** -23)), J = (e) => {
323
- const t = N(e);
324
- if (t !== void 0 && !Number.isNaN(t) && t !== 1 / 0 && t !== -1 / 0 && Math.abs(t) > ue)
325
- throw new TypeError(`Expected 32-bit float, got ${e}`);
326
- return t;
327
- }, he = (e) => {
328
- if (e != null) {
329
- if (Number.isInteger(e) && !Number.isNaN(e))
330
- return e;
331
- throw new TypeError(`Expected integer, got ${typeof e}: ${e}`);
332
- }
333
- }, W = (e) => X(e, 16), Y = (e) => X(e, 8), X = (e, t) => {
334
- const r = he(e);
335
- if (r !== void 0 && le(r, t) !== r)
336
- throw new TypeError(`Expected ${t}-bit integer, got ${e}`);
337
- return r;
338
- }, le = (e, t) => {
339
- switch (t) {
340
- case 32:
341
- return Int32Array.of(e)[0];
342
- case 16:
343
- return Int16Array.of(e)[0];
344
- case 8:
345
- return Int8Array.of(e)[0];
346
- }
347
- }, ye = (e) => N(typeof e == "string" ? C(e) : e), me = (e) => J(typeof e == "string" ? C(e) : e), pe = /(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g, C = (e) => {
348
- const t = e.match(pe);
349
- if (t === null || t[0].length !== e.length)
350
- throw new TypeError("Expected real number, got implicit NaN");
351
- return parseFloat(e);
352
- }, $ = (e) => W(typeof e == "string" ? C(e) : e), ge = (e) => Y(typeof e == "string" ? C(e) : e), be = (e) => String(new TypeError(e).stack || e).split(`
353
- `).slice(0, 5).filter((t) => !t.includes("stackTraceWarning")).join(`
354
- `), we = {
355
- warn: console.warn
356
- }, Te = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], F = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
357
- function _e(e) {
358
- const t = e.getUTCFullYear(), r = e.getUTCMonth(), n = e.getUTCDay(), o = e.getUTCDate(), s = e.getUTCHours(), a = e.getUTCMinutes(), c = e.getUTCSeconds(), f = o < 10 ? `0${o}` : `${o}`, i = s < 10 ? `0${s}` : `${s}`, d = a < 10 ? `0${a}` : `${a}`, y = c < 10 ? `0${c}` : `${c}`;
359
- return `${Te[n]}, ${f} ${F[r]} ${t} ${i}:${d}:${y} GMT`;
360
- }
361
- const Ee = new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/), Pe = (e) => {
362
- if (e == null)
363
- return;
364
- if (typeof e != "string")
365
- throw new TypeError("RFC-3339 date-times must be expressed as strings");
366
- const t = Ee.exec(e);
367
- if (!t)
368
- throw new TypeError("Invalid RFC-3339 date-time value");
369
- const [r, n, o, s, a, c, f, i] = t, d = $(b(n)), y = l(o, "month", 1, 12), w = l(s, "day", 1, 31);
370
- return S(d, y, w, { hours: a, minutes: c, seconds: f, fractionalMilliseconds: i });
371
- }, Se = new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/), ke = (e) => {
372
- if (e == null)
373
- return;
374
- if (typeof e != "string")
375
- throw new TypeError("RFC-3339 date-times must be expressed as strings");
376
- const t = Se.exec(e);
377
- if (!t)
378
- throw new TypeError("Invalid RFC-3339 date-time value");
379
- const [r, n, o, s, a, c, f, i, d] = t, y = $(b(n)), w = l(o, "month", 1, 12), x = l(s, "day", 1, 31), h = S(y, w, x, { hours: a, minutes: c, seconds: f, fractionalMilliseconds: i });
380
- return d.toUpperCase() != "Z" && h.setTime(h.getTime() - Fe(d)), h;
381
- }, $e = new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/), xe = new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/), Ae = new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/), He = (e) => {
382
- if (e == null)
383
- return;
384
- if (typeof e != "string")
385
- throw new TypeError("RFC-7231 date-times must be expressed as strings");
386
- let t = $e.exec(e);
387
- if (t) {
388
- const [r, n, o, s, a, c, f, i] = t;
389
- return S($(b(s)), I(o), l(n, "day", 1, 31), { hours: a, minutes: c, seconds: f, fractionalMilliseconds: i });
390
- }
391
- if (t = xe.exec(e), t) {
392
- const [r, n, o, s, a, c, f, i] = t;
393
- return Re(S(Ce(s), I(o), l(n, "day", 1, 31), {
394
- hours: a,
395
- minutes: c,
396
- seconds: f,
397
- fractionalMilliseconds: i
398
- }));
399
- }
400
- if (t = Ae.exec(e), t) {
401
- const [r, n, o, s, a, c, f, i] = t;
402
- return S($(b(i)), I(n), l(o.trimLeft(), "day", 1, 31), { hours: s, minutes: a, seconds: c, fractionalMilliseconds: f });
403
- }
404
- throw new TypeError("Invalid RFC-7231 date-time value");
405
- }, je = (e) => {
406
- if (e == null)
407
- return;
408
- let t;
409
- if (typeof e == "number")
410
- t = e;
411
- else if (typeof e == "string")
412
- t = ye(e);
413
- else if (typeof e == "object" && e.tag === 1)
414
- t = e.value;
415
- else
416
- throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");
417
- if (Number.isNaN(t) || t === 1 / 0 || t === -1 / 0)
418
- throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");
419
- return new Date(Math.round(t * 1e3));
420
- }, S = (e, t, r, n) => {
421
- const o = t - 1;
422
- return De(e, o, r), new Date(Date.UTC(e, o, r, l(n.hours, "hour", 0, 23), l(n.minutes, "minute", 0, 59), l(n.seconds, "seconds", 0, 60), Ne(n.fractionalMilliseconds)));
423
- }, Ce = (e) => {
424
- const t = (/* @__PURE__ */ new Date()).getUTCFullYear(), r = Math.floor(t / 100) * 100 + $(b(e));
425
- return r < t ? r + 100 : r;
426
- }, Me = 50 * 365 * 24 * 60 * 60 * 1e3, Re = (e) => e.getTime() - (/* @__PURE__ */ new Date()).getTime() > Me ? new Date(Date.UTC(e.getUTCFullYear() - 100, e.getUTCMonth(), e.getUTCDate(), e.getUTCHours(), e.getUTCMinutes(), e.getUTCSeconds(), e.getUTCMilliseconds())) : e, I = (e) => {
427
- const t = F.indexOf(e);
428
- if (t < 0)
429
- throw new TypeError(`Invalid month: ${e}`);
430
- return t + 1;
431
- }, Ie = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], De = (e, t, r) => {
432
- let n = Ie[t];
433
- if (t === 1 && Ue(e) && (n = 29), r > n)
434
- throw new TypeError(`Invalid day for ${F[t]} in ${e}: ${r}`);
435
- }, Ue = (e) => e % 4 === 0 && (e % 100 !== 0 || e % 400 === 0), l = (e, t, r, n) => {
436
- const o = ge(b(e));
437
- if (o < r || o > n)
438
- throw new TypeError(`${t} must be between ${r} and ${n}, inclusive`);
439
- return o;
440
- }, Ne = (e) => e == null ? 0 : me("0." + e) * 1e3, Fe = (e) => {
441
- const t = e[0];
442
- let r = 1;
443
- if (t == "+")
444
- r = 1;
445
- else if (t == "-")
446
- r = -1;
447
- else
448
- throw new TypeError(`Offset direction, ${t}, must be "+" or "-"`);
449
- const n = Number(e.substring(1, 3)), o = Number(e.substring(4, 6));
450
- return r * (n * 60 + o) * 60 * 1e3;
451
- }, b = (e) => {
452
- let t = 0;
453
- for (; t < e.length - 1 && e.charAt(t) === "0"; )
454
- t++;
455
- return t === 0 ? e : e.slice(t);
456
- };
457
- export {
458
- G as F,
459
- D as H,
460
- v as a,
461
- je as b,
462
- He as c,
463
- ke as d,
464
- re as e,
465
- ee as f,
466
- _e as g,
467
- ie as h,
468
- L as i,
469
- de as j,
470
- Oe as k,
471
- M as l,
472
- P as m,
473
- Be as n,
474
- Pe as p,
475
- Le as s,
476
- te as t
477
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index--8Zky9Oh.js");exports.AIFill=e.AIFill;exports.AIForm=e.AIForm;exports.AIFormGenerator=e.AIFormGenerator;exports.AISchemaReview=e.AISchemaReview;exports.AITextAssist=e.AITextAssist;exports.AIVisionImport=e.AIVisionImport;exports.ClearFormData=e.ClearFormData;exports.Controls=e.Controls;exports.DynamicComponent=e.DynamicComponent;exports.FormData=e.FormData;exports.FormGenerator=e.FormGenerator;exports.MuiConfig=e.mui;exports.createAIClient=e.createAIClient;exports.defineForm=e.defineForm;exports.formFieldsToSimple=e.formFieldsToSimple;exports.simpleFieldsToFormFields=e.simpleFieldsToFormFields;exports.slug=e.slug;exports.useAIAssist=e.useAIAssist;exports.useForm=e.useForm;
@@ -1,22 +0,0 @@
1
- import { ay as e, az as o, aA as r, aB as i, aC as m, aD as t, aE as F, aF as l, aG as A, aH as n, aI as I, aJ as C, aK as p, aL as d, aM as f, aN as u, aO as D, aP as c, aQ as G } from "./index-BhaKvHkU.mjs";
2
- export {
3
- e as AIFill,
4
- o as AIForm,
5
- r as AIFormGenerator,
6
- i as AISchemaReview,
7
- m as AITextAssist,
8
- t as AIVisionImport,
9
- F as ClearFormData,
10
- l as Controls,
11
- A as DynamicComponent,
12
- n as FormData,
13
- I as FormGenerator,
14
- C as MuiConfig,
15
- p as createAIClient,
16
- d as defineForm,
17
- f as formFieldsToSimple,
18
- u as simpleFieldsToFormFields,
19
- D as slug,
20
- c as useAIAssist,
21
- G as useForm
22
- };