es-grid-template 1.8.67 → 1.8.68

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.
Files changed (167) hide show
  1. package/es/grid-component/hooks/useLazyKVMap.d.ts +1 -1
  2. package/es/grid-component/hooks/utils.d.ts +1 -1
  3. package/es/grid-component/index.d.ts +1 -1
  4. package/es/grid-component/type.d.ts +567 -0
  5. package/es/grid-component/type.js +1 -490
  6. package/es/table-component/ColumnsChoose.d.ts +1 -1
  7. package/es/table-component/ColumnsChoose.js +0 -2
  8. package/es/table-component/ContextMenu.d.ts +1 -2
  9. package/es/table-component/ContextMenu.js +0 -1
  10. package/es/table-component/InternalTable.d.ts +1 -2
  11. package/es/table-component/InternalTable.js +1 -32
  12. package/es/table-component/TableContainer.d.ts +1 -1
  13. package/es/table-component/TableContainer.js +4 -2
  14. package/es/table-component/TableContainerEdit.d.ts +1 -1
  15. package/es/table-component/TableContainerEdit.js +4 -2
  16. package/es/table-component/body/EditableCell.d.ts +1 -1
  17. package/es/table-component/body/EditableCell.js +1 -18
  18. package/es/table-component/body/TableBody.d.ts +1 -1
  19. package/es/table-component/body/TableBodyCell.d.ts +1 -1
  20. package/es/table-component/body/TableBodyCellEdit.d.ts +1 -1
  21. package/es/table-component/body/TableBodyRow.d.ts +1 -1
  22. package/es/table-component/components/ControlCheckbox.d.ts +1 -1
  23. package/es/table-component/components/EditForm/EditForm.js +0 -1
  24. package/es/table-component/components/InputControl/InputControl.js +0 -3
  25. package/es/table-component/components/async-select/index.d.ts +1 -1
  26. package/es/table-component/components/async-select/index.js +0 -3
  27. package/es/table-component/components/async-table-select/index.d.ts +1 -1
  28. package/es/table-component/components/async-table-select/index.js +0 -4
  29. package/es/table-component/components/checkbox-filter/CheckboxFilter.js +6 -2
  30. package/es/table-component/components/checkbox-filter/FilterSearch.d.ts +1 -1
  31. package/es/table-component/components/checkbox-filter/FilterSearch.js +1 -1
  32. package/es/table-component/components/command/Command.d.ts +1 -1
  33. package/es/table-component/components/number/index.d.ts +3 -2
  34. package/es/table-component/components/number/index.js +0 -8
  35. package/es/table-component/components/number-range/index.d.ts +3 -2
  36. package/es/table-component/components/number-range/index.js +0 -3
  37. package/es/table-component/footer/TableFooterRow.js +1 -22
  38. package/es/table-component/header/TableHead.js +0 -20
  39. package/es/table-component/header/TableHeadCell.js +0 -5
  40. package/es/table-component/header/TableHeadCell2.js +4 -2
  41. package/es/table-component/header/TableHeadGroupCell.js +0 -23
  42. package/es/table-component/header/renderFilter.d.ts +1 -1
  43. package/es/table-component/hook/useColumns.d.ts +1 -1
  44. package/es/table-component/hook/useFilterOperator.d.ts +2 -2
  45. package/es/table-component/hook/utils.d.ts +1 -1
  46. package/es/table-component/hook/utils.js +0 -3
  47. package/es/table-component/index.d.ts +1 -1
  48. package/es/table-component/index.js +0 -3
  49. package/es/table-component/table/Grid.d.ts +1 -1
  50. package/es/table-component/table/Grid.js +0 -5
  51. package/es/table-component/table/TableWrapper.d.ts +1 -1
  52. package/es/table-component/useContext.d.ts +2 -1
  53. package/es/table-virtuoso/InternalTable.d.ts +1 -1
  54. package/es/table-virtuoso/InternalTable.js +2 -1
  55. package/es/table-virtuoso/body/TableBodyCell.d.ts +1 -1
  56. package/es/table-virtuoso/body/TableBodyCell.js +1 -1
  57. package/es/table-virtuoso/body/TableBodyRow.d.ts +2 -2
  58. package/es/table-virtuoso/body/TableBodyRow.js +3 -1
  59. package/es/table-virtuoso/header/TableHeadCell.js +1 -3
  60. package/es/table-virtuoso/header/renderFilter.d.ts +1 -1
  61. package/es/table-virtuoso/header/renderFilter.js +0 -4
  62. package/es/table-virtuoso/hook/utils.d.ts +1 -1
  63. package/es/table-virtuoso/style.js +1 -1
  64. package/es/table-virtuoso/table/Grid.d.ts +1 -1
  65. package/es/table-virtuoso/table/Grid.js +0 -24
  66. package/es/table-virtuoso/table/TableContainer.d.ts +1 -1
  67. package/es/table-virtuoso/table/TableContainer.js +0 -2
  68. package/es/table-virtuoso/table/TableWrapper.d.ts +1 -1
  69. package/es/table-virtuoso/table/TableWrapper.js +3 -19
  70. package/es/table-virtuoso/useContext.d.ts +1 -1
  71. package/lib/grid-component/hooks/useLazyKVMap.d.ts +1 -1
  72. package/lib/grid-component/hooks/utils.d.ts +1 -1
  73. package/lib/grid-component/index.d.ts +1 -1
  74. package/lib/grid-component/type.d.ts +567 -0
  75. package/lib/grid-component/type.js +4 -490
  76. package/lib/table-component/ColumnsChoose.d.ts +1 -1
  77. package/lib/table-component/ColumnsChoose.js +0 -2
  78. package/lib/table-component/ContextMenu.d.ts +1 -2
  79. package/lib/table-component/ContextMenu.js +0 -2
  80. package/lib/table-component/InternalTable.d.ts +1 -2
  81. package/lib/table-component/InternalTable.js +1 -28
  82. package/lib/table-component/TableContainer.d.ts +1 -1
  83. package/lib/table-component/TableContainer.js +4 -2
  84. package/lib/table-component/TableContainerEdit.d.ts +1 -1
  85. package/lib/table-component/TableContainerEdit.js +4 -2
  86. package/lib/table-component/body/EditableCell.d.ts +1 -1
  87. package/lib/table-component/body/EditableCell.js +0 -10
  88. package/lib/table-component/body/TableBody.d.ts +1 -1
  89. package/lib/table-component/body/TableBodyCell.d.ts +1 -1
  90. package/lib/table-component/body/TableBodyCellEdit.d.ts +1 -1
  91. package/lib/table-component/body/TableBodyRow.d.ts +1 -1
  92. package/lib/table-component/components/ControlCheckbox.d.ts +1 -1
  93. package/lib/table-component/components/EditForm/EditForm.js +0 -2
  94. package/lib/table-component/components/InputControl/InputControl.js +0 -4
  95. package/lib/table-component/components/async-select/index.d.ts +1 -1
  96. package/lib/table-component/components/async-select/index.js +0 -2
  97. package/lib/table-component/components/async-table-select/index.d.ts +1 -1
  98. package/lib/table-component/components/async-table-select/index.js +0 -4
  99. package/lib/table-component/components/checkbox-filter/CheckboxFilter.js +6 -2
  100. package/lib/table-component/components/checkbox-filter/FilterSearch.d.ts +1 -1
  101. package/lib/table-component/components/checkbox-filter/FilterSearch.js +1 -1
  102. package/lib/table-component/components/command/Command.d.ts +1 -1
  103. package/lib/table-component/components/number/index.d.ts +3 -2
  104. package/lib/table-component/components/number/index.js +0 -8
  105. package/lib/table-component/components/number-range/index.d.ts +3 -2
  106. package/lib/table-component/components/number-range/index.js +0 -3
  107. package/lib/table-component/footer/TableFooterRow.js +1 -23
  108. package/lib/table-component/header/TableHead.js +0 -21
  109. package/lib/table-component/header/TableHeadCell.js +0 -5
  110. package/lib/table-component/header/TableHeadCell2.js +4 -2
  111. package/lib/table-component/header/TableHeadGroupCell.js +0 -23
  112. package/lib/table-component/header/renderFilter.d.ts +1 -1
  113. package/lib/table-component/hook/useColumns.d.ts +1 -1
  114. package/lib/table-component/hook/useFilterOperator.d.ts +2 -2
  115. package/lib/table-component/hook/utils.d.ts +1 -1
  116. package/lib/table-component/hook/utils.js +0 -4
  117. package/lib/table-component/index.d.ts +1 -1
  118. package/lib/table-component/index.js +0 -1
  119. package/lib/table-component/table/Grid.d.ts +1 -1
  120. package/lib/table-component/table/Grid.js +0 -4
  121. package/lib/table-component/table/TableWrapper.d.ts +1 -1
  122. package/lib/table-component/useContext.d.ts +2 -1
  123. package/lib/table-virtuoso/InternalTable.d.ts +1 -1
  124. package/lib/table-virtuoso/InternalTable.js +3 -1
  125. package/lib/table-virtuoso/body/TableBodyCell.d.ts +1 -1
  126. package/lib/table-virtuoso/body/TableBodyCell.js +1 -1
  127. package/lib/table-virtuoso/body/TableBodyRow.d.ts +2 -2
  128. package/lib/table-virtuoso/body/TableBodyRow.js +3 -1
  129. package/lib/table-virtuoso/header/TableHeadCell.js +4 -6
  130. package/lib/table-virtuoso/header/renderFilter.d.ts +1 -1
  131. package/lib/table-virtuoso/header/renderFilter.js +0 -4
  132. package/lib/table-virtuoso/hook/utils.d.ts +1 -1
  133. package/lib/table-virtuoso/style.js +1 -1
  134. package/lib/table-virtuoso/table/Grid.d.ts +1 -1
  135. package/lib/table-virtuoso/table/Grid.js +0 -24
  136. package/lib/table-virtuoso/table/TableContainer.d.ts +1 -1
  137. package/lib/table-virtuoso/table/TableContainer.js +0 -2
  138. package/lib/table-virtuoso/table/TableWrapper.d.ts +1 -1
  139. package/lib/table-virtuoso/table/TableWrapper.js +3 -19
  140. package/lib/table-virtuoso/useContext.d.ts +1 -1
  141. package/package.json +1 -1
  142. package/es/table-component/type.d.ts +0 -567
  143. package/es/table-component/type.js +0 -1
  144. package/es/table-virtuoso/hook/constant.d.ts +0 -73
  145. package/es/table-virtuoso/hook/constant.js +0 -240
  146. package/es/table-virtuoso/hook/convert.d.ts +0 -1
  147. package/es/table-virtuoso/hook/convert.js +0 -28
  148. package/es/table-virtuoso/hook/useColumns.d.ts +0 -28
  149. package/es/table-virtuoso/hook/useColumns.js +0 -302
  150. package/es/table-virtuoso/hook/useFilterOperator.d.ts +0 -7
  151. package/es/table-virtuoso/hook/useFilterOperator.js +0 -33
  152. package/es/table-virtuoso/style.scss +0 -1441
  153. package/es/table-virtuoso/type.d.ts +0 -0
  154. package/es/table-virtuoso/type.js +0 -785
  155. package/lib/table-component/type.d.ts +0 -567
  156. package/lib/table-component/type.js +0 -5
  157. package/lib/table-virtuoso/hook/constant.d.ts +0 -73
  158. package/lib/table-virtuoso/hook/constant.js +0 -247
  159. package/lib/table-virtuoso/hook/convert.d.ts +0 -1
  160. package/lib/table-virtuoso/hook/convert.js +0 -34
  161. package/lib/table-virtuoso/hook/useColumns.d.ts +0 -28
  162. package/lib/table-virtuoso/hook/useColumns.js +0 -315
  163. package/lib/table-virtuoso/hook/useFilterOperator.d.ts +0 -7
  164. package/lib/table-virtuoso/hook/useFilterOperator.js +0 -40
  165. package/lib/table-virtuoso/style.scss +0 -1441
  166. package/lib/table-virtuoso/type.d.ts +0 -0
  167. package/lib/table-virtuoso/type.js +0 -786
