@tsed/react-formio 2.3.2 → 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 -9
- 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 -14
- 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 -14
- 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 -13
- 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 -7651
- 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 +23 -13
- package/src/components/actions-table/actionsTable.component.spec.tsx +5 -6
- package/src/components/actions-table/actionsTable.component.tsx +1 -1
- 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 +1 -2
- 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 +5 -5
- 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 +2 -2
- 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 +0 -2
- package/src/components/table/components/defaultCells.component.tsx +0 -1
- package/src/components/table/components/defaultOperationButton.component.tsx +5 -0
- 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 +1 -1
- 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 -40
- 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 -21
- 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 -7435
- package/dist/index.modern.js.map +0 -1
- 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
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { ActionsTable as e } from "./actions-table/actionsTable.component.js";
|
|
2
|
+
import { Alert as m } from "./alert/alert.component.js";
|
|
3
|
+
import { Card as f } from "./card/card.component.js";
|
|
4
|
+
import { Form as x } from "./form/form.component.js";
|
|
5
|
+
import { useForm as s } from "./form/useForm.hook.js";
|
|
6
|
+
import { FormAccess as i } from "./form-access/formAccess.component.js";
|
|
7
|
+
import { FormAction as F } from "./form-action/formAction.component.js";
|
|
8
|
+
import { FormBuilder as T } from "./form-builder/formBuilder.component.js";
|
|
9
|
+
import { FormControl as b } from "./form-control/formControl.component.js";
|
|
10
|
+
import { FormEditCTAs as A } from "./form-edit/formCtas.component.js";
|
|
11
|
+
import { FormEdit as E } from "./form-edit/formEdit.component.js";
|
|
12
|
+
import { FormParameters as g, defaultDisplayChoices as P } from "./form-edit/formParameters.component.js";
|
|
13
|
+
import { useFormEdit as B } from "./form-edit/useFormEdit.hook.js";
|
|
14
|
+
import { FormSettings as I } from "./form-settings/formSettings.component.js";
|
|
15
|
+
import { FormsTable as w } from "./forms-table/formsTable.component.js";
|
|
16
|
+
import { InputTags as L } from "./input-tags/inputTags.component.js";
|
|
17
|
+
import { InputText as _ } from "./input-text/inputText.component.js";
|
|
18
|
+
import { Loader as k } from "./loader/loader.component.js";
|
|
19
|
+
import { Modal as y, useModal as N } from "./modal/modal.component.js";
|
|
20
|
+
import { RemoveModal as q } from "./modal/removeModal.component.js";
|
|
21
|
+
import { Pagination as J } from "./pagination/pagination.component.js";
|
|
22
|
+
import { Select as Q } from "./select/select.component.js";
|
|
23
|
+
import { SubmissionsTable as V } from "./submissions-table/submissionsTable.component.js";
|
|
24
|
+
import { DefaultArrowSort as X } from "./table/components/defaultArrowSort.component.js";
|
|
25
|
+
import { DefaultCell as Z } from "./table/components/defaultCell.component.js";
|
|
26
|
+
import { DefaultCellHeader as oo } from "./table/components/defaultCellHeader.component.js";
|
|
27
|
+
import { DefaultCellOperations as eo } from "./table/components/defaultCellOperations.component.js";
|
|
28
|
+
import { DefaultOperationButton as mo } from "./table/components/defaultOperationButton.component.js";
|
|
29
|
+
import { DefaultColumnFilter as fo } from "./table/filters/defaultColumnFilter.component.js";
|
|
30
|
+
import { SelectColumnFilter as xo, useSelectColumnFilter as ao } from "./table/filters/selectColumnFilter.component.js";
|
|
31
|
+
import { SliderColumnFilter as uo } from "./table/filters/sliderColumnFilter.component.js";
|
|
32
|
+
import { getOperationCallback as no, useCustomTable as Fo } from "./table/hooks/useCustomTable.hook.js";
|
|
33
|
+
import { useOperations as To } from "./table/hooks/useOperations.hook.js";
|
|
34
|
+
import { Table as co } from "./table/table.component.js";
|
|
35
|
+
import { LEFT_PAGE as Do, RIGHT_PAGE as Eo, getPageNumbers as So } from "./table/utils/getPageNumbers.js";
|
|
36
|
+
import { mapFormToColumns as Po } from "./table/utils/mapFormToColumns.js";
|
|
37
|
+
import { swapElements as Bo } from "./table/utils/swapElements.js";
|
|
38
|
+
import { ButtonTab as Io, Tabs as Mo } from "./tabs/tabs.component.js";
|
|
39
|
+
export {
|
|
40
|
+
e as ActionsTable,
|
|
41
|
+
m as Alert,
|
|
42
|
+
Io as ButtonTab,
|
|
43
|
+
f as Card,
|
|
44
|
+
X as DefaultArrowSort,
|
|
45
|
+
Z as DefaultCell,
|
|
46
|
+
oo as DefaultCellHeader,
|
|
47
|
+
eo as DefaultCellOperations,
|
|
48
|
+
fo as DefaultColumnFilter,
|
|
49
|
+
mo as DefaultOperationButton,
|
|
50
|
+
x as Form,
|
|
51
|
+
i as FormAccess,
|
|
52
|
+
F as FormAction,
|
|
53
|
+
T as FormBuilder,
|
|
54
|
+
b as FormControl,
|
|
55
|
+
E as FormEdit,
|
|
56
|
+
A as FormEditCTAs,
|
|
57
|
+
g as FormParameters,
|
|
58
|
+
I as FormSettings,
|
|
59
|
+
w as FormsTable,
|
|
60
|
+
L as InputTags,
|
|
61
|
+
_ as InputText,
|
|
62
|
+
Do as LEFT_PAGE,
|
|
63
|
+
k as Loader,
|
|
64
|
+
y as Modal,
|
|
65
|
+
J as Pagination,
|
|
66
|
+
Eo as RIGHT_PAGE,
|
|
67
|
+
q as RemoveModal,
|
|
68
|
+
Q as Select,
|
|
69
|
+
xo as SelectColumnFilter,
|
|
70
|
+
uo as SliderColumnFilter,
|
|
71
|
+
V as SubmissionsTable,
|
|
72
|
+
co as Table,
|
|
73
|
+
Mo as Tabs,
|
|
74
|
+
P as defaultDisplayChoices,
|
|
75
|
+
no as getOperationCallback,
|
|
76
|
+
So as getPageNumbers,
|
|
77
|
+
Po as mapFormToColumns,
|
|
78
|
+
Bo as swapElements,
|
|
79
|
+
Fo as useCustomTable,
|
|
80
|
+
s as useForm,
|
|
81
|
+
B as useFormEdit,
|
|
82
|
+
N as useModal,
|
|
83
|
+
To as useOperations,
|
|
84
|
+
ao as useSelectColumnFilter
|
|
85
|
+
};
|
|
86
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import PropTypes from
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
export declare
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
1
|
+
import { default as PropTypes } from 'prop-types';
|
|
2
|
+
import { FormControlProps } from '../form-control/formControl.component';
|
|
3
|
+
export interface InputTagsProps<T = any> extends Omit<FormControlProps, "description" | "prefix" | "suffix"> {
|
|
4
|
+
value?: T;
|
|
5
|
+
onChange?: (name: string, value: T) => void;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
}
|
|
9
|
+
export declare function InputTags({ name, value, label, onChange, required, description, prefix, suffix, ...props }: InputTagsProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare namespace InputTags {
|
|
11
|
+
var propTypes: {
|
|
12
|
+
label: PropTypes.Requireable<string>;
|
|
13
|
+
name: PropTypes.Validator<string>;
|
|
14
|
+
value: PropTypes.Requireable<any[]>;
|
|
15
|
+
required: PropTypes.Requireable<boolean>;
|
|
16
|
+
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
+
import v from "@formio/choices.js";
|
|
3
|
+
import y from "lodash/uniq";
|
|
4
|
+
import e from "prop-types";
|
|
5
|
+
import { useRef as E, useEffect as I } from "react";
|
|
6
|
+
import { FormControl as x } from "../form-control/formControl.component.js";
|
|
7
|
+
function T({ name: t, value: i = [], label: d, onChange: r, required: m, description: u, prefix: l, suffix: c, ...f }) {
|
|
8
|
+
const s = E();
|
|
9
|
+
return I(() => {
|
|
10
|
+
const o = new v(s.current, {
|
|
11
|
+
delimiter: ",",
|
|
12
|
+
editItems: !0,
|
|
13
|
+
removeItemButton: !0
|
|
14
|
+
});
|
|
15
|
+
return o.setValue([].concat(i, [])), o.passedElement.element.addEventListener("addItem", (n) => {
|
|
16
|
+
r && r(t, y(i.concat(n.detail.value)));
|
|
17
|
+
}), o.passedElement.element.addEventListener("removeItem", (n) => {
|
|
18
|
+
r && r(
|
|
19
|
+
t,
|
|
20
|
+
i.filter((a) => a !== n.detail.value)
|
|
21
|
+
);
|
|
22
|
+
}), () => {
|
|
23
|
+
o.destroy();
|
|
24
|
+
};
|
|
25
|
+
}, []), /* @__PURE__ */ p(x, { name: t, label: d, required: m, description: u, prefix: l, suffix: c, children: /* @__PURE__ */ p("input", { ref: s, type: "text", ...f, id: t, required: m }) });
|
|
26
|
+
}
|
|
27
|
+
T.propTypes = {
|
|
28
|
+
label: e.string,
|
|
29
|
+
name: e.string.isRequired,
|
|
30
|
+
value: e.array,
|
|
31
|
+
required: e.bool,
|
|
32
|
+
onChange: e.func
|
|
33
|
+
};
|
|
34
|
+
export {
|
|
35
|
+
T as InputTags
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=inputTags.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inputTags.component.js","sources":["../../../src/components/input-tags/inputTags.component.tsx"],"sourcesContent":["import Choices from \"@formio/choices.js\";\nimport uniq from \"lodash/uniq\";\nimport PropTypes from \"prop-types\";\nimport { useEffect, useRef } from \"react\";\n\nimport { FormControl, FormControlProps } from \"../form-control/formControl.component\";\n\nexport interface InputTagsProps<T = any> extends Omit<FormControlProps, \"description\" | \"prefix\" | \"suffix\"> {\n value?: T;\n onChange?: (name: string, value: T) => void;\n placeholder?: string;\n\n [key: string]: any;\n}\n\nexport function InputTags({ name, value = [], label, onChange, required, description, prefix, suffix, ...props }: InputTagsProps) {\n const ref: any = useRef();\n\n useEffect(() => {\n const instance = new Choices(ref.current, {\n delimiter: \",\",\n editItems: true,\n removeItemButton: true\n });\n\n instance.setValue([].concat(value, []));\n\n instance.passedElement.element.addEventListener(\"addItem\", (event: any) => {\n onChange && onChange(name, uniq(value.concat(event.detail.value)));\n });\n\n instance.passedElement.element.addEventListener(\"removeItem\", (event: any) => {\n onChange &&\n onChange(\n name,\n value.filter((v: string) => v !== event.detail.value)\n );\n });\n\n return () => {\n instance.destroy();\n };\n }, []);\n\n return (\n <FormControl name={name} label={label} required={required} description={description} prefix={prefix} suffix={suffix}>\n <input ref={ref} type='text' {...props} id={name} required={required} />\n </FormControl>\n );\n}\n\nInputTags.propTypes = {\n label: PropTypes.string,\n name: PropTypes.string.isRequired,\n value: PropTypes.array,\n required: PropTypes.bool,\n onChange: PropTypes.func\n};\n"],"names":["InputTags","name","value","label","onChange","required","description","prefix","suffix","props","ref","useRef","useEffect","instance","Choices","event","uniq","v","FormControl","jsx","PropTypes"],"mappings":";;;;;;AAeO,SAASA,EAAU,EAAE,MAAAC,GAAM,OAAAC,IAAQ,CAAA,GAAI,OAAAC,GAAO,UAAAC,GAAU,UAAAC,GAAU,aAAAC,GAAa,QAAAC,GAAQ,QAAAC,GAAQ,GAAGC,KAAyB;AAChI,QAAMC,IAAWC,EAAO;AAExB,SAAAC,EAAU,MAAM;AACd,UAAMC,IAAW,IAAIC,EAAQJ,EAAI,SAAS;AAAA,MACxC,WAAW;AAAA,MACX,WAAW;AAAA,MACX,kBAAkB;AAAA,IAAA,CACnB;AAED,WAAAG,EAAS,SAAS,CAAC,EAAE,OAAOX,GAAO,CAAE,CAAA,CAAC,GAEtCW,EAAS,cAAc,QAAQ,iBAAiB,WAAW,CAACE,MAAe;AAC7D,MAAAX,KAAAA,EAASH,GAAMe,EAAKd,EAAM,OAAOa,EAAM,OAAO,KAAK,CAAC,CAAC;AAAA,IAAA,CAClE,GAEDF,EAAS,cAAc,QAAQ,iBAAiB,cAAc,CAACE,MAAe;AAE1E,MAAAX,KAAAA;AAAA,QACEH;AAAA,QACAC,EAAM,OAAO,CAACe,MAAcA,MAAMF,EAAM,OAAO,KAAK;AAAA,MACtD;AAAA,IAAA,CACH,GAEM,MAAM;AACX,MAAAF,EAAS,QAAQ;AAAA,IACnB;AAAA,EACF,GAAG,EAAE,qBAGFK,GAAY,EAAA,MAAAjB,GAAY,OAAAE,GAAc,UAAAE,GAAoB,aAAAC,GAA0B,QAAAC,GAAgB,QAAAC,GACnG,UAAA,gBAAAW,EAAC,SAAM,EAAA,KAAAT,GAAU,MAAK,QAAQ,GAAGD,GAAO,IAAIR,GAAM,UAAAI,EAAoB,CAAA,GACxE;AAEJ;AAEAL,EAAU,YAAY;AAAA,EACpB,OAAOoB,EAAU;AAAA,EACjB,MAAMA,EAAU,OAAO;AAAA,EACvB,OAAOA,EAAU;AAAA,EACjB,UAAUA,EAAU;AAAA,EACpB,UAAUA,EAAU;AACtB;"}
|
|
@@ -1,28 +1,27 @@
|
|
|
1
|
-
import PropTypes from
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
export declare
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
1
|
+
import { default as PropTypes } from 'prop-types';
|
|
2
|
+
import { FormControlProps } from '../form-control/formControl.component';
|
|
3
|
+
export interface InputTextProps<T = any> extends FormControlProps {
|
|
4
|
+
type?: string;
|
|
5
|
+
value?: T;
|
|
6
|
+
/**
|
|
7
|
+
* The input size
|
|
8
|
+
*/
|
|
9
|
+
size?: string;
|
|
10
|
+
onChange?: (name: string, value: T) => void;
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
}
|
|
14
|
+
export declare function InputText<T = any>({ name, value, label, onChange, required, size, type, prefix, suffix, description, className, placeholder, ...props }: InputTextProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare namespace InputText {
|
|
16
|
+
var propTypes: {
|
|
17
|
+
label: PropTypes.Requireable<string>;
|
|
18
|
+
type: PropTypes.Requireable<string>;
|
|
19
|
+
name: PropTypes.Validator<string>;
|
|
20
|
+
value: PropTypes.Requireable<any>;
|
|
21
|
+
size: PropTypes.Requireable<string>;
|
|
22
|
+
required: PropTypes.Requireable<boolean>;
|
|
23
|
+
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
24
|
+
prefix: PropTypes.Requireable<any>;
|
|
25
|
+
suffix: PropTypes.Requireable<any>;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { c as b } from "../../chunks/index.js";
|
|
3
|
+
import t from "prop-types";
|
|
4
|
+
import { useState as h, useMemo as v, useEffect as E } from "react";
|
|
5
|
+
import { callLast as $ } from "../../utils/callLast.js";
|
|
6
|
+
import { getEventValue as j } from "../../utils/getEventValue.js";
|
|
7
|
+
import { FormControl as q } from "../form-control/formControl.component.js";
|
|
8
|
+
function C({
|
|
9
|
+
name: o,
|
|
10
|
+
value: r,
|
|
11
|
+
label: l,
|
|
12
|
+
onChange: e,
|
|
13
|
+
required: s,
|
|
14
|
+
size: n,
|
|
15
|
+
type: f,
|
|
16
|
+
prefix: u,
|
|
17
|
+
suffix: c,
|
|
18
|
+
description: y,
|
|
19
|
+
className: g,
|
|
20
|
+
placeholder: x,
|
|
21
|
+
...d
|
|
22
|
+
}) {
|
|
23
|
+
const [T, i] = h(r), p = v(() => e && $(e, 300), [e]);
|
|
24
|
+
return E(() => {
|
|
25
|
+
i(r);
|
|
26
|
+
}, [r]), /* @__PURE__ */ m(
|
|
27
|
+
q,
|
|
28
|
+
{
|
|
29
|
+
name: o,
|
|
30
|
+
label: l,
|
|
31
|
+
required: s,
|
|
32
|
+
description: y,
|
|
33
|
+
prefix: u,
|
|
34
|
+
suffix: c,
|
|
35
|
+
className: g,
|
|
36
|
+
children: /* @__PURE__ */ m(
|
|
37
|
+
"input",
|
|
38
|
+
{
|
|
39
|
+
type: f || "text",
|
|
40
|
+
...d,
|
|
41
|
+
"data-testid": `input_${o}`,
|
|
42
|
+
className: b("form-control", n && `form-control-${n}`),
|
|
43
|
+
id: o,
|
|
44
|
+
required: s,
|
|
45
|
+
value: T || "",
|
|
46
|
+
placeholder: x,
|
|
47
|
+
onChange: (V) => {
|
|
48
|
+
const a = j(V);
|
|
49
|
+
return i(a), p && p(o, a);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
)
|
|
53
|
+
}
|
|
54
|
+
);
|
|
55
|
+
}
|
|
56
|
+
C.propTypes = {
|
|
57
|
+
label: t.string,
|
|
58
|
+
type: t.string,
|
|
59
|
+
name: t.string.isRequired,
|
|
60
|
+
value: t.any,
|
|
61
|
+
size: t.string,
|
|
62
|
+
required: t.bool,
|
|
63
|
+
onChange: t.func,
|
|
64
|
+
prefix: t.any,
|
|
65
|
+
suffix: t.any
|
|
66
|
+
};
|
|
67
|
+
export {
|
|
68
|
+
C as InputText
|
|
69
|
+
};
|
|
70
|
+
//# sourceMappingURL=inputText.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inputText.component.js","sources":["../../../src/components/input-text/inputText.component.tsx"],"sourcesContent":["import classnames from \"classnames\";\nimport PropTypes from \"prop-types\";\nimport { useEffect, useMemo, useState } from \"react\";\n\nimport { callLast } from \"../../utils/callLast\";\nimport { getEventValue } from \"../../utils/getEventValue\";\nimport { FormControl, FormControlProps } from \"../form-control/formControl.component\";\n\nexport interface InputTextProps<T = any> extends FormControlProps {\n type?: string;\n value?: T;\n /**\n * The input size\n */\n size?: string;\n onChange?: (name: string, value: T) => void;\n placeholder?: string;\n\n [key: string]: any;\n}\n\nexport function InputText<T = any>({\n name,\n value,\n label,\n onChange,\n required,\n size,\n type,\n prefix,\n suffix,\n description,\n className,\n placeholder,\n ...props\n}: InputTextProps<T>) {\n const [localValue, setValue] = useState(value);\n\n const change = useMemo(() => onChange && callLast(onChange, 300), [onChange]);\n\n useEffect(() => {\n setValue(value);\n }, [value]);\n\n return (\n <FormControl\n name={name}\n label={label}\n required={required}\n description={description}\n prefix={prefix}\n suffix={suffix}\n className={className}\n >\n <input\n type={type || \"text\"}\n {...props}\n data-testid={`input_${name}`}\n className={classnames(\"form-control\", size && `form-control-${size}`)}\n id={name}\n required={required}\n value={(localValue || \"\") as any}\n placeholder={placeholder}\n onChange={(event) => {\n const value = getEventValue(event);\n setValue(value);\n\n return change && change(name, value);\n }}\n />\n </FormControl>\n );\n}\n\nInputText.propTypes = {\n label: PropTypes.string,\n type: PropTypes.string,\n name: PropTypes.string.isRequired,\n value: PropTypes.any,\n size: PropTypes.string,\n required: PropTypes.bool,\n onChange: PropTypes.func,\n prefix: PropTypes.any,\n suffix: PropTypes.any\n};\n"],"names":["InputText","name","value","label","onChange","required","size","type","prefix","suffix","description","className","placeholder","props","localValue","setValue","useState","change","useMemo","callLast","useEffect","jsx","FormControl","classnames","event","getEventValue","PropTypes"],"mappings":";;;;;;;AAqBO,SAASA,EAAmB;AAAA,EACjC,MAAAC;AAAA,EACA,OAAAC;AAAA,EACA,OAAAC;AAAA,EACA,UAAAC;AAAA,EACA,UAAAC;AAAA,EACA,MAAAC;AAAA,EACA,MAAAC;AAAA,EACA,QAAAC;AAAA,EACA,QAAAC;AAAA,EACA,aAAAC;AAAA,EACA,WAAAC;AAAA,EACA,aAAAC;AAAA,EACA,GAAGC;AACL,GAAsB;AACpB,QAAM,CAACC,GAAYC,CAAQ,IAAIC,EAASd,CAAK,GAEvCe,IAASC,EAAQ,MAAMd,KAAYe,EAASf,GAAU,GAAG,GAAG,CAACA,CAAQ,CAAC;AAE5E,SAAAgB,EAAU,MAAM;AACd,IAAAL,EAASb,CAAK;AAAA,EAAA,GACb,CAACA,CAAK,CAAC,GAGR,gBAAAmB;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,MAAArB;AAAA,MACA,OAAAE;AAAA,MACA,UAAAE;AAAA,MACA,aAAAK;AAAA,MACA,QAAAF;AAAA,MACA,QAAAC;AAAA,MACA,WAAAE;AAAA,MAEA,UAAA,gBAAAU;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,MAAMd,KAAQ;AAAA,UACb,GAAGM;AAAA,UACJ,eAAa,SAASZ,CAAI;AAAA,UAC1B,WAAWsB,EAAW,gBAAgBjB,KAAQ,gBAAgBA,CAAI,EAAE;AAAA,UACpE,IAAIL;AAAA,UACJ,UAAAI;AAAA,UACA,OAAQS,KAAc;AAAA,UACtB,aAAAF;AAAA,UACA,UAAU,CAACY,MAAU;AACbtB,kBAAAA,IAAQuB,EAAcD,CAAK;AACjC,mBAAAT,EAASb,CAAK,GAEPe,KAAUA,EAAOhB,GAAMC,CAAK;AAAA,UAAA;AAAA,QACrC;AAAA,MAAA;AAAA,IACF;AAAA,EACF;AAEJ;AAEAF,EAAU,YAAY;AAAA,EACpB,OAAO0B,EAAU;AAAA,EACjB,MAAMA,EAAU;AAAA,EAChB,MAAMA,EAAU,OAAO;AAAA,EACvB,OAAOA,EAAU;AAAA,EACjB,MAAMA,EAAU;AAAA,EAChB,UAAUA,EAAU;AAAA,EACpB,UAAUA,EAAU;AAAA,EACpB,QAAQA,EAAU;AAAA,EAClB,QAAQA,EAAU;AACpB;"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import PropTypes from
|
|
2
|
-
import
|
|
3
|
-
export interface LoaderProps {
|
|
4
|
-
isActive?: boolean;
|
|
5
|
-
color?: string;
|
|
6
|
-
icon?: string;
|
|
7
|
-
className?: string;
|
|
8
|
-
}
|
|
9
|
-
export declare function Loader({ isActive, color, icon, className }: PropsWithChildren<LoaderProps>):
|
|
10
|
-
export declare namespace Loader {
|
|
11
|
-
var propTypes: {
|
|
12
|
-
isActive: PropTypes.Requireable<boolean>;
|
|
13
|
-
icon: PropTypes.Requireable<string>;
|
|
14
|
-
color: PropTypes.Requireable<string>;
|
|
15
|
-
className: PropTypes.Requireable<string>;
|
|
16
|
-
};
|
|
17
|
-
}
|
|
1
|
+
import { default as PropTypes } from 'prop-types';
|
|
2
|
+
import { PropsWithChildren } from 'react';
|
|
3
|
+
export interface LoaderProps {
|
|
4
|
+
isActive?: boolean;
|
|
5
|
+
color?: string;
|
|
6
|
+
icon?: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function Loader({ isActive, color, icon, className }: PropsWithChildren<LoaderProps>): import("react/jsx-runtime").JSX.Element | null;
|
|
10
|
+
export declare namespace Loader {
|
|
11
|
+
var propTypes: {
|
|
12
|
+
isActive: PropTypes.Requireable<boolean>;
|
|
13
|
+
icon: PropTypes.Requireable<string>;
|
|
14
|
+
color: PropTypes.Requireable<string>;
|
|
15
|
+
className: PropTypes.Requireable<string>;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { c as a } from "../../chunks/index.js";
|
|
3
|
+
import t from "prop-types";
|
|
4
|
+
import { iconClass as c } from "../../utils/iconClass.js";
|
|
5
|
+
function l({ isActive: o, color: i = "blue", icon: r = "radio-circle", className: s = "" }) {
|
|
6
|
+
return o ? /* @__PURE__ */ e(
|
|
7
|
+
"div",
|
|
8
|
+
{
|
|
9
|
+
className: a(
|
|
10
|
+
"opacity-85 z-20 flex items-center justify-center p-5 absolute top-0 right-0 left-0 bottom-0 bg-white",
|
|
11
|
+
s
|
|
12
|
+
),
|
|
13
|
+
children: /* @__PURE__ */ e("span", { "data-testid": `icon_${r}`, color: i, className: `text-11xl ${c(void 0, r, !0)}` })
|
|
14
|
+
}
|
|
15
|
+
) : null;
|
|
16
|
+
}
|
|
17
|
+
l.propTypes = {
|
|
18
|
+
isActive: t.bool,
|
|
19
|
+
icon: t.string,
|
|
20
|
+
color: t.string,
|
|
21
|
+
className: t.string
|
|
22
|
+
};
|
|
23
|
+
export {
|
|
24
|
+
l as Loader
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=loader.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loader.component.js","sources":["../../../src/components/loader/loader.component.tsx"],"sourcesContent":["import classnames from \"classnames\";\nimport PropTypes from \"prop-types\";\nimport { PropsWithChildren } from \"react\";\n\nimport { iconClass } from \"../../utils/iconClass\";\n\nexport interface LoaderProps {\n isActive?: boolean;\n color?: string;\n icon?: string;\n className?: string;\n}\n\nexport function Loader({ isActive, color = \"blue\", icon = \"radio-circle\", className = \"\" }: PropsWithChildren<LoaderProps>) {\n if (isActive) {\n return (\n <div\n className={classnames(\n \"opacity-85 z-20 flex items-center justify-center p-5 absolute top-0 right-0 left-0 bottom-0 bg-white\",\n className\n )}\n >\n <span data-testid={`icon_${icon}`} color={color} className={`text-11xl ${iconClass(undefined, icon, true)}`} />\n </div>\n );\n }\n return null;\n}\n\nLoader.propTypes = {\n isActive: PropTypes.bool,\n icon: PropTypes.string,\n color: PropTypes.string,\n className: PropTypes.string\n};\n"],"names":["Loader","isActive","color","icon","className","jsx","classnames","iconClass","PropTypes"],"mappings":";;;;AAagB,SAAAA,EAAO,EAAE,UAAAC,GAAU,OAAAC,IAAQ,QAAQ,MAAAC,IAAO,gBAAgB,WAAAC,IAAY,MAAsC;AAC1H,SAAIH,IAEA,gBAAAI;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC;AAAA,QACT;AAAA,QACAF;AAAA,MACF;AAAA,MAEA,UAAC,gBAAAC,EAAA,QAAA,EAAK,eAAa,QAAQF,CAAI,IAAI,OAAAD,GAAc,WAAW,aAAaK,EAAU,QAAWJ,GAAM,EAAI,CAAC,GAAI,CAAA;AAAA,IAAA;AAAA,EAC/G,IAGG;AACT;AAEAH,EAAO,YAAY;AAAA,EACjB,UAAUQ,EAAU;AAAA,EACpB,MAAMA,EAAU;AAAA,EAChB,OAAOA,EAAU;AAAA,EACjB,WAAWA,EAAU;AACvB;"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
export declare function useModal(): {
|
|
3
|
-
show: boolean;
|
|
4
|
-
setShowModal:
|
|
5
|
-
openModal(): void;
|
|
6
|
-
closeModal(): void;
|
|
7
|
-
};
|
|
8
|
-
export interface ModalProps extends Record<string, any> {
|
|
9
|
-
show?: boolean;
|
|
10
|
-
closeModal?: () => void;
|
|
11
|
-
onClose?: () => void;
|
|
12
|
-
footer?: any;
|
|
13
|
-
title?: string;
|
|
14
|
-
}
|
|
15
|
-
export declare function Modal({ show, children, closeModal, onClose, title, footer: ModalFooter, style, className, ...props }: PropsWithChildren<ModalProps>):
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
export declare function useModal(): {
|
|
3
|
+
show: boolean;
|
|
4
|
+
setShowModal: import('react').Dispatch<import('react').SetStateAction<boolean>>;
|
|
5
|
+
openModal(): void;
|
|
6
|
+
closeModal(): void;
|
|
7
|
+
};
|
|
8
|
+
export interface ModalProps extends Record<string, any> {
|
|
9
|
+
show?: boolean;
|
|
10
|
+
closeModal?: () => void;
|
|
11
|
+
onClose?: () => void;
|
|
12
|
+
footer?: any;
|
|
13
|
+
title?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare function Modal({ show, children, closeModal, onClose, title, footer: ModalFooter, style, className, ...props }: PropsWithChildren<ModalProps>): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { jsxs as r, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import u from "lodash";
|
|
3
|
+
import { useState as h, useRef as g, useEffect as C } from "react";
|
|
4
|
+
function j() {
|
|
5
|
+
const [e, t] = h(!1);
|
|
6
|
+
return {
|
|
7
|
+
show: e,
|
|
8
|
+
setShowModal: t,
|
|
9
|
+
openModal() {
|
|
10
|
+
t(!0);
|
|
11
|
+
},
|
|
12
|
+
closeModal() {
|
|
13
|
+
t(!1);
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
function S({
|
|
18
|
+
show: e,
|
|
19
|
+
children: t,
|
|
20
|
+
closeModal: s = u,
|
|
21
|
+
onClose: p = u,
|
|
22
|
+
title: d,
|
|
23
|
+
footer: n,
|
|
24
|
+
style: v,
|
|
25
|
+
className: N = "",
|
|
26
|
+
...b
|
|
27
|
+
}) {
|
|
28
|
+
const a = g(), l = g(), [x, c] = h(), i = () => {
|
|
29
|
+
s(), p();
|
|
30
|
+
};
|
|
31
|
+
return C(() => {
|
|
32
|
+
var m, f;
|
|
33
|
+
if (a.current || l.current) {
|
|
34
|
+
const y = (((m = a == null ? void 0 : a.current) == null ? void 0 : m.offsetHeight) || 0) + (((f = l == null ? void 0 : l.current) == null ? void 0 : f.offsetHeight) || 0);
|
|
35
|
+
c(`calc(85vh - ${y}px)`);
|
|
36
|
+
} else
|
|
37
|
+
c("auto");
|
|
38
|
+
}, [e]), e ? /* @__PURE__ */ r("div", { role: "dialog", className: `formio-dialog formio-dialog-theme-default ${N}`, children: [
|
|
39
|
+
/* @__PURE__ */ o("div", { className: "formio-dialog-overlay", onClick: i }),
|
|
40
|
+
/* @__PURE__ */ r("div", { style: v, className: "formio-dialog-content", children: [
|
|
41
|
+
/* @__PURE__ */ r("div", { className: "formio-dialog-wrapper", children: [
|
|
42
|
+
d ? /* @__PURE__ */ o("div", { className: "formio-dialog-title", ref: a, "data-testid": "modalTitle", children: d }) : null,
|
|
43
|
+
/* @__PURE__ */ o("div", { className: "formio-dialog-body", style: { maxHeight: x }, "data-testid": "modalBody", children: e && t }),
|
|
44
|
+
n ? /* @__PURE__ */ o("div", { className: "formio-dialog-footer", ref: l, "data-testid": "modalFooter", children: /* @__PURE__ */ o(n, { ...b, closeModal: s, onClose: i }) }) : null
|
|
45
|
+
] }),
|
|
46
|
+
/* @__PURE__ */ o(
|
|
47
|
+
"button",
|
|
48
|
+
{
|
|
49
|
+
className: "formio-dialog-close float-right btn btn-secondary btn-sm",
|
|
50
|
+
"aria-label": "close",
|
|
51
|
+
"data-testid": "closeModal",
|
|
52
|
+
onClick: i
|
|
53
|
+
}
|
|
54
|
+
)
|
|
55
|
+
] })
|
|
56
|
+
] }) : null;
|
|
57
|
+
}
|
|
58
|
+
export {
|
|
59
|
+
S as Modal,
|
|
60
|
+
j as useModal
|
|
61
|
+
};
|
|
62
|
+
//# sourceMappingURL=modal.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modal.component.js","sources":["../../../src/components/modal/modal.component.tsx"],"sourcesContent":["/* eslint-disable jsx-a11y/no-static-element-interactions */\n/* eslint-disable jsx-a11y/click-events-have-key-events */\nimport noop from \"lodash\";\nimport { PropsWithChildren, useEffect, useRef, useState } from \"react\";\n\nexport function useModal() {\n const [show, setShowModal] = useState(false);\n\n return {\n show,\n setShowModal,\n openModal() {\n setShowModal(true);\n },\n closeModal() {\n setShowModal(false);\n }\n };\n}\n\nexport interface ModalProps extends Record<string, any> {\n show?: boolean;\n closeModal?: () => void;\n onClose?: () => void;\n footer?: any;\n title?: string;\n}\n\nexport function Modal({\n show,\n children,\n closeModal = noop as any,\n onClose = noop as any,\n title,\n footer: ModalFooter,\n style,\n className = \"\",\n ...props\n}: PropsWithChildren<ModalProps>) {\n const titleRef: any = useRef<HTMLDivElement>();\n const footerRef: any = useRef<HTMLDivElement>();\n const [maxHeight, setMaxHeight] = useState<string>();\n\n const onClickClose = () => {\n closeModal();\n onClose();\n };\n\n useEffect(() => {\n if (titleRef.current || footerRef.current) {\n const height = (titleRef?.current?.offsetHeight || 0) + (footerRef?.current?.offsetHeight || 0);\n\n setMaxHeight(`calc(85vh - ${height}px)`);\n } else {\n setMaxHeight(\"auto\");\n }\n }, [show]);\n\n if (!show) {\n return null;\n }\n\n return (\n <div role={\"dialog\"} className={`formio-dialog formio-dialog-theme-default ${className}`}>\n <div className='formio-dialog-overlay' onClick={onClickClose} />\n <div style={style} className={\"formio-dialog-content\"}>\n <div className={\"formio-dialog-wrapper\"}>\n {title ? (\n <div className={\"formio-dialog-title\"} ref={titleRef} data-testid={\"modalTitle\"}>\n {title}\n </div>\n ) : null}\n\n <div className='formio-dialog-body' style={{ maxHeight }} data-testid={\"modalBody\"}>\n {show && children}\n </div>\n\n {ModalFooter ? (\n <div className={\"formio-dialog-footer\"} ref={footerRef} data-testid={\"modalFooter\"}>\n <ModalFooter {...props} closeModal={closeModal} onClose={onClickClose} />\n </div>\n ) : null}\n </div>\n <button\n className='formio-dialog-close float-right btn btn-secondary btn-sm'\n aria-label='close'\n data-testid={\"closeModal\"}\n onClick={onClickClose}\n />\n </div>\n </div>\n );\n}\n"],"names":["useModal","show","setShowModal","useState","Modal","children","closeModal","noop","onClose","title","ModalFooter","style","className","props","titleRef","useRef","footerRef","maxHeight","setMaxHeight","onClickClose","useEffect","height","_a","_b","jsx","jsxs"],"mappings":";;;AAKO,SAASA,IAAW;AACzB,QAAM,CAACC,GAAMC,CAAY,IAAIC,EAAS,EAAK;AAEpC,SAAA;AAAA,IACL,MAAAF;AAAA,IACA,cAAAC;AAAA,IACA,YAAY;AACV,MAAAA,EAAa,EAAI;AAAA,IACnB;AAAA,IACA,aAAa;AACX,MAAAA,EAAa,EAAK;AAAA,IAAA;AAAA,EAEtB;AACF;AAUO,SAASE,EAAM;AAAA,EACpB,MAAAH;AAAA,EACA,UAAAI;AAAA,EACA,YAAAC,IAAaC;AAAA,EACb,SAAAC,IAAUD;AAAA,EACV,OAAAE;AAAA,EACA,QAAQC;AAAA,EACR,OAAAC;AAAA,EACA,WAAAC,IAAY;AAAA,EACZ,GAAGC;AACL,GAAkC;AAChC,QAAMC,IAAgBC,EAAuB,GACvCC,IAAiBD,EAAuB,GACxC,CAACE,GAAWC,CAAY,IAAIf,EAAiB,GAE7CgB,IAAe,MAAM;AACd,IAAAb,EAAA,GACHE,EAAA;AAAA,EACV;AAYA,SAVAY,EAAU,MAAM;;AACV,QAAAN,EAAS,WAAWE,EAAU,SAAS;AACzC,YAAMK,OAAUC,IAAAR,KAAA,gBAAAA,EAAU,YAAV,gBAAAQ,EAAmB,iBAAgB,QAAMC,IAAAP,KAAA,gBAAAA,EAAW,YAAX,gBAAAO,EAAoB,iBAAgB;AAEhF,MAAAL,EAAA,eAAeG,CAAM,KAAK;AAAA,IAAA;AAEvC,MAAAH,EAAa,MAAM;AAAA,EACrB,GACC,CAACjB,CAAI,CAAC,GAEJA,sBAKF,OAAI,EAAA,MAAM,UAAU,WAAW,6CAA6CW,CAAS,IACpF,UAAA;AAAA,IAAA,gBAAAY,EAAC,OAAI,EAAA,WAAU,yBAAwB,SAASL,GAAc;AAAA,IAC7D,gBAAAM,EAAA,OAAA,EAAI,OAAAd,GAAc,WAAW,yBAC5B,UAAA;AAAA,MAAC,gBAAAc,EAAA,OAAA,EAAI,WAAW,yBACb,UAAA;AAAA,QACChB,IAAA,gBAAAe,EAAC,SAAI,WAAW,uBAAuB,KAAKV,GAAU,eAAa,cAChE,UAAAL,EAAA,CACH,IACE;AAAA,QAEJ,gBAAAe,EAAC,OAAI,EAAA,WAAU,sBAAqB,OAAO,EAAE,WAAAP,EAAa,GAAA,eAAa,aACpE,UAAAhB,KAAQI,EACX,CAAA;AAAA,QAECK,IACE,gBAAAc,EAAA,OAAA,EAAI,WAAW,wBAAwB,KAAKR,GAAW,eAAa,eACnE,UAAA,gBAAAQ,EAACd,KAAa,GAAGG,GAAO,YAAAP,GAAwB,SAASa,GAAc,GACzE,IACE;AAAA,MAAA,GACN;AAAA,MACA,gBAAAK;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,WAAU;AAAA,UACV,cAAW;AAAA,UACX,eAAa;AAAA,UACb,SAASL;AAAA,QAAA;AAAA,MAAA;AAAA,IACX,EACF,CAAA;AAAA,EAAA,GACF,IA/BO;AAiCX;"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ModalProps } from
|
|
3
|
-
export interface RemoveModalProps extends ModalProps {
|
|
4
|
-
valueToCompare: string;
|
|
5
|
-
itemType?: string;
|
|
6
|
-
i18n?: (f: string) => string;
|
|
7
|
-
maxWidth?: string;
|
|
8
|
-
}
|
|
9
|
-
export declare function RemoveModal({ maxWidth, children, ...props }: PropsWithChildren<RemoveModalProps>):
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { ModalProps } from './modal.component';
|
|
3
|
+
export interface RemoveModalProps extends ModalProps {
|
|
4
|
+
valueToCompare: string;
|
|
5
|
+
itemType?: string;
|
|
6
|
+
i18n?: (f: string) => string;
|
|
7
|
+
maxWidth?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function RemoveModal({ maxWidth, children, ...props }: PropsWithChildren<RemoveModalProps>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { jsx as n, jsxs as t } from "react/jsx-runtime";
|
|
2
|
+
import { c as d } from "../../chunks/index.js";
|
|
3
|
+
import { useState as h } from "react";
|
|
4
|
+
import { iconClass as f } from "../../utils/iconClass.js";
|
|
5
|
+
import { InputText as b } from "../input-text/inputText.component.js";
|
|
6
|
+
import { Modal as v } from "./modal.component.js";
|
|
7
|
+
function x({ value: i, valueToCompare: r, onSubmit: e, onClose: o, i18n: a = (m) => m }) {
|
|
8
|
+
return /* @__PURE__ */ t("div", { className: "flex items-center justify-center bg-white p-2", children: [
|
|
9
|
+
/* @__PURE__ */ n("button", { "data-testid": "customCloseModal", className: "btn btn-outline-dark mx-2", onClick: o, children: a("Cancel") }),
|
|
10
|
+
/* @__PURE__ */ t(
|
|
11
|
+
"button",
|
|
12
|
+
{
|
|
13
|
+
disabled: r !== i,
|
|
14
|
+
"data-testid": "customSubmitModal",
|
|
15
|
+
className: "btn btn-danger mx-2",
|
|
16
|
+
onClick: (m) => {
|
|
17
|
+
r === i && e(m);
|
|
18
|
+
},
|
|
19
|
+
children: [
|
|
20
|
+
/* @__PURE__ */ n("i", { className: d(f(void 0, "trash"), "mr-2") }),
|
|
21
|
+
a("Remove")
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
)
|
|
25
|
+
] });
|
|
26
|
+
}
|
|
27
|
+
function T({ maxWidth: i = "300px", children: r, ...e }) {
|
|
28
|
+
var s, l;
|
|
29
|
+
const { i18n: o = (c) => c } = e, [a, m] = h();
|
|
30
|
+
return /* @__PURE__ */ n(
|
|
31
|
+
v,
|
|
32
|
+
{
|
|
33
|
+
...e,
|
|
34
|
+
className: d(e.className, "formio-dialog-theme-remove"),
|
|
35
|
+
style: { maxWidth: i },
|
|
36
|
+
title: `Drop ${(s = e.itemType) == null ? void 0 : s.toLowerCase()}`,
|
|
37
|
+
value: a,
|
|
38
|
+
footer: x,
|
|
39
|
+
children: /* @__PURE__ */ t("div", { className: "px-4 pt-3 pb-5", children: [
|
|
40
|
+
/* @__PURE__ */ t("div", { className: "pb-1", children: [
|
|
41
|
+
r,
|
|
42
|
+
o("To drop"),
|
|
43
|
+
" ",
|
|
44
|
+
/* @__PURE__ */ n("strong", { children: e.valueToCompare }),
|
|
45
|
+
", ",
|
|
46
|
+
o("type the"),
|
|
47
|
+
" ",
|
|
48
|
+
/* @__PURE__ */ t("strong", { children: [
|
|
49
|
+
'"',
|
|
50
|
+
(l = e.itemType) == null ? void 0 : l.toLowerCase(),
|
|
51
|
+
'"'
|
|
52
|
+
] }),
|
|
53
|
+
" ",
|
|
54
|
+
o("name"),
|
|
55
|
+
" ",
|
|
56
|
+
/* @__PURE__ */ t("strong", { children: [
|
|
57
|
+
'"',
|
|
58
|
+
e.valueToCompare,
|
|
59
|
+
'"'
|
|
60
|
+
] }),
|
|
61
|
+
"."
|
|
62
|
+
] }),
|
|
63
|
+
/* @__PURE__ */ n(b, { name: "remove", value: a, onChange: (c, u) => m(u) })
|
|
64
|
+
] })
|
|
65
|
+
}
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
export {
|
|
69
|
+
T as RemoveModal
|
|
70
|
+
};
|
|
71
|
+
//# sourceMappingURL=removeModal.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"removeModal.component.js","sources":["../../../src/components/modal/removeModal.component.tsx"],"sourcesContent":["import classnames from \"classnames\";\nimport { PropsWithChildren, useState } from \"react\";\n\nimport { iconClass } from \"../../utils/iconClass\";\nimport { InputText } from \"../input-text/inputText.component\";\nimport { Modal, ModalProps } from \"./modal.component\";\n\nfunction RemoveModalFooter({ value, valueToCompare, onSubmit, onClose, i18n = (f: string) => f }: ModalProps) {\n return (\n <div className={\"flex items-center justify-center bg-white p-2\"}>\n <button data-testid='customCloseModal' className={\"btn btn-outline-dark mx-2\"} onClick={onClose}>\n {i18n(\"Cancel\")}\n </button>\n <button\n disabled={valueToCompare !== value}\n data-testid='customSubmitModal'\n className={\"btn btn-danger mx-2\"}\n onClick={(e) => {\n if (valueToCompare === value) {\n onSubmit(e);\n }\n }}\n >\n <i className={classnames(iconClass(undefined, \"trash\"), \"mr-2\")} />\n {i18n(\"Remove\")}\n </button>\n </div>\n );\n}\n\nexport interface RemoveModalProps extends ModalProps {\n valueToCompare: string;\n itemType?: string;\n i18n?: (f: string) => string;\n maxWidth?: string;\n}\n\nexport function RemoveModal({ maxWidth = \"300px\", children, ...props }: PropsWithChildren<RemoveModalProps>) {\n const { i18n = (f) => f } = props;\n const [value, setValue] = useState();\n\n return (\n <Modal\n {...props}\n className={classnames(props.className, \"formio-dialog-theme-remove\")}\n style={{ maxWidth }}\n title={`Drop ${props.itemType?.toLowerCase()}`}\n value={value}\n footer={RemoveModalFooter}\n >\n <div className='px-4 pt-3 pb-5'>\n <div className='pb-1'>\n {children}\n {i18n(\"To drop\")} <strong>{props.valueToCompare}</strong>, \n {i18n(\"type the\")} \n <strong>"{props.itemType?.toLowerCase()}"</strong> \n {i18n(\"name\")} <strong>"{props.valueToCompare}"</strong>.\n </div>\n <InputText name='remove' value={value} onChange={(name, value) => setValue(value)} />\n </div>\n </Modal>\n );\n}\n"],"names":["RemoveModalFooter","value","valueToCompare","onSubmit","onClose","i18n","f","jsxs","jsx","e","classnames","iconClass","RemoveModal","maxWidth","children","props","setValue","useState","Modal","_a","_b","InputText","name"],"mappings":";;;;;;AAOA,SAASA,EAAkB,EAAE,OAAAC,GAAO,gBAAAC,GAAgB,UAAAC,GAAU,SAAAC,GAAS,MAAAC,IAAO,CAACC,MAAcA,KAAiB;AAE1G,SAAA,gBAAAC,EAAC,OAAI,EAAA,WAAW,iDACd,UAAA;AAAA,IAAC,gBAAAC,EAAA,UAAA,EAAO,eAAY,oBAAmB,WAAW,6BAA6B,SAASJ,GACrF,UAAKC,EAAA,QAAQ,EAChB,CAAA;AAAA,IACA,gBAAAE;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,UAAUL,MAAmBD;AAAA,QAC7B,eAAY;AAAA,QACZ,WAAW;AAAA,QACX,SAAS,CAACQ,MAAM;AACd,UAAIP,MAAmBD,KACrBE,EAASM,CAAC;AAAA,QAEd;AAAA,QAEA,UAAA;AAAA,UAAC,gBAAAD,EAAA,KAAA,EAAE,WAAWE,EAAWC,EAAU,QAAW,OAAO,GAAG,MAAM,GAAG;AAAA,UAChEN,EAAK,QAAQ;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAChB,GACF;AAEJ;AASO,SAASO,EAAY,EAAE,UAAAC,IAAW,SAAS,UAAAC,GAAU,GAAGC,KAA8C;;AAC3G,QAAM,EAAE,MAAAV,IAAO,CAACC,MAAMA,EAAM,IAAAS,GACtB,CAACd,GAAOe,CAAQ,IAAIC,EAAS;AAGjC,SAAA,gBAAAT;AAAA,IAACU;AAAA,IAAA;AAAA,MACE,GAAGH;AAAA,MACJ,WAAWL,EAAWK,EAAM,WAAW,4BAA4B;AAAA,MACnE,OAAO,EAAE,UAAAF,EAAS;AAAA,MAClB,OAAO,SAAQM,IAAAJ,EAAM,aAAN,gBAAAI,EAAgB,aAAa;AAAA,MAC5C,OAAAlB;AAAA,MACA,QAAQD;AAAA,MAER,UAAA,gBAAAO,EAAC,OAAI,EAAA,WAAU,kBACb,UAAA;AAAA,QAAC,gBAAAA,EAAA,OAAA,EAAI,WAAU,QACZ,UAAA;AAAA,UAAAO;AAAA,UACAT,EAAK,SAAS;AAAA,UAAE;AAAA,UAAC,gBAAAG,EAAC,UAAQ,EAAA,UAAAO,EAAM,eAAe,CAAA;AAAA,UAAS;AAAA,UACxDV,EAAK,UAAU;AAAA,UAAE;AAAA,4BACjB,UAAO,EAAA,UAAA;AAAA,YAAA;AAAA,aAAOe,IAAAL,EAAM,aAAN,gBAAAK,EAAgB;AAAA,YAAc;AAAA,UAAA,GAAM;AAAA,UAAS;AAAA,UAC3Df,EAAK,MAAM;AAAA,UAAE;AAAA,4BAAE,UAAO,EAAA,UAAA;AAAA,YAAA;AAAA,YAAOU,EAAM;AAAA,YAAe;AAAA,UAAA,GAAM;AAAA,UAAS;AAAA,QAAA,GACpE;AAAA,QACA,gBAAAP,EAACa,GAAU,EAAA,MAAK,UAAS,OAAApB,GAAc,UAAU,CAACqB,GAAMrB,MAAUe,EAASf,CAAK,EAAG,CAAA;AAAA,MAAA,EACrF,CAAA;AAAA,IAAA;AAAA,EACF;AAEJ;"}
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
export declare function Pagination(props: PaginationProps): React.JSX.Element;
|
|
1
|
+
export interface PaginationProps {
|
|
2
|
+
className?: string;
|
|
3
|
+
pageSizes?: number[];
|
|
4
|
+
gotoPage: any;
|
|
5
|
+
canPreviousPage: boolean;
|
|
6
|
+
previousPage: any;
|
|
7
|
+
nextPage: any;
|
|
8
|
+
canNextPage: boolean;
|
|
9
|
+
pageCount: number;
|
|
10
|
+
pageIndex: number;
|
|
11
|
+
pageOptions?: number[];
|
|
12
|
+
pageSize: number;
|
|
13
|
+
setPageSize: any;
|
|
14
|
+
totalLength?: number;
|
|
15
|
+
i18n?: (f: string) => string;
|
|
16
|
+
}
|
|
17
|
+
export declare function Pagination(props: PaginationProps): import("react/jsx-runtime").JSX.Element;
|