@sme.up/ketchup2 2.0.0-SNAPSHOT-20250812132438 → 2.0.0-SNAPSHOT-20250813152631
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/tab-bar/tab-bar.d.ts.map +1 -1
- package/dist/components/toolbar/toolbar-types.d.ts +2 -2
- package/dist/components/toolbar/toolbar-types.d.ts.map +1 -1
- package/dist/components/toolbar/toolbar-utils/useToolbarInteractions.d.ts +1 -1
- package/dist/components/toolbar/toolbar-utils/useToolbarInteractions.d.ts.map +1 -1
- package/dist/components/toolbar/toolbar.d.ts.map +1 -1
- package/dist/hooks/useFloating.d.ts +2 -1
- package/dist/hooks/useFloating.d.ts.map +1 -1
- package/dist/ketchup2.cjs.js +8 -8
- package/dist/ketchup2.css +1 -1
- package/dist/ketchup2.es.js +295 -282
- package/package.json +1 -1
package/dist/ketchup2.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as rt from "react";
|
|
2
|
-
import mt, { useState as H, useEffect as re, useRef as ue, useCallback as ae, useLayoutEffect as wn, useId as
|
|
2
|
+
import mt, { useState as H, useEffect as re, useRef as ue, useCallback as ae, useLayoutEffect as wn, useId as ke, useMemo as Je, createElement as Sn } from "react";
|
|
3
3
|
import { createPortal as En } from "react-dom";
|
|
4
4
|
var nt = { exports: {} }, qe = {};
|
|
5
5
|
/**
|
|
@@ -78,7 +78,7 @@ function Tn() {
|
|
|
78
78
|
case E:
|
|
79
79
|
var S = g.render;
|
|
80
80
|
return g = g.displayName, g || (g = S.displayName || S.name || "", g = g !== "" ? "ForwardRef(" + g + ")" : "ForwardRef"), g;
|
|
81
|
-
case
|
|
81
|
+
case I:
|
|
82
82
|
return S = g.displayName || null, S !== null ? S : t(g.type) || "Memo";
|
|
83
83
|
case V:
|
|
84
84
|
S = g._payload, g = g._init;
|
|
@@ -237,7 +237,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
237
237
|
function u(g) {
|
|
238
238
|
typeof g == "object" && g !== null && g.$$typeof === m && g._store && (g._store.validated = 1);
|
|
239
239
|
}
|
|
240
|
-
var f = mt, m = Symbol.for("react.transitional.element"), h = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), x = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), T = Symbol.for("react.consumer"), w = Symbol.for("react.context"), E = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), C = Symbol.for("react.suspense_list"),
|
|
240
|
+
var f = mt, m = Symbol.for("react.transitional.element"), h = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), x = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), T = Symbol.for("react.consumer"), w = Symbol.for("react.context"), E = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), C = Symbol.for("react.suspense_list"), I = Symbol.for("react.memo"), V = Symbol.for("react.lazy"), F = Symbol.for("react.activity"), O = Symbol.for("react.client.reference"), j = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, _ = Object.prototype.hasOwnProperty, L = Array.isArray, D = console.createTask ? console.createTask : function() {
|
|
241
241
|
return null;
|
|
242
242
|
};
|
|
243
243
|
f = {
|
|
@@ -248,7 +248,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
248
248
|
var K, G = {}, A = f.react_stack_bottom_frame.bind(
|
|
249
249
|
f,
|
|
250
250
|
o
|
|
251
|
-
)(),
|
|
251
|
+
)(), P = D(n(o)), k = {};
|
|
252
252
|
He.Fragment = y, He.jsx = function(g, S, N, R, $) {
|
|
253
253
|
var M = 1e4 > j.recentlyCreatedOwnerStacks++;
|
|
254
254
|
return d(
|
|
@@ -259,7 +259,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
259
259
|
R,
|
|
260
260
|
$,
|
|
261
261
|
M ? Error("react-stack-top-frame") : A,
|
|
262
|
-
M ? D(n(g)) :
|
|
262
|
+
M ? D(n(g)) : P
|
|
263
263
|
);
|
|
264
264
|
}, He.jsxs = function(g, S, N, R, $) {
|
|
265
265
|
var M = 1e4 > j.recentlyCreatedOwnerStacks++;
|
|
@@ -271,7 +271,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
271
271
|
R,
|
|
272
272
|
$,
|
|
273
273
|
M ? Error("react-stack-top-frame") : A,
|
|
274
|
-
M ? D(n(g)) :
|
|
274
|
+
M ? D(n(g)) : P
|
|
275
275
|
);
|
|
276
276
|
};
|
|
277
277
|
}()), He;
|
|
@@ -411,17 +411,17 @@ 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
|
-
},
|
|
415
|
-
|
|
414
|
+
}, Re = {}, dr = function(e, r) {
|
|
415
|
+
Re[e] = Re[e] || [], Re[e].push(r);
|
|
416
416
|
}, kn = function(e) {
|
|
417
417
|
for (var r = function(a, i) {
|
|
418
418
|
setTimeout(function() {
|
|
419
|
-
if (Array.isArray(
|
|
420
|
-
var l = Be.get(e), c =
|
|
421
|
-
l instanceof SVGSVGElement && c(null, Zr(l)), l instanceof Error && c(l), a ===
|
|
419
|
+
if (Array.isArray(Re[e])) {
|
|
420
|
+
var l = Be.get(e), c = Re[e][a];
|
|
421
|
+
l instanceof SVGSVGElement && c(null, Zr(l)), l instanceof Error && c(l), a === Re[e].length - 1 && delete Re[e];
|
|
422
422
|
}
|
|
423
423
|
}, 0);
|
|
424
|
-
}, n = 0, s =
|
|
424
|
+
}, n = 0, s = Re[e].length; n < s; n++)
|
|
425
425
|
r(n);
|
|
426
426
|
}, Nn = function(e, r, n) {
|
|
427
427
|
if (Be.has(e)) {
|
|
@@ -475,11 +475,11 @@ var Dn = Rn(), Be = /* @__PURE__ */ new Map(), Zr = function(e) {
|
|
|
475
475
|
u.setAttribute("class", x);
|
|
476
476
|
var v = e.getAttribute("style");
|
|
477
477
|
v && u.setAttribute("style", v), u.setAttribute("data-src", l);
|
|
478
|
-
var T = [].filter.call(e.attributes, function(
|
|
479
|
-
return /^data-\w[\w-]*$/.test(
|
|
478
|
+
var T = [].filter.call(e.attributes, function(P) {
|
|
479
|
+
return /^data-\w[\w-]*$/.test(P.name);
|
|
480
480
|
});
|
|
481
|
-
if (Array.prototype.forEach.call(T, function(
|
|
482
|
-
|
|
481
|
+
if (Array.prototype.forEach.call(T, function(P) {
|
|
482
|
+
P.name && P.value && u.setAttribute(P.name, P.value);
|
|
483
483
|
}), n) {
|
|
484
484
|
var w = {
|
|
485
485
|
clipPath: ["clip-path"],
|
|
@@ -492,17 +492,17 @@ var Dn = Rn(), Be = /* @__PURE__ */ new Map(), Zr = function(e) {
|
|
|
492
492
|
path: [],
|
|
493
493
|
pattern: ["fill", "stroke"],
|
|
494
494
|
radialGradient: ["fill", "stroke"]
|
|
495
|
-
}, E, b, C,
|
|
496
|
-
Object.keys(w).forEach(function(
|
|
497
|
-
E =
|
|
495
|
+
}, E, b, C, I, V;
|
|
496
|
+
Object.keys(w).forEach(function(P) {
|
|
497
|
+
E = P, C = w[P], b = u.querySelectorAll(E + "[id]");
|
|
498
498
|
for (var k = function(R, $) {
|
|
499
|
-
|
|
499
|
+
I = b[R].id, V = I + "-" + An();
|
|
500
500
|
var M;
|
|
501
501
|
Array.prototype.forEach.call(C, function(z) {
|
|
502
|
-
M = u.querySelectorAll("[" + z + '*="' +
|
|
502
|
+
M = u.querySelectorAll("[" + z + '*="' + I + '"]');
|
|
503
503
|
for (var ee = 0, W = M.length; ee < W; ee++) {
|
|
504
504
|
var X = M[ee].getAttribute(z);
|
|
505
|
-
X && !X.match(new RegExp('url\\("?#' +
|
|
505
|
+
X && !X.match(new RegExp('url\\("?#' + I + '"?\\)')) || M[ee].setAttribute(z, "url(#" + V + ")");
|
|
506
506
|
}
|
|
507
507
|
});
|
|
508
508
|
for (var Y = u.querySelectorAll("[*|href]"), q = [], B = 0, Z = Y.length; B < Z; B++) {
|
|
@@ -525,8 +525,8 @@ var Dn = Rn(), Be = /* @__PURE__ */ new Map(), Zr = function(e) {
|
|
|
525
525
|
fr[l] = !0;
|
|
526
526
|
}
|
|
527
527
|
var A = u.querySelectorAll("style");
|
|
528
|
-
if (Array.prototype.forEach.call(A, function(
|
|
529
|
-
|
|
528
|
+
if (Array.prototype.forEach.call(A, function(P) {
|
|
529
|
+
P.textContent += "";
|
|
530
530
|
}), u.setAttribute("xmlns", In), 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;
|
|
@@ -670,9 +670,9 @@ function Mn() {
|
|
|
670
670
|
}
|
|
671
671
|
}
|
|
672
672
|
}
|
|
673
|
-
var b = l, C = c,
|
|
673
|
+
var b = l, C = c, I = i, V = a, F = e, O = d, j = n, _ = h, L = m, D = r, K = o, G = s, A = u, P = !1;
|
|
674
674
|
function k(U) {
|
|
675
|
-
return
|
|
675
|
+
return P || (P = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), g(U) || E(U) === l;
|
|
676
676
|
}
|
|
677
677
|
function g(U) {
|
|
678
678
|
return E(U) === c;
|
|
@@ -710,7 +710,7 @@ function Mn() {
|
|
|
710
710
|
function oe(U) {
|
|
711
711
|
return E(U) === u;
|
|
712
712
|
}
|
|
713
|
-
se.AsyncMode = b, se.ConcurrentMode = C, se.ContextConsumer =
|
|
713
|
+
se.AsyncMode = b, se.ConcurrentMode = C, se.ContextConsumer = I, se.ContextProvider = V, se.Element = F, se.ForwardRef = O, se.Fragment = j, se.Lazy = _, se.Memo = L, se.Portal = D, se.Profiler = K, se.StrictMode = G, se.Suspense = A, se.isAsyncMode = k, se.isConcurrentMode = g, se.isContextConsumer = S, se.isContextProvider = N, se.isElement = R, se.isForwardRef = $, se.isFragment = M, se.isLazy = Y, se.isMemo = q, se.isPortal = B, se.isProfiler = Z, se.isStrictMode = J, se.isSuspense = oe, se.isValidElementType = w, se.typeOf = E;
|
|
714
714
|
}()), se;
|
|
715
715
|
}
|
|
716
716
|
var gr;
|
|
@@ -868,7 +868,7 @@ function Bn() {
|
|
|
868
868
|
instanceOf: C,
|
|
869
869
|
node: O(),
|
|
870
870
|
objectOf: V,
|
|
871
|
-
oneOf:
|
|
871
|
+
oneOf: I,
|
|
872
872
|
oneOfType: F,
|
|
873
873
|
shape: _,
|
|
874
874
|
exact: L
|
|
@@ -970,7 +970,7 @@ function Bn() {
|
|
|
970
970
|
}
|
|
971
971
|
return x(S);
|
|
972
972
|
}
|
|
973
|
-
function
|
|
973
|
+
function I(g) {
|
|
974
974
|
if (!Array.isArray(g))
|
|
975
975
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? o(
|
|
976
976
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
@@ -1011,7 +1011,7 @@ function Bn() {
|
|
|
1011
1011
|
var N = g[S];
|
|
1012
1012
|
if (typeof N != "function")
|
|
1013
1013
|
return o(
|
|
1014
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " +
|
|
1014
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + P(N) + " at index " + S + "."
|
|
1015
1015
|
), a;
|
|
1016
1016
|
}
|
|
1017
1017
|
function R($, M, Y, q, B) {
|
|
@@ -1129,7 +1129,7 @@ Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
|
|
|
1129
1129
|
}
|
|
1130
1130
|
return S;
|
|
1131
1131
|
}
|
|
1132
|
-
function
|
|
1132
|
+
function P(g) {
|
|
1133
1133
|
var S = A(g);
|
|
1134
1134
|
switch (S) {
|
|
1135
1135
|
case "array":
|
|
@@ -1236,9 +1236,9 @@ var pe = /* @__PURE__ */ Yn(), Gn = function(e) {
|
|
|
1236
1236
|
if (this.reactWrapper instanceof Gn(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, m = this.props.onError, h = this.props.beforeInjection, y = this.props.afterInjection, x = this.props.wrapper, v, T;
|
|
1238
1238
|
x === "svg" ? (v = document.createElementNS(it, x), v.setAttribute("xmlns", it), v.setAttribute("xmlns:xlink", Cr), T = document.createElementNS(it, x)) : (v = document.createElement(x), T = document.createElement(x)), v.appendChild(T), T.dataset.src = d, this.nonReactWrapper = this.reactWrapper.appendChild(v);
|
|
1239
|
-
var w = function(
|
|
1239
|
+
var w = function(I) {
|
|
1240
1240
|
if (s.removeSVG(), !s._isMounted) {
|
|
1241
|
-
m(
|
|
1241
|
+
m(I);
|
|
1242
1242
|
return;
|
|
1243
1243
|
}
|
|
1244
1244
|
s.setState(function() {
|
|
@@ -1247,11 +1247,11 @@ var pe = /* @__PURE__ */ Yn(), Gn = function(e) {
|
|
|
1247
1247
|
isLoading: !1
|
|
1248
1248
|
};
|
|
1249
1249
|
}, function() {
|
|
1250
|
-
m(
|
|
1250
|
+
m(I);
|
|
1251
1251
|
});
|
|
1252
|
-
}, E = function(
|
|
1253
|
-
if (
|
|
1254
|
-
w(
|
|
1252
|
+
}, E = function(I, V) {
|
|
1253
|
+
if (I) {
|
|
1254
|
+
w(I);
|
|
1255
1255
|
return;
|
|
1256
1256
|
}
|
|
1257
1257
|
s._isMounted && s.setState(function() {
|
|
@@ -1265,21 +1265,21 @@ var pe = /* @__PURE__ */ Yn(), Gn = function(e) {
|
|
|
1265
1265
|
w(F);
|
|
1266
1266
|
}
|
|
1267
1267
|
});
|
|
1268
|
-
}, b = function(
|
|
1269
|
-
if (
|
|
1270
|
-
var V =
|
|
1271
|
-
V &&
|
|
1268
|
+
}, b = function(I) {
|
|
1269
|
+
if (I.setAttribute("role", "img"), a) {
|
|
1270
|
+
var V = I.querySelector(":scope > desc");
|
|
1271
|
+
V && I.removeChild(V);
|
|
1272
1272
|
var F = document.createElement("desc");
|
|
1273
|
-
F.innerHTML = a,
|
|
1273
|
+
F.innerHTML = a, I.prepend(F);
|
|
1274
1274
|
}
|
|
1275
1275
|
if (u) {
|
|
1276
|
-
var O =
|
|
1277
|
-
O &&
|
|
1276
|
+
var O = I.querySelector(":scope > title");
|
|
1277
|
+
O && I.removeChild(O);
|
|
1278
1278
|
var j = document.createElement("title");
|
|
1279
|
-
j.innerHTML = u,
|
|
1279
|
+
j.innerHTML = u, I.prepend(j);
|
|
1280
1280
|
}
|
|
1281
1281
|
try {
|
|
1282
|
-
h(
|
|
1282
|
+
h(I);
|
|
1283
1283
|
} catch (_) {
|
|
1284
1284
|
w(_);
|
|
1285
1285
|
}
|
|
@@ -1430,7 +1430,7 @@ const Ko = (t) => {
|
|
|
1430
1430
|
})();
|
|
1431
1431
|
}
|
|
1432
1432
|
);
|
|
1433
|
-
function
|
|
1433
|
+
function Ne({
|
|
1434
1434
|
children: t
|
|
1435
1435
|
}) {
|
|
1436
1436
|
const [e, r] = H(!1);
|
|
@@ -1438,81 +1438,82 @@ function ke({
|
|
|
1438
1438
|
r(!0);
|
|
1439
1439
|
}, []), e ? En(t, document.body) : null;
|
|
1440
1440
|
}
|
|
1441
|
-
function
|
|
1441
|
+
function $e({
|
|
1442
1442
|
position: t = "bottom",
|
|
1443
|
-
enabled: e = !0
|
|
1443
|
+
enabled: e = !0,
|
|
1444
|
+
open: r = !1
|
|
1444
1445
|
}) {
|
|
1445
|
-
const
|
|
1446
|
-
const
|
|
1447
|
-
if (!
|
|
1448
|
-
const { top:
|
|
1449
|
-
|
|
1450
|
-
const
|
|
1451
|
-
if (
|
|
1452
|
-
requestAnimationFrame(
|
|
1446
|
+
const n = ue(null), s = ue(null), [o, a] = H(0), i = ae(() => {
|
|
1447
|
+
const l = n.current, c = s.current;
|
|
1448
|
+
if (!l || !c) return;
|
|
1449
|
+
const { top: d, left: u, width: f, height: m } = l.getBoundingClientRect();
|
|
1450
|
+
a(f);
|
|
1451
|
+
const h = c.offsetHeight, y = c.offsetWidth;
|
|
1452
|
+
if (y === 0 || h === 0) {
|
|
1453
|
+
requestAnimationFrame(i);
|
|
1453
1454
|
return;
|
|
1454
1455
|
}
|
|
1455
|
-
const
|
|
1456
|
-
let
|
|
1457
|
-
const
|
|
1458
|
-
top:
|
|
1459
|
-
bottom:
|
|
1460
|
-
left:
|
|
1461
|
-
right:
|
|
1456
|
+
const x = window.scrollY, v = window.scrollX, T = window.innerWidth, w = window.innerHeight;
|
|
1457
|
+
let E = d + x, b = u + v, C = t;
|
|
1458
|
+
const I = {
|
|
1459
|
+
top: d - h < 0,
|
|
1460
|
+
bottom: d + m + h > w,
|
|
1461
|
+
left: u - y < 0,
|
|
1462
|
+
right: u + f + y > T
|
|
1462
1463
|
};
|
|
1463
1464
|
switch (t) {
|
|
1464
1465
|
case "top":
|
|
1465
|
-
|
|
1466
|
+
I.top && !I.bottom && (C = "bottom");
|
|
1466
1467
|
break;
|
|
1467
1468
|
case "bottom":
|
|
1468
|
-
|
|
1469
|
+
I.bottom && !I.top && (C = "top");
|
|
1469
1470
|
break;
|
|
1470
1471
|
case "left":
|
|
1471
|
-
|
|
1472
|
+
I.left && !I.right && (C = "right");
|
|
1472
1473
|
break;
|
|
1473
1474
|
case "right":
|
|
1474
|
-
|
|
1475
|
+
I.right && !I.left && (C = "left");
|
|
1475
1476
|
break;
|
|
1476
1477
|
}
|
|
1477
|
-
switch (
|
|
1478
|
+
switch (C) {
|
|
1478
1479
|
case "top":
|
|
1479
|
-
|
|
1480
|
+
E = d + x - h;
|
|
1480
1481
|
break;
|
|
1481
1482
|
case "bottom":
|
|
1482
|
-
|
|
1483
|
+
E = d + x + m;
|
|
1483
1484
|
break;
|
|
1484
1485
|
case "left":
|
|
1485
|
-
|
|
1486
|
+
b = u + v - y;
|
|
1486
1487
|
break;
|
|
1487
1488
|
case "right":
|
|
1488
|
-
|
|
1489
|
+
b = u + v + f;
|
|
1489
1490
|
break;
|
|
1490
1491
|
}
|
|
1491
|
-
|
|
1492
|
-
y,
|
|
1493
|
-
Math.min(w, y + T - m)
|
|
1494
|
-
), E = Math.max(
|
|
1492
|
+
E = Math.max(
|
|
1495
1493
|
x,
|
|
1496
|
-
Math.min(E, x +
|
|
1494
|
+
Math.min(E, x + w - h)
|
|
1495
|
+
), b = Math.max(
|
|
1496
|
+
v,
|
|
1497
|
+
Math.min(b, v + T - y)
|
|
1497
1498
|
), requestAnimationFrame(() => {
|
|
1498
|
-
|
|
1499
|
+
c.style.transform = `translate(${b}px, ${E}px)`, c.style.opacity = "1";
|
|
1499
1500
|
});
|
|
1500
1501
|
}, [t]);
|
|
1501
1502
|
return wn(() => {
|
|
1502
|
-
if (!e) return;
|
|
1503
|
-
let
|
|
1504
|
-
const
|
|
1505
|
-
const
|
|
1506
|
-
|
|
1503
|
+
if (!e || !r) return;
|
|
1504
|
+
let l;
|
|
1505
|
+
const c = () => {
|
|
1506
|
+
const u = n.current, f = s.current;
|
|
1507
|
+
u && f ? i() : l = requestAnimationFrame(c);
|
|
1507
1508
|
};
|
|
1508
|
-
|
|
1509
|
-
const
|
|
1510
|
-
|
|
1509
|
+
l = requestAnimationFrame(c);
|
|
1510
|
+
const d = new MutationObserver(() => {
|
|
1511
|
+
i();
|
|
1511
1512
|
});
|
|
1512
|
-
return
|
|
1513
|
-
cancelAnimationFrame(
|
|
1513
|
+
return s.current && d.observe(s.current, { childList: !0, subtree: !0 }), window.addEventListener("resize", i), window.addEventListener("scroll", i, !0), () => {
|
|
1514
|
+
cancelAnimationFrame(l), window.removeEventListener("resize", i), window.removeEventListener("scroll", i, !0), d.disconnect();
|
|
1514
1515
|
};
|
|
1515
|
-
}, [
|
|
1516
|
+
}, [i, e, r]), { anchorRef: n, targetRef: s, anchorWidth: o };
|
|
1516
1517
|
}
|
|
1517
1518
|
const Lt = {
|
|
1518
1519
|
"smp-label": "_smp-label_zl3eb_1",
|
|
@@ -1544,7 +1545,7 @@ const Lt = {
|
|
|
1544
1545
|
htmlFor: r,
|
|
1545
1546
|
helper: n = ""
|
|
1546
1547
|
}) => {
|
|
1547
|
-
const [s, o] = H(!1), { anchorRef: a, targetRef: i } =
|
|
1548
|
+
const [s, o] = H(!1), { anchorRef: a, targetRef: i } = $e({
|
|
1548
1549
|
position: "right",
|
|
1549
1550
|
enabled: s
|
|
1550
1551
|
}), l = {
|
|
@@ -1573,7 +1574,7 @@ const Lt = {
|
|
|
1573
1574
|
)
|
|
1574
1575
|
}
|
|
1575
1576
|
),
|
|
1576
|
-
/* @__PURE__ */ p.jsx(
|
|
1577
|
+
/* @__PURE__ */ p.jsx(Ne, { children: s && n && /* @__PURE__ */ p.jsx(Jn, { helperTooltip: n, ref: i }) })
|
|
1577
1578
|
] });
|
|
1578
1579
|
}, ye = {
|
|
1579
1580
|
"smp-layout": "_smp-layout_wqmhx_1",
|
|
@@ -1692,7 +1693,7 @@ const Lt = {
|
|
|
1692
1693
|
title: "h3",
|
|
1693
1694
|
body: "h6",
|
|
1694
1695
|
label: "label"
|
|
1695
|
-
},
|
|
1696
|
+
}, je = ({
|
|
1696
1697
|
variant: t = "body",
|
|
1697
1698
|
bindValue: e,
|
|
1698
1699
|
color: r,
|
|
@@ -1730,13 +1731,13 @@ const Lt = {
|
|
|
1730
1731
|
"smp-tabbar-tab-large": "_smp-tabbar-tab-large_ly1md_91",
|
|
1731
1732
|
"smp-tabbar-tab-extraLarge": "_smp-tabbar-tab-extraLarge_ly1md_96"
|
|
1732
1733
|
}, Ae = {
|
|
1733
|
-
"smp-toolbar-node-content": "_smp-toolbar-node-
|
|
1734
|
-
"smp-clickable": "_smp-
|
|
1735
|
-
"smp-not-clickable": "_smp-not-
|
|
1736
|
-
"smp-toolbar-node-children-container": "_smp-toolbar-node-children-
|
|
1737
|
-
"smp-toolbar-node": "_smp-toolbar-
|
|
1738
|
-
"smp-toolbar-node-icon-text-container": "_smp-toolbar-node-icon-text-
|
|
1739
|
-
"smp-toolbar-node-text": "_smp-toolbar-node-
|
|
1734
|
+
"smp-toolbar-node-content": "_smp-toolbar-node-content_ib6wu_21",
|
|
1735
|
+
"smp-clickable": "_smp-clickable_ib6wu_43",
|
|
1736
|
+
"smp-not-clickable": "_smp-not-clickable_ib6wu_53",
|
|
1737
|
+
"smp-toolbar-node-children-container": "_smp-toolbar-node-children-container_ib6wu_63",
|
|
1738
|
+
"smp-toolbar-node": "_smp-toolbar-node_ib6wu_21",
|
|
1739
|
+
"smp-toolbar-node-icon-text-container": "_smp-toolbar-node-icon-text-container_ib6wu_137",
|
|
1740
|
+
"smp-toolbar-node-text": "_smp-toolbar-node-text_ib6wu_151"
|
|
1740
1741
|
}, Qt = "smp-toolbar", Zn = [
|
|
1741
1742
|
"ArrowDown",
|
|
1742
1743
|
"ArrowUp",
|
|
@@ -1855,18 +1856,22 @@ function ns(t, e, r) {
|
|
|
1855
1856
|
const n = async (i, l) => {
|
|
1856
1857
|
if (!Bt(i))
|
|
1857
1858
|
o(l, { isExpanded: !0 });
|
|
1858
|
-
else {
|
|
1859
|
+
else if (e) {
|
|
1859
1860
|
o(l, { isLoading: !0 });
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1861
|
+
try {
|
|
1862
|
+
const c = await e(i);
|
|
1863
|
+
o(
|
|
1864
|
+
l,
|
|
1865
|
+
{
|
|
1866
|
+
isLoading: !1,
|
|
1867
|
+
children: c?.children && c.children.length > 0 ? c.children : [rs],
|
|
1868
|
+
isExpanded: !0
|
|
1869
|
+
},
|
|
1870
|
+
{ isExpanded: !1 }
|
|
1871
|
+
);
|
|
1872
|
+
} catch (c) {
|
|
1873
|
+
console.error("Failed to load dynamic node data:", c), o(l, { isLoading: !1 });
|
|
1874
|
+
}
|
|
1870
1875
|
}
|
|
1871
1876
|
}, s = (i) => {
|
|
1872
1877
|
o(i, { isExpanded: !1 });
|
|
@@ -1893,7 +1898,7 @@ function ns(t, e, r) {
|
|
|
1893
1898
|
k: c.obj.k
|
|
1894
1899
|
}
|
|
1895
1900
|
};
|
|
1896
|
-
return r(m), m;
|
|
1901
|
+
return r?.(m), m;
|
|
1897
1902
|
}
|
|
1898
1903
|
));
|
|
1899
1904
|
} };
|
|
@@ -1961,7 +1966,7 @@ const sn = (t) => {
|
|
|
1961
1966
|
appearance: E = "base",
|
|
1962
1967
|
isClearable: b = !1,
|
|
1963
1968
|
fullWidth: C = !1,
|
|
1964
|
-
_dataComponent:
|
|
1969
|
+
_dataComponent: I = "textfield",
|
|
1965
1970
|
min: V,
|
|
1966
1971
|
max: F,
|
|
1967
1972
|
step: O,
|
|
@@ -1972,12 +1977,12 @@ const sn = (t) => {
|
|
|
1972
1977
|
maxLength: K,
|
|
1973
1978
|
onBlur: G,
|
|
1974
1979
|
onChange: A,
|
|
1975
|
-
onKeyDown:
|
|
1980
|
+
onKeyDown: P,
|
|
1976
1981
|
onShapeIconClick: k,
|
|
1977
1982
|
onClick: g,
|
|
1978
1983
|
...S
|
|
1979
1984
|
}) => {
|
|
1980
|
-
const N =
|
|
1985
|
+
const N = ke(), R = `${N}-helper`, $ = w ? "danger" : c, M = T || !!w, Y = (oe) => {
|
|
1981
1986
|
A?.(oe.target.value);
|
|
1982
1987
|
}, q = () => {
|
|
1983
1988
|
r && r != "" && A?.("");
|
|
@@ -2006,7 +2011,7 @@ const sn = (t) => {
|
|
|
2006
2011
|
className: B.input,
|
|
2007
2012
|
disabled: e,
|
|
2008
2013
|
readOnly: !a,
|
|
2009
|
-
onKeyDown:
|
|
2014
|
+
onKeyDown: P,
|
|
2010
2015
|
"aria-label": x,
|
|
2011
2016
|
ref: h,
|
|
2012
2017
|
"aria-describedby": M ? R : void 0,
|
|
@@ -2041,12 +2046,12 @@ const sn = (t) => {
|
|
|
2041
2046
|
}
|
|
2042
2047
|
)
|
|
2043
2048
|
] });
|
|
2044
|
-
return /* @__PURE__ */ p.jsxs("div", { className: B.wrapper, "data-component":
|
|
2049
|
+
return /* @__PURE__ */ p.jsxs("div", { className: B.wrapper, "data-component": I, children: [
|
|
2045
2050
|
v && /* @__PURE__ */ p.jsx(Le, { label: v, disabled: e, htmlFor: N, helper: S.helper }),
|
|
2046
2051
|
/* @__PURE__ */ p.jsxs("div", { className: B.decodeWrapper, children: [
|
|
2047
2052
|
J,
|
|
2048
2053
|
/* @__PURE__ */ p.jsx(
|
|
2049
|
-
|
|
2054
|
+
je,
|
|
2050
2055
|
{
|
|
2051
2056
|
bindValue: n || "",
|
|
2052
2057
|
variant: "body",
|
|
@@ -2159,7 +2164,7 @@ const os = 10, Zt = ({
|
|
|
2159
2164
|
(D) => D.decode?.toLowerCase()?.includes(u.toLowerCase())
|
|
2160
2165
|
) : e, b = (D) => {
|
|
2161
2166
|
f(D);
|
|
2162
|
-
}, { virtualItems: C, containerProps:
|
|
2167
|
+
}, { virtualItems: C, containerProps: I, innerProps: V, scrollToIndex: F } = on({
|
|
2163
2168
|
items: E,
|
|
2164
2169
|
itemHeight: m,
|
|
2165
2170
|
containerHeight: 200,
|
|
@@ -2218,7 +2223,7 @@ const os = 10, Zt = ({
|
|
|
2218
2223
|
/* @__PURE__ */ p.jsx(
|
|
2219
2224
|
"div",
|
|
2220
2225
|
{
|
|
2221
|
-
...
|
|
2226
|
+
...I,
|
|
2222
2227
|
className: L.container,
|
|
2223
2228
|
tabIndex: 0,
|
|
2224
2229
|
role: "listbox",
|
|
@@ -2312,7 +2317,7 @@ const os = 10, Zt = ({
|
|
|
2312
2317
|
c(w);
|
|
2313
2318
|
},
|
|
2314
2319
|
onClick: () => {
|
|
2315
|
-
b && v.fun && n(v);
|
|
2320
|
+
b && v.fun && n?.(v);
|
|
2316
2321
|
},
|
|
2317
2322
|
children: [
|
|
2318
2323
|
/* @__PURE__ */ p.jsxs(
|
|
@@ -2322,7 +2327,13 @@ const os = 10, Zt = ({
|
|
|
2322
2327
|
children: [
|
|
2323
2328
|
/* @__PURE__ */ p.jsxs("div", { className: m.iconTextContainer, children: [
|
|
2324
2329
|
/* @__PURE__ */ p.jsx(le, { icon: v.icon ?? "" }),
|
|
2325
|
-
/* @__PURE__ */ p.jsx("span", { className: m.nodeText, children:
|
|
2330
|
+
/* @__PURE__ */ p.jsx("span", { className: m.nodeText, children: /* @__PURE__ */ p.jsx(
|
|
2331
|
+
je,
|
|
2332
|
+
{
|
|
2333
|
+
variant: "body",
|
|
2334
|
+
bindValue: v.value || ""
|
|
2335
|
+
}
|
|
2336
|
+
) })
|
|
2326
2337
|
] }),
|
|
2327
2338
|
v.isLoading ? /* @__PURE__ */ p.jsx(le, { icon: "spinner", spin: !0 }) : (E || Bt(v)) && /* @__PURE__ */ p.jsx(le, { icon: "chevron-right" })
|
|
2328
2339
|
]
|
|
@@ -2355,7 +2366,8 @@ const os = 10, Zt = ({
|
|
|
2355
2366
|
onClick: (C) => {
|
|
2356
2367
|
d(v, w, C);
|
|
2357
2368
|
}
|
|
2358
|
-
}
|
|
2369
|
+
},
|
|
2370
|
+
w
|
|
2359
2371
|
)
|
|
2360
2372
|
}
|
|
2361
2373
|
)
|
|
@@ -2402,9 +2414,10 @@ const os = 10, Zt = ({
|
|
|
2402
2414
|
onToolbarLoadNodeData: a,
|
|
2403
2415
|
onToolbarLeafNodeClick: i
|
|
2404
2416
|
}) => {
|
|
2405
|
-
const [l, c] = H(n ?? 0), [d, u] = H(!1), [f, m] = H(!1), [h, y] = H(!1), x = ue(null), { anchorRef: v, targetRef: T } =
|
|
2417
|
+
const [l, c] = H(n ?? 0), [d, u] = H(!1), [f, m] = H(!1), [h, y] = H(!1), x = ue(null), { anchorRef: v, targetRef: T } = $e({
|
|
2406
2418
|
position: "bottom",
|
|
2407
|
-
enabled: r
|
|
2419
|
+
enabled: r,
|
|
2420
|
+
open: d
|
|
2408
2421
|
});
|
|
2409
2422
|
if (tt([T], d, () => u(!1)), re(() => {
|
|
2410
2423
|
const F = x.current;
|
|
@@ -2431,7 +2444,7 @@ const os = 10, Zt = ({
|
|
|
2431
2444
|
F && (m(F.scrollLeft > 0), y(
|
|
2432
2445
|
F.scrollLeft + F.clientWidth < F.scrollWidth - b
|
|
2433
2446
|
));
|
|
2434
|
-
},
|
|
2447
|
+
}, I = () => {
|
|
2435
2448
|
x.current?.scrollBy({ left: -E, behavior: "smooth" });
|
|
2436
2449
|
}, V = () => {
|
|
2437
2450
|
x.current?.scrollBy({ left: E, behavior: "smooth" });
|
|
@@ -2448,7 +2461,7 @@ const os = 10, Zt = ({
|
|
|
2448
2461
|
{
|
|
2449
2462
|
bindValue: "",
|
|
2450
2463
|
optionalDisplayValue: "<",
|
|
2451
|
-
onClick:
|
|
2464
|
+
onClick: I,
|
|
2452
2465
|
variant: "base",
|
|
2453
2466
|
sizing: e
|
|
2454
2467
|
}
|
|
@@ -2473,7 +2486,7 @@ const os = 10, Zt = ({
|
|
|
2473
2486
|
}
|
|
2474
2487
|
),
|
|
2475
2488
|
/* @__PURE__ */ p.jsx(
|
|
2476
|
-
|
|
2489
|
+
je,
|
|
2477
2490
|
{
|
|
2478
2491
|
variant: "body",
|
|
2479
2492
|
bindValue: F.decode || "Tab[object Object]"
|
|
@@ -2503,7 +2516,7 @@ const os = 10, Zt = ({
|
|
|
2503
2516
|
sizing: e
|
|
2504
2517
|
}
|
|
2505
2518
|
) }),
|
|
2506
|
-
d &&
|
|
2519
|
+
d && /* @__PURE__ */ p.jsx(Ne, { children: /* @__PURE__ */ p.jsx(
|
|
2507
2520
|
as,
|
|
2508
2521
|
{
|
|
2509
2522
|
ref: T,
|
|
@@ -3127,9 +3140,9 @@ class St extends Ct {
|
|
|
3127
3140
|
} : i;
|
|
3128
3141
|
const m = this.resolve(e, s);
|
|
3129
3142
|
let h = m?.res;
|
|
3130
|
-
const y = m?.usedKey || i, x = m?.exactUsedKey || i, v = ["[object Number]", "[object Function]", "[object RegExp]"], T = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, w = !this.i18nFormat || this.i18nFormat.handleAsObject, E = s.count !== void 0 && !Q(s.count), b = St.hasDefaultValue(s), C = E ? this.pluralResolver.getSuffix(u, s.count, s) : "",
|
|
3143
|
+
const y = m?.usedKey || i, x = m?.exactUsedKey || i, v = ["[object Number]", "[object Function]", "[object RegExp]"], T = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, w = !this.i18nFormat || this.i18nFormat.handleAsObject, E = s.count !== void 0 && !Q(s.count), b = St.hasDefaultValue(s), C = E ? this.pluralResolver.getSuffix(u, s.count, s) : "", I = s.ordinal && E ? this.pluralResolver.getSuffix(u, s.count, {
|
|
3131
3144
|
ordinal: !1
|
|
3132
|
-
}) : "", V = E && !s.ordinal && s.count === 0, F = V && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${C}`] || s[`defaultValue${
|
|
3145
|
+
}) : "", V = E && !s.ordinal && s.count === 0, F = V && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${C}`] || s[`defaultValue${I}`] || s.defaultValue;
|
|
3133
3146
|
let O = h;
|
|
3134
3147
|
w && !h && b && (O = F);
|
|
3135
3148
|
const j = Pr(O), _ = Object.prototype.toString.apply(O);
|
|
@@ -3174,22 +3187,22 @@ class St extends Ct {
|
|
|
3174
3187
|
});
|
|
3175
3188
|
S && S.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
|
|
3176
3189
|
}
|
|
3177
|
-
let
|
|
3190
|
+
let P = [];
|
|
3178
3191
|
const k = this.languageUtils.getFallbackCodes(this.options.fallbackLng, s.lng || this.language);
|
|
3179
3192
|
if (this.options.saveMissingTo === "fallback" && k && k[0])
|
|
3180
3193
|
for (let S = 0; S < k.length; S++)
|
|
3181
|
-
|
|
3182
|
-
else this.options.saveMissingTo === "all" ?
|
|
3194
|
+
P.push(k[S]);
|
|
3195
|
+
else this.options.saveMissingTo === "all" ? P = this.languageUtils.toResolveHierarchy(s.lng || this.language) : P.push(s.lng || this.language);
|
|
3183
3196
|
const g = (S, N, R) => {
|
|
3184
3197
|
const $ = b && R !== h ? R : G;
|
|
3185
3198
|
this.options.missingKeyHandler ? this.options.missingKeyHandler(S, c, N, $, A, s) : this.backendConnector?.saveMissing && this.backendConnector.saveMissing(S, c, N, $, A, s), this.emit("missingKey", S, c, N, h);
|
|
3186
3199
|
};
|
|
3187
|
-
this.options.saveMissing && (this.options.saveMissingPlurals && E ?
|
|
3200
|
+
this.options.saveMissing && (this.options.saveMissingPlurals && E ? P.forEach((S) => {
|
|
3188
3201
|
const N = this.pluralResolver.getSuffixes(S, s);
|
|
3189
3202
|
V && s[`defaultValue${this.options.pluralSeparator}zero`] && N.indexOf(`${this.options.pluralSeparator}zero`) < 0 && N.push(`${this.options.pluralSeparator}zero`), N.forEach((R) => {
|
|
3190
3203
|
g([S], i + R, s[`defaultValue${R}`] || F);
|
|
3191
3204
|
});
|
|
3192
|
-
}) : g(
|
|
3205
|
+
}) : g(P, i, F));
|
|
3193
3206
|
}
|
|
3194
3207
|
h = this.extendTranslation(h, e, s, m, n), D && h === i && this.options.appendNamespaceToMissingKey && (h = `${c}${d}${i}`), (D || L) && this.options.parseMissingKeyHandler && (h = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${c}${d}${i}` : i, L ? h : void 0, s));
|
|
3195
3208
|
}
|
|
@@ -3257,8 +3270,8 @@ class St extends Ct {
|
|
|
3257
3270
|
f && (E = this.pluralResolver.getSuffix(v, r.count, r));
|
|
3258
3271
|
const b = `${this.options.pluralSeparator}zero`, C = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
3259
3272
|
if (f && (T.push(d + E), r.ordinal && E.indexOf(C) === 0 && T.push(d + E.replace(C, this.options.pluralSeparator)), m && T.push(d + b)), h) {
|
|
3260
|
-
const
|
|
3261
|
-
T.push(
|
|
3273
|
+
const I = `${d}${this.options.contextSeparator}${r.context}`;
|
|
3274
|
+
T.push(I), f && (T.push(I + E), r.ordinal && E.indexOf(C) === 0 && T.push(I + E.replace(C, this.options.pluralSeparator)), m && T.push(I + b));
|
|
3262
3275
|
}
|
|
3263
3276
|
}
|
|
3264
3277
|
let w;
|
|
@@ -4211,7 +4224,7 @@ fe.init({
|
|
|
4211
4224
|
}
|
|
4212
4225
|
});
|
|
4213
4226
|
const Qs = (t, e, r, n) => fe.format(t, e, r || fe.language, n), Zs = (t, e) => fe.t(t, e);
|
|
4214
|
-
function
|
|
4227
|
+
function Oe() {
|
|
4215
4228
|
const t = ae(
|
|
4216
4229
|
(n, s, o, a) => Qs(n, s, o || void 0, a),
|
|
4217
4230
|
[]
|
|
@@ -4221,7 +4234,7 @@ function je() {
|
|
|
4221
4234
|
);
|
|
4222
4235
|
return { format: t, getCurrentLanguage: e, translate: r };
|
|
4223
4236
|
}
|
|
4224
|
-
var
|
|
4237
|
+
var De = /* @__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))(De || {}), 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 || {}), qt = /* @__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))(qt || {});
|
|
4225
4238
|
const eo = (t) => t?.type === "SmeupDataTree", to = (t) => t?.type === "SmeupDataTable", ht = {
|
|
4226
4239
|
obj: { t: "", p: "", k: "" },
|
|
4227
4240
|
decode: "",
|
|
@@ -4258,9 +4271,9 @@ const eo = (t) => t?.type === "SmeupDataTree", to = (t) => t?.type === "SmeupDat
|
|
|
4258
4271
|
_multiActiveIndex: f,
|
|
4259
4272
|
...m
|
|
4260
4273
|
}) => {
|
|
4261
|
-
const h = ue(null), [y, x] = H(t), [v, T] = H(e), { translate: w } =
|
|
4274
|
+
const h = ue(null), [y, x] = H(t), [v, T] = H(e), { translate: w } = Oe(), [E, b] = H(!1), [C, I] = H(
|
|
4262
4275
|
r || []
|
|
4263
|
-
), [V, F] = H(0), [O, j] = H([t]), { anchorRef: _, targetRef: L, anchorWidth: D } =
|
|
4276
|
+
), [V, F] = H(0), [O, j] = H([t]), { anchorRef: _, targetRef: L, anchorWidth: D } = $e({
|
|
4264
4277
|
position: "bottom",
|
|
4265
4278
|
enabled: E
|
|
4266
4279
|
}), K = ae(() => {
|
|
@@ -4268,12 +4281,12 @@ const eo = (t) => t?.type === "SmeupDataTree", to = (t) => t?.type === "SmeupDat
|
|
|
4268
4281
|
}, []);
|
|
4269
4282
|
tt([L], E, () => K());
|
|
4270
4283
|
const G = sn(400), A = (R) => {
|
|
4271
|
-
R.length >= o ?
|
|
4272
|
-
},
|
|
4284
|
+
R.length >= o ? P(R) : K(), x(R), T(""), l || c?.(R, e);
|
|
4285
|
+
}, P = (R) => {
|
|
4273
4286
|
G(async () => {
|
|
4274
4287
|
if (i && d) {
|
|
4275
4288
|
const $ = await d(i, R), M = Ge($) || [];
|
|
4276
|
-
|
|
4289
|
+
I(M), F(M.length > 0 ? 0 : -1), b(!0);
|
|
4277
4290
|
}
|
|
4278
4291
|
});
|
|
4279
4292
|
}, k = () => {
|
|
@@ -4310,7 +4323,7 @@ const eo = (t) => t?.type === "SmeupDataTree", to = (t) => t?.type === "SmeupDat
|
|
|
4310
4323
|
isEditable: a,
|
|
4311
4324
|
shapeIcon: "magnify",
|
|
4312
4325
|
placeholder: w(
|
|
4313
|
-
|
|
4326
|
+
De.AUTOCOMPLETE_DEFAULT_PLACEHOLDER
|
|
4314
4327
|
),
|
|
4315
4328
|
ref: _,
|
|
4316
4329
|
isClearable: s,
|
|
@@ -4318,11 +4331,11 @@ const eo = (t) => t?.type === "SmeupDataTree", to = (t) => t?.type === "SmeupDat
|
|
|
4318
4331
|
onChange: A,
|
|
4319
4332
|
onKeyDown: N,
|
|
4320
4333
|
onBlur: k,
|
|
4321
|
-
onShapeIconClick: () =>
|
|
4334
|
+
onShapeIconClick: () => P(y),
|
|
4322
4335
|
"aria-autocomplete": "list"
|
|
4323
4336
|
}
|
|
4324
4337
|
),
|
|
4325
|
-
E && /* @__PURE__ */ p.jsx(
|
|
4338
|
+
E && /* @__PURE__ */ p.jsx(Ne, { children: /* @__PURE__ */ p.jsx(
|
|
4326
4339
|
Zt,
|
|
4327
4340
|
{
|
|
4328
4341
|
options: C,
|
|
@@ -4403,7 +4416,7 @@ const eo = (t) => t?.type === "SmeupDataTree", to = (t) => t?.type === "SmeupDat
|
|
|
4403
4416
|
variant: i = "checkbox",
|
|
4404
4417
|
...l
|
|
4405
4418
|
}) => {
|
|
4406
|
-
const c =
|
|
4419
|
+
const c = ke(), d = (f) => {
|
|
4407
4420
|
s && o && o(f.target.checked);
|
|
4408
4421
|
}, u = {
|
|
4409
4422
|
wrapper: `${no["smp-checkbox-wrapper"]}`
|
|
@@ -4463,7 +4476,7 @@ const eo = (t) => t?.type === "SmeupDataTree", to = (t) => t?.type === "SmeupDat
|
|
|
4463
4476
|
},
|
|
4464
4477
|
children: [
|
|
4465
4478
|
a && /* @__PURE__ */ p.jsx(le, { icon: "drag_indicator_horizontal", isInteractable: !0 }),
|
|
4466
|
-
/* @__PURE__ */ p.jsx(
|
|
4479
|
+
/* @__PURE__ */ p.jsx(je, { variant: "label", bindValue: y, color: s }),
|
|
4467
4480
|
e && /* @__PURE__ */ p.jsx(
|
|
4468
4481
|
le,
|
|
4469
4482
|
{
|
|
@@ -4537,19 +4550,19 @@ const Ht = ({
|
|
|
4537
4550
|
multiActiveIndex: l,
|
|
4538
4551
|
...c
|
|
4539
4552
|
}) => {
|
|
4540
|
-
const d = ue(null), [u, f] = H(!1), [m, h] = H(r), [y, x] = H(-1), [v, T] = H([t]), w =
|
|
4553
|
+
const d = ue(null), [u, f] = H(!1), [m, h] = H(r), [y, x] = H(-1), [v, T] = H([t]), w = ke(), { anchorRef: E, targetRef: b, anchorWidth: C } = $e({
|
|
4541
4554
|
position: "bottom",
|
|
4542
4555
|
enabled: u
|
|
4543
|
-
}),
|
|
4556
|
+
}), I = ae(() => {
|
|
4544
4557
|
f(!1), d?.current?.focus();
|
|
4545
4558
|
}, []);
|
|
4546
|
-
tt([b, E], u, () =>
|
|
4559
|
+
tt([b, E], u, () => I()), nr(u, b);
|
|
4547
4560
|
const V = (_) => {
|
|
4548
4561
|
e?.(_.obj.k, _.decode);
|
|
4549
4562
|
const L = m.findIndex((D) => D.obj.k === _.obj.k);
|
|
4550
|
-
x(L), T([_.obj.k]),
|
|
4563
|
+
x(L), T([_.obj.k]), I();
|
|
4551
4564
|
}, F = (_) => {
|
|
4552
|
-
_.key === "Escape" && (
|
|
4565
|
+
_.key === "Escape" && (I(), x(-1));
|
|
4553
4566
|
}, O = (_) => {
|
|
4554
4567
|
(_.key === "ArrowDown" || _.key === "ArrowUp") && (_.preventDefault(), j());
|
|
4555
4568
|
}, j = () => {
|
|
@@ -4585,7 +4598,7 @@ const Ht = ({
|
|
|
4585
4598
|
variant: "notSelectable"
|
|
4586
4599
|
}
|
|
4587
4600
|
),
|
|
4588
|
-
u && /* @__PURE__ */ p.jsx(
|
|
4601
|
+
u && /* @__PURE__ */ p.jsx(Ne, { children: /* @__PURE__ */ p.jsx(
|
|
4589
4602
|
Zt,
|
|
4590
4603
|
{
|
|
4591
4604
|
id: w,
|
|
@@ -4613,7 +4626,7 @@ function oo({
|
|
|
4613
4626
|
initialValue: n,
|
|
4614
4627
|
targetRef: s
|
|
4615
4628
|
}) {
|
|
4616
|
-
const { translate: o } =
|
|
4629
|
+
const { translate: o } = Oe(), a = () => {
|
|
4617
4630
|
if (!n) return;
|
|
4618
4631
|
const k = new Date(n);
|
|
4619
4632
|
return isNaN(k.getTime()) ? void 0 : k;
|
|
@@ -4674,7 +4687,7 @@ function oo({
|
|
|
4674
4687
|
E(k) || (c(k), y(k.getDate()), e && e(hs(k)));
|
|
4675
4688
|
}, C = () => {
|
|
4676
4689
|
d === 0 ? (u(11), m(f - 1)) : u(d - 1), y(1);
|
|
4677
|
-
},
|
|
4690
|
+
}, I = () => {
|
|
4678
4691
|
d === 11 ? (u(0), m(f + 1)) : u(d + 1), y(1);
|
|
4679
4692
|
}, V = (k, g) => new Date(k, g + 1, 0).getDate(), F = (k, g) => new Date(k, g, 1).getDay(), O = (k) => {
|
|
4680
4693
|
const g = D.findIndex(
|
|
@@ -4692,7 +4705,7 @@ function oo({
|
|
|
4692
4705
|
let $ = R + 1, M = new Date(f, d, $);
|
|
4693
4706
|
if ($ > N) {
|
|
4694
4707
|
const Y = d === 11 ? f + 1 : f, q = d === 11 ? 0 : d + 1;
|
|
4695
|
-
$ = 1, M = new Date(Y, q, $),
|
|
4708
|
+
$ = 1, M = new Date(Y, q, $), I(), setTimeout(() => {
|
|
4696
4709
|
_(1, "forward");
|
|
4697
4710
|
}, 0);
|
|
4698
4711
|
return;
|
|
@@ -4736,7 +4749,7 @@ function oo({
|
|
|
4736
4749
|
let $ = R + 7, M = new Date(f, d, $);
|
|
4737
4750
|
if ($ > N) {
|
|
4738
4751
|
const Y = d === 11 ? f + 1 : f, q = d === 11 ? 0 : d + 1;
|
|
4739
|
-
$ = $ - N, M = new Date(Y, q, $),
|
|
4752
|
+
$ = $ - N, M = new Date(Y, q, $), I(), setTimeout(() => {
|
|
4740
4753
|
_($, "forward");
|
|
4741
4754
|
}, 0);
|
|
4742
4755
|
return;
|
|
@@ -4760,7 +4773,7 @@ function oo({
|
|
|
4760
4773
|
}, 0);
|
|
4761
4774
|
break;
|
|
4762
4775
|
case "PageDown":
|
|
4763
|
-
k.preventDefault(),
|
|
4776
|
+
k.preventDefault(), I(), setTimeout(() => {
|
|
4764
4777
|
const $ = V(
|
|
4765
4778
|
d === 11 ? f + 1 : f,
|
|
4766
4779
|
d === 11 ? 0 : d + 1
|
|
@@ -4787,7 +4800,7 @@ function oo({
|
|
|
4787
4800
|
return;
|
|
4788
4801
|
}
|
|
4789
4802
|
}
|
|
4790
|
-
|
|
4803
|
+
I(), setTimeout(() => {
|
|
4791
4804
|
_(1, "forward");
|
|
4792
4805
|
}, 0);
|
|
4793
4806
|
} else {
|
|
@@ -4839,7 +4852,7 @@ function oo({
|
|
|
4839
4852
|
${g ? "smp-datepickercalendar-td-selected" : ""}
|
|
4840
4853
|
${S ? "smp-datepickercalendar-td-focused" : ""}
|
|
4841
4854
|
${N ? "smp-datepickercalendar-td-disabled" : ""}`
|
|
4842
|
-
},
|
|
4855
|
+
}, P = () => `${T[d]} ${f.toString()}`;
|
|
4843
4856
|
return /* @__PURE__ */ p.jsxs(
|
|
4844
4857
|
"div",
|
|
4845
4858
|
{
|
|
@@ -4874,15 +4887,15 @@ function oo({
|
|
|
4874
4887
|
/* @__PURE__ */ p.jsx(
|
|
4875
4888
|
"div",
|
|
4876
4889
|
{
|
|
4877
|
-
"aria-label":
|
|
4890
|
+
"aria-label": P(),
|
|
4878
4891
|
className: A.label,
|
|
4879
|
-
children:
|
|
4892
|
+
children: P()
|
|
4880
4893
|
}
|
|
4881
4894
|
),
|
|
4882
4895
|
/* @__PURE__ */ p.jsx(
|
|
4883
4896
|
me,
|
|
4884
4897
|
{
|
|
4885
|
-
onClick:
|
|
4898
|
+
onClick: I,
|
|
4886
4899
|
ariaLabel: o(qt.NEXT_MONTH),
|
|
4887
4900
|
bindValue: ">",
|
|
4888
4901
|
optionalDisplayValue: ">",
|
|
@@ -4898,7 +4911,7 @@ function oo({
|
|
|
4898
4911
|
{
|
|
4899
4912
|
ref: x,
|
|
4900
4913
|
role: "grid",
|
|
4901
|
-
"aria-label": `${o(
|
|
4914
|
+
"aria-label": `${o(De.CALENDAR_FOR)} ${T[d]} ${f}`,
|
|
4902
4915
|
className: A.table,
|
|
4903
4916
|
children: [
|
|
4904
4917
|
/* @__PURE__ */ p.jsx("thead", { children: /* @__PURE__ */ p.jsx("tr", { children: w.map((k) => /* @__PURE__ */ p.jsx(
|
|
@@ -4972,7 +4985,7 @@ const sr = ({
|
|
|
4972
4985
|
return r ? /* @__PURE__ */ p.jsxs("div", { className: o.wrapper, children: [
|
|
4973
4986
|
/* @__PURE__ */ p.jsx(Le, { label: r, helper: s.helper }),
|
|
4974
4987
|
/* @__PURE__ */ p.jsx(
|
|
4975
|
-
|
|
4988
|
+
je,
|
|
4976
4989
|
{
|
|
4977
4990
|
variant: "body",
|
|
4978
4991
|
bindValue: e || t,
|
|
@@ -4980,7 +4993,7 @@ const sr = ({
|
|
|
4980
4993
|
}
|
|
4981
4994
|
)
|
|
4982
4995
|
] }) : /* @__PURE__ */ p.jsx(
|
|
4983
|
-
|
|
4996
|
+
je,
|
|
4984
4997
|
{
|
|
4985
4998
|
variant: "body",
|
|
4986
4999
|
bindValue: e || t,
|
|
@@ -4996,7 +5009,7 @@ const sr = ({
|
|
|
4996
5009
|
isOptimized: o,
|
|
4997
5010
|
...a
|
|
4998
5011
|
}) => {
|
|
4999
|
-
const i = ue(null), [l, c] = H(!1), [d, u] = H(t || ""), [f, m] = H(""), { anchorRef: h, targetRef: y } =
|
|
5012
|
+
const i = ue(null), [l, c] = H(!1), [d, u] = H(t || ""), [f, m] = H(""), { anchorRef: h, targetRef: y } = $e({
|
|
5000
5013
|
position: "bottom",
|
|
5001
5014
|
enabled: l
|
|
5002
5015
|
}), x = ae(() => {
|
|
@@ -5005,7 +5018,7 @@ const sr = ({
|
|
|
5005
5018
|
tt([y, h], l, () => {
|
|
5006
5019
|
x();
|
|
5007
5020
|
}), nr(l, y);
|
|
5008
|
-
const { format: v, getCurrentLanguage: T } =
|
|
5021
|
+
const { format: v, getCurrentLanguage: T } = Oe(), w = ae(
|
|
5009
5022
|
(O) => {
|
|
5010
5023
|
const j = O.length > 5 && ds(O, T()) || O, _ = v(j, void 0, void 0, {
|
|
5011
5024
|
type: "date"
|
|
@@ -5024,16 +5037,16 @@ const sr = ({
|
|
|
5024
5037
|
u(_ && j || t), m(_ && O || t);
|
|
5025
5038
|
}, [t, v, w]);
|
|
5026
5039
|
const E = () => c((O) => !O), b = () => {
|
|
5027
|
-
|
|
5040
|
+
I(f);
|
|
5028
5041
|
}, C = (O) => {
|
|
5029
|
-
|
|
5030
|
-
},
|
|
5042
|
+
I(O), x();
|
|
5043
|
+
}, I = (O) => {
|
|
5031
5044
|
const { isoDate: j, isValid: _ } = w(O);
|
|
5032
5045
|
r && r(_ && j || O);
|
|
5033
5046
|
}, V = (O) => {
|
|
5034
5047
|
m(O);
|
|
5035
5048
|
}, F = (O) => {
|
|
5036
|
-
O.key === "Enter" && (O.preventDefault(),
|
|
5049
|
+
O.key === "Enter" && (O.preventDefault(), I(f));
|
|
5037
5050
|
};
|
|
5038
5051
|
return /* @__PURE__ */ p.jsx("div", { "data-component": "date-picker", children: o ? /* @__PURE__ */ p.jsx(sr, { bindValue: f }) : /* @__PURE__ */ p.jsxs(p.Fragment, { children: [
|
|
5039
5052
|
/* @__PURE__ */ p.jsx(
|
|
@@ -5054,7 +5067,7 @@ const sr = ({
|
|
|
5054
5067
|
maxLength: a.maxLength ? a.maxLength : 10
|
|
5055
5068
|
}
|
|
5056
5069
|
),
|
|
5057
|
-
l && /* @__PURE__ */ p.jsx(
|
|
5070
|
+
l && /* @__PURE__ */ p.jsx(Ne, { children: /* @__PURE__ */ p.jsx(
|
|
5058
5071
|
oo,
|
|
5059
5072
|
{
|
|
5060
5073
|
disabledDateRanges: n,
|
|
@@ -5150,7 +5163,7 @@ const sr = ({
|
|
|
5150
5163
|
}
|
|
5151
5164
|
);
|
|
5152
5165
|
}, lo = ({ ...t }) => {
|
|
5153
|
-
const [e, r] = H(t.bindValue), { translate: n } =
|
|
5166
|
+
const [e, r] = H(t.bindValue), { translate: n } = Oe(), s = (a) => {
|
|
5154
5167
|
a.key === "Enter" && (a.preventDefault(), t.onEnter?.(e));
|
|
5155
5168
|
}, o = (a) => {
|
|
5156
5169
|
r(a), t.onChange?.(a);
|
|
@@ -5159,7 +5172,7 @@ const sr = ({
|
|
|
5159
5172
|
_e,
|
|
5160
5173
|
{
|
|
5161
5174
|
...t,
|
|
5162
|
-
placeholder: t.placeholder ? t.placeholder : n(
|
|
5175
|
+
placeholder: t.placeholder ? t.placeholder : n(De.SPOTLIGHT_DEFAULT_PLACEHOLDER),
|
|
5163
5176
|
icon: "magnify",
|
|
5164
5177
|
inputType: "search",
|
|
5165
5178
|
bindValue: e,
|
|
@@ -5232,7 +5245,7 @@ const Pe = (t, e, r) => ({
|
|
|
5232
5245
|
isOptimized: l,
|
|
5233
5246
|
...c
|
|
5234
5247
|
}) => {
|
|
5235
|
-
const { getCurrentLanguage: d } =
|
|
5248
|
+
const { getCurrentLanguage: d } = Oe(), u = ue(null), f = d(), { groupingChar: m, decimalChar: h } = Je(
|
|
5236
5249
|
() => qs(f, s),
|
|
5237
5250
|
[f, s]
|
|
5238
5251
|
), y = ae(
|
|
@@ -5244,25 +5257,25 @@ const Pe = (t, e, r) => ({
|
|
|
5244
5257
|
[f]
|
|
5245
5258
|
), x = ae(Ks, [m, h]), v = ae(Gs, [t, e]), T = o != null && o.toString().includes(".") ? o.toString().split(".")[1].length : 0, [w, E] = H(T), [b, C] = H(
|
|
5246
5259
|
o != null ? y(o, w) : ""
|
|
5247
|
-
),
|
|
5260
|
+
), I = ue(o ?? null);
|
|
5248
5261
|
re(() => {
|
|
5249
5262
|
if (o == null) {
|
|
5250
|
-
C(""),
|
|
5263
|
+
C(""), I.current = null;
|
|
5251
5264
|
return;
|
|
5252
5265
|
}
|
|
5253
5266
|
const L = o.toString().includes(".") ? o.toString().split(".")[1].length : 0, D = L === 0 ? w : L;
|
|
5254
|
-
D !== w && E(D), C(y(o, D)),
|
|
5267
|
+
D !== w && E(D), C(y(o, D)), I.current = o;
|
|
5255
5268
|
}, [o, y]);
|
|
5256
5269
|
const V = ae(
|
|
5257
5270
|
(L, D = !1) => {
|
|
5258
5271
|
if (L.trim() === "") {
|
|
5259
|
-
C(""),
|
|
5272
|
+
C(""), I.current = null, a?.(void 0, ""), D && i?.(void 0);
|
|
5260
5273
|
return;
|
|
5261
5274
|
}
|
|
5262
5275
|
const K = x(L, m, h);
|
|
5263
5276
|
if (isNaN(K))
|
|
5264
|
-
if (
|
|
5265
|
-
const G = y(
|
|
5277
|
+
if (I.current != null) {
|
|
5278
|
+
const G = y(I.current, w);
|
|
5266
5279
|
C(G);
|
|
5267
5280
|
} else
|
|
5268
5281
|
C("");
|
|
@@ -5273,8 +5286,8 @@ const Pe = (t, e, r) => ({
|
|
|
5273
5286
|
h
|
|
5274
5287
|
);
|
|
5275
5288
|
E(A);
|
|
5276
|
-
const
|
|
5277
|
-
C(
|
|
5289
|
+
const P = y(G, A);
|
|
5290
|
+
C(P), I.current = G, a?.(G, P), D && i?.(G);
|
|
5278
5291
|
}
|
|
5279
5292
|
},
|
|
5280
5293
|
[
|
|
@@ -5296,20 +5309,20 @@ const Pe = (t, e, r) => ({
|
|
|
5296
5309
|
}
|
|
5297
5310
|
if (L.key === "ArrowUp" || L.key === "ArrowDown") {
|
|
5298
5311
|
L.preventDefault();
|
|
5299
|
-
const D = L.key === "ArrowUp" ? 1 : -1, K =
|
|
5312
|
+
const D = L.key === "ArrowUp" ? 1 : -1, K = I.current ?? 0, G = v(K + D * r, t, e);
|
|
5300
5313
|
V(y(G, w));
|
|
5301
5314
|
}
|
|
5302
5315
|
}, _ = (L) => {
|
|
5303
5316
|
if (!L.currentTarget.contains(document.activeElement)) return;
|
|
5304
5317
|
L.preventDefault();
|
|
5305
|
-
const D = L.deltaY < 0 ? 1 : -1, K =
|
|
5318
|
+
const D = L.deltaY < 0 ? 1 : -1, K = I.current ?? 0, G = v(K + D * r, t, e);
|
|
5306
5319
|
V(y(G, w));
|
|
5307
5320
|
};
|
|
5308
5321
|
return /* @__PURE__ */ p.jsx("div", { ref: u, "data-component": "input-number", onWheel: _, children: l ? /* @__PURE__ */ p.jsx(
|
|
5309
5322
|
sr,
|
|
5310
5323
|
{
|
|
5311
5324
|
bindValue: b,
|
|
5312
|
-
className: `smp-text-number${
|
|
5325
|
+
className: `smp-text-number${I.current != null && I.current < 0 ? " smp-text-negative" : ""}`
|
|
5313
5326
|
}
|
|
5314
5327
|
) : /* @__PURE__ */ p.jsx(
|
|
5315
5328
|
_e,
|
|
@@ -5317,7 +5330,7 @@ const Pe = (t, e, r) => ({
|
|
|
5317
5330
|
...c,
|
|
5318
5331
|
"aria-valuemin": t,
|
|
5319
5332
|
"aria-valuemax": e,
|
|
5320
|
-
"aria-valuenow":
|
|
5333
|
+
"aria-valuenow": I.current ?? void 0,
|
|
5321
5334
|
bindValue: b,
|
|
5322
5335
|
inputType: "text",
|
|
5323
5336
|
inputMode: n,
|
|
@@ -5394,7 +5407,7 @@ const uo = ({
|
|
|
5394
5407
|
cols: h = 35,
|
|
5395
5408
|
...y
|
|
5396
5409
|
}) => {
|
|
5397
|
-
const x =
|
|
5410
|
+
const x = ke(), v = `${x}-helper`, T = d ? "danger" : s, w = c || !!d, E = (C) => {
|
|
5398
5411
|
r?.(C.target.value);
|
|
5399
5412
|
}, b = {
|
|
5400
5413
|
wrapper: "smp-textarea-wrapper",
|
|
@@ -5451,7 +5464,7 @@ const Ue = {
|
|
|
5451
5464
|
label: i,
|
|
5452
5465
|
...l
|
|
5453
5466
|
}) => {
|
|
5454
|
-
const [c, d] = H(s), u =
|
|
5467
|
+
const [c, d] = H(s), u = ke();
|
|
5455
5468
|
re(() => {
|
|
5456
5469
|
!c && o && a && o(a, void 0).then(
|
|
5457
5470
|
(b) => d(Ge(b))
|
|
@@ -5467,7 +5480,7 @@ const Ue = {
|
|
|
5467
5480
|
t || l.onBlur?.();
|
|
5468
5481
|
}, w = (b) => {
|
|
5469
5482
|
t || l.onChange?.(b.obj.k, b.decode);
|
|
5470
|
-
}, E =
|
|
5483
|
+
}, E = ke();
|
|
5471
5484
|
return /* @__PURE__ */ p.jsxs("div", { "smp-id": "radio-container", className: v.container, id: u, children: [
|
|
5472
5485
|
i && /* @__PURE__ */ p.jsx(Le, { label: i, disabled: t, htmlFor: u, helper: l.helper }),
|
|
5473
5486
|
/* @__PURE__ */ p.jsx("div", { className: v.optionsContainer, style: x, children: c?.map((b, C) => /* @__PURE__ */ p.jsxs("label", { className: v.option, children: [
|
|
@@ -5484,7 +5497,7 @@ const Ue = {
|
|
|
5484
5497
|
}
|
|
5485
5498
|
),
|
|
5486
5499
|
/* @__PURE__ */ p.jsx(
|
|
5487
|
-
|
|
5500
|
+
je,
|
|
5488
5501
|
{
|
|
5489
5502
|
variant: "body",
|
|
5490
5503
|
bindValue: et(
|
|
@@ -5564,7 +5577,7 @@ const Ue = {
|
|
|
5564
5577
|
isEditable: n = !0,
|
|
5565
5578
|
...s
|
|
5566
5579
|
}) => {
|
|
5567
|
-
const o = ue(null), [a, i] = H(!1), [l, c] = H(t || ""), [d, u] = H(""), { anchorRef: f, targetRef: m } =
|
|
5580
|
+
const o = ue(null), [a, i] = H(!1), [l, c] = H(t || ""), [d, u] = H(""), { anchorRef: f, targetRef: m } = $e({
|
|
5568
5581
|
position: "bottom",
|
|
5569
5582
|
enabled: a
|
|
5570
5583
|
}), h = ae(() => {
|
|
@@ -5585,8 +5598,8 @@ const Ue = {
|
|
|
5585
5598
|
n && i((b) => !b);
|
|
5586
5599
|
}, x = (b) => {
|
|
5587
5600
|
u(b);
|
|
5588
|
-
}, v = (b, C,
|
|
5589
|
-
const V = mo(b, C,
|
|
5601
|
+
}, v = (b, C, I) => {
|
|
5602
|
+
const V = mo(b, C, I);
|
|
5590
5603
|
c(V), u(V), r?.(V), h();
|
|
5591
5604
|
}, T = () => {
|
|
5592
5605
|
E(d);
|
|
@@ -5616,7 +5629,7 @@ const Ue = {
|
|
|
5616
5629
|
inputRef: o
|
|
5617
5630
|
}
|
|
5618
5631
|
),
|
|
5619
|
-
a && /* @__PURE__ */ p.jsx(
|
|
5632
|
+
a && /* @__PURE__ */ p.jsx(Ne, { children: /* @__PURE__ */ p.jsx(
|
|
5620
5633
|
po,
|
|
5621
5634
|
{
|
|
5622
5635
|
value: ho(l),
|
|
@@ -5680,7 +5693,7 @@ const zr = /* @__PURE__ */ new Map([
|
|
|
5680
5693
|
helper: l,
|
|
5681
5694
|
...c
|
|
5682
5695
|
}) => {
|
|
5683
|
-
const [d, u] = H(o), f =
|
|
5696
|
+
const [d, u] = H(o), f = ke(), m = (y) => {
|
|
5684
5697
|
e || c.onChange?.(y.obj.k, y.decode);
|
|
5685
5698
|
};
|
|
5686
5699
|
re(() => {
|
|
@@ -5786,7 +5799,7 @@ const Ce = {
|
|
|
5786
5799
|
icon: f ? "arrow_drop_right" : "arrow_drop_down",
|
|
5787
5800
|
width: 16
|
|
5788
5801
|
}
|
|
5789
|
-
) }), C = (j, _) => /* @__PURE__ */ p.jsx("span", { className: w.toggle, children: /* @__PURE__ */ p.jsx(le, { icon: j, placeholderIcon: _, width: 16 }) }),
|
|
5802
|
+
) }), C = (j, _) => /* @__PURE__ */ p.jsx("span", { className: w.toggle, children: /* @__PURE__ */ p.jsx(le, { icon: j, placeholderIcon: _, width: 16 }) }), I = () => /* @__PURE__ */ p.jsx(
|
|
5790
5803
|
"span",
|
|
5791
5804
|
{
|
|
5792
5805
|
className: w.indent,
|
|
@@ -5842,7 +5855,7 @@ const Ce = {
|
|
|
5842
5855
|
},
|
|
5843
5856
|
onClick: () => d?.(t),
|
|
5844
5857
|
children: [
|
|
5845
|
-
|
|
5858
|
+
I(),
|
|
5846
5859
|
b(),
|
|
5847
5860
|
t.icon && C(t.icon, t.placeholderIcon),
|
|
5848
5861
|
/* @__PURE__ */ p.jsx("span", { className: w.nodeLabel, children: j })
|
|
@@ -5953,7 +5966,7 @@ const Ce = {
|
|
|
5953
5966
|
icon: o,
|
|
5954
5967
|
fun: a,
|
|
5955
5968
|
data: s
|
|
5956
|
-
},
|
|
5969
|
+
}, I = () => ls(C.obj) ? "INR" : Rr(C.obj) ? "CAL" : r, V = C.data && C.data.size && C.data.size >= 256 && (I() === "ITX" || !I()) ? "MEM" : I(), F = e || b, O = {
|
|
5957
5970
|
id: t,
|
|
5958
5971
|
onBlur: x,
|
|
5959
5972
|
onOptionsRequest: v,
|
|
@@ -5967,13 +5980,13 @@ const Ce = {
|
|
|
5967
5980
|
size: C.data && C.data.size ? C.data.size : 20,
|
|
5968
5981
|
isOptimized: C.data?.isOptimized,
|
|
5969
5982
|
...s
|
|
5970
|
-
}, j = (A,
|
|
5983
|
+
}, j = (A, P, k) => Rr(n) ? Pe(A, new vt(n, P).getLegacyValue()) : cs(n) ? Pe(A, new Et(n, P).getLegacyValue()) : f?.forceUppercase ? Pe(
|
|
5971
5984
|
A,
|
|
5972
|
-
|
|
5985
|
+
P.toLocaleUpperCase(),
|
|
5973
5986
|
k
|
|
5974
|
-
) : Pe(A,
|
|
5987
|
+
) : Pe(A, P, k), _ = (A, P) => Pe(
|
|
5975
5988
|
A,
|
|
5976
|
-
new Ze(n,
|
|
5989
|
+
new Ze(n, P, E).getLegacyValue()
|
|
5977
5990
|
), L = (A) => Pe(C, new yt(n, A).getLegacyValue()), D = (A) => co(C, A), K = () => {
|
|
5978
5991
|
switch (V) {
|
|
5979
5992
|
case te.AUTOCOMPLETE: {
|
|
@@ -5981,14 +5994,14 @@ const Ce = {
|
|
|
5981
5994
|
...O,
|
|
5982
5995
|
bindValue: C.obj.k,
|
|
5983
5996
|
optionalDisplayValue: F,
|
|
5984
|
-
onChange: (
|
|
5985
|
-
m?.(j(C,
|
|
5997
|
+
onChange: (P, k) => {
|
|
5998
|
+
m?.(j(C, P, k));
|
|
5986
5999
|
}
|
|
5987
6000
|
};
|
|
5988
6001
|
return /* @__PURE__ */ p.jsx(un, { ...A });
|
|
5989
6002
|
}
|
|
5990
6003
|
case te.BUTTON: {
|
|
5991
|
-
const A = s?.label && typeof s.label == "string" ? s.label : void 0,
|
|
6004
|
+
const A = s?.label && typeof s.label == "string" ? s.label : void 0, P = {
|
|
5992
6005
|
...O,
|
|
5993
6006
|
bindValue: A || "",
|
|
5994
6007
|
showText: !!A,
|
|
@@ -5997,15 +6010,15 @@ const Ce = {
|
|
|
5997
6010
|
h?.(j(C, n.k));
|
|
5998
6011
|
}
|
|
5999
6012
|
};
|
|
6000
|
-
return /* @__PURE__ */ p.jsx(me, { ...
|
|
6013
|
+
return /* @__PURE__ */ p.jsx(me, { ...P });
|
|
6001
6014
|
}
|
|
6002
6015
|
case te.BUTTON_LIST: {
|
|
6003
6016
|
const A = {
|
|
6004
6017
|
...O,
|
|
6005
6018
|
options: u,
|
|
6006
|
-
onClick: (
|
|
6019
|
+
onClick: (P, k) => {
|
|
6007
6020
|
const g = { ...C, fun: k };
|
|
6008
|
-
h?.(j(g,
|
|
6021
|
+
h?.(j(g, P));
|
|
6009
6022
|
}
|
|
6010
6023
|
};
|
|
6011
6024
|
return /* @__PURE__ */ p.jsx(ro, { ...A });
|
|
@@ -6019,7 +6032,7 @@ const Ce = {
|
|
|
6019
6032
|
}
|
|
6020
6033
|
case te.CHECKBOX:
|
|
6021
6034
|
case te.SWITCH: {
|
|
6022
|
-
const A = r === te.SWITCH,
|
|
6035
|
+
const A = r === te.SWITCH, P = {
|
|
6023
6036
|
...O,
|
|
6024
6037
|
bindValue: yt.fromDataObj(n).getValue(),
|
|
6025
6038
|
optionalDisplayValue: F,
|
|
@@ -6028,15 +6041,15 @@ const Ce = {
|
|
|
6028
6041
|
},
|
|
6029
6042
|
...A && { variant: "switch" }
|
|
6030
6043
|
};
|
|
6031
|
-
return /* @__PURE__ */ p.jsx(tr, { ...
|
|
6044
|
+
return /* @__PURE__ */ p.jsx(tr, { ...P });
|
|
6032
6045
|
}
|
|
6033
6046
|
case te.COMBOBOX: {
|
|
6034
6047
|
const A = {
|
|
6035
6048
|
...O,
|
|
6036
6049
|
bindValue: C.obj.k,
|
|
6037
6050
|
optionalDisplayValue: F,
|
|
6038
|
-
onChange: (
|
|
6039
|
-
m?.(j(C,
|
|
6051
|
+
onChange: (P, k) => {
|
|
6052
|
+
m?.(j(C, P, k));
|
|
6040
6053
|
}
|
|
6041
6054
|
};
|
|
6042
6055
|
return /* @__PURE__ */ p.jsx(Ht, { ...A });
|
|
@@ -6045,8 +6058,8 @@ const Ce = {
|
|
|
6045
6058
|
const A = {
|
|
6046
6059
|
...O,
|
|
6047
6060
|
bindValue: vt.fromDataObj(n).getValue(),
|
|
6048
|
-
onChange: (
|
|
6049
|
-
m?.(j(C,
|
|
6061
|
+
onChange: (P) => {
|
|
6062
|
+
m?.(j(C, P));
|
|
6050
6063
|
}
|
|
6051
6064
|
};
|
|
6052
6065
|
return /* @__PURE__ */ p.jsx(dn, { ...A });
|
|
@@ -6067,8 +6080,8 @@ const Ce = {
|
|
|
6067
6080
|
const A = {
|
|
6068
6081
|
...O,
|
|
6069
6082
|
bindValue: Ze.fromDataObj(n, E).getValue(),
|
|
6070
|
-
onChange: (
|
|
6071
|
-
m?.(_(C,
|
|
6083
|
+
onChange: (P) => {
|
|
6084
|
+
m?.(_(C, P));
|
|
6072
6085
|
}
|
|
6073
6086
|
};
|
|
6074
6087
|
return /* @__PURE__ */ p.jsx(fn, { ...A });
|
|
@@ -6079,8 +6092,8 @@ const Ce = {
|
|
|
6079
6092
|
...O,
|
|
6080
6093
|
bindValue: n.k,
|
|
6081
6094
|
optionalDisplayValue: F,
|
|
6082
|
-
onChange: (
|
|
6083
|
-
m?.(j(C,
|
|
6095
|
+
onChange: (P) => {
|
|
6096
|
+
m?.(j(C, P));
|
|
6084
6097
|
}
|
|
6085
6098
|
};
|
|
6086
6099
|
return /* @__PURE__ */ p.jsx(uo, { ...A });
|
|
@@ -6089,8 +6102,8 @@ const Ce = {
|
|
|
6089
6102
|
const A = {
|
|
6090
6103
|
...O,
|
|
6091
6104
|
elements: qr(C),
|
|
6092
|
-
onChange: (
|
|
6093
|
-
m?.(D(
|
|
6105
|
+
onChange: (P) => {
|
|
6106
|
+
m?.(D(P));
|
|
6094
6107
|
}
|
|
6095
6108
|
};
|
|
6096
6109
|
return /* @__PURE__ */ p.jsx(ao, { ...A });
|
|
@@ -6112,8 +6125,8 @@ const Ce = {
|
|
|
6112
6125
|
const A = {
|
|
6113
6126
|
...O,
|
|
6114
6127
|
bindValue: C.obj.k,
|
|
6115
|
-
onChange: (
|
|
6116
|
-
m?.(j(C,
|
|
6128
|
+
onChange: (P) => {
|
|
6129
|
+
m?.(j(C, P));
|
|
6117
6130
|
}
|
|
6118
6131
|
};
|
|
6119
6132
|
return /* @__PURE__ */ p.jsx(io, { ...A });
|
|
@@ -6122,8 +6135,8 @@ const Ce = {
|
|
|
6122
6135
|
const A = {
|
|
6123
6136
|
...O,
|
|
6124
6137
|
bindValue: n.k,
|
|
6125
|
-
onChange: (
|
|
6126
|
-
m?.(j(C,
|
|
6138
|
+
onChange: (P, k) => {
|
|
6139
|
+
m?.(j(C, P, k));
|
|
6127
6140
|
}
|
|
6128
6141
|
};
|
|
6129
6142
|
return /* @__PURE__ */ p.jsx(fo, { ...A });
|
|
@@ -6132,11 +6145,11 @@ const Ce = {
|
|
|
6132
6145
|
const A = {
|
|
6133
6146
|
...O,
|
|
6134
6147
|
bindValue: C.obj.k,
|
|
6135
|
-
onEnter: (
|
|
6136
|
-
y?.(j(C,
|
|
6148
|
+
onEnter: (P) => {
|
|
6149
|
+
y?.(j(C, P));
|
|
6137
6150
|
},
|
|
6138
|
-
onChange: (
|
|
6139
|
-
m?.(j(C,
|
|
6151
|
+
onChange: (P, k) => {
|
|
6152
|
+
m?.(j(C, P, k));
|
|
6140
6153
|
}
|
|
6141
6154
|
};
|
|
6142
6155
|
return /* @__PURE__ */ p.jsx(lo, { ...A });
|
|
@@ -6146,8 +6159,8 @@ const Ce = {
|
|
|
6146
6159
|
...O,
|
|
6147
6160
|
bindValue: C.obj.k,
|
|
6148
6161
|
optionalDisplayValue: F,
|
|
6149
|
-
onChange: (
|
|
6150
|
-
m?.(j(C,
|
|
6162
|
+
onChange: (P) => {
|
|
6163
|
+
m?.(j(C, P));
|
|
6151
6164
|
}
|
|
6152
6165
|
};
|
|
6153
6166
|
return /* @__PURE__ */ p.jsx(_e, { ...A });
|
|
@@ -6156,8 +6169,8 @@ const Ce = {
|
|
|
6156
6169
|
const A = {
|
|
6157
6170
|
...O,
|
|
6158
6171
|
bindValue: n.k,
|
|
6159
|
-
onChange: (
|
|
6160
|
-
m?.(j(C,
|
|
6172
|
+
onChange: (P, k) => {
|
|
6173
|
+
m?.(j(C, P, k));
|
|
6161
6174
|
}
|
|
6162
6175
|
};
|
|
6163
6176
|
return /* @__PURE__ */ p.jsx(pn, { ...A });
|
|
@@ -6166,8 +6179,8 @@ const Ce = {
|
|
|
6166
6179
|
const A = {
|
|
6167
6180
|
...O,
|
|
6168
6181
|
bindValue: Et.fromDataObj(n).getValue(),
|
|
6169
|
-
onChange: (
|
|
6170
|
-
m?.(j(C,
|
|
6182
|
+
onChange: (P) => {
|
|
6183
|
+
m?.(j(C, P));
|
|
6171
6184
|
}
|
|
6172
6185
|
};
|
|
6173
6186
|
return /* @__PURE__ */ p.jsx(go, { ...A });
|
|
@@ -6175,8 +6188,8 @@ const Ce = {
|
|
|
6175
6188
|
case te.TREE: {
|
|
6176
6189
|
const A = {
|
|
6177
6190
|
...O,
|
|
6178
|
-
onClick: (
|
|
6179
|
-
h?.(
|
|
6191
|
+
onClick: (P) => {
|
|
6192
|
+
h?.(P);
|
|
6180
6193
|
}
|
|
6181
6194
|
};
|
|
6182
6195
|
return /* @__PURE__ */ p.jsx(xo, { ...A });
|
|
@@ -6270,18 +6283,18 @@ const Ce = {
|
|
|
6270
6283
|
if (!E?.rows?.length || !E?.columns?.length)
|
|
6271
6284
|
return {};
|
|
6272
6285
|
const b = E.rows[0];
|
|
6273
|
-
return E.columns.filter((C) => C.visible ?? !0).reduce((C,
|
|
6274
|
-
const V = b.cells[
|
|
6286
|
+
return E.columns.filter((C) => C.visible ?? !0).reduce((C, I) => {
|
|
6287
|
+
const V = b.cells[I.name];
|
|
6275
6288
|
if (!V || !f && de(n) && V.shape !== te.BUTTON && V.shape !== te.BUTTON_LIST)
|
|
6276
6289
|
return C;
|
|
6277
6290
|
const F = {
|
|
6278
6291
|
...V,
|
|
6279
|
-
id:
|
|
6292
|
+
id: I.name,
|
|
6280
6293
|
onOptionsRequest: l,
|
|
6281
6294
|
onChange: (O) => {
|
|
6282
6295
|
u((j) => {
|
|
6283
6296
|
const _ = { ...j };
|
|
6284
|
-
return _?.[
|
|
6297
|
+
return _?.[I.name] && (_[I.name].obj.k = O.obj.k), _;
|
|
6285
6298
|
});
|
|
6286
6299
|
},
|
|
6287
6300
|
onClick: (O) => {
|
|
@@ -6301,7 +6314,7 @@ const Ce = {
|
|
|
6301
6314
|
squared: !0
|
|
6302
6315
|
}), {
|
|
6303
6316
|
...C,
|
|
6304
|
-
[
|
|
6317
|
+
[I.name]: F
|
|
6305
6318
|
};
|
|
6306
6319
|
}, {});
|
|
6307
6320
|
},
|
|
@@ -6409,7 +6422,7 @@ const Ce = {
|
|
|
6409
6422
|
SelectLayout: T = "1",
|
|
6410
6423
|
onClick: w
|
|
6411
6424
|
}) => {
|
|
6412
|
-
const E = "N/A", b = e?.columns || [], C = e?.rows || [],
|
|
6425
|
+
const E = "N/A", b = e?.columns || [], C = e?.rows || [], I = C.length > 0, V = "--smp-dashList-color", F = "smp-layout", O = "descr", j = "icon", _ = "um", L = "value", D = a || "1em", K = "18px", G = "--smp-dashList-columns", A = "--smp-dashList-fontSize", P = {
|
|
6413
6426
|
dash: (z = "1") => {
|
|
6414
6427
|
const ee = g(z), W = ee, X = S(ee, O), ce = S(ee, j), he = S(ee, _), ie = S(ee, L);
|
|
6415
6428
|
return {
|
|
@@ -6422,7 +6435,7 @@ const Ce = {
|
|
|
6422
6435
|
},
|
|
6423
6436
|
dashList: `smp-dash-list ${de(o) ? "smp-dash-list-fill-space" : ""}
|
|
6424
6437
|
${de(i) ? "smp-dash-list-horizontal" : ""}`
|
|
6425
|
-
}, { format: k } =
|
|
6438
|
+
}, { format: k } = Oe(), g = (z) => `${F}-${z}`, S = (z, ee) => `${z}__${ee}`, N = (z) => `${V}-${z}`, R = (z) => {
|
|
6426
6439
|
const ee = /R(\d{1,3})G(\d{1,3})B(\d{1,3})/;
|
|
6427
6440
|
if (ee.test(z)) {
|
|
6428
6441
|
const X = z.match(ee) || [];
|
|
@@ -6457,7 +6470,7 @@ const Ce = {
|
|
|
6457
6470
|
}, B = (z, ee) => {
|
|
6458
6471
|
(z.key === "Enter" || z.key === " ") && (z.preventDefault(), z.stopPropagation(), q(ee));
|
|
6459
6472
|
}, J = ((z) => {
|
|
6460
|
-
const ee =
|
|
6473
|
+
const ee = P.dash(z);
|
|
6461
6474
|
return {
|
|
6462
6475
|
className: ee,
|
|
6463
6476
|
descr: (W) => /* @__PURE__ */ p.jsx("div", { className: ee.descr, children: W }, `${z}-${O}`),
|
|
@@ -6508,7 +6521,7 @@ const Ce = {
|
|
|
6508
6521
|
[G]: String(t),
|
|
6509
6522
|
[A]: D
|
|
6510
6523
|
};
|
|
6511
|
-
return /* @__PURE__ */ p.jsx("div", { className:
|
|
6524
|
+
return /* @__PURE__ */ p.jsx("div", { className: P.dashList, style: U, children: I ? C.map((z) => oe(z)) : E });
|
|
6512
6525
|
}, hn = {
|
|
6513
6526
|
"smp-table": "_smp-table_v715o_1"
|
|
6514
6527
|
};
|
|
@@ -6891,7 +6904,7 @@ const Mo = ({ columns: t, columnWidths: e }) => /* @__PURE__ */ p.jsx("tfoot", {
|
|
|
6891
6904
|
width: 16
|
|
6892
6905
|
}
|
|
6893
6906
|
),
|
|
6894
|
-
/* @__PURE__ */ p.jsx(
|
|
6907
|
+
/* @__PURE__ */ p.jsx(je, { variant: "title", bindValue: t })
|
|
6895
6908
|
]
|
|
6896
6909
|
}
|
|
6897
6910
|
)
|
|
@@ -6915,7 +6928,7 @@ const Ye = {
|
|
|
6915
6928
|
"smp-filter-toolbar": "_smp-filter-toolbar_1dest_31",
|
|
6916
6929
|
"smp-filter-actionButtons": "_smp-filter-actionButtons_1dest_41"
|
|
6917
6930
|
}, Wo = ({ filter: t, onChange: e, onDelete: r, fieldOptions: n, hasCurrentColumn: s }) => {
|
|
6918
|
-
const { translate: o } =
|
|
6931
|
+
const { translate: o } = Oe(), a = {
|
|
6919
6932
|
string: [
|
|
6920
6933
|
{
|
|
6921
6934
|
obj: { t: "", p: "", k: "st" },
|
|
@@ -7084,7 +7097,7 @@ const Ye = {
|
|
|
7084
7097
|
currentColumnName: l,
|
|
7085
7098
|
hasButtonGroup: c = !0
|
|
7086
7099
|
}) => {
|
|
7087
|
-
const { translate: d } =
|
|
7100
|
+
const { translate: d } = Oe(), u = (v, T) => {
|
|
7088
7101
|
const w = [...t.filters];
|
|
7089
7102
|
w[v] = T, e({ ...t, filters: w });
|
|
7090
7103
|
}, f = (v) => {
|
|
@@ -7195,7 +7208,7 @@ const Ye = {
|
|
|
7195
7208
|
n && /* @__PURE__ */ p.jsx(
|
|
7196
7209
|
me,
|
|
7197
7210
|
{
|
|
7198
|
-
bindValue: d(
|
|
7211
|
+
bindValue: d(De.CLOSE),
|
|
7199
7212
|
showText: !0,
|
|
7200
7213
|
label: "Delete",
|
|
7201
7214
|
onClick: n,
|
|
@@ -7328,15 +7341,15 @@ const Ye = {
|
|
|
7328
7341
|
onGroupDragOver: E,
|
|
7329
7342
|
onMouseDown: b,
|
|
7330
7343
|
onToggleAllRows: C,
|
|
7331
|
-
onSort:
|
|
7344
|
+
onSort: I,
|
|
7332
7345
|
onDragStart: V,
|
|
7333
7346
|
onDragOver: F,
|
|
7334
7347
|
onDrop: O
|
|
7335
7348
|
}) => {
|
|
7336
|
-
const j = ue({}), { anchorRef: _, targetRef: L } =
|
|
7349
|
+
const j = ue({}), { anchorRef: _, targetRef: L } = $e({
|
|
7337
7350
|
position: "bottom",
|
|
7338
7351
|
enabled: o
|
|
7339
|
-
}), { anchorRef: D, targetRef: K } =
|
|
7352
|
+
}), { anchorRef: D, targetRef: K } = $e({
|
|
7340
7353
|
position: "bottom",
|
|
7341
7354
|
enabled: a !== null
|
|
7342
7355
|
}), G = ae(
|
|
@@ -7345,7 +7358,7 @@ const Ye = {
|
|
|
7345
7358
|
), A = Je(
|
|
7346
7359
|
() => Io(i),
|
|
7347
7360
|
[i]
|
|
7348
|
-
),
|
|
7361
|
+
), P = {
|
|
7349
7362
|
headerCell: `${Ie["smp-headerCell"]}`,
|
|
7350
7363
|
headerCellContainer: `${Ie["smp-headerCell-container"]}`,
|
|
7351
7364
|
resizer: `${Ie["smp-resizer"]}`,
|
|
@@ -7353,8 +7366,8 @@ const Ye = {
|
|
|
7353
7366
|
datatableFilter: `${Ie["smp-datatable-filter"]}`
|
|
7354
7367
|
};
|
|
7355
7368
|
return /* @__PURE__ */ p.jsxs("thead", { children: [
|
|
7356
|
-
/* @__PURE__ */ p.jsxs("tr", { className:
|
|
7357
|
-
/* @__PURE__ */ p.jsx("th", { children: /* @__PURE__ */ p.jsxs("div", { ref: _, className:
|
|
7369
|
+
/* @__PURE__ */ p.jsxs("tr", { className: P.datatableToolbar, children: [
|
|
7370
|
+
/* @__PURE__ */ p.jsx("th", { children: /* @__PURE__ */ p.jsxs("div", { ref: _, className: P.datatableFilter, children: [
|
|
7358
7371
|
/* @__PURE__ */ p.jsx(
|
|
7359
7372
|
me,
|
|
7360
7373
|
{
|
|
@@ -7387,7 +7400,7 @@ const Ye = {
|
|
|
7387
7400
|
}
|
|
7388
7401
|
)
|
|
7389
7402
|
] }),
|
|
7390
|
-
o && /* @__PURE__ */ p.jsx(
|
|
7403
|
+
o && /* @__PURE__ */ p.jsx(Ne, { children: /* @__PURE__ */ p.jsx(
|
|
7391
7404
|
Jr,
|
|
7392
7405
|
{
|
|
7393
7406
|
filters: i,
|
|
@@ -7403,7 +7416,7 @@ const Ye = {
|
|
|
7403
7416
|
d && /* @__PURE__ */ p.jsx(
|
|
7404
7417
|
"th",
|
|
7405
7418
|
{
|
|
7406
|
-
className:
|
|
7419
|
+
className: P.headerCell,
|
|
7407
7420
|
style: { minWidth: 40, justifyContent: "center" },
|
|
7408
7421
|
children: /* @__PURE__ */ p.jsx(
|
|
7409
7422
|
tr,
|
|
@@ -7420,14 +7433,14 @@ const Ye = {
|
|
|
7420
7433
|
{
|
|
7421
7434
|
tabIndex: 0,
|
|
7422
7435
|
role: "columnheader",
|
|
7423
|
-
onClick: () =>
|
|
7436
|
+
onClick: () => I(k.name),
|
|
7424
7437
|
onKeyDown: (g) => {
|
|
7425
|
-
(g.key === "Enter" || g.key === " ") && (g.preventDefault(),
|
|
7438
|
+
(g.key === "Enter" || g.key === " ") && (g.preventDefault(), I(k.name));
|
|
7426
7439
|
},
|
|
7427
7440
|
onDragStart: () => V(k.name),
|
|
7428
7441
|
onDragOver: F,
|
|
7429
7442
|
onDrop: () => O(k.name),
|
|
7430
|
-
className:
|
|
7443
|
+
className: P.headerCell,
|
|
7431
7444
|
style: {
|
|
7432
7445
|
width: e[k.name],
|
|
7433
7446
|
minWidth: e[k.name],
|
|
@@ -7443,9 +7456,9 @@ const Ye = {
|
|
|
7443
7456
|
onDragStart: (g) => {
|
|
7444
7457
|
g.dataTransfer.setData("text/plain", k.name);
|
|
7445
7458
|
},
|
|
7446
|
-
className:
|
|
7459
|
+
className: P.headerCellContainer,
|
|
7447
7460
|
children: [
|
|
7448
|
-
/* @__PURE__ */ p.jsx(
|
|
7461
|
+
/* @__PURE__ */ p.jsx(je, { variant: "title", bindValue: k.title }),
|
|
7449
7462
|
/* @__PURE__ */ p.jsxs("div", { children: [
|
|
7450
7463
|
f === k.name ? /* @__PURE__ */ p.jsx(
|
|
7451
7464
|
le,
|
|
@@ -7472,7 +7485,7 @@ const Ye = {
|
|
|
7472
7485
|
}
|
|
7473
7486
|
)
|
|
7474
7487
|
] }),
|
|
7475
|
-
a === k.name && /* @__PURE__ */ p.jsx(
|
|
7488
|
+
a === k.name && /* @__PURE__ */ p.jsx(Ne, { children: /* @__PURE__ */ p.jsx(
|
|
7476
7489
|
Jr,
|
|
7477
7490
|
{
|
|
7478
7491
|
filters: i,
|
|
@@ -7491,7 +7504,7 @@ const Ye = {
|
|
|
7491
7504
|
/* @__PURE__ */ p.jsx(
|
|
7492
7505
|
"div",
|
|
7493
7506
|
{
|
|
7494
|
-
className:
|
|
7507
|
+
className: P.resizer,
|
|
7495
7508
|
onMouseDown: (g) => {
|
|
7496
7509
|
b(g, k.name);
|
|
7497
7510
|
},
|
|
@@ -7524,7 +7537,7 @@ const Ye = {
|
|
|
7524
7537
|
const [f, m] = H(() => t ? {
|
|
7525
7538
|
columns: l ? Bo(t, Uo(l)) : t.columns,
|
|
7526
7539
|
rows: t.rows ?? []
|
|
7527
|
-
} : { columns: [], rows: [] }), [h, y] = H(n || []), [x, v] = H(/* @__PURE__ */ new Set()), [T, w] = H(!1), [E, b] = H(/* @__PURE__ */ new Set()), [C,
|
|
7540
|
+
} : { columns: [], rows: [] }), [h, y] = H(n || []), [x, v] = H(/* @__PURE__ */ new Set()), [T, w] = H(!1), [E, b] = H(/* @__PURE__ */ new Set()), [C, I] = H(null), V = Je(() => To(t?.columns || []), [t?.columns]), [F, O] = H(() => Kr(a, V)), j = ue(null), [_, L] = Co({
|
|
7528
7541
|
columns: f?.columns ?? [],
|
|
7529
7542
|
rows: f?.rows ?? [],
|
|
7530
7543
|
containerRef: j,
|
|
@@ -7535,7 +7548,7 @@ const Ye = {
|
|
|
7535
7548
|
), A = Je(() => {
|
|
7536
7549
|
const W = f.rows.map((X, ce) => ce);
|
|
7537
7550
|
return W.every((X) => E.has(X)) && W.length > 0;
|
|
7538
|
-
}, [E, f.rows]), { sortBy:
|
|
7551
|
+
}, [E, f.rows]), { sortBy: P, sortOrder: k, handleSort: g } = Fo({
|
|
7539
7552
|
...f,
|
|
7540
7553
|
rows: f.rows
|
|
7541
7554
|
}), { virtualItems: S, containerProps: N, innerProps: R } = on({
|
|
@@ -7553,9 +7566,9 @@ const Ye = {
|
|
|
7553
7566
|
let W = t?.rows ?? [];
|
|
7554
7567
|
F?.filters?.length > 0 && (W = Ro(W, F));
|
|
7555
7568
|
let X = W;
|
|
7556
|
-
|
|
7569
|
+
P && (X = gn(
|
|
7557
7570
|
{ ...t ?? { columns: [], rows: [] }, rows: W },
|
|
7558
|
-
|
|
7571
|
+
P,
|
|
7559
7572
|
k
|
|
7560
7573
|
).rows);
|
|
7561
7574
|
let ce = X;
|
|
@@ -7578,7 +7591,7 @@ const Ye = {
|
|
|
7578
7591
|
x,
|
|
7579
7592
|
e,
|
|
7580
7593
|
F,
|
|
7581
|
-
|
|
7594
|
+
P,
|
|
7582
7595
|
k
|
|
7583
7596
|
]);
|
|
7584
7597
|
const $ = ae((W) => {
|
|
@@ -7588,7 +7601,7 @@ const Ye = {
|
|
|
7588
7601
|
}, [a, V]), Y = ae(() => {
|
|
7589
7602
|
w((W) => !W);
|
|
7590
7603
|
}, []), q = ae((W) => {
|
|
7591
|
-
|
|
7604
|
+
I((X) => X === W ? null : W);
|
|
7592
7605
|
}, []), B = (W) => {
|
|
7593
7606
|
y(So(W, h));
|
|
7594
7607
|
}, Z = (W) => {
|
|
@@ -7644,7 +7657,7 @@ const Ye = {
|
|
|
7644
7657
|
Filter: a,
|
|
7645
7658
|
enableSelection: de(i),
|
|
7646
7659
|
allVisibleRowsSelected: A,
|
|
7647
|
-
sortBy:
|
|
7660
|
+
sortBy: P,
|
|
7648
7661
|
sortOrder: k,
|
|
7649
7662
|
onToggleFilter: Y,
|
|
7650
7663
|
onToggleColumnFilter: q,
|
|
@@ -7818,7 +7831,7 @@ const Ye = {
|
|
|
7818
7831
|
}) => {
|
|
7819
7832
|
const h = ue(!1), y = ue([]), [x, v] = H(
|
|
7820
7833
|
() => Qr(t, o, r)
|
|
7821
|
-
), { translate: T } =
|
|
7834
|
+
), { translate: T } = Oe(), w = ke(), E = ue(null);
|
|
7822
7835
|
re(() => {
|
|
7823
7836
|
const j = E.current;
|
|
7824
7837
|
if (!j) return;
|
|
@@ -7877,7 +7890,7 @@ const Ye = {
|
|
|
7877
7890
|
value: _,
|
|
7878
7891
|
cell: j
|
|
7879
7892
|
});
|
|
7880
|
-
},
|
|
7893
|
+
}, I = (j, _) => {
|
|
7881
7894
|
m?.({
|
|
7882
7895
|
cellId: j,
|
|
7883
7896
|
currentState: {
|
|
@@ -7903,7 +7916,7 @@ const Ye = {
|
|
|
7903
7916
|
...L[j],
|
|
7904
7917
|
data: {
|
|
7905
7918
|
...L[j].data,
|
|
7906
|
-
error: T(
|
|
7919
|
+
error: T(De.CHECK_OBJECT_WRONG_VALIDATION)
|
|
7907
7920
|
}
|
|
7908
7921
|
}
|
|
7909
7922
|
}))), x[j].inputSettings?.checkValueOnExit)) {
|
|
@@ -7931,7 +7944,7 @@ const Ye = {
|
|
|
7931
7944
|
/* @__PURE__ */ p.jsx(
|
|
7932
7945
|
Fe,
|
|
7933
7946
|
{
|
|
7934
|
-
decode: T(
|
|
7947
|
+
decode: T(De.CONFIRM_BUTTON),
|
|
7935
7948
|
shape: te.BUTTON,
|
|
7936
7949
|
id: "",
|
|
7937
7950
|
obj: {
|
|
@@ -7941,7 +7954,7 @@ const Ye = {
|
|
|
7941
7954
|
},
|
|
7942
7955
|
data: {
|
|
7943
7956
|
submit: !0,
|
|
7944
|
-
label: T(
|
|
7957
|
+
label: T(De.CONFIRM_BUTTON)
|
|
7945
7958
|
}
|
|
7946
7959
|
},
|
|
7947
7960
|
"submit-command"
|
|
@@ -7972,7 +7985,7 @@ const Ye = {
|
|
|
7972
7985
|
onBlur: () => V(j.id),
|
|
7973
7986
|
onContextMenu: f,
|
|
7974
7987
|
onClick: () => {
|
|
7975
|
-
(j.shape == "BTN" || j.shape == "CFM") &&
|
|
7988
|
+
(j.shape == "BTN" || j.shape == "CFM") && I(j.id, j.fun);
|
|
7976
7989
|
},
|
|
7977
7990
|
data: {
|
|
7978
7991
|
...j.data,
|