@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.
@@ -63,7 +63,7 @@ export declare class ReactComponent<Data = any> extends Components.components.fi
63
63
  * @param value
64
64
  * @param flags
65
65
  */
66
- setValue(value: any, flags?: any): boolean;
66
+ setValue(value: any): boolean;
67
67
  /**
68
68
  * The user has changed the value in the component and the value needs to be updated on the main submission object and other components notified of a change event.
69
69
  *
package/dist/index.js CHANGED
@@ -611,6 +611,7 @@ function DefaultColumnFilter(props) {
611
611
  setFilterId(id);
612
612
  setFilter(value || undefined);
613
613
  }, [id, setValue, setFilterId, setFilter]);
614
+ /* eslint-disable jsx-a11y/no-autofocus */
614
615
  return /*#__PURE__*/React__default["default"].createElement(InputText, {
615
616
  size: "sm",
616
617
  id: id,
@@ -646,6 +647,9 @@ function DefaultOperationButton(props) {
646
647
  icon = "",
647
648
  title = "",
648
649
  i18n = f => f
650
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
651
+
652
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
649
653
  } = props,
650
654
  otherProps = _objectWithoutPropertiesLoose(props, _excluded$b);
651
655
  return /*#__PURE__*/React.createElement("button", _extends({}, otherProps, {
@@ -1489,7 +1493,6 @@ function useFormAccess(_ref) {
1489
1493
  onSubmit,
1490
1494
  options
1491
1495
  } = _ref;
1492
- // eslint-disable-next-line no-undef
1493
1496
  const form = React$1.useMemo(() => getFormAccess(roles), [roles]);
1494
1497
  const [submissions, setSubmissions] = React$1.useState(() => dataAccessToSubmissions(formDefinition, form));
1495
1498
  const onChange = React$1.useCallback((type, submission) => {
@@ -1601,6 +1604,7 @@ const _excluded$6 = ["action"],
1601
1604
  function mapData(options, defaults) {
1602
1605
  return _extends({}, defaults, options);
1603
1606
  }
1607
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
1604
1608
  function mapSettingsForm(_ref) {
1605
1609
  let settingsForm = _objectWithoutPropertiesLoose(_ref, _excluded$6);
1606
1610
  FormioUtils__default["default"].eachComponent(settingsForm.components, component => {
@@ -2124,7 +2128,6 @@ const reducer = (state, _ref) => {
2124
2128
  case "reset":
2125
2129
  return update(cloneDeep__default["default"](state.original));
2126
2130
  case "formChange":
2127
- // eslint-disable-next-line no-case-declarations
2128
2131
  const newValue = _extends({}, state.current, value);
2129
2132
  if (hasChanged(state.current, newValue)) {
2130
2133
  return update(newValue);
@@ -7227,7 +7230,7 @@ class ReactComponent extends formiojs.Components.components.field {
7227
7230
  * @param component - The component definition created from the settings form.
7228
7231
  * @param options - Any options passed into the renderer.
7229
7232
  * @param data - The submission data where this component's data exists.
7230
- */ // eslint-disable-next-line no-useless-constructor,import/no-anonymous-default-export
7233
+ */
7231
7234
  constructor(component, options, data) {
7232
7235
  super(component, options, data);
7233
7236
  this.reactInstance = void 0;
@@ -7330,17 +7333,16 @@ class ReactComponent extends formiojs.Components.components.field {
7330
7333
  *
7331
7334
  * @param element
7332
7335
  */
7333
- // eslint-disable-next-line @typescript-eslint/no-empty-function
7334
7336
  attachReact(element) {
7335
- // eslint-disable-next-line react/no-render-return-value
7337
+ // eslint-disable-next-line react/no-render-return-value,react/no-deprecated
7336
7338
  return ReactDOM__default["default"].render(this.renderReact(), element);
7337
7339
  }
7338
7340
  /**
7339
7341
  * Override this function.
7340
7342
  */
7341
- // eslint-disable-next-line @typescript-eslint/no-empty-function
7342
7343
  detachReact(element) {
7343
7344
  if (element) {
7345
+ // eslint-disable-next-line react/no-deprecated
7344
7346
  ReactDOM__default["default"].unmountComponentAtNode(element);
7345
7347
  }
7346
7348
  }
@@ -7350,7 +7352,7 @@ class ReactComponent extends formiojs.Components.components.field {
7350
7352
  * @param value
7351
7353
  * @param flags
7352
7354
  */
7353
- setValue(value, flags) {
7355
+ setValue(value) {
7354
7356
  if (this.reactInstance) {
7355
7357
  this.reactInstance.setState({
7356
7358
  value: value