@esvndev/es-react-table-interface 1.7.95 → 1.7.97

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.
Files changed (34) hide show
  1. package/dist/component/ExternalInterface/columns.d.ts +65 -0
  2. package/dist/component/ExternalInterface/func.d.ts +1 -0
  3. package/dist/component/ToolbarTemplate/index.d.ts +2 -0
  4. package/dist/component/option_configs/contextMenu.d.ts +3 -0
  5. package/dist/component/option_configs/index.d.ts +12 -0
  6. package/dist/component/option_configs/modal/modal.d.ts +5 -0
  7. package/dist/component/option_configs/table.d.ts +8 -0
  8. package/dist/component/option_configs/useContext.d.ts +11 -0
  9. package/dist/component/table_configs/contextMenu.d.ts +3 -0
  10. package/dist/component/table_configs/index.d.ts +14 -0
  11. package/dist/component/table_configs/modalSetting.d.ts +12 -0
  12. package/dist/component/table_configs/table.d.ts +11 -0
  13. package/dist/component/table_configs/useContext.d.ts +23 -0
  14. package/dist/func.d.ts +13 -0
  15. package/dist/index.js +54 -54
  16. package/dist/interface.d.ts +8 -2
  17. package/dist/libs/grid-table-template-2/index.d.ts +1 -1
  18. package/dist/libs/numeric-input/index.d.ts +31 -0
  19. package/dist/ultility/Export/functionExport.d.ts +1 -1
  20. package/dist/ultility/any/IGridColumns.d.ts +53 -0
  21. package/dist/ultility/any/ISetup.d.ts +173 -0
  22. package/dist/ultility/any/ITableGrid.d.ts +210 -0
  23. package/dist/ultility/any/IUseContext.d.ts +28 -0
  24. package/dist/ultility/any/constantConfigNumeric.d.ts +20 -0
  25. package/dist/ultility/any/constantContextMenu.d.ts +2 -0
  26. package/dist/ultility/any/constantOperator.d.ts +3 -0
  27. package/dist/ultility/any/index.d.ts +2 -0
  28. package/dist/ultility/any/themeConfig.d.ts +39 -0
  29. package/dist/ultility/api/config/index.d.ts +21 -0
  30. package/dist/ultility/api/constant.d.ts +33 -0
  31. package/dist/ultility/api/index.d.ts +19 -0
  32. package/dist/ultility/api/menu/index.d.ts +8 -0
  33. package/dist/ultility/api/requester.d.ts +9 -0
  34. package/package.json +3 -3
@@ -1,9 +1,9 @@
1
1
  import { TFunction } from 'i18next';
2
- import { currencies } from './ultility/constantConfigNumeric';
2
+ import { currencies } from './ultility/any/constantConfigNumeric';
3
3
  import { IButtonToolbar, IToolbarTemplate } from './ultility/Export/InterfaceExport';
4
4
  import { ColumnsTable, ColumnTable } from 'es-grid-template/lib/grid-component/type';
5
5
  import { IFColumnSelectTable } from 'react-table-edit';
