@gnwebsoft/ui 2.18.41 → 2.18.43

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.
@@ -4,7 +4,7 @@ type OptionItem = {
4
4
  };
5
5
  type AsyncMultiSelectPayload = {
6
6
  query: string | null;
7
- initialValues?: number[] | null;
7
+ initialValues?: string[] | number[] | null;
8
8
  };
9
9
  type OptionItem2 = {
10
10
  Label: string;
@@ -4,7 +4,7 @@ type OptionItem = {
4
4
  };
5
5
  type AsyncMultiSelectPayload = {
6
6
  query: string | null;
7
- initialValues?: number[] | null;
7
+ initialValues?: string[] | number[] | null;
8
8
  };
9
9
  type OptionItem2 = {
10
10
  Label: string;
@@ -6,16 +6,23 @@ import {
6
6
  } from "./chunk-GAYZ4QSD.mjs";
7
7
 
8
8
  // src/wrappers/DatePickerElement/DatePickerElement.tsx
9
- import { useMemo, useCallback } from "react";
9
+ import { useCallback } from "react";
10
10
  import { useController } from "react-hook-form";
11
11
  import { DatePicker } from "@mui/x-date-pickers";
12
12
  import { Grid2, useForkRef } from "@mui/material";
13
+ import { useLocalizationContext } from "@mui/x-date-pickers/internals";
13
14
  import { jsx } from "react/jsx-runtime";
15
+ function readValueAsDate2(adapter, value) {
16
+ if (typeof value === "string") {
17
+ if (value === "") {
18
+ return null;
19
+ }
20
+ return adapter.utils.date(value);
21
+ }
22
+ return value;
23
+ }
14
24
  function useTransform2(options) {
15
- const value = useMemo(
16
- () => typeof options.transform?.input === "function" ? options.transform.input(options.value) : options.value,
17
- [options.transform, options.value]
18
- );
25
+ const value = typeof options.transform?.input === "function" ? options.transform.input(options.value) : options.value;
19
26
  const onChange = useCallback(
20
27
  (...event) => {
21
28
  if (typeof options.transform?.output === "function") {
@@ -42,9 +49,11 @@ var Component = function DatePickerElement(props) {
42
49
  placeholder,
43
50
  slotProps,
44
51
  datePickerProps = {},
52
+ transform,
45
53
  sx,
46
54
  ...rest
47
55
  } = props;
56
+ const adapter = useLocalizationContext();
48
57
  const { disabled, inputRef, onClose, ...restDatePickerProps } = datePickerProps;
49
58
  const {
50
59
  field,
@@ -58,7 +67,7 @@ var Component = function DatePickerElement(props) {
58
67
  value: field.value,
59
68
  onChange: field.onChange,
60
69
  transform: {
61
- //@ts-ignore
70
+ input: typeof transform?.input === "function" ? transform.input : (newValue) => readValueAsDate2(adapter, newValue),
62
71
  output: (outputValue, context) => {
63
72
  if (outputValue === null) return null;
64
73
  return outputValue;
@@ -220,7 +229,7 @@ var PasswordElement = ({
220
229
  ...props
221
230
  }) => {
222
231
  if (gridProps) {
223
- return /* @__PURE__ */ jsx2(Grid22, { ...gridProps, children: /* @__PURE__ */ jsx2(Component2, { ...props }) });
232
+ return /* @__PURE__ */ jsx2(Grid22, { ...{ size: { xs: 12, sm: 12, md: 12, lg: 12, xl: 12 }, ...gridProps }, children: /* @__PURE__ */ jsx2(Component2, { ...props }) });
224
233
  }
225
234
  return /* @__PURE__ */ jsx2(Component2, { ...props });
226
235
  };
@@ -363,7 +372,7 @@ var RadioButtonGroup2 = ({
363
372
  ...props
364
373
  }) => {
365
374
  if (gridProps) {
366
- return /* @__PURE__ */ jsx3(Grid23, { ...gridProps, children: /* @__PURE__ */ jsx3(Component3, { ...props }) });
375
+ return /* @__PURE__ */ jsx3(Grid23, { ...{ size: { xs: 12, sm: 12, md: 12, lg: 12, xl: 12 }, ...gridProps }, children: /* @__PURE__ */ jsx3(Component3, { ...props }) });
367
376
  }
368
377
  return /* @__PURE__ */ jsx3(Component3, { ...props });
369
378
  };
@@ -483,7 +492,7 @@ var TextFieldElement2 = ({
483
492
  ...props
484
493
  }) => {
485
494
  if (gridProps) {
486
- return /* @__PURE__ */ jsx4(Grid24, { ...gridProps, children: /* @__PURE__ */ jsx4(Component4, { ...props }) });
495
+ return /* @__PURE__ */ jsx4(Grid24, { ...{ size: { xs: 12, sm: 12, md: 12, lg: 12, xl: 12 }, ...gridProps }, children: /* @__PURE__ */ jsx4(Component4, { ...props }) });
487
496
  }
488
497
  return /* @__PURE__ */ jsx4(Component4, { ...props });
489
498
  };
@@ -498,7 +507,7 @@ import {
498
507
  useController as useController5
499
508
  } from "react-hook-form";
500
509
  import { useForkRef as useForkRef4, Grid2 as Grid25 } from "@mui/material";
501
- import { useLocalizationContext } from "@mui/x-date-pickers/internals";
510
+ import { useLocalizationContext as useLocalizationContext2 } from "@mui/x-date-pickers/internals";
502
511
  import { jsx as jsx5 } from "react/jsx-runtime";
503
512
  var Component5 = function TimePickerElement(props) {
504
513
  const {
@@ -514,7 +523,7 @@ var Component5 = function TimePickerElement(props) {
514
523
  transform,
515
524
  ...rest
516
525
  } = props;
517
- const adapter = useLocalizationContext();
526
+ const adapter = useLocalizationContext2();
518
527
  const {
519
528
  field,
520
529
  fieldState: { error }
@@ -574,7 +583,7 @@ var TimePickerElement2 = ({
574
583
  ...props
575
584
  }) => {
576
585
  if (gridProps) {
577
- return /* @__PURE__ */ jsx5(Grid25, { ...gridProps, children: /* @__PURE__ */ jsx5(Component5, { ...props }) });
586
+ return /* @__PURE__ */ jsx5(Grid25, { ...{ size: { xs: 12, sm: 12, md: 12, lg: 12, xl: 12 }, ...gridProps }, children: /* @__PURE__ */ jsx5(Component5, { ...props }) });
578
587
  }
579
588
  return /* @__PURE__ */ jsx5(Component5, { ...props });
580
589
  };
@@ -584,7 +593,7 @@ var TimePickerElement_default = TimePickerElement2;
584
593
  // src/wrappers/AsyncSelect/AsyncSelectElement.tsx
585
594
  import * as React from "react";
586
595
  import { useController as useController6 } from "react-hook-form";
587
- import { useRef, useMemo as useMemo2, Fragment, useState as useState2, useEffect as useEffect2, useCallback as useCallback2 } from "react";
596
+ import { useRef, useMemo, Fragment, useState as useState2, useEffect as useEffect2, useCallback as useCallback2 } from "react";
588
597
  import { debounce } from "@mui/material/utils";
589
598
  import TextField3 from "@mui/material/TextField";
590
599
  import Autocomplete from "@mui/material/Autocomplete";
@@ -618,14 +627,14 @@ var Component6 = function AsyncSelectElement(props) {
618
627
  const [loading, setLoading] = useState2(false);
619
628
  const [selectedOption, setSelectedOption] = useState2(null);
620
629
  const [inputValue, setInputValue] = useState2("");
621
- const inputValue2 = useMemo2(() => inputValue, [inputValue]);
630
+ const inputValue2 = useMemo(() => inputValue, [inputValue]);
622
631
  const setInputValue2 = useCallback2((newValue) => setInputValue(newValue), []);
623
632
  const [options, setOptions] = useState2([]);
624
633
  const initialValueLoaded = useRef(
625
634
  !initialValue ? true : !(initialValue != null)
626
635
  );
627
636
  const fieldValue = useRef(field.value);
628
- const fetchData = useMemo2(
637
+ const fetchData = useMemo(
629
638
  () => debounce((payload, callback) => {
630
639
  queryFn(payload).then((c) => callback(c));
631
640
  }, 400),
@@ -785,7 +794,7 @@ var AsyncSelectElement2 = ({
785
794
  ...props
786
795
  }) => {
787
796
  if (gridProps) {
788
- return /* @__PURE__ */ jsx6(Grid26, { ...gridProps, children: /* @__PURE__ */ jsx6(Component6, { ...props }) });
797
+ return /* @__PURE__ */ jsx6(Grid26, { ...{ size: { xs: 12, sm: 12, md: 12, lg: 12, xl: 12 }, ...gridProps }, children: /* @__PURE__ */ jsx6(Component6, { ...props }) });
789
798
  }
790
799
  return /* @__PURE__ */ jsx6(Component6, { ...props });
791
800
  };
@@ -797,7 +806,7 @@ import _ from "lodash";
797
806
  import {
798
807
  useState as useState3,
799
808
  useRef as useRef2,
800
- useMemo as useMemo3,
809
+ useMemo as useMemo2,
801
810
  useEffect as useEffect3,
802
811
  useCallback as useCallback3,
803
812
  Fragment as Fragment2
@@ -845,12 +854,12 @@ var Component7 = function AsyncSelectMultiElement(props) {
845
854
  const initialValuesLoaded = useRef2(
846
855
  !(initialValues && initialValues.length > 0)
847
856
  );
848
- const inputValue2 = useMemo3(() => inputValue, [inputValue]);
857
+ const inputValue2 = useMemo2(() => inputValue, [inputValue]);
849
858
  const setInputValue2 = useCallback3(
850
859
  (inputValue3) => setInputValue(inputValue3),
851
860
  []
852
861
  );
853
- const fetchData = useMemo3(
862
+ const fetchData = useMemo2(
854
863
  () => debounce2(
855
864
  (payload, callback) => {
856
865
  queryFn(payload).then((c) => callback(c));
@@ -993,7 +1002,13 @@ var AsyncSelectMultiElement2 = ({
993
1002
  ...props
994
1003
  }) => {
995
1004
  if (gridProps) {
996
- return /* @__PURE__ */ jsx7(Grid27, { ...gridProps, children: /* @__PURE__ */ jsx7(Component7, { ...props }) });
1005
+ return /* @__PURE__ */ jsx7(
1006
+ Grid27,
1007
+ {
1008
+ ...{ size: { xs: 12, sm: 12, md: 12, lg: 12, xl: 12 }, ...gridProps },
1009
+ children: /* @__PURE__ */ jsx7(Component7, { ...props })
1010
+ }
1011
+ );
997
1012
  }
998
1013
  return /* @__PURE__ */ jsx7(Component7, { ...props });
999
1014
  };
@@ -1001,7 +1016,11 @@ AsyncSelectMultiElement2.displayName = "AsyncSelectMulti";
1001
1016
  var AsyncMultiSelect_default = AsyncSelectMultiElement2;
1002
1017
 
1003
1018
  // src/wrappers/SelectElement/SelectElement.tsx
1004
- import { useMemo as useMemo4, useEffect as useEffect4, useCallback as useCallback4 } from "react";
1019
+ import {
1020
+ useMemo as useMemo3,
1021
+ useEffect as useEffect4,
1022
+ useCallback as useCallback4
1023
+ } from "react";
1005
1024
  import {
1006
1025
  useController as useController8
1007
1026
  } from "react-hook-form";
@@ -1059,7 +1078,7 @@ var Component8 = function SelectElement(props) {
1059
1078
  field.onChange(defaultValue);
1060
1079
  }
1061
1080
  }, [isEdit, options]);
1062
- const autocompleteValue = useMemo4(
1081
+ const autocompleteValue = useMemo3(
1063
1082
  () => options.find((option) => getOptionValue(option) === field.value) ?? null,
1064
1083
  [field.value, options, getOptionValue]
1065
1084
  );
@@ -1106,7 +1125,13 @@ var SelectElement2 = ({
1106
1125
  ...props
1107
1126
  }) => {
1108
1127
  if (gridProps) {
1109
- return /* @__PURE__ */ jsx8(Grid28, { ...gridProps, children: /* @__PURE__ */ jsx8(Component8, { ...props }) });
1128
+ return /* @__PURE__ */ jsx8(
1129
+ Grid28,
1130
+ {
1131
+ ...{ size: { xs: 12, sm: 12, md: 12, lg: 12, xl: 12 }, ...gridProps },
1132
+ children: /* @__PURE__ */ jsx8(Component8, { ...props })
1133
+ }
1134
+ );
1110
1135
  }
1111
1136
  return /* @__PURE__ */ jsx8(Component8, { ...props });
1112
1137
  };
@@ -1222,7 +1247,7 @@ var SelectMultiElement2 = ({
1222
1247
  ...props
1223
1248
  }) => {
1224
1249
  if (gridProps) {
1225
- return /* @__PURE__ */ jsx9(Grid29, { ...gridProps, children: /* @__PURE__ */ jsx9(Component9, { ...props }) });
1250
+ return /* @__PURE__ */ jsx9(Grid29, { ...{ size: { xs: 12, sm: 12, md: 12, lg: 12, xl: 12 }, ...gridProps }, children: /* @__PURE__ */ jsx9(Component9, { ...props }) });
1226
1251
  }
1227
1252
  return /* @__PURE__ */ jsx9(Component9, { ...props });
1228
1253
  };
@@ -1372,11 +1397,11 @@ var Component10 = function SelectCascadeElement(props) {
1372
1397
  );
1373
1398
  };
1374
1399
  var SelectCascadeElement2 = ({
1375
- gridProps,
1400
+ gridProps = { size: { xs: 12, sm: 12, md: 12, lg: 12, xl: 12 } },
1376
1401
  ...props
1377
1402
  }) => {
1378
1403
  if (gridProps) {
1379
- return /* @__PURE__ */ jsx10(Grid210, { ...gridProps, children: /* @__PURE__ */ jsx10(Component10, { ...props }) });
1404
+ return /* @__PURE__ */ jsx10(Grid210, { ...{ size: { xs: 12, sm: 12, md: 12, lg: 12, xl: 12 }, ...gridProps }, children: /* @__PURE__ */ jsx10(Component10, { ...props }) });
1380
1405
  }
1381
1406
  return /* @__PURE__ */ jsx10(Component10, { ...props });
1382
1407
  };
@@ -1443,7 +1468,7 @@ var CheckboxElement2 = ({
1443
1468
  ...props
1444
1469
  }) => {
1445
1470
  if (gridProps) {
1446
- return /* @__PURE__ */ jsx11(Grid211, { ...gridProps, children: /* @__PURE__ */ jsx11(Component11, { ...props }) });
1471
+ return /* @__PURE__ */ jsx11(Grid211, { ...{ size: { xs: 12, sm: 12, md: 12, lg: 12, xl: 12 }, ...gridProps }, children: /* @__PURE__ */ jsx11(Component11, { ...props }) });
1447
1472
  }
1448
1473
  return /* @__PURE__ */ jsx11(Component11, { ...props });
1449
1474
  };
@@ -1521,7 +1546,7 @@ var CheckboxGroup2 = ({
1521
1546
  ...props
1522
1547
  }) => {
1523
1548
  if (gridProps) {
1524
- return /* @__PURE__ */ jsx12(Grid212, { ...gridProps, children: /* @__PURE__ */ jsx12(Component12, { ...props }) });
1549
+ return /* @__PURE__ */ jsx12(Grid212, { ...{ size: { xs: 12, sm: 12, md: 12, lg: 12, xl: 12 }, ...gridProps }, children: /* @__PURE__ */ jsx12(Component12, { ...props }) });
1525
1550
  }
1526
1551
  return /* @__PURE__ */ jsx12(Component12, { ...props });
1527
1552
  };
@@ -10,12 +10,19 @@ var _react = require('react'); var React = _interopRequireWildcard(_react);
10
10
  var _reacthookform = require('react-hook-form');
11
11
  var _xdatepickers = require('@mui/x-date-pickers');
12
12
  var _material = require('@mui/material');
13
+ var _internals = require('@mui/x-date-pickers/internals');
13
14
  var _jsxruntime = require('react/jsx-runtime');
15
+ function readValueAsDate2(adapter, value) {
16
+ if (typeof value === "string") {
17
+ if (value === "") {
18
+ return null;
19
+ }
20
+ return adapter.utils.date(value);
21
+ }
22
+ return value;
23
+ }
14
24
  function useTransform2(options) {
15
- const value = _react.useMemo.call(void 0,
16
- () => typeof _optionalChain([options, 'access', _3 => _3.transform, 'optionalAccess', _4 => _4.input]) === "function" ? options.transform.input(options.value) : options.value,
17
- [options.transform, options.value]
18
- );
25
+ const value = typeof _optionalChain([options, 'access', _3 => _3.transform, 'optionalAccess', _4 => _4.input]) === "function" ? options.transform.input(options.value) : options.value;
19
26
  const onChange = _react.useCallback.call(void 0,
20
27
  (...event) => {
21
28
  if (typeof _optionalChain([options, 'access', _5 => _5.transform, 'optionalAccess', _6 => _6.output]) === "function") {
@@ -42,9 +49,11 @@ var Component = function DatePickerElement(props) {
42
49
  placeholder,
43
50
  slotProps,
44
51
  datePickerProps = {},
52
+ transform,
45
53
  sx,
46
54
  ...rest
47
55
  } = props;
56
+ const adapter = _internals.useLocalizationContext.call(void 0, );
48
57
  const { disabled, inputRef, onClose, ...restDatePickerProps } = datePickerProps;
49
58
  const {
50
59
  field,
@@ -58,7 +67,7 @@ var Component = function DatePickerElement(props) {
58
67
  value: field.value,
59
68
  onChange: field.onChange,
60
69
  transform: {
61
- //@ts-ignore
70
+ input: typeof _optionalChain([transform, 'optionalAccess', _7 => _7.input]) === "function" ? transform.input : (newValue) => readValueAsDate2(adapter, newValue),
62
71
  output: (outputValue, context) => {
63
72
  if (outputValue === null) return null;
64
73
  return outputValue;
@@ -102,15 +111,15 @@ var Component = function DatePickerElement(props) {
102
111
  fullWidth: true,
103
112
  onBlur: (event) => {
104
113
  field.onBlur();
105
- if (typeof _optionalChain([inputProps, 'optionalAccess', _7 => _7.onBlur]) === "function") {
114
+ if (typeof _optionalChain([inputProps, 'optionalAccess', _8 => _8.onBlur]) === "function") {
106
115
  inputProps.onBlur(event);
107
116
  }
108
117
  },
109
118
  error: !!error,
110
- helperText: error ? error.message : _optionalChain([inputProps, 'optionalAccess', _8 => _8.helperText]) || rest.helperText,
119
+ helperText: error ? error.message : _optionalChain([inputProps, 'optionalAccess', _9 => _9.helperText]) || rest.helperText,
111
120
  inputProps: {
112
121
  readOnly: !!textReadOnly,
113
- ..._optionalChain([inputProps, 'optionalAccess', _9 => _9.inputProps])
122
+ ..._optionalChain([inputProps, 'optionalAccess', _10 => _10.inputProps])
114
123
  }
115
124
  }
116
125
  }
@@ -206,7 +215,7 @@ var Component2 = function PasswordEl(props) {
206
215
  ...slotProps,
207
216
  input: {
208
217
  endAdornment,
209
- ..._optionalChain([slotProps, 'optionalAccess', _10 => _10.input])
218
+ ..._optionalChain([slotProps, 'optionalAccess', _11 => _11.input])
210
219
  }
211
220
  }
212
221
  },
@@ -220,7 +229,7 @@ var PasswordElement = ({
220
229
  ...props
221
230
  }) => {
222
231
  if (gridProps) {
223
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Grid2, { ...gridProps, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Component2, { ...props }) });
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 }) });
224
233
  }
225
234
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Component2, { ...props });
226
235
  };
@@ -280,10 +289,10 @@ var Component3 = function RadioButtonGroup(props) {
280
289
  value: field.value,
281
290
  onChange: field.onChange,
282
291
  transform: {
283
- input: typeof _optionalChain([transform, 'optionalAccess', _11 => _11.input]) === "function" ? transform.input : (value2) => {
292
+ input: typeof _optionalChain([transform, 'optionalAccess', _12 => _12.input]) === "function" ? transform.input : (value2) => {
284
293
  return value2 || "";
285
294
  },
286
- output: typeof _optionalChain([transform, 'optionalAccess', _12 => _12.output]) === "function" ? _optionalChain([transform, 'optionalAccess', _13 => _13.output]) : (_event, value2) => {
295
+ output: typeof _optionalChain([transform, 'optionalAccess', _13 => _13.output]) === "function" ? _optionalChain([transform, 'optionalAccess', _14 => _14.output]) : (_event, value2) => {
287
296
  if (value2 && type === "number") {
288
297
  return Number(value2);
289
298
  }
@@ -328,7 +337,7 @@ var Component3 = function RadioButtonGroup(props) {
328
337
  option
329
338
  );
330
339
  }
331
- let val = returnObject ? _optionalChain([value, 'optionalAccess', _14 => _14[valueKey]]) : value;
340
+ let val = returnObject ? _optionalChain([value, 'optionalAccess', _15 => _15[valueKey]]) : value;
332
341
  if (type === "number") {
333
342
  val = Number(val);
334
343
  }
@@ -363,7 +372,7 @@ var RadioButtonGroup2 = ({
363
372
  ...props
364
373
  }) => {
365
374
  if (gridProps) {
366
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Grid2, { ...gridProps, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Component3, { ...props }) });
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 }) });
367
376
  }
368
377
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Component3, { ...props });
369
378
  };
@@ -418,10 +427,10 @@ var Component4 = function TextFieldElement(props) {
418
427
  value: field.value,
419
428
  onChange: field.onChange,
420
429
  transform: {
421
- input: typeof _optionalChain([transform, 'optionalAccess', _15 => _15.input]) === "function" ? transform.input : (value2) => {
430
+ input: typeof _optionalChain([transform, 'optionalAccess', _16 => _16.input]) === "function" ? transform.input : (value2) => {
422
431
  return _nullishCoalesce(value2, () => ( ""));
423
432
  },
424
- output: typeof _optionalChain([transform, 'optionalAccess', _16 => _16.output]) === "function" ? transform.output : (event) => {
433
+ output: typeof _optionalChain([transform, 'optionalAccess', _17 => _17.output]) === "function" ? transform.output : (event) => {
425
434
  const value2 = event.target.value;
426
435
  if (type !== "number") {
427
436
  return value2;
@@ -483,7 +492,7 @@ var TextFieldElement2 = ({
483
492
  ...props
484
493
  }) => {
485
494
  if (gridProps) {
486
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Grid2, { ...gridProps, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Component4, { ...props }) });
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 }) });
487
496
  }
488
497
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Component4, { ...props });
489
498
  };
@@ -498,7 +507,7 @@ var TextFieldElement_default = TextFieldElement2;
498
507
 
499
508
 
500
509
 
501
- var _internals = require('@mui/x-date-pickers/internals');
510
+
502
511
 
503
512
  var Component5 = function TimePickerElement(props) {
504
513
  const {
@@ -528,8 +537,8 @@ var Component5 = function TimePickerElement(props) {
528
537
  value: field.value,
529
538
  onChange: field.onChange,
530
539
  transform: {
531
- input: typeof _optionalChain([transform, 'optionalAccess', _17 => _17.input]) === "function" ? transform.input : (newValue) => _chunkFYN7F5WJjs.readValueAsDate.call(void 0, adapter, newValue),
532
- output: typeof _optionalChain([transform, 'optionalAccess', _18 => _18.output]) === "function" ? transform.output : (newValue) => newValue
540
+ input: typeof _optionalChain([transform, 'optionalAccess', _18 => _18.input]) === "function" ? transform.input : (newValue) => _chunkFYN7F5WJjs.readValueAsDate.call(void 0, adapter, newValue),
541
+ output: typeof _optionalChain([transform, 'optionalAccess', _19 => _19.output]) === "function" ? transform.output : (newValue) => newValue
533
542
  }
534
543
  });
535
544
  const handleInputRef = _material.useForkRef.call(void 0, field.ref, inputRef);
@@ -559,10 +568,10 @@ var Component5 = function TimePickerElement(props) {
559
568
  required,
560
569
  fullWidth: true,
561
570
  error: !!error,
562
- helperText: error ? error.message : _optionalChain([inputProps, 'optionalAccess', _19 => _19.helperText]) || rest.helperText,
571
+ helperText: error ? error.message : _optionalChain([inputProps, 'optionalAccess', _20 => _20.helperText]) || rest.helperText,
563
572
  inputProps: {
564
573
  readOnly: textReadOnly,
565
- ..._optionalChain([inputProps, 'optionalAccess', _20 => _20.inputProps])
574
+ ..._optionalChain([inputProps, 'optionalAccess', _21 => _21.inputProps])
566
575
  }
567
576
  }
568
577
  }
@@ -574,7 +583,7 @@ var TimePickerElement2 = ({
574
583
  ...props
575
584
  }) => {
576
585
  if (gridProps) {
577
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Grid2, { ...gridProps, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Component5, { ...props }) });
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 }) });
578
587
  }
579
588
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Component5, { ...props });
580
589
  };
@@ -653,7 +662,7 @@ var Component6 = function AsyncSelectElement(props) {
653
662
  fetchData(payload, (results) => {
654
663
  if (active) {
655
664
  if (!!results && results.length > 0) {
656
- fillOptions(_optionalChain([results, 'optionalAccess', _21 => _21.filter, 'call', _22 => _22((c) => c.Value == initialValue)]));
665
+ fillOptions(_optionalChain([results, 'optionalAccess', _22 => _22.filter, 'call', _23 => _23((c) => c.Value == initialValue)]));
657
666
  setSelectedOption(results[0]);
658
667
  field.onChange(results[0].Value);
659
668
  fieldValue.current = results[0].Value;
@@ -785,7 +794,7 @@ var AsyncSelectElement2 = ({
785
794
  ...props
786
795
  }) => {
787
796
  if (gridProps) {
788
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Grid2, { ...gridProps, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Component6, { ...props }) });
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 }) });
789
798
  }
790
799
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Component6, { ...props });
791
800
  };
@@ -993,7 +1002,13 @@ var AsyncSelectMultiElement2 = ({
993
1002
  ...props
994
1003
  }) => {
995
1004
  if (gridProps) {
996
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Grid2, { ...gridProps, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Component7, { ...props }) });
1005
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1006
+ _material.Grid2,
1007
+ {
1008
+ ...{ size: { xs: 12, sm: 12, md: 12, lg: 12, xl: 12 }, ...gridProps },
1009
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Component7, { ...props })
1010
+ }
1011
+ );
997
1012
  }
998
1013
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Component7, { ...props });
999
1014
  };
@@ -1007,6 +1022,10 @@ var AsyncMultiSelect_default = AsyncSelectMultiElement2;
1007
1022
 
1008
1023
 
1009
1024
 
1025
+
1026
+
1027
+
1028
+
1010
1029
  var Component8 = function SelectElement(props) {
1011
1030
  const {
1012
1031
  name,
@@ -1050,7 +1069,7 @@ var Component8 = function SelectElement(props) {
1050
1069
  const handleChange = (event, newValue, reason) => {
1051
1070
  const option = newValue;
1052
1071
  field.onChange(option ? getOptionValue(option) : null);
1053
- _optionalChain([onChange, 'optionalCall', _23 => _23(event, newValue, reason)]);
1072
+ _optionalChain([onChange, 'optionalCall', _24 => _24(event, newValue, reason)]);
1054
1073
  };
1055
1074
  _react.useEffect.call(void 0, () => {
1056
1075
  if (!isEdit && options.length === 1 && (field.value == null || field.value == void 0 || field.value === "")) {
@@ -1106,7 +1125,13 @@ var SelectElement2 = ({
1106
1125
  ...props
1107
1126
  }) => {
1108
1127
  if (gridProps) {
1109
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Grid2, { ...gridProps, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Component8, { ...props }) });
1128
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1129
+ _material.Grid2,
1130
+ {
1131
+ ...{ size: { xs: 12, sm: 12, md: 12, lg: 12, xl: 12 }, ...gridProps },
1132
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Component8, { ...props })
1133
+ }
1134
+ );
1110
1135
  }
1111
1136
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Component8, { ...props });
1112
1137
  };
@@ -1222,7 +1247,7 @@ var SelectMultiElement2 = ({
1222
1247
  ...props
1223
1248
  }) => {
1224
1249
  if (gridProps) {
1225
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Grid2, { ...gridProps, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Component9, { ...props }) });
1250
+ 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, Component9, { ...props }) });
1226
1251
  }
