@esvndev/es-react-table-interface 1.0.8 → 1.0.10

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.
@@ -105,6 +105,20 @@ export interface IExternalInterface {
105
105
  apiGetOption: any;
106
106
  apiGetDataView: any;
107
107
  };
108
+ apiWorkflow?: {
109
+ checkInitProcess: any;
110
+ checkInitComment: any;
111
+ getProcessApi: any;
112
+ approveProcessApi: any;
113
+ approveMultiProcessApi: any;
114
+ getCommentPagingApi: any;
115
+ addCommentApi: any;
116
+ deleteCommentApi: any;
117
+ getUserCorePagingApi: any;
118
+ uploadFileApi: any;
119
+ initProcessApi: any;
120
+ deleteProcessApi: any;
121
+ };
108
122
  format?: {
109
123
  thousandSeparator?: string;
110
124
  decimalSeparator?: string;
@@ -123,6 +137,7 @@ export interface IExternalInterface {
123
137
  allowPaging?: boolean;
124
138
  allowResizing?: boolean;
125
139
  summary?: boolean;
140
+ hasWorkflow?: boolean;
126
141
  rowClassName?: any;
127
142
  dataSource?: any[];
128
143
  checkInit?: any;
@@ -12,7 +12,7 @@ export interface IButtonToolbar {
12
12
  }
13
13
  export interface IToolbarTemplate {
14
14
  width?: number;
15
- type: 'date' | 'daterange' | 'select' | 'selecttree' | 'input';
15
+ type: 'date' | 'daterange' | 'select' | 'selecttree' | 'input' | 'listDate';
16
16
  placeholder?: string;
17
17
  fieldLabel?: string;
18
18
  fieldValue?: string;
@@ -2,7 +2,8 @@ import { IGridColumns } from "../IGridColumns";
2
2
  export declare const renderColumnTableGrid: (res: any[], t: any, more: {
3
3
  hasIndex?: boolean;
4
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>)[];
5
+ hasWorkflow?: boolean;
6
+ }) => import("es-grid-template/lib/grid-component/type").ColumnType<any>[];
6
7
  /**
7
8
  * render cột cho table be-table-template
8
9
  * @param res là dữ liệu cấu hình bảng api trả về
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export declare const currentProcessTemplate: (props: any) => React.JSX.Element;
@@ -1,3 +1,6 @@
1
+ export declare const BASE_URL: string | undefined;
2
+ export declare const CDN_URL_VIEW: string | undefined;
3
+ export declare const getToken: () => string | null;
1
4
  export declare const apiGetOption: (data?: Record<string, any>, config?: RequestInit, timeout?: number) => Promise<any>;
2
5
  export declare const apiTableConfig: (data?: any, config?: any, timeout?: number) => Promise<any>;
3
6
  export declare const apiGetDataView: (data?: any, config?: any, timeout?: number) => Promise<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esvndev/es-react-table-interface",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "description": "This product is designed by ESVN and is only for use in products distributed by ESVN. Any product, whether for non-commercial research or commercial purposes, must have written legal approval and a digital signature from ESVN.",
5
5
  "license": "ESVN Limited Use License",
6
6
  "author": "dev@esvn.com.vn",
@@ -28,6 +28,7 @@
28
28
  ],
29
29
  "devDependencies": {
30
30
  "@rollup/plugin-commonjs": "^20.0.0",
31
+ "@rollup/plugin-json": "^6.1.0",
31
32
  "@rollup/plugin-node-resolve": "^13.0.4",
32
33
  "@rollup/plugin-typescript": "^8.2.5",
33
34
  "@semantic-release/commit-analyzer": "^9.0.2",
@@ -48,7 +49,8 @@
48
49
  "axios": "^1.7.2",
49
50
  "becoxy-icons": "1.9.9",
50
51
  "classnames": "^2.5.1",
51
- "es-grid-template": "1.2.5",
52
+ "es-grid-template": "1.2.8",
53
+ "es-workflow-template": "^0.4.2",
52
54
  "eslint": "^8.25.0",
53
55
  "eslint-config-prettier": "^8.5.0",
54
56
  "eslint-plugin-prettier": "^4.2.1",