@gnwebsoft/ui 2.18.28 → 2.18.30
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-P3IAT24P.js → chunk-AZOXVTXB.js} +48 -22
- package/dist/{chunk-IXBVE2GN.js → chunk-CKJEER4L.js} +8 -14
- package/dist/{chunk-QA44AL2X.js → chunk-LNMCA2OM.js} +9 -2
- package/dist/{chunk-A6OSZDDG.mjs → chunk-LWAM2GIC.mjs} +8 -14
- package/dist/{chunk-D2GQZWHC.mjs → chunk-TXO5AC4B.mjs} +49 -23
- package/dist/{chunk-N3AI2OIO.mjs → chunk-VNMKBB4P.mjs} +9 -2
- package/dist/components/index.d.mts +7 -3
- package/dist/components/index.d.ts +7 -3
- package/dist/components/index.js +2 -2
- package/dist/components/index.mjs +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -4
- package/dist/index.mjs +5 -5
- package/dist/wrappers/index.d.mts +15 -1
- package/dist/wrappers/index.d.ts +15 -1
- package/dist/wrappers/index.js +2 -2
- package/dist/wrappers/index.mjs +1 -1
- package/dist/wrappers2/index.d.mts +4 -4
- package/dist/wrappers2/index.d.ts +4 -4
- package/dist/wrappers2/index.js +2 -2
- package/dist/wrappers2/index.mjs +1 -1
- package/package.json +1 -1
|
@@ -9,6 +9,9 @@ var _chunkDKBPCLECjs = require('./chunk-DKBPCLEC.js');
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
var _reacthookform = require('react-hook-form');
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
12
15
|
var _material = require('@mui/material');
|
|
13
16
|
|
|
14
17
|
|
|
@@ -30,6 +33,8 @@ var Component = function DatePickerElement(props) {
|
|
|
30
33
|
slotProps,
|
|
31
34
|
transform,
|
|
32
35
|
datePickerProps = {},
|
|
36
|
+
variant,
|
|
37
|
+
sx,
|
|
33
38
|
...rest
|
|
34
39
|
} = props;
|
|
35
40
|
const adapter = _internals.useLocalizationContext.call(void 0, );
|
|
@@ -74,6 +79,7 @@ var Component = function DatePickerElement(props) {
|
|
|
74
79
|
datePickerProps.onChange(newValue, context);
|
|
75
80
|
}
|
|
76
81
|
},
|
|
82
|
+
sx,
|
|
77
83
|
slotProps: {
|
|
78
84
|
...slotProps,
|
|
79
85
|
textField: {
|
|
@@ -373,6 +379,8 @@ var Component4 = function TextFieldElement(props) {
|
|
|
373
379
|
label,
|
|
374
380
|
placeholder,
|
|
375
381
|
textFieldProps = {},
|
|
382
|
+
variant,
|
|
383
|
+
sx,
|
|
376
384
|
...rest
|
|
377
385
|
} = props;
|
|
378
386
|
const {
|
|
@@ -443,12 +451,14 @@ var Component4 = function TextFieldElement(props) {
|
|
|
443
451
|
error: !!error,
|
|
444
452
|
helperText: error ? error.message : helperText,
|
|
445
453
|
inputRef: handleInputRef,
|
|
454
|
+
variant: variant ? variant : "outlined",
|
|
446
455
|
size: "small",
|
|
447
456
|
sx: {
|
|
457
|
+
...sx,
|
|
458
|
+
"& .MuiInputLabel-asterisk": { color: "red" },
|
|
448
459
|
"& .MuiInputBase-input": {
|
|
449
460
|
cursor: disabled ? "not-allowed" : "default"
|
|
450
|
-
}
|
|
451
|
-
bgcolor: disabled ? "#EEF1F5" : "transparent"
|
|
461
|
+
}
|
|
452
462
|
}
|
|
453
463
|
}
|
|
454
464
|
);
|
|
@@ -583,6 +593,8 @@ var Component6 = function AsyncSelectElement(props) {
|
|
|
583
593
|
initialValue,
|
|
584
594
|
label,
|
|
585
595
|
queryFn,
|
|
596
|
+
variant,
|
|
597
|
+
sx,
|
|
586
598
|
...rest
|
|
587
599
|
} = props;
|
|
588
600
|
const {
|
|
@@ -738,11 +750,12 @@ var Component6 = function AsyncSelectElement(props) {
|
|
|
738
750
|
] })
|
|
739
751
|
}
|
|
740
752
|
},
|
|
753
|
+
variant: variant ? variant : "outlined",
|
|
741
754
|
sx: {
|
|
755
|
+
...sx,
|
|
742
756
|
"& .MuiInputBase-input": {
|
|
743
757
|
cursor: disabled ? "not-allowed" : "default"
|
|
744
|
-
}
|
|
745
|
-
bgcolor: disabled ? "#EEF1F5" : "transparent"
|
|
758
|
+
}
|
|
746
759
|
}
|
|
747
760
|
}
|
|
748
761
|
),
|
|
@@ -797,6 +810,8 @@ var Component7 = function AsyncSelectMultiElement(props) {
|
|
|
797
810
|
initialValues,
|
|
798
811
|
label,
|
|
799
812
|
queryFn,
|
|
813
|
+
variant,
|
|
814
|
+
sx,
|
|
800
815
|
...rest
|
|
801
816
|
} = props;
|
|
802
817
|
const {
|
|
@@ -928,11 +943,12 @@ var Component7 = function AsyncSelectMultiElement(props) {
|
|
|
928
943
|
] })
|
|
929
944
|
}
|
|
930
945
|
},
|
|
946
|
+
variant: variant ? variant : "outlined",
|
|
931
947
|
sx: {
|
|
948
|
+
...sx,
|
|
932
949
|
"& .MuiInputBase-input": {
|
|
933
950
|
cursor: disabled ? "not-allowed" : "default"
|
|
934
|
-
}
|
|
935
|
-
bgcolor: disabled ? "#EEF1F5" : "transparent"
|
|
951
|
+
}
|
|
936
952
|
}
|
|
937
953
|
}
|
|
938
954
|
),
|
|
@@ -989,6 +1005,8 @@ var Component8 = function SelectElement(props) {
|
|
|
989
1005
|
loading = false,
|
|
990
1006
|
placeholder,
|
|
991
1007
|
label,
|
|
1008
|
+
variant,
|
|
1009
|
+
sx,
|
|
992
1010
|
...rest
|
|
993
1011
|
} = props;
|
|
994
1012
|
const {
|
|
@@ -996,22 +1014,24 @@ var Component8 = function SelectElement(props) {
|
|
|
996
1014
|
fieldState: { error }
|
|
997
1015
|
} = _reacthookform.useController.call(void 0, {
|
|
998
1016
|
name,
|
|
999
|
-
control
|
|
1000
|
-
disabled
|
|
1017
|
+
control
|
|
1001
1018
|
});
|
|
1019
|
+
if (options.length === 1 && !field.value) {
|
|
1020
|
+
field.onChange(options[0].Value);
|
|
1021
|
+
}
|
|
1002
1022
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1003
1023
|
_material.Autocomplete,
|
|
1004
1024
|
{
|
|
1005
1025
|
...rest,
|
|
1006
|
-
value: field.value ? _nullishCoalesce(options.find((option) => {
|
|
1026
|
+
value: field.value !== null ? _nullishCoalesce(options.find((option) => {
|
|
1007
1027
|
return field.value === option.Value;
|
|
1008
|
-
}), () => ( null)) : null,
|
|
1028
|
+
}), () => ( null)) : options.length === 1 ? options[0] : null,
|
|
1009
1029
|
loading,
|
|
1010
1030
|
options,
|
|
1011
1031
|
getOptionLabel: (c) => c.Label,
|
|
1012
1032
|
isOptionEqualToValue: (option, Value) => option.Value === Value.Value,
|
|
1013
1033
|
ref: field.ref,
|
|
1014
|
-
disabled
|
|
1034
|
+
disabled,
|
|
1015
1035
|
onChange: (event, newValue, reason) => {
|
|
1016
1036
|
field.onChange(newValue ? newValue.Value : null);
|
|
1017
1037
|
if (onChange && typeof onChange === "function") {
|
|
@@ -1034,12 +1054,12 @@ var Component8 = function SelectElement(props) {
|
|
|
1034
1054
|
helperText: error ? error.message : "",
|
|
1035
1055
|
placeholder,
|
|
1036
1056
|
label,
|
|
1037
|
-
variant: "outlined",
|
|
1057
|
+
variant: variant ? variant : "outlined",
|
|
1038
1058
|
sx: {
|
|
1059
|
+
...sx,
|
|
1039
1060
|
"& .MuiInputBase-input": {
|
|
1040
1061
|
cursor: disabled ? "not-allowed" : "default"
|
|
1041
|
-
}
|
|
1042
|
-
bgcolor: disabled ? "#EEF1F5" : "transparent"
|
|
1062
|
+
}
|
|
1043
1063
|
}
|
|
1044
1064
|
}
|
|
1045
1065
|
)
|
|
@@ -1080,6 +1100,8 @@ var Component9 = function SelectMultiElement(props) {
|
|
|
1080
1100
|
loading = false,
|
|
1081
1101
|
placeholder,
|
|
1082
1102
|
label,
|
|
1103
|
+
variant,
|
|
1104
|
+
sx,
|
|
1083
1105
|
...rest
|
|
1084
1106
|
} = props;
|
|
1085
1107
|
const {
|
|
@@ -1135,6 +1157,10 @@ var Component9 = function SelectMultiElement(props) {
|
|
|
1135
1157
|
params.InputProps.endAdornment
|
|
1136
1158
|
] })
|
|
1137
1159
|
}
|
|
1160
|
+
},
|
|
1161
|
+
variant: variant ? variant : "outlined",
|
|
1162
|
+
sx: {
|
|
1163
|
+
...sx
|
|
1138
1164
|
}
|
|
1139
1165
|
}
|
|
1140
1166
|
),
|
|
@@ -1179,6 +1205,8 @@ var Component10 = function SelectCascadeElement(props) {
|
|
|
1179
1205
|
label,
|
|
1180
1206
|
dependsOn,
|
|
1181
1207
|
initialValue,
|
|
1208
|
+
variant,
|
|
1209
|
+
sx,
|
|
1182
1210
|
...rest
|
|
1183
1211
|
} = props;
|
|
1184
1212
|
const {
|
|
@@ -1186,13 +1214,11 @@ var Component10 = function SelectCascadeElement(props) {
|
|
|
1186
1214
|
fieldState: { error }
|
|
1187
1215
|
} = _reacthookform.useController.call(void 0, {
|
|
1188
1216
|
name,
|
|
1189
|
-
control
|
|
1190
|
-
disabled
|
|
1217
|
+
control
|
|
1191
1218
|
});
|
|
1192
1219
|
const { field: dependentField } = _reacthookform.useController.call(void 0, {
|
|
1193
1220
|
name: dependsOn,
|
|
1194
|
-
control
|
|
1195
|
-
disabled
|
|
1221
|
+
control
|
|
1196
1222
|
});
|
|
1197
1223
|
const parentValueRef = _react.useRef.call(void 0, _nullishCoalesce(dependentField.value, () => ( null)));
|
|
1198
1224
|
_react.useEffect.call(void 0, () => {
|
|
@@ -1218,7 +1244,7 @@ var Component10 = function SelectCascadeElement(props) {
|
|
|
1218
1244
|
getOptionLabel: (c) => c.Label,
|
|
1219
1245
|
isOptionEqualToValue: (option, value) => option.Value === value.Value,
|
|
1220
1246
|
ref: field.ref,
|
|
1221
|
-
disabled
|
|
1247
|
+
disabled,
|
|
1222
1248
|
onChange: (event, newValue, reason) => {
|
|
1223
1249
|
field.onChange(newValue ? newValue.Value : null);
|
|
1224
1250
|
if (onChange && typeof onChange === "function") {
|
|
@@ -1241,12 +1267,12 @@ var Component10 = function SelectCascadeElement(props) {
|
|
|
1241
1267
|
helperText: error ? error.message : "",
|
|
1242
1268
|
placeholder,
|
|
1243
1269
|
label,
|
|
1244
|
-
variant: "outlined",
|
|
1270
|
+
variant: variant ? variant : "outlined",
|
|
1245
1271
|
sx: {
|
|
1272
|
+
...sx,
|
|
1246
1273
|
"& .MuiInputBase-input": {
|
|
1247
1274
|
cursor: disabled ? "not-allowed" : "default"
|
|
1248
|
-
}
|
|
1249
|
-
bgcolor: disabled ? "#EEF1F5" : "transparent"
|
|
1275
|
+
}
|
|
1250
1276
|
}
|
|
1251
1277
|
}
|
|
1252
1278
|
)
|
|
@@ -77,8 +77,7 @@ var Component = function DatePickerElement(props) {
|
|
|
77
77
|
sx: {
|
|
78
78
|
"& .MuiInputBase-input": {
|
|
79
79
|
cursor: disabled ? "not-allowed" : "default"
|
|
80
|
-
}
|
|
81
|
-
bgcolor: disabled ? "#EEF1F5" : "transparent"
|
|
80
|
+
}
|
|
82
81
|
},
|
|
83
82
|
slotProps: {
|
|
84
83
|
...slotProps,
|
|
@@ -453,8 +452,7 @@ var Component4 = function TextFieldElement(props) {
|
|
|
453
452
|
sx: {
|
|
454
453
|
"& .MuiInputBase-input": {
|
|
455
454
|
cursor: disabled ? "not-allowed" : "default"
|
|
456
|
-
}
|
|
457
|
-
bgcolor: disabled ? "#EEF1F5" : "transparent"
|
|
455
|
+
}
|
|
458
456
|
}
|
|
459
457
|
}
|
|
460
458
|
);
|
|
@@ -702,7 +700,7 @@ var Component6 = function AsyncSelectElement(props) {
|
|
|
702
700
|
ref: selectRef,
|
|
703
701
|
fullWidth: true,
|
|
704
702
|
loading,
|
|
705
|
-
getOptionLabel: (option) => option.
|
|
703
|
+
getOptionLabel: (option) => option.label,
|
|
706
704
|
getOptionKey: (option) => option.value,
|
|
707
705
|
isOptionEqualToValue: (option, val) => option.value === val.value,
|
|
708
706
|
autoComplete: true,
|
|
@@ -735,14 +733,13 @@ var Component6 = function AsyncSelectElement(props) {
|
|
|
735
733
|
sx: {
|
|
736
734
|
"& .MuiInputBase-input": {
|
|
737
735
|
cursor: disabled ? "not-allowed" : "default"
|
|
738
|
-
}
|
|
739
|
-
bgcolor: disabled ? "#EEF1F5" : "transparent"
|
|
736
|
+
}
|
|
740
737
|
}
|
|
741
738
|
}
|
|
742
739
|
),
|
|
743
740
|
renderOption: (props2, option) => {
|
|
744
741
|
const { key, ...optionProps } = props2;
|
|
745
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { ...optionProps, children: option.
|
|
742
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { ...optionProps, children: option.label }, key);
|
|
746
743
|
}
|
|
747
744
|
}
|
|
748
745
|
);
|
|
@@ -926,8 +923,7 @@ var Component7 = function AsyncSelectMultiElement(props) {
|
|
|
926
923
|
sx: {
|
|
927
924
|
"& .MuiInputBase-input": {
|
|
928
925
|
cursor: disabled ? "not-allowed" : "default"
|
|
929
|
-
}
|
|
930
|
-
bgcolor: disabled ? "#EEF1F5" : "transparent"
|
|
926
|
+
}
|
|
931
927
|
}
|
|
932
928
|
}
|
|
933
929
|
),
|
|
@@ -1037,8 +1033,7 @@ var Component8 = function SelectElement(props) {
|
|
|
1037
1033
|
sx: {
|
|
1038
1034
|
"& .MuiInputBase-input": {
|
|
1039
1035
|
cursor: disabled ? "not-allowed" : "default"
|
|
1040
|
-
}
|
|
1041
|
-
bgcolor: disabled ? "#EEF1F5" : "transparent"
|
|
1036
|
+
}
|
|
1042
1037
|
}
|
|
1043
1038
|
}
|
|
1044
1039
|
)
|
|
@@ -1244,8 +1239,7 @@ var Component10 = function SelectCascadeElement(props) {
|
|
|
1244
1239
|
sx: {
|
|
1245
1240
|
"& .MuiInputBase-input": {
|
|
1246
1241
|
cursor: disabled ? "not-allowed" : "default"
|
|
1247
|
-
}
|
|
1248
|
-
bgcolor: disabled ? "#EEF1F5" : "transparent"
|
|
1242
|
+
}
|
|
1249
1243
|
}
|
|
1250
1244
|
}
|
|
1251
1245
|
)
|
|
@@ -103,11 +103,18 @@ var FilterWrapper_default = FilterWrapper;
|
|
|
103
103
|
|
|
104
104
|
|
|
105
105
|
|
|
106
|
-
var FormWrapper = ({
|
|
106
|
+
var FormWrapper = ({
|
|
107
|
+
children,
|
|
108
|
+
title,
|
|
109
|
+
editMode,
|
|
110
|
+
cardSx,
|
|
111
|
+
textSx
|
|
112
|
+
}) => {
|
|
107
113
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
108
114
|
_material.Card,
|
|
109
115
|
{
|
|
110
116
|
sx: {
|
|
117
|
+
...cardSx,
|
|
111
118
|
position: "relative",
|
|
112
119
|
borderRadius: "0px"
|
|
113
120
|
},
|
|
@@ -124,7 +131,7 @@ var FormWrapper = ({ children, title, editMode }) => {
|
|
|
124
131
|
alignSelf: "center"
|
|
125
132
|
}
|
|
126
133
|
},
|
|
127
|
-
title: _nullishCoalesce(title, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Typography, {
|
|
134
|
+
title: _nullishCoalesce(title, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Typography, { color: "primary", sx: textSx, children: editMode ? `Edit ${title}` : `Create ${title}` })))
|
|
128
135
|
}
|
|
129
136
|
),
|
|
130
137
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Divider, { sx: { mt: 0 } }),
|
|
@@ -77,8 +77,7 @@ var Component = function DatePickerElement(props) {
|
|
|
77
77
|
sx: {
|
|
78
78
|
"& .MuiInputBase-input": {
|
|
79
79
|
cursor: disabled ? "not-allowed" : "default"
|
|
80
|
-
}
|
|
81
|
-
bgcolor: disabled ? "#EEF1F5" : "transparent"
|
|
80
|
+
}
|
|
82
81
|
},
|
|
83
82
|
slotProps: {
|
|
84
83
|
...slotProps,
|
|
@@ -453,8 +452,7 @@ var Component4 = function TextFieldElement(props) {
|
|
|
453
452
|
sx: {
|
|
454
453
|
"& .MuiInputBase-input": {
|
|
455
454
|
cursor: disabled ? "not-allowed" : "default"
|
|
456
|
-
}
|
|
457
|
-
bgcolor: disabled ? "#EEF1F5" : "transparent"
|
|
455
|
+
}
|
|
458
456
|
}
|
|
459
457
|
}
|
|
460
458
|
);
|
|
@@ -702,7 +700,7 @@ var Component6 = function AsyncSelectElement(props) {
|
|
|
702
700
|
ref: selectRef,
|
|
703
701
|
fullWidth: true,
|
|
704
702
|
loading,
|
|
705
|
-
getOptionLabel: (option) => option.
|
|
703
|
+
getOptionLabel: (option) => option.label,
|
|
706
704
|
getOptionKey: (option) => option.value,
|
|
707
705
|
isOptionEqualToValue: (option, val) => option.value === val.value,
|
|
708
706
|
autoComplete: true,
|
|
@@ -735,14 +733,13 @@ var Component6 = function AsyncSelectElement(props) {
|
|
|
735
733
|
sx: {
|
|
736
734
|
"& .MuiInputBase-input": {
|
|
737
735
|
cursor: disabled ? "not-allowed" : "default"
|
|
738
|
-
}
|
|
739
|
-
bgcolor: disabled ? "#EEF1F5" : "transparent"
|
|
736
|
+
}
|
|
740
737
|
}
|
|
741
738
|
}
|
|
742
739
|
),
|
|
743
740
|
renderOption: (props2, option) => {
|
|
744
741
|
const { key, ...optionProps } = props2;
|
|
745
|
-
return /* @__PURE__ */ jsx6("li", { ...optionProps, children: option.
|
|
742
|
+
return /* @__PURE__ */ jsx6("li", { ...optionProps, children: option.label }, key);
|
|
746
743
|
}
|
|
747
744
|
}
|
|
748
745
|
);
|
|
@@ -926,8 +923,7 @@ var Component7 = function AsyncSelectMultiElement(props) {
|
|
|
926
923
|
sx: {
|
|
927
924
|
"& .MuiInputBase-input": {
|
|
928
925
|
cursor: disabled ? "not-allowed" : "default"
|
|
929
|
-
}
|
|
930
|
-
bgcolor: disabled ? "#EEF1F5" : "transparent"
|
|
926
|
+
}
|
|
931
927
|
}
|
|
932
928
|
}
|
|
933
929
|
),
|
|
@@ -1037,8 +1033,7 @@ var Component8 = function SelectElement(props) {
|
|
|
1037
1033
|
sx: {
|
|
1038
1034
|
"& .MuiInputBase-input": {
|
|
1039
1035
|
cursor: disabled ? "not-allowed" : "default"
|
|
1040
|
-
}
|
|
1041
|
-
bgcolor: disabled ? "#EEF1F5" : "transparent"
|
|
1036
|
+
}
|
|
1042
1037
|
}
|
|
1043
1038
|
}
|
|
1044
1039
|
)
|
|
@@ -1244,8 +1239,7 @@ var Component10 = function SelectCascadeElement(props) {
|
|
|
1244
1239
|
sx: {
|
|
1245
1240
|
"& .MuiInputBase-input": {
|
|
1246
1241
|
cursor: disabled ? "not-allowed" : "default"
|
|
1247
|
-
}
|
|
1248
|
-
bgcolor: disabled ? "#EEF1F5" : "transparent"
|
|
1242
|
+
}
|
|
1249
1243
|
}
|
|
1250
1244
|
}
|
|
1251
1245
|
)
|
|
@@ -9,7 +9,10 @@ import {
|
|
|
9
9
|
import {
|
|
10
10
|
useController
|
|
11
11
|
} from "react-hook-form";
|
|
12
|
-
import {
|
|
12
|
+
import {
|
|
13
|
+
Grid2,
|
|
14
|
+
useForkRef
|
|
15
|
+
} from "@mui/material";
|
|
13
16
|
import {
|
|
14
17
|
DatePicker
|
|
15
18
|
} from "@mui/x-date-pickers";
|
|
@@ -30,6 +33,8 @@ var Component = function DatePickerElement(props) {
|
|
|
30
33
|
slotProps,
|
|
31
34
|
transform,
|
|
32
35
|
datePickerProps = {},
|
|
36
|
+
variant,
|
|
37
|
+
sx,
|
|
33
38
|
...rest
|
|
34
39
|
} = props;
|
|
35
40
|
const adapter = useLocalizationContext();
|
|
@@ -74,6 +79,7 @@ var Component = function DatePickerElement(props) {
|
|
|
74
79
|
datePickerProps.onChange(newValue, context);
|
|
75
80
|
}
|
|
76
81
|
},
|
|
82
|
+
sx,
|
|
77
83
|
slotProps: {
|
|
78
84
|
...slotProps,
|
|
79
85
|
textField: {
|
|
@@ -373,6 +379,8 @@ var Component4 = function TextFieldElement(props) {
|
|
|
373
379
|
label,
|
|
374
380
|
placeholder,
|
|
375
381
|
textFieldProps = {},
|
|
382
|
+
variant,
|
|
383
|
+
sx,
|
|
376
384
|
...rest
|
|
377
385
|
} = props;
|
|
378
386
|
const {
|
|
@@ -443,12 +451,14 @@ var Component4 = function TextFieldElement(props) {
|
|
|
443
451
|
error: !!error,
|
|
444
452
|
helperText: error ? error.message : helperText,
|
|
445
453
|
inputRef: handleInputRef,
|
|
454
|
+
variant: variant ? variant : "outlined",
|
|
446
455
|
size: "small",
|
|
447
456
|
sx: {
|
|
457
|
+
...sx,
|
|
458
|
+
"& .MuiInputLabel-asterisk": { color: "red" },
|
|
448
459
|
"& .MuiInputBase-input": {
|
|
449
460
|
cursor: disabled ? "not-allowed" : "default"
|
|
450
|
-
}
|
|
451
|
-
bgcolor: disabled ? "#EEF1F5" : "transparent"
|
|
461
|
+
}
|
|
452
462
|
}
|
|
453
463
|
}
|
|
454
464
|
);
|
|
@@ -583,6 +593,8 @@ var Component6 = function AsyncSelectElement(props) {
|
|
|
583
593
|
initialValue,
|
|
584
594
|
label,
|
|
585
595
|
queryFn,
|
|
596
|
+
variant,
|
|
597
|
+
sx,
|
|
586
598
|
...rest
|
|
587
599
|
} = props;
|
|
588
600
|
const {
|
|
@@ -738,11 +750,12 @@ var Component6 = function AsyncSelectElement(props) {
|
|
|
738
750
|
] })
|
|
739
751
|
}
|
|
740
752
|
},
|
|
753
|
+
variant: variant ? variant : "outlined",
|
|
741
754
|
sx: {
|
|
755
|
+
...sx,
|
|
742
756
|
"& .MuiInputBase-input": {
|
|
743
757
|
cursor: disabled ? "not-allowed" : "default"
|
|
744
|
-
}
|
|
745
|
-
bgcolor: disabled ? "#EEF1F5" : "transparent"
|
|
758
|
+
}
|
|
746
759
|
}
|
|
747
760
|
}
|
|
748
761
|
),
|
|
@@ -797,6 +810,8 @@ var Component7 = function AsyncSelectMultiElement(props) {
|
|
|
797
810
|
initialValues,
|
|
798
811
|
label,
|
|
799
812
|
queryFn,
|
|
813
|
+
variant,
|
|
814
|
+
sx,
|
|
800
815
|
...rest
|
|
801
816
|
} = props;
|
|
802
817
|
const {
|
|
@@ -928,11 +943,12 @@ var Component7 = function AsyncSelectMultiElement(props) {
|
|
|
928
943
|
] })
|
|
929
944
|
}
|
|
930
945
|
},
|
|
946
|
+
variant: variant ? variant : "outlined",
|
|
931
947
|
sx: {
|
|
948
|
+
...sx,
|
|
932
949
|
"& .MuiInputBase-input": {
|
|
933
950
|
cursor: disabled ? "not-allowed" : "default"
|
|
934
|
-
}
|
|
935
|
-
bgcolor: disabled ? "#EEF1F5" : "transparent"
|
|
951
|
+
}
|
|
936
952
|
}
|
|
937
953
|
}
|
|
938
954
|
),
|
|
@@ -989,6 +1005,8 @@ var Component8 = function SelectElement(props) {
|
|
|
989
1005
|
loading = false,
|
|
990
1006
|
placeholder,
|
|
991
1007
|
label,
|
|
1008
|
+
variant,
|
|
1009
|
+
sx,
|
|
992
1010
|
...rest
|
|
993
1011
|
} = props;
|
|
994
1012
|
const {
|
|
@@ -996,22 +1014,24 @@ var Component8 = function SelectElement(props) {
|
|
|
996
1014
|
fieldState: { error }
|
|
997
1015
|
} = useController8({
|
|
998
1016
|
name,
|
|
999
|
-
control
|
|
1000
|
-
disabled
|
|
1017
|
+
control
|
|
1001
1018
|
});
|
|
1019
|
+
if (options.length === 1 && !field.value) {
|
|
1020
|
+
field.onChange(options[0].Value);
|
|
1021
|
+
}
|
|
1002
1022
|
return /* @__PURE__ */ jsx8(
|
|
1003
1023
|
Autocomplete3,
|
|
1004
1024
|
{
|
|
1005
1025
|
...rest,
|
|
1006
|
-
value: field.value ? options.find((option) => {
|
|
1026
|
+
value: field.value !== null ? options.find((option) => {
|
|
1007
1027
|
return field.value === option.Value;
|
|
1008
|
-
}) ?? null : null,
|
|
1028
|
+
}) ?? null : options.length === 1 ? options[0] : null,
|
|
1009
1029
|
loading,
|
|
1010
1030
|
options,
|
|
1011
1031
|
getOptionLabel: (c) => c.Label,
|
|
1012
1032
|
isOptionEqualToValue: (option, Value) => option.Value === Value.Value,
|
|
1013
1033
|
ref: field.ref,
|
|
1014
|
-
disabled
|
|
1034
|
+
disabled,
|
|
1015
1035
|
onChange: (event, newValue, reason) => {
|
|
1016
1036
|
field.onChange(newValue ? newValue.Value : null);
|
|
1017
1037
|
if (onChange && typeof onChange === "function") {
|
|
@@ -1034,12 +1054,12 @@ var Component8 = function SelectElement(props) {
|
|
|
1034
1054
|
helperText: error ? error.message : "",
|
|
1035
1055
|
placeholder,
|
|
1036
1056
|
label,
|
|
1037
|
-
variant: "outlined",
|
|
1057
|
+
variant: variant ? variant : "outlined",
|
|
1038
1058
|
sx: {
|
|
1059
|
+
...sx,
|
|
1039
1060
|
"& .MuiInputBase-input": {
|
|
1040
1061
|
cursor: disabled ? "not-allowed" : "default"
|
|
1041
|
-
}
|
|
1042
|
-
bgcolor: disabled ? "#EEF1F5" : "transparent"
|
|
1062
|
+
}
|
|
1043
1063
|
}
|
|
1044
1064
|
}
|
|
1045
1065
|
)
|
|
@@ -1080,6 +1100,8 @@ var Component9 = function SelectMultiElement(props) {
|
|
|
1080
1100
|
loading = false,
|
|
1081
1101
|
placeholder,
|
|
1082
1102
|
label,
|
|
1103
|
+
variant,
|
|
1104
|
+
sx,
|
|
1083
1105
|
...rest
|
|
1084
1106
|
} = props;
|
|
1085
1107
|
const {
|
|
@@ -1135,6 +1157,10 @@ var Component9 = function SelectMultiElement(props) {
|
|
|
1135
1157
|
params.InputProps.endAdornment
|
|
1136
1158
|
] })
|
|
1137
1159
|
}
|
|
1160
|
+
},
|
|
1161
|
+
variant: variant ? variant : "outlined",
|
|
1162
|
+
sx: {
|
|
1163
|
+
...sx
|
|
1138
1164
|
}
|
|
1139
1165
|
}
|
|
1140
1166
|
),
|
|
@@ -1179,6 +1205,8 @@ var Component10 = function SelectCascadeElement(props) {
|
|
|
1179
1205
|
label,
|
|
1180
1206
|
dependsOn,
|
|
1181
1207
|
initialValue,
|
|
1208
|
+
variant,
|
|
1209
|
+
sx,
|
|
1182
1210
|
...rest
|
|
1183
1211
|
} = props;
|
|
1184
1212
|
const {
|
|
@@ -1186,13 +1214,11 @@ var Component10 = function SelectCascadeElement(props) {
|
|
|
1186
1214
|
fieldState: { error }
|
|
1187
1215
|
} = useController10({
|
|
1188
1216
|
name,
|
|
1189
|
-
control
|
|
1190
|
-
disabled
|
|
1217
|
+
control
|
|
1191
1218
|
});
|
|
1192
1219
|
const { field: dependentField } = useController10({
|
|
1193
1220
|
name: dependsOn,
|
|
1194
|
-
control
|
|
1195
|
-
disabled
|
|
1221
|
+
control
|
|
1196
1222
|
});
|
|
1197
1223
|
const parentValueRef = useRef3(dependentField.value ?? null);
|
|
1198
1224
|
useEffect4(() => {
|
|
@@ -1218,7 +1244,7 @@ var Component10 = function SelectCascadeElement(props) {
|
|
|
1218
1244
|
getOptionLabel: (c) => c.Label,
|
|
1219
1245
|
isOptionEqualToValue: (option, value) => option.Value === value.Value,
|
|
1220
1246
|
ref: field.ref,
|
|
1221
|
-
disabled
|
|
1247
|
+
disabled,
|
|
1222
1248
|
onChange: (event, newValue, reason) => {
|
|
1223
1249
|
field.onChange(newValue ? newValue.Value : null);
|
|
1224
1250
|
if (onChange && typeof onChange === "function") {
|
|
@@ -1241,12 +1267,12 @@ var Component10 = function SelectCascadeElement(props) {
|
|
|
1241
1267
|
helperText: error ? error.message : "",
|
|
1242
1268
|
placeholder,
|
|
1243
1269
|
label,
|
|
1244
|
-
variant: "outlined",
|
|
1270
|
+
variant: variant ? variant : "outlined",
|
|
1245
1271
|
sx: {
|
|
1272
|
+
...sx,
|
|
1246
1273
|
"& .MuiInputBase-input": {
|
|
1247
1274
|
cursor: disabled ? "not-allowed" : "default"
|
|
1248
|
-
}
|
|
1249
|
-
bgcolor: disabled ? "#EEF1F5" : "transparent"
|
|
1275
|
+
}
|
|
1250
1276
|
}
|
|
1251
1277
|
}
|
|
1252
1278
|
)
|
|
@@ -103,11 +103,18 @@ import {
|
|
|
103
103
|
Typography as Typography2
|
|
104
104
|
} from "@mui/material";
|
|
105
105
|
import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
106
|
-
var FormWrapper = ({
|
|
106
|
+
var FormWrapper = ({
|
|
107
|
+
children,
|
|
108
|
+
title,
|
|
109
|
+
editMode,
|
|
110
|
+
cardSx,
|
|
111
|
+
textSx
|
|
112
|
+
}) => {
|
|
107
113
|
return /* @__PURE__ */ jsxs2(
|
|
108
114
|
Card2,
|
|
109
115
|
{
|
|
110
116
|
sx: {
|
|
117
|
+
...cardSx,
|
|
111
118
|
position: "relative",
|
|
112
119
|
borderRadius: "0px"
|
|
113
120
|
},
|
|
@@ -124,7 +131,7 @@ var FormWrapper = ({ children, title, editMode }) => {
|
|
|
124
131
|
alignSelf: "center"
|
|
125
132
|
}
|
|
126
133
|
},
|
|
127
|
-
title: title ?? /* @__PURE__ */ jsx4(Typography2, {
|
|
134
|
+
title: title ?? /* @__PURE__ */ jsx4(Typography2, { color: "primary", sx: textSx, children: editMode ? `Edit ${title}` : `Create ${title}` })
|
|
128
135
|
}
|
|
129
136
|
),
|
|
130
137
|
/* @__PURE__ */ jsx4(Divider2, { sx: { mt: 0 } }),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { SxProps, ButtonTypeMap } from '@mui/material';
|
|
3
|
+
import { PropsWithChildren, ReactNode } from 'react';
|
|
4
4
|
import { OverrideProps } from '@mui/material/OverridableComponent';
|
|
5
5
|
|
|
6
6
|
type ClearButtonProps = {
|
|
@@ -19,14 +19,18 @@ declare const FilterButton: ({ isSubmitting, show, title, icon, }: FilterButtonP
|
|
|
19
19
|
|
|
20
20
|
type FilterWrapperProps = PropsWithChildren<{
|
|
21
21
|
title: string;
|
|
22
|
+
cardSx?: SxProps;
|
|
22
23
|
}>;
|
|
23
24
|
declare const FilterWrapper: ({ children, title }: FilterWrapperProps) => react_jsx_runtime.JSX.Element;
|
|
24
25
|
|
|
25
26
|
type FormWrapper = PropsWithChildren<{
|
|
26
27
|
title: string;
|
|
27
28
|
editMode: boolean;
|
|
29
|
+
icon?: ReactNode;
|
|
30
|
+
cardSx?: SxProps;
|
|
31
|
+
textSx?: SxProps;
|
|
28
32
|
}>;
|
|
29
|
-
declare const FormWrapper: ({ children, title, editMode }: FormWrapper) => react_jsx_runtime.JSX.Element;
|
|
33
|
+
declare const FormWrapper: ({ children, title, editMode, cardSx, textSx, }: FormWrapper) => react_jsx_runtime.JSX.Element;
|
|
30
34
|
|
|
31
35
|
type LabelTextProps = {
|
|
32
36
|
label: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { SxProps, ButtonTypeMap } from '@mui/material';
|
|
3
|
+
import { PropsWithChildren, ReactNode } from 'react';
|
|
4
4
|
import { OverrideProps } from '@mui/material/OverridableComponent';
|
|
5
5
|
|
|
6
6
|
type ClearButtonProps = {
|
|
@@ -19,14 +19,18 @@ declare const FilterButton: ({ isSubmitting, show, title, icon, }: FilterButtonP
|
|
|
19
19
|
|
|
20
20
|
type FilterWrapperProps = PropsWithChildren<{
|
|
21
21
|
title: string;
|
|
22
|
+
cardSx?: SxProps;
|
|
22
23
|
}>;
|
|
23
24
|
declare const FilterWrapper: ({ children, title }: FilterWrapperProps) => react_jsx_runtime.JSX.Element;
|
|
24
25
|
|
|
25
26
|
type FormWrapper = PropsWithChildren<{
|
|
26
27
|
title: string;
|
|
27
28
|
editMode: boolean;
|
|
29
|
+
icon?: ReactNode;
|
|
30
|
+
cardSx?: SxProps;
|
|
31
|
+
textSx?: SxProps;
|
|
28
32
|
}>;
|
|
29
|
-
declare const FormWrapper: ({ children, title, editMode }: FormWrapper) => react_jsx_runtime.JSX.Element;
|
|
33
|
+
declare const FormWrapper: ({ children, title, editMode, cardSx, textSx, }: FormWrapper) => react_jsx_runtime.JSX.Element;
|
|
30
34
|
|
|
31
35
|
type LabelTextProps = {
|
|
32
36
|
label: string;
|
package/dist/components/index.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkLNMCA2OMjs = require('../chunk-LNMCA2OM.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
@@ -19,4 +19,4 @@ var _chunkQA44AL2Xjs = require('../chunk-QA44AL2X.js');
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
exports.AuthorizedView =
|
|
22
|
+
exports.AuthorizedView = _chunkLNMCA2OMjs.AuthorizedView_default; exports.ClearButton = _chunkLNMCA2OMjs.ClearButton_default; exports.FilterButton = _chunkLNMCA2OMjs.FilterButton_default; exports.FilterWrapper = _chunkLNMCA2OMjs.FilterWrapper_default; exports.FormWrapper = _chunkLNMCA2OMjs.FormWrapper_default; exports.LabelText = _chunkLNMCA2OMjs.LabelText_default; exports.ListWrapper = _chunkLNMCA2OMjs.ListWrapper_default; exports.SimpleButton = _chunkLNMCA2OMjs.SimpleButton_default; exports.SimpleToolbar = _chunkLNMCA2OMjs.SimpleToolbar_default;
|
package/dist/index.d.mts
CHANGED
|
@@ -6,8 +6,8 @@ export { Field } from './wrappers/index.mjs';
|
|
|
6
6
|
export { Field2 } from './wrappers2/index.mjs';
|
|
7
7
|
export { b as AsyncMultiSelectPayload, a as AsyncSelectMultiPayload, A as AsyncSelectPayload, O as OptionItem, c as OptionItem2 } from './OptionItem-CzX7oHfv.mjs';
|
|
8
8
|
import 'react/jsx-runtime';
|
|
9
|
-
import 'react';
|
|
10
9
|
import '@mui/material';
|
|
10
|
+
import 'react';
|
|
11
11
|
import '@mui/material/OverridableComponent';
|
|
12
12
|
import 'react-hook-form';
|
|
13
13
|
import '@mui/x-data-grid';
|
package/dist/index.d.ts
CHANGED
|
@@ -6,8 +6,8 @@ export { Field } from './wrappers/index.js';
|
|
|
6
6
|
export { Field2 } from './wrappers2/index.js';
|
|
7
7
|
export { b as AsyncMultiSelectPayload, a as AsyncSelectMultiPayload, A as AsyncSelectPayload, O as OptionItem, c as OptionItem2 } from './OptionItem-CzX7oHfv.js';
|
|
8
8
|
import 'react/jsx-runtime';
|
|
9
|
-
import 'react';
|
|
10
9
|
import '@mui/material';
|
|
10
|
+
import 'react';
|
|
11
11
|
import '@mui/material/OverridableComponent';
|
|
12
12
|
import 'react-hook-form';
|
|
13
13
|
import '@mui/x-data-grid';
|
package/dist/index.js
CHANGED
|
@@ -8,15 +8,15 @@
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkLNMCA2OMjs = require('./chunk-LNMCA2OM.js');
|
|
12
12
|
require('./chunk-7M2VOCYN.js');
|
|
13
13
|
require('./chunk-6BGQA4BQ.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkCKJEER4Ljs = require('./chunk-CKJEER4L.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunkAZOXVTXBjs = require('./chunk-AZOXVTXB.js');
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
var _chunk6JZ35VQJjs = require('./chunk-6JZ35VQJ.js');
|
|
@@ -53,4 +53,4 @@ var _chunkDKBPCLECjs = require('./chunk-DKBPCLEC.js');
|
|
|
53
53
|
|
|
54
54
|
|
|
55
55
|
|
|
56
|
-
exports.AuthorizedView =
|
|
56
|
+
exports.AuthorizedView = _chunkLNMCA2OMjs.AuthorizedView_default; exports.ClearButton = _chunkLNMCA2OMjs.ClearButton_default; exports.Field = _chunkAZOXVTXBjs.Field_default; exports.Field2 = _chunkCKJEER4Ljs.Field_default; exports.FilterButton = _chunkLNMCA2OMjs.FilterButton_default; exports.FilterWrapper = _chunkLNMCA2OMjs.FilterWrapper_default; exports.FormWrapper = _chunkLNMCA2OMjs.FormWrapper_default; exports.LabelText = _chunkLNMCA2OMjs.LabelText_default; exports.ListWrapper = _chunkLNMCA2OMjs.ListWrapper_default; exports.SimpleButton = _chunkLNMCA2OMjs.SimpleButton_default; exports.SimpleToolbar = _chunkLNMCA2OMjs.SimpleToolbar_default; exports.api = _chunkDKBPCLECjs.api; exports.api2 = _chunkDKBPCLECjs.api2; exports.flattenObjectKeys = _chunkDKBPCLECjs.flattenObjectKeys; exports.getTimezone = _chunkDKBPCLECjs.getTimezone; exports.handleServerErrors = _chunkDKBPCLECjs.handleServerErrors; exports.propertyExists = _chunkDKBPCLECjs.propertyExists; exports.readValueAsDate = _chunkDKBPCLECjs.readValueAsDate; exports.removeLeadingTrailingSlashes = _chunkDKBPCLECjs.removeLeadingTrailingSlashes; exports.schemaTools = _chunkDKBPCLECjs.schemaTools; exports.useTransform = _chunk6JZ35VQJjs.useTransform;
|
package/dist/index.mjs
CHANGED
|
@@ -8,15 +8,15 @@ import {
|
|
|
8
8
|
ListWrapper_default,
|
|
9
9
|
SimpleButton_default,
|
|
10
10
|
SimpleToolbar_default
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-VNMKBB4P.mjs";
|
|
12
12
|
import "./chunk-2JFL7TS5.mjs";
|
|
13
13
|
import "./chunk-EVPUCTZA.mjs";
|
|
14
|
-
import {
|
|
15
|
-
Field_default
|
|
16
|
-
} from "./chunk-D2GQZWHC.mjs";
|
|
17
14
|
import {
|
|
18
15
|
Field_default as Field_default2
|
|
19
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-LWAM2GIC.mjs";
|
|
17
|
+
import {
|
|
18
|
+
Field_default
|
|
19
|
+
} from "./chunk-TXO5AC4B.mjs";
|
|
20
20
|
import {
|
|
21
21
|
useTransform
|
|
22
22
|
} from "./chunk-GFSTK7KN.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CheckboxProps, FormControlLabelProps, Grid2Props, ChipTypeMap, AutocompleteProps, TextFieldProps, IconButtonProps, FormLabelProps, RadioProps, TextField } from '@mui/material';
|
|
1
|
+
import { CheckboxProps, FormControlLabelProps, Grid2Props, ChipTypeMap, AutocompleteProps, TextFieldVariants as TextFieldVariants$1, SxProps as SxProps$1, 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
4
|
import { b as AsyncMultiSelectPayload, O as OptionItem, A as AsyncSelectPayload } from '../OptionItem-CzX7oHfv.mjs';
|
|
@@ -34,6 +34,8 @@ type AsyncMultiSelectElementProps<TFieldValues extends FieldValues = FieldValues
|
|
|
34
34
|
label?: string;
|
|
35
35
|
initialValues: number[] | null;
|
|
36
36
|
queryFn: (data: AsyncMultiSelectPayload) => Promise<OptionItem[] | undefined>;
|
|
37
|
+
variant?: TextFieldVariants$1;
|
|
38
|
+
sx?: SxProps$1;
|
|
37
39
|
};
|
|
38
40
|
|
|
39
41
|
type AsyncSelectElementProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, TValue extends {
|
|
@@ -50,6 +52,8 @@ type AsyncSelectElementProps<TFieldValues extends FieldValues = FieldValues, TNa
|
|
|
50
52
|
label?: string;
|
|
51
53
|
initialValue?: number | null;
|
|
52
54
|
queryFn: (data: AsyncSelectPayload) => Promise<TValue[] | undefined>;
|
|
55
|
+
variant?: TextFieldVariants$1;
|
|
56
|
+
sx?: SxProps$1;
|
|
53
57
|
};
|
|
54
58
|
|
|
55
59
|
type SelectCascadeElementProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, TValue extends {
|
|
@@ -67,6 +71,8 @@ type SelectCascadeElementProps<TFieldValues extends FieldValues = FieldValues, T
|
|
|
67
71
|
placeholder?: string;
|
|
68
72
|
label?: string;
|
|
69
73
|
initialValue?: number | null;
|
|
74
|
+
variant?: TextFieldVariants$1;
|
|
75
|
+
sx?: SxProps$1;
|
|
70
76
|
};
|
|
71
77
|
|
|
72
78
|
type SelectMultiElementProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, TValue extends {
|
|
@@ -82,6 +88,8 @@ type SelectMultiElementProps<TFieldValues extends FieldValues = FieldValues, TNa
|
|
|
82
88
|
gridProps?: Grid2Props;
|
|
83
89
|
placeholder?: string;
|
|
84
90
|
label?: string;
|
|
91
|
+
variant?: TextFieldVariants;
|
|
92
|
+
sx?: SxProps;
|
|
85
93
|
};
|
|
86
94
|
|
|
87
95
|
type SelectElementProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, TValue extends {
|
|
@@ -97,6 +105,8 @@ type SelectElementProps<TFieldValues extends FieldValues = FieldValues, TName ex
|
|
|
97
105
|
gridProps?: Grid2Props;
|
|
98
106
|
placeholder?: string;
|
|
99
107
|
label?: string;
|
|
108
|
+
variant?: TextFieldVariants$1;
|
|
109
|
+
sx?: SxProps$1;
|
|
100
110
|
};
|
|
101
111
|
|
|
102
112
|
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"> & {
|
|
@@ -172,6 +182,8 @@ type DatePickerElementProps<TFieldValues extends FieldValues = FieldValues, TNam
|
|
|
172
182
|
};
|
|
173
183
|
gridProps?: Grid2Props;
|
|
174
184
|
datePickerProps?: Omit<DatePickerProps<TValue, TEnableAccessibleFieldDOMStructure>, "value" | "slotProps">;
|
|
185
|
+
variant?: TextFieldVariants$1;
|
|
186
|
+
sx?: SxProps$1;
|
|
175
187
|
};
|
|
176
188
|
|
|
177
189
|
type CheckboxElementProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, TValue = unknown> = Omit<CheckboxProps, "name"> & {
|
|
@@ -196,6 +208,8 @@ type TextFieldElementProps<TFieldValues extends FieldValues = FieldValues, TName
|
|
|
196
208
|
placeholder?: string;
|
|
197
209
|
textFieldProps?: Omit<TextFieldProps, "name">;
|
|
198
210
|
gridProps?: Grid2Props;
|
|
211
|
+
variant?: TextFieldVariants$1;
|
|
212
|
+
sx?: SxProps$1;
|
|
199
213
|
};
|
|
200
214
|
|
|
201
215
|
declare const Field: {
|
package/dist/wrappers/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CheckboxProps, FormControlLabelProps, Grid2Props, ChipTypeMap, AutocompleteProps, TextFieldProps, IconButtonProps, FormLabelProps, RadioProps, TextField } from '@mui/material';
|
|
1
|
+
import { CheckboxProps, FormControlLabelProps, Grid2Props, ChipTypeMap, AutocompleteProps, TextFieldVariants as TextFieldVariants$1, SxProps as SxProps$1, 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
4
|
import { b as AsyncMultiSelectPayload, O as OptionItem, A as AsyncSelectPayload } from '../OptionItem-CzX7oHfv.js';
|
|
@@ -34,6 +34,8 @@ type AsyncMultiSelectElementProps<TFieldValues extends FieldValues = FieldValues
|
|
|
34
34
|
label?: string;
|
|
35
35
|
initialValues: number[] | null;
|
|
36
36
|
queryFn: (data: AsyncMultiSelectPayload) => Promise<OptionItem[] | undefined>;
|
|
37
|
+
variant?: TextFieldVariants$1;
|
|
38
|
+
sx?: SxProps$1;
|
|
37
39
|
};
|
|
38
40
|
|
|
39
41
|
type AsyncSelectElementProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, TValue extends {
|
|
@@ -50,6 +52,8 @@ type AsyncSelectElementProps<TFieldValues extends FieldValues = FieldValues, TNa
|
|
|
50
52
|
label?: string;
|
|
51
53
|
initialValue?: number | null;
|
|
52
54
|
queryFn: (data: AsyncSelectPayload) => Promise<TValue[] | undefined>;
|
|
55
|
+
variant?: TextFieldVariants$1;
|
|
56
|
+
sx?: SxProps$1;
|
|
53
57
|
};
|
|
54
58
|
|
|
55
59
|
type SelectCascadeElementProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, TValue extends {
|
|
@@ -67,6 +71,8 @@ type SelectCascadeElementProps<TFieldValues extends FieldValues = FieldValues, T
|
|
|
67
71
|
placeholder?: string;
|
|
68
72
|
label?: string;
|
|
69
73
|
initialValue?: number | null;
|
|
74
|
+
variant?: TextFieldVariants$1;
|
|
75
|
+
sx?: SxProps$1;
|
|
70
76
|
};
|
|
71
77
|
|
|
72
78
|
type SelectMultiElementProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, TValue extends {
|
|
@@ -82,6 +88,8 @@ type SelectMultiElementProps<TFieldValues extends FieldValues = FieldValues, TNa
|
|
|
82
88
|
gridProps?: Grid2Props;
|
|
83
89
|
placeholder?: string;
|
|
84
90
|
label?: string;
|
|
91
|
+
variant?: TextFieldVariants;
|
|
92
|
+
sx?: SxProps;
|
|
85
93
|
};
|
|
86
94
|
|
|
87
95
|
type SelectElementProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, TValue extends {
|
|
@@ -97,6 +105,8 @@ type SelectElementProps<TFieldValues extends FieldValues = FieldValues, TName ex
|
|
|
97
105
|
gridProps?: Grid2Props;
|
|
98
106
|
placeholder?: string;
|
|
99
107
|
label?: string;
|
|
108
|
+
variant?: TextFieldVariants$1;
|
|
109
|
+
sx?: SxProps$1;
|
|
100
110
|
};
|
|
101
111
|
|
|
102
112
|
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"> & {
|
|
@@ -172,6 +182,8 @@ type DatePickerElementProps<TFieldValues extends FieldValues = FieldValues, TNam
|
|
|
172
182
|
};
|
|
173
183
|
gridProps?: Grid2Props;
|
|
174
184
|
datePickerProps?: Omit<DatePickerProps<TValue, TEnableAccessibleFieldDOMStructure>, "value" | "slotProps">;
|
|
185
|
+
variant?: TextFieldVariants$1;
|
|
186
|
+
sx?: SxProps$1;
|
|
175
187
|
};
|
|
176
188
|
|
|
177
189
|
type CheckboxElementProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, TValue = unknown> = Omit<CheckboxProps, "name"> & {
|
|
@@ -196,6 +208,8 @@ type TextFieldElementProps<TFieldValues extends FieldValues = FieldValues, TName
|
|
|
196
208
|
placeholder?: string;
|
|
197
209
|
textFieldProps?: Omit<TextFieldProps, "name">;
|
|
198
210
|
gridProps?: Grid2Props;
|
|
211
|
+
variant?: TextFieldVariants$1;
|
|
212
|
+
sx?: SxProps$1;
|
|
199
213
|
};
|
|
200
214
|
|
|
201
215
|
declare const Field: {
|
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 _chunkAZOXVTXBjs = require('../chunk-AZOXVTXB.js');
|
|
4
4
|
require('../chunk-6JZ35VQJ.js');
|
|
5
5
|
require('../chunk-DKBPCLEC.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.Field =
|
|
8
|
+
exports.Field = _chunkAZOXVTXBjs.Field_default;
|
package/dist/wrappers/index.mjs
CHANGED
|
@@ -37,11 +37,11 @@ type AsyncMultiSelectElementProps<TFieldValues extends FieldValues = FieldValues
|
|
|
37
37
|
};
|
|
38
38
|
|
|
39
39
|
type AsyncSelectElementProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, TValue extends {
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
value: number;
|
|
41
|
+
label: string;
|
|
42
42
|
} = {
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
value: number;
|
|
44
|
+
label: string;
|
|
45
45
|
}, Multiple extends boolean | undefined = false, DisableClearable extends boolean | undefined = false, FreeSolo extends boolean | undefined = false, ChipComponent extends React.ElementType = ChipTypeMap["defaultComponent"]> = Omit<AutocompleteProps<TValue, Multiple, DisableClearable, FreeSolo, ChipComponent>, "name" | "control" | "ref" | "multiple" | "loading" | "getOptionLabel" | "getOptionKey" | "isOptionEqualToValue" | "options" | "value" | "filterSelectedOptions" | "filterOptions" | "onChange" | "onInputChange" | "renderInput"> & {
|
|
46
46
|
name: TName;
|
|
47
47
|
control?: Control<TFieldValues>;
|
|
@@ -37,11 +37,11 @@ type AsyncMultiSelectElementProps<TFieldValues extends FieldValues = FieldValues
|
|
|
37
37
|
};
|
|
38
38
|
|
|
39
39
|
type AsyncSelectElementProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>, TValue extends {
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
value: number;
|
|
41
|
+
label: string;
|
|
42
42
|
} = {
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
value: number;
|
|
44
|
+
label: string;
|
|
45
45
|
}, Multiple extends boolean | undefined = false, DisableClearable extends boolean | undefined = false, FreeSolo extends boolean | undefined = false, ChipComponent extends React.ElementType = ChipTypeMap["defaultComponent"]> = Omit<AutocompleteProps<TValue, Multiple, DisableClearable, FreeSolo, ChipComponent>, "name" | "control" | "ref" | "multiple" | "loading" | "getOptionLabel" | "getOptionKey" | "isOptionEqualToValue" | "options" | "value" | "filterSelectedOptions" | "filterOptions" | "onChange" | "onInputChange" | "renderInput"> & {
|
|
46
46
|
name: TName;
|
|
47
47
|
control?: Control<TFieldValues>;
|
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 _chunkCKJEER4Ljs = require('../chunk-CKJEER4L.js');
|
|
4
4
|
require('../chunk-6JZ35VQJ.js');
|
|
5
5
|
require('../chunk-DKBPCLEC.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.Field2 =
|
|
8
|
+
exports.Field2 = _chunkCKJEER4Ljs.Field_default;
|
package/dist/wrappers2/index.mjs
CHANGED