react-luminus-components 1.3.186 → 1.3.188
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.cjs.js +2 -2
- package/dist/main.es.js +421 -425
- package/dist/models/texts/ShortcutLinkTexts.d.ts +1 -0
- package/package.json +1 -1
package/dist/main.es.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { j as n, c as _, t as je, a as kt, s as An, g as Bn, m as Ks, d as Bt, b as qs, e as Qs, f as
|
|
1
|
+
import { j as n, c as _, t as je, a as kt, s as An, g as Bn, m as Ks, d as Bt, b as qs, e as Qs, f as We, h as Zs, i as Js, k as Xs, l as ea, n as ta, o as na, p as ra, T as Ir, q as $r, r as Vn, E as sa, u as Dr, v as kn, w as Lr, x as aa, y as he, z as Kt, A as oa, B as Tr, C as qt, D as ia, F as xn, G as Er, H as la, S as vn, N as Fr, I as Sn, J as Cn, K as ca, L as da, M as ua, O as fa, P as ma, Q as Or, R as ha, U as ga, V as pa, W as xa, X as va, Y as ja, Z as ya, _ as jn, $ as oe, a0 as zt, a1 as wa, a2 as _a, a3 as ba, a4 as Rr, a5 as St, a6 as te, a7 as In, a8 as pe, a9 as $n, aa as Ve, ab as it, ac as Na, ad as Pe, ae as K, af as Mr, ag as Ar, ah as Br, ai as Ae, aj as lt, ak as ka, al as Sa, am as Ca, an as Ia, ao as Qt, ap as Ze, aq as Lt, ar as Tt, as as Vr, at as Se, au as Pr, av as $a, aw as Da, ax as La, ay as ht, az as gt, aA as Et, aB as Ce, aC as zr, aD as Ct, aE as Je, aF as Hr, aG as Fe, aH as Ta, aI as Wr, aJ as Ea, aK as Ur, aL as Fa, aM as Oa, aN as Ra, aO as Ma, aP as Aa, aQ as Ba, aR as Ht, aS as Gr, aT as Va, aU as Pa, aV as za, aW as Ha, aX as Wa, aY as Ua, aZ as Ke, a_ as Ga, a$ as Ya, b0 as Ka, b1 as qa, b2 as Qa, b3 as sn, b4 as Pn, b5 as Za, b6 as Ja, b7 as Yr } from "./nivo-bar.es-i2iP31eh.js";
|
|
2
2
|
import { bc as Zu, bd as Ju, ba as Xu, b9 as ef, b8 as tf, be as nf, bf as rf, bb as sf } from "./nivo-bar.es-i2iP31eh.js";
|
|
3
3
|
import * as ie from "react";
|
|
4
|
-
import ke, { useCallback as
|
|
5
|
-
import { c as Ue, L as
|
|
4
|
+
import ke, { useCallback as S, useMemo as Y, useContext as U, useRef as J, useEffect as B, useState as E, useId as Xa, Component as eo, isValidElement as zn, Suspense as to, useLayoutEffect as no } from "react";
|
|
5
|
+
import { c as Ue, L as Hn } from "./Loading-t5uR0uRd.js";
|
|
6
6
|
import { InteractionType as ro } from "@azure/msal-browser";
|
|
7
7
|
import { MsalAuthenticationTemplate as so } from "@azure/msal-react";
|
|
8
|
-
import { useNavigate as Kr, Link as Oe, useSearchParams as ao, useParams as oo, generatePath as
|
|
9
|
-
import { useFormContext as Xe, Controller as
|
|
8
|
+
import { useNavigate as Kr, Link as Oe, useSearchParams as ao, useParams as oo, generatePath as Wt, useLocation as io, Navigate as Rt } from "react-router-dom";
|
|
9
|
+
import { useFormContext as Xe, Controller as Dn } from "react-hook-form";
|
|
10
10
|
import { Pivot as lo } from "react-flexmonster";
|
|
11
11
|
import { u as Zt, a as qr } from "./useWindowSize-OLYtjFv_.js";
|
|
12
12
|
import { s as qe, l as bt } from "./searchUtils-CcPSNrZS.js";
|
|
@@ -14,7 +14,7 @@ import { u as co, a as Qr, b as uo, c as Zr, d as fo } from "./useClipboard-CBAR
|
|
|
14
14
|
import Ut from "react-dom";
|
|
15
15
|
import { u as It } from "./useGetApiData-AaXTZWej.js";
|
|
16
16
|
const au = ({ fileLoader: e, fileName: t, children: r }) => {
|
|
17
|
-
const s =
|
|
17
|
+
const s = S(async () => {
|
|
18
18
|
var c, l;
|
|
19
19
|
const a = await e();
|
|
20
20
|
if (!a)
|
|
@@ -49,7 +49,7 @@ function go(e, t) {
|
|
|
49
49
|
const r = je(e), s = je(t), a = r.getTime() - s.getTime();
|
|
50
50
|
return a < 0 ? -1 : a > 0 ? 1 : a;
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function Wn(e, t) {
|
|
53
53
|
const r = je(e), s = je(t), a = r.getFullYear() - s.getFullYear(), o = r.getMonth() - s.getMonth();
|
|
54
54
|
return a * 12 + o;
|
|
55
55
|
}
|
|
@@ -57,7 +57,7 @@ function Un(e) {
|
|
|
57
57
|
const t = je(e);
|
|
58
58
|
return Math.trunc(t.getMonth() / 3) + 1;
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function an(e, t) {
|
|
61
61
|
const r = je(e), s = je(t), a = r.getFullYear() - s.getFullYear(), o = Un(r) - Un(s);
|
|
62
62
|
return a * 4 + o;
|
|
63
63
|
}
|
|
@@ -65,7 +65,7 @@ function Gn(e, t, r) {
|
|
|
65
65
|
const s = An(e, r), a = An(t, r), o = +s - Bn(s), i = +a - Bn(a);
|
|
66
66
|
return Math.round((o - i) / Ks);
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function on(e, t) {
|
|
69
69
|
const r = je(e), s = je(t);
|
|
70
70
|
return r.getFullYear() - s.getFullYear();
|
|
71
71
|
}
|
|
@@ -79,28 +79,28 @@ function Yn(e, t) {
|
|
|
79
79
|
const r = e.getFullYear() - t.getFullYear() || e.getMonth() - t.getMonth() || e.getDate() - t.getDate() || e.getHours() - t.getHours() || e.getMinutes() - t.getMinutes() || e.getSeconds() - t.getSeconds() || e.getMilliseconds() - t.getMilliseconds();
|
|
80
80
|
return r < 0 ? -1 : r > 0 ? 1 : r;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function Ln(e) {
|
|
83
83
|
return (t) => {
|
|
84
84
|
const s = (e ? Math[e] : Math.trunc)(t);
|
|
85
85
|
return s === 0 ? 0 : s;
|
|
86
86
|
};
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function Tn(e, t) {
|
|
89
89
|
return +je(e) - +je(t);
|
|
90
90
|
}
|
|
91
91
|
function Kn(e, t, r) {
|
|
92
|
-
const s =
|
|
93
|
-
return
|
|
92
|
+
const s = Tn(e, t) / qs;
|
|
93
|
+
return Ln(r == null ? void 0 : r.roundingMethod)(s);
|
|
94
94
|
}
|
|
95
95
|
function qn(e, t, r) {
|
|
96
|
-
const s =
|
|
97
|
-
return
|
|
96
|
+
const s = Tn(e, t) / Qs;
|
|
97
|
+
return Ln(r == null ? void 0 : r.roundingMethod)(s);
|
|
98
98
|
}
|
|
99
|
-
function
|
|
100
|
-
const s =
|
|
101
|
-
return
|
|
99
|
+
function ln(e, t, r) {
|
|
100
|
+
const s = Tn(e, t) / 1e3;
|
|
101
|
+
return Ln(r == null ? void 0 : r.roundingMethod)(s);
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function yn(e, t) {
|
|
104
104
|
const r = je(e);
|
|
105
105
|
if (isNaN(r.getTime()))
|
|
106
106
|
throw new RangeError("Invalid time value");
|
|
@@ -108,17 +108,17 @@ function jn(e, t) {
|
|
|
108
108
|
let o = "", i = "";
|
|
109
109
|
const c = s === "extended" ? "-" : "", l = s === "extended" ? ":" : "";
|
|
110
110
|
if (a !== "time") {
|
|
111
|
-
const d =
|
|
112
|
-
o = `${
|
|
111
|
+
const d = We(r.getDate(), 2), u = We(r.getMonth() + 1, 2);
|
|
112
|
+
o = `${We(r.getFullYear(), 4)}${c}${u}${c}${d}`;
|
|
113
113
|
}
|
|
114
114
|
if (a !== "date") {
|
|
115
115
|
const d = r.getTimezoneOffset();
|
|
116
116
|
if (d !== 0) {
|
|
117
|
-
const x = Math.abs(d), g =
|
|
117
|
+
const x = Math.abs(d), g = We(Math.trunc(x / 60), 2), h = We(x % 60, 2);
|
|
118
118
|
i = `${d < 0 ? "+" : "-"}${g}:${h}`;
|
|
119
119
|
} else
|
|
120
120
|
i = "Z";
|
|
121
|
-
const u =
|
|
121
|
+
const u = We(r.getHours(), 2), m = We(r.getMinutes(), 2), v = We(r.getSeconds(), 2), f = o === "" ? "" : "T", p = [u, m, v].join(l);
|
|
122
122
|
o = `${o}${f}${p}${i}`;
|
|
123
123
|
}
|
|
124
124
|
return o;
|
|
@@ -131,10 +131,10 @@ function vo(e, t, r) {
|
|
|
131
131
|
let s = 0, a;
|
|
132
132
|
const o = je(e), i = je(t);
|
|
133
133
|
if (r != null && r.unit)
|
|
134
|
-
a = r == null ? void 0 : r.unit, a === "second" ? s =
|
|
134
|
+
a = r == null ? void 0 : r.unit, a === "second" ? s = ln(o, i) : a === "minute" ? s = qn(o, i) : a === "hour" ? s = Kn(o, i) : a === "day" ? s = Bt(o, i) : a === "week" ? s = Gn(o, i) : a === "month" ? s = Wn(o, i) : a === "quarter" ? s = an(o, i) : a === "year" && (s = on(o, i));
|
|
135
135
|
else {
|
|
136
|
-
const l =
|
|
137
|
-
Math.abs(l) < Zs ? (s =
|
|
136
|
+
const l = ln(o, i);
|
|
137
|
+
Math.abs(l) < Zs ? (s = ln(o, i), a = "second") : Math.abs(l) < Js ? (s = qn(o, i), a = "minute") : Math.abs(l) < Xs && Math.abs(Bt(o, i)) < 1 ? (s = Kn(o, i), a = "hour") : Math.abs(l) < ea && (s = Bt(o, i)) && Math.abs(s) < 7 ? a = "day" : Math.abs(l) < ta ? (s = Gn(o, i), a = "week") : Math.abs(l) < na ? (s = Wn(o, i), a = "month") : Math.abs(l) < ra && an(o, i) < 4 ? (s = an(o, i), a = "quarter") : (s = on(o, i), a = "year");
|
|
138
138
|
}
|
|
139
139
|
return new Intl.RelativeTimeFormat(r == null ? void 0 : r.locale, {
|
|
140
140
|
localeMatcher: r == null ? void 0 : r.localeMatcher,
|
|
@@ -148,7 +148,7 @@ function jo(e, t) {
|
|
|
148
148
|
const i = xo(o);
|
|
149
149
|
return r.setMonth(t, Math.min(a, i)), r;
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function wn(e, t) {
|
|
152
152
|
const r = je(e);
|
|
153
153
|
return isNaN(+r) ? kt(e, NaN) : (r.setFullYear(t), r);
|
|
154
154
|
}
|
|
@@ -174,7 +174,7 @@ function wo(e, t) {
|
|
|
174
174
|
const _o = {
|
|
175
175
|
[sa]: "collapse",
|
|
176
176
|
[Dr]: "collapsing",
|
|
177
|
-
[
|
|
177
|
+
[kn]: "collapsing",
|
|
178
178
|
[Lr]: "collapse show"
|
|
179
179
|
}, Xr = /* @__PURE__ */ ke.forwardRef(({
|
|
180
180
|
onEnter: e,
|
|
@@ -193,17 +193,17 @@ const _o = {
|
|
|
193
193
|
getDimensionValue: f = wo,
|
|
194
194
|
...p
|
|
195
195
|
}, x) => {
|
|
196
|
-
const g = typeof c == "function" ? c() : c, h = Y(() => _t((
|
|
197
|
-
|
|
198
|
-
}, e), [g, e]), y = Y(() => _t((
|
|
196
|
+
const g = typeof c == "function" ? c() : c, h = Y(() => _t((C) => {
|
|
197
|
+
C.style[g] = "0";
|
|
198
|
+
}, e), [g, e]), y = Y(() => _t((C) => {
|
|
199
199
|
const T = `scroll${g[0].toUpperCase()}${g.slice(1)}`;
|
|
200
|
-
|
|
201
|
-
}, t), [g, t]), w = Y(() => _t((
|
|
202
|
-
|
|
203
|
-
}, r), [g, r]), b = Y(() => _t((
|
|
204
|
-
|
|
205
|
-
}, s), [s, f, g]), j = Y(() => _t((
|
|
206
|
-
|
|
200
|
+
C.style[g] = `${C[T]}px`;
|
|
201
|
+
}, t), [g, t]), w = Y(() => _t((C) => {
|
|
202
|
+
C.style[g] = null;
|
|
203
|
+
}, r), [g, r]), b = Y(() => _t((C) => {
|
|
204
|
+
C.style[g] = `${f(g, C)}px`, aa(C);
|
|
205
|
+
}, s), [s, f, g]), j = Y(() => _t((C) => {
|
|
206
|
+
C.style[g] = null;
|
|
207
207
|
}, a), [g, a]);
|
|
208
208
|
return /* @__PURE__ */ n.jsx(Ir, {
|
|
209
209
|
ref: x,
|
|
@@ -221,9 +221,9 @@ const _o = {
|
|
|
221
221
|
mountOnEnter: u,
|
|
222
222
|
unmountOnExit: m,
|
|
223
223
|
appear: v,
|
|
224
|
-
children: (
|
|
224
|
+
children: (C, T) => /* @__PURE__ */ ke.cloneElement(i, {
|
|
225
225
|
...T,
|
|
226
|
-
className: _(o, i.props.className, _o[
|
|
226
|
+
className: _(o, i.props.className, _o[C], g === "width" && "collapse-horizontal")
|
|
227
227
|
})
|
|
228
228
|
});
|
|
229
229
|
}), es = Kt("h4");
|
|
@@ -261,13 +261,13 @@ const rs = /* @__PURE__ */ ie.forwardRef((e, t) => {
|
|
|
261
261
|
variant: l = "primary",
|
|
262
262
|
onClose: d,
|
|
263
263
|
dismissible: u,
|
|
264
|
-
transition: m =
|
|
264
|
+
transition: m = xn,
|
|
265
265
|
...v
|
|
266
266
|
} = Tr(e, {
|
|
267
267
|
show: "onClose"
|
|
268
268
|
}), f = he(r, "alert"), p = qt((h) => {
|
|
269
269
|
d && d(!1, h);
|
|
270
|
-
}), x = m === !0 ?
|
|
270
|
+
}), x = m === !0 ? xn : m, g = /* @__PURE__ */ n.jsxs("div", {
|
|
271
271
|
role: "alert",
|
|
272
272
|
...x ? void 0 : v,
|
|
273
273
|
ref: t,
|
|
@@ -290,7 +290,7 @@ rs.displayName = "Alert";
|
|
|
290
290
|
const bo = Object.assign(rs, {
|
|
291
291
|
Link: ns,
|
|
292
292
|
Heading: ts
|
|
293
|
-
}),
|
|
293
|
+
}), En = /* @__PURE__ */ ie.forwardRef(({
|
|
294
294
|
className: e,
|
|
295
295
|
bsPrefix: t,
|
|
296
296
|
as: r = "div",
|
|
@@ -300,7 +300,7 @@ const bo = Object.assign(rs, {
|
|
|
300
300
|
className: _(e, t),
|
|
301
301
|
...s
|
|
302
302
|
})));
|
|
303
|
-
|
|
303
|
+
En.displayName = "CardBody";
|
|
304
304
|
const ss = /* @__PURE__ */ ie.forwardRef(({
|
|
305
305
|
className: e,
|
|
306
306
|
bsPrefix: t,
|
|
@@ -424,7 +424,7 @@ const ms = /* @__PURE__ */ ie.forwardRef(({
|
|
|
424
424
|
ref: d,
|
|
425
425
|
...l,
|
|
426
426
|
className: _(t, u, r && `bg-${r}`, s && `text-${s}`, a && `border-${a}`),
|
|
427
|
-
children: o ? /* @__PURE__ */ n.jsx(
|
|
427
|
+
children: o ? /* @__PURE__ */ n.jsx(En, {
|
|
428
428
|
children: i
|
|
429
429
|
}) : i
|
|
430
430
|
});
|
|
@@ -434,7 +434,7 @@ const Qn = Object.assign(ms, {
|
|
|
434
434
|
Img: is,
|
|
435
435
|
Title: fs,
|
|
436
436
|
Subtitle: ds,
|
|
437
|
-
Body:
|
|
437
|
+
Body: En,
|
|
438
438
|
Link: cs,
|
|
439
439
|
Text: us,
|
|
440
440
|
Header: os,
|
|
@@ -504,7 +504,7 @@ function ps({
|
|
|
504
504
|
role: a,
|
|
505
505
|
disabled: o
|
|
506
506
|
}) {
|
|
507
|
-
const i = U(
|
|
507
|
+
const i = U(vn), c = U(Fr), l = U(gs);
|
|
508
508
|
let d = r;
|
|
509
509
|
const u = {
|
|
510
510
|
role: a
|
|
@@ -512,7 +512,7 @@ function ps({
|
|
|
512
512
|
if (c) {
|
|
513
513
|
!a && c.role === "tablist" && (u.role = "tab");
|
|
514
514
|
const m = c.getControllerId(e ?? null), v = c.getControlledId(e ?? null);
|
|
515
|
-
u[
|
|
515
|
+
u[Sn("event-key")] = e, u.id = m || s, d = r == null && e != null ? c.activeKey === e : r, (d || !(l != null && l.unmountOnExit) && !(l != null && l.mountOnEnter)) && (u["aria-controls"] = v);
|
|
516
516
|
}
|
|
517
517
|
return u.role === "tab" && (u["aria-selected"] = d, d || (u.tabIndex = -1), o && (u.tabIndex = -1, u["aria-disabled"] = !0)), u.onClick = qt((m) => {
|
|
518
518
|
o || (t == null || t(m), e != null && i && !m.isPropagationStopped() && i(e, m));
|
|
@@ -527,10 +527,10 @@ const xs = /* @__PURE__ */ ie.forwardRef((e, t) => {
|
|
|
527
527
|
eventKey: a
|
|
528
528
|
} = e, o = $o(e, Io);
|
|
529
529
|
const [i, c] = ps(Object.assign({
|
|
530
|
-
key:
|
|
530
|
+
key: Cn(a, o.href),
|
|
531
531
|
active: s
|
|
532
532
|
}, o));
|
|
533
|
-
return i[
|
|
533
|
+
return i[Sn("active")] = c.isActive, /* @__PURE__ */ n.jsx(r, Object.assign({}, o, i, {
|
|
534
534
|
ref: t
|
|
535
535
|
}));
|
|
536
536
|
});
|
|
@@ -546,7 +546,7 @@ function Lo(e, t) {
|
|
|
546
546
|
return r;
|
|
547
547
|
}
|
|
548
548
|
const Zn = () => {
|
|
549
|
-
}, Jn =
|
|
549
|
+
}, Jn = Sn("event-key"), vs = /* @__PURE__ */ ie.forwardRef((e, t) => {
|
|
550
550
|
let {
|
|
551
551
|
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
552
552
|
as: r = "div",
|
|
@@ -555,15 +555,15 @@ const Zn = () => {
|
|
|
555
555
|
role: o,
|
|
556
556
|
onKeyDown: i
|
|
557
557
|
} = e, c = Lo(e, Do);
|
|
558
|
-
const l = da(), d = J(!1), u = U(
|
|
558
|
+
const l = da(), d = J(!1), u = U(vn), m = U(gs);
|
|
559
559
|
let v, f;
|
|
560
560
|
m && (o = o || "tablist", a = m.activeKey, v = m.getControlledId, f = m.getControllerId);
|
|
561
561
|
const p = J(null), x = (w) => {
|
|
562
562
|
const b = p.current;
|
|
563
563
|
if (!b) return null;
|
|
564
|
-
const j = ma(b, `[${Jn}]:not([aria-disabled=true])`),
|
|
565
|
-
if (!
|
|
566
|
-
const T = j.indexOf(
|
|
564
|
+
const j = ma(b, `[${Jn}]:not([aria-disabled=true])`), C = b.querySelector("[aria-selected=true]");
|
|
565
|
+
if (!C || C !== document.activeElement) return null;
|
|
566
|
+
const T = j.indexOf(C);
|
|
567
567
|
if (T === -1) return null;
|
|
568
568
|
let $ = T + w;
|
|
569
569
|
return $ >= j.length && ($ = 0), $ < 0 && ($ = j.length - 1), j[$];
|
|
@@ -595,13 +595,13 @@ const Zn = () => {
|
|
|
595
595
|
d.current = !1;
|
|
596
596
|
});
|
|
597
597
|
const y = ua(t, p);
|
|
598
|
-
return /* @__PURE__ */ n.jsx(
|
|
598
|
+
return /* @__PURE__ */ n.jsx(vn.Provider, {
|
|
599
599
|
value: g,
|
|
600
600
|
children: /* @__PURE__ */ n.jsx(Fr.Provider, {
|
|
601
601
|
value: {
|
|
602
602
|
role: o,
|
|
603
603
|
// used by NavLink to determine it's role
|
|
604
|
-
activeKey:
|
|
604
|
+
activeKey: Cn(a),
|
|
605
605
|
getControlledId: v || Zn,
|
|
606
606
|
getControllerId: f || Zn
|
|
607
607
|
},
|
|
@@ -629,7 +629,7 @@ const To = Object.assign(vs, {
|
|
|
629
629
|
}, d) => {
|
|
630
630
|
e = he(e, "list-group-item");
|
|
631
631
|
const [u, m] = ps({
|
|
632
|
-
key:
|
|
632
|
+
key: Cn(s, l.href),
|
|
633
633
|
active: t,
|
|
634
634
|
...l
|
|
635
635
|
}), v = qt((p) => {
|
|
@@ -674,10 +674,10 @@ const js = /* @__PURE__ */ ie.forwardRef((e, t) => {
|
|
|
674
674
|
js.displayName = "ListGroup";
|
|
675
675
|
const ys = Object.assign(js, {
|
|
676
676
|
Item: Ft
|
|
677
|
-
}),
|
|
677
|
+
}), _n = /* @__PURE__ */ new WeakMap(), Xn = (e, t) => {
|
|
678
678
|
if (!e || !t) return;
|
|
679
|
-
const r =
|
|
680
|
-
|
|
679
|
+
const r = _n.get(t) || /* @__PURE__ */ new Map();
|
|
680
|
+
_n.set(t, r);
|
|
681
681
|
let s = r.get(e);
|
|
682
682
|
return s || (s = t.matchMedia(e), s.refCount = 0, r.set(s.media, s)), s;
|
|
683
683
|
};
|
|
@@ -687,7 +687,7 @@ function Eo(e, t = typeof window > "u" ? void 0 : window) {
|
|
|
687
687
|
let o = Xn(e, t);
|
|
688
688
|
if (!o)
|
|
689
689
|
return a(!1);
|
|
690
|
-
let i =
|
|
690
|
+
let i = _n.get(t);
|
|
691
691
|
const c = () => {
|
|
692
692
|
a(o.matches);
|
|
693
693
|
};
|
|
@@ -742,7 +742,7 @@ const Oo = Fo({
|
|
|
742
742
|
})));
|
|
743
743
|
ws.displayName = "OffcanvasBody";
|
|
744
744
|
const Ro = {
|
|
745
|
-
[
|
|
745
|
+
[kn]: "show",
|
|
746
746
|
[Lr]: "show"
|
|
747
747
|
}, _s = /* @__PURE__ */ ie.forwardRef(({
|
|
748
748
|
bsPrefix: e,
|
|
@@ -764,7 +764,7 @@ const Ro = {
|
|
|
764
764
|
childRef: r.ref,
|
|
765
765
|
children: (d, u) => /* @__PURE__ */ ie.cloneElement(r, {
|
|
766
766
|
...u,
|
|
767
|
-
className: _(t, r.props.className, (d ===
|
|
767
|
+
className: _(t, r.props.className, (d === kn || d === Dr) && `${e}-toggling`, Ro[d])
|
|
768
768
|
})
|
|
769
769
|
})));
|
|
770
770
|
_s.displayName = "OffcanvasToggling";
|
|
@@ -799,7 +799,7 @@ function Ao(e) {
|
|
|
799
799
|
});
|
|
800
800
|
}
|
|
801
801
|
function Bo(e) {
|
|
802
|
-
return /* @__PURE__ */ n.jsx(
|
|
802
|
+
return /* @__PURE__ */ n.jsx(xn, {
|
|
803
803
|
...e
|
|
804
804
|
});
|
|
805
805
|
}
|
|
@@ -827,7 +827,7 @@ const ks = /* @__PURE__ */ ie.forwardRef(({
|
|
|
827
827
|
onExit: w,
|
|
828
828
|
onExiting: b,
|
|
829
829
|
onEnter: j,
|
|
830
|
-
onEntering:
|
|
830
|
+
onEntering: C,
|
|
831
831
|
onExited: T,
|
|
832
832
|
backdropClassName: $,
|
|
833
833
|
manager: R,
|
|
@@ -840,7 +840,7 @@ const ks = /* @__PURE__ */ ie.forwardRef(({
|
|
|
840
840
|
B(() => {
|
|
841
841
|
O(o ? i && !D : i);
|
|
842
842
|
}, [i, o, D]);
|
|
843
|
-
const
|
|
843
|
+
const W = Y(() => ({
|
|
844
844
|
onHide: N
|
|
845
845
|
}), [N]);
|
|
846
846
|
function G() {
|
|
@@ -852,7 +852,7 @@ const ks = /* @__PURE__ */ ie.forwardRef(({
|
|
|
852
852
|
re && (re.style.visibility = "visible"), j == null || j(re, ...V);
|
|
853
853
|
}, z = (re, ...V) => {
|
|
854
854
|
re && (re.style.visibility = ""), T == null || T(...V);
|
|
855
|
-
}, Z =
|
|
855
|
+
}, Z = S((re) => /* @__PURE__ */ n.jsx("div", {
|
|
856
856
|
...re,
|
|
857
857
|
className: _(`${e}-backdrop`, $)
|
|
858
858
|
}), [$, e]), ne = (re) => /* @__PURE__ */ n.jsx("div", {
|
|
@@ -864,7 +864,7 @@ const ks = /* @__PURE__ */ ie.forwardRef(({
|
|
|
864
864
|
});
|
|
865
865
|
return /* @__PURE__ */ n.jsxs(n.Fragment, {
|
|
866
866
|
children: [!Q && (o || A) && ne({}), /* @__PURE__ */ n.jsx(pa.Provider, {
|
|
867
|
-
value:
|
|
867
|
+
value: W,
|
|
868
868
|
children: /* @__PURE__ */ n.jsx(xa, {
|
|
869
869
|
show: Q,
|
|
870
870
|
ref: P,
|
|
@@ -879,7 +879,7 @@ const ks = /* @__PURE__ */ ie.forwardRef(({
|
|
|
879
879
|
onShow: m,
|
|
880
880
|
onHide: N,
|
|
881
881
|
onEnter: X,
|
|
882
|
-
onEntering:
|
|
882
|
+
onEntering: C,
|
|
883
883
|
onEntered: y,
|
|
884
884
|
onExit: w,
|
|
885
885
|
onExiting: b,
|
|
@@ -918,7 +918,7 @@ function Ss({
|
|
|
918
918
|
}
|
|
919
919
|
const Cs = /* @__PURE__ */ ie.forwardRef((e, t) => {
|
|
920
920
|
const r = Ss(e);
|
|
921
|
-
return /* @__PURE__ */ n.jsx(
|
|
921
|
+
return /* @__PURE__ */ n.jsx(jn, {
|
|
922
922
|
...r,
|
|
923
923
|
ref: t,
|
|
924
924
|
disabled: !0,
|
|
@@ -939,7 +939,7 @@ const Is = /* @__PURE__ */ ie.forwardRef(({
|
|
|
939
939
|
Is.displayName = "Placeholder";
|
|
940
940
|
const Ge = Object.assign(Is, {
|
|
941
941
|
Button: Cs
|
|
942
|
-
}),
|
|
942
|
+
}), Fn = /* @__PURE__ */ ie.forwardRef(({
|
|
943
943
|
bsPrefix: e,
|
|
944
944
|
variant: t,
|
|
945
945
|
animation: r = "border",
|
|
@@ -957,7 +957,7 @@ const Ge = Object.assign(Is, {
|
|
|
957
957
|
className: _(o, l, s && `${l}-${s}`, t && `text-${t}`)
|
|
958
958
|
});
|
|
959
959
|
});
|
|
960
|
-
|
|
960
|
+
Fn.displayName = "Spinner";
|
|
961
961
|
const Vo = /* @__PURE__ */ ie.forwardRef(({
|
|
962
962
|
bsPrefix: e,
|
|
963
963
|
className: t,
|
|
@@ -1007,7 +1007,7 @@ const Vo = /* @__PURE__ */ ie.forwardRef(({
|
|
|
1007
1007
|
/* @__PURE__ */ n.jsx("input", { id: r, type: "file", accept: s, onChange: d, hidden: !0, multiple: c })
|
|
1008
1008
|
] });
|
|
1009
1009
|
}, ou = ({ onUpload: e, accept: t, children: r, className: s, size: a = "md" }) => {
|
|
1010
|
-
const o =
|
|
1010
|
+
const o = S(async (c) => {
|
|
1011
1011
|
if (c.target.files)
|
|
1012
1012
|
try {
|
|
1013
1013
|
await e(c.target.files);
|
|
@@ -1019,10 +1019,10 @@ const Vo = /* @__PURE__ */ ie.forwardRef(({
|
|
|
1019
1019
|
/* @__PURE__ */ n.jsx("label", { htmlFor: i, className: _("btn luminus-context-button text-primary", `btn-${a}`, s), children: r }),
|
|
1020
1020
|
/* @__PURE__ */ n.jsx("input", { id: i, type: "file", accept: t, onChange: o, hidden: !0 })
|
|
1021
1021
|
] });
|
|
1022
|
-
}, zo = "_select_dlv1t_1",
|
|
1022
|
+
}, zo = "_select_dlv1t_1", cn = {
|
|
1023
1023
|
select: zo
|
|
1024
|
-
},
|
|
1025
|
-
const o =
|
|
1024
|
+
}, Ho = ({ month: e, onChangeMonth: t, locale: r, yearMin: s = 2e3, yearMax: a = 2050 }) => {
|
|
1025
|
+
const o = S((l) => {
|
|
1026
1026
|
const d = Jr(e, l);
|
|
1027
1027
|
d.getFullYear() < s || d.getFullYear() > a || t(d);
|
|
1028
1028
|
}, [e, t, s, a]), i = Y(() => {
|
|
@@ -1040,19 +1040,19 @@ const Vo = /* @__PURE__ */ ie.forwardRef(({
|
|
|
1040
1040
|
return u;
|
|
1041
1041
|
}, [r]);
|
|
1042
1042
|
return /* @__PURE__ */ n.jsxs("div", { className: "card d-flex flex-row align-items-center m-0 p-1 gap-2", children: [
|
|
1043
|
-
/* @__PURE__ */ n.jsx(te, { onClick: () => o(-1), disabled: e.getFullYear() < s || e.getFullYear() === s && e.getMonth() <= 0, children: /* @__PURE__ */ n.jsx(
|
|
1043
|
+
/* @__PURE__ */ n.jsx(te, { onClick: () => o(-1), disabled: e.getFullYear() < s || e.getFullYear() === s && e.getMonth() <= 0, children: /* @__PURE__ */ n.jsx(In, {}) }),
|
|
1044
1044
|
/* @__PURE__ */ n.jsx(pe.Select, { value: e.getMonth(), onChange: (l) => {
|
|
1045
1045
|
var d;
|
|
1046
1046
|
return ((d = l.target) == null ? void 0 : d.value) && t(jo(e, Number(l.target.value)));
|
|
1047
|
-
}, className: _(
|
|
1047
|
+
}, className: _(cn.select, cn.month), children: c.map((l) => /* @__PURE__ */ n.jsx("option", { value: l.id, children: l.name }, l.id)) }),
|
|
1048
1048
|
/* @__PURE__ */ n.jsx(pe.Select, { value: e.getFullYear(), onChange: (l) => {
|
|
1049
1049
|
var d;
|
|
1050
|
-
return ((d = l.target) == null ? void 0 : d.value) && t(
|
|
1051
|
-
}, className: _(
|
|
1052
|
-
/* @__PURE__ */ n.jsx(te, { onClick: () => o(1), disabled: e.getFullYear() > a || e.getFullYear() === a && e.getMonth() >= 11, children: /* @__PURE__ */ n.jsx(
|
|
1050
|
+
return ((d = l.target) == null ? void 0 : d.value) && t(wn(e, Number(l.target.value)));
|
|
1051
|
+
}, className: _(cn.select), children: i.map((l) => /* @__PURE__ */ n.jsx("option", { value: l, children: l }, l)) }),
|
|
1052
|
+
/* @__PURE__ */ n.jsx(te, { onClick: () => o(1), disabled: e.getFullYear() > a || e.getFullYear() === a && e.getMonth() >= 11, children: /* @__PURE__ */ n.jsx($n, {}) })
|
|
1053
1053
|
] });
|
|
1054
|
-
},
|
|
1055
|
-
select:
|
|
1054
|
+
}, Wo = "_select_pywmr_1", Uo = {
|
|
1055
|
+
select: Wo
|
|
1056
1056
|
}, tr = 2e3, nr = 2050, Go = ({ year: e, onChangeYear: t, className: r, ...s }) => {
|
|
1057
1057
|
const a = Y(() => {
|
|
1058
1058
|
var l;
|
|
@@ -1067,12 +1067,12 @@ const Vo = /* @__PURE__ */ ie.forwardRef(({
|
|
|
1067
1067
|
for (let d = a; d <= o; d++)
|
|
1068
1068
|
l.push(d);
|
|
1069
1069
|
return l;
|
|
1070
|
-
}, [s, o, a]), c =
|
|
1070
|
+
}, [s, o, a]), c = S((l) => {
|
|
1071
1071
|
if (s.manualOptions) {
|
|
1072
1072
|
const d = i.findIndex((u) => u === e.getFullYear());
|
|
1073
1073
|
if (d !== -1) {
|
|
1074
1074
|
const u = i.at(d + l) ?? null;
|
|
1075
|
-
u && t(
|
|
1075
|
+
u && t(wn(e, u));
|
|
1076
1076
|
}
|
|
1077
1077
|
} else {
|
|
1078
1078
|
const d = e.getFullYear() + l;
|
|
@@ -1080,12 +1080,12 @@ const Vo = /* @__PURE__ */ ie.forwardRef(({
|
|
|
1080
1080
|
}
|
|
1081
1081
|
}, [e, t, o, a, s, i]);
|
|
1082
1082
|
return /* @__PURE__ */ n.jsxs("div", { className: _("card d-flex flex-row align-items-center m-0 p-1 gap-2", r ?? ""), children: [
|
|
1083
|
-
/* @__PURE__ */ n.jsx(te, { onClick: () => c(-1), disabled: e.getFullYear() <= a, children: /* @__PURE__ */ n.jsx(
|
|
1083
|
+
/* @__PURE__ */ n.jsx(te, { onClick: () => c(-1), disabled: e.getFullYear() <= a, children: /* @__PURE__ */ n.jsx(In, {}) }),
|
|
1084
1084
|
/* @__PURE__ */ n.jsx(pe.Select, { value: e.getFullYear(), onChange: (l) => {
|
|
1085
1085
|
var d;
|
|
1086
|
-
return ((d = l.target) == null ? void 0 : d.value) && t(
|
|
1086
|
+
return ((d = l.target) == null ? void 0 : d.value) && t(wn(e, Number(l.target.value)));
|
|
1087
1087
|
}, className: Uo.select, children: i.map((l) => /* @__PURE__ */ n.jsx("option", { value: l, children: l }, l)) }),
|
|
1088
|
-
/* @__PURE__ */ n.jsx(te, { onClick: () => c(1), disabled: e.getFullYear() >= o, children: /* @__PURE__ */ n.jsx(
|
|
1088
|
+
/* @__PURE__ */ n.jsx(te, { onClick: () => c(1), disabled: e.getFullYear() >= o, children: /* @__PURE__ */ n.jsx($n, {}) })
|
|
1089
1089
|
] });
|
|
1090
1090
|
};
|
|
1091
1091
|
class Yo extends eo {
|
|
@@ -1151,17 +1151,17 @@ const Ko = (e) => (r) => {
|
|
|
1151
1151
|
s && s(((f = v.target) == null ? void 0 : f.checked) ?? !1);
|
|
1152
1152
|
}, className: i ?? "", hidden: a ?? !1, disabled: o ?? !1 }) });
|
|
1153
1153
|
}, Qe = ({ InputContainer: e = it, type: t, value: r, onChange: s, debounceMs: a, label: o, withoutLabel: i, placeholder: c, size: l, hidden: d, disabled: u, showClearIcon: m, clearValue: v, list: f, className: p, step: x, minLength: g, maxLength: h, noSelectOnFocus: y, hint: w, onConfirm: b }) => {
|
|
1154
|
-
const j = t === "number",
|
|
1154
|
+
const j = t === "number", C = S(() => {
|
|
1155
1155
|
if (!s)
|
|
1156
1156
|
return;
|
|
1157
1157
|
const N = v ?? null;
|
|
1158
1158
|
s(j ? N ? Number(N) : null : (N == null ? void 0 : N.toString()) ?? "");
|
|
1159
|
-
}, [v, j, s]), T = J(null), [$, R] = E((r == null ? void 0 : r.toString()) ?? ""), A =
|
|
1159
|
+
}, [v, j, s]), T = J(null), [$, R] = E((r == null ? void 0 : r.toString()) ?? ""), A = S((N) => {
|
|
1160
1160
|
const D = N;
|
|
1161
1161
|
s && (j && s(D == null || D === "" ? null : Number(D)), s(D || null));
|
|
1162
|
-
}, [j, s]), L =
|
|
1163
|
-
var
|
|
1164
|
-
const D = (
|
|
1162
|
+
}, [j, s]), L = S((N) => {
|
|
1163
|
+
var W;
|
|
1164
|
+
const D = (W = N.target) == null ? void 0 : W.value;
|
|
1165
1165
|
if (!a) {
|
|
1166
1166
|
A(D);
|
|
1167
1167
|
return;
|
|
@@ -1183,7 +1183,7 @@ const Ko = (e) => (r) => {
|
|
|
1183
1183
|
/* @__PURE__ */ n.jsx(pe.Control, { type: O, placeholder: c ?? o, size: l, value: a ? $ : (r == null ? void 0 : r.toString()) ?? "", onChange: L, className: p ?? "", hidden: d, disabled: u ?? !1, list: f, onFocus: (N) => {
|
|
1184
1184
|
Q(!0), !y && N.target.select();
|
|
1185
1185
|
}, onBlur: () => Q(!1), onKeyDown: P, step: x, minLength: g, maxLength: h }),
|
|
1186
|
-
m && r !== null && s && !u && /* @__PURE__ */ n.jsx("div", { className: `luminus-input-remove-icon ${t !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ n.jsx(te, { color: "secondary", size: "sm", onClick:
|
|
1186
|
+
m && r !== null && s && !u && /* @__PURE__ */ n.jsx("div", { className: `luminus-input-remove-icon ${t !== "text" ? "inset" : ""}`, children: /* @__PURE__ */ n.jsx(te, { color: "secondary", size: "sm", onClick: C, children: /* @__PURE__ */ n.jsx(Pe, {}) }) })
|
|
1187
1187
|
] });
|
|
1188
1188
|
}, Gt = ({
|
|
1189
1189
|
InputContainer: e = it,
|
|
@@ -1207,9 +1207,9 @@ const Ko = (e) => (r) => {
|
|
|
1207
1207
|
addNewOptionPath: h,
|
|
1208
1208
|
refreshOptions: y
|
|
1209
1209
|
}) => {
|
|
1210
|
-
const { texts: { customSelect: w } } = U(oe), [b, j] = E(!1), [
|
|
1210
|
+
const { texts: { customSelect: w } } = U(oe), [b, j] = E(!1), [C, T] = E(""), $ = S((O) => {
|
|
1211
1211
|
T(O);
|
|
1212
|
-
}, []), R = Y(() => r.find((O) => O.id === t) ?? null, [r, t]), A =
|
|
1212
|
+
}, []), R = Y(() => r.find((O) => O.id === t) ?? null, [r, t]), A = S((O) => {
|
|
1213
1213
|
var N;
|
|
1214
1214
|
return O === null ? "" : !O.name || O.name.length === 0 ? ((N = O.id) == null ? void 0 : N.toString()) ?? "" : v ? `${O.name} (${O.id})` : O.name;
|
|
1215
1215
|
}, [v]), L = Y(() => {
|
|
@@ -1217,11 +1217,11 @@ const Ko = (e) => (r) => {
|
|
|
1217
1217
|
return p !== void 0 && t !== void 0 && t !== null && (O.some((N) => N.id === t) || O.push({ id: t, name: p })), O.map((N) => ({
|
|
1218
1218
|
id: N.id,
|
|
1219
1219
|
name: A(N)
|
|
1220
|
-
})).filter((N) => qe(N.name,
|
|
1221
|
-
}, [r, u,
|
|
1220
|
+
})).filter((N) => qe(N.name, C)).sort((N, D) => u ? 0 : (N.name ?? "").localeCompare(D.name ?? ""));
|
|
1221
|
+
}, [r, u, C, A, p, t]), P = S((O) => {
|
|
1222
1222
|
var N;
|
|
1223
1223
|
s && s((O == null ? void 0 : O.id) === void 0 || (O == null ? void 0 : O.id) === null ? null : i ? Number(O.id) : (N = O.id) == null ? void 0 : N.toString());
|
|
1224
|
-
}, [s, i]), k =
|
|
1224
|
+
}, [s, i]), k = S((O) => {
|
|
1225
1225
|
j(!1), P(O);
|
|
1226
1226
|
}, [P]), Q = J(null);
|
|
1227
1227
|
return /* @__PURE__ */ n.jsx(n.Fragment, { children: /* @__PURE__ */ n.jsxs(e, { withoutLabel: o, label: a ?? "", hidden: l, inputContainerClassName: _({ "luminus-dropdown-select-open": b }), className: m, hint: g, children: [
|
|
@@ -1238,10 +1238,10 @@ const Ko = (e) => (r) => {
|
|
|
1238
1238
|
] }),
|
|
1239
1239
|
Q.current && /* @__PURE__ */ n.jsx(tn, { show: b, onCancel: () => j(!1), items: L, currentSelection: R ?? null, onSelectionChange: k, onSearchQueryChange: $, texts: w, disabled: d, inputRef: Q, autoHideSearch: !0, allItemsLength: r.length, itemsNameWidth: x, addNewOptionPath: h, refreshOptions: y })
|
|
1240
1240
|
] }) });
|
|
1241
|
-
}, iu = ({ InputContainer: e = it, items: t, selectedItemNavigateTo: r, onSearchQueryChange: s, texts: a, isLoading: o, value: i, onSelect: c, label: l, withoutLabel: d, size: u, dropdownItemsNameWidth: m, additionalColumns: v, hidden: f, disabled: p, displayIdAsName: x, CustomOnChangeComponent: g, className: h, archiveColumn: y, icon: w, hint: b, addNewOptionPath: j, refreshOptions:
|
|
1242
|
-
const [T, $] = E(!1), R =
|
|
1241
|
+
}, iu = ({ InputContainer: e = it, items: t, selectedItemNavigateTo: r, onSearchQueryChange: s, texts: a, isLoading: o, value: i, onSelect: c, label: l, withoutLabel: d, size: u, dropdownItemsNameWidth: m, additionalColumns: v, hidden: f, disabled: p, displayIdAsName: x, CustomOnChangeComponent: g, className: h, archiveColumn: y, icon: w, hint: b, addNewOptionPath: j, refreshOptions: C }) => {
|
|
1242
|
+
const [T, $] = E(!1), R = S((O) => {
|
|
1243
1243
|
c && c(O);
|
|
1244
|
-
}, [c]), A =
|
|
1244
|
+
}, [c]), A = S((O) => {
|
|
1245
1245
|
$(!1), R(O);
|
|
1246
1246
|
}, [R]), L = J(null), P = r !== void 0, k = P && i !== null, Q = Y(() => {
|
|
1247
1247
|
var O, N;
|
|
@@ -1282,20 +1282,20 @@ const Ko = (e) => (r) => {
|
|
|
1282
1282
|
g ?? null
|
|
1283
1283
|
] }) : null
|
|
1284
1284
|
] }),
|
|
1285
|
-
L.current && /* @__PURE__ */ n.jsx(tn, { show: T, onCancel: () => $(!1), items: t, currentSelection: i, onSelectionChange: A, onSearchQueryChange: s, texts: a, itemsNameWidth: m, additionalColumns: v, isLoading: o, disabled: p, inputRef: L, archiveColumn: y, displayIdAsName: x, addNewOptionPath: j, refreshOptions:
|
|
1285
|
+
L.current && /* @__PURE__ */ n.jsx(tn, { show: T, onCancel: () => $(!1), items: t, currentSelection: i, onSelectionChange: A, onSearchQueryChange: s, texts: a, itemsNameWidth: m, additionalColumns: v, isLoading: o, disabled: p, inputRef: L, archiveColumn: y, displayIdAsName: x, addNewOptionPath: j, refreshOptions: C })
|
|
1286
1286
|
] }) });
|
|
1287
1287
|
}, lu = ({ InputContainer: e = it, value: t, onChange: r, label: s, size: a, showClearIcon: o, clearValue: i, hidden: c, disabled: l, rows: d, withoutLabel: u, debounceMs: m, minLength: v, maxLength: f, className: p, hint: x }) => {
|
|
1288
|
-
const g =
|
|
1288
|
+
const g = S(() => {
|
|
1289
1289
|
if (!r)
|
|
1290
1290
|
return;
|
|
1291
|
-
const
|
|
1292
|
-
r((
|
|
1293
|
-
}, [i, r]), h = J(null), [y, w] = E((t == null ? void 0 : t.toString()) ?? ""), b =
|
|
1294
|
-
const T =
|
|
1291
|
+
const C = i ?? null;
|
|
1292
|
+
r((C == null ? void 0 : C.toString()) ?? "");
|
|
1293
|
+
}, [i, r]), h = J(null), [y, w] = E((t == null ? void 0 : t.toString()) ?? ""), b = S((C) => {
|
|
1294
|
+
const T = C;
|
|
1295
1295
|
r && r(T || null);
|
|
1296
|
-
}, [r]), j =
|
|
1296
|
+
}, [r]), j = S((C) => {
|
|
1297
1297
|
var $;
|
|
1298
|
-
const T = ($ =
|
|
1298
|
+
const T = ($ = C.target) == null ? void 0 : $.value;
|
|
1299
1299
|
if (!m) {
|
|
1300
1300
|
b(T);
|
|
1301
1301
|
return;
|
|
@@ -1311,34 +1311,34 @@ const Ko = (e) => (r) => {
|
|
|
1311
1311
|
o && t && r && !l && /* @__PURE__ */ n.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ n.jsx(te, { color: "secondary", size: "sm", onClick: g, children: /* @__PURE__ */ n.jsx(Pe, {}) }) })
|
|
1312
1312
|
] });
|
|
1313
1313
|
}, cu = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, label: a, withoutLabel: o, placeholder: i, size: c, hidden: l, disabled: d, showClearIcon: u, clearValue: m, className: v, step: f, stepperStep: p = 1, min: x, max: g, hint: h }) => {
|
|
1314
|
-
const y =
|
|
1314
|
+
const y = S(() => {
|
|
1315
1315
|
if (!r)
|
|
1316
1316
|
return;
|
|
1317
1317
|
const $ = m ?? null;
|
|
1318
1318
|
r($ ? Number($) : null);
|
|
1319
|
-
}, [m, r]), w = J(null), [b, j] = E((t == null ? void 0 : t.toString()) ?? ""),
|
|
1319
|
+
}, [m, r]), w = J(null), [b, j] = E((t == null ? void 0 : t.toString()) ?? ""), C = S(($) => {
|
|
1320
1320
|
const R = $;
|
|
1321
1321
|
r && r(R == null || R === "" ? null : bt(Number(R), x, g));
|
|
1322
|
-
}, [g, x, r]), T =
|
|
1322
|
+
}, [g, x, r]), T = S(($) => {
|
|
1323
1323
|
var A;
|
|
1324
1324
|
const R = (A = $.target) == null ? void 0 : A.value;
|
|
1325
1325
|
if (!s) {
|
|
1326
|
-
|
|
1326
|
+
C(R);
|
|
1327
1327
|
return;
|
|
1328
1328
|
}
|
|
1329
1329
|
j(bt(Number(R), x, g).toString()), w.current !== null && window.clearTimeout(w.current), w.current = window.setTimeout(() => {
|
|
1330
|
-
|
|
1330
|
+
C(R);
|
|
1331
1331
|
}, s);
|
|
1332
|
-
}, [s,
|
|
1332
|
+
}, [s, C, g, x]);
|
|
1333
1333
|
return B(() => {
|
|
1334
1334
|
j(t === null ? "" : bt(t, x, g).toString());
|
|
1335
1335
|
}, [g, x, t]), /* @__PURE__ */ n.jsx(e, { withoutLabel: o, label: a ?? "", hidden: l, hint: h, className: v, children: /* @__PURE__ */ n.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
|
|
1336
1336
|
/* @__PURE__ */ n.jsx(pe.Control, { type: "number", placeholder: i ?? a, size: c, value: s ? b : t ?? "", onChange: T, className: `luminus-numeric-stepper ${v ?? ""}`, hidden: l, disabled: d ?? !1, step: f }),
|
|
1337
1337
|
/* @__PURE__ */ n.jsx("div", { className: "stepper-icon left", children: !d && /* @__PURE__ */ n.jsx(te, { size: "sm", onClick: ($) => {
|
|
1338
|
-
$.preventDefault(), $.stopPropagation(),
|
|
1338
|
+
$.preventDefault(), $.stopPropagation(), C(((t ?? 0) - p).toString());
|
|
1339
1339
|
}, children: /* @__PURE__ */ n.jsx(Ar, {}) }) }),
|
|
1340
1340
|
/* @__PURE__ */ n.jsx("div", { className: "stepper-icon right", children: !d && /* @__PURE__ */ n.jsx(te, { size: "sm", onClick: ($) => {
|
|
1341
|
-
$.preventDefault(), $.stopPropagation(),
|
|
1341
|
+
$.preventDefault(), $.stopPropagation(), C(((t ?? 0) + p).toString());
|
|
1342
1342
|
}, children: /* @__PURE__ */ n.jsx(Br, {}) }) }),
|
|
1343
1343
|
u && t && r && !d && /* @__PURE__ */ n.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ n.jsx(te, { color: "secondary", size: "sm", onClick: y, children: /* @__PURE__ */ n.jsx(Pe, {}) }) })
|
|
1344
1344
|
] }) });
|
|
@@ -1406,7 +1406,7 @@ function si(e) {
|
|
|
1406
1406
|
});
|
|
1407
1407
|
return r.current;
|
|
1408
1408
|
}
|
|
1409
|
-
function
|
|
1409
|
+
function On(e, t) {
|
|
1410
1410
|
t === void 0 && (t = !0);
|
|
1411
1411
|
var r = e[0] === "-", s = r && t;
|
|
1412
1412
|
e = e.replace("-", "");
|
|
@@ -1447,7 +1447,7 @@ function Os(e) {
|
|
|
1447
1447
|
function ar(e, t, r) {
|
|
1448
1448
|
if (["", "-"].indexOf(e) !== -1)
|
|
1449
1449
|
return e;
|
|
1450
|
-
var s = (e.indexOf(".") !== -1 || r) && t, a =
|
|
1450
|
+
var s = (e.indexOf(".") !== -1 || r) && t, a = On(e), o = a.beforeDecimal, i = a.afterDecimal, c = a.hasNegation, l = parseFloat("0." + (i || "0")), d = i.length <= t ? "0." + i : l.toFixed(t), u = d.split("."), m = o;
|
|
1451
1451
|
o && Number(u[0]) && (m = o.split("").reverse().reduce(function(x, g, h) {
|
|
1452
1452
|
return x.length > h ? (Number(x[0]) + Number(g)).toString() + x.substring(1, x.length) : g + x;
|
|
1453
1453
|
}, u[0]));
|
|
@@ -1482,7 +1482,7 @@ var Rs = ei(function(e, t) {
|
|
|
1482
1482
|
function ii(e, t, r) {
|
|
1483
1483
|
return Math.min(Math.max(e, t), r);
|
|
1484
1484
|
}
|
|
1485
|
-
function
|
|
1485
|
+
function dn(e) {
|
|
1486
1486
|
return Math.max(e.selectionStart, e.selectionEnd);
|
|
1487
1487
|
}
|
|
1488
1488
|
function li() {
|
|
@@ -1603,51 +1603,51 @@ function gi(e) {
|
|
|
1603
1603
|
y === void 0 && (y = fi);
|
|
1604
1604
|
var w = e.isValidInputCharacter;
|
|
1605
1605
|
w === void 0 && (w = Dt);
|
|
1606
|
-
var b = e.isCharacterSame, j = Ls(e, ["type", "displayType", "customInput", "renderText", "getInputRef", "format", "removeFormatting", "defaultValue", "valueIsNumericString", "onValueChange", "isAllowed", "onChange", "onKeyDown", "onMouseUp", "onFocus", "onBlur", "value", "getCaretBoundary", "isValidInputCharacter", "isCharacterSame"]),
|
|
1606
|
+
var b = e.isCharacterSame, j = Ls(e, ["type", "displayType", "customInput", "renderText", "getInputRef", "format", "removeFormatting", "defaultValue", "valueIsNumericString", "onValueChange", "isAllowed", "onChange", "onKeyDown", "onMouseUp", "onFocus", "onBlur", "value", "getCaretBoundary", "isValidInputCharacter", "isCharacterSame"]), C = Ms(h, l, !!d, i, c, u), T = C[0], $ = T.formattedValue, R = T.numAsString, A = C[1], L = J(), P = J({ formattedValue: $, numAsString: R }), k = function(I, M) {
|
|
1607
1607
|
P.current = { formattedValue: I.formattedValue, numAsString: I.value }, A(I, M);
|
|
1608
|
-
}, Q = E(!1), O = Q[0], N = Q[1], D = J(null),
|
|
1608
|
+
}, Q = E(!1), O = Q[0], N = Q[1], D = J(null), W = J({
|
|
1609
1609
|
setCaretTimeout: null,
|
|
1610
1610
|
focusTimeout: null
|
|
1611
1611
|
});
|
|
1612
1612
|
B(function() {
|
|
1613
1613
|
return N(!0), function() {
|
|
1614
|
-
clearTimeout(
|
|
1614
|
+
clearTimeout(W.current.setCaretTimeout), clearTimeout(W.current.focusTimeout);
|
|
1615
1615
|
};
|
|
1616
1616
|
}, []);
|
|
1617
1617
|
var G = i, X = function(I, M) {
|
|
1618
|
-
var
|
|
1618
|
+
var H = parseFloat(M);
|
|
1619
1619
|
return {
|
|
1620
1620
|
formattedValue: I,
|
|
1621
1621
|
value: M,
|
|
1622
|
-
floatValue: isNaN(
|
|
1622
|
+
floatValue: isNaN(H) ? void 0 : H
|
|
1623
1623
|
};
|
|
1624
|
-
}, z = function(I, M,
|
|
1625
|
-
I.selectionStart === 0 && I.selectionEnd === I.value.length || (ot(I, M),
|
|
1626
|
-
I.value ===
|
|
1624
|
+
}, z = function(I, M, H) {
|
|
1625
|
+
I.selectionStart === 0 && I.selectionEnd === I.value.length || (ot(I, M), W.current.setCaretTimeout = setTimeout(function() {
|
|
1626
|
+
I.value === H && I.selectionStart !== M && ot(I, M);
|
|
1627
1627
|
}, 0));
|
|
1628
|
-
}, Z = function(I, M,
|
|
1629
|
-
return or(I, M, y(I),
|
|
1630
|
-
}, ne = function(I, M,
|
|
1631
|
-
var le = y(M), ve = ui(M, $, I,
|
|
1628
|
+
}, Z = function(I, M, H) {
|
|
1629
|
+
return or(I, M, y(I), H);
|
|
1630
|
+
}, ne = function(I, M, H) {
|
|
1631
|
+
var le = y(M), ve = ui(M, $, I, H, le, w, b);
|
|
1632
1632
|
return ve = or(M, ve, le), ve;
|
|
1633
1633
|
}, re = function(I) {
|
|
1634
1634
|
var M = I.formattedValue;
|
|
1635
1635
|
M === void 0 && (M = "");
|
|
1636
|
-
var
|
|
1637
|
-
if (
|
|
1638
|
-
var Ie = I.inputValue ||
|
|
1639
|
-
|
|
1636
|
+
var H = I.input, le = I.source, ve = I.event, ce = I.numAsString, de;
|
|
1637
|
+
if (H) {
|
|
1638
|
+
var Ie = I.inputValue || H.value, Te = dn(H);
|
|
1639
|
+
H.value = M, de = ne(Ie, M, Te), de !== void 0 && z(H, de, M);
|
|
1640
1640
|
}
|
|
1641
1641
|
M !== $ && k(X(M, ce), { event: ve, source: le });
|
|
1642
1642
|
};
|
|
1643
1643
|
B(function() {
|
|
1644
|
-
var I = P.current, M = I.formattedValue,
|
|
1645
|
-
($ !== M || R !==
|
|
1644
|
+
var I = P.current, M = I.formattedValue, H = I.numAsString;
|
|
1645
|
+
($ !== M || R !== H) && k(X($, R), {
|
|
1646
1646
|
event: void 0,
|
|
1647
1647
|
source: $t.props
|
|
1648
1648
|
});
|
|
1649
1649
|
}, [$, R]);
|
|
1650
|
-
var V = D.current ?
|
|
1650
|
+
var V = D.current ? dn(D.current) : void 0, F = typeof window < "u" ? no : B;
|
|
1651
1651
|
F(function() {
|
|
1652
1652
|
var I = D.current;
|
|
1653
1653
|
if ($ !== P.current.formattedValue && I) {
|
|
@@ -1655,10 +1655,10 @@ function gi(e) {
|
|
|
1655
1655
|
I.value = $, z(I, M, $);
|
|
1656
1656
|
}
|
|
1657
1657
|
}, [$]);
|
|
1658
|
-
var ee = function(I, M,
|
|
1658
|
+
var ee = function(I, M, H) {
|
|
1659
1659
|
var le = M.target, ve = L.current ? oi(L.current, le.selectionEnd) : Rs($, I), ce = Object.assign(Object.assign({}, ve), { lastValue: $ }), de = c(I, ce), Ie = G(de);
|
|
1660
1660
|
if (de = c(Ie, void 0), m && !m(X(Ie, de))) {
|
|
1661
|
-
var Te = M.target, Ee =
|
|
1661
|
+
var Te = M.target, Ee = dn(Te), dt = ne(I, $, Ee);
|
|
1662
1662
|
return Te.value = $, z(Te, dt, $), !1;
|
|
1663
1663
|
}
|
|
1664
1664
|
return re({
|
|
@@ -1666,56 +1666,56 @@ function gi(e) {
|
|
|
1666
1666
|
numAsString: de,
|
|
1667
1667
|
inputValue: I,
|
|
1668
1668
|
event: M,
|
|
1669
|
-
source:
|
|
1669
|
+
source: H,
|
|
1670
1670
|
input: M.target
|
|
1671
1671
|
}), !0;
|
|
1672
1672
|
}, ae = function(I, M) {
|
|
1673
1673
|
M === void 0 && (M = 0);
|
|
1674
|
-
var
|
|
1675
|
-
L.current = { selectionStart:
|
|
1674
|
+
var H = I.selectionStart, le = I.selectionEnd;
|
|
1675
|
+
L.current = { selectionStart: H, selectionEnd: le + M };
|
|
1676
1676
|
}, be = function(I) {
|
|
1677
|
-
var M = I.target,
|
|
1677
|
+
var M = I.target, H = M.value, le = ee(H, I, $t.event);
|
|
1678
1678
|
le && v(I), L.current = void 0;
|
|
1679
1679
|
}, Le = function(I) {
|
|
1680
|
-
var M = I.target,
|
|
1680
|
+
var M = I.target, H = I.key, le = M.selectionStart, ve = M.selectionEnd, ce = M.value;
|
|
1681
1681
|
ce === void 0 && (ce = "");
|
|
1682
1682
|
var de;
|
|
1683
|
-
|
|
1683
|
+
H === "ArrowLeft" || H === "Backspace" ? de = Math.max(le - 1, 0) : H === "ArrowRight" ? de = Math.min(le + 1, ce.length) : H === "Delete" && (de = le);
|
|
1684
1684
|
var Ie = 0;
|
|
1685
|
-
|
|
1686
|
-
var Te =
|
|
1685
|
+
H === "Delete" && le === ve && (Ie = 1);
|
|
1686
|
+
var Te = H === "ArrowLeft" || H === "ArrowRight";
|
|
1687
1687
|
if (de === void 0 || le !== ve && !Te) {
|
|
1688
1688
|
f(I), ae(M, Ie);
|
|
1689
1689
|
return;
|
|
1690
1690
|
}
|
|
1691
1691
|
var Ee = de;
|
|
1692
1692
|
if (Te) {
|
|
1693
|
-
var dt =
|
|
1693
|
+
var dt = H === "ArrowLeft" ? "left" : "right";
|
|
1694
1694
|
Ee = Z(ce, de, dt), Ee !== de && I.preventDefault();
|
|
1695
|
-
} else
|
|
1695
|
+
} else H === "Delete" && !w(ce[de]) ? Ee = Z(ce, de, "right") : H === "Backspace" && !w(ce[de]) && (Ee = Z(ce, de, "left"));
|
|
1696
1696
|
Ee !== de && z(M, Ee, ce), f(I), ae(M, Ie);
|
|
1697
1697
|
}, ze = function(I) {
|
|
1698
|
-
var M = I.target,
|
|
1698
|
+
var M = I.target, H = function() {
|
|
1699
1699
|
var le = M.selectionStart, ve = M.selectionEnd, ce = M.value;
|
|
1700
1700
|
if (ce === void 0 && (ce = ""), le === ve) {
|
|
1701
1701
|
var de = Z(ce, le);
|
|
1702
1702
|
de !== le && z(M, de, ce);
|
|
1703
1703
|
}
|
|
1704
1704
|
};
|
|
1705
|
-
|
|
1706
|
-
|
|
1705
|
+
H(), requestAnimationFrame(function() {
|
|
1706
|
+
H();
|
|
1707
1707
|
}), p(I), ae(M);
|
|
1708
1708
|
}, se = function(I) {
|
|
1709
1709
|
I.persist && I.persist();
|
|
1710
|
-
var M = I.target,
|
|
1711
|
-
D.current = M,
|
|
1710
|
+
var M = I.target, H = I.currentTarget;
|
|
1711
|
+
D.current = M, W.current.focusTimeout = setTimeout(function() {
|
|
1712
1712
|
var le = M.selectionStart, ve = M.selectionEnd, ce = M.value;
|
|
1713
1713
|
ce === void 0 && (ce = "");
|
|
1714
1714
|
var de = Z(ce, le);
|
|
1715
|
-
de !== le && !(le === 0 && ve === ce.length) && z(M, de, ce), x(Object.assign(Object.assign({}, I), { currentTarget:
|
|
1715
|
+
de !== le && !(le === 0 && ve === ce.length) && z(M, de, ce), x(Object.assign(Object.assign({}, I), { currentTarget: H }));
|
|
1716
1716
|
}, 0);
|
|
1717
1717
|
}, _e = function(I) {
|
|
1718
|
-
D.current = null, clearTimeout(
|
|
1718
|
+
D.current = null, clearTimeout(W.current.focusTimeout), clearTimeout(W.current.setCaretTimeout), g(I);
|
|
1719
1719
|
}, Ne = O && li() ? "numeric" : void 0, et = Object.assign({ inputMode: Ne }, j, {
|
|
1720
1720
|
type: t,
|
|
1721
1721
|
value: $,
|
|
@@ -1741,7 +1741,7 @@ function ir(e, t) {
|
|
|
1741
1741
|
var i = t.allowNegative, c = t.thousandsGroupStyle;
|
|
1742
1742
|
if (c === void 0 && (c = "thousand"), e === "" || e === "-")
|
|
1743
1743
|
return e;
|
|
1744
|
-
var l = Xt(t), d = l.thousandSeparator, u = l.decimalSeparator, m = r !== 0 && e.indexOf(".") !== -1 || r && s, v =
|
|
1744
|
+
var l = Xt(t), d = l.thousandSeparator, u = l.decimalSeparator, m = r !== 0 && e.indexOf(".") !== -1 || r && s, v = On(e, i), f = v.beforeDecimal, p = v.afterDecimal, x = v.addNegation;
|
|
1745
1745
|
return r !== void 0 && (p = Fs(p, r, !!s)), d && (f = ri(f, d, c)), a && (f = a + f), o && (p = p + o), x && (f = "-" + f), e = f + (m && u || "") + p, e;
|
|
1746
1746
|
}
|
|
1747
1747
|
function Xt(e) {
|
|
@@ -1779,24 +1779,24 @@ function ji(e, t, r) {
|
|
|
1779
1779
|
var g = c === 0 ? "" : p;
|
|
1780
1780
|
e = e.substring(0, u) + g + e.substring(u + 1, e.length);
|
|
1781
1781
|
}
|
|
1782
|
-
var h = function(D,
|
|
1782
|
+
var h = function(D, W, G) {
|
|
1783
1783
|
var X = !1, z = !1;
|
|
1784
1784
|
o.startsWith("-") ? X = !1 : D.startsWith("--") ? (X = !1, z = !0) : i.startsWith("-") && D.length === i.length ? X = !1 : D[0] === "-" && (X = !0);
|
|
1785
1785
|
var Z = X ? 1 : 0;
|
|
1786
|
-
return z && (Z = 2), Z && (D = D.substring(Z),
|
|
1786
|
+
return z && (Z = 2), Z && (D = D.substring(Z), W -= Z, G -= Z), { value: D, start: W, end: G, hasNegation: X };
|
|
1787
1787
|
}, y = h(e, u, m), w = y.hasNegation;
|
|
1788
1788
|
s = y, e = s.value, u = s.start, m = s.end;
|
|
1789
|
-
var b = h(t.lastValue, l.start, l.end), j = b.start,
|
|
1790
|
-
e.length && T.length && (j > T.length - i.length ||
|
|
1789
|
+
var b = h(t.lastValue, l.start, l.end), j = b.start, C = b.end, T = b.value, $ = e.substring(u, m);
|
|
1790
|
+
e.length && T.length && (j > T.length - i.length || C < o.length) && !($ && i.startsWith($)) && (e = T);
|
|
1791
1791
|
var R = 0;
|
|
1792
1792
|
e.startsWith(o) ? R += o.length : u < o.length && (R = u), e = e.substring(R), m -= R;
|
|
1793
1793
|
var A = e.length, L = e.length - i.length;
|
|
1794
1794
|
e.endsWith(i) ? A = L : (m > L || m > e.length - i.length) && (A = m), e = e.substring(0, A), e = pi(w ? "-" + e : e, a), e = (e.match(xi(p)) || []).join("");
|
|
1795
1795
|
var P = e.indexOf(p);
|
|
1796
|
-
e = e.replace(new RegExp(Es(p), "g"), function(D,
|
|
1797
|
-
return
|
|
1796
|
+
e = e.replace(new RegExp(Es(p), "g"), function(D, W) {
|
|
1797
|
+
return W === P ? "." : "";
|
|
1798
1798
|
});
|
|
1799
|
-
var k =
|
|
1799
|
+
var k = On(e, a), Q = k.beforeDecimal, O = k.afterDecimal, N = k.addNegation;
|
|
1800
1800
|
return d.end - d.start < l.end - l.start && Q === "" && x && !parseFloat(O) && (e = N ? "-" : ""), e;
|
|
1801
1801
|
}
|
|
1802
1802
|
function yi(e, t) {
|
|
@@ -1841,11 +1841,11 @@ function _i(e) {
|
|
|
1841
1841
|
return ji(N, D, e);
|
|
1842
1842
|
}, b = ft(m) ? u : m, j = v ?? vi(b, d, t);
|
|
1843
1843
|
ft(m) ? ft(u) || (j = j || typeof u == "number") : j = j || typeof m == "number";
|
|
1844
|
-
var
|
|
1844
|
+
var C = function(N) {
|
|
1845
1845
|
return Ts(N) ? N : (typeof N == "number" && (N = Os(N)), j && typeof c == "number" ? ar(N, c, !!l) : N);
|
|
1846
|
-
}, T = Ms(
|
|
1847
|
-
var D = N.target,
|
|
1848
|
-
if (z === void 0 && (z = ""), (
|
|
1846
|
+
}, T = Ms(C(m), C(u), !!j, y, w, f), $ = T[0], R = $.numAsString, A = $.formattedValue, L = T[1], P = function(N) {
|
|
1847
|
+
var D = N.target, W = N.key, G = D.selectionStart, X = D.selectionEnd, z = D.value;
|
|
1848
|
+
if (z === void 0 && (z = ""), (W === "Backspace" || W === "Delete") && X < d.length) {
|
|
1849
1849
|
N.preventDefault();
|
|
1850
1850
|
return;
|
|
1851
1851
|
}
|
|
@@ -1853,15 +1853,15 @@ function _i(e) {
|
|
|
1853
1853
|
a(N);
|
|
1854
1854
|
return;
|
|
1855
1855
|
}
|
|
1856
|
-
|
|
1856
|
+
W === "Backspace" && z[0] === "-" && G === d.length + 1 && r && ot(D, 1), c && l && (W === "Backspace" && z[G - 1] === g ? (ot(D, G - 1), N.preventDefault()) : W === "Delete" && z[G] === g && N.preventDefault()), h != null && h.includes(W) && z[G] === g && ot(D, G + 1);
|
|
1857
1857
|
var Z = i === !0 ? "," : i;
|
|
1858
|
-
|
|
1858
|
+
W === "Backspace" && z[G - 1] === Z && ot(D, G - 1), W === "Delete" && z[G] === Z && ot(D, G + 1), a(N);
|
|
1859
1859
|
}, k = function(N) {
|
|
1860
1860
|
var D = R;
|
|
1861
1861
|
if (D.match(/\d/g) || (D = ""), s || (D = ai(D)), l && c && (D = ar(D, c, l)), D !== R) {
|
|
1862
|
-
var
|
|
1862
|
+
var W = ir(D, e);
|
|
1863
1863
|
L({
|
|
1864
|
-
formattedValue:
|
|
1864
|
+
formattedValue: W,
|
|
1865
1865
|
value: D,
|
|
1866
1866
|
floatValue: parseFloat(D)
|
|
1867
1867
|
}, {
|
|
@@ -1873,7 +1873,7 @@ function _i(e) {
|
|
|
1873
1873
|
}, Q = function(N) {
|
|
1874
1874
|
return N === g ? !0 : Dt(N);
|
|
1875
1875
|
}, O = function(N) {
|
|
1876
|
-
var D = N.currentValue,
|
|
1876
|
+
var D = N.currentValue, W = N.lastValue, G = N.formattedValue, X = N.currentValueIndex, z = N.formattedValueIndex, Z = D[X], ne = G[z], re = Rs(W, D), V = re.to, F = function(ee) {
|
|
1877
1877
|
return w(ee).indexOf(".") + d.length;
|
|
1878
1878
|
};
|
|
1879
1879
|
return m === 0 && l && c && D[V.start] === g && F(D) < X && F(G) > z ? !1 : X >= V.start && X < V.end && h && h.includes(Z) && ne === g ? !0 : Z === ne;
|
|
@@ -1893,27 +1893,27 @@ function _i(e) {
|
|
|
1893
1893
|
onBlur: k
|
|
1894
1894
|
});
|
|
1895
1895
|
}
|
|
1896
|
-
function
|
|
1896
|
+
function Rn(e) {
|
|
1897
1897
|
var t = _i(e);
|
|
1898
1898
|
return ke.createElement(gi, Object.assign({}, t));
|
|
1899
1899
|
}
|
|
1900
1900
|
const du = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, label: a, withoutLabel: o, placeholder: i, size: c, hidden: l, disabled: d, showClearIcon: u, clearValue: m, className: v, step: f, noSelectOnFocus: p, decimalScale: x, numberPrefix: g, numberSuffix: h, min: y, max: w, hint: b }) => {
|
|
1901
|
-
const j =
|
|
1901
|
+
const j = S(() => {
|
|
1902
1902
|
if (!r)
|
|
1903
1903
|
return;
|
|
1904
1904
|
const L = m ?? null;
|
|
1905
1905
|
r(L ? Number(L) : null);
|
|
1906
|
-
}, [m, r]),
|
|
1906
|
+
}, [m, r]), C = J(null), [T, $] = E((t == null ? void 0 : t.toString()) ?? ""), R = S((L) => {
|
|
1907
1907
|
const P = L;
|
|
1908
1908
|
r && r(P == null || P === "" ? null : Number(P));
|
|
1909
|
-
}, [r]), A =
|
|
1909
|
+
}, [r]), A = S((L) => {
|
|
1910
1910
|
var k, Q;
|
|
1911
1911
|
let P = parseFloat(((Q = (k = L.target) == null ? void 0 : k.value) == null ? void 0 : Q.replaceAll(" ", "").replaceAll(",", ".")) ?? 0);
|
|
1912
1912
|
if (Number.isNaN(P) && (P = 0), !s) {
|
|
1913
1913
|
R(P.toString());
|
|
1914
1914
|
return;
|
|
1915
1915
|
}
|
|
1916
|
-
$(P.toString()),
|
|
1916
|
+
$(P.toString()), C.current !== null && window.clearTimeout(C.current), C.current = window.setTimeout(() => {
|
|
1917
1917
|
R(P.toString());
|
|
1918
1918
|
}, s);
|
|
1919
1919
|
}, [s, R]);
|
|
@@ -1924,7 +1924,7 @@ const du = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
|
|
|
1924
1924
|
}, [T, w, y, $]), B(() => {
|
|
1925
1925
|
!r || t === null || (w !== void 0 && t > w && r(w), y !== void 0 && t < y && r(y));
|
|
1926
1926
|
}, [t, w, y, r]), /* @__PURE__ */ n.jsxs(e, { withoutLabel: o, label: a ?? "", hidden: l, className: v, hint: b, children: [
|
|
1927
|
-
/* @__PURE__ */ n.jsx(
|
|
1927
|
+
/* @__PURE__ */ n.jsx(Rn, { displayType: "input", thousandSeparator: " ", decimalSeparator: ",", decimalScale: x, prefix: g, suffix: h, defaultValue: "", value: s ? T : (t == null ? void 0 : t.toString()) ?? "", placeholder: i ?? a, onFocus: (L) => {
|
|
1928
1928
|
!p && L.target.select();
|
|
1929
1929
|
}, onChange: A, hidden: l, disabled: d, className: _("form-control text-end w-100", {
|
|
1930
1930
|
[`form-control-${c}`]: c
|
|
@@ -1932,7 +1932,7 @@ const du = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
|
|
|
1932
1932
|
u && t !== null && r && !d && /* @__PURE__ */ n.jsx("div", { className: "luminus-input-remove-icon inset", children: /* @__PURE__ */ n.jsx(te, { color: "secondary", size: "sm", onClick: j, children: /* @__PURE__ */ n.jsx(Pe, {}) }) })
|
|
1933
1933
|
] });
|
|
1934
1934
|
}, uu = ({ InputContainer: e = Ae, label: t, options: r, disabled: s, hidden: a, className: o, value: i, onChange: c }) => {
|
|
1935
|
-
const l =
|
|
1935
|
+
const l = S((d) => {
|
|
1936
1936
|
c && c(d.target.value);
|
|
1937
1937
|
}, [c]);
|
|
1938
1938
|
return /* @__PURE__ */ n.jsx(e, { isForRadioInput: !0, hidden: a, withoutLabel: !t, label: `${t}`, className: o, children: r.map((d) => /* @__PURE__ */ n.jsx(pe.Check, { id: `radio-${d.id}`, label: d.name, type: "radio", value: d.id ?? "", checked: i === d.id, onChange: l, hidden: a, disabled: s, className: "w-100" }, d.id)) });
|
|
@@ -1941,8 +1941,8 @@ const du = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
|
|
|
1941
1941
|
B(() => {
|
|
1942
1942
|
const b = t.split(".");
|
|
1943
1943
|
let j = f.errors;
|
|
1944
|
-
b.forEach((
|
|
1945
|
-
j !== void 0 && (j = j[
|
|
1944
|
+
b.forEach((C) => {
|
|
1945
|
+
j !== void 0 && (j = j[C]);
|
|
1946
1946
|
}), g(j);
|
|
1947
1947
|
}, [f, t]), B(() => {
|
|
1948
1948
|
f.isSubmitted && y(!0);
|
|
@@ -1961,8 +1961,8 @@ const du = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
|
|
|
1961
1961
|
B(() => {
|
|
1962
1962
|
const b = r.split(".");
|
|
1963
1963
|
let j = m.errors;
|
|
1964
|
-
b.forEach((
|
|
1965
|
-
j !== void 0 && (j = j[
|
|
1964
|
+
b.forEach((C) => {
|
|
1965
|
+
j !== void 0 && (j = j[C]);
|
|
1966
1966
|
}), x(j);
|
|
1967
1967
|
}, [m, r]), B(() => {
|
|
1968
1968
|
m.isSubmitted && h(!0);
|
|
@@ -1971,20 +1971,20 @@ const du = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
|
|
|
1971
1971
|
return /* @__PURE__ */ n.jsxs(e, { isForRadioInput: !0, hidden: c, withoutLabel: !t, label: `${t}${o ? " *" : ""}`, isInvalid: w, className: d, children: [
|
|
1972
1972
|
y.map((b) => /* @__PURE__ */ n.jsx(pe.Check, { id: `radio-${b.id}`, label: b.name, type: "radio", value: b.id ?? "", checked: f(r) === b.id, ...u(r, {
|
|
1973
1973
|
onChange: (j) => {
|
|
1974
|
-
var
|
|
1975
|
-
a && a.forEach((T) => v(T, null, { shouldDirty: !0, shouldValidate: g })), l && l((
|
|
1974
|
+
var C;
|
|
1975
|
+
a && a.forEach((T) => v(T, null, { shouldDirty: !0, shouldValidate: g })), l && l((C = j.target) != null && C.value ? j.target.value.toString() : null);
|
|
1976
1976
|
}
|
|
1977
1977
|
}), isInvalid: w, hidden: c, disabled: i, className: "w-100" }, b.id)),
|
|
1978
1978
|
p && /* @__PURE__ */ n.jsx(lt, { message: p.message })
|
|
1979
1979
|
] });
|
|
1980
|
-
}, hu = ({ InputContainer: e = Ae, formField: t, label: r, size: s, defaultSelection: a, resetsFields: o, isNumber: i, required: c, hidden: l, disabled: d, items: u, onSearchQueryChange: m, selectedItemNavigateTo: v, texts: f, dropdownItemsNameWidth: p, isLoading: x, withoutLabel: g, additionalColumns: h, CustomOnChangeComponent: y, icon: w, displayIdAsName: b, onSelect: j, className:
|
|
1981
|
-
const { formState: L, setValue: P, watch: k, control: Q } = Xe(), [O, N] = E(void 0), [D,
|
|
1980
|
+
}, hu = ({ InputContainer: e = Ae, formField: t, label: r, size: s, defaultSelection: a, resetsFields: o, isNumber: i, required: c, hidden: l, disabled: d, items: u, onSearchQueryChange: m, selectedItemNavigateTo: v, texts: f, dropdownItemsNameWidth: p, isLoading: x, withoutLabel: g, additionalColumns: h, CustomOnChangeComponent: y, icon: w, displayIdAsName: b, onSelect: j, className: C, archiveColumn: T, hint: $, addNewOptionPath: R, refreshOptions: A }) => {
|
|
1981
|
+
const { formState: L, setValue: P, watch: k, control: Q } = Xe(), [O, N] = E(void 0), [D, W] = E(!1), [G, X] = E(!1), z = k(t) ?? null, Z = z === (a == null ? void 0 : a.id) ? a == null ? void 0 : a.name : k(`${t}-DropdownName`), ne = Y(() => z == null ? null : { id: z ?? null, name: Z ?? "" }, [z, Z]), re = S(() => {
|
|
1982
1982
|
const se = t.split(".");
|
|
1983
1983
|
let _e = L.errors;
|
|
1984
1984
|
se.forEach((Ne) => {
|
|
1985
1985
|
_e !== void 0 && (_e = _e[Ne]);
|
|
1986
1986
|
}), N(_e);
|
|
1987
|
-
}, [L, t]), V =
|
|
1987
|
+
}, [L, t]), V = S((se) => {
|
|
1988
1988
|
if ((se == null ? void 0 : se.id) === z)
|
|
1989
1989
|
return;
|
|
1990
1990
|
if (j && j(se), o && o.forEach((Ne) => P(Ne, null, { shouldDirty: !0, shouldValidate: G })), se === null) {
|
|
@@ -1999,10 +1999,10 @@ const du = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
|
|
|
1999
1999
|
shouldDirty: !0,
|
|
2000
2000
|
shouldValidate: G
|
|
2001
2001
|
}), P(`${t}-DropdownName`, se.name ?? "");
|
|
2002
|
-
}, [P, t, G, i, o, z, j]), F =
|
|
2003
|
-
|
|
2004
|
-
}, [V]), ee =
|
|
2005
|
-
|
|
2002
|
+
}, [P, t, G, i, o, z, j]), F = S((se) => {
|
|
2003
|
+
W(!1), V(se);
|
|
2004
|
+
}, [V]), ee = S(() => {
|
|
2005
|
+
W(!1);
|
|
2006
2006
|
}, []);
|
|
2007
2007
|
B(() => {
|
|
2008
2008
|
re();
|
|
@@ -2010,13 +2010,13 @@ const du = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
|
|
|
2010
2010
|
L.isSubmitted && X(!0);
|
|
2011
2011
|
}, [L]);
|
|
2012
2012
|
const ae = J(null), be = O !== void 0, Le = v !== void 0, ze = Le && ne !== null;
|
|
2013
|
-
return /* @__PURE__ */ n.jsx(n.Fragment, { children: /* @__PURE__ */ n.jsxs(e, { label: `${r}${c ? " *" : ""}`, hidden: l, withoutLabel: g, isInvalid: be, inputContainerClassName: _({ "luminus-dropdown-select-open": D }), hint: $, className:
|
|
2013
|
+
return /* @__PURE__ */ n.jsx(n.Fragment, { children: /* @__PURE__ */ n.jsxs(e, { label: `${r}${c ? " *" : ""}`, hidden: l, withoutLabel: g, isInvalid: be, inputContainerClassName: _({ "luminus-dropdown-select-open": D }), hint: $, className: C, children: [
|
|
2014
2014
|
/* @__PURE__ */ n.jsxs(Ds, { currentSelection: ne, selectedItemNavigateTo: v, children: [
|
|
2015
2015
|
b && (ne == null ? void 0 : ne.name) && /* @__PURE__ */ n.jsx(K, { variant: "caption", className: "d-flex justify-content-end mt-2 luminus-dropdown-selection-name", children: ne.name }),
|
|
2016
|
-
/* @__PURE__ */ n.jsx(
|
|
2016
|
+
/* @__PURE__ */ n.jsx(Dn, { control: Q, name: t, render: () => /* @__PURE__ */ n.jsx(pe.Select, { size: s, onMouseDown: (se) => {
|
|
2017
2017
|
se.currentTarget.focus(), se.preventDefault();
|
|
2018
2018
|
}, onClick: () => {
|
|
2019
|
-
!Le && !d &&
|
|
2019
|
+
!Le && !d && W(!0);
|
|
2020
2020
|
}, ref: ae, value: z ?? "", onChange: () => {
|
|
2021
2021
|
}, isInvalid: be, hidden: l, className: _("w-100", {
|
|
2022
2022
|
"luminus-dropdown-picker-disabled": d,
|
|
@@ -2024,7 +2024,7 @@ const du = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
|
|
|
2024
2024
|
}), children: /* @__PURE__ */ n.jsx("option", { value: z, children: b ? z : (Z == null ? void 0 : Z.length) > 0 ? Z : z }) }) }),
|
|
2025
2025
|
y || !d && Le ? /* @__PURE__ */ n.jsxs("div", { className: "custom-picker-button", children: [
|
|
2026
2026
|
!y && !d && Le && /* @__PURE__ */ n.jsx(te, { size: "sm", color: "secondary", onClick: (se) => {
|
|
2027
|
-
se.preventDefault(), se.stopPropagation(),
|
|
2027
|
+
se.preventDefault(), se.stopPropagation(), W(!0);
|
|
2028
2028
|
}, children: w ?? /* @__PURE__ */ n.jsx(Mr, {}) }),
|
|
2029
2029
|
y ?? null
|
|
2030
2030
|
] }) : null
|
|
@@ -2033,9 +2033,9 @@ const du = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
|
|
|
2033
2033
|
ae.current && /* @__PURE__ */ n.jsx(tn, { show: D, onCancel: ee, items: u, currentSelection: ne, onSelectionChange: F, onSearchQueryChange: m, texts: f, itemsNameWidth: p, additionalColumns: h, displayIdAsName: b, isLoading: x, disabled: d, inputRef: ae, archiveColumn: T, addNewOptionPath: R, refreshOptions: A })
|
|
2034
2034
|
] }) });
|
|
2035
2035
|
}, gu = ({ InputContainer: e = Ae, label: t, formField: r, hidden: s, required: a, placeholder: o, disabled: i, showClearIcon: c, resetsFields: l, multiple: d, accept: u, withoutLabel: m, hint: v, className: f }) => {
|
|
2036
|
-
const { watch: p, setValue: x, register: g, formState: h } = Xe(), [y, w] = E(!1), [b, j] = E(void 0),
|
|
2036
|
+
const { watch: p, setValue: x, register: g, formState: h } = Xe(), [y, w] = E(!1), [b, j] = E(void 0), C = S(() => {
|
|
2037
2037
|
x(r, "");
|
|
2038
|
-
}, [x, r]), T =
|
|
2038
|
+
}, [x, r]), T = S(() => {
|
|
2039
2039
|
const R = r.split(".");
|
|
2040
2040
|
let A = h.errors;
|
|
2041
2041
|
R.forEach((L) => {
|
|
@@ -2052,7 +2052,7 @@ const du = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
|
|
|
2052
2052
|
l && l.forEach((R) => x(R, null, { shouldDirty: !0, shouldValidate: y }));
|
|
2053
2053
|
}
|
|
2054
2054
|
}) }),
|
|
2055
|
-
c && p(r) && /* @__PURE__ */ n.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ n.jsx(te, { color: "secondary", size: "sm", onClick:
|
|
2055
|
+
c && p(r) && /* @__PURE__ */ n.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ n.jsx(te, { color: "secondary", size: "sm", onClick: C, children: /* @__PURE__ */ n.jsx(Pe, {}) }) }),
|
|
2056
2056
|
b && /* @__PURE__ */ n.jsx(lt, { message: b.message })
|
|
2057
2057
|
] });
|
|
2058
2058
|
}, pu = ({ children: e, onStorno: t, noSpacer: r }) => {
|
|
@@ -2061,13 +2061,13 @@ const du = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
|
|
|
2061
2061
|
o(Object.keys(s.dirtyFields).length > 0);
|
|
2062
2062
|
}, [s]), a ? /* @__PURE__ */ n.jsx(Po, { onStorno: t, noSpacer: r, children: e }) : null;
|
|
2063
2063
|
}, xu = ({ InputContainer: e = Ae, options: t, formField: r, label: s, size: a, resetsFields: o, isNumber: i, required: c, hidden: l, disabled: d, withoutLabel: u, noSortOptions: m, suffixIdToName: v, onSelect: f, className: p, appendCurrentSelectionWithName: x, hint: g, addNewOptionPath: h, refreshOptions: y }) => {
|
|
2064
|
-
const { texts: { customSelect: w } } = U(oe), { formState: b, setValue: j, watch:
|
|
2064
|
+
const { texts: { customSelect: w } } = U(oe), { formState: b, setValue: j, watch: C, control: T } = Xe(), [$, R] = E(void 0), [A, L] = E(!1), [P, k] = E(!1), [Q, O] = E(""), N = C(r), D = Y(() => t.find((F) => F.id === N) ?? null, [t, N]), W = S(() => {
|
|
2065
2065
|
const F = r.split(".");
|
|
2066
2066
|
let ee = b.errors;
|
|
2067
2067
|
F.forEach((ae) => {
|
|
2068
2068
|
ee !== void 0 && (ee = ee[ae]);
|
|
2069
2069
|
}), R(ee);
|
|
2070
|
-
}, [b, r]), G =
|
|
2070
|
+
}, [b, r]), G = S((F) => {
|
|
2071
2071
|
if ((F == null ? void 0 : F.id) === N)
|
|
2072
2072
|
return;
|
|
2073
2073
|
if (f && f(F), o && o.forEach((ae) => j(ae, null, { shouldDirty: !0, shouldValidate: P })), F === null) {
|
|
@@ -2082,17 +2082,17 @@ const du = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
|
|
|
2082
2082
|
shouldDirty: !0,
|
|
2083
2083
|
shouldValidate: P
|
|
2084
2084
|
});
|
|
2085
|
-
}, [j, r, i, o, N, P, f]), X =
|
|
2085
|
+
}, [j, r, i, o, N, P, f]), X = S((F) => {
|
|
2086
2086
|
L(!1), G(F);
|
|
2087
|
-
}, [G]), z =
|
|
2087
|
+
}, [G]), z = S((F) => {
|
|
2088
2088
|
O(F);
|
|
2089
2089
|
}, []);
|
|
2090
2090
|
B(() => {
|
|
2091
|
-
|
|
2092
|
-
}, [
|
|
2091
|
+
W();
|
|
2092
|
+
}, [W]), B(() => {
|
|
2093
2093
|
b.isSubmitted && k(!0);
|
|
2094
2094
|
}, [b]);
|
|
2095
|
-
const Z =
|
|
2095
|
+
const Z = S((F) => {
|
|
2096
2096
|
var ee;
|
|
2097
2097
|
return F === null ? "" : !F.name || F.name.length === 0 ? ((ee = F.id) == null ? void 0 : ee.toString()) ?? "" : v ? `${F.name} (${F.id})` : F.name;
|
|
2098
2098
|
}, [v]), ne = Y(() => {
|
|
@@ -2110,7 +2110,7 @@ const du = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
|
|
|
2110
2110
|
N
|
|
2111
2111
|
]), re = J(null), V = $ !== void 0;
|
|
2112
2112
|
return /* @__PURE__ */ n.jsx(n.Fragment, { children: /* @__PURE__ */ n.jsxs(e, { label: `${s}${c ? " *" : ""}`, hidden: l, withoutLabel: u, isInvalid: V, inputContainerClassName: _({ "luminus-dropdown-select-open": A }), hint: g, className: p, children: [
|
|
2113
|
-
/* @__PURE__ */ n.jsx(
|
|
2113
|
+
/* @__PURE__ */ n.jsx(Dn, { control: T, name: r, render: () => /* @__PURE__ */ n.jsx(pe.Select, { size: a, onMouseDown: (F) => {
|
|
2114
2114
|
F.currentTarget.focus(), F.preventDefault();
|
|
2115
2115
|
}, onClick: () => {
|
|
2116
2116
|
L(!0);
|
|
@@ -2120,19 +2120,19 @@ const du = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
|
|
|
2120
2120
|
re.current && /* @__PURE__ */ n.jsx(tn, { show: A, onCancel: () => L(!1), items: ne, currentSelection: D ?? null, onSelectionChange: X, onSearchQueryChange: z, texts: w, disabled: d, inputRef: re, autoHideSearch: !0, allItemsLength: t.length, addNewOptionPath: h, refreshOptions: y })
|
|
2121
2121
|
] }) });
|
|
2122
2122
|
}, vu = ({ InputContainer: e = Ae, formField: t, label: r, placeholder: s, size: a, resetsFields: o, showClearIcon: i, clearValue: c, required: l, hidden: d, disabled: u, withoutLabel: m, step: v, stepperStep: f = 1, className: p, min: x, max: g, onChange: h, hint: y }) => {
|
|
2123
|
-
const { register: w, formState: b, setValue: j, watch:
|
|
2124
|
-
j(N, bt(D, x, g),
|
|
2125
|
-
}, [g, x, j]), P =
|
|
2123
|
+
const { register: w, formState: b, setValue: j, watch: C } = Xe(), [T, $] = E(void 0), [R, A] = E(!1), L = S((N, D, W) => {
|
|
2124
|
+
j(N, bt(D, x, g), W);
|
|
2125
|
+
}, [g, x, j]), P = S(() => {
|
|
2126
2126
|
const N = c ?? null;
|
|
2127
2127
|
L(t, N !== null ? Number(N) : null, {
|
|
2128
2128
|
shouldDirty: !0,
|
|
2129
2129
|
shouldValidate: R
|
|
2130
2130
|
});
|
|
2131
|
-
}, [c, L, t, R]), k =
|
|
2131
|
+
}, [c, L, t, R]), k = S(() => {
|
|
2132
2132
|
const N = t.split(".");
|
|
2133
2133
|
let D = b.errors;
|
|
2134
|
-
N.forEach((
|
|
2135
|
-
D !== void 0 && (D = D[
|
|
2134
|
+
N.forEach((W) => {
|
|
2135
|
+
D !== void 0 && (D = D[W]);
|
|
2136
2136
|
}), $(D);
|
|
2137
2137
|
}, [b, t]);
|
|
2138
2138
|
B(() => {
|
|
@@ -2140,7 +2140,7 @@ const du = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
|
|
|
2140
2140
|
}, [k]), B(() => {
|
|
2141
2141
|
b.isSubmitted && A(!0);
|
|
2142
2142
|
}, [b]);
|
|
2143
|
-
const Q = T !== void 0, O =
|
|
2143
|
+
const Q = T !== void 0, O = C(t);
|
|
2144
2144
|
return /* @__PURE__ */ n.jsxs(e, { label: `${r}${l ? " *" : ""}`, hidden: d, withoutLabel: m, isInvalid: Q, hint: y, className: p, children: [
|
|
2145
2145
|
/* @__PURE__ */ n.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
|
|
2146
2146
|
/* @__PURE__ */ n.jsx(pe.Control, { type: "number", placeholder: s ?? r, size: a, ...w(t, {
|
|
@@ -2149,7 +2149,7 @@ const du = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
|
|
|
2149
2149
|
max: g,
|
|
2150
2150
|
onChange: (N) => {
|
|
2151
2151
|
var D;
|
|
2152
|
-
o && o.forEach((
|
|
2152
|
+
o && o.forEach((W) => j(W, null, { shouldDirty: !0, shouldValidate: R })), h && h((D = N.target) != null && D.value ? Number(N.target.value) ?? null : null);
|
|
2153
2153
|
}
|
|
2154
2154
|
}), isInvalid: Q, hidden: d, disabled: u, className: "w-100 luminus-numeric-stepper", step: v, min: x, max: g }),
|
|
2155
2155
|
/* @__PURE__ */ n.jsx("div", { className: "stepper-icon left", children: !u && /* @__PURE__ */ n.jsx(te, { size: "sm", onClick: (N) => {
|
|
@@ -2159,17 +2159,17 @@ const du = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
|
|
|
2159
2159
|
N.preventDefault(), N.stopPropagation(), L(t, ((O ? Number(O) : 0) + f).toString(), { shouldDirty: !0, shouldValidate: R });
|
|
2160
2160
|
}, children: /* @__PURE__ */ n.jsx(Br, {}) }) })
|
|
2161
2161
|
] }),
|
|
2162
|
-
i &&
|
|
2162
|
+
i && C(t) && /* @__PURE__ */ n.jsx("div", { className: "luminus-input-remove-icon", children: /* @__PURE__ */ n.jsx(te, { color: "secondary", size: "sm", onClick: P, children: /* @__PURE__ */ n.jsx(Pe, {}) }) }),
|
|
2163
2163
|
T && /* @__PURE__ */ n.jsx(lt, { message: T.message })
|
|
2164
2164
|
] });
|
|
2165
|
-
}, ju = ({ InputContainer: e = Ae, formField: t, label: r, placeholder: s, resetsFields: a, showClearIcon: o, clearValue: i, required: c, hidden: l, disabled: d, withoutLabel: u, step: m, size: v, CustomOnChangeComponent: f, noSelectOnFocus: p, className: x, decimalScale: g = 2, numberPrefix: h, numberSuffix: y, min: w, max: b, onChange: j, hint:
|
|
2166
|
-
const { formState: T, setValue: $, watch: R, control: A } = Xe(), [L, P] = E(void 0), [k, Q] = E(!1), O =
|
|
2165
|
+
}, ju = ({ InputContainer: e = Ae, formField: t, label: r, placeholder: s, resetsFields: a, showClearIcon: o, clearValue: i, required: c, hidden: l, disabled: d, withoutLabel: u, step: m, size: v, CustomOnChangeComponent: f, noSelectOnFocus: p, className: x, decimalScale: g = 2, numberPrefix: h, numberSuffix: y, min: w, max: b, onChange: j, hint: C }) => {
|
|
2166
|
+
const { formState: T, setValue: $, watch: R, control: A } = Xe(), [L, P] = E(void 0), [k, Q] = E(!1), O = S(() => {
|
|
2167
2167
|
const G = i ?? null;
|
|
2168
2168
|
$(t, G !== null ? Number(G) : null, {
|
|
2169
2169
|
shouldDirty: !0,
|
|
2170
2170
|
shouldValidate: k
|
|
2171
2171
|
});
|
|
2172
|
-
}, [i, $, t, k]), N =
|
|
2172
|
+
}, [i, $, t, k]), N = S(() => {
|
|
2173
2173
|
const G = t.split(".");
|
|
2174
2174
|
let X = T.errors;
|
|
2175
2175
|
G.forEach((z) => {
|
|
@@ -2185,10 +2185,10 @@ const du = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
|
|
|
2185
2185
|
B(() => {
|
|
2186
2186
|
b !== void 0 && D > b && $(t, b), w !== void 0 && D < w && $(t, w);
|
|
2187
2187
|
}, [t, D, b, w, $]);
|
|
2188
|
-
const
|
|
2189
|
-
return /* @__PURE__ */ n.jsxs(e, { label: `${r}${c ? " *" : ""}`, hidden: l, withoutLabel: u, isInvalid:
|
|
2188
|
+
const W = L !== void 0;
|
|
2189
|
+
return /* @__PURE__ */ n.jsxs(e, { label: `${r}${c ? " *" : ""}`, hidden: l, withoutLabel: u, isInvalid: W, hint: C, className: x, children: [
|
|
2190
2190
|
/* @__PURE__ */ n.jsxs("div", { className: "luminus-input-container position-relative w-100", children: [
|
|
2191
|
-
/* @__PURE__ */ n.jsx(
|
|
2191
|
+
/* @__PURE__ */ n.jsx(Dn, { control: A, name: t, render: ({ field: { ref: G, onChange: X, name: z, value: Z } }) => /* @__PURE__ */ n.jsx(Rn, { displayType: "input", thousandSeparator: " ", decimalSeparator: ",", decimalScale: g, prefix: h, suffix: y, defaultValue: "", name: z, value: Z ?? "", placeholder: s ?? r, onFocus: (ne) => {
|
|
2192
2192
|
!p && ne.target.select();
|
|
2193
2193
|
}, onChange: (ne) => {
|
|
2194
2194
|
var F, ee;
|
|
@@ -2197,7 +2197,7 @@ const du = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
|
|
|
2197
2197
|
const V = re == null || Number.isNaN(re) ? null : Number(re);
|
|
2198
2198
|
X(V), j && j(V);
|
|
2199
2199
|
}, hidden: l, disabled: d, className: _("form-control text-end w-100", {
|
|
2200
|
-
"is-invalid":
|
|
2200
|
+
"is-invalid": W
|
|
2201
2201
|
}, {
|
|
2202
2202
|
[`form-control-${v}`]: v
|
|
2203
2203
|
}), step: m, getInputRef: G, min: w, max: b }) }),
|
|
@@ -2219,31 +2219,31 @@ const du = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
|
|
|
2219
2219
|
] });
|
|
2220
2220
|
}, bi = "_divider_1e6rk_1", Ni = {
|
|
2221
2221
|
divider: bi
|
|
2222
|
-
}, As = ({ className: e }) => /* @__PURE__ */ n.jsx(Ca.Divider, { className: _("luminus-dropdown-divider", e, Ni.divider) }),
|
|
2222
|
+
}, As = ({ className: e }) => /* @__PURE__ */ n.jsx(Ca.Divider, { className: _("luminus-dropdown-divider", e, Ni.divider) }), Mn = ["slice", "options", "formats", "conditions"], lr = (e) => {
|
|
2223
2223
|
const t = e.current.flexmonster.getReport({ withDefaults: !0 });
|
|
2224
2224
|
if (typeof t == "string")
|
|
2225
2225
|
throw alert("report is string"), new Error("report is string");
|
|
2226
2226
|
const r = {};
|
|
2227
|
-
return
|
|
2227
|
+
return Mn.forEach((s) => {
|
|
2228
2228
|
r[s] = t[s];
|
|
2229
2229
|
}), JSON.stringify(r);
|
|
2230
2230
|
}, ki = (e) => {
|
|
2231
2231
|
if (e.settings) {
|
|
2232
2232
|
const t = JSON.parse(e.settings);
|
|
2233
|
-
return
|
|
2233
|
+
return Mn.forEach((r) => {
|
|
2234
2234
|
t[r] === void 0 && (t[r] = null);
|
|
2235
2235
|
}), t;
|
|
2236
2236
|
}
|
|
2237
2237
|
return {};
|
|
2238
2238
|
}, Si = (e) => {
|
|
2239
2239
|
const t = {};
|
|
2240
|
-
return
|
|
2240
|
+
return Mn.forEach((r) => {
|
|
2241
2241
|
t[r] = (e == null ? void 0 : e[r]) ?? void 0;
|
|
2242
2242
|
}), t;
|
|
2243
2243
|
}, cr = (e, t) => e.hierarchy && e.hierarchy.uniqueName === t, dr = (e) => !e.member && !e.isDrillThrough, ur = (e, t) => typeof e == "function" ? e(t) : e.replace(":id", t), Ci = ({ dataSource: e, settings: t, pivotRef: r, localization: s, licenseKey: a, hyperlinkColumn: o, enabled: i = !0 }) => {
|
|
2244
2244
|
const { texts: { reports: c } } = U(oe), [l, d] = E(!1), u = J(null), m = r ?? u, v = Y(() => ({
|
|
2245
2245
|
localization: s
|
|
2246
|
-
}), [s]), f =
|
|
2246
|
+
}), [s]), f = S((h) => {
|
|
2247
2247
|
delete h[0], delete h[1], delete h[2];
|
|
2248
2248
|
const y = [
|
|
2249
2249
|
{
|
|
@@ -2276,7 +2276,7 @@ const du = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
|
|
|
2276
2276
|
}, [e, i, l, m]), B(() => {
|
|
2277
2277
|
var h, y, w;
|
|
2278
2278
|
if (l && i) {
|
|
2279
|
-
const { options: b, conditions: j, formats:
|
|
2279
|
+
const { options: b, conditions: j, formats: C, slice: T, ...$ } = (h = m.current) == null ? void 0 : h.flexmonster.getReport();
|
|
2280
2280
|
if ($ === void 0 || typeof $ == "string")
|
|
2281
2281
|
return;
|
|
2282
2282
|
const R = Si(t);
|
|
@@ -2289,18 +2289,18 @@ const du = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
|
|
|
2289
2289
|
(w = m.current) == null || w.flexmonster.setReport(A), console.log("Refreshing flexmonster settings. New report: ", A);
|
|
2290
2290
|
}
|
|
2291
2291
|
}, [i, l, m, t]);
|
|
2292
|
-
const x =
|
|
2292
|
+
const x = S((h, y) => {
|
|
2293
2293
|
var R;
|
|
2294
2294
|
if (!o || !cr(y, o.idColumn) || dr(y))
|
|
2295
2295
|
return;
|
|
2296
2296
|
const w = (R = y.escapedLabel) == null ? void 0 : R.toString();
|
|
2297
2297
|
if (w === void 0)
|
|
2298
2298
|
return;
|
|
2299
|
-
const b = ur(o.url, w), j = "style='color: #00a45a; text-decoration: underline; cursor: pointer;'",
|
|
2299
|
+
const b = ur(o.url, w), j = "style='color: #00a45a; text-decoration: underline; cursor: pointer;'", C = y.type === "header" ? "onclick='event.stopImmediatePropagation()'" : "", T = y.isDrillThrough || y.type === "header" ? `href='${b}' target='_blank'` : "";
|
|
2300
2300
|
h.style && (h.style["z-index"] = 1);
|
|
2301
|
-
const $ = `<a ${T} ${j} ${
|
|
2301
|
+
const $ = `<a ${T} ${j} ${C}>${y.escapedLabel}</a>`;
|
|
2302
2302
|
h.text = $;
|
|
2303
|
-
}, [o]), g =
|
|
2303
|
+
}, [o]), g = S((h) => {
|
|
2304
2304
|
if (!o || !cr(h, o.idColumn) || dr(h))
|
|
2305
2305
|
return;
|
|
2306
2306
|
const y = ur(o.url, h.escapedLabel ?? "");
|
|
@@ -2324,7 +2324,7 @@ const du = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
|
|
|
2324
2324
|
}
|
|
2325
2325
|
) });
|
|
2326
2326
|
}, Ii = (e, t, r, s) => {
|
|
2327
|
-
const { texts: { reports: a } } = U(oe), { prompt: o } = Ia(), { confirm: i } = Qt(), c = Ze(), { user: l } = U(Lt), { startLoading: d, stopLoading: u } = U(Tt), { addNotification: m } = Vr(), v =
|
|
2327
|
+
const { texts: { reports: a } } = U(oe), { prompt: o } = Ia(), { confirm: i } = Qt(), c = Ze(), { user: l } = U(Lt), { startLoading: d, stopLoading: u } = U(Tt), { addNotification: m } = Vr(), v = S(async (h) => {
|
|
2328
2328
|
d("report-versionSavingAs");
|
|
2329
2329
|
try {
|
|
2330
2330
|
const y = await c.post("/reports/version", h);
|
|
@@ -2332,7 +2332,7 @@ const du = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
|
|
|
2332
2332
|
} finally {
|
|
2333
2333
|
u("report-versionSavingAs");
|
|
2334
2334
|
}
|
|
2335
|
-
}, [m, s, c, a.saveSuccessful, d, u]), f =
|
|
2335
|
+
}, [m, s, c, a.saveSuccessful, d, u]), f = S(async () => {
|
|
2336
2336
|
if (r === null) {
|
|
2337
2337
|
m("none open", "warning");
|
|
2338
2338
|
return;
|
|
@@ -2353,7 +2353,7 @@ const du = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
|
|
|
2353
2353
|
a.confirmOverwriteSave,
|
|
2354
2354
|
v,
|
|
2355
2355
|
r
|
|
2356
|
-
]), p =
|
|
2356
|
+
]), p = S(async () => {
|
|
2357
2357
|
const h = await o(a.enterName, { input: "input", required: !0 });
|
|
2358
2358
|
if (h === null)
|
|
2359
2359
|
return;
|
|
@@ -2363,7 +2363,7 @@ const du = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
|
|
|
2363
2363
|
name: h,
|
|
2364
2364
|
settings: y
|
|
2365
2365
|
});
|
|
2366
|
-
}, [t, o, e, a.enterName, v]), x =
|
|
2366
|
+
}, [t, o, e, a.enterName, v]), x = S(async () => {
|
|
2367
2367
|
d("report-versionSavingAs");
|
|
2368
2368
|
try {
|
|
2369
2369
|
await c.post("/reports/version", {
|
|
@@ -2382,7 +2382,7 @@ const du = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
|
|
|
2382
2382
|
r,
|
|
2383
2383
|
d,
|
|
2384
2384
|
u
|
|
2385
|
-
]), g =
|
|
2385
|
+
]), g = S(async () => {
|
|
2386
2386
|
d("report-versionSavingAs");
|
|
2387
2387
|
try {
|
|
2388
2388
|
await c.post("/reports/version-restrictions", {
|
|
@@ -2409,7 +2409,7 @@ const du = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
|
|
|
2409
2409
|
return { saveAs: p, save: f, archive: x, detach: g };
|
|
2410
2410
|
}, $i = (e) => {
|
|
2411
2411
|
const t = Ze(), { startLoading: r, stopLoading: s } = U(Tt);
|
|
2412
|
-
return { changeEmployeeRights:
|
|
2412
|
+
return { changeEmployeeRights: S(async (o, i) => {
|
|
2413
2413
|
let c = null;
|
|
2414
2414
|
r("reportSharing-addPerson");
|
|
2415
2415
|
try {
|
|
@@ -2428,17 +2428,17 @@ const du = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
|
|
|
2428
2428
|
return c;
|
|
2429
2429
|
}, [t, e, r, s]) };
|
|
2430
2430
|
}, Di = ({ isOpen: e, onHide: t, usersData: r, reportVersionId: s, EmployeePicker: a, setReportVersion: o }) => {
|
|
2431
|
-
const { ProjectIconComponent: i, texts: { reports: c } } = U(oe), { confirm: l } = Qt(), [d, u] = E(null), { changeEmployeeRights: m } = $i(s), v =
|
|
2431
|
+
const { ProjectIconComponent: i, texts: { reports: c } } = U(oe), { confirm: l } = Qt(), [d, u] = E(null), { changeEmployeeRights: m } = $i(s), v = S((x) => {
|
|
2432
2432
|
o((g) => g === null ? null : {
|
|
2433
2433
|
...g,
|
|
2434
2434
|
users: x.filter((h) => h.isReportOwner === !1)
|
|
2435
2435
|
});
|
|
2436
|
-
}, [o]), f =
|
|
2436
|
+
}, [o]), f = S(async () => {
|
|
2437
2437
|
if (d === null)
|
|
2438
2438
|
return;
|
|
2439
2439
|
const x = await m(d.id, !0);
|
|
2440
2440
|
v(x), u(null);
|
|
2441
|
-
}, [d, m, v]), p =
|
|
2441
|
+
}, [d, m, v]), p = S(async (x) => {
|
|
2442
2442
|
if (!await l(c.removeSharingWith(x)))
|
|
2443
2443
|
return;
|
|
2444
2444
|
const h = await m(x, !1);
|
|
@@ -2482,57 +2482,53 @@ const du = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
|
|
|
2482
2482
|
});
|
|
2483
2483
|
}, [t, e]), { mappings: r };
|
|
2484
2484
|
}, wu = ({ reportType: e, title: t, data: r, filterElements: s, getReportRoute: a, localization: o, licenseKey: i, EmployeePicker: c, localizationJsonFile: l, localizationTransformer: d, hyperlinkColumn: u }) => {
|
|
2485
|
-
const { texts: { reports: m } } = U(oe), { confirm: v } = Qt(), f = Kr(), [p] = ao(), { id: x } = oo(), g = Y(() => x === void 0 ? null : Number(x), [x]), h =
|
|
2485
|
+
const { texts: { reports: m } } = U(oe), { confirm: v } = Qt(), f = Kr(), [p] = ao(), { id: x } = oo(), g = Y(() => x === void 0 ? null : Number(x), [x]), h = S((V) => {
|
|
2486
2486
|
const F = V === null ? "" : V.toString();
|
|
2487
|
-
f(
|
|
2487
|
+
f(Wt(a(e), { id: F }) + "?" + p.toString(), {
|
|
2488
2488
|
replace: !0,
|
|
2489
2489
|
flushSync: !0
|
|
2490
2490
|
});
|
|
2491
|
-
}, [a, f, e, p]), [y, w] = E(!1), b = J(null), { user: j } = U(Lt), { data:
|
|
2492
|
-
if (S === null)
|
|
2493
|
-
return;
|
|
2491
|
+
}, [a, f, e, p]), [y, w] = E(!1), b = J(null), { user: j } = U(Lt), { data: C, reloadData: T } = It(`/reports/${e}`), { mappings: $ } = Li(l, d), [R, A] = E({}), L = S((V) => {
|
|
2494
2492
|
const F = V.target.value, ee = F === "" ? null : Number(F);
|
|
2495
2493
|
h(ee);
|
|
2496
|
-
}, [
|
|
2494
|
+
}, [h]), P = S(async (V) => {
|
|
2497
2495
|
await T(), h(V);
|
|
2498
2496
|
}, [T, h]), { data: k, setData: Q } = It(`/reports/version/${g}`, { enabled: g !== null, nullStateBeforeLoad: !1, nullStateOnFail: !0 });
|
|
2499
2497
|
B(() => {
|
|
2500
2498
|
var F;
|
|
2501
|
-
if (S === null)
|
|
2502
|
-
return;
|
|
2503
2499
|
if (k === null) {
|
|
2504
2500
|
A({});
|
|
2505
2501
|
return;
|
|
2506
2502
|
}
|
|
2507
2503
|
const V = ki(k) ?? {};
|
|
2508
2504
|
A(V), (F = b.current) == null || F.flexmonster.refresh();
|
|
2509
|
-
}, [
|
|
2510
|
-
const { save: O, saveAs: N, archive: D, detach:
|
|
2505
|
+
}, [k]);
|
|
2506
|
+
const { save: O, saveAs: N, archive: D, detach: W } = Ii(e, b, g, P), G = Y(() => ({
|
|
2511
2507
|
data: r ?? [],
|
|
2512
2508
|
mapping: $ ?? void 0
|
|
2513
|
-
}), [r, $]), X =
|
|
2509
|
+
}), [r, $]), X = S(async () => {
|
|
2514
2510
|
var F;
|
|
2515
2511
|
await v(m.confirmRevertChanges) && ((F = b.current) == null || F.flexmonster.setReport({ dataSource: G, ...R }));
|
|
2516
2512
|
}, [v, G, m.confirmRevertChanges, R]), z = Y(() => (k == null ? void 0 : k.ownerId) === j.personalNumber, [k == null ? void 0 : k.ownerId, j.personalNumber]), Z = Y(() => {
|
|
2517
2513
|
var V;
|
|
2518
2514
|
return (V = k == null ? void 0 : k.users) == null ? void 0 : V.some((F) => F.id === j.personalNumber && !F.isReportOwner);
|
|
2519
|
-
}, [k == null ? void 0 : k.users, j.personalNumber]), ne =
|
|
2515
|
+
}, [k == null ? void 0 : k.users, j.personalNumber]), ne = S(async () => {
|
|
2520
2516
|
await v(m.confirmDelete(k == null ? void 0 : k.name)) && (await D(), h(null), await T());
|
|
2521
|
-
}, [D, v, T, k == null ? void 0 : k.name, m, h]), re =
|
|
2522
|
-
await v(m.confirmDetach(k == null ? void 0 : k.name)) && (await
|
|
2523
|
-
}, [v,
|
|
2517
|
+
}, [D, v, T, k == null ? void 0 : k.name, m, h]), re = S(async () => {
|
|
2518
|
+
await v(m.confirmDetach(k == null ? void 0 : k.name)) && (await W(), h(null), await T());
|
|
2519
|
+
}, [v, W, T, k == null ? void 0 : k.name, m, h]);
|
|
2524
2520
|
return B(() => {
|
|
2525
2521
|
var V, F;
|
|
2526
|
-
g === null && h(((V =
|
|
2527
|
-
}, [
|
|
2522
|
+
g === null && h(((V = C == null ? void 0 : C.reportVersions.find((ee) => ee.isSystem === !0)) == null ? void 0 : V.reportVersionId) ?? ((F = C == null ? void 0 : C.reportVersions[0]) == null ? void 0 : F.reportVersionId) ?? null);
|
|
2523
|
+
}, [C == null ? void 0 : C.reportVersions, g, h]), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
2528
2524
|
/* @__PURE__ */ n.jsx(Pr, { variant: "fullScreen", title: /* @__PURE__ */ n.jsxs("div", { className: "d-flex justify-content-start gap-3", children: [
|
|
2529
2525
|
/* @__PURE__ */ n.jsx(K, { variant: "h3", children: t }),
|
|
2530
2526
|
s,
|
|
2531
2527
|
/* @__PURE__ */ n.jsxs("div", { className: "d-flex gap-1 align-items-center", children: [
|
|
2532
2528
|
/* @__PURE__ */ n.jsxs($a, { size: "sm", value: g ?? void 0, onChange: L, children: [
|
|
2533
|
-
/* @__PURE__ */ n.jsx("optgroup", { label: m.versionSelectSystem, children:
|
|
2534
|
-
/* @__PURE__ */ n.jsx("optgroup", { label: m.versionSelectYour, children:
|
|
2535
|
-
/* @__PURE__ */ n.jsx("optgroup", { label: m.versionSelectSharedWithYou, children:
|
|
2529
|
+
/* @__PURE__ */ n.jsx("optgroup", { label: m.versionSelectSystem, children: C == null ? void 0 : C.reportVersions.filter((V) => V.isSystem === !0).map((V) => /* @__PURE__ */ n.jsx("option", { value: V.reportVersionId, children: V.name }, V.reportVersionId)) }),
|
|
2530
|
+
/* @__PURE__ */ n.jsx("optgroup", { label: m.versionSelectYour, children: C == null ? void 0 : C.reportVersions.filter((V) => V.ownerId === j.personalNumber).map((V) => /* @__PURE__ */ n.jsx("option", { value: V.reportVersionId, children: V.name }, V.reportVersionId)) }),
|
|
2531
|
+
/* @__PURE__ */ n.jsx("optgroup", { label: m.versionSelectSharedWithYou, children: C == null ? void 0 : C.reportVersions.filter((V) => V.isSystem === !1 && V.ownerId !== j.personalNumber).map((V) => /* @__PURE__ */ n.jsx("option", { value: V.reportVersionId, children: `${V.name} [${V.ownerId}]` }, V.reportVersionId)) })
|
|
2536
2532
|
] }),
|
|
2537
2533
|
/* @__PURE__ */ n.jsx(Ve, { icon: /* @__PURE__ */ n.jsx(Da, {}), onClick: O, disabled: g === null || (k == null ? void 0 : k.isSystem) || !z, children: m.save }),
|
|
2538
2534
|
/* @__PURE__ */ n.jsx(Ve, { icon: /* @__PURE__ */ n.jsx(La, {}), onClick: N, className: "flex-shrink-0", children: m.saveAs }),
|
|
@@ -2602,23 +2598,23 @@ const du = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
|
|
|
2602
2598
|
] })
|
|
2603
2599
|
] }),
|
|
2604
2600
|
!t && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
2605
|
-
e.length === 0 && /* @__PURE__ */ n.jsx(
|
|
2601
|
+
e.length === 0 && /* @__PURE__ */ n.jsx(nn, { variant: "info", size: "sm", className: "mt-2", children: i.noMessages }),
|
|
2606
2602
|
/* @__PURE__ */ n.jsx("div", { className: "h-100 overflow-y-auto d-flex flex-column gap-2 luminus-thin-scrollbar", children: d.map((u) => /* @__PURE__ */ n.jsx(Fi, { message: u, onDeleteMessage: r, onClickMessage: s, getIcon: a, getLinksTo: o }, u.id)) })
|
|
2607
2603
|
] })
|
|
2608
2604
|
] });
|
|
2609
|
-
},
|
|
2605
|
+
}, un = {
|
|
2610
2606
|
apiGet: "/messageBoard",
|
|
2611
2607
|
apiDelete: "/messageBoard/"
|
|
2612
|
-
}, bu = ({ renderAsNotifPanel: e, notifIcon: t, apiUrls: { apiGet: r =
|
|
2613
|
-
const c = Ze(), [l, d] = E([]), [u, m] = E(!1), [v, f] = E(!1), [p, x] = E(!1), g =
|
|
2608
|
+
}, bu = ({ renderAsNotifPanel: e, notifIcon: t, apiUrls: { apiGet: r = un.apiGet, apiDelete: s = un.apiDelete } = un, getIcon: a, getLinksTo: o }) => {
|
|
2609
|
+
const c = Ze(), [l, d] = E([]), [u, m] = E(!1), [v, f] = E(!1), [p, x] = E(!1), g = S(async () => {
|
|
2614
2610
|
f(!0), await c.get(r).then(({ data: j }) => {
|
|
2615
2611
|
d(j), m(!0), f(!1);
|
|
2616
2612
|
}).catch(() => {
|
|
2617
2613
|
d([]), f(!1);
|
|
2618
2614
|
});
|
|
2619
|
-
}, [r, c]), h =
|
|
2620
|
-
h(j).then((
|
|
2621
|
-
|
|
2615
|
+
}, [r, c]), h = S(async (j) => c.delete(`${s}${j}`).then(() => !0).catch(() => !1), [s, c]), y = S((j) => {
|
|
2616
|
+
h(j).then((C) => {
|
|
2617
|
+
C && d(l.filter((T) => T.id !== j));
|
|
2622
2618
|
});
|
|
2623
2619
|
}, [h, l]);
|
|
2624
2620
|
B(() => {
|
|
@@ -2636,13 +2632,13 @@ const du = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
|
|
|
2636
2632
|
] }),
|
|
2637
2633
|
/* @__PURE__ */ n.jsx(er, { show: p, onHide: () => x(!1), placement: "end", children: /* @__PURE__ */ n.jsx(er.Body, { children: /* @__PURE__ */ n.jsx(mr, { messages: l, isLoading: b, onDeleteMessage: y, onClickMessage: () => x(!1), getIcon: a, getLinksTo: o }) }) })
|
|
2638
2634
|
] }) : /* @__PURE__ */ n.jsx(mr, { messages: l, isLoading: b, onDeleteMessage: y, getIcon: a, getLinksTo: o });
|
|
2639
|
-
}, Oi = "_tab-panel_d8l8q_1", Ri = "_full-height-no-overflow_d8l8q_5", Mi = "_disabled_d8l8q_12",
|
|
2635
|
+
}, Oi = "_tab-panel_d8l8q_1", Ri = "_full-height-no-overflow_d8l8q_5", Mi = "_disabled_d8l8q_12", fn = {
|
|
2640
2636
|
"tab-panel": "_tab-panel_d8l8q_1",
|
|
2641
2637
|
tabPanel: Oi,
|
|
2642
2638
|
"full-height-no-overflow": "_full-height-no-overflow_d8l8q_5",
|
|
2643
2639
|
fullHeightNoOverflow: Ri,
|
|
2644
2640
|
disabled: Mi
|
|
2645
|
-
}, Nu = ({ eventKey: e, activeTab: t, fullHeightNoOverflow: r, disabled: s, className: a, children: o }) => e !== t ? null : /* @__PURE__ */ n.jsx("div", { className: _("luminus-tab-panel",
|
|
2641
|
+
}, Nu = ({ eventKey: e, activeTab: t, fullHeightNoOverflow: r, disabled: s, className: a, children: o }) => e !== t ? null : /* @__PURE__ */ n.jsx("div", { className: _("luminus-tab-panel", fn.tabPanel, { [fn.fullHeightNoOverflow]: r }, { disabled: s }, { [fn.disabled]: s }, a), children: o }), Ai = "_join-line_1q9e8_1", Bi = {
|
|
2646
2642
|
"join-line": "_join-line_1q9e8_1",
|
|
2647
2643
|
joinLine: Ai
|
|
2648
2644
|
}, Vi = ({ activeTab: e, onSelect: t, children: r, vertical: s, verticalStepper: a }) => /* @__PURE__ */ n.jsx("div", { className: _("luminus-tabs d-flex mb-2", { "gap-1": !a }, { "gap-0": a }, {
|
|
@@ -2658,16 +2654,16 @@ const du = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
|
|
|
2658
2654
|
}, vertical: s || a, children: u }),
|
|
2659
2655
|
a && i < r.length - 1 && /* @__PURE__ */ n.jsx("div", { className: _("join-line", Bi.joinLine) })
|
|
2660
2656
|
] }, l.eventKey);
|
|
2661
|
-
}) }), Pi = "_tab_1tbi7_1", zi = "_disabled_1tbi7_7",
|
|
2657
|
+
}) }), Pi = "_tab_1tbi7_1", zi = "_disabled_1tbi7_7", Hi = "_vertical_1tbi7_13", mn = {
|
|
2662
2658
|
tab: Pi,
|
|
2663
2659
|
disabled: zi,
|
|
2664
|
-
vertical:
|
|
2665
|
-
},
|
|
2660
|
+
vertical: Hi
|
|
2661
|
+
}, Wi = ({ eventKey: e, className: t, onClick: r, disabled: s, vertical: a, children: o }) => /* @__PURE__ */ n.jsx("div", { role: "button", className: _("luminus-tab text-primary rounded", mn.tab, t, {
|
|
2666
2662
|
disabled: s
|
|
2667
|
-
}, { [
|
|
2663
|
+
}, { [mn.disabled]: s }, { vertical: a }, { [mn.vertical]: a }), onClick: () => r && !s && r(e), children: typeof o == "string" ? /* @__PURE__ */ n.jsx(K, { variant: a ? "body" : "h6", className: a ? "" : "text-primary", children: o }) : o }), ku = ({ tabs: e, activeTab: t, onSelect: r, ...s }) => {
|
|
2668
2664
|
var i;
|
|
2669
2665
|
const { ProjectIconComponent: a } = U(oe), { isMobile: o } = Zt();
|
|
2670
|
-
return o ? /* @__PURE__ */ n.jsx(ht, { toggle: /* @__PURE__ */ n.jsx(gt, { as: Et, text: ((i = e.find((c) => c.id === t)) == null ? void 0 : i.name) ?? "", icon: /* @__PURE__ */ n.jsx(a, { icon: "chevron-down" }) }), ...s, children: e.map((c) => /* @__PURE__ */ n.jsx(Ce, { onClick: () => r(c.id), children: c.name }, c.id)) }) : /* @__PURE__ */ n.jsx(Vi, { activeTab: t, onSelect: (c) => r(c), ...s, children: e.map((c) => /* @__PURE__ */ n.jsx(
|
|
2666
|
+
return o ? /* @__PURE__ */ n.jsx(ht, { toggle: /* @__PURE__ */ n.jsx(gt, { as: Et, text: ((i = e.find((c) => c.id === t)) == null ? void 0 : i.name) ?? "", icon: /* @__PURE__ */ n.jsx(a, { icon: "chevron-down" }) }), ...s, children: e.map((c) => /* @__PURE__ */ n.jsx(Ce, { onClick: () => r(c.id), children: c.name }, c.id)) }) : /* @__PURE__ */ n.jsx(Vi, { activeTab: t, onSelect: (c) => r(c), ...s, children: e.map((c) => /* @__PURE__ */ n.jsx(Wi, { eventKey: c.id, children: c.name }, c.id)) });
|
|
2671
2667
|
}, Ui = "_selection_1dtmm_1", Gi = "_selectionBg_1dtmm_10", Yi = "_selectionItemsContainer_1dtmm_18", Ki = "_selectionItems_1dtmm_18", Mt = {
|
|
2672
2668
|
selection: Ui,
|
|
2673
2669
|
selectionBg: Gi,
|
|
@@ -2685,16 +2681,16 @@ const du = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
|
|
|
2685
2681
|
] })
|
|
2686
2682
|
] });
|
|
2687
2683
|
}, Vs = () => {
|
|
2688
|
-
const e = U(
|
|
2684
|
+
const e = U(Hr);
|
|
2689
2685
|
if (e === void 0)
|
|
2690
2686
|
throw new Error("ShortcutLinksProvider not initilized. Probably tried to use useShortcutLinks outside ShortcutLinksProvider.");
|
|
2691
2687
|
return e;
|
|
2692
2688
|
}, qi = ({ shortcutLink: e, IconComponent: t, IconTypeArray: r, editShortcutLink: s }) => {
|
|
2693
2689
|
const { ProjectIconComponent: a } = U(oe), [o, i] = E(e.icon), [c, l] = E(e.name);
|
|
2694
2690
|
console.log(o, typeof o);
|
|
2695
|
-
const d = Y(() => !(o === e.icon && c === e.name), [o, c, e.icon, e.name]), u =
|
|
2691
|
+
const d = Y(() => !(o === e.icon && c === e.name), [o, c, e.icon, e.name]), u = S(() => {
|
|
2696
2692
|
i(e.icon), l(e.name);
|
|
2697
|
-
}, [e]), m =
|
|
2693
|
+
}, [e]), m = S(() => {
|
|
2698
2694
|
s({ ...e, icon: o, name: c });
|
|
2699
2695
|
}, [s, o, c, e]);
|
|
2700
2696
|
return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
@@ -2706,7 +2702,7 @@ const du = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
|
|
|
2706
2702
|
] }) })
|
|
2707
2703
|
] });
|
|
2708
2704
|
}, Qi = ({ shortcutLink: e, IconComponent: t, IconTypeArray: r, editShortcutLink: s, deleteShortcutLink: a }) => {
|
|
2709
|
-
const { ProjectIconComponent: o } = U(oe), i =
|
|
2705
|
+
const { ProjectIconComponent: o } = U(oe), i = S(() => {
|
|
2710
2706
|
a(e.id);
|
|
2711
2707
|
}, [a, e.id]);
|
|
2712
2708
|
return /* @__PURE__ */ n.jsx("tr", { className: "mb-3", children: /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
@@ -2719,7 +2715,7 @@ const du = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
|
|
|
2719
2715
|
] }) });
|
|
2720
2716
|
}, Su = ({ IconComponent: e, IconTypeArray: t }) => {
|
|
2721
2717
|
const { texts: r } = U(oe), { shortcutLinks: s, editShortcutLink: a, deleteShortcutLink: o } = Vs();
|
|
2722
|
-
return /* @__PURE__ */ n.jsxs(Vo, { title: r.shortcutLinks.shortcutLinksSetting, children: [
|
|
2718
|
+
return /* @__PURE__ */ n.jsx(n.Fragment, { children: s !== null && s.length > 0 ? /* @__PURE__ */ n.jsxs(Vo, { title: r.shortcutLinks.shortcutLinksSetting, children: [
|
|
2723
2719
|
/* @__PURE__ */ n.jsx("thead", { className: "fw-bold", children: /* @__PURE__ */ n.jsxs("tr", { children: [
|
|
2724
2720
|
/* @__PURE__ */ n.jsx("th", {}),
|
|
2725
2721
|
/* @__PURE__ */ n.jsx("th", { children: r.shortcutLinks.target }),
|
|
@@ -2728,8 +2724,8 @@ const du = ({ InputContainer: e = it, value: t, onChange: r, debounceMs: s, labe
|
|
|
2728
2724
|
/* @__PURE__ */ n.jsx("th", {})
|
|
2729
2725
|
] }) }),
|
|
2730
2726
|
/* @__PURE__ */ n.jsx("tbody", { children: s == null ? void 0 : s.map((i) => /* @__PURE__ */ n.jsx(Qi, { shortcutLink: i, IconComponent: e, IconTypeArray: t, editShortcutLink: a, deleteShortcutLink: o }, i.id)) })
|
|
2731
|
-
] });
|
|
2732
|
-
},
|
|
2727
|
+
] }) : /* @__PURE__ */ n.jsx(nn, { variant: "info", children: r.shortcutLinks.addLinksToEditThemHereInfo }) });
|
|
2728
|
+
}, bn = 4, Zi = "_linkButton_pnlvi_1", Ji = "_linkAddButton_pnlvi_31", Xi = "_createLinkRow_pnlvi_39", mt = {
|
|
2733
2729
|
linkButton: Zi,
|
|
2734
2730
|
linkAddButton: Ji,
|
|
2735
2731
|
createLinkRow: Xi
|
|
@@ -2752,7 +2748,7 @@ function tl(e, t, r) {
|
|
|
2752
2748
|
return c.current = l.current = null, o.current = A, d.current = u.current.apply(P, L);
|
|
2753
2749
|
}, j = function(A, L) {
|
|
2754
2750
|
f && cancelAnimationFrame(i.current), i.current = f ? requestAnimationFrame(A) : setTimeout(A, L);
|
|
2755
|
-
},
|
|
2751
|
+
}, C = function(A) {
|
|
2756
2752
|
if (!m.current) return !1;
|
|
2757
2753
|
var L = A - a.current;
|
|
2758
2754
|
return !a.current || L >= t || L < 0 || g && A - o.current >= y;
|
|
@@ -2760,14 +2756,14 @@ function tl(e, t, r) {
|
|
|
2760
2756
|
return i.current = null, x && c.current ? b(A) : (c.current = l.current = null, d.current);
|
|
2761
2757
|
}, $ = function A() {
|
|
2762
2758
|
var L = Date.now();
|
|
2763
|
-
if (
|
|
2759
|
+
if (C(L)) return T(L);
|
|
2764
2760
|
if (m.current) {
|
|
2765
2761
|
var P = t - (L - a.current), k = g ? Math.min(P, y - (L - o.current)) : P;
|
|
2766
2762
|
j(A, k);
|
|
2767
2763
|
}
|
|
2768
2764
|
}, R = function() {
|
|
2769
2765
|
if (v || h) {
|
|
2770
|
-
var A = Date.now(), L =
|
|
2766
|
+
var A = Date.now(), L = C(A);
|
|
2771
2767
|
if (c.current = [].slice.call(arguments), l.current = s, a.current = A, L) {
|
|
2772
2768
|
if (!i.current && m.current) return o.current = a.current, j($, t), p ? b(a.current) : d.current;
|
|
2773
2769
|
if (g) return j($, t), b(a.current);
|
|
@@ -2789,13 +2785,13 @@ function nl(e, t) {
|
|
|
2789
2785
|
return e === t;
|
|
2790
2786
|
}
|
|
2791
2787
|
function en(e, t, r) {
|
|
2792
|
-
var s = nl, a = J(e), o = E({})[1], i = tl(
|
|
2788
|
+
var s = nl, a = J(e), o = E({})[1], i = tl(S(function(l) {
|
|
2793
2789
|
a.current = l, o({});
|
|
2794
2790
|
}, [o]), t, r), c = J(e);
|
|
2795
2791
|
return s(c.current, e) || (i(e), c.current = e), [a.current, i];
|
|
2796
2792
|
}
|
|
2797
2793
|
const rl = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: s, IconComponent: a, IconTypeArray: o }) => {
|
|
2798
|
-
const i = io(), { texts: c } = U(oe), [l, d] = E("star-outline"), [u, m] = E(s ? document.title.replace(s, "") : document.title), v =
|
|
2794
|
+
const i = io(), { texts: c } = U(oe), [l, d] = E("star-outline"), [u, m] = E(s ? document.title.replace(s, "") : document.title), v = S(async () => {
|
|
2799
2795
|
await r({ icon: l, name: u, url: i.pathname + i.search }), e();
|
|
2800
2796
|
}, [e, r, l, i.pathname, i.search, u]), f = Y(() => i.pathname + i.search, [i.pathname, i.search]);
|
|
2801
2797
|
return /* @__PURE__ */ n.jsxs(Se, { show: t, onHide: e, size: "sm", children: [
|
|
@@ -2826,27 +2822,27 @@ const rl = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: s, IconC
|
|
|
2826
2822
|
(i || l) && /* @__PURE__ */ n.jsx(rl, { IconComponent: e, IconTypeArray: t, closeModal: () => c(!1), createLink: s, isOpen: i, pageTitlePrefix: r })
|
|
2827
2823
|
] });
|
|
2828
2824
|
}, Cu = ({ IconComponent: e, IconTypeArray: t, pageTitlePrefix: r }) => {
|
|
2829
|
-
const { shortcutLinks: s, createShortcutLink: a } = Vs(), o = Y(() => s !== null && s.length <
|
|
2825
|
+
const { shortcutLinks: s, createShortcutLink: a } = Vs(), o = Y(() => s !== null && s.length < bn, [s]);
|
|
2830
2826
|
return /* @__PURE__ */ n.jsx(n.Fragment, { children: /* @__PURE__ */ n.jsxs("div", { className: "d-flex gap-2", children: [
|
|
2831
|
-
s == null ? void 0 : s.slice(0,
|
|
2827
|
+
s == null ? void 0 : s.slice(0, bn).map((i, c) => i !== null ? /* @__PURE__ */ n.jsx(el, { shortcutLink: i, IconComponent: e }, c) : null),
|
|
2832
2828
|
o && /* @__PURE__ */ n.jsx(sl, { IconComponent: e, IconTypeArray: t, pageTitlePrefix: r, createLink: a })
|
|
2833
2829
|
] }) });
|
|
2834
2830
|
}, al = (e) => {
|
|
2835
|
-
const t = Ze(), { startLoading: r, stopLoading: s } = U(Tt), a =
|
|
2831
|
+
const t = Ze(), { startLoading: r, stopLoading: s } = U(Tt), a = S(async (c) => {
|
|
2836
2832
|
r("submit-createShortcutLink");
|
|
2837
2833
|
try {
|
|
2838
2834
|
await t.post(`/dynamicForms/insert?referenceId=${e}`, c);
|
|
2839
2835
|
} finally {
|
|
2840
2836
|
s("submit-createShortcutLink");
|
|
2841
2837
|
}
|
|
2842
|
-
}, [t, e, r, s]), o =
|
|
2838
|
+
}, [t, e, r, s]), o = S(async (c) => {
|
|
2843
2839
|
r("submit-updateShortcutLink");
|
|
2844
2840
|
try {
|
|
2845
2841
|
await t.post(`/dynamicForms/update?referenceId=${e}`, c);
|
|
2846
2842
|
} finally {
|
|
2847
2843
|
s("submit-updateShortcutLink");
|
|
2848
2844
|
}
|
|
2849
|
-
}, [t, e, r, s]), i =
|
|
2845
|
+
}, [t, e, r, s]), i = S(async (c) => {
|
|
2850
2846
|
r("delete-deleteShortcutLink");
|
|
2851
2847
|
try {
|
|
2852
2848
|
await t.delete(`/dynamicForms/delete?referenceId=${e}&pk=${c.toString()}`);
|
|
@@ -2864,19 +2860,19 @@ const rl = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: s, IconC
|
|
|
2864
2860
|
throw new Error("Tried to make operation on null shortcutLinks.");
|
|
2865
2861
|
return e;
|
|
2866
2862
|
}, Iu = ({ children: e, referenceId: t }) => {
|
|
2867
|
-
const { user: r } = U(Lt), s =
|
|
2863
|
+
const { user: r } = U(Lt), s = S((f) => f.map((p) => ({ id: p.id, icon: p.icon, name: p.name, url: p.url })), []), { data: a, reloadData: o } = It(`/dynamicForms/lookup-data-all?referenceId=${t}&employee=${r == null ? void 0 : r.personalNumber}`, {
|
|
2868
2864
|
silent: !0,
|
|
2869
2865
|
dataTransformer: s,
|
|
2870
2866
|
enabled: r !== null
|
|
2871
|
-
}), { create: i, update: c, remove: l } = al(t), d =
|
|
2867
|
+
}), { create: i, update: c, remove: l } = al(t), d = S(async (f) => {
|
|
2872
2868
|
const p = hr(r);
|
|
2873
|
-
if (ol(a).length >=
|
|
2869
|
+
if (ol(a).length >= bn)
|
|
2874
2870
|
throw new Error("Cannot add more shortcut links.");
|
|
2875
2871
|
await i({ ...f, employee: p.personalNumber }), await o();
|
|
2876
|
-
}, [i, o, a, r]), u =
|
|
2872
|
+
}, [i, o, a, r]), u = S(async (f) => {
|
|
2877
2873
|
const p = hr(r);
|
|
2878
2874
|
await c({ ...f, employee: p.personalNumber }), await o();
|
|
2879
|
-
}, [o, c, r]), m =
|
|
2875
|
+
}, [o, c, r]), m = S(async (f) => {
|
|
2880
2876
|
await l(f), await o();
|
|
2881
2877
|
}, [o, l]), v = Y(() => ({
|
|
2882
2878
|
shortcutLinks: a,
|
|
@@ -2884,7 +2880,7 @@ const rl = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: s, IconC
|
|
|
2884
2880
|
editShortcutLink: u,
|
|
2885
2881
|
deleteShortcutLink: m
|
|
2886
2882
|
}), [d, m, u, a]);
|
|
2887
|
-
return /* @__PURE__ */ n.jsx(
|
|
2883
|
+
return /* @__PURE__ */ n.jsx(Hr.Provider, { value: v, children: e });
|
|
2888
2884
|
}, il = "_widgets-row_13gg1_1", ll = "_widget_13gg1_1", cl = "_widget-img_13gg1_5", dl = "_widget-title-spacer_13gg1_14", ul = "_widget-title_13gg1_14", fl = "_title_13gg1_28", $e = {
|
|
2889
2885
|
"widgets-row": "_widgets-row_13gg1_1",
|
|
2890
2886
|
widgetsRow: il,
|
|
@@ -2906,7 +2902,7 @@ const rl = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: s, IconC
|
|
|
2906
2902
|
return c(((m = u.target) == null ? void 0 : m.value) ?? "");
|
|
2907
2903
|
}, className: "me-3", style: { maxWidth: "200px" } })
|
|
2908
2904
|
] }),
|
|
2909
|
-
/* @__PURE__ */ n.jsx(Se.Body, { className: "flex-column gap-3", children: l.length === 0 ? /* @__PURE__ */ n.jsx(
|
|
2905
|
+
/* @__PURE__ */ n.jsx(Se.Body, { className: "flex-column gap-3", children: l.length === 0 ? /* @__PURE__ */ n.jsx(nn, { variant: "warning", children: o.noWidgets }) : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
2910
2906
|
d.map((u) => /* @__PURE__ */ n.jsx(Yt, { defaultOpen: !0, title: u.name ?? "", children: /* @__PURE__ */ n.jsx("div", { className: "p-1", children: /* @__PURE__ */ n.jsx("div", { className: _("row gx-3 gy-3", $e.widgetsRow), children: l.filter((m) => m.group === u.id).map((m) => /* @__PURE__ */ n.jsx("div", { className: "col col-4", children: /* @__PURE__ */ n.jsxs("div", { role: "button", className: _("p-0 pt-2 bg-white rounded shadow-sm", $e.widget), onClick: () => a(m.id), children: [
|
|
2911
2907
|
/* @__PURE__ */ n.jsx("div", { className: $e.widgetImg, style: {
|
|
2912
2908
|
backgroundImage: m.img ? `url(${m.img})` : void 0
|
|
@@ -2959,13 +2955,13 @@ const rl = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: s, IconC
|
|
|
2959
2955
|
const a = localStorage.getItem("dashboardConfig");
|
|
2960
2956
|
a ? r(JSON.parse(a)) : e && r(e);
|
|
2961
2957
|
}, [e]);
|
|
2962
|
-
const s =
|
|
2958
|
+
const s = S((a) => {
|
|
2963
2959
|
r(a), localStorage.setItem("dashboardConfig", JSON.stringify(a));
|
|
2964
2960
|
}, []);
|
|
2965
2961
|
return { dashboardConfig: t, onChangeDashboardConfig: s };
|
|
2966
2962
|
}, $u = ({ widgetGroups: e, availableWidgets: t, editMode: r, defaultDashboardConfig: s }) => {
|
|
2967
2963
|
var v;
|
|
2968
|
-
const { texts: { homeDashboard: a } } = U(oe), { dashboardConfig: o, onChangeDashboardConfig: i } = kl(s), c =
|
|
2964
|
+
const { texts: { homeDashboard: a } } = U(oe), { dashboardConfig: o, onChangeDashboardConfig: i } = kl(s), c = S((f, p) => {
|
|
2969
2965
|
var x, g;
|
|
2970
2966
|
f === ((x = o.widgets) == null ? void 0 : x.length) ? i({
|
|
2971
2967
|
...o,
|
|
@@ -2974,23 +2970,23 @@ const rl = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: s, IconC
|
|
|
2974
2970
|
...o,
|
|
2975
2971
|
widgets: ((g = o.widgets) == null ? void 0 : g.map((h, y) => y === f ? { widgetId: p, fullWidth: !1 } : h)) ?? []
|
|
2976
2972
|
});
|
|
2977
|
-
}, [o, i]), l =
|
|
2973
|
+
}, [o, i]), l = S((f) => {
|
|
2978
2974
|
var p, x;
|
|
2979
2975
|
((p = o.widgets[f]) == null ? void 0 : p.widgetId) === -1 ? i({
|
|
2980
2976
|
...o,
|
|
2981
2977
|
widgets: ((x = o.widgets) == null ? void 0 : x.filter((g, h) => h !== f)) ?? []
|
|
2982
2978
|
}) : c(f, -1);
|
|
2983
|
-
}, [o, i, c]), d =
|
|
2979
|
+
}, [o, i, c]), d = S((f) => {
|
|
2984
2980
|
var p;
|
|
2985
2981
|
i({
|
|
2986
2982
|
...o,
|
|
2987
2983
|
widgets: ((p = o.widgets) == null ? void 0 : p.map((x, g) => g === f ? { ...x, fullWidth: !x.fullWidth } : x)) ?? []
|
|
2988
2984
|
});
|
|
2989
|
-
}, [o, i]), u =
|
|
2985
|
+
}, [o, i]), u = S((f, p, x) => f ? /* @__PURE__ */ n.jsxs("div", { className: _(Me.widgetWrapper, {
|
|
2990
2986
|
[Me.widgetEdit]: r && f.id !== -1
|
|
2991
2987
|
}, { [Me.fullWidth]: x }), children: [
|
|
2992
2988
|
r && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
2993
|
-
/* @__PURE__ */ n.jsx(te, { color: "danger", onClick: () => l(p), className: _(Me.removeIcon), children: /* @__PURE__ */ n.jsx(
|
|
2989
|
+
/* @__PURE__ */ n.jsx(te, { color: "danger", onClick: () => l(p), className: _(Me.removeIcon), children: /* @__PURE__ */ n.jsx(Wr, {}) }),
|
|
2994
2990
|
/* @__PURE__ */ n.jsx(te, { color: x ? "danger" : "primary", onClick: () => d(p), className: _(Me.fullWidthIcon), children: /* @__PURE__ */ n.jsx(Ea, {}) })
|
|
2995
2991
|
] }),
|
|
2996
2992
|
f.id === -1 ? r && /* @__PURE__ */ n.jsx("div", { className: Me.widgetWrapper, children: /* @__PURE__ */ n.jsx(pr, { widgetGroups: e, availableWidgets: t, onAdd: (g) => c(p, g), texts: a }) }) : /* @__PURE__ */ n.jsx(Jo, { title: f.title, children: /* @__PURE__ */ n.jsx(f.WidgetElement, { title: f.title }) }),
|
|
@@ -3011,13 +3007,13 @@ const rl = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: s, IconC
|
|
|
3011
3007
|
return c((p = o.widgets) == null ? void 0 : p.length, f);
|
|
3012
3008
|
}, texts: a })
|
|
3013
3009
|
] }) });
|
|
3014
|
-
}, Sl = "_badge_193ci_1", Cl = "_sm_193ci_6", Il = "_md_193ci_10", $l = "_lg_193ci_14", Dl = "_light_193ci_18",
|
|
3010
|
+
}, Sl = "_badge_193ci_1", Cl = "_sm_193ci_6", Il = "_md_193ci_10", $l = "_lg_193ci_14", Dl = "_light_193ci_18", hn = {
|
|
3015
3011
|
badge: Sl,
|
|
3016
3012
|
sm: Cl,
|
|
3017
3013
|
md: Il,
|
|
3018
3014
|
lg: $l,
|
|
3019
3015
|
light: Dl
|
|
3020
|
-
}, Du = ({ children: e, color: t = "primary", size: r = "md", rounded: s, className: a, ...o }) => /* @__PURE__ */ n.jsx("span", { className: _(`luminus-badge badge bg-${t} ${a ?? ""}`, { "rounded-pill": s }, { "text-dark": t === "light" }, { [
|
|
3016
|
+
}, Du = ({ children: e, color: t = "primary", size: r = "md", rounded: s, className: a, ...o }) => /* @__PURE__ */ n.jsx("span", { className: _(`luminus-badge badge bg-${t} ${a ?? ""}`, { "rounded-pill": s }, { "text-dark": t === "light" }, { [hn.light]: t === "light" }, hn.badge, hn[r]), ...o, children: e }), Ll = "_collapse-icon_1ahhn_1", Tl = "_collapsed_1ahhn_6", xr = {
|
|
3021
3017
|
"collapse-icon": "_collapse-icon_1ahhn_1",
|
|
3022
3018
|
collapseIcon: Ll,
|
|
3023
3019
|
collapsed: Tl
|
|
@@ -3035,7 +3031,7 @@ const rl = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: s, IconC
|
|
|
3035
3031
|
/* @__PURE__ */ n.jsx(Xr, { in: c, children: /* @__PURE__ */ n.jsx("div", { children: t }) }),
|
|
3036
3032
|
/* @__PURE__ */ n.jsx("hr", { className: `my-0 ${c ? "mt-3" : ""}` })
|
|
3037
3033
|
] });
|
|
3038
|
-
}, El = "_wrapper_1kmlk_1", Fl = "_open_1kmlk_9", Ol = "_dropdown_1kmlk_13", Rl = "_search-input-container_1kmlk_19", Ml = "_search-input_1kmlk_19", Al = "_loading-container_1kmlk_25", Bl = "_items-container_1kmlk_32", Vl = "_header-row_1kmlk_38", Pl = "_item_1kmlk_32", zl = "_name_1kmlk_57",
|
|
3034
|
+
}, El = "_wrapper_1kmlk_1", Fl = "_open_1kmlk_9", Ol = "_dropdown_1kmlk_13", Rl = "_search-input-container_1kmlk_19", Ml = "_search-input_1kmlk_19", Al = "_loading-container_1kmlk_25", Bl = "_items-container_1kmlk_32", Vl = "_header-row_1kmlk_38", Pl = "_item_1kmlk_32", zl = "_name_1kmlk_57", Hl = "_column-item_1kmlk_62", Wl = "_icon_1kmlk_66", Ul = "_action-buttons-container_1kmlk_74", Gl = "_reverse_1kmlk_82", Yl = "_action-button_1kmlk_74", Kl = "_actions-dropdown_1kmlk_95", we = {
|
|
3039
3035
|
wrapper: El,
|
|
3040
3036
|
open: Fl,
|
|
3041
3037
|
dropdown: Ol,
|
|
@@ -3052,8 +3048,8 @@ const rl = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: s, IconC
|
|
|
3052
3048
|
item: Pl,
|
|
3053
3049
|
name: zl,
|
|
3054
3050
|
"column-item": "_column-item_1kmlk_62",
|
|
3055
|
-
columnItem:
|
|
3056
|
-
icon:
|
|
3051
|
+
columnItem: Hl,
|
|
3052
|
+
icon: Wl,
|
|
3057
3053
|
"action-buttons-container": "_action-buttons-container_1kmlk_74",
|
|
3058
3054
|
actionButtonsContainer: Ul,
|
|
3059
3055
|
reverse: Gl,
|
|
@@ -3063,7 +3059,7 @@ const rl = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: s, IconC
|
|
|
3063
3059
|
actionsDropdown: Kl
|
|
3064
3060
|
}, tn = ({ show: e, onCancel: t, items: r, currentSelection: s, onSelectionChange: a, onSearchQueryChange: o, texts: i, itemsNameWidth: c, additionalColumns: l, displayIdAsName: d = !1, autoHideSearch: u = !1, allItemsLength: m, disabled: v, isLoading: f = !1, inputRef: p, archiveColumn: x = "archive", addNewOptionPath: g, refreshOptions: h }) => {
|
|
3065
3061
|
var ct;
|
|
3066
|
-
const { texts: { customSelect: y } } = U(oe), w = J(null), b = J(null), j = J(null),
|
|
3062
|
+
const { texts: { customSelect: y } } = U(oe), w = J(null), b = J(null), j = J(null), C = J(null), T = J(null), [$, R] = E(""), [A] = en($, 500), [, L] = E(!1), { copyToClipboard: P } = co(), k = (ct = p.current) == null ? void 0 : ct.getBoundingClientRect(), Q = (k == null ? void 0 : k.x) ?? 0, O = ((k == null ? void 0 : k.x) ?? 0) + ((k == null ? void 0 : k.width) ?? 0), N = (k == null ? void 0 : k.y) ?? 0, D = ((k == null ? void 0 : k.y) ?? 0) + ((k == null ? void 0 : k.height) ?? 0), W = (k == null ? void 0 : k.width) ?? 0, G = (k == null ? void 0 : k.height) ?? 0, X = 5, z = Y(() => Q ? Q > window.innerWidth / 2 : !1, [Q]), Z = Y(() => N ? N > window.innerHeight / 2 : !1, [N]);
|
|
3067
3063
|
B(() => {
|
|
3068
3064
|
var I;
|
|
3069
3065
|
e && ((I = j.current) == null || I.focus());
|
|
@@ -3076,27 +3072,27 @@ const rl = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: s, IconC
|
|
|
3076
3072
|
B(() => {
|
|
3077
3073
|
e && r.length > 0 ? re(0) : re(null);
|
|
3078
3074
|
}, [r, e]);
|
|
3079
|
-
const V = Y(() => ne !== null ? r.at(ne) ?? null : null, [ne, r]), F =
|
|
3075
|
+
const V = Y(() => ne !== null ? r.at(ne) ?? null : null, [ne, r]), F = S((I, M) => {
|
|
3080
3076
|
var le, ve;
|
|
3081
|
-
const
|
|
3082
|
-
if (
|
|
3083
|
-
const ce =
|
|
3084
|
-
M === "down" ? (le =
|
|
3077
|
+
const H = document.getElementById(`item-${I}`);
|
|
3078
|
+
if (H) {
|
|
3079
|
+
const ce = H.clientHeight ?? 0;
|
|
3080
|
+
M === "down" ? (le = C.current) == null || le.scrollBy({
|
|
3085
3081
|
left: 0,
|
|
3086
3082
|
top: ce,
|
|
3087
3083
|
behavior: "smooth"
|
|
3088
|
-
}) : (ve =
|
|
3084
|
+
}) : (ve = C.current) == null || ve.scrollBy({
|
|
3089
3085
|
left: 0,
|
|
3090
3086
|
top: -ce,
|
|
3091
3087
|
behavior: "smooth"
|
|
3092
3088
|
});
|
|
3093
3089
|
}
|
|
3094
|
-
}, []), ee =
|
|
3090
|
+
}, []), ee = S((I) => {
|
|
3095
3091
|
if (ne === null || v)
|
|
3096
3092
|
return;
|
|
3097
3093
|
const M = ne + I;
|
|
3098
|
-
M < 0 || M >= r.length || re((
|
|
3099
|
-
}, [ne, r, v, F]), ae =
|
|
3094
|
+
M < 0 || M >= r.length || re((H) => (H !== null && F(H, I > 0 ? "down" : "up"), M));
|
|
3095
|
+
}, [ne, r, v, F]), ae = S((I) => {
|
|
3100
3096
|
if (e)
|
|
3101
3097
|
switch (I.key) {
|
|
3102
3098
|
case "Escape":
|
|
@@ -3112,7 +3108,7 @@ const rl = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: s, IconC
|
|
|
3112
3108
|
I.stopPropagation(), I.preventDefault(), ee(1);
|
|
3113
3109
|
break;
|
|
3114
3110
|
}
|
|
3115
|
-
}, [t, e, ee, V, v, a]), be =
|
|
3111
|
+
}, [t, e, ee, V, v, a]), be = S(() => {
|
|
3116
3112
|
L((I) => !I);
|
|
3117
3113
|
}, []);
|
|
3118
3114
|
B(() => (window.addEventListener("scroll", be), () => {
|
|
@@ -3120,16 +3116,16 @@ const rl = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: s, IconC
|
|
|
3120
3116
|
}), [be]), B(() => (window.addEventListener("resize", be), () => {
|
|
3121
3117
|
window.removeEventListener("resize", be);
|
|
3122
3118
|
}), [be]), Qr(ae), qr([w, b, T], t);
|
|
3123
|
-
const Le = c ?? (l && l.length > 0 ? 250 : 0), ze = (l == null ? void 0 : l.reduce((I, M) => I + (M.width ?? 100), 0)) ?? 0, se = `calc(max(${
|
|
3119
|
+
const Le = c ?? (l && l.length > 0 ? 250 : 0), ze = (l == null ? void 0 : l.reduce((I, M) => I + (M.width ?? 100), 0)) ?? 0, se = `calc(max(${W}px, ${Le}px + ${ze}px))`, _e = Y(() => (s && e && !v) ?? !1, [s, e, v]), Ne = Y(() => (s && e) ?? !1, [s, e]), et = Y(() => e && (Ne || g !== void 0 || h !== void 0), [e, Ne, g, h]);
|
|
3124
3120
|
return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
3125
|
-
/* @__PURE__ */ n.jsx(
|
|
3121
|
+
/* @__PURE__ */ n.jsx(Ws, { show: e, onClick: t }),
|
|
3126
3122
|
/* @__PURE__ */ n.jsxs("div", { className: _("luminus-dropdown-picker-actions", we.actionButtonsContainer, {
|
|
3127
3123
|
[we.reverse]: z
|
|
3128
3124
|
}), style: {
|
|
3129
3125
|
top: `calc(${N}px + ${G / 2}px - 12px)`,
|
|
3130
3126
|
left: z ? _e && Ne ? `calc(${Q}px - 24px - 8px - 24px - 4px)` : `calc(${Q}px - 24px - 8px)` : `calc(${O}px + 8px)`
|
|
3131
3127
|
}, children: [
|
|
3132
|
-
_e && /* @__PURE__ */ n.jsx("button", { ref: b, type: "button", className: _("luminus-dropdown-picker-clear-button", we.actionButton), onClick: () => !v && a(null), children: /* @__PURE__ */ n.jsx(K, { variant: "caption", className: "text-danger", children: /* @__PURE__ */ n.jsx(
|
|
3128
|
+
_e && /* @__PURE__ */ n.jsx("button", { ref: b, type: "button", className: _("luminus-dropdown-picker-clear-button", we.actionButton), onClick: () => !v && a(null), children: /* @__PURE__ */ n.jsx(K, { variant: "caption", className: "text-danger", children: /* @__PURE__ */ n.jsx(Wr, { size: 16 }) }) }),
|
|
3133
3129
|
et ? /* @__PURE__ */ n.jsx("div", { ref: T, children: /* @__PURE__ */ n.jsxs(ht, { toggle: /* @__PURE__ */ n.jsx(gt, { as: Et, className: _("luminus-dropdown-picker-actions-dropdown", we.actionsDropdown), icon: /* @__PURE__ */ n.jsx(K, { variant: "caption", className: "text-primary", children: /* @__PURE__ */ n.jsx(Fa, { size: 16 }) }) }), children: [
|
|
3134
3130
|
Ne ? /* @__PURE__ */ n.jsx(Ce, { icon: /* @__PURE__ */ n.jsx(Oa, {}), onClick: () => {
|
|
3135
3131
|
var I, M;
|
|
@@ -3157,7 +3153,7 @@ const rl = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: s, IconC
|
|
|
3157
3153
|
var M;
|
|
3158
3154
|
return R(((M = I.target) == null ? void 0 : M.value) ?? "");
|
|
3159
3155
|
} }) }),
|
|
3160
|
-
f ? /* @__PURE__ */ n.jsx("div", { className: we.loadingContainer, children: /* @__PURE__ */ n.jsx(
|
|
3156
|
+
f ? /* @__PURE__ */ n.jsx("div", { className: we.loadingContainer, children: /* @__PURE__ */ n.jsx(Fn, { animation: "border", variant: "primary" }) }) : r.length > 0 && /* @__PURE__ */ n.jsxs("div", { ref: C, className: _("items", we.itemsContainer), children: [
|
|
3161
3157
|
l && l.length > 0 && /* @__PURE__ */ n.jsxs("div", { className: _("header-row border-bottom", we.headerRow), children: [
|
|
3162
3158
|
/* @__PURE__ */ n.jsx("div", { className: we.name }),
|
|
3163
3159
|
l == null ? void 0 : l.filter((I) => I.key !== x).map((I) => /* @__PURE__ */ n.jsx("div", { className: we.columnItem, style: {
|
|
@@ -3174,11 +3170,11 @@ const rl = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: s, IconC
|
|
|
3174
3170
|
archive: I.additionalColumns ? I.additionalColumns[x] : !1
|
|
3175
3171
|
}), onClick: () => !v && a(I), onMouseEnter: () => re(M), children: [
|
|
3176
3172
|
/* @__PURE__ */ n.jsx("div", { className: we.name, children: /* @__PURE__ */ n.jsx(K, { variant: "body2", children: d ? I.id : I.name }) }),
|
|
3177
|
-
l == null ? void 0 : l.filter((
|
|
3178
|
-
width: `${
|
|
3179
|
-
minWidth: `${
|
|
3180
|
-
maxWidth: `${
|
|
3181
|
-
}, children: /* @__PURE__ */ n.jsx(K, { variant: "caption", className: _("text-muted"), children: I.additionalColumns && I.additionalColumns[
|
|
3173
|
+
l == null ? void 0 : l.filter((H) => H.key !== x).map((H) => /* @__PURE__ */ n.jsx("div", { className: we.columnItem, style: {
|
|
3174
|
+
width: `${H.width ?? 100}px`,
|
|
3175
|
+
minWidth: `${H.width ?? 100}px`,
|
|
3176
|
+
maxWidth: `${H.width ?? 100}px`
|
|
3177
|
+
}, children: /* @__PURE__ */ n.jsx(K, { variant: "caption", className: _("text-muted"), children: I.additionalColumns && I.additionalColumns[H.key] }) }, H.key))
|
|
3182
3178
|
] }, I.id))
|
|
3183
3179
|
] })
|
|
3184
3180
|
] }) }) })
|
|
@@ -3204,14 +3200,14 @@ const rl = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: s, IconC
|
|
|
3204
3200
|
header: ic,
|
|
3205
3201
|
item: lc
|
|
3206
3202
|
}, cc = ({ show: e, query: t, onCancel: r, groups: s, isLoading: a, searchTypes: o }) => {
|
|
3207
|
-
const { texts: { appSearch: i } } = U(oe), c = J(null), l =
|
|
3203
|
+
const { texts: { appSearch: i } } = U(oe), c = J(null), l = S((d) => {
|
|
3208
3204
|
var m;
|
|
3209
3205
|
const u = (m = o.find((v) => v.key === d.type)) == null ? void 0 : m.toPath;
|
|
3210
3206
|
return u ? `${u}/${d.searchKey}` : "/not-found";
|
|
3211
3207
|
}, [o]);
|
|
3212
3208
|
return qr([c], r), /* @__PURE__ */ n.jsx("div", { ref: c, className: _("luminus-app-search-dropdown shadow rounded", nt.dropdown, {
|
|
3213
3209
|
[nt.open]: e
|
|
3214
|
-
}), children: a ? /* @__PURE__ */ n.jsx("div", { className: nt.loadingContainer, children: /* @__PURE__ */ n.jsx(
|
|
3210
|
+
}), children: a ? /* @__PURE__ */ n.jsx("div", { className: nt.loadingContainer, children: /* @__PURE__ */ n.jsx(Fn, { animation: "border", variant: "primary" }) }) : /* @__PURE__ */ n.jsx("div", { className: nt.groupsContainer, children: s == null ? void 0 : s.map((d) => {
|
|
3215
3211
|
var u;
|
|
3216
3212
|
return /* @__PURE__ */ n.jsxs("div", { className: _(nt.group), children: [
|
|
3217
3213
|
/* @__PURE__ */ n.jsxs(Oe, { to: `/search?query=${t}&type=${d.key.category}`, className: _("group-header", nt.header), onClick: r, children: [
|
|
@@ -3240,7 +3236,7 @@ const rl = ({ closeModal: e, isOpen: t, createLink: r, pageTitlePrefix: s, IconC
|
|
|
3240
3236
|
] }, d.key.category);
|
|
3241
3237
|
}) }) });
|
|
3242
3238
|
}, dc = (e, t) => {
|
|
3243
|
-
const r = Ze(), [s, a] = E(!1), [o, i] = E([]), c = !e || !e.key, l =
|
|
3239
|
+
const r = Ze(), [s, a] = E(!1), [o, i] = E([]), c = !e || !e.key, l = S(() => {
|
|
3244
3240
|
if (t.length < 3) {
|
|
3245
3241
|
i([]);
|
|
3246
3242
|
return;
|
|
@@ -3355,8 +3351,8 @@ var zs = function(e) {
|
|
|
3355
3351
|
}]), t;
|
|
3356
3352
|
}(ke.Component);
|
|
3357
3353
|
zs.propTypes = {
|
|
3358
|
-
children:
|
|
3359
|
-
node:
|
|
3354
|
+
children: Ht.node.isRequired,
|
|
3355
|
+
node: Ht.any
|
|
3360
3356
|
};
|
|
3361
3357
|
var bc = /* @__PURE__ */ function() {
|
|
3362
3358
|
function e(t, r) {
|
|
@@ -3383,7 +3379,7 @@ function Sc(e, t) {
|
|
|
3383
3379
|
throw new TypeError("Super expression must either be null or a function, not " + typeof t);
|
|
3384
3380
|
e.prototype = Object.create(t && t.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);
|
|
3385
3381
|
}
|
|
3386
|
-
var
|
|
3382
|
+
var Hs = function(e) {
|
|
3387
3383
|
Sc(t, e);
|
|
3388
3384
|
function t() {
|
|
3389
3385
|
return Nc(this, t), kc(this, (t.__proto__ || Object.getPrototypeOf(t)).apply(this, arguments));
|
|
@@ -3417,12 +3413,12 @@ var Ws = function(e) {
|
|
|
3417
3413
|
}
|
|
3418
3414
|
}]), t;
|
|
3419
3415
|
}(ke.Component);
|
|
3420
|
-
|
|
3421
|
-
children:
|
|
3422
|
-
node:
|
|
3416
|
+
Hs.propTypes = {
|
|
3417
|
+
children: Ht.node.isRequired,
|
|
3418
|
+
node: Ht.any
|
|
3423
3419
|
};
|
|
3424
|
-
var
|
|
3425
|
-
Ut.createPortal ?
|
|
3420
|
+
var Nn = void 0;
|
|
3421
|
+
Ut.createPortal ? Nn = zs : Nn = Hs;
|
|
3426
3422
|
const Cc = "_lightbox_18t5m_1", Ic = "_show_18t5m_16", $c = "_header_18t5m_20", Dc = "_photo-actions_18t5m_26", Lc = "_photo-container_18t5m_31", Tc = "_photo_18t5m_26", Ec = "_nav-button_18t5m_41", Fc = "_photos-preview_18t5m_49", Oc = "_selected_18t5m_62", Rc = "_default-indicator_18t5m_66", De = {
|
|
3427
3423
|
lightbox: Cc,
|
|
3428
3424
|
show: Ic,
|
|
@@ -3442,7 +3438,7 @@ const Cc = "_lightbox_18t5m_1", Ic = "_show_18t5m_16", $c = "_header_18t5m_20",
|
|
|
3442
3438
|
}, Mc = "_backdrop_3huvf_1", Ac = "_show_3huvf_11", vr = {
|
|
3443
3439
|
backdrop: Mc,
|
|
3444
3440
|
show: Ac
|
|
3445
|
-
},
|
|
3441
|
+
}, Ws = ({ show: e, onClick: t }) => /* @__PURE__ */ n.jsx("div", { className: _("luminus-backdrop", vr.backdrop, {
|
|
3446
3442
|
[vr.show]: e
|
|
3447
3443
|
}), onClick: () => t && t() }), Us = ({ src: e, alt: t, baseUrl: r, customToken: s, placeholder: a, ...o }) => /* @__PURE__ */ n.jsx("img", { ...o, alt: t ?? "", src: e ?? a }), Bc = ({ show: e, onClose: t, photos: r, defaultIndex: s, uploadPhotosText: a, noPhotosText: o, onUploadPhotos: i, photoActions: c, baseUrl: l, customToken: d, placeholder: u, ImgComponent: m = Us }) => {
|
|
3448
3444
|
const v = J(null), [f, p] = E(s), x = r.at(f), g = f > 0, h = f < r.length - 1;
|
|
@@ -3451,7 +3447,7 @@ const Cc = "_lightbox_18t5m_1", Ic = "_show_18t5m_16", $c = "_header_18t5m_20",
|
|
|
3451
3447
|
}, [s, e]), B(() => {
|
|
3452
3448
|
f >= r.length && p(r.length - 1);
|
|
3453
3449
|
}, [r, f]);
|
|
3454
|
-
const y =
|
|
3450
|
+
const y = S((w) => {
|
|
3455
3451
|
switch (w.key) {
|
|
3456
3452
|
case "ArrowLeft":
|
|
3457
3453
|
w.stopPropagation(), g && p((b) => b - 1);
|
|
@@ -3464,8 +3460,8 @@ const Cc = "_lightbox_18t5m_1", Ic = "_show_18t5m_16", $c = "_header_18t5m_20",
|
|
|
3464
3460
|
break;
|
|
3465
3461
|
}
|
|
3466
3462
|
}, [h, g, t]);
|
|
3467
|
-
return Qr(y), /* @__PURE__ */ n.jsxs(
|
|
3468
|
-
/* @__PURE__ */ n.jsx(
|
|
3463
|
+
return Qr(y), /* @__PURE__ */ n.jsxs(Nn, { children: [
|
|
3464
|
+
/* @__PURE__ */ n.jsx(Ws, { show: e, onClick: t }),
|
|
3469
3465
|
/* @__PURE__ */ n.jsx("div", { ref: v, className: _("luminus-lightbox rounded shadow", De.lightbox, {
|
|
3470
3466
|
[De.show]: e
|
|
3471
3467
|
}), children: e && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
@@ -3474,23 +3470,23 @@ const Cc = "_lightbox_18t5m_1", Ic = "_show_18t5m_16", $c = "_header_18t5m_20",
|
|
|
3474
3470
|
i && /* @__PURE__ */ n.jsx($s, { accept: ".jpg,.jpeg,.png", onUpload: (w) => {
|
|
3475
3471
|
w.length > 0 && i(Array.from(w));
|
|
3476
3472
|
}, icon: /* @__PURE__ */ n.jsx(Gr, { style: { fontSize: 18 } }), multiple: !0, className: "me-3", children: a ?? null }),
|
|
3477
|
-
x && (c == null ? void 0 : c.map(({ label: w, onClick: b, ...j },
|
|
3473
|
+
x && (c == null ? void 0 : c.map(({ label: w, onClick: b, ...j }, C) => /* @__PURE__ */ n.jsx(
|
|
3478
3474
|
Ve,
|
|
3479
3475
|
{
|
|
3480
3476
|
onClick: () => b(x.id),
|
|
3481
3477
|
...j,
|
|
3482
3478
|
children: w
|
|
3483
3479
|
},
|
|
3484
|
-
`action-${
|
|
3480
|
+
`action-${C}`
|
|
3485
3481
|
)))
|
|
3486
3482
|
] }),
|
|
3487
3483
|
/* @__PURE__ */ n.jsx("div", { role: "button", onClick: t, children: /* @__PURE__ */ n.jsx(Pe, { style: { fontSize: "32px" } }) })
|
|
3488
3484
|
] }),
|
|
3489
3485
|
r.length === 0 && /* @__PURE__ */ n.jsx("div", { className: "w-100 h-100 d-flex align-items-center justify-content-center", children: /* @__PURE__ */ n.jsx(K, { variant: "body", children: o ?? "No photos available" }) }),
|
|
3490
3486
|
x && /* @__PURE__ */ n.jsxs("div", { className: De.photoContainer, children: [
|
|
3491
|
-
/* @__PURE__ */ n.jsx("div", { role: g ? "button" : void 0, className: _("align-items-start", De.navButton), onClick: () => g && p((w) => w - 1), children: g && /* @__PURE__ */ n.jsx(
|
|
3487
|
+
/* @__PURE__ */ n.jsx("div", { role: g ? "button" : void 0, className: _("align-items-start", De.navButton), onClick: () => g && p((w) => w - 1), children: g && /* @__PURE__ */ n.jsx(In, { style: { fontSize: "40px" } }) }),
|
|
3492
3488
|
/* @__PURE__ */ n.jsx(m, { src: x.lgSrc, alt: x.alt, className: _("rounded", De.photo), baseUrl: l, customToken: d, placeholder: u }),
|
|
3493
|
-
/* @__PURE__ */ n.jsx("div", { role: h ? "button" : void 0, className: _("align-items-end", De.navButton), onClick: () => h && p((w) => w + 1), children: h && /* @__PURE__ */ n.jsx(
|
|
3489
|
+
/* @__PURE__ */ n.jsx("div", { role: h ? "button" : void 0, className: _("align-items-end", De.navButton), onClick: () => h && p((w) => w + 1), children: h && /* @__PURE__ */ n.jsx($n, { style: { fontSize: "40px" } }) })
|
|
3494
3490
|
] }),
|
|
3495
3491
|
/* @__PURE__ */ n.jsx("div", { className: De.photosPreview, children: r.map((w, b) => /* @__PURE__ */ n.jsxs("div", { role: "button", onClick: () => p(b), className: "position-relative", children: [
|
|
3496
3492
|
/* @__PURE__ */ n.jsx(m, { role: b !== f ? "button" : void 0, src: w.smSrc, alt: w.alt, className: _("rounded", De.photo, {
|
|
@@ -3526,25 +3522,25 @@ const Cc = "_lightbox_18t5m_1", Ic = "_show_18t5m_16", $c = "_header_18t5m_20",
|
|
|
3526
3522
|
] });
|
|
3527
3523
|
}, Tu = ({ children: e }) => {
|
|
3528
3524
|
var l, d, u;
|
|
3529
|
-
const { useMsal: t, msalScopes: r, msalExtraScopes: s } = U(za), { isAuthenticated: a } =
|
|
3530
|
-
return t ? /* @__PURE__ */ n.jsx(so, { interactionType: ro.Redirect, authenticationRequest: { scopes: r, extraScopesToConsent: s }, children: i || !a() ? /* @__PURE__ */ n.jsx(
|
|
3531
|
-
},
|
|
3525
|
+
const { useMsal: t, msalScopes: r, msalExtraScopes: s } = U(za), { isAuthenticated: a } = Ha(), { userLoginState: o } = U(Lt), i = o.state === Wa.LOGGING_IN, c = o.user && ((l = o.user) == null ? void 0 : l.permissions) && ((u = (d = o.user) == null ? void 0 : d.permissions) == null ? void 0 : u.length) > 0;
|
|
3526
|
+
return t ? /* @__PURE__ */ n.jsx(so, { interactionType: ro.Redirect, authenticationRequest: { scopes: r, extraScopesToConsent: s }, children: i || !a() ? /* @__PURE__ */ n.jsx(Hn, {}) : o.user ? c ? /* @__PURE__ */ n.jsx(n.Fragment, { children: e }) : /* @__PURE__ */ n.jsx(Rt, { to: "/user-not-permitted", replace: !0 }) : /* @__PURE__ */ n.jsx(Rt, { to: "/no-user-login", replace: !0 }) }) : i ? /* @__PURE__ */ n.jsx(Hn, {}) : !a() || !o.user ? /* @__PURE__ */ n.jsx(Rt, { to: "/login", replace: !0 }) : c ? e : /* @__PURE__ */ n.jsx(Rt, { to: "/user-not-permitted", replace: !0 });
|
|
3527
|
+
}, nn = (e) => {
|
|
3532
3528
|
const { variant: t, children: r, className: s, size: a = "md", typographyVariant: o = a === "sm" ? "body2" : "body", ...i } = { ...e };
|
|
3533
3529
|
return /* @__PURE__ */ n.jsx(bo, { variant: t, className: `text-center ${a === "sm" ? "p-1" : a === "md" ? "p-3" : "p-4"} bg-${t} bg-opacity-10 border-none ${s ?? ""}`, ...i, children: /* @__PURE__ */ n.jsx(K, { variant: o, children: r }) });
|
|
3534
|
-
}, Pc = "_item_z9z4m_1", zc = "_level-success_z9z4m_4",
|
|
3530
|
+
}, Pc = "_item_z9z4m_1", zc = "_level-success_z9z4m_4", Hc = "_level-info_z9z4m_10", Wc = "_level-warning_z9z4m_16", Uc = "_level-danger_z9z4m_22", Gc = "_type-icon_z9z4m_28", gn = {
|
|
3535
3531
|
item: Pc,
|
|
3536
3532
|
"level-success": "_level-success_z9z4m_4",
|
|
3537
3533
|
levelSuccess: zc,
|
|
3538
3534
|
"level-info": "_level-info_z9z4m_10",
|
|
3539
|
-
levelInfo:
|
|
3535
|
+
levelInfo: Hc,
|
|
3540
3536
|
"level-warning": "_level-warning_z9z4m_16",
|
|
3541
|
-
levelWarning:
|
|
3537
|
+
levelWarning: Wc,
|
|
3542
3538
|
"level-danger": "_level-danger_z9z4m_22",
|
|
3543
3539
|
levelDanger: Uc,
|
|
3544
3540
|
"type-icon": "_type-icon_z9z4m_28",
|
|
3545
3541
|
typeIcon: Gc
|
|
3546
3542
|
}, Yc = ({ level: e, children: t, customIcon: r, noIcon: s }) => {
|
|
3547
|
-
const { ProjectIconComponent: a } = U(oe), o =
|
|
3543
|
+
const { ProjectIconComponent: a } = U(oe), o = S(() => {
|
|
3548
3544
|
switch (e) {
|
|
3549
3545
|
case "info":
|
|
3550
3546
|
return /* @__PURE__ */ n.jsx(a, { icon: "info" });
|
|
@@ -3556,8 +3552,8 @@ const Cc = "_lightbox_18t5m_1", Ic = "_show_18t5m_16", $c = "_header_18t5m_20",
|
|
|
3556
3552
|
return /* @__PURE__ */ n.jsx(a, { icon: "check" });
|
|
3557
3553
|
}
|
|
3558
3554
|
}, [a, e]);
|
|
3559
|
-
return /* @__PURE__ */ n.jsxs("div", { className: _("p-2 rounded d-flex gap-1 align-items-center justify-content-between", { "ps-1": !s },
|
|
3560
|
-
!s && /* @__PURE__ */ n.jsx("div", { className: _(
|
|
3555
|
+
return /* @__PURE__ */ n.jsxs("div", { className: _("p-2 rounded d-flex gap-1 align-items-center justify-content-between", { "ps-1": !s }, gn.item, gn[`level-${e}`]), children: [
|
|
3556
|
+
!s && /* @__PURE__ */ n.jsx("div", { className: _(gn.typeIcon), children: r ?? o() }),
|
|
3561
3557
|
/* @__PURE__ */ n.jsx(K, { variant: "body2", className: "w-100", children: t })
|
|
3562
3558
|
] });
|
|
3563
3559
|
}, Eu = ({ version: e }) => /* @__PURE__ */ n.jsx("div", { className: "rounded", style: {
|
|
@@ -3606,7 +3602,7 @@ const Cc = "_lightbox_18t5m_1", Ic = "_show_18t5m_16", $c = "_header_18t5m_20",
|
|
|
3606
3602
|
/* @__PURE__ */ n.jsx("div", { className: _("text-primary", st.stepIcon), children: t.icon ?? /* @__PURE__ */ n.jsx(Ua, {}) })
|
|
3607
3603
|
] }) })
|
|
3608
3604
|
] }, r)) }), sd = (e, t, r, s = !0) => {
|
|
3609
|
-
const a = Ze({ silent: s, differentBaseUrl: t, customToken: r }), [o, i] = E(!1), [c, l] = E(null), d =
|
|
3605
|
+
const a = Ze({ silent: s, differentBaseUrl: t, customToken: r }), [o, i] = E(!1), [c, l] = E(null), d = S(async (u) => {
|
|
3610
3606
|
i(!0), l(null), a.get(e, {
|
|
3611
3607
|
signal: u,
|
|
3612
3608
|
responseType: "blob"
|
|
@@ -3659,7 +3655,7 @@ const Cc = "_lightbox_18t5m_1", Ic = "_show_18t5m_16", $c = "_header_18t5m_20",
|
|
|
3659
3655
|
const r = new Date(e);
|
|
3660
3656
|
return Pt(r).to === t ? "M" : Nt(r).to === t ? "Y" : (console.log(Nt(r), t), "C");
|
|
3661
3657
|
}, dd = (e, t, r) => {
|
|
3662
|
-
const s =
|
|
3658
|
+
const s = S((i, c) => {
|
|
3663
3659
|
if (e === "C") {
|
|
3664
3660
|
r((l) => ({ ...l, [i]: c }));
|
|
3665
3661
|
return;
|
|
@@ -3684,7 +3680,7 @@ const Cc = "_lightbox_18t5m_1", Ic = "_show_18t5m_16", $c = "_header_18t5m_20",
|
|
|
3684
3680
|
t("C"), r((l) => ({ ...l, [i]: c }));
|
|
3685
3681
|
break;
|
|
3686
3682
|
}
|
|
3687
|
-
}, [e, r, t]), a =
|
|
3683
|
+
}, [e, r, t]), a = S((i) => {
|
|
3688
3684
|
r((c) => {
|
|
3689
3685
|
if (c.from === null || c.to === null)
|
|
3690
3686
|
return c;
|
|
@@ -3704,7 +3700,7 @@ const Cc = "_lightbox_18t5m_1", Ic = "_show_18t5m_16", $c = "_header_18t5m_20",
|
|
|
3704
3700
|
to: Ke(d.toISOString())
|
|
3705
3701
|
};
|
|
3706
3702
|
});
|
|
3707
|
-
}, [e, r]), o =
|
|
3703
|
+
}, [e, r]), o = S((i) => {
|
|
3708
3704
|
i === "D" ? r((c) => ({ from: c.from, to: c.from })) : i === "M" ? r((c) => {
|
|
3709
3705
|
if (c.from === null)
|
|
3710
3706
|
return c;
|
|
@@ -3739,13 +3735,13 @@ const Cc = "_lightbox_18t5m_1", Ic = "_show_18t5m_16", $c = "_header_18t5m_20",
|
|
|
3739
3735
|
}, children: /* @__PURE__ */ n.jsx(o, { icon: "chevron-right" }) })
|
|
3740
3736
|
] });
|
|
3741
3737
|
}, Ru = ({ defaultMonth: e, searchKey: t = "monthFrom", yearMin: r, yearMax: s }) => {
|
|
3742
|
-
const { localizationContext: a } = U(oe), { dateFnsLocale: o } = U(a), { searchParams: i, setSearch: c } = uo(), l = i.get(t), d = l ? Ct(l) : e, u =
|
|
3743
|
-
c(t,
|
|
3738
|
+
const { localizationContext: a } = U(oe), { dateFnsLocale: o } = U(a), { searchParams: i, setSearch: c } = uo(), l = i.get(t), d = l ? Ct(l) : e, u = S((m) => {
|
|
3739
|
+
c(t, yn(m, { representation: "date" }));
|
|
3744
3740
|
}, [t, c]);
|
|
3745
|
-
return /* @__PURE__ */ n.jsx(
|
|
3741
|
+
return /* @__PURE__ */ n.jsx(Ho, { month: d, onChangeMonth: u, locale: o, yearMin: r, yearMax: s });
|
|
3746
3742
|
}, Mu = ({ defaultYear: e, searchKey: t = "yearFrom", ...r }) => {
|
|
3747
|
-
const [s, a] = Zr(t,
|
|
3748
|
-
a(
|
|
3743
|
+
const [s, a] = Zr(t, yn(e, { representation: "date" })), o = s ? Ct(s) : e, i = S((c) => {
|
|
3744
|
+
a(yn(c, { representation: "date" }));
|
|
3749
3745
|
}, [a]);
|
|
3750
3746
|
return /* @__PURE__ */ n.jsx(Go, { year: o, onChangeYear: i, ...r });
|
|
3751
3747
|
}, Au = ({ data: e, showLegend: t = !1, legendPosition: r = "left", onClick: s }) => {
|
|
@@ -3873,7 +3869,7 @@ const Cc = "_lightbox_18t5m_1", Ic = "_show_18t5m_16", $c = "_header_18t5m_20",
|
|
|
3873
3869
|
}
|
|
3874
3870
|
}
|
|
3875
3871
|
}, kd = ({ schema: e, columns: t, setColumns: r, initialItem: s, onEdit: a, onDelete: o, customPickers: i }) => {
|
|
3876
|
-
const { ProjectIconComponent: c } = U(oe), [l, d] = E(s), u =
|
|
3872
|
+
const { ProjectIconComponent: c } = U(oe), [l, d] = E(s), u = S((f, p) => {
|
|
3877
3873
|
console.log("changeValue", f, p), d((x) => ({
|
|
3878
3874
|
...x,
|
|
3879
3875
|
[f]: {
|
|
@@ -3881,7 +3877,7 @@ const Cc = "_lightbox_18t5m_1", Ic = "_show_18t5m_16", $c = "_header_18t5m_20",
|
|
|
3881
3877
|
value: p
|
|
3882
3878
|
}
|
|
3883
3879
|
}));
|
|
3884
|
-
}, []), m = (f) => (f == null ? void 0 : f.value) !== (f == null ? void 0 : f.defaultValue), v =
|
|
3880
|
+
}, []), m = (f) => (f == null ? void 0 : f.value) !== (f == null ? void 0 : f.defaultValue), v = S(() => Object.keys(l).some((f) => m(l[f])), [l]);
|
|
3885
3881
|
return B(() => {
|
|
3886
3882
|
d(s);
|
|
3887
3883
|
}, [s]), /* @__PURE__ */ n.jsxs("tr", { className: _("table-row", me.tableRow), children: [
|
|
@@ -3895,7 +3891,7 @@ const Cc = "_lightbox_18t5m_1", Ic = "_show_18t5m_16", $c = "_header_18t5m_20",
|
|
|
3895
3891
|
/* @__PURE__ */ n.jsx("td", { className: _("table-cell", me.tableCell, me.stickyLast), children: /* @__PURE__ */ n.jsx(te, { color: "danger", onClick: () => o(l[e.primaryKey ?? ""].value), children: /* @__PURE__ */ n.jsx(c, { icon: "delete" }) }) })
|
|
3896
3892
|
] });
|
|
3897
3893
|
}, Sd = ({ schema: e, columns: t, setColumns: r, onCreate: s, customPickers: a }) => {
|
|
3898
|
-
const { ProjectIconComponent: o } = U(oe), [i, c] = E(null), l =
|
|
3894
|
+
const { ProjectIconComponent: o } = U(oe), [i, c] = E(null), l = S(() => {
|
|
3899
3895
|
var m;
|
|
3900
3896
|
const u = {};
|
|
3901
3897
|
(m = e.columns) == null || m.forEach((v) => {
|
|
@@ -3905,7 +3901,7 @@ const Cc = "_lightbox_18t5m_1", Ic = "_show_18t5m_16", $c = "_header_18t5m_20",
|
|
|
3905
3901
|
defaultValue: f
|
|
3906
3902
|
};
|
|
3907
3903
|
}), c(u);
|
|
3908
|
-
}, [e]), d =
|
|
3904
|
+
}, [e]), d = S((u, m) => {
|
|
3909
3905
|
c((v) => v && {
|
|
3910
3906
|
...v,
|
|
3911
3907
|
[u]: {
|
|
@@ -4031,15 +4027,15 @@ const Cc = "_lightbox_18t5m_1", Ic = "_show_18t5m_16", $c = "_header_18t5m_20",
|
|
|
4031
4027
|
apiExportGet: "/dynamicForms/export"
|
|
4032
4028
|
}, Bu = ({ id: e, page: t, setPage: r, filters: s, setFilter: a, sortByField: o, sortByType: i, setSortBy: c, appUrls: { appDetail: l = kr.appDetail } = kr, apiUrls: { apiSchemaGet: d = at.apiSchemaGet, apiDataGet: u = at.apiDataGet, apiItemPost: m = at.apiItemPost, apiItemDelete: v = at.apiItemDelete, apiItemCreate: f = at.apiItemCreate, apiExportGet: p = at.apiExportGet } = at, customPickers: x }) => {
|
|
4033
4029
|
var ce, de, Ie, Te, Ee, dt;
|
|
4034
|
-
const { texts: { dynamicForms: g }, ProjectIconComponent: h } = U(oe), y = Ze(), { startLoading: w, stopLoading: b } = U(Tt), [j,
|
|
4030
|
+
const { texts: { dynamicForms: g }, ProjectIconComponent: h } = U(oe), y = Ze(), { startLoading: w, stopLoading: b } = U(Tt), [j, C] = E(null), [T, $] = E(null), [R, A] = E(null), [L, P] = E(null), [k, Q] = E(!1), { addNotification: O } = Vr(), [N, D] = E([]), { confirm: W } = Qt(), G = 20, X = G + 1, z = L ? Math.ceil(L.length / G) : 1, Z = t ? t > 1 : !1, ne = t ? t < z : !1, re = t ? (t - 1) * G : 0, V = t ? t * G : G, F = Y(() => L ? L.length > X : !1, [L, X]), ee = Y(() => F ? (L == null ? void 0 : L.slice(re, V)) ?? null : L ?? null, [F, L, re, V]), [ae, be] = E(null);
|
|
4035
4031
|
B(() => {
|
|
4036
|
-
|
|
4032
|
+
C(null), $(null), Q(!1), D([]), be(null);
|
|
4037
4033
|
}, [e]);
|
|
4038
|
-
const Le =
|
|
4034
|
+
const Le = S(async () => {
|
|
4039
4035
|
w("dynamicFormSchema"), await y.get(`${d}?id=${e}`).then(({ data: q }) => {
|
|
4040
|
-
|
|
4036
|
+
C(q), b("dynamicFormSchema");
|
|
4041
4037
|
}).catch(() => b("dynamicFormSchema"));
|
|
4042
|
-
}, [y, e, w, b, d]), ze =
|
|
4038
|
+
}, [y, e, w, b, d]), ze = S(async () => {
|
|
4043
4039
|
var q;
|
|
4044
4040
|
if (!(j === null || ((q = j.id) == null ? void 0 : q.toString()) !== e)) {
|
|
4045
4041
|
if (j.masterReference && !ae) {
|
|
@@ -4057,22 +4053,22 @@ const Cc = "_lightbox_18t5m_1", Ic = "_show_18t5m_16", $c = "_header_18t5m_20",
|
|
|
4057
4053
|
$(ge), b("dynamicFormData");
|
|
4058
4054
|
}).catch(() => b("dynamicFormData"));
|
|
4059
4055
|
}
|
|
4060
|
-
}, [y, e, j, w, b, k, ae, u]), se =
|
|
4056
|
+
}, [y, e, j, w, b, k, ae, u]), se = S(async () => {
|
|
4061
4057
|
var q;
|
|
4062
4058
|
j === null || ((q = j.id) == null ? void 0 : q.toString()) !== e || j.masterReference && !ae || (w("dynamicFormExport"), await y.get(`${p}?id=${e}&showArchive=${k}${j.masterReference ? `&master=${ae}` : ""}`, {
|
|
4063
4059
|
responseType: "blob"
|
|
4064
4060
|
}).then((ue) => Qa(ue, { fallbackName: `export-${e}` })).finally(() => b("dynamicFormExport")));
|
|
4065
|
-
}, [y, e, j, w, b, k, ae, p]), _e =
|
|
4061
|
+
}, [y, e, j, w, b, k, ae, p]), _e = S(async (q) => (w("dynamicFormEdit"), y.post(`${m}?id=${e}`, q).then(() => (b("dynamicFormEdit"), D([]), !0)).catch((ue) => (b("dynamicFormEdit"), D(sn(ue)), !1))), [y, e, w, b, m]), Ne = S(async (q) => (w("dynamicFormDelete"), y.delete(`${v}?id=${e}&pk=${q}`).then(() => (b("dynamicFormDelete"), D([]), !0)).catch((ue) => (b("dynamicFormDelete"), D(sn(ue)), !1))), [y, e, w, b, v]), et = S(async (q) => (w("dynamicFormCreate"), y.post(`${f}?id=${e}`, q).then(({ data: ue }) => (b("dynamicFormCreate"), D([]), ue)).catch((ue) => (b("dynamicFormCreate"), D(sn(ue)), null))), [y, e, w, b, f]), ct = S(async (q) => {
|
|
4066
4062
|
j && await _e(j.masterReference ? { ...q, [j.masterReferenceColumn ?? ""]: ae } : q) && (O(g.editSuccess, "success"), $((ue) => ue && ue.map((ge) => {
|
|
4067
4063
|
var fe;
|
|
4068
4064
|
return ((fe = ge[(j == null ? void 0 : j.primaryKey) ?? ""]) == null ? void 0 : fe.value) === q[(j == null ? void 0 : j.primaryKey) ?? ""] ? br(q, j) : ge;
|
|
4069
4065
|
})));
|
|
4070
|
-
}, [O, _e, j, ae, g]), I =
|
|
4071
|
-
await
|
|
4066
|
+
}, [O, _e, j, ae, g]), I = S(async (q) => {
|
|
4067
|
+
await W(g.deleteConfirm) && await Ne(q) && (O(g.deleteSuccess, "success"), $((ue) => ue && ue.filter((ge) => {
|
|
4072
4068
|
var fe;
|
|
4073
4069
|
return ((fe = ge[(j == null ? void 0 : j.primaryKey) ?? ""]) == null ? void 0 : fe.value) !== q;
|
|
4074
4070
|
})));
|
|
4075
|
-
}, [O, Ne, g,
|
|
4071
|
+
}, [O, Ne, g, W, j]), M = S(async (q) => {
|
|
4076
4072
|
if (!j)
|
|
4077
4073
|
return !1;
|
|
4078
4074
|
const ue = await et(j.masterReference ? { ...q, [j.masterReferenceColumn ?? ""]: ae } : q);
|
|
@@ -4082,9 +4078,9 @@ const Cc = "_lightbox_18t5m_1", Ic = "_show_18t5m_16", $c = "_header_18t5m_20",
|
|
|
4082
4078
|
return ge[(j == null ? void 0 : j.primaryKey) ?? ""] = { value: ue, defaultValue: ue }, $((fe) => [...fe ?? [], ge]), !0;
|
|
4083
4079
|
}
|
|
4084
4080
|
return !1;
|
|
4085
|
-
}, [O, et, g, j, ae]),
|
|
4081
|
+
}, [O, et, g, j, ae]), H = (q) => {
|
|
4086
4082
|
q > z ? r(z) : q < 1 && r(1), r(q);
|
|
4087
|
-
}, le =
|
|
4083
|
+
}, le = S(() => {
|
|
4088
4084
|
if (!T || !j) {
|
|
4089
4085
|
A(null);
|
|
4090
4086
|
return;
|
|
@@ -4113,7 +4109,7 @@ const Cc = "_lightbox_18t5m_1", Ic = "_show_18t5m_16", $c = "_header_18t5m_20",
|
|
|
4113
4109
|
}
|
|
4114
4110
|
}));
|
|
4115
4111
|
A(q);
|
|
4116
|
-
}, [T, s, j]), ve =
|
|
4112
|
+
}, [T, s, j]), ve = S(() => {
|
|
4117
4113
|
if (!R || !j) {
|
|
4118
4114
|
P([]);
|
|
4119
4115
|
return;
|
|
@@ -4132,22 +4128,22 @@ const Cc = "_lightbox_18t5m_1", Ic = "_show_18t5m_16", $c = "_header_18t5m_20",
|
|
|
4132
4128
|
if (!fe)
|
|
4133
4129
|
return -1;
|
|
4134
4130
|
if (xe.values && xe.values.length > 0) {
|
|
4135
|
-
const Re = ((yt = xe.values.find((
|
|
4131
|
+
const Re = ((yt = xe.values.find((rn) => {
|
|
4136
4132
|
var wt;
|
|
4137
|
-
return ((wt =
|
|
4138
|
-
})) == null ? void 0 : yt.name) ?? "",
|
|
4133
|
+
return ((wt = rn.id) == null ? void 0 : wt.toString()) === ge;
|
|
4134
|
+
})) == null ? void 0 : yt.name) ?? "", He = ((Ot = xe.values.find((rn) => {
|
|
4139
4135
|
var wt;
|
|
4140
|
-
return ((wt =
|
|
4136
|
+
return ((wt = rn.id) == null ? void 0 : wt.toString()) === fe;
|
|
4141
4137
|
})) == null ? void 0 : Ot.name) ?? "";
|
|
4142
|
-
return i === "asc" ? Re.localeCompare(
|
|
4138
|
+
return i === "asc" ? Re.localeCompare(He) : He.localeCompare(Re);
|
|
4143
4139
|
}
|
|
4144
4140
|
if (ye === "NUM") {
|
|
4145
|
-
const Re = Number(ge),
|
|
4146
|
-
return i === "asc" ? Re -
|
|
4141
|
+
const Re = Number(ge), He = Number(fe);
|
|
4142
|
+
return i === "asc" ? Re - He : He - Re;
|
|
4147
4143
|
}
|
|
4148
4144
|
if (ye === "DT") {
|
|
4149
|
-
const Re = Ct(ge == null ? void 0 : ge.toString()).getTime(),
|
|
4150
|
-
return i === "asc" ? Re -
|
|
4145
|
+
const Re = Ct(ge == null ? void 0 : ge.toString()).getTime(), He = Ct(fe == null ? void 0 : fe.toString()).getTime();
|
|
4146
|
+
return i === "asc" ? Re - He : He - Re;
|
|
4151
4147
|
}
|
|
4152
4148
|
return i === "asc" ? ge.toString().localeCompare(fe.toString()) : fe.toString().localeCompare(ge.toString());
|
|
4153
4149
|
}));
|
|
@@ -4177,18 +4173,18 @@ const Cc = "_lightbox_18t5m_1", Ic = "_show_18t5m_16", $c = "_header_18t5m_20",
|
|
|
4177
4173
|
(j == null ? void 0 : j.masterReference) && /* @__PURE__ */ n.jsx("div", { className: "mb-3 d-flex", children: /* @__PURE__ */ n.jsx(Fd, { label: ((de = (ce = j.columns) == null ? void 0 : ce.find((q) => q.field === j.masterReferenceColumn)) == null ? void 0 : de.caption) ?? "", options: ((Te = (Ie = j.columns) == null ? void 0 : Ie.find((q) => q.field === j.masterReferenceColumn)) == null ? void 0 : Te.values) ?? [], master: ae, onChange: (q) => be(q) }) }),
|
|
4178
4174
|
(j == null ? void 0 : j.slaves) && j.slaves.length > 0 && /* @__PURE__ */ n.jsx("div", { className: "mb-3 d-flex align-items-center flex-start gap-1", children: j.slaves.map((q) => {
|
|
4179
4175
|
var ue;
|
|
4180
|
-
return /* @__PURE__ */ n.jsx(Ve, { as: "link", href: `${
|
|
4176
|
+
return /* @__PURE__ */ n.jsx(Ve, { as: "link", href: `${Wt(l, { id: (ue = q.id) == null ? void 0 : ue.toString() })}?type=dynamic-form`, children: q.name }, q.id);
|
|
4181
4177
|
}) }),
|
|
4182
|
-
j != null && j.masterReference && !ae ? /* @__PURE__ */ n.jsx(
|
|
4178
|
+
j != null && j.masterReference && !ae ? /* @__PURE__ */ n.jsx(nn, { variant: "warning", children: g.selectMaster(((dt = (Ee = j.columns) == null ? void 0 : Ee.find((q) => q.field === j.masterReferenceColumn)) == null ? void 0 : dt.caption) ?? "").toLowerCase() }) : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
4183
4179
|
j && N.length > 0 && /* @__PURE__ */ n.jsx("div", { className: "mb-2", children: /* @__PURE__ */ n.jsx(ud, { errors: N, schema: j }) }),
|
|
4184
4180
|
j && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
4185
4181
|
/* @__PURE__ */ n.jsx("div", { className: _("rounded border overflow-auto", Nr.tableContainer), children: /* @__PURE__ */ n.jsx(Ed, { schema: j, items: !F && L && (L == null ? void 0 : L.length) > X ? [] : (F ? ee : L) ?? [], onEditItem: ct, onDeleteItem: I, onCreateItem: M, filters: s, setFilter: a, sortByField: o, sortByType: i, setSortBy: c, selectedMaster: (ae == null ? void 0 : ae.toString()) ?? null, customPickers: x }) }),
|
|
4186
4182
|
F && t && /* @__PURE__ */ n.jsxs("div", { className: _(Nr.pagination, "d-flex align-items-center gap-3 p-1 border-bottom border-start border-end rounded"), children: [
|
|
4187
4183
|
/* @__PURE__ */ n.jsxs("div", { className: "d-flex align-items-center gap-1", children: [
|
|
4188
|
-
/* @__PURE__ */ n.jsx(te, { color: "primary", onClick: () =>
|
|
4189
|
-
/* @__PURE__ */ n.jsx(te, { color: "primary", onClick: () =>
|
|
4190
|
-
/* @__PURE__ */ n.jsx(te, { color: "primary", onClick: () =>
|
|
4191
|
-
/* @__PURE__ */ n.jsx(te, { color: "primary", onClick: () =>
|
|
4184
|
+
/* @__PURE__ */ n.jsx(te, { color: "primary", onClick: () => H(1), disabled: !Z, children: /* @__PURE__ */ n.jsx(h, { icon: "chevron-double-left" }) }),
|
|
4185
|
+
/* @__PURE__ */ n.jsx(te, { color: "primary", onClick: () => H(t - 1), disabled: !Z, children: /* @__PURE__ */ n.jsx(h, { icon: "chevron-left" }) }),
|
|
4186
|
+
/* @__PURE__ */ n.jsx(te, { color: "primary", onClick: () => H(t + 1), disabled: !ne, children: /* @__PURE__ */ n.jsx(h, { icon: "chevron-right" }) }),
|
|
4187
|
+
/* @__PURE__ */ n.jsx(te, { color: "primary", onClick: () => H(z), disabled: !ne, children: /* @__PURE__ */ n.jsx(h, { icon: "chevron-double-right" }) })
|
|
4192
4188
|
] }),
|
|
4193
4189
|
/* @__PURE__ */ n.jsxs(K, { variant: "body", children: [
|
|
4194
4190
|
g.tablePage,
|
|
@@ -4218,7 +4214,7 @@ const Cc = "_lightbox_18t5m_1", Ic = "_show_18t5m_16", $c = "_header_18t5m_20",
|
|
|
4218
4214
|
id: g.id,
|
|
4219
4215
|
name: g.name ?? "",
|
|
4220
4216
|
items: f.filter((h) => h.group === g.id)
|
|
4221
|
-
})).filter((g) => g.items.length > 0), [r, f]), x =
|
|
4217
|
+
})).filter((g) => g.items.length > 0), [r, f]), x = S(async () => {
|
|
4222
4218
|
l("dynamicForms"), await c.get(i).then(({ data: g }) => {
|
|
4223
4219
|
m(g), d("dynamicForms");
|
|
4224
4220
|
}).catch(() => d("dynamicForms"));
|
|
@@ -4227,10 +4223,10 @@ const Cc = "_lightbox_18t5m_1", Ic = "_show_18t5m_16", $c = "_header_18t5m_20",
|
|
|
4227
4223
|
!u && x();
|
|
4228
4224
|
}, [x, u]), f.length > 0 ? /* @__PURE__ */ n.jsx(n.Fragment, { children: /* @__PURE__ */ n.jsx("div", { className: "w-auto list-group forms-items overflow-x-hidden", children: p.map((g) => /* @__PURE__ */ n.jsx(Yt, { title: g.name, defaultOpen: !0, children: g.items.map((h) => {
|
|
4229
4225
|
var y, w, b, j;
|
|
4230
|
-
return a ? /* @__PURE__ */ n.jsxs(Oe, { to: `${
|
|
4226
|
+
return a ? /* @__PURE__ */ n.jsxs(Oe, { to: `${Wt(o, { id: (y = h.id) == null ? void 0 : y.toString() })}?type=${h.type}&search=${v ?? ""}`, className: `text-nowrap list-group-item list-group-item-action ${(e == null ? void 0 : e.toString()) === ((w = h.id) == null ? void 0 : w.toString()) ? "active" : ""}`, children: [
|
|
4231
4227
|
/* @__PURE__ */ n.jsx(K, { variant: "body", children: h.name }),
|
|
4232
4228
|
h.description && /* @__PURE__ */ n.jsx(K, { variant: "body2", className: "text-muted mt-2", children: h.description })
|
|
4233
|
-
] }, h.id) : /* @__PURE__ */ n.jsx(Rd, { item: h, children: /* @__PURE__ */ n.jsx(Oe, { to: `${
|
|
4229
|
+
] }, h.id) : /* @__PURE__ */ n.jsx(Rd, { item: h, children: /* @__PURE__ */ n.jsx(Oe, { to: `${Wt(o, { id: (b = h.id) == null ? void 0 : b.toString() })}?type=${h.type}&search=${v ?? ""}`, className: `text-nowrap list-group-item list-group-item-action ${(e == null ? void 0 : e.toString()) === ((j = h.id) == null ? void 0 : j.toString()) ? "active" : ""}`, children: /* @__PURE__ */ n.jsx(K, { variant: "body2", children: h.name }) }) }, h.id);
|
|
4234
4230
|
}) }, g.id)) }) }) : null;
|
|
4235
4231
|
}, Pu = ({ label: e, to: t, value: r }) => /* @__PURE__ */ n.jsxs(Ae, { label: e, children: [
|
|
4236
4232
|
/* @__PURE__ */ n.jsx("input", { disabled: !0, className: "form-control d-none" }),
|
|
@@ -4250,7 +4246,7 @@ const Cc = "_lightbox_18t5m_1", Ic = "_show_18t5m_16", $c = "_header_18t5m_20",
|
|
|
4250
4246
|
/* @__PURE__ */ n.jsx(Pn, {}),
|
|
4251
4247
|
/* @__PURE__ */ n.jsx("span", { children: "CZ" })
|
|
4252
4248
|
] }) });
|
|
4253
|
-
},
|
|
4249
|
+
}, Hu = ({ controlId: e, ...t }) => /* @__PURE__ */ n.jsx(pe.Group, { controlId: e, ...t }), Wu = ({ employeeId: e, alt: t, noPhotoImage: r, cafmApiUrl: s, showLargeInLightBox: a = !1 }) => {
|
|
4254
4250
|
const { user: o } = U(Lt), { photoPath: i, photoPathSm: c } = fo(e);
|
|
4255
4251
|
return /* @__PURE__ */ n.jsx(n.Fragment, { children: e && /* @__PURE__ */ n.jsx(n.Fragment, { children: a ? /* @__PURE__ */ n.jsx(Vc, { baseUrl: s, customToken: o.cafmToken ?? void 0, photos: [
|
|
4256
4252
|
{
|
|
@@ -4267,10 +4263,10 @@ const Cc = "_lightbox_18t5m_1", Ic = "_show_18t5m_16", $c = "_header_18t5m_20",
|
|
|
4267
4263
|
};
|
|
4268
4264
|
return /* @__PURE__ */ n.jsxs(Vt, { className: `${s}`, children: [
|
|
4269
4265
|
/* @__PURE__ */ n.jsx(pe.Control, { value: e, onChange: (o) => t(o.target.value) }),
|
|
4270
|
-
e && /* @__PURE__ */ n.jsx(
|
|
4271
|
-
/* @__PURE__ */ n.jsx(
|
|
4266
|
+
e && /* @__PURE__ */ n.jsx(jn, { onClick: () => a(""), variant: "link", className: "border text-muted", children: /* @__PURE__ */ n.jsx(Pe, {}) }),
|
|
4267
|
+
/* @__PURE__ */ n.jsx(jn, { onClick: () => r && r(e), variant: "link", className: "border", children: /* @__PURE__ */ n.jsx(Za, {}) })
|
|
4272
4268
|
] });
|
|
4273
|
-
}, Gu = ({ value: e, numberPrefix: t, numberSuffix: r, decimalScale: s = 2, fixedDecimalScale: a = !1, className: o }) => /* @__PURE__ */ n.jsx(
|
|
4269
|
+
}, Gu = ({ value: e, numberPrefix: t, numberSuffix: r, decimalScale: s = 2, fixedDecimalScale: a = !1, className: o }) => /* @__PURE__ */ n.jsx(Rn, { value: e, displayType: "text", thousandSeparator: " ", decimalScale: s, fixedDecimalScale: a, defaultValue: "", prefix: t, suffix: r, className: o, decimalSeparator: "," }), Yu = ({ data: e, keys: t, colors: r, tooltipLabel: s }) => /* @__PURE__ */ n.jsx(Ja, { data: e.map((a) => ({ name: a.name, ...a.values })), indexBy: "name", keys: t, margin: {
|
|
4274
4270
|
top: 20,
|
|
4275
4271
|
right: 50,
|
|
4276
4272
|
bottom: 30,
|
|
@@ -4291,7 +4287,7 @@ const Cc = "_lightbox_18t5m_1", Ic = "_show_18t5m_16", $c = "_header_18t5m_20",
|
|
|
4291
4287
|
modifiers: [["darker", 1.6]]
|
|
4292
4288
|
}, tooltipLabel: s }), Md = "_hrText_xxish_1", Ad = {
|
|
4293
4289
|
hrText: Md
|
|
4294
|
-
}, Bd = ({ text: e }) => /* @__PURE__ */ n.jsx("hr", { className: _(Ad.hrText), "data-content": e }), Vd = "_cards-group_1gvpy_1", Pd = "_group-title_1gvpy_1", zd = "_group-content_1gvpy_8",
|
|
4290
|
+
}, Bd = ({ text: e }) => /* @__PURE__ */ n.jsx("hr", { className: _(Ad.hrText), "data-content": e }), Vd = "_cards-group_1gvpy_1", Pd = "_group-title_1gvpy_1", zd = "_group-content_1gvpy_8", Hd = "_report-card_1gvpy_12", Wd = "_card-title-link_1gvpy_22", ut = {
|
|
4295
4291
|
"cards-group": "_cards-group_1gvpy_1",
|
|
4296
4292
|
cardsGroup: Vd,
|
|
4297
4293
|
"group-title": "_group-title_1gvpy_1",
|
|
@@ -4299,9 +4295,9 @@ const Cc = "_lightbox_18t5m_1", Ic = "_show_18t5m_16", $c = "_header_18t5m_20",
|
|
|
4299
4295
|
"group-content": "_group-content_1gvpy_8",
|
|
4300
4296
|
groupContent: zd,
|
|
4301
4297
|
"report-card": "_report-card_1gvpy_12",
|
|
4302
|
-
reportCard:
|
|
4298
|
+
reportCard: Hd,
|
|
4303
4299
|
"card-title-link": "_card-title-link_1gvpy_22",
|
|
4304
|
-
cardTitleLink:
|
|
4300
|
+
cardTitleLink: Wd
|
|
4305
4301
|
}, Ud = ({ reportsLastUsedGet: e, getReportRoute: t, getReportName: r }) => {
|
|
4306
4302
|
const { texts: { reports: s } } = U(oe), { data: a } = It(e);
|
|
4307
4303
|
return /* @__PURE__ */ n.jsx(n.Fragment, { children: /* @__PURE__ */ n.jsx(Yt, { defaultOpen: !0, title: s.index.lastUsedReports, children: /* @__PURE__ */ n.jsx(ys, { children: a && a.map((o) => o.versions.map((i) => /* @__PURE__ */ n.jsxs(Ft, { as: Oe, to: t(o, i.id), className: "p-1 px-2", action: !0, children: [
|
|
@@ -4311,11 +4307,11 @@ const Cc = "_lightbox_18t5m_1", Ic = "_show_18t5m_16", $c = "_header_18t5m_20",
|
|
|
4311
4307
|
/* @__PURE__ */ n.jsx(K, { variant: "caption", className: "text-end opacity-50", children: Yr(i.lastUsedDate) })
|
|
4312
4308
|
] })
|
|
4313
4309
|
] }))) }) }) });
|
|
4314
|
-
},
|
|
4310
|
+
}, pn = {
|
|
4315
4311
|
reportsGet: "/reports",
|
|
4316
4312
|
reportsLastUsedGet: "/reports/last-used"
|
|
4317
|
-
}, Ku = ({ groups: e, apiUrls: { reportsGet: t =
|
|
4318
|
-
const { texts: { reports: c } } = U(oe), [l, d] = E(""), [u] = en(l, 500), m =
|
|
4313
|
+
}, Ku = ({ groups: e, apiUrls: { reportsGet: t = pn.reportsGet, reportsLastUsedGet: r = pn.reportsLastUsedGet } = pn, getReportName: s, getReportDescription: a, getGroupTitle: o, getReportRoute: i }) => {
|
|
4314
|
+
const { texts: { reports: c } } = U(oe), [l, d] = E(""), [u] = en(l, 500), m = S((g) => g.map((h) => ({
|
|
4319
4315
|
...h,
|
|
4320
4316
|
groupId: !h.groupId || h.groupId === 0 || !e.some((y) => y === h.groupId) ? 999 : h.groupId
|
|
4321
4317
|
})), [e]), { data: v } = It(t, { dataTransformer: m }), f = Y(() => {
|
|
@@ -4356,13 +4352,13 @@ const Cc = "_lightbox_18t5m_1", Ic = "_show_18t5m_16", $c = "_header_18t5m_20",
|
|
|
4356
4352
|
] });
|
|
4357
4353
|
};
|
|
4358
4354
|
export {
|
|
4359
|
-
|
|
4355
|
+
nn as Alert,
|
|
4360
4356
|
Yc as AlertItem,
|
|
4361
4357
|
au as ApiFileDownloadButton,
|
|
4362
4358
|
Lu as AppSearch,
|
|
4363
4359
|
Tu as AuthTemplate,
|
|
4364
4360
|
zr as AvatarIcon,
|
|
4365
|
-
|
|
4361
|
+
Ws as Backdrop,
|
|
4366
4362
|
Du as Badge,
|
|
4367
4363
|
Yu as BarChart,
|
|
4368
4364
|
Ps as Card,
|
|
@@ -4378,7 +4374,7 @@ export {
|
|
|
4378
4374
|
iu as DropdownPicker,
|
|
4379
4375
|
gt as DropdownToggle,
|
|
4380
4376
|
Bu as DynamicForm,
|
|
4381
|
-
|
|
4377
|
+
Wu as EmployeeSmallPhoto,
|
|
4382
4378
|
qo as ErrorBoundary,
|
|
4383
4379
|
Ju as FileExtensionIcon,
|
|
4384
4380
|
ou as FileUploadButton,
|
|
@@ -4408,10 +4404,10 @@ export {
|
|
|
4408
4404
|
Us as ImgDirect,
|
|
4409
4405
|
lt as InvalidFeedback,
|
|
4410
4406
|
zu as LanguageSwitch,
|
|
4411
|
-
|
|
4407
|
+
Hn as Loading,
|
|
4412
4408
|
mo as LoadingBlock,
|
|
4413
4409
|
bu as MessageBoard,
|
|
4414
|
-
|
|
4410
|
+
Ho as MonthPicker,
|
|
4415
4411
|
Ru as MonthPickerSearchParams,
|
|
4416
4412
|
Fe as NoInputContainer,
|
|
4417
4413
|
Gu as NumericFormat,
|
|
@@ -4437,13 +4433,13 @@ export {
|
|
|
4437
4433
|
tn as SimplePicker,
|
|
4438
4434
|
Et as SimpleToggle,
|
|
4439
4435
|
Je as SimpleTooltip,
|
|
4440
|
-
|
|
4436
|
+
Wi as Tab,
|
|
4441
4437
|
Nu as TabPanel,
|
|
4442
4438
|
Vi as Tabs,
|
|
4443
4439
|
lu as TextAreaInput,
|
|
4444
4440
|
Qe as TextInput,
|
|
4445
4441
|
Fu as Timeline,
|
|
4446
|
-
|
|
4442
|
+
Hu as TypedFormGroup,
|
|
4447
4443
|
K as Typography,
|
|
4448
4444
|
sf as UserAvatarToggle,
|
|
4449
4445
|
_u as UserAvatarValueFormat,
|