@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,14 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export interface FormControlProps<Data = any> {
|
|
3
|
-
name: string;
|
|
4
|
-
value?: Data;
|
|
5
|
-
required?: boolean;
|
|
6
|
-
label?: string;
|
|
7
|
-
className?: string;
|
|
8
|
-
onChange?: (name: string, value: any) => void;
|
|
9
|
-
description?: string | React.ComponentType | any;
|
|
10
|
-
prefix?: JSX.Element | React.ComponentType | any;
|
|
11
|
-
suffix?: JSX.Element | React.ComponentType | any;
|
|
12
|
-
shadow?: boolean;
|
|
13
|
-
}
|
|
14
|
-
export declare function FormControl({ children, name, required, prefix, suffix, description, label, className }: React.PropsWithChildren<FormControlProps>): React.JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { FormControl } from "./formControl.component";
|
|
3
|
-
declare const _default: {
|
|
4
|
-
title: string;
|
|
5
|
-
component: typeof FormControl;
|
|
6
|
-
argTypes: {
|
|
7
|
-
label: {
|
|
8
|
-
control: {
|
|
9
|
-
type: string;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
name: {
|
|
13
|
-
control: {
|
|
14
|
-
type: string;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
children: {
|
|
18
|
-
control: {
|
|
19
|
-
type: {
|
|
20
|
-
new (): HTMLElement;
|
|
21
|
-
prototype: HTMLElement;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
parameters: {};
|
|
27
|
-
};
|
|
28
|
-
export default _default;
|
|
29
|
-
export declare const Sandbox: {
|
|
30
|
-
(args: any): React.JSX.Element;
|
|
31
|
-
args: {
|
|
32
|
-
label: string;
|
|
33
|
-
children: React.JSX.Element;
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
export declare const WithPrefix: {
|
|
37
|
-
(args: any): React.JSX.Element;
|
|
38
|
-
args: {
|
|
39
|
-
label: string;
|
|
40
|
-
children: React.JSX.Element;
|
|
41
|
-
prefix: React.JSX.Element;
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
export declare const WithSuffix: {
|
|
45
|
-
(args: any): React.JSX.Element;
|
|
46
|
-
args: {
|
|
47
|
-
label: string;
|
|
48
|
-
children: React.JSX.Element;
|
|
49
|
-
suffix: React.JSX.Element;
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
export declare const WithDescription: {
|
|
53
|
-
(args: any): React.JSX.Element;
|
|
54
|
-
args: {
|
|
55
|
-
label: string;
|
|
56
|
-
children: React.JSX.Element;
|
|
57
|
-
};
|
|
58
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import PropTypes from "prop-types";
|
|
2
|
-
import { ReactElement } from "react";
|
|
3
|
-
import { FormOptions } from "../../interfaces";
|
|
4
|
-
export interface FormEditCTAsProps extends Record<string, unknown> {
|
|
5
|
-
saveText?: string;
|
|
6
|
-
options?: FormOptions;
|
|
7
|
-
hasUndo?: boolean;
|
|
8
|
-
hasRedo?: boolean;
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
onCopy?: Function;
|
|
11
|
-
onSubmit?: Function;
|
|
12
|
-
onReset?: Function;
|
|
13
|
-
onUndo?: Function;
|
|
14
|
-
onRedo?: Function;
|
|
15
|
-
}
|
|
16
|
-
export declare function FormEditCTAs({ saveText, disabled, options, onCopy, hasUndo, hasRedo, onUndo, onRedo, onReset, onSubmit }: FormEditCTAsProps): ReactElement;
|
|
17
|
-
export declare namespace FormEditCTAs {
|
|
18
|
-
var propTypes: {
|
|
19
|
-
saveText: PropTypes.Requireable<string>;
|
|
20
|
-
options: PropTypes.Requireable<object>;
|
|
21
|
-
hasUndo: PropTypes.Requireable<boolean>;
|
|
22
|
-
hasRedo: PropTypes.Requireable<boolean>;
|
|
23
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
24
|
-
onCopy: PropTypes.Requireable<(...args: any[]) => any>;
|
|
25
|
-
onSubmit: PropTypes.Requireable<(...args: any[]) => any>;
|
|
26
|
-
onReset: PropTypes.Requireable<(...args: any[]) => any>;
|
|
27
|
-
};
|
|
28
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import PropTypes from "prop-types";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { FormOptions } from "../../interfaces/FormOptions";
|
|
4
|
-
import { UseFormEditHookProps } from "./useFormEdit.hook";
|
|
5
|
-
export interface FormEditProps extends UseFormEditHookProps {
|
|
6
|
-
builder?: any;
|
|
7
|
-
options?: FormOptions;
|
|
8
|
-
}
|
|
9
|
-
export declare function FormEdit(props: FormEditProps): React.JSX.Element;
|
|
10
|
-
export declare namespace FormEdit {
|
|
11
|
-
var propTypes: {
|
|
12
|
-
form: PropTypes.Validator<object>;
|
|
13
|
-
options: PropTypes.Requireable<object>;
|
|
14
|
-
typeChoices: PropTypes.Requireable<any[]>;
|
|
15
|
-
displayChoices: PropTypes.Requireable<any[]>;
|
|
16
|
-
enableTags: PropTypes.Requireable<boolean>;
|
|
17
|
-
onSubmit: PropTypes.Requireable<(...args: any[]) => any>;
|
|
18
|
-
};
|
|
19
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { FormSchema } from "../../interfaces";
|
|
2
|
-
export declare const hasChanged: (form: Partial<FormSchema>, value: Partial<FormSchema>) => boolean;
|
|
3
|
-
export interface FormEditState {
|
|
4
|
-
past: Partial<FormSchema>[];
|
|
5
|
-
future: Partial<FormSchema>[];
|
|
6
|
-
current: Partial<FormSchema>;
|
|
7
|
-
original: Partial<FormSchema>;
|
|
8
|
-
}
|
|
9
|
-
export declare function createInitialState(props: any): FormEditState;
|
|
10
|
-
export declare const reducer: (state: FormEditState, { type, value }: any) => FormEditState;
|
|
@@ -1,396 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { FormEdit } from "./formEdit.component";
|
|
3
|
-
declare const _default: {
|
|
4
|
-
title: string;
|
|
5
|
-
component: typeof FormEdit;
|
|
6
|
-
argTypes: {
|
|
7
|
-
form: {
|
|
8
|
-
control: {
|
|
9
|
-
type: string;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
typeChoices: {
|
|
13
|
-
control: {
|
|
14
|
-
type: string;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
displayChoices: {
|
|
18
|
-
control: {
|
|
19
|
-
type: string;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
options: {
|
|
23
|
-
control: {
|
|
24
|
-
type: string;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
enableTags: {
|
|
28
|
-
control: {
|
|
29
|
-
type: string;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
onSubmit: {
|
|
33
|
-
action: string;
|
|
34
|
-
};
|
|
35
|
-
onChange: {
|
|
36
|
-
action: string;
|
|
37
|
-
};
|
|
38
|
-
onCopy: {
|
|
39
|
-
action: string;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
parameters: {
|
|
43
|
-
docs: {
|
|
44
|
-
source: {
|
|
45
|
-
type: string;
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
export default _default;
|
|
51
|
-
export declare const Sandbox: {
|
|
52
|
-
render: ({ form, typeChoices, displayChoices, enableTags, options }: any) => React.JSX.Element;
|
|
53
|
-
args: {
|
|
54
|
-
typeChoices: {
|
|
55
|
-
label: string;
|
|
56
|
-
value: string;
|
|
57
|
-
}[];
|
|
58
|
-
displayChoices: {
|
|
59
|
-
label: string;
|
|
60
|
-
value: string;
|
|
61
|
-
}[];
|
|
62
|
-
enableTags: boolean;
|
|
63
|
-
options: {
|
|
64
|
-
template: string;
|
|
65
|
-
iconset: string;
|
|
66
|
-
};
|
|
67
|
-
form: {
|
|
68
|
-
type: string;
|
|
69
|
-
tags: never[];
|
|
70
|
-
owner: string;
|
|
71
|
-
components: {
|
|
72
|
-
label: string;
|
|
73
|
-
labelPosition: string;
|
|
74
|
-
placeholder: string;
|
|
75
|
-
description: string;
|
|
76
|
-
tooltip: string;
|
|
77
|
-
prefix: string;
|
|
78
|
-
suffix: string;
|
|
79
|
-
widget: {
|
|
80
|
-
type: string;
|
|
81
|
-
};
|
|
82
|
-
inputMask: string;
|
|
83
|
-
allowMultipleMasks: boolean;
|
|
84
|
-
customClass: string;
|
|
85
|
-
tabindex: string;
|
|
86
|
-
autocomplete: string;
|
|
87
|
-
hidden: boolean;
|
|
88
|
-
hideLabel: boolean;
|
|
89
|
-
showWordCount: boolean;
|
|
90
|
-
showCharCount: boolean;
|
|
91
|
-
mask: boolean;
|
|
92
|
-
autofocus: boolean;
|
|
93
|
-
spellcheck: boolean;
|
|
94
|
-
disabled: boolean;
|
|
95
|
-
tableView: boolean;
|
|
96
|
-
modalEdit: boolean;
|
|
97
|
-
multiple: boolean;
|
|
98
|
-
persistent: boolean;
|
|
99
|
-
inputFormat: string;
|
|
100
|
-
protected: boolean;
|
|
101
|
-
dbIndex: boolean;
|
|
102
|
-
case: string;
|
|
103
|
-
encrypted: boolean;
|
|
104
|
-
redrawOn: string;
|
|
105
|
-
clearOnHide: boolean;
|
|
106
|
-
customDefaultValue: string;
|
|
107
|
-
calculateValue: string;
|
|
108
|
-
calculateServer: boolean;
|
|
109
|
-
allowCalculateOverride: boolean;
|
|
110
|
-
validateOn: string;
|
|
111
|
-
validate: {
|
|
112
|
-
required: boolean;
|
|
113
|
-
pattern: string;
|
|
114
|
-
customMessage: string;
|
|
115
|
-
custom: string;
|
|
116
|
-
customPrivate: boolean;
|
|
117
|
-
json: string;
|
|
118
|
-
minLength: string;
|
|
119
|
-
maxLength: string;
|
|
120
|
-
strictDateValidation: boolean;
|
|
121
|
-
multiple: boolean;
|
|
122
|
-
unique: boolean;
|
|
123
|
-
};
|
|
124
|
-
unique: boolean;
|
|
125
|
-
errorLabel: string;
|
|
126
|
-
key: string;
|
|
127
|
-
tags: never[];
|
|
128
|
-
properties: {};
|
|
129
|
-
conditional: {
|
|
130
|
-
show: null;
|
|
131
|
-
when: null;
|
|
132
|
-
eq: string;
|
|
133
|
-
json: string;
|
|
134
|
-
};
|
|
135
|
-
customConditional: string;
|
|
136
|
-
logic: never[];
|
|
137
|
-
attributes: {};
|
|
138
|
-
overlay: {
|
|
139
|
-
style: string;
|
|
140
|
-
page: string;
|
|
141
|
-
left: string;
|
|
142
|
-
top: string;
|
|
143
|
-
width: string;
|
|
144
|
-
height: string;
|
|
145
|
-
};
|
|
146
|
-
type: string;
|
|
147
|
-
input: boolean;
|
|
148
|
-
refreshOn: string;
|
|
149
|
-
inputType: string;
|
|
150
|
-
id: string;
|
|
151
|
-
defaultValue: string;
|
|
152
|
-
}[];
|
|
153
|
-
title: string;
|
|
154
|
-
display: string;
|
|
155
|
-
access: {
|
|
156
|
-
roles: string[];
|
|
157
|
-
type: string;
|
|
158
|
-
}[];
|
|
159
|
-
submissionAccess: never[];
|
|
160
|
-
controller: string;
|
|
161
|
-
properties: {};
|
|
162
|
-
settings: {};
|
|
163
|
-
name: string;
|
|
164
|
-
path: string;
|
|
165
|
-
machineName: string;
|
|
166
|
-
};
|
|
167
|
-
};
|
|
168
|
-
};
|
|
169
|
-
export declare const WithoutTypeChoices: {
|
|
170
|
-
render: (args: any) => React.JSX.Element;
|
|
171
|
-
args: {
|
|
172
|
-
form: {
|
|
173
|
-
type: string;
|
|
174
|
-
tags: never[];
|
|
175
|
-
owner: string;
|
|
176
|
-
components: {
|
|
177
|
-
label: string;
|
|
178
|
-
labelPosition: string;
|
|
179
|
-
placeholder: string;
|
|
180
|
-
description: string;
|
|
181
|
-
tooltip: string;
|
|
182
|
-
prefix: string;
|
|
183
|
-
suffix: string;
|
|
184
|
-
widget: {
|
|
185
|
-
type: string;
|
|
186
|
-
};
|
|
187
|
-
inputMask: string;
|
|
188
|
-
allowMultipleMasks: boolean;
|
|
189
|
-
customClass: string;
|
|
190
|
-
tabindex: string;
|
|
191
|
-
autocomplete: string;
|
|
192
|
-
hidden: boolean;
|
|
193
|
-
hideLabel: boolean;
|
|
194
|
-
showWordCount: boolean;
|
|
195
|
-
showCharCount: boolean;
|
|
196
|
-
mask: boolean;
|
|
197
|
-
autofocus: boolean;
|
|
198
|
-
spellcheck: boolean;
|
|
199
|
-
disabled: boolean;
|
|
200
|
-
tableView: boolean;
|
|
201
|
-
modalEdit: boolean;
|
|
202
|
-
multiple: boolean;
|
|
203
|
-
persistent: boolean;
|
|
204
|
-
inputFormat: string;
|
|
205
|
-
protected: boolean;
|
|
206
|
-
dbIndex: boolean;
|
|
207
|
-
case: string;
|
|
208
|
-
encrypted: boolean;
|
|
209
|
-
redrawOn: string;
|
|
210
|
-
clearOnHide: boolean;
|
|
211
|
-
customDefaultValue: string;
|
|
212
|
-
calculateValue: string;
|
|
213
|
-
calculateServer: boolean;
|
|
214
|
-
allowCalculateOverride: boolean;
|
|
215
|
-
validateOn: string;
|
|
216
|
-
validate: {
|
|
217
|
-
required: boolean;
|
|
218
|
-
pattern: string;
|
|
219
|
-
customMessage: string;
|
|
220
|
-
custom: string;
|
|
221
|
-
customPrivate: boolean;
|
|
222
|
-
json: string;
|
|
223
|
-
minLength: string;
|
|
224
|
-
maxLength: string;
|
|
225
|
-
strictDateValidation: boolean;
|
|
226
|
-
multiple: boolean;
|
|
227
|
-
unique: boolean;
|
|
228
|
-
};
|
|
229
|
-
unique: boolean;
|
|
230
|
-
errorLabel: string;
|
|
231
|
-
key: string;
|
|
232
|
-
tags: never[];
|
|
233
|
-
properties: {};
|
|
234
|
-
conditional: {
|
|
235
|
-
show: null;
|
|
236
|
-
when: null;
|
|
237
|
-
eq: string;
|
|
238
|
-
json: string;
|
|
239
|
-
};
|
|
240
|
-
customConditional: string;
|
|
241
|
-
logic: never[];
|
|
242
|
-
attributes: {};
|
|
243
|
-
overlay: {
|
|
244
|
-
style: string;
|
|
245
|
-
page: string;
|
|
246
|
-
left: string;
|
|
247
|
-
top: string;
|
|
248
|
-
width: string;
|
|
249
|
-
height: string;
|
|
250
|
-
};
|
|
251
|
-
type: string;
|
|
252
|
-
input: boolean;
|
|
253
|
-
refreshOn: string;
|
|
254
|
-
inputType: string;
|
|
255
|
-
id: string;
|
|
256
|
-
defaultValue: string;
|
|
257
|
-
}[];
|
|
258
|
-
title: string;
|
|
259
|
-
display: string;
|
|
260
|
-
access: {
|
|
261
|
-
roles: string[];
|
|
262
|
-
type: string;
|
|
263
|
-
}[];
|
|
264
|
-
submissionAccess: never[];
|
|
265
|
-
controller: string;
|
|
266
|
-
properties: {};
|
|
267
|
-
settings: {};
|
|
268
|
-
name: string;
|
|
269
|
-
path: string;
|
|
270
|
-
machineName: string;
|
|
271
|
-
};
|
|
272
|
-
displayChoices: {
|
|
273
|
-
label: string;
|
|
274
|
-
value: string;
|
|
275
|
-
}[];
|
|
276
|
-
enableTags: boolean;
|
|
277
|
-
options: {
|
|
278
|
-
template: string;
|
|
279
|
-
iconset: string;
|
|
280
|
-
};
|
|
281
|
-
};
|
|
282
|
-
};
|
|
283
|
-
export declare const WithoutTags: {
|
|
284
|
-
render: (args: any) => React.JSX.Element;
|
|
285
|
-
args: {
|
|
286
|
-
form: {
|
|
287
|
-
type: string;
|
|
288
|
-
tags: never[];
|
|
289
|
-
owner: string;
|
|
290
|
-
components: {
|
|
291
|
-
label: string;
|
|
292
|
-
labelPosition: string;
|
|
293
|
-
placeholder: string;
|
|
294
|
-
description: string;
|
|
295
|
-
tooltip: string;
|
|
296
|
-
prefix: string;
|
|
297
|
-
suffix: string;
|
|
298
|
-
widget: {
|
|
299
|
-
type: string;
|
|
300
|
-
};
|
|
301
|
-
inputMask: string;
|
|
302
|
-
allowMultipleMasks: boolean;
|
|
303
|
-
customClass: string;
|
|
304
|
-
tabindex: string;
|
|
305
|
-
autocomplete: string;
|
|
306
|
-
hidden: boolean;
|
|
307
|
-
hideLabel: boolean;
|
|
308
|
-
showWordCount: boolean;
|
|
309
|
-
showCharCount: boolean;
|
|
310
|
-
mask: boolean;
|
|
311
|
-
autofocus: boolean;
|
|
312
|
-
spellcheck: boolean;
|
|
313
|
-
disabled: boolean;
|
|
314
|
-
tableView: boolean;
|
|
315
|
-
modalEdit: boolean;
|
|
316
|
-
multiple: boolean;
|
|
317
|
-
persistent: boolean;
|
|
318
|
-
inputFormat: string;
|
|
319
|
-
protected: boolean;
|
|
320
|
-
dbIndex: boolean;
|
|
321
|
-
case: string;
|
|
322
|
-
encrypted: boolean;
|
|
323
|
-
redrawOn: string;
|
|
324
|
-
clearOnHide: boolean;
|
|
325
|
-
customDefaultValue: string;
|
|
326
|
-
calculateValue: string;
|
|
327
|
-
calculateServer: boolean;
|
|
328
|
-
allowCalculateOverride: boolean;
|
|
329
|
-
validateOn: string;
|
|
330
|
-
validate: {
|
|
331
|
-
required: boolean;
|
|
332
|
-
pattern: string;
|
|
333
|
-
customMessage: string;
|
|
334
|
-
custom: string;
|
|
335
|
-
customPrivate: boolean;
|
|
336
|
-
json: string;
|
|
337
|
-
minLength: string;
|
|
338
|
-
maxLength: string;
|
|
339
|
-
strictDateValidation: boolean;
|
|
340
|
-
multiple: boolean;
|
|
341
|
-
unique: boolean;
|
|
342
|
-
};
|
|
343
|
-
unique: boolean;
|
|
344
|
-
errorLabel: string;
|
|
345
|
-
key: string;
|
|
346
|
-
tags: never[];
|
|
347
|
-
properties: {};
|
|
348
|
-
conditional: {
|
|
349
|
-
show: null;
|
|
350
|
-
when: null;
|
|
351
|
-
eq: string;
|
|
352
|
-
json: string;
|
|
353
|
-
};
|
|
354
|
-
customConditional: string;
|
|
355
|
-
logic: never[];
|
|
356
|
-
attributes: {};
|
|
357
|
-
overlay: {
|
|
358
|
-
style: string;
|
|
359
|
-
page: string;
|
|
360
|
-
left: string;
|
|
361
|
-
top: string;
|
|
362
|
-
width: string;
|
|
363
|
-
height: string;
|
|
364
|
-
};
|
|
365
|
-
type: string;
|
|
366
|
-
input: boolean;
|
|
367
|
-
refreshOn: string;
|
|
368
|
-
inputType: string;
|
|
369
|
-
id: string;
|
|
370
|
-
defaultValue: string;
|
|
371
|
-
}[];
|
|
372
|
-
title: string;
|
|
373
|
-
display: string;
|
|
374
|
-
access: {
|
|
375
|
-
roles: string[];
|
|
376
|
-
type: string;
|
|
377
|
-
}[];
|
|
378
|
-
submissionAccess: never[];
|
|
379
|
-
controller: string;
|
|
380
|
-
properties: {};
|
|
381
|
-
settings: {};
|
|
382
|
-
name: string;
|
|
383
|
-
path: string;
|
|
384
|
-
machineName: string;
|
|
385
|
-
};
|
|
386
|
-
displayChoices: {
|
|
387
|
-
label: string;
|
|
388
|
-
value: string;
|
|
389
|
-
}[];
|
|
390
|
-
enableTags: boolean;
|
|
391
|
-
options: {
|
|
392
|
-
template: string;
|
|
393
|
-
iconset: string;
|
|
394
|
-
};
|
|
395
|
-
};
|
|
396
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import PropTypes from "prop-types";
|
|
2
|
-
import { ReactElement } from "react";
|
|
3
|
-
import { FormSchema } from "../../interfaces/FormSchema";
|
|
4
|
-
export declare const defaultDisplayChoices: {
|
|
5
|
-
label: string;
|
|
6
|
-
value: string;
|
|
7
|
-
}[];
|
|
8
|
-
export interface FormParametersProps {
|
|
9
|
-
onChange?: (name: string, value: any) => void;
|
|
10
|
-
form: Partial<FormSchema>;
|
|
11
|
-
typeChoices?: {
|
|
12
|
-
label: string;
|
|
13
|
-
value: any;
|
|
14
|
-
}[];
|
|
15
|
-
displayChoices?: {
|
|
16
|
-
label: string;
|
|
17
|
-
value: any;
|
|
18
|
-
}[];
|
|
19
|
-
enableTags?: boolean;
|
|
20
|
-
className?: string;
|
|
21
|
-
baseUrl?: string;
|
|
22
|
-
readonly?: Record<string, boolean>;
|
|
23
|
-
}
|
|
24
|
-
export declare function FormParameters({ onChange, form, enableTags, typeChoices, displayChoices, className, readonly, baseUrl }: FormParametersProps): ReactElement;
|
|
25
|
-
export declare namespace FormParameters {
|
|
26
|
-
var propTypes: {
|
|
27
|
-
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
28
|
-
form: PropTypes.Requireable<object>;
|
|
29
|
-
enableTags: PropTypes.Requireable<boolean>;
|
|
30
|
-
typeChoices: PropTypes.Requireable<any[]>;
|
|
31
|
-
displayChoices: PropTypes.Requireable<any[]>;
|
|
32
|
-
className: PropTypes.Requireable<string>;
|
|
33
|
-
};
|
|
34
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { FormSettings } from "./formSettings.component";
|
|
3
|
-
declare const _default: {
|
|
4
|
-
title: string;
|
|
5
|
-
component: typeof FormSettings;
|
|
6
|
-
argTypes: {
|
|
7
|
-
onSubmit: {
|
|
8
|
-
action: string;
|
|
9
|
-
};
|
|
10
|
-
actionInfo: {
|
|
11
|
-
control: {
|
|
12
|
-
type: string;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
options: {
|
|
16
|
-
control: {
|
|
17
|
-
type: string;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
parameters: {
|
|
22
|
-
docs: {
|
|
23
|
-
source: {
|
|
24
|
-
type: string;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
export default _default;
|
|
30
|
-
export declare const Sandbox: {
|
|
31
|
-
(args: any): React.JSX.Element;
|
|
32
|
-
args: {
|
|
33
|
-
form: {
|
|
34
|
-
_id: string;
|
|
35
|
-
type: string;
|
|
36
|
-
tags: never[];
|
|
37
|
-
owner: string;
|
|
38
|
-
access: {
|
|
39
|
-
roles: string[];
|
|
40
|
-
type: string;
|
|
41
|
-
}[];
|
|
42
|
-
submissionAccess: {
|
|
43
|
-
roles: string[];
|
|
44
|
-
type: string;
|
|
45
|
-
}[];
|
|
46
|
-
controller: string;
|
|
47
|
-
properties: {};
|
|
48
|
-
settings: {};
|
|
49
|
-
name: string;
|
|
50
|
-
path: string;
|
|
51
|
-
machineName: string;
|
|
52
|
-
};
|
|
53
|
-
options: {
|
|
54
|
-
template: string;
|
|
55
|
-
iconset: string;
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { FormSchema, Submission } from "../../interfaces";
|
|
2
|
-
export type FormSettingsSchema = {
|
|
3
|
-
action: string;
|
|
4
|
-
tags: string[];
|
|
5
|
-
properties: Record<string, any>;
|
|
6
|
-
};
|
|
7
|
-
export declare function formSettingsToSubmission(form: Partial<FormSchema>): Submission<FormSettingsSchema>;
|
|
8
|
-
export declare function submissionToFormSettings(form: Partial<FormSchema>, submission: Submission<FormSettingsSchema>): Partial<FormSchema>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { FormSchema } from "../../interfaces";
|
|
3
|
-
import { TableProps } from "../table/hooks/useCustomTable.hook";
|
|
4
|
-
export type FormsTableProps = Omit<TableProps<FormSchema>, "columns"> & {
|
|
5
|
-
icon?: string;
|
|
6
|
-
tags?: {
|
|
7
|
-
label: string;
|
|
8
|
-
value: string;
|
|
9
|
-
}[];
|
|
10
|
-
};
|
|
11
|
-
export declare function FormsTable({ Cell, ...props }: FormsTableProps): React.JSX.Element;
|