@gnwebsoft/ui 2.18.44 → 2.18.45
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/{chunk-MM6OQZAY.mjs → chunk-5HOGPCEO.mjs} +1 -1
- package/dist/{chunk-IZSKZD5M.js → chunk-6NOXJGU2.js} +3 -3
- package/dist/{chunk-3LU2Q6FI.mjs → chunk-BWQUYXUW.mjs} +93 -34
- package/dist/{chunk-BBDVHJQ3.js → chunk-D3J7MWAU.js} +80 -21
- package/dist/{chunk-FYN7F5WJ.js → chunk-I7EIUZKK.js} +1 -1
- package/dist/{chunk-GAYZ4QSD.mjs → chunk-RQS44YC7.mjs} +1 -1
- package/dist/index.js +4 -4
- package/dist/index.mjs +5 -5
- package/dist/utils/index.d.mts +2 -2
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/index.js +2 -2
- package/dist/utils/index.mjs +1 -1
- package/dist/wrappers/index.js +3 -3
- package/dist/wrappers/index.mjs +2 -2
- package/dist/wrappers2/index.js +3 -3
- package/dist/wrappers2/index.mjs +2 -2
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunk6JZ35VQJjs = require('./chunk-6JZ35VQJ.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkI7EIUZKKjs = require('./chunk-I7EIUZKK.js');
|
|
7
7
|
|
|
8
8
|
// src/wrappers2/DatePickerElement/DatePickerElement.tsx
|
|
9
9
|
|
|
@@ -46,7 +46,7 @@ var Component = function DatePickerElement(props) {
|
|
|
46
46
|
value: field.value,
|
|
47
47
|
onChange: field.onChange,
|
|
48
48
|
transform: {
|
|
49
|
-
input: typeof _optionalChain([transform, 'optionalAccess', _3 => _3.input]) === "function" ? transform.input : (newValue) =>
|
|
49
|
+
input: typeof _optionalChain([transform, 'optionalAccess', _3 => _3.input]) === "function" ? transform.input : (newValue) => _chunkI7EIUZKKjs.readValueAsDate.call(void 0, adapter, newValue),
|
|
50
50
|
output: typeof _optionalChain([transform, 'optionalAccess', _4 => _4.output]) === "function" ? transform.output : (newValue) => newValue
|
|
51
51
|
}
|
|
52
52
|
});
|
|
@@ -506,7 +506,7 @@ var Component5 = function TimePickerElement(props) {
|
|
|
506
506
|
value: field.value,
|
|
507
507
|
onChange: field.onChange,
|
|
508
508
|
transform: {
|
|
509
|
-
input: typeof _optionalChain([transform, 'optionalAccess', _15 => _15.input]) === "function" ? transform.input : (newValue) =>
|
|
509
|
+
input: typeof _optionalChain([transform, 'optionalAccess', _15 => _15.input]) === "function" ? transform.input : (newValue) => _chunkI7EIUZKKjs.readValueAsDate.call(void 0, adapter, newValue),
|
|
510
510
|
output: typeof _optionalChain([transform, 'optionalAccess', _16 => _16.output]) === "function" ? transform.output : (newValue) => newValue
|
|
511
511
|
}
|
|
512
512
|
});
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
} from "./chunk-GFSTK7KN.mjs";
|
|
4
4
|
import {
|
|
5
5
|
readValueAsDate
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-RQS44YC7.mjs";
|
|
7
7
|
|
|
8
8
|
// src/wrappers/DatePickerElement/DatePickerElement.tsx
|
|
9
9
|
import { useCallback } from "react";
|
|
10
10
|
import { useController } from "react-hook-form";
|
|
11
11
|
import { DatePicker } from "@mui/x-date-pickers";
|
|
12
|
-
import { Grid2, useForkRef } from "@mui/material";
|
|
12
|
+
import { Grid2, useForkRef, useTheme } from "@mui/material";
|
|
13
13
|
import { useLocalizationContext } from "@mui/x-date-pickers/internals";
|
|
14
14
|
import { jsx } from "react/jsx-runtime";
|
|
15
15
|
function readValueAsDate2(adapter, value) {
|
|
@@ -54,6 +54,7 @@ var Component = function DatePickerElement(props) {
|
|
|
54
54
|
...rest
|
|
55
55
|
} = props;
|
|
56
56
|
const adapter = useLocalizationContext();
|
|
57
|
+
const theme = useTheme();
|
|
57
58
|
const { disabled, inputRef, onClose, ...restDatePickerProps } = datePickerProps;
|
|
58
59
|
const {
|
|
59
60
|
field,
|
|
@@ -98,7 +99,16 @@ var Component = function DatePickerElement(props) {
|
|
|
98
99
|
datePickerProps.onChange(newValue, context);
|
|
99
100
|
}
|
|
100
101
|
},
|
|
101
|
-
sx
|
|
102
|
+
sx: {
|
|
103
|
+
"& .MuiOutlinedInput-root": {
|
|
104
|
+
bgcolor: disabled ? theme.palette.action.disabledBackground : "transparent"
|
|
105
|
+
},
|
|
106
|
+
"& .MuiInputLabel-asterisk": { color: "red" },
|
|
107
|
+
"& .MuiInputBase-input": {
|
|
108
|
+
cursor: disabled ? "not-allowed" : "default"
|
|
109
|
+
},
|
|
110
|
+
...sx
|
|
111
|
+
},
|
|
102
112
|
slotProps: {
|
|
103
113
|
...slotProps,
|
|
104
114
|
actionBar: {
|
|
@@ -127,11 +137,17 @@ var Component = function DatePickerElement(props) {
|
|
|
127
137
|
);
|
|
128
138
|
};
|
|
129
139
|
var DatePickerElement2 = ({
|
|
130
|
-
gridProps,
|
|
140
|
+
gridProps = { size: { xs: 12, sm: 12, md: 12, lg: 12, xl: 12 } },
|
|
131
141
|
...props
|
|
132
142
|
}) => {
|
|
133
143
|
if (gridProps) {
|
|
134
|
-
return /* @__PURE__ */ jsx(
|
|
144
|
+
return /* @__PURE__ */ jsx(
|
|
145
|
+
Grid2,
|
|
146
|
+
{
|
|
147
|
+
...{ size: { xs: 12, sm: 12, md: 12, lg: 12, xl: 12 }, ...gridProps },
|
|
148
|
+
children: /* @__PURE__ */ jsx(Component, { ...props })
|
|
149
|
+
}
|
|
150
|
+
);
|
|
135
151
|
}
|
|
136
152
|
return /* @__PURE__ */ jsx(Component, { ...props });
|
|
137
153
|
};
|
|
@@ -225,11 +241,17 @@ var Component2 = function PasswordEl(props) {
|
|
|
225
241
|
);
|
|
226
242
|
};
|
|
227
243
|
var PasswordElement = ({
|
|
228
|
-
gridProps,
|
|
244
|
+
gridProps = { size: { xs: 12, sm: 12, md: 12, lg: 12, xl: 12 } },
|
|
229
245
|
...props
|
|
230
246
|
}) => {
|
|
231
247
|
if (gridProps) {
|
|
232
|
-
return /* @__PURE__ */ jsx2(
|
|
248
|
+
return /* @__PURE__ */ jsx2(
|
|
249
|
+
Grid22,
|
|
250
|
+
{
|
|
251
|
+
...{ size: { xs: 12, sm: 12, md: 12, lg: 12, xl: 12 }, ...gridProps },
|
|
252
|
+
children: /* @__PURE__ */ jsx2(Component2, { ...props })
|
|
253
|
+
}
|
|
254
|
+
);
|
|
233
255
|
}
|
|
234
256
|
return /* @__PURE__ */ jsx2(Component2, { ...props });
|
|
235
257
|
};
|
|
@@ -247,7 +269,7 @@ import {
|
|
|
247
269
|
FormLabel,
|
|
248
270
|
Radio,
|
|
249
271
|
RadioGroup,
|
|
250
|
-
useTheme,
|
|
272
|
+
useTheme as useTheme2,
|
|
251
273
|
Grid2 as Grid23
|
|
252
274
|
} from "@mui/material";
|
|
253
275
|
import { jsx as jsx3, jsxs } from "react/jsx-runtime";
|
|
@@ -276,7 +298,7 @@ var Component3 = function RadioButtonGroup(props) {
|
|
|
276
298
|
rules = {},
|
|
277
299
|
...rest
|
|
278
300
|
} = props;
|
|
279
|
-
const theme =
|
|
301
|
+
const theme = useTheme2();
|
|
280
302
|
const {
|
|
281
303
|
field,
|
|
282
304
|
fieldState: { error }
|
|
@@ -368,11 +390,17 @@ var Component3 = function RadioButtonGroup(props) {
|
|
|
368
390
|
] });
|
|
369
391
|
};
|
|
370
392
|
var RadioButtonGroup2 = ({
|
|
371
|
-
gridProps,
|
|
393
|
+
gridProps = { size: { xs: 12, sm: 12, md: 12, lg: 12, xl: 12 } },
|
|
372
394
|
...props
|
|
373
395
|
}) => {
|
|
374
396
|
if (gridProps) {
|
|
375
|
-
return /* @__PURE__ */ jsx3(
|
|
397
|
+
return /* @__PURE__ */ jsx3(
|
|
398
|
+
Grid23,
|
|
399
|
+
{
|
|
400
|
+
...{ size: { xs: 12, sm: 12, md: 12, lg: 12, xl: 12 }, ...gridProps },
|
|
401
|
+
children: /* @__PURE__ */ jsx3(Component3, { ...props })
|
|
402
|
+
}
|
|
403
|
+
);
|
|
376
404
|
}
|
|
377
405
|
return /* @__PURE__ */ jsx3(Component3, { ...props });
|
|
378
406
|
};
|
|
@@ -384,7 +412,7 @@ import {
|
|
|
384
412
|
Grid2 as Grid24,
|
|
385
413
|
TextField as TextField2,
|
|
386
414
|
useForkRef as useForkRef3,
|
|
387
|
-
useTheme as
|
|
415
|
+
useTheme as useTheme3
|
|
388
416
|
} from "@mui/material";
|
|
389
417
|
import {
|
|
390
418
|
useController as useController4
|
|
@@ -422,7 +450,7 @@ var Component4 = function TextFieldElement(props) {
|
|
|
422
450
|
name,
|
|
423
451
|
control
|
|
424
452
|
});
|
|
425
|
-
const theme =
|
|
453
|
+
const theme = useTheme3();
|
|
426
454
|
const { value, onChange } = useTransform({
|
|
427
455
|
value: field.value,
|
|
428
456
|
onChange: field.onChange,
|
|
@@ -488,11 +516,17 @@ var Component4 = function TextFieldElement(props) {
|
|
|
488
516
|
);
|
|
489
517
|
};
|
|
490
518
|
var TextFieldElement2 = ({
|
|
491
|
-
gridProps,
|
|
519
|
+
gridProps = { size: { xs: 12, sm: 12, md: 12, lg: 12, xl: 12 } },
|
|
492
520
|
...props
|
|
493
521
|
}) => {
|
|
494
522
|
if (gridProps) {
|
|
495
|
-
return /* @__PURE__ */ jsx4(
|
|
523
|
+
return /* @__PURE__ */ jsx4(
|
|
524
|
+
Grid24,
|
|
525
|
+
{
|
|
526
|
+
...{ size: { xs: 12, sm: 12, md: 12, lg: 12, xl: 12 }, ...gridProps },
|
|
527
|
+
children: /* @__PURE__ */ jsx4(Component4, { ...props })
|
|
528
|
+
}
|
|
529
|
+
);
|
|
496
530
|
}
|
|
497
531
|
return /* @__PURE__ */ jsx4(Component4, { ...props });
|
|
498
532
|
};
|
|
@@ -579,11 +613,17 @@ var Component5 = function TimePickerElement(props) {
|
|
|
579
613
|
);
|
|
580
614
|
};
|
|
581
615
|
var TimePickerElement2 = ({
|
|
582
|
-
gridProps,
|
|
616
|
+
gridProps = { size: { xs: 12, sm: 12, md: 12, lg: 12, xl: 12 } },
|
|
583
617
|
...props
|
|
584
618
|
}) => {
|
|
585
619
|
if (gridProps) {
|
|
586
|
-
return /* @__PURE__ */ jsx5(
|
|
620
|
+
return /* @__PURE__ */ jsx5(
|
|
621
|
+
Grid25,
|
|
622
|
+
{
|
|
623
|
+
...{ size: { xs: 12, sm: 12, md: 12, lg: 12, xl: 12 }, ...gridProps },
|
|
624
|
+
children: /* @__PURE__ */ jsx5(Component5, { ...props })
|
|
625
|
+
}
|
|
626
|
+
);
|
|
587
627
|
}
|
|
588
628
|
return /* @__PURE__ */ jsx5(Component5, { ...props });
|
|
589
629
|
};
|
|
@@ -593,11 +633,18 @@ var TimePickerElement_default = TimePickerElement2;
|
|
|
593
633
|
// src/wrappers/AsyncSelect/AsyncSelectElement.tsx
|
|
594
634
|
import * as React from "react";
|
|
595
635
|
import { useController as useController6 } from "react-hook-form";
|
|
596
|
-
import {
|
|
636
|
+
import {
|
|
637
|
+
useRef,
|
|
638
|
+
useMemo,
|
|
639
|
+
Fragment,
|
|
640
|
+
useState as useState2,
|
|
641
|
+
useEffect as useEffect2,
|
|
642
|
+
useCallback as useCallback2
|
|
643
|
+
} from "react";
|
|
597
644
|
import { debounce } from "@mui/material/utils";
|
|
598
645
|
import TextField3 from "@mui/material/TextField";
|
|
599
646
|
import Autocomplete from "@mui/material/Autocomplete";
|
|
600
|
-
import { Grid2 as Grid26, useTheme as
|
|
647
|
+
import { Grid2 as Grid26, useTheme as useTheme4, CircularProgress } from "@mui/material";
|
|
601
648
|
import { jsx as jsx6, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
602
649
|
var Component6 = function AsyncSelectElement(props) {
|
|
603
650
|
const {
|
|
@@ -623,21 +670,27 @@ var Component6 = function AsyncSelectElement(props) {
|
|
|
623
670
|
name,
|
|
624
671
|
control
|
|
625
672
|
});
|
|
626
|
-
const theme =
|
|
673
|
+
const theme = useTheme4();
|
|
627
674
|
const [loading, setLoading] = useState2(false);
|
|
628
675
|
const [selectedOption, setSelectedOption] = useState2(null);
|
|
629
676
|
const [inputValue, setInputValue] = useState2("");
|
|
630
677
|
const inputValue2 = useMemo(() => inputValue, [inputValue]);
|
|
631
|
-
const setInputValue2 = useCallback2(
|
|
678
|
+
const setInputValue2 = useCallback2(
|
|
679
|
+
(newValue) => setInputValue(newValue),
|
|
680
|
+
[]
|
|
681
|
+
);
|
|
632
682
|
const [options, setOptions] = useState2([]);
|
|
633
683
|
const initialValueLoaded = useRef(
|
|
634
684
|
!initialValue ? true : !(initialValue != null)
|
|
635
685
|
);
|
|
636
686
|
const fieldValue = useRef(field.value);
|
|
637
687
|
const fetchData = useMemo(
|
|
638
|
-
() => debounce(
|
|
639
|
-
|
|
640
|
-
|
|
688
|
+
() => debounce(
|
|
689
|
+
(payload, callback) => {
|
|
690
|
+
queryFn(payload).then((c) => callback(c));
|
|
691
|
+
},
|
|
692
|
+
400
|
|
693
|
+
),
|
|
641
694
|
[]
|
|
642
695
|
);
|
|
643
696
|
const fillOptions = (results) => {
|
|
@@ -790,11 +843,17 @@ var Component6 = function AsyncSelectElement(props) {
|
|
|
790
843
|
);
|
|
791
844
|
};
|
|
792
845
|
var AsyncSelectElement2 = ({
|
|
793
|
-
gridProps,
|
|
846
|
+
gridProps = { size: { xs: 12, sm: 12, md: 12, lg: 12, xl: 12 } },
|
|
794
847
|
...props
|
|
795
848
|
}) => {
|
|
796
849
|
if (gridProps) {
|
|
797
|
-
return /* @__PURE__ */ jsx6(
|
|
850
|
+
return /* @__PURE__ */ jsx6(
|
|
851
|
+
Grid26,
|
|
852
|
+
{
|
|
853
|
+
...{ size: { xs: 12, sm: 12, md: 12, lg: 12, xl: 12 }, ...gridProps },
|
|
854
|
+
children: /* @__PURE__ */ jsx6(Component6, { ...props })
|
|
855
|
+
}
|
|
856
|
+
);
|
|
798
857
|
}
|
|
799
858
|
return /* @__PURE__ */ jsx6(Component6, { ...props });
|
|
800
859
|
};
|
|
@@ -817,7 +876,7 @@ import {
|
|
|
817
876
|
CircularProgress as CircularProgress2,
|
|
818
877
|
Grid2 as Grid27,
|
|
819
878
|
TextField as TextField4,
|
|
820
|
-
useTheme as
|
|
879
|
+
useTheme as useTheme5
|
|
821
880
|
} from "@mui/material";
|
|
822
881
|
import { useController as useController7 } from "react-hook-form";
|
|
823
882
|
import match from "autosuggest-highlight/match";
|
|
@@ -845,7 +904,7 @@ var Component7 = function AsyncSelectMultiElement(props) {
|
|
|
845
904
|
name,
|
|
846
905
|
control
|
|
847
906
|
});
|
|
848
|
-
const theme =
|
|
907
|
+
const theme = useTheme5();
|
|
849
908
|
const multiSelectRef = useRef2(null);
|
|
850
909
|
const [selectedOptions, setSelectedOptions] = useState3([]);
|
|
851
910
|
const [inputValue, setInputValue] = useState3("");
|
|
@@ -1024,7 +1083,7 @@ import {
|
|
|
1024
1083
|
import {
|
|
1025
1084
|
useController as useController8
|
|
1026
1085
|
} from "react-hook-form";
|
|
1027
|
-
import { Grid2 as Grid28, useTheme as
|
|
1086
|
+
import { Grid2 as Grid28, useTheme as useTheme6, TextField as TextField5, Autocomplete as Autocomplete3 } from "@mui/material";
|
|
1028
1087
|
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
1029
1088
|
var Component8 = function SelectElement(props) {
|
|
1030
1089
|
const {
|
|
@@ -1051,7 +1110,7 @@ var Component8 = function SelectElement(props) {
|
|
|
1051
1110
|
name,
|
|
1052
1111
|
control
|
|
1053
1112
|
});
|
|
1054
|
-
const theme =
|
|
1113
|
+
const theme = useTheme6();
|
|
1055
1114
|
const getOptionValue = useCallback4(
|
|
1056
1115
|
(option) => {
|
|
1057
1116
|
if (typeof option === "string") return option;
|
|
@@ -1121,7 +1180,7 @@ var Component8 = function SelectElement(props) {
|
|
|
1121
1180
|
);
|
|
1122
1181
|
};
|
|
1123
1182
|
var SelectElement2 = ({
|
|
1124
|
-
gridProps,
|
|
1183
|
+
gridProps = { size: { xs: 12, sm: 12, md: 12, lg: 12, xl: 12 } },
|
|
1125
1184
|
...props
|
|
1126
1185
|
}) => {
|
|
1127
1186
|
if (gridProps) {
|
|
@@ -1243,7 +1302,7 @@ var Component9 = function SelectMultiElement(props) {
|
|
|
1243
1302
|
);
|
|
1244
1303
|
};
|
|
1245
1304
|
var SelectMultiElement2 = ({
|
|
1246
|
-
gridProps,
|
|
1305
|
+
gridProps = { size: { xs: 12, sm: 12, md: 12, lg: 12, xl: 12 } },
|
|
1247
1306
|
...props
|
|
1248
1307
|
}) => {
|
|
1249
1308
|
if (gridProps) {
|
|
@@ -1261,7 +1320,7 @@ import {
|
|
|
1261
1320
|
} from "react-hook-form";
|
|
1262
1321
|
import {
|
|
1263
1322
|
Grid2 as Grid210,
|
|
1264
|
-
useTheme as
|
|
1323
|
+
useTheme as useTheme7,
|
|
1265
1324
|
TextField as TextField7,
|
|
1266
1325
|
Autocomplete as Autocomplete5
|
|
1267
1326
|
} from "@mui/material";
|
|
@@ -1310,7 +1369,7 @@ var Component10 = function SelectCascadeElement(props) {
|
|
|
1310
1369
|
name,
|
|
1311
1370
|
control
|
|
1312
1371
|
});
|
|
1313
|
-
const theme =
|
|
1372
|
+
const theme = useTheme7();
|
|
1314
1373
|
const { field: dependentField } = useController10({
|
|
1315
1374
|
name: dependsOn,
|
|
1316
1375
|
control
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunk6JZ35VQJjs = require('./chunk-6JZ35VQJ.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkI7EIUZKKjs = require('./chunk-I7EIUZKK.js');
|
|
7
7
|
|
|
8
8
|
// src/wrappers/DatePickerElement/DatePickerElement.tsx
|
|
9
9
|
var _react = require('react'); var React = _interopRequireWildcard(_react);
|
|
@@ -54,6 +54,7 @@ var Component = function DatePickerElement(props) {
|
|
|
54
54
|
...rest
|
|
55
55
|
} = props;
|
|
56
56
|
const adapter = _internals.useLocalizationContext.call(void 0, );
|
|
57
|
+
const theme = _material.useTheme.call(void 0, );
|
|
57
58
|
const { disabled, inputRef, onClose, ...restDatePickerProps } = datePickerProps;
|
|
58
59
|
const {
|
|
59
60
|
field,
|
|
@@ -98,7 +99,16 @@ var Component = function DatePickerElement(props) {
|
|
|
98
99
|
datePickerProps.onChange(newValue, context);
|
|
99
100
|
}
|
|
100
101
|
},
|
|
101
|
-
sx
|
|
102
|
+
sx: {
|
|
103
|
+
"& .MuiOutlinedInput-root": {
|
|
104
|
+
bgcolor: disabled ? theme.palette.action.disabledBackground : "transparent"
|
|
105
|
+
},
|
|
106
|
+
"& .MuiInputLabel-asterisk": { color: "red" },
|
|
107
|
+
"& .MuiInputBase-input": {
|
|
108
|
+
cursor: disabled ? "not-allowed" : "default"
|
|
109
|
+
},
|
|
110
|
+
...sx
|
|
111
|
+
},
|
|
102
112
|
slotProps: {
|
|
103
113
|
...slotProps,
|
|
104
114
|
actionBar: {
|
|
@@ -127,11 +137,17 @@ var Component = function DatePickerElement(props) {
|
|
|
127
137
|
);
|
|
128
138
|
};
|
|
129
139
|
var DatePickerElement2 = ({
|
|
130
|
-
gridProps,
|
|
140
|
+
gridProps = { size: { xs: 12, sm: 12, md: 12, lg: 12, xl: 12 } },
|
|
131
141
|
...props
|
|
132
142
|
}) => {
|
|
133
143
|
if (gridProps) {
|
|
134
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
144
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
145
|
+
_material.Grid2,
|
|
146
|
+
{
|
|
147
|
+
...{ size: { xs: 12, sm: 12, md: 12, lg: 12, xl: 12 }, ...gridProps },
|
|
148
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Component, { ...props })
|
|
149
|
+
}
|
|
150
|
+
);
|
|
135
151
|
}
|
|
136
152
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Component, { ...props });
|
|
137
153
|
};
|
|
@@ -225,11 +241,17 @@ var Component2 = function PasswordEl(props) {
|
|
|
225
241
|
);
|
|
226
242
|
};
|
|
227
243
|
var PasswordElement = ({
|
|
228
|
-
gridProps,
|
|
244
|
+
gridProps = { size: { xs: 12, sm: 12, md: 12, lg: 12, xl: 12 } },
|
|
229
245
|
...props
|
|
230
246
|
}) => {
|
|
231
247
|
if (gridProps) {
|
|
232
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
248
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
249
|
+
_material.Grid2,
|
|
250
|
+
{
|
|
251
|
+
...{ size: { xs: 12, sm: 12, md: 12, lg: 12, xl: 12 }, ...gridProps },
|
|
252
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Component2, { ...props })
|
|
253
|
+
}
|
|
254
|
+
);
|
|
233
255
|
}
|
|
234
256
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Component2, { ...props });
|
|
235
257
|
};
|
|
@@ -368,11 +390,17 @@ var Component3 = function RadioButtonGroup(props) {
|
|
|
368
390
|
] });
|
|
369
391
|
};
|
|
370
392
|
var RadioButtonGroup2 = ({
|
|
371
|
-
gridProps,
|
|
393
|
+
gridProps = { size: { xs: 12, sm: 12, md: 12, lg: 12, xl: 12 } },
|
|
372
394
|
...props
|
|
373
395
|
}) => {
|
|
374
396
|
if (gridProps) {
|
|
375
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
397
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
398
|
+
_material.Grid2,
|
|
399
|
+
{
|
|
400
|
+
...{ size: { xs: 12, sm: 12, md: 12, lg: 12, xl: 12 }, ...gridProps },
|
|
401
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Component3, { ...props })
|
|
402
|
+
}
|
|
403
|
+
);
|
|
376
404
|
}
|
|
377
405
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Component3, { ...props });
|
|
378
406
|
};
|
|
@@ -488,11 +516,17 @@ var Component4 = function TextFieldElement(props) {
|
|
|
488
516
|
);
|
|
489
517
|
};
|
|
490
518
|
var TextFieldElement2 = ({
|
|
491
|
-
gridProps,
|
|
519
|
+
gridProps = { size: { xs: 12, sm: 12, md: 12, lg: 12, xl: 12 } },
|
|
492
520
|
...props
|
|
493
521
|
}) => {
|
|
494
522
|
if (gridProps) {
|
|
495
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
523
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
524
|
+
_material.Grid2,
|
|
525
|
+
{
|
|
526
|
+
...{ size: { xs: 12, sm: 12, md: 12, lg: 12, xl: 12 }, ...gridProps },
|
|
527
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Component4, { ...props })
|
|
528
|
+
}
|
|
529
|
+
);
|
|
496
530
|
}
|
|
497
531
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Component4, { ...props });
|
|
498
532
|
};
|
|
@@ -537,7 +571,7 @@ var Component5 = function TimePickerElement(props) {
|
|
|
537
571
|
value: field.value,
|
|
538
572
|
onChange: field.onChange,
|
|
539
573
|
transform: {
|
|
540
|
-
input: typeof _optionalChain([transform, 'optionalAccess', _18 => _18.input]) === "function" ? transform.input : (newValue) =>
|
|
574
|
+
input: typeof _optionalChain([transform, 'optionalAccess', _18 => _18.input]) === "function" ? transform.input : (newValue) => _chunkI7EIUZKKjs.readValueAsDate.call(void 0, adapter, newValue),
|
|
541
575
|
output: typeof _optionalChain([transform, 'optionalAccess', _19 => _19.output]) === "function" ? transform.output : (newValue) => newValue
|
|
542
576
|
}
|
|
543
577
|
});
|
|
@@ -579,11 +613,17 @@ var Component5 = function TimePickerElement(props) {
|
|
|
579
613
|
);
|
|
580
614
|
};
|
|
581
615
|
var TimePickerElement2 = ({
|
|
582
|
-
gridProps,
|
|
616
|
+
gridProps = { size: { xs: 12, sm: 12, md: 12, lg: 12, xl: 12 } },
|
|
583
617
|
...props
|
|
584
618
|
}) => {
|
|
585
619
|
if (gridProps) {
|
|
586
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
620
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
621
|
+
_material.Grid2,
|
|
622
|
+
{
|
|
623
|
+
...{ size: { xs: 12, sm: 12, md: 12, lg: 12, xl: 12 }, ...gridProps },
|
|
624
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Component5, { ...props })
|
|
625
|
+
}
|
|
626
|
+
);
|
|
587
627
|
}
|
|
588
628
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Component5, { ...props });
|
|
589
629
|
};
|
|
@@ -594,6 +634,13 @@ var TimePickerElement_default = TimePickerElement2;
|
|
|
594
634
|
|
|
595
635
|
|
|
596
636
|
|
|
637
|
+
|
|
638
|
+
|
|
639
|
+
|
|
640
|
+
|
|
641
|
+
|
|
642
|
+
|
|
643
|
+
|
|
597
644
|
var _utils = require('@mui/material/utils');
|
|
598
645
|
var _TextField = require('@mui/material/TextField'); var _TextField2 = _interopRequireDefault(_TextField);
|
|
599
646
|
var _Autocomplete = require('@mui/material/Autocomplete'); var _Autocomplete2 = _interopRequireDefault(_Autocomplete);
|
|
@@ -628,16 +675,22 @@ var Component6 = function AsyncSelectElement(props) {
|
|
|
628
675
|
const [selectedOption, setSelectedOption] = _react.useState.call(void 0, null);
|
|
629
676
|
const [inputValue, setInputValue] = _react.useState.call(void 0, "");
|
|
630
677
|
const inputValue2 = _react.useMemo.call(void 0, () => inputValue, [inputValue]);
|
|
631
|
-
const setInputValue2 = _react.useCallback.call(void 0,
|
|
678
|
+
const setInputValue2 = _react.useCallback.call(void 0,
|
|
679
|
+
(newValue) => setInputValue(newValue),
|
|
680
|
+
[]
|
|
681
|
+
);
|
|
632
682
|
const [options, setOptions] = _react.useState.call(void 0, []);
|
|
633
683
|
const initialValueLoaded = _react.useRef.call(void 0,
|
|
634
684
|
!initialValue ? true : !(initialValue != null)
|
|
635
685
|
);
|
|
636
686
|
const fieldValue = _react.useRef.call(void 0, field.value);
|
|
637
687
|
const fetchData = _react.useMemo.call(void 0,
|
|
638
|
-
() => _utils.debounce.call(void 0,
|
|
639
|
-
|
|
640
|
-
|
|
688
|
+
() => _utils.debounce.call(void 0,
|
|
689
|
+
(payload, callback) => {
|
|
690
|
+
queryFn(payload).then((c) => callback(c));
|
|
691
|
+
},
|
|
692
|
+
400
|
|
693
|
+
),
|
|
641
694
|
[]
|
|
642
695
|
);
|
|
643
696
|
const fillOptions = (results) => {
|
|
@@ -790,11 +843,17 @@ var Component6 = function AsyncSelectElement(props) {
|
|
|
790
843
|
);
|
|
791
844
|
};
|
|
792
845
|
var AsyncSelectElement2 = ({
|
|
793
|
-
gridProps,
|
|
846
|
+
gridProps = { size: { xs: 12, sm: 12, md: 12, lg: 12, xl: 12 } },
|
|
794
847
|
...props
|
|
795
848
|
}) => {
|
|
796
849
|
if (gridProps) {
|
|
797
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
850
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
851
|
+
_material.Grid2,
|
|
852
|
+
{
|
|
853
|
+
...{ size: { xs: 12, sm: 12, md: 12, lg: 12, xl: 12 }, ...gridProps },
|
|
854
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Component6, { ...props })
|
|
855
|
+
}
|
|
856
|
+
);
|
|
798
857
|
}
|
|
799
858
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Component6, { ...props });
|
|
800
859
|
};
|
|
@@ -1121,7 +1180,7 @@ var Component8 = function SelectElement(props) {
|
|
|
1121
1180
|
);
|
|
1122
1181
|
};
|
|
1123
1182
|
var SelectElement2 = ({
|
|
1124
|
-
gridProps,
|
|
1183
|
+
gridProps = { size: { xs: 12, sm: 12, md: 12, lg: 12, xl: 12 } },
|
|
1125
1184
|
...props
|
|
1126
1185
|
}) => {
|
|
1127
1186
|
if (gridProps) {
|
|
@@ -1243,7 +1302,7 @@ var Component9 = function SelectMultiElement(props) {
|
|
|
1243
1302
|
);
|
|
1244
1303
|
};
|
|
1245
1304
|
var SelectMultiElement2 = ({
|
|
1246
|
-
gridProps,
|
|
1305
|
+
gridProps = { size: { xs: 12, sm: 12, md: 12, lg: 12, xl: 12 } },
|
|
1247
1306
|
...props
|
|
1248
1307
|
}) => {
|
|
1249
1308
|
if (gridProps) {
|
|
@@ -314,7 +314,7 @@ var schemaTools = {
|
|
|
314
314
|
date: ({ message }) => _zod.z.coerce.string().transform((c) => c === "null" || c === "undefined" ? null : c).refine((c) => !!c, { message }).refine((c) => !!c ? _dayjs2.default.call(void 0, c).isValid() : true, {
|
|
315
315
|
message: message ? message : "Invalid date"
|
|
316
316
|
}),
|
|
317
|
-
nullableDate: ({ message }) => _zod.z.coerce.string().transform((c) => c === "null" ? null : c).transform((c) => c === "undefined" ? null : c).refine((c) => !c && c != null ? _dayjs2.default.call(void 0, c).isValid() : true, {
|
|
317
|
+
nullableDate: ({ message } = {}) => _zod.z.coerce.string().transform((c) => c === "null" ? null : c).transform((c) => c === "undefined" ? null : c).refine((c) => !c && c != null ? _dayjs2.default.call(void 0, c).isValid() : true, {
|
|
318
318
|
message: message ? message : "Invalid date"
|
|
319
319
|
})
|
|
320
320
|
};
|
|
@@ -314,7 +314,7 @@ var schemaTools = {
|
|
|
314
314
|
date: ({ message }) => z.coerce.string().transform((c) => c === "null" || c === "undefined" ? null : c).refine((c) => !!c, { message }).refine((c) => !!c ? dayjs(c).isValid() : true, {
|
|
315
315
|
message: message ? message : "Invalid date"
|
|
316
316
|
}),
|
|
317
|
-
nullableDate: ({ message }) => z.coerce.string().transform((c) => c === "null" ? null : c).transform((c) => c === "undefined" ? null : c).refine((c) => !c && c != null ? dayjs(c).isValid() : true, {
|
|
317
|
+
nullableDate: ({ message } = {}) => z.coerce.string().transform((c) => c === "null" ? null : c).transform((c) => c === "undefined" ? null : c).refine((c) => !c && c != null ? dayjs(c).isValid() : true, {
|
|
318
318
|
message: message ? message : "Invalid date"
|
|
319
319
|
})
|
|
320
320
|
};
|
package/dist/index.js
CHANGED
|
@@ -14,10 +14,10 @@ require('./chunk-7M2VOCYN.js');
|
|
|
14
14
|
require('./chunk-6BGQA4BQ.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkD3J7MWAUjs = require('./chunk-D3J7MWAU.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunk6NOXJGU2js = require('./chunk-6NOXJGU2.js');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
var _chunk6JZ35VQJjs = require('./chunk-6JZ35VQJ.js');
|
|
@@ -31,7 +31,7 @@ var _chunk6JZ35VQJjs = require('./chunk-6JZ35VQJ.js');
|
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
var
|
|
34
|
+
var _chunkI7EIUZKKjs = require('./chunk-I7EIUZKK.js');
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
|
|
@@ -55,4 +55,4 @@ var _chunkFYN7F5WJjs = require('./chunk-FYN7F5WJ.js');
|
|
|
55
55
|
|
|
56
56
|
|
|
57
57
|
|
|
58
|
-
exports.AuthorizedView = _chunkJKUOV3MNjs.AuthorizedView_default; exports.CancelButton = _chunkJKUOV3MNjs.CancelButton_default; exports.ClearButton = _chunkJKUOV3MNjs.ClearButton_default; exports.Field =
|
|
58
|
+
exports.AuthorizedView = _chunkJKUOV3MNjs.AuthorizedView_default; exports.CancelButton = _chunkJKUOV3MNjs.CancelButton_default; exports.ClearButton = _chunkJKUOV3MNjs.ClearButton_default; exports.Field = _chunkD3J7MWAUjs.Field_default; exports.Field2 = _chunk6NOXJGU2js.Field_default; exports.FilterButton = _chunkJKUOV3MNjs.FilterButton_default; exports.FilterWrapper = _chunkJKUOV3MNjs.FilterWrapper_default; exports.FormWrapper = _chunkJKUOV3MNjs.FormWrapper_default; exports.LabelText = _chunkJKUOV3MNjs.LabelText_default; exports.ListWrapper = _chunkJKUOV3MNjs.ListWrapper_default; exports.SimpleButton = _chunkJKUOV3MNjs.SimpleButton_default; exports.SimpleToolbar = _chunkJKUOV3MNjs.SimpleToolbar_default; exports.api = _chunkI7EIUZKKjs.api; exports.api2 = _chunkI7EIUZKKjs.api2; exports.flattenObjectKeys = _chunkI7EIUZKKjs.flattenObjectKeys; exports.getTimezone = _chunkI7EIUZKKjs.getTimezone; exports.handleServerErrors = _chunkI7EIUZKKjs.handleServerErrors; exports.propertyExists = _chunkI7EIUZKKjs.propertyExists; exports.readValueAsDate = _chunkI7EIUZKKjs.readValueAsDate; exports.removeLeadingTrailingSlashes = _chunkI7EIUZKKjs.removeLeadingTrailingSlashes; exports.schemaTools = _chunkI7EIUZKKjs.schemaTools; exports.useTransform = _chunk6JZ35VQJjs.useTransform;
|
package/dist/index.mjs
CHANGED
|
@@ -12,12 +12,12 @@ import {
|
|
|
12
12
|
} from "./chunk-FSU3H777.mjs";
|
|
13
13
|
import "./chunk-2JFL7TS5.mjs";
|
|
14
14
|
import "./chunk-EVPUCTZA.mjs";
|
|
15
|
-
import {
|
|
16
|
-
Field_default as Field_default2
|
|
17
|
-
} from "./chunk-MM6OQZAY.mjs";
|
|
18
15
|
import {
|
|
19
16
|
Field_default
|
|
20
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-BWQUYXUW.mjs";
|
|
18
|
+
import {
|
|
19
|
+
Field_default as Field_default2
|
|
20
|
+
} from "./chunk-5HOGPCEO.mjs";
|
|
21
21
|
import {
|
|
22
22
|
useTransform
|
|
23
23
|
} from "./chunk-GFSTK7KN.mjs";
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
readValueAsDate,
|
|
32
32
|
removeLeadingTrailingSlashes,
|
|
33
33
|
schemaTools
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-RQS44YC7.mjs";
|
|
35
35
|
export {
|
|
36
36
|
AuthorizedView_default as AuthorizedView,
|
|
37
37
|
CancelButton_default as CancelButton,
|
package/dist/utils/index.d.mts
CHANGED
|
@@ -51,8 +51,8 @@ declare const schemaTools: {
|
|
|
51
51
|
date: ({ message }: {
|
|
52
52
|
message?: string;
|
|
53
53
|
}) => z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string | null, string>, string | null, string>, string | null, string>;
|
|
54
|
-
nullableDate: ({ message }
|
|
55
|
-
message?: string;
|
|
54
|
+
nullableDate: ({ message }?: {
|
|
55
|
+
message?: string | null;
|
|
56
56
|
}) => z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string | null, string>, string | null, string>, string | null, string>;
|
|
57
57
|
};
|
|
58
58
|
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -51,8 +51,8 @@ declare const schemaTools: {
|
|
|
51
51
|
date: ({ message }: {
|
|
52
52
|
message?: string;
|
|
53
53
|
}) => z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string | null, string>, string | null, string>, string | null, string>;
|
|
54
|
-
nullableDate: ({ message }
|
|
55
|
-
message?: string;
|
|
54
|
+
nullableDate: ({ message }?: {
|
|
55
|
+
message?: string | null;
|
|
56
56
|
}) => z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string | null, string>, string | null, string>, string | null, string>;
|
|
57
57
|
};
|
|
58
58
|
|
package/dist/utils/index.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkI7EIUZKKjs = require('../chunk-I7EIUZKK.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
@@ -19,4 +19,4 @@ var _chunkFYN7F5WJjs = require('../chunk-FYN7F5WJ.js');
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
exports.api =
|
|
22
|
+
exports.api = _chunkI7EIUZKKjs.api; exports.api2 = _chunkI7EIUZKKjs.api2; exports.flattenObjectKeys = _chunkI7EIUZKKjs.flattenObjectKeys; exports.getTimezone = _chunkI7EIUZKKjs.getTimezone; exports.handleServerErrors = _chunkI7EIUZKKjs.handleServerErrors; exports.propertyExists = _chunkI7EIUZKKjs.propertyExists; exports.readValueAsDate = _chunkI7EIUZKKjs.readValueAsDate; exports.removeLeadingTrailingSlashes = _chunkI7EIUZKKjs.removeLeadingTrailingSlashes; exports.schemaTools = _chunkI7EIUZKKjs.schemaTools;
|
package/dist/utils/index.mjs
CHANGED
package/dist/wrappers/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkD3J7MWAUjs = require('../chunk-D3J7MWAU.js');
|
|
4
4
|
require('../chunk-6JZ35VQJ.js');
|
|
5
|
-
require('../chunk-
|
|
5
|
+
require('../chunk-I7EIUZKK.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.Field =
|
|
8
|
+
exports.Field = _chunkD3J7MWAUjs.Field_default;
|
package/dist/wrappers/index.mjs
CHANGED
package/dist/wrappers2/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk6NOXJGU2js = require('../chunk-6NOXJGU2.js');
|
|
4
4
|
require('../chunk-6JZ35VQJ.js');
|
|
5
|
-
require('../chunk-
|
|
5
|
+
require('../chunk-I7EIUZKK.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.Field2 =
|
|
8
|
+
exports.Field2 = _chunk6NOXJGU2js.Field_default;
|
package/dist/wrappers2/index.mjs
CHANGED