1227
1252
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Component9, { ...props });
1228
1253
  };
@@ -1293,7 +1318,7 @@ var Component10 = function SelectCascadeElement(props) {
1293
1318
  const parentValueRef = _react.useRef.call(void 0, _nullishCoalesce(dependentField.value, () => ( null)));
1294
1319
  const [hasAutoSelected, setHasAutoSelected] = _react.useState.call(void 0, false);
1295
1320
  _react.useEffect.call(void 0, () => {
1296
- if (!!dependentField.value && _optionalChain([parentValueRef, 'optionalAccess', _24 => _24.current]) !== dependentField.value || dependentField.value === null) {
1321
+ if (!!dependentField.value && _optionalChain([parentValueRef, 'optionalAccess', _25 => _25.current]) !== dependentField.value || dependentField.value === null) {
1297
1322
  field.onChange(null);
1298
1323
  setHasAutoSelected(false);
1299
1324
  }
@@ -1372,11 +1397,11 @@ var Component10 = function SelectCascadeElement(props) {
1372
1397
  );
1373
1398
  };
1374
1399
  var SelectCascadeElement2 = ({
1375
- gridProps,
1400
+ gridProps = { size: { xs: 12, sm: 12, md: 12, lg: 12, xl: 12 } },
1376
1401
  ...props
1377
1402
  }) => {
1378
1403
  if (gridProps) {
1379
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Grid2, { ...gridProps, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Component10, { ...props }) });
1404
+ 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, Component10, { ...props }) });
1380
1405
  }
