@esvndev/es-react-table-interface 1.7.95 → 1.7.96
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/component/ExternalInterface/columns.d.ts +65 -0
- package/dist/component/ExternalInterface/func.d.ts +1 -0
- package/dist/component/option_configs/contextMenu.d.ts +3 -0
- package/dist/component/option_configs/index.d.ts +12 -0
- package/dist/component/option_configs/modal/modal.d.ts +5 -0
- package/dist/component/option_configs/table.d.ts +8 -0
- package/dist/component/option_configs/useContext.d.ts +11 -0
- package/dist/component/table_configs/contextMenu.d.ts +3 -0
- package/dist/component/table_configs/index.d.ts +14 -0
- package/dist/component/table_configs/modalSetting.d.ts +12 -0
- package/dist/component/table_configs/table.d.ts +11 -0
- package/dist/component/table_configs/useContext.d.ts +23 -0
- package/dist/func.d.ts +13 -0
- package/dist/index.js +5 -5
- package/dist/interface.d.ts +8 -2
- package/dist/libs/grid-table-template-2/index.d.ts +1 -1
- package/dist/libs/numeric-input/index.d.ts +31 -0
- package/dist/ultility/Export/functionExport.d.ts +1 -1
- package/dist/ultility/any/IGridColumns.d.ts +53 -0
- package/dist/ultility/any/ISetup.d.ts +173 -0
- package/dist/ultility/any/ITableGrid.d.ts +210 -0
- package/dist/ultility/any/IUseContext.d.ts +28 -0
- package/dist/ultility/any/constantConfigNumeric.d.ts +20 -0
- package/dist/ultility/any/constantContextMenu.d.ts +2 -0
- package/dist/ultility/any/constantOperator.d.ts +3 -0
- package/dist/ultility/any/index.d.ts +2 -0
- package/dist/ultility/any/themeConfig.d.ts +39 -0
- package/dist/ultility/api/config/index.d.ts +21 -0
- package/dist/ultility/api/constant.d.ts +33 -0
- package/dist/ultility/api/index.d.ts +19 -0
- package/dist/ultility/api/menu/index.d.ts +8 -0
- package/dist/ultility/api/requester.d.ts +9 -0
- package/package.json +3 -3
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { ColumnTable } from "es-grid-template";
|
|
2
|
+
export declare const renderColumns: ({ optionFreeze, optionType, watch, optionTree, optionTypeTemplate, typeModal, t, optionColumn, allScreen, optionTextAlign }: {
|
|
3
|
+
allScreen: any[];
|
|
4
|
+
optionColumn: any;
|
|
5
|
+
optionFreeze: any[];
|
|
6
|
+
optionType: any[];
|
|
7
|
+
watch: any;
|
|
8
|
+
optionTree: any[];
|
|
9
|
+
optionTextAlign: any[];
|
|
10
|
+
optionTypeTemplate: any[];
|
|
11
|
+
typeModal: string;
|
|
12
|
+
t: (key: string) => string;
|
|
13
|
+
}) => ColumnTable<RowI>[];
|
|
14
|
+
export declare const renderColumnsSort: ({ watch, t }: {
|
|
15
|
+
watch: any;
|
|
16
|
+
optionColumn: any;
|
|
17
|
+
t: (key: string) => string;
|
|
18
|
+
}) => ColumnTable<RowI>[];
|
|
19
|
+
export declare const renderColumnsTable: ({ optionTable, t }: {
|
|
20
|
+
optionTable: any[];
|
|
21
|
+
t: any;
|
|
22
|
+
}) => ColumnTable<any>[];
|
|
23
|
+
export declare const renderColumnsTableGroup: ({ optionTable, t }: {
|
|
24
|
+
optionTable: any[];
|
|
25
|
+
t: any;
|
|
26
|
+
}) => ColumnTable<any>[];
|
|
27
|
+
export interface RowI {
|
|
28
|
+
id?: any;
|
|
29
|
+
viewId?: any;
|
|
30
|
+
colVirtual?: any;
|
|
31
|
+
colOriginal?: any;
|
|
32
|
+
dataTypeOriginnal?: any;
|
|
33
|
+
tblFrom?: any;
|
|
34
|
+
tblAlias?: any;
|
|
35
|
+
leftJoin?: any;
|
|
36
|
+
type?: any;
|
|
37
|
+
title?: any;
|
|
38
|
+
description?: any;
|
|
39
|
+
isSearchKeyword?: any;
|
|
40
|
+
isFilterOr?: any;
|
|
41
|
+
sortOrder?: any;
|
|
42
|
+
minWidth?: any;
|
|
43
|
+
maxWidth?: any;
|
|
44
|
+
width?: any;
|
|
45
|
+
isHidden?: any;
|
|
46
|
+
textAlign?: any;
|
|
47
|
+
colMerge?: any;
|
|
48
|
+
rowMerge?: any;
|
|
49
|
+
isActive?: any;
|
|
50
|
+
colTemplate?: any;
|
|
51
|
+
optionTemplate?: any;
|
|
52
|
+
typeDecimal?: any;
|
|
53
|
+
freeze?: any;
|
|
54
|
+
isOrderBy?: any;
|
|
55
|
+
isOrderByDesc?: any;
|
|
56
|
+
tree?: any;
|
|
57
|
+
isSumary?: any;
|
|
58
|
+
value?: string;
|
|
59
|
+
alias?: string;
|
|
60
|
+
join?: string;
|
|
61
|
+
index?: number;
|
|
62
|
+
more?: string;
|
|
63
|
+
widthPicture?: string;
|
|
64
|
+
heightPicture?: string;
|
|
65
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface II {
|
|
3
|
+
userAction: any;
|
|
4
|
+
userSubject: any;
|
|
5
|
+
useAbility: any;
|
|
6
|
+
AbilityContext: any;
|
|
7
|
+
NotPermission: any;
|
|
8
|
+
CanPer: any;
|
|
9
|
+
useConfig: any;
|
|
10
|
+
}
|
|
11
|
+
declare const IndexPage: (props: II) => React.JSX.Element;
|
|
12
|
+
export default IndexPage;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IUseContext } from '../../ultility/any/IUseContext';
|
|
2
|
+
export interface IContext extends IUseContext {
|
|
3
|
+
setOpenModal?: any;
|
|
4
|
+
setTypeModal?: any;
|
|
5
|
+
handleModalOrder?: any;
|
|
6
|
+
openModalOrder?: any;
|
|
7
|
+
setOpenModalOrder?: any;
|
|
8
|
+
dataRoot?: any;
|
|
9
|
+
setDataRoot?: any;
|
|
10
|
+
}
|
|
11
|
+
export declare const OptionConfigsContext: import("react").Context<IContext>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface II {
|
|
3
|
+
userAction: any;
|
|
4
|
+
userSubject: any;
|
|
5
|
+
useAbility: any;
|
|
6
|
+
AbilityContext: any;
|
|
7
|
+
NotPermission: any;
|
|
8
|
+
CanPer: any;
|
|
9
|
+
initAbility: any;
|
|
10
|
+
getOption: any;
|
|
11
|
+
useConfig: any;
|
|
12
|
+
}
|
|
13
|
+
declare const TableConfigPage: (props: II) => React.JSX.Element;
|
|
14
|
+
export default TableConfigPage;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const ModalComponentSetting: (props: {
|
|
3
|
+
getOption: any;
|
|
4
|
+
useConfig: any;
|
|
5
|
+
typeModal: any;
|
|
6
|
+
openModalOrder: any;
|
|
7
|
+
handleModalOrder: any;
|
|
8
|
+
windowSize: any;
|
|
9
|
+
viewId: string;
|
|
10
|
+
optionSchema: any[];
|
|
11
|
+
}) => React.JSX.Element;
|
|
12
|
+
export default ModalComponentSetting;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface II {
|
|
3
|
+
userAction: any;
|
|
4
|
+
userSubject: any;
|
|
5
|
+
CanPer: any;
|
|
6
|
+
initAbility: any;
|
|
7
|
+
getOption: any;
|
|
8
|
+
useConfig: any;
|
|
9
|
+
}
|
|
10
|
+
declare const TableTargetSetup: (props: II) => React.JSX.Element;
|
|
11
|
+
export default TableTargetSetup;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { IUseContext } from '../../ultility/any/IUseContext';
|
|
2
|
+
export interface IContext extends IUseContext {
|
|
3
|
+
setOpenModal?: any;
|
|
4
|
+
setTypeModal?: any;
|
|
5
|
+
handleModalOrder?: any;
|
|
6
|
+
openModalOrder?: any;
|
|
7
|
+
setOpenModalOrder?: any;
|
|
8
|
+
dataDetail?: any;
|
|
9
|
+
setDataDetail?: any;
|
|
10
|
+
dataChildren?: any;
|
|
11
|
+
setDataChildren?: any;
|
|
12
|
+
openCollectTops?: any;
|
|
13
|
+
setOpenCollectTops?: any;
|
|
14
|
+
criteriaGroup?: any;
|
|
15
|
+
setCriteriaGroup?: any;
|
|
16
|
+
dataOpenRoot?: any;
|
|
17
|
+
setDataOpenRoot?: any;
|
|
18
|
+
dataRoot?: any;
|
|
19
|
+
setDataRoot?: any;
|
|
20
|
+
dataView?: any;
|
|
21
|
+
setDataView?: any;
|
|
22
|
+
}
|
|
23
|
+
export declare const TableConfigsContext: import("react").Context<IContext>;
|
package/dist/func.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { INumericFormatted, ITypeNumericFormatted } from "./interface";
|
|
2
|
+
import { IIdContext } from "./ultility/any/IUseContext";
|
|
3
|
+
import { IContextMenu } from "./ultility/any/ITableGrid";
|
|
2
4
|
export declare const loginId: string | null;
|
|
3
5
|
export declare const screenView: any;
|
|
4
6
|
export declare const getCurrentOrganization: any;
|
|
@@ -38,6 +40,17 @@ export declare const lowercaseFirstLetter: (str: any) => any;
|
|
|
38
40
|
export declare const connectString: (t: any, props: string[]) => any;
|
|
39
41
|
export declare const PermissionResolveTree: (data: any) => any[];
|
|
40
42
|
export declare const getFormatColumnsPrint: (type: any) => "dd/MM/yyyy" | "dd/MM/yyyy HH:mm" | undefined;
|
|
43
|
+
export declare const getContext: (arr1: IIdContext[], array2: IContextMenu[]) => {
|
|
44
|
+
label: string;
|
|
45
|
+
key?: string | undefined;
|
|
46
|
+
icon?: any;
|
|
47
|
+
text?: string;
|
|
48
|
+
className?: string;
|
|
49
|
+
action?: any;
|
|
50
|
+
children?: IContextMenu[];
|
|
51
|
+
}[] | undefined;
|
|
52
|
+
export declare const mapTree: (nodes: any[], callback: any) => any[];
|
|
53
|
+
export declare const flattenTree: (nodes: any[]) => any[];
|
|
41
54
|
export declare const getDataTypeColumnsPrint: (type: any) => "number" | "date" | undefined;
|
|
42
55
|
type Node = {
|
|
43
56
|
[key: string]: any;
|