@sme.up/ketchup2 2.0.0-SNAPSHOT-20250610091519 → 2.0.0-SNAPSHOT-20250610104613
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
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var wr = Object.defineProperty;
|
|
2
2
|
var Er = (r, e, t) => e in r ? wr(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
3
|
-
var
|
|
3
|
+
var Se = (r, e, t) => Er(r, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
import * as ke from "react";
|
|
5
|
-
import ar, { useEffect as le, useRef as
|
|
6
|
-
var Ne = { exports: {} },
|
|
5
|
+
import ar, { useEffect as le, useRef as xe, useState as X, useCallback as ye, useLayoutEffect as Tr, useId as Or } from "react";
|
|
6
|
+
var Ne = { exports: {} }, Pe = {};
|
|
7
7
|
/**
|
|
8
8
|
* @license React
|
|
9
9
|
* react-jsx-runtime.production.js
|
|
@@ -15,7 +15,7 @@ var Ne = { exports: {} }, De = {};
|
|
|
15
15
|
*/
|
|
16
16
|
var vt;
|
|
17
17
|
function Rr() {
|
|
18
|
-
if (vt) return
|
|
18
|
+
if (vt) return Pe;
|
|
19
19
|
vt = 1;
|
|
20
20
|
var r = Symbol.for("react.transitional.element"), e = Symbol.for("react.fragment");
|
|
21
21
|
function t(n, s, a) {
|
|
@@ -33,9 +33,9 @@ function Rr() {
|
|
|
33
33
|
props: a
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
|
-
return
|
|
36
|
+
return Pe.Fragment = e, Pe.jsx = t, Pe.jsxs = t, Pe;
|
|
37
37
|
}
|
|
38
|
-
var
|
|
38
|
+
var $e = {};
|
|
39
39
|
/**
|
|
40
40
|
* @license React
|
|
41
41
|
* react-jsx-runtime.development.js
|
|
@@ -251,7 +251,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
251
251
|
d,
|
|
252
252
|
a
|
|
253
253
|
)(), G = W(n(a)), I = {};
|
|
254
|
-
|
|
254
|
+
$e.Fragment = y, $e.jsx = function(p, m, E, O, T) {
|
|
255
255
|
var $ = 1e4 > N.recentlyCreatedOwnerStacks++;
|
|
256
256
|
return u(
|
|
257
257
|
p,
|
|
@@ -263,7 +263,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
263
263
|
$ ? Error("react-stack-top-frame") : U,
|
|
264
264
|
$ ? W(n(p)) : G
|
|
265
265
|
);
|
|
266
|
-
},
|
|
266
|
+
}, $e.jsxs = function(p, m, E, O, T) {
|
|
267
267
|
var $ = 1e4 > N.recentlyCreatedOwnerStacks++;
|
|
268
268
|
return u(
|
|
269
269
|
p,
|
|
@@ -276,7 +276,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
276
276
|
$ ? W(n(p)) : G
|
|
277
277
|
);
|
|
278
278
|
};
|
|
279
|
-
}()),
|
|
279
|
+
}()), $e;
|
|
280
280
|
}
|
|
281
281
|
var xt;
|
|
282
282
|
function Pr() {
|
|
@@ -315,8 +315,8 @@ const oe = {
|
|
|
315
315
|
};
|
|
316
316
|
class He {
|
|
317
317
|
constructor(e, t) {
|
|
318
|
-
|
|
319
|
-
|
|
318
|
+
Se(this, "class");
|
|
319
|
+
Se(this, "value");
|
|
320
320
|
this.class = e, this.value = t;
|
|
321
321
|
}
|
|
322
322
|
static fromDataObj(e) {
|
|
@@ -417,8 +417,8 @@ function Ir(r) {
|
|
|
417
417
|
}
|
|
418
418
|
class qe {
|
|
419
419
|
constructor(e, t) {
|
|
420
|
-
|
|
421
|
-
|
|
420
|
+
Se(this, "class");
|
|
421
|
+
Se(this, "date");
|
|
422
422
|
this.class = e, this.date = t;
|
|
423
423
|
}
|
|
424
424
|
static fromDataObj(e) {
|
|
@@ -465,7 +465,7 @@ function gt({
|
|
|
465
465
|
position: r = "bottom",
|
|
466
466
|
enabled: e = !0
|
|
467
467
|
}) {
|
|
468
|
-
const t =
|
|
468
|
+
const t = xe(null), n = xe(null), [s, a] = X(0), o = ye(() => {
|
|
469
469
|
const i = t.current, c = n.current;
|
|
470
470
|
if (!i || !c) return;
|
|
471
471
|
const { top: l, left: u, width: f, height: d } = i.getBoundingClientRect();
|
|
@@ -629,7 +629,7 @@ function Mr() {
|
|
|
629
629
|
}
|
|
630
630
|
return Me;
|
|
631
631
|
}
|
|
632
|
-
var Fr = Mr(),
|
|
632
|
+
var Fr = Mr(), Oe = /* @__PURE__ */ new Map(), or = function(e) {
|
|
633
633
|
return e.cloneNode(!0);
|
|
634
634
|
}, Et = function() {
|
|
635
635
|
return window.location.protocol === "file:";
|
|
@@ -660,21 +660,21 @@ var Fr = Mr(), Te = /* @__PURE__ */ new Map(), or = function(e) {
|
|
|
660
660
|
throw i;
|
|
661
661
|
}
|
|
662
662
|
}, s.open("GET", e), s.withCredentials = t, s.overrideMimeType && s.overrideMimeType("text/xml"), s.send();
|
|
663
|
-
},
|
|
664
|
-
|
|
663
|
+
}, be = {}, Tt = function(e, t) {
|
|
664
|
+
be[e] = be[e] || [], be[e].push(t);
|
|
665
665
|
}, Vr = function(e) {
|
|
666
666
|
for (var t = function(o, i) {
|
|
667
667
|
setTimeout(function() {
|
|
668
|
-
if (Array.isArray(
|
|
669
|
-
var c =
|
|
670
|
-
c instanceof SVGSVGElement && l(null, or(c)), c instanceof Error && l(c), o ===
|
|
668
|
+
if (Array.isArray(be[e])) {
|
|
669
|
+
var c = Oe.get(e), l = be[e][o];
|
|
670
|
+
c instanceof SVGSVGElement && l(null, or(c)), c instanceof Error && l(c), o === be[e].length - 1 && delete be[e];
|
|
671
671
|
}
|
|
672
672
|
}, 0);
|
|
673
|
-
}, n = 0, s =
|
|
673
|
+
}, n = 0, s = be[e].length; n < s; n++)
|
|
674
674
|
t(n);
|
|
675
675
|
}, Yr = function(e, t, n) {
|
|
676
|
-
if (
|
|
677
|
-
var s =
|
|
676
|
+
if (Oe.has(e)) {
|
|
677
|
+
var s = Oe.get(e);
|
|
678
678
|
if (s === void 0) {
|
|
679
679
|
Tt(e, n);
|
|
680
680
|
return;
|
|
@@ -684,9 +684,9 @@ var Fr = Mr(), Te = /* @__PURE__ */ new Map(), or = function(e) {
|
|
|
684
684
|
return;
|
|
685
685
|
}
|
|
686
686
|
}
|
|
687
|
-
|
|
687
|
+
Oe.set(e, void 0), Tt(e, n), lr(e, t, function(a, o) {
|
|
688
688
|
var i;
|
|
689
|
-
a ?
|
|
689
|
+
a ? Oe.set(e, a) : ((i = o.responseXML) === null || i === void 0 ? void 0 : i.documentElement) instanceof SVGSVGElement && Oe.set(e, o.responseXML.documentElement), Vr(e);
|
|
690
690
|
});
|
|
691
691
|
}, Ur = function(e, t, n) {
|
|
692
692
|
lr(e, t, function(s, a) {
|
|
@@ -695,21 +695,21 @@ var Fr = Mr(), Te = /* @__PURE__ */ new Map(), or = function(e) {
|
|
|
695
695
|
});
|
|
696
696
|
}, Wr = 0, Hr = function() {
|
|
697
697
|
return ++Wr;
|
|
698
|
-
},
|
|
698
|
+
}, ge = [], Ot = {}, qr = "http://www.w3.org/2000/svg", tt = "http://www.w3.org/1999/xlink", Rt = function(e, t, n, s, a, o, i) {
|
|
699
699
|
var c = e.getAttribute("data-src") || e.getAttribute("src");
|
|
700
700
|
if (!c) {
|
|
701
701
|
i(new Error("Invalid data-src or src attribute"));
|
|
702
702
|
return;
|
|
703
703
|
}
|
|
704
|
-
if (
|
|
705
|
-
|
|
704
|
+
if (ge.indexOf(e) !== -1) {
|
|
705
|
+
ge.splice(ge.indexOf(e), 1), e = null;
|
|
706
706
|
return;
|
|
707
707
|
}
|
|
708
|
-
|
|
708
|
+
ge.push(e), e.setAttribute("src", "");
|
|
709
709
|
var l = s ? Yr : Ur;
|
|
710
710
|
l(c, a, function(u, f) {
|
|
711
711
|
if (!f) {
|
|
712
|
-
|
|
712
|
+
ge.splice(ge.indexOf(e), 1), e = null, i(u);
|
|
713
713
|
return;
|
|
714
714
|
}
|
|
715
715
|
var d = e.getAttribute("id");
|
|
@@ -777,10 +777,10 @@ var Fr = Mr(), Te = /* @__PURE__ */ new Map(), or = function(e) {
|
|
|
777
777
|
if (Array.prototype.forEach.call(U, function(G) {
|
|
778
778
|
G.textContent += "";
|
|
779
779
|
}), f.setAttribute("xmlns", qr), f.setAttribute("xmlns:xlink", tt), o(f), !e.parentNode) {
|
|
780
|
-
|
|
780
|
+
ge.splice(ge.indexOf(e), 1), e = null, i(new Error("Parent node is null"));
|
|
781
781
|
return;
|
|
782
782
|
}
|
|
783
|
-
e.parentNode.replaceChild(f, e),
|
|
783
|
+
e.parentNode.replaceChild(f, e), ge.splice(ge.indexOf(e), 1), e = null, i(null, f);
|
|
784
784
|
});
|
|
785
785
|
}, Kr = function(e, t) {
|
|
786
786
|
var n = t === void 0 ? {} : t, s = n.afterAll, a = s === void 0 ? function() {
|
|
@@ -1467,7 +1467,7 @@ var ae = /* @__PURE__ */ Qr(), en = function(e) {
|
|
|
1467
1467
|
if (e[s] !== t[s])
|
|
1468
1468
|
return !0;
|
|
1469
1469
|
return !1;
|
|
1470
|
-
}, rn = ["afterInjection", "beforeInjection", "desc", "evalScripts", "fallback", "httpRequestWithCredentials", "loading", "renumerateIRIElements", "src", "title", "useRequestCache", "wrapper"], Ye = "http://www.w3.org/2000/svg", _t = "http://www.w3.org/1999/xlink",
|
|
1470
|
+
}, rn = ["afterInjection", "beforeInjection", "desc", "evalScripts", "fallback", "httpRequestWithCredentials", "loading", "renumerateIRIElements", "src", "title", "useRequestCache", "wrapper"], Ye = "http://www.w3.org/2000/svg", _t = "http://www.w3.org/1999/xlink", Re = /* @__PURE__ */ function(r) {
|
|
1471
1471
|
function e() {
|
|
1472
1472
|
for (var n, s = arguments.length, a = new Array(s), o = 0; o < s; o++)
|
|
1473
1473
|
a[o] = arguments[o];
|
|
@@ -1572,7 +1572,7 @@ var ae = /* @__PURE__ */ Qr(), en = function(e) {
|
|
|
1572
1572
|
} : {}), this.state.isLoading && o && /* @__PURE__ */ ke.createElement(o, null), this.state.hasError && a && /* @__PURE__ */ ke.createElement(a, null));
|
|
1573
1573
|
}, e;
|
|
1574
1574
|
}(ke.Component);
|
|
1575
|
-
|
|
1575
|
+
Re.defaultProps = {
|
|
1576
1576
|
afterInjection: function() {
|
|
1577
1577
|
},
|
|
1578
1578
|
beforeInjection: function() {
|
|
@@ -1589,7 +1589,7 @@ Oe.defaultProps = {
|
|
|
1589
1589
|
useRequestCache: !0,
|
|
1590
1590
|
wrapper: "div"
|
|
1591
1591
|
};
|
|
1592
|
-
|
|
1592
|
+
Re.propTypes = {
|
|
1593
1593
|
afterInjection: ae.func,
|
|
1594
1594
|
beforeInjection: ae.func,
|
|
1595
1595
|
desc: ae.string,
|
|
@@ -1610,7 +1610,7 @@ let ft = {
|
|
|
1610
1610
|
};
|
|
1611
1611
|
const es = (r) => {
|
|
1612
1612
|
ft = { ...ft, ...r };
|
|
1613
|
-
}, Mt = (r) => `${ft.assets}/${r}`.replace(/\/+/g, "/"),
|
|
1613
|
+
}, Mt = (r) => `${ft.assets}/${r}`.replace(/\/+/g, "/"), pe = ar.memo(
|
|
1614
1614
|
({
|
|
1615
1615
|
icon: r,
|
|
1616
1616
|
width: e,
|
|
@@ -1634,10 +1634,10 @@ const es = (r) => {
|
|
|
1634
1634
|
!a && c && c();
|
|
1635
1635
|
};
|
|
1636
1636
|
return /* @__PURE__ */ S.jsx(S.Fragment, { children: y ? /* @__PURE__ */ S.jsx(
|
|
1637
|
-
|
|
1637
|
+
Re,
|
|
1638
1638
|
{
|
|
1639
1639
|
src: r,
|
|
1640
|
-
fallback: () => /* @__PURE__ */ S.jsx(
|
|
1640
|
+
fallback: () => /* @__PURE__ */ S.jsx(Re, { src: w, wrapper: "svg" }),
|
|
1641
1641
|
width: e || "1rem",
|
|
1642
1642
|
height: t || "1rem",
|
|
1643
1643
|
wrapper: "svg",
|
|
@@ -1667,10 +1667,10 @@ const es = (r) => {
|
|
|
1667
1667
|
}
|
|
1668
1668
|
)
|
|
1669
1669
|
) : /* @__PURE__ */ S.jsx(
|
|
1670
|
-
|
|
1670
|
+
Re,
|
|
1671
1671
|
{
|
|
1672
1672
|
src: x,
|
|
1673
|
-
fallback: () => /* @__PURE__ */ S.jsx(
|
|
1673
|
+
fallback: () => /* @__PURE__ */ S.jsx(Re, { src: w, wrapper: "svg" }),
|
|
1674
1674
|
width: e || "1rem",
|
|
1675
1675
|
height: t || "1rem",
|
|
1676
1676
|
wrapper: "svg",
|
|
@@ -1683,7 +1683,7 @@ const es = (r) => {
|
|
|
1683
1683
|
}
|
|
1684
1684
|
) });
|
|
1685
1685
|
}
|
|
1686
|
-
),
|
|
1686
|
+
), De = ({
|
|
1687
1687
|
disabled: r,
|
|
1688
1688
|
readOnly: e,
|
|
1689
1689
|
bindValue: t,
|
|
@@ -1726,7 +1726,7 @@ const es = (r) => {
|
|
|
1726
1726
|
ref: h,
|
|
1727
1727
|
style: W,
|
|
1728
1728
|
children: [
|
|
1729
|
-
n && /* @__PURE__ */ S.jsx(
|
|
1729
|
+
n && /* @__PURE__ */ S.jsx(pe, { icon: n, disabled: r }),
|
|
1730
1730
|
/* @__PURE__ */ S.jsx(
|
|
1731
1731
|
"input",
|
|
1732
1732
|
{
|
|
@@ -1744,7 +1744,7 @@ const es = (r) => {
|
|
|
1744
1744
|
}
|
|
1745
1745
|
),
|
|
1746
1746
|
j && /* @__PURE__ */ S.jsx(
|
|
1747
|
-
|
|
1747
|
+
pe,
|
|
1748
1748
|
{
|
|
1749
1749
|
icon: j,
|
|
1750
1750
|
disabled: r,
|
|
@@ -1772,7 +1772,7 @@ function nn({
|
|
|
1772
1772
|
containerHeight: t,
|
|
1773
1773
|
overscan: n = 5
|
|
1774
1774
|
}) {
|
|
1775
|
-
const [s, a] = X(0), o =
|
|
1775
|
+
const [s, a] = X(0), o = xe(null), i = r.length * e, c = Math.max(0, Math.floor(s / e) - n), l = Math.min(
|
|
1776
1776
|
r.length - 1,
|
|
1777
1777
|
Math.floor((s + t) / e) + n
|
|
1778
1778
|
), u = [];
|
|
@@ -1782,7 +1782,7 @@ function nn({
|
|
|
1782
1782
|
index: h,
|
|
1783
1783
|
offsetTop: h * e
|
|
1784
1784
|
});
|
|
1785
|
-
const f =
|
|
1785
|
+
const f = ye((h) => {
|
|
1786
1786
|
const g = h.target.scrollTop;
|
|
1787
1787
|
a(g);
|
|
1788
1788
|
}, []), d = (h) => {
|
|
@@ -1880,7 +1880,7 @@ const sn = 10, fr = ({
|
|
|
1880
1880
|
},
|
|
1881
1881
|
children: [
|
|
1882
1882
|
y && /* @__PURE__ */ S.jsx(
|
|
1883
|
-
|
|
1883
|
+
De,
|
|
1884
1884
|
{
|
|
1885
1885
|
bindValue: u,
|
|
1886
1886
|
placeholder: "Search...",
|
|
@@ -1922,7 +1922,7 @@ const sn = 10, fr = ({
|
|
|
1922
1922
|
},
|
|
1923
1923
|
children: [
|
|
1924
1924
|
Be(N.id, N.label, t),
|
|
1925
|
-
W && /* @__PURE__ */ S.jsx(
|
|
1925
|
+
W && /* @__PURE__ */ S.jsx(pe, { icon: "check", width: 16 })
|
|
1926
1926
|
]
|
|
1927
1927
|
},
|
|
1928
1928
|
N.id
|
|
@@ -1949,9 +1949,9 @@ const sn = 10, fr = ({
|
|
|
1949
1949
|
a(
|
|
1950
1950
|
Be(e, t, r)
|
|
1951
1951
|
);
|
|
1952
|
-
}, [t, r]), /* @__PURE__ */ S.jsx(
|
|
1952
|
+
}, [t, r]), /* @__PURE__ */ S.jsx(De, { ...n, bindValue: s });
|
|
1953
1953
|
}, an = (r) => {
|
|
1954
|
-
const e =
|
|
1954
|
+
const e = xe(null);
|
|
1955
1955
|
return le(() => () => {
|
|
1956
1956
|
e.current && clearTimeout(e.current);
|
|
1957
1957
|
}, []), (n) => {
|
|
@@ -2074,9 +2074,9 @@ const sn = 10, fr = ({
|
|
|
2074
2074
|
disabled: s,
|
|
2075
2075
|
"aria-busy": f,
|
|
2076
2076
|
title: d || h,
|
|
2077
|
-
children: f ? /* @__PURE__ */ S.jsx(
|
|
2077
|
+
children: f ? /* @__PURE__ */ S.jsx(pe, { icon: "spinner", state: Vt(o), spin: !0 }) : /* @__PURE__ */ S.jsxs(S.Fragment, { children: [
|
|
2078
2078
|
n && c && /* @__PURE__ */ S.jsx(
|
|
2079
|
-
|
|
2079
|
+
pe,
|
|
2080
2080
|
{
|
|
2081
2081
|
icon: n,
|
|
2082
2082
|
disabled: s,
|
|
@@ -2206,10 +2206,10 @@ const sn = 10, fr = ({
|
|
|
2206
2206
|
"--smp-chips-backgroundColor-base": a
|
|
2207
2207
|
},
|
|
2208
2208
|
children: [
|
|
2209
|
-
o && /* @__PURE__ */ S.jsx(
|
|
2209
|
+
o && /* @__PURE__ */ S.jsx(pe, { icon: "drag_indicator_horizontal", isInteractable: !0 }),
|
|
2210
2210
|
/* @__PURE__ */ S.jsx(un, { variant: "label", bindValue: y, color: s }),
|
|
2211
2211
|
e && /* @__PURE__ */ S.jsx(
|
|
2212
|
-
|
|
2212
|
+
pe,
|
|
2213
2213
|
{
|
|
2214
2214
|
icon: "close",
|
|
2215
2215
|
isInteractable: !0,
|
|
@@ -2221,7 +2221,7 @@ const sn = 10, fr = ({
|
|
|
2221
2221
|
},
|
|
2222
2222
|
`chip-${g}`
|
|
2223
2223
|
), w = o && g < r.length - 1 ? /* @__PURE__ */ S.jsx(
|
|
2224
|
-
|
|
2224
|
+
pe,
|
|
2225
2225
|
{
|
|
2226
2226
|
icon: "chevron-right",
|
|
2227
2227
|
color: s
|
|
@@ -2232,7 +2232,7 @@ const sn = 10, fr = ({
|
|
|
2232
2232
|
}) });
|
|
2233
2233
|
};
|
|
2234
2234
|
function gr(r, e) {
|
|
2235
|
-
const t =
|
|
2235
|
+
const t = xe(null);
|
|
2236
2236
|
le(() => {
|
|
2237
2237
|
if (!r) return;
|
|
2238
2238
|
const n = typeof e == "object" && e !== null && "current" in e ? e.current : null;
|
|
@@ -2343,7 +2343,7 @@ const fn = ({
|
|
|
2343
2343
|
]
|
|
2344
2344
|
}
|
|
2345
2345
|
);
|
|
2346
|
-
}, q = (r) => typeof r == "string",
|
|
2346
|
+
}, q = (r) => typeof r == "string", Ae = () => {
|
|
2347
2347
|
let r, e;
|
|
2348
2348
|
const t = new Promise((n, s) => {
|
|
2349
2349
|
r = n, e = s;
|
|
@@ -2353,7 +2353,7 @@ const fn = ({
|
|
|
2353
2353
|
r.forEach((n) => {
|
|
2354
2354
|
e[n] && (t[n] = e[n]);
|
|
2355
2355
|
});
|
|
2356
|
-
}, pn = /###/g, Ut = (r) => r && r.indexOf("###") > -1 ? r.replace(pn, ".") : r, Wt = (r) => !r || q(r),
|
|
2356
|
+
}, pn = /###/g, Ut = (r) => r && r.indexOf("###") > -1 ? r.replace(pn, ".") : r, Wt = (r) => !r || q(r), je = (r, e, t) => {
|
|
2357
2357
|
const n = q(e) ? e.split(".") : e;
|
|
2358
2358
|
let s = 0;
|
|
2359
2359
|
for (; s < n.length - 1; ) {
|
|
@@ -2369,26 +2369,26 @@ const fn = ({
|
|
|
2369
2369
|
const {
|
|
2370
2370
|
obj: n,
|
|
2371
2371
|
k: s
|
|
2372
|
-
} =
|
|
2372
|
+
} = je(r, e, Object);
|
|
2373
2373
|
if (n !== void 0 || e.length === 1) {
|
|
2374
2374
|
n[s] = t;
|
|
2375
2375
|
return;
|
|
2376
2376
|
}
|
|
2377
|
-
let a = e[e.length - 1], o = e.slice(0, e.length - 1), i =
|
|
2377
|
+
let a = e[e.length - 1], o = e.slice(0, e.length - 1), i = je(r, o, Object);
|
|
2378
2378
|
for (; i.obj === void 0 && o.length; )
|
|
2379
|
-
a = `${o[o.length - 1]}.${a}`, o = o.slice(0, o.length - 1), i =
|
|
2379
|
+
a = `${o[o.length - 1]}.${a}`, o = o.slice(0, o.length - 1), i = je(r, o, Object), i != null && i.obj && typeof i.obj[`${i.k}.${a}`] < "u" && (i.obj = void 0);
|
|
2380
2380
|
i.obj[`${i.k}.${a}`] = t;
|
|
2381
2381
|
}, hn = (r, e, t, n) => {
|
|
2382
2382
|
const {
|
|
2383
2383
|
obj: s,
|
|
2384
2384
|
k: a
|
|
2385
|
-
} =
|
|
2385
|
+
} = je(r, e, Object);
|
|
2386
2386
|
s[a] = s[a] || [], s[a].push(t);
|
|
2387
2387
|
}, ze = (r, e) => {
|
|
2388
2388
|
const {
|
|
2389
2389
|
obj: t,
|
|
2390
2390
|
k: n
|
|
2391
|
-
} =
|
|
2391
|
+
} = je(r, e);
|
|
2392
2392
|
if (t && Object.prototype.hasOwnProperty.call(t, n))
|
|
2393
2393
|
return t[n];
|
|
2394
2394
|
}, gn = (r, e, t) => {
|
|
@@ -2398,7 +2398,7 @@ const fn = ({
|
|
|
2398
2398
|
for (const n in e)
|
|
2399
2399
|
n !== "__proto__" && n !== "constructor" && (n in r ? q(r[n]) || r[n] instanceof String || q(e[n]) || e[n] instanceof String ? t && (r[n] = e[n]) : mr(r[n], e[n], t) : r[n] = e[n]);
|
|
2400
2400
|
return r;
|
|
2401
|
-
},
|
|
2401
|
+
}, Te = (r) => r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
2402
2402
|
var mn = {
|
|
2403
2403
|
"&": "&",
|
|
2404
2404
|
"<": "<",
|
|
@@ -2499,7 +2499,7 @@ class Je {
|
|
|
2499
2499
|
return e = e || this.options, e.prefix = e.prefix || this.prefix, new Je(this.logger, e);
|
|
2500
2500
|
}
|
|
2501
2501
|
}
|
|
2502
|
-
var
|
|
2502
|
+
var me = new Je();
|
|
2503
2503
|
class Ze {
|
|
2504
2504
|
constructor() {
|
|
2505
2505
|
this.observers = {};
|
|
@@ -2615,7 +2615,7 @@ var yr = {
|
|
|
2615
2615
|
const Kt = {}, Bt = (r) => !q(r) && typeof r != "boolean" && typeof r != "number";
|
|
2616
2616
|
class Xe extends Ze {
|
|
2617
2617
|
constructor(e, t = {}) {
|
|
2618
|
-
super(), dn(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger =
|
|
2618
|
+
super(), dn(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = me.create("translator");
|
|
2619
2619
|
}
|
|
2620
2620
|
changeLanguage(e) {
|
|
2621
2621
|
e && (this.language = e);
|
|
@@ -2867,7 +2867,7 @@ class Xe extends Ze {
|
|
|
2867
2867
|
}
|
|
2868
2868
|
class Gt {
|
|
2869
2869
|
constructor(e) {
|
|
2870
|
-
this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger =
|
|
2870
|
+
this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = me.create("languageUtils");
|
|
2871
2871
|
}
|
|
2872
2872
|
getScriptPartFromCode(e) {
|
|
2873
2873
|
if (e = Le(e), !e || e.indexOf("-") < 0) return null;
|
|
@@ -2944,7 +2944,7 @@ const zt = {
|
|
|
2944
2944
|
};
|
|
2945
2945
|
class En {
|
|
2946
2946
|
constructor(e, t = {}) {
|
|
2947
|
-
this.languageUtils = e, this.options = t, this.logger =
|
|
2947
|
+
this.languageUtils = e, this.options = t, this.logger = me.create("pluralResolver"), this.pluralRulesCache = {};
|
|
2948
2948
|
}
|
|
2949
2949
|
addRule(e, t) {
|
|
2950
2950
|
this.rules[e] = t;
|
|
@@ -2996,7 +2996,7 @@ const Xt = (r, e, t, n = ".", s = !0) => {
|
|
|
2996
2996
|
class Tn {
|
|
2997
2997
|
constructor(e = {}) {
|
|
2998
2998
|
var t;
|
|
2999
|
-
this.logger =
|
|
2999
|
+
this.logger = me.create("interpolator"), this.options = e, this.format = ((t = e == null ? void 0 : e.interpolation) == null ? void 0 : t.format) || ((n) => n), this.init(e);
|
|
3000
3000
|
}
|
|
3001
3001
|
init(e = {}) {
|
|
3002
3002
|
e.interpolation || (e.interpolation = {
|
|
@@ -3021,7 +3021,7 @@ class Tn {
|
|
|
3021
3021
|
maxReplaces: w,
|
|
3022
3022
|
alwaysFormat: R
|
|
3023
3023
|
} = e.interpolation;
|
|
3024
|
-
this.escape = t !== void 0 ? t : yn, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = a ?
|
|
3024
|
+
this.escape = t !== void 0 ? t : yn, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = a ? Te(a) : o || "{{", this.suffix = i ? Te(i) : c || "}}", this.formatSeparator = l || ",", this.unescapePrefix = u ? "" : f || "-", this.unescapeSuffix = this.unescapePrefix ? "" : u || "", this.nestingPrefix = d ? Te(d) : h || Te("$t("), this.nestingSuffix = g ? Te(g) : y || Te(")"), this.nestingOptionsSeparator = x || ",", this.maxReplaces = w || 1e3, this.alwaysFormat = R !== void 0 ? R : !1, this.resetRegExp();
|
|
3025
3025
|
}
|
|
3026
3026
|
reset() {
|
|
3027
3027
|
this.options && this.init(this.options);
|
|
@@ -3150,7 +3150,7 @@ const On = (r) => {
|
|
|
3150
3150
|
}, Rn = (r) => (e, t, n) => r(Le(t), n)(e);
|
|
3151
3151
|
class Dn {
|
|
3152
3152
|
constructor(e = {}) {
|
|
3153
|
-
this.logger =
|
|
3153
|
+
this.logger = me.create("formatter"), this.options = e, this.init(e);
|
|
3154
3154
|
}
|
|
3155
3155
|
init(e, t = {
|
|
3156
3156
|
interpolation: {}
|
|
@@ -3234,7 +3234,7 @@ const Pn = (r, e) => {
|
|
|
3234
3234
|
class $n extends Ze {
|
|
3235
3235
|
constructor(e, t, n, s = {}) {
|
|
3236
3236
|
var a, o;
|
|
3237
|
-
super(), this.backend = e, this.store = t, this.services = n, this.languageUtils = n.languageUtils, this.options = s, this.logger =
|
|
3237
|
+
super(), this.backend = e, this.store = t, this.services = n, this.languageUtils = n.languageUtils, this.options = s, this.logger = me.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 = [], (o = (a = this.backend) == null ? void 0 : a.init) == null || o.call(a, n, s.backend, s);
|
|
3238
3238
|
}
|
|
3239
3239
|
queueLoad(e, t, n, s) {
|
|
3240
3240
|
const a = {}, o = {}, i = {}, c = {};
|
|
@@ -3431,7 +3431,7 @@ const Qt = () => ({
|
|
|
3431
3431
|
};
|
|
3432
3432
|
class Ie extends Ze {
|
|
3433
3433
|
constructor(e = {}, t) {
|
|
3434
|
-
if (super(), this.options = er(e), this.services = {}, this.logger =
|
|
3434
|
+
if (super(), this.options = er(e), this.services = {}, this.logger = me, this.modules = {
|
|
3435
3435
|
external: []
|
|
3436
3436
|
}, An(this), t && !this.isInitialized && !e.isClone) {
|
|
3437
3437
|
if (!this.options.initAsync)
|
|
@@ -3454,13 +3454,13 @@ class Ie extends Ze {
|
|
|
3454
3454
|
}, e.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = e.keySeparator), e.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = e.nsSeparator);
|
|
3455
3455
|
const s = (l) => l ? typeof l == "function" ? new l() : l : null;
|
|
3456
3456
|
if (!this.options.isClone) {
|
|
3457
|
-
this.modules.logger ?
|
|
3457
|
+
this.modules.logger ? me.init(s(this.modules.logger), this.options) : me.init(null, this.options);
|
|
3458
3458
|
let l;
|
|
3459
3459
|
this.modules.formatter ? l = this.modules.formatter : l = Dn;
|
|
3460
3460
|
const u = new Gt(this.options);
|
|
3461
3461
|
this.store = new qt(this.options.resources, this.options);
|
|
3462
3462
|
const f = this.services;
|
|
3463
|
-
f.logger =
|
|
3463
|
+
f.logger = me, f.resourceStore = this.store, f.languageUtils = u, f.pluralResolver = new En(u, {
|
|
3464
3464
|
prepend: this.options.pluralSeparator,
|
|
3465
3465
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
3466
3466
|
}), l && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (f.formatter = s(l), f.formatter.init(f, this.options), this.options.interpolation.format = f.formatter.format.bind(f.formatter)), f.interpolator = new Tn(this.options), f.utils = {
|
|
@@ -3482,7 +3482,7 @@ class Ie extends Ze {
|
|
|
3482
3482
|
}), ["addResource", "addResources", "addResourceBundle", "removeResourceBundle"].forEach((l) => {
|
|
3483
3483
|
this[l] = (...u) => (this.store[l](...u), this);
|
|
3484
3484
|
});
|
|
3485
|
-
const i =
|
|
3485
|
+
const i = Ae(), c = () => {
|
|
3486
3486
|
const l = (u, f) => {
|
|
3487
3487
|
this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), i.resolve(f), t(u, f);
|
|
3488
3488
|
};
|
|
@@ -3510,7 +3510,7 @@ class Ie extends Ze {
|
|
|
3510
3510
|
n(null);
|
|
3511
3511
|
}
|
|
3512
3512
|
reloadResources(e, t, n) {
|
|
3513
|
-
const s =
|
|
3513
|
+
const s = Ae();
|
|
3514
3514
|
return typeof e == "function" && (n = e, e = void 0), typeof t == "function" && (n = t, t = void 0), e || (e = this.languages), t || (t = this.options.ns), n || (n = Ue), this.services.backendConnector.reload(e, t, (a) => {
|
|
3515
3515
|
s.resolve(), n(a);
|
|
3516
3516
|
}), s;
|
|
@@ -3534,7 +3534,7 @@ class Ie extends Ze {
|
|
|
3534
3534
|
}
|
|
3535
3535
|
changeLanguage(e, t) {
|
|
3536
3536
|
this.isLanguageChangingTo = e;
|
|
3537
|
-
const n =
|
|
3537
|
+
const n = Ae();
|
|
3538
3538
|
this.emit("languageChanging", e);
|
|
3539
3539
|
const s = (i) => {
|
|
3540
3540
|
this.language = i, this.languages = this.services.languageUtils.toResolveHierarchy(i), this.resolvedLanguage = void 0, this.setResolvedLanguage(i);
|
|
@@ -3591,7 +3591,7 @@ class Ie extends Ze {
|
|
|
3591
3591
|
return !!(this.hasResourceBundle(n, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || o(n, e) && (!s || o(a, e)));
|
|
3592
3592
|
}
|
|
3593
3593
|
loadNamespaces(e, t) {
|
|
3594
|
-
const n =
|
|
3594
|
+
const n = Ae();
|
|
3595
3595
|
return this.options.ns ? (q(e) && (e = [e]), e.forEach((s) => {
|
|
3596
3596
|
this.options.ns.indexOf(s) < 0 && this.options.ns.push(s);
|
|
3597
3597
|
}), this.loadResources((s) => {
|
|
@@ -3599,7 +3599,7 @@ class Ie extends Ze {
|
|
|
3599
3599
|
}), n) : (t && t(), Promise.resolve());
|
|
3600
3600
|
}
|
|
3601
3601
|
loadLanguages(e, t) {
|
|
3602
|
-
const n =
|
|
3602
|
+
const n = Ae();
|
|
3603
3603
|
q(e) && (e = [e]);
|
|
3604
3604
|
const s = this.options.preload || [], a = e.filter((o) => s.indexOf(o) < 0 && this.services.languageUtils.isSupportedCode(o));
|
|
3605
3605
|
return a.length ? (this.options.preload = s.concat(a), this.loadResources((o) => {
|
|
@@ -3756,10 +3756,10 @@ se.init({
|
|
|
3756
3756
|
});
|
|
3757
3757
|
const Wn = (r, e, t, n) => se.format(r, e, t || se.language, n), Hn = (r, e) => se.t(r, e);
|
|
3758
3758
|
function Qe() {
|
|
3759
|
-
const r =
|
|
3759
|
+
const r = ye(
|
|
3760
3760
|
(n, s, a, o) => Wn(n, s, a || void 0, o),
|
|
3761
3761
|
[]
|
|
3762
|
-
), e =
|
|
3762
|
+
), e = ye(() => se.languages[0], []), t = ye(
|
|
3763
3763
|
(n, s) => Hn(n, s),
|
|
3764
3764
|
[]
|
|
3765
3765
|
);
|
|
@@ -3785,7 +3785,7 @@ function qn({
|
|
|
3785
3785
|
c ? c.getFullYear() : (/* @__PURE__ */ new Date()).getFullYear()
|
|
3786
3786
|
), [g, y] = X(
|
|
3787
3787
|
c ? c.getDate() : null
|
|
3788
|
-
), x =
|
|
3788
|
+
), x = xe(null), w = xe([]), R = [
|
|
3789
3789
|
a(ce.JANUARY),
|
|
3790
3790
|
a(ce.FEBRUARY),
|
|
3791
3791
|
a(ce.MARCH),
|
|
@@ -4141,7 +4141,7 @@ const Kn = ({
|
|
|
4141
4141
|
P && P === document.activeElement && w();
|
|
4142
4142
|
}
|
|
4143
4143
|
}), gr(a, d);
|
|
4144
|
-
const { format: h, getCurrentLanguage: g } = Qe(), y =
|
|
4144
|
+
const { format: h, getCurrentLanguage: g } = Qe(), y = ye(
|
|
4145
4145
|
(P) => {
|
|
4146
4146
|
const C = P.length > 5 && jr(P, g()) || P, V = h(C, void 0, void 0, {
|
|
4147
4147
|
type: "date"
|
|
@@ -4173,7 +4173,7 @@ const Kn = ({
|
|
|
4173
4173
|
};
|
|
4174
4174
|
return /* @__PURE__ */ S.jsxs("div", { "data-component": "date-picker", children: [
|
|
4175
4175
|
/* @__PURE__ */ S.jsx(
|
|
4176
|
-
|
|
4176
|
+
De,
|
|
4177
4177
|
{
|
|
4178
4178
|
bindValue: l,
|
|
4179
4179
|
placeholder: e,
|
|
@@ -4260,7 +4260,7 @@ const Kn = ({
|
|
|
4260
4260
|
}, Gn = ({ ...r }) => {
|
|
4261
4261
|
const [e, t] = X(!1), n = e ? "visibility-off" : "visibility";
|
|
4262
4262
|
return /* @__PURE__ */ S.jsx(
|
|
4263
|
-
|
|
4263
|
+
De,
|
|
4264
4264
|
{
|
|
4265
4265
|
...r,
|
|
4266
4266
|
inputType: e ? "text" : "password",
|
|
@@ -4276,7 +4276,7 @@ const Kn = ({
|
|
|
4276
4276
|
a.key === "Enter" && (a.preventDefault(), (o = r.onEnter) == null || o.call(r, e));
|
|
4277
4277
|
};
|
|
4278
4278
|
return /* @__PURE__ */ S.jsx(
|
|
4279
|
-
|
|
4279
|
+
De,
|
|
4280
4280
|
{
|
|
4281
4281
|
...r,
|
|
4282
4282
|
placeholder: r.placeholder ? r.placeholder : n(yt.SPOTLIGHT_DEFAULT_PLACEHOLDER),
|
|
@@ -4290,17 +4290,17 @@ const Kn = ({
|
|
|
4290
4290
|
}
|
|
4291
4291
|
);
|
|
4292
4292
|
};
|
|
4293
|
-
class
|
|
4293
|
+
class we {
|
|
4294
4294
|
constructor(e, t) {
|
|
4295
|
-
|
|
4296
|
-
|
|
4295
|
+
Se(this, "class");
|
|
4296
|
+
Se(this, "value");
|
|
4297
4297
|
this.class = e, this.value = t;
|
|
4298
4298
|
}
|
|
4299
4299
|
static fromDataObj(e) {
|
|
4300
|
-
return new
|
|
4300
|
+
return new we(e, e.k.split(";"));
|
|
4301
4301
|
}
|
|
4302
4302
|
static fromString(e) {
|
|
4303
|
-
return new
|
|
4303
|
+
return new we(
|
|
4304
4304
|
{
|
|
4305
4305
|
t: "",
|
|
4306
4306
|
p: ""
|
|
@@ -4325,16 +4325,16 @@ const We = (r, e, t) => ({
|
|
|
4325
4325
|
shape: r.shape,
|
|
4326
4326
|
fun: r.fun
|
|
4327
4327
|
}), rr = (r) => {
|
|
4328
|
-
const e =
|
|
4328
|
+
const e = we.fromDataObj(r.obj), t = r.decode ? we.fromString(r.decode).getValue() : [];
|
|
4329
4329
|
return e.getValue().map((n, s) => ({
|
|
4330
4330
|
bindValue: n,
|
|
4331
4331
|
optionalDisplayValue: t.length >= s ? t[s] : ""
|
|
4332
4332
|
}));
|
|
4333
4333
|
}, Jn = (r, e) => {
|
|
4334
|
-
const t = new
|
|
4334
|
+
const t = new we(
|
|
4335
4335
|
r.obj,
|
|
4336
4336
|
e.map((s) => s.bindValue)
|
|
4337
|
-
).getLegacyValue(), n = new
|
|
4337
|
+
).getLegacyValue(), n = new we(
|
|
4338
4338
|
r.obj,
|
|
4339
4339
|
e.map((s) => s.optionalDisplayValue ? s.optionalDisplayValue : "")
|
|
4340
4340
|
).getLegacyValue();
|
|
@@ -4454,7 +4454,7 @@ const We = (r, e, t) => ({
|
|
|
4454
4454
|
u == null || u(w(y, t.k));
|
|
4455
4455
|
}
|
|
4456
4456
|
};
|
|
4457
|
-
return /* @__PURE__ */ S.jsx(
|
|
4457
|
+
return /* @__PURE__ */ S.jsx(pe, { ...b });
|
|
4458
4458
|
}
|
|
4459
4459
|
case oe.MULTI_AUTOCOMPLETE: {
|
|
4460
4460
|
const b = {
|
|
@@ -4495,7 +4495,7 @@ const We = (r, e, t) => ({
|
|
|
4495
4495
|
l == null || l(w(y, v));
|
|
4496
4496
|
}
|
|
4497
4497
|
};
|
|
4498
|
-
return /* @__PURE__ */ S.jsx(
|
|
4498
|
+
return /* @__PURE__ */ S.jsx(De, { ...b });
|
|
4499
4499
|
}
|
|
4500
4500
|
}
|
|
4501
4501
|
}, Xn = (r, e) => {
|
|
@@ -4535,7 +4535,7 @@ const We = (r, e, t) => ({
|
|
|
4535
4535
|
return {
|
|
4536
4536
|
[e]: t
|
|
4537
4537
|
};
|
|
4538
|
-
}, sr = (r) => r.some((e) => e.dim && !e.dim.endsWith("%")),
|
|
4538
|
+
}, sr = (r) => r.some((e) => e.dim && !e.dim.endsWith("%")), de = {
|
|
4539
4539
|
"smp-layout": "_smp-layout_xrjwg_1",
|
|
4540
4540
|
"smp-layout-horizontal": "_smp-layout-horizontal_xrjwg_9",
|
|
4541
4541
|
"smp-layout-vertical": "_smp-layout-vertical_xrjwg_13",
|
|
@@ -4555,21 +4555,21 @@ const We = (r, e, t) => ({
|
|
|
4555
4555
|
const t = "--smp-grid-template-cols", n = "--smp-grid-template-rows", s = br(r.sections, e), a = (d) => d == null ? void 0 : d.reduce((h, g) => {
|
|
4556
4556
|
var D, b;
|
|
4557
4557
|
let y = "", x = {}, w = {}, R = "";
|
|
4558
|
-
return (D = g.sections) != null && D.length ? (y =
|
|
4558
|
+
return (D = g.sections) != null && D.length ? (y = de["smp-layout-section-grid"], x = a(g.sections), g.gridCols == null && (R = `${de[g.horizontal ? "smp-grid-template-cols" : "smp-grid-template-rows"]}`, (g.horizontal || sr(g.sections)) && (w = nr(
|
|
4559
4559
|
g.sections,
|
|
4560
4560
|
g.horizontal ? t : n
|
|
4561
|
-
)))) : (b = g.content) != null && b.length && (g.gridCols !== void 0 && g.gridCols > 0 ? (y =
|
|
4561
|
+
)))) : (b = g.content) != null && b.length && (g.gridCols !== void 0 && g.gridCols > 0 ? (y = de["smp-layout-section-grid"], R = `${de["smp-grid-template-cols"]}`, w = {
|
|
4562
4562
|
[t]: `repeat(${g.gridCols}, 1fr)`
|
|
4563
|
-
}) : y =
|
|
4563
|
+
}) : y = de["smp-layout-section-flex"]), {
|
|
4564
4564
|
...h,
|
|
4565
4565
|
...x,
|
|
4566
4566
|
[g.id]: {
|
|
4567
|
-
classes: `${y} ${
|
|
4567
|
+
classes: `${y} ${de[g.horizontal ? "smp-layout-section-horizontal" : "smp-layout-section-vertical"]} ${R} ${g.hdsp ? `smp-justifyContent-${g.hdsp}` : ""} ${g.vdsp ? `smp-alignItems-${g.vdsp}` : ""}`,
|
|
4568
4568
|
styles: w
|
|
4569
4569
|
}
|
|
4570
4570
|
};
|
|
4571
4571
|
}, {}), o = a(s), i = {
|
|
4572
|
-
container: `${
|
|
4572
|
+
container: `${de["smp-layout"]} ${r.horizontal ? de["smp-layout-horizontal"] : de["smp-layout-vertical"]}`,
|
|
4573
4573
|
sections: o
|
|
4574
4574
|
}, c = r.horizontal || sr(r.sections) ? nr(
|
|
4575
4575
|
s,
|
|
@@ -4588,11 +4588,11 @@ const We = (r, e, t) => ({
|
|
|
4588
4588
|
},
|
|
4589
4589
|
"section-" + d.id
|
|
4590
4590
|
);
|
|
4591
|
-
return d.title ? /* @__PURE__ */ S.jsxs("div", { className: `${
|
|
4591
|
+
return d.title ? /* @__PURE__ */ S.jsxs("div", { className: `${de["smp-layout-section-with-title"]}`, children: [
|
|
4592
4592
|
/* @__PURE__ */ S.jsx(
|
|
4593
4593
|
"span",
|
|
4594
4594
|
{
|
|
4595
|
-
className: `${
|
|
4595
|
+
className: `${de["smp-layout-section-title"]} ${d.hdsp ? `smp-justifyContent-${d.hdsp}` : ""} ${d.vdsp ? `smp-alignItems-${d.vdsp}` : ""}`,
|
|
4596
4596
|
children: /* @__PURE__ */ S.jsx(ir, { label: d.title })
|
|
4597
4597
|
}
|
|
4598
4598
|
),
|
|
@@ -4602,7 +4602,7 @@ const We = (r, e, t) => ({
|
|
|
4602
4602
|
const x = d.colSpan !== void 0 ? d.colSpan > 0 ? d.colSpan : d.colStart !== void 0 && d.colStart < 1 ? 1 : null : null, w = x !== null ? `span ${x}` : d.colStart, R = d.colEnd !== void 0 && d.colEnd > 0 ? d.colEnd : "", D = {
|
|
4603
4603
|
gridColumnStart: w,
|
|
4604
4604
|
gridColumnEnd: R
|
|
4605
|
-
}, b = `${
|
|
4605
|
+
}, b = `${de["smp-layout-cell-container"]} ${g ? `smp-justifyContent-${g}` : ""} ${y ? `smp-alignItems-${y}` : ""}`;
|
|
4606
4606
|
return h ? /* @__PURE__ */ S.jsx(
|
|
4607
4607
|
"div",
|
|
4608
4608
|
{
|
|
@@ -4617,7 +4617,7 @@ const We = (r, e, t) => ({
|
|
|
4617
4617
|
return /* @__PURE__ */ S.jsx("div", { className: i.container, style: c, "smp-id": "layout", children: s == null ? void 0 : s.map((d) => l(d)) });
|
|
4618
4618
|
}, ts = ({ data: r, onClick: e, onEnter: t }) => {
|
|
4619
4619
|
var o, i;
|
|
4620
|
-
const [n, s] = X(), a =
|
|
4620
|
+
const [n, s] = X(), a = ye(
|
|
4621
4621
|
(c) => {
|
|
4622
4622
|
var u, f;
|
|
4623
4623
|
if (!((u = c.rows) != null && u.length) || !((f = c.columns) != null && f.length))
|
|
@@ -4658,7 +4658,7 @@ const We = (r, e, t) => ({
|
|
|
4658
4658
|
return le(() => {
|
|
4659
4659
|
s(a(r));
|
|
4660
4660
|
}, [r, a]), !((o = r == null ? void 0 : r.rows) != null && o.length) || !((i = r.columns) != null && i.length) ? null : n && /* @__PURE__ */ S.jsx("header", { className: "smp-appbar", "aria-label": "App Bar", children: /* @__PURE__ */ S.jsx(xr, { layout: r.rows[0].layout, cells: n }) });
|
|
4661
|
-
},
|
|
4661
|
+
}, ue = (r) => r == null ? !1 : typeof r == "string" ? r.toLocaleLowerCase() == "yes" : r, rs = ({
|
|
4662
4662
|
ColumnsNumber: r = 1,
|
|
4663
4663
|
data: e = {},
|
|
4664
4664
|
ForceText: t,
|
|
@@ -4682,17 +4682,17 @@ const We = (r, e, t) => ({
|
|
|
4682
4682
|
}) => {
|
|
4683
4683
|
const b = "N/A", v = (e == null ? void 0 : e.columns) || [], P = (e == null ? void 0 : e.rows) || [], C = P.length > 0, V = "--smp-dashList-color", F = "smp-layout", j = "descr", N = "icon", Y = "um", B = "value", W = o || "1em", re = "18px", J = "--smp-dashList-columns", U = "--smp-dashList-fontSize", G = {
|
|
4684
4684
|
dash: (M = "1") => {
|
|
4685
|
-
const z = p(M), ee = z, te = m(z, j),
|
|
4685
|
+
const z = p(M), ee = z, te = m(z, j), fe = m(z, N), ve = m(z, Y), he = m(z, B);
|
|
4686
4686
|
return {
|
|
4687
4687
|
container: ee,
|
|
4688
4688
|
descr: te,
|
|
4689
|
-
icon:
|
|
4690
|
-
um:
|
|
4691
|
-
value:
|
|
4689
|
+
icon: fe,
|
|
4690
|
+
um: ve,
|
|
4691
|
+
value: he
|
|
4692
4692
|
};
|
|
4693
4693
|
},
|
|
4694
|
-
dashList: `smp-dash-list ${
|
|
4695
|
-
${
|
|
4694
|
+
dashList: `smp-dash-list ${ue(a) ? "smp-dash-list-fill-space" : ""}
|
|
4695
|
+
${ue(i) ? "smp-dash-list-horizontal" : ""}`
|
|
4696
4696
|
}, { format: I } = Qe(), p = (M) => `${F}-${M}`, m = (M, z) => `${M}__${z}`, E = (M) => `${V}-${M}`, O = (M) => {
|
|
4697
4697
|
const z = /R(\d{1,3})G(\d{1,3})B(\d{1,3})/;
|
|
4698
4698
|
if (z.test(M)) {
|
|
@@ -4704,20 +4704,20 @@ const We = (r, e, t) => ({
|
|
|
4704
4704
|
}, T = (M) => {
|
|
4705
4705
|
if (!f) return M;
|
|
4706
4706
|
const [z, ee] = $(f).map(
|
|
4707
|
-
(
|
|
4708
|
-
), te = "0,0" + (ee ? "." + "0".repeat(ee) : ""),
|
|
4709
|
-
if (!z) return
|
|
4710
|
-
const [
|
|
4711
|
-
return
|
|
4707
|
+
(Ee) => parseInt(Ee || "0")
|
|
4708
|
+
), te = "0,0" + (ee ? "." + "0".repeat(ee) : ""), fe = I(M, te, "it");
|
|
4709
|
+
if (!z) return fe;
|
|
4710
|
+
const [ve, he] = fe.split(",");
|
|
4711
|
+
return ve + (he ? `,${he}` : "");
|
|
4712
4712
|
}, $ = (M) => M.includes(";") ? M.split(";") : [M], k = (M) => {
|
|
4713
4713
|
const z = (te) => {
|
|
4714
|
-
var
|
|
4714
|
+
var fe;
|
|
4715
4715
|
if (te)
|
|
4716
|
-
return (
|
|
4716
|
+
return (fe = M == null ? void 0 : M.cells[te]) == null ? void 0 : fe.obj.k;
|
|
4717
4717
|
}, ee = (te) => {
|
|
4718
|
-
var
|
|
4718
|
+
var fe, ve;
|
|
4719
4719
|
if (!(v.length <= te))
|
|
4720
|
-
return (
|
|
4720
|
+
return (ve = (fe = M == null ? void 0 : M.cells[v[te].name]) == null ? void 0 : fe.obj) == null ? void 0 : ve.k;
|
|
4721
4721
|
};
|
|
4722
4722
|
return {
|
|
4723
4723
|
descr: t || z(n) || ee(2) || "",
|
|
@@ -4735,7 +4735,7 @@ const We = (r, e, t) => ({
|
|
|
4735
4735
|
className: z,
|
|
4736
4736
|
descr: (ee) => /* @__PURE__ */ S.jsx("div", { className: z.descr, children: ee }, `${M}-${j}`),
|
|
4737
4737
|
icon: (ee) => /* @__PURE__ */ S.jsx("div", { className: z.icon, children: /* @__PURE__ */ S.jsx(
|
|
4738
|
-
|
|
4738
|
+
pe,
|
|
4739
4739
|
{
|
|
4740
4740
|
color: u,
|
|
4741
4741
|
height: re,
|
|
@@ -4747,21 +4747,21 @@ const We = (r, e, t) => ({
|
|
|
4747
4747
|
value: (ee) => /* @__PURE__ */ S.jsx("div", { className: z.value, children: ee }, `${M}-${B}`)
|
|
4748
4748
|
};
|
|
4749
4749
|
})(R), ne = (M) => {
|
|
4750
|
-
const { descr: z, icon: ee, um: te, value:
|
|
4750
|
+
const { descr: z, icon: ee, um: te, value: fe } = k(M), ve = {
|
|
4751
4751
|
[E(j)]: O(s),
|
|
4752
4752
|
[E(Y)]: O(g),
|
|
4753
4753
|
[E(B)]: O(w)
|
|
4754
|
-
},
|
|
4754
|
+
}, he = [], Ee = T(fe);
|
|
4755
4755
|
switch (R) {
|
|
4756
4756
|
case "2":
|
|
4757
|
-
ee &&
|
|
4758
|
-
H.value(te ?
|
|
4757
|
+
ee && he.push(H.icon(ee)), he.push(H.descr(z)), he.push(
|
|
4758
|
+
H.value(te ? Ee + " " + te : Ee)
|
|
4759
4759
|
);
|
|
4760
4760
|
break;
|
|
4761
4761
|
default:
|
|
4762
4762
|
case "1":
|
|
4763
|
-
|
|
4764
|
-
H.value(te ?
|
|
4763
|
+
he.push(H.descr(z)), he.push(
|
|
4764
|
+
H.value(te ? Ee + " " + te : Ee)
|
|
4765
4765
|
);
|
|
4766
4766
|
}
|
|
4767
4767
|
return /* @__PURE__ */ S.jsx(
|
|
@@ -4769,11 +4769,11 @@ const We = (r, e, t) => ({
|
|
|
4769
4769
|
{
|
|
4770
4770
|
className: H.className.container,
|
|
4771
4771
|
role: "button",
|
|
4772
|
-
style:
|
|
4772
|
+
style: ve,
|
|
4773
4773
|
tabIndex: 0,
|
|
4774
4774
|
onClick: () => _(M),
|
|
4775
4775
|
onKeyDown: (Sr) => L(Sr, M),
|
|
4776
|
-
children:
|
|
4776
|
+
children: he
|
|
4777
4777
|
},
|
|
4778
4778
|
M.rowId
|
|
4779
4779
|
);
|
|
@@ -4793,7 +4793,7 @@ const We = (r, e, t) => ({
|
|
|
4793
4793
|
onClose: i
|
|
4794
4794
|
}) => {
|
|
4795
4795
|
var R, D;
|
|
4796
|
-
const [c, l] = X(), [u, f] = X(t ?? !0), d =
|
|
4796
|
+
const [c, l] = X(), [u, f] = X(t ?? !0), d = xe(null), h = s.trim() ? s : "100vh", g = ye(
|
|
4797
4797
|
(b) => {
|
|
4798
4798
|
var P, C;
|
|
4799
4799
|
if (!((P = b.rows) != null && P.length) || !((C = b.columns) != null && C.length))
|
|
@@ -4801,7 +4801,7 @@ const We = (r, e, t) => ({
|
|
|
4801
4801
|
const v = b.rows[0];
|
|
4802
4802
|
return b.columns.filter((V) => V.visible ?? !0).reduce((V, F) => {
|
|
4803
4803
|
const j = v.cells[F.name];
|
|
4804
|
-
if (!u && n && j.shape !== oe.BUTTON)
|
|
4804
|
+
if (!u && ue(n) && j.shape !== oe.BUTTON)
|
|
4805
4805
|
return V;
|
|
4806
4806
|
const N = {
|
|
4807
4807
|
...j,
|
|
@@ -4820,24 +4820,24 @@ const We = (r, e, t) => ({
|
|
|
4820
4820
|
o && o(Y);
|
|
4821
4821
|
}
|
|
4822
4822
|
};
|
|
4823
|
-
return !u && n && (N.data = { ...N.data, showText: !1 }), {
|
|
4823
|
+
return !u && ue(n) && (N.data = { ...N.data, showText: !1 }), {
|
|
4824
4824
|
...V,
|
|
4825
4825
|
[F.name]: N
|
|
4826
4826
|
};
|
|
4827
4827
|
}, {});
|
|
4828
4828
|
},
|
|
4829
4829
|
[a, o, u, n]
|
|
4830
|
-
), y =
|
|
4830
|
+
), y = ye(() => {
|
|
4831
4831
|
i == null || i();
|
|
4832
4832
|
}, [i]), x = () => {
|
|
4833
|
-
n ? f((b) => !b) : (f(!1), i == null || i());
|
|
4833
|
+
ue(n) ? f((b) => !b) : (f(!1), i == null || i());
|
|
4834
4834
|
};
|
|
4835
4835
|
if (le(() => {
|
|
4836
4836
|
l(g(r));
|
|
4837
4837
|
}, [r]), le(() => {
|
|
4838
4838
|
if (!d.current)
|
|
4839
4839
|
return;
|
|
4840
|
-
if (!n) {
|
|
4840
|
+
if (!ue(n)) {
|
|
4841
4841
|
l(g(r));
|
|
4842
4842
|
return;
|
|
4843
4843
|
}
|
|
@@ -4849,11 +4849,11 @@ const We = (r, e, t) => ({
|
|
|
4849
4849
|
l(g(r));
|
|
4850
4850
|
}, v / 2);
|
|
4851
4851
|
}, [u, n]), le(() => {
|
|
4852
|
-
t !== void 0 && !n && f(t);
|
|
4852
|
+
t !== void 0 && !ue(n) && f(t);
|
|
4853
4853
|
}, [n, t]), !((R = r == null ? void 0 : r.rows) != null && R.length) || !((D = r.columns) != null && D.length))
|
|
4854
4854
|
return null;
|
|
4855
4855
|
const w = {
|
|
4856
|
-
drawer: `smp-drawer ${n ? "smp-drawer-minified" : "smp-drawer-fixed"} ${u ? "smp-drawer-open" : ""}`,
|
|
4856
|
+
drawer: `smp-drawer ${ue(n) ? "smp-drawer-minified" : "smp-drawer-fixed"} ${u ? "smp-drawer-open" : ""}`,
|
|
4857
4857
|
container: "smp-drawer-container",
|
|
4858
4858
|
containerHeader: "smp-drawer-container-header",
|
|
4859
4859
|
containerIcon: `${u ? "" : "smp-drawer-container-icon-close"} smp-drawer-container-icon`,
|
|
@@ -4862,7 +4862,7 @@ const We = (r, e, t) => ({
|
|
|
4862
4862
|
backdrop: `smp-drawer-backdrop ${u ? "smp-drawer-backdrop-open" : ""}`
|
|
4863
4863
|
};
|
|
4864
4864
|
return c && /* @__PURE__ */ S.jsxs(S.Fragment, { children: [
|
|
4865
|
-
!n && /* @__PURE__ */ S.jsx(
|
|
4865
|
+
!ue(n) && /* @__PURE__ */ S.jsx(
|
|
4866
4866
|
"div",
|
|
4867
4867
|
{
|
|
4868
4868
|
"aria-hidden": "true",
|
|
@@ -4882,7 +4882,7 @@ const We = (r, e, t) => ({
|
|
|
4882
4882
|
children: /* @__PURE__ */ S.jsxs("div", { className: w.container, children: [
|
|
4883
4883
|
/* @__PURE__ */ S.jsxs("div", { className: w.containerHeader, children: [
|
|
4884
4884
|
e && /* @__PURE__ */ S.jsx("div", { className: w.containerLogo, children: /* @__PURE__ */ S.jsx(
|
|
4885
|
-
|
|
4885
|
+
pe,
|
|
4886
4886
|
{
|
|
4887
4887
|
icon: e,
|
|
4888
4888
|
title: "drawer_logo",
|
|
@@ -4891,9 +4891,9 @@ const We = (r, e, t) => ({
|
|
|
4891
4891
|
}
|
|
4892
4892
|
) }),
|
|
4893
4893
|
/* @__PURE__ */ S.jsx("div", { className: w.containerIcon, children: /* @__PURE__ */ S.jsx(
|
|
4894
|
-
|
|
4894
|
+
pe,
|
|
4895
4895
|
{
|
|
4896
|
-
icon: n ? "menu_close" : "close",
|
|
4896
|
+
icon: ue(n) ? "menu_close" : "close",
|
|
4897
4897
|
title: "drawer_icon",
|
|
4898
4898
|
rotated: !u,
|
|
4899
4899
|
isInteractable: !0,
|
|
@@ -4928,9 +4928,9 @@ const We = (r, e, t) => ({
|
|
|
4928
4928
|
});
|
|
4929
4929
|
}, [r, s, e]);
|
|
4930
4930
|
const h = {
|
|
4931
|
-
container: `smp-field-container ${
|
|
4931
|
+
container: `smp-field-container ${ue(t) ? `smp-field-position-${n}` : ""}`
|
|
4932
4932
|
}, g = () => {
|
|
4933
|
-
|
|
4933
|
+
ue(t) || i == null || i(u);
|
|
4934
4934
|
};
|
|
4935
4935
|
if (u)
|
|
4936
4936
|
return /* @__PURE__ */ S.jsxs("div", { className: h.container, children: [
|
|
@@ -4957,7 +4957,7 @@ const We = (r, e, t) => ({
|
|
|
4957
4957
|
)
|
|
4958
4958
|
}
|
|
4959
4959
|
),
|
|
4960
|
-
|
|
4960
|
+
ue(t) && //TODO: translation
|
|
4961
4961
|
/* @__PURE__ */ S.jsx(Ce, { bindValue: "Confirm", onClick: () => c == null ? void 0 : c(u) })
|
|
4962
4962
|
] });
|
|
4963
4963
|
};
|
|
@@ -4972,8 +4972,8 @@ export {
|
|
|
4972
4972
|
Kn as DatePicker,
|
|
4973
4973
|
ns as Drawer,
|
|
4974
4974
|
ss as Field,
|
|
4975
|
-
|
|
4975
|
+
pe as Icon,
|
|
4976
4976
|
Gn as Password,
|
|
4977
|
-
|
|
4977
|
+
De as Textfield,
|
|
4978
4978
|
es as configurePaths
|
|
4979
4979
|
};
|