qbs-react-grid 2.2.4 → 2.2.6

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 +15 -11
  13. package/es/qbsTable/QbsTable.js +48 -124
  14. package/es/qbsTable/TableCardList.js +41 -52
  15. package/es/qbsTable/Toolbar.js +13 -62
  16. package/es/qbsTable/commontypes.d.ts +3 -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/VerticalDropDownMenu.d.ts +7 -9
  28. package/es/qbsTable/utilities/VerticalDropDownMenu.js +71 -63
  29. package/es/qbsTable/utilities/empty.js +1 -1
  30. package/es/qbsTable/utilities/icons.d.ts +0 -3
  31. package/es/qbsTable/utilities/icons.js +1 -65
  32. package/es/qbsTable/utilities/tablecalc.d.ts +1 -1
  33. package/es/qbsTable/utilities/tablecalc.js +2 -7
  34. package/es/utils/useCellDescriptor.js +1 -0
  35. package/es/utils/useScrollListener.d.ts +0 -1
  36. package/es/utils/useScrollListener.js +3 -5
  37. package/lib/Cell.js +1 -2
  38. package/lib/Pagination.d.ts +0 -3
  39. package/lib/Pagination.js +3 -8
  40. package/lib/Table.d.ts +0 -3
  41. package/lib/Table.js +12 -18
  42. package/lib/index.d.ts +1 -1
  43. package/lib/less/pagination.less +9 -9
  44. package/lib/less/qbs-table.less +73 -205
  45. package/lib/qbsTable/CustomTableCell.js +15 -11
  46. package/lib/qbsTable/QbsTable.js +48 -124
  47. package/lib/qbsTable/TableCardList.js +41 -52
  48. package/lib/qbsTable/Toolbar.js +12 -61
  49. package/lib/qbsTable/commontypes.d.ts +3 -30
  50. package/lib/qbsTable/utilities/CardComponent.d.ts +0 -2
  51. package/lib/qbsTable/utilities/CardComponent.js +3 -7
  52. package/lib/qbsTable/utilities/CardMenuDropdown.d.ts +0 -2
  53. package/lib/qbsTable/utilities/CardMenuDropdown.js +5 -6
  54. package/lib/qbsTable/utilities/ColumShowHide.d.ts +0 -4
  55. package/lib/qbsTable/utilities/ColumShowHide.js +6 -9
  56. package/lib/qbsTable/utilities/SearchInput.d.ts +0 -1
  57. package/lib/qbsTable/utilities/SearchInput.js +1 -3
  58. package/lib/qbsTable/utilities/ToolTip.d.ts +1 -8
  59. package/lib/qbsTable/utilities/ToolTip.js +30 -107
  60. package/lib/qbsTable/utilities/VerticalDropDownMenu.d.ts +7 -9
  61. package/lib/qbsTable/utilities/VerticalDropDownMenu.js +71 -63
  62. package/lib/qbsTable/utilities/empty.js +1 -1
  63. package/lib/qbsTable/utilities/icons.d.ts +0 -3
  64. package/lib/qbsTable/utilities/icons.js +3 -70
  65. package/lib/qbsTable/utilities/tablecalc.d.ts +1 -1
  66. package/lib/qbsTable/utilities/tablecalc.js +2 -7
  67. package/lib/utils/useCellDescriptor.js +1 -0
  68. package/lib/utils/useScrollListener.d.ts +0 -1
  69. package/lib/utils/useScrollListener.js +3 -5
  70. package/package.json +10 -2
  71. package/src/Cell.tsx +1 -3
  72. package/src/HeaderCell.tsx +1 -0
  73. package/src/Pagination.tsx +3 -10
  74. package/src/Table.tsx +10 -23
  75. package/src/customSelect.tsx +88 -88
  76. package/src/index.ts +1 -1
  77. package/src/less/pagination.less +9 -9
  78. package/src/less/qbs-table.less +73 -205
  79. package/src/qbsTable/CustomTableCell.tsx +23 -27
  80. package/src/qbsTable/QbsTable.tsx +26 -100
  81. package/src/qbsTable/TableCardList.tsx +20 -34
  82. package/src/qbsTable/Toolbar.tsx +11 -53
  83. package/src/qbsTable/commontypes.ts +2 -32
  84. package/src/qbsTable/utilities/CardComponent.tsx +2 -7
  85. package/src/qbsTable/utilities/CardMenuDropdown.tsx +6 -11
  86. package/src/qbsTable/utilities/ColumShowHide.tsx +6 -33
  87. package/src/qbsTable/utilities/SearchInput.tsx +1 -3
  88. package/src/qbsTable/utilities/ToolTip.tsx +27 -138
  89. package/src/qbsTable/utilities/VerticalDropDownMenu.tsx +89 -74
  90. package/src/qbsTable/utilities/empty.tsx +2 -2
  91. package/src/qbsTable/utilities/icons.tsx +1 -78
  92. package/src/qbsTable/utilities/tablecalc.ts +2 -8
  93. package/src/utils/useCellDescriptor.ts +1 -0
  94. package/src/utils/useScrollListener.ts +3 -13
  95. package/src/utils/useTableRows.ts +1 -1
  96. package/es/qbsTable/labels.d.ts +0 -48
  97. package/es/qbsTable/labels.js +0 -34
  98. package/lib/qbsTable/labels.d.ts +0 -48
  99. package/lib/qbsTable/labels.js +0 -42
  100. package/src/qbsTable/labels.ts +0 -58
