@sme.up/ketchup2 2.0.0-SNAPSHOT-20250714085918 → 2.0.0-SNAPSHOT-20250714090237
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/assets/svg/list.svg +1 -0
- package/dist/basic-components/cell/cell.d.ts.map +1 -1
- package/dist/components/input-panel/assets/data.d.ts.map +1 -1
- package/dist/ketchup2.cjs.js +9 -9
- package/dist/ketchup2.es.js +549 -535
- package/dist/types/data-structures.d.ts +1 -0
- package/dist/types/data-structures.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/ketchup2.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as He from "react";
|
|
2
|
-
import rt, { useState as G, useRef as ue, useEffect as ne, useCallback as fe, useLayoutEffect as Fn, useId as
|
|
2
|
+
import rt, { useState as G, useRef as ue, useEffect as ne, useCallback as fe, useLayoutEffect as Fn, useId as Se, useMemo as Vn, createElement as Un } from "react";
|
|
3
3
|
import { createPortal as Wn } from "react-dom";
|
|
4
4
|
var qe = { exports: {} }, Fe = {};
|
|
5
5
|
/**
|
|
@@ -58,7 +58,7 @@ function Bn() {
|
|
|
58
58
|
return "Profiler";
|
|
59
59
|
case S:
|
|
60
60
|
return "StrictMode";
|
|
61
|
-
case
|
|
61
|
+
case g:
|
|
62
62
|
return "Suspense";
|
|
63
63
|
case L:
|
|
64
64
|
return "SuspenseList";
|
|
@@ -101,11 +101,11 @@ function Bn() {
|
|
|
101
101
|
}
|
|
102
102
|
if (v) {
|
|
103
103
|
v = console;
|
|
104
|
-
var $ = v.error,
|
|
104
|
+
var $ = v.error, I = typeof Symbol == "function" && Symbol.toStringTag && h[Symbol.toStringTag] || h.constructor.name || "Object";
|
|
105
105
|
return $.call(
|
|
106
106
|
v,
|
|
107
107
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
108
|
-
|
|
108
|
+
I
|
|
109
109
|
), e(h);
|
|
110
110
|
}
|
|
111
111
|
}
|
|
@@ -152,12 +152,12 @@ function Bn() {
|
|
|
152
152
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
153
153
|
)), h = this.props.ref, h !== void 0 ? h : null;
|
|
154
154
|
}
|
|
155
|
-
function c(h, v, $,
|
|
156
|
-
return $ =
|
|
157
|
-
$$typeof:
|
|
155
|
+
function c(h, v, $, I, _, A, V, U) {
|
|
156
|
+
return $ = A.ref, h = {
|
|
157
|
+
$$typeof: y,
|
|
158
158
|
type: h,
|
|
159
159
|
key: v,
|
|
160
|
-
props:
|
|
160
|
+
props: A,
|
|
161
161
|
_owner: _
|
|
162
162
|
}, ($ !== void 0 ? $ : null) !== null ? Object.defineProperty(h, "ref", {
|
|
163
163
|
enumerable: !1,
|
|
@@ -184,13 +184,13 @@ function Bn() {
|
|
|
184
184
|
value: U
|
|
185
185
|
}), Object.freeze && (Object.freeze(h.props), Object.freeze(h)), h;
|
|
186
186
|
}
|
|
187
|
-
function f(h, v, $,
|
|
187
|
+
function f(h, v, $, I, _, A, V, U) {
|
|
188
188
|
var W = v.children;
|
|
189
189
|
if (W !== void 0)
|
|
190
|
-
if (
|
|
190
|
+
if (I)
|
|
191
191
|
if (P(W)) {
|
|
192
|
-
for (
|
|
193
|
-
u(W[
|
|
192
|
+
for (I = 0; I < W.length; I++)
|
|
193
|
+
u(W[I]);
|
|
194
194
|
Object.freeze && Object.freeze(W);
|
|
195
195
|
} else
|
|
196
196
|
console.error(
|
|
@@ -202,18 +202,18 @@ function Bn() {
|
|
|
202
202
|
var J = Object.keys(v).filter(function(se) {
|
|
203
203
|
return se !== "key";
|
|
204
204
|
});
|
|
205
|
-
|
|
205
|
+
I = 0 < J.length ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}", F[W + I] || (J = 0 < J.length ? "{" + J.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
206
206
|
`A props object containing a "key" prop is being spread into JSX:
|
|
207
207
|
let props = %s;
|
|
208
208
|
<%s {...props} />
|
|
209
209
|
React keys must be passed directly to JSX without using spread:
|
|
210
210
|
let props = %s;
|
|
211
211
|
<%s key={someKey} {...props} />`,
|
|
212
|
-
|
|
212
|
+
I,
|
|
213
213
|
W,
|
|
214
214
|
J,
|
|
215
215
|
W
|
|
216
|
-
), F[W +
|
|
216
|
+
), F[W + I] = !0);
|
|
217
217
|
}
|
|
218
218
|
if (W = null, $ !== void 0 && (t($), W = "" + $), i(v) && (t(v.key), W = "" + v.key), "key" in v) {
|
|
219
219
|
$ = {};
|
|
@@ -226,7 +226,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
226
226
|
), c(
|
|
227
227
|
h,
|
|
228
228
|
W,
|
|
229
|
-
|
|
229
|
+
A,
|
|
230
230
|
_,
|
|
231
231
|
s(),
|
|
232
232
|
$,
|
|
@@ -235,9 +235,9 @@ React keys must be passed directly to JSX without using spread:
|
|
|
235
235
|
);
|
|
236
236
|
}
|
|
237
237
|
function u(h) {
|
|
238
|
-
typeof h == "object" && h !== null && h.$$typeof ===
|
|
238
|
+
typeof h == "object" && h !== null && h.$$typeof === y && h._store && (h._store.validated = 1);
|
|
239
239
|
}
|
|
240
|
-
var p = rt,
|
|
240
|
+
var p = rt, y = Symbol.for("react.transitional.element"), d = Symbol.for("react.portal"), w = Symbol.for("react.fragment"), S = Symbol.for("react.strict_mode"), E = Symbol.for("react.profiler"), b = Symbol.for("react.consumer"), C = Symbol.for("react.context"), x = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), L = Symbol.for("react.suspense_list"), j = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), k = Symbol.for("react.activity"), R = Symbol.for("react.client.reference"), D = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, T = Object.prototype.hasOwnProperty, P = Array.isArray, N = console.createTask ? console.createTask : function() {
|
|
241
241
|
return null;
|
|
242
242
|
};
|
|
243
243
|
p = {
|
|
@@ -249,29 +249,29 @@ React keys must be passed directly to JSX without using spread:
|
|
|
249
249
|
p,
|
|
250
250
|
a
|
|
251
251
|
)(), Z = N(r(a)), F = {};
|
|
252
|
-
Ve.Fragment = w, Ve.jsx = function(h, v, $,
|
|
253
|
-
var
|
|
252
|
+
Ve.Fragment = w, Ve.jsx = function(h, v, $, I, _) {
|
|
253
|
+
var A = 1e4 > D.recentlyCreatedOwnerStacks++;
|
|
254
254
|
return f(
|
|
255
255
|
h,
|
|
256
256
|
v,
|
|
257
257
|
$,
|
|
258
258
|
!1,
|
|
259
|
-
|
|
259
|
+
I,
|
|
260
260
|
_,
|
|
261
|
-
|
|
262
|
-
|
|
261
|
+
A ? Error("react-stack-top-frame") : z,
|
|
262
|
+
A ? N(r(h)) : Z
|
|
263
263
|
);
|
|
264
|
-
}, Ve.jsxs = function(h, v, $,
|
|
265
|
-
var
|
|
264
|
+
}, Ve.jsxs = function(h, v, $, I, _) {
|
|
265
|
+
var A = 1e4 > D.recentlyCreatedOwnerStacks++;
|
|
266
266
|
return f(
|
|
267
267
|
h,
|
|
268
268
|
v,
|
|
269
269
|
$,
|
|
270
270
|
!0,
|
|
271
|
-
|
|
271
|
+
I,
|
|
272
272
|
_,
|
|
273
|
-
|
|
274
|
-
|
|
273
|
+
A ? Error("react-stack-top-frame") : z,
|
|
274
|
+
A ? N(r(h)) : Z
|
|
275
275
|
);
|
|
276
276
|
};
|
|
277
277
|
}()), Ve;
|
|
@@ -383,10 +383,10 @@ function zn() {
|
|
|
383
383
|
function i(u) {
|
|
384
384
|
if (!u || typeof u != "object")
|
|
385
385
|
throw new TypeError("argument obj is required");
|
|
386
|
-
var p = u.parameters,
|
|
387
|
-
if (!
|
|
386
|
+
var p = u.parameters, y = u.type;
|
|
387
|
+
if (!y || !a.test(y))
|
|
388
388
|
throw new TypeError("invalid type");
|
|
389
|
-
var d =
|
|
389
|
+
var d = y;
|
|
390
390
|
if (p && typeof p == "object")
|
|
391
391
|
for (var w, S = Object.keys(p).sort(), E = 0; E < S.length; E++) {
|
|
392
392
|
if (w = S[E], !t.test(w))
|
|
@@ -401,18 +401,18 @@ function zn() {
|
|
|
401
401
|
var p = typeof u == "object" ? l(u) : u;
|
|
402
402
|
if (typeof p != "string")
|
|
403
403
|
throw new TypeError("argument string is required to be a string");
|
|
404
|
-
var
|
|
404
|
+
var y = p.indexOf(";"), d = y !== -1 ? p.slice(0, y).trim() : p.trim();
|
|
405
405
|
if (!a.test(d))
|
|
406
406
|
throw new TypeError("invalid media type");
|
|
407
407
|
var w = new f(d.toLowerCase());
|
|
408
|
-
if (
|
|
408
|
+
if (y !== -1) {
|
|
409
409
|
var S, E, b;
|
|
410
|
-
for (n.lastIndex =
|
|
411
|
-
if (E.index !==
|
|
410
|
+
for (n.lastIndex = y; E = n.exec(p); ) {
|
|
411
|
+
if (E.index !== y)
|
|
412
412
|
throw new TypeError("invalid parameter format");
|
|
413
|
-
|
|
413
|
+
y += E[0].length, S = E[1].toLowerCase(), b = E[2], b.charCodeAt(0) === 34 && (b = b.slice(1, -1), b.indexOf("\\") !== -1 && (b = b.replace(r, "$1"))), w.parameters[S] = b;
|
|
414
414
|
}
|
|
415
|
-
if (
|
|
415
|
+
if (y !== p.length)
|
|
416
416
|
throw new TypeError("invalid parameter format");
|
|
417
417
|
}
|
|
418
418
|
return w;
|
|
@@ -467,17 +467,17 @@ var Jn = zn(), Pe = /* @__PURE__ */ new Map(), _n = function(e) {
|
|
|
467
467
|
throw o;
|
|
468
468
|
}
|
|
469
469
|
}, s.open("GET", e), s.withCredentials = t, s.overrideMimeType && s.overrideMimeType("text/xml"), s.send();
|
|
470
|
-
},
|
|
471
|
-
|
|
470
|
+
}, we = {}, Bt = function(e, t) {
|
|
471
|
+
we[e] = we[e] || [], we[e].push(t);
|
|
472
472
|
}, Xn = function(e) {
|
|
473
473
|
for (var t = function(i, o) {
|
|
474
474
|
setTimeout(function() {
|
|
475
|
-
if (Array.isArray(
|
|
476
|
-
var l = Pe.get(e), c =
|
|
477
|
-
l instanceof SVGSVGElement && c(null, _n(l)), l instanceof Error && c(l), i ===
|
|
475
|
+
if (Array.isArray(we[e])) {
|
|
476
|
+
var l = Pe.get(e), c = we[e][i];
|
|
477
|
+
l instanceof SVGSVGElement && c(null, _n(l)), l instanceof Error && c(l), i === we[e].length - 1 && delete we[e];
|
|
478
478
|
}
|
|
479
479
|
}, 0);
|
|
480
|
-
}, r = 0, s =
|
|
480
|
+
}, r = 0, s = we[e].length; r < s; r++)
|
|
481
481
|
t(r);
|
|
482
482
|
}, Zn = function(e, t, r) {
|
|
483
483
|
if (Pe.has(e)) {
|
|
@@ -521,8 +521,8 @@ var Jn = zn(), Pe = /* @__PURE__ */ new Map(), _n = function(e) {
|
|
|
521
521
|
}
|
|
522
522
|
var p = e.getAttribute("id");
|
|
523
523
|
p && u.setAttribute("id", p);
|
|
524
|
-
var
|
|
525
|
-
|
|
524
|
+
var y = e.getAttribute("title");
|
|
525
|
+
y && u.setAttribute("title", y);
|
|
526
526
|
var d = e.getAttribute("width");
|
|
527
527
|
d && u.setAttribute("width", d);
|
|
528
528
|
var w = e.getAttribute("height");
|
|
@@ -548,27 +548,27 @@ var Jn = zn(), Pe = /* @__PURE__ */ new Map(), _n = function(e) {
|
|
|
548
548
|
path: [],
|
|
549
549
|
pattern: ["fill", "stroke"],
|
|
550
550
|
radialGradient: ["fill", "stroke"]
|
|
551
|
-
}, x,
|
|
551
|
+
}, x, g, L, j, O;
|
|
552
552
|
Object.keys(C).forEach(function(Z) {
|
|
553
|
-
x = Z, L = C[Z],
|
|
554
|
-
for (var F = function(
|
|
555
|
-
j =
|
|
556
|
-
var
|
|
553
|
+
x = Z, L = C[Z], g = u.querySelectorAll(x + "[id]");
|
|
554
|
+
for (var F = function(I, _) {
|
|
555
|
+
j = g[I].id, O = j + "-" + tr();
|
|
556
|
+
var A;
|
|
557
557
|
Array.prototype.forEach.call(L, function(Y) {
|
|
558
|
-
|
|
559
|
-
for (var X = 0, re =
|
|
560
|
-
var ae =
|
|
561
|
-
ae && !ae.match(new RegExp('url\\("?#' + j + '"?\\)')) ||
|
|
558
|
+
A = u.querySelectorAll("[" + Y + '*="' + j + '"]');
|
|
559
|
+
for (var X = 0, re = A.length; X < re; X++) {
|
|
560
|
+
var ae = A[X].getAttribute(Y);
|
|
561
|
+
ae && !ae.match(new RegExp('url\\("?#' + j + '"?\\)')) || A[X].setAttribute(Y, "url(#" + O + ")");
|
|
562
562
|
}
|
|
563
563
|
});
|
|
564
564
|
for (var V = u.querySelectorAll("[*|href]"), U = [], W = 0, J = V.length; W < J; W++) {
|
|
565
565
|
var q = V[W].getAttributeNS(yt, "href");
|
|
566
|
-
q && q.toString() === "#" +
|
|
566
|
+
q && q.toString() === "#" + g[I].id && U.push(V[W]);
|
|
567
567
|
}
|
|
568
568
|
for (var se = 0, M = U.length; se < M; se++)
|
|
569
569
|
U[se].setAttributeNS(yt, "href", "#" + O);
|
|
570
|
-
|
|
571
|
-
}, h = 0, v =
|
|
570
|
+
g[I].id = O;
|
|
571
|
+
}, h = 0, v = g.length; h < v; h++)
|
|
572
572
|
F(h);
|
|
573
573
|
});
|
|
574
574
|
}
|
|
@@ -593,16 +593,16 @@ var Jn = zn(), Pe = /* @__PURE__ */ new Map(), _n = function(e) {
|
|
|
593
593
|
var r = t === void 0 ? {} : t, s = r.afterAll, a = s === void 0 ? function() {
|
|
594
594
|
} : s, i = r.afterEach, o = i === void 0 ? function() {
|
|
595
595
|
} : i, l = r.beforeEach, c = l === void 0 ? function() {
|
|
596
|
-
} : l, f = r.cacheRequests, u = f === void 0 ? !0 : f, p = r.evalScripts,
|
|
596
|
+
} : l, f = r.cacheRequests, u = f === void 0 ? !0 : f, p = r.evalScripts, y = p === void 0 ? "never" : p, d = r.httpRequestWithCredentials, w = d === void 0 ? !1 : d, S = r.renumerateIRIElements, E = S === void 0 ? !0 : S;
|
|
597
597
|
if (e && "length" in e)
|
|
598
598
|
for (var b = 0, C = 0, x = e.length; C < x; C++)
|
|
599
|
-
Ht(e[C],
|
|
600
|
-
o(
|
|
599
|
+
Ht(e[C], y, E, u, w, c, function(g, L) {
|
|
600
|
+
o(g, L), e && "length" in e && e.length === ++b && a(b);
|
|
601
601
|
});
|
|
602
|
-
else e ? Ht(e,
|
|
603
|
-
o(
|
|
602
|
+
else e ? Ht(e, y, E, u, w, c, function(g, L) {
|
|
603
|
+
o(g, L), a(1), e = null;
|
|
604
604
|
}) : a(0);
|
|
605
|
-
}, ze = { exports: {} }, Je = { exports: {} },
|
|
605
|
+
}, ze = { exports: {} }, Je = { exports: {} }, ee = {};
|
|
606
606
|
/** @license React v16.13.1
|
|
607
607
|
* react-is.production.min.js
|
|
608
608
|
*
|
|
@@ -613,30 +613,30 @@ var Jn = zn(), Pe = /* @__PURE__ */ new Map(), _n = function(e) {
|
|
|
613
613
|
*/
|
|
614
614
|
var qt;
|
|
615
615
|
function sr() {
|
|
616
|
-
if (qt) return
|
|
616
|
+
if (qt) return ee;
|
|
617
617
|
qt = 1;
|
|
618
|
-
var n = typeof Symbol == "function" && Symbol.for, e = n ? Symbol.for("react.element") : 60103, t = n ? Symbol.for("react.portal") : 60106, r = n ? Symbol.for("react.fragment") : 60107, s = n ? Symbol.for("react.strict_mode") : 60108, a = n ? Symbol.for("react.profiler") : 60114, i = n ? Symbol.for("react.provider") : 60109, o = n ? Symbol.for("react.context") : 60110, l = n ? Symbol.for("react.async_mode") : 60111, c = n ? Symbol.for("react.concurrent_mode") : 60111, f = n ? Symbol.for("react.forward_ref") : 60112, u = n ? Symbol.for("react.suspense") : 60113, p = n ? Symbol.for("react.suspense_list") : 60120,
|
|
619
|
-
function C(
|
|
620
|
-
if (typeof
|
|
621
|
-
var L =
|
|
618
|
+
var n = typeof Symbol == "function" && Symbol.for, e = n ? Symbol.for("react.element") : 60103, t = n ? Symbol.for("react.portal") : 60106, r = n ? Symbol.for("react.fragment") : 60107, s = n ? Symbol.for("react.strict_mode") : 60108, a = n ? Symbol.for("react.profiler") : 60114, i = n ? Symbol.for("react.provider") : 60109, o = n ? Symbol.for("react.context") : 60110, l = n ? Symbol.for("react.async_mode") : 60111, c = n ? Symbol.for("react.concurrent_mode") : 60111, f = n ? Symbol.for("react.forward_ref") : 60112, u = n ? Symbol.for("react.suspense") : 60113, p = n ? Symbol.for("react.suspense_list") : 60120, y = n ? Symbol.for("react.memo") : 60115, d = n ? Symbol.for("react.lazy") : 60116, w = n ? Symbol.for("react.block") : 60121, S = n ? Symbol.for("react.fundamental") : 60117, E = n ? Symbol.for("react.responder") : 60118, b = n ? Symbol.for("react.scope") : 60119;
|
|
619
|
+
function C(g) {
|
|
620
|
+
if (typeof g == "object" && g !== null) {
|
|
621
|
+
var L = g.$$typeof;
|
|
622
622
|
switch (L) {
|
|
623
623
|
case e:
|
|
624
|
-
switch (
|
|
624
|
+
switch (g = g.type, g) {
|
|
625
625
|
case l:
|
|
626
626
|
case c:
|
|
627
627
|
case r:
|
|
628
628
|
case a:
|
|
629
629
|
case s:
|
|
630
630
|
case u:
|
|
631
|
-
return
|
|
631
|
+
return g;
|
|
632
632
|
default:
|
|
633
|
-
switch (
|
|
633
|
+
switch (g = g && g.$$typeof, g) {
|
|
634
634
|
case o:
|
|
635
635
|
case f:
|
|
636
636
|
case d:
|
|
637
|
-
case
|
|
637
|
+
case y:
|
|
638
638
|
case i:
|
|
639
|
-
return
|
|
639
|
+
return g;
|
|
640
640
|
default:
|
|
641
641
|
return L;
|
|
642
642
|
}
|
|
@@ -646,38 +646,38 @@ function sr() {
|
|
|
646
646
|
}
|
|
647
647
|
}
|
|
648
648
|
}
|
|
649
|
-
function x(
|
|
650
|
-
return C(
|
|
651
|
-
}
|
|
652
|
-
return
|
|
653
|
-
return x(
|
|
654
|
-
},
|
|
655
|
-
return C(
|
|
656
|
-
},
|
|
657
|
-
return C(
|
|
658
|
-
},
|
|
659
|
-
return typeof
|
|
660
|
-
},
|
|
661
|
-
return C(
|
|
662
|
-
},
|
|
663
|
-
return C(
|
|
664
|
-
},
|
|
665
|
-
return C(
|
|
666
|
-
},
|
|
667
|
-
return C(
|
|
668
|
-
},
|
|
669
|
-
return C(
|
|
670
|
-
},
|
|
671
|
-
return C(
|
|
672
|
-
},
|
|
673
|
-
return C(
|
|
674
|
-
},
|
|
675
|
-
return C(
|
|
676
|
-
},
|
|
677
|
-
return typeof
|
|
678
|
-
},
|
|
649
|
+
function x(g) {
|
|
650
|
+
return C(g) === c;
|
|
651
|
+
}
|
|
652
|
+
return ee.AsyncMode = l, ee.ConcurrentMode = c, ee.ContextConsumer = o, ee.ContextProvider = i, ee.Element = e, ee.ForwardRef = f, ee.Fragment = r, ee.Lazy = d, ee.Memo = y, ee.Portal = t, ee.Profiler = a, ee.StrictMode = s, ee.Suspense = u, ee.isAsyncMode = function(g) {
|
|
653
|
+
return x(g) || C(g) === l;
|
|
654
|
+
}, ee.isConcurrentMode = x, ee.isContextConsumer = function(g) {
|
|
655
|
+
return C(g) === o;
|
|
656
|
+
}, ee.isContextProvider = function(g) {
|
|
657
|
+
return C(g) === i;
|
|
658
|
+
}, ee.isElement = function(g) {
|
|
659
|
+
return typeof g == "object" && g !== null && g.$$typeof === e;
|
|
660
|
+
}, ee.isForwardRef = function(g) {
|
|
661
|
+
return C(g) === f;
|
|
662
|
+
}, ee.isFragment = function(g) {
|
|
663
|
+
return C(g) === r;
|
|
664
|
+
}, ee.isLazy = function(g) {
|
|
665
|
+
return C(g) === d;
|
|
666
|
+
}, ee.isMemo = function(g) {
|
|
667
|
+
return C(g) === y;
|
|
668
|
+
}, ee.isPortal = function(g) {
|
|
669
|
+
return C(g) === t;
|
|
670
|
+
}, ee.isProfiler = function(g) {
|
|
671
|
+
return C(g) === a;
|
|
672
|
+
}, ee.isStrictMode = function(g) {
|
|
673
|
+
return C(g) === s;
|
|
674
|
+
}, ee.isSuspense = function(g) {
|
|
675
|
+
return C(g) === u;
|
|
676
|
+
}, ee.isValidElementType = function(g) {
|
|
677
|
+
return typeof g == "string" || typeof g == "function" || g === r || g === c || g === a || g === s || g === u || g === p || typeof g == "object" && g !== null && (g.$$typeof === d || g.$$typeof === y || g.$$typeof === i || g.$$typeof === o || g.$$typeof === f || g.$$typeof === S || g.$$typeof === E || g.$$typeof === b || g.$$typeof === w);
|
|
678
|
+
}, ee.typeOf = C, ee;
|
|
679
679
|
}
|
|
680
|
-
var
|
|
680
|
+
var te = {};
|
|
681
681
|
/** @license React v16.13.1
|
|
682
682
|
* react-is.development.js
|
|
683
683
|
*
|
|
@@ -689,10 +689,10 @@ var ee = {};
|
|
|
689
689
|
var Kt;
|
|
690
690
|
function ar() {
|
|
691
691
|
return Kt || (Kt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
692
|
-
var n = typeof Symbol == "function" && Symbol.for, e = n ? Symbol.for("react.element") : 60103, t = n ? Symbol.for("react.portal") : 60106, r = n ? Symbol.for("react.fragment") : 60107, s = n ? Symbol.for("react.strict_mode") : 60108, a = n ? Symbol.for("react.profiler") : 60114, i = n ? Symbol.for("react.provider") : 60109, o = n ? Symbol.for("react.context") : 60110, l = n ? Symbol.for("react.async_mode") : 60111, c = n ? Symbol.for("react.concurrent_mode") : 60111, f = n ? Symbol.for("react.forward_ref") : 60112, u = n ? Symbol.for("react.suspense") : 60113, p = n ? Symbol.for("react.suspense_list") : 60120,
|
|
692
|
+
var n = typeof Symbol == "function" && Symbol.for, e = n ? Symbol.for("react.element") : 60103, t = n ? Symbol.for("react.portal") : 60106, r = n ? Symbol.for("react.fragment") : 60107, s = n ? Symbol.for("react.strict_mode") : 60108, a = n ? Symbol.for("react.profiler") : 60114, i = n ? Symbol.for("react.provider") : 60109, o = n ? Symbol.for("react.context") : 60110, l = n ? Symbol.for("react.async_mode") : 60111, c = n ? Symbol.for("react.concurrent_mode") : 60111, f = n ? Symbol.for("react.forward_ref") : 60112, u = n ? Symbol.for("react.suspense") : 60113, p = n ? Symbol.for("react.suspense_list") : 60120, y = n ? Symbol.for("react.memo") : 60115, d = n ? Symbol.for("react.lazy") : 60116, w = n ? Symbol.for("react.block") : 60121, S = n ? Symbol.for("react.fundamental") : 60117, E = n ? Symbol.for("react.responder") : 60118, b = n ? Symbol.for("react.scope") : 60119;
|
|
693
693
|
function C(M) {
|
|
694
694
|
return typeof M == "string" || typeof M == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
695
|
-
M === r || M === c || M === a || M === s || M === u || M === p || typeof M == "object" && M !== null && (M.$$typeof === d || M.$$typeof ===
|
|
695
|
+
M === r || M === c || M === a || M === s || M === u || M === p || typeof M == "object" && M !== null && (M.$$typeof === d || M.$$typeof === y || M.$$typeof === i || M.$$typeof === o || M.$$typeof === f || M.$$typeof === S || M.$$typeof === E || M.$$typeof === b || M.$$typeof === w);
|
|
696
696
|
}
|
|
697
697
|
function x(M) {
|
|
698
698
|
if (typeof M == "object" && M !== null) {
|
|
@@ -714,7 +714,7 @@ function ar() {
|
|
|
714
714
|
case o:
|
|
715
715
|
case f:
|
|
716
716
|
case d:
|
|
717
|
-
case
|
|
717
|
+
case y:
|
|
718
718
|
case i:
|
|
719
719
|
return re;
|
|
720
720
|
default:
|
|
@@ -726,7 +726,7 @@ function ar() {
|
|
|
726
726
|
}
|
|
727
727
|
}
|
|
728
728
|
}
|
|
729
|
-
var
|
|
729
|
+
var g = l, L = c, j = o, O = i, k = e, R = f, D = r, T = d, P = y, N = t, H = a, B = s, z = u, Z = !1;
|
|
730
730
|
function F(M) {
|
|
731
731
|
return Z || (Z = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), h(M) || x(M) === l;
|
|
732
732
|
}
|
|
@@ -739,20 +739,20 @@ function ar() {
|
|
|
739
739
|
function $(M) {
|
|
740
740
|
return x(M) === i;
|
|
741
741
|
}
|
|
742
|
-
function
|
|
742
|
+
function I(M) {
|
|
743
743
|
return typeof M == "object" && M !== null && M.$$typeof === e;
|
|
744
744
|
}
|
|
745
745
|
function _(M) {
|
|
746
746
|
return x(M) === f;
|
|
747
747
|
}
|
|
748
|
-
function
|
|
748
|
+
function A(M) {
|
|
749
749
|
return x(M) === r;
|
|
750
750
|
}
|
|
751
751
|
function V(M) {
|
|
752
752
|
return x(M) === d;
|
|
753
753
|
}
|
|
754
754
|
function U(M) {
|
|
755
|
-
return x(M) ===
|
|
755
|
+
return x(M) === y;
|
|
756
756
|
}
|
|
757
757
|
function W(M) {
|
|
758
758
|
return x(M) === t;
|
|
@@ -766,8 +766,8 @@ function ar() {
|
|
|
766
766
|
function se(M) {
|
|
767
767
|
return x(M) === u;
|
|
768
768
|
}
|
|
769
|
-
|
|
770
|
-
}()),
|
|
769
|
+
te.AsyncMode = g, te.ConcurrentMode = L, te.ContextConsumer = j, te.ContextProvider = O, te.Element = k, te.ForwardRef = R, te.Fragment = D, te.Lazy = T, te.Memo = P, te.Portal = N, te.Profiler = H, te.StrictMode = B, te.Suspense = z, te.isAsyncMode = F, te.isConcurrentMode = h, te.isContextConsumer = v, te.isContextProvider = $, te.isElement = I, te.isForwardRef = _, te.isFragment = A, te.isLazy = V, te.isMemo = U, te.isPortal = W, te.isProfiler = J, te.isStrictMode = q, te.isSuspense = se, te.isValidElementType = C, te.typeOf = x;
|
|
770
|
+
}()), te;
|
|
771
771
|
}
|
|
772
772
|
var zt;
|
|
773
773
|
function Dn() {
|
|
@@ -872,9 +872,9 @@ function ir() {
|
|
|
872
872
|
(l || "React class") + ": type specification of " + o + " `" + f + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof u + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
873
873
|
), u instanceof Error && !(u.message in t)) {
|
|
874
874
|
t[u.message] = !0;
|
|
875
|
-
var
|
|
875
|
+
var y = c ? c() : "";
|
|
876
876
|
n(
|
|
877
|
-
"Failed " + o + " type: " + u.message + (
|
|
877
|
+
"Failed " + o + " type: " + u.message + (y ?? "")
|
|
878
878
|
);
|
|
879
879
|
}
|
|
880
880
|
}
|
|
@@ -908,7 +908,7 @@ function lr() {
|
|
|
908
908
|
if (typeof v == "function")
|
|
909
909
|
return v;
|
|
910
910
|
}
|
|
911
|
-
var p = "<<anonymous>>",
|
|
911
|
+
var p = "<<anonymous>>", y = {
|
|
912
912
|
array: E("array"),
|
|
913
913
|
bigint: E("bigint"),
|
|
914
914
|
bool: E("boolean"),
|
|
@@ -920,7 +920,7 @@ function lr() {
|
|
|
920
920
|
any: b(),
|
|
921
921
|
arrayOf: C,
|
|
922
922
|
element: x(),
|
|
923
|
-
elementType:
|
|
923
|
+
elementType: g(),
|
|
924
924
|
instanceOf: L,
|
|
925
925
|
node: R(),
|
|
926
926
|
objectOf: O,
|
|
@@ -939,7 +939,7 @@ function lr() {
|
|
|
939
939
|
function S(h) {
|
|
940
940
|
if (process.env.NODE_ENV !== "production")
|
|
941
941
|
var v = {}, $ = 0;
|
|
942
|
-
function A
|
|
942
|
+
function I(A, V, U, W, J, q, se) {
|
|
943
943
|
if (W = W || p, q = q || U, se !== t) {
|
|
944
944
|
if (l) {
|
|
945
945
|
var M = new Error(
|
|
@@ -954,18 +954,18 @@ function lr() {
|
|
|
954
954
|
), v[Y] = !0, $++);
|
|
955
955
|
}
|
|
956
956
|
}
|
|
957
|
-
return V[U] == null ?
|
|
957
|
+
return V[U] == null ? A ? V[U] === null ? new w("The " + J + " `" + q + "` is marked as required " + ("in `" + W + "`, but its value is `null`.")) : new w("The " + J + " `" + q + "` is marked as required in " + ("`" + W + "`, but its value is `undefined`.")) : null : h(V, U, W, J, q);
|
|
958
958
|
}
|
|
959
|
-
var _ =
|
|
960
|
-
return _.isRequired =
|
|
959
|
+
var _ = I.bind(null, !1);
|
|
960
|
+
return _.isRequired = I.bind(null, !0), _;
|
|
961
961
|
}
|
|
962
962
|
function E(h) {
|
|
963
|
-
function v($,
|
|
964
|
-
var W = $[
|
|
963
|
+
function v($, I, _, A, V, U) {
|
|
964
|
+
var W = $[I], J = B(W);
|
|
965
965
|
if (J !== h) {
|
|
966
966
|
var q = z(W);
|
|
967
967
|
return new w(
|
|
968
|
-
"Invalid " +
|
|
968
|
+
"Invalid " + A + " `" + V + "` of type " + ("`" + q + "` supplied to `" + _ + "`, expected ") + ("`" + h + "`."),
|
|
969
969
|
{ expectedType: h }
|
|
970
970
|
);
|
|
971
971
|
}
|
|
@@ -977,16 +977,16 @@ function lr() {
|
|
|
977
977
|
return S(i);
|
|
978
978
|
}
|
|
979
979
|
function C(h) {
|
|
980
|
-
function v($,
|
|
980
|
+
function v($, I, _, A, V) {
|
|
981
981
|
if (typeof h != "function")
|
|
982
982
|
return new w("Property `" + V + "` of component `" + _ + "` has invalid PropType notation inside arrayOf.");
|
|
983
|
-
var U = $[
|
|
983
|
+
var U = $[I];
|
|
984
984
|
if (!Array.isArray(U)) {
|
|
985
985
|
var W = B(U);
|
|
986
|
-
return new w("Invalid " +
|
|
986
|
+
return new w("Invalid " + A + " `" + V + "` of type " + ("`" + W + "` supplied to `" + _ + "`, expected an array."));
|
|
987
987
|
}
|
|
988
988
|
for (var J = 0; J < U.length; J++) {
|
|
989
|
-
var q = h(U, J, _,
|
|
989
|
+
var q = h(U, J, _, A, V + "[" + J + "]", t);
|
|
990
990
|
if (q instanceof Error)
|
|
991
991
|
return q;
|
|
992
992
|
}
|
|
@@ -995,32 +995,32 @@ function lr() {
|
|
|
995
995
|
return S(v);
|
|
996
996
|
}
|
|
997
997
|
function x() {
|
|
998
|
-
function h(v, $,
|
|
998
|
+
function h(v, $, I, _, A) {
|
|
999
999
|
var V = v[$];
|
|
1000
1000
|
if (!o(V)) {
|
|
1001
1001
|
var U = B(V);
|
|
1002
|
-
return new w("Invalid " + _ + " `" +
|
|
1002
|
+
return new w("Invalid " + _ + " `" + A + "` of type " + ("`" + U + "` supplied to `" + I + "`, expected a single ReactElement."));
|
|
1003
1003
|
}
|
|
1004
1004
|
return null;
|
|
1005
1005
|
}
|
|
1006
1006
|
return S(h);
|
|
1007
1007
|
}
|
|
1008
|
-
function
|
|
1009
|
-
function h(v, $,
|
|
1008
|
+
function g() {
|
|
1009
|
+
function h(v, $, I, _, A) {
|
|
1010
1010
|
var V = v[$];
|
|
1011
1011
|
if (!n.isValidElementType(V)) {
|
|
1012
1012
|
var U = B(V);
|
|
1013
|
-
return new w("Invalid " + _ + " `" +
|
|
1013
|
+
return new w("Invalid " + _ + " `" + A + "` of type " + ("`" + U + "` supplied to `" + I + "`, expected a single ReactElement type."));
|
|
1014
1014
|
}
|
|
1015
1015
|
return null;
|
|
1016
1016
|
}
|
|
1017
1017
|
return S(h);
|
|
1018
1018
|
}
|
|
1019
1019
|
function L(h) {
|
|
1020
|
-
function v($,
|
|
1021
|
-
if (!($[
|
|
1022
|
-
var U = h.name || p, W = F($[
|
|
1023
|
-
return new w("Invalid " +
|
|
1020
|
+
function v($, I, _, A, V) {
|
|
1021
|
+
if (!($[I] instanceof h)) {
|
|
1022
|
+
var U = h.name || p, W = F($[I]);
|
|
1023
|
+
return new w("Invalid " + A + " `" + V + "` of type " + ("`" + W + "` supplied to `" + _ + "`, expected ") + ("instance of `" + U + "`."));
|
|
1024
1024
|
}
|
|
1025
1025
|
return null;
|
|
1026
1026
|
}
|
|
@@ -1031,28 +1031,28 @@ function lr() {
|
|
|
1031
1031
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
|
|
1032
1032
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
1033
1033
|
) : a("Invalid argument supplied to oneOf, expected an array.")), i;
|
|
1034
|
-
function v($,
|
|
1035
|
-
for (var U = $[
|
|
1034
|
+
function v($, I, _, A, V) {
|
|
1035
|
+
for (var U = $[I], W = 0; W < h.length; W++)
|
|
1036
1036
|
if (d(U, h[W]))
|
|
1037
1037
|
return null;
|
|
1038
1038
|
var J = JSON.stringify(h, function(se, M) {
|
|
1039
1039
|
var Y = z(M);
|
|
1040
1040
|
return Y === "symbol" ? String(M) : M;
|
|
1041
1041
|
});
|
|
1042
|
-
return new w("Invalid " +
|
|
1042
|
+
return new w("Invalid " + A + " `" + V + "` of value `" + String(U) + "` " + ("supplied to `" + _ + "`, expected one of " + J + "."));
|
|
1043
1043
|
}
|
|
1044
1044
|
return S(v);
|
|
1045
1045
|
}
|
|
1046
1046
|
function O(h) {
|
|
1047
|
-
function v($,
|
|
1047
|
+
function v($, I, _, A, V) {
|
|
1048
1048
|
if (typeof h != "function")
|
|
1049
1049
|
return new w("Property `" + V + "` of component `" + _ + "` has invalid PropType notation inside objectOf.");
|
|
1050
|
-
var U = $[
|
|
1050
|
+
var U = $[I], W = B(U);
|
|
1051
1051
|
if (W !== "object")
|
|
1052
|
-
return new w("Invalid " +
|
|
1052
|
+
return new w("Invalid " + A + " `" + V + "` of type " + ("`" + W + "` supplied to `" + _ + "`, expected an object."));
|
|
1053
1053
|
for (var J in U)
|
|
1054
1054
|
if (r(U, J)) {
|
|
1055
|
-
var q = h(U, J, _,
|
|
1055
|
+
var q = h(U, J, _, A, V + "." + J, t);
|
|
1056
1056
|
if (q instanceof Error)
|
|
1057
1057
|
return q;
|
|
1058
1058
|
}
|
|
@@ -1070,9 +1070,9 @@ function lr() {
|
|
|
1070
1070
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + Z($) + " at index " + v + "."
|
|
1071
1071
|
), i;
|
|
1072
1072
|
}
|
|
1073
|
-
function
|
|
1073
|
+
function I(_, A, V, U, W) {
|
|
1074
1074
|
for (var J = [], q = 0; q < h.length; q++) {
|
|
1075
|
-
var se = h[q], M = se(_,
|
|
1075
|
+
var se = h[q], M = se(_, A, V, U, W, t);
|
|
1076
1076
|
if (M == null)
|
|
1077
1077
|
return null;
|
|
1078
1078
|
M.data && r(M.data, "expectedType") && J.push(M.data.expectedType);
|
|
@@ -1080,29 +1080,29 @@ function lr() {
|
|
|
1080
1080
|
var Y = J.length > 0 ? ", expected one of type [" + J.join(", ") + "]" : "";
|
|
1081
1081
|
return new w("Invalid " + U + " `" + W + "` supplied to " + ("`" + V + "`" + Y + "."));
|
|
1082
1082
|
}
|
|
1083
|
-
return S(
|
|
1083
|
+
return S(I);
|
|
1084
1084
|
}
|
|
1085
1085
|
function R() {
|
|
1086
|
-
function h(v, $,
|
|
1087
|
-
return N(v[$]) ? null : new w("Invalid " + _ + " `" +
|
|
1086
|
+
function h(v, $, I, _, A) {
|
|
1087
|
+
return N(v[$]) ? null : new w("Invalid " + _ + " `" + A + "` supplied to " + ("`" + I + "`, expected a ReactNode."));
|
|
1088
1088
|
}
|
|
1089
1089
|
return S(h);
|
|
1090
1090
|
}
|
|
1091
|
-
function D(h, v, $,
|
|
1091
|
+
function D(h, v, $, I, _) {
|
|
1092
1092
|
return new w(
|
|
1093
|
-
(h || "React class") + ": " + v + " type `" + $ + "." +
|
|
1093
|
+
(h || "React class") + ": " + v + " type `" + $ + "." + I + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + _ + "`."
|
|
1094
1094
|
);
|
|
1095
1095
|
}
|
|
1096
1096
|
function T(h) {
|
|
1097
|
-
function v($,
|
|
1098
|
-
var U = $[
|
|
1097
|
+
function v($, I, _, A, V) {
|
|
1098
|
+
var U = $[I], W = B(U);
|
|
1099
1099
|
if (W !== "object")
|
|
1100
|
-
return new w("Invalid " +
|
|
1100
|
+
return new w("Invalid " + A + " `" + V + "` of type `" + W + "` " + ("supplied to `" + _ + "`, expected `object`."));
|
|
1101
1101
|
for (var J in h) {
|
|
1102
1102
|
var q = h[J];
|
|
1103
1103
|
if (typeof q != "function")
|
|
1104
|
-
return D(_,
|
|
1105
|
-
var se = q(U, J, _,
|
|
1104
|
+
return D(_, A, V, J, z(q));
|
|
1105
|
+
var se = q(U, J, _, A, V + "." + J, t);
|
|
1106
1106
|
if (se)
|
|
1107
1107
|
return se;
|
|
1108
1108
|
}
|
|
@@ -1111,21 +1111,21 @@ function lr() {
|
|
|
1111
1111
|
return S(v);
|
|
1112
1112
|
}
|
|
1113
1113
|
function P(h) {
|
|
1114
|
-
function v($,
|
|
1115
|
-
var U = $[
|
|
1114
|
+
function v($, I, _, A, V) {
|
|
1115
|
+
var U = $[I], W = B(U);
|
|
1116
1116
|
if (W !== "object")
|
|
1117
|
-
return new w("Invalid " +
|
|
1118
|
-
var J = e({}, $[
|
|
1117
|
+
return new w("Invalid " + A + " `" + V + "` of type `" + W + "` " + ("supplied to `" + _ + "`, expected `object`."));
|
|
1118
|
+
var J = e({}, $[I], h);
|
|
1119
1119
|
for (var q in J) {
|
|
1120
1120
|
var se = h[q];
|
|
1121
1121
|
if (r(h, q) && typeof se != "function")
|
|
1122
|
-
return D(_,
|
|
1122
|
+
return D(_, A, V, q, z(se));
|
|
1123
1123
|
if (!se)
|
|
1124
1124
|
return new w(
|
|
1125
|
-
"Invalid " +
|
|
1125
|
+
"Invalid " + A + " `" + V + "` key `" + q + "` supplied to `" + _ + "`.\nBad object: " + JSON.stringify($[I], null, " ") + `
|
|
1126
1126
|
Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
1127
1127
|
);
|
|
1128
|
-
var M = se(U, q, _,
|
|
1128
|
+
var M = se(U, q, _, A, V + "." + q, t);
|
|
1129
1129
|
if (M)
|
|
1130
1130
|
return M;
|
|
1131
1131
|
}
|
|
@@ -1148,14 +1148,14 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
|
1148
1148
|
return !0;
|
|
1149
1149
|
var v = u(h);
|
|
1150
1150
|
if (v) {
|
|
1151
|
-
var $ = v.call(h),
|
|
1151
|
+
var $ = v.call(h), I;
|
|
1152
1152
|
if (v !== h.entries) {
|
|
1153
|
-
for (; !(
|
|
1154
|
-
if (!N(
|
|
1153
|
+
for (; !(I = $.next()).done; )
|
|
1154
|
+
if (!N(I.value))
|
|
1155
1155
|
return !1;
|
|
1156
1156
|
} else
|
|
1157
|
-
for (; !(
|
|
1158
|
-
var _ =
|
|
1157
|
+
for (; !(I = $.next()).done; ) {
|
|
1158
|
+
var _ = I.value;
|
|
1159
1159
|
if (_ && !N(_[1]))
|
|
1160
1160
|
return !1;
|
|
1161
1161
|
}
|
|
@@ -1202,7 +1202,7 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
|
1202
1202
|
function F(h) {
|
|
1203
1203
|
return !h.constructor || !h.constructor.name ? p : h.constructor.name;
|
|
1204
1204
|
}
|
|
1205
|
-
return
|
|
1205
|
+
return y.checkPropTypes = s, y.resetWarningCache = s.resetWarningCache, y.PropTypes = y, y;
|
|
1206
1206
|
}, St;
|
|
1207
1207
|
}
|
|
1208
1208
|
var Et, tn;
|
|
@@ -1290,11 +1290,11 @@ var ie = /* @__PURE__ */ ur(), fr = function(e) {
|
|
|
1290
1290
|
return t.renderSVG = function() {
|
|
1291
1291
|
var s = this;
|
|
1292
1292
|
if (this.reactWrapper instanceof fr(this.reactWrapper).Node) {
|
|
1293
|
-
var a = this.props, i = a.desc, o = a.evalScripts, l = a.httpRequestWithCredentials, c = a.renumerateIRIElements, f = a.src, u = a.title, p = a.useRequestCache,
|
|
1293
|
+
var a = this.props, i = a.desc, o = a.evalScripts, l = a.httpRequestWithCredentials, c = a.renumerateIRIElements, f = a.src, u = a.title, p = a.useRequestCache, y = this.props.onError, d = this.props.beforeInjection, w = this.props.afterInjection, S = this.props.wrapper, E, b;
|
|
1294
1294
|
S === "svg" ? (E = document.createElementNS(Xe, S), E.setAttribute("xmlns", Xe), E.setAttribute("xmlns:xlink", rn), b = document.createElementNS(Xe, S)) : (E = document.createElement(S), b = document.createElement(S)), E.appendChild(b), b.dataset.src = f, this.nonReactWrapper = this.reactWrapper.appendChild(E);
|
|
1295
1295
|
var C = function(j) {
|
|
1296
1296
|
if (s.removeSVG(), !s._isMounted) {
|
|
1297
|
-
|
|
1297
|
+
y(j);
|
|
1298
1298
|
return;
|
|
1299
1299
|
}
|
|
1300
1300
|
s.setState(function() {
|
|
@@ -1303,7 +1303,7 @@ var ie = /* @__PURE__ */ ur(), fr = function(e) {
|
|
|
1303
1303
|
isLoading: !1
|
|
1304
1304
|
};
|
|
1305
1305
|
}, function() {
|
|
1306
|
-
|
|
1306
|
+
y(j);
|
|
1307
1307
|
});
|
|
1308
1308
|
}, x = function(j, O) {
|
|
1309
1309
|
if (j) {
|
|
@@ -1321,7 +1321,7 @@ var ie = /* @__PURE__ */ ur(), fr = function(e) {
|
|
|
1321
1321
|
C(k);
|
|
1322
1322
|
}
|
|
1323
1323
|
});
|
|
1324
|
-
},
|
|
1324
|
+
}, g = function(j) {
|
|
1325
1325
|
if (j.setAttribute("role", "img"), i) {
|
|
1326
1326
|
var O = j.querySelector(":scope > desc");
|
|
1327
1327
|
O && j.removeChild(O);
|
|
@@ -1342,7 +1342,7 @@ var ie = /* @__PURE__ */ ur(), fr = function(e) {
|
|
|
1342
1342
|
};
|
|
1343
1343
|
rr(b, {
|
|
1344
1344
|
afterEach: x,
|
|
1345
|
-
beforeEach:
|
|
1345
|
+
beforeEach: g,
|
|
1346
1346
|
cacheRequests: p,
|
|
1347
1347
|
evalScripts: o,
|
|
1348
1348
|
httpRequestWithCredentials: l,
|
|
@@ -1436,15 +1436,15 @@ const ta = (n) => {
|
|
|
1436
1436
|
title: u,
|
|
1437
1437
|
tabIndex: p
|
|
1438
1438
|
}) => {
|
|
1439
|
-
const [
|
|
1439
|
+
const [y, d] = G(!1), w = (R) => R?.toLowerCase().endsWith(".svg") || !R?.includes("/"), S = (R) => R?.startsWith("http") || R?.startsWith("/"), E = {
|
|
1440
1440
|
img: `${c ? "smp-image-interactable" : ""}`,
|
|
1441
1441
|
svg: `smp-icon ${i ? `smp-icon-${i}` : ""} ${o ? "smp-icon-rotated" : ""} ${c ? "smp-icon-interactable" : ""} ${f ? "smp-icon-spin" : ""}`
|
|
1442
1442
|
}, b = (R) => {
|
|
1443
1443
|
!a && c && l && l(R);
|
|
1444
1444
|
}, C = (R) => {
|
|
1445
1445
|
!a && c && (R.key === "Enter" || R.key === " ") && (R.preventDefault(), b(R));
|
|
1446
|
-
}, x =
|
|
1447
|
-
return
|
|
1446
|
+
}, x = y ? r : n, g = w(x), j = S(x) ? x : hr(`assets/svg/${x}`);
|
|
1447
|
+
return g ? /* @__PURE__ */ m.jsx(
|
|
1448
1448
|
kt,
|
|
1449
1449
|
{
|
|
1450
1450
|
src: j,
|
|
@@ -1488,7 +1488,7 @@ const ta = (n) => {
|
|
|
1488
1488
|
primary: "onPrimary",
|
|
1489
1489
|
danger: "onDanger",
|
|
1490
1490
|
base: "base"
|
|
1491
|
-
})[n],
|
|
1491
|
+
})[n], xe = ({
|
|
1492
1492
|
bindValue: n,
|
|
1493
1493
|
onClick: e,
|
|
1494
1494
|
ariaLabel: t,
|
|
@@ -1502,7 +1502,7 @@ const ta = (n) => {
|
|
|
1502
1502
|
showText: f = !0,
|
|
1503
1503
|
fullWidth: u = !1,
|
|
1504
1504
|
loading: p = !1,
|
|
1505
|
-
justify:
|
|
1505
|
+
justify: y = "center",
|
|
1506
1506
|
title: d,
|
|
1507
1507
|
optionalDisplayValue: w,
|
|
1508
1508
|
squared: S = !1,
|
|
@@ -1511,7 +1511,7 @@ const ta = (n) => {
|
|
|
1511
1511
|
buttonExt: C
|
|
1512
1512
|
}) => {
|
|
1513
1513
|
const x = {
|
|
1514
|
-
container: `smp-button smp-button-container ${i ? `smp-button-${i}` : ""} ${o ? `smp-buttonVariant-${o}` : ""} ${l ? `smp-buttonType-${l}` : ""} ${u ? "smp-button-fullWidth" : ""} smp-justifyContent-${
|
|
1514
|
+
container: `smp-button smp-button-container ${i ? `smp-button-${i}` : ""} ${o ? `smp-buttonVariant-${o}` : ""} ${l ? `smp-buttonType-${l}` : ""} ${u ? "smp-button-fullWidth" : ""} smp-justifyContent-${y} ${S && !f ? "smp-button-squared" : ""} ${b ? "smp-buttonActive" : ""} ${C ? `smp-buttonExt-${C}` : ""}`
|
|
1515
1515
|
};
|
|
1516
1516
|
return /* @__PURE__ */ m.jsx(
|
|
1517
1517
|
"button",
|
|
@@ -1607,15 +1607,15 @@ const ta = (n) => {
|
|
|
1607
1607
|
scrollButtonRight: `${be["smp-tabbar-scroll-button"]} ${be["smp-tabbar-scroll-buttonRight"]}`,
|
|
1608
1608
|
scrollButtonLeft: `${be["smp-tabbar-scroll-button"]} ${be["smp-tabbar-scroll-buttonLeft"]}`,
|
|
1609
1609
|
active: be["smp-active"]
|
|
1610
|
-
},
|
|
1610
|
+
}, y = 100, d = 2, w = () => {
|
|
1611
1611
|
const b = u.current;
|
|
1612
1612
|
b && (l(b.scrollLeft > 0), f(
|
|
1613
1613
|
b.scrollLeft + b.clientWidth < b.scrollWidth - d
|
|
1614
1614
|
));
|
|
1615
1615
|
}, S = () => {
|
|
1616
|
-
u.current?.scrollBy({ left: -
|
|
1616
|
+
u.current?.scrollBy({ left: -y, behavior: "smooth" });
|
|
1617
1617
|
}, E = () => {
|
|
1618
|
-
u.current?.scrollBy({ left:
|
|
1618
|
+
u.current?.scrollBy({ left: y, behavior: "smooth" });
|
|
1619
1619
|
};
|
|
1620
1620
|
return /* @__PURE__ */ m.jsxs(
|
|
1621
1621
|
"div",
|
|
@@ -1625,7 +1625,7 @@ const ta = (n) => {
|
|
|
1625
1625
|
"data-component": "tab-bar",
|
|
1626
1626
|
children: [
|
|
1627
1627
|
o && /* @__PURE__ */ m.jsx("div", { className: p.scrollButtonLeft, children: /* @__PURE__ */ m.jsx(
|
|
1628
|
-
|
|
1628
|
+
xe,
|
|
1629
1629
|
{
|
|
1630
1630
|
bindValue: "",
|
|
1631
1631
|
optionalDisplayValue: "<",
|
|
@@ -1675,7 +1675,7 @@ const ta = (n) => {
|
|
|
1675
1675
|
C
|
|
1676
1676
|
)) }) }),
|
|
1677
1677
|
c && /* @__PURE__ */ m.jsx("div", { className: p.scrollButtonRight, children: /* @__PURE__ */ m.jsx(
|
|
1678
|
-
|
|
1678
|
+
xe,
|
|
1679
1679
|
{
|
|
1680
1680
|
bindValue: "",
|
|
1681
1681
|
optionalDisplayValue: ">",
|
|
@@ -1745,7 +1745,7 @@ const ta = (n) => {
|
|
|
1745
1745
|
className: c[d.id].classes,
|
|
1746
1746
|
style: c[d.id].styles,
|
|
1747
1747
|
children: d.sections?.length ? d.sections.map((E) => p(E)) : d.content?.map(
|
|
1748
|
-
(E) =>
|
|
1748
|
+
(E) => y(E, d.justify, d.align)
|
|
1749
1749
|
)
|
|
1750
1750
|
},
|
|
1751
1751
|
`section-${d.id}`
|
|
@@ -1767,7 +1767,7 @@ const ta = (n) => {
|
|
|
1767
1767
|
},
|
|
1768
1768
|
`title-section-${d.id}`
|
|
1769
1769
|
) : S;
|
|
1770
|
-
},
|
|
1770
|
+
}, y = (d, w, S) => {
|
|
1771
1771
|
const E = s[d.id];
|
|
1772
1772
|
if (!E) return null;
|
|
1773
1773
|
const C = {
|
|
@@ -1807,7 +1807,7 @@ const ta = (n) => {
|
|
|
1807
1807
|
),
|
|
1808
1808
|
e.sectionsType ? p(o[t], !0) : o.map((d) => p(d))
|
|
1809
1809
|
] });
|
|
1810
|
-
},
|
|
1810
|
+
}, Q = {
|
|
1811
1811
|
AUTOCOMPLETE: "ACP",
|
|
1812
1812
|
BUTTON_LIST: "BTL",
|
|
1813
1813
|
BUTTON: "BTN",
|
|
@@ -1821,6 +1821,7 @@ const ta = (n) => {
|
|
|
1821
1821
|
INPUT_NUMBER: "INR",
|
|
1822
1822
|
MEMO: "MEM",
|
|
1823
1823
|
MULTI_AUTOCOMPLETE: "AML",
|
|
1824
|
+
MULTI_CONFIG: "CFM",
|
|
1824
1825
|
RADIO: "RAD",
|
|
1825
1826
|
SPOTLIGHT: "SPL",
|
|
1826
1827
|
SWITCH: "SWT",
|
|
@@ -1994,36 +1995,36 @@ function dt({
|
|
|
1994
1995
|
if (!o || !l) return;
|
|
1995
1996
|
const { top: c, left: f, width: u, height: p } = o.getBoundingClientRect();
|
|
1996
1997
|
a(u);
|
|
1997
|
-
const
|
|
1998
|
-
if (d === 0 ||
|
|
1998
|
+
const y = l.offsetHeight, d = l.offsetWidth;
|
|
1999
|
+
if (d === 0 || y === 0) {
|
|
1999
2000
|
requestAnimationFrame(i);
|
|
2000
2001
|
return;
|
|
2001
2002
|
}
|
|
2002
2003
|
const w = window.scrollY, S = window.scrollX, E = window.innerWidth, b = window.innerHeight;
|
|
2003
|
-
let C = c + w, x = f + S,
|
|
2004
|
+
let C = c + w, x = f + S, g = n;
|
|
2004
2005
|
const L = {
|
|
2005
|
-
top: c -
|
|
2006
|
-
bottom: c + p +
|
|
2006
|
+
top: c - y < 0,
|
|
2007
|
+
bottom: c + p + y > b,
|
|
2007
2008
|
left: f - d < 0,
|
|
2008
2009
|
right: f + u + d > E
|
|
2009
2010
|
};
|
|
2010
2011
|
switch (n) {
|
|
2011
2012
|
case "top":
|
|
2012
|
-
L.top && !L.bottom && (
|
|
2013
|
+
L.top && !L.bottom && (g = "bottom");
|
|
2013
2014
|
break;
|
|
2014
2015
|
case "bottom":
|
|
2015
|
-
L.bottom && !L.top && (
|
|
2016
|
+
L.bottom && !L.top && (g = "top");
|
|
2016
2017
|
break;
|
|
2017
2018
|
case "left":
|
|
2018
|
-
L.left && !L.right && (
|
|
2019
|
+
L.left && !L.right && (g = "right");
|
|
2019
2020
|
break;
|
|
2020
2021
|
case "right":
|
|
2021
|
-
L.right && !L.left && (
|
|
2022
|
+
L.right && !L.left && (g = "left");
|
|
2022
2023
|
break;
|
|
2023
2024
|
}
|
|
2024
|
-
switch (
|
|
2025
|
+
switch (g) {
|
|
2025
2026
|
case "top":
|
|
2026
|
-
C = c + w -
|
|
2027
|
+
C = c + w - y;
|
|
2027
2028
|
break;
|
|
2028
2029
|
case "bottom":
|
|
2029
2030
|
C = c + w + p;
|
|
@@ -2037,7 +2038,7 @@ function dt({
|
|
|
2037
2038
|
}
|
|
2038
2039
|
C = Math.max(
|
|
2039
2040
|
w,
|
|
2040
|
-
Math.min(C, w + b -
|
|
2041
|
+
Math.min(C, w + b - y)
|
|
2041
2042
|
), x = Math.max(
|
|
2042
2043
|
S,
|
|
2043
2044
|
Math.min(x, S + E - d)
|
|
@@ -2114,7 +2115,7 @@ const Re = (n, e, t) => {
|
|
|
2114
2115
|
rotatedShapeIcon: f = !1,
|
|
2115
2116
|
ref: u,
|
|
2116
2117
|
inputRef: p,
|
|
2117
|
-
inputType:
|
|
2118
|
+
inputType: y = "text",
|
|
2118
2119
|
ariaLabel: d = "input field",
|
|
2119
2120
|
label: w,
|
|
2120
2121
|
helperText: S = !1,
|
|
@@ -2122,7 +2123,7 @@ const Re = (n, e, t) => {
|
|
|
2122
2123
|
appearance: b = "base",
|
|
2123
2124
|
isClearable: C = !1,
|
|
2124
2125
|
fullWidth: x = !1,
|
|
2125
|
-
_dataComponent:
|
|
2126
|
+
_dataComponent: g = "textfield",
|
|
2126
2127
|
min: L,
|
|
2127
2128
|
max: j,
|
|
2128
2129
|
step: O,
|
|
@@ -2137,26 +2138,26 @@ const Re = (n, e, t) => {
|
|
|
2137
2138
|
onShapeIconClick: z,
|
|
2138
2139
|
onClick: Z
|
|
2139
2140
|
}) => {
|
|
2140
|
-
const F =
|
|
2141
|
+
const F = Se(), h = `${F}-helper`, v = E ? "danger" : o, $ = S || !!E, I = (U) => {
|
|
2141
2142
|
H?.(U.target.value);
|
|
2142
2143
|
}, _ = () => {
|
|
2143
2144
|
e && e != "" && H?.("");
|
|
2144
|
-
},
|
|
2145
|
+
}, A = {
|
|
2145
2146
|
wrapper: `${me["smp-textfield-wrapper"]} ${x ? me["smp-textfield-fullWidth"] : ""}`,
|
|
2146
2147
|
container: `${me["smp-textfield"]} ${n ? me["smp-textfield-disabled"] : ""} ${r ? me["smp-textfield-placeholder"] : ""} ${i ? me[`smp-textfield-${i}`] : ""} ${v ? me[`smp-textfield-${v}`] : ""} ${b ? me[`smp-textfield-${b}`] : ""} ${s ? "" : me["smp-textfield-readOnly"]} ${c ? me["smp-textfield-top-right-indicator"] : ""}`,
|
|
2147
2148
|
input: `${me["smp-textfield-input"]}`
|
|
2148
2149
|
};
|
|
2149
2150
|
if (l && (l !== "notSelectable" || s)) {
|
|
2150
2151
|
const U = me[`smp-textfield-variant-${l}`];
|
|
2151
|
-
U && (
|
|
2152
|
+
U && (A.container += ` ${U}`);
|
|
2152
2153
|
}
|
|
2153
2154
|
const V = R ? { "--smp-textField-width-base": R } : void 0;
|
|
2154
|
-
return /* @__PURE__ */ m.jsxs("div", { className:
|
|
2155
|
+
return /* @__PURE__ */ m.jsxs("div", { className: A.wrapper, "data-component": g, children: [
|
|
2155
2156
|
w && /* @__PURE__ */ m.jsx(Ee, { label: w, disabled: n, htmlFor: F }),
|
|
2156
2157
|
/* @__PURE__ */ m.jsxs(
|
|
2157
2158
|
"div",
|
|
2158
2159
|
{
|
|
2159
|
-
className:
|
|
2160
|
+
className: A.container,
|
|
2160
2161
|
ref: u,
|
|
2161
2162
|
style: V,
|
|
2162
2163
|
children: [
|
|
@@ -2165,12 +2166,12 @@ const Re = (n, e, t) => {
|
|
|
2165
2166
|
"input",
|
|
2166
2167
|
{
|
|
2167
2168
|
id: F,
|
|
2168
|
-
type:
|
|
2169
|
+
type: y,
|
|
2169
2170
|
value: e,
|
|
2170
2171
|
placeholder: r,
|
|
2171
|
-
onChange:
|
|
2172
|
+
onChange: I,
|
|
2172
2173
|
onBlur: N,
|
|
2173
|
-
className:
|
|
2174
|
+
className: A.input,
|
|
2174
2175
|
disabled: n,
|
|
2175
2176
|
readOnly: !s,
|
|
2176
2177
|
onKeyDown: B,
|
|
@@ -2231,18 +2232,18 @@ function kn({
|
|
|
2231
2232
|
n.length - 1,
|
|
2232
2233
|
Math.floor((s + t) / e) + r
|
|
2233
2234
|
), f = [];
|
|
2234
|
-
for (let
|
|
2235
|
+
for (let y = l; y <= c; y++)
|
|
2235
2236
|
f.push({
|
|
2236
|
-
item: n[
|
|
2237
|
-
index:
|
|
2238
|
-
offsetTop:
|
|
2237
|
+
item: n[y],
|
|
2238
|
+
index: y,
|
|
2239
|
+
offsetTop: y * e
|
|
2239
2240
|
});
|
|
2240
|
-
const u = fe((
|
|
2241
|
-
const d =
|
|
2241
|
+
const u = fe((y) => {
|
|
2242
|
+
const d = y.target.scrollTop;
|
|
2242
2243
|
a(d);
|
|
2243
|
-
}, []), p = (
|
|
2244
|
+
}, []), p = (y) => {
|
|
2244
2245
|
if (!i.current) return;
|
|
2245
|
-
const d =
|
|
2246
|
+
const d = y * e, w = d + e, S = i.current, E = S.scrollTop, b = E + t;
|
|
2246
2247
|
d < E ? S.scrollTop = d : w > b && (S.scrollTop = w - t);
|
|
2247
2248
|
};
|
|
2248
2249
|
return {
|
|
@@ -2305,15 +2306,15 @@ const Tr = 10, Ln = ({
|
|
|
2305
2306
|
onKeyDown: c,
|
|
2306
2307
|
isOpen: f
|
|
2307
2308
|
}) => {
|
|
2308
|
-
const [u, p] = G(""),
|
|
2309
|
+
const [u, p] = G(""), y = 40, [d, w] = G(
|
|
2309
2310
|
a !== null ? a : -1
|
|
2310
2311
|
), [S, E] = G(o || 200), b = ue(null), C = s !== void 0 ? s : e.length > Tr, x = u ? e.filter(
|
|
2311
2312
|
(N) => N.label.toLowerCase().includes(u.toLowerCase())
|
|
2312
|
-
) : e,
|
|
2313
|
+
) : e, g = (N) => {
|
|
2313
2314
|
p(N);
|
|
2314
2315
|
}, { virtualItems: L, containerProps: j, innerProps: O, scrollToIndex: k } = kn({
|
|
2315
2316
|
items: x,
|
|
2316
|
-
itemHeight:
|
|
2317
|
+
itemHeight: y,
|
|
2317
2318
|
containerHeight: 200,
|
|
2318
2319
|
overscan: 5
|
|
2319
2320
|
});
|
|
@@ -2362,7 +2363,7 @@ const Tr = 10, Ln = ({
|
|
|
2362
2363
|
bindValue: u,
|
|
2363
2364
|
placeholder: "Search...",
|
|
2364
2365
|
fullWidth: !0,
|
|
2365
|
-
onChange:
|
|
2366
|
+
onChange: g,
|
|
2366
2367
|
onKeyDown: D,
|
|
2367
2368
|
inputRef: b
|
|
2368
2369
|
}
|
|
@@ -2391,8 +2392,8 @@ const Tr = 10, Ln = ({
|
|
|
2391
2392
|
className: `${P.listItem} ${d === H ? "selected-item" : ""}`,
|
|
2392
2393
|
"aria-label": N.id + "-" + N.label,
|
|
2393
2394
|
style: {
|
|
2394
|
-
height: `${
|
|
2395
|
-
lineHeight: `calc(${
|
|
2395
|
+
height: `${y}px`,
|
|
2396
|
+
lineHeight: `calc(${y}px - 2*2px)`,
|
|
2396
2397
|
// lineHeight - 2*padding
|
|
2397
2398
|
transform: `translateY(${B}px)`
|
|
2398
2399
|
},
|
|
@@ -2413,7 +2414,7 @@ const Tr = 10, Ln = ({
|
|
|
2413
2414
|
]
|
|
2414
2415
|
}
|
|
2415
2416
|
);
|
|
2416
|
-
},
|
|
2417
|
+
}, It = ({
|
|
2417
2418
|
displayMode: n,
|
|
2418
2419
|
bindValue: e,
|
|
2419
2420
|
optionalDisplayValue: t,
|
|
@@ -2513,11 +2514,11 @@ const ht = (n, e, t) => {
|
|
|
2513
2514
|
}, jr = (n, e, t) => {
|
|
2514
2515
|
const r = lt(n, t);
|
|
2515
2516
|
return r !== void 0 ? r : lt(e, t);
|
|
2516
|
-
},
|
|
2517
|
+
}, In = (n, e, t) => {
|
|
2517
2518
|
for (const r in e)
|
|
2518
|
-
r !== "__proto__" && r !== "constructor" && (r in n ? K(n[r]) || n[r] instanceof String || K(e[r]) || e[r] instanceof String ? t && (n[r] = e[r]) :
|
|
2519
|
+
r !== "__proto__" && r !== "constructor" && (r in n ? K(n[r]) || n[r] instanceof String || K(e[r]) || e[r] instanceof String ? t && (n[r] = e[r]) : In(n[r], e[r], t) : n[r] = e[r]);
|
|
2519
2520
|
return n;
|
|
2520
|
-
},
|
|
2521
|
+
}, Ie = (n) => n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
2521
2522
|
var $r = {
|
|
2522
2523
|
"&": "&",
|
|
2523
2524
|
"<": "<",
|
|
@@ -2539,11 +2540,11 @@ class Lr {
|
|
|
2539
2540
|
return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, r), this.regExpQueue.push(e), r;
|
|
2540
2541
|
}
|
|
2541
2542
|
}
|
|
2542
|
-
const
|
|
2543
|
+
const Ir = [" ", ",", "?", "!", ";"], Ar = new Lr(20), Pr = (n, e, t) => {
|
|
2543
2544
|
e = e || "", t = t || "";
|
|
2544
|
-
const r =
|
|
2545
|
+
const r = Ir.filter((i) => e.indexOf(i) < 0 && t.indexOf(i) < 0);
|
|
2545
2546
|
if (r.length === 0) return !0;
|
|
2546
|
-
const s =
|
|
2547
|
+
const s = Ar.getRegExp(`(${r.map((i) => i === "?" ? "\\?" : i).join("|")})`);
|
|
2547
2548
|
let a = !s.test(n);
|
|
2548
2549
|
if (!a) {
|
|
2549
2550
|
const i = n.indexOf(t);
|
|
@@ -2692,7 +2693,7 @@ class dn extends mt {
|
|
|
2692
2693
|
let o = [e, t];
|
|
2693
2694
|
e.indexOf(".") > -1 && (o = e.split("."), s = r, r = t, t = o[1]), this.addNamespaces(t);
|
|
2694
2695
|
let l = lt(this.data, o) || {};
|
|
2695
|
-
i.skipCopy || (r = JSON.parse(JSON.stringify(r))), s ?
|
|
2696
|
+
i.skipCopy || (r = JSON.parse(JSON.stringify(r))), s ? In(l, r, a) : l = {
|
|
2696
2697
|
...l,
|
|
2697
2698
|
...r
|
|
2698
2699
|
}, fn(this.data, o, l), i.silent || this.emit("added", e, t, r);
|
|
@@ -2717,7 +2718,7 @@ class dn extends mt {
|
|
|
2717
2718
|
return this.data;
|
|
2718
2719
|
}
|
|
2719
2720
|
}
|
|
2720
|
-
var
|
|
2721
|
+
var An = {
|
|
2721
2722
|
processors: {},
|
|
2722
2723
|
addPostProcessor(n) {
|
|
2723
2724
|
this.processors[n.name] = n;
|
|
@@ -2796,13 +2797,13 @@ class ut extends mt {
|
|
|
2796
2797
|
usedNS: c,
|
|
2797
2798
|
usedParams: this.getUsedParamsDetails(s)
|
|
2798
2799
|
} : o;
|
|
2799
|
-
const
|
|
2800
|
-
let d =
|
|
2801
|
-
const w =
|
|
2800
|
+
const y = this.resolve(e, s);
|
|
2801
|
+
let d = y?.res;
|
|
2802
|
+
const w = y?.usedKey || o, S = y?.exactUsedKey || o, E = ["[object Number]", "[object Function]", "[object RegExp]"], b = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, C = !this.i18nFormat || this.i18nFormat.handleAsObject, x = s.count !== void 0 && !K(s.count), g = ut.hasDefaultValue(s), L = x ? this.pluralResolver.getSuffix(u, s.count, s) : "", j = s.ordinal && x ? this.pluralResolver.getSuffix(u, s.count, {
|
|
2802
2803
|
ordinal: !1
|
|
2803
2804
|
}) : "", O = x && !s.ordinal && s.count === 0, k = O && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${L}`] || s[`defaultValue${j}`] || s.defaultValue;
|
|
2804
2805
|
let R = d;
|
|
2805
|
-
C && !d &&
|
|
2806
|
+
C && !d && g && (R = k);
|
|
2806
2807
|
const D = hn(R), T = Object.prototype.toString.apply(R);
|
|
2807
2808
|
if (C && R && D && E.indexOf(T) < 0 && !(K(b) && Array.isArray(R))) {
|
|
2808
2809
|
if (!s.returnObjects && !this.options.returnObjects) {
|
|
@@ -2811,14 +2812,14 @@ class ut extends mt {
|
|
|
2811
2812
|
...s,
|
|
2812
2813
|
ns: l
|
|
2813
2814
|
}) : `key '${o} (${this.language})' returned an object instead of string.`;
|
|
2814
|
-
return a ? (
|
|
2815
|
+
return a ? (y.res = P, y.usedParams = this.getUsedParamsDetails(s), y) : P;
|
|
2815
2816
|
}
|
|
2816
2817
|
if (i) {
|
|
2817
2818
|
const P = Array.isArray(R), N = P ? [] : {}, H = P ? S : w;
|
|
2818
2819
|
for (const B in R)
|
|
2819
2820
|
if (Object.prototype.hasOwnProperty.call(R, B)) {
|
|
2820
2821
|
const z = `${H}${i}${B}`;
|
|
2821
|
-
|
|
2822
|
+
g && !d ? N[B] = this.translate(z, {
|
|
2822
2823
|
...s,
|
|
2823
2824
|
defaultValue: hn(k) ? k[B] : void 0,
|
|
2824
2825
|
joinArrays: !1,
|
|
@@ -2835,8 +2836,8 @@ class ut extends mt {
|
|
|
2835
2836
|
d = d.join(b), d && (d = this.extendTranslation(d, e, s, r));
|
|
2836
2837
|
else {
|
|
2837
2838
|
let P = !1, N = !1;
|
|
2838
|
-
!this.isValidLookup(d) &&
|
|
2839
|
-
const B = (s.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && N ? void 0 : d, z =
|
|
2839
|
+
!this.isValidLookup(d) && g && (P = !0, d = k), this.isValidLookup(d) || (N = !0, d = o);
|
|
2840
|
+
const B = (s.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && N ? void 0 : d, z = g && k !== d && this.options.updateMissing;
|
|
2840
2841
|
if (N || P || z) {
|
|
2841
2842
|
if (this.logger.log(z ? "updateKey" : "missingKey", u, c, o, z ? k : d), i) {
|
|
2842
2843
|
const v = this.resolve(o, {
|
|
@@ -2851,20 +2852,20 @@ class ut extends mt {
|
|
|
2851
2852
|
for (let v = 0; v < F.length; v++)
|
|
2852
2853
|
Z.push(F[v]);
|
|
2853
2854
|
else this.options.saveMissingTo === "all" ? Z = this.languageUtils.toResolveHierarchy(s.lng || this.language) : Z.push(s.lng || this.language);
|
|
2854
|
-
const h = (v, $,
|
|
2855
|
-
const _ =
|
|
2855
|
+
const h = (v, $, I) => {
|
|
2856
|
+
const _ = g && I !== d ? I : B;
|
|
2856
2857
|
this.options.missingKeyHandler ? this.options.missingKeyHandler(v, c, $, _, z, s) : this.backendConnector?.saveMissing && this.backendConnector.saveMissing(v, c, $, _, z, s), this.emit("missingKey", v, c, $, d);
|
|
2857
2858
|
};
|
|
2858
2859
|
this.options.saveMissing && (this.options.saveMissingPlurals && x ? Z.forEach((v) => {
|
|
2859
2860
|
const $ = this.pluralResolver.getSuffixes(v, s);
|
|
2860
|
-
O && s[`defaultValue${this.options.pluralSeparator}zero`] && $.indexOf(`${this.options.pluralSeparator}zero`) < 0 && $.push(`${this.options.pluralSeparator}zero`), $.forEach((
|
|
2861
|
-
h([v], o +
|
|
2861
|
+
O && s[`defaultValue${this.options.pluralSeparator}zero`] && $.indexOf(`${this.options.pluralSeparator}zero`) < 0 && $.push(`${this.options.pluralSeparator}zero`), $.forEach((I) => {
|
|
2862
|
+
h([v], o + I, s[`defaultValue${I}`] || k);
|
|
2862
2863
|
});
|
|
2863
2864
|
}) : h(Z, o, k));
|
|
2864
2865
|
}
|
|
2865
|
-
d = this.extendTranslation(d, e, s,
|
|
2866
|
+
d = this.extendTranslation(d, e, s, y, r), N && d === o && this.options.appendNamespaceToMissingKey && (d = `${c}${f}${o}`), (N || P) && this.options.parseMissingKeyHandler && (d = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${c}${f}${o}` : o, P ? d : void 0, s));
|
|
2866
2867
|
}
|
|
2867
|
-
return a ? (
|
|
2868
|
+
return a ? (y.res = d, y.usedParams = this.getUsedParamsDetails(s), y) : d;
|
|
2868
2869
|
}
|
|
2869
2870
|
extendTranslation(e, t, r, s, a) {
|
|
2870
2871
|
if (this.i18nFormat?.parse)
|
|
@@ -2899,7 +2900,7 @@ class ut extends mt {
|
|
|
2899
2900
|
!r.lng && s && s.res && (r.lng = this.language || s.usedLng), r.nest !== !1 && (e = this.interpolator.nest(e, (...u) => a?.[0] === u[0] && !r.context ? (this.logger.warn(`It seems you are nesting recursively key: ${u[0]} in key: ${t[0]}`), null) : this.translate(...u, t), r)), r.interpolation && this.interpolator.reset();
|
|
2900
2901
|
}
|
|
2901
2902
|
const i = r.postProcess || this.options.postProcess, o = K(i) ? [i] : i;
|
|
2902
|
-
return e != null && o?.length && r.applyPostProcessor !== !1 && (e =
|
|
2903
|
+
return e != null && o?.length && r.applyPostProcessor !== !1 && (e = An.handle(o, e, t, this.options && this.options.postProcessPassResolved ? {
|
|
2903
2904
|
i18nResolved: {
|
|
2904
2905
|
...s,
|
|
2905
2906
|
usedParams: this.getUsedParamsDetails(r)
|
|
@@ -2915,7 +2916,7 @@ class ut extends mt {
|
|
|
2915
2916
|
s = f;
|
|
2916
2917
|
let u = c.namespaces;
|
|
2917
2918
|
this.options.fallbackNS && (u = u.concat(this.options.fallbackNS));
|
|
2918
|
-
const p = t.count !== void 0 && !K(t.count),
|
|
2919
|
+
const p = t.count !== void 0 && !K(t.count), y = p && !t.ordinal && t.count === 0, d = t.context !== void 0 && (K(t.context) || typeof t.context == "number") && t.context !== "", w = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
|
|
2919
2920
|
u.forEach((S) => {
|
|
2920
2921
|
this.isValidLookup(r) || (o = S, !pn[`${w[0]}-${S}`] && this.utils?.hasLoadedNamespace && !this.utils?.hasLoadedNamespace(o) && (pn[`${w[0]}-${S}`] = !0, this.logger.warn(`key "${s}" for languages "${w.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), w.forEach((E) => {
|
|
2921
2922
|
if (this.isValidLookup(r)) return;
|
|
@@ -2926,10 +2927,10 @@ class ut extends mt {
|
|
|
2926
2927
|
else {
|
|
2927
2928
|
let x;
|
|
2928
2929
|
p && (x = this.pluralResolver.getSuffix(E, t.count, t));
|
|
2929
|
-
const
|
|
2930
|
-
if (p && (b.push(f + x), t.ordinal && x.indexOf(L) === 0 && b.push(f + x.replace(L, this.options.pluralSeparator)),
|
|
2930
|
+
const g = `${this.options.pluralSeparator}zero`, L = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
2931
|
+
if (p && (b.push(f + x), t.ordinal && x.indexOf(L) === 0 && b.push(f + x.replace(L, this.options.pluralSeparator)), y && b.push(f + g)), d) {
|
|
2931
2932
|
const j = `${f}${this.options.contextSeparator}${t.context}`;
|
|
2932
|
-
b.push(j), p && (b.push(j + x), t.ordinal && x.indexOf(L) === 0 && b.push(j + x.replace(L, this.options.pluralSeparator)),
|
|
2933
|
+
b.push(j), p && (b.push(j + x), t.ordinal && x.indexOf(L) === 0 && b.push(j + x.replace(L, this.options.pluralSeparator)), y && b.push(j + g));
|
|
2933
2934
|
}
|
|
2934
2935
|
}
|
|
2935
2936
|
let C;
|
|
@@ -3122,14 +3123,14 @@ class Fr {
|
|
|
3122
3123
|
unescapeSuffix: f,
|
|
3123
3124
|
unescapePrefix: u,
|
|
3124
3125
|
nestingPrefix: p,
|
|
3125
|
-
nestingPrefixEscaped:
|
|
3126
|
+
nestingPrefixEscaped: y,
|
|
3126
3127
|
nestingSuffix: d,
|
|
3127
3128
|
nestingSuffixEscaped: w,
|
|
3128
3129
|
nestingOptionsSeparator: S,
|
|
3129
3130
|
maxReplaces: E,
|
|
3130
3131
|
alwaysFormat: b
|
|
3131
3132
|
} = e.interpolation;
|
|
3132
|
-
this.escape = t !== void 0 ? t : kr, this.escapeValue = r !== void 0 ? r : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = a ?
|
|
3133
|
+
this.escape = t !== void 0 ? t : kr, this.escapeValue = r !== void 0 ? r : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = a ? Ie(a) : i || "{{", this.suffix = o ? Ie(o) : l || "}}", this.formatSeparator = c || ",", this.unescapePrefix = f ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : f || "", this.nestingPrefix = p ? Ie(p) : y || Ie("$t("), this.nestingSuffix = d ? Ie(d) : w || Ie(")"), this.nestingOptionsSeparator = S || ",", this.maxReplaces = E || 1e3, this.alwaysFormat = b !== void 0 ? b : !1, this.resetRegExp();
|
|
3133
3134
|
}
|
|
3134
3135
|
reset() {
|
|
3135
3136
|
this.options && this.init(this.options);
|
|
@@ -3140,16 +3141,16 @@ class Fr {
|
|
|
3140
3141
|
}
|
|
3141
3142
|
interpolate(e, t, r, s) {
|
|
3142
3143
|
let a, i, o;
|
|
3143
|
-
const l = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, c = (
|
|
3144
|
-
if (
|
|
3145
|
-
const E = bn(t, l,
|
|
3144
|
+
const l = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, c = (y) => {
|
|
3145
|
+
if (y.indexOf(this.formatSeparator) < 0) {
|
|
3146
|
+
const E = bn(t, l, y, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
3146
3147
|
return this.alwaysFormat ? this.format(E, void 0, r, {
|
|
3147
3148
|
...s,
|
|
3148
3149
|
...t,
|
|
3149
|
-
interpolationkey:
|
|
3150
|
+
interpolationkey: y
|
|
3150
3151
|
}) : E;
|
|
3151
3152
|
}
|
|
3152
|
-
const d =
|
|
3153
|
+
const d = y.split(this.formatSeparator), w = d.shift().trim(), S = d.join(this.formatSeparator).trim();
|
|
3153
3154
|
return this.format(bn(t, l, w, this.options.keySeparator, this.options.ignoreJSONStructure), S, r, {
|
|
3154
3155
|
...s,
|
|
3155
3156
|
...t,
|
|
@@ -3160,12 +3161,12 @@ class Fr {
|
|
|
3160
3161
|
const f = s?.missingInterpolationHandler || this.options.missingInterpolationHandler, u = s?.interpolation?.skipOnVariables !== void 0 ? s.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
|
|
3161
3162
|
return [{
|
|
3162
3163
|
regex: this.regexpUnescape,
|
|
3163
|
-
safeValue: (
|
|
3164
|
+
safeValue: (y) => Ct(y)
|
|
3164
3165
|
}, {
|
|
3165
3166
|
regex: this.regexp,
|
|
3166
|
-
safeValue: (
|
|
3167
|
-
}].forEach((
|
|
3168
|
-
for (o = 0; a =
|
|
3167
|
+
safeValue: (y) => this.escapeValue ? Ct(this.escape(y)) : Ct(y)
|
|
3168
|
+
}].forEach((y) => {
|
|
3169
|
+
for (o = 0; a = y.regex.exec(e); ) {
|
|
3169
3170
|
const d = a[1].trim();
|
|
3170
3171
|
if (i = c(d), i === void 0)
|
|
3171
3172
|
if (typeof f == "function") {
|
|
@@ -3179,8 +3180,8 @@ class Fr {
|
|
|
3179
3180
|
} else
|
|
3180
3181
|
this.logger.warn(`missed to pass in variable ${d} for interpolating ${e}`), i = "";
|
|
3181
3182
|
else !K(i) && !this.useRawValueToEscape && (i = ln(i));
|
|
3182
|
-
const w =
|
|
3183
|
-
if (e = e.replace(a[0], w), u ? (
|
|
3183
|
+
const w = y.safeValue(i);
|
|
3184
|
+
if (e = e.replace(a[0], w), u ? (y.regex.lastIndex += i.length, y.regex.lastIndex -= a[0].length) : y.regex.lastIndex = 0, o++, o >= this.maxReplaces)
|
|
3184
3185
|
break;
|
|
3185
3186
|
}
|
|
3186
3187
|
}), e;
|
|
@@ -3193,8 +3194,8 @@ class Fr {
|
|
|
3193
3194
|
const u = l.split(new RegExp(`${f}[ ]*{`));
|
|
3194
3195
|
let p = `{${u[1]}`;
|
|
3195
3196
|
l = u[0], p = this.interpolate(p, i);
|
|
3196
|
-
const
|
|
3197
|
-
((
|
|
3197
|
+
const y = p.match(/'/g), d = p.match(/"/g);
|
|
3198
|
+
((y?.length ?? 0) % 2 === 0 && !d || d.length % 2 !== 0) && (p = p.replace(/'/g, '"'));
|
|
3198
3199
|
try {
|
|
3199
3200
|
i = JSON.parse(p), c && (i = {
|
|
3200
3201
|
...c,
|
|
@@ -3314,8 +3315,8 @@ class Wr {
|
|
|
3314
3315
|
if (this.formats[c]) {
|
|
3315
3316
|
let u = o;
|
|
3316
3317
|
try {
|
|
3317
|
-
const p = s?.formatParams?.[s.interpolationkey] || {},
|
|
3318
|
-
u = this.formats[c](o,
|
|
3318
|
+
const p = s?.formatParams?.[s.interpolationkey] || {}, y = p.locale || p.lng || s.locale || s.lng || r;
|
|
3319
|
+
u = this.formats[c](o, y, {
|
|
3319
3320
|
...f,
|
|
3320
3321
|
...s,
|
|
3321
3322
|
...p
|
|
@@ -3562,12 +3563,12 @@ class Be extends mt {
|
|
|
3562
3563
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
3563
3564
|
}), this.options.interpolation.format && this.options.interpolation.format !== r.interpolation.format && this.logger.warn("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"), c && (!this.options.interpolation.format || this.options.interpolation.format === r.interpolation.format) && (u.formatter = s(c), u.formatter.init && u.formatter.init(u, this.options), this.options.interpolation.format = u.formatter.format.bind(u.formatter)), u.interpolator = new Fr(this.options), u.utils = {
|
|
3564
3565
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
3565
|
-
}, u.backendConnector = new Br(s(this.modules.backend), u.resourceStore, u, this.options), u.backendConnector.on("*", (
|
|
3566
|
-
this.emit(
|
|
3567
|
-
}), this.modules.languageDetector && (u.languageDetector = s(this.modules.languageDetector), u.languageDetector.init && u.languageDetector.init(u, this.options.detection, this.options)), this.modules.i18nFormat && (u.i18nFormat = s(this.modules.i18nFormat), u.i18nFormat.init && u.i18nFormat.init(this)), this.translator = new ut(this.services, this.options), this.translator.on("*", (
|
|
3568
|
-
this.emit(
|
|
3569
|
-
}), this.modules.external.forEach((
|
|
3570
|
-
|
|
3566
|
+
}, u.backendConnector = new Br(s(this.modules.backend), u.resourceStore, u, this.options), u.backendConnector.on("*", (y, ...d) => {
|
|
3567
|
+
this.emit(y, ...d);
|
|
3568
|
+
}), this.modules.languageDetector && (u.languageDetector = s(this.modules.languageDetector), u.languageDetector.init && u.languageDetector.init(u, this.options.detection, this.options)), this.modules.i18nFormat && (u.i18nFormat = s(this.modules.i18nFormat), u.i18nFormat.init && u.i18nFormat.init(this)), this.translator = new ut(this.services, this.options), this.translator.on("*", (y, ...d) => {
|
|
3569
|
+
this.emit(y, ...d);
|
|
3570
|
+
}), this.modules.external.forEach((y) => {
|
|
3571
|
+
y.init && y.init(this);
|
|
3571
3572
|
});
|
|
3572
3573
|
}
|
|
3573
3574
|
if (this.format = this.options.interpolation.format, t || (t = et), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
|
|
@@ -3614,7 +3615,7 @@ class Be extends mt {
|
|
|
3614
3615
|
use(e) {
|
|
3615
3616
|
if (!e) throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
|
|
3616
3617
|
if (!e.type) throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
|
|
3617
|
-
return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" &&
|
|
3618
|
+
return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" && An.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
|
|
3618
3619
|
}
|
|
3619
3620
|
setResolvedLanguage(e) {
|
|
3620
3621
|
if (!(!e || !this.languages) && !(["cimode", "dev"].indexOf(e) > -1)) {
|
|
@@ -3904,37 +3905,37 @@ const Pn = ({
|
|
|
3904
3905
|
onChange: f,
|
|
3905
3906
|
onOptionsRequest: u,
|
|
3906
3907
|
onBlur: p,
|
|
3907
|
-
_multiActiveIndex:
|
|
3908
|
+
_multiActiveIndex: y,
|
|
3908
3909
|
...d
|
|
3909
3910
|
}) => {
|
|
3910
|
-
const w = ue(null), [S, E] = G(n), [b, C] = G(e), { translate: x } = $e(), [
|
|
3911
|
+
const w = ue(null), [S, E] = G(n), [b, C] = G(e), { translate: x } = $e(), [g, L] = G(!1), [j, O] = G(t || []), [k, R] = G(0), [D, T] = G([n]), { anchorRef: P, targetRef: N, anchorWidth: H } = dt({
|
|
3911
3912
|
position: "bottom",
|
|
3912
|
-
enabled:
|
|
3913
|
+
enabled: g
|
|
3913
3914
|
}), B = fe(() => {
|
|
3914
3915
|
L(!1), w?.current?.focus();
|
|
3915
3916
|
}, []);
|
|
3916
|
-
ht([N],
|
|
3917
|
+
ht([N], g, () => B());
|
|
3917
3918
|
const z = Or(400), Z = (_) => {
|
|
3918
3919
|
_.length >= i ? F(_) : B(), E(_), C(e), c || f?.(_, e);
|
|
3919
3920
|
}, F = (_) => {
|
|
3920
3921
|
z(async () => {
|
|
3921
3922
|
if (l && u) {
|
|
3922
|
-
const
|
|
3923
|
-
O(
|
|
3923
|
+
const A = await u(l, _);
|
|
3924
|
+
O(A), R(A.length > 0 ? 0 : -1), L(!0);
|
|
3924
3925
|
}
|
|
3925
3926
|
});
|
|
3926
3927
|
}, h = () => {
|
|
3927
|
-
|
|
3928
|
+
g || p?.();
|
|
3928
3929
|
}, v = (_) => {
|
|
3929
3930
|
c ? (E(""), C("")) : (E(_.id), C(_.label)), f?.(_.id, _.label);
|
|
3930
|
-
const
|
|
3931
|
-
R(
|
|
3931
|
+
const A = j.findIndex((V) => V.id === _.id);
|
|
3932
|
+
R(A), T([_.id]), B();
|
|
3932
3933
|
}, $ = (_) => {
|
|
3933
3934
|
_.key === "Escape" && (B(), R(-1));
|
|
3934
|
-
},
|
|
3935
|
-
if ((_.key === "ArrowDown" || _.key === "ArrowUp") && (_.preventDefault(),
|
|
3936
|
-
const
|
|
3937
|
-
R(
|
|
3935
|
+
}, I = (_) => {
|
|
3936
|
+
if ((_.key === "ArrowDown" || _.key === "ArrowUp") && (_.preventDefault(), g)) {
|
|
3937
|
+
const A = _.key === "ArrowDown" ? (k + 1) % j.length : (k - 1 + j.length) % j.length;
|
|
3938
|
+
R(A);
|
|
3938
3939
|
}
|
|
3939
3940
|
switch (_.key) {
|
|
3940
3941
|
case "Enter":
|
|
@@ -3947,7 +3948,7 @@ const Pn = ({
|
|
|
3947
3948
|
};
|
|
3948
3949
|
return /* @__PURE__ */ m.jsxs("div", { "data-component": "autocomplete", children: [
|
|
3949
3950
|
/* @__PURE__ */ m.jsx(
|
|
3950
|
-
|
|
3951
|
+
It,
|
|
3951
3952
|
{
|
|
3952
3953
|
...d,
|
|
3953
3954
|
bindValue: S,
|
|
@@ -3962,13 +3963,13 @@ const Pn = ({
|
|
|
3962
3963
|
isClearable: a,
|
|
3963
3964
|
inputRef: w,
|
|
3964
3965
|
onChange: Z,
|
|
3965
|
-
onKeyDown:
|
|
3966
|
+
onKeyDown: I,
|
|
3966
3967
|
onBlur: h,
|
|
3967
3968
|
onShapeIconClick: () => F(S),
|
|
3968
3969
|
"aria-autocomplete": "list"
|
|
3969
3970
|
}
|
|
3970
3971
|
),
|
|
3971
|
-
|
|
3972
|
+
g && /* @__PURE__ */ m.jsx(pt, { children: /* @__PURE__ */ m.jsx(
|
|
3972
3973
|
Ln,
|
|
3973
3974
|
{
|
|
3974
3975
|
options: j,
|
|
@@ -3976,11 +3977,11 @@ const Pn = ({
|
|
|
3976
3977
|
onClick: v,
|
|
3977
3978
|
ref: N,
|
|
3978
3979
|
selectedIndex: k,
|
|
3979
|
-
activeIndex:
|
|
3980
|
+
activeIndex: y || D,
|
|
3980
3981
|
width: H,
|
|
3981
3982
|
showFilter: !1,
|
|
3982
3983
|
onKeyDown: $,
|
|
3983
|
-
isOpen:
|
|
3984
|
+
isOpen: g
|
|
3984
3985
|
}
|
|
3985
3986
|
) })
|
|
3986
3987
|
] });
|
|
@@ -3998,7 +3999,7 @@ const Pn = ({
|
|
|
3998
3999
|
disabled: f,
|
|
3999
4000
|
justify: u,
|
|
4000
4001
|
squared: p,
|
|
4001
|
-
onClick:
|
|
4002
|
+
onClick: y,
|
|
4002
4003
|
onOptionsRequest: d
|
|
4003
4004
|
}) => {
|
|
4004
4005
|
const [w, S] = G(n);
|
|
@@ -4013,7 +4014,7 @@ const Pn = ({
|
|
|
4013
4014
|
const E = {
|
|
4014
4015
|
container: `smp-button-list smp-button-list-${t} smp-justifyContent-${r}`
|
|
4015
4016
|
}, b = w?.map((C, x) => {
|
|
4016
|
-
const
|
|
4017
|
+
const g = {
|
|
4017
4018
|
bindValue: C.id,
|
|
4018
4019
|
optionalDisplayValue: C.label,
|
|
4019
4020
|
fun: C.fun,
|
|
@@ -4028,10 +4029,10 @@ const Pn = ({
|
|
|
4028
4029
|
justify: u,
|
|
4029
4030
|
squared: p,
|
|
4030
4031
|
onClick: () => {
|
|
4031
|
-
|
|
4032
|
+
y?.(C.id, C.fun);
|
|
4032
4033
|
}
|
|
4033
4034
|
};
|
|
4034
|
-
return /* @__PURE__ */ m.jsx(
|
|
4035
|
+
return /* @__PURE__ */ m.jsx(xe, { ...g }, `button-${x}`);
|
|
4035
4036
|
});
|
|
4036
4037
|
return /* @__PURE__ */ m.jsx("div", { role: "list", "data-component": "button-list", className: E.container, children: b });
|
|
4037
4038
|
}, fs = {
|
|
@@ -4046,7 +4047,7 @@ const Pn = ({
|
|
|
4046
4047
|
onBlur: i,
|
|
4047
4048
|
variant: o = "checkbox"
|
|
4048
4049
|
}) => {
|
|
4049
|
-
const l =
|
|
4050
|
+
const l = Se(), c = (u) => {
|
|
4050
4051
|
s && a && a(u.target.checked);
|
|
4051
4052
|
}, f = {
|
|
4052
4053
|
wrapper: `${fs["smp-checkbox-wrapper"]}`
|
|
@@ -4066,7 +4067,7 @@ const Pn = ({
|
|
|
4066
4067
|
}
|
|
4067
4068
|
)
|
|
4068
4069
|
] });
|
|
4069
|
-
},
|
|
4070
|
+
}, At = ({
|
|
4070
4071
|
elements: n,
|
|
4071
4072
|
isEditable: e = !1,
|
|
4072
4073
|
displayMode: t = "Both",
|
|
@@ -4078,19 +4079,19 @@ const Pn = ({
|
|
|
4078
4079
|
const [o, l] = G(null), c = {
|
|
4079
4080
|
container: `${["smp-chips-container"]}`,
|
|
4080
4081
|
element: "smp-chips-element"
|
|
4081
|
-
}, f = (
|
|
4082
|
-
r?.(n.filter((d, w) => w !==
|
|
4083
|
-
}, u = (
|
|
4084
|
-
l(
|
|
4085
|
-
}, p = (
|
|
4086
|
-
if (o === null || o ===
|
|
4082
|
+
}, f = (y) => {
|
|
4083
|
+
r?.(n.filter((d, w) => w !== y));
|
|
4084
|
+
}, u = (y) => {
|
|
4085
|
+
l(y);
|
|
4086
|
+
}, p = (y) => {
|
|
4087
|
+
if (o === null || o === y) return;
|
|
4087
4088
|
const d = [...n], [w] = d.splice(o, 1);
|
|
4088
|
-
d.splice(
|
|
4089
|
+
d.splice(y, 0, w), r?.(d), l(null);
|
|
4089
4090
|
};
|
|
4090
|
-
return /* @__PURE__ */ m.jsx("div", { className: c.container, role: "list", "data-component": "chip", children: n.flatMap((
|
|
4091
|
+
return /* @__PURE__ */ m.jsx("div", { className: c.container, role: "list", "data-component": "chip", children: n.flatMap((y, d) => {
|
|
4091
4092
|
const w = Re(
|
|
4092
|
-
|
|
4093
|
-
|
|
4093
|
+
y.bindValue,
|
|
4094
|
+
y.optionalDisplayValue,
|
|
4094
4095
|
t
|
|
4095
4096
|
), S = /* @__PURE__ */ m.jsxs(
|
|
4096
4097
|
"div",
|
|
@@ -4181,13 +4182,13 @@ const ps = ({
|
|
|
4181
4182
|
multiActiveIndex: c,
|
|
4182
4183
|
...f
|
|
4183
4184
|
}) => {
|
|
4184
|
-
const u = ue(null), [p,
|
|
4185
|
+
const u = ue(null), [p, y] = G(!1), [d, w] = G(t), [S, E] = G(-1), [b, C] = G([n]), x = Se(), { anchorRef: g, targetRef: L, anchorWidth: j } = dt({
|
|
4185
4186
|
position: "bottom",
|
|
4186
4187
|
enabled: p
|
|
4187
4188
|
}), O = fe(() => {
|
|
4188
|
-
|
|
4189
|
+
y(!1), u?.current?.focus();
|
|
4189
4190
|
}, []);
|
|
4190
|
-
ht([L,
|
|
4191
|
+
ht([L, g], p, () => O()), Pt(p, L);
|
|
4191
4192
|
const k = (P) => {
|
|
4192
4193
|
e?.(P.id, P.label);
|
|
4193
4194
|
const N = d.findIndex((H) => H.id === P.id);
|
|
@@ -4197,9 +4198,9 @@ const ps = ({
|
|
|
4197
4198
|
}, D = (P) => {
|
|
4198
4199
|
(P.key === "ArrowDown" || P.key === "ArrowUp") && (P.preventDefault(), T());
|
|
4199
4200
|
}, T = () => {
|
|
4200
|
-
s && (o && l ? p ?
|
|
4201
|
-
w(P), E(P.length > 0 ? 0 : -1),
|
|
4202
|
-
}) :
|
|
4201
|
+
s && (o && l ? p ? y(!1) : l(o, void 0).then((P) => {
|
|
4202
|
+
w(P), E(P.length > 0 ? 0 : -1), y(!0);
|
|
4203
|
+
}) : y((P) => !P));
|
|
4203
4204
|
};
|
|
4204
4205
|
return /* @__PURE__ */ m.jsxs(
|
|
4205
4206
|
"div",
|
|
@@ -4211,7 +4212,7 @@ const ps = ({
|
|
|
4211
4212
|
"data-component": "combobox",
|
|
4212
4213
|
children: [
|
|
4213
4214
|
/* @__PURE__ */ m.jsx(
|
|
4214
|
-
|
|
4215
|
+
It,
|
|
4215
4216
|
{
|
|
4216
4217
|
...f,
|
|
4217
4218
|
bindValue: n,
|
|
@@ -4223,7 +4224,7 @@ const ps = ({
|
|
|
4223
4224
|
shapeIcon: "arrow_drop_down",
|
|
4224
4225
|
rotatedShapeIcon: p,
|
|
4225
4226
|
isEditable: s,
|
|
4226
|
-
ref:
|
|
4227
|
+
ref: g,
|
|
4227
4228
|
inputRef: u,
|
|
4228
4229
|
"aria-autocomplete": "list",
|
|
4229
4230
|
variant: "notSelectable"
|
|
@@ -4265,7 +4266,7 @@ function ms({
|
|
|
4265
4266
|
n || i() || /* @__PURE__ */ new Date()
|
|
4266
4267
|
), [f, u] = G(
|
|
4267
4268
|
l ? l.getMonth() : (/* @__PURE__ */ new Date()).getMonth()
|
|
4268
|
-
), [p,
|
|
4269
|
+
), [p, y] = G(
|
|
4269
4270
|
l ? l.getFullYear() : (/* @__PURE__ */ new Date()).getFullYear()
|
|
4270
4271
|
), [d, w] = G(
|
|
4271
4272
|
l ? l.getDate() : null
|
|
@@ -4312,14 +4313,14 @@ function ms({
|
|
|
4312
4313
|
full: a(de.SATURDAY)
|
|
4313
4314
|
}
|
|
4314
4315
|
], x = (F) => t.some((h) => {
|
|
4315
|
-
const v = h.start.getTime(), $ = h.end.getTime(),
|
|
4316
|
-
return
|
|
4317
|
-
}),
|
|
4316
|
+
const v = h.start.getTime(), $ = h.end.getTime(), I = F.getTime();
|
|
4317
|
+
return I >= v && I <= $;
|
|
4318
|
+
}), g = (F) => {
|
|
4318
4319
|
x(F) || (c(F), w(F.getDate()), e && e(Er(F)));
|
|
4319
4320
|
}, L = () => {
|
|
4320
|
-
f === 0 ? (u(11),
|
|
4321
|
+
f === 0 ? (u(11), y(p - 1)) : u(f - 1), w(1);
|
|
4321
4322
|
}, j = () => {
|
|
4322
|
-
f === 11 ? (u(0),
|
|
4323
|
+
f === 11 ? (u(0), y(p + 1)) : u(f + 1), w(1);
|
|
4323
4324
|
}, O = (F, h) => new Date(F, h + 1, 0).getDate(), k = (F, h) => new Date(F, h, 1).getDay(), R = (F) => {
|
|
4324
4325
|
const h = N.findIndex(
|
|
4325
4326
|
(v) => v !== null && v.getDate() === F
|
|
@@ -4328,20 +4329,20 @@ function ms({
|
|
|
4328
4329
|
}, D = (F, h) => {
|
|
4329
4330
|
const v = N[h];
|
|
4330
4331
|
if (!v) return;
|
|
4331
|
-
const $ = O(p, f),
|
|
4332
|
+
const $ = O(p, f), I = v.getDate();
|
|
4332
4333
|
switch (F.key) {
|
|
4333
4334
|
case "ArrowRight":
|
|
4334
4335
|
F.preventDefault();
|
|
4335
4336
|
{
|
|
4336
|
-
let _ =
|
|
4337
|
+
let _ = I + 1, A = new Date(p, f, _);
|
|
4337
4338
|
if (_ > $) {
|
|
4338
4339
|
const V = f === 11 ? p + 1 : p, U = f === 11 ? 0 : f + 1;
|
|
4339
|
-
_ = 1,
|
|
4340
|
+
_ = 1, A = new Date(V, U, _), j(), setTimeout(() => {
|
|
4340
4341
|
T(1, "forward");
|
|
4341
4342
|
}, 0);
|
|
4342
4343
|
return;
|
|
4343
4344
|
}
|
|
4344
|
-
x(
|
|
4345
|
+
x(A) ? T(_, "forward") : R(_);
|
|
4345
4346
|
}
|
|
4346
4347
|
break;
|
|
4347
4348
|
case "Tab":
|
|
@@ -4349,43 +4350,43 @@ function ms({
|
|
|
4349
4350
|
case "ArrowLeft":
|
|
4350
4351
|
F.preventDefault();
|
|
4351
4352
|
{
|
|
4352
|
-
let _ =
|
|
4353
|
+
let _ = I - 1, A = new Date(p, f, _);
|
|
4353
4354
|
if (_ < 1) {
|
|
4354
4355
|
const V = f === 0 ? p - 1 : p, U = f === 0 ? 11 : f - 1, W = O(V, U);
|
|
4355
|
-
_ = W,
|
|
4356
|
+
_ = W, A = new Date(V, U, _), L(), setTimeout(() => {
|
|
4356
4357
|
T(W, "backward");
|
|
4357
4358
|
}, 0);
|
|
4358
4359
|
return;
|
|
4359
4360
|
}
|
|
4360
|
-
x(
|
|
4361
|
+
x(A) ? T(_, "backward") : R(_);
|
|
4361
4362
|
}
|
|
4362
4363
|
break;
|
|
4363
4364
|
case "ArrowUp":
|
|
4364
4365
|
F.preventDefault();
|
|
4365
4366
|
{
|
|
4366
|
-
let _ =
|
|
4367
|
+
let _ = I - 7, A = new Date(p, f, _);
|
|
4367
4368
|
if (_ < 1) {
|
|
4368
4369
|
const V = f === 0 ? p - 1 : p, U = f === 0 ? 11 : f - 1;
|
|
4369
|
-
_ = O(V, U) + _,
|
|
4370
|
+
_ = O(V, U) + _, A = new Date(V, U, _), L(), setTimeout(() => {
|
|
4370
4371
|
T(_, "backward");
|
|
4371
4372
|
}, 0);
|
|
4372
4373
|
return;
|
|
4373
4374
|
}
|
|
4374
|
-
x(
|
|
4375
|
+
x(A) ? T(_, "backward") : R(_);
|
|
4375
4376
|
}
|
|
4376
4377
|
break;
|
|
4377
4378
|
case "ArrowDown":
|
|
4378
4379
|
F.preventDefault();
|
|
4379
4380
|
{
|
|
4380
|
-
let _ =
|
|
4381
|
+
let _ = I + 7, A = new Date(p, f, _);
|
|
4381
4382
|
if (_ > $) {
|
|
4382
4383
|
const V = f === 11 ? p + 1 : p, U = f === 11 ? 0 : f + 1;
|
|
4383
|
-
_ = _ - $,
|
|
4384
|
+
_ = _ - $, A = new Date(V, U, _), j(), setTimeout(() => {
|
|
4384
4385
|
T(_, "forward");
|
|
4385
4386
|
}, 0);
|
|
4386
4387
|
return;
|
|
4387
4388
|
}
|
|
4388
|
-
x(
|
|
4389
|
+
x(A) ? T(_, "forward") : R(_);
|
|
4389
4390
|
}
|
|
4390
4391
|
break;
|
|
4391
4392
|
case "Home":
|
|
@@ -4399,8 +4400,8 @@ function ms({
|
|
|
4399
4400
|
const _ = O(
|
|
4400
4401
|
f === 0 ? p - 1 : p,
|
|
4401
4402
|
f === 0 ? 11 : f - 1
|
|
4402
|
-
),
|
|
4403
|
-
T(
|
|
4403
|
+
), A = Math.min(I, _);
|
|
4404
|
+
T(A, "forward");
|
|
4404
4405
|
}, 0);
|
|
4405
4406
|
break;
|
|
4406
4407
|
case "PageDown":
|
|
@@ -4408,8 +4409,8 @@ function ms({
|
|
|
4408
4409
|
const _ = O(
|
|
4409
4410
|
f === 11 ? p + 1 : p,
|
|
4410
4411
|
f === 11 ? 0 : f + 1
|
|
4411
|
-
),
|
|
4412
|
-
T(
|
|
4412
|
+
), A = Math.min(I, _);
|
|
4413
|
+
T(A, "forward");
|
|
4413
4414
|
}, 0);
|
|
4414
4415
|
break;
|
|
4415
4416
|
case " ":
|
|
@@ -4418,15 +4419,15 @@ function ms({
|
|
|
4418
4419
|
w(v.getDate()), c(v);
|
|
4419
4420
|
break;
|
|
4420
4421
|
case "Enter":
|
|
4421
|
-
F.preventDefault(),
|
|
4422
|
+
F.preventDefault(), g(v);
|
|
4422
4423
|
break;
|
|
4423
4424
|
}
|
|
4424
4425
|
}, T = (F, h) => {
|
|
4425
4426
|
const v = O(p, f);
|
|
4426
4427
|
if (h === "forward") {
|
|
4427
4428
|
for (let $ = F; $ <= v; $++) {
|
|
4428
|
-
const
|
|
4429
|
-
if (!x(
|
|
4429
|
+
const I = new Date(p, f, $);
|
|
4430
|
+
if (!x(I)) {
|
|
4430
4431
|
R($);
|
|
4431
4432
|
return;
|
|
4432
4433
|
}
|
|
@@ -4435,14 +4436,14 @@ function ms({
|
|
|
4435
4436
|
T(1, "forward");
|
|
4436
4437
|
}, 0);
|
|
4437
4438
|
} else {
|
|
4438
|
-
for (let
|
|
4439
|
-
const V = new Date(p, f,
|
|
4439
|
+
for (let A = F; A >= 1; A--) {
|
|
4440
|
+
const V = new Date(p, f, A);
|
|
4440
4441
|
if (!x(V)) {
|
|
4441
|
-
R(
|
|
4442
|
+
R(A);
|
|
4442
4443
|
return;
|
|
4443
4444
|
}
|
|
4444
4445
|
}
|
|
4445
|
-
const $ = f === 0 ? p - 1 : p,
|
|
4446
|
+
const $ = f === 0 ? p - 1 : p, I = f === 0 ? 11 : f - 1, _ = O($, I);
|
|
4446
4447
|
L(), setTimeout(() => {
|
|
4447
4448
|
T(_, "backward");
|
|
4448
4449
|
}, 0);
|
|
@@ -4452,8 +4453,8 @@ function ms({
|
|
|
4452
4453
|
for (let $ = 0; $ < h; $++)
|
|
4453
4454
|
v.push(null);
|
|
4454
4455
|
for (let $ = 1; $ <= F; $++) {
|
|
4455
|
-
const
|
|
4456
|
-
v.push(
|
|
4456
|
+
const I = new Date(p, f, $);
|
|
4457
|
+
v.push(I);
|
|
4457
4458
|
}
|
|
4458
4459
|
return v;
|
|
4459
4460
|
})(), H = [];
|
|
@@ -4505,7 +4506,7 @@ function ms({
|
|
|
4505
4506
|
},
|
|
4506
4507
|
children: [
|
|
4507
4508
|
/* @__PURE__ */ m.jsx(
|
|
4508
|
-
|
|
4509
|
+
xe,
|
|
4509
4510
|
{
|
|
4510
4511
|
onClick: L,
|
|
4511
4512
|
ariaLabel: a(Dt.PREVIOUS_MONTH),
|
|
@@ -4524,7 +4525,7 @@ function ms({
|
|
|
4524
4525
|
}
|
|
4525
4526
|
),
|
|
4526
4527
|
/* @__PURE__ */ m.jsx(
|
|
4527
|
-
|
|
4528
|
+
xe,
|
|
4528
4529
|
{
|
|
4529
4530
|
onClick: j,
|
|
4530
4531
|
ariaLabel: a(Dt.NEXT_MONTH),
|
|
@@ -4556,7 +4557,7 @@ function ms({
|
|
|
4556
4557
|
F.value
|
|
4557
4558
|
)) }) }),
|
|
4558
4559
|
/* @__PURE__ */ m.jsx("tbody", { children: H.map((F, h) => /* @__PURE__ */ m.jsx("tr", { children: F.map((v, $) => {
|
|
4559
|
-
const
|
|
4560
|
+
const I = h * 7 + $;
|
|
4560
4561
|
if (v === null)
|
|
4561
4562
|
return /* @__PURE__ */ m.jsx(
|
|
4562
4563
|
"td",
|
|
@@ -4570,24 +4571,24 @@ function ms({
|
|
|
4570
4571
|
},
|
|
4571
4572
|
`empty-${$}`
|
|
4572
4573
|
);
|
|
4573
|
-
const _ = v.getDate() === o.getDate() && v.getMonth() === o.getMonth() && v.getFullYear() === o.getFullYear(),
|
|
4574
|
+
const _ = v.getDate() === o.getDate() && v.getMonth() === o.getMonth() && v.getFullYear() === o.getFullYear(), A = l && v.getDate() === l.getDate() && v.getMonth() === l.getMonth() && v.getFullYear() === l.getFullYear(), V = d === v.getDate(), U = x(v);
|
|
4574
4575
|
return /* @__PURE__ */ m.jsx(
|
|
4575
4576
|
"td",
|
|
4576
4577
|
{
|
|
4577
4578
|
role: "gridcell",
|
|
4578
|
-
"aria-selected":
|
|
4579
|
+
"aria-selected": A,
|
|
4579
4580
|
tabIndex: V ? 0 : -1,
|
|
4580
|
-
onClick: () =>
|
|
4581
|
-
onKeyDown: (W) => D(W,
|
|
4581
|
+
onClick: () => g(v),
|
|
4582
|
+
onKeyDown: (W) => D(W, I),
|
|
4582
4583
|
"aria-label": `${v.getDate()} ${b[v.getMonth()]} ${v.getFullYear()}`,
|
|
4583
|
-
"data-selected":
|
|
4584
|
+
"data-selected": A,
|
|
4584
4585
|
"aria-disabled": U,
|
|
4585
4586
|
ref: (W) => {
|
|
4586
|
-
E.current[
|
|
4587
|
+
E.current[I] = W;
|
|
4587
4588
|
},
|
|
4588
4589
|
className: z.td(
|
|
4589
4590
|
_,
|
|
4590
|
-
|
|
4591
|
+
A,
|
|
4591
4592
|
V,
|
|
4592
4593
|
U
|
|
4593
4594
|
),
|
|
@@ -4611,13 +4612,13 @@ const gs = ({
|
|
|
4611
4612
|
isEditable: s = !0,
|
|
4612
4613
|
...a
|
|
4613
4614
|
}) => {
|
|
4614
|
-
const i = ue(null), [o, l] = G(!1), [c, f] = G(n || ""), [u, p] = G(""), { anchorRef:
|
|
4615
|
+
const i = ue(null), [o, l] = G(!1), [c, f] = G(n || ""), [u, p] = G(""), { anchorRef: y, targetRef: d } = dt({
|
|
4615
4616
|
position: "bottom",
|
|
4616
4617
|
enabled: o
|
|
4617
4618
|
}), w = fe(() => {
|
|
4618
4619
|
l(!1), i?.current?.focus();
|
|
4619
4620
|
}, []);
|
|
4620
|
-
ht([d,
|
|
4621
|
+
ht([d, y], o, () => {
|
|
4621
4622
|
w();
|
|
4622
4623
|
}), Pt(o, d);
|
|
4623
4624
|
const { format: S, getCurrentLanguage: E } = $e(), b = fe(
|
|
@@ -4640,7 +4641,7 @@ const gs = ({
|
|
|
4640
4641
|
}, [n, S, b]);
|
|
4641
4642
|
const C = () => l((k) => !k), x = () => {
|
|
4642
4643
|
L(u);
|
|
4643
|
-
},
|
|
4644
|
+
}, g = (k) => {
|
|
4644
4645
|
L(k), w();
|
|
4645
4646
|
}, L = (k) => {
|
|
4646
4647
|
const { isoDate: R, isValid: D } = b(k);
|
|
@@ -4662,7 +4663,7 @@ const gs = ({
|
|
|
4662
4663
|
onKeyDown: O,
|
|
4663
4664
|
shapeIcon: "calendar",
|
|
4664
4665
|
onShapeIconClick: C,
|
|
4665
|
-
ref:
|
|
4666
|
+
ref: y,
|
|
4666
4667
|
inputRef: i,
|
|
4667
4668
|
isEditable: s,
|
|
4668
4669
|
size: 10,
|
|
@@ -4673,7 +4674,7 @@ const gs = ({
|
|
|
4673
4674
|
ms,
|
|
4674
4675
|
{
|
|
4675
4676
|
disabledDateRanges: r,
|
|
4676
|
-
onDateChange:
|
|
4677
|
+
onDateChange: g,
|
|
4677
4678
|
initialValue: Lt(c) && c || "",
|
|
4678
4679
|
targetRef: d
|
|
4679
4680
|
}
|
|
@@ -4693,7 +4694,7 @@ const gs = ({
|
|
|
4693
4694
|
onOptionsRequest: f,
|
|
4694
4695
|
onChange: u,
|
|
4695
4696
|
onBlur: p,
|
|
4696
|
-
...
|
|
4697
|
+
...y
|
|
4697
4698
|
}) => {
|
|
4698
4699
|
const d = n.map((E) => E.bindValue), w = (E, b) => {
|
|
4699
4700
|
const C = [...n];
|
|
@@ -4701,7 +4702,7 @@ const gs = ({
|
|
|
4701
4702
|
C.pop();
|
|
4702
4703
|
else {
|
|
4703
4704
|
const x = C.findIndex(
|
|
4704
|
-
(
|
|
4705
|
+
(g) => g.bindValue === E && g.optionalDisplayValue === b
|
|
4705
4706
|
);
|
|
4706
4707
|
x >= 0 ? C.splice(x, 1) : C.push({
|
|
4707
4708
|
bindValue: E,
|
|
@@ -4720,7 +4721,7 @@ const gs = ({
|
|
|
4720
4721
|
children: [
|
|
4721
4722
|
i && /* @__PURE__ */ m.jsx(Ee, { label: i, disabled: o }),
|
|
4722
4723
|
/* @__PURE__ */ m.jsx(
|
|
4723
|
-
|
|
4724
|
+
At,
|
|
4724
4725
|
{
|
|
4725
4726
|
elements: n,
|
|
4726
4727
|
displayMode: e,
|
|
@@ -4733,7 +4734,7 @@ const gs = ({
|
|
|
4733
4734
|
/* @__PURE__ */ m.jsx(
|
|
4734
4735
|
Pn,
|
|
4735
4736
|
{
|
|
4736
|
-
...
|
|
4737
|
+
...y,
|
|
4737
4738
|
bindValue: "",
|
|
4738
4739
|
fun: l,
|
|
4739
4740
|
isEditable: s,
|
|
@@ -4879,7 +4880,7 @@ const Ne = (n, e, t) => ({
|
|
|
4879
4880
|
onEnter: o,
|
|
4880
4881
|
...l
|
|
4881
4882
|
}) => {
|
|
4882
|
-
const { getCurrentLanguage: c } = $e(), f = ue(null), u = c(), { groupingChar: p, decimalChar:
|
|
4883
|
+
const { getCurrentLanguage: c } = $e(), f = ue(null), u = c(), { groupingChar: p, decimalChar: y } = Vn(
|
|
4883
4884
|
() => ns(u, s),
|
|
4884
4885
|
[u, s]
|
|
4885
4886
|
), d = fe(
|
|
@@ -4889,45 +4890,45 @@ const Ne = (n, e, t) => ({
|
|
|
4889
4890
|
useGrouping: !0
|
|
4890
4891
|
}).format(T),
|
|
4891
4892
|
[u]
|
|
4892
|
-
), w = fe(as, [p,
|
|
4893
|
+
), w = fe(as, [p, y]), S = fe(ts, [n, e]), E = a != null && a.toString().includes(".") ? a.toString().split(".")[1].length : 0, [b, C] = G(E), [x, g] = G(
|
|
4893
4894
|
a != null ? d(a, b) : ""
|
|
4894
4895
|
), L = ue(a ?? null);
|
|
4895
4896
|
ne(() => {
|
|
4896
4897
|
if (a == null) {
|
|
4897
|
-
|
|
4898
|
+
g(""), L.current = null;
|
|
4898
4899
|
return;
|
|
4899
4900
|
}
|
|
4900
4901
|
const T = a.toString().includes(".") ? a.toString().split(".")[1].length : 0, P = T === 0 ? b : T;
|
|
4901
|
-
P !== b && C(P),
|
|
4902
|
+
P !== b && C(P), g(d(a, P)), L.current = a;
|
|
4902
4903
|
}, [a, d]);
|
|
4903
4904
|
const j = fe(
|
|
4904
4905
|
(T, P = !1) => {
|
|
4905
4906
|
if (T.trim() === "") {
|
|
4906
|
-
|
|
4907
|
+
g(""), L.current = null, i?.(void 0, ""), P && o?.(void 0);
|
|
4907
4908
|
return;
|
|
4908
4909
|
}
|
|
4909
|
-
const N = w(T, p,
|
|
4910
|
+
const N = w(T, p, y);
|
|
4910
4911
|
if (isNaN(N))
|
|
4911
4912
|
if (L.current != null) {
|
|
4912
4913
|
const H = d(L.current, b);
|
|
4913
|
-
|
|
4914
|
+
g(H);
|
|
4914
4915
|
} else
|
|
4915
|
-
|
|
4916
|
+
g("");
|
|
4916
4917
|
else {
|
|
4917
4918
|
const H = S(N, n, e), B = ss(
|
|
4918
4919
|
T,
|
|
4919
4920
|
p,
|
|
4920
|
-
|
|
4921
|
+
y
|
|
4921
4922
|
);
|
|
4922
4923
|
C(B);
|
|
4923
4924
|
const z = d(H, B);
|
|
4924
|
-
|
|
4925
|
+
g(z), L.current = H, i?.(H, z), P && o?.(H);
|
|
4925
4926
|
}
|
|
4926
4927
|
},
|
|
4927
4928
|
[
|
|
4928
4929
|
w,
|
|
4929
4930
|
p,
|
|
4930
|
-
|
|
4931
|
+
y,
|
|
4931
4932
|
S,
|
|
4932
4933
|
n,
|
|
4933
4934
|
e,
|
|
@@ -4936,7 +4937,7 @@ const Ne = (n, e, t) => ({
|
|
|
4936
4937
|
o,
|
|
4937
4938
|
b
|
|
4938
4939
|
]
|
|
4939
|
-
), O = (T) =>
|
|
4940
|
+
), O = (T) => g(T), k = () => j(x), R = (T) => {
|
|
4940
4941
|
if (T.key === "Enter") {
|
|
4941
4942
|
T.preventDefault(), j(x, !0);
|
|
4942
4943
|
return;
|
|
@@ -5028,11 +5029,11 @@ const Cs = ({
|
|
|
5028
5029
|
error: f,
|
|
5029
5030
|
onBlur: u,
|
|
5030
5031
|
onKeyDown: p,
|
|
5031
|
-
rows:
|
|
5032
|
+
rows: y = 10,
|
|
5032
5033
|
cols: d = 35
|
|
5033
5034
|
}) => {
|
|
5034
|
-
const w =
|
|
5035
|
-
t?.(
|
|
5035
|
+
const w = Se(), S = `${w}-helper`, E = f ? "danger" : s, b = c || !!f, C = (g) => {
|
|
5036
|
+
t?.(g.target.value);
|
|
5036
5037
|
}, x = {
|
|
5037
5038
|
wrapper: "smp-textarea-wrapper",
|
|
5038
5039
|
container: `smp-textarea ${n ? "smp-textarea-disabled" : ""} ${r ? "smp-textarea-placeholder" : ""} ${E ? `smp-textarea-${E}` : ""} ${a ? `smp-textarea-${a}` : ""} ${i ? "" : "smp-textarea-readOnly"}`
|
|
@@ -5054,7 +5055,7 @@ const Cs = ({
|
|
|
5054
5055
|
"aria-label": o ? void 0 : l,
|
|
5055
5056
|
"aria-labelledby": o ? w : void 0,
|
|
5056
5057
|
"aria-describedby": b ? S : void 0,
|
|
5057
|
-
rows:
|
|
5058
|
+
rows: y,
|
|
5058
5059
|
cols: d
|
|
5059
5060
|
}
|
|
5060
5061
|
),
|
|
@@ -5070,7 +5071,7 @@ const Cs = ({
|
|
|
5070
5071
|
] });
|
|
5071
5072
|
};
|
|
5072
5073
|
var jt = /* @__PURE__ */ ((n) => (n.PAGE_DIRECTION = "pageDirection", n.LINE_DIRECTION = "lineDirection", n))(jt || {});
|
|
5073
|
-
const
|
|
5074
|
+
const Ae = {
|
|
5074
5075
|
"smp-radio": "_smp-radio_1fqe8_1",
|
|
5075
5076
|
"smp-radio-options-container": "_smp-radio-options-container_1fqe8_10",
|
|
5076
5077
|
"smp-radio-horizontal": "_smp-radio-horizontal_1fqe8_16",
|
|
@@ -5088,33 +5089,33 @@ const Ie = {
|
|
|
5088
5089
|
label: o,
|
|
5089
5090
|
...l
|
|
5090
5091
|
}) => {
|
|
5091
|
-
const [c, f] = G(s), u =
|
|
5092
|
+
const [c, f] = G(s), u = Se();
|
|
5092
5093
|
ne(() => {
|
|
5093
|
-
!c && a && i && a(i, void 0).then((
|
|
5094
|
-
console.error("Error during loading options (radio)",
|
|
5094
|
+
!c && a && i && a(i, void 0).then((g) => f(g)).catch((g) => {
|
|
5095
|
+
console.error("Error during loading options (radio)", g);
|
|
5095
5096
|
});
|
|
5096
5097
|
}, [c, a, i]);
|
|
5097
|
-
const p = parseInt(r ?? "", 10),
|
|
5098
|
-
container:
|
|
5099
|
-
optionsContainer: `${
|
|
5100
|
-
option: `${
|
|
5098
|
+
const p = parseInt(r ?? "", 10), y = t === jt.LINE_DIRECTION, d = y && !isNaN(p), w = d ? Ae["smp-radio-horizontal-grid"] : y ? Ae["smp-radio-horizontal"] : "", S = d ? { gridTemplateColumns: `repeat(${p}, 1fr)` } : void 0, E = {
|
|
5099
|
+
container: Ae["smp-radio"],
|
|
5100
|
+
optionsContainer: `${Ae["smp-radio-options-container"]} ${w}`,
|
|
5101
|
+
option: `${Ae["smp-radio-element"]} ${n ? Ae["smp-radio-disabled"] : ""}`
|
|
5101
5102
|
}, b = () => {
|
|
5102
5103
|
n || l.onBlur?.();
|
|
5103
|
-
}, C = (
|
|
5104
|
-
n || l.onChange?.(
|
|
5105
|
-
}, x =
|
|
5104
|
+
}, C = (g) => {
|
|
5105
|
+
n || l.onChange?.(g.id, g.label);
|
|
5106
|
+
}, x = Se();
|
|
5106
5107
|
return /* @__PURE__ */ m.jsxs("div", { "smp-id": "radio-container", className: E.container, id: u, children: [
|
|
5107
5108
|
o && /* @__PURE__ */ m.jsx(Ee, { label: o, disabled: n, htmlFor: u }),
|
|
5108
|
-
/* @__PURE__ */ m.jsx("div", { className: E.optionsContainer, style: S, children: c?.map((
|
|
5109
|
+
/* @__PURE__ */ m.jsx("div", { className: E.optionsContainer, style: S, children: c?.map((g, L) => /* @__PURE__ */ m.jsxs("label", { className: E.option, children: [
|
|
5109
5110
|
/* @__PURE__ */ m.jsx(
|
|
5110
5111
|
"input",
|
|
5111
5112
|
{
|
|
5112
5113
|
type: "radio",
|
|
5113
5114
|
name: x,
|
|
5114
|
-
value:
|
|
5115
|
+
value: g.id,
|
|
5115
5116
|
disabled: n,
|
|
5116
|
-
checked:
|
|
5117
|
-
onChange: () => C(
|
|
5117
|
+
checked: g.id === l.bindValue,
|
|
5118
|
+
onChange: () => C(g),
|
|
5118
5119
|
onBlur: b
|
|
5119
5120
|
}
|
|
5120
5121
|
),
|
|
@@ -5123,8 +5124,8 @@ const Ie = {
|
|
|
5123
5124
|
{
|
|
5124
5125
|
variant: "body",
|
|
5125
5126
|
bindValue: Re(
|
|
5126
|
-
|
|
5127
|
-
|
|
5127
|
+
g.id,
|
|
5128
|
+
g.label,
|
|
5128
5129
|
e
|
|
5129
5130
|
)
|
|
5130
5131
|
}
|
|
@@ -5199,44 +5200,44 @@ const Ie = {
|
|
|
5199
5200
|
isEditable: r = !0,
|
|
5200
5201
|
...s
|
|
5201
5202
|
}) => {
|
|
5202
|
-
const a = ue(null), [i, o] = G(!1), [l, c] = G(n || ""), [f, u] = G(""), { anchorRef: p, targetRef:
|
|
5203
|
+
const a = ue(null), [i, o] = G(!1), [l, c] = G(n || ""), [f, u] = G(""), { anchorRef: p, targetRef: y } = dt({
|
|
5203
5204
|
position: "bottom",
|
|
5204
5205
|
enabled: i
|
|
5205
5206
|
}), d = fe(() => {
|
|
5206
5207
|
o(!1), a?.current?.focus();
|
|
5207
5208
|
}, []);
|
|
5208
|
-
ht([
|
|
5209
|
-
const
|
|
5210
|
-
c(
|
|
5209
|
+
ht([y, p], i, () => o(!1)), Pt(i, y), ne(() => {
|
|
5210
|
+
const g = n || "", L = Cn(g) ? g : n || "";
|
|
5211
|
+
c(g), u(L);
|
|
5211
5212
|
}, [n]), ne(() => {
|
|
5212
|
-
const
|
|
5213
|
+
const g = (L) => {
|
|
5213
5214
|
L.key === "Escape" && o(!1);
|
|
5214
5215
|
};
|
|
5215
|
-
return i && document.addEventListener("keydown",
|
|
5216
|
-
document.removeEventListener("keydown",
|
|
5216
|
+
return i && document.addEventListener("keydown", g), () => {
|
|
5217
|
+
document.removeEventListener("keydown", g);
|
|
5217
5218
|
};
|
|
5218
5219
|
}, [i]);
|
|
5219
5220
|
const w = () => {
|
|
5220
|
-
r && o((
|
|
5221
|
-
}, S = (
|
|
5222
|
-
u(
|
|
5223
|
-
}, E = (
|
|
5224
|
-
const O = Rs(
|
|
5221
|
+
r && o((g) => !g);
|
|
5222
|
+
}, S = (g) => {
|
|
5223
|
+
u(g);
|
|
5224
|
+
}, E = (g, L, j) => {
|
|
5225
|
+
const O = Rs(g, L, j);
|
|
5225
5226
|
c(O), u(O), t?.(O), d();
|
|
5226
5227
|
}, b = () => {
|
|
5227
5228
|
x(f);
|
|
5228
|
-
}, C = (
|
|
5229
|
-
|
|
5230
|
-
}, x = (
|
|
5231
|
-
if (
|
|
5229
|
+
}, C = (g) => {
|
|
5230
|
+
g.key === "Enter" && (g.preventDefault(), x(f));
|
|
5231
|
+
}, x = (g) => {
|
|
5232
|
+
if (g.trim() === "") {
|
|
5232
5233
|
c(""), u(""), t?.("");
|
|
5233
5234
|
return;
|
|
5234
5235
|
}
|
|
5235
|
-
Cn(
|
|
5236
|
+
Cn(g) ? (c(g), u(g), t?.(g)) : u(g);
|
|
5236
5237
|
};
|
|
5237
5238
|
return /* @__PURE__ */ m.jsxs("div", { "data-component": "time-picker", children: [
|
|
5238
5239
|
/* @__PURE__ */ m.jsx(
|
|
5239
|
-
|
|
5240
|
+
It,
|
|
5240
5241
|
{
|
|
5241
5242
|
...s,
|
|
5242
5243
|
bindValue: f,
|
|
@@ -5256,7 +5257,7 @@ const Ie = {
|
|
|
5256
5257
|
{
|
|
5257
5258
|
value: _s(l),
|
|
5258
5259
|
onChange: E,
|
|
5259
|
-
targetRef:
|
|
5260
|
+
targetRef: y,
|
|
5260
5261
|
isOpen: i
|
|
5261
5262
|
}
|
|
5262
5263
|
) })
|
|
@@ -5314,7 +5315,7 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5314
5315
|
fun: o,
|
|
5315
5316
|
...l
|
|
5316
5317
|
}) => {
|
|
5317
|
-
const [c, f] = G(a), u =
|
|
5318
|
+
const [c, f] = G(a), u = Se(), p = (d) => {
|
|
5318
5319
|
e || l.onChange?.(d.id, d.label);
|
|
5319
5320
|
};
|
|
5320
5321
|
ne(() => {
|
|
@@ -5322,7 +5323,7 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5322
5323
|
console.error("Error during loading options (button group)", d);
|
|
5323
5324
|
});
|
|
5324
5325
|
}, [c, i, o]);
|
|
5325
|
-
const
|
|
5326
|
+
const y = {
|
|
5326
5327
|
container: `smp-button-group-container ${le(s) ? "smp-button-group-vertical" : ""}`,
|
|
5327
5328
|
optionsContainer: `smp-button-group-options-container ${le(s) ? "smp-button-group-vertical" : ""}`
|
|
5328
5329
|
};
|
|
@@ -5330,12 +5331,12 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5330
5331
|
"div",
|
|
5331
5332
|
{
|
|
5332
5333
|
"smp-id": "buttonGroup-container",
|
|
5333
|
-
className:
|
|
5334
|
+
className: y.container,
|
|
5334
5335
|
id: u,
|
|
5335
5336
|
children: [
|
|
5336
5337
|
t && /* @__PURE__ */ m.jsx(Ee, { label: t, disabled: e, htmlFor: u }),
|
|
5337
|
-
/* @__PURE__ */ m.jsx("div", { className:
|
|
5338
|
-
|
|
5338
|
+
/* @__PURE__ */ m.jsx("div", { className: y.optionsContainer, children: c?.map((d) => /* @__PURE__ */ m.jsx(
|
|
5339
|
+
xe,
|
|
5339
5340
|
{
|
|
5340
5341
|
appearance: "raised",
|
|
5341
5342
|
variant: "base",
|
|
@@ -5371,7 +5372,7 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5371
5372
|
onChange: f,
|
|
5372
5373
|
onClick: u,
|
|
5373
5374
|
onEnter: p,
|
|
5374
|
-
onBlur:
|
|
5375
|
+
onBlur: y,
|
|
5375
5376
|
onOptionsRequest: d,
|
|
5376
5377
|
onContextMenu: w,
|
|
5377
5378
|
isEditable: S,
|
|
@@ -5385,7 +5386,7 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5385
5386
|
fun: a,
|
|
5386
5387
|
data: r
|
|
5387
5388
|
}, C = b.data && b.data.size && b.data.size >= 256 && (e === "ITX" || !e) ? "MEM" : e, x = {
|
|
5388
|
-
onBlur:
|
|
5389
|
+
onBlur: y,
|
|
5389
5390
|
onOptionsRequest: d,
|
|
5390
5391
|
fun: a,
|
|
5391
5392
|
icon: s,
|
|
@@ -5395,55 +5396,68 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5395
5396
|
isEditable: S,
|
|
5396
5397
|
size: b.data && b.data.size ? b.data.size : b.data?.displayMode && Ss(b.data.displayMode || "CodeOnly"),
|
|
5397
5398
|
...r
|
|
5398
|
-
},
|
|
5399
|
+
}, g = (D, T, P) => yr(t) ? Ne(D, new it(t, T).getLegacyValue()) : br(t) ? Ne(D, new ft(t, T).getLegacyValue()) : Ne(D, T, P), L = (D, T) => Ne(
|
|
5399
5400
|
D,
|
|
5400
5401
|
new Ge(t, T, E).getLegacyValue()
|
|
5401
5402
|
), j = (D) => Ne(b, new ot(t, D).getLegacyValue()), O = (D) => ws(b, D), k = () => {
|
|
5402
5403
|
switch (C) {
|
|
5403
|
-
case
|
|
5404
|
+
case Q.AUTOCOMPLETE: {
|
|
5404
5405
|
const D = {
|
|
5405
5406
|
...x,
|
|
5406
5407
|
bindValue: t.k,
|
|
5407
5408
|
optionalDisplayValue: n,
|
|
5408
5409
|
onChange: (T, P) => {
|
|
5409
|
-
f?.(
|
|
5410
|
+
f?.(g(b, T, P));
|
|
5410
5411
|
}
|
|
5411
5412
|
};
|
|
5412
5413
|
return /* @__PURE__ */ m.jsx(Pn, { ...D });
|
|
5413
5414
|
}
|
|
5414
|
-
case
|
|
5415
|
+
case Q.BUTTON: {
|
|
5415
5416
|
const D = r?.label && typeof r.label == "string" ? r.label : void 0, T = {
|
|
5416
5417
|
...x,
|
|
5417
5418
|
bindValue: D || "",
|
|
5418
5419
|
showText: !!D,
|
|
5419
5420
|
title: n,
|
|
5420
5421
|
onClick: () => {
|
|
5421
|
-
u?.(
|
|
5422
|
+
u?.(g(b, t.k));
|
|
5422
5423
|
}
|
|
5423
5424
|
};
|
|
5424
|
-
return /* @__PURE__ */ m.jsx(
|
|
5425
|
+
return /* @__PURE__ */ m.jsx(xe, { ...T });
|
|
5425
5426
|
}
|
|
5426
|
-
case
|
|
5427
|
+
case Q.MULTI_CONFIG: {
|
|
5428
|
+
const D = {
|
|
5429
|
+
...x,
|
|
5430
|
+
bindValue: o || "",
|
|
5431
|
+
showText: !!o,
|
|
5432
|
+
title: n,
|
|
5433
|
+
icon: s ?? "list",
|
|
5434
|
+
onClick: () => {
|
|
5435
|
+
u?.(g(b, t.k));
|
|
5436
|
+
}
|
|
5437
|
+
};
|
|
5438
|
+
return /* @__PURE__ */ m.jsx(xe, { ...D });
|
|
5439
|
+
}
|
|
5440
|
+
case Q.BUTTON_LIST: {
|
|
5427
5441
|
const D = {
|
|
5428
5442
|
...x,
|
|
5429
5443
|
options: c,
|
|
5430
5444
|
onClick: (T, P) => {
|
|
5431
5445
|
const N = { ...b, fun: P };
|
|
5432
|
-
u?.(
|
|
5446
|
+
u?.(g(N, T));
|
|
5433
5447
|
}
|
|
5434
5448
|
};
|
|
5435
5449
|
return /* @__PURE__ */ m.jsx(us, { ...D });
|
|
5436
5450
|
}
|
|
5437
|
-
case
|
|
5451
|
+
case Q.CHIP: {
|
|
5438
5452
|
const D = {
|
|
5439
5453
|
...x,
|
|
5440
5454
|
elements: En(b)
|
|
5441
5455
|
};
|
|
5442
|
-
return /* @__PURE__ */ m.jsx(
|
|
5456
|
+
return /* @__PURE__ */ m.jsx(At, { ...D });
|
|
5443
5457
|
}
|
|
5444
|
-
case
|
|
5445
|
-
case
|
|
5446
|
-
const D = e ===
|
|
5458
|
+
case Q.CHECKBOX:
|
|
5459
|
+
case Q.SWITCH: {
|
|
5460
|
+
const D = e === Q.SWITCH, T = {
|
|
5447
5461
|
...x,
|
|
5448
5462
|
bindValue: ot.fromDataObj(t).getValue(),
|
|
5449
5463
|
optionalDisplayValue: n,
|
|
@@ -5454,40 +5468,40 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5454
5468
|
};
|
|
5455
5469
|
return /* @__PURE__ */ m.jsx(ds, { ...T });
|
|
5456
5470
|
}
|
|
5457
|
-
case
|
|
5471
|
+
case Q.COMBOBOX: {
|
|
5458
5472
|
const D = {
|
|
5459
5473
|
...x,
|
|
5460
5474
|
bindValue: t.k,
|
|
5461
5475
|
optionalDisplayValue: n,
|
|
5462
5476
|
onChange: (T, P) => {
|
|
5463
|
-
f?.(
|
|
5477
|
+
f?.(g(b, T, P));
|
|
5464
5478
|
}
|
|
5465
5479
|
};
|
|
5466
5480
|
return /* @__PURE__ */ m.jsx(ps, { ...D });
|
|
5467
5481
|
}
|
|
5468
|
-
case
|
|
5482
|
+
case Q.DATE: {
|
|
5469
5483
|
const D = {
|
|
5470
5484
|
...x,
|
|
5471
5485
|
bindValue: it.fromDataObj(t).getValue(),
|
|
5472
5486
|
onChange: (T) => {
|
|
5473
|
-
f?.(
|
|
5487
|
+
f?.(g(b, T));
|
|
5474
5488
|
}
|
|
5475
5489
|
};
|
|
5476
5490
|
return /* @__PURE__ */ m.jsx(gs, { ...D });
|
|
5477
5491
|
}
|
|
5478
|
-
case
|
|
5479
|
-
case
|
|
5492
|
+
case Q.ICON:
|
|
5493
|
+
case Q.IMAGE: {
|
|
5480
5494
|
const D = {
|
|
5481
5495
|
...x,
|
|
5482
5496
|
icon: s,
|
|
5483
5497
|
isInteractable: !!x.fun,
|
|
5484
5498
|
onClick: () => {
|
|
5485
|
-
u?.(
|
|
5499
|
+
u?.(g(b, t.k));
|
|
5486
5500
|
}
|
|
5487
5501
|
};
|
|
5488
5502
|
return /* @__PURE__ */ m.jsx(ce, { ...D });
|
|
5489
5503
|
}
|
|
5490
|
-
case
|
|
5504
|
+
case Q.INPUT_NUMBER: {
|
|
5491
5505
|
const D = {
|
|
5492
5506
|
...x,
|
|
5493
5507
|
bindValue: Ge.fromDataObj(t, E).getValue(),
|
|
@@ -5497,19 +5511,19 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5497
5511
|
};
|
|
5498
5512
|
return /* @__PURE__ */ m.jsx(Es, { ...D });
|
|
5499
5513
|
}
|
|
5500
|
-
case
|
|
5501
|
-
case
|
|
5514
|
+
case Q.EDITOR:
|
|
5515
|
+
case Q.MEMO: {
|
|
5502
5516
|
const D = {
|
|
5503
5517
|
...x,
|
|
5504
5518
|
bindValue: t.k,
|
|
5505
5519
|
optionalDisplayValue: n,
|
|
5506
5520
|
onChange: (T) => {
|
|
5507
|
-
f?.(
|
|
5521
|
+
f?.(g(b, T));
|
|
5508
5522
|
}
|
|
5509
5523
|
};
|
|
5510
5524
|
return /* @__PURE__ */ m.jsx(Cs, { ...D });
|
|
5511
5525
|
}
|
|
5512
|
-
case
|
|
5526
|
+
case Q.MULTI_AUTOCOMPLETE: {
|
|
5513
5527
|
const D = {
|
|
5514
5528
|
...x,
|
|
5515
5529
|
elements: En(b),
|
|
@@ -5519,63 +5533,63 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5519
5533
|
};
|
|
5520
5534
|
return /* @__PURE__ */ m.jsx(ys, { ...D });
|
|
5521
5535
|
}
|
|
5522
|
-
case
|
|
5536
|
+
case Q.PASSWORD: {
|
|
5523
5537
|
const D = {
|
|
5524
5538
|
...x,
|
|
5525
5539
|
bindValue: t.k,
|
|
5526
5540
|
onChange: (T) => {
|
|
5527
|
-
f?.(
|
|
5541
|
+
f?.(g(b, T));
|
|
5528
5542
|
}
|
|
5529
5543
|
};
|
|
5530
5544
|
return /* @__PURE__ */ m.jsx(bs, { ...D });
|
|
5531
5545
|
}
|
|
5532
|
-
case
|
|
5546
|
+
case Q.RADIO: {
|
|
5533
5547
|
const D = {
|
|
5534
5548
|
...x,
|
|
5535
5549
|
bindValue: t.k,
|
|
5536
5550
|
onChange: (T, P) => {
|
|
5537
|
-
f?.(
|
|
5551
|
+
f?.(g(b, T, P));
|
|
5538
5552
|
}
|
|
5539
5553
|
};
|
|
5540
5554
|
return /* @__PURE__ */ m.jsx(Ts, { ...D });
|
|
5541
5555
|
}
|
|
5542
|
-
case
|
|
5556
|
+
case Q.SPOTLIGHT: {
|
|
5543
5557
|
const D = {
|
|
5544
5558
|
...x,
|
|
5545
5559
|
bindValue: t.k,
|
|
5546
5560
|
onEnter: (T) => {
|
|
5547
|
-
p?.(
|
|
5561
|
+
p?.(g(b, T));
|
|
5548
5562
|
}
|
|
5549
5563
|
};
|
|
5550
5564
|
return /* @__PURE__ */ m.jsx(vs, { ...D });
|
|
5551
5565
|
}
|
|
5552
|
-
case
|
|
5566
|
+
case Q.TEXT_FIELD: {
|
|
5553
5567
|
const D = {
|
|
5554
5568
|
...x,
|
|
5555
5569
|
bindValue: t.k,
|
|
5556
5570
|
optionalDisplayValue: n,
|
|
5557
5571
|
onChange: (T) => {
|
|
5558
|
-
f?.(
|
|
5572
|
+
f?.(g(b, T));
|
|
5559
5573
|
}
|
|
5560
5574
|
};
|
|
5561
5575
|
return /* @__PURE__ */ m.jsx(je, { ...D });
|
|
5562
5576
|
}
|
|
5563
|
-
case
|
|
5577
|
+
case Q.BUTTON_GROUP: {
|
|
5564
5578
|
const D = {
|
|
5565
5579
|
...x,
|
|
5566
5580
|
bindValue: t.k,
|
|
5567
5581
|
onChange: (T, P) => {
|
|
5568
|
-
f?.(
|
|
5582
|
+
f?.(g(b, T, P));
|
|
5569
5583
|
}
|
|
5570
5584
|
};
|
|
5571
5585
|
return /* @__PURE__ */ m.jsx(ks, { ...D });
|
|
5572
5586
|
}
|
|
5573
|
-
case
|
|
5587
|
+
case Q.TIME: {
|
|
5574
5588
|
const D = {
|
|
5575
5589
|
...x,
|
|
5576
5590
|
bindValue: ft.fromDataObj(t).getValue(),
|
|
5577
5591
|
onChange: (T) => {
|
|
5578
|
-
f?.(
|
|
5592
|
+
f?.(g(b, T));
|
|
5579
5593
|
}
|
|
5580
5594
|
};
|
|
5581
5595
|
return /* @__PURE__ */ m.jsx(Ds, { ...D });
|
|
@@ -5617,14 +5631,14 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5617
5631
|
const u = l.cells[f.name], p = {
|
|
5618
5632
|
...u,
|
|
5619
5633
|
id: f.name,
|
|
5620
|
-
onChange: (
|
|
5634
|
+
onChange: (y) => {
|
|
5621
5635
|
a((d) => d && {
|
|
5622
5636
|
...d,
|
|
5623
5637
|
[f.name]: {
|
|
5624
5638
|
...d[f.name],
|
|
5625
5639
|
obj: {
|
|
5626
5640
|
...d[f.name].obj,
|
|
5627
|
-
k:
|
|
5641
|
+
k: y.obj.k
|
|
5628
5642
|
}
|
|
5629
5643
|
}
|
|
5630
5644
|
});
|
|
@@ -5634,11 +5648,11 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5634
5648
|
...u
|
|
5635
5649
|
});
|
|
5636
5650
|
},
|
|
5637
|
-
onEnter: (
|
|
5638
|
-
t && t(
|
|
5651
|
+
onEnter: (y) => {
|
|
5652
|
+
t && t(y);
|
|
5639
5653
|
},
|
|
5640
|
-
onContextMenu: (
|
|
5641
|
-
r && r(
|
|
5654
|
+
onContextMenu: (y, d) => {
|
|
5655
|
+
r && r(y, d);
|
|
5642
5656
|
}
|
|
5643
5657
|
};
|
|
5644
5658
|
return {
|
|
@@ -5669,14 +5683,14 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5669
5683
|
loadOptions: l,
|
|
5670
5684
|
onContextMenu: c
|
|
5671
5685
|
}) => {
|
|
5672
|
-
const [f, u] = G(), [p,
|
|
5686
|
+
const [f, u] = G(), [p, y] = G(t ?? !0), d = ue(null), w = s.trim() ? s : "100vh", S = fe(
|
|
5673
5687
|
(x) => {
|
|
5674
5688
|
if (!x?.rows?.length || !x?.columns?.length)
|
|
5675
5689
|
return {};
|
|
5676
|
-
const
|
|
5690
|
+
const g = x.rows[0];
|
|
5677
5691
|
return x.columns.filter((L) => L.visible ?? !0).reduce((L, j) => {
|
|
5678
|
-
const O =
|
|
5679
|
-
if (!O || !p && le(r) && O.shape !==
|
|
5692
|
+
const O = g.cells[j.name];
|
|
5693
|
+
if (!O || !p && le(r) && O.shape !== Q.BUTTON && O.shape !== Q.BUTTON_LIST)
|
|
5680
5694
|
return L;
|
|
5681
5695
|
const k = {
|
|
5682
5696
|
...O,
|
|
@@ -5697,7 +5711,7 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5697
5711
|
c && c(R, D);
|
|
5698
5712
|
}
|
|
5699
5713
|
};
|
|
5700
|
-
return l && O.shape ==
|
|
5714
|
+
return l && O.shape == Q.BUTTON_LIST && (k.onOptionsRequest = (R, D) => l(R, D).then(
|
|
5701
5715
|
(T) => Ls(T)
|
|
5702
5716
|
)), !p && le(r) && (k.data = {
|
|
5703
5717
|
...k.data,
|
|
@@ -5714,7 +5728,7 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5714
5728
|
), E = fe(() => {
|
|
5715
5729
|
o?.();
|
|
5716
5730
|
}, [o]), b = () => {
|
|
5717
|
-
le(r) ?
|
|
5731
|
+
le(r) ? y((x) => !x) : (y(!1), o?.());
|
|
5718
5732
|
};
|
|
5719
5733
|
if (ne(() => {
|
|
5720
5734
|
u(S(n));
|
|
@@ -5728,12 +5742,12 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5728
5742
|
const x = getComputedStyle(d.current).getPropertyValue(
|
|
5729
5743
|
"--smp-drawer-slide-transition"
|
|
5730
5744
|
);
|
|
5731
|
-
let
|
|
5732
|
-
x.endsWith("ms") ?
|
|
5745
|
+
let g = Number(x);
|
|
5746
|
+
x.endsWith("ms") ? g = parseFloat(x) : x.endsWith("s") && (g = parseFloat(x) * 1e3), setTimeout(() => {
|
|
5733
5747
|
u(S(n));
|
|
5734
|
-
},
|
|
5748
|
+
}, g / 2);
|
|
5735
5749
|
}, [p, r]), ne(() => {
|
|
5736
|
-
t !== void 0 && !le(r) &&
|
|
5750
|
+
t !== void 0 && !le(r) && y(t);
|
|
5737
5751
|
}, [r, t]), !n?.rows?.length || !n.columns?.length)
|
|
5738
5752
|
return null;
|
|
5739
5753
|
const C = {
|
|
@@ -5806,7 +5820,7 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5806
5820
|
IconColor: f = "var(--smp-dashList-color-base)",
|
|
5807
5821
|
NumberFormat: u,
|
|
5808
5822
|
ForceUM: p,
|
|
5809
|
-
UmColName:
|
|
5823
|
+
UmColName: y,
|
|
5810
5824
|
UmColor: d = "var(--smp-dashList-color-base)",
|
|
5811
5825
|
ForceValue: w,
|
|
5812
5826
|
ValueColName: S,
|
|
@@ -5814,7 +5828,7 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5814
5828
|
SelectLayout: b = "1",
|
|
5815
5829
|
onClick: C
|
|
5816
5830
|
}) => {
|
|
5817
|
-
const x = "N/A",
|
|
5831
|
+
const x = "N/A", g = e?.columns || [], L = e?.rows || [], j = L.length > 0, O = "--smp-dashList-color", k = "smp-layout", R = "descr", D = "icon", T = "um", P = "value", N = i || "1em", H = "18px", B = "--smp-dashList-columns", z = "--smp-dashList-fontSize", Z = {
|
|
5818
5832
|
dash: (Y = "1") => {
|
|
5819
5833
|
const X = h(Y), re = X, ae = v(X, R), ke = v(X, D), Me = v(X, T), ge = v(X, P);
|
|
5820
5834
|
return {
|
|
@@ -5827,7 +5841,7 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5827
5841
|
},
|
|
5828
5842
|
dashList: `smp-dash-list ${le(a) ? "smp-dash-list-fill-space" : ""}
|
|
5829
5843
|
${le(o) ? "smp-dash-list-horizontal" : ""}`
|
|
5830
|
-
}, { format: F } = $e(), h = (Y) => `${k}-${Y}`, v = (Y, X) => `${Y}__${X}`, $ = (Y) => `${O}-${Y}`,
|
|
5844
|
+
}, { format: F } = $e(), h = (Y) => `${k}-${Y}`, v = (Y, X) => `${Y}__${X}`, $ = (Y) => `${O}-${Y}`, I = (Y) => {
|
|
5831
5845
|
const X = /R(\d{1,3})G(\d{1,3})B(\d{1,3})/;
|
|
5832
5846
|
if (X.test(Y)) {
|
|
5833
5847
|
const ae = Y.match(X) || [];
|
|
@@ -5837,24 +5851,24 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5837
5851
|
return Y;
|
|
5838
5852
|
}, _ = (Y) => {
|
|
5839
5853
|
if (!u) return Y;
|
|
5840
|
-
const [X, re] =
|
|
5854
|
+
const [X, re] = A(u).map(
|
|
5841
5855
|
(Le) => parseInt(Le || "0")
|
|
5842
5856
|
), ae = "0,0" + (re ? "." + "0".repeat(re) : ""), ke = F(Y, ae, "it");
|
|
5843
5857
|
if (!X) return ke;
|
|
5844
5858
|
const [Me, ge] = ke.split(",");
|
|
5845
5859
|
return Me + (ge ? `,${ge}` : "");
|
|
5846
|
-
},
|
|
5860
|
+
}, A = (Y) => Y.includes(";") ? Y.split(";") : [Y], V = (Y) => {
|
|
5847
5861
|
const X = (ae) => {
|
|
5848
5862
|
if (ae)
|
|
5849
5863
|
return Y?.cells[ae]?.obj.k;
|
|
5850
5864
|
}, re = (ae) => {
|
|
5851
|
-
if (!(
|
|
5852
|
-
return Y?.cells[
|
|
5865
|
+
if (!(g.length <= ae))
|
|
5866
|
+
return Y?.cells[g[ae].name]?.obj?.k;
|
|
5853
5867
|
};
|
|
5854
5868
|
return {
|
|
5855
5869
|
descr: t || X(r) || re(2) || "",
|
|
5856
5870
|
icon: l || X(c) || re(3) || "",
|
|
5857
|
-
um: p || X(
|
|
5871
|
+
um: p || X(y) || re(1) || "",
|
|
5858
5872
|
value: w || X(S) || re(0) || ""
|
|
5859
5873
|
};
|
|
5860
5874
|
}, U = (Y) => {
|
|
@@ -5880,9 +5894,9 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5880
5894
|
};
|
|
5881
5895
|
})(b), se = (Y) => {
|
|
5882
5896
|
const { descr: X, icon: re, um: ae, value: ke } = V(Y), Me = {
|
|
5883
|
-
[$(R)]:
|
|
5884
|
-
[$(T)]:
|
|
5885
|
-
[$(P)]:
|
|
5897
|
+
[$(R)]: I(s),
|
|
5898
|
+
[$(T)]: I(d),
|
|
5899
|
+
[$(P)]: I(E)
|
|
5886
5900
|
}, ge = [], Le = _(ke);
|
|
5887
5901
|
switch (b) {
|
|
5888
5902
|
case "2":
|
|
@@ -5918,9 +5932,9 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5918
5932
|
"smp-table": "_smp-table_1qmju_1",
|
|
5919
5933
|
"smp-headerCell": "_smp-headerCell_1qmju_35",
|
|
5920
5934
|
"smp-resizer": "_smp-resizer_1qmju_44"
|
|
5921
|
-
},
|
|
5922
|
-
rowContent:
|
|
5923
|
-
clickable:
|
|
5935
|
+
}, Is = "_rowContent_20wit_2", As = "_clickable_20wit_21", Ps = "_indent_20wit_26", Ns = "_toggle_20wit_32", Ms = "_cell_20wit_38", Fs = "_leftSection_20wit_46", Ce = {
|
|
5936
|
+
rowContent: Is,
|
|
5937
|
+
clickable: As,
|
|
5924
5938
|
indent: Ps,
|
|
5925
5939
|
toggle: Ns,
|
|
5926
5940
|
cell: Ms,
|
|
@@ -5954,7 +5968,7 @@ const Nn = ({
|
|
|
5954
5968
|
toggle: `${Ce.toggle}`,
|
|
5955
5969
|
indent: `${Ce.indent}`,
|
|
5956
5970
|
cell: `${Ce.cell}`
|
|
5957
|
-
},
|
|
5971
|
+
}, y = (b) => /* @__PURE__ */ m.jsx(Oe, { ...b }), d = () => /* @__PURE__ */ m.jsx("span", { className: p.toggle, children: c && /* @__PURE__ */ m.jsx(
|
|
5958
5972
|
ce,
|
|
5959
5973
|
{
|
|
5960
5974
|
icon: a ? "arrow_drop_right" : "arrow_drop_down",
|
|
@@ -5996,7 +6010,7 @@ const Nn = ({
|
|
|
5996
6010
|
]
|
|
5997
6011
|
}
|
|
5998
6012
|
),
|
|
5999
|
-
n.cells && Object.keys(n.cells).length > 0 && Object.entries(n.cells).map(([x,
|
|
6013
|
+
n.cells && Object.keys(n.cells).length > 0 && Object.entries(n.cells).map(([x, g]) => /* @__PURE__ */ m.jsx(
|
|
6000
6014
|
"td",
|
|
6001
6015
|
{
|
|
6002
6016
|
className: p.cell,
|
|
@@ -6005,12 +6019,12 @@ const Nn = ({
|
|
|
6005
6019
|
minWidth: e[x],
|
|
6006
6020
|
height: `${r}px`
|
|
6007
6021
|
},
|
|
6008
|
-
children:
|
|
6009
|
-
...
|
|
6022
|
+
children: y({
|
|
6023
|
+
...g,
|
|
6010
6024
|
id: x
|
|
6011
6025
|
})
|
|
6012
6026
|
},
|
|
6013
|
-
Us(
|
|
6027
|
+
Us(g) || x
|
|
6014
6028
|
))
|
|
6015
6029
|
]
|
|
6016
6030
|
}
|
|
@@ -6081,35 +6095,35 @@ function Gs(n, e, t, r) {
|
|
|
6081
6095
|
const s = [];
|
|
6082
6096
|
let a = 0;
|
|
6083
6097
|
return i(n, 0, []), { flatRows: s, offset: a };
|
|
6084
|
-
function i(u, p,
|
|
6098
|
+
function i(u, p, y) {
|
|
6085
6099
|
if (p >= e.length) {
|
|
6086
6100
|
f(u);
|
|
6087
6101
|
return;
|
|
6088
6102
|
}
|
|
6089
6103
|
const d = e[p].column, w = o(u, d);
|
|
6090
6104
|
for (const [S, E] of w) {
|
|
6091
|
-
const b = [...
|
|
6105
|
+
const b = [...y, S], C = l(b, p), x = r.has(C);
|
|
6092
6106
|
s.push(c(S, C, p, x)), a += t, x && i(E, p + 1, b);
|
|
6093
6107
|
}
|
|
6094
6108
|
}
|
|
6095
6109
|
function o(u, p) {
|
|
6096
|
-
const
|
|
6110
|
+
const y = /* @__PURE__ */ new Map();
|
|
6097
6111
|
for (const d of u) {
|
|
6098
6112
|
const w = d.cells[p]?.decode ?? "N/D";
|
|
6099
|
-
|
|
6113
|
+
y.has(w) || y.set(w, []), y.get(w).push(d);
|
|
6100
6114
|
}
|
|
6101
|
-
return
|
|
6115
|
+
return y;
|
|
6102
6116
|
}
|
|
6103
6117
|
function l(u, p) {
|
|
6104
6118
|
return `group-${u.join("-")}-${p}`;
|
|
6105
6119
|
}
|
|
6106
|
-
function c(u, p,
|
|
6120
|
+
function c(u, p, y, d) {
|
|
6107
6121
|
return {
|
|
6108
6122
|
isGroup: !0,
|
|
6109
6123
|
value: u,
|
|
6110
6124
|
cells: {},
|
|
6111
6125
|
rowId: p,
|
|
6112
|
-
level:
|
|
6126
|
+
level: y,
|
|
6113
6127
|
isExpanded: d
|
|
6114
6128
|
};
|
|
6115
6129
|
}
|
|
@@ -6140,7 +6154,7 @@ const Hs = ({
|
|
|
6140
6154
|
children: [
|
|
6141
6155
|
/* @__PURE__ */ m.jsx("td", { children: /* @__PURE__ */ m.jsx(ce, { icon: "groups" }) }),
|
|
6142
6156
|
/* @__PURE__ */ m.jsx("td", { children: /* @__PURE__ */ m.jsx(
|
|
6143
|
-
|
|
6157
|
+
At,
|
|
6144
6158
|
{
|
|
6145
6159
|
elements: i,
|
|
6146
6160
|
isEditable: t,
|
|
@@ -6209,7 +6223,7 @@ const Hs = ({
|
|
|
6209
6223
|
}) => {
|
|
6210
6224
|
const [i, o] = G(
|
|
6211
6225
|
n ?? { columns: [], rows: [] }
|
|
6212
|
-
), [l, c] = G(r || []), [f, u] = G(/* @__PURE__ */ new Set()), p = ue(null), [
|
|
6226
|
+
), [l, c] = G(r || []), [f, u] = G(/* @__PURE__ */ new Set()), p = ue(null), [y, d] = Ks({
|
|
6213
6227
|
columns: i?.columns ?? [],
|
|
6214
6228
|
rows: i?.rows ?? [],
|
|
6215
6229
|
containerRef: p,
|
|
@@ -6243,8 +6257,8 @@ const Hs = ({
|
|
|
6243
6257
|
itemHeight: e,
|
|
6244
6258
|
containerHeight: t,
|
|
6245
6259
|
overscan: 5
|
|
6246
|
-
}),
|
|
6247
|
-
const k = j.clientX, R =
|
|
6260
|
+
}), g = (j, O) => {
|
|
6261
|
+
const k = j.clientX, R = y[O], D = (P) => {
|
|
6248
6262
|
const N = P.clientX - k, H = Math.max(50, R + N);
|
|
6249
6263
|
d((B) => ({
|
|
6250
6264
|
...B,
|
|
@@ -6286,9 +6300,9 @@ const Hs = ({
|
|
|
6286
6300
|
O.dataTransfer.setData("text/plain", j.name);
|
|
6287
6301
|
},
|
|
6288
6302
|
style: {
|
|
6289
|
-
width:
|
|
6290
|
-
minWidth:
|
|
6291
|
-
maxWidth:
|
|
6303
|
+
width: y[j.name],
|
|
6304
|
+
minWidth: y[j.name],
|
|
6305
|
+
maxWidth: y[j.name]
|
|
6292
6306
|
},
|
|
6293
6307
|
children: [
|
|
6294
6308
|
/* @__PURE__ */ m.jsx(
|
|
@@ -6302,7 +6316,7 @@ const Hs = ({
|
|
|
6302
6316
|
"div",
|
|
6303
6317
|
{
|
|
6304
6318
|
className: L.resizer,
|
|
6305
|
-
onMouseDown: (O) =>
|
|
6319
|
+
onMouseDown: (O) => g(O, j.name),
|
|
6306
6320
|
role: "region"
|
|
6307
6321
|
}
|
|
6308
6322
|
)
|
|
@@ -6332,7 +6346,7 @@ const Hs = ({
|
|
|
6332
6346
|
Nn,
|
|
6333
6347
|
{
|
|
6334
6348
|
row: j,
|
|
6335
|
-
columnWidths:
|
|
6349
|
+
columnWidths: y,
|
|
6336
6350
|
rowHeight: e,
|
|
6337
6351
|
offsetTop: k,
|
|
6338
6352
|
isGroup: !1
|
|
@@ -6340,7 +6354,7 @@ const Hs = ({
|
|
|
6340
6354
|
`row-${R}`
|
|
6341
6355
|
);
|
|
6342
6356
|
}) }),
|
|
6343
|
-
/* @__PURE__ */ m.jsx(qs, { columns: i.columns, columnWidths:
|
|
6357
|
+
/* @__PURE__ */ m.jsx(qs, { columns: i.columns, columnWidths: y })
|
|
6344
6358
|
] })
|
|
6345
6359
|
}
|
|
6346
6360
|
);
|
|
@@ -6362,16 +6376,16 @@ const Hs = ({
|
|
|
6362
6376
|
if (!n)
|
|
6363
6377
|
return;
|
|
6364
6378
|
const w = { ...n };
|
|
6365
|
-
return e && (w.shape = e), w.shape == null && (w.shape =
|
|
6379
|
+
return e && (w.shape = e), w.shape == null && (w.shape = Q.TEXT_FIELD), s && (w.obj = vr(s)), w;
|
|
6366
6380
|
});
|
|
6367
6381
|
}, [n, s, e]);
|
|
6368
|
-
const
|
|
6382
|
+
const y = {
|
|
6369
6383
|
container: `smp-field-container ${le(t) ? `smp-field-position-${r}` : ""}`
|
|
6370
6384
|
}, d = () => {
|
|
6371
6385
|
le(t) || o?.(f);
|
|
6372
6386
|
};
|
|
6373
6387
|
if (f)
|
|
6374
|
-
return /* @__PURE__ */ m.jsxs("div", { className:
|
|
6388
|
+
return /* @__PURE__ */ m.jsxs("div", { className: y.container, children: [
|
|
6375
6389
|
/* @__PURE__ */ m.jsx(
|
|
6376
6390
|
"div",
|
|
6377
6391
|
{
|
|
@@ -6398,7 +6412,7 @@ const Hs = ({
|
|
|
6398
6412
|
),
|
|
6399
6413
|
le(t) && //TODO: translation
|
|
6400
6414
|
/* @__PURE__ */ m.jsx(
|
|
6401
|
-
|
|
6415
|
+
xe,
|
|
6402
6416
|
{
|
|
6403
6417
|
optionalDisplayValue: "Confirm",
|
|
6404
6418
|
onClick: () => l?.(f),
|
|
@@ -6433,12 +6447,12 @@ const Hs = ({
|
|
|
6433
6447
|
onContextMenu: f,
|
|
6434
6448
|
onButtonClick: u
|
|
6435
6449
|
}) => {
|
|
6436
|
-
const [p,
|
|
6450
|
+
const [p, y] = G({}), { translate: d } = $e(), w = Se();
|
|
6437
6451
|
ne(() => {
|
|
6438
|
-
|
|
6452
|
+
y(x(n));
|
|
6439
6453
|
}, [n]);
|
|
6440
6454
|
const S = (O, k) => {
|
|
6441
|
-
if (
|
|
6455
|
+
if (y((R) => ({
|
|
6442
6456
|
...R,
|
|
6443
6457
|
[O]: {
|
|
6444
6458
|
...R[O],
|
|
@@ -6454,15 +6468,15 @@ const Hs = ({
|
|
|
6454
6468
|
// FIXME: remove this when webup.js will not use value
|
|
6455
6469
|
value: k.obj.k
|
|
6456
6470
|
}
|
|
6457
|
-
})), s && (k.shape ==
|
|
6471
|
+
})), s && (k.shape == Q.CHECKBOX || k.shape == Q.SWITCH)) {
|
|
6458
6472
|
const R = structuredClone(p);
|
|
6459
6473
|
R[O].obj.k = k.obj.k, R[O].value = k.obj.k, o({
|
|
6460
|
-
value:
|
|
6474
|
+
value: g(R),
|
|
6461
6475
|
cell: O
|
|
6462
6476
|
});
|
|
6463
6477
|
}
|
|
6464
6478
|
}, E = (O) => {
|
|
6465
|
-
const k =
|
|
6479
|
+
const k = g(p);
|
|
6466
6480
|
o({
|
|
6467
6481
|
value: k,
|
|
6468
6482
|
cell: O
|
|
@@ -6486,7 +6500,7 @@ const Hs = ({
|
|
|
6486
6500
|
obj: p[O].obj,
|
|
6487
6501
|
fun: p[O].fun,
|
|
6488
6502
|
cellId: O
|
|
6489
|
-
})).valid ||
|
|
6503
|
+
})).valid || y((R) => ({
|
|
6490
6504
|
...R,
|
|
6491
6505
|
[O]: {
|
|
6492
6506
|
...R[O],
|
|
@@ -6496,7 +6510,7 @@ const Hs = ({
|
|
|
6496
6510
|
}
|
|
6497
6511
|
}
|
|
6498
6512
|
}))), p[O].inputSettings?.checkValueOnExit)) {
|
|
6499
|
-
const k =
|
|
6513
|
+
const k = g(p);
|
|
6500
6514
|
l?.({
|
|
6501
6515
|
value: k,
|
|
6502
6516
|
cell: O
|
|
@@ -6517,12 +6531,12 @@ const Hs = ({
|
|
|
6517
6531
|
dSep: a
|
|
6518
6532
|
}
|
|
6519
6533
|
};
|
|
6520
|
-
return T.isEditable == null && (T.isEditable = !0), t && (T.isEditable = !1), T.isEditable && T.shape == null && (T.shape =
|
|
6534
|
+
return T.isEditable == null && (T.isEditable = !0), t && (T.isEditable = !1), T.isEditable && T.shape == null && (T.shape = Q.TEXT_FIELD), {
|
|
6521
6535
|
...R,
|
|
6522
6536
|
[D.name]: T
|
|
6523
6537
|
};
|
|
6524
6538
|
}, {});
|
|
6525
|
-
},
|
|
6539
|
+
}, g = (O) => ({
|
|
6526
6540
|
before: n,
|
|
6527
6541
|
after: {
|
|
6528
6542
|
type: "SmeupDataTable",
|
|
@@ -6543,7 +6557,7 @@ const Hs = ({
|
|
|
6543
6557
|
},
|
|
6544
6558
|
id: `command-${k}`,
|
|
6545
6559
|
key: `command-${k}`,
|
|
6546
|
-
shape:
|
|
6560
|
+
shape: Q.BUTTON,
|
|
6547
6561
|
onClick: () => E(O.obj.k)
|
|
6548
6562
|
}
|
|
6549
6563
|
)) || [];
|
|
@@ -6552,7 +6566,7 @@ const Hs = ({
|
|
|
6552
6566
|
Oe,
|
|
6553
6567
|
{
|
|
6554
6568
|
decode: d(Te.CONFIRM_BUTTON),
|
|
6555
|
-
shape:
|
|
6569
|
+
shape: Q.BUTTON,
|
|
6556
6570
|
id: "",
|
|
6557
6571
|
obj: {
|
|
6558
6572
|
t: "",
|
|
@@ -6591,7 +6605,7 @@ const Hs = ({
|
|
|
6591
6605
|
onBlur: () => C(O.id),
|
|
6592
6606
|
onContextMenu: f,
|
|
6593
6607
|
onClick: () => {
|
|
6594
|
-
O.shape == "BTN" && b(O.id, O.fun);
|
|
6608
|
+
(O.shape == "BTN" || O.shape == "CFM") && b(O.id, O.fun);
|
|
6595
6609
|
},
|
|
6596
6610
|
data: {
|
|
6597
6611
|
...O.data,
|
|
@@ -6624,7 +6638,7 @@ const Hs = ({
|
|
|
6624
6638
|
export {
|
|
6625
6639
|
na as AppBar,
|
|
6626
6640
|
Pn as Autocomplete,
|
|
6627
|
-
|
|
6641
|
+
xe as Button,
|
|
6628
6642
|
us as ButtonList,
|
|
6629
6643
|
ds as Checkbox,
|
|
6630
6644
|
ps as Combobox,
|