1381
1406
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Component10, { ...props });
1382
1407
  };
@@ -1443,7 +1468,7 @@ var CheckboxElement2 = ({
1443
1468
  ...props
1444
1469
  }) => {
1445
1470
  if (gridProps) {
1446
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Grid2, { ...gridProps, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Component11, { ...props }) });
1471
+ 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, Component11, { ...props }) });
1447
1472
  }
1448
1473
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Component11, { ...props });
1449
1474
  };
@@ -1475,7 +1500,7 @@ var Component12 = function CheckboxGroup(props) {
1475
1500
  disabled: rest.disabled
1476
1501
  });
1477
1502
  const [selectedValues, setSelectedValues] = _react.useState.call(void 0,
1478
- options.filter((c) => _optionalChain([field, 'access', _25 => _25.value, 'optionalAccess', _26 => _26.includes, 'call', _27 => _27(c.Value)])).map((c) => c.Value) || []
1503
+ options.filter((c) => _optionalChain([field, 'access', _26 => _26.value, 'optionalAccess', _27 => _27.includes, 'call', _28 => _28(c.Value)])).map((c) => c.Value) || []
1479
1504
  );
1480
1505
  _react.useEffect.call(void 0, () => {
1481
1506
  field.onChange(selectedValues ? [...selectedValues] : []);
@@ -1521,7 +1546,7 @@ var CheckboxGroup2 = ({
1521
1546
  ...props
1522
1547
  }) => {
1523
1548
  if (gridProps) {
1524
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Grid2, { ...gridProps, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Component12, { ...props }) });
1549
+ 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, Component12, { ...props }) });
1525
1550
  }
