@archbase/components 3.0.15 → 3.0.17
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 +354 -349
- package/package.json +15 -15
- package/src/editors/ArchbaseTimeRangeSelector.tsx +16 -12
- package/dist/archbase-components-3.0.15.tgz +0 -0
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { useMantineTheme as Mt, useMantineColorScheme as Lt, TextInput as at, To
|
|
|
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
|
-
import He, { useState as k, useRef as ue, useEffect as
|
|
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
9
|
import { pickCalendarProps as za, useDatesContext as Ia, Calendar as $a, HiddenDatesInput as Ra, DateTimePicker as Pa, DatePickerInput as Hi, TimeInput as jr } from "@mantine/dates";
|
|
@@ -72,8 +72,8 @@ function pf({
|
|
|
72
72
|
minLength: H,
|
|
73
73
|
maxLength: W
|
|
74
74
|
}) {
|
|
75
|
-
const [z, A] = k(p || ""), $ = ue(null),
|
|
76
|
-
|
|
75
|
+
const [z, A] = k(p || ""), $ = 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
|
+
G(() => {
|
|
77
77
|
c !== void 0 && c !== P && M(c);
|
|
78
78
|
}, [c]);
|
|
79
79
|
const J = () => {
|
|
@@ -84,13 +84,13 @@ function pf({
|
|
|
84
84
|
}, []), Se = T((ne) => {
|
|
85
85
|
e && t && ((ne.type === q.dataChanged || ne.type === q.recordChanged || ne.type === q.afterScroll || ne.type === q.afterCancel || ne.type === q.afterEdit) && (J(), S || O()), ne.type === q.onFieldError && ne.fieldName === t && (M(ne.error), I?.setError(x, ne.error), S || O()));
|
|
86
86
|
}, [S, e, t, J, O, I, x]), de = ue(Se);
|
|
87
|
-
|
|
87
|
+
G(() => {
|
|
88
88
|
de.current = Se;
|
|
89
89
|
}, [Se]);
|
|
90
90
|
const oe = T((ne) => {
|
|
91
91
|
de.current(ne);
|
|
92
92
|
}, []);
|
|
93
|
-
|
|
93
|
+
G(() => {
|
|
94
94
|
if (J(), e && t) {
|
|
95
95
|
const ne = typeof e.addFieldChangeListener == "function";
|
|
96
96
|
return e.addListener(oe), ne && e.addFieldChangeListener(t, ee), () => {
|
|
@@ -141,7 +141,7 @@ function pf({
|
|
|
141
141
|
Ae,
|
|
142
142
|
{
|
|
143
143
|
style: {
|
|
144
|
-
backgroundColor: X === "filled" ? v === "dark" ?
|
|
144
|
+
backgroundColor: X === "filled" ? v === "dark" ? U.colors[U.primaryColor][5] : U.colors[U.primaryColor][6] : void 0
|
|
145
145
|
},
|
|
146
146
|
tabIndex: -1,
|
|
147
147
|
variant: X,
|
|
@@ -183,8 +183,8 @@ 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, $] = k(f),
|
|
187
|
-
|
|
186
|
+
const B = it(), V = `${t}`, X = B?.getError(V), [H, W] = k(c), z = ue(null), [A, $] = k(f), U = nt();
|
|
187
|
+
G(() => {
|
|
188
188
|
f !== void 0 && f !== A && $(f);
|
|
189
189
|
}, [f]);
|
|
190
190
|
const v = () => {
|
|
@@ -197,15 +197,15 @@ 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 ||
|
|
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 && ($(C.error), B?.setError(V, C.error)));
|
|
201
201
|
}, [D.isDataSourceV2, B, V]), O = ue(M);
|
|
202
|
-
|
|
202
|
+
G(() => {
|
|
203
203
|
O.current = M;
|
|
204
204
|
}, [M]);
|
|
205
205
|
const I = T((C) => {
|
|
206
206
|
O.current(C);
|
|
207
207
|
}, []);
|
|
208
|
-
|
|
208
|
+
G(() => {
|
|
209
209
|
if (v(), e && t) {
|
|
210
210
|
const C = typeof e.addFieldChangeListener == "function";
|
|
211
211
|
return e.addListener(I), C && e.addFieldChangeListener(t, P), () => {
|
|
@@ -370,7 +370,7 @@ function ti(e) {
|
|
|
370
370
|
unstyled: z,
|
|
371
371
|
classNames: A,
|
|
372
372
|
styles: $,
|
|
373
|
-
allowDeselect:
|
|
373
|
+
allowDeselect: U,
|
|
374
374
|
preserveTime: v,
|
|
375
375
|
date: P,
|
|
376
376
|
defaultDate: M,
|
|
@@ -423,7 +423,7 @@ function ti(e) {
|
|
|
423
423
|
}, Re = () => {
|
|
424
424
|
let pe = V;
|
|
425
425
|
return S && !V && (pe = V || we.isReadOnly), pe;
|
|
426
|
-
}, Ne = f || $e, he = a ||
|
|
426
|
+
}, Ne = f || $e, 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)));
|
|
@@ -452,13 +452,13 @@ function ti(e) {
|
|
|
452
452
|
pe && typeof pe != "string" && (Fe = xe(pe)), we.handleValueChange(Fe);
|
|
453
453
|
}
|
|
454
454
|
}, [we.handleValueChange, _]), N = ue(Pe);
|
|
455
|
-
|
|
455
|
+
G(() => {
|
|
456
456
|
N.current = Pe;
|
|
457
457
|
}, [Pe]);
|
|
458
458
|
const ae = T((pe) => {
|
|
459
459
|
N.current(pe);
|
|
460
460
|
}, []);
|
|
461
|
-
|
|
461
|
+
G(() => {
|
|
462
462
|
if (Ye(), S && F) {
|
|
463
463
|
const pe = typeof S.addFieldChangeListener == "function";
|
|
464
464
|
return S.addListener(ae), pe && S.addFieldChangeListener(F, Ue), () => {
|
|
@@ -467,11 +467,11 @@ function ti(e) {
|
|
|
467
467
|
}
|
|
468
468
|
}, [S, F, ae, Ue]), lt(() => {
|
|
469
469
|
Ye();
|
|
470
|
-
}, []),
|
|
470
|
+
}, []), G(() => {
|
|
471
471
|
e.error !== void 0 && e.error !== ie && le(e.error);
|
|
472
|
-
}, [e.error]),
|
|
472
|
+
}, [e.error]), G(() => {
|
|
473
473
|
Q && ne && R(ne.toISOString().split("T")[0]);
|
|
474
|
-
}, [Q, ne]),
|
|
474
|
+
}, [Q, ne]), G(() => {
|
|
475
475
|
se(xe(ne));
|
|
476
476
|
}, [oe.locale]);
|
|
477
477
|
const [fe, Te] = k(!1), qe = (pe) => {
|
|
@@ -668,7 +668,7 @@ function gf({
|
|
|
668
668
|
defaultValue: z,
|
|
669
669
|
filter: A,
|
|
670
670
|
size: $,
|
|
671
|
-
style:
|
|
671
|
+
style: U,
|
|
672
672
|
width: v,
|
|
673
673
|
initiallyOpened: P,
|
|
674
674
|
itemComponent: M = Ol,
|
|
@@ -703,25 +703,25 @@ function gf({
|
|
|
703
703
|
}, []), fe = T((ke) => {
|
|
704
704
|
r && i && ((ke.type === q.dataChanged || ke.type === q.recordChanged || ke.type === q.afterScroll || ke.type === q.afterCancel) && (N(), de.isDataSourceV2 || Se()), ke.type === q.beforeClose && te([]), ke.type === q.onFieldError && ke.fieldName === i && (ge(ke.error), oe?.setError(we, ke.error)));
|
|
705
705
|
}, [de.isDataSourceV2, oe, we]), Te = ue(fe);
|
|
706
|
-
|
|
706
|
+
G(() => {
|
|
707
707
|
Te.current = fe;
|
|
708
708
|
}, [fe]);
|
|
709
709
|
const qe = T((ke) => {
|
|
710
710
|
Te.current(ke);
|
|
711
711
|
}, []);
|
|
712
|
-
|
|
712
|
+
G(() => {
|
|
713
713
|
if (N(), r && i) {
|
|
714
714
|
const ke = typeof r.addFieldChangeListener == "function";
|
|
715
715
|
return r.addListener(qe), ke && r.addFieldChangeListener(i, ae), () => {
|
|
716
716
|
r.removeListener(qe), ke && r.removeFieldChangeListener(i, ae);
|
|
717
717
|
};
|
|
718
718
|
}
|
|
719
|
-
}, [r, i, qe, ae]),
|
|
719
|
+
}, [r, i, qe, ae]), G(() => {
|
|
720
720
|
j && j(be), be && be.length >= l && (xe(!0), De(0, !1));
|
|
721
|
-
}, [be]),
|
|
721
|
+
}, [be]), G(() => {
|
|
722
722
|
}, [ce, $e]), lt(() => {
|
|
723
723
|
N();
|
|
724
|
-
}, []),
|
|
724
|
+
}, []), G(() => {
|
|
725
725
|
p !== void 0 && p !== Ye && ge(p);
|
|
726
726
|
}, [p]);
|
|
727
727
|
const Ke = (ke) => J && ke ? J(ke) : ke, Je = (ke) => {
|
|
@@ -794,7 +794,7 @@ function gf({
|
|
|
794
794
|
description: f,
|
|
795
795
|
error: Ye || ze,
|
|
796
796
|
required: m,
|
|
797
|
-
style:
|
|
797
|
+
style: U,
|
|
798
798
|
onClick: () => ve.openDropdown(),
|
|
799
799
|
rightSection: /* @__PURE__ */ b(ot, { children: [
|
|
800
800
|
R && /* @__PURE__ */ n(sn, { size: "xs" }),
|
|
@@ -906,7 +906,7 @@ function yf({
|
|
|
906
906
|
defaultValue: z,
|
|
907
907
|
filter: A,
|
|
908
908
|
size: $,
|
|
909
|
-
style:
|
|
909
|
+
style: U,
|
|
910
910
|
width: v,
|
|
911
911
|
initiallyOpened: P,
|
|
912
912
|
itemComponent: M,
|
|
@@ -943,25 +943,25 @@ function yf({
|
|
|
943
943
|
}, []), fe = T((Ee) => {
|
|
944
944
|
r && i && ((Ee.type === q.dataChanged || Ee.type === q.recordChanged || Ee.type === q.afterScroll || Ee.type === q.afterCancel) && (N(), de.isDataSourceV2 || Se()), Ee.type === q.beforeClose && te([]), Ee.type === q.onFieldError && Ee.fieldName === i && (ge(Ee.error), oe?.setError(we, Ee.error)));
|
|
945
945
|
}, [de.isDataSourceV2, oe, we]), Te = ue(fe);
|
|
946
|
-
|
|
946
|
+
G(() => {
|
|
947
947
|
Te.current = fe;
|
|
948
948
|
}, [fe]);
|
|
949
949
|
const qe = T((Ee) => {
|
|
950
950
|
Te.current(Ee);
|
|
951
951
|
}, []);
|
|
952
|
-
|
|
952
|
+
G(() => {
|
|
953
953
|
if (N(), r && i) {
|
|
954
954
|
const Ee = typeof r.addFieldChangeListener == "function";
|
|
955
955
|
return r.addListener(qe), Ee && r.addFieldChangeListener(i, ae), () => {
|
|
956
956
|
r.removeListener(qe), Ee && r.removeFieldChangeListener(i, ae);
|
|
957
957
|
};
|
|
958
958
|
}
|
|
959
|
-
}, [r, i, qe, ae]),
|
|
959
|
+
}, [r, i, qe, ae]), G(() => {
|
|
960
960
|
j && j(be), be && be.length >= l && be !== w(ne) && (xe(!0), Y(0, !1));
|
|
961
|
-
}, [be]),
|
|
961
|
+
}, [be]), G(() => {
|
|
962
962
|
}, [ce, $e]), lt(() => {
|
|
963
963
|
N();
|
|
964
|
-
}, []),
|
|
964
|
+
}, []), G(() => {
|
|
965
965
|
p !== void 0 && p !== Ye && ge(p);
|
|
966
966
|
}, [p]);
|
|
967
967
|
const Ke = (Ee) => J && Ee ? J(Ee) : Ee, Je = (Ee) => {
|
|
@@ -1013,7 +1013,7 @@ function yf({
|
|
|
1013
1013
|
{
|
|
1014
1014
|
disabled: o,
|
|
1015
1015
|
readOnly: De(),
|
|
1016
|
-
style:
|
|
1016
|
+
style: U,
|
|
1017
1017
|
w: v,
|
|
1018
1018
|
required: m,
|
|
1019
1019
|
leftSection: g,
|
|
@@ -1107,10 +1107,10 @@ function bf({
|
|
|
1107
1107
|
), D = it(), B = `${t}`, V = D?.getError(B);
|
|
1108
1108
|
process.env.NODE_ENV;
|
|
1109
1109
|
const [X, H] = k(!!c), W = w || ue(null), [z, A] = k(p), $ = nt();
|
|
1110
|
-
|
|
1110
|
+
G(() => {
|
|
1111
1111
|
p !== void 0 && p !== z && A(p);
|
|
1112
1112
|
}, [p]);
|
|
1113
|
-
const
|
|
1113
|
+
const U = () => {
|
|
1114
1114
|
let F = X;
|
|
1115
1115
|
if (e && t) {
|
|
1116
1116
|
const L = e.getFieldValue(t);
|
|
@@ -1118,25 +1118,25 @@ function bf({
|
|
|
1118
1118
|
}
|
|
1119
1119
|
H(F);
|
|
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) && (
|
|
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 || $()), 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;
|
|
1127
1127
|
}, [P]);
|
|
1128
1128
|
const O = T((F) => {
|
|
1129
1129
|
M.current(F);
|
|
1130
1130
|
}, []);
|
|
1131
|
-
|
|
1132
|
-
if (
|
|
1131
|
+
G(() => {
|
|
1132
|
+
if (U(), e && t) {
|
|
1133
1133
|
const F = typeof e.addFieldChangeListener == "function";
|
|
1134
1134
|
return e.addListener(O), F && e.addFieldChangeListener(t, v), () => {
|
|
1135
1135
|
e.removeListener(O), F && e.removeFieldChangeListener(t, v);
|
|
1136
1136
|
};
|
|
1137
1137
|
}
|
|
1138
1138
|
}, [e, t, O, v]), lt(() => {
|
|
1139
|
-
|
|
1139
|
+
U();
|
|
1140
1140
|
}, []);
|
|
1141
1141
|
const I = (F) => {
|
|
1142
1142
|
(z || V) && (A(void 0), D?.clearError(B));
|
|
@@ -1203,8 +1203,8 @@ 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, $] = k(g),
|
|
1207
|
-
|
|
1206
|
+
), [W, z] = k(p ? [] : a), [A, $] = k(g), U = nt();
|
|
1207
|
+
G(() => {
|
|
1208
1208
|
g !== void 0 && g !== A && $(g);
|
|
1209
1209
|
}, [g]);
|
|
1210
1210
|
const v = () => {
|
|
@@ -1223,15 +1223,15 @@ 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 ||
|
|
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 && ($(S.error), D?.setError(B, S.error)));
|
|
1227
1227
|
}, [E.isDataSourceV2, D, B]), O = ue(M);
|
|
1228
|
-
|
|
1228
|
+
G(() => {
|
|
1229
1229
|
O.current = M;
|
|
1230
1230
|
}, [M]);
|
|
1231
1231
|
const I = T((S) => {
|
|
1232
1232
|
O.current(S);
|
|
1233
1233
|
}, []);
|
|
1234
|
-
|
|
1234
|
+
G(() => {
|
|
1235
1235
|
if (v(), e && t) {
|
|
1236
1236
|
const S = typeof e.addFieldChangeListener == "function";
|
|
1237
1237
|
return e.addListener(I), S && e.addFieldChangeListener(t, P), () => {
|
|
@@ -1281,7 +1281,7 @@ function vf({
|
|
|
1281
1281
|
error: h
|
|
1282
1282
|
}) {
|
|
1283
1283
|
const [f, p] = k(), [g, y] = k(), [m, w] = k(h), E = it(), D = e || "date-picker-range", B = E?.getError(D);
|
|
1284
|
-
|
|
1284
|
+
G(() => {
|
|
1285
1285
|
h !== void 0 && h !== m && w(h);
|
|
1286
1286
|
}, [h]);
|
|
1287
1287
|
const V = (H, W) => {
|
|
@@ -1356,7 +1356,7 @@ function Wl({
|
|
|
1356
1356
|
t,
|
|
1357
1357
|
null
|
|
1358
1358
|
), V = it(), X = `${t}`, H = V?.getError(X);
|
|
1359
|
-
process.env.NODE_ENV,
|
|
1359
|
+
process.env.NODE_ENV, G(() => {
|
|
1360
1360
|
f !== void 0 && f !== w && E(f);
|
|
1361
1361
|
}, [f]);
|
|
1362
1362
|
const W = () => {
|
|
@@ -1379,20 +1379,20 @@ function Wl({
|
|
|
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
1381
|
}, [B.isDataSourceV2, V, X]), $ = ue(A);
|
|
1382
|
-
|
|
1382
|
+
G(() => {
|
|
1383
1383
|
$.current = A;
|
|
1384
1384
|
}, [A]);
|
|
1385
|
-
const
|
|
1385
|
+
const U = T((x) => {
|
|
1386
1386
|
$.current(x);
|
|
1387
1387
|
}, []);
|
|
1388
|
-
|
|
1388
|
+
G(() => {
|
|
1389
1389
|
if (W(), e && t) {
|
|
1390
1390
|
const x = typeof e.addFieldChangeListener == "function";
|
|
1391
|
-
return e.addListener(
|
|
1392
|
-
e.removeListener(
|
|
1391
|
+
return e.addListener(U), x && e.addFieldChangeListener(t, z), () => {
|
|
1392
|
+
e.removeListener(U), x && e.removeFieldChangeListener(t, z);
|
|
1393
1393
|
};
|
|
1394
1394
|
}
|
|
1395
|
-
}, [e, t,
|
|
1395
|
+
}, [e, t, U, z]), lt(() => {
|
|
1396
1396
|
W();
|
|
1397
1397
|
}, []);
|
|
1398
1398
|
const v = (x) => {
|
|
@@ -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, $] = k(g),
|
|
1456
|
-
|
|
1455
|
+
const [X, H] = k(y?.[0] || null), [W, z] = k(y?.[1] || null), [A, $] = k(g), U = it(), v = t && r ? `${t}-${r}` : i || "datetime-picker-range", P = U?.getError(v);
|
|
1456
|
+
G(() => {
|
|
1457
1457
|
g !== void 0 && g !== A && $(g);
|
|
1458
|
-
}, [g]),
|
|
1458
|
+
}, [g]), G(() => {
|
|
1459
1459
|
y && (H(y[0]), z(y[1]));
|
|
1460
1460
|
}, [y]);
|
|
1461
1461
|
const M = (_) => {
|
|
1462
|
-
(A || P) && ($(void 0),
|
|
1462
|
+
(A || P) && ($(void 0), U?.clearError(v)), H(_), d && d([_, W]);
|
|
1463
1463
|
}, O = (_) => {
|
|
1464
|
-
(A || P) && ($(void 0),
|
|
1464
|
+
(A || P) && ($(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 $(F),
|
|
1468
|
+
return $(F), U?.setError(v, F), !1;
|
|
1469
1469
|
}
|
|
1470
|
-
return $(void 0),
|
|
1470
|
+
return $(void 0), U?.clearError(v), !0;
|
|
1471
1471
|
}, x = A || P;
|
|
1472
1472
|
return /* @__PURE__ */ n(
|
|
1473
1473
|
rt.Wrapper,
|
|
@@ -1592,7 +1592,7 @@ const Gl = 25, ss = (e, t = !1, r, i) => {
|
|
|
1592
1592
|
basicFilters: e.basicFilters
|
|
1593
1593
|
}, JSON.parse(JSON.stringify(e))), Ft = xr((e) => {
|
|
1594
1594
|
const { onInputChangedEnd: t, onChangedDelayed: r, onChangedValue: i, delayMs: o, ...s } = e, [l, a] = k(e.value), c = ue(null), u = ue(!0);
|
|
1595
|
-
ue(!1),
|
|
1595
|
+
ue(!1), G(() => {
|
|
1596
1596
|
if (r) {
|
|
1597
1597
|
if (u.current) {
|
|
1598
1598
|
u.current = !1;
|
|
@@ -1647,7 +1647,7 @@ const Gl = 25, ss = (e, t = !1, r, i) => {
|
|
|
1647
1647
|
}, ql = xr(({ color: e, initialState: t = Zi, changeFilter: r = () => {
|
|
1648
1648
|
} }) => {
|
|
1649
1649
|
const [i, o] = k(t), { t: s } = Xe();
|
|
1650
|
-
|
|
1650
|
+
G(() => {
|
|
1651
1651
|
o(t ? JSON.parse(JSON.stringify({ ...i, ...t })) : Zi);
|
|
1652
1652
|
}, [t]);
|
|
1653
1653
|
function l(f) {
|
|
@@ -2512,11 +2512,11 @@ class Xl extends mi {
|
|
|
2512
2512
|
}
|
|
2513
2513
|
const Kl = xr(({ src: e, size: t, croppUpdate: r }) => {
|
|
2514
2514
|
const [i, o] = k(), [s, l] = k({ width: 150, height: 150 }), a = ue(null), c = ue(null);
|
|
2515
|
-
return
|
|
2515
|
+
return G(() => {
|
|
2516
2516
|
t && (l({ ...t }), a.current && a.current.resizeTo(t.width, t.height));
|
|
2517
|
-
}, [t]),
|
|
2517
|
+
}, [t]), G(() => {
|
|
2518
2518
|
e && o(e);
|
|
2519
|
-
}, [e]),
|
|
2519
|
+
}, [e]), G(() => (c.current && i && (a.current = new Xl("#croppr", {
|
|
2520
2520
|
minSize: [32, 32, "px"],
|
|
2521
2521
|
startSize: [s.width, s.height, "px"],
|
|
2522
2522
|
onInitialize: (u) => {
|
|
@@ -2540,19 +2540,19 @@ const Kl = xr(({ src: e, size: t, croppUpdate: r }) => {
|
|
|
2540
2540
|
lazy: u = !1
|
|
2541
2541
|
}) => {
|
|
2542
2542
|
const [d, h] = k([]), [f, p] = k(e), g = ue(null);
|
|
2543
|
-
|
|
2543
|
+
G(() => {
|
|
2544
2544
|
const w = t instanceof Array ? t : [t];
|
|
2545
2545
|
y(w);
|
|
2546
2546
|
const E = w.map((D) => ({ label: D.props.name, icon: D.props.icon, disabled: D.props.disabled }));
|
|
2547
2547
|
if (e > E.length - 1 || e < 0)
|
|
2548
2548
|
throw new Error(`Intervalo inválido para activeIndex ${e}`);
|
|
2549
2549
|
h(E);
|
|
2550
|
-
}, [t]),
|
|
2550
|
+
}, [t]), G(() => {
|
|
2551
2551
|
const w = t instanceof Array ? t : [t];
|
|
2552
2552
|
if (e > w.length - 1 || e < 0)
|
|
2553
2553
|
throw new Error(`Intervalo inválido para activeIndex ${e}`);
|
|
2554
2554
|
p(w[e]?.props?.disabled ? 0 : e);
|
|
2555
|
-
}, [e]),
|
|
2555
|
+
}, [e]), G(() => {
|
|
2556
2556
|
d && d.length && s(f);
|
|
2557
2557
|
}, [f]);
|
|
2558
2558
|
function y(w) {
|
|
@@ -2621,11 +2621,11 @@ const Kl = xr(({ src: e, size: t, croppUpdate: r }) => {
|
|
|
2621
2621
|
({ image: e = "", color: t = "#1e88e5", initialState: r = Zl, saveUpdates: i = () => {
|
|
2622
2622
|
} }) => {
|
|
2623
2623
|
const [o, s] = k(r), [l, a] = k(""), [c, u] = k(!1), [d, h] = k({ width: 150, height: 150 }), [f, p] = k(), g = ue(!1), y = ["webp", "jpeg", "png"], { t: m } = Xe();
|
|
2624
|
-
|
|
2624
|
+
G(() => {
|
|
2625
2625
|
g.current = window.innerWidth < 800, s(JSON.parse(JSON.stringify({ ...o, ...r })));
|
|
2626
|
-
}, [r]),
|
|
2626
|
+
}, [r]), G(() => {
|
|
2627
2627
|
a(e);
|
|
2628
|
-
}, [e]),
|
|
2628
|
+
}, [e]), G(() => {
|
|
2629
2629
|
c || h({ width: 150, height: 150 });
|
|
2630
2630
|
}, [c]);
|
|
2631
2631
|
async function w(v, P = !1) {
|
|
@@ -2680,7 +2680,7 @@ const Kl = xr(({ src: e, size: t, croppUpdate: r }) => {
|
|
|
2680
2680
|
v && (s({ ...o, cropWidth: v }), h({ ...d, width: v })), P && (s({ ...o, cropHeight: P }), h({ ...d, height: P }));
|
|
2681
2681
|
}
|
|
2682
2682
|
function X() {
|
|
2683
|
-
let v =
|
|
2683
|
+
let v = U(o);
|
|
2684
2684
|
const P = document.createElement("canvas");
|
|
2685
2685
|
return new Promise((M, O) => {
|
|
2686
2686
|
const I = P.getContext("2d"), x = new Image();
|
|
@@ -2714,7 +2714,7 @@ const Kl = xr(({ src: e, size: t, croppUpdate: r }) => {
|
|
|
2714
2714
|
}
|
|
2715
2715
|
async function z() {
|
|
2716
2716
|
try {
|
|
2717
|
-
let v =
|
|
2717
|
+
let v = U(o);
|
|
2718
2718
|
if (v.arrayCopiedImages.length > 1) {
|
|
2719
2719
|
v.arrayCopiedImages.pop();
|
|
2720
2720
|
const P = v.arrayCopiedImages[v.arrayCopiedImages.length - 1];
|
|
@@ -2735,14 +2735,14 @@ const Kl = xr(({ src: e, size: t, croppUpdate: r }) => {
|
|
|
2735
2735
|
}
|
|
2736
2736
|
async function A(v) {
|
|
2737
2737
|
try {
|
|
2738
|
-
const P =
|
|
2738
|
+
const P = U(o);
|
|
2739
2739
|
P.basicFilters ? P.basicFilters = { ...P.basicFilters, ...v } : P.basicFilters = v, await w(P, !1);
|
|
2740
2740
|
} catch (P) {
|
|
2741
2741
|
console.log("🚀 ~ file: EditImage.tsx ~ line 259 ~ onChangeFilters ~ e", P);
|
|
2742
2742
|
}
|
|
2743
2743
|
}
|
|
2744
2744
|
const $ = Ge(() => l && l.length ? Math.ceil(3 / 4 * l.length / 1024) : "", [l]);
|
|
2745
|
-
function
|
|
2745
|
+
function U(v) {
|
|
2746
2746
|
return JSON.parse(JSON.stringify(v));
|
|
2747
2747
|
}
|
|
2748
2748
|
return /* @__PURE__ */ n("div", { className: "ArchbaseEditImage", children: /* @__PURE__ */ b("div", { id: "popup", className: "popup", children: [
|
|
@@ -3014,9 +3014,9 @@ const Kl = xr(({ src: e, size: t, croppUpdate: r }) => {
|
|
|
3014
3014
|
const s = Zt(), { colorScheme: l } = Lt(), { t: a } = Xe(), [c, u] = k({
|
|
3015
3015
|
...to
|
|
3016
3016
|
}), [d, h] = k(""), [f, p] = k(!1), [g, y] = k(!1), [m, w] = k(tc), E = ue(null), D = ue(""), B = ue(""), V = Date.now().toString(20), X = ue("download");
|
|
3017
|
-
ue(!1),
|
|
3017
|
+
ue(!1), G(() => {
|
|
3018
3018
|
W();
|
|
3019
|
-
}, [e]),
|
|
3019
|
+
}, [e]), G(() => {
|
|
3020
3020
|
H();
|
|
3021
3021
|
}, [t]);
|
|
3022
3022
|
async function H() {
|
|
@@ -3037,7 +3037,7 @@ const Kl = xr(({ src: e, size: t, croppUpdate: r }) => {
|
|
|
3037
3037
|
I.originImageSrc = null, I.arrayCopiedImages = [], p(!1), h(null), u(I);
|
|
3038
3038
|
}
|
|
3039
3039
|
}
|
|
3040
|
-
|
|
3040
|
+
G(() => {
|
|
3041
3041
|
i(d);
|
|
3042
3042
|
}, [d]);
|
|
3043
3043
|
function W() {
|
|
@@ -3088,7 +3088,7 @@ const Kl = xr(({ src: e, size: t, croppUpdate: r }) => {
|
|
|
3088
3088
|
};
|
|
3089
3089
|
}
|
|
3090
3090
|
}
|
|
3091
|
-
const
|
|
3091
|
+
const U = Ge(() => d && d.length ? Math.ceil(3 / 4 * d.length / 1024) : "", [d]);
|
|
3092
3092
|
function v(I) {
|
|
3093
3093
|
let x = { ...c }, _;
|
|
3094
3094
|
if (I.startsWith("data:image/")) {
|
|
@@ -3205,15 +3205,15 @@ const Kl = xr(({ src: e, size: t, croppUpdate: r }) => {
|
|
|
3205
3205
|
]
|
|
3206
3206
|
}
|
|
3207
3207
|
),
|
|
3208
|
-
|
|
3208
|
+
U && m.showImageSize && /* @__PURE__ */ n(
|
|
3209
3209
|
"div",
|
|
3210
3210
|
{
|
|
3211
3211
|
className: "caption image-caption",
|
|
3212
3212
|
style: {
|
|
3213
|
-
color:
|
|
3214
|
-
fontWeight:
|
|
3213
|
+
color: U > 120 ? "#f44336" : "unset",
|
|
3214
|
+
fontWeight: U > 120 ? "500" : "unset"
|
|
3215
3215
|
},
|
|
3216
|
-
children: /* @__PURE__ */ n(K, { children: `${a("archbase:size")}: ${
|
|
3216
|
+
children: /* @__PURE__ */ n(K, { children: `${a("archbase:size")}: ${U}Kb ${c.format}` })
|
|
3217
3217
|
}
|
|
3218
3218
|
),
|
|
3219
3219
|
/* @__PURE__ */ b(
|
|
@@ -3271,7 +3271,7 @@ const Kl = xr(({ src: e, size: t, croppUpdate: r }) => {
|
|
|
3271
3271
|
return i;
|
|
3272
3272
|
}, Ef = ({ token: e, email: t, ...r }) => {
|
|
3273
3273
|
const [i, o] = k(null);
|
|
3274
|
-
return
|
|
3274
|
+
return G(() => {
|
|
3275
3275
|
o(null), e && t && oc(`/users/${t}/photo/$value`, e, { responseType: "Blob" }).then((s) => {
|
|
3276
3276
|
s.blob().then((l) => {
|
|
3277
3277
|
const a = URL.createObjectURL(l);
|
|
@@ -3610,9 +3610,9 @@ 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), $ = ue(null), [
|
|
3614
|
-
|
|
3615
|
-
u !== void 0 && u !==
|
|
3613
|
+
const [z, A] = k(void 0), $ = ue(null), [U, v] = k(u), P = nt();
|
|
3614
|
+
G(() => {
|
|
3615
|
+
u !== void 0 && u !== U && v(u);
|
|
3616
3616
|
}, [u]);
|
|
3617
3617
|
const M = () => {
|
|
3618
3618
|
let C = z;
|
|
@@ -3622,13 +3622,13 @@ function Sf({
|
|
|
3622
3622
|
}, []), I = T((C) => {
|
|
3623
3623
|
r && i && ((C.type === q.dataChanged || C.type === q.recordChanged || C.type === q.afterScroll || C.type === q.afterCancel || C.type === q.afterEdit) && (M(), V.isDataSourceV2 || P()), C.type === q.onFieldError && C.fieldName === i && (v(C.error), X?.setError(H, C.error)));
|
|
3624
3624
|
}, [V.isDataSourceV2, X, H]), x = ue(I);
|
|
3625
|
-
|
|
3625
|
+
G(() => {
|
|
3626
3626
|
x.current = I;
|
|
3627
3627
|
}, [I]);
|
|
3628
3628
|
const _ = T((C) => {
|
|
3629
3629
|
x.current(C);
|
|
3630
3630
|
}, []);
|
|
3631
|
-
|
|
3631
|
+
G(() => {
|
|
3632
3632
|
if (M(), r && i) {
|
|
3633
3633
|
const C = typeof r.addFieldChangeListener == "function";
|
|
3634
3634
|
return r.addListener(_), C && r.addFieldChangeListener(i, O), () => {
|
|
@@ -3639,14 +3639,14 @@ function Sf({
|
|
|
3639
3639
|
M();
|
|
3640
3640
|
}, []);
|
|
3641
3641
|
const S = (C) => {
|
|
3642
|
-
(
|
|
3642
|
+
(U || W) && (v(void 0), X?.clearError(H));
|
|
3643
3643
|
const J = C;
|
|
3644
3644
|
if (A((ee) => J), r && !r.isBrowsing() && i && r.getFieldValue(i) !== J) {
|
|
3645
3645
|
let ee;
|
|
3646
3646
|
J ? ee = m ? J : btoa(J) : ee = void 0, V.handleValueChange(ee);
|
|
3647
3647
|
}
|
|
3648
3648
|
y && y(C);
|
|
3649
|
-
}, F = () => s || V.isReadOnly, L =
|
|
3649
|
+
}, F = () => s || V.isReadOnly, L = U || W;
|
|
3650
3650
|
return /* @__PURE__ */ n("div", { style: { position: "relative", display: "inline-block" }, children: /* @__PURE__ */ n(
|
|
3651
3651
|
rt.Wrapper,
|
|
3652
3652
|
{
|
|
@@ -3710,8 +3710,8 @@ 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, $] = k(c),
|
|
3714
|
-
|
|
3713
|
+
const B = it(), V = `${t}`, X = B?.getError(V), [H, W] = k(""), z = E || ue(null), [A, $] = k(c), U = nt();
|
|
3714
|
+
G(() => {
|
|
3715
3715
|
c !== void 0 && c !== A && $(c);
|
|
3716
3716
|
}, [c]);
|
|
3717
3717
|
const v = () => {
|
|
@@ -3720,15 +3720,15 @@ 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 ||
|
|
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 && ($(C.error), B?.setError(V, C.error)));
|
|
3724
3724
|
}, [D.isDataSourceV2, B, V]), O = ue(M);
|
|
3725
|
-
|
|
3725
|
+
G(() => {
|
|
3726
3726
|
O.current = M;
|
|
3727
3727
|
}, [M]);
|
|
3728
3728
|
const I = T((C) => {
|
|
3729
3729
|
O.current(C);
|
|
3730
3730
|
}, []);
|
|
3731
|
-
|
|
3731
|
+
G(() => {
|
|
3732
3732
|
if (v(), e && t) {
|
|
3733
3733
|
const C = typeof e.addFieldChangeListener == "function";
|
|
3734
3734
|
return e.addListener(I), C && e.addFieldChangeListener(t, P), () => {
|
|
@@ -3811,8 +3811,8 @@ function Df({
|
|
|
3811
3811
|
null
|
|
3812
3812
|
);
|
|
3813
3813
|
process.env.NODE_ENV;
|
|
3814
|
-
const $ = it(),
|
|
3815
|
-
|
|
3814
|
+
const $ = it(), U = `${t}`, v = $?.getError(U), P = Mt(), { colorScheme: M } = Lt(), [O, I] = k(""), x = W || ue(null), [_, S] = k(d);
|
|
3815
|
+
G(() => {
|
|
3816
3816
|
d !== void 0 && d !== _ && S(d);
|
|
3817
3817
|
}, [d]);
|
|
3818
3818
|
const F = () => {
|
|
@@ -3821,15 +3821,15 @@ 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), $?.setError(
|
|
3825
|
-
}, [A.isDataSourceV2, $,
|
|
3826
|
-
|
|
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), $?.setError(U, re.error)));
|
|
3825
|
+
}, [A.isDataSourceV2, $, U]), j = ue(C);
|
|
3826
|
+
G(() => {
|
|
3827
3827
|
j.current = C;
|
|
3828
3828
|
}, [C]);
|
|
3829
3829
|
const J = T((re) => {
|
|
3830
3830
|
j.current(re);
|
|
3831
3831
|
}, []);
|
|
3832
|
-
|
|
3832
|
+
G(() => {
|
|
3833
3833
|
if (F(), e && r) {
|
|
3834
3834
|
const re = typeof e.addFieldChangeListener == "function";
|
|
3835
3835
|
return e.addListener(J), re && e.addFieldChangeListener(r, L), () => {
|
|
@@ -3840,7 +3840,7 @@ function Df({
|
|
|
3840
3840
|
F();
|
|
3841
3841
|
}, []);
|
|
3842
3842
|
const ee = (re) => {
|
|
3843
|
-
(_ || v) && (S(void 0), $?.clearError(
|
|
3843
|
+
(_ || v) && (S(void 0), $?.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), $?.setError(
|
|
3852
|
+
S(ne), $?.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), $?.setError(
|
|
3862
|
+
S(ne), $?.setError(U, ne);
|
|
3863
3863
|
}
|
|
3864
3864
|
x.current?.focus(), y && y(te);
|
|
3865
3865
|
});
|
|
@@ -3906,7 +3906,7 @@ function Df({
|
|
|
3906
3906
|
}
|
|
3907
3907
|
function sc(e) {
|
|
3908
3908
|
const t = ue(void 0);
|
|
3909
|
-
return
|
|
3909
|
+
return G(() => {
|
|
3910
3910
|
t.current = e;
|
|
3911
3911
|
}, [e]), t.current;
|
|
3912
3912
|
}
|
|
@@ -3964,7 +3964,7 @@ function gi({
|
|
|
3964
3964
|
size: z,
|
|
3965
3965
|
error: A,
|
|
3966
3966
|
innerRef: $,
|
|
3967
|
-
onClear:
|
|
3967
|
+
onClear: U,
|
|
3968
3968
|
minValue: v = Number.MIN_SAFE_INTEGER,
|
|
3969
3969
|
maxValue: P = Number.MAX_SAFE_INTEGER,
|
|
3970
3970
|
...M
|
|
@@ -3979,7 +3979,7 @@ function gi({
|
|
|
3979
3979
|
const [I, x] = k(""), [_, S] = k(0);
|
|
3980
3980
|
sc(I);
|
|
3981
3981
|
const F = $ || 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(() => {
|
|
@@ -4008,13 +4008,13 @@ function gi({
|
|
|
4008
4008
|
}, [oe]), ze = T((R) => {
|
|
4009
4009
|
e && t && ((R.type === q.dataChanged || R.type === q.recordChanged || R.type === q.afterScroll || R.type === q.afterCancel || R.type === q.afterEdit || R.type === q.afterSave) && (oe(), O.isDataSourceV2 || j()), R.type === q.onFieldError && R.fieldName === t && (C(R.error), J?.setError(ee, R.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
4014
|
const re = T((R) => {
|
|
4015
4015
|
ve.current(R);
|
|
4016
4016
|
}, []);
|
|
4017
|
-
|
|
4017
|
+
G(() => {
|
|
4018
4018
|
const R = de();
|
|
4019
4019
|
if (x(R.maskedValue), S(R.value), e && t) {
|
|
4020
4020
|
const xe = typeof e.addFieldChangeListener == "function";
|
|
@@ -4080,7 +4080,7 @@ function gi({
|
|
|
4080
4080
|
v,
|
|
4081
4081
|
P
|
|
4082
4082
|
);
|
|
4083
|
-
x(R.maskedValue), S(R.value), e && !e.isBrowsing() && t && O.handleValueChange(g ? null : 0),
|
|
4083
|
+
x(R.maskedValue), S(R.value), e && !e.isBrowsing() && t && O.handleValueChange(g ? null : 0), U && U();
|
|
4084
4084
|
}, ie = (R) => {
|
|
4085
4085
|
const xe = R.currentTarget, ce = xe.selectionStart || 0, se = xe.selectionEnd || 0, $e = xe.value;
|
|
4086
4086
|
if (R.key === "-") {
|
|
@@ -4218,7 +4218,7 @@ function Tf({
|
|
|
4218
4218
|
innerRef: z,
|
|
4219
4219
|
decimalSeparator: A,
|
|
4220
4220
|
thousandSeparator: $,
|
|
4221
|
-
precision:
|
|
4221
|
+
precision: U = 0,
|
|
4222
4222
|
allowNegative: v = !1,
|
|
4223
4223
|
allowEmpty: P = !0
|
|
4224
4224
|
}) {
|
|
@@ -4232,7 +4232,7 @@ function Tf({
|
|
|
4232
4232
|
const I = it(), x = `${t}`, _ = I?.getError(x), S = Mt(), { colorScheme: F } = Lt(), [L, C] = k(
|
|
4233
4233
|
ro(g, e, r)
|
|
4234
4234
|
), j = z || ue(null), [J, ee] = k(d);
|
|
4235
|
-
|
|
4235
|
+
G(() => {
|
|
4236
4236
|
d !== void 0 && d !== J && ee(d);
|
|
4237
4237
|
}, [d]);
|
|
4238
4238
|
const Se = () => {
|
|
@@ -4243,13 +4243,13 @@ function Tf({
|
|
|
4243
4243
|
}, []), oe = T((le) => {
|
|
4244
4244
|
e && t && ((le.type === q.dataChanged || le.type === q.recordChanged || le.type === q.afterScroll || le.type === q.afterCancel) && (Se(), O.isDataSourceV2 || M()), le.type === q.onFieldError && le.fieldName === t && (ee(le.error), I?.setError(x, le.error)));
|
|
4245
4245
|
}, [O.isDataSourceV2, I, x]), we = ue(oe);
|
|
4246
|
-
|
|
4246
|
+
G(() => {
|
|
4247
4247
|
we.current = oe;
|
|
4248
4248
|
}, [oe]);
|
|
4249
4249
|
const ze = T((le) => {
|
|
4250
4250
|
we.current(le);
|
|
4251
4251
|
}, []);
|
|
4252
|
-
|
|
4252
|
+
G(() => {
|
|
4253
4253
|
if (Se(), e && r) {
|
|
4254
4254
|
const le = typeof e.addFieldChangeListener == "function";
|
|
4255
4255
|
return e.addListener(ze), le && e.addFieldChangeListener(r, de), () => {
|
|
@@ -4306,7 +4306,7 @@ function Tf({
|
|
|
4306
4306
|
width: p,
|
|
4307
4307
|
decimalSeparator: A,
|
|
4308
4308
|
thousandSeparator: $,
|
|
4309
|
-
precision:
|
|
4309
|
+
precision: U,
|
|
4310
4310
|
allowNegative: v,
|
|
4311
4311
|
allowEmpty: P,
|
|
4312
4312
|
rightSection: /* @__PURE__ */ n(je, { withinPortal: !0, withArrow: !0, label: D, children: /* @__PURE__ */ n(
|
|
@@ -4399,7 +4399,7 @@ function ls({
|
|
|
4399
4399
|
defaultValue: z,
|
|
4400
4400
|
filter: A,
|
|
4401
4401
|
size: $,
|
|
4402
|
-
initiallyOpened:
|
|
4402
|
+
initiallyOpened: U,
|
|
4403
4403
|
itemComponent: v,
|
|
4404
4404
|
dropdownOpened: P,
|
|
4405
4405
|
onDropdownOpen: M,
|
|
@@ -4460,7 +4460,7 @@ function ls({
|
|
|
4460
4460
|
}, ae = v ? {
|
|
4461
4461
|
renderOption: ({ option: Le, checked: Y }) => N({ option: Le, checked: Y })
|
|
4462
4462
|
} : {};
|
|
4463
|
-
|
|
4463
|
+
G(() => {
|
|
4464
4464
|
f !== void 0 && f !== ie && le(f);
|
|
4465
4465
|
}, [f]);
|
|
4466
4466
|
const fe = async () => {
|
|
@@ -4473,13 +4473,13 @@ function ls({
|
|
|
4473
4473
|
}, [ve.isDataSourceV2, r, i, fe, ze, se, $e]), Ke = T((Le) => {
|
|
4474
4474
|
r && i && Le.type === q.dataChanged && be((Y) => Y + 1);
|
|
4475
4475
|
}, []), Je = ue(qe);
|
|
4476
|
-
|
|
4476
|
+
G(() => {
|
|
4477
4477
|
Je.current = qe;
|
|
4478
4478
|
}, [qe]);
|
|
4479
4479
|
const ct = T((Le) => {
|
|
4480
4480
|
Je.current(Le);
|
|
4481
4481
|
}, []);
|
|
4482
|
-
return
|
|
4482
|
+
return G(() => {
|
|
4483
4483
|
if (fe(), r && i) {
|
|
4484
4484
|
const Le = typeof r.addFieldChangeListener == "function";
|
|
4485
4485
|
r.addListener(ct), Le && r.addFieldChangeListener(i, Te);
|
|
@@ -4491,7 +4491,7 @@ function ls({
|
|
|
4491
4491
|
}
|
|
4492
4492
|
j && j instanceof an && j.removeListener(Ke);
|
|
4493
4493
|
};
|
|
4494
|
-
}, [r, i, ct, Te]),
|
|
4494
|
+
}, [r, i, ct, Te]), G(() => {
|
|
4495
4495
|
W !== void 0 && ne(W);
|
|
4496
4496
|
}, [W]), lt(() => {
|
|
4497
4497
|
fe();
|
|
@@ -4526,7 +4526,7 @@ function ls({
|
|
|
4526
4526
|
onSearchChange: Q,
|
|
4527
4527
|
searchValue: te && w ? w(te) : Z,
|
|
4528
4528
|
defaultValue: te && w ? w(te) : z || "",
|
|
4529
|
-
defaultDropdownOpened:
|
|
4529
|
+
defaultDropdownOpened: U,
|
|
4530
4530
|
dropdownOpened: P,
|
|
4531
4531
|
onDropdownOpen: M,
|
|
4532
4532
|
onDropdownClose: O,
|
|
@@ -4583,7 +4583,7 @@ function zf({
|
|
|
4583
4583
|
const p = it(), g = `${l}`, y = p?.getError(g), [m, w] = k(
|
|
4584
4584
|
() => Jr(e, t, r)
|
|
4585
4585
|
), [E, D] = k(c);
|
|
4586
|
-
|
|
4586
|
+
G(() => {
|
|
4587
4587
|
c !== void 0 && c !== E && D(c);
|
|
4588
4588
|
}, [c]);
|
|
4589
4589
|
const B = T(($) => {
|
|
@@ -4596,19 +4596,19 @@ function zf({
|
|
|
4596
4596
|
if (e && r && e.locate({
|
|
4597
4597
|
[r]: Bt.getNestedProperty($, r)
|
|
4598
4598
|
}) && s && l) {
|
|
4599
|
-
const
|
|
4600
|
-
f.handleValueChange(
|
|
4599
|
+
const U = i ? u($) : e.getCurrentRecord();
|
|
4600
|
+
f.handleValueChange(U);
|
|
4601
4601
|
}
|
|
4602
4602
|
} else
|
|
4603
4603
|
s && l && f.handleValueChange(null);
|
|
4604
4604
|
}, H = ue(B);
|
|
4605
|
-
|
|
4605
|
+
G(() => {
|
|
4606
4606
|
H.current = B;
|
|
4607
4607
|
}, [B]);
|
|
4608
4608
|
const W = T(($) => {
|
|
4609
4609
|
H.current($);
|
|
4610
4610
|
}, []);
|
|
4611
|
-
return
|
|
4611
|
+
return G(() => {
|
|
4612
4612
|
if (w(Jr(e, t, r)), e)
|
|
4613
4613
|
return e.addListener(W), () => {
|
|
4614
4614
|
e.removeListener(W);
|
|
@@ -4667,10 +4667,10 @@ 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, [$,
|
|
4671
|
-
|
|
4672
|
-
A !== void 0 && A !== $ &&
|
|
4673
|
-
}, [A]),
|
|
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, [$, U] = k(A), v = ue(0), { t: P } = Xe(), M = it(), O = `${V}`, I = M?.getError(O);
|
|
4671
|
+
G(() => {
|
|
4672
|
+
A !== void 0 && A !== $ && U(A);
|
|
4673
|
+
}, [A]), G(() => {
|
|
4674
4674
|
h && h($);
|
|
4675
4675
|
}, [$]);
|
|
4676
4676
|
const x = () => {
|
|
@@ -4679,15 +4679,15 @@ function uc(e) {
|
|
|
4679
4679
|
}, _ = T(() => {
|
|
4680
4680
|
x();
|
|
4681
4681
|
}, []), S = T((Z) => {
|
|
4682
|
-
B && V && ((Z.type === q.dataChanged || Z.type === q.recordChanged || Z.type === q.afterScroll || Z.type === q.afterCancel || Z.type === q.afterEdit) && (x(), y.isDataSourceV2 || D()), Z.type === q.onFieldError && Z.fieldName === V && (
|
|
4682
|
+
B && V && ((Z.type === q.dataChanged || Z.type === q.recordChanged || Z.type === q.afterScroll || Z.type === q.afterCancel || Z.type === q.afterEdit) && (x(), y.isDataSourceV2 || D()), Z.type === q.onFieldError && Z.fieldName === V && (U(Z.error), M?.setError(O, Z.error)));
|
|
4683
4683
|
}, [y.isDataSourceV2, M, O]), F = ue(S);
|
|
4684
|
-
|
|
4684
|
+
G(() => {
|
|
4685
4685
|
F.current = S;
|
|
4686
4686
|
}, [S]);
|
|
4687
4687
|
const L = T((Z) => {
|
|
4688
4688
|
F.current(Z);
|
|
4689
4689
|
}, []);
|
|
4690
|
-
|
|
4690
|
+
G(() => {
|
|
4691
4691
|
if (x(), B && V) {
|
|
4692
4692
|
const Z = typeof B.addFieldChangeListener == "function";
|
|
4693
4693
|
return B.addListener(L), Z && B.addFieldChangeListener(V, _), () => {
|
|
@@ -4698,16 +4698,16 @@ function uc(e) {
|
|
|
4698
4698
|
x();
|
|
4699
4699
|
}, []);
|
|
4700
4700
|
const C = (Z, Q) => {
|
|
4701
|
-
($ || I) && (
|
|
4701
|
+
($ || 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) => {
|
|
4705
4705
|
const Q = Z.target.value.replaceAll("_", "");
|
|
4706
4706
|
if (v.current, Q.length < i?.length && Q.length - v.current !== 0) {
|
|
4707
4707
|
const ie = f ?? `${P("archbase:O campo está incompleto")}`;
|
|
4708
|
-
|
|
4708
|
+
U(ie), M?.setError(O, ie);
|
|
4709
4709
|
} else
|
|
4710
|
-
|
|
4710
|
+
U(""), M?.clearError(O);
|
|
4711
4711
|
W && W(Z);
|
|
4712
4712
|
}, J = (Z) => {
|
|
4713
4713
|
H && H(Z);
|
|
@@ -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 [$,
|
|
4779
|
-
|
|
4780
|
-
c !== void 0 && c !== $ &&
|
|
4778
|
+
const [$, U] = k(c), v = nt();
|
|
4779
|
+
G(() => {
|
|
4780
|
+
c !== void 0 && c !== $ && U(c);
|
|
4781
4781
|
}, [c]);
|
|
4782
4782
|
const P = () => {
|
|
4783
4783
|
let j = W;
|
|
@@ -4785,15 +4785,15 @@ function If({
|
|
|
4785
4785
|
}, M = T(() => {
|
|
4786
4786
|
P();
|
|
4787
4787
|
}, []), O = T((j) => {
|
|
4788
|
-
e && t && ((j.type === q.dataChanged || j.type === q.recordChanged || j.type === q.afterScroll || j.type === q.afterCancel || j.type === q.afterEdit) && (P(), B.isDataSourceV2 || v()), j.type === q.onFieldError && j.fieldName === t && (
|
|
4788
|
+
e && t && ((j.type === q.dataChanged || j.type === q.recordChanged || j.type === q.afterScroll || j.type === q.afterCancel || j.type === q.afterEdit) && (P(), B.isDataSourceV2 || v()), j.type === q.onFieldError && j.fieldName === t && (U(j.error), V?.setError(X, j.error)));
|
|
4789
4789
|
}, [B.isDataSourceV2, V, X]), I = ue(O);
|
|
4790
|
-
|
|
4790
|
+
G(() => {
|
|
4791
4791
|
I.current = O;
|
|
4792
4792
|
}, [O]);
|
|
4793
4793
|
const x = T((j) => {
|
|
4794
4794
|
I.current(j);
|
|
4795
4795
|
}, []);
|
|
4796
|
-
|
|
4796
|
+
G(() => {
|
|
4797
4797
|
if (P(), e && t) {
|
|
4798
4798
|
const j = typeof e.addFieldChangeListener == "function";
|
|
4799
4799
|
return e.addListener(x), j && e.addFieldChangeListener(t, M), () => {
|
|
@@ -4806,7 +4806,7 @@ function If({
|
|
|
4806
4806
|
const _ = (j) => {
|
|
4807
4807
|
j.preventDefault();
|
|
4808
4808
|
const J = j.target.value;
|
|
4809
|
-
j.persist(), ($ || H) && (
|
|
4809
|
+
j.persist(), ($ || 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) => {
|
|
@@ -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), [$,
|
|
4881
|
-
|
|
4882
|
-
a !== void 0 && a !== $ &&
|
|
4880
|
+
), [z, A] = k(g), [$, U] = k(a), v = nt();
|
|
4881
|
+
G(() => {
|
|
4882
|
+
a !== void 0 && a !== $ && U(a);
|
|
4883
4883
|
}, [a]);
|
|
4884
4884
|
const P = () => {
|
|
4885
4885
|
let C = g;
|
|
@@ -4887,15 +4887,15 @@ function $f({
|
|
|
4887
4887
|
}, M = T(() => {
|
|
4888
4888
|
P();
|
|
4889
4889
|
}, []), O = T((C) => {
|
|
4890
|
-
e && t && ((C.type === q.dataChanged || C.type === q.recordChanged || C.type === q.afterScroll || C.type === q.afterCancel || C.type === q.afterEdit) && (P(), D.isDataSourceV2 || v()), C.type === q.onFieldError && C.fieldName === t && (
|
|
4890
|
+
e && t && ((C.type === q.dataChanged || C.type === q.recordChanged || C.type === q.afterScroll || C.type === q.afterCancel || C.type === q.afterEdit) && (P(), D.isDataSourceV2 || v()), C.type === q.onFieldError && C.fieldName === t && (U(C.error), B?.setError(V, C.error)));
|
|
4891
4891
|
}, [D.isDataSourceV2, B, V]), I = ue(O);
|
|
4892
|
-
|
|
4892
|
+
G(() => {
|
|
4893
4893
|
I.current = O;
|
|
4894
4894
|
}, [O]);
|
|
4895
4895
|
const x = T((C) => {
|
|
4896
4896
|
I.current(C);
|
|
4897
4897
|
}, []);
|
|
4898
|
-
|
|
4898
|
+
G(() => {
|
|
4899
4899
|
if (P(), e && t) {
|
|
4900
4900
|
const C = typeof e.addFieldChangeListener == "function";
|
|
4901
4901
|
return e.addListener(x), C && e.addFieldChangeListener(t, M), () => {
|
|
@@ -4906,7 +4906,7 @@ function $f({
|
|
|
4906
4906
|
P();
|
|
4907
4907
|
}, []);
|
|
4908
4908
|
const _ = (C) => {
|
|
4909
|
-
($ || X) && (
|
|
4909
|
+
($ || 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) => {
|
|
@@ -4974,7 +4974,7 @@ function Rf({
|
|
|
4974
4974
|
), y = it(), m = `${t}`, w = y?.getError(m);
|
|
4975
4975
|
process.env.NODE_ENV;
|
|
4976
4976
|
const [E, D] = k(l), B = s || ue(null), [V, X] = k(h), H = nt();
|
|
4977
|
-
|
|
4977
|
+
G(() => {
|
|
4978
4978
|
h !== void 0 && h !== V && X(h);
|
|
4979
4979
|
}, [h]);
|
|
4980
4980
|
const W = () => {
|
|
@@ -4985,20 +4985,20 @@ function Rf({
|
|
|
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
4987
|
}, [g.isDataSourceV2, y, m]), $ = ue(A);
|
|
4988
|
-
|
|
4988
|
+
G(() => {
|
|
4989
4989
|
$.current = A;
|
|
4990
4990
|
}, [A]);
|
|
4991
|
-
const
|
|
4991
|
+
const U = T((x) => {
|
|
4992
4992
|
$.current(x);
|
|
4993
4993
|
}, []);
|
|
4994
|
-
|
|
4994
|
+
G(() => {
|
|
4995
4995
|
if (W(), e && t) {
|
|
4996
4996
|
const x = typeof e.addFieldChangeListener == "function";
|
|
4997
|
-
return e.addListener(
|
|
4998
|
-
e.removeListener(
|
|
4997
|
+
return e.addListener(U), x && e.addFieldChangeListener(t, z), () => {
|
|
4998
|
+
e.removeListener(U), x && e.removeFieldChangeListener(t, z);
|
|
4999
4999
|
};
|
|
5000
5000
|
}
|
|
5001
|
-
}, [e, t,
|
|
5001
|
+
}, [e, t, U, z]), lt(() => {
|
|
5002
5002
|
W();
|
|
5003
5003
|
}, []);
|
|
5004
5004
|
const v = (x) => {
|
|
@@ -5074,7 +5074,7 @@ function Pf({
|
|
|
5074
5074
|
onSave: z,
|
|
5075
5075
|
onSetToolbarButtons: A,
|
|
5076
5076
|
onLoad: $,
|
|
5077
|
-
onDrop:
|
|
5077
|
+
onDrop: U,
|
|
5078
5078
|
onPaste: v,
|
|
5079
5079
|
onImageUpload: P,
|
|
5080
5080
|
onVideoUpload: M,
|
|
@@ -5101,7 +5101,7 @@ function Pf({
|
|
|
5101
5101
|
const oe = it(), we = `${r}`, ze = oe?.getError(we), { i18n: ve } = Xe(), [re, te] = k(
|
|
5102
5102
|
mc(p, t, r, g)
|
|
5103
5103
|
), [ne, Z] = k(c), Q = nt();
|
|
5104
|
-
|
|
5104
|
+
G(() => {
|
|
5105
5105
|
c !== void 0 && c !== ne && Z(c);
|
|
5106
5106
|
}, [c]);
|
|
5107
5107
|
const ie = () => {
|
|
@@ -5112,13 +5112,13 @@ function Pf({
|
|
|
5112
5112
|
}, []), Ce = T((N) => {
|
|
5113
5113
|
t && r && ((N.type === q.dataChanged || N.type === q.recordChanged || N.type === q.afterScroll || N.type === q.afterCancel || N.type === q.afterEdit) && (ie(), de.isDataSourceV2 || Q()), N.type === q.onFieldError && N.fieldName === r && (Z(N.error), oe?.setError(we, N.error)));
|
|
5114
5114
|
}, [de.isDataSourceV2, oe, we]), be = ue(Ce);
|
|
5115
|
-
|
|
5115
|
+
G(() => {
|
|
5116
5116
|
be.current = Ce;
|
|
5117
5117
|
}, [Ce]);
|
|
5118
5118
|
const R = 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
5124
|
return t.addListener(R), N && t.addFieldChangeListener(r, le), () => {
|
|
@@ -5137,7 +5137,7 @@ function Pf({
|
|
|
5137
5137
|
}, ce = (N, ae) => {
|
|
5138
5138
|
y && y(N);
|
|
5139
5139
|
}, se = () => o || de.isReadOnly, $e = ne || ze, [Re, Ne] = k(!1), [, he] = k({});
|
|
5140
|
-
if (
|
|
5140
|
+
if (G(() => {
|
|
5141
5141
|
typeof window > "u" || pc().then(() => {
|
|
5142
5142
|
Ne(!0), he({});
|
|
5143
5143
|
});
|
|
@@ -5169,7 +5169,7 @@ function Pf({
|
|
|
5169
5169
|
onSave: z,
|
|
5170
5170
|
onSetToolbarButtons: A,
|
|
5171
5171
|
onLoad: $,
|
|
5172
|
-
onDrop:
|
|
5172
|
+
onDrop: U,
|
|
5173
5173
|
onPaste: v,
|
|
5174
5174
|
onImageUpload: P,
|
|
5175
5175
|
onVideoUpload: M,
|
|
@@ -5231,27 +5231,27 @@ 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), [$, U] = k(
|
|
5235
5235
|
yc(V, t, r)
|
|
5236
5236
|
), [v, P] = k(c), M = nt();
|
|
5237
|
-
|
|
5237
|
+
G(() => {
|
|
5238
5238
|
c !== void 0 && c !== v && P(c);
|
|
5239
5239
|
}, [c]);
|
|
5240
5240
|
const O = () => {
|
|
5241
5241
|
let te = V;
|
|
5242
|
-
t && r && (te = t.getFieldValue(r), te || (te = "")),
|
|
5242
|
+
t && r && (te = t.getFieldValue(r), te || (te = "")), U(te);
|
|
5243
5243
|
}, I = T(() => {
|
|
5244
5244
|
O();
|
|
5245
5245
|
}, []), x = T((te) => {
|
|
5246
5246
|
t && r && ((te.type === q.dataChanged || te.type === q.recordChanged || te.type === q.afterScroll || te.type === q.afterCancel || te.type === q.afterEdit) && (O(), H.isDataSourceV2 || M()), te.type === q.onFieldError && te.fieldName === r && (P(te.error), W?.setError(z, te.error)));
|
|
5247
5247
|
}, [H.isDataSourceV2, W, z]), _ = ue(x);
|
|
5248
|
-
|
|
5248
|
+
G(() => {
|
|
5249
5249
|
_.current = x;
|
|
5250
5250
|
}, [x]);
|
|
5251
5251
|
const S = T((te) => {
|
|
5252
5252
|
_.current(te);
|
|
5253
5253
|
}, []);
|
|
5254
|
-
|
|
5254
|
+
G(() => {
|
|
5255
5255
|
if (O(), t && r) {
|
|
5256
5256
|
const te = typeof t.addFieldChangeListener == "function";
|
|
5257
5257
|
return t.addListener(S), te && t.addFieldChangeListener(r, I), () => {
|
|
@@ -5262,7 +5262,7 @@ function Nf({
|
|
|
5262
5262
|
O();
|
|
5263
5263
|
}, []);
|
|
5264
5264
|
const F = (te) => {
|
|
5265
|
-
(v || A) && (P(void 0), W?.clearError(z)),
|
|
5265
|
+
(v || A) && (P(void 0), W?.clearError(z)), U(te), t && !t.isBrowsing() && r && t.getFieldValue(r) !== te && H.handleValueChange(te), y && y(te);
|
|
5266
5266
|
}, L = (te) => {
|
|
5267
5267
|
E && E(te);
|
|
5268
5268
|
}, C = (te) => {
|
|
@@ -5270,7 +5270,7 @@ function Nf({
|
|
|
5270
5270
|
}, j = (te) => {
|
|
5271
5271
|
D && D(te);
|
|
5272
5272
|
}, J = () => o || H.isReadOnly || B, ee = v || A, [Se, de] = k(!1), [, oe] = k({});
|
|
5273
|
-
if (
|
|
5273
|
+
if (G(() => {
|
|
5274
5274
|
typeof window > "u" || gc().then(() => {
|
|
5275
5275
|
de(!0), oe({});
|
|
5276
5276
|
});
|
|
@@ -5342,8 +5342,8 @@ function Vf({
|
|
|
5342
5342
|
a
|
|
5343
5343
|
);
|
|
5344
5344
|
process.env.NODE_ENV;
|
|
5345
|
-
const H = it(), W = `${t}`, z = H?.getError(W), [A, $] = k(c),
|
|
5346
|
-
|
|
5345
|
+
const H = it(), W = `${t}`, z = H?.getError(W), [A, $] = k(c), U = ue(null), [v, P] = k(f), M = nt();
|
|
5346
|
+
G(() => {
|
|
5347
5347
|
f !== void 0 && f !== v && P(f);
|
|
5348
5348
|
}, [f]);
|
|
5349
5349
|
const O = () => {
|
|
@@ -5358,13 +5358,13 @@ function Vf({
|
|
|
5358
5358
|
}, []), x = T((ee) => {
|
|
5359
5359
|
e && t && ((ee.type === q.dataChanged || ee.type === q.recordChanged || ee.type === q.afterScroll || ee.type === q.afterCancel || ee.type === q.afterEdit) && (O(), X.isDataSourceV2 || M()), ee.type === q.onFieldError && ee.fieldName === t && (P(ee.error), H?.setError(W, ee.error)));
|
|
5360
5360
|
}, [X.isDataSourceV2, H, W]), _ = ue(x);
|
|
5361
|
-
|
|
5361
|
+
G(() => {
|
|
5362
5362
|
_.current = x;
|
|
5363
5363
|
}, [x]);
|
|
5364
5364
|
const S = T((ee) => {
|
|
5365
5365
|
_.current(ee);
|
|
5366
5366
|
}, []);
|
|
5367
|
-
|
|
5367
|
+
G(() => {
|
|
5368
5368
|
if (O(), e && t) {
|
|
5369
5369
|
const ee = typeof e.addFieldChangeListener == "function";
|
|
5370
5370
|
return e.addListener(S), ee && e.addFieldChangeListener(t, I), () => {
|
|
@@ -5393,7 +5393,7 @@ function Vf({
|
|
|
5393
5393
|
required: o,
|
|
5394
5394
|
style: { ...s, width: u },
|
|
5395
5395
|
checked: A,
|
|
5396
|
-
ref: V ||
|
|
5396
|
+
ref: V || U,
|
|
5397
5397
|
value: A ? l : a,
|
|
5398
5398
|
onChange: (ee) => F(ee, j()),
|
|
5399
5399
|
onBlur: L,
|
|
@@ -5435,7 +5435,7 @@ function Mf({
|
|
|
5435
5435
|
Oo({
|
|
5436
5436
|
dataSource: e,
|
|
5437
5437
|
listener: d
|
|
5438
|
-
}),
|
|
5438
|
+
}), G(() => {
|
|
5439
5439
|
h();
|
|
5440
5440
|
}, [h]);
|
|
5441
5441
|
const p = T((g) => {
|
|
@@ -5481,32 +5481,32 @@ function Lf({
|
|
|
5481
5481
|
);
|
|
5482
5482
|
process.env.NODE_ENV;
|
|
5483
5483
|
const [D, B] = k(""), V = ue(null), [X, H] = k(c), W = nt(), z = it(), A = `${t}`, $ = z?.getError(A);
|
|
5484
|
-
|
|
5484
|
+
G(() => {
|
|
5485
5485
|
c !== void 0 && c !== X && H(c);
|
|
5486
5486
|
}, [c]);
|
|
5487
|
-
const
|
|
5487
|
+
const U = () => {
|
|
5488
5488
|
let L = D;
|
|
5489
5489
|
e && t && (L = e.getFieldValue(t), L || (L = "")), Ca(L) && !m && (L = atob(L)), B(L);
|
|
5490
5490
|
}, v = T(() => {
|
|
5491
|
-
|
|
5491
|
+
U();
|
|
5492
5492
|
}, []), P = T((L) => {
|
|
5493
|
-
e && t && ((L.type === q.dataChanged || L.type === q.recordChanged || L.type === q.afterScroll || L.type === q.afterCancel || L.type === q.afterEdit) && (
|
|
5494
|
-
}, [E.isDataSourceV2, e, t,
|
|
5495
|
-
|
|
5493
|
+
e && t && ((L.type === q.dataChanged || L.type === q.recordChanged || L.type === q.afterScroll || L.type === q.afterCancel || L.type === q.afterEdit) && (U(), E.isDataSourceV2 || W()), L.type === q.onFieldError && L.fieldName === t && (H(L.error), z?.setError(A, L.error), E.isDataSourceV2 || W()));
|
|
5494
|
+
}, [E.isDataSourceV2, e, t, U, W, z, A]), M = ue(P);
|
|
5495
|
+
G(() => {
|
|
5496
5496
|
M.current = P;
|
|
5497
5497
|
}, [P]);
|
|
5498
5498
|
const O = T((L) => {
|
|
5499
5499
|
M.current(L);
|
|
5500
5500
|
}, []);
|
|
5501
|
-
|
|
5502
|
-
if (
|
|
5501
|
+
G(() => {
|
|
5502
|
+
if (U(), e && t) {
|
|
5503
5503
|
const L = typeof e.addFieldChangeListener == "function";
|
|
5504
5504
|
return e.addListener(O), L && e.addFieldChangeListener(t, v), () => {
|
|
5505
5505
|
e.removeListener(O), L && e.removeFieldChangeListener(t, v);
|
|
5506
5506
|
};
|
|
5507
5507
|
}
|
|
5508
5508
|
}, [e, t, O, v]), lt(() => {
|
|
5509
|
-
|
|
5509
|
+
U();
|
|
5510
5510
|
}, []);
|
|
5511
5511
|
const I = (L) => {
|
|
5512
5512
|
L.preventDefault();
|
|
@@ -5558,7 +5558,7 @@ function vc({ label: e, initialValue: t, onChange: r, readOnly: i = !1, error: o
|
|
|
5558
5558
|
month: "*",
|
|
5559
5559
|
dayOfWeek: "*"
|
|
5560
5560
|
});
|
|
5561
|
-
|
|
5561
|
+
G(() => {
|
|
5562
5562
|
const u = t ? t.split(" ") : [];
|
|
5563
5563
|
u.length === 6 ? l({
|
|
5564
5564
|
seconds: u[0],
|
|
@@ -5666,10 +5666,10 @@ function Bf({
|
|
|
5666
5666
|
value: $
|
|
5667
5667
|
};
|
|
5668
5668
|
}) : [], [m, w] = k(y(e));
|
|
5669
|
-
|
|
5669
|
+
G(() => {
|
|
5670
5670
|
const W = y(e);
|
|
5671
5671
|
JSON.stringify(W) !== JSON.stringify(m) && w(W);
|
|
5672
|
-
}, [e, s, l, a]),
|
|
5672
|
+
}, [e, s, l, a]), G(() => {
|
|
5673
5673
|
if (o) {
|
|
5674
5674
|
const z = m.filter((A) => A.key && A.value).map((A) => `${a ? `{${A.key}}` : A.key}${l}${A.value}`).join(s);
|
|
5675
5675
|
z !== e && o(z);
|
|
@@ -5682,10 +5682,10 @@ function Bf({
|
|
|
5682
5682
|
const z = m.filter((A, $) => $ !== W);
|
|
5683
5683
|
w(z);
|
|
5684
5684
|
}, B = (W, z) => {
|
|
5685
|
-
const A = m.map(($,
|
|
5685
|
+
const A = m.map(($, U) => U === W ? { ...$, key: z } : $);
|
|
5686
5686
|
w(A);
|
|
5687
5687
|
}, V = (W, z) => {
|
|
5688
|
-
const A = m.map(($,
|
|
5688
|
+
const A = m.map(($, U) => U === W ? { ...$, value: z } : $);
|
|
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: [
|
|
@@ -5767,7 +5767,17 @@ Até: ${i}`;
|
|
|
5767
5767
|
width: a = 300,
|
|
5768
5768
|
position: c = "bottom",
|
|
5769
5769
|
componentRef: u
|
|
5770
|
-
} = e, [d, h] = k(i || null), [f, p] = k({ start: null, end: null }), [g, y] = k(
|
|
5770
|
+
} = e, [d, h] = k(i || null), [f, p] = k({ start: null, end: null }), [g, y] = k(() => {
|
|
5771
|
+
if (i && i !== "custom") {
|
|
5772
|
+
const z = t.find((A) => A.value === i);
|
|
5773
|
+
if (z)
|
|
5774
|
+
return z.rangeFunction(/* @__PURE__ */ new Date());
|
|
5775
|
+
}
|
|
5776
|
+
return o && o.start && o.end ? {
|
|
5777
|
+
start: new Date(o.start.getTime()),
|
|
5778
|
+
end: new Date(o.end.getTime())
|
|
5779
|
+
} : { start: null, end: null };
|
|
5780
|
+
}), [m, w] = k(!1), E = ue(null), D = ue(null), B = ue({
|
|
5771
5781
|
updateCurrentRange: () => {
|
|
5772
5782
|
if (d && d !== "custom") {
|
|
5773
5783
|
const z = t.find((A) => A.value === d);
|
|
@@ -5786,7 +5796,7 @@ Até: ${i}`;
|
|
|
5786
5796
|
const z = t.find((A) => A.value === d);
|
|
5787
5797
|
return z && d !== "custom" ? z.label : xc(g.start, g.end);
|
|
5788
5798
|
}, [d, g, t]);
|
|
5789
|
-
|
|
5799
|
+
G(() => {
|
|
5790
5800
|
B.current = {
|
|
5791
5801
|
updateCurrentRange: () => {
|
|
5792
5802
|
if (d && d !== "custom") {
|
|
@@ -5803,14 +5813,9 @@ Até: ${i}`;
|
|
|
5803
5813
|
range: g
|
|
5804
5814
|
})
|
|
5805
5815
|
};
|
|
5806
|
-
}, [d, t, r, g]),
|
|
5816
|
+
}, [d, t, r, g]), G(() => {
|
|
5807
5817
|
u && (u.current = B.current);
|
|
5808
|
-
}, [u, B.current]),
|
|
5809
|
-
o && o.start && o.end && y({
|
|
5810
|
-
start: new Date(o.start.getTime()),
|
|
5811
|
-
end: new Date(o.end.getTime())
|
|
5812
|
-
});
|
|
5813
|
-
}, []), U(() => {
|
|
5818
|
+
}, [u, B.current]), G(() => {
|
|
5814
5819
|
if (i !== void 0)
|
|
5815
5820
|
if (h(i), i && i !== "custom") {
|
|
5816
5821
|
const z = t.find((A) => A.value === i);
|
|
@@ -5848,8 +5853,8 @@ Até: ${i}`;
|
|
|
5848
5853
|
end: new Date(g.end.getTime())
|
|
5849
5854
|
});
|
|
5850
5855
|
}, W = (z, A) => {
|
|
5851
|
-
const [$,
|
|
5852
|
-
v.setHours($,
|
|
5856
|
+
const [$, U] = z.split(":").map(Number), v = new Date((A ? f.start : f.end) || /* @__PURE__ */ new Date());
|
|
5857
|
+
v.setHours($, U), p((P) => ({
|
|
5853
5858
|
...P,
|
|
5854
5859
|
[A ? "start" : "end"]: new Date(v)
|
|
5855
5860
|
}));
|
|
@@ -5994,7 +5999,7 @@ function mn({
|
|
|
5994
5999
|
spacing: w = "md"
|
|
5995
6000
|
}) {
|
|
5996
6001
|
const E = _t(yi), D = ue(null);
|
|
5997
|
-
|
|
6002
|
+
G(() => {
|
|
5998
6003
|
D.current && e && D.current.focus();
|
|
5999
6004
|
}, [e]);
|
|
6000
6005
|
const B = (A) => {
|
|
@@ -6069,7 +6074,7 @@ function Sc(e) {
|
|
|
6069
6074
|
children: z,
|
|
6070
6075
|
withPadding: A = !1,
|
|
6071
6076
|
listStyleType: $ = "",
|
|
6072
|
-
center:
|
|
6077
|
+
center: U = !1,
|
|
6073
6078
|
spacing: v = "md",
|
|
6074
6079
|
type: P = "none",
|
|
6075
6080
|
icon: M,
|
|
@@ -6101,9 +6106,9 @@ function Sc(e) {
|
|
|
6101
6106
|
"ArchbaseList",
|
|
6102
6107
|
V
|
|
6103
6108
|
), ne = nt();
|
|
6104
|
-
|
|
6109
|
+
G(() => {
|
|
6105
6110
|
m !== void 0 && J(m);
|
|
6106
|
-
}, [m]),
|
|
6111
|
+
}, [m]), G(() => {
|
|
6107
6112
|
const he = (Ue) => {
|
|
6108
6113
|
if (Ue.type === q.afterScroll || Ue.type === q.fieldChanged || Ue.type === q.dataChanged || Ue.type === q.afterRemove || Ue.type === q.recordChanged) {
|
|
6109
6114
|
const Pe = V.getCurrentIndex();
|
|
@@ -6113,13 +6118,13 @@ function Sc(e) {
|
|
|
6113
6118
|
return V && V.addListener(he), () => {
|
|
6114
6119
|
V && V.removeListener(he);
|
|
6115
6120
|
};
|
|
6116
|
-
}, [V, j, d, ne, te.isDataSourceV2]),
|
|
6121
|
+
}, [V, j, d, ne, te.isDataSourceV2]), G(() => {
|
|
6117
6122
|
ve(X);
|
|
6118
6123
|
}, [X]);
|
|
6119
6124
|
const Z = (he, Ue) => {
|
|
6120
6125
|
m === void 0 && J(he), d && d(he, Ue);
|
|
6121
6126
|
};
|
|
6122
|
-
|
|
6127
|
+
G(() => {
|
|
6123
6128
|
V && V instanceof an && j >= 0 && V.getCurrentIndex() !== j && !V.isEmpty() && V.gotoRecord(j);
|
|
6124
6129
|
}, [j]);
|
|
6125
6130
|
const Q = (he) => {
|
|
@@ -6261,7 +6266,7 @@ function Sc(e) {
|
|
|
6261
6266
|
he.id
|
|
6262
6267
|
);
|
|
6263
6268
|
});
|
|
6264
|
-
return
|
|
6269
|
+
return G(() => {
|
|
6265
6270
|
if (V) {
|
|
6266
6271
|
const he = $e(V);
|
|
6267
6272
|
oe(he), te.isDataSourceV2 || ne();
|
|
@@ -6328,47 +6333,47 @@ const us = ({
|
|
|
6328
6333
|
update: p
|
|
6329
6334
|
}) => {
|
|
6330
6335
|
const [g, y] = k(!1), [m, w] = k(!1), E = nt(), D = T(
|
|
6331
|
-
(
|
|
6336
|
+
(U) => {
|
|
6332
6337
|
const v = !g;
|
|
6333
|
-
y(v), o(e.id, v),
|
|
6338
|
+
y(v), o(e.id, v), U.stopPropagation();
|
|
6334
6339
|
},
|
|
6335
6340
|
[g, e.id, o, e.state.expanded]
|
|
6336
6341
|
);
|
|
6337
|
-
|
|
6342
|
+
G(() => {
|
|
6338
6343
|
e.state && y(e.state.expanded), e.state && w(e.state.selected);
|
|
6339
6344
|
}, [e.state.expanded, e.state.selected]);
|
|
6340
6345
|
const B = T(
|
|
6341
|
-
(
|
|
6346
|
+
(U) => {
|
|
6342
6347
|
const v = !m;
|
|
6343
|
-
w(v), i(e.id, v),
|
|
6348
|
+
w(v), i(e.id, v), U.stopPropagation(), E();
|
|
6344
6349
|
},
|
|
6345
6350
|
[m, e.id, i, e.state.selected]
|
|
6346
6351
|
), V = T(
|
|
6347
|
-
(
|
|
6348
|
-
s(e.id), E(),
|
|
6352
|
+
(U) => {
|
|
6353
|
+
s(e.id), E(), U.stopPropagation();
|
|
6349
6354
|
},
|
|
6350
6355
|
[e.id, s]
|
|
6351
6356
|
), X = T(
|
|
6352
|
-
(
|
|
6353
|
-
a(e.id, m),
|
|
6357
|
+
(U) => {
|
|
6358
|
+
a(e.id, m), U.stopPropagation();
|
|
6354
6359
|
},
|
|
6355
6360
|
[e.id, m, a]
|
|
6356
6361
|
), H = Ge(() => {
|
|
6357
|
-
const
|
|
6358
|
-
return t.highlightSelected && m ? (
|
|
6362
|
+
const U = {};
|
|
6363
|
+
return t.highlightSelected && m ? (U.color = t.selectedColor, U.backgroundColor = t.selectedBackgroundColor) : (U.color = e.color || t.color, U.backgroundColor = e.backgroundColor || t.backgroundColor), U;
|
|
6359
6364
|
}, [m, e, t]), W = Ge(() => {
|
|
6360
6365
|
if (t.selectable)
|
|
6361
6366
|
return m ? /* @__PURE__ */ n(Ae, { onClick: B, variant: "transparent", children: /* @__PURE__ */ n(Fa, { size: "1.2rem", style: H }) }) : /* @__PURE__ */ n(Ae, { onClick: B, variant: "transparent", children: /* @__PURE__ */ n(Ba, { size: "1.2rem", style: H }) });
|
|
6362
6367
|
}, [t.selectable, m, H, B]), z = Ge(() => g ? e.state?.loading === !0 ? /* @__PURE__ */ n("i", { style: { ...H, width: "1rem" }, className: "svg-inline--fa fa-spinner fa-w-16 fa-spin fa-lg" }) : /* @__PURE__ */ n(Ae, { onClick: D, variant: "transparent", children: /* @__PURE__ */ n(dn, { size: "1.2rem", style: { ...H } }) }) : /* @__PURE__ */ n(Ae, { onClick: D, variant: "transparent", children: /* @__PURE__ */ n(Gr, { size: "1.2rem", style: { ...H } }) }), [g, m, e, H, D, B]), A = Ge(() => {
|
|
6363
|
-
const
|
|
6364
|
-
return
|
|
6368
|
+
const U = l();
|
|
6369
|
+
return U && U.id === e.id ? {
|
|
6365
6370
|
color: t.focusedColor,
|
|
6366
6371
|
backgroundColor: t.focusedBackgroundColor
|
|
6367
6372
|
} : {};
|
|
6368
6373
|
}, [e.id, l, t.focusedColor, t.focusedBackgroundColor, g, m]), $ = Ge(() => {
|
|
6369
|
-
const
|
|
6374
|
+
const U = [];
|
|
6370
6375
|
return e.nodes && e.state.expanded && e.nodes.forEach((v) => {
|
|
6371
|
-
|
|
6376
|
+
U.push(
|
|
6372
6377
|
/* @__PURE__ */ n(
|
|
6373
6378
|
us,
|
|
6374
6379
|
{
|
|
@@ -6390,7 +6395,7 @@ const us = ({
|
|
|
6390
6395
|
v.id
|
|
6391
6396
|
)
|
|
6392
6397
|
);
|
|
6393
|
-
}),
|
|
6398
|
+
}), U;
|
|
6394
6399
|
}, [
|
|
6395
6400
|
e.nodes,
|
|
6396
6401
|
e.state,
|
|
@@ -6449,7 +6454,7 @@ const us = ({
|
|
|
6449
6454
|
onLoadDataSource: z,
|
|
6450
6455
|
onAddedNode: A,
|
|
6451
6456
|
onExpandedNode: $,
|
|
6452
|
-
onCollapsedNode:
|
|
6457
|
+
onCollapsedNode: U,
|
|
6453
6458
|
onChangedDataSource: v,
|
|
6454
6459
|
dataSource: P,
|
|
6455
6460
|
style: M,
|
|
@@ -6544,7 +6549,7 @@ const us = ({
|
|
|
6544
6549
|
},
|
|
6545
6550
|
[C, v, X, H, Q, w, E, ie]
|
|
6546
6551
|
);
|
|
6547
|
-
|
|
6552
|
+
G(() => {
|
|
6548
6553
|
we((ge) => ge + 1), ze();
|
|
6549
6554
|
}, [C]);
|
|
6550
6555
|
const xe = T(
|
|
@@ -6570,10 +6575,10 @@ const us = ({
|
|
|
6570
6575
|
const ae = [...C], fe = [], Te = re(ae, ge);
|
|
6571
6576
|
if (Te && Te.state) {
|
|
6572
6577
|
let qe = !Te.nodes && !Te.isleaf;
|
|
6573
|
-
!z && qe && (qe = !1), Te.state.expanded = N, Te.state.loading = qe, fe.push(Te), j(ae), v && v(ae), N === !0 ? $ && $(ae, fe) :
|
|
6578
|
+
!z && qe && (qe = !1), Te.state.expanded = N, Te.state.loading = qe, fe.push(Te), j(ae), v && v(ae), N === !0 ? $ && $(ae, fe) : U && U(ae, fe), qe && xe(Te.id);
|
|
6574
6579
|
}
|
|
6575
6580
|
},
|
|
6576
|
-
[C, v, z, xe, $,
|
|
6581
|
+
[C, v, z, xe, $, U]
|
|
6577
6582
|
), se = T(
|
|
6578
6583
|
(ge) => {
|
|
6579
6584
|
V && J && V(J);
|
|
@@ -6697,7 +6702,7 @@ const us = ({
|
|
|
6697
6702
|
ce
|
|
6698
6703
|
]
|
|
6699
6704
|
);
|
|
6700
|
-
|
|
6705
|
+
G(() => {
|
|
6701
6706
|
Se.current = [], j(ve(Wi.clone({ nodes: P })));
|
|
6702
6707
|
}, [P, ve]);
|
|
6703
6708
|
const Pe = Ge(() => ({
|
|
@@ -6831,7 +6836,7 @@ const us = ({
|
|
|
6831
6836
|
onFocusExit: z,
|
|
6832
6837
|
onDropdownOpen: A,
|
|
6833
6838
|
onDropdownClose: $
|
|
6834
|
-
},
|
|
6839
|
+
}, U) => {
|
|
6835
6840
|
const v = Zt(), [P, M] = k(a), [O, I] = k(!1), [x, _] = k(w);
|
|
6836
6841
|
Ze(
|
|
6837
6842
|
"ArchbaseTreeSelect",
|
|
@@ -6840,7 +6845,7 @@ const us = ({
|
|
|
6840
6845
|
l !== void 0 ? l : P
|
|
6841
6846
|
);
|
|
6842
6847
|
const S = it(), F = `${t}`, L = S?.getError(F);
|
|
6843
|
-
|
|
6848
|
+
G(() => {
|
|
6844
6849
|
w !== void 0 && w !== x && _(w);
|
|
6845
6850
|
}, [w]);
|
|
6846
6851
|
const C = l !== void 0, j = C ? l : e && t ? e.getFieldValue(t) : P, J = Ge(() => {
|
|
@@ -6865,13 +6870,13 @@ const us = ({
|
|
|
6865
6870
|
},
|
|
6866
6871
|
[t, S, F]
|
|
6867
6872
|
), ze = ue(we);
|
|
6868
|
-
|
|
6873
|
+
G(() => {
|
|
6869
6874
|
ze.current = we;
|
|
6870
6875
|
}, [we]);
|
|
6871
6876
|
const ve = T((Q) => {
|
|
6872
6877
|
ze.current(Q);
|
|
6873
6878
|
}, []);
|
|
6874
|
-
|
|
6879
|
+
G(() => {
|
|
6875
6880
|
if (e)
|
|
6876
6881
|
return e.addListener(ve), () => {
|
|
6877
6882
|
e.removeListener(ve);
|
|
@@ -6906,7 +6911,7 @@ const us = ({
|
|
|
6906
6911
|
children: /* @__PURE__ */ n(
|
|
6907
6912
|
ta,
|
|
6908
6913
|
{
|
|
6909
|
-
ref:
|
|
6914
|
+
ref: U,
|
|
6910
6915
|
disabled: te,
|
|
6911
6916
|
onClick: oe,
|
|
6912
6917
|
onFocus: W,
|
|
@@ -7035,9 +7040,9 @@ function jf({
|
|
|
7035
7040
|
error: o
|
|
7036
7041
|
}) {
|
|
7037
7042
|
const [s, l] = k([]), [a, c] = k({ start: null, end: null }), [u, d] = k([]);
|
|
7038
|
-
|
|
7043
|
+
G(() => {
|
|
7039
7044
|
t && d(Ic(t));
|
|
7040
|
-
}, [t]),
|
|
7045
|
+
}, [t]), G(() => {
|
|
7041
7046
|
r(Pc(u));
|
|
7042
7047
|
}, [u, r]);
|
|
7043
7048
|
const h = (g, y) => {
|
|
@@ -7137,7 +7142,7 @@ const Hf = ({ targetDate: e, color: t }) => {
|
|
|
7137
7142
|
minutes: xt.duration(d).minutes()
|
|
7138
7143
|
};
|
|
7139
7144
|
}, [o, s] = k(i());
|
|
7140
|
-
|
|
7145
|
+
G(() => {
|
|
7141
7146
|
const c = setInterval(() => {
|
|
7142
7147
|
s(i());
|
|
7143
7148
|
}, 1e3);
|
|
@@ -7158,7 +7163,7 @@ const Hf = ({ targetDate: e, color: t }) => {
|
|
|
7158
7163
|
width: l = "100%"
|
|
7159
7164
|
}) => {
|
|
7160
7165
|
const [a, c] = k(null), u = Zt(), { t: d } = Xe();
|
|
7161
|
-
|
|
7166
|
+
G(() => {
|
|
7162
7167
|
const y = (m) => {
|
|
7163
7168
|
a !== null && (m.key === "ArrowRight" ? c(
|
|
7164
7169
|
(w) => w !== null && w < e.length - 1 ? w + 1 : w
|
|
@@ -7393,25 +7398,25 @@ function Gf({
|
|
|
7393
7398
|
""
|
|
7394
7399
|
);
|
|
7395
7400
|
process.env.NODE_ENV;
|
|
7396
|
-
const z = it(), A = `${t}`, $ = z?.getError(A), [
|
|
7397
|
-
|
|
7401
|
+
const z = it(), A = `${t}`, $ = z?.getError(A), [U, v] = k(p || ""), P = ue(null), M = Mt(), { colorScheme: O } = Lt(), [I, x] = k(c), _ = nt();
|
|
7402
|
+
G(() => {
|
|
7398
7403
|
c !== void 0 && c !== I && x(c);
|
|
7399
7404
|
}, [c]);
|
|
7400
7405
|
const S = () => {
|
|
7401
|
-
let re =
|
|
7406
|
+
let re = U;
|
|
7402
7407
|
e && t && (re = e.getFieldValue(t), re || (re = "")), v(re);
|
|
7403
7408
|
}, F = T(() => {
|
|
7404
7409
|
S();
|
|
7405
7410
|
}, []), L = T((re) => {
|
|
7406
7411
|
e && t && ((re.type === q.dataChanged || re.type === q.recordChanged || re.type === q.afterScroll || re.type === q.afterCancel || re.type === q.afterEdit) && (S(), W.isDataSourceV2 || _()), re.type === q.onFieldError && re.fieldName === t && (x(re.error), z?.setError(A, re.error)));
|
|
7407
7412
|
}, [W.isDataSourceV2, z, A]), C = ue(L);
|
|
7408
|
-
|
|
7413
|
+
G(() => {
|
|
7409
7414
|
C.current = L;
|
|
7410
7415
|
}, [L]);
|
|
7411
7416
|
const j = T((re) => {
|
|
7412
7417
|
C.current(re);
|
|
7413
7418
|
}, []);
|
|
7414
|
-
|
|
7419
|
+
G(() => {
|
|
7415
7420
|
if (S(), e && t) {
|
|
7416
7421
|
const re = typeof e.addFieldChangeListener == "function";
|
|
7417
7422
|
return e.addListener(j), re && e.addFieldChangeListener(t, F), () => {
|
|
@@ -7461,7 +7466,7 @@ function Gf({
|
|
|
7461
7466
|
width: h,
|
|
7462
7467
|
...o
|
|
7463
7468
|
},
|
|
7464
|
-
value:
|
|
7469
|
+
value: U,
|
|
7465
7470
|
ref: f || P,
|
|
7466
7471
|
required: u,
|
|
7467
7472
|
onChange: J,
|
|
@@ -7501,13 +7506,13 @@ function qf({
|
|
|
7501
7506
|
imageQuality: D = 0.95,
|
|
7502
7507
|
...B
|
|
7503
7508
|
}) {
|
|
7504
|
-
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), [$, 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(
|
|
7505
7510
|
"ArchbaseAvatarEdit",
|
|
7506
7511
|
r,
|
|
7507
7512
|
i,
|
|
7508
7513
|
void 0
|
|
7509
7514
|
), te = it(), ne = `${i}`, Z = te?.getError(ne);
|
|
7510
|
-
process.env.NODE_ENV,
|
|
7515
|
+
process.env.NODE_ENV, G(() => {
|
|
7511
7516
|
u !== void 0 && u !== j && J(u);
|
|
7512
7517
|
}, [u]);
|
|
7513
7518
|
const Q = () => {
|
|
@@ -7518,13 +7523,13 @@ function qf({
|
|
|
7518
7523
|
}, []), le = T((N) => {
|
|
7519
7524
|
r && i && ((N.type === q.dataChanged || N.type === q.recordChanged || N.type === q.afterScroll || N.type === q.afterCancel || N.type === q.afterEdit) && (Q(), re.isDataSourceV2 || de()), N.type === q.onFieldError && N.fieldName === i && (J(N.error), te?.setError(ne, N.error)));
|
|
7520
7525
|
}, [re.isDataSourceV2, te, ne]), Ce = ue(le);
|
|
7521
|
-
|
|
7526
|
+
G(() => {
|
|
7522
7527
|
Ce.current = le;
|
|
7523
7528
|
}, [le]);
|
|
7524
7529
|
const be = T((N) => {
|
|
7525
7530
|
Ce.current(N);
|
|
7526
7531
|
}, []);
|
|
7527
|
-
|
|
7532
|
+
G(() => {
|
|
7528
7533
|
if (Q(), r && i) {
|
|
7529
7534
|
const N = typeof r.addFieldChangeListener == "function";
|
|
7530
7535
|
return r.addListener(be), N && r.addFieldChangeListener(i, ie), () => {
|
|
@@ -7548,7 +7553,7 @@ function qf({
|
|
|
7548
7553
|
if (N.target.files && N.target.files.length > 0) {
|
|
7549
7554
|
const ae = N.target.files[0], fe = new FileReader();
|
|
7550
7555
|
fe.onload = () => {
|
|
7551
|
-
A(H), W(fe.result),
|
|
7556
|
+
A(H), W(fe.result), U(!0), P({ x: 0, y: 0 }), O(f), x(0);
|
|
7552
7557
|
}, fe.readAsDataURL(ae), N.target.value = "";
|
|
7553
7558
|
}
|
|
7554
7559
|
}, $e = () => {
|
|
@@ -7558,7 +7563,7 @@ function qf({
|
|
|
7558
7563
|
}, Re = (N, ae) => {
|
|
7559
7564
|
S(ae);
|
|
7560
7565
|
}, Ne = () => {
|
|
7561
|
-
|
|
7566
|
+
U(!1), W(z);
|
|
7562
7567
|
}, he = (N) => new Promise((ae, fe) => {
|
|
7563
7568
|
const Te = new Image();
|
|
7564
7569
|
Te.addEventListener("load", () => ae(Te)), Te.addEventListener("error", (qe) => fe(qe)), Te.setAttribute("crossOrigin", "anonymous"), Te.src = N;
|
|
@@ -7608,7 +7613,7 @@ function qf({
|
|
|
7608
7613
|
})}`);
|
|
7609
7614
|
return;
|
|
7610
7615
|
}
|
|
7611
|
-
R(fe),
|
|
7616
|
+
R(fe), U(!1), A(void 0), Se("");
|
|
7612
7617
|
} catch (N) {
|
|
7613
7618
|
Se(`Error cropping the image: ${N}`);
|
|
7614
7619
|
}
|
|
@@ -7924,7 +7929,7 @@ function Yf({ actions: e, variant: t, customComponents: r, options: i }) {
|
|
|
7924
7929
|
function $(v) {
|
|
7925
7930
|
v.enabled && v.executeAction();
|
|
7926
7931
|
}
|
|
7927
|
-
function
|
|
7932
|
+
function U() {
|
|
7928
7933
|
return s.current = null, d.length > 0 && /* @__PURE__ */ b(ot, { children: [
|
|
7929
7934
|
c !== 0 && W === "right" ? /* @__PURE__ */ n(br, { w: H }) : void 0,
|
|
7930
7935
|
/* @__PURE__ */ n("div", { ref: s, children: /* @__PURE__ */ b(
|
|
@@ -7976,7 +7981,7 @@ function Yf({ actions: e, variant: t, customComponents: r, options: i }) {
|
|
|
7976
7981
|
},
|
|
7977
7982
|
ref: f,
|
|
7978
7983
|
children: [
|
|
7979
|
-
W === "left" ?
|
|
7984
|
+
W === "left" ? U() : void 0,
|
|
7980
7985
|
e.map((v, P) => {
|
|
7981
7986
|
const M = He.createRef();
|
|
7982
7987
|
if (o.current = [...o.current, M], !(P >= c))
|
|
@@ -7995,7 +8000,7 @@ function Yf({ actions: e, variant: t, customComponents: r, options: i }) {
|
|
|
7995
8000
|
c === P + 1 ? void 0 : /* @__PURE__ */ n(br, { w: H }, P)
|
|
7996
8001
|
] });
|
|
7997
8002
|
}),
|
|
7998
|
-
W === "right" ?
|
|
8003
|
+
W === "right" ? U() : void 0
|
|
7999
8004
|
]
|
|
8000
8005
|
}
|
|
8001
8006
|
);
|
|
@@ -8018,7 +8023,7 @@ function Qf({
|
|
|
8018
8023
|
verticalLineStrokeWidth: g = 2,
|
|
8019
8024
|
verticalLineStrokeOpacity: y = 1
|
|
8020
8025
|
}) {
|
|
8021
|
-
const { colorScheme: m } = Lt(), w = Mt(), [E, D] = k({}), [B, V] = k(0), [X, H] = k(0), [W, z] = k(0), [A, $] = k(/* @__PURE__ */ new Date()), [
|
|
8026
|
+
const { colorScheme: m } = Lt(), w = Mt(), [E, D] = k({}), [B, V] = k(0), [X, H] = k(0), [W, z] = k(0), [A, $] = 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();
|
|
8022
8027
|
function S() {
|
|
8023
8028
|
const de = "0123456789ABCDEF";
|
|
8024
8029
|
let oe = "#";
|
|
@@ -8040,7 +8045,7 @@ function Qf({
|
|
|
8040
8045
|
new Date(Math.ceil(re.getTime() / 1e3) * 1e3)
|
|
8041
8046
|
]).range([0, we > 0 ? we : 0]), ne = bt.scaleBand().rangeRound([0, ze]).padding(0.1).domain(de.map((R) => R.type));
|
|
8042
8047
|
V(ne.domain().length), $(te.domain()[0]), v(te.domain()[1]);
|
|
8043
|
-
const Z = oe.append("g").attr("transform", `translate(${O.left},${O.top})`), Q = (
|
|
8048
|
+
const Z = oe.append("g").attr("transform", `translate(${O.left},${O.top})`), Q = (U.getTime() - A.getTime()) / 1e3 * c;
|
|
8044
8049
|
Z.append("g").attr("class", "axis axis--x").call(bt.axisTop(te).tickFormat(ee).ticks(Q)).selectAll("text").attr("transform", function(R) {
|
|
8045
8050
|
return `rotate(${f})`;
|
|
8046
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", (R) => te(R.startTime)).attr("y", (R) => ne(R.type)).attr("width", (R) => te(R.endTime) - te(R.startTime)).attr("height", ne.bandwidth()).style("fill", (R) => F(R.type)).style("z-index", 800).on("mouseover", function(R, xe) {
|
|
@@ -8075,9 +8080,9 @@ function Qf({
|
|
|
8075
8080
|
function Se(de) {
|
|
8076
8081
|
return bt.timeFormat("%Y-%m-%d %H:%M:%S")(de);
|
|
8077
8082
|
}
|
|
8078
|
-
return
|
|
8083
|
+
return G(() => {
|
|
8079
8084
|
P || M(Dt("timeline"));
|
|
8080
|
-
}, []),
|
|
8085
|
+
}, []), G(() => {
|
|
8081
8086
|
if (e.length > 0) {
|
|
8082
8087
|
let de = e;
|
|
8083
8088
|
if (t)
|
|
@@ -8098,7 +8103,7 @@ function Qf({
|
|
|
8098
8103
|
"svg",
|
|
8099
8104
|
{
|
|
8100
8105
|
id: `timeline-chart-${P}`,
|
|
8101
|
-
width: X + (
|
|
8106
|
+
width: X + (U.getTime() - A.getTime()) / 1e3 * 10 ** s * o,
|
|
8102
8107
|
height: W + L()
|
|
8103
8108
|
}
|
|
8104
8109
|
),
|
|
@@ -8227,7 +8232,7 @@ function Uc({
|
|
|
8227
8232
|
disabled: z = !1,
|
|
8228
8233
|
loading: A,
|
|
8229
8234
|
error: $,
|
|
8230
|
-
noData:
|
|
8235
|
+
noData: U,
|
|
8231
8236
|
onLoad: v,
|
|
8232
8237
|
onError: P,
|
|
8233
8238
|
on: M,
|
|
@@ -8273,7 +8278,7 @@ function Uc({
|
|
|
8273
8278
|
return Q.setDate(Q.getDate() - 1), ie.setDate(ie.getDate() + 1), [Q, ie];
|
|
8274
8279
|
}
|
|
8275
8280
|
}, [s, i, o, oe]);
|
|
8276
|
-
|
|
8281
|
+
G(() => {
|
|
8277
8282
|
let Z = !0;
|
|
8278
8283
|
return (async () => {
|
|
8279
8284
|
if (!(!S.current || z))
|
|
@@ -8305,12 +8310,12 @@ function Uc({
|
|
|
8305
8310
|
})(), () => {
|
|
8306
8311
|
Z = !1, F.current && (F.current.destroy(), F.current = null);
|
|
8307
8312
|
};
|
|
8308
|
-
}, []),
|
|
8313
|
+
}, []), G(() => {
|
|
8309
8314
|
if (F.current && L) {
|
|
8310
8315
|
const Z = F.current.itemsData;
|
|
8311
8316
|
Z && (Z.clear(), Z.add(oe));
|
|
8312
8317
|
}
|
|
8313
|
-
}, [oe, L]),
|
|
8318
|
+
}, [oe, L]), G(() => {
|
|
8314
8319
|
F.current && L && we && F.current.setGroups(we);
|
|
8315
8320
|
}, [we, L]);
|
|
8316
8321
|
const ve = () => {
|
|
@@ -8358,14 +8363,14 @@ function Uc({
|
|
|
8358
8363
|
className: V,
|
|
8359
8364
|
children: /* @__PURE__ */ n(mt, { h: "100%", children: /* @__PURE__ */ n(vr, { icon: /* @__PURE__ */ n(cr, { size: 16 }), color: "red", title: "Error", children: typeof $ == "string" ? $ : "Failed to load timeline" }) })
|
|
8360
8365
|
}
|
|
8361
|
-
) : e.length === 0 &&
|
|
8366
|
+
) : e.length === 0 && U ? /* @__PURE__ */ n(
|
|
8362
8367
|
Qe,
|
|
8363
8368
|
{
|
|
8364
8369
|
withBorder: !0,
|
|
8365
8370
|
p: "xl",
|
|
8366
8371
|
style: { width: l, height: a, minHeight: c },
|
|
8367
8372
|
className: V,
|
|
8368
|
-
children: /* @__PURE__ */ n(mt, { h: "100%", children: /* @__PURE__ */ n(K, { c: "dimmed", children: typeof
|
|
8373
|
+
children: /* @__PURE__ */ n(mt, { h: "100%", children: /* @__PURE__ */ n(K, { c: "dimmed", children: typeof U == "string" ? U : _("No items to display") }) })
|
|
8369
8374
|
}
|
|
8370
8375
|
) : /* @__PURE__ */ b(
|
|
8371
8376
|
Qe,
|
|
@@ -8798,7 +8803,7 @@ const Or = () => {
|
|
|
8798
8803
|
e
|
|
8799
8804
|
);
|
|
8800
8805
|
t.id || (t.id = Date.now().toString()), Object.freeze(t);
|
|
8801
|
-
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, $] = He.useState(1), { ref:
|
|
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, $] = 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) => {
|
|
8802
8807
|
p(ee.clientY - l), h(ee.clientX - c), z(Or()), $(0.5);
|
|
8803
8808
|
}, L = (ee) => {
|
|
8804
8809
|
u((ee.clientX || ee.screenX || c + d) - d), a((ee.clientY || ee.screenY || l + f) - f);
|
|
@@ -8824,7 +8829,7 @@ const Or = () => {
|
|
|
8824
8829
|
const ee = document.getElementById(t.id)?.parentElement;
|
|
8825
8830
|
m ? (O.current = r, I.current = o, a(x.current || 0), u(_.current || 0), w(!1), V("□"), y(!1), D("▁")) : (O.current = ee?.clientHeight || window.innerHeight, I.current = ee?.clientWidth || window.innerWidth, g || (_.current = c, x.current = l), a(ee?.offsetTop || 0), u(ee?.offsetLeft || 0), w(!0), V("❐"), y(!1), D("▁")), z(Or()), setTimeout(H, S + 1, "");
|
|
8826
8831
|
};
|
|
8827
|
-
return
|
|
8832
|
+
return G(() => {
|
|
8828
8833
|
!m && !g && (s(v), i(P));
|
|
8829
8834
|
}, [v, P, m, g]), /* @__PURE__ */ b(
|
|
8830
8835
|
"div",
|
|
@@ -8841,7 +8846,7 @@ const Or = () => {
|
|
|
8841
8846
|
zIndex: W,
|
|
8842
8847
|
opacity: A
|
|
8843
8848
|
},
|
|
8844
|
-
ref:
|
|
8849
|
+
ref: U,
|
|
8845
8850
|
onClick: () => {
|
|
8846
8851
|
z(Or());
|
|
8847
8852
|
},
|
|
@@ -9905,7 +9910,7 @@ function ep({
|
|
|
9905
9910
|
}
|
|
9906
9911
|
);
|
|
9907
9912
|
}
|
|
9908
|
-
const Ad = He.createContext({}), tp = Ad.Provider, Dd = 1, bs = typeof window < "u" ?
|
|
9913
|
+
const Ad = He.createContext({}), tp = Ad.Provider, Dd = 1, bs = typeof window < "u" ? G : G, Td = () => {
|
|
9909
9914
|
const [e, t] = k(!1);
|
|
9910
9915
|
return bs(() => {
|
|
9911
9916
|
t(!0);
|
|
@@ -10049,7 +10054,7 @@ function op(e) {
|
|
|
10049
10054
|
titleColor: f,
|
|
10050
10055
|
autoClose: p = 0
|
|
10051
10056
|
} = ra("ArchbaseAlert", Id, e), [g] = k(!1);
|
|
10052
|
-
return
|
|
10057
|
+
return G(() => {
|
|
10053
10058
|
p > 0 && !g && setTimeout(() => c ? c() : null, p);
|
|
10054
10059
|
}, [p]), /* @__PURE__ */ n(
|
|
10055
10060
|
vr,
|
|
@@ -10249,7 +10254,7 @@ function lp({
|
|
|
10249
10254
|
children: l
|
|
10250
10255
|
}) {
|
|
10251
10256
|
const [a, c] = k(!1);
|
|
10252
|
-
|
|
10257
|
+
G(() => {
|
|
10253
10258
|
o && c(!0);
|
|
10254
10259
|
}, [o]);
|
|
10255
10260
|
const u = e.map((d) => ({
|
|
@@ -10471,7 +10476,7 @@ function $d({
|
|
|
10471
10476
|
type: "highlight",
|
|
10472
10477
|
rect: p
|
|
10473
10478
|
}), X(po.highlight), m(!0)), d(!1), f(null), g(null);
|
|
10474
|
-
}, [u, p, t]),
|
|
10479
|
+
}, [u, p, t]), U = T(() => {
|
|
10475
10480
|
if (!w || !t)
|
|
10476
10481
|
return;
|
|
10477
10482
|
const M = {
|
|
@@ -10631,7 +10636,7 @@ function $d({
|
|
|
10631
10636
|
),
|
|
10632
10637
|
/* @__PURE__ */ b(Ie, { justify: "flex-end", children: [
|
|
10633
10638
|
/* @__PURE__ */ n(_e, { variant: "light", onClick: () => m(!1), children: String(c("Cancel")) }),
|
|
10634
|
-
/* @__PURE__ */ n(_e, { onClick:
|
|
10639
|
+
/* @__PURE__ */ n(_e, { onClick: U, children: String(c("Add")) })
|
|
10635
10640
|
] })
|
|
10636
10641
|
] })
|
|
10637
10642
|
}
|
|
@@ -10734,7 +10739,7 @@ function dp({
|
|
|
10734
10739
|
style: z,
|
|
10735
10740
|
className: A
|
|
10736
10741
|
}) {
|
|
10737
|
-
const { t: $ } = Xe(), [
|
|
10742
|
+
const { t: $ } = Xe(), [U, v] = k({ width: 0, height: 0 }), P = ue(null), {
|
|
10738
10743
|
currentValue: M,
|
|
10739
10744
|
loadDataSourceFieldValue: O,
|
|
10740
10745
|
isReadOnly: I
|
|
@@ -10744,7 +10749,7 @@ function dp({
|
|
|
10744
10749
|
t,
|
|
10745
10750
|
r
|
|
10746
10751
|
);
|
|
10747
|
-
|
|
10752
|
+
G(() => {
|
|
10748
10753
|
e && t && O();
|
|
10749
10754
|
}, [e, t, O]);
|
|
10750
10755
|
const x = T((Ne) => {
|
|
@@ -10851,7 +10856,7 @@ function dp({
|
|
|
10851
10856
|
onRenderSuccess: te
|
|
10852
10857
|
}
|
|
10853
10858
|
),
|
|
10854
|
-
B &&
|
|
10859
|
+
B && U.width > 0 && /* @__PURE__ */ n(
|
|
10855
10860
|
$d,
|
|
10856
10861
|
{
|
|
10857
10862
|
annotations: m,
|
|
@@ -10860,8 +10865,8 @@ function dp({
|
|
|
10860
10865
|
onAnnotationUpdate: D,
|
|
10861
10866
|
disabled: Re,
|
|
10862
10867
|
pageIndex: F - 1,
|
|
10863
|
-
pageWidth:
|
|
10864
|
-
pageHeight:
|
|
10868
|
+
pageWidth: U.width,
|
|
10869
|
+
pageHeight: U.height
|
|
10865
10870
|
}
|
|
10866
10871
|
)
|
|
10867
10872
|
] })
|
|
@@ -11149,7 +11154,7 @@ function vn(e) {
|
|
|
11149
11154
|
}
|
|
11150
11155
|
function Ld({ file: e, width: t, height: r, onLoad: i, onError: o }) {
|
|
11151
11156
|
const [s, l] = k(null);
|
|
11152
|
-
return
|
|
11157
|
+
return G(() => ((async () => {
|
|
11153
11158
|
try {
|
|
11154
11159
|
const c = await qr(e);
|
|
11155
11160
|
l(c), i?.();
|
|
@@ -11177,7 +11182,7 @@ function Ld({ file: e, width: t, height: r, onLoad: i, onError: o }) {
|
|
|
11177
11182
|
}
|
|
11178
11183
|
function Fd({ file: e, width: t, height: r, onLoad: i, onError: o, style: s, className: l }) {
|
|
11179
11184
|
const [a, c] = k(null), [u, d] = k(!1);
|
|
11180
|
-
return
|
|
11185
|
+
return G(() => ((async () => {
|
|
11181
11186
|
try {
|
|
11182
11187
|
const f = await qr(e);
|
|
11183
11188
|
c(f), i?.();
|
|
@@ -11214,7 +11219,7 @@ function Fd({ file: e, width: t, height: r, onLoad: i, onError: o, style: s, cla
|
|
|
11214
11219
|
}
|
|
11215
11220
|
function Bd({ file: e, width: t, height: r, onLoad: i, onError: o }) {
|
|
11216
11221
|
const [s, l] = k(null);
|
|
11217
|
-
return
|
|
11222
|
+
return G(() => ((async () => {
|
|
11218
11223
|
try {
|
|
11219
11224
|
const c = await qr(e);
|
|
11220
11225
|
l(c), i?.();
|
|
@@ -11243,7 +11248,7 @@ function Bd({ file: e, width: t, height: r, onLoad: i, onError: o }) {
|
|
|
11243
11248
|
}
|
|
11244
11249
|
function Od({ file: e, onLoad: t, onError: r }) {
|
|
11245
11250
|
const [i, o] = k(null);
|
|
11246
|
-
return
|
|
11251
|
+
return G(() => ((async () => {
|
|
11247
11252
|
try {
|
|
11248
11253
|
const l = await qr(e);
|
|
11249
11254
|
o(l), t?.();
|
|
@@ -11260,7 +11265,7 @@ function Od({ file: e, onLoad: t, onError: r }) {
|
|
|
11260
11265
|
}
|
|
11261
11266
|
function _d({ file: e, width: t, height: r, onLoad: i, onError: o, className: s }) {
|
|
11262
11267
|
const [l, a] = k(null), [c, u] = k(!1);
|
|
11263
|
-
return
|
|
11268
|
+
return G(() => {
|
|
11264
11269
|
(async () => {
|
|
11265
11270
|
try {
|
|
11266
11271
|
let h = "";
|
|
@@ -11346,7 +11351,7 @@ function jd({
|
|
|
11346
11351
|
onLoadEnd: z,
|
|
11347
11352
|
onError: A,
|
|
11348
11353
|
onDownload: $,
|
|
11349
|
-
onPrint:
|
|
11354
|
+
onPrint: U,
|
|
11350
11355
|
onZoomChange: v,
|
|
11351
11356
|
onPageChange: P,
|
|
11352
11357
|
onRotate: M,
|
|
@@ -11358,7 +11363,7 @@ function jd({
|
|
|
11358
11363
|
mimeType: F
|
|
11359
11364
|
}) {
|
|
11360
11365
|
const { t: L } = Xe(), C = ue(null), [j, J] = k("unknown"), [ee, Se] = k("idle"), [de, oe] = k(null), [we, ze] = k(u), [ve, re] = k(d), [te, ne] = k(!1);
|
|
11361
|
-
|
|
11366
|
+
G(() => {
|
|
11362
11367
|
(async () => {
|
|
11363
11368
|
if (t) {
|
|
11364
11369
|
J(t);
|
|
@@ -11393,8 +11398,8 @@ function jd({
|
|
|
11393
11398
|
`<html><head><title>${S || "Print"}</title></head><body>${C.current.innerHTML}</body></html>`
|
|
11394
11399
|
), ce.document.close(), ce.print());
|
|
11395
11400
|
}
|
|
11396
|
-
|
|
11397
|
-
}, [S,
|
|
11401
|
+
U?.();
|
|
11402
|
+
}, [S, U]);
|
|
11398
11403
|
const Q = T(() => {
|
|
11399
11404
|
ze((ce) => {
|
|
11400
11405
|
const se = Math.min(ce + 0.25, 3);
|
|
@@ -11841,8 +11846,8 @@ function Kd({
|
|
|
11841
11846
|
onFilterRemove: w,
|
|
11842
11847
|
onFiltersCleared: E
|
|
11843
11848
|
}) {
|
|
11844
|
-
const { t: D } = Xe(), B = ue(null), [V, X] = k([]), H = t !== void 0 ? t : V, [W, z] = k("field"), [A, $] = k(null), [
|
|
11845
|
-
|
|
11849
|
+
const { t: D } = Xe(), B = ue(null), [V, X] = k([]), H = t !== void 0 ? t : V, [W, z] = k("field"), [A, $] = k(null), [U, v] = k(null), [P, M] = k(""), [O, { close: I, toggle: x }] = pa(!1);
|
|
11850
|
+
G(() => {
|
|
11846
11851
|
if (i === "uncontrolled" && o) {
|
|
11847
11852
|
const ie = H.length > 0 ? H.map((le) => {
|
|
11848
11853
|
const { key: Ce, operator: be, value: R, type: xe } = le;
|
|
@@ -11865,7 +11870,7 @@ function Kd({
|
|
|
11865
11870
|
), [L, P, W]), j = T(() => {
|
|
11866
11871
|
z("field"), $(null), v(null), M("");
|
|
11867
11872
|
}, []), J = T(() => {
|
|
11868
|
-
if (!A || !
|
|
11873
|
+
if (!A || !U)
|
|
11869
11874
|
return;
|
|
11870
11875
|
let ie = P;
|
|
11871
11876
|
switch (A.type) {
|
|
@@ -11889,13 +11894,13 @@ function Kd({
|
|
|
11889
11894
|
key: A.key,
|
|
11890
11895
|
label: A.label,
|
|
11891
11896
|
type: A.type,
|
|
11892
|
-
operator:
|
|
11897
|
+
operator: U,
|
|
11893
11898
|
value: ie,
|
|
11894
|
-
displayValue: vi(ie, A.type,
|
|
11899
|
+
displayValue: vi(ie, A.type, U, A.options),
|
|
11895
11900
|
icon: A.icon
|
|
11896
11901
|
}, Ce = [...H, le];
|
|
11897
11902
|
de(Ce), m?.(le), j(), I(), B.current && B.current.focus();
|
|
11898
|
-
}, [A,
|
|
11903
|
+
}, [A, U, P, H, j, I, m]), ee = T((ie) => {
|
|
11899
11904
|
const le = H.filter((Ce) => Ce.id !== ie);
|
|
11900
11905
|
de(le), w?.(ie);
|
|
11901
11906
|
}, [H, w]), Se = T(() => {
|
|
@@ -12364,7 +12369,7 @@ function mp(e, t = {}) {
|
|
|
12364
12369
|
key: r,
|
|
12365
12370
|
defaultValue: []
|
|
12366
12371
|
});
|
|
12367
|
-
|
|
12372
|
+
G(() => {
|
|
12368
12373
|
if (!o || e.length === 0)
|
|
12369
12374
|
return;
|
|
12370
12375
|
const h = {
|
|
@@ -12644,7 +12649,7 @@ function au({
|
|
|
12644
12649
|
const [V, X] = k(!1), [H, W] = k(!1), [z, A] = k(null), $ = {
|
|
12645
12650
|
showLineNumbers: !0,
|
|
12646
12651
|
...t
|
|
12647
|
-
},
|
|
12652
|
+
}, U = {
|
|
12648
12653
|
openExternalInNewTab: !0,
|
|
12649
12654
|
...r
|
|
12650
12655
|
}, v = {
|
|
@@ -12841,7 +12846,7 @@ function au({
|
|
|
12841
12846
|
ou,
|
|
12842
12847
|
{
|
|
12843
12848
|
href: x,
|
|
12844
|
-
openExternalInNewTab:
|
|
12849
|
+
openExternalInNewTab: U.openExternalInNewTab,
|
|
12845
12850
|
onClick: E,
|
|
12846
12851
|
...S,
|
|
12847
12852
|
children: _
|
|
@@ -12883,7 +12888,7 @@ function au({
|
|
|
12883
12888
|
// Del/Strikethrough
|
|
12884
12889
|
del: ({ node: I, children: x, ..._ }) => /* @__PURE__ */ n(K, { span: !0, td: "line-through", c: "dimmed", ..._, children: x })
|
|
12885
12890
|
};
|
|
12886
|
-
return
|
|
12891
|
+
return G(() => {
|
|
12887
12892
|
if (!d) {
|
|
12888
12893
|
X(!0), W(!1), A(null), y?.();
|
|
12889
12894
|
try {
|
|
@@ -12933,7 +12938,7 @@ function lu({
|
|
|
12933
12938
|
defaultSubtitles: c = !1,
|
|
12934
12939
|
preload: u = "metadata"
|
|
12935
12940
|
}) {
|
|
12936
|
-
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, $] = k(!1), [
|
|
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, $] = k(!1), [U, v] = k(!1), [P, M] = k(
|
|
12937
12942
|
l?.[0]?.label
|
|
12938
12943
|
), [O, I] = k(c), x = cu(e), _ = T(() => {
|
|
12939
12944
|
p("loading");
|
|
@@ -13019,16 +13024,16 @@ function lu({
|
|
|
13019
13024
|
console.warn("Exit PiP error", R);
|
|
13020
13025
|
}
|
|
13021
13026
|
}, []), be = T(() => {
|
|
13022
|
-
|
|
13023
|
-
}, [
|
|
13024
|
-
return
|
|
13027
|
+
U ? Ce() : le();
|
|
13028
|
+
}, [U, le, Ce]);
|
|
13029
|
+
return G(() => {
|
|
13025
13030
|
const R = () => {
|
|
13026
13031
|
$(!!document.fullscreenElement);
|
|
13027
13032
|
};
|
|
13028
13033
|
return document.addEventListener("fullscreenchange", R), () => {
|
|
13029
13034
|
document.removeEventListener("fullscreenchange", R);
|
|
13030
13035
|
};
|
|
13031
|
-
}, []),
|
|
13036
|
+
}, []), G(() => {
|
|
13032
13037
|
const R = () => {
|
|
13033
13038
|
v(!!document.pictureInPictureElement);
|
|
13034
13039
|
};
|
|
@@ -13047,7 +13052,7 @@ function lu({
|
|
|
13047
13052
|
muted: X.muted,
|
|
13048
13053
|
playbackRate: W,
|
|
13049
13054
|
isFullscreen: A,
|
|
13050
|
-
isPiP:
|
|
13055
|
+
isPiP: U,
|
|
13051
13056
|
selectedQuality: P,
|
|
13052
13057
|
subtitlesEnabled: O,
|
|
13053
13058
|
sources: x,
|
|
@@ -13317,7 +13322,7 @@ function hu({
|
|
|
13317
13322
|
loading: z,
|
|
13318
13323
|
error: A,
|
|
13319
13324
|
noData: $,
|
|
13320
|
-
onLoadStart:
|
|
13325
|
+
onLoadStart: U,
|
|
13321
13326
|
onLoadedMetadata: v,
|
|
13322
13327
|
onCanPlay: P,
|
|
13323
13328
|
onPlay: M,
|
|
@@ -13354,7 +13359,7 @@ function hu({
|
|
|
13354
13359
|
defaultSubtitles: u,
|
|
13355
13360
|
preload: te
|
|
13356
13361
|
}), [ie, le] = k(!0), [Ce, be] = k(!1);
|
|
13357
|
-
|
|
13362
|
+
G(() => {
|
|
13358
13363
|
if (!p || f)
|
|
13359
13364
|
return;
|
|
13360
13365
|
let se;
|
|
@@ -13364,7 +13369,7 @@ function hu({
|
|
|
13364
13369
|
return Re && (Re.addEventListener("mousemove", $e), Re.addEventListener("click", $e), Re.addEventListener("touchstart", $e)), Q.isPlaying && (se = setTimeout(() => be(!0), g)), () => {
|
|
13365
13370
|
clearTimeout(se), Re && (Re.removeEventListener("mousemove", $e), Re.removeEventListener("click", $e), Re.removeEventListener("touchstart", $e));
|
|
13366
13371
|
};
|
|
13367
|
-
}, [p, f, g, Q.isPlaying]),
|
|
13372
|
+
}, [p, f, g, Q.isPlaying]), G(() => {
|
|
13368
13373
|
if (re)
|
|
13369
13374
|
return;
|
|
13370
13375
|
const se = ($e) => {
|
|
@@ -13396,9 +13401,9 @@ function hu({
|
|
|
13396
13401
|
}
|
|
13397
13402
|
};
|
|
13398
13403
|
return document.addEventListener("keydown", se), () => document.removeEventListener("keydown", se);
|
|
13399
|
-
}, [re, Q]),
|
|
13400
|
-
Q.playerState === "loading" &&
|
|
13401
|
-
}, [Q.playerState,
|
|
13404
|
+
}, [re, Q]), G(() => {
|
|
13405
|
+
Q.playerState === "loading" && U?.();
|
|
13406
|
+
}, [Q.playerState, U]), G(() => {
|
|
13402
13407
|
if (Q.duration > 0) {
|
|
13403
13408
|
const se = Q.videoRef.current;
|
|
13404
13409
|
v?.({
|
|
@@ -13407,21 +13412,21 @@ function hu({
|
|
|
13407
13412
|
height: se?.videoHeight || 0
|
|
13408
13413
|
});
|
|
13409
13414
|
}
|
|
13410
|
-
}, [Q.duration, v]),
|
|
13415
|
+
}, [Q.duration, v]), G(() => {
|
|
13411
13416
|
Q.playerState === "ready" && P?.();
|
|
13412
|
-
}, [Q.playerState, P]),
|
|
13417
|
+
}, [Q.playerState, P]), G(() => {
|
|
13413
13418
|
Q.isPlaying ? M?.() : O?.();
|
|
13414
|
-
}, [Q.isPlaying, M, O]),
|
|
13419
|
+
}, [Q.isPlaying, M, O]), G(() => {
|
|
13415
13420
|
Q.playerState === "ended" && I?.();
|
|
13416
|
-
}, [Q.playerState, I]),
|
|
13421
|
+
}, [Q.playerState, I]), G(() => {
|
|
13417
13422
|
x?.(Q.currentTime, Q.duration), _?.(Q.buffered);
|
|
13418
|
-
}, [Q.currentTime, Q.buffered, x, _]),
|
|
13423
|
+
}, [Q.currentTime, Q.buffered, x, _]), G(() => {
|
|
13419
13424
|
S?.(Q.volume, Q.muted);
|
|
13420
|
-
}, [Q.volume, Q.muted, S]),
|
|
13425
|
+
}, [Q.volume, Q.muted, S]), G(() => {
|
|
13421
13426
|
C?.(Q.playbackRate);
|
|
13422
|
-
}, [Q.playbackRate, C]),
|
|
13427
|
+
}, [Q.playbackRate, C]), G(() => {
|
|
13423
13428
|
ee?.(Q.isFullscreen);
|
|
13424
|
-
}, [Q.isFullscreen, ee]),
|
|
13429
|
+
}, [Q.isFullscreen, ee]), G(() => {
|
|
13425
13430
|
Se?.(Q.isPiP);
|
|
13426
13431
|
}, [Q.isPiP, Se]);
|
|
13427
13432
|
const R = () => {
|
|
@@ -13963,10 +13968,10 @@ function Eu({
|
|
|
13963
13968
|
const P = new Blob([z], { type: "application/octet-stream" }), M = URL.createObjectURL(P), O = document.createElement("a");
|
|
13964
13969
|
O.href = M, O.download = `receipt_${Date.now()}.bin`, document.body.appendChild(O), O.click(), document.body.removeChild(O), URL.revokeObjectURL(M);
|
|
13965
13970
|
}, [z]);
|
|
13966
|
-
|
|
13971
|
+
G(() => {
|
|
13967
13972
|
i && !a && z && A();
|
|
13968
13973
|
}, [i, a, z]);
|
|
13969
|
-
const
|
|
13974
|
+
const U = () => {
|
|
13970
13975
|
switch (D) {
|
|
13971
13976
|
case "printing":
|
|
13972
13977
|
return /* @__PURE__ */ n(Ot, {});
|
|
@@ -14018,7 +14023,7 @@ function Eu({
|
|
|
14018
14023
|
/* @__PURE__ */ n(
|
|
14019
14024
|
_e,
|
|
14020
14025
|
{
|
|
14021
|
-
leftSection:
|
|
14026
|
+
leftSection: U(),
|
|
14022
14027
|
onClick: A,
|
|
14023
14028
|
disabled: D === "printing" || !z,
|
|
14024
14029
|
loading: D === "printing",
|
|
@@ -14603,7 +14608,7 @@ function Vu({
|
|
|
14603
14608
|
header: H,
|
|
14604
14609
|
footer: W
|
|
14605
14610
|
}) {
|
|
14606
|
-
const { t: z } = Xe(), A = Mt(), [$,
|
|
14611
|
+
const { t: z } = Xe(), A = Mt(), [$, U] = k(o), [v, P] = k(() => {
|
|
14607
14612
|
const j = Hn(A, e);
|
|
14608
14613
|
return s ? Hn(j, Eo(s)) : j;
|
|
14609
14614
|
}), [M, O] = k(v.primaryColor || "blue"), [I, x] = k(!1), _ = T((j) => {
|
|
@@ -14715,7 +14720,7 @@ function Vu({
|
|
|
14715
14720
|
{
|
|
14716
14721
|
orientation: "vertical",
|
|
14717
14722
|
value: $,
|
|
14718
|
-
onChange: (j) =>
|
|
14723
|
+
onChange: (j) => U(j),
|
|
14719
14724
|
variant: "pills",
|
|
14720
14725
|
children: /* @__PURE__ */ n(Rn.List, { children: C.map((j) => {
|
|
14721
14726
|
const J = j.icon;
|
|
@@ -15961,7 +15966,7 @@ const nr = (e, t) => {
|
|
|
15961
15966
|
borderRadius: W
|
|
15962
15967
|
}) => {
|
|
15963
15968
|
const [z, A] = k(t.quickFilterValues?.[0] || "");
|
|
15964
|
-
|
|
15969
|
+
G(() => {
|
|
15965
15970
|
A(t.quickFilterValues?.[0] || "");
|
|
15966
15971
|
}, [t.quickFilterValues]);
|
|
15967
15972
|
const $ = T((O) => {
|
|
@@ -15972,13 +15977,13 @@ const nr = (e, t) => {
|
|
|
15972
15977
|
quickFilterValues: I ? [I] : []
|
|
15973
15978
|
};
|
|
15974
15979
|
console.log("[Toolbar] Chamando onFilterModelChange com:", x), h(x);
|
|
15975
|
-
}, [t, h]),
|
|
15980
|
+
}, [t, h]), U = Ge(
|
|
15976
15981
|
() => rs((O) => $(O), 300),
|
|
15977
15982
|
[$]
|
|
15978
15983
|
);
|
|
15979
|
-
|
|
15980
|
-
|
|
15981
|
-
}, [
|
|
15984
|
+
G(() => () => {
|
|
15985
|
+
U.cancel();
|
|
15986
|
+
}, [U]);
|
|
15982
15987
|
const v = T(() => {
|
|
15983
15988
|
console.log("[Toolbar] handleRefresh chamado - executando apenas onRefresh"), f();
|
|
15984
15989
|
}, [f]);
|
|
@@ -16024,7 +16029,7 @@ const nr = (e, t) => {
|
|
|
16024
16029
|
{
|
|
16025
16030
|
value: z,
|
|
16026
16031
|
onChange: (O) => {
|
|
16027
|
-
A(O || ""),
|
|
16032
|
+
A(O || ""), U(O);
|
|
16028
16033
|
},
|
|
16029
16034
|
onClear: () => {
|
|
16030
16035
|
A(""), $(null);
|
|
@@ -16393,7 +16398,7 @@ function yh({
|
|
|
16393
16398
|
return e && p.forEach((y) => g.add(y)), p.has(f) || (g.add(f), t && t(Array.from(g))), g;
|
|
16394
16399
|
});
|
|
16395
16400
|
}, [e, t]);
|
|
16396
|
-
return
|
|
16401
|
+
return G(() => {
|
|
16397
16402
|
setTimeout(() => {
|
|
16398
16403
|
if (i.size === 0) {
|
|
16399
16404
|
l(0);
|
|
@@ -16406,7 +16411,7 @@ function yh({
|
|
|
16406
16411
|
} else
|
|
16407
16412
|
l(r);
|
|
16408
16413
|
}, 0);
|
|
16409
|
-
}, [i, r]),
|
|
16414
|
+
}, [i, r]), G(() => {
|
|
16410
16415
|
const f = () => {
|
|
16411
16416
|
i.size > 0 && d();
|
|
16412
16417
|
};
|
|
@@ -16430,7 +16435,7 @@ function bh({
|
|
|
16430
16435
|
detailPanelRefs: r,
|
|
16431
16436
|
closeAllDetailPanels: i
|
|
16432
16437
|
}) {
|
|
16433
|
-
|
|
16438
|
+
G(() => {
|
|
16434
16439
|
if (t.size === 0)
|
|
16435
16440
|
return;
|
|
16436
16441
|
const o = (s) => {
|
|
@@ -16478,7 +16483,7 @@ function wh({
|
|
|
16478
16483
|
detailPanelMinHeight: s = 200
|
|
16479
16484
|
}) {
|
|
16480
16485
|
const [l, a] = k(!1);
|
|
16481
|
-
return
|
|
16486
|
+
return G(() => {
|
|
16482
16487
|
const c = () => {
|
|
16483
16488
|
if (!e.current) {
|
|
16484
16489
|
a(!0);
|
|
@@ -16524,7 +16529,7 @@ function Rp(e) {
|
|
|
16524
16529
|
renderToolbarActions: z,
|
|
16525
16530
|
renderToolbarInternalActions: A,
|
|
16526
16531
|
allowColumnFilters: $ = !0,
|
|
16527
|
-
allowExportData:
|
|
16532
|
+
allowExportData: U = !0,
|
|
16528
16533
|
allowPrintData: v = !0,
|
|
16529
16534
|
withBorder: P = !0,
|
|
16530
16535
|
withColumnBorders: M = !0,
|
|
@@ -16589,7 +16594,7 @@ function Rp(e) {
|
|
|
16589
16594
|
registerAction: (Be, Oe) => {
|
|
16590
16595
|
}
|
|
16591
16596
|
});
|
|
16592
|
-
return
|
|
16597
|
+
return G(() => {
|
|
16593
16598
|
if (me)
|
|
16594
16599
|
try {
|
|
16595
16600
|
console.debug(`Grid solicitou segurança para '${me}', mas integração ainda em desenvolvimento.`), Me({
|
|
@@ -16643,9 +16648,9 @@ function Rp(e) {
|
|
|
16643
16648
|
rowHeight: de,
|
|
16644
16649
|
detailPanelMinHeight: ce
|
|
16645
16650
|
}), Pt = ue(!1), $i = ue(null), zn = ue(!1);
|
|
16646
|
-
|
|
16651
|
+
G(() => () => {
|
|
16647
16652
|
$i.current && clearTimeout($i.current);
|
|
16648
|
-
}, []),
|
|
16653
|
+
}, []), G(() => {
|
|
16649
16654
|
const me = (Me) => {
|
|
16650
16655
|
if (Pt.current || zn.current) {
|
|
16651
16656
|
zn.current = !1;
|
|
@@ -16795,7 +16800,7 @@ function Rp(e) {
|
|
|
16795
16800
|
Me.filter = void 0, Me.originFilter = [], kt(!0), t.refreshData?.(Me), yt();
|
|
16796
16801
|
}
|
|
16797
16802
|
}, [qe, Ke, st, t, Ht.pageSize]);
|
|
16798
|
-
|
|
16803
|
+
G(() => {
|
|
16799
16804
|
we && we(In), ze && ze($n);
|
|
16800
16805
|
}, [we, ze]), ba(
|
|
16801
16806
|
be,
|
|
@@ -17170,7 +17175,7 @@ function Rp(e) {
|
|
|
17170
17175
|
excludeColumns: ["actions", "id"],
|
|
17171
17176
|
onlyFilterable: !0
|
|
17172
17177
|
}), [zt, Te]);
|
|
17173
|
-
|
|
17178
|
+
G(() => {
|
|
17174
17179
|
const me = (Ve) => {
|
|
17175
17180
|
if (Ve.type === q.refreshData) {
|
|
17176
17181
|
ft(Wn(t));
|
|
@@ -17350,7 +17355,7 @@ function Rp(e) {
|
|
|
17350
17355
|
filterModel: St,
|
|
17351
17356
|
enableGlobalFilter: a,
|
|
17352
17357
|
enableTopToolbarActions: u,
|
|
17353
|
-
allowExportData:
|
|
17358
|
+
allowExportData: U,
|
|
17354
17359
|
allowPrintData: v,
|
|
17355
17360
|
toolbarAlignment: C,
|
|
17356
17361
|
toolbarLeftContent: ee,
|
|
@@ -17474,7 +17479,7 @@ function Pp({
|
|
|
17474
17479
|
maxHeight: d = 600
|
|
17475
17480
|
}) {
|
|
17476
17481
|
const h = ue(null), [f, p] = k(0);
|
|
17477
|
-
|
|
17482
|
+
G(() => {
|
|
17478
17483
|
h.current && a && p(h.current.scrollHeight);
|
|
17479
17484
|
}, [a, t]);
|
|
17480
17485
|
const g = r({ row: t });
|
|
@@ -17755,8 +17760,8 @@ function Lp({
|
|
|
17755
17760
|
};
|
|
17756
17761
|
}), [E, D] = k([]), [B, V] = k([]), [X, H] = k(() => e.getGrandTotalRecords()), [W, z] = k(
|
|
17757
17762
|
() => Math.ceil(e.getGrandTotalRecords() / (e.getPageSize() || t))
|
|
17758
|
-
), A = ue(!1), $ = ue(!1),
|
|
17759
|
-
|
|
17763
|
+
), A = ue(!1), $ = ue(!1), U = ue(!0), v = ue(null);
|
|
17764
|
+
G(() => {
|
|
17760
17765
|
a.current = e;
|
|
17761
17766
|
}, [e]);
|
|
17762
17767
|
const P = T((S) => {
|
|
@@ -17829,10 +17834,10 @@ function Lp({
|
|
|
17829
17834
|
}, [c, E, i]), _ = T(() => {
|
|
17830
17835
|
A.current = !0, h(!0), a.current.refreshData?.(), s || l();
|
|
17831
17836
|
}, [l, s]);
|
|
17832
|
-
return
|
|
17837
|
+
return G(() => {
|
|
17833
17838
|
console.log("Setting up DataSource event listener in useGridData");
|
|
17834
17839
|
const S = (L) => {
|
|
17835
|
-
if (!
|
|
17840
|
+
if (!U.current && !($.current && L.type === q.afterScroll)) {
|
|
17836
17841
|
if (L.type === q.refreshData) {
|
|
17837
17842
|
u(a.current.browseRecords()), p({
|
|
17838
17843
|
page: a.current.getCurrentPage(),
|
|
@@ -17871,7 +17876,7 @@ function Lp({
|
|
|
17871
17876
|
}
|
|
17872
17877
|
}
|
|
17873
17878
|
};
|
|
17874
|
-
v.current = S, e.addListener(S),
|
|
17879
|
+
v.current = S, e.addListener(S), U.current = !1, u(e.browseRecords()), H(e.getGrandTotalRecords()), z(Math.ceil(e.getGrandTotalRecords() / (e.getPageSize() || t)));
|
|
17875
17880
|
const F = e.getCurrentRecord();
|
|
17876
17881
|
if (F)
|
|
17877
17882
|
try {
|
|
@@ -17933,7 +17938,7 @@ function Fp({
|
|
|
17933
17938
|
delete window[E];
|
|
17934
17939
|
}, t * 2);
|
|
17935
17940
|
};
|
|
17936
|
-
return
|
|
17941
|
+
return G(() => {
|
|
17937
17942
|
const m = (D) => {
|
|
17938
17943
|
if ([
|
|
17939
17944
|
q.refreshData,
|
|
@@ -18166,7 +18171,7 @@ const kh = {
|
|
|
18166
18171
|
s(u.intersectionRatio);
|
|
18167
18172
|
});
|
|
18168
18173
|
}, []);
|
|
18169
|
-
return
|
|
18174
|
+
return G(() => {
|
|
18170
18175
|
i.current || r.current && (i.current = new IntersectionObserver(a, {
|
|
18171
18176
|
...kh,
|
|
18172
18177
|
...t
|
|
@@ -18183,7 +18188,7 @@ const kh = {
|
|
|
18183
18188
|
};
|
|
18184
18189
|
}, Kp = (e) => {
|
|
18185
18190
|
const [t, r] = k({ width: 0, height: 0 });
|
|
18186
|
-
return
|
|
18191
|
+
return G(() => {
|
|
18187
18192
|
const i = () => ({
|
|
18188
18193
|
width: e.current.offsetWidth,
|
|
18189
18194
|
height: e.current.offsetHeight
|