@tsed/react-formio 2.3.2 → 2.3.4
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/dist/components/react-component/reactComponent.component.d.ts +1 -1
- package/dist/index.js +9 -7
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +9 -7
- package/dist/index.modern.js.map +1 -1
- package/package.json +6 -5
- package/src/components/actions-table/actionsTable.component.spec.tsx +2 -2
- package/src/components/form/form.stories.tsx +1 -2
- package/src/components/form-access/formAccess.component.tsx +0 -1
- package/src/components/form-action/formAction.component.tsx +1 -0
- package/src/components/form-control/formControl.component.tsx +1 -1
- package/src/components/form-edit/formEdit.reducer.ts +0 -1
- package/src/components/form-settings/formSettings.component.spec.tsx +4 -4
- package/src/components/pagination/pagination.component.spec.tsx +0 -2
- package/src/components/react-component/reactComponent.component.tsx +5 -5
- package/src/components/select/select.component.tsx +1 -1
- package/src/components/table/components/defaultOperationButton.component.tsx +2 -0
- package/src/components/table/components/defaultRow.component.tsx +1 -0
- package/src/components/table/filters/defaultColumnFilter.component.tsx +1 -0
- package/src/react-table.d.ts +2 -0
package/dist/index.modern.js
CHANGED
|
@@ -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
|
-
*/
|
|
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
|
|
7223
|
+
setValue(value) {
|
|
7222
7224
|
if (this.reactInstance) {
|
|
7223
7225
|
this.reactInstance.setState({
|
|
7224
7226
|
value: value
|