@sme.up/ketchup2 2.0.0-SNAPSHOT-20250829130014 → 2.0.0-SNAPSHOT-20250903085309
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/components/data-table/filtering/data-table-filter-utils.d.ts.map +1 -1
- package/dist/components/toolbar/toolbar.d.ts.map +1 -1
- package/dist/functional-components/filter-group/filter-builder.d.ts.map +1 -1
- package/dist/ketchup2.cjs.js +12 -12
- package/dist/ketchup2.es.js +343 -335
- package/package.json +1 -1
package/dist/ketchup2.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as st from "react";
|
|
2
|
-
import mt, { useState as H, useEffect as re, useRef as ue, useCallback as oe, useLayoutEffect as
|
|
3
|
-
import { createPortal as
|
|
2
|
+
import mt, { useState as H, useEffect as re, useRef as ue, useCallback as oe, useLayoutEffect as Sn, useId as ke, useMemo as Qe, createElement as En } from "react";
|
|
3
|
+
import { createPortal as Cn } from "react-dom";
|
|
4
4
|
var ot = { exports: {} }, qe = {};
|
|
5
5
|
/**
|
|
6
6
|
* @license React
|
|
@@ -11,10 +11,10 @@ var ot = { exports: {} }, qe = {};
|
|
|
11
11
|
* This source code is licensed under the MIT license found in the
|
|
12
12
|
* LICENSE file in the root directory of this source tree.
|
|
13
13
|
*/
|
|
14
|
-
var
|
|
15
|
-
function
|
|
16
|
-
if (
|
|
17
|
-
|
|
14
|
+
var ir;
|
|
15
|
+
function Tn() {
|
|
16
|
+
if (ir) return qe;
|
|
17
|
+
ir = 1;
|
|
18
18
|
var t = Symbol.for("react.transitional.element"), e = Symbol.for("react.fragment");
|
|
19
19
|
function r(n, s, o) {
|
|
20
20
|
var a = null;
|
|
@@ -43,9 +43,9 @@ var He = {};
|
|
|
43
43
|
* This source code is licensed under the MIT license found in the
|
|
44
44
|
* LICENSE file in the root directory of this source tree.
|
|
45
45
|
*/
|
|
46
|
-
var
|
|
47
|
-
function
|
|
48
|
-
return
|
|
46
|
+
var lr;
|
|
47
|
+
function _n() {
|
|
48
|
+
return lr || (lr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
49
49
|
function t(m) {
|
|
50
50
|
if (m == null) return null;
|
|
51
51
|
if (typeof m == "function")
|
|
@@ -276,12 +276,12 @@ React keys must be passed directly to JSX without using spread:
|
|
|
276
276
|
};
|
|
277
277
|
}()), He;
|
|
278
278
|
}
|
|
279
|
-
var
|
|
280
|
-
function
|
|
281
|
-
return
|
|
279
|
+
var cr;
|
|
280
|
+
function jn() {
|
|
281
|
+
return cr || (cr = 1, process.env.NODE_ENV === "production" ? ot.exports = Tn() : ot.exports = _n()), ot.exports;
|
|
282
282
|
}
|
|
283
|
-
var p =
|
|
284
|
-
function
|
|
283
|
+
var p = jn();
|
|
284
|
+
function On(t, e) {
|
|
285
285
|
if (t == null) return {};
|
|
286
286
|
var r = {};
|
|
287
287
|
for (var n in t) if ({}.hasOwnProperty.call(t, n)) {
|
|
@@ -304,7 +304,7 @@ function Ft(t, e) {
|
|
|
304
304
|
return r.__proto__ = n, r;
|
|
305
305
|
}, Ft(t, e);
|
|
306
306
|
}
|
|
307
|
-
function
|
|
307
|
+
function Rn(t, e) {
|
|
308
308
|
t.prototype = Object.create(e.prototype), t.prototype.constructor = t, Ft(t, e);
|
|
309
309
|
}
|
|
310
310
|
function _t(t, e, r) {
|
|
@@ -318,10 +318,10 @@ var at = {};
|
|
|
318
318
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
319
319
|
* MIT Licensed
|
|
320
320
|
*/
|
|
321
|
-
var
|
|
322
|
-
function
|
|
323
|
-
if (
|
|
324
|
-
|
|
321
|
+
var ur;
|
|
322
|
+
function Dn() {
|
|
323
|
+
if (ur) return at;
|
|
324
|
+
ur = 1;
|
|
325
325
|
var t = /; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g, e = /^[\u000b\u0020-\u007e\u0080-\u00ff]+$/, r = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/, n = /\\([\u000b\u0020-\u00ff])/g, s = /([\\"])/g, o = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;
|
|
326
326
|
at.format = a, at.parse = i;
|
|
327
327
|
function a(u) {
|
|
@@ -380,9 +380,9 @@ function Rn() {
|
|
|
380
380
|
}
|
|
381
381
|
return at;
|
|
382
382
|
}
|
|
383
|
-
var
|
|
383
|
+
var kn = Dn(), Be = /* @__PURE__ */ new Map(), Zr = function(e) {
|
|
384
384
|
return e.cloneNode(!0);
|
|
385
|
-
},
|
|
385
|
+
}, dr = function() {
|
|
386
386
|
return window.location.protocol === "file:";
|
|
387
387
|
}, en = function(e, r, n) {
|
|
388
388
|
var s = new XMLHttpRequest();
|
|
@@ -392,14 +392,14 @@ var Dn = Rn(), Be = /* @__PURE__ */ new Map(), Zr = function(e) {
|
|
|
392
392
|
var o = s.getResponseHeader("Content-Type");
|
|
393
393
|
if (!o)
|
|
394
394
|
throw new Error("Content type not found");
|
|
395
|
-
var a =
|
|
395
|
+
var a = kn.parse(o).type;
|
|
396
396
|
if (!(a === "image/svg+xml" || a === "text/plain"))
|
|
397
397
|
throw new Error("Invalid content type: ".concat(a));
|
|
398
398
|
}
|
|
399
399
|
if (s.readyState === 4) {
|
|
400
400
|
if (s.status === 404 || s.responseXML === null)
|
|
401
|
-
throw new Error(
|
|
402
|
-
if (s.status === 200 ||
|
|
401
|
+
throw new Error(dr() ? "Note: SVG injection ajax calls do not work locally without adjusting security settings in your browser. Or consider using a local webserver." : "Unable to load SVG file: " + e);
|
|
402
|
+
if (s.status === 200 || dr() && s.status === 0)
|
|
403
403
|
n(null, s);
|
|
404
404
|
else
|
|
405
405
|
throw new Error("There was a problem injecting the SVG: " + s.status + " " + s.statusText);
|
|
@@ -411,9 +411,9 @@ var Dn = Rn(), Be = /* @__PURE__ */ new Map(), Zr = function(e) {
|
|
|
411
411
|
throw i;
|
|
412
412
|
}
|
|
413
413
|
}, s.open("GET", e), s.withCredentials = r, s.overrideMimeType && s.overrideMimeType("text/xml"), s.send();
|
|
414
|
-
}, De = {},
|
|
414
|
+
}, De = {}, fr = function(e, r) {
|
|
415
415
|
De[e] = De[e] || [], De[e].push(r);
|
|
416
|
-
},
|
|
416
|
+
}, Nn = function(e) {
|
|
417
417
|
for (var r = function(a, i) {
|
|
418
418
|
setTimeout(function() {
|
|
419
419
|
if (Array.isArray(De[e])) {
|
|
@@ -423,11 +423,11 @@ var Dn = Rn(), Be = /* @__PURE__ */ new Map(), Zr = function(e) {
|
|
|
423
423
|
}, 0);
|
|
424
424
|
}, n = 0, s = De[e].length; n < s; n++)
|
|
425
425
|
r(n);
|
|
426
|
-
},
|
|
426
|
+
}, $n = function(e, r, n) {
|
|
427
427
|
if (Be.has(e)) {
|
|
428
428
|
var s = Be.get(e);
|
|
429
429
|
if (s === void 0) {
|
|
430
|
-
|
|
430
|
+
fr(e, n);
|
|
431
431
|
return;
|
|
432
432
|
}
|
|
433
433
|
if (s instanceof SVGSVGElement) {
|
|
@@ -435,18 +435,18 @@ var Dn = Rn(), Be = /* @__PURE__ */ new Map(), Zr = function(e) {
|
|
|
435
435
|
return;
|
|
436
436
|
}
|
|
437
437
|
}
|
|
438
|
-
Be.set(e, void 0),
|
|
438
|
+
Be.set(e, void 0), fr(e, n), en(e, r, function(o, a) {
|
|
439
439
|
var i;
|
|
440
|
-
o ? Be.set(e, o) : ((i = a.responseXML) === null || i === void 0 ? void 0 : i.documentElement) instanceof SVGSVGElement && Be.set(e, a.responseXML.documentElement),
|
|
440
|
+
o ? Be.set(e, o) : ((i = a.responseXML) === null || i === void 0 ? void 0 : i.documentElement) instanceof SVGSVGElement && Be.set(e, a.responseXML.documentElement), Nn(e);
|
|
441
441
|
});
|
|
442
|
-
},
|
|
442
|
+
}, Ln = function(e, r, n) {
|
|
443
443
|
en(e, r, function(s, o) {
|
|
444
444
|
var a;
|
|
445
445
|
s ? n(s) : ((a = o.responseXML) === null || a === void 0 ? void 0 : a.documentElement) instanceof SVGSVGElement && n(null, o.responseXML.documentElement);
|
|
446
446
|
});
|
|
447
|
-
},
|
|
448
|
-
return ++
|
|
449
|
-
}, Se = [],
|
|
447
|
+
}, An = 0, In = function() {
|
|
448
|
+
return ++An;
|
|
449
|
+
}, Se = [], pr = {}, Pn = "http://www.w3.org/2000/svg", jt = "http://www.w3.org/1999/xlink", hr = function(e, r, n, s, o, a, i) {
|
|
450
450
|
var l = e.getAttribute("data-src") || e.getAttribute("src");
|
|
451
451
|
if (!l) {
|
|
452
452
|
i(new Error("Invalid data-src or src attribute"));
|
|
@@ -457,7 +457,7 @@ var Dn = Rn(), Be = /* @__PURE__ */ new Map(), Zr = function(e) {
|
|
|
457
457
|
return;
|
|
458
458
|
}
|
|
459
459
|
Se.push(e), e.setAttribute("src", "");
|
|
460
|
-
var c = s ?
|
|
460
|
+
var c = s ? $n : Ln;
|
|
461
461
|
c(l, o, function(d, u) {
|
|
462
462
|
if (!u) {
|
|
463
463
|
Se.splice(Se.indexOf(e), 1), e = null, i(d);
|
|
@@ -496,7 +496,7 @@ var Dn = Rn(), Be = /* @__PURE__ */ new Map(), Zr = function(e) {
|
|
|
496
496
|
Object.keys(x).forEach(function(N) {
|
|
497
497
|
T = N, D = x[N], y = u.querySelectorAll(T + "[id]");
|
|
498
498
|
for (var j = function(R, $) {
|
|
499
|
-
O = y[R].id, F = O + "-" +
|
|
499
|
+
O = y[R].id, F = O + "-" + In();
|
|
500
500
|
var P;
|
|
501
501
|
Array.prototype.forEach.call(D, function(z) {
|
|
502
502
|
P = u.querySelectorAll("[" + z + '*="' + O + '"]');
|
|
@@ -519,31 +519,31 @@ var Dn = Rn(), Be = /* @__PURE__ */ new Map(), Zr = function(e) {
|
|
|
519
519
|
u.removeAttribute("xmlns:a");
|
|
520
520
|
for (var W = u.querySelectorAll("script"), k = [], C, E, A = 0, I = W.length; A < I; A++)
|
|
521
521
|
E = W[A].getAttribute("type"), (!E || E === "application/ecmascript" || E === "application/javascript" || E === "text/javascript") && (C = W[A].innerText || W[A].textContent, C && k.push(C), u.removeChild(W[A]));
|
|
522
|
-
if (k.length > 0 && (r === "always" || r === "once" && !
|
|
522
|
+
if (k.length > 0 && (r === "always" || r === "once" && !pr[l])) {
|
|
523
523
|
for (var V = 0, U = k.length; V < U; V++)
|
|
524
524
|
new Function(k[V])(window);
|
|
525
|
-
|
|
525
|
+
pr[l] = !0;
|
|
526
526
|
}
|
|
527
527
|
var X = u.querySelectorAll("style");
|
|
528
528
|
if (Array.prototype.forEach.call(X, function(N) {
|
|
529
529
|
N.textContent += "";
|
|
530
|
-
}), u.setAttribute("xmlns",
|
|
530
|
+
}), u.setAttribute("xmlns", Pn), u.setAttribute("xmlns:xlink", jt), a(u), !e.parentNode) {
|
|
531
531
|
Se.splice(Se.indexOf(e), 1), e = null, i(new Error("Parent node is null"));
|
|
532
532
|
return;
|
|
533
533
|
}
|
|
534
534
|
e.parentNode.replaceChild(u, e), Se.splice(Se.indexOf(e), 1), e = null, i(null, u);
|
|
535
535
|
});
|
|
536
|
-
},
|
|
536
|
+
}, Fn = function(e, r) {
|
|
537
537
|
var n = r === void 0 ? {} : r, s = n.afterAll, o = s === void 0 ? function() {
|
|
538
538
|
} : s, a = n.afterEach, i = a === void 0 ? function() {
|
|
539
539
|
} : a, l = n.beforeEach, c = l === void 0 ? function() {
|
|
540
540
|
} : l, d = n.cacheRequests, u = d === void 0 ? !0 : d, f = n.evalScripts, g = f === void 0 ? "never" : f, h = n.httpRequestWithCredentials, b = h === void 0 ? !1 : h, w = n.renumerateIRIElements, v = w === void 0 ? !0 : w;
|
|
541
541
|
if (e && "length" in e)
|
|
542
542
|
for (var _ = 0, x = 0, T = e.length; x < T; x++)
|
|
543
|
-
|
|
543
|
+
hr(e[x], g, v, u, b, c, function(y, D) {
|
|
544
544
|
i(y, D), e && "length" in e && e.length === ++_ && o(_);
|
|
545
545
|
});
|
|
546
|
-
else e ?
|
|
546
|
+
else e ? hr(e, g, v, u, b, c, function(y, D) {
|
|
547
547
|
i(y, D), o(1), e = null;
|
|
548
548
|
}) : o(0);
|
|
549
549
|
}, it = { exports: {} }, lt = { exports: {} }, ne = {};
|
|
@@ -555,10 +555,10 @@ var Dn = Rn(), Be = /* @__PURE__ */ new Map(), Zr = function(e) {
|
|
|
555
555
|
* This source code is licensed under the MIT license found in the
|
|
556
556
|
* LICENSE file in the root directory of this source tree.
|
|
557
557
|
*/
|
|
558
|
-
var
|
|
559
|
-
function
|
|
560
|
-
if (
|
|
561
|
-
|
|
558
|
+
var mr;
|
|
559
|
+
function Mn() {
|
|
560
|
+
if (mr) return ne;
|
|
561
|
+
mr = 1;
|
|
562
562
|
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, s = t ? Symbol.for("react.strict_mode") : 60108, o = t ? Symbol.for("react.profiler") : 60114, a = t ? Symbol.for("react.provider") : 60109, i = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, c = t ? Symbol.for("react.concurrent_mode") : 60111, d = t ? Symbol.for("react.forward_ref") : 60112, u = t ? Symbol.for("react.suspense") : 60113, f = t ? Symbol.for("react.suspense_list") : 60120, g = t ? Symbol.for("react.memo") : 60115, h = t ? Symbol.for("react.lazy") : 60116, b = t ? Symbol.for("react.block") : 60121, w = t ? Symbol.for("react.fundamental") : 60117, v = t ? Symbol.for("react.responder") : 60118, _ = t ? Symbol.for("react.scope") : 60119;
|
|
563
563
|
function x(y) {
|
|
564
564
|
if (typeof y == "object" && y !== null) {
|
|
@@ -630,9 +630,9 @@ var se = {};
|
|
|
630
630
|
* This source code is licensed under the MIT license found in the
|
|
631
631
|
* LICENSE file in the root directory of this source tree.
|
|
632
632
|
*/
|
|
633
|
-
var
|
|
634
|
-
function
|
|
635
|
-
return
|
|
633
|
+
var gr;
|
|
634
|
+
function Vn() {
|
|
635
|
+
return gr || (gr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
636
636
|
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, s = t ? Symbol.for("react.strict_mode") : 60108, o = t ? Symbol.for("react.profiler") : 60114, a = t ? Symbol.for("react.provider") : 60109, i = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, c = t ? Symbol.for("react.concurrent_mode") : 60111, d = t ? Symbol.for("react.forward_ref") : 60112, u = t ? Symbol.for("react.suspense") : 60113, f = t ? Symbol.for("react.suspense_list") : 60120, g = t ? Symbol.for("react.memo") : 60115, h = t ? Symbol.for("react.lazy") : 60116, b = t ? Symbol.for("react.block") : 60121, w = t ? Symbol.for("react.fundamental") : 60117, v = t ? Symbol.for("react.responder") : 60118, _ = t ? Symbol.for("react.scope") : 60119;
|
|
637
637
|
function x(M) {
|
|
638
638
|
return typeof M == "string" || typeof M == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
@@ -713,19 +713,19 @@ function Mn() {
|
|
|
713
713
|
se.AsyncMode = y, se.ConcurrentMode = D, se.ContextConsumer = O, se.ContextProvider = F, se.Element = W, se.ForwardRef = k, se.Fragment = C, se.Lazy = E, se.Memo = A, se.Portal = I, se.Profiler = V, se.StrictMode = U, se.Suspense = X, se.isAsyncMode = j, se.isConcurrentMode = m, se.isContextConsumer = S, se.isContextProvider = L, se.isElement = R, se.isForwardRef = $, se.isFragment = P, se.isLazy = G, se.isMemo = q, se.isPortal = Y, se.isProfiler = Q, se.isStrictMode = K, se.isSuspense = ae, se.isValidElementType = x, se.typeOf = T;
|
|
714
714
|
}()), se;
|
|
715
715
|
}
|
|
716
|
-
var
|
|
716
|
+
var br;
|
|
717
717
|
function tn() {
|
|
718
|
-
return
|
|
718
|
+
return br || (br = 1, process.env.NODE_ENV === "production" ? lt.exports = Mn() : lt.exports = Vn()), lt.exports;
|
|
719
719
|
}
|
|
720
720
|
/*
|
|
721
721
|
object-assign
|
|
722
722
|
(c) Sindre Sorhus
|
|
723
723
|
@license MIT
|
|
724
724
|
*/
|
|
725
|
-
var Ot,
|
|
726
|
-
function
|
|
727
|
-
if (
|
|
728
|
-
|
|
725
|
+
var Ot, yr;
|
|
726
|
+
function Un() {
|
|
727
|
+
if (yr) return Ot;
|
|
728
|
+
yr = 1;
|
|
729
729
|
var t = Object.getOwnPropertySymbols, e = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
|
|
730
730
|
function n(o) {
|
|
731
731
|
if (o == null)
|
|
@@ -768,25 +768,25 @@ function Vn() {
|
|
|
768
768
|
return l;
|
|
769
769
|
}, Ot;
|
|
770
770
|
}
|
|
771
|
-
var Rt,
|
|
772
|
-
function
|
|
773
|
-
if (
|
|
774
|
-
|
|
771
|
+
var Rt, vr;
|
|
772
|
+
function Jt() {
|
|
773
|
+
if (vr) return Rt;
|
|
774
|
+
vr = 1;
|
|
775
775
|
var t = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
776
776
|
return Rt = t, Rt;
|
|
777
777
|
}
|
|
778
|
-
var Dt,
|
|
778
|
+
var Dt, xr;
|
|
779
779
|
function rn() {
|
|
780
|
-
return
|
|
780
|
+
return xr || (xr = 1, Dt = Function.call.bind(Object.prototype.hasOwnProperty)), Dt;
|
|
781
781
|
}
|
|
782
|
-
var kt,
|
|
783
|
-
function
|
|
784
|
-
if (
|
|
785
|
-
|
|
782
|
+
var kt, wr;
|
|
783
|
+
function Bn() {
|
|
784
|
+
if (wr) return kt;
|
|
785
|
+
wr = 1;
|
|
786
786
|
var t = function() {
|
|
787
787
|
};
|
|
788
788
|
if (process.env.NODE_ENV !== "production") {
|
|
789
|
-
var e = /* @__PURE__ */
|
|
789
|
+
var e = /* @__PURE__ */ Jt(), r = {}, n = /* @__PURE__ */ rn();
|
|
790
790
|
t = function(o) {
|
|
791
791
|
var a = "Warning: " + o;
|
|
792
792
|
typeof console < "u" && console.error(a);
|
|
@@ -828,11 +828,11 @@ function Un() {
|
|
|
828
828
|
process.env.NODE_ENV !== "production" && (r = {});
|
|
829
829
|
}, kt = s, kt;
|
|
830
830
|
}
|
|
831
|
-
var Nt,
|
|
832
|
-
function
|
|
833
|
-
if (
|
|
834
|
-
|
|
835
|
-
var t = tn(), e =
|
|
831
|
+
var Nt, Sr;
|
|
832
|
+
function Wn() {
|
|
833
|
+
if (Sr) return Nt;
|
|
834
|
+
Sr = 1;
|
|
835
|
+
var t = tn(), e = Un(), r = /* @__PURE__ */ Jt(), n = /* @__PURE__ */ rn(), s = /* @__PURE__ */ Bn(), o = function() {
|
|
836
836
|
};
|
|
837
837
|
process.env.NODE_ENV !== "production" && (o = function(i) {
|
|
838
838
|
var l = "Warning: " + i;
|
|
@@ -1149,11 +1149,11 @@ Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
|
|
|
1149
1149
|
return g.checkPropTypes = s, g.resetWarningCache = s.resetWarningCache, g.PropTypes = g, g;
|
|
1150
1150
|
}, Nt;
|
|
1151
1151
|
}
|
|
1152
|
-
var $t,
|
|
1153
|
-
function
|
|
1154
|
-
if (
|
|
1155
|
-
|
|
1156
|
-
var t = /* @__PURE__ */
|
|
1152
|
+
var $t, Er;
|
|
1153
|
+
function Yn() {
|
|
1154
|
+
if (Er) return $t;
|
|
1155
|
+
Er = 1;
|
|
1156
|
+
var t = /* @__PURE__ */ Jt();
|
|
1157
1157
|
function e() {
|
|
1158
1158
|
}
|
|
1159
1159
|
function r() {
|
|
@@ -1197,20 +1197,20 @@ function Wn() {
|
|
|
1197
1197
|
return o.PropTypes = o, o;
|
|
1198
1198
|
}, $t;
|
|
1199
1199
|
}
|
|
1200
|
-
var
|
|
1201
|
-
function
|
|
1202
|
-
if (
|
|
1203
|
-
if (
|
|
1200
|
+
var Cr;
|
|
1201
|
+
function Gn() {
|
|
1202
|
+
if (Cr) return it.exports;
|
|
1203
|
+
if (Cr = 1, process.env.NODE_ENV !== "production") {
|
|
1204
1204
|
var t = tn(), e = !0;
|
|
1205
|
-
it.exports = /* @__PURE__ */
|
|
1205
|
+
it.exports = /* @__PURE__ */ Wn()(t.isElement, e);
|
|
1206
1206
|
} else
|
|
1207
|
-
it.exports = /* @__PURE__ */
|
|
1207
|
+
it.exports = /* @__PURE__ */ Yn()();
|
|
1208
1208
|
return it.exports;
|
|
1209
1209
|
}
|
|
1210
|
-
var pe = /* @__PURE__ */
|
|
1210
|
+
var pe = /* @__PURE__ */ Gn(), qn = function(e) {
|
|
1211
1211
|
var r = e?.ownerDocument || document;
|
|
1212
1212
|
return r.defaultView || window;
|
|
1213
|
-
},
|
|
1213
|
+
}, Hn = function(e, r) {
|
|
1214
1214
|
for (var n in e)
|
|
1215
1215
|
if (!(n in r))
|
|
1216
1216
|
return !0;
|
|
@@ -1218,7 +1218,7 @@ var pe = /* @__PURE__ */ Yn(), Gn = function(e) {
|
|
|
1218
1218
|
if (e[s] !== r[s])
|
|
1219
1219
|
return !0;
|
|
1220
1220
|
return !1;
|
|
1221
|
-
},
|
|
1221
|
+
}, zn = ["afterInjection", "beforeInjection", "desc", "evalScripts", "fallback", "httpRequestWithCredentials", "loading", "renumerateIRIElements", "src", "title", "useRequestCache", "wrapper"], ct = "http://www.w3.org/2000/svg", Tr = "http://www.w3.org/1999/xlink", Xt = /* @__PURE__ */ function(t) {
|
|
1222
1222
|
function e() {
|
|
1223
1223
|
for (var n, s = arguments.length, o = new Array(s), a = 0; a < s; a++)
|
|
1224
1224
|
o[a] = arguments[a];
|
|
@@ -1229,13 +1229,13 @@ var pe = /* @__PURE__ */ Yn(), Gn = function(e) {
|
|
|
1229
1229
|
n.reactWrapper = i;
|
|
1230
1230
|
}, n;
|
|
1231
1231
|
}
|
|
1232
|
-
|
|
1232
|
+
Rn(e, t);
|
|
1233
1233
|
var r = e.prototype;
|
|
1234
1234
|
return r.renderSVG = function() {
|
|
1235
1235
|
var s = this;
|
|
1236
|
-
if (this.reactWrapper instanceof
|
|
1236
|
+
if (this.reactWrapper instanceof qn(this.reactWrapper).Node) {
|
|
1237
1237
|
var o = this.props, a = o.desc, i = o.evalScripts, l = o.httpRequestWithCredentials, c = o.renumerateIRIElements, d = o.src, u = o.title, f = o.useRequestCache, g = this.props.onError, h = this.props.beforeInjection, b = this.props.afterInjection, w = this.props.wrapper, v, _;
|
|
1238
|
-
w === "svg" ? (v = document.createElementNS(ct, w), v.setAttribute("xmlns", ct), v.setAttribute("xmlns:xlink",
|
|
1238
|
+
w === "svg" ? (v = document.createElementNS(ct, w), v.setAttribute("xmlns", ct), v.setAttribute("xmlns:xlink", Tr), _ = document.createElementNS(ct, w)) : (v = document.createElement(w), _ = document.createElement(w)), v.appendChild(_), _.dataset.src = d, this.nonReactWrapper = this.reactWrapper.appendChild(v);
|
|
1239
1239
|
var x = function(O) {
|
|
1240
1240
|
if (s.removeSVG(), !s._isMounted) {
|
|
1241
1241
|
g(O);
|
|
@@ -1284,7 +1284,7 @@ var pe = /* @__PURE__ */ Yn(), Gn = function(e) {
|
|
|
1284
1284
|
x(E);
|
|
1285
1285
|
}
|
|
1286
1286
|
};
|
|
1287
|
-
|
|
1287
|
+
Fn(_, {
|
|
1288
1288
|
afterEach: T,
|
|
1289
1289
|
beforeEach: y,
|
|
1290
1290
|
cacheRequests: f,
|
|
@@ -1300,7 +1300,7 @@ var pe = /* @__PURE__ */ Yn(), Gn = function(e) {
|
|
|
1300
1300
|
this._isMounted = !0, this.renderSVG();
|
|
1301
1301
|
}, r.componentDidUpdate = function(s) {
|
|
1302
1302
|
var o = this;
|
|
1303
|
-
|
|
1303
|
+
Hn(gt({}, s), this.props) && this.setState(function() {
|
|
1304
1304
|
return o.initialState;
|
|
1305
1305
|
}, function() {
|
|
1306
1306
|
o.removeSVG(), o.renderSVG();
|
|
@@ -1314,16 +1314,16 @@ var pe = /* @__PURE__ */ Yn(), Gn = function(e) {
|
|
|
1314
1314
|
s.httpRequestWithCredentials;
|
|
1315
1315
|
var a = s.loading;
|
|
1316
1316
|
s.renumerateIRIElements, s.src, s.title, s.useRequestCache;
|
|
1317
|
-
var i = s.wrapper, l =
|
|
1317
|
+
var i = s.wrapper, l = On(s, zn), c = i;
|
|
1318
1318
|
return /* @__PURE__ */ st.createElement(c, gt({}, l, {
|
|
1319
1319
|
ref: this.refCallback
|
|
1320
1320
|
}, i === "svg" ? {
|
|
1321
1321
|
xmlns: ct,
|
|
1322
|
-
xmlnsXlink:
|
|
1322
|
+
xmlnsXlink: Tr
|
|
1323
1323
|
} : {}), this.state.isLoading && a && /* @__PURE__ */ st.createElement(a, null), this.state.hasError && o && /* @__PURE__ */ st.createElement(o, null));
|
|
1324
1324
|
}, e;
|
|
1325
1325
|
}(st.Component);
|
|
1326
|
-
|
|
1326
|
+
Xt.defaultProps = {
|
|
1327
1327
|
afterInjection: function() {
|
|
1328
1328
|
},
|
|
1329
1329
|
beforeInjection: function() {
|
|
@@ -1340,7 +1340,7 @@ Jt.defaultProps = {
|
|
|
1340
1340
|
useRequestCache: !0,
|
|
1341
1341
|
wrapper: "div"
|
|
1342
1342
|
};
|
|
1343
|
-
|
|
1343
|
+
Xt.propTypes = {
|
|
1344
1344
|
afterInjection: pe.func,
|
|
1345
1345
|
beforeInjection: pe.func,
|
|
1346
1346
|
desc: pe.string,
|
|
@@ -1359,12 +1359,12 @@ let Mt = {
|
|
|
1359
1359
|
assets: "/"
|
|
1360
1360
|
// Default for storybook isolation development
|
|
1361
1361
|
};
|
|
1362
|
-
const
|
|
1362
|
+
const Jo = (t) => {
|
|
1363
1363
|
Mt = { ...Mt, ...t };
|
|
1364
|
-
},
|
|
1364
|
+
}, Kn = (t) => {
|
|
1365
1365
|
const e = `${Mt.assets}/${t}`.replace(/\/+/g, "/");
|
|
1366
1366
|
return e.endsWith(".svg") ? e : e + ".svg";
|
|
1367
|
-
},
|
|
1367
|
+
}, ie = mt.memo(
|
|
1368
1368
|
({
|
|
1369
1369
|
icon: t,
|
|
1370
1370
|
width: e,
|
|
@@ -1388,8 +1388,8 @@ const Ko = (t) => {
|
|
|
1388
1388
|
!o && c && l && l(E);
|
|
1389
1389
|
}, T = (E) => {
|
|
1390
1390
|
!o && c && (E.key === "Enter" || E.key === " ") && (E.preventDefault(), x(E));
|
|
1391
|
-
}, y = h ? n : t, D = w(y), F = v(y) ? y :
|
|
1392
|
-
|
|
1391
|
+
}, y = h ? n : t, D = w(y), F = v(y) ? y : Kn(`assets/svg/${y}`), W = () => /* @__PURE__ */ p.jsx(
|
|
1392
|
+
Xt,
|
|
1393
1393
|
{
|
|
1394
1394
|
src: F,
|
|
1395
1395
|
onError: () => b(!0),
|
|
@@ -1436,7 +1436,7 @@ function Ne({
|
|
|
1436
1436
|
const [e, r] = H(!1);
|
|
1437
1437
|
return re(() => {
|
|
1438
1438
|
r(!0);
|
|
1439
|
-
}, []), e ?
|
|
1439
|
+
}, []), e ? Cn(t, document.body) : null;
|
|
1440
1440
|
}
|
|
1441
1441
|
function $e({
|
|
1442
1442
|
position: t = "bottom",
|
|
@@ -1498,7 +1498,7 @@ function $e({
|
|
|
1498
1498
|
l.style.transform = `translate(${T}px, ${x}px)`, l.style.opacity = "1";
|
|
1499
1499
|
});
|
|
1500
1500
|
}, [t]);
|
|
1501
|
-
return
|
|
1501
|
+
return Sn(() => {
|
|
1502
1502
|
if (!e) return;
|
|
1503
1503
|
let i;
|
|
1504
1504
|
const l = () => {
|
|
@@ -1518,7 +1518,7 @@ const Lt = {
|
|
|
1518
1518
|
"smp-label": "_smp-label_zl3eb_1",
|
|
1519
1519
|
"smp-label-disabled": "_smp-label-disabled_zl3eb_6",
|
|
1520
1520
|
"smp-label-wrapper": "_smp-label-wrapper_zl3eb_10"
|
|
1521
|
-
},
|
|
1521
|
+
}, Qt = ({
|
|
1522
1522
|
helperText: t,
|
|
1523
1523
|
disabled: e,
|
|
1524
1524
|
state: r,
|
|
@@ -1528,16 +1528,16 @@ const Lt = {
|
|
|
1528
1528
|
container: `smp-helper-text ${e ? "smp-helper-text-disabled" : ""} ${r ? `smp-helper-text-${r}` : ""}`
|
|
1529
1529
|
};
|
|
1530
1530
|
return /* @__PURE__ */ p.jsx("label", { className: s.container, id: n, children: t });
|
|
1531
|
-
},
|
|
1531
|
+
}, Jn = {
|
|
1532
1532
|
"smp-helper-tooltip": "_smp-helper-tooltip_2mlq3_1"
|
|
1533
|
-
},
|
|
1533
|
+
}, Xn = ({
|
|
1534
1534
|
helperTooltip: t,
|
|
1535
1535
|
ref: e
|
|
1536
1536
|
}) => {
|
|
1537
1537
|
const r = {
|
|
1538
|
-
container: `${
|
|
1538
|
+
container: `${Jn["smp-helper-tooltip"]}`
|
|
1539
1539
|
};
|
|
1540
|
-
return /* @__PURE__ */ p.jsx("div", { className: r.container, ref: e, children: /* @__PURE__ */ p.jsx(
|
|
1540
|
+
return /* @__PURE__ */ p.jsx("div", { className: r.container, ref: e, children: /* @__PURE__ */ p.jsx(Qt, { helperText: t }) });
|
|
1541
1541
|
}, Le = ({
|
|
1542
1542
|
label: t,
|
|
1543
1543
|
disabled: e,
|
|
@@ -1560,7 +1560,7 @@ const Lt = {
|
|
|
1560
1560
|
onMouseEnter: () => o(!0),
|
|
1561
1561
|
onMouseLeave: () => o(!1),
|
|
1562
1562
|
children: /* @__PURE__ */ p.jsx(
|
|
1563
|
-
|
|
1563
|
+
ie,
|
|
1564
1564
|
{
|
|
1565
1565
|
icon: "info_outline",
|
|
1566
1566
|
tabIndex: 0,
|
|
@@ -1573,7 +1573,7 @@ const Lt = {
|
|
|
1573
1573
|
)
|
|
1574
1574
|
}
|
|
1575
1575
|
),
|
|
1576
|
-
/* @__PURE__ */ p.jsx(Ne, { children: s && n && /* @__PURE__ */ p.jsx(
|
|
1576
|
+
/* @__PURE__ */ p.jsx(Ne, { children: s && n && /* @__PURE__ */ p.jsx(Xn, { helperTooltip: n, ref: i }) })
|
|
1577
1577
|
] });
|
|
1578
1578
|
}, ye = {
|
|
1579
1579
|
"smp-layout": "_smp-layout_wqmhx_1",
|
|
@@ -1589,7 +1589,7 @@ const Lt = {
|
|
|
1589
1589
|
"smp-layout-section-with-title": "_smp-layout-section-with-title_wqmhx_63",
|
|
1590
1590
|
"smp-layout-section-title": "_smp-layout-section-title_wqmhx_69",
|
|
1591
1591
|
"smp-layout-inline": "_smp-layout-inline_wqmhx_75"
|
|
1592
|
-
},
|
|
1592
|
+
}, Qn = (t, e) => {
|
|
1593
1593
|
const r = [];
|
|
1594
1594
|
for (let n = 0; n < t.length; n += e)
|
|
1595
1595
|
r.push(t.slice(n, n + e));
|
|
@@ -1602,7 +1602,7 @@ const Lt = {
|
|
|
1602
1602
|
content: r.content
|
|
1603
1603
|
};
|
|
1604
1604
|
let n = r.sections, s = r.content;
|
|
1605
|
-
return r.content?.length && r.columns && +r.columns > 1 && (n =
|
|
1605
|
+
return r.content?.length && r.columns && +r.columns > 1 && (n = Qn(
|
|
1606
1606
|
r.content.filter((a) => e.includes(a.id)),
|
|
1607
1607
|
+r.columns
|
|
1608
1608
|
).map(
|
|
@@ -1618,20 +1618,20 @@ const Lt = {
|
|
|
1618
1618
|
sections: n,
|
|
1619
1619
|
content: s
|
|
1620
1620
|
};
|
|
1621
|
-
}),
|
|
1621
|
+
}), _r = (t, e) => {
|
|
1622
1622
|
if (!e)
|
|
1623
1623
|
return {};
|
|
1624
1624
|
const r = t.some((n) => n.dim) ? t.map((n) => n.dim || "auto").join(" ") : `repeat(${t.length}, 1fr)`;
|
|
1625
1625
|
return {
|
|
1626
1626
|
[e]: r
|
|
1627
1627
|
};
|
|
1628
|
-
},
|
|
1628
|
+
}, jr = (t) => t.some((e) => e.dim && !e.dim.endsWith("%")), Or = (t) => ({
|
|
1629
1629
|
extraSmall: 12,
|
|
1630
1630
|
small: 14,
|
|
1631
1631
|
base: 18,
|
|
1632
1632
|
large: 20,
|
|
1633
1633
|
extraLarge: 24
|
|
1634
|
-
})[t],
|
|
1634
|
+
})[t], Rr = (t) => ({
|
|
1635
1635
|
primary: "onPrimary",
|
|
1636
1636
|
danger: "onDanger",
|
|
1637
1637
|
base: "base"
|
|
@@ -1671,23 +1671,23 @@ const Lt = {
|
|
|
1671
1671
|
disabled: o,
|
|
1672
1672
|
"aria-busy": f,
|
|
1673
1673
|
title: h || b,
|
|
1674
|
-
children: f ? /* @__PURE__ */ p.jsx(
|
|
1674
|
+
children: f ? /* @__PURE__ */ p.jsx(ie, { icon: "spinner", state: Rr(i), spin: !0 }) : /* @__PURE__ */ p.jsxs(p.Fragment, { children: [
|
|
1675
1675
|
n && c && /* @__PURE__ */ p.jsx(
|
|
1676
|
-
|
|
1676
|
+
ie,
|
|
1677
1677
|
{
|
|
1678
1678
|
icon: n,
|
|
1679
1679
|
placeholderIcon: s,
|
|
1680
1680
|
disabled: o,
|
|
1681
|
-
state:
|
|
1682
|
-
width:
|
|
1683
|
-
height:
|
|
1681
|
+
state: Rr(i),
|
|
1682
|
+
width: Or(a),
|
|
1683
|
+
height: Or(a)
|
|
1684
1684
|
}
|
|
1685
1685
|
),
|
|
1686
1686
|
d && /* @__PURE__ */ p.jsx("span", { children: b || t })
|
|
1687
1687
|
] })
|
|
1688
1688
|
}
|
|
1689
1689
|
);
|
|
1690
|
-
},
|
|
1690
|
+
}, Zn = {
|
|
1691
1691
|
titleLarge: "h2",
|
|
1692
1692
|
title: "h3",
|
|
1693
1693
|
body: "h6",
|
|
@@ -1701,7 +1701,7 @@ const Lt = {
|
|
|
1701
1701
|
style: o,
|
|
1702
1702
|
...a
|
|
1703
1703
|
}) => {
|
|
1704
|
-
const i =
|
|
1704
|
+
const i = Zn[t], l = {
|
|
1705
1705
|
container: `smp-typography ${t ? `smp-typography-${t}` : ""} ${a.disabled ? "smp-typography-disabled" : ""} ${s ?? ""}`
|
|
1706
1706
|
};
|
|
1707
1707
|
return /* @__PURE__ */ p.jsx(
|
|
@@ -1739,7 +1739,7 @@ const Lt = {
|
|
|
1739
1739
|
"smp-toolbar-node": "_smp-toolbar-node_1dum7_21",
|
|
1740
1740
|
"smp-toolbar-node-icon-text-container": "_smp-toolbar-node-icon-text-container_1dum7_139",
|
|
1741
1741
|
"smp-toolbar-node-text": "_smp-toolbar-node-text_1dum7_153"
|
|
1742
|
-
},
|
|
1742
|
+
}, Zt = "smp-toolbar", es = [
|
|
1743
1743
|
"ArrowDown",
|
|
1744
1744
|
"ArrowUp",
|
|
1745
1745
|
"ArrowRight",
|
|
@@ -1747,7 +1747,7 @@ const Lt = {
|
|
|
1747
1747
|
"Enter",
|
|
1748
1748
|
"Escape",
|
|
1749
1749
|
" "
|
|
1750
|
-
], Vt = (t) => t.replace(`${
|
|
1750
|
+
], Vt = (t) => t.replace(`${Zt}-`, "").split("-").map((e) => parseInt(e, 10)).filter((e) => !isNaN(e)), ts = (t) => `${Zt}-${t.filter((e) => !isNaN(e)).join("-")}`, Ut = (t, e) => e ? `${e}-${t}` : `${Zt}-${t}`, Bt = (t) => !!t.fun && t.forcedLeaf === !1 && !(t.children && t.children.length > 0), Wt = (t, e, r, n) => {
|
|
1751
1751
|
if (!t || e.length === 0) return t;
|
|
1752
1752
|
const s = { ...t };
|
|
1753
1753
|
s.children = [...t.children ?? []];
|
|
@@ -1781,10 +1781,10 @@ const Lt = {
|
|
|
1781
1781
|
t.current.get(e)?.focus();
|
|
1782
1782
|
});
|
|
1783
1783
|
};
|
|
1784
|
-
function
|
|
1784
|
+
function rs(t, e, r) {
|
|
1785
1785
|
return { handleKeyDown: oe(
|
|
1786
1786
|
async (s, o, a) => {
|
|
1787
|
-
if (!
|
|
1787
|
+
if (!es.includes(s.key)) return;
|
|
1788
1788
|
s.preventDefault(), s.stopPropagation();
|
|
1789
1789
|
const i = e.current.get(a), l = Vt(a);
|
|
1790
1790
|
if (i)
|
|
@@ -1807,7 +1807,7 @@ function ts(t, e, r) {
|
|
|
1807
1807
|
case "ArrowLeft":
|
|
1808
1808
|
case "Escape": {
|
|
1809
1809
|
l.pop();
|
|
1810
|
-
const c =
|
|
1810
|
+
const c = ts(l);
|
|
1811
1811
|
e.current.has(c) && (t((d) => d && Wt(d, l, (u) => ({
|
|
1812
1812
|
...u,
|
|
1813
1813
|
isExpanded: !1
|
|
@@ -1846,7 +1846,7 @@ const te = {
|
|
|
1846
1846
|
CODE_ONLY: "CodeOnly",
|
|
1847
1847
|
DESC_ONLY: "DescOnly",
|
|
1848
1848
|
BOTH: "Both"
|
|
1849
|
-
},
|
|
1849
|
+
}, ns = {
|
|
1850
1850
|
obj: { t: "", p: "", k: "" },
|
|
1851
1851
|
fun: "",
|
|
1852
1852
|
isEditable: !1,
|
|
@@ -1854,7 +1854,7 @@ const te = {
|
|
|
1854
1854
|
icon: "error",
|
|
1855
1855
|
value: "No data found"
|
|
1856
1856
|
};
|
|
1857
|
-
function
|
|
1857
|
+
function ss(t, e, r) {
|
|
1858
1858
|
const n = async (i, l) => {
|
|
1859
1859
|
if (!Bt(i))
|
|
1860
1860
|
o(l, { isExpanded: !0 });
|
|
@@ -1866,7 +1866,7 @@ function ns(t, e, r) {
|
|
|
1866
1866
|
l,
|
|
1867
1867
|
{
|
|
1868
1868
|
isLoading: !1,
|
|
1869
|
-
children: c?.children && c.children.length > 0 ? c.children : [
|
|
1869
|
+
children: c?.children && c.children.length > 0 ? c.children : [ns],
|
|
1870
1870
|
isExpanded: !0
|
|
1871
1871
|
},
|
|
1872
1872
|
{ isExpanded: !1 }
|
|
@@ -2000,7 +2000,7 @@ const sn = (t) => {
|
|
|
2000
2000
|
M && (Q.container += ` ${M}`);
|
|
2001
2001
|
}
|
|
2002
2002
|
const K = E ? { "--smp-textField-width-base": E, ...U } : U, ae = /* @__PURE__ */ p.jsxs("div", { className: Q.container, ref: g, style: K, children: [
|
|
2003
|
-
s && /* @__PURE__ */ p.jsx(
|
|
2003
|
+
s && /* @__PURE__ */ p.jsx(ie, { icon: s, disabled: e }),
|
|
2004
2004
|
/* @__PURE__ */ p.jsx(
|
|
2005
2005
|
"input",
|
|
2006
2006
|
{
|
|
@@ -2029,7 +2029,7 @@ const sn = (t) => {
|
|
|
2029
2029
|
}
|
|
2030
2030
|
),
|
|
2031
2031
|
y && /* @__PURE__ */ p.jsx(
|
|
2032
|
-
|
|
2032
|
+
ie,
|
|
2033
2033
|
{
|
|
2034
2034
|
icon: "clear",
|
|
2035
2035
|
onClick: Y,
|
|
@@ -2038,7 +2038,7 @@ const sn = (t) => {
|
|
|
2038
2038
|
}
|
|
2039
2039
|
),
|
|
2040
2040
|
i && /* @__PURE__ */ p.jsx(
|
|
2041
|
-
|
|
2041
|
+
ie,
|
|
2042
2042
|
{
|
|
2043
2043
|
icon: i,
|
|
2044
2044
|
disabled: e,
|
|
@@ -2071,7 +2071,7 @@ const sn = (t) => {
|
|
|
2071
2071
|
)
|
|
2072
2072
|
] }),
|
|
2073
2073
|
G && /* @__PURE__ */ p.jsx(
|
|
2074
|
-
|
|
2074
|
+
Qt,
|
|
2075
2075
|
{
|
|
2076
2076
|
helperText: x,
|
|
2077
2077
|
disabled: e,
|
|
@@ -2140,7 +2140,7 @@ const ze = {
|
|
|
2140
2140
|
"smp-list-container": "_smp-list-container_1mnl7_15",
|
|
2141
2141
|
"smp-list-listItem": "_smp-list-listItem_1mnl7_20"
|
|
2142
2142
|
};
|
|
2143
|
-
function
|
|
2143
|
+
function os(t, e, r = "14px IBM Plex Sans, sans-serif", n = 32) {
|
|
2144
2144
|
const o = document.createElement("canvas").getContext("2d");
|
|
2145
2145
|
if (!o) return 200;
|
|
2146
2146
|
o.font = r;
|
|
@@ -2155,7 +2155,7 @@ function ss(t, e, r = "14px IBM Plex Sans, sans-serif", n = 32) {
|
|
|
2155
2155
|
}
|
|
2156
2156
|
return Math.ceil(a + n);
|
|
2157
2157
|
}
|
|
2158
|
-
const
|
|
2158
|
+
const as = 10, er = ({
|
|
2159
2159
|
id: t,
|
|
2160
2160
|
options: e,
|
|
2161
2161
|
displayMode: r = "Both",
|
|
@@ -2173,7 +2173,7 @@ const os = 10, Zt = ({
|
|
|
2173
2173
|
}) => {
|
|
2174
2174
|
const [f, g] = H(""), h = 40, [b, w] = H(
|
|
2175
2175
|
o !== null ? o : -1
|
|
2176
|
-
), [v, _] = H(i || 200), x = ue(null), T = s !== void 0 ? s : e.length >
|
|
2176
|
+
), [v, _] = H(i || 200), x = ue(null), T = s !== void 0 ? s : e.length > as, y = f ? e.filter(
|
|
2177
2177
|
(V) => V.decode?.toLowerCase()?.includes(f.toLowerCase())
|
|
2178
2178
|
) : e, D = (V) => {
|
|
2179
2179
|
g(V);
|
|
@@ -2190,7 +2190,7 @@ const os = 10, Zt = ({
|
|
|
2190
2190
|
}, [b, y]), re(() => {
|
|
2191
2191
|
d && x?.current && x.current.focus();
|
|
2192
2192
|
}, [d, x]), re(() => {
|
|
2193
|
-
const V =
|
|
2193
|
+
const V = os(e, r);
|
|
2194
2194
|
_(V);
|
|
2195
2195
|
}, [e, r]);
|
|
2196
2196
|
const C = (V) => {
|
|
@@ -2267,7 +2267,7 @@ const os = 10, Zt = ({
|
|
|
2267
2267
|
},
|
|
2268
2268
|
children: [
|
|
2269
2269
|
rt(V.obj?.k, V.decode, r),
|
|
2270
|
-
N && /* @__PURE__ */ p.jsx(
|
|
2270
|
+
N && /* @__PURE__ */ p.jsx(ie, { icon: "check", width: 16 })
|
|
2271
2271
|
]
|
|
2272
2272
|
},
|
|
2273
2273
|
V.obj?.k
|
|
@@ -2279,18 +2279,18 @@ const os = 10, Zt = ({
|
|
|
2279
2279
|
]
|
|
2280
2280
|
}
|
|
2281
2281
|
);
|
|
2282
|
-
},
|
|
2282
|
+
}, is = ({
|
|
2283
2283
|
data: t,
|
|
2284
2284
|
ref: e,
|
|
2285
2285
|
onToolbarLoadNodeData: r,
|
|
2286
2286
|
onToolbarLeafNodeClick: n,
|
|
2287
2287
|
onToolbarLoadInitialData: s
|
|
2288
2288
|
}) => {
|
|
2289
|
-
const o = ue(/* @__PURE__ */ new Map()), [a, i] = H(t), { handleNodeExpand: l, handleMouseLeave: c, onToolbarRadioLeafNodeClick: d } =
|
|
2289
|
+
const o = ue(/* @__PURE__ */ new Map()), [a, i] = H(t), { handleNodeExpand: l, handleMouseLeave: c, onToolbarRadioLeafNodeClick: d } = ss(
|
|
2290
2290
|
i,
|
|
2291
2291
|
r,
|
|
2292
2292
|
n
|
|
2293
|
-
), { handleKeyDown: u } =
|
|
2293
|
+
), { handleKeyDown: u } = rs(
|
|
2294
2294
|
i,
|
|
2295
2295
|
o,
|
|
2296
2296
|
l
|
|
@@ -2340,7 +2340,7 @@ const os = 10, Zt = ({
|
|
|
2340
2340
|
className: `${g.nodeContent} ${y ? g.clickable : g.notClickable}`,
|
|
2341
2341
|
children: [
|
|
2342
2342
|
/* @__PURE__ */ p.jsxs("div", { className: g.iconTextContainer, children: [
|
|
2343
|
-
/* @__PURE__ */ p.jsx(
|
|
2343
|
+
/* @__PURE__ */ p.jsx(ie, { icon: v.icon ?? "" }),
|
|
2344
2344
|
/* @__PURE__ */ p.jsx("span", { className: g.nodeText, children: /* @__PURE__ */ p.jsx(
|
|
2345
2345
|
Oe,
|
|
2346
2346
|
{
|
|
@@ -2349,7 +2349,7 @@ const os = 10, Zt = ({
|
|
|
2349
2349
|
}
|
|
2350
2350
|
) })
|
|
2351
2351
|
] }),
|
|
2352
|
-
v.isLoading ? /* @__PURE__ */ p.jsx(
|
|
2352
|
+
v.isLoading ? /* @__PURE__ */ p.jsx(ie, { icon: "spinner", spin: !0 }) : T || Bt(v) ? /* @__PURE__ */ p.jsx(ie, { icon: "chevron-right" }) : /* @__PURE__ */ p.jsx(ie, { icon: "" })
|
|
2353
2353
|
]
|
|
2354
2354
|
}
|
|
2355
2355
|
),
|
|
@@ -2369,7 +2369,7 @@ const os = 10, Zt = ({
|
|
|
2369
2369
|
tabIndex: -1,
|
|
2370
2370
|
"smp-id": `toolbar-item-${_}`,
|
|
2371
2371
|
children: /* @__PURE__ */ p.jsx(
|
|
2372
|
-
|
|
2372
|
+
er,
|
|
2373
2373
|
{
|
|
2374
2374
|
options: v.options ? v.options : [],
|
|
2375
2375
|
isOpen: !0,
|
|
@@ -2408,6 +2408,7 @@ const os = 10, Zt = ({
|
|
|
2408
2408
|
return !a || !a?.children?.length ? null : /* @__PURE__ */ p.jsx(
|
|
2409
2409
|
"div",
|
|
2410
2410
|
{
|
|
2411
|
+
style: e ? { position: "absolute", opacity: 0 } : void 0,
|
|
2411
2412
|
ref: e,
|
|
2412
2413
|
"aria-label": "Toolbar",
|
|
2413
2414
|
"data-component": "toolbar",
|
|
@@ -2430,7 +2431,7 @@ const os = 10, Zt = ({
|
|
|
2430
2431
|
document.removeEventListener("mousedown", n);
|
|
2431
2432
|
};
|
|
2432
2433
|
}, [t, r, e]);
|
|
2433
|
-
},
|
|
2434
|
+
}, ls = ({
|
|
2434
2435
|
data: t,
|
|
2435
2436
|
sizing: e = "large",
|
|
2436
2437
|
toolbar: r = !0,
|
|
@@ -2507,7 +2508,7 @@ const os = 10, Zt = ({
|
|
|
2507
2508
|
},
|
|
2508
2509
|
children: [
|
|
2509
2510
|
k.icon && /* @__PURE__ */ p.jsx(
|
|
2510
|
-
|
|
2511
|
+
ie,
|
|
2511
2512
|
{
|
|
2512
2513
|
icon: k.icon,
|
|
2513
2514
|
placeholderIcon: k.placeholderIcon
|
|
@@ -2526,7 +2527,7 @@ const os = 10, Zt = ({
|
|
|
2526
2527
|
ref: l === C ? v : void 0,
|
|
2527
2528
|
"smp-id": "tab-toolbar-button",
|
|
2528
2529
|
children: /* @__PURE__ */ p.jsx(
|
|
2529
|
-
|
|
2530
|
+
ie,
|
|
2530
2531
|
{
|
|
2531
2532
|
icon: "more_vert",
|
|
2532
2533
|
isInteractable: !0,
|
|
@@ -2552,7 +2553,7 @@ const os = 10, Zt = ({
|
|
|
2552
2553
|
}
|
|
2553
2554
|
) }),
|
|
2554
2555
|
d && /* @__PURE__ */ p.jsx(Ne, { children: /* @__PURE__ */ p.jsx(
|
|
2555
|
-
|
|
2556
|
+
is,
|
|
2556
2557
|
{
|
|
2557
2558
|
ref: _,
|
|
2558
2559
|
onToolbarLeafNodeClick: W,
|
|
@@ -2591,7 +2592,7 @@ const os = 10, Zt = ({
|
|
|
2591
2592
|
Object.keys(s)
|
|
2592
2593
|
), l = (h) => h.reduce((b, w) => {
|
|
2593
2594
|
let v = "", _ = {}, x = {}, T = "";
|
|
2594
|
-
return w.sections?.length ? (v = ye["smp-layout-section-grid"], _ = l(w.sections), w.gridCols === void 0 && (T = ye[w.horizontal ? "smp-grid-template-cols" : "smp-grid-template-rows"], w.horizontal ||
|
|
2595
|
+
return w.sections?.length ? (v = ye["smp-layout-section-grid"], _ = l(w.sections), w.gridCols === void 0 && (T = ye[w.horizontal ? "smp-grid-template-cols" : "smp-grid-template-rows"], w.horizontal || jr(w.sections) ? x = _r(
|
|
2595
2596
|
w.sections,
|
|
2596
2597
|
w.horizontal ? o : a
|
|
2597
2598
|
) : x = {
|
|
@@ -2609,7 +2610,7 @@ const os = 10, Zt = ({
|
|
|
2609
2610
|
};
|
|
2610
2611
|
}, {}), c = l(i), d = `${ye["smp-layout"]} ${e.horizontal ? ye["smp-layout-horizontal"] : ye["smp-layout-vertical"]} ${e.inline ? ye["smp-layout-inline"] : ""}`;
|
|
2611
2612
|
let u = {};
|
|
2612
|
-
(e.horizontal ||
|
|
2613
|
+
(e.horizontal || jr(e.sections || [])) && (u = _r(
|
|
2613
2614
|
i,
|
|
2614
2615
|
e.horizontal ? o : a
|
|
2615
2616
|
));
|
|
@@ -2663,7 +2664,7 @@ const os = 10, Zt = ({
|
|
|
2663
2664
|
};
|
|
2664
2665
|
return /* @__PURE__ */ p.jsxs("div", { className: d, style: u, "smp-id": "layout", children: [
|
|
2665
2666
|
e.sectionsType === "tab" && e.sections && e?.sections.length > 1 && /* @__PURE__ */ p.jsx(
|
|
2666
|
-
|
|
2667
|
+
ls,
|
|
2667
2668
|
{
|
|
2668
2669
|
data: {
|
|
2669
2670
|
type: "SmeupDataTree",
|
|
@@ -2683,7 +2684,7 @@ const os = 10, Zt = ({
|
|
|
2683
2684
|
),
|
|
2684
2685
|
e.sectionsType ? f(i[r], !0) : i.map((h) => f(h))
|
|
2685
2686
|
] });
|
|
2686
|
-
},
|
|
2687
|
+
}, Yt = (t) => t.t == "D8" || t.t == "A8", an = (t) => t.t == "NR", cs = (t) => t.t == "I1", us = (t) => {
|
|
2687
2688
|
if (t) {
|
|
2688
2689
|
const e = t.split(";");
|
|
2689
2690
|
if (e.length == 3)
|
|
@@ -2722,7 +2723,7 @@ class yt {
|
|
|
2722
2723
|
}
|
|
2723
2724
|
}
|
|
2724
2725
|
function ds(t, e) {
|
|
2725
|
-
if (
|
|
2726
|
+
if (tr(t)) {
|
|
2726
2727
|
const d = new Date(t);
|
|
2727
2728
|
if (!isNaN(d.getTime()))
|
|
2728
2729
|
return d;
|
|
@@ -2745,18 +2746,18 @@ function ds(t, e) {
|
|
|
2745
2746
|
case 6: {
|
|
2746
2747
|
i = parseInt(n.substring(0, 2)), l = parseInt(n.substring(2, 4)), Number(n.substring(4)) >= 50 ? c = "19" + n.substring(4) : c = "20" + n.substring(4);
|
|
2747
2748
|
let d = 0, u = 0;
|
|
2748
|
-
return a === 0 ? (d = l, u = i - 1, r.setFullYear(parseInt(c), u, d)) : o === 0 && (d = i, u = l - 1, r.setFullYear(parseInt(c), u, d)),
|
|
2749
|
+
return a === 0 ? (d = l, u = i - 1, r.setFullYear(parseInt(c), u, d)) : o === 0 && (d = i, u = l - 1, r.setFullYear(parseInt(c), u, d)), Gt(i, u, parseInt(c)) && ut(r) ? r : t;
|
|
2749
2750
|
}
|
|
2750
2751
|
case 7:
|
|
2751
2752
|
case 8: {
|
|
2752
2753
|
i = parseInt(n.substring(0, 2)), l = parseInt(n.substring(2, 4)), c = n.substring(4);
|
|
2753
2754
|
let d = 0, u = 0;
|
|
2754
|
-
return a === 0 ? (d = l, u = i - 1, r.setFullYear(parseInt(c), u, d)) : o === 0 && (d = i, u = l - 1, r.setFullYear(parseInt(c), u, d)),
|
|
2755
|
+
return a === 0 ? (d = l, u = i - 1, r.setFullYear(parseInt(c), u, d)) : o === 0 && (d = i, u = l - 1, r.setFullYear(parseInt(c), u, d)), Gt(d, u, parseInt(c)) && ut(r) ? r : t;
|
|
2755
2756
|
}
|
|
2756
2757
|
}
|
|
2757
2758
|
return t;
|
|
2758
2759
|
}
|
|
2759
|
-
function
|
|
2760
|
+
function tr(t) {
|
|
2760
2761
|
return /^\d{4}-\d{2}-\d{2}$/.test(t) && t.length === 10;
|
|
2761
2762
|
}
|
|
2762
2763
|
function ut(t) {
|
|
@@ -2765,9 +2766,9 @@ function ut(t) {
|
|
|
2765
2766
|
function fs(t) {
|
|
2766
2767
|
if (!/^\d{8}$/.test(t)) return !1;
|
|
2767
2768
|
const e = parseInt(t.slice(0, 4), 10), r = parseInt(t.slice(4, 6), 10), n = parseInt(t.slice(6, 8), 10);
|
|
2768
|
-
return
|
|
2769
|
+
return Gt(n, r - 1, e);
|
|
2769
2770
|
}
|
|
2770
|
-
function
|
|
2771
|
+
function Gt(t, e, r) {
|
|
2771
2772
|
const n = [
|
|
2772
2773
|
31,
|
|
2773
2774
|
// January
|
|
@@ -2835,7 +2836,7 @@ const Dr = /* @__PURE__ */ new Map([
|
|
|
2835
2836
|
return fs(t) && `${t.substring(0, 4)}-${t.substring(4, 6)}-${t.substring(6, 8)}` || t;
|
|
2836
2837
|
},
|
|
2837
2838
|
isoToLegacy(t) {
|
|
2838
|
-
return
|
|
2839
|
+
return tr(t) && t.replaceAll("-", "") || t;
|
|
2839
2840
|
}
|
|
2840
2841
|
}
|
|
2841
2842
|
],
|
|
@@ -2901,9 +2902,9 @@ const Dr = /* @__PURE__ */ new Map([
|
|
|
2901
2902
|
}, ys = (t, e, r) => {
|
|
2902
2903
|
const n = xt(t, r);
|
|
2903
2904
|
return n !== void 0 ? n : xt(e, r);
|
|
2904
|
-
},
|
|
2905
|
+
}, ln = (t, e, r) => {
|
|
2905
2906
|
for (const n in e)
|
|
2906
|
-
n !== "__proto__" && n !== "constructor" && (n in t ? Z(t[n]) || t[n] instanceof String || Z(e[n]) || e[n] instanceof String ? r && (t[n] = e[n]) :
|
|
2907
|
+
n !== "__proto__" && n !== "constructor" && (n in t ? Z(t[n]) || t[n] instanceof String || Z(e[n]) || e[n] instanceof String ? r && (t[n] = e[n]) : ln(t[n], e[n], r) : t[n] = e[n]);
|
|
2907
2908
|
return t;
|
|
2908
2909
|
}, Ve = (t) => t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
2909
2910
|
var vs = {
|
|
@@ -2938,7 +2939,7 @@ const Ss = [" ", ",", "?", "!", ";"], Es = new ws(20), Cs = (t, e, r) => {
|
|
|
2938
2939
|
a > 0 && !s.test(t.substring(0, a)) && (o = !0);
|
|
2939
2940
|
}
|
|
2940
2941
|
return o;
|
|
2941
|
-
},
|
|
2942
|
+
}, qt = (t, e, r = ".") => {
|
|
2942
2943
|
if (!t) return;
|
|
2943
2944
|
if (t[e])
|
|
2944
2945
|
return Object.prototype.hasOwnProperty.call(t, e) ? t[e] : void 0;
|
|
@@ -3055,7 +3056,7 @@ class Ar extends Ct {
|
|
|
3055
3056
|
let i;
|
|
3056
3057
|
e.indexOf(".") > -1 ? i = e.split(".") : (i = [e, r], n && (Array.isArray(n) ? i.push(...n) : Z(n) && o ? i.push(...n.split(o)) : i.push(n)));
|
|
3057
3058
|
const l = xt(this.data, i);
|
|
3058
|
-
return !l && !r && !n && e.indexOf(".") > -1 && (e = i[0], r = i[1], n = i.slice(2).join(".")), l || !a || !Z(n) ? l :
|
|
3059
|
+
return !l && !r && !n && e.indexOf(".") > -1 && (e = i[0], r = i[1], n = i.slice(2).join(".")), l || !a || !Z(n) ? l : qt(this.data?.[e]?.[r], n, o);
|
|
3059
3060
|
}
|
|
3060
3061
|
addResource(e, r, n, s, o = {
|
|
3061
3062
|
silent: !1
|
|
@@ -3080,7 +3081,7 @@ class Ar extends Ct {
|
|
|
3080
3081
|
let i = [e, r];
|
|
3081
3082
|
e.indexOf(".") > -1 && (i = e.split("."), s = n, n = r, r = i[1]), this.addNamespaces(r);
|
|
3082
3083
|
let l = xt(this.data, i) || {};
|
|
3083
|
-
a.skipCopy || (n = JSON.parse(JSON.stringify(n))), s ?
|
|
3084
|
+
a.skipCopy || (n = JSON.parse(JSON.stringify(n))), s ? ln(l, n, o) : l = {
|
|
3084
3085
|
...l,
|
|
3085
3086
|
...n
|
|
3086
3087
|
}, Lr(this.data, i, l), a.silent || this.emit("added", e, r, n);
|
|
@@ -3105,7 +3106,7 @@ class Ar extends Ct {
|
|
|
3105
3106
|
return this.data;
|
|
3106
3107
|
}
|
|
3107
3108
|
}
|
|
3108
|
-
var
|
|
3109
|
+
var cn = {
|
|
3109
3110
|
processors: {},
|
|
3110
3111
|
addPostProcessor(t) {
|
|
3111
3112
|
this.processors[t.name] = t;
|
|
@@ -3287,7 +3288,7 @@ class St extends Ct {
|
|
|
3287
3288
|
!n.lng && s && s.res && (n.lng = this.language || s.usedLng), n.nest !== !1 && (e = this.interpolator.nest(e, (...u) => o?.[0] === u[0] && !n.context ? (this.logger.warn(`It seems you are nesting recursively key: ${u[0]} in key: ${r[0]}`), null) : this.translate(...u, r), n)), n.interpolation && this.interpolator.reset();
|
|
3288
3289
|
}
|
|
3289
3290
|
const a = n.postProcess || this.options.postProcess, i = Z(a) ? [a] : a;
|
|
3290
|
-
return e != null && i?.length && n.applyPostProcessor !== !1 && (e =
|
|
3291
|
+
return e != null && i?.length && n.applyPostProcessor !== !1 && (e = cn.handle(i, e, r, this.options && this.options.postProcessPassResolved ? {
|
|
3291
3292
|
i18nResolved: {
|
|
3292
3293
|
...s,
|
|
3293
3294
|
usedParams: this.getUsedParamsDetails(n)
|
|
@@ -3488,7 +3489,7 @@ class _s {
|
|
|
3488
3489
|
}
|
|
3489
3490
|
const Ur = (t, e, r, n = ".", s = !0) => {
|
|
3490
3491
|
let o = ys(t, e, r);
|
|
3491
|
-
return !o && s && Z(r) && (o =
|
|
3492
|
+
return !o && s && Z(r) && (o = qt(t, r, n), o === void 0 && (o = qt(e, r, n))), o;
|
|
3492
3493
|
}, At = (t) => t.replace(/\$/g, "$$$$");
|
|
3493
3494
|
class js {
|
|
3494
3495
|
constructor(e = {}) {
|
|
@@ -4002,7 +4003,7 @@ class et extends Ct {
|
|
|
4002
4003
|
use(e) {
|
|
4003
4004
|
if (!e) throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
|
|
4004
4005
|
if (!e.type) throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
|
|
4005
|
-
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" &&
|
|
4006
|
+
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" && cn.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
|
|
4006
4007
|
}
|
|
4007
4008
|
setResolvedLanguage(e) {
|
|
4008
4009
|
if (!(!e || !this.languages) && !(["cimode", "dev"].indexOf(e) > -1)) {
|
|
@@ -4280,7 +4281,7 @@ function Re() {
|
|
|
4280
4281
|
);
|
|
4281
4282
|
return { format: t, getCurrentLanguage: e, translate: r };
|
|
4282
4283
|
}
|
|
4283
|
-
var je = /* @__PURE__ */ ((t) => (t.CALENDAR_FOR = "Date.CalendarFor", t.CLOSE = "Generic.Close", t.SPOTLIGHT_DEFAULT_PLACEHOLDER = "Generic.SpotlightDefaultPlaceholder", t.CHECK_OBJECT_WRONG_VALIDATION = "Generic.CheckObjectWrongValidation", t.CONFIRM_BUTTON = "Generic.ConfirmButton", t.AUTOCOMPLETE_DEFAULT_PLACEHOLDER = "Generic.AutocompleteDefaultPlaceholder", t))(je || {}), be = /* @__PURE__ */ ((t) => (t.ADD_SUB_GROUP = "FilterBuilder.AddSubGroup", t.ADD_FILTER = "FilterBuilder.AddFilter", t.STRING_STARTS = "FilterBuilder.Operator.String.Starts", t.STRING_CONTAINS = "FilterBuilder.Operator.String.Contains", t.STRING_EQUALS = "FilterBuilder.Operator.String.Equals", t.NUMBER_EQUALS = "FilterBuilder.Operator.Number.Equals", t.NUMBER_NOTEQUALS = "FilterBuilder.Operator.Number.NotEquals", t.NUMBER_GREATER = "FilterBuilder.Operator.Number.Greater", t.NUMBER_GREATER_OR_EQUAL = "FilterBuilder.Operator.Number.GreaterOrEqual", t.NUMBER_LESS = "FilterBuilder.Operator.Number.Less", t.NUMBER_LESS_OR_EQUAL = "FilterBuilder.Operator.Number.LessOrEqual", t.DATE_BEFORE = "FilterBuilder.Operator.Date.Before", t.DATE_AFTER = "FilterBuilder.Operator.Date.After", t.DATE_ON = "FilterBuilder.Operator.Date.On", t))(be || {}), ge = /* @__PURE__ */ ((t) => (t.MONDAY = "Day.Monday", t.MONDAY_SHORT = "Day.MondayShort", t.TUESDAY = "Day.Tuesday", t.TUESDAY_SHORT = "Day.TuesdayShort", t.WEDNESDAY = "Day.Wednesday", t.WEDNESDAY_SHORT = "Day.WednesdayShort", t.THURSDAY = "Day.Thursday", t.THURSDAY_SHORT = "Day.ThursdayShort", t.FRIDAY = "Day.Friday", t.FRIDAY_SHORT = "Day.FridayShort", t.SATURDAY = "Day.Saturday", t.SATURDAY_SHORT = "Day.SaturdayShort", t.SUNDAY = "Day.Sunday", t.SUNDAY_SHORT = "Day.SundayShort", t))(ge || {}), xe = /* @__PURE__ */ ((t) => (t.JANUARY = "Month.January", t.FEBRUARY = "Month.February", t.MARCH = "Month.March", t.APRIL = "Month.April", t.MAY = "Month.May", t.JUNE = "Month.June", t.JULY = "Month.July", t.AUGUST = "Month.August", t.SEPTEMBER = "Month.September", t.OCTOBER = "Month.October", t.NOVEMBER = "Month.November", t.DECEMBER = "Month.December", t))(xe || {}),
|
|
4284
|
+
var je = /* @__PURE__ */ ((t) => (t.CALENDAR_FOR = "Date.CalendarFor", t.CLOSE = "Generic.Close", t.SPOTLIGHT_DEFAULT_PLACEHOLDER = "Generic.SpotlightDefaultPlaceholder", t.CHECK_OBJECT_WRONG_VALIDATION = "Generic.CheckObjectWrongValidation", t.CONFIRM_BUTTON = "Generic.ConfirmButton", t.AUTOCOMPLETE_DEFAULT_PLACEHOLDER = "Generic.AutocompleteDefaultPlaceholder", t))(je || {}), be = /* @__PURE__ */ ((t) => (t.ADD_SUB_GROUP = "FilterBuilder.AddSubGroup", t.ADD_FILTER = "FilterBuilder.AddFilter", t.STRING_STARTS = "FilterBuilder.Operator.String.Starts", t.STRING_CONTAINS = "FilterBuilder.Operator.String.Contains", t.STRING_EQUALS = "FilterBuilder.Operator.String.Equals", t.NUMBER_EQUALS = "FilterBuilder.Operator.Number.Equals", t.NUMBER_NOTEQUALS = "FilterBuilder.Operator.Number.NotEquals", t.NUMBER_GREATER = "FilterBuilder.Operator.Number.Greater", t.NUMBER_GREATER_OR_EQUAL = "FilterBuilder.Operator.Number.GreaterOrEqual", t.NUMBER_LESS = "FilterBuilder.Operator.Number.Less", t.NUMBER_LESS_OR_EQUAL = "FilterBuilder.Operator.Number.LessOrEqual", t.DATE_BEFORE = "FilterBuilder.Operator.Date.Before", t.DATE_AFTER = "FilterBuilder.Operator.Date.After", t.DATE_ON = "FilterBuilder.Operator.Date.On", t))(be || {}), ge = /* @__PURE__ */ ((t) => (t.MONDAY = "Day.Monday", t.MONDAY_SHORT = "Day.MondayShort", t.TUESDAY = "Day.Tuesday", t.TUESDAY_SHORT = "Day.TuesdayShort", t.WEDNESDAY = "Day.Wednesday", t.WEDNESDAY_SHORT = "Day.WednesdayShort", t.THURSDAY = "Day.Thursday", t.THURSDAY_SHORT = "Day.ThursdayShort", t.FRIDAY = "Day.Friday", t.FRIDAY_SHORT = "Day.FridayShort", t.SATURDAY = "Day.Saturday", t.SATURDAY_SHORT = "Day.SaturdayShort", t.SUNDAY = "Day.Sunday", t.SUNDAY_SHORT = "Day.SundayShort", t))(ge || {}), xe = /* @__PURE__ */ ((t) => (t.JANUARY = "Month.January", t.FEBRUARY = "Month.February", t.MARCH = "Month.March", t.APRIL = "Month.April", t.MAY = "Month.May", t.JUNE = "Month.June", t.JULY = "Month.July", t.AUGUST = "Month.August", t.SEPTEMBER = "Month.September", t.OCTOBER = "Month.October", t.NOVEMBER = "Month.November", t.DECEMBER = "Month.December", t))(xe || {}), Ht = /* @__PURE__ */ ((t) => (t.PREVIOUS_DAY = "Date.PreviousDay", t.PREVIOUS_WEEK = "Date.PreviousWeek", t.PREVIOUS_MONTH = "Date.PreviousMonth", t.PREVIOUS_YEAR = "Date.PreviousYear", t.NEXT_DAY = "Date.NextDay", t.NEXT_WEEK = "Date.NextWeek", t.NEXT_MONTH = "Date.NextMonth", t.NEXT_YEAR = "Date.NextYear", t.YESTERDAY = "Date.Yesterday", t.TODAY = "Date.Today", t.TOMORROW = "Date.Tomorrow", t))(Ht || {});
|
|
4284
4285
|
const eo = (t) => t?.type === "SmeupDataTree", to = (t) => t?.type === "SmeupDataTable", ht = {
|
|
4285
4286
|
obj: { t: "", p: "", k: "" },
|
|
4286
4287
|
decode: "",
|
|
@@ -4296,12 +4297,12 @@ const eo = (t) => t?.type === "SmeupDataTree", to = (t) => t?.type === "SmeupDat
|
|
|
4296
4297
|
return [...o, i];
|
|
4297
4298
|
}, []);
|
|
4298
4299
|
} else if (eo(t))
|
|
4299
|
-
return
|
|
4300
|
-
},
|
|
4300
|
+
return un(t.children ?? []);
|
|
4301
|
+
}, un = (t) => t?.map((e) => ({
|
|
4301
4302
|
...e,
|
|
4302
4303
|
decode: e.decode || e.value || e.obj?.k || "",
|
|
4303
|
-
children:
|
|
4304
|
-
})),
|
|
4304
|
+
children: un(e.children ?? [])
|
|
4305
|
+
})), dn = ({
|
|
4305
4306
|
bindValue: t,
|
|
4306
4307
|
optionalDisplayValue: e,
|
|
4307
4308
|
options: r,
|
|
@@ -4382,7 +4383,7 @@ const eo = (t) => t?.type === "SmeupDataTree", to = (t) => t?.type === "SmeupDat
|
|
|
4382
4383
|
}
|
|
4383
4384
|
),
|
|
4384
4385
|
T && /* @__PURE__ */ p.jsx(Ne, { children: /* @__PURE__ */ p.jsx(
|
|
4385
|
-
|
|
4386
|
+
er,
|
|
4386
4387
|
{
|
|
4387
4388
|
options: D,
|
|
4388
4389
|
displayMode: n,
|
|
@@ -4452,7 +4453,7 @@ const eo = (t) => t?.type === "SmeupDataTree", to = (t) => t?.type === "SmeupDat
|
|
|
4452
4453
|
return /* @__PURE__ */ p.jsx("div", { role: "list", "data-component": "button-list", className: v.container, children: _ });
|
|
4453
4454
|
}, no = {
|
|
4454
4455
|
"smp-checkbox-wrapper": "_smp-checkbox-wrapper_d8uan_2"
|
|
4455
|
-
},
|
|
4456
|
+
}, rr = ({
|
|
4456
4457
|
bindValue: t,
|
|
4457
4458
|
_dataComponent: e = "checkbox",
|
|
4458
4459
|
disabled: r,
|
|
@@ -4483,7 +4484,7 @@ const eo = (t) => t?.type === "SmeupDataTree", to = (t) => t?.type === "SmeupDat
|
|
|
4483
4484
|
}
|
|
4484
4485
|
)
|
|
4485
4486
|
] });
|
|
4486
|
-
},
|
|
4487
|
+
}, nr = ({
|
|
4487
4488
|
elements: t,
|
|
4488
4489
|
isEditable: e = !1,
|
|
4489
4490
|
displayMode: r = "Both",
|
|
@@ -4522,10 +4523,10 @@ const eo = (t) => t?.type === "SmeupDataTree", to = (t) => t?.type === "SmeupDat
|
|
|
4522
4523
|
"--smp-chips-backgroundColor-base": o
|
|
4523
4524
|
},
|
|
4524
4525
|
children: [
|
|
4525
|
-
a && /* @__PURE__ */ p.jsx(
|
|
4526
|
+
a && /* @__PURE__ */ p.jsx(ie, { icon: "drag_indicator_horizontal", isInteractable: !0 }),
|
|
4526
4527
|
/* @__PURE__ */ p.jsx(Oe, { variant: "label", bindValue: b, color: s }),
|
|
4527
4528
|
e && /* @__PURE__ */ p.jsx(
|
|
4528
|
-
|
|
4529
|
+
ie,
|
|
4529
4530
|
{
|
|
4530
4531
|
icon: "close",
|
|
4531
4532
|
isInteractable: !0,
|
|
@@ -4537,7 +4538,7 @@ const eo = (t) => t?.type === "SmeupDataTree", to = (t) => t?.type === "SmeupDat
|
|
|
4537
4538
|
},
|
|
4538
4539
|
`chip-${h}`
|
|
4539
4540
|
), v = a && h < t.length - 1 ? /* @__PURE__ */ p.jsx(
|
|
4540
|
-
|
|
4541
|
+
ie,
|
|
4541
4542
|
{
|
|
4542
4543
|
icon: "chevron-right",
|
|
4543
4544
|
color: s
|
|
@@ -4547,7 +4548,7 @@ const eo = (t) => t?.type === "SmeupDataTree", to = (t) => t?.type === "SmeupDat
|
|
|
4547
4548
|
return [w, v].filter(Boolean);
|
|
4548
4549
|
}) });
|
|
4549
4550
|
};
|
|
4550
|
-
function
|
|
4551
|
+
function sr(t, e) {
|
|
4551
4552
|
const r = ue(null);
|
|
4552
4553
|
re(() => {
|
|
4553
4554
|
if (!t) return;
|
|
@@ -4585,7 +4586,7 @@ function nr(t, e) {
|
|
|
4585
4586
|
};
|
|
4586
4587
|
}, [t, e]);
|
|
4587
4588
|
}
|
|
4588
|
-
const
|
|
4589
|
+
const zt = ({
|
|
4589
4590
|
bindValue: t,
|
|
4590
4591
|
onChange: e,
|
|
4591
4592
|
options: r = [],
|
|
@@ -4603,7 +4604,7 @@ const Ht = ({
|
|
|
4603
4604
|
}), O = oe(() => {
|
|
4604
4605
|
f(!1), d?.current?.focus();
|
|
4605
4606
|
}, []);
|
|
4606
|
-
nt([y, T], u, () => O()),
|
|
4607
|
+
nt([y, T], u, () => O()), sr(u, y);
|
|
4607
4608
|
const F = (E) => {
|
|
4608
4609
|
e?.(E.obj.k, E.decode);
|
|
4609
4610
|
const A = g.findIndex((I) => I.obj.k === E.obj.k);
|
|
@@ -4646,7 +4647,7 @@ const Ht = ({
|
|
|
4646
4647
|
}
|
|
4647
4648
|
),
|
|
4648
4649
|
u && /* @__PURE__ */ p.jsx(Ne, { children: /* @__PURE__ */ p.jsx(
|
|
4649
|
-
|
|
4650
|
+
er,
|
|
4650
4651
|
{
|
|
4651
4652
|
id: x,
|
|
4652
4653
|
options: g,
|
|
@@ -4925,7 +4926,7 @@ function oo({
|
|
|
4925
4926
|
me,
|
|
4926
4927
|
{
|
|
4927
4928
|
onClick: D,
|
|
4928
|
-
ariaLabel: o(
|
|
4929
|
+
ariaLabel: o(Ht.PREVIOUS_MONTH),
|
|
4929
4930
|
optionalDisplayValue: "<",
|
|
4930
4931
|
appearance: "ghost",
|
|
4931
4932
|
variant: "base",
|
|
@@ -4944,7 +4945,7 @@ function oo({
|
|
|
4944
4945
|
me,
|
|
4945
4946
|
{
|
|
4946
4947
|
onClick: O,
|
|
4947
|
-
ariaLabel: o(
|
|
4948
|
+
ariaLabel: o(Ht.NEXT_MONTH),
|
|
4948
4949
|
bindValue: ">",
|
|
4949
4950
|
optionalDisplayValue: ">",
|
|
4950
4951
|
appearance: "ghost",
|
|
@@ -5020,7 +5021,7 @@ function oo({
|
|
|
5020
5021
|
}
|
|
5021
5022
|
);
|
|
5022
5023
|
}
|
|
5023
|
-
const
|
|
5024
|
+
const or = ({
|
|
5024
5025
|
bindValue: t,
|
|
5025
5026
|
optionalDisplayValue: e,
|
|
5026
5027
|
label: r,
|
|
@@ -5051,7 +5052,7 @@ const sr = ({
|
|
|
5051
5052
|
style: s
|
|
5052
5053
|
}
|
|
5053
5054
|
);
|
|
5054
|
-
},
|
|
5055
|
+
}, fn = ({
|
|
5055
5056
|
bindValue: t,
|
|
5056
5057
|
placeholder: e,
|
|
5057
5058
|
onChange: r,
|
|
@@ -5068,7 +5069,7 @@ const sr = ({
|
|
|
5068
5069
|
}, []);
|
|
5069
5070
|
nt([b, h], l, () => {
|
|
5070
5071
|
w();
|
|
5071
|
-
}),
|
|
5072
|
+
}), sr(l, b);
|
|
5072
5073
|
const { format: v, getCurrentLanguage: _ } = Re(), x = oe(
|
|
5073
5074
|
(k) => {
|
|
5074
5075
|
const C = k.length > 5 && ds(k, _()) || k, E = v(C, void 0, void 0, {
|
|
@@ -5099,7 +5100,7 @@ const sr = ({
|
|
|
5099
5100
|
}, W = (k) => {
|
|
5100
5101
|
k.key === "Enter" && (k.preventDefault(), O(f));
|
|
5101
5102
|
};
|
|
5102
|
-
return /* @__PURE__ */ p.jsx("div", { "data-component": "date-picker", children: o ? /* @__PURE__ */ p.jsx(
|
|
5103
|
+
return /* @__PURE__ */ p.jsx("div", { "data-component": "date-picker", children: o ? /* @__PURE__ */ p.jsx(or, { bindValue: f }) : /* @__PURE__ */ p.jsxs(p.Fragment, { children: [
|
|
5103
5104
|
/* @__PURE__ */ p.jsx(
|
|
5104
5105
|
_e,
|
|
5105
5106
|
{
|
|
@@ -5123,7 +5124,7 @@ const sr = ({
|
|
|
5123
5124
|
{
|
|
5124
5125
|
disabledDateRanges: n,
|
|
5125
5126
|
onDateChange: D,
|
|
5126
|
-
initialValue:
|
|
5127
|
+
initialValue: tr(d) && d || "",
|
|
5127
5128
|
targetRef: b
|
|
5128
5129
|
}
|
|
5129
5130
|
) })
|
|
@@ -5169,7 +5170,7 @@ const sr = ({
|
|
|
5169
5170
|
children: [
|
|
5170
5171
|
a && /* @__PURE__ */ p.jsx(Le, { label: a, disabled: i, helper: g.helper }),
|
|
5171
5172
|
/* @__PURE__ */ p.jsx(
|
|
5172
|
-
|
|
5173
|
+
nr,
|
|
5173
5174
|
{
|
|
5174
5175
|
elements: t,
|
|
5175
5176
|
displayMode: e,
|
|
@@ -5180,7 +5181,7 @@ const sr = ({
|
|
|
5180
5181
|
}
|
|
5181
5182
|
),
|
|
5182
5183
|
/* @__PURE__ */ p.jsx(
|
|
5183
|
-
|
|
5184
|
+
dn,
|
|
5184
5185
|
{
|
|
5185
5186
|
...g,
|
|
5186
5187
|
bindValue: "",
|
|
@@ -5284,7 +5285,7 @@ const Pe = (t, e, r) => ({
|
|
|
5284
5285
|
e.map((s) => s.optionalDisplayValue ? s.optionalDisplayValue : "")
|
|
5285
5286
|
).getLegacyValue();
|
|
5286
5287
|
return Pe(t, r, n);
|
|
5287
|
-
},
|
|
5288
|
+
}, pn = ({
|
|
5288
5289
|
min: t,
|
|
5289
5290
|
max: e,
|
|
5290
5291
|
step: r = 1,
|
|
@@ -5370,7 +5371,7 @@ const Pe = (t, e, r) => ({
|
|
|
5370
5371
|
F(b(U, x));
|
|
5371
5372
|
};
|
|
5372
5373
|
return /* @__PURE__ */ p.jsx("div", { ref: u, "data-component": "input-number", onWheel: E, children: l ? /* @__PURE__ */ p.jsx(
|
|
5373
|
-
|
|
5374
|
+
or,
|
|
5374
5375
|
{
|
|
5375
5376
|
bindValue: y,
|
|
5376
5377
|
className: `smp-text-number${O.current != null && O.current < 0 ? " smp-text-negative" : ""}`
|
|
@@ -5498,7 +5499,7 @@ const uo = ({
|
|
|
5498
5499
|
}
|
|
5499
5500
|
),
|
|
5500
5501
|
y && /* @__PURE__ */ p.jsx(
|
|
5501
|
-
|
|
5502
|
+
Qt,
|
|
5502
5503
|
{
|
|
5503
5504
|
id: x,
|
|
5504
5505
|
helperText: f,
|
|
@@ -5508,7 +5509,7 @@ const uo = ({
|
|
|
5508
5509
|
)
|
|
5509
5510
|
] });
|
|
5510
5511
|
};
|
|
5511
|
-
var
|
|
5512
|
+
var Kt = /* @__PURE__ */ ((t) => (t.PAGE_DIRECTION = "pageDirection", t.LINE_DIRECTION = "lineDirection", t))(Kt || {});
|
|
5512
5513
|
const Ue = {
|
|
5513
5514
|
"smp-radio": "_smp-radio_1fqe8_1",
|
|
5514
5515
|
"smp-radio-options-container": "_smp-radio-options-container_1fqe8_10",
|
|
@@ -5519,7 +5520,7 @@ const Ue = {
|
|
|
5519
5520
|
}, fo = ({
|
|
5520
5521
|
disabled: t = !1,
|
|
5521
5522
|
displayMode: e = "DescOnly",
|
|
5522
|
-
RadLay: r =
|
|
5523
|
+
RadLay: r = Kt.PAGE_DIRECTION,
|
|
5523
5524
|
RadCol: n,
|
|
5524
5525
|
options: s,
|
|
5525
5526
|
onOptionsRequest: o,
|
|
@@ -5535,7 +5536,7 @@ const Ue = {
|
|
|
5535
5536
|
console.error("Error during loading options (radio)", y);
|
|
5536
5537
|
});
|
|
5537
5538
|
}, [c, o, a]);
|
|
5538
|
-
const f = parseInt(n ?? "", 10), g = r ===
|
|
5539
|
+
const f = parseInt(n ?? "", 10), g = r === Kt.LINE_DIRECTION, h = g && !isNaN(f), b = h ? Ue["smp-radio-horizontal-grid"] : g ? Ue["smp-radio-horizontal"] : "", w = h ? { gridTemplateColumns: `repeat(${f}, 1fr)` } : void 0, v = {
|
|
5539
5540
|
container: Ue["smp-radio"],
|
|
5540
5541
|
optionsContainer: `${Ue["smp-radio-options-container"]} ${b}`,
|
|
5541
5542
|
option: `${Ue["smp-radio-element"]} ${t ? Ue["smp-radio-disabled"] : ""}`
|
|
@@ -5646,7 +5647,7 @@ const Ue = {
|
|
|
5646
5647
|
}), h = oe(() => {
|
|
5647
5648
|
i(!1), o?.current?.focus();
|
|
5648
5649
|
}, []);
|
|
5649
|
-
nt([g, f], a, () => i(!1)),
|
|
5650
|
+
nt([g, f], a, () => i(!1)), sr(a, g), re(() => {
|
|
5650
5651
|
const y = t || "", D = Hr(y) ? y : t || "";
|
|
5651
5652
|
c(y), u(D);
|
|
5652
5653
|
}, [t]), re(() => {
|
|
@@ -5744,7 +5745,7 @@ const zr = /* @__PURE__ */ new Map([
|
|
|
5744
5745
|
]
|
|
5745
5746
|
]), yo = {
|
|
5746
5747
|
"smp-cell-wrapper": "_smp-cell-wrapper_mdlkz_1"
|
|
5747
|
-
}, de = (t) => t == null ? !1 : typeof t == "string" ? t.toLocaleLowerCase() == "yes" || t.toLocaleLowerCase() == "true" : t,
|
|
5748
|
+
}, de = (t) => t == null ? !1 : typeof t == "string" ? t.toLocaleLowerCase() == "yes" || t.toLocaleLowerCase() == "true" : t, hn = ({
|
|
5748
5749
|
bindValue: t,
|
|
5749
5750
|
disabled: e = !1,
|
|
5750
5751
|
label: r,
|
|
@@ -5819,7 +5820,7 @@ const Ce = {
|
|
|
5819
5820
|
"smp-row-wrapperCell": "_smp-row-wrapperCell_qr95z_58",
|
|
5820
5821
|
"smp-row-leftSection": "_smp-row-leftSection_qr95z_65",
|
|
5821
5822
|
"smp-row-node-label": "_smp-row-node-label_qr95z_73"
|
|
5822
|
-
},
|
|
5823
|
+
}, ar = ({
|
|
5823
5824
|
row: t,
|
|
5824
5825
|
columns: e,
|
|
5825
5826
|
columnWidths: r = {},
|
|
@@ -5857,12 +5858,12 @@ const Ce = {
|
|
|
5857
5858
|
}
|
|
5858
5859
|
);
|
|
5859
5860
|
}, y = () => /* @__PURE__ */ p.jsx("span", { className: x.toggle, children: w && /* @__PURE__ */ p.jsx(
|
|
5860
|
-
|
|
5861
|
+
ie,
|
|
5861
5862
|
{
|
|
5862
5863
|
icon: f ? "arrow_drop_right" : "arrow_drop_down",
|
|
5863
5864
|
width: 16
|
|
5864
5865
|
}
|
|
5865
|
-
) }), D = (C, E) => /* @__PURE__ */ p.jsx("span", { className: x.toggle, children: /* @__PURE__ */ p.jsx(
|
|
5866
|
+
) }), D = (C, E) => /* @__PURE__ */ p.jsx("span", { className: x.toggle, children: /* @__PURE__ */ p.jsx(ie, { icon: C, placeholderIcon: E, width: 16 }) }), O = () => /* @__PURE__ */ p.jsx(
|
|
5866
5867
|
"span",
|
|
5867
5868
|
{
|
|
5868
5869
|
className: x.indent,
|
|
@@ -5872,7 +5873,7 @@ const Ce = {
|
|
|
5872
5873
|
), F = () => {
|
|
5873
5874
|
if (l)
|
|
5874
5875
|
return /* @__PURE__ */ p.jsx(
|
|
5875
|
-
|
|
5876
|
+
rr,
|
|
5876
5877
|
{
|
|
5877
5878
|
bindValue: i,
|
|
5878
5879
|
onChange: () => {
|
|
@@ -5967,7 +5968,7 @@ const Ce = {
|
|
|
5967
5968
|
}
|
|
5968
5969
|
);
|
|
5969
5970
|
}, k = () => f || !h || ft(t) ? null : /* @__PURE__ */ p.jsx(p.Fragment, { children: t.children?.map((C, E) => /* @__PURE__ */ p.jsx(
|
|
5970
|
-
|
|
5971
|
+
ar,
|
|
5971
5972
|
{
|
|
5972
5973
|
row: C,
|
|
5973
5974
|
level: n + 1,
|
|
@@ -5994,7 +5995,7 @@ const Ce = {
|
|
|
5994
5995
|
const o = {
|
|
5995
5996
|
table: vo["smp-tree"]
|
|
5996
5997
|
};
|
|
5997
|
-
return n && n.length && /* @__PURE__ */ p.jsx("table", { className: o.table, children: /* @__PURE__ */ p.jsx("tbody", { children: n.map((a, i) => /* @__PURE__ */ p.jsx(
|
|
5998
|
+
return n && n.length && /* @__PURE__ */ p.jsx("table", { className: o.table, children: /* @__PURE__ */ p.jsx("tbody", { children: n.map((a, i) => /* @__PURE__ */ p.jsx(ar, { row: a, onNodeClick: r }, i)) }) });
|
|
5998
5999
|
}, Fe = ({
|
|
5999
6000
|
id: t,
|
|
6000
6001
|
decode: e,
|
|
@@ -6031,7 +6032,7 @@ const Ce = {
|
|
|
6031
6032
|
fun: a,
|
|
6032
6033
|
data: s,
|
|
6033
6034
|
style: g
|
|
6034
|
-
}, F = () =>
|
|
6035
|
+
}, F = () => an(O.obj) ? "INR" : Yt(O.obj) ? "CAL" : r, W = O.data && O.data.size && O.data.size >= 256 && (F() === "ITX" || !F()) ? "MEM" : F(), k = e || D, C = {
|
|
6035
6036
|
id: t,
|
|
6036
6037
|
onBlur: v,
|
|
6037
6038
|
onOptionsRequest: _,
|
|
@@ -6046,7 +6047,7 @@ const Ce = {
|
|
|
6046
6047
|
size: O.data && O.data.size ? O.data.size : 20,
|
|
6047
6048
|
isOptimized: O.data?.isOptimized,
|
|
6048
6049
|
...s
|
|
6049
|
-
}, E = (N, j, m) =>
|
|
6050
|
+
}, E = (N, j, m) => Yt(n) ? Pe(N, new vt(n, j).getLegacyValue()) : cs(n) ? Pe(N, new Et(n, j).getLegacyValue()) : f?.forceUppercase ? Pe(
|
|
6050
6051
|
N,
|
|
6051
6052
|
j.toLocaleUpperCase(),
|
|
6052
6053
|
m
|
|
@@ -6064,7 +6065,7 @@ const Ce = {
|
|
|
6064
6065
|
h?.(E(O, j, m));
|
|
6065
6066
|
}
|
|
6066
6067
|
};
|
|
6067
|
-
return /* @__PURE__ */ p.jsx(
|
|
6068
|
+
return /* @__PURE__ */ p.jsx(dn, { ...N });
|
|
6068
6069
|
}
|
|
6069
6070
|
case te.BUTTON: {
|
|
6070
6071
|
const N = s?.label && typeof s.label == "string" ? s.label : void 0, j = {
|
|
@@ -6093,7 +6094,7 @@ const Ce = {
|
|
|
6093
6094
|
...C,
|
|
6094
6095
|
elements: qr(O)
|
|
6095
6096
|
};
|
|
6096
|
-
return /* @__PURE__ */ p.jsx(
|
|
6097
|
+
return /* @__PURE__ */ p.jsx(nr, { ...N });
|
|
6097
6098
|
}
|
|
6098
6099
|
case te.CHECKBOX:
|
|
6099
6100
|
case te.SWITCH: {
|
|
@@ -6106,7 +6107,7 @@ const Ce = {
|
|
|
6106
6107
|
},
|
|
6107
6108
|
...N && { variant: "switch" }
|
|
6108
6109
|
};
|
|
6109
|
-
return /* @__PURE__ */ p.jsx(
|
|
6110
|
+
return /* @__PURE__ */ p.jsx(rr, { ...j });
|
|
6110
6111
|
}
|
|
6111
6112
|
case te.COMBOBOX: {
|
|
6112
6113
|
const N = {
|
|
@@ -6117,7 +6118,7 @@ const Ce = {
|
|
|
6117
6118
|
h?.(E(O, j, m));
|
|
6118
6119
|
}
|
|
6119
6120
|
};
|
|
6120
|
-
return /* @__PURE__ */ p.jsx(
|
|
6121
|
+
return /* @__PURE__ */ p.jsx(zt, { ...N });
|
|
6121
6122
|
}
|
|
6122
6123
|
case te.DATE: {
|
|
6123
6124
|
const N = {
|
|
@@ -6127,7 +6128,7 @@ const Ce = {
|
|
|
6127
6128
|
h?.(E(O, j));
|
|
6128
6129
|
}
|
|
6129
6130
|
};
|
|
6130
|
-
return /* @__PURE__ */ p.jsx(
|
|
6131
|
+
return /* @__PURE__ */ p.jsx(fn, { ...N });
|
|
6131
6132
|
}
|
|
6132
6133
|
case te.ICON:
|
|
6133
6134
|
case te.IMAGE: {
|
|
@@ -6139,7 +6140,7 @@ const Ce = {
|
|
|
6139
6140
|
b?.(E(O, n.k));
|
|
6140
6141
|
}
|
|
6141
6142
|
};
|
|
6142
|
-
return /* @__PURE__ */ p.jsx(
|
|
6143
|
+
return /* @__PURE__ */ p.jsx(ie, { ...N });
|
|
6143
6144
|
}
|
|
6144
6145
|
case te.INPUT_NUMBER: {
|
|
6145
6146
|
const N = {
|
|
@@ -6149,7 +6150,7 @@ const Ce = {
|
|
|
6149
6150
|
h?.(A(O, j));
|
|
6150
6151
|
}
|
|
6151
6152
|
};
|
|
6152
|
-
return /* @__PURE__ */ p.jsx(
|
|
6153
|
+
return /* @__PURE__ */ p.jsx(pn, { ...N });
|
|
6153
6154
|
}
|
|
6154
6155
|
case te.EDITOR:
|
|
6155
6156
|
case te.MEMO: {
|
|
@@ -6237,7 +6238,7 @@ const Ce = {
|
|
|
6237
6238
|
h?.(E(O, j, m));
|
|
6238
6239
|
}
|
|
6239
6240
|
};
|
|
6240
|
-
return /* @__PURE__ */ p.jsx(
|
|
6241
|
+
return /* @__PURE__ */ p.jsx(hn, { ...N });
|
|
6241
6242
|
}
|
|
6242
6243
|
case te.TIME: {
|
|
6243
6244
|
const N = {
|
|
@@ -6264,7 +6265,7 @@ const Ce = {
|
|
|
6264
6265
|
bindValue: O.obj.k,
|
|
6265
6266
|
optionalDisplayValue: k
|
|
6266
6267
|
};
|
|
6267
|
-
return /* @__PURE__ */ p.jsx(
|
|
6268
|
+
return /* @__PURE__ */ p.jsx(or, { ...N });
|
|
6268
6269
|
}
|
|
6269
6270
|
}
|
|
6270
6271
|
}, X = {
|
|
@@ -6280,7 +6281,7 @@ const Ce = {
|
|
|
6280
6281
|
children: U()
|
|
6281
6282
|
}
|
|
6282
6283
|
);
|
|
6283
|
-
},
|
|
6284
|
+
}, Xo = ({
|
|
6284
6285
|
data: t,
|
|
6285
6286
|
onClick: e,
|
|
6286
6287
|
onEnter: r,
|
|
@@ -6330,7 +6331,7 @@ const Ce = {
|
|
|
6330
6331
|
return re(() => {
|
|
6331
6332
|
t && o(a(t));
|
|
6332
6333
|
}, [t, a]), !t?.rows?.length || !t.columns?.length ? null : s && /* @__PURE__ */ p.jsx("header", { className: "smp-appbar", "aria-label": "App Bar", children: /* @__PURE__ */ p.jsx(bt, { layout: t.rows[0].layout, children: Object.values(s).map((i) => /* @__PURE__ */ p.jsx(Fe, { ...i })) }) });
|
|
6333
|
-
},
|
|
6334
|
+
}, Qo = ({
|
|
6334
6335
|
ColumnsNumber: t = 1,
|
|
6335
6336
|
data: e = {},
|
|
6336
6337
|
ForceText: r,
|
|
@@ -6354,13 +6355,13 @@ const Ce = {
|
|
|
6354
6355
|
}) => {
|
|
6355
6356
|
const T = "N/A", y = e?.columns || [], D = e?.rows || [], O = D.length > 0, F = "--smp-dashList-color", W = "smp-layout", k = "descr", C = "icon", E = "um", A = "value", I = a || "1em", V = "18px", U = "--smp-dashList-columns", X = "--smp-dashList-fontSize", N = {
|
|
6356
6357
|
dash: (z = "1") => {
|
|
6357
|
-
const ee = m(z), B = ee, J = S(ee, k), ce = S(ee, C), he = S(ee, E),
|
|
6358
|
+
const ee = m(z), B = ee, J = S(ee, k), ce = S(ee, C), he = S(ee, E), le = S(ee, A);
|
|
6358
6359
|
return {
|
|
6359
6360
|
container: B,
|
|
6360
6361
|
descr: J,
|
|
6361
6362
|
icon: ce,
|
|
6362
6363
|
um: he,
|
|
6363
|
-
value:
|
|
6364
|
+
value: le
|
|
6364
6365
|
};
|
|
6365
6366
|
},
|
|
6366
6367
|
dashList: `smp-dash-list ${de(o) ? "smp-dash-list-fill-space" : ""}
|
|
@@ -6379,8 +6380,8 @@ const Ce = {
|
|
|
6379
6380
|
(we) => parseInt(we || "0")
|
|
6380
6381
|
), J = "0,0" + (B ? "." + "0".repeat(B) : ""), ce = j(z, J, "it");
|
|
6381
6382
|
if (!ee) return ce;
|
|
6382
|
-
const [he,
|
|
6383
|
-
return he + (
|
|
6383
|
+
const [he, le] = ce.split(",");
|
|
6384
|
+
return he + (le ? `,${le}` : "");
|
|
6384
6385
|
}, P = (z) => z.includes(";") ? z.split(";") : [z], G = (z) => {
|
|
6385
6386
|
const ee = (J) => {
|
|
6386
6387
|
if (J)
|
|
@@ -6405,7 +6406,7 @@ const Ce = {
|
|
|
6405
6406
|
className: ee,
|
|
6406
6407
|
descr: (B) => /* @__PURE__ */ p.jsx("div", { className: ee.descr, children: B }, `${z}-${k}`),
|
|
6407
6408
|
icon: (B) => /* @__PURE__ */ p.jsx("div", { className: ee.icon, children: /* @__PURE__ */ p.jsx(
|
|
6408
|
-
|
|
6409
|
+
ie,
|
|
6409
6410
|
{
|
|
6410
6411
|
color: d,
|
|
6411
6412
|
height: V,
|
|
@@ -6421,16 +6422,16 @@ const Ce = {
|
|
|
6421
6422
|
[L(k)]: R(s),
|
|
6422
6423
|
[L(E)]: R(h),
|
|
6423
6424
|
[L(A)]: R(v)
|
|
6424
|
-
},
|
|
6425
|
+
}, le = [], we = $(ce);
|
|
6425
6426
|
switch (_) {
|
|
6426
6427
|
case "2":
|
|
6427
|
-
B &&
|
|
6428
|
+
B && le.push(K.icon(B)), le.push(K.descr(ee)), le.push(
|
|
6428
6429
|
K.value(J ? we + " " + J : we)
|
|
6429
6430
|
);
|
|
6430
6431
|
break;
|
|
6431
6432
|
default:
|
|
6432
6433
|
case "1":
|
|
6433
|
-
|
|
6434
|
+
le.push(K.descr(ee)), le.push(
|
|
6434
6435
|
K.value(J ? we + " " + J : we)
|
|
6435
6436
|
);
|
|
6436
6437
|
}
|
|
@@ -6443,7 +6444,7 @@ const Ce = {
|
|
|
6443
6444
|
tabIndex: 0,
|
|
6444
6445
|
onClick: () => q(z),
|
|
6445
6446
|
onKeyDown: (Tt) => Y(Tt, z),
|
|
6446
|
-
children:
|
|
6447
|
+
children: le
|
|
6447
6448
|
},
|
|
6448
6449
|
z.rowId
|
|
6449
6450
|
);
|
|
@@ -6452,7 +6453,7 @@ const Ce = {
|
|
|
6452
6453
|
[X]: I
|
|
6453
6454
|
};
|
|
6454
6455
|
return /* @__PURE__ */ p.jsx("div", { className: N.dashList, style: M, children: O ? D.map((z) => ae(z)) : T });
|
|
6455
|
-
},
|
|
6456
|
+
}, mn = {
|
|
6456
6457
|
"smp-table": "_smp-table_v715o_1"
|
|
6457
6458
|
};
|
|
6458
6459
|
function wo(t, e) {
|
|
@@ -6547,29 +6548,35 @@ const Co = ({
|
|
|
6547
6548
|
}, [t, e, r, n]), [s, o];
|
|
6548
6549
|
};
|
|
6549
6550
|
function To(t, e) {
|
|
6550
|
-
return t.map((r) =>
|
|
6551
|
-
|
|
6552
|
-
|
|
6553
|
-
|
|
6554
|
-
|
|
6555
|
-
|
|
6556
|
-
|
|
6557
|
-
|
|
6558
|
-
|
|
6559
|
-
|
|
6551
|
+
return t.map((r) => {
|
|
6552
|
+
const n = e?.[r.name], s = _o(r);
|
|
6553
|
+
return {
|
|
6554
|
+
obj: {
|
|
6555
|
+
t: "",
|
|
6556
|
+
p: "",
|
|
6557
|
+
k: r.name
|
|
6558
|
+
},
|
|
6559
|
+
decode: r.title,
|
|
6560
|
+
shape: void 0,
|
|
6561
|
+
type: n ?? s
|
|
6562
|
+
};
|
|
6563
|
+
});
|
|
6564
|
+
}
|
|
6565
|
+
function _o(t) {
|
|
6566
|
+
return t.obj && an(t.obj) ? "number" : t.obj && Yt(t.obj) ? "date" : "string";
|
|
6560
6567
|
}
|
|
6561
6568
|
function Kr(t, e) {
|
|
6562
|
-
return t ? typeof t == "object" && "logic" in t && "filters" in t ? t : typeof t == "string" ?
|
|
6569
|
+
return t ? typeof t == "object" && "logic" in t && "filters" in t ? t : typeof t == "string" ? jo(t, e) : { logic: "and", filters: [] } : { logic: "and", filters: [] };
|
|
6563
6570
|
}
|
|
6564
|
-
function
|
|
6571
|
+
function jo(t, e) {
|
|
6565
6572
|
const r = t.split("|").map((s) => s.trim()).filter(Boolean), n = [];
|
|
6566
6573
|
for (const s of r) {
|
|
6567
|
-
const o =
|
|
6574
|
+
const o = Oo(s, e);
|
|
6568
6575
|
o && n.push(o);
|
|
6569
6576
|
}
|
|
6570
6577
|
return { logic: "and", filters: n };
|
|
6571
6578
|
}
|
|
6572
|
-
function
|
|
6579
|
+
function Oo(t, e) {
|
|
6573
6580
|
if (!t.trim()) return null;
|
|
6574
6581
|
if (t.includes(";OR;")) {
|
|
6575
6582
|
const n = t.split(";OR;").map((l) => l.trim()).filter(Boolean);
|
|
@@ -6615,7 +6622,7 @@ function It(t, e, r, n) {
|
|
|
6615
6622
|
const c = {
|
|
6616
6623
|
...ht,
|
|
6617
6624
|
obj: { t: "", p: "", k: a }
|
|
6618
|
-
}, d =
|
|
6625
|
+
}, d = Ro(i, l.type);
|
|
6619
6626
|
return {
|
|
6620
6627
|
field: l,
|
|
6621
6628
|
columnsType: l.type,
|
|
@@ -6623,7 +6630,7 @@ function It(t, e, r, n) {
|
|
|
6623
6630
|
value: d
|
|
6624
6631
|
};
|
|
6625
6632
|
}
|
|
6626
|
-
function
|
|
6633
|
+
function Ro(t, e) {
|
|
6627
6634
|
switch (e) {
|
|
6628
6635
|
case "number":
|
|
6629
6636
|
return Number(t);
|
|
@@ -6633,38 +6640,38 @@ function Oo(t, e) {
|
|
|
6633
6640
|
return t;
|
|
6634
6641
|
}
|
|
6635
6642
|
}
|
|
6636
|
-
function
|
|
6637
|
-
return !e || "filters" in e && e.filters.length === 0 ? t : t.filter((r) =>
|
|
6643
|
+
function Do(t, e) {
|
|
6644
|
+
return !e || "filters" in e && e.filters.length === 0 ? t : t.filter((r) => gn(e, r));
|
|
6638
6645
|
}
|
|
6639
|
-
function
|
|
6646
|
+
function gn(t, e) {
|
|
6640
6647
|
if ("filters" in t) {
|
|
6641
6648
|
const { logic: r, filters: n } = t;
|
|
6642
6649
|
if (n.length === 0) return !0;
|
|
6643
|
-
const s = n.map((o) =>
|
|
6650
|
+
const s = n.map((o) => gn(o, e));
|
|
6644
6651
|
return r === "and" ? s.every(Boolean) : s.some(Boolean);
|
|
6645
6652
|
}
|
|
6646
|
-
return
|
|
6653
|
+
return ko(t, e);
|
|
6647
6654
|
}
|
|
6648
|
-
function
|
|
6649
|
-
const { field: r, operator: n, value: s, columnsType: o } = t, a = e.cells?.[r?.obj?.k], i =
|
|
6655
|
+
function ko(t, e) {
|
|
6656
|
+
const { field: r, operator: n, value: s, columnsType: o } = t, a = e.cells?.[r?.obj?.k], i = No(a);
|
|
6650
6657
|
if (i == null) return !1;
|
|
6651
6658
|
switch (o) {
|
|
6652
6659
|
case "string":
|
|
6653
|
-
return No(i, n.obj.k, s);
|
|
6654
|
-
case "number":
|
|
6655
6660
|
return $o(i, n.obj.k, s);
|
|
6656
|
-
case "
|
|
6661
|
+
case "number":
|
|
6657
6662
|
return Lo(i, n.obj.k, s);
|
|
6663
|
+
case "date":
|
|
6664
|
+
return Ao(i, n.obj.k, s);
|
|
6658
6665
|
default:
|
|
6659
6666
|
return !1;
|
|
6660
6667
|
}
|
|
6661
6668
|
}
|
|
6662
|
-
function
|
|
6669
|
+
function No(t) {
|
|
6663
6670
|
if (t == null || typeof t != "object") return t;
|
|
6664
6671
|
if ("value" in t) return t.value;
|
|
6665
6672
|
if ("decode" in t) return t.decode;
|
|
6666
6673
|
}
|
|
6667
|
-
function
|
|
6674
|
+
function $o(t, e, r) {
|
|
6668
6675
|
const n = String(t).toLowerCase(), s = String(r).toLowerCase();
|
|
6669
6676
|
switch (e.toLowerCase()) {
|
|
6670
6677
|
case "contains":
|
|
@@ -6679,7 +6686,7 @@ function No(t, e, r) {
|
|
|
6679
6686
|
return !1;
|
|
6680
6687
|
}
|
|
6681
6688
|
}
|
|
6682
|
-
function
|
|
6689
|
+
function Lo(t, e, r) {
|
|
6683
6690
|
const n = Number(t), s = Number(r);
|
|
6684
6691
|
if (isNaN(n) || isNaN(s)) return !1;
|
|
6685
6692
|
switch (e.toLowerCase()) {
|
|
@@ -6699,7 +6706,7 @@ function $o(t, e, r) {
|
|
|
6699
6706
|
return !1;
|
|
6700
6707
|
}
|
|
6701
6708
|
}
|
|
6702
|
-
function
|
|
6709
|
+
function Ao(t, e, r) {
|
|
6703
6710
|
const n = new Date(t), s = new Date(r);
|
|
6704
6711
|
if (isNaN(n.getTime()) || isNaN(s.getTime())) return !1;
|
|
6705
6712
|
switch (e.toLowerCase()) {
|
|
@@ -6718,16 +6725,16 @@ function Lo(t, e, r) {
|
|
|
6718
6725
|
return !1;
|
|
6719
6726
|
}
|
|
6720
6727
|
}
|
|
6721
|
-
const
|
|
6728
|
+
const Io = (t, e) => {
|
|
6722
6729
|
const r = (n) => n.filters.some(
|
|
6723
6730
|
(s) => "filters" in s ? r(s) : s.field?.obj?.k === t && s.operator && s.value !== ""
|
|
6724
6731
|
);
|
|
6725
6732
|
return r(e);
|
|
6726
|
-
},
|
|
6733
|
+
}, Po = (t) => {
|
|
6727
6734
|
const e = (r) => r.filters.reduce((n, s) => "filters" in s ? n + e(s) : n + 1, 0);
|
|
6728
6735
|
return e(t);
|
|
6729
6736
|
};
|
|
6730
|
-
function
|
|
6737
|
+
function Fo(t, e) {
|
|
6731
6738
|
const r = ue(null), n = oe((a) => {
|
|
6732
6739
|
r.current = a;
|
|
6733
6740
|
}, []), s = oe((a) => {
|
|
@@ -6749,7 +6756,7 @@ function Po(t, e) {
|
|
|
6749
6756
|
handleDrop: o
|
|
6750
6757
|
};
|
|
6751
6758
|
}
|
|
6752
|
-
function
|
|
6759
|
+
function bn(t, e, r) {
|
|
6753
6760
|
const s = t.columns.find((a) => a.name === e)?.obj?.t, o = [...t.rows].sort((a, i) => {
|
|
6754
6761
|
const l = a.cells[e]?.obj?.k, c = i.cells[e]?.obj?.k;
|
|
6755
6762
|
if (l == null && c != null) return r === "asc" ? 1 : -1;
|
|
@@ -6773,10 +6780,10 @@ function gn(t, e, r) {
|
|
|
6773
6780
|
rows: o
|
|
6774
6781
|
};
|
|
6775
6782
|
}
|
|
6776
|
-
function
|
|
6783
|
+
function Mo(t) {
|
|
6777
6784
|
const [e, r] = H(null), [n, s] = H("asc");
|
|
6778
6785
|
return {
|
|
6779
|
-
sortedRows: Qe(() => e ?
|
|
6786
|
+
sortedRows: Qe(() => e ? bn({ ...t, rows: t.rows }, e, n).rows : t.rows, [t, e, n]),
|
|
6780
6787
|
sortBy: e,
|
|
6781
6788
|
sortOrder: n,
|
|
6782
6789
|
handleSort: (i) => {
|
|
@@ -6784,11 +6791,11 @@ function Fo(t) {
|
|
|
6784
6791
|
}
|
|
6785
6792
|
};
|
|
6786
6793
|
}
|
|
6787
|
-
const
|
|
6794
|
+
const Vo = ({ columns: t, columnWidths: e }) => /* @__PURE__ */ p.jsx("tfoot", { children: /* @__PURE__ */ p.jsx("tr", { children: t.map(
|
|
6788
6795
|
(r) => r.visible && /* @__PURE__ */ p.jsx(
|
|
6789
6796
|
"td",
|
|
6790
6797
|
{
|
|
6791
|
-
className:
|
|
6798
|
+
className: mn["smp-headerCell"],
|
|
6792
6799
|
style: {
|
|
6793
6800
|
width: e[r.name],
|
|
6794
6801
|
minWidth: e[r.name],
|
|
@@ -6797,7 +6804,7 @@ const Mo = ({ columns: t, columnWidths: e }) => /* @__PURE__ */ p.jsx("tfoot", {
|
|
|
6797
6804
|
},
|
|
6798
6805
|
r.name
|
|
6799
6806
|
)
|
|
6800
|
-
) }) }),
|
|
6807
|
+
) }) }), Uo = ({
|
|
6801
6808
|
label: t,
|
|
6802
6809
|
rowHeight: e = 28,
|
|
6803
6810
|
offsetTop: r = 0,
|
|
@@ -6828,7 +6835,7 @@ const Mo = ({ columns: t, columnWidths: e }) => /* @__PURE__ */ p.jsx("tfoot", {
|
|
|
6828
6835
|
},
|
|
6829
6836
|
children: [
|
|
6830
6837
|
/* @__PURE__ */ p.jsx(
|
|
6831
|
-
|
|
6838
|
+
ie,
|
|
6832
6839
|
{
|
|
6833
6840
|
icon: o ? "arrow_drop_down" : "arrow_drop_right",
|
|
6834
6841
|
width: 16
|
|
@@ -6841,10 +6848,10 @@ const Mo = ({ columns: t, columnWidths: e }) => /* @__PURE__ */ p.jsx("tfoot", {
|
|
|
6841
6848
|
}
|
|
6842
6849
|
);
|
|
6843
6850
|
};
|
|
6844
|
-
function
|
|
6851
|
+
function Bo(t) {
|
|
6845
6852
|
return t.split("|");
|
|
6846
6853
|
}
|
|
6847
|
-
function
|
|
6854
|
+
function Wo(t, e) {
|
|
6848
6855
|
return t.columns.map((r) => ({
|
|
6849
6856
|
...r,
|
|
6850
6857
|
visible: e.includes(r.name)
|
|
@@ -6857,7 +6864,7 @@ const Ye = {
|
|
|
6857
6864
|
"smp-filter-list": "_smp-filter-list_1dest_24",
|
|
6858
6865
|
"smp-filter-toolbar": "_smp-filter-toolbar_1dest_31",
|
|
6859
6866
|
"smp-filter-actionButtons": "_smp-filter-actionButtons_1dest_41"
|
|
6860
|
-
},
|
|
6867
|
+
}, Yo = ({ filter: t, onChange: e, onDelete: r, fieldOptions: n, hasCurrentColumn: s }) => {
|
|
6861
6868
|
const { translate: o } = Re(), a = {
|
|
6862
6869
|
string: [
|
|
6863
6870
|
{
|
|
@@ -6956,7 +6963,7 @@ const Ye = {
|
|
|
6956
6963
|
);
|
|
6957
6964
|
case "number":
|
|
6958
6965
|
return /* @__PURE__ */ p.jsx(
|
|
6959
|
-
|
|
6966
|
+
pn,
|
|
6960
6967
|
{
|
|
6961
6968
|
bindValue: t.value,
|
|
6962
6969
|
onChange: c
|
|
@@ -6964,7 +6971,7 @@ const Ye = {
|
|
|
6964
6971
|
);
|
|
6965
6972
|
case "date":
|
|
6966
6973
|
return /* @__PURE__ */ p.jsx(
|
|
6967
|
-
|
|
6974
|
+
fn,
|
|
6968
6975
|
{
|
|
6969
6976
|
bindValue: t.value,
|
|
6970
6977
|
onChange: c
|
|
@@ -6976,7 +6983,7 @@ const Ye = {
|
|
|
6976
6983
|
};
|
|
6977
6984
|
return /* @__PURE__ */ p.jsxs("div", { className: u.row, children: [
|
|
6978
6985
|
!s && /* @__PURE__ */ p.jsx(
|
|
6979
|
-
|
|
6986
|
+
zt,
|
|
6980
6987
|
{
|
|
6981
6988
|
bindValue: t.field.obj.k,
|
|
6982
6989
|
options: n.map((f) => ({
|
|
@@ -6991,7 +6998,7 @@ const Ye = {
|
|
|
6991
6998
|
}
|
|
6992
6999
|
),
|
|
6993
7000
|
/* @__PURE__ */ p.jsx(
|
|
6994
|
-
|
|
7001
|
+
zt,
|
|
6995
7002
|
{
|
|
6996
7003
|
bindValue: t.operator?.obj?.k,
|
|
6997
7004
|
options: a[t.columnsType],
|
|
@@ -6999,7 +7006,8 @@ const Ye = {
|
|
|
6999
7006
|
listDisplayMode: Je.BOTH,
|
|
7000
7007
|
displayMode: Je.CODE_ONLY,
|
|
7001
7008
|
isEditable: !0
|
|
7002
|
-
}
|
|
7009
|
+
},
|
|
7010
|
+
t.columnsType
|
|
7003
7011
|
),
|
|
7004
7012
|
d(),
|
|
7005
7013
|
/* @__PURE__ */ p.jsx(
|
|
@@ -7015,7 +7023,7 @@ const Ye = {
|
|
|
7015
7023
|
}
|
|
7016
7024
|
)
|
|
7017
7025
|
] });
|
|
7018
|
-
},
|
|
7026
|
+
}, yn = ({
|
|
7019
7027
|
group: t,
|
|
7020
7028
|
onChange: e,
|
|
7021
7029
|
onDelete: r,
|
|
@@ -7084,7 +7092,7 @@ const Ye = {
|
|
|
7084
7092
|
children: [
|
|
7085
7093
|
/* @__PURE__ */ p.jsxs("div", { className: w.filterToolbar, children: [
|
|
7086
7094
|
c && /* @__PURE__ */ p.jsx(
|
|
7087
|
-
|
|
7095
|
+
hn,
|
|
7088
7096
|
{
|
|
7089
7097
|
options: [
|
|
7090
7098
|
{
|
|
@@ -7151,7 +7159,7 @@ const Ye = {
|
|
|
7151
7159
|
] }),
|
|
7152
7160
|
/* @__PURE__ */ p.jsx("div", { className: w.filterList, children: t.filters.map((v, _) => ({ filter: v, index: _ })).filter(({ filter: v }) => l ? "logic" in v ? v.filters.some((_) => "logic" in _ ? !1 : _.field?.obj?.k === l) : v.field?.obj?.k === l : !0).map(
|
|
7153
7161
|
({ filter: v, index: _ }) => "logic" in v ? /* @__PURE__ */ p.jsx(
|
|
7154
|
-
|
|
7162
|
+
yn,
|
|
7155
7163
|
{
|
|
7156
7164
|
group: v,
|
|
7157
7165
|
onChange: (x) => u(_, x),
|
|
@@ -7165,7 +7173,7 @@ const Ye = {
|
|
|
7165
7173
|
},
|
|
7166
7174
|
_
|
|
7167
7175
|
) : /* @__PURE__ */ p.jsx(
|
|
7168
|
-
|
|
7176
|
+
Yo,
|
|
7169
7177
|
{
|
|
7170
7178
|
filter: v,
|
|
7171
7179
|
onChange: (x) => u(_, x),
|
|
@@ -7194,7 +7202,7 @@ const Ye = {
|
|
|
7194
7202
|
filterWrapper: `${Ye["smp-filter-wrapper"]}`
|
|
7195
7203
|
};
|
|
7196
7204
|
return /* @__PURE__ */ p.jsx("div", { className: c.filterWrapper, ref: o, children: /* @__PURE__ */ p.jsx(
|
|
7197
|
-
|
|
7205
|
+
yn,
|
|
7198
7206
|
{
|
|
7199
7207
|
group: t,
|
|
7200
7208
|
onChange: e,
|
|
@@ -7206,7 +7214,7 @@ const Ye = {
|
|
|
7206
7214
|
onClose: l
|
|
7207
7215
|
}
|
|
7208
7216
|
) });
|
|
7209
|
-
},
|
|
7217
|
+
}, Go = ({
|
|
7210
7218
|
groups: t = [],
|
|
7211
7219
|
isDraggable: e = !0,
|
|
7212
7220
|
isEditable: r = !0,
|
|
@@ -7226,9 +7234,9 @@ const Ye = {
|
|
|
7226
7234
|
onDragOver: o,
|
|
7227
7235
|
onDrop: s,
|
|
7228
7236
|
children: [
|
|
7229
|
-
/* @__PURE__ */ p.jsx(
|
|
7237
|
+
/* @__PURE__ */ p.jsx(ie, { icon: "groups" }),
|
|
7230
7238
|
/* @__PURE__ */ p.jsx(
|
|
7231
|
-
|
|
7239
|
+
nr,
|
|
7232
7240
|
{
|
|
7233
7241
|
elements: a,
|
|
7234
7242
|
isEditable: r,
|
|
@@ -7247,7 +7255,7 @@ const Ye = {
|
|
|
7247
7255
|
"smp-resizer": "_smp-resizer_laepr_34",
|
|
7248
7256
|
"smp-datatable-toolbar": "_smp-datatable-toolbar_laepr_52",
|
|
7249
7257
|
"smp-datatable-filter": "_smp-datatable-filter_laepr_53"
|
|
7250
|
-
},
|
|
7258
|
+
}, qo = ({
|
|
7251
7259
|
columns: t,
|
|
7252
7260
|
columnWidths: e,
|
|
7253
7261
|
groups: r,
|
|
@@ -7283,10 +7291,10 @@ const Ye = {
|
|
|
7283
7291
|
position: "bottom",
|
|
7284
7292
|
open: a !== null
|
|
7285
7293
|
}), U = oe(
|
|
7286
|
-
(j) =>
|
|
7294
|
+
(j) => Io(j, i),
|
|
7287
7295
|
[i]
|
|
7288
7296
|
), X = Qe(
|
|
7289
|
-
() =>
|
|
7297
|
+
() => Po(i),
|
|
7290
7298
|
[i]
|
|
7291
7299
|
), N = {
|
|
7292
7300
|
headerCell: `${Ie["smp-headerCell"]}`,
|
|
@@ -7321,7 +7329,7 @@ const Ye = {
|
|
|
7321
7329
|
) })
|
|
7322
7330
|
] }) }),
|
|
7323
7331
|
(r || s) && /* @__PURE__ */ p.jsx(
|
|
7324
|
-
|
|
7332
|
+
Go,
|
|
7325
7333
|
{
|
|
7326
7334
|
groups: n,
|
|
7327
7335
|
onChange: _,
|
|
@@ -7349,7 +7357,7 @@ const Ye = {
|
|
|
7349
7357
|
className: N.headerCell,
|
|
7350
7358
|
style: { minWidth: 40, justifyContent: "center" },
|
|
7351
7359
|
children: /* @__PURE__ */ p.jsx(
|
|
7352
|
-
|
|
7360
|
+
rr,
|
|
7353
7361
|
{
|
|
7354
7362
|
bindValue: u,
|
|
7355
7363
|
onChange: D
|
|
@@ -7391,7 +7399,7 @@ const Ye = {
|
|
|
7391
7399
|
/* @__PURE__ */ p.jsx(Oe, { variant: "title", bindValue: j.title }),
|
|
7392
7400
|
/* @__PURE__ */ p.jsxs("div", { children: [
|
|
7393
7401
|
f === j.name ? /* @__PURE__ */ p.jsx(
|
|
7394
|
-
|
|
7402
|
+
ie,
|
|
7395
7403
|
{
|
|
7396
7404
|
icon: g === "asc" ? "arrow-up" : "arrow-down",
|
|
7397
7405
|
isInteractable: !0
|
|
@@ -7402,7 +7410,7 @@ const Ye = {
|
|
|
7402
7410
|
{
|
|
7403
7411
|
className: `${U(j.name) ? Ie["smp-headerCell-iconNotification"] : ""}`,
|
|
7404
7412
|
children: /* @__PURE__ */ p.jsx(
|
|
7405
|
-
|
|
7413
|
+
ie,
|
|
7406
7414
|
{
|
|
7407
7415
|
icon: "filter_list",
|
|
7408
7416
|
onClick: (m) => {
|
|
@@ -7450,7 +7458,7 @@ const Ye = {
|
|
|
7450
7458
|
)
|
|
7451
7459
|
] })
|
|
7452
7460
|
] });
|
|
7453
|
-
},
|
|
7461
|
+
}, Zo = ({
|
|
7454
7462
|
data: t,
|
|
7455
7463
|
lineHeight: e = 28,
|
|
7456
7464
|
TableHeight: r = 400,
|
|
@@ -7465,20 +7473,20 @@ const Ye = {
|
|
|
7465
7473
|
onContextMenu: u
|
|
7466
7474
|
}) => {
|
|
7467
7475
|
const [f, g] = H(() => t ? {
|
|
7468
|
-
columns: l ?
|
|
7476
|
+
columns: l ? Wo(t, Bo(l)) : t.columns,
|
|
7469
7477
|
rows: t.rows ?? []
|
|
7470
7478
|
} : { columns: [], rows: [] }), [h, b] = H(n || []), [w, v] = H(/* @__PURE__ */ new Set()), [_, x] = H(!1), [T, y] = H(/* @__PURE__ */ new Set()), [D, O] = H(null), F = Qe(() => To(t?.columns || []), [t?.columns]), [W, k] = H(() => Kr(a, F)), C = ue(null), [E, A] = Co({
|
|
7471
7479
|
columns: f?.columns ?? [],
|
|
7472
7480
|
rows: f?.rows ?? [],
|
|
7473
7481
|
containerRef: C,
|
|
7474
7482
|
sizingMode: s
|
|
7475
|
-
}), { handleDragStart: I, handleDragOver: V, handleDrop: U } =
|
|
7483
|
+
}), { handleDragStart: I, handleDragOver: V, handleDrop: U } = Fo(
|
|
7476
7484
|
f.columns,
|
|
7477
7485
|
(B) => g((J) => ({ ...J, columns: B }))
|
|
7478
7486
|
), X = Qe(() => {
|
|
7479
7487
|
const B = f.rows.map((J, ce) => ce);
|
|
7480
7488
|
return B.every((J) => T.has(J)) && B.length > 0;
|
|
7481
|
-
}, [T, f.rows]), { sortBy: N, sortOrder: j, handleSort: m } =
|
|
7489
|
+
}, [T, f.rows]), { sortBy: N, sortOrder: j, handleSort: m } = Mo({
|
|
7482
7490
|
...f,
|
|
7483
7491
|
rows: f.rows
|
|
7484
7492
|
}), { virtualItems: S, containerProps: L, innerProps: R } = on({
|
|
@@ -7494,9 +7502,9 @@ const Ye = {
|
|
|
7494
7502
|
}
|
|
7495
7503
|
}, [T, i, f.rows, d]), re(() => {
|
|
7496
7504
|
let B = t?.rows ?? [];
|
|
7497
|
-
W?.filters?.length > 0 && (B =
|
|
7505
|
+
W?.filters?.length > 0 && (B = Do(B, W));
|
|
7498
7506
|
let J = B;
|
|
7499
|
-
N && (J =
|
|
7507
|
+
N && (J = bn(
|
|
7500
7508
|
{ ...t ?? { columns: [], rows: [] }, rows: B },
|
|
7501
7509
|
N,
|
|
7502
7510
|
j
|
|
@@ -7537,33 +7545,33 @@ const Ye = {
|
|
|
7537
7545
|
}, Q = (B) => {
|
|
7538
7546
|
B.preventDefault();
|
|
7539
7547
|
const J = B.dataTransfer.getData("text/plain");
|
|
7540
|
-
if (!J || h.some((
|
|
7548
|
+
if (!J || h.some((le) => le.column === J))
|
|
7541
7549
|
return;
|
|
7542
7550
|
const he = [...h, { column: J, visible: !0 }];
|
|
7543
7551
|
b(he);
|
|
7544
7552
|
}, K = (B) => {
|
|
7545
7553
|
B.preventDefault();
|
|
7546
7554
|
}, ae = (B, J) => {
|
|
7547
|
-
const ce = B.clientX, he = E[J],
|
|
7548
|
-
const
|
|
7549
|
-
A((
|
|
7550
|
-
...
|
|
7551
|
-
[J]:
|
|
7555
|
+
const ce = B.clientX, he = E[J], le = (Tt) => {
|
|
7556
|
+
const vn = Tt.clientX - ce, xn = Math.max(50, he + vn);
|
|
7557
|
+
A((wn) => ({
|
|
7558
|
+
...wn,
|
|
7559
|
+
[J]: xn
|
|
7552
7560
|
}));
|
|
7553
7561
|
}, we = () => {
|
|
7554
|
-
window.removeEventListener("mousemove",
|
|
7562
|
+
window.removeEventListener("mousemove", le), window.removeEventListener("mouseup", we);
|
|
7555
7563
|
};
|
|
7556
|
-
window.addEventListener("mousemove",
|
|
7564
|
+
window.addEventListener("mousemove", le), window.addEventListener("mouseup", we);
|
|
7557
7565
|
}, M = (B) => {
|
|
7558
7566
|
y((J) => {
|
|
7559
7567
|
const ce = new Set(J);
|
|
7560
|
-
return B.every((
|
|
7568
|
+
return B.every((le) => ce.has(le)) ? B.forEach((le) => ce.delete(le)) : B.forEach((le) => ce.add(le)), ce;
|
|
7561
7569
|
});
|
|
7562
7570
|
}, z = () => {
|
|
7563
7571
|
const B = f.rows.map((J, ce) => ce);
|
|
7564
7572
|
M(B);
|
|
7565
7573
|
}, ee = {
|
|
7566
|
-
smpTable: `${
|
|
7574
|
+
smpTable: `${mn["smp-table"]}`
|
|
7567
7575
|
};
|
|
7568
7576
|
return f && /* @__PURE__ */ p.jsx(
|
|
7569
7577
|
"div",
|
|
@@ -7573,7 +7581,7 @@ const Ye = {
|
|
|
7573
7581
|
ref: C,
|
|
7574
7582
|
children: /* @__PURE__ */ p.jsxs("table", { children: [
|
|
7575
7583
|
/* @__PURE__ */ p.jsx(
|
|
7576
|
-
|
|
7584
|
+
qo,
|
|
7577
7585
|
{
|
|
7578
7586
|
columns: f.columns,
|
|
7579
7587
|
columnWidths: E,
|
|
@@ -7607,21 +7615,21 @@ const Ye = {
|
|
|
7607
7615
|
/* @__PURE__ */ p.jsx("tbody", { ...R, children: S.map(({ item: B, index: J, offsetTop: ce }) => {
|
|
7608
7616
|
const he = B.id || B.value || `${B.isGroup ? "group" : "row"}-${J}`;
|
|
7609
7617
|
return B.isGroup ? /* @__PURE__ */ p.jsx(
|
|
7610
|
-
|
|
7618
|
+
Uo,
|
|
7611
7619
|
{
|
|
7612
7620
|
label: B.value || "",
|
|
7613
7621
|
rowHeight: e,
|
|
7614
7622
|
offsetTop: ce,
|
|
7615
7623
|
level: B.level,
|
|
7616
7624
|
onClick: () => {
|
|
7617
|
-
const
|
|
7618
|
-
|
|
7625
|
+
const le = B.id;
|
|
7626
|
+
le && v((we) => wo(we, le));
|
|
7619
7627
|
},
|
|
7620
7628
|
isExpanded: B.isExpanded
|
|
7621
7629
|
},
|
|
7622
7630
|
`group-${he}`
|
|
7623
7631
|
) : /* @__PURE__ */ p.jsx(
|
|
7624
|
-
|
|
7632
|
+
ar,
|
|
7625
7633
|
{
|
|
7626
7634
|
row: B,
|
|
7627
7635
|
columns: f.columns,
|
|
@@ -7640,11 +7648,11 @@ const Ye = {
|
|
|
7640
7648
|
`row-${he}`
|
|
7641
7649
|
);
|
|
7642
7650
|
}) }),
|
|
7643
|
-
/* @__PURE__ */ p.jsx(
|
|
7651
|
+
/* @__PURE__ */ p.jsx(Vo, { columns: f.columns, columnWidths: E })
|
|
7644
7652
|
] })
|
|
7645
7653
|
}
|
|
7646
7654
|
);
|
|
7647
|
-
},
|
|
7655
|
+
}, ea = ({
|
|
7648
7656
|
data: t,
|
|
7649
7657
|
logo: e,
|
|
7650
7658
|
open: r,
|
|
@@ -7752,7 +7760,7 @@ const Ye = {
|
|
|
7752
7760
|
children: /* @__PURE__ */ p.jsxs("div", { className: x.container, children: [
|
|
7753
7761
|
/* @__PURE__ */ p.jsxs("div", { className: x.containerHeader, children: [
|
|
7754
7762
|
e && /* @__PURE__ */ p.jsx("div", { className: x.containerLogo, children: /* @__PURE__ */ p.jsx(
|
|
7755
|
-
|
|
7763
|
+
ie,
|
|
7756
7764
|
{
|
|
7757
7765
|
icon: e,
|
|
7758
7766
|
title: "drawer_logo",
|
|
@@ -7761,7 +7769,7 @@ const Ye = {
|
|
|
7761
7769
|
}
|
|
7762
7770
|
) }),
|
|
7763
7771
|
/* @__PURE__ */ p.jsx("div", { className: x.containerIcon, children: /* @__PURE__ */ p.jsx(
|
|
7764
|
-
|
|
7772
|
+
ie,
|
|
7765
7773
|
{
|
|
7766
7774
|
icon: de(n) ? "menu_close" : "close",
|
|
7767
7775
|
title: "drawer_icon",
|
|
@@ -7778,7 +7786,7 @@ const Ye = {
|
|
|
7778
7786
|
}
|
|
7779
7787
|
)
|
|
7780
7788
|
] });
|
|
7781
|
-
},
|
|
7789
|
+
}, ta = ({
|
|
7782
7790
|
data: t,
|
|
7783
7791
|
Type: e,
|
|
7784
7792
|
ShowSubmit: r = !1,
|
|
@@ -7875,9 +7883,9 @@ const Ye = {
|
|
|
7875
7883
|
[o.name]: a
|
|
7876
7884
|
};
|
|
7877
7885
|
}, {});
|
|
7878
|
-
},
|
|
7886
|
+
}, Ho = {
|
|
7879
7887
|
"smp-form": "_smp-form_9ox03_1"
|
|
7880
|
-
},
|
|
7888
|
+
}, ra = ({
|
|
7881
7889
|
data: t,
|
|
7882
7890
|
id: e,
|
|
7883
7891
|
readOnly: r = !1,
|
|
@@ -7990,7 +7998,7 @@ const Ye = {
|
|
|
7990
7998
|
cell: C
|
|
7991
7999
|
});
|
|
7992
8000
|
}
|
|
7993
|
-
}, W = t.setup?.commands?.map((C, E) => /* @__PURE__ */
|
|
8001
|
+
}, W = t.setup?.commands?.map((C, E) => /* @__PURE__ */ En(
|
|
7994
8002
|
Fe,
|
|
7995
8003
|
{
|
|
7996
8004
|
...C,
|
|
@@ -8026,7 +8034,7 @@ const Ye = {
|
|
|
8026
8034
|
)
|
|
8027
8035
|
);
|
|
8028
8036
|
const k = {
|
|
8029
|
-
smpForm: `${
|
|
8037
|
+
smpForm: `${Ho["smp-form"]}`
|
|
8030
8038
|
};
|
|
8031
8039
|
return w && // eslint-disable-next-line jsx-a11y/no-redundant-roles
|
|
8032
8040
|
/* @__PURE__ */ p.jsxs(
|
|
@@ -8081,24 +8089,24 @@ const Ye = {
|
|
|
8081
8089
|
);
|
|
8082
8090
|
};
|
|
8083
8091
|
export {
|
|
8084
|
-
|
|
8085
|
-
|
|
8092
|
+
Xo as AppBar,
|
|
8093
|
+
dn as Autocomplete,
|
|
8086
8094
|
me as Button,
|
|
8087
8095
|
ro as ButtonList,
|
|
8088
|
-
|
|
8089
|
-
|
|
8090
|
-
|
|
8091
|
-
|
|
8092
|
-
|
|
8093
|
-
|
|
8094
|
-
|
|
8095
|
-
|
|
8096
|
+
rr as Checkbox,
|
|
8097
|
+
nr as Chips,
|
|
8098
|
+
zt as Combobox,
|
|
8099
|
+
Qo as DashList,
|
|
8100
|
+
Zo as DataTableComponent,
|
|
8101
|
+
fn as DatePicker,
|
|
8102
|
+
ea as Drawer,
|
|
8103
|
+
ta as Field,
|
|
8096
8104
|
Xr as INPUT_PANEL_COMMAND_SUBMIT_EVENT_NAME,
|
|
8097
|
-
|
|
8098
|
-
|
|
8105
|
+
ie as Icon,
|
|
8106
|
+
ra as InputPanel,
|
|
8099
8107
|
io as Password,
|
|
8100
|
-
|
|
8108
|
+
ls as TabBar,
|
|
8101
8109
|
uo as Textarea,
|
|
8102
8110
|
_e as Textfield,
|
|
8103
|
-
|
|
8111
|
+
Jo as configurePaths
|
|
8104
8112
|
};
|