@@ -11,15 +11,13 @@ var _antd = require("antd");
11
11
  var _becoxyIcons = require("becoxy-icons");
12
12
  var _classnames = _interopRequireDefault(require("classnames"));
13
13
  var _rcMasterUi = require("rc-master-ui");
14
- var _constant = require("../hook/constant");
15
14
  var _utils = require("../hook/utils");
16
15
  var _renderFilter = require("./renderFilter");
17
16
  var _server = _interopRequireDefault(require("react-dom/server"));
18
17
  var _useContext = require("../useContext");
18
+ var _hooks = require("../../grid-component/hooks");
19
19
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
20
20
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
21
- // import type { MenuProps } from 'rc-master-ui/es'
22
-
23
21
  const TableHeadCell = props => {
24
22
  const {
25
23
  header,
@@ -124,7 +122,7 @@ const TableHeadCell = props => {
124
122
 
125
123
  // const operatorValue = (header.column.getFilterOperator() ?? getDefaultOperator(originalColumn)) as string
126
124
 
127
- const operatorOptions = ['Checkbox', 'Dropdown', 'DropTree', 'CheckboxDropdown'].includes(type) ? _constant.booleanOperator : !type || type === 'Text' ? _constant.stringOperator : _constant.numberOperator;
125
+ const operatorOptions = ['Checkbox', 'Dropdown', 'DropTree', 'CheckboxDropdown'].includes(type) ? _hooks.booleanOperator : !type || type === 'Text' ? _hooks.stringOperator : _hooks.numberOperator;
128
126
  return /*#__PURE__*/_react.default.createElement("div", {
129
127
  className: (0, _classnames.default)(`${prefix}-grid-filter-dropdown`, {}),
130
128
  style: {}
@@ -136,7 +134,7 @@ const TableHeadCell = props => {
136
134
  }, column.meta?.showOperator !== false && column.meta?.typeFilter !== 'DateRange' && column.meta?.typeFilter !== 'NumberRange' && /*#__PURE__*/_react.default.createElement("div", {
137
135
  className: 'mb-1'
138
136
  }, /*#__PURE__*/_react.default.createElement(_rcMasterUi.Select, {
139
- options: (0, _constant.translateOption)(operatorOptions, t),
137
+ options: (0, _hooks.translateOption)(operatorOptions, t),
140
138
  style: {
141
139
  width: '100%',
142
140
  marginBottom: 8
@@ -230,7 +228,7 @@ const TableHeadCell = props => {
230
228
  [`${prefix}-grid-cell-ellipsis`]: !wrapSettings || !(wrapSettings && (wrapSettings.wrapMode === 'Both' || wrapSettings.wrapMode === 'Header')),
231
229
  [`${prefix}-grid-cell-text-wrap`]: wrapSettings && (wrapSettings.wrapMode === 'Both' || wrapSettings.wrapMode === 'Header')
232
230
  })
233
- }, cellContent)), !_constant.nonActionColumn.includes(header.column.id) && header.subHeaders.length < 2 && /*#__PURE__*/_react.default.createElement("span", {
231
+ }, cellContent)), !_hooks.nonActionColumn.includes(header.column.id) && header.subHeaders.length < 2 && /*#__PURE__*/_react.default.createElement("span", {
234
232
  className: "ui-rc-header-trigger"
235
233
  }, header.column.getCanSort() && /*#__PURE__*/_react.default.createElement("div", {
236
234
  style: {
@@ -1,6 +1,6 @@
1
1
  import type { ColumnDef } from "@tanstack/react-table";
2
2
  import React from "react";
3
- import type { IFormat } from "../../table-component/type";
3
+ import type { IFormat } from "../../grid-component/type";
4
4
  type RenderFilterProps<RecordType> = {
5
5
  column: ColumnDef<RecordType, unknown>;
6
6
  selectedKeys: any[];
@@ -15,10 +15,6 @@ var _number = _interopRequireDefault(require("../../table-component/components/n
15
15
  var _numberRange = _interopRequireDefault(require("../../table-component/components/number-range"));
16
16
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
17
17
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
18
- // import type { IFormat } from "../../tanstack-table/type";
19
-
20
- // import type { AnyObject } from './type';
21
-
22
18
  const renderFilter = args => {
23
19
  const {
24
20
  column,
@@ -1,7 +1,7 @@
1
1
  import type { Row, Table } from "@tanstack/react-table";
2
2
  import { type Column } from "@tanstack/react-table";
3
3
  import type { VirtualItem } from "@tanstack/react-virtual";
4
- import type { AnyObject, ColumnsTable, ColumnTable, EditType, FilterOperator, IColumnType, IFormat, RangeState, Sorter, TypeFilter } from "../../table-component/type";
4
+ import type { AnyObject, ColumnsTable, ColumnTable, EditType, FilterOperator, IColumnType, IFormat, RangeState, Sorter, TypeFilter } from "../../grid-component/type";
5
5
  import type { Key } from "react";
6
6
  import { type CSSProperties } from "react";
7
7
  import dayjs from "dayjs";
@@ -16,4 +16,4 @@ const colorDark = "#e6e4f3e6";
16
16
  const GridStyle = exports.GridStyle = _styledComponents.default.div.withConfig({
17
17
  displayName: "GridStyle",
18
18
  componentId: "es-grid-template__sc-rs980s-0"
19
- })(["&.", "-grid{color:", ";font-size:13px;background-color:", ";table{table-layout:fixed;border-collapse:separate;border-spacing:0;}.", "-grid-container{border:1px solid ", ";.", "-grid-thead{&:has(.resizer.isResizing){.", "-grid-cell{touch-action:none;user-select:none;}}.", "-grid-cell{background-color:#ffffff;&:has(.resizer.isResizing){touch-action:none;user-select:none;}.resizer{cursor:col-resize;height:100%;position:absolute;right:0;top:0;touch-action:none;user-select:none;width:5px;}}}tbody{.", "-grid-row{&.", "-grid-row-parent{.", "-grid-cell{font-weight:600;background-color:#f5f5f5;}}}}.", "-grid-tfoot{z-index:3 !important;.ui-rc-grid-footer-row{.ui-rc-grid-cell{border-top:1px solid ", ";border-bottom:1px solid ", ";}}}.", "-grid-cell{padding:7px 8px;.class-content:has(*){background:lightblue;}.class-content:not(:has(*)){background:lightgreen;}&.", "-grid-cell-text-center{text-align:center;justify-content:center;}&.", "-grid-cell-text-righ{text-align:right;justify-content:flex-end;}}.", "-grid-cell:not(:has(*)){&.", "-grid-cell-text-center{text-align:center;justify-content:center;}&.", "-grid-cell-text-right{text-align:right;justify-content:flex-end;}&.", "-grid-cell-ellipsis{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;word-break:keep-all;}}}&.", "-grid-light{.", "-grid-container{.", "-grid-thead{z-index:3 !important;background-color:", ";font-weight:500;.", "-grid-cell{font-weight:inherit;color:", ";background-color:#ffffff;outline:1px solid ", ";border:0;&.ui-rc-grid-cell-ellipsis{.ui-rc-table-column-title,.", "-grid-cell-ellipsis{width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;word-break:keep-all;}}&.ui-rc-grid-cell-wrap{.ui-rc-table-column-title,.", "-grid-cell-text-wrap{white-space:normal;word-break:break-word;overflow:hidden;}}&:hover{.ui-rc-header-trigger{.ui-rc-table-column-sorter-cancel{opacity:1;}}}.", "-grid-filter-column{display:flex;justify-content:space-between;width:100%;align-items:center;position:relative;}.ui-rc-header-trigger{padding-left:6px;display:flex;align-items:center;.ui-rc-table-column-sorter-cancel{opacity:0;}}.resizer{cursor:col-resize;height:100%;position:absolute;right:0;top:0;touch-action:none;user-select:none;width:5px;}.resizer.isResizing{opacity:1;}}}.", "-grid-tbody{.", "-grid-row{background-color:", ";color:", ";}}tbody{background-color:", ";color:", ";.", "-grid-row{&.ui-rc-grid-row-selected{.", "-grid-cell{background-color:", ";}}}.", "-grid-cell{outline:none;background-color:#ffffff;outline:1px solid ", ";&.ui-rc-grid-cell-selected{background-color:#33335d !important;}&.disable{background-color:#272A2F;}}}.", "-grid-tfoot{.", "-grid-footer-row{border-bottom-width:1px;border-bottom-color:", ";border-bottom-style:solid;border-top-width:1px;border-top-color:", ";border-top-style:solid;background-color:#fafafa;}.", "-grid-cell{background-color:inherit;border:0;outline:1px solid ", ";}}}}&.", "-grid-dark{background-color:", ";color:", ";.", "-grid-container{border-color:", ";&::after{border-right-color:", ";}}}}"], props => props.$prefix, color, BgColor, props => props.$prefix, tableBorderColor, props => props.$prefix, props => props.$prefix, props => props.$prefix, props => props.$prefix, props => props.$prefix, props => props.$prefix, props => props.$prefix, tableBorderColor, tableBorderColor, props => props.$prefix, props => props.$prefix, props => props.$prefix, props => props.$prefix, props => props.$prefix, props => props.$prefix, props => props.$prefix, props => props.$prefix, props => props.$prefix, props => props.$prefix, props => `${props.$theme.backgroundColor ? props.$theme.backgroundColor : BgColor}`, props => props.$prefix, props => `${props.$theme.color ? props.$theme.color : color}`, tableBorderColor, props => props.$prefix, props => props.$prefix, props => props.$prefix, props => props.$prefix, props => props.$prefix, props => `${props.$theme.backgroundColor ? props.$theme.backgroundColor : BgColor}`, props => `${props.$theme.color ? props.$theme.color : color}`, props => `${props.$theme.backgroundColor ? props.$theme.backgroundColor : BgColor}`, props => `${props.$theme.color ? props.$theme.color : color}`, props => props.$prefix, props => props.$prefix, rowSelectedBg, props => props.$prefix, tableBorderColor, props => props.$prefix, props => props.$prefix, tableBorderColor, tableBorderColor, props => props.$prefix, tableBorderColor, props => props.$prefix, BgColorDark, colorDark, props => props.$prefix, tableBorderColorDark, tableBorderColorDark);
19
+ })(["&.", "-grid{color:", ";font-size:13px;background-color:", ";table{table-layout:fixed;border-collapse:separate;border-spacing:0;}.", "-grid-container{border:1px solid ", ";.", "-grid-thead{&:has(.resizer.isResizing){.", "-grid-cell{touch-action:none;user-select:none;}}.", "-grid-cell{background-color:#ffffff;&:has(.resizer.isResizing){touch-action:none;user-select:none;}.resizer{cursor:col-resize;height:100%;position:absolute;right:0;top:0;touch-action:none;user-select:none;width:5px;}}}tbody{.", "-grid-row{&.", "-grid-row-parent{.", "-grid-cell{font-weight:600;background-color:#f5f5f5;}}}}.", "-grid-tfoot{z-index:3 !important;.ui-rc-grid-footer-row{.ui-rc-grid-cell{border-top:1px solid ", ";border-bottom:1px solid ", ";}}}.", "-grid-cell{padding:7px 8px;.class-content:has(*){background:lightblue;}.class-content:not(:has(*)){background:lightgreen;}&.", "-grid-cell-text-center{text-align:center;justify-content:center;}&.", "-grid-cell-text-righ{text-align:right;justify-content:flex-end;}}.", "-grid-cell:not(:has(*)){&.", "-grid-cell-text-center{text-align:center;justify-content:center;}&.", "-grid-cell-text-right{text-align:right;justify-content:flex-end;}&.", "-grid-cell-ellipsis{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;word-break:keep-all;}}}&.", "-grid-light{.", "-grid-container{.", "-grid-thead{z-index:3 !important;background-color:", ";font-weight:500;.", "-grid-cell{font-weight:inherit;color:", ";background-color:#ffffff;border-inline-end:1px solid ", ";border-bottom:1px solid ", ";&.ui-rc-grid-cell-ellipsis{.ui-rc-table-column-title,.", "-grid-cell-ellipsis{width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;word-break:keep-all;}}&.ui-rc-grid-cell-wrap{.ui-rc-table-column-title,.", "-grid-cell-text-wrap{white-space:normal;word-break:break-word;overflow:hidden;}}&:hover{.ui-rc-header-trigger{.ui-rc-table-column-sorter-cancel{opacity:1;}}}.", "-grid-filter-column{display:flex;justify-content:space-between;width:100%;align-items:center;position:relative;}.ui-rc-header-trigger{padding-left:6px;display:flex;align-items:center;.ui-rc-table-column-sorter-cancel{opacity:0;}}.resizer{cursor:col-resize;height:100%;position:absolute;right:0;top:0;touch-action:none;user-select:none;width:5px;}.resizer.isResizing{opacity:1;}}}.", "-grid-tbody{.", "-grid-row{background-color:", ";color:", ";}}tbody{background-color:", ";color:", ";.", "-grid-row{&.ui-rc-grid-row-selected{.", "-grid-cell{background-color:", ";}}}.", "-grid-cell{outline:none;background-color:#ffffff;border-inline-end:1px solid ", ";border-bottom:1px solid ", ";&.ui-rc-grid-cell-selected{background-color:#33335d !important;}&.disable{background-color:#272A2F;}}}.", "-grid-tfoot{.", "-grid-footer-row{border-bottom-width:1px;border-bottom-color:", ";border-bottom-style:solid;border-top-width:1px;border-top-color:", ";border-top-style:solid;background-color:#fafafa;}.", "-grid-cell{background-color:inherit;border-inline-end:1px solid ", ";}}}}&.", "-grid-dark{background-color:", ";color:", ";.", "-grid-container{border-color:", ";&::after{border-right-color:", ";}}}}"], props => props.$prefix, color, BgColor, props => props.$prefix, tableBorderColor, props => props.$prefix, props => props.$prefix, props => props.$prefix, props => props.$prefix, props => props.$prefix, props => props.$prefix, props => props.$prefix, tableBorderColor, tableBorderColor, props => props.$prefix, props => props.$prefix, props => props.$prefix, props => props.$prefix, props => props.$prefix, props => props.$prefix, props => props.$prefix, props => props.$prefix, props => props.$prefix, props => props.$prefix, props => `${props.$theme.backgroundColor ? props.$theme.backgroundColor : BgColor}`, props => props.$prefix, props => `${props.$theme.color ? props.$theme.color : color}`, tableBorderColor, tableBorderColor, props => props.$prefix, props => props.$prefix, props => props.$prefix, props => props.$prefix, props => props.$prefix, props => `${props.$theme.backgroundColor ? props.$theme.backgroundColor : BgColor}`, props => `${props.$theme.color ? props.$theme.color : color}`, props => `${props.$theme.backgroundColor ? props.$theme.backgroundColor : BgColor}`, props => `${props.$theme.color ? props.$theme.color : color}`, props => props.$prefix, props => props.$prefix, rowSelectedBg, props => props.$prefix, tableBorderColor, tableBorderColor, props => props.$prefix, props => props.$prefix, tableBorderColor, tableBorderColor, props => props.$prefix, tableBorderColor, props => props.$prefix, BgColorDark, colorDark, props => props.$prefix, tableBorderColorDark, tableBorderColorDark);
@@ -1,5 +1,5 @@
1
1
  import type { ColumnDef, ColumnFiltersState, ColumnPinningState, ColumnSizingInfoState, ColumnSizingState, ExpandedState, Table, VisibilityState } from '@tanstack/react-table';
2
- import type { ColumnsTable, Sorter, TableProps } from '../../table-component/type';
2
+ import type { ColumnsTable, Sorter, TableProps } from '../../grid-component/type';
3
3
  import type { Dispatch, Key, SetStateAction } from 'react';
4
4
  import React from 'react';
5
5
  type Props<T> = Omit<TableProps<T>, 'columns'> & {
@@ -63,30 +63,6 @@ const Grid = props => {
63
63
  rowSelection,
64
64
  ...rest
65
65
  } = props;
66
-
67
- // const [columnResizeMode] = React.useState<ColumnResizeMode>('onChange')
68
-
69
- // const [columnResizeDirection] = React.useState<ColumnResizeDirection>('ltr')
70
-
71
- // const [paginationState, setPagination] = React.useState<PaginationState>({
72
- // pageIndex: pagination && pagination.currentPage ? pagination.currentPage - 1 : 0,
73
- // pageSize: pagination && pagination.pageSize ? pagination.pageSize : 20
74
- // })
75
-
76
- // const [rowSelection, setRowSelection] = React.useState<RowSelectionState>({})
77
-
78
- // const [grouping, setGrouping] = React.useState<GroupingState>([])
79
-
80
- // const [columnSizing, setColumnSizing] = React.useState<ColumnSizingState>({})
81
- // const [columnSizingInfo, setColumnSizingInfo] = React.useState<ColumnSizingInfoState>({} as ColumnSizingInfoState)
82
-
83
- // const [columnFilters, setColumnFilters] = React.useState<ColumnFiltersState>([])
84
-
85
- // const [operator, setOperator] = React.useState<ColumnOperatorState>([])
86
- // const [sorting, setSorting] = React.useState<SortingState>([])
87
-
88
- // const [columnOrder, setColumnOrder] = React.useState<string[]>(() => columns.map(c => c.id!))
89
-
90
66
  const [isSelectionChange, setIsSelectionChange] = _react.default.useState({
91
67
  isChange: false,
92
68
  type: '',
@@ -1,7 +1,7 @@
1
1
  import type { Dispatch, SetStateAction } from 'react';
2
2
  import React from 'react';
3
3
  import type { ColumnDef, ColumnSizingInfoState, ColumnSizingState, Table } from '@tanstack/react-table';
4
- import type { ColumnsTable, TableProps } from '../../table-component/type';
4
+ import type { ColumnsTable, TableProps } from '../../grid-component/type';
5
5
  type TableContainerProps<T> = Omit<TableProps<T>, 'columns'> & {
6
6
  table: Table<T>;
7
7
  prefix: string;
@@ -18,8 +18,6 @@ var _utils = require("../hook/utils");
18
18
  var _useContext = require("../useContext");
19
19
  var _utils2 = require("../../table-component/hook/utils");
20
20
  var _ColumnsGroup = require("../ColumnsGroup");
21
- // import type { Dispatch, SetStateAction } from 'react'
22
-
23
21
  // import { ColumnsGroup } from '../../grid-component/ColumnsGroup';
24
22
 
25
23
  const TableContainer = props => {
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { ColumnDef, Table } from "@tanstack/react-table";
3
- import type { CommandClick } from '../../table-component/type';
3
+ import type { CommandClick } from '../../grid-component/type';
4
4
  type Props<T> = {
5
5
  tableContainerRef: React.RefObject<HTMLDivElement>;
6
6
  table: Table<T>;
@@ -27,7 +27,6 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
27
27
  const TableWrapper = props => {
28
28
  const {
29
29
  table,
30
- // columns,
31
30
  height,
32
31
  id,
33
32
  commandClick
@@ -47,7 +46,6 @@ const TableWrapper = props => {
47
46
  ref: scrollRef,
48
47
  style: {
49
48
  overflow: "auto",
50
- // border: "1px solid #ccc",
51
49
  height,
52
50
  position: "relative"
53
51
  }
@@ -86,12 +84,14 @@ const TableWrapper = props => {
86
84
  })),
87
85
  TableRow: props => {
88
86
  const index = props["data-index"];
87
+ const rowheight = props["data-known-size"];
89
88
  const row = rows[index];
90
89
  return /*#__PURE__*/_react.default.createElement(_TableBodyRow.default, (0, _extends2.default)({
91
90
  tableId: id,
92
91
  row: row,
93
92
  table: table,
94
- commandClick: commandClick
93
+ commandClick: commandClick,
94
+ rowheight: rowheight
95
95
  }, props));
96
96
  }
97
97
  }
@@ -145,22 +145,6 @@ const TableWrapper = props => {
145
145
  });
146
146
  }));
147
147
  }
148
-
149
- // itemContent={(index) => {
150
-
151
- // const row = rows[index]
152
- // return (
153
-
154
- // <TableBodyRow
155
- // tableId={id}
156
- // row={row}
157
- // table={table}
158
- // // {...props}
159
-
160
- // />
161
-
162
- // )
163
- // }}
164
148
  })));
165
149
  };
166
150
  var _default = exports.default = TableWrapper;
@@ -1,5 +1,5 @@
1
1
  import type { Dispatch, SetStateAction } from 'react';
2
- import type { ColumnTable, ExpandableConfig, IFormat, IGroupSetting, IWrapSettings, Locale, PaginationConfig, RangeState, RecordDoubleClickEventArgs, RowClassName, SelectionSettings } from "../table-component/type";
2
+ import type { ColumnTable, ExpandableConfig, IFormat, IGroupSetting, IWrapSettings, Locale, PaginationConfig, RangeState, RecordDoubleClickEventArgs, RowClassName, SelectionSettings } from "../grid-component/type";
3
3
  import type { SubmitHandler } from "react-hook-form";
4
4
  import type { ExpandedState, Row, Table } from '@tanstack/react-table';
5
5
  export type IPositionCell = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "es-grid-template",
3
- "version": "1.8.67",
3
+ "version": "1.8.68",
4
4
  "description": "es-grid-template",
5
5
  "keywords": [
6
6
  "react",