master-components-react-ts 2.4.15 → 2.4.16

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.
@@ -1,7 +1,7 @@
1
1
  import { TableProps } from './Table.types';
2
2
  declare const Table: {
3
- ({ columns, data, onRowClick, onHeaderClick, sort, selectedRows, onSelectionChange, withSelectAll, actionButtonText, actionButtonIcon, onActionButtonClick, actionButtons, withColumnConfiguration, headerSlot, onColumnOrderChange, onColumnVisibilityChange, withActions, currentPage, totalPages, onPageChange, showPagination, rowsPerPage, rowsPerPageOptions, onRowsPerPageChange, totalItems, startItem, endItem, onRowEdit, onRowDelete, rowActions, }: TableProps): import("react/jsx-runtime").JSX.Element;
4
- propKeys: readonly ["columns", "data", "onRowClick", "onHeaderClick", "sort", "selectedRows", "onSelectionChange", "withSelectAll", "actionButtonText", "actionButtonIcon", "onActionButtonClick", "actionButtons", "withColumnConfiguration", "headerSlot", "onColumnOrderChange", "onColumnVisibilityChange", "currentPage", "totalPages", "onPageChange", "showPagination", "rowsPerPage", "rowsPerPageOptions", "onRowsPerPageChange", "totalItems", "startItem", "endItem", "onRowEdit", "onRowDelete", "rowActions"];
3
+ ({ uniqueKey, columns, data, onRowClick, onHeaderClick, sort, selectedRows, onSelectionChange, withSelectAll, actionButtonText, actionButtonIcon, onActionButtonClick, actionButtons, withColumnConfiguration, headerSlot, onColumnOrderChange, onColumnVisibilityChange, withActions, currentPage, totalPages, onPageChange, showPagination, rowsPerPage, rowsPerPageOptions, onRowsPerPageChange, totalItems, startItem, endItem, onRowEdit, onRowDelete, rowActions, }: TableProps): import("react/jsx-runtime").JSX.Element;
4
+ propKeys: readonly ["uniqueKey", "columns", "data", "onRowClick", "onHeaderClick", "sort", "selectedRows", "onSelectionChange", "withSelectAll", "actionButtonText", "actionButtonIcon", "onActionButtonClick", "actionButtons", "withColumnConfiguration", "headerSlot", "onColumnOrderChange", "onColumnVisibilityChange", "currentPage", "totalPages", "onPageChange", "showPagination", "rowsPerPage", "rowsPerPageOptions", "onRowsPerPageChange", "totalItems", "startItem", "endItem", "onRowEdit", "onRowDelete", "rowActions"];
5
5
  displayName: string;
6
6
  description: string;
7
7
  };
@@ -21,13 +21,14 @@ export type RowActionType = {
21
21
  };
22
22
  /**Table Component Props */
23
23
  export interface TableProps {
24
+ uniqueKey: string;
24
25
  columns?: ColumnType[];
25
26
  data?: any[];
26
27
  onRowClick?: (row: any, rowIndex: number) => void;
27
28
  onHeaderClick?: (key: string | number) => void;
28
29
  sort?: SortType[];
29
30
  selectedRows?: any[];
30
- onSelectionChange?: (selectedRows: any[]) => void;
31
+ onSelectionChange?: (selectedRows: any[], row?: any) => void;
31
32
  withSelectAll?: boolean;
32
33
  actionButtonText?: string;
33
34
  actionButtonIcon?: React.ReactNode;
@@ -1,6 +1,6 @@
1
- type Department = "Engineering" | "HR" | "Marketing" | "Sales";
2
- type Status = "active" | "inactive" | "pending";
3
- type Role = "Admin" | "User" | "Manager" | "Guest";
1
+ type Department = 'Engineering' | 'HR' | 'Marketing' | 'Sales';
2
+ type Status = 'active' | 'inactive' | 'pending';
3
+ type Role = 'Admin' | 'User' | 'Manager' | 'Guest';
4
4
  export interface UserData {
5
5
  id?: number;
6
6
  name?: string;
@@ -20,7 +20,7 @@ export interface SortConfig {
20
20
  }
21
21
  export interface FilterConfig {
22
22
  key: keyof UserData;
23
- operator: "contains" | "equals" | "startsWith";
23
+ operator: 'contains' | 'equals' | 'startsWith';
24
24
  value: string;
25
25
  }
26
26
  export interface FetchDataParams {
@@ -33,5 +33,5 @@ export interface FetchDataResponse {
33
33
  data: UserData[];
34
34
  totalCount: number;
35
35
  }
36
- export declare function fetchDataDevExpressLike({ skip, take, sort, filter, }: FetchDataParams): Promise<FetchDataResponse>;
36
+ export declare function fetchDataDevExpressLike({ skip, take, sort, filter }: FetchDataParams): Promise<FetchDataResponse>;
37
37
  export {};