@sme.up/ketchup2 2.0.0-SNAPSHOT-20250702130042 → 2.0.0-SNAPSHOT-20250702155927
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/button/button-types.d.ts +11 -1
- package/dist/basic-components/button/button-types.d.ts.map +1 -1
- package/dist/basic-components/button/button.d.ts.map +1 -1
- package/dist/basic-components/button-group/button-group-types.d.ts +12 -0
- package/dist/basic-components/button-group/button-group-types.d.ts.map +1 -0
- package/dist/basic-components/button-group/button-group.d.ts +3 -0
- package/dist/basic-components/button-group/button-group.d.ts.map +1 -0
- package/dist/basic-components/cell/cell.d.ts.map +1 -1
- package/dist/ketchup2.cjs.js +12 -12
- package/dist/ketchup2.css +1 -1
- package/dist/ketchup2.es.js +1020 -966
- package/dist/types/data-structures.d.ts +1 -0
- package/dist/types/data-structures.d.ts.map +1 -1
- package/dist/types/global.d.ts +1 -0
- package/dist/types/global.d.ts.map +1 -1
- package/dist/types/legacy.d.ts +2 -1
- package/dist/types/legacy.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/ketchup2.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as Ke from "react";
|
|
2
|
-
import st, { useState as
|
|
3
|
-
import { createPortal as
|
|
2
|
+
import st, { useState as G, useRef as le, useEffect as re, useCallback as ue, useLayoutEffect as Fr, useId as Ce, useMemo as Vr, createElement as Ur } from "react";
|
|
3
|
+
import { createPortal as Wr } from "react-dom";
|
|
4
4
|
var ze = { exports: {} }, Fe = {};
|
|
5
5
|
/**
|
|
6
6
|
* @license React
|
|
@@ -12,7 +12,7 @@ var ze = { exports: {} }, Fe = {};
|
|
|
12
12
|
* LICENSE file in the root directory of this source tree.
|
|
13
13
|
*/
|
|
14
14
|
var Nt;
|
|
15
|
-
function
|
|
15
|
+
function Yr() {
|
|
16
16
|
if (Nt) return Fe;
|
|
17
17
|
Nt = 1;
|
|
18
18
|
var r = Symbol.for("react.transitional.element"), e = Symbol.for("react.fragment");
|
|
@@ -60,7 +60,7 @@ function Br() {
|
|
|
60
60
|
return "StrictMode";
|
|
61
61
|
case y:
|
|
62
62
|
return "Suspense";
|
|
63
|
-
case
|
|
63
|
+
case _:
|
|
64
64
|
return "SuspenseList";
|
|
65
65
|
case L:
|
|
66
66
|
return "Activity";
|
|
@@ -73,17 +73,17 @@ function Br() {
|
|
|
73
73
|
return "Portal";
|
|
74
74
|
case C:
|
|
75
75
|
return (h.displayName || "Context") + ".Provider";
|
|
76
|
-
case
|
|
76
|
+
case v:
|
|
77
77
|
return (h._context.displayName || "Context") + ".Consumer";
|
|
78
78
|
case w:
|
|
79
|
-
var
|
|
80
|
-
return h = h.displayName, h || (h =
|
|
79
|
+
var x = h.render;
|
|
80
|
+
return h = h.displayName, h || (h = x.displayName || x.name || "", h = h !== "" ? "ForwardRef(" + h + ")" : "ForwardRef"), h;
|
|
81
81
|
case S:
|
|
82
|
-
return
|
|
82
|
+
return x = h.displayName || null, x !== null ? x : r(h.type) || "Memo";
|
|
83
83
|
case k:
|
|
84
|
-
|
|
84
|
+
x = h._payload, h = h._init;
|
|
85
85
|
try {
|
|
86
|
-
return r(h(
|
|
86
|
+
return r(h(x));
|
|
87
87
|
} catch {
|
|
88
88
|
}
|
|
89
89
|
}
|
|
@@ -95,17 +95,17 @@ function Br() {
|
|
|
95
95
|
function t(h) {
|
|
96
96
|
try {
|
|
97
97
|
e(h);
|
|
98
|
-
var
|
|
98
|
+
var x = !1;
|
|
99
99
|
} catch {
|
|
100
|
-
|
|
100
|
+
x = !0;
|
|
101
101
|
}
|
|
102
|
-
if (
|
|
103
|
-
|
|
104
|
-
var $ =
|
|
102
|
+
if (x) {
|
|
103
|
+
x = console;
|
|
104
|
+
var $ = x.error, j = typeof Symbol == "function" && Symbol.toStringTag && h[Symbol.toStringTag] || h.constructor.name || "Object";
|
|
105
105
|
return $.call(
|
|
106
|
-
|
|
106
|
+
x,
|
|
107
107
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
108
|
-
|
|
108
|
+
j
|
|
109
109
|
), e(h);
|
|
110
110
|
}
|
|
111
111
|
}
|
|
@@ -114,31 +114,31 @@ function Br() {
|
|
|
114
114
|
if (typeof h == "object" && h !== null && h.$$typeof === k)
|
|
115
115
|
return "<...>";
|
|
116
116
|
try {
|
|
117
|
-
var
|
|
118
|
-
return
|
|
117
|
+
var x = r(h);
|
|
118
|
+
return x ? "<" + x + ">" : "<...>";
|
|
119
119
|
} catch {
|
|
120
120
|
return "<...>";
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
function s() {
|
|
124
|
-
var h =
|
|
124
|
+
var h = R.A;
|
|
125
125
|
return h === null ? null : h.getOwner();
|
|
126
126
|
}
|
|
127
127
|
function a() {
|
|
128
128
|
return Error("react-stack-top-frame");
|
|
129
129
|
}
|
|
130
130
|
function i(h) {
|
|
131
|
-
if (
|
|
132
|
-
var
|
|
133
|
-
if (
|
|
131
|
+
if (O.call(h, "key")) {
|
|
132
|
+
var x = Object.getOwnPropertyDescriptor(h, "key").get;
|
|
133
|
+
if (x && x.isReactWarning) return !1;
|
|
134
134
|
}
|
|
135
135
|
return h.key !== void 0;
|
|
136
136
|
}
|
|
137
|
-
function o(h,
|
|
137
|
+
function o(h, x) {
|
|
138
138
|
function $() {
|
|
139
139
|
B || (B = !0, console.error(
|
|
140
140
|
"%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)",
|
|
141
|
-
|
|
141
|
+
x
|
|
142
142
|
));
|
|
143
143
|
}
|
|
144
144
|
$.isReactWarning = !0, Object.defineProperty(h, "key", {
|
|
@@ -148,16 +148,16 @@ function Br() {
|
|
|
148
148
|
}
|
|
149
149
|
function l() {
|
|
150
150
|
var h = r(this.type);
|
|
151
|
-
return
|
|
151
|
+
return H[h] || (H[h] = !0, console.error(
|
|
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
|
)), h = this.props.ref, h !== void 0 ? h : null;
|
|
154
154
|
}
|
|
155
|
-
function c(h,
|
|
156
|
-
return $ =
|
|
155
|
+
function c(h, x, $, j, D, A, U, W) {
|
|
156
|
+
return $ = A.ref, h = {
|
|
157
157
|
$$typeof: g,
|
|
158
158
|
type: h,
|
|
159
|
-
key:
|
|
160
|
-
props:
|
|
159
|
+
key: x,
|
|
160
|
+
props: A,
|
|
161
161
|
_owner: D
|
|
162
162
|
}, ($ !== void 0 ? $ : null) !== null ? Object.defineProperty(h, "ref", {
|
|
163
163
|
enumerable: !1,
|
|
@@ -176,68 +176,68 @@ function Br() {
|
|
|
176
176
|
configurable: !1,
|
|
177
177
|
enumerable: !1,
|
|
178
178
|
writable: !0,
|
|
179
|
-
value:
|
|
179
|
+
value: U
|
|
180
180
|
}), Object.defineProperty(h, "_debugTask", {
|
|
181
181
|
configurable: !1,
|
|
182
182
|
enumerable: !1,
|
|
183
183
|
writable: !0,
|
|
184
|
-
value:
|
|
184
|
+
value: W
|
|
185
185
|
}), Object.freeze && (Object.freeze(h.props), Object.freeze(h)), h;
|
|
186
186
|
}
|
|
187
|
-
function d(h,
|
|
188
|
-
var V =
|
|
187
|
+
function d(h, x, $, j, D, A, U, W) {
|
|
188
|
+
var V = x.children;
|
|
189
189
|
if (V !== void 0)
|
|
190
|
-
if (
|
|
191
|
-
if (
|
|
192
|
-
for (
|
|
193
|
-
u(V[
|
|
190
|
+
if (j)
|
|
191
|
+
if (P(V)) {
|
|
192
|
+
for (j = 0; j < V.length; j++)
|
|
193
|
+
u(V[j]);
|
|
194
194
|
Object.freeze && Object.freeze(V);
|
|
195
195
|
} else
|
|
196
196
|
console.error(
|
|
197
197
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
198
198
|
);
|
|
199
199
|
else u(V);
|
|
200
|
-
if (
|
|
200
|
+
if (O.call(x, "key")) {
|
|
201
201
|
V = r(h);
|
|
202
|
-
var J = Object.keys(
|
|
202
|
+
var J = Object.keys(x).filter(function(se) {
|
|
203
203
|
return se !== "key";
|
|
204
204
|
});
|
|
205
|
-
|
|
205
|
+
j = 0 < J.length ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}", F[V + j] || (J = 0 < J.length ? "{" + J.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
|
+
j,
|
|
213
213
|
V,
|
|
214
214
|
J,
|
|
215
215
|
V
|
|
216
|
-
), F[V +
|
|
216
|
+
), F[V + j] = !0);
|
|
217
217
|
}
|
|
218
|
-
if (V = null, $ !== void 0 && (t($), V = "" + $), i(
|
|
218
|
+
if (V = null, $ !== void 0 && (t($), V = "" + $), i(x) && (t(x.key), V = "" + x.key), "key" in x) {
|
|
219
219
|
$ = {};
|
|
220
|
-
for (var K in
|
|
221
|
-
K !== "key" && ($[K] =
|
|
222
|
-
} else $ =
|
|
220
|
+
for (var K in x)
|
|
221
|
+
K !== "key" && ($[K] = x[K]);
|
|
222
|
+
} else $ = x;
|
|
223
223
|
return V && o(
|
|
224
224
|
$,
|
|
225
225
|
typeof h == "function" ? h.displayName || h.name || "Unknown" : h
|
|
226
226
|
), c(
|
|
227
227
|
h,
|
|
228
228
|
V,
|
|
229
|
-
|
|
229
|
+
A,
|
|
230
230
|
D,
|
|
231
231
|
s(),
|
|
232
232
|
$,
|
|
233
|
-
|
|
234
|
-
|
|
233
|
+
U,
|
|
234
|
+
W
|
|
235
235
|
);
|
|
236
236
|
}
|
|
237
237
|
function u(h) {
|
|
238
238
|
typeof h == "object" && h !== null && h.$$typeof === g && h._store && (h._store.validated = 1);
|
|
239
239
|
}
|
|
240
|
-
var f = st, g = Symbol.for("react.transitional.element"), p = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), E = Symbol.for("react.strict_mode"), T = Symbol.for("react.profiler"),
|
|
240
|
+
var f = st, g = Symbol.for("react.transitional.element"), p = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), E = Symbol.for("react.strict_mode"), T = Symbol.for("react.profiler"), v = Symbol.for("react.consumer"), C = Symbol.for("react.context"), w = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), _ = Symbol.for("react.suspense_list"), S = Symbol.for("react.memo"), k = Symbol.for("react.lazy"), L = Symbol.for("react.activity"), I = Symbol.for("react.client.reference"), R = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, O = Object.prototype.hasOwnProperty, P = Array.isArray, N = console.createTask ? console.createTask : function() {
|
|
241
241
|
return null;
|
|
242
242
|
};
|
|
243
243
|
f = {
|
|
@@ -245,42 +245,42 @@ React keys must be passed directly to JSX without using spread:
|
|
|
245
245
|
return h();
|
|
246
246
|
}
|
|
247
247
|
};
|
|
248
|
-
var B,
|
|
248
|
+
var B, H = {}, q = f["react-stack-bottom-frame"].bind(
|
|
249
249
|
f,
|
|
250
250
|
a
|
|
251
251
|
)(), X = N(n(a)), F = {};
|
|
252
|
-
Ve.Fragment = b, Ve.jsx = function(h,
|
|
253
|
-
var
|
|
252
|
+
Ve.Fragment = b, Ve.jsx = function(h, x, $, j, D) {
|
|
253
|
+
var A = 1e4 > R.recentlyCreatedOwnerStacks++;
|
|
254
254
|
return d(
|
|
255
255
|
h,
|
|
256
|
-
|
|
256
|
+
x,
|
|
257
257
|
$,
|
|
258
258
|
!1,
|
|
259
|
-
|
|
259
|
+
j,
|
|
260
260
|
D,
|
|
261
|
-
|
|
262
|
-
|
|
261
|
+
A ? Error("react-stack-top-frame") : q,
|
|
262
|
+
A ? N(n(h)) : X
|
|
263
263
|
);
|
|
264
|
-
}, Ve.jsxs = function(h,
|
|
265
|
-
var
|
|
264
|
+
}, Ve.jsxs = function(h, x, $, j, D) {
|
|
265
|
+
var A = 1e4 > R.recentlyCreatedOwnerStacks++;
|
|
266
266
|
return d(
|
|
267
267
|
h,
|
|
268
|
-
|
|
268
|
+
x,
|
|
269
269
|
$,
|
|
270
270
|
!0,
|
|
271
|
-
|
|
271
|
+
j,
|
|
272
272
|
D,
|
|
273
|
-
|
|
274
|
-
|
|
273
|
+
A ? Error("react-stack-top-frame") : q,
|
|
274
|
+
A ? N(n(h)) : X
|
|
275
275
|
);
|
|
276
276
|
};
|
|
277
277
|
}()), Ve;
|
|
278
278
|
}
|
|
279
279
|
var Ft;
|
|
280
|
-
function
|
|
281
|
-
return Ft || (Ft = 1, process.env.NODE_ENV === "production" ? ze.exports =
|
|
280
|
+
function Gr() {
|
|
281
|
+
return Ft || (Ft = 1, process.env.NODE_ENV === "production" ? ze.exports = Yr() : ze.exports = Br()), ze.exports;
|
|
282
282
|
}
|
|
283
|
-
var m =
|
|
283
|
+
var m = Gr();
|
|
284
284
|
const Re = ({ label: r, disabled: e, htmlFor: t }) => {
|
|
285
285
|
const n = {
|
|
286
286
|
container: `smp-label ${e ? "smp-label-disabled" : ""}`
|
|
@@ -299,7 +299,7 @@ const Re = ({ label: r, disabled: e, htmlFor: t }) => {
|
|
|
299
299
|
"smp-grid-template-rows": "_smp-grid-template-rows_r9j97_57",
|
|
300
300
|
"smp-layout-section-with-title": "_smp-layout-section-with-title_r9j97_61",
|
|
301
301
|
"smp-layout-section-title": "_smp-layout-section-title_r9j97_67"
|
|
302
|
-
},
|
|
302
|
+
}, Hr = (r, e) => {
|
|
303
303
|
const t = [];
|
|
304
304
|
for (let n = 0; n < r.length; n += e)
|
|
305
305
|
t.push(r.slice(n, n + e));
|
|
@@ -312,7 +312,7 @@ const Re = ({ label: r, disabled: e, htmlFor: t }) => {
|
|
|
312
312
|
content: t.content
|
|
313
313
|
};
|
|
314
314
|
let n = t.sections, s = t.content;
|
|
315
|
-
return t.content?.length && t.columns && +t.columns > 1 && (n =
|
|
315
|
+
return t.content?.length && t.columns && +t.columns > 1 && (n = Hr(
|
|
316
316
|
t.content.filter((i) => e.includes(i.id)),
|
|
317
317
|
+t.columns
|
|
318
318
|
).map(
|
|
@@ -335,7 +335,7 @@ const Re = ({ label: r, disabled: e, htmlFor: t }) => {
|
|
|
335
335
|
return {
|
|
336
336
|
[e]: t
|
|
337
337
|
};
|
|
338
|
-
},
|
|
338
|
+
}, Ut = (r) => r.some((e) => e.dim && !e.dim.endsWith("%"));
|
|
339
339
|
function Kr(r, e) {
|
|
340
340
|
if (r == null) return {};
|
|
341
341
|
var t = {};
|
|
@@ -373,10 +373,10 @@ var qe = {};
|
|
|
373
373
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
374
374
|
* MIT Licensed
|
|
375
375
|
*/
|
|
376
|
-
var
|
|
376
|
+
var Wt;
|
|
377
377
|
function qr() {
|
|
378
|
-
if (
|
|
379
|
-
|
|
378
|
+
if (Wt) return qe;
|
|
379
|
+
Wt = 1;
|
|
380
380
|
var r = /; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g, e = /^[\u000b\u0020-\u007e\u0080-\u00ff]+$/, t = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/, n = /\\([\u000b\u0020-\u00ff])/g, s = /([\\"])/g, a = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;
|
|
381
381
|
qe.format = i, qe.parse = o;
|
|
382
382
|
function i(u) {
|
|
@@ -405,11 +405,11 @@ function qr() {
|
|
|
405
405
|
throw new TypeError("invalid media type");
|
|
406
406
|
var b = new d(p.toLowerCase());
|
|
407
407
|
if (g !== -1) {
|
|
408
|
-
var E, T,
|
|
408
|
+
var E, T, v;
|
|
409
409
|
for (r.lastIndex = g; T = r.exec(f); ) {
|
|
410
410
|
if (T.index !== g)
|
|
411
411
|
throw new TypeError("invalid parameter format");
|
|
412
|
-
g += T[0].length, E = T[1].toLowerCase(),
|
|
412
|
+
g += T[0].length, E = T[1].toLowerCase(), v = T[2], v.charCodeAt(0) === 34 && (v = v.slice(1, -1), v.indexOf("\\") !== -1 && (v = v.replace(n, "$1"))), b.parameters[E] = v;
|
|
413
413
|
}
|
|
414
414
|
if (g !== f.length)
|
|
415
415
|
throw new TypeError("invalid parameter format");
|
|
@@ -437,9 +437,9 @@ function qr() {
|
|
|
437
437
|
}
|
|
438
438
|
var Jr = qr(), Ae = /* @__PURE__ */ new Map(), _r = function(e) {
|
|
439
439
|
return e.cloneNode(!0);
|
|
440
|
-
},
|
|
440
|
+
}, Yt = function() {
|
|
441
441
|
return window.location.protocol === "file:";
|
|
442
|
-
},
|
|
442
|
+
}, jr = function(e, t, n) {
|
|
443
443
|
var s = new XMLHttpRequest();
|
|
444
444
|
s.onreadystatechange = function() {
|
|
445
445
|
try {
|
|
@@ -453,8 +453,8 @@ var Jr = qr(), Ae = /* @__PURE__ */ new Map(), _r = function(e) {
|
|
|
453
453
|
}
|
|
454
454
|
if (s.readyState === 4) {
|
|
455
455
|
if (s.status === 404 || s.responseXML === null)
|
|
456
|
-
throw new Error(
|
|
457
|
-
if (s.status === 200 ||
|
|
456
|
+
throw new Error(Yt() ? "Note: SVG injection ajax calls do not work locally without adjusting security settings in your browser. Or consider using a local webserver." : "Unable to load SVG file: " + e);
|
|
457
|
+
if (s.status === 200 || Yt() && s.status === 0)
|
|
458
458
|
n(null, s);
|
|
459
459
|
else
|
|
460
460
|
throw new Error("There was a problem injecting the SVG: " + s.status + " " + s.statusText);
|
|
@@ -490,18 +490,18 @@ var Jr = qr(), Ae = /* @__PURE__ */ new Map(), _r = function(e) {
|
|
|
490
490
|
return;
|
|
491
491
|
}
|
|
492
492
|
}
|
|
493
|
-
Ae.set(e, void 0), Bt(e, n),
|
|
493
|
+
Ae.set(e, void 0), Bt(e, n), jr(e, t, function(a, i) {
|
|
494
494
|
var o;
|
|
495
495
|
a ? Ae.set(e, a) : ((o = i.responseXML) === null || o === void 0 ? void 0 : o.documentElement) instanceof SVGSVGElement && Ae.set(e, i.responseXML.documentElement), Xr(e);
|
|
496
496
|
});
|
|
497
497
|
}, Qr = function(e, t, n) {
|
|
498
|
-
|
|
498
|
+
jr(e, t, function(s, a) {
|
|
499
499
|
var i;
|
|
500
500
|
s ? n(s) : ((i = a.responseXML) === null || i === void 0 ? void 0 : i.documentElement) instanceof SVGSVGElement && n(null, a.responseXML.documentElement);
|
|
501
501
|
});
|
|
502
502
|
}, en = 0, tn = function() {
|
|
503
503
|
return ++en;
|
|
504
|
-
}, ye = [],
|
|
504
|
+
}, ye = [], Gt = {}, rn = "http://www.w3.org/2000/svg", bt = "http://www.w3.org/1999/xlink", Ht = function(e, t, n, s, a, i, o) {
|
|
505
505
|
var l = e.getAttribute("data-src") || e.getAttribute("src");
|
|
506
506
|
if (!l) {
|
|
507
507
|
o(new Error("Invalid data-src or src attribute"));
|
|
@@ -530,10 +530,10 @@ var Jr = qr(), Ae = /* @__PURE__ */ new Map(), _r = function(e) {
|
|
|
530
530
|
u.setAttribute("class", E);
|
|
531
531
|
var T = e.getAttribute("style");
|
|
532
532
|
T && u.setAttribute("style", T), u.setAttribute("data-src", l);
|
|
533
|
-
var
|
|
533
|
+
var v = [].filter.call(e.attributes, function(X) {
|
|
534
534
|
return /^data-\w[\w-]*$/.test(X.name);
|
|
535
535
|
});
|
|
536
|
-
if (Array.prototype.forEach.call(
|
|
536
|
+
if (Array.prototype.forEach.call(v, function(X) {
|
|
537
537
|
X.name && X.value && u.setAttribute(X.name, X.value);
|
|
538
538
|
}), n) {
|
|
539
539
|
var C = {
|
|
@@ -547,37 +547,37 @@ var Jr = qr(), Ae = /* @__PURE__ */ new Map(), _r = function(e) {
|
|
|
547
547
|
path: [],
|
|
548
548
|
pattern: ["fill", "stroke"],
|
|
549
549
|
radialGradient: ["fill", "stroke"]
|
|
550
|
-
}, w, y,
|
|
550
|
+
}, w, y, _, S, k;
|
|
551
551
|
Object.keys(C).forEach(function(X) {
|
|
552
|
-
w = X,
|
|
553
|
-
for (var F = function(
|
|
554
|
-
S = y[
|
|
555
|
-
var
|
|
556
|
-
Array.prototype.forEach.call(
|
|
557
|
-
|
|
558
|
-
for (var Z = 0, ne =
|
|
559
|
-
var ae =
|
|
560
|
-
ae && !ae.match(new RegExp('url\\("?#' + S + '"?\\)')) ||
|
|
552
|
+
w = X, _ = C[X], y = u.querySelectorAll(w + "[id]");
|
|
553
|
+
for (var F = function(j, D) {
|
|
554
|
+
S = y[j].id, k = S + "-" + tn();
|
|
555
|
+
var A;
|
|
556
|
+
Array.prototype.forEach.call(_, function(Y) {
|
|
557
|
+
A = u.querySelectorAll("[" + Y + '*="' + S + '"]');
|
|
558
|
+
for (var Z = 0, ne = A.length; Z < ne; Z++) {
|
|
559
|
+
var ae = A[Z].getAttribute(Y);
|
|
560
|
+
ae && !ae.match(new RegExp('url\\("?#' + S + '"?\\)')) || A[Z].setAttribute(Y, "url(#" + k + ")");
|
|
561
561
|
}
|
|
562
562
|
});
|
|
563
|
-
for (var
|
|
564
|
-
var K =
|
|
565
|
-
K && K.toString() === "#" + y[
|
|
563
|
+
for (var U = u.querySelectorAll("[*|href]"), W = [], V = 0, J = U.length; V < J; V++) {
|
|
564
|
+
var K = U[V].getAttributeNS(bt, "href");
|
|
565
|
+
K && K.toString() === "#" + y[j].id && W.push(U[V]);
|
|
566
566
|
}
|
|
567
|
-
for (var se = 0, M =
|
|
568
|
-
|
|
569
|
-
y[
|
|
570
|
-
}, h = 0,
|
|
567
|
+
for (var se = 0, M = W.length; se < M; se++)
|
|
568
|
+
W[se].setAttributeNS(bt, "href", "#" + k);
|
|
569
|
+
y[j].id = k;
|
|
570
|
+
}, h = 0, x = y.length; h < x; h++)
|
|
571
571
|
F(h);
|
|
572
572
|
});
|
|
573
573
|
}
|
|
574
574
|
u.removeAttribute("xmlns:a");
|
|
575
|
-
for (var L = u.querySelectorAll("script"), I = [],
|
|
576
|
-
|
|
577
|
-
if (I.length > 0 && (t === "always" || t === "once" && !
|
|
578
|
-
for (var B = 0,
|
|
575
|
+
for (var L = u.querySelectorAll("script"), I = [], R, O, P = 0, N = L.length; P < N; P++)
|
|
576
|
+
O = L[P].getAttribute("type"), (!O || O === "application/ecmascript" || O === "application/javascript" || O === "text/javascript") && (R = L[P].innerText || L[P].textContent, R && I.push(R), u.removeChild(L[P]));
|
|
577
|
+
if (I.length > 0 && (t === "always" || t === "once" && !Gt[l])) {
|
|
578
|
+
for (var B = 0, H = I.length; B < H; B++)
|
|
579
579
|
new Function(I[B])(window);
|
|
580
|
-
|
|
580
|
+
Gt[l] = !0;
|
|
581
581
|
}
|
|
582
582
|
var q = u.querySelectorAll("style");
|
|
583
583
|
if (Array.prototype.forEach.call(q, function(X) {
|
|
@@ -594,12 +594,12 @@ var Jr = qr(), Ae = /* @__PURE__ */ new Map(), _r = function(e) {
|
|
|
594
594
|
} : i, l = n.beforeEach, c = l === void 0 ? function() {
|
|
595
595
|
} : l, d = n.cacheRequests, u = d === void 0 ? !0 : d, f = n.evalScripts, g = f === void 0 ? "never" : f, p = n.httpRequestWithCredentials, b = p === void 0 ? !1 : p, E = n.renumerateIRIElements, T = E === void 0 ? !0 : E;
|
|
596
596
|
if (e && "length" in e)
|
|
597
|
-
for (var
|
|
598
|
-
|
|
599
|
-
o(y,
|
|
597
|
+
for (var v = 0, C = 0, w = e.length; C < w; C++)
|
|
598
|
+
Ht(e[C], g, T, u, b, c, function(y, _) {
|
|
599
|
+
o(y, _), e && "length" in e && e.length === ++v && a(v);
|
|
600
600
|
});
|
|
601
|
-
else e ?
|
|
602
|
-
o(y,
|
|
601
|
+
else e ? Ht(e, g, T, u, b, c, function(y, _) {
|
|
602
|
+
o(y, _), a(1), e = null;
|
|
603
603
|
}) : a(0);
|
|
604
604
|
}, Je = { exports: {} }, Xe = { exports: {} }, Q = {};
|
|
605
605
|
/** @license React v16.13.1
|
|
@@ -614,11 +614,11 @@ var Kt;
|
|
|
614
614
|
function sn() {
|
|
615
615
|
if (Kt) return Q;
|
|
616
616
|
Kt = 1;
|
|
617
|
-
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, l = r ? Symbol.for("react.async_mode") : 60111, c = r ? Symbol.for("react.concurrent_mode") : 60111, d = r ? Symbol.for("react.forward_ref") : 60112, u = r ? Symbol.for("react.suspense") : 60113, f = r ? Symbol.for("react.suspense_list") : 60120, g = r ? Symbol.for("react.memo") : 60115, p = r ? Symbol.for("react.lazy") : 60116, b = r ? Symbol.for("react.block") : 60121, E = r ? Symbol.for("react.fundamental") : 60117, T = r ? Symbol.for("react.responder") : 60118,
|
|
617
|
+
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, l = r ? Symbol.for("react.async_mode") : 60111, c = r ? Symbol.for("react.concurrent_mode") : 60111, d = r ? Symbol.for("react.forward_ref") : 60112, u = r ? Symbol.for("react.suspense") : 60113, f = r ? Symbol.for("react.suspense_list") : 60120, g = r ? Symbol.for("react.memo") : 60115, p = r ? Symbol.for("react.lazy") : 60116, b = r ? Symbol.for("react.block") : 60121, E = r ? Symbol.for("react.fundamental") : 60117, T = r ? Symbol.for("react.responder") : 60118, v = r ? Symbol.for("react.scope") : 60119;
|
|
618
618
|
function C(y) {
|
|
619
619
|
if (typeof y == "object" && y !== null) {
|
|
620
|
-
var
|
|
621
|
-
switch (
|
|
620
|
+
var _ = y.$$typeof;
|
|
621
|
+
switch (_) {
|
|
622
622
|
case e:
|
|
623
623
|
switch (y = y.type, y) {
|
|
624
624
|
case l:
|
|
@@ -637,11 +637,11 @@ function sn() {
|
|
|
637
637
|
case i:
|
|
638
638
|
return y;
|
|
639
639
|
default:
|
|
640
|
-
return
|
|
640
|
+
return _;
|
|
641
641
|
}
|
|
642
642
|
}
|
|
643
643
|
case t:
|
|
644
|
-
return
|
|
644
|
+
return _;
|
|
645
645
|
}
|
|
646
646
|
}
|
|
647
647
|
}
|
|
@@ -673,7 +673,7 @@ function sn() {
|
|
|
673
673
|
}, Q.isSuspense = function(y) {
|
|
674
674
|
return C(y) === u;
|
|
675
675
|
}, Q.isValidElementType = function(y) {
|
|
676
|
-
return typeof y == "string" || typeof y == "function" || y === n || y === c || y === a || y === s || y === u || y === f || typeof y == "object" && y !== null && (y.$$typeof === p || y.$$typeof === g || y.$$typeof === i || y.$$typeof === o || y.$$typeof === d || y.$$typeof === E || y.$$typeof === T || y.$$typeof ===
|
|
676
|
+
return typeof y == "string" || typeof y == "function" || y === n || y === c || y === a || y === s || y === u || y === f || typeof y == "object" && y !== null && (y.$$typeof === p || y.$$typeof === g || y.$$typeof === i || y.$$typeof === o || y.$$typeof === d || y.$$typeof === E || y.$$typeof === T || y.$$typeof === v || y.$$typeof === b);
|
|
677
677
|
}, Q.typeOf = C, Q;
|
|
678
678
|
}
|
|
679
679
|
var ee = {};
|
|
@@ -688,15 +688,15 @@ var ee = {};
|
|
|
688
688
|
var zt;
|
|
689
689
|
function an() {
|
|
690
690
|
return zt || (zt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
691
|
-
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, l = r ? Symbol.for("react.async_mode") : 60111, c = r ? Symbol.for("react.concurrent_mode") : 60111, d = r ? Symbol.for("react.forward_ref") : 60112, u = r ? Symbol.for("react.suspense") : 60113, f = r ? Symbol.for("react.suspense_list") : 60120, g = r ? Symbol.for("react.memo") : 60115, p = r ? Symbol.for("react.lazy") : 60116, b = r ? Symbol.for("react.block") : 60121, E = r ? Symbol.for("react.fundamental") : 60117, T = r ? Symbol.for("react.responder") : 60118,
|
|
691
|
+
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, l = r ? Symbol.for("react.async_mode") : 60111, c = r ? Symbol.for("react.concurrent_mode") : 60111, d = r ? Symbol.for("react.forward_ref") : 60112, u = r ? Symbol.for("react.suspense") : 60113, f = r ? Symbol.for("react.suspense_list") : 60120, g = r ? Symbol.for("react.memo") : 60115, p = r ? Symbol.for("react.lazy") : 60116, b = r ? Symbol.for("react.block") : 60121, E = r ? Symbol.for("react.fundamental") : 60117, T = r ? Symbol.for("react.responder") : 60118, v = r ? Symbol.for("react.scope") : 60119;
|
|
692
692
|
function C(M) {
|
|
693
693
|
return typeof M == "string" || typeof M == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
694
|
-
M === n || M === c || M === a || M === s || M === u || M === f || typeof M == "object" && M !== null && (M.$$typeof === p || M.$$typeof === g || M.$$typeof === i || M.$$typeof === o || M.$$typeof === d || M.$$typeof === E || M.$$typeof === T || M.$$typeof ===
|
|
694
|
+
M === n || M === c || M === a || M === s || M === u || M === f || typeof M == "object" && M !== null && (M.$$typeof === p || M.$$typeof === g || M.$$typeof === i || M.$$typeof === o || M.$$typeof === d || M.$$typeof === E || M.$$typeof === T || M.$$typeof === v || M.$$typeof === b);
|
|
695
695
|
}
|
|
696
696
|
function w(M) {
|
|
697
697
|
if (typeof M == "object" && M !== null) {
|
|
698
|
-
var
|
|
699
|
-
switch (
|
|
698
|
+
var Y = M.$$typeof;
|
|
699
|
+
switch (Y) {
|
|
700
700
|
case e:
|
|
701
701
|
var Z = M.type;
|
|
702
702
|
switch (Z) {
|
|
@@ -717,40 +717,40 @@ function an() {
|
|
|
717
717
|
case i:
|
|
718
718
|
return ne;
|
|
719
719
|
default:
|
|
720
|
-
return
|
|
720
|
+
return Y;
|
|
721
721
|
}
|
|
722
722
|
}
|
|
723
723
|
case t:
|
|
724
|
-
return
|
|
724
|
+
return Y;
|
|
725
725
|
}
|
|
726
726
|
}
|
|
727
727
|
}
|
|
728
|
-
var y = l,
|
|
728
|
+
var y = l, _ = c, S = o, k = i, L = e, I = d, R = n, O = p, P = g, N = t, B = a, H = s, q = u, X = !1;
|
|
729
729
|
function F(M) {
|
|
730
730
|
return X || (X = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), h(M) || w(M) === l;
|
|
731
731
|
}
|
|
732
732
|
function h(M) {
|
|
733
733
|
return w(M) === c;
|
|
734
734
|
}
|
|
735
|
-
function
|
|
735
|
+
function x(M) {
|
|
736
736
|
return w(M) === o;
|
|
737
737
|
}
|
|
738
738
|
function $(M) {
|
|
739
739
|
return w(M) === i;
|
|
740
740
|
}
|
|
741
|
-
function
|
|
741
|
+
function j(M) {
|
|
742
742
|
return typeof M == "object" && M !== null && M.$$typeof === e;
|
|
743
743
|
}
|
|
744
744
|
function D(M) {
|
|
745
745
|
return w(M) === d;
|
|
746
746
|
}
|
|
747
|
-
function
|
|
747
|
+
function A(M) {
|
|
748
748
|
return w(M) === n;
|
|
749
749
|
}
|
|
750
|
-
function
|
|
750
|
+
function U(M) {
|
|
751
751
|
return w(M) === p;
|
|
752
752
|
}
|
|
753
|
-
function
|
|
753
|
+
function W(M) {
|
|
754
754
|
return w(M) === g;
|
|
755
755
|
}
|
|
756
756
|
function V(M) {
|
|
@@ -765,11 +765,11 @@ function an() {
|
|
|
765
765
|
function se(M) {
|
|
766
766
|
return w(M) === u;
|
|
767
767
|
}
|
|
768
|
-
ee.AsyncMode = y, ee.ConcurrentMode =
|
|
768
|
+
ee.AsyncMode = y, ee.ConcurrentMode = _, ee.ContextConsumer = S, ee.ContextProvider = k, ee.Element = L, ee.ForwardRef = I, ee.Fragment = R, ee.Lazy = O, ee.Memo = P, ee.Portal = N, ee.Profiler = B, ee.StrictMode = H, ee.Suspense = q, ee.isAsyncMode = F, ee.isConcurrentMode = h, ee.isContextConsumer = x, ee.isContextProvider = $, ee.isElement = j, ee.isForwardRef = D, ee.isFragment = A, ee.isLazy = U, ee.isMemo = W, ee.isPortal = V, ee.isProfiler = J, ee.isStrictMode = K, ee.isSuspense = se, ee.isValidElementType = C, ee.typeOf = w;
|
|
769
769
|
}()), ee;
|
|
770
770
|
}
|
|
771
771
|
var qt;
|
|
772
|
-
function
|
|
772
|
+
function Rr() {
|
|
773
773
|
return qt || (qt = 1, process.env.NODE_ENV === "production" ? Xe.exports = sn() : Xe.exports = an()), Xe.exports;
|
|
774
774
|
}
|
|
775
775
|
/*
|
|
@@ -887,7 +887,7 @@ var Et, er;
|
|
|
887
887
|
function cn() {
|
|
888
888
|
if (er) return Et;
|
|
889
889
|
er = 1;
|
|
890
|
-
var r =
|
|
890
|
+
var r = Rr(), e = on(), t = /* @__PURE__ */ kt(), n = /* @__PURE__ */ Dr(), s = /* @__PURE__ */ ln(), a = function() {
|
|
891
891
|
};
|
|
892
892
|
process.env.NODE_ENV !== "production" && (a = function(o) {
|
|
893
893
|
var l = "Warning: " + o;
|
|
@@ -903,9 +903,9 @@ function cn() {
|
|
|
903
903
|
return Et = function(o, l) {
|
|
904
904
|
var c = typeof Symbol == "function" && Symbol.iterator, d = "@@iterator";
|
|
905
905
|
function u(h) {
|
|
906
|
-
var
|
|
907
|
-
if (typeof
|
|
908
|
-
return
|
|
906
|
+
var x = h && (c && h[c] || h[d]);
|
|
907
|
+
if (typeof x == "function")
|
|
908
|
+
return x;
|
|
909
909
|
}
|
|
910
910
|
var f = "<<anonymous>>", g = {
|
|
911
911
|
array: T("array"),
|
|
@@ -916,221 +916,221 @@ function cn() {
|
|
|
916
916
|
object: T("object"),
|
|
917
917
|
string: T("string"),
|
|
918
918
|
symbol: T("symbol"),
|
|
919
|
-
any:
|
|
919
|
+
any: v(),
|
|
920
920
|
arrayOf: C,
|
|
921
921
|
element: w(),
|
|
922
922
|
elementType: y(),
|
|
923
|
-
instanceOf:
|
|
923
|
+
instanceOf: _,
|
|
924
924
|
node: I(),
|
|
925
925
|
objectOf: k,
|
|
926
926
|
oneOf: S,
|
|
927
927
|
oneOfType: L,
|
|
928
|
-
shape:
|
|
929
|
-
exact:
|
|
928
|
+
shape: O,
|
|
929
|
+
exact: P
|
|
930
930
|
};
|
|
931
|
-
function p(h,
|
|
932
|
-
return h ===
|
|
931
|
+
function p(h, x) {
|
|
932
|
+
return h === x ? h !== 0 || 1 / h === 1 / x : h !== h && x !== x;
|
|
933
933
|
}
|
|
934
|
-
function b(h,
|
|
935
|
-
this.message = h, this.data =
|
|
934
|
+
function b(h, x) {
|
|
935
|
+
this.message = h, this.data = x && typeof x == "object" ? x : {}, this.stack = "";
|
|
936
936
|
}
|
|
937
937
|
b.prototype = Error.prototype;
|
|
938
938
|
function E(h) {
|
|
939
939
|
if (process.env.NODE_ENV !== "production")
|
|
940
|
-
var
|
|
941
|
-
function
|
|
942
|
-
if (V = V || f, K = K ||
|
|
940
|
+
var x = {}, $ = 0;
|
|
941
|
+
function j(A, U, W, V, J, K, se) {
|
|
942
|
+
if (V = V || f, K = K || W, se !== t) {
|
|
943
943
|
if (l) {
|
|
944
944
|
var M = new Error(
|
|
945
945
|
"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"
|
|
946
946
|
);
|
|
947
947
|
throw M.name = "Invariant Violation", M;
|
|
948
948
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
949
|
-
var
|
|
950
|
-
!
|
|
949
|
+
var Y = V + ":" + W;
|
|
950
|
+
!x[Y] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
951
951
|
$ < 3 && (a(
|
|
952
952
|
"You are manually calling a React.PropTypes validation function for the `" + K + "` prop on `" + V + "`. 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."
|
|
953
|
-
),
|
|
953
|
+
), x[Y] = !0, $++);
|
|
954
954
|
}
|
|
955
955
|
}
|
|
956
|
-
return W
|
|
956
|
+
return U[W] == null ? A ? U[W] === null ? new b("The " + J + " `" + K + "` is marked as required " + ("in `" + V + "`, but its value is `null`.")) : new b("The " + J + " `" + K + "` is marked as required in " + ("`" + V + "`, but its value is `undefined`.")) : null : h(U, W, V, J, K);
|
|
957
957
|
}
|
|
958
|
-
var D =
|
|
959
|
-
return D.isRequired =
|
|
958
|
+
var D = j.bind(null, !1);
|
|
959
|
+
return D.isRequired = j.bind(null, !0), D;
|
|
960
960
|
}
|
|
961
961
|
function T(h) {
|
|
962
|
-
function
|
|
963
|
-
var V = $[
|
|
962
|
+
function x($, j, D, A, U, W) {
|
|
963
|
+
var V = $[j], J = H(V);
|
|
964
964
|
if (J !== h) {
|
|
965
965
|
var K = q(V);
|
|
966
966
|
return new b(
|
|
967
|
-
"Invalid " +
|
|
967
|
+
"Invalid " + A + " `" + U + "` of type " + ("`" + K + "` supplied to `" + D + "`, expected ") + ("`" + h + "`."),
|
|
968
968
|
{ expectedType: h }
|
|
969
969
|
);
|
|
970
970
|
}
|
|
971
971
|
return null;
|
|
972
972
|
}
|
|
973
|
-
return E(
|
|
973
|
+
return E(x);
|
|
974
974
|
}
|
|
975
|
-
function
|
|
975
|
+
function v() {
|
|
976
976
|
return E(i);
|
|
977
977
|
}
|
|
978
978
|
function C(h) {
|
|
979
|
-
function
|
|
979
|
+
function x($, j, D, A, U) {
|
|
980
980
|
if (typeof h != "function")
|
|
981
|
-
return new b("Property `" +
|
|
982
|
-
var
|
|
983
|
-
if (!Array.isArray(
|
|
984
|
-
var V =
|
|
985
|
-
return new b("Invalid " +
|
|
981
|
+
return new b("Property `" + U + "` of component `" + D + "` has invalid PropType notation inside arrayOf.");
|
|
982
|
+
var W = $[j];
|
|
983
|
+
if (!Array.isArray(W)) {
|
|
984
|
+
var V = H(W);
|
|
985
|
+
return new b("Invalid " + A + " `" + U + "` of type " + ("`" + V + "` supplied to `" + D + "`, expected an array."));
|
|
986
986
|
}
|
|
987
|
-
for (var J = 0; J <
|
|
988
|
-
var K = h(
|
|
987
|
+
for (var J = 0; J < W.length; J++) {
|
|
988
|
+
var K = h(W, J, D, A, U + "[" + J + "]", t);
|
|
989
989
|
if (K instanceof Error)
|
|
990
990
|
return K;
|
|
991
991
|
}
|
|
992
992
|
return null;
|
|
993
993
|
}
|
|
994
|
-
return E(
|
|
994
|
+
return E(x);
|
|
995
995
|
}
|
|
996
996
|
function w() {
|
|
997
|
-
function h(
|
|
998
|
-
var
|
|
999
|
-
if (!o(
|
|
1000
|
-
var
|
|
1001
|
-
return new b("Invalid " + D + " `" +
|
|
997
|
+
function h(x, $, j, D, A) {
|
|
998
|
+
var U = x[$];
|
|
999
|
+
if (!o(U)) {
|
|
1000
|
+
var W = H(U);
|
|
1001
|
+
return new b("Invalid " + D + " `" + A + "` of type " + ("`" + W + "` supplied to `" + j + "`, expected a single ReactElement."));
|
|
1002
1002
|
}
|
|
1003
1003
|
return null;
|
|
1004
1004
|
}
|
|
1005
1005
|
return E(h);
|
|
1006
1006
|
}
|
|
1007
1007
|
function y() {
|
|
1008
|
-
function h(
|
|
1009
|
-
var
|
|
1010
|
-
if (!r.isValidElementType(
|
|
1011
|
-
var
|
|
1012
|
-
return new b("Invalid " + D + " `" +
|
|
1008
|
+
function h(x, $, j, D, A) {
|
|
1009
|
+
var U = x[$];
|
|
1010
|
+
if (!r.isValidElementType(U)) {
|
|
1011
|
+
var W = H(U);
|
|
1012
|
+
return new b("Invalid " + D + " `" + A + "` of type " + ("`" + W + "` supplied to `" + j + "`, expected a single ReactElement type."));
|
|
1013
1013
|
}
|
|
1014
1014
|
return null;
|
|
1015
1015
|
}
|
|
1016
1016
|
return E(h);
|
|
1017
1017
|
}
|
|
1018
|
-
function
|
|
1019
|
-
function
|
|
1020
|
-
if (!($[
|
|
1021
|
-
var
|
|
1022
|
-
return new b("Invalid " +
|
|
1018
|
+
function _(h) {
|
|
1019
|
+
function x($, j, D, A, U) {
|
|
1020
|
+
if (!($[j] instanceof h)) {
|
|
1021
|
+
var W = h.name || f, V = F($[j]);
|
|
1022
|
+
return new b("Invalid " + A + " `" + U + "` of type " + ("`" + V + "` supplied to `" + D + "`, expected ") + ("instance of `" + W + "`."));
|
|
1023
1023
|
}
|
|
1024
1024
|
return null;
|
|
1025
1025
|
}
|
|
1026
|
-
return E(
|
|
1026
|
+
return E(x);
|
|
1027
1027
|
}
|
|
1028
1028
|
function S(h) {
|
|
1029
1029
|
if (!Array.isArray(h))
|
|
1030
1030
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
|
|
1031
1031
|
"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])."
|
|
1032
1032
|
) : a("Invalid argument supplied to oneOf, expected an array.")), i;
|
|
1033
|
-
function
|
|
1034
|
-
for (var
|
|
1035
|
-
if (p(
|
|
1033
|
+
function x($, j, D, A, U) {
|
|
1034
|
+
for (var W = $[j], V = 0; V < h.length; V++)
|
|
1035
|
+
if (p(W, h[V]))
|
|
1036
1036
|
return null;
|
|
1037
1037
|
var J = JSON.stringify(h, function(se, M) {
|
|
1038
|
-
var
|
|
1039
|
-
return
|
|
1038
|
+
var Y = q(M);
|
|
1039
|
+
return Y === "symbol" ? String(M) : M;
|
|
1040
1040
|
});
|
|
1041
|
-
return new b("Invalid " +
|
|
1041
|
+
return new b("Invalid " + A + " `" + U + "` of value `" + String(W) + "` " + ("supplied to `" + D + "`, expected one of " + J + "."));
|
|
1042
1042
|
}
|
|
1043
|
-
return E(
|
|
1043
|
+
return E(x);
|
|
1044
1044
|
}
|
|
1045
1045
|
function k(h) {
|
|
1046
|
-
function
|
|
1046
|
+
function x($, j, D, A, U) {
|
|
1047
1047
|
if (typeof h != "function")
|
|
1048
|
-
return new b("Property `" +
|
|
1049
|
-
var
|
|
1048
|
+
return new b("Property `" + U + "` of component `" + D + "` has invalid PropType notation inside objectOf.");
|
|
1049
|
+
var W = $[j], V = H(W);
|
|
1050
1050
|
if (V !== "object")
|
|
1051
|
-
return new b("Invalid " +
|
|
1052
|
-
for (var J in
|
|
1053
|
-
if (n(
|
|
1054
|
-
var K = h(
|
|
1051
|
+
return new b("Invalid " + A + " `" + U + "` of type " + ("`" + V + "` supplied to `" + D + "`, expected an object."));
|
|
1052
|
+
for (var J in W)
|
|
1053
|
+
if (n(W, J)) {
|
|
1054
|
+
var K = h(W, J, D, A, U + "." + J, t);
|
|
1055
1055
|
if (K instanceof Error)
|
|
1056
1056
|
return K;
|
|
1057
1057
|
}
|
|
1058
1058
|
return null;
|
|
1059
1059
|
}
|
|
1060
|
-
return E(
|
|
1060
|
+
return E(x);
|
|
1061
1061
|
}
|
|
1062
1062
|
function L(h) {
|
|
1063
1063
|
if (!Array.isArray(h))
|
|
1064
1064
|
return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), i;
|
|
1065
|
-
for (var
|
|
1066
|
-
var $ = h[
|
|
1065
|
+
for (var x = 0; x < h.length; x++) {
|
|
1066
|
+
var $ = h[x];
|
|
1067
1067
|
if (typeof $ != "function")
|
|
1068
1068
|
return a(
|
|
1069
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + X($) + " at index " +
|
|
1069
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + X($) + " at index " + x + "."
|
|
1070
1070
|
), i;
|
|
1071
1071
|
}
|
|
1072
|
-
function
|
|
1072
|
+
function j(D, A, U, W, V) {
|
|
1073
1073
|
for (var J = [], K = 0; K < h.length; K++) {
|
|
1074
|
-
var se = h[K], M = se(D,
|
|
1074
|
+
var se = h[K], M = se(D, A, U, W, V, t);
|
|
1075
1075
|
if (M == null)
|
|
1076
1076
|
return null;
|
|
1077
1077
|
M.data && n(M.data, "expectedType") && J.push(M.data.expectedType);
|
|
1078
1078
|
}
|
|
1079
|
-
var
|
|
1080
|
-
return new b("Invalid " +
|
|
1079
|
+
var Y = J.length > 0 ? ", expected one of type [" + J.join(", ") + "]" : "";
|
|
1080
|
+
return new b("Invalid " + W + " `" + V + "` supplied to " + ("`" + U + "`" + Y + "."));
|
|
1081
1081
|
}
|
|
1082
|
-
return E(
|
|
1082
|
+
return E(j);
|
|
1083
1083
|
}
|
|
1084
1084
|
function I() {
|
|
1085
|
-
function h(
|
|
1086
|
-
return N(
|
|
1085
|
+
function h(x, $, j, D, A) {
|
|
1086
|
+
return N(x[$]) ? null : new b("Invalid " + D + " `" + A + "` supplied to " + ("`" + j + "`, expected a ReactNode."));
|
|
1087
1087
|
}
|
|
1088
1088
|
return E(h);
|
|
1089
1089
|
}
|
|
1090
|
-
function
|
|
1090
|
+
function R(h, x, $, j, D) {
|
|
1091
1091
|
return new b(
|
|
1092
|
-
(h || "React class") + ": " +
|
|
1092
|
+
(h || "React class") + ": " + x + " type `" + $ + "." + j + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + D + "`."
|
|
1093
1093
|
);
|
|
1094
1094
|
}
|
|
1095
|
-
function
|
|
1096
|
-
function
|
|
1097
|
-
var
|
|
1095
|
+
function O(h) {
|
|
1096
|
+
function x($, j, D, A, U) {
|
|
1097
|
+
var W = $[j], V = H(W);
|
|
1098
1098
|
if (V !== "object")
|
|
1099
|
-
return new b("Invalid " +
|
|
1099
|
+
return new b("Invalid " + A + " `" + U + "` of type `" + V + "` " + ("supplied to `" + D + "`, expected `object`."));
|
|
1100
1100
|
for (var J in h) {
|
|
1101
1101
|
var K = h[J];
|
|
1102
1102
|
if (typeof K != "function")
|
|
1103
|
-
return
|
|
1104
|
-
var se = K(
|
|
1103
|
+
return R(D, A, U, J, q(K));
|
|
1104
|
+
var se = K(W, J, D, A, U + "." + J, t);
|
|
1105
1105
|
if (se)
|
|
1106
1106
|
return se;
|
|
1107
1107
|
}
|
|
1108
1108
|
return null;
|
|
1109
1109
|
}
|
|
1110
|
-
return E(
|
|
1110
|
+
return E(x);
|
|
1111
1111
|
}
|
|
1112
|
-
function
|
|
1113
|
-
function
|
|
1114
|
-
var
|
|
1112
|
+
function P(h) {
|
|
1113
|
+
function x($, j, D, A, U) {
|
|
1114
|
+
var W = $[j], V = H(W);
|
|
1115
1115
|
if (V !== "object")
|
|
1116
|
-
return new b("Invalid " +
|
|
1117
|
-
var J = e({}, $[
|
|
1116
|
+
return new b("Invalid " + A + " `" + U + "` of type `" + V + "` " + ("supplied to `" + D + "`, expected `object`."));
|
|
1117
|
+
var J = e({}, $[j], h);
|
|
1118
1118
|
for (var K in J) {
|
|
1119
1119
|
var se = h[K];
|
|
1120
1120
|
if (n(h, K) && typeof se != "function")
|
|
1121
|
-
return
|
|
1121
|
+
return R(D, A, U, K, q(se));
|
|
1122
1122
|
if (!se)
|
|
1123
1123
|
return new b(
|
|
1124
|
-
"Invalid " +
|
|
1124
|
+
"Invalid " + A + " `" + U + "` key `" + K + "` supplied to `" + D + "`.\nBad object: " + JSON.stringify($[j], null, " ") + `
|
|
1125
1125
|
Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
1126
1126
|
);
|
|
1127
|
-
var M = se(
|
|
1127
|
+
var M = se(W, K, D, A, U + "." + K, t);
|
|
1128
1128
|
if (M)
|
|
1129
1129
|
return M;
|
|
1130
1130
|
}
|
|
1131
1131
|
return null;
|
|
1132
1132
|
}
|
|
1133
|
-
return E(
|
|
1133
|
+
return E(x);
|
|
1134
1134
|
}
|
|
1135
1135
|
function N(h) {
|
|
1136
1136
|
switch (typeof h) {
|
|
@@ -1145,16 +1145,16 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
|
1145
1145
|
return h.every(N);
|
|
1146
1146
|
if (h === null || o(h))
|
|
1147
1147
|
return !0;
|
|
1148
|
-
var
|
|
1149
|
-
if (
|
|
1150
|
-
var $ =
|
|
1151
|
-
if (
|
|
1152
|
-
for (; !(
|
|
1153
|
-
if (!N(
|
|
1148
|
+
var x = u(h);
|
|
1149
|
+
if (x) {
|
|
1150
|
+
var $ = x.call(h), j;
|
|
1151
|
+
if (x !== h.entries) {
|
|
1152
|
+
for (; !(j = $.next()).done; )
|
|
1153
|
+
if (!N(j.value))
|
|
1154
1154
|
return !1;
|
|
1155
1155
|
} else
|
|
1156
|
-
for (; !(
|
|
1157
|
-
var D =
|
|
1156
|
+
for (; !(j = $.next()).done; ) {
|
|
1157
|
+
var D = j.value;
|
|
1158
1158
|
if (D && !N(D[1]))
|
|
1159
1159
|
return !1;
|
|
1160
1160
|
}
|
|
@@ -1165,37 +1165,37 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
|
1165
1165
|
return !1;
|
|
1166
1166
|
}
|
|
1167
1167
|
}
|
|
1168
|
-
function B(h,
|
|
1169
|
-
return h === "symbol" ? !0 :
|
|
1168
|
+
function B(h, x) {
|
|
1169
|
+
return h === "symbol" ? !0 : x ? x["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && x instanceof Symbol : !1;
|
|
1170
1170
|
}
|
|
1171
|
-
function
|
|
1172
|
-
var
|
|
1173
|
-
return Array.isArray(h) ? "array" : h instanceof RegExp ? "object" : B(
|
|
1171
|
+
function H(h) {
|
|
1172
|
+
var x = typeof h;
|
|
1173
|
+
return Array.isArray(h) ? "array" : h instanceof RegExp ? "object" : B(x, h) ? "symbol" : x;
|
|
1174
1174
|
}
|
|
1175
1175
|
function q(h) {
|
|
1176
1176
|
if (typeof h > "u" || h === null)
|
|
1177
1177
|
return "" + h;
|
|
1178
|
-
var
|
|
1179
|
-
if (
|
|
1178
|
+
var x = H(h);
|
|
1179
|
+
if (x === "object") {
|
|
1180
1180
|
if (h instanceof Date)
|
|
1181
1181
|
return "date";
|
|
1182
1182
|
if (h instanceof RegExp)
|
|
1183
1183
|
return "regexp";
|
|
1184
1184
|
}
|
|
1185
|
-
return
|
|
1185
|
+
return x;
|
|
1186
1186
|
}
|
|
1187
1187
|
function X(h) {
|
|
1188
|
-
var
|
|
1189
|
-
switch (
|
|
1188
|
+
var x = q(h);
|
|
1189
|
+
switch (x) {
|
|
1190
1190
|
case "array":
|
|
1191
1191
|
case "object":
|
|
1192
|
-
return "an " +
|
|
1192
|
+
return "an " + x;
|
|
1193
1193
|
case "boolean":
|
|
1194
1194
|
case "date":
|
|
1195
1195
|
case "regexp":
|
|
1196
|
-
return "a " +
|
|
1196
|
+
return "a " + x;
|
|
1197
1197
|
default:
|
|
1198
|
-
return
|
|
1198
|
+
return x;
|
|
1199
1199
|
}
|
|
1200
1200
|
}
|
|
1201
1201
|
function F(h) {
|
|
@@ -1256,7 +1256,7 @@ var rr;
|
|
|
1256
1256
|
function dn() {
|
|
1257
1257
|
if (rr) return Je.exports;
|
|
1258
1258
|
if (rr = 1, process.env.NODE_ENV !== "production") {
|
|
1259
|
-
var r =
|
|
1259
|
+
var r = Rr(), e = !0;
|
|
1260
1260
|
Je.exports = /* @__PURE__ */ cn()(r.isElement, e);
|
|
1261
1261
|
} else
|
|
1262
1262
|
Je.exports = /* @__PURE__ */ un()();
|
|
@@ -1273,7 +1273,7 @@ var ie = /* @__PURE__ */ dn(), fn = function(e) {
|
|
|
1273
1273
|
if (e[s] !== t[s])
|
|
1274
1274
|
return !0;
|
|
1275
1275
|
return !1;
|
|
1276
|
-
}, hn = ["afterInjection", "beforeInjection", "desc", "evalScripts", "fallback", "httpRequestWithCredentials", "loading", "renumerateIRIElements", "src", "title", "useRequestCache", "wrapper"], Ze = "http://www.w3.org/2000/svg", nr = "http://www.w3.org/1999/xlink",
|
|
1276
|
+
}, hn = ["afterInjection", "beforeInjection", "desc", "evalScripts", "fallback", "httpRequestWithCredentials", "loading", "renumerateIRIElements", "src", "title", "useRequestCache", "wrapper"], Ze = "http://www.w3.org/2000/svg", nr = "http://www.w3.org/1999/xlink", Ne = /* @__PURE__ */ function(r) {
|
|
1277
1277
|
function e() {
|
|
1278
1278
|
for (var n, s = arguments.length, a = new Array(s), i = 0; i < s; i++)
|
|
1279
1279
|
a[i] = arguments[i];
|
|
@@ -1289,8 +1289,8 @@ var ie = /* @__PURE__ */ dn(), fn = function(e) {
|
|
|
1289
1289
|
return t.renderSVG = function() {
|
|
1290
1290
|
var s = this;
|
|
1291
1291
|
if (this.reactWrapper instanceof fn(this.reactWrapper).Node) {
|
|
1292
|
-
var a = this.props, i = a.desc, o = a.evalScripts, l = a.httpRequestWithCredentials, c = a.renumerateIRIElements, d = a.src, u = a.title, f = a.useRequestCache, g = this.props.onError, p = this.props.beforeInjection, b = this.props.afterInjection, E = this.props.wrapper, T,
|
|
1293
|
-
E === "svg" ? (T = document.createElementNS(Ze, E), T.setAttribute("xmlns", Ze), T.setAttribute("xmlns:xlink", nr),
|
|
1292
|
+
var a = this.props, i = a.desc, o = a.evalScripts, l = a.httpRequestWithCredentials, c = a.renumerateIRIElements, d = a.src, u = a.title, f = a.useRequestCache, g = this.props.onError, p = this.props.beforeInjection, b = this.props.afterInjection, E = this.props.wrapper, T, v;
|
|
1293
|
+
E === "svg" ? (T = document.createElementNS(Ze, E), T.setAttribute("xmlns", Ze), T.setAttribute("xmlns:xlink", nr), v = document.createElementNS(Ze, E)) : (T = document.createElement(E), v = document.createElement(E)), T.appendChild(v), v.dataset.src = d, this.nonReactWrapper = this.reactWrapper.appendChild(T);
|
|
1294
1294
|
var C = function(S) {
|
|
1295
1295
|
if (s.removeSVG(), !s._isMounted) {
|
|
1296
1296
|
g(S);
|
|
@@ -1330,16 +1330,16 @@ var ie = /* @__PURE__ */ dn(), fn = function(e) {
|
|
|
1330
1330
|
if (u) {
|
|
1331
1331
|
var I = S.querySelector(":scope > title");
|
|
1332
1332
|
I && S.removeChild(I);
|
|
1333
|
-
var
|
|
1334
|
-
|
|
1333
|
+
var R = document.createElement("title");
|
|
1334
|
+
R.innerHTML = u, S.prepend(R);
|
|
1335
1335
|
}
|
|
1336
1336
|
try {
|
|
1337
1337
|
p(S);
|
|
1338
|
-
} catch (
|
|
1339
|
-
C(
|
|
1338
|
+
} catch (O) {
|
|
1339
|
+
C(O);
|
|
1340
1340
|
}
|
|
1341
1341
|
};
|
|
1342
|
-
nn(
|
|
1342
|
+
nn(v, {
|
|
1343
1343
|
afterEach: w,
|
|
1344
1344
|
beforeEach: y,
|
|
1345
1345
|
cacheRequests: f,
|
|
@@ -1378,7 +1378,7 @@ var ie = /* @__PURE__ */ dn(), fn = function(e) {
|
|
|
1378
1378
|
} : {}), this.state.isLoading && i && /* @__PURE__ */ Ke.createElement(i, null), this.state.hasError && a && /* @__PURE__ */ Ke.createElement(a, null));
|
|
1379
1379
|
}, e;
|
|
1380
1380
|
}(Ke.Component);
|
|
1381
|
-
|
|
1381
|
+
Ne.defaultProps = {
|
|
1382
1382
|
afterInjection: function() {
|
|
1383
1383
|
},
|
|
1384
1384
|
beforeInjection: function() {
|
|
@@ -1395,7 +1395,7 @@ Ie.defaultProps = {
|
|
|
1395
1395
|
useRequestCache: !0,
|
|
1396
1396
|
wrapper: "div"
|
|
1397
1397
|
};
|
|
1398
|
-
|
|
1398
|
+
Ne.propTypes = {
|
|
1399
1399
|
afterInjection: ie.func,
|
|
1400
1400
|
beforeInjection: ie.func,
|
|
1401
1401
|
desc: ie.string,
|
|
@@ -1414,9 +1414,9 @@ let _t = {
|
|
|
1414
1414
|
assets: "/"
|
|
1415
1415
|
// Default for storybook isolation development
|
|
1416
1416
|
};
|
|
1417
|
-
const
|
|
1417
|
+
const ea = (r) => {
|
|
1418
1418
|
_t = { ..._t, ...r };
|
|
1419
|
-
}, sr = (r) => `${_t.assets}/${r}`.replace(/\/+/g, "/"),
|
|
1419
|
+
}, sr = (r) => `${_t.assets}/${r}`.replace(/\/+/g, "/"), de = st.memo(
|
|
1420
1420
|
({
|
|
1421
1421
|
icon: r,
|
|
1422
1422
|
width: e,
|
|
@@ -1432,21 +1432,21 @@ const Qs = (r) => {
|
|
|
1432
1432
|
title: u,
|
|
1433
1433
|
tabIndex: f
|
|
1434
1434
|
}) => {
|
|
1435
|
-
const [g, p] =
|
|
1435
|
+
const [g, p] = G(r), b = r?.startsWith("http") || r?.startsWith("/"), E = b && r?.toLowerCase().endsWith(".svg"), T = sr(`assets/svg/${r}.svg`), v = sr(
|
|
1436
1436
|
`assets/svg/${n}.svg`
|
|
1437
1437
|
), C = {
|
|
1438
1438
|
img: `${c ? "smp-image-interactable" : ""}`,
|
|
1439
1439
|
svg: `smp-icon ${i ? `smp-icon-${i}` : ""} ${o ? "smp-icon-rotated" : ""} ${c ? "smp-icon-interactable" : ""} ${d ? "smp-icon-spin" : ""}`
|
|
1440
|
-
}, w = (
|
|
1441
|
-
!a && c && l && l(
|
|
1442
|
-
}, y = (
|
|
1443
|
-
!a && c && (
|
|
1440
|
+
}, w = (_) => {
|
|
1441
|
+
!a && c && l && l(_);
|
|
1442
|
+
}, y = (_) => {
|
|
1443
|
+
!a && c && (_.key === "Enter" || _.key === " ") && (_.preventDefault(), w(_));
|
|
1444
1444
|
};
|
|
1445
1445
|
return /* @__PURE__ */ m.jsx(m.Fragment, { children: E ? /* @__PURE__ */ m.jsx(
|
|
1446
|
-
|
|
1446
|
+
Ne,
|
|
1447
1447
|
{
|
|
1448
1448
|
src: r,
|
|
1449
|
-
fallback: () => /* @__PURE__ */ m.jsx(
|
|
1449
|
+
fallback: () => /* @__PURE__ */ m.jsx(Ne, { src: v, wrapper: "svg" }),
|
|
1450
1450
|
width: e || "1rem",
|
|
1451
1451
|
height: t || "1rem",
|
|
1452
1452
|
wrapper: "svg",
|
|
@@ -1455,7 +1455,7 @@ const Qs = (r) => {
|
|
|
1455
1455
|
fill: s,
|
|
1456
1456
|
"aria-disabled": a,
|
|
1457
1457
|
className: C.svg,
|
|
1458
|
-
onClick: (
|
|
1458
|
+
onClick: (_) => w(_),
|
|
1459
1459
|
onKeyDown: y,
|
|
1460
1460
|
tabIndex: f
|
|
1461
1461
|
}
|
|
@@ -1468,20 +1468,20 @@ const Qs = (r) => {
|
|
|
1468
1468
|
width: e || "16px",
|
|
1469
1469
|
height: t || "auto",
|
|
1470
1470
|
alt: u,
|
|
1471
|
-
onError: () => p(
|
|
1472
|
-
onClick: (
|
|
1471
|
+
onError: () => p(v),
|
|
1472
|
+
onClick: (_) => w(_),
|
|
1473
1473
|
className: C.img,
|
|
1474
1474
|
title: u,
|
|
1475
|
-
onKeyDown: (
|
|
1476
|
-
(
|
|
1475
|
+
onKeyDown: (_) => {
|
|
1476
|
+
(_.key === "Enter" || _.key === " ") && w(_);
|
|
1477
1477
|
}
|
|
1478
1478
|
}
|
|
1479
1479
|
)
|
|
1480
1480
|
) : /* @__PURE__ */ m.jsx(
|
|
1481
|
-
|
|
1481
|
+
Ne,
|
|
1482
1482
|
{
|
|
1483
1483
|
src: T,
|
|
1484
|
-
fallback: () => /* @__PURE__ */ m.jsx(
|
|
1484
|
+
fallback: () => /* @__PURE__ */ m.jsx(Ne, { src: v, wrapper: "svg" }),
|
|
1485
1485
|
width: e || "1rem",
|
|
1486
1486
|
height: t || "1rem",
|
|
1487
1487
|
wrapper: "svg",
|
|
@@ -1490,7 +1490,7 @@ const Qs = (r) => {
|
|
|
1490
1490
|
fill: s,
|
|
1491
1491
|
"aria-disabled": a,
|
|
1492
1492
|
className: C.svg,
|
|
1493
|
-
onClick: (
|
|
1493
|
+
onClick: (_) => w(_),
|
|
1494
1494
|
onKeyDown: y,
|
|
1495
1495
|
tabIndex: f
|
|
1496
1496
|
}
|
|
@@ -1506,7 +1506,7 @@ const Qs = (r) => {
|
|
|
1506
1506
|
primary: "onPrimary",
|
|
1507
1507
|
danger: "onDanger",
|
|
1508
1508
|
base: "base"
|
|
1509
|
-
})[r],
|
|
1509
|
+
})[r], we = ({
|
|
1510
1510
|
bindValue: r,
|
|
1511
1511
|
onClick: e,
|
|
1512
1512
|
ariaLabel: t,
|
|
@@ -1523,25 +1523,27 @@ const Qs = (r) => {
|
|
|
1523
1523
|
title: g,
|
|
1524
1524
|
optionalDisplayValue: p,
|
|
1525
1525
|
squared: b = !1,
|
|
1526
|
-
submit: E = !1
|
|
1526
|
+
submit: E = !1,
|
|
1527
|
+
active: T = !1,
|
|
1528
|
+
buttonExt: v
|
|
1527
1529
|
}) => {
|
|
1528
|
-
const
|
|
1529
|
-
container: `smp-button smp-button-container ${a ? `smp-button-${a}` : ""} ${i ? `smp-buttonVariant-${i}` : ""} ${o ? `smp-buttonType-${o}` : ""} ${d ? "smp-button-fullWidth" : ""} smp-justifyContent-${f} ${b && !c ? "smp-button-squared" : ""}`
|
|
1530
|
+
const C = {
|
|
1531
|
+
container: `smp-button smp-button-container ${a ? `smp-button-${a}` : ""} ${i ? `smp-buttonVariant-${i}` : ""} ${o ? `smp-buttonType-${o}` : ""} ${d ? "smp-button-fullWidth" : ""} smp-justifyContent-${f} ${b && !c ? "smp-button-squared" : ""} ${T ? "smp-buttonActive" : ""} ${v ? `smp-buttonExt-${v}` : ""}`
|
|
1530
1532
|
};
|
|
1531
1533
|
return /* @__PURE__ */ m.jsx(
|
|
1532
1534
|
"button",
|
|
1533
1535
|
{
|
|
1534
1536
|
"data-component": "button",
|
|
1535
1537
|
type: E ? "submit" : "button",
|
|
1536
|
-
className:
|
|
1538
|
+
className: C.container,
|
|
1537
1539
|
onClick: e,
|
|
1538
1540
|
"aria-label": t,
|
|
1539
1541
|
disabled: s,
|
|
1540
1542
|
"aria-busy": u,
|
|
1541
1543
|
title: g || p,
|
|
1542
|
-
children: u ? /* @__PURE__ */ m.jsx(
|
|
1544
|
+
children: u ? /* @__PURE__ */ m.jsx(de, { icon: "spinner", state: or(i), spin: !0 }) : /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
|
|
1543
1545
|
n && l && /* @__PURE__ */ m.jsx(
|
|
1544
|
-
|
|
1546
|
+
de,
|
|
1545
1547
|
{
|
|
1546
1548
|
icon: n,
|
|
1547
1549
|
disabled: s,
|
|
@@ -1600,14 +1602,14 @@ const Qs = (r) => {
|
|
|
1600
1602
|
selectedIndex: n,
|
|
1601
1603
|
onTabChange: s
|
|
1602
1604
|
}) => {
|
|
1603
|
-
const [a, i] =
|
|
1605
|
+
const [a, i] = G(n ?? 0), [o, l] = G(!1), [c, d] = G(!1), u = le(null);
|
|
1604
1606
|
if (re(() => {
|
|
1605
|
-
const
|
|
1606
|
-
if (!
|
|
1607
|
+
const v = u.current;
|
|
1608
|
+
if (!v) return;
|
|
1607
1609
|
b();
|
|
1608
1610
|
const C = () => b();
|
|
1609
|
-
return
|
|
1610
|
-
|
|
1611
|
+
return v.addEventListener("scroll", C), window.addEventListener("resize", b), () => {
|
|
1612
|
+
v.removeEventListener("scroll", C), window.removeEventListener("resize", b);
|
|
1611
1613
|
};
|
|
1612
1614
|
}, []), re(() => {
|
|
1613
1615
|
n !== void 0 && i(n);
|
|
@@ -1622,9 +1624,9 @@ const Qs = (r) => {
|
|
|
1622
1624
|
scrollButtonLeft: `${be["smp-tabbar-scroll-button"]} ${be["smp-tabbar-scroll-buttonLeft"]}`,
|
|
1623
1625
|
active: be["smp-active"]
|
|
1624
1626
|
}, g = 100, p = 2, b = () => {
|
|
1625
|
-
const
|
|
1626
|
-
|
|
1627
|
-
|
|
1627
|
+
const v = u.current;
|
|
1628
|
+
v && (l(v.scrollLeft > 0), d(
|
|
1629
|
+
v.scrollLeft + v.clientWidth < v.scrollWidth - p
|
|
1628
1630
|
));
|
|
1629
1631
|
}, E = () => {
|
|
1630
1632
|
u.current?.scrollBy({ left: -g, behavior: "smooth" });
|
|
@@ -1639,7 +1641,7 @@ const Qs = (r) => {
|
|
|
1639
1641
|
"data-component": "tab-bar",
|
|
1640
1642
|
children: [
|
|
1641
1643
|
o && /* @__PURE__ */ m.jsx("div", { className: f.scrollButtonLeft, children: /* @__PURE__ */ m.jsx(
|
|
1642
|
-
|
|
1644
|
+
we,
|
|
1643
1645
|
{
|
|
1644
1646
|
bindValue: "",
|
|
1645
1647
|
optionalDisplayValue: "<",
|
|
@@ -1648,7 +1650,7 @@ const Qs = (r) => {
|
|
|
1648
1650
|
sizing: e
|
|
1649
1651
|
}
|
|
1650
1652
|
) }),
|
|
1651
|
-
/* @__PURE__ */ m.jsx("div", { className: f.listWrapper, children: /* @__PURE__ */ m.jsx("div", { className: f.list, ref: u, role: "tablist", children: r.children.map((
|
|
1653
|
+
/* @__PURE__ */ m.jsx("div", { className: f.listWrapper, children: /* @__PURE__ */ m.jsx("div", { className: f.list, ref: u, role: "tablist", children: r.children.map((v, C) => /* @__PURE__ */ m.jsxs(
|
|
1652
1654
|
"button",
|
|
1653
1655
|
{
|
|
1654
1656
|
type: "button",
|
|
@@ -1657,25 +1659,25 @@ const Qs = (r) => {
|
|
|
1657
1659
|
"aria-selected": C === a,
|
|
1658
1660
|
tabIndex: C === a ? 0 : -1,
|
|
1659
1661
|
onClick: () => {
|
|
1660
|
-
s?.(C,
|
|
1662
|
+
s?.(C, v), i(C);
|
|
1661
1663
|
},
|
|
1662
1664
|
children: [
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
+
v.icon && /* @__PURE__ */ m.jsx(
|
|
1666
|
+
de,
|
|
1665
1667
|
{
|
|
1666
|
-
icon:
|
|
1667
|
-
placeholderIcon:
|
|
1668
|
+
icon: v.icon,
|
|
1669
|
+
placeholderIcon: v.placeholderIcon
|
|
1668
1670
|
}
|
|
1669
1671
|
),
|
|
1670
1672
|
/* @__PURE__ */ m.jsx(
|
|
1671
1673
|
Oe,
|
|
1672
1674
|
{
|
|
1673
1675
|
variant: "body",
|
|
1674
|
-
bindValue:
|
|
1676
|
+
bindValue: v.decode || "Tab[object Object]"
|
|
1675
1677
|
}
|
|
1676
1678
|
),
|
|
1677
1679
|
t && (a === C ? /* @__PURE__ */ m.jsx(
|
|
1678
|
-
|
|
1680
|
+
de,
|
|
1679
1681
|
{
|
|
1680
1682
|
icon: "more_vert",
|
|
1681
1683
|
isInteractable: !0,
|
|
@@ -1689,7 +1691,7 @@ const Qs = (r) => {
|
|
|
1689
1691
|
C
|
|
1690
1692
|
)) }) }),
|
|
1691
1693
|
c && /* @__PURE__ */ m.jsx("div", { className: f.scrollButtonRight, children: /* @__PURE__ */ m.jsx(
|
|
1692
|
-
|
|
1694
|
+
we,
|
|
1693
1695
|
{
|
|
1694
1696
|
bindValue: "",
|
|
1695
1697
|
optionalDisplayValue: ">",
|
|
@@ -1720,7 +1722,7 @@ const Qs = (r) => {
|
|
|
1720
1722
|
]
|
|
1721
1723
|
}
|
|
1722
1724
|
}) => {
|
|
1723
|
-
const [t, n] =
|
|
1725
|
+
const [t, n] = G(0), s = {};
|
|
1724
1726
|
st.Children.forEach(r, (p) => {
|
|
1725
1727
|
st.isValidElement(p) && (s[p.props.id] = p);
|
|
1726
1728
|
});
|
|
@@ -1728,21 +1730,21 @@ const Qs = (r) => {
|
|
|
1728
1730
|
e.sections ?? [],
|
|
1729
1731
|
Object.keys(s)
|
|
1730
1732
|
), l = (p) => p.reduce((b, E) => {
|
|
1731
|
-
let T = "",
|
|
1732
|
-
return E.sections?.length ? (T = he["smp-layout-section-grid"],
|
|
1733
|
+
let T = "", v = {}, C = {}, w = "";
|
|
1734
|
+
return E.sections?.length ? (T = he["smp-layout-section-grid"], v = l(E.sections), E.gridCols === void 0 && (w = he[E.horizontal ? "smp-grid-template-cols" : "smp-grid-template-rows"], (E.horizontal || Ut(E.sections)) && (C = Vt(
|
|
1733
1735
|
E.sections,
|
|
1734
1736
|
E.horizontal ? a : i
|
|
1735
1737
|
)))) : E.content?.length && (E.gridCols !== void 0 && E.gridCols > 0 ? (T = he["smp-layout-section-grid"], w = he["smp-grid-template-cols"], C = {
|
|
1736
1738
|
[a]: `repeat(${E.gridCols}, 1fr)`
|
|
1737
1739
|
}) : T = he["smp-layout-section-flex"]), {
|
|
1738
1740
|
...b,
|
|
1739
|
-
...
|
|
1741
|
+
...v,
|
|
1740
1742
|
[E.id]: {
|
|
1741
1743
|
classes: `${T} ${he[E.horizontal ? "smp-layout-section-horizontal" : "smp-layout-section-vertical"]} ${w} ${E.justify ? `smp-justifyContent-${E.justify}` : ""} ${E.align ? `smp-alignItems-${E.align}` : ""}`,
|
|
1742
1744
|
styles: C
|
|
1743
1745
|
}
|
|
1744
1746
|
};
|
|
1745
|
-
}, {}), c = l(o), d = `${he["smp-layout"]} ${e.horizontal ? he["smp-layout-horizontal"] : he["smp-layout-vertical"]}`, u = e.horizontal ||
|
|
1747
|
+
}, {}), c = l(o), d = `${he["smp-layout"]} ${e.horizontal ? he["smp-layout-horizontal"] : he["smp-layout-vertical"]}`, u = e.horizontal || Ut(e.sections || []) ? Vt(
|
|
1746
1748
|
o,
|
|
1747
1749
|
e.horizontal ? a : i
|
|
1748
1750
|
) : {}, f = (p, b) => {
|
|
@@ -1833,6 +1835,7 @@ const Qs = (r) => {
|
|
|
1833
1835
|
SPOTLIGHT: "SPL",
|
|
1834
1836
|
SWITCH: "SWT",
|
|
1835
1837
|
TEXT_FIELD: "ITX",
|
|
1838
|
+
BUTTON_GROUP: "BTO",
|
|
1836
1839
|
TIME: "TIM",
|
|
1837
1840
|
PASSWORD: "PWD"
|
|
1838
1841
|
}, yn = (r) => r.t == "D8", bn = (r) => r.t == "I1", vn = (r) => {
|
|
@@ -1895,13 +1898,13 @@ function xn(r, e) {
|
|
|
1895
1898
|
case 6: {
|
|
1896
1899
|
o = parseInt(n.substring(0, 2)), l = parseInt(n.substring(2, 4)), Number(n.substring(4)) > 50 ? c = "19" + n.substring(4) : c = "20" + n.substring(4);
|
|
1897
1900
|
let d = 0, u = 0;
|
|
1898
|
-
return i === 0 ? (d = l, u = o - 1, t.setFullYear(parseInt(c), u, d)) : a === 0 && (d = o, u = l - 1, t.setFullYear(parseInt(c), u, d)),
|
|
1901
|
+
return i === 0 ? (d = l, u = o - 1, t.setFullYear(parseInt(c), u, d)) : a === 0 && (d = o, u = l - 1, t.setFullYear(parseInt(c), u, d)), jt(o, u, parseInt(c)) && Qe(t) ? t : r;
|
|
1899
1902
|
}
|
|
1900
1903
|
case 7:
|
|
1901
1904
|
case 8: {
|
|
1902
1905
|
o = parseInt(n.substring(0, 2)), l = parseInt(n.substring(2, 4)), c = n.substring(4);
|
|
1903
1906
|
let d = 0, u = 0;
|
|
1904
|
-
return i === 0 ? (d = l, u = o - 1, t.setFullYear(parseInt(c), u, d)) : a === 0 && (d = o, u = l - 1, t.setFullYear(parseInt(c), u, d)),
|
|
1907
|
+
return i === 0 ? (d = l, u = o - 1, t.setFullYear(parseInt(c), u, d)) : a === 0 && (d = o, u = l - 1, t.setFullYear(parseInt(c), u, d)), jt(d, u, parseInt(c)) && Qe(t) ? t : r;
|
|
1905
1908
|
}
|
|
1906
1909
|
}
|
|
1907
1910
|
return r;
|
|
@@ -1915,9 +1918,9 @@ function Qe(r) {
|
|
|
1915
1918
|
function wn(r) {
|
|
1916
1919
|
if (!/^\d{8}$/.test(r)) return !1;
|
|
1917
1920
|
const e = parseInt(r.slice(0, 4), 10), t = parseInt(r.slice(4, 6), 10), n = parseInt(r.slice(6, 8), 10);
|
|
1918
|
-
return
|
|
1921
|
+
return jt(n, t - 1, e);
|
|
1919
1922
|
}
|
|
1920
|
-
function
|
|
1923
|
+
function jt(r, e, t) {
|
|
1921
1924
|
const n = [
|
|
1922
1925
|
31,
|
|
1923
1926
|
// January
|
|
@@ -1994,7 +1997,7 @@ function pt({
|
|
|
1994
1997
|
position: r = "bottom",
|
|
1995
1998
|
enabled: e = !0
|
|
1996
1999
|
}) {
|
|
1997
|
-
const t = le(null), n = le(null), [s, a] =
|
|
2000
|
+
const t = le(null), n = le(null), [s, a] = G(0), i = ue(() => {
|
|
1998
2001
|
const o = t.current, l = n.current;
|
|
1999
2002
|
if (!o || !l) return;
|
|
2000
2003
|
const { top: c, left: d, width: u, height: f } = o.getBoundingClientRect();
|
|
@@ -2004,26 +2007,26 @@ function pt({
|
|
|
2004
2007
|
requestAnimationFrame(i);
|
|
2005
2008
|
return;
|
|
2006
2009
|
}
|
|
2007
|
-
const b = window.scrollY, E = window.scrollX, T = window.innerWidth,
|
|
2010
|
+
const b = window.scrollY, E = window.scrollX, T = window.innerWidth, v = window.innerHeight;
|
|
2008
2011
|
let C = c + b, w = d + E, y = r;
|
|
2009
|
-
const
|
|
2012
|
+
const _ = {
|
|
2010
2013
|
top: c - g < 0,
|
|
2011
|
-
bottom: c + f + g >
|
|
2014
|
+
bottom: c + f + g > v,
|
|
2012
2015
|
left: d - p < 0,
|
|
2013
2016
|
right: d + u + p > T
|
|
2014
2017
|
};
|
|
2015
2018
|
switch (r) {
|
|
2016
2019
|
case "top":
|
|
2017
|
-
|
|
2020
|
+
_.top && !_.bottom && (y = "bottom");
|
|
2018
2021
|
break;
|
|
2019
2022
|
case "bottom":
|
|
2020
|
-
|
|
2023
|
+
_.bottom && !_.top && (y = "top");
|
|
2021
2024
|
break;
|
|
2022
2025
|
case "left":
|
|
2023
|
-
|
|
2026
|
+
_.left && !_.right && (y = "right");
|
|
2024
2027
|
break;
|
|
2025
2028
|
case "right":
|
|
2026
|
-
|
|
2029
|
+
_.right && !_.left && (y = "left");
|
|
2027
2030
|
break;
|
|
2028
2031
|
}
|
|
2029
2032
|
switch (y) {
|
|
@@ -2042,7 +2045,7 @@ function pt({
|
|
|
2042
2045
|
}
|
|
2043
2046
|
C = Math.max(
|
|
2044
2047
|
b,
|
|
2045
|
-
Math.min(C, b +
|
|
2048
|
+
Math.min(C, b + v - g)
|
|
2046
2049
|
), w = Math.max(
|
|
2047
2050
|
E,
|
|
2048
2051
|
Math.min(w, E + T - p)
|
|
@@ -2066,7 +2069,7 @@ function pt({
|
|
|
2066
2069
|
};
|
|
2067
2070
|
}, [i, e]), { anchorRef: t, targetRef: n, anchorWidth: s };
|
|
2068
2071
|
}
|
|
2069
|
-
const
|
|
2072
|
+
const _e = (r, e, t) => {
|
|
2070
2073
|
if (r == "" && (e == "" || e == null))
|
|
2071
2074
|
return "";
|
|
2072
2075
|
if (t)
|
|
@@ -2105,7 +2108,7 @@ const Ne = (r, e, t) => {
|
|
|
2105
2108
|
"smp-textfield-disabled": "_smp-textfield-disabled_ep1c3_114",
|
|
2106
2109
|
"smp-textfield-fullWidth": "_smp-textfield-fullWidth_ep1c3_123",
|
|
2107
2110
|
"smp-textfield-top-right-indicator": "_smp-textfield-top-right-indicator_ep1c3_127"
|
|
2108
|
-
},
|
|
2111
|
+
}, De = ({
|
|
2109
2112
|
disabled: r,
|
|
2110
2113
|
bindValue: e,
|
|
2111
2114
|
icon: t,
|
|
@@ -2124,45 +2127,45 @@ const Ne = (r, e, t) => {
|
|
|
2124
2127
|
label: b,
|
|
2125
2128
|
helperText: E = !1,
|
|
2126
2129
|
error: T,
|
|
2127
|
-
appearance:
|
|
2130
|
+
appearance: v = "base",
|
|
2128
2131
|
fullWidth: C = !1,
|
|
2129
2132
|
_dataComponent: w = "textfield",
|
|
2130
2133
|
min: y,
|
|
2131
|
-
max:
|
|
2134
|
+
max: _,
|
|
2132
2135
|
step: S,
|
|
2133
2136
|
inputMode: k = "text",
|
|
2134
2137
|
width: L,
|
|
2135
2138
|
autocomplete: I,
|
|
2136
|
-
size:
|
|
2137
|
-
maxLength:
|
|
2138
|
-
onBlur:
|
|
2139
|
+
size: R,
|
|
2140
|
+
maxLength: O,
|
|
2141
|
+
onBlur: P,
|
|
2139
2142
|
onChange: N,
|
|
2140
2143
|
onKeyDown: B,
|
|
2141
|
-
onShapeIconClick:
|
|
2144
|
+
onShapeIconClick: H,
|
|
2142
2145
|
onClick: q
|
|
2143
2146
|
}) => {
|
|
2144
|
-
const X =
|
|
2145
|
-
N?.(
|
|
2146
|
-
},
|
|
2147
|
+
const X = Ce(), F = `${X}-helper`, h = T ? "danger" : o, x = E || !!T, $ = (A) => {
|
|
2148
|
+
N?.(A.target.value);
|
|
2149
|
+
}, j = {
|
|
2147
2150
|
wrapper: `${me["smp-textfield-wrapper"]} ${C ? me["smp-textfield-fullWidth"] : ""}`,
|
|
2148
|
-
container: `${me["smp-textfield"]} ${r ? me["smp-textfield-disabled"] : ""} ${n ? me["smp-textfield-placeholder"] : ""} ${i ? me[`smp-textfield-${i}`] : ""} ${h ? me[`smp-textfield-${h}`] : ""} ${
|
|
2151
|
+
container: `${me["smp-textfield"]} ${r ? me["smp-textfield-disabled"] : ""} ${n ? me["smp-textfield-placeholder"] : ""} ${i ? me[`smp-textfield-${i}`] : ""} ${h ? me[`smp-textfield-${h}`] : ""} ${v ? me[`smp-textfield-${v}`] : ""} ${s ? "" : me["smp-textfield-readOnly"]} ${c ? me["smp-textfield-top-right-indicator"] : ""}`,
|
|
2149
2152
|
input: `${me["smp-textfield-input"]}`
|
|
2150
2153
|
};
|
|
2151
2154
|
if (l && (l !== "notSelectable" || s)) {
|
|
2152
|
-
const
|
|
2153
|
-
|
|
2155
|
+
const A = me[`smp-textfield-variant-${l}`];
|
|
2156
|
+
A && (j.container += ` ${A}`);
|
|
2154
2157
|
}
|
|
2155
2158
|
const D = L ? { "--smp-textField-width-base": L } : void 0;
|
|
2156
|
-
return /* @__PURE__ */ m.jsxs("div", { className:
|
|
2159
|
+
return /* @__PURE__ */ m.jsxs("div", { className: j.wrapper, "data-component": w, children: [
|
|
2157
2160
|
b && /* @__PURE__ */ m.jsx(Re, { label: b, disabled: r, htmlFor: X }),
|
|
2158
2161
|
/* @__PURE__ */ m.jsxs(
|
|
2159
2162
|
"div",
|
|
2160
2163
|
{
|
|
2161
|
-
className:
|
|
2164
|
+
className: j.container,
|
|
2162
2165
|
ref: u,
|
|
2163
2166
|
style: D,
|
|
2164
2167
|
children: [
|
|
2165
|
-
t && /* @__PURE__ */ m.jsx(
|
|
2168
|
+
t && /* @__PURE__ */ m.jsx(de, { icon: t, disabled: r }),
|
|
2166
2169
|
/* @__PURE__ */ m.jsx(
|
|
2167
2170
|
"input",
|
|
2168
2171
|
{
|
|
@@ -2171,30 +2174,30 @@ const Ne = (r, e, t) => {
|
|
|
2171
2174
|
value: e,
|
|
2172
2175
|
placeholder: n,
|
|
2173
2176
|
onChange: $,
|
|
2174
|
-
onBlur:
|
|
2175
|
-
className:
|
|
2177
|
+
onBlur: P,
|
|
2178
|
+
className: j.input,
|
|
2176
2179
|
disabled: r,
|
|
2177
2180
|
readOnly: !s,
|
|
2178
2181
|
onKeyDown: B,
|
|
2179
2182
|
"aria-label": p,
|
|
2180
2183
|
ref: f,
|
|
2181
|
-
"aria-describedby":
|
|
2184
|
+
"aria-describedby": x ? F : void 0,
|
|
2182
2185
|
min: y,
|
|
2183
|
-
max:
|
|
2186
|
+
max: _,
|
|
2184
2187
|
step: S,
|
|
2185
2188
|
inputMode: k,
|
|
2186
2189
|
autoComplete: I,
|
|
2187
|
-
size:
|
|
2188
|
-
maxLength:
|
|
2190
|
+
size: R,
|
|
2191
|
+
maxLength: O,
|
|
2189
2192
|
onClick: q
|
|
2190
2193
|
}
|
|
2191
2194
|
),
|
|
2192
2195
|
a && /* @__PURE__ */ m.jsx(
|
|
2193
|
-
|
|
2196
|
+
de,
|
|
2194
2197
|
{
|
|
2195
2198
|
icon: a,
|
|
2196
2199
|
disabled: r,
|
|
2197
|
-
onClick:
|
|
2200
|
+
onClick: H,
|
|
2198
2201
|
rotated: d,
|
|
2199
2202
|
isInteractable: s,
|
|
2200
2203
|
tabIndex: 0
|
|
@@ -2203,7 +2206,7 @@ const Ne = (r, e, t) => {
|
|
|
2203
2206
|
]
|
|
2204
2207
|
}
|
|
2205
2208
|
),
|
|
2206
|
-
|
|
2209
|
+
x && /* @__PURE__ */ m.jsx(
|
|
2207
2210
|
$r,
|
|
2208
2211
|
{
|
|
2209
2212
|
helperText: T,
|
|
@@ -2220,7 +2223,7 @@ function kr({
|
|
|
2220
2223
|
containerHeight: t,
|
|
2221
2224
|
overscan: n = 5
|
|
2222
2225
|
}) {
|
|
2223
|
-
const [s, a] =
|
|
2226
|
+
const [s, a] = G(0), i = le(null), o = r.length * e, l = Math.max(0, Math.floor(s / e) - n), c = Math.min(
|
|
2224
2227
|
r.length - 1,
|
|
2225
2228
|
Math.floor((s + t) / e) + n
|
|
2226
2229
|
), d = [];
|
|
@@ -2230,13 +2233,13 @@ function kr({
|
|
|
2230
2233
|
index: g,
|
|
2231
2234
|
offsetTop: g * e
|
|
2232
2235
|
});
|
|
2233
|
-
const u =
|
|
2236
|
+
const u = ue((g) => {
|
|
2234
2237
|
const p = g.target.scrollTop;
|
|
2235
2238
|
a(p);
|
|
2236
2239
|
}, []), f = (g) => {
|
|
2237
2240
|
if (!i.current) return;
|
|
2238
|
-
const p = g * e, b = p + e, E = i.current, T = E.scrollTop,
|
|
2239
|
-
p < T ? E.scrollTop = p : b >
|
|
2241
|
+
const p = g * e, b = p + e, E = i.current, T = E.scrollTop, v = T + t;
|
|
2242
|
+
p < T ? E.scrollTop = p : b > v && (E.scrollTop = b - t);
|
|
2240
2243
|
};
|
|
2241
2244
|
return {
|
|
2242
2245
|
virtualItems: d,
|
|
@@ -2278,7 +2281,7 @@ function Tn(r, e, t = "14px IBM Plex Sans, sans-serif", n = 32) {
|
|
|
2278
2281
|
a.font = t;
|
|
2279
2282
|
let i = 0;
|
|
2280
2283
|
for (const o of r) {
|
|
2281
|
-
const l =
|
|
2284
|
+
const l = _e(o.id, o.label, e), c = a.measureText(l);
|
|
2282
2285
|
i = Math.max(i, c.width);
|
|
2283
2286
|
}
|
|
2284
2287
|
return Math.ceil(i + n);
|
|
@@ -2298,13 +2301,13 @@ const Cn = 10, Lr = ({
|
|
|
2298
2301
|
onKeyDown: c,
|
|
2299
2302
|
isOpen: d
|
|
2300
2303
|
}) => {
|
|
2301
|
-
const [u, f] =
|
|
2304
|
+
const [u, f] = G(""), g = 40, [p, b] = G(
|
|
2302
2305
|
a !== null ? a : -1
|
|
2303
|
-
), [E, T] =
|
|
2306
|
+
), [E, T] = G(o || 200), v = le(null), C = s !== void 0 ? s : e.length > Cn, w = u ? e.filter(
|
|
2304
2307
|
(N) => N.label.toLowerCase().includes(u.toLowerCase())
|
|
2305
2308
|
) : e, y = (N) => {
|
|
2306
2309
|
f(N);
|
|
2307
|
-
}, { virtualItems:
|
|
2310
|
+
}, { virtualItems: _, containerProps: S, innerProps: k, scrollToIndex: L } = kr({
|
|
2308
2311
|
items: w,
|
|
2309
2312
|
itemHeight: g,
|
|
2310
2313
|
containerHeight: 200,
|
|
@@ -2315,8 +2318,8 @@ const Cn = 10, Lr = ({
|
|
|
2315
2318
|
}, [a]), re(() => {
|
|
2316
2319
|
p >= 0 && p < w.length && L(p);
|
|
2317
2320
|
}, [p, w]), re(() => {
|
|
2318
|
-
d &&
|
|
2319
|
-
}, [d,
|
|
2321
|
+
d && v?.current && v.current.focus();
|
|
2322
|
+
}, [d, v]), re(() => {
|
|
2320
2323
|
const N = Tn(e, t);
|
|
2321
2324
|
T(N);
|
|
2322
2325
|
}, [e, t]);
|
|
@@ -2327,11 +2330,11 @@ const Cn = 10, Lr = ({
|
|
|
2327
2330
|
N.key === "ArrowDown" ? B = p < w.length - 1 ? p + 1 : 0 : N.key === "ArrowUp" && (B = p > 0 ? p - 1 : w.length - 1), b(B);
|
|
2328
2331
|
} else N.key === "Enter" ? p >= 0 && p < w.length && l?.(w[p]) : N.key === "Escape" && (N.preventDefault(), N.stopPropagation());
|
|
2329
2332
|
c && c(N);
|
|
2330
|
-
},
|
|
2333
|
+
}, R = (N) => {
|
|
2331
2334
|
I(N);
|
|
2332
|
-
},
|
|
2335
|
+
}, O = (N) => {
|
|
2333
2336
|
I(N);
|
|
2334
|
-
},
|
|
2337
|
+
}, P = {
|
|
2335
2338
|
wrapper: `${et["smp-list"]}`,
|
|
2336
2339
|
container: `${et["smp-list-container"]}`,
|
|
2337
2340
|
virtualScroll: `${et["smp-list-virtualScroll"]}`,
|
|
@@ -2342,7 +2345,7 @@ const Cn = 10, Lr = ({
|
|
|
2342
2345
|
{
|
|
2343
2346
|
id: r,
|
|
2344
2347
|
ref: n,
|
|
2345
|
-
className:
|
|
2348
|
+
className: P.wrapper,
|
|
2346
2349
|
"data-component": "list",
|
|
2347
2350
|
style: {
|
|
2348
2351
|
width: E,
|
|
@@ -2350,27 +2353,27 @@ const Cn = 10, Lr = ({
|
|
|
2350
2353
|
},
|
|
2351
2354
|
children: [
|
|
2352
2355
|
C && /* @__PURE__ */ m.jsx(
|
|
2353
|
-
|
|
2356
|
+
De,
|
|
2354
2357
|
{
|
|
2355
2358
|
bindValue: u,
|
|
2356
2359
|
placeholder: "Search...",
|
|
2357
2360
|
fullWidth: !0,
|
|
2358
2361
|
onChange: y,
|
|
2359
|
-
onKeyDown:
|
|
2360
|
-
inputRef:
|
|
2362
|
+
onKeyDown: R,
|
|
2363
|
+
inputRef: v
|
|
2361
2364
|
}
|
|
2362
2365
|
),
|
|
2363
2366
|
/* @__PURE__ */ m.jsx(
|
|
2364
2367
|
"div",
|
|
2365
2368
|
{
|
|
2366
2369
|
...S,
|
|
2367
|
-
className:
|
|
2370
|
+
className: P.container,
|
|
2368
2371
|
tabIndex: 0,
|
|
2369
2372
|
role: "listbox",
|
|
2370
2373
|
"aria-label": "List",
|
|
2371
|
-
onKeyDown:
|
|
2374
|
+
onKeyDown: O,
|
|
2372
2375
|
"aria-activedescendant": p >= 0 && p < w.length ? w[p]?.id : void 0,
|
|
2373
|
-
children: /* @__PURE__ */ m.jsx("div", { ...k, className:
|
|
2376
|
+
children: /* @__PURE__ */ m.jsx("div", { ...k, className: P.virtualScroll, children: _.map(({ item: N, index: B, offsetTop: H }) => {
|
|
2374
2377
|
const q = i.includes(N.id);
|
|
2375
2378
|
return (
|
|
2376
2379
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
@@ -2381,20 +2384,20 @@ const Cn = 10, Lr = ({
|
|
|
2381
2384
|
id: N.id,
|
|
2382
2385
|
"aria-selected": p === B ? "true" : "false",
|
|
2383
2386
|
tabIndex: -1,
|
|
2384
|
-
className: `${
|
|
2387
|
+
className: `${P.listItem} ${p === B ? "selected-item" : ""}`,
|
|
2385
2388
|
"aria-label": N.id + "-" + N.label,
|
|
2386
2389
|
style: {
|
|
2387
2390
|
height: `${g}px`,
|
|
2388
2391
|
lineHeight: `calc(${g}px - 2*2px)`,
|
|
2389
2392
|
// lineHeight - 2*padding
|
|
2390
|
-
transform: `translateY(${
|
|
2393
|
+
transform: `translateY(${H}px)`
|
|
2391
2394
|
},
|
|
2392
2395
|
onClick: () => {
|
|
2393
2396
|
l?.(N), b(B);
|
|
2394
2397
|
},
|
|
2395
2398
|
children: [
|
|
2396
|
-
|
|
2397
|
-
q && /* @__PURE__ */ m.jsx(
|
|
2399
|
+
_e(N.id, N.label, t),
|
|
2400
|
+
q && /* @__PURE__ */ m.jsx(de, { icon: "check", width: 16 })
|
|
2398
2401
|
]
|
|
2399
2402
|
},
|
|
2400
2403
|
N.id
|
|
@@ -2406,22 +2409,22 @@ const Cn = 10, Lr = ({
|
|
|
2406
2409
|
]
|
|
2407
2410
|
}
|
|
2408
2411
|
);
|
|
2409
|
-
},
|
|
2412
|
+
}, Pt = ({
|
|
2410
2413
|
displayMode: r,
|
|
2411
2414
|
bindValue: e,
|
|
2412
2415
|
optionalDisplayValue: t,
|
|
2413
2416
|
...n
|
|
2414
2417
|
}) => {
|
|
2415
|
-
const [s, a] =
|
|
2416
|
-
|
|
2418
|
+
const [s, a] = G(
|
|
2419
|
+
_e(e, t, r)
|
|
2417
2420
|
);
|
|
2418
2421
|
return re(() => {
|
|
2419
2422
|
a(e);
|
|
2420
2423
|
}, [e]), re(() => {
|
|
2421
2424
|
a(
|
|
2422
|
-
|
|
2425
|
+
_e(e, t, r)
|
|
2423
2426
|
);
|
|
2424
|
-
}, [t, r]), /* @__PURE__ */ m.jsx(
|
|
2427
|
+
}, [t, r]), /* @__PURE__ */ m.jsx(De, { ...n, bindValue: s });
|
|
2425
2428
|
}, On = (r) => {
|
|
2426
2429
|
const e = le(null);
|
|
2427
2430
|
return re(() => () => {
|
|
@@ -2435,10 +2438,10 @@ const Cn = 10, Lr = ({
|
|
|
2435
2438
|
function ht({
|
|
2436
2439
|
children: r
|
|
2437
2440
|
}) {
|
|
2438
|
-
const [e, t] =
|
|
2441
|
+
const [e, t] = G(!1);
|
|
2439
2442
|
return re(() => {
|
|
2440
2443
|
t(!0);
|
|
2441
|
-
}, []), e ?
|
|
2444
|
+
}, []), e ? Wr(r, document.body) : null;
|
|
2442
2445
|
}
|
|
2443
2446
|
const mt = (r, e, t) => {
|
|
2444
2447
|
re(() => {
|
|
@@ -2455,7 +2458,7 @@ const mt = (r, e, t) => {
|
|
|
2455
2458
|
document.removeEventListener("mousedown", n);
|
|
2456
2459
|
};
|
|
2457
2460
|
}, [r, t, e]);
|
|
2458
|
-
}, z = (r) => typeof r == "string",
|
|
2461
|
+
}, z = (r) => typeof r == "string", Ue = () => {
|
|
2459
2462
|
let r, e;
|
|
2460
2463
|
const t = new Promise((n, s) => {
|
|
2461
2464
|
r = n, e = s;
|
|
@@ -2465,7 +2468,7 @@ const mt = (r, e, t) => {
|
|
|
2465
2468
|
r.forEach((n) => {
|
|
2466
2469
|
e[n] && (t[n] = e[n]);
|
|
2467
2470
|
});
|
|
2468
|
-
},
|
|
2471
|
+
}, jn = /###/g, cr = (r) => r && r.indexOf("###") > -1 ? r.replace(jn, ".") : r, ur = (r) => !r || z(r), Ye = (r, e, t) => {
|
|
2469
2472
|
const n = z(e) ? e.split(".") : e;
|
|
2470
2473
|
let s = 0;
|
|
2471
2474
|
for (; s < n.length - 1; ) {
|
|
@@ -2481,36 +2484,36 @@ const mt = (r, e, t) => {
|
|
|
2481
2484
|
const {
|
|
2482
2485
|
obj: n,
|
|
2483
2486
|
k: s
|
|
2484
|
-
} =
|
|
2487
|
+
} = Ye(r, e, Object);
|
|
2485
2488
|
if (n !== void 0 || e.length === 1) {
|
|
2486
2489
|
n[s] = t;
|
|
2487
2490
|
return;
|
|
2488
2491
|
}
|
|
2489
|
-
let a = e[e.length - 1], i = e.slice(0, e.length - 1), o =
|
|
2492
|
+
let a = e[e.length - 1], i = e.slice(0, e.length - 1), o = Ye(r, i, Object);
|
|
2490
2493
|
for (; o.obj === void 0 && i.length; )
|
|
2491
|
-
a = `${i[i.length - 1]}.${a}`, i = i.slice(0, i.length - 1), o =
|
|
2494
|
+
a = `${i[i.length - 1]}.${a}`, i = i.slice(0, i.length - 1), o = Ye(r, i, Object), o?.obj && typeof o.obj[`${o.k}.${a}`] < "u" && (o.obj = void 0);
|
|
2492
2495
|
o.obj[`${o.k}.${a}`] = t;
|
|
2493
|
-
},
|
|
2496
|
+
}, Rn = (r, e, t, n) => {
|
|
2494
2497
|
const {
|
|
2495
2498
|
obj: s,
|
|
2496
2499
|
k: a
|
|
2497
|
-
} =
|
|
2500
|
+
} = Ye(r, e, Object);
|
|
2498
2501
|
s[a] = s[a] || [], s[a].push(t);
|
|
2499
2502
|
}, ct = (r, e) => {
|
|
2500
2503
|
const {
|
|
2501
2504
|
obj: t,
|
|
2502
2505
|
k: n
|
|
2503
|
-
} =
|
|
2506
|
+
} = Ye(r, e);
|
|
2504
2507
|
if (t && Object.prototype.hasOwnProperty.call(t, n))
|
|
2505
2508
|
return t[n];
|
|
2506
2509
|
}, Dn = (r, e, t) => {
|
|
2507
2510
|
const n = ct(r, t);
|
|
2508
2511
|
return n !== void 0 ? n : ct(e, t);
|
|
2509
|
-
},
|
|
2512
|
+
}, Pr = (r, e, t) => {
|
|
2510
2513
|
for (const n in e)
|
|
2511
|
-
n !== "__proto__" && n !== "constructor" && (n in r ? z(r[n]) || r[n] instanceof String || z(e[n]) || e[n] instanceof String ? t && (r[n] = e[n]) :
|
|
2514
|
+
n !== "__proto__" && n !== "constructor" && (n in r ? z(r[n]) || r[n] instanceof String || z(e[n]) || e[n] instanceof String ? t && (r[n] = e[n]) : Pr(r[n], e[n], t) : r[n] = e[n]);
|
|
2512
2515
|
return r;
|
|
2513
|
-
},
|
|
2516
|
+
}, Pe = (r) => r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
2514
2517
|
var $n = {
|
|
2515
2518
|
"&": "&",
|
|
2516
2519
|
"<": "<",
|
|
@@ -2532,18 +2535,18 @@ class Ln {
|
|
|
2532
2535
|
return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, n), this.regExpQueue.push(e), n;
|
|
2533
2536
|
}
|
|
2534
2537
|
}
|
|
2535
|
-
const
|
|
2538
|
+
const Pn = [" ", ",", "?", "!", ";"], An = new Ln(20), In = (r, e, t) => {
|
|
2536
2539
|
e = e || "", t = t || "";
|
|
2537
|
-
const n =
|
|
2540
|
+
const n = Pn.filter((i) => e.indexOf(i) < 0 && t.indexOf(i) < 0);
|
|
2538
2541
|
if (n.length === 0) return !0;
|
|
2539
|
-
const s =
|
|
2542
|
+
const s = An.getRegExp(`(${n.map((i) => i === "?" ? "\\?" : i).join("|")})`);
|
|
2540
2543
|
let a = !s.test(r);
|
|
2541
2544
|
if (!a) {
|
|
2542
2545
|
const i = r.indexOf(t);
|
|
2543
2546
|
i > 0 && !s.test(r.substring(0, i)) && (a = !0);
|
|
2544
2547
|
}
|
|
2545
2548
|
return a;
|
|
2546
|
-
},
|
|
2549
|
+
}, Rt = (r, e, t = ".") => {
|
|
2547
2550
|
if (!r) return;
|
|
2548
2551
|
if (r[e])
|
|
2549
2552
|
return Object.prototype.hasOwnProperty.call(r, e) ? r[e] : void 0;
|
|
@@ -2660,7 +2663,7 @@ class fr extends gt {
|
|
|
2660
2663
|
let o;
|
|
2661
2664
|
e.indexOf(".") > -1 ? o = e.split(".") : (o = [e, t], n && (Array.isArray(n) ? o.push(...n) : z(n) && a ? o.push(...n.split(a)) : o.push(n)));
|
|
2662
2665
|
const l = ct(this.data, o);
|
|
2663
|
-
return !l && !t && !n && e.indexOf(".") > -1 && (e = o[0], t = o[1], n = o.slice(2).join(".")), l || !i || !z(n) ? l :
|
|
2666
|
+
return !l && !t && !n && e.indexOf(".") > -1 && (e = o[0], t = o[1], n = o.slice(2).join(".")), l || !i || !z(n) ? l : Rt(this.data?.[e]?.[t], n, a);
|
|
2664
2667
|
}
|
|
2665
2668
|
addResource(e, t, n, s, a = {
|
|
2666
2669
|
silent: !1
|
|
@@ -2685,7 +2688,7 @@ class fr extends gt {
|
|
|
2685
2688
|
let o = [e, t];
|
|
2686
2689
|
e.indexOf(".") > -1 && (o = e.split("."), s = n, n = t, t = o[1]), this.addNamespaces(t);
|
|
2687
2690
|
let l = ct(this.data, o) || {};
|
|
2688
|
-
i.skipCopy || (n = JSON.parse(JSON.stringify(n))), s ?
|
|
2691
|
+
i.skipCopy || (n = JSON.parse(JSON.stringify(n))), s ? Pr(l, n, a) : l = {
|
|
2689
2692
|
...l,
|
|
2690
2693
|
...n
|
|
2691
2694
|
}, dr(this.data, o, l), i.silent || this.emit("added", e, t, n);
|
|
@@ -2710,7 +2713,7 @@ class fr extends gt {
|
|
|
2710
2713
|
return this.data;
|
|
2711
2714
|
}
|
|
2712
2715
|
}
|
|
2713
|
-
var
|
|
2716
|
+
var Ar = {
|
|
2714
2717
|
processors: {},
|
|
2715
2718
|
addPostProcessor(r) {
|
|
2716
2719
|
this.processors[r.name] = r;
|
|
@@ -2791,71 +2794,71 @@ class dt extends gt {
|
|
|
2791
2794
|
} : o;
|
|
2792
2795
|
const g = this.resolve(e, s);
|
|
2793
2796
|
let p = g?.res;
|
|
2794
|
-
const b = g?.usedKey || o, E = g?.exactUsedKey || o, T = ["[object Number]", "[object Function]", "[object RegExp]"],
|
|
2797
|
+
const b = g?.usedKey || o, E = g?.exactUsedKey || o, T = ["[object Number]", "[object Function]", "[object RegExp]"], v = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, C = !this.i18nFormat || this.i18nFormat.handleAsObject, w = s.count !== void 0 && !z(s.count), y = dt.hasDefaultValue(s), _ = w ? this.pluralResolver.getSuffix(u, s.count, s) : "", S = s.ordinal && w ? this.pluralResolver.getSuffix(u, s.count, {
|
|
2795
2798
|
ordinal: !1
|
|
2796
|
-
}) : "", k = w && !s.ordinal && s.count === 0, L = k && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${
|
|
2799
|
+
}) : "", k = w && !s.ordinal && s.count === 0, L = k && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${_}`] || s[`defaultValue${S}`] || s.defaultValue;
|
|
2797
2800
|
let I = p;
|
|
2798
2801
|
C && !p && y && (I = L);
|
|
2799
|
-
const
|
|
2800
|
-
if (C && I &&
|
|
2802
|
+
const R = hr(I), O = Object.prototype.toString.apply(I);
|
|
2803
|
+
if (C && I && R && T.indexOf(O) < 0 && !(z(v) && Array.isArray(I))) {
|
|
2801
2804
|
if (!s.returnObjects && !this.options.returnObjects) {
|
|
2802
2805
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
2803
|
-
const
|
|
2806
|
+
const P = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(b, I, {
|
|
2804
2807
|
...s,
|
|
2805
2808
|
ns: l
|
|
2806
2809
|
}) : `key '${o} (${this.language})' returned an object instead of string.`;
|
|
2807
|
-
return a ? (g.res =
|
|
2810
|
+
return a ? (g.res = P, g.usedParams = this.getUsedParamsDetails(s), g) : P;
|
|
2808
2811
|
}
|
|
2809
2812
|
if (i) {
|
|
2810
|
-
const
|
|
2811
|
-
for (const
|
|
2812
|
-
if (Object.prototype.hasOwnProperty.call(I,
|
|
2813
|
-
const q = `${B}${i}${
|
|
2814
|
-
y && !p ? N[
|
|
2813
|
+
const P = Array.isArray(I), N = P ? [] : {}, B = P ? E : b;
|
|
2814
|
+
for (const H in I)
|
|
2815
|
+
if (Object.prototype.hasOwnProperty.call(I, H)) {
|
|
2816
|
+
const q = `${B}${i}${H}`;
|
|
2817
|
+
y && !p ? N[H] = this.translate(q, {
|
|
2815
2818
|
...s,
|
|
2816
|
-
defaultValue: hr(L) ? L[
|
|
2819
|
+
defaultValue: hr(L) ? L[H] : void 0,
|
|
2817
2820
|
joinArrays: !1,
|
|
2818
2821
|
ns: l
|
|
2819
|
-
}) : N[
|
|
2822
|
+
}) : N[H] = this.translate(q, {
|
|
2820
2823
|
...s,
|
|
2821
2824
|
joinArrays: !1,
|
|
2822
2825
|
ns: l
|
|
2823
|
-
}), N[
|
|
2826
|
+
}), N[H] === q && (N[H] = I[H]);
|
|
2824
2827
|
}
|
|
2825
2828
|
p = N;
|
|
2826
2829
|
}
|
|
2827
|
-
} else if (C && z(
|
|
2828
|
-
p = p.join(
|
|
2830
|
+
} else if (C && z(v) && Array.isArray(p))
|
|
2831
|
+
p = p.join(v), p && (p = this.extendTranslation(p, e, s, n));
|
|
2829
2832
|
else {
|
|
2830
|
-
let
|
|
2831
|
-
!this.isValidLookup(p) && y && (
|
|
2832
|
-
const
|
|
2833
|
-
if (N ||
|
|
2833
|
+
let P = !1, N = !1;
|
|
2834
|
+
!this.isValidLookup(p) && y && (P = !0, p = L), this.isValidLookup(p) || (N = !0, p = o);
|
|
2835
|
+
const H = (s.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && N ? void 0 : p, q = y && L !== p && this.options.updateMissing;
|
|
2836
|
+
if (N || P || q) {
|
|
2834
2837
|
if (this.logger.log(q ? "updateKey" : "missingKey", u, c, o, q ? L : p), i) {
|
|
2835
|
-
const
|
|
2838
|
+
const x = this.resolve(o, {
|
|
2836
2839
|
...s,
|
|
2837
2840
|
keySeparator: !1
|
|
2838
2841
|
});
|
|
2839
|
-
|
|
2842
|
+
x && x.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
|
|
2840
2843
|
}
|
|
2841
2844
|
let X = [];
|
|
2842
2845
|
const F = this.languageUtils.getFallbackCodes(this.options.fallbackLng, s.lng || this.language);
|
|
2843
2846
|
if (this.options.saveMissingTo === "fallback" && F && F[0])
|
|
2844
|
-
for (let
|
|
2845
|
-
X.push(F[
|
|
2847
|
+
for (let x = 0; x < F.length; x++)
|
|
2848
|
+
X.push(F[x]);
|
|
2846
2849
|
else this.options.saveMissingTo === "all" ? X = this.languageUtils.toResolveHierarchy(s.lng || this.language) : X.push(s.lng || this.language);
|
|
2847
|
-
const h = (
|
|
2848
|
-
const D = y &&
|
|
2849
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(
|
|
2850
|
+
const h = (x, $, j) => {
|
|
2851
|
+
const D = y && j !== p ? j : H;
|
|
2852
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(x, c, $, D, q, s) : this.backendConnector?.saveMissing && this.backendConnector.saveMissing(x, c, $, D, q, s), this.emit("missingKey", x, c, $, p);
|
|
2850
2853
|
};
|
|
2851
|
-
this.options.saveMissing && (this.options.saveMissingPlurals && w ? X.forEach((
|
|
2852
|
-
const $ = this.pluralResolver.getSuffixes(
|
|
2853
|
-
k && s[`defaultValue${this.options.pluralSeparator}zero`] && $.indexOf(`${this.options.pluralSeparator}zero`) < 0 && $.push(`${this.options.pluralSeparator}zero`), $.forEach((
|
|
2854
|
-
h([
|
|
2854
|
+
this.options.saveMissing && (this.options.saveMissingPlurals && w ? X.forEach((x) => {
|
|
2855
|
+
const $ = this.pluralResolver.getSuffixes(x, s);
|
|
2856
|
+
k && s[`defaultValue${this.options.pluralSeparator}zero`] && $.indexOf(`${this.options.pluralSeparator}zero`) < 0 && $.push(`${this.options.pluralSeparator}zero`), $.forEach((j) => {
|
|
2857
|
+
h([x], o + j, s[`defaultValue${j}`] || L);
|
|
2855
2858
|
});
|
|
2856
2859
|
}) : h(X, o, L));
|
|
2857
2860
|
}
|
|
2858
|
-
p = this.extendTranslation(p, e, s, g, n), N && p === o && this.options.appendNamespaceToMissingKey && (p = `${c}${d}${o}`), (N ||
|
|
2861
|
+
p = this.extendTranslation(p, e, s, g, n), N && p === o && this.options.appendNamespaceToMissingKey && (p = `${c}${d}${o}`), (N || P) && this.options.parseMissingKeyHandler && (p = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${c}${d}${o}` : o, P ? p : void 0, s));
|
|
2859
2862
|
}
|
|
2860
2863
|
return a ? (g.res = p, g.usedParams = this.getUsedParamsDetails(s), g) : p;
|
|
2861
2864
|
}
|
|
@@ -2892,7 +2895,7 @@ class dt extends gt {
|
|
|
2892
2895
|
!n.lng && s && s.res && (n.lng = this.language || s.usedLng), n.nest !== !1 && (e = this.interpolator.nest(e, (...u) => a?.[0] === u[0] && !n.context ? (this.logger.warn(`It seems you are nesting recursively key: ${u[0]} in key: ${t[0]}`), null) : this.translate(...u, t), n)), n.interpolation && this.interpolator.reset();
|
|
2893
2896
|
}
|
|
2894
2897
|
const i = n.postProcess || this.options.postProcess, o = z(i) ? [i] : i;
|
|
2895
|
-
return e != null && o?.length && n.applyPostProcessor !== !1 && (e =
|
|
2898
|
+
return e != null && o?.length && n.applyPostProcessor !== !1 && (e = Ar.handle(o, e, t, this.options && this.options.postProcessPassResolved ? {
|
|
2896
2899
|
i18nResolved: {
|
|
2897
2900
|
...s,
|
|
2898
2901
|
usedParams: this.getUsedParamsDetails(n)
|
|
@@ -2913,20 +2916,20 @@ class dt extends gt {
|
|
|
2913
2916
|
this.isValidLookup(n) || (o = E, !pr[`${b[0]}-${E}`] && this.utils?.hasLoadedNamespace && !this.utils?.hasLoadedNamespace(o) && (pr[`${b[0]}-${E}`] = !0, this.logger.warn(`key "${s}" for languages "${b.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!!!")), b.forEach((T) => {
|
|
2914
2917
|
if (this.isValidLookup(n)) return;
|
|
2915
2918
|
i = T;
|
|
2916
|
-
const
|
|
2919
|
+
const v = [d];
|
|
2917
2920
|
if (this.i18nFormat?.addLookupKeys)
|
|
2918
|
-
this.i18nFormat.addLookupKeys(
|
|
2921
|
+
this.i18nFormat.addLookupKeys(v, d, T, E, t);
|
|
2919
2922
|
else {
|
|
2920
2923
|
let w;
|
|
2921
2924
|
f && (w = this.pluralResolver.getSuffix(T, t.count, t));
|
|
2922
|
-
const y = `${this.options.pluralSeparator}zero`,
|
|
2923
|
-
if (f && (
|
|
2925
|
+
const y = `${this.options.pluralSeparator}zero`, _ = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
2926
|
+
if (f && (v.push(d + w), t.ordinal && w.indexOf(_) === 0 && v.push(d + w.replace(_, this.options.pluralSeparator)), g && v.push(d + y)), p) {
|
|
2924
2927
|
const S = `${d}${this.options.contextSeparator}${t.context}`;
|
|
2925
|
-
|
|
2928
|
+
v.push(S), f && (v.push(S + w), t.ordinal && w.indexOf(_) === 0 && v.push(S + w.replace(_, this.options.pluralSeparator)), g && v.push(S + y));
|
|
2926
2929
|
}
|
|
2927
2930
|
}
|
|
2928
2931
|
let C;
|
|
2929
|
-
for (; C =
|
|
2932
|
+
for (; C = v.pop(); )
|
|
2930
2933
|
this.isValidLookup(n) || (a = C, n = this.getResource(T, E, C, t));
|
|
2931
2934
|
}));
|
|
2932
2935
|
});
|
|
@@ -3093,7 +3096,7 @@ class Mn {
|
|
|
3093
3096
|
}
|
|
3094
3097
|
const br = (r, e, t, n = ".", s = !0) => {
|
|
3095
3098
|
let a = Dn(r, e, t);
|
|
3096
|
-
return !a && s && z(t) && (a =
|
|
3099
|
+
return !a && s && z(t) && (a = Rt(r, t, n), a === void 0 && (a = Rt(e, t, n))), a;
|
|
3097
3100
|
}, Ct = (r) => r.replace(/\$/g, "$$$$");
|
|
3098
3101
|
class Fn {
|
|
3099
3102
|
constructor(e = {}) {
|
|
@@ -3120,9 +3123,9 @@ class Fn {
|
|
|
3120
3123
|
nestingSuffixEscaped: b,
|
|
3121
3124
|
nestingOptionsSeparator: E,
|
|
3122
3125
|
maxReplaces: T,
|
|
3123
|
-
alwaysFormat:
|
|
3126
|
+
alwaysFormat: v
|
|
3124
3127
|
} = e.interpolation;
|
|
3125
|
-
this.escape = t !== void 0 ? t : kn, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = a ?
|
|
3128
|
+
this.escape = t !== void 0 ? t : kn, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = a ? Pe(a) : i || "{{", this.suffix = o ? Pe(o) : l || "}}", this.formatSeparator = c || ",", this.unescapePrefix = d ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : d || "", this.nestingPrefix = f ? Pe(f) : g || Pe("$t("), this.nestingSuffix = p ? Pe(p) : b || Pe(")"), this.nestingOptionsSeparator = E || ",", this.maxReplaces = T || 1e3, this.alwaysFormat = v !== void 0 ? v : !1, this.resetRegExp();
|
|
3126
3129
|
}
|
|
3127
3130
|
reset() {
|
|
3128
3131
|
this.options && this.init(this.options);
|
|
@@ -3243,8 +3246,8 @@ const Vn = (r) => {
|
|
|
3243
3246
|
let o = e[i];
|
|
3244
3247
|
return o || (o = r(Be(n), s), e[i] = o), o(t);
|
|
3245
3248
|
};
|
|
3246
|
-
},
|
|
3247
|
-
class
|
|
3249
|
+
}, Un = (r) => (e, t, n) => r(Be(t), n)(e);
|
|
3250
|
+
class Wn {
|
|
3248
3251
|
constructor(e = {}) {
|
|
3249
3252
|
this.logger = ve.create("formatter"), this.options = e, this.init(e);
|
|
3250
3253
|
}
|
|
@@ -3252,7 +3255,7 @@ class Yn {
|
|
|
3252
3255
|
interpolation: {}
|
|
3253
3256
|
}) {
|
|
3254
3257
|
this.formatSeparator = t.interpolation.formatSeparator || ",";
|
|
3255
|
-
const n = t.cacheInBuiltFormats ? vr :
|
|
3258
|
+
const n = t.cacheInBuiltFormats ? vr : Un;
|
|
3256
3259
|
this.formats = {
|
|
3257
3260
|
number: n((s, a) => {
|
|
3258
3261
|
const i = new Intl.NumberFormat(s, {
|
|
@@ -3323,7 +3326,7 @@ class Yn {
|
|
|
3323
3326
|
}, e);
|
|
3324
3327
|
}
|
|
3325
3328
|
}
|
|
3326
|
-
const
|
|
3329
|
+
const Yn = (r, e) => {
|
|
3327
3330
|
r.pending[e] !== void 0 && (delete r.pending[e], r.pendingCount--);
|
|
3328
3331
|
};
|
|
3329
3332
|
class Bn extends gt {
|
|
@@ -3358,7 +3361,7 @@ class Bn extends gt {
|
|
|
3358
3361
|
}), this.state[e] = t ? -1 : 2, t && n && (this.state[e] = 0);
|
|
3359
3362
|
const o = {};
|
|
3360
3363
|
this.queue.forEach((l) => {
|
|
3361
|
-
|
|
3364
|
+
Rn(l.loaded, [a], i), Yn(l, e), t && l.errors.push(t), l.pendingCount === 0 && !l.done && (Object.keys(l.loaded).forEach((c) => {
|
|
3362
3365
|
o[c] || (o[c] = {});
|
|
3363
3366
|
const d = l.loaded[c];
|
|
3364
3367
|
d.length && d.forEach((u) => {
|
|
@@ -3514,16 +3517,16 @@ const xr = () => ({
|
|
|
3514
3517
|
},
|
|
3515
3518
|
cacheInBuiltFormats: !0
|
|
3516
3519
|
}), wr = (r) => (z(r.ns) && (r.ns = [r.ns]), z(r.fallbackLng) && (r.fallbackLng = [r.fallbackLng]), z(r.fallbackNS) && (r.fallbackNS = [r.fallbackNS]), r.supportedLngs?.indexOf?.("cimode") < 0 && (r.supportedLngs = r.supportedLngs.concat(["cimode"])), typeof r.initImmediate == "boolean" && (r.initAsync = r.initImmediate), r), tt = () => {
|
|
3517
|
-
},
|
|
3520
|
+
}, Gn = (r) => {
|
|
3518
3521
|
Object.getOwnPropertyNames(Object.getPrototypeOf(r)).forEach((t) => {
|
|
3519
3522
|
typeof r[t] == "function" && (r[t] = r[t].bind(r));
|
|
3520
3523
|
});
|
|
3521
3524
|
};
|
|
3522
|
-
class
|
|
3525
|
+
class Ge extends gt {
|
|
3523
3526
|
constructor(e = {}, t) {
|
|
3524
3527
|
if (super(), this.options = wr(e), this.services = {}, this.logger = ve, this.modules = {
|
|
3525
3528
|
external: []
|
|
3526
|
-
},
|
|
3529
|
+
}, Gn(this), t && !this.isInitialized && !e.isClone) {
|
|
3527
3530
|
if (!this.options.initAsync)
|
|
3528
3531
|
return this.init(e, t), this;
|
|
3529
3532
|
setTimeout(() => {
|
|
@@ -3546,7 +3549,7 @@ class He extends gt {
|
|
|
3546
3549
|
if (!this.options.isClone) {
|
|
3547
3550
|
this.modules.logger ? ve.init(s(this.modules.logger), this.options) : ve.init(null, this.options);
|
|
3548
3551
|
let c;
|
|
3549
|
-
this.modules.formatter ? c = this.modules.formatter : c =
|
|
3552
|
+
this.modules.formatter ? c = this.modules.formatter : c = Wn;
|
|
3550
3553
|
const d = new mr(this.options);
|
|
3551
3554
|
this.store = new fr(this.options.resources, this.options);
|
|
3552
3555
|
const u = this.services;
|
|
@@ -3572,7 +3575,7 @@ class He extends gt {
|
|
|
3572
3575
|
}), ["addResource", "addResources", "addResourceBundle", "removeResourceBundle"].forEach((c) => {
|
|
3573
3576
|
this[c] = (...d) => (this.store[c](...d), this);
|
|
3574
3577
|
});
|
|
3575
|
-
const o =
|
|
3578
|
+
const o = Ue(), l = () => {
|
|
3576
3579
|
const c = (d, u) => {
|
|
3577
3580
|
this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), o.resolve(u), t(d, u);
|
|
3578
3581
|
};
|
|
@@ -3599,7 +3602,7 @@ class He extends gt {
|
|
|
3599
3602
|
n(null);
|
|
3600
3603
|
}
|
|
3601
3604
|
reloadResources(e, t, n) {
|
|
3602
|
-
const s =
|
|
3605
|
+
const s = Ue();
|
|
3603
3606
|
return typeof e == "function" && (n = e, e = void 0), typeof t == "function" && (n = t, t = void 0), e || (e = this.languages), t || (t = this.options.ns), n || (n = tt), this.services.backendConnector.reload(e, t, (a) => {
|
|
3604
3607
|
s.resolve(), n(a);
|
|
3605
3608
|
}), s;
|
|
@@ -3607,7 +3610,7 @@ class He extends gt {
|
|
|
3607
3610
|
use(e) {
|
|
3608
3611
|
if (!e) throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
|
|
3609
3612
|
if (!e.type) throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
|
|
3610
|
-
return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" &&
|
|
3613
|
+
return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" && Ar.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
|
|
3611
3614
|
}
|
|
3612
3615
|
setResolvedLanguage(e) {
|
|
3613
3616
|
if (!(!e || !this.languages) && !(["cimode", "dev"].indexOf(e) > -1)) {
|
|
@@ -3623,7 +3626,7 @@ class He extends gt {
|
|
|
3623
3626
|
}
|
|
3624
3627
|
changeLanguage(e, t) {
|
|
3625
3628
|
this.isLanguageChangingTo = e;
|
|
3626
|
-
const n =
|
|
3629
|
+
const n = Ue();
|
|
3627
3630
|
this.emit("languageChanging", e);
|
|
3628
3631
|
const s = (o) => {
|
|
3629
3632
|
this.language = o, this.languages = this.services.languageUtils.toResolveHierarchy(o), this.resolvedLanguage = void 0, this.setResolvedLanguage(o);
|
|
@@ -3677,7 +3680,7 @@ class He extends gt {
|
|
|
3677
3680
|
return !!(this.hasResourceBundle(n, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || i(n, e) && (!s || i(a, e)));
|
|
3678
3681
|
}
|
|
3679
3682
|
loadNamespaces(e, t) {
|
|
3680
|
-
const n =
|
|
3683
|
+
const n = Ue();
|
|
3681
3684
|
return this.options.ns ? (z(e) && (e = [e]), e.forEach((s) => {
|
|
3682
3685
|
this.options.ns.indexOf(s) < 0 && this.options.ns.push(s);
|
|
3683
3686
|
}), this.loadResources((s) => {
|
|
@@ -3685,7 +3688,7 @@ class He extends gt {
|
|
|
3685
3688
|
}), n) : (t && t(), Promise.resolve());
|
|
3686
3689
|
}
|
|
3687
3690
|
loadLanguages(e, t) {
|
|
3688
|
-
const n =
|
|
3691
|
+
const n = Ue();
|
|
3689
3692
|
z(e) && (e = [e]);
|
|
3690
3693
|
const s = this.options.preload || [], a = e.filter((i) => s.indexOf(i) < 0 && this.services.languageUtils.isSupportedCode(i));
|
|
3691
3694
|
return a.length ? (this.options.preload = s.concat(a), this.loadResources((i) => {
|
|
@@ -3705,7 +3708,7 @@ class He extends gt {
|
|
|
3705
3708
|
return e.toLowerCase().indexOf("-latn") > 1 ? "ltr" : t.indexOf(n.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
|
|
3706
3709
|
}
|
|
3707
3710
|
static createInstance(e = {}, t) {
|
|
3708
|
-
return new
|
|
3711
|
+
return new Ge(e, t);
|
|
3709
3712
|
}
|
|
3710
3713
|
cloneInstance(e = {}, t = tt) {
|
|
3711
3714
|
const n = e.forkResourceStore;
|
|
@@ -3714,7 +3717,7 @@ class He extends gt {
|
|
|
3714
3717
|
...this.options,
|
|
3715
3718
|
...e,
|
|
3716
3719
|
isClone: !0
|
|
3717
|
-
}, a = new
|
|
3720
|
+
}, a = new Ge(s);
|
|
3718
3721
|
if ((e.debug !== void 0 || e.prefix !== void 0) && (a.logger = a.logger.clone(e)), ["store", "services", "language"].forEach((o) => {
|
|
3719
3722
|
a[o] = this[o];
|
|
3720
3723
|
}), a.services = {
|
|
@@ -3745,8 +3748,8 @@ class He extends gt {
|
|
|
3745
3748
|
};
|
|
3746
3749
|
}
|
|
3747
3750
|
}
|
|
3748
|
-
const oe =
|
|
3749
|
-
oe.createInstance =
|
|
3751
|
+
const oe = Ge.createInstance();
|
|
3752
|
+
oe.createInstance = Ge.createInstance;
|
|
3750
3753
|
oe.createInstance;
|
|
3751
3754
|
oe.dir;
|
|
3752
3755
|
oe.init;
|
|
@@ -3761,9 +3764,9 @@ oe.setDefaultNamespace;
|
|
|
3761
3764
|
oe.hasLoadedNamespace;
|
|
3762
3765
|
oe.loadNamespaces;
|
|
3763
3766
|
oe.loadLanguages;
|
|
3764
|
-
const
|
|
3767
|
+
const Hn = { Friday: "Venerdì", FridayShort: "Ven", Monday: "Lunedì", MondayShort: "Lun", Saturday: "Sabato", SaturdayShort: "Sab", Sunday: "Domenica", SundayShort: "Dom", Tuesday: "Martedì", TuesdayShort: "Mar", Thursday: "Giovedì", ThursdayShort: "Gio", Wednesday: "Mercoledì", WednesdayShort: "Mer" }, Kn = { April: "Aprile", August: "Agosto", December: "Dicembre", February: "Febbraio", January: "Gennaio", June: "Giugno", July: "Luglio", March: "Marzo", May: "Maggio", October: "Ottobre", November: "Novembre", September: "Settembre" }, zn = { CalendarFor: "Calendario per", Close: "Chiudi", SpotlightDefaultPlaceholder: "Esegui Comando", CheckObjectWrongValidation: "Oggetto non valido", ConfirmButton: "Conferma", AutocompleteDefaultPlaceholder: "Inserisci codice o descrizione" }, qn = {
|
|
3765
3768
|
Date: { NextDay: "Giorno Successivo", NextMonth: "Mese Successivo", NextWeek: "Settimana Successiva", NextYear: "Anno Successivo", PreviousDay: "Giorno Precedente", PreviousMonth: "Mese Precedente", PreviousWeek: "Settimana Precedente", PreviousYear: "Anno Precedente", Today: "Oggi", Tomorrow: "Domani", Yesterday: "Ieri" },
|
|
3766
|
-
Day:
|
|
3769
|
+
Day: Hn,
|
|
3767
3770
|
Month: Kn,
|
|
3768
3771
|
Generic: zn
|
|
3769
3772
|
}, Jn = { Friday: "Friday", FridayShort: "Fri", Monday: "Monday", MondayShort: "Mon", Saturday: "Saturday", SaturdayShort: "Sat", Sunday: "Sunday", SundayShort: "Sun", Tuesday: "Tuesday", TuesdayShort: "Tue", Thursday: "Thursday", ThursdayShort: "Thu", Wednesday: "Wednesday", WednesdayShort: "Wed" }, Xn = { April: "April", August: "August", December: "December", February: "February", January: "January", July: "July", June: "June", March: "March", May: "May", November: "November", October: "October", September: "September" }, Zn = { CalendarFor: "Calendar for", Close: "Close", SpotlightDefaultPlaceholder: "Execute Command", CheckObjectWrongValidation: "Object not valid", ConfirmButton: "Confirm", AutocompleteDefaultPlaceholder: "Type code or description" }, Qn = {
|
|
@@ -3872,17 +3875,17 @@ oe.init({
|
|
|
3872
3875
|
}
|
|
3873
3876
|
});
|
|
3874
3877
|
const ls = (r, e, t, n) => oe.format(r, e, t || oe.language, n), cs = (r, e) => oe.t(r, e);
|
|
3875
|
-
function
|
|
3876
|
-
const r =
|
|
3878
|
+
function $e() {
|
|
3879
|
+
const r = ue(
|
|
3877
3880
|
(n, s, a, i) => ls(n, s, a || void 0, i),
|
|
3878
3881
|
[]
|
|
3879
|
-
), e =
|
|
3882
|
+
), e = ue(() => oe.languages[0], []), t = ue(
|
|
3880
3883
|
(n, s) => cs(n, s),
|
|
3881
3884
|
[]
|
|
3882
3885
|
);
|
|
3883
3886
|
return { format: r, getCurrentLanguage: e, translate: t };
|
|
3884
3887
|
}
|
|
3885
|
-
var
|
|
3888
|
+
var Ee = /* @__PURE__ */ ((r) => (r.CALENDAR_FOR = "Date.CalendarFor", r.CLOSE = "Generic.Close", r.SPOTLIGHT_DEFAULT_PLACEHOLDER = "Generic.SpotlightDefaultPlaceholder", r.CHECK_OBJECT_WRONG_VALIDATION = "Generic.CheckObjectWrongValidation", r.CONFIRM_BUTTON = "Generic.ConfirmButton", r.AUTOCOMPLETE_DEFAULT_PLACEHOLDER = "Generic.AutocompleteDefaultPlaceholder", r))(Ee || {}), fe = /* @__PURE__ */ ((r) => (r.MONDAY = "Day.Monday", r.MONDAY_SHORT = "Day.MondayShort", r.TUESDAY = "Day.Tuesday", r.TUESDAY_SHORT = "Day.TuesdayShort", r.WEDNESDAY = "Day.Wednesday", r.WEDNESDAY_SHORT = "Day.WednesdayShort", r.THURSDAY = "Day.Thursday", r.THURSDAY_SHORT = "Day.ThursdayShort", r.FRIDAY = "Day.Friday", r.FRIDAY_SHORT = "Day.FridayShort", r.SATURDAY = "Day.Saturday", r.SATURDAY_SHORT = "Day.SaturdayShort", r.SUNDAY = "Day.Sunday", r.SUNDAY_SHORT = "Day.SundayShort", r))(fe || {}), pe = /* @__PURE__ */ ((r) => (r.JANUARY = "Month.January", r.FEBRUARY = "Month.February", r.MARCH = "Month.March", r.APRIL = "Month.April", r.MAY = "Month.May", r.JUNE = "Month.June", r.JULY = "Month.July", r.AUGUST = "Month.August", r.SEPTEMBER = "Month.September", r.OCTOBER = "Month.October", r.NOVEMBER = "Month.November", r.DECEMBER = "Month.December", r))(pe || {}), Dt = /* @__PURE__ */ ((r) => (r.PREVIOUS_DAY = "Date.PreviousDay", r.PREVIOUS_WEEK = "Date.PreviousWeek", r.PREVIOUS_MONTH = "Date.PreviousMonth", r.PREVIOUS_YEAR = "Date.PreviousYear", r.NEXT_DAY = "Date.NextDay", r.NEXT_WEEK = "Date.NextWeek", r.NEXT_MONTH = "Date.NextMonth", r.NEXT_YEAR = "Date.NextYear", r.YESTERDAY = "Date.Yesterday", r.TODAY = "Date.Today", r.TOMORROW = "Date.Tomorrow", r))(Dt || {});
|
|
3886
3889
|
const Ir = ({
|
|
3887
3890
|
bindValue: r,
|
|
3888
3891
|
optionalDisplayValue: e,
|
|
@@ -3899,38 +3902,38 @@ const Ir = ({
|
|
|
3899
3902
|
_multiActiveIndex: f,
|
|
3900
3903
|
...g
|
|
3901
3904
|
}) => {
|
|
3902
|
-
const p = le(null), [b, E] =
|
|
3905
|
+
const p = le(null), [b, E] = G(r), [T, v] = G(e), { translate: C } = $e(), [w, y] = G(!1), [_, S] = G(t || []), [k, L] = G(0), [I, R] = G([r]), { anchorRef: O, targetRef: P, anchorWidth: N } = pt({
|
|
3903
3906
|
position: "bottom",
|
|
3904
3907
|
enabled: w
|
|
3905
|
-
}), B =
|
|
3908
|
+
}), B = ue(() => {
|
|
3906
3909
|
y(!1), p?.current?.focus();
|
|
3907
3910
|
}, []);
|
|
3908
|
-
mt([
|
|
3909
|
-
const
|
|
3910
|
-
|
|
3911
|
-
}, X = (
|
|
3912
|
-
|
|
3911
|
+
mt([P], w, () => B());
|
|
3912
|
+
const H = On(400), q = (j) => {
|
|
3913
|
+
j.length >= a ? X(j) : B(), E(j), v(e), l || c?.(j, e);
|
|
3914
|
+
}, X = (j) => {
|
|
3915
|
+
H(async () => {
|
|
3913
3916
|
if (o && d) {
|
|
3914
|
-
const D = await d(o,
|
|
3917
|
+
const D = await d(o, j);
|
|
3915
3918
|
S(D), L(D.length > 0 ? 0 : -1), y(!0);
|
|
3916
3919
|
}
|
|
3917
3920
|
});
|
|
3918
3921
|
}, F = () => {
|
|
3919
3922
|
w || u?.();
|
|
3920
|
-
}, h = (
|
|
3921
|
-
l ? (E(""),
|
|
3922
|
-
const D =
|
|
3923
|
-
L(D),
|
|
3924
|
-
},
|
|
3925
|
-
|
|
3926
|
-
}, $ = (
|
|
3927
|
-
if ((
|
|
3928
|
-
const D =
|
|
3923
|
+
}, h = (j) => {
|
|
3924
|
+
l ? (E(""), v("")) : (E(j.id), v(j.label)), c?.(j.id, j.label);
|
|
3925
|
+
const D = _.findIndex((A) => A.id === j.id);
|
|
3926
|
+
L(D), R([j.id]), B();
|
|
3927
|
+
}, x = (j) => {
|
|
3928
|
+
j.key === "Escape" && (B(), L(-1));
|
|
3929
|
+
}, $ = (j) => {
|
|
3930
|
+
if ((j.key === "ArrowDown" || j.key === "ArrowUp") && (j.preventDefault(), w)) {
|
|
3931
|
+
const D = j.key === "ArrowDown" ? (k + 1) % _.length : (k - 1 + _.length) % _.length;
|
|
3929
3932
|
L(D);
|
|
3930
3933
|
}
|
|
3931
|
-
switch (
|
|
3934
|
+
switch (j.key) {
|
|
3932
3935
|
case "Enter":
|
|
3933
|
-
k >= 0 && k <
|
|
3936
|
+
k >= 0 && k < _.length ? h(_[k]) : l && (c?.(b, ""), B(), E(""), v(""));
|
|
3934
3937
|
break;
|
|
3935
3938
|
case "Escape":
|
|
3936
3939
|
B(), L(-1);
|
|
@@ -3939,7 +3942,7 @@ const Ir = ({
|
|
|
3939
3942
|
};
|
|
3940
3943
|
return /* @__PURE__ */ m.jsxs("div", { "data-component": "autocomplete", children: [
|
|
3941
3944
|
/* @__PURE__ */ m.jsx(
|
|
3942
|
-
|
|
3945
|
+
Pt,
|
|
3943
3946
|
{
|
|
3944
3947
|
...g,
|
|
3945
3948
|
bindValue: b,
|
|
@@ -3948,9 +3951,9 @@ const Ir = ({
|
|
|
3948
3951
|
isEditable: i,
|
|
3949
3952
|
shapeIcon: "magnify",
|
|
3950
3953
|
placeholder: C(
|
|
3951
|
-
|
|
3954
|
+
Ee.AUTOCOMPLETE_DEFAULT_PLACEHOLDER
|
|
3952
3955
|
),
|
|
3953
|
-
ref:
|
|
3956
|
+
ref: O,
|
|
3954
3957
|
inputRef: p,
|
|
3955
3958
|
onChange: q,
|
|
3956
3959
|
onKeyDown: $,
|
|
@@ -3962,15 +3965,15 @@ const Ir = ({
|
|
|
3962
3965
|
w && /* @__PURE__ */ m.jsx(ht, { children: /* @__PURE__ */ m.jsx(
|
|
3963
3966
|
Lr,
|
|
3964
3967
|
{
|
|
3965
|
-
options:
|
|
3968
|
+
options: _,
|
|
3966
3969
|
displayMode: s,
|
|
3967
3970
|
onClick: h,
|
|
3968
|
-
ref:
|
|
3971
|
+
ref: P,
|
|
3969
3972
|
selectedIndex: k,
|
|
3970
3973
|
activeIndex: f || I,
|
|
3971
3974
|
width: N,
|
|
3972
3975
|
showFilter: !1,
|
|
3973
|
-
onKeyDown:
|
|
3976
|
+
onKeyDown: x,
|
|
3974
3977
|
isOpen: w
|
|
3975
3978
|
}
|
|
3976
3979
|
) })
|
|
@@ -3992,7 +3995,7 @@ const Ir = ({
|
|
|
3992
3995
|
onClick: g,
|
|
3993
3996
|
onOptionsRequest: p
|
|
3994
3997
|
}) => {
|
|
3995
|
-
const [b, E] =
|
|
3998
|
+
const [b, E] = G(r);
|
|
3996
3999
|
re(() => {
|
|
3997
4000
|
!b && p && e && p(e, void 0).then((C) => E(C)).catch((C) => {
|
|
3998
4001
|
console.error(
|
|
@@ -4003,7 +4006,7 @@ const Ir = ({
|
|
|
4003
4006
|
}, [b, e, p]);
|
|
4004
4007
|
const T = {
|
|
4005
4008
|
container: `smp-button-list smp-button-list-${t} smp-justifyContent-${n}`
|
|
4006
|
-
},
|
|
4009
|
+
}, v = b?.map((C, w) => {
|
|
4007
4010
|
const y = {
|
|
4008
4011
|
bindValue: C.id,
|
|
4009
4012
|
optionalDisplayValue: C.label,
|
|
@@ -4022,9 +4025,9 @@ const Ir = ({
|
|
|
4022
4025
|
g?.(C.id, C.fun);
|
|
4023
4026
|
}
|
|
4024
4027
|
};
|
|
4025
|
-
return /* @__PURE__ */ m.jsx(
|
|
4028
|
+
return /* @__PURE__ */ m.jsx(we, { ...y }, `button-${w}`);
|
|
4026
4029
|
});
|
|
4027
|
-
return /* @__PURE__ */ m.jsx("div", { role: "list", "data-component": "button-list", className: T.container, children:
|
|
4030
|
+
return /* @__PURE__ */ m.jsx("div", { role: "list", "data-component": "button-list", className: T.container, children: v });
|
|
4028
4031
|
}, ds = {
|
|
4029
4032
|
"smp-checkbox-wrapper": "_smp-checkbox-wrapper_z14lq_2"
|
|
4030
4033
|
}, fs = ({
|
|
@@ -4037,7 +4040,7 @@ const Ir = ({
|
|
|
4037
4040
|
onBlur: i,
|
|
4038
4041
|
variant: o = "checkbox"
|
|
4039
4042
|
}) => {
|
|
4040
|
-
const l =
|
|
4043
|
+
const l = Ce(), c = (u) => {
|
|
4041
4044
|
s && a && a(u.target.checked);
|
|
4042
4045
|
}, d = {
|
|
4043
4046
|
wrapper: `${ds["smp-checkbox-wrapper"]}`
|
|
@@ -4057,7 +4060,7 @@ const Ir = ({
|
|
|
4057
4060
|
}
|
|
4058
4061
|
)
|
|
4059
4062
|
] });
|
|
4060
|
-
},
|
|
4063
|
+
}, At = ({
|
|
4061
4064
|
elements: r,
|
|
4062
4065
|
isEditable: e = !1,
|
|
4063
4066
|
displayMode: t = "Both",
|
|
@@ -4066,7 +4069,7 @@ const Ir = ({
|
|
|
4066
4069
|
backgroundColor: a,
|
|
4067
4070
|
isDraggable: i = !1
|
|
4068
4071
|
}) => {
|
|
4069
|
-
const [o, l] =
|
|
4072
|
+
const [o, l] = G(null), c = {
|
|
4070
4073
|
container: `${["smp-chips-container"]}`,
|
|
4071
4074
|
element: "smp-chips-element"
|
|
4072
4075
|
}, d = (g) => {
|
|
@@ -4079,7 +4082,7 @@ const Ir = ({
|
|
|
4079
4082
|
p.splice(g, 0, b), n?.(p), l(null);
|
|
4080
4083
|
};
|
|
4081
4084
|
return /* @__PURE__ */ m.jsx("div", { className: c.container, role: "list", "data-component": "chip", children: r.flatMap((g, p) => {
|
|
4082
|
-
const b =
|
|
4085
|
+
const b = _e(
|
|
4083
4086
|
g.bindValue,
|
|
4084
4087
|
g.optionalDisplayValue,
|
|
4085
4088
|
t
|
|
@@ -4090,16 +4093,16 @@ const Ir = ({
|
|
|
4090
4093
|
role: "listitem",
|
|
4091
4094
|
draggable: i,
|
|
4092
4095
|
onDragStart: () => u(p),
|
|
4093
|
-
onDragOver: (
|
|
4096
|
+
onDragOver: (v) => i && v.preventDefault(),
|
|
4094
4097
|
onDrop: () => i && f(p),
|
|
4095
4098
|
style: {
|
|
4096
4099
|
"--smp-chips-backgroundColor-base": a
|
|
4097
4100
|
},
|
|
4098
4101
|
children: [
|
|
4099
|
-
i && /* @__PURE__ */ m.jsx(
|
|
4102
|
+
i && /* @__PURE__ */ m.jsx(de, { icon: "drag_indicator_horizontal", isInteractable: !0 }),
|
|
4100
4103
|
/* @__PURE__ */ m.jsx(Oe, { variant: "label", bindValue: b, color: s }),
|
|
4101
4104
|
e && /* @__PURE__ */ m.jsx(
|
|
4102
|
-
|
|
4105
|
+
de,
|
|
4103
4106
|
{
|
|
4104
4107
|
icon: "close",
|
|
4105
4108
|
isInteractable: !0,
|
|
@@ -4111,7 +4114,7 @@ const Ir = ({
|
|
|
4111
4114
|
},
|
|
4112
4115
|
`chip-${p}`
|
|
4113
4116
|
), T = i && p < r.length - 1 ? /* @__PURE__ */ m.jsx(
|
|
4114
|
-
|
|
4117
|
+
de,
|
|
4115
4118
|
{
|
|
4116
4119
|
icon: "chevron-right",
|
|
4117
4120
|
color: s
|
|
@@ -4172,25 +4175,25 @@ const ps = ({
|
|
|
4172
4175
|
multiActiveIndex: c,
|
|
4173
4176
|
...d
|
|
4174
4177
|
}) => {
|
|
4175
|
-
const u = le(null), [f, g] =
|
|
4178
|
+
const u = le(null), [f, g] = G(!1), [p, b] = G(t), [E, T] = G(-1), [v, C] = G([r]), w = Ce(), { anchorRef: y, targetRef: _, anchorWidth: S } = pt({
|
|
4176
4179
|
position: "bottom",
|
|
4177
4180
|
enabled: f
|
|
4178
|
-
}), k =
|
|
4181
|
+
}), k = ue(() => {
|
|
4179
4182
|
g(!1), u?.current?.focus();
|
|
4180
4183
|
}, []);
|
|
4181
|
-
mt([
|
|
4182
|
-
const L = (
|
|
4183
|
-
e?.(
|
|
4184
|
-
const N = p.findIndex((B) => B.id ===
|
|
4185
|
-
T(N), C([
|
|
4186
|
-
}, I = (
|
|
4187
|
-
|
|
4188
|
-
},
|
|
4189
|
-
(
|
|
4190
|
-
},
|
|
4191
|
-
s && (o && l ? f ? g(!1) : l(o, void 0).then((
|
|
4192
|
-
b(
|
|
4193
|
-
}) : g((
|
|
4184
|
+
mt([_, y], f, () => k()), It(f, _);
|
|
4185
|
+
const L = (P) => {
|
|
4186
|
+
e?.(P.id, P.label);
|
|
4187
|
+
const N = p.findIndex((B) => B.id === P.id);
|
|
4188
|
+
T(N), C([P.id]), k();
|
|
4189
|
+
}, I = (P) => {
|
|
4190
|
+
P.key === "Escape" && (k(), T(-1));
|
|
4191
|
+
}, R = (P) => {
|
|
4192
|
+
(P.key === "ArrowDown" || P.key === "ArrowUp") && (P.preventDefault(), O());
|
|
4193
|
+
}, O = () => {
|
|
4194
|
+
s && (o && l ? f ? g(!1) : l(o, void 0).then((P) => {
|
|
4195
|
+
b(P), T(P.length > 0 ? 0 : -1), g(!0);
|
|
4196
|
+
}) : g((P) => !P));
|
|
4194
4197
|
};
|
|
4195
4198
|
return /* @__PURE__ */ m.jsxs(
|
|
4196
4199
|
"div",
|
|
@@ -4202,15 +4205,15 @@ const ps = ({
|
|
|
4202
4205
|
"data-component": "combobox",
|
|
4203
4206
|
children: [
|
|
4204
4207
|
/* @__PURE__ */ m.jsx(
|
|
4205
|
-
|
|
4208
|
+
Pt,
|
|
4206
4209
|
{
|
|
4207
4210
|
...d,
|
|
4208
4211
|
bindValue: r,
|
|
4209
4212
|
optionalDisplayValue: n,
|
|
4210
4213
|
displayMode: a,
|
|
4211
|
-
onShapeIconClick:
|
|
4212
|
-
onKeyDown:
|
|
4213
|
-
onClick:
|
|
4214
|
+
onShapeIconClick: O,
|
|
4215
|
+
onKeyDown: R,
|
|
4216
|
+
onClick: O,
|
|
4214
4217
|
shapeIcon: "arrow_drop_down",
|
|
4215
4218
|
rotatedShapeIcon: f,
|
|
4216
4219
|
isEditable: s,
|
|
@@ -4226,10 +4229,10 @@ const ps = ({
|
|
|
4226
4229
|
id: w,
|
|
4227
4230
|
options: p,
|
|
4228
4231
|
displayMode: i,
|
|
4229
|
-
ref:
|
|
4232
|
+
ref: _,
|
|
4230
4233
|
isOpen: f,
|
|
4231
4234
|
selectedIndex: E,
|
|
4232
|
-
activeIndex: c ||
|
|
4235
|
+
activeIndex: c || v,
|
|
4233
4236
|
width: S,
|
|
4234
4237
|
onClick: L,
|
|
4235
4238
|
onKeyDown: I
|
|
@@ -4248,19 +4251,19 @@ function ms({
|
|
|
4248
4251
|
initialValue: n,
|
|
4249
4252
|
targetRef: s
|
|
4250
4253
|
}) {
|
|
4251
|
-
const { translate: a } =
|
|
4254
|
+
const { translate: a } = $e(), i = () => {
|
|
4252
4255
|
if (!n) return;
|
|
4253
4256
|
const F = new Date(n);
|
|
4254
4257
|
return isNaN(F.getTime()) ? void 0 : F;
|
|
4255
|
-
}, [o] =
|
|
4258
|
+
}, [o] = G(/* @__PURE__ */ new Date()), [l, c] = G(
|
|
4256
4259
|
r || i() || /* @__PURE__ */ new Date()
|
|
4257
|
-
), [d, u] =
|
|
4260
|
+
), [d, u] = G(
|
|
4258
4261
|
l ? l.getMonth() : (/* @__PURE__ */ new Date()).getMonth()
|
|
4259
|
-
), [f, g] =
|
|
4262
|
+
), [f, g] = G(
|
|
4260
4263
|
l ? l.getFullYear() : (/* @__PURE__ */ new Date()).getFullYear()
|
|
4261
|
-
), [p, b] =
|
|
4264
|
+
), [p, b] = G(
|
|
4262
4265
|
l ? l.getDate() : null
|
|
4263
|
-
), E = le(null), T = le([]),
|
|
4266
|
+
), E = le(null), T = le([]), v = [
|
|
4264
4267
|
a(pe.JANUARY),
|
|
4265
4268
|
a(pe.FEBRUARY),
|
|
4266
4269
|
a(pe.MARCH),
|
|
@@ -4275,64 +4278,64 @@ function ms({
|
|
|
4275
4278
|
a(pe.DECEMBER)
|
|
4276
4279
|
], C = [
|
|
4277
4280
|
{
|
|
4278
|
-
value: a(
|
|
4279
|
-
full: a(
|
|
4281
|
+
value: a(fe.SUNDAY_SHORT),
|
|
4282
|
+
full: a(fe.SUNDAY)
|
|
4280
4283
|
},
|
|
4281
4284
|
{
|
|
4282
|
-
value: a(
|
|
4283
|
-
full: a(
|
|
4285
|
+
value: a(fe.MONDAY_SHORT),
|
|
4286
|
+
full: a(fe.MONDAY)
|
|
4284
4287
|
},
|
|
4285
4288
|
{
|
|
4286
|
-
value: a(
|
|
4287
|
-
full: a(
|
|
4289
|
+
value: a(fe.TUESDAY_SHORT),
|
|
4290
|
+
full: a(fe.TUESDAY)
|
|
4288
4291
|
},
|
|
4289
4292
|
{
|
|
4290
|
-
value: a(
|
|
4291
|
-
full: a(
|
|
4293
|
+
value: a(fe.WEDNESDAY_SHORT),
|
|
4294
|
+
full: a(fe.WEDNESDAY)
|
|
4292
4295
|
},
|
|
4293
4296
|
{
|
|
4294
|
-
value: a(
|
|
4295
|
-
full: a(
|
|
4297
|
+
value: a(fe.THURSDAY_SHORT),
|
|
4298
|
+
full: a(fe.THURSDAY)
|
|
4296
4299
|
},
|
|
4297
4300
|
{
|
|
4298
|
-
value: a(
|
|
4299
|
-
full: a(
|
|
4301
|
+
value: a(fe.FRIDAY_SHORT),
|
|
4302
|
+
full: a(fe.FRIDAY)
|
|
4300
4303
|
},
|
|
4301
4304
|
{
|
|
4302
|
-
value: a(
|
|
4303
|
-
full: a(
|
|
4305
|
+
value: a(fe.SATURDAY_SHORT),
|
|
4306
|
+
full: a(fe.SATURDAY)
|
|
4304
4307
|
}
|
|
4305
4308
|
], w = (F) => t.some((h) => {
|
|
4306
|
-
const
|
|
4307
|
-
return
|
|
4309
|
+
const x = h.start.getTime(), $ = h.end.getTime(), j = F.getTime();
|
|
4310
|
+
return j >= x && j <= $;
|
|
4308
4311
|
}), y = (F) => {
|
|
4309
4312
|
w(F) || (c(F), b(F.getDate()), e && e(En(F)));
|
|
4310
|
-
},
|
|
4313
|
+
}, _ = () => {
|
|
4311
4314
|
d === 0 ? (u(11), g(f - 1)) : u(d - 1), b(1);
|
|
4312
4315
|
}, S = () => {
|
|
4313
4316
|
d === 11 ? (u(0), g(f + 1)) : u(d + 1), b(1);
|
|
4314
4317
|
}, k = (F, h) => new Date(F, h + 1, 0).getDate(), L = (F, h) => new Date(F, h, 1).getDay(), I = (F) => {
|
|
4315
4318
|
const h = N.findIndex(
|
|
4316
|
-
(
|
|
4319
|
+
(x) => x !== null && x.getDate() === F
|
|
4317
4320
|
);
|
|
4318
4321
|
h !== -1 && T.current[h] && (T.current[h]?.focus(), b(F));
|
|
4319
|
-
},
|
|
4320
|
-
const
|
|
4321
|
-
if (!
|
|
4322
|
-
const $ = k(f, d),
|
|
4322
|
+
}, R = (F, h) => {
|
|
4323
|
+
const x = N[h];
|
|
4324
|
+
if (!x) return;
|
|
4325
|
+
const $ = k(f, d), j = x.getDate();
|
|
4323
4326
|
switch (F.key) {
|
|
4324
4327
|
case "ArrowRight":
|
|
4325
4328
|
F.preventDefault();
|
|
4326
4329
|
{
|
|
4327
|
-
let D =
|
|
4330
|
+
let D = j + 1, A = new Date(f, d, D);
|
|
4328
4331
|
if (D > $) {
|
|
4329
|
-
const
|
|
4330
|
-
D = 1,
|
|
4331
|
-
|
|
4332
|
+
const U = d === 11 ? f + 1 : f, W = d === 11 ? 0 : d + 1;
|
|
4333
|
+
D = 1, A = new Date(U, W, D), S(), setTimeout(() => {
|
|
4334
|
+
O(1, "forward");
|
|
4332
4335
|
}, 0);
|
|
4333
4336
|
return;
|
|
4334
4337
|
}
|
|
4335
|
-
w(
|
|
4338
|
+
w(A) ? O(D, "forward") : I(D);
|
|
4336
4339
|
}
|
|
4337
4340
|
break;
|
|
4338
4341
|
case "Tab":
|
|
@@ -4340,58 +4343,58 @@ function ms({
|
|
|
4340
4343
|
case "ArrowLeft":
|
|
4341
4344
|
F.preventDefault();
|
|
4342
4345
|
{
|
|
4343
|
-
let D =
|
|
4346
|
+
let D = j - 1, A = new Date(f, d, D);
|
|
4344
4347
|
if (D < 1) {
|
|
4345
|
-
const
|
|
4346
|
-
D = V,
|
|
4347
|
-
|
|
4348
|
+
const U = d === 0 ? f - 1 : f, W = d === 0 ? 11 : d - 1, V = k(U, W);
|
|
4349
|
+
D = V, A = new Date(U, W, D), _(), setTimeout(() => {
|
|
4350
|
+
O(V, "backward");
|
|
4348
4351
|
}, 0);
|
|
4349
4352
|
return;
|
|
4350
4353
|
}
|
|
4351
|
-
w(
|
|
4354
|
+
w(A) ? O(D, "backward") : I(D);
|
|
4352
4355
|
}
|
|
4353
4356
|
break;
|
|
4354
4357
|
case "ArrowUp":
|
|
4355
4358
|
F.preventDefault();
|
|
4356
4359
|
{
|
|
4357
|
-
let D =
|
|
4360
|
+
let D = j - 7, A = new Date(f, d, D);
|
|
4358
4361
|
if (D < 1) {
|
|
4359
|
-
const
|
|
4360
|
-
D = k(
|
|
4361
|
-
|
|
4362
|
+
const U = d === 0 ? f - 1 : f, W = d === 0 ? 11 : d - 1;
|
|
4363
|
+
D = k(U, W) + D, A = new Date(U, W, D), _(), setTimeout(() => {
|
|
4364
|
+
O(D, "backward");
|
|
4362
4365
|
}, 0);
|
|
4363
4366
|
return;
|
|
4364
4367
|
}
|
|
4365
|
-
w(
|
|
4368
|
+
w(A) ? O(D, "backward") : I(D);
|
|
4366
4369
|
}
|
|
4367
4370
|
break;
|
|
4368
4371
|
case "ArrowDown":
|
|
4369
4372
|
F.preventDefault();
|
|
4370
4373
|
{
|
|
4371
|
-
let D =
|
|
4374
|
+
let D = j + 7, A = new Date(f, d, D);
|
|
4372
4375
|
if (D > $) {
|
|
4373
|
-
const
|
|
4374
|
-
D = D - $,
|
|
4375
|
-
|
|
4376
|
+
const U = d === 11 ? f + 1 : f, W = d === 11 ? 0 : d + 1;
|
|
4377
|
+
D = D - $, A = new Date(U, W, D), S(), setTimeout(() => {
|
|
4378
|
+
O(D, "forward");
|
|
4376
4379
|
}, 0);
|
|
4377
4380
|
return;
|
|
4378
4381
|
}
|
|
4379
|
-
w(
|
|
4382
|
+
w(A) ? O(D, "forward") : I(D);
|
|
4380
4383
|
}
|
|
4381
4384
|
break;
|
|
4382
4385
|
case "Home":
|
|
4383
|
-
F.preventDefault(),
|
|
4386
|
+
F.preventDefault(), O(1, "forward");
|
|
4384
4387
|
break;
|
|
4385
4388
|
case "End":
|
|
4386
|
-
F.preventDefault(),
|
|
4389
|
+
F.preventDefault(), O($, "backward");
|
|
4387
4390
|
break;
|
|
4388
4391
|
case "PageUp":
|
|
4389
|
-
F.preventDefault(),
|
|
4392
|
+
F.preventDefault(), _(), setTimeout(() => {
|
|
4390
4393
|
const D = k(
|
|
4391
4394
|
d === 0 ? f - 1 : f,
|
|
4392
4395
|
d === 0 ? 11 : d - 1
|
|
4393
|
-
),
|
|
4394
|
-
|
|
4396
|
+
), A = Math.min(j, D);
|
|
4397
|
+
O(A, "forward");
|
|
4395
4398
|
}, 0);
|
|
4396
4399
|
break;
|
|
4397
4400
|
case "PageDown":
|
|
@@ -4399,61 +4402,61 @@ function ms({
|
|
|
4399
4402
|
const D = k(
|
|
4400
4403
|
d === 11 ? f + 1 : f,
|
|
4401
4404
|
d === 11 ? 0 : d + 1
|
|
4402
|
-
),
|
|
4403
|
-
|
|
4405
|
+
), A = Math.min(j, D);
|
|
4406
|
+
O(A, "forward");
|
|
4404
4407
|
}, 0);
|
|
4405
4408
|
break;
|
|
4406
4409
|
case " ":
|
|
4407
4410
|
case "Space":
|
|
4408
|
-
if (w(
|
|
4409
|
-
b(
|
|
4411
|
+
if (w(x)) return;
|
|
4412
|
+
b(x.getDate()), c(x);
|
|
4410
4413
|
break;
|
|
4411
4414
|
case "Enter":
|
|
4412
|
-
F.preventDefault(), y(
|
|
4415
|
+
F.preventDefault(), y(x);
|
|
4413
4416
|
break;
|
|
4414
4417
|
}
|
|
4415
|
-
},
|
|
4416
|
-
const
|
|
4418
|
+
}, O = (F, h) => {
|
|
4419
|
+
const x = k(f, d);
|
|
4417
4420
|
if (h === "forward") {
|
|
4418
|
-
for (let $ = F; $ <=
|
|
4419
|
-
const
|
|
4420
|
-
if (!w(
|
|
4421
|
+
for (let $ = F; $ <= x; $++) {
|
|
4422
|
+
const j = new Date(f, d, $);
|
|
4423
|
+
if (!w(j)) {
|
|
4421
4424
|
I($);
|
|
4422
4425
|
return;
|
|
4423
4426
|
}
|
|
4424
4427
|
}
|
|
4425
4428
|
S(), setTimeout(() => {
|
|
4426
|
-
|
|
4429
|
+
O(1, "forward");
|
|
4427
4430
|
}, 0);
|
|
4428
4431
|
} else {
|
|
4429
|
-
for (let
|
|
4430
|
-
const
|
|
4431
|
-
if (!w(
|
|
4432
|
-
I(
|
|
4432
|
+
for (let A = F; A >= 1; A--) {
|
|
4433
|
+
const U = new Date(f, d, A);
|
|
4434
|
+
if (!w(U)) {
|
|
4435
|
+
I(A);
|
|
4433
4436
|
return;
|
|
4434
4437
|
}
|
|
4435
4438
|
}
|
|
4436
|
-
const $ = d === 0 ? f - 1 : f,
|
|
4437
|
-
|
|
4438
|
-
|
|
4439
|
+
const $ = d === 0 ? f - 1 : f, j = d === 0 ? 11 : d - 1, D = k($, j);
|
|
4440
|
+
_(), setTimeout(() => {
|
|
4441
|
+
O(D, "backward");
|
|
4439
4442
|
}, 0);
|
|
4440
4443
|
}
|
|
4441
4444
|
}, N = (() => {
|
|
4442
|
-
const F = k(f, d), h = L(f, d),
|
|
4445
|
+
const F = k(f, d), h = L(f, d), x = [];
|
|
4443
4446
|
for (let $ = 0; $ < h; $++)
|
|
4444
|
-
|
|
4447
|
+
x.push(null);
|
|
4445
4448
|
for (let $ = 1; $ <= F; $++) {
|
|
4446
|
-
const
|
|
4447
|
-
|
|
4449
|
+
const j = new Date(f, d, $);
|
|
4450
|
+
x.push(j);
|
|
4448
4451
|
}
|
|
4449
|
-
return
|
|
4452
|
+
return x;
|
|
4450
4453
|
})(), B = [];
|
|
4451
|
-
let
|
|
4454
|
+
let H = [];
|
|
4452
4455
|
N.forEach((F, h) => {
|
|
4453
|
-
if (
|
|
4454
|
-
for (;
|
|
4455
|
-
|
|
4456
|
-
B.push(
|
|
4456
|
+
if (H.push(F), H.length === 7 || h === N.length - 1) {
|
|
4457
|
+
for (; H.length < 7; )
|
|
4458
|
+
H.push(null);
|
|
4459
|
+
B.push(H), H = [];
|
|
4457
4460
|
}
|
|
4458
4461
|
}), re(() => {
|
|
4459
4462
|
if (p !== null) {
|
|
@@ -4469,12 +4472,12 @@ function ms({
|
|
|
4469
4472
|
calendar: "smp-datepickercalendar",
|
|
4470
4473
|
table: "smp-datepickercalendar-table",
|
|
4471
4474
|
th: "smp-datepickercalendar-th",
|
|
4472
|
-
td: (F, h,
|
|
4475
|
+
td: (F, h, x, $) => `smp-datepickercalendar-td
|
|
4473
4476
|
${F ? "smp-datepickercalendar-td-today" : ""}
|
|
4474
4477
|
${h ? "smp-datepickercalendar-td-selected" : ""}
|
|
4475
|
-
${
|
|
4478
|
+
${x ? "smp-datepickercalendar-td-focused" : ""}
|
|
4476
4479
|
${$ ? "smp-datepickercalendar-td-disabled" : ""}`
|
|
4477
|
-
}, X = () => `${
|
|
4480
|
+
}, X = () => `${v[d]} ${f.toString()}`;
|
|
4478
4481
|
return /* @__PURE__ */ m.jsxs(
|
|
4479
4482
|
"div",
|
|
4480
4483
|
{
|
|
@@ -4496,9 +4499,9 @@ function ms({
|
|
|
4496
4499
|
},
|
|
4497
4500
|
children: [
|
|
4498
4501
|
/* @__PURE__ */ m.jsx(
|
|
4499
|
-
|
|
4502
|
+
we,
|
|
4500
4503
|
{
|
|
4501
|
-
onClick:
|
|
4504
|
+
onClick: _,
|
|
4502
4505
|
ariaLabel: a(Dt.PREVIOUS_MONTH),
|
|
4503
4506
|
optionalDisplayValue: "<",
|
|
4504
4507
|
appearance: "ghost",
|
|
@@ -4515,7 +4518,7 @@ function ms({
|
|
|
4515
4518
|
}
|
|
4516
4519
|
),
|
|
4517
4520
|
/* @__PURE__ */ m.jsx(
|
|
4518
|
-
|
|
4521
|
+
we,
|
|
4519
4522
|
{
|
|
4520
4523
|
onClick: S,
|
|
4521
4524
|
ariaLabel: a(Dt.NEXT_MONTH),
|
|
@@ -4533,7 +4536,7 @@ function ms({
|
|
|
4533
4536
|
{
|
|
4534
4537
|
ref: E,
|
|
4535
4538
|
role: "grid",
|
|
4536
|
-
"aria-label": `${a(
|
|
4539
|
+
"aria-label": `${a(Ee.CALENDAR_FOR)} ${v[d]} ${f}`,
|
|
4537
4540
|
className: q.table,
|
|
4538
4541
|
children: [
|
|
4539
4542
|
/* @__PURE__ */ m.jsx("thead", { children: /* @__PURE__ */ m.jsx("tr", { children: C.map((F) => /* @__PURE__ */ m.jsx(
|
|
@@ -4546,9 +4549,9 @@ function ms({
|
|
|
4546
4549
|
},
|
|
4547
4550
|
F.value
|
|
4548
4551
|
)) }) }),
|
|
4549
|
-
/* @__PURE__ */ m.jsx("tbody", { children: B.map((F, h) => /* @__PURE__ */ m.jsx("tr", { children: F.map((
|
|
4550
|
-
const
|
|
4551
|
-
if (
|
|
4552
|
+
/* @__PURE__ */ m.jsx("tbody", { children: B.map((F, h) => /* @__PURE__ */ m.jsx("tr", { children: F.map((x, $) => {
|
|
4553
|
+
const j = h * 7 + $;
|
|
4554
|
+
if (x === null)
|
|
4552
4555
|
return /* @__PURE__ */ m.jsx(
|
|
4553
4556
|
"td",
|
|
4554
4557
|
{
|
|
@@ -4561,28 +4564,28 @@ function ms({
|
|
|
4561
4564
|
},
|
|
4562
4565
|
`empty-${$}`
|
|
4563
4566
|
);
|
|
4564
|
-
const D =
|
|
4567
|
+
const D = x.getDate() === o.getDate() && x.getMonth() === o.getMonth() && x.getFullYear() === o.getFullYear(), A = l && x.getDate() === l.getDate() && x.getMonth() === l.getMonth() && x.getFullYear() === l.getFullYear(), U = p === x.getDate(), W = w(x);
|
|
4565
4568
|
return /* @__PURE__ */ m.jsx(
|
|
4566
4569
|
"td",
|
|
4567
4570
|
{
|
|
4568
4571
|
role: "gridcell",
|
|
4569
|
-
"aria-selected":
|
|
4570
|
-
tabIndex:
|
|
4571
|
-
onClick: () => y(
|
|
4572
|
-
onKeyDown: (V) =>
|
|
4573
|
-
"aria-label": `${
|
|
4574
|
-
"data-selected":
|
|
4575
|
-
"aria-disabled":
|
|
4572
|
+
"aria-selected": A,
|
|
4573
|
+
tabIndex: U ? 0 : -1,
|
|
4574
|
+
onClick: () => y(x),
|
|
4575
|
+
onKeyDown: (V) => R(V, j),
|
|
4576
|
+
"aria-label": `${x.getDate()} ${v[x.getMonth()]} ${x.getFullYear()}`,
|
|
4577
|
+
"data-selected": A,
|
|
4578
|
+
"aria-disabled": W,
|
|
4576
4579
|
ref: (V) => {
|
|
4577
|
-
T.current[
|
|
4580
|
+
T.current[j] = V;
|
|
4578
4581
|
},
|
|
4579
4582
|
className: q.td(
|
|
4580
4583
|
D,
|
|
4581
|
-
|
|
4582
|
-
|
|
4583
|
-
|
|
4584
|
+
A,
|
|
4585
|
+
U,
|
|
4586
|
+
W
|
|
4584
4587
|
),
|
|
4585
|
-
children:
|
|
4588
|
+
children: x.getDate()
|
|
4586
4589
|
},
|
|
4587
4590
|
`day-${$}`
|
|
4588
4591
|
);
|
|
@@ -4602,48 +4605,48 @@ const gs = ({
|
|
|
4602
4605
|
isEditable: s = !0,
|
|
4603
4606
|
...a
|
|
4604
4607
|
}) => {
|
|
4605
|
-
const i = le(null), [o, l] =
|
|
4608
|
+
const i = le(null), [o, l] = G(!1), [c, d] = G(r || ""), [u, f] = G(""), { anchorRef: g, targetRef: p } = pt({
|
|
4606
4609
|
position: "bottom",
|
|
4607
4610
|
enabled: o
|
|
4608
|
-
}), b =
|
|
4611
|
+
}), b = ue(() => {
|
|
4609
4612
|
l(!1), i?.current?.focus();
|
|
4610
4613
|
}, []);
|
|
4611
4614
|
mt([p, g], o, () => {
|
|
4612
4615
|
b();
|
|
4613
4616
|
}), It(o, p);
|
|
4614
|
-
const { format: E, getCurrentLanguage: T } =
|
|
4617
|
+
const { format: E, getCurrentLanguage: T } = $e(), v = ue(
|
|
4615
4618
|
(L) => {
|
|
4616
|
-
const I = L.length > 5 && xn(L, T()) || L,
|
|
4619
|
+
const I = L.length > 5 && xn(L, T()) || L, R = E(I, void 0, void 0, {
|
|
4617
4620
|
type: "date"
|
|
4618
|
-
}),
|
|
4621
|
+
}), O = typeof I != "string", P = O && I.toISOString().substring(0, 10) || "";
|
|
4619
4622
|
return {
|
|
4620
|
-
isValid:
|
|
4621
|
-
formattedDate:
|
|
4622
|
-
isoDate:
|
|
4623
|
+
isValid: O,
|
|
4624
|
+
formattedDate: R,
|
|
4625
|
+
isoDate: P,
|
|
4623
4626
|
normalizedDate: I
|
|
4624
4627
|
};
|
|
4625
4628
|
},
|
|
4626
4629
|
[T, E]
|
|
4627
4630
|
);
|
|
4628
4631
|
re(() => {
|
|
4629
|
-
const { formattedDate: L, isoDate: I, isValid:
|
|
4630
|
-
d(
|
|
4631
|
-
}, [r, E,
|
|
4632
|
+
const { formattedDate: L, isoDate: I, isValid: R } = v(r);
|
|
4633
|
+
d(R && I || r), f(R && L || r);
|
|
4634
|
+
}, [r, E, v]);
|
|
4632
4635
|
const C = () => l((L) => !L), w = () => {
|
|
4633
|
-
|
|
4636
|
+
_(u);
|
|
4634
4637
|
}, y = (L) => {
|
|
4635
|
-
|
|
4636
|
-
},
|
|
4637
|
-
const { isoDate: I, isValid:
|
|
4638
|
-
t && t(
|
|
4638
|
+
_(L), b();
|
|
4639
|
+
}, _ = (L) => {
|
|
4640
|
+
const { isoDate: I, isValid: R } = v(L);
|
|
4641
|
+
t && t(R && I || L);
|
|
4639
4642
|
}, S = (L) => {
|
|
4640
4643
|
f(L);
|
|
4641
4644
|
}, k = (L) => {
|
|
4642
|
-
L.key === "Enter" && (L.preventDefault(),
|
|
4645
|
+
L.key === "Enter" && (L.preventDefault(), _(u));
|
|
4643
4646
|
};
|
|
4644
4647
|
return /* @__PURE__ */ m.jsxs("div", { "data-component": "date-picker", children: [
|
|
4645
4648
|
/* @__PURE__ */ m.jsx(
|
|
4646
|
-
|
|
4649
|
+
De,
|
|
4647
4650
|
{
|
|
4648
4651
|
...a,
|
|
4649
4652
|
bindValue: u,
|
|
@@ -4686,17 +4689,17 @@ const gs = ({
|
|
|
4686
4689
|
onBlur: f,
|
|
4687
4690
|
...g
|
|
4688
4691
|
}) => {
|
|
4689
|
-
const p = r.map((T) => T.bindValue), b = (T,
|
|
4692
|
+
const p = r.map((T) => T.bindValue), b = (T, v) => {
|
|
4690
4693
|
const C = [...r];
|
|
4691
4694
|
if (T == "")
|
|
4692
4695
|
C.pop();
|
|
4693
4696
|
else {
|
|
4694
4697
|
const w = C.findIndex(
|
|
4695
|
-
(y) => y.bindValue === T && y.optionalDisplayValue ===
|
|
4698
|
+
(y) => y.bindValue === T && y.optionalDisplayValue === v
|
|
4696
4699
|
);
|
|
4697
4700
|
w >= 0 ? C.splice(w, 1) : C.push({
|
|
4698
4701
|
bindValue: T,
|
|
4699
|
-
optionalDisplayValue:
|
|
4702
|
+
optionalDisplayValue: v
|
|
4700
4703
|
});
|
|
4701
4704
|
}
|
|
4702
4705
|
u?.(C);
|
|
@@ -4711,7 +4714,7 @@ const gs = ({
|
|
|
4711
4714
|
children: [
|
|
4712
4715
|
i && /* @__PURE__ */ m.jsx(Re, { label: i, disabled: o }),
|
|
4713
4716
|
/* @__PURE__ */ m.jsx(
|
|
4714
|
-
|
|
4717
|
+
At,
|
|
4715
4718
|
{
|
|
4716
4719
|
elements: r,
|
|
4717
4720
|
displayMode: e,
|
|
@@ -4743,9 +4746,9 @@ const gs = ({
|
|
|
4743
4746
|
}
|
|
4744
4747
|
);
|
|
4745
4748
|
}, bs = ({ ...r }) => {
|
|
4746
|
-
const [e, t] =
|
|
4749
|
+
const [e, t] = G(!1), n = e ? "visibility-off" : "visibility";
|
|
4747
4750
|
return /* @__PURE__ */ m.jsx(
|
|
4748
|
-
|
|
4751
|
+
De,
|
|
4749
4752
|
{
|
|
4750
4753
|
...r,
|
|
4751
4754
|
inputType: e ? "text" : "password",
|
|
@@ -4756,14 +4759,14 @@ const gs = ({
|
|
|
4756
4759
|
}
|
|
4757
4760
|
);
|
|
4758
4761
|
}, vs = ({ ...r }) => {
|
|
4759
|
-
const [e, t] =
|
|
4762
|
+
const [e, t] = G(r.bindValue), { translate: n } = $e(), s = (a) => {
|
|
4760
4763
|
a.key === "Enter" && (a.preventDefault(), r.onEnter?.(e));
|
|
4761
4764
|
};
|
|
4762
4765
|
return /* @__PURE__ */ m.jsx(
|
|
4763
|
-
|
|
4766
|
+
De,
|
|
4764
4767
|
{
|
|
4765
4768
|
...r,
|
|
4766
|
-
placeholder: r.placeholder ? r.placeholder : n(
|
|
4769
|
+
placeholder: r.placeholder ? r.placeholder : n(Ee.SPOTLIGHT_DEFAULT_PLACEHOLDER),
|
|
4767
4770
|
icon: "magnify",
|
|
4768
4771
|
inputType: "search",
|
|
4769
4772
|
bindValue: e,
|
|
@@ -4798,17 +4801,17 @@ const gs = ({
|
|
|
4798
4801
|
}
|
|
4799
4802
|
);
|
|
4800
4803
|
};
|
|
4801
|
-
class
|
|
4804
|
+
class je {
|
|
4802
4805
|
class;
|
|
4803
4806
|
value;
|
|
4804
4807
|
constructor(e, t) {
|
|
4805
4808
|
this.class = e, this.value = t;
|
|
4806
4809
|
}
|
|
4807
4810
|
static fromDataObj(e) {
|
|
4808
|
-
return new
|
|
4811
|
+
return new je(e, e.k == "" ? [] : e.k.split(";"));
|
|
4809
4812
|
}
|
|
4810
4813
|
static fromString(e) {
|
|
4811
|
-
return new
|
|
4814
|
+
return new je(
|
|
4812
4815
|
{
|
|
4813
4816
|
t: "",
|
|
4814
4817
|
p: ""
|
|
@@ -4823,7 +4826,7 @@ class _e {
|
|
|
4823
4826
|
return this.value.join(";");
|
|
4824
4827
|
}
|
|
4825
4828
|
}
|
|
4826
|
-
const
|
|
4829
|
+
const Ie = (r, e, t) => ({
|
|
4827
4830
|
obj: {
|
|
4828
4831
|
t: r.obj.t,
|
|
4829
4832
|
p: r.obj.p,
|
|
@@ -4833,20 +4836,20 @@ const Pe = (r, e, t) => ({
|
|
|
4833
4836
|
shape: r.shape,
|
|
4834
4837
|
fun: r.fun
|
|
4835
4838
|
}), Er = (r) => {
|
|
4836
|
-
const e =
|
|
4839
|
+
const e = je.fromDataObj(r.obj), t = r.decode ? je.fromString(r.decode).getValue() : [];
|
|
4837
4840
|
return e.getValue().map((n, s) => ({
|
|
4838
4841
|
bindValue: n,
|
|
4839
4842
|
optionalDisplayValue: t.length >= s ? t[s] : ""
|
|
4840
4843
|
}));
|
|
4841
4844
|
}, ws = (r, e) => {
|
|
4842
|
-
const t = new
|
|
4845
|
+
const t = new je(
|
|
4843
4846
|
r.obj,
|
|
4844
4847
|
e.map((s) => s.bindValue)
|
|
4845
|
-
).getLegacyValue(), n = new
|
|
4848
|
+
).getLegacyValue(), n = new je(
|
|
4846
4849
|
r.obj,
|
|
4847
4850
|
e.map((s) => s.optionalDisplayValue ? s.optionalDisplayValue : "")
|
|
4848
4851
|
).getLegacyValue();
|
|
4849
|
-
return
|
|
4852
|
+
return Ie(r, t, n);
|
|
4850
4853
|
}, Ss = (r) => {
|
|
4851
4854
|
switch (r) {
|
|
4852
4855
|
case "CodeOnly":
|
|
@@ -4870,49 +4873,49 @@ const Pe = (r, e, t) => ({
|
|
|
4870
4873
|
onEnter: o,
|
|
4871
4874
|
...l
|
|
4872
4875
|
}) => {
|
|
4873
|
-
const { getCurrentLanguage: c } =
|
|
4876
|
+
const { getCurrentLanguage: c } = $e(), d = le(null), u = c(), { groupingChar: f, decimalChar: g } = Vr(
|
|
4874
4877
|
() => rs(u, s),
|
|
4875
4878
|
[u, s]
|
|
4876
|
-
), p =
|
|
4877
|
-
(
|
|
4878
|
-
minimumFractionDigits:
|
|
4879
|
-
maximumFractionDigits:
|
|
4879
|
+
), p = ue(
|
|
4880
|
+
(O, P) => new Intl.NumberFormat(u, {
|
|
4881
|
+
minimumFractionDigits: P,
|
|
4882
|
+
maximumFractionDigits: P,
|
|
4880
4883
|
useGrouping: !0
|
|
4881
|
-
}).format(
|
|
4884
|
+
}).format(O),
|
|
4882
4885
|
[u]
|
|
4883
|
-
), b =
|
|
4884
|
-
a != null ? p(a,
|
|
4885
|
-
),
|
|
4886
|
+
), b = ue(as, [f, g]), E = ue(ts, [r, e]), T = a != null && a.toString().includes(".") ? a.toString().split(".")[1].length : 0, [v, C] = G(T), [w, y] = G(
|
|
4887
|
+
a != null ? p(a, v) : ""
|
|
4888
|
+
), _ = le(a ?? null);
|
|
4886
4889
|
re(() => {
|
|
4887
4890
|
if (a == null) {
|
|
4888
|
-
y(""),
|
|
4891
|
+
y(""), _.current = null;
|
|
4889
4892
|
return;
|
|
4890
4893
|
}
|
|
4891
|
-
const
|
|
4892
|
-
|
|
4894
|
+
const O = a.toString().includes(".") ? a.toString().split(".")[1].length : 0, P = O === 0 ? v : O;
|
|
4895
|
+
P !== v && C(P), y(p(a, P)), _.current = a;
|
|
4893
4896
|
}, [a, p]);
|
|
4894
|
-
const S =
|
|
4895
|
-
(
|
|
4896
|
-
if (
|
|
4897
|
-
y(""),
|
|
4897
|
+
const S = ue(
|
|
4898
|
+
(O, P = !1) => {
|
|
4899
|
+
if (O.trim() === "") {
|
|
4900
|
+
y(""), _.current = null, i?.(void 0, ""), P && o?.(void 0);
|
|
4898
4901
|
return;
|
|
4899
4902
|
}
|
|
4900
|
-
const N = b(
|
|
4903
|
+
const N = b(O, f, g);
|
|
4901
4904
|
if (isNaN(N))
|
|
4902
|
-
if (
|
|
4903
|
-
const B = p(
|
|
4905
|
+
if (_.current != null) {
|
|
4906
|
+
const B = p(_.current, v);
|
|
4904
4907
|
y(B);
|
|
4905
4908
|
} else
|
|
4906
4909
|
y("");
|
|
4907
4910
|
else {
|
|
4908
|
-
const B = E(N, r, e),
|
|
4909
|
-
|
|
4911
|
+
const B = E(N, r, e), H = ss(
|
|
4912
|
+
O,
|
|
4910
4913
|
f,
|
|
4911
4914
|
g
|
|
4912
4915
|
);
|
|
4913
|
-
C(
|
|
4914
|
-
const q = p(B,
|
|
4915
|
-
y(q),
|
|
4916
|
+
C(H);
|
|
4917
|
+
const q = p(B, H);
|
|
4918
|
+
y(q), _.current = B, i?.(B, q), P && o?.(B);
|
|
4916
4919
|
}
|
|
4917
4920
|
},
|
|
4918
4921
|
[
|
|
@@ -4925,31 +4928,31 @@ const Pe = (r, e, t) => ({
|
|
|
4925
4928
|
p,
|
|
4926
4929
|
i,
|
|
4927
4930
|
o,
|
|
4928
|
-
|
|
4931
|
+
v
|
|
4929
4932
|
]
|
|
4930
|
-
), k = (
|
|
4931
|
-
if (
|
|
4932
|
-
|
|
4933
|
+
), k = (O) => y(O), L = () => S(w), I = (O) => {
|
|
4934
|
+
if (O.key === "Enter") {
|
|
4935
|
+
O.preventDefault(), S(w, !0);
|
|
4933
4936
|
return;
|
|
4934
4937
|
}
|
|
4935
|
-
if (
|
|
4936
|
-
|
|
4937
|
-
const
|
|
4938
|
-
S(p(B,
|
|
4938
|
+
if (O.key === "ArrowUp" || O.key === "ArrowDown") {
|
|
4939
|
+
O.preventDefault();
|
|
4940
|
+
const P = O.key === "ArrowUp" ? 1 : -1, N = _.current ?? 0, B = E(N + P * t, r, e);
|
|
4941
|
+
S(p(B, v));
|
|
4939
4942
|
}
|
|
4940
|
-
},
|
|
4941
|
-
if (!
|
|
4942
|
-
|
|
4943
|
-
const
|
|
4944
|
-
S(p(B,
|
|
4943
|
+
}, R = (O) => {
|
|
4944
|
+
if (!O.currentTarget.contains(document.activeElement)) return;
|
|
4945
|
+
O.preventDefault();
|
|
4946
|
+
const P = O.deltaY < 0 ? 1 : -1, N = _.current ?? 0, B = E(N + P * t, r, e);
|
|
4947
|
+
S(p(B, v));
|
|
4945
4948
|
};
|
|
4946
|
-
return /* @__PURE__ */ m.jsx("div", { ref: d, "data-component": "input-number", onWheel:
|
|
4947
|
-
|
|
4949
|
+
return /* @__PURE__ */ m.jsx("div", { ref: d, "data-component": "input-number", onWheel: R, children: /* @__PURE__ */ m.jsx(
|
|
4950
|
+
De,
|
|
4948
4951
|
{
|
|
4949
4952
|
...l,
|
|
4950
4953
|
"aria-valuemin": r,
|
|
4951
4954
|
"aria-valuemax": e,
|
|
4952
|
-
"aria-valuenow":
|
|
4955
|
+
"aria-valuenow": _.current ?? void 0,
|
|
4953
4956
|
bindValue: w,
|
|
4954
4957
|
inputType: "text",
|
|
4955
4958
|
inputMode: n,
|
|
@@ -4962,7 +4965,7 @@ const Pe = (r, e, t) => ({
|
|
|
4962
4965
|
}
|
|
4963
4966
|
) });
|
|
4964
4967
|
};
|
|
4965
|
-
class
|
|
4968
|
+
class He {
|
|
4966
4969
|
class;
|
|
4967
4970
|
value;
|
|
4968
4971
|
decimalSeparator;
|
|
@@ -4985,9 +4988,9 @@ class Ge {
|
|
|
4985
4988
|
static fromDataObj(e, t) {
|
|
4986
4989
|
const n = t === "." ? "," : ".";
|
|
4987
4990
|
if (e.k == "")
|
|
4988
|
-
return new
|
|
4991
|
+
return new He(e, void 0, t);
|
|
4989
4992
|
const s = e.k.replace(new RegExp(`\\${n}`, "g"), ""), a = parseFloat(s.replace(t, "."));
|
|
4990
|
-
return new
|
|
4993
|
+
return new He(e, a, t);
|
|
4991
4994
|
}
|
|
4992
4995
|
/**
|
|
4993
4996
|
* Gets the value in legacy format (with configured decimal separator)
|
|
@@ -5022,7 +5025,7 @@ const Ts = ({
|
|
|
5022
5025
|
rows: g = 10,
|
|
5023
5026
|
cols: p = 35
|
|
5024
5027
|
}) => {
|
|
5025
|
-
const b =
|
|
5028
|
+
const b = Ce(), E = `${b}-helper`, T = d ? "danger" : s, v = c || !!d, C = (y) => {
|
|
5026
5029
|
t?.(y.target.value);
|
|
5027
5030
|
}, w = {
|
|
5028
5031
|
wrapper: "smp-textarea-wrapper",
|
|
@@ -5044,12 +5047,12 @@ const Ts = ({
|
|
|
5044
5047
|
onKeyDown: f,
|
|
5045
5048
|
"aria-label": o ? void 0 : l,
|
|
5046
5049
|
"aria-labelledby": o ? b : void 0,
|
|
5047
|
-
"aria-describedby":
|
|
5050
|
+
"aria-describedby": v ? E : void 0,
|
|
5048
5051
|
rows: g,
|
|
5049
5052
|
cols: p
|
|
5050
5053
|
}
|
|
5051
5054
|
),
|
|
5052
|
-
|
|
5055
|
+
v && /* @__PURE__ */ m.jsx(
|
|
5053
5056
|
$r,
|
|
5054
5057
|
{
|
|
5055
5058
|
id: E,
|
|
@@ -5061,7 +5064,7 @@ const Ts = ({
|
|
|
5061
5064
|
] });
|
|
5062
5065
|
};
|
|
5063
5066
|
var $t = /* @__PURE__ */ ((r) => (r.PAGE_DIRECTION = "pageDirection", r.LINE_DIRECTION = "lineDirection", r))($t || {});
|
|
5064
|
-
const
|
|
5067
|
+
const We = {
|
|
5065
5068
|
"smp-radio": "_smp-radio_1wj31_1",
|
|
5066
5069
|
"smp-radio-options-container": "_smp-radio-options-container_1wj31_10",
|
|
5067
5070
|
"smp-radio-horizontal": "_smp-radio-horizontal_1wj31_16",
|
|
@@ -5077,21 +5080,21 @@ const Ye = {
|
|
|
5077
5080
|
label: i,
|
|
5078
5081
|
...o
|
|
5079
5082
|
}) => {
|
|
5080
|
-
const [l, c] =
|
|
5083
|
+
const [l, c] = G(n), d = Ce();
|
|
5081
5084
|
re(() => {
|
|
5082
5085
|
!l && s && a && s(a, void 0).then((b) => c(b)).catch((b) => {
|
|
5083
5086
|
console.error("Error during loading options (radio)", b);
|
|
5084
5087
|
});
|
|
5085
5088
|
}, [l, s, a]);
|
|
5086
5089
|
const u = {
|
|
5087
|
-
container:
|
|
5088
|
-
optionsContainer: `${
|
|
5089
|
-
option: `${
|
|
5090
|
+
container: We["smp-radio"],
|
|
5091
|
+
optionsContainer: `${We["smp-radio-options-container"]} ${t == $t.LINE_DIRECTION ? We["smp-radio-horizontal"] : ""}`,
|
|
5092
|
+
option: `${We["smp-radio-element"]} ${r ? We["smp-radio-disabled"] : ""}`
|
|
5090
5093
|
}, f = () => {
|
|
5091
5094
|
r || o.onBlur?.();
|
|
5092
5095
|
}, g = (b) => {
|
|
5093
5096
|
r || o.onChange?.(b.id, b.label);
|
|
5094
|
-
}, p =
|
|
5097
|
+
}, p = Ce();
|
|
5095
5098
|
return /* @__PURE__ */ m.jsxs("div", { "smp-id": "radio-container", className: u.container, id: d, children: [
|
|
5096
5099
|
i && /* @__PURE__ */ m.jsx(Re, { label: i, disabled: r, htmlFor: d }),
|
|
5097
5100
|
/* @__PURE__ */ m.jsx("div", { className: u.optionsContainer, children: l?.map((b, E) => /* @__PURE__ */ m.jsxs("label", { className: u.option, children: [
|
|
@@ -5111,7 +5114,7 @@ const Ye = {
|
|
|
5111
5114
|
Oe,
|
|
5112
5115
|
{
|
|
5113
5116
|
variant: "body",
|
|
5114
|
-
bindValue:
|
|
5117
|
+
bindValue: _e(
|
|
5115
5118
|
b.id,
|
|
5116
5119
|
b.label,
|
|
5117
5120
|
e
|
|
@@ -5178,28 +5181,28 @@ const Ye = {
|
|
|
5178
5181
|
}, _s = (r) => {
|
|
5179
5182
|
const e = r.split(":").map((t) => parseInt(t, 10));
|
|
5180
5183
|
return [e[0] || 0, e[1] || 0, e[2] || 0];
|
|
5181
|
-
},
|
|
5184
|
+
}, js = (r, e, t) => {
|
|
5182
5185
|
const n = r != null && !isNaN(r) ? r.toString().padStart(2, "0") : "", s = e != null && !isNaN(e) ? e.toString().padStart(2, "0") : "", a = t != null && !isNaN(t) ? t.toString().padStart(2, "0") : "";
|
|
5183
5186
|
return n && s ? `${n}:${s}:${a}` : s ? `${s}:${a}` : a;
|
|
5184
|
-
},
|
|
5187
|
+
}, Rs = ({
|
|
5185
5188
|
bindValue: r,
|
|
5186
5189
|
placeholder: e = "HH:MM:SS",
|
|
5187
5190
|
onChange: t,
|
|
5188
5191
|
isEditable: n = !0,
|
|
5189
5192
|
...s
|
|
5190
5193
|
}) => {
|
|
5191
|
-
const a = le(null), [i, o] =
|
|
5194
|
+
const a = le(null), [i, o] = G(!1), [l, c] = G(r || ""), [d, u] = G(""), { anchorRef: f, targetRef: g } = pt({
|
|
5192
5195
|
position: "bottom",
|
|
5193
5196
|
enabled: i
|
|
5194
|
-
}), p =
|
|
5197
|
+
}), p = ue(() => {
|
|
5195
5198
|
o(!1), a?.current?.focus();
|
|
5196
5199
|
}, []);
|
|
5197
5200
|
mt([g, f], i, () => o(!1)), It(i, g), re(() => {
|
|
5198
|
-
const y = r || "",
|
|
5199
|
-
c(y), u(
|
|
5201
|
+
const y = r || "", _ = Tr(y) ? y : r || "";
|
|
5202
|
+
c(y), u(_);
|
|
5200
5203
|
}, [r]), re(() => {
|
|
5201
|
-
const y = (
|
|
5202
|
-
|
|
5204
|
+
const y = (_) => {
|
|
5205
|
+
_.key === "Escape" && o(!1);
|
|
5203
5206
|
};
|
|
5204
5207
|
return i && document.addEventListener("keydown", y), () => {
|
|
5205
5208
|
document.removeEventListener("keydown", y);
|
|
@@ -5209,10 +5212,10 @@ const Ye = {
|
|
|
5209
5212
|
n && o((y) => !y);
|
|
5210
5213
|
}, E = (y) => {
|
|
5211
5214
|
u(y);
|
|
5212
|
-
}, T = (y,
|
|
5213
|
-
const k =
|
|
5215
|
+
}, T = (y, _, S) => {
|
|
5216
|
+
const k = js(y, _, S);
|
|
5214
5217
|
c(k), u(k), t?.(k), p();
|
|
5215
|
-
},
|
|
5218
|
+
}, v = () => {
|
|
5216
5219
|
w(d);
|
|
5217
5220
|
}, C = (y) => {
|
|
5218
5221
|
y.key === "Enter" && (y.preventDefault(), w(d));
|
|
@@ -5225,13 +5228,13 @@ const Ye = {
|
|
|
5225
5228
|
};
|
|
5226
5229
|
return /* @__PURE__ */ m.jsxs("div", { "data-component": "time-picker", children: [
|
|
5227
5230
|
/* @__PURE__ */ m.jsx(
|
|
5228
|
-
|
|
5231
|
+
Pt,
|
|
5229
5232
|
{
|
|
5230
5233
|
...s,
|
|
5231
5234
|
bindValue: d,
|
|
5232
5235
|
placeholder: e,
|
|
5233
5236
|
onChange: E,
|
|
5234
|
-
onBlur:
|
|
5237
|
+
onBlur: v,
|
|
5235
5238
|
onKeyDown: C,
|
|
5236
5239
|
shapeIcon: "clock",
|
|
5237
5240
|
onShapeIconClick: b,
|
|
@@ -5292,7 +5295,48 @@ const Cr = /* @__PURE__ */ new Map([
|
|
|
5292
5295
|
]
|
|
5293
5296
|
]), $s = {
|
|
5294
5297
|
"smp-cell-wrapper": "_smp-cell-wrapper_mdlkz_1"
|
|
5295
|
-
},
|
|
5298
|
+
}, ce = (r) => r == null ? !1 : typeof r == "string" ? r.toLocaleLowerCase() == "yes" || r.toLocaleLowerCase() == "true" : r, ks = ({
|
|
5299
|
+
bindValue: r,
|
|
5300
|
+
disabled: e = !1,
|
|
5301
|
+
displayMode: t = "DescOnly",
|
|
5302
|
+
BtoVer: n = "false",
|
|
5303
|
+
options: s,
|
|
5304
|
+
onOptionsRequest: a,
|
|
5305
|
+
fun: i,
|
|
5306
|
+
...o
|
|
5307
|
+
}) => {
|
|
5308
|
+
const [l, c] = G(s), d = (f) => {
|
|
5309
|
+
e || o.onChange?.(f.id, f.label);
|
|
5310
|
+
};
|
|
5311
|
+
re(() => {
|
|
5312
|
+
!l && a && i && a(i, void 0).then((f) => c(f)).catch((f) => {
|
|
5313
|
+
console.error("Error during loading options (button group)", f);
|
|
5314
|
+
});
|
|
5315
|
+
}, [l, a, i]);
|
|
5316
|
+
const u = {
|
|
5317
|
+
container: `smp-button-group-container ${ce(n) ? "smp-button-group-vertical" : ""}`
|
|
5318
|
+
};
|
|
5319
|
+
return /* @__PURE__ */ m.jsx("div", { "smp-id": "buttonGroup-container", className: u.container, children: l?.map((f) => /* @__PURE__ */ m.jsx(
|
|
5320
|
+
we,
|
|
5321
|
+
{
|
|
5322
|
+
appearance: "raised",
|
|
5323
|
+
variant: "base",
|
|
5324
|
+
active: r === f.id,
|
|
5325
|
+
onClick: () => d(f),
|
|
5326
|
+
bindValue: f.id,
|
|
5327
|
+
optionalDisplayValue: _e(
|
|
5328
|
+
f.id,
|
|
5329
|
+
f.label,
|
|
5330
|
+
t
|
|
5331
|
+
),
|
|
5332
|
+
disabled: e,
|
|
5333
|
+
justify: ce(n) ? "start" : "center",
|
|
5334
|
+
icon: f.icon,
|
|
5335
|
+
buttonExt: `oneButton-${ce(n) ? "vertical" : "horizontal"}`
|
|
5336
|
+
},
|
|
5337
|
+
f.id
|
|
5338
|
+
)) });
|
|
5339
|
+
}, Te = ({
|
|
5296
5340
|
decode: r,
|
|
5297
5341
|
shape: e,
|
|
5298
5342
|
obj: t,
|
|
@@ -5312,14 +5356,14 @@ const Cr = /* @__PURE__ */ new Map([
|
|
|
5312
5356
|
isEditable: E,
|
|
5313
5357
|
dSep: T = "."
|
|
5314
5358
|
}) => {
|
|
5315
|
-
const
|
|
5359
|
+
const v = {
|
|
5316
5360
|
obj: t,
|
|
5317
5361
|
shape: e,
|
|
5318
5362
|
decode: r,
|
|
5319
5363
|
icon: s,
|
|
5320
5364
|
fun: a,
|
|
5321
5365
|
data: n
|
|
5322
|
-
}, C =
|
|
5366
|
+
}, C = v.data && v.data.size && v.data.size >= 256 ? "MEM" : e, w = {
|
|
5323
5367
|
onBlur: g,
|
|
5324
5368
|
onOptionsRequest: p,
|
|
5325
5369
|
fun: a,
|
|
@@ -5327,191 +5371,201 @@ const Cr = /* @__PURE__ */ new Map([
|
|
|
5327
5371
|
tooltip: l,
|
|
5328
5372
|
label: o,
|
|
5329
5373
|
isEditable: E,
|
|
5330
|
-
size:
|
|
5374
|
+
size: v.data && v.data.size ? v.data.size : v.data?.displayMode && Ss(v.data.displayMode || "CodeOnly"),
|
|
5331
5375
|
...n
|
|
5332
|
-
}, y = (
|
|
5333
|
-
|
|
5334
|
-
new
|
|
5335
|
-
), S = (
|
|
5376
|
+
}, y = (R, O, P) => yn(t) ? Ie(R, new lt(t, O).getLegacyValue()) : bn(t) ? Ie(R, new ft(t, O).getLegacyValue()) : Ie(R, O, P), _ = (R, O) => Ie(
|
|
5377
|
+
R,
|
|
5378
|
+
new He(t, O, T).getLegacyValue()
|
|
5379
|
+
), S = (R) => Ie(v, new it(t, R).getLegacyValue()), k = (R) => ws(v, R), L = () => {
|
|
5336
5380
|
switch (C) {
|
|
5337
5381
|
case te.AUTOCOMPLETE: {
|
|
5338
|
-
const
|
|
5382
|
+
const R = {
|
|
5339
5383
|
...w,
|
|
5340
5384
|
bindValue: t.k,
|
|
5341
5385
|
optionalDisplayValue: r,
|
|
5342
|
-
onChange: (
|
|
5343
|
-
d?.(y(
|
|
5386
|
+
onChange: (O, P) => {
|
|
5387
|
+
d?.(y(v, O, P));
|
|
5344
5388
|
}
|
|
5345
5389
|
};
|
|
5346
|
-
return /* @__PURE__ */ m.jsx(Ir, { ...
|
|
5390
|
+
return /* @__PURE__ */ m.jsx(Ir, { ...R });
|
|
5347
5391
|
}
|
|
5348
5392
|
case te.BUTTON: {
|
|
5349
|
-
const
|
|
5393
|
+
const R = {
|
|
5350
5394
|
...w,
|
|
5351
5395
|
bindValue: t.k,
|
|
5352
5396
|
optionalDisplayValue: n?.label && typeof n.label == "string" ? n.label : void 0,
|
|
5353
5397
|
title: r,
|
|
5354
5398
|
onClick: () => {
|
|
5355
|
-
u?.(y(
|
|
5399
|
+
u?.(y(v, t.k));
|
|
5356
5400
|
}
|
|
5357
5401
|
};
|
|
5358
|
-
return /* @__PURE__ */ m.jsx(
|
|
5402
|
+
return /* @__PURE__ */ m.jsx(we, { ...R });
|
|
5359
5403
|
}
|
|
5360
5404
|
case te.BUTTON_LIST: {
|
|
5361
|
-
const
|
|
5405
|
+
const R = {
|
|
5362
5406
|
...w,
|
|
5363
5407
|
options: c,
|
|
5364
|
-
onClick: (
|
|
5365
|
-
const N = { ...
|
|
5366
|
-
u?.(y(N,
|
|
5408
|
+
onClick: (O, P) => {
|
|
5409
|
+
const N = { ...v, fun: P };
|
|
5410
|
+
u?.(y(N, O));
|
|
5367
5411
|
}
|
|
5368
5412
|
};
|
|
5369
|
-
return /* @__PURE__ */ m.jsx(us, { ...
|
|
5413
|
+
return /* @__PURE__ */ m.jsx(us, { ...R });
|
|
5370
5414
|
}
|
|
5371
5415
|
case te.CHIP: {
|
|
5372
|
-
const
|
|
5416
|
+
const R = {
|
|
5373
5417
|
...w,
|
|
5374
|
-
elements: Er(
|
|
5418
|
+
elements: Er(v)
|
|
5375
5419
|
};
|
|
5376
|
-
return /* @__PURE__ */ m.jsx(
|
|
5420
|
+
return /* @__PURE__ */ m.jsx(At, { ...R });
|
|
5377
5421
|
}
|
|
5378
5422
|
case te.CHECKBOX:
|
|
5379
5423
|
case te.SWITCH: {
|
|
5380
|
-
const
|
|
5424
|
+
const R = e === te.SWITCH, O = {
|
|
5381
5425
|
...w,
|
|
5382
5426
|
bindValue: it.fromDataObj(t).getValue(),
|
|
5383
5427
|
optionalDisplayValue: r,
|
|
5384
|
-
onChange: (
|
|
5385
|
-
d?.(S(
|
|
5428
|
+
onChange: (P) => {
|
|
5429
|
+
d?.(S(P));
|
|
5386
5430
|
},
|
|
5387
|
-
...
|
|
5431
|
+
...R && { variant: "switch" }
|
|
5388
5432
|
};
|
|
5389
|
-
return /* @__PURE__ */ m.jsx(fs, { ...
|
|
5433
|
+
return /* @__PURE__ */ m.jsx(fs, { ...O });
|
|
5390
5434
|
}
|
|
5391
5435
|
case te.COMBOBOX: {
|
|
5392
|
-
const
|
|
5436
|
+
const R = {
|
|
5393
5437
|
...w,
|
|
5394
5438
|
bindValue: t.k,
|
|
5395
5439
|
optionalDisplayValue: r,
|
|
5396
|
-
onChange: (
|
|
5397
|
-
d?.(y(
|
|
5440
|
+
onChange: (O, P) => {
|
|
5441
|
+
d?.(y(v, O, P));
|
|
5398
5442
|
}
|
|
5399
5443
|
};
|
|
5400
|
-
return /* @__PURE__ */ m.jsx(ps, { ...
|
|
5444
|
+
return /* @__PURE__ */ m.jsx(ps, { ...R });
|
|
5401
5445
|
}
|
|
5402
5446
|
case te.DATE: {
|
|
5403
|
-
const
|
|
5447
|
+
const R = {
|
|
5404
5448
|
...w,
|
|
5405
5449
|
bindValue: lt.fromDataObj(t).getValue(),
|
|
5406
|
-
onChange: (
|
|
5407
|
-
d?.(y(
|
|
5450
|
+
onChange: (O) => {
|
|
5451
|
+
d?.(y(v, O));
|
|
5408
5452
|
}
|
|
5409
5453
|
};
|
|
5410
|
-
return /* @__PURE__ */ m.jsx(gs, { ...
|
|
5454
|
+
return /* @__PURE__ */ m.jsx(gs, { ...R });
|
|
5411
5455
|
}
|
|
5412
5456
|
case te.ICON:
|
|
5413
5457
|
case te.IMAGE: {
|
|
5414
|
-
const
|
|
5458
|
+
const R = {
|
|
5415
5459
|
...w,
|
|
5416
5460
|
icon: s,
|
|
5417
5461
|
placeholderIcon: i,
|
|
5418
5462
|
isInteractable: !!w.fun,
|
|
5419
5463
|
onClick: () => {
|
|
5420
|
-
u?.(y(
|
|
5464
|
+
u?.(y(v, t.k));
|
|
5421
5465
|
}
|
|
5422
5466
|
};
|
|
5423
|
-
return /* @__PURE__ */ m.jsx(
|
|
5467
|
+
return /* @__PURE__ */ m.jsx(de, { ...R });
|
|
5424
5468
|
}
|
|
5425
5469
|
case te.INPUT_NUMBER: {
|
|
5426
|
-
const
|
|
5470
|
+
const R = {
|
|
5427
5471
|
...w,
|
|
5428
|
-
bindValue:
|
|
5429
|
-
onChange: (
|
|
5430
|
-
d?.(
|
|
5472
|
+
bindValue: He.fromDataObj(t, T).getValue(),
|
|
5473
|
+
onChange: (O) => {
|
|
5474
|
+
d?.(_(v, O));
|
|
5431
5475
|
}
|
|
5432
5476
|
};
|
|
5433
|
-
return /* @__PURE__ */ m.jsx(Es, { ...
|
|
5477
|
+
return /* @__PURE__ */ m.jsx(Es, { ...R });
|
|
5434
5478
|
}
|
|
5435
5479
|
case te.EDITOR:
|
|
5436
5480
|
case te.MEMO: {
|
|
5437
|
-
const
|
|
5481
|
+
const R = {
|
|
5438
5482
|
...w,
|
|
5439
5483
|
bindValue: t.k,
|
|
5440
5484
|
optionalDisplayValue: r,
|
|
5441
|
-
onChange: (
|
|
5442
|
-
d?.(y(
|
|
5485
|
+
onChange: (O) => {
|
|
5486
|
+
d?.(y(v, O));
|
|
5443
5487
|
}
|
|
5444
5488
|
};
|
|
5445
|
-
return /* @__PURE__ */ m.jsx(Ts, { ...
|
|
5489
|
+
return /* @__PURE__ */ m.jsx(Ts, { ...R });
|
|
5446
5490
|
}
|
|
5447
5491
|
case te.MULTI_AUTOCOMPLETE: {
|
|
5448
|
-
const
|
|
5492
|
+
const R = {
|
|
5449
5493
|
...w,
|
|
5450
|
-
elements: Er(
|
|
5451
|
-
onChange: (
|
|
5452
|
-
d?.(k(
|
|
5494
|
+
elements: Er(v),
|
|
5495
|
+
onChange: (O) => {
|
|
5496
|
+
d?.(k(O));
|
|
5453
5497
|
}
|
|
5454
5498
|
};
|
|
5455
|
-
return /* @__PURE__ */ m.jsx(ys, { ...
|
|
5499
|
+
return /* @__PURE__ */ m.jsx(ys, { ...R });
|
|
5456
5500
|
}
|
|
5457
5501
|
case te.PASSWORD: {
|
|
5458
|
-
const
|
|
5502
|
+
const R = {
|
|
5459
5503
|
...w,
|
|
5460
5504
|
bindValue: t.k,
|
|
5461
|
-
onChange: (
|
|
5462
|
-
d?.(y(
|
|
5505
|
+
onChange: (O) => {
|
|
5506
|
+
d?.(y(v, O));
|
|
5463
5507
|
}
|
|
5464
5508
|
};
|
|
5465
|
-
return /* @__PURE__ */ m.jsx(bs, { ...
|
|
5509
|
+
return /* @__PURE__ */ m.jsx(bs, { ...R });
|
|
5466
5510
|
}
|
|
5467
5511
|
case te.RADIO: {
|
|
5468
|
-
const
|
|
5512
|
+
const R = {
|
|
5469
5513
|
...w,
|
|
5470
5514
|
bindValue: t.k,
|
|
5471
|
-
onChange: (
|
|
5472
|
-
d?.(y(
|
|
5515
|
+
onChange: (O, P) => {
|
|
5516
|
+
d?.(y(v, O, P));
|
|
5473
5517
|
}
|
|
5474
5518
|
};
|
|
5475
|
-
return /* @__PURE__ */ m.jsx(Cs, { ...
|
|
5519
|
+
return /* @__PURE__ */ m.jsx(Cs, { ...R });
|
|
5476
5520
|
}
|
|
5477
5521
|
case te.SPOTLIGHT: {
|
|
5478
|
-
const
|
|
5522
|
+
const R = {
|
|
5479
5523
|
...w,
|
|
5480
5524
|
bindValue: t.k,
|
|
5481
|
-
onEnter: (
|
|
5482
|
-
f?.(y(
|
|
5525
|
+
onEnter: (O) => {
|
|
5526
|
+
f?.(y(v, O));
|
|
5483
5527
|
}
|
|
5484
5528
|
};
|
|
5485
|
-
return /* @__PURE__ */ m.jsx(vs, { ...
|
|
5529
|
+
return /* @__PURE__ */ m.jsx(vs, { ...R });
|
|
5486
5530
|
}
|
|
5487
5531
|
case te.TEXT_FIELD: {
|
|
5488
|
-
const
|
|
5532
|
+
const R = {
|
|
5489
5533
|
...w,
|
|
5490
5534
|
bindValue: t.k,
|
|
5491
5535
|
optionalDisplayValue: r,
|
|
5492
|
-
onChange: (
|
|
5493
|
-
d?.(y(
|
|
5536
|
+
onChange: (O) => {
|
|
5537
|
+
d?.(y(v, O));
|
|
5494
5538
|
}
|
|
5495
5539
|
};
|
|
5496
|
-
return /* @__PURE__ */ m.jsx(
|
|
5540
|
+
return /* @__PURE__ */ m.jsx(De, { ...R });
|
|
5541
|
+
}
|
|
5542
|
+
case te.BUTTON_GROUP: {
|
|
5543
|
+
const R = {
|
|
5544
|
+
...w,
|
|
5545
|
+
bindValue: t.k,
|
|
5546
|
+
onChange: (O) => {
|
|
5547
|
+
d?.(y(v, O));
|
|
5548
|
+
}
|
|
5549
|
+
};
|
|
5550
|
+
return /* @__PURE__ */ m.jsx(ks, { ...R });
|
|
5497
5551
|
}
|
|
5498
5552
|
case te.TIME: {
|
|
5499
|
-
const
|
|
5553
|
+
const R = {
|
|
5500
5554
|
...w,
|
|
5501
5555
|
bindValue: ft.fromDataObj(t).getValue(),
|
|
5502
|
-
onChange: (
|
|
5503
|
-
d?.(y(
|
|
5556
|
+
onChange: (O) => {
|
|
5557
|
+
d?.(y(v, O));
|
|
5504
5558
|
}
|
|
5505
5559
|
};
|
|
5506
|
-
return /* @__PURE__ */ m.jsx(
|
|
5560
|
+
return /* @__PURE__ */ m.jsx(Rs, { ...R });
|
|
5507
5561
|
}
|
|
5508
5562
|
default: {
|
|
5509
|
-
const
|
|
5563
|
+
const R = {
|
|
5510
5564
|
...w,
|
|
5511
5565
|
bindValue: t.k,
|
|
5512
5566
|
optionalDisplayValue: r
|
|
5513
5567
|
};
|
|
5514
|
-
return /* @__PURE__ */ m.jsx(xs, { ...
|
|
5568
|
+
return /* @__PURE__ */ m.jsx(xs, { ...R });
|
|
5515
5569
|
}
|
|
5516
5570
|
}
|
|
5517
5571
|
}, I = {
|
|
@@ -5521,19 +5575,19 @@ const Cr = /* @__PURE__ */ new Map([
|
|
|
5521
5575
|
"span",
|
|
5522
5576
|
{
|
|
5523
5577
|
className: I.wrapper,
|
|
5524
|
-
onContextMenu: (
|
|
5525
|
-
b && l && (
|
|
5578
|
+
onContextMenu: (R) => {
|
|
5579
|
+
b && l && (R.preventDefault(), b(v, R.currentTarget));
|
|
5526
5580
|
},
|
|
5527
5581
|
children: L()
|
|
5528
5582
|
}
|
|
5529
5583
|
);
|
|
5530
|
-
},
|
|
5584
|
+
}, ta = ({
|
|
5531
5585
|
data: r,
|
|
5532
5586
|
onClick: e,
|
|
5533
5587
|
onEnter: t,
|
|
5534
5588
|
onContextMenu: n
|
|
5535
5589
|
}) => {
|
|
5536
|
-
const [s, a] =
|
|
5590
|
+
const [s, a] = G(), i = ue(
|
|
5537
5591
|
(o) => {
|
|
5538
5592
|
if (!o.rows?.length || !o.columns?.length)
|
|
5539
5593
|
return {};
|
|
@@ -5576,13 +5630,13 @@ const Cr = /* @__PURE__ */ new Map([
|
|
|
5576
5630
|
);
|
|
5577
5631
|
return re(() => {
|
|
5578
5632
|
r && a(i(r));
|
|
5579
|
-
}, [r, i]), !r?.rows?.length || !r.columns?.length ? null : s && /* @__PURE__ */ m.jsx("header", { className: "smp-appbar", "aria-label": "App Bar", children: /* @__PURE__ */ m.jsx(ot, { layout: r.rows[0].layout, children: Object.values(s).map((o) => /* @__PURE__ */ m.jsx(
|
|
5580
|
-
},
|
|
5633
|
+
}, [r, i]), !r?.rows?.length || !r.columns?.length ? null : s && /* @__PURE__ */ m.jsx("header", { className: "smp-appbar", "aria-label": "App Bar", children: /* @__PURE__ */ m.jsx(ot, { layout: r.rows[0].layout, children: Object.values(s).map((o) => /* @__PURE__ */ m.jsx(Te, { ...o })) }) });
|
|
5634
|
+
}, Ls = (r) => r.children?.length ? r.children.map((e) => ({
|
|
5581
5635
|
id: e.obj?.k ?? "",
|
|
5582
5636
|
label: e.decode ?? e.value ?? e.obj?.k ?? "",
|
|
5583
5637
|
fun: e.fun,
|
|
5584
5638
|
icon: e.icon
|
|
5585
|
-
})) : [],
|
|
5639
|
+
})) : [], ra = ({
|
|
5586
5640
|
data: r,
|
|
5587
5641
|
logo: e,
|
|
5588
5642
|
open: t,
|
|
@@ -5594,22 +5648,22 @@ const Cr = /* @__PURE__ */ new Map([
|
|
|
5594
5648
|
loadOptions: l,
|
|
5595
5649
|
onContextMenu: c
|
|
5596
5650
|
}) => {
|
|
5597
|
-
const [d, u] =
|
|
5651
|
+
const [d, u] = G(), [f, g] = G(t ?? !0), p = le(null), b = s.trim() ? s : "100vh", E = ue(
|
|
5598
5652
|
(w) => {
|
|
5599
5653
|
if (!w?.rows?.length || !w?.columns?.length)
|
|
5600
5654
|
return {};
|
|
5601
5655
|
const y = w.rows[0];
|
|
5602
|
-
return w.columns.filter((
|
|
5656
|
+
return w.columns.filter((_) => _.visible ?? !0).reduce((_, S) => {
|
|
5603
5657
|
const k = y.cells[S.name];
|
|
5604
|
-
if (!k || !f &&
|
|
5605
|
-
return
|
|
5658
|
+
if (!k || !f && ce(n) && k.shape !== te.BUTTON && k.shape !== te.BUTTON_LIST)
|
|
5659
|
+
return _;
|
|
5606
5660
|
const L = {
|
|
5607
5661
|
...k,
|
|
5608
5662
|
id: S.name,
|
|
5609
5663
|
onChange: (I) => {
|
|
5610
|
-
u((
|
|
5611
|
-
const
|
|
5612
|
-
return
|
|
5664
|
+
u((R) => {
|
|
5665
|
+
const O = { ...R };
|
|
5666
|
+
return O?.[S.name] && (O[S.name].obj.k = I.obj.k), O;
|
|
5613
5667
|
});
|
|
5614
5668
|
},
|
|
5615
5669
|
onClick: (I) => {
|
|
@@ -5618,35 +5672,35 @@ const Cr = /* @__PURE__ */ new Map([
|
|
|
5618
5672
|
onEnter: (I) => {
|
|
5619
5673
|
i && i(I);
|
|
5620
5674
|
},
|
|
5621
|
-
onContextMenu: (I,
|
|
5622
|
-
c && c(I,
|
|
5675
|
+
onContextMenu: (I, R) => {
|
|
5676
|
+
c && c(I, R);
|
|
5623
5677
|
}
|
|
5624
5678
|
};
|
|
5625
|
-
return l && k.shape == te.BUTTON_LIST && (L.onOptionsRequest = (I,
|
|
5626
|
-
(
|
|
5627
|
-
)), !f &&
|
|
5679
|
+
return l && k.shape == te.BUTTON_LIST && (L.onOptionsRequest = (I, R) => l(I, R).then(
|
|
5680
|
+
(O) => Ls(O)
|
|
5681
|
+
)), !f && ce(n) && (L.data = {
|
|
5628
5682
|
...L.data,
|
|
5629
5683
|
showText: !1,
|
|
5630
5684
|
justify: "center",
|
|
5631
5685
|
squared: !0
|
|
5632
5686
|
}), {
|
|
5633
|
-
...
|
|
5687
|
+
..._,
|
|
5634
5688
|
[S.name]: L
|
|
5635
5689
|
};
|
|
5636
5690
|
}, {});
|
|
5637
5691
|
},
|
|
5638
5692
|
[f, n, a, i, l, c]
|
|
5639
|
-
), T =
|
|
5693
|
+
), T = ue(() => {
|
|
5640
5694
|
o?.();
|
|
5641
|
-
}, [o]),
|
|
5642
|
-
|
|
5695
|
+
}, [o]), v = () => {
|
|
5696
|
+
ce(n) ? g((w) => !w) : (g(!1), o?.());
|
|
5643
5697
|
};
|
|
5644
5698
|
if (re(() => {
|
|
5645
5699
|
u(E(r));
|
|
5646
5700
|
}, [r]), re(() => {
|
|
5647
5701
|
if (!p.current)
|
|
5648
5702
|
return;
|
|
5649
|
-
if (!
|
|
5703
|
+
if (!ce(n)) {
|
|
5650
5704
|
u(E(r));
|
|
5651
5705
|
return;
|
|
5652
5706
|
}
|
|
@@ -5658,11 +5712,11 @@ const Cr = /* @__PURE__ */ new Map([
|
|
|
5658
5712
|
u(E(r));
|
|
5659
5713
|
}, y / 2);
|
|
5660
5714
|
}, [f, n]), re(() => {
|
|
5661
|
-
t !== void 0 && !
|
|
5715
|
+
t !== void 0 && !ce(n) && g(t);
|
|
5662
5716
|
}, [n, t]), !r?.rows?.length || !r.columns?.length)
|
|
5663
5717
|
return null;
|
|
5664
5718
|
const C = {
|
|
5665
|
-
drawer: `smp-drawer ${
|
|
5719
|
+
drawer: `smp-drawer ${ce(n) ? "smp-drawer-minified" : "smp-drawer-fixed"} ${f ? "smp-drawer-open" : ""} ${!ce(n) && !f ? "smp-drawer-no-border" : ""}`,
|
|
5666
5720
|
container: "smp-drawer-container",
|
|
5667
5721
|
containerHeader: "smp-drawer-container-header",
|
|
5668
5722
|
containerIcon: `${f ? "" : "smp-drawer-container-icon-close"} smp-drawer-container-icon`,
|
|
@@ -5671,7 +5725,7 @@ const Cr = /* @__PURE__ */ new Map([
|
|
|
5671
5725
|
backdrop: `smp-drawer-backdrop ${f ? "smp-drawer-backdrop-open" : ""}`
|
|
5672
5726
|
};
|
|
5673
5727
|
return d && /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
|
|
5674
|
-
!
|
|
5728
|
+
!ce(n) && /* @__PURE__ */ m.jsx(
|
|
5675
5729
|
"div",
|
|
5676
5730
|
{
|
|
5677
5731
|
"aria-hidden": "true",
|
|
@@ -5691,7 +5745,7 @@ const Cr = /* @__PURE__ */ new Map([
|
|
|
5691
5745
|
children: /* @__PURE__ */ m.jsxs("div", { className: C.container, children: [
|
|
5692
5746
|
/* @__PURE__ */ m.jsxs("div", { className: C.containerHeader, children: [
|
|
5693
5747
|
e && /* @__PURE__ */ m.jsx("div", { className: C.containerLogo, children: /* @__PURE__ */ m.jsx(
|
|
5694
|
-
|
|
5748
|
+
de,
|
|
5695
5749
|
{
|
|
5696
5750
|
icon: e,
|
|
5697
5751
|
title: "drawer_logo",
|
|
@@ -5700,24 +5754,24 @@ const Cr = /* @__PURE__ */ new Map([
|
|
|
5700
5754
|
}
|
|
5701
5755
|
) }),
|
|
5702
5756
|
/* @__PURE__ */ m.jsx("div", { className: C.containerIcon, children: /* @__PURE__ */ m.jsx(
|
|
5703
|
-
|
|
5757
|
+
de,
|
|
5704
5758
|
{
|
|
5705
|
-
icon:
|
|
5759
|
+
icon: ce(n) ? "menu_close" : "close",
|
|
5706
5760
|
title: "drawer_icon",
|
|
5707
5761
|
rotated: !f,
|
|
5708
5762
|
isInteractable: !0,
|
|
5709
|
-
onClick:
|
|
5763
|
+
onClick: v,
|
|
5710
5764
|
width: 20,
|
|
5711
5765
|
height: 20
|
|
5712
5766
|
}
|
|
5713
5767
|
) })
|
|
5714
5768
|
] }),
|
|
5715
|
-
/* @__PURE__ */ m.jsx("div", { className: C.containerLayout, children: /* @__PURE__ */ m.jsx(ot, { layout: r.rows[0].layout, children: Object.values(d).map((w) => /* @__PURE__ */ m.jsx(
|
|
5769
|
+
/* @__PURE__ */ m.jsx("div", { className: C.containerLayout, children: /* @__PURE__ */ m.jsx(ot, { layout: r.rows[0].layout, children: Object.values(d).map((w) => /* @__PURE__ */ m.jsx(Te, { ...w })) }) })
|
|
5716
5770
|
] })
|
|
5717
5771
|
}
|
|
5718
5772
|
)
|
|
5719
5773
|
] });
|
|
5720
|
-
},
|
|
5774
|
+
}, na = ({
|
|
5721
5775
|
ColumnsNumber: r = 1,
|
|
5722
5776
|
data: e = {},
|
|
5723
5777
|
ForceText: t,
|
|
@@ -5736,45 +5790,45 @@ const Cr = /* @__PURE__ */ new Map([
|
|
|
5736
5790
|
ForceValue: b,
|
|
5737
5791
|
ValueColName: E,
|
|
5738
5792
|
ValueColor: T = "var(--smp-dashList-color-base)",
|
|
5739
|
-
SelectLayout:
|
|
5793
|
+
SelectLayout: v = "1",
|
|
5740
5794
|
onClick: C
|
|
5741
5795
|
}) => {
|
|
5742
|
-
const w = "N/A", y = e?.columns || [],
|
|
5743
|
-
dash: (
|
|
5744
|
-
const Z = h(
|
|
5796
|
+
const w = "N/A", y = e?.columns || [], _ = e?.rows || [], S = _.length > 0, k = "--smp-dashList-color", L = "smp-layout", I = "descr", R = "icon", O = "um", P = "value", N = i || "1em", B = "18px", H = "--smp-dashList-columns", q = "--smp-dashList-fontSize", X = {
|
|
5797
|
+
dash: (Y = "1") => {
|
|
5798
|
+
const Z = h(Y), ne = Z, ae = x(Z, I), ke = x(Z, R), Me = x(Z, O), ge = x(Z, P);
|
|
5745
5799
|
return {
|
|
5746
5800
|
container: ne,
|
|
5747
5801
|
descr: ae,
|
|
5748
|
-
icon:
|
|
5802
|
+
icon: ke,
|
|
5749
5803
|
um: Me,
|
|
5750
5804
|
value: ge
|
|
5751
5805
|
};
|
|
5752
5806
|
},
|
|
5753
|
-
dashList: `smp-dash-list ${
|
|
5754
|
-
${
|
|
5755
|
-
}, { format: F } =
|
|
5807
|
+
dashList: `smp-dash-list ${ce(a) ? "smp-dash-list-fill-space" : ""}
|
|
5808
|
+
${ce(o) ? "smp-dash-list-horizontal" : ""}`
|
|
5809
|
+
}, { format: F } = $e(), h = (Y) => `${L}-${Y}`, x = (Y, Z) => `${Y}__${Z}`, $ = (Y) => `${k}-${Y}`, j = (Y) => {
|
|
5756
5810
|
const Z = /R(\d{1,3})G(\d{1,3})B(\d{1,3})/;
|
|
5757
|
-
if (Z.test(
|
|
5758
|
-
const ae =
|
|
5811
|
+
if (Z.test(Y)) {
|
|
5812
|
+
const ae = Y.match(Z) || [];
|
|
5759
5813
|
if (ae?.length > 3)
|
|
5760
5814
|
return "rgb(" + ae[1] + "," + ae[2] + "," + ae[3] + ")";
|
|
5761
5815
|
}
|
|
5762
|
-
return
|
|
5763
|
-
}, D = (
|
|
5764
|
-
if (!u) return
|
|
5765
|
-
const [Z, ne] =
|
|
5766
|
-
(
|
|
5767
|
-
), ae = "0,0" + (ne ? "." + "0".repeat(ne) : ""),
|
|
5768
|
-
if (!Z) return
|
|
5769
|
-
const [Me, ge] =
|
|
5816
|
+
return Y;
|
|
5817
|
+
}, D = (Y) => {
|
|
5818
|
+
if (!u) return Y;
|
|
5819
|
+
const [Z, ne] = A(u).map(
|
|
5820
|
+
(Le) => parseInt(Le || "0")
|
|
5821
|
+
), ae = "0,0" + (ne ? "." + "0".repeat(ne) : ""), ke = F(Y, ae, "it");
|
|
5822
|
+
if (!Z) return ke;
|
|
5823
|
+
const [Me, ge] = ke.split(",");
|
|
5770
5824
|
return Me + (ge ? `,${ge}` : "");
|
|
5771
|
-
},
|
|
5825
|
+
}, A = (Y) => Y.includes(";") ? Y.split(";") : [Y], U = (Y) => {
|
|
5772
5826
|
const Z = (ae) => {
|
|
5773
5827
|
if (ae)
|
|
5774
|
-
return
|
|
5828
|
+
return Y?.cells[ae]?.obj.k;
|
|
5775
5829
|
}, ne = (ae) => {
|
|
5776
5830
|
if (!(y.length <= ae))
|
|
5777
|
-
return
|
|
5831
|
+
return Y?.cells[y[ae].name]?.obj?.k;
|
|
5778
5832
|
};
|
|
5779
5833
|
return {
|
|
5780
5834
|
descr: t || Z(n) || ne(2) || "",
|
|
@@ -5782,43 +5836,43 @@ const Cr = /* @__PURE__ */ new Map([
|
|
|
5782
5836
|
um: f || Z(g) || ne(1) || "",
|
|
5783
5837
|
value: b || Z(E) || ne(0) || ""
|
|
5784
5838
|
};
|
|
5785
|
-
},
|
|
5786
|
-
C?.(
|
|
5787
|
-
}, V = (
|
|
5788
|
-
(
|
|
5789
|
-
}, K = ((
|
|
5790
|
-
const Z = X.dash(
|
|
5839
|
+
}, W = (Y) => {
|
|
5840
|
+
C?.(Y);
|
|
5841
|
+
}, V = (Y, Z) => {
|
|
5842
|
+
(Y.key === "Enter" || Y.key === " ") && (Y.preventDefault(), Y.stopPropagation(), W(Z));
|
|
5843
|
+
}, K = ((Y) => {
|
|
5844
|
+
const Z = X.dash(Y);
|
|
5791
5845
|
return {
|
|
5792
5846
|
className: Z,
|
|
5793
|
-
descr: (ne) => /* @__PURE__ */ m.jsx("div", { className: Z.descr, children: ne }, `${
|
|
5847
|
+
descr: (ne) => /* @__PURE__ */ m.jsx("div", { className: Z.descr, children: ne }, `${Y}-${I}`),
|
|
5794
5848
|
icon: (ne) => /* @__PURE__ */ m.jsx("div", { className: Z.icon, children: /* @__PURE__ */ m.jsx(
|
|
5795
|
-
|
|
5849
|
+
de,
|
|
5796
5850
|
{
|
|
5797
5851
|
color: d,
|
|
5798
5852
|
height: B,
|
|
5799
5853
|
icon: ne,
|
|
5800
5854
|
width: B
|
|
5801
5855
|
}
|
|
5802
|
-
) }, `${
|
|
5803
|
-
um: (ne) => /* @__PURE__ */ m.jsx("div", { className: Z.um, children: ne }, `${
|
|
5804
|
-
value: (ne) => /* @__PURE__ */ m.jsx("div", { className: Z.value, children: ne }, `${
|
|
5856
|
+
) }, `${Y}-${R}`),
|
|
5857
|
+
um: (ne) => /* @__PURE__ */ m.jsx("div", { className: Z.um, children: ne }, `${Y}-${O}`),
|
|
5858
|
+
value: (ne) => /* @__PURE__ */ m.jsx("div", { className: Z.value, children: ne }, `${Y}-${P}`)
|
|
5805
5859
|
};
|
|
5806
|
-
})(
|
|
5807
|
-
const { descr: Z, icon: ne, um: ae, value:
|
|
5808
|
-
[$(I)]:
|
|
5809
|
-
[$(
|
|
5810
|
-
[$(
|
|
5811
|
-
}, ge = [],
|
|
5812
|
-
switch (
|
|
5860
|
+
})(v), se = (Y) => {
|
|
5861
|
+
const { descr: Z, icon: ne, um: ae, value: ke } = U(Y), Me = {
|
|
5862
|
+
[$(I)]: j(s),
|
|
5863
|
+
[$(O)]: j(p),
|
|
5864
|
+
[$(P)]: j(T)
|
|
5865
|
+
}, ge = [], Le = D(ke);
|
|
5866
|
+
switch (v) {
|
|
5813
5867
|
case "2":
|
|
5814
5868
|
ne && ge.push(K.icon(ne)), ge.push(K.descr(Z)), ge.push(
|
|
5815
|
-
K.value(ae ?
|
|
5869
|
+
K.value(ae ? Le + " " + ae : Le)
|
|
5816
5870
|
);
|
|
5817
5871
|
break;
|
|
5818
5872
|
default:
|
|
5819
5873
|
case "1":
|
|
5820
5874
|
ge.push(K.descr(Z)), ge.push(
|
|
5821
|
-
K.value(ae ?
|
|
5875
|
+
K.value(ae ? Le + " " + ae : Le)
|
|
5822
5876
|
);
|
|
5823
5877
|
}
|
|
5824
5878
|
return /* @__PURE__ */ m.jsx(
|
|
@@ -5828,36 +5882,36 @@ const Cr = /* @__PURE__ */ new Map([
|
|
|
5828
5882
|
role: "button",
|
|
5829
5883
|
style: Me,
|
|
5830
5884
|
tabIndex: 0,
|
|
5831
|
-
onClick: () => Y
|
|
5832
|
-
onKeyDown: (Mr) => V(Mr,
|
|
5885
|
+
onClick: () => W(Y),
|
|
5886
|
+
onKeyDown: (Mr) => V(Mr, Y),
|
|
5833
5887
|
children: ge
|
|
5834
5888
|
},
|
|
5835
|
-
|
|
5889
|
+
Y.rowId
|
|
5836
5890
|
);
|
|
5837
5891
|
}, M = {
|
|
5838
|
-
[
|
|
5892
|
+
[H]: String(r),
|
|
5839
5893
|
[q]: N
|
|
5840
5894
|
};
|
|
5841
|
-
return /* @__PURE__ */ m.jsx("div", { className: X.dashList, style: M, children: S ?
|
|
5895
|
+
return /* @__PURE__ */ m.jsx("div", { className: X.dashList, style: M, children: S ? _.map((Y) => se(Y)) : w });
|
|
5842
5896
|
}, rt = {
|
|
5843
5897
|
"smp-table": "_smp-table_1qmju_1",
|
|
5844
5898
|
"smp-headerCell": "_smp-headerCell_1qmju_35",
|
|
5845
5899
|
"smp-resizer": "_smp-resizer_1qmju_44"
|
|
5846
|
-
},
|
|
5847
|
-
rowContent:
|
|
5900
|
+
}, Ps = "_rowContent_20wit_2", As = "_clickable_20wit_21", Is = "_indent_20wit_26", Ns = "_toggle_20wit_32", Ms = "_cell_20wit_38", Fs = "_leftSection_20wit_46", Se = {
|
|
5901
|
+
rowContent: Ps,
|
|
5848
5902
|
clickable: As,
|
|
5849
|
-
indent:
|
|
5850
|
-
toggle:
|
|
5851
|
-
cell:
|
|
5852
|
-
leftSection:
|
|
5903
|
+
indent: Is,
|
|
5904
|
+
toggle: Ns,
|
|
5905
|
+
cell: Ms,
|
|
5906
|
+
leftSection: Fs
|
|
5853
5907
|
};
|
|
5854
5908
|
function nt(r) {
|
|
5855
5909
|
return !!r && "children" in r;
|
|
5856
5910
|
}
|
|
5857
|
-
function
|
|
5911
|
+
function Vs(r) {
|
|
5858
5912
|
return !nt(r);
|
|
5859
5913
|
}
|
|
5860
|
-
function
|
|
5914
|
+
function Us(r) {
|
|
5861
5915
|
const e = JSON.stringify(r, Object.keys(r).sort());
|
|
5862
5916
|
let t = 0, n, s;
|
|
5863
5917
|
if (e.length === 0) return t.toString();
|
|
@@ -5872,15 +5926,15 @@ const Nr = ({
|
|
|
5872
5926
|
rowHeight: n = 26,
|
|
5873
5927
|
offsetTop: s
|
|
5874
5928
|
}) => {
|
|
5875
|
-
const [a, i] =
|
|
5929
|
+
const [a, i] = G(!1), o = nt(r) && !!r.children?.length, l = r.cells && Object.keys(r.cells).length > 0, c = o, d = t * 20, u = () => {
|
|
5876
5930
|
o && i(!a);
|
|
5877
5931
|
}, f = {
|
|
5878
|
-
content: `${
|
|
5879
|
-
toggle: `${
|
|
5880
|
-
indent: `${
|
|
5881
|
-
cell: `${
|
|
5882
|
-
}, g = (
|
|
5883
|
-
|
|
5932
|
+
content: `${Se.rowContent} ${o ? Se.clickable : ""}`,
|
|
5933
|
+
toggle: `${Se.toggle}`,
|
|
5934
|
+
indent: `${Se.indent}`,
|
|
5935
|
+
cell: `${Se.cell}`
|
|
5936
|
+
}, g = (v) => /* @__PURE__ */ m.jsx(Te, { ...v }), p = () => /* @__PURE__ */ m.jsx("span", { className: f.toggle, children: c && /* @__PURE__ */ m.jsx(
|
|
5937
|
+
de,
|
|
5884
5938
|
{
|
|
5885
5939
|
icon: a ? "arrow_drop_right" : "arrow_drop_down",
|
|
5886
5940
|
width: 16
|
|
@@ -5893,7 +5947,7 @@ const Nr = ({
|
|
|
5893
5947
|
"aria-hidden": "true"
|
|
5894
5948
|
}
|
|
5895
5949
|
), E = () => {
|
|
5896
|
-
const
|
|
5950
|
+
const v = Vs(r) ? "" : r.decode || (l ? "" : "Untitled"), C = s ?? n * t;
|
|
5897
5951
|
return /* @__PURE__ */ m.jsxs(
|
|
5898
5952
|
"tr",
|
|
5899
5953
|
{
|
|
@@ -5910,14 +5964,14 @@ const Nr = ({
|
|
|
5910
5964
|
nt(r) && /* @__PURE__ */ m.jsxs(
|
|
5911
5965
|
"td",
|
|
5912
5966
|
{
|
|
5913
|
-
className:
|
|
5967
|
+
className: Se.leftSection,
|
|
5914
5968
|
style: {
|
|
5915
5969
|
height: `${n}px`
|
|
5916
5970
|
},
|
|
5917
5971
|
children: [
|
|
5918
5972
|
b(),
|
|
5919
5973
|
p(),
|
|
5920
|
-
/* @__PURE__ */ m.jsx("span", { className:
|
|
5974
|
+
/* @__PURE__ */ m.jsx("span", { className: Se.rowLabel, children: v })
|
|
5921
5975
|
]
|
|
5922
5976
|
}
|
|
5923
5977
|
),
|
|
@@ -5935,12 +5989,12 @@ const Nr = ({
|
|
|
5935
5989
|
id: w
|
|
5936
5990
|
})
|
|
5937
5991
|
},
|
|
5938
|
-
|
|
5992
|
+
Us(y) || w
|
|
5939
5993
|
))
|
|
5940
5994
|
]
|
|
5941
5995
|
}
|
|
5942
5996
|
);
|
|
5943
|
-
}, T = () => a || !o ? null : /* @__PURE__ */ m.jsx(m.Fragment, { children: nt(r) && r.children?.map((
|
|
5997
|
+
}, T = () => a || !o ? null : /* @__PURE__ */ m.jsx(m.Fragment, { children: nt(r) && r.children?.map((v, C) => /* @__PURE__ */ m.jsx(Nr, { row: v, level: t + 1 }, `child-${C}`)) });
|
|
5944
5998
|
return /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
|
|
5945
5999
|
E(),
|
|
5946
6000
|
T()
|
|
@@ -5976,7 +6030,7 @@ const Nr = ({
|
|
|
5976
6030
|
},
|
|
5977
6031
|
children: [
|
|
5978
6032
|
/* @__PURE__ */ m.jsx(
|
|
5979
|
-
|
|
6033
|
+
de,
|
|
5980
6034
|
{
|
|
5981
6035
|
icon: a ? "arrow_drop_down" : "arrow_drop_right",
|
|
5982
6036
|
width: 16
|
|
@@ -5993,7 +6047,7 @@ function Ys(r, e) {
|
|
|
5993
6047
|
const t = new Set(r);
|
|
5994
6048
|
return t.has(e) ? t.delete(e) : t.add(e), t;
|
|
5995
6049
|
}
|
|
5996
|
-
function
|
|
6050
|
+
function Bs(r, e) {
|
|
5997
6051
|
return r.map((t) => {
|
|
5998
6052
|
const n = e.find((s) => s.column === t.bindValue);
|
|
5999
6053
|
return {
|
|
@@ -6002,7 +6056,7 @@ function Us(r, e) {
|
|
|
6002
6056
|
};
|
|
6003
6057
|
});
|
|
6004
6058
|
}
|
|
6005
|
-
function
|
|
6059
|
+
function Gs(r, e, t, n) {
|
|
6006
6060
|
const s = [];
|
|
6007
6061
|
let a = 0;
|
|
6008
6062
|
return i(r, 0, []), { flatRows: s, offset: a };
|
|
@@ -6013,8 +6067,8 @@ function Bs(r, e, t, n) {
|
|
|
6013
6067
|
}
|
|
6014
6068
|
const p = e[f].column, b = o(u, p);
|
|
6015
6069
|
for (const [E, T] of b) {
|
|
6016
|
-
const
|
|
6017
|
-
s.push(c(E, C, f, w)), a += t, w && i(T, f + 1,
|
|
6070
|
+
const v = [...g, E], C = l(v, f), w = n.has(C);
|
|
6071
|
+
s.push(c(E, C, f, w)), a += t, w && i(T, f + 1, v);
|
|
6018
6072
|
}
|
|
6019
6073
|
}
|
|
6020
6074
|
function o(u, f) {
|
|
@@ -6063,9 +6117,9 @@ const Hs = ({
|
|
|
6063
6117
|
onDragOver: a,
|
|
6064
6118
|
onDrop: s,
|
|
6065
6119
|
children: [
|
|
6066
|
-
/* @__PURE__ */ m.jsx("td", { children: /* @__PURE__ */ m.jsx(
|
|
6120
|
+
/* @__PURE__ */ m.jsx("td", { children: /* @__PURE__ */ m.jsx(de, { icon: "groups" }) }),
|
|
6067
6121
|
/* @__PURE__ */ m.jsx("td", { children: /* @__PURE__ */ m.jsx(
|
|
6068
|
-
|
|
6122
|
+
At,
|
|
6069
6123
|
{
|
|
6070
6124
|
elements: i,
|
|
6071
6125
|
isEditable: t,
|
|
@@ -6077,7 +6131,7 @@ const Hs = ({
|
|
|
6077
6131
|
]
|
|
6078
6132
|
}
|
|
6079
6133
|
);
|
|
6080
|
-
},
|
|
6134
|
+
}, Ks = ({ columns: r, columnWidths: e }) => /* @__PURE__ */ m.jsx("tfoot", { children: /* @__PURE__ */ m.jsx("tr", { children: r.map(
|
|
6081
6135
|
(t) => t.visible && /* @__PURE__ */ m.jsx(
|
|
6082
6136
|
"td",
|
|
6083
6137
|
{
|
|
@@ -6090,13 +6144,13 @@ const Hs = ({
|
|
|
6090
6144
|
},
|
|
6091
6145
|
t.name
|
|
6092
6146
|
)
|
|
6093
|
-
) }) }),
|
|
6147
|
+
) }) }), zs = ({
|
|
6094
6148
|
columns: r,
|
|
6095
6149
|
rows: e,
|
|
6096
6150
|
containerRef: t,
|
|
6097
6151
|
sizingMode: n
|
|
6098
6152
|
}) => {
|
|
6099
|
-
const [s, a] =
|
|
6153
|
+
const [s, a] = G({});
|
|
6100
6154
|
return re(() => {
|
|
6101
6155
|
if (!(!r || r.length === 0)) {
|
|
6102
6156
|
if (n === "fixed") {
|
|
@@ -6123,7 +6177,7 @@ const Hs = ({
|
|
|
6123
6177
|
}
|
|
6124
6178
|
}
|
|
6125
6179
|
}, [r, e, t, n]), [s, a];
|
|
6126
|
-
},
|
|
6180
|
+
}, sa = ({
|
|
6127
6181
|
data: r,
|
|
6128
6182
|
lineHeight: e = 28,
|
|
6129
6183
|
TableHeight: t = 400,
|
|
@@ -6132,9 +6186,9 @@ const Hs = ({
|
|
|
6132
6186
|
showGroupBar: a = !0
|
|
6133
6187
|
// isEditable = false,
|
|
6134
6188
|
}) => {
|
|
6135
|
-
const [i, o] =
|
|
6189
|
+
const [i, o] = G(
|
|
6136
6190
|
r ?? { columns: [], rows: [] }
|
|
6137
|
-
), [l, c] =
|
|
6191
|
+
), [l, c] = G(n || []), [d, u] = G(/* @__PURE__ */ new Set()), f = le(null), [g, p] = zs({
|
|
6138
6192
|
columns: i?.columns ?? [],
|
|
6139
6193
|
rows: i?.rows ?? [],
|
|
6140
6194
|
containerRef: f,
|
|
@@ -6142,7 +6196,7 @@ const Hs = ({
|
|
|
6142
6196
|
});
|
|
6143
6197
|
re(() => {
|
|
6144
6198
|
if (l?.length && r.rows) {
|
|
6145
|
-
const { flatRows: S } =
|
|
6199
|
+
const { flatRows: S } = Gs(
|
|
6146
6200
|
r.rows,
|
|
6147
6201
|
l,
|
|
6148
6202
|
e,
|
|
@@ -6153,33 +6207,33 @@ const Hs = ({
|
|
|
6153
6207
|
o(r);
|
|
6154
6208
|
}, [r, l, d, e]);
|
|
6155
6209
|
const b = (S) => {
|
|
6156
|
-
c(
|
|
6210
|
+
c(Bs(S, l));
|
|
6157
6211
|
}, E = (S) => {
|
|
6158
6212
|
S.preventDefault();
|
|
6159
6213
|
const k = S.dataTransfer.getData("text/plain");
|
|
6160
|
-
if (!k || l.some((
|
|
6214
|
+
if (!k || l.some((R) => R.column === k))
|
|
6161
6215
|
return;
|
|
6162
6216
|
const I = [...l, { column: k, visible: !0 }];
|
|
6163
6217
|
c(I);
|
|
6164
6218
|
}, T = (S) => {
|
|
6165
6219
|
S.preventDefault();
|
|
6166
|
-
}, { virtualItems:
|
|
6220
|
+
}, { virtualItems: v, containerProps: C, innerProps: w } = kr({
|
|
6167
6221
|
items: i?.rows ?? [],
|
|
6168
6222
|
itemHeight: e,
|
|
6169
6223
|
containerHeight: t,
|
|
6170
6224
|
overscan: 5
|
|
6171
6225
|
}), y = (S, k) => {
|
|
6172
|
-
const L = S.clientX, I = g[k],
|
|
6173
|
-
const N =
|
|
6174
|
-
p((
|
|
6175
|
-
...
|
|
6226
|
+
const L = S.clientX, I = g[k], R = (P) => {
|
|
6227
|
+
const N = P.clientX - L, B = Math.max(50, I + N);
|
|
6228
|
+
p((H) => ({
|
|
6229
|
+
...H,
|
|
6176
6230
|
[k]: B
|
|
6177
6231
|
}));
|
|
6178
|
-
},
|
|
6179
|
-
window.removeEventListener("mousemove",
|
|
6232
|
+
}, O = () => {
|
|
6233
|
+
window.removeEventListener("mousemove", R), window.removeEventListener("mouseup", O);
|
|
6180
6234
|
};
|
|
6181
|
-
window.addEventListener("mousemove",
|
|
6182
|
-
},
|
|
6235
|
+
window.addEventListener("mousemove", R), window.addEventListener("mouseup", O);
|
|
6236
|
+
}, _ = {
|
|
6183
6237
|
smpTable: `${rt["smp-table"]}`,
|
|
6184
6238
|
headerCell: `${rt["smp-headerCell"]}`,
|
|
6185
6239
|
resizer: `${rt["smp-resizer"]}`
|
|
@@ -6187,7 +6241,7 @@ const Hs = ({
|
|
|
6187
6241
|
return i && /* @__PURE__ */ m.jsx(
|
|
6188
6242
|
"div",
|
|
6189
6243
|
{
|
|
6190
|
-
className:
|
|
6244
|
+
className: _.smpTable,
|
|
6191
6245
|
...C,
|
|
6192
6246
|
ref: f,
|
|
6193
6247
|
children: /* @__PURE__ */ m.jsxs("table", { children: [
|
|
@@ -6205,7 +6259,7 @@ const Hs = ({
|
|
|
6205
6259
|
(S) => S.visible && /* @__PURE__ */ m.jsxs(
|
|
6206
6260
|
"th",
|
|
6207
6261
|
{
|
|
6208
|
-
className:
|
|
6262
|
+
className: _.headerCell,
|
|
6209
6263
|
draggable: !0,
|
|
6210
6264
|
onDragStart: (k) => {
|
|
6211
6265
|
k.dataTransfer.setData("text/plain", S.name);
|
|
@@ -6226,7 +6280,7 @@ const Hs = ({
|
|
|
6226
6280
|
/* @__PURE__ */ m.jsx(
|
|
6227
6281
|
"div",
|
|
6228
6282
|
{
|
|
6229
|
-
className:
|
|
6283
|
+
className: _.resizer,
|
|
6230
6284
|
onMouseDown: (k) => y(k, S.name),
|
|
6231
6285
|
role: "region"
|
|
6232
6286
|
}
|
|
@@ -6237,7 +6291,7 @@ const Hs = ({
|
|
|
6237
6291
|
)
|
|
6238
6292
|
) })
|
|
6239
6293
|
] }),
|
|
6240
|
-
/* @__PURE__ */ m.jsx("tbody", { ...w, children:
|
|
6294
|
+
/* @__PURE__ */ m.jsx("tbody", { ...w, children: v.map(({ item: S, index: k, offsetTop: L }) => {
|
|
6241
6295
|
const I = S.rowId || S.value || `${S.isGroup ? "group" : "row"}-${k}`;
|
|
6242
6296
|
return S.isGroup ? /* @__PURE__ */ m.jsx(
|
|
6243
6297
|
Ws,
|
|
@@ -6247,8 +6301,8 @@ const Hs = ({
|
|
|
6247
6301
|
offsetTop: L,
|
|
6248
6302
|
level: S.level,
|
|
6249
6303
|
onClick: () => {
|
|
6250
|
-
const
|
|
6251
|
-
|
|
6304
|
+
const R = S.rowId;
|
|
6305
|
+
R && u((O) => Ys(O, R));
|
|
6252
6306
|
},
|
|
6253
6307
|
isExpanded: S.isExpanded
|
|
6254
6308
|
},
|
|
@@ -6265,11 +6319,11 @@ const Hs = ({
|
|
|
6265
6319
|
`row-${I}`
|
|
6266
6320
|
);
|
|
6267
6321
|
}) }),
|
|
6268
|
-
/* @__PURE__ */ m.jsx(
|
|
6322
|
+
/* @__PURE__ */ m.jsx(Ks, { columns: i.columns, columnWidths: g })
|
|
6269
6323
|
] })
|
|
6270
6324
|
}
|
|
6271
6325
|
);
|
|
6272
|
-
},
|
|
6326
|
+
}, aa = ({
|
|
6273
6327
|
data: r,
|
|
6274
6328
|
Type: e,
|
|
6275
6329
|
ShowSubmit: t = !1,
|
|
@@ -6281,7 +6335,7 @@ const Hs = ({
|
|
|
6281
6335
|
onClick: l,
|
|
6282
6336
|
onOptionsRequest: c
|
|
6283
6337
|
}) => {
|
|
6284
|
-
const [d, u] =
|
|
6338
|
+
const [d, u] = G();
|
|
6285
6339
|
re(() => {
|
|
6286
6340
|
u(() => {
|
|
6287
6341
|
if (!r)
|
|
@@ -6291,9 +6345,9 @@ const Hs = ({
|
|
|
6291
6345
|
});
|
|
6292
6346
|
}, [r, s, e]);
|
|
6293
6347
|
const g = {
|
|
6294
|
-
container: `smp-field-container ${
|
|
6348
|
+
container: `smp-field-container ${ce(t) ? `smp-field-position-${n}` : ""}`
|
|
6295
6349
|
}, p = () => {
|
|
6296
|
-
|
|
6350
|
+
ce(t) || o?.(d);
|
|
6297
6351
|
};
|
|
6298
6352
|
if (d)
|
|
6299
6353
|
return /* @__PURE__ */ m.jsxs("div", { className: g.container, children: [
|
|
@@ -6307,7 +6361,7 @@ const Hs = ({
|
|
|
6307
6361
|
font: "var(--smp-fontLabel-base)"
|
|
6308
6362
|
},
|
|
6309
6363
|
children: /* @__PURE__ */ m.jsx(
|
|
6310
|
-
|
|
6364
|
+
Te,
|
|
6311
6365
|
{
|
|
6312
6366
|
...d,
|
|
6313
6367
|
id: "FLD",
|
|
@@ -6321,9 +6375,9 @@ const Hs = ({
|
|
|
6321
6375
|
)
|
|
6322
6376
|
}
|
|
6323
6377
|
),
|
|
6324
|
-
|
|
6378
|
+
ce(t) && //TODO: translation
|
|
6325
6379
|
/* @__PURE__ */ m.jsx(
|
|
6326
|
-
|
|
6380
|
+
we,
|
|
6327
6381
|
{
|
|
6328
6382
|
optionalDisplayValue: "Confirm",
|
|
6329
6383
|
onClick: () => l?.(d),
|
|
@@ -6331,18 +6385,18 @@ const Hs = ({
|
|
|
6331
6385
|
}
|
|
6332
6386
|
)
|
|
6333
6387
|
] });
|
|
6334
|
-
},
|
|
6388
|
+
}, qs = (r) => r?.type === "SmeupDataTree", Js = (r) => r?.type === "SmeupDataTable", Xs = (r) => qs(r) ? r.children ? r.children.map(
|
|
6335
6389
|
(e) => ({
|
|
6336
6390
|
id: e.obj.k,
|
|
6337
6391
|
label: e.value ?? ""
|
|
6338
6392
|
})
|
|
6339
|
-
) : [] :
|
|
6393
|
+
) : [] : Js(r) ? r.rows.map((e) => {
|
|
6340
6394
|
const t = e.cells || e.cells, [n, s] = Object.keys(t);
|
|
6341
6395
|
return {
|
|
6342
6396
|
id: t[n].obj.k,
|
|
6343
6397
|
label: t[s].value || t[s].obj.k
|
|
6344
6398
|
};
|
|
6345
|
-
}) : [],
|
|
6399
|
+
}) : [], oa = ({
|
|
6346
6400
|
data: r,
|
|
6347
6401
|
id: e,
|
|
6348
6402
|
readOnly: t = !1,
|
|
@@ -6356,7 +6410,7 @@ const Hs = ({
|
|
|
6356
6410
|
onContextMenu: d,
|
|
6357
6411
|
onButtonClick: u
|
|
6358
6412
|
}) => {
|
|
6359
|
-
const [f, g] =
|
|
6413
|
+
const [f, g] = G({}), { translate: p } = $e(), b = Ce();
|
|
6360
6414
|
re(() => {
|
|
6361
6415
|
g(w(r));
|
|
6362
6416
|
}, [r]);
|
|
@@ -6390,7 +6444,7 @@ const Hs = ({
|
|
|
6390
6444
|
value: k,
|
|
6391
6445
|
cell: S
|
|
6392
6446
|
});
|
|
6393
|
-
},
|
|
6447
|
+
}, v = (S, k) => {
|
|
6394
6448
|
u?.({
|
|
6395
6449
|
cellId: S,
|
|
6396
6450
|
currentState: {
|
|
@@ -6415,7 +6469,7 @@ const Hs = ({
|
|
|
6415
6469
|
...L[S],
|
|
6416
6470
|
data: {
|
|
6417
6471
|
...L[S].data,
|
|
6418
|
-
error: p(
|
|
6472
|
+
error: p(Ee.CHECK_OBJECT_WRONG_VALIDATION)
|
|
6419
6473
|
}
|
|
6420
6474
|
}
|
|
6421
6475
|
}))), f[S].inputSettings?.checkValueOnExit)) {
|
|
@@ -6430,7 +6484,7 @@ const Hs = ({
|
|
|
6430
6484
|
return {};
|
|
6431
6485
|
const k = S.rows?.[0];
|
|
6432
6486
|
return S.columns.filter((L) => L.visible ?? !0).reduce((L, I) => {
|
|
6433
|
-
const
|
|
6487
|
+
const R = {
|
|
6434
6488
|
...k.cells[I.name],
|
|
6435
6489
|
id: I.name,
|
|
6436
6490
|
label: I.title,
|
|
@@ -6440,9 +6494,9 @@ const Hs = ({
|
|
|
6440
6494
|
dSep: a
|
|
6441
6495
|
}
|
|
6442
6496
|
};
|
|
6443
|
-
return
|
|
6497
|
+
return R.isEditable == null && (R.isEditable = !0), t && (R.isEditable = !1), R.isEditable && R.shape == null && (R.shape = te.TEXT_FIELD), {
|
|
6444
6498
|
...L,
|
|
6445
|
-
[I.name]:
|
|
6499
|
+
[I.name]: R
|
|
6446
6500
|
};
|
|
6447
6501
|
}, {});
|
|
6448
6502
|
}, y = (S) => ({
|
|
@@ -6456,8 +6510,8 @@ const Hs = ({
|
|
|
6456
6510
|
}
|
|
6457
6511
|
]
|
|
6458
6512
|
}
|
|
6459
|
-
}),
|
|
6460
|
-
|
|
6513
|
+
}), _ = r.setup?.commands?.map((S, k) => /* @__PURE__ */ Ur(
|
|
6514
|
+
Te,
|
|
6461
6515
|
{
|
|
6462
6516
|
...S,
|
|
6463
6517
|
decode: S.value,
|
|
@@ -6470,11 +6524,11 @@ const Hs = ({
|
|
|
6470
6524
|
onClick: () => T(S.obj.k)
|
|
6471
6525
|
}
|
|
6472
6526
|
)) || [];
|
|
6473
|
-
return n ||
|
|
6527
|
+
return n || _.unshift(
|
|
6474
6528
|
/* @__PURE__ */ m.jsx(
|
|
6475
|
-
|
|
6529
|
+
Te,
|
|
6476
6530
|
{
|
|
6477
|
-
decode: p(
|
|
6531
|
+
decode: p(Ee.CONFIRM_BUTTON),
|
|
6478
6532
|
shape: te.BUTTON,
|
|
6479
6533
|
id: "",
|
|
6480
6534
|
obj: {
|
|
@@ -6484,7 +6538,7 @@ const Hs = ({
|
|
|
6484
6538
|
},
|
|
6485
6539
|
data: {
|
|
6486
6540
|
submit: !0,
|
|
6487
|
-
label: p(
|
|
6541
|
+
label: p(Ee.CONFIRM_BUTTON)
|
|
6488
6542
|
}
|
|
6489
6543
|
},
|
|
6490
6544
|
"submit-command"
|
|
@@ -6499,17 +6553,17 @@ const Hs = ({
|
|
|
6499
6553
|
},
|
|
6500
6554
|
children: [
|
|
6501
6555
|
/* @__PURE__ */ m.jsx(ot, { layout: r.rows[0].layout, children: Object.values(f).map((S) => /* @__PURE__ */ m.jsx(
|
|
6502
|
-
|
|
6556
|
+
Te,
|
|
6503
6557
|
{
|
|
6504
6558
|
...S,
|
|
6505
|
-
onOptionsRequest: S.fun ? async (k, L) =>
|
|
6559
|
+
onOptionsRequest: S.fun ? async (k, L) => Xs(
|
|
6506
6560
|
await i(k, L, r, S.id)
|
|
6507
6561
|
) : void 0,
|
|
6508
6562
|
onChange: (k) => E(S.id, k),
|
|
6509
6563
|
onBlur: () => C(S.id),
|
|
6510
6564
|
onContextMenu: d,
|
|
6511
6565
|
onClick: () => {
|
|
6512
|
-
S.shape == "BTN" &&
|
|
6566
|
+
S.shape == "BTN" && v(S.id, S.fun);
|
|
6513
6567
|
},
|
|
6514
6568
|
data: {
|
|
6515
6569
|
...S.data,
|
|
@@ -6517,7 +6571,7 @@ const Hs = ({
|
|
|
6517
6571
|
}
|
|
6518
6572
|
}
|
|
6519
6573
|
)) }),
|
|
6520
|
-
|
|
6574
|
+
_.length > 0 && /* @__PURE__ */ m.jsx(
|
|
6521
6575
|
ot,
|
|
6522
6576
|
{
|
|
6523
6577
|
layout: {
|
|
@@ -6526,13 +6580,13 @@ const Hs = ({
|
|
|
6526
6580
|
id: "1",
|
|
6527
6581
|
horizontal: !0,
|
|
6528
6582
|
justify: "start",
|
|
6529
|
-
content:
|
|
6583
|
+
content: _.map((S) => ({
|
|
6530
6584
|
id: S.props.id
|
|
6531
6585
|
}))
|
|
6532
6586
|
}
|
|
6533
6587
|
]
|
|
6534
6588
|
},
|
|
6535
|
-
children:
|
|
6589
|
+
children: _
|
|
6536
6590
|
}
|
|
6537
6591
|
)
|
|
6538
6592
|
]
|
|
@@ -6540,21 +6594,21 @@ const Hs = ({
|
|
|
6540
6594
|
);
|
|
6541
6595
|
};
|
|
6542
6596
|
export {
|
|
6543
|
-
|
|
6597
|
+
ta as AppBar,
|
|
6544
6598
|
Ir as Autocomplete,
|
|
6545
|
-
|
|
6599
|
+
we as Button,
|
|
6546
6600
|
us as ButtonList,
|
|
6547
6601
|
fs as Checkbox,
|
|
6548
6602
|
ps as Combobox,
|
|
6549
|
-
|
|
6550
|
-
|
|
6603
|
+
na as DashList,
|
|
6604
|
+
sa as DataTableComponent,
|
|
6551
6605
|
gs as DatePicker,
|
|
6552
|
-
|
|
6553
|
-
|
|
6554
|
-
|
|
6555
|
-
|
|
6606
|
+
ra as Drawer,
|
|
6607
|
+
aa as Field,
|
|
6608
|
+
de as Icon,
|
|
6609
|
+
oa as InputPanel,
|
|
6556
6610
|
bs as Password,
|
|
6557
6611
|
gn as TabBar,
|
|
6558
|
-
|
|
6559
|
-
|
|
6612
|
+
De as Textfield,
|
|
6613
|
+
ea as configurePaths
|
|
6560
6614
|
};
|