@tsed/react-formio 2.3.6 → 3.0.0-alpha.10
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/atoms/icon/Icon.d.ts +6 -0
- package/dist/atoms/icon/Icon.js +12 -0
- package/dist/atoms/icon/Icon.js.map +1 -0
- package/dist/chunks/_commonjsHelpers.js +7 -0
- package/dist/chunks/_commonjsHelpers.js.map +1 -0
- package/dist/chunks/index.js +43 -0
- package/dist/chunks/index.js.map +1 -0
- package/dist/chunks/index.module.js +56 -0
- package/dist/chunks/index.module.js.map +1 -0
- package/dist/chunks/react-select-animated.esm.js +3513 -0
- package/dist/chunks/react-select-animated.esm.js.map +1 -0
- package/dist/hooks/useTooltip.d.ts +2 -3
- package/dist/hooks/useTooltip.js +12 -0
- package/dist/hooks/useTooltip.js.map +1 -0
- package/dist/index.d.ts +7 -13
- package/dist/index.js +14 -7653
- package/dist/index.js.map +1 -1
- package/dist/interfaces/ActionType.d.ts +23 -0
- package/dist/interfaces/ActionType.js +2 -0
- package/dist/interfaces/ActionType.js.map +1 -0
- package/dist/interfaces/ColumnIdentifier.d.ts +14 -14
- package/dist/interfaces/ColumnIdentifier.js +2 -0
- package/dist/interfaces/ColumnIdentifier.js.map +1 -0
- package/dist/interfaces/ComponentType.d.ts +2 -0
- package/dist/interfaces/ComponentType.js +2 -0
- package/dist/interfaces/ComponentType.js.map +1 -0
- package/dist/interfaces/FormOptions.d.ts +13 -10
- package/dist/interfaces/FormOptions.js +2 -0
- package/dist/interfaces/FormOptions.js.map +1 -0
- package/dist/interfaces/{FormSchema.d.ts → FormType.d.ts} +12 -12
- package/dist/interfaces/FormType.js +2 -0
- package/dist/interfaces/FormType.js.map +1 -0
- package/dist/interfaces/Operation.d.ts +28 -29
- package/dist/interfaces/Operation.js +2 -0
- package/dist/interfaces/Operation.js.map +1 -0
- package/dist/interfaces/QueryOptions.d.ts +23 -23
- package/dist/interfaces/QueryOptions.js +2 -0
- package/dist/interfaces/QueryOptions.js.map +1 -0
- package/dist/interfaces/{RoleSchema.d.ts → RoleType.d.ts} +6 -6
- package/dist/interfaces/RoleType.js +2 -0
- package/dist/interfaces/RoleType.js.map +1 -0
- package/dist/interfaces/SubmissionType.d.ts +29 -0
- package/dist/interfaces/SubmissionType.js +2 -0
- package/dist/interfaces/SubmissionType.js.map +1 -0
- package/dist/interfaces/index.d.ts +9 -8
- package/dist/interfaces/index.js +2 -0
- package/dist/interfaces/index.js.map +1 -0
- package/dist/molecules/alert/Alert.d.ts +6 -0
- package/dist/molecules/alert/Alert.js +27 -0
- package/dist/molecules/alert/Alert.js.map +1 -0
- package/dist/molecules/button/Button.d.ts +8 -0
- package/dist/molecules/button/Button.js +52 -0
- package/dist/molecules/button/Button.js.map +1 -0
- package/dist/{components/card/card.component.d.ts → molecules/card/Card.d.ts} +6 -7
- package/dist/molecules/card/Card.js +12 -0
- package/dist/molecules/card/Card.js.map +1 -0
- package/dist/molecules/forms/form-control/FormControl.d.ts +17 -0
- package/dist/molecules/forms/form-control/FormControl.js +51 -0
- package/dist/molecules/forms/form-control/FormControl.js.map +1 -0
- package/dist/molecules/forms/input-tags/InputTags.d.ts +2 -0
- package/dist/molecules/forms/input-tags/InputTags.interface.d.ts +7 -0
- package/dist/molecules/forms/input-tags/InputTags.interface.js +2 -0
- package/dist/molecules/forms/input-tags/InputTags.interface.js.map +1 -0
- package/dist/molecules/forms/input-tags/InputTags.js +25 -0
- package/dist/molecules/forms/input-tags/InputTags.js.map +1 -0
- package/dist/molecules/forms/input-tags/all.d.ts +2 -0
- package/dist/molecules/forms/input-tags/all.js +9 -0
- package/dist/molecules/forms/input-tags/all.js.map +1 -0
- package/dist/molecules/forms/input-tags/components/ChoicesTags.d.ts +307 -0
- package/dist/molecules/forms/input-tags/components/ChoicesTags.js +51 -0
- package/dist/molecules/forms/input-tags/components/ChoicesTags.js.map +1 -0
- package/dist/molecules/forms/input-tags/components/ReactTags.d.ts +2 -0
- package/dist/molecules/forms/input-tags/components/ReactTags.js +1937 -0
- package/dist/molecules/forms/input-tags/components/ReactTags.js.map +1 -0
- package/dist/molecules/forms/input-text/InputText.d.ts +2 -0
- package/dist/molecules/forms/input-text/InputText.interface.d.ts +4 -0
- package/dist/molecules/forms/input-text/InputText.interface.js +2 -0
- package/dist/molecules/forms/input-text/InputText.interface.js.map +1 -0
- package/dist/molecules/forms/input-text/InputText.js +54 -0
- package/dist/molecules/forms/input-text/InputText.js.map +1 -0
- package/dist/molecules/forms/select/Select.d.ts +2 -0
- package/dist/molecules/forms/select/Select.interface.d.ts +38 -0
- package/dist/molecules/forms/select/Select.interface.js +2 -0
- package/dist/molecules/forms/select/Select.interface.js.map +1 -0
- package/dist/molecules/forms/select/Select.js +16 -0
- package/dist/molecules/forms/select/Select.js.map +1 -0
- package/dist/molecules/forms/select/all.d.ts +2 -0
- package/dist/molecules/forms/select/all.js +9 -0
- package/dist/molecules/forms/select/all.js.map +1 -0
- package/dist/molecules/forms/select/components/ChoicesSelect.d.ts +7 -0
- package/dist/molecules/forms/select/components/ChoicesSelect.js +115 -0
- package/dist/molecules/forms/select/components/ChoicesSelect.js.map +1 -0
- package/dist/molecules/forms/select/components/HtmlSelect.d.ts +2 -0
- package/dist/molecules/forms/select/components/HtmlSelect.js +35 -0
- package/dist/molecules/forms/select/components/HtmlSelect.js.map +1 -0
- package/dist/molecules/forms/select/components/ReactSelect.d.ts +2 -0
- package/dist/molecules/forms/select/components/ReactSelect.js +46 -0
- package/dist/molecules/forms/select/components/ReactSelect.js.map +1 -0
- package/dist/molecules/forms/select/components/choices.template.d.ts +7 -0
- package/dist/molecules/forms/select/components/choices.template.js +9654 -0
- package/dist/molecules/forms/select/components/choices.template.js.map +1 -0
- package/dist/molecules/forms/select/hooks/useOptions.d.ts +9 -0
- package/dist/molecules/forms/select/hooks/useOptions.js +35 -0
- package/dist/molecules/forms/select/hooks/useOptions.js.map +1 -0
- package/dist/molecules/loader/Loader.d.ts +8 -0
- package/dist/molecules/loader/Loader.js +19 -0
- package/dist/molecules/loader/Loader.js.map +1 -0
- package/dist/{components/modal/modal.component.d.ts → molecules/modal/Modal.d.ts} +15 -15
- package/dist/molecules/modal/Modal.js +62 -0
- package/dist/molecules/modal/Modal.js.map +1 -0
- package/dist/molecules/pagination/Pagination.d.ts +18 -0
- package/dist/molecules/pagination/Pagination.js +77 -0
- package/dist/molecules/pagination/Pagination.js.map +1 -0
- package/dist/molecules/pagination/PaginationButton.d.ts +7 -0
- package/dist/molecules/pagination/PaginationButton.js +21 -0
- package/dist/molecules/pagination/PaginationButton.js.map +1 -0
- package/dist/molecules/pagination/all.d.ts +2 -0
- package/dist/molecules/pagination/all.js +12 -0
- package/dist/molecules/pagination/all.js.map +1 -0
- package/dist/{components/table → molecules/pagination}/utils/getPageNumbers.d.ts +3 -3
- package/dist/molecules/pagination/utils/getPageNumbers.js +25 -0
- package/dist/molecules/pagination/utils/getPageNumbers.js.map +1 -0
- package/dist/molecules/table/Table.d.ts +9 -0
- package/dist/molecules/table/Table.js +58 -0
- package/dist/molecules/table/Table.js.map +1 -0
- package/dist/molecules/table/all.d.ts +0 -0
- package/dist/molecules/table/all.js +19 -0
- package/dist/molecules/table/all.js.map +1 -0
- package/dist/molecules/table/components/DefaultArrowSort.d.ts +5 -0
- package/dist/molecules/table/components/DefaultArrowSort.js +22 -0
- package/dist/molecules/table/components/DefaultArrowSort.js.map +1 -0
- package/dist/molecules/table/components/DefaultCell.d.ts +5 -0
- package/dist/molecules/table/components/DefaultCell.js +13 -0
- package/dist/molecules/table/components/DefaultCell.js.map +1 -0
- package/dist/molecules/table/components/DefaultCellFooter.d.ts +6 -0
- package/dist/molecules/table/components/DefaultCellFooter.js +12 -0
- package/dist/molecules/table/components/DefaultCellFooter.js.map +1 -0
- package/dist/molecules/table/components/DefaultCellHeader.d.ts +6 -0
- package/dist/molecules/table/components/DefaultCellHeader.js +30 -0
- package/dist/molecules/table/components/DefaultCellHeader.js.map +1 -0
- package/dist/molecules/table/components/DefaultCellOperations.d.ts +10 -0
- package/dist/molecules/table/components/DefaultCellOperations.js +24 -0
- package/dist/molecules/table/components/DefaultCellOperations.js.map +1 -0
- package/dist/molecules/table/components/DefaultFilter.d.ts +11 -0
- package/dist/molecules/table/components/DefaultFilter.js +15 -0
- package/dist/molecules/table/components/DefaultFilter.js.map +1 -0
- package/dist/molecules/table/components/DefaultOperationButton.d.ts +11 -0
- package/dist/molecules/table/components/DefaultOperationButton.js +30 -0
- package/dist/molecules/table/components/DefaultOperationButton.js.map +1 -0
- package/dist/molecules/table/filters/Filters.d.js +2 -0
- package/dist/molecules/table/filters/Filters.d.js.map +1 -0
- package/dist/molecules/table/filters/RangeFilter.d.ts +3 -0
- package/dist/molecules/table/filters/RangeFilter.js +42 -0
- package/dist/molecules/table/filters/RangeFilter.js.map +1 -0
- package/dist/molecules/table/filters/SelectFilter.d.ts +3 -0
- package/dist/molecules/table/filters/SelectFilter.js +35 -0
- package/dist/molecules/table/filters/SelectFilter.js.map +1 -0
- package/dist/molecules/table/filters/TextFieldFilter.d.ts +3 -0
- package/dist/molecules/table/filters/TextFieldFilter.js +27 -0
- package/dist/molecules/table/filters/TextFieldFilter.js.map +1 -0
- package/dist/molecules/table/hooks/useTable.d.ts +15 -0
- package/dist/molecules/table/hooks/useTable.js +34 -0
- package/dist/molecules/table/hooks/useTable.js.map +1 -0
- package/dist/molecules/table/hooks/useUniqValues.d.ts +5 -0
- package/dist/molecules/table/hooks/useUniqValues.js +11 -0
- package/dist/molecules/table/hooks/useUniqValues.js.map +1 -0
- package/dist/molecules/table/interfaces/extends.d.ts +14 -0
- package/dist/molecules/table/interfaces/extends.js +2 -0
- package/dist/molecules/table/interfaces/extends.js.map +1 -0
- package/dist/molecules/table/utils/mapFormToColumns.d.ts +3 -0
- package/dist/molecules/table/utils/mapFormToColumns.js +39 -0
- package/dist/molecules/table/utils/mapFormToColumns.js.map +1 -0
- package/dist/{components/tabs/tabs.component.d.ts → molecules/tabs/Tabs.d.ts} +19 -19
- package/dist/molecules/tabs/Tabs.js +72 -0
- package/dist/molecules/tabs/Tabs.js.map +1 -0
- package/dist/organisms/form/Form.d.ts +22 -0
- package/dist/organisms/form/Form.js +15 -0
- package/dist/organisms/form/Form.js.map +1 -0
- package/dist/organisms/form/access/FormAccess.d.ts +9 -0
- package/dist/organisms/form/access/FormAccess.js +94 -0
- package/dist/organisms/form/access/FormAccess.js.map +1 -0
- package/dist/organisms/form/access/FormAccess.schema.d.ts +4 -0
- package/dist/organisms/form/access/FormAccess.schema.js +164 -0
- package/dist/organisms/form/access/FormAccess.schema.js.map +1 -0
- package/dist/organisms/form/access/FormAccess.utils.d.ts +23 -0
- package/dist/organisms/form/access/FormAccess.utils.js +68 -0
- package/dist/organisms/form/access/FormAccess.utils.js.map +1 -0
- package/dist/organisms/form/action/FormAction.d.ts +9 -0
- package/dist/organisms/form/action/FormAction.js +32 -0
- package/dist/organisms/form/action/FormAction.js.map +1 -0
- package/dist/organisms/form/builder/FormBuilder.d.ts +7 -0
- package/dist/organisms/form/builder/FormBuilder.js +17 -0
- package/dist/organisms/form/builder/FormBuilder.js.map +1 -0
- package/dist/organisms/form/builder/FormEdit.d.ts +8 -0
- package/dist/organisms/form/builder/FormEdit.js +70 -0
- package/dist/organisms/form/builder/FormEdit.js.map +1 -0
- package/dist/organisms/form/builder/FormEdit.reducer.d.ts +10 -0
- package/dist/organisms/form/builder/FormEdit.reducer.js +65 -0
- package/dist/organisms/form/builder/FormEdit.reducer.js.map +1 -0
- package/dist/organisms/form/builder/FormEditCtas.d.ts +15 -0
- package/dist/organisms/form/builder/FormEditCtas.js +52 -0
- package/dist/organisms/form/builder/FormEditCtas.js.map +1 -0
- package/dist/organisms/form/builder/FormParameters.d.ts +24 -0
- package/dist/organisms/form/builder/FormParameters.js +84 -0
- package/dist/organisms/form/builder/FormParameters.js.map +1 -0
- package/dist/organisms/form/builder/all.d.ts +6 -0
- package/dist/organisms/form/builder/all.js +26 -0
- package/dist/organisms/form/builder/all.js.map +1 -0
- package/dist/organisms/form/builder/useFormBuilder.d.ts +28 -0
- package/dist/organisms/form/builder/useFormBuilder.js +71 -0
- package/dist/organisms/form/builder/useFormBuilder.js.map +1 -0
- package/dist/{components/form-edit/useFormEdit.hook.d.ts → organisms/form/builder/useFormEdit.d.ts} +29 -29
- package/dist/organisms/form/builder/useFormEdit.js +36 -0
- package/dist/organisms/form/builder/useFormEdit.js.map +1 -0
- package/dist/{components/form-settings/formSettings.component.d.ts → organisms/form/settings/FormSettings.d.ts} +7 -8
- package/dist/organisms/form/settings/FormSettings.js +38 -0
- package/dist/organisms/form/settings/FormSettings.js.map +1 -0
- package/dist/organisms/form/settings/FormSettings.schema.d.ts +2 -0
- package/dist/organisms/form/settings/FormSettings.schema.js +60 -0
- package/dist/organisms/form/settings/FormSettings.schema.js.map +1 -0
- package/dist/organisms/form/settings/FormSettings.utils.d.ts +8 -0
- package/dist/organisms/form/settings/FormSettings.utils.js +23 -0
- package/dist/organisms/form/settings/FormSettings.utils.js.map +1 -0
- package/dist/organisms/form/types.d.ts +15 -0
- package/dist/organisms/form/types.js +2 -0
- package/dist/organisms/form/types.js.map +1 -0
- package/dist/organisms/form/useForm.d.ts +65 -0
- package/dist/organisms/form/useForm.js +776 -0
- package/dist/organisms/form/useForm.js.map +1 -0
- package/dist/{components/modal/removeModal.component.d.ts → organisms/modal/RemoveModal.d.ts} +9 -9
- package/dist/organisms/modal/RemoveModal.js +71 -0
- package/dist/organisms/modal/RemoveModal.js.map +1 -0
- package/dist/organisms/table/actions/ActionsTable.d.ts +10 -0
- package/dist/organisms/table/actions/ActionsTable.js +46 -0
- package/dist/organisms/table/actions/ActionsTable.js.map +1 -0
- package/dist/organisms/table/forms/FormsTable.d.ts +9 -0
- package/dist/organisms/table/forms/FormsTable.js +57 -0
- package/dist/organisms/table/forms/FormsTable.js.map +1 -0
- package/dist/organisms/table/forms/components/FormsCell.d.ts +5 -0
- package/dist/organisms/table/forms/components/FormsCell.js +50 -0
- package/dist/organisms/table/forms/components/FormsCell.js.map +1 -0
- package/dist/organisms/table/submissions/SubmissionsTable.d.ts +6 -0
- package/dist/organisms/table/submissions/SubmissionsTable.js +11 -0
- package/dist/organisms/table/submissions/SubmissionsTable.js.map +1 -0
- package/dist/react-app-env.d.js +2 -0
- package/dist/react-app-env.d.js.map +1 -0
- package/dist/react-table.d.js +2 -0
- package/dist/react-table.d.js.map +1 -0
- package/dist/registries/components.d.ts +3 -0
- package/dist/registries/components.js +19 -0
- package/dist/registries/components.js.map +1 -0
- package/dist/typings.d.js +2 -0
- package/dist/typings.d.js.map +1 -0
- package/dist/utils/getEventValue.d.ts +1 -1
- package/dist/utils/getEventValue.js +8 -0
- package/dist/utils/getEventValue.js.map +1 -0
- package/dist/utils/iconClass.d.ts +1 -1
- package/dist/utils/iconClass.js +9 -0
- package/dist/utils/iconClass.js.map +1 -0
- package/dist/utils/mapPagination.d.ts +1 -1
- package/dist/utils/mapPagination.js +11 -0
- package/dist/utils/mapPagination.js.map +1 -0
- package/dist/utils/stopPropagationWrapper.d.ts +1 -1
- package/dist/utils/stopPropagationWrapper.js +7 -0
- package/dist/utils/stopPropagationWrapper.js.map +1 -0
- package/package.json +29 -18
- package/readme.md +33 -20
- package/src/atoms/icon/Icon.stories.tsx +124 -0
- package/src/atoms/icon/Icon.tsx +16 -0
- package/src/index.ts +1 -6
- package/src/interfaces/ActionType.ts +26 -0
- package/src/interfaces/ComponentType.ts +3 -0
- package/src/interfaces/FormOptions.ts +4 -1
- package/src/interfaces/{FormSchema.ts → FormType.ts} +3 -3
- package/src/interfaces/Operation.ts +2 -2
- package/src/interfaces/{RoleSchema.ts → RoleType.ts} +1 -1
- package/src/interfaces/SubmissionType.ts +20 -0
- package/src/interfaces/index.ts +5 -4
- package/src/molecules/__fixtures__/build.js +28 -0
- package/src/molecules/__fixtures__/form-firstname.fixture.json +256 -0
- package/src/molecules/__fixtures__/form-schema.json +350 -0
- package/src/molecules/__fixtures__/form-submissions.json +11942 -0
- package/src/molecules/__fixtures__/form-wizard.fixture.json +2042 -0
- package/src/molecules/__fixtures__/products.json +81539 -0
- package/src/molecules/__fixtures__/useValue.hook.ts +14 -0
- package/src/{components/alert/alert.component.spec.tsx → molecules/alert/Alert.spec.tsx} +12 -15
- package/src/molecules/alert/Alert.stories.tsx +39 -0
- package/src/{components/alert/alert.component.tsx → molecules/alert/Alert.tsx} +9 -8
- package/src/molecules/button/Button.stories.tsx +106 -0
- package/src/molecules/button/Button.tsx +54 -0
- package/src/{components/card/card.component.spec.tsx → molecules/card/Card.spec.tsx} +3 -3
- package/src/{components/card/card.stories.tsx → molecules/card/Card.stories.tsx} +9 -4
- package/src/{components/card/card.component.tsx → molecules/card/Card.tsx} +1 -2
- package/src/{components/form-control/formControl.component.spec.tsx → molecules/forms/form-control/FormControl.spec.tsx} +9 -9
- package/src/molecules/forms/form-control/FormControl.stories.tsx +58 -0
- package/src/molecules/forms/form-control/FormControl.tsx +86 -0
- package/src/molecules/forms/input-tags/InputTags.interface.ts +9 -0
- package/src/molecules/forms/input-tags/InputTags.tsx +30 -0
- package/src/molecules/forms/input-tags/all.ts +6 -0
- package/src/molecules/forms/input-tags/components/ChoicesTags.stories.tsx +110 -0
- package/src/molecules/forms/input-tags/components/ChoicesTags.tsx +72 -0
- package/src/molecules/forms/input-tags/components/ReactTags.stories.tsx +140 -0
- package/src/molecules/forms/input-tags/components/ReactTags.tsx +38 -0
- package/src/molecules/forms/input-text/InputText.interface.ts +5 -0
- package/src/{components/input-text/inputText.component.spec.tsx → molecules/forms/input-text/InputText.spec.tsx} +8 -8
- package/src/molecules/forms/input-text/InputText.stories.tsx +179 -0
- package/src/molecules/forms/input-text/InputText.tsx +63 -0
- package/src/molecules/forms/select/Select.interface.ts +45 -0
- package/src/molecules/forms/select/Select.tsx +28 -0
- package/src/molecules/forms/select/all.ts +7 -0
- package/src/molecules/forms/select/components/ChoicesSelect.stories.tsx +332 -0
- package/src/molecules/forms/select/components/ChoicesSelect.tsx +159 -0
- package/src/molecules/forms/select/components/HtmlSelect.stories.tsx +305 -0
- package/src/molecules/forms/select/components/HtmlSelect.tsx +54 -0
- package/src/molecules/forms/select/components/ReactSelect.stories.tsx +287 -0
- package/src/molecules/forms/select/components/ReactSelect.tsx +60 -0
- package/src/molecules/forms/select/components/choices.template.tsx +38 -0
- package/src/molecules/forms/select/hooks/useOptions.spec.ts +154 -0
- package/src/molecules/forms/select/hooks/useOptions.ts +53 -0
- package/src/{components/loader/loader.component.spec.tsx → molecules/loader/Loader.spec.tsx} +4 -4
- package/src/molecules/loader/Loader.stories.tsx +43 -0
- package/src/{components/loader/loader.component.tsx → molecules/loader/Loader.tsx} +3 -11
- package/src/molecules/modal/Modal.spec.tsx +203 -0
- package/src/molecules/modal/Modal.stories.tsx +178 -0
- package/src/{components/modal/modal.component.tsx → molecules/modal/Modal.tsx} +1 -1
- package/src/{components/pagination/pagination.component.spec.tsx → molecules/pagination/Pagination.spec.tsx} +27 -22
- package/src/molecules/pagination/Pagination.stories.tsx +99 -0
- package/src/{components/pagination/pagination.component.tsx → molecules/pagination/Pagination.tsx} +34 -47
- package/src/molecules/pagination/PaginationButton.tsx +30 -0
- package/src/molecules/pagination/all.ts +3 -0
- package/src/molecules/table/Table.stories.tsx +272 -0
- package/src/molecules/table/Table.tsx +100 -0
- package/src/molecules/table/all.ts +16 -0
- package/src/molecules/table/components/DefaultArrowSort.tsx +26 -0
- package/src/molecules/table/components/DefaultCell.tsx +22 -0
- package/src/molecules/table/components/DefaultCellFooter.tsx +16 -0
- package/src/molecules/table/components/DefaultCellHeader.tsx +42 -0
- package/src/molecules/table/components/DefaultCellOperations.tsx +42 -0
- package/src/molecules/table/components/DefaultFilter.tsx +42 -0
- package/src/molecules/table/components/DefaultOperationButton.tsx +40 -0
- package/src/molecules/table/filters/Filters.d.ts +31 -0
- package/src/molecules/table/filters/RangeFilter.tsx +43 -0
- package/src/molecules/table/filters/SelectFilter.tsx +47 -0
- package/src/molecules/table/filters/TextFieldFilter.tsx +36 -0
- package/src/molecules/table/hooks/useTable.tsx +75 -0
- package/src/molecules/table/hooks/useUniqValues.tsx +10 -0
- package/src/molecules/table/interfaces/extends.ts +18 -0
- package/src/molecules/table/utils/mapFormToColumns.tsx +74 -0
- package/src/{components/tabs/tabs.component.spec.tsx → molecules/tabs/Tabs.spec.tsx} +6 -6
- package/src/molecules/tabs/Tabs.stories.tsx +141 -0
- package/src/{components/tabs/tabs.component.tsx → molecules/tabs/Tabs.tsx} +1 -1
- package/src/organisms/__fixtures__/WrapComponent.tsx +11 -0
- package/src/organisms/__fixtures__/form-actions.json +240 -0
- package/src/organisms/__fixtures__/form-firstname.fixture.json +256 -0
- package/src/organisms/__fixtures__/form-wizard.fixture.json +2042 -0
- package/src/organisms/__fixtures__/form.fixture.json +2067 -0
- package/src/organisms/__fixtures__/useEditForm.tsx +84 -0
- package/src/organisms/__fixtures__/utils.ts +74 -0
- package/src/{components/form/form.component.spec.tsx → organisms/form/Form.spec.tsx} +6 -7
- package/src/organisms/form/Form.stories.tsx +698 -0
- package/src/organisms/form/Form.tsx +29 -0
- package/src/{components/form-access/formAccess.schema.ts → organisms/form/access/FormAccess.schema.ts} +4 -6
- package/src/{components/form-access/formAccess.stories.tsx → organisms/form/access/FormAccess.stories.tsx} +8 -2
- package/src/{components/form-access/formAccess.component.tsx → organisms/form/access/FormAccess.tsx} +16 -18
- package/src/{components/form-access/formAccess.utils.spec.ts → organisms/form/access/FormAccess.utils.spec.ts} +13 -7
- package/src/{components/form-access/formAccess.utils.ts → organisms/form/access/FormAccess.utils.ts} +23 -20
- package/src/{components/form-action/formAction.stories.tsx → organisms/form/action/FormAction.stories.tsx} +11 -13
- package/src/{components/form-action/formAction.component.tsx → organisms/form/action/FormAction.tsx} +8 -8
- package/src/organisms/form/builder/FormBuilder.stories.tsx +97 -0
- package/src/organisms/form/builder/FormBuilder.tsx +28 -0
- package/src/{components/form-edit/formEdit.reducer.ts → organisms/form/builder/FormEdit.reducer.ts} +6 -6
- package/src/{components/form-edit/formEdit.stories.tsx → organisms/form/builder/FormEdit.stories.tsx} +88 -44
- package/src/organisms/form/builder/FormEdit.tsx +75 -0
- package/src/organisms/form/builder/FormEditCtas.tsx +97 -0
- package/src/{components/form-edit/formParameters.component.tsx → organisms/form/builder/FormParameters.tsx} +29 -29
- package/src/organisms/form/builder/all.ts +17 -0
- package/src/organisms/form/builder/useFormBuilder.ts +143 -0
- package/src/{components/form-edit/useFormEdit.hook.ts → organisms/form/builder/useFormEdit.ts} +8 -8
- package/src/{components/form-settings/formSettings.component.spec.tsx → organisms/form/settings/FormSettings.component.spec.tsx} +3 -4
- package/src/{components/form-settings/formSettings.schema.ts → organisms/form/settings/FormSettings.schema.ts} +2 -2
- package/src/{components/form-settings/formSettings.stories.tsx → organisms/form/settings/FormSettings.stories.tsx} +10 -10
- package/src/{components/form-settings/formSettings.component.tsx → organisms/form/settings/FormSettings.tsx} +8 -9
- package/src/{components/form-settings/formSettings.utils.spec.ts → organisms/form/settings/FormSettings.utils.spec.ts} +1 -1
- package/src/{components/form-settings/formSettings.utils.ts → organisms/form/settings/FormSettings.utils.ts} +4 -4
- package/src/organisms/form/types.ts +8 -0
- package/src/organisms/form/useForm.ts +223 -0
- package/src/organisms/modal/RemoveModal.stories.tsx +59 -0
- package/src/{components/modal/removeModal.component.tsx → organisms/modal/RemoveModal.tsx} +3 -3
- package/src/{components/actions-table/actionsTable.component.spec.tsx → organisms/table/actions/ActionsTable.spec.tsx} +14 -11
- package/src/{components/actions-table/actionsTable.stories.tsx → organisms/table/actions/ActionsTable.stories.tsx} +22 -24
- package/src/{components/actions-table/actionsTable.component.tsx → organisms/table/actions/ActionsTable.tsx} +14 -21
- package/src/{components/forms-table/formsTable.stories.tsx → organisms/table/forms/FormsTable.stories.tsx} +24 -28
- package/src/organisms/table/forms/FormsTable.tsx +66 -0
- package/src/organisms/table/forms/components/FormsCell.tsx +53 -0
- package/src/{components/submissions-table/submissionsTable.stories.tsx → organisms/table/submissions/SubmissionsTable.stories.tsx} +28 -31
- package/src/organisms/table/submissions/SubmissionsTable.tsx +13 -0
- package/src/registries/components.ts +23 -0
- package/src/utils/iconClass.ts +3 -1
- package/tsconfig.app.json +11 -0
- package/tsconfig.json +10 -5
- package/tsconfig.node.json +9 -4
- package/tsconfig.spec.json +14 -0
- package/vite.config.mts +69 -0
- package/vitest.config.mts +21 -0
- package/.eslintignore +0 -13
- package/.eslintrc.js +0 -7
- package/coverage.json +0 -6
- package/dist/components/actions-table/actionsTable.component.d.ts +0 -11
- package/dist/components/actions-table/actionsTable.component.spec.d.ts +0 -1
- package/dist/components/actions-table/actionsTable.stories.d.ts +0 -40
- package/dist/components/alert/alert.component.d.ts +0 -6
- package/dist/components/alert/alert.component.spec.d.ts +0 -1
- package/dist/components/alert/alert.stories.d.ts +0 -15
- package/dist/components/card/card.component.spec.d.ts +0 -1
- package/dist/components/card/card.stories.d.ts +0 -16
- package/dist/components/form/form.component.d.ts +0 -63
- package/dist/components/form/form.component.spec.d.ts +0 -1
- package/dist/components/form/form.stories.d.ts +0 -6445
- package/dist/components/form/useForm.hook.d.ts +0 -60
- package/dist/components/form-access/formAccess.component.d.ts +0 -9
- package/dist/components/form-access/formAccess.schema.d.ts +0 -5
- package/dist/components/form-access/formAccess.stories.d.ts +0 -21
- package/dist/components/form-access/formAccess.utils.d.ts +0 -24
- package/dist/components/form-access/formAccess.utils.spec.d.ts +0 -1
- package/dist/components/form-action/formAction.component.d.ts +0 -9
- package/dist/components/form-action/formAction.stories.d.ts +0 -409
- package/dist/components/form-builder/formBuilder.component.d.ts +0 -53
- package/dist/components/form-builder/formBuilder.stories.d.ts +0 -5989
- package/dist/components/form-control/formControl.component.d.ts +0 -14
- package/dist/components/form-control/formControl.component.spec.d.ts +0 -1
- package/dist/components/form-control/formControl.stories.d.ts +0 -58
- package/dist/components/form-edit/formCtas.component.d.ts +0 -28
- package/dist/components/form-edit/formEdit.component.d.ts +0 -19
- package/dist/components/form-edit/formEdit.reducer.d.ts +0 -10
- package/dist/components/form-edit/formEdit.stories.d.ts +0 -396
- package/dist/components/form-edit/formParameters.component.d.ts +0 -34
- package/dist/components/form-settings/formSettings.component.spec.d.ts +0 -1
- package/dist/components/form-settings/formSettings.schema.d.ts +0 -2
- package/dist/components/form-settings/formSettings.stories.d.ts +0 -58
- package/dist/components/form-settings/formSettings.utils.d.ts +0 -8
- package/dist/components/form-settings/formSettings.utils.spec.d.ts +0 -1
- package/dist/components/forms-table/components/formCell.component.d.ts +0 -7
- package/dist/components/forms-table/formsTable.component.d.ts +0 -11
- package/dist/components/forms-table/formsTable.stories.d.ts +0 -117
- package/dist/components/index.d.ts +0 -26
- package/dist/components/input-tags/inputTags.component.d.ts +0 -19
- package/dist/components/input-tags/inputTags.stories.d.ts +0 -76
- package/dist/components/input-text/inputText.component.d.ts +0 -28
- package/dist/components/input-text/inputText.component.spec.d.ts +0 -1
- package/dist/components/input-text/inputText.stories.d.ts +0 -101
- package/dist/components/loader/loader.component.d.ts +0 -17
- package/dist/components/loader/loader.component.spec.d.ts +0 -1
- package/dist/components/loader/loader.stories.d.ts +0 -15
- package/dist/components/modal/modal.component.spec.d.ts +0 -1
- package/dist/components/modal/modal.stories.d.ts +0 -44
- package/dist/components/pagination/pagination.component.d.ts +0 -18
- package/dist/components/pagination/pagination.component.spec.d.ts +0 -1
- package/dist/components/pagination/pagination.stories.d.ts +0 -16
- package/dist/components/react-component/reactComponent.component.d.ts +0 -90
- package/dist/components/select/select.component.d.ts +0 -14
- package/dist/components/select/select.component.spec.d.ts +0 -1
- package/dist/components/select/select.stories.d.ts +0 -164
- package/dist/components/submissions-table/submissionsTable.component.d.ts +0 -7
- package/dist/components/submissions-table/submissionsTable.stories.d.ts +0 -649
- package/dist/components/table/components/defaultArrowSort.component.d.ts +0 -2
- package/dist/components/table/components/defaultCell.component.d.ts +0 -2
- package/dist/components/table/components/defaultCellHeader.component.d.ts +0 -6
- package/dist/components/table/components/defaultCellOperations.component.d.ts +0 -13
- package/dist/components/table/components/defaultCells.component.d.ts +0 -5
- package/dist/components/table/components/defaultOperationButton.component.d.ts +0 -14
- package/dist/components/table/components/defaultRow.component.d.ts +0 -12
- package/dist/components/table/components/dragNDropContainer.d.ts +0 -4
- package/dist/components/table/filters/defaultColumnFilter.component.d.ts +0 -6
- package/dist/components/table/filters/defaultColumnFilter.component.spec.d.ts +0 -1
- package/dist/components/table/filters/selectColumnFilter.component.d.ts +0 -11
- package/dist/components/table/filters/selectColumnFilter.component.spec.d.ts +0 -1
- package/dist/components/table/filters/sliderColumnFilter.component.d.ts +0 -3
- package/dist/components/table/hooks/useCustomTable.hook.d.ts +0 -128
- package/dist/components/table/hooks/useDragnDropRow.hook.d.ts +0 -274
- package/dist/components/table/hooks/useOperations.hook.d.ts +0 -11
- package/dist/components/table/index.d.ts +0 -15
- package/dist/components/table/table.component.d.ts +0 -3
- package/dist/components/table/table.stories.d.ts +0 -71
- package/dist/components/table/utils/mapFormToColumns.d.ts +0 -3
- package/dist/components/table/utils/swapElements.d.ts +0 -1
- package/dist/components/table/utils/swapElements.spec.d.ts +0 -1
- package/dist/components/tabs/tabs.component.spec.d.ts +0 -1
- package/dist/components/tabs/tabs.component.stories.d.ts +0 -47
- package/dist/index.modern.js +0 -7437
- package/dist/index.modern.js.map +0 -1
- package/dist/interfaces/ActionSchema.d.ts +0 -23
- package/dist/interfaces/Submission.d.ts +0 -5
- package/dist/setupTests.d.ts +0 -1
- package/dist/utils/callLast.d.ts +0 -1
- package/jest.config.js +0 -6
- package/src/components/alert/alert.stories.tsx +0 -18
- package/src/components/form/form.component.tsx +0 -73
- package/src/components/form/form.stories.tsx +0 -253
- package/src/components/form/useForm.hook.ts +0 -216
- package/src/components/form-builder/formBuilder.component.tsx +0 -195
- package/src/components/form-builder/formBuilder.stories.tsx +0 -3667
- package/src/components/form-control/formControl.component.tsx +0 -58
- package/src/components/form-control/formControl.stories.tsx +0 -65
- package/src/components/form-edit/formCtas.component.tsx +0 -106
- package/src/components/form-edit/formEdit.component.tsx +0 -60
- package/src/components/forms-table/components/formCell.component.tsx +0 -48
- package/src/components/forms-table/formsTable.component.tsx +0 -42
- package/src/components/index.ts +0 -26
- package/src/components/input-tags/inputTags.component.tsx +0 -58
- package/src/components/input-tags/inputTags.stories.tsx +0 -97
- package/src/components/input-text/inputText.component.tsx +0 -85
- package/src/components/input-text/inputText.stories.tsx +0 -126
- package/src/components/loader/loader.stories.tsx +0 -18
- package/src/components/modal/modal.component.spec.tsx +0 -79
- package/src/components/modal/modal.stories.tsx +0 -192
- package/src/components/pagination/pagination.stories.tsx +0 -40
- package/src/components/react-component/reactComponent.component.tsx +0 -197
- package/src/components/select/select.component.spec.tsx +0 -85
- package/src/components/select/select.component.tsx +0 -88
- package/src/components/select/select.stories.tsx +0 -173
- package/src/components/submissions-table/submissionsTable.component.tsx +0 -16
- package/src/components/table/components/defaultArrowSort.component.tsx +0 -12
- package/src/components/table/components/defaultCell.component.tsx +0 -15
- package/src/components/table/components/defaultCellHeader.component.tsx +0 -19
- package/src/components/table/components/defaultCellOperations.component.tsx +0 -39
- package/src/components/table/components/defaultCells.component.tsx +0 -31
- package/src/components/table/components/defaultOperationButton.component.tsx +0 -53
- package/src/components/table/components/defaultRow.component.tsx +0 -51
- package/src/components/table/components/dragNDropContainer.tsx +0 -7
- package/src/components/table/filters/defaultColumnFilter.component.spec.tsx +0 -34
- package/src/components/table/filters/defaultColumnFilter.component.tsx +0 -39
- package/src/components/table/filters/selectColumnFilter.component.spec.tsx +0 -69
- package/src/components/table/filters/selectColumnFilter.component.tsx +0 -52
- package/src/components/table/filters/sliderColumnFilter.component.tsx +0 -31
- package/src/components/table/hooks/useCustomTable.hook.tsx +0 -272
- package/src/components/table/hooks/useDragnDropRow.hook.ts +0 -80
- package/src/components/table/hooks/useOperations.hook.tsx +0 -39
- package/src/components/table/index.ts +0 -15
- package/src/components/table/table.component.tsx +0 -100
- package/src/components/table/table.stories.tsx +0 -120
- package/src/components/table/utils/mapFormToColumns.tsx +0 -34
- package/src/components/table/utils/swapElements.spec.ts +0 -7
- package/src/components/table/utils/swapElements.ts +0 -7
- package/src/components/tabs/tabs.component.stories.tsx +0 -127
- package/src/interfaces/ActionSchema.ts +0 -26
- package/src/interfaces/Submission.ts +0 -5
- package/src/setupTests.tsx +0 -5
- package/src/utils/callLast.ts +0 -12
- /package/src/{components → molecules}/__fixtures__/form-actions.json +0 -0
- /package/src/{components → molecules}/__fixtures__/form.fixture.json +0 -0
- /package/src/{components/table → molecules/pagination}/utils/getPageNumbers.ts +0 -0
- /package/src/{components → organisms}/__fixtures__/form-schema.json +0 -0
- /package/src/{components → organisms}/__fixtures__/form-submissions.json +0 -0
- /package/src/{components/actions-table → organisms/table/actions}/__fixtures__/data.json +0 -0
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ExtendedComponentSchema } from "formiojs";
|
|
3
|
-
import { FormOptions, FormSchema, Submission } from "../../interfaces";
|
|
4
|
-
export interface ChangedSubmission<T = any> extends Submission<T> {
|
|
5
|
-
changed: {
|
|
6
|
-
component: ExtendedComponentSchema;
|
|
7
|
-
instance: any;
|
|
8
|
-
value: any;
|
|
9
|
-
} & Record<string, any>;
|
|
10
|
-
isValid: boolean;
|
|
11
|
-
}
|
|
12
|
-
export interface FormPageChangeProps<Data = any> {
|
|
13
|
-
page: number;
|
|
14
|
-
submission: Submission<Data>;
|
|
15
|
-
}
|
|
16
|
-
export interface UseFormHookProps<Data = any> extends Record<string, any> {
|
|
17
|
-
src?: string;
|
|
18
|
-
/**
|
|
19
|
-
* url to fetch form
|
|
20
|
-
*/
|
|
21
|
-
url?: string;
|
|
22
|
-
/**
|
|
23
|
-
* Raw form object
|
|
24
|
-
*/
|
|
25
|
-
form?: Partial<FormSchema>;
|
|
26
|
-
/**
|
|
27
|
-
* Configuration option
|
|
28
|
-
*/
|
|
29
|
-
options?: FormOptions;
|
|
30
|
-
/**
|
|
31
|
-
* Data submission
|
|
32
|
-
*/
|
|
33
|
-
submission?: Submission<Data>;
|
|
34
|
-
onPrevPage?: (obj: FormPageChangeProps<Data>) => void;
|
|
35
|
-
onNextPage?: (obj: FormPageChangeProps<Data>) => void;
|
|
36
|
-
onCancel?: Function;
|
|
37
|
-
onChange?: (submission: ChangedSubmission) => void;
|
|
38
|
-
onCustomEvent?: (obj: {
|
|
39
|
-
type: string;
|
|
40
|
-
event: string;
|
|
41
|
-
component: ExtendedComponentSchema;
|
|
42
|
-
data: any;
|
|
43
|
-
}) => void;
|
|
44
|
-
onComponentChange?: (component: ExtendedComponentSchema) => void;
|
|
45
|
-
onSubmit?: (submission: Submission<Data>) => void;
|
|
46
|
-
onAsyncSubmit?: (submission: Submission<Data>) => Promise<any>;
|
|
47
|
-
onSubmitDone?: (submission: Submission<Data>) => void;
|
|
48
|
-
onFormLoad?: Function;
|
|
49
|
-
onError?: (errors: any) => void;
|
|
50
|
-
onRender?: () => void;
|
|
51
|
-
onAttach?: Function;
|
|
52
|
-
onBuild?: Function;
|
|
53
|
-
onFocus?: Function;
|
|
54
|
-
onBlur?: Function;
|
|
55
|
-
onInitialized?: Function;
|
|
56
|
-
onFormReady?: (formio: any) => void;
|
|
57
|
-
}
|
|
58
|
-
export declare function useForm<Data = any>(props: UseFormHookProps<Data>): {
|
|
59
|
-
element: import("react").MutableRefObject<any>;
|
|
60
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React, { PropsWithChildren } from "react";
|
|
2
|
-
import type { FormOptions, FormSchema } from "../../interfaces";
|
|
3
|
-
export interface FormAccessProps {
|
|
4
|
-
form: Partial<FormSchema>;
|
|
5
|
-
roles: any;
|
|
6
|
-
onSubmit?: Function;
|
|
7
|
-
options?: FormOptions;
|
|
8
|
-
}
|
|
9
|
-
export declare function FormAccess(props: PropsWithChildren<FormAccessProps>): React.JSX.Element;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { ExtendedComponentSchema } from "formiojs";
|
|
2
|
-
import { FormSchema } from "../../interfaces/FormSchema";
|
|
3
|
-
export declare function getRoleComponent({ label, key, description, choices, data }: any): ExtendedComponentSchema;
|
|
4
|
-
export declare function getSubmissionPermissionForm({ choices }: any): FormSchema;
|
|
5
|
-
export declare function getAccessPermissionForm({ choices }: any): FormSchema;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { StoryObj } from "@storybook/react";
|
|
2
|
-
import { FormAccess } from "./formAccess.component";
|
|
3
|
-
declare const _default: {
|
|
4
|
-
title: string;
|
|
5
|
-
component: typeof FormAccess;
|
|
6
|
-
argTypes: {
|
|
7
|
-
onSubmit: {
|
|
8
|
-
action: string;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
parameters: {
|
|
12
|
-
docs: {
|
|
13
|
-
source: {
|
|
14
|
-
type: string;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
export default _default;
|
|
20
|
-
type Story = StoryObj<typeof FormAccess>;
|
|
21
|
-
export declare const Sandbox: Story;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { FormSchema, Submission } from "../../interfaces";
|
|
2
|
-
import { RoleSchema } from "../../interfaces/RoleSchema";
|
|
3
|
-
export interface Choice {
|
|
4
|
-
label: string;
|
|
5
|
-
value: string;
|
|
6
|
-
}
|
|
7
|
-
export interface Access {
|
|
8
|
-
roles: string[];
|
|
9
|
-
type: string;
|
|
10
|
-
}
|
|
11
|
-
export type AccessRoles = Record<string, string[]>;
|
|
12
|
-
export type FormAccessSchema = {
|
|
13
|
-
access: FormSchema;
|
|
14
|
-
submissionAccess: FormSchema;
|
|
15
|
-
};
|
|
16
|
-
export type SubmissionAccess = {
|
|
17
|
-
access: Submission<AccessRoles>;
|
|
18
|
-
submissionAccess: Submission<AccessRoles>;
|
|
19
|
-
};
|
|
20
|
-
export declare function getFormAccess(roles: RoleSchema[]): FormAccessSchema;
|
|
21
|
-
export declare function dataAccessToSubmissions(form: Partial<FormSchema>, formAccess: FormAccessSchema): SubmissionAccess;
|
|
22
|
-
export declare function submissionsToDataAccess(form: Partial<FormSchema>, submissions: SubmissionAccess): Partial<FormSchema>;
|
|
23
|
-
export declare function shouldUpdate(type: string, submission: Submission<AccessRoles>, submissions: SubmissionAccess): boolean;
|
|
24
|
-
export declare function updateSubmissions(type: string, submission: Submission<AccessRoles>, submissions: SubmissionAccess, cb?: Function): SubmissionAccess;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { PropsWithChildren, ReactElement } from "react";
|
|
2
|
-
import { ActionSchema, FormOptions, Submission } from "../../interfaces";
|
|
3
|
-
export interface FormActionProps {
|
|
4
|
-
actionInfo: Partial<ActionSchema>;
|
|
5
|
-
submission?: Partial<Submission>;
|
|
6
|
-
onSubmit?: (submission: Submission<ActionSchema>) => void;
|
|
7
|
-
options: FormOptions;
|
|
8
|
-
}
|
|
9
|
-
export declare function FormAction({ actionInfo, children, onSubmit, options, ...props }: PropsWithChildren<FormActionProps>): ReactElement;
|
|
@@ -1,409 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { FormAction } from "./formAction.component";
|
|
3
|
-
declare const _default: {
|
|
4
|
-
title: string;
|
|
5
|
-
component: typeof FormAction;
|
|
6
|
-
argTypes: {
|
|
7
|
-
onSubmit: {
|
|
8
|
-
action: string;
|
|
9
|
-
};
|
|
10
|
-
type: {
|
|
11
|
-
control: {
|
|
12
|
-
type: string;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
form: {
|
|
16
|
-
control: {
|
|
17
|
-
type: string;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
options: {
|
|
21
|
-
control: {
|
|
22
|
-
type: string;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
parameters: {
|
|
27
|
-
docs: {
|
|
28
|
-
source: {
|
|
29
|
-
type: string;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
export default _default;
|
|
35
|
-
export declare const Sandbox: {
|
|
36
|
-
(args: any): React.JSX.Element;
|
|
37
|
-
args: {
|
|
38
|
-
actionInfo: {
|
|
39
|
-
name: string;
|
|
40
|
-
title: string;
|
|
41
|
-
description: string;
|
|
42
|
-
priority: number;
|
|
43
|
-
defaults: {
|
|
44
|
-
handler: string[];
|
|
45
|
-
method: string[];
|
|
46
|
-
priority: number;
|
|
47
|
-
name: string;
|
|
48
|
-
title: string;
|
|
49
|
-
};
|
|
50
|
-
access: {
|
|
51
|
-
handler: boolean;
|
|
52
|
-
method: boolean;
|
|
53
|
-
};
|
|
54
|
-
settingsForm: {
|
|
55
|
-
components: ({
|
|
56
|
-
type: string;
|
|
57
|
-
input: boolean;
|
|
58
|
-
key: string;
|
|
59
|
-
label?: undefined;
|
|
60
|
-
tree?: undefined;
|
|
61
|
-
legend?: undefined;
|
|
62
|
-
components?: undefined;
|
|
63
|
-
tag?: undefined;
|
|
64
|
-
content?: undefined;
|
|
65
|
-
className?: undefined;
|
|
66
|
-
size?: undefined;
|
|
67
|
-
leftIcon?: undefined;
|
|
68
|
-
rightIcon?: undefined;
|
|
69
|
-
block?: undefined;
|
|
70
|
-
action?: undefined;
|
|
71
|
-
disableOnInvalid?: undefined;
|
|
72
|
-
theme?: undefined;
|
|
73
|
-
} | {
|
|
74
|
-
type: string;
|
|
75
|
-
input: boolean;
|
|
76
|
-
label: string;
|
|
77
|
-
key: string;
|
|
78
|
-
tree?: undefined;
|
|
79
|
-
legend?: undefined;
|
|
80
|
-
components?: undefined;
|
|
81
|
-
tag?: undefined;
|
|
82
|
-
content?: undefined;
|
|
83
|
-
className?: undefined;
|
|
84
|
-
size?: undefined;
|
|
85
|
-
leftIcon?: undefined;
|
|
86
|
-
rightIcon?: undefined;
|
|
87
|
-
block?: undefined;
|
|
88
|
-
action?: undefined;
|
|
89
|
-
disableOnInvalid?: undefined;
|
|
90
|
-
theme?: undefined;
|
|
91
|
-
} | {
|
|
92
|
-
type: string;
|
|
93
|
-
input: boolean;
|
|
94
|
-
tree: boolean;
|
|
95
|
-
legend: string;
|
|
96
|
-
components: {
|
|
97
|
-
input: boolean;
|
|
98
|
-
type: string;
|
|
99
|
-
key: string;
|
|
100
|
-
components: {
|
|
101
|
-
type: string;
|
|
102
|
-
key: string;
|
|
103
|
-
title: string;
|
|
104
|
-
placeholder: string;
|
|
105
|
-
basePath: string;
|
|
106
|
-
form: string;
|
|
107
|
-
required: boolean;
|
|
108
|
-
}[];
|
|
109
|
-
}[];
|
|
110
|
-
key?: undefined;
|
|
111
|
-
label?: undefined;
|
|
112
|
-
tag?: undefined;
|
|
113
|
-
content?: undefined;
|
|
114
|
-
className?: undefined;
|
|
115
|
-
size?: undefined;
|
|
116
|
-
leftIcon?: undefined;
|
|
117
|
-
rightIcon?: undefined;
|
|
118
|
-
block?: undefined;
|
|
119
|
-
action?: undefined;
|
|
120
|
-
disableOnInvalid?: undefined;
|
|
121
|
-
theme?: undefined;
|
|
122
|
-
} | {
|
|
123
|
-
type: string;
|
|
124
|
-
input: boolean;
|
|
125
|
-
tree: boolean;
|
|
126
|
-
key: string;
|
|
127
|
-
legend: string;
|
|
128
|
-
components: {
|
|
129
|
-
type: string;
|
|
130
|
-
input: boolean;
|
|
131
|
-
key: string;
|
|
132
|
-
label: string;
|
|
133
|
-
placeholder: string;
|
|
134
|
-
dataSrc: string;
|
|
135
|
-
data: {
|
|
136
|
-
json: string;
|
|
137
|
-
};
|
|
138
|
-
template: string;
|
|
139
|
-
valueProperty: string;
|
|
140
|
-
multiple: boolean;
|
|
141
|
-
}[];
|
|
142
|
-
label?: undefined;
|
|
143
|
-
tag?: undefined;
|
|
144
|
-
content?: undefined;
|
|
145
|
-
className?: undefined;
|
|
146
|
-
size?: undefined;
|
|
147
|
-
leftIcon?: undefined;
|
|
148
|
-
rightIcon?: undefined;
|
|
149
|
-
block?: undefined;
|
|
150
|
-
action?: undefined;
|
|
151
|
-
disableOnInvalid?: undefined;
|
|
152
|
-
theme?: undefined;
|
|
153
|
-
} | {
|
|
154
|
-
key: string;
|
|
155
|
-
type: string;
|
|
156
|
-
input: boolean;
|
|
157
|
-
tree: boolean;
|
|
158
|
-
legend: string;
|
|
159
|
-
components: {
|
|
160
|
-
type: string;
|
|
161
|
-
key: string;
|
|
162
|
-
input: boolean;
|
|
163
|
-
tree: boolean;
|
|
164
|
-
components: {
|
|
165
|
-
key: string;
|
|
166
|
-
type: string;
|
|
167
|
-
input: boolean;
|
|
168
|
-
columns: ({
|
|
169
|
-
components: ({
|
|
170
|
-
type: string;
|
|
171
|
-
input: boolean;
|
|
172
|
-
label: string;
|
|
173
|
-
key: string;
|
|
174
|
-
placeholder: string;
|
|
175
|
-
template: string;
|
|
176
|
-
dataSrc: string;
|
|
177
|
-
data: {
|
|
178
|
-
json: string;
|
|
179
|
-
values?: undefined;
|
|
180
|
-
url?: undefined;
|
|
181
|
-
resource?: undefined;
|
|
182
|
-
};
|
|
183
|
-
valueProperty: string;
|
|
184
|
-
multiple: boolean;
|
|
185
|
-
inputType?: undefined;
|
|
186
|
-
} | {
|
|
187
|
-
type: string;
|
|
188
|
-
input: boolean;
|
|
189
|
-
label: string;
|
|
190
|
-
key: string;
|
|
191
|
-
placeholder: string;
|
|
192
|
-
template: string;
|
|
193
|
-
dataSrc: string;
|
|
194
|
-
data: {
|
|
195
|
-
values: {
|
|
196
|
-
value: string;
|
|
197
|
-
label: string;
|
|
198
|
-
}[];
|
|
199
|
-
json: string;
|
|
200
|
-
url: string;
|
|
201
|
-
resource: string;
|
|
202
|
-
};
|
|
203
|
-
valueProperty: string;
|
|
204
|
-
multiple: boolean;
|
|
205
|
-
inputType?: undefined;
|
|
206
|
-
} | {
|
|
207
|
-
input: boolean;
|
|
208
|
-
type: string;
|
|
209
|
-
inputType: string;
|
|
210
|
-
label: string;
|
|
211
|
-
key: string;
|
|
212
|
-
placeholder: string;
|
|
213
|
-
multiple: boolean;
|
|
214
|
-
template?: undefined;
|
|
215
|
-
dataSrc?: undefined;
|
|
216
|
-
data?: undefined;
|
|
217
|
-
valueProperty?: undefined;
|
|
218
|
-
})[];
|
|
219
|
-
} | {
|
|
220
|
-
components: {
|
|
221
|
-
key: string;
|
|
222
|
-
type: string;
|
|
223
|
-
input: boolean;
|
|
224
|
-
components: ({
|
|
225
|
-
key: string;
|
|
226
|
-
type: string;
|
|
227
|
-
tag: string;
|
|
228
|
-
input: boolean;
|
|
229
|
-
content: string;
|
|
230
|
-
className: string;
|
|
231
|
-
label?: undefined;
|
|
232
|
-
editorComponents?: undefined;
|
|
233
|
-
placeholder?: undefined;
|
|
234
|
-
} | {
|
|
235
|
-
label: string;
|
|
236
|
-
type: string;
|
|
237
|
-
input: boolean;
|
|
238
|
-
key: string;
|
|
239
|
-
editorComponents: ({
|
|
240
|
-
label: string;
|
|
241
|
-
reorder: boolean;
|
|
242
|
-
addAnotherPosition: string;
|
|
243
|
-
layoutFixed: boolean;
|
|
244
|
-
enableRowGroups: boolean;
|
|
245
|
-
initEmpty: boolean;
|
|
246
|
-
tableView: boolean;
|
|
247
|
-
defaultValue: {
|
|
248
|
-
path: {};
|
|
249
|
-
operator: string;
|
|
250
|
-
}[];
|
|
251
|
-
key: string;
|
|
252
|
-
type: string;
|
|
253
|
-
input: boolean;
|
|
254
|
-
components: ({
|
|
255
|
-
label: string;
|
|
256
|
-
widget: string;
|
|
257
|
-
tableView: boolean;
|
|
258
|
-
dataSrc: string;
|
|
259
|
-
data: {
|
|
260
|
-
url: string;
|
|
261
|
-
headers: {
|
|
262
|
-
key: string;
|
|
263
|
-
value: string;
|
|
264
|
-
}[];
|
|
265
|
-
values?: undefined;
|
|
266
|
-
};
|
|
267
|
-
key: string;
|
|
268
|
-
type: string;
|
|
269
|
-
input: boolean;
|
|
270
|
-
disableLimit: boolean;
|
|
271
|
-
customClass?: undefined;
|
|
272
|
-
components?: undefined;
|
|
273
|
-
customConditional?: undefined;
|
|
274
|
-
} | {
|
|
275
|
-
label: string;
|
|
276
|
-
widget: string;
|
|
277
|
-
tableView: boolean;
|
|
278
|
-
data: {
|
|
279
|
-
values: {
|
|
280
|
-
label: string;
|
|
281
|
-
value: string;
|
|
282
|
-
}[];
|
|
283
|
-
url?: undefined;
|
|
284
|
-
headers?: undefined;
|
|
285
|
-
};
|
|
286
|
-
key: string;
|
|
287
|
-
type: string;
|
|
288
|
-
input: boolean;
|
|
289
|
-
dataSrc?: undefined;
|
|
290
|
-
disableLimit?: undefined;
|
|
291
|
-
customClass?: undefined;
|
|
292
|
-
components?: undefined;
|
|
293
|
-
customConditional?: undefined;
|
|
294
|
-
} | {
|
|
295
|
-
customClass: string;
|
|
296
|
-
key: string;
|
|
297
|
-
type: string;
|
|
298
|
-
label: string;
|
|
299
|
-
input: boolean;
|
|
300
|
-
tableView: boolean;
|
|
301
|
-
components: {
|
|
302
|
-
label: string;
|
|
303
|
-
tableView: boolean;
|
|
304
|
-
key: string;
|
|
305
|
-
customConditional: string;
|
|
306
|
-
type: string;
|
|
307
|
-
input: boolean;
|
|
308
|
-
}[];
|
|
309
|
-
widget?: undefined;
|
|
310
|
-
dataSrc?: undefined;
|
|
311
|
-
data?: undefined;
|
|
312
|
-
disableLimit?: undefined;
|
|
313
|
-
customConditional?: undefined;
|
|
314
|
-
} | {
|
|
315
|
-
label: string;
|
|
316
|
-
tableView: boolean;
|
|
317
|
-
key: string;
|
|
318
|
-
customConditional: string;
|
|
319
|
-
type: string;
|
|
320
|
-
input: boolean;
|
|
321
|
-
widget?: undefined;
|
|
322
|
-
dataSrc?: undefined;
|
|
323
|
-
data?: undefined;
|
|
324
|
-
disableLimit?: undefined;
|
|
325
|
-
customClass?: undefined;
|
|
326
|
-
components?: undefined;
|
|
327
|
-
})[];
|
|
328
|
-
disableOnInvalid?: undefined;
|
|
329
|
-
} | {
|
|
330
|
-
type: string;
|
|
331
|
-
label: string;
|
|
332
|
-
key: string;
|
|
333
|
-
disableOnInvalid: boolean;
|
|
334
|
-
input: boolean;
|
|
335
|
-
tableView: boolean;
|
|
336
|
-
reorder?: undefined;
|
|
337
|
-
addAnotherPosition?: undefined;
|
|
338
|
-
layoutFixed?: undefined;
|
|
339
|
-
enableRowGroups?: undefined;
|
|
340
|
-
initEmpty?: undefined;
|
|
341
|
-
defaultValue?: undefined;
|
|
342
|
-
components?: undefined;
|
|
343
|
-
})[];
|
|
344
|
-
placeholder: string;
|
|
345
|
-
tag?: undefined;
|
|
346
|
-
content?: undefined;
|
|
347
|
-
className?: undefined;
|
|
348
|
-
})[];
|
|
349
|
-
}[];
|
|
350
|
-
})[];
|
|
351
|
-
}[];
|
|
352
|
-
}[];
|
|
353
|
-
label?: undefined;
|
|
354
|
-
tag?: undefined;
|
|
355
|
-
content?: undefined;
|
|
356
|
-
className?: undefined;
|
|
357
|
-
size?: undefined;
|
|
358
|
-
leftIcon?: undefined;
|
|
359
|
-
rightIcon?: undefined;
|
|
360
|
-
block?: undefined;
|
|
361
|
-
action?: undefined;
|
|
362
|
-
disableOnInvalid?: undefined;
|
|
363
|
-
theme?: undefined;
|
|
364
|
-
} | {
|
|
365
|
-
key: string;
|
|
366
|
-
type: string;
|
|
367
|
-
tag: string;
|
|
368
|
-
input: boolean;
|
|
369
|
-
content: string;
|
|
370
|
-
className: string;
|
|
371
|
-
label?: undefined;
|
|
372
|
-
tree?: undefined;
|
|
373
|
-
legend?: undefined;
|
|
374
|
-
components?: undefined;
|
|
375
|
-
size?: undefined;
|
|
376
|
-
leftIcon?: undefined;
|
|
377
|
-
rightIcon?: undefined;
|
|
378
|
-
block?: undefined;
|
|
379
|
-
action?: undefined;
|
|
380
|
-
disableOnInvalid?: undefined;
|
|
381
|
-
theme?: undefined;
|
|
382
|
-
} | {
|
|
383
|
-
type: string;
|
|
384
|
-
input: boolean;
|
|
385
|
-
label: string;
|
|
386
|
-
key: string;
|
|
387
|
-
size: string;
|
|
388
|
-
leftIcon: string;
|
|
389
|
-
rightIcon: string;
|
|
390
|
-
block: boolean;
|
|
391
|
-
action: string;
|
|
392
|
-
disableOnInvalid: boolean;
|
|
393
|
-
theme: string;
|
|
394
|
-
tree?: undefined;
|
|
395
|
-
legend?: undefined;
|
|
396
|
-
components?: undefined;
|
|
397
|
-
tag?: undefined;
|
|
398
|
-
content?: undefined;
|
|
399
|
-
className?: undefined;
|
|
400
|
-
})[];
|
|
401
|
-
action: string;
|
|
402
|
-
};
|
|
403
|
-
};
|
|
404
|
-
options: {
|
|
405
|
-
template: string;
|
|
406
|
-
iconset: string;
|
|
407
|
-
};
|
|
408
|
-
};
|
|
409
|
-
};
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { ComponentSchema } from "formiojs";
|
|
2
|
-
import PropTypes from "prop-types";
|
|
3
|
-
import React from "react";
|
|
4
|
-
export interface FormBuilderProps {
|
|
5
|
-
components: ComponentSchema[];
|
|
6
|
-
display?: string;
|
|
7
|
-
options?: any;
|
|
8
|
-
builder?: any;
|
|
9
|
-
onChange?: (components: ComponentSchema[]) => void;
|
|
10
|
-
onAddComponent?: Function;
|
|
11
|
-
onUpdateComponent?: Function;
|
|
12
|
-
onRemoveComponent?: Function;
|
|
13
|
-
onSaveComponent?: Function;
|
|
14
|
-
onCancelComponent?: Function;
|
|
15
|
-
onMoveComponent?: Function;
|
|
16
|
-
onEditComponent?: Function;
|
|
17
|
-
onEditJson?: Function;
|
|
18
|
-
onCopyComponent?: Function;
|
|
19
|
-
onPasteComponent?: Function;
|
|
20
|
-
}
|
|
21
|
-
export declare class FormBuilder extends React.Component<FormBuilderProps, any> {
|
|
22
|
-
static defaultProps: {
|
|
23
|
-
options: {};
|
|
24
|
-
onChange: (...args: any[]) => void;
|
|
25
|
-
onReady: (...args: any[]) => void;
|
|
26
|
-
onDestroy: (...args: any[]) => void;
|
|
27
|
-
};
|
|
28
|
-
static propTypes: {
|
|
29
|
-
components: PropTypes.Requireable<any[]>;
|
|
30
|
-
display: PropTypes.Requireable<string>;
|
|
31
|
-
options: PropTypes.Requireable<object>;
|
|
32
|
-
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
33
|
-
onAddComponent: PropTypes.Requireable<(...args: any[]) => any>;
|
|
34
|
-
onUpdateComponent: PropTypes.Requireable<(...args: any[]) => any>;
|
|
35
|
-
onRemoveComponent: PropTypes.Requireable<(...args: any[]) => any>;
|
|
36
|
-
onSaveComponent: PropTypes.Requireable<(...args: any[]) => any>;
|
|
37
|
-
onCancelComponent: PropTypes.Requireable<(...args: any[]) => any>;
|
|
38
|
-
onMoveComponent: PropTypes.Requireable<(...args: any[]) => any>;
|
|
39
|
-
onEditComponent: PropTypes.Requireable<(...args: any[]) => any>;
|
|
40
|
-
onEditJson: PropTypes.Requireable<(...args: any[]) => any>;
|
|
41
|
-
onCopyComponent: PropTypes.Requireable<(...args: any[]) => any>;
|
|
42
|
-
onPasteComponent: PropTypes.Requireable<(...args: any[]) => any>;
|
|
43
|
-
};
|
|
44
|
-
private elRef;
|
|
45
|
-
private builderRef;
|
|
46
|
-
constructor(props: FormBuilderProps);
|
|
47
|
-
componentDidMount(): Promise<void>;
|
|
48
|
-
create(props: FormBuilderProps): Promise<void>;
|
|
49
|
-
componentWillUnmount(): void;
|
|
50
|
-
componentWillReceiveProps(nextProps: FormBuilderProps): Promise<void>;
|
|
51
|
-
whenComponentsChange(components: ComponentSchema[]): void;
|
|
52
|
-
render(): React.JSX.Element;
|
|
53
|
-
}
|