sag_components 1.0.170 → 1.0.172
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.
|
@@ -39,6 +39,8 @@ var Datepicker = function Datepicker(_ref) {
|
|
|
39
39
|
if (value) {
|
|
40
40
|
console.log("value", value);
|
|
41
41
|
setvalueState((0, _dayjs.default)(value));
|
|
42
|
+
} else {
|
|
43
|
+
setvalueState(null);
|
|
42
44
|
}
|
|
43
45
|
}, [value]);
|
|
44
46
|
var getTextFieldStyle = function getTextFieldStyle() {
|
|
@@ -47,19 +49,31 @@ var Datepicker = function Datepicker(_ref) {
|
|
|
47
49
|
return {
|
|
48
50
|
"& .MuiOutlinedInput-root": {
|
|
49
51
|
borderRadius: "12px",
|
|
52
|
+
fontFamily: "Lato",
|
|
53
|
+
fontSize: "14px",
|
|
54
|
+
fontWidth: 400,
|
|
50
55
|
width: width,
|
|
51
56
|
legend: {
|
|
52
57
|
marginLeft: "6px"
|
|
53
58
|
}
|
|
54
59
|
},
|
|
55
60
|
"& .MuiAutocomplete-inputRoot": {
|
|
61
|
+
fontFamily: "Lato",
|
|
62
|
+
fontSize: "14px",
|
|
63
|
+
fontWidth: 400,
|
|
56
64
|
paddingLeft: "10px !important",
|
|
57
65
|
borderRadius: "12px"
|
|
58
66
|
},
|
|
59
67
|
"& .MuiInputLabel-outlined": {
|
|
68
|
+
fontFamily: "Lato",
|
|
69
|
+
fontSize: "14px",
|
|
70
|
+
fontWidth: 400,
|
|
60
71
|
paddingLeft: "10px"
|
|
61
72
|
},
|
|
62
73
|
"& .MuiInputLabel-shrink": {
|
|
74
|
+
fontFamily: "Lato",
|
|
75
|
+
fontSize: "14px",
|
|
76
|
+
fontWidth: 400,
|
|
63
77
|
marginLeft: "1px",
|
|
64
78
|
paddingLeft: "4px",
|
|
65
79
|
paddingRight: 0,
|
|
@@ -59,7 +59,9 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
59
59
|
_ref$allowedInput = _ref.allowedInput,
|
|
60
60
|
allowedInput = _ref$allowedInput === void 0 ? "all" : _ref$allowedInput,
|
|
61
61
|
_ref$reset = _ref.reset,
|
|
62
|
-
reset = _ref$reset === void 0 ? false : _ref$reset
|
|
62
|
+
reset = _ref$reset === void 0 ? false : _ref$reset,
|
|
63
|
+
_ref$disableClearable = _ref.disableClearable,
|
|
64
|
+
disableClearable = _ref$disableClearable === void 0 ? false : _ref$disableClearable;
|
|
63
65
|
/**
|
|
64
66
|
* SAG Dropdown
|
|
65
67
|
*/
|
|
@@ -183,7 +185,8 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
183
185
|
onInputChange: function onInputChange(event, newInputValue) {
|
|
184
186
|
onInputChangeHandler(event, newInputValue);
|
|
185
187
|
},
|
|
186
|
-
disablePortal: true
|
|
188
|
+
disablePortal: true,
|
|
189
|
+
disableClearable: disableClearable
|
|
187
190
|
// value={defaultValue && !currentOption?.newValue ? defaultValue : currentOption?.newValue}
|
|
188
191
|
// value={
|
|
189
192
|
// defaultValue && !defaultValueSetFlag
|
|
@@ -263,6 +266,7 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
263
266
|
id: "checkboxes-tags",
|
|
264
267
|
options: options,
|
|
265
268
|
disableCloseOnSelect: true,
|
|
269
|
+
disableClearable: disableClearable,
|
|
266
270
|
getOptionLabel: function getOptionLabel(option) {
|
|
267
271
|
return option.label;
|
|
268
272
|
},
|