@tsed/react-formio 1.13.2 → 1.13.3
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/.eslintignore +13 -0
- package/.eslintrc.js +7 -0
- package/coverage.json +6 -0
- package/dist/components/form-control/formControl.component.d.ts +2 -2
- package/dist/components/form-control/formControl.component.spec.d.ts +1 -0
- package/dist/components/form-control/formControl.stories.d.ts +57 -0
- package/dist/components/index.d.ts +2 -2
- package/dist/components/table/components/defaultCellHeader.component.d.ts +1 -1
- package/dist/components/table/index.d.ts +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +7904 -7902
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +5506 -5500
- package/dist/index.modern.js.map +1 -1
- package/dist/stores/actions/index.d.ts +1 -1
- package/dist/stores/auth/index.d.ts +4 -4
- package/dist/stores/index.d.ts +2 -2
- package/jest.config.js +6 -1
- package/package.json +7 -4
- package/src/components/actions-table/actionsTable.component.spec.tsx +11 -11
- package/src/components/actions-table/actionsTable.component.tsx +8 -9
- package/src/components/actions-table/actionsTable.stories.tsx +1 -0
- package/src/components/alert/alert.component.spec.tsx +21 -19
- package/src/components/alert/alert.stories.tsx +1 -0
- package/src/components/card/card.component.spec.tsx +5 -4
- package/src/components/card/card.stories.tsx +1 -0
- package/src/components/form/form.component.spec.tsx +7 -6
- package/src/components/form/form.component.tsx +2 -1
- package/src/components/form/form.stories.tsx +60 -75
- package/src/components/form/useForm.hook.ts +13 -12
- package/src/components/form-access/formAccess.component.tsx +2 -1
- package/src/components/form-access/formAccess.schema.ts +1 -0
- package/src/components/form-access/formAccess.stories.tsx +1 -0
- package/src/components/form-access/formAccess.utils.ts +9 -8
- package/src/components/form-action/formAction.component.tsx +4 -3
- package/src/components/form-action/formAction.stories.tsx +225 -227
- package/src/components/form-builder/formBuilder.component.tsx +1 -0
- package/src/components/form-builder/formBuilder.stories.tsx +1 -0
- package/src/components/form-control/formControl.component.spec.tsx +76 -0
- package/src/components/form-control/formControl.component.tsx +15 -7
- package/src/components/form-control/formControl.stories.tsx +65 -0
- package/src/components/form-edit/formCtas.component.tsx +25 -26
- package/src/components/form-edit/formEdit.component.tsx +1 -0
- package/src/components/form-edit/formEdit.reducer.ts +1 -0
- package/src/components/form-edit/formEdit.stories.tsx +1 -0
- package/src/components/form-edit/formParameters.component.tsx +1 -0
- package/src/components/form-edit/useFormEdit.hook.ts +1 -0
- package/src/components/form-settings/formSettings.component.spec.tsx +7 -6
- package/src/components/form-settings/formSettings.component.tsx +12 -14
- package/src/components/form-settings/formSettings.stories.tsx +1 -0
- package/src/components/form-settings/formSettings.utils.ts +1 -0
- package/src/components/forms-table/components/formCell.component.tsx +1 -0
- package/src/components/forms-table/formsTable.component.tsx +23 -25
- package/src/components/forms-table/formsTable.stories.tsx +1 -0
- package/src/components/index.ts +2 -2
- package/src/components/input-tags/inputTags.component.tsx +5 -4
- package/src/components/input-tags/inputTags.stories.tsx +1 -0
- package/src/components/input-text/inputText.component.spec.tsx +12 -11
- package/src/components/input-text/inputText.component.tsx +1 -0
- package/src/components/input-text/inputText.stories.tsx +1 -0
- package/src/components/loader/loader.component.spec.tsx +6 -5
- package/src/components/loader/loader.component.tsx +1 -0
- package/src/components/loader/loader.stories.tsx +1 -0
- package/src/components/modal/modal.component.spec.tsx +36 -33
- package/src/components/modal/modal.component.tsx +1 -1
- package/src/components/modal/modal.stories.tsx +1 -0
- package/src/components/modal/removeModal.component.tsx +1 -0
- package/src/components/pagination/pagination.component.spec.tsx +24 -21
- package/src/components/pagination/pagination.component.tsx +1 -0
- package/src/components/pagination/pagination.stories.tsx +1 -0
- package/src/components/react-component/reactComponent.component.tsx +3 -2
- package/src/components/select/select.component.spec.tsx +17 -18
- package/src/components/select/select.component.tsx +1 -0
- package/src/components/select/select.stories.tsx +1 -0
- package/src/components/submissions-table/submissionsTable.component.tsx +6 -5
- package/src/components/submissions-table/submissionsTable.stories.tsx +1 -0
- package/src/components/table/components/defaultArrowSort.component.tsx +1 -0
- package/src/components/table/components/defaultCellHeader.component.tsx +1 -1
- package/src/components/table/components/defaultCellOperations.component.tsx +1 -0
- package/src/components/table/components/defaultOperationButton.component.tsx +1 -0
- package/src/components/table/filters/defaultColumnFilter.component.spec.tsx +5 -3
- package/src/components/table/filters/defaultColumnFilter.component.tsx +1 -0
- package/src/components/table/filters/selectColumnFilter.component.spec.tsx +9 -7
- package/src/components/table/filters/selectColumnFilter.component.tsx +1 -0
- package/src/components/table/index.ts +1 -1
- package/src/components/table/table.component.tsx +45 -58
- package/src/components/table/table.stories.tsx +2 -1
- package/src/components/table/utils/mapFormToColumns.tsx +2 -1
- package/src/components/table/utils/useOperations.hook.tsx +1 -0
- package/src/components/tabs/tabs.component.spec.tsx +6 -5
- package/src/components/tabs/tabs.component.stories.tsx +1 -0
- package/src/components/tabs/tabs.component.tsx +10 -4
- package/src/index.ts +3 -4
- package/src/interfaces/Operation.ts +1 -0
- package/src/stores/action/action.actions.spec.ts +1 -0
- package/src/stores/action/action.actions.ts +1 -0
- package/src/stores/action/action.reducers.ts +1 -1
- package/src/stores/action-info/action-info.actions.spec.ts +1 -0
- package/src/stores/action-info/action-info.actions.ts +2 -1
- package/src/stores/action-info/action-info.reducers.ts +2 -1
- package/src/stores/action-info/action-info.selectors.ts +2 -1
- package/src/stores/actions/actions.actions.spec.ts +1 -0
- package/src/stores/actions/actions.actions.ts +1 -0
- package/src/stores/actions/actions.reducers.ts +1 -0
- package/src/stores/actions/index.ts +1 -1
- package/src/stores/auth/auth.actions.ts +1 -0
- package/src/stores/auth/auth.reducers.ts +1 -0
- package/src/stores/auth/auth.selectors.ts +1 -0
- package/src/stores/auth/auth.utils.tsx +2 -1
- package/src/stores/auth/getAccess.action.spec.ts +1 -0
- package/src/stores/auth/getAccess.action.ts +1 -0
- package/src/stores/auth/getProjectAccess.action.ts +1 -0
- package/src/stores/auth/index.ts +4 -4
- package/src/stores/auth/initAuth.action.spec.ts +1 -0
- package/src/stores/auth/initAuth.action.ts +1 -0
- package/src/stores/auth/logout.action.spec.ts +2 -1
- package/src/stores/auth/logout.action.ts +1 -0
- package/src/stores/auth/setUser.action.spec.ts +1 -0
- package/src/stores/auth/setUser.action.ts +1 -0
- package/src/stores/form/form.actions.spec.ts +1 -0
- package/src/stores/form/form.actions.ts +1 -0
- package/src/stores/form/form.reducers.ts +1 -0
- package/src/stores/forms/forms.actions.spec.ts +1 -0
- package/src/stores/forms/forms.actions.ts +1 -0
- package/src/stores/forms/forms.reducers.ts +1 -0
- package/src/stores/index.ts +3 -2
- package/src/stores/root/root.selectors.ts +1 -1
- package/src/stores/submission/submission.actions.spec.ts +1 -0
- package/src/stores/submission/submission.actions.ts +1 -0
- package/src/stores/submission/submission.reducers.ts +1 -0
- package/src/stores/submissions/submissions.actions.spec.ts +1 -0
- package/src/stores/submissions/submissions.actions.ts +1 -0
- package/src/stores/submissions/submissions.reducers.ts +1 -0
package/.eslintignore
ADDED
package/.eslintrc.js
ADDED
package/coverage.json
ADDED
|
@@ -6,8 +6,8 @@ export interface FormControlProps {
|
|
|
6
6
|
label?: string;
|
|
7
7
|
className?: string;
|
|
8
8
|
description?: string | React.ComponentType | any;
|
|
9
|
-
prefix?: React.ComponentType | any;
|
|
10
|
-
suffix?: React.ComponentType | any;
|
|
9
|
+
prefix?: JSX.Element | React.ComponentType | any;
|
|
10
|
+
suffix?: JSX.Element | React.ComponentType | any;
|
|
11
11
|
shadow?: boolean;
|
|
12
12
|
}
|
|
13
13
|
export declare function FormControl({ children, name, required, prefix, suffix, description, label, className }: React.PropsWithChildren<FormControlProps>): JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { FormControl } from "./formControl.component";
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: typeof FormControl;
|
|
5
|
+
argTypes: {
|
|
6
|
+
label: {
|
|
7
|
+
control: {
|
|
8
|
+
type: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
name: {
|
|
12
|
+
control: {
|
|
13
|
+
type: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
children: {
|
|
17
|
+
control: {
|
|
18
|
+
type: {
|
|
19
|
+
new (): HTMLElement;
|
|
20
|
+
prototype: HTMLElement;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
parameters: {};
|
|
26
|
+
};
|
|
27
|
+
export default _default;
|
|
28
|
+
export declare const Sandbox: {
|
|
29
|
+
(args: any): JSX.Element;
|
|
30
|
+
args: {
|
|
31
|
+
label: string;
|
|
32
|
+
children: JSX.Element;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
export declare const WithPrefix: {
|
|
36
|
+
(args: any): JSX.Element;
|
|
37
|
+
args: {
|
|
38
|
+
label: string;
|
|
39
|
+
children: JSX.Element;
|
|
40
|
+
prefix: JSX.Element;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
export declare const WithSuffix: {
|
|
44
|
+
(args: any): JSX.Element;
|
|
45
|
+
args: {
|
|
46
|
+
label: string;
|
|
47
|
+
children: JSX.Element;
|
|
48
|
+
suffix: JSX.Element;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
export declare const WithDescription: {
|
|
52
|
+
(args: any): JSX.Element;
|
|
53
|
+
args: {
|
|
54
|
+
label: string;
|
|
55
|
+
children: JSX.Element;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
@@ -6,13 +6,14 @@ export * from "./form-access/formAccess.component";
|
|
|
6
6
|
export * from "./form-action/formAction.component";
|
|
7
7
|
export * from "./form-builder/formBuilder.component";
|
|
8
8
|
export * from "./form-control/formControl.component";
|
|
9
|
-
export * from "./form-edit/formEdit.component";
|
|
10
9
|
export * from "./form-edit/formCtas.component";
|
|
10
|
+
export * from "./form-edit/formEdit.component";
|
|
11
11
|
export * from "./form-edit/formParameters.component";
|
|
12
12
|
export * from "./form-settings/formSettings.component";
|
|
13
13
|
export * from "./forms-table/formsTable.component";
|
|
14
14
|
export * from "./input-tags/inputTags.component";
|
|
15
15
|
export * from "./input-text/inputText.component";
|
|
16
|
+
export * from "./loader/loader.component";
|
|
16
17
|
export * from "./modal/modal.component";
|
|
17
18
|
export * from "./modal/removeModal.component";
|
|
18
19
|
export * from "./pagination/pagination.component";
|
|
@@ -21,4 +22,3 @@ export * from "./select/select.component";
|
|
|
21
22
|
export * from "./submissions-table/submissionsTable.component";
|
|
22
23
|
export * from "./table";
|
|
23
24
|
export * from "./tabs/tabs.component";
|
|
24
|
-
export * from "./loader/loader.component";
|
|
@@ -2,4 +2,4 @@ import { HeaderGroup } from "react-table";
|
|
|
2
2
|
export interface DefaultCellHeaderProps<Data extends object = any> extends Record<string, unknown> {
|
|
3
3
|
column: HeaderGroup<Data>;
|
|
4
4
|
}
|
|
5
|
-
export declare function DefaultCellHeader<Data extends Record<string, unknown> = {}>({ column }: DefaultCellHeaderProps): JSX.Element;
|
|
5
|
+
export declare function DefaultCellHeader<Data extends Record<string, unknown> = {}>({ column }: DefaultCellHeaderProps<Data>): JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export * from "./utils/useOperations.hook";
|
|
2
1
|
export * from "./components/defaultArrowSort.component";
|
|
3
2
|
export * from "./components/defaultCell.component";
|
|
4
3
|
export * from "./components/defaultCellHeader.component";
|
|
@@ -9,3 +8,4 @@ export * from "./filters/defaultColumnFilter.component";
|
|
|
9
8
|
export * from "./filters/selectColumnFilter.component";
|
|
10
9
|
export * from "./filters/sliderColumnFilter.component";
|
|
11
10
|
export * from "./table.component";
|
|
11
|
+
export * from "./utils/useOperations.hook";
|
package/dist/index.d.ts
CHANGED
|
@@ -3,10 +3,10 @@ import WebformBuilder from "formiojs/WebformBuilder";
|
|
|
3
3
|
import Wizard from "formiojs/Wizard";
|
|
4
4
|
import WizardBuilder from "formiojs/WizardBuilder";
|
|
5
5
|
export { Webform, WebformBuilder, Wizard, WizardBuilder };
|
|
6
|
-
export * from "./stores";
|
|
7
|
-
export * from "./interfaces";
|
|
8
6
|
export * from "./components";
|
|
9
7
|
export * from "./hooks/useTooltip";
|
|
8
|
+
export * from "./interfaces";
|
|
9
|
+
export * from "./stores";
|
|
10
10
|
export * from "./utils/iconClass";
|
|
11
11
|
export * from "./utils/url";
|
|
12
|
-
export { Components, Formio,
|
|
12
|
+
export { Components, Formio, Templates, Utils } from "formiojs";
|