@tsed/react-formio 2.1.2 → 2.1.4
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/coverage.json +4 -4
- package/dist/components/actions-table/actionsTable.component.d.ts +3 -2
- package/dist/components/actions-table/actionsTable.stories.d.ts +2 -1
- package/dist/components/alert/alert.component.d.ts +2 -1
- package/dist/components/alert/alert.stories.d.ts +2 -1
- package/dist/components/card/card.component.d.ts +1 -1
- package/dist/components/card/card.stories.d.ts +2 -1
- package/dist/components/form/form.component.d.ts +2 -1
- package/dist/components/form/form.stories.d.ts +5 -4
- package/dist/components/form-access/formAccess.stories.d.ts +2 -1
- package/dist/components/form-access/formAccess.utils.d.ts +3 -3
- package/dist/components/form-action/formAction.stories.d.ts +2 -1
- package/dist/components/form-builder/formBuilder.component.d.ts +1 -1
- package/dist/components/form-builder/formBuilder.stories.d.ts +7 -6
- package/dist/components/form-control/formControl.component.d.ts +1 -1
- package/dist/components/form-control/formControl.stories.d.ts +11 -10
- package/dist/components/form-edit/formEdit.component.d.ts +2 -1
- package/dist/components/form-edit/formEdit.stories.d.ts +17 -16
- package/dist/components/form-settings/formSettings.component.d.ts +2 -1
- package/dist/components/form-settings/formSettings.stories.d.ts +2 -1
- package/dist/components/form-settings/formSettings.utils.d.ts +1 -1
- package/dist/components/forms-table/components/formCell.component.d.ts +2 -1
- package/dist/components/forms-table/formsTable.component.d.ts +3 -2
- package/dist/components/forms-table/formsTable.stories.d.ts +3 -2
- package/dist/components/input-tags/inputTags.component.d.ts +2 -1
- package/dist/components/input-tags/inputTags.stories.d.ts +4 -3
- package/dist/components/input-text/inputText.component.d.ts +2 -1
- package/dist/components/input-text/inputText.stories.d.ts +6 -5
- package/dist/components/loader/loader.component.d.ts +2 -2
- package/dist/components/loader/loader.stories.d.ts +2 -1
- package/dist/components/modal/modal.component.d.ts +1 -1
- package/dist/components/modal/modal.stories.d.ts +5 -4
- package/dist/components/modal/removeModal.component.d.ts +2 -2
- package/dist/components/pagination/pagination.component.d.ts +2 -1
- package/dist/components/pagination/pagination.stories.d.ts +2 -1
- package/dist/components/react-component/reactComponent.component.d.ts +1 -1
- package/dist/components/select/select.stories.d.ts +9 -8
- package/dist/components/submissions-table/submissionsTable.component.d.ts +3 -2
- package/dist/components/submissions-table/submissionsTable.stories.d.ts +2 -1
- package/dist/components/table/components/defaultArrowSort.component.d.ts +2 -1
- package/dist/components/table/components/defaultCellHeader.component.d.ts +2 -1
- package/dist/components/table/components/defaultCellOperations.component.d.ts +2 -1
- package/dist/components/table/components/defaultCells.component.d.ts +2 -1
- package/dist/components/table/components/defaultOperationButton.component.d.ts +2 -1
- package/dist/components/table/components/defaultRow.component.d.ts +3 -3
- package/dist/components/table/components/dragNDropContainer.d.ts +2 -2
- package/dist/components/table/filters/defaultColumnFilter.component.d.ts +2 -1
- package/dist/components/table/filters/selectColumnFilter.component.d.ts +2 -1
- package/dist/components/table/filters/sliderColumnFilter.component.d.ts +2 -1
- package/dist/components/table/hooks/useCustomTable.hook.d.ts +7 -85
- package/dist/components/table/hooks/useDragnDropRow.hook.d.ts +25 -18
- package/dist/components/table/hooks/useOperations.hook.d.ts +1 -1
- package/dist/components/table/table.component.d.ts +2 -2
- package/dist/components/table/table.stories.d.ts +3 -2
- package/dist/components/tabs/tabs.component.d.ts +3 -3
- package/dist/components/tabs/tabs.component.stories.d.ts +3 -2
- package/dist/index.js +439 -493
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +57 -100
- package/dist/index.modern.js.map +1 -1
- package/dist/interfaces/FormSchema.d.ts +1 -1
- package/dist/interfaces/Operation.d.ts +2 -2
- package/dist/interfaces/QueryOptions.d.ts +1 -1
- package/package.json +4 -3
- package/readme.md +17 -195
- package/src/components/form/form.stories.tsx +128 -122
- package/src/components/form/useForm.hook.ts +1 -1
- package/src/components/form-builder/formBuilder.stories.tsx +3540 -3537
- package/src/components/form-edit/formEdit.stories.tsx +320 -317
- package/src/components/forms-table/formsTable.component.tsx +1 -1
- package/src/components/modal/removeModal.component.tsx +3 -4
- package/src/components/table/components/defaultCellHeader.component.tsx +3 -3
- package/src/components/table/components/defaultCells.component.tsx +1 -1
- package/src/components/table/filters/defaultColumnFilter.component.tsx +1 -1
- package/src/components/table/hooks/useCustomTable.hook.tsx +16 -5
- package/tsconfig.json +2 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { Pagination } from "./pagination.component";
|
|
2
3
|
declare const _default: {
|
|
3
4
|
title: string;
|
|
@@ -6,7 +7,7 @@ declare const _default: {
|
|
|
6
7
|
};
|
|
7
8
|
export default _default;
|
|
8
9
|
export declare const Sandbox: {
|
|
9
|
-
(args: any): JSX.Element;
|
|
10
|
+
(args: any): React.JSX.Element;
|
|
10
11
|
args: {
|
|
11
12
|
pageSizes: number[];
|
|
12
13
|
pageCount: number;
|
|
@@ -70,7 +70,7 @@ export declare class ReactComponent<Data = any> extends Components.components.fi
|
|
|
70
70
|
* @param value
|
|
71
71
|
* @param flags
|
|
72
72
|
*/
|
|
73
|
-
updateValue: (value?: Data
|
|
73
|
+
updateValue: (value?: Data, flags?: Record<string, any>) => boolean;
|
|
74
74
|
/**
|
|
75
75
|
* Get the current value of the component. Should return the value set in the react component.
|
|
76
76
|
*
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { Select } from "./select.component";
|
|
2
3
|
declare const _default: {
|
|
3
4
|
title: string;
|
|
@@ -49,7 +50,7 @@ declare const _default: {
|
|
|
49
50
|
};
|
|
50
51
|
export default _default;
|
|
51
52
|
export declare const Sandbox: {
|
|
52
|
-
(args: any): JSX.Element;
|
|
53
|
+
(args: any): React.JSX.Element;
|
|
53
54
|
args: {
|
|
54
55
|
label: string;
|
|
55
56
|
value: string;
|
|
@@ -62,7 +63,7 @@ export declare const Sandbox: {
|
|
|
62
63
|
};
|
|
63
64
|
};
|
|
64
65
|
export declare const Choicesjs: {
|
|
65
|
-
(args: any): JSX.Element;
|
|
66
|
+
(args: any): React.JSX.Element;
|
|
66
67
|
args: {
|
|
67
68
|
label: string;
|
|
68
69
|
value: string;
|
|
@@ -76,7 +77,7 @@ export declare const Choicesjs: {
|
|
|
76
77
|
};
|
|
77
78
|
};
|
|
78
79
|
export declare const ChoicesjsPrefix: {
|
|
79
|
-
(args: any): JSX.Element;
|
|
80
|
+
(args: any): React.JSX.Element;
|
|
80
81
|
args: {
|
|
81
82
|
label: string;
|
|
82
83
|
name: string;
|
|
@@ -91,7 +92,7 @@ export declare const ChoicesjsPrefix: {
|
|
|
91
92
|
};
|
|
92
93
|
};
|
|
93
94
|
export declare const WithPrefix: {
|
|
94
|
-
(args: any): JSX.Element;
|
|
95
|
+
(args: any): React.JSX.Element;
|
|
95
96
|
args: {
|
|
96
97
|
label: string;
|
|
97
98
|
value: string;
|
|
@@ -104,7 +105,7 @@ export declare const WithPrefix: {
|
|
|
104
105
|
};
|
|
105
106
|
};
|
|
106
107
|
export declare const WithSuffix: {
|
|
107
|
-
(args: any): JSX.Element;
|
|
108
|
+
(args: any): React.JSX.Element;
|
|
108
109
|
args: {
|
|
109
110
|
label: string;
|
|
110
111
|
value: string;
|
|
@@ -117,7 +118,7 @@ export declare const WithSuffix: {
|
|
|
117
118
|
};
|
|
118
119
|
};
|
|
119
120
|
export declare const TypeMultiple: {
|
|
120
|
-
(args: any): JSX.Element;
|
|
121
|
+
(args: any): React.JSX.Element;
|
|
121
122
|
args: {
|
|
122
123
|
label: string;
|
|
123
124
|
name: string;
|
|
@@ -133,7 +134,7 @@ export declare const TypeMultiple: {
|
|
|
133
134
|
};
|
|
134
135
|
};
|
|
135
136
|
export declare const ChoicesjsMultiple: {
|
|
136
|
-
(args: any): JSX.Element;
|
|
137
|
+
(args: any): React.JSX.Element;
|
|
137
138
|
args: {
|
|
138
139
|
label: string;
|
|
139
140
|
value: never[];
|
|
@@ -148,7 +149,7 @@ export declare const ChoicesjsMultiple: {
|
|
|
148
149
|
};
|
|
149
150
|
};
|
|
150
151
|
export declare const Sizing: {
|
|
151
|
-
(args: any): JSX.Element;
|
|
152
|
+
(args: any): React.JSX.Element;
|
|
152
153
|
args: {
|
|
153
154
|
label: string;
|
|
154
155
|
value: string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { FormSchema, Submission } from "../../interfaces";
|
|
2
3
|
import { TableProps } from "../table/hooks/useCustomTable.hook";
|
|
3
|
-
export
|
|
4
|
+
export type SubmissionsTableProps = Omit<TableProps<Submission>, "columns"> & {
|
|
4
5
|
form?: FormSchema;
|
|
5
6
|
};
|
|
6
|
-
export declare function SubmissionsTable({ form, ...props }: SubmissionsTableProps): JSX.Element;
|
|
7
|
+
export declare function SubmissionsTable({ form, ...props }: SubmissionsTableProps): React.JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { SubmissionsTable } from "./submissionsTable.component";
|
|
2
3
|
declare const _default: {
|
|
3
4
|
title: string;
|
|
@@ -43,7 +44,7 @@ declare const _default: {
|
|
|
43
44
|
};
|
|
44
45
|
export default _default;
|
|
45
46
|
export declare const Sandbox: {
|
|
46
|
-
(args: any): JSX.Element;
|
|
47
|
+
(args: any): React.JSX.Element;
|
|
47
48
|
args: {
|
|
48
49
|
form: {
|
|
49
50
|
_id: string;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare function DefaultArrowSort({ column }: any): React.JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { HeaderGroup } from "react-table";
|
|
2
3
|
export interface DefaultCellHeaderProps<Data extends object = any> extends Record<string, unknown> {
|
|
3
4
|
column: HeaderGroup<Data>;
|
|
4
5
|
}
|
|
5
|
-
export declare function DefaultCellHeader<Data extends Record<string, unknown> = {}>({ column }: DefaultCellHeaderProps<Data>): JSX.Element;
|
|
6
|
+
export declare function DefaultCellHeader<Data extends Record<string, unknown> = {}>({ column }: DefaultCellHeaderProps<Data>): React.JSX.Element;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare function DefaultCellOperations({ operations, row, onClick, ctx, i18n }: any): React.JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
export interface OperationButtonProps {
|
|
2
3
|
className?: string;
|
|
3
4
|
buttonType?: string;
|
|
@@ -10,4 +11,4 @@ export interface OperationButtonProps {
|
|
|
10
11
|
title?: string;
|
|
11
12
|
i18n?: (i18n: string) => string;
|
|
12
13
|
}
|
|
13
|
-
export declare function DefaultOperationButton(props: OperationButtonProps): JSX.Element;
|
|
14
|
+
export declare function DefaultOperationButton(props: OperationButtonProps): React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DetailedHTMLProps, HTMLAttributes } from "react";
|
|
1
|
+
import React, { DetailedHTMLProps, HTMLAttributes } from "react";
|
|
2
2
|
import { Row } from "react-table";
|
|
3
3
|
export interface DefaultRowProps<Data extends object = {}> extends Omit<DetailedHTMLProps<HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, "onClick" | "onDrag" | "onDrop"> {
|
|
4
4
|
onClick: (data: any, action: string) => void;
|
|
@@ -8,5 +8,5 @@ export interface DefaultRowProps<Data extends object = {}> extends Omit<Detailed
|
|
|
8
8
|
onDrag: (index: number, hoverIndex: number) => void;
|
|
9
9
|
enableDragNDrop?: boolean;
|
|
10
10
|
}
|
|
11
|
-
export declare function DefaultDndRow<Data extends object = {}>(props: DefaultRowProps<Data>): JSX.Element;
|
|
12
|
-
export declare function DefaultRow<Data extends object = {}>({ onClick, row, enableDragNDrop, onDrop, onDrag, ...props }: DefaultRowProps<Data>): JSX.Element;
|
|
11
|
+
export declare function DefaultDndRow<Data extends object = {}>(props: DefaultRowProps<Data>): React.JSX.Element;
|
|
12
|
+
export declare function DefaultRow<Data extends object = {}>({ onClick, row, enableDragNDrop, onDrop, onDrag, ...props }: DefaultRowProps<Data>): React.JSX.Element;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { FilterProps } from "react-table";
|
|
2
|
-
export declare function SelectColumnFilter<D extends Record<string, unknown> = {}>({ column }: FilterProps<D>): JSX.Element;
|
|
3
|
+
export declare function SelectColumnFilter<D extends Record<string, unknown> = {}>({ column }: FilterProps<D>): React.JSX.Element;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { FilterProps } from "react-table";
|
|
2
|
-
export declare function SliderColumnFilter<D extends Record<string, unknown> = {}>({ column: { filterValue, setFilter, preFilteredRows, id } }: FilterProps<D>): JSX.Element;
|
|
3
|
+
export declare function SliderColumnFilter<D extends Record<string, unknown> = {}>({ column: { filterValue, setFilter, preFilteredRows, id } }: FilterProps<D>): React.JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { PropsWithChildren } from "react";
|
|
2
|
-
import { CellProps, FilterProps, Renderer, TableOptions } from "react-table";
|
|
2
|
+
import { CellProps, FilterProps, Renderer, TableInstance, TableOptions } from "react-table";
|
|
3
3
|
import { OnClickOperation, Operation, QueryOptions } from "../../../interfaces";
|
|
4
4
|
import { Pagination as DefaultPagination } from "../../pagination/pagination.component";
|
|
5
5
|
import { DefaultCellHeaderProps } from "../components/defaultCellHeader.component";
|
|
@@ -82,18 +82,17 @@ export interface TableProps<Data extends object = any> extends TableOptions<Data
|
|
|
82
82
|
onDrop?: (item: Data) => void;
|
|
83
83
|
}
|
|
84
84
|
export declare function getOperationCallback(operations: Operation[], onClick: OnClickOperation): (data: any, action: string) => void;
|
|
85
|
-
declare function DefaultLoader(): JSX.Element;
|
|
86
|
-
declare function DefaultEmptyData(): JSX.Element;
|
|
85
|
+
declare function DefaultLoader(): React.JSX.Element;
|
|
86
|
+
declare function DefaultEmptyData(): React.JSX.Element;
|
|
87
87
|
export declare function useCustomTable<Data extends object = {}>(props: PropsWithChildren<TableProps<Data>>): {
|
|
88
88
|
className: string;
|
|
89
|
-
tableInstance:
|
|
89
|
+
tableInstance: TableInstance<Data>;
|
|
90
90
|
CellHeader: any;
|
|
91
91
|
isLoading: boolean | undefined;
|
|
92
|
-
onClick: (data: any, action: string) => void;
|
|
93
92
|
Loader: React.ComponentType<{}> | typeof DefaultLoader;
|
|
94
93
|
EmptyData: React.ComponentType<{}> | typeof DefaultEmptyData;
|
|
95
94
|
Row: React.ComponentType<DefaultRowProps<Data>> | typeof DefaultRow;
|
|
96
|
-
data: Data[];
|
|
95
|
+
data: readonly Data[];
|
|
97
96
|
disablePagination: boolean | undefined;
|
|
98
97
|
Pagination: React.ComponentType<{}> | typeof DefaultPagination;
|
|
99
98
|
pageIndex: number;
|
|
@@ -102,86 +101,9 @@ export declare function useCustomTable<Data extends object = {}>(props: PropsWit
|
|
|
102
101
|
setPageSize: (pageSize: number) => void;
|
|
103
102
|
i18n: (f: string) => string;
|
|
104
103
|
children: React.ReactNode;
|
|
104
|
+
onClick: any;
|
|
105
105
|
onDrag: (dragIndex: number, hoverIndex: number) => void;
|
|
106
106
|
onDrop: (...args: any[]) => void;
|
|
107
|
-
|
|
108
|
-
* Call the listener when a filter / pagination / sort change.
|
|
109
|
-
*/
|
|
110
|
-
onChange?: ((query: QueryOptions) => void) | undefined;
|
|
111
|
-
/**
|
|
112
|
-
* Custom ArrowSort
|
|
113
|
-
*/
|
|
114
|
-
ArrowSort?: React.ComponentType<{}> | undefined;
|
|
115
|
-
/**
|
|
116
|
-
* Custom default ColumnFilter
|
|
117
|
-
*/
|
|
118
|
-
ColumnFilter?: Renderer<FilterProps<Data>> | undefined;
|
|
119
|
-
/**
|
|
120
|
-
* Custom cell
|
|
121
|
-
*/
|
|
122
|
-
Cell?: React.ComponentType<CellProps<Data, any>> | undefined;
|
|
123
|
-
/**
|
|
124
|
-
*
|
|
125
|
-
*/
|
|
126
|
-
CellOperations?: React.ComponentType<{}> | undefined;
|
|
127
|
-
/**
|
|
128
|
-
* Disable filters
|
|
129
|
-
*/
|
|
130
|
-
disableFilters?: boolean | undefined;
|
|
131
|
-
manualPagination?: boolean | undefined;
|
|
132
|
-
manualSortBy?: boolean | undefined;
|
|
133
|
-
manualFilters?: boolean | undefined;
|
|
134
|
-
/**
|
|
135
|
-
* Configuration operation for each line.
|
|
136
|
-
*/
|
|
137
|
-
operations?: Operation<any>[] | undefined;
|
|
138
|
-
/**
|
|
139
|
-
* Enable drag and drop rows
|
|
140
|
-
*/
|
|
141
|
-
enableDragNDrop?: boolean | undefined;
|
|
142
|
-
columns: import("react-table").Column<Data>[];
|
|
143
|
-
initialState?: Partial<import("react-table").TableState<Data>> | undefined;
|
|
144
|
-
stateReducer?: ((newState: import("react-table").TableState<Data>, action: import("react-table").ActionType, previousState: import("react-table").TableState<Data>, instance?: import("react-table").TableInstance<Data> | undefined) => import("react-table").TableState<Data>) | undefined;
|
|
145
|
-
useControlledState?: ((state: import("react-table").TableState<Data>, meta: import("react-table").MetaBase<Data>) => import("react-table").TableState<Data>) | undefined;
|
|
146
|
-
defaultColumn?: Partial<import("react-table").Column<Data>> | undefined;
|
|
147
|
-
getSubRows?: ((originalRow: Data, relativeIndex: number) => Data[]) | undefined;
|
|
148
|
-
getRowId?: ((originalRow: Data, relativeIndex: number, parent?: import("react-table").Row<Data> | undefined) => string) | undefined;
|
|
149
|
-
autoResetHiddenColumns?: boolean | undefined;
|
|
150
|
-
manualExpandedKey?: import("react-table").IdType<Data> | undefined;
|
|
151
|
-
paginateExpandedRows?: boolean | undefined;
|
|
152
|
-
expandSubRows?: boolean | undefined;
|
|
153
|
-
autoResetExpanded?: boolean | undefined;
|
|
154
|
-
defaultCanFilter?: boolean | undefined;
|
|
155
|
-
filterTypes?: import("react-table").FilterTypes<Data> | undefined;
|
|
156
|
-
autoResetFilters?: boolean | undefined;
|
|
157
|
-
globalFilter?: string | ((rows: import("react-table").Row<Data>[], columnIds: import("react-table").IdType<Data>[], filterValue: any) => import("react-table").Row<Data>[]) | undefined;
|
|
158
|
-
manualGlobalFilter?: boolean | undefined;
|
|
159
|
-
autoResetGlobalFilter?: boolean | undefined;
|
|
160
|
-
disableGlobalFilter?: boolean | undefined;
|
|
161
|
-
manualGroupBy?: boolean | undefined;
|
|
162
|
-
disableGroupBy?: boolean | undefined;
|
|
163
|
-
defaultCanGroupBy?: boolean | undefined;
|
|
164
|
-
aggregations?: Record<string, import("react-table").AggregatorFn<Data>> | undefined;
|
|
165
|
-
groupByFn?: ((rows: import("react-table").Row<Data>[], columnId: import("react-table").IdType<Data>) => Record<string, import("react-table").Row<Data>[]>) | undefined;
|
|
166
|
-
autoResetGroupBy?: boolean | undefined;
|
|
167
|
-
pageCount?: number | undefined;
|
|
168
|
-
autoResetPage?: boolean | undefined;
|
|
169
|
-
disableResizing?: boolean | undefined;
|
|
170
|
-
manualRowSelectedKey?: import("react-table").IdType<Data> | undefined;
|
|
171
|
-
autoResetSelectedRows?: boolean | undefined;
|
|
172
|
-
selectSubRows?: boolean | undefined;
|
|
173
|
-
disableSortBy?: boolean | undefined;
|
|
174
|
-
defaultCanSort?: boolean | undefined;
|
|
175
|
-
disableMultiSort?: boolean | undefined;
|
|
176
|
-
isMultiSortEvent?: ((e: React.MouseEvent<Element, MouseEvent>) => boolean) | undefined;
|
|
177
|
-
maxMultiSortColCount?: number | undefined;
|
|
178
|
-
disableSortRemove?: boolean | undefined;
|
|
179
|
-
disabledMultiRemove?: boolean | undefined;
|
|
180
|
-
orderByFn?: ((rows: import("react-table").Row<Data>[], sortFns: import("react-table").SortByFn<Data>[], directions: boolean[]) => import("react-table").Row<Data>[]) | undefined;
|
|
181
|
-
sortTypes?: Record<string, import("react-table").SortByFn<Data>> | undefined;
|
|
182
|
-
autoResetSortBy?: boolean | undefined;
|
|
183
|
-
sortBy?: import("../../../interfaces").ColumnIdentifier[] | undefined;
|
|
184
|
-
filters?: import("../../../interfaces").ColumnIdentifier[] | undefined;
|
|
185
|
-
filterId?: string | undefined;
|
|
107
|
+
enableDragNDrop: boolean | undefined;
|
|
186
108
|
};
|
|
187
109
|
export {};
|
|
@@ -15,6 +15,7 @@ export declare function useDndRow<Data extends object = {}>({ onDrag, onDrop, in
|
|
|
15
15
|
suppressContentEditableWarning?: boolean | undefined;
|
|
16
16
|
suppressHydrationWarning?: boolean | undefined;
|
|
17
17
|
accessKey?: string | undefined;
|
|
18
|
+
autoFocus?: boolean | undefined;
|
|
18
19
|
className?: string | undefined;
|
|
19
20
|
contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
|
|
20
21
|
contextMenu?: string | undefined;
|
|
@@ -23,6 +24,7 @@ export declare function useDndRow<Data extends object = {}>({ onDrag, onDrop, in
|
|
|
23
24
|
hidden?: boolean | undefined;
|
|
24
25
|
id?: string | undefined;
|
|
25
26
|
lang?: string | undefined;
|
|
27
|
+
nonce?: string | undefined;
|
|
26
28
|
placeholder?: string | undefined;
|
|
27
29
|
slot?: string | undefined;
|
|
28
30
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
@@ -31,13 +33,16 @@ export declare function useDndRow<Data extends object = {}>({ onDrag, onDrop, in
|
|
|
31
33
|
title?: string | undefined;
|
|
32
34
|
translate?: "yes" | "no" | undefined;
|
|
33
35
|
radioGroup?: string | undefined;
|
|
34
|
-
role?:
|
|
36
|
+
role?: import("react").AriaRole | undefined;
|
|
35
37
|
about?: string | undefined;
|
|
38
|
+
content?: string | undefined;
|
|
36
39
|
datatype?: string | undefined;
|
|
37
40
|
inlist?: any;
|
|
38
41
|
prefix?: string | undefined;
|
|
39
42
|
property?: string | undefined;
|
|
43
|
+
rel?: string | undefined;
|
|
40
44
|
resource?: string | undefined;
|
|
45
|
+
rev?: string | undefined;
|
|
41
46
|
typeof?: string | undefined;
|
|
42
47
|
vocab?: string | undefined;
|
|
43
48
|
autoCapitalize?: string | undefined;
|
|
@@ -52,12 +57,12 @@ export declare function useDndRow<Data extends object = {}>({ onDrag, onDrop, in
|
|
|
52
57
|
results?: number | undefined;
|
|
53
58
|
security?: string | undefined;
|
|
54
59
|
unselectable?: "on" | "off" | undefined;
|
|
55
|
-
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" |
|
|
60
|
+
inputMode?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
56
61
|
is?: string | undefined;
|
|
57
62
|
'aria-activedescendant'?: string | undefined;
|
|
58
|
-
'aria-atomic'?: boolean | "true" | "false" | undefined;
|
|
59
|
-
'aria-autocomplete'?: "
|
|
60
|
-
'aria-busy'?: boolean | "true" | "false" | undefined;
|
|
63
|
+
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
64
|
+
'aria-autocomplete'?: "list" | "none" | "inline" | "both" | undefined;
|
|
65
|
+
'aria-busy'?: (boolean | "true" | "false") | undefined;
|
|
61
66
|
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
62
67
|
'aria-colcount'?: number | undefined;
|
|
63
68
|
'aria-colindex'?: number | undefined;
|
|
@@ -66,36 +71,36 @@ export declare function useDndRow<Data extends object = {}>({ onDrag, onDrop, in
|
|
|
66
71
|
'aria-current'?: boolean | "true" | "false" | "page" | "step" | "location" | "date" | "time" | undefined;
|
|
67
72
|
'aria-describedby'?: string | undefined;
|
|
68
73
|
'aria-details'?: string | undefined;
|
|
69
|
-
'aria-disabled'?: boolean | "true" | "false" | undefined;
|
|
70
|
-
'aria-dropeffect'?: "
|
|
74
|
+
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
75
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
|
|
71
76
|
'aria-errormessage'?: string | undefined;
|
|
72
|
-
'aria-expanded'?: boolean | "true" | "false" | undefined;
|
|
77
|
+
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
73
78
|
'aria-flowto'?: string | undefined;
|
|
74
|
-
'aria-grabbed'?: boolean | "true" | "false" | undefined;
|
|
75
|
-
'aria-haspopup'?: boolean | "true" | "false" | "
|
|
76
|
-
'aria-hidden'?: boolean | "true" | "false" | undefined;
|
|
79
|
+
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
80
|
+
'aria-haspopup'?: boolean | "true" | "false" | "dialog" | "grid" | "listbox" | "menu" | "tree" | undefined;
|
|
81
|
+
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
77
82
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
78
83
|
'aria-keyshortcuts'?: string | undefined;
|
|
79
84
|
'aria-label'?: string | undefined;
|
|
80
85
|
'aria-labelledby'?: string | undefined;
|
|
81
86
|
'aria-level'?: number | undefined;
|
|
82
87
|
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
83
|
-
'aria-modal'?: boolean | "true" | "false" | undefined;
|
|
84
|
-
'aria-multiline'?: boolean | "true" | "false" | undefined;
|
|
85
|
-
'aria-multiselectable'?: boolean | "true" | "false" | undefined;
|
|
88
|
+
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
89
|
+
'aria-multiline'?: (boolean | "true" | "false") | undefined;
|
|
90
|
+
'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
|
|
86
91
|
'aria-orientation'?: "horizontal" | "vertical" | undefined;
|
|
87
92
|
'aria-owns'?: string | undefined;
|
|
88
93
|
'aria-placeholder'?: string | undefined;
|
|
89
94
|
'aria-posinset'?: number | undefined;
|
|
90
95
|
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
91
|
-
'aria-readonly'?: boolean | "true" | "false" | undefined;
|
|
96
|
+
'aria-readonly'?: (boolean | "true" | "false") | undefined;
|
|
92
97
|
'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
93
|
-
'aria-required'?: boolean | "true" | "false" | undefined;
|
|
98
|
+
'aria-required'?: (boolean | "true" | "false") | undefined;
|
|
94
99
|
'aria-roledescription'?: string | undefined;
|
|
95
100
|
'aria-rowcount'?: number | undefined;
|
|
96
101
|
'aria-rowindex'?: number | undefined;
|
|
97
102
|
'aria-rowspan'?: number | undefined;
|
|
98
|
-
'aria-selected'?: boolean | "true" | "false" | undefined;
|
|
103
|
+
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
99
104
|
'aria-setsize'?: number | undefined;
|
|
100
105
|
'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
101
106
|
'aria-valuemax'?: number | undefined;
|
|
@@ -104,7 +109,7 @@ export declare function useDndRow<Data extends object = {}>({ onDrag, onDrop, in
|
|
|
104
109
|
'aria-valuetext'?: string | undefined;
|
|
105
110
|
children?: import("react").ReactNode;
|
|
106
111
|
dangerouslySetInnerHTML?: {
|
|
107
|
-
__html: string;
|
|
112
|
+
__html: string | TrustedHTML;
|
|
108
113
|
} | undefined;
|
|
109
114
|
onCopy?: import("react").ClipboardEventHandler<HTMLTableRowElement> | undefined;
|
|
110
115
|
onCopyCapture?: import("react").ClipboardEventHandler<HTMLTableRowElement> | undefined;
|
|
@@ -174,6 +179,8 @@ export declare function useDndRow<Data extends object = {}>({ onDrag, onDrop, in
|
|
|
174
179
|
onProgressCapture?: import("react").ReactEventHandler<HTMLTableRowElement> | undefined;
|
|
175
180
|
onRateChange?: import("react").ReactEventHandler<HTMLTableRowElement> | undefined;
|
|
176
181
|
onRateChangeCapture?: import("react").ReactEventHandler<HTMLTableRowElement> | undefined;
|
|
182
|
+
onResize?: import("react").ReactEventHandler<HTMLTableRowElement> | undefined;
|
|
183
|
+
onResizeCapture?: import("react").ReactEventHandler<HTMLTableRowElement> | undefined;
|
|
177
184
|
onSeeked?: import("react").ReactEventHandler<HTMLTableRowElement> | undefined;
|
|
178
185
|
onSeekedCapture?: import("react").ReactEventHandler<HTMLTableRowElement> | undefined;
|
|
179
186
|
onSeeking?: import("react").ReactEventHandler<HTMLTableRowElement> | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { Hooks } from "react-table";
|
|
3
3
|
import { Operation } from "../../../interfaces";
|
|
4
|
-
export
|
|
4
|
+
export type UseOperationsHookProps = {
|
|
5
5
|
CellOperations?: React.ComponentType;
|
|
6
6
|
operations: Operation[];
|
|
7
7
|
onClick?: (data: any, event: string) => void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { PropsWithChildren } from "react";
|
|
1
|
+
import React, { PropsWithChildren } from "react";
|
|
2
2
|
import { TableProps } from "./hooks/useCustomTable.hook";
|
|
3
|
-
export declare function Table<Data extends object = any>(props: PropsWithChildren<TableProps<Data>>): JSX.Element;
|
|
3
|
+
export declare function Table<Data extends object = any>(props: PropsWithChildren<TableProps<Data>>): React.JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { Table } from "./table.component";
|
|
2
3
|
declare const _default: {
|
|
3
4
|
title: string;
|
|
@@ -7,7 +8,7 @@ declare const _default: {
|
|
|
7
8
|
};
|
|
8
9
|
export default _default;
|
|
9
10
|
export declare const Sandbox: {
|
|
10
|
-
(args: any): JSX.Element;
|
|
11
|
+
(args: any): React.JSX.Element;
|
|
11
12
|
args: {
|
|
12
13
|
data: {
|
|
13
14
|
_id: string;
|
|
@@ -44,7 +45,7 @@ export declare const Sandbox: {
|
|
|
44
45
|
};
|
|
45
46
|
};
|
|
46
47
|
export declare const TableWithDragNDrop: {
|
|
47
|
-
(args: any): JSX.Element;
|
|
48
|
+
(args: any): React.JSX.Element;
|
|
48
49
|
args: {
|
|
49
50
|
enableDragNDrop: boolean;
|
|
50
51
|
data: never[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PropsWithChildren } from "react";
|
|
2
|
-
export declare function ButtonTab({ icon, back, onClick, isActive, reverse, children, className, after }: PropsWithChildren<any>): JSX.Element;
|
|
1
|
+
import React, { PropsWithChildren } from "react";
|
|
2
|
+
export declare function ButtonTab({ icon, back, onClick, isActive, reverse, children, className, after }: PropsWithChildren<any>): React.JSX.Element;
|
|
3
3
|
export interface TabsItemProps extends Record<string, any> {
|
|
4
4
|
label?: string;
|
|
5
5
|
icon?: string;
|
|
@@ -16,4 +16,4 @@ export interface TabsProps extends Record<string, any> {
|
|
|
16
16
|
onClick?: (item: TabsItemProps) => void;
|
|
17
17
|
i18n?: (f: string) => string;
|
|
18
18
|
}
|
|
19
|
-
export declare function Tabs({ style, current, items, children, HeaderChildren, AddButton, Button, className, onClick, i18n, ...additionalProps }: PropsWithChildren<TabsProps>): JSX.Element;
|
|
19
|
+
export declare function Tabs({ style, current, items, children, HeaderChildren, AddButton, Button, className, onClick, i18n, ...additionalProps }: PropsWithChildren<TabsProps>): React.JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { Tabs } from "./tabs.component";
|
|
2
3
|
declare const _default: {
|
|
3
4
|
title: string;
|
|
@@ -7,7 +8,7 @@ declare const _default: {
|
|
|
7
8
|
};
|
|
8
9
|
export default _default;
|
|
9
10
|
export declare const Sandbox: {
|
|
10
|
-
(args: any): JSX.Element;
|
|
11
|
+
(args: any): React.JSX.Element;
|
|
11
12
|
args: {
|
|
12
13
|
items: ({
|
|
13
14
|
action: string;
|
|
@@ -34,7 +35,7 @@ export declare const Sandbox: {
|
|
|
34
35
|
};
|
|
35
36
|
};
|
|
36
37
|
export declare const WithCloseable: {
|
|
37
|
-
(args: any): JSX.Element;
|
|
38
|
+
(args: any): React.JSX.Element;
|
|
38
39
|
args: {
|
|
39
40
|
reverse: boolean;
|
|
40
41
|
items: {
|