alex-evo-sh-ui-kit 1.1.87 → 1.1.88
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 ne, { useEffect as O, useState as g, useRef as Z, useCallback as k, createContext as Pe, useContext as
|
|
1
|
+
import ne, { useEffect as O, useState as g, useRef as Z, useCallback as k, createContext as Pe, useContext as Ce, useMemo as oe, forwardRef as ve, useLayoutEffect as dt, useId as Be, memo as ut, useImperativeHandle as ht } from "react";
|
|
2
2
|
import mt from "react-dom";
|
|
3
3
|
import { NavLink as Qe } from "react-router-dom";
|
|
4
4
|
import './index.css';var Je = { exports: {} }, Se = {};
|
|
@@ -46,12 +46,12 @@ var Me = {};
|
|
|
46
46
|
var on;
|
|
47
47
|
function ft() {
|
|
48
48
|
return on || (on = 1, process.env.NODE_ENV !== "production" && function() {
|
|
49
|
-
function n(
|
|
50
|
-
if (
|
|
51
|
-
if (typeof
|
|
52
|
-
return
|
|
53
|
-
if (typeof
|
|
54
|
-
switch (
|
|
49
|
+
function n(p) {
|
|
50
|
+
if (p == null) return null;
|
|
51
|
+
if (typeof p == "function")
|
|
52
|
+
return p.$$typeof === D ? null : p.displayName || p.name || null;
|
|
53
|
+
if (typeof p == "string") return p;
|
|
54
|
+
switch (p) {
|
|
55
55
|
case j:
|
|
56
56
|
return "Fragment";
|
|
57
57
|
case b:
|
|
@@ -65,127 +65,127 @@ function ft() {
|
|
|
65
65
|
case z:
|
|
66
66
|
return "Activity";
|
|
67
67
|
}
|
|
68
|
-
if (typeof
|
|
69
|
-
switch (typeof
|
|
68
|
+
if (typeof p == "object")
|
|
69
|
+
switch (typeof p.tag == "number" && console.error(
|
|
70
70
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
71
|
-
),
|
|
71
|
+
), p.$$typeof) {
|
|
72
72
|
case f:
|
|
73
73
|
return "Portal";
|
|
74
74
|
case v:
|
|
75
|
-
return
|
|
75
|
+
return p.displayName || "Context";
|
|
76
76
|
case y:
|
|
77
|
-
return (
|
|
77
|
+
return (p._context.displayName || "Context") + ".Consumer";
|
|
78
78
|
case M:
|
|
79
|
-
var $ =
|
|
80
|
-
return
|
|
79
|
+
var $ = p.render;
|
|
80
|
+
return p = p.displayName, p || (p = $.displayName || $.name || "", p = p !== "" ? "ForwardRef(" + p + ")" : "ForwardRef"), p;
|
|
81
81
|
case A:
|
|
82
|
-
return $ =
|
|
82
|
+
return $ = p.displayName || null, $ !== null ? $ : n(p.type) || "Memo";
|
|
83
83
|
case w:
|
|
84
|
-
$ =
|
|
84
|
+
$ = p._payload, p = p._init;
|
|
85
85
|
try {
|
|
86
|
-
return n(
|
|
86
|
+
return n(p($));
|
|
87
87
|
} catch {
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
return null;
|
|
91
91
|
}
|
|
92
|
-
function t(
|
|
93
|
-
return "" +
|
|
92
|
+
function t(p) {
|
|
93
|
+
return "" + p;
|
|
94
94
|
}
|
|
95
|
-
function r(
|
|
95
|
+
function r(p) {
|
|
96
96
|
try {
|
|
97
|
-
t(
|
|
97
|
+
t(p);
|
|
98
98
|
var $ = !1;
|
|
99
99
|
} catch {
|
|
100
100
|
$ = !0;
|
|
101
101
|
}
|
|
102
102
|
if ($) {
|
|
103
103
|
$ = console;
|
|
104
|
-
var H = $.error, K = typeof Symbol == "function" && Symbol.toStringTag &&
|
|
104
|
+
var H = $.error, K = typeof Symbol == "function" && Symbol.toStringTag && p[Symbol.toStringTag] || p.constructor.name || "Object";
|
|
105
105
|
return H.call(
|
|
106
106
|
$,
|
|
107
107
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
108
108
|
K
|
|
109
|
-
), t(
|
|
109
|
+
), t(p);
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
|
-
function s(
|
|
113
|
-
if (
|
|
114
|
-
if (typeof
|
|
112
|
+
function s(p) {
|
|
113
|
+
if (p === j) return "<>";
|
|
114
|
+
if (typeof p == "object" && p !== null && p.$$typeof === w)
|
|
115
115
|
return "<...>";
|
|
116
116
|
try {
|
|
117
|
-
var $ = n(
|
|
117
|
+
var $ = n(p);
|
|
118
118
|
return $ ? "<" + $ + ">" : "<...>";
|
|
119
119
|
} catch {
|
|
120
120
|
return "<...>";
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
function i() {
|
|
124
|
-
var
|
|
125
|
-
return
|
|
124
|
+
var p = E.A;
|
|
125
|
+
return p === null ? null : p.getOwner();
|
|
126
126
|
}
|
|
127
127
|
function l() {
|
|
128
128
|
return Error("react-stack-top-frame");
|
|
129
129
|
}
|
|
130
|
-
function o(
|
|
131
|
-
if (N.call(
|
|
132
|
-
var $ = Object.getOwnPropertyDescriptor(
|
|
130
|
+
function o(p) {
|
|
131
|
+
if (N.call(p, "key")) {
|
|
132
|
+
var $ = Object.getOwnPropertyDescriptor(p, "key").get;
|
|
133
133
|
if ($ && $.isReactWarning) return !1;
|
|
134
134
|
}
|
|
135
|
-
return
|
|
135
|
+
return p.key !== void 0;
|
|
136
136
|
}
|
|
137
|
-
function c(
|
|
137
|
+
function c(p, $) {
|
|
138
138
|
function H() {
|
|
139
139
|
L || (L = !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
|
$
|
|
142
142
|
));
|
|
143
143
|
}
|
|
144
|
-
H.isReactWarning = !0, Object.defineProperty(
|
|
144
|
+
H.isReactWarning = !0, Object.defineProperty(p, "key", {
|
|
145
145
|
get: H,
|
|
146
146
|
configurable: !0
|
|
147
147
|
});
|
|
148
148
|
}
|
|
149
149
|
function a() {
|
|
150
|
-
var
|
|
151
|
-
return T[
|
|
150
|
+
var p = n(this.type);
|
|
151
|
+
return T[p] || (T[p] = !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
|
+
)), p = this.props.ref, p !== void 0 ? p : null;
|
|
154
154
|
}
|
|
155
|
-
function d(
|
|
155
|
+
function d(p, $, H, K, J, te) {
|
|
156
156
|
var Q = H.ref;
|
|
157
|
-
return
|
|
158
|
-
$$typeof:
|
|
159
|
-
type:
|
|
157
|
+
return p = {
|
|
158
|
+
$$typeof: C,
|
|
159
|
+
type: p,
|
|
160
160
|
key: $,
|
|
161
161
|
props: H,
|
|
162
162
|
_owner: K
|
|
163
|
-
}, (Q !== void 0 ? Q : null) !== null ? Object.defineProperty(
|
|
163
|
+
}, (Q !== void 0 ? Q : null) !== null ? Object.defineProperty(p, "ref", {
|
|
164
164
|
enumerable: !1,
|
|
165
165
|
get: a
|
|
166
|
-
}) : Object.defineProperty(
|
|
166
|
+
}) : Object.defineProperty(p, "ref", { enumerable: !1, value: null }), p._store = {}, Object.defineProperty(p._store, "validated", {
|
|
167
167
|
configurable: !1,
|
|
168
168
|
enumerable: !1,
|
|
169
169
|
writable: !0,
|
|
170
170
|
value: 0
|
|
171
|
-
}), Object.defineProperty(
|
|
171
|
+
}), Object.defineProperty(p, "_debugInfo", {
|
|
172
172
|
configurable: !1,
|
|
173
173
|
enumerable: !1,
|
|
174
174
|
writable: !0,
|
|
175
175
|
value: null
|
|
176
|
-
}), Object.defineProperty(
|
|
176
|
+
}), Object.defineProperty(p, "_debugStack", {
|
|
177
177
|
configurable: !1,
|
|
178
178
|
enumerable: !1,
|
|
179
179
|
writable: !0,
|
|
180
180
|
value: J
|
|
181
|
-
}), Object.defineProperty(
|
|
181
|
+
}), Object.defineProperty(p, "_debugTask", {
|
|
182
182
|
configurable: !1,
|
|
183
183
|
enumerable: !1,
|
|
184
184
|
writable: !0,
|
|
185
185
|
value: te
|
|
186
|
-
}), Object.freeze && (Object.freeze(
|
|
186
|
+
}), Object.freeze && (Object.freeze(p.props), Object.freeze(p)), p;
|
|
187
187
|
}
|
|
188
|
-
function u(
|
|
188
|
+
function u(p, $, H, K, J, te) {
|
|
189
189
|
var Q = $.children;
|
|
190
190
|
if (Q !== void 0)
|
|
191
191
|
if (K)
|
|
@@ -199,7 +199,7 @@ function ft() {
|
|
|
199
199
|
);
|
|
200
200
|
else m(Q);
|
|
201
201
|
if (N.call($, "key")) {
|
|
202
|
-
Q = n(
|
|
202
|
+
Q = n(p);
|
|
203
203
|
var ie = Object.keys($).filter(function(W) {
|
|
204
204
|
return W !== "key";
|
|
205
205
|
});
|
|
@@ -223,9 +223,9 @@ React keys must be passed directly to JSX without using spread:
|
|
|
223
223
|
} else H = $;
|
|
224
224
|
return Q && c(
|
|
225
225
|
H,
|
|
226
|
-
typeof
|
|
226
|
+
typeof p == "function" ? p.displayName || p.name || "Unknown" : p
|
|
227
227
|
), d(
|
|
228
|
-
|
|
228
|
+
p,
|
|
229
229
|
Q,
|
|
230
230
|
H,
|
|
231
231
|
i(),
|
|
@@ -233,50 +233,50 @@ React keys must be passed directly to JSX without using spread:
|
|
|
233
233
|
te
|
|
234
234
|
);
|
|
235
235
|
}
|
|
236
|
-
function m(
|
|
237
|
-
h(
|
|
236
|
+
function m(p) {
|
|
237
|
+
h(p) ? p._store && (p._store.validated = 1) : typeof p == "object" && p !== null && p.$$typeof === w && (p._payload.status === "fulfilled" ? h(p._payload.value) && p._payload.value._store && (p._payload.value._store.validated = 1) : p._store && (p._store.validated = 1));
|
|
238
238
|
}
|
|
239
|
-
function h(
|
|
240
|
-
return typeof
|
|
239
|
+
function h(p) {
|
|
240
|
+
return typeof p == "object" && p !== null && p.$$typeof === C;
|
|
241
241
|
}
|
|
242
|
-
var x = ne,
|
|
242
|
+
var x = ne, C = Symbol.for("react.transitional.element"), f = Symbol.for("react.portal"), j = Symbol.for("react.fragment"), _ = Symbol.for("react.strict_mode"), b = Symbol.for("react.profiler"), y = Symbol.for("react.consumer"), v = Symbol.for("react.context"), M = Symbol.for("react.forward_ref"), F = Symbol.for("react.suspense"), B = Symbol.for("react.suspense_list"), A = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), z = Symbol.for("react.activity"), D = Symbol.for("react.client.reference"), E = x.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, N = Object.prototype.hasOwnProperty, I = Array.isArray, S = console.createTask ? console.createTask : function() {
|
|
243
243
|
return null;
|
|
244
244
|
};
|
|
245
245
|
x = {
|
|
246
|
-
react_stack_bottom_frame: function(
|
|
247
|
-
return
|
|
246
|
+
react_stack_bottom_frame: function(p) {
|
|
247
|
+
return p();
|
|
248
248
|
}
|
|
249
249
|
};
|
|
250
250
|
var L, T = {}, Y = x.react_stack_bottom_frame.bind(
|
|
251
251
|
x,
|
|
252
252
|
l
|
|
253
253
|
)(), q = S(s(l)), G = {};
|
|
254
|
-
Me.Fragment = j, Me.jsx = function(
|
|
254
|
+
Me.Fragment = j, Me.jsx = function(p, $, H) {
|
|
255
255
|
var K = 1e4 > E.recentlyCreatedOwnerStacks++;
|
|
256
256
|
return u(
|
|
257
|
-
|
|
257
|
+
p,
|
|
258
258
|
$,
|
|
259
259
|
H,
|
|
260
260
|
!1,
|
|
261
261
|
K ? Error("react-stack-top-frame") : Y,
|
|
262
|
-
K ? S(s(
|
|
262
|
+
K ? S(s(p)) : q
|
|
263
263
|
);
|
|
264
|
-
}, Me.jsxs = function(
|
|
264
|
+
}, Me.jsxs = function(p, $, H) {
|
|
265
265
|
var K = 1e4 > E.recentlyCreatedOwnerStacks++;
|
|
266
266
|
return u(
|
|
267
|
-
|
|
267
|
+
p,
|
|
268
268
|
$,
|
|
269
269
|
H,
|
|
270
270
|
!0,
|
|
271
271
|
K ? Error("react-stack-top-frame") : Y,
|
|
272
|
-
K ? S(s(
|
|
272
|
+
K ? S(s(p)) : q
|
|
273
273
|
);
|
|
274
274
|
};
|
|
275
275
|
}()), Me;
|
|
276
276
|
}
|
|
277
277
|
process.env.NODE_ENV === "production" ? Je.exports = xt() : Je.exports = ft();
|
|
278
278
|
var e = Je.exports;
|
|
279
|
-
const
|
|
279
|
+
const _n = (n) => /* @__PURE__ */ e.jsx(
|
|
280
280
|
Fe,
|
|
281
281
|
{
|
|
282
282
|
...n,
|
|
@@ -315,7 +315,7 @@ const Cn = (n) => /* @__PURE__ */ e.jsx(
|
|
|
315
315
|
large: "btn--large"
|
|
316
316
|
};
|
|
317
317
|
return /* @__PURE__ */ e.jsx("button", { ...t, className: (t.className ?? "") + " btn " + s[n], onClick: r, children: /* @__PURE__ */ e.jsx("span", { children: t.children }) });
|
|
318
|
-
}, ye = ({ styleType: n = "base", ...t }) => n === "outline" ? /* @__PURE__ */ e.jsx(
|
|
318
|
+
}, ye = ({ styleType: n = "base", ...t }) => n === "outline" ? /* @__PURE__ */ e.jsx(_n, { ...t }) : n === "text" ? /* @__PURE__ */ e.jsx(ce, { ...t }) : n === "filledTotal" ? /* @__PURE__ */ e.jsx(jt, { ...t }) : n === "filled" ? /* @__PURE__ */ e.jsx(pt, { ...t }) : /* @__PURE__ */ e.jsx(Fe, { ...t }), Cn = (n, t) => {
|
|
319
319
|
O(() => {
|
|
320
320
|
if (n) {
|
|
321
321
|
const r = window.innerWidth - document.documentElement.clientWidth;
|
|
@@ -381,7 +381,7 @@ const We = ({ children: n, onHide: t, disableBackplate: r }) => {
|
|
|
381
381
|
}, bn = (n, t = ee.STANDART) => `var(--${n}-${gn[t]})`, kn = (n, t = "standart") => `var(--${n}-${t})`, yn = (n, t = "normal", r = ee.STANDART) => `var(--${n}-heights-${gn[r]}-${t})`, ge = {
|
|
382
382
|
mobileSize: 720,
|
|
383
383
|
bigSize: 1400
|
|
384
|
-
},
|
|
384
|
+
}, _t = (n = {}) => {
|
|
385
385
|
const t = {
|
|
386
386
|
bigSize: n.bigSize ?? ge.bigSize,
|
|
387
387
|
mobileSize: n.mobileSize ?? ge.mobileSize
|
|
@@ -395,10 +395,10 @@ const We = ({ children: n, onHide: t, disableBackplate: r }) => {
|
|
|
395
395
|
}, [i]), O(() => (window.addEventListener("resize", i), () => {
|
|
396
396
|
window.removeEventListener("resize", i);
|
|
397
397
|
}), [i]), { screen: r };
|
|
398
|
-
},
|
|
398
|
+
}, Ct = {
|
|
399
399
|
screen: ee.STANDART
|
|
400
|
-
}, we = Pe(
|
|
401
|
-
const r =
|
|
400
|
+
}, we = Pe(Ct), ws = ({ children: n, option: t }) => {
|
|
401
|
+
const r = _t(t);
|
|
402
402
|
return /* @__PURE__ */ e.jsx(we.Provider, { value: r, children: n });
|
|
403
403
|
}, U = ({
|
|
404
404
|
type: n,
|
|
@@ -410,7 +410,7 @@ const We = ({ children: n, onHide: t, disableBackplate: r }) => {
|
|
|
410
410
|
className: o = "",
|
|
411
411
|
...c
|
|
412
412
|
}) => {
|
|
413
|
-
const a =
|
|
413
|
+
const a = Ce(we), d = a ? a.screen : t, u = n === "heading" || n === "title" || n === "title-2", m = u ? "h3" : "span", h = {
|
|
414
414
|
fontSize: bn(n, d),
|
|
415
415
|
fontWeight: kn(n, r),
|
|
416
416
|
lineHeight: yn(n, s, d),
|
|
@@ -437,33 +437,34 @@ const We = ({ children: n, onHide: t, disableBackplate: r }) => {
|
|
|
437
437
|
disabled: c = !1,
|
|
438
438
|
style: a,
|
|
439
439
|
rippleDisabled: d = !1,
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
440
|
+
shadow: u = 0,
|
|
441
|
+
...m
|
|
442
|
+
}, h) => {
|
|
443
|
+
const x = k(
|
|
444
|
+
(f) => {
|
|
445
|
+
c || (l == null || l(f), !d && C(f));
|
|
445
446
|
},
|
|
446
447
|
[l, c]
|
|
447
|
-
),
|
|
448
|
-
const
|
|
449
|
-
|
|
450
|
-
const
|
|
451
|
-
|
|
448
|
+
), C = (f) => {
|
|
449
|
+
const j = f.currentTarget, _ = document.createElement("span"), b = Math.max(j.clientWidth, j.clientHeight), y = b / 2;
|
|
450
|
+
_.style.width = _.style.height = `${b}px`, _.style.left = `${f.clientX - j.getBoundingClientRect().left - y}px`, _.style.top = `${f.clientY - j.getBoundingClientRect().top - y}px`, _.classList.add("iconbutton-ripple");
|
|
451
|
+
const v = j.getElementsByClassName("iconbutton-ripple")[0];
|
|
452
|
+
v && v.remove(), j.appendChild(_);
|
|
452
453
|
};
|
|
453
454
|
return /* @__PURE__ */ e.jsx(
|
|
454
455
|
"button",
|
|
455
456
|
{
|
|
456
|
-
ref:
|
|
457
|
+
ref: h,
|
|
457
458
|
style: {
|
|
458
459
|
backgroundColor: s ? "transparent" : void 0,
|
|
459
460
|
...a
|
|
460
461
|
},
|
|
461
|
-
className: `iconbutton iconbutton--${i} ${t}`,
|
|
462
|
-
onClick:
|
|
462
|
+
className: `iconbutton iconbutton--${i} ${t} container_shadow-hover-${u}`,
|
|
463
|
+
onClick: x,
|
|
463
464
|
onContextMenu: o,
|
|
464
465
|
disabled: c,
|
|
465
466
|
"aria-disabled": c,
|
|
466
|
-
...
|
|
467
|
+
...m,
|
|
467
468
|
children: /* @__PURE__ */ e.jsx("div", { className: `iconbutton-container ${r}`, children: n })
|
|
468
469
|
}
|
|
469
470
|
);
|
|
@@ -1838,8 +1839,8 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
1838
1839
|
forceModal: r = !1,
|
|
1839
1840
|
...s
|
|
1840
1841
|
}) => {
|
|
1841
|
-
const { screen: i } =
|
|
1842
|
-
|
|
1842
|
+
const { screen: i } = Ce(we);
|
|
1843
|
+
Cn(!0, document.body);
|
|
1843
1844
|
const l = () => {
|
|
1844
1845
|
var c;
|
|
1845
1846
|
(c = s.onHide) == null || c.call(s);
|
|
@@ -1903,7 +1904,7 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
1903
1904
|
l == null || l(), c == null || c();
|
|
1904
1905
|
}, [l, c]), x = k(() => {
|
|
1905
1906
|
o == null || o(), c == null || c();
|
|
1906
|
-
}, [o, c]),
|
|
1907
|
+
}, [o, c]), C = k(() => u || (d ? null : m ? /* @__PURE__ */ e.jsx(ze, { onHide: x, onSuccess: h, btns: m }) : /* @__PURE__ */ e.jsx(ze, { onHide: x, onSuccess: h, btns: [
|
|
1907
1908
|
{
|
|
1908
1909
|
text: i,
|
|
1909
1910
|
hide: !0,
|
|
@@ -1920,21 +1921,21 @@ const Nn = (n) => /* @__PURE__ */ e.jsx(R, { ...n, className: `${n.className} ic
|
|
|
1920
1921
|
style: n,
|
|
1921
1922
|
header: r,
|
|
1922
1923
|
onHide: x,
|
|
1923
|
-
action:
|
|
1924
|
+
action: C(),
|
|
1924
1925
|
children: [
|
|
1925
1926
|
t && /* @__PURE__ */ e.jsx(U, { type: "body", children: t }),
|
|
1926
1927
|
a
|
|
1927
1928
|
]
|
|
1928
1929
|
}
|
|
1929
1930
|
);
|
|
1930
|
-
},
|
|
1931
|
+
}, _e = ({ children: n, container: t = document.body }) => t ? mt.createPortal(
|
|
1931
1932
|
n,
|
|
1932
1933
|
t
|
|
1933
1934
|
) : /* @__PURE__ */ e.jsx("p", { children: "container not found" }), Xt = ({ container: n, text: t, header: r, onClick: s, styleType: i, ...l }) => {
|
|
1934
1935
|
const [o, c] = g(null);
|
|
1935
1936
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
1936
1937
|
/* @__PURE__ */ e.jsx(ye, { styleType: i ?? "filled", ...l, onClick: c }),
|
|
1937
|
-
o !== null && /* @__PURE__ */ e.jsx(
|
|
1938
|
+
o !== null && /* @__PURE__ */ e.jsx(_e, { container: n, children: /* @__PURE__ */ e.jsx(Ut, { header: r, text: t, onSuccess: () => s == null ? void 0 : s(o), onHide: () => c(null) }) })
|
|
1938
1939
|
] });
|
|
1939
1940
|
}, cn = ({
|
|
1940
1941
|
text: n,
|
|
@@ -2309,8 +2310,8 @@ function rr(n = "light") {
|
|
|
2309
2310
|
Xe
|
|
2310
2311
|
), [s, i] = g(n), { colors: l, setColor: o, setReverse: c } = er(t[s].colors, t[s].reverse), a = k(
|
|
2311
2312
|
(x) => {
|
|
2312
|
-
const
|
|
2313
|
-
|
|
2313
|
+
const C = t[x].colors;
|
|
2314
|
+
C && (Object.entries(C).forEach(([f, j]) => {
|
|
2314
2315
|
o(f, j);
|
|
2315
2316
|
}), c(t[x].reverse ?? !1), i(x));
|
|
2316
2317
|
},
|
|
@@ -2320,30 +2321,30 @@ function rr(n = "light") {
|
|
|
2320
2321
|
a(s);
|
|
2321
2322
|
}, [s, a]);
|
|
2322
2323
|
const d = k(
|
|
2323
|
-
(x,
|
|
2324
|
+
(x, C, f) => {
|
|
2324
2325
|
r((j) => ({
|
|
2325
2326
|
...j,
|
|
2326
2327
|
[x]: {
|
|
2327
|
-
colors: { ...j[x].colors, [
|
|
2328
|
+
colors: { ...j[x].colors, [C]: f },
|
|
2328
2329
|
reverse: j[x].reverse
|
|
2329
2330
|
}
|
|
2330
2331
|
}));
|
|
2331
2332
|
},
|
|
2332
2333
|
[]
|
|
2333
|
-
), u = k((x,
|
|
2334
|
+
), u = k((x, C = "light", f) => {
|
|
2334
2335
|
r((j) => ({
|
|
2335
2336
|
...j,
|
|
2336
|
-
[x]: { colors: j[
|
|
2337
|
+
[x]: { colors: j[C].colors, reverse: f === void 0 ? j[C].reverse : f }
|
|
2337
2338
|
}));
|
|
2338
2339
|
}, []), m = k((x) => {
|
|
2339
|
-
r((
|
|
2340
|
-
const f = { ...
|
|
2340
|
+
r((C) => {
|
|
2341
|
+
const f = { ...C };
|
|
2341
2342
|
return delete f[x], f;
|
|
2342
2343
|
}), s === x && i("light");
|
|
2343
2344
|
}, [s]), h = k(
|
|
2344
2345
|
(x) => {
|
|
2345
|
-
Xe[x] && r((
|
|
2346
|
-
...
|
|
2346
|
+
Xe[x] && r((C) => ({
|
|
2347
|
+
...C,
|
|
2347
2348
|
[x]: { ...Xe[x] }
|
|
2348
2349
|
}));
|
|
2349
2350
|
},
|
|
@@ -2388,16 +2389,16 @@ const $e = () => {
|
|
|
2388
2389
|
valueDisplayDuration: m = 2e3,
|
|
2389
2390
|
ariaLabel: h = "Регулятор значения",
|
|
2390
2391
|
startColor: x,
|
|
2391
|
-
className:
|
|
2392
|
+
className: C = "",
|
|
2392
2393
|
...f
|
|
2393
2394
|
}) => {
|
|
2394
|
-
const j = Z(null), _ = Z(null), [b, y] = g(c ?? s), [v, M] = g("200px"), { colors: F } =
|
|
2395
|
+
const j = Z(null), _ = Z(null), [b, y] = g(c ?? s), [v, M] = g("200px"), { colors: F } = Ce(sn), { showPopup: B, popupState: A } = Kt({ valueDisplayDuration: m }), w = n ?? F.Primary_color ?? "#0000ff";
|
|
2395
2396
|
O(() => {
|
|
2396
2397
|
var L;
|
|
2397
2398
|
if (a === "vertical" && ((L = _.current) != null && L.parentElement)) {
|
|
2398
2399
|
const T = () => {
|
|
2399
|
-
var G,
|
|
2400
|
-
const q = (
|
|
2400
|
+
var G, p;
|
|
2401
|
+
const q = (p = (G = _.current) == null ? void 0 : G.parentElement) == null ? void 0 : p.clientHeight;
|
|
2401
2402
|
q && M(`${q}px`);
|
|
2402
2403
|
};
|
|
2403
2404
|
T();
|
|
@@ -2444,7 +2445,7 @@ const $e = () => {
|
|
|
2444
2445
|
"div",
|
|
2445
2446
|
{
|
|
2446
2447
|
ref: _,
|
|
2447
|
-
className: `range-wrapper ${a} ${
|
|
2448
|
+
className: `range-wrapper ${a} ${C}`,
|
|
2448
2449
|
style: I,
|
|
2449
2450
|
children: [
|
|
2450
2451
|
/* @__PURE__ */ e.jsxs("div", { className: "track", style: { background: t }, children: [
|
|
@@ -2492,7 +2493,7 @@ const $e = () => {
|
|
|
2492
2493
|
colorRange: m,
|
|
2493
2494
|
pointColor: h,
|
|
2494
2495
|
showBase: x = !0,
|
|
2495
|
-
showIndicator:
|
|
2496
|
+
showIndicator: C = !0,
|
|
2496
2497
|
showPoint: f = !1,
|
|
2497
2498
|
rounding: j = !0,
|
|
2498
2499
|
showValue: _ = !0,
|
|
@@ -2501,11 +2502,11 @@ const $e = () => {
|
|
|
2501
2502
|
className: v,
|
|
2502
2503
|
startColor: M
|
|
2503
2504
|
}) => {
|
|
2504
|
-
const F = Z(null), B = Z(!1), A = d * 2, w = d * 2, z = Math.min(A, w), D = A / 2, E = w / 2, N = z / 2 - a / 2, I = c === "point" ? !1 :
|
|
2505
|
+
const F = Z(null), B = Z(!1), A = d * 2, w = d * 2, z = Math.min(A, w), D = A / 2, E = w / 2, N = z / 2 - a / 2, I = c === "point" ? !1 : C, S = c === "point" ? !0 : f, { colors: L } = Ce(sn), T = m ?? L.Primary_color ?? "#0000ff", Y = h ?? L.Primary_color ?? "#0000ff", [q, G] = g(r);
|
|
2505
2506
|
O(() => {
|
|
2506
2507
|
r !== void 0 && G(r);
|
|
2507
2508
|
}, [r]);
|
|
2508
|
-
const
|
|
2509
|
+
const p = k(() => {
|
|
2509
2510
|
switch (o) {
|
|
2510
2511
|
case "semicircle":
|
|
2511
2512
|
return 180;
|
|
@@ -2546,12 +2547,12 @@ const $e = () => {
|
|
|
2546
2547
|
B.current = !1, document.removeEventListener("mousemove", te), document.removeEventListener("mouseup", Q);
|
|
2547
2548
|
}, ie = k((W) => {
|
|
2548
2549
|
if (!F.current) return;
|
|
2549
|
-
const he =
|
|
2550
|
+
const he = p(), je = F.current.getBoundingClientRect(), X = je.left + je.width / 2, me = je.top + je.height / 2, st = W.clientX, it = W.clientY, lt = me - it, at = X - st;
|
|
2550
2551
|
let le = Math.atan2(lt, at) * (180 / Math.PI);
|
|
2551
2552
|
he === 270 && (le += 45), le < 0 && (le = 360 + le), le < 0 && (le = 0), le > he && q > (t - n) / 2 ? le = he : le > he && (le = 0);
|
|
2552
2553
|
const ot = he, ct = t - n, Ue = Math.round(le * ct / ot + n);
|
|
2553
2554
|
G(Ue), Ue !== r && s && s(Ue);
|
|
2554
|
-
}, [
|
|
2555
|
+
}, [p, s, t, n, D, E, q]);
|
|
2555
2556
|
O(() => {
|
|
2556
2557
|
K();
|
|
2557
2558
|
}, [K]), O(() => () => {
|
|
@@ -2733,12 +2734,12 @@ const cr = 100, dr = (n) => {
|
|
|
2733
2734
|
s !== 0 ? /* @__PURE__ */ e.jsx(se, {}) : null,
|
|
2734
2735
|
/* @__PURE__ */ e.jsx(zn, { block: r, smallDisplay: !0, autoHide: n.autoHide, onHide: n.onHide })
|
|
2735
2736
|
] }, s)) }) });
|
|
2736
|
-
}, Pn = (n) => n.screensize === ee.MOBILE ? /* @__PURE__ */ e.jsx(
|
|
2737
|
-
const [c, a] = g(!1), [d, u] = g(void 0), { screen: m } =
|
|
2737
|
+
}, Pn = (n) => n.screensize === ee.MOBILE ? /* @__PURE__ */ e.jsx(_e, { container: n.container, children: /* @__PURE__ */ e.jsx(ur, { ...n }) }) : /* @__PURE__ */ e.jsx(_e, { container: n.container, children: /* @__PURE__ */ e.jsx(dr, { ...n }) }), Fs = ne.forwardRef(({ screensize: n, autoHide: t, blocks: r, container: s, onClick: i, ...l }, o) => {
|
|
2738
|
+
const [c, a] = g(!1), [d, u] = g(void 0), { screen: m } = Ce(we), h = () => {
|
|
2738
2739
|
a(!1), u(void 0);
|
|
2739
2740
|
}, x = (f) => {
|
|
2740
2741
|
f.stopPropagation(), a(!0), u({ x: f.clientX, y: f.clientY }), i == null || i(f);
|
|
2741
|
-
},
|
|
2742
|
+
}, C = n ?? m;
|
|
2742
2743
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
2743
2744
|
/* @__PURE__ */ e.jsx(
|
|
2744
2745
|
de,
|
|
@@ -2751,7 +2752,7 @@ const cr = 100, dr = (n) => {
|
|
|
2751
2752
|
/* @__PURE__ */ e.jsx(
|
|
2752
2753
|
Pn,
|
|
2753
2754
|
{
|
|
2754
|
-
marginBottom:
|
|
2755
|
+
marginBottom: C === ee.MOBILE ? 80 : 0,
|
|
2755
2756
|
onHide: h,
|
|
2756
2757
|
autoHide: t,
|
|
2757
2758
|
screensize: n,
|
|
@@ -2855,7 +2856,7 @@ const Gn = ve(
|
|
|
2855
2856
|
className: m,
|
|
2856
2857
|
...h
|
|
2857
2858
|
}, x) => {
|
|
2858
|
-
const
|
|
2859
|
+
const C = t !== void 0 ? t === r : l !== void 0 ? l : o;
|
|
2859
2860
|
return /* @__PURE__ */ e.jsxs("label", { className: `radio-button-container ${m || ""}`, children: [
|
|
2860
2861
|
/* @__PURE__ */ e.jsx(
|
|
2861
2862
|
"input",
|
|
@@ -2864,11 +2865,11 @@ const Gn = ve(
|
|
|
2864
2865
|
className: "radio-button",
|
|
2865
2866
|
name: n,
|
|
2866
2867
|
type: "radio",
|
|
2867
|
-
checked:
|
|
2868
|
+
checked: C,
|
|
2868
2869
|
value: r,
|
|
2869
2870
|
onChange: s,
|
|
2870
2871
|
readOnly: i,
|
|
2871
|
-
"aria-checked":
|
|
2872
|
+
"aria-checked": C,
|
|
2872
2873
|
"aria-label": c || h["aria-label"],
|
|
2873
2874
|
...h
|
|
2874
2875
|
}
|
|
@@ -2896,7 +2897,7 @@ const Zn = ve(
|
|
|
2896
2897
|
O(() => {
|
|
2897
2898
|
h(x(t));
|
|
2898
2899
|
}, [t]);
|
|
2899
|
-
const x = (f) => f === void 0 ? [] : Array.isArray(f) ? f : [f],
|
|
2900
|
+
const x = (f) => f === void 0 ? [] : Array.isArray(f) ? f : [f], C = (f, j) => {
|
|
2900
2901
|
if (i) return;
|
|
2901
2902
|
f.preventDefault();
|
|
2902
2903
|
let _;
|
|
@@ -2918,7 +2919,7 @@ const Zn = ve(
|
|
|
2918
2919
|
"aria-label": f,
|
|
2919
2920
|
disabled: i,
|
|
2920
2921
|
className: `segmented-button__item ${m.includes(f) ? "segmented-button__item--active" : ""}`,
|
|
2921
|
-
onClick: (j) =>
|
|
2922
|
+
onClick: (j) => C(j, f),
|
|
2922
2923
|
children: [
|
|
2923
2924
|
m.includes(f) && /* @__PURE__ */ e.jsx("span", { className: "segmented-button__icon", children: /* @__PURE__ */ e.jsx(pe, {}) }),
|
|
2924
2925
|
/* @__PURE__ */ e.jsx("span", { className: "segmented-button__text", children: f }),
|
|
@@ -2987,7 +2988,7 @@ function hr({
|
|
|
2987
2988
|
u !== void 0 && (n == null || n(u), m(void 0), !i && (s == null || s()));
|
|
2988
2989
|
}, [u, n, i, s]), x = k(() => {
|
|
2989
2990
|
s == null || s();
|
|
2990
|
-
}, [s]),
|
|
2991
|
+
}, [s]), C = k((f) => {
|
|
2991
2992
|
m(f);
|
|
2992
2993
|
}, []);
|
|
2993
2994
|
return /* @__PURE__ */ e.jsxs(
|
|
@@ -3009,7 +3010,7 @@ function hr({
|
|
|
3009
3010
|
children: [
|
|
3010
3011
|
/* @__PURE__ */ e.jsx(se, { style: { padding: 0 } }),
|
|
3011
3012
|
/* @__PURE__ */ e.jsx(
|
|
3012
|
-
|
|
3013
|
+
_r,
|
|
3013
3014
|
{
|
|
3014
3015
|
transparent: !0,
|
|
3015
3016
|
scroll: !0,
|
|
@@ -3020,17 +3021,17 @@ function hr({
|
|
|
3020
3021
|
{
|
|
3021
3022
|
"aria-disabled": f.disabled,
|
|
3022
3023
|
children: /* @__PURE__ */ e.jsx(
|
|
3023
|
-
|
|
3024
|
+
Cr,
|
|
3024
3025
|
{
|
|
3025
3026
|
hovered: !f.disabled,
|
|
3026
3027
|
header: f.title,
|
|
3027
3028
|
icon: f.icon,
|
|
3028
3029
|
description: f.description,
|
|
3029
|
-
onClick: f.disabled ? void 0 : () =>
|
|
3030
|
+
onClick: f.disabled ? void 0 : () => C(f.data),
|
|
3030
3031
|
control: /* @__PURE__ */ e.jsx(
|
|
3031
3032
|
Gn,
|
|
3032
3033
|
{
|
|
3033
|
-
onClick: f.disabled ? void 0 : () =>
|
|
3034
|
+
onClick: f.disabled ? void 0 : () => C(f.data),
|
|
3034
3035
|
name: l,
|
|
3035
3036
|
checked: f.data === u,
|
|
3036
3037
|
disabled: f.disabled,
|
|
@@ -3057,7 +3058,7 @@ function mr({
|
|
|
3057
3058
|
cancelText: i = "Отмена"
|
|
3058
3059
|
}) {
|
|
3059
3060
|
return /* @__PURE__ */ e.jsxs("div", { children: [
|
|
3060
|
-
t && /* @__PURE__ */ e.jsx(
|
|
3061
|
+
t && /* @__PURE__ */ e.jsx(_n, { onClick: t, children: i }),
|
|
3061
3062
|
/* @__PURE__ */ e.jsx(
|
|
3062
3063
|
ce,
|
|
3063
3064
|
{
|
|
@@ -3084,7 +3085,7 @@ const Ve = ne.forwardRef(
|
|
|
3084
3085
|
name: m,
|
|
3085
3086
|
value: h,
|
|
3086
3087
|
placeholder: x,
|
|
3087
|
-
className:
|
|
3088
|
+
className: C,
|
|
3088
3089
|
validEmptyValue: f,
|
|
3089
3090
|
onFocus: j,
|
|
3090
3091
|
onBlur: _,
|
|
@@ -3102,7 +3103,7 @@ const Ve = ne.forwardRef(
|
|
|
3102
3103
|
if (!E.current) return;
|
|
3103
3104
|
const J = E.current.querySelector("input");
|
|
3104
3105
|
J == null || J.focus();
|
|
3105
|
-
},
|
|
3106
|
+
}, p = (J) => {
|
|
3106
3107
|
j == null || j(J), L(!0);
|
|
3107
3108
|
}, $ = (J) => {
|
|
3108
3109
|
_ == null || _(J), L(!1), Y(!!J.target.value);
|
|
@@ -3118,7 +3119,7 @@ const Ve = ne.forwardRef(
|
|
|
3118
3119
|
medium: "input-field__text-field_medium",
|
|
3119
3120
|
large: "input-field__text-field_large"
|
|
3120
3121
|
};
|
|
3121
|
-
return /* @__PURE__ */ e.jsxs("div", { className: `input-field-container ${
|
|
3122
|
+
return /* @__PURE__ */ e.jsxs("div", { className: `input-field-container ${C || ""}`, children: [
|
|
3122
3123
|
/* @__PURE__ */ e.jsxs(
|
|
3123
3124
|
"div",
|
|
3124
3125
|
{
|
|
@@ -3157,7 +3158,7 @@ const Ve = ne.forwardRef(
|
|
|
3157
3158
|
value: h,
|
|
3158
3159
|
onClick: n,
|
|
3159
3160
|
onChange: (J) => u == null ? void 0 : u(J.target.value, J.target.name, J),
|
|
3160
|
-
onFocus:
|
|
3161
|
+
onFocus: p,
|
|
3161
3162
|
onBlur: $,
|
|
3162
3163
|
onKeyDown: z,
|
|
3163
3164
|
autoFocus: M,
|
|
@@ -3205,7 +3206,7 @@ const Vs = ({
|
|
|
3205
3206
|
cancelText: m = "Отмена",
|
|
3206
3207
|
validate: h
|
|
3207
3208
|
}) => {
|
|
3208
|
-
const [x,
|
|
3209
|
+
const [x, C] = g(d), [f, j] = g(!0);
|
|
3209
3210
|
O(() => {
|
|
3210
3211
|
if (h)
|
|
3211
3212
|
j(h(x));
|
|
@@ -3222,13 +3223,13 @@ const Vs = ({
|
|
|
3222
3223
|
}, [i]), y = (v) => {
|
|
3223
3224
|
if (o === "number") {
|
|
3224
3225
|
if (v === "") {
|
|
3225
|
-
|
|
3226
|
+
C("");
|
|
3226
3227
|
return;
|
|
3227
3228
|
}
|
|
3228
3229
|
const M = Number(v);
|
|
3229
|
-
isNaN(M) || (M < c && (v = String(c)), M > a && (v = String(a)),
|
|
3230
|
+
isNaN(M) || (M < c && (v = String(c)), M > a && (v = String(a)), C(v));
|
|
3230
3231
|
} else
|
|
3231
|
-
|
|
3232
|
+
C(v);
|
|
3232
3233
|
};
|
|
3233
3234
|
return /* @__PURE__ */ e.jsxs(
|
|
3234
3235
|
Ee,
|
|
@@ -3287,11 +3288,11 @@ const Vs = ({
|
|
|
3287
3288
|
forceFullScreen: u,
|
|
3288
3289
|
btns: m
|
|
3289
3290
|
}) => {
|
|
3290
|
-
const { screen: h } =
|
|
3291
|
-
|
|
3291
|
+
const { screen: h } = Ce(we);
|
|
3292
|
+
Cn(!0, document.body);
|
|
3292
3293
|
const x = () => {
|
|
3293
3294
|
l == null || l();
|
|
3294
|
-
},
|
|
3295
|
+
}, C = () => {
|
|
3295
3296
|
i == null || i();
|
|
3296
3297
|
};
|
|
3297
3298
|
return u || h === ee.MOBILE ? /* @__PURE__ */ e.jsxs(
|
|
@@ -3319,7 +3320,7 @@ const Vs = ({
|
|
|
3319
3320
|
}
|
|
3320
3321
|
) }),
|
|
3321
3322
|
/* @__PURE__ */ e.jsx("div", { className: "full-screen-dialog__container__header__text", children: r }),
|
|
3322
|
-
/* @__PURE__ */ e.jsx("div", { className: "full-screen-dialog__container__header__save", children: i && /* @__PURE__ */ e.jsx("button", { onClick:
|
|
3323
|
+
/* @__PURE__ */ e.jsx("div", { className: "full-screen-dialog__container__header__save", children: i && /* @__PURE__ */ e.jsx("button", { onClick: C, className: "full-screen-dialog__container__header__save__button", children: /* @__PURE__ */ e.jsx(U, { type: "body", weight: "bold", children: a || "Сохранить" }) }) })
|
|
3323
3324
|
] }),
|
|
3324
3325
|
/* @__PURE__ */ e.jsxs("div", { className: "full-screen-dialog__content", children: [
|
|
3325
3326
|
s,
|
|
@@ -3337,7 +3338,7 @@ const Vs = ({
|
|
|
3337
3338
|
onHide: x,
|
|
3338
3339
|
action: m === void 0 ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
3339
3340
|
l && /* @__PURE__ */ e.jsx(ye, { styleType: "outline", onClick: x, children: d ?? "Отмена" }),
|
|
3340
|
-
l && /* @__PURE__ */ e.jsx(ye, { onClick:
|
|
3341
|
+
l && /* @__PURE__ */ e.jsx(ye, { onClick: C, children: a ?? "Сохранить" })
|
|
3341
3342
|
] }) : /* @__PURE__ */ e.jsx(ze, { btns: m, onHide: l, onSuccess: i }),
|
|
3342
3343
|
children: s
|
|
3343
3344
|
}
|
|
@@ -3358,11 +3359,11 @@ const Vs = ({
|
|
|
3358
3359
|
rootApp: m = "#root",
|
|
3359
3360
|
variant: h = "elevated",
|
|
3360
3361
|
loading: x = !1,
|
|
3361
|
-
style:
|
|
3362
|
+
style: C,
|
|
3362
3363
|
elevation: f = 6,
|
|
3363
3364
|
...j
|
|
3364
3365
|
}, _) => {
|
|
3365
|
-
const { screen: b } =
|
|
3366
|
+
const { screen: b } = Ce(we), y = u ?? b, v = `elevation-${Math.min(24, Math.max(0, f))}`, M = (A) => {
|
|
3366
3367
|
F(A) && (d == null || d(A), B(A));
|
|
3367
3368
|
}, F = (A) => {
|
|
3368
3369
|
const w = A.target;
|
|
@@ -3377,7 +3378,7 @@ const Vs = ({
|
|
|
3377
3378
|
"div",
|
|
3378
3379
|
{
|
|
3379
3380
|
ref: _,
|
|
3380
|
-
style:
|
|
3381
|
+
style: C,
|
|
3381
3382
|
className: `${n} card card--${h} ${v} ${x ? "card--loading" : ""}`,
|
|
3382
3383
|
onClick: M,
|
|
3383
3384
|
...j,
|
|
@@ -3433,7 +3434,7 @@ xr.displayName = "Card";
|
|
|
3433
3434
|
const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { className: `base-action-card ${t ?? ""}`, children: n }), As = ({ children: n, className: t, id: r, height: s, width: i, pozMove: l, draggable: o = !0 }) => {
|
|
3434
3435
|
const [c, a] = g(!1), [d, u] = g(null), [m, h] = g({ x: 0, y: 0 }), x = (j) => {
|
|
3435
3436
|
j.button == 1 && (a(!1), u(null), document.body.style.cursor = "auto");
|
|
3436
|
-
},
|
|
3437
|
+
}, C = (j) => {
|
|
3437
3438
|
j.button == 1 && o && (u({ x: j.clientX, y: j.clientY }), a(!0), document.body.style.cursor = "move");
|
|
3438
3439
|
}, f = k((j) => {
|
|
3439
3440
|
c && (h((_) => {
|
|
@@ -3446,7 +3447,7 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
|
|
|
3446
3447
|
}, [c, d]);
|
|
3447
3448
|
return O(() => {
|
|
3448
3449
|
l && h({ ...l });
|
|
3449
|
-
}, [l]), /* @__PURE__ */ e.jsx("div", { id: r, style: { height: s, width: i }, className: `big-container ${t}`, onMouseDown:
|
|
3450
|
+
}, [l]), /* @__PURE__ */ e.jsx("div", { id: r, style: { height: s, width: i }, className: `big-container ${t}`, onMouseDown: C, onMouseUp: x, onMouseMove: f, children: /* @__PURE__ */ e.jsx("div", { className: "big-container-content", style: { left: m.x, top: m.y }, children: n }) });
|
|
3450
3451
|
}, Ds = ({
|
|
3451
3452
|
onClick: n,
|
|
3452
3453
|
onContextMenu: t,
|
|
@@ -3459,17 +3460,17 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
|
|
|
3459
3460
|
classNameColumn: a,
|
|
3460
3461
|
minColumnWidth: d = "auto"
|
|
3461
3462
|
}) => {
|
|
3462
|
-
const u = ne.useCallback((x,
|
|
3463
|
+
const u = ne.useCallback((x, C) => {
|
|
3463
3464
|
const f = Array.from({ length: x }, () => []);
|
|
3464
|
-
return
|
|
3465
|
+
return C.forEach((j) => {
|
|
3465
3466
|
if (j.indexCol >= f.length) {
|
|
3466
3467
|
console.error(`Invalid column index. indexCol = ${j.indexCol}, column count = ${x}`);
|
|
3467
3468
|
return;
|
|
3468
3469
|
}
|
|
3469
3470
|
f[j.indexCol].push(j.node);
|
|
3470
3471
|
}), f;
|
|
3471
|
-
}, []), m = ne.useMemo(() => u(l, o), [u, l, o]), h = ne.useCallback((x,
|
|
3472
|
-
c == null || c(x,
|
|
3472
|
+
}, []), m = ne.useMemo(() => u(l, o), [u, l, o]), h = ne.useCallback((x, C) => {
|
|
3473
|
+
c == null || c(x, C);
|
|
3473
3474
|
}, [c]);
|
|
3474
3475
|
return /* @__PURE__ */ e.jsx(
|
|
3475
3476
|
"div",
|
|
@@ -3483,15 +3484,15 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
|
|
|
3483
3484
|
},
|
|
3484
3485
|
className: `${s} alex-evo-sh-ui-kit-column-layout`,
|
|
3485
3486
|
"data-testid": "column-layout-container",
|
|
3486
|
-
children: m.map((x,
|
|
3487
|
+
children: m.map((x, C) => /* @__PURE__ */ e.jsx(
|
|
3487
3488
|
"div",
|
|
3488
3489
|
{
|
|
3489
|
-
onClick: (f) => h(
|
|
3490
|
+
onClick: (f) => h(C, f),
|
|
3490
3491
|
className: `${a} alex-evo-sh-ui-kit-column-layout-coll`,
|
|
3491
|
-
"data-testid": `column-${
|
|
3492
|
-
children: x.map((f, j) => /* @__PURE__ */ e.jsx("div", { className: "alex-evo-sh-ui-kit-column-layout-item", children: f }, `item-${
|
|
3492
|
+
"data-testid": `column-${C}`,
|
|
3493
|
+
children: x.map((f, j) => /* @__PURE__ */ e.jsx("div", { className: "alex-evo-sh-ui-kit-column-layout-item", children: f }, `item-${C}-${j}`))
|
|
3493
3494
|
},
|
|
3494
|
-
`column-${
|
|
3495
|
+
`column-${C}`
|
|
3495
3496
|
))
|
|
3496
3497
|
}
|
|
3497
3498
|
);
|
|
@@ -3514,7 +3515,7 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
|
|
|
3514
3515
|
}, x = (j) => {
|
|
3515
3516
|
const _ = h(j);
|
|
3516
3517
|
return _ ? Math.min(_ * jr, 1) : 0.4;
|
|
3517
|
-
},
|
|
3518
|
+
}, C = (j) => {
|
|
3518
3519
|
const _ = j.target;
|
|
3519
3520
|
if (!(_.closest(".action-btn") || _.classList.contains("action-btn")) && l) {
|
|
3520
3521
|
const y = !d;
|
|
@@ -3539,12 +3540,12 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
|
|
|
3539
3540
|
"div",
|
|
3540
3541
|
{
|
|
3541
3542
|
className: "content-box-label",
|
|
3542
|
-
onClick:
|
|
3543
|
+
onClick: C,
|
|
3543
3544
|
role: l ? "button" : void 0,
|
|
3544
3545
|
"aria-label": l ? `${t} - click to ${d ? "collapse" : "expand"}` : t,
|
|
3545
3546
|
tabIndex: l ? 0 : void 0,
|
|
3546
3547
|
onKeyDown: (j) => {
|
|
3547
|
-
l && (j.key === "Enter" || j.key === " ") && (j.preventDefault(),
|
|
3548
|
+
l && (j.key === "Enter" || j.key === " ") && (j.preventDefault(), C(j));
|
|
3548
3549
|
},
|
|
3549
3550
|
children: [
|
|
3550
3551
|
/* @__PURE__ */ e.jsx(U, { type: "title", children: t }),
|
|
@@ -3608,7 +3609,7 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
|
|
|
3608
3609
|
a.current.style.display = "grid", a.current.style.gridRowGap = s, a.current.style.gridColumnGap = i;
|
|
3609
3610
|
const _ = l ?? c, b = o ?? c;
|
|
3610
3611
|
a.current.style.gridTemplateColumns = `repeat(auto-fill, minmax(${_}, ${b}))`, a.current.style.gridAutoRows = "1px";
|
|
3611
|
-
}, [s, i, l, o, c]),
|
|
3612
|
+
}, [s, i, l, o, c]), C = k(() => {
|
|
3612
3613
|
if (a.current) {
|
|
3613
3614
|
const _ = a.current.querySelectorAll(".adaptiv-grid-item");
|
|
3614
3615
|
u(Array.from(_));
|
|
@@ -3629,8 +3630,8 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
|
|
|
3629
3630
|
});
|
|
3630
3631
|
}, [f]);
|
|
3631
3632
|
return O(() => {
|
|
3632
|
-
x(),
|
|
3633
|
-
}, [x,
|
|
3633
|
+
x(), C();
|
|
3634
|
+
}, [x, C, t]), O(() => {
|
|
3634
3635
|
m.current && m.current.disconnect(), m.current = new ResizeObserver(() => j());
|
|
3635
3636
|
const _ = m.current;
|
|
3636
3637
|
return d.forEach((b) => _.observe(b)), j(), () => {
|
|
@@ -3649,13 +3650,13 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
|
|
|
3649
3650
|
children: n,
|
|
3650
3651
|
className: t = "",
|
|
3651
3652
|
style: r,
|
|
3652
|
-
|
|
3653
|
+
shadow: s = 1,
|
|
3653
3654
|
padded: i = !0,
|
|
3654
3655
|
borderRadius: l = 12,
|
|
3655
3656
|
onClick: o,
|
|
3656
3657
|
onContextMenu: c
|
|
3657
3658
|
}) => {
|
|
3658
|
-
const a = `
|
|
3659
|
+
const a = `container_shadow-${s}`;
|
|
3659
3660
|
return /* @__PURE__ */ e.jsx(
|
|
3660
3661
|
"div",
|
|
3661
3662
|
{
|
|
@@ -3678,7 +3679,7 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
|
|
|
3678
3679
|
activeTabIndex: l,
|
|
3679
3680
|
tabContainerClassName: o = ""
|
|
3680
3681
|
}) => {
|
|
3681
|
-
const [c, a] = g(0), d = l !== void 0 ? l : c, u = Z(null), m = Z(null), [h, x] = g(!1),
|
|
3682
|
+
const [c, a] = g(0), d = l !== void 0 ? l : c, u = Z(null), m = Z(null), [h, x] = g(!1), C = (_) => {
|
|
3682
3683
|
if (u.current) {
|
|
3683
3684
|
const b = t || u.current.offsetWidth / 2;
|
|
3684
3685
|
u.current.scrollBy({
|
|
@@ -3707,7 +3708,7 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
|
|
|
3707
3708
|
};
|
|
3708
3709
|
return /* @__PURE__ */ e.jsxs("div", { className: "alex-evo-ui-kit-tabs-container", children: [
|
|
3709
3710
|
/* @__PURE__ */ e.jsxs("div", { className: `alex-evo-ui-kit-tabs-scroll-buttons ${o}`, children: [
|
|
3710
|
-
h && /* @__PURE__ */ e.jsx("button", { onClick: () =>
|
|
3711
|
+
h && /* @__PURE__ */ e.jsx("button", { onClick: () => C("left"), className: "alex-evo-ui-kit-scroll-button", children: "◀" }),
|
|
3711
3712
|
/* @__PURE__ */ e.jsxs(
|
|
3712
3713
|
"div",
|
|
3713
3714
|
{
|
|
@@ -3729,11 +3730,11 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
|
|
|
3729
3730
|
]
|
|
3730
3731
|
}
|
|
3731
3732
|
),
|
|
3732
|
-
h && /* @__PURE__ */ e.jsx("button", { onClick: () =>
|
|
3733
|
+
h && /* @__PURE__ */ e.jsx("button", { onClick: () => C("right"), className: "alex-evo-ui-kit-scroll-button", children: "▶" })
|
|
3733
3734
|
] }),
|
|
3734
3735
|
/* @__PURE__ */ e.jsx("div", { className: "alex-evo-ui-kit-tab-content", children: n[d].content })
|
|
3735
3736
|
] });
|
|
3736
|
-
},
|
|
3737
|
+
}, _r = ve(({
|
|
3737
3738
|
children: n,
|
|
3738
3739
|
className: t = "",
|
|
3739
3740
|
maxHeight: r,
|
|
@@ -3742,23 +3743,27 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
|
|
|
3742
3743
|
width: l,
|
|
3743
3744
|
padding: o,
|
|
3744
3745
|
margin: c,
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
3746
|
+
flex: a,
|
|
3747
|
+
gap: d = 0,
|
|
3748
|
+
...u
|
|
3749
|
+
}, m) => {
|
|
3750
|
+
const h = {
|
|
3748
3751
|
overflowY: r ? s ? "scroll" : "hidden" : void 0,
|
|
3749
3752
|
maxHeight: r,
|
|
3750
3753
|
backgroundColor: i ? "transparent" : void 0,
|
|
3751
3754
|
width: l,
|
|
3752
3755
|
padding: o,
|
|
3753
3756
|
margin: c
|
|
3754
|
-
}
|
|
3757
|
+
};
|
|
3758
|
+
a && (h.display = "flex", h.flexDirection = "column", d > 0 && (h.gap = d));
|
|
3759
|
+
const x = [
|
|
3755
3760
|
"list-container",
|
|
3756
3761
|
t,
|
|
3757
3762
|
s ? "list-container_scroll" : "",
|
|
3758
3763
|
i ? "list-container_transparent" : ""
|
|
3759
3764
|
].filter(Boolean).join(" ");
|
|
3760
|
-
return /* @__PURE__ */ e.jsx("ul", { ref:
|
|
3761
|
-
}),
|
|
3765
|
+
return /* @__PURE__ */ e.jsx("ul", { ref: m, style: h, className: x, ...u, children: n });
|
|
3766
|
+
}), Cr = ve(({
|
|
3762
3767
|
icon: n,
|
|
3763
3768
|
control: t,
|
|
3764
3769
|
text: r,
|
|
@@ -3773,20 +3778,20 @@ const Os = ({ children: n, className: t }) => /* @__PURE__ */ e.jsx("div", { cla
|
|
|
3773
3778
|
shadow: m = 0,
|
|
3774
3779
|
...h
|
|
3775
3780
|
}, x) => {
|
|
3776
|
-
const
|
|
3781
|
+
const C = (j) => {
|
|
3777
3782
|
!d && !j.target.closest(".control-container") && (o == null || o(j));
|
|
3778
3783
|
}, f = [
|
|
3779
3784
|
"list-item-container",
|
|
3780
3785
|
a,
|
|
3781
|
-
`
|
|
3786
|
+
`container_shadow-hover-${m}`,
|
|
3782
3787
|
c && !d ? "list-item-container_hovered" : "",
|
|
3783
3788
|
d ? "list-item-container_disabled" : "",
|
|
3784
3789
|
u ? "list-item-container_active" : ""
|
|
3785
3790
|
].filter(Boolean).join(" ");
|
|
3786
|
-
return /* @__PURE__ */ e.jsxs("li", { ref: x, className: f, onClick:
|
|
3791
|
+
return /* @__PURE__ */ e.jsxs("li", { ref: x, className: f, onClick: C, "aria-disabled": d, ...h, children: [
|
|
3787
3792
|
(n || l) && /* @__PURE__ */ e.jsx("div", { className: "list-item-container__icon-container", children: n || l && /* @__PURE__ */ e.jsx(U, { type: "body", children: l }) }),
|
|
3788
3793
|
(s || r || i) && /* @__PURE__ */ e.jsxs("div", { className: "list-item-container__text-container", children: [
|
|
3789
|
-
s && /* @__PURE__ */ e.jsx("div", { className: "list-item-container__text-container__header", children: /* @__PURE__ */ e.jsx(U, { type: "
|
|
3794
|
+
s && /* @__PURE__ */ e.jsx("div", { className: "list-item-container__text-container__header", children: /* @__PURE__ */ e.jsx(U, { type: "title", children: s }) }),
|
|
3790
3795
|
r && /* @__PURE__ */ e.jsx("div", { className: "list-item-container__text-container__text", children: /* @__PURE__ */ e.jsx(U, { type: "small", children: r }) }),
|
|
3791
3796
|
i && /* @__PURE__ */ e.jsx("div", { className: "list-item-container__text-container__description", children: /* @__PURE__ */ e.jsx(U, { type: "small", color: "variant", children: i }) })
|
|
3792
3797
|
] }),
|
|
@@ -4161,7 +4166,7 @@ const Vr = [
|
|
|
4161
4166
|
width: c = 310,
|
|
4162
4167
|
height: a = "auto"
|
|
4163
4168
|
}) => {
|
|
4164
|
-
const d = Z(null), u = Z(null), m = Z(null), h = Z(null), [x,
|
|
4169
|
+
const d = Z(null), u = Z(null), m = Z(null), h = Z(null), [x, C] = g(Tr(t)), [f, j] = g(!1), [_, b] = g(
|
|
4165
4170
|
`#${ke(Le(x))}`
|
|
4166
4171
|
), y = oe(() => Le(x), [x]), v = oe(() => `#${ke(y)}`, [y]), M = oe(
|
|
4167
4172
|
() => _[0] !== "#" ? `#${_}` : _,
|
|
@@ -4187,7 +4192,7 @@ const Vr = [
|
|
|
4187
4192
|
N,
|
|
4188
4193
|
h.current,
|
|
4189
4194
|
(I, S) => {
|
|
4190
|
-
|
|
4195
|
+
C((L) => {
|
|
4191
4196
|
const T = { ...L, s: I / 100, v: S / 100 };
|
|
4192
4197
|
return b(ke(Le(T))), T;
|
|
4193
4198
|
});
|
|
@@ -4197,7 +4202,7 @@ const Vr = [
|
|
|
4197
4202
|
if (!d.current || !u.current) return;
|
|
4198
4203
|
const N = d.current.getContext("2d");
|
|
4199
4204
|
N && (Rr(N, d.current), Er(N, d.current, u.current, (I) => {
|
|
4200
|
-
|
|
4205
|
+
C((S) => {
|
|
4201
4206
|
const L = { ...S, h: I / 360 };
|
|
4202
4207
|
return b(ke(Le(L))), L;
|
|
4203
4208
|
});
|
|
@@ -4205,21 +4210,21 @@ const Vr = [
|
|
|
4205
4210
|
}, []), O(() => {
|
|
4206
4211
|
if (_.length === 4 || _.length === 7)
|
|
4207
4212
|
try {
|
|
4208
|
-
|
|
4213
|
+
C(De(Ne(_)));
|
|
4209
4214
|
} catch {
|
|
4210
4215
|
console.warn("Invalid HEX color");
|
|
4211
4216
|
}
|
|
4212
4217
|
}, [_]);
|
|
4213
4218
|
const F = (N, I, S, L, T) => {
|
|
4214
4219
|
try {
|
|
4215
|
-
const Y = N.getBoundingClientRect(), q = S.getBoundingClientRect(), G = Math.round(T.s * Y.width),
|
|
4216
|
-
Kn(I, G,
|
|
4220
|
+
const Y = N.getBoundingClientRect(), q = S.getBoundingClientRect(), G = Math.round(T.s * Y.width), p = Math.round((1 - T.v) * Y.height), $ = (360 - T.h * 360) / 360 * q.height;
|
|
4221
|
+
Kn(I, G, p), qn(L, $);
|
|
4217
4222
|
} catch (Y) {
|
|
4218
4223
|
console.error("Error updating cursor positions", Y);
|
|
4219
4224
|
}
|
|
4220
4225
|
}, B = (N) => {
|
|
4221
4226
|
try {
|
|
4222
|
-
|
|
4227
|
+
C(De(Ne(N))), b(N);
|
|
4223
4228
|
} catch {
|
|
4224
4229
|
console.warn("Invalid color format");
|
|
4225
4230
|
}
|
|
@@ -4230,7 +4235,7 @@ const Vr = [
|
|
|
4230
4235
|
}, [r, v]), z = k(
|
|
4231
4236
|
(N, I) => {
|
|
4232
4237
|
const S = Math.min(255, Math.max(0, I));
|
|
4233
|
-
|
|
4238
|
+
C(De({ ...y, [N]: S })), b(ke({ ...y, [N]: S }));
|
|
4234
4239
|
},
|
|
4235
4240
|
[y]
|
|
4236
4241
|
), D = k((N) => {
|
|
@@ -4417,7 +4422,7 @@ const Vr = [
|
|
|
4417
4422
|
O(() => {
|
|
4418
4423
|
s !== void 0 && x(s);
|
|
4419
4424
|
}, [s]);
|
|
4420
|
-
const
|
|
4425
|
+
const C = k(() => {
|
|
4421
4426
|
m(!0);
|
|
4422
4427
|
}, []), f = k(
|
|
4423
4428
|
(b) => {
|
|
@@ -4441,24 +4446,24 @@ const Vr = [
|
|
|
4441
4446
|
{
|
|
4442
4447
|
className: "color-circle",
|
|
4443
4448
|
style: { backgroundColor: h },
|
|
4444
|
-
onClick:
|
|
4449
|
+
onClick: C,
|
|
4445
4450
|
"aria-label": "Current color"
|
|
4446
4451
|
}
|
|
4447
4452
|
),
|
|
4448
|
-
/* @__PURE__ */ e.jsx("div", { className: "color-indicator-field", onClick:
|
|
4453
|
+
/* @__PURE__ */ e.jsx("div", { className: "color-indicator-field", onClick: C, children: /* @__PURE__ */ e.jsx(U, { type: "body", children: h }) })
|
|
4449
4454
|
] }),
|
|
4450
|
-
d && /* @__PURE__ */ e.jsx("div", { className: "color-field-label", onClick:
|
|
4455
|
+
d && /* @__PURE__ */ e.jsx("div", { className: "color-field-label", onClick: C, children: /* @__PURE__ */ e.jsx(U, { type: "body", className: "data color-field-placeholder", children: d }) }),
|
|
4451
4456
|
/* @__PURE__ */ e.jsx(
|
|
4452
4457
|
"div",
|
|
4453
4458
|
{
|
|
4454
4459
|
className: "color-icon-container icon-container",
|
|
4455
|
-
onClick:
|
|
4460
|
+
onClick: C,
|
|
4456
4461
|
"aria-label": "Open color picker",
|
|
4457
4462
|
children: /* @__PURE__ */ e.jsx(wn, {})
|
|
4458
4463
|
}
|
|
4459
4464
|
)
|
|
4460
4465
|
] }),
|
|
4461
|
-
u && /* @__PURE__ */ e.jsx(
|
|
4466
|
+
u && /* @__PURE__ */ e.jsx(_e, { container: r, children: /* @__PURE__ */ e.jsx(
|
|
4462
4467
|
Or,
|
|
4463
4468
|
{
|
|
4464
4469
|
defaultColor: a,
|
|
@@ -4491,9 +4496,9 @@ const Vr = [
|
|
|
4491
4496
|
}), [m, h] = g(
|
|
4492
4497
|
"DAYS"
|
|
4493
4498
|
/* DAYS */
|
|
4494
|
-
), x = (v, M) => new Date(v, M + 1, 0).getDate(),
|
|
4495
|
-
let F = Array(x(v, M)).fill(0).map((z, D) => ({ type: "NOW_MONTH", day: D + 1 })), B =
|
|
4496
|
-
return F = Array(
|
|
4499
|
+
), x = (v, M) => new Date(v, M + 1, 0).getDate(), C = (v, M, F) => new Date(v, M, F).getDay(), f = (v, M) => {
|
|
4500
|
+
let F = Array(x(v, M)).fill(0).map((z, D) => ({ type: "NOW_MONTH", day: D + 1 })), B = C(v, M, x(v, M)), A = Array(7 - B).fill(0).map((z, D) => ({ type: "NEXT_MONTH", day: D + 1 }));
|
|
4501
|
+
return F = Array(C(v, M, 0)).fill(0).map((z, D) => ({ type: "PREV_MONTH", day: x(M ? v : v - 1, M ? M - 1 : 11) - D })).reverse().concat(F).concat(A), F;
|
|
4497
4502
|
}, j = (v) => {
|
|
4498
4503
|
h(
|
|
4499
4504
|
"DAYS"
|
|
@@ -4567,7 +4572,7 @@ const Vr = [
|
|
|
4567
4572
|
placeholder: m,
|
|
4568
4573
|
onBlur: h,
|
|
4569
4574
|
onFocus: x,
|
|
4570
|
-
...
|
|
4575
|
+
...C
|
|
4571
4576
|
}) => {
|
|
4572
4577
|
const [f, j] = g(s ?? ""), [_, b] = g(!1), [y, v] = g(!1), [M, F] = g(!!s), B = Be(), A = l || c, w = () => {
|
|
4573
4578
|
b(!0);
|
|
@@ -4617,7 +4622,7 @@ const Vr = [
|
|
|
4617
4622
|
onFocus: E,
|
|
4618
4623
|
readOnly: !0,
|
|
4619
4624
|
id: B,
|
|
4620
|
-
...
|
|
4625
|
+
...C
|
|
4621
4626
|
}
|
|
4622
4627
|
),
|
|
4623
4628
|
m && /* @__PURE__ */ e.jsx(
|
|
@@ -4632,7 +4637,7 @@ const Vr = [
|
|
|
4632
4637
|
)
|
|
4633
4638
|
] })
|
|
4634
4639
|
] }),
|
|
4635
|
-
_ ? /* @__PURE__ */ e.jsx(
|
|
4640
|
+
_ ? /* @__PURE__ */ e.jsx(_e, { container: o, children: /* @__PURE__ */ e.jsx(Ir, { onChange: I, onHide: () => b(!1) }) }) : null,
|
|
4636
4641
|
A && c && /* @__PURE__ */ e.jsx(U, { type: "small", className: "input-field-container__error-text", children: c }),
|
|
4637
4642
|
a && !A && /* @__PURE__ */ e.jsx(U, { type: "small", className: "input-field-container__helper-text", children: a })
|
|
4638
4643
|
] });
|
|
@@ -4691,7 +4696,7 @@ const Wr = (n, t = ",") => n === "" ? [] : n.split(t).map((r) => r.trim()), jn =
|
|
|
4691
4696
|
id: m,
|
|
4692
4697
|
error: h,
|
|
4693
4698
|
errorText: x,
|
|
4694
|
-
helperText:
|
|
4699
|
+
helperText: C
|
|
4695
4700
|
}) => {
|
|
4696
4701
|
const [f, j] = g([]), [_, b] = g(""), [y, v] = g(null);
|
|
4697
4702
|
O(() => {
|
|
@@ -4727,7 +4732,7 @@ const Wr = (n, t = ",") => n === "" ? [] : n.split(t).map((r) => r.trim()), jn =
|
|
|
4727
4732
|
placeholder: i,
|
|
4728
4733
|
error: h,
|
|
4729
4734
|
errorText: x,
|
|
4730
|
-
helperText:
|
|
4735
|
+
helperText: C,
|
|
4731
4736
|
disabled: c,
|
|
4732
4737
|
"aria-label": d,
|
|
4733
4738
|
"aria-describedby": m ? `${m}-help` : void 0
|
|
@@ -4794,7 +4799,7 @@ const Wr = (n, t = ",") => n === "" ? [] : n.split(t).map((r) => r.trim()), jn =
|
|
|
4794
4799
|
className: m,
|
|
4795
4800
|
validEmptyValue: h,
|
|
4796
4801
|
onFocus: x,
|
|
4797
|
-
onBlur:
|
|
4802
|
+
onBlur: C,
|
|
4798
4803
|
error: f,
|
|
4799
4804
|
max: j,
|
|
4800
4805
|
min: _,
|
|
@@ -4812,29 +4817,29 @@ const Wr = (n, t = ",") => n === "" ? [] : n.split(t).map((r) => r.trim()), jn =
|
|
|
4812
4817
|
return;
|
|
4813
4818
|
const P = I.current.querySelector("input");
|
|
4814
4819
|
P && P.focus();
|
|
4815
|
-
},
|
|
4820
|
+
}, p = k((P, W) => {
|
|
4816
4821
|
c && (N.current && (clearTimeout(N.current), N.current = null), N.current = setTimeout(() => {
|
|
4817
4822
|
N.current && (clearTimeout(N.current), N.current = null), c(P, W);
|
|
4818
4823
|
}, 100));
|
|
4819
4824
|
}, [c]), $ = k(() => {
|
|
4820
4825
|
Y((P) => {
|
|
4821
4826
|
let W = P ? P + v : v;
|
|
4822
|
-
return typeof j == "number" && W > j && (W = j),
|
|
4827
|
+
return typeof j == "number" && W > j && (W = j), p(W, a), W;
|
|
4823
4828
|
});
|
|
4824
|
-
}, [
|
|
4829
|
+
}, [p, a, j, v]), H = k(() => {
|
|
4825
4830
|
Y((P) => {
|
|
4826
4831
|
let W = P ? P - v : -v;
|
|
4827
|
-
return typeof _ == "number" && W < _ && (W = _),
|
|
4832
|
+
return typeof _ == "number" && W < _ && (W = _), p(W, a), W;
|
|
4828
4833
|
});
|
|
4829
|
-
}, [
|
|
4834
|
+
}, [p, a, _, v]), K = k((P) => {
|
|
4830
4835
|
if (P.target.value === "") {
|
|
4831
4836
|
Y("");
|
|
4832
4837
|
return;
|
|
4833
4838
|
}
|
|
4834
4839
|
P.target.value.length > 1 && P.target.value[0] === "0" && ![",", "."].includes(P.target.value[1]) && (P.target.value = P.target.value.slice(1));
|
|
4835
4840
|
let W = Number(P.target.value);
|
|
4836
|
-
typeof _ == "number" && W < _ && (W = _), typeof j == "number" && W > j && (W = j), Y(Number(P.target.value)),
|
|
4837
|
-
}, [a,
|
|
4841
|
+
typeof _ == "number" && W < _ && (W = _), typeof j == "number" && W > j && (W = j), Y(Number(P.target.value)), p(W, a);
|
|
4842
|
+
}, [a, p, T, j, _]), J = k(() => {
|
|
4838
4843
|
D.current && clearTimeout(D.current), E.current && clearInterval(E.current), document.removeEventListener("mouseup", J);
|
|
4839
4844
|
}, []), te = k((P) => {
|
|
4840
4845
|
P === "p" ? $() : P === "m" && H(), D.current && clearTimeout(D.current), E.current && clearInterval(E.current), document.addEventListener("mouseup", J), D.current = setTimeout(() => {
|
|
@@ -4843,7 +4848,7 @@ const Wr = (n, t = ",") => n === "" ? [] : n.split(t).map((r) => r.trim()), jn =
|
|
|
4843
4848
|
}, 100);
|
|
4844
4849
|
}, 500);
|
|
4845
4850
|
}, [$, H]), Q = (P) => {
|
|
4846
|
-
T === "" && (Y(0), c == null || c(0)),
|
|
4851
|
+
T === "" && (Y(0), c == null || c(0)), C == null || C(P);
|
|
4847
4852
|
};
|
|
4848
4853
|
O(() => {
|
|
4849
4854
|
q(h, d);
|
|
@@ -4979,7 +4984,7 @@ const Qn = ne.forwardRef(
|
|
|
4979
4984
|
placeholder: m,
|
|
4980
4985
|
className: h,
|
|
4981
4986
|
validEmptyValue: x,
|
|
4982
|
-
onFocus:
|
|
4987
|
+
onFocus: C,
|
|
4983
4988
|
onBlur: f,
|
|
4984
4989
|
error: j,
|
|
4985
4990
|
autoFocus: _,
|
|
@@ -4990,15 +4995,15 @@ const Qn = ne.forwardRef(
|
|
|
4990
4995
|
onKeyDown: F
|
|
4991
4996
|
}, B) => {
|
|
4992
4997
|
const A = Z(null), [w, z] = g(!1), [D, E] = g(!1), [N, I] = g(!!u), S = Be(), L = () => {
|
|
4993
|
-
var
|
|
4994
|
-
const G = (
|
|
4998
|
+
var p;
|
|
4999
|
+
const G = (p = A.current) == null ? void 0 : p.querySelector("textarea");
|
|
4995
5000
|
G == null || G.focus();
|
|
4996
5001
|
}, T = (G) => {
|
|
4997
|
-
|
|
5002
|
+
C == null || C(G), E(!0);
|
|
4998
5003
|
}, Y = (G) => {
|
|
4999
5004
|
f == null || f(G), E(!1), I(!!G.target.value);
|
|
5000
5005
|
}, q = k(
|
|
5001
|
-
(G,
|
|
5006
|
+
(G, p) => z(!!(j || G && (!p || p === ""))),
|
|
5002
5007
|
[j]
|
|
5003
5008
|
);
|
|
5004
5009
|
return O(() => {
|
|
@@ -5200,7 +5205,7 @@ const Xr = ({ setHours: n, setMinutes: t, switchMode: r, minutes: s, hours: i, o
|
|
|
5200
5205
|
ariaLabel: m,
|
|
5201
5206
|
size: h = "medium",
|
|
5202
5207
|
ariaLabelledby: x,
|
|
5203
|
-
placeholder:
|
|
5208
|
+
placeholder: C,
|
|
5204
5209
|
onBlur: f,
|
|
5205
5210
|
onFocus: j,
|
|
5206
5211
|
style: _,
|
|
@@ -5210,15 +5215,15 @@ const Xr = ({ setHours: n, setMinutes: t, switchMode: r, minutes: s, hours: i, o
|
|
|
5210
5215
|
O(() => {
|
|
5211
5216
|
v(s);
|
|
5212
5217
|
}, [s]);
|
|
5213
|
-
const N = k(() => E || l && !y ? "error" : "", [y, E, l]), I = (
|
|
5214
|
-
const H = String(
|
|
5218
|
+
const N = k(() => E || l && !y ? "error" : "", [y, E, l]), I = (p, $) => {
|
|
5219
|
+
const H = String(p).padStart(2, "0"), K = String($).padStart(2, "0"), J = `${H}:${K}`;
|
|
5215
5220
|
v(J), t == null || t(J);
|
|
5216
5221
|
}, S = () => {
|
|
5217
5222
|
a || F(!0);
|
|
5218
|
-
}, L = (
|
|
5219
|
-
j == null || j(
|
|
5220
|
-
}, T = (
|
|
5221
|
-
f == null || f(
|
|
5223
|
+
}, L = (p) => {
|
|
5224
|
+
j == null || j(p), A(!0);
|
|
5225
|
+
}, T = (p) => {
|
|
5226
|
+
f == null || f(p), A(!1), z(!!p.target.value);
|
|
5222
5227
|
};
|
|
5223
5228
|
O(() => {
|
|
5224
5229
|
z(!!s);
|
|
@@ -5265,7 +5270,7 @@ const Xr = ({ setHours: n, setMinutes: t, switchMode: r, minutes: s, hours: i, o
|
|
|
5265
5270
|
"aria-label": "Открыть пикер времени",
|
|
5266
5271
|
role: "button",
|
|
5267
5272
|
tabIndex: a ? -1 : 0,
|
|
5268
|
-
onKeyDown: (
|
|
5273
|
+
onKeyDown: (p) => p.key === "Enter" && S(),
|
|
5269
5274
|
children: /* @__PURE__ */ e.jsx(en, {})
|
|
5270
5275
|
}
|
|
5271
5276
|
),
|
|
@@ -5287,14 +5292,14 @@ const Xr = ({ setHours: n, setMinutes: t, switchMode: r, minutes: s, hours: i, o
|
|
|
5287
5292
|
"aria-describedby": E && d ? `${r}-error` : u ? `${r}-helper` : void 0
|
|
5288
5293
|
}
|
|
5289
5294
|
),
|
|
5290
|
-
|
|
5295
|
+
C && /* @__PURE__ */ e.jsx(
|
|
5291
5296
|
"label",
|
|
5292
5297
|
{
|
|
5293
5298
|
htmlFor: D,
|
|
5294
5299
|
className: `input-field__input-container__label
|
|
5295
5300
|
${w ? "input-field__input-container__label_filled" : ""}
|
|
5296
5301
|
`,
|
|
5297
|
-
children: /* @__PURE__ */ e.jsx("span", { className: "input-field__input-container__label__span", children:
|
|
5302
|
+
children: /* @__PURE__ */ e.jsx("span", { className: "input-field__input-container__label__span", children: C })
|
|
5298
5303
|
}
|
|
5299
5304
|
),
|
|
5300
5305
|
/* @__PURE__ */ e.jsx("span", { className: "input-field__input-container__text-field-line" })
|
|
@@ -5303,7 +5308,7 @@ const Xr = ({ setHours: n, setMinutes: t, switchMode: r, minutes: s, hours: i, o
|
|
|
5303
5308
|
}
|
|
5304
5309
|
),
|
|
5305
5310
|
G,
|
|
5306
|
-
M && /* @__PURE__ */ e.jsx(
|
|
5311
|
+
M && /* @__PURE__ */ e.jsx(_e, { container: c, children: /* @__PURE__ */ e.jsx(
|
|
5307
5312
|
Kr,
|
|
5308
5313
|
{
|
|
5309
5314
|
onHide: () => F(!1),
|
|
@@ -5324,11 +5329,11 @@ const Ke = 0, qe = 100, Xs = ({ showValue: n = !0, ...t }) => {
|
|
|
5324
5329
|
}, [t.value]);
|
|
5325
5330
|
const a = (h) => {
|
|
5326
5331
|
s(Number(h.target.value)), t.onChange && t.onChange(h);
|
|
5327
|
-
}, d = (h, x,
|
|
5332
|
+
}, d = (h, x, C) => {
|
|
5328
5333
|
if (o.current && c.current) {
|
|
5329
5334
|
let f = Ye(c.current);
|
|
5330
5335
|
if (f)
|
|
5331
|
-
return Qr(h, x,
|
|
5336
|
+
return Qr(h, x, C, 0, C - x) * (f.width - 20) / (C - x);
|
|
5332
5337
|
}
|
|
5333
5338
|
return 0;
|
|
5334
5339
|
}, u = k((h) => {
|
|
@@ -5352,7 +5357,7 @@ const Ke = 0, qe = 100, Xs = ({ showValue: n = !0, ...t }) => {
|
|
|
5352
5357
|
t ? /* @__PURE__ */ e.jsx("p", { children: t }) : null,
|
|
5353
5358
|
o ? /* @__PURE__ */ e.jsx(ye, { styleType: o.styleType ?? "filled", style: o.style, className: o.className, onClick: o.onClick, children: o.text }) : null
|
|
5354
5359
|
] }), es = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, initComponent: l, onlyStringValue: o }) => {
|
|
5355
|
-
const [c, a] = g(""), [d, u] = g(""), [m, h] = g(!1), [x,
|
|
5360
|
+
const [c, a] = g(""), [d, u] = g(""), [m, h] = g(!1), [x, C] = g(!0), f = k((y, v) => {
|
|
5356
5361
|
s({ ...r, [v]: y });
|
|
5357
5362
|
}, [s, r]), j = k(() => {
|
|
5358
5363
|
u(""), a(""), h(!1);
|
|
@@ -5369,7 +5374,7 @@ const Ke = 0, qe = 100, Xs = ({ showValue: n = !0, ...t }) => {
|
|
|
5369
5374
|
}, [r, s]);
|
|
5370
5375
|
return /* @__PURE__ */ e.jsx("div", { className: `json-card-container ${n ? "" : "changeable"}`, children: /* @__PURE__ */ e.jsxs("div", { children: [
|
|
5371
5376
|
/* @__PURE__ */ e.jsxs("div", { className: "json-line json-object-header", children: [
|
|
5372
|
-
/* @__PURE__ */ e.jsxs("span", { onClick: () =>
|
|
5377
|
+
/* @__PURE__ */ e.jsxs("span", { onClick: () => C((y) => !y), className: "json-element json-object-name json-object-header", children: [
|
|
5373
5378
|
t,
|
|
5374
5379
|
":",
|
|
5375
5380
|
"{",
|
|
@@ -5396,7 +5401,7 @@ const Ke = 0, qe = 100, Xs = ({ showValue: n = !0, ...t }) => {
|
|
|
5396
5401
|
const [c, a] = g(""), [d, u] = g(!1), [m, h] = g(!0), x = k((_, b) => {
|
|
5397
5402
|
const y = r.slice();
|
|
5398
5403
|
y[b] = _, s(y);
|
|
5399
|
-
}, [s, r]),
|
|
5404
|
+
}, [s, r]), C = k(() => {
|
|
5400
5405
|
a(""), u(!1);
|
|
5401
5406
|
}, []), f = k(() => {
|
|
5402
5407
|
let _ = c;
|
|
@@ -5404,8 +5409,8 @@ const Ke = 0, qe = 100, Xs = ({ showValue: n = !0, ...t }) => {
|
|
|
5404
5409
|
o || (_ = JSON.parse(_));
|
|
5405
5410
|
} catch {
|
|
5406
5411
|
}
|
|
5407
|
-
|
|
5408
|
-
}, [r, s, c,
|
|
5412
|
+
C(), s([...r, _]);
|
|
5413
|
+
}, [r, s, c, C]), j = k((_) => {
|
|
5409
5414
|
s(r.filter((b, y) => y !== _));
|
|
5410
5415
|
}, [r, s]);
|
|
5411
5416
|
return /* @__PURE__ */ e.jsx("div", { className: `json-card-container ${n ? "" : "changeable"}`, children: /* @__PURE__ */ e.jsxs("div", { children: [
|
|
@@ -5422,7 +5427,7 @@ const Ke = 0, qe = 100, Xs = ({ showValue: n = !0, ...t }) => {
|
|
|
5422
5427
|
d ? /* @__PURE__ */ e.jsxs("div", { className: "json-object-content", children: [
|
|
5423
5428
|
/* @__PURE__ */ e.jsx("span", { className: "json-base-data border", children: /* @__PURE__ */ e.jsx("input", { size: c.length || 10, placeholder: "value", onChange: (_) => a(_.target.value), className: "json-base-data-input", type: "text", value: c }) }),
|
|
5424
5429
|
/* @__PURE__ */ e.jsx("span", { className: "json-base-data-btn-save json-base-data-btn", onClick: f, children: "save" }),
|
|
5425
|
-
/* @__PURE__ */ e.jsx("span", { className: "json-base-data-btn-cancel json-base-data-btn", onClick:
|
|
5430
|
+
/* @__PURE__ */ e.jsx("span", { className: "json-base-data-btn-cancel json-base-data-btn", onClick: C, children: "cancel" })
|
|
5426
5431
|
] }) : null,
|
|
5427
5432
|
/* @__PURE__ */ e.jsxs("div", { className: "json-line", children: [
|
|
5428
5433
|
"]",
|
|
@@ -5444,19 +5449,19 @@ const Ke = 0, qe = 100, Xs = ({ showValue: n = !0, ...t }) => {
|
|
|
5444
5449
|
};
|
|
5445
5450
|
var et = /* @__PURE__ */ ((n) => (n.NONE = "NONE", n.ARRAY = "ARRAY", n.OBJECT = "OBJECT", n))(et || {});
|
|
5446
5451
|
const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType: l, onlyStringValue: o }) => typeof r == "boolean" || typeof r == "number" || typeof r == "string" ? /* @__PURE__ */ e.jsx(ts, { readonly: n, onDelete: i, onChange: s, data: r, name: t }) : r ? Array.isArray(r) ? /* @__PURE__ */ e.jsx(ns, { readonly: n, onDelete: i, onChange: s, data: r, name: t, initComponent: l === "ARRAY", onlyStringValue: o }) : /* @__PURE__ */ e.jsx(es, { readonly: n, onDelete: i, onChange: s, data: r, name: t, initComponent: l === "OBJECT", onlyStringValue: o }) : null, qs = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType: l = et.NONE, onlyStringValue: o }) => {
|
|
5447
|
-
const [c, a] = g(r || void 0), [d, u] = g(""), m = k((
|
|
5448
|
-
n || (a(
|
|
5452
|
+
const [c, a] = g(r || void 0), [d, u] = g(""), m = k((C) => {
|
|
5453
|
+
n || (a(C), s && s(C));
|
|
5449
5454
|
}, [s]), h = k(() => {
|
|
5450
5455
|
n || (a(void 0), i && i());
|
|
5451
5456
|
}, [i]), x = k(() => {
|
|
5452
5457
|
if (n)
|
|
5453
5458
|
return;
|
|
5454
|
-
let
|
|
5459
|
+
let C = d;
|
|
5455
5460
|
try {
|
|
5456
|
-
|
|
5461
|
+
C = JSON.parse(C);
|
|
5457
5462
|
} catch {
|
|
5458
5463
|
}
|
|
5459
|
-
a(
|
|
5464
|
+
a(C), s && s(C);
|
|
5460
5465
|
}, [s, d]);
|
|
5461
5466
|
return O(() => {
|
|
5462
5467
|
a(r);
|
|
@@ -5465,7 +5470,7 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
|
|
|
5465
5470
|
/* @__PURE__ */ e.jsx(ln, { readonly: n, onDelete: h, onChange: m, data: c, baseType: l, name: t, onlyStringValue: o })
|
|
5466
5471
|
] }) : /* @__PURE__ */ e.jsxs("div", { className: `json-object-content ${n ? "" : "changeable"}`, children: [
|
|
5467
5472
|
/* @__PURE__ */ e.jsx(cn, { transparent: !0, text: JSON.stringify(r) }),
|
|
5468
|
-
/* @__PURE__ */ e.jsx("span", { className: "json-base-data border", children: /* @__PURE__ */ e.jsx("input", { size: d.length || 10, placeholder: "value", onChange: (
|
|
5473
|
+
/* @__PURE__ */ e.jsx("span", { className: "json-base-data border", children: /* @__PURE__ */ e.jsx("input", { size: d.length || 10, placeholder: "value", onChange: (C) => u(C.target.value), className: "alex-evo-sh-ui-kit-json json-base-data-input", type: "text", value: d }) }),
|
|
5469
5474
|
/* @__PURE__ */ e.jsx("span", { className: "json-base-data-btn-save json-base-data-btn", onClick: x, children: "save" })
|
|
5470
5475
|
] });
|
|
5471
5476
|
}, Js = ({ btn: n, btnComponent: t, onSearch: r, placeholder: s, autoChenge: i, border: l = !1 }) => {
|
|
@@ -5475,14 +5480,14 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
|
|
|
5475
5480
|
o.current && (o.current.focus(), o.current.value = ""), a(""), u(!0), i && r("");
|
|
5476
5481
|
}, x = () => {
|
|
5477
5482
|
h(), o.current && (o.current.blur(), u(!1));
|
|
5478
|
-
},
|
|
5483
|
+
}, C = (j) => {
|
|
5479
5484
|
a(j.target.value), i && r(j.target.value);
|
|
5480
5485
|
}, f = (j) => {
|
|
5481
5486
|
j.code === "Enter" && r(c);
|
|
5482
5487
|
};
|
|
5483
5488
|
return /* @__PURE__ */ e.jsx("div", { className: `search-container ${l ? "border" : ""}`, children: /* @__PURE__ */ e.jsxs("div", { className: "search-field", children: [
|
|
5484
5489
|
d ? /* @__PURE__ */ e.jsx("span", { onClick: x, children: /* @__PURE__ */ e.jsx(nn, {}) }) : n ? /* @__PURE__ */ e.jsx("span", { onClick: n.onClick, children: n.icon }) : t || null,
|
|
5485
|
-
/* @__PURE__ */ e.jsx("input", { placeholder: s, type: "text", ref: o, onChange:
|
|
5490
|
+
/* @__PURE__ */ e.jsx("input", { placeholder: s, type: "text", ref: o, onChange: C, onKeyDown: f, value: c, onFocus: () => u(!0) }),
|
|
5486
5491
|
d ? /* @__PURE__ */ e.jsx("span", { onClick: h, children: /* @__PURE__ */ e.jsx(ue, {}) }) : /* @__PURE__ */ e.jsx("span", { onClick: m, children: /* @__PURE__ */ e.jsx(tn, {}) })
|
|
5487
5492
|
] }) });
|
|
5488
5493
|
}, rs = ({
|
|
@@ -5535,7 +5540,7 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
|
|
|
5535
5540
|
onChangeFilter: l,
|
|
5536
5541
|
border: o = !1
|
|
5537
5542
|
}) => {
|
|
5538
|
-
const c = Z(null), [a, d] = g(""), [u, m] = g(!1), [h, x] = g(null),
|
|
5543
|
+
const c = Z(null), [a, d] = g(""), [u, m] = g(!1), [h, x] = g(null), C = () => {
|
|
5539
5544
|
c.current && (c.current.focus(), m(!0));
|
|
5540
5545
|
}, f = () => {
|
|
5541
5546
|
c.current && (c.current.focus(), c.current.value = ""), d(""), m(!0), r && n("");
|
|
@@ -5557,9 +5562,9 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
|
|
|
5557
5562
|
/* @__PURE__ */ e.jsx("div", { className: `search-container ${o ? "border" : ""}`, children: /* @__PURE__ */ e.jsxs("div", { className: "search-field", children: [
|
|
5558
5563
|
u ? /* @__PURE__ */ e.jsx("span", { onClick: j, children: /* @__PURE__ */ e.jsx(nn, {}) }) : /* @__PURE__ */ e.jsx("span", { onClick: y, children: /* @__PURE__ */ e.jsx(On, {}) }),
|
|
5559
5564
|
/* @__PURE__ */ e.jsx("input", { placeholder: t, type: "text", ref: c, onChange: _, onKeyDown: b, value: a, onFocus: () => m(!0) }),
|
|
5560
|
-
u ? /* @__PURE__ */ e.jsx("span", { onClick: f, children: /* @__PURE__ */ e.jsx(ue, {}) }) : /* @__PURE__ */ e.jsx("span", { onClick:
|
|
5565
|
+
u ? /* @__PURE__ */ e.jsx("span", { onClick: f, children: /* @__PURE__ */ e.jsx(ue, {}) }) : /* @__PURE__ */ e.jsx("span", { onClick: C, children: /* @__PURE__ */ e.jsx(tn, {}) })
|
|
5561
5566
|
] }) }),
|
|
5562
|
-
/* @__PURE__ */ e.jsx(
|
|
5567
|
+
/* @__PURE__ */ e.jsx(_e, { container: document.body, children: /* @__PURE__ */ e.jsx(rs, { point: h ?? void 0, onClose: () => x(null), isOpen: !!h, filters: s, selectedFilters: i, onChange: l }) })
|
|
5563
5568
|
] });
|
|
5564
5569
|
}, ss = ({ visible: n, text: t, option: r }) => {
|
|
5565
5570
|
const [s, i] = g(n), [l, o] = g(!1);
|
|
@@ -5586,7 +5591,7 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
|
|
|
5586
5591
|
]
|
|
5587
5592
|
}
|
|
5588
5593
|
) : null;
|
|
5589
|
-
},
|
|
5594
|
+
}, ei = ({
|
|
5590
5595
|
type: n,
|
|
5591
5596
|
screensize: t = ee.STANDART,
|
|
5592
5597
|
weight: r = "standart",
|
|
@@ -5598,12 +5603,12 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
|
|
|
5598
5603
|
onContextMenu: a,
|
|
5599
5604
|
...d
|
|
5600
5605
|
}) => {
|
|
5601
|
-
const u = Z(null), m = Z(null), [h, x] = g(!1),
|
|
5606
|
+
const u = Z(null), m = Z(null), [h, x] = g(!1), C = n === "heading" || n === "title" || n === "title-2", f = C ? "h3" : "span", j = {
|
|
5602
5607
|
fontSize: bn(n, t),
|
|
5603
5608
|
fontWeight: kn(n, r),
|
|
5604
5609
|
lineHeight: yn(n, s, t),
|
|
5605
5610
|
...o
|
|
5606
|
-
}, _ =
|
|
5611
|
+
}, _ = C ? "typography-heading" : "typography-text", b = k(() => {
|
|
5607
5612
|
if (!u.current || !m.current) return;
|
|
5608
5613
|
const y = u.current.clientWidth, v = m.current.scrollWidth;
|
|
5609
5614
|
x(y < v);
|
|
@@ -5669,7 +5674,7 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
|
|
|
5669
5674
|
onBlur: m,
|
|
5670
5675
|
onFocus: h,
|
|
5671
5676
|
container: x = document.body,
|
|
5672
|
-
size:
|
|
5677
|
+
size: C = "medium",
|
|
5673
5678
|
transparent: f,
|
|
5674
5679
|
helperText: j,
|
|
5675
5680
|
errorText: _,
|
|
@@ -5695,7 +5700,7 @@ const ln = ({ readonly: n, name: t, data: r, onChange: s, onDelete: i, baseType:
|
|
|
5695
5700
|
/* @__PURE__ */ e.jsx("div", { ref: y, style: t, className: `
|
|
5696
5701
|
input-field
|
|
5697
5702
|
input-field__text-field
|
|
5698
|
-
${I[
|
|
5703
|
+
${I[C]}
|
|
5699
5704
|
${a ? "input-field_border" : ""}
|
|
5700
5705
|
${A ? "input-field_active" : ""}
|
|
5701
5706
|
${f ? "input-field_transparent" : ""}
|
|
@@ -5743,7 +5748,7 @@ const is = ({ icons: n, value: t, onChange: r, disabled: s, placeholder: i, cont
|
|
|
5743
5748
|
placeholder: i
|
|
5744
5749
|
}
|
|
5745
5750
|
),
|
|
5746
|
-
o && /* @__PURE__ */ e.jsx(
|
|
5751
|
+
o && /* @__PURE__ */ e.jsx(_e, { container: l, children: /* @__PURE__ */ e.jsx(
|
|
5747
5752
|
hr,
|
|
5748
5753
|
{
|
|
5749
5754
|
header: "Icons",
|
|
@@ -5807,8 +5812,8 @@ const is = ({ icons: n, value: t, onChange: r, disabled: s, placeholder: i, cont
|
|
|
5807
5812
|
id: n,
|
|
5808
5813
|
name: n.charAt(0).toUpperCase() + n.slice(1),
|
|
5809
5814
|
component: /* @__PURE__ */ e.jsx(t, {})
|
|
5810
|
-
})),
|
|
5811
|
-
function
|
|
5815
|
+
})), ni = (n) => /* @__PURE__ */ e.jsx(is, { icons: ls, ...n });
|
|
5816
|
+
function ti(n) {
|
|
5812
5817
|
if (n)
|
|
5813
5818
|
return tt[n] ?? void 0;
|
|
5814
5819
|
}
|
|
@@ -5817,7 +5822,7 @@ const as = {
|
|
|
5817
5822
|
},
|
|
5818
5823
|
hideSnackbar: () => {
|
|
5819
5824
|
}
|
|
5820
|
-
}, os = Pe(as),
|
|
5825
|
+
}, os = Pe(as), ri = ({ children: n }) => {
|
|
5821
5826
|
var o;
|
|
5822
5827
|
const [t, r] = g({ visible: !1, text: "" }), s = Z(null), i = k((c, a) => {
|
|
5823
5828
|
r({ visible: !0, text: c, option: a }), s.current && clearTimeout(s.current), a != null && a.closeButton || (s.current = setTimeout(() => l(), (a == null ? void 0 : a.delay) ?? 3e3));
|
|
@@ -5840,7 +5845,7 @@ const as = {
|
|
|
5840
5845
|
] });
|
|
5841
5846
|
}, rt = Pe({});
|
|
5842
5847
|
function cs() {
|
|
5843
|
-
return
|
|
5848
|
+
return Ce(rt);
|
|
5844
5849
|
}
|
|
5845
5850
|
function ds(n) {
|
|
5846
5851
|
return typeof n == "string";
|
|
@@ -5912,7 +5917,7 @@ const fe = (n) => {
|
|
|
5912
5917
|
onChange: a
|
|
5913
5918
|
}
|
|
5914
5919
|
);
|
|
5915
|
-
},
|
|
5920
|
+
}, _s = (n) => {
|
|
5916
5921
|
const { error: t, value: r, change: s, clearHandler: i } = fe(n.name);
|
|
5917
5922
|
return /* @__PURE__ */ e.jsx(
|
|
5918
5923
|
Ve,
|
|
@@ -5925,7 +5930,7 @@ const fe = (n) => {
|
|
|
5925
5930
|
onClear: i
|
|
5926
5931
|
}
|
|
5927
5932
|
);
|
|
5928
|
-
},
|
|
5933
|
+
}, Cs = (n) => {
|
|
5929
5934
|
const { error: t, value: r, change: s, clearHandler: i } = fe(n.name);
|
|
5930
5935
|
return /* @__PURE__ */ e.jsx(Qn, { ...n, onChange: s, onClear: n.clear ? i : void 0, value: String(r), error: !!t, errorText: t });
|
|
5931
5936
|
}, vs = (n) => {
|
|
@@ -5956,30 +5961,30 @@ const fe = (n) => {
|
|
|
5956
5961
|
function({ children: t, value: r, name: s, errors: i, onFinish: l, onChangeValue: o, ...c }, a) {
|
|
5957
5962
|
const [d, u] = g(r), m = k((x) => {
|
|
5958
5963
|
x.preventDefault(), l == null || l(d);
|
|
5959
|
-
}, [l, d]), h = k((x,
|
|
5964
|
+
}, [l, d]), h = k((x, C) => {
|
|
5960
5965
|
u((f) => ({
|
|
5961
5966
|
...f,
|
|
5962
|
-
[x]:
|
|
5963
|
-
})), o == null || o(x,
|
|
5967
|
+
[x]: C
|
|
5968
|
+
})), o == null || o(x, C);
|
|
5964
5969
|
}, [o]);
|
|
5965
5970
|
return ht(a, () => ({
|
|
5966
5971
|
submit: () => l == null ? void 0 : l(d),
|
|
5967
|
-
setFieldValue: (x,
|
|
5968
|
-
u((f) => ({ ...f, [x]:
|
|
5972
|
+
setFieldValue: (x, C) => {
|
|
5973
|
+
u((f) => ({ ...f, [x]: C }));
|
|
5969
5974
|
},
|
|
5970
5975
|
setValues: (x) => u(x),
|
|
5971
5976
|
getValues: () => d,
|
|
5972
5977
|
reset: () => u(r)
|
|
5973
5978
|
}), [l, d, r]), /* @__PURE__ */ e.jsx(rt.Provider, { value: { value: d, changeField: h, errors: i }, children: /* @__PURE__ */ e.jsx("form", { name: s, onSubmit: m, noValidate: !0, ...c, children: t }) });
|
|
5974
5979
|
}
|
|
5975
|
-
),
|
|
5976
|
-
TextInput:
|
|
5980
|
+
), si = Object.assign(bs, {
|
|
5981
|
+
TextInput: _s,
|
|
5977
5982
|
NumberInput: xs,
|
|
5978
5983
|
SelectInput: fs,
|
|
5979
5984
|
SwitchField: js,
|
|
5980
5985
|
SwitchButtonField: ps,
|
|
5981
5986
|
MoreTextField: ms,
|
|
5982
|
-
TextArea:
|
|
5987
|
+
TextArea: Cs,
|
|
5983
5988
|
DateField: vs,
|
|
5984
5989
|
TimeField: gs
|
|
5985
5990
|
});
|
|
@@ -6028,7 +6033,7 @@ export {
|
|
|
6028
6033
|
pt as FilledButton,
|
|
6029
6034
|
jt as FilledTotalButton,
|
|
6030
6035
|
On as FilterIcon,
|
|
6031
|
-
|
|
6036
|
+
si as Form,
|
|
6032
6037
|
Ts as FullScreenTemplateDialog,
|
|
6033
6038
|
yt as GearIcon,
|
|
6034
6039
|
zs as GridLayout,
|
|
@@ -6042,20 +6047,20 @@ export {
|
|
|
6042
6047
|
de as IconButton,
|
|
6043
6048
|
Fs as IconButtonMenu,
|
|
6044
6049
|
is as IconSelectField,
|
|
6045
|
-
|
|
6050
|
+
ni as IconsSelect,
|
|
6046
6051
|
qs as JsonContainer,
|
|
6047
6052
|
Rn as Keyboard,
|
|
6048
6053
|
Tt as LampIcon,
|
|
6049
6054
|
wt as LinkIcon,
|
|
6050
|
-
|
|
6051
|
-
|
|
6055
|
+
_r as ListContainer,
|
|
6056
|
+
Cr as ListItem,
|
|
6052
6057
|
Ft as LogoutIcon,
|
|
6053
6058
|
Pn as Menu,
|
|
6054
6059
|
Ln as MenuIcon,
|
|
6055
6060
|
Fn as Minus,
|
|
6056
6061
|
Lt as MinusUserIcon,
|
|
6057
6062
|
Ze as ModalDialogTemplate,
|
|
6058
|
-
|
|
6063
|
+
_e as ModalPortal,
|
|
6059
6064
|
We as ModalTemplate,
|
|
6060
6065
|
He as MoreHorizontal,
|
|
6061
6066
|
Gr as MoreText,
|
|
@@ -6066,7 +6071,7 @@ export {
|
|
|
6066
6071
|
Ys as NavigationRail,
|
|
6067
6072
|
Jn as NumberField,
|
|
6068
6073
|
Rt as OkUserIcon,
|
|
6069
|
-
|
|
6074
|
+
_n as OutlineButton,
|
|
6070
6075
|
wn as Palette,
|
|
6071
6076
|
pr as Panel,
|
|
6072
6077
|
$n as Pen,
|
|
@@ -6078,7 +6083,7 @@ export {
|
|
|
6078
6083
|
Gn as RadioButton,
|
|
6079
6084
|
Rs as Range,
|
|
6080
6085
|
Vt as Room,
|
|
6081
|
-
|
|
6086
|
+
ei as RunningLine,
|
|
6082
6087
|
ee as ScreenSize,
|
|
6083
6088
|
Ps as ScrollContainer,
|
|
6084
6089
|
Js as Search,
|
|
@@ -6096,7 +6101,7 @@ export {
|
|
|
6096
6101
|
ur as SmallWindowMenu,
|
|
6097
6102
|
ss as Snackbar,
|
|
6098
6103
|
os as SneckbarContext,
|
|
6099
|
-
|
|
6104
|
+
ri as SneckbarProvider,
|
|
6100
6105
|
Yn as Switch,
|
|
6101
6106
|
Ot as SwitchIcon,
|
|
6102
6107
|
Ws as Table,
|
|
@@ -6119,15 +6124,15 @@ export {
|
|
|
6119
6124
|
$t as XUserIcon,
|
|
6120
6125
|
Te as getContainerColor,
|
|
6121
6126
|
Ye as getContainerData,
|
|
6122
|
-
|
|
6127
|
+
ti as getIcons,
|
|
6123
6128
|
Hn as getModalWindowCord,
|
|
6124
6129
|
re as getTextColor,
|
|
6125
6130
|
qt as hexToRgb,
|
|
6126
6131
|
Qr as map,
|
|
6127
6132
|
er as useColors,
|
|
6128
6133
|
Kt as usePopup,
|
|
6129
|
-
|
|
6130
|
-
|
|
6134
|
+
_t as useScreenSize,
|
|
6135
|
+
Cn as useScrollLock,
|
|
6131
6136
|
rr as useThemes,
|
|
6132
6137
|
Ir as СalendarPickers
|
|
6133
6138
|
};
|