es-grid-template 1.9.18 → 1.9.19

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.
@@ -35,6 +35,7 @@ const Grid = /*#__PURE__*/React.forwardRef((props, ref) => {
35
35
  locale,
36
36
  fullScreen,
37
37
  actionTemplate,
38
+ bottom,
38
39
  theme,
39
40
  height,
40
41
  minHeight,
@@ -292,7 +293,7 @@ const Grid = /*#__PURE__*/React.forwardRef((props, ref) => {
292
293
  },
293
294
  theme: theme,
294
295
  footerDataSource: footerDataSource
295
- })), pagination && !infiniteScroll && /*#__PURE__*/React.createElement(Pagination, _extends({
296
+ })), bottom, pagination && !infiniteScroll && /*#__PURE__*/React.createElement(Pagination, _extends({
296
297
  pageSizeOptions: pageSizeOptions,
297
298
  rootClassName: 'pagination-template',
298
299
  showSizeChanger: true,
@@ -42,16 +42,12 @@ $prefix: 'ui-rc' !default;
42
42
  .ui-rc-grid-table-wrapper.dark {
43
43
 
44
44
  .ui-rc-grid-horizontal-scroll-container {
45
-
46
-
47
- &::-webkit-scrollbar-thumb {
48
- background: rgba(255, 255, 255, 0.3);
49
- }
50
- &::-webkit-scrollbar-thumb:hover {
51
- background: rgba(255, 255, 255, 0.5);
52
- }
45
+ &::-webkit-scrollbar-thumb {
46
+ background: rgba(255, 255, 255, 0.3);
47
+ }
48
+ &::-webkit-scrollbar-thumb:hover {
49
+ background: rgba(255, 255, 255, 0.5);
50
+ }
53
51
  }
54
-
55
52
 
56
-
57
53
  }
@@ -4,7 +4,7 @@ import type { Cell, Header, OnChangeFn } from '@tanstack/react-table';
4
4
  import type { CSSProperties, ReactElement, ReactNode } from 'react';
5
5
  import type { TableLocale } from "rc-master-ui/lib/table/interface";
6
6
  import type { PaginationLocale } from 'rc-master-ui/lib/pagination/Pagination';
7
- import { BaseTableCSSVariables } from '../ali-table/base-table/styles';
7
+ import type { BaseTableCSSVariables } from '../ali-table/base-table/styles';
8
8
  declare module "@tanstack/table-core" {
9
9
  interface ColumnMeta<any, any> extends ColumnTable {
10
10
  rowSpan?: number;
@@ -315,6 +315,7 @@ export type TableProps<RecordType = AnyObject> = {
315
315
  }) => void;
316
316
  expandable?: ExpandableConfig<RecordType>;
317
317
  actionTemplate?: ReactNode | ReactElement | (() => ReactNode | ReactElement);
318
+ bottom?: ReactNode;
318
319
  rowClassName?: string | RowClassName<RecordType>;
319
320
  onRowStyles?: CSSProperties | ((data: RecordType) => CSSProperties);
320
321
  onRowHeaderStyles?: Omit<React.CSSProperties, 'display' | 'transform' | 'gridTemplateColumns' | 'height' | 'minHeight'> | (() => Omit<React.CSSProperties, 'display' | 'transform' | 'gridTemplateColumns' | 'height' | 'minHeight'>);
@@ -208,9 +208,9 @@ export declare const fixColumnsLeft: <RecordType>(columns: ColumnTable<RecordTyp
208
208
  ellipsis?: boolean;
209
209
  allowResizing?: boolean;
210
210
  allowSelection?: boolean | ((rowData: RecordType) => boolean);
211
- onCellStyles?: Omit<CSSProperties, "left" | "right" | "position" | "display" | "minWidth" | "width"> | ((cellValue: any, cell: import("@tanstack/react-table").Cell<RecordType, unknown>) => Omit<CSSProperties, "left" | "right" | "position" | "display" | "minWidth" | "width">);
212
- onCellHeaderStyles?: Omit<CSSProperties, "left" | "right" | "position" | "display" | "minWidth" | "width"> | ((cell: import("@tanstack/react-table").Header<RecordType, unknown>) => Omit<CSSProperties, "left" | "right" | "position" | "display" | "minWidth" | "width">);
213
- onCellFooterStyles?: Omit<CSSProperties, "left" | "right" | "position" | "display" | "minWidth" | "width"> | ((cellValue: any, cell: import("@tanstack/react-table").Header<RecordType, unknown>) => Omit<CSSProperties, "left" | "right" | "position" | "display" | "minWidth" | "width">);
211
+ onCellStyles?: Omit<CSSProperties, "position" | "left" | "right" | "display" | "width" | "minWidth"> | ((cellValue: any, cell: import("@tanstack/react-table").Cell<RecordType, unknown>) => Omit<CSSProperties, "position" | "left" | "right" | "display" | "width" | "minWidth">);
212
+ onCellHeaderStyles?: Omit<CSSProperties, "position" | "left" | "right" | "display" | "width" | "minWidth"> | ((cell: import("@tanstack/react-table").Header<RecordType, unknown>) => Omit<CSSProperties, "position" | "left" | "right" | "display" | "width" | "minWidth">);
213
+ onCellFooterStyles?: Omit<CSSProperties, "position" | "left" | "right" | "display" | "width" | "minWidth"> | ((cellValue: any, cell: import("@tanstack/react-table").Header<RecordType, unknown>) => Omit<CSSProperties, "position" | "left" | "right" | "display" | "width" | "minWidth">);
214
214
  sumGroup?: boolean;
215
215
  getValue?: (row: any, rowIndex: number) => any;
216
216
  getCellProps?: (value: any, row: any, rowIndex: number) => import("./../../grid-component/type").CellProps;
@@ -45,6 +45,7 @@ const Grid = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
45
45
  locale,
46
46
  fullScreen,
47
47
  actionTemplate,
48
+ bottom,
48
49
  theme,
49
50
  height,
50
51
  minHeight,
@@ -302,7 +303,7 @@ const Grid = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
302
303
  },
303
304
  theme: theme,
304
305
  footerDataSource: footerDataSource
305
- })), pagination && !infiniteScroll && /*#__PURE__*/_react.default.createElement(_pagination.default, (0, _extends2.default)({
306
+ })), bottom, pagination && !infiniteScroll && /*#__PURE__*/_react.default.createElement(_pagination.default, (0, _extends2.default)({
306
307
  pageSizeOptions: _hooks.pageSizeOptions,
307
308
  rootClassName: 'pagination-template',
308
309
  showSizeChanger: true,
@@ -42,16 +42,12 @@ $prefix: 'ui-rc' !default;
42
42
  .ui-rc-grid-table-wrapper.dark {
43
43
 
44
44
  .ui-rc-grid-horizontal-scroll-container {
45
-
46
-
47
- &::-webkit-scrollbar-thumb {
48
- background: rgba(255, 255, 255, 0.3);
49
- }
50
- &::-webkit-scrollbar-thumb:hover {
51
- background: rgba(255, 255, 255, 0.5);
52
- }
45
+ &::-webkit-scrollbar-thumb {
46
+ background: rgba(255, 255, 255, 0.3);
47
+ }
48
+ &::-webkit-scrollbar-thumb:hover {
49
+ background: rgba(255, 255, 255, 0.5);
50
+ }
53
51
  }
54
-
55
52
 
56
-
57
53
  }
@@ -4,7 +4,7 @@ import type { Cell, Header, OnChangeFn } from '@tanstack/react-table';
4
4
  import type { CSSProperties, ReactElement, ReactNode } from 'react';
5
5
  import type { TableLocale } from "rc-master-ui/lib/table/interface";
6
6
  import type { PaginationLocale } from 'rc-master-ui/lib/pagination/Pagination';
7
- import { BaseTableCSSVariables } from '../ali-table/base-table/styles';
7
+ import type { BaseTableCSSVariables } from '../ali-table/base-table/styles';
8
8
  declare module "@tanstack/table-core" {
9
9
  interface ColumnMeta<any, any> extends ColumnTable {
10
10
  rowSpan?: number;
@@ -315,6 +315,7 @@ export type TableProps<RecordType = AnyObject> = {
315
315
  }) => void;
316
316
  expandable?: ExpandableConfig<RecordType>;
317
317
  actionTemplate?: ReactNode | ReactElement | (() => ReactNode | ReactElement);
318
+ bottom?: ReactNode;
318
319
  rowClassName?: string | RowClassName<RecordType>;
319
320
  onRowStyles?: CSSProperties | ((data: RecordType) => CSSProperties);
320
321
  onRowHeaderStyles?: Omit<React.CSSProperties, 'display' | 'transform' | 'gridTemplateColumns' | 'height' | 'minHeight'> | (() => Omit<React.CSSProperties, 'display' | 'transform' | 'gridTemplateColumns' | 'height' | 'minHeight'>);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "es-grid-template",
3
- "version": "1.9.18",
3
+ "version": "1.9.19",
4
4
  "description": "es-grid-template",
5
5
  "keywords": [
6
6
  "react",
@@ -66,7 +66,7 @@
66
66
  "rc-checkbox": "^3.5.0",
67
67
  "rc-dropdown": "^4.2.1",
68
68
  "rc-field-form": "^2.6.0",
69
- "rc-master-ui": "1.1.58",
69
+ "rc-master-ui": "1.1.59",
70
70
  "rc-select": "^14.16.3",
71
71
  "rc-tooltip": "^6.3.0",
72
72
  "rc-tree": "^5.10.1",