@sme.up/ketchup2 2.0.0-SNAPSHOT-20250821124029 → 2.0.0-SNAPSHOT-20250822082030
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/textarea/textarea-types.d.ts +1 -0
- package/dist/basic-components/textarea/textarea-types.d.ts.map +1 -1
- package/dist/basic-components/textarea/textarea.d.ts.map +1 -1
- package/dist/index.d.ts +22 -16
- package/dist/index.d.ts.map +1 -1
- package/dist/ketchup2.cjs.js +11 -11
- package/dist/ketchup2.css +1 -1
- package/dist/ketchup2.es.js +461 -449
- package/package.json +1 -1
package/dist/ketchup2.es.js
CHANGED
|
@@ -60,7 +60,7 @@ function Tn() {
|
|
|
60
60
|
return "StrictMode";
|
|
61
61
|
case y:
|
|
62
62
|
return "Suspense";
|
|
63
|
-
case
|
|
63
|
+
case D:
|
|
64
64
|
return "SuspenseList";
|
|
65
65
|
case W:
|
|
66
66
|
return "Activity";
|
|
@@ -80,7 +80,7 @@ function Tn() {
|
|
|
80
80
|
return m = m.displayName, m || (m = S.displayName || S.name || "", m = m !== "" ? "ForwardRef(" + m + ")" : "ForwardRef"), m;
|
|
81
81
|
case O:
|
|
82
82
|
return S = m.displayName || null, S !== null ? S : t(m.type) || "Memo";
|
|
83
|
-
case
|
|
83
|
+
case F:
|
|
84
84
|
S = m._payload, m = m._init;
|
|
85
85
|
try {
|
|
86
86
|
return t(m(S));
|
|
@@ -101,17 +101,17 @@ function Tn() {
|
|
|
101
101
|
}
|
|
102
102
|
if (S) {
|
|
103
103
|
S = console;
|
|
104
|
-
var L = S.error,
|
|
104
|
+
var L = S.error, R = typeof Symbol == "function" && Symbol.toStringTag && m[Symbol.toStringTag] || m.constructor.name || "Object";
|
|
105
105
|
return L.call(
|
|
106
106
|
S,
|
|
107
107
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
108
|
-
|
|
108
|
+
R
|
|
109
109
|
), e(m);
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
function n(m) {
|
|
113
113
|
if (m === b) return "<>";
|
|
114
|
-
if (typeof m == "object" && m !== null && m.$$typeof ===
|
|
114
|
+
if (typeof m == "object" && m !== null && m.$$typeof === F)
|
|
115
115
|
return "<...>";
|
|
116
116
|
try {
|
|
117
117
|
var S = t(m);
|
|
@@ -152,7 +152,7 @@ function Tn() {
|
|
|
152
152
|
"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."
|
|
153
153
|
)), m = this.props.ref, m !== void 0 ? m : null;
|
|
154
154
|
}
|
|
155
|
-
function c(m, S, L,
|
|
155
|
+
function c(m, S, L, R, $, P, G, q) {
|
|
156
156
|
return L = P.ref, m = {
|
|
157
157
|
$$typeof: g,
|
|
158
158
|
type: m,
|
|
@@ -184,13 +184,13 @@ function Tn() {
|
|
|
184
184
|
value: q
|
|
185
185
|
}), Object.freeze && (Object.freeze(m.props), Object.freeze(m)), m;
|
|
186
186
|
}
|
|
187
|
-
function d(m, S, L,
|
|
187
|
+
function d(m, S, L, R, $, P, G, q) {
|
|
188
188
|
var Y = S.children;
|
|
189
189
|
if (Y !== void 0)
|
|
190
|
-
if (
|
|
190
|
+
if (R)
|
|
191
191
|
if (A(Y)) {
|
|
192
|
-
for (
|
|
193
|
-
u(Y[
|
|
192
|
+
for (R = 0; R < Y.length; R++)
|
|
193
|
+
u(Y[R]);
|
|
194
194
|
Object.freeze && Object.freeze(Y);
|
|
195
195
|
} else
|
|
196
196
|
console.error(
|
|
@@ -202,18 +202,18 @@ function Tn() {
|
|
|
202
202
|
var Q = Object.keys(S).filter(function(ae) {
|
|
203
203
|
return ae !== "key";
|
|
204
204
|
});
|
|
205
|
-
|
|
205
|
+
R = 0 < Q.length ? "{key: someKey, " + Q.join(": ..., ") + ": ...}" : "{key: someKey}", j[Y + R] || (Q = 0 < Q.length ? "{" + Q.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
206
206
|
`A props object containing a "key" prop is being spread into JSX:
|
|
207
207
|
let props = %s;
|
|
208
208
|
<%s {...props} />
|
|
209
209
|
React keys must be passed directly to JSX without using spread:
|
|
210
210
|
let props = %s;
|
|
211
211
|
<%s key={someKey} {...props} />`,
|
|
212
|
-
|
|
212
|
+
R,
|
|
213
213
|
Y,
|
|
214
214
|
Q,
|
|
215
215
|
Y
|
|
216
|
-
), j[Y +
|
|
216
|
+
), j[Y + R] = !0);
|
|
217
217
|
}
|
|
218
218
|
if (Y = null, L !== void 0 && (r(L), Y = "" + L), a(S) && (r(S.key), Y = "" + S.key), "key" in S) {
|
|
219
219
|
L = {};
|
|
@@ -237,7 +237,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
237
237
|
function u(m) {
|
|
238
238
|
typeof m == "object" && m !== null && m.$$typeof === g && m._store && (m._store.validated = 1);
|
|
239
239
|
}
|
|
240
|
-
var f = mt, g = Symbol.for("react.transitional.element"), h = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), w = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), _ = Symbol.for("react.consumer"), x = Symbol.for("react.context"), T = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"),
|
|
240
|
+
var f = mt, g = Symbol.for("react.transitional.element"), h = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), w = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), _ = Symbol.for("react.consumer"), x = Symbol.for("react.context"), T = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), D = Symbol.for("react.suspense_list"), O = Symbol.for("react.memo"), F = Symbol.for("react.lazy"), W = Symbol.for("react.activity"), k = Symbol.for("react.client.reference"), C = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, E = Object.prototype.hasOwnProperty, A = Array.isArray, I = console.createTask ? console.createTask : function() {
|
|
241
241
|
return null;
|
|
242
242
|
};
|
|
243
243
|
f = {
|
|
@@ -249,26 +249,26 @@ React keys must be passed directly to JSX without using spread:
|
|
|
249
249
|
f,
|
|
250
250
|
o
|
|
251
251
|
)(), N = I(n(o)), j = {};
|
|
252
|
-
He.Fragment = b, He.jsx = function(m, S, L,
|
|
252
|
+
He.Fragment = b, He.jsx = function(m, S, L, R, $) {
|
|
253
253
|
var P = 1e4 > C.recentlyCreatedOwnerStacks++;
|
|
254
254
|
return d(
|
|
255
255
|
m,
|
|
256
256
|
S,
|
|
257
257
|
L,
|
|
258
258
|
!1,
|
|
259
|
-
|
|
259
|
+
R,
|
|
260
260
|
$,
|
|
261
261
|
P ? Error("react-stack-top-frame") : X,
|
|
262
262
|
P ? I(n(m)) : N
|
|
263
263
|
);
|
|
264
|
-
}, He.jsxs = function(m, S, L,
|
|
264
|
+
}, He.jsxs = function(m, S, L, R, $) {
|
|
265
265
|
var P = 1e4 > C.recentlyCreatedOwnerStacks++;
|
|
266
266
|
return d(
|
|
267
267
|
m,
|
|
268
268
|
S,
|
|
269
269
|
L,
|
|
270
270
|
!0,
|
|
271
|
-
|
|
271
|
+
R,
|
|
272
272
|
$,
|
|
273
273
|
P ? Error("react-stack-top-frame") : X,
|
|
274
274
|
P ? I(n(m)) : N
|
|
@@ -492,26 +492,26 @@ var Dn = Rn(), Be = /* @__PURE__ */ new Map(), Zr = function(e) {
|
|
|
492
492
|
path: [],
|
|
493
493
|
pattern: ["fill", "stroke"],
|
|
494
494
|
radialGradient: ["fill", "stroke"]
|
|
495
|
-
}, T, y,
|
|
495
|
+
}, T, y, D, O, F;
|
|
496
496
|
Object.keys(x).forEach(function(N) {
|
|
497
|
-
T = N,
|
|
498
|
-
for (var j = function(
|
|
499
|
-
O = y[
|
|
497
|
+
T = N, D = x[N], y = u.querySelectorAll(T + "[id]");
|
|
498
|
+
for (var j = function(R, $) {
|
|
499
|
+
O = y[R].id, F = O + "-" + An();
|
|
500
500
|
var P;
|
|
501
|
-
Array.prototype.forEach.call(
|
|
501
|
+
Array.prototype.forEach.call(D, function(z) {
|
|
502
502
|
P = u.querySelectorAll("[" + z + '*="' + O + '"]');
|
|
503
503
|
for (var ee = 0, B = P.length; ee < B; ee++) {
|
|
504
504
|
var J = P[ee].getAttribute(z);
|
|
505
|
-
J && !J.match(new RegExp('url\\("?#' + O + '"?\\)')) || P[ee].setAttribute(z, "url(#" +
|
|
505
|
+
J && !J.match(new RegExp('url\\("?#' + O + '"?\\)')) || P[ee].setAttribute(z, "url(#" + F + ")");
|
|
506
506
|
}
|
|
507
507
|
});
|
|
508
508
|
for (var G = u.querySelectorAll("[*|href]"), q = [], Y = 0, Q = G.length; Y < Q; Y++) {
|
|
509
509
|
var K = G[Y].getAttributeNS(jt, "href");
|
|
510
|
-
K && K.toString() === "#" + y[
|
|
510
|
+
K && K.toString() === "#" + y[R].id && q.push(G[Y]);
|
|
511
511
|
}
|
|
512
|
-
for (var ae = 0,
|
|
513
|
-
q[ae].setAttributeNS(jt, "href", "#" +
|
|
514
|
-
y[
|
|
512
|
+
for (var ae = 0, M = q.length; ae < M; ae++)
|
|
513
|
+
q[ae].setAttributeNS(jt, "href", "#" + F);
|
|
514
|
+
y[R].id = F;
|
|
515
515
|
}, m = 0, S = y.length; m < S; m++)
|
|
516
516
|
j(m);
|
|
517
517
|
});
|
|
@@ -540,11 +540,11 @@ var Dn = Rn(), Be = /* @__PURE__ */ new Map(), Zr = function(e) {
|
|
|
540
540
|
} : l, d = n.cacheRequests, u = d === void 0 ? !0 : d, f = n.evalScripts, g = f === void 0 ? "never" : f, h = n.httpRequestWithCredentials, b = h === void 0 ? !1 : h, w = n.renumerateIRIElements, v = w === void 0 ? !0 : w;
|
|
541
541
|
if (e && "length" in e)
|
|
542
542
|
for (var _ = 0, x = 0, T = e.length; x < T; x++)
|
|
543
|
-
pr(e[x], g, v, u, b, c, function(y,
|
|
544
|
-
i(y,
|
|
543
|
+
pr(e[x], g, v, u, b, c, function(y, D) {
|
|
544
|
+
i(y, D), e && "length" in e && e.length === ++_ && o(_);
|
|
545
545
|
});
|
|
546
|
-
else e ? pr(e, g, v, u, b, c, function(y,
|
|
547
|
-
i(y,
|
|
546
|
+
else e ? pr(e, g, v, u, b, c, function(y, D) {
|
|
547
|
+
i(y, D), o(1), e = null;
|
|
548
548
|
}) : o(0);
|
|
549
549
|
}, it = { exports: {} }, lt = { exports: {} }, ne = {};
|
|
550
550
|
/** @license React v16.13.1
|
|
@@ -562,8 +562,8 @@ function Fn() {
|
|
|
562
562
|
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, s = t ? Symbol.for("react.strict_mode") : 60108, o = t ? Symbol.for("react.profiler") : 60114, a = t ? Symbol.for("react.provider") : 60109, i = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, c = t ? Symbol.for("react.concurrent_mode") : 60111, d = t ? Symbol.for("react.forward_ref") : 60112, u = t ? Symbol.for("react.suspense") : 60113, f = t ? Symbol.for("react.suspense_list") : 60120, g = t ? Symbol.for("react.memo") : 60115, h = t ? Symbol.for("react.lazy") : 60116, b = t ? Symbol.for("react.block") : 60121, w = t ? Symbol.for("react.fundamental") : 60117, v = t ? Symbol.for("react.responder") : 60118, _ = t ? Symbol.for("react.scope") : 60119;
|
|
563
563
|
function x(y) {
|
|
564
564
|
if (typeof y == "object" && y !== null) {
|
|
565
|
-
var
|
|
566
|
-
switch (
|
|
565
|
+
var D = y.$$typeof;
|
|
566
|
+
switch (D) {
|
|
567
567
|
case e:
|
|
568
568
|
switch (y = y.type, y) {
|
|
569
569
|
case l:
|
|
@@ -582,11 +582,11 @@ function Fn() {
|
|
|
582
582
|
case a:
|
|
583
583
|
return y;
|
|
584
584
|
default:
|
|
585
|
-
return
|
|
585
|
+
return D;
|
|
586
586
|
}
|
|
587
587
|
}
|
|
588
588
|
case r:
|
|
589
|
-
return
|
|
589
|
+
return D;
|
|
590
590
|
}
|
|
591
591
|
}
|
|
592
592
|
}
|
|
@@ -634,16 +634,16 @@ var mr;
|
|
|
634
634
|
function Mn() {
|
|
635
635
|
return mr || (mr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
636
636
|
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, s = t ? Symbol.for("react.strict_mode") : 60108, o = t ? Symbol.for("react.profiler") : 60114, a = t ? Symbol.for("react.provider") : 60109, i = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, c = t ? Symbol.for("react.concurrent_mode") : 60111, d = t ? Symbol.for("react.forward_ref") : 60112, u = t ? Symbol.for("react.suspense") : 60113, f = t ? Symbol.for("react.suspense_list") : 60120, g = t ? Symbol.for("react.memo") : 60115, h = t ? Symbol.for("react.lazy") : 60116, b = t ? Symbol.for("react.block") : 60121, w = t ? Symbol.for("react.fundamental") : 60117, v = t ? Symbol.for("react.responder") : 60118, _ = t ? Symbol.for("react.scope") : 60119;
|
|
637
|
-
function x(
|
|
638
|
-
return typeof
|
|
639
|
-
|
|
637
|
+
function x(M) {
|
|
638
|
+
return typeof M == "string" || typeof M == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
639
|
+
M === n || M === c || M === o || M === s || M === u || M === f || typeof M == "object" && M !== null && (M.$$typeof === h || M.$$typeof === g || M.$$typeof === a || M.$$typeof === i || M.$$typeof === d || M.$$typeof === w || M.$$typeof === v || M.$$typeof === _ || M.$$typeof === b);
|
|
640
640
|
}
|
|
641
|
-
function T(
|
|
642
|
-
if (typeof
|
|
643
|
-
var z =
|
|
641
|
+
function T(M) {
|
|
642
|
+
if (typeof M == "object" && M !== null) {
|
|
643
|
+
var z = M.$$typeof;
|
|
644
644
|
switch (z) {
|
|
645
645
|
case e:
|
|
646
|
-
var ee =
|
|
646
|
+
var ee = M.type;
|
|
647
647
|
switch (ee) {
|
|
648
648
|
case l:
|
|
649
649
|
case c:
|
|
@@ -670,47 +670,47 @@ function Mn() {
|
|
|
670
670
|
}
|
|
671
671
|
}
|
|
672
672
|
}
|
|
673
|
-
var y = l,
|
|
674
|
-
function j(
|
|
675
|
-
return N || (N = !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.")), m(
|
|
673
|
+
var y = l, D = c, O = i, F = a, W = e, k = d, C = n, E = h, A = g, I = r, V = o, U = s, X = u, N = !1;
|
|
674
|
+
function j(M) {
|
|
675
|
+
return N || (N = !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.")), m(M) || T(M) === l;
|
|
676
676
|
}
|
|
677
|
-
function m(
|
|
678
|
-
return T(
|
|
677
|
+
function m(M) {
|
|
678
|
+
return T(M) === c;
|
|
679
679
|
}
|
|
680
|
-
function S(
|
|
681
|
-
return T(
|
|
680
|
+
function S(M) {
|
|
681
|
+
return T(M) === i;
|
|
682
682
|
}
|
|
683
|
-
function L(
|
|
684
|
-
return T(
|
|
683
|
+
function L(M) {
|
|
684
|
+
return T(M) === a;
|
|
685
685
|
}
|
|
686
|
-
function
|
|
687
|
-
return typeof
|
|
686
|
+
function R(M) {
|
|
687
|
+
return typeof M == "object" && M !== null && M.$$typeof === e;
|
|
688
688
|
}
|
|
689
|
-
function $(
|
|
690
|
-
return T(
|
|
689
|
+
function $(M) {
|
|
690
|
+
return T(M) === d;
|
|
691
691
|
}
|
|
692
|
-
function P(
|
|
693
|
-
return T(
|
|
692
|
+
function P(M) {
|
|
693
|
+
return T(M) === n;
|
|
694
694
|
}
|
|
695
|
-
function G(
|
|
696
|
-
return T(
|
|
695
|
+
function G(M) {
|
|
696
|
+
return T(M) === h;
|
|
697
697
|
}
|
|
698
|
-
function q(
|
|
699
|
-
return T(
|
|
698
|
+
function q(M) {
|
|
699
|
+
return T(M) === g;
|
|
700
700
|
}
|
|
701
|
-
function Y(
|
|
702
|
-
return T(
|
|
701
|
+
function Y(M) {
|
|
702
|
+
return T(M) === r;
|
|
703
703
|
}
|
|
704
|
-
function Q(
|
|
705
|
-
return T(
|
|
704
|
+
function Q(M) {
|
|
705
|
+
return T(M) === o;
|
|
706
706
|
}
|
|
707
|
-
function K(
|
|
708
|
-
return T(
|
|
707
|
+
function K(M) {
|
|
708
|
+
return T(M) === s;
|
|
709
709
|
}
|
|
710
|
-
function ae(
|
|
711
|
-
return T(
|
|
710
|
+
function ae(M) {
|
|
711
|
+
return T(M) === u;
|
|
712
712
|
}
|
|
713
|
-
se.AsyncMode = y, se.ConcurrentMode =
|
|
713
|
+
se.AsyncMode = y, se.ConcurrentMode = D, se.ContextConsumer = O, se.ContextProvider = F, se.Element = W, se.ForwardRef = k, se.Fragment = C, se.Lazy = E, se.Memo = A, se.Portal = I, se.Profiler = V, se.StrictMode = U, se.Suspense = X, se.isAsyncMode = j, se.isConcurrentMode = m, se.isContextConsumer = S, se.isContextProvider = L, se.isElement = R, se.isForwardRef = $, se.isFragment = P, se.isLazy = G, se.isMemo = q, se.isPortal = Y, se.isProfiler = Q, se.isStrictMode = K, se.isSuspense = ae, se.isValidElementType = x, se.typeOf = T;
|
|
714
714
|
}()), se;
|
|
715
715
|
}
|
|
716
716
|
var gr;
|
|
@@ -865,9 +865,9 @@ function Bn() {
|
|
|
865
865
|
arrayOf: x,
|
|
866
866
|
element: T(),
|
|
867
867
|
elementType: y(),
|
|
868
|
-
instanceOf:
|
|
868
|
+
instanceOf: D,
|
|
869
869
|
node: k(),
|
|
870
|
-
objectOf:
|
|
870
|
+
objectOf: F,
|
|
871
871
|
oneOf: O,
|
|
872
872
|
oneOfType: W,
|
|
873
873
|
shape: E,
|
|
@@ -883,13 +883,13 @@ function Bn() {
|
|
|
883
883
|
function w(m) {
|
|
884
884
|
if (process.env.NODE_ENV !== "production")
|
|
885
885
|
var S = {}, L = 0;
|
|
886
|
-
function
|
|
886
|
+
function R(P, G, q, Y, Q, K, ae) {
|
|
887
887
|
if (Y = Y || f, K = K || q, ae !== r) {
|
|
888
888
|
if (l) {
|
|
889
|
-
var
|
|
889
|
+
var M = new Error(
|
|
890
890
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
891
891
|
);
|
|
892
|
-
throw
|
|
892
|
+
throw M.name = "Invariant Violation", M;
|
|
893
893
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
894
894
|
var z = Y + ":" + q;
|
|
895
895
|
!S[z] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
@@ -900,12 +900,12 @@ function Bn() {
|
|
|
900
900
|
}
|
|
901
901
|
return G[q] == null ? P ? G[q] === null ? new b("The " + Q + " `" + K + "` is marked as required " + ("in `" + Y + "`, but its value is `null`.")) : new b("The " + Q + " `" + K + "` is marked as required in " + ("`" + Y + "`, but its value is `undefined`.")) : null : m(G, q, Y, Q, K);
|
|
902
902
|
}
|
|
903
|
-
var $ =
|
|
904
|
-
return $.isRequired =
|
|
903
|
+
var $ = R.bind(null, !1);
|
|
904
|
+
return $.isRequired = R.bind(null, !0), $;
|
|
905
905
|
}
|
|
906
906
|
function v(m) {
|
|
907
|
-
function S(L,
|
|
908
|
-
var Y = L[
|
|
907
|
+
function S(L, R, $, P, G, q) {
|
|
908
|
+
var Y = L[R], Q = U(Y);
|
|
909
909
|
if (Q !== m) {
|
|
910
910
|
var K = X(Y);
|
|
911
911
|
return new b(
|
|
@@ -921,10 +921,10 @@ function Bn() {
|
|
|
921
921
|
return w(a);
|
|
922
922
|
}
|
|
923
923
|
function x(m) {
|
|
924
|
-
function S(L,
|
|
924
|
+
function S(L, R, $, P, G) {
|
|
925
925
|
if (typeof m != "function")
|
|
926
926
|
return new b("Property `" + G + "` of component `" + $ + "` has invalid PropType notation inside arrayOf.");
|
|
927
|
-
var q = L[
|
|
927
|
+
var q = L[R];
|
|
928
928
|
if (!Array.isArray(q)) {
|
|
929
929
|
var Y = U(q);
|
|
930
930
|
return new b("Invalid " + P + " `" + G + "` of type " + ("`" + Y + "` supplied to `" + $ + "`, expected an array."));
|
|
@@ -939,31 +939,31 @@ function Bn() {
|
|
|
939
939
|
return w(S);
|
|
940
940
|
}
|
|
941
941
|
function T() {
|
|
942
|
-
function m(S, L,
|
|
942
|
+
function m(S, L, R, $, P) {
|
|
943
943
|
var G = S[L];
|
|
944
944
|
if (!i(G)) {
|
|
945
945
|
var q = U(G);
|
|
946
|
-
return new b("Invalid " + $ + " `" + P + "` of type " + ("`" + q + "` supplied to `" +
|
|
946
|
+
return new b("Invalid " + $ + " `" + P + "` of type " + ("`" + q + "` supplied to `" + R + "`, expected a single ReactElement."));
|
|
947
947
|
}
|
|
948
948
|
return null;
|
|
949
949
|
}
|
|
950
950
|
return w(m);
|
|
951
951
|
}
|
|
952
952
|
function y() {
|
|
953
|
-
function m(S, L,
|
|
953
|
+
function m(S, L, R, $, P) {
|
|
954
954
|
var G = S[L];
|
|
955
955
|
if (!t.isValidElementType(G)) {
|
|
956
956
|
var q = U(G);
|
|
957
|
-
return new b("Invalid " + $ + " `" + P + "` of type " + ("`" + q + "` supplied to `" +
|
|
957
|
+
return new b("Invalid " + $ + " `" + P + "` of type " + ("`" + q + "` supplied to `" + R + "`, expected a single ReactElement type."));
|
|
958
958
|
}
|
|
959
959
|
return null;
|
|
960
960
|
}
|
|
961
961
|
return w(m);
|
|
962
962
|
}
|
|
963
|
-
function
|
|
964
|
-
function S(L,
|
|
965
|
-
if (!(L[
|
|
966
|
-
var q = m.name || f, Y = j(L[
|
|
963
|
+
function D(m) {
|
|
964
|
+
function S(L, R, $, P, G) {
|
|
965
|
+
if (!(L[R] instanceof m)) {
|
|
966
|
+
var q = m.name || f, Y = j(L[R]);
|
|
967
967
|
return new b("Invalid " + P + " `" + G + "` of type " + ("`" + Y + "` supplied to `" + $ + "`, expected ") + ("instance of `" + q + "`."));
|
|
968
968
|
}
|
|
969
969
|
return null;
|
|
@@ -975,23 +975,23 @@ function Bn() {
|
|
|
975
975
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? o(
|
|
976
976
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
977
977
|
) : o("Invalid argument supplied to oneOf, expected an array.")), a;
|
|
978
|
-
function S(L,
|
|
979
|
-
for (var q = L[
|
|
978
|
+
function S(L, R, $, P, G) {
|
|
979
|
+
for (var q = L[R], Y = 0; Y < m.length; Y++)
|
|
980
980
|
if (h(q, m[Y]))
|
|
981
981
|
return null;
|
|
982
|
-
var Q = JSON.stringify(m, function(ae,
|
|
983
|
-
var z = X(
|
|
984
|
-
return z === "symbol" ? String(
|
|
982
|
+
var Q = JSON.stringify(m, function(ae, M) {
|
|
983
|
+
var z = X(M);
|
|
984
|
+
return z === "symbol" ? String(M) : M;
|
|
985
985
|
});
|
|
986
986
|
return new b("Invalid " + P + " `" + G + "` of value `" + String(q) + "` " + ("supplied to `" + $ + "`, expected one of " + Q + "."));
|
|
987
987
|
}
|
|
988
988
|
return w(S);
|
|
989
989
|
}
|
|
990
|
-
function
|
|
991
|
-
function S(L,
|
|
990
|
+
function F(m) {
|
|
991
|
+
function S(L, R, $, P, G) {
|
|
992
992
|
if (typeof m != "function")
|
|
993
993
|
return new b("Property `" + G + "` of component `" + $ + "` has invalid PropType notation inside objectOf.");
|
|
994
|
-
var q = L[
|
|
994
|
+
var q = L[R], Y = U(q);
|
|
995
995
|
if (Y !== "object")
|
|
996
996
|
return new b("Invalid " + P + " `" + G + "` of type " + ("`" + Y + "` supplied to `" + $ + "`, expected an object."));
|
|
997
997
|
for (var Q in q)
|
|
@@ -1014,32 +1014,32 @@ function Bn() {
|
|
|
1014
1014
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + N(L) + " at index " + S + "."
|
|
1015
1015
|
), a;
|
|
1016
1016
|
}
|
|
1017
|
-
function
|
|
1017
|
+
function R($, P, G, q, Y) {
|
|
1018
1018
|
for (var Q = [], K = 0; K < m.length; K++) {
|
|
1019
|
-
var ae = m[K],
|
|
1020
|
-
if (
|
|
1019
|
+
var ae = m[K], M = ae($, P, G, q, Y, r);
|
|
1020
|
+
if (M == null)
|
|
1021
1021
|
return null;
|
|
1022
|
-
|
|
1022
|
+
M.data && n(M.data, "expectedType") && Q.push(M.data.expectedType);
|
|
1023
1023
|
}
|
|
1024
1024
|
var z = Q.length > 0 ? ", expected one of type [" + Q.join(", ") + "]" : "";
|
|
1025
1025
|
return new b("Invalid " + q + " `" + Y + "` supplied to " + ("`" + G + "`" + z + "."));
|
|
1026
1026
|
}
|
|
1027
|
-
return w(
|
|
1027
|
+
return w(R);
|
|
1028
1028
|
}
|
|
1029
1029
|
function k() {
|
|
1030
|
-
function m(S, L,
|
|
1031
|
-
return I(S[L]) ? null : new b("Invalid " + $ + " `" + P + "` supplied to " + ("`" +
|
|
1030
|
+
function m(S, L, R, $, P) {
|
|
1031
|
+
return I(S[L]) ? null : new b("Invalid " + $ + " `" + P + "` supplied to " + ("`" + R + "`, expected a ReactNode."));
|
|
1032
1032
|
}
|
|
1033
1033
|
return w(m);
|
|
1034
1034
|
}
|
|
1035
|
-
function C(m, S, L,
|
|
1035
|
+
function C(m, S, L, R, $) {
|
|
1036
1036
|
return new b(
|
|
1037
|
-
(m || "React class") + ": " + S + " type `" + L + "." +
|
|
1037
|
+
(m || "React class") + ": " + S + " type `" + L + "." + R + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + $ + "`."
|
|
1038
1038
|
);
|
|
1039
1039
|
}
|
|
1040
1040
|
function E(m) {
|
|
1041
|
-
function S(L,
|
|
1042
|
-
var q = L[
|
|
1041
|
+
function S(L, R, $, P, G) {
|
|
1042
|
+
var q = L[R], Y = U(q);
|
|
1043
1043
|
if (Y !== "object")
|
|
1044
1044
|
return new b("Invalid " + P + " `" + G + "` of type `" + Y + "` " + ("supplied to `" + $ + "`, expected `object`."));
|
|
1045
1045
|
for (var Q in m) {
|
|
@@ -1055,23 +1055,23 @@ function Bn() {
|
|
|
1055
1055
|
return w(S);
|
|
1056
1056
|
}
|
|
1057
1057
|
function A(m) {
|
|
1058
|
-
function S(L,
|
|
1059
|
-
var q = L[
|
|
1058
|
+
function S(L, R, $, P, G) {
|
|
1059
|
+
var q = L[R], Y = U(q);
|
|
1060
1060
|
if (Y !== "object")
|
|
1061
1061
|
return new b("Invalid " + P + " `" + G + "` of type `" + Y + "` " + ("supplied to `" + $ + "`, expected `object`."));
|
|
1062
|
-
var Q = e({}, L[
|
|
1062
|
+
var Q = e({}, L[R], m);
|
|
1063
1063
|
for (var K in Q) {
|
|
1064
1064
|
var ae = m[K];
|
|
1065
1065
|
if (n(m, K) && typeof ae != "function")
|
|
1066
1066
|
return C($, P, G, K, X(ae));
|
|
1067
1067
|
if (!ae)
|
|
1068
1068
|
return new b(
|
|
1069
|
-
"Invalid " + P + " `" + G + "` key `" + K + "` supplied to `" + $ + "`.\nBad object: " + JSON.stringify(L[
|
|
1069
|
+
"Invalid " + P + " `" + G + "` key `" + K + "` supplied to `" + $ + "`.\nBad object: " + JSON.stringify(L[R], null, " ") + `
|
|
1070
1070
|
Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
|
|
1071
1071
|
);
|
|
1072
|
-
var
|
|
1073
|
-
if (
|
|
1074
|
-
return
|
|
1072
|
+
var M = ae(q, K, $, P, G + "." + K, r);
|
|
1073
|
+
if (M)
|
|
1074
|
+
return M;
|
|
1075
1075
|
}
|
|
1076
1076
|
return null;
|
|
1077
1077
|
}
|
|
@@ -1092,14 +1092,14 @@ Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
|
|
|
1092
1092
|
return !0;
|
|
1093
1093
|
var S = u(m);
|
|
1094
1094
|
if (S) {
|
|
1095
|
-
var L = S.call(m),
|
|
1095
|
+
var L = S.call(m), R;
|
|
1096
1096
|
if (S !== m.entries) {
|
|
1097
|
-
for (; !(
|
|
1098
|
-
if (!I(
|
|
1097
|
+
for (; !(R = L.next()).done; )
|
|
1098
|
+
if (!I(R.value))
|
|
1099
1099
|
return !1;
|
|
1100
1100
|
} else
|
|
1101
|
-
for (; !(
|
|
1102
|
-
var $ =
|
|
1101
|
+
for (; !(R = L.next()).done; ) {
|
|
1102
|
+
var $ = R.value;
|
|
1103
1103
|
if ($ && !I($[1]))
|
|
1104
1104
|
return !1;
|
|
1105
1105
|
}
|
|
@@ -1249,7 +1249,7 @@ var pe = /* @__PURE__ */ Yn(), Gn = function(e) {
|
|
|
1249
1249
|
}, function() {
|
|
1250
1250
|
g(O);
|
|
1251
1251
|
});
|
|
1252
|
-
}, T = function(O,
|
|
1252
|
+
}, T = function(O, F) {
|
|
1253
1253
|
if (O) {
|
|
1254
1254
|
x(O);
|
|
1255
1255
|
return;
|
|
@@ -1260,15 +1260,15 @@ var pe = /* @__PURE__ */ Yn(), Gn = function(e) {
|
|
|
1260
1260
|
};
|
|
1261
1261
|
}, function() {
|
|
1262
1262
|
try {
|
|
1263
|
-
b(
|
|
1263
|
+
b(F);
|
|
1264
1264
|
} catch (W) {
|
|
1265
1265
|
x(W);
|
|
1266
1266
|
}
|
|
1267
1267
|
});
|
|
1268
1268
|
}, y = function(O) {
|
|
1269
1269
|
if (O.setAttribute("role", "img"), a) {
|
|
1270
|
-
var
|
|
1271
|
-
|
|
1270
|
+
var F = O.querySelector(":scope > desc");
|
|
1271
|
+
F && O.removeChild(F);
|
|
1272
1272
|
var W = document.createElement("desc");
|
|
1273
1273
|
W.innerHTML = a, O.prepend(W);
|
|
1274
1274
|
}
|
|
@@ -1388,10 +1388,10 @@ const Ko = (t) => {
|
|
|
1388
1388
|
!o && c && l && l(E);
|
|
1389
1389
|
}, T = (E) => {
|
|
1390
1390
|
!o && c && (E.key === "Enter" || E.key === " ") && (E.preventDefault(), x(E));
|
|
1391
|
-
}, y = h ? n : t,
|
|
1391
|
+
}, y = h ? n : t, D = w(y), F = v(y) ? y : zn(`assets/svg/${y}`), W = () => /* @__PURE__ */ p.jsx(
|
|
1392
1392
|
Jt,
|
|
1393
1393
|
{
|
|
1394
|
-
src:
|
|
1394
|
+
src: F,
|
|
1395
1395
|
onError: () => b(!0),
|
|
1396
1396
|
width: e || "1rem",
|
|
1397
1397
|
height: r || "1rem",
|
|
@@ -1425,7 +1425,7 @@ const Ko = (t) => {
|
|
|
1425
1425
|
)
|
|
1426
1426
|
);
|
|
1427
1427
|
return (() => {
|
|
1428
|
-
const E = g?.startsWith("https://") || g?.startsWith("http://") || g?.startsWith("#") || g?.startsWith("/"), A =
|
|
1428
|
+
const E = g?.startsWith("https://") || g?.startsWith("http://") || g?.startsWith("#") || g?.startsWith("/"), A = D ? W() : k(), I = u ? /* @__PURE__ */ p.jsx("span", { title: u, children: A }) : A;
|
|
1429
1429
|
return E ? /* @__PURE__ */ p.jsx("a", { href: g, children: I }) : I;
|
|
1430
1430
|
})();
|
|
1431
1431
|
}
|
|
@@ -1454,7 +1454,7 @@ function $e({
|
|
|
1454
1454
|
}
|
|
1455
1455
|
const b = window.scrollY, w = window.scrollX, v = window.innerWidth, _ = window.innerHeight;
|
|
1456
1456
|
let x = c + b, T = d + w, y = t;
|
|
1457
|
-
const
|
|
1457
|
+
const D = {
|
|
1458
1458
|
top: c - g < 0,
|
|
1459
1459
|
bottom: c + f + g > _,
|
|
1460
1460
|
left: d - h < 0,
|
|
@@ -1462,16 +1462,16 @@ function $e({
|
|
|
1462
1462
|
};
|
|
1463
1463
|
switch (t) {
|
|
1464
1464
|
case "top":
|
|
1465
|
-
|
|
1465
|
+
D.top && !D.bottom && (y = "bottom");
|
|
1466
1466
|
break;
|
|
1467
1467
|
case "bottom":
|
|
1468
|
-
|
|
1468
|
+
D.bottom && !D.top && (y = "top");
|
|
1469
1469
|
break;
|
|
1470
1470
|
case "left":
|
|
1471
|
-
|
|
1471
|
+
D.left && !D.right && (y = "right");
|
|
1472
1472
|
break;
|
|
1473
1473
|
case "right":
|
|
1474
|
-
|
|
1474
|
+
D.right && !D.left && (y = "left");
|
|
1475
1475
|
break;
|
|
1476
1476
|
}
|
|
1477
1477
|
switch (y) {
|
|
@@ -1967,9 +1967,9 @@ const sn = (t) => {
|
|
|
1967
1967
|
error: x,
|
|
1968
1968
|
appearance: T = "base",
|
|
1969
1969
|
isClearable: y = !1,
|
|
1970
|
-
fullWidth:
|
|
1970
|
+
fullWidth: D = !1,
|
|
1971
1971
|
_dataComponent: O = "textfield",
|
|
1972
|
-
min:
|
|
1972
|
+
min: F,
|
|
1973
1973
|
max: W,
|
|
1974
1974
|
step: k,
|
|
1975
1975
|
inputMode: C = "text",
|
|
@@ -1985,26 +1985,26 @@ const sn = (t) => {
|
|
|
1985
1985
|
onClick: S,
|
|
1986
1986
|
...L
|
|
1987
1987
|
}) => {
|
|
1988
|
-
const
|
|
1989
|
-
N?.(
|
|
1988
|
+
const R = ke(), $ = `${R}-helper`, P = x ? "danger" : c, G = _ || !!x, q = (M) => {
|
|
1989
|
+
N?.(M.target.value);
|
|
1990
1990
|
}, Y = () => {
|
|
1991
1991
|
r && r != "" && N?.("");
|
|
1992
1992
|
}, Q = {
|
|
1993
|
-
wrapper: `${ve["smp-textfield-wrapper"]} ${
|
|
1993
|
+
wrapper: `${ve["smp-textfield-wrapper"]} ${D ? ve["smp-textfield-fullWidth"] : ""}`,
|
|
1994
1994
|
container: `${ve["smp-textfield"]} ${e ? ve["smp-textfield-disabled"] : ""} ${o ? ve["smp-textfield-placeholder"] : ""} ${l ? ve[`smp-textfield-${l}`] : ""} ${P ? ve[`smp-textfield-${P}`] : ""} ${T ? ve[`smp-textfield-${T}`] : ""} ${a ? "" : ve["smp-textfield-readOnly"]} ${u ? ve["smp-textfield-top-right-indicator"] : ""}`,
|
|
1995
1995
|
input: `${ve["smp-textfield-input"]}`,
|
|
1996
1996
|
decodeWrapper: ` ${n ? ve["smp-textfield-decode-wrapper"] : ""}`
|
|
1997
1997
|
};
|
|
1998
1998
|
if (d && (d !== "notSelectable" || a)) {
|
|
1999
|
-
const
|
|
2000
|
-
|
|
1999
|
+
const M = ve[`smp-textfield-variant-${d}`];
|
|
2000
|
+
M && (Q.container += ` ${M}`);
|
|
2001
2001
|
}
|
|
2002
2002
|
const K = E ? { "--smp-textField-width-base": E, ...U } : U, ae = /* @__PURE__ */ p.jsxs("div", { className: Q.container, ref: g, style: K, children: [
|
|
2003
2003
|
s && /* @__PURE__ */ p.jsx(le, { icon: s, disabled: e }),
|
|
2004
2004
|
/* @__PURE__ */ p.jsx(
|
|
2005
2005
|
"input",
|
|
2006
2006
|
{
|
|
2007
|
-
id:
|
|
2007
|
+
id: R,
|
|
2008
2008
|
name: t,
|
|
2009
2009
|
type: b,
|
|
2010
2010
|
value: r,
|
|
@@ -2018,7 +2018,7 @@ const sn = (t) => {
|
|
|
2018
2018
|
"aria-label": w,
|
|
2019
2019
|
ref: h,
|
|
2020
2020
|
"aria-describedby": G ? $ : void 0,
|
|
2021
|
-
min:
|
|
2021
|
+
min: F,
|
|
2022
2022
|
max: W,
|
|
2023
2023
|
step: k,
|
|
2024
2024
|
inputMode: C,
|
|
@@ -2055,7 +2055,7 @@ const sn = (t) => {
|
|
|
2055
2055
|
{
|
|
2056
2056
|
label: v,
|
|
2057
2057
|
disabled: e,
|
|
2058
|
-
htmlFor:
|
|
2058
|
+
htmlFor: R,
|
|
2059
2059
|
helper: L.helper
|
|
2060
2060
|
}
|
|
2061
2061
|
),
|
|
@@ -2175,9 +2175,9 @@ const os = 10, Zt = ({
|
|
|
2175
2175
|
o !== null ? o : -1
|
|
2176
2176
|
), [v, _] = H(i || 200), x = ue(null), T = s !== void 0 ? s : e.length > os, y = f ? e.filter(
|
|
2177
2177
|
(V) => V.decode?.toLowerCase()?.includes(f.toLowerCase())
|
|
2178
|
-
) : e,
|
|
2178
|
+
) : e, D = (V) => {
|
|
2179
2179
|
g(V);
|
|
2180
|
-
}, { virtualItems: O, containerProps:
|
|
2180
|
+
}, { virtualItems: O, containerProps: F, innerProps: W, scrollToIndex: k } = on({
|
|
2181
2181
|
items: y,
|
|
2182
2182
|
itemHeight: h,
|
|
2183
2183
|
containerHeight: 200,
|
|
@@ -2228,7 +2228,7 @@ const os = 10, Zt = ({
|
|
|
2228
2228
|
bindValue: f,
|
|
2229
2229
|
placeholder: "Search...",
|
|
2230
2230
|
fullWidth: !0,
|
|
2231
|
-
onChange:
|
|
2231
|
+
onChange: D,
|
|
2232
2232
|
onKeyDown: E,
|
|
2233
2233
|
inputRef: x
|
|
2234
2234
|
}
|
|
@@ -2236,7 +2236,7 @@ const os = 10, Zt = ({
|
|
|
2236
2236
|
/* @__PURE__ */ p.jsx(
|
|
2237
2237
|
"div",
|
|
2238
2238
|
{
|
|
2239
|
-
...
|
|
2239
|
+
...F,
|
|
2240
2240
|
className: I.container,
|
|
2241
2241
|
tabIndex: 0,
|
|
2242
2242
|
role: "listbox",
|
|
@@ -2316,8 +2316,8 @@ const os = 10, Zt = ({
|
|
|
2316
2316
|
/* @__PURE__ */ p.jsxs(
|
|
2317
2317
|
"div",
|
|
2318
2318
|
{
|
|
2319
|
-
ref: (
|
|
2320
|
-
|
|
2319
|
+
ref: (D) => {
|
|
2320
|
+
D && o.current.set(x, D);
|
|
2321
2321
|
},
|
|
2322
2322
|
className: g.node,
|
|
2323
2323
|
tabIndex: 0,
|
|
@@ -2325,7 +2325,7 @@ const os = 10, Zt = ({
|
|
|
2325
2325
|
"data-nodeid": x,
|
|
2326
2326
|
"smp-id": `toolbar-item-${_}`,
|
|
2327
2327
|
"aria-expanded": v?.isExpanded,
|
|
2328
|
-
onKeyDown: (
|
|
2328
|
+
onKeyDown: (D) => u(D, v, x),
|
|
2329
2329
|
onMouseEnter: () => l(v, x),
|
|
2330
2330
|
onMouseLeave: () => {
|
|
2331
2331
|
c(x);
|
|
@@ -2376,11 +2376,11 @@ const os = 10, Zt = ({
|
|
|
2376
2376
|
"data-node-id": x,
|
|
2377
2377
|
displayMode: Je.DESC_ONLY,
|
|
2378
2378
|
selectedIndex: v.options?.findIndex(
|
|
2379
|
-
(
|
|
2379
|
+
(D) => D.obj?.k === v.obj?.k
|
|
2380
2380
|
),
|
|
2381
2381
|
activeIndex: [v.obj.k],
|
|
2382
|
-
onClick: (
|
|
2383
|
-
d(v, x,
|
|
2382
|
+
onClick: (D) => {
|
|
2383
|
+
d(v, x, D);
|
|
2384
2384
|
}
|
|
2385
2385
|
},
|
|
2386
2386
|
x
|
|
@@ -2447,10 +2447,10 @@ const os = 10, Zt = ({
|
|
|
2447
2447
|
if (nt([_], d, () => u(!1)), re(() => {
|
|
2448
2448
|
const k = w.current;
|
|
2449
2449
|
if (!k) return;
|
|
2450
|
-
|
|
2451
|
-
const C = () =>
|
|
2452
|
-
return k.addEventListener("scroll", C), window.addEventListener("resize",
|
|
2453
|
-
k.removeEventListener("scroll", C), window.removeEventListener("resize",
|
|
2450
|
+
D();
|
|
2451
|
+
const C = () => D();
|
|
2452
|
+
return k.addEventListener("scroll", C), window.addEventListener("resize", D), () => {
|
|
2453
|
+
k.removeEventListener("scroll", C), window.removeEventListener("resize", D);
|
|
2454
2454
|
};
|
|
2455
2455
|
}, []), re(() => {
|
|
2456
2456
|
n !== void 0 && c(n);
|
|
@@ -2464,14 +2464,14 @@ const os = 10, Zt = ({
|
|
|
2464
2464
|
scrollButtonRight: `${Ee["smp-tabbar-scroll-button"]} ${Ee["smp-tabbar-scroll-buttonRight"]}`,
|
|
2465
2465
|
scrollButtonLeft: `${Ee["smp-tabbar-scroll-button"]} ${Ee["smp-tabbar-scroll-buttonLeft"]}`,
|
|
2466
2466
|
active: Ee["smp-active"]
|
|
2467
|
-
}, T = 100, y = 2,
|
|
2467
|
+
}, T = 100, y = 2, D = () => {
|
|
2468
2468
|
const k = w.current;
|
|
2469
2469
|
k && (g(k.scrollLeft > 0), b(
|
|
2470
2470
|
k.scrollLeft + k.clientWidth < k.scrollWidth - y
|
|
2471
2471
|
));
|
|
2472
2472
|
}, O = () => {
|
|
2473
2473
|
w.current?.scrollBy({ left: -T, behavior: "smooth" });
|
|
2474
|
-
},
|
|
2474
|
+
}, F = () => {
|
|
2475
2475
|
w.current?.scrollBy({ left: T, behavior: "smooth" });
|
|
2476
2476
|
}, W = (k) => {
|
|
2477
2477
|
i && i(k), u(!1);
|
|
@@ -2546,7 +2546,7 @@ const os = 10, Zt = ({
|
|
|
2546
2546
|
{
|
|
2547
2547
|
bindValue: "",
|
|
2548
2548
|
optionalDisplayValue: ">",
|
|
2549
|
-
onClick:
|
|
2549
|
+
onClick: F,
|
|
2550
2550
|
variant: "base",
|
|
2551
2551
|
sizing: e
|
|
2552
2552
|
}
|
|
@@ -3175,9 +3175,9 @@ class St extends Ct {
|
|
|
3175
3175
|
} : i;
|
|
3176
3176
|
const g = this.resolve(e, s);
|
|
3177
3177
|
let h = g?.res;
|
|
3178
|
-
const b = g?.usedKey || i, w = g?.exactUsedKey || i, v = ["[object Number]", "[object Function]", "[object RegExp]"], _ = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, x = !this.i18nFormat || this.i18nFormat.handleAsObject, T = s.count !== void 0 && !Z(s.count), y = St.hasDefaultValue(s),
|
|
3178
|
+
const b = g?.usedKey || i, w = g?.exactUsedKey || i, v = ["[object Number]", "[object Function]", "[object RegExp]"], _ = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, x = !this.i18nFormat || this.i18nFormat.handleAsObject, T = s.count !== void 0 && !Z(s.count), y = St.hasDefaultValue(s), D = T ? this.pluralResolver.getSuffix(u, s.count, s) : "", O = s.ordinal && T ? this.pluralResolver.getSuffix(u, s.count, {
|
|
3179
3179
|
ordinal: !1
|
|
3180
|
-
}) : "",
|
|
3180
|
+
}) : "", F = T && !s.ordinal && s.count === 0, W = F && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${D}`] || s[`defaultValue${O}`] || s.defaultValue;
|
|
3181
3181
|
let k = h;
|
|
3182
3182
|
x && !h && y && (k = W);
|
|
3183
3183
|
const C = Pr(k), E = Object.prototype.toString.apply(k);
|
|
@@ -3228,14 +3228,14 @@ class St extends Ct {
|
|
|
3228
3228
|
for (let S = 0; S < j.length; S++)
|
|
3229
3229
|
N.push(j[S]);
|
|
3230
3230
|
else this.options.saveMissingTo === "all" ? N = this.languageUtils.toResolveHierarchy(s.lng || this.language) : N.push(s.lng || this.language);
|
|
3231
|
-
const m = (S, L,
|
|
3232
|
-
const $ = y &&
|
|
3231
|
+
const m = (S, L, R) => {
|
|
3232
|
+
const $ = y && R !== h ? R : U;
|
|
3233
3233
|
this.options.missingKeyHandler ? this.options.missingKeyHandler(S, c, L, $, X, s) : this.backendConnector?.saveMissing && this.backendConnector.saveMissing(S, c, L, $, X, s), this.emit("missingKey", S, c, L, h);
|
|
3234
3234
|
};
|
|
3235
3235
|
this.options.saveMissing && (this.options.saveMissingPlurals && T ? N.forEach((S) => {
|
|
3236
3236
|
const L = this.pluralResolver.getSuffixes(S, s);
|
|
3237
|
-
|
|
3238
|
-
m([S], i +
|
|
3237
|
+
F && s[`defaultValue${this.options.pluralSeparator}zero`] && L.indexOf(`${this.options.pluralSeparator}zero`) < 0 && L.push(`${this.options.pluralSeparator}zero`), L.forEach((R) => {
|
|
3238
|
+
m([S], i + R, s[`defaultValue${R}`] || W);
|
|
3239
3239
|
});
|
|
3240
3240
|
}) : m(N, i, W));
|
|
3241
3241
|
}
|
|
@@ -3303,10 +3303,10 @@ class St extends Ct {
|
|
|
3303
3303
|
else {
|
|
3304
3304
|
let T;
|
|
3305
3305
|
f && (T = this.pluralResolver.getSuffix(v, r.count, r));
|
|
3306
|
-
const y = `${this.options.pluralSeparator}zero`,
|
|
3307
|
-
if (f && (r.ordinal && T.indexOf(
|
|
3306
|
+
const y = `${this.options.pluralSeparator}zero`, D = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
3307
|
+
if (f && (r.ordinal && T.indexOf(D) === 0 && _.push(d + T.replace(D, this.options.pluralSeparator)), _.push(d + T), g && _.push(d + y)), h) {
|
|
3308
3308
|
const O = `${d}${this.options.contextSeparator}${r.context}`;
|
|
3309
|
-
_.push(O), f && (_.push(O + T), r.ordinal && T.indexOf(
|
|
3309
|
+
_.push(O), f && (_.push(O + T), r.ordinal && T.indexOf(D) === 0 && _.push(O + T.replace(D, this.options.pluralSeparator)), g && _.push(O + y));
|
|
3310
3310
|
}
|
|
3311
3311
|
}
|
|
3312
3312
|
let x;
|
|
@@ -4306,42 +4306,42 @@ const eo = (t) => t?.type === "SmeupDataTree", to = (t) => t?.type === "SmeupDat
|
|
|
4306
4306
|
_multiActiveIndex: f,
|
|
4307
4307
|
...g
|
|
4308
4308
|
}) => {
|
|
4309
|
-
const h = ue(null), [b, w] = H(t), [v, _] = H(e), { translate: x } = Re(), [T, y] = H(!1), [
|
|
4309
|
+
const h = ue(null), [b, w] = H(t), [v, _] = H(e), { translate: x } = Re(), [T, y] = H(!1), [D, O] = H(
|
|
4310
4310
|
r || []
|
|
4311
|
-
), [
|
|
4311
|
+
), [F, W] = H(0), [k, C] = H([t]), { anchorRef: E, targetRef: A, anchorWidth: I } = $e({
|
|
4312
4312
|
position: "bottom",
|
|
4313
4313
|
open: T
|
|
4314
4314
|
}), V = oe(() => {
|
|
4315
4315
|
y(!1), h?.current?.focus();
|
|
4316
4316
|
}, []);
|
|
4317
4317
|
nt([A], T, () => V());
|
|
4318
|
-
const U = sn(400), X = (
|
|
4319
|
-
|
|
4320
|
-
}, N = (
|
|
4318
|
+
const U = sn(400), X = (R) => {
|
|
4319
|
+
R.length >= o ? N(R) : V(), w(R), _(""), l || c?.(R, e);
|
|
4320
|
+
}, N = (R) => {
|
|
4321
4321
|
U(async () => {
|
|
4322
4322
|
if (i && d) {
|
|
4323
|
-
const $ = await d(i,
|
|
4323
|
+
const $ = await d(i, R), P = Ge($) || [];
|
|
4324
4324
|
O(P), W(P.length > 0 ? 0 : -1), y(!0);
|
|
4325
4325
|
}
|
|
4326
4326
|
});
|
|
4327
4327
|
}, j = () => {
|
|
4328
4328
|
T || u?.();
|
|
4329
|
-
}, m = (
|
|
4330
|
-
l ? (w(""), _("")) : (w(
|
|
4331
|
-
const $ =
|
|
4332
|
-
(P) => P.obj?.k ===
|
|
4329
|
+
}, m = (R) => {
|
|
4330
|
+
l ? (w(""), _("")) : (w(R.obj?.k), _(R.decode)), c?.(R.obj?.k, R.decode);
|
|
4331
|
+
const $ = D.findIndex(
|
|
4332
|
+
(P) => P.obj?.k === R.obj?.k
|
|
4333
4333
|
);
|
|
4334
|
-
W($), C([
|
|
4335
|
-
}, S = (
|
|
4336
|
-
|
|
4337
|
-
}, L = (
|
|
4338
|
-
if ((
|
|
4339
|
-
const $ =
|
|
4334
|
+
W($), C([R.obj?.k]), V();
|
|
4335
|
+
}, S = (R) => {
|
|
4336
|
+
R.key === "Escape" && (V(), W(-1));
|
|
4337
|
+
}, L = (R) => {
|
|
4338
|
+
if ((R.key === "ArrowDown" || R.key === "ArrowUp") && (R.preventDefault(), T)) {
|
|
4339
|
+
const $ = R.key === "ArrowDown" ? (F + 1) % D.length : (F - 1 + D.length) % D.length;
|
|
4340
4340
|
W($);
|
|
4341
4341
|
}
|
|
4342
|
-
switch (
|
|
4342
|
+
switch (R.key) {
|
|
4343
4343
|
case "Enter":
|
|
4344
|
-
|
|
4344
|
+
F >= 0 && F < D.length ? m(D[F]) : l && (c?.(b, ""), V(), w(""), _(""));
|
|
4345
4345
|
break;
|
|
4346
4346
|
case "Escape":
|
|
4347
4347
|
V(), W(-1);
|
|
@@ -4373,11 +4373,11 @@ const eo = (t) => t?.type === "SmeupDataTree", to = (t) => t?.type === "SmeupDat
|
|
|
4373
4373
|
T && /* @__PURE__ */ p.jsx(Ne, { children: /* @__PURE__ */ p.jsx(
|
|
4374
4374
|
Zt,
|
|
4375
4375
|
{
|
|
4376
|
-
options:
|
|
4376
|
+
options: D,
|
|
4377
4377
|
displayMode: n,
|
|
4378
4378
|
onClick: m,
|
|
4379
4379
|
ref: A,
|
|
4380
|
-
selectedIndex:
|
|
4380
|
+
selectedIndex: F,
|
|
4381
4381
|
activeIndex: f || k,
|
|
4382
4382
|
width: I,
|
|
4383
4383
|
showFilter: !1,
|
|
@@ -4586,14 +4586,14 @@ const Ht = ({
|
|
|
4586
4586
|
multiActiveIndex: l,
|
|
4587
4587
|
...c
|
|
4588
4588
|
}) => {
|
|
4589
|
-
const d = ue(null), [u, f] = H(!1), [g, h] = H(r), [b, w] = H(-1), [v, _] = H([t]), x = ke(), { anchorRef: T, targetRef: y, anchorWidth:
|
|
4589
|
+
const d = ue(null), [u, f] = H(!1), [g, h] = H(r), [b, w] = H(-1), [v, _] = H([t]), x = ke(), { anchorRef: T, targetRef: y, anchorWidth: D } = $e({
|
|
4590
4590
|
position: "bottom",
|
|
4591
4591
|
open: u
|
|
4592
4592
|
}), O = oe(() => {
|
|
4593
4593
|
f(!1), d?.current?.focus();
|
|
4594
4594
|
}, []);
|
|
4595
4595
|
nt([y, T], u, () => O()), nr(u, y);
|
|
4596
|
-
const
|
|
4596
|
+
const F = (E) => {
|
|
4597
4597
|
e?.(E.obj.k, E.decode);
|
|
4598
4598
|
const A = g.findIndex((I) => I.obj.k === E.obj.k);
|
|
4599
4599
|
w(A), _([E.obj.k]), O();
|
|
@@ -4644,8 +4644,8 @@ const Ht = ({
|
|
|
4644
4644
|
isOpen: u,
|
|
4645
4645
|
selectedIndex: b,
|
|
4646
4646
|
activeIndex: l || v,
|
|
4647
|
-
width:
|
|
4648
|
-
onClick:
|
|
4647
|
+
width: D,
|
|
4648
|
+
onClick: F,
|
|
4649
4649
|
onKeyDown: W,
|
|
4650
4650
|
floating: !0
|
|
4651
4651
|
}
|
|
@@ -4718,15 +4718,15 @@ function oo({
|
|
|
4718
4718
|
full: o(ge.SATURDAY)
|
|
4719
4719
|
}
|
|
4720
4720
|
], T = (j) => r.some((m) => {
|
|
4721
|
-
const S = m.start.getTime(), L = m.end.getTime(),
|
|
4722
|
-
return
|
|
4721
|
+
const S = m.start.getTime(), L = m.end.getTime(), R = j.getTime();
|
|
4722
|
+
return R >= S && R <= L;
|
|
4723
4723
|
}), y = (j) => {
|
|
4724
4724
|
T(j) || (c(j), b(j.getDate()), e && e(hs(j)));
|
|
4725
|
-
},
|
|
4725
|
+
}, D = () => {
|
|
4726
4726
|
d === 0 ? (u(11), g(f - 1)) : u(d - 1), b(1);
|
|
4727
4727
|
}, O = () => {
|
|
4728
4728
|
d === 11 ? (u(0), g(f + 1)) : u(d + 1), b(1);
|
|
4729
|
-
},
|
|
4729
|
+
}, F = (j, m) => new Date(j, m + 1, 0).getDate(), W = (j, m) => new Date(j, m, 1).getDay(), k = (j) => {
|
|
4730
4730
|
const m = I.findIndex(
|
|
4731
4731
|
(S) => S !== null && S.getDate() === j
|
|
4732
4732
|
);
|
|
@@ -4734,12 +4734,12 @@ function oo({
|
|
|
4734
4734
|
}, C = (j, m) => {
|
|
4735
4735
|
const S = I[m];
|
|
4736
4736
|
if (!S) return;
|
|
4737
|
-
const L =
|
|
4737
|
+
const L = F(f, d), R = S.getDate();
|
|
4738
4738
|
switch (j.key) {
|
|
4739
4739
|
case "ArrowRight":
|
|
4740
4740
|
j.preventDefault();
|
|
4741
4741
|
{
|
|
4742
|
-
let $ =
|
|
4742
|
+
let $ = R + 1, P = new Date(f, d, $);
|
|
4743
4743
|
if ($ > L) {
|
|
4744
4744
|
const G = d === 11 ? f + 1 : f, q = d === 11 ? 0 : d + 1;
|
|
4745
4745
|
$ = 1, P = new Date(G, q, $), O(), setTimeout(() => {
|
|
@@ -4755,10 +4755,10 @@ function oo({
|
|
|
4755
4755
|
case "ArrowLeft":
|
|
4756
4756
|
j.preventDefault();
|
|
4757
4757
|
{
|
|
4758
|
-
let $ =
|
|
4758
|
+
let $ = R - 1, P = new Date(f, d, $);
|
|
4759
4759
|
if ($ < 1) {
|
|
4760
|
-
const G = d === 0 ? f - 1 : f, q = d === 0 ? 11 : d - 1, Y =
|
|
4761
|
-
$ = Y, P = new Date(G, q, $),
|
|
4760
|
+
const G = d === 0 ? f - 1 : f, q = d === 0 ? 11 : d - 1, Y = F(G, q);
|
|
4761
|
+
$ = Y, P = new Date(G, q, $), D(), setTimeout(() => {
|
|
4762
4762
|
E(Y, "backward");
|
|
4763
4763
|
}, 0);
|
|
4764
4764
|
return;
|
|
@@ -4769,10 +4769,10 @@ function oo({
|
|
|
4769
4769
|
case "ArrowUp":
|
|
4770
4770
|
j.preventDefault();
|
|
4771
4771
|
{
|
|
4772
|
-
let $ =
|
|
4772
|
+
let $ = R - 7, P = new Date(f, d, $);
|
|
4773
4773
|
if ($ < 1) {
|
|
4774
4774
|
const G = d === 0 ? f - 1 : f, q = d === 0 ? 11 : d - 1;
|
|
4775
|
-
$ =
|
|
4775
|
+
$ = F(G, q) + $, P = new Date(G, q, $), D(), setTimeout(() => {
|
|
4776
4776
|
E($, "backward");
|
|
4777
4777
|
}, 0);
|
|
4778
4778
|
return;
|
|
@@ -4783,7 +4783,7 @@ function oo({
|
|
|
4783
4783
|
case "ArrowDown":
|
|
4784
4784
|
j.preventDefault();
|
|
4785
4785
|
{
|
|
4786
|
-
let $ =
|
|
4786
|
+
let $ = R + 7, P = new Date(f, d, $);
|
|
4787
4787
|
if ($ > L) {
|
|
4788
4788
|
const G = d === 11 ? f + 1 : f, q = d === 11 ? 0 : d + 1;
|
|
4789
4789
|
$ = $ - L, P = new Date(G, q, $), O(), setTimeout(() => {
|
|
@@ -4801,20 +4801,20 @@ function oo({
|
|
|
4801
4801
|
j.preventDefault(), E(L, "backward");
|
|
4802
4802
|
break;
|
|
4803
4803
|
case "PageUp":
|
|
4804
|
-
j.preventDefault(),
|
|
4805
|
-
const $ =
|
|
4804
|
+
j.preventDefault(), D(), setTimeout(() => {
|
|
4805
|
+
const $ = F(
|
|
4806
4806
|
d === 0 ? f - 1 : f,
|
|
4807
4807
|
d === 0 ? 11 : d - 1
|
|
4808
|
-
), P = Math.min(
|
|
4808
|
+
), P = Math.min(R, $);
|
|
4809
4809
|
E(P, "forward");
|
|
4810
4810
|
}, 0);
|
|
4811
4811
|
break;
|
|
4812
4812
|
case "PageDown":
|
|
4813
4813
|
j.preventDefault(), O(), setTimeout(() => {
|
|
4814
|
-
const $ =
|
|
4814
|
+
const $ = F(
|
|
4815
4815
|
d === 11 ? f + 1 : f,
|
|
4816
4816
|
d === 11 ? 0 : d + 1
|
|
4817
|
-
), P = Math.min(
|
|
4817
|
+
), P = Math.min(R, $);
|
|
4818
4818
|
E(P, "forward");
|
|
4819
4819
|
}, 0);
|
|
4820
4820
|
break;
|
|
@@ -4828,11 +4828,11 @@ function oo({
|
|
|
4828
4828
|
break;
|
|
4829
4829
|
}
|
|
4830
4830
|
}, E = (j, m) => {
|
|
4831
|
-
const S =
|
|
4831
|
+
const S = F(f, d);
|
|
4832
4832
|
if (m === "forward") {
|
|
4833
4833
|
for (let L = j; L <= S; L++) {
|
|
4834
|
-
const
|
|
4835
|
-
if (!T(
|
|
4834
|
+
const R = new Date(f, d, L);
|
|
4835
|
+
if (!T(R)) {
|
|
4836
4836
|
k(L);
|
|
4837
4837
|
return;
|
|
4838
4838
|
}
|
|
@@ -4848,18 +4848,18 @@ function oo({
|
|
|
4848
4848
|
return;
|
|
4849
4849
|
}
|
|
4850
4850
|
}
|
|
4851
|
-
const L = d === 0 ? f - 1 : f,
|
|
4852
|
-
|
|
4851
|
+
const L = d === 0 ? f - 1 : f, R = d === 0 ? 11 : d - 1, $ = F(L, R);
|
|
4852
|
+
D(), setTimeout(() => {
|
|
4853
4853
|
E($, "backward");
|
|
4854
4854
|
}, 0);
|
|
4855
4855
|
}
|
|
4856
4856
|
}, I = (() => {
|
|
4857
|
-
const j =
|
|
4857
|
+
const j = F(f, d), m = W(f, d), S = [];
|
|
4858
4858
|
for (let L = 0; L < m; L++)
|
|
4859
4859
|
S.push(null);
|
|
4860
4860
|
for (let L = 1; L <= j; L++) {
|
|
4861
|
-
const
|
|
4862
|
-
S.push(
|
|
4861
|
+
const R = new Date(f, d, L);
|
|
4862
|
+
S.push(R);
|
|
4863
4863
|
}
|
|
4864
4864
|
return S;
|
|
4865
4865
|
})(), V = [];
|
|
@@ -4913,7 +4913,7 @@ function oo({
|
|
|
4913
4913
|
/* @__PURE__ */ p.jsx(
|
|
4914
4914
|
me,
|
|
4915
4915
|
{
|
|
4916
|
-
onClick:
|
|
4916
|
+
onClick: D,
|
|
4917
4917
|
ariaLabel: o(qt.PREVIOUS_MONTH),
|
|
4918
4918
|
optionalDisplayValue: "<",
|
|
4919
4919
|
appearance: "ghost",
|
|
@@ -4962,7 +4962,7 @@ function oo({
|
|
|
4962
4962
|
j.value
|
|
4963
4963
|
)) }) }),
|
|
4964
4964
|
/* @__PURE__ */ p.jsx("tbody", { children: V.map((j, m) => /* @__PURE__ */ p.jsx("tr", { children: j.map((S, L) => {
|
|
4965
|
-
const
|
|
4965
|
+
const R = m * 7 + L;
|
|
4966
4966
|
if (S === null)
|
|
4967
4967
|
return /* @__PURE__ */ p.jsx(
|
|
4968
4968
|
"td",
|
|
@@ -4984,12 +4984,12 @@ function oo({
|
|
|
4984
4984
|
"aria-selected": P,
|
|
4985
4985
|
tabIndex: G ? 0 : -1,
|
|
4986
4986
|
onClick: () => y(S),
|
|
4987
|
-
onKeyDown: (Y) => C(Y,
|
|
4987
|
+
onKeyDown: (Y) => C(Y, R),
|
|
4988
4988
|
"aria-label": `${S.getDate()} ${_[S.getMonth()]} ${S.getFullYear()}`,
|
|
4989
4989
|
"data-selected": P,
|
|
4990
4990
|
"aria-disabled": q,
|
|
4991
4991
|
ref: (Y) => {
|
|
4992
|
-
v.current[
|
|
4992
|
+
v.current[R] = Y;
|
|
4993
4993
|
},
|
|
4994
4994
|
className: X.td(
|
|
4995
4995
|
$,
|
|
@@ -5078,12 +5078,12 @@ const sr = ({
|
|
|
5078
5078
|
}, [t, v, x]);
|
|
5079
5079
|
const T = () => c((k) => !k), y = () => {
|
|
5080
5080
|
O(f);
|
|
5081
|
-
},
|
|
5081
|
+
}, D = (k) => {
|
|
5082
5082
|
O(k), w();
|
|
5083
5083
|
}, O = (k) => {
|
|
5084
5084
|
const { isoDate: C, isValid: E } = x(k);
|
|
5085
5085
|
r && r(E && C || k);
|
|
5086
|
-
},
|
|
5086
|
+
}, F = (k) => {
|
|
5087
5087
|
g(k);
|
|
5088
5088
|
}, W = (k) => {
|
|
5089
5089
|
k.key === "Enter" && (k.preventDefault(), O(f));
|
|
@@ -5096,7 +5096,7 @@ const sr = ({
|
|
|
5096
5096
|
bindValue: f,
|
|
5097
5097
|
placeholder: e,
|
|
5098
5098
|
onBlur: y,
|
|
5099
|
-
onChange:
|
|
5099
|
+
onChange: F,
|
|
5100
5100
|
onKeyDown: W,
|
|
5101
5101
|
shapeIcon: "calendar",
|
|
5102
5102
|
onShapeIconClick: T,
|
|
@@ -5111,7 +5111,7 @@ const sr = ({
|
|
|
5111
5111
|
oo,
|
|
5112
5112
|
{
|
|
5113
5113
|
disabledDateRanges: n,
|
|
5114
|
-
onDateChange:
|
|
5114
|
+
onDateChange: D,
|
|
5115
5115
|
initialValue: er(d) && d || "",
|
|
5116
5116
|
targetRef: b
|
|
5117
5117
|
}
|
|
@@ -5295,30 +5295,30 @@ const Pe = (t, e, r) => ({
|
|
|
5295
5295
|
useGrouping: !0
|
|
5296
5296
|
}).format(A),
|
|
5297
5297
|
[f]
|
|
5298
|
-
), w = oe(Ks, [g, h]), v = oe(Gs, [t, e]), _ = o != null && o.toString().includes(".") ? o.toString().split(".")[1].length : 0, [x, T] = H(_), [y,
|
|
5298
|
+
), w = oe(Ks, [g, h]), v = oe(Gs, [t, e]), _ = o != null && o.toString().includes(".") ? o.toString().split(".")[1].length : 0, [x, T] = H(_), [y, D] = H(
|
|
5299
5299
|
o != null ? b(o, x) : ""
|
|
5300
5300
|
), O = ue(o ?? null);
|
|
5301
5301
|
re(() => {
|
|
5302
5302
|
if (o == null) {
|
|
5303
|
-
|
|
5303
|
+
D(""), O.current = null;
|
|
5304
5304
|
return;
|
|
5305
5305
|
}
|
|
5306
5306
|
const A = o.toString().includes(".") ? o.toString().split(".")[1].length : 0, I = A === 0 ? x : A;
|
|
5307
|
-
I !== x && T(I),
|
|
5307
|
+
I !== x && T(I), D(b(o, I)), O.current = o;
|
|
5308
5308
|
}, [o, b]);
|
|
5309
|
-
const
|
|
5309
|
+
const F = oe(
|
|
5310
5310
|
(A, I = !1) => {
|
|
5311
5311
|
if (A.trim() === "") {
|
|
5312
|
-
|
|
5312
|
+
D(""), O.current = null, a?.(void 0, ""), I && i?.(void 0);
|
|
5313
5313
|
return;
|
|
5314
5314
|
}
|
|
5315
5315
|
const V = w(A, g, h);
|
|
5316
5316
|
if (isNaN(V))
|
|
5317
5317
|
if (O.current != null) {
|
|
5318
5318
|
const U = b(O.current, x);
|
|
5319
|
-
|
|
5319
|
+
D(U);
|
|
5320
5320
|
} else
|
|
5321
|
-
|
|
5321
|
+
D("");
|
|
5322
5322
|
else {
|
|
5323
5323
|
const U = v(V, t, e), X = zs(
|
|
5324
5324
|
A,
|
|
@@ -5327,7 +5327,7 @@ const Pe = (t, e, r) => ({
|
|
|
5327
5327
|
);
|
|
5328
5328
|
T(X);
|
|
5329
5329
|
const N = b(U, X);
|
|
5330
|
-
|
|
5330
|
+
D(N), O.current = U, a?.(U, N), I && i?.(U);
|
|
5331
5331
|
}
|
|
5332
5332
|
},
|
|
5333
5333
|
[
|
|
@@ -5342,21 +5342,21 @@ const Pe = (t, e, r) => ({
|
|
|
5342
5342
|
i,
|
|
5343
5343
|
x
|
|
5344
5344
|
]
|
|
5345
|
-
), W = (A) =>
|
|
5345
|
+
), W = (A) => D(A), k = () => F(y), C = (A) => {
|
|
5346
5346
|
if (A.key === "Enter") {
|
|
5347
|
-
A.preventDefault(),
|
|
5347
|
+
A.preventDefault(), F(y, !0);
|
|
5348
5348
|
return;
|
|
5349
5349
|
}
|
|
5350
5350
|
if (A.key === "ArrowUp" || A.key === "ArrowDown") {
|
|
5351
5351
|
A.preventDefault();
|
|
5352
5352
|
const I = A.key === "ArrowUp" ? 1 : -1, V = O.current ?? 0, U = v(V + I * r, t, e);
|
|
5353
|
-
|
|
5353
|
+
F(b(U, x));
|
|
5354
5354
|
}
|
|
5355
5355
|
}, E = (A) => {
|
|
5356
5356
|
if (!A.currentTarget.contains(document.activeElement)) return;
|
|
5357
5357
|
A.preventDefault();
|
|
5358
5358
|
const I = A.deltaY < 0 ? 1 : -1, V = O.current ?? 0, U = v(V + I * r, t, e);
|
|
5359
|
-
|
|
5359
|
+
F(b(U, x));
|
|
5360
5360
|
};
|
|
5361
5361
|
return /* @__PURE__ */ p.jsx("div", { ref: u, "data-component": "input-number", onWheel: E, children: l ? /* @__PURE__ */ p.jsx(
|
|
5362
5362
|
sr,
|
|
@@ -5437,52 +5437,62 @@ const uo = ({
|
|
|
5437
5437
|
state: s,
|
|
5438
5438
|
appearance: o,
|
|
5439
5439
|
isEditable: a,
|
|
5440
|
-
|
|
5441
|
-
|
|
5442
|
-
|
|
5443
|
-
|
|
5444
|
-
|
|
5445
|
-
|
|
5446
|
-
|
|
5447
|
-
|
|
5448
|
-
|
|
5449
|
-
|
|
5440
|
+
inputRef: i,
|
|
5441
|
+
label: l,
|
|
5442
|
+
ariaLabel: c,
|
|
5443
|
+
helperText: d,
|
|
5444
|
+
style: u,
|
|
5445
|
+
error: f,
|
|
5446
|
+
onBlur: g,
|
|
5447
|
+
onKeyDown: h,
|
|
5448
|
+
rows: b = 10,
|
|
5449
|
+
cols: w = 35,
|
|
5450
|
+
...v
|
|
5450
5451
|
}) => {
|
|
5451
|
-
const
|
|
5452
|
-
r?.(
|
|
5453
|
-
},
|
|
5452
|
+
const _ = ke(), x = `${_}-helper`, T = f ? "danger" : s, y = d || !!f, D = (F) => {
|
|
5453
|
+
r?.(F.target.value);
|
|
5454
|
+
}, O = {
|
|
5454
5455
|
wrapper: "smp-textarea-wrapper",
|
|
5455
|
-
container: `smp-textarea ${t ? "smp-textarea-disabled" : ""} ${n ? "smp-textarea-placeholder" : ""} ${
|
|
5456
|
+
container: `smp-textarea ${t ? "smp-textarea-disabled" : ""} ${n ? "smp-textarea-placeholder" : ""} ${T ? `smp-textarea-${T}` : ""} ${o ? `smp-textarea-${o}` : ""} ${a ? "" : "smp-textarea-readOnly"}`
|
|
5456
5457
|
};
|
|
5457
|
-
return /* @__PURE__ */ p.jsxs("div", { className:
|
|
5458
|
-
|
|
5458
|
+
return /* @__PURE__ */ p.jsxs("div", { className: O.wrapper, "data-component": "textarea", children: [
|
|
5459
|
+
l && /* @__PURE__ */ p.jsx(
|
|
5460
|
+
Le,
|
|
5461
|
+
{
|
|
5462
|
+
htmlFor: _,
|
|
5463
|
+
label: l,
|
|
5464
|
+
disabled: t,
|
|
5465
|
+
helper: v.helper
|
|
5466
|
+
}
|
|
5467
|
+
),
|
|
5459
5468
|
/* @__PURE__ */ p.jsx(
|
|
5460
5469
|
"textarea",
|
|
5461
5470
|
{
|
|
5462
|
-
id:
|
|
5471
|
+
id: _,
|
|
5463
5472
|
value: e,
|
|
5464
5473
|
placeholder: n,
|
|
5465
|
-
onChange:
|
|
5466
|
-
onBlur:
|
|
5467
|
-
className:
|
|
5474
|
+
onChange: D,
|
|
5475
|
+
onBlur: g,
|
|
5476
|
+
className: O.container,
|
|
5468
5477
|
disabled: t,
|
|
5469
5478
|
readOnly: !a,
|
|
5470
|
-
onKeyDown:
|
|
5471
|
-
style:
|
|
5472
|
-
"aria-label":
|
|
5473
|
-
"aria-labelledby":
|
|
5474
|
-
"aria-describedby":
|
|
5475
|
-
rows:
|
|
5476
|
-
cols:
|
|
5479
|
+
onKeyDown: h,
|
|
5480
|
+
style: u,
|
|
5481
|
+
"aria-label": l ? void 0 : c,
|
|
5482
|
+
"aria-labelledby": l ? _ : void 0,
|
|
5483
|
+
"aria-describedby": y ? x : void 0,
|
|
5484
|
+
rows: b,
|
|
5485
|
+
cols: w,
|
|
5486
|
+
ref: i
|
|
5477
5487
|
}
|
|
5478
5488
|
),
|
|
5479
|
-
|
|
5489
|
+
y && /* @__PURE__ */ p.jsx(
|
|
5480
5490
|
Xt,
|
|
5481
5491
|
{
|
|
5482
|
-
id:
|
|
5483
|
-
helperText:
|
|
5492
|
+
id: x,
|
|
5493
|
+
helperText: f,
|
|
5484
5494
|
disabled: t,
|
|
5485
|
-
state:
|
|
5495
|
+
state: T
|
|
5486
5496
|
}
|
|
5487
5497
|
)
|
|
5488
5498
|
] });
|
|
@@ -5525,7 +5535,7 @@ const Ue = {
|
|
|
5525
5535
|
}, T = ke();
|
|
5526
5536
|
return /* @__PURE__ */ p.jsxs("div", { "smp-id": "radio-container", className: v.container, id: u, children: [
|
|
5527
5537
|
i && /* @__PURE__ */ p.jsx(Le, { label: i, disabled: t, htmlFor: u, helper: l.helper }),
|
|
5528
|
-
/* @__PURE__ */ p.jsx("div", { className: v.optionsContainer, style: w, children: c?.map((y,
|
|
5538
|
+
/* @__PURE__ */ p.jsx("div", { className: v.optionsContainer, style: w, children: c?.map((y, D) => /* @__PURE__ */ p.jsxs("label", { className: v.option, children: [
|
|
5529
5539
|
/* @__PURE__ */ p.jsx(
|
|
5530
5540
|
"input",
|
|
5531
5541
|
{
|
|
@@ -5549,7 +5559,7 @@ const Ue = {
|
|
|
5549
5559
|
)
|
|
5550
5560
|
}
|
|
5551
5561
|
)
|
|
5552
|
-
] },
|
|
5562
|
+
] }, D)) })
|
|
5553
5563
|
] });
|
|
5554
5564
|
}, po = ({
|
|
5555
5565
|
value: t,
|
|
@@ -5626,11 +5636,11 @@ const Ue = {
|
|
|
5626
5636
|
i(!1), o?.current?.focus();
|
|
5627
5637
|
}, []);
|
|
5628
5638
|
nt([g, f], a, () => i(!1)), nr(a, g), re(() => {
|
|
5629
|
-
const y = t || "",
|
|
5630
|
-
c(y), u(
|
|
5639
|
+
const y = t || "", D = Hr(y) ? y : t || "";
|
|
5640
|
+
c(y), u(D);
|
|
5631
5641
|
}, [t]), re(() => {
|
|
5632
|
-
const y = (
|
|
5633
|
-
|
|
5642
|
+
const y = (D) => {
|
|
5643
|
+
D.key === "Escape" && i(!1);
|
|
5634
5644
|
};
|
|
5635
5645
|
return a && document.addEventListener("keydown", y), () => {
|
|
5636
5646
|
document.removeEventListener("keydown", y);
|
|
@@ -5640,9 +5650,9 @@ const Ue = {
|
|
|
5640
5650
|
n && i((y) => !y);
|
|
5641
5651
|
}, w = (y) => {
|
|
5642
5652
|
u(y);
|
|
5643
|
-
}, v = (y,
|
|
5644
|
-
const
|
|
5645
|
-
c(
|
|
5653
|
+
}, v = (y, D, O) => {
|
|
5654
|
+
const F = mo(y, D, O);
|
|
5655
|
+
c(F), u(F), r?.(F), h();
|
|
5646
5656
|
}, _ = () => {
|
|
5647
5657
|
T(d);
|
|
5648
5658
|
}, x = (y) => {
|
|
@@ -5841,14 +5851,14 @@ const Ce = {
|
|
|
5841
5851
|
icon: f ? "arrow_drop_right" : "arrow_drop_down",
|
|
5842
5852
|
width: 16
|
|
5843
5853
|
}
|
|
5844
|
-
) }),
|
|
5854
|
+
) }), D = (C, E) => /* @__PURE__ */ p.jsx("span", { className: x.toggle, children: /* @__PURE__ */ p.jsx(le, { icon: C, placeholderIcon: E, width: 16 }) }), O = () => /* @__PURE__ */ p.jsx(
|
|
5845
5855
|
"span",
|
|
5846
5856
|
{
|
|
5847
5857
|
className: x.indent,
|
|
5848
5858
|
style: { width: `${v}px` },
|
|
5849
5859
|
"aria-hidden": "true"
|
|
5850
5860
|
}
|
|
5851
|
-
),
|
|
5861
|
+
), F = () => {
|
|
5852
5862
|
if (l)
|
|
5853
5863
|
return /* @__PURE__ */ p.jsx(
|
|
5854
5864
|
tr,
|
|
@@ -5885,7 +5895,7 @@ const Ce = {
|
|
|
5885
5895
|
minWidth: 40,
|
|
5886
5896
|
justifyContent: "center"
|
|
5887
5897
|
},
|
|
5888
|
-
children:
|
|
5898
|
+
children: F()
|
|
5889
5899
|
}
|
|
5890
5900
|
),
|
|
5891
5901
|
We(t) && /* @__PURE__ */ p.jsxs(
|
|
@@ -5899,7 +5909,7 @@ const Ce = {
|
|
|
5899
5909
|
children: [
|
|
5900
5910
|
O(),
|
|
5901
5911
|
y(),
|
|
5902
|
-
t.icon &&
|
|
5912
|
+
t.icon && D(t.icon, t.placeholderIcon),
|
|
5903
5913
|
/* @__PURE__ */ p.jsx("span", { className: x.nodeLabel, children: C })
|
|
5904
5914
|
]
|
|
5905
5915
|
}
|
|
@@ -5997,7 +6007,7 @@ const Ce = {
|
|
|
5997
6007
|
onContextMenu: x,
|
|
5998
6008
|
isEditable: T,
|
|
5999
6009
|
dSep: y = ".",
|
|
6000
|
-
value:
|
|
6010
|
+
value: D
|
|
6001
6011
|
}) => {
|
|
6002
6012
|
const O = {
|
|
6003
6013
|
obj: {
|
|
@@ -6010,7 +6020,7 @@ const Ce = {
|
|
|
6010
6020
|
fun: a,
|
|
6011
6021
|
data: s,
|
|
6012
6022
|
style: g
|
|
6013
|
-
},
|
|
6023
|
+
}, F = () => ls(O.obj) ? "INR" : Rr(O.obj) ? "CAL" : r, W = O.data && O.data.size && O.data.size >= 256 && (F() === "ITX" || !F()) ? "MEM" : F(), k = e || D, C = {
|
|
6014
6024
|
id: t,
|
|
6015
6025
|
onBlur: v,
|
|
6016
6026
|
onOptionsRequest: _,
|
|
@@ -6310,140 +6320,6 @@ const Ce = {
|
|
|
6310
6320
|
t && o(a(t));
|
|
6311
6321
|
}, [t, a]), !t?.rows?.length || !t.columns?.length ? null : s && /* @__PURE__ */ p.jsx("header", { className: "smp-appbar", "aria-label": "App Bar", children: /* @__PURE__ */ p.jsx(bt, { layout: t.rows[0].layout, children: Object.values(s).map((i) => /* @__PURE__ */ p.jsx(Fe, { ...i })) }) });
|
|
6312
6322
|
}, Xo = ({
|
|
6313
|
-
data: t,
|
|
6314
|
-
logo: e,
|
|
6315
|
-
open: r,
|
|
6316
|
-
minifiedOnClose: n = !0,
|
|
6317
|
-
customHeight: s = "100vh",
|
|
6318
|
-
onClick: o,
|
|
6319
|
-
onEnter: a,
|
|
6320
|
-
onClose: i,
|
|
6321
|
-
loadOptions: l,
|
|
6322
|
-
onContextMenu: c
|
|
6323
|
-
}) => {
|
|
6324
|
-
const [d, u] = H(), [f, g] = H(r ?? !0), h = ue(null), b = s.trim() ? s : "100vh", w = oe(
|
|
6325
|
-
(T) => {
|
|
6326
|
-
if (!T?.rows?.length || !T?.columns?.length)
|
|
6327
|
-
return {};
|
|
6328
|
-
const y = T.rows[0];
|
|
6329
|
-
return T.columns.filter((R) => R.visible ?? !0).reduce((R, O) => {
|
|
6330
|
-
const M = y.cells[O.name];
|
|
6331
|
-
if (!M || !f && de(n) && M.shape !== te.BUTTON && M.shape !== te.BUTTON_LIST)
|
|
6332
|
-
return R;
|
|
6333
|
-
const W = {
|
|
6334
|
-
...M,
|
|
6335
|
-
id: O.name,
|
|
6336
|
-
onOptionsRequest: l,
|
|
6337
|
-
onChange: (k) => {
|
|
6338
|
-
u((C) => {
|
|
6339
|
-
const E = { ...C };
|
|
6340
|
-
return E?.[O.name] && (E[O.name].obj.k = k.obj.k), E;
|
|
6341
|
-
});
|
|
6342
|
-
},
|
|
6343
|
-
onClick: (k) => {
|
|
6344
|
-
k.fun && o && o(k);
|
|
6345
|
-
},
|
|
6346
|
-
onEnter: (k) => {
|
|
6347
|
-
a && a(k);
|
|
6348
|
-
},
|
|
6349
|
-
onContextMenu: (k, C) => {
|
|
6350
|
-
c && c(k, C);
|
|
6351
|
-
}
|
|
6352
|
-
};
|
|
6353
|
-
return !f && de(n) && (W.data = {
|
|
6354
|
-
...W.data,
|
|
6355
|
-
showText: !1,
|
|
6356
|
-
justify: "center",
|
|
6357
|
-
squared: !0
|
|
6358
|
-
}), {
|
|
6359
|
-
...R,
|
|
6360
|
-
[O.name]: W
|
|
6361
|
-
};
|
|
6362
|
-
}, {});
|
|
6363
|
-
},
|
|
6364
|
-
[f, n, o, a, l, c]
|
|
6365
|
-
), v = oe(() => {
|
|
6366
|
-
i?.();
|
|
6367
|
-
}, [i]), _ = () => {
|
|
6368
|
-
de(n) ? g((T) => !T) : (g(!1), i?.());
|
|
6369
|
-
};
|
|
6370
|
-
if (re(() => {
|
|
6371
|
-
u(w(t));
|
|
6372
|
-
}, [t]), re(() => {
|
|
6373
|
-
if (!h.current)
|
|
6374
|
-
return;
|
|
6375
|
-
if (!de(n)) {
|
|
6376
|
-
u(w(t));
|
|
6377
|
-
return;
|
|
6378
|
-
}
|
|
6379
|
-
const T = getComputedStyle(h.current).getPropertyValue(
|
|
6380
|
-
"--smp-drawer-slide-transition"
|
|
6381
|
-
);
|
|
6382
|
-
let y = Number(T);
|
|
6383
|
-
T.endsWith("ms") ? y = parseFloat(T) : T.endsWith("s") && (y = parseFloat(T) * 1e3), setTimeout(() => {
|
|
6384
|
-
u(w(t));
|
|
6385
|
-
}, y / 2);
|
|
6386
|
-
}, [f, n]), re(() => {
|
|
6387
|
-
r !== void 0 && !de(n) && g(r);
|
|
6388
|
-
}, [n, r]), !t?.rows?.length || !t.columns?.length)
|
|
6389
|
-
return null;
|
|
6390
|
-
const x = {
|
|
6391
|
-
drawer: `smp-drawer ${de(n) ? "smp-drawer-minified" : "smp-drawer-fixed"} ${f ? "smp-drawer-open" : ""} ${!de(n) && !f ? "smp-drawer-no-border" : ""}`,
|
|
6392
|
-
container: "smp-drawer-container",
|
|
6393
|
-
containerHeader: "smp-drawer-container-header",
|
|
6394
|
-
containerIcon: `${f ? "" : "smp-drawer-container-icon-close"} smp-drawer-container-icon`,
|
|
6395
|
-
containerLayout: "smp-drawer-container-layout",
|
|
6396
|
-
containerLogo: "smp-drawer-container-logo",
|
|
6397
|
-
backdrop: `smp-drawer-backdrop ${f ? "smp-drawer-backdrop-open" : ""}`
|
|
6398
|
-
};
|
|
6399
|
-
return d && /* @__PURE__ */ p.jsxs(p.Fragment, { children: [
|
|
6400
|
-
!de(n) && /* @__PURE__ */ p.jsx(
|
|
6401
|
-
"div",
|
|
6402
|
-
{
|
|
6403
|
-
"aria-hidden": "true",
|
|
6404
|
-
"aria-label": "drawer-backdrop",
|
|
6405
|
-
className: x.backdrop,
|
|
6406
|
-
onClick: v
|
|
6407
|
-
}
|
|
6408
|
-
),
|
|
6409
|
-
/* @__PURE__ */ p.jsx(
|
|
6410
|
-
"aside",
|
|
6411
|
-
{
|
|
6412
|
-
ref: h,
|
|
6413
|
-
className: x.drawer,
|
|
6414
|
-
style: { height: b },
|
|
6415
|
-
"aria-label": "Drawer",
|
|
6416
|
-
"smp-id": "drawer",
|
|
6417
|
-
children: /* @__PURE__ */ p.jsxs("div", { className: x.container, children: [
|
|
6418
|
-
/* @__PURE__ */ p.jsxs("div", { className: x.containerHeader, children: [
|
|
6419
|
-
e && /* @__PURE__ */ p.jsx("div", { className: x.containerLogo, children: /* @__PURE__ */ p.jsx(
|
|
6420
|
-
le,
|
|
6421
|
-
{
|
|
6422
|
-
icon: e,
|
|
6423
|
-
title: "drawer_logo",
|
|
6424
|
-
width: "100%",
|
|
6425
|
-
height: 24
|
|
6426
|
-
}
|
|
6427
|
-
) }),
|
|
6428
|
-
/* @__PURE__ */ p.jsx("div", { className: x.containerIcon, children: /* @__PURE__ */ p.jsx(
|
|
6429
|
-
le,
|
|
6430
|
-
{
|
|
6431
|
-
icon: de(n) ? "menu_close" : "close",
|
|
6432
|
-
title: "drawer_icon",
|
|
6433
|
-
rotated: !f,
|
|
6434
|
-
isInteractable: !0,
|
|
6435
|
-
onClick: _,
|
|
6436
|
-
width: 20,
|
|
6437
|
-
height: 20
|
|
6438
|
-
}
|
|
6439
|
-
) })
|
|
6440
|
-
] }),
|
|
6441
|
-
/* @__PURE__ */ p.jsx("div", { className: x.containerLayout, children: /* @__PURE__ */ p.jsx(bt, { layout: t.rows[0].layout, children: Object.values(d).map((T) => /* @__PURE__ */ p.jsx(Fe, { ...T })) }) })
|
|
6442
|
-
] })
|
|
6443
|
-
}
|
|
6444
|
-
)
|
|
6445
|
-
] });
|
|
6446
|
-
}, Qo = ({
|
|
6447
6323
|
ColumnsNumber: t = 1,
|
|
6448
6324
|
data: e = {},
|
|
6449
6325
|
ForceText: r,
|
|
@@ -6465,7 +6341,7 @@ const Ce = {
|
|
|
6465
6341
|
SelectLayout: _ = "1",
|
|
6466
6342
|
onClick: x
|
|
6467
6343
|
}) => {
|
|
6468
|
-
const T = "N/A", y = e?.columns || [],
|
|
6344
|
+
const T = "N/A", y = e?.columns || [], D = e?.rows || [], O = D.length > 0, F = "--smp-dashList-color", W = "smp-layout", k = "descr", C = "icon", E = "um", A = "value", I = a || "1em", V = "18px", U = "--smp-dashList-columns", X = "--smp-dashList-fontSize", N = {
|
|
6469
6345
|
dash: (z = "1") => {
|
|
6470
6346
|
const ee = m(z), B = ee, J = S(ee, k), ce = S(ee, C), he = S(ee, E), ie = S(ee, A);
|
|
6471
6347
|
return {
|
|
@@ -6478,7 +6354,7 @@ const Ce = {
|
|
|
6478
6354
|
},
|
|
6479
6355
|
dashList: `smp-dash-list ${de(o) ? "smp-dash-list-fill-space" : ""}
|
|
6480
6356
|
${de(i) ? "smp-dash-list-horizontal" : ""}`
|
|
6481
|
-
}, { format: j } = Re(), m = (z) => `${W}-${z}`, S = (z, ee) => `${z}__${ee}`, L = (z) => `${
|
|
6357
|
+
}, { format: j } = Re(), m = (z) => `${W}-${z}`, S = (z, ee) => `${z}__${ee}`, L = (z) => `${F}-${z}`, R = (z) => {
|
|
6482
6358
|
const ee = /R(\d{1,3})G(\d{1,3})B(\d{1,3})/;
|
|
6483
6359
|
if (ee.test(z)) {
|
|
6484
6360
|
const J = z.match(ee) || [];
|
|
@@ -6531,9 +6407,9 @@ const Ce = {
|
|
|
6531
6407
|
};
|
|
6532
6408
|
})(_), ae = (z) => {
|
|
6533
6409
|
const { descr: ee, icon: B, um: J, value: ce } = G(z), he = {
|
|
6534
|
-
[L(k)]:
|
|
6535
|
-
[L(E)]:
|
|
6536
|
-
[L(A)]:
|
|
6410
|
+
[L(k)]: R(s),
|
|
6411
|
+
[L(E)]: R(h),
|
|
6412
|
+
[L(A)]: R(v)
|
|
6537
6413
|
}, ie = [], we = $(ce);
|
|
6538
6414
|
switch (_) {
|
|
6539
6415
|
case "2":
|
|
@@ -6560,11 +6436,11 @@ const Ce = {
|
|
|
6560
6436
|
},
|
|
6561
6437
|
z.rowId
|
|
6562
6438
|
);
|
|
6563
|
-
},
|
|
6439
|
+
}, M = {
|
|
6564
6440
|
[U]: String(t),
|
|
6565
6441
|
[X]: I
|
|
6566
6442
|
};
|
|
6567
|
-
return /* @__PURE__ */ p.jsx("div", { className: N.dashList, style:
|
|
6443
|
+
return /* @__PURE__ */ p.jsx("div", { className: N.dashList, style: M, children: O ? D.map((z) => ae(z)) : T });
|
|
6568
6444
|
}, hn = {
|
|
6569
6445
|
"smp-table": "_smp-table_v715o_1"
|
|
6570
6446
|
};
|
|
@@ -7383,9 +7259,9 @@ const Ye = {
|
|
|
7383
7259
|
onGroupDrop: x,
|
|
7384
7260
|
onGroupDragOver: T,
|
|
7385
7261
|
onMouseDown: y,
|
|
7386
|
-
onToggleAllRows:
|
|
7262
|
+
onToggleAllRows: D,
|
|
7387
7263
|
onSort: O,
|
|
7388
|
-
onDragStart:
|
|
7264
|
+
onDragStart: F,
|
|
7389
7265
|
onDragOver: W,
|
|
7390
7266
|
onDrop: k
|
|
7391
7267
|
}) => {
|
|
@@ -7465,7 +7341,7 @@ const Ye = {
|
|
|
7465
7341
|
tr,
|
|
7466
7342
|
{
|
|
7467
7343
|
bindValue: u,
|
|
7468
|
-
onChange:
|
|
7344
|
+
onChange: D
|
|
7469
7345
|
}
|
|
7470
7346
|
)
|
|
7471
7347
|
}
|
|
@@ -7480,7 +7356,7 @@ const Ye = {
|
|
|
7480
7356
|
onKeyDown: (m) => {
|
|
7481
7357
|
(m.key === "Enter" || m.key === " ") && (m.preventDefault(), O(j.name));
|
|
7482
7358
|
},
|
|
7483
|
-
onDragStart: () =>
|
|
7359
|
+
onDragStart: () => F(j.name),
|
|
7484
7360
|
onDragOver: W,
|
|
7485
7361
|
onDrop: () => k(j.name),
|
|
7486
7362
|
className: N.headerCell,
|
|
@@ -7563,7 +7439,7 @@ const Ye = {
|
|
|
7563
7439
|
)
|
|
7564
7440
|
] })
|
|
7565
7441
|
] });
|
|
7566
|
-
},
|
|
7442
|
+
}, Qo = ({
|
|
7567
7443
|
data: t,
|
|
7568
7444
|
lineHeight: e = 28,
|
|
7569
7445
|
TableHeight: r = 400,
|
|
@@ -7580,7 +7456,7 @@ const Ye = {
|
|
|
7580
7456
|
const [f, g] = H(() => t ? {
|
|
7581
7457
|
columns: l ? Bo(t, Uo(l)) : t.columns,
|
|
7582
7458
|
rows: t.rows ?? []
|
|
7583
|
-
} : { columns: [], rows: [] }), [h, b] = H(n || []), [w, v] = H(/* @__PURE__ */ new Set()), [_, x] = H(!1), [T, y] = H(/* @__PURE__ */ new Set()), [
|
|
7459
|
+
} : { columns: [], rows: [] }), [h, b] = H(n || []), [w, v] = H(/* @__PURE__ */ new Set()), [_, x] = H(!1), [T, y] = H(/* @__PURE__ */ new Set()), [D, O] = H(null), F = Qe(() => To(t?.columns || []), [t?.columns]), [W, k] = H(() => Kr(a, F)), C = ue(null), [E, A] = Co({
|
|
7584
7460
|
columns: f?.columns ?? [],
|
|
7585
7461
|
rows: f?.rows ?? [],
|
|
7586
7462
|
containerRef: C,
|
|
@@ -7594,7 +7470,7 @@ const Ye = {
|
|
|
7594
7470
|
}, [T, f.rows]), { sortBy: N, sortOrder: j, handleSort: m } = Fo({
|
|
7595
7471
|
...f,
|
|
7596
7472
|
rows: f.rows
|
|
7597
|
-
}), { virtualItems: S, containerProps: L, innerProps:
|
|
7473
|
+
}), { virtualItems: S, containerProps: L, innerProps: R } = on({
|
|
7598
7474
|
items: f?.rows ?? [],
|
|
7599
7475
|
itemHeight: e,
|
|
7600
7476
|
containerHeight: r,
|
|
@@ -7640,8 +7516,8 @@ const Ye = {
|
|
|
7640
7516
|
const $ = oe((B) => {
|
|
7641
7517
|
k(B);
|
|
7642
7518
|
}, []), P = oe(() => {
|
|
7643
|
-
k(Kr(a,
|
|
7644
|
-
}, [a,
|
|
7519
|
+
k(Kr(a, F));
|
|
7520
|
+
}, [a, F]), G = oe(() => {
|
|
7645
7521
|
x((B) => !B);
|
|
7646
7522
|
}, []), q = oe((B) => {
|
|
7647
7523
|
O((J) => J === B ? null : B);
|
|
@@ -7667,14 +7543,14 @@ const Ye = {
|
|
|
7667
7543
|
window.removeEventListener("mousemove", ie), window.removeEventListener("mouseup", we);
|
|
7668
7544
|
};
|
|
7669
7545
|
window.addEventListener("mousemove", ie), window.addEventListener("mouseup", we);
|
|
7670
|
-
},
|
|
7546
|
+
}, M = (B) => {
|
|
7671
7547
|
y((J) => {
|
|
7672
7548
|
const ce = new Set(J);
|
|
7673
7549
|
return B.every((ie) => ce.has(ie)) ? B.forEach((ie) => ce.delete(ie)) : B.forEach((ie) => ce.add(ie)), ce;
|
|
7674
7550
|
});
|
|
7675
7551
|
}, z = () => {
|
|
7676
7552
|
const B = f.rows.map((J, ce) => ce);
|
|
7677
|
-
|
|
7553
|
+
M(B);
|
|
7678
7554
|
}, ee = {
|
|
7679
7555
|
smpTable: `${hn["smp-table"]}`
|
|
7680
7556
|
};
|
|
@@ -7694,9 +7570,9 @@ const Ye = {
|
|
|
7694
7570
|
groupState: h,
|
|
7695
7571
|
showGroupBar: de(o),
|
|
7696
7572
|
showFilter: _,
|
|
7697
|
-
filterColumn:
|
|
7573
|
+
filterColumn: D,
|
|
7698
7574
|
activeFilters: W,
|
|
7699
|
-
fieldOptions:
|
|
7575
|
+
fieldOptions: F,
|
|
7700
7576
|
Filter: a,
|
|
7701
7577
|
enableSelection: de(i),
|
|
7702
7578
|
allVisibleRowsSelected: X,
|
|
@@ -7717,7 +7593,7 @@ const Ye = {
|
|
|
7717
7593
|
onDrop: U
|
|
7718
7594
|
}
|
|
7719
7595
|
),
|
|
7720
|
-
/* @__PURE__ */ p.jsx("tbody", { ...
|
|
7596
|
+
/* @__PURE__ */ p.jsx("tbody", { ...R, children: S.map(({ item: B, index: J, offsetTop: ce }) => {
|
|
7721
7597
|
const he = B.id || B.value || `${B.isGroup ? "group" : "row"}-${J}`;
|
|
7722
7598
|
return B.isGroup ? /* @__PURE__ */ p.jsx(
|
|
7723
7599
|
Vo,
|
|
@@ -7745,7 +7621,7 @@ const Ye = {
|
|
|
7745
7621
|
enableSelection: de(i),
|
|
7746
7622
|
isSelected: T.has(J),
|
|
7747
7623
|
onToggleSelect: () => {
|
|
7748
|
-
|
|
7624
|
+
M([J]);
|
|
7749
7625
|
},
|
|
7750
7626
|
onRowClick: c,
|
|
7751
7627
|
onContextMenu: u
|
|
@@ -7757,6 +7633,140 @@ const Ye = {
|
|
|
7757
7633
|
] })
|
|
7758
7634
|
}
|
|
7759
7635
|
);
|
|
7636
|
+
}, Zo = ({
|
|
7637
|
+
data: t,
|
|
7638
|
+
logo: e,
|
|
7639
|
+
open: r,
|
|
7640
|
+
minifiedOnClose: n = !0,
|
|
7641
|
+
customHeight: s = "100vh",
|
|
7642
|
+
onClick: o,
|
|
7643
|
+
onEnter: a,
|
|
7644
|
+
onClose: i,
|
|
7645
|
+
loadOptions: l,
|
|
7646
|
+
onContextMenu: c
|
|
7647
|
+
}) => {
|
|
7648
|
+
const [d, u] = H(), [f, g] = H(r ?? !0), h = ue(null), b = s.trim() ? s : "100vh", w = oe(
|
|
7649
|
+
(T) => {
|
|
7650
|
+
if (!T?.rows?.length || !T?.columns?.length)
|
|
7651
|
+
return {};
|
|
7652
|
+
const y = T.rows[0];
|
|
7653
|
+
return T.columns.filter((D) => D.visible ?? !0).reduce((D, O) => {
|
|
7654
|
+
const F = y.cells[O.name];
|
|
7655
|
+
if (!F || !f && de(n) && F.shape !== te.BUTTON && F.shape !== te.BUTTON_LIST)
|
|
7656
|
+
return D;
|
|
7657
|
+
const W = {
|
|
7658
|
+
...F,
|
|
7659
|
+
id: O.name,
|
|
7660
|
+
onOptionsRequest: l,
|
|
7661
|
+
onChange: (k) => {
|
|
7662
|
+
u((C) => {
|
|
7663
|
+
const E = { ...C };
|
|
7664
|
+
return E?.[O.name] && (E[O.name].obj.k = k.obj.k), E;
|
|
7665
|
+
});
|
|
7666
|
+
},
|
|
7667
|
+
onClick: (k) => {
|
|
7668
|
+
k.fun && o && o(k);
|
|
7669
|
+
},
|
|
7670
|
+
onEnter: (k) => {
|
|
7671
|
+
a && a(k);
|
|
7672
|
+
},
|
|
7673
|
+
onContextMenu: (k, C) => {
|
|
7674
|
+
c && c(k, C);
|
|
7675
|
+
}
|
|
7676
|
+
};
|
|
7677
|
+
return !f && de(n) && (W.data = {
|
|
7678
|
+
...W.data,
|
|
7679
|
+
showText: !1,
|
|
7680
|
+
justify: "center",
|
|
7681
|
+
squared: !0
|
|
7682
|
+
}), {
|
|
7683
|
+
...D,
|
|
7684
|
+
[O.name]: W
|
|
7685
|
+
};
|
|
7686
|
+
}, {});
|
|
7687
|
+
},
|
|
7688
|
+
[f, n, o, a, l, c]
|
|
7689
|
+
), v = oe(() => {
|
|
7690
|
+
i?.();
|
|
7691
|
+
}, [i]), _ = () => {
|
|
7692
|
+
de(n) ? g((T) => !T) : (g(!1), i?.());
|
|
7693
|
+
};
|
|
7694
|
+
if (re(() => {
|
|
7695
|
+
u(w(t));
|
|
7696
|
+
}, [t]), re(() => {
|
|
7697
|
+
if (!h.current)
|
|
7698
|
+
return;
|
|
7699
|
+
if (!de(n)) {
|
|
7700
|
+
u(w(t));
|
|
7701
|
+
return;
|
|
7702
|
+
}
|
|
7703
|
+
const T = getComputedStyle(h.current).getPropertyValue(
|
|
7704
|
+
"--smp-drawer-slide-transition"
|
|
7705
|
+
);
|
|
7706
|
+
let y = Number(T);
|
|
7707
|
+
T.endsWith("ms") ? y = parseFloat(T) : T.endsWith("s") && (y = parseFloat(T) * 1e3), setTimeout(() => {
|
|
7708
|
+
u(w(t));
|
|
7709
|
+
}, y / 2);
|
|
7710
|
+
}, [f, n]), re(() => {
|
|
7711
|
+
r !== void 0 && !de(n) && g(r);
|
|
7712
|
+
}, [n, r]), !t?.rows?.length || !t.columns?.length)
|
|
7713
|
+
return null;
|
|
7714
|
+
const x = {
|
|
7715
|
+
drawer: `smp-drawer ${de(n) ? "smp-drawer-minified" : "smp-drawer-fixed"} ${f ? "smp-drawer-open" : ""} ${!de(n) && !f ? "smp-drawer-no-border" : ""}`,
|
|
7716
|
+
container: "smp-drawer-container",
|
|
7717
|
+
containerHeader: "smp-drawer-container-header",
|
|
7718
|
+
containerIcon: `${f ? "" : "smp-drawer-container-icon-close"} smp-drawer-container-icon`,
|
|
7719
|
+
containerLayout: "smp-drawer-container-layout",
|
|
7720
|
+
containerLogo: "smp-drawer-container-logo",
|
|
7721
|
+
backdrop: `smp-drawer-backdrop ${f ? "smp-drawer-backdrop-open" : ""}`
|
|
7722
|
+
};
|
|
7723
|
+
return d && /* @__PURE__ */ p.jsxs(p.Fragment, { children: [
|
|
7724
|
+
!de(n) && /* @__PURE__ */ p.jsx(
|
|
7725
|
+
"div",
|
|
7726
|
+
{
|
|
7727
|
+
"aria-hidden": "true",
|
|
7728
|
+
"aria-label": "drawer-backdrop",
|
|
7729
|
+
className: x.backdrop,
|
|
7730
|
+
onClick: v
|
|
7731
|
+
}
|
|
7732
|
+
),
|
|
7733
|
+
/* @__PURE__ */ p.jsx(
|
|
7734
|
+
"aside",
|
|
7735
|
+
{
|
|
7736
|
+
ref: h,
|
|
7737
|
+
className: x.drawer,
|
|
7738
|
+
style: { height: b },
|
|
7739
|
+
"aria-label": "Drawer",
|
|
7740
|
+
"smp-id": "drawer",
|
|
7741
|
+
children: /* @__PURE__ */ p.jsxs("div", { className: x.container, children: [
|
|
7742
|
+
/* @__PURE__ */ p.jsxs("div", { className: x.containerHeader, children: [
|
|
7743
|
+
e && /* @__PURE__ */ p.jsx("div", { className: x.containerLogo, children: /* @__PURE__ */ p.jsx(
|
|
7744
|
+
le,
|
|
7745
|
+
{
|
|
7746
|
+
icon: e,
|
|
7747
|
+
title: "drawer_logo",
|
|
7748
|
+
width: "100%",
|
|
7749
|
+
height: 24
|
|
7750
|
+
}
|
|
7751
|
+
) }),
|
|
7752
|
+
/* @__PURE__ */ p.jsx("div", { className: x.containerIcon, children: /* @__PURE__ */ p.jsx(
|
|
7753
|
+
le,
|
|
7754
|
+
{
|
|
7755
|
+
icon: de(n) ? "menu_close" : "close",
|
|
7756
|
+
title: "drawer_icon",
|
|
7757
|
+
rotated: !f,
|
|
7758
|
+
isInteractable: !0,
|
|
7759
|
+
onClick: _,
|
|
7760
|
+
width: 20,
|
|
7761
|
+
height: 20
|
|
7762
|
+
}
|
|
7763
|
+
) })
|
|
7764
|
+
] }),
|
|
7765
|
+
/* @__PURE__ */ p.jsx("div", { className: x.containerLayout, children: /* @__PURE__ */ p.jsx(bt, { layout: t.rows[0].layout, children: Object.values(d).map((T) => /* @__PURE__ */ p.jsx(Fe, { ...T })) }) })
|
|
7766
|
+
] })
|
|
7767
|
+
}
|
|
7768
|
+
)
|
|
7769
|
+
] });
|
|
7760
7770
|
}, ea = ({
|
|
7761
7771
|
data: t,
|
|
7762
7772
|
Type: e,
|
|
@@ -7879,7 +7889,7 @@ const Ye = {
|
|
|
7879
7889
|
const C = T.current;
|
|
7880
7890
|
if (!C) return;
|
|
7881
7891
|
const E = (A) => {
|
|
7882
|
-
|
|
7892
|
+
D(A.detail.id);
|
|
7883
7893
|
};
|
|
7884
7894
|
return C.addEventListener(
|
|
7885
7895
|
Xr,
|
|
@@ -7927,7 +7937,7 @@ const Ye = {
|
|
|
7927
7937
|
);
|
|
7928
7938
|
A < b.current.length - 1 && b.current[A + 1].focus();
|
|
7929
7939
|
}
|
|
7930
|
-
},
|
|
7940
|
+
}, D = (C) => {
|
|
7931
7941
|
const E = Pt(t, w);
|
|
7932
7942
|
c({
|
|
7933
7943
|
value: E,
|
|
@@ -7948,7 +7958,7 @@ const Ye = {
|
|
|
7948
7958
|
},
|
|
7949
7959
|
fun: E || ""
|
|
7950
7960
|
});
|
|
7951
|
-
},
|
|
7961
|
+
}, F = async (C) => {
|
|
7952
7962
|
if (w[C].obj.k != t.rows[0].cells[C].obj.k && (w[C].inputSettings?.checkObject && u && ((await u({
|
|
7953
7963
|
obj: w[C].obj,
|
|
7954
7964
|
fun: w[C].fun,
|
|
@@ -7980,7 +7990,7 @@ const Ye = {
|
|
|
7980
7990
|
id: `command-${E}`,
|
|
7981
7991
|
key: `command-${E}`,
|
|
7982
7992
|
shape: te.BUTTON,
|
|
7983
|
-
onClick: () =>
|
|
7993
|
+
onClick: () => D(C.obj.k)
|
|
7984
7994
|
}
|
|
7985
7995
|
)) || [];
|
|
7986
7996
|
n || W.unshift(
|
|
@@ -8015,7 +8025,7 @@ const Ye = {
|
|
|
8015
8025
|
className: k.smpForm,
|
|
8016
8026
|
id: e || x,
|
|
8017
8027
|
onSubmit: (C) => {
|
|
8018
|
-
C.preventDefault(),
|
|
8028
|
+
C.preventDefault(), D();
|
|
8019
8029
|
},
|
|
8020
8030
|
ref: T,
|
|
8021
8031
|
role: "form",
|
|
@@ -8026,7 +8036,7 @@ const Ye = {
|
|
|
8026
8036
|
...C,
|
|
8027
8037
|
onOptionsRequest: C.fun ? async (E, A) => await l(E, A, t, C.id) : void 0,
|
|
8028
8038
|
onChange: (E) => y(C.id, E),
|
|
8029
|
-
onBlur: () =>
|
|
8039
|
+
onBlur: () => F(C.id),
|
|
8030
8040
|
onContextMenu: f,
|
|
8031
8041
|
onClick: () => {
|
|
8032
8042
|
(C.shape == "BTN" || C.shape == "CFM") && O(C.id, C.fun);
|
|
@@ -8065,17 +8075,19 @@ export {
|
|
|
8065
8075
|
me as Button,
|
|
8066
8076
|
ro as ButtonList,
|
|
8067
8077
|
tr as Checkbox,
|
|
8078
|
+
rr as Chips,
|
|
8068
8079
|
Ht as Combobox,
|
|
8069
|
-
|
|
8070
|
-
|
|
8080
|
+
Xo as DashList,
|
|
8081
|
+
Qo as DataTableComponent,
|
|
8071
8082
|
dn as DatePicker,
|
|
8072
|
-
|
|
8083
|
+
Zo as Drawer,
|
|
8073
8084
|
ea as Field,
|
|
8074
8085
|
Xr as INPUT_PANEL_COMMAND_SUBMIT_EVENT_NAME,
|
|
8075
8086
|
le as Icon,
|
|
8076
8087
|
ta as InputPanel,
|
|
8077
8088
|
io as Password,
|
|
8078
8089
|
is as TabBar,
|
|
8090
|
+
uo as Textarea,
|
|
8079
8091
|
_e as Textfield,
|
|
8080
8092
|
Ko as configurePaths
|
|
8081
8093
|
};
|