@tsed/react-formio 2.3.1 → 3.0.0-alpha.1
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/chunks/index.js +45 -0
- package/dist/chunks/index.js.map +1 -0
- package/dist/components/actions-table/actionsTable.component.d.ts +10 -11
- package/dist/components/actions-table/actionsTable.component.js +53 -0
- package/dist/components/actions-table/actionsTable.component.js.map +1 -0
- package/dist/components/alert/alert.component.d.ts +5 -6
- package/dist/components/alert/alert.component.js +24 -0
- package/dist/components/alert/alert.component.js.map +1 -0
- package/dist/components/card/card.component.d.ts +6 -7
- package/dist/components/card/card.component.js +12 -0
- package/dist/components/card/card.component.js.map +1 -0
- package/dist/components/form/form.component.d.ts +62 -63
- package/dist/components/form/form.component.js +64 -0
- package/dist/components/form/form.component.js.map +1 -0
- package/dist/components/form/useForm.hook.d.ts +59 -60
- package/dist/components/form/useForm.hook.js +64 -0
- package/dist/components/form/useForm.hook.js.map +1 -0
- package/dist/components/form-access/formAccess.component.d.ts +9 -20
- package/dist/components/form-access/formAccess.component.js +95 -0
- package/dist/components/form-access/formAccess.component.js.map +1 -0
- package/dist/components/form-access/formAccess.schema.d.ts +5 -5
- package/dist/components/form-access/formAccess.schema.js +164 -0
- package/dist/components/form-access/formAccess.schema.js.map +1 -0
- package/dist/components/form-access/formAccess.utils.d.ts +24 -24
- package/dist/components/form-access/formAccess.utils.js +68 -0
- package/dist/components/form-access/formAccess.utils.js.map +1 -0
- package/dist/components/form-action/formAction.component.d.ts +9 -9
- package/dist/components/form-action/formAction.component.js +32 -0
- package/dist/components/form-action/formAction.component.js.map +1 -0
- package/dist/components/form-builder/formBuilder.component.d.ts +53 -53
- package/dist/components/form-builder/formBuilder.component.js +142 -0
- package/dist/components/form-builder/formBuilder.component.js.map +1 -0
- package/dist/components/form-control/formControl.component.d.ts +14 -22
- package/dist/components/form-control/formControl.component.js +26 -0
- package/dist/components/form-control/formControl.component.js.map +1 -0
- package/dist/components/form-edit/formCtas.component.d.ts +28 -28
- package/dist/components/form-edit/formCtas.component.js +70 -0
- package/dist/components/form-edit/formCtas.component.js.map +1 -0
- package/dist/components/form-edit/formEdit.component.d.ts +18 -19
- package/dist/components/form-edit/formEdit.component.js +57 -0
- package/dist/components/form-edit/formEdit.component.js.map +1 -0
- package/dist/components/form-edit/formEdit.reducer.d.ts +10 -10
- package/dist/components/form-edit/formEdit.reducer.js +65 -0
- package/dist/components/form-edit/formEdit.reducer.js.map +1 -0
- package/dist/components/form-edit/formParameters.component.d.ts +34 -34
- package/dist/components/form-edit/formParameters.component.js +92 -0
- package/dist/components/form-edit/formParameters.component.js.map +1 -0
- package/dist/components/form-edit/useFormEdit.hook.d.ts +29 -29
- package/dist/components/form-edit/useFormEdit.hook.js +36 -0
- package/dist/components/form-edit/useFormEdit.hook.js.map +1 -0
- package/dist/components/form-settings/formSettings.component.d.ts +7 -8
- package/dist/components/form-settings/formSettings.component.js +38 -0
- package/dist/components/form-settings/formSettings.component.js.map +1 -0
- package/dist/components/form-settings/formSettings.schema.d.ts +2 -2
- package/dist/components/form-settings/formSettings.schema.js +60 -0
- package/dist/components/form-settings/formSettings.schema.js.map +1 -0
- package/dist/components/form-settings/formSettings.utils.d.ts +8 -8
- package/dist/components/form-settings/formSettings.utils.js +23 -0
- package/dist/components/form-settings/formSettings.utils.js.map +1 -0
- package/dist/components/forms-table/components/formCell.component.d.ts +6 -7
- package/dist/components/forms-table/components/formCell.component.js +50 -0
- package/dist/components/forms-table/components/formCell.component.js.map +1 -0
- package/dist/components/forms-table/formsTable.component.d.ts +10 -11
- package/dist/components/forms-table/formsTable.component.js +29 -0
- package/dist/components/forms-table/formsTable.component.js.map +1 -0
- package/dist/components/index.d.ts +25 -26
- package/dist/components/index.js +86 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/input-tags/inputTags.component.d.ts +18 -19
- package/dist/components/input-tags/inputTags.component.js +37 -0
- package/dist/components/input-tags/inputTags.component.js.map +1 -0
- package/dist/components/input-text/inputText.component.d.ts +27 -28
- package/dist/components/input-text/inputText.component.js +70 -0
- package/dist/components/input-text/inputText.component.js.map +1 -0
- package/dist/components/loader/loader.component.d.ts +17 -17
- package/dist/components/loader/loader.component.js +26 -0
- package/dist/components/loader/loader.component.js.map +1 -0
- package/dist/components/modal/modal.component.d.ts +15 -15
- package/dist/components/modal/modal.component.js +62 -0
- package/dist/components/modal/modal.component.js.map +1 -0
- package/dist/components/modal/removeModal.component.d.ts +9 -9
- package/dist/components/modal/removeModal.component.js +71 -0
- package/dist/components/modal/removeModal.component.js.map +1 -0
- package/dist/components/pagination/pagination.component.d.ts +17 -18
- package/dist/components/pagination/pagination.component.js +87 -0
- package/dist/components/pagination/pagination.component.js.map +1 -0
- package/dist/components/select/select.component.d.ts +14 -27
- package/dist/components/select/select.component.js +60 -0
- package/dist/components/select/select.component.js.map +1 -0
- package/dist/components/submissions-table/submissionsTable.component.d.ts +6 -7
- package/dist/components/submissions-table/submissionsTable.component.js +11 -0
- package/dist/components/submissions-table/submissionsTable.component.js.map +1 -0
- package/dist/components/table/components/defaultArrowSort.component.d.ts +1 -2
- package/dist/components/table/components/defaultArrowSort.component.js +10 -0
- package/dist/components/table/components/defaultArrowSort.component.js.map +1 -0
- package/dist/components/table/components/defaultCell.component.d.ts +1 -2
- package/dist/components/table/components/defaultCell.component.js +11 -0
- package/dist/components/table/components/defaultCell.component.js.map +1 -0
- package/dist/components/table/components/defaultCellHeader.component.d.ts +5 -6
- package/dist/components/table/components/defaultCellHeader.component.js +14 -0
- package/dist/components/table/components/defaultCellHeader.component.js.map +1 -0
- package/dist/components/table/components/defaultCellOperations.component.d.ts +12 -2
- package/dist/components/table/components/defaultCellOperations.component.js +21 -0
- package/dist/components/table/components/defaultCellOperations.component.js.map +1 -0
- package/dist/components/table/components/defaultCells.component.d.ts +4 -5
- package/dist/components/table/components/defaultCells.component.js +23 -0
- package/dist/components/table/components/defaultCells.component.js.map +1 -0
- package/dist/components/table/components/defaultOperationButton.component.d.ts +15 -14
- package/dist/components/table/components/defaultOperationButton.component.js +45 -0
- package/dist/components/table/components/defaultOperationButton.component.js.map +1 -0
- package/dist/components/table/components/defaultRow.component.d.ts +12 -12
- package/dist/components/table/components/defaultRow.component.js +25 -0
- package/dist/components/table/components/defaultRow.component.js.map +1 -0
- package/dist/components/table/components/dragNDropContainer.d.ts +4 -4
- package/dist/components/table/components/dragNDropContainer.js +10 -0
- package/dist/components/table/components/dragNDropContainer.js.map +1 -0
- package/dist/components/table/filters/defaultColumnFilter.component.d.ts +5 -6
- package/dist/components/table/filters/defaultColumnFilter.component.js +32 -0
- package/dist/components/table/filters/defaultColumnFilter.component.js.map +1 -0
- package/dist/components/table/filters/selectColumnFilter.component.d.ts +10 -11
- package/dist/components/table/filters/selectColumnFilter.component.js +34 -0
- package/dist/components/table/filters/selectColumnFilter.component.js.map +1 -0
- package/dist/components/table/filters/sliderColumnFilter.component.d.ts +2 -3
- package/dist/components/table/filters/sliderColumnFilter.component.js +27 -0
- package/dist/components/table/filters/sliderColumnFilter.component.js.map +1 -0
- package/dist/components/table/hooks/useCustomTable.hook.d.ts +128 -128
- package/dist/components/table/hooks/useCustomTable.hook.js +130 -0
- package/dist/components/table/hooks/useCustomTable.hook.js.map +1 -0
- package/dist/components/table/hooks/useDragnDropRow.hook.d.ts +272 -274
- package/dist/components/table/hooks/useDragnDropRow.hook.js +40 -0
- package/dist/components/table/hooks/useDragnDropRow.hook.js.map +1 -0
- package/dist/components/table/hooks/useOperations.hook.d.ts +11 -11
- package/dist/components/table/hooks/useOperations.hook.js +25 -0
- package/dist/components/table/hooks/useOperations.hook.js.map +1 -0
- package/dist/components/table/index.d.ts +15 -15
- package/dist/components/table/index.js +35 -0
- package/dist/components/table/index.js.map +1 -0
- package/dist/components/table/table.component.d.ts +3 -3
- package/dist/components/table/table.component.js +81 -0
- package/dist/components/table/table.component.js.map +1 -0
- package/dist/components/table/utils/getPageNumbers.d.ts +3 -3
- package/dist/components/table/utils/getPageNumbers.js +25 -0
- package/dist/components/table/utils/getPageNumbers.js.map +1 -0
- package/dist/components/table/utils/mapFormToColumns.d.ts +3 -3
- package/dist/components/table/utils/mapFormToColumns.js +23 -0
- package/dist/components/table/utils/mapFormToColumns.js.map +1 -0
- package/dist/components/table/utils/swapElements.d.ts +1 -1
- package/dist/components/table/utils/swapElements.js +5 -0
- package/dist/components/table/utils/swapElements.js.map +1 -0
- package/dist/components/tabs/tabs.component.d.ts +19 -19
- package/dist/components/tabs/tabs.component.js +72 -0
- package/dist/components/tabs/tabs.component.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 +13 -13
- package/dist/index.js +107 -7803
- package/dist/index.js.map +1 -1
- package/dist/interfaces/ActionSchema.d.ts +23 -23
- package/dist/interfaces/ActionSchema.js +2 -0
- package/dist/interfaces/ActionSchema.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/FormOptions.d.ts +10 -10
- package/dist/interfaces/FormOptions.js +2 -0
- package/dist/interfaces/FormOptions.js.map +1 -0
- package/dist/interfaces/FormSchema.d.ts +12 -12
- package/dist/interfaces/FormSchema.js +2 -0
- package/dist/interfaces/FormSchema.js.map +1 -0
- package/dist/interfaces/Operation.d.ts +29 -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 +6 -6
- package/dist/interfaces/RoleSchema.js +2 -0
- package/dist/interfaces/RoleSchema.js.map +1 -0
- package/dist/interfaces/Submission.d.ts +5 -5
- package/dist/interfaces/Submission.js +2 -0
- package/dist/interfaces/Submission.js.map +1 -0
- package/dist/interfaces/index.d.ts +8 -8
- package/dist/interfaces/index.js +2 -0
- package/dist/interfaces/index.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/typings.d.js +2 -0
- package/dist/typings.d.js.map +1 -0
- package/dist/utils/callLast.d.ts +1 -1
- package/dist/utils/callLast.js +10 -0
- package/dist/utils/callLast.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 +28 -15
- package/src/components/__fixtures__/form-actions.json +240 -0
- package/src/components/actions-table/__fixtures__/data.json +12 -0
- package/src/components/actions-table/actionsTable.component.spec.tsx +47 -17
- package/src/components/actions-table/actionsTable.component.tsx +3 -2
- package/src/components/actions-table/actionsTable.stories.tsx +71 -289
- package/src/components/alert/alert.component.spec.tsx +0 -1
- package/src/components/alert/alert.component.tsx +0 -2
- package/src/components/alert/alert.stories.tsx +0 -2
- package/src/components/card/card.component.spec.tsx +0 -1
- package/src/components/card/card.component.tsx +1 -2
- package/src/components/card/card.stories.tsx +0 -2
- package/src/components/form/form.component.spec.tsx +1 -1
- package/src/components/form/form.component.tsx +0 -1
- package/src/components/form/form.stories.tsx +2 -3
- package/src/components/form-access/formAccess.component.tsx +2 -13
- package/src/components/form-access/formAccess.stories.tsx +55 -49
- package/src/components/form-action/formAction.component.tsx +2 -1
- package/src/components/form-action/formAction.stories.tsx +0 -2
- package/src/components/form-builder/formBuilder.component.tsx +4 -4
- package/src/components/form-builder/formBuilder.stories.tsx +0 -2
- package/src/components/form-control/formControl.component.spec.tsx +0 -1
- package/src/components/form-control/formControl.component.tsx +8 -15
- package/src/components/form-control/formControl.stories.tsx +0 -2
- package/src/components/form-edit/formCtas.component.tsx +1 -1
- package/src/components/form-edit/formEdit.component.tsx +0 -1
- package/src/components/form-edit/formEdit.reducer.ts +0 -1
- package/src/components/form-edit/formEdit.stories.tsx +0 -2
- package/src/components/form-edit/formParameters.component.tsx +1 -1
- package/src/components/form-settings/formSettings.component.spec.tsx +5 -6
- package/src/components/form-settings/formSettings.component.tsx +1 -1
- package/src/components/form-settings/formSettings.stories.tsx +0 -2
- package/src/components/forms-table/components/formCell.component.tsx +0 -1
- package/src/components/forms-table/formsTable.component.tsx +0 -2
- package/src/components/forms-table/formsTable.stories.tsx +0 -1
- package/src/components/index.ts +0 -1
- package/src/components/input-tags/inputTags.component.tsx +1 -1
- package/src/components/input-tags/inputTags.stories.tsx +1 -1
- package/src/components/input-text/inputText.component.spec.tsx +0 -1
- package/src/components/input-text/inputText.component.tsx +1 -1
- package/src/components/input-text/inputText.stories.tsx +1 -1
- package/src/components/loader/loader.component.spec.tsx +1 -1
- package/src/components/loader/loader.component.tsx +1 -1
- package/src/components/loader/loader.stories.tsx +0 -2
- package/src/components/modal/modal.component.spec.tsx +2 -5
- package/src/components/modal/modal.component.tsx +1 -1
- package/src/components/modal/modal.stories.tsx +0 -2
- package/src/components/modal/removeModal.component.tsx +1 -1
- package/src/components/pagination/pagination.component.spec.tsx +7 -10
- package/src/components/pagination/pagination.component.tsx +1 -1
- package/src/components/pagination/pagination.stories.tsx +1 -1
- package/src/components/select/select.component.spec.tsx +1 -2
- package/src/components/select/select.component.tsx +10 -23
- package/src/components/select/select.stories.tsx +1 -1
- package/src/components/submissions-table/submissionsTable.component.tsx +0 -2
- package/src/components/submissions-table/submissionsTable.stories.tsx +4 -4
- package/src/components/table/components/defaultArrowSort.component.tsx +0 -2
- package/src/components/table/components/defaultCell.component.tsx +0 -2
- package/src/components/table/components/defaultCellHeader.component.tsx +0 -1
- package/src/components/table/components/defaultCellOperations.component.tsx +16 -5
- package/src/components/table/components/defaultCells.component.tsx +0 -1
- package/src/components/table/components/defaultOperationButton.component.tsx +14 -4
- package/src/components/table/components/defaultRow.component.tsx +2 -1
- package/src/components/table/components/dragNDropContainer.tsx +1 -1
- package/src/components/table/filters/defaultColumnFilter.component.spec.tsx +2 -5
- package/src/components/table/filters/defaultColumnFilter.component.tsx +2 -1
- package/src/components/table/filters/selectColumnFilter.component.spec.tsx +3 -6
- package/src/components/table/filters/selectColumnFilter.component.tsx +0 -1
- package/src/components/table/filters/sliderColumnFilter.component.tsx +7 -10
- package/src/components/table/hooks/useCustomTable.hook.tsx +16 -20
- package/src/components/table/hooks/useOperations.hook.tsx +3 -3
- package/src/components/table/table.component.tsx +1 -1
- package/src/components/table/table.stories.tsx +8 -8
- package/src/components/table/utils/mapFormToColumns.tsx +0 -1
- package/src/components/tabs/tabs.component.spec.tsx +2 -2
- package/src/components/tabs/tabs.component.stories.tsx +1 -1
- package/src/components/tabs/tabs.component.tsx +1 -1
- package/src/react-table.d.ts +2 -0
- package/src/utils/iconClass.ts +3 -1
- package/tsconfig.app.json +11 -0
- package/tsconfig.json +8 -6
- 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.spec.d.ts +0 -1
- package/dist/components/actions-table/actionsTable.stories.d.ts +0 -85
- 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.spec.d.ts +0 -1
- package/dist/components/form/form.stories.d.ts +0 -6445
- package/dist/components/form-access/formAccess.stories.d.ts +0 -62
- package/dist/components/form-access/formAccess.utils.spec.d.ts +0 -1
- package/dist/components/form-action/formAction.stories.d.ts +0 -409
- package/dist/components/form-builder/formBuilder.stories.d.ts +0 -5989
- 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/formEdit.stories.d.ts +0 -396
- package/dist/components/form-settings/formSettings.component.spec.d.ts +0 -1
- package/dist/components/form-settings/formSettings.stories.d.ts +0 -58
- package/dist/components/form-settings/formSettings.utils.spec.d.ts +0 -1
- package/dist/components/forms-table/formsTable.stories.d.ts +0 -117
- package/dist/components/input-tags/inputTags.stories.d.ts +0 -76
- 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.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.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.spec.d.ts +0 -1
- package/dist/components/select/select.stories.d.ts +0 -164
- package/dist/components/submissions-table/submissionsTable.stories.d.ts +0 -649
- package/dist/components/table/filters/defaultColumnFilter.component.spec.d.ts +0 -1
- package/dist/components/table/filters/selectColumnFilter.component.spec.d.ts +0 -1
- package/dist/components/table/table.stories.d.ts +0 -71
- 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 -7453
- package/dist/index.modern.js.map +0 -1
- package/dist/package.json +0 -3
- package/dist/setupTests.d.ts +0 -1
- package/jest.config.js +0 -6
- package/src/components/react-component/reactComponent.component.tsx +0 -197
- package/src/setupTests.tsx +0 -5
- package/tsconfig.node.json +0 -8
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { InputText } from "./inputText.component";
|
|
3
|
-
declare const _default: {
|
|
4
|
-
title: string;
|
|
5
|
-
component: typeof InputText;
|
|
6
|
-
argTypes: {
|
|
7
|
-
label: {
|
|
8
|
-
control: {
|
|
9
|
-
type: string;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
type: {
|
|
13
|
-
control: {
|
|
14
|
-
type: string;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
name: {
|
|
18
|
-
control: {
|
|
19
|
-
type: string;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
value: {
|
|
23
|
-
control: {
|
|
24
|
-
type: string;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
size: {
|
|
28
|
-
control: {
|
|
29
|
-
type: string;
|
|
30
|
-
options: string[];
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
placeholder: {
|
|
34
|
-
control: {
|
|
35
|
-
type: string;
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
choices: {
|
|
39
|
-
control: {
|
|
40
|
-
type: string;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
description: {
|
|
44
|
-
control: {
|
|
45
|
-
type: string;
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
parameters: {};
|
|
50
|
-
};
|
|
51
|
-
export default _default;
|
|
52
|
-
export declare const Sandbox: {
|
|
53
|
-
(args: any): React.JSX.Element;
|
|
54
|
-
args: {
|
|
55
|
-
name: string;
|
|
56
|
-
label: string;
|
|
57
|
-
value: string;
|
|
58
|
-
size: string;
|
|
59
|
-
placeholder: string;
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
export declare const WithPrefix: {
|
|
63
|
-
(args: any): React.JSX.Element;
|
|
64
|
-
args: {
|
|
65
|
-
label: string;
|
|
66
|
-
value: string;
|
|
67
|
-
size: string;
|
|
68
|
-
placeholder: string;
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
export declare const WithSuffix: {
|
|
72
|
-
(args: any): React.JSX.Element;
|
|
73
|
-
args: {
|
|
74
|
-
label: string;
|
|
75
|
-
value: string;
|
|
76
|
-
size: string;
|
|
77
|
-
placeholder: string;
|
|
78
|
-
};
|
|
79
|
-
};
|
|
80
|
-
export declare const TypeNumber: {
|
|
81
|
-
(args: any): React.JSX.Element;
|
|
82
|
-
args: {
|
|
83
|
-
label: string;
|
|
84
|
-
type: string;
|
|
85
|
-
value: string;
|
|
86
|
-
size: string;
|
|
87
|
-
placeholder: string;
|
|
88
|
-
description: string;
|
|
89
|
-
};
|
|
90
|
-
};
|
|
91
|
-
export declare const Sizing: {
|
|
92
|
-
(args: any): React.JSX.Element;
|
|
93
|
-
args: {
|
|
94
|
-
label: string;
|
|
95
|
-
type: string;
|
|
96
|
-
value: string;
|
|
97
|
-
size: string;
|
|
98
|
-
placeholder: string;
|
|
99
|
-
description: string;
|
|
100
|
-
};
|
|
101
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Loader } from "./loader.component";
|
|
3
|
-
declare const _default: {
|
|
4
|
-
title: string;
|
|
5
|
-
component: typeof Loader;
|
|
6
|
-
argTypes: {};
|
|
7
|
-
parameters: {};
|
|
8
|
-
};
|
|
9
|
-
export default _default;
|
|
10
|
-
export declare const Sandbox: {
|
|
11
|
-
(args: any): React.JSX.Element;
|
|
12
|
-
args: {
|
|
13
|
-
isActive: boolean;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "@testing-library/jest-dom/extend-expect";
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Modal, ModalProps } from "./modal.component";
|
|
3
|
-
import { RemoveModalProps } from "./removeModal.component";
|
|
4
|
-
declare const _default: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: typeof Modal;
|
|
7
|
-
argTypes: {
|
|
8
|
-
onSubmit: {
|
|
9
|
-
title: {
|
|
10
|
-
control: {
|
|
11
|
-
type: string;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
control: {
|
|
15
|
-
action: string;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
parameters: {};
|
|
20
|
-
};
|
|
21
|
-
export default _default;
|
|
22
|
-
export declare const Sandbox: {
|
|
23
|
-
(args: ModalProps): React.JSX.Element;
|
|
24
|
-
args: {};
|
|
25
|
-
};
|
|
26
|
-
export declare const WithTitle: {
|
|
27
|
-
(args: ModalProps): React.JSX.Element;
|
|
28
|
-
args: {
|
|
29
|
-
title: string;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
export declare const WithFooter: {
|
|
33
|
-
(args: ModalProps): React.JSX.Element;
|
|
34
|
-
args: {
|
|
35
|
-
title: string;
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
export declare const WithRemoveModal: {
|
|
39
|
-
(args: RemoveModalProps): React.JSX.Element;
|
|
40
|
-
args: {
|
|
41
|
-
valueToCompare: string;
|
|
42
|
-
itemType: string;
|
|
43
|
-
};
|
|
44
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Pagination } from "./pagination.component";
|
|
3
|
-
declare const _default: {
|
|
4
|
-
title: string;
|
|
5
|
-
component: typeof Pagination;
|
|
6
|
-
parameters: {};
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
9
|
-
export declare const Sandbox: {
|
|
10
|
-
(args: any): React.JSX.Element;
|
|
11
|
-
args: {
|
|
12
|
-
pageSizes: number[];
|
|
13
|
-
pageCount: number;
|
|
14
|
-
pageIndex: number;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { Components, ComponentSchema } from "formiojs";
|
|
2
|
-
import { Submission } from "../../interfaces/Submission";
|
|
3
|
-
export declare class ReactComponent<Data = any> extends Components.components.field {
|
|
4
|
-
reactInstance: any;
|
|
5
|
-
shouldSetValue?: boolean;
|
|
6
|
-
private dataForSetting?;
|
|
7
|
-
/**
|
|
8
|
-
* This is the first phase of component building where the component is instantiated.
|
|
9
|
-
*
|
|
10
|
-
* @param component - The component definition created from the settings form.
|
|
11
|
-
* @param options - Any options passed into the renderer.
|
|
12
|
-
* @param data - The submission data where this component's data exists.
|
|
13
|
-
*/
|
|
14
|
-
constructor(component: ComponentSchema, options: any, data: Submission<Data>);
|
|
15
|
-
get $reactNode(): any;
|
|
16
|
-
/**
|
|
17
|
-
* This method is called any time the component needs to be rebuilt. It is most frequently used to listen to other
|
|
18
|
-
* components using the this.on() function.
|
|
19
|
-
*/
|
|
20
|
-
init(): void;
|
|
21
|
-
/**
|
|
22
|
-
* This method is called before the component is going to be destroyed, which is when the component instance is
|
|
23
|
-
* destroyed. This is different from detach which is when the component instance still exists but the dom instance is
|
|
24
|
-
* removed.
|
|
25
|
-
*/
|
|
26
|
-
destroy(): void;
|
|
27
|
-
/**
|
|
28
|
-
* The second phase of component building where the component is rendered as an HTML string.
|
|
29
|
-
*
|
|
30
|
-
* @returns {string} - The return is the full string of the component
|
|
31
|
-
*/
|
|
32
|
-
render(): any;
|
|
33
|
-
/**
|
|
34
|
-
* The third phase of component building where the component has been attached to the DOM as 'element' and is ready
|
|
35
|
-
* to have its javascript events attached.
|
|
36
|
-
*
|
|
37
|
-
* @param element
|
|
38
|
-
* @returns {Promise<void>} - Return a promise that resolves when the attach is complete.
|
|
39
|
-
*/
|
|
40
|
-
attach(element: any): Promise<void>;
|
|
41
|
-
/**
|
|
42
|
-
* The fourth phase of component building where the component is being removed from the page. This could be a redraw
|
|
43
|
-
* or it is being removed from the form.
|
|
44
|
-
*/
|
|
45
|
-
detach(): void;
|
|
46
|
-
/**
|
|
47
|
-
* Override this function to render a react component.
|
|
48
|
-
*/
|
|
49
|
-
renderReact(): any;
|
|
50
|
-
/**
|
|
51
|
-
* Override this function to insert your custom component.
|
|
52
|
-
*
|
|
53
|
-
* @param element
|
|
54
|
-
*/
|
|
55
|
-
attachReact(element?: any): Element;
|
|
56
|
-
/**
|
|
57
|
-
* Override this function.
|
|
58
|
-
*/
|
|
59
|
-
detachReact(element?: any): void;
|
|
60
|
-
/**
|
|
61
|
-
* Something external has set a value and our component needs to be updated to reflect that. For example, loading a submission.
|
|
62
|
-
*
|
|
63
|
-
* @param value
|
|
64
|
-
* @param flags
|
|
65
|
-
*/
|
|
66
|
-
setValue(value: any, flags?: any): boolean;
|
|
67
|
-
/**
|
|
68
|
-
* The user has changed the value in the component and the value needs to be updated on the main submission object and other components notified of a change event.
|
|
69
|
-
*
|
|
70
|
-
* @param value
|
|
71
|
-
* @param flags
|
|
72
|
-
*/
|
|
73
|
-
updateValue: (value?: Data, flags?: Record<string, any>) => boolean;
|
|
74
|
-
/**
|
|
75
|
-
* Get the current value of the component. Should return the value set in the react component.
|
|
76
|
-
*
|
|
77
|
-
* @returns {*}
|
|
78
|
-
*/
|
|
79
|
-
getValue(): Data;
|
|
80
|
-
/**
|
|
81
|
-
* Override normal validation check to insert custom validation in react component.
|
|
82
|
-
*
|
|
83
|
-
* @param data
|
|
84
|
-
* @param dirty
|
|
85
|
-
* @param rowData
|
|
86
|
-
* @returns {boolean}
|
|
87
|
-
*/
|
|
88
|
-
checkValidity(data: Data, dirty: boolean, rowData: any): boolean;
|
|
89
|
-
validate(data: Data, dirty: boolean, rowData: any): boolean;
|
|
90
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Select } from "./select.component";
|
|
3
|
-
declare const _default: {
|
|
4
|
-
title: string;
|
|
5
|
-
component: typeof Select;
|
|
6
|
-
argTypes: {
|
|
7
|
-
label: {
|
|
8
|
-
control: {
|
|
9
|
-
type: string;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
name: {
|
|
13
|
-
control: {
|
|
14
|
-
type: string;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
value: {
|
|
18
|
-
control: {
|
|
19
|
-
type: string;
|
|
20
|
-
options: {
|
|
21
|
-
label: string;
|
|
22
|
-
value: string;
|
|
23
|
-
}[];
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
size: {
|
|
27
|
-
control: {
|
|
28
|
-
type: string;
|
|
29
|
-
options: string[];
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
layout: {
|
|
33
|
-
control: {
|
|
34
|
-
type: string;
|
|
35
|
-
options: string[];
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
placeholder: {
|
|
39
|
-
control: {
|
|
40
|
-
type: string;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
choices: {
|
|
44
|
-
control: {
|
|
45
|
-
type: string;
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
parameters: {};
|
|
50
|
-
};
|
|
51
|
-
export default _default;
|
|
52
|
-
export declare const Sandbox: {
|
|
53
|
-
(args: any): React.JSX.Element;
|
|
54
|
-
args: {
|
|
55
|
-
label: string;
|
|
56
|
-
value: string;
|
|
57
|
-
size: string;
|
|
58
|
-
placeholder: string;
|
|
59
|
-
choices: {
|
|
60
|
-
label: string;
|
|
61
|
-
value: string;
|
|
62
|
-
}[];
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
|
-
export declare const Choicesjs: {
|
|
66
|
-
(args: any): React.JSX.Element;
|
|
67
|
-
args: {
|
|
68
|
-
label: string;
|
|
69
|
-
value: string;
|
|
70
|
-
size: string;
|
|
71
|
-
layout: string;
|
|
72
|
-
placeholder: string;
|
|
73
|
-
choices: {
|
|
74
|
-
label: string;
|
|
75
|
-
value: string;
|
|
76
|
-
}[];
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
|
-
export declare const ChoicesjsPrefix: {
|
|
80
|
-
(args: any): React.JSX.Element;
|
|
81
|
-
args: {
|
|
82
|
-
label: string;
|
|
83
|
-
name: string;
|
|
84
|
-
value: string;
|
|
85
|
-
size: string;
|
|
86
|
-
layout: string;
|
|
87
|
-
placeholder: string;
|
|
88
|
-
choices: {
|
|
89
|
-
label: string;
|
|
90
|
-
value: string;
|
|
91
|
-
}[];
|
|
92
|
-
};
|
|
93
|
-
};
|
|
94
|
-
export declare const WithPrefix: {
|
|
95
|
-
(args: any): React.JSX.Element;
|
|
96
|
-
args: {
|
|
97
|
-
label: string;
|
|
98
|
-
value: string;
|
|
99
|
-
size: string;
|
|
100
|
-
placeholder: string;
|
|
101
|
-
choices: {
|
|
102
|
-
label: string;
|
|
103
|
-
value: string;
|
|
104
|
-
}[];
|
|
105
|
-
};
|
|
106
|
-
};
|
|
107
|
-
export declare const WithSuffix: {
|
|
108
|
-
(args: any): React.JSX.Element;
|
|
109
|
-
args: {
|
|
110
|
-
label: string;
|
|
111
|
-
value: string;
|
|
112
|
-
size: string;
|
|
113
|
-
placeholder: string;
|
|
114
|
-
choices: {
|
|
115
|
-
label: string;
|
|
116
|
-
value: string;
|
|
117
|
-
}[];
|
|
118
|
-
};
|
|
119
|
-
};
|
|
120
|
-
export declare const TypeMultiple: {
|
|
121
|
-
(args: any): React.JSX.Element;
|
|
122
|
-
args: {
|
|
123
|
-
label: string;
|
|
124
|
-
name: string;
|
|
125
|
-
value: never[];
|
|
126
|
-
size: string;
|
|
127
|
-
multiple: boolean;
|
|
128
|
-
placeholder: string;
|
|
129
|
-
description: string;
|
|
130
|
-
choices: {
|
|
131
|
-
label: string;
|
|
132
|
-
value: string;
|
|
133
|
-
}[];
|
|
134
|
-
};
|
|
135
|
-
};
|
|
136
|
-
export declare const ChoicesjsMultiple: {
|
|
137
|
-
(args: any): React.JSX.Element;
|
|
138
|
-
args: {
|
|
139
|
-
label: string;
|
|
140
|
-
value: never[];
|
|
141
|
-
size: string;
|
|
142
|
-
multiple: boolean;
|
|
143
|
-
layout: string;
|
|
144
|
-
placeholder: string;
|
|
145
|
-
choices: {
|
|
146
|
-
label: string;
|
|
147
|
-
value: string;
|
|
148
|
-
}[];
|
|
149
|
-
};
|
|
150
|
-
};
|
|
151
|
-
export declare const Sizing: {
|
|
152
|
-
(args: any): React.JSX.Element;
|
|
153
|
-
args: {
|
|
154
|
-
label: string;
|
|
155
|
-
value: string;
|
|
156
|
-
size: string;
|
|
157
|
-
placeholder: string;
|
|
158
|
-
description: string;
|
|
159
|
-
choices: {
|
|
160
|
-
label: string;
|
|
161
|
-
value: string;
|
|
162
|
-
}[];
|
|
163
|
-
};
|
|
164
|
-
};
|