@gnwebsoft/ui 2.18.44 → 3.0.0

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.
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-GFSTK7KN.mjs";
4
4
  import {
5
5
  readValueAsDate
6
- } from "./chunk-GAYZ4QSD.mjs";
6
+ } from "./chunk-RQS44YC7.mjs";
7
7
 
8
8
  // src/wrappers2/DatePickerElement/DatePickerElement.tsx
9
9
  import {
@@ -3,7 +3,7 @@
3
3
  var _chunk6JZ35VQJjs = require('./chunk-6JZ35VQJ.js');
4
4
 
5
5
 
6
- var _chunkFYN7F5WJjs = require('./chunk-FYN7F5WJ.js');
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) => _chunkFYN7F5WJjs.readValueAsDate.call(void 0, adapter, 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) => _chunkFYN7F5WJjs.readValueAsDate.call(void 0, adapter, 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-GAYZ4QSD.mjs";
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(Grid2, { ...gridProps, children: /* @__PURE__ */ jsx(Component, { ...props }) });
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(Grid22, { ...{ size: { xs: 12, sm: 12, md: 12, lg: 12, xl: 12 }, ...gridProps }, children: /* @__PURE__ */ jsx2(Component2, { ...props }) });
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 = useTheme();
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(Grid23, { ...{ size: { xs: 12, sm: 12, md: 12, lg: 12, xl: 12 }, ...gridProps }, children: /* @__PURE__ */ jsx3(Component3, { ...props }) });
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 useTheme2
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 = useTheme2();
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(Grid24, { ...{ size: { xs: 12, sm: 12, md: 12, lg: 12, xl: 12 }, ...gridProps }, children: /* @__PURE__ */ jsx4(Component4, { ...props }) });
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(Grid25, { ...{ size: { xs: 12, sm: 12, md: 12, lg: 12, xl: 12 }, ...gridProps }, children: /* @__PURE__ */ jsx5(Component5, { ...props }) });
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 { useRef, useMemo, Fragment, useState as useState2, useEffect as useEffect2, useCallback as useCallback2 } from "react";
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 useTheme3, CircularProgress } from "@mui/material";
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 = useTheme3();
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((newValue) => setInputValue(newValue), []);
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((payload, callback) => {
639
- queryFn(payload).then((c) => callback(c));
640
- }, 400),
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(Grid26, { ...{ size: { xs: 12, sm: 12, md: 12, lg: 12, xl: 12 }, ...gridProps }, children: /* @__PURE__ */ jsx6(Component6, { ...props }) });
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 useTheme4
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 = useTheme4();
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 useTheme5, TextField as TextField5, Autocomplete as Autocomplete3 } from "@mui/material";
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 = useTheme5();
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 useTheme6,
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 = useTheme6();
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 _chunkFYN7F5WJjs = require('./chunk-FYN7F5WJ.js');
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, _material.Grid2, { ...gridProps, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Component, { ...props }) });
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, _material.Grid2, { ...{ size: { xs: 12, sm: 12, md: 12, lg: 12, xl: 12 }, ...gridProps }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Component2, { ...props }) });
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, _material.Grid2, { ...{ size: { xs: 12, sm: 12, md: 12, lg: 12, xl: 12 }, ...gridProps }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Component3, { ...props }) });
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, _material.Grid2, { ...{ size: { xs: 12, sm: 12, md: 12, lg: 12, xl: 12 }, ...gridProps }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Component4, { ...props }) });
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) => _chunkFYN7F5WJjs.readValueAsDate.call(void 0, adapter, 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, _material.Grid2, { ...{ size: { xs: 12, sm: 12, md: 12, lg: 12, xl: 12 }, ...gridProps }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Component5, { ...props }) });
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, (newValue) => setInputValue(newValue), []);
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, (payload, callback) => {
639
- queryFn(payload).then((c) => callback(c));
640
- }, 400),
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, _material.Grid2, { ...{ size: { xs: 12, sm: 12, md: 12, lg: 12, xl: 12 }, ...gridProps }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Component6, { ...props }) });
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 _chunkIZSKZD5Mjs = require('./chunk-IZSKZD5M.js');
17
+ var _chunk6NOXJGU2js = require('./chunk-6NOXJGU2.js');
18
18
 
