sag_components 1.0.372 → 1.0.374
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/stories/components/Dropdown.js +156 -139
- package/dist/stories/components/ReportTable.js +2 -2
- package/package.json +1 -1
- package/.history/.env_20231001120549 +0 -0
- package/.history/.env_20231001120613 +0 -1
- package/.history/.env_20231003143620 +0 -1
- package/.history/.eslintrc_20230928112617.js +0 -26
- package/.history/.eslintrc_20230928130534.js +0 -27
- package/.history/.eslintrc_20230928133400.js +0 -28
- package/.history/.eslintrc_20230928133404.js +0 -28
- package/.history/.eslintrc_20230928133416.js +0 -28
- package/.history/.eslintrc_20230928133419.js +0 -28
- package/.history/.eslintrc_20230928133432.js +0 -28
- package/.history/.eslintrc_20230928133439.js +0 -28
- package/.history/.eslintrc_20230928133458.js +0 -29
- package/.history/.eslintrc_20230928133500.js +0 -28
- package/.history/.eslintrc_20230928134009.js +0 -28
- package/.history/.eslintrc_20230928135318.js +0 -34
- package/.history/.eslintrc_20230928135321.js +0 -34
- package/.history/.eslintrc_20230928135323.js +0 -34
- package/.history/.eslintrc_20230928135332.js +0 -34
- package/.history/.eslintrc_20230928135333.js +0 -34
- package/.history/.eslintrc_20230928135352.js +0 -29
- package/.history/.eslintrc_20230928135353.js +0 -29
- package/.history/.eslintrc_20230928135355.js +0 -29
- package/.history/.eslintrc_20230928135408.js +0 -29
- package/.history/.eslintrc_20230928135538.js +0 -30
- package/.history/.eslintrc_20230928135539.js +0 -30
- package/.history/.eslintrc_20230928135543.js +0 -30
- package/.history/.gitignore_20230921093332 +0 -119
- package/.history/.gitignore_20230921111638 +0 -120
- package/.history/.gitignore_20230921111650 +0 -120
- package/.history/.gitignore_20230921111810 +0 -121
- package/.history/package-lock_20231114111138.json +0 -47810
- package/.history/package-lock_20231114111158.json +0 -47802
- package/.history/package_20231029152422.json +0 -82
- package/.history/package_20231029153420.json +0 -82
- package/.history/package_20231029154416.json +0 -82
- package/.history/package_20231030094127.json +0 -82
- package/.history/package_20231030114707.json +0 -82
- package/.history/package_20231030130704.json +0 -82
- package/.history/package_20231030132422.json +0 -82
- package/.history/package_20231030134051.json +0 -82
- package/.history/package_20231030142913.json +0 -82
- package/.history/package_20231030143556.json +0 -82
- package/.history/package_20231030144210.json +0 -82
- package/.history/package_20231101113942.json +0 -82
- package/.history/package_20231101114544.json +0 -82
- package/.history/package_20231101151518.json +0 -82
- package/.history/package_20231101154501.json +0 -82
- package/.history/package_20231101155811.json +0 -82
- package/.history/package_20231101160235.json +0 -82
- package/.history/package_20231101160406.json +0 -82
- package/.history/package_20231101161325.json +0 -82
- package/.history/package_20231101161333.json +0 -82
- package/.history/package_20231102123623.json +0 -82
- package/.history/package_20231102125741.json +0 -82
- package/.history/package_20231102130857.json +0 -82
- package/.history/package_20231102132227.json +0 -82
- package/.history/package_20231102142340.json +0 -82
- package/.history/package_20231102143256.json +0 -82
- package/.history/package_20231105153539.json +0 -82
- package/.history/package_20231105154332.json +0 -82
- package/.history/package_20231105171201.json +0 -82
- package/.history/package_20231106123849.json +0 -82
- package/.history/package_20231107170638.json +0 -82
- package/.history/package_20231109103647.json +0 -82
- package/.history/package_20231109103911.json +0 -82
- package/.history/package_20231109105426.json +0 -82
- package/.history/package_20231109132014.json +0 -82
- package/.history/package_20231109132115.json +0 -82
- package/.history/package_20231114100517.json +0 -82
- package/.history/package_20231114100859.json +0 -82
- package/.history/package_20231114101553.json +0 -82
- package/.history/package_20231114102545.json +0 -82
- package/.history/package_20231114111208.json +0 -83
- package/.history/package_20231114111515.json +0 -83
- package/.history/package_20231114112931.json +0 -83
- package/.history/package_20231114113014.json +0 -83
- package/.history/package_20231114113155.json +0 -83
- package/.history/package_20231114124318.json +0 -83
- package/.history/package_20231114125107.json +0 -83
- package/.history/package_20231114125510.json +0 -83
- package/.history/package_20231114132634.json +0 -83
- package/.history/package_20231116165815.json +0 -83
- package/.history/package_20231116165916.json +0 -83
- package/.history/package_20231119113637.json +0 -83
- package/.history/package_20231120100907.json +0 -83
- package/.history/package_20231121151523.json +0 -77
- package/.history/package_20231121155513.json +0 -77
- package/.history/package_20231121162434.json +0 -77
- package/.history/package_20231122100718.json +0 -77
- package/.history/package_20231128125149.json +0 -82
- package/.history/package_20231128125208.json +0 -82
|
@@ -33,7 +33,7 @@ var checkedIcon = /*#__PURE__*/_react.default.createElement(_CheckBox.default, {
|
|
|
33
33
|
*/
|
|
34
34
|
var Dropdown = exports.Dropdown = function Dropdown(_ref) {
|
|
35
35
|
var _ref$width = _ref.width,
|
|
36
|
-
width = _ref$width === void 0 ?
|
|
36
|
+
width = _ref$width === void 0 ? "100%" : _ref$width,
|
|
37
37
|
size = _ref.size,
|
|
38
38
|
text = _ref.text,
|
|
39
39
|
shape = _ref.shape,
|
|
@@ -46,18 +46,23 @@ var Dropdown = exports.Dropdown = function Dropdown(_ref) {
|
|
|
46
46
|
onChange = _ref.onChange,
|
|
47
47
|
onInputChange = _ref.onInputChange,
|
|
48
48
|
_ref$labelColor = _ref.labelColor,
|
|
49
|
-
labelColor = _ref$labelColor === void 0 ?
|
|
49
|
+
labelColor = _ref$labelColor === void 0 ? "#1B30AA" : _ref$labelColor,
|
|
50
50
|
required = _ref.required,
|
|
51
51
|
inputRef = _ref.inputRef,
|
|
52
52
|
defaultValue = _ref.defaultValue,
|
|
53
53
|
_ref$allowedInput = _ref.allowedInput,
|
|
54
|
-
allowedInput = _ref$allowedInput === void 0 ?
|
|
54
|
+
allowedInput = _ref$allowedInput === void 0 ? "all" : _ref$allowedInput,
|
|
55
55
|
_ref$reset = _ref.reset,
|
|
56
56
|
reset = _ref$reset === void 0 ? false : _ref$reset,
|
|
57
57
|
_ref$disableClearable = _ref.disableClearable,
|
|
58
58
|
disableClearable = _ref$disableClearable === void 0 ? false : _ref$disableClearable,
|
|
59
59
|
_ref$disabled = _ref.disabled,
|
|
60
|
-
disabled = _ref$disabled === void 0 ? false : _ref$disabled
|
|
60
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
61
|
+
_ref$dropdownListfont = _ref.dropdownListfontSize,
|
|
62
|
+
dropdownListfontSize = _ref$dropdownListfont === void 0 ? "14px" : _ref$dropdownListfont,
|
|
63
|
+
_ref$placeHolderFontS = _ref.placeHolderFontSize,
|
|
64
|
+
placeHolderFontSize = _ref$placeHolderFontS === void 0 ? "14px" : _ref$placeHolderFontS,
|
|
65
|
+
filterOptionsMultiSelect = _ref.filterOptionsMultiSelect;
|
|
61
66
|
/**
|
|
62
67
|
* SAG Dropdown
|
|
63
68
|
*/
|
|
@@ -66,16 +71,14 @@ var Dropdown = exports.Dropdown = function Dropdown(_ref) {
|
|
|
66
71
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
67
72
|
currentInputValue = _useState2[0],
|
|
68
73
|
setCurrentInputValue = _useState2[1];
|
|
69
|
-
var _useState3 = (0, _react.useState)(
|
|
74
|
+
var _useState3 = (0, _react.useState)(filterOptionsMultiSelect ? filterOptionsMultiSelect : undefined),
|
|
70
75
|
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
// }, [reset]);
|
|
78
|
-
|
|
76
|
+
currentFilterMultiSelectState = _useState4[0],
|
|
77
|
+
setCurrentFilterMultiSelectState = _useState4[1];
|
|
78
|
+
(0, _react.useEffect)(function () {
|
|
79
|
+
setCurrentFilterMultiSelectState(filterOptionsMultiSelect);
|
|
80
|
+
console.log("currentFilterMultiSelectState", currentFilterMultiSelectState);
|
|
81
|
+
}, [filterOptionsMultiSelect]);
|
|
79
82
|
(0, _react.useEffect)(function () {
|
|
80
83
|
var delayDebounceFn = setTimeout(function () {
|
|
81
84
|
onInputChange(currentInputValue);
|
|
@@ -89,60 +92,114 @@ var Dropdown = exports.Dropdown = function Dropdown(_ref) {
|
|
|
89
92
|
MuiFormLabel: {
|
|
90
93
|
styleOverrides: {
|
|
91
94
|
asterisk: {
|
|
92
|
-
color:
|
|
95
|
+
color: "#db3131"
|
|
93
96
|
}
|
|
94
97
|
}
|
|
95
98
|
}
|
|
96
99
|
}
|
|
97
100
|
});
|
|
98
101
|
|
|
99
|
-
//
|
|
100
|
-
var
|
|
101
|
-
if (shape ===
|
|
102
|
+
// Single Text Style
|
|
103
|
+
var getTextFieldStyleSingle = function getTextFieldStyleSingle() {
|
|
104
|
+
if (shape === "round") {
|
|
105
|
+
// round
|
|
106
|
+
return {
|
|
107
|
+
"& .MuiOutlinedInput-root": {
|
|
108
|
+
borderRadius: "12px",
|
|
109
|
+
legend: {
|
|
110
|
+
marginLeft: "10px"
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"& .MuiAutocomplete-inputRoot": {
|
|
114
|
+
paddingLeft: "10px !important",
|
|
115
|
+
borderRadius: "12px",
|
|
116
|
+
// This matches the specificity of the default styles at https://github.com/mui-org/material-ui/blob/v4.11.3/packages/material-ui-lab/src/Autocomplete/Autocomplete.js#L90
|
|
117
|
+
'&[class*="MuiOutlinedInput-root"] .MuiAutocomplete-input:first-of-type': {
|
|
118
|
+
// Default left padding is 6px
|
|
119
|
+
paddingLeft: "10px"
|
|
120
|
+
},
|
|
121
|
+
"& .MuiOutlinedInput-notchedOutline": {
|
|
122
|
+
borderColor: "#E7E7E7"
|
|
123
|
+
},
|
|
124
|
+
"&:hover .MuiOutlinedInput-notchedOutline": {
|
|
125
|
+
borderColor: disabled ? "#E7E7E7" : labelColor
|
|
126
|
+
},
|
|
127
|
+
"&.Mui-focused .MuiOutlinedInput-notchedOutline": {
|
|
128
|
+
borderColor: disabled ? "#E7E7E7" : labelColor
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
"& .MuiInputLabel-outlined:not(.MuiInputLabel-shrink)": {
|
|
132
|
+
// Default transform is "translate(14px, 20px) scale(1)""
|
|
133
|
+
// This lines up the label with the initial cursor position in the input
|
|
134
|
+
// after changing its padding-left.
|
|
135
|
+
transform: "translate(14px, 18px) scale(1);",
|
|
136
|
+
fontSize: "14px",
|
|
137
|
+
color: disabled ? "#E7E7E7" : currentInputValue && currentInputValue.length > 0 ? "#212121" : "#757575"
|
|
138
|
+
},
|
|
139
|
+
"& .MuiInputLabel-outlined": {
|
|
140
|
+
paddingLeft: "10px",
|
|
141
|
+
color: disabled ? "#E7E7E7" : labelColor,
|
|
142
|
+
fontSize: "18px"
|
|
143
|
+
},
|
|
144
|
+
"& .MuiInputLabel-shrink": {
|
|
145
|
+
marginLeft: "1px",
|
|
146
|
+
paddingLeft: "4px",
|
|
147
|
+
paddingRight: "6px",
|
|
148
|
+
background: "white"
|
|
149
|
+
}
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
// square
|
|
153
|
+
return null;
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
// ---------------------------- Multi Text Style -----------------------------------------
|
|
157
|
+
var getTextFieldStyleMulti = function getTextFieldStyleMulti() {
|
|
158
|
+
if (shape === "round") {
|
|
102
159
|
// round
|
|
103
160
|
return {
|
|
104
|
-
|
|
105
|
-
borderRadius:
|
|
161
|
+
"& .MuiOutlinedInput-root": {
|
|
162
|
+
borderRadius: "12px",
|
|
106
163
|
legend: {
|
|
107
|
-
marginLeft:
|
|
164
|
+
marginLeft: "10px"
|
|
108
165
|
}
|
|
109
166
|
},
|
|
110
|
-
|
|
111
|
-
paddingLeft:
|
|
112
|
-
borderRadius:
|
|
167
|
+
"& .MuiAutocomplete-inputRoot": {
|
|
168
|
+
paddingLeft: "10px !important",
|
|
169
|
+
borderRadius: "12px",
|
|
113
170
|
// This matches the specificity of the default styles at https://github.com/mui-org/material-ui/blob/v4.11.3/packages/material-ui-lab/src/Autocomplete/Autocomplete.js#L90
|
|
114
171
|
'&[class*="MuiOutlinedInput-root"] .MuiAutocomplete-input:first-of-type': {
|
|
115
172
|
// Default left padding is 6px
|
|
116
|
-
paddingLeft:
|
|
173
|
+
paddingLeft: "10px"
|
|
117
174
|
},
|
|
118
|
-
|
|
119
|
-
borderColor:
|
|
175
|
+
"& .MuiOutlinedInput-notchedOutline": {
|
|
176
|
+
borderColor: "#E7E7E7"
|
|
120
177
|
},
|
|
121
|
-
|
|
122
|
-
borderColor: disabled ?
|
|
178
|
+
"&:hover .MuiOutlinedInput-notchedOutline": {
|
|
179
|
+
borderColor: disabled ? "#E7E7E7" : labelColor
|
|
123
180
|
},
|
|
124
|
-
|
|
125
|
-
borderColor: disabled ?
|
|
181
|
+
"&.Mui-focused .MuiOutlinedInput-notchedOutline": {
|
|
182
|
+
borderColor: disabled ? "#E7E7E7" : labelColor
|
|
126
183
|
}
|
|
127
184
|
},
|
|
128
|
-
|
|
185
|
+
"& .MuiInputLabel-outlined:not(.MuiInputLabel-shrink)": {
|
|
129
186
|
// Default transform is "translate(14px, 20px) scale(1)""
|
|
130
187
|
// This lines up the label with the initial cursor position in the input
|
|
131
188
|
// after changing its padding-left.
|
|
132
|
-
transform:
|
|
133
|
-
fontSize:
|
|
134
|
-
color: disabled ?
|
|
189
|
+
transform: "translate(14px, 18px) scale(1);",
|
|
190
|
+
fontSize: "14px",
|
|
191
|
+
color: disabled ? "#E7E7E7" : currentInputValue && currentInputValue.length > 0 ? "#212121" : "#757575"
|
|
135
192
|
},
|
|
136
|
-
|
|
137
|
-
paddingLeft:
|
|
138
|
-
color: disabled ?
|
|
139
|
-
fontSize:
|
|
193
|
+
"& .MuiInputLabel-outlined": {
|
|
194
|
+
paddingLeft: "10px",
|
|
195
|
+
color: disabled ? "#E7E7E7" : labelColor,
|
|
196
|
+
fontSize: "18px"
|
|
140
197
|
},
|
|
141
|
-
|
|
142
|
-
marginLeft:
|
|
143
|
-
paddingLeft:
|
|
144
|
-
paddingRight:
|
|
145
|
-
background:
|
|
198
|
+
"& .MuiInputLabel-shrink": {
|
|
199
|
+
marginLeft: "1px",
|
|
200
|
+
paddingLeft: "4px",
|
|
201
|
+
paddingRight: "6px",
|
|
202
|
+
background: "white"
|
|
146
203
|
}
|
|
147
204
|
};
|
|
148
205
|
}
|
|
@@ -156,45 +213,35 @@ var Dropdown = exports.Dropdown = function Dropdown(_ref) {
|
|
|
156
213
|
});
|
|
157
214
|
};
|
|
158
215
|
var onChangeHandler = function onChangeHandler(event, newValue) {
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
newValue: newValue
|
|
162
|
-
});
|
|
163
|
-
// setDefaultValueSetFlag(true);
|
|
216
|
+
setCurrentFilterMultiSelectState(newValue);
|
|
217
|
+
console.log("currentFilterMultiSelectState", currentFilterMultiSelectState);
|
|
164
218
|
onChange({
|
|
165
219
|
syntheticBaseEvent: event,
|
|
166
220
|
newValue: newValue
|
|
167
221
|
});
|
|
168
222
|
};
|
|
169
|
-
var getOptionByLabel = function getOptionByLabel(label) {
|
|
170
|
-
if (!label) return null;
|
|
171
|
-
if (!options) return null;
|
|
172
|
-
var foundOption = options.find(function (item) {
|
|
173
|
-
return item.label === label;
|
|
174
|
-
});
|
|
175
|
-
if (!foundOption) return null;
|
|
176
|
-
return foundOption;
|
|
177
|
-
};
|
|
178
223
|
var isInputAllowed = function isInputAllowed(inputChar) {
|
|
179
224
|
var NUMERIC_REGEX = /^[0-9-]+$/;
|
|
180
225
|
var ALPHA_REGEX = /^[a-zA-Z]+$/;
|
|
181
226
|
var ALPHA_NUMERIC_REGEX = /^[a-zA-Z0-9-]+$/;
|
|
182
227
|
switch (allowedInput) {
|
|
183
|
-
case
|
|
228
|
+
case "all":
|
|
184
229
|
return true;
|
|
185
|
-
case
|
|
230
|
+
case "alpha":
|
|
186
231
|
if (ALPHA_REGEX.test(inputChar)) return true;
|
|
187
232
|
return false;
|
|
188
|
-
case
|
|
233
|
+
case "numeric":
|
|
189
234
|
if (NUMERIC_REGEX.test(inputChar)) return true;
|
|
190
235
|
return false;
|
|
191
|
-
case
|
|
236
|
+
case "alphaNumeric":
|
|
192
237
|
if (ALPHA_NUMERIC_REGEX.test(inputChar)) return true;
|
|
193
238
|
return false;
|
|
194
239
|
default:
|
|
195
240
|
return true;
|
|
196
241
|
}
|
|
197
242
|
};
|
|
243
|
+
|
|
244
|
+
// --------------------------------------- DROPDOWN SINGLE --------------------------------
|
|
198
245
|
var getAutocompleteSingle = function getAutocompleteSingle() {
|
|
199
246
|
return /*#__PURE__*/_react.default.createElement(_styles.ThemeProvider, {
|
|
200
247
|
theme: theme
|
|
@@ -211,10 +258,9 @@ var Dropdown = exports.Dropdown = function Dropdown(_ref) {
|
|
|
211
258
|
disableClearable: disableClearable,
|
|
212
259
|
defaultValue: defaultValue,
|
|
213
260
|
id: "combo-box",
|
|
214
|
-
options: options
|
|
215
|
-
sx
|
|
216
|
-
|
|
217
|
-
},
|
|
261
|
+
options: options
|
|
262
|
+
// sx={{ width }}
|
|
263
|
+
,
|
|
218
264
|
popupIcon: showPopupIcon ? /*#__PURE__*/_react.default.createElement(_ArrowDropDownIcon.ArrowDropDownIcon, {
|
|
219
265
|
width: "0.5em",
|
|
220
266
|
height: "0.5em"
|
|
@@ -231,45 +277,40 @@ var Dropdown = exports.Dropdown = function Dropdown(_ref) {
|
|
|
231
277
|
label: text,
|
|
232
278
|
inputRef: inputRef || null,
|
|
233
279
|
size: size,
|
|
234
|
-
sx:
|
|
280
|
+
sx: getTextFieldStyleSingle(),
|
|
235
281
|
placeholder: placeHolder,
|
|
236
282
|
InputProps: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, params.InputProps), {}, {
|
|
237
283
|
style: {
|
|
238
|
-
fontSize:
|
|
239
|
-
fontFamily:
|
|
284
|
+
fontSize: placeHolderFontSize,
|
|
285
|
+
fontFamily: "Poppins"
|
|
240
286
|
},
|
|
241
287
|
startAdornment: showSearchIcon ? /*#__PURE__*/_react.default.createElement(_InputAdornment.default, {
|
|
242
288
|
position: "start"
|
|
243
289
|
}, /*#__PURE__*/_react.default.createElement(_Search.default, {
|
|
244
290
|
fontSize: "medium"
|
|
245
291
|
})) : null
|
|
246
|
-
})
|
|
247
|
-
InputLabelProps: {
|
|
248
|
-
style: {
|
|
249
|
-
// color: labelColor,
|
|
250
|
-
// fontSize: "14px",
|
|
251
|
-
fontFamily: 'Poppins'
|
|
252
|
-
}
|
|
253
|
-
}
|
|
292
|
+
})
|
|
254
293
|
}));
|
|
255
294
|
},
|
|
256
295
|
ListboxProps: {
|
|
257
296
|
style: {
|
|
258
|
-
fontSize:
|
|
259
|
-
|
|
297
|
+
fontSize: dropdownListfontSize,
|
|
298
|
+
//default: 14px
|
|
299
|
+
fontFamily: "Poppins"
|
|
260
300
|
}
|
|
261
301
|
}
|
|
262
302
|
}));
|
|
263
303
|
};
|
|
304
|
+
|
|
305
|
+
// --------------------------------------- DROPDOWN MULTI --------------------------------
|
|
264
306
|
var getAutocompleteMulti = function getAutocompleteMulti() {
|
|
265
307
|
return /*#__PURE__*/_react.default.createElement(_styles.ThemeProvider, {
|
|
266
308
|
theme: theme
|
|
267
309
|
}, /*#__PURE__*/_react.default.createElement(_Autocomplete.default, {
|
|
268
310
|
key: reset,
|
|
269
|
-
defaultValue: defaultValue
|
|
270
|
-
style
|
|
271
|
-
|
|
272
|
-
},
|
|
311
|
+
defaultValue: defaultValue
|
|
312
|
+
//style={{ width }}
|
|
313
|
+
,
|
|
273
314
|
onChange: function onChange(event, newValue) {
|
|
274
315
|
onChangeHandler(event, newValue);
|
|
275
316
|
},
|
|
@@ -280,6 +321,7 @@ var Dropdown = exports.Dropdown = function Dropdown(_ref) {
|
|
|
280
321
|
limitTags: limitTagsOnMultiSelect,
|
|
281
322
|
id: "checkboxes-tags",
|
|
282
323
|
options: options,
|
|
324
|
+
value: currentFilterMultiSelectState,
|
|
283
325
|
disabled: disabled,
|
|
284
326
|
disableCloseOnSelect: true,
|
|
285
327
|
disableClearable: disableClearable,
|
|
@@ -294,75 +336,50 @@ var Dropdown = exports.Dropdown = function Dropdown(_ref) {
|
|
|
294
336
|
var selected = _ref2.selected;
|
|
295
337
|
return /*#__PURE__*/_react.default.createElement("li", props, /*#__PURE__*/_react.default.createElement(_Checkbox.default, {
|
|
296
338
|
icon: icon,
|
|
297
|
-
checkedIcon: checkedIcon
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
},
|
|
339
|
+
checkedIcon: checkedIcon
|
|
340
|
+
// checked={
|
|
341
|
+
// variantName.findIndex((item) => item.id === variant.id) >= 0
|
|
342
|
+
// }
|
|
343
|
+
,
|
|
303
344
|
checked: selected
|
|
304
345
|
}), option.label);
|
|
305
346
|
},
|
|
306
347
|
renderInput: function renderInput(params) {
|
|
307
|
-
return
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
348
|
+
return (
|
|
349
|
+
/*#__PURE__*/
|
|
350
|
+
//showSearchIcon &&
|
|
351
|
+
_react.default.createElement(_TextField.default, Object.assign({}, params, {
|
|
352
|
+
label: text,
|
|
353
|
+
size: size,
|
|
354
|
+
sx: getTextFieldStyleMulti(),
|
|
355
|
+
placeholder: placeHolder,
|
|
356
|
+
InputProps: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, params.InputProps), {}, {
|
|
357
|
+
style: {
|
|
358
|
+
fontSize: placeHolderFontSize,
|
|
359
|
+
fontFamily: "Poppins"
|
|
360
|
+
}
|
|
361
|
+
}),
|
|
362
|
+
onKeyDown: function onKeyDown(event) {
|
|
363
|
+
if (!isInputAllowed(event.key)) {
|
|
364
|
+
event.preventDefault();
|
|
365
|
+
}
|
|
323
366
|
},
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
}))
|
|
329
|
-
}),
|
|
330
|
-
InputLabelProps: {
|
|
331
|
-
style: {
|
|
332
|
-
// color: labelColor,
|
|
333
|
-
fontSize: '16px',
|
|
334
|
-
fontFamily: 'Poppins'
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
})) : /*#__PURE__*/_react.default.createElement(_TextField.default, Object.assign({}, params, {
|
|
338
|
-
label: text,
|
|
339
|
-
size: size,
|
|
340
|
-
sx: getTextFieldStyle(),
|
|
341
|
-
placeholder: placeHolder,
|
|
342
|
-
onKeyDown: function onKeyDown(event) {
|
|
343
|
-
if (!isInputAllowed(event.key)) {
|
|
344
|
-
event.preventDefault();
|
|
345
|
-
}
|
|
346
|
-
},
|
|
347
|
-
inputRef: inputRef || null,
|
|
348
|
-
required: required,
|
|
349
|
-
InputLabelProps: {
|
|
350
|
-
style: {
|
|
351
|
-
// color: labelColor,
|
|
352
|
-
fontSize: '16px',
|
|
353
|
-
fontFamily: 'Poppins'
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
}));
|
|
367
|
+
inputRef: inputRef || null,
|
|
368
|
+
required: required
|
|
369
|
+
}))
|
|
370
|
+
);
|
|
357
371
|
},
|
|
358
372
|
ListboxProps: {
|
|
359
373
|
style: {
|
|
360
|
-
fontSize:
|
|
361
|
-
|
|
374
|
+
fontSize: dropdownListfontSize,
|
|
375
|
+
//default: 14px
|
|
376
|
+
fontFamily: "Poppins"
|
|
362
377
|
}
|
|
363
378
|
}
|
|
364
379
|
}));
|
|
365
380
|
};
|
|
381
|
+
|
|
382
|
+
// --------------------------------- MAIN -------------------------------------
|
|
366
383
|
return /*#__PURE__*/_react.default.createElement(_Dropdown.DropdownContainer, {
|
|
367
384
|
width: width
|
|
368
385
|
}, multiSelect ? getAutocompleteMulti() : getAutocompleteSingle());
|
|
@@ -34,7 +34,6 @@ var ReportTable = exports.ReportTable = function ReportTable(props) {
|
|
|
34
34
|
color: "#1B30AA"
|
|
35
35
|
}), /*#__PURE__*/_react.default.createElement(_ReportTable.InfoText, null, "Download table to get the full data")));
|
|
36
36
|
};
|
|
37
|
-
var _default = exports.default = ReportTable;
|
|
38
37
|
ReportTable.defaultProps = {
|
|
39
38
|
tableData: {
|
|
40
39
|
columnsHeadings: [{
|
|
@@ -73,4 +72,5 @@ ReportTable.defaultProps = {
|
|
|
73
72
|
}]
|
|
74
73
|
},
|
|
75
74
|
maxColumnsNumber: 3
|
|
76
|
-
};
|
|
75
|
+
};
|
|
76
|
+
var _default = exports.default = ReportTable;
|
package/package.json
CHANGED
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
STORYBOOK_FIGMA_ACCESS_TOKEN=figd_YdAmQQKQ2B6ZngEijA0JiqNNUdJvP23G46NK7-fc
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
STORYBOOK_FIGMA_ACCESS_TOKEN=figd_MOcc8-aS91XJ3mFdtNlH4oPVY73ChHlmw6-hKhsb
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
env: {
|
|
3
|
-
browser: true,
|
|
4
|
-
es2021: true,
|
|
5
|
-
},
|
|
6
|
-
extends: 'airbnb',
|
|
7
|
-
overrides: [
|
|
8
|
-
{
|
|
9
|
-
env: {
|
|
10
|
-
node: true,
|
|
11
|
-
},
|
|
12
|
-
files: [
|
|
13
|
-
'.eslintrc.{js,cjs}',
|
|
14
|
-
],
|
|
15
|
-
parserOptions: {
|
|
16
|
-
sourceType: 'script',
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
],
|
|
20
|
-
parserOptions: {
|
|
21
|
-
ecmaVersion: 'latest',
|
|
22
|
-
sourceType: 'module',
|
|
23
|
-
},
|
|
24
|
-
rules: {
|
|
25
|
-
},
|
|
26
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
env: {
|
|
3
|
-
browser: true,
|
|
4
|
-
es2021: true,
|
|
5
|
-
},
|
|
6
|
-
extends: 'airbnb',
|
|
7
|
-
overrides: [
|
|
8
|
-
{
|
|
9
|
-
env: {
|
|
10
|
-
node: true,
|
|
11
|
-
},
|
|
12
|
-
files: [
|
|
13
|
-
'.eslintrc.{js,cjs}',
|
|
14
|
-
],
|
|
15
|
-
parserOptions: {
|
|
16
|
-
sourceType: 'script',
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
],
|
|
20
|
-
parserOptions: {
|
|
21
|
-
ecmaVersion: 'latest',
|
|
22
|
-
sourceType: 'module',
|
|
23
|
-
},
|
|
24
|
-
rules: {
|
|
25
|
-
'max-len': 'off',
|
|
26
|
-
},
|
|
27
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
env: {
|
|
3
|
-
browser: true,
|
|
4
|
-
es2021: true,
|
|
5
|
-
},
|
|
6
|
-
extends: 'airbnb',
|
|
7
|
-
overrides: [
|
|
8
|
-
{
|
|
9
|
-
env: {
|
|
10
|
-
node: true,
|
|
11
|
-
},
|
|
12
|
-
files: [
|
|
13
|
-
'.eslintrc.{js,cjs}',
|
|
14
|
-
],
|
|
15
|
-
parserOptions: {
|
|
16
|
-
sourceType: 'script',
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
],
|
|
20
|
-
parserOptions: {
|
|
21
|
-
ecmaVersion: 'latest',
|
|
22
|
-
sourceType: 'module',
|
|
23
|
-
},
|
|
24
|
-
rules: {
|
|
25
|
-
'max-len': 'off',
|
|
26
|
-
/*eslint linebreak-style: ["error", "windows"]*/
|
|
27
|
-
},
|
|
28
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
env: {
|
|
3
|
-
browser: true,
|
|
4
|
-
es2021: true,
|
|
5
|
-
},
|
|
6
|
-
extends: 'airbnb',
|
|
7
|
-
overrides: [
|
|
8
|
-
{
|
|
9
|
-
env: {
|
|
10
|
-
node: true,
|
|
11
|
-
},
|
|
12
|
-
files: [
|
|
13
|
-
'.eslintrc.{js,cjs}',
|
|
14
|
-
],
|
|
15
|
-
parserOptions: {
|
|
16
|
-
sourceType: 'script',
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
],
|
|
20
|
-
parserOptions: {
|
|
21
|
-
ecmaVersion: 'latest',
|
|
22
|
-
sourceType: 'module',
|
|
23
|
-
},
|
|
24
|
-
rules: {
|
|
25
|
-
'max-len': 'off',
|
|
26
|
-
eslint linebreak-style: ["error", "windows"]
|
|
27
|
-
},
|
|
28
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
env: {
|
|
3
|
-
browser: true,
|
|
4
|
-
es2021: true,
|
|
5
|
-
},
|
|
6
|
-
extends: 'airbnb',
|
|
7
|
-
overrides: [
|
|
8
|
-
{
|
|
9
|
-
env: {
|
|
10
|
-
node: true,
|
|
11
|
-
},
|
|
12
|
-
files: [
|
|
13
|
-
'.eslintrc.{js,cjs}',
|
|
14
|
-
],
|
|
15
|
-
parserOptions: {
|
|
16
|
-
sourceType: 'script',
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
],
|
|
20
|
-
parserOptions: {
|
|
21
|
-
ecmaVersion: 'latest',
|
|
22
|
-
sourceType: 'module',
|
|
23
|
-
},
|
|
24
|
-
rules: {
|
|
25
|
-
'max-len': 'off',
|
|
26
|
-
linebreak-style: ["error", "windows"]
|
|
27
|
-
},
|
|
28
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
env: {
|
|
3
|
-
browser: true,
|
|
4
|
-
es2021: true,
|
|
5
|
-
},
|
|
6
|
-
extends: 'airbnb',
|
|
7
|
-
overrides: [
|
|
8
|
-
{
|
|
9
|
-
env: {
|
|
10
|
-
node: true,
|
|
11
|
-
},
|
|
12
|
-
files: [
|
|
13
|
-
'.eslintrc.{js,cjs}',
|
|
14
|
-
],
|
|
15
|
-
parserOptions: {
|
|
16
|
-
sourceType: 'script',
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
],
|
|
20
|
-
parserOptions: {
|
|
21
|
-
ecmaVersion: 'latest',
|
|
22
|
-
sourceType: 'module',
|
|
23
|
-
},
|
|
24
|
-
rules: {
|
|
25
|
-
'max-len': 'off',
|
|
26
|
-
'linebreak-style': ["error", "windows"]
|
|
27
|
-
},
|
|
28
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
env: {
|
|
3
|
-
browser: true,
|
|
4
|
-
es2021: true,
|
|
5
|
-
},
|
|
6
|
-
extends: 'airbnb',
|
|
7
|
-
overrides: [
|
|
8
|
-
{
|
|
9
|
-
env: {
|
|
10
|
-
node: true,
|
|
11
|
-
},
|
|
12
|
-
files: [
|
|
13
|
-
'.eslintrc.{js,cjs}',
|
|
14
|
-
],
|
|
15
|
-
parserOptions: {
|
|
16
|
-
sourceType: 'script',
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
],
|
|
20
|
-
parserOptions: {
|
|
21
|
-
ecmaVersion: 'latest',
|
|
22
|
-
sourceType: 'module',
|
|
23
|
-
},
|
|
24
|
-
rules: {
|
|
25
|
-
'max-len': 'off',
|
|
26
|
-
'linebreak-style': ['error', 'windows']
|
|
27
|
-
},
|
|
28
|
-
};
|