@iobroker/adapter-react-v5 4.3.2 → 4.4.0
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/Components/JsonConfigComponent/ChipInput.d.ts +3 -4
- package/Components/JsonConfigComponent/ChipInput.js +57 -67
- package/Components/JsonConfigComponent/ChipInput.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigAccordion.js +14 -17
- package/Components/JsonConfigComponent/ConfigAccordion.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigAlive.js +4 -4
- package/Components/JsonConfigComponent/ConfigAlive.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigAutocomplete.js +5 -5
- package/Components/JsonConfigComponent/ConfigAutocomplete.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigAutocompleteSendTo.js +61 -64
- package/Components/JsonConfigComponent/ConfigAutocompleteSendTo.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigCRON.js +8 -8
- package/Components/JsonConfigComponent/ConfigCRON.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigCertCollection.js +1 -1
- package/Components/JsonConfigComponent/ConfigCertCollection.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigCertificateSelect.js +18 -22
- package/Components/JsonConfigComponent/ConfigCertificateSelect.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigCertificates.js +20 -23
- package/Components/JsonConfigComponent/ConfigCertificates.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigCheckLicense.js +224 -126
- package/Components/JsonConfigComponent/ConfigCheckLicense.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigCheckbox.js +7 -10
- package/Components/JsonConfigComponent/ConfigCheckbox.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigChip.js +7 -8
- package/Components/JsonConfigComponent/ConfigChip.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigColor.d.ts +20 -13
- package/Components/JsonConfigComponent/ConfigColor.js +12 -16
- package/Components/JsonConfigComponent/ConfigColor.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigCoordinates.js +13 -17
- package/Components/JsonConfigComponent/ConfigCoordinates.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigCustom.js +48 -45
- package/Components/JsonConfigComponent/ConfigCustom.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigDatePicker.js +2 -2
- package/Components/JsonConfigComponent/ConfigDatePicker.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigFile.js +39 -36
- package/Components/JsonConfigComponent/ConfigFile.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigFileSelector.js +96 -94
- package/Components/JsonConfigComponent/ConfigFileSelector.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigFunc.js +10 -10
- package/Components/JsonConfigComponent/ConfigFunc.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigGeneric.d.ts +2 -2
- package/Components/JsonConfigComponent/ConfigGeneric.js +240 -243
- package/Components/JsonConfigComponent/ConfigGeneric.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigIP.js +6 -6
- package/Components/JsonConfigComponent/ConfigIP.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigImageSendTo.js +2 -1
- package/Components/JsonConfigComponent/ConfigImageSendTo.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigImageUpload.js +5 -5
- package/Components/JsonConfigComponent/ConfigImageUpload.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigInstanceSelect.js +14 -14
- package/Components/JsonConfigComponent/ConfigInstanceSelect.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigJsonEditor.js +3 -3
- package/Components/JsonConfigComponent/ConfigJsonEditor.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigLanguage.js +7 -7
- package/Components/JsonConfigComponent/ConfigLanguage.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigLicense.d.ts +1 -1
- package/Components/JsonConfigComponent/ConfigLicense.js +2 -1
- package/Components/JsonConfigComponent/ConfigLicense.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigNumber.js +55 -56
- package/Components/JsonConfigComponent/ConfigNumber.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigObjectId.js +7 -7
- package/Components/JsonConfigComponent/ConfigObjectId.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigPanel.js +72 -69
- package/Components/JsonConfigComponent/ConfigPanel.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigPassword.js +8 -5
- package/Components/JsonConfigComponent/ConfigPassword.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigPattern.js +1 -1
- package/Components/JsonConfigComponent/ConfigPattern.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigPort.js +6 -7
- package/Components/JsonConfigComponent/ConfigPort.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigRoom.js +10 -10
- package/Components/JsonConfigComponent/ConfigRoom.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigSelect.js +12 -12
- package/Components/JsonConfigComponent/ConfigSelect.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigSelectSendTo.js +95 -106
- package/Components/JsonConfigComponent/ConfigSelectSendTo.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigSendto.js +26 -19
- package/Components/JsonConfigComponent/ConfigSendto.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigSetState.js +13 -31
- package/Components/JsonConfigComponent/ConfigSetState.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigSlider.js +2 -3
- package/Components/JsonConfigComponent/ConfigSlider.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigStaticDivider.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigStaticHeader.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigStaticImage.js +5 -3
- package/Components/JsonConfigComponent/ConfigStaticImage.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigStaticText.js +12 -13
- package/Components/JsonConfigComponent/ConfigStaticText.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigTable.js +24 -25
- package/Components/JsonConfigComponent/ConfigTable.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigTabs.js +3 -3
- package/Components/JsonConfigComponent/ConfigTabs.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigText.js +61 -64
- package/Components/JsonConfigComponent/ConfigText.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigTextSendTo.js +5 -5
- package/Components/JsonConfigComponent/ConfigTextSendTo.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigTimePicker.js +3 -3
- package/Components/JsonConfigComponent/ConfigTimePicker.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigTopic.js +3 -3
- package/Components/JsonConfigComponent/ConfigTopic.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigUUID.js +3 -1
- package/Components/JsonConfigComponent/ConfigUUID.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigUser.js +1 -1
- package/Components/JsonConfigComponent/ConfigUser.js.map +1 -1
- package/Components/JsonConfigComponent/index.d.ts +0 -2
- package/Components/JsonConfigComponent/index.js +39 -45
- package/Components/JsonConfigComponent/index.js.map +1 -1
- package/README.md +4 -1
- package/i18n/de.json +7 -1
- package/i18n/en.json +7 -1
- package/i18n/es.json +7 -1
- package/i18n/fr.json +7 -1
- package/i18n/it.json +7 -1
- package/i18n/nl.json +7 -1
- package/i18n/pl.json +7 -1
- package/i18n/pt.json +7 -1
- package/i18n/ru.json +7 -1
- package/i18n/uk.json +7 -1
- package/i18n/zh-cn.json +7 -1
- package/package.json +4 -4
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export default _default;
|
|
3
|
-
export function defaultChipRenderer({ value, text, isFocused, isDisabled, isReadOnly, handleClick, handleDelete, className, }: {
|
|
4
|
-
value: any;
|
|
1
|
+
export function defaultChipRenderer({ text, isFocused, isDisabled, isReadOnly, handleClick, handleDelete, className, }: {
|
|
5
2
|
text: any;
|
|
6
3
|
isFocused: any;
|
|
7
4
|
isDisabled: any;
|
|
@@ -10,4 +7,6 @@ export function defaultChipRenderer({ value, text, isFocused, isDisabled, isRead
|
|
|
10
7
|
handleDelete: any;
|
|
11
8
|
className: any;
|
|
12
9
|
}, key: any): React.JSX.Element;
|
|
10
|
+
declare const _default: React.JSXElementConstructor<any>;
|
|
11
|
+
export default _default;
|
|
13
12
|
import React from 'react';
|
|
@@ -18,15 +18,10 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
18
18
|
var _react = _interopRequireDefault(require("react"));
|
|
19
19
|
var _reactDom = _interopRequireDefault(require("react-dom"));
|
|
20
20
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
21
|
-
var
|
|
21
|
+
var _styles = require("@mui/styles");
|
|
22
|
+
var _material = require("@mui/material");
|
|
22
23
|
var _FilledInput = _interopRequireDefault(require("@mui/material/FilledInput/FilledInput"));
|
|
23
|
-
var _OutlinedInput = _interopRequireDefault(require("@mui/material/OutlinedInput"));
|
|
24
|
-
var _InputLabel = _interopRequireDefault(require("@mui/material/InputLabel"));
|
|
25
|
-
var _Chip = _interopRequireDefault(require("@mui/material/Chip"));
|
|
26
|
-
var _withStyles = _interopRequireDefault(require("@mui/styles/withStyles"));
|
|
27
24
|
var _blue = _interopRequireDefault(require("@mui/material/colors/blue"));
|
|
28
|
-
var _FormControl = _interopRequireDefault(require("@mui/material/FormControl"));
|
|
29
|
-
var _FormHelperText = _interopRequireDefault(require("@mui/material/FormHelperText"));
|
|
30
25
|
var _Utils = _interopRequireDefault(require("../Utils"));
|
|
31
26
|
var _excluded = ["allowDuplicates", "alwaysShowPlaceholder", "blurBehavior", "children", "chipRenderer", "classes", "className", "clearInputValueOnChange", "dataSource", "dataSourceConfig", "defaultValue", "delayBeforeAdd", "disabled", "disableUnderline", "error", "filter", "FormHelperTextProps", "fullWidth", "fullWidthInput", "helperText", "id", "InputProps", "inputRef", "InputLabelProps", "inputValue", "label", "newChipKeyCodes", "newChipKeys", "onBeforeAdd", "onAdd", "onBlur", "onDelete", "onChange", "onFocus", "onKeyDown", "onKeyPress", "onKeyUp", "onUpdateInput", "placeholder", "readOnly", "required", "rootRef", "value", "variant"];
|
|
32
27
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -37,9 +32,9 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
37
32
|
* Copyright (c) 2014 Call-Em-All (https://github.com/callemall/material-ui)
|
|
38
33
|
*/
|
|
39
34
|
var variantComponent = {
|
|
40
|
-
standard:
|
|
35
|
+
standard: _material.Input,
|
|
41
36
|
filled: _FilledInput["default"],
|
|
42
|
-
outlined:
|
|
37
|
+
outlined: _material.OutlinedInput
|
|
43
38
|
};
|
|
44
39
|
var styles = function styles(theme) {
|
|
45
40
|
var light = theme.palette.type === 'light';
|
|
@@ -199,6 +194,27 @@ var keyCodes = {
|
|
|
199
194
|
LEFT_ARROW: 37,
|
|
200
195
|
RIGHT_ARROW: 39
|
|
201
196
|
};
|
|
197
|
+
var defaultChipRenderer = function defaultChipRenderer(_ref, key) {
|
|
198
|
+
var text = _ref.text,
|
|
199
|
+
isFocused = _ref.isFocused,
|
|
200
|
+
isDisabled = _ref.isDisabled,
|
|
201
|
+
isReadOnly = _ref.isReadOnly,
|
|
202
|
+
handleClick = _ref.handleClick,
|
|
203
|
+
handleDelete = _ref.handleDelete,
|
|
204
|
+
className = _ref.className;
|
|
205
|
+
return /*#__PURE__*/_react["default"].createElement(_material.Chip, {
|
|
206
|
+
key: key,
|
|
207
|
+
className: className,
|
|
208
|
+
style: {
|
|
209
|
+
pointerEvents: isDisabled || isReadOnly ? 'none' : undefined,
|
|
210
|
+
backgroundColor: isFocused ? _blue["default"][300] : undefined
|
|
211
|
+
},
|
|
212
|
+
onClick: handleClick,
|
|
213
|
+
onDelete: handleDelete,
|
|
214
|
+
label: text
|
|
215
|
+
});
|
|
216
|
+
};
|
|
217
|
+
exports.defaultChipRenderer = defaultChipRenderer;
|
|
202
218
|
var ChipInput = /*#__PURE__*/function (_React$Component) {
|
|
203
219
|
(0, _inherits2["default"])(ChipInput, _React$Component);
|
|
204
220
|
var _super = _createSuper(ChipInput);
|
|
@@ -206,16 +222,15 @@ var ChipInput = /*#__PURE__*/function (_React$Component) {
|
|
|
206
222
|
var _this;
|
|
207
223
|
(0, _classCallCheck2["default"])(this, ChipInput);
|
|
208
224
|
_this = _super.call(this, props);
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
});
|
|
225
|
+
/**
|
|
226
|
+
* Blurs this component.
|
|
227
|
+
* @public
|
|
228
|
+
*/
|
|
229
|
+
// blur() {
|
|
230
|
+
// if (this.input) {
|
|
231
|
+
// this.actualInput.blur();
|
|
232
|
+
// }
|
|
233
|
+
// }
|
|
219
234
|
/**
|
|
220
235
|
* Focuses this component.
|
|
221
236
|
* @public
|
|
@@ -330,18 +345,18 @@ var ChipInput = /*#__PURE__*/function (_React$Component) {
|
|
|
330
345
|
}
|
|
331
346
|
break;
|
|
332
347
|
case keyCodes.LEFT_ARROW:
|
|
333
|
-
if (focusedChip
|
|
348
|
+
if (focusedChip === null && event.target.value === '' && chips.length) {
|
|
334
349
|
_this.setState({
|
|
335
350
|
focusedChip: chips.length - 1
|
|
336
351
|
});
|
|
337
|
-
} else if (focusedChip
|
|
352
|
+
} else if (focusedChip !== null && focusedChip > 0) {
|
|
338
353
|
_this.setState({
|
|
339
354
|
focusedChip: focusedChip - 1
|
|
340
355
|
});
|
|
341
356
|
}
|
|
342
357
|
break;
|
|
343
358
|
case keyCodes.RIGHT_ARROW:
|
|
344
|
-
if (focusedChip
|
|
359
|
+
if (focusedChip !== null && focusedChip < chips.length - 1) {
|
|
345
360
|
_this.setState({
|
|
346
361
|
focusedChip: focusedChip + 1
|
|
347
362
|
});
|
|
@@ -375,7 +390,7 @@ var ChipInput = /*#__PURE__*/function (_React$Component) {
|
|
|
375
390
|
}
|
|
376
391
|
});
|
|
377
392
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "handleUpdateInput", function (e) {
|
|
378
|
-
if (_this.props.inputValue
|
|
393
|
+
if (_this.props.inputValue === null || _this.props.inputValue === undefined) {
|
|
379
394
|
_this.updateInput(e.target.value);
|
|
380
395
|
}
|
|
381
396
|
if (_this.props.onUpdateInput) {
|
|
@@ -390,6 +405,14 @@ var ChipInput = /*#__PURE__*/function (_React$Component) {
|
|
|
390
405
|
_this.actualInput = ref;
|
|
391
406
|
_this.props.inputRef && _this.props.inputRef(ref);
|
|
392
407
|
});
|
|
408
|
+
_this.state = {
|
|
409
|
+
chips: [],
|
|
410
|
+
focusedChip: null,
|
|
411
|
+
inputValue: '',
|
|
412
|
+
isFocused: false,
|
|
413
|
+
chipsUpdated: false,
|
|
414
|
+
prevPropsValue: []
|
|
415
|
+
};
|
|
393
416
|
if (props.defaultValue) {
|
|
394
417
|
_this.state.chips = props.defaultValue;
|
|
395
418
|
}
|
|
@@ -401,6 +424,7 @@ var ChipInput = /*#__PURE__*/function (_React$Component) {
|
|
|
401
424
|
key: "componentDidMount",
|
|
402
425
|
value: function componentDidMount() {
|
|
403
426
|
if (this.props.variant === 'outlined') {
|
|
427
|
+
// eslint-disable-next-line react/no-find-dom-node
|
|
404
428
|
this.labelNode = _reactDom["default"].findDOMNode(this.labelRef.current);
|
|
405
429
|
this.forceUpdate();
|
|
406
430
|
}
|
|
@@ -410,18 +434,6 @@ var ChipInput = /*#__PURE__*/function (_React$Component) {
|
|
|
410
434
|
value: function componentWillUnmount() {
|
|
411
435
|
clearTimeout(this.inputBlurTimeout);
|
|
412
436
|
}
|
|
413
|
-
}, {
|
|
414
|
-
key: "blur",
|
|
415
|
-
value:
|
|
416
|
-
/**
|
|
417
|
-
* Blurs this component.
|
|
418
|
-
* @public
|
|
419
|
-
*/
|
|
420
|
-
function blur() {
|
|
421
|
-
if (this.input) {
|
|
422
|
-
this.actualInput.blur();
|
|
423
|
-
}
|
|
424
|
-
}
|
|
425
437
|
}, {
|
|
426
438
|
key: "handleAddChip",
|
|
427
439
|
value:
|
|
@@ -581,13 +593,13 @@ var ChipInput = /*#__PURE__*/function (_React$Component) {
|
|
|
581
593
|
return c.trim();
|
|
582
594
|
});
|
|
583
595
|
}
|
|
584
|
-
var actualInputValue = inputValue
|
|
596
|
+
var actualInputValue = inputValue !== null && inputValue !== void 0 ? inputValue : this.state.inputValue;
|
|
585
597
|
var hasInput = (this.props.value || actualInputValue).length || actualInputValue.length;
|
|
586
|
-
var shrinkFloatingLabel = InputLabelProps.shrink
|
|
598
|
+
var shrinkFloatingLabel = typeof InputLabelProps.shrink === 'boolean' ? InputLabelProps.shrink : label !== null && (hasInput || this.state.isFocused || chips.length);
|
|
587
599
|
var chipComponents = chips.map(function (chip, i) {
|
|
588
|
-
var
|
|
600
|
+
var value_ = dataSourceConfig ? chip[dataSourceConfig.value] : chip;
|
|
589
601
|
return chipRenderer({
|
|
590
|
-
value:
|
|
602
|
+
value: value_,
|
|
591
603
|
text: dataSourceConfig ? chip[dataSourceConfig.text] : chip,
|
|
592
604
|
chip: chip,
|
|
593
605
|
isDisabled: !!disabled,
|
|
@@ -610,12 +622,12 @@ var ChipInput = /*#__PURE__*/function (_React$Component) {
|
|
|
610
622
|
InputMore.labelWidth = shrinkFloatingLabel && this.labelNode && this.labelNode.offsetWidth || 0;
|
|
611
623
|
}
|
|
612
624
|
if (variant !== 'standard') {
|
|
613
|
-
InputMore.startAdornment =
|
|
625
|
+
InputMore.startAdornment = chipComponents;
|
|
614
626
|
} else {
|
|
615
627
|
InputProps.disableUnderline = true;
|
|
616
628
|
}
|
|
617
629
|
var InputComponent = variantComponent[variant];
|
|
618
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
630
|
+
return /*#__PURE__*/_react["default"].createElement(_material.FormControl, (0, _extends2["default"])({
|
|
619
631
|
ref: rootRef,
|
|
620
632
|
fullWidth: fullWidth,
|
|
621
633
|
className: _Utils["default"].clsx(className, classes.root, other.margin === 'dense' && classes.marginDense),
|
|
@@ -624,7 +636,7 @@ var ChipInput = /*#__PURE__*/function (_React$Component) {
|
|
|
624
636
|
onClick: this.focus,
|
|
625
637
|
disabled: disabled,
|
|
626
638
|
variant: variant
|
|
627
|
-
}, other), label && /*#__PURE__*/_react["default"].createElement(
|
|
639
|
+
}, other), label && /*#__PURE__*/_react["default"].createElement(_material.InputLabel, (0, _extends2["default"])({
|
|
628
640
|
htmlFor: id,
|
|
629
641
|
classes: {
|
|
630
642
|
root: _Utils["default"].clsx(classes[variant], classes.label),
|
|
@@ -654,9 +666,9 @@ var ChipInput = /*#__PURE__*/function (_React$Component) {
|
|
|
654
666
|
inputRef: this.setActualInputRef,
|
|
655
667
|
disabled: disabled,
|
|
656
668
|
fullWidth: fullWidthInput,
|
|
657
|
-
placeholder: !hasInput && (shrinkFloatingLabel || label
|
|
669
|
+
placeholder: !hasInput && (shrinkFloatingLabel || label === null || label === undefined) || alwaysShowPlaceholder ? placeholder : null,
|
|
658
670
|
readOnly: readOnly
|
|
659
|
-
}, InputProps, InputMore))), helperText && /*#__PURE__*/_react["default"].createElement(
|
|
671
|
+
}, InputProps, InputMore))), helperText && /*#__PURE__*/_react["default"].createElement(_material.FormHelperText, (0, _extends2["default"])({}, FormHelperTextProps, {
|
|
660
672
|
className: FormHelperTextProps ? _Utils["default"].clsx(FormHelperTextProps.className, classes.helperText) : classes.helperText
|
|
661
673
|
}), helperText));
|
|
662
674
|
}
|
|
@@ -772,30 +784,8 @@ ChipInput.defaultProps = {
|
|
|
772
784
|
newChipKeys: ['Enter'],
|
|
773
785
|
variant: 'standard'
|
|
774
786
|
};
|
|
775
|
-
var _default = (0,
|
|
787
|
+
var _default = (0, _styles.withStyles)(styles, {
|
|
776
788
|
name: 'WAMuiChipInput'
|
|
777
789
|
})(ChipInput);
|
|
778
790
|
exports["default"] = _default;
|
|
779
|
-
var defaultChipRenderer = function defaultChipRenderer(_ref, key) {
|
|
780
|
-
var value = _ref.value,
|
|
781
|
-
text = _ref.text,
|
|
782
|
-
isFocused = _ref.isFocused,
|
|
783
|
-
isDisabled = _ref.isDisabled,
|
|
784
|
-
isReadOnly = _ref.isReadOnly,
|
|
785
|
-
handleClick = _ref.handleClick,
|
|
786
|
-
handleDelete = _ref.handleDelete,
|
|
787
|
-
className = _ref.className;
|
|
788
|
-
return /*#__PURE__*/_react["default"].createElement(_Chip["default"], {
|
|
789
|
-
key: key,
|
|
790
|
-
className: className,
|
|
791
|
-
style: {
|
|
792
|
-
pointerEvents: isDisabled || isReadOnly ? 'none' : undefined,
|
|
793
|
-
backgroundColor: isFocused ? _blue["default"][300] : undefined
|
|
794
|
-
},
|
|
795
|
-
onClick: handleClick,
|
|
796
|
-
onDelete: handleDelete,
|
|
797
|
-
label: text
|
|
798
|
-
});
|
|
799
|
-
};
|
|
800
|
-
exports.defaultChipRenderer = defaultChipRenderer;
|
|
801
791
|
//# sourceMappingURL=ChipInput.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChipInput.js","names":["_react","_interopRequireDefault","require","_reactDom","_propTypes","_Input","_FilledInput","_OutlinedInput","_InputLabel","_Chip","_withStyles","_blue","_FormControl","_FormHelperText","_Utils","_excluded","ownKeys","object","enumerableOnly","keys","Object","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","target","i","arguments","length","source","forEach","key","_defineProperty2","getOwnPropertyDescriptors","defineProperties","defineProperty","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","Reflect","construct","_possibleConstructorReturn2","sham","Proxy","Boolean","prototype","valueOf","call","e","variantComponent","standard","Input","filled","FilledInput","outlined","OutlinedInput","styles","theme","light","palette","type","bottomLineColor","root","inputRoot","display","flexWrap","flex","marginTop","minWidth","boxSizing","paddingTop","input","textOverflow","overflow","whiteSpace","appearance","WebkitTapHighlightColor","chipContainer","flexFlow","cursor","marginBottom","minHeight","height","paddingBottom","labeled","label","top","labelShrink","helperText","focused","disabled","underline","borderBottom","concat","primary","left","bottom","content","position","right","transform","transition","transitions","create","duration","shorter","easing","easeOut","pointerEvents","borderBottomColor","error","main","text","borderBottomStyle","backgroundColor","chip","margin","marginDense","keyCodes","BACKSPACE","DELETE","LEFT_ARROW","RIGHT_ARROW","ChipInput","_React$Component","_inherits2","_super","props","_this","_classCallCheck2","_assertThisInitialized2","chips","errorText","undefined","focusedChip","inputValue","isClean","isFocused","chipsUpdated","prevPropsValue","actualInput","focus","state","setState","event","onBlur","value","addChipOptions","blurBehavior","clearInputOnFail","delayBeforeAdd","numChipsBefore","inputBlurTimeout","setTimeout","numChipsAfter","handleAddChip","clearInput","onFocus","_keyPressed","_preventChipCreation","onKeyDown","isDefaultPrevented","newChipKeyCodes","includes","keyCode","newChipKeys","preventDefault","handleDeleteChip","indexOf","updateInput","onKeyUp","onKeyPress","onUpdateInput","ref","inputRef","defaultValue","labelRef","React","createRef","_createClass2","componentDidMount","variant","labelNode","ReactDOM","findDOMNode","current","forceUpdate","componentWillUnmount","clearTimeout","blur","options","_this2","onBeforeAdd","dataSourceConfig","_chip","allowDuplicates","some","c","onAdd","updateChips","_toConsumableArray2","trim","slice","changed","splice","onDelete","additionalUpdates","onChange","render","_this3","_this$props","alwaysShowPlaceholder","children","_this$props$chipRende","chipRenderer","defaultChipRenderer","classes","className","clearInputValueOnChange","dataSource","disableUnderline","FormHelperTextProps","fullWidth","fullWidthInput","id","_this$props$InputProp","InputProps","_this$props$InputLabe","InputLabelProps","placeholder","readOnly","required","rootRef","other","_objectWithoutProperties2","Array","isArray","toString","split","map","actualInputValue","hasInput","shrinkFloatingLabel","shrink","chipComponents","isDisabled","isReadOnly","handleClick","handleDelete","InputMore","notched","labelWidth","offsetWidth","startAdornment","createElement","Fragment","InputComponent","_extends2","Utils","clsx","onClick","htmlFor","handleUpdateInput","handleKeyDown","handleKeyPress","handleKeyUp","handleInputFocus","handleInputBlur","setActualInputRef","getDerivedStateFromProps","newState","Component","propTypes","PropTypes","bool","oneOf","func","array","shape","string","isRequired","node","arrayOf","number","defaultProps","_default","withStyles","name","exports","_ref","style","blue"],"sources":["JsonConfigComponent/ChipInput.jsx"],"sourcesContent":["/**\n * Notice: Some code was adapted from Material-UI's text field.\n * Copyright (c) 2014 Call-Em-All (https://github.com/callemall/material-ui)\n */\nimport React from 'react'\nimport ReactDOM from 'react-dom'\nimport PropTypes from 'prop-types'\nimport Input from '@mui/material/Input'\nimport FilledInput from '@mui/material/FilledInput/FilledInput'\nimport OutlinedInput from '@mui/material/OutlinedInput'\nimport InputLabel from '@mui/material/InputLabel'\nimport Chip from '@mui/material/Chip'\nimport withStyles from '@mui/styles/withStyles'\nimport blue from '@mui/material/colors/blue'\nimport FormControl from '@mui/material/FormControl'\nimport FormHelperText from '@mui/material/FormHelperText'\nimport Utils from '../Utils';\n\nconst variantComponent = {\n standard: Input,\n filled: FilledInput,\n outlined: OutlinedInput,\n};\n\nconst styles = theme => {\n const light = theme.palette.type === 'light';\n const bottomLineColor = light ? 'rgba(0, 0, 0, 0.42)' : 'rgba(255, 255, 255, 0.7)';\n\n return {\n root: {},\n inputRoot: {\n display: 'inline-flex',\n flexWrap: 'wrap',\n flex: 1,\n marginTop: 0,\n minWidth: 70,\n '&$outlined,&$filled': {\n boxSizing: 'border-box',\n },\n '&$outlined': {\n paddingTop: 14,\n },\n '&$filled': {\n paddingTop: 28,\n },\n },\n input: {\n display: 'inline-block',\n textOverflow: 'ellipsis',\n overflow: 'hidden',\n whiteSpace: 'nowrap',\n appearance: 'none', // Remove border in Safari, doesn't seem to break anything in other browsers\n WebkitTapHighlightColor: 'rgba(0,0,0,0)', // Remove mobile color flashing (deprecated style).\n float: 'left',\n flex: 1,\n },\n chipContainer: {\n display: 'flex',\n flexFlow: 'row wrap',\n cursor: 'text',\n marginBottom: -2,\n minHeight: 40,\n '&$labeled&$standard': {\n marginTop: 18,\n },\n },\n outlined: {\n '& input': {\n height: 16,\n paddingTop: 4,\n paddingBottom: 12,\n marginTop: 4,\n marginBottom: 4,\n },\n },\n standard: {},\n filled: {\n '& input': {\n height: 22,\n marginBottom: 4,\n marginTop: 4,\n paddingTop: 0,\n },\n '$marginDense & input': {\n height: 26,\n },\n },\n labeled: {},\n label: {\n top: 4,\n '&$outlined&:not($labelShrink)': {\n top: 2,\n '$marginDense &': {\n top: 5,\n },\n },\n '&$filled&:not($labelShrink)': {\n top: 15,\n '$marginDense &': {\n top: 20,\n },\n },\n },\n labelShrink: {\n top: 0,\n },\n helperText: {\n marginBottom: -20,\n },\n focused: {},\n disabled: {},\n underline: {\n '&:after': {\n borderBottom: `2px solid ${theme.palette.primary[light ? 'dark' : 'light']}`,\n left: 0,\n bottom: 0,\n // Doing the other way around a crash on IE 11 \"''\" https://github.com/cssinjs/jss/issues/242\n content: '\"\"',\n position: 'absolute',\n right: 0,\n transform: 'scaleX(0)',\n transition: theme.transitions.create('transform', {\n duration: theme.transitions.duration.shorter,\n easing: theme.transitions.easing.easeOut,\n }),\n pointerEvents: 'none', // Transparent to the hover style.\n },\n '&$focused:after': {\n transform: 'scaleX(1)',\n },\n '&$error:after': {\n borderBottomColor: theme.palette.error.main,\n transform: 'scaleX(1)', // error is always underlined in red\n },\n '&:before': {\n borderBottom: `1px solid ${bottomLineColor}`,\n left: 0,\n bottom: 0,\n // Doing the other way around a crash on IE 11 \"''\" https://github.com/cssinjs/jss/issues/242\n content: '\"\\\\00a0\"',\n position: 'absolute',\n right: 0,\n transition: theme.transitions.create('border-bottom-color', {\n duration: theme.transitions.duration.shorter,\n }),\n pointerEvents: 'none', // Transparent to the hover style.\n },\n '&:hover:not($disabled):not($focused):not($error):before': {\n borderBottom: `2px solid ${theme.palette.text.primary}`,\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n borderBottom: `1px solid ${bottomLineColor}`,\n },\n },\n '&$disabled:before': {\n borderBottomStyle: 'dotted',\n },\n },\n error: {\n '&:after': {\n backgroundColor: theme.palette.error.main,\n transform: 'scaleX(1)', // error is always underlined in red\n },\n },\n chip: {\n margin: '0 8px 8px 0',\n float: 'left',\n },\n marginDense: {},\n }\n};\n\nconst keyCodes = {\n BACKSPACE: 8,\n DELETE: 46,\n LEFT_ARROW: 37,\n RIGHT_ARROW: 39,\n};\n\nclass ChipInput extends React.Component {\n state = {\n chips: [],\n errorText: undefined,\n focusedChip: null,\n inputValue: '',\n isClean: true,\n isFocused: false,\n chipsUpdated: false,\n prevPropsValue: [],\n };\n\n constructor(props) {\n super(props);\n if (props.defaultValue) {\n this.state.chips = props.defaultValue;\n }\n this.labelRef = React.createRef();\n this.input = React.createRef();\n }\n\n componentDidMount() {\n if (this.props.variant === 'outlined') {\n this.labelNode = ReactDOM.findDOMNode(this.labelRef.current);\n this.forceUpdate();\n }\n }\n\n componentWillUnmount() {\n clearTimeout(this.inputBlurTimeout);\n }\n\n static getDerivedStateFromProps(props, state) {\n let newState = null;\n\n if (props.value && props.value.length !== state.prevPropsValue.length) {\n newState = { prevPropsValue: props.value };\n if (props.clearInputValueOnChange) {\n newState.inputValue = '';\n }\n }\n\n // if change detection is only needed for clearInputValueOnChange\n if (props.clearInputValueOnChange && props.value && props.value.length !== state.prevPropsValue.length) {\n newState = { prevPropsValue: props.value, inputValue: '' };\n }\n\n if (props.disabled) {\n newState = { ...newState, focusedChip: null };\n }\n\n if (!state.chipsUpdated && props.defaultValue) {\n newState = { ...newState, chips: props.defaultValue };\n }\n\n return newState;\n }\n\n /**\n * Blurs this component.\n * @public\n */\n blur() {\n if (this.input) {\n this.actualInput.blur();\n }\n }\n\n /**\n * Focuses this component.\n * @public\n */\n focus = () => {\n this.actualInput.focus();\n if (this.state.focusedChip) {\n this.setState({ focusedChip: null });\n }\n }\n\n handleInputBlur = event => {\n if (this.props.onBlur) {\n this.props.onBlur(event);\n }\n this.setState({ isFocused: false });\n if (this.state.focusedChip) {\n this.setState({ focusedChip: null });\n }\n const value = event.target.value;\n let addChipOptions;\n switch (this.props.blurBehavior) {\n case 'add-or-clear':\n addChipOptions = { clearInputOnFail: true };\n // falls through\n case 'add':\n if (this.props.delayBeforeAdd) {\n // Let's assume that we only want to add the existing content as chip, when\n // another event has not added a chip within 200ms.\n // e.g., onSelection Callback in Autocomplete case\n const numChipsBefore = (this.props.value || this.state.chips).length;\n this.inputBlurTimeout = setTimeout(() => {\n const numChipsAfter = (this.props.value || this.state.chips).length;\n if (numChipsBefore === numChipsAfter) {\n this.handleAddChip(value, addChipOptions);\n } else {\n this.clearInput();\n }\n }, 150);\n } else {\n this.handleAddChip(value, addChipOptions);\n }\n break;\n\n case 'clear':\n this.clearInput();\n break;\n\n default:\n break;\n }\n }\n\n handleInputFocus = event => {\n this.setState({ isFocused: true });\n if (this.props.onFocus) {\n this.props.onFocus(event);\n }\n }\n\n handleKeyDown = event => {\n const { focusedChip } = this.state;\n this._keyPressed = false;\n this._preventChipCreation = false;\n\n if (this.props.onKeyDown) {\n // Needed for arrow controls on a menu in autocomplete scenario\n this.props.onKeyDown(event);\n // Check if the callback marked the event as isDefaultPrevented() and skip further actions\n // enter key, for example, should not always add the current value of the inputField\n if (event.isDefaultPrevented()) {\n return;\n }\n }\n const chips = this.props.value || this.state.chips;\n if (this.props.newChipKeyCodes.includes(event.keyCode) || this.props.newChipKeys.includes(event.key)) {\n const result = this.handleAddChip(event.target.value);\n if (result !== false) {\n event.preventDefault();\n }\n return;\n }\n\n switch (event.keyCode) {\n case keyCodes.BACKSPACE:\n if (event.target.value === '') {\n if (focusedChip) {\n this.handleDeleteChip(chips[focusedChip], focusedChip);\n if (focusedChip) {\n this.setState({ focusedChip: focusedChip - 1 });\n }\n } else {\n this.setState({ focusedChip: chips.length - 1 });\n }\n }\n break;\n case keyCodes.DELETE:\n if (event.target.value === '' && focusedChip) {\n this.handleDeleteChip(chips[focusedChip], focusedChip);\n if (focusedChip <= chips.length - 1) {\n this.setState({ focusedChip });\n }\n }\n break;\n case keyCodes.LEFT_ARROW:\n if (focusedChip == null && event.target.value === '' && chips.length) {\n this.setState({ focusedChip: chips.length - 1 });\n } else if (focusedChip != null && focusedChip > 0) {\n this.setState({ focusedChip: focusedChip - 1 });\n }\n break;\n case keyCodes.RIGHT_ARROW:\n if (focusedChip != null && focusedChip < chips.length - 1) {\n this.setState({ focusedChip: focusedChip + 1 });\n } else {\n this.setState({ focusedChip: null });\n }\n break;\n default:\n this.setState({ focusedChip: null });\n break;\n }\n }\n\n handleKeyUp = event => {\n if (!this._preventChipCreation && (this.props.newChipKeyCodes.indexOf(event.keyCode) >= 0 || this.props.newChipKeys.indexOf(event.key) >= 0) && this._keyPressed) {\n this.clearInput();\n } else {\n this.updateInput(event.target.value);\n }\n if (this.props.onKeyUp) {\n this.props.onKeyUp(event);\n }\n }\n\n handleKeyPress = event => {\n this._keyPressed = true;\n if (this.props.onKeyPress) {\n this.props.onKeyPress(event);\n }\n }\n\n handleUpdateInput = e => {\n if (this.props.inputValue == null) {\n this.updateInput(e.target.value);\n }\n\n if (this.props.onUpdateInput) {\n this.props.onUpdateInput(e);\n }\n }\n\n /**\n * Handles adding a chip.\n * @param {string|object} chip Value of the chip, either a string or an object (if dataSourceConfig is set)\n * @param {object=} options Additional options\n * @param {boolean=} options.clearInputOnFail If `true`, and `onBeforeAdd` returns `false`, clear the input\n * @returns True if the chip was added (or at least `onAdd` was called), false if adding the chip was prevented\n */\n handleAddChip(chip, options) {\n if (this.props.onBeforeAdd && !this.props.onBeforeAdd(chip)) {\n this._preventChipCreation = true;\n if (options && options.clearInputOnFail) {\n this.clearInput();\n }\n return false;\n }\n this.clearInput();\n const chips = this.props.value || this.state.chips;\n\n if (this.props.dataSourceConfig) {\n if (typeof chip === 'string') {\n chip = {\n [this.props.dataSourceConfig.text]: chip,\n [this.props.dataSourceConfig.value]: chip,\n };\n }\n\n if (this.props.allowDuplicates || !chips.some(c => c[this.props.dataSourceConfig.value] === chip[this.props.dataSourceConfig.value])) {\n if (this.props.value && this.props.onAdd) {\n this.props.onAdd(chip);\n } else {\n this.updateChips([...this.state.chips, chip]);\n }\n }\n return true;\n }\n\n if (chip.trim().length > 0) {\n if (this.props.allowDuplicates || !chips.includes(chip)) {\n if (this.props.value && this.props.onAdd) {\n this.props.onAdd(chip);\n } else {\n this.updateChips([...this.state.chips, chip]);\n }\n }\n return true;\n }\n return false;\n }\n\n handleDeleteChip(chip, i) {\n if (!this.props.value) {\n const chips = this.state.chips.slice();\n const changed = chips.splice(i, 1); // remove the chip at index i\n if (changed) {\n let focusedChip = this.state.focusedChip;\n if (this.state.focusedChip === i) {\n focusedChip = null;\n } else if (this.state.focusedChip > i) {\n focusedChip = this.state.focusedChip - 1;\n }\n this.updateChips(chips, { focusedChip });\n }\n } else if (this.props.onDelete) {\n this.props.onDelete(chip, i);\n }\n }\n\n updateChips(chips, additionalUpdates = {}) {\n this.setState({ chips, chipsUpdated: true, ...additionalUpdates });\n if (this.props.onChange) {\n this.props.onChange(chips);\n }\n }\n\n /**\n * Clears the text field for adding new chips.\n * This only works in uncontrolled input mode, i.e. if the inputValue prop is not used.\n * @public\n */\n clearInput() {\n this.updateInput('');\n }\n\n updateInput(value) {\n this.setState({ inputValue: value });\n }\n\n /**\n * Set the reference to the actual input, that is the input of the Input.\n * @param {object} ref - The reference\n */\n setActualInputRef = ref => {\n this.actualInput = ref;\n this.props.inputRef && this.props.inputRef(ref);\n }\n\n render() {\n const {\n allowDuplicates,\n alwaysShowPlaceholder,\n blurBehavior,\n children,\n chipRenderer = defaultChipRenderer,\n classes,\n className,\n clearInputValueOnChange,\n dataSource,\n dataSourceConfig,\n defaultValue,\n delayBeforeAdd,\n disabled,\n disableUnderline,\n error,\n filter,\n FormHelperTextProps,\n fullWidth,\n fullWidthInput,\n helperText,\n id,\n InputProps = {},\n inputRef,\n InputLabelProps = {},\n inputValue,\n label,\n newChipKeyCodes,\n newChipKeys,\n onBeforeAdd,\n onAdd,\n onBlur,\n onDelete,\n onChange,\n onFocus,\n onKeyDown,\n onKeyPress,\n onKeyUp,\n onUpdateInput,\n placeholder,\n readOnly,\n required,\n rootRef,\n value,\n variant,\n ...other\n } = this.props;\n\n let chips = value || this.state.chips || [];\n if (!Array.isArray(chips)) {\n chips = (chips || '').toString().split(/[,\\s]+/).map(c => c.trim());\n }\n const actualInputValue = inputValue != null ? inputValue : this.state.inputValue;\n\n const hasInput = (this.props.value || actualInputValue).length || actualInputValue.length;\n const shrinkFloatingLabel = InputLabelProps.shrink != null\n ? InputLabelProps.shrink\n : (label != null && (hasInput || this.state.isFocused || chips.length));\n\n const chipComponents = chips.map((chip, i) => {\n const value = dataSourceConfig ? chip[dataSourceConfig.value] : chip;\n return chipRenderer(\n {\n value,\n text: dataSourceConfig ? chip[dataSourceConfig.text] : chip,\n chip,\n isDisabled: !!disabled,\n isReadOnly: readOnly,\n isFocused: this.state.focusedChip === i,\n handleClick: () => this.setState({ focusedChip: i }),\n handleDelete: () => this.handleDeleteChip(chip, i),\n className: classes.chip,\n },\n i\n );\n });\n\n const InputMore = {}\n if (variant === 'outlined') {\n InputMore.notched = shrinkFloatingLabel;\n InputMore.labelWidth =\n (shrinkFloatingLabel && this.labelNode && this.labelNode.offsetWidth) ||\n 0;\n }\n\n if (variant !== 'standard') {\n InputMore.startAdornment = <React.Fragment>{chipComponents}</React.Fragment>;\n } else {\n InputProps.disableUnderline = true;\n }\n\n const InputComponent = variantComponent[variant];\n\n return <FormControl\n ref={rootRef}\n fullWidth={fullWidth}\n className={Utils.clsx(className, classes.root, other.margin === 'dense' && classes.marginDense)}\n error={error}\n required={chips.length > 0 ? undefined : required}\n onClick={this.focus}\n disabled={disabled}\n variant={variant}\n {...other}\n >\n {label && <InputLabel\n htmlFor={id}\n classes={{root: Utils.clsx(classes[variant], classes.label), shrink: classes.labelShrink}}\n shrink={shrinkFloatingLabel}\n focused={this.state.isFocused}\n variant={variant}\n ref={this.labelRef}\n required={required}\n {...InputLabelProps}\n >\n {label}\n </InputLabel>}\n <div\n className={Utils.clsx(\n classes[variant],\n classes.chipContainer,\n this.state.isFocused && classes.focused,\n !disableUnderline && variant === 'standard' && classes.underline,\n disabled && classes.disabled,\n label && classes.labeled,\n error && classes.error\n )}\n >\n {variant === 'standard' && chipComponents}\n <InputComponent\n ref={this.input}\n classes={{\n input: Utils.clsx(classes.input, classes[variant]),\n root: Utils.clsx(classes.inputRoot, classes[variant]),\n }}\n id={id}\n value={actualInputValue}\n onChange={this.handleUpdateInput}\n onKeyDown={this.handleKeyDown}\n onKeyPress={this.handleKeyPress}\n onKeyUp={this.handleKeyUp}\n onFocus={this.handleInputFocus}\n onBlur={this.handleInputBlur}\n inputRef={this.setActualInputRef}\n disabled={disabled}\n fullWidth={fullWidthInput}\n placeholder={(!hasInput && (shrinkFloatingLabel || label == null)) || alwaysShowPlaceholder ? placeholder : null}\n readOnly={readOnly}\n {...InputProps}\n {...InputMore}\n />\n </div>\n {helperText && <FormHelperText\n {...FormHelperTextProps}\n className={FormHelperTextProps ? Utils.clsx(FormHelperTextProps.className, classes.helperText) : classes.helperText}\n >\n {helperText}\n </FormHelperText>}\n </FormControl>;\n }\n}\n\nChipInput.propTypes = {\n /** Allows duplicate chips if set to true. */\n allowDuplicates: PropTypes.bool,\n /** If true, the placeholder will always be visible. */\n alwaysShowPlaceholder: PropTypes.bool,\n /** Behavior when the chip input is blurred: `'clear'` clears the input, `'add'` creates a chip and `'ignore'` keeps the input. */\n blurBehavior: PropTypes.oneOf(['clear', 'add', 'add-or-clear', 'ignore']),\n /** A function of the type `({ value, text, chip, isFocused, isDisabled, isReadOnly, handleClick, handleDelete, className }, key) => node` that returns a chip based on the given properties. This can be used to customize chip styles. Each item in the `dataSource` array will be passed to `chipRenderer` as arguments `chip`, `value` and `text`. If `dataSource` is an array of objects and `dataSourceConfig` is present, then `value` and `text` will instead correspond to the object values defined in `dataSourceConfig`. If `dataSourceConfig` is not set and `dataSource` is an array of objects, then a custom `chipRenderer` must be set. `chip` is always the raw value from `dataSource`, either an object or a string. */\n chipRenderer: PropTypes.func,\n /** Whether the input value should be cleared if the `value` prop is changed. */\n clearInputValueOnChange: PropTypes.bool,\n /** Data source for auto complete. This should be an array of strings or objects. */\n dataSource: PropTypes.array,\n /** Config for objects list dataSource, e.g. `{ text: 'text', value: 'value' }`. If not specified, the `dataSource` must be a flat array of strings or a custom `chipRenderer` must be set to handle the objects. */\n dataSourceConfig: PropTypes.shape({\n text: PropTypes.string.isRequired,\n value: PropTypes.string.isRequired\n }),\n /** The chips to display by default (for uncontrolled mode). */\n defaultValue: PropTypes.array,\n /** Whether to use `setTimeout` to delay adding chips in case other input events like `onSelection` need to fire first */\n delayBeforeAdd: PropTypes.bool,\n /** Disables the chip input if set to true. */\n disabled: PropTypes.bool,\n /** Disable the input underline. Only valid for 'standard' variant */\n disableUnderline: PropTypes.bool,\n /** Props to pass through to the `FormHelperText` component. */\n FormHelperTextProps: PropTypes.object,\n /** If true, the chip input will fill the available width. */\n fullWidth: PropTypes.bool,\n /** If true, the input field will always be below the chips and fill the available space. By default, it will try to be beside the chips. */\n fullWidthInput: PropTypes.bool,\n /** Helper text that is displayed below the input. */\n helperText: PropTypes.node,\n /** Props to pass through to the `InputLabel`. */\n InputLabelProps: PropTypes.object,\n /** Props to pass through to the `Input`. */\n InputProps: PropTypes.object,\n /** Use this property to pass a ref callback to the native input component. */\n inputRef: PropTypes.func,\n /** The input value (enables controlled mode for the text input if set). */\n inputValue: PropTypes.string,\n /* The content of the floating label. */\n label: PropTypes.node,\n /** The key codes (`KeyboardEvent.keyCode`) used to determine when to create a new chip. */\n newChipKeyCodes: PropTypes.arrayOf(PropTypes.number),\n /** The keys (`KeyboardEvent.key`) used to determine when to create a new chip. */\n newChipKeys: PropTypes.arrayOf(PropTypes.string),\n /** Callback function that is called when a new chip was added (in controlled mode). */\n onAdd: PropTypes.func,\n /** Callback function that is called with the chip to be added and should return true to add the chip or false to prevent the chip from being added without clearing the text input. */\n onBeforeAdd: PropTypes.func,\n /** Callback function that is called when the chips change (in uncontrolled mode). */\n onChange: PropTypes.func,\n /** Callback function that is called when a new chip was removed (in controlled mode). */\n onDelete: PropTypes.func,\n /** Callback function that is called when the input changes. */\n onUpdateInput: PropTypes.func,\n /** A placeholder that is displayed if the input has no values. */\n placeholder: PropTypes.string,\n /** Makes the chip input read-only if set to true. */\n readOnly: PropTypes.bool,\n /** The chips to display (enables controlled mode if set). */\n value: PropTypes.array,\n /** The variant of the Input component */\n variant: PropTypes.oneOf(['outlined', 'standard', 'filled']),\n}\n\nChipInput.defaultProps = {\n allowDuplicates: false,\n blurBehavior: 'clear',\n clearInputValueOnChange: false,\n delayBeforeAdd: false,\n disableUnderline: false,\n newChipKeyCodes: [13],\n newChipKeys: ['Enter'],\n variant: 'standard',\n};\n\nexport default withStyles(styles, {name: 'WAMuiChipInput'})(ChipInput);\n\nexport const defaultChipRenderer = ({\n value,\n text,\n isFocused,\n isDisabled,\n isReadOnly,\n handleClick,\n handleDelete,\n className,\n}, key) =>\n <Chip\n key={key}\n className={className}\n style={{\n pointerEvents: isDisabled || isReadOnly ? 'none' : undefined,\n backgroundColor: isFocused ? blue[300] : undefined,\n }}\n onClick={handleClick}\n onDelete={handleDelete}\n label={text}\n />;"],"mappings":";;;;;;;;;;;;;;;;;AAIA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,SAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,UAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,MAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,YAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,cAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,WAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,KAAA,GAAAR,sBAAA,CAAAC,OAAA;AACA,IAAAQ,WAA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,SAAS;IACT4G,UAAU,GAAA4C,IAAA,CAAV5C,UAAU;IACVC,UAAU,GAAA2C,IAAA,CAAV3C,UAAU;IACVC,WAAW,GAAA0C,IAAA,CAAX1C,WAAW;IACXC,YAAY,GAAAyC,IAAA,CAAZzC,YAAY;IACZ/B,SAAS,GAAAwE,IAAA,CAATxE,SAAS;EAAA,oBAETrO,MAAA,YAAA0Q,aAAA,CAACjQ,KAAA,WAAI;IACD2B,GAAG,EAAEA,GAAI;IACTiM,SAAS,EAAEA,SAAU;IACrByE,KAAK,EAAE;MACHtL,aAAa,EAAEyI,UAAU,IAAIC,UAAU,GAAG,MAAM,GAAGjH,SAAS;MAC5DnB,eAAe,EAAEuB,SAAS,GAAG0J,gBAAI,CAAC,GAAG,CAAC,GAAG9J;IAC7C,CAAE;IACF+H,OAAO,EAAEb,WAAY;IACrB1C,QAAQ,EAAE2C,YAAa;IACvBnK,KAAK,EAAE2B;EAAK,CACf,CAAC;AAAA;AAACgL,OAAA,CAAAzE,mBAAA,GAAAA,mBAAA"}
|
|
1
|
+
{"version":3,"file":"ChipInput.js","names":["_react","_interopRequireDefault","require","_reactDom","_propTypes","_styles","_material","_FilledInput","_blue","_Utils","_excluded","ownKeys","object","enumerableOnly","keys","Object","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","target","i","arguments","length","source","forEach","key","_defineProperty2","getOwnPropertyDescriptors","defineProperties","defineProperty","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","Reflect","construct","_possibleConstructorReturn2","sham","Proxy","Boolean","prototype","valueOf","call","e","variantComponent","standard","Input","filled","FilledInput","outlined","OutlinedInput","styles","theme","light","palette","type","bottomLineColor","root","inputRoot","display","flexWrap","flex","marginTop","minWidth","boxSizing","paddingTop","input","textOverflow","overflow","whiteSpace","appearance","WebkitTapHighlightColor","chipContainer","flexFlow","cursor","marginBottom","minHeight","height","paddingBottom","labeled","label","top","labelShrink","helperText","focused","disabled","underline","borderBottom","concat","primary","left","bottom","content","position","right","transform","transition","transitions","create","duration","shorter","easing","easeOut","pointerEvents","borderBottomColor","error","main","text","borderBottomStyle","backgroundColor","chip","margin","marginDense","keyCodes","BACKSPACE","DELETE","LEFT_ARROW","RIGHT_ARROW","defaultChipRenderer","_ref","isFocused","isDisabled","isReadOnly","handleClick","handleDelete","className","createElement","Chip","style","undefined","blue","onClick","onDelete","exports","ChipInput","_React$Component","_inherits2","_super","props","_this","_classCallCheck2","_assertThisInitialized2","actualInput","focus","state","focusedChip","setState","event","onBlur","value","addChipOptions","blurBehavior","clearInputOnFail","delayBeforeAdd","numChipsBefore","chips","inputBlurTimeout","setTimeout","numChipsAfter","handleAddChip","clearInput","onFocus","_keyPressed","_preventChipCreation","onKeyDown","isDefaultPrevented","newChipKeyCodes","includes","keyCode","newChipKeys","preventDefault","handleDeleteChip","indexOf","updateInput","onKeyUp","onKeyPress","inputValue","onUpdateInput","ref","inputRef","chipsUpdated","prevPropsValue","defaultValue","labelRef","React","createRef","_createClass2","componentDidMount","variant","labelNode","ReactDOM","findDOMNode","current","forceUpdate","componentWillUnmount","clearTimeout","options","_this2","onBeforeAdd","dataSourceConfig","_chip","allowDuplicates","some","c","onAdd","updateChips","_toConsumableArray2","trim","slice","changed","splice","additionalUpdates","onChange","render","_this3","_this$props","alwaysShowPlaceholder","children","_this$props$chipRende","chipRenderer","classes","clearInputValueOnChange","dataSource","disableUnderline","FormHelperTextProps","fullWidth","fullWidthInput","id","_this$props$InputProp","InputProps","_this$props$InputLabe","InputLabelProps","placeholder","readOnly","required","rootRef","other","_objectWithoutProperties2","Array","isArray","toString","split","map","actualInputValue","hasInput","shrinkFloatingLabel","shrink","chipComponents","value_","InputMore","notched","labelWidth","offsetWidth","startAdornment","InputComponent","FormControl","_extends2","Utils","clsx","InputLabel","htmlFor","handleUpdateInput","handleKeyDown","handleKeyPress","handleKeyUp","handleInputFocus","handleInputBlur","setActualInputRef","FormHelperText","getDerivedStateFromProps","newState","Component","propTypes","PropTypes","bool","oneOf","func","array","shape","string","isRequired","node","arrayOf","number","defaultProps","_default","withStyles","name"],"sources":["JsonConfigComponent/ChipInput.jsx"],"sourcesContent":["/**\n * Notice: Some code was adapted from Material-UI's text field.\n * Copyright (c) 2014 Call-Em-All (https://github.com/callemall/material-ui)\n */\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport PropTypes from 'prop-types';\nimport { withStyles } from '@mui/styles';\n\nimport {\n Input,\n OutlinedInput,\n InputLabel,\n Chip,\n FormControl,\n FormHelperText,\n} from '@mui/material';\nimport FilledInput from '@mui/material/FilledInput/FilledInput';\nimport blue from '@mui/material/colors/blue';\n\nimport Utils from '../Utils';\n\nconst variantComponent = {\n standard: Input,\n filled: FilledInput,\n outlined: OutlinedInput,\n};\n\nconst styles = theme => {\n const light = theme.palette.type === 'light';\n const bottomLineColor = light ? 'rgba(0, 0, 0, 0.42)' : 'rgba(255, 255, 255, 0.7)';\n\n return {\n root: {},\n inputRoot: {\n display: 'inline-flex',\n flexWrap: 'wrap',\n flex: 1,\n marginTop: 0,\n minWidth: 70,\n '&$outlined,&$filled': {\n boxSizing: 'border-box',\n },\n '&$outlined': {\n paddingTop: 14,\n },\n '&$filled': {\n paddingTop: 28,\n },\n },\n input: {\n display: 'inline-block',\n textOverflow: 'ellipsis',\n overflow: 'hidden',\n whiteSpace: 'nowrap',\n appearance: 'none', // Remove border in Safari, doesn't seem to break anything in other browsers\n WebkitTapHighlightColor: 'rgba(0,0,0,0)', // Remove mobile color flashing (deprecated style).\n float: 'left',\n flex: 1,\n },\n chipContainer: {\n display: 'flex',\n flexFlow: 'row wrap',\n cursor: 'text',\n marginBottom: -2,\n minHeight: 40,\n '&$labeled&$standard': {\n marginTop: 18,\n },\n },\n outlined: {\n '& input': {\n height: 16,\n paddingTop: 4,\n paddingBottom: 12,\n marginTop: 4,\n marginBottom: 4,\n },\n },\n standard: {},\n filled: {\n '& input': {\n height: 22,\n marginBottom: 4,\n marginTop: 4,\n paddingTop: 0,\n },\n '$marginDense & input': {\n height: 26,\n },\n },\n labeled: {},\n label: {\n top: 4,\n '&$outlined&:not($labelShrink)': {\n top: 2,\n '$marginDense &': {\n top: 5,\n },\n },\n '&$filled&:not($labelShrink)': {\n top: 15,\n '$marginDense &': {\n top: 20,\n },\n },\n },\n labelShrink: {\n top: 0,\n },\n helperText: {\n marginBottom: -20,\n },\n focused: {},\n disabled: {},\n underline: {\n '&:after': {\n borderBottom: `2px solid ${theme.palette.primary[light ? 'dark' : 'light']}`,\n left: 0,\n bottom: 0,\n // Doing the other way around a crash on IE 11 \"''\" https://github.com/cssinjs/jss/issues/242\n content: '\"\"',\n position: 'absolute',\n right: 0,\n transform: 'scaleX(0)',\n transition: theme.transitions.create('transform', {\n duration: theme.transitions.duration.shorter,\n easing: theme.transitions.easing.easeOut,\n }),\n pointerEvents: 'none', // Transparent to the hover style.\n },\n '&$focused:after': {\n transform: 'scaleX(1)',\n },\n '&$error:after': {\n borderBottomColor: theme.palette.error.main,\n transform: 'scaleX(1)', // error is always underlined in red\n },\n '&:before': {\n borderBottom: `1px solid ${bottomLineColor}`,\n left: 0,\n bottom: 0,\n // Doing the other way around a crash on IE 11 \"''\" https://github.com/cssinjs/jss/issues/242\n content: '\"\\\\00a0\"',\n position: 'absolute',\n right: 0,\n transition: theme.transitions.create('border-bottom-color', {\n duration: theme.transitions.duration.shorter,\n }),\n pointerEvents: 'none', // Transparent to the hover style.\n },\n '&:hover:not($disabled):not($focused):not($error):before': {\n borderBottom: `2px solid ${theme.palette.text.primary}`,\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n borderBottom: `1px solid ${bottomLineColor}`,\n },\n },\n '&$disabled:before': {\n borderBottomStyle: 'dotted',\n },\n },\n error: {\n '&:after': {\n backgroundColor: theme.palette.error.main,\n transform: 'scaleX(1)', // error is always underlined in red\n },\n },\n chip: {\n margin: '0 8px 8px 0',\n float: 'left',\n },\n marginDense: {},\n };\n};\n\nconst keyCodes = {\n BACKSPACE: 8,\n DELETE: 46,\n LEFT_ARROW: 37,\n RIGHT_ARROW: 39,\n};\n\nexport const defaultChipRenderer = ({\n text,\n isFocused,\n isDisabled,\n isReadOnly,\n handleClick,\n handleDelete,\n className,\n}, key) =>\n <Chip\n key={key}\n className={className}\n style={{\n pointerEvents: isDisabled || isReadOnly ? 'none' : undefined,\n backgroundColor: isFocused ? blue[300] : undefined,\n }}\n onClick={handleClick}\n onDelete={handleDelete}\n label={text}\n />;\n\nclass ChipInput extends React.Component {\n constructor(props) {\n super(props);\n this.state = {\n chips: [],\n focusedChip: null,\n inputValue: '',\n isFocused: false,\n chipsUpdated: false,\n prevPropsValue: [],\n };\n\n if (props.defaultValue) {\n this.state.chips = props.defaultValue;\n }\n this.labelRef = React.createRef();\n this.input = React.createRef();\n }\n\n componentDidMount() {\n if (this.props.variant === 'outlined') {\n // eslint-disable-next-line react/no-find-dom-node\n this.labelNode = ReactDOM.findDOMNode(this.labelRef.current);\n this.forceUpdate();\n }\n }\n\n componentWillUnmount() {\n clearTimeout(this.inputBlurTimeout);\n }\n\n static getDerivedStateFromProps(props, state) {\n let newState = null;\n\n if (props.value && props.value.length !== state.prevPropsValue.length) {\n newState = { prevPropsValue: props.value };\n if (props.clearInputValueOnChange) {\n newState.inputValue = '';\n }\n }\n\n // if change detection is only needed for clearInputValueOnChange\n if (props.clearInputValueOnChange && props.value && props.value.length !== state.prevPropsValue.length) {\n newState = { prevPropsValue: props.value, inputValue: '' };\n }\n\n if (props.disabled) {\n newState = { ...newState, focusedChip: null };\n }\n\n if (!state.chipsUpdated && props.defaultValue) {\n newState = { ...newState, chips: props.defaultValue };\n }\n\n return newState;\n }\n\n /**\n * Blurs this component.\n * @public\n */\n // blur() {\n // if (this.input) {\n // this.actualInput.blur();\n // }\n // }\n\n /**\n * Focuses this component.\n * @public\n */\n focus = () => {\n this.actualInput.focus();\n if (this.state.focusedChip) {\n this.setState({ focusedChip: null });\n }\n };\n\n handleInputBlur = event => {\n if (this.props.onBlur) {\n this.props.onBlur(event);\n }\n this.setState({ isFocused: false });\n if (this.state.focusedChip) {\n this.setState({ focusedChip: null });\n }\n const value = event.target.value;\n let addChipOptions;\n switch (this.props.blurBehavior) {\n case 'add-or-clear':\n addChipOptions = { clearInputOnFail: true };\n // falls through\n case 'add':\n if (this.props.delayBeforeAdd) {\n // Let's assume that we only want to add the existing content as chip, when\n // another event has not added a chip within 200ms.\n // e.g., onSelection Callback in Autocomplete case\n const numChipsBefore = (this.props.value || this.state.chips).length;\n this.inputBlurTimeout = setTimeout(() => {\n const numChipsAfter = (this.props.value || this.state.chips).length;\n if (numChipsBefore === numChipsAfter) {\n this.handleAddChip(value, addChipOptions);\n } else {\n this.clearInput();\n }\n }, 150);\n } else {\n this.handleAddChip(value, addChipOptions);\n }\n break;\n\n case 'clear':\n this.clearInput();\n break;\n\n default:\n break;\n }\n };\n\n handleInputFocus = event => {\n this.setState({ isFocused: true });\n if (this.props.onFocus) {\n this.props.onFocus(event);\n }\n };\n\n handleKeyDown = event => {\n const { focusedChip } = this.state;\n this._keyPressed = false;\n this._preventChipCreation = false;\n\n if (this.props.onKeyDown) {\n // Needed for arrow controls on a menu in autocomplete scenario\n this.props.onKeyDown(event);\n // Check if the callback marked the event as isDefaultPrevented() and skip further actions\n // enter key, for example, should not always add the current value of the inputField\n if (event.isDefaultPrevented()) {\n return;\n }\n }\n const chips = this.props.value || this.state.chips;\n if (this.props.newChipKeyCodes.includes(event.keyCode) || this.props.newChipKeys.includes(event.key)) {\n const result = this.handleAddChip(event.target.value);\n if (result !== false) {\n event.preventDefault();\n }\n return;\n }\n\n switch (event.keyCode) {\n case keyCodes.BACKSPACE:\n if (event.target.value === '') {\n if (focusedChip) {\n this.handleDeleteChip(chips[focusedChip], focusedChip);\n if (focusedChip) {\n this.setState({ focusedChip: focusedChip - 1 });\n }\n } else {\n this.setState({ focusedChip: chips.length - 1 });\n }\n }\n break;\n case keyCodes.DELETE:\n if (event.target.value === '' && focusedChip) {\n this.handleDeleteChip(chips[focusedChip], focusedChip);\n if (focusedChip <= chips.length - 1) {\n this.setState({ focusedChip });\n }\n }\n break;\n case keyCodes.LEFT_ARROW:\n if (focusedChip === null && event.target.value === '' && chips.length) {\n this.setState({ focusedChip: chips.length - 1 });\n } else if (focusedChip !== null && focusedChip > 0) {\n this.setState({ focusedChip: focusedChip - 1 });\n }\n break;\n case keyCodes.RIGHT_ARROW:\n if (focusedChip !== null && focusedChip < chips.length - 1) {\n this.setState({ focusedChip: focusedChip + 1 });\n } else {\n this.setState({ focusedChip: null });\n }\n break;\n default:\n this.setState({ focusedChip: null });\n break;\n }\n };\n\n handleKeyUp = event => {\n if (!this._preventChipCreation && (this.props.newChipKeyCodes.indexOf(event.keyCode) >= 0 || this.props.newChipKeys.indexOf(event.key) >= 0) && this._keyPressed) {\n this.clearInput();\n } else {\n this.updateInput(event.target.value);\n }\n if (this.props.onKeyUp) {\n this.props.onKeyUp(event);\n }\n };\n\n handleKeyPress = event => {\n this._keyPressed = true;\n if (this.props.onKeyPress) {\n this.props.onKeyPress(event);\n }\n };\n\n handleUpdateInput = e => {\n if (this.props.inputValue === null || this.props.inputValue === undefined) {\n this.updateInput(e.target.value);\n }\n\n if (this.props.onUpdateInput) {\n this.props.onUpdateInput(e);\n }\n };\n\n /**\n * Handles adding a chip.\n * @param {string|object} chip Value of the chip, either a string or an object (if dataSourceConfig is set)\n * @param {object=} options Additional options\n * @param {boolean=} options.clearInputOnFail If `true`, and `onBeforeAdd` returns `false`, clear the input\n * @returns True if the chip was added (or at least `onAdd` was called), false if adding the chip was prevented\n */\n handleAddChip(chip, options) {\n if (this.props.onBeforeAdd && !this.props.onBeforeAdd(chip)) {\n this._preventChipCreation = true;\n if (options && options.clearInputOnFail) {\n this.clearInput();\n }\n return false;\n }\n this.clearInput();\n const chips = this.props.value || this.state.chips;\n\n if (this.props.dataSourceConfig) {\n if (typeof chip === 'string') {\n chip = {\n [this.props.dataSourceConfig.text]: chip,\n [this.props.dataSourceConfig.value]: chip,\n };\n }\n\n if (this.props.allowDuplicates || !chips.some(c => c[this.props.dataSourceConfig.value] === chip[this.props.dataSourceConfig.value])) {\n if (this.props.value && this.props.onAdd) {\n this.props.onAdd(chip);\n } else {\n this.updateChips([...this.state.chips, chip]);\n }\n }\n return true;\n }\n\n if (chip.trim().length > 0) {\n if (this.props.allowDuplicates || !chips.includes(chip)) {\n if (this.props.value && this.props.onAdd) {\n this.props.onAdd(chip);\n } else {\n this.updateChips([...this.state.chips, chip]);\n }\n }\n return true;\n }\n return false;\n }\n\n handleDeleteChip(chip, i) {\n if (!this.props.value) {\n const chips = this.state.chips.slice();\n const changed = chips.splice(i, 1); // remove the chip at index i\n if (changed) {\n let focusedChip = this.state.focusedChip;\n if (this.state.focusedChip === i) {\n focusedChip = null;\n } else if (this.state.focusedChip > i) {\n focusedChip = this.state.focusedChip - 1;\n }\n this.updateChips(chips, { focusedChip });\n }\n } else if (this.props.onDelete) {\n this.props.onDelete(chip, i);\n }\n }\n\n updateChips(chips, additionalUpdates = {}) {\n this.setState({ chips, chipsUpdated: true, ...additionalUpdates });\n if (this.props.onChange) {\n this.props.onChange(chips);\n }\n }\n\n /**\n * Clears the text field for adding new chips.\n * This only works in uncontrolled input mode, i.e. if the inputValue prop is not used.\n * @public\n */\n clearInput() {\n this.updateInput('');\n }\n\n updateInput(value) {\n this.setState({ inputValue: value });\n }\n\n /**\n * Set the reference to the actual input, that is the input of the Input.\n * @param {object} ref - The reference\n */\n setActualInputRef = ref => {\n this.actualInput = ref;\n this.props.inputRef && this.props.inputRef(ref);\n };\n\n render() {\n const {\n allowDuplicates,\n alwaysShowPlaceholder,\n blurBehavior,\n children,\n chipRenderer = defaultChipRenderer,\n classes,\n className,\n clearInputValueOnChange,\n dataSource,\n dataSourceConfig,\n defaultValue,\n delayBeforeAdd,\n disabled,\n disableUnderline,\n error,\n filter,\n FormHelperTextProps,\n fullWidth,\n fullWidthInput,\n helperText,\n id,\n InputProps = {},\n inputRef,\n InputLabelProps = {},\n inputValue,\n label,\n newChipKeyCodes,\n newChipKeys,\n onBeforeAdd,\n onAdd,\n onBlur,\n onDelete,\n onChange,\n onFocus,\n onKeyDown,\n onKeyPress,\n onKeyUp,\n onUpdateInput,\n placeholder,\n readOnly,\n required,\n rootRef,\n value,\n variant,\n ...other\n } = this.props;\n\n let chips = value || this.state.chips || [];\n if (!Array.isArray(chips)) {\n chips = (chips || '').toString().split(/[,\\s]+/).map(c => c.trim());\n }\n const actualInputValue = inputValue ?? this.state.inputValue;\n\n const hasInput = (this.props.value || actualInputValue).length || actualInputValue.length;\n const shrinkFloatingLabel = typeof InputLabelProps.shrink === 'boolean'\n ? InputLabelProps.shrink\n : (label !== null && (hasInput || this.state.isFocused || chips.length));\n\n const chipComponents = chips.map((chip, i) => {\n const value_ = dataSourceConfig ? chip[dataSourceConfig.value] : chip;\n return chipRenderer(\n {\n value: value_,\n text: dataSourceConfig ? chip[dataSourceConfig.text] : chip,\n chip,\n isDisabled: !!disabled,\n isReadOnly: readOnly,\n isFocused: this.state.focusedChip === i,\n handleClick: () => this.setState({ focusedChip: i }),\n handleDelete: () => this.handleDeleteChip(chip, i),\n className: classes.chip,\n },\n i,\n );\n });\n\n const InputMore = {};\n if (variant === 'outlined') {\n InputMore.notched = shrinkFloatingLabel;\n InputMore.labelWidth =\n (shrinkFloatingLabel && this.labelNode && this.labelNode.offsetWidth) ||\n 0;\n }\n\n if (variant !== 'standard') {\n InputMore.startAdornment = chipComponents;\n } else {\n InputProps.disableUnderline = true;\n }\n\n const InputComponent = variantComponent[variant];\n\n return <FormControl\n ref={rootRef}\n fullWidth={fullWidth}\n className={Utils.clsx(className, classes.root, other.margin === 'dense' && classes.marginDense)}\n error={error}\n required={chips.length > 0 ? undefined : required}\n onClick={this.focus}\n disabled={disabled}\n variant={variant}\n {...other}\n >\n {label && <InputLabel\n htmlFor={id}\n classes={{ root: Utils.clsx(classes[variant], classes.label), shrink: classes.labelShrink }}\n shrink={shrinkFloatingLabel}\n focused={this.state.isFocused}\n variant={variant}\n ref={this.labelRef}\n required={required}\n {...InputLabelProps}\n >\n {label}\n </InputLabel>}\n <div\n className={Utils.clsx(\n classes[variant],\n classes.chipContainer,\n this.state.isFocused && classes.focused,\n !disableUnderline && variant === 'standard' && classes.underline,\n disabled && classes.disabled,\n label && classes.labeled,\n error && classes.error,\n )}\n >\n {variant === 'standard' && chipComponents}\n <InputComponent\n ref={this.input}\n classes={{\n input: Utils.clsx(classes.input, classes[variant]),\n root: Utils.clsx(classes.inputRoot, classes[variant]),\n }}\n id={id}\n value={actualInputValue}\n onChange={this.handleUpdateInput}\n onKeyDown={this.handleKeyDown}\n onKeyPress={this.handleKeyPress}\n onKeyUp={this.handleKeyUp}\n onFocus={this.handleInputFocus}\n onBlur={this.handleInputBlur}\n inputRef={this.setActualInputRef}\n disabled={disabled}\n fullWidth={fullWidthInput}\n placeholder={(!hasInput && (shrinkFloatingLabel || label === null || label === undefined)) || alwaysShowPlaceholder ? placeholder : null}\n readOnly={readOnly}\n {...InputProps}\n {...InputMore}\n />\n </div>\n {helperText && <FormHelperText\n {...FormHelperTextProps}\n className={FormHelperTextProps ? Utils.clsx(FormHelperTextProps.className, classes.helperText) : classes.helperText}\n >\n {helperText}\n </FormHelperText>}\n </FormControl>;\n }\n}\n\nChipInput.propTypes = {\n /** Allows duplicate chips if set to true. */\n allowDuplicates: PropTypes.bool,\n /** If true, the placeholder will always be visible. */\n alwaysShowPlaceholder: PropTypes.bool,\n /** Behavior when the chip input is blurred: `'clear'` clears the input, `'add'` creates a chip and `'ignore'` keeps the input. */\n blurBehavior: PropTypes.oneOf(['clear', 'add', 'add-or-clear', 'ignore']),\n /** A function of the type `({ value, text, chip, isFocused, isDisabled, isReadOnly, handleClick, handleDelete, className }, key) => node` that returns a chip based on the given properties. This can be used to customize chip styles. Each item in the `dataSource` array will be passed to `chipRenderer` as arguments `chip`, `value` and `text`. If `dataSource` is an array of objects and `dataSourceConfig` is present, then `value` and `text` will instead correspond to the object values defined in `dataSourceConfig`. If `dataSourceConfig` is not set and `dataSource` is an array of objects, then a custom `chipRenderer` must be set. `chip` is always the raw value from `dataSource`, either an object or a string. */\n chipRenderer: PropTypes.func,\n /** Whether the input value should be cleared if the `value` prop is changed. */\n clearInputValueOnChange: PropTypes.bool,\n /** Data source for auto complete. This should be an array of strings or objects. */\n dataSource: PropTypes.array,\n /** Config for objects list dataSource, e.g. `{ text: 'text', value: 'value' }`. If not specified, the `dataSource` must be a flat array of strings or a custom `chipRenderer` must be set to handle the objects. */\n dataSourceConfig: PropTypes.shape({\n text: PropTypes.string.isRequired,\n value: PropTypes.string.isRequired,\n }),\n /** The chips to display by default (for uncontrolled mode). */\n defaultValue: PropTypes.array,\n /** Whether to use `setTimeout` to delay adding chips in case other input events like `onSelection` need to fire first */\n delayBeforeAdd: PropTypes.bool,\n /** Disables the chip input if set to true. */\n disabled: PropTypes.bool,\n /** Disable the input underline. Only valid for 'standard' variant */\n disableUnderline: PropTypes.bool,\n /** Props to pass through to the `FormHelperText` component. */\n FormHelperTextProps: PropTypes.object,\n /** If true, the chip input will fill the available width. */\n fullWidth: PropTypes.bool,\n /** If true, the input field will always be below the chips and fill the available space. By default, it will try to be beside the chips. */\n fullWidthInput: PropTypes.bool,\n /** Helper text that is displayed below the input. */\n helperText: PropTypes.node,\n /** Props to pass through to the `InputLabel`. */\n InputLabelProps: PropTypes.object,\n /** Props to pass through to the `Input`. */\n InputProps: PropTypes.object,\n /** Use this property to pass a ref callback to the native input component. */\n inputRef: PropTypes.func,\n /** The input value (enables controlled mode for the text input if set). */\n inputValue: PropTypes.string,\n /* The content of the floating label. */\n label: PropTypes.node,\n /** The key codes (`KeyboardEvent.keyCode`) used to determine when to create a new chip. */\n newChipKeyCodes: PropTypes.arrayOf(PropTypes.number),\n /** The keys (`KeyboardEvent.key`) used to determine when to create a new chip. */\n newChipKeys: PropTypes.arrayOf(PropTypes.string),\n /** Callback function that is called when a new chip was added (in controlled mode). */\n onAdd: PropTypes.func,\n /** Callback function that is called with the chip to be added and should return true to add the chip or false to prevent the chip from being added without clearing the text input. */\n onBeforeAdd: PropTypes.func,\n /** Callback function that is called when the chips change (in uncontrolled mode). */\n onChange: PropTypes.func,\n /** Callback function that is called when a new chip was removed (in controlled mode). */\n onDelete: PropTypes.func,\n /** Callback function that is called when the input changes. */\n onUpdateInput: PropTypes.func,\n /** A placeholder that is displayed if the input has no values. */\n placeholder: PropTypes.string,\n /** Makes the chip input read-only if set to true. */\n readOnly: PropTypes.bool,\n /** The chips to display (enables controlled mode if set). */\n value: PropTypes.array,\n /** The variant of the Input component */\n variant: PropTypes.oneOf(['outlined', 'standard', 'filled']),\n};\n\nChipInput.defaultProps = {\n allowDuplicates: false,\n blurBehavior: 'clear',\n clearInputValueOnChange: false,\n delayBeforeAdd: false,\n disableUnderline: false,\n newChipKeyCodes: [13],\n newChipKeys: ['Enter'],\n variant: 'standard',\n};\n\nexport default withStyles(styles, { name: 'WAMuiChipInput' })(ChipInput);\n"],"mappings":";;;;;;;;;;;;;;;;;AAIA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,SAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,UAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AAEA,IAAAI,SAAA,GAAAJ,OAAA;AAQA,IAAAK,YAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,KAAA,GAAAP,sBAAA,CAAAC,OAAA;AAEA,IAAAO,MAAA,GAAAR,sBAAA,CAAAC,OAAA;AAA6B,IAAAQ,SAAA;AAAA,SAAAC,QAAAC,MAAA,EAAAC,cAAA,QAAAC,IAAA,GAAAC,MAAA,CAAAD,IAAA,CAAAF,MAAA,OAAAG,MAAA,CAAAC,qBAAA,QAAAC,OAAA,GAAAF,MAAA,CAAAC,qBAAA,CAAAJ,MAAA,GAAAC,cAAA,KAAA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