@esvndev/es-react-table-interface 1.9.64 → 1.9.65

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.
@@ -519,6 +519,7 @@ export interface IExternalInterface {
519
519
  initAbility?: any;
520
520
  }
521
521
  export interface IQueryFilter {
522
+ keyCode?: string;
522
523
  key: string;
523
524
  value: any;
524
525
  ope: string;
@@ -1,15 +1,14 @@
1
1
  import { SweetAlertIcon } from 'sweetalert2';
2
2
  import { TEsExternalTranslator } from '../../i18n';
3
3
  export declare const mapObjectError: (rs: any, setError: any, t: Function) => void;
4
- export declare const notificationError: (param: string) => string;
5
4
  export declare const notificationSuccess: (param: string) => string;
6
5
  export declare const messageBoxConfirm: (t: TEsExternalTranslator, handle: any, data: any) => void;
7
6
  export declare const messageBoxConfirmDelete: (t: TEsExternalTranslator, handle: any, data: any) => void;
8
7
  export declare const messageBoxConfirmDeleteAll: (t: TEsExternalTranslator, handle: any, data: any) => void;
9
8
  export declare const messageBoxError: (t: TEsExternalTranslator, message: string) => void;
10
9
  export declare const messageBox: ({ t, message, icon, title, showCancel, showConfirm, textCancel, textConfirm, handle, html }: {
11
- t: TEsExternalTranslator;
12
- message?: string;
10
+ t?: TEsExternalTranslator;
11
+ message?: unknown;
13
12
  html?: HTMLElement | string | JQuery;
14
13
  title?: string;
15
14
  icon?: SweetAlertIcon;
@@ -23,11 +23,13 @@ interface IP {
23
23
  selectMode?: 'checkbox' | 'radio' | undefined;
24
24
  width?: number | string;
25
25
  isTree?: boolean;
26
+ wrapText?: boolean;
27
+ treeCheckStrictly?: boolean;
26
28
  keepOpen?: boolean;
27
29
  popupClassName?: string;
28
30
  listHeight?: number;
29
31
  getPopupContainer?: () => HTMLElement;
30
32
  onDropdownVisibleChange?: (open: boolean) => void;
31
33
  }
32
- export declare const SelectComp: React.MemoExoticComponent<({ id, options, columns, isMulti, value, fieldValue, fieldLabel, onChange, isClearable, placeholder, loadOptions, style, className, formatOptionLabel, width, callback, isDisabled, invalid, selectMode, isTree, keepOpen, popupClassName, listHeight, getPopupContainer, onDropdownVisibleChange }: IP) => React.JSX.Element>;
34
+ export declare const SelectComp: React.MemoExoticComponent<({ id, options, columns, isMulti, value, fieldValue, fieldLabel, onChange, isClearable, placeholder, loadOptions, style, className, formatOptionLabel, width, callback, isDisabled, invalid, selectMode, isTree, wrapText, treeCheckStrictly, keepOpen, popupClassName, listHeight, getPopupContainer, onDropdownVisibleChange }: IP) => React.JSX.Element>;
33
35
  export {};
@@ -0,0 +1,2 @@
1
+ export declare const getErrorMessage: (error: unknown, fallback?: string) => string;
2
+ export declare const createApiError: (response: Response) => Promise<Error>;
@@ -1,4 +1,23 @@
1
1
  declare const api: {
2
+ userApi: {
3
+ getPagingUserApi: (params: any) => Promise<any>;
4
+ };
5
+ departmentApi: {
6
+ getDepartmentPagingApi: (params: any) => Promise<any>;
7
+ };
8
+ positionApi: {
9
+ getPagingApi: (params: any) => Promise<any>;
10
+ };
11
+ jobApi: {
12
+ getPagingApi: (params: any) => Promise<any>;
13
+ };
14
+ employeeHrmApi: {
15
+ postPagingApi: (params: any) => Promise<any>;
16
+ };
17
+ groupUserApi: {
18
+ getPagingByProductCodeApi: (params: any) => Promise<any>;
19
+ getPagingUsersGroupUserApi: (params: any) => Promise<any>;
20
+ };
2
21
  configApi: {
3
22
  getCodeManualApi: (params: {
4
23
  Data: string;
@@ -0,0 +1,2 @@
1
+ import type { IQueryFilter } from '../../interface';
2
+ export declare const renderPermissionFilter: (filters: IQueryFilter[], orKeys?: string[]) => string;
@@ -1,4 +1,6 @@
1
- type RequestConfig = RequestInit;
1
+ type RequestConfig = RequestInit & {
2
+ expectedStatus?: number;
3
+ };
2
4
  export declare const requester: {
3
5
  get: (url: string, params?: {}, config?: RequestConfig) => Promise<any>;
4
6
  post: (url: string, data?: {}, config?: RequestConfig) => Promise<any>;
@@ -0,0 +1,22 @@
1
+ declare const _default: {
2
+ userApi: {
3
+ getPagingUserApi: (params: any) => Promise<any>;
4
+ };
5
+ departmentApi: {
6
+ getDepartmentPagingApi: (params: any) => Promise<any>;
7
+ };
8
+ positionApi: {
9
+ getPagingApi: (params: any) => Promise<any>;
10
+ };
11
+ jobApi: {
12
+ getPagingApi: (params: any) => Promise<any>;
13
+ };
14
+ employeeHrmApi: {
15
+ postPagingApi: (params: any) => Promise<any>;
16
+ };
17
+ groupUserApi: {
18
+ getPagingByProductCodeApi: (params: any) => Promise<any>;
19
+ getPagingUsersGroupUserApi: (params: any) => Promise<any>;
20
+ };
21
+ };
22
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esvndev/es-react-table-interface",
3
- "version": "1.9.64",
3
+ "version": "1.9.65",
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",