6
- import { IFDataSetup } from './ultility/ISetup';
6
+ import { IFDataSetup } from './ultility/any/ISetup';
7
7
  export interface IBreadCrumbsNotLinkProps {
8
8
  breadCrumbTitle?: string;
9
9
  breadCrumbActive: string;
@@ -93,6 +93,8 @@ export interface IExternalInterface {
93
93
  querySelectDefault?: IQueryFilter[];
94
94
  /**Danh sách dữ liệu được truyền vào (không bắt buộc)*/
95
95
  dataSource?: any[];
96
+ /**Object tính tổng tất cả danh sách*/
97
+ sumTotal?: any;
96
98
  /**Danh sách khai báo cột được truyền vào (không bắt buộc)*/
97
99
  columns?: ColumnTable[];
98
100
  /**Có hiển thị tổng số bản ghi không*/
@@ -377,6 +379,8 @@ export interface IExternalInterface {
377
379
  rowClassName?: any;
378
380
  /**Danh sách dữ liệu được truyền vào (không bắt buộc)*/
379
381
  dataSource?: any[];
382
+ /**Object tính tổng tất cả danh sách*/
383
+ sumTotal?: any;
380
384
  /**Biến kiểm tra thay đổi*/
381
385
  checkInit?: any;
382
386
  /**Danh sách biến kiểm tra thay đổi*/
@@ -501,6 +505,8 @@ export interface ISettingTable {
501
505
  isGroupClient?: boolean;
502
506
  hiddenColumnGroup?: boolean;
503
507
  showGroupIcon?: boolean;
508
+ showSum?: boolean;
509
+ showSumTotal?: boolean;
504
510
  breakText?: 'Header' | 'Content' | 'Both';
505
511
  }
506
512
  export {};
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
- import { ITable2 } from "../../ultility/ITableGrid";
2
+ import { ITable2 } from "../../ultility/any/ITableGrid";
3
3
  declare const _default: React.MemoExoticComponent<(props: ITable2) => React.JSX.Element>;
4
4
  export default _default;
@@ -0,0 +1,31 @@
1
+ import React from "react";
2
+ interface IFormInput {
3
+ control: any;
4
+ name: string;
5
+ label: string;
6
+ labelSize?: any;
7
+ required?: boolean;
8
+ errors?: any;
9
+ height?: number | string;
10
+ disabled?: boolean;
11
+ isLabel?: boolean;
12
+ inLine?: boolean;
13
+ placeholder?: string;
14
+ min?: number;
15
+ max?: number;
16
+ step?: number;
17
+ format?: string;
18
+ title?: string;
19
+ currency?: string;
20
+ callback?: any;
21
+ showSpinButton?: boolean;
22
+ allowNegative?: boolean;
23
+ thousandSeparator?: any;
24
+ decimalSeparator?: any;
25
+ decimalScale?: number | undefined;
26
+ fixedDecimalScale?: boolean | undefined;
27
+ prefix?: string | undefined;
28
+ suffix?: string | undefined;
29
+ }
30
+ declare const NumericInputCustom: (props: IFormInput) => React.JSX.Element;
31
+ export default NumericInputCustom;
@@ -1,4 +1,4 @@
1
- import { IFDataSetup } from "../ISetup";
1
+ import { IFDataSetup } from "../any/ISetup";
2
2
  export declare const renderColumnTableGrid: (res: any[], t: any, more: {
3
3
  hasIndex?: boolean;
4
4
  breakText?: "Content" | "Header" | "Both";
@@ -0,0 +1,53 @@
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
+ tree?: number;
48
+ }
49
+ export interface IGridFooter {
50
+ field: string;
51
+ value: number;
52
+ currencyCode?: string;
53
+ }
@@ -0,0 +1,173 @@
1
+ export interface IFDataSetup {
2
+ /** ID cấu hình (tùy chọn) */ id?: string; /** ID tổ chức liên kết với cấu hình */
3
+ organizationId: string; /** Cấu hình tài khoản */
4
+ account: IFDataSetupAccountNumber; /** Cấu hình định dạng số */
5
+ number: IFDataSetupNumber; /** Cấu hình hạch toán */
6
+ accounting: IFDataSetupAccounting; /** Cấu hình sản phẩm */
7
+ product: IFDataSetupProduct; /** Cấu hình kho hàng */
8
+ warehouse: IFDataSetupWarehouse; /** Cấu hình chữ ký */
9
+ signature: IFDataSetupSignature; /** Cấu hình định dạng ngày giờ */
10
+ datetime: IFDataSetupDatetime; /** Cấu hình hiển thị */
11
+ display: IFDataSetupDisplay;
12
+ }
13
+ export interface IFDataSetupNumber {
14
+ /** Tiêu đề cấu hình định dạng số */ title: string;
15
+ /** Ký tự phân cách hàng nghìn, ví dụ: ',' hoặc '.' */
16
+ thousandSeparator: string;
17
+ /** Ký tự phân cách thập phân, ví dụ: '.' hoặc ',' */
18
+ decimalSeparator: string;
19
+ /** Số chữ số thập phân cho giá trị nội tệ */
20
+ exchangeMoney: number;
21
+ /** Số chữ số thập phân cho giá trị ngoại tệ */
22
+ overseaMoney: number;
23
+ /** Số chữ số thập phân cho đơn giá nội tệ */
24
+ unitPriceExchange: number;
25
+ /** Số chữ số thập phân cho đơn giá ngoại tệ */
26
+ unitPriceOversea: number;
27
+ /** Số chữ số thập phân cho số lượng */
28
+ quantity: number;
29
+ /** Số chữ số thập phân cho tỷ giá */
30
+ rate: number;
31
+ /** Số chữ số thập phân cho hệ số (tỷ lệ) */
32
+ ratio: number;
33
+ /** Số chữ số thập phân cho tỷ lệ phân bổ */
34
+ allocationRatio: number;
35
+ /** Ký hiệu hiển thị cho số âm, ví dụ: '()', '-', hoặc '' */
36
+ symbolNegative: string;
37
+ /** Màu hiển thị cho số âm, ví dụ: 'red', '#ff0000' */
38
+ colorNegative: string;
39
+ /** Tiền tố cho số âm, ví dụ: '-' trong '-1.000' */
40
+ prefixNegative: string;
41
+ /** Hậu tố cho số âm, ví dụ: '%' trong '1.000%' */
42
+ suffixNegative: string;
43
+ }
44
+ export interface IFDataSetupAccountNumber {
45
+ /** Tiêu đề cấu hình tài khoản */ title: string;
46
+ /** Tài khoản có */
47
+ creditAccount: string;
48
+ /** Tài khoản nợ */
49
+ debitAccount: string;
50
+ /** Mục chi phí của tài khoản nợ (tùy chọn) */
51
+ debitExpenseItemId?: string;
52
+ /** Tài khoản có chênh lệch */
53
+ creditDiffAccount: string;
54
+ /** Tài khoản nợ chênh lệch */
55
+ debitDiffAccount: string;
56
+ /** Mục chi phí có chênh lệch (tùy chọn) */
57
+ debitDiffExpenseItemId?: string;
58
+ }
59
+ export interface IFDataSetupAccounting {
60
+ /** ID cấu hình hạch toán (tùy chọn) */ id?: string;
61
+ /** Tiêu đề cấu hình */
62
+ title: string;
63
+ /** Mã tiền tệ dùng để hạch toán (ví dụ: "VND", "USD") */
64
+ currencyCode: string;
65
+ /** Ngày bắt đầu hạch toán */
66
+ startDate: Date;
67
+ /** Ngày bắt đầu năm tài chính (1 - 31) */
68
+ startDateAcc: number;
69
+ /** Có sinh mã theo tổ chức hay không */
70
+ genOrganizationId?: boolean;
71
+ /** Có sinh mã theo loại chứng từ hay không */
72
+ genDocumentType?: boolean;
73
+ }
74
+ export interface IFDataSetupProduct {
75
+ /** Tiêu đề cấu hình sản phẩm */ title: string;
76
+ /** Quy tắc theo dõi mã quy cách */
77
+ trackCodeSpecification: number;
78
+ /** Cho phép quét mã vạch */
79
+ allowsBarcodeScanning: number;
80
+ /** Ký tự phân tách trong mã quy cách */
81
+ speCodeSeparator: string;
82
+ }
83
+ export interface IFDataSetupWarehouse {
84
+ /** Tiêu đề cấu hình kho */ title: string;
85
+ /** Cho phép tồn kho âm */
86
+ negativeInventory: boolean;
87
+ /** Phương pháp tính giá */
88
+ calculationMethodPrice: number;
89
+ isRealName: boolean;
90
+ isAverageEndPeriod: boolean;
91
+ /** Các loại tồn kho chi tiết */
92
+ inventoryByLocation: boolean;
93
+ inventoryByOrder: boolean;
94
+ inventoryByCustomer: boolean;
95
+ inventoryByConstruction: boolean;
96
+ inventoryBySerial: boolean;
97
+ inventoryByExpiry: boolean;
98
+ inventoryByContract: boolean;
99
+ inventoryByDepartment: boolean;
100
+ inventoryByPallet: boolean;
101
+ inventoryByWarehouseInDate: boolean;
102
+ inventoryByArea: boolean;
103
+ /** Các loại tồn kho chi tiết */
104
+ requiredLocation: number;
105
+ requiredOrder: number;
106
+ requiredCustomer: number;
107
+ requiredConstruction: number;
108
+ requiredSerial: number;
109
+ requiredExpiry: number;
110
+ requiredContract: number;
111
+ requiredDepartment: number;
112
+ requiredPallet: number;
113
+ requiredWarehouseInDate: number;
114
+ requiredArea: number;
115
+ /** Các phương pháp tính giá theo từng tiêu chí */
116
+ calculationByLocation: boolean;
117
+ calculationByOrder: boolean;
118
+ calculationByCustomer: boolean;
119
+ calculationByConstruction: boolean;
120
+ calculationBySerial: boolean;
121
+ calculationByExpiry: boolean;
122
+ calculationByContract: boolean;
123
+ calculationByDepartment: boolean;
124
+ calculationByPallet: boolean;
125
+ calculationByWarehouseInDate: boolean;
126
+ calculationByArea: boolean;
127
+ }
128
+ export interface IFDataSetupSignature {
129
+ /** Tiêu đề cấu hình chữ ký */ title: string;
130
+ /** Danh sách người ký */
131
+ detail: IFDataSetupSignatureDetail[];
132
+ /** In tên người ký lên chứng từ và báo cáo */
133
+ reportSigning: number;
134
+ /** Lấy tên người lập theo tên người đăng nhập */
135
+ loginSigning: number;
136
+ }
137
+ export interface IFDataSetupSignatureDetail {
138
+ /** Chức vụ người ký */ position: string;
139
+ /** Danh xưng (ví dụ: Giám đốc, Kế toán trưởng) */
140
+ title: string;
141
+ /** Họ tên người ký */
142
+ name: string;
143
+ /** Mã người ký */
144
+ code: string;
145
+ }
146
+ export interface IFDataSetupDatetime {
147
+ /** Tiêu đề cấu hình ngày giờ */ title: string;
148
+ /** Định dạng ngày hiển thị giao diện (ví dụ: "dd/MM/yyyy") */
149
+ dateInterface: string;
150
+ /** Định dạng giờ hiển thị giao diện */
151
+ timeInterface: string;
152
+ /** Định dạng ngày nhập/xuất dữ liệu */
153
+ dateImportExport: string;
154
+ /** Định dạng ngày xuất Excel */
155
+ excel: string;
156
+ /** Định dạng ngày xuất Word */
157
+ word: string;
158
+ /** Định dạng giờ khi in */
159
+ timePrint: string;
160
+ }
161
+ export interface IFDataSetupDisplay {
162
+ /** Tùy chọn số dòng mỗi trang khi hiển thị */ pageOptions: number[];
163
+ /** Số dòng mặc định mỗi trang */
164
+ pageSize: number;
165
+ /** Tùy chọn số dòng mỗi trang khi chỉnh sửa */
166
+ editPageOptions: number[];
167
+ /** Số dòng mặc định mỗi trang khi chỉnh sửa */
168
+ editPageSize: number;
169
+ /** Tùy chọn số dòng mỗi trang khi in báo cáo */
170
+ reportPageOptions: number[];
171
+ /** Số dòng mặc định mỗi trang báo cáo */
172
+ reportPageSize: number;
173
+ }
@@ -0,0 +1,210 @@
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
+ key: string;
151
+ icon?: any;
152
+ label: string;
153
+ text?: string;
154
+ className?: string;
155
+ action: any;
156
+ children?: IContextMenu[];
157
+ }
158
+ export interface IRowInfo {
159
+ type?: string;
160
+ data?: any;
161
+ index?: number;
162
+ }
163
+ export interface IListOptionFilter {
164
+ key?: string;
165
+ data?: any;
166
+ }
167
+ export interface ITableTemplate extends ITableDefault {
168
+ typeModal?: boolean;
169
+ setDataTable?: any;
170
+ allowPaging?: boolean;
171
+ pageSize?: number;
172
+ totalItem?: number;
173
+ setCurrentPage?: any;
174
+ setPageSize?: any;
175
+ showContextMenu?: boolean;
176
+ setContextMenuClick?: any;
177
+ contextMenuItems?: any[];
178
+ contextMenuOpen?: any;
179
+ listContextShow?: any;
180
+ listContextHide?: any;
181
+ recordDoubleClick?: any;
182
+ allowExcelExport?: boolean;
183
+ setDataSelected?: any;
184
+ selectionSettings?: any;
185
+ allowResizing?: boolean;
186
+ setDoubleClickData?: any;
187
+ currentPage?: number;
188
+ inlineEdit?: boolean;
189
+ setCommandClick?: any;
190
+ allowEditOnDblClick?: boolean;
191
+ allowDeleting?: boolean;
192
+ allowEditing?: boolean;
193
+ allowAdding?: boolean;
194
+ allowSelection?: boolean;
195
+ listDelete?: any;
196
+ setListDelete?: any;
197
+ rowDataBound?: any;
198
+ columnsAggregate?: any;
199
+ customClass?: any;
200
+ }
201
+ export type ITypeAggregate = 'Sum' | 'Average' | 'Min' | 'Max' | 'Count' | 'Truecount' | 'Falsecount' | 'Custom';
202
+ export interface IColumnsAggregate {
203
+ field: string;
204
+ type: ITypeAggregate;
205
+ value: any;
206
+ currency?: any;
207
+ showCurrency?: boolean;
208
+ label?: string | ReactNode;
209
+ }
210
+ export {};
@@ -0,0 +1,28 @@
1
+ type ITypeModal = 'Add' | 'Edit' | 'View' | 'Process' | 'Copy' | 'Order' | 'Approval' | 'Duplicate' | 'RequestEditCancel' | '';
2
+ export interface IUseContext {
3
+ windowSize?: any;
4
+ openModal?: boolean;
5
+ openModalView?: boolean;
6
+ handleModalView?: any;
7
+ handleAside?: any;
8
+ handleModal?: any;
9
+ typeModal?: any;
10
+ setTypeModal?: (value: any) => void;
11
+ openSubModal?: any;
12
+ handleSubModal?: any;
13
+ typeSubModal?: any;
14
+ setTypeSubModal?: (value: ITypeModal) => void;
15
+ dataItem?: any;
16
+ setDataItem?: any;
17
+ openModalDetail?: any;
18
+ handleModalDetail?: any;
19
+ setDataModalPO?: any;
20
+ }
21
+ export interface IUseContextVendor extends IUseContext {
22
+ typeModalOrganization?: any;
23
+ setTypeModalOrganization?: (value: ITypeModal) => any;
24
+ }
25
+ export interface IIdContext {
26
+ id: string;
27
+ }
28
+ 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,2 @@
1
+ import { IContextMenu } from './ITableGrid';
2
+ export declare const ContextMenuItems: IContextMenu[];
@@ -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,2 @@
1
+ import React from "react";
2
+ export declare const currentProcessTemplate: (props: any, t: any) => React.JSX.Element;
@@ -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;
@@ -0,0 +1,21 @@
1
+ export type IParamsConfigByCode = {
2
+ code: string;
3
+ group?: string;
4
+ };
5
+ declare const _default: {
6
+ configApi: {
7
+ getCodeManualApi: (params: {
8
+ Data: string;
9
+ }) => Promise<any>;
10
+ getConfigByCodeApi: (params: IParamsConfigByCode) => Promise<any>;
11
+ getSystemOption: (props: {
12
+ stateId: string;
13
+ }) => Promise<any>;
14
+ getdataview: (params: any) => Promise<any>;
15
+ tableconfigAddEditDelete: (params: any) => Promise<any>;
16
+ optionconfigAddEditDelete: (params: any) => Promise<any>;
17
+ getcolumn: (params: any) => Promise<any>;
18
+ getoption: (params: any) => Promise<any>;
19
+ };
20
+ };
21
+ export default _default;
@@ -0,0 +1,33 @@
1
+ export declare const BASE_URL: string | undefined;
2
+ export declare const MASTER_CONFIG: {
3
+ ACTION_TYPES: {
4
+ GET_BY_CODE: string;
5
+ GET_DATAVIEW: string;
6
+ TABLECONFIG_ADD_EDIT_DELETE: string;
7
+ OPTIONCONFIG_ADD_EDIT_DELETE: string;
8
+ GET_COLUMN: string;
9
+ GET_CONFIG_OPTION: string;
10
+ GET_OPTION_FIXED: string;
11
+ GET_CODE: string;
12
+ };
13
+ URL_API: {
14
+ GET_BY_CODE_API: string;
15
+ GET_DATAVIEW: string;
16
+ TABLECONFIG_ADD_EDIT_DELETE: string;
17
+ OPTIONCONFIG_ADD_EDIT_DELETE: string;
18
+ GET_COLUMN: string;
19
+ GET_OPTION: string;
20
+ GET_OPTION_FIXED_API: string;
21
+ GET_CODE_API: string;
22
+ };
23
+ };
24
+ export declare const MENU: {
25
+ ACTION_TYPES: {
26
+ GET_DATA_TREE_MENU: string;
27
+ GET_DATA_LIST_MENU: string;
28
+ };
29
+ URL_API: {
30
+ GET_MENU_API: string;
31
+ GET_MENU_TREE_API: string;
32
+ };
33
+ };