@gnwebsoft/ui 2.18.29 → 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-JP67273T.js → chunk-AZOXVTXB.js} +47 -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-6Q6446Q3.mjs → chunk-TXO5AC4B.mjs} +48 -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,13 +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,
|
|
448
458
|
"& .MuiInputLabel-asterisk": { color: "red" },
|
|
449
459
|
"& .MuiInputBase-input": {
|
|
450
460
|
cursor: disabled ? "not-allowed" : "default"
|
|
451
|
-
}
|
|
452
|
-
bgcolor: disabled ? "#EEF1F5" : "transparent"
|
|
461
|
+
}
|
|
453
462
|
}
|
|
454
463
|
}
|
|
455
464
|
);
|
|
@@ -584,6 +593,8 @@ var Component6 = function AsyncSelectElement(props) {
|
|
|
584
593
|
initialValue,
|
|
585
594
|
label,
|
|
586
595
|
queryFn,
|
|
596
|
+
variant,
|
|
597
|
+
sx,
|
|
587
598
|
...rest
|
|
588
599
|
} = props;
|
|
589
600
|
const {
|
|
@@ -739,11 +750,12 @@ var Component6 = function AsyncSelectElement(props) {
|
|
|
739
750
|
] })
|
|
740
751
|
}
|
|
741
752
|
},
|
|
753
|
+
variant: variant ? variant : "outlined",
|
|
742
754
|
sx: {
|
|
755
|
+
...sx,
|
|
743
756
|
"& .MuiInputBase-input": {
|
|
744
757
|
cursor: disabled ? "not-allowed" : "default"
|
|
745
|
-
}
|
|
746
|
-
bgcolor: disabled ? "#EEF1F5" : "transparent"
|
|
758
|
+
}
|
|
747
759
|
}
|
|
748
760
|
}
|
|
749
761
|
),
|
|
@@ -798,6 +810,8 @@ var Component7 = function AsyncSelectMultiElement(props) {
|
|
|
798
810
|
initialValues,
|
|
799
811
|
label,
|
|
800
812
|
queryFn,
|
|
813
|
+
variant,
|
|
814
|
+
sx,
|
|
801
815
|
...rest
|
|
802
816
|
} = props;
|
|
803
817
|
const {
|
|
@@ -929,11 +943,12 @@ var Component7 = function AsyncSelectMultiElement(props) {
|
|
|
929
943
|
] })
|
|
930
944
|
}
|
|
931
945
|
},
|
|
946
|
+
variant: variant ? variant : "outlined",
|
|
932
947
|
sx: {
|
|
948
|
+
...sx,
|
|
933
949
|
"& .MuiInputBase-input": {
|
|
934
950
|
cursor: disabled ? "not-allowed" : "default"
|
|
935
|
-
}
|
|
936
|
-
bgcolor: disabled ? "#EEF1F5" : "transparent"
|
|
951
|
+
}
|
|
937
952
|
}
|
|
938
953
|
}
|
|
939
954
|
),
|
|
@@ -990,6 +1005,8 @@ var Component8 = function SelectElement(props) {
|
|
|
990
1005
|
loading = false,
|
|
991
1006
|
placeholder,
|
|
992
1007
|
label,
|
|
1008
|
+
variant,
|
|
1009
|
+
sx,
|
|
993
1010
|
...rest
|
|
994
1011
|
} = props;
|
|
995
1012
|
const {
|
|
@@ -997,22 +1014,24 @@ var Component8 = function SelectElement(props) {
|
|
|
997
1014
|
fieldState: { error }
|
|
998
1015
|
} = _reacthookform.useController.call(void 0, {
|
|
999
1016
|
name,
|
|
1000
|
-
control
|
|
1001
|
-
disabled
|
|
1017
|
+
control
|
|
1002
1018
|
});
|
|
1019
|
+
if (options.length === 1 && !field.value) {
|
|
1020
|
+
field.onChange(options[0].Value);
|
|
1021
|
+
}
|
|
1003
1022
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1004
1023
|
_material.Autocomplete,
|
|
1005
1024
|
{
|
|
1006
1025
|
...rest,
|
|
1007
|
-
value: field.value ? _nullishCoalesce(options.find((option) => {
|
|
1026
|
+
value: field.value !== null ? _nullishCoalesce(options.find((option) => {
|
|
1008
1027
|
return field.value === option.Value;
|
|
1009
|
-
}), () => ( null)) : null,
|
|
1028
|
+
}), () => ( null)) : options.length === 1 ? options[0] : null,
|
|
1010
1029
|
loading,
|
|
1011
1030
|
options,
|
|
1012
1031
|
getOptionLabel: (c) => c.Label,
|
|
1013
1032
|
isOptionEqualToValue: (option, Value) => option.Value === Value.Value,
|
|
1014
1033
|
ref: field.ref,
|
|
1015
|
-
disabled
|
|
1034
|
+
disabled,
|
|
1016
1035
|
onChange: (event, newValue, reason) => {
|
|
1017
1036
|
field.onChange(newValue ? newValue.Value : null);
|
|
1018
1037
|
if (onChange && typeof onChange === "function") {
|
|
@@ -1035,12 +1054,12 @@ var Component8 = function SelectElement(props) {
|
|
|
1035
1054
|
helperText: error ? error.message : "",
|
|
1036
1055
|
placeholder,
|
|
1037
1056
|
label,
|
|
1038
|
-
variant: "outlined",
|
|
1057
|
+
variant: variant ? variant : "outlined",
|
|
1039
1058
|
sx: {
|
|
1059
|
+
...sx,
|
|
1040
1060
|
"& .MuiInputBase-input": {
|
|
1041
1061
|
cursor: disabled ? "not-allowed" : "default"
|
|
1042
|
-
}
|
|
1043
|
-
bgcolor: disabled ? "#EEF1F5" : "transparent"
|
|
1062
|
+
}
|
|
1044
1063
|
}
|
|
1045
1064
|
}
|
|
1046
1065
|
)
|
|
@@ -1081,6 +1100,8 @@ var Component9 = function SelectMultiElement(props) {
|
|
|
1081
1100
|
loading = false,
|
|
1082
1101
|
placeholder,
|
|
1083
1102
|
label,
|
|
1103
|
+
variant,
|
|
1104
|
+
sx,
|
|
1084
1105
|
...rest
|
|
1085
1106
|
} = props;
|
|
1086
1107
|
const {
|
|
@@ -1136,6 +1157,10 @@ var Component9 = function SelectMultiElement(props) {
|
|
|
1136
1157
|
params.InputProps.endAdornment
|
|
1137
1158
|
] })
|
|
1138
1159
|
}
|
|
1160
|
+
},
|
|
1161
|
+
variant: variant ? variant : "outlined",
|
|
1162
|
+
sx: {
|
|
1163
|
+
...sx
|
|
1139
1164
|
}
|
|
1140
1165
|
}
|
|
1141
1166
|
),
|
|
@@ -1180,6 +1205,8 @@ var Component10 = function SelectCascadeElement(props) {
|
|
|
1180
1205
|
label,
|
|
1181
1206
|
dependsOn,
|
|
1182
1207
|
initialValue,
|
|
1208
|
+
variant,
|
|
1209
|
+
sx,
|
|
1183
1210
|
...rest
|
|
1184
1211
|
} = props;
|
|
1185
1212
|
const {
|
|
@@ -1187,13 +1214,11 @@ var Component10 = function SelectCascadeElement(props) {
|
|
|
1187
1214
|
fieldState: { error }
|
|
1188
1215
|
} = _reacthookform.useController.call(void 0, {
|
|
1189
1216
|
name,
|
|
1190
|
-
control
|
|
1191
|
-
disabled
|
|
1217
|
+
control
|
|
1192
1218
|
});
|
|
1193
1219
|
const { field: dependentField } = _reacthookform.useController.call(void 0, {
|
|
1194
1220
|
name: dependsOn,
|
|
1195
|
-
control
|
|
1196
|
-
disabled
|
|
1221
|
+
control
|
|
1197
1222
|
});
|
|
1198
1223
|
const parentValueRef = _react.useRef.call(void 0, _nullishCoalesce(dependentField.value, () => ( null)));
|
|
1199
1224
|
_react.useEffect.call(void 0, () => {
|
|
@@ -1219,7 +1244,7 @@ var Component10 = function SelectCascadeElement(props) {
|
|
|
1219
1244
|
getOptionLabel: (c) => c.Label,
|
|
1220
1245
|
isOptionEqualToValue: (option, value) => option.Value === value.Value,
|
|
1221
1246
|
ref: field.ref,
|
|
1222
|
-
disabled
|
|
1247
|
+
disabled,
|
|
1223
1248
|
onChange: (event, newValue, reason) => {
|
|
1224
1249
|
field.onChange(newValue ? newValue.Value : null);
|
|
1225
1250
|
if (onChange && typeof onChange === "function") {
|
|
@@ -1242,12 +1267,12 @@ var Component10 = function SelectCascadeElement(props) {
|
|
|
1242
1267
|
helperText: error ? error.message : "",
|
|
1243
1268
|
placeholder,
|
|
1244
1269
|
label,
|
|
1245
|
-
variant: "outlined",
|
|
1270
|
+
variant: variant ? variant : "outlined",
|
|
1246
1271
|
sx: {
|
|
1272
|
+
...sx,
|
|
1247
1273
|
"& .MuiInputBase-input": {
|
|
1248
1274
|
cursor: disabled ? "not-allowed" : "default"
|
|
1249
|
-
}
|
|
1250
|
-
bgcolor: disabled ? "#EEF1F5" : "transparent"
|
|
1275
|
+
}
|
|
1251
1276
|
}
|
|
1252
1277
|
}
|
|
1253
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,13 +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,
|
|
448
458
|
"& .MuiInputLabel-asterisk": { color: "red" },
|
|
449
459
|
"& .MuiInputBase-input": {
|
|
450
460
|
cursor: disabled ? "not-allowed" : "default"
|
|
451
|
-
}
|
|
452
|
-
bgcolor: disabled ? "#EEF1F5" : "transparent"
|
|
461
|
+
}
|
|
453
462
|
}
|
|
454
463
|
}
|
|
455
464
|
);
|
|
@@ -584,6 +593,8 @@ var Component6 = function AsyncSelectElement(props) {
|
|
|
584
593
|
initialValue,
|
|
585
594
|
label,
|
|
586
595
|
queryFn,
|
|
596
|
+
variant,
|
|
597
|
+
sx,
|
|
587
598
|
...rest
|
|
588
599
|
} = props;
|
|
589
600
|
const {
|
|
@@ -739,11 +750,12 @@ var Component6 = function AsyncSelectElement(props) {
|
|
|
739
750
|
] })
|
|
740
751
|
}
|
|
741
752
|
},
|
|
753
|
+
variant: variant ? variant : "outlined",
|
|
742
754
|
sx: {
|
|
755
|
+
...sx,
|
|
743
756
|
"& .MuiInputBase-input": {
|
|
744
757
|
cursor: disabled ? "not-allowed" : "default"
|
|
745
|
-
}
|
|
746
|
-
bgcolor: disabled ? "#EEF1F5" : "transparent"
|
|
758
|
+
}
|
|
747
759
|
}
|
|
748
760
|
}
|
|
749
761
|
),
|
|
@@ -798,6 +810,8 @@ var Component7 = function AsyncSelectMultiElement(props) {
|
|
|
798
810
|
initialValues,
|
|
799
811
|
label,
|
|
800
812
|
queryFn,
|
|
813
|
+
variant,
|
|
814
|
+
sx,
|
|
801
815
|
...rest
|
|
802
816
|
} = props;
|
|
803
817
|
const {
|
|
@@ -929,11 +943,12 @@ var Component7 = function AsyncSelectMultiElement(props) {
|
|
|
929
943
|
] })
|
|
930
944
|
}
|
|
931
945
|
},
|
|
946
|
+
variant: variant ? variant : "outlined",
|
|
932
947
|
sx: {
|
|
948
|
+
...sx,
|
|
933
949
|
"& .MuiInputBase-input": {
|
|
934
950
|
cursor: disabled ? "not-allowed" : "default"
|
|
935
|
-
}
|
|
936
|
-
bgcolor: disabled ? "#EEF1F5" : "transparent"
|
|
951
|
+
}
|
|
937
952
|
}
|
|
938
953
|
}
|
|
939
954
|
),
|
|
@@ -990,6 +1005,8 @@ var Component8 = function SelectElement(props) {
|
|
|
990
1005
|
loading = false,
|
|
991
1006
|
placeholder,
|
|
992
1007
|
label,
|
|
1008
|
+
variant,
|
|
1009
|
+
sx,
|
|
993
1010
|
...rest
|
|
994
1011
|
} = props;
|
|
995
1012
|
const {
|
|
@@ -997,22 +1014,24 @@ var Component8 = function SelectElement(props) {
|
|
|
997
1014
|
fieldState: { error }
|
|
998
1015
|
} = useController8({
|
|
999
1016
|
name,
|
|
1000
|
-
control
|
|
1001
|
-
disabled
|
|
1017
|
+
control
|
|
1002
1018
|
});
|
|
1019
|
+
if (options.length === 1 && !field.value) {
|
|
1020
|
+
field.onChange(options[0].Value);
|
|
1021
|
+
}
|
|
1003
1022
|
return /* @__PURE__ */ jsx8(
|
|
1004
1023
|
Autocomplete3,
|
|
1005
1024
|
{
|
|
1006
1025
|
...rest,
|
|
1007
|
-
value: field.value ? options.find((option) => {
|
|
1026
|
+
value: field.value !== null ? options.find((option) => {
|
|
1008
1027
|
return field.value === option.Value;
|
|
1009
|
-
}) ?? null : null,
|
|
1028
|
+
}) ?? null : options.length === 1 ? options[0] : null,
|
|
1010
1029
|
loading,
|
|
1011
1030
|
options,
|
|
1012
1031
|
getOptionLabel: (c) => c.Label,
|
|
1013
1032
|
isOptionEqualToValue: (option, Value) => option.Value === Value.Value,
|
|
1014
1033
|
ref: field.ref,
|
|
1015
|
-
disabled
|
|
1034
|
+
disabled,
|
|
1016
1035
|
onChange: (event, newValue, reason) => {
|
|
1017
1036
|
field.onChange(newValue ? newValue.Value : null);
|
|
1018
1037
|
if (onChange && typeof onChange === "function") {
|
|
@@ -1035,12 +1054,12 @@ var Component8 = function SelectElement(props) {
|
|
|
1035
1054
|
helperText: error ? error.message : "",
|
|
1036
1055
|
placeholder,
|
|
1037
1056
|
label,
|
|
1038
|
-
variant: "outlined",
|
|
1057
|
+
variant: variant ? variant : "outlined",
|
|
1039
1058
|
sx: {
|
|
1059
|
+
...sx,
|
|
1040
1060
|
"& .MuiInputBase-input": {
|
|
1041
1061
|
cursor: disabled ? "not-allowed" : "default"
|
|
1042
|
-
}
|
|
1043
|
-
bgcolor: disabled ? "#EEF1F5" : "transparent"
|
|
1062
|
+
}
|
|
1044
1063
|
}
|
|
1045
1064
|
}
|
|
1046
1065
|
)
|
|
@@ -1081,6 +1100,8 @@ var Component9 = function SelectMultiElement(props) {
|
|
|
1081
1100
|
loading = false,
|
|
1082
1101
|
placeholder,
|
|
1083
1102
|
label,
|
|
1103
|
+
variant,
|
|
1104
|
+
sx,
|
|
1084
1105
|
...rest
|
|
1085
1106
|
} = props;
|
|
1086
1107
|
const {
|
|
@@ -1136,6 +1157,10 @@ var Component9 = function SelectMultiElement(props) {
|
|
|
1136
1157
|
params.InputProps.endAdornment
|
|
1137
1158
|
] })
|
|
1138
1159
|
}
|
|
1160
|
+
},
|
|
1161
|
+
variant: variant ? variant : "outlined",
|
|
1162
|
+
sx: {
|
|
1163
|
+
...sx
|
|
1139
1164
|
}
|
|
1140
1165
|
}
|
|
1141
1166
|
),
|
|
@@ -1180,6 +1205,8 @@ var Component10 = function SelectCascadeElement(props) {
|
|
|
1180
1205
|
label,
|
|
1181
1206
|
dependsOn,
|
|
1182
1207
|
initialValue,
|
|
1208
|
+
variant,
|
|
1209
|
+
sx,
|
|
1183
1210
|
...rest
|
|
1184
1211
|
} = props;
|
|
1185
1212
|
const {
|
|
@@ -1187,13 +1214,11 @@ var Component10 = function SelectCascadeElement(props) {
|
|
|
1187
1214
|
fieldState: { error }
|
|
1188
1215
|
} = useController10({
|
|
1189
1216
|
name,
|
|
1190
|
-
control
|
|
1191
|
-
disabled
|
|
1217
|
+
control
|
|
1192
1218
|
});
|
|
1193
1219
|
const { field: dependentField } = useController10({
|
|
1194
1220
|
name: dependsOn,
|
|
1195
|
-
control
|
|
1196
|
-
disabled
|
|
1221
|
+
control
|
|
1197
1222
|
});
|
|
1198
1223
|
const parentValueRef = useRef3(dependentField.value ?? null);
|
|
1199
1224
|
useEffect4(() => {
|
|
@@ -1219,7 +1244,7 @@ var Component10 = function SelectCascadeElement(props) {
|
|
|
1219
1244
|
getOptionLabel: (c) => c.Label,
|
|
1220
1245
|
isOptionEqualToValue: (option, value) => option.Value === value.Value,
|
|
1221
1246
|
ref: field.ref,
|
|
1222
|
-
disabled
|
|
1247
|
+
disabled,
|
|
1223
1248
|
onChange: (event, newValue, reason) => {
|
|
1224
1249
|
field.onChange(newValue ? newValue.Value : null);
|
|
1225
1250
|
if (onChange && typeof onChange === "function") {
|
|
@@ -1242,12 +1267,12 @@ var Component10 = function SelectCascadeElement(props) {
|
|
|
1242
1267
|
helperText: error ? error.message : "",
|
|
1243
1268
|
placeholder,
|
|
1244
1269
|
label,
|
|
1245
|
-
variant: "outlined",
|
|
1270
|
+
variant: variant ? variant : "outlined",
|
|
1246
1271
|
sx: {
|
|
1272
|
+
...sx,
|
|
1247
1273
|
"& .MuiInputBase-input": {
|
|
1248
1274
|
cursor: disabled ? "not-allowed" : "default"
|
|
1249
|
-
}
|
|
1250
|
-
bgcolor: disabled ? "#EEF1F5" : "transparent"
|
|
1275
|
+
}
|
|
1251
1276
|
}
|
|
1252
1277
|
}
|
|
1253
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-6Q6446Q3.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