19
19
 
20
- var _chunkBBDVHJQ3js = require('./chunk-BBDVHJQ3.js');
20
+ var _chunkD3J7MWAUjs = require('./chunk-D3J7MWAU.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 _chunkFYN7F5WJjs = require('./chunk-FYN7F5WJ.js');
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 = _chunkBBDVHJQ3js.Field_default; exports.Field2 = _chunkIZSKZD5Mjs.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 = _chunkFYN7F5WJjs.api; exports.api2 = _chunkFYN7F5WJjs.api2; exports.flattenObjectKeys = _chunkFYN7F5WJjs.flattenObjectKeys; exports.getTimezone = _chunkFYN7F5WJjs.getTimezone; exports.handleServerErrors = _chunkFYN7F5WJjs.handleServerErrors; exports.propertyExists = _chunkFYN7F5WJjs.propertyExists; exports.readValueAsDate = _chunkFYN7F5WJjs.readValueAsDate; exports.removeLeadingTrailingSlashes = _chunkFYN7F5WJjs.removeLeadingTrailingSlashes; exports.schemaTools = _chunkFYN7F5WJjs.schemaTools; exports.useTransform = _chunk6JZ35VQJjs.useTransform;
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
@@ -14,10 +14,10 @@ import "./chunk-2JFL7TS5.mjs";
14
14
  import "./chunk-EVPUCTZA.mjs";
15
15
  import {
16
16
  Field_default as Field_default2
17
- } from "./chunk-MM6OQZAY.mjs";
17
+ } from "./chunk-5HOGPCEO.mjs";
18
18
  import {
19
19
  Field_default
20
- } from "./chunk-3LU2Q6FI.mjs";
20
+ } from "./chunk-BWQUYXUW.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-GAYZ4QSD.mjs";
34
+ } from "./chunk-RQS44YC7.mjs";
35
35
  export {
36
36
  AuthorizedView_default as AuthorizedView,
37
37
  CancelButton_default as CancelButton,
@@ -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
 
@@ -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
 
@@ -8,7 +8,7 @@
8
8
 
9
9
 
10
10
 
11
- var _chunkFYN7F5WJjs = require('../chunk-FYN7F5WJ.js');
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 = _chunkFYN7F5WJjs.api; exports.api2 = _chunkFYN7F5WJjs.api2; exports.flattenObjectKeys = _chunkFYN7F5WJjs.flattenObjectKeys; exports.getTimezone = _chunkFYN7F5WJjs.getTimezone; exports.handleServerErrors = _chunkFYN7F5WJjs.handleServerErrors; exports.propertyExists = _chunkFYN7F5WJjs.propertyExists; exports.readValueAsDate = _chunkFYN7F5WJjs.readValueAsDate; exports.removeLeadingTrailingSlashes = _chunkFYN7F5WJjs.removeLeadingTrailingSlashes; exports.schemaTools = _chunkFYN7F5WJjs.schemaTools;
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;
@@ -8,7 +8,7 @@ import {
8
8
  readValueAsDate,
9
9
  removeLeadingTrailingSlashes,
10
10
  schemaTools
11
- } from "../chunk-GAYZ4QSD.mjs";
11
+ } from "../chunk-RQS44YC7.mjs";
12
12
  export {
13
13
  api,
14
14
  api2,
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkBBDVHJQ3js = require('../chunk-BBDVHJQ3.js');
3
+ var _chunkD3J7MWAUjs = require('../chunk-D3J7MWAU.js');
4
4
  require('../chunk-6JZ35VQJ.js');
5
- require('../chunk-FYN7F5WJ.js');
5
+ require('../chunk-I7EIUZKK.js');
6
6
 
7
7
 
8
- exports.Field = _chunkBBDVHJQ3js.Field_default;
8
+ exports.Field = _chunkD3J7MWAUjs.Field_default;
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  Field_default
3
- } from "../chunk-3LU2Q6FI.mjs";
3
+ } from "../chunk-BWQUYXUW.mjs";
4
4
  import "../chunk-GFSTK7KN.mjs";
