sag_components 1.0.382 → 1.0.384
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.
|
@@ -32,7 +32,8 @@ var checkedIcon = /*#__PURE__*/_react.default.createElement(_CheckBox.default, {
|
|
|
32
32
|
* SAG DropdownMulti
|
|
33
33
|
*/
|
|
34
34
|
var DropdownMulti = exports.DropdownMulti = function DropdownMulti(_ref) {
|
|
35
|
-
var
|
|
35
|
+
var name = _ref.name,
|
|
36
|
+
_ref$width = _ref.width,
|
|
36
37
|
width = _ref$width === void 0 ? "100%" : _ref$width,
|
|
37
38
|
size = _ref.size,
|
|
38
39
|
text = _ref.text,
|
|
@@ -170,6 +171,7 @@ var DropdownMulti = exports.DropdownMulti = function DropdownMulti(_ref) {
|
|
|
170
171
|
};
|
|
171
172
|
var onChangeHandler = function onChangeHandler(event, newValue) {
|
|
172
173
|
setSelectedOptionsState(newValue);
|
|
174
|
+
console.log("newValue", newValue, selectedOptionsState[0]);
|
|
173
175
|
onChange({
|
|
174
176
|
syntheticBaseEvent: event,
|
|
175
177
|
newValue: newValue
|
|
@@ -201,6 +203,7 @@ var DropdownMulti = exports.DropdownMulti = function DropdownMulti(_ref) {
|
|
|
201
203
|
return selectedOptionsState && /*#__PURE__*/_react.default.createElement(_styles.ThemeProvider, {
|
|
202
204
|
theme: theme
|
|
203
205
|
}, /*#__PURE__*/_react.default.createElement(_Autocomplete.default, {
|
|
206
|
+
class: name,
|
|
204
207
|
onChange: function onChange(event, newValue) {
|
|
205
208
|
onChangeHandler(event, newValue);
|
|
206
209
|
},
|
|
@@ -228,7 +231,7 @@ var DropdownMulti = exports.DropdownMulti = function DropdownMulti(_ref) {
|
|
|
228
231
|
icon: icon,
|
|
229
232
|
checkedIcon: checkedIcon,
|
|
230
233
|
checked: selected //{isOptionChecked(option)} //
|
|
231
|
-
}), option.label);
|
|
234
|
+
}), option.label, /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, " ", console.log("selected", option, selected)));
|
|
232
235
|
},
|
|
233
236
|
renderInput: function renderInput(params) {
|
|
234
237
|
console.log("params", params);
|
|
@@ -236,9 +239,8 @@ var DropdownMulti = exports.DropdownMulti = function DropdownMulti(_ref) {
|
|
|
236
239
|
/*#__PURE__*/
|
|
237
240
|
//showSearchIcon &&
|
|
238
241
|
_react.default.createElement(_TextField.default, Object.assign({}, params, {
|
|
239
|
-
variant: "outlined"
|
|
240
|
-
|
|
241
|
-
,
|
|
242
|
+
variant: "outlined",
|
|
243
|
+
label: text,
|
|
242
244
|
size: size,
|
|
243
245
|
sx: getTextFieldStyleMulti(),
|
|
244
246
|
placeholder: placeHolder,
|