@esvndev/es-react-table-interface 1.0.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.
@@ -0,0 +1,194 @@
1
+ import { TFunction } from 'i18next';
2
+ import { currencies } from './ultility/constantConfigNumeric';
3
+ import { IButtonToolbar, IToolbarTemplate } from './ultility/Export/InterfaceExport';
4
+ import { ColumnsType } from 'es-grid-template/lib/grid-component/type';
5
+ export interface IBreadCrumbsNotLinkProps {
6
+ breadCrumbTitle?: string;
7
+ breadCrumbActive: string;
8
+ breadCrumbParent?: {
9
+ link?: string;
10
+ title: string;
11
+ }[];
12
+ }
13
+ export interface IHeaderToolbar {
14
+ breadCrumb: IBreadCrumbsNotLinkProps;
15
+ buttons?: IButtonToolbar[];
16
+ CanPer: any;
17
+ t: TFunction;
18
+ }
19
+ /**
20
+ * Template dùng cho màn hình giao diện xem danh sách bên ngoài
21
+ * @param toolbarTemplate là các lựa chọn tìm kiếm được đặt cạnh ô tìm kiếm
22
+ * @param paramToolbar là các tham số hình thành toolbarTemplate
23
+ * @param api là api lấy dữ liệu, apiGetDataView: lấy dữ liệu, apiGetOption: lấy danh sách option, apiGetColumns: lấy danh sách cột, vd: api.configApi.pogetdataview
24
+ * @param stateId là viewId của bảng, vd: 'PurchaseRequest, PurchaseOrder, ...'
25
+ * @param viewIdTable là viewId của bảng, vd: 'PurchaseRequest, PurchaseOrder, ...'
26
+ * @param currentPageDefault là trang mặc định khi load lần đầu, vd: 1
27
+ * @param rowsPerPageDefault là số dòng mặc định khi load lần đầu, vd: 100
28
+ * @param queryOrderDefault là thuộc tính sắp xếp mặc định, vd: 'Id desc'
29
+ * @param querySelectDefault là các tham số tìm kiếm mặc định, vd: [{ key: 'PurchaseRequestId', value: 1, ope: '==', predicate: ';' }]
30
+ * @param queryKeyDataView là các tham số ảnh hưởng đến việc tải lại dữ liệu của bảng, vd: ['PurchaseRequestId', 'PurchaseOrderCode', ...]
31
+ * @param isSelectMulti là chọn nhiều dòng hay không, vd: true
32
+ * @param canContextMenuItems là các lựa chọn của context menu, vd: ['Copy', 'Paste', ...]
33
+ * @param handleContextMenuClick là hàm xử lý khi click vào context menu, vd: (props: any) => void
34
+ * @param handleDoubleContextMenuClick là hàm xử lý khi double click vào context menu, vd: (props: any) => void
35
+ * @param rowSelected là dữ liệu của dòng được chọn
36
+ * @param dataSelected là dữ liệu của các dòng đã được chọn
37
+ * @param rowDataBound là hàm xử lý dữ liệu trước khi render bảng, thay đổi màu sắc hiển thị...
38
+ * @param dataSourceFilter là dữ liệu của các ô tìm kiếm của cột loại checkbox
39
+ * @param listContextShow là danh sách các context menu được hiển thị
40
+ * @param listContextHide là danh sách các context menu bị ẩn
41
+ * @param contextMenuOpen là hàm xử lý khi mở context menu, vd: (props: any) => void
42
+ * @param stateId là viewId của bảng, vd: 'PurchaseRequest, PurchaseOrder, ...'
43
+ * @param viewIdTable là ....
44
+ * @param height là chiều cao của bảng
45
+ * @param t là hàm dịch ngôn ngữ
46
+ * @param localeLanguage là hàm dịch ngôn ngữ
47
+ * @param hasIndex hiện số thứ tự
48
+ * @param breakText cho phép text xuống dòng
49
+ * @param showColumnChoose ẩn/hiện
50
+ * @param typeCheckbox loại checkbox checkbox
51
+ * @param rowSelection
52
+ * @param hideSelectAll ẩn/hiện select all
53
+ * @param dataSource dữ liệu của bảng (khi truyền vào sẽ không gọi dữ liệu mặc định)
54
+ * @param totalCount tổng số bản ghi (khi truyền vào sẽ không gọi dữ liệu mặc định)
55
+ * @param stateChildId Mã các bảng con vd ['Table1', 'Table2'], bảng con đính kém: 'AttachFile'
56
+ * @param titleChild Tiêu đề của tabChild
57
+ */
58
+ export interface IExternalInterface {
59
+ rowDataBound?: any;
60
+ stateId: string;
61
+ titleChild?: string;
62
+ stateChildId?: {
63
+ stateId: string;
64
+ stateName: string;
65
+ dataSource?: any[];
66
+ columns?: ColumnsType;
67
+ totalCount?: number;
68
+ allowPaging?: boolean;
69
+ allowResizing?: boolean;
70
+ }[];
71
+ viewIdTable: string;
72
+ currentPageDefault?: number;
73
+ rowsPerPageDefault?: number;
74
+ queryOrderDefault?: {
75
+ field: string;
76
+ order: string;
77
+ }[];
78
+ queryKeyDataView?: any;
79
+ toolbarTemplate?: any;
80
+ paramToolbar?: IToolbarTemplate[];
81
+ isSelectMulti?: boolean;
82
+ hasIndex?: boolean;
83
+ dataSourceFilter?: any[];
84
+ handleContextMenuClick?: (props: any) => void;
85
+ handleDoubleContextMenuClick?: (props: any) => void;
86
+ rowSelected?: any;
87
+ listContextShow?: any;
88
+ listContextHide?: any;
89
+ canContextMenuItems?: any;
90
+ contextMenuOpen?: any;
91
+ dataSelected?: any;
92
+ height?: number;
93
+ maxHeight?: number;
94
+ loading?: boolean;
95
+ breakText?: boolean;
96
+ showToolbar?: boolean;
97
+ typeCheckbox?: 'checkbox' | 'radio' | undefined;
98
+ showColumnChoose?: boolean;
99
+ querySelectDefault?: IQueryFilter[];
100
+ t: TFunction;
101
+ localeLanguage?: any;
102
+ api?: {
103
+ apiGetColumns: any;
104
+ apiGetOption: any;
105
+ apiGetDataView: any;
106
+ };
107
+ format?: {
108
+ thousandSeparator?: string;
109
+ decimalSeparator?: string;
110
+ decimalScale?: number | undefined;
111
+ allowNegative?: boolean;
112
+ prefix?: string | undefined;
113
+ suffix?: string | undefined;
114
+ fixedDecimalScale?: boolean;
115
+ dateFormat?: string;
116
+ datetimeFormat?: string;
117
+ timeFormat?: string;
118
+ weekFormat?: string;
119
+ monthFormat?: string;
120
+ yearFormat?: string;
121
+ };
122
+ allowPaging?: boolean;
123
+ allowResizing?: boolean;
124
+ summary?: boolean;
125
+ rowClassName?: any;
126
+ dataSource?: any[];
127
+ columns?: ColumnsType;
128
+ totalCount?: number;
129
+ hideSelectAll?: boolean;
130
+ rowSelection?: {
131
+ preserveSelectedRowKeys?: boolean;
132
+ selectedRowKeys?: any[];
133
+ defaultSelectedRowKeys?: any[];
134
+ onChange?: (selectedRowKeys: any[], selectedRows: any[], info: {
135
+ type: any;
136
+ }, selectedRow: any) => void;
137
+ getCheckboxProps?: (record: any) => Partial<Omit<any, 'checked' | 'defaultChecked'>>;
138
+ onSelect?: any;
139
+ /** @deprecated This function is deprecated and should use `onChange` instead */
140
+ onSelectMultiple?: (selected: boolean, selectedRows: any[], changeRows: any[]) => void;
141
+ /** @deprecated This function is deprecated and should use `onChange` instead */
142
+ onSelectAll?: (selected: boolean, selectedRows: any[], changeRows: any[]) => void;
143
+ /** @deprecated This function is deprecated and should use `onChange` instead */
144
+ onSelectInvert?: (selectedRowKeys: any[]) => void;
145
+ /** @deprecated This function is deprecated and should use `onChange` instead */
146
+ onSelectNone?: () => void;
147
+ selections?: any[] | boolean;
148
+ hideSelectAll?: boolean;
149
+ fixed?: 'left' | 'right' | boolean;
150
+ columnWidth?: string | number;
151
+ columnTitle?: React.ReactNode | ((checkboxNode: React.ReactNode) => React.ReactNode);
152
+ checkStrictly?: boolean;
153
+ renderCell?: (value: boolean, record: any, index: number, originNode: React.ReactNode) => React.ReactNode | any;
154
+ onCell?: any;
155
+ };
156
+ }
157
+ export interface IQueryFilter {
158
+ key: string;
159
+ value: any;
160
+ ope: string;
161
+ predicate: string;
162
+ }
163
+ export type INumericFormatted = {
164
+ value: number;
165
+ decimalScale?: number;
166
+ type?: ITypeNumericFormatted;
167
+ currency?: keyof typeof currencies;
168
+ };
169
+ export type ITypeNumericFormatted = 'exchangeMoney' | 'overseaMoney' | 'unitPriceExchange' | 'unitPriceOversea' | 'quantity' | 'rate' | 'ratio' | 'allocationRatio' | 'so_cong' | 'checkbox' | 'color' | 'link' | undefined;
170
+ export interface ITableConfigView {
171
+ Id?: string;
172
+ ViewId?: string;
173
+ ColVirtual?: string;
174
+ ColOriginal?: string;
175
+ TblFrom?: string;
176
+ TblAlias?: string;
177
+ LeftJoin?: string;
178
+ Type?: string;
179
+ Title?: string;
180
+ Description?: string;
181
+ TextAlign?: 'left' | 'center' | 'right';
182
+ ColTemplate?: string;
183
+ OptionTemplate?: string;
184
+ TypeDecimal?: ITypeNumericFormatted;
185
+ Freeze?: 'Left' | 'Right' | undefined;
186
+ Width?: number;
187
+ MinWidth?: number;
188
+ MaxWidth?: number;
189
+ SortOrder?: number;
190
+ ColMerge?: number;
191
+ RowMerge?: number;
192
+ IsHidden?: boolean;
193
+ IsActive?: boolean;
194
+ }
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface Iprop {
3
+ listFile: any[];
4
+ height: any;
5
+ }
6
+ declare const TabAttachFile: (props: Iprop) => React.JSX.Element;
7
+ export default TabAttachFile;
@@ -0,0 +1,11 @@
1
+ import Proptypes from 'prop-types';
2
+ import { IBreadCrumbsNotLinkProps } from '../../interface';
3
+ import React from 'react';
4
+ declare const BreadCrumbsNotLink: {
5
+ (props: IBreadCrumbsNotLinkProps): React.JSX.Element;
6
+ propTypes: {
7
+ breadCrumbActive: Proptypes.Validator<string>;
8
+ breadCrumbParent: Proptypes.Requireable<object>;
9
+ };
10
+ };
11
+ export default BreadCrumbsNotLink;
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { ITable2 } from "../../ultility/ITableGrid";
3
+ declare const _default: React.MemoExoticComponent<(props: ITable2) => React.JSX.Element>;
4
+ export default _default;
@@ -0,0 +1,20 @@
1
+ import React from "react";
2
+ import { InputType } from "reactstrap/types/lib/Input";
3
+ interface IFFormInput {
4
+ name?: string;
5
+ type?: InputType;
6
+ height?: number | string;
7
+ width?: number | string;
8
+ disabled?: boolean;
9
+ row?: number;
10
+ autoFocus?: boolean;
11
+ placeholder?: string;
12
+ callback?: any;
13
+ onBlur?: any;
14
+ value?: any;
15
+ setValue?: any;
16
+ isChangeValueOnEnter?: boolean;
17
+ }
18
+ export declare const BoxInput: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
19
+ declare const TextInputNoCtrl: (props: IFFormInput) => React.JSX.Element;
20
+ export default TextInputNoCtrl;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ declare const ReactInput: (props: any) => React.JSX.Element;
3
+ export default ReactInput;
@@ -0,0 +1,28 @@
1
+ import * as Icon from "becoxy-icons";
2
+ import { TFunction } from "i18next";
3
+ export interface IButtonToolbar {
4
+ userAction: string;
5
+ userSubject: string;
6
+ actionClick: () => void;
7
+ title: string;
8
+ color?: string;
9
+ fontSize?: number;
10
+ icon?: keyof typeof Icon;
11
+ disabled?: boolean;
12
+ }
13
+ export interface IToolbarTemplate {
14
+ width?: number;
15
+ type: 'date' | 'daterange' | 'select' | 'selecttree' | 'input';
16
+ placeholder?: string;
17
+ fieldLabel?: string;
18
+ fieldValue?: string;
19
+ keyCode: string;
20
+ data: any;
21
+ setData: any;
22
+ option?: any[];
23
+ isClearable?: boolean;
24
+ columns?: any[];
25
+ isMulti?: boolean;
26
+ t: TFunction;
27
+ position?: string;
28
+ }
@@ -0,0 +1,21 @@
1
+ import { IGridColumns } from "../IGridColumns";
2
+ export declare const renderColumnTableGrid: (res: any[], t: any, more: {
3
+ hasIndex?: boolean;
4
+ breakText?: boolean;
5
+ }) => (import("es-grid-template/lib/grid-component/type").ColumnType<import("es-grid-template/lib/grid-component/type").AnyObject> | import("es-grid-template/lib/grid-component/type").ColumnEditType<import("es-grid-template/lib/grid-component/type").AnyObject>)[];
6
+ /**
7
+ * render cột cho table be-table-template
8
+ * @param res là dữ liệu cấu hình bảng api trả về
9
+ * @param t là hàm dịch ngôn ngữ
10
+ */
11
+ export declare const renderColumnTable: (res: any[], t: any, hasIndex?: boolean) => IGridColumns[];
12
+ /**
13
+ * render cột cho table be-table-template
14
+ * @param res là dữ liệu cấu hình bảng api trả về
15
+ * @param listViewId là danh sách viewId của bảng
16
+ * @param isGetDataAuto có lấy dữ liệu tự động hay không
17
+ * @param t là hàm dịch ngôn ngữ
18
+ */
19
+ export declare const renderColumnTableBe: (res: any[], t: any, listViewId: any[], hasIndex?: boolean) => {
20
+ [key: string]: any[];
21
+ };
@@ -0,0 +1,2 @@
1
+ export * from './InterfaceExport';
2
+ export * from './functionExport';
@@ -0,0 +1,52 @@
1
+ export type IFColumnType = "number" | "date" | "datetime" | "string" | "boolean" | "checkbox" | "currency" | null | undefined;
2
+ export type IFTextAlign = "center" | "left" | "right" | "Center" | "Left" | "Right";
3
+ export type IFClipMode = "Clip" | "Ellipsis" | "EllipsisWithTooltip";
4
+ export type IFTypeOfTypeFilter = "Dropdown" | "Number" | "DropTree" | "Date" | "Time" | "DateRange" | "Checkbox" | "Range";
5
+ export type IFTypeExport = "date" | "datetime" | "number" | "option" | null | undefined;
6
+ export interface IGridColumns {
7
+ isPrimaryKey?: boolean;
8
+ field?: string;
9
+ headerText?: string;
10
+ headerTextAlign?: IFTextAlign;
11
+ headerDescription?: string;
12
+ textAlign?: IFTextAlign;
13
+ headerTemplate?: any;
14
+ visible?: any;
15
+ note?: any;
16
+ width?: number | string;
17
+ minWidth?: number | string;
18
+ maxWidth?: number | string;
19
+ type?: IFColumnType;
20
+ filter?: Object;
21
+ typeFilter?: IFTypeOfTypeFilter;
22
+ typeExport?: IFTypeExport;
23
+ filterBarTemplate?: any;
24
+ filterTemplate?: any;
25
+ allowFiltering?: boolean;
26
+ allowGrouping?: boolean;
27
+ allowResizing?: boolean;
28
+ allowSearching?: boolean;
29
+ allowSorting?: boolean;
30
+ autoFit?: boolean;
31
+ edit?: any;
32
+ format?: any;
33
+ formatter?: any;
34
+ freeze?: 'Right' | 'Left';
35
+ showColumnMenu?: boolean;
36
+ template?: any;
37
+ commands?: any;
38
+ hideOperator?: boolean;
39
+ clipMode?: IFClipMode;
40
+ editType?: string;
41
+ source?: any;
42
+ description?: string;
43
+ allowEditing?: boolean;
44
+ show?: any;
45
+ haveSum?: boolean;
46
+ isWorkFlow?: boolean;
47
+ }
48
+ export interface IGridFooter {
49
+ field: string;
50
+ value: number;
51
+ currencyCode?: string;
52
+ }
@@ -0,0 +1,207 @@
1
+ import { ReactNode } from "react";
2
+ import { IGridColumns } from "./IGridColumns";
3
+ import { TFunction } from "i18next";
4
+ export interface IRowInfo {
5
+ type?: string;
6
+ data?: any;
7
+ }
8
+ interface ITableDefault {
9
+ resource?: string;
10
+ idTable?: string;
11
+ columns?: any;
12
+ dataTable: any;
13
+ height?: number | string;
14
+ }
15
+ export interface IRowSelected {
16
+ rowData?: any;
17
+ selected?: any;
18
+ rightClick?: boolean;
19
+ }
20
+ export interface ITable extends ITableDefault {
21
+ ref?: any;
22
+ columns?: any;
23
+ rowHeight?: any;
24
+ showToolbar?: boolean;
25
+ allowFilter?: boolean;
26
+ allowSort?: boolean;
27
+ showPagination?: boolean;
28
+ pageSize?: number;
29
+ totalItem?: number;
30
+ setCurrentPage?: any;
31
+ setPageSize?: any;
32
+ setToolbarAction?: any;
33
+ setCommandData?: any;
34
+ showContextMenu?: boolean;
35
+ setContextMenuClick?: any;
36
+ contextMenuItems?: any[];
37
+ contextMenuOpen?: any;
38
+ listContextHide?: any;
39
+ listContextShow?: any;
40
+ recordDoubleClick?: any;
41
+ allowGrouping?: boolean;
42
+ allowExcelExport?: boolean;
43
+ groupBy?: string;
44
+ exports?: boolean;
45
+ searchTerm?: any;
46
+ setSearchTerm?: any;
47
+ setQueryFilter?: any;
48
+ filterColumnsOptions?: any;
49
+ queryFilter?: any;
50
+ dataSourceFilter?: any;
51
+ setDataSelected?: any;
52
+ selectionSettings?: any;
53
+ listDateRange?: any[];
54
+ allowResizing?: boolean;
55
+ childMapping?: any;
56
+ dataInjectServices?: any;
57
+ editOptions?: any;
58
+ handleClick?: any;
59
+ queryOrder?: any;
60
+ setQueryOrder?: any;
61
+ allowPaging?: boolean;
62
+ setDoubleClickData?: any;
63
+ enablePersistence?: boolean;
64
+ currentPage?: number;
65
+ showColumnChooser?: any;
66
+ frozenColumns?: any;
67
+ groupSettings?: any;
68
+ aggregateColumn?: any;
69
+ dataSelected?: any;
70
+ toolbarTemplate?: any;
71
+ showDropArea?: boolean;
72
+ setRowInfo?: any;
73
+ childGrid?: any;
74
+ searchForm?: boolean;
75
+ rowDataBound?: any;
76
+ columnsAggregate?: any;
77
+ customClass?: any;
78
+ style?: any;
79
+ gridLines?: 'Both' | 'Default';
80
+ isRefreshGrid?: boolean;
81
+ searchColumnsOptions?: any;
82
+ handleContextMenuClick?: (props: any) => void;
83
+ rowSelected?: (props: IRowSelected) => void;
84
+ }
85
+ export interface ITable2 extends ITableDefault {
86
+ ref?: any;
87
+ columns: IGridColumns[];
88
+ rowHeight?: any;
89
+ hasWorkflow?: boolean;
90
+ showToolbar?: boolean;
91
+ allowFilter?: boolean;
92
+ allowSort?: boolean;
93
+ showPagination?: boolean;
94
+ pageSize?: number;
95
+ totalItem?: number;
96
+ setCurrentPage?: any;
97
+ setPageSize?: any;
98
+ setToolbarAction?: any;
99
+ setCommandData?: any;
100
+ showContextMenu?: boolean;
101
+ handleContextMenuClick?: (props: any) => void;
102
+ contextMenuItems?: any[];
103
+ contextMenuOpen?: (props: any) => void;
104
+ listContextHide?: any;
105
+ listContextShow?: any;
106
+ recordDoubleClick?: any;
107
+ allowGrouping?: boolean;
108
+ allowExcelExport?: boolean;
109
+ groupBy?: string;
110
+ templateGroup?: any;
111
+ exports?: boolean;
112
+ searchTerm?: any;
113
+ setSearchTerm?: any;
114
+ setQueryFilter?: any;
115
+ filterColumnsOptions?: any;
116
+ queryFilter?: any;
117
+ dataSourceFilter?: any;
118
+ selectionSettings?: any;
119
+ listDateRange?: any[];
120
+ allowResizing?: boolean;
121
+ childMapping?: any;
122
+ dataInjectServices?: any;
123
+ editOptions?: any;
124
+ handleClick?: any;
125
+ queryOrder?: any;
126
+ setQueryOrder?: any;
127
+ setDoubleClickData?: any;
128
+ allowPaging?: boolean;
129
+ handleDoubleClick?: (props: any) => void;
130
+ enablePersistence?: boolean;
131
+ currentPage?: number;
132
+ showColumnChooser?: any;
133
+ frozenColumns?: any;
134
+ groupSettings?: any;
135
+ aggregateColumn?: any;
136
+ toolbarTemplate?: any;
137
+ showDropArea?: boolean;
138
+ searchForm?: boolean;
139
+ rowSelected?: (props: IRowSelected) => void;
140
+ columnsAggregate?: IColumnsAggregate[];
141
+ customClass?: any;
142
+ typeSelect?: 'Multiple' | 'Single';
143
+ dataSelected?: any;
144
+ rowDataBound?: any;
145
+ gridLines?: 'Both' | 'Default';
146
+ isRefreshGrid?: boolean;
147
+ t: TFunction;
148
+ }
149
+ export interface IContextMenu {
150
+ id: string;
151
+ text: string;
152
+ target?: string;
153
+ iconCss?: string;
154
+ }
155
+ export interface IRowInfo {
156
+ type?: string;
157
+ data?: any;
158
+ index?: number;
159
+ }
160
+ export interface IListOptionFilter {
161
+ key?: string;
162
+ data?: any;
163
+ }
164
+ export interface ITableTemplate extends ITableDefault {
165
+ typeModal?: boolean;
166
+ setDataTable?: any;
167
+ allowPaging?: boolean;
168
+ pageSize?: number;
169
+ totalItem?: number;
170
+ setCurrentPage?: any;
171
+ setPageSize?: any;
172
+ showContextMenu?: boolean;
173
+ setContextMenuClick?: any;
174
+ contextMenuItems?: any[];
175
+ contextMenuOpen?: any;
176
+ listContextShow?: any;
177
+ listContextHide?: any;
178
+ recordDoubleClick?: any;
179
+ allowExcelExport?: boolean;
180
+ setDataSelected?: any;
181
+ selectionSettings?: any;
182
+ allowResizing?: boolean;
183
+ setDoubleClickData?: any;
184
+ currentPage?: number;
185
+ inlineEdit?: boolean;
186
+ setCommandClick?: any;
187
+ allowEditOnDblClick?: boolean;
188
+ allowDeleting?: boolean;
189
+ allowEditing?: boolean;
190
+ allowAdding?: boolean;
191
+ allowSelection?: boolean;
192
+ listDelete?: any;
193
+ setListDelete?: any;
194
+ rowDataBound?: any;
195
+ columnsAggregate?: any;
196
+ customClass?: any;
197
+ }
198
+ export type ITypeAggregate = 'Sum' | 'Average' | 'Min' | 'Max' | 'Count' | 'Truecount' | 'Falsecount' | 'Custom';
199
+ export interface IColumnsAggregate {
200
+ field: string;
201
+ type: ITypeAggregate;
202
+ value: any;
203
+ currency?: any;
204
+ showCurrency?: boolean;
205
+ label?: string | ReactNode;
206
+ }
207
+ export {};
@@ -0,0 +1,20 @@
1
+ export declare const defaultNumericConfig: {
2
+ thousandSeparatorDisplay: string;
3
+ decimalSeparatorDisplay: string;
4
+ thousandSeparatorReport: string;
5
+ decimalSeparatorReport: string;
6
+ exchangeMoney: number;
7
+ overseaMoney: number;
8
+ unitPriceExchange: number;
9
+ unitPriceOversea: number;
10
+ quantity: number;
11
+ rate: number;
12
+ ratio: number;
13
+ allocationRatio: number;
14
+ so_cong: number;
15
+ symbolNegative: string;
16
+ colorNegative: string;
17
+ prefixNegative: string;
18
+ suffixNegative: string;
19
+ };
20
+ export declare const currencies: any;
@@ -0,0 +1,3 @@
1
+ export declare const operator: any;
2
+ export declare const direction: any;
3
+ export declare const predicate: any;
@@ -0,0 +1,3 @@
1
+ export declare const apiGetOption: (data?: Record<string, any>, config?: RequestInit, timeout?: number) => Promise<any>;
2
+ export declare const apiTableConfig: (data?: any, config?: any, timeout?: number) => Promise<any>;
3
+ export declare const apiGetDataView: (data?: any, config?: any, timeout?: number) => Promise<any>;
@@ -0,0 +1,39 @@
1
+ declare const themeConfig: {
2
+ app: {
3
+ appName: string;
4
+ appLogoImage: string;
5
+ };
6
+ layout: {
7
+ isRTL: boolean;
8
+ skin: string;
9
+ type: string;
10
+ contentWidth: string;
11
+ menu: {
12
+ isHidden: boolean;
13
+ isCollapsed: boolean;
14
+ };
15
+ navbar: {
16
+ height: number;
17
+ type: string;
18
+ backgroundColor: string;
19
+ };
20
+ footer: {
21
+ type: string;
22
+ height: number;
23
+ };
24
+ customizer: boolean;
25
+ scrollTop: boolean;
26
+ toastPosition: "top-right";
27
+ };
28
+ system: {
29
+ dateFormat: string;
30
+ dateTimeFormat: string;
31
+ timeFormat: string;
32
+ dateFormatMoment: string;
33
+ dateTimeFormatMoment: string;
34
+ pageSizes: number[];
35
+ };
36
+ selectZIndex: number;
37
+ themeColor: string;
38
+ };
39
+ export default themeConfig;