1526
1551
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Component12, { ...props });
1527
1552
  };
package/dist/index.d.mts CHANGED
@@ -5,7 +5,7 @@ export { api, api2, flattenObjectKeys, getTimezone, handleServerErrors, property
5
5
  export { Field } from './wrappers/index.mjs';
6
6
  export { Field2 } from './wrappers2/index.mjs';
7
7
  export { a as AsyncSelectMultiPayload, A as AsyncSelectPayload } from './AsyncSelectPayload-Cz4bgak0.mjs';
8
- export { A as AsyncMultiSelectPayload, O as OptionItem, a as OptionItem2 } from './OptionItem-BSg3KSRJ.mjs';
8
+ export { A as AsyncMultiSelectPayload, O as OptionItem, a as OptionItem2 } from './OptionItem-8fG5uP-B.mjs';
9
9
  import 'react/jsx-runtime';
10
10
  import '@mui/material';
11
11
  import 'react';
package/dist/index.d.ts CHANGED
@@ -5,7 +5,7 @@ export { api, api2, flattenObjectKeys, getTimezone, handleServerErrors, property
5
5
  export { Field } from './wrappers/index.js';
6
6
  export { Field2 } from './wrappers2/index.js';
7
7
  export { a as AsyncSelectMultiPayload, A as AsyncSelectPayload } from './AsyncSelectPayload-Cz4bgak0.js';
8
- export { A as AsyncMultiSelectPayload, O as OptionItem, a as OptionItem2 } from './OptionItem-BSg3KSRJ.js';
8
+ export { A as AsyncMultiSelectPayload, O as OptionItem, a as OptionItem2 } from './OptionItem-8fG5uP-B.js';
9
9
  import 'react/jsx-runtime';
10
10
  import '@mui/material';
11
11
  import 'react';
package/dist/index.js CHANGED
@@ -11,10 +11,9 @@
11
11
 
12
12
  var _chunkJKUOV3MNjs = require('./chunk-JKUOV3MN.js');
13
13
  require('./chunk-7M2VOCYN.js');
14
- require('./chunk-6BGQA4BQ.js');
15
14
 
16
15
 
17
- var _chunk4XSPG2IFjs = require('./chunk-4XSPG2IF.js');
16
+ var _chunkBBDVHJQ3js = require('./chunk-BBDVHJQ3.js');
18
17
 
19
18
 
20
19
  var _chunkIZSKZD5Mjs = require('./chunk-IZSKZD5M.js');
@@ -32,6 +31,7 @@ var _chunk6JZ35VQJjs = require('./chunk-6JZ35VQJ.js');
32
31
 
33
32
 
34
33
  var _chunkFYN7F5WJjs = require('./chunk-FYN7F5WJ.js');
34
+ require('./chunk-6BGQA4BQ.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 = _chunk4XSPG2IFjs.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 = _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;
package/dist/index.mjs CHANGED
@@ -11,10 +11,9 @@ import {
11
11
  SimpleToolbar_default
12
12
  } from "./chunk-FSU3H777.mjs";
13
13
  import "./chunk-2JFL7TS5.mjs";
14
- import "./chunk-EVPUCTZA.mjs";
15
14
  import {
16
15
  Field_default
17
- } from "./chunk-H7MQZPJ6.mjs";
16
+ } from "./chunk-3LU2Q6FI.mjs";
18
17
  import {
19
18
  Field_default as Field_default2
20
19
  } from "./chunk-MM6OQZAY.mjs";
@@ -32,6 +31,7 @@ import {
32
31
  removeLeadingTrailingSlashes,
33
32
  schemaTools
34
33
  } from "./chunk-GAYZ4QSD.mjs";
34
+ import "./chunk-EVPUCTZA.mjs";
35
35
  export {
36
36
  AuthorizedView_default as AuthorizedView,
37
37
  CancelButton_default as CancelButton,
@@ -1,6 +1,6 @@
1
1
  import { GridSortModel } from '@mui/x-data-grid';
2
2
  export { a as AsyncSelectMultiPayload, A as AsyncSelectPayload } from '../AsyncSelectPayload-Cz4bgak0.mjs';
3
- export { A as AsyncMultiSelectPayload, O as OptionItem, a as OptionItem2 } from '../OptionItem-BSg3KSRJ.mjs';
3
+ export { A as AsyncMultiSelectPayload, O as OptionItem, a as OptionItem2 } from '../OptionItem-8fG5uP-B.mjs';
4
4
 
5
5
  type ValidationErrors = {
6
6
  [field: string]: string | string[] | boolean | {
@@ -1,6 +1,6 @@
1
1
  import { GridSortModel } from '@mui/x-data-grid';
2
2
  export { a as AsyncSelectMultiPayload, A as AsyncSelectPayload } from '../AsyncSelectPayload-Cz4bgak0.js';
3
- export { A as AsyncMultiSelectPayload, O as OptionItem, a as OptionItem2 } from '../OptionItem-BSg3KSRJ.js';
3
+ export { A as AsyncMultiSelectPayload, O as OptionItem, a as OptionItem2 } from '../OptionItem-8fG5uP-B.js';
4
4
 
5
5
  type ValidationErrors = {
6
6
  [field: string]: string | string[] | boolean | {
@@ -5,7 +5,7 @@ import { FieldValues, UseFormSetError } from 'react-hook-form';
5
5
  import { z } from 'zod';
6
6
  import '@mui/x-data-grid';
7
7
  import '../AsyncSelectPayload-Cz4bgak0.mjs';
8
- import '../OptionItem-BSg3KSRJ.mjs';
8
+ import '../OptionItem-8fG5uP-B.mjs';
9
9
 
10
10
  declare class api {
11
11
  static filter<T, TFilter>(url: string, postModel: PostModel<TFilter>): Promise<ApiResponse<ListResponse<T>>>;
@@ -5,7 +5,7 @@ import { FieldValues, UseFormSetError } from 'react-hook-form';
5
5
  import { z } from 'zod';
6
6
  import '@mui/x-data-grid';
7
7
  import '../AsyncSelectPayload-Cz4bgak0.js';
8
- import '../OptionItem-BSg3KSRJ.js';
8
+ import '../OptionItem-8fG5uP-B.js';
9
9
 
10
10
  declare class api {
11
11
  static filter<T, TFilter>(url: string, postModel: PostModel<TFilter>): Promise<ApiResponse<ListResponse<T>>>;
@@ -64,8 +64,8 @@ type SelectMultiElementProps<TFieldValues extends FieldValues = FieldValues, TNa
64
64
  valueKey?: keyof TOption;
65
65
  };
66
66
 
67
- type SelectElementProps<TOption, TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, Multiple extends boolean | undefined = false, DisableClearable extends boolean | undefined = false, FreeSolo extends boolean | undefined = false, ChipComponent extends React.ElementType = ChipTypeMap['defaultComponent']> = Omit<AutocompleteProps<TOption, Multiple, DisableClearable, FreeSolo, ChipComponent>, 'name' | 'renderInput' | 'isOptionEqualToValue' | 'getOptionLabel' | 'disabled'> & {
68
- rules?: UseControllerProps<TFieldValues, TName>['rules'];
67
+ type SelectElementProps<TOption, TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, Multiple extends boolean | undefined = false, DisableClearable extends boolean | undefined = false, FreeSolo extends boolean | undefined = false, ChipComponent extends React.ElementType = ChipTypeMap["defaultComponent"]> = Omit<AutocompleteProps<TOption, Multiple, DisableClearable, FreeSolo, ChipComponent>, "name" | "renderInput" | "isOptionEqualToValue" | "getOptionLabel" | "disabled"> & {
68
+ rules?: UseControllerProps<TFieldValues, TName>["rules"];
69
69
  name: TName;
70
70
  control?: Control<TFieldValues>;
71
71
  gridProps?: Grid2Props;
@@ -77,7 +77,7 @@ type SelectElementProps<TOption, TFieldValues extends FieldValues = FieldValues,
77
77
  disabled?: boolean;
78
78
  labelKey?: string;
79
79
  valueKey?: keyof TOption;
80
- textFieldProps?: Omit<TextFieldProps, 'name'>;
80
+ textFieldProps?: Omit<TextFieldProps, "name">;
81
81
  };
82
82
 
83
83
  type TimePickerElementProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, TValue extends PickerValidDate = PickerValidDate, TEnableAccessibleFieldDOMStructure extends boolean = false> = Omit<TimePickerProps<TValue>, "value" | "renderInput"> & {
@@ -139,20 +139,20 @@ type DatePickerElementProps<TFieldValues extends FieldValues = FieldValues, TNam
139
139
  required?: boolean;
140
140
  isDate?: boolean;
141
141
  parseError?: (error: FieldError | DateValidationError) => ReactNode;
142
- rules?: UseControllerProps<TFieldValues, TName>['rules'];
142
+ rules?: UseControllerProps<TFieldValues, TName>["rules"];
143
143
  control?: Control<TFieldValues>;
144
144
  inputProps?: TextFieldProps;
145
- helperText?: TextFieldProps['helperText'];
145
+ helperText?: TextFieldProps["helperText"];
146
146
  label?: ReactNode;
147
147
  placeholder?: string;
148
148
  textReadOnly?: boolean;
149
- slotProps?: Omit<DatePickerSlotProps<TValue, TEnableAccessibleFieldDOMStructure>, 'textField'>;
149
+ slotProps?: Omit<DatePickerSlotProps<TValue, TEnableAccessibleFieldDOMStructure>, "textField">;
150
150
  transform?: {
151
151
  input?: (value: PathValue<TFieldValues, TName>) => TValue | null;
152
152
  output?: (value: TValue | null, context: PickerChangeHandlerContext<DateValidationError>) => PathValue<TFieldValues, TName>;
153
153
  };
154
154
  gridProps?: Grid2Props;
155
- datePickerProps?: Omit<DatePickerProps<TValue, TEnableAccessibleFieldDOMStructure>, 'value' | 'slotProps'>;
155
+ datePickerProps?: Omit<DatePickerProps<TValue, TEnableAccessibleFieldDOMStructure>, "value" | "slotProps">;
156
156
  variant?: TextFieldVariants;
157
157
  sx?: SxProps;
158
158
  };
@@ -64,8 +64,8 @@ type SelectMultiElementProps<TFieldValues extends FieldValues = FieldValues, TNa
64
64
  valueKey?: keyof TOption;
65
65
  };
66
66
 
67
- type SelectElementProps<TOption, TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, Multiple extends boolean | undefined = false, DisableClearable extends boolean | undefined = false, FreeSolo extends boolean | undefined = false, ChipComponent extends React.ElementType = ChipTypeMap['defaultComponent']> = Omit<AutocompleteProps<TOption, Multiple, DisableClearable, FreeSolo, ChipComponent>, 'name' | 'renderInput' | 'isOptionEqualToValue' | 'getOptionLabel' | 'disabled'> & {
68
- rules?: UseControllerProps<TFieldValues, TName>['rules'];
67
+ type SelectElementProps<TOption, TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, Multiple extends boolean | undefined = false, DisableClearable extends boolean | undefined = false, FreeSolo extends boolean | undefined = false, ChipComponent extends React.ElementType = ChipTypeMap["defaultComponent"]> = Omit<AutocompleteProps<TOption, Multiple, DisableClearable, FreeSolo, ChipComponent>, "name" | "renderInput" | "isOptionEqualToValue" | "getOptionLabel" | "disabled"> & {
68
+ rules?: UseControllerProps<TFieldValues, TName>["rules"];
69
69
  name: TName;
70
70
  control?: Control<TFieldValues>;
71
71
  gridProps?: Grid2Props;
@@ -77,7 +77,7 @@ type SelectElementProps<TOption, TFieldValues extends FieldValues = FieldValues,
77
77
  disabled?: boolean;
78
78
  labelKey?: string;
79
79
  valueKey?: keyof TOption;
80
- textFieldProps?: Omit<TextFieldProps, 'name'>;
80
+ textFieldProps?: Omit<TextFieldProps, "name">;
81
81
  };
82
82
 
83
83
  type TimePickerElementProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, TValue extends PickerValidDate = PickerValidDate, TEnableAccessibleFieldDOMStructure extends boolean = false> = Omit<TimePickerProps<TValue>, "value" | "renderInput"> & {
@@ -139,20 +139,20 @@ type DatePickerElementProps<TFieldValues extends FieldValues = FieldValues, TNam
139
139
  required?: boolean;
140
140
  isDate?: boolean;
141
141
  parseError?: (error: FieldError | DateValidationError) => ReactNode;
142
- rules?: UseControllerProps<TFieldValues, TName>['rules'];
142
+ rules?: UseControllerProps<TFieldValues, TName>["rules"];
143
143
  control?: Control<TFieldValues>;
144
144
  inputProps?: TextFieldProps;
145
- helperText?: TextFieldProps['helperText'];
145
+ helperText?: TextFieldProps["helperText"];
146
146
  label?: ReactNode;
147
147
  placeholder?: string;
148
148
  textReadOnly?: boolean;
149
- slotProps?: Omit<DatePickerSlotProps<TValue, TEnableAccessibleFieldDOMStructure>, 'textField'>;
149
+ slotProps?: Omit<DatePickerSlotProps<TValue, TEnableAccessibleFieldDOMStructure>, "textField">;
150
150
  transform?: {
151
151
  input?: (value: PathValue<TFieldValues, TName>) => TValue | null;
152
152
  output?: (value: TValue | null, context: PickerChangeHandlerContext<DateValidationError>) => PathValue<TFieldValues, TName>;
153
153
  };
154
154
  gridProps?: Grid2Props;
155
- datePickerProps?: Omit<DatePickerProps<TValue, TEnableAccessibleFieldDOMStructure>, 'value' | 'slotProps'>;
155
+ datePickerProps?: Omit<DatePickerProps<TValue, TEnableAccessibleFieldDOMStructure>, "value" | "slotProps">;
156
156
  variant?: TextFieldVariants;
157
157
  sx?: SxProps;
158
158
  };
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk4XSPG2IFjs = require('../chunk-4XSPG2IF.js');
3
+ var _chunkBBDVHJQ3js = require('../chunk-BBDVHJQ3.js');
4
4
  require('../chunk-6JZ35VQJ.js');
5
5
  require('../chunk-FYN7F5WJ.js');
6
6
 
7
7
 
8
- exports.Field = _chunk4XSPG2IFjs.Field_default;
8
+ exports.Field = _chunkBBDVHJQ3js.Field_default;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Field_default
3
- } from "../chunk-H7MQZPJ6.mjs";
3
+ } from "../chunk-3LU2Q6FI.mjs";
4
4
  import "../chunk-GFSTK7KN.mjs";
5
5
  import "../chunk-GAYZ4QSD.mjs";
6
6
  export {
@@ -1,7 +1,7 @@
1
1
  import { CheckboxProps, FormControlLabelProps, Grid2Props, ChipTypeMap, AutocompleteProps, TextFieldProps, IconButtonProps, FormLabelProps, RadioProps, TextField } from '@mui/material';
2
2
  import * as react_hook_form from 'react-hook-form';
3
3
  import { FieldValues, FieldPath, Control, UseControllerProps, FieldError, PathValue } from 'react-hook-form';
4
- import { A as AsyncMultiSelectPayload, O as OptionItem } from '../OptionItem-BSg3KSRJ.mjs';
4
+ import { A as AsyncMultiSelectPayload, O as OptionItem } from '../OptionItem-8fG5uP-B.mjs';
5
5
  import { A as AsyncSelectPayload } from '../AsyncSelectPayload-Cz4bgak0.mjs';
6
6
  import * as react from 'react';
7
7
  import { ReactNode, ChangeEvent } from 'react';
@@ -1,7 +1,7 @@
1
1
  import { CheckboxProps, FormControlLabelProps, Grid2Props, ChipTypeMap, AutocompleteProps, TextFieldProps, IconButtonProps, FormLabelProps, RadioProps, TextField } from '@mui/material';
2
2
  import * as react_hook_form from 'react-hook-form';
3
3
  import { FieldValues, FieldPath, Control, UseControllerProps, FieldError, PathValue } from 'react-hook-form';
4
- import { A as AsyncMultiSelectPayload, O as OptionItem } from '../OptionItem-BSg3KSRJ.js';
4
+ import { A as AsyncMultiSelectPayload, O as OptionItem } from '../OptionItem-8fG5uP-B.js';
5
5
  import { A as AsyncSelectPayload } from '../AsyncSelectPayload-Cz4bgak0.js';
6
6
  import * as react from 'react';
7
7
  import { ReactNode, ChangeEvent } from 'react';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gnwebsoft/ui",
3
- "version": "2.18.41",
3
+ "version": "2.18.43",
4
4
  "description": "A set of reusable wrappers for MUI v6",
5
5
  "author": "GNWebsoft Private Limited",
6
6
  "license": "",