@sme.up/ketchup2 2.0.0-SNAPSHOT-20250617123752 → 2.0.0-SNAPSHOT-20250617130134
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.es.js
CHANGED
|
@@ -13,10 +13,10 @@ var Fe = { exports: {} }, Pe = {};
|
|
|
13
13
|
* This source code is licensed under the MIT license found in the
|
|
14
14
|
* LICENSE file in the root directory of this source tree.
|
|
15
15
|
*/
|
|
16
|
-
var
|
|
16
|
+
var jt;
|
|
17
17
|
function Lr() {
|
|
18
|
-
if (
|
|
19
|
-
|
|
18
|
+
if (jt) return Pe;
|
|
19
|
+
jt = 1;
|
|
20
20
|
var r = Symbol.for("react.transitional.element"), e = Symbol.for("react.fragment");
|
|
21
21
|
function t(n, s, a) {
|
|
22
22
|
var i = null;
|
|
@@ -45,9 +45,9 @@ var Ae = {};
|
|
|
45
45
|
* This source code is licensed under the MIT license found in the
|
|
46
46
|
* LICENSE file in the root directory of this source tree.
|
|
47
47
|
*/
|
|
48
|
-
var
|
|
48
|
+
var Dt;
|
|
49
49
|
function _r() {
|
|
50
|
-
return
|
|
50
|
+
return Dt || (Dt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
51
51
|
function r(h) {
|
|
52
52
|
if (h == null) return null;
|
|
53
53
|
if (typeof h == "function")
|
|
@@ -64,7 +64,7 @@ function _r() {
|
|
|
64
64
|
return "Suspense";
|
|
65
65
|
case L:
|
|
66
66
|
return "SuspenseList";
|
|
67
|
-
case
|
|
67
|
+
case j:
|
|
68
68
|
return "Activity";
|
|
69
69
|
}
|
|
70
70
|
if (typeof h == "object")
|
|
@@ -123,7 +123,7 @@ function _r() {
|
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
function s() {
|
|
126
|
-
var h =
|
|
126
|
+
var h = D.A;
|
|
127
127
|
return h === null ? null : h.getOwner();
|
|
128
128
|
}
|
|
129
129
|
function a() {
|
|
@@ -239,7 +239,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
239
239
|
function l(h) {
|
|
240
240
|
typeof h == "object" && h !== null && h.$$typeof === d && h._store && (h._store.validated = 1);
|
|
241
241
|
}
|
|
242
|
-
var p = hr, d = Symbol.for("react.transitional.element"), m = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), x = Symbol.for("react.strict_mode"), w = Symbol.for("react.profiler"), E = Symbol.for("react.consumer"), O = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), L = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), Y = Symbol.for("react.lazy"),
|
|
242
|
+
var p = hr, d = Symbol.for("react.transitional.element"), m = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), x = Symbol.for("react.strict_mode"), w = Symbol.for("react.profiler"), E = Symbol.for("react.consumer"), O = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), L = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), Y = Symbol.for("react.lazy"), j = Symbol.for("react.activity"), P = Symbol.for("react.client.reference"), D = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, k = Object.prototype.hasOwnProperty, U = Array.isArray, H = console.createTask ? console.createTask : function() {
|
|
243
243
|
return null;
|
|
244
244
|
};
|
|
245
245
|
p = {
|
|
@@ -252,7 +252,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
252
252
|
a
|
|
253
253
|
)(), W = H(n(a)), _ = {};
|
|
254
254
|
Ae.Fragment = g, Ae.jsx = function(h, y, T, $, R) {
|
|
255
|
-
var A = 1e4 >
|
|
255
|
+
var A = 1e4 > D.recentlyCreatedOwnerStacks++;
|
|
256
256
|
return f(
|
|
257
257
|
h,
|
|
258
258
|
y,
|
|
@@ -264,7 +264,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
264
264
|
A ? H(n(h)) : W
|
|
265
265
|
);
|
|
266
266
|
}, Ae.jsxs = function(h, y, T, $, R) {
|
|
267
|
-
var A = 1e4 >
|
|
267
|
+
var A = 1e4 > D.recentlyCreatedOwnerStacks++;
|
|
268
268
|
return f(
|
|
269
269
|
h,
|
|
270
270
|
y,
|
|
@@ -771,8 +771,8 @@ var Br = Hr(), Re = /* @__PURE__ */ new Map(), gr = function(e) {
|
|
|
771
771
|
});
|
|
772
772
|
}
|
|
773
773
|
l.removeAttribute("xmlns:a");
|
|
774
|
-
for (var
|
|
775
|
-
k =
|
|
774
|
+
for (var j = l.querySelectorAll("script"), P = [], D, k, U = 0, H = j.length; U < H; U++)
|
|
775
|
+
k = j[U].getAttribute("type"), (!k || k === "application/ecmascript" || k === "application/javascript" || k === "text/javascript") && (D = j[U].innerText || j[U].textContent, D && P.push(D), l.removeChild(j[U]));
|
|
776
776
|
if (P.length > 0 && (t === "always" || t === "once" && !_t[u])) {
|
|
777
777
|
for (var z = 0, K = P.length; z < K; z++)
|
|
778
778
|
new Function(P[z])(window);
|
|
@@ -924,7 +924,7 @@ function en() {
|
|
|
924
924
|
}
|
|
925
925
|
}
|
|
926
926
|
}
|
|
927
|
-
var b = u, L = c, C = o, Y = i,
|
|
927
|
+
var b = u, L = c, C = o, Y = i, j = e, P = f, D = n, k = m, U = d, H = t, z = a, K = s, J = l, W = !1;
|
|
928
928
|
function _(I) {
|
|
929
929
|
return W || (W = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), h(I) || S(I) === u;
|
|
930
930
|
}
|
|
@@ -964,7 +964,7 @@ function en() {
|
|
|
964
964
|
function se(I) {
|
|
965
965
|
return S(I) === l;
|
|
966
966
|
}
|
|
967
|
-
ee.AsyncMode = b, ee.ConcurrentMode = L, ee.ContextConsumer = C, ee.ContextProvider = Y, ee.Element =
|
|
967
|
+
ee.AsyncMode = b, ee.ConcurrentMode = L, ee.ContextConsumer = C, ee.ContextProvider = Y, ee.Element = j, ee.ForwardRef = P, ee.Fragment = D, ee.Lazy = k, ee.Memo = U, ee.Portal = H, ee.Profiler = z, ee.StrictMode = K, ee.Suspense = J, ee.isAsyncMode = _, ee.isConcurrentMode = h, ee.isContextConsumer = y, ee.isContextProvider = T, ee.isElement = $, ee.isForwardRef = R, ee.isFragment = A, ee.isLazy = M, ee.isMemo = F, ee.isPortal = N, ee.isProfiler = q, ee.isStrictMode = B, ee.isSuspense = se, ee.isValidElementType = O, ee.typeOf = S;
|
|
968
968
|
}()), ee;
|
|
969
969
|
}
|
|
970
970
|
var Mt;
|
|
@@ -1123,7 +1123,7 @@ function nn() {
|
|
|
1123
1123
|
node: P(),
|
|
1124
1124
|
objectOf: Y,
|
|
1125
1125
|
oneOf: C,
|
|
1126
|
-
oneOfType:
|
|
1126
|
+
oneOfType: j,
|
|
1127
1127
|
shape: k,
|
|
1128
1128
|
exact: U
|
|
1129
1129
|
};
|
|
@@ -1258,7 +1258,7 @@ function nn() {
|
|
|
1258
1258
|
}
|
|
1259
1259
|
return x(y);
|
|
1260
1260
|
}
|
|
1261
|
-
function
|
|
1261
|
+
function j(h) {
|
|
1262
1262
|
if (!Array.isArray(h))
|
|
1263
1263
|
return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), i;
|
|
1264
1264
|
for (var y = 0; y < h.length; y++) {
|
|
@@ -1286,7 +1286,7 @@ function nn() {
|
|
|
1286
1286
|
}
|
|
1287
1287
|
return x(h);
|
|
1288
1288
|
}
|
|
1289
|
-
function
|
|
1289
|
+
function D(h, y, T, $, R) {
|
|
1290
1290
|
return new g(
|
|
1291
1291
|
(h || "React class") + ": " + y + " type `" + T + "." + $ + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + R + "`."
|
|
1292
1292
|
);
|
|
@@ -1299,7 +1299,7 @@ function nn() {
|
|
|
1299
1299
|
for (var q in h) {
|
|
1300
1300
|
var B = h[q];
|
|
1301
1301
|
if (typeof B != "function")
|
|
1302
|
-
return
|
|
1302
|
+
return D(R, A, M, q, J(B));
|
|
1303
1303
|
var se = B(F, q, R, A, M + "." + q, t);
|
|
1304
1304
|
if (se)
|
|
1305
1305
|
return se;
|
|
@@ -1317,7 +1317,7 @@ function nn() {
|
|
|
1317
1317
|
for (var B in q) {
|
|
1318
1318
|
var se = h[B];
|
|
1319
1319
|
if (n(h, B) && typeof se != "function")
|
|
1320
|
-
return
|
|
1320
|
+
return D(R, A, M, B, J(se));
|
|
1321
1321
|
if (!se)
|
|
1322
1322
|
return new g(
|
|
1323
1323
|
"Invalid " + A + " `" + M + "` key `" + B + "` supplied to `" + R + "`.\nBad object: " + JSON.stringify(T[$], null, " ") + `
|
|
@@ -1472,7 +1472,7 @@ var ie = /* @__PURE__ */ an(), on = function(e) {
|
|
|
1472
1472
|
if (e[s] !== t[s])
|
|
1473
1473
|
return !0;
|
|
1474
1474
|
return !1;
|
|
1475
|
-
}, cn = ["afterInjection", "beforeInjection", "desc", "evalScripts", "fallback", "httpRequestWithCredentials", "loading", "renumerateIRIElements", "src", "title", "useRequestCache", "wrapper"], He = "http://www.w3.org/2000/svg", Gt = "http://www.w3.org/1999/xlink",
|
|
1475
|
+
}, cn = ["afterInjection", "beforeInjection", "desc", "evalScripts", "fallback", "httpRequestWithCredentials", "loading", "renumerateIRIElements", "src", "title", "useRequestCache", "wrapper"], He = "http://www.w3.org/2000/svg", Gt = "http://www.w3.org/1999/xlink", je = /* @__PURE__ */ function(r) {
|
|
1476
1476
|
function e() {
|
|
1477
1477
|
for (var n, s = arguments.length, a = new Array(s), i = 0; i < s; i++)
|
|
1478
1478
|
a[i] = arguments[i];
|
|
@@ -1515,22 +1515,22 @@ var ie = /* @__PURE__ */ an(), on = function(e) {
|
|
|
1515
1515
|
}, function() {
|
|
1516
1516
|
try {
|
|
1517
1517
|
g(Y);
|
|
1518
|
-
} catch (
|
|
1519
|
-
O(
|
|
1518
|
+
} catch (j) {
|
|
1519
|
+
O(j);
|
|
1520
1520
|
}
|
|
1521
1521
|
});
|
|
1522
1522
|
}, b = function(C) {
|
|
1523
1523
|
if (C.setAttribute("role", "img"), i) {
|
|
1524
1524
|
var Y = C.querySelector(":scope > desc");
|
|
1525
1525
|
Y && C.removeChild(Y);
|
|
1526
|
-
var
|
|
1527
|
-
|
|
1526
|
+
var j = document.createElement("desc");
|
|
1527
|
+
j.innerHTML = i, C.prepend(j);
|
|
1528
1528
|
}
|
|
1529
1529
|
if (l) {
|
|
1530
1530
|
var P = C.querySelector(":scope > title");
|
|
1531
1531
|
P && C.removeChild(P);
|
|
1532
|
-
var
|
|
1533
|
-
|
|
1532
|
+
var D = document.createElement("title");
|
|
1533
|
+
D.innerHTML = l, C.prepend(D);
|
|
1534
1534
|
}
|
|
1535
1535
|
try {
|
|
1536
1536
|
m(C);
|
|
@@ -1577,7 +1577,7 @@ var ie = /* @__PURE__ */ an(), on = function(e) {
|
|
|
1577
1577
|
} : {}), this.state.isLoading && i && /* @__PURE__ */ Me.createElement(i, null), this.state.hasError && a && /* @__PURE__ */ Me.createElement(a, null));
|
|
1578
1578
|
}, e;
|
|
1579
1579
|
}(Me.Component);
|
|
1580
|
-
|
|
1580
|
+
je.defaultProps = {
|
|
1581
1581
|
afterInjection: function() {
|
|
1582
1582
|
},
|
|
1583
1583
|
beforeInjection: function() {
|
|
@@ -1594,7 +1594,7 @@ De.defaultProps = {
|
|
|
1594
1594
|
useRequestCache: !0,
|
|
1595
1595
|
wrapper: "div"
|
|
1596
1596
|
};
|
|
1597
|
-
|
|
1597
|
+
je.propTypes = {
|
|
1598
1598
|
afterInjection: ie.func,
|
|
1599
1599
|
beforeInjection: ie.func,
|
|
1600
1600
|
desc: ie.string,
|
|
@@ -1613,7 +1613,7 @@ let gt = {
|
|
|
1613
1613
|
assets: "/"
|
|
1614
1614
|
// Default for storybook isolation development
|
|
1615
1615
|
};
|
|
1616
|
-
const
|
|
1616
|
+
const Rs = (r) => {
|
|
1617
1617
|
gt = { ...gt, ...r };
|
|
1618
1618
|
}, Kt = (r) => `${gt.assets}/${r}`.replace(/\/+/g, "/"), ue = hr.memo(
|
|
1619
1619
|
({
|
|
@@ -1642,10 +1642,10 @@ const Ts = (r) => {
|
|
|
1642
1642
|
!a && c && (L.key === "Enter" || L.key === " ") && (L.preventDefault(), S());
|
|
1643
1643
|
};
|
|
1644
1644
|
return /* @__PURE__ */ v.jsx(v.Fragment, { children: x ? /* @__PURE__ */ v.jsx(
|
|
1645
|
-
|
|
1645
|
+
je,
|
|
1646
1646
|
{
|
|
1647
1647
|
src: r,
|
|
1648
|
-
fallback: () => /* @__PURE__ */ v.jsx(
|
|
1648
|
+
fallback: () => /* @__PURE__ */ v.jsx(je, { src: E, wrapper: "svg" }),
|
|
1649
1649
|
width: e || "1rem",
|
|
1650
1650
|
height: t || "1rem",
|
|
1651
1651
|
wrapper: "svg",
|
|
@@ -1677,10 +1677,10 @@ const Ts = (r) => {
|
|
|
1677
1677
|
}
|
|
1678
1678
|
)
|
|
1679
1679
|
) : /* @__PURE__ */ v.jsx(
|
|
1680
|
-
|
|
1680
|
+
je,
|
|
1681
1681
|
{
|
|
1682
1682
|
src: w,
|
|
1683
|
-
fallback: () => /* @__PURE__ */ v.jsx(
|
|
1683
|
+
fallback: () => /* @__PURE__ */ v.jsx(je, { src: E, wrapper: "svg" }),
|
|
1684
1684
|
width: e || "1rem",
|
|
1685
1685
|
height: t || "1rem",
|
|
1686
1686
|
wrapper: "svg",
|
|
@@ -1722,17 +1722,17 @@ const Ts = (r) => {
|
|
|
1722
1722
|
_dataComponent: C = "textfield",
|
|
1723
1723
|
width: Y
|
|
1724
1724
|
}) => {
|
|
1725
|
-
const
|
|
1725
|
+
const j = bt(), P = `${j}-helper`, D = S ? "danger" : c, k = S || c == "danger" ? "error" : o, U = O || !!S, H = (J) => {
|
|
1726
1726
|
s == null || s(J.target.value);
|
|
1727
1727
|
}, z = {
|
|
1728
1728
|
wrapper: `smp-textfield-wrapper ${L ? "smp-textfield-fullWidth" : ""}`,
|
|
1729
|
-
container: `smp-textfield ${r ? "smp-textfield-disabled" : ""} ${a ? "smp-textfield-placeholder" : ""} ${u ? `smp-textfield-${u}` : ""} ${
|
|
1729
|
+
container: `smp-textfield ${r ? "smp-textfield-disabled" : ""} ${a ? "smp-textfield-placeholder" : ""} ${u ? `smp-textfield-${u}` : ""} ${D ? `smp-textfield-${D}` : ""} ${b ? `smp-textfield-${b}` : ""} ${i ? "" : "smp-textfield-readOnly"}`,
|
|
1730
1730
|
input: "smp-textfield-input "
|
|
1731
1731
|
};
|
|
1732
1732
|
f && (f != "notSelectable" || i) && (z.container += `smp-textfield-variant-${f}`);
|
|
1733
1733
|
const K = Y ? { "--smp-textField-width-base": Y } : void 0;
|
|
1734
1734
|
return /* @__PURE__ */ v.jsxs("div", { className: z.wrapper, "data-component": C, children: [
|
|
1735
|
-
E && /* @__PURE__ */ v.jsx($e, { label: E, disabled: r, htmlFor:
|
|
1735
|
+
E && /* @__PURE__ */ v.jsx($e, { label: E, disabled: r, htmlFor: j }),
|
|
1736
1736
|
/* @__PURE__ */ v.jsxs(
|
|
1737
1737
|
"div",
|
|
1738
1738
|
{
|
|
@@ -1744,7 +1744,7 @@ const Ts = (r) => {
|
|
|
1744
1744
|
/* @__PURE__ */ v.jsx(
|
|
1745
1745
|
"input",
|
|
1746
1746
|
{
|
|
1747
|
-
id:
|
|
1747
|
+
id: j,
|
|
1748
1748
|
type: x,
|
|
1749
1749
|
value: e,
|
|
1750
1750
|
placeholder: a,
|
|
@@ -1764,7 +1764,7 @@ const Ts = (r) => {
|
|
|
1764
1764
|
{
|
|
1765
1765
|
icon: k,
|
|
1766
1766
|
disabled: r,
|
|
1767
|
-
state:
|
|
1767
|
+
state: D,
|
|
1768
1768
|
onClick: p,
|
|
1769
1769
|
rotated: l,
|
|
1770
1770
|
isInteractable: i,
|
|
@@ -1779,7 +1779,7 @@ const Ts = (r) => {
|
|
|
1779
1779
|
{
|
|
1780
1780
|
helperText: S,
|
|
1781
1781
|
disabled: r,
|
|
1782
|
-
state:
|
|
1782
|
+
state: D,
|
|
1783
1783
|
id: P
|
|
1784
1784
|
}
|
|
1785
1785
|
)
|
|
@@ -1838,7 +1838,9 @@ function xr({
|
|
|
1838
1838
|
scrollToIndex: p
|
|
1839
1839
|
};
|
|
1840
1840
|
}
|
|
1841
|
-
const un =
|
|
1841
|
+
const un = {
|
|
1842
|
+
"smp-list": "_smp-list_l1sf5_1"
|
|
1843
|
+
}, fn = 10, Sr = ({
|
|
1842
1844
|
id: r,
|
|
1843
1845
|
options: e,
|
|
1844
1846
|
displayMode: t,
|
|
@@ -1855,10 +1857,10 @@ const un = 10, Sr = ({
|
|
|
1855
1857
|
var P;
|
|
1856
1858
|
const [f, l] = Z(""), p = 24, [d, m] = Z(
|
|
1857
1859
|
a !== null ? a : -1
|
|
1858
|
-
), g = s !== void 0 ? s : e.length >
|
|
1859
|
-
(
|
|
1860
|
-
) : e, w = (
|
|
1861
|
-
l(
|
|
1860
|
+
), g = s !== void 0 ? s : e.length > fn, x = f ? e.filter(
|
|
1861
|
+
(D) => D.label.toLowerCase().includes(f.toLowerCase())
|
|
1862
|
+
) : e, w = (D) => {
|
|
1863
|
+
l(D);
|
|
1862
1864
|
}, { virtualItems: E, containerProps: O, innerProps: S, scrollToIndex: b } = xr({
|
|
1863
1865
|
items: x,
|
|
1864
1866
|
itemHeight: p,
|
|
@@ -1870,19 +1872,19 @@ const un = 10, Sr = ({
|
|
|
1870
1872
|
}, [a]), oe(() => {
|
|
1871
1873
|
d >= 0 && d < x.length && b(d);
|
|
1872
1874
|
}, [d, x]);
|
|
1873
|
-
const L = (
|
|
1874
|
-
if (
|
|
1875
|
-
|
|
1875
|
+
const L = (D) => {
|
|
1876
|
+
if (D.key === "ArrowDown" || D.key === "ArrowUp") {
|
|
1877
|
+
D.preventDefault();
|
|
1876
1878
|
let k = d;
|
|
1877
|
-
|
|
1878
|
-
} else
|
|
1879
|
-
c && c(
|
|
1880
|
-
}, C = (
|
|
1881
|
-
L(
|
|
1882
|
-
}, Y = (
|
|
1883
|
-
L(
|
|
1884
|
-
},
|
|
1885
|
-
wrapper: "smp-list"
|
|
1879
|
+
D.key === "ArrowDown" ? k = d < x.length - 1 ? d + 1 : 0 : D.key === "ArrowUp" && (k = d > 0 ? d - 1 : x.length - 1), m(k);
|
|
1880
|
+
} else D.key === "Enter" ? d >= 0 && d < x.length && (u == null || u(x[d])) : D.key === "Escape" && (D.preventDefault(), D.stopPropagation());
|
|
1881
|
+
c && c(D);
|
|
1882
|
+
}, C = (D) => {
|
|
1883
|
+
L(D);
|
|
1884
|
+
}, Y = (D) => {
|
|
1885
|
+
L(D);
|
|
1886
|
+
}, j = {
|
|
1887
|
+
wrapper: `${un["smp-list"]}`,
|
|
1886
1888
|
container: "smp-list-container",
|
|
1887
1889
|
virtualScroll: "smp-list-virtualScroll",
|
|
1888
1890
|
listItem: "smp-list-listItem"
|
|
@@ -1892,7 +1894,7 @@ const un = 10, Sr = ({
|
|
|
1892
1894
|
{
|
|
1893
1895
|
id: r,
|
|
1894
1896
|
ref: n,
|
|
1895
|
-
className:
|
|
1897
|
+
className: j.wrapper,
|
|
1896
1898
|
"data-component": "list",
|
|
1897
1899
|
style: {
|
|
1898
1900
|
width: o
|
|
@@ -1911,25 +1913,25 @@ const un = 10, Sr = ({
|
|
|
1911
1913
|
"div",
|
|
1912
1914
|
{
|
|
1913
1915
|
...O,
|
|
1914
|
-
className:
|
|
1916
|
+
className: j.container,
|
|
1915
1917
|
tabIndex: 0,
|
|
1916
1918
|
role: "listbox",
|
|
1917
1919
|
"aria-label": "List",
|
|
1918
1920
|
onKeyDown: Y,
|
|
1919
1921
|
"aria-activedescendant": d >= 0 && d < x.length ? (P = x[d]) == null ? void 0 : P.id : void 0,
|
|
1920
|
-
children: /* @__PURE__ */ v.jsx("div", { ...S, className:
|
|
1921
|
-
const H = i.includes(
|
|
1922
|
+
children: /* @__PURE__ */ v.jsx("div", { ...S, className: j.virtualScroll, children: E.map(({ item: D, index: k, offsetTop: U }) => {
|
|
1923
|
+
const H = i.includes(D.id);
|
|
1922
1924
|
return (
|
|
1923
1925
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
1924
1926
|
/* @__PURE__ */ v.jsxs(
|
|
1925
1927
|
"li",
|
|
1926
1928
|
{
|
|
1927
1929
|
role: "option",
|
|
1928
|
-
id:
|
|
1930
|
+
id: D.id,
|
|
1929
1931
|
"aria-selected": d === k ? "true" : "false",
|
|
1930
1932
|
tabIndex: -1,
|
|
1931
|
-
className: `${
|
|
1932
|
-
"aria-label":
|
|
1933
|
+
className: `${j.listItem} ${d === k ? "selected-item" : ""}`,
|
|
1934
|
+
"aria-label": D.id + "-" + D.label,
|
|
1933
1935
|
style: {
|
|
1934
1936
|
height: `${p}px`,
|
|
1935
1937
|
lineHeight: `calc(${p}px - 2*2px)`,
|
|
@@ -1937,14 +1939,14 @@ const un = 10, Sr = ({
|
|
|
1937
1939
|
transform: `translateY(${U}px)`
|
|
1938
1940
|
},
|
|
1939
1941
|
onClick: () => {
|
|
1940
|
-
u == null || u(
|
|
1942
|
+
u == null || u(D), m(k);
|
|
1941
1943
|
},
|
|
1942
1944
|
children: [
|
|
1943
|
-
Xe(
|
|
1945
|
+
Xe(D.id, D.label, t),
|
|
1944
1946
|
H && /* @__PURE__ */ v.jsx(ue, { icon: "check", width: 16 })
|
|
1945
1947
|
]
|
|
1946
1948
|
},
|
|
1947
|
-
|
|
1949
|
+
D.id
|
|
1948
1950
|
)
|
|
1949
1951
|
);
|
|
1950
1952
|
}) })
|
|
@@ -1969,7 +1971,7 @@ const un = 10, Sr = ({
|
|
|
1969
1971
|
Xe(e, t, r)
|
|
1970
1972
|
);
|
|
1971
1973
|
}, [t, r]), /* @__PURE__ */ v.jsx(Ce, { ...n, bindValue: s });
|
|
1972
|
-
},
|
|
1974
|
+
}, dn = (r) => {
|
|
1973
1975
|
const e = ve(null);
|
|
1974
1976
|
return oe(() => () => {
|
|
1975
1977
|
e.current && clearTimeout(e.current);
|
|
@@ -1994,12 +1996,12 @@ const un = 10, Sr = ({
|
|
|
1994
1996
|
_multiActiveIndex: p,
|
|
1995
1997
|
...d
|
|
1996
1998
|
}) => {
|
|
1997
|
-
const [m, g] = Z(r), [x, w] = Z(e), [E, O] = Z(!1), [S, b] = Z(t || []), [L, C] = Z(0), [Y,
|
|
1999
|
+
const [m, g] = Z(r), [x, w] = Z(e), [E, O] = Z(!1), [S, b] = Z(t || []), [L, C] = Z(0), [Y, j] = Z([r]), { anchorRef: P, targetRef: D, anchorWidth: k } = St({
|
|
1998
2000
|
position: "bottom",
|
|
1999
2001
|
enabled: E
|
|
2000
2002
|
});
|
|
2001
|
-
Je(
|
|
2002
|
-
const U =
|
|
2003
|
+
Je(D, () => O(!1));
|
|
2004
|
+
const U = dn(400), H = (W) => {
|
|
2003
2005
|
W.length >= a ? u && l && U(async () => {
|
|
2004
2006
|
const _ = await l(u, W);
|
|
2005
2007
|
b(_), C(_.length > 0 ? 0 : -1), O(!0);
|
|
@@ -2007,7 +2009,7 @@ const un = 10, Sr = ({
|
|
|
2007
2009
|
}, z = (W) => {
|
|
2008
2010
|
c ? (g(""), w("")) : (g(W.id), w(W.label)), f == null || f(W.id, W.label);
|
|
2009
2011
|
const _ = S.findIndex((h) => h.id === W.id);
|
|
2010
|
-
C(_),
|
|
2012
|
+
C(_), j([W.id]), O(!1);
|
|
2011
2013
|
}, K = (W) => {
|
|
2012
2014
|
W.key === "Escape" && (O(!1), C(-1));
|
|
2013
2015
|
}, J = (W) => {
|
|
@@ -2047,7 +2049,7 @@ const un = 10, Sr = ({
|
|
|
2047
2049
|
options: S,
|
|
2048
2050
|
displayMode: s,
|
|
2049
2051
|
onClick: z,
|
|
2050
|
-
ref:
|
|
2052
|
+
ref: D,
|
|
2051
2053
|
selectedIndex: L,
|
|
2052
2054
|
activeIndex: p || Y,
|
|
2053
2055
|
width: k,
|
|
@@ -2066,7 +2068,7 @@ const un = 10, Sr = ({
|
|
|
2066
2068
|
primary: "onPrimary",
|
|
2067
2069
|
danger: "onDanger",
|
|
2068
2070
|
base: "base"
|
|
2069
|
-
})[r],
|
|
2071
|
+
})[r], De = ({
|
|
2070
2072
|
label: r,
|
|
2071
2073
|
onClick: e,
|
|
2072
2074
|
ariaLabel: t,
|
|
@@ -2111,7 +2113,7 @@ const un = 10, Sr = ({
|
|
|
2111
2113
|
] })
|
|
2112
2114
|
}
|
|
2113
2115
|
);
|
|
2114
|
-
},
|
|
2116
|
+
}, pn = ({
|
|
2115
2117
|
options: r,
|
|
2116
2118
|
fun: e,
|
|
2117
2119
|
direction: t = "row",
|
|
@@ -2156,10 +2158,10 @@ const un = 10, Sr = ({
|
|
|
2156
2158
|
p == null || p(E.id, E.fun);
|
|
2157
2159
|
}
|
|
2158
2160
|
};
|
|
2159
|
-
return /* @__PURE__ */ v.jsx(
|
|
2161
|
+
return /* @__PURE__ */ v.jsx(De, { ...S }, `button-${O}`);
|
|
2160
2162
|
});
|
|
2161
2163
|
return /* @__PURE__ */ v.jsx("div", { role: "list", "data-component": "button-list", className: x.container, children: w });
|
|
2162
|
-
},
|
|
2164
|
+
}, hn = ({
|
|
2163
2165
|
bindValue: r,
|
|
2164
2166
|
_dataComponent: e = "checkbox",
|
|
2165
2167
|
disabled: t,
|
|
@@ -2186,7 +2188,7 @@ const un = 10, Sr = ({
|
|
|
2186
2188
|
}
|
|
2187
2189
|
)
|
|
2188
2190
|
] });
|
|
2189
|
-
},
|
|
2191
|
+
}, mn = {
|
|
2190
2192
|
titleLarge: "h2",
|
|
2191
2193
|
title: "h3",
|
|
2192
2194
|
body: "h6",
|
|
@@ -2197,7 +2199,7 @@ const un = 10, Sr = ({
|
|
|
2197
2199
|
color: t,
|
|
2198
2200
|
...n
|
|
2199
2201
|
}) => {
|
|
2200
|
-
const s =
|
|
2202
|
+
const s = mn[r], a = {
|
|
2201
2203
|
container: `smp-typography ${r ? `smp-typography-${r}` : ""} ${n.disabled ? "smp-typography-disabled" : ""}`
|
|
2202
2204
|
};
|
|
2203
2205
|
return /* @__PURE__ */ v.jsx(
|
|
@@ -2314,7 +2316,7 @@ function Tr(r, e) {
|
|
|
2314
2316
|
};
|
|
2315
2317
|
}, [r, e]);
|
|
2316
2318
|
}
|
|
2317
|
-
const
|
|
2319
|
+
const gn = ({
|
|
2318
2320
|
bindValue: r,
|
|
2319
2321
|
onChange: e,
|
|
2320
2322
|
options: t = [],
|
|
@@ -2332,17 +2334,17 @@ const mn = ({
|
|
|
2332
2334
|
enabled: l
|
|
2333
2335
|
});
|
|
2334
2336
|
Je(b, () => p(!1)), Tr(l, b);
|
|
2335
|
-
const C = (
|
|
2336
|
-
e == null || e(
|
|
2337
|
-
const k = d.findIndex((U) => U.id ===
|
|
2338
|
-
x(k), E([
|
|
2339
|
-
}, Y = (
|
|
2340
|
-
|
|
2341
|
-
},
|
|
2342
|
-
(
|
|
2337
|
+
const C = (D) => {
|
|
2338
|
+
e == null || e(D.id, D.label);
|
|
2339
|
+
const k = d.findIndex((U) => U.id === D.id);
|
|
2340
|
+
x(k), E([D.id]), p(!1);
|
|
2341
|
+
}, Y = (D) => {
|
|
2342
|
+
D.key === "Escape" && (p(!1), x(-1));
|
|
2343
|
+
}, j = (D) => {
|
|
2344
|
+
(D.key === "ArrowDown" || D.key === "ArrowUp") && (D.preventDefault(), P());
|
|
2343
2345
|
}, P = () => {
|
|
2344
|
-
o && u && u(o, void 0).then((
|
|
2345
|
-
m(
|
|
2346
|
+
o && u && u(o, void 0).then((D) => {
|
|
2347
|
+
m(D), x(D.length > 0 ? 0 : -1), p(!0);
|
|
2346
2348
|
});
|
|
2347
2349
|
};
|
|
2348
2350
|
return /* @__PURE__ */ v.jsxs(
|
|
@@ -2362,7 +2364,7 @@ const mn = ({
|
|
|
2362
2364
|
optionalDisplayValue: n,
|
|
2363
2365
|
displayMode: a,
|
|
2364
2366
|
onShapeIconClick: P,
|
|
2365
|
-
onKeyDown:
|
|
2367
|
+
onKeyDown: j,
|
|
2366
2368
|
shapeIcon: "arrow_drop_down",
|
|
2367
2369
|
rotatedShapeIcon: l,
|
|
2368
2370
|
isEditable: s,
|
|
@@ -2394,11 +2396,11 @@ const mn = ({
|
|
|
2394
2396
|
r = n, e = s;
|
|
2395
2397
|
});
|
|
2396
2398
|
return t.resolve = r, t.reject = e, t;
|
|
2397
|
-
}, Jt = (r) => r == null ? "" : "" + r,
|
|
2399
|
+
}, Jt = (r) => r == null ? "" : "" + r, yn = (r, e, t) => {
|
|
2398
2400
|
r.forEach((n) => {
|
|
2399
2401
|
e[n] && (t[n] = e[n]);
|
|
2400
2402
|
});
|
|
2401
|
-
},
|
|
2403
|
+
}, vn = /###/g, Xt = (r) => r && r.indexOf("###") > -1 ? r.replace(vn, ".") : r, Zt = (r) => !r || G(r), _e = (r, e, t) => {
|
|
2402
2404
|
const n = G(e) ? e.split(".") : e;
|
|
2403
2405
|
let s = 0;
|
|
2404
2406
|
for (; s < n.length - 1; ) {
|
|
@@ -2423,7 +2425,7 @@ const mn = ({
|
|
|
2423
2425
|
for (; o.obj === void 0 && i.length; )
|
|
2424
2426
|
a = `${i[i.length - 1]}.${a}`, i = i.slice(0, i.length - 1), o = _e(r, i, Object), o != null && o.obj && typeof o.obj[`${o.k}.${a}`] < "u" && (o.obj = void 0);
|
|
2425
2427
|
o.obj[`${o.k}.${a}`] = t;
|
|
2426
|
-
},
|
|
2428
|
+
}, bn = (r, e, t, n) => {
|
|
2427
2429
|
const {
|
|
2428
2430
|
obj: s,
|
|
2429
2431
|
k: a
|
|
@@ -2436,7 +2438,7 @@ const mn = ({
|
|
|
2436
2438
|
} = _e(r, e);
|
|
2437
2439
|
if (t && Object.prototype.hasOwnProperty.call(t, n))
|
|
2438
2440
|
return t[n];
|
|
2439
|
-
},
|
|
2441
|
+
}, xn = (r, e, t) => {
|
|
2440
2442
|
const n = Qe(r, t);
|
|
2441
2443
|
return n !== void 0 ? n : Qe(e, t);
|
|
2442
2444
|
}, Or = (r, e, t) => {
|
|
@@ -2444,7 +2446,7 @@ const mn = ({
|
|
|
2444
2446
|
n !== "__proto__" && n !== "constructor" && (n in r ? G(r[n]) || r[n] instanceof String || G(e[n]) || e[n] instanceof String ? t && (r[n] = e[n]) : Or(r[n], e[n], t) : r[n] = e[n]);
|
|
2445
2447
|
return r;
|
|
2446
2448
|
}, Oe = (r) => r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
2447
|
-
var
|
|
2449
|
+
var Sn = {
|
|
2448
2450
|
"&": "&",
|
|
2449
2451
|
"<": "<",
|
|
2450
2452
|
">": ">",
|
|
@@ -2452,8 +2454,8 @@ var xn = {
|
|
|
2452
2454
|
"'": "'",
|
|
2453
2455
|
"/": "/"
|
|
2454
2456
|
};
|
|
2455
|
-
const
|
|
2456
|
-
class
|
|
2457
|
+
const wn = (r) => G(r) ? r.replace(/[&<>"'\/]/g, (e) => Sn[e]) : r;
|
|
2458
|
+
class En {
|
|
2457
2459
|
constructor(e) {
|
|
2458
2460
|
this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
|
|
2459
2461
|
}
|
|
@@ -2465,11 +2467,11 @@ class wn {
|
|
|
2465
2467
|
return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, n), this.regExpQueue.push(e), n;
|
|
2466
2468
|
}
|
|
2467
2469
|
}
|
|
2468
|
-
const
|
|
2470
|
+
const Tn = [" ", ",", "?", "!", ";"], On = new En(20), Rn = (r, e, t) => {
|
|
2469
2471
|
e = e || "", t = t || "";
|
|
2470
|
-
const n =
|
|
2472
|
+
const n = Tn.filter((i) => e.indexOf(i) < 0 && t.indexOf(i) < 0);
|
|
2471
2473
|
if (n.length === 0) return !0;
|
|
2472
|
-
const s =
|
|
2474
|
+
const s = On.getRegExp(`(${n.map((i) => i === "?" ? "\\?" : i).join("|")})`);
|
|
2473
2475
|
let a = !s.test(r);
|
|
2474
2476
|
if (!a) {
|
|
2475
2477
|
const i = r.indexOf(t);
|
|
@@ -2496,7 +2498,7 @@ const En = [" ", ",", "?", "!", ";"], Tn = new wn(20), On = (r, e, t) => {
|
|
|
2496
2498
|
s = i;
|
|
2497
2499
|
}
|
|
2498
2500
|
return s;
|
|
2499
|
-
}, Ie = (r) => r == null ? void 0 : r.replace("_", "-"),
|
|
2501
|
+
}, Ie = (r) => r == null ? void 0 : r.replace("_", "-"), jn = {
|
|
2500
2502
|
type: "logger",
|
|
2501
2503
|
log(r) {
|
|
2502
2504
|
this.output("log", r);
|
|
@@ -2517,7 +2519,7 @@ class et {
|
|
|
2517
2519
|
this.init(e, t);
|
|
2518
2520
|
}
|
|
2519
2521
|
init(e, t = {}) {
|
|
2520
|
-
this.prefix = t.prefix || "i18next:", this.logger = e ||
|
|
2522
|
+
this.prefix = t.prefix || "i18next:", this.logger = e || jn, this.options = t, this.debug = t.debug;
|
|
2521
2523
|
}
|
|
2522
2524
|
log(...e) {
|
|
2523
2525
|
return this.forward(e, "log", "", !0);
|
|
@@ -2660,7 +2662,7 @@ var Rr = {
|
|
|
2660
2662
|
const tr = {}, rr = (r) => !G(r) && typeof r != "boolean" && typeof r != "number";
|
|
2661
2663
|
class tt extends rt {
|
|
2662
2664
|
constructor(e, t = {}) {
|
|
2663
|
-
super(),
|
|
2665
|
+
super(), yn(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = ge.create("translator");
|
|
2664
2666
|
}
|
|
2665
2667
|
changeLanguage(e) {
|
|
2666
2668
|
e && (this.language = e);
|
|
@@ -2680,7 +2682,7 @@ class tt extends rt {
|
|
|
2680
2682
|
n === void 0 && (n = ":");
|
|
2681
2683
|
const s = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator;
|
|
2682
2684
|
let a = t.ns || this.options.defaultNS || [];
|
|
2683
|
-
const i = n && e.indexOf(n) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !
|
|
2685
|
+
const i = n && e.indexOf(n) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !Rn(e, n, s);
|
|
2684
2686
|
if (i && !o) {
|
|
2685
2687
|
const u = e.match(this.interpolator.nestingRegexp);
|
|
2686
2688
|
if (u && u.length > 0)
|
|
@@ -2731,11 +2733,11 @@ class tt extends rt {
|
|
|
2731
2733
|
let m = d == null ? void 0 : d.res;
|
|
2732
2734
|
const g = (d == null ? void 0 : d.usedKey) || o, x = (d == null ? void 0 : d.exactUsedKey) || o, w = ["[object Number]", "[object Function]", "[object RegExp]"], E = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, O = !this.i18nFormat || this.i18nFormat.handleAsObject, S = s.count !== void 0 && !G(s.count), b = tt.hasDefaultValue(s), L = S ? this.pluralResolver.getSuffix(l, s.count, s) : "", C = s.ordinal && S ? this.pluralResolver.getSuffix(l, s.count, {
|
|
2733
2735
|
ordinal: !1
|
|
2734
|
-
}) : "", Y = S && !s.ordinal && s.count === 0,
|
|
2736
|
+
}) : "", Y = S && !s.ordinal && s.count === 0, j = Y && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${L}`] || s[`defaultValue${C}`] || s.defaultValue;
|
|
2735
2737
|
let P = m;
|
|
2736
|
-
O && !m && b && (P =
|
|
2737
|
-
const
|
|
2738
|
-
if (O && P &&
|
|
2738
|
+
O && !m && b && (P = j);
|
|
2739
|
+
const D = rr(P), k = Object.prototype.toString.apply(P);
|
|
2740
|
+
if (O && P && D && w.indexOf(k) < 0 && !(G(E) && Array.isArray(P))) {
|
|
2739
2741
|
if (!s.returnObjects && !this.options.returnObjects) {
|
|
2740
2742
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
2741
2743
|
const U = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(g, P, {
|
|
@@ -2751,7 +2753,7 @@ class tt extends rt {
|
|
|
2751
2753
|
const J = `${z}${i}${K}`;
|
|
2752
2754
|
b && !m ? H[K] = this.translate(J, {
|
|
2753
2755
|
...s,
|
|
2754
|
-
defaultValue: rr(
|
|
2756
|
+
defaultValue: rr(j) ? j[K] : void 0,
|
|
2755
2757
|
joinArrays: !1,
|
|
2756
2758
|
ns: u
|
|
2757
2759
|
}) : H[K] = this.translate(J, {
|
|
@@ -2766,10 +2768,10 @@ class tt extends rt {
|
|
|
2766
2768
|
m = m.join(E), m && (m = this.extendTranslation(m, e, s, n));
|
|
2767
2769
|
else {
|
|
2768
2770
|
let U = !1, H = !1;
|
|
2769
|
-
!this.isValidLookup(m) && b && (U = !0, m =
|
|
2770
|
-
const K = (s.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && H ? void 0 : m, J = b &&
|
|
2771
|
+
!this.isValidLookup(m) && b && (U = !0, m = j), this.isValidLookup(m) || (H = !0, m = o);
|
|
2772
|
+
const K = (s.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && H ? void 0 : m, J = b && j !== m && this.options.updateMissing;
|
|
2771
2773
|
if (H || U || J) {
|
|
2772
|
-
if (this.logger.log(J ? "updateKey" : "missingKey", l, c, o, J ?
|
|
2774
|
+
if (this.logger.log(J ? "updateKey" : "missingKey", l, c, o, J ? j : m), i) {
|
|
2773
2775
|
const y = this.resolve(o, {
|
|
2774
2776
|
...s,
|
|
2775
2777
|
keySeparator: !1
|
|
@@ -2790,9 +2792,9 @@ class tt extends rt {
|
|
|
2790
2792
|
this.options.saveMissing && (this.options.saveMissingPlurals && S ? W.forEach((y) => {
|
|
2791
2793
|
const T = this.pluralResolver.getSuffixes(y, s);
|
|
2792
2794
|
Y && s[`defaultValue${this.options.pluralSeparator}zero`] && T.indexOf(`${this.options.pluralSeparator}zero`) < 0 && T.push(`${this.options.pluralSeparator}zero`), T.forEach(($) => {
|
|
2793
|
-
h([y], o + $, s[`defaultValue${$}`] ||
|
|
2795
|
+
h([y], o + $, s[`defaultValue${$}`] || j);
|
|
2794
2796
|
});
|
|
2795
|
-
}) : h(W, o,
|
|
2797
|
+
}) : h(W, o, j));
|
|
2796
2798
|
}
|
|
2797
2799
|
m = this.extendTranslation(m, e, s, d, n), H && m === o && this.options.appendNamespaceToMissingKey && (m = `${c}${f}${o}`), (H || U) && this.options.parseMissingKeyHandler && (m = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${c}${f}${o}` : o, U ? m : void 0, s));
|
|
2798
2800
|
}
|
|
@@ -2861,10 +2863,10 @@ class tt extends rt {
|
|
|
2861
2863
|
else {
|
|
2862
2864
|
let C;
|
|
2863
2865
|
p && (C = this.pluralResolver.getSuffix(O, t.count, t));
|
|
2864
|
-
const Y = `${this.options.pluralSeparator}zero`,
|
|
2865
|
-
if (p && (S.push(f + C), t.ordinal && C.indexOf(
|
|
2866
|
+
const Y = `${this.options.pluralSeparator}zero`, j = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
2867
|
+
if (p && (S.push(f + C), t.ordinal && C.indexOf(j) === 0 && S.push(f + C.replace(j, this.options.pluralSeparator)), d && S.push(f + Y)), m) {
|
|
2866
2868
|
const P = `${f}${this.options.contextSeparator}${t.context}`;
|
|
2867
|
-
S.push(P), p && (S.push(P + C), t.ordinal && C.indexOf(
|
|
2869
|
+
S.push(P), p && (S.push(P + C), t.ordinal && C.indexOf(j) === 0 && S.push(P + C.replace(j, this.options.pluralSeparator)), d && S.push(P + Y));
|
|
2868
2870
|
}
|
|
2869
2871
|
}
|
|
2870
2872
|
let b;
|
|
@@ -3035,10 +3037,10 @@ class Dn {
|
|
|
3035
3037
|
}
|
|
3036
3038
|
}
|
|
3037
3039
|
const ir = (r, e, t, n = ".", s = !0) => {
|
|
3038
|
-
let a =
|
|
3040
|
+
let a = xn(r, e, t);
|
|
3039
3041
|
return !a && s && G(t) && (a = yt(r, t, n), a === void 0 && (a = yt(e, t, n))), a;
|
|
3040
3042
|
}, dt = (r) => r.replace(/\$/g, "$$$$");
|
|
3041
|
-
class
|
|
3043
|
+
class $n {
|
|
3042
3044
|
constructor(e = {}) {
|
|
3043
3045
|
var t;
|
|
3044
3046
|
this.logger = ge.create("interpolator"), this.options = e, this.format = ((t = e == null ? void 0 : e.interpolation) == null ? void 0 : t.format) || ((n) => n), this.init(e);
|
|
@@ -3066,7 +3068,7 @@ class jn {
|
|
|
3066
3068
|
maxReplaces: w,
|
|
3067
3069
|
alwaysFormat: E
|
|
3068
3070
|
} = e.interpolation;
|
|
3069
|
-
this.escape = t !== void 0 ? t :
|
|
3071
|
+
this.escape = t !== void 0 ? t : wn, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = a ? Oe(a) : i || "{{", this.suffix = o ? Oe(o) : u || "}}", this.formatSeparator = c || ",", this.unescapePrefix = f ? "" : l || "-", this.unescapeSuffix = this.unescapePrefix ? "" : f || "", this.nestingPrefix = p ? Oe(p) : d || Oe("$t("), this.nestingSuffix = m ? Oe(m) : g || Oe(")"), this.nestingOptionsSeparator = x || ",", this.maxReplaces = w || 1e3, this.alwaysFormat = E !== void 0 ? E : !1, this.resetRegExp();
|
|
3070
3072
|
}
|
|
3071
3073
|
reset() {
|
|
3072
3074
|
this.options && this.init(this.options);
|
|
@@ -3162,7 +3164,7 @@ class jn {
|
|
|
3162
3164
|
return e;
|
|
3163
3165
|
}
|
|
3164
3166
|
}
|
|
3165
|
-
const
|
|
3167
|
+
const Cn = (r) => {
|
|
3166
3168
|
let e = r.toLowerCase().trim();
|
|
3167
3169
|
const t = {};
|
|
3168
3170
|
if (r.indexOf("(") > -1) {
|
|
@@ -3192,8 +3194,8 @@ const $n = (r) => {
|
|
|
3192
3194
|
let o = e[i];
|
|
3193
3195
|
return o || (o = r(Ie(n), s), e[i] = o), o(t);
|
|
3194
3196
|
};
|
|
3195
|
-
},
|
|
3196
|
-
class
|
|
3197
|
+
}, Pn = (r) => (e, t, n) => r(Ie(t), n)(e);
|
|
3198
|
+
class An {
|
|
3197
3199
|
constructor(e = {}) {
|
|
3198
3200
|
this.logger = ge.create("formatter"), this.options = e, this.init(e);
|
|
3199
3201
|
}
|
|
@@ -3201,7 +3203,7 @@ class Pn {
|
|
|
3201
3203
|
interpolation: {}
|
|
3202
3204
|
}) {
|
|
3203
3205
|
this.formatSeparator = t.interpolation.formatSeparator || ",";
|
|
3204
|
-
const n = t.cacheInBuiltFormats ? or :
|
|
3206
|
+
const n = t.cacheInBuiltFormats ? or : Pn;
|
|
3205
3207
|
this.formats = {
|
|
3206
3208
|
number: n((s, a) => {
|
|
3207
3209
|
const i = new Intl.NumberFormat(s, {
|
|
@@ -3253,7 +3255,7 @@ class Pn {
|
|
|
3253
3255
|
const {
|
|
3254
3256
|
formatName: c,
|
|
3255
3257
|
formatOptions: f
|
|
3256
|
-
} =
|
|
3258
|
+
} = Cn(u);
|
|
3257
3259
|
if (this.formats[c]) {
|
|
3258
3260
|
let p = o;
|
|
3259
3261
|
try {
|
|
@@ -3273,10 +3275,10 @@ class Pn {
|
|
|
3273
3275
|
}, e);
|
|
3274
3276
|
}
|
|
3275
3277
|
}
|
|
3276
|
-
const
|
|
3278
|
+
const Ln = (r, e) => {
|
|
3277
3279
|
r.pending[e] !== void 0 && (delete r.pending[e], r.pendingCount--);
|
|
3278
3280
|
};
|
|
3279
|
-
class
|
|
3281
|
+
class _n extends rt {
|
|
3280
3282
|
constructor(e, t, n, s = {}) {
|
|
3281
3283
|
var a, i;
|
|
3282
3284
|
super(), this.backend = e, this.store = t, this.services = n, this.languageUtils = n.languageUtils, this.options = s, this.logger = ge.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = s.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = s.maxRetries >= 0 ? s.maxRetries : 5, this.retryTimeout = s.retryTimeout >= 1 ? s.retryTimeout : 350, this.state = {}, this.queue = [], (i = (a = this.backend) == null ? void 0 : a.init) == null || i.call(a, n, s.backend, s);
|
|
@@ -3309,7 +3311,7 @@ class Ln extends rt {
|
|
|
3309
3311
|
}), this.state[e] = t ? -1 : 2, t && n && (this.state[e] = 0);
|
|
3310
3312
|
const o = {};
|
|
3311
3313
|
this.queue.forEach((u) => {
|
|
3312
|
-
|
|
3314
|
+
bn(u.loaded, [a], i), Ln(u, e), t && u.errors.push(t), u.pendingCount === 0 && !u.done && (Object.keys(u.loaded).forEach((c) => {
|
|
3313
3315
|
o[c] || (o[c] = {});
|
|
3314
3316
|
const f = u.loaded[c];
|
|
3315
3317
|
f.length && f.forEach((l) => {
|
|
@@ -3469,7 +3471,7 @@ const lr = () => ({
|
|
|
3469
3471
|
var e, t;
|
|
3470
3472
|
return G(r.ns) && (r.ns = [r.ns]), G(r.fallbackLng) && (r.fallbackLng = [r.fallbackLng]), G(r.fallbackNS) && (r.fallbackNS = [r.fallbackNS]), ((t = (e = r.supportedLngs) == null ? void 0 : e.indexOf) == null ? void 0 : t.call(e, "cimode")) < 0 && (r.supportedLngs = r.supportedLngs.concat(["cimode"])), typeof r.initImmediate == "boolean" && (r.initAsync = r.initImmediate), r;
|
|
3471
3473
|
}, Be = () => {
|
|
3472
|
-
},
|
|
3474
|
+
}, kn = (r) => {
|
|
3473
3475
|
Object.getOwnPropertyNames(Object.getPrototypeOf(r)).forEach((t) => {
|
|
3474
3476
|
typeof r[t] == "function" && (r[t] = r[t].bind(r));
|
|
3475
3477
|
});
|
|
@@ -3478,7 +3480,7 @@ class Ne extends rt {
|
|
|
3478
3480
|
constructor(e = {}, t) {
|
|
3479
3481
|
if (super(), this.options = cr(e), this.services = {}, this.logger = ge, this.modules = {
|
|
3480
3482
|
external: []
|
|
3481
|
-
},
|
|
3483
|
+
}, kn(this), t && !this.isInitialized && !e.isClone) {
|
|
3482
3484
|
if (!this.options.initAsync)
|
|
3483
3485
|
return this.init(e, t), this;
|
|
3484
3486
|
setTimeout(() => {
|
|
@@ -3501,16 +3503,16 @@ class Ne extends rt {
|
|
|
3501
3503
|
if (!this.options.isClone) {
|
|
3502
3504
|
this.modules.logger ? ge.init(s(this.modules.logger), this.options) : ge.init(null, this.options);
|
|
3503
3505
|
let c;
|
|
3504
|
-
this.modules.formatter ? c = this.modules.formatter : c =
|
|
3506
|
+
this.modules.formatter ? c = this.modules.formatter : c = An;
|
|
3505
3507
|
const f = new nr(this.options);
|
|
3506
3508
|
this.store = new er(this.options.resources, this.options);
|
|
3507
3509
|
const l = this.services;
|
|
3508
3510
|
l.logger = ge, l.resourceStore = this.store, l.languageUtils = f, l.pluralResolver = new Dn(f, {
|
|
3509
3511
|
prepend: this.options.pluralSeparator,
|
|
3510
3512
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
3511
|
-
}), c && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (l.formatter = s(c), l.formatter.init(l, this.options), this.options.interpolation.format = l.formatter.format.bind(l.formatter)), l.interpolator = new
|
|
3513
|
+
}), c && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (l.formatter = s(c), l.formatter.init(l, this.options), this.options.interpolation.format = l.formatter.format.bind(l.formatter)), l.interpolator = new $n(this.options), l.utils = {
|
|
3512
3514
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
3513
|
-
}, l.backendConnector = new
|
|
3515
|
+
}, l.backendConnector = new _n(s(this.modules.backend), l.resourceStore, l, this.options), l.backendConnector.on("*", (p, ...d) => {
|
|
3514
3516
|
this.emit(p, ...d);
|
|
3515
3517
|
}), this.modules.languageDetector && (l.languageDetector = s(this.modules.languageDetector), l.languageDetector.init && l.languageDetector.init(l, this.options.detection, this.options)), this.modules.i18nFormat && (l.i18nFormat = s(this.modules.i18nFormat), l.i18nFormat.init && l.i18nFormat.init(this)), this.translator = new tt(this.services, this.options), this.translator.on("*", (p, ...d) => {
|
|
3516
3518
|
this.emit(p, ...d);
|
|
@@ -3714,34 +3716,34 @@ ae.setDefaultNamespace;
|
|
|
3714
3716
|
ae.hasLoadedNamespace;
|
|
3715
3717
|
ae.loadNamespaces;
|
|
3716
3718
|
ae.loadLanguages;
|
|
3717
|
-
const
|
|
3719
|
+
const In = { Friday: "Venerdì", FridayShort: "Ven", Monday: "Lunedì", MondayShort: "Lun", Saturday: "Sabato", SaturdayShort: "Sab", Sunday: "Domenica", SundayShort: "Dom", Tuesday: "Martedì", TuesdayShort: "Mar", Thursday: "Giovedì", ThursdayShort: "Gio", Wednesday: "Mercoledì", WednesdayShort: "Mer" }, Nn = { April: "Aprile", August: "Agosto", December: "Dicembre", February: "Febbraio", January: "Gennaio", June: "Giugno", July: "Luglio", March: "Marzo", May: "Maggio", October: "Ottobre", November: "Novembre", September: "Settembre" }, Mn = { CalendarFor: "Calendario per", Close: "Chiudi", SpotlightDefaultPlaceholder: "Esegui Comando" }, Fn = {
|
|
3718
3720
|
Date: { NextDay: "Giorno Successivo", NextMonth: "Mese Successivo", NextWeek: "Settimana Successiva", NextYear: "Anno Successivo", PreviousDay: "Giorno Precedente", PreviousMonth: "Mese Precedente", PreviousWeek: "Settimana Precedente", PreviousYear: "Anno Precedente", Today: "Oggi", Tomorrow: "Domani", Yesterday: "Ieri" },
|
|
3719
|
-
Day:
|
|
3720
|
-
Month:
|
|
3721
|
-
Generic:
|
|
3722
|
-
},
|
|
3721
|
+
Day: In,
|
|
3722
|
+
Month: Nn,
|
|
3723
|
+
Generic: Mn
|
|
3724
|
+
}, Vn = { Friday: "Friday", FridayShort: "Fri", Monday: "Monday", MondayShort: "Mon", Saturday: "Saturday", SaturdayShort: "Sat", Sunday: "Sunday", SundayShort: "Sun", Tuesday: "Tuesday", TuesdayShort: "Tue", Thursday: "Thursday", ThursdayShort: "Thu", Wednesday: "Wednesday", WednesdayShort: "Wed" }, Yn = { April: "April", August: "August", December: "December", February: "February", January: "January", July: "July", June: "June", March: "March", May: "May", November: "November", October: "October", September: "September" }, Un = { CalendarFor: "Calendar for", Close: "Close", SpotlightDefaultPlaceholder: "Execute Command" }, Wn = {
|
|
3723
3725
|
Date: { NextDay: "Next Day", NextMonth: "Next Month", NextWeek: "Next Week", NextYear: "Next Year", PreviousDay: "Previous Day", PreviousMonth: "Previous Month", PreviousWeek: "Previous Week", PreviousYear: "Previous Year", Today: "Today", Tomorrow: "Tomorrow", Yesterday: "Yesterday" },
|
|
3724
|
-
Day:
|
|
3725
|
-
Month:
|
|
3726
|
-
Generic:
|
|
3726
|
+
Day: Vn,
|
|
3727
|
+
Month: Yn,
|
|
3728
|
+
Generic: Un
|
|
3727
3729
|
};
|
|
3728
3730
|
function ur(r, e) {
|
|
3729
|
-
return new RegExp(
|
|
3731
|
+
return new RegExp(Hn(r), e);
|
|
3730
3732
|
}
|
|
3731
|
-
function
|
|
3733
|
+
function Hn(r) {
|
|
3732
3734
|
return r.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
3733
3735
|
}
|
|
3734
|
-
function
|
|
3736
|
+
function Bn(r, e, t, n) {
|
|
3735
3737
|
let s = e;
|
|
3736
|
-
const a =
|
|
3738
|
+
const a = Gn(r, t);
|
|
3737
3739
|
if (!s) {
|
|
3738
3740
|
const o = Math.abs(a);
|
|
3739
3741
|
o - Math.floor(o) ? s = "0,0.00" : s = "0,0";
|
|
3740
3742
|
}
|
|
3741
|
-
const i =
|
|
3743
|
+
const i = Kn(s);
|
|
3742
3744
|
return new Intl.NumberFormat(n, i).format(a);
|
|
3743
3745
|
}
|
|
3744
|
-
function
|
|
3746
|
+
function Gn(r, e, t, n, s) {
|
|
3745
3747
|
let a = r;
|
|
3746
3748
|
if (typeof a != "number") {
|
|
3747
3749
|
let o;
|
|
@@ -3752,7 +3754,7 @@ function Bn(r, e, t, n, s) {
|
|
|
3752
3754
|
const i = Number(a);
|
|
3753
3755
|
return isNaN(i) ? NaN : i;
|
|
3754
3756
|
}
|
|
3755
|
-
function
|
|
3757
|
+
function Kn(r) {
|
|
3756
3758
|
const e = {};
|
|
3757
3759
|
r.includes(",") ? e.useGrouping = !0 : e.useGrouping = !1;
|
|
3758
3760
|
const t = r.indexOf(".");
|
|
@@ -3782,7 +3784,7 @@ ae.init({
|
|
|
3782
3784
|
default:
|
|
3783
3785
|
case "number": {
|
|
3784
3786
|
const a = (n == null ? void 0 : n.inputIsLocalized) ?? !1;
|
|
3785
|
-
return
|
|
3787
|
+
return Bn(r, e, a, t);
|
|
3786
3788
|
}
|
|
3787
3789
|
}
|
|
3788
3790
|
} catch {
|
|
@@ -3792,26 +3794,29 @@ ae.init({
|
|
|
3792
3794
|
},
|
|
3793
3795
|
resources: {
|
|
3794
3796
|
en: {
|
|
3795
|
-
translation:
|
|
3797
|
+
translation: Wn
|
|
3796
3798
|
},
|
|
3797
3799
|
it: {
|
|
3798
|
-
translation:
|
|
3800
|
+
translation: Fn
|
|
3799
3801
|
}
|
|
3800
3802
|
}
|
|
3801
3803
|
});
|
|
3802
|
-
const
|
|
3804
|
+
const zn = (r, e, t, n) => ae.format(r, e, t || ae.language, n), qn = (r, e) => ae.t(r, e);
|
|
3803
3805
|
function nt() {
|
|
3804
3806
|
const r = ye(
|
|
3805
|
-
(n, s, a, i) =>
|
|
3807
|
+
(n, s, a, i) => zn(n, s, a || void 0, i),
|
|
3806
3808
|
[]
|
|
3807
3809
|
), e = ye(() => ae.languages[0], []), t = ye(
|
|
3808
|
-
(n, s) =>
|
|
3810
|
+
(n, s) => qn(n, s),
|
|
3809
3811
|
[]
|
|
3810
3812
|
);
|
|
3811
3813
|
return { format: r, getCurrentLanguage: e, translate: t };
|
|
3812
3814
|
}
|
|
3813
3815
|
var Tt = /* @__PURE__ */ ((r) => (r.CALENDAR_FOR = "Date.CalendarFor", r.CLOSE = "Generic.Close", r.SPOTLIGHT_DEFAULT_PLACEHOLDER = "Generic.SpotlightDefaultPlaceholder", r))(Tt || {}), le = /* @__PURE__ */ ((r) => (r.MONDAY = "Day.Monday", r.MONDAY_SHORT = "Day.MondayShort", r.TUESDAY = "Day.Tuesday", r.TUESDAY_SHORT = "Day.TuesdayShort", r.WEDNESDAY = "Day.Wednesday", r.WEDNESDAY_SHORT = "Day.WednesdayShort", r.THURSDAY = "Day.Thursday", r.THURSDAY_SHORT = "Day.ThursdayShort", r.FRIDAY = "Day.Friday", r.FRIDAY_SHORT = "Day.FridayShort", r.SATURDAY = "Day.Saturday", r.SATURDAY_SHORT = "Day.SaturdayShort", r.SUNDAY = "Day.Sunday", r.SUNDAY_SHORT = "Day.SundayShort", r))(le || {}), fe = /* @__PURE__ */ ((r) => (r.JANUARY = "Month.January", r.FEBRUARY = "Month.February", r.MARCH = "Month.March", r.APRIL = "Month.April", r.MAY = "Month.May", r.JUNE = "Month.June", r.JULY = "Month.July", r.AUGUST = "Month.August", r.SEPTEMBER = "Month.September", r.OCTOBER = "Month.October", r.NOVEMBER = "Month.November", r.DECEMBER = "Month.December", r))(fe || {}), vt = /* @__PURE__ */ ((r) => (r.PREVIOUS_DAY = "Date.PreviousDay", r.PREVIOUS_WEEK = "Date.PreviousWeek", r.PREVIOUS_MONTH = "Date.PreviousMonth", r.PREVIOUS_YEAR = "Date.PreviousYear", r.NEXT_DAY = "Date.NextDay", r.NEXT_WEEK = "Date.NextWeek", r.NEXT_MONTH = "Date.NextMonth", r.NEXT_YEAR = "Date.NextYear", r.YESTERDAY = "Date.Yesterday", r.TODAY = "Date.Today", r.TOMORROW = "Date.Tomorrow", r))(vt || {});
|
|
3814
|
-
|
|
3816
|
+
const Jn = {
|
|
3817
|
+
"smp-datepickercalendar-position": "_smp-datepickercalendar-position_19hwj_1"
|
|
3818
|
+
};
|
|
3819
|
+
function Xn({
|
|
3815
3820
|
selectedDate: r,
|
|
3816
3821
|
onDateChange: e,
|
|
3817
3822
|
disabledDateRanges: t = [],
|
|
@@ -3881,13 +3886,13 @@ function qn({
|
|
|
3881
3886
|
f === 0 ? (l(11), d(p - 1)) : l(f - 1), g(1);
|
|
3882
3887
|
}, C = () => {
|
|
3883
3888
|
f === 11 ? (l(0), d(p + 1)) : l(f + 1), g(1);
|
|
3884
|
-
}, Y = (_, h) => new Date(_, h + 1, 0).getDate(),
|
|
3889
|
+
}, Y = (_, h) => new Date(_, h + 1, 0).getDate(), j = (_, h) => new Date(_, h, 1).getDay(), P = (_) => {
|
|
3885
3890
|
var y;
|
|
3886
3891
|
const h = H.findIndex(
|
|
3887
3892
|
(T) => T !== null && T.getDate() === _
|
|
3888
3893
|
);
|
|
3889
3894
|
h !== -1 && w.current[h] && ((y = w.current[h]) == null || y.focus(), g(_));
|
|
3890
|
-
},
|
|
3895
|
+
}, D = (_, h) => {
|
|
3891
3896
|
const y = H[h];
|
|
3892
3897
|
if (!y) return;
|
|
3893
3898
|
const T = Y(p, f), $ = y.getDate();
|
|
@@ -4010,7 +4015,7 @@ function qn({
|
|
|
4010
4015
|
}, 0);
|
|
4011
4016
|
}
|
|
4012
4017
|
}, H = (() => {
|
|
4013
|
-
const _ = Y(p, f), h =
|
|
4018
|
+
const _ = Y(p, f), h = j(p, f), y = [];
|
|
4014
4019
|
for (let T = 0; T < h; T++)
|
|
4015
4020
|
y.push(null);
|
|
4016
4021
|
for (let T = 1; T <= _; T++) {
|
|
@@ -4037,7 +4042,7 @@ function qn({
|
|
|
4037
4042
|
}, [f, p, m, H]);
|
|
4038
4043
|
const J = {
|
|
4039
4044
|
label: "smp-datepickercalendar-label",
|
|
4040
|
-
wrapper: "smp-datepickercalendar"
|
|
4045
|
+
wrapper: `smp-datepickercalendar ${Jn["smp-datepickercalendar-position"]}`,
|
|
4041
4046
|
calendar: "smp-datepickercalendar",
|
|
4042
4047
|
table: "smp-datepickercalendar-table",
|
|
4043
4048
|
th: "smp-datepickercalendar-th",
|
|
@@ -4068,7 +4073,7 @@ function qn({
|
|
|
4068
4073
|
},
|
|
4069
4074
|
children: [
|
|
4070
4075
|
/* @__PURE__ */ v.jsx(
|
|
4071
|
-
|
|
4076
|
+
De,
|
|
4072
4077
|
{
|
|
4073
4078
|
onClick: L,
|
|
4074
4079
|
ariaLabel: a(vt.PREVIOUS_MONTH),
|
|
@@ -4087,7 +4092,7 @@ function qn({
|
|
|
4087
4092
|
}
|
|
4088
4093
|
),
|
|
4089
4094
|
/* @__PURE__ */ v.jsx(
|
|
4090
|
-
|
|
4095
|
+
De,
|
|
4091
4096
|
{
|
|
4092
4097
|
onClick: C,
|
|
4093
4098
|
ariaLabel: a(vt.NEXT_MONTH),
|
|
@@ -4141,7 +4146,7 @@ function qn({
|
|
|
4141
4146
|
"aria-selected": A,
|
|
4142
4147
|
tabIndex: M ? 0 : -1,
|
|
4143
4148
|
onClick: () => b(y),
|
|
4144
|
-
onKeyDown: (N) =>
|
|
4149
|
+
onKeyDown: (N) => D(N, $),
|
|
4145
4150
|
"aria-label": `${y.getDate()} ${E[y.getMonth()]} ${y.getFullYear()}`,
|
|
4146
4151
|
"data-selected": A,
|
|
4147
4152
|
"aria-disabled": F,
|
|
@@ -4166,7 +4171,7 @@ function qn({
|
|
|
4166
4171
|
}
|
|
4167
4172
|
);
|
|
4168
4173
|
}
|
|
4169
|
-
const
|
|
4174
|
+
const Zn = ({
|
|
4170
4175
|
bindValue: r,
|
|
4171
4176
|
placeholder: e,
|
|
4172
4177
|
onChange: t,
|
|
@@ -4191,29 +4196,29 @@ const Jn = ({
|
|
|
4191
4196
|
}), Tr(i, d);
|
|
4192
4197
|
const { format: m, getCurrentLanguage: g } = nt(), x = ye(
|
|
4193
4198
|
(C) => {
|
|
4194
|
-
const Y = C.length > 5 && Mr(C, g()) || C,
|
|
4199
|
+
const Y = C.length > 5 && Mr(C, g()) || C, j = m(Y, void 0, void 0, {
|
|
4195
4200
|
type: "date"
|
|
4196
|
-
}), P = typeof Y != "string",
|
|
4201
|
+
}), P = typeof Y != "string", D = P && Y.toISOString().substring(0, 10) || "";
|
|
4197
4202
|
return {
|
|
4198
4203
|
isValid: P,
|
|
4199
|
-
formattedDate:
|
|
4200
|
-
isoDate:
|
|
4204
|
+
formattedDate: j,
|
|
4205
|
+
isoDate: D,
|
|
4201
4206
|
normalizedDate: Y
|
|
4202
4207
|
};
|
|
4203
4208
|
},
|
|
4204
4209
|
[g, m]
|
|
4205
4210
|
);
|
|
4206
4211
|
oe(() => {
|
|
4207
|
-
const { formattedDate: C, isoDate: Y, isValid:
|
|
4208
|
-
c(
|
|
4212
|
+
const { formattedDate: C, isoDate: Y, isValid: j } = x(r);
|
|
4213
|
+
c(j && Y || r), l(j && C || r);
|
|
4209
4214
|
}, [r, m, x]);
|
|
4210
4215
|
const w = () => o((C) => !C), E = () => {
|
|
4211
4216
|
S(f);
|
|
4212
4217
|
}, O = (C) => {
|
|
4213
4218
|
S(C), o(!1);
|
|
4214
4219
|
}, S = (C) => {
|
|
4215
|
-
const { isoDate: Y, isValid:
|
|
4216
|
-
t && t(
|
|
4220
|
+
const { isoDate: Y, isValid: j } = x(C);
|
|
4221
|
+
t && t(j && Y || C);
|
|
4217
4222
|
}, b = (C) => {
|
|
4218
4223
|
l(C);
|
|
4219
4224
|
}, L = (C) => {
|
|
@@ -4236,7 +4241,7 @@ const Jn = ({
|
|
|
4236
4241
|
}
|
|
4237
4242
|
),
|
|
4238
4243
|
i && /* @__PURE__ */ v.jsx(
|
|
4239
|
-
|
|
4244
|
+
Xn,
|
|
4240
4245
|
{
|
|
4241
4246
|
disabledDateRanges: n,
|
|
4242
4247
|
onDateChange: O,
|
|
@@ -4245,7 +4250,7 @@ const Jn = ({
|
|
|
4245
4250
|
}
|
|
4246
4251
|
)
|
|
4247
4252
|
] });
|
|
4248
|
-
},
|
|
4253
|
+
}, Qn = ({
|
|
4249
4254
|
elements: r,
|
|
4250
4255
|
displayMode: e,
|
|
4251
4256
|
minimumChars: t,
|
|
@@ -4311,7 +4316,7 @@ const Jn = ({
|
|
|
4311
4316
|
]
|
|
4312
4317
|
}
|
|
4313
4318
|
);
|
|
4314
|
-
},
|
|
4319
|
+
}, es = ({ ...r }) => {
|
|
4315
4320
|
const [e, t] = Z(!1), n = e ? "visibility-off" : "visibility";
|
|
4316
4321
|
return /* @__PURE__ */ v.jsx(
|
|
4317
4322
|
Ce,
|
|
@@ -4324,7 +4329,7 @@ const Jn = ({
|
|
|
4324
4329
|
"data-component": "password"
|
|
4325
4330
|
}
|
|
4326
4331
|
);
|
|
4327
|
-
},
|
|
4332
|
+
}, ts = ({ ...r }) => {
|
|
4328
4333
|
const [e, t] = Z(r.bindValue), { translate: n } = nt(), s = (a) => {
|
|
4329
4334
|
var i;
|
|
4330
4335
|
a.key === "Enter" && (a.preventDefault(), (i = r.onEnter) == null || i.call(r, e));
|
|
@@ -4343,7 +4348,7 @@ const Jn = ({
|
|
|
4343
4348
|
_dataComponent: "search-bar"
|
|
4344
4349
|
}
|
|
4345
4350
|
);
|
|
4346
|
-
},
|
|
4351
|
+
}, rs = ({
|
|
4347
4352
|
bindValue: r,
|
|
4348
4353
|
optionalDisplayValue: e,
|
|
4349
4354
|
label: t
|
|
@@ -4408,7 +4413,7 @@ const Ge = (r, e, t) => ({
|
|
|
4408
4413
|
bindValue: n,
|
|
4409
4414
|
optionalDisplayValue: t.length >= s ? t[s] : ""
|
|
4410
4415
|
}));
|
|
4411
|
-
},
|
|
4416
|
+
}, ns = (r, e) => {
|
|
4412
4417
|
const t = new Ee(
|
|
4413
4418
|
r.obj,
|
|
4414
4419
|
e.map((s) => s.bindValue)
|
|
@@ -4417,7 +4422,7 @@ const Ge = (r, e, t) => ({
|
|
|
4417
4422
|
e.map((s) => s.optionalDisplayValue ? s.optionalDisplayValue : "")
|
|
4418
4423
|
).getLegacyValue();
|
|
4419
4424
|
return Ge(r, t, n);
|
|
4420
|
-
},
|
|
4425
|
+
}, ss = ({
|
|
4421
4426
|
disabled: r,
|
|
4422
4427
|
bindValue: e,
|
|
4423
4428
|
onChange: t,
|
|
@@ -4498,7 +4503,7 @@ const Ge = (r, e, t) => ({
|
|
|
4498
4503
|
label: o,
|
|
4499
4504
|
isEditable: m,
|
|
4500
4505
|
...n
|
|
4501
|
-
}, w = (S, b, L) => Ir(t) ? Ge(S, new qe(t, b).getLegacyValue()) : Ge(S, b, L), E = (S) => Ge(g, new ze(t, S).getLegacyValue()), O = (S) =>
|
|
4506
|
+
}, w = (S, b, L) => Ir(t) ? Ge(S, new qe(t, b).getLegacyValue()) : Ge(S, b, L), E = (S) => Ge(g, new ze(t, S).getLegacyValue()), O = (S) => ns(g, S);
|
|
4502
4507
|
switch (e) {
|
|
4503
4508
|
case ne.AUTOCOMPLETE: {
|
|
4504
4509
|
const S = {
|
|
@@ -4520,7 +4525,7 @@ const Ge = (r, e, t) => ({
|
|
|
4520
4525
|
f == null || f(w(g, t.k));
|
|
4521
4526
|
}
|
|
4522
4527
|
};
|
|
4523
|
-
return /* @__PURE__ */ v.jsx(
|
|
4528
|
+
return /* @__PURE__ */ v.jsx(De, { ...S });
|
|
4524
4529
|
}
|
|
4525
4530
|
case ne.BUTTON_LIST: {
|
|
4526
4531
|
const S = {
|
|
@@ -4531,7 +4536,7 @@ const Ge = (r, e, t) => ({
|
|
|
4531
4536
|
f == null || f(w(C, b));
|
|
4532
4537
|
}
|
|
4533
4538
|
};
|
|
4534
|
-
return /* @__PURE__ */ v.jsx(
|
|
4539
|
+
return /* @__PURE__ */ v.jsx(pn, { ...S });
|
|
4535
4540
|
}
|
|
4536
4541
|
case ne.COMBOBOX: {
|
|
4537
4542
|
const S = {
|
|
@@ -4542,7 +4547,7 @@ const Ge = (r, e, t) => ({
|
|
|
4542
4547
|
c == null || c(w(g, b, L));
|
|
4543
4548
|
}
|
|
4544
4549
|
};
|
|
4545
|
-
return /* @__PURE__ */ v.jsx(
|
|
4550
|
+
return /* @__PURE__ */ v.jsx(gn, { ...S });
|
|
4546
4551
|
}
|
|
4547
4552
|
case ne.SWITCH:
|
|
4548
4553
|
case ne.CHECKBOX: {
|
|
@@ -4554,7 +4559,7 @@ const Ge = (r, e, t) => ({
|
|
|
4554
4559
|
c == null || c(E(b));
|
|
4555
4560
|
}
|
|
4556
4561
|
};
|
|
4557
|
-
return /* @__PURE__ */ v.jsx(
|
|
4562
|
+
return /* @__PURE__ */ v.jsx(hn, { ...S });
|
|
4558
4563
|
}
|
|
4559
4564
|
case ne.CHIP: {
|
|
4560
4565
|
const S = {
|
|
@@ -4571,7 +4576,7 @@ const Ge = (r, e, t) => ({
|
|
|
4571
4576
|
c == null || c(w(g, b));
|
|
4572
4577
|
}
|
|
4573
4578
|
};
|
|
4574
|
-
return /* @__PURE__ */ v.jsx(
|
|
4579
|
+
return /* @__PURE__ */ v.jsx(Zn, { ...S });
|
|
4575
4580
|
}
|
|
4576
4581
|
case ne.ICON:
|
|
4577
4582
|
case ne.IMAGE: {
|
|
@@ -4594,7 +4599,7 @@ const Ge = (r, e, t) => ({
|
|
|
4594
4599
|
c == null || c(O(b));
|
|
4595
4600
|
}
|
|
4596
4601
|
};
|
|
4597
|
-
return /* @__PURE__ */ v.jsx(
|
|
4602
|
+
return /* @__PURE__ */ v.jsx(Qn, { ...S });
|
|
4598
4603
|
}
|
|
4599
4604
|
case ne.MEMO: {
|
|
4600
4605
|
const S = {
|
|
@@ -4605,7 +4610,7 @@ const Ge = (r, e, t) => ({
|
|
|
4605
4610
|
c == null || c(w(g, b));
|
|
4606
4611
|
}
|
|
4607
4612
|
};
|
|
4608
|
-
return /* @__PURE__ */ v.jsx(
|
|
4613
|
+
return /* @__PURE__ */ v.jsx(ss, { ...S });
|
|
4609
4614
|
}
|
|
4610
4615
|
case ne.PASSWORD: {
|
|
4611
4616
|
const S = {
|
|
@@ -4615,7 +4620,7 @@ const Ge = (r, e, t) => ({
|
|
|
4615
4620
|
c == null || c(w(g, b));
|
|
4616
4621
|
}
|
|
4617
4622
|
};
|
|
4618
|
-
return /* @__PURE__ */ v.jsx(
|
|
4623
|
+
return /* @__PURE__ */ v.jsx(es, { ...S });
|
|
4619
4624
|
}
|
|
4620
4625
|
case ne.SPOTLIGHT: {
|
|
4621
4626
|
const S = {
|
|
@@ -4625,7 +4630,7 @@ const Ge = (r, e, t) => ({
|
|
|
4625
4630
|
l == null || l(w(g, b));
|
|
4626
4631
|
}
|
|
4627
4632
|
};
|
|
4628
|
-
return /* @__PURE__ */ v.jsx(
|
|
4633
|
+
return /* @__PURE__ */ v.jsx(ts, { ...S });
|
|
4629
4634
|
}
|
|
4630
4635
|
case ne.TEXT_FIELD: {
|
|
4631
4636
|
const S = {
|
|
@@ -4644,24 +4649,24 @@ const Ge = (r, e, t) => ({
|
|
|
4644
4649
|
bindValue: t.k,
|
|
4645
4650
|
optionalDisplayValue: r
|
|
4646
4651
|
};
|
|
4647
|
-
return /* @__PURE__ */ v.jsx(
|
|
4652
|
+
return /* @__PURE__ */ v.jsx(rs, { ...S });
|
|
4648
4653
|
}
|
|
4649
4654
|
}
|
|
4650
|
-
},
|
|
4655
|
+
}, as = (r, e) => {
|
|
4651
4656
|
const t = [];
|
|
4652
4657
|
for (let n = 0; n < r.length; n += e)
|
|
4653
4658
|
t.push(r.slice(n, n + e));
|
|
4654
4659
|
return t;
|
|
4655
|
-
},
|
|
4660
|
+
}, jr = (r, e) => r.map((t) => {
|
|
4656
4661
|
var a, i;
|
|
4657
4662
|
if ((a = t.sections) != null && a.length)
|
|
4658
4663
|
return {
|
|
4659
4664
|
...t,
|
|
4660
|
-
sections:
|
|
4665
|
+
sections: jr(t.sections, e),
|
|
4661
4666
|
content: t.content
|
|
4662
4667
|
};
|
|
4663
4668
|
let n = t.sections, s = t.content;
|
|
4664
|
-
return (i = t.content) != null && i.length && t.columns && +t.columns > 1 && (n =
|
|
4669
|
+
return (i = t.content) != null && i.length && t.columns && +t.columns > 1 && (n = as(
|
|
4665
4670
|
t.content.filter((u) => !!e[u.id]),
|
|
4666
4671
|
+t.columns
|
|
4667
4672
|
).map(
|
|
@@ -4711,7 +4716,7 @@ const Ge = (r, e, t) => ({
|
|
|
4711
4716
|
]
|
|
4712
4717
|
}
|
|
4713
4718
|
}) => {
|
|
4714
|
-
const t = "--smp-grid-template-cols", n = "--smp-grid-template-rows", s =
|
|
4719
|
+
const t = "--smp-grid-template-cols", n = "--smp-grid-template-rows", s = jr(e.sections || [], r), a = (l) => l == null ? void 0 : l.reduce((p, d) => {
|
|
4715
4720
|
var E, O;
|
|
4716
4721
|
let m = "", g = {}, x = {}, w = "";
|
|
4717
4722
|
return (E = d.sections) != null && E.length ? (m = pe["smp-layout-section-grid"], g = a(d.sections), d.gridCols == null && (w = `${pe[d.horizontal ? "smp-grid-template-cols" : "smp-grid-template-rows"]}`, (d.horizontal || pr(d.sections)) && (x = dr(
|
|
@@ -4779,7 +4784,7 @@ const Ge = (r, e, t) => ({
|
|
|
4779
4784
|
) : /* @__PURE__ */ v.jsx(v.Fragment, {});
|
|
4780
4785
|
};
|
|
4781
4786
|
return /* @__PURE__ */ v.jsx("div", { className: o.container, style: u, "smp-id": "layout", children: s == null ? void 0 : s.map((l) => c(l)) });
|
|
4782
|
-
},
|
|
4787
|
+
}, js = ({ data: r, onClick: e, onEnter: t }) => {
|
|
4783
4788
|
var i, o;
|
|
4784
4789
|
const [n, s] = Z(), a = ye(
|
|
4785
4790
|
(u) => {
|
|
@@ -4822,7 +4827,7 @@ const Ge = (r, e, t) => ({
|
|
|
4822
4827
|
return oe(() => {
|
|
4823
4828
|
r && s(a(r));
|
|
4824
4829
|
}, [r, a]), !((i = r == null ? void 0 : r.rows) != null && i.length) || !((o = r.columns) != null && o.length) ? null : n && /* @__PURE__ */ v.jsx("header", { className: "smp-appbar", "aria-label": "App Bar", children: /* @__PURE__ */ v.jsx(Rt, { layout: r.rows[0].layout, cells: n }) });
|
|
4825
|
-
},
|
|
4830
|
+
}, is = (r) => {
|
|
4826
4831
|
var e;
|
|
4827
4832
|
return (e = r.children) != null && e.length ? r.children.map((t) => {
|
|
4828
4833
|
var n, s;
|
|
@@ -4833,7 +4838,7 @@ const Ge = (r, e, t) => ({
|
|
|
4833
4838
|
icon: t.icon
|
|
4834
4839
|
};
|
|
4835
4840
|
}) : [];
|
|
4836
|
-
}, ce = (r) => r == null ? !1 : typeof r == "string" ? r.toLocaleLowerCase() == "yes" : r,
|
|
4841
|
+
}, ce = (r) => r == null ? !1 : typeof r == "string" ? r.toLocaleLowerCase() == "yes" : r, Ds = ({
|
|
4837
4842
|
data: r,
|
|
4838
4843
|
logo: e,
|
|
4839
4844
|
open: t,
|
|
@@ -4851,12 +4856,12 @@ const Ge = (r, e, t) => ({
|
|
|
4851
4856
|
if (!((C = b == null ? void 0 : b.rows) != null && C.length) || !((Y = b == null ? void 0 : b.columns) != null && Y.length))
|
|
4852
4857
|
return {};
|
|
4853
4858
|
const L = b.rows[0];
|
|
4854
|
-
return b.columns.filter((
|
|
4855
|
-
const
|
|
4856
|
-
if (!
|
|
4857
|
-
return
|
|
4859
|
+
return b.columns.filter((j) => j.visible ?? !0).reduce((j, P) => {
|
|
4860
|
+
const D = L.cells[P.name];
|
|
4861
|
+
if (!D || !l && ce(n) && D.shape !== ne.BUTTON && D.shape !== ne.BUTTON_LIST)
|
|
4862
|
+
return j;
|
|
4858
4863
|
const k = {
|
|
4859
|
-
...
|
|
4864
|
+
...D,
|
|
4860
4865
|
onChange: (U) => {
|
|
4861
4866
|
f((H) => {
|
|
4862
4867
|
const z = { ...H };
|
|
@@ -4870,14 +4875,14 @@ const Ge = (r, e, t) => ({
|
|
|
4870
4875
|
i && i(U);
|
|
4871
4876
|
}
|
|
4872
4877
|
};
|
|
4873
|
-
return u &&
|
|
4874
|
-
(z) =>
|
|
4878
|
+
return u && D.shape == ne.BUTTON_LIST && (k.onOptionsRequest = (U, H) => u(U, H).then(
|
|
4879
|
+
(z) => is(z)
|
|
4875
4880
|
)), !l && ce(n) && (k.data = {
|
|
4876
4881
|
...k.data,
|
|
4877
4882
|
showText: !1,
|
|
4878
4883
|
justify: "center"
|
|
4879
4884
|
}), {
|
|
4880
|
-
...
|
|
4885
|
+
...j,
|
|
4881
4886
|
[P.name]: k
|
|
4882
4887
|
};
|
|
4883
4888
|
}, {});
|
|
@@ -4964,7 +4969,7 @@ const Ge = (r, e, t) => ({
|
|
|
4964
4969
|
}
|
|
4965
4970
|
)
|
|
4966
4971
|
] });
|
|
4967
|
-
},
|
|
4972
|
+
}, $s = ({
|
|
4968
4973
|
ColumnsNumber: r = 1,
|
|
4969
4974
|
data: e = {},
|
|
4970
4975
|
ForceText: t,
|
|
@@ -4986,9 +4991,9 @@ const Ge = (r, e, t) => ({
|
|
|
4986
4991
|
SelectLayout: E = "1",
|
|
4987
4992
|
onClick: O
|
|
4988
4993
|
}) => {
|
|
4989
|
-
const S = "N/A", b = (e == null ? void 0 : e.columns) || [], L = (e == null ? void 0 : e.rows) || [], C = L.length > 0, Y = "--smp-dashList-color",
|
|
4994
|
+
const S = "N/A", b = (e == null ? void 0 : e.columns) || [], L = (e == null ? void 0 : e.rows) || [], C = L.length > 0, Y = "--smp-dashList-color", j = "smp-layout", P = "descr", D = "icon", k = "um", U = "value", H = i || "1em", z = "18px", K = "--smp-dashList-columns", J = "--smp-dashList-fontSize", W = {
|
|
4990
4995
|
dash: (V = "1") => {
|
|
4991
|
-
const X = h(V), te = X, re = y(X, P), de = y(X,
|
|
4996
|
+
const X = h(V), te = X, re = y(X, P), de = y(X, D), be = y(X, k), he = y(X, U);
|
|
4992
4997
|
return {
|
|
4993
4998
|
container: te,
|
|
4994
4999
|
descr: re,
|
|
@@ -4999,7 +5004,7 @@ const Ge = (r, e, t) => ({
|
|
|
4999
5004
|
},
|
|
5000
5005
|
dashList: `smp-dash-list ${ce(a) ? "smp-dash-list-fill-space" : ""}
|
|
5001
5006
|
${ce(o) ? "smp-dash-list-horizontal" : ""}`
|
|
5002
|
-
}, { format: _ } = nt(), h = (V) => `${
|
|
5007
|
+
}, { format: _ } = nt(), h = (V) => `${j}-${V}`, y = (V, X) => `${V}__${X}`, T = (V) => `${Y}-${V}`, $ = (V) => {
|
|
5003
5008
|
const X = /R(\d{1,3})G(\d{1,3})B(\d{1,3})/;
|
|
5004
5009
|
if (X.test(V)) {
|
|
5005
5010
|
const re = V.match(X) || [];
|
|
@@ -5048,7 +5053,7 @@ const Ge = (r, e, t) => ({
|
|
|
5048
5053
|
icon: te,
|
|
5049
5054
|
width: z
|
|
5050
5055
|
}
|
|
5051
|
-
) }, `${V}-${
|
|
5056
|
+
) }, `${V}-${D}`),
|
|
5052
5057
|
um: (te) => /* @__PURE__ */ v.jsx("div", { className: X.um, children: te }, `${V}-${k}`),
|
|
5053
5058
|
value: (te) => /* @__PURE__ */ v.jsx("div", { className: X.value, children: te }, `${V}-${U}`)
|
|
5054
5059
|
};
|
|
@@ -5092,25 +5097,25 @@ const Ge = (r, e, t) => ({
|
|
|
5092
5097
|
"smp-table": "_smp-table_8dmh0_1",
|
|
5093
5098
|
"smp-headerCell": "_smp-headerCell_8dmh0_35",
|
|
5094
5099
|
"smp-resizer": "_smp-resizer_8dmh0_44"
|
|
5095
|
-
},
|
|
5096
|
-
rowContent:
|
|
5097
|
-
clickable:
|
|
5098
|
-
indent:
|
|
5099
|
-
toggle:
|
|
5100
|
-
rowLabel:
|
|
5101
|
-
cell:
|
|
5102
|
-
leftSection:
|
|
5100
|
+
}, os = "_rowContent_gazwe_13", ls = "_clickable_gazwe_42", cs = "_indent_gazwe_47", us = "_toggle_gazwe_53", fs = "_rowLabel_gazwe_69", ds = "_cell_gazwe_78", ps = "_leftSection_gazwe_86", we = {
|
|
5101
|
+
rowContent: os,
|
|
5102
|
+
clickable: ls,
|
|
5103
|
+
indent: cs,
|
|
5104
|
+
toggle: us,
|
|
5105
|
+
rowLabel: fs,
|
|
5106
|
+
cell: ds,
|
|
5107
|
+
leftSection: ps
|
|
5103
5108
|
};
|
|
5104
5109
|
function Ke(r) {
|
|
5105
5110
|
return !!r && "children" in r;
|
|
5106
5111
|
}
|
|
5107
|
-
function
|
|
5112
|
+
function hs(r) {
|
|
5108
5113
|
return !Ke(r);
|
|
5109
5114
|
}
|
|
5110
|
-
function
|
|
5115
|
+
function ms(r) {
|
|
5111
5116
|
return JSON.stringify(r).split("").reduce((e, t) => (e << 5) - e + t.charCodeAt(0) | 0, 0).toString();
|
|
5112
5117
|
}
|
|
5113
|
-
const
|
|
5118
|
+
const Dr = ({
|
|
5114
5119
|
row: r,
|
|
5115
5120
|
columnWidths: e = {},
|
|
5116
5121
|
level: t = 0,
|
|
@@ -5133,7 +5138,7 @@ const jr = ({
|
|
|
5133
5138
|
"aria-hidden": "true"
|
|
5134
5139
|
}
|
|
5135
5140
|
), x = () => {
|
|
5136
|
-
const O =
|
|
5141
|
+
const O = hs(r) ? "" : r.decode || (u ? "" : "Untitled"), S = s ?? n * t;
|
|
5137
5142
|
return /* @__PURE__ */ v.jsxs(
|
|
5138
5143
|
"tr",
|
|
5139
5144
|
{
|
|
@@ -5172,20 +5177,20 @@ const jr = ({
|
|
|
5172
5177
|
},
|
|
5173
5178
|
children: d(L)
|
|
5174
5179
|
},
|
|
5175
|
-
|
|
5180
|
+
ms(L) || b
|
|
5176
5181
|
))
|
|
5177
5182
|
]
|
|
5178
5183
|
}
|
|
5179
5184
|
);
|
|
5180
5185
|
}, w = () => {
|
|
5181
5186
|
var O;
|
|
5182
|
-
return a || !o ? null : /* @__PURE__ */ v.jsx(v.Fragment, { children: Ke(r) && ((O = r.children) == null ? void 0 : O.map((S, b) => /* @__PURE__ */ v.jsx(
|
|
5187
|
+
return a || !o ? null : /* @__PURE__ */ v.jsx(v.Fragment, { children: Ke(r) && ((O = r.children) == null ? void 0 : O.map((S, b) => /* @__PURE__ */ v.jsx(Dr, { row: S, level: t + 1 }, `child-${b}`))) });
|
|
5183
5188
|
};
|
|
5184
5189
|
return /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
|
|
5185
5190
|
x(),
|
|
5186
5191
|
w()
|
|
5187
5192
|
] });
|
|
5188
|
-
},
|
|
5193
|
+
}, gs = ({
|
|
5189
5194
|
label: r,
|
|
5190
5195
|
rowHeight: e = 28,
|
|
5191
5196
|
offsetTop: t = 0,
|
|
@@ -5230,11 +5235,11 @@ const jr = ({
|
|
|
5230
5235
|
}
|
|
5231
5236
|
);
|
|
5232
5237
|
};
|
|
5233
|
-
function
|
|
5238
|
+
function ys(r, e) {
|
|
5234
5239
|
const t = new Set(r);
|
|
5235
5240
|
return t.has(e) ? t.delete(e) : t.add(e), t;
|
|
5236
5241
|
}
|
|
5237
|
-
function
|
|
5242
|
+
function vs(r, e) {
|
|
5238
5243
|
return r.map((t) => {
|
|
5239
5244
|
const n = e.find((s) => s.column === t.bindValue);
|
|
5240
5245
|
return {
|
|
@@ -5243,7 +5248,7 @@ function gs(r, e) {
|
|
|
5243
5248
|
};
|
|
5244
5249
|
});
|
|
5245
5250
|
}
|
|
5246
|
-
function
|
|
5251
|
+
function bs(r, e, t, n) {
|
|
5247
5252
|
const s = [];
|
|
5248
5253
|
let a = 0;
|
|
5249
5254
|
return i(r, 0, []), { flatRows: s, offset: a };
|
|
@@ -5285,7 +5290,7 @@ function ys(r, e, t, n) {
|
|
|
5285
5290
|
s.push(p), a += t;
|
|
5286
5291
|
}
|
|
5287
5292
|
}
|
|
5288
|
-
const
|
|
5293
|
+
const xs = ({
|
|
5289
5294
|
groups: r = [],
|
|
5290
5295
|
isDraggable: e = !0,
|
|
5291
5296
|
isEditable: t = !0,
|
|
@@ -5319,7 +5324,7 @@ const vs = ({
|
|
|
5319
5324
|
]
|
|
5320
5325
|
}
|
|
5321
5326
|
);
|
|
5322
|
-
},
|
|
5327
|
+
}, Cs = ({
|
|
5323
5328
|
data: r,
|
|
5324
5329
|
lineHeight: e = 28,
|
|
5325
5330
|
TableHeight: t = 400,
|
|
@@ -5329,14 +5334,14 @@ const vs = ({
|
|
|
5329
5334
|
}) => {
|
|
5330
5335
|
var Y;
|
|
5331
5336
|
const [i, o] = Z(r), [u, c] = Z(n || []), [f, l] = Z(/* @__PURE__ */ new Set()), p = i && i.columns ? Object.fromEntries(
|
|
5332
|
-
i.columns.map((
|
|
5337
|
+
i.columns.map((j) => [j.name, 120])
|
|
5333
5338
|
// ADD col.width to manage existing col width
|
|
5334
5339
|
) : {}, [d, m] = Z(p), g = ve(null);
|
|
5335
5340
|
oe(() => {
|
|
5336
|
-
var
|
|
5341
|
+
var D;
|
|
5337
5342
|
if (!i || !i.columns || i.columns.length)
|
|
5338
5343
|
return;
|
|
5339
|
-
const
|
|
5344
|
+
const j = ((D = g.current) == null ? void 0 : D.clientWidth) ?? 1e3;
|
|
5340
5345
|
let P = {};
|
|
5341
5346
|
switch (s) {
|
|
5342
5347
|
case "fixed":
|
|
@@ -5345,7 +5350,7 @@ const vs = ({
|
|
|
5345
5350
|
);
|
|
5346
5351
|
break;
|
|
5347
5352
|
case "fit-grid": {
|
|
5348
|
-
const k = i.columns.filter((H) => H.visible), U = Math.floor(
|
|
5353
|
+
const k = i.columns.filter((H) => H.visible), U = Math.floor(j / k.length);
|
|
5349
5354
|
P = Object.fromEntries(
|
|
5350
5355
|
k.map((H) => [H.name, U])
|
|
5351
5356
|
);
|
|
@@ -5373,35 +5378,35 @@ const vs = ({
|
|
|
5373
5378
|
m(P);
|
|
5374
5379
|
}, [s, r, i]), oe(() => {
|
|
5375
5380
|
if (u != null && u.length && r.rows) {
|
|
5376
|
-
const { flatRows:
|
|
5381
|
+
const { flatRows: j } = bs(
|
|
5377
5382
|
r.rows,
|
|
5378
5383
|
u,
|
|
5379
5384
|
e,
|
|
5380
5385
|
f
|
|
5381
5386
|
);
|
|
5382
|
-
o({ ...r, rows:
|
|
5387
|
+
o({ ...r, rows: j });
|
|
5383
5388
|
} else
|
|
5384
5389
|
o(r);
|
|
5385
5390
|
}, [r, u, f, e]);
|
|
5386
|
-
const x = (
|
|
5387
|
-
c(
|
|
5388
|
-
}, w = (
|
|
5389
|
-
|
|
5390
|
-
const P =
|
|
5391
|
+
const x = (j) => {
|
|
5392
|
+
c(vs(j, u));
|
|
5393
|
+
}, w = (j) => {
|
|
5394
|
+
j.preventDefault();
|
|
5395
|
+
const P = j.dataTransfer.getData("text/plain");
|
|
5391
5396
|
if (!P || u.some((U) => U.column === P))
|
|
5392
5397
|
return;
|
|
5393
5398
|
const k = [...u, { column: P, visible: !0 }];
|
|
5394
5399
|
c(k);
|
|
5395
|
-
}, E = (
|
|
5396
|
-
|
|
5400
|
+
}, E = (j) => {
|
|
5401
|
+
j.preventDefault();
|
|
5397
5402
|
}, { virtualItems: O, containerProps: S, innerProps: b } = xr({
|
|
5398
5403
|
items: (i == null ? void 0 : i.rows) || [],
|
|
5399
5404
|
itemHeight: e,
|
|
5400
5405
|
containerHeight: t,
|
|
5401
5406
|
overscan: 5
|
|
5402
|
-
}), L = (
|
|
5403
|
-
const
|
|
5404
|
-
const K = z.clientX -
|
|
5407
|
+
}), L = (j, P) => {
|
|
5408
|
+
const D = j.clientX, k = d[P], U = (z) => {
|
|
5409
|
+
const K = z.clientX - D, J = Math.max(50, k + K);
|
|
5405
5410
|
m((W) => ({
|
|
5406
5411
|
...W,
|
|
5407
5412
|
[P]: J
|
|
@@ -5424,7 +5429,7 @@ const vs = ({
|
|
|
5424
5429
|
children: /* @__PURE__ */ v.jsxs("table", { children: [
|
|
5425
5430
|
/* @__PURE__ */ v.jsxs("thead", { children: [
|
|
5426
5431
|
(n || a) && /* @__PURE__ */ v.jsx(
|
|
5427
|
-
|
|
5432
|
+
xs,
|
|
5428
5433
|
{
|
|
5429
5434
|
groups: u,
|
|
5430
5435
|
onChange: x,
|
|
@@ -5433,73 +5438,73 @@ const vs = ({
|
|
|
5433
5438
|
}
|
|
5434
5439
|
),
|
|
5435
5440
|
/* @__PURE__ */ v.jsx("tr", { children: i.columns && ((Y = i.columns) == null ? void 0 : Y.map(
|
|
5436
|
-
(
|
|
5441
|
+
(j) => j.visible && /* @__PURE__ */ v.jsxs(
|
|
5437
5442
|
"th",
|
|
5438
5443
|
{
|
|
5439
5444
|
className: C.headerCell,
|
|
5440
5445
|
draggable: !0,
|
|
5441
5446
|
onDragStart: (P) => {
|
|
5442
|
-
P.dataTransfer.setData("text/plain",
|
|
5447
|
+
P.dataTransfer.setData("text/plain", j.name);
|
|
5443
5448
|
},
|
|
5444
5449
|
style: {
|
|
5445
|
-
width: d[
|
|
5446
|
-
minWidth: d[
|
|
5447
|
-
maxWidth: d[
|
|
5450
|
+
width: d[j.name],
|
|
5451
|
+
minWidth: d[j.name],
|
|
5452
|
+
maxWidth: d[j.name]
|
|
5448
5453
|
},
|
|
5449
5454
|
children: [
|
|
5450
5455
|
/* @__PURE__ */ v.jsx(
|
|
5451
5456
|
ke,
|
|
5452
5457
|
{
|
|
5453
5458
|
variant: "title",
|
|
5454
|
-
bindValue:
|
|
5459
|
+
bindValue: j.title
|
|
5455
5460
|
}
|
|
5456
5461
|
),
|
|
5457
5462
|
/* @__PURE__ */ v.jsx(
|
|
5458
5463
|
"div",
|
|
5459
5464
|
{
|
|
5460
5465
|
className: C.resizer,
|
|
5461
|
-
onMouseDown: (P) => L(P,
|
|
5466
|
+
onMouseDown: (P) => L(P, j.name),
|
|
5462
5467
|
role: "region"
|
|
5463
5468
|
}
|
|
5464
5469
|
)
|
|
5465
5470
|
]
|
|
5466
5471
|
},
|
|
5467
|
-
|
|
5472
|
+
j.name
|
|
5468
5473
|
)
|
|
5469
5474
|
)) })
|
|
5470
5475
|
] }),
|
|
5471
5476
|
/* @__PURE__ */ v.jsx("tbody", { ...b, children: O.map(
|
|
5472
|
-
({ item:
|
|
5473
|
-
|
|
5477
|
+
({ item: j, index: P, offsetTop: D }) => j.isGroup ? /* @__PURE__ */ v.jsx(
|
|
5478
|
+
gs,
|
|
5474
5479
|
{
|
|
5475
|
-
label:
|
|
5480
|
+
label: j.value || "",
|
|
5476
5481
|
rowHeight: e,
|
|
5477
|
-
offsetTop:
|
|
5478
|
-
level:
|
|
5482
|
+
offsetTop: D,
|
|
5483
|
+
level: j.level,
|
|
5479
5484
|
onClick: () => {
|
|
5480
|
-
const k =
|
|
5481
|
-
k && l((U) =>
|
|
5485
|
+
const k = j.rowId;
|
|
5486
|
+
k && l((U) => ys(U, k));
|
|
5482
5487
|
},
|
|
5483
|
-
isExpanded:
|
|
5488
|
+
isExpanded: j.isExpanded
|
|
5484
5489
|
},
|
|
5485
|
-
|
|
5490
|
+
j.rowId || `group-${P}`
|
|
5486
5491
|
) : /* @__PURE__ */ v.jsx(
|
|
5487
|
-
|
|
5492
|
+
Dr,
|
|
5488
5493
|
{
|
|
5489
|
-
row:
|
|
5494
|
+
row: j,
|
|
5490
5495
|
columnWidths: d,
|
|
5491
5496
|
rowHeight: e,
|
|
5492
|
-
offsetTop:
|
|
5497
|
+
offsetTop: D,
|
|
5493
5498
|
isGroup: !1
|
|
5494
5499
|
},
|
|
5495
|
-
|
|
5500
|
+
j.rowId || `row-${P}`
|
|
5496
5501
|
)
|
|
5497
5502
|
) }),
|
|
5498
5503
|
/* @__PURE__ */ v.jsx("tfoot", { children: /* @__PURE__ */ v.jsx("span", { children: "Tfooter here" }) })
|
|
5499
5504
|
] })
|
|
5500
5505
|
}
|
|
5501
5506
|
);
|
|
5502
|
-
},
|
|
5507
|
+
}, Ps = ({
|
|
5503
5508
|
data: r,
|
|
5504
5509
|
Type: e,
|
|
5505
5510
|
ShowSubmit: t = !1,
|
|
@@ -5552,7 +5557,7 @@ const vs = ({
|
|
|
5552
5557
|
),
|
|
5553
5558
|
ce(t) && //TODO: translation
|
|
5554
5559
|
/* @__PURE__ */ v.jsx(
|
|
5555
|
-
|
|
5560
|
+
De,
|
|
5556
5561
|
{
|
|
5557
5562
|
optionalDisplayValue: "Confirm",
|
|
5558
5563
|
onClick: () => u == null ? void 0 : u(f),
|
|
@@ -5560,18 +5565,18 @@ const vs = ({
|
|
|
5560
5565
|
}
|
|
5561
5566
|
)
|
|
5562
5567
|
] });
|
|
5563
|
-
},
|
|
5568
|
+
}, Ss = (r) => (r == null ? void 0 : r.type) === "SmeupDataTree", ws = (r) => (r == null ? void 0 : r.type) === "SmeupDataTable", Es = (r) => Ss(r) ? r.children ? r.children.map(
|
|
5564
5569
|
(e) => ({
|
|
5565
5570
|
id: e.obj.k,
|
|
5566
5571
|
label: e.value ?? ""
|
|
5567
5572
|
})
|
|
5568
|
-
) : [] :
|
|
5573
|
+
) : [] : ws(r) ? r.rows.map((e) => {
|
|
5569
5574
|
const t = e.cells || e.cells, [n, s] = Object.keys(t);
|
|
5570
5575
|
return {
|
|
5571
5576
|
id: t[n].obj.k,
|
|
5572
5577
|
label: t[s].value || t[s].obj.k
|
|
5573
5578
|
};
|
|
5574
|
-
}) : [],
|
|
5579
|
+
}) : [], As = ({
|
|
5575
5580
|
data: r,
|
|
5576
5581
|
readOnly: e = !1,
|
|
5577
5582
|
hiddenSubmitButton: t = !1,
|
|
@@ -5610,7 +5615,7 @@ const vs = ({
|
|
|
5610
5615
|
}));
|
|
5611
5616
|
}
|
|
5612
5617
|
};
|
|
5613
|
-
return w.fun && (w.shape == ne.AUTOCOMPLETE || w.shape == ne.MULTI_AUTOCOMPLETE || w.shape == ne.COMBOBOX) && (w.onOptionsRequest = async (E, O) =>
|
|
5618
|
+
return w.fun && (w.shape == ne.AUTOCOMPLETE || w.shape == ne.MULTI_AUTOCOMPLETE || w.shape == ne.COMBOBOX) && (w.onOptionsRequest = async (E, O) => Es(
|
|
5614
5619
|
await n(E, O, r, x.name)
|
|
5615
5620
|
)), w.isEditable == null && (w.isEditable = !0), e && (w.isEditable = !1), w.isEditable && w.shape == null && (w.shape = ne.TEXT_FIELD), {
|
|
5616
5621
|
...g,
|
|
@@ -5642,7 +5647,7 @@ const vs = ({
|
|
|
5642
5647
|
children: [
|
|
5643
5648
|
/* @__PURE__ */ v.jsx(Rt, { layout: r.rows[0].layout, cells: a }),
|
|
5644
5649
|
!t && /* @__PURE__ */ v.jsx(
|
|
5645
|
-
|
|
5650
|
+
De,
|
|
5646
5651
|
{
|
|
5647
5652
|
onClick: o,
|
|
5648
5653
|
bindValue: "submit",
|
|
@@ -5654,20 +5659,20 @@ const vs = ({
|
|
|
5654
5659
|
);
|
|
5655
5660
|
};
|
|
5656
5661
|
export {
|
|
5657
|
-
|
|
5662
|
+
js as AppBar,
|
|
5658
5663
|
Er as Autocomplete,
|
|
5659
|
-
|
|
5660
|
-
|
|
5661
|
-
|
|
5662
|
-
|
|
5663
|
-
|
|
5664
|
-
|
|
5665
|
-
|
|
5666
|
-
|
|
5667
|
-
|
|
5664
|
+
De as Button,
|
|
5665
|
+
pn as ButtonList,
|
|
5666
|
+
hn as Checkbox,
|
|
5667
|
+
gn as Combobox,
|
|
5668
|
+
$s as DashList,
|
|
5669
|
+
Cs as DataTableComponent,
|
|
5670
|
+
Zn as DatePicker,
|
|
5671
|
+
Ds as Drawer,
|
|
5672
|
+
Ps as Field,
|
|
5668
5673
|
ue as Icon,
|
|
5669
|
-
|
|
5670
|
-
|
|
5674
|
+
As as InputPanel,
|
|
5675
|
+
es as Password,
|
|
5671
5676
|
Ce as Textfield,
|
|
5672
|
-
|
|
5677
|
+
Rs as configurePaths
|
|
5673
5678
|
};
|