@@ -1,88 +1,88 @@
1
- import React, { FC, useState, useEffect, useRef } from 'react';
2
-
3
- type CustomSelectProps = {
4
- options: number[];
5
- selectedValue: number;
6
- onChange: (value: number) => void;
7
- };
8
-
9
- const CustomSelect: FC<CustomSelectProps> = ({ options, selectedValue, onChange }) => {
10
- const [isOpen, setIsOpen] = useState(false);
11
- const [dropdownPosition, setDropdownPosition] = useState('bottom');
12
- const ref = useRef<HTMLDivElement>(null);
13
- const inputRef = useRef<HTMLDivElement>(null);
14
-
15
- const adjustDropdownPosition = () => {
16
- if (inputRef.current) {
17
- const inputBoxRect = inputRef.current.getBoundingClientRect();
18
- const viewportHeight = window.innerHeight;
19
-
20
- const spaceAbove = inputBoxRect.top;
21
- const spaceBelow = viewportHeight - inputBoxRect.bottom;
22
-
23
- if (spaceAbove > spaceBelow) {
24
- setDropdownPosition('top');
25
- } else {
26
- setDropdownPosition('bottom');
27
- }
28
- }
29
- };
30
-
31
- const handleToggle = () => {
32
- setIsOpen(prevIsOpen => !prevIsOpen);
33
- };
34
-
35
- const handleSelect = (value: number) => {
36
- onChange(value);
37
- setIsOpen(false);
38
- };
39
-
40
- const handleClickOutside = (event: MouseEvent) => {
41
- if (ref.current && !ref.current.contains(event.target as Node)) {
42
- setIsOpen(false);
43
- }
44
- };
45
-
46
- useEffect(() => {
47
- if (isOpen) {
48
- adjustDropdownPosition();
49
- window.addEventListener('resize', adjustDropdownPosition);
50
- } else {
51
- window.removeEventListener('resize', adjustDropdownPosition);
52
- }
53
-
54
- return () => {
55
- window.removeEventListener('resize', adjustDropdownPosition);
56
- };
57
- }, [isOpen]);
58
-
59
- useEffect(() => {
60
- document.addEventListener('mousedown', handleClickOutside);
61
- return () => {
62
- document.removeEventListener('mousedown', handleClickOutside);
63
- };
64
- }, []);
65
-
66
- return (
67
- <div className="custom-select" ref={ref}>
68
- <div className="custom-select-trigger" onClick={handleToggle} ref={inputRef}>
69
- {selectedValue}
70
- </div>
71
- {isOpen && (
72
- <ul className={`custom-select-options ${dropdownPosition}`}>
73
- {options.map(option => (
74
- <li
75
- key={option}
76
- className={`custom-select-option ${option === selectedValue ? 'selected' : ''}`}
77
- onClick={() => handleSelect(option)}
78
- >
79
- {option}
80
- </li>
81
- ))}
82
- </ul>
83
- )}
84
- </div>
85
- );
86
- };
87
-
88
- export default CustomSelect;
1
+ import React, { FC, useState, useEffect, useRef } from 'react';
2
+
3
+ type CustomSelectProps = {
4
+ options: number[];
5
+ selectedValue: number;
6
+ onChange: (value: number) => void;
7
+ };
8
+
9
+ const CustomSelect: FC<CustomSelectProps> = ({ options, selectedValue, onChange }) => {
10
+ const [isOpen, setIsOpen] = useState(false);
11
+ const [dropdownPosition, setDropdownPosition] = useState('bottom');
12
+ const ref = useRef<HTMLDivElement>(null);
13
+ const inputRef = useRef<HTMLDivElement>(null);
14
+
15
+ const adjustDropdownPosition = () => {
16
+ if (inputRef.current) {
17
+ const inputBoxRect = inputRef.current.getBoundingClientRect();
18
+ const viewportHeight = window.innerHeight;
19
+
20
+ const spaceAbove = inputBoxRect.top;
21
+ const spaceBelow = viewportHeight - inputBoxRect.bottom;
22
+
23
+ if (spaceAbove > spaceBelow) {
24
+ setDropdownPosition('top');
25
+ } else {
26
+ setDropdownPosition('bottom');
27
+ }
28
+ }
29
+ };
30
+
31
+ const handleToggle = () => {
32
+ setIsOpen(prevIsOpen => !prevIsOpen);
33
+ };
34
+
35
+ const handleSelect = (value: number) => {
36
+ onChange(value);
37
+ setIsOpen(false);
38
+ };
39
+
40
+ const handleClickOutside = (event: MouseEvent) => {
41
+ if (ref.current && !ref.current.contains(event.target as Node)) {
42
+ setIsOpen(false);
43
+ }
44
+ };
45
+
46
+ useEffect(() => {
47
+ if (isOpen) {
48
+ adjustDropdownPosition();
49
+ window.addEventListener('resize', adjustDropdownPosition);
50
+ } else {
51
+ window.removeEventListener('resize', adjustDropdownPosition);
52
+ }
53
+
54
+ return () => {
55
+ window.removeEventListener('resize', adjustDropdownPosition);
56
+ };
57
+ }, [isOpen]);
58
+
59
+ useEffect(() => {
60
+ document.addEventListener('mousedown', handleClickOutside);
61
+ return () => {
62
+ document.removeEventListener('mousedown', handleClickOutside);
63
+ };
64
+ }, []);
65
+
66
+ return (
67
+ <div className="custom-select" ref={ref}>
68
+ <div className="custom-select-trigger" onClick={handleToggle} ref={inputRef}>
69
+ {selectedValue}
70
+ </div>
71
+ {isOpen && (
72
+ <ul className={`custom-select-options ${dropdownPosition}`}>
73
+ {options.map(option => (
74
+ <li
75
+ key={option}
76
+ className={`custom-select-option ${option === selectedValue ? 'selected' : ''}`}
77
+ onClick={() => handleSelect(option)}
78
+ >
79
+ {option}
80
+ </li>
81
+ ))}
82
+ </ul>
83
+ )}
84
+ </div>
85
+ );
86
+ };
87
+
88
+ export default CustomSelect;
package/src/index.ts CHANGED
@@ -11,7 +11,7 @@ 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 {
16
16
  StandardProps,
17
17
  SortType,
@@ -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
+ }
@@ -46,33 +46,29 @@ export const ActionCell: React.FC<any> = React.memo(
46
46
  tableBodyRef,
47
47
  rowIndex,
48
48
  dropType,
49
- wheelWrapperRef
50
- }) => {
51
- return (
52
- <div>
53
- {dropType == 'vertical' ? (
54
- <VerticalMenuDropdown
55
- tableBodyRef={tableBodyRef}
56
- actionDropDown={actionProps}
57
- rowData={rowData}
58
- dataTheme={dataTheme}
59
- rowIndex={rowIndex}
60
- handleMenuActions={handleMenuActions}
61
- wheelWrapperRef={wheelWrapperRef}
62
- />
63
- ) : (
64
- <MenuDropDown
65
- tableBodyRef={tableBodyRef}
66
- actionDropDown={actionProps}
67
- rowData={rowData}
68
- dataTheme={dataTheme}
69
- rowIndex={rowIndex}
70
- handleMenuActions={handleMenuActions}
71
- />
72
- )}
73
- </div>
74
- );
75
- }
49
+ ...props
50
+ }) => (
51
+ <Cell {...props} dataTheme={dataTheme} style={{ padding: 0 }}>
52
+ {dropType === 'vertical' ? (
53
+ <VerticalMenuDropdown
54
+ tableBodyRef={tableBodyRef}
55
+ actionDropDown={actionProps}
56
+ rowData={rowData}
57
+ rowIndex={rowIndex}
58
+ handleMenuActions={handleMenuActions}
59
+ />
60
+ ) : (
61
+ <MenuDropDown
62
+ tableBodyRef={tableBodyRef}
63
+ actionDropDown={actionProps}
64
+ rowData={rowData}
65
+ dataTheme={dataTheme}
66
+ rowIndex={rowIndex}
67
+ handleMenuActions={handleMenuActions}
68
+ />
69
+ )}
70
+ </Cell>
71
+ )
76
72
  );
77
73
  export const ExpandCell: React.FC<any> = React.memo(
78
74
  ({ rowData, dataKey, expandedRowKeys, onChange, ...props }) => (