@esvndev/es-react-table-interface 1.9.33 → 1.9.34

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.
@@ -4,8 +4,7 @@ import { ColumnsTable, ColumnTable } from 'es-grid-template/lib/grid-component/t
4
4
  import { IFDataSetup } from './ultility/any/ISetup';
5
5
  import { CommandItem } from 'rc-master-ui/es/table/interface';
6
6
  import { TEsExternalTranslator } from './i18n';
7
- import { Key } from 'react';
8
- import { CheckboxProps } from 'rc-master-ui';
7
+ import { ComponentType } from 'react';
9
8
  export interface IBreadCrumbsNotLinkProps {
10
9
  breadCrumbTitle?: string;
11
10
  breadCrumbActive: string;
@@ -201,6 +200,20 @@ export interface IExternalInterface {
201
200
  stateId: string;
202
201
  /**Tiêu đề của danh sách bảng con*/
203
202
  titleChild?: string;
203
+ templateHeaderChild?: {
204
+ key?: string;
205
+ template?: any;
206
+ disabled?: boolean;
207
+ visible?: boolean;
208
+ align?: 'left' | 'right';
209
+ action?: (item?: any) => void;
210
+ }[];
211
+ templateMoreChild?: {
212
+ template?: any;
213
+ disabled?: boolean;
214
+ visible?: boolean;
215
+ position?: 'top' | 'bottom' | 'left' | 'right' | undefined;
216
+ }[];
204
217
  listColumn?: any;
205
218
  /**Khai báo danh sách bảng con*/
206
219
  stateChildId?: IStateChild[];
@@ -385,6 +398,7 @@ export interface IExternalInterface {
385
398
  /**Cài đặt lựa chọn*/
386
399
  selectionSetting?: {
387
400
  /**Ẩn chọn tất cả*/
401
+ hideSelectAll?: boolean;
388
402
  /**Loại chọn hàng*/
389
403
  typeCheckbox?: 'checkbox' | 'radio' | undefined;
390
404
  /**Chọn nhiều*/
@@ -393,16 +407,7 @@ export interface IExternalInterface {
393
407
  disableChekbox?: (record: any) => boolean;
394
408
  /**Kích thước cột*/
395
409
  width?: number;
396
- mode?: 'checkbox' | 'radio';
397
- type?: 'single' | 'multiple';
398
410
  checkboxOnly?: boolean;
399
- checkStrictly?: boolean;
400
- checkedStrategy?: 'all' | 'parent' | 'child';
401
- columnWidth?: number;
402
- hideSelectAll?: boolean;
403
- selectedRowKeys?: Key[];
404
- defaultSelectedRowKeys?: Key[];
405
- getCheckboxProps?: (record: any) => Partial<Omit<CheckboxProps, 'checked' | 'defaultChecked'>>;
406
411
  };
407
412
  /**Có filter theo cột không*/
408
413
  allowFiltering?: boolean;
@@ -457,6 +462,10 @@ export interface IExternalInterface {
457
462
  dataSource?: string;
458
463
  templateExportAll?: () => React.ReactNode;
459
464
  };
465
+ /**Trigger mở modal export excel từ bên ngoài*/
466
+ openModalExportExcel?: any;
467
+ /**Toolbar phía trên bảng*/
468
+ headerToolbar?: IHeaderToolbarItem[];
460
469
  /**Tổng số bản ghi (khi truyền vào sẽ không gọi dữ liệu mặc định) */
461
470
  totalCount?: number;
462
471
  /**Ẩn/hiện select all*/
@@ -564,4 +573,42 @@ export interface ISettingTable {
564
573
  showSumTotal?: boolean;
565
574
  breakText?: 'Header' | 'Content' | 'Both';
566
575
  }
576
+ export interface IHeaderToolbarIconProps {
577
+ fontSize?: number;
578
+ color?: string;
579
+ }
580
+ export type HeaderToolbarIcon = ComponentType<IHeaderToolbarIconProps>;
581
+ export interface IHeaderToolbarItem {
582
+ key: string;
583
+ label: string;
584
+ icon: HeaderToolbarIcon;
585
+ iconColor?: string;
586
+ iconPosition?: 'left' | 'right';
587
+ color: string;
588
+ backgroundColor: string;
589
+ borderColor?: string;
590
+ outline?: boolean;
591
+ shortcut?: string;
592
+ disabled?: boolean;
593
+ options?: string[];
594
+ template?: any;
595
+ action?: () => void;
596
+ }
597
+ export interface IMoreDropdownProps {
598
+ options?: string[];
599
+ label: string;
600
+ }
601
+ export interface IHeaderChildButtonProps {
602
+ label: string;
603
+ IconComponent: HeaderToolbarIcon;
604
+ iconColor?: string;
605
+ iconPosition?: 'left' | 'right';
606
+ }
607
+ export interface IHeaderChildTitleProps {
608
+ code?: string;
609
+ statusText?: string;
610
+ }
611
+ export interface IHeaderToolbarProps {
612
+ items: IHeaderToolbarItem[];
613
+ }
567
614
  export {};
@@ -0,0 +1,5 @@
1
+ import { IHeaderChildButtonProps, IHeaderChildTitleProps, IHeaderToolbarProps, IMoreDropdownProps } from "../../interface";
2
+ export declare const MoreDropdown: ({ options, label }: IMoreDropdownProps) => import("react").JSX.Element;
3
+ export declare const HeaderChildButton: ({ label, IconComponent, iconColor, iconPosition }: IHeaderChildButtonProps) => import("react").JSX.Element;
4
+ export declare const HeaderChildTitle: ({ code, statusText }: IHeaderChildTitleProps) => import("react").JSX.Element;
5
+ export declare const HeaderToolbar: ({ items }: IHeaderToolbarProps) => import("react").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esvndev/es-react-table-interface",
3
- "version": "1.9.33",
3
+ "version": "1.9.34",
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",
@@ -30,7 +30,7 @@
30
30
  "sourcemap": false
31
31
  },
32
32
  "dependencies": {
33
- "@esvndev/es-print-template": "0.0.19",
33
+ "@esvndev/es-print-template": "0.0.22",
34
34
  "@esvndev/es-react-import-export": "1.2.32",
35
35
  "@esvndev/es-template-help": "1.0.92",
36
36
  "@hookform/resolvers": "^2.8.10",