@sme.up/ketchup2 2.0.0-SNAPSHOT-20250904093309 → 2.0.0-SNAPSHOT-20250904121312
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/ketchup2.cjs.js +8 -8
- package/dist/ketchup2.css +1 -1
- package/dist/ketchup2.es.js +120 -120
- package/package.json +1 -1
package/dist/ketchup2.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as st from "react";
|
|
2
|
-
import mt, { useState as
|
|
2
|
+
import mt, { useState as z, useEffect as re, useRef as ue, useCallback as oe, useLayoutEffect as wn, useId as ke, useMemo as Qe, createElement as Sn } from "react";
|
|
3
3
|
import { createPortal as En } from "react-dom";
|
|
4
4
|
var ot = { exports: {} }, qe = {};
|
|
5
5
|
/**
|
|
@@ -33,7 +33,7 @@ function Cn() {
|
|
|
33
33
|
}
|
|
34
34
|
return qe.Fragment = e, qe.jsx = r, qe.jsxs = r, qe;
|
|
35
35
|
}
|
|
36
|
-
var
|
|
36
|
+
var ze = {};
|
|
37
37
|
/**
|
|
38
38
|
* @license React
|
|
39
39
|
* react-jsx-runtime.development.js
|
|
@@ -249,7 +249,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
249
249
|
f,
|
|
250
250
|
o
|
|
251
251
|
)(), N = I(n(o)), j = {};
|
|
252
|
-
|
|
252
|
+
ze.Fragment = b, ze.jsx = function(m, S, L, D, $) {
|
|
253
253
|
var P = 1e4 > C.recentlyCreatedOwnerStacks++;
|
|
254
254
|
return d(
|
|
255
255
|
m,
|
|
@@ -261,7 +261,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
261
261
|
P ? Error("react-stack-top-frame") : X,
|
|
262
262
|
P ? I(n(m)) : N
|
|
263
263
|
);
|
|
264
|
-
},
|
|
264
|
+
}, ze.jsxs = function(m, S, L, D, $) {
|
|
265
265
|
var P = 1e4 > C.recentlyCreatedOwnerStacks++;
|
|
266
266
|
return d(
|
|
267
267
|
m,
|
|
@@ -274,7 +274,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
274
274
|
P ? I(n(m)) : N
|
|
275
275
|
);
|
|
276
276
|
};
|
|
277
|
-
}()),
|
|
277
|
+
}()), ze;
|
|
278
278
|
}
|
|
279
279
|
var lr;
|
|
280
280
|
function _n() {
|
|
@@ -498,11 +498,11 @@ var Dn = Rn(), Be = /* @__PURE__ */ new Map(), Xr = function(e) {
|
|
|
498
498
|
for (var j = function(D, $) {
|
|
499
499
|
O = y[D].id, F = O + "-" + An();
|
|
500
500
|
var P;
|
|
501
|
-
Array.prototype.forEach.call(R, function(
|
|
502
|
-
P = u.querySelectorAll("[" +
|
|
501
|
+
Array.prototype.forEach.call(R, function(H) {
|
|
502
|
+
P = u.querySelectorAll("[" + H + '*="' + O + '"]');
|
|
503
503
|
for (var ee = 0, B = P.length; ee < B; ee++) {
|
|
504
|
-
var J = P[ee].getAttribute(
|
|
505
|
-
J && !J.match(new RegExp('url\\("?#' + O + '"?\\)')) || P[ee].setAttribute(
|
|
504
|
+
var J = P[ee].getAttribute(H);
|
|
505
|
+
J && !J.match(new RegExp('url\\("?#' + O + '"?\\)')) || P[ee].setAttribute(H, "url(#" + F + ")");
|
|
506
506
|
}
|
|
507
507
|
});
|
|
508
508
|
for (var G = u.querySelectorAll("[*|href]"), q = [], Y = 0, Q = G.length; Y < Q; Y++) {
|
|
@@ -640,8 +640,8 @@ function Mn() {
|
|
|
640
640
|
}
|
|
641
641
|
function T(M) {
|
|
642
642
|
if (typeof M == "object" && M !== null) {
|
|
643
|
-
var
|
|
644
|
-
switch (
|
|
643
|
+
var H = M.$$typeof;
|
|
644
|
+
switch (H) {
|
|
645
645
|
case e:
|
|
646
646
|
var ee = M.type;
|
|
647
647
|
switch (ee) {
|
|
@@ -662,11 +662,11 @@ function Mn() {
|
|
|
662
662
|
case a:
|
|
663
663
|
return B;
|
|
664
664
|
default:
|
|
665
|
-
return
|
|
665
|
+
return H;
|
|
666
666
|
}
|
|
667
667
|
}
|
|
668
668
|
case r:
|
|
669
|
-
return
|
|
669
|
+
return H;
|
|
670
670
|
}
|
|
671
671
|
}
|
|
672
672
|
}
|
|
@@ -891,11 +891,11 @@ function Bn() {
|
|
|
891
891
|
);
|
|
892
892
|
throw M.name = "Invariant Violation", M;
|
|
893
893
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
894
|
-
var
|
|
895
|
-
!S[
|
|
894
|
+
var H = Y + ":" + q;
|
|
895
|
+
!S[H] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
896
896
|
L < 3 && (o(
|
|
897
897
|
"You are manually calling a React.PropTypes validation function for the `" + K + "` prop on `" + Y + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
898
|
-
), S[
|
|
898
|
+
), S[H] = !0, L++);
|
|
899
899
|
}
|
|
900
900
|
}
|
|
901
901
|
return G[q] == null ? P ? G[q] === null ? new b("The " + Q + " `" + K + "` is marked as required " + ("in `" + Y + "`, but its value is `null`.")) : new b("The " + Q + " `" + K + "` is marked as required in " + ("`" + Y + "`, but its value is `undefined`.")) : null : m(G, q, Y, Q, K);
|
|
@@ -980,8 +980,8 @@ function Bn() {
|
|
|
980
980
|
if (h(q, m[Y]))
|
|
981
981
|
return null;
|
|
982
982
|
var Q = JSON.stringify(m, function(ae, M) {
|
|
983
|
-
var
|
|
984
|
-
return
|
|
983
|
+
var H = X(M);
|
|
984
|
+
return H === "symbol" ? String(M) : M;
|
|
985
985
|
});
|
|
986
986
|
return new b("Invalid " + P + " `" + G + "` of value `" + String(q) + "` " + ("supplied to `" + $ + "`, expected one of " + Q + "."));
|
|
987
987
|
}
|
|
@@ -1021,8 +1021,8 @@ function Bn() {
|
|
|
1021
1021
|
return null;
|
|
1022
1022
|
M.data && n(M.data, "expectedType") && Q.push(M.data.expectedType);
|
|
1023
1023
|
}
|
|
1024
|
-
var
|
|
1025
|
-
return new b("Invalid " + q + " `" + Y + "` supplied to " + ("`" + G + "`" +
|
|
1024
|
+
var H = Q.length > 0 ? ", expected one of type [" + Q.join(", ") + "]" : "";
|
|
1025
|
+
return new b("Invalid " + q + " `" + Y + "` supplied to " + ("`" + G + "`" + H + "."));
|
|
1026
1026
|
}
|
|
1027
1027
|
return x(D);
|
|
1028
1028
|
}
|
|
@@ -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", Cr = "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];
|
|
@@ -1314,7 +1314,7 @@ 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 = jn(s,
|
|
1317
|
+
var i = s.wrapper, l = jn(s, zn), c = i;
|
|
1318
1318
|
return /* @__PURE__ */ st.createElement(c, gt({}, l, {
|
|
1319
1319
|
ref: this.refCallback
|
|
1320
1320
|
}, i === "svg" ? {
|
|
@@ -1361,7 +1361,7 @@ let Mt = {
|
|
|
1361
1361
|
};
|
|
1362
1362
|
const Jo = (t) => {
|
|
1363
1363
|
Mt = { ...Mt, ...t };
|
|
1364
|
-
},
|
|
1364
|
+
}, Hn = (t) => {
|
|
1365
1365
|
const e = `${Mt.assets}/${t}`.replace(/\/+/g, "/");
|
|
1366
1366
|
return e.endsWith(".svg") ? e : e + ".svg";
|
|
1367
1367
|
}, ie = mt.memo(
|
|
@@ -1381,14 +1381,14 @@ const Jo = (t) => {
|
|
|
1381
1381
|
tabIndex: f,
|
|
1382
1382
|
link: g
|
|
1383
1383
|
}) => {
|
|
1384
|
-
const [h, b] =
|
|
1384
|
+
const [h, b] = z(!1), x = (E) => E?.toLowerCase().endsWith(".svg") || !E?.includes("/"), w = (E) => E?.startsWith("http") || E?.startsWith("/"), _ = {
|
|
1385
1385
|
img: `${c ? "smp-image-interactable" : ""}`,
|
|
1386
1386
|
svg: `smp-icon ${a ? `smp-icon-${a}` : ""} ${i ? "smp-icon-rotated" : ""} ${c ? "smp-icon-interactable" : ""} ${d ? "smp-icon-spin" : ""}`
|
|
1387
1387
|
}, v = (E) => {
|
|
1388
1388
|
!o && c && l && l(E);
|
|
1389
1389
|
}, T = (E) => {
|
|
1390
1390
|
!o && c && (E.key === "Enter" || E.key === " ") && (E.preventDefault(), v(E));
|
|
1391
|
-
}, y = h ? n : t, R = x(y), F = w(y) ? y :
|
|
1391
|
+
}, y = h ? n : t, R = x(y), F = w(y) ? y : Hn(`assets/svg/${y}`), W = () => /* @__PURE__ */ p.jsx(
|
|
1392
1392
|
Xt,
|
|
1393
1393
|
{
|
|
1394
1394
|
src: F,
|
|
@@ -1433,7 +1433,7 @@ const Jo = (t) => {
|
|
|
1433
1433
|
function Ne({
|
|
1434
1434
|
children: t
|
|
1435
1435
|
}) {
|
|
1436
|
-
const [e, r] =
|
|
1436
|
+
const [e, r] = z(!1);
|
|
1437
1437
|
return re(() => {
|
|
1438
1438
|
r(!0);
|
|
1439
1439
|
}, []), e ? En(t, document.body) : null;
|
|
@@ -1442,7 +1442,7 @@ function $e({
|
|
|
1442
1442
|
position: t = "bottom",
|
|
1443
1443
|
open: e = !1
|
|
1444
1444
|
}) {
|
|
1445
|
-
const r = ue(null), n = ue(null), [s, o] =
|
|
1445
|
+
const r = ue(null), n = ue(null), [s, o] = z(0), a = oe(() => {
|
|
1446
1446
|
const i = r.current, l = n.current;
|
|
1447
1447
|
if (!i || !l) return;
|
|
1448
1448
|
const { top: c, left: d, width: u, height: f } = i.getBoundingClientRect();
|
|
@@ -1544,7 +1544,7 @@ const Lt = {
|
|
|
1544
1544
|
htmlFor: r,
|
|
1545
1545
|
helper: n = ""
|
|
1546
1546
|
}) => {
|
|
1547
|
-
const [s, o] =
|
|
1547
|
+
const [s, o] = z(!1), { anchorRef: a, targetRef: i } = $e({
|
|
1548
1548
|
position: "right",
|
|
1549
1549
|
open: s
|
|
1550
1550
|
}), l = {
|
|
@@ -1732,13 +1732,13 @@ const Lt = {
|
|
|
1732
1732
|
"smp-tabbar-tab-large": "_smp-tabbar-tab-large_ly1md_91",
|
|
1733
1733
|
"smp-tabbar-tab-extraLarge": "_smp-tabbar-tab-extraLarge_ly1md_96"
|
|
1734
1734
|
}, Ae = {
|
|
1735
|
-
"smp-toolbar-node-content": "_smp-toolbar-node-
|
|
1736
|
-
"smp-clickable": "_smp-
|
|
1737
|
-
"smp-not-clickable": "_smp-not-
|
|
1738
|
-
"smp-toolbar-node-children-container": "_smp-toolbar-node-children-
|
|
1739
|
-
"smp-toolbar-node": "_smp-toolbar-
|
|
1740
|
-
"smp-toolbar-node-icon-text-container": "_smp-toolbar-node-icon-text-
|
|
1741
|
-
"smp-toolbar-node-text": "_smp-toolbar-node-
|
|
1735
|
+
"smp-toolbar-node-content": "_smp-toolbar-node-content_dcszf_21",
|
|
1736
|
+
"smp-clickable": "_smp-clickable_dcszf_43",
|
|
1737
|
+
"smp-not-clickable": "_smp-not-clickable_dcszf_53",
|
|
1738
|
+
"smp-toolbar-node-children-container": "_smp-toolbar-node-children-container_dcszf_63",
|
|
1739
|
+
"smp-toolbar-node": "_smp-toolbar-node_dcszf_21",
|
|
1740
|
+
"smp-toolbar-node-icon-text-container": "_smp-toolbar-node-icon-text-container_dcszf_139",
|
|
1741
|
+
"smp-toolbar-node-text": "_smp-toolbar-node-text_dcszf_153"
|
|
1742
1742
|
}, Zt = "smp-toolbar", Zn = [
|
|
1743
1743
|
"ArrowDown",
|
|
1744
1744
|
"ArrowUp",
|
|
@@ -2087,7 +2087,7 @@ function nn({
|
|
|
2087
2087
|
containerHeight: r,
|
|
2088
2088
|
overscan: n = 5
|
|
2089
2089
|
}) {
|
|
2090
|
-
const [s, o] =
|
|
2090
|
+
const [s, o] = z(0), a = ue(null), i = t.length * e, l = Math.max(0, Math.floor(s / e) - n), c = Math.min(
|
|
2091
2091
|
t.length - 1,
|
|
2092
2092
|
Math.floor((s + r) / e) + n
|
|
2093
2093
|
), d = [];
|
|
@@ -2134,7 +2134,7 @@ function nn({
|
|
|
2134
2134
|
scrollToIndex: f
|
|
2135
2135
|
};
|
|
2136
2136
|
}
|
|
2137
|
-
const
|
|
2137
|
+
const He = {
|
|
2138
2138
|
"smp-list": "_smp-list_1mnl7_1",
|
|
2139
2139
|
"smp-list-floating": "_smp-list-floating_1mnl7_7",
|
|
2140
2140
|
"smp-list-container": "_smp-list-container_1mnl7_15",
|
|
@@ -2171,9 +2171,9 @@ const os = 10, er = ({
|
|
|
2171
2171
|
isOpen: d,
|
|
2172
2172
|
floating: u = !1
|
|
2173
2173
|
}) => {
|
|
2174
|
-
const [f, g] =
|
|
2174
|
+
const [f, g] = z(""), h = 40, [b, x] = z(
|
|
2175
2175
|
o !== null ? o : -1
|
|
2176
|
-
), [w, _] =
|
|
2176
|
+
), [w, _] = z(i || 200), v = ue(null), T = s !== void 0 ? s : e.length > os, y = f ? e.filter(
|
|
2177
2177
|
(V) => V.decode?.toLowerCase()?.includes(f.toLowerCase())
|
|
2178
2178
|
) : e, R = (V) => {
|
|
2179
2179
|
g(V);
|
|
@@ -2205,10 +2205,10 @@ const os = 10, er = ({
|
|
|
2205
2205
|
}, A = (V) => {
|
|
2206
2206
|
C(V);
|
|
2207
2207
|
}, I = {
|
|
2208
|
-
wrapper: `${
|
|
2209
|
-
container: `${
|
|
2210
|
-
virtualScroll: `${
|
|
2211
|
-
listItem: `${
|
|
2208
|
+
wrapper: `${He["smp-list"]} ${u ? He["smp-list-floating"] : ""}`,
|
|
2209
|
+
container: `${He["smp-list-container"]}`,
|
|
2210
|
+
virtualScroll: `${He["smp-list-virtualScroll"]}`,
|
|
2211
|
+
listItem: `${He["smp-list-listItem"]}`
|
|
2212
2212
|
};
|
|
2213
2213
|
return /* @__PURE__ */ p.jsxs(
|
|
2214
2214
|
"div",
|
|
@@ -2286,7 +2286,7 @@ const os = 10, er = ({
|
|
|
2286
2286
|
onToolbarLeafNodeClick: n,
|
|
2287
2287
|
onToolbarLoadInitialData: s
|
|
2288
2288
|
}) => {
|
|
2289
|
-
const o = ue(/* @__PURE__ */ new Map()), [a, i] =
|
|
2289
|
+
const o = ue(/* @__PURE__ */ new Map()), [a, i] = z(t), { handleNodeExpand: l, handleMouseLeave: c, onToolbarRadioLeafNodeClick: d } = ns(
|
|
2290
2290
|
i,
|
|
2291
2291
|
r,
|
|
2292
2292
|
n
|
|
@@ -2441,7 +2441,7 @@ const os = 10, er = ({
|
|
|
2441
2441
|
onToolbarLoadNodeData: a,
|
|
2442
2442
|
onToolbarLeafNodeClick: i
|
|
2443
2443
|
}) => {
|
|
2444
|
-
const [l, c] =
|
|
2444
|
+
const [l, c] = z(n ?? 0), [d, u] = z(!1), [f, g] = z(!1), [h, b] = z(!1), x = ue(null), { anchorRef: w, targetRef: _ } = $e({
|
|
2445
2445
|
position: "bottom",
|
|
2446
2446
|
open: d
|
|
2447
2447
|
});
|
|
@@ -2583,7 +2583,7 @@ const os = 10, er = ({
|
|
|
2583
2583
|
]
|
|
2584
2584
|
}
|
|
2585
2585
|
}) => {
|
|
2586
|
-
const [r, n] =
|
|
2586
|
+
const [r, n] = z(0), s = {};
|
|
2587
2587
|
mt.Children.forEach(t, (h) => {
|
|
2588
2588
|
mt.isValidElement(h) && (s[h.props.id] = h);
|
|
2589
2589
|
});
|
|
@@ -4194,12 +4194,12 @@ function qs(t, e, r, n) {
|
|
|
4194
4194
|
const a = Js(s);
|
|
4195
4195
|
return new Intl.NumberFormat(n, a).format(o);
|
|
4196
4196
|
}
|
|
4197
|
-
const
|
|
4197
|
+
const zs = (t, e, r) => {
|
|
4198
4198
|
const n = t.lastIndexOf(r);
|
|
4199
4199
|
if (n !== -1) return t.length - n - 1;
|
|
4200
4200
|
const s = r === "." ? "," : ".", o = t.lastIndexOf(s);
|
|
4201
4201
|
return o !== -1 && !(s === e && t.length - o - 1 === 3) ? t.length - o - 1 : 0;
|
|
4202
|
-
},
|
|
4202
|
+
}, Hs = (t, e, r) => {
|
|
4203
4203
|
if (!t) return NaN;
|
|
4204
4204
|
let n = t.replace(/\s/g, ""), s = r;
|
|
4205
4205
|
const o = (n.match(/\./g) || []).length, a = (n.match(/,/g) || []).length;
|
|
@@ -4281,7 +4281,7 @@ function Re() {
|
|
|
4281
4281
|
);
|
|
4282
4282
|
return { format: t, getCurrentLanguage: e, translate: r };
|
|
4283
4283
|
}
|
|
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 || {}),
|
|
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 || {}), zt = /* @__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))(zt || {});
|
|
4285
4285
|
const Zs = (t) => t?.type === "SmeupDataTree", eo = (t) => t?.type === "SmeupDataTable", ht = {
|
|
4286
4286
|
obj: { t: "", p: "", k: "" },
|
|
4287
4287
|
decode: "",
|
|
@@ -4318,9 +4318,9 @@ const Zs = (t) => t?.type === "SmeupDataTree", eo = (t) => t?.type === "SmeupDat
|
|
|
4318
4318
|
_multiActiveIndex: f,
|
|
4319
4319
|
...g
|
|
4320
4320
|
}) => {
|
|
4321
|
-
const h = ue(null), [b, x] =
|
|
4321
|
+
const h = ue(null), [b, x] = z(t), [w, _] = z(e), { translate: v } = Re(), [T, y] = z(!1), [R, O] = z(
|
|
4322
4322
|
r || []
|
|
4323
|
-
), [F, W] =
|
|
4323
|
+
), [F, W] = z(0), [k, C] = z([t]), { anchorRef: E, targetRef: A, anchorWidth: I } = $e({
|
|
4324
4324
|
position: "bottom",
|
|
4325
4325
|
open: T
|
|
4326
4326
|
}), V = oe(() => {
|
|
@@ -4416,7 +4416,7 @@ const Zs = (t) => t?.type === "SmeupDataTree", eo = (t) => t?.type === "SmeupDat
|
|
|
4416
4416
|
onClick: g,
|
|
4417
4417
|
onOptionsRequest: h
|
|
4418
4418
|
}) => {
|
|
4419
|
-
const [b, x] =
|
|
4419
|
+
const [b, x] = z(t);
|
|
4420
4420
|
re(() => {
|
|
4421
4421
|
!b && h && e && h(e, void 0).then(
|
|
4422
4422
|
(v) => x(Ge(v))
|
|
@@ -4523,7 +4523,7 @@ function nr(t, e) {
|
|
|
4523
4523
|
};
|
|
4524
4524
|
}, [t, e]);
|
|
4525
4525
|
}
|
|
4526
|
-
const
|
|
4526
|
+
const Ht = ({
|
|
4527
4527
|
bindValue: t,
|
|
4528
4528
|
onChange: e,
|
|
4529
4529
|
options: r = [],
|
|
@@ -4535,7 +4535,7 @@ const zt = ({
|
|
|
4535
4535
|
multiActiveIndex: l,
|
|
4536
4536
|
...c
|
|
4537
4537
|
}) => {
|
|
4538
|
-
const d = ue(null), [u, f] =
|
|
4538
|
+
const d = ue(null), [u, f] = z(!1), [g, h] = z(r), [b, x] = z(-1), [w, _] = z([t]), v = ke(), { anchorRef: T, targetRef: y, anchorWidth: R } = $e({
|
|
4539
4539
|
position: "bottom",
|
|
4540
4540
|
open: u
|
|
4541
4541
|
}), O = oe(() => {
|
|
@@ -4616,13 +4616,13 @@ function so({
|
|
|
4616
4616
|
if (!n) return;
|
|
4617
4617
|
const j = new Date(n);
|
|
4618
4618
|
return isNaN(j.getTime()) ? void 0 : j;
|
|
4619
|
-
}, [i] =
|
|
4619
|
+
}, [i] = z(/* @__PURE__ */ new Date()), [l, c] = z(
|
|
4620
4620
|
t || a() || /* @__PURE__ */ new Date()
|
|
4621
|
-
), [d, u] =
|
|
4621
|
+
), [d, u] = z(
|
|
4622
4622
|
l ? l.getMonth() : (/* @__PURE__ */ new Date()).getMonth()
|
|
4623
|
-
), [f, g] =
|
|
4623
|
+
), [f, g] = z(
|
|
4624
4624
|
l ? l.getFullYear() : (/* @__PURE__ */ new Date()).getFullYear()
|
|
4625
|
-
), [h, b] =
|
|
4625
|
+
), [h, b] = z(
|
|
4626
4626
|
l ? l.getDate() : null
|
|
4627
4627
|
), x = ue(null), w = ue([]), _ = [
|
|
4628
4628
|
o(xe.JANUARY),
|
|
@@ -4863,7 +4863,7 @@ function so({
|
|
|
4863
4863
|
me,
|
|
4864
4864
|
{
|
|
4865
4865
|
onClick: R,
|
|
4866
|
-
ariaLabel: o(
|
|
4866
|
+
ariaLabel: o(zt.PREVIOUS_MONTH),
|
|
4867
4867
|
optionalDisplayValue: "<",
|
|
4868
4868
|
appearance: "ghost",
|
|
4869
4869
|
variant: "base",
|
|
@@ -4882,7 +4882,7 @@ function so({
|
|
|
4882
4882
|
me,
|
|
4883
4883
|
{
|
|
4884
4884
|
onClick: O,
|
|
4885
|
-
ariaLabel: o(
|
|
4885
|
+
ariaLabel: o(zt.NEXT_MONTH),
|
|
4886
4886
|
bindValue: ">",
|
|
4887
4887
|
optionalDisplayValue: ">",
|
|
4888
4888
|
appearance: "ghost",
|
|
@@ -4998,7 +4998,7 @@ const sr = ({
|
|
|
4998
4998
|
isOptimized: o,
|
|
4999
4999
|
...a
|
|
5000
5000
|
}) => {
|
|
5001
|
-
const i = ue(null), [l, c] =
|
|
5001
|
+
const i = ue(null), [l, c] = z(!1), [d, u] = z(t || ""), [f, g] = z(""), { anchorRef: h, targetRef: b } = $e({
|
|
5002
5002
|
position: "bottom",
|
|
5003
5003
|
open: l
|
|
5004
5004
|
}), x = oe(() => {
|
|
@@ -5075,7 +5075,7 @@ const sr = ({
|
|
|
5075
5075
|
backgroundColor: o,
|
|
5076
5076
|
isDraggable: a = !1
|
|
5077
5077
|
}) => {
|
|
5078
|
-
const [i, l] =
|
|
5078
|
+
const [i, l] = z(null), c = {
|
|
5079
5079
|
container: `${["smp-chips-container"]}`,
|
|
5080
5080
|
element: "smp-chips-element"
|
|
5081
5081
|
}, d = (g) => {
|
|
@@ -5203,7 +5203,7 @@ const sr = ({
|
|
|
5203
5203
|
}
|
|
5204
5204
|
);
|
|
5205
5205
|
}, ao = ({ ...t }) => {
|
|
5206
|
-
const [e, r] =
|
|
5206
|
+
const [e, r] = z(!1), n = e ? "visibility-off" : "visibility";
|
|
5207
5207
|
return /* @__PURE__ */ p.jsx(
|
|
5208
5208
|
_e,
|
|
5209
5209
|
{
|
|
@@ -5216,7 +5216,7 @@ const sr = ({
|
|
|
5216
5216
|
}
|
|
5217
5217
|
);
|
|
5218
5218
|
}, io = ({ ...t }) => {
|
|
5219
|
-
const [e, r] =
|
|
5219
|
+
const [e, r] = z(t.bindValue), { translate: n } = Re(), s = (a) => {
|
|
5220
5220
|
a.key === "Enter" && (a.preventDefault(), t.onEnter?.(e));
|
|
5221
5221
|
}, o = (a) => {
|
|
5222
5222
|
r(a), t.onChange?.(a);
|
|
@@ -5308,7 +5308,7 @@ const Pe = (t, e, r) => ({
|
|
|
5308
5308
|
useGrouping: !0
|
|
5309
5309
|
}).format(A),
|
|
5310
5310
|
[f]
|
|
5311
|
-
), x = oe(
|
|
5311
|
+
), x = oe(Hs, [g, h]), w = oe(Ys, [t, e]), _ = o != null && o.toString().includes(".") ? o.toString().split(".")[1].length : 0, [v, T] = z(_), [y, R] = z(
|
|
5312
5312
|
o != null ? b(o, v) : ""
|
|
5313
5313
|
), O = ue(o ?? null);
|
|
5314
5314
|
re(() => {
|
|
@@ -5333,7 +5333,7 @@ const Pe = (t, e, r) => ({
|
|
|
5333
5333
|
} else
|
|
5334
5334
|
R("");
|
|
5335
5335
|
else {
|
|
5336
|
-
const U = w(V, t, e), X =
|
|
5336
|
+
const U = w(V, t, e), X = zs(
|
|
5337
5337
|
A,
|
|
5338
5338
|
g,
|
|
5339
5339
|
h
|
|
@@ -5529,7 +5529,7 @@ const Ue = {
|
|
|
5529
5529
|
label: i,
|
|
5530
5530
|
...l
|
|
5531
5531
|
}) => {
|
|
5532
|
-
const [c, d] =
|
|
5532
|
+
const [c, d] = z(s), u = ke();
|
|
5533
5533
|
re(() => {
|
|
5534
5534
|
!c && o && a && o(a, void 0).then(
|
|
5535
5535
|
(y) => d(Ge(y))
|
|
@@ -5642,7 +5642,7 @@ const Ue = {
|
|
|
5642
5642
|
isEditable: n = !0,
|
|
5643
5643
|
...s
|
|
5644
5644
|
}) => {
|
|
5645
|
-
const o = ue(null), [a, i] =
|
|
5645
|
+
const o = ue(null), [a, i] = z(!1), [l, c] = z(t || ""), [d, u] = z(""), { anchorRef: f, targetRef: g } = $e({
|
|
5646
5646
|
position: "bottom",
|
|
5647
5647
|
open: a
|
|
5648
5648
|
}), h = oe(() => {
|
|
@@ -5758,7 +5758,7 @@ const qr = /* @__PURE__ */ new Map([
|
|
|
5758
5758
|
helper: l,
|
|
5759
5759
|
...c
|
|
5760
5760
|
}) => {
|
|
5761
|
-
const [d, u] =
|
|
5761
|
+
const [d, u] = z(o), f = ke(), g = (b) => {
|
|
5762
5762
|
e || c.onChange?.(b.obj.k, b.decode);
|
|
5763
5763
|
};
|
|
5764
5764
|
re(() => {
|
|
@@ -5835,7 +5835,7 @@ const Ce = {
|
|
|
5835
5835
|
onNodeClick: d,
|
|
5836
5836
|
onContextMenu: u
|
|
5837
5837
|
}) => {
|
|
5838
|
-
const [f, g] =
|
|
5838
|
+
const [f, g] = z(We(t)), h = We(t) && !!t.children?.length, b = t.cells && Object.keys(t.cells).length > 0, x = h, w = n * 16, _ = () => {
|
|
5839
5839
|
h && g(!f);
|
|
5840
5840
|
}, v = {
|
|
5841
5841
|
content: `${Ce["smp-row"]} ${ft(t) ? Ce["smp-row-data"] : ""} ${We(t) ? Ce["smp-row-clickable"] : ""} ${i ? Ce["smp-row-selected"] : ""}`,
|
|
@@ -5987,7 +5987,7 @@ const Ce = {
|
|
|
5987
5987
|
}, vo = {
|
|
5988
5988
|
"smp-tree": "_smp-tree_19u9h_1"
|
|
5989
5989
|
}, xo = ({ fun: t, onOptionsRequest: e, onClick: r }) => {
|
|
5990
|
-
const [n, s] =
|
|
5990
|
+
const [n, s] = z(void 0);
|
|
5991
5991
|
re(() => {
|
|
5992
5992
|
!n && e && t && e(t, void 0).then((a) => s(Ge(a))).catch((a) => {
|
|
5993
5993
|
console.error("Errore nel caricamento delle opzioni per il Tree", a);
|
|
@@ -6112,7 +6112,7 @@ const Ce = {
|
|
|
6112
6112
|
h?.(E(O, j, m));
|
|
6113
6113
|
}
|
|
6114
6114
|
};
|
|
6115
|
-
return /* @__PURE__ */ p.jsx(
|
|
6115
|
+
return /* @__PURE__ */ p.jsx(Ht, { ...N });
|
|
6116
6116
|
}
|
|
6117
6117
|
case te.DATE: {
|
|
6118
6118
|
const N = {
|
|
@@ -6283,7 +6283,7 @@ const Ce = {
|
|
|
6283
6283
|
onEnter: r,
|
|
6284
6284
|
onContextMenu: n
|
|
6285
6285
|
}) => {
|
|
6286
|
-
const [s, o] =
|
|
6286
|
+
const [s, o] = z(), a = oe(
|
|
6287
6287
|
(i) => {
|
|
6288
6288
|
if (!i.rows?.length || !i.columns?.length)
|
|
6289
6289
|
return {};
|
|
@@ -6350,8 +6350,8 @@ const Ce = {
|
|
|
6350
6350
|
onClick: v
|
|
6351
6351
|
}) => {
|
|
6352
6352
|
const T = "N/A", y = e?.columns || [], R = e?.rows || [], O = R.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 = {
|
|
6353
|
-
dash: (
|
|
6354
|
-
const ee = m(
|
|
6353
|
+
dash: (H = "1") => {
|
|
6354
|
+
const ee = m(H), B = ee, J = S(ee, k), ce = S(ee, C), he = S(ee, E), le = S(ee, A);
|
|
6355
6355
|
return {
|
|
6356
6356
|
container: B,
|
|
6357
6357
|
descr: J,
|
|
@@ -6362,29 +6362,29 @@ const Ce = {
|
|
|
6362
6362
|
},
|
|
6363
6363
|
dashList: `smp-dash-list ${de(o) ? "smp-dash-list-fill-space" : ""}
|
|
6364
6364
|
${de(i) ? "smp-dash-list-horizontal" : ""}`
|
|
6365
|
-
}, { format: j } = Re(), m = (
|
|
6365
|
+
}, { format: j } = Re(), m = (H) => `${W}-${H}`, S = (H, ee) => `${H}__${ee}`, L = (H) => `${F}-${H}`, D = (H) => {
|
|
6366
6366
|
const ee = /R(\d{1,3})G(\d{1,3})B(\d{1,3})/;
|
|
6367
|
-
if (ee.test(
|
|
6368
|
-
const J =
|
|
6367
|
+
if (ee.test(H)) {
|
|
6368
|
+
const J = H.match(ee) || [];
|
|
6369
6369
|
if (J?.length > 3)
|
|
6370
6370
|
return "rgb(" + J[1] + "," + J[2] + "," + J[3] + ")";
|
|
6371
6371
|
}
|
|
6372
|
-
return
|
|
6373
|
-
}, $ = (
|
|
6374
|
-
if (!u) return
|
|
6372
|
+
return H;
|
|
6373
|
+
}, $ = (H) => {
|
|
6374
|
+
if (!u) return H;
|
|
6375
6375
|
const [ee, B] = P(u).map(
|
|
6376
6376
|
(we) => parseInt(we || "0")
|
|
6377
|
-
), J = "0,0" + (B ? "." + "0".repeat(B) : ""), ce = j(
|
|
6377
|
+
), J = "0,0" + (B ? "." + "0".repeat(B) : ""), ce = j(H, J, "it");
|
|
6378
6378
|
if (!ee) return ce;
|
|
6379
6379
|
const [he, le] = ce.split(",");
|
|
6380
6380
|
return he + (le ? `,${le}` : "");
|
|
6381
|
-
}, P = (
|
|
6381
|
+
}, P = (H) => H.includes(";") ? H.split(";") : [H], G = (H) => {
|
|
6382
6382
|
const ee = (J) => {
|
|
6383
6383
|
if (J)
|
|
6384
|
-
return
|
|
6384
|
+
return H?.cells[J]?.obj.k;
|
|
6385
6385
|
}, B = (J) => {
|
|
6386
6386
|
if (!(y.length <= J))
|
|
6387
|
-
return
|
|
6387
|
+
return H?.cells[y[J].name]?.obj?.k;
|
|
6388
6388
|
};
|
|
6389
6389
|
return {
|
|
6390
6390
|
descr: r || ee(n) || B(2) || "",
|
|
@@ -6392,15 +6392,15 @@ const Ce = {
|
|
|
6392
6392
|
um: f || ee(g) || B(1) || "",
|
|
6393
6393
|
value: b || ee(x) || B(0) || ""
|
|
6394
6394
|
};
|
|
6395
|
-
}, q = (
|
|
6396
|
-
v?.(
|
|
6397
|
-
}, Y = (
|
|
6398
|
-
(
|
|
6399
|
-
}, K = ((
|
|
6400
|
-
const ee = N.dash(
|
|
6395
|
+
}, q = (H) => {
|
|
6396
|
+
v?.(H);
|
|
6397
|
+
}, Y = (H, ee) => {
|
|
6398
|
+
(H.key === "Enter" || H.key === " ") && (H.preventDefault(), H.stopPropagation(), q(ee));
|
|
6399
|
+
}, K = ((H) => {
|
|
6400
|
+
const ee = N.dash(H);
|
|
6401
6401
|
return {
|
|
6402
6402
|
className: ee,
|
|
6403
|
-
descr: (B) => /* @__PURE__ */ p.jsx("div", { className: ee.descr, children: B }, `${
|
|
6403
|
+
descr: (B) => /* @__PURE__ */ p.jsx("div", { className: ee.descr, children: B }, `${H}-${k}`),
|
|
6404
6404
|
icon: (B) => /* @__PURE__ */ p.jsx("div", { className: ee.icon, children: /* @__PURE__ */ p.jsx(
|
|
6405
6405
|
ie,
|
|
6406
6406
|
{
|
|
@@ -6409,12 +6409,12 @@ const Ce = {
|
|
|
6409
6409
|
icon: B,
|
|
6410
6410
|
width: V
|
|
6411
6411
|
}
|
|
6412
|
-
) }, `${
|
|
6413
|
-
um: (B) => /* @__PURE__ */ p.jsx("div", { className: ee.um, children: B }, `${
|
|
6414
|
-
value: (B) => /* @__PURE__ */ p.jsx("div", { className: ee.value, children: B }, `${
|
|
6412
|
+
) }, `${H}-${C}`),
|
|
6413
|
+
um: (B) => /* @__PURE__ */ p.jsx("div", { className: ee.um, children: B }, `${H}-${E}`),
|
|
6414
|
+
value: (B) => /* @__PURE__ */ p.jsx("div", { className: ee.value, children: B }, `${H}-${A}`)
|
|
6415
6415
|
};
|
|
6416
|
-
})(_), ae = (
|
|
6417
|
-
const { descr: ee, icon: B, um: J, value: ce } = G(
|
|
6416
|
+
})(_), ae = (H) => {
|
|
6417
|
+
const { descr: ee, icon: B, um: J, value: ce } = G(H), he = {
|
|
6418
6418
|
[L(k)]: D(s),
|
|
6419
6419
|
[L(E)]: D(h),
|
|
6420
6420
|
[L(A)]: D(w)
|
|
@@ -6438,17 +6438,17 @@ const Ce = {
|
|
|
6438
6438
|
role: "button",
|
|
6439
6439
|
style: he,
|
|
6440
6440
|
tabIndex: 0,
|
|
6441
|
-
onClick: () => q(
|
|
6442
|
-
onKeyDown: (Tt) => Y(Tt,
|
|
6441
|
+
onClick: () => q(H),
|
|
6442
|
+
onKeyDown: (Tt) => Y(Tt, H),
|
|
6443
6443
|
children: le
|
|
6444
6444
|
},
|
|
6445
|
-
|
|
6445
|
+
H.rowId
|
|
6446
6446
|
);
|
|
6447
6447
|
}, M = {
|
|
6448
6448
|
[U]: String(t),
|
|
6449
6449
|
[X]: I
|
|
6450
6450
|
};
|
|
6451
|
-
return /* @__PURE__ */ p.jsx("div", { className: N.dashList, style: M, children: O ? R.map((
|
|
6451
|
+
return /* @__PURE__ */ p.jsx("div", { className: N.dashList, style: M, children: O ? R.map((H) => ae(H)) : T });
|
|
6452
6452
|
}, hn = {
|
|
6453
6453
|
"smp-table": "_smp-table_v715o_1"
|
|
6454
6454
|
};
|
|
@@ -6512,7 +6512,7 @@ const Co = ({
|
|
|
6512
6512
|
containerRef: r,
|
|
6513
6513
|
sizingMode: n
|
|
6514
6514
|
}) => {
|
|
6515
|
-
const [s, o] =
|
|
6515
|
+
const [s, o] = z({}), a = 3, i = 7;
|
|
6516
6516
|
return re(() => {
|
|
6517
6517
|
if (!(!t || t.length === 0)) {
|
|
6518
6518
|
if (n === "fixed") {
|
|
@@ -6561,7 +6561,7 @@ function To(t, e) {
|
|
|
6561
6561
|
function _o(t) {
|
|
6562
6562
|
return t.obj && sn(t.obj) ? "number" : t.obj && Yt(t.obj) ? "date" : "string";
|
|
6563
6563
|
}
|
|
6564
|
-
function
|
|
6564
|
+
function zr(t, e) {
|
|
6565
6565
|
return t ? typeof t == "object" && "logic" in t && "filters" in t ? t : typeof t == "string" ? jo(t, e) : { logic: "and", filters: [] } : { logic: "and", filters: [] };
|
|
6566
6566
|
}
|
|
6567
6567
|
function jo(t, e) {
|
|
@@ -6777,7 +6777,7 @@ function gn(t, e, r) {
|
|
|
6777
6777
|
};
|
|
6778
6778
|
}
|
|
6779
6779
|
function Mo(t) {
|
|
6780
|
-
const [e, r] =
|
|
6780
|
+
const [e, r] = z(null), [n, s] = z("asc");
|
|
6781
6781
|
return {
|
|
6782
6782
|
sortedRows: Qe(() => e ? gn({ ...t, rows: t.rows }, e, n).rows : t.rows, [t, e, n]),
|
|
6783
6783
|
sortBy: e,
|
|
@@ -6979,7 +6979,7 @@ const Ye = {
|
|
|
6979
6979
|
};
|
|
6980
6980
|
return /* @__PURE__ */ p.jsxs("div", { className: u.row, children: [
|
|
6981
6981
|
!s && /* @__PURE__ */ p.jsx(
|
|
6982
|
-
|
|
6982
|
+
Ht,
|
|
6983
6983
|
{
|
|
6984
6984
|
bindValue: t.field.obj.k,
|
|
6985
6985
|
options: n.map((f) => ({
|
|
@@ -6994,7 +6994,7 @@ const Ye = {
|
|
|
6994
6994
|
}
|
|
6995
6995
|
),
|
|
6996
6996
|
/* @__PURE__ */ p.jsx(
|
|
6997
|
-
|
|
6997
|
+
Ht,
|
|
6998
6998
|
{
|
|
6999
6999
|
bindValue: t.operator?.obj?.k,
|
|
7000
7000
|
options: a[t.columnsType],
|
|
@@ -7183,7 +7183,7 @@ const Ye = {
|
|
|
7183
7183
|
]
|
|
7184
7184
|
}
|
|
7185
7185
|
);
|
|
7186
|
-
},
|
|
7186
|
+
}, Hr = ({
|
|
7187
7187
|
filters: t,
|
|
7188
7188
|
onChange: e,
|
|
7189
7189
|
fieldOptions: r,
|
|
@@ -7335,7 +7335,7 @@ const Ye = {
|
|
|
7335
7335
|
)
|
|
7336
7336
|
] }),
|
|
7337
7337
|
o && /* @__PURE__ */ p.jsx(Ne, { children: /* @__PURE__ */ p.jsx(
|
|
7338
|
-
|
|
7338
|
+
Hr,
|
|
7339
7339
|
{
|
|
7340
7340
|
filters: i,
|
|
7341
7341
|
fieldOptions: l,
|
|
@@ -7420,7 +7420,7 @@ const Ye = {
|
|
|
7420
7420
|
)
|
|
7421
7421
|
] }),
|
|
7422
7422
|
a === j.name && /* @__PURE__ */ p.jsx(Ne, { children: /* @__PURE__ */ p.jsx(
|
|
7423
|
-
|
|
7423
|
+
Hr,
|
|
7424
7424
|
{
|
|
7425
7425
|
filters: i,
|
|
7426
7426
|
fieldOptions: l.filter(
|
|
@@ -7468,10 +7468,10 @@ const Ye = {
|
|
|
7468
7468
|
onMultiSelectionChange: d,
|
|
7469
7469
|
onContextMenu: u
|
|
7470
7470
|
}) => {
|
|
7471
|
-
const [f, g] =
|
|
7471
|
+
const [f, g] = z(() => t ? {
|
|
7472
7472
|
columns: l ? Wo(t, Bo(l)) : t.columns,
|
|
7473
7473
|
rows: t.rows ?? []
|
|
7474
|
-
} : { columns: [], rows: [] }), [h, b] =
|
|
7474
|
+
} : { columns: [], rows: [] }), [h, b] = z(n || []), [x, w] = z(/* @__PURE__ */ new Set()), [_, v] = z(!1), [T, y] = z(/* @__PURE__ */ new Set()), [R, O] = z(null), F = Qe(() => To(t?.columns || []), [t?.columns]), [W, k] = z(() => zr(a, F)), C = ue(null), [E, A] = Co({
|
|
7475
7475
|
columns: f?.columns ?? [],
|
|
7476
7476
|
rows: f?.rows ?? [],
|
|
7477
7477
|
containerRef: C,
|
|
@@ -7531,7 +7531,7 @@ const Ye = {
|
|
|
7531
7531
|
const $ = oe((B) => {
|
|
7532
7532
|
k(B);
|
|
7533
7533
|
}, []), P = oe(() => {
|
|
7534
|
-
k(
|
|
7534
|
+
k(zr(a, F));
|
|
7535
7535
|
}, [a, F]), G = oe(() => {
|
|
7536
7536
|
v((B) => !B);
|
|
7537
7537
|
}, []), q = oe((B) => {
|
|
@@ -7563,7 +7563,7 @@ const Ye = {
|
|
|
7563
7563
|
const ce = new Set(J);
|
|
7564
7564
|
return B.every((le) => ce.has(le)) ? B.forEach((le) => ce.delete(le)) : B.forEach((le) => ce.add(le)), ce;
|
|
7565
7565
|
});
|
|
7566
|
-
},
|
|
7566
|
+
}, H = () => {
|
|
7567
7567
|
const B = f.rows.map((J, ce) => ce);
|
|
7568
7568
|
M(B);
|
|
7569
7569
|
}, ee = {
|
|
@@ -7601,7 +7601,7 @@ const Ye = {
|
|
|
7601
7601
|
onGroupDrop: Q,
|
|
7602
7602
|
onGroupDragOver: K,
|
|
7603
7603
|
onMouseDown: ae,
|
|
7604
|
-
onToggleAllRows:
|
|
7604
|
+
onToggleAllRows: H,
|
|
7605
7605
|
onSort: m,
|
|
7606
7606
|
onDragStart: I,
|
|
7607
7607
|
onDragOver: V,
|
|
@@ -7660,7 +7660,7 @@ const Ye = {
|
|
|
7660
7660
|
loadOptions: l,
|
|
7661
7661
|
onContextMenu: c
|
|
7662
7662
|
}) => {
|
|
7663
|
-
const [d, u] =
|
|
7663
|
+
const [d, u] = z(), [f, g] = z(r ?? !0), h = ue(null), b = s.trim() ? s : "100vh", x = oe(
|
|
7664
7664
|
(T) => {
|
|
7665
7665
|
if (!T?.rows?.length || !T?.columns?.length)
|
|
7666
7666
|
return {};
|
|
@@ -7795,7 +7795,7 @@ const Ye = {
|
|
|
7795
7795
|
onClick: c,
|
|
7796
7796
|
onOptionsRequest: d
|
|
7797
7797
|
}) => {
|
|
7798
|
-
const [u, f] =
|
|
7798
|
+
const [u, f] = z();
|
|
7799
7799
|
re(() => {
|
|
7800
7800
|
f(() => {
|
|
7801
7801
|
if (!t)
|
|
@@ -7879,7 +7879,7 @@ const Ye = {
|
|
|
7879
7879
|
[o.name]: a
|
|
7880
7880
|
};
|
|
7881
7881
|
}, {});
|
|
7882
|
-
},
|
|
7882
|
+
}, zo = {
|
|
7883
7883
|
"smp-form": "_smp-form_9ox03_1"
|
|
7884
7884
|
}, ra = ({
|
|
7885
7885
|
data: t,
|
|
@@ -7897,7 +7897,7 @@ const Ye = {
|
|
|
7897
7897
|
onContextMenu: f,
|
|
7898
7898
|
onButtonClick: g
|
|
7899
7899
|
}) => {
|
|
7900
|
-
const h = ue(!1), b = ue([]), [x, w] =
|
|
7900
|
+
const h = ue(!1), b = ue([]), [x, w] = z(
|
|
7901
7901
|
() => Jr(t, o, r)
|
|
7902
7902
|
), { translate: _ } = Re(), v = ke(), T = ue(null);
|
|
7903
7903
|
re(() => {
|
|
@@ -8030,7 +8030,7 @@ const Ye = {
|
|
|
8030
8030
|
)
|
|
8031
8031
|
);
|
|
8032
8032
|
const k = {
|
|
8033
|
-
smpForm: `${
|
|
8033
|
+
smpForm: `${zo["smp-form"]}`
|
|
8034
8034
|
};
|
|
8035
8035
|
return x && // eslint-disable-next-line jsx-a11y/no-redundant-roles
|
|
8036
8036
|
/* @__PURE__ */ p.jsxs(
|
|
@@ -8091,7 +8091,7 @@ export {
|
|
|
8091
8091
|
to as ButtonList,
|
|
8092
8092
|
rr as Checkbox,
|
|
8093
8093
|
dn as Chips,
|
|
8094
|
-
|
|
8094
|
+
Ht as Combobox,
|
|
8095
8095
|
Qo as DashList,
|
|
8096
8096
|
Zo as DataTableComponent,
|
|
8097
8097
|
un as DatePicker,
|