@hpcc-js/dgrid-shim 3.4.0 → 3.4.1

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/dist/index.js CHANGED
@@ -11,9 +11,9 @@
11
11
  return /******/ (() => { // webpackBootstrap
12
12
  /******/ var __webpack_modules__ = ({
13
13
 
14
- /***/ 8498
14
+ /***/ 1525
15
15
  /*!******************************************************************!*\
16
- !*** ../../../../../../../tmp/tmp-2589oXAwaVrVe9OJ/dojo/dojo.js ***!
16
+ !*** ../../../../../../../tmp/tmp-2586zpvbj1RRv58q/dojo/dojo.js ***!
17
17
  \******************************************************************/
18
18
  (module) {
19
19
 
@@ -29307,8 +29307,8 @@ var require = __webpack_require__.dj.r;var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPA
29307
29307
  Object.defineProperty(exports, "__esModule", ({ value: true }));
29308
29308
  exports.BUILD_VERSION = exports.PKG_VERSION = exports.PKG_NAME = void 0;
29309
29309
  exports.PKG_NAME = "@hpcc-js/dgrid-shim";
29310
- exports.PKG_VERSION = "3.4.0";
29311
- exports.BUILD_VERSION = "3.4.0";
29310
+ exports.PKG_VERSION = "3.4.1";
29311
+ exports.BUILD_VERSION = "3.4.1";
29312
29312
  //# sourceMappingURL=__package__.js.map
29313
29313
 
29314
29314
  /***/ },
@@ -29344,6 +29344,7 @@ exports.GridHelper = declare(null, {
29344
29344
  var self = this;
29345
29345
  var _lastResizeDownTime = 0;
29346
29346
  var _lastResizeColId = null;
29347
+ var _suppressNextHeaderClick = false;
29347
29348
  this.headerNode.addEventListener("mousedown", function (evt) {
29348
29349
  var target = evt.target;
29349
29350
  if (!target.classList.contains("dgrid-resize-handle"))
@@ -29359,6 +29360,10 @@ exports.GridHelper = declare(null, {
29359
29360
  var detail = self.columns[colId];
29360
29361
  if (!detail)
29361
29362
  return;
29363
+ // Suppress the click that follows this mousedown — the column may
29364
+ // resize wider, moving the handle away so the click lands on the
29365
+ // header cell and would otherwise trigger a sort change.
29366
+ _suppressNextHeaderClick = true;
29362
29367
  self.domNode.dispatchEvent(new CustomEvent("dgrid-column-autofit", { detail: detail, bubbles: true, cancelable: true }));
29363
29368
  }
29364
29369
  else {
@@ -29366,6 +29371,13 @@ exports.GridHelper = declare(null, {
29366
29371
  _lastResizeColId = colId;
29367
29372
  }
29368
29373
  }, { capture: true });
29374
+ this.headerNode.addEventListener("click", function (evt) {
29375
+ if (_suppressNextHeaderClick) {
29376
+ _suppressNextHeaderClick = false;
29377
+ evt.stopPropagation();
29378
+ evt.preventDefault();
29379
+ }
29380
+ }, { capture: true });
29369
29381
  this.__hpcc_tooltip_header = new Tooltip({
29370
29382
  connectId: [this.id],
29371
29383
  selector: ".dgrid-resize-header-container",
@@ -30350,7 +30362,7 @@ function __rewriteRelativeImportExtension(path, preserveJsx) {
30350
30362
  /******/ "dojo/_base/query":4203,
30351
30363
  /******/ "dojo/_base/NodeList":6659,
30352
30364
  /******/ "dojo/NodeList-dom":8288
30353
- /******/ // "/tmp/tmp-2589oXAwaVrVe9OJ/dojo/dojo.js" = 8498
30365
+ /******/ // "/tmp/tmp-2586zpvbj1RRv58q/dojo/dojo.js" = 1525
30354
30366
  /******/ });
30355
30367
  /******/
30356
30368
  /******/ globalObj.require = req;
@@ -30386,7 +30398,7 @@ function __rewriteRelativeImportExtension(path, preserveJsx) {
30386
30398
  /******/ return url;
30387
30399
  /******/ })}));
30388
30400
  /******/ var defaultConfig = ({'hasCache':({'webpack':1,'host-browser':1,'dom':1,'dojo-loader':1,'dojo-has-api':1,'dojo-dom-ready-api':1,'dojo-sniff':1,'dojo-test-sniff':1,'config-deferredInstrumentation':1,'config-tlmSiblingOfDojo':1}),'paths':({'js':'js','theme':'theme','css':'//chuckdumont.github.io/dojo-css-plugin/1.0.0/css'}),'pathsMapProg':[['theme','theme',/^theme(\/|$)/,5],['css','//chuckdumont.github.io/dojo-css-plugin/1.0.0/css',/^css(\/|$)/,3],['js','js',/^js(\/|$)/,2]],'packs':({'dojo':({'main':'main','name':'dojo','location':'./dist/dojo','lib':'.'}),'dijit':({'main':'main','name':'dijit','location':'./dist/dijit','lib':'.'}),'dojox':({'main':'main','name':'dojox','location':'./dist/dojox','lib':'.'}),'dijit-themes':({'main':'main','name':'dijit-themes','location':'./dist/dijit-themes','lib':'.'}),'dgrid':({'main':'main','name':'dgrid','location':'./dist/dgrid','lib':'.'}),'dstore':({'main':'main','name':'dstore','location':'./dist/dojo-dstore','lib':'.'})}),'aliases':[],'mapProgs':[],'cacheBust':undefined,'modules':({}),'cache':({})});
30389
- /******/ var dojoLoader = __webpack_require__(8498);
30401
+ /******/ var dojoLoader = __webpack_require__(1525);
30390
30402
  /******/ dojoLoader.call(loaderScope, userConfig, defaultConfig, loaderScope, loaderScope);
30391
30403
  /******/ loaderScope.require.baseUrl = "./";
30392
30404
  /******/ Object.keys(loaderScope.require.packs).forEach(function(key) {