qbs-react-grid 2.2.4 → 2.2.5

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 (100) hide show
  1. package/dist/css/qbs-react-grid.css +1 -1
  2. package/dist/css/qbs-react-grid.min.css +1 -1
  3. package/dist/css/qbs-react-grid.min.css.map +1 -1
  4. package/es/Cell.js +1 -2
  5. package/es/Pagination.d.ts +0 -3
  6. package/es/Pagination.js +3 -8
  7. package/es/Table.d.ts +0 -3
  8. package/es/Table.js +12 -18
  9. package/es/index.d.ts +1 -1
  10. package/es/less/pagination.less +9 -9
  11. package/es/less/qbs-table.less +73 -205
  12. package/es/qbsTable/CustomTableCell.js +2 -13
  13. package/es/qbsTable/QbsTable.js +46 -124
  14. package/es/qbsTable/TableCardList.js +39 -52
  15. package/es/qbsTable/Toolbar.js +13 -62
  16. package/es/qbsTable/commontypes.d.ts +2 -30
  17. package/es/qbsTable/utilities/CardComponent.d.ts +0 -2
  18. package/es/qbsTable/utilities/CardComponent.js +3 -7
  19. package/es/qbsTable/utilities/CardMenuDropdown.d.ts +0 -2
  20. package/es/qbsTable/utilities/CardMenuDropdown.js +7 -7
  21. package/es/qbsTable/utilities/ColumShowHide.d.ts +0 -4
  22. package/es/qbsTable/utilities/ColumShowHide.js +6 -9
  23. package/es/qbsTable/utilities/SearchInput.d.ts +0 -1
  24. package/es/qbsTable/utilities/SearchInput.js +1 -3
  25. package/es/qbsTable/utilities/ToolTip.d.ts +1 -8
  26. package/es/qbsTable/utilities/ToolTip.js +31 -107
  27. package/es/qbsTable/utilities/empty.js +1 -1
  28. package/es/qbsTable/utilities/icons.d.ts +0 -3
  29. package/es/qbsTable/utilities/icons.js +1 -65
  30. package/es/qbsTable/utilities/tablecalc.d.ts +1 -1
  31. package/es/qbsTable/utilities/tablecalc.js +2 -7
  32. package/es/utils/useCellDescriptor.js +1 -0
  33. package/es/utils/useScrollListener.d.ts +0 -1
  34. package/es/utils/useScrollListener.js +3 -5
  35. package/lib/Cell.js +1 -2
  36. package/lib/Pagination.d.ts +0 -3
  37. package/lib/Pagination.js +3 -8
  38. package/lib/Table.d.ts +0 -3
  39. package/lib/Table.js +12 -18
  40. package/lib/index.d.ts +1 -1
  41. package/lib/less/pagination.less +9 -9
  42. package/lib/less/qbs-table.less +73 -205
  43. package/lib/qbsTable/CustomTableCell.js +2 -13
  44. package/lib/qbsTable/QbsTable.js +46 -124
  45. package/lib/qbsTable/TableCardList.js +39 -52
  46. package/lib/qbsTable/Toolbar.js +12 -61
  47. package/lib/qbsTable/commontypes.d.ts +2 -30
  48. package/lib/qbsTable/utilities/CardComponent.d.ts +0 -2
  49. package/lib/qbsTable/utilities/CardComponent.js +3 -7
  50. package/lib/qbsTable/utilities/CardMenuDropdown.d.ts +0 -2
  51. package/lib/qbsTable/utilities/CardMenuDropdown.js +5 -6
  52. package/lib/qbsTable/utilities/ColumShowHide.d.ts +0 -4
  53. package/lib/qbsTable/utilities/ColumShowHide.js +6 -9
  54. package/lib/qbsTable/utilities/SearchInput.d.ts +0 -1
  55. package/lib/qbsTable/utilities/SearchInput.js +1 -3
  56. package/lib/qbsTable/utilities/ToolTip.d.ts +1 -8
  57. package/lib/qbsTable/utilities/ToolTip.js +30 -107
  58. package/lib/qbsTable/utilities/empty.js +1 -1
  59. package/lib/qbsTable/utilities/icons.d.ts +0 -3
  60. package/lib/qbsTable/utilities/icons.js +3 -70
  61. package/lib/qbsTable/utilities/tablecalc.d.ts +1 -1
  62. package/lib/qbsTable/utilities/tablecalc.js +2 -7
  63. package/lib/utils/useCellDescriptor.js +1 -0
  64. package/lib/utils/useScrollListener.d.ts +0 -1
  65. package/lib/utils/useScrollListener.js +3 -5
  66. package/package.json +2 -2
  67. package/src/Cell.tsx +1 -3
  68. package/src/HeaderCell.tsx +1 -0
  69. package/src/Pagination.tsx +3 -10
  70. package/src/Table.tsx +10 -23
  71. package/src/customSelect.tsx +88 -88
  72. package/src/index.ts +1 -1
  73. package/src/less/pagination.less +9 -9
  74. package/src/less/qbs-table.less +73 -205
  75. package/src/qbsTable/CustomTableCell.tsx +9 -31
  76. package/src/qbsTable/QbsTable.tsx +25 -101
  77. package/src/qbsTable/TableCardList.tsx +19 -35
  78. package/src/qbsTable/Toolbar.tsx +11 -53
  79. package/src/qbsTable/commontypes.ts +1 -32
  80. package/src/qbsTable/utilities/CardComponent.tsx +2 -7
  81. package/src/qbsTable/utilities/CardMenuDropdown.tsx +6 -11
  82. package/src/qbsTable/utilities/ColumShowHide.tsx +6 -33
  83. package/src/qbsTable/utilities/SearchInput.tsx +1 -3
  84. package/src/qbsTable/utilities/ToolTip.tsx +27 -138
  85. package/src/qbsTable/utilities/empty.tsx +2 -2
  86. package/src/qbsTable/utilities/icons.tsx +1 -78
  87. package/src/qbsTable/utilities/tablecalc.ts +2 -8
  88. package/src/utils/useCellDescriptor.ts +1 -0
  89. package/src/utils/useScrollListener.ts +3 -13
  90. package/src/utils/useTableRows.ts +1 -1
  91. package/es/qbsTable/labels.d.ts +0 -48
  92. package/es/qbsTable/labels.js +0 -34
  93. package/es/qbsTable/utilities/VerticalDropDownMenu.d.ts +0 -13
  94. package/es/qbsTable/utilities/VerticalDropDownMenu.js +0 -157
  95. package/lib/qbsTable/labels.d.ts +0 -48
  96. package/lib/qbsTable/labels.js +0 -42
  97. package/lib/qbsTable/utilities/VerticalDropDownMenu.d.ts +0 -13
  98. package/lib/qbsTable/utilities/VerticalDropDownMenu.js +0 -165
  99. package/src/qbsTable/labels.ts +0 -58
  100. package/src/qbsTable/utilities/VerticalDropDownMenu.tsx +0 -178
