@archbase/components 3.0.21 → 3.0.22
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/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as n, Fragment as ot, jsxs as b } from "react/jsx-runtime";
|
|
2
|
-
import { useMantineTheme as Mt, useMantineColorScheme as Lt, TextInput as at, Tooltip as je, ActionIcon as Ae, Checkbox as At, useInputProps as zo, CloseButton as Ur, Input as rt, Popover as Ct, ScrollArea as
|
|
2
|
+
import { useMantineTheme as Mt, useMantineColorScheme as Lt, TextInput as at, Tooltip as je, ActionIcon as Ae, Checkbox as At, useInputProps as zo, CloseButton as Ur, Input as rt, Popover as Ct, ScrollArea as Rt, useCombobox as Io, Combobox as or, ComboboxTarget as Ro, PillsInput as Li, Pill as $o, Loader as sn, ComboboxDropdown as Po, Group as Ie, Image as ii, Text as K, CheckIcon as qs, InputBase as Ys, Chip as Un, Flex as dt, Rating as No, Button as _e, rem as Ut, Avatar as Qs, JsonInput as Xs, Select as Tt, PasswordInput as Ks, Radio as Fi, Skeleton as Vo, Switch as Js, Card as Zs, ColorPicker as ea, Textarea as yn, MultiSelect as Mo, Stack as We, Box as ye, Paper as Qe, Space as br, UnstyledButton as ta, Progress as nn, Modal as Jt, Slider as Gn, px as Ir, Menu as pt, Center as mt, LoadingOverlay as Ot, Alert as vr, Accordion as sr, NumberInput as _r, useProps as ra, ColorInput as na, Badge as oi, Code as Lo, Anchor as ia, Tabs as $n, MantineProvider as oa, SegmentedControl as sa, ColorSwatch as Bi, CopyButton as aa, Pagination as la, Title as Nr, Drawer as ca, HoverCard as Pn } from "@mantine/core";
|
|
3
3
|
import { ActionIcon as tm, Badge as rm, Breadcrumbs as nm, Button as im, Fieldset as om, Loader as sm, Alert as am, Image as lm, NavLink as cm, Notification as dm, Pagination as um, Progress as hm, Text as fm, Title as pm } from "@mantine/core";
|
|
4
4
|
import { useForceUpdate as nt, useUncontrolled as on, useDidUpdate as da, useDebouncedValue as si, useDebouncedState as ua, useId as ha, useMediaQuery as Oi, useElementSize as Fo, useHotkeys as fa, useDisclosure as pa, useLocalStorage as Bo } from "@mantine/hooks";
|
|
5
5
|
import * as _i from "react";
|
|
6
6
|
import He, { useState as k, useRef as ue, useEffect as G, useCallback as T, forwardRef as ai, useContext as _t, memo as xr, useMemo as Ge, Fragment as ma, useLayoutEffect as ga, Component as ya, Children as qn, isValidElement as Yn, useImperativeHandle as ba } from "react";
|
|
7
7
|
import { DataSourceEventNames as q, useArchbaseDidUpdate as lt, useArchbaseV1V2Compatibility as Ze, ArchbaseDataSource as an, useArchbaseDataSourceListener as Oo } from "@archbase/data";
|
|
8
8
|
import { useValidationErrors as it, convertISOStringToDate as ln, useArchbaseTranslation as Xe, useArchbaseTheme as Zt, processErrorMessage as wa, isBase64 as Vr, formatStr as ar, ArchbaseObjectHelper as Bt, ArchbaseError as cn, isBase64Validate as Ca, useArchbaseSize as va, isLastElementOfArray as xa, useArchbaseBool as Ea, archbaseI18next as Xt, getPathDepthLevel as _o, setNestedObjectValue as ka, emit as tr, builder as Qt, EQ as jo, NEQ as Ho, GT as Qn, LT as Xn, GE as Wo, LE as Uo, OUT as Sa, IN as Aa, BT as ji, ArchbaseMasker as Da, useArchbaseAppContext as Ta } from "@archbase/core";
|
|
9
|
-
import { pickCalendarProps as za, useDatesContext as Ia, Calendar as
|
|
9
|
+
import { pickCalendarProps as za, useDatesContext as Ia, Calendar as Ra, HiddenDatesInput as $a, DateTimePicker as Pa, DatePickerInput as Hi, TimeInput as jr } from "@mantine/dates";
|
|
10
10
|
import xt from "dayjs";
|
|
11
11
|
import { IMaskInput as Go } from "react-imask";
|
|
12
12
|
import Wi, { uniqueId as Dt } from "lodash";
|
|
@@ -33,12 +33,12 @@ import Dl from "rehype-external-links";
|
|
|
33
33
|
import { useGridApiRef as Tl, DataGrid as zl } from "@mui/x-data-grid";
|
|
34
34
|
import { ptBR as Il } from "@mui/x-data-grid/locales";
|
|
35
35
|
import { saveAs as ts } from "file-saver";
|
|
36
|
-
import { utils as Br, write as
|
|
36
|
+
import { utils as Br, write as Rl } from "xlsx";
|
|
37
37
|
import { format as wt } from "date-fns";
|
|
38
38
|
import { jsPDF as Qi } from "jspdf";
|
|
39
39
|
import "jspdf-autotable";
|
|
40
40
|
import rs from "lodash/debounce";
|
|
41
|
-
import { t as
|
|
41
|
+
import { t as $l } from "i18next";
|
|
42
42
|
import { useNavigate as Pl } from "react-router";
|
|
43
43
|
import { createSearchParams as Nl } from "react-router-dom";
|
|
44
44
|
import { useEventListener as Vl, useIsomorphicLayoutEffect as Ml } from "usehooks-ts";
|
|
@@ -72,7 +72,7 @@ function pf({
|
|
|
72
72
|
minLength: H,
|
|
73
73
|
maxLength: W
|
|
74
74
|
}) {
|
|
75
|
-
const [z, A] = k(p || ""),
|
|
75
|
+
const [z, A] = k(p || ""), R = ue(null), U = Mt(), { colorScheme: v } = Lt(), [P, M] = k(c), O = nt(), I = it(), x = `${t}`, _ = I?.getError(x), S = e && ("appendToFieldArray" in e || "updateFieldArrayItem" in e), [F, L] = k(""), [C, j] = k(0);
|
|
76
76
|
G(() => {
|
|
77
77
|
c !== void 0 && c !== P && M(c);
|
|
78
78
|
}, [c]);
|
|
@@ -124,7 +124,7 @@ function pf({
|
|
|
124
124
|
...o
|
|
125
125
|
},
|
|
126
126
|
value: S ? F : z,
|
|
127
|
-
ref: f ||
|
|
127
|
+
ref: f || R,
|
|
128
128
|
required: u,
|
|
129
129
|
onChange: we,
|
|
130
130
|
onBlur: ze,
|
|
@@ -183,9 +183,9 @@ function mf({
|
|
|
183
183
|
a
|
|
184
184
|
);
|
|
185
185
|
process.env.NODE_ENV;
|
|
186
|
-
const B = it(), V = `${t}`, X = B?.getError(V), [H, W] = k(c), z = ue(null), [A,
|
|
186
|
+
const B = it(), V = `${t}`, X = B?.getError(V), [H, W] = k(c), z = ue(null), [A, R] = k(f), U = nt();
|
|
187
187
|
G(() => {
|
|
188
|
-
f !== void 0 && f !== A &&
|
|
188
|
+
f !== void 0 && f !== A && R(f);
|
|
189
189
|
}, [f]);
|
|
190
190
|
const v = () => {
|
|
191
191
|
let C = H;
|
|
@@ -197,7 +197,7 @@ function mf({
|
|
|
197
197
|
}, P = T(() => {
|
|
198
198
|
v();
|
|
199
199
|
}, []), M = T((C) => {
|
|
200
|
-
e && t && ((C.type === q.dataChanged || C.type === q.recordChanged || C.type === q.afterScroll || C.type === q.afterCancel || C.type === q.afterEdit) && (v(), D.isDataSourceV2 || U()), C.type === q.onFieldError && C.fieldName === t && (
|
|
200
|
+
e && t && ((C.type === q.dataChanged || C.type === q.recordChanged || C.type === q.afterScroll || C.type === q.afterCancel || C.type === q.afterEdit) && (v(), D.isDataSourceV2 || U()), C.type === q.onFieldError && C.fieldName === t && (R(C.error), B?.setError(V, C.error)));
|
|
201
201
|
}, [D.isDataSourceV2, B, V]), O = ue(M);
|
|
202
202
|
G(() => {
|
|
203
203
|
O.current = M;
|
|
@@ -218,7 +218,7 @@ function mf({
|
|
|
218
218
|
const x = (C, j) => {
|
|
219
219
|
if (j)
|
|
220
220
|
return;
|
|
221
|
-
(A || X) && (
|
|
221
|
+
(A || X) && (R(void 0), B?.clearError(V));
|
|
222
222
|
const ee = C.target.checked, Se = ee ? l : a;
|
|
223
223
|
W(ee), e && !e.isBrowsing() && t && e.getFieldValue(t) !== Se && D.handleValueChange(Se), w && w(Se, C);
|
|
224
224
|
}, _ = (C) => {
|
|
@@ -369,7 +369,7 @@ function ti(e) {
|
|
|
369
369
|
rightSection: W,
|
|
370
370
|
unstyled: z,
|
|
371
371
|
classNames: A,
|
|
372
|
-
styles:
|
|
372
|
+
styles: R,
|
|
373
373
|
allowDeselect: U,
|
|
374
374
|
preserveTime: v,
|
|
375
375
|
date: P,
|
|
@@ -410,20 +410,20 @@ function ti(e) {
|
|
|
410
410
|
defaultValue: te(o),
|
|
411
411
|
finalValue: null,
|
|
412
412
|
onChange: s
|
|
413
|
-
}), [ie, le] = k(e.error), Ce = nt(), [be,
|
|
413
|
+
}), [ie, le] = k(e.error), Ce = nt(), [be, $] = on({
|
|
414
414
|
value: P ? typeof P == "string" ? P : P.toISOString().split("T")[0] : null,
|
|
415
415
|
defaultValue: ne ? ne.toISOString().split("T")[0] : M ? typeof M == "string" ? M : M.toISOString().split("T")[0] : null,
|
|
416
416
|
finalValue: null,
|
|
417
417
|
onChange: O
|
|
418
418
|
}), xe = (pe) => pe ? rr[_].format(pe) : "", [ce, se] = on({
|
|
419
419
|
value: xe(ne)
|
|
420
|
-
}),
|
|
420
|
+
}), Re = (pe) => {
|
|
421
421
|
const Fe = rr[_].parse(pe);
|
|
422
422
|
return Number.isNaN(Fe.getTime()) ? Ll(pe) : Fe;
|
|
423
|
-
},
|
|
423
|
+
}, $e = () => {
|
|
424
424
|
let pe = V;
|
|
425
425
|
return S && !V && (pe = V || we.isReadOnly), pe;
|
|
426
|
-
}, Ne = f ||
|
|
426
|
+
}, Ne = f || Re, he = a || U, Ue = T(() => {
|
|
427
427
|
Ye();
|
|
428
428
|
}, []), Pe = T((pe) => {
|
|
429
429
|
S && F && ((pe.type === q.dataChanged || pe.type === q.recordChanged || pe.type === q.afterScroll || pe.type === q.afterCancel || pe.type === q.afterEdit) && (Ye(), we.isDataSourceV2 || Ce()), pe.type === q.onFieldError && pe.fieldName === F && (le(pe.error), ze?.setError(ve, pe.error)));
|
|
@@ -442,9 +442,9 @@ function ti(e) {
|
|
|
442
442
|
}
|
|
443
443
|
else
|
|
444
444
|
Fe = pe instanceof Date ? pe : new Date(pe), tt = rr[_].format(Fe);
|
|
445
|
-
tt !== ce && (se(tt),
|
|
445
|
+
tt !== ce && (se(tt), $(Fe.toISOString().split("T")[0]), Z(Fe));
|
|
446
446
|
} else
|
|
447
|
-
se(""),
|
|
447
|
+
se(""), $(null), Z(null);
|
|
448
448
|
}
|
|
449
449
|
}, [F, S, _, ce]), ge = T((pe) => {
|
|
450
450
|
if (S && F) {
|
|
@@ -470,44 +470,44 @@ function ti(e) {
|
|
|
470
470
|
}, []), G(() => {
|
|
471
471
|
e.error !== void 0 && e.error !== ie && le(e.error);
|
|
472
472
|
}, [e.error]), G(() => {
|
|
473
|
-
Q && ne &&
|
|
473
|
+
Q && ne && $(ne.toISOString().split("T")[0]);
|
|
474
474
|
}, [Q, ne]), G(() => {
|
|
475
475
|
se(xe(ne));
|
|
476
476
|
}, [oe.locale]);
|
|
477
477
|
const [fe, Te] = k(!1), qe = (pe) => {
|
|
478
|
-
if (
|
|
478
|
+
if (!$e()) {
|
|
479
479
|
const Fe = pe.currentTarget.value;
|
|
480
480
|
if (se(Fe), (ie || re) && (le(void 0), ze?.clearError(ve)), Fe.trim() === "" && he)
|
|
481
481
|
Z(null), ge(""), l?.(null, pe);
|
|
482
482
|
else {
|
|
483
483
|
const Ee = Ne(Fe), gt = p ? typeof p == "string" ? new Date(p) : p : void 0, ke = g ? typeof g == "string" ? new Date(g) : g : void 0;
|
|
484
|
-
Xi({ date: Ee, minDate: gt, maxDate: ke }) && (Z(Ee),
|
|
484
|
+
Xi({ date: Ee, minDate: gt, maxDate: ke }) && (Z(Ee), $(Ee ? typeof Ee == "string" ? Ee : Ee.toISOString().split("T")[0] : null), ge(Fe), l?.(Fe, pe));
|
|
485
485
|
}
|
|
486
486
|
}
|
|
487
487
|
}, Ke = (pe) => {
|
|
488
|
-
if (
|
|
488
|
+
if (!$e()) {
|
|
489
489
|
if ((ie || re) && (le(void 0), ze?.clearError(ve)), pe.trim() === "" && he)
|
|
490
490
|
Z(null), ge(""), l?.(null, { target: { value: pe } });
|
|
491
491
|
else if (pe && pe.length === 10) {
|
|
492
492
|
const tt = rr[_].parse(pe), Ee = p ? typeof p == "string" ? new Date(p) : p : void 0, gt = g ? typeof g == "string" ? new Date(g) : g : void 0;
|
|
493
|
-
Xi({ date: tt, minDate: Ee, maxDate: gt }) && (Z(tt),
|
|
493
|
+
Xi({ date: tt, minDate: Ee, maxDate: gt }) && (Z(tt), $(tt ? typeof tt == "string" ? tt : tt.toISOString().split("T")[0] : null), se(xe(tt)), ge(pe), l?.(pe, { target: { value: pe } }));
|
|
494
494
|
}
|
|
495
495
|
}
|
|
496
496
|
}, Je = (pe, Fe) => {
|
|
497
|
-
|
|
497
|
+
$e() || Fe.masked.rawInputValue === "" && he && ((ie || re) && (le(void 0), ze?.clearError(ve)), Z(null), $(null), ge(""), se(""), l?.("", { target: { value: "" } }));
|
|
498
498
|
}, ct = (pe) => {
|
|
499
|
-
D?.(pe), E?.(pe), Te(!1),
|
|
499
|
+
D?.(pe), E?.(pe), Te(!1), $e() || y && se(xe(ne));
|
|
500
500
|
}, vt = (pe) => {
|
|
501
|
-
|
|
501
|
+
$e() || (m?.(pe), w?.(pe), Te(!0));
|
|
502
502
|
}, ut = (pe) => {
|
|
503
|
-
|
|
503
|
+
$e() || (B?.(pe), Te(!0));
|
|
504
504
|
}, Le = (pe) => {
|
|
505
505
|
const Fe = new Date(pe);
|
|
506
506
|
return {
|
|
507
507
|
...d?.(pe),
|
|
508
508
|
selected: xt(ne).isSame(Fe, "day"),
|
|
509
509
|
onClick: () => {
|
|
510
|
-
if (
|
|
510
|
+
if (!$e()) {
|
|
511
511
|
(ie || re) && (le(void 0), ze?.clearError(ve));
|
|
512
512
|
const Ee = v ? Fl(ne, Fe) : Fe, gt = he && xt(ne).isSame(Fe, "day") ? null : Ee;
|
|
513
513
|
Z(gt);
|
|
@@ -516,7 +516,7 @@ function ti(e) {
|
|
|
516
516
|
}
|
|
517
517
|
}
|
|
518
518
|
};
|
|
519
|
-
}, Y = W || (a && ne &&
|
|
519
|
+
}, Y = W || (a && ne && !$e() ? /* @__PURE__ */ n(
|
|
520
520
|
Ur,
|
|
521
521
|
{
|
|
522
522
|
variant: "transparent",
|
|
@@ -540,7 +540,7 @@ function ti(e) {
|
|
|
540
540
|
opened: fe,
|
|
541
541
|
trapFocus: !1,
|
|
542
542
|
position: "bottom-start",
|
|
543
|
-
disabled:
|
|
543
|
+
disabled: $e(),
|
|
544
544
|
withinPortal: !0,
|
|
545
545
|
withRoles: !1,
|
|
546
546
|
...u,
|
|
@@ -563,7 +563,7 @@ function ti(e) {
|
|
|
563
563
|
onComplete: Ke,
|
|
564
564
|
onChange: qe,
|
|
565
565
|
onAccept: Je,
|
|
566
|
-
readOnly:
|
|
566
|
+
readOnly: $e(),
|
|
567
567
|
value: ce,
|
|
568
568
|
style: {
|
|
569
569
|
width: L,
|
|
@@ -584,12 +584,12 @@ function ti(e) {
|
|
|
584
584
|
}
|
|
585
585
|
) }) }),
|
|
586
586
|
/* @__PURE__ */ n(Ct.Dropdown, { onMouseDown: (pe) => pe.preventDefault(), "data-dates-dropdown": !0, children: /* @__PURE__ */ n(
|
|
587
|
-
|
|
587
|
+
Ra,
|
|
588
588
|
{
|
|
589
589
|
__staticSelector: "ArchbaseDatePickerEdit",
|
|
590
590
|
...ee,
|
|
591
591
|
classNames: A,
|
|
592
|
-
styles:
|
|
592
|
+
styles: R,
|
|
593
593
|
unstyled: z,
|
|
594
594
|
__preventFocus: !0,
|
|
595
595
|
minDate: p,
|
|
@@ -598,13 +598,13 @@ function ti(e) {
|
|
|
598
598
|
getDayProps: Le,
|
|
599
599
|
size: t.size,
|
|
600
600
|
date: be || void 0,
|
|
601
|
-
onDateChange:
|
|
601
|
+
onDateChange: $
|
|
602
602
|
}
|
|
603
603
|
) })
|
|
604
604
|
]
|
|
605
605
|
}
|
|
606
606
|
),
|
|
607
|
-
/* @__PURE__ */ n(
|
|
607
|
+
/* @__PURE__ */ n($a, { name: X || "", form: H || "", value: ne, type: "default" })
|
|
608
608
|
] }) });
|
|
609
609
|
}
|
|
610
610
|
ti.displayName = "ArchbaseDatePickerEdit";
|
|
@@ -631,7 +631,7 @@ const Ol = ({ image: e, label: t, description: r, values: i, value: o, ...s }) =
|
|
|
631
631
|
] }),
|
|
632
632
|
i.includes(o) ? /* @__PURE__ */ n(qs, { size: 12 }) : null
|
|
633
633
|
] }) }), _l = ({ item: e, value: t, onRemove: r, label: i }) => /* @__PURE__ */ n(
|
|
634
|
-
|
|
634
|
+
$o,
|
|
635
635
|
{
|
|
636
636
|
withRemoveButton: !0,
|
|
637
637
|
onRemove: () => r(),
|
|
@@ -667,7 +667,7 @@ function gf({
|
|
|
667
667
|
value: W,
|
|
668
668
|
defaultValue: z,
|
|
669
669
|
filter: A,
|
|
670
|
-
size:
|
|
670
|
+
size: R,
|
|
671
671
|
style: U,
|
|
672
672
|
width: v,
|
|
673
673
|
initiallyOpened: P,
|
|
@@ -695,7 +695,7 @@ function gf({
|
|
|
695
695
|
onDropdownClose: () => ve.resetSelectedOption()
|
|
696
696
|
}), [re, te] = k(
|
|
697
697
|
Ki(u.options, w, E, D)
|
|
698
|
-
), [ne, Z] = k([]), [Q, ie] = k(0), [le, Ce] = k(""), [be] = si(le, s), [
|
|
698
|
+
), [ne, Z] = k([]), [Q, ie] = k(0), [le, Ce] = k(""), [be] = si(le, s), [$, xe] = k(!1), [ce, se] = k(u.page), [Re, $e] = k(u.totalPages), [Ne, he] = k(ce === Re - 1), [Ue, Pe] = k(u.options), [Ye, ge] = k(p), N = async () => {
|
|
699
699
|
let ke = W;
|
|
700
700
|
r && i && (ke = r.getFieldValue(i), ke || (ke = [])), ee && J && ke && (ke = await ee(ke)), Z(ke ?? []), Ce(w(ke) || "");
|
|
701
701
|
}, ae = T(() => {
|
|
@@ -719,7 +719,7 @@ function gf({
|
|
|
719
719
|
}, [r, i, qe, ae]), G(() => {
|
|
720
720
|
j && j(be), be && be.length >= l && (xe(!0), De(0, !1));
|
|
721
721
|
}, [be]), G(() => {
|
|
722
|
-
}, [ce,
|
|
722
|
+
}, [ce, Re]), lt(() => {
|
|
723
723
|
N();
|
|
724
724
|
}, []), G(() => {
|
|
725
725
|
p !== void 0 && p !== Ye && ge(p);
|
|
@@ -743,7 +743,7 @@ function gf({
|
|
|
743
743
|
}, ut = (ke) => {
|
|
744
744
|
V && V(ke);
|
|
745
745
|
}, Le = () => {
|
|
746
|
-
be && be.length >= l && ce <
|
|
746
|
+
be && be.length >= l && ce < Re - 1 && (xe(!0), De(ce + 1, !0));
|
|
747
747
|
}, Y = (ke) => {
|
|
748
748
|
ne || Ce(ke), ke && ke.length >= l && ve.openDropdown();
|
|
749
749
|
}, De = async (ke, st = !1) => {
|
|
@@ -751,7 +751,7 @@ function gf({
|
|
|
751
751
|
(ft) => {
|
|
752
752
|
xe(!1), (ft === void 0 || ft == null) && C && C("Response incorreto.");
|
|
753
753
|
const jt = st ? Ue.concat(ft.options) : ft.options;
|
|
754
|
-
Pe(jt), te(Ki(jt, w, E, D)), se(ft.page),
|
|
754
|
+
Pe(jt), te(Ki(jt, w, E, D)), se(ft.page), $e(ft.totalPages), he(ft.page === ft.totalPages - 1), ie((Yt) => Yt + 1);
|
|
755
755
|
},
|
|
756
756
|
(ft) => {
|
|
757
757
|
xe(!1), C && C(ft);
|
|
@@ -783,7 +783,7 @@ function gf({
|
|
|
783
783
|
ct(ke);
|
|
784
784
|
},
|
|
785
785
|
children: [
|
|
786
|
-
/* @__PURE__ */ n(
|
|
786
|
+
/* @__PURE__ */ n(Ro, { children: /* @__PURE__ */ n(
|
|
787
787
|
Li,
|
|
788
788
|
{
|
|
789
789
|
disabled: o,
|
|
@@ -797,8 +797,8 @@ function gf({
|
|
|
797
797
|
style: U,
|
|
798
798
|
onClick: () => ve.openDropdown(),
|
|
799
799
|
rightSection: /* @__PURE__ */ b(ot, { children: [
|
|
800
|
-
|
|
801
|
-
|
|
800
|
+
$ && /* @__PURE__ */ n(sn, { size: "xs" }),
|
|
801
|
+
!$ && ne !== null && t && !o && !pe() ? /* @__PURE__ */ n(
|
|
802
802
|
Ur,
|
|
803
803
|
{
|
|
804
804
|
size: "sm",
|
|
@@ -811,7 +811,7 @@ function gf({
|
|
|
811
811
|
) : /* @__PURE__ */ n(or.Chevron, {})
|
|
812
812
|
] }),
|
|
813
813
|
rightSectionPointerEvents: ne === null ? "none" : "all",
|
|
814
|
-
children: /* @__PURE__ */ b(
|
|
814
|
+
children: /* @__PURE__ */ b($o.Group, { children: [
|
|
815
815
|
Ee,
|
|
816
816
|
/* @__PURE__ */ n(
|
|
817
817
|
Li.Field,
|
|
@@ -850,7 +850,7 @@ const is = ai(
|
|
|
850
850
|
i && i.current && i.current.scrollTop === i.current.scrollHeight - i.current.offsetHeight && o.handleDropdownScrollEnded();
|
|
851
851
|
};
|
|
852
852
|
return /* @__PURE__ */ n(
|
|
853
|
-
|
|
853
|
+
Rt.Autosize,
|
|
854
854
|
{
|
|
855
855
|
...t,
|
|
856
856
|
style: { width: "100%", ...e },
|
|
@@ -905,7 +905,7 @@ function yf({
|
|
|
905
905
|
value: W,
|
|
906
906
|
defaultValue: z,
|
|
907
907
|
filter: A,
|
|
908
|
-
size:
|
|
908
|
+
size: R,
|
|
909
909
|
style: U,
|
|
910
910
|
width: v,
|
|
911
911
|
initiallyOpened: P,
|
|
@@ -933,7 +933,7 @@ function yf({
|
|
|
933
933
|
onDropdownClose: () => ve.resetSelectedOption()
|
|
934
934
|
}), [re, te] = k(
|
|
935
935
|
Ji(u.options, w, E, D)
|
|
936
|
-
), [ne, Z] = k(), [Q, ie] = k(0), [le, Ce] = k(""), [be] = si(le, s), [
|
|
936
|
+
), [ne, Z] = k(), [Q, ie] = k(0), [le, Ce] = k(""), [be] = si(le, s), [$, xe] = k(!1), [ce, se] = k(u.page), [Re, $e] = k(u.totalPages), [Ne, he] = k(ce === Re - 1), [Ue, Pe] = k(u.options);
|
|
937
937
|
C || ue(null);
|
|
938
938
|
const [Ye, ge] = k(p), N = async () => {
|
|
939
939
|
let Ee = W;
|
|
@@ -959,7 +959,7 @@ function yf({
|
|
|
959
959
|
}, [r, i, qe, ae]), G(() => {
|
|
960
960
|
j && j(be), be && be.length >= l && be !== w(ne) && (xe(!0), Y(0, !1));
|
|
961
961
|
}, [be]), G(() => {
|
|
962
|
-
}, [ce,
|
|
962
|
+
}, [ce, Re]), lt(() => {
|
|
963
963
|
N();
|
|
964
964
|
}, []), G(() => {
|
|
965
965
|
p !== void 0 && p !== Ye && ge(p);
|
|
@@ -975,7 +975,7 @@ function yf({
|
|
|
975
975
|
}, vt = (Ee) => {
|
|
976
976
|
V && V(Ee);
|
|
977
977
|
}, ut = () => {
|
|
978
|
-
be && be.length >= l && ce <
|
|
978
|
+
be && be.length >= l && ce < Re - 1 && (xe(!0), Y(ce + 1, !0));
|
|
979
979
|
}, Le = (Ee) => {
|
|
980
980
|
ne || Ce(Ee), Ee && w(ne) !== Ee && Ee.length >= l && ve.openDropdown();
|
|
981
981
|
}, Y = async (Ee, gt = !1) => {
|
|
@@ -983,7 +983,7 @@ function yf({
|
|
|
983
983
|
(st) => {
|
|
984
984
|
xe(!1), (st === void 0 || st == null) && L && L("Response incorreto.");
|
|
985
985
|
const ht = gt ? Ue.concat(st.options) : st.options;
|
|
986
|
-
Pe(ht), te(Ji(ht, w, E, D)), se(st.page),
|
|
986
|
+
Pe(ht), te(Ji(ht, w, E, D)), se(st.page), $e(st.totalPages), he(st.page === st.totalPages - 1), ie((ft) => ft + 1);
|
|
987
987
|
},
|
|
988
988
|
(st) => {
|
|
989
989
|
xe(!1), L && L(st);
|
|
@@ -1008,7 +1008,7 @@ function yf({
|
|
|
1008
1008
|
Je(ke), Ce(gt?.label || ""), ve.closeDropdown();
|
|
1009
1009
|
},
|
|
1010
1010
|
children: [
|
|
1011
|
-
/* @__PURE__ */ n(
|
|
1011
|
+
/* @__PURE__ */ n(Ro, { children: /* @__PURE__ */ n(
|
|
1012
1012
|
Ys,
|
|
1013
1013
|
{
|
|
1014
1014
|
disabled: o,
|
|
@@ -1029,7 +1029,7 @@ function yf({
|
|
|
1029
1029
|
ct(Ee), Le(w(ne) || "");
|
|
1030
1030
|
},
|
|
1031
1031
|
onFocus: (Ee) => vt(Ee),
|
|
1032
|
-
rightSection:
|
|
1032
|
+
rightSection: $ ? /* @__PURE__ */ n(sn, { size: "xs" }) : ne !== null && t && !o && !De() ? /* @__PURE__ */ n(
|
|
1033
1033
|
Ur,
|
|
1034
1034
|
{
|
|
1035
1035
|
size: "sm",
|
|
@@ -1063,7 +1063,7 @@ const os = ai(
|
|
|
1063
1063
|
i && i.current && i.current.scrollTop === i.current.scrollHeight - i.current.offsetHeight && o.handleDropdownScrollEnded();
|
|
1064
1064
|
};
|
|
1065
1065
|
return /* @__PURE__ */ n(
|
|
1066
|
-
|
|
1066
|
+
Rt.Autosize,
|
|
1067
1067
|
{
|
|
1068
1068
|
...t,
|
|
1069
1069
|
style: { width: "100%", ...e },
|
|
@@ -1106,7 +1106,7 @@ function bf({
|
|
|
1106
1106
|
a
|
|
1107
1107
|
), D = it(), B = `${t}`, V = D?.getError(B);
|
|
1108
1108
|
process.env.NODE_ENV;
|
|
1109
|
-
const [X, H] = k(!!c), W = w || ue(null), [z, A] = k(p),
|
|
1109
|
+
const [X, H] = k(!!c), W = w || ue(null), [z, A] = k(p), R = nt();
|
|
1110
1110
|
G(() => {
|
|
1111
1111
|
p !== void 0 && p !== z && A(p);
|
|
1112
1112
|
}, [p]);
|
|
@@ -1120,7 +1120,7 @@ function bf({
|
|
|
1120
1120
|
}, v = T(() => {
|
|
1121
1121
|
U();
|
|
1122
1122
|
}, []), P = T((F) => {
|
|
1123
|
-
e && t && ((F.type === q.dataChanged || F.type === q.recordChanged || F.type === q.afterScroll || F.type === q.afterCancel || F.type === q.afterEdit) && (U(), E.isDataSourceV2 ||
|
|
1123
|
+
e && t && ((F.type === q.dataChanged || F.type === q.recordChanged || F.type === q.afterScroll || F.type === q.afterCancel || F.type === q.afterEdit) && (U(), E.isDataSourceV2 || R()), F.type === q.onFieldError && F.fieldName === t && (A(F.error), D?.setError(B, F.error)));
|
|
1124
1124
|
}, [E.isDataSourceV2, D, B]), M = ue(P);
|
|
1125
1125
|
G(() => {
|
|
1126
1126
|
M.current = P;
|
|
@@ -1203,9 +1203,9 @@ function wf({
|
|
|
1203
1203
|
process.env.NODE_ENV;
|
|
1204
1204
|
const [X, H] = k(
|
|
1205
1205
|
jl(u, d, i, o)
|
|
1206
|
-
), [W, z] = k(p ? [] : a), [A,
|
|
1206
|
+
), [W, z] = k(p ? [] : a), [A, R] = k(g), U = nt();
|
|
1207
1207
|
G(() => {
|
|
1208
|
-
g !== void 0 && g !== A &&
|
|
1208
|
+
g !== void 0 && g !== A && R(g);
|
|
1209
1209
|
}, [g]);
|
|
1210
1210
|
const v = () => {
|
|
1211
1211
|
let S = p ? [] : a;
|
|
@@ -1223,7 +1223,7 @@ function wf({
|
|
|
1223
1223
|
}, P = T(() => {
|
|
1224
1224
|
v();
|
|
1225
1225
|
}, []), M = T((S) => {
|
|
1226
|
-
e && t && ((S.type === q.dataChanged || S.type === q.recordChanged || S.type === q.afterScroll || S.type === q.afterCancel || S.type === q.afterEdit) && (v(), E.isDataSourceV2 || U()), S.type === q.onFieldError && S.fieldName === t && (
|
|
1226
|
+
e && t && ((S.type === q.dataChanged || S.type === q.recordChanged || S.type === q.afterScroll || S.type === q.afterCancel || S.type === q.afterEdit) && (v(), E.isDataSourceV2 || U()), S.type === q.onFieldError && S.fieldName === t && (R(S.error), D?.setError(B, S.error)));
|
|
1227
1227
|
}, [E.isDataSourceV2, D, B]), O = ue(M);
|
|
1228
1228
|
G(() => {
|
|
1229
1229
|
O.current = M;
|
|
@@ -1242,7 +1242,7 @@ function wf({
|
|
|
1242
1242
|
v();
|
|
1243
1243
|
}, []);
|
|
1244
1244
|
const x = (S) => {
|
|
1245
|
-
(A || V) && (
|
|
1245
|
+
(A || V) && (R(void 0), D?.clearError(B));
|
|
1246
1246
|
const L = p ? Array.isArray(S) ? S : S ? [S] : [] : S;
|
|
1247
1247
|
z((j) => L);
|
|
1248
1248
|
let C = L;
|
|
@@ -1378,12 +1378,12 @@ function Wl({
|
|
|
1378
1378
|
W();
|
|
1379
1379
|
}, []), A = T((x) => {
|
|
1380
1380
|
e && t && ((x.type === q.dataChanged || x.type === q.recordChanged || x.type === q.afterScroll || x.type === q.afterCancel || x.type === q.afterEdit) && (W(), B.isDataSourceV2 || D()), x.type === q.onFieldError && x.fieldName === t && (E(x.error), V?.setError(X, x.error)));
|
|
1381
|
-
}, [B.isDataSourceV2, V, X]),
|
|
1381
|
+
}, [B.isDataSourceV2, V, X]), R = ue(A);
|
|
1382
1382
|
G(() => {
|
|
1383
|
-
|
|
1383
|
+
R.current = A;
|
|
1384
1384
|
}, [A]);
|
|
1385
1385
|
const U = T((x) => {
|
|
1386
|
-
|
|
1386
|
+
R.current(x);
|
|
1387
1387
|
}, []);
|
|
1388
1388
|
G(() => {
|
|
1389
1389
|
if (W(), e && t) {
|
|
@@ -1452,22 +1452,22 @@ function Ul({
|
|
|
1452
1452
|
clearButtonProps: B,
|
|
1453
1453
|
required: V = !1
|
|
1454
1454
|
}) {
|
|
1455
|
-
const [X, H] = k(y?.[0] || null), [W, z] = k(y?.[1] || null), [A,
|
|
1455
|
+
const [X, H] = k(y?.[0] || null), [W, z] = k(y?.[1] || null), [A, R] = k(g), U = it(), v = t && r ? `${t}-${r}` : i || "datetime-picker-range", P = U?.getError(v);
|
|
1456
1456
|
G(() => {
|
|
1457
|
-
g !== void 0 && g !== A &&
|
|
1457
|
+
g !== void 0 && g !== A && R(g);
|
|
1458
1458
|
}, [g]), G(() => {
|
|
1459
1459
|
y && (H(y[0]), z(y[1]));
|
|
1460
1460
|
}, [y]);
|
|
1461
1461
|
const M = (_) => {
|
|
1462
|
-
(A || P) && (
|
|
1462
|
+
(A || P) && (R(void 0), U?.clearError(v)), H(_), d && d([_, W]);
|
|
1463
1463
|
}, O = (_) => {
|
|
1464
|
-
(A || P) && (
|
|
1464
|
+
(A || P) && (R(void 0), U?.clearError(v)), z(_), d && d([X, _]);
|
|
1465
1465
|
}, I = (_, S) => {
|
|
1466
1466
|
if (_ && S && _ > S) {
|
|
1467
1467
|
const F = "Data inicial não pode ser maior que a data final";
|
|
1468
|
-
return
|
|
1468
|
+
return R(F), U?.setError(v, F), !1;
|
|
1469
1469
|
}
|
|
1470
|
-
return
|
|
1470
|
+
return R(void 0), U?.clearError(v), !0;
|
|
1471
1471
|
}, x = A || P;
|
|
1472
1472
|
return /* @__PURE__ */ n(
|
|
1473
1473
|
rt.Wrapper,
|
|
@@ -2287,8 +2287,8 @@ class mi {
|
|
|
2287
2287
|
const z = this.options.aspectRatio;
|
|
2288
2288
|
let A = !1;
|
|
2289
2289
|
p ? A = i > B.y1 + z * B.width() || i < B.y2 - z * B.width() : (u || h) && (A = !0);
|
|
2290
|
-
const
|
|
2291
|
-
B.constrainToRatio(z, s,
|
|
2290
|
+
const R = A ? "width" : "height";
|
|
2291
|
+
B.constrainToRatio(z, s, R);
|
|
2292
2292
|
}
|
|
2293
2293
|
const V = this.options.minSize, X = this.options.maxSize;
|
|
2294
2294
|
B.constrainToSize(
|
|
@@ -2741,7 +2741,7 @@ const Kl = xr(({ src: e, size: t, croppUpdate: r }) => {
|
|
|
2741
2741
|
console.log("🚀 ~ file: EditImage.tsx ~ line 259 ~ onChangeFilters ~ e", P);
|
|
2742
2742
|
}
|
|
2743
2743
|
}
|
|
2744
|
-
const
|
|
2744
|
+
const R = Ge(() => l && l.length ? Math.ceil(3 / 4 * l.length / 1024) : "", [l]);
|
|
2745
2745
|
function U(v) {
|
|
2746
2746
|
return JSON.parse(JSON.stringify(v));
|
|
2747
2747
|
}
|
|
@@ -2966,15 +2966,15 @@ const Kl = xr(({ src: e, size: t, croppUpdate: r }) => {
|
|
|
2966
2966
|
children: `${m("archbase:Apply")}`
|
|
2967
2967
|
}
|
|
2968
2968
|
),
|
|
2969
|
-
|
|
2969
|
+
R && /* @__PURE__ */ n(
|
|
2970
2970
|
"p",
|
|
2971
2971
|
{
|
|
2972
2972
|
className: "caption image-caption",
|
|
2973
2973
|
style: {
|
|
2974
|
-
color:
|
|
2975
|
-
fontWeight:
|
|
2974
|
+
color: R > 120 ? "#f44336" : "unset",
|
|
2975
|
+
fontWeight: R > 120 ? "500" : "unset"
|
|
2976
2976
|
},
|
|
2977
|
-
children: /* @__PURE__ */ n(K, { children: `${m("archbase:size")}: ${
|
|
2977
|
+
children: /* @__PURE__ */ n(K, { children: `${m("archbase:size")}: ${R}Kb ${o.format}` })
|
|
2978
2978
|
}
|
|
2979
2979
|
)
|
|
2980
2980
|
]
|
|
@@ -3055,11 +3055,11 @@ const Kl = xr(({ src: e, size: t, croppUpdate: r }) => {
|
|
|
3055
3055
|
return;
|
|
3056
3056
|
if (B.current = `data:${_.type};base64,`, _) {
|
|
3057
3057
|
const S = new FileReader();
|
|
3058
|
-
S.onload =
|
|
3058
|
+
S.onload = R.bind(this), S.readAsBinaryString(_);
|
|
3059
3059
|
}
|
|
3060
3060
|
}
|
|
3061
3061
|
}
|
|
3062
|
-
async function
|
|
3062
|
+
async function R(I) {
|
|
3063
3063
|
const x = I.target.result, _ = btoa(x);
|
|
3064
3064
|
let S = { ...c };
|
|
3065
3065
|
const F = B.current + _;
|
|
@@ -3610,7 +3610,7 @@ function Sf({
|
|
|
3610
3610
|
void 0
|
|
3611
3611
|
), X = it(), H = `${i}`, W = X?.getError(H);
|
|
3612
3612
|
process.env.NODE_ENV;
|
|
3613
|
-
const [z, A] = k(void 0),
|
|
3613
|
+
const [z, A] = k(void 0), R = ue(null), [U, v] = k(u), P = nt();
|
|
3614
3614
|
G(() => {
|
|
3615
3615
|
u !== void 0 && u !== U && v(u);
|
|
3616
3616
|
}, [u]);
|
|
@@ -3654,7 +3654,7 @@ function Sf({
|
|
|
3654
3654
|
label: a,
|
|
3655
3655
|
description: c,
|
|
3656
3656
|
error: L,
|
|
3657
|
-
ref: w ||
|
|
3657
|
+
ref: w || R,
|
|
3658
3658
|
children: /* @__PURE__ */ n(
|
|
3659
3659
|
rc,
|
|
3660
3660
|
{
|
|
@@ -3710,9 +3710,9 @@ function Af({
|
|
|
3710
3710
|
""
|
|
3711
3711
|
);
|
|
3712
3712
|
process.env.NODE_ENV;
|
|
3713
|
-
const B = it(), V = `${t}`, X = B?.getError(V), [H, W] = k(""), z = E || ue(null), [A,
|
|
3713
|
+
const B = it(), V = `${t}`, X = B?.getError(V), [H, W] = k(""), z = E || ue(null), [A, R] = k(c), U = nt();
|
|
3714
3714
|
G(() => {
|
|
3715
|
-
c !== void 0 && c !== A &&
|
|
3715
|
+
c !== void 0 && c !== A && R(c);
|
|
3716
3716
|
}, [c]);
|
|
3717
3717
|
const v = () => {
|
|
3718
3718
|
let C = H;
|
|
@@ -3720,7 +3720,7 @@ function Af({
|
|
|
3720
3720
|
}, P = T(() => {
|
|
3721
3721
|
v();
|
|
3722
3722
|
}, []), M = T((C) => {
|
|
3723
|
-
e && t && ((C.type === q.dataChanged || C.type === q.recordChanged || C.type === q.afterScroll || C.type === q.afterCancel || C.type === q.afterEdit) && (v(), D.isDataSourceV2 || U()), C.type === q.onFieldError && C.fieldName === t && (
|
|
3723
|
+
e && t && ((C.type === q.dataChanged || C.type === q.recordChanged || C.type === q.afterScroll || C.type === q.afterCancel || C.type === q.afterEdit) && (v(), D.isDataSourceV2 || U()), C.type === q.onFieldError && C.fieldName === t && (R(C.error), B?.setError(V, C.error)));
|
|
3724
3724
|
}, [D.isDataSourceV2, B, V]), O = ue(M);
|
|
3725
3725
|
G(() => {
|
|
3726
3726
|
O.current = M;
|
|
@@ -3739,7 +3739,7 @@ function Af({
|
|
|
3739
3739
|
v();
|
|
3740
3740
|
}, []);
|
|
3741
3741
|
const x = (C) => {
|
|
3742
|
-
if ((A || X) && (
|
|
3742
|
+
if ((A || X) && (R(void 0), B?.clearError(V)), W((J) => C), e && !e.isBrowsing() && t && e.getFieldValue(t) !== C) {
|
|
3743
3743
|
const J = w ? C : btoa(C);
|
|
3744
3744
|
D.handleValueChange(J);
|
|
3745
3745
|
}
|
|
@@ -3811,7 +3811,7 @@ function Df({
|
|
|
3811
3811
|
null
|
|
3812
3812
|
);
|
|
3813
3813
|
process.env.NODE_ENV;
|
|
3814
|
-
const
|
|
3814
|
+
const R = it(), U = `${t}`, v = R?.getError(U), P = Mt(), { colorScheme: M } = Lt(), [O, I] = k(""), x = W || ue(null), [_, S] = k(d);
|
|
3815
3815
|
G(() => {
|
|
3816
3816
|
d !== void 0 && d !== _ && S(d);
|
|
3817
3817
|
}, [d]);
|
|
@@ -3821,8 +3821,8 @@ function Df({
|
|
|
3821
3821
|
}, L = T(() => {
|
|
3822
3822
|
F();
|
|
3823
3823
|
}, []), C = T((re) => {
|
|
3824
|
-
e && t && ((re.type === q.dataChanged || re.type === q.recordChanged || re.type === q.afterScroll || re.type === q.afterCancel) && (F(), A.isDataSourceV2 || z()), re.type === q.onFieldError && re.fieldName === t && (S(re.error),
|
|
3825
|
-
}, [A.isDataSourceV2,
|
|
3824
|
+
e && t && ((re.type === q.dataChanged || re.type === q.recordChanged || re.type === q.afterScroll || re.type === q.afterCancel) && (F(), A.isDataSourceV2 || z()), re.type === q.onFieldError && re.fieldName === t && (S(re.error), R?.setError(U, re.error)));
|
|
3825
|
+
}, [A.isDataSourceV2, R, U]), j = ue(C);
|
|
3826
3826
|
G(() => {
|
|
3827
3827
|
j.current = C;
|
|
3828
3828
|
}, [C]);
|
|
@@ -3840,7 +3840,7 @@ function Df({
|
|
|
3840
3840
|
F();
|
|
3841
3841
|
}, []);
|
|
3842
3842
|
const ee = (re) => {
|
|
3843
|
-
(_ || v) && (S(void 0),
|
|
3843
|
+
(_ || v) && (S(void 0), R?.clearError(U)), re.preventDefault();
|
|
3844
3844
|
const ne = re.target.value;
|
|
3845
3845
|
re.persist(), I((Z) => ne), X && X(re, ne);
|
|
3846
3846
|
}, Se = () => {
|
|
@@ -3849,7 +3849,7 @@ function Df({
|
|
|
3849
3849
|
}).catch((te) => {
|
|
3850
3850
|
if (A.handleValueChange(void 0), x.current?.focus(), w) {
|
|
3851
3851
|
const ne = ar(w, O);
|
|
3852
|
-
S(ne),
|
|
3852
|
+
S(ne), R?.setError(U, ne);
|
|
3853
3853
|
}
|
|
3854
3854
|
y && y(te);
|
|
3855
3855
|
})) : O && O != null && g(O).then((te) => {
|
|
@@ -3859,7 +3859,7 @@ function Df({
|
|
|
3859
3859
|
}).catch((te) => {
|
|
3860
3860
|
if (I(void 0), w) {
|
|
3861
3861
|
const ne = ar(w, O);
|
|
3862
|
-
S(ne),
|
|
3862
|
+
S(ne), R?.setError(U, ne);
|
|
3863
3863
|
}
|
|
3864
3864
|
x.current?.focus(), y && y(te);
|
|
3865
3865
|
});
|
|
@@ -3963,7 +3963,7 @@ function gi({
|
|
|
3963
3963
|
width: W,
|
|
3964
3964
|
size: z,
|
|
3965
3965
|
error: A,
|
|
3966
|
-
innerRef:
|
|
3966
|
+
innerRef: R,
|
|
3967
3967
|
onClear: U,
|
|
3968
3968
|
minValue: v = Number.MIN_SAFE_INTEGER,
|
|
3969
3969
|
maxValue: P = Number.MAX_SAFE_INTEGER,
|
|
@@ -3978,17 +3978,17 @@ function gi({
|
|
|
3978
3978
|
process.env.NODE_ENV;
|
|
3979
3979
|
const [I, x] = k(""), [_, S] = k(0);
|
|
3980
3980
|
sc(I);
|
|
3981
|
-
const F =
|
|
3981
|
+
const F = R || ue(null), [L, C] = k(A), j = nt(), J = it(), ee = `${t}`, Se = J?.getError(ee);
|
|
3982
3982
|
G(() => {
|
|
3983
3983
|
A !== void 0 && A !== L && C(A);
|
|
3984
3984
|
}, [A]);
|
|
3985
3985
|
const de = T(() => {
|
|
3986
|
-
let
|
|
3987
|
-
return e && t && (
|
|
3986
|
+
let $ = u;
|
|
3987
|
+
return e && t && ($ = e.getFieldValue(t)), !$ && $ !== 0 ? {
|
|
3988
3988
|
maskedValue: "",
|
|
3989
3989
|
value: g ? null : 0
|
|
3990
|
-
} : (typeof
|
|
3991
|
-
|
|
3990
|
+
} : (typeof $ == "string" && ($ = $.replace(new RegExp(`\\${h}`, "g"), "").replace(d, ".").replace(/[^0-9-.]/g, ""), $ = Number.parseFloat($)), E && (f = 0), Dr(
|
|
3991
|
+
$,
|
|
3992
3992
|
f,
|
|
3993
3993
|
d,
|
|
3994
3994
|
h,
|
|
@@ -4000,35 +4000,35 @@ function gi({
|
|
|
4000
4000
|
));
|
|
4001
4001
|
}, [u, e, t, f, d, h, p, m, w, v, P, E, g]), oe = T(() => {
|
|
4002
4002
|
if (e && t) {
|
|
4003
|
-
const
|
|
4004
|
-
x(
|
|
4003
|
+
const $ = de();
|
|
4004
|
+
x($.maskedValue), S($.value);
|
|
4005
4005
|
}
|
|
4006
4006
|
}, [e, t, de]), we = T(() => {
|
|
4007
4007
|
oe();
|
|
4008
|
-
}, [oe]), ze = T((
|
|
4009
|
-
e && t && ((
|
|
4008
|
+
}, [oe]), ze = T(($) => {
|
|
4009
|
+
e && t && (($.type === q.dataChanged || $.type === q.recordChanged || $.type === q.afterScroll || $.type === q.afterCancel || $.type === q.afterEdit || $.type === q.afterSave) && (oe(), O.isDataSourceV2 || j()), $.type === q.onFieldError && $.fieldName === t && (C($.error), J?.setError(ee, $.error)));
|
|
4010
4010
|
}, [e, t, oe, j, O.isDataSourceV2, J, ee]), ve = ue(ze);
|
|
4011
4011
|
G(() => {
|
|
4012
4012
|
ve.current = ze;
|
|
4013
4013
|
}, [ze]);
|
|
4014
|
-
const re = T((
|
|
4015
|
-
ve.current(
|
|
4014
|
+
const re = T(($) => {
|
|
4015
|
+
ve.current($);
|
|
4016
4016
|
}, []);
|
|
4017
4017
|
G(() => {
|
|
4018
|
-
const
|
|
4019
|
-
if (x(
|
|
4018
|
+
const $ = de();
|
|
4019
|
+
if (x($.maskedValue), S($.value), e && t) {
|
|
4020
4020
|
const xe = typeof e.addFieldChangeListener == "function";
|
|
4021
4021
|
return e.addListener(re), xe && e.addFieldChangeListener(t, we), () => {
|
|
4022
4022
|
e.removeListener(re), xe && e.removeFieldChangeListener(t, we);
|
|
4023
4023
|
};
|
|
4024
4024
|
}
|
|
4025
4025
|
}, [e, t, re, we]), lt(() => {
|
|
4026
|
-
const
|
|
4027
|
-
x(
|
|
4026
|
+
const $ = de();
|
|
4027
|
+
x($.maskedValue), S($.value);
|
|
4028
4028
|
}, [u]);
|
|
4029
|
-
const te = (
|
|
4030
|
-
|
|
4031
|
-
let ce =
|
|
4029
|
+
const te = ($) => {
|
|
4030
|
+
$.preventDefault(), (L || Se) && (C(void 0), J?.clearError(ee));
|
|
4031
|
+
let ce = $.target.value;
|
|
4032
4032
|
const se = I;
|
|
4033
4033
|
if (!p && ce.includes("-"))
|
|
4034
4034
|
ce = se;
|
|
@@ -4036,7 +4036,7 @@ function gi({
|
|
|
4036
4036
|
const Ne = ce.includes("-"), he = ce.replace(/-/g, "");
|
|
4037
4037
|
Ne ? ce = "-" + he : ce = he;
|
|
4038
4038
|
}
|
|
4039
|
-
const { maskedValue:
|
|
4039
|
+
const { maskedValue: Re, value: $e } = Dr(
|
|
4040
4040
|
ce,
|
|
4041
4041
|
f,
|
|
4042
4042
|
d,
|
|
@@ -4048,14 +4048,14 @@ function gi({
|
|
|
4048
4048
|
P,
|
|
4049
4049
|
!0
|
|
4050
4050
|
);
|
|
4051
|
-
x(
|
|
4052
|
-
}, ne = (
|
|
4051
|
+
x(Re), S($e), e && !e.isBrowsing() && t && O.handleValueChange($e), c && c(Re, $e, $);
|
|
4052
|
+
}, ne = ($) => {
|
|
4053
4053
|
if (F.current) {
|
|
4054
4054
|
const xe = F.current.value, ce = m.length, se = xe.length - w.length;
|
|
4055
4055
|
F.current.setSelectionRange(ce, se);
|
|
4056
4056
|
}
|
|
4057
|
-
a && a(
|
|
4058
|
-
}, Z = (
|
|
4057
|
+
a && a($);
|
|
4058
|
+
}, Z = ($) => {
|
|
4059
4059
|
const xe = Dr(
|
|
4060
4060
|
I,
|
|
4061
4061
|
f,
|
|
@@ -4067,9 +4067,9 @@ function gi({
|
|
|
4067
4067
|
v,
|
|
4068
4068
|
P
|
|
4069
4069
|
);
|
|
4070
|
-
x(xe.maskedValue), S(xe.value), l && l(
|
|
4070
|
+
x(xe.maskedValue), S(xe.value), l && l($);
|
|
4071
4071
|
}, Q = () => {
|
|
4072
|
-
const
|
|
4072
|
+
const $ = Dr(
|
|
4073
4073
|
"",
|
|
4074
4074
|
f,
|
|
4075
4075
|
d,
|
|
@@ -4080,14 +4080,14 @@ function gi({
|
|
|
4080
4080
|
v,
|
|
4081
4081
|
P
|
|
4082
4082
|
);
|
|
4083
|
-
x(
|
|
4084
|
-
}, ie = (
|
|
4085
|
-
const xe =
|
|
4086
|
-
if (
|
|
4087
|
-
if (
|
|
4083
|
+
x($.maskedValue), S($.value), e && !e.isBrowsing() && t && O.handleValueChange(g ? null : 0), U && U();
|
|
4084
|
+
}, ie = ($) => {
|
|
4085
|
+
const xe = $.currentTarget, ce = xe.selectionStart || 0, se = xe.selectionEnd || 0, Re = xe.value;
|
|
4086
|
+
if ($.key === "-") {
|
|
4087
|
+
if ($.preventDefault(), !p)
|
|
4088
4088
|
return;
|
|
4089
|
-
let
|
|
4090
|
-
const Ne =
|
|
4089
|
+
let $e = Re.replace(m, "").replace(w, "").replace(/-/g, "");
|
|
4090
|
+
const Ne = $e === "0" || $e === "" ? "-0" : "-" + $e, { maskedValue: he, value: Ue } = Dr(
|
|
4091
4091
|
Ne,
|
|
4092
4092
|
f,
|
|
4093
4093
|
d,
|
|
@@ -4099,18 +4099,18 @@ function gi({
|
|
|
4099
4099
|
P,
|
|
4100
4100
|
!0
|
|
4101
4101
|
);
|
|
4102
|
-
x(he), S(Ue), e && !e.isBrowsing() && t && O.handleValueChange(Ue), c && c(he, Ue,
|
|
4102
|
+
x(he), S(Ue), e && !e.isBrowsing() && t && O.handleValueChange(Ue), c && c(he, Ue, $), setTimeout(() => {
|
|
4103
4103
|
const Pe = ce;
|
|
4104
4104
|
xe.setSelectionRange(Pe, Pe);
|
|
4105
4105
|
}, 0);
|
|
4106
4106
|
return;
|
|
4107
4107
|
}
|
|
4108
|
-
if (
|
|
4109
|
-
const
|
|
4108
|
+
if ($.key === "Backspace" && w) {
|
|
4109
|
+
const $e = Re.slice(0, -w.length);
|
|
4110
4110
|
if (ce !== se)
|
|
4111
4111
|
return;
|
|
4112
|
-
|
|
4113
|
-
const Ne =
|
|
4112
|
+
$.preventDefault();
|
|
4113
|
+
const Ne = Re.length - ce, he = Math.min(ce, $e.length), Ue = $e.slice(0, he - 1), Pe = $e.slice(he), Ye = Ue + Pe, { maskedValue: ge, value: N } = Dr(
|
|
4114
4114
|
Ye,
|
|
4115
4115
|
f,
|
|
4116
4116
|
d,
|
|
@@ -4122,8 +4122,8 @@ function gi({
|
|
|
4122
4122
|
P,
|
|
4123
4123
|
!0
|
|
4124
4124
|
);
|
|
4125
|
-
x(ge), S(N), e && !e.isBrowsing() && t && O.handleValueChange(N), c && c(ge, N,
|
|
4126
|
-
const ae = ce >
|
|
4125
|
+
x(ge), S(N), e && !e.isBrowsing() && t && O.handleValueChange(N), c && c(ge, N, $), setTimeout(() => {
|
|
4126
|
+
const ae = ce > $e.length ? ge.length - Ne : Math.max(m.length, ce - 1);
|
|
4127
4127
|
xe.setSelectionRange(ae, ae);
|
|
4128
4128
|
}, 0);
|
|
4129
4129
|
}
|
|
@@ -4131,7 +4131,7 @@ function gi({
|
|
|
4131
4131
|
Ur,
|
|
4132
4132
|
{
|
|
4133
4133
|
variant: "transparent",
|
|
4134
|
-
onMouseDown: (
|
|
4134
|
+
onMouseDown: ($) => $.preventDefault(),
|
|
4135
4135
|
tabIndex: -1,
|
|
4136
4136
|
onClick: Q,
|
|
4137
4137
|
unstyled: X,
|
|
@@ -4217,7 +4217,7 @@ function Tf({
|
|
|
4217
4217
|
},
|
|
4218
4218
|
innerRef: z,
|
|
4219
4219
|
decimalSeparator: A,
|
|
4220
|
-
thousandSeparator:
|
|
4220
|
+
thousandSeparator: R,
|
|
4221
4221
|
precision: U = 0,
|
|
4222
4222
|
allowNegative: v = !1,
|
|
4223
4223
|
allowEmpty: P = !0
|
|
@@ -4305,7 +4305,7 @@ function Tf({
|
|
|
4305
4305
|
size: f,
|
|
4306
4306
|
width: p,
|
|
4307
4307
|
decimalSeparator: A,
|
|
4308
|
-
thousandSeparator:
|
|
4308
|
+
thousandSeparator: R,
|
|
4309
4309
|
precision: U,
|
|
4310
4310
|
allowNegative: v,
|
|
4311
4311
|
allowEmpty: P,
|
|
@@ -4398,7 +4398,7 @@ function ls({
|
|
|
4398
4398
|
value: W,
|
|
4399
4399
|
defaultValue: z,
|
|
4400
4400
|
filter: A,
|
|
4401
|
-
size:
|
|
4401
|
+
size: R,
|
|
4402
4402
|
initiallyOpened: U,
|
|
4403
4403
|
itemComponent: v,
|
|
4404
4404
|
dropdownOpened: P,
|
|
@@ -4426,7 +4426,7 @@ function ls({
|
|
|
4426
4426
|
null
|
|
4427
4427
|
);
|
|
4428
4428
|
process.env.NODE_ENV;
|
|
4429
|
-
const re = ue(null), [te, ne] = k(W), [Z, Q] = ua("", s), [ie, le] = k(f), [Ce, be] = k(0),
|
|
4429
|
+
const re = ue(null), [te, ne] = k(W), [Z, Q] = ua("", s), [ie, le] = k(f), [Ce, be] = k(0), $ = ue(null), [xe, ce] = k(I), se = it(), Re = `${i}`, $e = se?.getError(Re), Ne = Ge(() => lc(
|
|
4430
4430
|
j,
|
|
4431
4431
|
c,
|
|
4432
4432
|
L,
|
|
@@ -4443,7 +4443,7 @@ function ls({
|
|
|
4443
4443
|
D
|
|
4444
4444
|
]), he = (Le) => oe && Le ? oe(Le) : Le, Ue = (Le, Y) => {
|
|
4445
4445
|
const De = Y && Y.origin ? Y.origin : Le;
|
|
4446
|
-
if ((ie ||
|
|
4446
|
+
if ((ie || $e) && (le(void 0), se?.clearError(Re)), ne((Fe) => De), r && i) {
|
|
4447
4447
|
const Fe = he(De);
|
|
4448
4448
|
ee ? ee(Fe) : ve.handleValueChange(Fe);
|
|
4449
4449
|
}
|
|
@@ -4453,7 +4453,7 @@ function ls({
|
|
|
4453
4453
|
}, Ye = (Le) => {
|
|
4454
4454
|
B && B(Le);
|
|
4455
4455
|
}, ge = (Le) => {
|
|
4456
|
-
|
|
4456
|
+
$ && $.current && $.current.scrollTop === $.current.scrollHeight - $.current.offsetHeight && I !== 1 / 0 && ce((Y) => Y + I);
|
|
4457
4457
|
}, N = ({ option: Le, checked: Y }) => {
|
|
4458
4458
|
if (v)
|
|
4459
4459
|
return /* @__PURE__ */ n(v, { ...Le, checked: Y });
|
|
@@ -4469,8 +4469,8 @@ function ls({
|
|
|
4469
4469
|
}, Te = T(() => {
|
|
4470
4470
|
fe();
|
|
4471
4471
|
}, []), qe = T((Le) => {
|
|
4472
|
-
r && i && ((Le.type === q.dataChanged || Le.type === q.recordChanged || Le.type === q.afterScroll || Le.type === q.afterCancel) && (fe(), ve.isDataSourceV2 || ze()), Le.type === q.onFieldError && Le.fieldName === i && (le(Le.error), se?.setError(
|
|
4473
|
-
}, [ve.isDataSourceV2, r, i, fe, ze, se,
|
|
4472
|
+
r && i && ((Le.type === q.dataChanged || Le.type === q.recordChanged || Le.type === q.afterScroll || Le.type === q.afterCancel) && (fe(), ve.isDataSourceV2 || ze()), Le.type === q.onFieldError && Le.fieldName === i && (le(Le.error), se?.setError(Re, Le.error), be((Y) => Y + 1), ve.isDataSourceV2 || ze()));
|
|
4473
|
+
}, [ve.isDataSourceV2, r, i, fe, ze, se, Re]), Ke = T((Le) => {
|
|
4474
4474
|
r && i && Le.type === q.dataChanged && be((Y) => Y + 1);
|
|
4475
4475
|
}, []), Je = ue(qe);
|
|
4476
4476
|
G(() => {
|
|
@@ -4510,9 +4510,9 @@ function ls({
|
|
|
4510
4510
|
maxDropdownHeight: 280,
|
|
4511
4511
|
ref: C || re,
|
|
4512
4512
|
label: d,
|
|
4513
|
-
error: ie ||
|
|
4513
|
+
error: ie || $e,
|
|
4514
4514
|
data: Ne,
|
|
4515
|
-
size:
|
|
4515
|
+
size: R,
|
|
4516
4516
|
leftSection: p,
|
|
4517
4517
|
width: m,
|
|
4518
4518
|
leftSectionWidth: g,
|
|
@@ -4534,7 +4534,7 @@ function ls({
|
|
|
4534
4534
|
nothingFoundMessage: x,
|
|
4535
4535
|
scrollAreaProps: {
|
|
4536
4536
|
viewportProps: { tabIndex: -1 },
|
|
4537
|
-
viewportRef:
|
|
4537
|
+
viewportRef: $,
|
|
4538
4538
|
onScrollPositionChange: ge
|
|
4539
4539
|
},
|
|
4540
4540
|
...ae
|
|
@@ -4586,17 +4586,17 @@ function zf({
|
|
|
4586
4586
|
G(() => {
|
|
4587
4587
|
c !== void 0 && c !== E && D(c);
|
|
4588
4588
|
}, [c]);
|
|
4589
|
-
const B = T((
|
|
4590
|
-
e && ((
|
|
4589
|
+
const B = T((R) => {
|
|
4590
|
+
e && ((R.type === q.dataChanged || R.type === q.fieldChanged || R.type === q.recordChanged || R.type === q.afterScroll || R.type === q.afterCancel) && (e && w(Jr(e, t, r)), f.isDataSourceV2 || h()), R.type === q.onFieldError && R.fieldName === l && (D(R.error), p?.setError(g, R.error)));
|
|
4591
4591
|
}, [f.isDataSourceV2, e, t, r, l, p, g]), V = () => {
|
|
4592
|
-
let
|
|
4593
|
-
return s && l && (
|
|
4594
|
-
}, X = (
|
|
4595
|
-
if (
|
|
4592
|
+
let R = "";
|
|
4593
|
+
return s && l && (R = s.getFieldValue(l), R && !i ? typeof t == "function" ? R = t(s.getCurrentRecord()) : R = Bt.getNestedProperty(R, r) : R || (R = "")), R;
|
|
4594
|
+
}, X = (R) => {
|
|
4595
|
+
if (R !== void 0 && R !== "" && R !== null) {
|
|
4596
4596
|
if (e && r && e.locate({
|
|
4597
|
-
[r]: Bt.getNestedProperty(
|
|
4597
|
+
[r]: Bt.getNestedProperty(R, r)
|
|
4598
4598
|
}) && s && l) {
|
|
4599
|
-
const U = i ? u(
|
|
4599
|
+
const U = i ? u(R) : e.getCurrentRecord();
|
|
4600
4600
|
f.handleValueChange(U);
|
|
4601
4601
|
}
|
|
4602
4602
|
} else
|
|
@@ -4605,8 +4605,8 @@ function zf({
|
|
|
4605
4605
|
G(() => {
|
|
4606
4606
|
H.current = B;
|
|
4607
4607
|
}, [B]);
|
|
4608
|
-
const W = T((
|
|
4609
|
-
H.current(
|
|
4608
|
+
const W = T((R) => {
|
|
4609
|
+
H.current(R);
|
|
4610
4610
|
}, []);
|
|
4611
4611
|
return G(() => {
|
|
4612
4612
|
if (w(Jr(e, t, r)), e)
|
|
@@ -4619,7 +4619,7 @@ function zf({
|
|
|
4619
4619
|
ls,
|
|
4620
4620
|
{
|
|
4621
4621
|
...d,
|
|
4622
|
-
getOptionLabel: (
|
|
4622
|
+
getOptionLabel: (R) => R.label ? R.label : cs(t, R),
|
|
4623
4623
|
getOptionValue: u,
|
|
4624
4624
|
dataSource: s,
|
|
4625
4625
|
dataField: l,
|
|
@@ -4667,12 +4667,12 @@ function uc(e) {
|
|
|
4667
4667
|
""
|
|
4668
4668
|
);
|
|
4669
4669
|
process.env.NODE_ENV === "development" && e.dataSource;
|
|
4670
|
-
const m = u || ue(null), [w, E] = k(""), D = nt(), { dataSource: B, dataField: V, onChangeValue: X, onFocusEnter: H, onFocusExit: W, saveWithMask: z, error: A } = e, [
|
|
4670
|
+
const m = u || ue(null), [w, E] = k(""), D = nt(), { dataSource: B, dataField: V, onChangeValue: X, onFocusEnter: H, onFocusExit: W, saveWithMask: z, error: A } = e, [R, U] = k(A), v = ue(0), { t: P } = Xe(), M = it(), O = `${V}`, I = M?.getError(O);
|
|
4671
4671
|
G(() => {
|
|
4672
|
-
A !== void 0 && A !==
|
|
4672
|
+
A !== void 0 && A !== R && U(A);
|
|
4673
4673
|
}, [A]), G(() => {
|
|
4674
|
-
h && h(
|
|
4675
|
-
}, [
|
|
4674
|
+
h && h(R);
|
|
4675
|
+
}, [R]);
|
|
4676
4676
|
const x = () => {
|
|
4677
4677
|
let Z = w;
|
|
4678
4678
|
B && V && (Z = B.getFieldValue(V), Z || (Z = "")), E(Z);
|
|
@@ -4698,7 +4698,7 @@ function uc(e) {
|
|
|
4698
4698
|
x();
|
|
4699
4699
|
}, []);
|
|
4700
4700
|
const C = (Z, Q) => {
|
|
4701
|
-
(
|
|
4701
|
+
(R || I) && (U(void 0), M?.clearError(O));
|
|
4702
4702
|
const le = Q.value.replaceAll("_", "");
|
|
4703
4703
|
v.current = le.length - Q.unmaskedValue.length, !(le.length !== i?.length && Q.unmaskedValue.length !== 0) && (E((Ce) => Z), B && !B.isBrowsing() && V && B.getFieldValue(V) !== Z && y.handleValueChange(Z), X && X(Z, Q.value));
|
|
4704
4704
|
}, j = (Z) => {
|
|
@@ -4711,7 +4711,7 @@ function uc(e) {
|
|
|
4711
4711
|
W && W(Z);
|
|
4712
4712
|
}, J = (Z) => {
|
|
4713
4713
|
H && H(Z);
|
|
4714
|
-
}, ee = () => l || y.isReadOnly, { dataSource: Se, dataField: de, showMask: oe, saveWithMask: we, onChangeValue: ze, onFocusEnter: ve, onFocusExit: re, ...te } = p, ne =
|
|
4714
|
+
}, ee = () => l || y.isReadOnly, { dataSource: Se, dataField: de, showMask: oe, saveWithMask: we, onChangeValue: ze, onFocusEnter: ve, onFocusExit: re, ...te } = p, ne = R || I;
|
|
4715
4715
|
return /* @__PURE__ */ n(rt.Wrapper, { ...r, label: d || e.label, error: ne, children: /* @__PURE__ */ n(
|
|
4716
4716
|
rt,
|
|
4717
4717
|
{
|
|
@@ -4775,9 +4775,9 @@ function If({
|
|
|
4775
4775
|
process.env.NODE_ENV;
|
|
4776
4776
|
const V = it(), X = `${t}`, H = V?.getError(X), [W, z] = k(p || ""), A = ue(null);
|
|
4777
4777
|
Mt();
|
|
4778
|
-
const [
|
|
4778
|
+
const [R, U] = k(c), v = nt();
|
|
4779
4779
|
G(() => {
|
|
4780
|
-
c !== void 0 && c !==
|
|
4780
|
+
c !== void 0 && c !== R && U(c);
|
|
4781
4781
|
}, [c]);
|
|
4782
4782
|
const P = () => {
|
|
4783
4783
|
let j = W;
|
|
@@ -4806,12 +4806,12 @@ function If({
|
|
|
4806
4806
|
const _ = (j) => {
|
|
4807
4807
|
j.preventDefault();
|
|
4808
4808
|
const J = j.target.value;
|
|
4809
|
-
j.persist(), (
|
|
4809
|
+
j.persist(), (R || H) && (U(void 0), V?.clearError(X)), z((Se) => J), e && !e.isBrowsing() && t && e.getFieldValue(t) !== J && B.handleValueChange(J), E && E(j, J);
|
|
4810
4810
|
}, S = (j) => {
|
|
4811
4811
|
m && m(j);
|
|
4812
4812
|
}, F = (j) => {
|
|
4813
4813
|
w && w(j);
|
|
4814
|
-
}, L = () => i || B.isReadOnly, C =
|
|
4814
|
+
}, L = () => i || B.isReadOnly, C = R || H;
|
|
4815
4815
|
return /* @__PURE__ */ n(
|
|
4816
4816
|
Ks,
|
|
4817
4817
|
{
|
|
@@ -4844,7 +4844,7 @@ function hc(e, t, r, i) {
|
|
|
4844
4844
|
key: Dt("radio")
|
|
4845
4845
|
}));
|
|
4846
4846
|
}
|
|
4847
|
-
function
|
|
4847
|
+
function Rf({
|
|
4848
4848
|
dataSource: e,
|
|
4849
4849
|
dataField: t,
|
|
4850
4850
|
style: r,
|
|
@@ -4877,9 +4877,9 @@ function $f({
|
|
|
4877
4877
|
process.env.NODE_ENV;
|
|
4878
4878
|
const B = it(), V = `${t}`, X = B?.getError(V), [H, W] = k(
|
|
4879
4879
|
hc(m, w, h, f)
|
|
4880
|
-
), [z, A] = k(g), [
|
|
4880
|
+
), [z, A] = k(g), [R, U] = k(a), v = nt();
|
|
4881
4881
|
G(() => {
|
|
4882
|
-
a !== void 0 && a !==
|
|
4882
|
+
a !== void 0 && a !== R && U(a);
|
|
4883
4883
|
}, [a]);
|
|
4884
4884
|
const P = () => {
|
|
4885
4885
|
let C = g;
|
|
@@ -4906,14 +4906,14 @@ function $f({
|
|
|
4906
4906
|
P();
|
|
4907
4907
|
}, []);
|
|
4908
4908
|
const _ = (C) => {
|
|
4909
|
-
(
|
|
4909
|
+
(R || X) && (U(void 0), B?.clearError(V)), A((ee) => C);
|
|
4910
4910
|
let J = C;
|
|
4911
4911
|
p && (J = p(C)), e && !e.isBrowsing() && t && e.getFieldValue(t) !== J && D.handleValueChange(J), d && d(J);
|
|
4912
4912
|
}, S = (C) => {
|
|
4913
4913
|
c && c(C);
|
|
4914
4914
|
}, F = (C) => {
|
|
4915
4915
|
u && u(C);
|
|
4916
|
-
}, L =
|
|
4916
|
+
}, L = R || X;
|
|
4917
4917
|
return /* @__PURE__ */ n(
|
|
4918
4918
|
Fi.Group,
|
|
4919
4919
|
{
|
|
@@ -4947,7 +4947,7 @@ function fc(e) {
|
|
|
4947
4947
|
return null;
|
|
4948
4948
|
}
|
|
4949
4949
|
fc.displayName = "ArchbaseRadioItem";
|
|
4950
|
-
function
|
|
4950
|
+
function $f({
|
|
4951
4951
|
dataSource: e,
|
|
4952
4952
|
dataField: t,
|
|
4953
4953
|
readOnly: r = !1,
|
|
@@ -4984,12 +4984,12 @@ function Rf({
|
|
|
4984
4984
|
W();
|
|
4985
4985
|
}, []), A = T((x) => {
|
|
4986
4986
|
e && t && ((x.type === q.dataChanged || x.type === q.recordChanged || x.type === q.afterScroll || x.type === q.afterCancel || x.type === q.afterEdit) && (W(), g.isDataSourceV2 || H()), x.type === q.onFieldError && x.fieldName === t && (X(x.error), y?.setError(m, x.error)));
|
|
4987
|
-
}, [g.isDataSourceV2, y, m]),
|
|
4987
|
+
}, [g.isDataSourceV2, y, m]), R = ue(A);
|
|
4988
4988
|
G(() => {
|
|
4989
|
-
|
|
4989
|
+
R.current = A;
|
|
4990
4990
|
}, [A]);
|
|
4991
4991
|
const U = T((x) => {
|
|
4992
|
-
|
|
4992
|
+
R.current(x);
|
|
4993
4993
|
}, []);
|
|
4994
4994
|
G(() => {
|
|
4995
4995
|
if (W(), e && t) {
|
|
@@ -5073,7 +5073,7 @@ function Pf({
|
|
|
5073
5073
|
onKeyDown: W,
|
|
5074
5074
|
onSave: z,
|
|
5075
5075
|
onSetToolbarButtons: A,
|
|
5076
|
-
onLoad:
|
|
5076
|
+
onLoad: R,
|
|
5077
5077
|
onDrop: U,
|
|
5078
5078
|
onPaste: v,
|
|
5079
5079
|
onImageUpload: P,
|
|
@@ -5115,17 +5115,17 @@ function Pf({
|
|
|
5115
5115
|
G(() => {
|
|
5116
5116
|
be.current = Ce;
|
|
5117
5117
|
}, [Ce]);
|
|
5118
|
-
const
|
|
5118
|
+
const $ = T((N) => {
|
|
5119
5119
|
be.current(N);
|
|
5120
5120
|
}, []);
|
|
5121
5121
|
G(() => {
|
|
5122
5122
|
if (ie(), t && r) {
|
|
5123
5123
|
const N = typeof t.addFieldChangeListener == "function";
|
|
5124
|
-
return t.addListener(
|
|
5125
|
-
t.removeListener(
|
|
5124
|
+
return t.addListener($), N && t.addFieldChangeListener(r, le), () => {
|
|
5125
|
+
t.removeListener($), N && t.removeFieldChangeListener(r, le);
|
|
5126
5126
|
};
|
|
5127
5127
|
}
|
|
5128
|
-
}, [t, r,
|
|
5128
|
+
}, [t, r, $, le]), lt(() => {
|
|
5129
5129
|
ie();
|
|
5130
5130
|
}, []);
|
|
5131
5131
|
const xe = (N) => {
|
|
@@ -5136,15 +5136,15 @@ function Pf({
|
|
|
5136
5136
|
w && w(N);
|
|
5137
5137
|
}, ce = (N, ae) => {
|
|
5138
5138
|
y && y(N);
|
|
5139
|
-
}, se = () => o || de.isReadOnly,
|
|
5139
|
+
}, se = () => o || de.isReadOnly, Re = ne || ze, [$e, Ne] = k(!1), [, he] = k({});
|
|
5140
5140
|
if (G(() => {
|
|
5141
5141
|
typeof window > "u" || pc().then(() => {
|
|
5142
5142
|
Ne(!0), he({});
|
|
5143
5143
|
});
|
|
5144
|
-
}, []),
|
|
5145
|
-
return /* @__PURE__ */ n(rt.Wrapper, { withAsterisk: s, label: l, description: a, error:
|
|
5144
|
+
}, []), !$e || !un)
|
|
5145
|
+
return /* @__PURE__ */ n(rt.Wrapper, { withAsterisk: s, label: l, description: a, error: Re, children: /* @__PURE__ */ n(Vo, { height: d || 200, width: u || "100%" }) });
|
|
5146
5146
|
const Ue = un, { en: Pe, es: Ye, ptBR: ge } = ds;
|
|
5147
|
-
return /* @__PURE__ */ n(rt.Wrapper, { withAsterisk: s, label: l, description: a, error:
|
|
5147
|
+
return /* @__PURE__ */ n(rt.Wrapper, { withAsterisk: s, label: l, description: a, error: Re, children: /* @__PURE__ */ n(
|
|
5148
5148
|
Ue,
|
|
5149
5149
|
{
|
|
5150
5150
|
autoFocus: e,
|
|
@@ -5168,7 +5168,7 @@ function Pf({
|
|
|
5168
5168
|
onBlur: ce,
|
|
5169
5169
|
onSave: z,
|
|
5170
5170
|
onSetToolbarButtons: A,
|
|
5171
|
-
onLoad:
|
|
5171
|
+
onLoad: R,
|
|
5172
5172
|
onDrop: U,
|
|
5173
5173
|
onPaste: v,
|
|
5174
5174
|
onImageUpload: P,
|
|
@@ -5231,7 +5231,7 @@ function Nf({
|
|
|
5231
5231
|
t,
|
|
5232
5232
|
r,
|
|
5233
5233
|
""
|
|
5234
|
-
), W = it(), z = `${r}`, A = W?.getError(z), [
|
|
5234
|
+
), W = it(), z = `${r}`, A = W?.getError(z), [R, U] = k(
|
|
5235
5235
|
yc(V, t, r)
|
|
5236
5236
|
), [v, P] = k(c), M = nt();
|
|
5237
5237
|
G(() => {
|
|
@@ -5282,7 +5282,7 @@ function Nf({
|
|
|
5282
5282
|
...h && { minHeight: h },
|
|
5283
5283
|
...X
|
|
5284
5284
|
}, re = {
|
|
5285
|
-
value:
|
|
5285
|
+
value: R || "",
|
|
5286
5286
|
style: ve,
|
|
5287
5287
|
onChange: F,
|
|
5288
5288
|
renderHTML: (te) => ze({ html: !0 }).render(te),
|
|
@@ -5342,7 +5342,7 @@ function Vf({
|
|
|
5342
5342
|
a
|
|
5343
5343
|
);
|
|
5344
5344
|
process.env.NODE_ENV;
|
|
5345
|
-
const H = it(), W = `${t}`, z = H?.getError(W), [A,
|
|
5345
|
+
const H = it(), W = `${t}`, z = H?.getError(W), [A, R] = k(c), U = ue(null), [v, P] = k(f), M = nt();
|
|
5346
5346
|
G(() => {
|
|
5347
5347
|
f !== void 0 && f !== v && P(f);
|
|
5348
5348
|
}, [f]);
|
|
@@ -5352,7 +5352,7 @@ function Vf({
|
|
|
5352
5352
|
const Se = e.getFieldValue(t);
|
|
5353
5353
|
Se != null && (ee = Se === l);
|
|
5354
5354
|
}
|
|
5355
|
-
|
|
5355
|
+
R(ee);
|
|
5356
5356
|
}, I = T(() => {
|
|
5357
5357
|
O();
|
|
5358
5358
|
}, []), x = T((ee) => {
|
|
@@ -5379,7 +5379,7 @@ function Vf({
|
|
|
5379
5379
|
return;
|
|
5380
5380
|
(v || z) && (P(void 0), H?.clearError(W));
|
|
5381
5381
|
const oe = ee.target.checked, we = oe ? l : a;
|
|
5382
|
-
|
|
5382
|
+
R(oe), e && !e.isBrowsing() && t && e.getFieldValue(t) !== we && X.handleValueChange(we), B && B(we, ee);
|
|
5383
5383
|
}, L = (ee) => {
|
|
5384
5384
|
E && E(ee);
|
|
5385
5385
|
}, C = (ee) => {
|
|
@@ -5480,7 +5480,7 @@ function Lf({
|
|
|
5480
5480
|
""
|
|
5481
5481
|
);
|
|
5482
5482
|
process.env.NODE_ENV;
|
|
5483
|
-
const [D, B] = k(""), V = ue(null), [X, H] = k(c), W = nt(), z = it(), A = `${t}`,
|
|
5483
|
+
const [D, B] = k(""), V = ue(null), [X, H] = k(c), W = nt(), z = it(), A = `${t}`, R = z?.getError(A);
|
|
5484
5484
|
G(() => {
|
|
5485
5485
|
c !== void 0 && c !== X && H(c);
|
|
5486
5486
|
}, [c]);
|
|
@@ -5511,7 +5511,7 @@ function Lf({
|
|
|
5511
5511
|
const I = (L) => {
|
|
5512
5512
|
L.preventDefault();
|
|
5513
5513
|
const C = L.target.value;
|
|
5514
|
-
if (L.persist(), (X ||
|
|
5514
|
+
if (L.persist(), (X || R) && (H(void 0), z?.clearError(A)), B((J) => C), e && !e.isBrowsing() && t && e.getFieldValue(t) !== C) {
|
|
5515
5515
|
const J = m ? C : btoa(C);
|
|
5516
5516
|
E.handleValueChange(J);
|
|
5517
5517
|
}
|
|
@@ -5520,7 +5520,7 @@ function Lf({
|
|
|
5520
5520
|
u && u(L);
|
|
5521
5521
|
}, _ = (L) => {
|
|
5522
5522
|
d && d(L);
|
|
5523
|
-
}, S = () => i || E.isReadOnly, F = X ||
|
|
5523
|
+
}, S = () => i || E.isReadOnly, F = X || R;
|
|
5524
5524
|
return /* @__PURE__ */ n(
|
|
5525
5525
|
yn,
|
|
5526
5526
|
{
|
|
@@ -5660,10 +5660,10 @@ function Bf({
|
|
|
5660
5660
|
spacing: g = "xs"
|
|
5661
5661
|
}) {
|
|
5662
5662
|
const y = (W) => W ? W.split(s).map((z) => {
|
|
5663
|
-
const [A,
|
|
5663
|
+
const [A, R] = z.split(l);
|
|
5664
5664
|
return {
|
|
5665
5665
|
key: a ? A.replace(/[{}]/g, "") : A,
|
|
5666
|
-
value:
|
|
5666
|
+
value: R
|
|
5667
5667
|
};
|
|
5668
5668
|
}) : [], [m, w] = k(y(e));
|
|
5669
5669
|
G(() => {
|
|
@@ -5679,13 +5679,13 @@ function Bf({
|
|
|
5679
5679
|
const W = [...m, { key: "", value: "" }];
|
|
5680
5680
|
w(W);
|
|
5681
5681
|
}, D = (W) => {
|
|
5682
|
-
const z = m.filter((A,
|
|
5682
|
+
const z = m.filter((A, R) => R !== W);
|
|
5683
5683
|
w(z);
|
|
5684
5684
|
}, B = (W, z) => {
|
|
5685
|
-
const A = m.map((
|
|
5685
|
+
const A = m.map((R, U) => U === W ? { ...R, key: z } : R);
|
|
5686
5686
|
w(A);
|
|
5687
5687
|
}, V = (W, z) => {
|
|
5688
|
-
const A = m.map((
|
|
5688
|
+
const A = m.map((R, U) => U === W ? { ...R, value: z } : R);
|
|
5689
5689
|
w(A);
|
|
5690
5690
|
}, X = m.some((W) => !W.key || !W.value), H = p === "horizontal" ? Ie : We;
|
|
5691
5691
|
return /* @__PURE__ */ n(rt.Wrapper, { label: u, error: d, children: /* @__PURE__ */ b(ye, { children: [
|
|
@@ -5816,8 +5816,8 @@ Até: ${i}`;
|
|
|
5816
5816
|
}, [d, t, r, g]), G(() => {
|
|
5817
5817
|
u && (u.current = B.current);
|
|
5818
5818
|
}, [u, B.current]), G(() => {
|
|
5819
|
-
if (i !== void 0)
|
|
5820
|
-
if (h(i), i && i !== "custom") {
|
|
5819
|
+
if (console.log("[TimeRangeSelector] useEffect defaultRangeValue=%s, selectedRange=%s", i, d), i !== void 0)
|
|
5820
|
+
if (console.log("[TimeRangeSelector] setSelectedRange(%s)", i), h(i), i && i !== "custom") {
|
|
5821
5821
|
const z = t.find((A) => A.value === i);
|
|
5822
5822
|
if (z) {
|
|
5823
5823
|
const A = z.rangeFunction(/* @__PURE__ */ new Date());
|
|
@@ -5841,11 +5841,11 @@ Até: ${i}`;
|
|
|
5841
5841
|
};
|
|
5842
5842
|
h("custom"), y(z), w(!1), r && r("custom", z);
|
|
5843
5843
|
}, H = (z) => {
|
|
5844
|
-
if (h(z), z && z !== "custom") {
|
|
5845
|
-
const A = t.find((
|
|
5844
|
+
if (console.log("[TimeRangeSelector] handleRangeChange value=%s", z), h(z), z && z !== "custom") {
|
|
5845
|
+
const A = t.find((R) => R.value === z);
|
|
5846
5846
|
if (A) {
|
|
5847
|
-
const
|
|
5848
|
-
y(
|
|
5847
|
+
const R = A.rangeFunction(/* @__PURE__ */ new Date());
|
|
5848
|
+
y(R), w(!1), r && r(z, R);
|
|
5849
5849
|
}
|
|
5850
5850
|
} else
|
|
5851
5851
|
z === "custom" && !f.start && !f.end && g.start && g.end && p({
|
|
@@ -5853,8 +5853,8 @@ Até: ${i}`;
|
|
|
5853
5853
|
end: new Date(g.end.getTime())
|
|
5854
5854
|
});
|
|
5855
5855
|
}, W = (z, A) => {
|
|
5856
|
-
const [
|
|
5857
|
-
v.setHours(
|
|
5856
|
+
const [R, U] = z.split(":").map(Number), v = new Date((A ? f.start : f.end) || /* @__PURE__ */ new Date());
|
|
5857
|
+
v.setHours(R, U), p((P) => ({
|
|
5858
5858
|
...P,
|
|
5859
5859
|
[A ? "start" : "end"]: new Date(v)
|
|
5860
5860
|
}));
|
|
@@ -6073,7 +6073,7 @@ function Sc(e) {
|
|
|
6073
6073
|
onFilter: W,
|
|
6074
6074
|
children: z,
|
|
6075
6075
|
withPadding: A = !1,
|
|
6076
|
-
listStyleType:
|
|
6076
|
+
listStyleType: R = "",
|
|
6077
6077
|
center: U = !1,
|
|
6078
6078
|
spacing: v = "md",
|
|
6079
6079
|
type: P = "none",
|
|
@@ -6090,7 +6090,7 @@ function Sc(e) {
|
|
|
6090
6090
|
}
|
|
6091
6091
|
} = e, [j, J] = k(m || -1), [ee, Se] = k(0), [de, oe] = k([]), we = {
|
|
6092
6092
|
root: {
|
|
6093
|
-
listStyleType:
|
|
6093
|
+
listStyleType: R,
|
|
6094
6094
|
color: r === "dark" ? t.colors.dark[0] : t.black,
|
|
6095
6095
|
margin: 0,
|
|
6096
6096
|
paddingLeft: A ? t.spacing.xl : 0,
|
|
@@ -6133,7 +6133,7 @@ function Sc(e) {
|
|
|
6133
6133
|
37: () => le(),
|
|
6134
6134
|
40: () => Ce(),
|
|
6135
6135
|
39: () => be(),
|
|
6136
|
-
33: () =>
|
|
6136
|
+
33: () => $(),
|
|
6137
6137
|
34: () => xe(),
|
|
6138
6138
|
36: () => ce(),
|
|
6139
6139
|
35: () => se()
|
|
@@ -6144,26 +6144,26 @@ function Sc(e) {
|
|
|
6144
6144
|
}
|
|
6145
6145
|
}, ie = () => {
|
|
6146
6146
|
const he = j;
|
|
6147
|
-
he - 1 >= 0 && Z(he - 1,
|
|
6147
|
+
he - 1 >= 0 && Z(he - 1, $e(he - 1));
|
|
6148
6148
|
}, le = () => {
|
|
6149
6149
|
ie();
|
|
6150
6150
|
}, Ce = () => {
|
|
6151
6151
|
const he = j;
|
|
6152
|
-
he + 1 < de.length && Z(he + 1,
|
|
6152
|
+
he + 1 < de.length && Z(he + 1, $e(he + 1));
|
|
6153
6153
|
}, be = () => {
|
|
6154
6154
|
Ce();
|
|
6155
|
-
},
|
|
6155
|
+
}, $ = () => {
|
|
6156
6156
|
const he = Math.max(j - 5, 0);
|
|
6157
|
-
Z(he,
|
|
6157
|
+
Z(he, $e(he));
|
|
6158
6158
|
}, xe = () => {
|
|
6159
6159
|
const he = Math.min(j + 5, de.length - 1);
|
|
6160
|
-
Z(he,
|
|
6160
|
+
Z(he, $e(he));
|
|
6161
6161
|
}, ce = () => {
|
|
6162
|
-
Z(0,
|
|
6162
|
+
Z(0, $e(0));
|
|
6163
6163
|
}, se = () => {
|
|
6164
6164
|
const he = de.length - 1;
|
|
6165
|
-
Z(he,
|
|
6166
|
-
},
|
|
6165
|
+
Z(he, $e(he));
|
|
6166
|
+
}, Re = (he) => he.browseRecords().map((Pe, Ye) => {
|
|
6167
6167
|
if (!Pe)
|
|
6168
6168
|
return null;
|
|
6169
6169
|
let ge = !0;
|
|
@@ -6226,7 +6226,7 @@ function Sc(e) {
|
|
|
6226
6226
|
}
|
|
6227
6227
|
}
|
|
6228
6228
|
return null;
|
|
6229
|
-
}),
|
|
6229
|
+
}), $e = (he) => {
|
|
6230
6230
|
let Ue;
|
|
6231
6231
|
return de.forEach((Pe) => {
|
|
6232
6232
|
Pe.props.index === he && (Ue = Pe.props.recordData);
|
|
@@ -6268,7 +6268,7 @@ function Sc(e) {
|
|
|
6268
6268
|
});
|
|
6269
6269
|
return G(() => {
|
|
6270
6270
|
if (V) {
|
|
6271
|
-
const he =
|
|
6271
|
+
const he = Re(V);
|
|
6272
6272
|
oe(he), te.isDataSourceV2 || ne();
|
|
6273
6273
|
} else if (z) {
|
|
6274
6274
|
const he = Ne();
|
|
@@ -6370,7 +6370,7 @@ const us = ({
|
|
|
6370
6370
|
color: t.focusedColor,
|
|
6371
6371
|
backgroundColor: t.focusedBackgroundColor
|
|
6372
6372
|
} : {};
|
|
6373
|
-
}, [e.id, l, t.focusedColor, t.focusedBackgroundColor, g, m]),
|
|
6373
|
+
}, [e.id, l, t.focusedColor, t.focusedBackgroundColor, g, m]), R = Ge(() => {
|
|
6374
6374
|
const U = [];
|
|
6375
6375
|
return e.nodes && e.state.expanded && e.nodes.forEach((v) => {
|
|
6376
6376
|
U.push(
|
|
@@ -6423,7 +6423,7 @@ const us = ({
|
|
|
6423
6423
|
f ? f(e) : /* @__PURE__ */ n(K, { truncate: !0, children: e.text })
|
|
6424
6424
|
] })
|
|
6425
6425
|
] }),
|
|
6426
|
-
/* @__PURE__ */ n("ul", { children:
|
|
6426
|
+
/* @__PURE__ */ n("ul", { children: R })
|
|
6427
6427
|
] }, `${t.id}_${e.id}`);
|
|
6428
6428
|
}, Ac = ({
|
|
6429
6429
|
id: e,
|
|
@@ -6453,7 +6453,7 @@ const us = ({
|
|
|
6453
6453
|
onRemovedNode: W,
|
|
6454
6454
|
onLoadDataSource: z,
|
|
6455
6455
|
onAddedNode: A,
|
|
6456
|
-
onExpandedNode:
|
|
6456
|
+
onExpandedNode: R,
|
|
6457
6457
|
onCollapsedNode: U,
|
|
6458
6458
|
onChangedDataSource: v,
|
|
6459
6459
|
dataSource: P,
|
|
@@ -6542,7 +6542,7 @@ const us = ({
|
|
|
6542
6542
|
N.push(...fe);
|
|
6543
6543
|
}
|
|
6544
6544
|
return N;
|
|
6545
|
-
},
|
|
6545
|
+
}, $ = T(
|
|
6546
6546
|
(ge, N) => {
|
|
6547
6547
|
const ae = [], fe = [...C], Te = re(fe, ge);
|
|
6548
6548
|
Te && Te.state && (E && N && ie(fe), Te.state.selected = N, ae.push(Te), w && !E && ae.push(...Q(Te.nodes || [], N)), j(fe), v && v(fe), N === !0 ? X && X(fe, Te, be(fe)) : H && H(fe, Te, be(fe)));
|
|
@@ -6575,10 +6575,10 @@ const us = ({
|
|
|
6575
6575
|
const ae = [...C], fe = [], Te = re(ae, ge);
|
|
6576
6576
|
if (Te && Te.state) {
|
|
6577
6577
|
let qe = !Te.nodes && !Te.isleaf;
|
|
6578
|
-
!z && qe && (qe = !1), Te.state.expanded = N, Te.state.loading = qe, fe.push(Te), j(ae), v && v(ae), N === !0 ?
|
|
6578
|
+
!z && qe && (qe = !1), Te.state.expanded = N, Te.state.loading = qe, fe.push(Te), j(ae), v && v(ae), N === !0 ? R && R(ae, fe) : U && U(ae, fe), qe && xe(Te.id);
|
|
6579
6579
|
}
|
|
6580
6580
|
},
|
|
6581
|
-
[C, v, z, xe,
|
|
6581
|
+
[C, v, z, xe, R, U]
|
|
6582
6582
|
), se = T(
|
|
6583
6583
|
(ge) => {
|
|
6584
6584
|
V && J && V(J);
|
|
@@ -6586,7 +6586,7 @@ const us = ({
|
|
|
6586
6586
|
N && (ee(N), B && B(N));
|
|
6587
6587
|
},
|
|
6588
6588
|
[C, J, B, V]
|
|
6589
|
-
),
|
|
6589
|
+
), Re = T(() => J, [J]), $e = T(
|
|
6590
6590
|
(ge, N) => {
|
|
6591
6591
|
if (D) {
|
|
6592
6592
|
const ae = re(C, ge);
|
|
@@ -6679,7 +6679,7 @@ const us = ({
|
|
|
6679
6679
|
const N = re(C, J.id);
|
|
6680
6680
|
if (N) {
|
|
6681
6681
|
let ae = !0;
|
|
6682
|
-
N.state.selected && (ae = !N.state.selected),
|
|
6682
|
+
N.state.selected && (ae = !N.state.selected), $(N.id, ae);
|
|
6683
6683
|
}
|
|
6684
6684
|
} else if (ge.keyCode === 107) {
|
|
6685
6685
|
ge.preventDefault();
|
|
@@ -6698,7 +6698,7 @@ const us = ({
|
|
|
6698
6698
|
Se.current,
|
|
6699
6699
|
te,
|
|
6700
6700
|
ne,
|
|
6701
|
-
|
|
6701
|
+
$,
|
|
6702
6702
|
ce
|
|
6703
6703
|
]
|
|
6704
6704
|
);
|
|
@@ -6719,12 +6719,12 @@ const us = ({
|
|
|
6719
6719
|
id: `${e}_${ge.id}`,
|
|
6720
6720
|
node: ge,
|
|
6721
6721
|
level: 1,
|
|
6722
|
-
onSelectedStatusChanged:
|
|
6722
|
+
onSelectedStatusChanged: $,
|
|
6723
6723
|
onExpandedCollapsedChanged: ce,
|
|
6724
6724
|
onFocusedChanged: se,
|
|
6725
|
-
onNodeDoubleClicked:
|
|
6725
|
+
onNodeDoubleClicked: $e,
|
|
6726
6726
|
onLoadDataSource: xe,
|
|
6727
|
-
getFocused:
|
|
6727
|
+
getFocused: Re,
|
|
6728
6728
|
addNode: Ne,
|
|
6729
6729
|
removeNode: he,
|
|
6730
6730
|
customRenderText: _,
|
|
@@ -6769,12 +6769,12 @@ const us = ({
|
|
|
6769
6769
|
g,
|
|
6770
6770
|
y,
|
|
6771
6771
|
m,
|
|
6772
|
-
|
|
6772
|
+
$,
|
|
6773
6773
|
ce,
|
|
6774
6774
|
se,
|
|
6775
|
-
Re,
|
|
6776
|
-
xe,
|
|
6777
6775
|
$e,
|
|
6776
|
+
xe,
|
|
6777
|
+
Re,
|
|
6778
6778
|
Ne,
|
|
6779
6779
|
he,
|
|
6780
6780
|
oe
|
|
@@ -6835,7 +6835,7 @@ const us = ({
|
|
|
6835
6835
|
onFocusEnter: W,
|
|
6836
6836
|
onFocusExit: z,
|
|
6837
6837
|
onDropdownOpen: A,
|
|
6838
|
-
onDropdownClose:
|
|
6838
|
+
onDropdownClose: R
|
|
6839
6839
|
}, U) => {
|
|
6840
6840
|
const v = Zt(), [P, M] = k(a), [O, I] = k(!1), [x, _] = k(w);
|
|
6841
6841
|
Ze(
|
|
@@ -6857,14 +6857,14 @@ const us = ({
|
|
|
6857
6857
|
if (Se(Q)) {
|
|
6858
6858
|
(x || L) && (_(void 0), S?.clearError(F));
|
|
6859
6859
|
const le = X(Q);
|
|
6860
|
-
ee(le, Q), I(!1),
|
|
6860
|
+
ee(le, Q), I(!1), R && R();
|
|
6861
6861
|
}
|
|
6862
|
-
}, [Se, ee,
|
|
6862
|
+
}, [Se, ee, R, X, x, L, S, F]), oe = T(() => {
|
|
6863
6863
|
if (r || i)
|
|
6864
6864
|
return;
|
|
6865
6865
|
const Q = !O;
|
|
6866
|
-
I(Q), Q && A ? A() : !Q &&
|
|
6867
|
-
}, [r, i, O, A,
|
|
6866
|
+
I(Q), Q && A ? A() : !Q && R && R();
|
|
6867
|
+
}, [r, i, O, A, R]), we = T(
|
|
6868
6868
|
(Q) => {
|
|
6869
6869
|
Q.type === q.onFieldError && Q.fieldName === t && (_(Q.error), S?.setError(F, Q.error));
|
|
6870
6870
|
},
|
|
@@ -6896,7 +6896,7 @@ const us = ({
|
|
|
6896
6896
|
closeOnEscape: !0,
|
|
6897
6897
|
clickOutsideEvents: ["mouseup", "touchend"],
|
|
6898
6898
|
onClose: () => {
|
|
6899
|
-
I(!1),
|
|
6899
|
+
I(!1), R && R();
|
|
6900
6900
|
},
|
|
6901
6901
|
children: [
|
|
6902
6902
|
/* @__PURE__ */ n(Ct.Target, { children: /* @__PURE__ */ n(
|
|
@@ -6973,7 +6973,7 @@ const us = ({
|
|
|
6973
6973
|
},
|
|
6974
6974
|
onBlur: (Q) => {
|
|
6975
6975
|
const ie = Q.relatedTarget, le = Q.currentTarget;
|
|
6976
|
-
(!ie || !le.contains(ie)) && O && (I(!1),
|
|
6976
|
+
(!ie || !le.contains(ie)) && O && (I(!1), R && R());
|
|
6977
6977
|
},
|
|
6978
6978
|
children: /* @__PURE__ */ n(
|
|
6979
6979
|
Ac,
|
|
@@ -7015,7 +7015,7 @@ const Ic = (e) => !e || e === "" ? [] : e.split(";").map((t) => {
|
|
|
7015
7015
|
days: r.split(",").filter((o) => o),
|
|
7016
7016
|
timeRange: i
|
|
7017
7017
|
};
|
|
7018
|
-
}),
|
|
7018
|
+
}), Rc = [
|
|
7019
7019
|
{ value: "1", label: "Segunda-feira" },
|
|
7020
7020
|
{ value: "2", label: "Terça-feira" },
|
|
7021
7021
|
{ value: "3", label: "Quarta-feira" },
|
|
@@ -7023,7 +7023,7 @@ const Ic = (e) => !e || e === "" ? [] : e.split(";").map((t) => {
|
|
|
7023
7023
|
{ value: "5", label: "Sexta-feira" },
|
|
7024
7024
|
{ value: "6", label: "Sábado" },
|
|
7025
7025
|
{ value: "7", label: "Domingo" }
|
|
7026
|
-
],
|
|
7026
|
+
], $c = [
|
|
7027
7027
|
{ value: "MONDAY", label: "Seg" },
|
|
7028
7028
|
{ value: "TUESDAY", label: "Ter" },
|
|
7029
7029
|
{ value: "WEDNESDAY", label: "Qua" },
|
|
@@ -7071,7 +7071,7 @@ function jf({
|
|
|
7071
7071
|
/* @__PURE__ */ n(
|
|
7072
7072
|
Mo,
|
|
7073
7073
|
{
|
|
7074
|
-
data:
|
|
7074
|
+
data: Rc,
|
|
7075
7075
|
value: s,
|
|
7076
7076
|
onChange: l,
|
|
7077
7077
|
placeholder: "Selecione os dias",
|
|
@@ -7114,7 +7114,7 @@ function jf({
|
|
|
7114
7114
|
),
|
|
7115
7115
|
u.map((g, y) => /* @__PURE__ */ n(ye, { mt: 2, children: /* @__PURE__ */ b(Ie, { justify: "space-between", children: [
|
|
7116
7116
|
/* @__PURE__ */ b(Ie, { wrap: "nowrap", children: [
|
|
7117
|
-
/* @__PURE__ */ n(K, { fw: 700, size: "12px", children: g.days.map((m) =>
|
|
7117
|
+
/* @__PURE__ */ n(K, { fw: 700, size: "12px", children: g.days.map((m) => $c.find((w) => w.value === m)?.label || "Dia desconhecido").join(",") }),
|
|
7118
7118
|
/* @__PURE__ */ n(K, { size: "12px", fw: 700, color: "blue", children: g.timeRange })
|
|
7119
7119
|
] }),
|
|
7120
7120
|
/* @__PURE__ */ n(
|
|
@@ -7398,7 +7398,7 @@ function Gf({
|
|
|
7398
7398
|
""
|
|
7399
7399
|
);
|
|
7400
7400
|
process.env.NODE_ENV;
|
|
7401
|
-
const z = it(), A = `${t}`,
|
|
7401
|
+
const z = it(), A = `${t}`, R = z?.getError(A), [U, v] = k(p || ""), P = ue(null), M = Mt(), { colorScheme: O } = Lt(), [I, x] = k(c), _ = nt();
|
|
7402
7402
|
G(() => {
|
|
7403
7403
|
c !== void 0 && c !== I && x(c);
|
|
7404
7404
|
}, [c]);
|
|
@@ -7429,7 +7429,7 @@ function Gf({
|
|
|
7429
7429
|
const J = (re) => {
|
|
7430
7430
|
re.preventDefault();
|
|
7431
7431
|
const te = re.target.value;
|
|
7432
|
-
re.persist(), (I ||
|
|
7432
|
+
re.persist(), (I || R) && (x(void 0), z?.clearError(A)), v((Z) => te), e && !e.isBrowsing() && t && e.getFieldValue(t) !== te && W.handleValueChange(te), V && V(te, re);
|
|
7433
7433
|
}, ee = (re) => {
|
|
7434
7434
|
D && D(re);
|
|
7435
7435
|
}, Se = (re) => {
|
|
@@ -7455,7 +7455,7 @@ function Gf({
|
|
|
7455
7455
|
disabled: r || de(),
|
|
7456
7456
|
children: g || /* @__PURE__ */ n(wr, { size: "1rem", stroke: 1.5 })
|
|
7457
7457
|
}
|
|
7458
|
-
) }) : null, ze = w ? we : H ? oe : null, ve = I ||
|
|
7458
|
+
) }) : null, ze = w ? we : H ? oe : null, ve = I || R;
|
|
7459
7459
|
return /* @__PURE__ */ n(
|
|
7460
7460
|
jr,
|
|
7461
7461
|
{
|
|
@@ -7506,7 +7506,7 @@ function qf({
|
|
|
7506
7506
|
imageQuality: D = 0.95,
|
|
7507
7507
|
...B
|
|
7508
7508
|
}) {
|
|
7509
|
-
const [V, X] = k(void 0), [H, W] = k(void 0), [z, A] = k(void 0), [
|
|
7509
|
+
const [V, X] = k(void 0), [H, W] = k(void 0), [z, A] = k(void 0), [R, U] = k(!1), [v, P] = k({ x: 0, y: 0 }), [M, O] = k(f), [I, x] = k(0), [_, S] = k(null), F = ue(null), L = ue(null), C = ue(null), [j, J] = k(u), [ee, Se] = k(""), de = nt(), oe = Zt(), [we, ze] = k(!1), { t: ve } = Xe(), re = Ze(
|
|
7510
7510
|
"ArchbaseAvatarEdit",
|
|
7511
7511
|
r,
|
|
7512
7512
|
i,
|
|
@@ -7539,7 +7539,7 @@ function qf({
|
|
|
7539
7539
|
}, [r, i, be, ie]), lt(() => {
|
|
7540
7540
|
Q();
|
|
7541
7541
|
}, []);
|
|
7542
|
-
const
|
|
7542
|
+
const $ = (N) => {
|
|
7543
7543
|
(j || Z) && (J(void 0), te?.clearError(ne));
|
|
7544
7544
|
const fe = N;
|
|
7545
7545
|
if (X((Te) => fe), W(fe), r && !r.isBrowsing() && i && r.getFieldValue(i) !== fe) {
|
|
@@ -7556,11 +7556,11 @@ function qf({
|
|
|
7556
7556
|
A(H), W(fe.result), U(!0), P({ x: 0, y: 0 }), O(f), x(0);
|
|
7557
7557
|
}, fe.readAsDataURL(ae), N.target.value = "";
|
|
7558
7558
|
}
|
|
7559
|
-
},
|
|
7559
|
+
}, Re = () => {
|
|
7560
7560
|
if (xe() || o)
|
|
7561
7561
|
return;
|
|
7562
|
-
(j || Z) && (J(void 0), te?.clearError(ne)), W(void 0),
|
|
7563
|
-
},
|
|
7562
|
+
(j || Z) && (J(void 0), te?.clearError(ne)), W(void 0), $(void 0);
|
|
7563
|
+
}, $e = (N, ae) => {
|
|
7564
7564
|
S(ae);
|
|
7565
7565
|
}, Ne = () => {
|
|
7566
7566
|
U(!1), W(z);
|
|
@@ -7613,7 +7613,7 @@ function qf({
|
|
|
7613
7613
|
})}`);
|
|
7614
7614
|
return;
|
|
7615
7615
|
}
|
|
7616
|
-
|
|
7616
|
+
$(fe), U(!1), A(void 0), Se("");
|
|
7617
7617
|
} catch (N) {
|
|
7618
7618
|
Se(`Error cropping the image: ${N}`);
|
|
7619
7619
|
}
|
|
@@ -7693,7 +7693,7 @@ function qf({
|
|
|
7693
7693
|
size: "lg",
|
|
7694
7694
|
color: "red",
|
|
7695
7695
|
variant: m,
|
|
7696
|
-
onClick:
|
|
7696
|
+
onClick: Re,
|
|
7697
7697
|
children: /* @__PURE__ */ n(qt, { color: oe.colors.red[4] })
|
|
7698
7698
|
}
|
|
7699
7699
|
) })
|
|
@@ -7739,7 +7739,7 @@ function qf({
|
|
|
7739
7739
|
/* @__PURE__ */ b(
|
|
7740
7740
|
Jt,
|
|
7741
7741
|
{
|
|
7742
|
-
opened:
|
|
7742
|
+
opened: R,
|
|
7743
7743
|
onClose: Ne,
|
|
7744
7744
|
size: "lg",
|
|
7745
7745
|
children: [
|
|
@@ -7759,7 +7759,7 @@ function qf({
|
|
|
7759
7759
|
cropShape: "round",
|
|
7760
7760
|
showGrid: !1,
|
|
7761
7761
|
onCropChange: P,
|
|
7762
|
-
onCropComplete:
|
|
7762
|
+
onCropComplete: $e,
|
|
7763
7763
|
onZoomChange: O,
|
|
7764
7764
|
onRotationChange: x,
|
|
7765
7765
|
ref: C
|
|
@@ -7926,7 +7926,7 @@ function Yf({ actions: e, variant: t, customComponents: r, options: i }) {
|
|
|
7926
7926
|
ga(() => {
|
|
7927
7927
|
A();
|
|
7928
7928
|
}, [e, p, A]);
|
|
7929
|
-
function
|
|
7929
|
+
function R(v) {
|
|
7930
7930
|
v.enabled && v.executeAction();
|
|
7931
7931
|
}
|
|
7932
7932
|
function U() {
|
|
@@ -7961,7 +7961,7 @@ function Yf({ actions: e, variant: t, customComponents: r, options: i }) {
|
|
|
7961
7961
|
action: v,
|
|
7962
7962
|
options: i,
|
|
7963
7963
|
variant: t,
|
|
7964
|
-
handleExecuteAction:
|
|
7964
|
+
handleExecuteAction: R,
|
|
7965
7965
|
customComponents: r
|
|
7966
7966
|
})
|
|
7967
7967
|
) })
|
|
@@ -7991,7 +7991,7 @@ function Yf({ actions: e, variant: t, customComponents: r, options: i }) {
|
|
|
7991
7991
|
action: v,
|
|
7992
7992
|
options: i,
|
|
7993
7993
|
variant: t,
|
|
7994
|
-
handleExecuteAction:
|
|
7994
|
+
handleExecuteAction: R,
|
|
7995
7995
|
customComponents: r
|
|
7996
7996
|
},
|
|
7997
7997
|
D,
|
|
@@ -8023,7 +8023,7 @@ function Qf({
|
|
|
8023
8023
|
verticalLineStrokeWidth: g = 2,
|
|
8024
8024
|
verticalLineStrokeOpacity: y = 1
|
|
8025
8025
|
}) {
|
|
8026
|
-
const { colorScheme: m } = Lt(), w = Mt(), [E, D] = k({}), [B, V] = k(0), [X, H] = k(0), [W, z] = k(0), [A,
|
|
8026
|
+
const { colorScheme: m } = Lt(), w = Mt(), [E, D] = k({}), [B, V] = k(0), [X, H] = k(0), [W, z] = k(0), [A, R] = k(/* @__PURE__ */ new Date()), [U, v] = k(/* @__PURE__ */ new Date()), [P, M] = k(""), O = { top: 20, right: 20, bottom: 30, left: 150 }, { ref: I, width: x, height: _ } = Fo();
|
|
8027
8027
|
function S() {
|
|
8028
8028
|
const de = "0123456789ABCDEF";
|
|
8029
8029
|
let oe = "#";
|
|
@@ -8040,24 +8040,24 @@ function Qf({
|
|
|
8040
8040
|
function C(de) {
|
|
8041
8041
|
const oe = bt.select(`#timeline-chart-${P}`), we = +Ir(oe.attr("width")) - O.left - O.right, ze = +Ir(oe.attr("height")) - O.top - O.bottom;
|
|
8042
8042
|
oe.selectAll("*").remove();
|
|
8043
|
-
const ve = bt.min(de, (
|
|
8043
|
+
const ve = bt.min(de, ($) => $.startTime) || /* @__PURE__ */ new Date(), re = bt.max(de, ($) => $.endTime) || /* @__PURE__ */ new Date(), te = bt.scaleTime().domain([
|
|
8044
8044
|
new Date(ve).setMilliseconds(0),
|
|
8045
8045
|
new Date(Math.ceil(re.getTime() / 1e3) * 1e3)
|
|
8046
|
-
]).range([0, we > 0 ? we : 0]), ne = bt.scaleBand().rangeRound([0, ze]).padding(0.1).domain(de.map((
|
|
8047
|
-
V(ne.domain().length),
|
|
8046
|
+
]).range([0, we > 0 ? we : 0]), ne = bt.scaleBand().rangeRound([0, ze]).padding(0.1).domain(de.map(($) => $.type));
|
|
8047
|
+
V(ne.domain().length), R(te.domain()[0]), v(te.domain()[1]);
|
|
8048
8048
|
const Z = oe.append("g").attr("transform", `translate(${O.left},${O.top})`), Q = (U.getTime() - A.getTime()) / 1e3 * c;
|
|
8049
|
-
Z.append("g").attr("class", "axis axis--x").call(bt.axisTop(te).tickFormat(ee).ticks(Q)).selectAll("text").attr("transform", function(
|
|
8049
|
+
Z.append("g").attr("class", "axis axis--x").call(bt.axisTop(te).tickFormat(ee).ticks(Q)).selectAll("text").attr("transform", function($) {
|
|
8050
8050
|
return `rotate(${f})`;
|
|
8051
|
-
}), d && j(Z, te, ze, Q), Z.append("g").attr("class", "axis axis--y").call(bt.axisLeft(ne)), Z.selectAll(".bar").data(de).enter().append("rect").attr("class", "bar").attr("x", (
|
|
8051
|
+
}), d && j(Z, te, ze, Q), Z.append("g").attr("class", "axis axis--y").call(bt.axisLeft(ne)), Z.selectAll(".bar").data(de).enter().append("rect").attr("class", "bar").attr("x", ($) => te($.startTime)).attr("y", ($) => ne($.type)).attr("width", ($) => te($.endTime) - te($.startTime)).attr("height", ne.bandwidth()).style("fill", ($) => F($.type)).style("z-index", 800).on("mouseover", function($, xe) {
|
|
8052
8052
|
bt.select(`#tooltip-${P}`).style("visibility", "visible").html(`Item: ${xe.type}<br>Início: ${Se(xe.startTime)}<br>Fim: ${Se(xe.endTime)}`);
|
|
8053
|
-
}).on("mousemove", function(
|
|
8054
|
-
bt.select(`#tooltip-${P}`).style("top",
|
|
8053
|
+
}).on("mousemove", function($) {
|
|
8054
|
+
bt.select(`#tooltip-${P}`).style("top", $.pageY < _ / 2 ? $.pageY - 10 + "px" : $.pageY - 150 + "px").style("left", $.pageX < x / 2 ? $.pageX + 10 + "px" : $.pageX - 240 + "px");
|
|
8055
8055
|
}).on("mouseout", function() {
|
|
8056
8056
|
bt.select(`#tooltip-${P}`).style("visibility", "hidden");
|
|
8057
|
-
}), de.forEach((
|
|
8058
|
-
const ce = `${((
|
|
8059
|
-
Z.append("rect").attr("x",
|
|
8060
|
-
}), Z.selectAll(".text").data(de).enter().append("text").attr("x", (
|
|
8057
|
+
}), de.forEach(($) => {
|
|
8058
|
+
const ce = `${(($.endTime.getTime() - $.startTime.getTime()) / 1e3).toFixed(s)}s`.length * 6 + 10, se = 20, Re = te($.startTime) + (te($.endTime) - te($.startTime)) / 2 - ce / 2, $e = ne($.type) + ne.bandwidth() / 2 - se / 2;
|
|
8059
|
+
Z.append("rect").attr("x", Re).attr("y", $e).attr("width", ce).attr("height", se).attr("fill", "white").attr("stroke", "black").attr("stroke-width", "0.5").attr("rx", 5).attr("ry", 5);
|
|
8060
|
+
}), Z.selectAll(".text").data(de).enter().append("text").attr("x", ($) => te($.startTime) + (te($.endTime) - te($.startTime)) / 2).attr("y", ($) => ne($.type) + ne.bandwidth() / 2).attr("dy", ".35em").attr("text-anchor", "middle").text(($) => `${(($.endTime.getTime() - $.startTime.getTime()) / 1e3).toFixed(s)}s`).style("fill", "#000").style("font-size", "12px");
|
|
8061
8061
|
const le = oe.select(".axis--x").node().getBBox();
|
|
8062
8062
|
z(le.height);
|
|
8063
8063
|
const be = oe.select(".axis--y").node().getBBox();
|
|
@@ -8098,7 +8098,7 @@ function Qf({
|
|
|
8098
8098
|
(oe) => xt(oe.endTime).isBefore(a) || xt(oe.endTime).isSame(a)
|
|
8099
8099
|
)), C(de);
|
|
8100
8100
|
}
|
|
8101
|
-
}, [e, X]), /* @__PURE__ */ b(
|
|
8101
|
+
}, [e, X]), /* @__PURE__ */ b(Rt, { ref: I, w: r || "100%", h: i || "100%", children: [
|
|
8102
8102
|
/* @__PURE__ */ n(
|
|
8103
8103
|
"svg",
|
|
8104
8104
|
{
|
|
@@ -8231,7 +8231,7 @@ function Uc({
|
|
|
8231
8231
|
groupColor: W,
|
|
8232
8232
|
disabled: z = !1,
|
|
8233
8233
|
loading: A,
|
|
8234
|
-
error:
|
|
8234
|
+
error: R,
|
|
8235
8235
|
noData: U,
|
|
8236
8236
|
onLoad: v,
|
|
8237
8237
|
onError: P,
|
|
@@ -8286,10 +8286,10 @@ function Uc({
|
|
|
8286
8286
|
const ie = await import("vis-timeline"), { Timeline: le } = ie, Ce = ie.DataSet || ie.default?.DataSet;
|
|
8287
8287
|
if (!Z || !S.current)
|
|
8288
8288
|
return;
|
|
8289
|
-
const be = new Ce(oe),
|
|
8289
|
+
const be = new Ce(oe), $ = we ? new Ce(we) : void 0, xe = new le(
|
|
8290
8290
|
S.current,
|
|
8291
8291
|
be,
|
|
8292
|
-
|
|
8292
|
+
$ ? { groups: $, ...de } : de,
|
|
8293
8293
|
ze ? { start: ze[0], end: ze[1] } : void 0
|
|
8294
8294
|
);
|
|
8295
8295
|
F.current = xe, x && (typeof x == "function" ? x(xe) : "current" in x && (x.current = xe)), xe.on("select", (ce) => {
|
|
@@ -8354,14 +8354,14 @@ function Uc({
|
|
|
8354
8354
|
typeof A == "string" ? /* @__PURE__ */ n(K, { children: A }) : A
|
|
8355
8355
|
] }) })
|
|
8356
8356
|
}
|
|
8357
|
-
) :
|
|
8357
|
+
) : R && typeof R != "boolean" ? /* @__PURE__ */ n(
|
|
8358
8358
|
Qe,
|
|
8359
8359
|
{
|
|
8360
8360
|
withBorder: !0,
|
|
8361
8361
|
p: "xl",
|
|
8362
8362
|
style: { width: l, height: a, minHeight: c },
|
|
8363
8363
|
className: V,
|
|
8364
|
-
children: /* @__PURE__ */ n(mt, { h: "100%", children: /* @__PURE__ */ n(vr, { icon: /* @__PURE__ */ n(cr, { size: 16 }), color: "red", title: "Error", children: typeof
|
|
8364
|
+
children: /* @__PURE__ */ n(mt, { h: "100%", children: /* @__PURE__ */ n(vr, { icon: /* @__PURE__ */ n(cr, { size: 16 }), color: "red", title: "Error", children: typeof R == "string" ? R : "Failed to load timeline" }) })
|
|
8365
8365
|
}
|
|
8366
8366
|
) : e.length === 0 && U ? /* @__PURE__ */ n(
|
|
8367
8367
|
Qe,
|
|
@@ -8803,12 +8803,12 @@ const Or = () => {
|
|
|
8803
8803
|
e
|
|
8804
8804
|
);
|
|
8805
8805
|
t.id || (t.id = Date.now().toString()), Object.freeze(t);
|
|
8806
|
-
const [r, i] = He.useState(t.height), [o, s] = He.useState(t.width), [l, a] = He.useState(t.top || 0), [c, u] = He.useState(t.left || 0), [d, h] = He.useState(0), [f, p] = He.useState(0), [g, y] = He.useState(!1), [m, w] = He.useState(!1), [E, D] = He.useState("▁"), [B, V] = He.useState("□"), [X, H] = He.useState(""), [W, z] = He.useState(Or()), [A,
|
|
8807
|
-
p(ee.clientY - l), h(ee.clientX - c), z(Or()),
|
|
8806
|
+
const [r, i] = He.useState(t.height), [o, s] = He.useState(t.width), [l, a] = He.useState(t.top || 0), [c, u] = He.useState(t.left || 0), [d, h] = He.useState(0), [f, p] = He.useState(0), [g, y] = He.useState(!1), [m, w] = He.useState(!1), [E, D] = He.useState("▁"), [B, V] = He.useState("□"), [X, H] = He.useState(""), [W, z] = He.useState(Or()), [A, R] = He.useState(1), { ref: U, width: v, height: P } = Fo(), M = He.useRef(null), O = ue(r), I = ue(o), x = ue(l), _ = ue(c), S = 500, F = (ee) => {
|
|
8807
|
+
p(ee.clientY - l), h(ee.clientX - c), z(Or()), R(0.5);
|
|
8808
8808
|
}, L = (ee) => {
|
|
8809
8809
|
u((ee.clientX || ee.screenX || c + d) - d), a((ee.clientY || ee.screenY || l + f) - f);
|
|
8810
8810
|
}, C = (ee) => {
|
|
8811
|
-
u((ee.clientX || ee.screenX) - d), a((ee.clientY || ee.screenY) - f),
|
|
8811
|
+
u((ee.clientX || ee.screenX) - d), a((ee.clientY || ee.screenY) - f), R(1);
|
|
8812
8812
|
}, j = () => {
|
|
8813
8813
|
if (H(`${S}ms ease-in-out`), g)
|
|
8814
8814
|
O.current = r, a(x.current || 0), u(_.current || 0), y(!1), D("▁"), w(!1);
|
|
@@ -10229,8 +10229,8 @@ const ap = ({
|
|
|
10229
10229
|
innerProps: r
|
|
10230
10230
|
}) => /* @__PURE__ */ b(Qe, { miw: "400px", children: [
|
|
10231
10231
|
/* @__PURE__ */ n(sr, { variant: "contained", children: /* @__PURE__ */ b(sr.Item, { value: "photos", children: [
|
|
10232
|
-
/* @__PURE__ */ n(sr.Control, { icon: /* @__PURE__ */ n(fi, { size: "2.8rem", style: { color: "red" } }), children: /* @__PURE__ */ n(
|
|
10233
|
-
/* @__PURE__ */ n(sr.Panel, { children: /* @__PURE__ */ n(
|
|
10232
|
+
/* @__PURE__ */ n(sr.Control, { icon: /* @__PURE__ */ n(fi, { size: "2.8rem", style: { color: "red" } }), children: /* @__PURE__ */ n(Rt, { h: "160px", mah: "160px", children: r.message }) }),
|
|
10233
|
+
/* @__PURE__ */ n(sr.Panel, { children: /* @__PURE__ */ n(Rt, { h: "200px", mah: "200px", children: r.detailMessage }) })
|
|
10234
10234
|
] }) }),
|
|
10235
10235
|
/* @__PURE__ */ n(
|
|
10236
10236
|
_e,
|
|
@@ -10430,7 +10430,7 @@ function fo({
|
|
|
10430
10430
|
const po = {
|
|
10431
10431
|
highlight: "#ffd700"
|
|
10432
10432
|
};
|
|
10433
|
-
function
|
|
10433
|
+
function Rd({
|
|
10434
10434
|
annotations: e,
|
|
10435
10435
|
onAnnotationAdd: t,
|
|
10436
10436
|
onAnnotationRemove: r,
|
|
@@ -10467,7 +10467,7 @@ function $d({
|
|
|
10467
10467
|
});
|
|
10468
10468
|
},
|
|
10469
10469
|
[u, h]
|
|
10470
|
-
),
|
|
10470
|
+
), R = T(() => {
|
|
10471
10471
|
if (!u || !p || !t) {
|
|
10472
10472
|
d(!1), f(null), g(null);
|
|
10473
10473
|
return;
|
|
@@ -10520,7 +10520,7 @@ function $d({
|
|
|
10520
10520
|
},
|
|
10521
10521
|
onMouseDown: z,
|
|
10522
10522
|
onMouseMove: A,
|
|
10523
|
-
onMouseUp:
|
|
10523
|
+
onMouseUp: R,
|
|
10524
10524
|
children: [
|
|
10525
10525
|
W.map((M) => {
|
|
10526
10526
|
const O = P(M.type);
|
|
@@ -10643,7 +10643,7 @@ function $d({
|
|
|
10643
10643
|
)
|
|
10644
10644
|
] });
|
|
10645
10645
|
}
|
|
10646
|
-
function
|
|
10646
|
+
function $d({
|
|
10647
10647
|
annotations: e,
|
|
10648
10648
|
onAnnotationRemove: t,
|
|
10649
10649
|
onAnnotationClick: r,
|
|
@@ -10739,7 +10739,7 @@ function dp({
|
|
|
10739
10739
|
style: z,
|
|
10740
10740
|
className: A
|
|
10741
10741
|
}) {
|
|
10742
|
-
const { t:
|
|
10742
|
+
const { t: R } = Xe(), [U, v] = k({ width: 0, height: 0 }), P = ue(null), {
|
|
10743
10743
|
currentValue: M,
|
|
10744
10744
|
loadDataSourceFieldValue: O,
|
|
10745
10745
|
isReadOnly: I
|
|
@@ -10786,7 +10786,7 @@ function dp({
|
|
|
10786
10786
|
}
|
|
10787
10787
|
}, [F, f]), be = T(() => {
|
|
10788
10788
|
L(1), f?.(1, C);
|
|
10789
|
-
}, [f, C]),
|
|
10789
|
+
}, [f, C]), $ = T(() => {
|
|
10790
10790
|
L(C), f?.(C, C);
|
|
10791
10791
|
}, [f, C]), xe = T(() => {
|
|
10792
10792
|
de((Ne) => (Ne + 90) % 360);
|
|
@@ -10798,7 +10798,7 @@ function dp({
|
|
|
10798
10798
|
}
|
|
10799
10799
|
}, [M, r]), se = T(() => {
|
|
10800
10800
|
window.print();
|
|
10801
|
-
}, []),
|
|
10801
|
+
}, []), Re = M || r, $e = X || I;
|
|
10802
10802
|
return /* @__PURE__ */ b(We, { gap: "xs", style: z, className: A, children: [
|
|
10803
10803
|
c && h !== "bottom" && /* @__PURE__ */ n(Qe, { withBorder: !0, p: "xs", children: /* @__PURE__ */ n(
|
|
10804
10804
|
fo,
|
|
@@ -10813,20 +10813,20 @@ function dp({
|
|
|
10813
10813
|
onNextPage: le,
|
|
10814
10814
|
onPreviousPage: Ce,
|
|
10815
10815
|
onFirstPage: be,
|
|
10816
|
-
onLastPage:
|
|
10816
|
+
onLastPage: $,
|
|
10817
10817
|
onRotate: xe,
|
|
10818
10818
|
onDownload: ce,
|
|
10819
10819
|
onPrint: se,
|
|
10820
|
-
disabled:
|
|
10820
|
+
disabled: $e
|
|
10821
10821
|
}
|
|
10822
10822
|
) }),
|
|
10823
10823
|
/* @__PURE__ */ b(Ie, { gap: "xs", align: "flex-start", children: [
|
|
10824
|
-
V && B && /* @__PURE__ */ n(Qe, { withBorder: !0, p: "xs", style: { width: 250 }, children: /* @__PURE__ */ n(
|
|
10825
|
-
|
|
10824
|
+
V && B && /* @__PURE__ */ n(Qe, { withBorder: !0, p: "xs", style: { width: 250 }, children: /* @__PURE__ */ n(Rt.Autosize, { mah: o, type: "always", children: /* @__PURE__ */ n(
|
|
10825
|
+
$d,
|
|
10826
10826
|
{
|
|
10827
10827
|
annotations: m,
|
|
10828
10828
|
onAnnotationRemove: E,
|
|
10829
|
-
disabled:
|
|
10829
|
+
disabled: $e
|
|
10830
10830
|
}
|
|
10831
10831
|
) }) }),
|
|
10832
10832
|
/* @__PURE__ */ b(
|
|
@@ -10838,14 +10838,14 @@ function dp({
|
|
|
10838
10838
|
ref: re,
|
|
10839
10839
|
children: [
|
|
10840
10840
|
/* @__PURE__ */ n(Ot, { visible: oe }),
|
|
10841
|
-
|
|
10841
|
+
Re ? ze ? /* @__PURE__ */ n(ye, { p: "xl", children: /* @__PURE__ */ n(K, { ta: "center", c: "red", children: W || String(R("Error loading PDF")) }) }) : /* @__PURE__ */ n(Ie, { justify: "center", style: { position: "relative" }, children: /* @__PURE__ */ n(
|
|
10842
10842
|
xl,
|
|
10843
10843
|
{
|
|
10844
|
-
file:
|
|
10844
|
+
file: Re,
|
|
10845
10845
|
onLoadSuccess: ne,
|
|
10846
10846
|
onLoadError: Z,
|
|
10847
|
-
loading: H || String(
|
|
10848
|
-
error: W || String(
|
|
10847
|
+
loading: H || String(R("Loading PDF...")),
|
|
10848
|
+
error: W || String(R("Error loading PDF")),
|
|
10849
10849
|
children: /* @__PURE__ */ b(ye, { ref: P, style: { position: "relative" }, children: [
|
|
10850
10850
|
/* @__PURE__ */ n(
|
|
10851
10851
|
El,
|
|
@@ -10857,13 +10857,13 @@ function dp({
|
|
|
10857
10857
|
}
|
|
10858
10858
|
),
|
|
10859
10859
|
B && U.width > 0 && /* @__PURE__ */ n(
|
|
10860
|
-
|
|
10860
|
+
Rd,
|
|
10861
10861
|
{
|
|
10862
10862
|
annotations: m,
|
|
10863
10863
|
onAnnotationAdd: w,
|
|
10864
10864
|
onAnnotationRemove: E,
|
|
10865
10865
|
onAnnotationUpdate: D,
|
|
10866
|
-
disabled:
|
|
10866
|
+
disabled: $e,
|
|
10867
10867
|
pageIndex: F - 1,
|
|
10868
10868
|
pageWidth: U.width,
|
|
10869
10869
|
pageHeight: U.height
|
|
@@ -10871,7 +10871,7 @@ function dp({
|
|
|
10871
10871
|
)
|
|
10872
10872
|
] })
|
|
10873
10873
|
}
|
|
10874
|
-
) }) : /* @__PURE__ */ n(ye, { p: "xl", children: /* @__PURE__ */ n(K, { ta: "center", c: "dimmed", children: String(
|
|
10874
|
+
) }) : /* @__PURE__ */ n(ye, { p: "xl", children: /* @__PURE__ */ n(K, { ta: "center", c: "dimmed", children: String(R("No PDF document loaded")) }) })
|
|
10875
10875
|
]
|
|
10876
10876
|
}
|
|
10877
10877
|
)
|
|
@@ -10889,11 +10889,11 @@ function dp({
|
|
|
10889
10889
|
onNextPage: le,
|
|
10890
10890
|
onPreviousPage: Ce,
|
|
10891
10891
|
onFirstPage: be,
|
|
10892
|
-
onLastPage:
|
|
10892
|
+
onLastPage: $,
|
|
10893
10893
|
onRotate: xe,
|
|
10894
10894
|
onDownload: ce,
|
|
10895
10895
|
onPrint: se,
|
|
10896
|
-
disabled:
|
|
10896
|
+
disabled: $e
|
|
10897
10897
|
}
|
|
10898
10898
|
) })
|
|
10899
10899
|
] });
|
|
@@ -11290,7 +11290,7 @@ function _d({ file: e, width: t, height: r, onLoad: i, onError: o, className: s
|
|
|
11290
11290
|
}
|
|
11291
11291
|
})();
|
|
11292
11292
|
}, [e]), c ? /* @__PURE__ */ n(vr, { icon: /* @__PURE__ */ n(cr, { size: 16 }), color: "red", title: "Error", children: "Failed to load text content" }) : l === null ? /* @__PURE__ */ n(mt, { h: "100%", children: /* @__PURE__ */ n(Ot, { visible: !0 }) }) : /* @__PURE__ */ n(
|
|
11293
|
-
|
|
11293
|
+
Rt.Autosize,
|
|
11294
11294
|
{
|
|
11295
11295
|
mah: r || 400,
|
|
11296
11296
|
type: "auto",
|
|
@@ -11350,7 +11350,7 @@ function jd({
|
|
|
11350
11350
|
onLoadStart: W,
|
|
11351
11351
|
onLoadEnd: z,
|
|
11352
11352
|
onError: A,
|
|
11353
|
-
onDownload:
|
|
11353
|
+
onDownload: R,
|
|
11354
11354
|
onPrint: U,
|
|
11355
11355
|
onZoomChange: v,
|
|
11356
11356
|
onPageChange: P,
|
|
@@ -11374,23 +11374,23 @@ function jd({
|
|
|
11374
11374
|
const se = await Vd(e, F, S);
|
|
11375
11375
|
J(se), Se("loaded"), z?.();
|
|
11376
11376
|
} catch (se) {
|
|
11377
|
-
const
|
|
11377
|
+
const Re = {
|
|
11378
11378
|
code: "FILE_TYPE_DETECTION_ERROR",
|
|
11379
11379
|
message: "Failed to detect file type",
|
|
11380
11380
|
details: se instanceof Error ? se.message : String(se)
|
|
11381
11381
|
};
|
|
11382
|
-
Se("error"), oe(
|
|
11382
|
+
Se("error"), oe(Re), A?.(Re);
|
|
11383
11383
|
}
|
|
11384
11384
|
})();
|
|
11385
11385
|
}, [e, t, F, S]);
|
|
11386
11386
|
const Z = T(async () => {
|
|
11387
11387
|
try {
|
|
11388
11388
|
const ce = await qr(e), se = document.createElement("a");
|
|
11389
|
-
se.href = ce, se.download = S || `download-${j}`, document.body.appendChild(se), se.click(), document.body.removeChild(se),
|
|
11389
|
+
se.href = ce, se.download = S || `download-${j}`, document.body.appendChild(se), se.click(), document.body.removeChild(se), R?.();
|
|
11390
11390
|
} catch (ce) {
|
|
11391
11391
|
console.error("Download failed:", ce);
|
|
11392
11392
|
}
|
|
11393
|
-
}, [e, S, j,
|
|
11393
|
+
}, [e, S, j, R]);
|
|
11394
11394
|
T(() => {
|
|
11395
11395
|
if (C.current) {
|
|
11396
11396
|
const ce = window.open("", "", "width=800,height=600");
|
|
@@ -11430,7 +11430,7 @@ function jd({
|
|
|
11430
11430
|
zoomOut: !0,
|
|
11431
11431
|
rotate: !0,
|
|
11432
11432
|
fullscreen: !0
|
|
11433
|
-
} : {} : l, [l]),
|
|
11433
|
+
} : {} : l, [l]), $ = () => !s || B ? null : /* @__PURE__ */ b(Ie, { gap: "xs", px: "md", py: "sm", style: { borderBottom: "1px solid var(--mantine-color-gray-3)" }, children: [
|
|
11434
11434
|
be.download && /* @__PURE__ */ n(
|
|
11435
11435
|
Ae,
|
|
11436
11436
|
{
|
|
@@ -11505,8 +11505,8 @@ function jd({
|
|
|
11505
11505
|
width: i,
|
|
11506
11506
|
height: o,
|
|
11507
11507
|
onLoad: () => Se("loaded"),
|
|
11508
|
-
onError: (
|
|
11509
|
-
oe(
|
|
11508
|
+
onError: (Re) => {
|
|
11509
|
+
oe(Re), Se("error"), A?.(Re);
|
|
11510
11510
|
},
|
|
11511
11511
|
style: {
|
|
11512
11512
|
transform: `scale(${we}) rotate(${ve}deg)`,
|
|
@@ -11559,7 +11559,7 @@ function jd({
|
|
|
11559
11559
|
className: E,
|
|
11560
11560
|
"aria-label": x || _ || "File previewer",
|
|
11561
11561
|
children: [
|
|
11562
|
-
a === "top" || a === "both" ?
|
|
11562
|
+
a === "top" || a === "both" ? $() : null,
|
|
11563
11563
|
/* @__PURE__ */ n(
|
|
11564
11564
|
ye,
|
|
11565
11565
|
{
|
|
@@ -11571,7 +11571,7 @@ function jd({
|
|
|
11571
11571
|
children: xe()
|
|
11572
11572
|
}
|
|
11573
11573
|
),
|
|
11574
|
-
a === "bottom" || a === "both" ?
|
|
11574
|
+
a === "bottom" || a === "both" ? $() : null
|
|
11575
11575
|
]
|
|
11576
11576
|
}
|
|
11577
11577
|
) : /* @__PURE__ */ n(Qe, { withBorder: !0, p: "xl", style: { width: i, height: o }, children: /* @__PURE__ */ n(mt, { h: "100%", children: /* @__PURE__ */ b(We, { align: "center", gap: "md", children: [
|
|
@@ -11709,7 +11709,7 @@ function Gd(e) {
|
|
|
11709
11709
|
if (r === "ends_with")
|
|
11710
11710
|
return `${t}=like=*${l}`;
|
|
11711
11711
|
if ((r === "between" || r === "date_between") && Array.isArray(i)) {
|
|
11712
|
-
const [a, c] = i, u =
|
|
11712
|
+
const [a, c] = i, u = Rr(a, o), d = Rr(c, o);
|
|
11713
11713
|
return tr(Qt.bt(t, u, d));
|
|
11714
11714
|
}
|
|
11715
11715
|
if ((r === "in" || r === "not_in") && Array.isArray(i)) {
|
|
@@ -11723,11 +11723,11 @@ function Gd(e) {
|
|
|
11723
11723
|
function qd(e, t, r) {
|
|
11724
11724
|
if ((r === "between" || r === "date_between") && Array.isArray(e)) {
|
|
11725
11725
|
const [i, o] = e;
|
|
11726
|
-
return `${
|
|
11726
|
+
return `${Rr(i, t)},${Rr(o, t)}`;
|
|
11727
11727
|
}
|
|
11728
|
-
return (r === "in" || r === "not_in") && Array.isArray(e) ? e.map((i) =>
|
|
11728
|
+
return (r === "in" || r === "not_in") && Array.isArray(e) ? e.map((i) => Rr(i, t)).join(",") : Rr(e, t);
|
|
11729
11729
|
}
|
|
11730
|
-
function
|
|
11730
|
+
function Rr(e, t) {
|
|
11731
11731
|
if (e == null)
|
|
11732
11732
|
return "";
|
|
11733
11733
|
switch (t) {
|
|
@@ -11846,17 +11846,17 @@ function Kd({
|
|
|
11846
11846
|
onFilterRemove: w,
|
|
11847
11847
|
onFiltersCleared: E
|
|
11848
11848
|
}) {
|
|
11849
|
-
const { t: D } = Xe(), B = ue(null), [V, X] = k([]), H = t !== void 0 ? t : V, [W, z] = k("field"), [A,
|
|
11849
|
+
const { t: D } = Xe(), B = ue(null), [V, X] = k([]), H = t !== void 0 ? t : V, [W, z] = k("field"), [A, R] = k(null), [U, v] = k(null), [P, M] = k(""), [O, { close: I, toggle: x }] = pa(!1);
|
|
11850
11850
|
G(() => {
|
|
11851
11851
|
if (i === "uncontrolled" && o) {
|
|
11852
11852
|
const ie = H.length > 0 ? H.map((le) => {
|
|
11853
|
-
const { key: Ce, operator: be, value:
|
|
11853
|
+
const { key: Ce, operator: be, value: $, type: xe } = le;
|
|
11854
11854
|
if (be === "is_null")
|
|
11855
11855
|
return `${Ce}=null=true`;
|
|
11856
11856
|
if (be === "is_not_null")
|
|
11857
11857
|
return `${Ce}=null=false`;
|
|
11858
|
-
let ce = String(
|
|
11859
|
-
return (xe === "date" || xe === "datetime") &&
|
|
11858
|
+
let ce = String($);
|
|
11859
|
+
return (xe === "date" || xe === "datetime") && $ instanceof Date && (ce = $.toISOString()), be === "contains" ? `${Ce}=like=*${ce}*` : be === "starts_with" ? `${Ce}=like=${ce}*` : be === "ends_with" ? `${Ce}=like=*${ce}` : be === "=" ? `${Ce}==${ce}` : be === "!=" ? `${Ce}!=${ce}` : be === ">" ? `${Ce}>${ce}` : be === "<" ? `${Ce}<${ce}` : be === ">=" ? `${Ce}>=${ce}` : be === "<=" ? `${Ce}<=${ce}` : `${Ce}==${ce}`;
|
|
11860
11860
|
}).join(";") : void 0;
|
|
11861
11861
|
o(ie);
|
|
11862
11862
|
}
|
|
@@ -11868,7 +11868,7 @@ function Kd({
|
|
|
11868
11868
|
), [_, P, W]), F = Ge(() => A ? A.operators || Qd(A.type) : [], [A]), L = Ge(() => A?.options || [], [A]), C = Ge(() => !P || W !== "value" ? L : L.filter(
|
|
11869
11869
|
(ie) => ie.label.toLowerCase().includes(P.toLowerCase())
|
|
11870
11870
|
), [L, P, W]), j = T(() => {
|
|
11871
|
-
z("field"),
|
|
11871
|
+
z("field"), R(null), v(null), M("");
|
|
11872
11872
|
}, []), J = T(() => {
|
|
11873
11873
|
if (!A || !U)
|
|
11874
11874
|
return;
|
|
@@ -11908,13 +11908,13 @@ function Kd({
|
|
|
11908
11908
|
}, [E]), de = T((ie) => {
|
|
11909
11909
|
if (r) {
|
|
11910
11910
|
const le = ie.length > 0 ? ie.map((Ce) => {
|
|
11911
|
-
const { key: be, operator:
|
|
11912
|
-
if (
|
|
11911
|
+
const { key: be, operator: $, value: xe, type: ce } = Ce;
|
|
11912
|
+
if ($ === "is_null")
|
|
11913
11913
|
return `${be}=null=true`;
|
|
11914
|
-
if (
|
|
11914
|
+
if ($ === "is_not_null")
|
|
11915
11915
|
return `${be}=null=false`;
|
|
11916
11916
|
let se = String(xe);
|
|
11917
|
-
return (ce === "date" || ce === "datetime") && xe instanceof Date && (se = xe.toISOString()),
|
|
11917
|
+
return (ce === "date" || ce === "datetime") && xe instanceof Date && (se = xe.toISOString()), $ === "contains" ? `${be}=like=*${se}*` : $ === "starts_with" ? `${be}=like=${se}*` : $ === "ends_with" ? `${be}=like=*${se}` : $ === "=" ? `${be}==${se}` : $ === "!=" ? `${be}!=${se}` : $ === ">" ? `${be}>${se}` : $ === "<" ? `${be}<${se}` : $ === ">=" ? `${be}>=${se}` : $ === "<=" ? `${be}<=${se}` : `${be}==${se}`;
|
|
11918
11918
|
}).join(";") : void 0;
|
|
11919
11919
|
r(ie, le);
|
|
11920
11920
|
} else
|
|
@@ -11932,7 +11932,7 @@ function Kd({
|
|
|
11932
11932
|
const le = S.find(
|
|
11933
11933
|
(Ce) => Ce.key.toLowerCase() === ie.toLowerCase() || Ce.label.toLowerCase() === ie.toLowerCase()
|
|
11934
11934
|
);
|
|
11935
|
-
le && (
|
|
11935
|
+
le && (R(le), M(""), z("operator"));
|
|
11936
11936
|
} else if (W === "operator" && ie) {
|
|
11937
11937
|
const le = F.find(
|
|
11938
11938
|
(Ce) => Ce.toLowerCase().includes(ie.toLowerCase())
|
|
@@ -11940,7 +11940,7 @@ function Kd({
|
|
|
11940
11940
|
le && (v(le), M(""), le === "is_null" || le === "is_not_null" ? J() : z("value"));
|
|
11941
11941
|
}
|
|
11942
11942
|
}, [W, S, F, J]), ve = T((ie) => {
|
|
11943
|
-
|
|
11943
|
+
R(ie), v(Xd(ie.type)), M(""), z("value");
|
|
11944
11944
|
}, []), re = T((ie) => {
|
|
11945
11945
|
v(ie), M(""), ie === "is_null" || ie === "is_not_null" ? J() : z("value");
|
|
11946
11946
|
}, [J]), te = T((ie) => {
|
|
@@ -11948,7 +11948,7 @@ function Kd({
|
|
|
11948
11948
|
}, [J]), ne = () => {
|
|
11949
11949
|
switch (W) {
|
|
11950
11950
|
case "field":
|
|
11951
|
-
return /* @__PURE__ */ n(ot, { children: S.length === 0 ? /* @__PURE__ */ n(K, { p: "md", c: "dimmed", size: "sm", children: String(D("No fields found")) }) : /* @__PURE__ */ n(
|
|
11951
|
+
return /* @__PURE__ */ n(ot, { children: S.length === 0 ? /* @__PURE__ */ n(K, { p: "md", c: "dimmed", size: "sm", children: String(D("No fields found")) }) : /* @__PURE__ */ n(Rt.Autosize, { mah: 300, children: /* @__PURE__ */ n(We, { gap: 0, children: S.map((le) => /* @__PURE__ */ b(
|
|
11952
11952
|
_e,
|
|
11953
11953
|
{
|
|
11954
11954
|
variant: "subtle",
|
|
@@ -11967,7 +11967,7 @@ function Kd({
|
|
|
11967
11967
|
le.key
|
|
11968
11968
|
)) }) }) });
|
|
11969
11969
|
case "operator":
|
|
11970
|
-
return /* @__PURE__ */ n(ot, { children: F.length === 0 ? /* @__PURE__ */ n(K, { p: "md", c: "dimmed", size: "sm", children: String(D("No operators available")) }) : /* @__PURE__ */ n(
|
|
11970
|
+
return /* @__PURE__ */ n(ot, { children: F.length === 0 ? /* @__PURE__ */ n(K, { p: "md", c: "dimmed", size: "sm", children: String(D("No operators available")) }) : /* @__PURE__ */ n(Rt.Autosize, { mah: 300, children: /* @__PURE__ */ n(We, { gap: 0, children: F.map((le) => /* @__PURE__ */ n(
|
|
11971
11971
|
_e,
|
|
11972
11972
|
{
|
|
11973
11973
|
variant: "subtle",
|
|
@@ -11983,7 +11983,7 @@ function Kd({
|
|
|
11983
11983
|
)) }) }) });
|
|
11984
11984
|
case "value":
|
|
11985
11985
|
if (A && (A.type === "enum" || L.length > 0))
|
|
11986
|
-
return /* @__PURE__ */ n(ot, { children: C.length === 0 ? /* @__PURE__ */ n(K, { p: "md", c: "dimmed", size: "sm", children: String(D("No options found")) }) : /* @__PURE__ */ n(
|
|
11986
|
+
return /* @__PURE__ */ n(ot, { children: C.length === 0 ? /* @__PURE__ */ n(K, { p: "md", c: "dimmed", size: "sm", children: String(D("No options found")) }) : /* @__PURE__ */ n(Rt.Autosize, { mah: 300, children: /* @__PURE__ */ n(We, { gap: 0, children: C.map((le) => /* @__PURE__ */ n(
|
|
11987
11987
|
_e,
|
|
11988
11988
|
{
|
|
11989
11989
|
variant: "subtle",
|
|
@@ -12646,7 +12646,7 @@ function au({
|
|
|
12646
12646
|
skipHtml: D = !1,
|
|
12647
12647
|
unwrapDisallowed: B = !1
|
|
12648
12648
|
}) {
|
|
12649
|
-
const [V, X] = k(!1), [H, W] = k(!1), [z, A] = k(null),
|
|
12649
|
+
const [V, X] = k(!1), [H, W] = k(!1), [z, A] = k(null), R = {
|
|
12650
12650
|
showLineNumbers: !0,
|
|
12651
12651
|
...t
|
|
12652
12652
|
}, U = {
|
|
@@ -12758,8 +12758,8 @@ function au({
|
|
|
12758
12758
|
{
|
|
12759
12759
|
language: C,
|
|
12760
12760
|
value: String(S).replace(/\n$/, ""),
|
|
12761
|
-
showLineNumbers:
|
|
12762
|
-
theme:
|
|
12761
|
+
showLineNumbers: R.showLineNumbers,
|
|
12762
|
+
theme: R.highlightTheme || su
|
|
12763
12763
|
}
|
|
12764
12764
|
) : /* @__PURE__ */ n(nu, { children: S });
|
|
12765
12765
|
},
|
|
@@ -12938,13 +12938,13 @@ function lu({
|
|
|
12938
12938
|
defaultSubtitles: c = !1,
|
|
12939
12939
|
preload: u = "metadata"
|
|
12940
12940
|
}) {
|
|
12941
|
-
const d = ue(null), h = ue(null), [f, p] = k("idle"), [g, y] = k(!1), [m, w] = k(s), [E, D] = k(0), [B, V] = k([]), [X, H] = k({ volume: o, muted: i }), [W, z] = k(1), [A,
|
|
12941
|
+
const d = ue(null), h = ue(null), [f, p] = k("idle"), [g, y] = k(!1), [m, w] = k(s), [E, D] = k(0), [B, V] = k([]), [X, H] = k({ volume: o, muted: i }), [W, z] = k(1), [A, R] = k(!1), [U, v] = k(!1), [P, M] = k(
|
|
12942
12942
|
l?.[0]?.label
|
|
12943
12943
|
), [O, I] = k(c), x = cu(e), _ = T(() => {
|
|
12944
12944
|
p("loading");
|
|
12945
12945
|
}, []), S = T(() => {
|
|
12946
|
-
const
|
|
12947
|
-
|
|
12946
|
+
const $ = d.current;
|
|
12947
|
+
$ && (D($.duration), s > 0 && ($.currentTime = s), p("ready"), t && ((t === "muted" || t === "any") && ($.muted = !0, H((xe) => ({ ...xe, muted: !0 }))), $.play().catch(() => {
|
|
12948
12948
|
})));
|
|
12949
12949
|
}, [t, s]), F = T(() => {
|
|
12950
12950
|
p("ready");
|
|
@@ -12955,29 +12955,29 @@ function lu({
|
|
|
12955
12955
|
}, []), j = T(() => {
|
|
12956
12956
|
y(!1), p("ended"), r && d.current && d.current.play();
|
|
12957
12957
|
}, [r]), J = T(() => {
|
|
12958
|
-
const
|
|
12959
|
-
if (
|
|
12960
|
-
w(
|
|
12958
|
+
const $ = d.current;
|
|
12959
|
+
if ($) {
|
|
12960
|
+
w($.currentTime);
|
|
12961
12961
|
const xe = [];
|
|
12962
|
-
for (let ce = 0; ce <
|
|
12962
|
+
for (let ce = 0; ce < $.buffered.length; ce++)
|
|
12963
12963
|
xe.push({
|
|
12964
|
-
start:
|
|
12965
|
-
end:
|
|
12966
|
-
length:
|
|
12964
|
+
start: $.buffered.start(ce),
|
|
12965
|
+
end: $.buffered.end(ce),
|
|
12966
|
+
length: $.buffered.end(ce) - $.buffered.start(ce)
|
|
12967
12967
|
});
|
|
12968
12968
|
V(xe);
|
|
12969
12969
|
}
|
|
12970
12970
|
}, []), ee = T(() => {
|
|
12971
|
-
const
|
|
12972
|
-
|
|
12973
|
-
volume:
|
|
12974
|
-
muted:
|
|
12971
|
+
const $ = d.current;
|
|
12972
|
+
$ && H({
|
|
12973
|
+
volume: $.volume,
|
|
12974
|
+
muted: $.muted
|
|
12975
12975
|
});
|
|
12976
12976
|
}, []), Se = T(() => {
|
|
12977
|
-
const
|
|
12978
|
-
|
|
12979
|
-
}, []), de = T((
|
|
12980
|
-
const ce =
|
|
12977
|
+
const $ = d.current;
|
|
12978
|
+
$ && z($.playbackRate);
|
|
12979
|
+
}, []), de = T(($) => {
|
|
12980
|
+
const ce = $.currentTarget.error;
|
|
12981
12981
|
p("error"), console.error("Video error:", ce);
|
|
12982
12982
|
}, []), oe = T(() => {
|
|
12983
12983
|
d.current && d.current.play();
|
|
@@ -12985,27 +12985,27 @@ function lu({
|
|
|
12985
12985
|
d.current && d.current.pause();
|
|
12986
12986
|
}, []), ze = T(() => {
|
|
12987
12987
|
g ? we() : oe();
|
|
12988
|
-
}, [g, oe, we]), ve = T((
|
|
12989
|
-
d.current && (d.current.currentTime = Math.max(0, Math.min(
|
|
12990
|
-
}, [E]), re = T((
|
|
12991
|
-
d.current && (d.current.volume = Math.max(0, Math.min(1,
|
|
12988
|
+
}, [g, oe, we]), ve = T(($) => {
|
|
12989
|
+
d.current && (d.current.currentTime = Math.max(0, Math.min($, E)));
|
|
12990
|
+
}, [E]), re = T(($) => {
|
|
12991
|
+
d.current && (d.current.volume = Math.max(0, Math.min(1, $)), $ > 0 && X.muted && (d.current.muted = !1));
|
|
12992
12992
|
}, [X.muted]), te = T(() => {
|
|
12993
12993
|
d.current && (d.current.muted = !d.current.muted);
|
|
12994
|
-
}, []), ne = T((
|
|
12995
|
-
d.current && (d.current.playbackRate =
|
|
12994
|
+
}, []), ne = T(($) => {
|
|
12995
|
+
d.current && (d.current.playbackRate = $);
|
|
12996
12996
|
}, []), Z = T(async () => {
|
|
12997
|
-
const
|
|
12998
|
-
if (
|
|
12997
|
+
const $ = h.current;
|
|
12998
|
+
if ($)
|
|
12999
12999
|
try {
|
|
13000
|
-
|
|
13000
|
+
$.requestFullscreen ? await $.requestFullscreen() : $.webkitRequestFullscreen && await $.webkitRequestFullscreen(), R(!0);
|
|
13001
13001
|
} catch (xe) {
|
|
13002
13002
|
console.warn("Fullscreen not supported", xe);
|
|
13003
13003
|
}
|
|
13004
13004
|
}, []), Q = T(async () => {
|
|
13005
13005
|
try {
|
|
13006
|
-
document.exitFullscreen ? await document.exitFullscreen() : document.webkitExitFullscreen && await document.webkitExitFullscreen(),
|
|
13007
|
-
} catch (
|
|
13008
|
-
console.warn("Exit fullscreen error",
|
|
13006
|
+
document.exitFullscreen ? await document.exitFullscreen() : document.webkitExitFullscreen && await document.webkitExitFullscreen(), R(!1);
|
|
13007
|
+
} catch ($) {
|
|
13008
|
+
console.warn("Exit fullscreen error", $);
|
|
13009
13009
|
}
|
|
13010
13010
|
}, []), ie = T(() => {
|
|
13011
13011
|
A ? Q() : Z();
|
|
@@ -13013,32 +13013,32 @@ function lu({
|
|
|
13013
13013
|
if (d.current && "pictureInPictureEnabled" in document)
|
|
13014
13014
|
try {
|
|
13015
13015
|
await d.current.requestPictureInPicture(), v(!0);
|
|
13016
|
-
} catch (
|
|
13017
|
-
console.warn("PiP not supported",
|
|
13016
|
+
} catch ($) {
|
|
13017
|
+
console.warn("PiP not supported", $);
|
|
13018
13018
|
}
|
|
13019
13019
|
}, []), Ce = T(async () => {
|
|
13020
13020
|
if (document.pictureInPictureElement)
|
|
13021
13021
|
try {
|
|
13022
13022
|
await document.exitPictureInPicture(), v(!1);
|
|
13023
|
-
} catch (
|
|
13024
|
-
console.warn("Exit PiP error",
|
|
13023
|
+
} catch ($) {
|
|
13024
|
+
console.warn("Exit PiP error", $);
|
|
13025
13025
|
}
|
|
13026
13026
|
}, []), be = T(() => {
|
|
13027
13027
|
U ? Ce() : le();
|
|
13028
13028
|
}, [U, le, Ce]);
|
|
13029
13029
|
return G(() => {
|
|
13030
|
-
const
|
|
13031
|
-
|
|
13030
|
+
const $ = () => {
|
|
13031
|
+
R(!!document.fullscreenElement);
|
|
13032
13032
|
};
|
|
13033
|
-
return document.addEventListener("fullscreenchange",
|
|
13034
|
-
document.removeEventListener("fullscreenchange",
|
|
13033
|
+
return document.addEventListener("fullscreenchange", $), () => {
|
|
13034
|
+
document.removeEventListener("fullscreenchange", $);
|
|
13035
13035
|
};
|
|
13036
13036
|
}, []), G(() => {
|
|
13037
|
-
const
|
|
13037
|
+
const $ = () => {
|
|
13038
13038
|
v(!!document.pictureInPictureElement);
|
|
13039
13039
|
};
|
|
13040
|
-
return document.addEventListener("enterpictureinpicture",
|
|
13041
|
-
document.removeEventListener("enterpictureinpicture",
|
|
13040
|
+
return document.addEventListener("enterpictureinpicture", $), document.addEventListener("leavepictureinpicture", $), () => {
|
|
13041
|
+
document.removeEventListener("enterpictureinpicture", $), document.removeEventListener("leavepictureinpicture", $);
|
|
13042
13042
|
};
|
|
13043
13043
|
}, []), {
|
|
13044
13044
|
videoRef: d,
|
|
@@ -13321,7 +13321,7 @@ function hu({
|
|
|
13321
13321
|
disabled: W = !1,
|
|
13322
13322
|
loading: z,
|
|
13323
13323
|
error: A,
|
|
13324
|
-
noData:
|
|
13324
|
+
noData: R,
|
|
13325
13325
|
onLoadStart: U,
|
|
13326
13326
|
onLoadedMetadata: v,
|
|
13327
13327
|
onCanPlay: P,
|
|
@@ -13363,40 +13363,40 @@ function hu({
|
|
|
13363
13363
|
if (!p || f)
|
|
13364
13364
|
return;
|
|
13365
13365
|
let se;
|
|
13366
|
-
const
|
|
13366
|
+
const Re = () => {
|
|
13367
13367
|
be(!1), clearTimeout(se), Q.isPlaying && (se = setTimeout(() => be(!0), g));
|
|
13368
|
-
},
|
|
13369
|
-
return
|
|
13370
|
-
clearTimeout(se),
|
|
13368
|
+
}, $e = Q.containerRef.current;
|
|
13369
|
+
return $e && ($e.addEventListener("mousemove", Re), $e.addEventListener("click", Re), $e.addEventListener("touchstart", Re)), Q.isPlaying && (se = setTimeout(() => be(!0), g)), () => {
|
|
13370
|
+
clearTimeout(se), $e && ($e.removeEventListener("mousemove", Re), $e.removeEventListener("click", Re), $e.removeEventListener("touchstart", Re));
|
|
13371
13371
|
};
|
|
13372
13372
|
}, [p, f, g, Q.isPlaying]), G(() => {
|
|
13373
13373
|
if (re)
|
|
13374
13374
|
return;
|
|
13375
|
-
const se = (
|
|
13376
|
-
const
|
|
13377
|
-
if (!(
|
|
13378
|
-
switch (
|
|
13375
|
+
const se = (Re) => {
|
|
13376
|
+
const $e = Q.containerRef.current;
|
|
13377
|
+
if (!(!$e || !document.activeElement || !$e.contains(document.activeElement)))
|
|
13378
|
+
switch (Re.key) {
|
|
13379
13379
|
case " ":
|
|
13380
13380
|
case "k":
|
|
13381
|
-
|
|
13381
|
+
Re.preventDefault(), Q.togglePlay();
|
|
13382
13382
|
break;
|
|
13383
13383
|
case "ArrowLeft":
|
|
13384
|
-
|
|
13384
|
+
Re.preventDefault(), Q.seek(Q.currentTime - 5);
|
|
13385
13385
|
break;
|
|
13386
13386
|
case "ArrowRight":
|
|
13387
|
-
|
|
13387
|
+
Re.preventDefault(), Q.seek(Q.currentTime + 5);
|
|
13388
13388
|
break;
|
|
13389
13389
|
case "ArrowUp":
|
|
13390
|
-
|
|
13390
|
+
Re.preventDefault(), Q.setVolume(Math.min(1, Q.volume + 0.1));
|
|
13391
13391
|
break;
|
|
13392
13392
|
case "ArrowDown":
|
|
13393
|
-
|
|
13393
|
+
Re.preventDefault(), Q.setVolume(Math.max(0, Q.volume - 0.1));
|
|
13394
13394
|
break;
|
|
13395
13395
|
case "f":
|
|
13396
|
-
|
|
13396
|
+
Re.preventDefault(), Q.toggleFullscreen();
|
|
13397
13397
|
break;
|
|
13398
13398
|
case "m":
|
|
13399
|
-
|
|
13399
|
+
Re.preventDefault(), Q.toggleMute();
|
|
13400
13400
|
break;
|
|
13401
13401
|
}
|
|
13402
13402
|
};
|
|
@@ -13429,7 +13429,7 @@ function hu({
|
|
|
13429
13429
|
}, [Q.isFullscreen, ee]), G(() => {
|
|
13430
13430
|
Se?.(Q.isPiP);
|
|
13431
13431
|
}, [Q.isPiP, Se]);
|
|
13432
|
-
const
|
|
13432
|
+
const $ = () => {
|
|
13433
13433
|
ve || Q.togglePlay();
|
|
13434
13434
|
};
|
|
13435
13435
|
if (Q.playerState === "error")
|
|
@@ -13454,13 +13454,13 @@ function hu({
|
|
|
13454
13454
|
p: "xl",
|
|
13455
13455
|
style: { width: m, height: typeof w == "number" ? w : void 0 },
|
|
13456
13456
|
className: X,
|
|
13457
|
-
children: /* @__PURE__ */ n(mt, { h: "100%", children: /* @__PURE__ */ n(K, { c: "dimmed", children:
|
|
13457
|
+
children: /* @__PURE__ */ n(mt, { h: "100%", children: /* @__PURE__ */ n(K, { c: "dimmed", children: R || Z("No video source provided") }) })
|
|
13458
13458
|
}
|
|
13459
13459
|
);
|
|
13460
13460
|
const xe = (() => {
|
|
13461
13461
|
if (D) {
|
|
13462
|
-
const [se,
|
|
13463
|
-
return `${
|
|
13462
|
+
const [se, Re] = D.split(":").map(Number);
|
|
13463
|
+
return `${Re / se * 100}%`;
|
|
13464
13464
|
}
|
|
13465
13465
|
return "56.25%";
|
|
13466
13466
|
})(), ce = d && !W && (f || !Ce);
|
|
@@ -13493,7 +13493,7 @@ function hu({
|
|
|
13493
13493
|
alignItems: "center",
|
|
13494
13494
|
justifyContent: "center"
|
|
13495
13495
|
},
|
|
13496
|
-
onClick:
|
|
13496
|
+
onClick: $,
|
|
13497
13497
|
children: [
|
|
13498
13498
|
Q.playerState === "loading" && /* @__PURE__ */ n(Ot, { visible: !0 }),
|
|
13499
13499
|
/* @__PURE__ */ b(
|
|
@@ -13526,8 +13526,8 @@ function hu({
|
|
|
13526
13526
|
onSeeking: F,
|
|
13527
13527
|
onSeeked: () => L?.(Q.currentTime),
|
|
13528
13528
|
children: [
|
|
13529
|
-
Q.sources.map((se,
|
|
13530
|
-
c?.map((se,
|
|
13529
|
+
Q.sources.map((se, Re) => /* @__PURE__ */ n("source", { src: se.src, type: se.type }, Re)),
|
|
13530
|
+
c?.map((se, Re) => /* @__PURE__ */ n(
|
|
13531
13531
|
"track",
|
|
13532
13532
|
{
|
|
13533
13533
|
kind: se.kind,
|
|
@@ -13536,7 +13536,7 @@ function hu({
|
|
|
13536
13536
|
label: se.label,
|
|
13537
13537
|
default: se.default
|
|
13538
13538
|
},
|
|
13539
|
-
|
|
13539
|
+
Re
|
|
13540
13540
|
))
|
|
13541
13541
|
]
|
|
13542
13542
|
}
|
|
@@ -13607,7 +13607,7 @@ function hu({
|
|
|
13607
13607
|
);
|
|
13608
13608
|
}
|
|
13609
13609
|
hu.displayName = "ArchbaseVideoPlayer";
|
|
13610
|
-
const Et = "\x1B",
|
|
13610
|
+
const Et = "\x1B", $r = "", wo = {
|
|
13611
13611
|
left: `${Et}a\0`,
|
|
13612
13612
|
center: `${Et}a`,
|
|
13613
13613
|
right: `${Et}a`
|
|
@@ -13678,20 +13678,20 @@ function mu(e = "full") {
|
|
|
13678
13678
|
if (e === "none")
|
|
13679
13679
|
return new Uint8Array(0);
|
|
13680
13680
|
const t = e === "full" ? "B" : "C";
|
|
13681
|
-
return et(
|
|
13681
|
+
return et($r + "V" + t + "\0");
|
|
13682
13682
|
}
|
|
13683
13683
|
function Cp() {
|
|
13684
13684
|
return et(Et + "p\0<\0");
|
|
13685
13685
|
}
|
|
13686
13686
|
function gu(e, t = 8) {
|
|
13687
13687
|
const r = [];
|
|
13688
|
-
r.push(
|
|
13688
|
+
r.push($r + "(k"), r.push(""), r.push("\0"), r.push("1"), r.push("P"), r.push($r + "(k"), r.push("\0"), r.push("1"), r.push("Q"), r.push("\0");
|
|
13689
13689
|
const i = new TextEncoder().encode(e);
|
|
13690
|
-
return r.push(
|
|
13690
|
+
return r.push($r + "(k"), r.push(String.fromCharCode(i.length + 3)), r.push("\0"), r.push("1"), r.push(""), r.push(String.fromCharCode(...i)), r.push($r + "(k"), r.push("\0"), r.push("2"), r.push(String.fromCharCode(t)), r.push("\0"), et(r.join(""));
|
|
13691
13691
|
}
|
|
13692
13692
|
function yu(e, t = 162) {
|
|
13693
13693
|
const r = [];
|
|
13694
|
-
r.push(
|
|
13694
|
+
r.push($r + "k"), r.push("I"), r.push("\0"), r.push(String.fromCharCode(Math.min(t, 255))), r.push(String.fromCharCode(e.length));
|
|
13695
13695
|
const i = new TextEncoder().encode(e);
|
|
13696
13696
|
return r.push(String.fromCharCode(...i)), et(r.join(""));
|
|
13697
13697
|
}
|
|
@@ -13962,7 +13962,7 @@ function Eu({
|
|
|
13962
13962
|
}, 3e3);
|
|
13963
13963
|
}
|
|
13964
13964
|
}
|
|
13965
|
-
}, [z, a, d, h, f, p]),
|
|
13965
|
+
}, [z, a, d, h, f, p]), R = T(() => {
|
|
13966
13966
|
if (!z)
|
|
13967
13967
|
return;
|
|
13968
13968
|
const P = new Blob([z], { type: "application/octet-stream" }), M = URL.createObjectURL(P), O = document.createElement("a");
|
|
@@ -14035,7 +14035,7 @@ function Eu({
|
|
|
14035
14035
|
{
|
|
14036
14036
|
variant: "light",
|
|
14037
14037
|
leftSection: /* @__PURE__ */ n(Mr, { size: 16 }),
|
|
14038
|
-
onClick:
|
|
14038
|
+
onClick: R,
|
|
14039
14039
|
disabled: !z,
|
|
14040
14040
|
children: E("Download")
|
|
14041
14041
|
}
|
|
@@ -14313,7 +14313,7 @@ function Iu({
|
|
|
14313
14313
|
] }),
|
|
14314
14314
|
/* @__PURE__ */ b(ye, { children: [
|
|
14315
14315
|
/* @__PURE__ */ n(K, { size: "sm", fw: 500, mb: "xs", children: "Paleta de Cores" }),
|
|
14316
|
-
/* @__PURE__ */ n(
|
|
14316
|
+
/* @__PURE__ */ n(Rt.Autosize, { mah: 400, children: /* @__PURE__ */ n(We, { gap: "sm", children: o.map((s) => {
|
|
14317
14317
|
const l = e[s];
|
|
14318
14318
|
return typeof l != "object" ? null : /* @__PURE__ */ b(ye, { children: [
|
|
14319
14319
|
/* @__PURE__ */ b(Ie, { justify: "space-between", mb: "xs", children: [
|
|
@@ -14359,7 +14359,7 @@ function Iu({
|
|
|
14359
14359
|
] })
|
|
14360
14360
|
] });
|
|
14361
14361
|
}
|
|
14362
|
-
function
|
|
14362
|
+
function Ru({
|
|
14363
14363
|
theme: e,
|
|
14364
14364
|
onChange: t
|
|
14365
14365
|
}) {
|
|
@@ -14405,7 +14405,7 @@ function $u({
|
|
|
14405
14405
|
] })
|
|
14406
14406
|
] });
|
|
14407
14407
|
}
|
|
14408
|
-
function
|
|
14408
|
+
function $u({
|
|
14409
14409
|
theme: e,
|
|
14410
14410
|
onChange: t
|
|
14411
14411
|
}) {
|
|
@@ -14608,7 +14608,7 @@ function Vu({
|
|
|
14608
14608
|
header: H,
|
|
14609
14609
|
footer: W
|
|
14610
14610
|
}) {
|
|
14611
|
-
const { t: z } = Xe(), A = Mt(), [
|
|
14611
|
+
const { t: z } = Xe(), A = Mt(), [R, U] = k(o), [v, P] = k(() => {
|
|
14612
14612
|
const j = Hn(A, e);
|
|
14613
14613
|
return s ? Hn(j, Eo(s)) : j;
|
|
14614
14614
|
}), [M, O] = k(v.primaryColor || "blue"), [I, x] = k(!1), _ = T((j) => {
|
|
@@ -14623,7 +14623,7 @@ function Vu({
|
|
|
14623
14623
|
a?.(j, J);
|
|
14624
14624
|
}, [a]);
|
|
14625
14625
|
const L = () => {
|
|
14626
|
-
switch (
|
|
14626
|
+
switch (R) {
|
|
14627
14627
|
case "colors":
|
|
14628
14628
|
return /* @__PURE__ */ n(
|
|
14629
14629
|
Iu,
|
|
@@ -14636,7 +14636,7 @@ function Vu({
|
|
|
14636
14636
|
);
|
|
14637
14637
|
case "typography":
|
|
14638
14638
|
return /* @__PURE__ */ n(
|
|
14639
|
-
|
|
14639
|
+
Ru,
|
|
14640
14640
|
{
|
|
14641
14641
|
theme: v,
|
|
14642
14642
|
onChange: _
|
|
@@ -14644,7 +14644,7 @@ function Vu({
|
|
|
14644
14644
|
);
|
|
14645
14645
|
case "spacing":
|
|
14646
14646
|
return /* @__PURE__ */ n(
|
|
14647
|
-
|
|
14647
|
+
$u,
|
|
14648
14648
|
{
|
|
14649
14649
|
theme: v,
|
|
14650
14650
|
onChange: _
|
|
@@ -14661,7 +14661,7 @@ function Vu({
|
|
|
14661
14661
|
default:
|
|
14662
14662
|
return /* @__PURE__ */ b(vr, { icon: /* @__PURE__ */ n(qi, { size: 16 }), children: [
|
|
14663
14663
|
"Seção ",
|
|
14664
|
-
|
|
14664
|
+
R,
|
|
14665
14665
|
" em desenvolvimento"
|
|
14666
14666
|
] });
|
|
14667
14667
|
}
|
|
@@ -14716,16 +14716,16 @@ function Vu({
|
|
|
14716
14716
|
backgroundColor: "var(--mantine-color-gray-0)"
|
|
14717
14717
|
},
|
|
14718
14718
|
children: /* @__PURE__ */ n(
|
|
14719
|
-
|
|
14719
|
+
$n,
|
|
14720
14720
|
{
|
|
14721
14721
|
orientation: "vertical",
|
|
14722
|
-
value:
|
|
14722
|
+
value: R,
|
|
14723
14723
|
onChange: (j) => U(j),
|
|
14724
14724
|
variant: "pills",
|
|
14725
|
-
children: /* @__PURE__ */ n(
|
|
14725
|
+
children: /* @__PURE__ */ n($n.List, { children: C.map((j) => {
|
|
14726
14726
|
const J = j.icon;
|
|
14727
14727
|
return /* @__PURE__ */ n(
|
|
14728
|
-
|
|
14728
|
+
$n.Tab,
|
|
14729
14729
|
{
|
|
14730
14730
|
value: j.value,
|
|
14731
14731
|
leftSection: /* @__PURE__ */ n(J, { size: 16 }),
|
|
@@ -14873,7 +14873,7 @@ async function Bu(e, t) {
|
|
|
14873
14873
|
u && (u.s = s);
|
|
14874
14874
|
}
|
|
14875
14875
|
Br.book_append_sheet(r, i, t.sheetName || "Sheet1");
|
|
14876
|
-
const l =
|
|
14876
|
+
const l = Rl(r, {
|
|
14877
14877
|
bookType: "xlsx",
|
|
14878
14878
|
type: "array",
|
|
14879
14879
|
bookSST: !1,
|
|
@@ -15065,7 +15065,7 @@ function ju({
|
|
|
15065
15065
|
}
|
|
15066
15066
|
},
|
|
15067
15067
|
children: [
|
|
15068
|
-
/* @__PURE__ */ n(
|
|
15068
|
+
/* @__PURE__ */ n(Rt.Autosize, { mah: "70vh", p: "md", offsetScrollbars: !0, children: /* @__PURE__ */ b(We, { gap: "md", pb: 8, children: [
|
|
15069
15069
|
/* @__PURE__ */ n(
|
|
15070
15070
|
Tt,
|
|
15071
15071
|
{
|
|
@@ -15214,7 +15214,7 @@ function Hu({
|
|
|
15214
15214
|
}
|
|
15215
15215
|
},
|
|
15216
15216
|
children: [
|
|
15217
|
-
/* @__PURE__ */ n(
|
|
15217
|
+
/* @__PURE__ */ n(Rt.Autosize, { mah: "70vh", p: "md", offsetScrollbars: !0, children: /* @__PURE__ */ b(We, { gap: "md", pb: 8, children: [
|
|
15218
15218
|
/* @__PURE__ */ n(
|
|
15219
15219
|
at,
|
|
15220
15220
|
{
|
|
@@ -15969,7 +15969,7 @@ const nr = (e, t) => {
|
|
|
15969
15969
|
G(() => {
|
|
15970
15970
|
A(t.quickFilterValues?.[0] || "");
|
|
15971
15971
|
}, [t.quickFilterValues]);
|
|
15972
|
-
const
|
|
15972
|
+
const R = T((O) => {
|
|
15973
15973
|
const I = O || "";
|
|
15974
15974
|
console.log("[Toolbar] applyGlobalFilter chamado com:", O, "-> newValue:", I), A(I);
|
|
15975
15975
|
const x = {
|
|
@@ -15978,8 +15978,8 @@ const nr = (e, t) => {
|
|
|
15978
15978
|
};
|
|
15979
15979
|
console.log("[Toolbar] Chamando onFilterModelChange com:", x), h(x);
|
|
15980
15980
|
}, [t, h]), U = Ge(
|
|
15981
|
-
() => rs((O) =>
|
|
15982
|
-
[
|
|
15981
|
+
() => rs((O) => R(O), 300),
|
|
15982
|
+
[R]
|
|
15983
15983
|
);
|
|
15984
15984
|
G(() => () => {
|
|
15985
15985
|
U.cancel();
|
|
@@ -16032,7 +16032,7 @@ const nr = (e, t) => {
|
|
|
16032
16032
|
A(O || ""), U(O);
|
|
16033
16033
|
},
|
|
16034
16034
|
onClear: () => {
|
|
16035
|
-
A(""),
|
|
16035
|
+
A(""), R(null);
|
|
16036
16036
|
}
|
|
16037
16037
|
}
|
|
16038
16038
|
) : null,
|
|
@@ -16044,7 +16044,7 @@ const nr = (e, t) => {
|
|
|
16044
16044
|
onPrint: g,
|
|
16045
16045
|
globalFilterValue: z,
|
|
16046
16046
|
onGlobalFilterChange: (O) => {
|
|
16047
|
-
A(O || ""),
|
|
16047
|
+
A(O || ""), R(O);
|
|
16048
16048
|
},
|
|
16049
16049
|
renderAdditionalActions: c,
|
|
16050
16050
|
enableGlobalFilter: !1,
|
|
@@ -16449,7 +16449,7 @@ function bh({
|
|
|
16449
16449
|
};
|
|
16450
16450
|
}, [t, e, r, i]);
|
|
16451
16451
|
}
|
|
16452
|
-
function
|
|
16452
|
+
function Rp({
|
|
16453
16453
|
rows: e,
|
|
16454
16454
|
getRowId: t,
|
|
16455
16455
|
safeGetRowId: r,
|
|
@@ -16500,7 +16500,7 @@ const rn = 100, xn = (e) => e && ("appendToFieldArray" in e || "updateFieldArray
|
|
|
16500
16500
|
const t = e.getCurrentPage?.() ?? 0;
|
|
16501
16501
|
return console.log("[getCurrentPageFromDataSource] isV2:", xn(e), "page:", t), t;
|
|
16502
16502
|
};
|
|
16503
|
-
function
|
|
16503
|
+
function $p(e) {
|
|
16504
16504
|
const {
|
|
16505
16505
|
dataSource: t,
|
|
16506
16506
|
enableColumnResizing: r = !0,
|
|
@@ -16528,7 +16528,7 @@ function Rp(e) {
|
|
|
16528
16528
|
renderRowActions: W,
|
|
16529
16529
|
renderToolbarActions: z,
|
|
16530
16530
|
renderToolbarInternalActions: A,
|
|
16531
|
-
allowColumnFilters:
|
|
16531
|
+
allowColumnFilters: R = !0,
|
|
16532
16532
|
allowExportData: U = !0,
|
|
16533
16533
|
allowPrintData: v = !0,
|
|
16534
16534
|
withBorder: P = !0,
|
|
@@ -16560,12 +16560,12 @@ function Rp(e) {
|
|
|
16560
16560
|
bottomToolbarMinHeight: Ce,
|
|
16561
16561
|
gridRef: be,
|
|
16562
16562
|
// Propriedades para o detail panel
|
|
16563
|
-
renderDetailPanel:
|
|
16563
|
+
renderDetailPanel: $,
|
|
16564
16564
|
allowMultipleDetailPanels: xe = !1,
|
|
16565
16565
|
detailPanelMinHeight: ce = 200,
|
|
16566
16566
|
detailPanelStyle: se,
|
|
16567
|
-
detailPanelClassName:
|
|
16568
|
-
onDetailPanelChange:
|
|
16567
|
+
detailPanelClassName: Re,
|
|
16568
|
+
onDetailPanelChange: $e,
|
|
16569
16569
|
detailPanelDisplayMode: Ne = "auto",
|
|
16570
16570
|
// 'auto', 'inline', 'modal', 'drawer'
|
|
16571
16571
|
detailPanelTitle: he = "Detalhes",
|
|
@@ -16620,8 +16620,8 @@ function Rp(e) {
|
|
|
16620
16620
|
}), [Ts, zs] = k(() => oh(t)), Dn = gr(t), [St, Tn] = k({
|
|
16621
16621
|
items: Dn.originFilter || [],
|
|
16622
16622
|
quickFilterValues: Dn.originGlobalFilter ? [Dn.originGlobalFilter] : []
|
|
16623
|
-
}), [Is,
|
|
16624
|
-
expandedRowIds:
|
|
16623
|
+
}), [Is, Rs] = k([]), $s = qe !== void 0 ? qe : Is, {
|
|
16624
|
+
expandedRowIds: $t,
|
|
16625
16625
|
detailPanelHeight: Ai,
|
|
16626
16626
|
detailPanelRefs: Di,
|
|
16627
16627
|
toggleExpand: Ti,
|
|
@@ -16631,12 +16631,12 @@ function Rp(e) {
|
|
|
16631
16631
|
setExpandedRowIds: Sh
|
|
16632
16632
|
} = yh({
|
|
16633
16633
|
allowMultipleDetailPanels: xe,
|
|
16634
|
-
onDetailPanelChange:
|
|
16634
|
+
onDetailPanelChange: $e,
|
|
16635
16635
|
detailPanelMinHeight: ce
|
|
16636
16636
|
});
|
|
16637
16637
|
bh({
|
|
16638
16638
|
containerRef: gt,
|
|
16639
|
-
expandedRowIds:
|
|
16639
|
+
expandedRowIds: $t,
|
|
16640
16640
|
detailPanelRefs: Di,
|
|
16641
16641
|
closeAllDetailPanels: yt
|
|
16642
16642
|
});
|
|
@@ -16647,9 +16647,9 @@ function Rp(e) {
|
|
|
16647
16647
|
safeGetRowId: nr,
|
|
16648
16648
|
rowHeight: de,
|
|
16649
16649
|
detailPanelMinHeight: ce
|
|
16650
|
-
}), Pt = ue(!1),
|
|
16650
|
+
}), Pt = ue(!1), Ri = ue(null), zn = ue(!1);
|
|
16651
16651
|
G(() => () => {
|
|
16652
|
-
|
|
16652
|
+
Ri.current && clearTimeout(Ri.current);
|
|
16653
16653
|
}, []), G(() => {
|
|
16654
16654
|
const me = (Me) => {
|
|
16655
16655
|
if (Pt.current || zn.current) {
|
|
@@ -16707,13 +16707,13 @@ function Rp(e) {
|
|
|
16707
16707
|
}
|
|
16708
16708
|
}, In = () => {
|
|
16709
16709
|
En(!0);
|
|
16710
|
-
},
|
|
16710
|
+
}, Rn = () => {
|
|
16711
16711
|
kn(!0);
|
|
16712
16712
|
}, Vs = (me) => {
|
|
16713
16713
|
Lu(ht, zt, me), En(!1);
|
|
16714
16714
|
}, Ms = (me) => {
|
|
16715
16715
|
_u(ht, zt, me), kn(!1);
|
|
16716
|
-
},
|
|
16716
|
+
}, $i = () => {
|
|
16717
16717
|
if (st) {
|
|
16718
16718
|
const Ve = tn(St, zt), Me = St.quickFilterValues && St.quickFilterValues.length > 0 ? St.quickFilterValues[0] : "";
|
|
16719
16719
|
console.log("[REFRESH V2] Refresh com filtro global:", Me), kt(!0), t.refreshData?.({
|
|
@@ -16770,7 +16770,7 @@ function Rp(e) {
|
|
|
16770
16770
|
const Ve = gr(t);
|
|
16771
16771
|
Ve.filter = tn(me, zt), Ve.originFilter = me.items, Ve.originGlobalFilter = me.quickFilterValues && me.quickFilterValues.length > 0 ? me.quickFilterValues[0] : "", console.log("[FILTER] Filtro global definido como:", Ve.originGlobalFilter), Ve.currentPage = 0, Er((Me) => ({ ...Me, page: 0 })), kt(!0), t.refreshData?.(Ve), yt();
|
|
16772
16772
|
}, Fs = T((me, Ve) => {
|
|
16773
|
-
if (console.log("[COMPOSITE FILTERS] Filtros alterados:", me, "RSQL:", Ve), qe === void 0 &&
|
|
16773
|
+
if (console.log("[COMPOSITE FILTERS] Filtros alterados:", me, "RSQL:", Ve), qe === void 0 && Rs(me), Ke && Ke(me, Ve), Ve || me && me.length > 0) {
|
|
16774
16774
|
const Me = sh(me || []);
|
|
16775
16775
|
if (Tn(Me), st) {
|
|
16776
16776
|
Er((Oe) => ({ ...Oe, page: 0 })), kt(!0), t.refreshData?.({
|
|
@@ -16801,25 +16801,25 @@ function Rp(e) {
|
|
|
16801
16801
|
}
|
|
16802
16802
|
}, [qe, Ke, st, t, Ht.pageSize]);
|
|
16803
16803
|
G(() => {
|
|
16804
|
-
we && we(In), ze && ze(
|
|
16804
|
+
we && we(In), ze && ze(Rn);
|
|
16805
16805
|
}, [we, ze]), ba(
|
|
16806
16806
|
be,
|
|
16807
16807
|
() => ({
|
|
16808
|
-
refreshData:
|
|
16808
|
+
refreshData: $i,
|
|
16809
16809
|
getSelectedRows: () => Ei,
|
|
16810
16810
|
clearSelection: () => {
|
|
16811
16811
|
Sn([]), An([]);
|
|
16812
16812
|
},
|
|
16813
16813
|
exportData: In,
|
|
16814
|
-
printData:
|
|
16814
|
+
printData: Rn,
|
|
16815
16815
|
// Métodos adicionais para o detail panel
|
|
16816
16816
|
expandRow: (me) => zi(me),
|
|
16817
16817
|
collapseRow: (me) => kr(me),
|
|
16818
16818
|
collapseAllRows: yt,
|
|
16819
|
-
getExpandedRows: () => Array.from(
|
|
16819
|
+
getExpandedRows: () => Array.from($t),
|
|
16820
16820
|
getFilterModel: () => St
|
|
16821
16821
|
}),
|
|
16822
|
-
[Ei,
|
|
16822
|
+
[Ei, $t, zi, kr, yt, St]
|
|
16823
16823
|
);
|
|
16824
16824
|
const Bs = () => ({
|
|
16825
16825
|
root: {
|
|
@@ -17066,7 +17066,7 @@ function Rp(e) {
|
|
|
17066
17066
|
}
|
|
17067
17067
|
}), Os = Ge(() => typeof m == "string" ? m : Math.max(m, m + Ai), [m, Ai]), zt = Ge(() => {
|
|
17068
17068
|
const me = [], Ve = {};
|
|
17069
|
-
if (
|
|
17069
|
+
if ($ && me.push(gh($t, Ti, ke.current)), s && W) {
|
|
17070
17070
|
const Me = {
|
|
17071
17071
|
field: "actions",
|
|
17072
17072
|
headerName: "Ações",
|
|
@@ -17165,8 +17165,8 @@ function Rp(e) {
|
|
|
17165
17165
|
Fe?.dateTimeFormat,
|
|
17166
17166
|
F,
|
|
17167
17167
|
j,
|
|
17168
|
-
|
|
17169
|
-
|
|
17168
|
+
$,
|
|
17169
|
+
$t,
|
|
17170
17170
|
Ti,
|
|
17171
17171
|
// Dependências de segurança
|
|
17172
17172
|
Ee,
|
|
@@ -17241,12 +17241,12 @@ function Rp(e) {
|
|
|
17241
17241
|
id: me.field,
|
|
17242
17242
|
title: me.headerName || me.field
|
|
17243
17243
|
})), [zt]), js = () => {
|
|
17244
|
-
if (
|
|
17244
|
+
if (!$ || $t.size === 0)
|
|
17245
17245
|
return null;
|
|
17246
|
-
const me = Array.from(
|
|
17246
|
+
const me = Array.from($t)[0], Ve = ht.find((Oe) => String(nr(Oe, H)) === String(me));
|
|
17247
17247
|
if (!Ve)
|
|
17248
17248
|
return null;
|
|
17249
|
-
const Me = typeof he == "function" ? he(me, Ve) : he, Be =
|
|
17249
|
+
const Me = typeof he == "function" ? he(me, Ve) : he, Be = $({ row: Ve });
|
|
17250
17250
|
return /* @__PURE__ */ n(
|
|
17251
17251
|
"div",
|
|
17252
17252
|
{
|
|
@@ -17262,7 +17262,7 @@ function Rp(e) {
|
|
|
17262
17262
|
children: /* @__PURE__ */ b(
|
|
17263
17263
|
ye,
|
|
17264
17264
|
{
|
|
17265
|
-
className: `detail-panel-container ${
|
|
17265
|
+
className: `detail-panel-container ${Re || ""}`,
|
|
17266
17266
|
style: {
|
|
17267
17267
|
padding: 8,
|
|
17268
17268
|
backgroundColor: De === "dark" ? Y.colors.dark[5] : Y.colors.gray[0],
|
|
@@ -17282,7 +17282,7 @@ function Rp(e) {
|
|
|
17282
17282
|
},
|
|
17283
17283
|
`fixed-detail-panel-${me}`
|
|
17284
17284
|
);
|
|
17285
|
-
}, Hs = () =>
|
|
17285
|
+
}, Hs = () => !$ || $t.size === 0 ? null : Array.from($t).map((me) => {
|
|
17286
17286
|
const Ve = ht.find((Be) => String(nr(Be, H)) === String(me));
|
|
17287
17287
|
if (!Ve)
|
|
17288
17288
|
return null;
|
|
@@ -17292,12 +17292,12 @@ function Rp(e) {
|
|
|
17292
17292
|
{
|
|
17293
17293
|
rowId: me,
|
|
17294
17294
|
rowData: Ve,
|
|
17295
|
-
renderDetailPanel:
|
|
17295
|
+
renderDetailPanel: $,
|
|
17296
17296
|
onClose: kr,
|
|
17297
17297
|
theme: Y,
|
|
17298
|
-
className:
|
|
17298
|
+
className: Re,
|
|
17299
17299
|
style: se,
|
|
17300
|
-
opened:
|
|
17300
|
+
opened: $t.has(me),
|
|
17301
17301
|
title: Me
|
|
17302
17302
|
},
|
|
17303
17303
|
`detail-modal-${me}`
|
|
@@ -17306,12 +17306,12 @@ function Rp(e) {
|
|
|
17306
17306
|
{
|
|
17307
17307
|
rowId: me,
|
|
17308
17308
|
rowData: Ve,
|
|
17309
|
-
renderDetailPanel:
|
|
17309
|
+
renderDetailPanel: $,
|
|
17310
17310
|
onClose: kr,
|
|
17311
17311
|
theme: Y,
|
|
17312
|
-
className:
|
|
17312
|
+
className: Re,
|
|
17313
17313
|
style: se,
|
|
17314
|
-
opened:
|
|
17314
|
+
opened: $t.has(me),
|
|
17315
17315
|
title: Me,
|
|
17316
17316
|
position: Ue,
|
|
17317
17317
|
size: Pe
|
|
@@ -17322,12 +17322,12 @@ function Rp(e) {
|
|
|
17322
17322
|
{
|
|
17323
17323
|
rowId: me,
|
|
17324
17324
|
rowData: Ve,
|
|
17325
|
-
renderDetailPanel:
|
|
17325
|
+
renderDetailPanel: $,
|
|
17326
17326
|
onClose: kr,
|
|
17327
17327
|
theme: Y,
|
|
17328
|
-
className:
|
|
17328
|
+
className: Re,
|
|
17329
17329
|
style: se,
|
|
17330
|
-
opened:
|
|
17330
|
+
opened: $t.has(me),
|
|
17331
17331
|
title: Me
|
|
17332
17332
|
},
|
|
17333
17333
|
`detail-modal-${me}`
|
|
@@ -17363,14 +17363,14 @@ function Rp(e) {
|
|
|
17363
17363
|
renderToolbarInternalActions: A,
|
|
17364
17364
|
theme: Y,
|
|
17365
17365
|
onFilterModelChange: Ni,
|
|
17366
|
-
onRefresh:
|
|
17366
|
+
onRefresh: $i,
|
|
17367
17367
|
onExport: In,
|
|
17368
|
-
onPrint:
|
|
17368
|
+
onPrint: Rn,
|
|
17369
17369
|
apiRef: pe,
|
|
17370
17370
|
children: B,
|
|
17371
17371
|
useCompositeFilters: fe,
|
|
17372
17372
|
filterDefinitions: _s,
|
|
17373
|
-
activeFilters:
|
|
17373
|
+
activeFilters: $s,
|
|
17374
17374
|
onFiltersChange: Fs,
|
|
17375
17375
|
hideMuiFilters: Je,
|
|
17376
17376
|
withBorder: ct,
|
|
@@ -17406,7 +17406,7 @@ function Rp(e) {
|
|
|
17406
17406
|
onColumnVisibilityModelChange: Yt,
|
|
17407
17407
|
getRowId: (me) => nr(me, H) || "",
|
|
17408
17408
|
sx: Bs().root,
|
|
17409
|
-
disableColumnFilter:
|
|
17409
|
+
disableColumnFilter: !R,
|
|
17410
17410
|
disableColumnMenu: !0,
|
|
17411
17411
|
hideFooter: te,
|
|
17412
17412
|
slots: {
|
|
@@ -17651,7 +17651,7 @@ function Vp(e, t, r, i) {
|
|
|
17651
17651
|
}
|
|
17652
17652
|
function Mp({ currentValue: e, values: t }) {
|
|
17653
17653
|
const r = t.findIndex((i) => i.value.toString() === e);
|
|
17654
|
-
return r !== -1 ? /* @__PURE__ */ n(ye, { children: /* @__PURE__ */ n(oi, { color: t[r].color, children:
|
|
17654
|
+
return r !== -1 ? /* @__PURE__ */ n(ye, { children: /* @__PURE__ */ n(oi, { color: t[r].color, children: $l(t[r].label) }) }) : null;
|
|
17655
17655
|
}
|
|
17656
17656
|
const To = (e, t) => {
|
|
17657
17657
|
if (!(!e || !t || t.length === 0 || t.filter((i) => i.enableGlobalFilter !== !1).length === 0))
|
|
@@ -17760,7 +17760,7 @@ function Lp({
|
|
|
17760
17760
|
};
|
|
17761
17761
|
}), [E, D] = k([]), [B, V] = k([]), [X, H] = k(() => e.getGrandTotalRecords()), [W, z] = k(
|
|
17762
17762
|
() => Math.ceil(e.getGrandTotalRecords() / (e.getPageSize() || t))
|
|
17763
|
-
), A = ue(!1),
|
|
17763
|
+
), A = ue(!1), R = ue(!1), U = ue(!0), v = ue(null);
|
|
17764
17764
|
G(() => {
|
|
17765
17765
|
a.current = e;
|
|
17766
17766
|
}, [e]);
|
|
@@ -17777,9 +17777,9 @@ function Lp({
|
|
|
17777
17777
|
const F = a.current, L = F.getOptions?.() || {};
|
|
17778
17778
|
L.filter = vh(S, o), L.originFilter = S.items, L.originGlobalFilter = S.quickFilterValues && S.quickFilterValues.length > 0 ? S.quickFilterValues[0] : "", L.currentPage = 0, p((C) => ({ ...C, page: 0 })), A.current = !0, h(!0), F.refreshData?.(L), s || l();
|
|
17779
17779
|
}, [o, l, s]), I = T((S) => {
|
|
17780
|
-
if (
|
|
17780
|
+
if (!R.current)
|
|
17781
17781
|
try {
|
|
17782
|
-
|
|
17782
|
+
R.current = !0, D(S);
|
|
17783
17783
|
const F = [];
|
|
17784
17784
|
if (S.forEach((L) => {
|
|
17785
17785
|
const C = c.find((j) => {
|
|
@@ -17806,11 +17806,11 @@ function Lp({
|
|
|
17806
17806
|
}
|
|
17807
17807
|
} finally {
|
|
17808
17808
|
setTimeout(() => {
|
|
17809
|
-
|
|
17809
|
+
R.current = !1;
|
|
17810
17810
|
}, 200);
|
|
17811
17811
|
}
|
|
17812
17812
|
}, [c, i]), x = T((S, F, L) => {
|
|
17813
|
-
if (
|
|
17813
|
+
if (!R.current && (F.key === "ArrowUp" || F.key === "ArrowDown") && E.length === 1) {
|
|
17814
17814
|
const C = c.findIndex((J) => {
|
|
17815
17815
|
try {
|
|
17816
17816
|
return String(i(J)) === String(E[0]);
|
|
@@ -17823,11 +17823,11 @@ function Lp({
|
|
|
17823
17823
|
const J = c[j];
|
|
17824
17824
|
try {
|
|
17825
17825
|
const ee = i(J);
|
|
17826
|
-
|
|
17827
|
-
|
|
17826
|
+
R.current = !0, D([ee]), V([J]), a.current.gotoRecordByData(J), setTimeout(() => {
|
|
17827
|
+
R.current = !1;
|
|
17828
17828
|
}, 200);
|
|
17829
17829
|
} catch (ee) {
|
|
17830
|
-
console.error("Error during keyboard navigation:", ee),
|
|
17830
|
+
console.error("Error during keyboard navigation:", ee), R.current = !1;
|
|
17831
17831
|
}
|
|
17832
17832
|
}
|
|
17833
17833
|
}
|
|
@@ -17837,7 +17837,7 @@ function Lp({
|
|
|
17837
17837
|
return G(() => {
|
|
17838
17838
|
console.log("Setting up DataSource event listener in useGridData");
|
|
17839
17839
|
const S = (L) => {
|
|
17840
|
-
if (!U.current && !(
|
|
17840
|
+
if (!U.current && !(R.current && L.type === q.afterScroll)) {
|
|
17841
17841
|
if (L.type === q.refreshData) {
|
|
17842
17842
|
u(a.current.browseRecords()), p({
|
|
17843
17843
|
page: a.current.getCurrentPage(),
|
|
@@ -17859,7 +17859,7 @@ function Lp({
|
|
|
17859
17859
|
pageSize: a.current.getPageSize()
|
|
17860
17860
|
}), H(a.current.getGrandTotalRecords()), z(Math.ceil(a.current.getGrandTotalRecords() / a.current.getPageSize())), h(!1), A.current = !1, s || l();
|
|
17861
17861
|
else if (L.type === q.afterScroll) {
|
|
17862
|
-
if (
|
|
17862
|
+
if (R.current)
|
|
17863
17863
|
return;
|
|
17864
17864
|
const C = a.current.getCurrentRecord();
|
|
17865
17865
|
if (C)
|
|
@@ -17867,8 +17867,8 @@ function Lp({
|
|
|
17867
17867
|
const j = i(C);
|
|
17868
17868
|
j !== void 0 && (E.some(
|
|
17869
17869
|
(ee) => String(ee) === String(j)
|
|
17870
|
-
) || (
|
|
17871
|
-
|
|
17870
|
+
) || (R.current = !0, D([j]), V([C]), setTimeout(() => {
|
|
17871
|
+
R.current = !1;
|
|
17872
17872
|
}, 200)));
|
|
17873
17873
|
} catch (j) {
|
|
17874
17874
|
console.error("Error processing afterScroll event:", j);
|
|
@@ -18236,7 +18236,7 @@ export {
|
|
|
18236
18236
|
Hf as ArchbaseCountdownProgress,
|
|
18237
18237
|
Uf as ArchbaseCronExpressionEdit,
|
|
18238
18238
|
vc as ArchbaseCronExpressionEditor,
|
|
18239
|
-
|
|
18239
|
+
$p as ArchbaseDataGrid,
|
|
18240
18240
|
ih as ArchbaseDataGridColumn,
|
|
18241
18241
|
fh as ArchbaseDataGridPagination,
|
|
18242
18242
|
uh as ArchbaseDataGridToolbar,
|
|
@@ -18293,16 +18293,16 @@ export {
|
|
|
18293
18293
|
hd as ArchbaseObjectInspector,
|
|
18294
18294
|
lp as ArchbaseOnboardingTour,
|
|
18295
18295
|
jf as ArchbaseOperatingHoursEditor,
|
|
18296
|
-
|
|
18297
|
-
|
|
18296
|
+
Rd as ArchbasePDFAnnotations,
|
|
18297
|
+
$d as ArchbasePDFAnnotationsList,
|
|
18298
18298
|
dp as ArchbasePDFViewer,
|
|
18299
18299
|
fo as ArchbasePDFViewerToolbar,
|
|
18300
18300
|
um as ArchbasePagination,
|
|
18301
18301
|
If as ArchbasePasswordEdit,
|
|
18302
18302
|
hm as ArchbaseProgress,
|
|
18303
|
-
|
|
18303
|
+
Rf as ArchbaseRadioGroup,
|
|
18304
18304
|
fc as ArchbaseRadioItem,
|
|
18305
|
-
|
|
18305
|
+
$f as ArchbaseRating,
|
|
18306
18306
|
Pf as ArchbaseRichTextEdit,
|
|
18307
18307
|
ls as ArchbaseSelect,
|
|
18308
18308
|
wc as ArchbaseSelectContext,
|
|
@@ -18445,7 +18445,7 @@ export {
|
|
|
18445
18445
|
Qp as useArchbaseVisible,
|
|
18446
18446
|
wh as useAvailableSpace,
|
|
18447
18447
|
bh as useDetailPanelAutoClose,
|
|
18448
|
-
|
|
18448
|
+
Rp as useDetailPanelPositions,
|
|
18449
18449
|
yh as useDetailPanels,
|
|
18450
18450
|
Lp as useGridData,
|
|
18451
18451
|
lu as useVideoPlayer,
|