@teselagen/ui 0.3.44 → 0.3.46

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/index.cjs.js CHANGED
@@ -2916,6 +2916,21 @@ tippy$1.setDefaultProps({
2916
2916
  render: render$1
2917
2917
  });
2918
2918
  const tippy = "";
2919
+ let isDragging = false;
2920
+ let canSetDragging = false;
2921
+ document.addEventListener("mousedown", () => {
2922
+ canSetDragging = true;
2923
+ isDragging = false;
2924
+ });
2925
+ document.addEventListener("mousemove", () => {
2926
+ if (canSetDragging) {
2927
+ isDragging = true;
2928
+ }
2929
+ });
2930
+ document.addEventListener("mouseup", () => {
2931
+ canSetDragging = false;
2932
+ isDragging = false;
2933
+ });
2919
2934
  let tippys = [];
2920
2935
  let recentlyHidden = false;
2921
2936
  let clearMe;
@@ -3020,7 +3035,7 @@ let clearMe;
3020
3035
  dataAvoid,
3021
3036
  dataAvoidBackup
3022
3037
  };
3023
- if (dataTip && !document.body.classList.contains("drag-active")) {
3038
+ if (dataTip && !document.body.classList.contains("drag-active") && !isDragging) {
3024
3039
  inner(dataTip, el, opts);
3025
3040
  break;
3026
3041
  } else if (isEllipsized && 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
@@ -18396,16 +18411,25 @@ var toString$6 = {}.toString;
18396
18411
  var _cof = /* @__PURE__ */ __name(function(it) {
18397
18412
  return toString$6.call(it).slice(8, -1);
18398
18413
  }, "_cof");
18399
- var cof$2 = _cof;
18400
- var _iobject = Object("z").propertyIsEnumerable(0) ? Object : function(it) {
18401
- return cof$2(it) == "String" ? it.split("") : Object(it);
18402
- };
18414
+ var _iobject;
18415
+ var hasRequired_iobject;
18416
+ function require_iobject() {
18417
+ if (hasRequired_iobject)
18418
+ return _iobject;
18419
+ hasRequired_iobject = 1;
18420
+ var cof2 = _cof;
18421
+ _iobject = Object("z").propertyIsEnumerable(0) ? Object : function(it) {
18422
+ return cof2(it) == "String" ? it.split("") : Object(it);
18423
+ };
18424
+ return _iobject;
18425
+ }
18426
+ __name(require_iobject, "require_iobject");
18403
18427
  var _defined = /* @__PURE__ */ __name(function(it) {
18404
18428
  if (it == void 0)
18405
18429
  throw TypeError("Can't call method on " + it);
18406
18430
  return it;
18407
18431
  }, "_defined");
18408
- var IObject = _iobject;
18432
+ var IObject = require_iobject();
18409
18433
  var defined$2 = _defined;
18410
18434
  var _toIobject = /* @__PURE__ */ __name(function(it) {
18411
18435
  return IObject(defined$2(it));
@@ -18502,7 +18526,15 @@ var _objectKeys = Object.keys || /* @__PURE__ */ __name(function keys(O2) {
18502
18526
  var _objectGops = {};
18503
18527
  _objectGops.f = Object.getOwnPropertySymbols;
18504
18528
  var _objectPie = {};
18505
- _objectPie.f = {}.propertyIsEnumerable;
18529
+ var hasRequired_objectPie;
18530
+ function require_objectPie() {
18531
+ if (hasRequired_objectPie)
18532
+ return _objectPie;
18533
+ hasRequired_objectPie = 1;
18534
+ _objectPie.f = {}.propertyIsEnumerable;
18535
+ return _objectPie;
18536
+ }
18537
+ __name(require_objectPie, "require_objectPie");
18506
18538
  var defined$1 = _defined;
18507
18539
  var _toObject = /* @__PURE__ */ __name(function(it) {
18508
18540
  return Object(defined$1(it));
@@ -18516,9 +18548,9 @@ function require_objectAssign() {
18516
18548
  var DESCRIPTORS2 = _descriptors;
18517
18549
  var getKeys2 = _objectKeys;
18518
18550
  var gOPS2 = _objectGops;
18519
- var pIE2 = _objectPie;
18551
+ var pIE2 = require_objectPie();
18520
18552
  var toObject2 = _toObject;
18521
- var IObject2 = _iobject;
18553
+ var IObject2 = require_iobject();
18522
18554
  var $assign = Object.assign;
18523
18555
  _objectAssign = !$assign || _fails(function() {
18524
18556
  var A2 = {};
@@ -19153,7 +19185,7 @@ var _wksDefine = /* @__PURE__ */ __name(function(name) {
19153
19185
  }, "_wksDefine");
19154
19186
  var getKeys = _objectKeys;
19155
19187
  var gOPS$1 = _objectGops;
19156
- var pIE$1 = _objectPie;
19188
+ var pIE$1 = require_objectPie();
19157
19189
  var _enumKeys = /* @__PURE__ */ __name(function(it) {
19158
19190
  var result = getKeys(it);
19159
19191
  var getSymbols2 = gOPS$1.f;
@@ -19194,7 +19226,7 @@ _objectGopnExt.f = /* @__PURE__ */ __name(function getOwnPropertyNames2(it) {
19194
19226
  return windowNames && toString$5.call(it) == "[object Window]" ? getWindowNames(it) : gOPN$1(toIObject$2(it));
19195
19227
  }, "getOwnPropertyNames");
19196
19228
  var _objectGopd = {};
19197
- var pIE = _objectPie;
19229
+ var pIE = require_objectPie();
19198
19230
  var createDesc$1 = _propertyDesc;
19199
19231
  var toIObject$1 = _toIobject;
19200
19232
  var toPrimitive$1 = _toPrimitive;
@@ -19374,7 +19406,7 @@ if (!USE_NATIVE) {
19374
19406
  $GOPD.f = $getOwnPropertyDescriptor;
19375
19407
  $DP.f = $defineProperty;
19376
19408
  _objectGopn.f = gOPNExt.f = $getOwnPropertyNames;
19377
- _objectPie.f = $propertyIsEnumerable;
19409
+ require_objectPie().f = $propertyIsEnumerable;
19378
19410
  $GOPS.f = $getOwnPropertySymbols;
19379
19411
  if (DESCRIPTORS && !_library) {
19380
19412
  redefine(ObjectProto, "propertyIsEnumerable", $propertyIsEnumerable);
package/index.es.js CHANGED
@@ -2898,6 +2898,21 @@ tippy$1.setDefaultProps({
2898
2898
  render: render$1
2899
2899
  });
2900
2900
  const tippy = "";
2901
+ let isDragging = false;
2902
+ let canSetDragging = false;
2903
+ document.addEventListener("mousedown", () => {
2904
+ canSetDragging = true;
2905
+ isDragging = false;
2906
+ });
2907
+ document.addEventListener("mousemove", () => {
2908
+ if (canSetDragging) {
2909
+ isDragging = true;
2910
+ }
2911
+ });
2912
+ document.addEventListener("mouseup", () => {
2913
+ canSetDragging = false;
2914
+ isDragging = false;
2915
+ });
2901
2916
  let tippys = [];
2902
2917
  let recentlyHidden = false;
2903
2918
  let clearMe;
@@ -3002,7 +3017,7 @@ let clearMe;
3002
3017
  dataAvoid,
3003
3018
  dataAvoidBackup
3004
3019
  };
3005
- if (dataTip && !document.body.classList.contains("drag-active")) {
3020
+ if (dataTip && !document.body.classList.contains("drag-active") && !isDragging) {
3006
3021
  inner(dataTip, el, opts);
3007
3022
  break;
3008
3023
  } else if (isEllipsized && 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
@@ -18378,16 +18393,25 @@ var toString$6 = {}.toString;
18378
18393
  var _cof = /* @__PURE__ */ __name(function(it) {
18379
18394
  return toString$6.call(it).slice(8, -1);
18380
18395
  }, "_cof");
18381
- var cof$2 = _cof;
18382
- var _iobject = Object("z").propertyIsEnumerable(0) ? Object : function(it) {
18383
- return cof$2(it) == "String" ? it.split("") : Object(it);
18384
- };
18396
+ var _iobject;
18397
+ var hasRequired_iobject;
18398
+ function require_iobject() {
18399
+ if (hasRequired_iobject)
18400
+ return _iobject;
18401
+ hasRequired_iobject = 1;
18402
+ var cof2 = _cof;
18403
+ _iobject = Object("z").propertyIsEnumerable(0) ? Object : function(it) {
18404
+ return cof2(it) == "String" ? it.split("") : Object(it);
18405
+ };
18406
+ return _iobject;
18407
+ }
18408
+ __name(require_iobject, "require_iobject");
18385
18409
  var _defined = /* @__PURE__ */ __name(function(it) {
18386
18410
  if (it == void 0)
18387
18411
  throw TypeError("Can't call method on " + it);
18388
18412
  return it;
18389
18413
  }, "_defined");
18390
- var IObject = _iobject;
18414
+ var IObject = require_iobject();
18391
18415
  var defined$2 = _defined;
18392
18416
  var _toIobject = /* @__PURE__ */ __name(function(it) {
18393
18417
  return IObject(defined$2(it));
@@ -18484,7 +18508,15 @@ var _objectKeys = Object.keys || /* @__PURE__ */ __name(function keys(O2) {
18484
18508
  var _objectGops = {};
18485
18509
  _objectGops.f = Object.getOwnPropertySymbols;
18486
18510
  var _objectPie = {};
18487
- _objectPie.f = {}.propertyIsEnumerable;
18511
+ var hasRequired_objectPie;
18512
+ function require_objectPie() {
18513
+ if (hasRequired_objectPie)
18514
+ return _objectPie;
18515
+ hasRequired_objectPie = 1;
18516
+ _objectPie.f = {}.propertyIsEnumerable;
18517
+ return _objectPie;
18518
+ }
18519
+ __name(require_objectPie, "require_objectPie");
18488
18520
  var defined$1 = _defined;
18489
18521
  var _toObject = /* @__PURE__ */ __name(function(it) {
18490
18522
  return Object(defined$1(it));
@@ -18498,9 +18530,9 @@ function require_objectAssign() {
18498
18530
  var DESCRIPTORS2 = _descriptors;
18499
18531
  var getKeys2 = _objectKeys;
18500
18532
  var gOPS2 = _objectGops;
18501
- var pIE2 = _objectPie;
18533
+ var pIE2 = require_objectPie();
18502
18534
  var toObject2 = _toObject;
18503
- var IObject2 = _iobject;
18535
+ var IObject2 = require_iobject();
18504
18536
  var $assign = Object.assign;
18505
18537
  _objectAssign = !$assign || _fails(function() {
18506
18538
  var A2 = {};
@@ -19135,7 +19167,7 @@ var _wksDefine = /* @__PURE__ */ __name(function(name) {
19135
19167
  }, "_wksDefine");
19136
19168
  var getKeys = _objectKeys;
19137
19169
  var gOPS$1 = _objectGops;
19138
- var pIE$1 = _objectPie;
19170
+ var pIE$1 = require_objectPie();
19139
19171
  var _enumKeys = /* @__PURE__ */ __name(function(it) {
19140
19172
  var result = getKeys(it);
19141
19173
  var getSymbols2 = gOPS$1.f;
@@ -19176,7 +19208,7 @@ _objectGopnExt.f = /* @__PURE__ */ __name(function getOwnPropertyNames2(it) {
19176
19208
  return windowNames && toString$5.call(it) == "[object Window]" ? getWindowNames(it) : gOPN$1(toIObject$2(it));
19177
19209
  }, "getOwnPropertyNames");
19178
19210
  var _objectGopd = {};
19179
- var pIE = _objectPie;
19211
+ var pIE = require_objectPie();
19180
19212
  var createDesc$1 = _propertyDesc;
19181
19213
  var toIObject$1 = _toIobject;
19182
19214
  var toPrimitive$1 = _toPrimitive;
@@ -19356,7 +19388,7 @@ if (!USE_NATIVE) {
19356
19388
  $GOPD.f = $getOwnPropertyDescriptor;
19357
19389
  $DP.f = $defineProperty;
19358
19390
  _objectGopn.f = gOPNExt.f = $getOwnPropertyNames;
19359
- _objectPie.f = $propertyIsEnumerable;
19391
+ require_objectPie().f = $propertyIsEnumerable;
19360
19392
  $GOPS.f = $getOwnPropertySymbols;
19361
19393
  if (DESCRIPTORS && !_library) {
19362
19394
  redefine(ObjectProto, "propertyIsEnumerable", $propertyIsEnumerable);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teselagen/ui",
3
- "version": "0.3.44",
3
+ "version": "0.3.46",
4
4
  "main": "./src/index.js",
5
5
  "exports": {
6
6
  ".": {
@@ -10,13 +10,12 @@
10
10
  "./style.css": "./style.css"
11
11
  },
12
12
  "dependencies": {
13
- "@teselagen/file-utils": "0.3.9",
13
+ "@teselagen/file-utils": "0.3.10",
14
14
  "@teselagen/bounce-loader": "0.3.11",
15
15
  "@blueprintjs/core": "3.52.0",
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.16",
20
19
  "axios": "^0.21.1",
21
20
  "bluebird": "3.7.2",
22
21
  "buffer": "5.7.1",
@@ -457,9 +457,9 @@ body:not(.drag-active)
457
457
  .tg-dropdown-cell-edit-container .bp3-tag-input .bp3-button {
458
458
  margin: 0;
459
459
  }
460
- .tg-dropdown-cell-edit-container .bp3-tag-input .bp3-tag-input-values > * {
460
+ /* .tg-dropdown-cell-edit-container .bp3-tag-input .bp3-tag-input-values > * {
461
461
  margin-bottom: 0;
462
- }
462
+ } */
463
463
  .tg-dropdown-cell-edit-container:not(.tg-dropdown-cell-edit-container-multi)
464
464
  .bp3-tag-input {
465
465
  min-height: 0;
@@ -1,6 +1,22 @@
1
1
  import tippy, { followCursor } from "tippy.js";
2
2
  import "tippy.js/dist/tippy.css";
3
3
 
4
+ let isDragging = false;
5
+ let canSetDragging = false;
6
+ document.addEventListener("mousedown", () => {
7
+ canSetDragging = true;
8
+ isDragging = false;
9
+ });
10
+ document.addEventListener("mousemove", () => {
11
+ if (canSetDragging) {
12
+ isDragging = true;
13
+ }
14
+ });
15
+ document.addEventListener("mouseup", () => {
16
+ canSetDragging = false;
17
+ isDragging = false;
18
+ });
19
+
4
20
  let tippys = [];
5
21
  let recentlyHidden = false;
6
22
  let clearMe;
@@ -142,7 +158,11 @@ let clearMe;
142
158
  dataAvoid,
143
159
  dataAvoidBackup
144
160
  };
145
- if (dataTip && !document.body.classList.contains("drag-active")) {
161
+ if (
162
+ dataTip &&
163
+ !document.body.classList.contains("drag-active") &&
164
+ !isDragging
165
+ ) {
146
166
  if (dataTipStop) break;
147
167
 
148
168
  inner(dataTip, el, opts);
package/style.css CHANGED
@@ -9546,9 +9546,9 @@ body:not(.drag-active)
9546
9546
  .tg-dropdown-cell-edit-container .bp3-tag-input .bp3-button {
9547
9547
  margin: 0;
9548
9548
  }
9549
- .tg-dropdown-cell-edit-container .bp3-tag-input .bp3-tag-input-values > * {
9549
+ /* .tg-dropdown-cell-edit-container .bp3-tag-input .bp3-tag-input-values > * {
9550
9550
  margin-bottom: 0;
9551
- }
9551
+ } */
9552
9552
  .tg-dropdown-cell-edit-container:not(.tg-dropdown-cell-edit-container-multi)
9553
9553
  .bp3-tag-input {
9554
9554
  min-height: 0;