@teselagen/ui 0.3.34 → 0.3.36

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teselagen/ui",
3
- "version": "0.3.34",
3
+ "version": "0.3.36",
4
4
  "main": "./src/index.js",
5
5
  "exports": {
6
6
  ".": {
@@ -16,7 +16,6 @@
16
16
  "@blueprintjs/datetime": "3.23.19",
17
17
  "@blueprintjs/icons": "3.33.0",
18
18
  "@blueprintjs/select": "3.18.11",
19
- "@teselagen/react-table": "^6.10.11",
20
19
  "axios": "^0.21.1",
21
20
  "bluebird": "3.7.2",
22
21
  "buffer": "5.7.1",
@@ -28,18 +28,25 @@ class SortableColumns extends Component {
28
28
  );
29
29
  };
30
30
 
31
- onSortEnd = ({ oldIndex, newIndex }) => {
31
+ onSortEnd = (...args) => {
32
+ const { oldIndex, newIndex } = args[0];
33
+ document.body.classList.remove("drag-active");
32
34
  this.props.moveColumn({
33
35
  oldIndex,
34
36
  newIndex
35
37
  });
36
38
  };
37
39
 
40
+ onSortStart = () => {
41
+ document.body.classList.add("drag-active");
42
+ };
43
+
38
44
  render() {
39
45
  return (
40
46
  <SortableCustomTheadComponent
41
47
  {...this.props}
42
48
  lockAxis="x"
49
+ onSortStart={this.onSortStart}
43
50
  axis="x"
44
51
  distance={10}
45
52
  helperClass="above-dialog"
@@ -3228,6 +3228,7 @@ class DataTable extends React.Component {
3228
3228
  ${description} ${isUnique ? "<br>Must be unique" : ""}</div>`
3229
3229
  })}
3230
3230
  data-test={columnTitleTextified}
3231
+ data-path={path}
3231
3232
  data-copy-text={columnTitleTextified}
3232
3233
  className={classNames("tg-react-table-column-header", {
3233
3234
  "sort-active": sortUp || sortDown
@@ -229,8 +229,13 @@
229
229
 
230
230
  .tg-filter-menu-button.tg-active-filter,
231
231
  .tg-sort-arrow-container .bp3-icon.active,
232
- .tg-react-table-column-header:hover .tg-sort-arrow-container .bp3-icon,
233
- .tg-react-table-column-header:hover .tg-filter-menu-button,
232
+ body:not(.drag-active)
233
+ .tg-react-table-column-header:hover
234
+ .tg-sort-arrow-container
235
+ .bp3-icon,
236
+ body:not(.drag-active)
237
+ .tg-react-table-column-header:hover
238
+ .tg-filter-menu-button,
234
239
  .tg-filter-menu-button.tg-active-filter,
235
240
  .tg-react-table-column-header .bp3-popover-open .tg-filter-menu-button {
236
241
  display: block !important;
@@ -472,6 +477,7 @@
472
477
  }
473
478
 
474
479
  .ReactTable .rt-thead .rt-th {
480
+ transition-property: unset;
475
481
  padding: 0;
476
482
  }
477
483
 
@@ -142,7 +142,7 @@ let clearMe;
142
142
  dataAvoid,
143
143
  dataAvoidBackup
144
144
  };
145
- if (dataTip) {
145
+ if (dataTip && !document.body.classList.contains("drag-active")) {
146
146
  if (dataTipStop) break;
147
147
 
148
148
  inner(dataTip, el, opts);
@@ -151,6 +151,7 @@ let clearMe;
151
151
  isEllipsized &&
152
152
  el.offsetWidth < el.scrollWidth - 4 && //the -4 is adding a teeny bit of tolerance to fix issues with the column headers getting tooltips even when fully visible
153
153
  !el.classList.contains("no-data-tip") &&
154
+ !document.body.classList.contains("drag-active") &&
154
155
  el.textContent &&
155
156
  el.textContent?.trim?.().length !== 0
156
157
  ) {
package/style.css CHANGED
@@ -9318,8 +9318,13 @@ button:not(:disabled):active {
9318
9318
 
9319
9319
  .tg-filter-menu-button.tg-active-filter,
9320
9320
  .tg-sort-arrow-container .bp3-icon.active,
9321
- .tg-react-table-column-header:hover .tg-sort-arrow-container .bp3-icon,
9322
- .tg-react-table-column-header:hover .tg-filter-menu-button,
9321
+ body:not(.drag-active)
9322
+ .tg-react-table-column-header:hover
9323
+ .tg-sort-arrow-container
9324
+ .bp3-icon,
9325
+ body:not(.drag-active)
9326
+ .tg-react-table-column-header:hover
9327
+ .tg-filter-menu-button,
9323
9328
  .tg-filter-menu-button.tg-active-filter,
9324
9329
  .tg-react-table-column-header .bp3-popover-open .tg-filter-menu-button {
9325
9330
  display: block !important;
@@ -9561,6 +9566,7 @@ button:not(:disabled):active {
9561
9566
  }
9562
9567
 
9563
9568
  .ReactTable .rt-thead .rt-th {
9569
+ transition-property: unset;
9564
9570
  padding: 0;
9565
9571
  }
9566
9572