@sme.up/ketchup2 2.0.0-SNAPSHOT-20250616144705 → 2.0.0-SNAPSHOT-20250616153523
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/basic-components/date-picker/date-picker-calendar/date-picker-calendar.d.ts.map +1 -1
- package/dist/basic-components/icon/icon-types.d.ts +4 -0
- package/dist/basic-components/icon/icon-types.d.ts.map +1 -1
- package/dist/basic-components/icon/icon.d.ts.map +1 -1
- package/dist/basic-components/textfield/textfield.d.ts.map +1 -1
- package/dist/ketchup2.cjs.js +10 -10
- package/dist/ketchup2.css +1 -1
- package/dist/ketchup2.es.js +451 -441
- package/package.json +1 -1
package/dist/ketchup2.es.js
CHANGED
|
@@ -56,13 +56,13 @@ function _r() {
|
|
|
56
56
|
switch (h) {
|
|
57
57
|
case g:
|
|
58
58
|
return "Fragment";
|
|
59
|
-
case
|
|
59
|
+
case w:
|
|
60
60
|
return "Profiler";
|
|
61
61
|
case x:
|
|
62
62
|
return "StrictMode";
|
|
63
63
|
case b:
|
|
64
64
|
return "Suspense";
|
|
65
|
-
case
|
|
65
|
+
case L:
|
|
66
66
|
return "SuspenseList";
|
|
67
67
|
case j:
|
|
68
68
|
return "Activity";
|
|
@@ -77,7 +77,7 @@ function _r() {
|
|
|
77
77
|
return (h.displayName || "Context") + ".Provider";
|
|
78
78
|
case E:
|
|
79
79
|
return (h._context.displayName || "Context") + ".Consumer";
|
|
80
|
-
case
|
|
80
|
+
case S:
|
|
81
81
|
var y = h.render;
|
|
82
82
|
return h = h.displayName, h || (h = y.displayName || y.name || "", h = h !== "" ? "ForwardRef(" + h + ")" : "ForwardRef"), h;
|
|
83
83
|
case C:
|
|
@@ -130,7 +130,7 @@ function _r() {
|
|
|
130
130
|
return Error("react-stack-top-frame");
|
|
131
131
|
}
|
|
132
132
|
function i(h) {
|
|
133
|
-
if (
|
|
133
|
+
if (k.call(h, "key")) {
|
|
134
134
|
var y = Object.getOwnPropertyDescriptor(h, "key").get;
|
|
135
135
|
if (y && y.isReactWarning) return !1;
|
|
136
136
|
}
|
|
@@ -138,7 +138,7 @@ function _r() {
|
|
|
138
138
|
}
|
|
139
139
|
function o(h, y) {
|
|
140
140
|
function T() {
|
|
141
|
-
|
|
141
|
+
z || (z = !0, console.error(
|
|
142
142
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
143
143
|
y
|
|
144
144
|
));
|
|
@@ -150,7 +150,7 @@ function _r() {
|
|
|
150
150
|
}
|
|
151
151
|
function f() {
|
|
152
152
|
var h = r(this.type);
|
|
153
|
-
return
|
|
153
|
+
return K[h] || (K[h] = !0, console.error(
|
|
154
154
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
155
155
|
)), h = this.props.ref, h !== void 0 ? h : null;
|
|
156
156
|
}
|
|
@@ -199,12 +199,12 @@ function _r() {
|
|
|
199
199
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
200
200
|
);
|
|
201
201
|
else l(N);
|
|
202
|
-
if (
|
|
202
|
+
if (k.call(y, "key")) {
|
|
203
203
|
N = r(h);
|
|
204
204
|
var q = Object.keys(y).filter(function(se) {
|
|
205
205
|
return se !== "key";
|
|
206
206
|
});
|
|
207
|
-
$ = 0 < q.length ? "{key: someKey, " + q.join(": ..., ") + ": ...}" : "{key: someKey}",
|
|
207
|
+
$ = 0 < q.length ? "{key: someKey, " + q.join(": ..., ") + ": ...}" : "{key: someKey}", _[N + $] || (q = 0 < q.length ? "{" + q.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
208
208
|
`A props object containing a "key" prop is being spread into JSX:
|
|
209
209
|
let props = %s;
|
|
210
210
|
<%s {...props} />
|
|
@@ -215,7 +215,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
215
215
|
N,
|
|
216
216
|
q,
|
|
217
217
|
N
|
|
218
|
-
),
|
|
218
|
+
), _[N + $] = !0);
|
|
219
219
|
}
|
|
220
220
|
if (N = null, T !== void 0 && (t(T), N = "" + T), i(y) && (t(y.key), N = "" + y.key), "key" in y) {
|
|
221
221
|
T = {};
|
|
@@ -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 === p && h._store && (h._store.validated = 1);
|
|
241
241
|
}
|
|
242
|
-
var d = hr, p = Symbol.for("react.transitional.element"), m = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), x = Symbol.for("react.strict_mode"),
|
|
242
|
+
var d = hr, p = 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 = d.__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
|
d = {
|
|
@@ -247,10 +247,10 @@ React keys must be passed directly to JSX without using spread:
|
|
|
247
247
|
return h();
|
|
248
248
|
}
|
|
249
249
|
};
|
|
250
|
-
var
|
|
250
|
+
var z, K = {}, J = d["react-stack-bottom-frame"].bind(
|
|
251
251
|
d,
|
|
252
252
|
a
|
|
253
|
-
)(), W = H(n(a)),
|
|
253
|
+
)(), W = H(n(a)), _ = {};
|
|
254
254
|
Ae.Fragment = g, Ae.jsx = function(h, y, T, $, R) {
|
|
255
255
|
var A = 1e4 > D.recentlyCreatedOwnerStacks++;
|
|
256
256
|
return u(
|
|
@@ -279,10 +279,10 @@ React keys must be passed directly to JSX without using spread:
|
|
|
279
279
|
}()), Ae;
|
|
280
280
|
}
|
|
281
281
|
var $t;
|
|
282
|
-
function
|
|
282
|
+
function kr() {
|
|
283
283
|
return $t || ($t = 1, process.env.NODE_ENV === "production" ? Fe.exports = Lr() : Fe.exports = _r()), Fe.exports;
|
|
284
284
|
}
|
|
285
|
-
var v =
|
|
285
|
+
var v = kr();
|
|
286
286
|
const ne = {
|
|
287
287
|
AUTOCOMPLETE: "ACP",
|
|
288
288
|
BUTTON_LIST: "BTL",
|
|
@@ -299,7 +299,7 @@ const ne = {
|
|
|
299
299
|
SWITCH: "SWT",
|
|
300
300
|
TEXT_FIELD: "ITX",
|
|
301
301
|
PASSWORD: "PWD"
|
|
302
|
-
},
|
|
302
|
+
}, Ir = (r) => r.t == "D8", Nr = (r) => {
|
|
303
303
|
if (r) {
|
|
304
304
|
const e = r.split(";");
|
|
305
305
|
if (e.length == 3)
|
|
@@ -315,14 +315,14 @@ const ne = {
|
|
|
315
315
|
k: ""
|
|
316
316
|
};
|
|
317
317
|
};
|
|
318
|
-
class
|
|
318
|
+
class ze {
|
|
319
319
|
constructor(e, t) {
|
|
320
320
|
Se(this, "class");
|
|
321
321
|
Se(this, "value");
|
|
322
322
|
this.class = e, this.value = t;
|
|
323
323
|
}
|
|
324
324
|
static fromDataObj(e) {
|
|
325
|
-
return new
|
|
325
|
+
return new ze(e, e.k == "1" || e.k == "true");
|
|
326
326
|
}
|
|
327
327
|
getValue() {
|
|
328
328
|
return this.value;
|
|
@@ -584,8 +584,8 @@ function Hr() {
|
|
|
584
584
|
throw new TypeError("invalid type");
|
|
585
585
|
var m = p;
|
|
586
586
|
if (d && typeof d == "object")
|
|
587
|
-
for (var g, x = Object.keys(d).sort(),
|
|
588
|
-
if (g = x[
|
|
587
|
+
for (var g, x = Object.keys(d).sort(), w = 0; w < x.length; w++) {
|
|
588
|
+
if (g = x[w], !t.test(g))
|
|
589
589
|
throw new TypeError("invalid parameter name");
|
|
590
590
|
m += "; " + g + "=" + c(d[g]);
|
|
591
591
|
}
|
|
@@ -602,11 +602,11 @@ function Hr() {
|
|
|
602
602
|
throw new TypeError("invalid media type");
|
|
603
603
|
var g = new u(m.toLowerCase());
|
|
604
604
|
if (p !== -1) {
|
|
605
|
-
var x,
|
|
606
|
-
for (r.lastIndex = p;
|
|
607
|
-
if (
|
|
605
|
+
var x, w, E;
|
|
606
|
+
for (r.lastIndex = p; w = r.exec(d); ) {
|
|
607
|
+
if (w.index !== p)
|
|
608
608
|
throw new TypeError("invalid parameter format");
|
|
609
|
-
p +=
|
|
609
|
+
p += w[0].length, x = w[1].toLowerCase(), E = w[2], E.charCodeAt(0) === 34 && (E = E.slice(1, -1), E.indexOf("\\") !== -1 && (E = E.replace(n, "$1"))), g.parameters[x] = E;
|
|
610
610
|
}
|
|
611
611
|
if (p !== d.length)
|
|
612
612
|
throw new TypeError("invalid parameter format");
|
|
@@ -675,7 +675,7 @@ var Br = Hr(), Re = /* @__PURE__ */ new Map(), gr = function(e) {
|
|
|
675
675
|
}, 0);
|
|
676
676
|
}, n = 0, s = xe[e].length; n < s; n++)
|
|
677
677
|
t(n);
|
|
678
|
-
},
|
|
678
|
+
}, Kr = function(e, t, n) {
|
|
679
679
|
if (Re.has(e)) {
|
|
680
680
|
var s = Re.get(e);
|
|
681
681
|
if (s === void 0) {
|
|
@@ -691,14 +691,14 @@ var Br = Hr(), Re = /* @__PURE__ */ new Map(), gr = function(e) {
|
|
|
691
691
|
var o;
|
|
692
692
|
a ? Re.set(e, a) : ((o = i.responseXML) === null || o === void 0 ? void 0 : o.documentElement) instanceof SVGSVGElement && Re.set(e, i.responseXML.documentElement), Gr(e);
|
|
693
693
|
});
|
|
694
|
-
},
|
|
694
|
+
}, zr = function(e, t, n) {
|
|
695
695
|
yr(e, t, function(s, a) {
|
|
696
696
|
var i;
|
|
697
697
|
s ? n(s) : ((i = a.responseXML) === null || i === void 0 ? void 0 : i.documentElement) instanceof SVGSVGElement && n(null, a.responseXML.documentElement);
|
|
698
698
|
});
|
|
699
699
|
}, qr = 0, Jr = function() {
|
|
700
700
|
return ++qr;
|
|
701
|
-
}, me = [], _t = {}, Xr = "http://www.w3.org/2000/svg", at = "http://www.w3.org/1999/xlink",
|
|
701
|
+
}, me = [], _t = {}, Xr = "http://www.w3.org/2000/svg", at = "http://www.w3.org/1999/xlink", kt = function(e, t, n, s, a, i, o) {
|
|
702
702
|
var f = e.getAttribute("data-src") || e.getAttribute("src");
|
|
703
703
|
if (!f) {
|
|
704
704
|
o(new Error("Invalid data-src or src attribute"));
|
|
@@ -709,7 +709,7 @@ var Br = Hr(), Re = /* @__PURE__ */ new Map(), gr = function(e) {
|
|
|
709
709
|
return;
|
|
710
710
|
}
|
|
711
711
|
me.push(e), e.setAttribute("src", "");
|
|
712
|
-
var c = s ?
|
|
712
|
+
var c = s ? Kr : zr;
|
|
713
713
|
c(f, a, function(u, l) {
|
|
714
714
|
if (!l) {
|
|
715
715
|
me.splice(me.indexOf(e), 1), e = null, o(u);
|
|
@@ -725,8 +725,8 @@ var Br = Hr(), Re = /* @__PURE__ */ new Map(), gr = function(e) {
|
|
|
725
725
|
g && l.setAttribute("height", g);
|
|
726
726
|
var x = Array.from(new Set(st(st(st([], (l.getAttribute("class") || "").split(" "), !0), ["injected-svg"], !1), (e.getAttribute("class") || "").split(" "), !0))).join(" ").trim();
|
|
727
727
|
l.setAttribute("class", x);
|
|
728
|
-
var
|
|
729
|
-
|
|
728
|
+
var w = e.getAttribute("style");
|
|
729
|
+
w && l.setAttribute("style", w), l.setAttribute("data-src", f);
|
|
730
730
|
var E = [].filter.call(e.attributes, function(W) {
|
|
731
731
|
return /^data-\w[\w-]*$/.test(W.name);
|
|
732
732
|
});
|
|
@@ -744,13 +744,13 @@ var Br = Hr(), Re = /* @__PURE__ */ new Map(), gr = function(e) {
|
|
|
744
744
|
path: [],
|
|
745
745
|
pattern: ["fill", "stroke"],
|
|
746
746
|
radialGradient: ["fill", "stroke"]
|
|
747
|
-
},
|
|
747
|
+
}, S, b, L, C, Y;
|
|
748
748
|
Object.keys(O).forEach(function(W) {
|
|
749
|
-
|
|
750
|
-
for (var
|
|
749
|
+
S = W, L = O[W], b = l.querySelectorAll(S + "[id]");
|
|
750
|
+
for (var _ = function($, R) {
|
|
751
751
|
C = b[$].id, Y = C + "-" + Jr();
|
|
752
752
|
var A;
|
|
753
|
-
Array.prototype.forEach.call(
|
|
753
|
+
Array.prototype.forEach.call(L, function(V) {
|
|
754
754
|
A = l.querySelectorAll("[" + V + '*="' + C + '"]');
|
|
755
755
|
for (var X = 0, te = A.length; X < te; X++) {
|
|
756
756
|
var re = A[X].getAttribute(V);
|
|
@@ -765,15 +765,15 @@ var Br = Hr(), Re = /* @__PURE__ */ new Map(), gr = function(e) {
|
|
|
765
765
|
F[se].setAttributeNS(at, "href", "#" + Y);
|
|
766
766
|
b[$].id = Y;
|
|
767
767
|
}, h = 0, y = b.length; h < y; h++)
|
|
768
|
-
|
|
768
|
+
_(h);
|
|
769
769
|
});
|
|
770
770
|
}
|
|
771
771
|
l.removeAttribute("xmlns:a");
|
|
772
|
-
for (var j = l.querySelectorAll("script"), P = [], D,
|
|
773
|
-
|
|
772
|
+
for (var j = l.querySelectorAll("script"), P = [], D, k, U = 0, H = j.length; U < H; U++)
|
|
773
|
+
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]));
|
|
774
774
|
if (P.length > 0 && (t === "always" || t === "once" && !_t[f])) {
|
|
775
|
-
for (var
|
|
776
|
-
new Function(P[
|
|
775
|
+
for (var z = 0, K = P.length; z < K; z++)
|
|
776
|
+
new Function(P[z])(window);
|
|
777
777
|
_t[f] = !0;
|
|
778
778
|
}
|
|
779
779
|
var J = l.querySelectorAll("style");
|
|
@@ -789,14 +789,14 @@ var Br = Hr(), Re = /* @__PURE__ */ new Map(), gr = function(e) {
|
|
|
789
789
|
var n = t === void 0 ? {} : t, s = n.afterAll, a = s === void 0 ? function() {
|
|
790
790
|
} : s, i = n.afterEach, o = i === void 0 ? function() {
|
|
791
791
|
} : i, f = n.beforeEach, c = f === void 0 ? function() {
|
|
792
|
-
} : f, u = n.cacheRequests, l = u === void 0 ? !0 : u, d = n.evalScripts, p = d === void 0 ? "never" : d, m = n.httpRequestWithCredentials, g = m === void 0 ? !1 : m, x = n.renumerateIRIElements,
|
|
792
|
+
} : f, u = n.cacheRequests, l = u === void 0 ? !0 : u, d = n.evalScripts, p = d === void 0 ? "never" : d, m = n.httpRequestWithCredentials, g = m === void 0 ? !1 : m, x = n.renumerateIRIElements, w = x === void 0 ? !0 : x;
|
|
793
793
|
if (e && "length" in e)
|
|
794
|
-
for (var E = 0, O = 0,
|
|
795
|
-
|
|
796
|
-
o(b,
|
|
794
|
+
for (var E = 0, O = 0, S = e.length; O < S; O++)
|
|
795
|
+
kt(e[O], p, w, l, g, c, function(b, L) {
|
|
796
|
+
o(b, L), e && "length" in e && e.length === ++E && a(E);
|
|
797
797
|
});
|
|
798
|
-
else e ?
|
|
799
|
-
o(b,
|
|
798
|
+
else e ? kt(e, p, w, l, g, c, function(b, L) {
|
|
799
|
+
o(b, L), a(1), e = null;
|
|
800
800
|
}) : a(0);
|
|
801
801
|
}, Ue = { exports: {} }, We = { exports: {} }, Q = {};
|
|
802
802
|
/** @license React v16.13.1
|
|
@@ -807,15 +807,15 @@ var Br = Hr(), Re = /* @__PURE__ */ new Map(), gr = function(e) {
|
|
|
807
807
|
* This source code is licensed under the MIT license found in the
|
|
808
808
|
* LICENSE file in the root directory of this source tree.
|
|
809
809
|
*/
|
|
810
|
-
var
|
|
810
|
+
var It;
|
|
811
811
|
function Qr() {
|
|
812
|
-
if (
|
|
813
|
-
|
|
814
|
-
var r = typeof Symbol == "function" && Symbol.for, e = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, n = r ? Symbol.for("react.fragment") : 60107, s = r ? Symbol.for("react.strict_mode") : 60108, a = r ? Symbol.for("react.profiler") : 60114, i = r ? Symbol.for("react.provider") : 60109, o = r ? Symbol.for("react.context") : 60110, f = r ? Symbol.for("react.async_mode") : 60111, c = r ? Symbol.for("react.concurrent_mode") : 60111, u = r ? Symbol.for("react.forward_ref") : 60112, l = r ? Symbol.for("react.suspense") : 60113, d = r ? Symbol.for("react.suspense_list") : 60120, p = r ? Symbol.for("react.memo") : 60115, m = r ? Symbol.for("react.lazy") : 60116, g = r ? Symbol.for("react.block") : 60121, x = r ? Symbol.for("react.fundamental") : 60117,
|
|
812
|
+
if (It) return Q;
|
|
813
|
+
It = 1;
|
|
814
|
+
var r = typeof Symbol == "function" && Symbol.for, e = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, n = r ? Symbol.for("react.fragment") : 60107, s = r ? Symbol.for("react.strict_mode") : 60108, a = r ? Symbol.for("react.profiler") : 60114, i = r ? Symbol.for("react.provider") : 60109, o = r ? Symbol.for("react.context") : 60110, f = r ? Symbol.for("react.async_mode") : 60111, c = r ? Symbol.for("react.concurrent_mode") : 60111, u = r ? Symbol.for("react.forward_ref") : 60112, l = r ? Symbol.for("react.suspense") : 60113, d = r ? Symbol.for("react.suspense_list") : 60120, p = r ? Symbol.for("react.memo") : 60115, m = r ? Symbol.for("react.lazy") : 60116, g = r ? Symbol.for("react.block") : 60121, x = r ? Symbol.for("react.fundamental") : 60117, w = r ? Symbol.for("react.responder") : 60118, E = r ? Symbol.for("react.scope") : 60119;
|
|
815
815
|
function O(b) {
|
|
816
816
|
if (typeof b == "object" && b !== null) {
|
|
817
|
-
var
|
|
818
|
-
switch (
|
|
817
|
+
var L = b.$$typeof;
|
|
818
|
+
switch (L) {
|
|
819
819
|
case e:
|
|
820
820
|
switch (b = b.type, b) {
|
|
821
821
|
case f:
|
|
@@ -834,20 +834,20 @@ function Qr() {
|
|
|
834
834
|
case i:
|
|
835
835
|
return b;
|
|
836
836
|
default:
|
|
837
|
-
return
|
|
837
|
+
return L;
|
|
838
838
|
}
|
|
839
839
|
}
|
|
840
840
|
case t:
|
|
841
|
-
return
|
|
841
|
+
return L;
|
|
842
842
|
}
|
|
843
843
|
}
|
|
844
844
|
}
|
|
845
|
-
function
|
|
845
|
+
function S(b) {
|
|
846
846
|
return O(b) === c;
|
|
847
847
|
}
|
|
848
848
|
return Q.AsyncMode = f, Q.ConcurrentMode = c, Q.ContextConsumer = o, Q.ContextProvider = i, Q.Element = e, Q.ForwardRef = u, Q.Fragment = n, Q.Lazy = m, Q.Memo = p, Q.Portal = t, Q.Profiler = a, Q.StrictMode = s, Q.Suspense = l, Q.isAsyncMode = function(b) {
|
|
849
|
-
return
|
|
850
|
-
}, Q.isConcurrentMode =
|
|
849
|
+
return S(b) || O(b) === f;
|
|
850
|
+
}, Q.isConcurrentMode = S, Q.isContextConsumer = function(b) {
|
|
851
851
|
return O(b) === o;
|
|
852
852
|
}, Q.isContextProvider = function(b) {
|
|
853
853
|
return O(b) === i;
|
|
@@ -870,7 +870,7 @@ function Qr() {
|
|
|
870
870
|
}, Q.isSuspense = function(b) {
|
|
871
871
|
return O(b) === l;
|
|
872
872
|
}, Q.isValidElementType = function(b) {
|
|
873
|
-
return typeof b == "string" || typeof b == "function" || b === n || b === c || b === a || b === s || b === l || b === d || typeof b == "object" && b !== null && (b.$$typeof === m || b.$$typeof === p || b.$$typeof === i || b.$$typeof === o || b.$$typeof === u || b.$$typeof === x || b.$$typeof ===
|
|
873
|
+
return typeof b == "string" || typeof b == "function" || b === n || b === c || b === a || b === s || b === l || b === d || typeof b == "object" && b !== null && (b.$$typeof === m || b.$$typeof === p || b.$$typeof === i || b.$$typeof === o || b.$$typeof === u || b.$$typeof === x || b.$$typeof === w || b.$$typeof === E || b.$$typeof === g);
|
|
874
874
|
}, Q.typeOf = O, Q;
|
|
875
875
|
}
|
|
876
876
|
var ee = {};
|
|
@@ -885,12 +885,12 @@ var ee = {};
|
|
|
885
885
|
var Nt;
|
|
886
886
|
function en() {
|
|
887
887
|
return Nt || (Nt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
888
|
-
var r = typeof Symbol == "function" && Symbol.for, e = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, n = r ? Symbol.for("react.fragment") : 60107, s = r ? Symbol.for("react.strict_mode") : 60108, a = r ? Symbol.for("react.profiler") : 60114, i = r ? Symbol.for("react.provider") : 60109, o = r ? Symbol.for("react.context") : 60110, f = r ? Symbol.for("react.async_mode") : 60111, c = r ? Symbol.for("react.concurrent_mode") : 60111, u = r ? Symbol.for("react.forward_ref") : 60112, l = r ? Symbol.for("react.suspense") : 60113, d = r ? Symbol.for("react.suspense_list") : 60120, p = r ? Symbol.for("react.memo") : 60115, m = r ? Symbol.for("react.lazy") : 60116, g = r ? Symbol.for("react.block") : 60121, x = r ? Symbol.for("react.fundamental") : 60117,
|
|
888
|
+
var r = typeof Symbol == "function" && Symbol.for, e = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, n = r ? Symbol.for("react.fragment") : 60107, s = r ? Symbol.for("react.strict_mode") : 60108, a = r ? Symbol.for("react.profiler") : 60114, i = r ? Symbol.for("react.provider") : 60109, o = r ? Symbol.for("react.context") : 60110, f = r ? Symbol.for("react.async_mode") : 60111, c = r ? Symbol.for("react.concurrent_mode") : 60111, u = r ? Symbol.for("react.forward_ref") : 60112, l = r ? Symbol.for("react.suspense") : 60113, d = r ? Symbol.for("react.suspense_list") : 60120, p = r ? Symbol.for("react.memo") : 60115, m = r ? Symbol.for("react.lazy") : 60116, g = r ? Symbol.for("react.block") : 60121, x = r ? Symbol.for("react.fundamental") : 60117, w = r ? Symbol.for("react.responder") : 60118, E = r ? Symbol.for("react.scope") : 60119;
|
|
889
889
|
function O(I) {
|
|
890
890
|
return typeof I == "string" || typeof I == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
891
|
-
I === n || I === c || I === a || I === s || I === l || I === d || typeof I == "object" && I !== null && (I.$$typeof === m || I.$$typeof === p || I.$$typeof === i || I.$$typeof === o || I.$$typeof === u || I.$$typeof === x || I.$$typeof ===
|
|
891
|
+
I === n || I === c || I === a || I === s || I === l || I === d || typeof I == "object" && I !== null && (I.$$typeof === m || I.$$typeof === p || I.$$typeof === i || I.$$typeof === o || I.$$typeof === u || I.$$typeof === x || I.$$typeof === w || I.$$typeof === E || I.$$typeof === g);
|
|
892
892
|
}
|
|
893
|
-
function
|
|
893
|
+
function S(I) {
|
|
894
894
|
if (typeof I == "object" && I !== null) {
|
|
895
895
|
var V = I.$$typeof;
|
|
896
896
|
switch (V) {
|
|
@@ -922,47 +922,47 @@ function en() {
|
|
|
922
922
|
}
|
|
923
923
|
}
|
|
924
924
|
}
|
|
925
|
-
var b = f,
|
|
926
|
-
function
|
|
927
|
-
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) ||
|
|
925
|
+
var b = f, L = c, C = o, Y = i, j = e, P = u, D = n, k = m, U = p, H = t, z = a, K = s, J = l, W = !1;
|
|
926
|
+
function _(I) {
|
|
927
|
+
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) === f;
|
|
928
928
|
}
|
|
929
929
|
function h(I) {
|
|
930
|
-
return
|
|
930
|
+
return S(I) === c;
|
|
931
931
|
}
|
|
932
932
|
function y(I) {
|
|
933
|
-
return
|
|
933
|
+
return S(I) === o;
|
|
934
934
|
}
|
|
935
935
|
function T(I) {
|
|
936
|
-
return
|
|
936
|
+
return S(I) === i;
|
|
937
937
|
}
|
|
938
938
|
function $(I) {
|
|
939
939
|
return typeof I == "object" && I !== null && I.$$typeof === e;
|
|
940
940
|
}
|
|
941
941
|
function R(I) {
|
|
942
|
-
return
|
|
942
|
+
return S(I) === u;
|
|
943
943
|
}
|
|
944
944
|
function A(I) {
|
|
945
|
-
return
|
|
945
|
+
return S(I) === n;
|
|
946
946
|
}
|
|
947
947
|
function M(I) {
|
|
948
|
-
return
|
|
948
|
+
return S(I) === m;
|
|
949
949
|
}
|
|
950
950
|
function F(I) {
|
|
951
|
-
return
|
|
951
|
+
return S(I) === p;
|
|
952
952
|
}
|
|
953
953
|
function N(I) {
|
|
954
|
-
return
|
|
954
|
+
return S(I) === t;
|
|
955
955
|
}
|
|
956
956
|
function q(I) {
|
|
957
|
-
return
|
|
957
|
+
return S(I) === a;
|
|
958
958
|
}
|
|
959
959
|
function B(I) {
|
|
960
|
-
return
|
|
960
|
+
return S(I) === s;
|
|
961
961
|
}
|
|
962
962
|
function se(I) {
|
|
963
|
-
return
|
|
963
|
+
return S(I) === l;
|
|
964
964
|
}
|
|
965
|
-
ee.AsyncMode = b, ee.ConcurrentMode =
|
|
965
|
+
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;
|
|
966
966
|
}()), ee;
|
|
967
967
|
}
|
|
968
968
|
var Mt;
|
|
@@ -1105,24 +1105,24 @@ function nn() {
|
|
|
1105
1105
|
return y;
|
|
1106
1106
|
}
|
|
1107
1107
|
var d = "<<anonymous>>", p = {
|
|
1108
|
-
array:
|
|
1109
|
-
bigint:
|
|
1110
|
-
bool:
|
|
1111
|
-
func:
|
|
1112
|
-
number:
|
|
1113
|
-
object:
|
|
1114
|
-
string:
|
|
1115
|
-
symbol:
|
|
1108
|
+
array: w("array"),
|
|
1109
|
+
bigint: w("bigint"),
|
|
1110
|
+
bool: w("boolean"),
|
|
1111
|
+
func: w("function"),
|
|
1112
|
+
number: w("number"),
|
|
1113
|
+
object: w("object"),
|
|
1114
|
+
string: w("string"),
|
|
1115
|
+
symbol: w("symbol"),
|
|
1116
1116
|
any: E(),
|
|
1117
1117
|
arrayOf: O,
|
|
1118
|
-
element:
|
|
1118
|
+
element: S(),
|
|
1119
1119
|
elementType: b(),
|
|
1120
|
-
instanceOf:
|
|
1120
|
+
instanceOf: L,
|
|
1121
1121
|
node: P(),
|
|
1122
1122
|
objectOf: Y,
|
|
1123
1123
|
oneOf: C,
|
|
1124
1124
|
oneOfType: j,
|
|
1125
|
-
shape:
|
|
1125
|
+
shape: k,
|
|
1126
1126
|
exact: U
|
|
1127
1127
|
};
|
|
1128
1128
|
function m(h, y) {
|
|
@@ -1155,9 +1155,9 @@ function nn() {
|
|
|
1155
1155
|
var R = $.bind(null, !1);
|
|
1156
1156
|
return R.isRequired = $.bind(null, !0), R;
|
|
1157
1157
|
}
|
|
1158
|
-
function
|
|
1158
|
+
function w(h) {
|
|
1159
1159
|
function y(T, $, R, A, M, F) {
|
|
1160
|
-
var N = T[$], q =
|
|
1160
|
+
var N = T[$], q = K(N);
|
|
1161
1161
|
if (q !== h) {
|
|
1162
1162
|
var B = J(N);
|
|
1163
1163
|
return new g(
|
|
@@ -1178,7 +1178,7 @@ function nn() {
|
|
|
1178
1178
|
return new g("Property `" + M + "` of component `" + R + "` has invalid PropType notation inside arrayOf.");
|
|
1179
1179
|
var F = T[$];
|
|
1180
1180
|
if (!Array.isArray(F)) {
|
|
1181
|
-
var N =
|
|
1181
|
+
var N = K(F);
|
|
1182
1182
|
return new g("Invalid " + A + " `" + M + "` of type " + ("`" + N + "` supplied to `" + R + "`, expected an array."));
|
|
1183
1183
|
}
|
|
1184
1184
|
for (var q = 0; q < F.length; q++) {
|
|
@@ -1190,11 +1190,11 @@ function nn() {
|
|
|
1190
1190
|
}
|
|
1191
1191
|
return x(y);
|
|
1192
1192
|
}
|
|
1193
|
-
function
|
|
1193
|
+
function S() {
|
|
1194
1194
|
function h(y, T, $, R, A) {
|
|
1195
1195
|
var M = y[T];
|
|
1196
1196
|
if (!o(M)) {
|
|
1197
|
-
var F =
|
|
1197
|
+
var F = K(M);
|
|
1198
1198
|
return new g("Invalid " + R + " `" + A + "` of type " + ("`" + F + "` supplied to `" + $ + "`, expected a single ReactElement."));
|
|
1199
1199
|
}
|
|
1200
1200
|
return null;
|
|
@@ -1205,17 +1205,17 @@ function nn() {
|
|
|
1205
1205
|
function h(y, T, $, R, A) {
|
|
1206
1206
|
var M = y[T];
|
|
1207
1207
|
if (!r.isValidElementType(M)) {
|
|
1208
|
-
var F =
|
|
1208
|
+
var F = K(M);
|
|
1209
1209
|
return new g("Invalid " + R + " `" + A + "` of type " + ("`" + F + "` supplied to `" + $ + "`, expected a single ReactElement type."));
|
|
1210
1210
|
}
|
|
1211
1211
|
return null;
|
|
1212
1212
|
}
|
|
1213
1213
|
return x(h);
|
|
1214
1214
|
}
|
|
1215
|
-
function
|
|
1215
|
+
function L(h) {
|
|
1216
1216
|
function y(T, $, R, A, M) {
|
|
1217
1217
|
if (!(T[$] instanceof h)) {
|
|
1218
|
-
var F = h.name || d, N =
|
|
1218
|
+
var F = h.name || d, N = _(T[$]);
|
|
1219
1219
|
return new g("Invalid " + A + " `" + M + "` of type " + ("`" + N + "` supplied to `" + R + "`, expected ") + ("instance of `" + F + "`."));
|
|
1220
1220
|
}
|
|
1221
1221
|
return null;
|
|
@@ -1243,7 +1243,7 @@ function nn() {
|
|
|
1243
1243
|
function y(T, $, R, A, M) {
|
|
1244
1244
|
if (typeof h != "function")
|
|
1245
1245
|
return new g("Property `" + M + "` of component `" + R + "` has invalid PropType notation inside objectOf.");
|
|
1246
|
-
var F = T[$], N =
|
|
1246
|
+
var F = T[$], N = K(F);
|
|
1247
1247
|
if (N !== "object")
|
|
1248
1248
|
return new g("Invalid " + A + " `" + M + "` of type " + ("`" + N + "` supplied to `" + R + "`, expected an object."));
|
|
1249
1249
|
for (var q in F)
|
|
@@ -1289,9 +1289,9 @@ function nn() {
|
|
|
1289
1289
|
(h || "React class") + ": " + y + " type `" + T + "." + $ + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + R + "`."
|
|
1290
1290
|
);
|
|
1291
1291
|
}
|
|
1292
|
-
function
|
|
1292
|
+
function k(h) {
|
|
1293
1293
|
function y(T, $, R, A, M) {
|
|
1294
|
-
var F = T[$], N =
|
|
1294
|
+
var F = T[$], N = K(F);
|
|
1295
1295
|
if (N !== "object")
|
|
1296
1296
|
return new g("Invalid " + A + " `" + M + "` of type `" + N + "` " + ("supplied to `" + R + "`, expected `object`."));
|
|
1297
1297
|
for (var q in h) {
|
|
@@ -1308,7 +1308,7 @@ function nn() {
|
|
|
1308
1308
|
}
|
|
1309
1309
|
function U(h) {
|
|
1310
1310
|
function y(T, $, R, A, M) {
|
|
1311
|
-
var F = T[$], N =
|
|
1311
|
+
var F = T[$], N = K(F);
|
|
1312
1312
|
if (N !== "object")
|
|
1313
1313
|
return new g("Invalid " + A + " `" + M + "` of type `" + N + "` " + ("supplied to `" + R + "`, expected `object`."));
|
|
1314
1314
|
var q = e({}, T[$], h);
|
|
@@ -1362,17 +1362,17 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
|
1362
1362
|
return !1;
|
|
1363
1363
|
}
|
|
1364
1364
|
}
|
|
1365
|
-
function
|
|
1365
|
+
function z(h, y) {
|
|
1366
1366
|
return h === "symbol" ? !0 : y ? y["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && y instanceof Symbol : !1;
|
|
1367
1367
|
}
|
|
1368
|
-
function
|
|
1368
|
+
function K(h) {
|
|
1369
1369
|
var y = typeof h;
|
|
1370
|
-
return Array.isArray(h) ? "array" : h instanceof RegExp ? "object" :
|
|
1370
|
+
return Array.isArray(h) ? "array" : h instanceof RegExp ? "object" : z(y, h) ? "symbol" : y;
|
|
1371
1371
|
}
|
|
1372
1372
|
function J(h) {
|
|
1373
1373
|
if (typeof h > "u" || h === null)
|
|
1374
1374
|
return "" + h;
|
|
1375
|
-
var y =
|
|
1375
|
+
var y = K(h);
|
|
1376
1376
|
if (y === "object") {
|
|
1377
1377
|
if (h instanceof Date)
|
|
1378
1378
|
return "date";
|
|
@@ -1395,7 +1395,7 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
|
1395
1395
|
return y;
|
|
1396
1396
|
}
|
|
1397
1397
|
}
|
|
1398
|
-
function
|
|
1398
|
+
function _(h) {
|
|
1399
1399
|
return !h.constructor || !h.constructor.name ? d : h.constructor.name;
|
|
1400
1400
|
}
|
|
1401
1401
|
return p.checkPropTypes = s, p.resetWarningCache = s.resetWarningCache, p.PropTypes = p, p;
|
|
@@ -1486,8 +1486,8 @@ var ie = /* @__PURE__ */ an(), on = function(e) {
|
|
|
1486
1486
|
return t.renderSVG = function() {
|
|
1487
1487
|
var s = this;
|
|
1488
1488
|
if (this.reactWrapper instanceof on(this.reactWrapper).Node) {
|
|
1489
|
-
var a = this.props, i = a.desc, o = a.evalScripts, f = a.httpRequestWithCredentials, c = a.renumerateIRIElements, u = a.src, l = a.title, d = a.useRequestCache, p = this.props.onError, m = this.props.beforeInjection, g = this.props.afterInjection, x = this.props.wrapper,
|
|
1490
|
-
x === "svg" ? (
|
|
1489
|
+
var a = this.props, i = a.desc, o = a.evalScripts, f = a.httpRequestWithCredentials, c = a.renumerateIRIElements, u = a.src, l = a.title, d = a.useRequestCache, p = this.props.onError, m = this.props.beforeInjection, g = this.props.afterInjection, x = this.props.wrapper, w, E;
|
|
1490
|
+
x === "svg" ? (w = document.createElementNS(He, x), w.setAttribute("xmlns", He), w.setAttribute("xmlns:xlink", Gt), E = document.createElementNS(He, x)) : (w = document.createElement(x), E = document.createElement(x)), w.appendChild(E), E.dataset.src = u, this.nonReactWrapper = this.reactWrapper.appendChild(w);
|
|
1491
1491
|
var O = function(C) {
|
|
1492
1492
|
if (s.removeSVG(), !s._isMounted) {
|
|
1493
1493
|
p(C);
|
|
@@ -1501,7 +1501,7 @@ var ie = /* @__PURE__ */ an(), on = function(e) {
|
|
|
1501
1501
|
}, function() {
|
|
1502
1502
|
p(C);
|
|
1503
1503
|
});
|
|
1504
|
-
},
|
|
1504
|
+
}, S = function(C, Y) {
|
|
1505
1505
|
if (C) {
|
|
1506
1506
|
O(C);
|
|
1507
1507
|
return;
|
|
@@ -1532,12 +1532,12 @@ var ie = /* @__PURE__ */ an(), on = function(e) {
|
|
|
1532
1532
|
}
|
|
1533
1533
|
try {
|
|
1534
1534
|
m(C);
|
|
1535
|
-
} catch (
|
|
1536
|
-
O(
|
|
1535
|
+
} catch (k) {
|
|
1536
|
+
O(k);
|
|
1537
1537
|
}
|
|
1538
1538
|
};
|
|
1539
1539
|
Zr(E, {
|
|
1540
|
-
afterEach:
|
|
1540
|
+
afterEach: S,
|
|
1541
1541
|
beforeEach: b,
|
|
1542
1542
|
cacheRequests: d,
|
|
1543
1543
|
evalScripts: o,
|
|
@@ -1613,7 +1613,7 @@ let gt = {
|
|
|
1613
1613
|
};
|
|
1614
1614
|
const Ss = (r) => {
|
|
1615
1615
|
gt = { ...gt, ...r };
|
|
1616
|
-
},
|
|
1616
|
+
}, Kt = (r) => `${gt.assets}/${r}`.replace(/\/+/g, "/"), ue = hr.memo(
|
|
1617
1617
|
({
|
|
1618
1618
|
icon: r,
|
|
1619
1619
|
width: e,
|
|
@@ -1626,21 +1626,24 @@ const Ss = (r) => {
|
|
|
1626
1626
|
onClick: f,
|
|
1627
1627
|
isInteractable: c = !1,
|
|
1628
1628
|
spin: u = !1,
|
|
1629
|
-
title: l
|
|
1629
|
+
title: l,
|
|
1630
|
+
tabIndex: d
|
|
1630
1631
|
}) => {
|
|
1631
|
-
const [
|
|
1632
|
+
const [p, m] = Z(r), g = (r == null ? void 0 : r.startsWith("http")) || (r == null ? void 0 : r.startsWith("/")), x = g && (r == null ? void 0 : r.toLowerCase().endsWith(".svg")), w = Kt(`assets/svg/${r}.svg`), E = Kt(
|
|
1632
1633
|
`assets/svg/${n}.svg`
|
|
1633
|
-
),
|
|
1634
|
+
), O = {
|
|
1634
1635
|
img: `${c ? "smp-image-interactable" : ""}`,
|
|
1635
1636
|
svg: `smp-icon ${i ? `smp-icon-${i}` : ""} ${o ? "smp-icon-rotated" : ""} ${c ? "smp-icon-interactable" : ""} ${u ? "smp-icon-spin" : ""}`
|
|
1636
|
-
},
|
|
1637
|
+
}, S = () => {
|
|
1637
1638
|
!a && c && f && f();
|
|
1639
|
+
}, b = (L) => {
|
|
1640
|
+
!a && c && (L.key === "Enter" || L.key === " ") && (L.preventDefault(), S());
|
|
1638
1641
|
};
|
|
1639
|
-
return /* @__PURE__ */ v.jsx(v.Fragment, { children:
|
|
1642
|
+
return /* @__PURE__ */ v.jsx(v.Fragment, { children: x ? /* @__PURE__ */ v.jsx(
|
|
1640
1643
|
je,
|
|
1641
1644
|
{
|
|
1642
1645
|
src: r,
|
|
1643
|
-
fallback: () => /* @__PURE__ */ v.jsx(je, { src:
|
|
1646
|
+
fallback: () => /* @__PURE__ */ v.jsx(je, { src: E, wrapper: "svg" }),
|
|
1644
1647
|
width: e || "1rem",
|
|
1645
1648
|
height: t || "1rem",
|
|
1646
1649
|
wrapper: "svg",
|
|
@@ -1648,32 +1651,34 @@ const Ss = (r) => {
|
|
|
1648
1651
|
role: "application",
|
|
1649
1652
|
fill: s,
|
|
1650
1653
|
"aria-disabled": a,
|
|
1651
|
-
className:
|
|
1652
|
-
onClick:
|
|
1654
|
+
className: O.svg,
|
|
1655
|
+
onClick: S,
|
|
1656
|
+
onKeyDown: b,
|
|
1657
|
+
tabIndex: d
|
|
1653
1658
|
}
|
|
1654
|
-
) :
|
|
1659
|
+
) : g ? (
|
|
1655
1660
|
// eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
|
|
1656
1661
|
/* @__PURE__ */ v.jsx(
|
|
1657
1662
|
"img",
|
|
1658
1663
|
{
|
|
1659
|
-
src:
|
|
1664
|
+
src: p,
|
|
1660
1665
|
width: e || "16px",
|
|
1661
1666
|
height: t || "auto",
|
|
1662
1667
|
alt: l,
|
|
1663
|
-
onError: () =>
|
|
1664
|
-
onClick:
|
|
1665
|
-
className:
|
|
1668
|
+
onError: () => m(E),
|
|
1669
|
+
onClick: S,
|
|
1670
|
+
className: O.img,
|
|
1666
1671
|
title: l,
|
|
1667
|
-
onKeyDown: (
|
|
1668
|
-
(
|
|
1672
|
+
onKeyDown: (L) => {
|
|
1673
|
+
(L.key === "Enter" || L.key === " ") && S();
|
|
1669
1674
|
}
|
|
1670
1675
|
}
|
|
1671
1676
|
)
|
|
1672
1677
|
) : /* @__PURE__ */ v.jsx(
|
|
1673
1678
|
je,
|
|
1674
1679
|
{
|
|
1675
|
-
src:
|
|
1676
|
-
fallback: () => /* @__PURE__ */ v.jsx(je, { src:
|
|
1680
|
+
src: w,
|
|
1681
|
+
fallback: () => /* @__PURE__ */ v.jsx(je, { src: E, wrapper: "svg" }),
|
|
1677
1682
|
width: e || "1rem",
|
|
1678
1683
|
height: t || "1rem",
|
|
1679
1684
|
wrapper: "svg",
|
|
@@ -1681,8 +1686,10 @@ const Ss = (r) => {
|
|
|
1681
1686
|
role: "application",
|
|
1682
1687
|
fill: s,
|
|
1683
1688
|
"aria-disabled": a,
|
|
1684
|
-
className:
|
|
1685
|
-
onClick:
|
|
1689
|
+
className: O.svg,
|
|
1690
|
+
onClick: S,
|
|
1691
|
+
onKeyDown: b,
|
|
1692
|
+
tabIndex: d
|
|
1686
1693
|
}
|
|
1687
1694
|
) });
|
|
1688
1695
|
}
|
|
@@ -1704,32 +1711,32 @@ const Ss = (r) => {
|
|
|
1704
1711
|
inputRef: m,
|
|
1705
1712
|
onKeyDown: g,
|
|
1706
1713
|
inputType: x = "text",
|
|
1707
|
-
ariaLabel:
|
|
1714
|
+
ariaLabel: w = "input field",
|
|
1708
1715
|
label: E,
|
|
1709
1716
|
helperText: O = !1,
|
|
1710
|
-
error:
|
|
1717
|
+
error: S,
|
|
1711
1718
|
appearance: b = "base",
|
|
1712
|
-
fullWidth:
|
|
1719
|
+
fullWidth: L = !1,
|
|
1713
1720
|
_dataComponent: C = "textfield",
|
|
1714
1721
|
width: Y
|
|
1715
1722
|
}) => {
|
|
1716
|
-
const j = bt(), P = `${j}-helper`, D =
|
|
1723
|
+
const j = bt(), P = `${j}-helper`, D = S ? "danger" : c, k = S || c == "danger" ? "error" : o, U = O || !!S, H = (J) => {
|
|
1717
1724
|
s == null || s(J.target.value);
|
|
1718
|
-
},
|
|
1719
|
-
wrapper: `smp-textfield-wrapper ${
|
|
1725
|
+
}, z = {
|
|
1726
|
+
wrapper: `smp-textfield-wrapper ${L ? "smp-textfield-fullWidth" : ""}`,
|
|
1720
1727
|
container: `smp-textfield ${r ? "smp-textfield-disabled" : ""} ${a ? "smp-textfield-placeholder" : ""} ${f ? `smp-textfield-${f}` : ""} ${D ? `smp-textfield-${D}` : ""} ${b ? `smp-textfield-${b}` : ""} ${i ? "" : "smp-textfield-readOnly"}`,
|
|
1721
1728
|
input: "smp-textfield-input "
|
|
1722
1729
|
};
|
|
1723
|
-
u && (u != "notSelectable" || i) && (
|
|
1724
|
-
const
|
|
1725
|
-
return /* @__PURE__ */ v.jsxs("div", { className:
|
|
1730
|
+
u && (u != "notSelectable" || i) && (z.container += `smp-textfield-variant-${u}`);
|
|
1731
|
+
const K = Y ? { "--smp-textField-width-base": Y } : void 0;
|
|
1732
|
+
return /* @__PURE__ */ v.jsxs("div", { className: z.wrapper, "data-component": C, children: [
|
|
1726
1733
|
E && /* @__PURE__ */ v.jsx($e, { label: E, disabled: r, htmlFor: j }),
|
|
1727
1734
|
/* @__PURE__ */ v.jsxs(
|
|
1728
1735
|
"div",
|
|
1729
1736
|
{
|
|
1730
|
-
className:
|
|
1737
|
+
className: z.container,
|
|
1731
1738
|
ref: p,
|
|
1732
|
-
style:
|
|
1739
|
+
style: K,
|
|
1733
1740
|
children: [
|
|
1734
1741
|
t && /* @__PURE__ */ v.jsx(ue, { icon: t, disabled: r }),
|
|
1735
1742
|
/* @__PURE__ */ v.jsx(
|
|
@@ -1741,24 +1748,25 @@ const Ss = (r) => {
|
|
|
1741
1748
|
placeholder: a,
|
|
1742
1749
|
onChange: H,
|
|
1743
1750
|
onBlur: n,
|
|
1744
|
-
className:
|
|
1751
|
+
className: z.input,
|
|
1745
1752
|
disabled: r,
|
|
1746
1753
|
readOnly: !i,
|
|
1747
1754
|
onKeyDown: g,
|
|
1748
|
-
"aria-label":
|
|
1755
|
+
"aria-label": w,
|
|
1749
1756
|
ref: m,
|
|
1750
1757
|
"aria-describedby": U ? P : void 0
|
|
1751
1758
|
}
|
|
1752
1759
|
),
|
|
1753
|
-
|
|
1760
|
+
k && /* @__PURE__ */ v.jsx(
|
|
1754
1761
|
ue,
|
|
1755
1762
|
{
|
|
1756
|
-
icon:
|
|
1763
|
+
icon: k,
|
|
1757
1764
|
disabled: r,
|
|
1758
1765
|
state: D,
|
|
1759
1766
|
onClick: d,
|
|
1760
1767
|
rotated: l,
|
|
1761
|
-
isInteractable: i
|
|
1768
|
+
isInteractable: i,
|
|
1769
|
+
tabIndex: 0
|
|
1762
1770
|
}
|
|
1763
1771
|
)
|
|
1764
1772
|
]
|
|
@@ -1767,7 +1775,7 @@ const Ss = (r) => {
|
|
|
1767
1775
|
U && /* @__PURE__ */ v.jsx(
|
|
1768
1776
|
mr,
|
|
1769
1777
|
{
|
|
1770
|
-
helperText:
|
|
1778
|
+
helperText: S,
|
|
1771
1779
|
disabled: r,
|
|
1772
1780
|
state: D,
|
|
1773
1781
|
id: P
|
|
@@ -1796,8 +1804,8 @@ function xr({
|
|
|
1796
1804
|
a(m);
|
|
1797
1805
|
}, []), d = (p) => {
|
|
1798
1806
|
if (!i.current) return;
|
|
1799
|
-
const m = p * e, g = m + e, x = i.current,
|
|
1800
|
-
m <
|
|
1807
|
+
const m = p * e, g = m + e, x = i.current, w = x.scrollTop, E = w + t;
|
|
1808
|
+
m < w ? x.scrollTop = m : g > E && (x.scrollTop = g - t);
|
|
1801
1809
|
};
|
|
1802
1810
|
return {
|
|
1803
1811
|
virtualItems: u,
|
|
@@ -1847,9 +1855,9 @@ const un = 10, Sr = ({
|
|
|
1847
1855
|
a !== null ? a : -1
|
|
1848
1856
|
), g = s !== void 0 ? s : e.length > un, x = u ? e.filter(
|
|
1849
1857
|
(D) => D.label.toLowerCase().includes(u.toLowerCase())
|
|
1850
|
-
) : e,
|
|
1858
|
+
) : e, w = (D) => {
|
|
1851
1859
|
l(D);
|
|
1852
|
-
}, { virtualItems: E, containerProps: O, innerProps:
|
|
1860
|
+
}, { virtualItems: E, containerProps: O, innerProps: S, scrollToIndex: b } = xr({
|
|
1853
1861
|
items: x,
|
|
1854
1862
|
itemHeight: d,
|
|
1855
1863
|
containerHeight: 200,
|
|
@@ -1860,17 +1868,17 @@ const un = 10, Sr = ({
|
|
|
1860
1868
|
}, [a]), oe(() => {
|
|
1861
1869
|
p >= 0 && p < x.length && b(p);
|
|
1862
1870
|
}, [p, x]);
|
|
1863
|
-
const
|
|
1871
|
+
const L = (D) => {
|
|
1864
1872
|
if (D.key === "ArrowDown" || D.key === "ArrowUp") {
|
|
1865
1873
|
D.preventDefault();
|
|
1866
|
-
let
|
|
1867
|
-
D.key === "ArrowDown" ?
|
|
1874
|
+
let k = p;
|
|
1875
|
+
D.key === "ArrowDown" ? k = p < x.length - 1 ? p + 1 : 0 : D.key === "ArrowUp" && (k = p > 0 ? p - 1 : x.length - 1), m(k);
|
|
1868
1876
|
} else D.key === "Enter" ? p >= 0 && p < x.length && (f == null || f(x[p])) : D.key === "Escape" && (D.preventDefault(), D.stopPropagation());
|
|
1869
1877
|
c && c(D);
|
|
1870
1878
|
}, C = (D) => {
|
|
1871
|
-
|
|
1879
|
+
L(D);
|
|
1872
1880
|
}, Y = (D) => {
|
|
1873
|
-
|
|
1881
|
+
L(D);
|
|
1874
1882
|
}, j = {
|
|
1875
1883
|
wrapper: "smp-list",
|
|
1876
1884
|
container: "smp-list-container",
|
|
@@ -1893,7 +1901,7 @@ const un = 10, Sr = ({
|
|
|
1893
1901
|
{
|
|
1894
1902
|
bindValue: u,
|
|
1895
1903
|
placeholder: "Search...",
|
|
1896
|
-
onChange:
|
|
1904
|
+
onChange: w,
|
|
1897
1905
|
onKeyDown: C
|
|
1898
1906
|
}
|
|
1899
1907
|
),
|
|
@@ -1907,7 +1915,7 @@ const un = 10, Sr = ({
|
|
|
1907
1915
|
"aria-label": "List",
|
|
1908
1916
|
onKeyDown: Y,
|
|
1909
1917
|
"aria-activedescendant": p >= 0 && p < x.length ? (P = x[p]) == null ? void 0 : P.id : void 0,
|
|
1910
|
-
children: /* @__PURE__ */ v.jsx("div", { ...
|
|
1918
|
+
children: /* @__PURE__ */ v.jsx("div", { ...S, className: j.virtualScroll, children: E.map(({ item: D, index: k, offsetTop: U }) => {
|
|
1911
1919
|
const H = i.includes(D.id);
|
|
1912
1920
|
return (
|
|
1913
1921
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
@@ -1916,9 +1924,9 @@ const un = 10, Sr = ({
|
|
|
1916
1924
|
{
|
|
1917
1925
|
role: "option",
|
|
1918
1926
|
id: D.id,
|
|
1919
|
-
"aria-selected": p ===
|
|
1927
|
+
"aria-selected": p === k ? "true" : "false",
|
|
1920
1928
|
tabIndex: -1,
|
|
1921
|
-
className: `${j.listItem} ${p ===
|
|
1929
|
+
className: `${j.listItem} ${p === k ? "selected-item" : ""}`,
|
|
1922
1930
|
"aria-label": D.id + "-" + D.label,
|
|
1923
1931
|
style: {
|
|
1924
1932
|
height: `${d}px`,
|
|
@@ -1927,7 +1935,7 @@ const un = 10, Sr = ({
|
|
|
1927
1935
|
transform: `translateY(${U}px)`
|
|
1928
1936
|
},
|
|
1929
1937
|
onClick: () => {
|
|
1930
|
-
f == null || f(D), m(
|
|
1938
|
+
f == null || f(D), m(k);
|
|
1931
1939
|
},
|
|
1932
1940
|
children: [
|
|
1933
1941
|
Xe(D.id, D.label, t),
|
|
@@ -1984,30 +1992,30 @@ const un = 10, Sr = ({
|
|
|
1984
1992
|
_multiActiveIndex: d,
|
|
1985
1993
|
...p
|
|
1986
1994
|
}) => {
|
|
1987
|
-
const [m, g] = Z(r), [x,
|
|
1995
|
+
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({
|
|
1988
1996
|
position: "bottom",
|
|
1989
1997
|
enabled: E
|
|
1990
1998
|
});
|
|
1991
1999
|
Je(D, () => O(!1));
|
|
1992
2000
|
const U = fn(400), H = (W) => {
|
|
1993
2001
|
W.length >= a ? f && l && U(async () => {
|
|
1994
|
-
const
|
|
1995
|
-
b(
|
|
1996
|
-
}) : O(!1), g(W),
|
|
1997
|
-
}, K = (W) => {
|
|
1998
|
-
c ? (g(""), S("")) : (g(W.id), S(W.label)), u == null || u(W.id, W.label);
|
|
1999
|
-
const L = w.findIndex((h) => h.id === W.id);
|
|
2000
|
-
C(L), j([W.id]), O(!1);
|
|
2002
|
+
const _ = await l(f, W);
|
|
2003
|
+
b(_), C(_.length > 0 ? 0 : -1), O(!0);
|
|
2004
|
+
}) : O(!1), g(W), w(e), c || u == null || u(W, e);
|
|
2001
2005
|
}, z = (W) => {
|
|
2006
|
+
c ? (g(""), w("")) : (g(W.id), w(W.label)), u == null || u(W.id, W.label);
|
|
2007
|
+
const _ = S.findIndex((h) => h.id === W.id);
|
|
2008
|
+
C(_), j([W.id]), O(!1);
|
|
2009
|
+
}, K = (W) => {
|
|
2002
2010
|
W.key === "Escape" && (O(!1), C(-1));
|
|
2003
2011
|
}, J = (W) => {
|
|
2004
2012
|
if ((W.key === "ArrowDown" || W.key === "ArrowUp") && (W.preventDefault(), E)) {
|
|
2005
|
-
const
|
|
2006
|
-
C(
|
|
2013
|
+
const _ = W.key === "ArrowDown" ? (L + 1) % S.length : (L - 1 + S.length) % S.length;
|
|
2014
|
+
C(_);
|
|
2007
2015
|
}
|
|
2008
2016
|
switch (W.key) {
|
|
2009
2017
|
case "Enter":
|
|
2010
|
-
|
|
2018
|
+
L >= 0 && L < S.length ? z(S[L]) : c && (u == null || u(m, ""), O(!1), g(""), w(""));
|
|
2011
2019
|
break;
|
|
2012
2020
|
case "Escape":
|
|
2013
2021
|
O(!1), C(-1);
|
|
@@ -2034,19 +2042,19 @@ const un = 10, Sr = ({
|
|
|
2034
2042
|
E && /* @__PURE__ */ v.jsx(
|
|
2035
2043
|
Sr,
|
|
2036
2044
|
{
|
|
2037
|
-
options:
|
|
2045
|
+
options: S,
|
|
2038
2046
|
displayMode: s,
|
|
2039
|
-
onClick:
|
|
2047
|
+
onClick: z,
|
|
2040
2048
|
ref: D,
|
|
2041
|
-
selectedIndex:
|
|
2049
|
+
selectedIndex: L,
|
|
2042
2050
|
activeIndex: d || Y,
|
|
2043
|
-
width:
|
|
2051
|
+
width: k,
|
|
2044
2052
|
showFilter: !1,
|
|
2045
|
-
onKeyDown:
|
|
2053
|
+
onKeyDown: K
|
|
2046
2054
|
}
|
|
2047
2055
|
)
|
|
2048
2056
|
] });
|
|
2049
|
-
},
|
|
2057
|
+
}, zt = (r) => ({
|
|
2050
2058
|
extraSmall: 12,
|
|
2051
2059
|
small: 14,
|
|
2052
2060
|
base: 18,
|
|
@@ -2093,8 +2101,8 @@ const un = 10, Sr = ({
|
|
|
2093
2101
|
icon: n,
|
|
2094
2102
|
disabled: s,
|
|
2095
2103
|
state: qt(i),
|
|
2096
|
-
width:
|
|
2097
|
-
height:
|
|
2104
|
+
width: zt(a),
|
|
2105
|
+
height: zt(a)
|
|
2098
2106
|
}
|
|
2099
2107
|
),
|
|
2100
2108
|
c && m && /* @__PURE__ */ v.jsx("span", { children: m })
|
|
@@ -2128,8 +2136,8 @@ const un = 10, Sr = ({
|
|
|
2128
2136
|
}, [m, e, p]);
|
|
2129
2137
|
const x = {
|
|
2130
2138
|
container: `smp-button-list smp-button-list-${t} smp-justifyContent-${n}`
|
|
2131
|
-
},
|
|
2132
|
-
const
|
|
2139
|
+
}, w = m == null ? void 0 : m.map((E, O) => {
|
|
2140
|
+
const S = {
|
|
2133
2141
|
bindValue: E.id,
|
|
2134
2142
|
optionalDisplayValue: E.label,
|
|
2135
2143
|
fun: E.fun,
|
|
@@ -2146,9 +2154,9 @@ const un = 10, Sr = ({
|
|
|
2146
2154
|
d == null || d(E.id, E.fun);
|
|
2147
2155
|
}
|
|
2148
2156
|
};
|
|
2149
|
-
return /* @__PURE__ */ v.jsx(De, { ...
|
|
2157
|
+
return /* @__PURE__ */ v.jsx(De, { ...S }, `button-${O}`);
|
|
2150
2158
|
});
|
|
2151
|
-
return /* @__PURE__ */ v.jsx("div", { role: "list", "data-component": "button-list", className: x.container, children:
|
|
2159
|
+
return /* @__PURE__ */ v.jsx("div", { role: "list", "data-component": "button-list", className: x.container, children: w });
|
|
2152
2160
|
}, pn = ({
|
|
2153
2161
|
bindValue: r,
|
|
2154
2162
|
_dataComponent: e = "checkbox",
|
|
@@ -2181,7 +2189,7 @@ const un = 10, Sr = ({
|
|
|
2181
2189
|
title: "h3",
|
|
2182
2190
|
body: "h6",
|
|
2183
2191
|
label: "label"
|
|
2184
|
-
},
|
|
2192
|
+
}, ke = ({
|
|
2185
2193
|
variant: r = "body",
|
|
2186
2194
|
bindValue: e,
|
|
2187
2195
|
color: t,
|
|
@@ -2241,7 +2249,7 @@ const un = 10, Sr = ({
|
|
|
2241
2249
|
},
|
|
2242
2250
|
children: [
|
|
2243
2251
|
i && /* @__PURE__ */ v.jsx(ue, { icon: "drag_indicator_horizontal", isInteractable: !0 }),
|
|
2244
|
-
/* @__PURE__ */ v.jsx(
|
|
2252
|
+
/* @__PURE__ */ v.jsx(ke, { variant: "label", bindValue: g, color: s }),
|
|
2245
2253
|
e && /* @__PURE__ */ v.jsx(
|
|
2246
2254
|
ue,
|
|
2247
2255
|
{
|
|
@@ -2254,7 +2262,7 @@ const un = 10, Sr = ({
|
|
|
2254
2262
|
]
|
|
2255
2263
|
},
|
|
2256
2264
|
`chip-${m}`
|
|
2257
|
-
),
|
|
2265
|
+
), w = i && m < r.length - 1 ? /* @__PURE__ */ v.jsx(
|
|
2258
2266
|
ue,
|
|
2259
2267
|
{
|
|
2260
2268
|
icon: "chevron-right",
|
|
@@ -2262,7 +2270,7 @@ const un = 10, Sr = ({
|
|
|
2262
2270
|
},
|
|
2263
2271
|
`separator-${m}`
|
|
2264
2272
|
) : null;
|
|
2265
|
-
return [x,
|
|
2273
|
+
return [x, w].filter(Boolean);
|
|
2266
2274
|
}) });
|
|
2267
2275
|
};
|
|
2268
2276
|
function Tr(r, e) {
|
|
@@ -2317,15 +2325,15 @@ const mn = ({
|
|
|
2317
2325
|
multiActiveIndex: c,
|
|
2318
2326
|
...u
|
|
2319
2327
|
}) => {
|
|
2320
|
-
const [l, d] = Z(!1), [p, m] = Z(t), [g, x] = Z(-1), [
|
|
2328
|
+
const [l, d] = Z(!1), [p, m] = Z(t), [g, x] = Z(-1), [w, E] = Z([r]), O = bt(), { anchorRef: S, targetRef: b, anchorWidth: L } = St({
|
|
2321
2329
|
position: "bottom",
|
|
2322
2330
|
enabled: l
|
|
2323
2331
|
});
|
|
2324
2332
|
Je(b, () => d(!1)), Tr(l, b);
|
|
2325
2333
|
const C = (D) => {
|
|
2326
2334
|
e == null || e(D.id, D.label);
|
|
2327
|
-
const
|
|
2328
|
-
x(
|
|
2335
|
+
const k = p.findIndex((U) => U.id === D.id);
|
|
2336
|
+
x(k), E([D.id]), d(!1);
|
|
2329
2337
|
}, Y = (D) => {
|
|
2330
2338
|
D.key === "Escape" && (d(!1), x(-1));
|
|
2331
2339
|
}, j = (D) => {
|
|
@@ -2356,7 +2364,7 @@ const mn = ({
|
|
|
2356
2364
|
shapeIcon: "arrow_drop_down",
|
|
2357
2365
|
rotatedShapeIcon: l,
|
|
2358
2366
|
isEditable: s,
|
|
2359
|
-
ref:
|
|
2367
|
+
ref: S,
|
|
2360
2368
|
"aria-autocomplete": "list",
|
|
2361
2369
|
variant: "notSelectable"
|
|
2362
2370
|
}
|
|
@@ -2369,8 +2377,8 @@ const mn = ({
|
|
|
2369
2377
|
displayMode: i,
|
|
2370
2378
|
ref: b,
|
|
2371
2379
|
selectedIndex: g,
|
|
2372
|
-
activeIndex: c ||
|
|
2373
|
-
width:
|
|
2380
|
+
activeIndex: c || w,
|
|
2381
|
+
width: L,
|
|
2374
2382
|
onClick: C,
|
|
2375
2383
|
onKeyDown: Y
|
|
2376
2384
|
}
|
|
@@ -2486,7 +2494,7 @@ const En = [" ", ",", "?", "!", ";"], Tn = new wn(20), On = (r, e, t) => {
|
|
|
2486
2494
|
s = i;
|
|
2487
2495
|
}
|
|
2488
2496
|
return s;
|
|
2489
|
-
},
|
|
2497
|
+
}, Ie = (r) => r == null ? void 0 : r.replace("_", "-"), Rn = {
|
|
2490
2498
|
type: "logger",
|
|
2491
2499
|
log(r) {
|
|
2492
2500
|
this.output("log", r);
|
|
@@ -2719,13 +2727,13 @@ class tt extends rt {
|
|
|
2719
2727
|
} : o;
|
|
2720
2728
|
const p = this.resolve(e, s);
|
|
2721
2729
|
let m = p == null ? void 0 : p.res;
|
|
2722
|
-
const g = (p == null ? void 0 : p.usedKey) || o, x = (p == null ? void 0 : p.exactUsedKey) || o,
|
|
2730
|
+
const g = (p == null ? void 0 : p.usedKey) || o, x = (p == null ? void 0 : p.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, {
|
|
2723
2731
|
ordinal: !1
|
|
2724
|
-
}) : "", Y =
|
|
2732
|
+
}) : "", Y = S && !s.ordinal && s.count === 0, j = Y && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${L}`] || s[`defaultValue${C}`] || s.defaultValue;
|
|
2725
2733
|
let P = m;
|
|
2726
2734
|
O && !m && b && (P = j);
|
|
2727
|
-
const D = rr(P),
|
|
2728
|
-
if (O && P && D &&
|
|
2735
|
+
const D = rr(P), k = Object.prototype.toString.apply(P);
|
|
2736
|
+
if (O && P && D && w.indexOf(k) < 0 && !(G(E) && Array.isArray(P))) {
|
|
2729
2737
|
if (!s.returnObjects && !this.options.returnObjects) {
|
|
2730
2738
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
2731
2739
|
const U = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(g, P, {
|
|
@@ -2735,20 +2743,20 @@ class tt extends rt {
|
|
|
2735
2743
|
return a ? (p.res = U, p.usedParams = this.getUsedParamsDetails(s), p) : U;
|
|
2736
2744
|
}
|
|
2737
2745
|
if (i) {
|
|
2738
|
-
const U = Array.isArray(P), H = U ? [] : {},
|
|
2739
|
-
for (const
|
|
2740
|
-
if (Object.prototype.hasOwnProperty.call(P,
|
|
2741
|
-
const J = `${
|
|
2742
|
-
b && !m ? H[
|
|
2746
|
+
const U = Array.isArray(P), H = U ? [] : {}, z = U ? x : g;
|
|
2747
|
+
for (const K in P)
|
|
2748
|
+
if (Object.prototype.hasOwnProperty.call(P, K)) {
|
|
2749
|
+
const J = `${z}${i}${K}`;
|
|
2750
|
+
b && !m ? H[K] = this.translate(J, {
|
|
2743
2751
|
...s,
|
|
2744
|
-
defaultValue: rr(j) ? j[
|
|
2752
|
+
defaultValue: rr(j) ? j[K] : void 0,
|
|
2745
2753
|
joinArrays: !1,
|
|
2746
2754
|
ns: f
|
|
2747
|
-
}) : H[
|
|
2755
|
+
}) : H[K] = this.translate(J, {
|
|
2748
2756
|
...s,
|
|
2749
2757
|
joinArrays: !1,
|
|
2750
2758
|
ns: f
|
|
2751
|
-
}), H[
|
|
2759
|
+
}), H[K] === J && (H[K] = P[K]);
|
|
2752
2760
|
}
|
|
2753
2761
|
m = H;
|
|
2754
2762
|
}
|
|
@@ -2757,7 +2765,7 @@ class tt extends rt {
|
|
|
2757
2765
|
else {
|
|
2758
2766
|
let U = !1, H = !1;
|
|
2759
2767
|
!this.isValidLookup(m) && b && (U = !0, m = j), this.isValidLookup(m) || (H = !0, m = o);
|
|
2760
|
-
const
|
|
2768
|
+
const K = (s.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && H ? void 0 : m, J = b && j !== m && this.options.updateMissing;
|
|
2761
2769
|
if (H || U || J) {
|
|
2762
2770
|
if (this.logger.log(J ? "updateKey" : "missingKey", l, c, o, J ? j : m), i) {
|
|
2763
2771
|
const y = this.resolve(o, {
|
|
@@ -2767,17 +2775,17 @@ class tt extends rt {
|
|
|
2767
2775
|
y && y.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
|
|
2768
2776
|
}
|
|
2769
2777
|
let W = [];
|
|
2770
|
-
const
|
|
2771
|
-
if (this.options.saveMissingTo === "fallback" &&
|
|
2772
|
-
for (let y = 0; y <
|
|
2773
|
-
W.push(
|
|
2778
|
+
const _ = this.languageUtils.getFallbackCodes(this.options.fallbackLng, s.lng || this.language);
|
|
2779
|
+
if (this.options.saveMissingTo === "fallback" && _ && _[0])
|
|
2780
|
+
for (let y = 0; y < _.length; y++)
|
|
2781
|
+
W.push(_[y]);
|
|
2774
2782
|
else this.options.saveMissingTo === "all" ? W = this.languageUtils.toResolveHierarchy(s.lng || this.language) : W.push(s.lng || this.language);
|
|
2775
2783
|
const h = (y, T, $) => {
|
|
2776
2784
|
var A;
|
|
2777
|
-
const R = b && $ !== m ? $ :
|
|
2785
|
+
const R = b && $ !== m ? $ : K;
|
|
2778
2786
|
this.options.missingKeyHandler ? this.options.missingKeyHandler(y, c, T, R, J, s) : (A = this.backendConnector) != null && A.saveMissing && this.backendConnector.saveMissing(y, c, T, R, J, s), this.emit("missingKey", y, c, T, m);
|
|
2779
2787
|
};
|
|
2780
|
-
this.options.saveMissing && (this.options.saveMissingPlurals &&
|
|
2788
|
+
this.options.saveMissing && (this.options.saveMissingPlurals && S ? W.forEach((y) => {
|
|
2781
2789
|
const T = this.pluralResolver.getSuffixes(y, s);
|
|
2782
2790
|
Y && s[`defaultValue${this.options.pluralSeparator}zero`] && T.indexOf(`${this.options.pluralSeparator}zero`) < 0 && T.push(`${this.options.pluralSeparator}zero`), T.forEach(($) => {
|
|
2783
2791
|
h([y], o + $, s[`defaultValue${$}`] || j);
|
|
@@ -2840,25 +2848,25 @@ class tt extends rt {
|
|
|
2840
2848
|
this.options.fallbackNS && (l = l.concat(this.options.fallbackNS));
|
|
2841
2849
|
const d = t.count !== void 0 && !G(t.count), p = d && !t.ordinal && t.count === 0, m = t.context !== void 0 && (G(t.context) || typeof t.context == "number") && t.context !== "", g = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
|
|
2842
2850
|
l.forEach((x) => {
|
|
2843
|
-
var
|
|
2844
|
-
this.isValidLookup(n) || (o = x, !tr[`${g[0]}-${x}`] && ((
|
|
2845
|
-
var
|
|
2851
|
+
var w, E;
|
|
2852
|
+
this.isValidLookup(n) || (o = x, !tr[`${g[0]}-${x}`] && ((w = this.utils) != null && w.hasLoadedNamespace) && !((E = this.utils) != null && E.hasLoadedNamespace(o)) && (tr[`${g[0]}-${x}`] = !0, this.logger.warn(`key "${s}" for languages "${g.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), g.forEach((O) => {
|
|
2853
|
+
var L;
|
|
2846
2854
|
if (this.isValidLookup(n)) return;
|
|
2847
2855
|
i = O;
|
|
2848
|
-
const
|
|
2849
|
-
if ((
|
|
2850
|
-
this.i18nFormat.addLookupKeys(
|
|
2856
|
+
const S = [u];
|
|
2857
|
+
if ((L = this.i18nFormat) != null && L.addLookupKeys)
|
|
2858
|
+
this.i18nFormat.addLookupKeys(S, u, O, x, t);
|
|
2851
2859
|
else {
|
|
2852
2860
|
let C;
|
|
2853
2861
|
d && (C = this.pluralResolver.getSuffix(O, t.count, t));
|
|
2854
2862
|
const Y = `${this.options.pluralSeparator}zero`, j = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
2855
|
-
if (d && (
|
|
2863
|
+
if (d && (S.push(u + C), t.ordinal && C.indexOf(j) === 0 && S.push(u + C.replace(j, this.options.pluralSeparator)), p && S.push(u + Y)), m) {
|
|
2856
2864
|
const P = `${u}${this.options.contextSeparator}${t.context}`;
|
|
2857
|
-
|
|
2865
|
+
S.push(P), d && (S.push(P + C), t.ordinal && C.indexOf(j) === 0 && S.push(P + C.replace(j, this.options.pluralSeparator)), p && S.push(P + Y));
|
|
2858
2866
|
}
|
|
2859
2867
|
}
|
|
2860
2868
|
let b;
|
|
2861
|
-
for (; b =
|
|
2869
|
+
for (; b = S.pop(); )
|
|
2862
2870
|
this.isValidLookup(n) || (a = b, n = this.getResource(O, x, b, t));
|
|
2863
2871
|
}));
|
|
2864
2872
|
});
|
|
@@ -2905,12 +2913,12 @@ class nr {
|
|
|
2905
2913
|
this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = ge.create("languageUtils");
|
|
2906
2914
|
}
|
|
2907
2915
|
getScriptPartFromCode(e) {
|
|
2908
|
-
if (e =
|
|
2916
|
+
if (e = Ie(e), !e || e.indexOf("-") < 0) return null;
|
|
2909
2917
|
const t = e.split("-");
|
|
2910
2918
|
return t.length === 2 || (t.pop(), t[t.length - 1].toLowerCase() === "x") ? null : this.formatLanguageCode(t.join("-"));
|
|
2911
2919
|
}
|
|
2912
2920
|
getLanguagePartFromCode(e) {
|
|
2913
|
-
if (e =
|
|
2921
|
+
if (e = Ie(e), !e || e.indexOf("-") < 0) return e;
|
|
2914
2922
|
const t = e.split("-");
|
|
2915
2923
|
return this.formatLanguageCode(t[0]);
|
|
2916
2924
|
}
|
|
@@ -2988,7 +2996,7 @@ class jn {
|
|
|
2988
2996
|
this.pluralRulesCache = {};
|
|
2989
2997
|
}
|
|
2990
2998
|
getRule(e, t = {}) {
|
|
2991
|
-
const n =
|
|
2999
|
+
const n = Ie(e === "dev" ? "en" : e), s = t.ordinal ? "ordinal" : "cardinal", a = JSON.stringify({
|
|
2992
3000
|
cleanedCode: n,
|
|
2993
3001
|
type: s
|
|
2994
3002
|
});
|
|
@@ -3053,10 +3061,10 @@ class Dn {
|
|
|
3053
3061
|
nestingSuffix: m,
|
|
3054
3062
|
nestingSuffixEscaped: g,
|
|
3055
3063
|
nestingOptionsSeparator: x,
|
|
3056
|
-
maxReplaces:
|
|
3064
|
+
maxReplaces: w,
|
|
3057
3065
|
alwaysFormat: E
|
|
3058
3066
|
} = e.interpolation;
|
|
3059
|
-
this.escape = t !== void 0 ? t : Sn, 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) : f || "}}", this.formatSeparator = c || ",", this.unescapePrefix = u ? "" : l || "-", this.unescapeSuffix = this.unescapePrefix ? "" : u || "", this.nestingPrefix = d ? Oe(d) : p || Oe("$t("), this.nestingSuffix = m ? Oe(m) : g || Oe(")"), this.nestingOptionsSeparator = x || ",", this.maxReplaces =
|
|
3067
|
+
this.escape = t !== void 0 ? t : Sn, 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) : f || "}}", this.formatSeparator = c || ",", this.unescapePrefix = u ? "" : l || "-", this.unescapeSuffix = this.unescapePrefix ? "" : u || "", this.nestingPrefix = d ? Oe(d) : p || 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();
|
|
3060
3068
|
}
|
|
3061
3069
|
reset() {
|
|
3062
3070
|
this.options && this.init(this.options);
|
|
@@ -3077,8 +3085,8 @@ class Dn {
|
|
|
3077
3085
|
interpolationkey: m
|
|
3078
3086
|
}) : E;
|
|
3079
3087
|
}
|
|
3080
|
-
const g = m.split(this.formatSeparator), x = g.shift().trim(),
|
|
3081
|
-
return this.format(ir(t, f, x, this.options.keySeparator, this.options.ignoreJSONStructure),
|
|
3088
|
+
const g = m.split(this.formatSeparator), x = g.shift().trim(), w = g.join(this.formatSeparator).trim();
|
|
3089
|
+
return this.format(ir(t, f, x, this.options.keySeparator, this.options.ignoreJSONStructure), w, n, {
|
|
3082
3090
|
...s,
|
|
3083
3091
|
...t,
|
|
3084
3092
|
interpolationkey: x
|
|
@@ -3097,8 +3105,8 @@ class Dn {
|
|
|
3097
3105
|
const g = a[1].trim();
|
|
3098
3106
|
if (i = c(g), i === void 0)
|
|
3099
3107
|
if (typeof u == "function") {
|
|
3100
|
-
const
|
|
3101
|
-
i = G(
|
|
3108
|
+
const w = u(e, a, s);
|
|
3109
|
+
i = G(w) ? w : "";
|
|
3102
3110
|
} else if (s && Object.prototype.hasOwnProperty.call(s, g))
|
|
3103
3111
|
i = "";
|
|
3104
3112
|
else if (l) {
|
|
@@ -3180,9 +3188,9 @@ const $n = (r) => {
|
|
|
3180
3188
|
});
|
|
3181
3189
|
const i = n + JSON.stringify(a);
|
|
3182
3190
|
let o = e[i];
|
|
3183
|
-
return o || (o = r(
|
|
3191
|
+
return o || (o = r(Ie(n), s), e[i] = o), o(t);
|
|
3184
3192
|
};
|
|
3185
|
-
}, Cn = (r) => (e, t, n) => r(
|
|
3193
|
+
}, Cn = (r) => (e, t, n) => r(Ie(t), n)(e);
|
|
3186
3194
|
class Pn {
|
|
3187
3195
|
constructor(e = {}) {
|
|
3188
3196
|
this.logger = ge.create("formatter"), this.options = e, this.init(e);
|
|
@@ -3704,10 +3712,10 @@ ae.setDefaultNamespace;
|
|
|
3704
3712
|
ae.hasLoadedNamespace;
|
|
3705
3713
|
ae.loadNamespaces;
|
|
3706
3714
|
ae.loadLanguages;
|
|
3707
|
-
const
|
|
3715
|
+
const kn = { 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" }, In = { April: "Aprile", August: "Agosto", December: "Dicembre", February: "Febbraio", January: "Gennaio", June: "Giugno", July: "Luglio", March: "Marzo", May: "Maggio", October: "Ottobre", November: "Novembre", September: "Settembre" }, Nn = { CalendarFor: "Calendario per", Close: "Chiudi", SpotlightDefaultPlaceholder: "Esegui Comando" }, Mn = {
|
|
3708
3716
|
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" },
|
|
3709
|
-
Day:
|
|
3710
|
-
Month:
|
|
3717
|
+
Day: kn,
|
|
3718
|
+
Month: In,
|
|
3711
3719
|
Generic: Nn
|
|
3712
3720
|
}, Fn = { 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" }, Vn = { April: "April", August: "August", December: "December", February: "February", January: "January", July: "July", June: "June", March: "March", May: "May", November: "November", October: "October", September: "September" }, Yn = { CalendarFor: "Calendar for", Close: "Close", SpotlightDefaultPlaceholder: "Execute Command" }, Un = {
|
|
3713
3721
|
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" },
|
|
@@ -3789,13 +3797,13 @@ ae.init({
|
|
|
3789
3797
|
}
|
|
3790
3798
|
}
|
|
3791
3799
|
});
|
|
3792
|
-
const
|
|
3800
|
+
const Kn = (r, e, t, n) => ae.format(r, e, t || ae.language, n), zn = (r, e) => ae.t(r, e);
|
|
3793
3801
|
function nt() {
|
|
3794
3802
|
const r = ye(
|
|
3795
|
-
(n, s, a, i) =>
|
|
3803
|
+
(n, s, a, i) => Kn(n, s, a || void 0, i),
|
|
3796
3804
|
[]
|
|
3797
3805
|
), e = ye(() => ae.languages[0], []), t = ye(
|
|
3798
|
-
(n, s) =>
|
|
3806
|
+
(n, s) => zn(n, s),
|
|
3799
3807
|
[]
|
|
3800
3808
|
);
|
|
3801
3809
|
return { format: r, getCurrentLanguage: e, translate: t };
|
|
@@ -3810,8 +3818,8 @@ function qn({
|
|
|
3810
3818
|
}) {
|
|
3811
3819
|
const { translate: a } = nt(), i = () => {
|
|
3812
3820
|
if (!n) return;
|
|
3813
|
-
const
|
|
3814
|
-
return isNaN(
|
|
3821
|
+
const _ = new Date(n);
|
|
3822
|
+
return isNaN(_.getTime()) ? void 0 : _;
|
|
3815
3823
|
}, [o] = Z(/* @__PURE__ */ new Date()), [f, c] = Z(
|
|
3816
3824
|
r || i() || /* @__PURE__ */ new Date()
|
|
3817
3825
|
), [u, l] = Z(
|
|
@@ -3820,7 +3828,7 @@ function qn({
|
|
|
3820
3828
|
f ? f.getFullYear() : (/* @__PURE__ */ new Date()).getFullYear()
|
|
3821
3829
|
), [m, g] = Z(
|
|
3822
3830
|
f ? f.getDate() : null
|
|
3823
|
-
), x = ve(null),
|
|
3831
|
+
), x = ve(null), w = ve([]), E = [
|
|
3824
3832
|
a(fe.JANUARY),
|
|
3825
3833
|
a(fe.FEBRUARY),
|
|
3826
3834
|
a(fe.MARCH),
|
|
@@ -3862,167 +3870,167 @@ function qn({
|
|
|
3862
3870
|
value: a(le.SATURDAY_SHORT),
|
|
3863
3871
|
full: a(le.SATURDAY)
|
|
3864
3872
|
}
|
|
3865
|
-
],
|
|
3866
|
-
const y = h.start.getTime(), T = h.end.getTime(), $ =
|
|
3873
|
+
], S = (_) => t.some((h) => {
|
|
3874
|
+
const y = h.start.getTime(), T = h.end.getTime(), $ = _.getTime();
|
|
3867
3875
|
return $ >= y && $ <= T;
|
|
3868
|
-
}), b = (
|
|
3869
|
-
|
|
3870
|
-
},
|
|
3876
|
+
}), b = (_) => {
|
|
3877
|
+
S(_) || (c(_), g(_.getDate()), e && e(Yr(_)));
|
|
3878
|
+
}, L = () => {
|
|
3871
3879
|
u === 0 ? (l(11), p(d - 1)) : l(u - 1), g(1);
|
|
3872
3880
|
}, C = () => {
|
|
3873
3881
|
u === 11 ? (l(0), p(d + 1)) : l(u + 1), g(1);
|
|
3874
|
-
}, Y = (
|
|
3882
|
+
}, Y = (_, h) => new Date(_, h + 1, 0).getDate(), j = (_, h) => new Date(_, h, 1).getDay(), P = (_) => {
|
|
3875
3883
|
var y;
|
|
3876
3884
|
const h = H.findIndex(
|
|
3877
|
-
(T) => T !== null && T.getDate() ===
|
|
3885
|
+
(T) => T !== null && T.getDate() === _
|
|
3878
3886
|
);
|
|
3879
|
-
h !== -1 &&
|
|
3880
|
-
}, D = (
|
|
3887
|
+
h !== -1 && w.current[h] && ((y = w.current[h]) == null || y.focus(), g(_));
|
|
3888
|
+
}, D = (_, h) => {
|
|
3881
3889
|
const y = H[h];
|
|
3882
3890
|
if (!y) return;
|
|
3883
3891
|
const T = Y(d, u), $ = y.getDate();
|
|
3884
|
-
switch (
|
|
3892
|
+
switch (_.key) {
|
|
3885
3893
|
case "ArrowRight":
|
|
3886
|
-
|
|
3894
|
+
_.preventDefault();
|
|
3887
3895
|
{
|
|
3888
3896
|
let R = $ + 1, A = new Date(d, u, R);
|
|
3889
3897
|
if (R > T) {
|
|
3890
3898
|
const M = u === 11 ? d + 1 : d, F = u === 11 ? 0 : u + 1;
|
|
3891
3899
|
R = 1, A = new Date(M, F, R), C(), setTimeout(() => {
|
|
3892
|
-
|
|
3900
|
+
k(1, "forward");
|
|
3893
3901
|
}, 0);
|
|
3894
3902
|
return;
|
|
3895
3903
|
}
|
|
3896
|
-
|
|
3904
|
+
S(A) ? k(R, "forward") : P(R);
|
|
3897
3905
|
}
|
|
3898
3906
|
break;
|
|
3899
3907
|
case "Tab":
|
|
3900
3908
|
break;
|
|
3901
3909
|
case "ArrowLeft":
|
|
3902
|
-
|
|
3910
|
+
_.preventDefault();
|
|
3903
3911
|
{
|
|
3904
3912
|
let R = $ - 1, A = new Date(d, u, R);
|
|
3905
3913
|
if (R < 1) {
|
|
3906
3914
|
const M = u === 0 ? d - 1 : d, F = u === 0 ? 11 : u - 1, N = Y(M, F);
|
|
3907
|
-
R = N, A = new Date(M, F, R),
|
|
3908
|
-
|
|
3915
|
+
R = N, A = new Date(M, F, R), L(), setTimeout(() => {
|
|
3916
|
+
k(N, "backward");
|
|
3909
3917
|
}, 0);
|
|
3910
3918
|
return;
|
|
3911
3919
|
}
|
|
3912
|
-
|
|
3920
|
+
S(A) ? k(R, "backward") : P(R);
|
|
3913
3921
|
}
|
|
3914
3922
|
break;
|
|
3915
3923
|
case "ArrowUp":
|
|
3916
|
-
|
|
3924
|
+
_.preventDefault();
|
|
3917
3925
|
{
|
|
3918
3926
|
let R = $ - 7, A = new Date(d, u, R);
|
|
3919
3927
|
if (R < 1) {
|
|
3920
3928
|
const M = u === 0 ? d - 1 : d, F = u === 0 ? 11 : u - 1;
|
|
3921
|
-
R = Y(M, F) + R, A = new Date(M, F, R),
|
|
3922
|
-
|
|
3929
|
+
R = Y(M, F) + R, A = new Date(M, F, R), L(), setTimeout(() => {
|
|
3930
|
+
k(R, "backward");
|
|
3923
3931
|
}, 0);
|
|
3924
3932
|
return;
|
|
3925
3933
|
}
|
|
3926
|
-
|
|
3934
|
+
S(A) ? k(R, "backward") : P(R);
|
|
3927
3935
|
}
|
|
3928
3936
|
break;
|
|
3929
3937
|
case "ArrowDown":
|
|
3930
|
-
|
|
3938
|
+
_.preventDefault();
|
|
3931
3939
|
{
|
|
3932
3940
|
let R = $ + 7, A = new Date(d, u, R);
|
|
3933
3941
|
if (R > T) {
|
|
3934
3942
|
const M = u === 11 ? d + 1 : d, F = u === 11 ? 0 : u + 1;
|
|
3935
3943
|
R = R - T, A = new Date(M, F, R), C(), setTimeout(() => {
|
|
3936
|
-
|
|
3944
|
+
k(R, "forward");
|
|
3937
3945
|
}, 0);
|
|
3938
3946
|
return;
|
|
3939
3947
|
}
|
|
3940
|
-
|
|
3948
|
+
S(A) ? k(R, "forward") : P(R);
|
|
3941
3949
|
}
|
|
3942
3950
|
break;
|
|
3943
3951
|
case "Home":
|
|
3944
|
-
|
|
3952
|
+
_.preventDefault(), k(1, "forward");
|
|
3945
3953
|
break;
|
|
3946
3954
|
case "End":
|
|
3947
|
-
|
|
3955
|
+
_.preventDefault(), k(T, "backward");
|
|
3948
3956
|
break;
|
|
3949
3957
|
case "PageUp":
|
|
3950
|
-
|
|
3958
|
+
_.preventDefault(), L(), setTimeout(() => {
|
|
3951
3959
|
const R = Y(
|
|
3952
3960
|
u === 0 ? d - 1 : d,
|
|
3953
3961
|
u === 0 ? 11 : u - 1
|
|
3954
3962
|
), A = Math.min($, R);
|
|
3955
|
-
|
|
3963
|
+
k(A, "forward");
|
|
3956
3964
|
}, 0);
|
|
3957
3965
|
break;
|
|
3958
3966
|
case "PageDown":
|
|
3959
|
-
|
|
3967
|
+
_.preventDefault(), C(), setTimeout(() => {
|
|
3960
3968
|
const R = Y(
|
|
3961
3969
|
u === 11 ? d + 1 : d,
|
|
3962
3970
|
u === 11 ? 0 : u + 1
|
|
3963
3971
|
), A = Math.min($, R);
|
|
3964
|
-
|
|
3972
|
+
k(A, "forward");
|
|
3965
3973
|
}, 0);
|
|
3966
3974
|
break;
|
|
3967
3975
|
case " ":
|
|
3968
3976
|
case "Space":
|
|
3969
|
-
if (
|
|
3977
|
+
if (S(y)) return;
|
|
3970
3978
|
g(y.getDate()), c(y);
|
|
3971
3979
|
break;
|
|
3972
3980
|
case "Enter":
|
|
3973
|
-
|
|
3981
|
+
_.preventDefault(), b(y);
|
|
3974
3982
|
break;
|
|
3975
3983
|
}
|
|
3976
|
-
},
|
|
3984
|
+
}, k = (_, h) => {
|
|
3977
3985
|
const y = Y(d, u);
|
|
3978
3986
|
if (h === "forward") {
|
|
3979
|
-
for (let T =
|
|
3987
|
+
for (let T = _; T <= y; T++) {
|
|
3980
3988
|
const $ = new Date(d, u, T);
|
|
3981
|
-
if (!
|
|
3989
|
+
if (!S($)) {
|
|
3982
3990
|
P(T);
|
|
3983
3991
|
return;
|
|
3984
3992
|
}
|
|
3985
3993
|
}
|
|
3986
3994
|
C(), setTimeout(() => {
|
|
3987
|
-
|
|
3995
|
+
k(1, "forward");
|
|
3988
3996
|
}, 0);
|
|
3989
3997
|
} else {
|
|
3990
|
-
for (let A =
|
|
3998
|
+
for (let A = _; A >= 1; A--) {
|
|
3991
3999
|
const M = new Date(d, u, A);
|
|
3992
|
-
if (!
|
|
4000
|
+
if (!S(M)) {
|
|
3993
4001
|
P(A);
|
|
3994
4002
|
return;
|
|
3995
4003
|
}
|
|
3996
4004
|
}
|
|
3997
4005
|
const T = u === 0 ? d - 1 : d, $ = u === 0 ? 11 : u - 1, R = Y(T, $);
|
|
3998
|
-
|
|
3999
|
-
|
|
4006
|
+
L(), setTimeout(() => {
|
|
4007
|
+
k(R, "backward");
|
|
4000
4008
|
}, 0);
|
|
4001
4009
|
}
|
|
4002
4010
|
}, H = (() => {
|
|
4003
|
-
const
|
|
4011
|
+
const _ = Y(d, u), h = j(d, u), y = [];
|
|
4004
4012
|
for (let T = 0; T < h; T++)
|
|
4005
4013
|
y.push(null);
|
|
4006
|
-
for (let T = 1; T <=
|
|
4014
|
+
for (let T = 1; T <= _; T++) {
|
|
4007
4015
|
const $ = new Date(d, u, T);
|
|
4008
4016
|
y.push($);
|
|
4009
4017
|
}
|
|
4010
4018
|
return y;
|
|
4011
|
-
})(),
|
|
4012
|
-
let
|
|
4013
|
-
H.forEach((
|
|
4014
|
-
if (
|
|
4015
|
-
for (;
|
|
4016
|
-
|
|
4017
|
-
|
|
4019
|
+
})(), z = [];
|
|
4020
|
+
let K = [];
|
|
4021
|
+
H.forEach((_, h) => {
|
|
4022
|
+
if (K.push(_), K.length === 7 || h === H.length - 1) {
|
|
4023
|
+
for (; K.length < 7; )
|
|
4024
|
+
K.push(null);
|
|
4025
|
+
z.push(K), K = [];
|
|
4018
4026
|
}
|
|
4019
4027
|
}), oe(() => {
|
|
4020
|
-
var
|
|
4028
|
+
var _;
|
|
4021
4029
|
if (m !== null) {
|
|
4022
4030
|
const h = H.findIndex(
|
|
4023
4031
|
(y) => y !== null && y.getDate() === m
|
|
4024
4032
|
);
|
|
4025
|
-
h !== -1 &&
|
|
4033
|
+
h !== -1 && w.current[h] && ((_ = w.current[h]) == null || _.focus());
|
|
4026
4034
|
}
|
|
4027
4035
|
}, [u, d, m, H]);
|
|
4028
4036
|
const J = {
|
|
@@ -4031,8 +4039,8 @@ function qn({
|
|
|
4031
4039
|
calendar: "smp-datepickercalendar",
|
|
4032
4040
|
table: "smp-datepickercalendar-table",
|
|
4033
4041
|
th: "smp-datepickercalendar-th",
|
|
4034
|
-
td: (
|
|
4035
|
-
${
|
|
4042
|
+
td: (_, h, y, T) => `smp-datepickercalendar-td
|
|
4043
|
+
${_ ? "smp-datepickercalendar-td-today" : ""}
|
|
4036
4044
|
${h ? "smp-datepickercalendar-td-selected" : ""}
|
|
4037
4045
|
${y ? "smp-datepickercalendar-td-focused" : ""}
|
|
4038
4046
|
${T ? "smp-datepickercalendar-td-disabled" : ""}`
|
|
@@ -4060,11 +4068,12 @@ function qn({
|
|
|
4060
4068
|
/* @__PURE__ */ v.jsx(
|
|
4061
4069
|
De,
|
|
4062
4070
|
{
|
|
4063
|
-
onClick:
|
|
4071
|
+
onClick: L,
|
|
4064
4072
|
ariaLabel: a(vt.PREVIOUS_MONTH),
|
|
4065
|
-
|
|
4073
|
+
optionalDisplayValue: "<",
|
|
4066
4074
|
appearance: "ghost",
|
|
4067
|
-
variant: "base"
|
|
4075
|
+
variant: "base",
|
|
4076
|
+
bindValue: "<"
|
|
4068
4077
|
}
|
|
4069
4078
|
),
|
|
4070
4079
|
/* @__PURE__ */ v.jsx(
|
|
@@ -4081,6 +4090,7 @@ function qn({
|
|
|
4081
4090
|
onClick: C,
|
|
4082
4091
|
ariaLabel: a(vt.NEXT_MONTH),
|
|
4083
4092
|
bindValue: ">",
|
|
4093
|
+
optionalDisplayValue: ">",
|
|
4084
4094
|
appearance: "ghost",
|
|
4085
4095
|
variant: "base"
|
|
4086
4096
|
}
|
|
@@ -4096,17 +4106,17 @@ function qn({
|
|
|
4096
4106
|
"aria-label": `${a(Tt.CALENDAR_FOR)} ${E[u]} ${d}`,
|
|
4097
4107
|
className: J.table,
|
|
4098
4108
|
children: [
|
|
4099
|
-
/* @__PURE__ */ v.jsx("thead", { children: /* @__PURE__ */ v.jsx("tr", { children: O.map((
|
|
4109
|
+
/* @__PURE__ */ v.jsx("thead", { children: /* @__PURE__ */ v.jsx("tr", { children: O.map((_) => /* @__PURE__ */ v.jsx(
|
|
4100
4110
|
"th",
|
|
4101
4111
|
{
|
|
4102
4112
|
scope: "col",
|
|
4103
|
-
abbr:
|
|
4113
|
+
abbr: _.full,
|
|
4104
4114
|
className: J.th,
|
|
4105
|
-
children:
|
|
4115
|
+
children: _.value
|
|
4106
4116
|
},
|
|
4107
|
-
|
|
4117
|
+
_.value
|
|
4108
4118
|
)) }) }),
|
|
4109
|
-
/* @__PURE__ */ v.jsx("tbody", { children:
|
|
4119
|
+
/* @__PURE__ */ v.jsx("tbody", { children: z.map((_, h) => /* @__PURE__ */ v.jsx("tr", { children: _.map((y, T) => {
|
|
4110
4120
|
const $ = h * 7 + T;
|
|
4111
4121
|
if (y === null)
|
|
4112
4122
|
return /* @__PURE__ */ v.jsx(
|
|
@@ -4121,7 +4131,7 @@ function qn({
|
|
|
4121
4131
|
},
|
|
4122
4132
|
`empty-${T}`
|
|
4123
4133
|
);
|
|
4124
|
-
const R = y.getDate() === o.getDate() && y.getMonth() === o.getMonth() && y.getFullYear() === o.getFullYear(), A = f && y.getDate() === f.getDate() && y.getMonth() === f.getMonth() && y.getFullYear() === f.getFullYear(), M = m === y.getDate(), F =
|
|
4134
|
+
const R = y.getDate() === o.getDate() && y.getMonth() === o.getMonth() && y.getFullYear() === o.getFullYear(), A = f && y.getDate() === f.getDate() && y.getMonth() === f.getMonth() && y.getFullYear() === f.getFullYear(), M = m === y.getDate(), F = S(y);
|
|
4125
4135
|
return /* @__PURE__ */ v.jsx(
|
|
4126
4136
|
"td",
|
|
4127
4137
|
{
|
|
@@ -4134,7 +4144,7 @@ function qn({
|
|
|
4134
4144
|
"data-selected": A,
|
|
4135
4145
|
"aria-disabled": F,
|
|
4136
4146
|
ref: (N) => {
|
|
4137
|
-
|
|
4147
|
+
w.current[$] = N;
|
|
4138
4148
|
},
|
|
4139
4149
|
className: J.td(
|
|
4140
4150
|
R,
|
|
@@ -4195,17 +4205,17 @@ const Jn = ({
|
|
|
4195
4205
|
const { formattedDate: C, isoDate: Y, isValid: j } = x(r);
|
|
4196
4206
|
c(j && Y || r), l(j && C || r);
|
|
4197
4207
|
}, [r, m, x]);
|
|
4198
|
-
const
|
|
4199
|
-
|
|
4208
|
+
const w = () => o((C) => !C), E = () => {
|
|
4209
|
+
S(u);
|
|
4200
4210
|
}, O = (C) => {
|
|
4201
|
-
|
|
4202
|
-
},
|
|
4211
|
+
S(C), o(!1);
|
|
4212
|
+
}, S = (C) => {
|
|
4203
4213
|
const { isoDate: Y, isValid: j } = x(C);
|
|
4204
4214
|
t && t(j && Y || C);
|
|
4205
4215
|
}, b = (C) => {
|
|
4206
4216
|
l(C);
|
|
4207
|
-
},
|
|
4208
|
-
C.key === "Enter" && (C.preventDefault(),
|
|
4217
|
+
}, L = (C) => {
|
|
4218
|
+
C.key === "Enter" && (C.preventDefault(), S(u));
|
|
4209
4219
|
};
|
|
4210
4220
|
return /* @__PURE__ */ v.jsxs("div", { "data-component": "date-picker", children: [
|
|
4211
4221
|
/* @__PURE__ */ v.jsx(
|
|
@@ -4215,9 +4225,9 @@ const Jn = ({
|
|
|
4215
4225
|
placeholder: e,
|
|
4216
4226
|
onBlur: E,
|
|
4217
4227
|
onChange: b,
|
|
4218
|
-
onKeyDown:
|
|
4228
|
+
onKeyDown: L,
|
|
4219
4229
|
shapeIcon: "calendar",
|
|
4220
|
-
onShapeIconClick:
|
|
4230
|
+
onShapeIconClick: w,
|
|
4221
4231
|
ref: d,
|
|
4222
4232
|
isEditable: s,
|
|
4223
4233
|
...a
|
|
@@ -4251,10 +4261,10 @@ const Jn = ({
|
|
|
4251
4261
|
if (m == "")
|
|
4252
4262
|
x.pop();
|
|
4253
4263
|
else {
|
|
4254
|
-
const
|
|
4264
|
+
const w = x.findIndex(
|
|
4255
4265
|
(E) => E.bindValue === m && E.optionalDisplayValue === g
|
|
4256
4266
|
);
|
|
4257
|
-
|
|
4267
|
+
w >= 0 ? x.splice(w, 1) : x.push({
|
|
4258
4268
|
bindValue: m,
|
|
4259
4269
|
optionalDisplayValue: g
|
|
4260
4270
|
});
|
|
@@ -4342,14 +4352,14 @@ const Jn = ({
|
|
|
4342
4352
|
return t ? /* @__PURE__ */ v.jsxs("div", { className: n.wrapper, children: [
|
|
4343
4353
|
/* @__PURE__ */ v.jsx($e, { label: t }),
|
|
4344
4354
|
/* @__PURE__ */ v.jsx(
|
|
4345
|
-
|
|
4355
|
+
ke,
|
|
4346
4356
|
{
|
|
4347
4357
|
variant: "body",
|
|
4348
4358
|
bindValue: e || r
|
|
4349
4359
|
}
|
|
4350
4360
|
)
|
|
4351
4361
|
] }) : /* @__PURE__ */ v.jsx(
|
|
4352
|
-
|
|
4362
|
+
ke,
|
|
4353
4363
|
{
|
|
4354
4364
|
variant: "body",
|
|
4355
4365
|
bindValue: e || r
|
|
@@ -4420,7 +4430,7 @@ const Ge = (r, e, t) => ({
|
|
|
4420
4430
|
onBlur: l,
|
|
4421
4431
|
onKeyDown: d
|
|
4422
4432
|
}) => {
|
|
4423
|
-
const p = bt(), m = `${p}-helper`, g = u ? "danger" : s, x = c || !!u,
|
|
4433
|
+
const p = bt(), m = `${p}-helper`, g = u ? "danger" : s, x = c || !!u, w = (O) => {
|
|
4424
4434
|
t == null || t(O.target.value);
|
|
4425
4435
|
}, E = {
|
|
4426
4436
|
wrapper: "smp-textarea-wrapper",
|
|
@@ -4434,7 +4444,7 @@ const Ge = (r, e, t) => ({
|
|
|
4434
4444
|
id: p,
|
|
4435
4445
|
value: e,
|
|
4436
4446
|
placeholder: n,
|
|
4437
|
-
onChange:
|
|
4447
|
+
onChange: w,
|
|
4438
4448
|
onBlur: l,
|
|
4439
4449
|
className: E.container,
|
|
4440
4450
|
disabled: r,
|
|
@@ -4486,153 +4496,153 @@ const Ge = (r, e, t) => ({
|
|
|
4486
4496
|
label: o,
|
|
4487
4497
|
isEditable: m,
|
|
4488
4498
|
...n
|
|
4489
|
-
},
|
|
4499
|
+
}, 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) => ts(g, S);
|
|
4490
4500
|
switch (e) {
|
|
4491
4501
|
case ne.AUTOCOMPLETE: {
|
|
4492
|
-
const
|
|
4502
|
+
const S = {
|
|
4493
4503
|
...x,
|
|
4494
4504
|
bindValue: t.k,
|
|
4495
4505
|
optionalDisplayValue: r,
|
|
4496
|
-
onChange: (b,
|
|
4497
|
-
c == null || c(
|
|
4506
|
+
onChange: (b, L) => {
|
|
4507
|
+
c == null || c(w(g, b, L));
|
|
4498
4508
|
}
|
|
4499
4509
|
};
|
|
4500
|
-
return /* @__PURE__ */ v.jsx(Er, { ...
|
|
4510
|
+
return /* @__PURE__ */ v.jsx(Er, { ...S });
|
|
4501
4511
|
}
|
|
4502
4512
|
case ne.BUTTON: {
|
|
4503
|
-
const
|
|
4513
|
+
const S = {
|
|
4504
4514
|
...x,
|
|
4505
4515
|
bindValue: t.k,
|
|
4506
4516
|
optionalDisplayValue: r,
|
|
4507
4517
|
onClick: () => {
|
|
4508
|
-
u == null || u(
|
|
4518
|
+
u == null || u(w(g, t.k));
|
|
4509
4519
|
}
|
|
4510
4520
|
};
|
|
4511
|
-
return /* @__PURE__ */ v.jsx(De, { ...
|
|
4521
|
+
return /* @__PURE__ */ v.jsx(De, { ...S });
|
|
4512
4522
|
}
|
|
4513
4523
|
case ne.BUTTON_LIST: {
|
|
4514
|
-
const
|
|
4524
|
+
const S = {
|
|
4515
4525
|
...x,
|
|
4516
4526
|
options: f,
|
|
4517
|
-
onClick: (b,
|
|
4518
|
-
const C = { ...g, fun:
|
|
4519
|
-
u == null || u(
|
|
4527
|
+
onClick: (b, L) => {
|
|
4528
|
+
const C = { ...g, fun: L };
|
|
4529
|
+
u == null || u(w(C, b));
|
|
4520
4530
|
}
|
|
4521
4531
|
};
|
|
4522
|
-
return /* @__PURE__ */ v.jsx(dn, { ...
|
|
4532
|
+
return /* @__PURE__ */ v.jsx(dn, { ...S });
|
|
4523
4533
|
}
|
|
4524
4534
|
case ne.COMBOBOX: {
|
|
4525
|
-
const
|
|
4535
|
+
const S = {
|
|
4526
4536
|
...x,
|
|
4527
4537
|
bindValue: t.k,
|
|
4528
4538
|
optionalDisplayValue: r,
|
|
4529
|
-
onChange: (b,
|
|
4530
|
-
c == null || c(
|
|
4539
|
+
onChange: (b, L) => {
|
|
4540
|
+
c == null || c(w(g, b, L));
|
|
4531
4541
|
}
|
|
4532
4542
|
};
|
|
4533
|
-
return /* @__PURE__ */ v.jsx(mn, { ...
|
|
4543
|
+
return /* @__PURE__ */ v.jsx(mn, { ...S });
|
|
4534
4544
|
}
|
|
4535
4545
|
case ne.SWITCH:
|
|
4536
4546
|
case ne.CHECKBOX: {
|
|
4537
|
-
const
|
|
4547
|
+
const S = {
|
|
4538
4548
|
...x,
|
|
4539
|
-
bindValue:
|
|
4549
|
+
bindValue: ze.fromDataObj(t).getValue(),
|
|
4540
4550
|
optionalDisplayValue: r,
|
|
4541
4551
|
onChange: (b) => {
|
|
4542
4552
|
c == null || c(E(b));
|
|
4543
4553
|
}
|
|
4544
4554
|
};
|
|
4545
|
-
return /* @__PURE__ */ v.jsx(pn, { ...
|
|
4555
|
+
return /* @__PURE__ */ v.jsx(pn, { ...S });
|
|
4546
4556
|
}
|
|
4547
4557
|
case ne.CHIP: {
|
|
4548
|
-
const
|
|
4558
|
+
const S = {
|
|
4549
4559
|
...x,
|
|
4550
4560
|
elements: fr(g)
|
|
4551
4561
|
};
|
|
4552
|
-
return /* @__PURE__ */ v.jsx(Et, { ...
|
|
4562
|
+
return /* @__PURE__ */ v.jsx(Et, { ...S });
|
|
4553
4563
|
}
|
|
4554
4564
|
case ne.DATE: {
|
|
4555
|
-
const
|
|
4565
|
+
const S = {
|
|
4556
4566
|
...x,
|
|
4557
4567
|
bindValue: qe.fromDataObj(t).getValue(),
|
|
4558
4568
|
onChange: (b) => {
|
|
4559
|
-
c == null || c(
|
|
4569
|
+
c == null || c(w(g, b));
|
|
4560
4570
|
}
|
|
4561
4571
|
};
|
|
4562
|
-
return /* @__PURE__ */ v.jsx(Jn, { ...
|
|
4572
|
+
return /* @__PURE__ */ v.jsx(Jn, { ...S });
|
|
4563
4573
|
}
|
|
4564
4574
|
case ne.ICON:
|
|
4565
4575
|
case ne.IMAGE: {
|
|
4566
|
-
const
|
|
4576
|
+
const S = {
|
|
4567
4577
|
...x,
|
|
4568
4578
|
icon: s,
|
|
4569
4579
|
placeholderIcon: i,
|
|
4570
4580
|
isInteractable: !!x.fun,
|
|
4571
4581
|
onClick: () => {
|
|
4572
|
-
u == null || u(
|
|
4582
|
+
u == null || u(w(g, t.k));
|
|
4573
4583
|
}
|
|
4574
4584
|
};
|
|
4575
|
-
return /* @__PURE__ */ v.jsx(ue, { ...
|
|
4585
|
+
return /* @__PURE__ */ v.jsx(ue, { ...S });
|
|
4576
4586
|
}
|
|
4577
4587
|
case ne.MULTI_AUTOCOMPLETE: {
|
|
4578
|
-
const
|
|
4588
|
+
const S = {
|
|
4579
4589
|
...x,
|
|
4580
4590
|
elements: fr(g),
|
|
4581
4591
|
onChange: (b) => {
|
|
4582
4592
|
c == null || c(O(b));
|
|
4583
4593
|
}
|
|
4584
4594
|
};
|
|
4585
|
-
return /* @__PURE__ */ v.jsx(Xn, { ...
|
|
4595
|
+
return /* @__PURE__ */ v.jsx(Xn, { ...S });
|
|
4586
4596
|
}
|
|
4587
4597
|
case ne.MEMO: {
|
|
4588
|
-
const
|
|
4598
|
+
const S = {
|
|
4589
4599
|
...x,
|
|
4590
4600
|
bindValue: t.k,
|
|
4591
4601
|
optionalDisplayValue: r,
|
|
4592
4602
|
onChange: (b) => {
|
|
4593
|
-
c == null || c(
|
|
4603
|
+
c == null || c(w(g, b));
|
|
4594
4604
|
}
|
|
4595
4605
|
};
|
|
4596
|
-
return /* @__PURE__ */ v.jsx(rs, { ...
|
|
4606
|
+
return /* @__PURE__ */ v.jsx(rs, { ...S });
|
|
4597
4607
|
}
|
|
4598
4608
|
case ne.PASSWORD: {
|
|
4599
|
-
const
|
|
4609
|
+
const S = {
|
|
4600
4610
|
...x,
|
|
4601
4611
|
bindValue: t.k,
|
|
4602
4612
|
onChange: (b) => {
|
|
4603
|
-
c == null || c(
|
|
4613
|
+
c == null || c(w(g, b));
|
|
4604
4614
|
}
|
|
4605
4615
|
};
|
|
4606
|
-
return /* @__PURE__ */ v.jsx(Zn, { ...
|
|
4616
|
+
return /* @__PURE__ */ v.jsx(Zn, { ...S });
|
|
4607
4617
|
}
|
|
4608
4618
|
case ne.SPOTLIGHT: {
|
|
4609
|
-
const
|
|
4619
|
+
const S = {
|
|
4610
4620
|
...x,
|
|
4611
4621
|
bindValue: t.k,
|
|
4612
4622
|
onEnter: (b) => {
|
|
4613
|
-
l == null || l(
|
|
4623
|
+
l == null || l(w(g, b));
|
|
4614
4624
|
}
|
|
4615
4625
|
};
|
|
4616
|
-
return /* @__PURE__ */ v.jsx(Qn, { ...
|
|
4626
|
+
return /* @__PURE__ */ v.jsx(Qn, { ...S });
|
|
4617
4627
|
}
|
|
4618
4628
|
case ne.TEXT_FIELD: {
|
|
4619
|
-
const
|
|
4629
|
+
const S = {
|
|
4620
4630
|
...x,
|
|
4621
4631
|
bindValue: t.k,
|
|
4622
4632
|
optionalDisplayValue: r,
|
|
4623
4633
|
onChange: (b) => {
|
|
4624
|
-
c == null || c(
|
|
4634
|
+
c == null || c(w(g, b));
|
|
4625
4635
|
}
|
|
4626
4636
|
};
|
|
4627
|
-
return /* @__PURE__ */ v.jsx(Ce, { ...
|
|
4637
|
+
return /* @__PURE__ */ v.jsx(Ce, { ...S });
|
|
4628
4638
|
}
|
|
4629
4639
|
default: {
|
|
4630
|
-
const
|
|
4640
|
+
const S = {
|
|
4631
4641
|
...x,
|
|
4632
4642
|
bindValue: t.k,
|
|
4633
4643
|
optionalDisplayValue: r
|
|
4634
4644
|
};
|
|
4635
|
-
return /* @__PURE__ */ v.jsx(es, { ...
|
|
4645
|
+
return /* @__PURE__ */ v.jsx(es, { ...S });
|
|
4636
4646
|
}
|
|
4637
4647
|
}
|
|
4638
4648
|
}, ns = (r, e) => {
|
|
@@ -4701,17 +4711,17 @@ const Ge = (r, e, t) => ({
|
|
|
4701
4711
|
}) => {
|
|
4702
4712
|
const t = "--smp-grid-template-cols", n = "--smp-grid-template-rows", s = jr(e.sections || [], r), a = (l) => l == null ? void 0 : l.reduce((d, p) => {
|
|
4703
4713
|
var E, O;
|
|
4704
|
-
let m = "", g = {}, x = {},
|
|
4705
|
-
return (E = p.sections) != null && E.length ? (m = pe["smp-layout-section-grid"], g = a(p.sections), p.gridCols == null && (
|
|
4714
|
+
let m = "", g = {}, x = {}, w = "";
|
|
4715
|
+
return (E = p.sections) != null && E.length ? (m = pe["smp-layout-section-grid"], g = a(p.sections), p.gridCols == null && (w = `${pe[p.horizontal ? "smp-grid-template-cols" : "smp-grid-template-rows"]}`, (p.horizontal || pr(p.sections)) && (x = dr(
|
|
4706
4716
|
p.sections,
|
|
4707
4717
|
p.horizontal ? t : n
|
|
4708
|
-
)))) : (O = p.content) != null && O.length && (p.gridCols !== void 0 && p.gridCols > 0 ? (m = pe["smp-layout-section-grid"],
|
|
4718
|
+
)))) : (O = p.content) != null && O.length && (p.gridCols !== void 0 && p.gridCols > 0 ? (m = pe["smp-layout-section-grid"], w = `${pe["smp-grid-template-cols"]}`, x = {
|
|
4709
4719
|
[t]: `repeat(${p.gridCols}, 1fr)`
|
|
4710
4720
|
}) : m = pe["smp-layout-section-flex"]), {
|
|
4711
4721
|
...d,
|
|
4712
4722
|
...g,
|
|
4713
4723
|
[p.id]: {
|
|
4714
|
-
classes: `${m} ${pe[p.horizontal ? "smp-layout-section-horizontal" : "smp-layout-section-vertical"]} ${
|
|
4724
|
+
classes: `${m} ${pe[p.horizontal ? "smp-layout-section-horizontal" : "smp-layout-section-vertical"]} ${w} ${p.justify ? `smp-justifyContent-${p.justify}` : ""} ${p.align ? `smp-alignItems-${p.align}` : ""}`,
|
|
4715
4725
|
styles: x
|
|
4716
4726
|
}
|
|
4717
4727
|
};
|
|
@@ -4751,9 +4761,9 @@ const Ge = (r, e, t) => ({
|
|
|
4751
4761
|
d
|
|
4752
4762
|
] }) : d;
|
|
4753
4763
|
}, u = (l, d, p, m) => {
|
|
4754
|
-
const g = l.colSpan !== void 0 ? l.colSpan > 0 ? l.colSpan : l.colStart !== void 0 && l.colStart < 1 ? 1 : null : null, x = g !== null ? `span ${g}` : l.colStart,
|
|
4764
|
+
const g = l.colSpan !== void 0 ? l.colSpan > 0 ? l.colSpan : l.colStart !== void 0 && l.colStart < 1 ? 1 : null : null, x = g !== null ? `span ${g}` : l.colStart, w = l.colEnd !== void 0 && l.colEnd > 0 ? l.colEnd : "", E = {
|
|
4755
4765
|
gridColumnStart: x,
|
|
4756
|
-
gridColumnEnd:
|
|
4766
|
+
gridColumnEnd: w
|
|
4757
4767
|
}, O = `${pe["smp-layout-cell-container"]} ${p ? `smp-justifyContent-${p}` : ""} ${m ? `smp-alignItems-${m}` : ""}`;
|
|
4758
4768
|
return d ? /* @__PURE__ */ v.jsx(
|
|
4759
4769
|
"div",
|
|
@@ -4779,12 +4789,12 @@ const Ge = (r, e, t) => ({
|
|
|
4779
4789
|
const m = c.cells[p.name], g = {
|
|
4780
4790
|
...m,
|
|
4781
4791
|
onChange: (x) => {
|
|
4782
|
-
s((
|
|
4783
|
-
...
|
|
4792
|
+
s((w) => w && {
|
|
4793
|
+
...w,
|
|
4784
4794
|
[p.name]: {
|
|
4785
|
-
...
|
|
4795
|
+
...w[p.name],
|
|
4786
4796
|
obj: {
|
|
4787
|
-
...
|
|
4797
|
+
...w[p.name].obj,
|
|
4788
4798
|
k: x.obj.k
|
|
4789
4799
|
}
|
|
4790
4800
|
}
|
|
@@ -4832,23 +4842,23 @@ const Ge = (r, e, t) => ({
|
|
|
4832
4842
|
onClose: o,
|
|
4833
4843
|
loadOptions: f
|
|
4834
4844
|
}) => {
|
|
4835
|
-
var O,
|
|
4845
|
+
var O, S;
|
|
4836
4846
|
const [c, u] = Z(), [l, d] = Z(t ?? !0), p = ve(null), m = s.trim() ? s : "100vh", g = ye(
|
|
4837
4847
|
(b) => {
|
|
4838
4848
|
var C, Y;
|
|
4839
4849
|
if (!((C = b == null ? void 0 : b.rows) != null && C.length) || !((Y = b == null ? void 0 : b.columns) != null && Y.length))
|
|
4840
4850
|
return {};
|
|
4841
|
-
const
|
|
4851
|
+
const L = b.rows[0];
|
|
4842
4852
|
return b.columns.filter((j) => j.visible ?? !0).reduce((j, P) => {
|
|
4843
|
-
const D =
|
|
4853
|
+
const D = L.cells[P.name];
|
|
4844
4854
|
if (!D || !l && ce(n) && D.shape !== ne.BUTTON && D.shape !== ne.BUTTON_LIST)
|
|
4845
4855
|
return j;
|
|
4846
|
-
const
|
|
4856
|
+
const k = {
|
|
4847
4857
|
...D,
|
|
4848
4858
|
onChange: (U) => {
|
|
4849
4859
|
u((H) => {
|
|
4850
|
-
const
|
|
4851
|
-
return
|
|
4860
|
+
const z = { ...H };
|
|
4861
|
+
return z != null && z[P.name] && (z[P.name].obj.k = U.obj.k), z;
|
|
4852
4862
|
});
|
|
4853
4863
|
},
|
|
4854
4864
|
onClick: (U) => {
|
|
@@ -4858,22 +4868,22 @@ const Ge = (r, e, t) => ({
|
|
|
4858
4868
|
i && i(U);
|
|
4859
4869
|
}
|
|
4860
4870
|
};
|
|
4861
|
-
return f && D.shape == ne.BUTTON_LIST && (
|
|
4862
|
-
(
|
|
4863
|
-
)), !l && ce(n) && (
|
|
4864
|
-
...
|
|
4871
|
+
return f && D.shape == ne.BUTTON_LIST && (k.onOptionsRequest = (U, H) => f(U, H).then(
|
|
4872
|
+
(z) => ss(z)
|
|
4873
|
+
)), !l && ce(n) && (k.data = {
|
|
4874
|
+
...k.data,
|
|
4865
4875
|
showText: !1,
|
|
4866
4876
|
justify: "center"
|
|
4867
4877
|
}), {
|
|
4868
4878
|
...j,
|
|
4869
|
-
[P.name]:
|
|
4879
|
+
[P.name]: k
|
|
4870
4880
|
};
|
|
4871
4881
|
}, {});
|
|
4872
4882
|
},
|
|
4873
4883
|
[l, n, a, i, f]
|
|
4874
4884
|
), x = ye(() => {
|
|
4875
4885
|
o == null || o();
|
|
4876
|
-
}, [o]),
|
|
4886
|
+
}, [o]), w = () => {
|
|
4877
4887
|
ce(n) ? d((b) => !b) : (d(!1), o == null || o());
|
|
4878
4888
|
};
|
|
4879
4889
|
if (oe(() => {
|
|
@@ -4888,13 +4898,13 @@ const Ge = (r, e, t) => ({
|
|
|
4888
4898
|
const b = getComputedStyle(p.current).getPropertyValue(
|
|
4889
4899
|
"--smp-drawer-slide-transition"
|
|
4890
4900
|
);
|
|
4891
|
-
let
|
|
4892
|
-
b.endsWith("ms") ?
|
|
4901
|
+
let L = Number(b);
|
|
4902
|
+
b.endsWith("ms") ? L = parseFloat(b) : b.endsWith("s") && (L = parseFloat(b) * 1e3), setTimeout(() => {
|
|
4893
4903
|
u(g(r));
|
|
4894
|
-
},
|
|
4904
|
+
}, L / 2);
|
|
4895
4905
|
}, [l, n]), oe(() => {
|
|
4896
4906
|
t !== void 0 && !ce(n) && d(t);
|
|
4897
|
-
}, [n, t]), !((O = r == null ? void 0 : r.rows) != null && O.length) || !((
|
|
4907
|
+
}, [n, t]), !((O = r == null ? void 0 : r.rows) != null && O.length) || !((S = r.columns) != null && S.length))
|
|
4898
4908
|
return null;
|
|
4899
4909
|
const E = {
|
|
4900
4910
|
drawer: `smp-drawer ${ce(n) ? "smp-drawer-minified" : "smp-drawer-fixed"} ${l ? "smp-drawer-open" : ""} ${!ce(n) && !l ? "smp-drawer-no-border" : ""}`,
|
|
@@ -4941,7 +4951,7 @@ const Ge = (r, e, t) => ({
|
|
|
4941
4951
|
title: "drawer_icon",
|
|
4942
4952
|
rotated: !l,
|
|
4943
4953
|
isInteractable: !0,
|
|
4944
|
-
onClick:
|
|
4954
|
+
onClick: w,
|
|
4945
4955
|
width: 20,
|
|
4946
4956
|
height: 20
|
|
4947
4957
|
}
|
|
@@ -4970,13 +4980,13 @@ const Ge = (r, e, t) => ({
|
|
|
4970
4980
|
UmColor: m = "var(--smp-dashList-color-base)",
|
|
4971
4981
|
ForceValue: g,
|
|
4972
4982
|
ValueColName: x,
|
|
4973
|
-
ValueColor:
|
|
4983
|
+
ValueColor: w = "var(--smp-dashList-color-base)",
|
|
4974
4984
|
SelectLayout: E = "1",
|
|
4975
4985
|
onClick: O
|
|
4976
4986
|
}) => {
|
|
4977
|
-
const
|
|
4987
|
+
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 = {
|
|
4978
4988
|
dash: (V = "1") => {
|
|
4979
|
-
const X = h(V), te = X, re = y(X, P), de = y(X, D), be = y(X,
|
|
4989
|
+
const X = h(V), te = X, re = y(X, P), de = y(X, D), be = y(X, k), he = y(X, U);
|
|
4980
4990
|
return {
|
|
4981
4991
|
container: te,
|
|
4982
4992
|
descr: re,
|
|
@@ -4987,7 +4997,7 @@ const Ge = (r, e, t) => ({
|
|
|
4987
4997
|
},
|
|
4988
4998
|
dashList: `smp-dash-list ${ce(a) ? "smp-dash-list-fill-space" : ""}
|
|
4989
4999
|
${ce(o) ? "smp-dash-list-horizontal" : ""}`
|
|
4990
|
-
}, { format:
|
|
5000
|
+
}, { format: _ } = nt(), h = (V) => `${j}-${V}`, y = (V, X) => `${V}__${X}`, T = (V) => `${Y}-${V}`, $ = (V) => {
|
|
4991
5001
|
const X = /R(\d{1,3})G(\d{1,3})B(\d{1,3})/;
|
|
4992
5002
|
if (X.test(V)) {
|
|
4993
5003
|
const re = V.match(X) || [];
|
|
@@ -4999,7 +5009,7 @@ const Ge = (r, e, t) => ({
|
|
|
4999
5009
|
if (!l) return V;
|
|
5000
5010
|
const [X, te] = A(l).map(
|
|
5001
5011
|
(Te) => parseInt(Te || "0")
|
|
5002
|
-
), re = "0,0" + (te ? "." + "0".repeat(te) : ""), de =
|
|
5012
|
+
), re = "0,0" + (te ? "." + "0".repeat(te) : ""), de = _(V, re, "it");
|
|
5003
5013
|
if (!X) return de;
|
|
5004
5014
|
const [be, he] = de.split(",");
|
|
5005
5015
|
return be + (he ? `,${he}` : "");
|
|
@@ -5032,19 +5042,19 @@ const Ge = (r, e, t) => ({
|
|
|
5032
5042
|
ue,
|
|
5033
5043
|
{
|
|
5034
5044
|
color: u,
|
|
5035
|
-
height:
|
|
5045
|
+
height: z,
|
|
5036
5046
|
icon: te,
|
|
5037
|
-
width:
|
|
5047
|
+
width: z
|
|
5038
5048
|
}
|
|
5039
5049
|
) }, `${V}-${D}`),
|
|
5040
|
-
um: (te) => /* @__PURE__ */ v.jsx("div", { className: X.um, children: te }, `${V}-${
|
|
5050
|
+
um: (te) => /* @__PURE__ */ v.jsx("div", { className: X.um, children: te }, `${V}-${k}`),
|
|
5041
5051
|
value: (te) => /* @__PURE__ */ v.jsx("div", { className: X.value, children: te }, `${V}-${U}`)
|
|
5042
5052
|
};
|
|
5043
5053
|
})(E), se = (V) => {
|
|
5044
5054
|
const { descr: X, icon: te, um: re, value: de } = M(V), be = {
|
|
5045
5055
|
[T(P)]: $(s),
|
|
5046
|
-
[T(
|
|
5047
|
-
[T(U)]: $(
|
|
5056
|
+
[T(k)]: $(m),
|
|
5057
|
+
[T(U)]: $(w)
|
|
5048
5058
|
}, he = [], Te = R(de);
|
|
5049
5059
|
switch (E) {
|
|
5050
5060
|
case "2":
|
|
@@ -5072,10 +5082,10 @@ const Ge = (r, e, t) => ({
|
|
|
5072
5082
|
V.rowId
|
|
5073
5083
|
);
|
|
5074
5084
|
}, I = {
|
|
5075
|
-
[
|
|
5085
|
+
[K]: String(r),
|
|
5076
5086
|
[J]: H
|
|
5077
5087
|
};
|
|
5078
|
-
return /* @__PURE__ */ v.jsx("div", { className: W.dashList, style: I, children: C ?
|
|
5088
|
+
return /* @__PURE__ */ v.jsx("div", { className: W.dashList, style: I, children: C ? L.map((V) => se(V)) : S });
|
|
5079
5089
|
}, pt = {
|
|
5080
5090
|
"smp-table": "_smp-table_8dmh0_1",
|
|
5081
5091
|
"smp-headerCell": "_smp-headerCell_8dmh0_35",
|
|
@@ -5089,11 +5099,11 @@ const Ge = (r, e, t) => ({
|
|
|
5089
5099
|
cell: us,
|
|
5090
5100
|
leftSection: fs
|
|
5091
5101
|
};
|
|
5092
|
-
function
|
|
5102
|
+
function Ke(r) {
|
|
5093
5103
|
return !!r && "children" in r;
|
|
5094
5104
|
}
|
|
5095
5105
|
function ds(r) {
|
|
5096
|
-
return !
|
|
5106
|
+
return !Ke(r);
|
|
5097
5107
|
}
|
|
5098
5108
|
function ps(r) {
|
|
5099
5109
|
return JSON.stringify(r).split("").reduce((e, t) => (e << 5) - e + t.charCodeAt(0) | 0, 0).toString();
|
|
@@ -5106,7 +5116,7 @@ const Dr = ({
|
|
|
5106
5116
|
offsetTop: s
|
|
5107
5117
|
}) => {
|
|
5108
5118
|
var E;
|
|
5109
|
-
const [a, i] = Z(!1), o =
|
|
5119
|
+
const [a, i] = Z(!1), o = Ke(r) && !!((E = r.children) != null && E.length), f = r.cells && Object.keys(r.cells).length > 0, c = o, u = t * 20, l = () => {
|
|
5110
5120
|
o && i(!a);
|
|
5111
5121
|
}, d = {
|
|
5112
5122
|
content: `${we.rowContent} ${o ? we.clickable : ""}`,
|
|
@@ -5121,7 +5131,7 @@ const Dr = ({
|
|
|
5121
5131
|
"aria-hidden": "true"
|
|
5122
5132
|
}
|
|
5123
5133
|
), x = () => {
|
|
5124
|
-
const O = ds(r) ? "" : r.decode || (f ? "" : "Untitled"),
|
|
5134
|
+
const O = ds(r) ? "" : r.decode || (f ? "" : "Untitled"), S = s ?? n * t;
|
|
5125
5135
|
return /* @__PURE__ */ v.jsxs(
|
|
5126
5136
|
"tr",
|
|
5127
5137
|
{
|
|
@@ -5132,10 +5142,10 @@ const Dr = ({
|
|
|
5132
5142
|
style: {
|
|
5133
5143
|
height: `${n}px`,
|
|
5134
5144
|
lineHeight: `calc(${n}px - 2*2px)`,
|
|
5135
|
-
transform: `translateY(${
|
|
5145
|
+
transform: `translateY(${S}px)`
|
|
5136
5146
|
},
|
|
5137
5147
|
children: [
|
|
5138
|
-
|
|
5148
|
+
Ke(r) && /* @__PURE__ */ v.jsxs(
|
|
5139
5149
|
"td",
|
|
5140
5150
|
{
|
|
5141
5151
|
className: we.leftSection,
|
|
@@ -5149,7 +5159,7 @@ const Dr = ({
|
|
|
5149
5159
|
]
|
|
5150
5160
|
}
|
|
5151
5161
|
),
|
|
5152
|
-
r.cells && Object.keys(r.cells).length > 0 && Object.entries(r.cells).map(([b,
|
|
5162
|
+
r.cells && Object.keys(r.cells).length > 0 && Object.entries(r.cells).map(([b, L]) => /* @__PURE__ */ v.jsx(
|
|
5153
5163
|
"td",
|
|
5154
5164
|
{
|
|
5155
5165
|
className: d.cell,
|
|
@@ -5158,20 +5168,20 @@ const Dr = ({
|
|
|
5158
5168
|
minWidth: e[b],
|
|
5159
5169
|
height: `${n}px`
|
|
5160
5170
|
},
|
|
5161
|
-
children: p(
|
|
5171
|
+
children: p(L)
|
|
5162
5172
|
},
|
|
5163
|
-
ps(
|
|
5173
|
+
ps(L) || b
|
|
5164
5174
|
))
|
|
5165
5175
|
]
|
|
5166
5176
|
}
|
|
5167
5177
|
);
|
|
5168
|
-
},
|
|
5178
|
+
}, w = () => {
|
|
5169
5179
|
var O;
|
|
5170
|
-
return a || !o ? null : /* @__PURE__ */ v.jsx(v.Fragment, { children:
|
|
5180
|
+
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}`))) });
|
|
5171
5181
|
};
|
|
5172
5182
|
return /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
|
|
5173
5183
|
x(),
|
|
5174
|
-
|
|
5184
|
+
w()
|
|
5175
5185
|
] });
|
|
5176
5186
|
}, hs = ({
|
|
5177
5187
|
label: r,
|
|
@@ -5211,7 +5221,7 @@ const Dr = ({
|
|
|
5211
5221
|
width: 16
|
|
5212
5222
|
}
|
|
5213
5223
|
),
|
|
5214
|
-
/* @__PURE__ */ v.jsx(
|
|
5224
|
+
/* @__PURE__ */ v.jsx(ke, { variant: "title", bindValue: r })
|
|
5215
5225
|
]
|
|
5216
5226
|
}
|
|
5217
5227
|
)
|
|
@@ -5241,9 +5251,9 @@ function ys(r, e, t, n) {
|
|
|
5241
5251
|
return;
|
|
5242
5252
|
}
|
|
5243
5253
|
const m = e[d].column, g = o(l, m);
|
|
5244
|
-
for (const [x,
|
|
5245
|
-
const E = [...p, x], O = f(E, d),
|
|
5246
|
-
s.push(c(x, O, d,
|
|
5254
|
+
for (const [x, w] of g) {
|
|
5255
|
+
const E = [...p, x], O = f(E, d), S = n.has(O);
|
|
5256
|
+
s.push(c(x, O, d, S)), a += t, S && i(w, d + 1, E);
|
|
5247
5257
|
}
|
|
5248
5258
|
}
|
|
5249
5259
|
function o(l, d) {
|
|
@@ -5329,30 +5339,30 @@ const vs = ({
|
|
|
5329
5339
|
switch (s) {
|
|
5330
5340
|
case "fixed":
|
|
5331
5341
|
P = Object.fromEntries(
|
|
5332
|
-
i.columns.map((
|
|
5342
|
+
i.columns.map((k) => [k.name, 120])
|
|
5333
5343
|
);
|
|
5334
5344
|
break;
|
|
5335
5345
|
case "fit-grid": {
|
|
5336
|
-
const
|
|
5346
|
+
const k = i.columns.filter((H) => H.visible), U = Math.floor(j / k.length);
|
|
5337
5347
|
P = Object.fromEntries(
|
|
5338
|
-
|
|
5348
|
+
k.map((H) => [H.name, U])
|
|
5339
5349
|
);
|
|
5340
5350
|
break;
|
|
5341
5351
|
}
|
|
5342
5352
|
case "fit-content":
|
|
5343
5353
|
P = Object.fromEntries(
|
|
5344
|
-
i.columns.map((
|
|
5354
|
+
i.columns.map((k) => {
|
|
5345
5355
|
const U = Math.max(
|
|
5346
5356
|
...r.rows.map((W) => {
|
|
5347
5357
|
var y;
|
|
5348
|
-
const
|
|
5358
|
+
const _ = (y = W == null ? void 0 : W.cells) == null ? void 0 : y[k.name], h = (_ == null ? void 0 : _.decode) || (_ == null ? void 0 : _.value);
|
|
5349
5359
|
return h ? String(h).length : 0;
|
|
5350
5360
|
}),
|
|
5351
5361
|
0
|
|
5352
|
-
), H =
|
|
5362
|
+
), H = k.title ? k.title.length : 0, z = Math.max(U, H);
|
|
5353
5363
|
return [
|
|
5354
|
-
|
|
5355
|
-
Math.max(50,
|
|
5364
|
+
k.name,
|
|
5365
|
+
Math.max(50, z * 8 + 16)
|
|
5356
5366
|
];
|
|
5357
5367
|
})
|
|
5358
5368
|
);
|
|
@@ -5373,23 +5383,23 @@ const vs = ({
|
|
|
5373
5383
|
}, [r, f, u, e]);
|
|
5374
5384
|
const x = (j) => {
|
|
5375
5385
|
c(gs(j, f));
|
|
5376
|
-
},
|
|
5386
|
+
}, w = (j) => {
|
|
5377
5387
|
j.preventDefault();
|
|
5378
5388
|
const P = j.dataTransfer.getData("text/plain");
|
|
5379
5389
|
if (!P || f.some((U) => U.column === P))
|
|
5380
5390
|
return;
|
|
5381
|
-
const
|
|
5382
|
-
c(
|
|
5391
|
+
const k = [...f, { column: P, visible: !0 }];
|
|
5392
|
+
c(k);
|
|
5383
5393
|
}, E = (j) => {
|
|
5384
5394
|
j.preventDefault();
|
|
5385
|
-
}, { virtualItems: O, containerProps:
|
|
5395
|
+
}, { virtualItems: O, containerProps: S, innerProps: b } = xr({
|
|
5386
5396
|
items: (i == null ? void 0 : i.rows) || [],
|
|
5387
5397
|
itemHeight: e,
|
|
5388
5398
|
containerHeight: t,
|
|
5389
5399
|
overscan: 5
|
|
5390
|
-
}),
|
|
5391
|
-
const D = j.clientX,
|
|
5392
|
-
const
|
|
5400
|
+
}), L = (j, P) => {
|
|
5401
|
+
const D = j.clientX, k = p[P], U = (z) => {
|
|
5402
|
+
const K = z.clientX - D, J = Math.max(50, k + K);
|
|
5393
5403
|
m((W) => ({
|
|
5394
5404
|
...W,
|
|
5395
5405
|
[P]: J
|
|
@@ -5407,7 +5417,7 @@ const vs = ({
|
|
|
5407
5417
|
"div",
|
|
5408
5418
|
{
|
|
5409
5419
|
className: C.smpTable,
|
|
5410
|
-
...
|
|
5420
|
+
...S,
|
|
5411
5421
|
ref: g,
|
|
5412
5422
|
children: /* @__PURE__ */ v.jsxs("table", { children: [
|
|
5413
5423
|
/* @__PURE__ */ v.jsxs("thead", { children: [
|
|
@@ -5416,7 +5426,7 @@ const vs = ({
|
|
|
5416
5426
|
{
|
|
5417
5427
|
groups: f,
|
|
5418
5428
|
onChange: x,
|
|
5419
|
-
onDrop:
|
|
5429
|
+
onDrop: w,
|
|
5420
5430
|
onDragOver: E
|
|
5421
5431
|
}
|
|
5422
5432
|
),
|
|
@@ -5436,7 +5446,7 @@ const vs = ({
|
|
|
5436
5446
|
},
|
|
5437
5447
|
children: [
|
|
5438
5448
|
/* @__PURE__ */ v.jsx(
|
|
5439
|
-
|
|
5449
|
+
ke,
|
|
5440
5450
|
{
|
|
5441
5451
|
variant: "title",
|
|
5442
5452
|
bindValue: j.title
|
|
@@ -5446,7 +5456,7 @@ const vs = ({
|
|
|
5446
5456
|
"div",
|
|
5447
5457
|
{
|
|
5448
5458
|
className: C.resizer,
|
|
5449
|
-
onMouseDown: (P) =>
|
|
5459
|
+
onMouseDown: (P) => L(P, j.name),
|
|
5450
5460
|
role: "region"
|
|
5451
5461
|
}
|
|
5452
5462
|
)
|
|
@@ -5465,8 +5475,8 @@ const vs = ({
|
|
|
5465
5475
|
offsetTop: D,
|
|
5466
5476
|
level: j.level,
|
|
5467
5477
|
onClick: () => {
|
|
5468
|
-
const
|
|
5469
|
-
|
|
5478
|
+
const k = j.rowId;
|
|
5479
|
+
k && l((U) => ms(U, k));
|
|
5470
5480
|
},
|
|
5471
5481
|
isExpanded: j.isExpanded
|
|
5472
5482
|
},
|
|
@@ -5570,7 +5580,7 @@ const vs = ({
|
|
|
5570
5580
|
return {};
|
|
5571
5581
|
const l = (m = u.rows) == null ? void 0 : m[0];
|
|
5572
5582
|
return u.columns.filter((g) => g.visible ?? !0).reduce((g, x) => {
|
|
5573
|
-
const
|
|
5583
|
+
const w = {
|
|
5574
5584
|
...l.cells[x.name],
|
|
5575
5585
|
label: x.title,
|
|
5576
5586
|
onChange: (E) => {
|
|
@@ -5587,9 +5597,9 @@ const vs = ({
|
|
|
5587
5597
|
}));
|
|
5588
5598
|
}
|
|
5589
5599
|
};
|
|
5590
|
-
return
|
|
5600
|
+
return w.fun && (w.shape == ne.AUTOCOMPLETE || w.shape == ne.MULTI_AUTOCOMPLETE || w.shape == ne.COMBOBOX) && (w.onOptionsRequest = (E, O) => n(E, O, r, x.name)), w.isEditable == null && (w.isEditable = !0), e && (w.isEditable = !1), w.isEditable && w.shape == null && (w.shape = ne.TEXT_FIELD), {
|
|
5591
5601
|
...g,
|
|
5592
|
-
[x.name]:
|
|
5602
|
+
[x.name]: w
|
|
5593
5603
|
};
|
|
5594
5604
|
}, {});
|
|
5595
5605
|
}, c = () => {
|