package/es/Pagination.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import React, { useEffect, useState } from 'react';
2
2
  import CustomSelect from './customSelect';
3
- import { mergeLabels } from './qbsTable/labels';
4
3
  import { getRowDisplayRange } from './qbsTable/utilities/tablecalc';
5
4
 
6
5
  // Import the custom select component
@@ -36,10 +35,7 @@ var PageIndex = function PageIndex(_ref) {
36
35
  return /*#__PURE__*/React.createElement(React.Fragment, null, renderPageNumbers());
37
36
  };
38
37
  var Pagination = function Pagination(_ref2) {
39
- var paginationProps = _ref2.paginationProps,
40
- labelsProp = _ref2.labels,
41
- dataTheme = _ref2.dataTheme;
42
- var labels = mergeLabels(labelsProp);
38
+ var paginationProps = _ref2.paginationProps;
43
39
  var _paginationProps$drop = paginationProps.dropOptions,
44
40
  dropOptions = _paginationProps$drop === void 0 ? [10, 20, 50, 100, 200] : _paginationProps$drop,
45
41
  _paginationProps$curr = paginationProps.currentPage,
@@ -80,14 +76,13 @@ var Pagination = function Pagination(_ref2) {
80
76
  };
81
77
  return /*#__PURE__*/React.createElement("div", {
82
78
  className: "qbs-table-custom-pagination",
83
- "data-theme": dataTheme,
84
79
  style: {
85
80
  display: 'flex',
86
81
  justifyContent: 'space-between'
87
82
  }
88
83
  }, /*#__PURE__*/React.createElement("div", {
89
84
  className: "rows-count"
90
- }, getRowDisplayRange(total, rowsPerPageState, currentPage, labels.showingRange)), /*#__PURE__*/React.createElement("div", {
85
+ }, getRowDisplayRange(total, rowsPerPageState, currentPage)), /*#__PURE__*/React.createElement("div", {
91
86
  className: "qbs-table-pagination-right-block"
92
87
  }, /*#__PURE__*/React.createElement("button", {
93
88
  className: "qbs-table-icon-container",
@@ -166,7 +161,7 @@ var Pagination = function Pagination(_ref2) {
166
161
  className: "qbs-table-pagination-flexBox"
167
162
  }, /*#__PURE__*/React.createElement("span", {
168
163
  className: "qbs-table-pagination-text"
169
- }, labels.itemsPerPage), /*#__PURE__*/React.createElement(CustomSelect, {
164
+ }, "Items per page"), /*#__PURE__*/React.createElement(CustomSelect, {
170
165
  options: dropData,
171
166
  selectedValue: rowsPerPageState,
172
167
  onChange: handleRowsPerPage
package/es/Table.d.ts CHANGED
@@ -99,7 +99,6 @@ export interface TableProps<Row, Key> extends Omit<StandardProps, 'onScroll'> {
99
99
  /** Tree table, the callback function in the expanded node */
100
100
  renderTreeToggle?: (expandButton: React.ReactNode, rowData?: Row, expanded?: boolean) => React.ReactNode;
101
101
  tableKey?: string;
102
- infiniteLoading?: boolean;
103
102
  /** Customize what you can do to expand a zone */
104
103
  renderRowExpanded?: (rowData?: Row) => React.ReactNode;
105
104
  /** Custom row element */
@@ -124,7 +123,6 @@ export interface TableProps<Row, Key> extends Omit<StandardProps, 'onScroll'> {
124
123
  onTouchMove?: (event: React.TouchEvent) => void;
125
124
  /** Callback for the `touchend` event. */
126
125
  onTouchEnd?: (event: React.TouchEvent) => void;
127
- handleInfiniteScroll?: (value: number) => void;
128
126
  /**
129
127
  * Callback after table data update.
130
128
  * @deprecated use `shouldUpdateScroll` instead
@@ -134,7 +132,6 @@ export interface TableProps<Row, Key> extends Omit<StandardProps, 'onScroll'> {
134
132
  y: number;
135
133
  }) => void) => void;
136
134
  tableBodyRef: React.RefObject<HTMLDivElement>;
137
- wheelWrapperRef: React.RefObject<HTMLDivElement | null>;
138
135
  bodyRef?: (ref: HTMLElement) => void;
139
136
  }
140
137
  export interface TableInstance<Row, Key> extends React.FunctionComponent<TableProps<Row, Key>> {
package/es/Table.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
- var _excluded = ["affixHeader", "children", "classPrefix", "className", "data", "defaultSortType", "width", "expandedRowKeys", "defaultExpandAllRows", "defaultExpandedRowKeys", "style", "id", "isTree", "hover", "bordered", "cellBordered", "wordWrap", "loading", "locale", "showHeader", "sortColumn", "rowHeight", "sortType", "headerHeight", "minHeight", "height", "autoHeight", "fillHeight", "rtl", "translate3d", "rowKey", "virtualized", "rowClassName", "rowExpandedHeight", "disabledScroll", "affixHorizontalScrollbar", "loadAnimation", "shouldUpdateScroll", "renderRow", "renderRowExpanded", "renderLoading", "renderEmpty", "onSortColumn", "onScroll", "renderTreeToggle", "onRowClick", "onRowContextMenu", "onExpandChange", "onTouchStart", "onTouchMove", "onTouchEnd", "tableBodyHeight", "columns", "tableBodyRef", "tableKey", "handleInfiniteScroll", "infiniteLoading", "wheelWrapperRef"],
3
+ var _excluded = ["affixHeader", "children", "classPrefix", "className", "data", "defaultSortType", "width", "expandedRowKeys", "defaultExpandAllRows", "defaultExpandedRowKeys", "style", "id", "isTree", "hover", "bordered", "cellBordered", "wordWrap", "loading", "locale", "showHeader", "pagination", "paginationProps", "sortColumn", "rowHeight", "sortType", "headerHeight", "minHeight", "height", "autoHeight", "fillHeight", "rtl", "translate3d", "rowKey", "virtualized", "rowClassName", "rowExpandedHeight", "disabledScroll", "affixHorizontalScrollbar", "loadAnimation", "shouldUpdateScroll", "renderRow", "renderRowExpanded", "renderLoading", "renderEmpty", "onSortColumn", "onScroll", "renderTreeToggle", "onRowClick", "onRowContextMenu", "onExpandChange", "onTouchStart", "onTouchMove", "onTouchEnd", "dataTheme", "tableBodyHeight", "columns", "tableBodyRef", "tableKey"],
4
4
  _excluded2 = ["depth", "rowIndex"],
5
5
  _excluded3 = ["cellHeight"];
6
6
  import { getTranslateDOMPositionXY } from 'dom-lib/translateDOMPositionXY';
@@ -70,6 +70,10 @@ var Table = /*#__PURE__*/React.forwardRef(function (props, ref) {
70
70
  } : _props$locale,
71
71
  _props$showHeader = props.showHeader,
72
72
  showHeader = _props$showHeader === void 0 ? true : _props$showHeader,
73
+ _props$pagination = props.pagination,
74
+ pagination = _props$pagination === void 0 ? true : _props$pagination,
75
+ _props$paginationProp = props.paginationProps,
76
+ paginationProps = _props$paginationProp === void 0 ? {} : _props$paginationProp,
73
77
  sortColumn = props.sortColumn,
74
78
  _props$rowHeight = props.rowHeight,
75
79
  rowHeight = _props$rowHeight === void 0 ? ROW_HEIGHT : _props$rowHeight,
@@ -107,19 +111,18 @@ var Table = /*#__PURE__*/React.forwardRef(function (props, ref) {
107
111
  onTouchStart = props.onTouchStart,
108
112
  onTouchMove = props.onTouchMove,
109
113
  onTouchEnd = props.onTouchEnd,
114
+ dataTheme = props.dataTheme,
110
115
  tableBodyHeight = props.tableBodyHeight,
111
116
  columns = props.columns,
112
117
  tableBodyRef = props.tableBodyRef,
113
118
  tableKey = props.tableKey,
114
- handleInfiniteScroll = props.handleInfiniteScroll,
115
- infiniteLoading = props.infiniteLoading,
116
- wheelWrapperRef = props.wheelWrapperRef,
117
119
  rest = _objectWithoutPropertiesLoose(props, _excluded);
118
120
  var _useClassNames = useClassNames(classPrefix, typeof classPrefix !== 'undefined'),
119
121
  withClassPrefix = _useClassNames.withClassPrefix,
120
122
  mergeCls = _useClassNames.merge,
121
123
  prefix = _useClassNames.prefix;
122
124
  var childTableRef = useRef(null);
125
+
123
126
  // Use `forceUpdate` to force the component to re-render after manipulating the DOM.
124
127
  var _useReducer = useReducer(function (x) {
125
128
  return x + 1;
@@ -178,6 +181,7 @@ var Table = /*#__PURE__*/React.forwardRef(function (props, ref) {
178
181
  var affixHeaderWrapperRef = useRef(null);
179
182
  var headerWrapperRef = useRef(null);
180
183
  // const tableBodyRef = useRef<HTMLDivElement>(null);
184
+ var wheelWrapperRef = useRef(null);
181
185
  var scrollbarXRef = useRef(null);
182
186
  var scrollbarYRef = useRef(null);
183
187
  var handleTableResizeChange = function handleTableResizeChange(_prevSize, event) {
@@ -289,8 +293,7 @@ var Table = /*#__PURE__*/React.forwardRef(function (props, ref) {
289
293
  onScroll: onScroll,
290
294
  onTouchStart: onTouchStart,
291
295
  onTouchMove: onTouchMove,
292
- onTouchEnd: onTouchEnd,
293
- handleInfiniteScroll: handleInfiniteScroll
296
+ onTouchEnd: onTouchEnd
294
297
  }),
295
298
  isScrolling = _useScrollListener.isScrolling,
296
299
  isChildFocused = _useScrollListener.isChildFocused,
@@ -614,9 +617,7 @@ var Table = /*#__PURE__*/React.forwardRef(function (props, ref) {
614
617
  width: tableWidth.current
615
618
  },
616
619
  length: tableWidth.current,
617
- onScroll: function onScroll(delta) {
618
- onScrollHorizontal(delta);
619
- },
620
+ onScroll: onScrollHorizontal,
620
621
  scrollLength: contentWidth.current,
621
622
  ref: scrollbarXRef
622
623
  }));
@@ -780,9 +781,7 @@ var Table = /*#__PURE__*/React.forwardRef(function (props, ref) {
780
781
  role: "rowgroup",
781
782
  className: prefix('body-row-wrapper'),
782
783
  style: bodyStyles,
783
- onScroll: function onScroll(e) {
784
- onScrollBody === null || onScrollBody === void 0 ? void 0 : onScrollBody(e); // existing handler
785
- }
784
+ onScroll: onScrollBody
786
785
  }, !loading && /*#__PURE__*/React.createElement("div", {
787
786
  style: wheelStyles,
788
787
  className: prefix('body-wheel-area'),
@@ -793,12 +792,7 @@ var Table = /*#__PURE__*/React.forwardRef(function (props, ref) {
793
792
  }) : null, visibleRows.current, bottomHideHeight ? /*#__PURE__*/React.createElement(Row, {
794
793
  style: bottomRowStyles,
795
794
  className: "virtualized"
796
- }) : null, infiniteLoading && /*#__PURE__*/React.createElement("div", {
797
- style: {
798
- padding: 12,
799
- textAlign: 'center'
800
- }
801
- }, /*#__PURE__*/React.createElement("span", null, "Loading more rows\u2026"))), /*#__PURE__*/React.createElement(EmptyMessage, {
795
+ }) : null), /*#__PURE__*/React.createElement(EmptyMessage, {
802
796
  locale: locale,
803
797
  renderEmpty: renderEmpty,
804
798
  addPrefix: prefix,
package/es/index.d.ts CHANGED
@@ -11,5 +11,5 @@ export type { ColumnProps } from './Column';
11
11
  export type { CellProps } from './Cell';
12
12
  export type { HeaderCellProps } from './HeaderCell';
13
13
  export type { ColumnGroupProps } from './ColumnGroup';
14
- export type { QbsTableProps, QbsTableLabels } from './qbsTable/commontypes';
14
+ export type { QbsTableProps } from './qbsTable/commontypes';
15
15
  export type { StandardProps, SortType, RowDataType, RowKeyType, TableSizeChangeEventName } from './@types/common';
@@ -5,8 +5,8 @@
5
5
  min-height: 40px;
6
6
  align-items: center;
7
7
  border-radius: 0 0 4px 4px;
8
- border-top: 1px solid var(--base-gray-border, #d6d8dc);
9
- background: var(--table-bg, #fff);
8
+ border-top: 1px solid #d6d8dc;
9
+ background: #fff;
10
10
  &-header {
11
11
  border-bottom: 1px solid #eee;
12
12
  position: absolute;
@@ -27,8 +27,8 @@
27
27
  font-weight: 500;
28
28
  line-height: 20px;
29
29
  border-radius: 6px;
30
- border: 1px solid var(--base-gray-border, #d6d8dc);
31
- background: var(--gray-light-1, #fff);
30
+ border: 1px solid #d6d8dc;
31
+ background: #fff;
32
32
  }
33
33
  .qbs-table-icon-container {
34
34
  padding: 0;
@@ -109,7 +109,7 @@
109
109
  font-style: normal;
110
110
  font-weight: 500;
111
111
  line-height: 20px;
112
- color: var(--gray-dark-3, #313131);
112
+ color: #313131;
113
113
  }
114
114
  }
115
115
 
@@ -125,7 +125,7 @@
125
125
  .custom-select-trigger {
126
126
  padding: 2px 8px;
127
127
  cursor: pointer;
128
- border: 1px solid var(--base-gray-border, #d6d8dc);
128
+ border: 1px solid #d6d8dc;
129
129
  border-radius: 4px;
130
130
  min-width: 65px;
131
131
  position: relative;
@@ -140,7 +140,7 @@
140
140
  list-style: none;
141
141
  margin: 2px 0 0;
142
142
  padding: 0;
143
- background: var(--gray-light-1, #fff);
143
+ background: #fff;
144
144
  border-radius: 8px;
145
145
  box-shadow: 0 8px 20px 0 #00000026;
146
146
  }
@@ -158,7 +158,7 @@ ul.custom-select-options.top {
158
158
 
159
159
  .custom-select-option:hover,
160
160
  .custom-select-option.selected {
161
- background-color: var(--table-row-hover-bg, #f0f0f0);
161
+ background-color: #f0f0f0;
162
162
  }
163
163
 
164
164
  .custom-select-trigger:before {
@@ -167,7 +167,7 @@ ul.custom-select-options.top {
167
167
  right: 10px;
168
168
  top: 6px;
169
169
  font-weight: bold;
170
- border: solid var(--gray-dark-3, black);
170
+ border: solid black;
171
171
  border-width: 0 1px 1px 0;
172
172
  display: inline-block;
173
173
  padding: 3px;
@@ -104,156 +104,52 @@
104
104
  }
105
105
  }
106
106
  .qbs-table[data-theme='dark'] {
107
- background-color: #1f1f1f;
108
- color: #f5f5f5;
107
+ background-color: #333333;
108
+ color: #ffffff;
109
109
 
110
- .qbs-table-border-wrap {
111
- border-color: #3d3d3d;
112
- background: #262626;
113
- }
114
-
115
- .qbs-table-toolbar-container,
116
- .qbs-table-toolbar,
117
- .qbs-table-toolbar-sub-container,
118
- .sub-qbs-table-toolbar {
119
- color: #f5f5f5;
120
- }
121
-
122
- .qbs-table-search-container {
123
- .input {
124
- border-color: #4a4a4a;
125
- background: #2d2d2d;
126
- color: #f5f5f5;
127
-
128
- &:hover,
129
- &:focus {
130
- border-color: #6b6b6b;
131
- background: #2d2d2d;
132
- }
133
- }
134
-
135
- .search-button,
136
- .close-button {
137
- color: #d1d1d1;
138
- background-color: transparent;
139
- }
140
- }
141
-
142
- .qbs-table-column-popup,
143
- .qbs-table-popup-container {
144
- background: #2d2d2d;
145
- color: #f5f5f5;
146
- border-color: #4a4a4a;
147
- }
148
-
149
- .qbs-table-popup-label,
150
- .qbs-table-popup-value,
151
- .qbs-table-reset-link {
152
- color: #f5f5f5;
153
- }
154
-
155
- .qbs-table-custom-pagination,
156
- .qbs-table-pagination-text,
157
- .rows-count {
158
- color: #f5f5f5;
159
- }
160
-
161
- .qbs-table-icon-container svg path {
162
- stroke: #e5e5e5;
163
- }
164
-
165
- .custom-select-trigger,
166
- .custom-select-options {
167
- background: #2d2d2d;
168
- color: #f5f5f5;
169
- border-color: #4a4a4a;
170
- }
171
-
172
- .qbs-card-container {
173
- border-color: #4a4a4a;
174
- background: #262626;
175
- color: #f5f5f5;
176
- }
177
-
178
- .nodata-title {
179
- color: #f5f5f5;
180
- }
181
-
182
- .tooltiptext {
183
- background-color: #3d3d3d;
184
- color: #fff;
185
- }
186
- }
187
-
188
- .qbs-table-custom-pagination[data-theme='dark'] {
189
- color: #f5f5f5;
190
-
191
- .rows-count,
192
- .qbs-table-pagination-text {
193
- color: #f5f5f5;
194
- }
195
-
196
- .qbs-table-icon-container svg path {
197
- stroke: #e5e5e5;
198
- }
199
- }
200
-
201
- .rs-table-cell-content[data-theme='dark'] {
202
- background-color: #262626;
203
- color: #f5f5f5;
204
- }
205
-
206
- .qbs-table[data-theme='dark'] {
207
- .rs-table,
208
- .rs-table-body-row-wrapper,
209
- .rs-table-row,
210
- .rs-table-cell,
211
110
  .rs-table-cell-group,
212
- .rs-table-row-header,
213
- .rs-table-row-header .rs-table-cell {
214
- background-color: #262626;
215
- color: #f5f5f5;
111
+ .rs-table-cell-group-fixed-left,
112
+ .rs-table-cell-group-fixed-right {
113
+ background-color: #262626 !important;
216
114
  }
217
115
 
218
- .rs-table-cell-content {
219
- background-color: #262626;
220
- color: #f5f5f5;
221
- }
222
-
223
- .rs-table-row-header .rs-table-cell-content,
224
- .rs-table-cell-header .rs-table-cell-content {
225
- background-color: #1b2028;
226
- color: #f5f5f5;
116
+ .rs-table-hover .rs-table-body-row-wrapper .rs-table-row:hover .rs-table-cell-group,
117
+ .rs-table-hover .rs-table-body-row-wrapper .rs-table-row:hover .rs-table-cell-group-fixed-left,
118
+ .rs-table-hover .rs-table-body-row-wrapper .rs-table-row:hover .rs-table-cell-group-fixed-right,
119
+ .rs-table-hover .rs-table-body-row-wrapper .rs-table-row:hover .rs-table-cell-group > div,
120
+ .rs-table-hover .rs-table-body-row-wrapper .rs-table-row:hover .rs-table-cell-group .rs-table-cell,
121
+ .rs-table-hover .rs-table-body-row-wrapper .rs-table-row:hover .rs-table-cell-group .rs-table-cell-content {
122
+ background-color: #1d2633 !important;
227
123
  }
228
124
 
229
- .rs-table-hover .rs-table-body-row-wrapper .rs-table-row:hover,
230
- .rs-table-hover .rs-table-body-row-wrapper .rs-table-row:hover .rs-table-cell,
231
- .rs-table-hover .rs-table-body-row-wrapper .rs-table-row:hover .rs-table-cell-content {
232
- background-color: #1d2633;
125
+ .rs-table-row:has(.qbs-table-checkbox-input:checked) .rs-table-cell-group-scroll .rs-table-cell,
126
+ .rs-table-row:has(.qbs-table-checkbox-input:checked) .rs-table-cell-group-scroll .rs-table-cell-content,
127
+ .rs-table-row.qbs-table-row-checked .rs-table-cell-group-scroll .rs-table-cell,
128
+ .rs-table-row.qbs-table-row-checked .rs-table-cell-group-scroll .rs-table-cell-content {
129
+ background-color: #8f5cff1f !important;
233
130
  }
234
131
 
235
- .rs-table-cell {
236
- border-color: #3d3d3d;
132
+ .rs-table-row:has(.qbs-table-checkbox-input:checked) .rs-table-cell-group-fixed-left,
133
+ .rs-table-row:has(.qbs-table-checkbox-input:checked) .rs-table-cell-group-fixed-right,
134
+ .rs-table-row.qbs-table-row-checked .rs-table-cell-group-fixed-left,
135
+ .rs-table-row.qbs-table-row-checked .rs-table-cell-group-fixed-right,
136
+ .rs-table-row:has(.qbs-table-checkbox-input:checked) .rs-table-cell-group-fixed-left > div,
137
+ .rs-table-row:has(.qbs-table-checkbox-input:checked) .rs-table-cell-group-fixed-right > div,
138
+ .rs-table-row:has(.qbs-table-checkbox-input:checked) .rs-table-cell-group-fixed-left .rs-table-cell,
139
+ .rs-table-row:has(.qbs-table-checkbox-input:checked) .rs-table-cell-group-fixed-right .rs-table-cell,
140
+ .rs-table-row:has(.qbs-table-checkbox-input:checked) .rs-table-cell-group-fixed-left .rs-table-cell-content,
141
+ .rs-table-row:has(.qbs-table-checkbox-input:checked) .rs-table-cell-group-fixed-right .rs-table-cell-content {
142
+ background-color: #2a2438 !important;
237
143
  }
238
144
 
239
- .rs-table-scrollbar {
240
- background-color: #2d2d2d;
241
- }
242
-
243
- .rs-table-scrollbar-handle {
244
- background-color: #5a5a5a;
145
+ .qbs-table-checkbox .qbs-table-checkbox-input:checked ~ label {
146
+ background-color: #8f5cff !important;
147
+ border-color: #a78bfa !important;
245
148
  }
246
149
  }
247
-
248
- .qbs-table[dir='rtl'] {
249
- .rs-table-cell-header .rs-table-cell-content {
250
- text-align: right;
251
- }
252
-
253
- .rs-table-cell-wrap {
254
- justify-content: flex-start;
255
- width: 100%;
256
- }
150
+ .rs-table-cell-content[data-theme='dark'] {
151
+ background-color: #333333;
152
+ color: #ffffff;
257
153
  }
258
154
  /* Dropdown container */
259
155
  .qbs-table-menu-dropdown {
@@ -387,98 +283,70 @@
387
283
  .qbs-table-tooltip {
388
284
  cursor: pointer;
389
285
  position: relative;
390
- display: inline-flex;
286
+ width: auto;
287
+ display: flex;
391
288
  }
392
289
 
393
290
  .qbs-table-tooltip .tooltiptext {
394
291
  visibility: hidden;
395
- background-color: var(--tooltip-bg, #222);
396
- color: var(--tooltip-text, #fff);
292
+ background-color: black;
293
+ color: white;
397
294
  text-align: center;
398
- padding: 6px 10px;
399
- border-radius: 6px;
295
+ padding: 6px;
296
+ border-radius: 4px;
400
297
  position: absolute;
401
- z-index: 10050;
298
+ z-index: 9999;
402
299
  opacity: 0;
403
- transition: opacity 0.15s ease;
300
+ transition: opacity 0.3s;
404
301
  font-size: 12px;
405
- font-weight: 500;
302
+ font-style: normal;
303
+ font-weight: 400;
406
304
  line-height: 16px;
407
- white-space: nowrap;
408
- max-width: min(280px, 90vw);
409
- pointer-events: none;
410
- inset-inline-start: 50%;
411
- translate: -50% 0;
305
+ width: 100px;
412
306
  }
413
307
 
414
308
  .qbs-table-tooltip.up .tooltiptext {
415
- bottom: calc(100% + 8px);
416
- top: auto;
309
+ bottom: calc(100% + 10px);
310
+ right: -8px;
311
+ left: unset;
417
312
  }
418
313
 
419
314
  .qbs-table-tooltip.down .tooltiptext {
315
+ right: -10px;
420
316
  top: calc(100% + 8px);
421
- bottom: auto;
422
317
  }
423
318
 
319
+ // .qbs-table-tooltip:hover .tooltiptext {
320
+ // visibility: visible;
321
+ // opacity: 1;
322
+ // }
323
+
424
324
  .qbs-table-tooltip .tooltiptext::after {
425
325
  content: '';
426
326
  position: absolute;
427
- inset-inline-start: 50%;
428
- translate: -50% 0;
429
- border: 5px solid transparent;
327
+ border-width: 5px;
328
+ border-style: solid;
430
329
  }
431
330
 
432
331
  .qbs-table-tooltip.up .tooltiptext::after {
433
- top: 100%;
434
- border-top-color: var(--tooltip-bg, #222);
332
+ border-color: black transparent transparent !important;
333
+ right: 12px !important;
334
+ margin-left: -5px !important;
335
+ top: 100% !important;
336
+ left: unset !important;
435
337
  }
436
338
 
437
339
  .qbs-table-tooltip.down .tooltiptext::after {
438
- bottom: 100%;
439
- border-bottom-color: var(--tooltip-bg, #222);
340
+ border-color: transparent transparent black;
341
+ bottom: 100% !important;
342
+ right: 12px !important;
343
+ margin-left: -5px !important;
344
+ left: unset !important;
440
345
  }
441
-
442
- .qbs-table-tooltip-floating.tooltiptext {
443
- position: fixed;
444
- z-index: 10050;
445
- visibility: hidden;
446
- opacity: 0;
447
- pointer-events: none;
448
- background-color: var(--tooltip-bg, #222);
449
- color: var(--tooltip-text, #fff);
450
- text-align: center;
451
- padding: 6px 10px;
452
- border-radius: 6px;
453
- font-size: 12px;
454
- font-weight: 500;
455
- line-height: 16px;
456
- white-space: nowrap;
457
- max-width: min(280px, 90vw);
458
- transition: opacity 0.15s ease;
459
- }
460
-
461
- .qbs-table-tooltip-floating.tooltiptext.is-positioned {
462
- visibility: visible;
463
- opacity: 1;
464
- }
465
-
466
- .qbs-table-tooltip-floating.tooltiptext::after {
467
- content: '';
468
- position: absolute;
469
- left: var(--tooltip-arrow-offset, 50%);
470
- translate: -50% 0;
471
- border: 5px solid transparent;
472
- }
473
-
474
- .qbs-table-tooltip-floating--down.tooltiptext::after {
475
- bottom: 100%;
476
- border-bottom-color: var(--tooltip-bg, #222);
477
- }
478
-
479
- .qbs-table-tooltip-floating--up.tooltiptext::after {
480
- top: 100%;
481
- border-top-color: var(--tooltip-bg, #222);
346
+ .qbs-table-tooltip.down .tooltiptext {
347
+ top: 145% !important;
348
+ right: -10px !important;
349
+ left: auto !important;
482
350
  }
483
351
  .rs-table-row {
484
352
  overflow: visible !important;
@@ -879,8 +747,8 @@
879
747
  .qbs-table-top-icons {
880
748
  color: #999696;
881
749
 
882
- .active {
883
- color: #ec6a17;
750
+ .active{
751
+ color: #EC6A17;
884
752
  }
885
753
  }
886
754
  .qbs-card-empty-wrapper {
@@ -889,4 +757,4 @@
889
757
  align-items: center;
890
758
  height: 100%;
891
759
  width: 100%;
892
- }
760
+ }
@@ -9,7 +9,6 @@ import { Link } from 'react-router-dom';
9
9
  import Cell from '../Cell';
10
10
  import { handleCellFormat } from './utilities/handleFormatCell';
11
11
  import MenuDropDown from './utilities/menuDropDown';
12
- import VerticalMenuDropdown from './utilities/VerticalDropDownMenu';
13
12
  var CHECKBOX_LINE_HEIGHT = '36px';
14
13
  export var CheckCell = /*#__PURE__*/React.memo(function (_ref) {
15
14
  var rowData = _ref.rowData,
@@ -54,18 +53,8 @@ export var ActionCell = /*#__PURE__*/React.memo(function (_ref2) {
54
53
  dataTheme = _ref2.dataTheme,
55
54
  actionProps = _ref2.actionProps,
56
55
  tableBodyRef = _ref2.tableBodyRef,
57
- rowIndex = _ref2.rowIndex,
58
- dropType = _ref2.dropType,
59
- wheelWrapperRef = _ref2.wheelWrapperRef;
60
- return /*#__PURE__*/React.createElement("div", null, dropType == 'vertical' ? /*#__PURE__*/React.createElement(VerticalMenuDropdown, {
61
- tableBodyRef: tableBodyRef,
62
- actionDropDown: actionProps,
63
- rowData: rowData,
64
- dataTheme: dataTheme,
65
- rowIndex: rowIndex,
66
- handleMenuActions: handleMenuActions,
67
- wheelWrapperRef: wheelWrapperRef
68
- }) : /*#__PURE__*/React.createElement(MenuDropDown, {
56
+ rowIndex = _ref2.rowIndex;
57
+ return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(MenuDropDown, {
69
58
  tableBodyRef: tableBodyRef,
70
59
  actionDropDown: actionProps,
71
60
  rowData: rowData,