@tsed/react-formio 2.3.2 → 2.3.3

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.
@@ -579,6 +579,7 @@ function DefaultColumnFilter(props) {
579
579
  setFilterId(id);
580
580
  setFilter(value || undefined);
581
581
  }, [id, setValue, setFilterId, setFilter]);
582
+ /* eslint-disable jsx-a11y/no-autofocus */
582
583
  return /*#__PURE__*/React$1.createElement(InputText, {
583
584
  size: "sm",
584
585
  id: id,
@@ -614,6 +615,9 @@ function DefaultOperationButton(props) {
614
615
  icon = "",
615
616
  title = "",
616
617
  i18n = f => f
618
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
619
+
620
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
617
621
  } = props,
618
622
  otherProps = _objectWithoutPropertiesLoose(props, _excluded$b);
619
623
  return /*#__PURE__*/React.createElement("button", _extends({}, otherProps, {
@@ -1413,7 +1417,6 @@ function useFormAccess({
1413
1417
  onSubmit,
1414
1418
  options
1415
1419
  }) {
1416
- // eslint-disable-next-line no-undef
1417
1420
  const form = useMemo(() => getFormAccess(roles), [roles]);
1418
1421
  const [submissions, setSubmissions] = useState(() => dataAccessToSubmissions(formDefinition, form));
1419
1422
  const onChange = useCallback((type, submission) => {
@@ -1523,6 +1526,7 @@ const _excluded$6 = ["action"],
1523
1526
  function mapData(options, defaults) {
1524
1527
  return _extends({}, defaults, options);
1525
1528
  }
1529
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
1526
1530
  function mapSettingsForm(_ref) {
1527
1531
  let settingsForm = _objectWithoutPropertiesLoose(_ref, _excluded$6);
1528
1532
  FormioUtils.eachComponent(settingsForm.components, component => {
@@ -2003,7 +2007,6 @@ const reducer = (state, {
2003
2007
  case "reset":
2004
2008
  return update(cloneDeep(state.original));
2005
2009
  case "formChange":
2006
- // eslint-disable-next-line no-case-declarations
2007
2010
  const newValue = _extends({}, state.current, value);
2008
2011
  if (hasChanged(state.current, newValue)) {
2009
2012
  return update(newValue);
@@ -7102,7 +7105,7 @@ class ReactComponent extends Components.components.field {
7102
7105
  * @param component - The component definition created from the settings form.
7103
7106
  * @param options - Any options passed into the renderer.
7104
7107
  * @param data - The submission data where this component's data exists.
7105
- */ // eslint-disable-next-line no-useless-constructor,import/no-anonymous-default-export
7108
+ */
7106
7109
  constructor(component, options, data) {
7107
7110
  super(component, options, data);
7108
7111
  this.reactInstance = void 0;
@@ -7198,17 +7201,16 @@ class ReactComponent extends Components.components.field {
7198
7201
  *
7199
7202
  * @param element
7200
7203
  */
7201
- // eslint-disable-next-line @typescript-eslint/no-empty-function
7202
7204
  attachReact(element) {
7203
- // eslint-disable-next-line react/no-render-return-value
7205
+ // eslint-disable-next-line react/no-render-return-value,react/no-deprecated
7204
7206
  return ReactDOM.render(this.renderReact(), element);
7205
7207
  }
7206
7208
  /**
7207
7209
  * Override this function.
7208
7210
  */
7209
- // eslint-disable-next-line @typescript-eslint/no-empty-function
7210
7211
  detachReact(element) {
7211
7212
  if (element) {
7213
+ // eslint-disable-next-line react/no-deprecated
7212
7214
  ReactDOM.unmountComponentAtNode(element);
7213
7215
  }
7214
7216
  }
@@ -7218,7 +7220,7 @@ class ReactComponent extends Components.components.field {
7218
7220
  * @param value
7219
7221
  * @param flags
7220
7222
  */
7221
- setValue(value, flags) {
7223
+ setValue(value) {
7222
7224
  if (this.reactInstance) {
7223
7225
  this.reactInstance.setState({
7224
7226
  value: value