@sme.up/ketchup2 2.0.0-SNAPSHOT-20250613081018 → 2.0.0-SNAPSHOT-20250613084927
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/components/app-bar/app-bar.d.ts.map +1 -1
- package/dist/components/data-table/data-table.d.ts.map +1 -1
- package/dist/components/field/field.d.ts.map +1 -1
- package/dist/components/spotlight/spotlight.d.ts.map +1 -1
- package/dist/ketchup2.cjs.js +9 -9
- package/dist/ketchup2.css +1 -1
- package/dist/ketchup2.es.js +442 -431
- package/package.json +1 -1
package/dist/ketchup2.es.js
CHANGED
|
@@ -2,7 +2,7 @@ var jr = Object.defineProperty;
|
|
|
2
2
|
var $r = (r, e, t) => e in r ? jr(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
3
3
|
var Se = (r, e, t) => $r(r, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
import * as Ie from "react";
|
|
5
|
-
import dr, { useEffect as ie, useRef as ve, useState as
|
|
5
|
+
import dr, { useEffect as ie, useRef as ve, useState as J, useCallback as ye, useLayoutEffect as Cr, useId as Pr } from "react";
|
|
6
6
|
var Ne = { exports: {} }, $e = {};
|
|
7
7
|
/**
|
|
8
8
|
* @license React
|
|
@@ -62,7 +62,7 @@ function Lr() {
|
|
|
62
62
|
return "StrictMode";
|
|
63
63
|
case v:
|
|
64
64
|
return "Suspense";
|
|
65
|
-
case
|
|
65
|
+
case I:
|
|
66
66
|
return "SuspenseList";
|
|
67
67
|
case R:
|
|
68
68
|
return "Activity";
|
|
@@ -130,7 +130,7 @@ function Lr() {
|
|
|
130
130
|
return Error("react-stack-top-frame");
|
|
131
131
|
}
|
|
132
132
|
function i(p) {
|
|
133
|
-
if (
|
|
133
|
+
if (k.call(p, "key")) {
|
|
134
134
|
var g = Object.getOwnPropertyDescriptor(p, "key").get;
|
|
135
135
|
if (g && g.isReactWarning) return !1;
|
|
136
136
|
}
|
|
@@ -138,7 +138,7 @@ function Lr() {
|
|
|
138
138
|
}
|
|
139
139
|
function o(p, g) {
|
|
140
140
|
function T() {
|
|
141
|
-
|
|
141
|
+
X || (X = !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
|
g
|
|
144
144
|
));
|
|
@@ -154,7 +154,7 @@ function Lr() {
|
|
|
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
|
)), p = this.props.ref, p !== void 0 ? p : null;
|
|
156
156
|
}
|
|
157
|
-
function l(p, g, T, $, O, A,
|
|
157
|
+
function l(p, g, T, $, O, A, M, F) {
|
|
158
158
|
return T = A.ref, p = {
|
|
159
159
|
$$typeof: m,
|
|
160
160
|
type: p,
|
|
@@ -178,33 +178,33 @@ function Lr() {
|
|
|
178
178
|
configurable: !1,
|
|
179
179
|
enumerable: !1,
|
|
180
180
|
writable: !0,
|
|
181
|
-
value:
|
|
181
|
+
value: M
|
|
182
182
|
}), Object.defineProperty(p, "_debugTask", {
|
|
183
183
|
configurable: !1,
|
|
184
184
|
enumerable: !1,
|
|
185
185
|
writable: !0,
|
|
186
|
-
value:
|
|
186
|
+
value: F
|
|
187
187
|
}), Object.freeze && (Object.freeze(p.props), Object.freeze(p)), p;
|
|
188
188
|
}
|
|
189
|
-
function u(p, g, T, $, O, A,
|
|
190
|
-
var
|
|
191
|
-
if (
|
|
189
|
+
function u(p, g, T, $, O, A, M, F) {
|
|
190
|
+
var N = g.children;
|
|
191
|
+
if (N !== void 0)
|
|
192
192
|
if ($)
|
|
193
|
-
if (
|
|
194
|
-
for ($ = 0; $ <
|
|
195
|
-
f(
|
|
196
|
-
Object.freeze && Object.freeze(
|
|
193
|
+
if (Y(N)) {
|
|
194
|
+
for ($ = 0; $ < N.length; $++)
|
|
195
|
+
f(N[$]);
|
|
196
|
+
Object.freeze && Object.freeze(N);
|
|
197
197
|
} else
|
|
198
198
|
console.error(
|
|
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
|
-
else f(
|
|
202
|
-
if (
|
|
203
|
-
|
|
204
|
-
var
|
|
201
|
+
else f(N);
|
|
202
|
+
if (k.call(g, "key")) {
|
|
203
|
+
N = r(p);
|
|
204
|
+
var z = Object.keys(g).filter(function(ne) {
|
|
205
205
|
return ne !== "key";
|
|
206
206
|
});
|
|
207
|
-
$ = 0 <
|
|
207
|
+
$ = 0 < z.length ? "{key: someKey, " + z.join(": ..., ") + ": ...}" : "{key: someKey}", L[N + $] || (z = 0 < z.length ? "{" + z.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} />
|
|
@@ -212,34 +212,34 @@ React keys must be passed directly to JSX without using spread:
|
|
|
212
212
|
let props = %s;
|
|
213
213
|
<%s key={someKey} {...props} />`,
|
|
214
214
|
$,
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
), L[
|
|
215
|
+
N,
|
|
216
|
+
z,
|
|
217
|
+
N
|
|
218
|
+
), L[N + $] = !0);
|
|
219
219
|
}
|
|
220
|
-
if (
|
|
220
|
+
if (N = null, T !== void 0 && (t(T), N = "" + T), i(g) && (t(g.key), N = "" + g.key), "key" in g) {
|
|
221
221
|
T = {};
|
|
222
222
|
for (var G in g)
|
|
223
223
|
G !== "key" && (T[G] = g[G]);
|
|
224
224
|
} else T = g;
|
|
225
|
-
return
|
|
225
|
+
return N && o(
|
|
226
226
|
T,
|
|
227
227
|
typeof p == "function" ? p.displayName || p.name || "Unknown" : p
|
|
228
228
|
), l(
|
|
229
229
|
p,
|
|
230
|
-
|
|
230
|
+
N,
|
|
231
231
|
A,
|
|
232
232
|
O,
|
|
233
233
|
s(),
|
|
234
234
|
T,
|
|
235
|
-
|
|
236
|
-
|
|
235
|
+
M,
|
|
236
|
+
F
|
|
237
237
|
);
|
|
238
238
|
}
|
|
239
239
|
function f(p) {
|
|
240
240
|
typeof p == "object" && p !== null && p.$$typeof === m && p._store && (p._store.validated = 1);
|
|
241
241
|
}
|
|
242
|
-
var d = dr, m = Symbol.for("react.transitional.element"), h = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), x = Symbol.for("react.strict_mode"), w = Symbol.for("react.profiler"), E = Symbol.for("react.consumer"), D = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), v = Symbol.for("react.suspense"),
|
|
242
|
+
var d = dr, m = Symbol.for("react.transitional.element"), h = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), x = Symbol.for("react.strict_mode"), w = Symbol.for("react.profiler"), E = Symbol.for("react.consumer"), D = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), v = Symbol.for("react.suspense"), I = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), U = Symbol.for("react.lazy"), R = Symbol.for("react.activity"), P = Symbol.for("react.client.reference"), j = d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, k = Object.prototype.hasOwnProperty, Y = Array.isArray, H = console.createTask ? console.createTask : function() {
|
|
243
243
|
return null;
|
|
244
244
|
};
|
|
245
245
|
d = {
|
|
@@ -247,7 +247,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
247
247
|
return p();
|
|
248
248
|
}
|
|
249
249
|
};
|
|
250
|
-
var
|
|
250
|
+
var X, K = {}, Z = d["react-stack-bottom-frame"].bind(
|
|
251
251
|
d,
|
|
252
252
|
a
|
|
253
253
|
)(), W = H(n(a)), L = {};
|
|
@@ -487,7 +487,7 @@ function bt({
|
|
|
487
487
|
position: r = "bottom",
|
|
488
488
|
enabled: e = !0
|
|
489
489
|
}) {
|
|
490
|
-
const t = ve(null), n = ve(null), [s, a] =
|
|
490
|
+
const t = ve(null), n = ve(null), [s, a] = J(0), i = ye(() => {
|
|
491
491
|
const o = t.current, c = n.current;
|
|
492
492
|
if (!o || !c) return;
|
|
493
493
|
const { top: l, left: u, width: f, height: d } = o.getBoundingClientRect();
|
|
@@ -763,36 +763,36 @@ var en = Qr(), Re = /* @__PURE__ */ new Map(), pr = function(e) {
|
|
|
763
763
|
path: [],
|
|
764
764
|
pattern: ["fill", "stroke"],
|
|
765
765
|
radialGradient: ["fill", "stroke"]
|
|
766
|
-
}, S, v,
|
|
766
|
+
}, S, v, I, C, U;
|
|
767
767
|
Object.keys(D).forEach(function(W) {
|
|
768
|
-
S = W,
|
|
768
|
+
S = W, I = D[W], v = f.querySelectorAll(S + "[id]");
|
|
769
769
|
for (var L = function($, O) {
|
|
770
770
|
C = v[$].id, U = C + "-" + an();
|
|
771
771
|
var A;
|
|
772
|
-
Array.prototype.forEach.call(
|
|
773
|
-
A = f.querySelectorAll("[" +
|
|
774
|
-
for (var
|
|
775
|
-
var re = A[
|
|
776
|
-
re && !re.match(new RegExp('url\\("?#' + C + '"?\\)')) || A[
|
|
772
|
+
Array.prototype.forEach.call(I, function(V) {
|
|
773
|
+
A = f.querySelectorAll("[" + V + '*="' + C + '"]');
|
|
774
|
+
for (var q = 0, te = A.length; q < te; q++) {
|
|
775
|
+
var re = A[q].getAttribute(V);
|
|
776
|
+
re && !re.match(new RegExp('url\\("?#' + C + '"?\\)')) || A[q].setAttribute(V, "url(#" + U + ")");
|
|
777
777
|
}
|
|
778
778
|
});
|
|
779
|
-
for (var
|
|
780
|
-
var G =
|
|
781
|
-
G && G.toString() === "#" + v[$].id &&
|
|
779
|
+
for (var M = f.querySelectorAll("[*|href]"), F = [], N = 0, z = M.length; N < z; N++) {
|
|
780
|
+
var G = M[N].getAttributeNS(at, "href");
|
|
781
|
+
G && G.toString() === "#" + v[$].id && F.push(M[N]);
|
|
782
782
|
}
|
|
783
|
-
for (var ne = 0, _ =
|
|
784
|
-
|
|
783
|
+
for (var ne = 0, _ = F.length; ne < _; ne++)
|
|
784
|
+
F[ne].setAttributeNS(at, "href", "#" + U);
|
|
785
785
|
v[$].id = U;
|
|
786
786
|
}, p = 0, g = v.length; p < g; p++)
|
|
787
787
|
L(p);
|
|
788
788
|
});
|
|
789
789
|
}
|
|
790
790
|
f.removeAttribute("xmlns:a");
|
|
791
|
-
for (var R = f.querySelectorAll("script"), P = [], j,
|
|
792
|
-
|
|
791
|
+
for (var R = f.querySelectorAll("script"), P = [], j, k, Y = 0, H = R.length; Y < H; Y++)
|
|
792
|
+
k = R[Y].getAttribute("type"), (!k || k === "application/ecmascript" || k === "application/javascript" || k === "text/javascript") && (j = R[Y].innerText || R[Y].textContent, j && P.push(j), f.removeChild(R[Y]));
|
|
793
793
|
if (P.length > 0 && (t === "always" || t === "once" && !At[c])) {
|
|
794
|
-
for (var
|
|
795
|
-
new Function(P[
|
|
794
|
+
for (var X = 0, K = P.length; X < K; X++)
|
|
795
|
+
new Function(P[X])(window);
|
|
796
796
|
At[c] = !0;
|
|
797
797
|
}
|
|
798
798
|
var Z = f.querySelectorAll("style");
|
|
@@ -811,11 +811,11 @@ var en = Qr(), Re = /* @__PURE__ */ new Map(), pr = function(e) {
|
|
|
811
811
|
} : c, u = n.cacheRequests, f = u === void 0 ? !0 : u, d = n.evalScripts, m = d === void 0 ? "never" : d, h = n.httpRequestWithCredentials, y = h === void 0 ? !1 : h, x = n.renumerateIRIElements, w = x === void 0 ? !0 : x;
|
|
812
812
|
if (e && "length" in e)
|
|
813
813
|
for (var E = 0, D = 0, S = e.length; D < S; D++)
|
|
814
|
-
Lt(e[D], m, w, f, y, l, function(v,
|
|
815
|
-
o(v,
|
|
814
|
+
Lt(e[D], m, w, f, y, l, function(v, I) {
|
|
815
|
+
o(v, I), e && "length" in e && e.length === ++E && a(E);
|
|
816
816
|
});
|
|
817
|
-
else e ? Lt(e, m, w, f, y, l, function(v,
|
|
818
|
-
o(v,
|
|
817
|
+
else e ? Lt(e, m, w, f, y, l, function(v, I) {
|
|
818
|
+
o(v, I), a(1), e = null;
|
|
819
819
|
}) : a(0);
|
|
820
820
|
}, Ve = { exports: {} }, Ye = { exports: {} }, Q = {};
|
|
821
821
|
/** @license React v16.13.1
|
|
@@ -833,8 +833,8 @@ function cn() {
|
|
|
833
833
|
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, c = r ? Symbol.for("react.async_mode") : 60111, l = r ? Symbol.for("react.concurrent_mode") : 60111, u = r ? Symbol.for("react.forward_ref") : 60112, f = r ? Symbol.for("react.suspense") : 60113, d = r ? Symbol.for("react.suspense_list") : 60120, m = r ? Symbol.for("react.memo") : 60115, h = r ? Symbol.for("react.lazy") : 60116, y = 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;
|
|
834
834
|
function D(v) {
|
|
835
835
|
if (typeof v == "object" && v !== null) {
|
|
836
|
-
var
|
|
837
|
-
switch (
|
|
836
|
+
var I = v.$$typeof;
|
|
837
|
+
switch (I) {
|
|
838
838
|
case e:
|
|
839
839
|
switch (v = v.type, v) {
|
|
840
840
|
case c:
|
|
@@ -853,11 +853,11 @@ function cn() {
|
|
|
853
853
|
case i:
|
|
854
854
|
return v;
|
|
855
855
|
default:
|
|
856
|
-
return
|
|
856
|
+
return I;
|
|
857
857
|
}
|
|
858
858
|
}
|
|
859
859
|
case t:
|
|
860
|
-
return
|
|
860
|
+
return I;
|
|
861
861
|
}
|
|
862
862
|
}
|
|
863
863
|
}
|
|
@@ -911,20 +911,20 @@ function un() {
|
|
|
911
911
|
}
|
|
912
912
|
function S(_) {
|
|
913
913
|
if (typeof _ == "object" && _ !== null) {
|
|
914
|
-
var
|
|
915
|
-
switch (
|
|
914
|
+
var V = _.$$typeof;
|
|
915
|
+
switch (V) {
|
|
916
916
|
case e:
|
|
917
|
-
var
|
|
918
|
-
switch (
|
|
917
|
+
var q = _.type;
|
|
918
|
+
switch (q) {
|
|
919
919
|
case c:
|
|
920
920
|
case l:
|
|
921
921
|
case n:
|
|
922
922
|
case a:
|
|
923
923
|
case s:
|
|
924
924
|
case f:
|
|
925
|
-
return
|
|
925
|
+
return q;
|
|
926
926
|
default:
|
|
927
|
-
var te =
|
|
927
|
+
var te = q && q.$$typeof;
|
|
928
928
|
switch (te) {
|
|
929
929
|
case o:
|
|
930
930
|
case u:
|
|
@@ -933,15 +933,15 @@ function un() {
|
|
|
933
933
|
case i:
|
|
934
934
|
return te;
|
|
935
935
|
default:
|
|
936
|
-
return
|
|
936
|
+
return V;
|
|
937
937
|
}
|
|
938
938
|
}
|
|
939
939
|
case t:
|
|
940
|
-
return
|
|
940
|
+
return V;
|
|
941
941
|
}
|
|
942
942
|
}
|
|
943
943
|
}
|
|
944
|
-
var v = c,
|
|
944
|
+
var v = c, I = l, C = o, U = i, R = e, P = u, j = n, k = h, Y = m, H = t, X = a, K = s, Z = f, W = !1;
|
|
945
945
|
function L(_) {
|
|
946
946
|
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.")), p(_) || S(_) === c;
|
|
947
947
|
}
|
|
@@ -963,16 +963,16 @@ function un() {
|
|
|
963
963
|
function A(_) {
|
|
964
964
|
return S(_) === n;
|
|
965
965
|
}
|
|
966
|
-
function
|
|
966
|
+
function M(_) {
|
|
967
967
|
return S(_) === h;
|
|
968
968
|
}
|
|
969
|
-
function
|
|
969
|
+
function F(_) {
|
|
970
970
|
return S(_) === m;
|
|
971
971
|
}
|
|
972
|
-
function
|
|
972
|
+
function N(_) {
|
|
973
973
|
return S(_) === t;
|
|
974
974
|
}
|
|
975
|
-
function
|
|
975
|
+
function z(_) {
|
|
976
976
|
return S(_) === a;
|
|
977
977
|
}
|
|
978
978
|
function G(_) {
|
|
@@ -981,7 +981,7 @@ function un() {
|
|
|
981
981
|
function ne(_) {
|
|
982
982
|
return S(_) === f;
|
|
983
983
|
}
|
|
984
|
-
ee.AsyncMode = v, ee.ConcurrentMode =
|
|
984
|
+
ee.AsyncMode = v, ee.ConcurrentMode = I, ee.ContextConsumer = C, ee.ContextProvider = U, ee.Element = R, ee.ForwardRef = P, ee.Fragment = j, ee.Lazy = k, ee.Memo = Y, ee.Portal = H, ee.Profiler = X, ee.StrictMode = K, ee.Suspense = Z, ee.isAsyncMode = L, ee.isConcurrentMode = p, ee.isContextConsumer = g, ee.isContextProvider = T, ee.isElement = $, ee.isForwardRef = O, ee.isFragment = A, ee.isLazy = M, ee.isMemo = F, ee.isPortal = N, ee.isProfiler = z, ee.isStrictMode = G, ee.isSuspense = ne, ee.isValidElementType = D, ee.typeOf = S;
|
|
985
985
|
}()), ee;
|
|
986
986
|
}
|
|
987
987
|
var It;
|
|
@@ -1136,13 +1136,13 @@ function pn() {
|
|
|
1136
1136
|
arrayOf: D,
|
|
1137
1137
|
element: S(),
|
|
1138
1138
|
elementType: v(),
|
|
1139
|
-
instanceOf:
|
|
1139
|
+
instanceOf: I,
|
|
1140
1140
|
node: P(),
|
|
1141
1141
|
objectOf: U,
|
|
1142
1142
|
oneOf: C,
|
|
1143
1143
|
oneOfType: R,
|
|
1144
|
-
shape:
|
|
1145
|
-
exact:
|
|
1144
|
+
shape: k,
|
|
1145
|
+
exact: Y
|
|
1146
1146
|
};
|
|
1147
1147
|
function h(p, g) {
|
|
1148
1148
|
return p === g ? p !== 0 || 1 / p === 1 / g : p !== p && g !== g;
|
|
@@ -1154,33 +1154,33 @@ function pn() {
|
|
|
1154
1154
|
function x(p) {
|
|
1155
1155
|
if (process.env.NODE_ENV !== "production")
|
|
1156
1156
|
var g = {}, T = 0;
|
|
1157
|
-
function $(A,
|
|
1158
|
-
if (
|
|
1157
|
+
function $(A, M, F, N, z, G, ne) {
|
|
1158
|
+
if (N = N || d, G = G || F, ne !== t) {
|
|
1159
1159
|
if (c) {
|
|
1160
1160
|
var _ = new Error(
|
|
1161
1161
|
"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"
|
|
1162
1162
|
);
|
|
1163
1163
|
throw _.name = "Invariant Violation", _;
|
|
1164
1164
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
1165
|
-
var
|
|
1166
|
-
!g[
|
|
1165
|
+
var V = N + ":" + F;
|
|
1166
|
+
!g[V] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
1167
1167
|
T < 3 && (a(
|
|
1168
|
-
"You are manually calling a React.PropTypes validation function for the `" + G + "` prop on `" +
|
|
1169
|
-
), g[
|
|
1168
|
+
"You are manually calling a React.PropTypes validation function for the `" + G + "` prop on `" + N + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
1169
|
+
), g[V] = !0, T++);
|
|
1170
1170
|
}
|
|
1171
1171
|
}
|
|
1172
|
-
return F
|
|
1172
|
+
return M[F] == null ? A ? M[F] === null ? new y("The " + z + " `" + G + "` is marked as required " + ("in `" + N + "`, but its value is `null`.")) : new y("The " + z + " `" + G + "` is marked as required in " + ("`" + N + "`, but its value is `undefined`.")) : null : p(M, F, N, z, G);
|
|
1173
1173
|
}
|
|
1174
1174
|
var O = $.bind(null, !1);
|
|
1175
1175
|
return O.isRequired = $.bind(null, !0), O;
|
|
1176
1176
|
}
|
|
1177
1177
|
function w(p) {
|
|
1178
|
-
function g(T, $, O, A,
|
|
1179
|
-
var
|
|
1180
|
-
if (
|
|
1181
|
-
var G = Z(
|
|
1178
|
+
function g(T, $, O, A, M, F) {
|
|
1179
|
+
var N = T[$], z = K(N);
|
|
1180
|
+
if (z !== p) {
|
|
1181
|
+
var G = Z(N);
|
|
1182
1182
|
return new y(
|
|
1183
|
-
"Invalid " + A + " `" +
|
|
1183
|
+
"Invalid " + A + " `" + M + "` of type " + ("`" + G + "` supplied to `" + O + "`, expected ") + ("`" + p + "`."),
|
|
1184
1184
|
{ expectedType: p }
|
|
1185
1185
|
);
|
|
1186
1186
|
}
|
|
@@ -1192,16 +1192,16 @@ function pn() {
|
|
|
1192
1192
|
return x(i);
|
|
1193
1193
|
}
|
|
1194
1194
|
function D(p) {
|
|
1195
|
-
function g(T, $, O, A,
|
|
1195
|
+
function g(T, $, O, A, M) {
|
|
1196
1196
|
if (typeof p != "function")
|
|
1197
|
-
return new y("Property `" +
|
|
1198
|
-
var
|
|
1199
|
-
if (!Array.isArray(
|
|
1200
|
-
var
|
|
1201
|
-
return new y("Invalid " + A + " `" +
|
|
1197
|
+
return new y("Property `" + M + "` of component `" + O + "` has invalid PropType notation inside arrayOf.");
|
|
1198
|
+
var F = T[$];
|
|
1199
|
+
if (!Array.isArray(F)) {
|
|
1200
|
+
var N = K(F);
|
|
1201
|
+
return new y("Invalid " + A + " `" + M + "` of type " + ("`" + N + "` supplied to `" + O + "`, expected an array."));
|
|
1202
1202
|
}
|
|
1203
|
-
for (var
|
|
1204
|
-
var G = p(
|
|
1203
|
+
for (var z = 0; z < F.length; z++) {
|
|
1204
|
+
var G = p(F, z, O, A, M + "[" + z + "]", t);
|
|
1205
1205
|
if (G instanceof Error)
|
|
1206
1206
|
return G;
|
|
1207
1207
|
}
|
|
@@ -1211,10 +1211,10 @@ function pn() {
|
|
|
1211
1211
|
}
|
|
1212
1212
|
function S() {
|
|
1213
1213
|
function p(g, T, $, O, A) {
|
|
1214
|
-
var
|
|
1215
|
-
if (!o(
|
|
1216
|
-
var
|
|
1217
|
-
return new y("Invalid " + O + " `" + A + "` of type " + ("`" +
|
|
1214
|
+
var M = g[T];
|
|
1215
|
+
if (!o(M)) {
|
|
1216
|
+
var F = K(M);
|
|
1217
|
+
return new y("Invalid " + O + " `" + A + "` of type " + ("`" + F + "` supplied to `" + $ + "`, expected a single ReactElement."));
|
|
1218
1218
|
}
|
|
1219
1219
|
return null;
|
|
1220
1220
|
}
|
|
@@ -1222,20 +1222,20 @@ function pn() {
|
|
|
1222
1222
|
}
|
|
1223
1223
|
function v() {
|
|
1224
1224
|
function p(g, T, $, O, A) {
|
|
1225
|
-
var
|
|
1226
|
-
if (!r.isValidElementType(
|
|
1227
|
-
var
|
|
1228
|
-
return new y("Invalid " + O + " `" + A + "` of type " + ("`" +
|
|
1225
|
+
var M = g[T];
|
|
1226
|
+
if (!r.isValidElementType(M)) {
|
|
1227
|
+
var F = K(M);
|
|
1228
|
+
return new y("Invalid " + O + " `" + A + "` of type " + ("`" + F + "` supplied to `" + $ + "`, expected a single ReactElement type."));
|
|
1229
1229
|
}
|
|
1230
1230
|
return null;
|
|
1231
1231
|
}
|
|
1232
1232
|
return x(p);
|
|
1233
1233
|
}
|
|
1234
|
-
function
|
|
1235
|
-
function g(T, $, O, A,
|
|
1234
|
+
function I(p) {
|
|
1235
|
+
function g(T, $, O, A, M) {
|
|
1236
1236
|
if (!(T[$] instanceof p)) {
|
|
1237
|
-
var
|
|
1238
|
-
return new y("Invalid " + A + " `" +
|
|
1237
|
+
var F = p.name || d, N = L(T[$]);
|
|
1238
|
+
return new y("Invalid " + A + " `" + M + "` of type " + ("`" + N + "` supplied to `" + O + "`, expected ") + ("instance of `" + F + "`."));
|
|
1239
1239
|
}
|
|
1240
1240
|
return null;
|
|
1241
1241
|
}
|
|
@@ -1246,28 +1246,28 @@ function pn() {
|
|
|
1246
1246
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
|
|
1247
1247
|
"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])."
|
|
1248
1248
|
) : a("Invalid argument supplied to oneOf, expected an array.")), i;
|
|
1249
|
-
function g(T, $, O, A,
|
|
1250
|
-
for (var
|
|
1251
|
-
if (h(
|
|
1249
|
+
function g(T, $, O, A, M) {
|
|
1250
|
+
for (var F = T[$], N = 0; N < p.length; N++)
|
|
1251
|
+
if (h(F, p[N]))
|
|
1252
1252
|
return null;
|
|
1253
|
-
var
|
|
1254
|
-
var
|
|
1255
|
-
return
|
|
1253
|
+
var z = JSON.stringify(p, function(ne, _) {
|
|
1254
|
+
var V = Z(_);
|
|
1255
|
+
return V === "symbol" ? String(_) : _;
|
|
1256
1256
|
});
|
|
1257
|
-
return new y("Invalid " + A + " `" +
|
|
1257
|
+
return new y("Invalid " + A + " `" + M + "` of value `" + String(F) + "` " + ("supplied to `" + O + "`, expected one of " + z + "."));
|
|
1258
1258
|
}
|
|
1259
1259
|
return x(g);
|
|
1260
1260
|
}
|
|
1261
1261
|
function U(p) {
|
|
1262
|
-
function g(T, $, O, A,
|
|
1262
|
+
function g(T, $, O, A, M) {
|
|
1263
1263
|
if (typeof p != "function")
|
|
1264
|
-
return new y("Property `" +
|
|
1265
|
-
var
|
|
1266
|
-
if (
|
|
1267
|
-
return new y("Invalid " + A + " `" +
|
|
1268
|
-
for (var
|
|
1269
|
-
if (n(
|
|
1270
|
-
var G = p(
|
|
1264
|
+
return new y("Property `" + M + "` of component `" + O + "` has invalid PropType notation inside objectOf.");
|
|
1265
|
+
var F = T[$], N = K(F);
|
|
1266
|
+
if (N !== "object")
|
|
1267
|
+
return new y("Invalid " + A + " `" + M + "` of type " + ("`" + N + "` supplied to `" + O + "`, expected an object."));
|
|
1268
|
+
for (var z in F)
|
|
1269
|
+
if (n(F, z)) {
|
|
1270
|
+
var G = p(F, z, O, A, M + "." + z, t);
|
|
1271
1271
|
if (G instanceof Error)
|
|
1272
1272
|
return G;
|
|
1273
1273
|
}
|
|
@@ -1285,15 +1285,15 @@ function pn() {
|
|
|
1285
1285
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + W(T) + " at index " + g + "."
|
|
1286
1286
|
), i;
|
|
1287
1287
|
}
|
|
1288
|
-
function $(O, A,
|
|
1289
|
-
for (var
|
|
1290
|
-
var ne = p[G], _ = ne(O, A,
|
|
1288
|
+
function $(O, A, M, F, N) {
|
|
1289
|
+
for (var z = [], G = 0; G < p.length; G++) {
|
|
1290
|
+
var ne = p[G], _ = ne(O, A, M, F, N, t);
|
|
1291
1291
|
if (_ == null)
|
|
1292
1292
|
return null;
|
|
1293
|
-
_.data && n(_.data, "expectedType") &&
|
|
1293
|
+
_.data && n(_.data, "expectedType") && z.push(_.data.expectedType);
|
|
1294
1294
|
}
|
|
1295
|
-
var
|
|
1296
|
-
return new y("Invalid " +
|
|
1295
|
+
var V = z.length > 0 ? ", expected one of type [" + z.join(", ") + "]" : "";
|
|
1296
|
+
return new y("Invalid " + F + " `" + N + "` supplied to " + ("`" + M + "`" + V + "."));
|
|
1297
1297
|
}
|
|
1298
1298
|
return x($);
|
|
1299
1299
|
}
|
|
@@ -1308,16 +1308,16 @@ function pn() {
|
|
|
1308
1308
|
(p || "React class") + ": " + g + " type `" + T + "." + $ + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + O + "`."
|
|
1309
1309
|
);
|
|
1310
1310
|
}
|
|
1311
|
-
function
|
|
1312
|
-
function g(T, $, O, A,
|
|
1313
|
-
var
|
|
1314
|
-
if (
|
|
1315
|
-
return new y("Invalid " + A + " `" +
|
|
1316
|
-
for (var
|
|
1317
|
-
var G = p[
|
|
1311
|
+
function k(p) {
|
|
1312
|
+
function g(T, $, O, A, M) {
|
|
1313
|
+
var F = T[$], N = K(F);
|
|
1314
|
+
if (N !== "object")
|
|
1315
|
+
return new y("Invalid " + A + " `" + M + "` of type `" + N + "` " + ("supplied to `" + O + "`, expected `object`."));
|
|
1316
|
+
for (var z in p) {
|
|
1317
|
+
var G = p[z];
|
|
1318
1318
|
if (typeof G != "function")
|
|
1319
|
-
return j(O, A,
|
|
1320
|
-
var ne = G(
|
|
1319
|
+
return j(O, A, M, z, Z(G));
|
|
1320
|
+
var ne = G(F, z, O, A, M + "." + z, t);
|
|
1321
1321
|
if (ne)
|
|
1322
1322
|
return ne;
|
|
1323
1323
|
}
|
|
@@ -1325,22 +1325,22 @@ function pn() {
|
|
|
1325
1325
|
}
|
|
1326
1326
|
return x(g);
|
|
1327
1327
|
}
|
|
1328
|
-
function
|
|
1329
|
-
function g(T, $, O, A,
|
|
1330
|
-
var
|
|
1331
|
-
if (
|
|
1332
|
-
return new y("Invalid " + A + " `" +
|
|
1333
|
-
var
|
|
1334
|
-
for (var G in
|
|
1328
|
+
function Y(p) {
|
|
1329
|
+
function g(T, $, O, A, M) {
|
|
1330
|
+
var F = T[$], N = K(F);
|
|
1331
|
+
if (N !== "object")
|
|
1332
|
+
return new y("Invalid " + A + " `" + M + "` of type `" + N + "` " + ("supplied to `" + O + "`, expected `object`."));
|
|
1333
|
+
var z = e({}, T[$], p);
|
|
1334
|
+
for (var G in z) {
|
|
1335
1335
|
var ne = p[G];
|
|
1336
1336
|
if (n(p, G) && typeof ne != "function")
|
|
1337
|
-
return j(O, A,
|
|
1337
|
+
return j(O, A, M, G, Z(ne));
|
|
1338
1338
|
if (!ne)
|
|
1339
1339
|
return new y(
|
|
1340
|
-
"Invalid " + A + " `" +
|
|
1340
|
+
"Invalid " + A + " `" + M + "` key `" + G + "` supplied to `" + O + "`.\nBad object: " + JSON.stringify(T[$], null, " ") + `
|
|
1341
1341
|
Valid keys: ` + JSON.stringify(Object.keys(p), null, " ")
|
|
1342
1342
|
);
|
|
1343
|
-
var _ = ne(
|
|
1343
|
+
var _ = ne(F, G, O, A, M + "." + G, t);
|
|
1344
1344
|
if (_)
|
|
1345
1345
|
return _;
|
|
1346
1346
|
}
|
|
@@ -1381,12 +1381,12 @@ Valid keys: ` + JSON.stringify(Object.keys(p), null, " ")
|
|
|
1381
1381
|
return !1;
|
|
1382
1382
|
}
|
|
1383
1383
|
}
|
|
1384
|
-
function
|
|
1384
|
+
function X(p, g) {
|
|
1385
1385
|
return p === "symbol" ? !0 : g ? g["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && g instanceof Symbol : !1;
|
|
1386
1386
|
}
|
|
1387
1387
|
function K(p) {
|
|
1388
1388
|
var g = typeof p;
|
|
1389
|
-
return Array.isArray(p) ? "array" : p instanceof RegExp ? "object" :
|
|
1389
|
+
return Array.isArray(p) ? "array" : p instanceof RegExp ? "object" : X(g, p) ? "symbol" : g;
|
|
1390
1390
|
}
|
|
1391
1391
|
function Z(p) {
|
|
1392
1392
|
if (typeof p > "u" || p === null)
|
|
@@ -1551,8 +1551,8 @@ var ae = /* @__PURE__ */ mn(), gn = function(e) {
|
|
|
1551
1551
|
}
|
|
1552
1552
|
try {
|
|
1553
1553
|
h(C);
|
|
1554
|
-
} catch (
|
|
1555
|
-
D(
|
|
1554
|
+
} catch (k) {
|
|
1555
|
+
D(k);
|
|
1556
1556
|
}
|
|
1557
1557
|
};
|
|
1558
1558
|
ln(E, {
|
|
@@ -1647,7 +1647,7 @@ const bs = (r) => {
|
|
|
1647
1647
|
spin: u = !1,
|
|
1648
1648
|
title: f
|
|
1649
1649
|
}) => {
|
|
1650
|
-
const [d, m] =
|
|
1650
|
+
const [d, m] = J(r), h = (r == null ? void 0 : r.startsWith("http")) || (r == null ? void 0 : r.startsWith("/")), y = h && (r == null ? void 0 : r.toLowerCase().endsWith(".svg")), x = Gt(`assets/svg/${r}.svg`), w = Gt(
|
|
1651
1651
|
`assets/svg/${n}.svg`
|
|
1652
1652
|
), E = {
|
|
1653
1653
|
img: `${l ? "smp-image-interactable" : ""}`,
|
|
@@ -1728,25 +1728,25 @@ const bs = (r) => {
|
|
|
1728
1728
|
helperText: D = !1,
|
|
1729
1729
|
error: S,
|
|
1730
1730
|
appearance: v = "base",
|
|
1731
|
-
fullWidth:
|
|
1731
|
+
fullWidth: I = !1,
|
|
1732
1732
|
_dataComponent: C = "textfield",
|
|
1733
1733
|
width: U
|
|
1734
1734
|
}) => {
|
|
1735
|
-
const R = S ? "danger" : l, P = S || l == "danger" ? "error" : o, j = D || !!S,
|
|
1736
|
-
s == null || s(
|
|
1737
|
-
},
|
|
1738
|
-
wrapper: `smp-textfield-wrapper ${
|
|
1735
|
+
const R = S ? "danger" : l, P = S || l == "danger" ? "error" : o, j = D || !!S, k = (X) => {
|
|
1736
|
+
s == null || s(X.target.value);
|
|
1737
|
+
}, Y = {
|
|
1738
|
+
wrapper: `smp-textfield-wrapper ${I ? "smp-textfield-fullWidth" : ""}`,
|
|
1739
1739
|
container: `smp-textfield ${r ? "smp-textfield-disabled" : ""} ${a ? "smp-textfield-placeholder" : ""} ${c ? `smp-textfield-${c}` : ""} ${R ? `smp-textfield-${R}` : ""} ${v ? `smp-textfield-${v}` : ""} ${i ? "" : "smp-textfield-readOnly"}`,
|
|
1740
1740
|
input: "smp-textfield-input "
|
|
1741
1741
|
};
|
|
1742
|
-
u && (u != "notSelectable" || i) && (
|
|
1742
|
+
u && (u != "notSelectable" || i) && (Y.container += `smp-textfield-variant-${u}`);
|
|
1743
1743
|
const H = U ? { "--smp-textField-width-base": U } : void 0;
|
|
1744
|
-
return /* @__PURE__ */ b.jsxs("div", { className:
|
|
1744
|
+
return /* @__PURE__ */ b.jsxs("div", { className: Y.wrapper, "data-component": C, children: [
|
|
1745
1745
|
E && /* @__PURE__ */ b.jsx(et, { label: E, disabled: r }),
|
|
1746
1746
|
/* @__PURE__ */ b.jsxs(
|
|
1747
1747
|
"div",
|
|
1748
1748
|
{
|
|
1749
|
-
className:
|
|
1749
|
+
className: Y.container,
|
|
1750
1750
|
ref: m,
|
|
1751
1751
|
style: H,
|
|
1752
1752
|
children: [
|
|
@@ -1757,9 +1757,9 @@ const bs = (r) => {
|
|
|
1757
1757
|
type: x,
|
|
1758
1758
|
value: e,
|
|
1759
1759
|
placeholder: a,
|
|
1760
|
-
onChange:
|
|
1760
|
+
onChange: k,
|
|
1761
1761
|
onBlur: n,
|
|
1762
|
-
className:
|
|
1762
|
+
className: Y.input,
|
|
1763
1763
|
disabled: r,
|
|
1764
1764
|
readOnly: !i,
|
|
1765
1765
|
onKeyDown: y,
|
|
@@ -1797,7 +1797,7 @@ function yr({
|
|
|
1797
1797
|
containerHeight: t,
|
|
1798
1798
|
overscan: n = 5
|
|
1799
1799
|
}) {
|
|
1800
|
-
const [s, a] =
|
|
1800
|
+
const [s, a] = J(0), i = ve(null), o = r.length * e, c = Math.max(0, Math.floor(s / e) - n), l = Math.min(
|
|
1801
1801
|
r.length - 1,
|
|
1802
1802
|
Math.floor((s + t) / e) + n
|
|
1803
1803
|
), u = [];
|
|
@@ -1859,7 +1859,7 @@ const bn = 10, vr = ({
|
|
|
1859
1859
|
onKeyDown: l
|
|
1860
1860
|
}) => {
|
|
1861
1861
|
var P;
|
|
1862
|
-
const [u, f] =
|
|
1862
|
+
const [u, f] = J(""), d = 24, [m, h] = J(
|
|
1863
1863
|
a !== null ? a : -1
|
|
1864
1864
|
), y = s !== void 0 ? s : e.length > bn, x = u ? e.filter(
|
|
1865
1865
|
(j) => j.label.toLowerCase().includes(u.toLowerCase())
|
|
@@ -1876,17 +1876,17 @@ const bn = 10, vr = ({
|
|
|
1876
1876
|
}, [a]), ie(() => {
|
|
1877
1877
|
m >= 0 && m < x.length && v(m);
|
|
1878
1878
|
}, [m, x]);
|
|
1879
|
-
const
|
|
1879
|
+
const I = (j) => {
|
|
1880
1880
|
if (j.key === "ArrowDown" || j.key === "ArrowUp") {
|
|
1881
1881
|
j.preventDefault();
|
|
1882
|
-
let
|
|
1883
|
-
j.key === "ArrowDown" ?
|
|
1882
|
+
let k = m;
|
|
1883
|
+
j.key === "ArrowDown" ? k = m < x.length - 1 ? m + 1 : 0 : j.key === "ArrowUp" && (k = m > 0 ? m - 1 : x.length - 1), h(k);
|
|
1884
1884
|
} else j.key === "Enter" ? m >= 0 && m < x.length && (c == null || c(x[m])) : j.key === "Escape" && (j.preventDefault(), j.stopPropagation());
|
|
1885
1885
|
l && l(j);
|
|
1886
1886
|
}, C = (j) => {
|
|
1887
|
-
|
|
1887
|
+
I(j);
|
|
1888
1888
|
}, U = (j) => {
|
|
1889
|
-
|
|
1889
|
+
I(j);
|
|
1890
1890
|
}, R = {
|
|
1891
1891
|
wrapper: "smp-list",
|
|
1892
1892
|
container: "smp-list-container",
|
|
@@ -1923,7 +1923,7 @@ const bn = 10, vr = ({
|
|
|
1923
1923
|
"aria-label": "List",
|
|
1924
1924
|
onKeyDown: U,
|
|
1925
1925
|
"aria-activedescendant": m >= 0 && m < x.length ? (P = x[m]) == null ? void 0 : P.id : void 0,
|
|
1926
|
-
children: /* @__PURE__ */ b.jsx("div", { ...S, className: R.virtualScroll, children: E.map(({ item: j, index:
|
|
1926
|
+
children: /* @__PURE__ */ b.jsx("div", { ...S, className: R.virtualScroll, children: E.map(({ item: j, index: k, offsetTop: Y }) => {
|
|
1927
1927
|
const H = i.includes(j.id);
|
|
1928
1928
|
return (
|
|
1929
1929
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
@@ -1932,18 +1932,18 @@ const bn = 10, vr = ({
|
|
|
1932
1932
|
{
|
|
1933
1933
|
role: "option",
|
|
1934
1934
|
id: j.id,
|
|
1935
|
-
"aria-selected": m ===
|
|
1935
|
+
"aria-selected": m === k ? "true" : "false",
|
|
1936
1936
|
tabIndex: -1,
|
|
1937
|
-
className: `${R.listItem} ${m ===
|
|
1937
|
+
className: `${R.listItem} ${m === k ? "selected-item" : ""}`,
|
|
1938
1938
|
"aria-label": j.id + "-" + j.label,
|
|
1939
1939
|
style: {
|
|
1940
1940
|
height: `${d}px`,
|
|
1941
1941
|
lineHeight: `calc(${d}px - 2*2px)`,
|
|
1942
1942
|
// lineHeight - 2*padding
|
|
1943
|
-
transform: `translateY(${
|
|
1943
|
+
transform: `translateY(${Y}px)`
|
|
1944
1944
|
},
|
|
1945
1945
|
onClick: () => {
|
|
1946
|
-
c == null || c(j), h(
|
|
1946
|
+
c == null || c(j), h(k);
|
|
1947
1947
|
},
|
|
1948
1948
|
children: [
|
|
1949
1949
|
qe(j.id, j.label, t),
|
|
@@ -1965,7 +1965,7 @@ const bn = 10, vr = ({
|
|
|
1965
1965
|
optionalDisplayValue: t,
|
|
1966
1966
|
...n
|
|
1967
1967
|
}) => {
|
|
1968
|
-
const [s, a] =
|
|
1968
|
+
const [s, a] = J(
|
|
1969
1969
|
qe(e, t, r)
|
|
1970
1970
|
);
|
|
1971
1971
|
return ie(() => {
|
|
@@ -2000,17 +2000,17 @@ const bn = 10, vr = ({
|
|
|
2000
2000
|
_multiActiveIndex: d,
|
|
2001
2001
|
...m
|
|
2002
2002
|
}) => {
|
|
2003
|
-
const [h, y] =
|
|
2003
|
+
const [h, y] = J(r), [x, w] = J(e), [E, D] = J(!1), [S, v] = J(t || []), [I, C] = J(0), [U, R] = J([r]), { anchorRef: P, targetRef: j, anchorWidth: k } = bt({
|
|
2004
2004
|
position: "bottom",
|
|
2005
2005
|
enabled: E
|
|
2006
2006
|
});
|
|
2007
2007
|
ze(j, () => D(!1));
|
|
2008
|
-
const
|
|
2009
|
-
W.length >= a ? c && f &&
|
|
2008
|
+
const Y = xn(400), H = (W) => {
|
|
2009
|
+
W.length >= a ? c && f && Y(async () => {
|
|
2010
2010
|
const L = await f(c, W);
|
|
2011
2011
|
v(L), C(L.length > 0 ? 0 : -1), D(!0);
|
|
2012
2012
|
}) : D(!1), y(W), w(e), l || u == null || u(W, e);
|
|
2013
|
-
},
|
|
2013
|
+
}, X = (W) => {
|
|
2014
2014
|
l ? (y(""), w("")) : (y(W.id), w(W.label)), u == null || u(W.id, W.label);
|
|
2015
2015
|
const L = S.findIndex((p) => p.id === W.id);
|
|
2016
2016
|
C(L), R([W.id]), D(!1);
|
|
@@ -2018,12 +2018,12 @@ const bn = 10, vr = ({
|
|
|
2018
2018
|
W.key === "Escape" && (D(!1), C(-1));
|
|
2019
2019
|
}, Z = (W) => {
|
|
2020
2020
|
if ((W.key === "ArrowDown" || W.key === "ArrowUp") && (W.preventDefault(), E)) {
|
|
2021
|
-
const L = W.key === "ArrowDown" ? (
|
|
2021
|
+
const L = W.key === "ArrowDown" ? (I + 1) % S.length : (I - 1 + S.length) % S.length;
|
|
2022
2022
|
C(L);
|
|
2023
2023
|
}
|
|
2024
2024
|
switch (W.key) {
|
|
2025
2025
|
case "Enter":
|
|
2026
|
-
|
|
2026
|
+
I >= 0 && I < S.length ? X(S[I]) : l && (u == null || u(h, ""), D(!1), y(""), w(""));
|
|
2027
2027
|
break;
|
|
2028
2028
|
case "Escape":
|
|
2029
2029
|
D(!1), C(-1);
|
|
@@ -2052,11 +2052,11 @@ const bn = 10, vr = ({
|
|
|
2052
2052
|
{
|
|
2053
2053
|
options: S,
|
|
2054
2054
|
displayMode: s,
|
|
2055
|
-
onClick:
|
|
2055
|
+
onClick: X,
|
|
2056
2056
|
ref: j,
|
|
2057
|
-
selectedIndex:
|
|
2057
|
+
selectedIndex: I,
|
|
2058
2058
|
activeIndex: d || U,
|
|
2059
|
-
width:
|
|
2059
|
+
width: k,
|
|
2060
2060
|
showFilter: !1,
|
|
2061
2061
|
onKeyDown: K
|
|
2062
2062
|
}
|
|
@@ -2133,7 +2133,7 @@ const bn = 10, vr = ({
|
|
|
2133
2133
|
onClick: d,
|
|
2134
2134
|
onOptionsRequest: m
|
|
2135
2135
|
}) => {
|
|
2136
|
-
const [h, y] =
|
|
2136
|
+
const [h, y] = J(r);
|
|
2137
2137
|
ie(() => {
|
|
2138
2138
|
!h && m && e && m(e, void 0).then((E) => y(E)).catch((E) => {
|
|
2139
2139
|
console.error(
|
|
@@ -2226,7 +2226,7 @@ const bn = 10, vr = ({
|
|
|
2226
2226
|
backgroundColor: a,
|
|
2227
2227
|
isDraggable: i = !1
|
|
2228
2228
|
}) => {
|
|
2229
|
-
const [o, c] =
|
|
2229
|
+
const [o, c] = J(null), l = {
|
|
2230
2230
|
container: `${["smp-chips-container"]}`,
|
|
2231
2231
|
element: "smp-chips-element"
|
|
2232
2232
|
}, u = (m) => {
|
|
@@ -2333,15 +2333,15 @@ const Tn = ({
|
|
|
2333
2333
|
multiActiveIndex: l,
|
|
2334
2334
|
...u
|
|
2335
2335
|
}) => {
|
|
2336
|
-
const [f, d] =
|
|
2336
|
+
const [f, d] = J(!1), [m, h] = J(t), [y, x] = J(-1), [w, E] = J([r]), D = Pr(), { anchorRef: S, targetRef: v, anchorWidth: I } = bt({
|
|
2337
2337
|
position: "bottom",
|
|
2338
2338
|
enabled: f
|
|
2339
2339
|
});
|
|
2340
2340
|
ze(v, () => d(!1)), Sr(f, v);
|
|
2341
2341
|
const C = (j) => {
|
|
2342
2342
|
e == null || e(j.id, j.label);
|
|
2343
|
-
const
|
|
2344
|
-
x(
|
|
2343
|
+
const k = m.findIndex((Y) => Y.id === j.id);
|
|
2344
|
+
x(k), E([j.id]), d(!1);
|
|
2345
2345
|
}, U = (j) => {
|
|
2346
2346
|
j.key === "Escape" && (d(!1), x(-1));
|
|
2347
2347
|
}, R = (j) => {
|
|
@@ -2386,7 +2386,7 @@ const Tn = ({
|
|
|
2386
2386
|
ref: v,
|
|
2387
2387
|
selectedIndex: y,
|
|
2388
2388
|
activeIndex: l || w,
|
|
2389
|
-
width:
|
|
2389
|
+
width: I,
|
|
2390
2390
|
onClick: C,
|
|
2391
2391
|
onKeyDown: U
|
|
2392
2392
|
}
|
|
@@ -2735,26 +2735,26 @@ class Qe extends tt {
|
|
|
2735
2735
|
} : o;
|
|
2736
2736
|
const m = this.resolve(e, s);
|
|
2737
2737
|
let h = m == null ? void 0 : m.res;
|
|
2738
|
-
const y = (m == null ? void 0 : m.usedKey) || o, x = (m == null ? void 0 : m.exactUsedKey) || o, w = ["[object Number]", "[object Function]", "[object RegExp]"], E = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, D = !this.i18nFormat || this.i18nFormat.handleAsObject, S = s.count !== void 0 && !B(s.count), v = Qe.hasDefaultValue(s),
|
|
2738
|
+
const y = (m == null ? void 0 : m.usedKey) || o, x = (m == null ? void 0 : m.exactUsedKey) || o, w = ["[object Number]", "[object Function]", "[object RegExp]"], E = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, D = !this.i18nFormat || this.i18nFormat.handleAsObject, S = s.count !== void 0 && !B(s.count), v = Qe.hasDefaultValue(s), I = S ? this.pluralResolver.getSuffix(f, s.count, s) : "", C = s.ordinal && S ? this.pluralResolver.getSuffix(f, s.count, {
|
|
2739
2739
|
ordinal: !1
|
|
2740
|
-
}) : "", U = S && !s.ordinal && s.count === 0, R = U && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${
|
|
2740
|
+
}) : "", U = S && !s.ordinal && s.count === 0, R = U && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${I}`] || s[`defaultValue${C}`] || s.defaultValue;
|
|
2741
2741
|
let P = h;
|
|
2742
2742
|
D && !h && v && (P = R);
|
|
2743
|
-
const j = er(P),
|
|
2744
|
-
if (D && P && j && w.indexOf(
|
|
2743
|
+
const j = er(P), k = Object.prototype.toString.apply(P);
|
|
2744
|
+
if (D && P && j && w.indexOf(k) < 0 && !(B(E) && Array.isArray(P))) {
|
|
2745
2745
|
if (!s.returnObjects && !this.options.returnObjects) {
|
|
2746
2746
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
2747
|
-
const
|
|
2747
|
+
const Y = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(y, P, {
|
|
2748
2748
|
...s,
|
|
2749
2749
|
ns: c
|
|
2750
2750
|
}) : `key '${o} (${this.language})' returned an object instead of string.`;
|
|
2751
|
-
return a ? (m.res =
|
|
2751
|
+
return a ? (m.res = Y, m.usedParams = this.getUsedParamsDetails(s), m) : Y;
|
|
2752
2752
|
}
|
|
2753
2753
|
if (i) {
|
|
2754
|
-
const
|
|
2754
|
+
const Y = Array.isArray(P), H = Y ? [] : {}, X = Y ? x : y;
|
|
2755
2755
|
for (const K in P)
|
|
2756
2756
|
if (Object.prototype.hasOwnProperty.call(P, K)) {
|
|
2757
|
-
const Z = `${
|
|
2757
|
+
const Z = `${X}${i}${K}`;
|
|
2758
2758
|
v && !h ? H[K] = this.translate(Z, {
|
|
2759
2759
|
...s,
|
|
2760
2760
|
defaultValue: er(R) ? R[K] : void 0,
|
|
@@ -2771,10 +2771,10 @@ class Qe extends tt {
|
|
|
2771
2771
|
} else if (D && B(E) && Array.isArray(h))
|
|
2772
2772
|
h = h.join(E), h && (h = this.extendTranslation(h, e, s, n));
|
|
2773
2773
|
else {
|
|
2774
|
-
let
|
|
2775
|
-
!this.isValidLookup(h) && v && (
|
|
2774
|
+
let Y = !1, H = !1;
|
|
2775
|
+
!this.isValidLookup(h) && v && (Y = !0, h = R), this.isValidLookup(h) || (H = !0, h = o);
|
|
2776
2776
|
const K = (s.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && H ? void 0 : h, Z = v && R !== h && this.options.updateMissing;
|
|
2777
|
-
if (H ||
|
|
2777
|
+
if (H || Y || Z) {
|
|
2778
2778
|
if (this.logger.log(Z ? "updateKey" : "missingKey", f, l, o, Z ? R : h), i) {
|
|
2779
2779
|
const g = this.resolve(o, {
|
|
2780
2780
|
...s,
|
|
@@ -2800,7 +2800,7 @@ class Qe extends tt {
|
|
|
2800
2800
|
});
|
|
2801
2801
|
}) : p(W, o, R));
|
|
2802
2802
|
}
|
|
2803
|
-
h = this.extendTranslation(h, e, s, m, n), H && h === o && this.options.appendNamespaceToMissingKey && (h = `${l}${u}${o}`), (H ||
|
|
2803
|
+
h = this.extendTranslation(h, e, s, m, n), H && h === o && this.options.appendNamespaceToMissingKey && (h = `${l}${u}${o}`), (H || Y) && this.options.parseMissingKeyHandler && (h = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${l}${u}${o}` : o, Y ? h : void 0, s));
|
|
2804
2804
|
}
|
|
2805
2805
|
return a ? (m.res = h, m.usedParams = this.getUsedParamsDetails(s), m) : h;
|
|
2806
2806
|
}
|
|
@@ -2858,11 +2858,11 @@ class Qe extends tt {
|
|
|
2858
2858
|
f.forEach((x) => {
|
|
2859
2859
|
var w, E;
|
|
2860
2860
|
this.isValidLookup(n) || (o = x, !Qt[`${y[0]}-${x}`] && ((w = this.utils) != null && w.hasLoadedNamespace) && !((E = this.utils) != null && E.hasLoadedNamespace(o)) && (Qt[`${y[0]}-${x}`] = !0, this.logger.warn(`key "${s}" for languages "${y.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!!!")), y.forEach((D) => {
|
|
2861
|
-
var
|
|
2861
|
+
var I;
|
|
2862
2862
|
if (this.isValidLookup(n)) return;
|
|
2863
2863
|
i = D;
|
|
2864
2864
|
const S = [u];
|
|
2865
|
-
if ((
|
|
2865
|
+
if ((I = this.i18nFormat) != null && I.addLookupKeys)
|
|
2866
2866
|
this.i18nFormat.addLookupKeys(S, u, D, x, t);
|
|
2867
2867
|
else {
|
|
2868
2868
|
let C;
|
|
@@ -3828,13 +3828,13 @@ function ss({
|
|
|
3828
3828
|
if (!n) return;
|
|
3829
3829
|
const L = new Date(n);
|
|
3830
3830
|
return isNaN(L.getTime()) ? void 0 : L;
|
|
3831
|
-
}, [o] =
|
|
3831
|
+
}, [o] = J(/* @__PURE__ */ new Date()), [c, l] = J(
|
|
3832
3832
|
r || i() || /* @__PURE__ */ new Date()
|
|
3833
|
-
), [u, f] =
|
|
3833
|
+
), [u, f] = J(
|
|
3834
3834
|
c ? c.getMonth() : (/* @__PURE__ */ new Date()).getMonth()
|
|
3835
|
-
), [d, m] =
|
|
3835
|
+
), [d, m] = J(
|
|
3836
3836
|
c ? c.getFullYear() : (/* @__PURE__ */ new Date()).getFullYear()
|
|
3837
|
-
), [h, y] =
|
|
3837
|
+
), [h, y] = J(
|
|
3838
3838
|
c ? c.getDate() : null
|
|
3839
3839
|
), x = ve(null), w = ve([]), E = [
|
|
3840
3840
|
a(fe.JANUARY),
|
|
@@ -3883,7 +3883,7 @@ function ss({
|
|
|
3883
3883
|
return $ >= g && $ <= T;
|
|
3884
3884
|
}), v = (L) => {
|
|
3885
3885
|
S(L) || (l(L), y(L.getDate()), e && e(qr(L)));
|
|
3886
|
-
},
|
|
3886
|
+
}, I = () => {
|
|
3887
3887
|
u === 0 ? (f(11), m(d - 1)) : f(u - 1), y(1);
|
|
3888
3888
|
}, C = () => {
|
|
3889
3889
|
u === 11 ? (f(0), m(d + 1)) : f(u + 1), y(1);
|
|
@@ -3903,13 +3903,13 @@ function ss({
|
|
|
3903
3903
|
{
|
|
3904
3904
|
let O = $ + 1, A = new Date(d, u, O);
|
|
3905
3905
|
if (O > T) {
|
|
3906
|
-
const
|
|
3907
|
-
O = 1, A = new Date(
|
|
3908
|
-
|
|
3906
|
+
const M = u === 11 ? d + 1 : d, F = u === 11 ? 0 : u + 1;
|
|
3907
|
+
O = 1, A = new Date(M, F, O), C(), setTimeout(() => {
|
|
3908
|
+
k(1, "forward");
|
|
3909
3909
|
}, 0);
|
|
3910
3910
|
return;
|
|
3911
3911
|
}
|
|
3912
|
-
S(A) ?
|
|
3912
|
+
S(A) ? k(O, "forward") : P(O);
|
|
3913
3913
|
}
|
|
3914
3914
|
break;
|
|
3915
3915
|
case "Tab":
|
|
@@ -3919,13 +3919,13 @@ function ss({
|
|
|
3919
3919
|
{
|
|
3920
3920
|
let O = $ - 1, A = new Date(d, u, O);
|
|
3921
3921
|
if (O < 1) {
|
|
3922
|
-
const
|
|
3923
|
-
O =
|
|
3924
|
-
N
|
|
3922
|
+
const M = u === 0 ? d - 1 : d, F = u === 0 ? 11 : u - 1, N = U(M, F);
|
|
3923
|
+
O = N, A = new Date(M, F, O), I(), setTimeout(() => {
|
|
3924
|
+
k(N, "backward");
|
|
3925
3925
|
}, 0);
|
|
3926
3926
|
return;
|
|
3927
3927
|
}
|
|
3928
|
-
S(A) ?
|
|
3928
|
+
S(A) ? k(O, "backward") : P(O);
|
|
3929
3929
|
}
|
|
3930
3930
|
break;
|
|
3931
3931
|
case "ArrowUp":
|
|
@@ -3933,13 +3933,13 @@ function ss({
|
|
|
3933
3933
|
{
|
|
3934
3934
|
let O = $ - 7, A = new Date(d, u, O);
|
|
3935
3935
|
if (O < 1) {
|
|
3936
|
-
const
|
|
3937
|
-
O = U(
|
|
3938
|
-
|
|
3936
|
+
const M = u === 0 ? d - 1 : d, F = u === 0 ? 11 : u - 1;
|
|
3937
|
+
O = U(M, F) + O, A = new Date(M, F, O), I(), setTimeout(() => {
|
|
3938
|
+
k(O, "backward");
|
|
3939
3939
|
}, 0);
|
|
3940
3940
|
return;
|
|
3941
3941
|
}
|
|
3942
|
-
S(A) ?
|
|
3942
|
+
S(A) ? k(O, "backward") : P(O);
|
|
3943
3943
|
}
|
|
3944
3944
|
break;
|
|
3945
3945
|
case "ArrowDown":
|
|
@@ -3947,28 +3947,28 @@ function ss({
|
|
|
3947
3947
|
{
|
|
3948
3948
|
let O = $ + 7, A = new Date(d, u, O);
|
|
3949
3949
|
if (O > T) {
|
|
3950
|
-
const
|
|
3951
|
-
O = O - T, A = new Date(
|
|
3952
|
-
|
|
3950
|
+
const M = u === 11 ? d + 1 : d, F = u === 11 ? 0 : u + 1;
|
|
3951
|
+
O = O - T, A = new Date(M, F, O), C(), setTimeout(() => {
|
|
3952
|
+
k(O, "forward");
|
|
3953
3953
|
}, 0);
|
|
3954
3954
|
return;
|
|
3955
3955
|
}
|
|
3956
|
-
S(A) ?
|
|
3956
|
+
S(A) ? k(O, "forward") : P(O);
|
|
3957
3957
|
}
|
|
3958
3958
|
break;
|
|
3959
3959
|
case "Home":
|
|
3960
|
-
L.preventDefault(),
|
|
3960
|
+
L.preventDefault(), k(1, "forward");
|
|
3961
3961
|
break;
|
|
3962
3962
|
case "End":
|
|
3963
|
-
L.preventDefault(),
|
|
3963
|
+
L.preventDefault(), k(T, "backward");
|
|
3964
3964
|
break;
|
|
3965
3965
|
case "PageUp":
|
|
3966
|
-
L.preventDefault(),
|
|
3966
|
+
L.preventDefault(), I(), setTimeout(() => {
|
|
3967
3967
|
const O = U(
|
|
3968
3968
|
u === 0 ? d - 1 : d,
|
|
3969
3969
|
u === 0 ? 11 : u - 1
|
|
3970
3970
|
), A = Math.min($, O);
|
|
3971
|
-
|
|
3971
|
+
k(A, "forward");
|
|
3972
3972
|
}, 0);
|
|
3973
3973
|
break;
|
|
3974
3974
|
case "PageDown":
|
|
@@ -3977,7 +3977,7 @@ function ss({
|
|
|
3977
3977
|
u === 11 ? d + 1 : d,
|
|
3978
3978
|
u === 11 ? 0 : u + 1
|
|
3979
3979
|
), A = Math.min($, O);
|
|
3980
|
-
|
|
3980
|
+
k(A, "forward");
|
|
3981
3981
|
}, 0);
|
|
3982
3982
|
break;
|
|
3983
3983
|
case " ":
|
|
@@ -3989,7 +3989,7 @@ function ss({
|
|
|
3989
3989
|
L.preventDefault(), v(g);
|
|
3990
3990
|
break;
|
|
3991
3991
|
}
|
|
3992
|
-
},
|
|
3992
|
+
}, k = (L, p) => {
|
|
3993
3993
|
const g = U(d, u);
|
|
3994
3994
|
if (p === "forward") {
|
|
3995
3995
|
for (let T = L; T <= g; T++) {
|
|
@@ -4000,19 +4000,19 @@ function ss({
|
|
|
4000
4000
|
}
|
|
4001
4001
|
}
|
|
4002
4002
|
C(), setTimeout(() => {
|
|
4003
|
-
|
|
4003
|
+
k(1, "forward");
|
|
4004
4004
|
}, 0);
|
|
4005
4005
|
} else {
|
|
4006
4006
|
for (let A = L; A >= 1; A--) {
|
|
4007
|
-
const
|
|
4008
|
-
if (!S(
|
|
4007
|
+
const M = new Date(d, u, A);
|
|
4008
|
+
if (!S(M)) {
|
|
4009
4009
|
P(A);
|
|
4010
4010
|
return;
|
|
4011
4011
|
}
|
|
4012
4012
|
}
|
|
4013
4013
|
const T = u === 0 ? d - 1 : d, $ = u === 0 ? 11 : u - 1, O = U(T, $);
|
|
4014
|
-
|
|
4015
|
-
|
|
4014
|
+
I(), setTimeout(() => {
|
|
4015
|
+
k(O, "backward");
|
|
4016
4016
|
}, 0);
|
|
4017
4017
|
}
|
|
4018
4018
|
}, H = (() => {
|
|
@@ -4024,13 +4024,13 @@ function ss({
|
|
|
4024
4024
|
g.push($);
|
|
4025
4025
|
}
|
|
4026
4026
|
return g;
|
|
4027
|
-
})(),
|
|
4027
|
+
})(), X = [];
|
|
4028
4028
|
let K = [];
|
|
4029
4029
|
H.forEach((L, p) => {
|
|
4030
4030
|
if (K.push(L), K.length === 7 || p === H.length - 1) {
|
|
4031
4031
|
for (; K.length < 7; )
|
|
4032
4032
|
K.push(null);
|
|
4033
|
-
|
|
4033
|
+
X.push(K), K = [];
|
|
4034
4034
|
}
|
|
4035
4035
|
}), ie(() => {
|
|
4036
4036
|
var L;
|
|
@@ -4076,7 +4076,7 @@ function ss({
|
|
|
4076
4076
|
/* @__PURE__ */ b.jsx(
|
|
4077
4077
|
Le,
|
|
4078
4078
|
{
|
|
4079
|
-
onClick:
|
|
4079
|
+
onClick: I,
|
|
4080
4080
|
ariaLabel: a(yt.PREVIOUS_MONTH),
|
|
4081
4081
|
bindValue: "<",
|
|
4082
4082
|
appearance: "ghost",
|
|
@@ -4122,7 +4122,7 @@ function ss({
|
|
|
4122
4122
|
},
|
|
4123
4123
|
L.value
|
|
4124
4124
|
)) }) }),
|
|
4125
|
-
/* @__PURE__ */ b.jsx("tbody", { children:
|
|
4125
|
+
/* @__PURE__ */ b.jsx("tbody", { children: X.map((L, p) => /* @__PURE__ */ b.jsx("tr", { children: L.map((g, T) => {
|
|
4126
4126
|
const $ = p * 7 + T;
|
|
4127
4127
|
if (g === null)
|
|
4128
4128
|
return /* @__PURE__ */ b.jsx(
|
|
@@ -4137,26 +4137,26 @@ function ss({
|
|
|
4137
4137
|
},
|
|
4138
4138
|
`empty-${T}`
|
|
4139
4139
|
);
|
|
4140
|
-
const O = g.getDate() === o.getDate() && g.getMonth() === o.getMonth() && g.getFullYear() === o.getFullYear(), A = c && g.getDate() === c.getDate() && g.getMonth() === c.getMonth() && g.getFullYear() === c.getFullYear(),
|
|
4140
|
+
const O = g.getDate() === o.getDate() && g.getMonth() === o.getMonth() && g.getFullYear() === o.getFullYear(), A = c && g.getDate() === c.getDate() && g.getMonth() === c.getMonth() && g.getFullYear() === c.getFullYear(), M = h === g.getDate(), F = S(g);
|
|
4141
4141
|
return /* @__PURE__ */ b.jsx(
|
|
4142
4142
|
"td",
|
|
4143
4143
|
{
|
|
4144
4144
|
role: "gridcell",
|
|
4145
4145
|
"aria-selected": A,
|
|
4146
|
-
tabIndex:
|
|
4146
|
+
tabIndex: M ? 0 : -1,
|
|
4147
4147
|
onClick: () => v(g),
|
|
4148
|
-
onKeyDown: (
|
|
4148
|
+
onKeyDown: (N) => j(N, $),
|
|
4149
4149
|
"aria-label": `${g.getDate()} ${E[g.getMonth()]} ${g.getFullYear()}`,
|
|
4150
4150
|
"data-selected": A,
|
|
4151
|
-
"aria-disabled":
|
|
4152
|
-
ref: (
|
|
4153
|
-
w.current[$] =
|
|
4151
|
+
"aria-disabled": F,
|
|
4152
|
+
ref: (N) => {
|
|
4153
|
+
w.current[$] = N;
|
|
4154
4154
|
},
|
|
4155
4155
|
className: Z.td(
|
|
4156
4156
|
O,
|
|
4157
4157
|
A,
|
|
4158
|
-
|
|
4159
|
-
|
|
4158
|
+
M,
|
|
4159
|
+
F
|
|
4160
4160
|
),
|
|
4161
4161
|
children: g.getDate()
|
|
4162
4162
|
},
|
|
@@ -4178,7 +4178,7 @@ const as = ({
|
|
|
4178
4178
|
isEditable: s = !0,
|
|
4179
4179
|
...a
|
|
4180
4180
|
}) => {
|
|
4181
|
-
const [i, o] =
|
|
4181
|
+
const [i, o] = J(!1), [c, l] = J(r || ""), [u, f] = J(""), { anchorRef: d, targetRef: m } = bt({
|
|
4182
4182
|
position: "bottom",
|
|
4183
4183
|
enabled: i
|
|
4184
4184
|
});
|
|
@@ -4220,7 +4220,7 @@ const as = ({
|
|
|
4220
4220
|
t && t(R && U || C);
|
|
4221
4221
|
}, v = (C) => {
|
|
4222
4222
|
f(C);
|
|
4223
|
-
},
|
|
4223
|
+
}, I = (C) => {
|
|
4224
4224
|
C.key === "Enter" && (C.preventDefault(), S(u));
|
|
4225
4225
|
};
|
|
4226
4226
|
return /* @__PURE__ */ b.jsxs("div", { "data-component": "date-picker", children: [
|
|
@@ -4231,7 +4231,7 @@ const as = ({
|
|
|
4231
4231
|
placeholder: e,
|
|
4232
4232
|
onBlur: E,
|
|
4233
4233
|
onChange: v,
|
|
4234
|
-
onKeyDown:
|
|
4234
|
+
onKeyDown: I,
|
|
4235
4235
|
shapeIcon: "calendar",
|
|
4236
4236
|
onShapeIconClick: w,
|
|
4237
4237
|
ref: d,
|
|
@@ -4316,7 +4316,7 @@ const as = ({
|
|
|
4316
4316
|
}
|
|
4317
4317
|
);
|
|
4318
4318
|
}, os = ({ ...r }) => {
|
|
4319
|
-
const [e, t] =
|
|
4319
|
+
const [e, t] = J(!1), n = e ? "visibility-off" : "visibility";
|
|
4320
4320
|
return /* @__PURE__ */ b.jsx(
|
|
4321
4321
|
je,
|
|
4322
4322
|
{
|
|
@@ -4329,7 +4329,7 @@ const as = ({
|
|
|
4329
4329
|
}
|
|
4330
4330
|
);
|
|
4331
4331
|
}, ls = ({ ...r }) => {
|
|
4332
|
-
const [e, t] =
|
|
4332
|
+
const [e, t] = J(r.bindValue), { translate: n } = rt(), s = (a) => {
|
|
4333
4333
|
var i;
|
|
4334
4334
|
a.key === "Enter" && (a.preventDefault(), (i = r.onEnter) == null || i.call(r, e));
|
|
4335
4335
|
};
|
|
@@ -4428,15 +4428,15 @@ const Ge = (r, e, t) => ({
|
|
|
4428
4428
|
label: o,
|
|
4429
4429
|
isEditable: h,
|
|
4430
4430
|
...n
|
|
4431
|
-
}, w = (S, v,
|
|
4431
|
+
}, w = (S, v, I) => Hr(t) ? Ge(S, new Ke(t, v).getLegacyValue()) : Ge(S, v, I), E = (S) => Ge(y, new Be(t, S).getLegacyValue()), D = (S) => cs(y, S);
|
|
4432
4432
|
switch (e) {
|
|
4433
4433
|
case oe.AUTOCOMPLETE: {
|
|
4434
4434
|
const S = {
|
|
4435
4435
|
...x,
|
|
4436
4436
|
bindValue: t.k,
|
|
4437
4437
|
optionalDisplayValue: r,
|
|
4438
|
-
onChange: (v,
|
|
4439
|
-
l == null || l(w(y, v,
|
|
4438
|
+
onChange: (v, I) => {
|
|
4439
|
+
l == null || l(w(y, v, I));
|
|
4440
4440
|
}
|
|
4441
4441
|
};
|
|
4442
4442
|
return /* @__PURE__ */ b.jsx(xr, { ...S });
|
|
@@ -4456,8 +4456,8 @@ const Ge = (r, e, t) => ({
|
|
|
4456
4456
|
const S = {
|
|
4457
4457
|
...x,
|
|
4458
4458
|
options: c,
|
|
4459
|
-
onClick: (v,
|
|
4460
|
-
const C = { ...y, fun:
|
|
4459
|
+
onClick: (v, I) => {
|
|
4460
|
+
const C = { ...y, fun: I };
|
|
4461
4461
|
u == null || u(w(C, v));
|
|
4462
4462
|
}
|
|
4463
4463
|
};
|
|
@@ -4468,8 +4468,8 @@ const Ge = (r, e, t) => ({
|
|
|
4468
4468
|
...x,
|
|
4469
4469
|
bindValue: t.k,
|
|
4470
4470
|
optionalDisplayValue: r,
|
|
4471
|
-
onChange: (v,
|
|
4472
|
-
l == null || l(w(y, v,
|
|
4471
|
+
onChange: (v, I) => {
|
|
4472
|
+
l == null || l(w(y, v, I));
|
|
4473
4473
|
}
|
|
4474
4474
|
};
|
|
4475
4475
|
return /* @__PURE__ */ b.jsx(Tn, { ...S });
|
|
@@ -4566,7 +4566,7 @@ const Ge = (r, e, t) => ({
|
|
|
4566
4566
|
offsetTop: s
|
|
4567
4567
|
}) => {
|
|
4568
4568
|
var E;
|
|
4569
|
-
const [a, i] =
|
|
4569
|
+
const [a, i] = J(!1), o = He(r) && !!((E = r.children) != null && E.length), c = r.cells && Object.keys(r.cells).length > 0, l = o, u = t * 20, f = () => {
|
|
4570
4570
|
o && i(!a);
|
|
4571
4571
|
}, d = {
|
|
4572
4572
|
content: `${we.rowContent} ${o ? we.clickable : ""}`,
|
|
@@ -4609,7 +4609,7 @@ const Ge = (r, e, t) => ({
|
|
|
4609
4609
|
]
|
|
4610
4610
|
}
|
|
4611
4611
|
),
|
|
4612
|
-
r.cells && Object.keys(r.cells).length > 0 && Object.entries(r.cells).map(([v,
|
|
4612
|
+
r.cells && Object.keys(r.cells).length > 0 && Object.entries(r.cells).map(([v, I]) => /* @__PURE__ */ b.jsx(
|
|
4613
4613
|
"td",
|
|
4614
4614
|
{
|
|
4615
4615
|
className: d.cell,
|
|
@@ -4618,9 +4618,9 @@ const Ge = (r, e, t) => ({
|
|
|
4618
4618
|
minWidth: e[v],
|
|
4619
4619
|
height: `${n}px`
|
|
4620
4620
|
},
|
|
4621
|
-
children: m(
|
|
4621
|
+
children: m(I)
|
|
4622
4622
|
},
|
|
4623
|
-
Wr(
|
|
4623
|
+
Wr(I) || v
|
|
4624
4624
|
))
|
|
4625
4625
|
]
|
|
4626
4626
|
}
|
|
@@ -4776,49 +4776,50 @@ const hs = ({
|
|
|
4776
4776
|
showGroupBar: a = !0
|
|
4777
4777
|
}) => {
|
|
4778
4778
|
var U;
|
|
4779
|
-
const [i, o] =
|
|
4780
|
-
i
|
|
4779
|
+
const [i, o] = J(r), [c, l] = J(n || []), [u, f] = J(/* @__PURE__ */ new Set()), d = i && i.columns ? Object.fromEntries(
|
|
4780
|
+
i.columns.map((R) => [R.name, 120])
|
|
4781
4781
|
// ADD col.width to manage existing col width
|
|
4782
|
-
), [m, h] =
|
|
4782
|
+
) : {}, [m, h] = J(d), y = ve(null);
|
|
4783
4783
|
ie(() => {
|
|
4784
|
-
var j
|
|
4784
|
+
var j;
|
|
4785
|
+
if (!i || !i.columns || i.columns.length)
|
|
4786
|
+
return;
|
|
4785
4787
|
const R = ((j = y.current) == null ? void 0 : j.clientWidth) ?? 1e3;
|
|
4786
|
-
if (!((N = i == null ? void 0 : i.columns) != null && N.length)) return;
|
|
4787
4788
|
let P = {};
|
|
4788
4789
|
switch (s) {
|
|
4789
4790
|
case "fixed":
|
|
4790
4791
|
P = Object.fromEntries(
|
|
4791
|
-
i.columns.map((
|
|
4792
|
+
i.columns.map((k) => [k.name, 120])
|
|
4792
4793
|
);
|
|
4793
4794
|
break;
|
|
4794
4795
|
case "fit-grid": {
|
|
4795
|
-
const
|
|
4796
|
+
const k = i.columns.filter((H) => H.visible), Y = Math.floor(R / k.length);
|
|
4796
4797
|
P = Object.fromEntries(
|
|
4797
|
-
|
|
4798
|
+
k.map((H) => [H.name, Y])
|
|
4798
4799
|
);
|
|
4799
4800
|
break;
|
|
4800
4801
|
}
|
|
4801
4802
|
case "fit-content":
|
|
4802
4803
|
P = Object.fromEntries(
|
|
4803
|
-
i.columns.map((
|
|
4804
|
-
const
|
|
4805
|
-
...r.rows.map((
|
|
4806
|
-
var
|
|
4807
|
-
const
|
|
4808
|
-
return
|
|
4804
|
+
i.columns.map((k) => {
|
|
4805
|
+
const Y = Math.max(
|
|
4806
|
+
...r.rows.map((W) => {
|
|
4807
|
+
var g;
|
|
4808
|
+
const L = (g = W == null ? void 0 : W.cells) == null ? void 0 : g[k.name], p = (L == null ? void 0 : L.decode) || (L == null ? void 0 : L.value);
|
|
4809
|
+
return p ? String(p).length : 0;
|
|
4809
4810
|
}),
|
|
4810
4811
|
0
|
|
4811
|
-
),
|
|
4812
|
+
), H = k.title ? k.title.length : 0, X = Math.max(Y, H);
|
|
4812
4813
|
return [
|
|
4813
|
-
|
|
4814
|
-
Math.max(50,
|
|
4814
|
+
k.name,
|
|
4815
|
+
Math.max(50, X * 8 + 16)
|
|
4815
4816
|
];
|
|
4816
4817
|
})
|
|
4817
4818
|
);
|
|
4818
4819
|
break;
|
|
4819
4820
|
}
|
|
4820
4821
|
h(P);
|
|
4821
|
-
}, [s, r, i
|
|
4822
|
+
}, [s, r, i]), ie(() => {
|
|
4822
4823
|
if (c != null && c.length && r.rows) {
|
|
4823
4824
|
const { flatRows: R } = ps(
|
|
4824
4825
|
r.rows,
|
|
@@ -4835,109 +4836,117 @@ const hs = ({
|
|
|
4835
4836
|
}, w = (R) => {
|
|
4836
4837
|
R.preventDefault();
|
|
4837
4838
|
const P = R.dataTransfer.getData("text/plain");
|
|
4838
|
-
if (!P || c.some((
|
|
4839
|
+
if (!P || c.some((Y) => Y.column === P))
|
|
4839
4840
|
return;
|
|
4840
|
-
const
|
|
4841
|
-
l(
|
|
4841
|
+
const k = [...c, { column: P, visible: !0 }];
|
|
4842
|
+
l(k);
|
|
4842
4843
|
}, E = (R) => {
|
|
4843
4844
|
R.preventDefault();
|
|
4844
4845
|
}, { virtualItems: D, containerProps: S, innerProps: v } = yr({
|
|
4845
|
-
items: i.rows || [],
|
|
4846
|
+
items: (i == null ? void 0 : i.rows) || [],
|
|
4846
4847
|
itemHeight: e,
|
|
4847
4848
|
containerHeight: t,
|
|
4848
4849
|
overscan: 5
|
|
4849
|
-
}),
|
|
4850
|
-
const j = R.clientX,
|
|
4851
|
-
const K =
|
|
4850
|
+
}), I = (R, P) => {
|
|
4851
|
+
const j = R.clientX, k = m[P], Y = (X) => {
|
|
4852
|
+
const K = X.clientX - j, Z = Math.max(50, k + K);
|
|
4852
4853
|
h((W) => ({
|
|
4853
4854
|
...W,
|
|
4854
4855
|
[P]: Z
|
|
4855
4856
|
}));
|
|
4856
4857
|
}, H = () => {
|
|
4857
|
-
window.removeEventListener("mousemove",
|
|
4858
|
+
window.removeEventListener("mousemove", Y), window.removeEventListener("mouseup", H);
|
|
4858
4859
|
};
|
|
4859
|
-
window.addEventListener("mousemove",
|
|
4860
|
+
window.addEventListener("mousemove", Y), window.addEventListener("mouseup", H);
|
|
4860
4861
|
}, C = {
|
|
4861
4862
|
smpTable: `${nt["smp-table"]}`,
|
|
4862
4863
|
headerCell: `${nt["smp-headerCell"]}`,
|
|
4863
4864
|
resizer: `${nt["smp-resizer"]}`
|
|
4864
4865
|
};
|
|
4865
|
-
return
|
|
4866
|
-
|
|
4867
|
-
|
|
4868
|
-
|
|
4869
|
-
|
|
4870
|
-
|
|
4871
|
-
|
|
4872
|
-
|
|
4873
|
-
|
|
4874
|
-
|
|
4875
|
-
|
|
4876
|
-
|
|
4877
|
-
|
|
4878
|
-
|
|
4879
|
-
|
|
4880
|
-
|
|
4881
|
-
|
|
4882
|
-
|
|
4883
|
-
|
|
4866
|
+
return i && /* @__PURE__ */ b.jsx(
|
|
4867
|
+
"div",
|
|
4868
|
+
{
|
|
4869
|
+
className: C.smpTable,
|
|
4870
|
+
...S,
|
|
4871
|
+
ref: y,
|
|
4872
|
+
children: /* @__PURE__ */ b.jsxs("table", { children: [
|
|
4873
|
+
/* @__PURE__ */ b.jsxs("thead", { children: [
|
|
4874
|
+
(n || a) && /* @__PURE__ */ b.jsx(
|
|
4875
|
+
hs,
|
|
4876
|
+
{
|
|
4877
|
+
groups: c,
|
|
4878
|
+
onChange: x,
|
|
4879
|
+
onDrop: w,
|
|
4880
|
+
onDragOver: E
|
|
4881
|
+
}
|
|
4882
|
+
),
|
|
4883
|
+
/* @__PURE__ */ b.jsx("tr", { children: i.columns && ((U = i.columns) == null ? void 0 : U.map(
|
|
4884
|
+
(R) => R.visible && /* @__PURE__ */ b.jsxs(
|
|
4885
|
+
"th",
|
|
4886
|
+
{
|
|
4887
|
+
className: C.headerCell,
|
|
4888
|
+
draggable: !0,
|
|
4889
|
+
onDragStart: (P) => {
|
|
4890
|
+
P.dataTransfer.setData("text/plain", R.name);
|
|
4891
|
+
},
|
|
4892
|
+
style: {
|
|
4893
|
+
width: m[R.name],
|
|
4894
|
+
minWidth: m[R.name],
|
|
4895
|
+
maxWidth: m[R.name]
|
|
4896
|
+
},
|
|
4897
|
+
children: [
|
|
4898
|
+
/* @__PURE__ */ b.jsx(
|
|
4899
|
+
St,
|
|
4900
|
+
{
|
|
4901
|
+
variant: "title",
|
|
4902
|
+
bindValue: R.title
|
|
4903
|
+
}
|
|
4904
|
+
),
|
|
4905
|
+
/* @__PURE__ */ b.jsx(
|
|
4906
|
+
"div",
|
|
4907
|
+
{
|
|
4908
|
+
className: C.resizer,
|
|
4909
|
+
onMouseDown: (P) => I(P, R.name),
|
|
4910
|
+
role: "region"
|
|
4911
|
+
}
|
|
4912
|
+
)
|
|
4913
|
+
]
|
|
4914
|
+
},
|
|
4915
|
+
R.name
|
|
4916
|
+
)
|
|
4917
|
+
)) })
|
|
4918
|
+
] }),
|
|
4919
|
+
/* @__PURE__ */ b.jsx("tbody", { ...v, children: D.map(
|
|
4920
|
+
({ item: R, index: P, offsetTop: j }) => R.isGroup ? /* @__PURE__ */ b.jsx(
|
|
4921
|
+
us,
|
|
4922
|
+
{
|
|
4923
|
+
label: R.value || "",
|
|
4924
|
+
rowHeight: e,
|
|
4925
|
+
offsetTop: j,
|
|
4926
|
+
level: R.level,
|
|
4927
|
+
onClick: () => {
|
|
4928
|
+
const k = R.rowId;
|
|
4929
|
+
k && f((Y) => fs(Y, k));
|
|
4930
|
+
},
|
|
4931
|
+
isExpanded: R.isExpanded
|
|
4884
4932
|
},
|
|
4885
|
-
|
|
4886
|
-
|
|
4887
|
-
|
|
4888
|
-
|
|
4933
|
+
R.rowId || `group-${P}`
|
|
4934
|
+
) : /* @__PURE__ */ b.jsx(
|
|
4935
|
+
Tr,
|
|
4936
|
+
{
|
|
4937
|
+
row: R,
|
|
4938
|
+
columnWidths: m,
|
|
4939
|
+
rowHeight: e,
|
|
4940
|
+
offsetTop: j,
|
|
4941
|
+
isGroup: !1
|
|
4889
4942
|
},
|
|
4890
|
-
|
|
4891
|
-
|
|
4892
|
-
|
|
4893
|
-
|
|
4894
|
-
|
|
4895
|
-
|
|
4896
|
-
|
|
4897
|
-
),
|
|
4898
|
-
/* @__PURE__ */ b.jsx(
|
|
4899
|
-
"div",
|
|
4900
|
-
{
|
|
4901
|
-
className: C.resizer,
|
|
4902
|
-
onMouseDown: (P) => k(P, R.name),
|
|
4903
|
-
role: "region"
|
|
4904
|
-
}
|
|
4905
|
-
)
|
|
4906
|
-
]
|
|
4907
|
-
},
|
|
4908
|
-
R.name
|
|
4909
|
-
)
|
|
4910
|
-
)) })
|
|
4911
|
-
] }),
|
|
4912
|
-
/* @__PURE__ */ b.jsx("tbody", { ...v, children: D.map(
|
|
4913
|
-
({ item: R, index: P, offsetTop: j }) => R.isGroup ? /* @__PURE__ */ b.jsx(
|
|
4914
|
-
us,
|
|
4915
|
-
{
|
|
4916
|
-
label: R.value || "",
|
|
4917
|
-
rowHeight: e,
|
|
4918
|
-
offsetTop: j,
|
|
4919
|
-
level: R.level,
|
|
4920
|
-
onClick: () => {
|
|
4921
|
-
const N = R.rowId;
|
|
4922
|
-
N && f((I) => fs(I, N));
|
|
4923
|
-
},
|
|
4924
|
-
isExpanded: R.isExpanded
|
|
4925
|
-
},
|
|
4926
|
-
R.rowId || `group-${P}`
|
|
4927
|
-
) : /* @__PURE__ */ b.jsx(
|
|
4928
|
-
Tr,
|
|
4929
|
-
{
|
|
4930
|
-
row: R,
|
|
4931
|
-
columnWidths: m,
|
|
4932
|
-
rowHeight: e,
|
|
4933
|
-
offsetTop: j,
|
|
4934
|
-
isGroup: !1
|
|
4935
|
-
},
|
|
4936
|
-
R.rowId || `row-${P}`
|
|
4937
|
-
)
|
|
4938
|
-
) }),
|
|
4939
|
-
/* @__PURE__ */ b.jsx("tfoot", { children: /* @__PURE__ */ b.jsx("td", { children: "Tfooter here" }) })
|
|
4940
|
-
] }) });
|
|
4943
|
+
R.rowId || `row-${P}`
|
|
4944
|
+
)
|
|
4945
|
+
) }),
|
|
4946
|
+
/* @__PURE__ */ b.jsx("tfoot", { children: /* @__PURE__ */ b.jsx("span", { children: "Tfooter here" }) })
|
|
4947
|
+
] })
|
|
4948
|
+
}
|
|
4949
|
+
);
|
|
4941
4950
|
}, ms = (r, e) => {
|
|
4942
4951
|
const t = [];
|
|
4943
4952
|
for (let n = 0; n < r.length; n += e)
|
|
@@ -5062,7 +5071,7 @@ const hs = ({
|
|
|
5062
5071
|
return /* @__PURE__ */ b.jsx("div", { className: o.container, style: c, "smp-id": "layout", children: s == null ? void 0 : s.map((d) => l(d)) });
|
|
5063
5072
|
}, Ss = ({ data: r, onClick: e, onEnter: t }) => {
|
|
5064
5073
|
var i, o;
|
|
5065
|
-
const [n, s] =
|
|
5074
|
+
const [n, s] = J(), a = ye(
|
|
5066
5075
|
(c) => {
|
|
5067
5076
|
var u, f;
|
|
5068
5077
|
if (!((u = c.rows) != null && u.length) || !((f = c.columns) != null && f.length))
|
|
@@ -5101,7 +5110,7 @@ const hs = ({
|
|
|
5101
5110
|
[e, t]
|
|
5102
5111
|
);
|
|
5103
5112
|
return ie(() => {
|
|
5104
|
-
s(a(r));
|
|
5113
|
+
r && s(a(r));
|
|
5105
5114
|
}, [r, a]), !((i = r == null ? void 0 : r.rows) != null && i.length) || !((o = r.columns) != null && o.length) ? null : n && /* @__PURE__ */ b.jsx("header", { className: "smp-appbar", "aria-label": "App Bar", children: /* @__PURE__ */ b.jsx(Rr, { layout: r.rows[0].layout, cells: n }) });
|
|
5106
5115
|
}, ce = (r) => r == null ? !1 : typeof r == "string" ? r.toLocaleLowerCase() == "yes" : r, ws = ({
|
|
5107
5116
|
ColumnsNumber: r = 1,
|
|
@@ -5125,9 +5134,9 @@ const hs = ({
|
|
|
5125
5134
|
SelectLayout: E = "1",
|
|
5126
5135
|
onClick: D
|
|
5127
5136
|
}) => {
|
|
5128
|
-
const S = "N/A", v = (e == null ? void 0 : e.columns) || [],
|
|
5129
|
-
dash: (
|
|
5130
|
-
const
|
|
5137
|
+
const S = "N/A", v = (e == null ? void 0 : e.columns) || [], I = (e == null ? void 0 : e.rows) || [], C = I.length > 0, U = "--smp-dashList-color", R = "smp-layout", P = "descr", j = "icon", k = "um", Y = "value", H = i || "1em", X = "18px", K = "--smp-dashList-columns", Z = "--smp-dashList-fontSize", W = {
|
|
5138
|
+
dash: (V = "1") => {
|
|
5139
|
+
const q = p(V), te = q, re = g(q, P), de = g(q, j), be = g(q, k), he = g(q, Y);
|
|
5131
5140
|
return {
|
|
5132
5141
|
container: te,
|
|
5133
5142
|
descr: re,
|
|
@@ -5138,74 +5147,74 @@ const hs = ({
|
|
|
5138
5147
|
},
|
|
5139
5148
|
dashList: `smp-dash-list ${ce(a) ? "smp-dash-list-fill-space" : ""}
|
|
5140
5149
|
${ce(o) ? "smp-dash-list-horizontal" : ""}`
|
|
5141
|
-
}, { format: L } = rt(), p = (
|
|
5142
|
-
const
|
|
5143
|
-
if (
|
|
5144
|
-
const re =
|
|
5150
|
+
}, { format: L } = rt(), p = (V) => `${R}-${V}`, g = (V, q) => `${V}__${q}`, T = (V) => `${U}-${V}`, $ = (V) => {
|
|
5151
|
+
const q = /R(\d{1,3})G(\d{1,3})B(\d{1,3})/;
|
|
5152
|
+
if (q.test(V)) {
|
|
5153
|
+
const re = V.match(q) || [];
|
|
5145
5154
|
if ((re == null ? void 0 : re.length) > 3)
|
|
5146
5155
|
return "rgb(" + re[1] + "," + re[2] + "," + re[3] + ")";
|
|
5147
5156
|
}
|
|
5148
|
-
return
|
|
5149
|
-
}, O = (
|
|
5150
|
-
if (!f) return
|
|
5151
|
-
const [
|
|
5157
|
+
return V;
|
|
5158
|
+
}, O = (V) => {
|
|
5159
|
+
if (!f) return V;
|
|
5160
|
+
const [q, te] = A(f).map(
|
|
5152
5161
|
(Te) => parseInt(Te || "0")
|
|
5153
|
-
), re = "0,0" + (te ? "." + "0".repeat(te) : ""), de = L(
|
|
5154
|
-
if (!
|
|
5162
|
+
), re = "0,0" + (te ? "." + "0".repeat(te) : ""), de = L(V, re, "it");
|
|
5163
|
+
if (!q) return de;
|
|
5155
5164
|
const [be, he] = de.split(",");
|
|
5156
5165
|
return be + (he ? `,${he}` : "");
|
|
5157
|
-
}, A = (
|
|
5158
|
-
const
|
|
5166
|
+
}, A = (V) => V.includes(";") ? V.split(";") : [V], M = (V) => {
|
|
5167
|
+
const q = (re) => {
|
|
5159
5168
|
var de;
|
|
5160
5169
|
if (re)
|
|
5161
|
-
return (de =
|
|
5170
|
+
return (de = V == null ? void 0 : V.cells[re]) == null ? void 0 : de.obj.k;
|
|
5162
5171
|
}, te = (re) => {
|
|
5163
5172
|
var de, be;
|
|
5164
5173
|
if (!(v.length <= re))
|
|
5165
|
-
return (be = (de =
|
|
5174
|
+
return (be = (de = V == null ? void 0 : V.cells[v[re].name]) == null ? void 0 : de.obj) == null ? void 0 : be.k;
|
|
5166
5175
|
};
|
|
5167
5176
|
return {
|
|
5168
|
-
descr: t ||
|
|
5169
|
-
icon: c ||
|
|
5170
|
-
um: d ||
|
|
5171
|
-
value: y ||
|
|
5177
|
+
descr: t || q(n) || te(2) || "",
|
|
5178
|
+
icon: c || q(l) || te(3) || "",
|
|
5179
|
+
um: d || q(m) || te(1) || "",
|
|
5180
|
+
value: y || q(x) || te(0) || ""
|
|
5172
5181
|
};
|
|
5173
|
-
},
|
|
5174
|
-
D == null || D(
|
|
5175
|
-
},
|
|
5176
|
-
(
|
|
5177
|
-
}, G = ((
|
|
5178
|
-
const
|
|
5182
|
+
}, F = (V) => {
|
|
5183
|
+
D == null || D(V);
|
|
5184
|
+
}, N = (V, q) => {
|
|
5185
|
+
(V.key === "Enter" || V.key === " ") && (V.preventDefault(), V.stopPropagation(), F(q));
|
|
5186
|
+
}, G = ((V) => {
|
|
5187
|
+
const q = W.dash(V);
|
|
5179
5188
|
return {
|
|
5180
|
-
className:
|
|
5181
|
-
descr: (te) => /* @__PURE__ */ b.jsx("div", { className:
|
|
5182
|
-
icon: (te) => /* @__PURE__ */ b.jsx("div", { className:
|
|
5189
|
+
className: q,
|
|
5190
|
+
descr: (te) => /* @__PURE__ */ b.jsx("div", { className: q.descr, children: te }, `${V}-${P}`),
|
|
5191
|
+
icon: (te) => /* @__PURE__ */ b.jsx("div", { className: q.icon, children: /* @__PURE__ */ b.jsx(
|
|
5183
5192
|
ue,
|
|
5184
5193
|
{
|
|
5185
5194
|
color: u,
|
|
5186
|
-
height:
|
|
5195
|
+
height: X,
|
|
5187
5196
|
icon: te,
|
|
5188
|
-
width:
|
|
5197
|
+
width: X
|
|
5189
5198
|
}
|
|
5190
|
-
) }, `${
|
|
5191
|
-
um: (te) => /* @__PURE__ */ b.jsx("div", { className:
|
|
5192
|
-
value: (te) => /* @__PURE__ */ b.jsx("div", { className:
|
|
5199
|
+
) }, `${V}-${j}`),
|
|
5200
|
+
um: (te) => /* @__PURE__ */ b.jsx("div", { className: q.um, children: te }, `${V}-${k}`),
|
|
5201
|
+
value: (te) => /* @__PURE__ */ b.jsx("div", { className: q.value, children: te }, `${V}-${Y}`)
|
|
5193
5202
|
};
|
|
5194
|
-
})(E), ne = (
|
|
5195
|
-
const { descr:
|
|
5203
|
+
})(E), ne = (V) => {
|
|
5204
|
+
const { descr: q, icon: te, um: re, value: de } = M(V), be = {
|
|
5196
5205
|
[T(P)]: $(s),
|
|
5197
|
-
[T(
|
|
5198
|
-
[T(
|
|
5206
|
+
[T(k)]: $(h),
|
|
5207
|
+
[T(Y)]: $(w)
|
|
5199
5208
|
}, he = [], Te = O(de);
|
|
5200
5209
|
switch (E) {
|
|
5201
5210
|
case "2":
|
|
5202
|
-
te && he.push(G.icon(te)), he.push(G.descr(
|
|
5211
|
+
te && he.push(G.icon(te)), he.push(G.descr(q)), he.push(
|
|
5203
5212
|
G.value(re ? Te + " " + re : Te)
|
|
5204
5213
|
);
|
|
5205
5214
|
break;
|
|
5206
5215
|
default:
|
|
5207
5216
|
case "1":
|
|
5208
|
-
he.push(G.descr(
|
|
5217
|
+
he.push(G.descr(q)), he.push(
|
|
5209
5218
|
G.value(re ? Te + " " + re : Te)
|
|
5210
5219
|
);
|
|
5211
5220
|
}
|
|
@@ -5216,17 +5225,17 @@ const hs = ({
|
|
|
5216
5225
|
role: "button",
|
|
5217
5226
|
style: be,
|
|
5218
5227
|
tabIndex: 0,
|
|
5219
|
-
onClick: () => V
|
|
5220
|
-
onKeyDown: (Dr) =>
|
|
5228
|
+
onClick: () => F(V),
|
|
5229
|
+
onKeyDown: (Dr) => N(Dr, V),
|
|
5221
5230
|
children: he
|
|
5222
5231
|
},
|
|
5223
|
-
|
|
5232
|
+
V.rowId
|
|
5224
5233
|
);
|
|
5225
5234
|
}, _ = {
|
|
5226
5235
|
[K]: String(r),
|
|
5227
5236
|
[Z]: H
|
|
5228
5237
|
};
|
|
5229
|
-
return /* @__PURE__ */ b.jsx("div", { className: W.dashList, style: _, children: C ?
|
|
5238
|
+
return /* @__PURE__ */ b.jsx("div", { className: W.dashList, style: _, children: C ? I.map((V) => ne(V)) : S });
|
|
5230
5239
|
}, gs = (r) => {
|
|
5231
5240
|
var e;
|
|
5232
5241
|
return (e = r.children) != null && e.length ? r.children.map((t) => {
|
|
@@ -5250,40 +5259,40 @@ const hs = ({
|
|
|
5250
5259
|
loadOptions: c
|
|
5251
5260
|
}) => {
|
|
5252
5261
|
var D, S;
|
|
5253
|
-
const [l, u] =
|
|
5262
|
+
const [l, u] = J(), [f, d] = J(t ?? !0), m = ve(null), h = s.trim() ? s : "100vh", y = ye(
|
|
5254
5263
|
(v) => {
|
|
5255
5264
|
var C, U;
|
|
5256
|
-
if (!((C = v.rows) != null && C.length) || !((U = v.columns) != null && U.length))
|
|
5265
|
+
if (!((C = v == null ? void 0 : v.rows) != null && C.length) || !((U = v == null ? void 0 : v.columns) != null && U.length))
|
|
5257
5266
|
return {};
|
|
5258
|
-
const
|
|
5267
|
+
const I = v.rows[0];
|
|
5259
5268
|
return v.columns.filter((R) => R.visible ?? !0).reduce((R, P) => {
|
|
5260
|
-
const j =
|
|
5269
|
+
const j = I.cells[P.name];
|
|
5261
5270
|
if (!j || !f && ce(n) && j.shape !== oe.BUTTON && j.shape !== oe.BUTTON_LIST)
|
|
5262
5271
|
return R;
|
|
5263
|
-
const
|
|
5272
|
+
const k = {
|
|
5264
5273
|
...j,
|
|
5265
|
-
onChange: (
|
|
5274
|
+
onChange: (Y) => {
|
|
5266
5275
|
u((H) => {
|
|
5267
|
-
const
|
|
5268
|
-
return
|
|
5276
|
+
const X = { ...H };
|
|
5277
|
+
return X != null && X[P.name] && (X[P.name].obj.k = Y.obj.k), X;
|
|
5269
5278
|
});
|
|
5270
5279
|
},
|
|
5271
|
-
onClick: (
|
|
5272
|
-
|
|
5280
|
+
onClick: (Y) => {
|
|
5281
|
+
Y.fun && a && a(Y);
|
|
5273
5282
|
},
|
|
5274
|
-
onEnter: (
|
|
5275
|
-
i && i(
|
|
5283
|
+
onEnter: (Y) => {
|
|
5284
|
+
i && i(Y);
|
|
5276
5285
|
}
|
|
5277
5286
|
};
|
|
5278
|
-
return c && j.shape == oe.BUTTON_LIST && (
|
|
5279
|
-
(
|
|
5280
|
-
)), !f && ce(n) && (
|
|
5281
|
-
...
|
|
5287
|
+
return c && j.shape == oe.BUTTON_LIST && (k.onOptionsRequest = (Y, H) => c(Y, H).then(
|
|
5288
|
+
(X) => gs(X)
|
|
5289
|
+
)), !f && ce(n) && (k.data = {
|
|
5290
|
+
...k.data,
|
|
5282
5291
|
showText: !1,
|
|
5283
5292
|
justify: "center"
|
|
5284
5293
|
}), {
|
|
5285
5294
|
...R,
|
|
5286
|
-
[P.name]:
|
|
5295
|
+
[P.name]: k
|
|
5287
5296
|
};
|
|
5288
5297
|
}, {});
|
|
5289
5298
|
},
|
|
@@ -5305,10 +5314,10 @@ const hs = ({
|
|
|
5305
5314
|
const v = getComputedStyle(m.current).getPropertyValue(
|
|
5306
5315
|
"--smp-drawer-slide-transition"
|
|
5307
5316
|
);
|
|
5308
|
-
let
|
|
5309
|
-
v.endsWith("ms") ?
|
|
5317
|
+
let I = Number(v);
|
|
5318
|
+
v.endsWith("ms") ? I = parseFloat(v) : v.endsWith("s") && (I = parseFloat(v) * 1e3), setTimeout(() => {
|
|
5310
5319
|
u(y(r));
|
|
5311
|
-
},
|
|
5320
|
+
}, I / 2);
|
|
5312
5321
|
}, [f, n]), ie(() => {
|
|
5313
5322
|
t !== void 0 && !ce(n) && d(t);
|
|
5314
5323
|
}, [n, t]), !((D = r == null ? void 0 : r.rows) != null && D.length) || !((S = r.columns) != null && S.length))
|
|
@@ -5381,9 +5390,11 @@ const hs = ({
|
|
|
5381
5390
|
onClick: c,
|
|
5382
5391
|
onOptionsRequest: l
|
|
5383
5392
|
}) => {
|
|
5384
|
-
const [u, f] =
|
|
5393
|
+
const [u, f] = J();
|
|
5385
5394
|
ie(() => {
|
|
5386
5395
|
f(() => {
|
|
5396
|
+
if (!r)
|
|
5397
|
+
return;
|
|
5387
5398
|
const y = { ...r };
|
|
5388
5399
|
return e && (y.shape = e), s && (y.obj = Gr(s)), y;
|
|
5389
5400
|
});
|
|
@@ -5410,7 +5421,7 @@ const hs = ({
|
|
|
5410
5421
|
...u,
|
|
5411
5422
|
onChange: f,
|
|
5412
5423
|
onOptionsRequest: l,
|
|
5413
|
-
fun: r.fun,
|
|
5424
|
+
fun: r == null ? void 0 : r.fun,
|
|
5414
5425
|
onBlur: h,
|
|
5415
5426
|
label: a,
|
|
5416
5427
|
labelPosition: i
|