5
- import "../chunk-GAYZ4QSD.mjs";
5
+ import "../chunk-RQS44YC7.mjs";
6
6
  export {
7
7
  Field_default as Field
8
8
  };
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkIZSKZD5Mjs = require('../chunk-IZSKZD5M.js');
3
+ var _chunk6NOXJGU2js = require('../chunk-6NOXJGU2.js');
4
4
  require('../chunk-6JZ35VQJ.js');
5
- require('../chunk-FYN7F5WJ.js');
5
+ require('../chunk-I7EIUZKK.js');
6
6
 
7
7
 
8
- exports.Field2 = _chunkIZSKZD5Mjs.Field_default;
8
+ exports.Field2 = _chunk6NOXJGU2js.Field_default;
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  Field_default
3
- } from "../chunk-MM6OQZAY.mjs";
3
+ } from "../chunk-5HOGPCEO.mjs";
4
4
  import "../chunk-GFSTK7KN.mjs";
5
- import "../chunk-GAYZ4QSD.mjs";
5
+ import "../chunk-RQS44YC7.mjs";
6
6
  export {
7
7
  Field_default as Field2
8
8
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gnwebsoft/ui",
3
- "version": "2.18.44",
3
+ "version": "3.0.0",
4
4
  "description": "A set of reusable wrappers for MUI v6",
5
5
  "author": "GNWebsoft Private Limited",
6
6
  "license": "",
@@ -60,9 +60,9 @@
60
60
  "@arethetypeswrong/cli": "^0.17.2",
61
61
  "@types/autosuggest-highlight": "^3.2.3",
62
62
  "@types/lodash": "^4.17.13",
63
- "@types/node": "22.10.3",
64
- "@types/react": "^18.3.18",
65
- "@types/react-dom": "^18.3.5",
63
+ "@types/node": "^24.2.0",
64
+ "@types/react": "^19.1.9",
65
+ "@types/react-dom": "^19.1.7",
66
66
  "rimraf": "^6.0.1",
67
67
  "tslib": "^2.8.1",
68
68
  "tsup": "^8.4.0"
@@ -70,23 +70,23 @@
70
70
  "peerDependencies": {
71
71
  "@emotion/cache": "^11.14.0",
72
72
  "@emotion/react": "^11.14.0",
73
- "@emotion/styled": "^11.14.0",
74
- "@hookform/resolvers": "^3.9.1",
75
- "@mui/icons-material": "^6.4.11",
76
- "@mui/lab": "^6.0.0-beta.21",
77
- "@mui/material": "^6.5.0",
78
- "@mui/x-data-grid": "^7.29.8",
79
- "@mui/x-date-pickers": "^7.29.4",
73
+ "@emotion/styled": "^11.14.1",
74
+ "@hookform/resolvers": "^5.2.1",
75
+ "@mui/icons-material": "^7.3.1",
76
+ "@mui/lab": "^7.0.0-beta.16",
77
+ "@mui/material": "^7.3.1",
78
+ "@mui/x-data-grid": "^8.9.2",
79
+ "@mui/x-date-pickers": "^8.9.2",
80
80
  "autosuggest-highlight": "^3.3.4",
81
- "axios": "^1.10.0",
81
+ "axios": "^1.11.0",
82
82
  "dayjs": "^1.11.13",
83
- "es-toolkit": "^1.39.7",
83
+ "es-toolkit": "^1.39.8",
84
84
  "lodash": "^4.17.21",
85
- "react": "^18.3.1",
86
- "react-dom": "^18.3.1",
87
- "react-hook-form": "^7.60.0",
88
- "typescript": "^5.7.2",
89
- "zod": "^3.25.76",
85
+ "react": "^19.1.1",
86
+ "react-dom": "^19.1.1",
87
+ "react-hook-form": "^7.62.0",
88
+ "typescript": "^5.9.2",
89
+ "zod": "^4.0.15",
90
90
  "zustand": "^5.0.2"
91
91
  }
92
92
  }