@iobroker/adapter-react-v5 3.0.0 → 3.0.1

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.
@@ -51,7 +51,7 @@ var _FormControl = _interopRequireDefault(require("@mui/material/FormControl"));
51
51
 
52
52
  var _FormHelperText = _interopRequireDefault(require("@mui/material/FormHelperText"));
53
53
 
54
- var _classnames = _interopRequireDefault(require("classnames"));
54
+ var _Utils = _interopRequireDefault(require("../Utils"));
55
55
 
56
56
  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"];
57
57
 
@@ -252,7 +252,7 @@ var ChipInput = /*#__PURE__*/function (_React$Component) {
252
252
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "focus", function () {
253
253
  _this.actualInput.focus();
254
254
 
255
- if (_this.state.focusedChip != null) {
255
+ if (_this.state.focusedChip) {
256
256
  _this.setState({
257
257
  focusedChip: null
258
258
  });
@@ -267,7 +267,7 @@ var ChipInput = /*#__PURE__*/function (_React$Component) {
267
267
  isFocused: false
268
268
  });
269
269
 
270
- if (_this.state.focusedChip != null) {
270
+ if (_this.state.focusedChip) {
271
271
  _this.setState({
272
272
  focusedChip: null
273
273
  });
@@ -350,7 +350,7 @@ var ChipInput = /*#__PURE__*/function (_React$Component) {
350
350
  switch (event.keyCode) {
351
351
  case keyCodes.BACKSPACE:
352
352
  if (event.target.value === '') {
353
- if (focusedChip != null) {
353
+ if (focusedChip) {
354
354
  _this.handleDeleteChip(chips[focusedChip], focusedChip);
355
355
 
356
356
  if (focusedChip > 0) {
@@ -368,7 +368,7 @@ var ChipInput = /*#__PURE__*/function (_React$Component) {
368
368
  break;
369
369
 
370
370
  case keyCodes.DELETE:
371
- if (event.target.value === '' && focusedChip != null) {
371
+ if (event.target.value === '' && focusedChip) {
372
372
  _this.handleDeleteChip(chips[focusedChip], focusedChip);
373
373
 
374
374
  if (focusedChip <= chips.length - 1) {
@@ -479,7 +479,9 @@ var ChipInput = /*#__PURE__*/function (_React$Component) {
479
479
  * @public
480
480
  */
481
481
  function blur() {
482
- if (this.input) this.actualInput.blur();
482
+ if (this.input) {
483
+ this.actualInput.blur();
484
+ }
483
485
  }
484
486
  /**
485
487
  * Focuses this component.
@@ -502,7 +504,7 @@ var ChipInput = /*#__PURE__*/function (_React$Component) {
502
504
  if (this.props.onBeforeAdd && !this.props.onBeforeAdd(chip)) {
503
505
  this._preventChipCreation = true;
504
506
 
505
- if (options != null && options.clearInputOnFail) {
507
+ if (options && options.clearInputOnFail) {
506
508
  this.clearInput();
507
509
  }
508
510
 
@@ -533,7 +535,7 @@ var ChipInput = /*#__PURE__*/function (_React$Component) {
533
535
  }
534
536
 
535
537
  if (chip.trim().length > 0) {
536
- if (this.props.allowDuplicates || chips.indexOf(chip) === -1) {
538
+ if (this.props.allowDuplicates || !chips.includes(chip)) {
537
539
  if (this.props.value && this.props.onAdd) {
538
540
  this.props.onAdd(chip);
539
541
  } else {
@@ -609,8 +611,7 @@ var ChipInput = /*#__PURE__*/function (_React$Component) {
609
611
  }, {
610
612
  key: "render",
611
613
  value: function render() {
612
- var _this3 = this,
613
- _cx2;
614
+ var _this3 = this;
614
615
 
615
616
  var _this$props = this.props,
616
617
  allowDuplicates = _this$props.allowDuplicates,
@@ -702,7 +703,7 @@ var ChipInput = /*#__PURE__*/function (_React$Component) {
702
703
  return /*#__PURE__*/_react["default"].createElement(_FormControl["default"], (0, _extends2["default"])({
703
704
  ref: rootRef,
704
705
  fullWidth: fullWidth,
705
- className: (0, _classnames["default"])(className, classes.root, (0, _defineProperty2["default"])({}, classes.marginDense, other.margin === 'dense')),
706
+ className: _Utils["default"].clsx(className, classes.root, other.margin === 'dense' && classes.marginDense),
706
707
  error: error,
707
708
  required: chips.length > 0 ? undefined : required,
708
709
  onClick: this.focus,
@@ -711,7 +712,7 @@ var ChipInput = /*#__PURE__*/function (_React$Component) {
711
712
  }, other), label && /*#__PURE__*/_react["default"].createElement(_InputLabel["default"], (0, _extends2["default"])({
712
713
  htmlFor: id,
713
714
  classes: {
714
- root: (0, _classnames["default"])(classes[variant], classes.label),
715
+ root: _Utils["default"].clsx(classes[variant], classes.label),
715
716
  shrink: classes.labelShrink
716
717
  },
717
718
  shrink: shrinkFloatingLabel,
@@ -720,12 +721,12 @@ var ChipInput = /*#__PURE__*/function (_React$Component) {
720
721
  ref: this.labelRef,
721
722
  required: required
722
723
  }, InputLabelProps), label), /*#__PURE__*/_react["default"].createElement("div", {
723
- className: (0, _classnames["default"])(classes[variant], classes.chipContainer, (_cx2 = {}, (0, _defineProperty2["default"])(_cx2, classes.focused, this.state.isFocused), (0, _defineProperty2["default"])(_cx2, classes.underline, !disableUnderline && variant === 'standard'), (0, _defineProperty2["default"])(_cx2, classes.disabled, disabled), (0, _defineProperty2["default"])(_cx2, classes.labeled, label != null), (0, _defineProperty2["default"])(_cx2, classes.error, error), _cx2))
724
+ className: _Utils["default"].clsx(classes[variant], classes.chipContainer, this.state.isFocused && classes.focused, !disableUnderline && variant === 'standard' && classes.underline, disabled && classes.disabled, label && classes.labeled, error && classes.error)
724
725
  }, variant === 'standard' && chipComponents, /*#__PURE__*/_react["default"].createElement(InputComponent, (0, _extends2["default"])({
725
726
  ref: this.input,
726
727
  classes: {
727
- input: (0, _classnames["default"])(classes.input, classes[variant]),
728
- root: (0, _classnames["default"])(classes.inputRoot, classes[variant])
728
+ input: _Utils["default"].clsx(classes.input, classes[variant]),
729
+ root: _Utils["default"].clsx(classes.inputRoot, classes[variant])
729
730
  },
730
731
  id: id,
731
732
  value: actualInputValue,
@@ -741,7 +742,7 @@ var ChipInput = /*#__PURE__*/function (_React$Component) {
741
742
  placeholder: !hasInput && (shrinkFloatingLabel || label == null) || alwaysShowPlaceholder ? placeholder : null,
742
743
  readOnly: readOnly
743
744
  }, InputProps, InputMore))), helperText && /*#__PURE__*/_react["default"].createElement(_FormHelperText["default"], (0, _extends2["default"])({}, FormHelperTextProps, {
744
- className: FormHelperTextProps ? (0, _classnames["default"])(FormHelperTextProps.className, classes.helperText) : classes.helperText
745
+ className: FormHelperTextProps ? _Utils["default"].clsx(FormHelperTextProps.className, classes.helperText) : classes.helperText
745
746
  }), helperText));
746
747
  }
747
748
  }], [{
@@ -1 +1 @@
1
- {"version":3,"file":"ChipInput.js","names":["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","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","props","chips","errorText","undefined","focusedChip","inputValue","isClean","isFocused","chipsUpdated","prevPropsValue","actualInput","focus","state","setState","event","onBlur","value","target","addChipOptions","blurBehavior","clearInputOnFail","delayBeforeAdd","numChipsBefore","length","inputBlurTimeout","setTimeout","numChipsAfter","handleAddChip","clearInput","onFocus","_keyPressed","_preventChipCreation","onKeyDown","isDefaultPrevented","newChipKeyCodes","indexOf","keyCode","newChipKeys","key","result","preventDefault","handleDeleteChip","updateInput","onKeyUp","onKeyPress","e","onUpdateInput","ref","inputRef","defaultValue","labelRef","React","createRef","variant","labelNode","ReactDOM","findDOMNode","current","forceUpdate","clearTimeout","blur","options","onBeforeAdd","dataSourceConfig","allowDuplicates","some","c","onAdd","updateChips","trim","i","slice","changed","splice","onDelete","additionalUpdates","onChange","alwaysShowPlaceholder","children","chipRenderer","defaultChipRenderer","classes","className","clearInputValueOnChange","dataSource","disableUnderline","filter","FormHelperTextProps","fullWidth","fullWidthInput","id","InputProps","InputLabelProps","placeholder","readOnly","required","rootRef","other","actualInputValue","hasInput","shrinkFloatingLabel","shrink","chipComponents","map","isDisabled","isReadOnly","handleClick","handleDelete","InputMore","notched","labelWidth","offsetWidth","startAdornment","InputComponent","cx","handleUpdateInput","handleKeyDown","handleKeyPress","handleKeyUp","handleInputFocus","handleInputBlur","setActualInputRef","newState","Component","propTypes","PropTypes","bool","oneOf","func","array","shape","string","isRequired","object","node","arrayOf","number","defaultProps","withStyles","name","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 cx from 'classnames'\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 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 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) this.actualInput.blur()\n }\n\n /**\n * Focuses this component.\n * @public\n */\n focus = () => {\n this.actualInput.focus()\n if (this.state.focusedChip != null) {\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 != null) {\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 // Lets 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 case 'clear':\n this.clearInput()\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 if (this.props.onKeyDown) {\n // Needed for arrow controls on 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.indexOf(event.keyCode) >= 0 || this.props.newChipKeys.indexOf(event.key) >= 0) {\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 != null) {\n this.handleDeleteChip(chips[focusedChip], focusedChip)\n if (focusedChip > 0) {\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 != null) {\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) { this.props.onKeyUp(event) }\n }\n\n handleKeyPress = (event) => {\n this._keyPressed = true\n if (this.props.onKeyPress) { this.props.onKeyPress(event) }\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 != null && 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.indexOf(chip) === -1) {\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 if (this.props.inputRef) {\n this.props.inputRef(ref)\n }\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 const chips = value || this.state.chips\n const actualInputValue = inputValue != null ? inputValue : this.state.inputValue\n\n const hasInput = (this.props.value || actualInputValue).length > 0 || actualInputValue.length > 0\n const shrinkFloatingLabel = InputLabelProps.shrink != null\n ? InputLabelProps.shrink\n : (label != null && (hasInput || this.state.isFocused || chips.length > 0))\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 = (\n <React.Fragment>{chipComponents}</React.Fragment>\n )\n } else {\n InputProps.disableUnderline = true\n }\n\n const InputComponent = variantComponent[variant]\n\n return (\n <FormControl\n ref={rootRef}\n fullWidth={fullWidth}\n className={cx(className, classes.root, {\n [classes.marginDense]: other.margin === 'dense'\n })}\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 && (\n <InputLabel\n htmlFor={id}\n classes={{ root: cx(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 )}\n <div\n className={cx(\n classes[variant],\n classes.chipContainer,\n {\n [classes.focused]: this.state.isFocused,\n [classes.underline]: !disableUnderline && variant === 'standard',\n [classes.disabled]: disabled,\n [classes.labeled]: label != null,\n [classes.error]: error\n })}\n >\n {variant === 'standard' && chipComponents}\n <InputComponent\n ref={this.input}\n classes={{\n input: cx(classes.input, classes[variant]),\n root: cx(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 && (\n <FormHelperText\n {...FormHelperTextProps}\n className={FormHelperTextProps ? cx(FormHelperTextProps.className, classes.helperText) : classes.helperText}\n >\n {helperText}\n </FormHelperText>\n )}\n </FormControl>\n )\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 = ({ value, text, isFocused, isDisabled, isReadOnly, handleClick, handleDelete, className }, 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)"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;;;AAEA,IAAMA,gBAAgB,GAAG;EACvBC,QAAQ,EAAE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AgEC,YAAhE,QAAgEA,YAAhE;EAAA,IAA8EzB,SAA9E,QAA8EA,SAA9E;EAAA,oBACjC,gCAAC,gBAAD;IACE,GAAG,EAAE5C,GADP;IAEE,SAAS,EAAE4C,SAFb;IAGE,KAAK,EAAE;MACLlG,aAAa,EAAEwH,UAAU,IAAIC,UAAd,GAA2B,MAA3B,GAAoCtG,SAD9C;MAELb,eAAe,EAAEiB,SAAS,GAAGqI,gBAAA,CAAK,GAAL,CAAH,GAAezI;IAFpC,CAHT;IAOE,OAAO,EAAEuG,WAPX;IAQE,QAAQ,EAAEC,YARZ;IASE,KAAK,EAAEvH;EATT,EADiC;AAAA,CAA5B"}
1
+ {"version":3,"file":"ChipInput.js","names":["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","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","props","chips","errorText","undefined","focusedChip","inputValue","isClean","isFocused","chipsUpdated","prevPropsValue","actualInput","focus","state","setState","event","onBlur","value","target","addChipOptions","blurBehavior","clearInputOnFail","delayBeforeAdd","numChipsBefore","length","inputBlurTimeout","setTimeout","numChipsAfter","handleAddChip","clearInput","onFocus","_keyPressed","_preventChipCreation","onKeyDown","isDefaultPrevented","newChipKeyCodes","indexOf","keyCode","newChipKeys","key","result","preventDefault","handleDeleteChip","updateInput","onKeyUp","onKeyPress","e","onUpdateInput","ref","inputRef","defaultValue","labelRef","React","createRef","variant","labelNode","ReactDOM","findDOMNode","current","forceUpdate","clearTimeout","blur","options","onBeforeAdd","dataSourceConfig","allowDuplicates","some","c","onAdd","updateChips","trim","includes","i","slice","changed","splice","onDelete","additionalUpdates","onChange","alwaysShowPlaceholder","children","chipRenderer","defaultChipRenderer","classes","className","clearInputValueOnChange","dataSource","disableUnderline","filter","FormHelperTextProps","fullWidth","fullWidthInput","id","InputProps","InputLabelProps","placeholder","readOnly","required","rootRef","other","actualInputValue","hasInput","shrinkFloatingLabel","shrink","chipComponents","map","isDisabled","isReadOnly","handleClick","handleDelete","InputMore","notched","labelWidth","offsetWidth","startAdornment","InputComponent","Utils","clsx","handleUpdateInput","handleKeyDown","handleKeyPress","handleKeyUp","handleInputFocus","handleInputBlur","setActualInputRef","newState","Component","propTypes","PropTypes","bool","oneOf","func","array","shape","string","isRequired","object","node","arrayOf","number","defaultProps","withStyles","name","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 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 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 // Lets 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 }\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 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.indexOf(event.keyCode) >= 0 || this.props.newChipKeys.indexOf(event.key) >= 0) {\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 > 0) {\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 if (this.props.inputRef) {\n this.props.inputRef(ref);\n }\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 const chips = value || this.state.chips;\n const actualInputValue = inputValue != null ? inputValue : this.state.inputValue;\n\n const hasInput = (this.props.value || actualInputValue).length > 0 || actualInputValue.length > 0;\n const shrinkFloatingLabel = InputLabelProps.shrink != null\n ? InputLabelProps.shrink\n : (label != null && (hasInput || this.state.isFocused || chips.length > 0));\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;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;;;AAEA,IAAMA,gBAAgB,GAAG;EACrBC,QAAQ,EAAEC,iBADW;EAErBC,MAAM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,QAIKA,UAJL;EAAA,IAKKC,UALL,QAKKA,UALL;EAAA,IAMKC,WANL,QAMKA,WANL;EAAA,IAOKC,YAPL,QAOKA,YAPL;EAAA,IAQKzB,SARL,QAQKA,SARL;EAAA,oBAU/B,gCAAC,gBAAD;IACI,GAAG,EAAE7C,GADT;IAEI,SAAS,EAAE6C,SAFf;IAGI,KAAK,EAAE;MACHnG,aAAa,EAAEyH,UAAU,IAAIC,UAAd,GAA2B,MAA3B,GAAoCvG,SADhD;MAEHb,eAAe,EAAEiB,SAAS,GAAGuI,gBAAA,CAAK,GAAL,CAAH,GAAe3I;IAFtC,CAHX;IAOI,OAAO,EAAEwG,WAPb;IAQI,QAAQ,EAAEC,YARd;IASI,KAAK,EAAExH;EATX,EAV+B;AAAA,CAA5B"}
package/README.md CHANGED
@@ -641,7 +641,7 @@ If you still have questions, try to find an answer [here](https://mui.com/guides
641
641
  -->
642
642
 
643
643
  ## Changelog
644
- ### 3.0.0 (2022-05-24)
644
+ ### 3.0.1 (2022-05-24)
645
645
  * (bluefox) Added JsonConfigComponent
646
646
 
647
647
  ### 2.1.11 (2022-05-24)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iobroker/adapter-react-v5",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "React classes to develop admin interfaces for ioBroker with react.",
5
5
  "author": {
6
6
  "name": "bluefox",