alex-evo-sh-ui-kit 1.1.102 → 1.1.103
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import te, { useEffect as V, useState as b, useRef as Y, useCallback as
|
|
1
|
+
import te, { useEffect as V, useState as b, useRef as Y, useCallback as k, createContext as Be, forwardRef as fe, useContext as ve, useMemo as oe, useLayoutEffect as ct, useId as We, memo as ot, useImperativeHandle as dt } from "react";
|
|
2
2
|
import ut from "react-dom";
|
|
3
3
|
import { NavLink as en } from "react-router-dom";
|
|
4
4
|
import './index.css';var Qe = { exports: {} }, Se = {};
|
|
@@ -128,7 +128,7 @@ function xt() {
|
|
|
128
128
|
return Error("react-stack-top-frame");
|
|
129
129
|
}
|
|
130
130
|
function a(C) {
|
|
131
|
-
if (
|
|
131
|
+
if (y.call(C, "key")) {
|
|
132
132
|
var L = Object.getOwnPropertyDescriptor(C, "key").get;
|
|
133
133
|
if (L && L.isReactWarning) return !1;
|
|
134
134
|
}
|
|
@@ -198,7 +198,7 @@ function xt() {
|
|
|
198
198
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
199
199
|
);
|
|
200
200
|
else m(J);
|
|
201
|
-
if (
|
|
201
|
+
if (y.call(L, "key")) {
|
|
202
202
|
J = n(C);
|
|
203
203
|
var le = Object.keys(L).filter(function(Z) {
|
|
204
204
|
return Z !== "key";
|
|
@@ -239,7 +239,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
239
239
|
function h(C) {
|
|
240
240
|
return typeof C == "object" && C !== null && C.$$typeof === f;
|
|
241
241
|
}
|
|
242
|
-
var x = te, f = Symbol.for("react.transitional.element"), j = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), N = Symbol.for("react.profiler"), g = Symbol.for("react.consumer"), _ = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), P = Symbol.for("react.suspense_list"), B = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), W = Symbol.for("react.activity"), O = Symbol.for("react.client.reference"), A = x.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
|
|
242
|
+
var x = te, f = Symbol.for("react.transitional.element"), j = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), N = Symbol.for("react.profiler"), g = Symbol.for("react.consumer"), _ = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), P = Symbol.for("react.suspense_list"), B = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), W = Symbol.for("react.activity"), O = Symbol.for("react.client.reference"), A = x.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, y = Object.prototype.hasOwnProperty, D = Array.isArray, M = console.createTask ? console.createTask : function() {
|
|
243
243
|
return null;
|
|
244
244
|
};
|
|
245
245
|
x = {
|
|
@@ -349,7 +349,7 @@ const Ge = ({ children: n, onHide: t, disableBackplate: r }) => {
|
|
|
349
349
|
}
|
|
350
350
|
);
|
|
351
351
|
}, gn = ({ bottom: n = 0, ...t }) => {
|
|
352
|
-
const [r, s] = b(!1), [i, l] = b(!0), a = Y(null), o =
|
|
352
|
+
const [r, s] = b(!1), [i, l] = b(!0), a = Y(null), o = k(() => {
|
|
353
353
|
s(!0), setTimeout(() => {
|
|
354
354
|
t.onHide(), s(!1), l(!0);
|
|
355
355
|
}, 200);
|
|
@@ -359,7 +359,7 @@ const Ge = ({ children: n, onHide: t, disableBackplate: r }) => {
|
|
|
359
359
|
}, [t.visible]), V(() => {
|
|
360
360
|
!t.visible && !i && o();
|
|
361
361
|
}, [t.visible, o, i]);
|
|
362
|
-
const c =
|
|
362
|
+
const c = k((h) => {
|
|
363
363
|
window.innerHeight - h.changedTouches[0].clientY <= 150 && o(), a.current && (a.current.style.height = `${window.innerHeight - h.changedTouches[0].clientY + 20 - n}px`);
|
|
364
364
|
}, [o]), d = (h) => {
|
|
365
365
|
window.innerHeight - h.clientY + 20 <= 150 && o(), a.current && (a.current.style.height = `${window.innerHeight - h.clientY + 20 - n}px`);
|
|
@@ -387,7 +387,7 @@ const Ge = ({ children: n, onHide: t, disableBackplate: r }) => {
|
|
|
387
387
|
mobileSize: n.mobileSize ?? ge.mobileSize
|
|
388
388
|
};
|
|
389
389
|
t.bigSize <= 100 && (console.error("useScreenSize: invalid option"), t.bigSize = ge.bigSize), t.mobileSize <= 100 && (console.error("useScreenSize: invalid option"), t.mobileSize = ge.mobileSize), t.mobileSize >= t.bigSize && (console.error("useScreenSize: invalid option"), t.mobileSize = ge.mobileSize, t.bigSize = ge.bigSize);
|
|
390
|
-
const [r, s] = b(ee.STANDART), i =
|
|
390
|
+
const [r, s] = b(ee.STANDART), i = k(() => {
|
|
391
391
|
window.innerWidth < t.mobileSize ? s(ee.MOBILE) : window.innerWidth < t.bigSize ? s(ee.STANDART) : s(ee.BIG_SCREEN);
|
|
392
392
|
}, [window.innerWidth]);
|
|
393
393
|
return V(() => {
|
|
@@ -441,7 +441,7 @@ const Ge = ({ children: n, onHide: t, disableBackplate: r }) => {
|
|
|
441
441
|
shadow: u = 0,
|
|
442
442
|
...m
|
|
443
443
|
}, h) => {
|
|
444
|
-
const x =
|
|
444
|
+
const x = k(
|
|
445
445
|
(j) => {
|
|
446
446
|
o || (l == null || l(j), !d && f(j));
|
|
447
447
|
},
|
|
@@ -1902,11 +1902,11 @@ const kn = (n) => /* @__PURE__ */ e.jsx($, { ...n, className: `${n.className} ic
|
|
|
1902
1902
|
customActions: u,
|
|
1903
1903
|
btns: m
|
|
1904
1904
|
}) => {
|
|
1905
|
-
const h =
|
|
1905
|
+
const h = k(() => {
|
|
1906
1906
|
l == null || l(), o == null || o();
|
|
1907
|
-
}, [l, o]), x =
|
|
1907
|
+
}, [l, o]), x = k(() => {
|
|
1908
1908
|
a == null || a(), o == null || o();
|
|
1909
|
-
}, [a, o]), f =
|
|
1909
|
+
}, [a, o]), f = k(() => u || (d ? null : m ? /* @__PURE__ */ e.jsx(Pe, { onHide: x, onSuccess: h, btns: m }) : /* @__PURE__ */ e.jsx(Pe, { onHide: x, onSuccess: h, btns: [
|
|
1910
1910
|
{
|
|
1911
1911
|
text: i,
|
|
1912
1912
|
hide: !0,
|
|
@@ -1948,7 +1948,7 @@ const kn = (n) => /* @__PURE__ */ e.jsx($, { ...n, className: `${n.className} ic
|
|
|
1948
1948
|
disabled: l,
|
|
1949
1949
|
...a
|
|
1950
1950
|
}) => {
|
|
1951
|
-
const [o, c] = b(!1), d =
|
|
1951
|
+
const [o, c] = b(!1), d = k(async (h) => {
|
|
1952
1952
|
if (!l) {
|
|
1953
1953
|
try {
|
|
1954
1954
|
await navigator.clipboard.writeText(n), c(!0), setTimeout(() => c(!1), r);
|
|
@@ -2250,7 +2250,7 @@ const An = {
|
|
|
2250
2250
|
})
|
|
2251
2251
|
};
|
|
2252
2252
|
function nr(n, t = !1) {
|
|
2253
|
-
const [r, s] = b({ ...An, ...n }), [i, l] = b(t), a =
|
|
2253
|
+
const [r, s] = b({ ...An, ...n }), [i, l] = b(t), a = k(
|
|
2254
2254
|
(c, d) => {
|
|
2255
2255
|
const u = er[c];
|
|
2256
2256
|
if (!u) return;
|
|
@@ -2310,7 +2310,7 @@ const tr = {
|
|
|
2310
2310
|
function sr(n = "light") {
|
|
2311
2311
|
const [t, r] = b(
|
|
2312
2312
|
Ke
|
|
2313
|
-
), [s, i] = b(n), { colors: l, setColor: a, setReverse: o } = nr(t[s].colors, t[s].reverse), c =
|
|
2313
|
+
), [s, i] = b(n), { colors: l, setColor: a, setReverse: o } = nr(t[s].colors, t[s].reverse), c = k(
|
|
2314
2314
|
(x) => {
|
|
2315
2315
|
const f = t[x].colors;
|
|
2316
2316
|
f && (Object.entries(f).forEach(([j, p]) => {
|
|
@@ -2322,7 +2322,7 @@ function sr(n = "light") {
|
|
|
2322
2322
|
V(() => {
|
|
2323
2323
|
c(s);
|
|
2324
2324
|
}, [s, c]);
|
|
2325
|
-
const d =
|
|
2325
|
+
const d = k(
|
|
2326
2326
|
(x, f, j) => {
|
|
2327
2327
|
r((p) => ({
|
|
2328
2328
|
...p,
|
|
@@ -2333,17 +2333,17 @@ function sr(n = "light") {
|
|
|
2333
2333
|
}));
|
|
2334
2334
|
},
|
|
2335
2335
|
[]
|
|
2336
|
-
), u =
|
|
2336
|
+
), u = k((x, f = "light", j) => {
|
|
2337
2337
|
r((p) => ({
|
|
2338
2338
|
...p,
|
|
2339
2339
|
[x]: { colors: p[f].colors, reverse: j === void 0 ? p[f].reverse : j }
|
|
2340
2340
|
}));
|
|
2341
|
-
}, []), m =
|
|
2341
|
+
}, []), m = k((x) => {
|
|
2342
2342
|
r((f) => {
|
|
2343
2343
|
const j = { ...f };
|
|
2344
2344
|
return delete j[x], j;
|
|
2345
2345
|
}), s === x && i("light");
|
|
2346
|
-
}, [s]), h =
|
|
2346
|
+
}, [s]), h = k(
|
|
2347
2347
|
(x) => {
|
|
2348
2348
|
Ke[x] && r((f) => ({
|
|
2349
2349
|
...f,
|
|
@@ -2410,7 +2410,7 @@ const $e = () => {
|
|
|
2410
2410
|
}, [c]), V(() => {
|
|
2411
2411
|
o !== void 0 && (g(o), W());
|
|
2412
2412
|
}, [o]);
|
|
2413
|
-
const W =
|
|
2413
|
+
const W = k(() => {
|
|
2414
2414
|
u && P();
|
|
2415
2415
|
}, [P]), O = (E) => {
|
|
2416
2416
|
const U = parseFloat(E.target.value);
|
|
@@ -2418,7 +2418,7 @@ const $e = () => {
|
|
|
2418
2418
|
}, A = oe(
|
|
2419
2419
|
() => i !== s ? (N - s) / (i - s) * 100 : 0,
|
|
2420
2420
|
[N, s, i]
|
|
2421
|
-
),
|
|
2421
|
+
), y = oe(() => ({
|
|
2422
2422
|
...j.style,
|
|
2423
2423
|
[c === "vertical" ? "height" : "width"]: `${A}%`,
|
|
2424
2424
|
background: d === "point" ? "transperent" : d === "static-color" ? w : On(A / 100, w, x)
|
|
@@ -2451,7 +2451,7 @@ const $e = () => {
|
|
|
2451
2451
|
style: D,
|
|
2452
2452
|
children: [
|
|
2453
2453
|
/* @__PURE__ */ e.jsxs("div", { className: "track", style: { background: t }, children: [
|
|
2454
|
-
/* @__PURE__ */ e.jsx("div", { className: "active-track", style:
|
|
2454
|
+
/* @__PURE__ */ e.jsx("div", { className: "active-track", style: y }),
|
|
2455
2455
|
/* @__PURE__ */ e.jsx(Tn, { text: Math.round(N).toString(), state: B, className: "value-popup" })
|
|
2456
2456
|
] }),
|
|
2457
2457
|
/* @__PURE__ */ e.jsx(
|
|
@@ -2504,11 +2504,11 @@ const $e = () => {
|
|
|
2504
2504
|
className: _,
|
|
2505
2505
|
startColor: S
|
|
2506
2506
|
}) => {
|
|
2507
|
-
const T = Y(null), P = Y(!1), B = d * 2, w = d * 2, W = Math.min(B, w), O = B / 2, A = w / 2,
|
|
2507
|
+
const T = Y(null), P = Y(!1), B = d * 2, w = d * 2, W = Math.min(B, w), O = B / 2, A = w / 2, y = W / 2 - c / 2, D = o === "point" ? !1 : f, M = o === "point" ? !0 : j, { colors: E } = ve(ln), U = m ?? E.Primary_color ?? "#0000ff", I = h ?? E.Primary_color ?? "#0000ff", [H, G] = b(r);
|
|
2508
2508
|
V(() => {
|
|
2509
2509
|
r !== void 0 && G(r);
|
|
2510
2510
|
}, [r]);
|
|
2511
|
-
const C =
|
|
2511
|
+
const C = k(() => {
|
|
2512
2512
|
switch (a) {
|
|
2513
2513
|
case "semicircle":
|
|
2514
2514
|
return 180;
|
|
@@ -2517,37 +2517,37 @@ const $e = () => {
|
|
|
2517
2517
|
default:
|
|
2518
2518
|
return 360;
|
|
2519
2519
|
}
|
|
2520
|
-
}, [a]), L =
|
|
2520
|
+
}, [a]), L = k(() => a === "semicircle" ? [y * Math.PI, y * Math.PI] : a === "brokenCircle" ? [y * Math.PI * 1.25, y * Math.PI * 1.5] : [y * Math.PI, y * Math.PI * 2], [a, y]), R = oe(
|
|
2521
2521
|
() => t !== n ? (H - n) / (t - n) * 100 : 0,
|
|
2522
2522
|
[H, n, t]
|
|
2523
|
-
), q =
|
|
2523
|
+
), q = k(() => {
|
|
2524
2524
|
if (!T.current) return;
|
|
2525
2525
|
const [Z, he] = L(), pe = (H - n) * he / (t - n);
|
|
2526
2526
|
if (x) {
|
|
2527
2527
|
const X = T.current.querySelector('[data-el="base"]');
|
|
2528
|
-
X && (X.style.stroke = u, X.style.strokeWidth = c.toString(), X.style.strokeLinecap = p ? "round" : "", X.style.strokeDashoffset = Z.toString(), X.style.strokeDasharray = `${he}, ${
|
|
2528
|
+
X && (X.style.stroke = u, X.style.strokeWidth = c.toString(), X.style.strokeLinecap = p ? "round" : "", X.style.strokeDashoffset = Z.toString(), X.style.strokeDasharray = `${he}, ${y * Math.PI * 2 - he}`);
|
|
2529
2529
|
}
|
|
2530
2530
|
if (D) {
|
|
2531
2531
|
const X = T.current.querySelector('[data-el="indicator"]');
|
|
2532
2532
|
if (X) {
|
|
2533
2533
|
const xe = parseFloat(X.dataset.percentage ?? "");
|
|
2534
|
-
xe !== null && (xe < R - 2 || xe > R + 2) ? X.style.transition = ".3s" : X.style.transition = P.current ? "none" : ".3s", X.dataset.percentage = R.toString(), X.style.stroke = o === "static-color" ? U : On(R / 100, U, S), X.style.strokeWidth = c.toString(), X.style.strokeLinecap = p ? "round" : "", X.style.strokeDashoffset = Z.toString(), X.style.strokeDasharray = `${pe}, ${
|
|
2534
|
+
xe !== null && (xe < R - 2 || xe > R + 2) ? X.style.transition = ".3s" : X.style.transition = P.current ? "none" : ".3s", X.dataset.percentage = R.toString(), X.style.stroke = o === "static-color" ? U : On(R / 100, U, S), X.style.strokeWidth = c.toString(), X.style.strokeLinecap = p ? "round" : "", X.style.strokeDashoffset = Z.toString(), X.style.strokeDasharray = `${pe}, ${y * Math.PI * 2 - pe}`;
|
|
2535
2535
|
}
|
|
2536
2536
|
}
|
|
2537
2537
|
if (M) {
|
|
2538
2538
|
const X = T.current.querySelector('[data-el="point"]');
|
|
2539
2539
|
if (X) {
|
|
2540
2540
|
const xe = parseFloat(X.dataset.percentage ?? "");
|
|
2541
|
-
xe !== null && (xe < R - 2 || xe > R + 2) ? X.style.transition = ".3s" : X.style.transition = P.current ? "none" : ".3s", X.dataset.percentage = R.toString(), X.style.stroke = I, X.style.strokeWidth = c.toString(), X.style.strokeLinecap = "round", H === t && a === "semicircle" ? X.style.strokeDashoffset = "0" : X.style.strokeDashoffset = (Z - pe).toString(), X.style.strokeDasharray = `0, ${
|
|
2541
|
+
xe !== null && (xe < R - 2 || xe > R + 2) ? X.style.transition = ".3s" : X.style.transition = P.current ? "none" : ".3s", X.dataset.percentage = R.toString(), X.style.stroke = I, X.style.strokeWidth = c.toString(), X.style.strokeLinecap = "round", H === t && a === "semicircle" ? X.style.strokeDashoffset = "0" : X.style.strokeDashoffset = (Z - pe).toString(), X.style.strokeDasharray = `0, ${y * Math.PI * 2}`;
|
|
2542
2542
|
}
|
|
2543
2543
|
}
|
|
2544
|
-
}, [H, L, t, n,
|
|
2544
|
+
}, [H, L, t, n, y, c, u, U, I, x, D, M, p, R, S]), Q = (Z) => {
|
|
2545
2545
|
P.current = !0, document.addEventListener("mousemove", ne), document.addEventListener("mouseup", J), le(Z);
|
|
2546
2546
|
}, ne = (Z) => {
|
|
2547
2547
|
Z.preventDefault(), P.current && le(Z);
|
|
2548
2548
|
}, J = () => {
|
|
2549
2549
|
P.current = !1, document.removeEventListener("mousemove", ne), document.removeEventListener("mouseup", J);
|
|
2550
|
-
}, le =
|
|
2550
|
+
}, le = k((Z) => {
|
|
2551
2551
|
if (!T.current) return;
|
|
2552
2552
|
const he = C(), pe = T.current.getBoundingClientRect(), X = pe.left + pe.width / 2, xe = pe.top + pe.height / 2, tt = Z.clientX, rt = Z.clientY, st = xe - rt, it = X - tt;
|
|
2553
2553
|
let ae = Math.atan2(st, it) * (180 / Math.PI);
|
|
@@ -2579,7 +2579,7 @@ const $e = () => {
|
|
|
2579
2579
|
fill: "none",
|
|
2580
2580
|
cx: O,
|
|
2581
2581
|
cy: A,
|
|
2582
|
-
r:
|
|
2582
|
+
r: y
|
|
2583
2583
|
}
|
|
2584
2584
|
),
|
|
2585
2585
|
D && /* @__PURE__ */ e.jsx(
|
|
@@ -2589,7 +2589,7 @@ const $e = () => {
|
|
|
2589
2589
|
fill: "none",
|
|
2590
2590
|
cx: O,
|
|
2591
2591
|
cy: A,
|
|
2592
|
-
r:
|
|
2592
|
+
r: y
|
|
2593
2593
|
}
|
|
2594
2594
|
),
|
|
2595
2595
|
M && /* @__PURE__ */ e.jsx(
|
|
@@ -2599,7 +2599,7 @@ const $e = () => {
|
|
|
2599
2599
|
fill: "none",
|
|
2600
2600
|
cx: O,
|
|
2601
2601
|
cy: A,
|
|
2602
|
-
r:
|
|
2602
|
+
r: y
|
|
2603
2603
|
}
|
|
2604
2604
|
)
|
|
2605
2605
|
]
|
|
@@ -2686,7 +2686,7 @@ const se = ({ style: n, short: t, text: r }) => r ? /* @__PURE__ */ e.jsxs("div"
|
|
|
2686
2686
|
r ? null : /* @__PURE__ */ e.jsx("div", { style: { zIndex: 4 }, className: "menu-block-backplate", onClick: t })
|
|
2687
2687
|
] });
|
|
2688
2688
|
}, or = ({ onHide: n, autoHide: t, globalClick: r, item: s, isIcon: i, smallDisplay: l }) => {
|
|
2689
|
-
const [a, o] = b(!1), c =
|
|
2689
|
+
const [a, o] = b(!1), c = k(() => {
|
|
2690
2690
|
s.subItems ? o((d) => !d) : (s.onClick && s.onClick(), r && r(), t && n && n());
|
|
2691
2691
|
}, [s.onClick]);
|
|
2692
2692
|
return /* @__PURE__ */ e.jsxs("div", { className: `menu-item ${s.disabled ? "menu-item_disabled" : ""}`, children: [
|
|
@@ -2986,11 +2986,11 @@ function xr({
|
|
|
2986
2986
|
defaultValue: c,
|
|
2987
2987
|
style: d
|
|
2988
2988
|
}) {
|
|
2989
|
-
const [u, m] = b(c), h =
|
|
2989
|
+
const [u, m] = b(c), h = k(() => {
|
|
2990
2990
|
u !== void 0 && (n == null || n(u), m(void 0), !i && (s == null || s()));
|
|
2991
|
-
}, [u, n, i, s]), x =
|
|
2991
|
+
}, [u, n, i, s]), x = k(() => {
|
|
2992
2992
|
s == null || s();
|
|
2993
|
-
}, [s]), f =
|
|
2993
|
+
}, [s]), f = k((j) => {
|
|
2994
2994
|
m(j);
|
|
2995
2995
|
}, []);
|
|
2996
2996
|
return /* @__PURE__ */ e.jsxs(
|
|
@@ -3101,7 +3101,7 @@ const Ve = te.forwardRef(
|
|
|
3101
3101
|
errorText: w,
|
|
3102
3102
|
onKeyDown: W
|
|
3103
3103
|
}, O) => {
|
|
3104
|
-
const A = Y(null), [
|
|
3104
|
+
const A = Y(null), [y, D] = b(!1), [M, E] = b(!1), [U, I] = b(!!h), H = We(), G = () => {
|
|
3105
3105
|
if (!A.current) return;
|
|
3106
3106
|
const Q = A.current.querySelector("input");
|
|
3107
3107
|
Q == null || Q.focus();
|
|
@@ -3109,7 +3109,7 @@ const Ve = te.forwardRef(
|
|
|
3109
3109
|
p == null || p(Q), E(!0);
|
|
3110
3110
|
}, L = (Q) => {
|
|
3111
3111
|
v == null || v(Q), E(!1), I(!!Q.target.value);
|
|
3112
|
-
}, R =
|
|
3112
|
+
}, R = k(
|
|
3113
3113
|
(Q, ne) => D(!!(N || Q && (!ne || ne === ""))),
|
|
3114
3114
|
[N]
|
|
3115
3115
|
);
|
|
@@ -3134,7 +3134,7 @@ const Ve = te.forwardRef(
|
|
|
3134
3134
|
${o ? "input-field_border" : ""}
|
|
3135
3135
|
${M ? "input-field_active" : ""}
|
|
3136
3136
|
${i ? "input-field_transparent" : ""}
|
|
3137
|
-
${
|
|
3137
|
+
${y ? "input-field_error" : ""}
|
|
3138
3138
|
${T ? "input-field_disabled" : ""}
|
|
3139
3139
|
`,
|
|
3140
3140
|
onClick: G,
|
|
@@ -3154,7 +3154,7 @@ const Ve = te.forwardRef(
|
|
|
3154
3154
|
type: a ? "password" : s,
|
|
3155
3155
|
className: `
|
|
3156
3156
|
input-field__input-container__input
|
|
3157
|
-
${
|
|
3157
|
+
${y ? "input-field__input-container__input_error" : ""}
|
|
3158
3158
|
`,
|
|
3159
3159
|
name: m,
|
|
3160
3160
|
value: h,
|
|
@@ -3164,8 +3164,8 @@ const Ve = te.forwardRef(
|
|
|
3164
3164
|
onBlur: L,
|
|
3165
3165
|
onKeyDown: W,
|
|
3166
3166
|
autoFocus: S,
|
|
3167
|
-
"aria-invalid":
|
|
3168
|
-
"aria-describedby":
|
|
3167
|
+
"aria-invalid": y,
|
|
3168
|
+
"aria-describedby": y ? `${m}-error` : void 0
|
|
3169
3169
|
}
|
|
3170
3170
|
),
|
|
3171
3171
|
x && /* @__PURE__ */ e.jsx(
|
|
@@ -3187,8 +3187,8 @@ const Ve = te.forwardRef(
|
|
|
3187
3187
|
]
|
|
3188
3188
|
}
|
|
3189
3189
|
),
|
|
3190
|
-
|
|
3191
|
-
B && !
|
|
3190
|
+
y && w && /* @__PURE__ */ e.jsx(K, { type: "small", className: "input-field-container__error-text", children: w }),
|
|
3191
|
+
B && !y && /* @__PURE__ */ e.jsx(K, { type: "small", className: "input-field-container__helper-text", children: B })
|
|
3192
3192
|
] });
|
|
3193
3193
|
}
|
|
3194
3194
|
);
|
|
@@ -3218,9 +3218,9 @@ const Ts = ({
|
|
|
3218
3218
|
} else
|
|
3219
3219
|
p(!0);
|
|
3220
3220
|
}, [x, h, a, o, c]);
|
|
3221
|
-
const v =
|
|
3221
|
+
const v = k(() => {
|
|
3222
3222
|
j && (s == null || s(x), i == null || i());
|
|
3223
|
-
}, [x, j, s, i]), N =
|
|
3223
|
+
}, [x, j, s, i]), N = k(() => {
|
|
3224
3224
|
i == null || i();
|
|
3225
3225
|
}, [i]), g = (_) => {
|
|
3226
3226
|
if (a === "number") {
|
|
@@ -3289,16 +3289,17 @@ const Ts = ({
|
|
|
3289
3289
|
saveText: d,
|
|
3290
3290
|
cancelText: u,
|
|
3291
3291
|
forceFullScreen: m,
|
|
3292
|
-
|
|
3292
|
+
maxWidth: h,
|
|
3293
|
+
btns: x
|
|
3293
3294
|
}) => {
|
|
3294
|
-
const { screen:
|
|
3295
|
+
const { screen: f } = ve(we);
|
|
3295
3296
|
vn(!0, document.body);
|
|
3296
|
-
const
|
|
3297
|
+
const j = k(() => {
|
|
3297
3298
|
a == null || a();
|
|
3298
|
-
},
|
|
3299
|
+
}, [a]), p = k(() => {
|
|
3299
3300
|
l == null || l();
|
|
3300
|
-
};
|
|
3301
|
-
return m ||
|
|
3301
|
+
}, [l]);
|
|
3302
|
+
return m || f === ee.MOBILE ? /* @__PURE__ */ e.jsxs(
|
|
3302
3303
|
"div",
|
|
3303
3304
|
{
|
|
3304
3305
|
style: {
|
|
@@ -3317,32 +3318,33 @@ const Ts = ({
|
|
|
3317
3318
|
ue,
|
|
3318
3319
|
{
|
|
3319
3320
|
transparent: !0,
|
|
3320
|
-
onClick:
|
|
3321
|
+
onClick: j,
|
|
3321
3322
|
icon: /* @__PURE__ */ e.jsx(ie, {}),
|
|
3322
3323
|
"aria-label": "Закрыть"
|
|
3323
3324
|
}
|
|
3324
3325
|
) }),
|
|
3325
3326
|
/* @__PURE__ */ e.jsx("div", { className: "full-screen-dialog__container__header__text", children: s }),
|
|
3326
|
-
/* @__PURE__ */ e.jsx("div", { className: "full-screen-dialog__container__header__save", children: l && /* @__PURE__ */ e.jsx("button", { onClick:
|
|
3327
|
+
/* @__PURE__ */ e.jsx("div", { className: "full-screen-dialog__container__header__save", children: l && /* @__PURE__ */ e.jsx("button", { onClick: p, className: "full-screen-dialog__container__header__save__button", children: /* @__PURE__ */ e.jsx(K, { type: "body", weight: "bold", children: d || "Сохранить" }) }) })
|
|
3327
3328
|
] }),
|
|
3328
3329
|
/* @__PURE__ */ e.jsxs("div", { className: "full-screen-dialog__content", style: t, children: [
|
|
3329
3330
|
i,
|
|
3330
|
-
|
|
3331
|
+
x && /* @__PURE__ */ e.jsx(Pe, { btns: x.filter((N) => !N.hide && !N.success) })
|
|
3331
3332
|
] })
|
|
3332
3333
|
]
|
|
3333
3334
|
}
|
|
3334
3335
|
) : /* @__PURE__ */ e.jsx(
|
|
3335
3336
|
Ye,
|
|
3336
3337
|
{
|
|
3338
|
+
maxWidth: h,
|
|
3337
3339
|
disableBackplate: c,
|
|
3338
3340
|
style: n,
|
|
3339
3341
|
header: s,
|
|
3340
3342
|
className: `full-screen-dialog ${r}`,
|
|
3341
|
-
onHide:
|
|
3342
|
-
action:
|
|
3343
|
-
a && /* @__PURE__ */ e.jsx(ye, { styleType: "outline", onClick:
|
|
3344
|
-
a && /* @__PURE__ */ e.jsx(ye, { onClick:
|
|
3345
|
-
] }) : /* @__PURE__ */ e.jsx(Pe, { btns:
|
|
3343
|
+
onHide: j,
|
|
3344
|
+
action: x === void 0 ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
3345
|
+
a && /* @__PURE__ */ e.jsx(ye, { styleType: "outline", onClick: j, children: u ?? "Отмена" }),
|
|
3346
|
+
a && /* @__PURE__ */ e.jsx(ye, { onClick: p, children: d ?? "Сохранить" })
|
|
3347
|
+
] }) : /* @__PURE__ */ e.jsx(Pe, { btns: x, onHide: a, onSuccess: l }),
|
|
3346
3348
|
children: i
|
|
3347
3349
|
}
|
|
3348
3350
|
);
|
|
@@ -3374,8 +3376,8 @@ const Ts = ({
|
|
|
3374
3376
|
}, P = (B) => {
|
|
3375
3377
|
const w = B.currentTarget, W = w.querySelector(".card-ripple-container");
|
|
3376
3378
|
if (!W) return;
|
|
3377
|
-
const O = w.getBoundingClientRect(), A = Math.max(O.width, O.height),
|
|
3378
|
-
M.className = "card-ripple", M.style.width = M.style.height = `${A}px`, M.style.left = `${
|
|
3379
|
+
const O = w.getBoundingClientRect(), A = Math.max(O.width, O.height), y = B.clientX - O.left - A / 2, D = B.clientY - O.top - A / 2, M = document.createElement("span");
|
|
3380
|
+
M.className = "card-ripple", M.style.width = M.style.height = `${A}px`, M.style.left = `${y}px`, M.style.top = `${D}px`, W.appendChild(M), setTimeout(() => M.remove(), 600);
|
|
3379
3381
|
};
|
|
3380
3382
|
return /* @__PURE__ */ e.jsxs(
|
|
3381
3383
|
"div",
|
|
@@ -3439,7 +3441,7 @@ const As = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
|
|
|
3439
3441
|
p.button == 1 && (c(!1), u(null), document.body.style.cursor = "auto");
|
|
3440
3442
|
}, f = (p) => {
|
|
3441
3443
|
p.button == 1 && a && (u({ x: p.clientX, y: p.clientY }), c(!0), document.body.style.cursor = "move");
|
|
3442
|
-
}, j =
|
|
3444
|
+
}, j = k((p) => {
|
|
3443
3445
|
o && (h((v) => {
|
|
3444
3446
|
if (!d)
|
|
3445
3447
|
return v;
|
|
@@ -3607,17 +3609,17 @@ const As = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
|
|
|
3607
3609
|
itemMaxWith: a,
|
|
3608
3610
|
itemWith: o = "400px"
|
|
3609
3611
|
}) => {
|
|
3610
|
-
const c = Y(null), [d, u] = b([]), m = Y(null), h = Y(null), x =
|
|
3612
|
+
const c = Y(null), [d, u] = b([]), m = Y(null), h = Y(null), x = k(() => {
|
|
3611
3613
|
if (!c.current) return;
|
|
3612
3614
|
c.current.style.display = "grid", c.current.style.gridRowGap = s, c.current.style.gridColumnGap = i;
|
|
3613
3615
|
const v = l ?? o, N = a ?? o;
|
|
3614
3616
|
c.current.style.gridTemplateColumns = `repeat(auto-fill, minmax(${v}, ${N}))`, c.current.style.gridAutoRows = "1px";
|
|
3615
|
-
}, [s, i, l, a, o]), f =
|
|
3617
|
+
}, [s, i, l, a, o]), f = k(() => {
|
|
3616
3618
|
if (c.current) {
|
|
3617
3619
|
const v = c.current.querySelectorAll(".adaptiv-grid-item");
|
|
3618
3620
|
u(Array.from(v));
|
|
3619
3621
|
}
|
|
3620
|
-
}, []), j =
|
|
3622
|
+
}, []), j = k(() => {
|
|
3621
3623
|
if (!c.current) return;
|
|
3622
3624
|
const v = window.getComputedStyle(c.current), N = parseInt(v.getPropertyValue("grid-row-gap")) || 0, g = parseInt(v.getPropertyValue("grid-auto-rows")) || 1;
|
|
3623
3625
|
d.forEach((_) => {
|
|
@@ -3627,7 +3629,7 @@ const As = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
|
|
|
3627
3629
|
_.style.gridRowEnd = `span ${P}`;
|
|
3628
3630
|
}
|
|
3629
3631
|
});
|
|
3630
|
-
}, [d]), p =
|
|
3632
|
+
}, [d]), p = k(() => {
|
|
3631
3633
|
h.current !== null && cancelAnimationFrame(h.current), h.current = requestAnimationFrame(() => {
|
|
3632
3634
|
j(), h.current = null;
|
|
3633
3635
|
});
|
|
@@ -3751,7 +3753,7 @@ const As = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
|
|
|
3751
3753
|
onContextMenu: c,
|
|
3752
3754
|
...d
|
|
3753
3755
|
}) => {
|
|
3754
|
-
const u = Y(null), m = Y(null), [h, x] = b(!1), f =
|
|
3756
|
+
const u = Y(null), m = Y(null), [h, x] = b(!1), f = k(() => {
|
|
3755
3757
|
if (!u.current || !m.current) return;
|
|
3756
3758
|
const j = u.current.clientWidth, p = m.current.scrollWidth;
|
|
3757
3759
|
x(j < p);
|
|
@@ -3920,7 +3922,7 @@ const kr = ({ data: n, column: t, color: r, backgroundColor: s, H: i }) => {
|
|
|
3920
3922
|
index: o,
|
|
3921
3923
|
maxH: c
|
|
3922
3924
|
}) => {
|
|
3923
|
-
const d =
|
|
3925
|
+
const d = k(
|
|
3924
3926
|
(u) => {
|
|
3925
3927
|
u.target.closest(".no-click") || a == null || a(t, o);
|
|
3926
3928
|
},
|
|
@@ -4261,14 +4263,14 @@ const Tr = [
|
|
|
4261
4263
|
);
|
|
4262
4264
|
}, [x]), V(() => {
|
|
4263
4265
|
if (!m.current || !h.current) return;
|
|
4264
|
-
const
|
|
4265
|
-
|
|
4266
|
-
|
|
4266
|
+
const y = m.current.getContext("2d");
|
|
4267
|
+
y && (Lr(
|
|
4268
|
+
y,
|
|
4267
4269
|
m.current,
|
|
4268
4270
|
`#${ke(Le(x.h, 1, 1))}`
|
|
4269
4271
|
), $r(
|
|
4270
4272
|
m.current,
|
|
4271
|
-
|
|
4273
|
+
y,
|
|
4272
4274
|
h.current,
|
|
4273
4275
|
(D, M) => {
|
|
4274
4276
|
f((E) => {
|
|
@@ -4279,8 +4281,8 @@ const Tr = [
|
|
|
4279
4281
|
));
|
|
4280
4282
|
}, [x.h]), V(() => {
|
|
4281
4283
|
if (!d.current || !u.current) return;
|
|
4282
|
-
const
|
|
4283
|
-
|
|
4284
|
+
const y = d.current.getContext("2d");
|
|
4285
|
+
y && (Er(y, d.current), Fr(y, d.current, u.current, (D) => {
|
|
4284
4286
|
f((M) => {
|
|
4285
4287
|
const E = { ...M, h: D / 360 };
|
|
4286
4288
|
return N(ke(Le(E))), E;
|
|
@@ -4294,32 +4296,32 @@ const Tr = [
|
|
|
4294
4296
|
console.warn("Invalid HEX color");
|
|
4295
4297
|
}
|
|
4296
4298
|
}, [v]);
|
|
4297
|
-
const T = (
|
|
4299
|
+
const T = (y, D, M, E, U) => {
|
|
4298
4300
|
try {
|
|
4299
|
-
const I =
|
|
4301
|
+
const I = y.getBoundingClientRect(), H = M.getBoundingClientRect(), G = Math.round(U.s * I.width), C = Math.round((1 - U.v) * I.height), L = (360 - U.h * 360) / 360 * H.height;
|
|
4300
4302
|
Un(D, G, C), Xn(E, L);
|
|
4301
4303
|
} catch (I) {
|
|
4302
4304
|
console.error("Error updating cursor positions", I);
|
|
4303
4305
|
}
|
|
4304
|
-
}, P = (
|
|
4306
|
+
}, P = (y) => {
|
|
4305
4307
|
try {
|
|
4306
|
-
f(Ie(Ne(
|
|
4308
|
+
f(Ie(Ne(y))), N(y);
|
|
4307
4309
|
} catch {
|
|
4308
4310
|
console.warn("Invalid color format");
|
|
4309
4311
|
}
|
|
4310
|
-
}, B =
|
|
4312
|
+
}, B = k(() => {
|
|
4311
4313
|
s == null || s([...a, _]);
|
|
4312
|
-
}, [s, a, _]), w =
|
|
4314
|
+
}, [s, a, _]), w = k(() => {
|
|
4313
4315
|
r == null || r(_), i && (n == null || n());
|
|
4314
|
-
}, [r, _]), W =
|
|
4315
|
-
(
|
|
4316
|
+
}, [r, _]), W = k(
|
|
4317
|
+
(y, D) => {
|
|
4316
4318
|
const M = Math.min(255, Math.max(0, D));
|
|
4317
|
-
f(Ie({ ...g, [
|
|
4319
|
+
f(Ie({ ...g, [y]: M })), N(ke({ ...g, [y]: M }));
|
|
4318
4320
|
},
|
|
4319
4321
|
[g]
|
|
4320
|
-
), O =
|
|
4321
|
-
N(
|
|
4322
|
-
}, []), A =
|
|
4322
|
+
), O = k((y) => {
|
|
4323
|
+
N(y);
|
|
4324
|
+
}, []), A = k(() => {
|
|
4323
4325
|
l && (r == null || r(l), i && (n == null || n()), P(l));
|
|
4324
4326
|
}, [l, r, P]);
|
|
4325
4327
|
return /* @__PURE__ */ e.jsxs(
|
|
@@ -4331,13 +4333,13 @@ const Tr = [
|
|
|
4331
4333
|
style: { width: o, height: c },
|
|
4332
4334
|
children: [
|
|
4333
4335
|
/* @__PURE__ */ e.jsxs("div", { className: "panel-row", style: { padding: 0 }, children: [
|
|
4334
|
-
/* @__PURE__ */ e.jsx("div", { className: "swatches default-swatches", children: Tr.map((
|
|
4336
|
+
/* @__PURE__ */ e.jsx("div", { className: "swatches default-swatches", children: Tr.map((y, D) => /* @__PURE__ */ e.jsx(
|
|
4335
4337
|
"button",
|
|
4336
4338
|
{
|
|
4337
|
-
onClick: () => P(
|
|
4339
|
+
onClick: () => P(y),
|
|
4338
4340
|
className: "swatch",
|
|
4339
|
-
style: { backgroundColor:
|
|
4340
|
-
"aria-label": `Color ${
|
|
4341
|
+
style: { backgroundColor: y },
|
|
4342
|
+
"aria-label": `Color ${y}`
|
|
4341
4343
|
},
|
|
4342
4344
|
D
|
|
4343
4345
|
)) }),
|
|
@@ -4390,9 +4392,9 @@ const Tr = [
|
|
|
4390
4392
|
] })
|
|
4391
4393
|
] }),
|
|
4392
4394
|
/* @__PURE__ */ e.jsxs("div", { className: "panel-row", style: { padding: 0 }, children: [
|
|
4393
|
-
/* @__PURE__ */ e.jsx("div", { className: `field-group value-fields rgb-fields ${j ? "" : "active"}`, children: ["r", "g", "b"].map((
|
|
4395
|
+
/* @__PURE__ */ e.jsx("div", { className: `field-group value-fields rgb-fields ${j ? "" : "active"}`, children: ["r", "g", "b"].map((y) => /* @__PURE__ */ e.jsxs("div", { className: "field-group", children: [
|
|
4394
4396
|
/* @__PURE__ */ e.jsxs("label", { className: "field-label", children: [
|
|
4395
|
-
|
|
4397
|
+
y.toUpperCase(),
|
|
4396
4398
|
":"
|
|
4397
4399
|
] }),
|
|
4398
4400
|
/* @__PURE__ */ e.jsx(
|
|
@@ -4401,13 +4403,13 @@ const Tr = [
|
|
|
4401
4403
|
type: "number",
|
|
4402
4404
|
max: "255",
|
|
4403
4405
|
min: "0",
|
|
4404
|
-
value: g[
|
|
4405
|
-
onChange: (D) => W(
|
|
4406
|
+
value: g[y],
|
|
4407
|
+
onChange: (D) => W(y, Number(D.target.value)),
|
|
4406
4408
|
className: "field-input rgb-input",
|
|
4407
|
-
"aria-label": `${
|
|
4409
|
+
"aria-label": `${y.toUpperCase()} value`
|
|
4408
4410
|
}
|
|
4409
4411
|
)
|
|
4410
|
-
] },
|
|
4412
|
+
] }, y)) }),
|
|
4411
4413
|
/* @__PURE__ */ e.jsxs("div", { className: `field-group value-fields hex-field ${j ? "active" : ""}`, children: [
|
|
4412
4414
|
/* @__PURE__ */ e.jsx("label", { className: "field-label", children: "Hex:" }),
|
|
4413
4415
|
/* @__PURE__ */ e.jsx(
|
|
@@ -4416,7 +4418,7 @@ const Tr = [
|
|
|
4416
4418
|
type: "text",
|
|
4417
4419
|
className: "field-input",
|
|
4418
4420
|
value: S,
|
|
4419
|
-
onChange: (
|
|
4421
|
+
onChange: (y) => O(y.target.value),
|
|
4420
4422
|
"aria-label": "HEX color value"
|
|
4421
4423
|
}
|
|
4422
4424
|
)
|
|
@@ -4425,7 +4427,7 @@ const Tr = [
|
|
|
4425
4427
|
"button",
|
|
4426
4428
|
{
|
|
4427
4429
|
className: "button-color-picker mode-toggle",
|
|
4428
|
-
onClick: () => p((
|
|
4430
|
+
onClick: () => p((y) => !y),
|
|
4429
4431
|
"aria-label": `Switch to ${j ? "RGB" : "HEX"} mode`,
|
|
4430
4432
|
children: "Mode"
|
|
4431
4433
|
}
|
|
@@ -4433,13 +4435,13 @@ const Tr = [
|
|
|
4433
4435
|
] }),
|
|
4434
4436
|
a.length > 0 && /* @__PURE__ */ e.jsxs("div", { className: "panel-row", style: { padding: 0 }, children: [
|
|
4435
4437
|
/* @__PURE__ */ e.jsx("h2", { className: "panel-header", children: "User Colors" }),
|
|
4436
|
-
/* @__PURE__ */ e.jsx("div", { id: "user-swatches", className: "swatches custom-swatches", children: a.map((
|
|
4438
|
+
/* @__PURE__ */ e.jsx("div", { id: "user-swatches", className: "swatches custom-swatches", children: a.map((y, D) => /* @__PURE__ */ e.jsx(
|
|
4437
4439
|
"button",
|
|
4438
4440
|
{
|
|
4439
|
-
onClick: () => P(
|
|
4441
|
+
onClick: () => P(y),
|
|
4440
4442
|
className: "swatch",
|
|
4441
|
-
style: { backgroundColor:
|
|
4442
|
-
"aria-label": `User color ${
|
|
4443
|
+
style: { backgroundColor: y },
|
|
4444
|
+
"aria-label": `User color ${y}`
|
|
4443
4445
|
},
|
|
4444
4446
|
D
|
|
4445
4447
|
)) })
|
|
@@ -4501,14 +4503,14 @@ const Tr = [
|
|
|
4501
4503
|
V(() => {
|
|
4502
4504
|
s !== void 0 && x(s);
|
|
4503
4505
|
}, [s]);
|
|
4504
|
-
const f =
|
|
4506
|
+
const f = k(() => {
|
|
4505
4507
|
m(!0);
|
|
4506
|
-
}, []), j =
|
|
4508
|
+
}, []), j = k(
|
|
4507
4509
|
(N) => {
|
|
4508
4510
|
x(N), t == null || t(N), m(!1);
|
|
4509
4511
|
},
|
|
4510
4512
|
[t]
|
|
4511
|
-
), p =
|
|
4513
|
+
), p = k(() => {
|
|
4512
4514
|
m(!1);
|
|
4513
4515
|
}, []), v = [
|
|
4514
4516
|
"input-field",
|
|
@@ -4590,7 +4592,7 @@ const Tr = [
|
|
|
4590
4592
|
), a(_);
|
|
4591
4593
|
}, N = (_) => {
|
|
4592
4594
|
u(_);
|
|
4593
|
-
}, g =
|
|
4595
|
+
}, g = k(() => {
|
|
4594
4596
|
let _ = /* @__PURE__ */ new Date();
|
|
4595
4597
|
_.setFullYear(o), d.type === "NEXT_MONTH" ? l === me[11] ? (_.setMonth(0), _.setFullYear(o + 1)) : _.setMonth(me.indexOf(l) + 1) : d.type === "PREV_MONTH" ? l === me[0] ? (_.setMonth(11), _.setFullYear(o - 1)) : _.setMonth(me.indexOf(l) - 1) : _.setMonth(me.indexOf(l)), _.setDate(d.day), n && n(_.getFullYear(), _.getMonth(), _.getDate()), t && t();
|
|
4596
4598
|
}, [l, o, n, t, d]);
|
|
@@ -4662,17 +4664,17 @@ const Tr = [
|
|
|
4662
4664
|
}, A = (I) => {
|
|
4663
4665
|
let H = String(I);
|
|
4664
4666
|
return H.length < 2 && (H = "0" + H), H;
|
|
4665
|
-
},
|
|
4667
|
+
}, y = (I) => {
|
|
4666
4668
|
x == null || x(I), S(!0);
|
|
4667
4669
|
}, D = (I) => {
|
|
4668
4670
|
h == null || h(I), S(!1), P(!!I.target.value);
|
|
4669
|
-
}, M =
|
|
4671
|
+
}, M = k(() => {
|
|
4670
4672
|
v(""), f == null || f(), t == null || t("");
|
|
4671
4673
|
}, [f, t]);
|
|
4672
4674
|
V(() => {
|
|
4673
4675
|
P(!!s);
|
|
4674
4676
|
}, [s]);
|
|
4675
|
-
const E =
|
|
4677
|
+
const E = k((I, H, G) => {
|
|
4676
4678
|
v(`${I}-${O(H)}-${A(G)}`), t && t(`${I}-${O(H)}-${A(G)}`);
|
|
4677
4679
|
}, [t]), U = {
|
|
4678
4680
|
small: "input-field__date-field_small",
|
|
@@ -4701,7 +4703,7 @@ const Tr = [
|
|
|
4701
4703
|
name: r,
|
|
4702
4704
|
value: p,
|
|
4703
4705
|
onBlur: D,
|
|
4704
|
-
onFocus:
|
|
4706
|
+
onFocus: y,
|
|
4705
4707
|
readOnly: !0,
|
|
4706
4708
|
id: B,
|
|
4707
4709
|
...j
|
|
@@ -4746,12 +4748,12 @@ const Tr = [
|
|
|
4746
4748
|
V(() => {
|
|
4747
4749
|
t && l(t);
|
|
4748
4750
|
}, [t]);
|
|
4749
|
-
const a =
|
|
4751
|
+
const a = k((c) => (d) => {
|
|
4750
4752
|
l((u) => {
|
|
4751
4753
|
const m = d.target.checked ? [...u, c] : u.filter((h) => h !== c);
|
|
4752
4754
|
return n == null || n(m), m;
|
|
4753
4755
|
});
|
|
4754
|
-
}, [n]), o =
|
|
4756
|
+
}, [n]), o = k((c) => i.includes(c), [i]);
|
|
4755
4757
|
return /* @__PURE__ */ e.jsx("div", { className: `days-week-field-container ${r}`, children: Br.map((c) => /* @__PURE__ */ e.jsxs("label", { className: "day-of-week-label", children: [
|
|
4756
4758
|
/* @__PURE__ */ e.jsx(
|
|
4757
4759
|
"input",
|
|
@@ -4792,7 +4794,7 @@ const Gr = (n, t = ",") => n === "" ? [] : n.split(t).map((r) => r.trim()), pn =
|
|
|
4792
4794
|
N(w);
|
|
4793
4795
|
}, T = (w) => {
|
|
4794
4796
|
w.key === "Enter" && (w.preventDefault(), P());
|
|
4795
|
-
}, P =
|
|
4797
|
+
}, P = k(() => {
|
|
4796
4798
|
if (v.trim() === "" || j.includes(v.trim()))
|
|
4797
4799
|
return;
|
|
4798
4800
|
const w = [...j, v.trim()];
|
|
@@ -4898,26 +4900,26 @@ const Gr = (n, t = ",") => n === "" ? [] : n.split(t).map((r) => r.trim()), pn =
|
|
|
4898
4900
|
ariaLabelledby: B,
|
|
4899
4901
|
ariaDescribedby: w
|
|
4900
4902
|
}, W) => {
|
|
4901
|
-
const O = Y(null), A = Y(null),
|
|
4903
|
+
const O = Y(null), A = Y(null), y = Y(null), D = Y(null), [M, E] = b(!1), [U, I] = b(d ?? 0), H = k((z, Z) => E(!!(j || z && (!Z || Z === ""))), [j]), G = () => {
|
|
4902
4904
|
if (!D.current)
|
|
4903
4905
|
return;
|
|
4904
4906
|
const z = D.current.querySelector("input");
|
|
4905
4907
|
z && z.focus();
|
|
4906
|
-
}, C =
|
|
4907
|
-
o && (
|
|
4908
|
-
|
|
4908
|
+
}, C = k((z, Z) => {
|
|
4909
|
+
o && (y.current && (clearTimeout(y.current), y.current = null), y.current = setTimeout(() => {
|
|
4910
|
+
y.current && (clearTimeout(y.current), y.current = null), o(z, Z);
|
|
4909
4911
|
}, 100));
|
|
4910
|
-
}, [o]), L =
|
|
4912
|
+
}, [o]), L = k(() => {
|
|
4911
4913
|
I((z) => {
|
|
4912
4914
|
let Z = z ? z + _ : _;
|
|
4913
4915
|
return typeof p == "number" && Z > p && (Z = p), C(Z, c), Z;
|
|
4914
4916
|
});
|
|
4915
|
-
}, [C, c, p, _]), R =
|
|
4917
|
+
}, [C, c, p, _]), R = k(() => {
|
|
4916
4918
|
I((z) => {
|
|
4917
4919
|
let Z = z ? z - _ : -_;
|
|
4918
4920
|
return typeof v == "number" && Z < v && (Z = v), C(Z, c), Z;
|
|
4919
4921
|
});
|
|
4920
|
-
}, [C, c, v, _]), q =
|
|
4922
|
+
}, [C, c, v, _]), q = k((z) => {
|
|
4921
4923
|
if (z.target.value === "") {
|
|
4922
4924
|
I("");
|
|
4923
4925
|
return;
|
|
@@ -4925,9 +4927,9 @@ const Gr = (n, t = ",") => n === "" ? [] : n.split(t).map((r) => r.trim()), pn =
|
|
|
4925
4927
|
z.target.value.length > 1 && z.target.value[0] === "0" && ![",", "."].includes(z.target.value[1]) && (z.target.value = z.target.value.slice(1));
|
|
4926
4928
|
let Z = Number(z.target.value);
|
|
4927
4929
|
typeof v == "number" && Z < v && (Z = v), typeof p == "number" && Z > p && (Z = p), I(Number(z.target.value)), C(Z, c);
|
|
4928
|
-
}, [c, C, U, p, v]), Q =
|
|
4930
|
+
}, [c, C, U, p, v]), Q = k(() => {
|
|
4929
4931
|
O.current && clearTimeout(O.current), A.current && clearInterval(A.current), document.removeEventListener("mouseup", Q);
|
|
4930
|
-
}, []), ne =
|
|
4932
|
+
}, []), ne = k((z) => {
|
|
4931
4933
|
z === "p" ? L() : z === "m" && R(), O.current && clearTimeout(O.current), A.current && clearInterval(A.current), document.addEventListener("mouseup", Q), O.current = setTimeout(() => {
|
|
4932
4934
|
A.current = setInterval(() => {
|
|
4933
4935
|
z === "p" ? L() : z === "m" && R();
|
|
@@ -4939,7 +4941,7 @@ const Gr = (n, t = ",") => n === "" ? [] : n.split(t).map((r) => r.trim()), pn =
|
|
|
4939
4941
|
V(() => {
|
|
4940
4942
|
H(h, d);
|
|
4941
4943
|
}, [d, h, H]), V(() => {
|
|
4942
|
-
d !== void 0 && !
|
|
4944
|
+
d !== void 0 && !y.current && I(d);
|
|
4943
4945
|
}, [d]);
|
|
4944
4946
|
const le = {
|
|
4945
4947
|
small: "input-field__number-field_small",
|
|
@@ -5080,7 +5082,7 @@ const qn = te.forwardRef(
|
|
|
5080
5082
|
rows: S = 3,
|
|
5081
5083
|
onKeyDown: T
|
|
5082
5084
|
}, P) => {
|
|
5083
|
-
const B = Y(null), [w, W] = b(!1), [O, A] = b(!1), [
|
|
5085
|
+
const B = Y(null), [w, W] = b(!1), [O, A] = b(!1), [y, D] = b(!!u), M = We(), E = () => {
|
|
5084
5086
|
var C;
|
|
5085
5087
|
const G = (C = B.current) == null ? void 0 : C.querySelector("textarea");
|
|
5086
5088
|
G == null || G.focus();
|
|
@@ -5088,7 +5090,7 @@ const qn = te.forwardRef(
|
|
|
5088
5090
|
f == null || f(G), A(!0);
|
|
5089
5091
|
}, I = (G) => {
|
|
5090
5092
|
j == null || j(G), A(!1), D(!!G.target.value);
|
|
5091
|
-
}, H =
|
|
5093
|
+
}, H = k(
|
|
5092
5094
|
(G, C) => W(!!(p || G && (!C || C === ""))),
|
|
5093
5095
|
[p]
|
|
5094
5096
|
);
|
|
@@ -5140,7 +5142,7 @@ const qn = te.forwardRef(
|
|
|
5140
5142
|
{
|
|
5141
5143
|
htmlFor: M,
|
|
5142
5144
|
onClick: E,
|
|
5143
|
-
className: `input-field__input-container__label input-field__text-area__label ${
|
|
5145
|
+
className: `input-field__input-container__label input-field__text-area__label ${y ? "input-field__input-container__label_filled" : ""}`,
|
|
5144
5146
|
children: /* @__PURE__ */ e.jsx("span", { className: "input-field__input-container__label__span", children: m })
|
|
5145
5147
|
}
|
|
5146
5148
|
)
|
|
@@ -5156,11 +5158,11 @@ const qn = te.forwardRef(
|
|
|
5156
5158
|
);
|
|
5157
5159
|
qn.displayName = "TextArea";
|
|
5158
5160
|
const Yr = ({ setHours: n, setMinutes: t, switchMode: r, hours: s, minutes: i, onCancel: l, onOK: a }) => {
|
|
5159
|
-
const [o, c] = b(!1), d =
|
|
5161
|
+
const [o, c] = b(!1), d = k((h) => {
|
|
5160
5162
|
n(h), c(!0);
|
|
5161
|
-
}, [n]), u =
|
|
5163
|
+
}, [n]), u = k((h) => {
|
|
5162
5164
|
t(h), c(!1);
|
|
5163
|
-
}, [t]), m =
|
|
5165
|
+
}, [t]), m = k(() => {
|
|
5164
5166
|
c(!1), l();
|
|
5165
5167
|
}, []);
|
|
5166
5168
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
@@ -5266,9 +5268,9 @@ const Kr = ({ setHours: n, setMinutes: t, switchMode: r, minutes: s, hours: i, o
|
|
|
5266
5268
|
}, qr = (n) => {
|
|
5267
5269
|
const [t, r] = b(n.minutes ?? 0), [s, i] = b(n.hours ?? 0), [l, a] = b(!0), o = () => {
|
|
5268
5270
|
n.onHide && n.onHide(), r(0), i(0);
|
|
5269
|
-
}, c =
|
|
5271
|
+
}, c = k((u) => {
|
|
5270
5272
|
r(u), n.onChange && n.onChange(s, u), n.onHide && n.onHide();
|
|
5271
|
-
}, [s]), d =
|
|
5273
|
+
}, [s]), d = k(() => {
|
|
5272
5274
|
n.onChange && n.onChange(s, t), n.onHide && n.onHide();
|
|
5273
5275
|
}, [s, t]);
|
|
5274
5276
|
return l ? /* @__PURE__ */ e.jsx(Ee, { className: "enter-time-container", children: /* @__PURE__ */ e.jsx(Yr, { setMinutes: c, setHours: i, minutes: t, hours: s, switchMode: () => a(!1), onCancel: o, onOK: d }) }) : /* @__PURE__ */ e.jsx(Ee, { className: "enter-time-container", children: /* @__PURE__ */ e.jsx(Kr, { setMinutes: r, setHours: i, minutes: t, hours: s, switchMode: () => a(!0), onCancel: o, onOK: d }) });
|
|
@@ -5298,11 +5300,11 @@ const Kr = ({ setHours: n, setMinutes: t, switchMode: r, minutes: s, hours: i, o
|
|
|
5298
5300
|
style: N,
|
|
5299
5301
|
...g
|
|
5300
5302
|
}) => {
|
|
5301
|
-
const [_, S] = b(s), [T, P] = b(!1), [B, w] = b(!1), [W, O] = b(!!s), A = We(),
|
|
5303
|
+
const [_, S] = b(s), [T, P] = b(!1), [B, w] = b(!1), [W, O] = b(!!s), A = We(), y = a || !!d;
|
|
5302
5304
|
V(() => {
|
|
5303
5305
|
S(s);
|
|
5304
5306
|
}, [s]);
|
|
5305
|
-
const D =
|
|
5307
|
+
const D = k(() => y || l && !_ ? "error" : "", [_, y, l]), M = (R, q) => {
|
|
5306
5308
|
const Q = String(R).padStart(2, "0"), ne = String(q).padStart(2, "0"), J = `${Q}:${ne}`;
|
|
5307
5309
|
S(J), t == null || t(J);
|
|
5308
5310
|
}, E = () => {
|
|
@@ -5311,13 +5313,13 @@ const Kr = ({ setHours: n, setMinutes: t, switchMode: r, minutes: s, hours: i, o
|
|
|
5311
5313
|
p == null || p(R), w(!0);
|
|
5312
5314
|
}, I = (R) => {
|
|
5313
5315
|
j == null || j(R), w(!1), O(!!R.target.value);
|
|
5314
|
-
}, H =
|
|
5316
|
+
}, H = k(() => {
|
|
5315
5317
|
S(""), v == null || v(), t == null || t("");
|
|
5316
5318
|
}, [v, t]);
|
|
5317
5319
|
V(() => {
|
|
5318
5320
|
O(!!s);
|
|
5319
5321
|
}, [s]);
|
|
5320
|
-
const G = _ && parseInt(_.split(":")[0]) || 0, C = _ && parseInt(_.split(":")[1]) || 0, L = oe(() =>
|
|
5322
|
+
const G = _ && parseInt(_.split(":")[0]) || 0, C = _ && parseInt(_.split(":")[1]) || 0, L = oe(() => y && d ? /* @__PURE__ */ e.jsx(
|
|
5321
5323
|
K,
|
|
5322
5324
|
{
|
|
5323
5325
|
type: "small",
|
|
@@ -5326,7 +5328,7 @@ const Kr = ({ setHours: n, setMinutes: t, switchMode: r, minutes: s, hours: i, o
|
|
|
5326
5328
|
id: `${r}-error`,
|
|
5327
5329
|
children: d
|
|
5328
5330
|
}
|
|
5329
|
-
) : u && !
|
|
5331
|
+
) : u && !y ? /* @__PURE__ */ e.jsx(
|
|
5330
5332
|
K,
|
|
5331
5333
|
{
|
|
5332
5334
|
type: "small",
|
|
@@ -5334,7 +5336,7 @@ const Kr = ({ setHours: n, setMinutes: t, switchMode: r, minutes: s, hours: i, o
|
|
|
5334
5336
|
id: `${r}-helper`,
|
|
5335
5337
|
children: u
|
|
5336
5338
|
}
|
|
5337
|
-
) : null, [
|
|
5339
|
+
) : null, [y, d, u, r]);
|
|
5338
5340
|
return /* @__PURE__ */ e.jsxs("div", { className: `input-field-container ${i}`, children: [
|
|
5339
5341
|
/* @__PURE__ */ e.jsxs(
|
|
5340
5342
|
"div",
|
|
@@ -5345,7 +5347,7 @@ const Kr = ({ setHours: n, setMinutes: t, switchMode: r, minutes: s, hours: i, o
|
|
|
5345
5347
|
${Jr[h]}
|
|
5346
5348
|
${n ? "input-field_border" : ""}
|
|
5347
5349
|
${B ? "input-field_active" : ""}
|
|
5348
|
-
${
|
|
5350
|
+
${y ? "input-field_error" : ""}
|
|
5349
5351
|
${c ? "input-field_disabled" : ""}
|
|
5350
5352
|
`,
|
|
5351
5353
|
"aria-disabled": c,
|
|
@@ -5377,8 +5379,8 @@ const Kr = ({ setHours: n, setMinutes: t, switchMode: r, minutes: s, hours: i, o
|
|
|
5377
5379
|
onFocus: U,
|
|
5378
5380
|
disabled: c,
|
|
5379
5381
|
"aria-labelledby": x,
|
|
5380
|
-
"aria-invalid":
|
|
5381
|
-
"aria-describedby":
|
|
5382
|
+
"aria-invalid": y,
|
|
5383
|
+
"aria-describedby": y && d ? `${r}-error` : u ? `${r}-helper` : void 0
|
|
5382
5384
|
}
|
|
5383
5385
|
),
|
|
5384
5386
|
f && /* @__PURE__ */ e.jsx(
|
|
@@ -5429,9 +5431,9 @@ const qe = 0, Je = 100, Ks = ({ showValue: n = !0, ...t }) => {
|
|
|
5429
5431
|
return es(h, x, f, 0, f - x) * (j.width - 20) / (f - x);
|
|
5430
5432
|
}
|
|
5431
5433
|
return 0;
|
|
5432
|
-
}, u =
|
|
5434
|
+
}, u = k((h) => {
|
|
5433
5435
|
l(!0), t.onFocus && t.onFocus(h);
|
|
5434
|
-
}, [t.onFocus]), m =
|
|
5436
|
+
}, [t.onFocus]), m = k((h) => {
|
|
5435
5437
|
l(!1), t.onBlur && t.onBlur(h);
|
|
5436
5438
|
}, [t.onBlur]);
|
|
5437
5439
|
return /* @__PURE__ */ e.jsx("div", { className: `range ${t.disabled ? "disabled" : ""}`, children: /* @__PURE__ */ e.jsxs("div", { className: "field", style: t.style, children: [
|
|
@@ -5450,18 +5452,18 @@ const qe = 0, Je = 100, Ks = ({ showValue: n = !0, ...t }) => {
|
|
|
5450
5452
|
t ? /* @__PURE__ */ e.jsx("p", { children: t }) : null,
|
|
5451
5453
|
a ? /* @__PURE__ */ e.jsx(ye, { styleType: a.styleType ?? "filled", style: a.style, className: a.className, onClick: a.onClick, children: a.text }) : null
|
|
5452
5454
|
] }), ns = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, initComponent: l, onlyStringValue: a }) => {
|
|
5453
|
-
const [o, c] = b(""), [d, u] = b(""), [m, h] = b(!1), [x, f] = b(!0), j =
|
|
5455
|
+
const [o, c] = b(""), [d, u] = b(""), [m, h] = b(!1), [x, f] = b(!0), j = k((g, _) => {
|
|
5454
5456
|
s({ ...r, [_]: g });
|
|
5455
|
-
}, [s, r]), p =
|
|
5457
|
+
}, [s, r]), p = k(() => {
|
|
5456
5458
|
u(""), c(""), h(!1);
|
|
5457
|
-
}, []), v =
|
|
5459
|
+
}, []), v = k(() => {
|
|
5458
5460
|
let g = d;
|
|
5459
5461
|
try {
|
|
5460
5462
|
a || (g = JSON.parse(g));
|
|
5461
5463
|
} catch {
|
|
5462
5464
|
}
|
|
5463
5465
|
p(), s({ ...r, [o]: g });
|
|
5464
|
-
}, [r, s, o, d, p]), N =
|
|
5466
|
+
}, [r, s, o, d, p]), N = k((g) => {
|
|
5465
5467
|
let _ = { ...r };
|
|
5466
5468
|
delete _[g], s(_);
|
|
5467
5469
|
}, [r, s]);
|
|
@@ -5491,19 +5493,19 @@ const qe = 0, Je = 100, Ks = ({ showValue: n = !0, ...t }) => {
|
|
|
5491
5493
|
] })
|
|
5492
5494
|
] }) });
|
|
5493
5495
|
}, ts = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, initComponent: l, onlyStringValue: a }) => {
|
|
5494
|
-
const [o, c] = b(""), [d, u] = b(!1), [m, h] = b(!0), x =
|
|
5496
|
+
const [o, c] = b(""), [d, u] = b(!1), [m, h] = b(!0), x = k((v, N) => {
|
|
5495
5497
|
const g = r.slice();
|
|
5496
5498
|
g[N] = v, s(g);
|
|
5497
|
-
}, [s, r]), f =
|
|
5499
|
+
}, [s, r]), f = k(() => {
|
|
5498
5500
|
c(""), u(!1);
|
|
5499
|
-
}, []), j =
|
|
5501
|
+
}, []), j = k(() => {
|
|
5500
5502
|
let v = o;
|
|
5501
5503
|
try {
|
|
5502
5504
|
a || (v = JSON.parse(v));
|
|
5503
5505
|
} catch {
|
|
5504
5506
|
}
|
|
5505
5507
|
f(), s([...r, v]);
|
|
5506
|
-
}, [r, s, o, f]), p =
|
|
5508
|
+
}, [r, s, o, f]), p = k((v) => {
|
|
5507
5509
|
s(r.filter((N, g) => g !== v));
|
|
5508
5510
|
}, [r, s]);
|
|
5509
5511
|
return /* @__PURE__ */ e.jsx("div", { className: `json-card-container ${n ? "" : "changeable"}`, children: /* @__PURE__ */ e.jsxs("div", { children: [
|
|
@@ -5528,7 +5530,7 @@ const qe = 0, Je = 100, Ks = ({ showValue: n = !0, ...t }) => {
|
|
|
5528
5530
|
] })
|
|
5529
5531
|
] }) });
|
|
5530
5532
|
}, rs = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i }) => {
|
|
5531
|
-
const l =
|
|
5533
|
+
const l = k((a) => {
|
|
5532
5534
|
s(a.target.value);
|
|
5533
5535
|
}, [s]);
|
|
5534
5536
|
return /* @__PURE__ */ e.jsx("div", { className: `json-card-container ${n ? "" : "changeable"}`, children: /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsxs("div", { className: "json-line", children: [
|
|
@@ -5542,11 +5544,11 @@ const qe = 0, Je = 100, Ks = ({ showValue: n = !0, ...t }) => {
|
|
|
5542
5544
|
};
|
|
5543
5545
|
var Jn = /* @__PURE__ */ ((n) => (n.NONE = "NONE", n.ARRAY = "ARRAY", n.OBJECT = "OBJECT", n))(Jn || {});
|
|
5544
5546
|
const an = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType: l, onlyStringValue: a }) => typeof r == "boolean" || typeof r == "number" || typeof r == "string" ? /* @__PURE__ */ e.jsx(rs, { readonly: n, onDelete: i, onChange: s, data: r, name: t }) : r ? Array.isArray(r) ? /* @__PURE__ */ e.jsx(ts, { readonly: n, onDelete: i, onChange: s, data: r, name: t, initComponent: l === "ARRAY", onlyStringValue: a }) : /* @__PURE__ */ e.jsx(ns, { readonly: n, onDelete: i, onChange: s, data: r, name: t, initComponent: l === "OBJECT", onlyStringValue: a }) : null, Js = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType: l = Jn.NONE, onlyStringValue: a }) => {
|
|
5545
|
-
const [o, c] = b(r || void 0), [d, u] = b(""), m =
|
|
5547
|
+
const [o, c] = b(r || void 0), [d, u] = b(""), m = k((f) => {
|
|
5546
5548
|
n || (c(f), s && s(f));
|
|
5547
|
-
}, [s]), h =
|
|
5549
|
+
}, [s]), h = k(() => {
|
|
5548
5550
|
n || (c(void 0), i && i());
|
|
5549
|
-
}, [i]), x =
|
|
5551
|
+
}, [i]), x = k(() => {
|
|
5550
5552
|
if (n)
|
|
5551
5553
|
return;
|
|
5552
5554
|
let f = d;
|
|
@@ -5718,9 +5720,9 @@ const an = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
|
|
|
5718
5720
|
V(() => {
|
|
5719
5721
|
S(_n(s, l ?? ""));
|
|
5720
5722
|
}, [l, s]);
|
|
5721
|
-
const O =
|
|
5723
|
+
const O = k((M) => {
|
|
5722
5724
|
S(_n(s, M)), i && i(M), w(!1);
|
|
5723
|
-
}, [s, i]), A =
|
|
5725
|
+
}, [s, i]), A = k((M) => typeof M == "string" ? { title: M, onClick: () => O(M) } : { title: M.title, onClick: () => O(M.value), icon: M.icon, disabled: M.disabled }, [O]), y = k((M) => {
|
|
5724
5726
|
if (N) return;
|
|
5725
5727
|
M.preventDefault();
|
|
5726
5728
|
let E = Ue(M.currentTarget), U = (E == null ? void 0 : E.left) ?? M.pageX, I = E != null && E.top ? E.top + E.height : M.pageY;
|
|
@@ -5740,7 +5742,7 @@ const an = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
|
|
|
5740
5742
|
${j ? "input-field_transparent" : ""}
|
|
5741
5743
|
${W ? "input-field_error" : ""}
|
|
5742
5744
|
${N ? "input-field_disabled" : ""}
|
|
5743
|
-
`, children: /* @__PURE__ */ e.jsxs("div", { className: "input-field__input-container", onClick:
|
|
5745
|
+
`, children: /* @__PURE__ */ e.jsxs("div", { className: "input-field__input-container", onClick: y, children: [
|
|
5744
5746
|
/* @__PURE__ */ e.jsx(
|
|
5745
5747
|
"input",
|
|
5746
5748
|
{
|
|
@@ -5858,9 +5860,9 @@ const cs = {
|
|
|
5858
5860
|
}
|
|
5859
5861
|
}, os = Be(cs), ri = ({ children: n }) => {
|
|
5860
5862
|
var a;
|
|
5861
|
-
const [t, r] = b({ visible: !1, text: "" }), s = Y(null), i =
|
|
5863
|
+
const [t, r] = b({ visible: !1, text: "" }), s = Y(null), i = k((o, c) => {
|
|
5862
5864
|
r({ visible: !0, text: o, option: c }), s.current && clearTimeout(s.current), c != null && c.closeButton || (s.current = setTimeout(() => l(), (c == null ? void 0 : c.delay) ?? 3e3));
|
|
5863
|
-
}, []), l =
|
|
5865
|
+
}, []), l = k(() => {
|
|
5864
5866
|
s.current && (clearTimeout(s.current), s.current = null), r({ visible: !1, text: "" });
|
|
5865
5867
|
}, []);
|
|
5866
5868
|
return /* @__PURE__ */ e.jsxs(os.Provider, { value: { showSnackbar: i, hideSnackbar: l }, children: [
|
|
@@ -5891,14 +5893,14 @@ function xs(n) {
|
|
|
5891
5893
|
return typeof n == "boolean";
|
|
5892
5894
|
}
|
|
5893
5895
|
const je = (n) => {
|
|
5894
|
-
const { value: t, changeField: r, errors: s } = ds(), i =
|
|
5896
|
+
const { value: t, changeField: r, errors: s } = ds(), i = k((c) => {
|
|
5895
5897
|
r && r(n, c);
|
|
5896
|
-
}, [n]), l =
|
|
5898
|
+
}, [n]), l = k(() => {
|
|
5897
5899
|
const c = t == null ? void 0 : t[n];
|
|
5898
5900
|
return xs(c) ? !!c : hs(c) ? Number(c) : us(c) ? c ?? "" : "";
|
|
5899
|
-
}, [t, n]), a =
|
|
5901
|
+
}, [t, n]), a = k(() => {
|
|
5900
5902
|
r && r(n, "");
|
|
5901
|
-
}, [n]), o =
|
|
5903
|
+
}, [n]), o = k(() => {
|
|
5902
5904
|
if (s && Object.keys(s).includes(n))
|
|
5903
5905
|
return s[n];
|
|
5904
5906
|
}, [s, n]);
|
|
@@ -5937,7 +5939,7 @@ const je = (n) => {
|
|
|
5937
5939
|
if (u.length > 0)
|
|
5938
5940
|
return o && o(!0);
|
|
5939
5941
|
o && o(!1);
|
|
5940
|
-
}, d =
|
|
5942
|
+
}, d = k(() => a ? [n ?? l] : [], [a, l, n]);
|
|
5941
5943
|
return /* @__PURE__ */ e.jsx(
|
|
5942
5944
|
Wn,
|
|
5943
5945
|
{
|
|
@@ -5993,9 +5995,9 @@ const je = (n) => {
|
|
|
5993
5995
|
);
|
|
5994
5996
|
}, ks = fe(
|
|
5995
5997
|
function({ children: t, value: r, name: s, errors: i, onFinish: l, onChangeValue: a, ...o }, c) {
|
|
5996
|
-
const [d, u] = b(r), m =
|
|
5998
|
+
const [d, u] = b(r), m = k((x) => {
|
|
5997
5999
|
x.preventDefault(), l == null || l(d);
|
|
5998
|
-
}, [l, d]), h =
|
|
6000
|
+
}, [l, d]), h = k((x, f) => {
|
|
5999
6001
|
u((j) => ({
|
|
6000
6002
|
...j,
|
|
6001
6003
|
[x]: f
|
|
@@ -335,11 +335,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
335
335
|
`,children:e.jsx("span",{className:"input-field__input-container__label__span",children:p})})]}),l&&_&&!$&&e.jsx("div",{className:`
|
|
336
336
|
input-field__icon-container
|
|
337
337
|
input-field__icon-container_clear-btn
|
|
338
|
-
`,onClick:l,children:e.jsx(ee,{"aria-label":"Clear input"})})]}),j&&N&&e.jsx(U,{type:"small",className:"input-field-container__error-text",children:N}),H&&!j&&e.jsx(U,{type:"small",className:"input-field-container__helper-text",children:H})]})});je.displayName="TextField";const wo=({styleContainer:n,text:t,header:o,onSuccess:r,onHide:a,placeholder:i,type:c="text",min:d=0,max:l=100,defaultValue:u="",confirmText:h="OK",cancelText:m="Отмена",validate:_})=>{const[p,b]=s.useState(u),[v,x]=s.useState(!0);s.useEffect(()=>{if(_)x(_(p));else if(c==="number"){const g=Number(p);x(!isNaN(g)&&g>=d&&g<=l)}else x(!0)},[p,_,c,d,l]);const k=s.useCallback(()=>{v&&(r==null||r(p),a==null||a())},[p,v,r,a]),C=s.useCallback(()=>{a==null||a()},[a]),y=g=>{if(c==="number"){if(g===""){b("");return}const S=Number(g);isNaN(S)||(S<d&&(g=String(d)),S>l&&(g=String(l)),b(g))}else b(g)};return e.jsxs(ge,{style:n,header:o,onHide:C,action:e.jsxs("div",{children:[e.jsx(oe,{onClick:C,children:m}),e.jsx(oe,{onClick:k,disabled:!v||c==="number"&&p==="",children:h})]}),children:[t&&e.jsx(U,{type:"body",children:t}),e.jsxs("div",{children:[e.jsx(je,{type:c,min:d,max:l,border:!0,placeholder:i,value:p,onChange:y,error:!v}),!v&&c==="number"&&e.jsxs(U,{type:"body",children:["Введите число от ",d," до ",l]})]})]})},ko=({style:n,styleContent:t,className:o="",header:r,children:a,onSave:i,onHide:c,marginBottom:d=0,disableBackplate:l,saveText:u,cancelText:h,forceFullScreen:m,btns:
|
|
338
|
+
`,onClick:l,children:e.jsx(ee,{"aria-label":"Clear input"})})]}),j&&N&&e.jsx(U,{type:"small",className:"input-field-container__error-text",children:N}),H&&!j&&e.jsx(U,{type:"small",className:"input-field-container__helper-text",children:H})]})});je.displayName="TextField";const wo=({styleContainer:n,text:t,header:o,onSuccess:r,onHide:a,placeholder:i,type:c="text",min:d=0,max:l=100,defaultValue:u="",confirmText:h="OK",cancelText:m="Отмена",validate:_})=>{const[p,b]=s.useState(u),[v,x]=s.useState(!0);s.useEffect(()=>{if(_)x(_(p));else if(c==="number"){const g=Number(p);x(!isNaN(g)&&g>=d&&g<=l)}else x(!0)},[p,_,c,d,l]);const k=s.useCallback(()=>{v&&(r==null||r(p),a==null||a())},[p,v,r,a]),C=s.useCallback(()=>{a==null||a()},[a]),y=g=>{if(c==="number"){if(g===""){b("");return}const S=Number(g);isNaN(S)||(S<d&&(g=String(d)),S>l&&(g=String(l)),b(g))}else b(g)};return e.jsxs(ge,{style:n,header:o,onHide:C,action:e.jsxs("div",{children:[e.jsx(oe,{onClick:C,children:m}),e.jsx(oe,{onClick:k,disabled:!v||c==="number"&&p==="",children:h})]}),children:[t&&e.jsx(U,{type:"body",children:t}),e.jsxs("div",{children:[e.jsx(je,{type:c,min:d,max:l,border:!0,placeholder:i,value:p,onChange:y,error:!v}),!v&&c==="number"&&e.jsxs(U,{type:"body",children:["Введите число от ",d," до ",l]})]})]})},ko=({style:n,styleContent:t,className:o="",header:r,children:a,onSave:i,onHide:c,marginBottom:d=0,disableBackplate:l,saveText:u,cancelText:h,forceFullScreen:m,maxWidth:_,btns:p})=>{const{screen:b}=s.useContext(be);qe(!0,document.body);const v=s.useCallback(()=>{c==null||c()},[c]),x=s.useCallback(()=>{i==null||i()},[i]);return m||b===Q.MOBILE?e.jsxs("div",{style:{...n,height:`calc(100vh - ${d}px)`,paddingBottom:`${d}px`},className:`
|
|
339
339
|
full-screen-dialog
|
|
340
340
|
full-screen-dialog__container
|
|
341
341
|
full-screen-dialog__container_color_surface-container
|
|
342
|
-
${o}`,children:[e.jsxs("div",{className:"full-screen-dialog__container__header",children:[e.jsx("div",{className:"full-screen-dialog__container__header__button",children:c&&e.jsx(re,{transparent:!0,onClick:b,icon:e.jsx(ee,{}),"aria-label":"Закрыть"})}),e.jsx("div",{className:"full-screen-dialog__container__header__text",children:r}),e.jsx("div",{className:"full-screen-dialog__container__header__save",children:i&&e.jsx("button",{onClick:v,className:"full-screen-dialog__container__header__save__button",children:e.jsx(U,{type:"body",weight:"bold",children:u||"Сохранить"})})})]}),e.jsxs("div",{className:"full-screen-dialog__content",style:t,children:[a,_&&e.jsx(Ye,{btns:_.filter(k=>!k.hide&&!k.success)})]})]}):e.jsx(Ee,{disableBackplate:l,style:n,header:r,className:`full-screen-dialog ${o}`,onHide:b,action:_===void 0?e.jsxs(e.Fragment,{children:[c&&e.jsx(me,{styleType:"outline",onClick:b,children:h??"Отмена"}),c&&e.jsx(me,{onClick:v,children:u??"Сохранить"})]}):e.jsx(Ye,{btns:_,onHide:c,onSuccess:i}),children:a})},yt=s.forwardRef(({className:n="",action:t,imgSrc:o,alt:r,header:a,subhead:i,text:c,children:d,iconButtonCell:l,onClick:u,screenSize:h,rootApp:m="#root",variant:_="elevated",loading:p=!1,style:b,elevation:v=6,...x},k)=>{const{screen:C}=s.useContext(be),y=h??C,g=`elevation-${Math.min(24,Math.max(0,v))}`,S=H=>{$(H)&&(u==null||u(H),B(H))},$=H=>{const N=H.target;return!N.closest(".action-container")&&!N.closest(".card-icon-button")&&!N.closest(".card-child-container")&&!N.closest(".card-children")&&!!N.closest(m)},B=H=>{const N=H.currentTarget,Y=N.querySelector(".card-ripple-container");if(!Y)return;const T=N.getBoundingClientRect(),V=Math.max(T.width,T.height),j=H.clientX-T.left-V/2,P=H.clientY-T.top-V/2,M=document.createElement("span");M.className="card-ripple",M.style.width=M.style.height=`${V}px`,M.style.left=`${j}px`,M.style.top=`${P}px`,Y.appendChild(M),setTimeout(()=>M.remove(),600)};return e.jsxs("div",{ref:k,style:b,className:`${n} card card--${_} ${g} ${p?"card--loading":""}`,onClick:S,...x,children:[e.jsx("div",{className:"card-ripple-container"}),o&&e.jsxs("div",{className:"card-image-container",children:[e.jsx("img",{src:o,alt:r,loading:"lazy"}),p&&e.jsx("div",{className:"card-image-overlay"})]}),e.jsxs("div",{className:"card-content",children:[(a||l)&&e.jsxs("div",{className:"card-header",children:[a&&e.jsx(U,{type:"title",weight:"bold",screensize:y,className:"card-title",children:a}),l&&e.jsx("div",{className:"card-icon-button",children:l})]}),i&&e.jsx(U,{type:"title-2",weight:"bold",screensize:y,className:"card-subhead",children:i}),c&&e.jsx(U,{type:"body",screensize:y,className:"card-text",children:c}),d&&e.jsx("div",{className:"card-children",children:d}),t&&e.jsx("div",{className:"card-actions",children:t})]}),p&&e.jsx("div",{className:"card-loading-indicator"})]})});yt.displayName="Card";const yo=({children:n,className:t})=>e.jsx("div",{className:`base-action-card ${t??""}`,children:n}),jo=({children:n,className:t,id:o,height:r,width:a,pozMove:i,draggable:c=!0})=>{const[d,l]=s.useState(!1),[u,h]=s.useState(null),[m,_]=s.useState({x:0,y:0}),p=x=>{x.button==1&&(l(!1),h(null),document.body.style.cursor="auto")},b=x=>{x.button==1&&c&&(h({x:x.clientX,y:x.clientY}),l(!0),document.body.style.cursor="move")},v=s.useCallback(x=>{d&&(_(k=>{if(!u)return k;const C=x.clientX-u.x,y=x.clientY-u.y;let g=k.x+C,S=k.y+y;return{x:g,y:S}}),h({x:x.clientX,y:x.clientY}))},[d,u]);return s.useEffect(()=>{i&&_({...i})},[i]),e.jsx("div",{id:o,style:{height:r,width:a},className:`big-container ${t}`,onMouseDown:b,onMouseUp:p,onMouseMove:v,children:e.jsx("div",{className:"big-container-content",style:{left:m.x,top:m.y},children:n})})},Co=({onClick:n,onContextMenu:t,gap:o,className:r,style:a,countColumn:i,items:c,onClickColl:d,classNameColumn:l,minColumnWidth:u="auto"})=>{const h=s.useCallback((p,b)=>{const v=Array.from({length:p},()=>[]);return b.forEach(x=>{if(x.indexCol>=v.length){console.error(`Invalid column index. indexCol = ${x.indexCol}, column count = ${p}`);return}v[x.indexCol].push(x.node)}),v},[]),m=s.useMemo(()=>h(i,c),[h,i,c]),_=s.useCallback((p,b)=>{d==null||d(p,b)},[d]);return e.jsx("div",{onClick:n,onContextMenu:t,style:{...a,gap:o!==void 0?`${o}px`:"5px",gridTemplateColumns:`repeat(${i}, minmax(${u}, 1fr))`},className:`${r} alex-evo-sh-ui-kit-column-layout`,"data-testid":"column-layout-container",children:m.map((p,b)=>e.jsx("div",{onClick:v=>_(b,v),className:`${l} alex-evo-sh-ui-kit-column-layout-coll`,"data-testid":`column-${b}`,children:p.map((v,x)=>e.jsx("div",{className:"alex-evo-sh-ui-kit-column-layout-item",children:v},`item-${b}-${x}`))},`column-${b}`))})},No=10,So=.002,Mo=({children:n,label:t,className:o="",style:r,border:a=!1,collapsible:i=!1,defaultVisible:c=!1,action:d,onVisibilityChange:l})=>{const[u,h]=s.useState(i?c:!0),m=s.useRef(null),_=x=>{if(!x)return;const k=Ve(x);if(k)return k.height+No},p=x=>{const k=_(x);return k?Math.min(k*So,1):.4},b=x=>{const k=x.target;if(!(k.closest(".action-btn")||k.classList.contains("action-btn"))&&i){const y=!u;h(y),l==null||l(y)}};s.useEffect(()=>{!i&&!u&&(h(!0),l==null||l(!0))},[i,u,l]);const v=s.useMemo(()=>p(m.current),[m.current]);return e.jsxs("div",{style:r,className:`content-box ${a?"border":""} ${u?"active":""} ${o}`,"aria-expanded":i?u:void 0,children:[e.jsxs("div",{className:"content-box-label",onClick:b,role:i?"button":void 0,"aria-label":i?`${t} - click to ${u?"collapse":"expand"}`:t,tabIndex:i?0:void 0,onKeyDown:x=>{i&&(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),b(x))},children:[e.jsx(U,{type:"title",children:t}),e.jsx("div",{className:"content-box-action-container",children:d?e.jsx("div",{className:"content-box-status-container action-btn",onClick:d.onClick,"aria-label":d.ariaLabel||"Action",role:"button",tabIndex:0,onKeyDown:x=>{(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),d.onClick())},children:d.icon}):i?e.jsx("div",{className:"content-box-status-container",children:e.jsx("span",{className:`content-box-status ${u?"active":""}`,"aria-hidden":"true"})}):null})]}),e.jsx("div",{className:"content-box-container-curtain",style:{transition:`${v}s ease-in-out`,height:u?"auto":"0px"},"aria-hidden":!u,children:e.jsx("div",{className:"content-box-container",ref:m,children:n})})]})},Lo=({children:n,colSpan:t=1})=>e.jsx("div",{className:"adaptiv-grid-item",style:{gridColumnEnd:`span ${t}`},children:e.jsx("div",{className:"adaptiv-grid-item-container",children:n})}),Oo=({minWith:n,children:t,className:o="",gridRowGap:r="10px",gridColumnGap:a="5px",itemMinWith:i,itemMaxWith:c,itemWith:d="400px"})=>{const l=s.useRef(null),[u,h]=s.useState([]),m=s.useRef(null),_=s.useRef(null),p=s.useCallback(()=>{if(!l.current)return;l.current.style.display="grid",l.current.style.gridRowGap=r,l.current.style.gridColumnGap=a;const k=i??d,C=c??d;l.current.style.gridTemplateColumns=`repeat(auto-fill, minmax(${k}, ${C}))`,l.current.style.gridAutoRows="1px"},[r,a,i,c,d]),b=s.useCallback(()=>{if(l.current){const k=l.current.querySelectorAll(".adaptiv-grid-item");h(Array.from(k))}},[]),v=s.useCallback(()=>{if(!l.current)return;const k=window.getComputedStyle(l.current),C=parseInt(k.getPropertyValue("grid-row-gap"))||0,y=parseInt(k.getPropertyValue("grid-auto-rows"))||1;u.forEach(g=>{const S=g.querySelector(".adaptiv-grid-item-container");if(S){const $=S.getBoundingClientRect().height,B=Math.ceil(($+C)/(y+C));g.style.gridRowEnd=`span ${B}`}})},[u]),x=s.useCallback(()=>{_.current!==null&&cancelAnimationFrame(_.current),_.current=requestAnimationFrame(()=>{v(),_.current=null})},[v]);return s.useEffect(()=>{p(),b()},[p,b,t]),s.useEffect(()=>{m.current&&m.current.disconnect(),m.current=new ResizeObserver(()=>x());const k=m.current;return u.forEach(C=>k.observe(C)),x(),()=>{k.disconnect(),_.current!==null&&cancelAnimationFrame(_.current)}},[u,x]),e.jsx("div",{style:{minWidth:n},ref:l,className:`adaptiv-grid-layout ${o}`,children:t})},jt=({children:n,className:t="",style:o,shadow:r=1,padded:a=!0,borderRadius:i=12,onClick:c,onContextMenu:d})=>{const l=`container_shadow-${r}`;return e.jsx("div",{style:{borderRadius:`${i}px`,...o},onClick:c,onContextMenu:d,className:`alex-evo-sh-ui-kit-panel ${l} ${a?"padded":""} ${t}`,children:n})},Eo=({className:n,children:t,height:o})=>e.jsx("div",{className:`scroll-container ${n}`,style:{height:o},children:t}),zo=({tabs:n,scrollAmount:t=150,tabClassName:o="",activeTabClassName:r="active",onTabClick:a,activeTabIndex:i,tabContainerClassName:c="",className:d,style:l})=>{const[u,h]=s.useState(0),m=i!==void 0?i:u,_=s.useRef(null),p=s.useRef(null),[b,v]=s.useState(!1),x=y=>{if(_.current){const g=t||_.current.offsetWidth/2;_.current.scrollBy({left:y==="left"?-g:g,behavior:"smooth"})}};s.useEffect(()=>{const y=()=>{_.current&&v(_.current.scrollWidth>_.current.clientWidth)};return y(),window.addEventListener("resize",y),()=>window.removeEventListener("resize",y)},[]),s.useEffect(()=>{if(_.current&&p.current){const y=_.current.children[m];y&&(p.current.style.width=`${y.offsetWidth}px`,p.current.style.transform=`translateX(${y.offsetLeft}px)`)}},[m]);const k=y=>{y.key==="ArrowRight"?C((m+1)%n.length):y.key==="ArrowLeft"&&C((m-1+n.length)%n.length)},C=y=>{i===void 0&&h(y),a&&a(y)};return e.jsxs("div",{className:`alex-evo-ui-kit-tabs-container ${d??""}`,style:l,children:[e.jsxs("div",{className:`alex-evo-ui-kit-tabs-scroll-buttons ${c}`,children:[b&&e.jsx("button",{onClick:()=>x("left"),className:"alex-evo-ui-kit-scroll-button",children:"◀"}),e.jsxs("div",{className:"alex-evo-ui-kit-tabs-header",ref:_,onKeyDown:k,tabIndex:0,children:[n.map((y,g)=>e.jsx("div",{className:`alex-evo-ui-kit-tab ${o} ${m===g?r:""}`,onClick:()=>C(g),children:y.label},y.label)),e.jsx("div",{className:"alex-evo-ui-kit-indicator",ref:p})]}),b&&e.jsx("button",{onClick:()=>x("right"),className:"alex-evo-ui-kit-scroll-button",children:"▶"})]}),e.jsx("div",{className:"alex-evo-ui-kit-tab-content",children:n[m].content})]})},Pe=({type:n,screensize:t=Q.STANDART,weight:o="standart",density:r="normal",className:a="",text:i,style:c,onClick:d,onContextMenu:l,...u})=>{const h=s.useRef(null),m=s.useRef(null),[_,p]=s.useState(!1),b=s.useCallback(()=>{if(!h.current||!m.current)return;const v=h.current.clientWidth,x=m.current.scrollWidth;p(v<x)},[i]);return s.useEffect(()=>{var x;b(),window.addEventListener("resize",b);let v=null;return(x=h.current)!=null&&x.parentElement&&(v=new ResizeObserver(()=>{b()}),v.observe(h.current.parentElement)),()=>{window.removeEventListener("resize",b),v&&v.disconnect()}},[b]),e.jsxs(e.Fragment,{children:[e.jsx("div",{ref:h,onClick:d,onContextMenu:l,className:`runing-text ${_?"runing":""}`,children:e.jsx(U,{...u,type:n,className:`${a}`,children:_?`| ${i} | ${i}`:i})}),e.jsx(U,{ref:m,...u,type:n,style:{...u.style,position:"absolute",visibility:"hidden",height:"auto",whiteSpace:"nowrap"},className:a,children:i})]})},Ct=s.forwardRef(({children:n,className:t="",maxHeight:o,scroll:r,transparent:a,width:i,padding:c,margin:d,flex:l,gap:u=0,onObserv:h,...m},_)=>{const p=s.useRef(null),b={overflowY:o?r?"scroll":"hidden":void 0,maxHeight:o,backgroundColor:a?"transparent":void 0,width:i,padding:c,margin:d};l&&(b.display="flex",b.flexDirection="column",u>0&&(b.gap=u)),s.useEffect(()=>{if(!p.current||!h)return;const x=new IntersectionObserver(h);return x.observe(p.current),()=>x.disconnect()},[h]);const v=["list-container",t,r?"list-container_scroll":"",a?"list-container_transparent":""].filter(Boolean).join(" ");return e.jsxs("ul",{ref:_,style:b,className:v,...m,children:[n,e.jsx("div",{ref:p})]})}),Nt=s.forwardRef(({icon:n,control:t,text:o,header:r,description:a,value:i,onClick:c,hovered:d=!0,className:l="",disabled:u=!1,active:h=!1,shadow:m=0,noTransformTransition:_,...p},b)=>{const v=k=>{!u&&!k.target.closest(".control-container")&&(c==null||c(k))},x=["list-item-container",l,`container_shadow-hover-${m}`,d&&!u?"list-item-container_hovered":"",u?"list-item-container_disabled":"",h?"list-item-container_active":"",_?"no-transform-transition":""].filter(Boolean).join(" ");return e.jsxs("li",{ref:b,className:x,onClick:v,"aria-disabled":u,...p,children:[(n||i)&&e.jsx("div",{className:"list-item-container__icon-container",children:n||i&&e.jsx(Pe,{type:"body",text:i})}),(r||o||a)&&e.jsxs("div",{className:"list-item-container__text-container",children:[r&&e.jsx("div",{className:"list-item-container__text-container__header",children:e.jsx(Pe,{type:"title",text:r})}),o&&e.jsx("div",{className:"list-item-container__text-container__text",children:e.jsx(Pe,{type:"small",text:o})}),a&&e.jsx("div",{className:"list-item-container__text-container__description",children:e.jsx(Pe,{type:"small",color:"variant",text:a})})]}),t&&e.jsx("div",{onClick:k=>{k.stopPropagation()},className:"list-item-container__control-container",children:t})]})});function Fo(n){if(!n.length)return[];const t=new Set,o=[];for(const r of n)for(const a in r)t.has(a)||(t.add(a),o.push({title:a,field:a}));return o}function St(n){return typeof n=="number"||typeof n=="string"?{content:n}:n}function Mt(n){return n?Array.isArray(n)?n.map(St):[St(n)]:[]}function $o(n){const t=Mt(n);if(t.length>0)return t[0]}const To=({data:n,column:t,color:o,backgroundColor:r,H:a})=>{const i=n[t.field],c=Mt(i);return e.jsx("td",{style:{backgroundColor:c.length>0&&c[0].backgroundColor?c[0].backgroundColor:r,height:a},children:t.template?t.template(c,n):c.map((d,l)=>e.jsx("p",{style:{color:d.color??o},className:d.onClick?"no-click":"",onClick:d.onClick,children:d.content},l))})},Vo=({actions:n,item:t,columns:o,onContextMenu:r,onDelete:a,onEdit:i,onClickRow:c,index:d,maxH:l})=>{const u=s.useCallback(h=>{h.target.closest(".no-click")||c==null||c(t,d)},[d,c,t]);return e.jsxs("tr",{className:"table-row",onClick:u,children:[o.map((h,m)=>e.jsx(To,{H:l==null?void 0:l[m],color:h.color,backgroundColor:h.backgroundColor,column:h,data:t},h.field)),n&&e.jsx("td",{className:"w-[180px] no-click",children:e.jsx("div",{className:"table-edit-button",children:n.map((h,m)=>e.jsx(re,{transparent:!0,icon:h.icon,onClick:_=>h.onClick(_,t,d)},m))})}),(r||a||i)&&e.jsx("td",{className:"w-[180px] table-edit-button no-click",children:e.jsxs("div",{className:"table-edit-button",children:[i&&e.jsx(re,{transparent:!0,icon:e.jsx(tn,{}),onClick:()=>i(t,d)}),a&&e.jsx(re,{transparent:!0,icon:e.jsx(Je,{className:"text-red-500"}),onClick:()=>a(t,d)}),r&&e.jsx(re,{transparent:!0,icon:e.jsx(en,{}),onClick:h=>r(h,t,d)})]})})]})},Po=({data:n,columns:t,onDelete:o,onContextMenu:r,onEdit:a,actions:i,shadow:c=2,onClickRow:d})=>{const l=s.useMemo(()=>t??Fo(n),[n,t]),u=l.length+(i?1:0)+(o||r||a?1:0),h=_=>_?(Array.isArray(_)?_:[_]).map((b,v)=>typeof b=="string"||typeof b=="number"?e.jsx("span",{children:b},v):e.jsx("span",{style:{color:b.color},onClick:b.onClick,children:b.content},v)):null,m=`container_shadow-${c}`;return e.jsx("div",{className:`table-container mt-3 ${d?"clicked":""} ${m}`,children:e.jsxs("table",{children:[e.jsx("thead",{children:e.jsxs("tr",{children:[l.map(_=>e.jsx("th",{className:"min-width",children:_.title},_.field)),i&&e.jsx("th",{className:"table-actions-header",children:"actions"}),(o||r||a)&&e.jsx("th",{className:"table-actions-header"})]})}),e.jsx("tbody",{children:n.map((_,p)=>{if("__all__"in _){const b=$o(_.__all__);return e.jsx("tr",{className:"table-all-row",children:e.jsx("td",{colSpan:u,style:{backgroundColor:b==null?void 0:b.backgroundColor,color:b==null?void 0:b.color},children:h(b)})},`all-${p}`)}return e.jsx(Vo,{onClickRow:d,actions:i,index:p,columns:l,item:_,onDelete:o,onContextMenu:r,onEdit:a},p)})})]})})},Io=({icon:n,title:t,to:o})=>e.jsxs(Ze.NavLink,{to:o,className:"navigation-item navigation-item-bar",children:[e.jsx("div",{className:`
|
|
342
|
+
${o}`,children:[e.jsxs("div",{className:"full-screen-dialog__container__header",children:[e.jsx("div",{className:"full-screen-dialog__container__header__button",children:c&&e.jsx(re,{transparent:!0,onClick:v,icon:e.jsx(ee,{}),"aria-label":"Закрыть"})}),e.jsx("div",{className:"full-screen-dialog__container__header__text",children:r}),e.jsx("div",{className:"full-screen-dialog__container__header__save",children:i&&e.jsx("button",{onClick:x,className:"full-screen-dialog__container__header__save__button",children:e.jsx(U,{type:"body",weight:"bold",children:u||"Сохранить"})})})]}),e.jsxs("div",{className:"full-screen-dialog__content",style:t,children:[a,p&&e.jsx(Ye,{btns:p.filter(C=>!C.hide&&!C.success)})]})]}):e.jsx(Ee,{maxWidth:_,disableBackplate:l,style:n,header:r,className:`full-screen-dialog ${o}`,onHide:v,action:p===void 0?e.jsxs(e.Fragment,{children:[c&&e.jsx(me,{styleType:"outline",onClick:v,children:h??"Отмена"}),c&&e.jsx(me,{onClick:x,children:u??"Сохранить"})]}):e.jsx(Ye,{btns:p,onHide:c,onSuccess:i}),children:a})},yt=s.forwardRef(({className:n="",action:t,imgSrc:o,alt:r,header:a,subhead:i,text:c,children:d,iconButtonCell:l,onClick:u,screenSize:h,rootApp:m="#root",variant:_="elevated",loading:p=!1,style:b,elevation:v=6,...x},k)=>{const{screen:C}=s.useContext(be),y=h??C,g=`elevation-${Math.min(24,Math.max(0,v))}`,S=H=>{$(H)&&(u==null||u(H),B(H))},$=H=>{const N=H.target;return!N.closest(".action-container")&&!N.closest(".card-icon-button")&&!N.closest(".card-child-container")&&!N.closest(".card-children")&&!!N.closest(m)},B=H=>{const N=H.currentTarget,Y=N.querySelector(".card-ripple-container");if(!Y)return;const T=N.getBoundingClientRect(),V=Math.max(T.width,T.height),j=H.clientX-T.left-V/2,P=H.clientY-T.top-V/2,M=document.createElement("span");M.className="card-ripple",M.style.width=M.style.height=`${V}px`,M.style.left=`${j}px`,M.style.top=`${P}px`,Y.appendChild(M),setTimeout(()=>M.remove(),600)};return e.jsxs("div",{ref:k,style:b,className:`${n} card card--${_} ${g} ${p?"card--loading":""}`,onClick:S,...x,children:[e.jsx("div",{className:"card-ripple-container"}),o&&e.jsxs("div",{className:"card-image-container",children:[e.jsx("img",{src:o,alt:r,loading:"lazy"}),p&&e.jsx("div",{className:"card-image-overlay"})]}),e.jsxs("div",{className:"card-content",children:[(a||l)&&e.jsxs("div",{className:"card-header",children:[a&&e.jsx(U,{type:"title",weight:"bold",screensize:y,className:"card-title",children:a}),l&&e.jsx("div",{className:"card-icon-button",children:l})]}),i&&e.jsx(U,{type:"title-2",weight:"bold",screensize:y,className:"card-subhead",children:i}),c&&e.jsx(U,{type:"body",screensize:y,className:"card-text",children:c}),d&&e.jsx("div",{className:"card-children",children:d}),t&&e.jsx("div",{className:"card-actions",children:t})]}),p&&e.jsx("div",{className:"card-loading-indicator"})]})});yt.displayName="Card";const yo=({children:n,className:t})=>e.jsx("div",{className:`base-action-card ${t??""}`,children:n}),jo=({children:n,className:t,id:o,height:r,width:a,pozMove:i,draggable:c=!0})=>{const[d,l]=s.useState(!1),[u,h]=s.useState(null),[m,_]=s.useState({x:0,y:0}),p=x=>{x.button==1&&(l(!1),h(null),document.body.style.cursor="auto")},b=x=>{x.button==1&&c&&(h({x:x.clientX,y:x.clientY}),l(!0),document.body.style.cursor="move")},v=s.useCallback(x=>{d&&(_(k=>{if(!u)return k;const C=x.clientX-u.x,y=x.clientY-u.y;let g=k.x+C,S=k.y+y;return{x:g,y:S}}),h({x:x.clientX,y:x.clientY}))},[d,u]);return s.useEffect(()=>{i&&_({...i})},[i]),e.jsx("div",{id:o,style:{height:r,width:a},className:`big-container ${t}`,onMouseDown:b,onMouseUp:p,onMouseMove:v,children:e.jsx("div",{className:"big-container-content",style:{left:m.x,top:m.y},children:n})})},Co=({onClick:n,onContextMenu:t,gap:o,className:r,style:a,countColumn:i,items:c,onClickColl:d,classNameColumn:l,minColumnWidth:u="auto"})=>{const h=s.useCallback((p,b)=>{const v=Array.from({length:p},()=>[]);return b.forEach(x=>{if(x.indexCol>=v.length){console.error(`Invalid column index. indexCol = ${x.indexCol}, column count = ${p}`);return}v[x.indexCol].push(x.node)}),v},[]),m=s.useMemo(()=>h(i,c),[h,i,c]),_=s.useCallback((p,b)=>{d==null||d(p,b)},[d]);return e.jsx("div",{onClick:n,onContextMenu:t,style:{...a,gap:o!==void 0?`${o}px`:"5px",gridTemplateColumns:`repeat(${i}, minmax(${u}, 1fr))`},className:`${r} alex-evo-sh-ui-kit-column-layout`,"data-testid":"column-layout-container",children:m.map((p,b)=>e.jsx("div",{onClick:v=>_(b,v),className:`${l} alex-evo-sh-ui-kit-column-layout-coll`,"data-testid":`column-${b}`,children:p.map((v,x)=>e.jsx("div",{className:"alex-evo-sh-ui-kit-column-layout-item",children:v},`item-${b}-${x}`))},`column-${b}`))})},No=10,So=.002,Mo=({children:n,label:t,className:o="",style:r,border:a=!1,collapsible:i=!1,defaultVisible:c=!1,action:d,onVisibilityChange:l})=>{const[u,h]=s.useState(i?c:!0),m=s.useRef(null),_=x=>{if(!x)return;const k=Ve(x);if(k)return k.height+No},p=x=>{const k=_(x);return k?Math.min(k*So,1):.4},b=x=>{const k=x.target;if(!(k.closest(".action-btn")||k.classList.contains("action-btn"))&&i){const y=!u;h(y),l==null||l(y)}};s.useEffect(()=>{!i&&!u&&(h(!0),l==null||l(!0))},[i,u,l]);const v=s.useMemo(()=>p(m.current),[m.current]);return e.jsxs("div",{style:r,className:`content-box ${a?"border":""} ${u?"active":""} ${o}`,"aria-expanded":i?u:void 0,children:[e.jsxs("div",{className:"content-box-label",onClick:b,role:i?"button":void 0,"aria-label":i?`${t} - click to ${u?"collapse":"expand"}`:t,tabIndex:i?0:void 0,onKeyDown:x=>{i&&(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),b(x))},children:[e.jsx(U,{type:"title",children:t}),e.jsx("div",{className:"content-box-action-container",children:d?e.jsx("div",{className:"content-box-status-container action-btn",onClick:d.onClick,"aria-label":d.ariaLabel||"Action",role:"button",tabIndex:0,onKeyDown:x=>{(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),d.onClick())},children:d.icon}):i?e.jsx("div",{className:"content-box-status-container",children:e.jsx("span",{className:`content-box-status ${u?"active":""}`,"aria-hidden":"true"})}):null})]}),e.jsx("div",{className:"content-box-container-curtain",style:{transition:`${v}s ease-in-out`,height:u?"auto":"0px"},"aria-hidden":!u,children:e.jsx("div",{className:"content-box-container",ref:m,children:n})})]})},Lo=({children:n,colSpan:t=1})=>e.jsx("div",{className:"adaptiv-grid-item",style:{gridColumnEnd:`span ${t}`},children:e.jsx("div",{className:"adaptiv-grid-item-container",children:n})}),Oo=({minWith:n,children:t,className:o="",gridRowGap:r="10px",gridColumnGap:a="5px",itemMinWith:i,itemMaxWith:c,itemWith:d="400px"})=>{const l=s.useRef(null),[u,h]=s.useState([]),m=s.useRef(null),_=s.useRef(null),p=s.useCallback(()=>{if(!l.current)return;l.current.style.display="grid",l.current.style.gridRowGap=r,l.current.style.gridColumnGap=a;const k=i??d,C=c??d;l.current.style.gridTemplateColumns=`repeat(auto-fill, minmax(${k}, ${C}))`,l.current.style.gridAutoRows="1px"},[r,a,i,c,d]),b=s.useCallback(()=>{if(l.current){const k=l.current.querySelectorAll(".adaptiv-grid-item");h(Array.from(k))}},[]),v=s.useCallback(()=>{if(!l.current)return;const k=window.getComputedStyle(l.current),C=parseInt(k.getPropertyValue("grid-row-gap"))||0,y=parseInt(k.getPropertyValue("grid-auto-rows"))||1;u.forEach(g=>{const S=g.querySelector(".adaptiv-grid-item-container");if(S){const $=S.getBoundingClientRect().height,B=Math.ceil(($+C)/(y+C));g.style.gridRowEnd=`span ${B}`}})},[u]),x=s.useCallback(()=>{_.current!==null&&cancelAnimationFrame(_.current),_.current=requestAnimationFrame(()=>{v(),_.current=null})},[v]);return s.useEffect(()=>{p(),b()},[p,b,t]),s.useEffect(()=>{m.current&&m.current.disconnect(),m.current=new ResizeObserver(()=>x());const k=m.current;return u.forEach(C=>k.observe(C)),x(),()=>{k.disconnect(),_.current!==null&&cancelAnimationFrame(_.current)}},[u,x]),e.jsx("div",{style:{minWidth:n},ref:l,className:`adaptiv-grid-layout ${o}`,children:t})},jt=({children:n,className:t="",style:o,shadow:r=1,padded:a=!0,borderRadius:i=12,onClick:c,onContextMenu:d})=>{const l=`container_shadow-${r}`;return e.jsx("div",{style:{borderRadius:`${i}px`,...o},onClick:c,onContextMenu:d,className:`alex-evo-sh-ui-kit-panel ${l} ${a?"padded":""} ${t}`,children:n})},Eo=({className:n,children:t,height:o})=>e.jsx("div",{className:`scroll-container ${n}`,style:{height:o},children:t}),zo=({tabs:n,scrollAmount:t=150,tabClassName:o="",activeTabClassName:r="active",onTabClick:a,activeTabIndex:i,tabContainerClassName:c="",className:d,style:l})=>{const[u,h]=s.useState(0),m=i!==void 0?i:u,_=s.useRef(null),p=s.useRef(null),[b,v]=s.useState(!1),x=y=>{if(_.current){const g=t||_.current.offsetWidth/2;_.current.scrollBy({left:y==="left"?-g:g,behavior:"smooth"})}};s.useEffect(()=>{const y=()=>{_.current&&v(_.current.scrollWidth>_.current.clientWidth)};return y(),window.addEventListener("resize",y),()=>window.removeEventListener("resize",y)},[]),s.useEffect(()=>{if(_.current&&p.current){const y=_.current.children[m];y&&(p.current.style.width=`${y.offsetWidth}px`,p.current.style.transform=`translateX(${y.offsetLeft}px)`)}},[m]);const k=y=>{y.key==="ArrowRight"?C((m+1)%n.length):y.key==="ArrowLeft"&&C((m-1+n.length)%n.length)},C=y=>{i===void 0&&h(y),a&&a(y)};return e.jsxs("div",{className:`alex-evo-ui-kit-tabs-container ${d??""}`,style:l,children:[e.jsxs("div",{className:`alex-evo-ui-kit-tabs-scroll-buttons ${c}`,children:[b&&e.jsx("button",{onClick:()=>x("left"),className:"alex-evo-ui-kit-scroll-button",children:"◀"}),e.jsxs("div",{className:"alex-evo-ui-kit-tabs-header",ref:_,onKeyDown:k,tabIndex:0,children:[n.map((y,g)=>e.jsx("div",{className:`alex-evo-ui-kit-tab ${o} ${m===g?r:""}`,onClick:()=>C(g),children:y.label},y.label)),e.jsx("div",{className:"alex-evo-ui-kit-indicator",ref:p})]}),b&&e.jsx("button",{onClick:()=>x("right"),className:"alex-evo-ui-kit-scroll-button",children:"▶"})]}),e.jsx("div",{className:"alex-evo-ui-kit-tab-content",children:n[m].content})]})},Pe=({type:n,screensize:t=Q.STANDART,weight:o="standart",density:r="normal",className:a="",text:i,style:c,onClick:d,onContextMenu:l,...u})=>{const h=s.useRef(null),m=s.useRef(null),[_,p]=s.useState(!1),b=s.useCallback(()=>{if(!h.current||!m.current)return;const v=h.current.clientWidth,x=m.current.scrollWidth;p(v<x)},[i]);return s.useEffect(()=>{var x;b(),window.addEventListener("resize",b);let v=null;return(x=h.current)!=null&&x.parentElement&&(v=new ResizeObserver(()=>{b()}),v.observe(h.current.parentElement)),()=>{window.removeEventListener("resize",b),v&&v.disconnect()}},[b]),e.jsxs(e.Fragment,{children:[e.jsx("div",{ref:h,onClick:d,onContextMenu:l,className:`runing-text ${_?"runing":""}`,children:e.jsx(U,{...u,type:n,className:`${a}`,children:_?`| ${i} | ${i}`:i})}),e.jsx(U,{ref:m,...u,type:n,style:{...u.style,position:"absolute",visibility:"hidden",height:"auto",whiteSpace:"nowrap"},className:a,children:i})]})},Ct=s.forwardRef(({children:n,className:t="",maxHeight:o,scroll:r,transparent:a,width:i,padding:c,margin:d,flex:l,gap:u=0,onObserv:h,...m},_)=>{const p=s.useRef(null),b={overflowY:o?r?"scroll":"hidden":void 0,maxHeight:o,backgroundColor:a?"transparent":void 0,width:i,padding:c,margin:d};l&&(b.display="flex",b.flexDirection="column",u>0&&(b.gap=u)),s.useEffect(()=>{if(!p.current||!h)return;const x=new IntersectionObserver(h);return x.observe(p.current),()=>x.disconnect()},[h]);const v=["list-container",t,r?"list-container_scroll":"",a?"list-container_transparent":""].filter(Boolean).join(" ");return e.jsxs("ul",{ref:_,style:b,className:v,...m,children:[n,e.jsx("div",{ref:p})]})}),Nt=s.forwardRef(({icon:n,control:t,text:o,header:r,description:a,value:i,onClick:c,hovered:d=!0,className:l="",disabled:u=!1,active:h=!1,shadow:m=0,noTransformTransition:_,...p},b)=>{const v=k=>{!u&&!k.target.closest(".control-container")&&(c==null||c(k))},x=["list-item-container",l,`container_shadow-hover-${m}`,d&&!u?"list-item-container_hovered":"",u?"list-item-container_disabled":"",h?"list-item-container_active":"",_?"no-transform-transition":""].filter(Boolean).join(" ");return e.jsxs("li",{ref:b,className:x,onClick:v,"aria-disabled":u,...p,children:[(n||i)&&e.jsx("div",{className:"list-item-container__icon-container",children:n||i&&e.jsx(Pe,{type:"body",text:i})}),(r||o||a)&&e.jsxs("div",{className:"list-item-container__text-container",children:[r&&e.jsx("div",{className:"list-item-container__text-container__header",children:e.jsx(Pe,{type:"title",text:r})}),o&&e.jsx("div",{className:"list-item-container__text-container__text",children:e.jsx(Pe,{type:"small",text:o})}),a&&e.jsx("div",{className:"list-item-container__text-container__description",children:e.jsx(Pe,{type:"small",color:"variant",text:a})})]}),t&&e.jsx("div",{onClick:k=>{k.stopPropagation()},className:"list-item-container__control-container",children:t})]})});function Fo(n){if(!n.length)return[];const t=new Set,o=[];for(const r of n)for(const a in r)t.has(a)||(t.add(a),o.push({title:a,field:a}));return o}function St(n){return typeof n=="number"||typeof n=="string"?{content:n}:n}function Mt(n){return n?Array.isArray(n)?n.map(St):[St(n)]:[]}function $o(n){const t=Mt(n);if(t.length>0)return t[0]}const To=({data:n,column:t,color:o,backgroundColor:r,H:a})=>{const i=n[t.field],c=Mt(i);return e.jsx("td",{style:{backgroundColor:c.length>0&&c[0].backgroundColor?c[0].backgroundColor:r,height:a},children:t.template?t.template(c,n):c.map((d,l)=>e.jsx("p",{style:{color:d.color??o},className:d.onClick?"no-click":"",onClick:d.onClick,children:d.content},l))})},Vo=({actions:n,item:t,columns:o,onContextMenu:r,onDelete:a,onEdit:i,onClickRow:c,index:d,maxH:l})=>{const u=s.useCallback(h=>{h.target.closest(".no-click")||c==null||c(t,d)},[d,c,t]);return e.jsxs("tr",{className:"table-row",onClick:u,children:[o.map((h,m)=>e.jsx(To,{H:l==null?void 0:l[m],color:h.color,backgroundColor:h.backgroundColor,column:h,data:t},h.field)),n&&e.jsx("td",{className:"w-[180px] no-click",children:e.jsx("div",{className:"table-edit-button",children:n.map((h,m)=>e.jsx(re,{transparent:!0,icon:h.icon,onClick:_=>h.onClick(_,t,d)},m))})}),(r||a||i)&&e.jsx("td",{className:"w-[180px] table-edit-button no-click",children:e.jsxs("div",{className:"table-edit-button",children:[i&&e.jsx(re,{transparent:!0,icon:e.jsx(tn,{}),onClick:()=>i(t,d)}),a&&e.jsx(re,{transparent:!0,icon:e.jsx(Je,{className:"text-red-500"}),onClick:()=>a(t,d)}),r&&e.jsx(re,{transparent:!0,icon:e.jsx(en,{}),onClick:h=>r(h,t,d)})]})})]})},Po=({data:n,columns:t,onDelete:o,onContextMenu:r,onEdit:a,actions:i,shadow:c=2,onClickRow:d})=>{const l=s.useMemo(()=>t??Fo(n),[n,t]),u=l.length+(i?1:0)+(o||r||a?1:0),h=_=>_?(Array.isArray(_)?_:[_]).map((b,v)=>typeof b=="string"||typeof b=="number"?e.jsx("span",{children:b},v):e.jsx("span",{style:{color:b.color},onClick:b.onClick,children:b.content},v)):null,m=`container_shadow-${c}`;return e.jsx("div",{className:`table-container mt-3 ${d?"clicked":""} ${m}`,children:e.jsxs("table",{children:[e.jsx("thead",{children:e.jsxs("tr",{children:[l.map(_=>e.jsx("th",{className:"min-width",children:_.title},_.field)),i&&e.jsx("th",{className:"table-actions-header",children:"actions"}),(o||r||a)&&e.jsx("th",{className:"table-actions-header"})]})}),e.jsx("tbody",{children:n.map((_,p)=>{if("__all__"in _){const b=$o(_.__all__);return e.jsx("tr",{className:"table-all-row",children:e.jsx("td",{colSpan:u,style:{backgroundColor:b==null?void 0:b.backgroundColor,color:b==null?void 0:b.color},children:h(b)})},`all-${p}`)}return e.jsx(Vo,{onClickRow:d,actions:i,index:p,columns:l,item:_,onDelete:o,onContextMenu:r,onEdit:a},p)})})]})})},Io=({icon:n,title:t,to:o})=>e.jsxs(Ze.NavLink,{to:o,className:"navigation-item navigation-item-bar",children:[e.jsx("div",{className:`
|
|
343
343
|
navigation-item-bar__icon
|
|
344
344
|
navigation-item-bar__icon_color_surface-variant
|
|
345
345
|
navigation-item-bar__icon_hover-color_surface-container-highest
|
|
@@ -24,6 +24,8 @@ export interface FullScreenDialogProps {
|
|
|
24
24
|
cancelText?: string;
|
|
25
25
|
forceFullScreen?: boolean;
|
|
26
26
|
btns?: DialogButtonType[];
|
|
27
|
+
/** Maximum width of the dialog */
|
|
28
|
+
maxWidth?: number | string;
|
|
27
29
|
}
|
|
28
30
|
/**
|
|
29
31
|
* Адаптивный диалог, который переключается между модальным и полноэкранным режимом
|
|
@@ -38,4 +40,4 @@ export interface FullScreenDialogProps {
|
|
|
38
40
|
* <FormFields />
|
|
39
41
|
* </FullScreenTemplateDialog>
|
|
40
42
|
*/
|
|
41
|
-
export declare const FullScreenTemplateDialog: ({ style, styleContent, className, header, children, onSave, onHide, marginBottom, disableBackplate, saveText, cancelText, forceFullScreen, btns }: FullScreenDialogProps) => import("react/jsx-runtime").JSX.Element;
|
|
43
|
+
export declare const FullScreenTemplateDialog: ({ style, styleContent, className, header, children, onSave, onHide, marginBottom, disableBackplate, saveText, cancelText, forceFullScreen, maxWidth, btns }: FullScreenDialogProps) => import("react/jsx-runtime").JSX.Element;
|