evui 3.4.61 → 3.4.63

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/evui.umd.js CHANGED
@@ -11170,7 +11170,7 @@ $({ target: 'Number', stat: true }, {
11170
11170
  /***/ "9224":
11171
11171
  /***/ (function(module) {
11172
11172
 
11173
- module.exports = JSON.parse("{\"a\":\"3.4.61\"}");
11173
+ module.exports = JSON.parse("{\"a\":\"3.4.63\"}");
11174
11174
 
11175
11175
  /***/ }),
11176
11176
 
@@ -36356,12 +36356,12 @@ var uses_contextMenuEvent = function contextMenuEvent(params) {
36356
36356
  });
36357
36357
  },
36358
36358
  disabled: !filterable,
36359
- hidden: (_contextInfo$hiddenCo3 = contextInfo.hiddenColumnMenuItem) === null || _contextInfo$hiddenCo3 === void 0 ? void 0 : _contextInfo$hiddenCo3.filter
36359
+ hidden: ((_contextInfo$hiddenCo3 = contextInfo.hiddenColumnMenuItem) === null || _contextInfo$hiddenCo3 === void 0 ? void 0 : _contextInfo$hiddenCo3.filter) || !filterInfo.isFiltering
36360
36360
  }, {
36361
36361
  text: (_contextInfo$columnMe7 = (_contextInfo$columnMe8 = contextInfo.columnMenuTextInfo) === null || _contextInfo$columnMe8 === void 0 ? void 0 : _contextInfo$columnMe8.hide) !== null && _contextInfo$columnMe7 !== void 0 ? _contextInfo$columnMe7 : 'Hide',
36362
36362
  iconClass: 'ev-icon-visibility-off',
36363
36363
  disabled: !useGridSetting.value || stores.orderedColumns.length === 1 || column.fixed,
36364
- hidden: (_contextInfo$hiddenCo4 = contextInfo.hiddenColumnMenuItem) === null || _contextInfo$hiddenCo4 === void 0 ? void 0 : _contextInfo$hiddenCo4.hide,
36364
+ hidden: ((_contextInfo$hiddenCo4 = contextInfo.hiddenColumnMenuItem) === null || _contextInfo$hiddenCo4 === void 0 ? void 0 : _contextInfo$hiddenCo4.hide) || !useGridSetting.value,
36365
36365
  click: function click() {
36366
36366
  setColumnHidden(column.field);
36367
36367
  emit('change-column-status', {
@@ -36375,7 +36375,7 @@ var uses_contextMenuEvent = function contextMenuEvent(params) {
36375
36375
  }];
36376
36376
  contextInfo.columnMenuItems = [];
36377
36377
 
36378
- if (!sortable && !filterable) {
36378
+ if (!sortable && !filterable && !useGridSetting.value) {
36379
36379
  return;
36380
36380
  }
36381
36381
 
@@ -44397,7 +44397,9 @@ var scale_Scale = /*#__PURE__*/function () {
44397
44397
  }
44398
44398
 
44399
44399
  var minLabel = this.getLabelFormat(minValue);
44400
- var maxLabel = this.getLabelFormat(maxValue, isDefaultMaxSameAsMin);
44400
+ var maxLabel = this.getLabelFormat(maxValue, {
44401
+ isMaxValueSameAsMin: isDefaultMaxSameAsMin
44402
+ });
44401
44403
  return {
44402
44404
  min: minValue,
44403
44405
  max: maxValue,
@@ -44611,14 +44613,20 @@ var scale_Scale = /*#__PURE__*/function () {
44611
44613
  labelCenter = Math.round(offsetStartPoint + labelGap * ix);
44612
44614
 
44613
44615
  if (labelCenter <= endPoint || this.type !== 'x' || !(options !== null && options !== void 0 && options.axesX[0].flow) || dataLabels.length === steps + 1) {
44614
- var _this$options, _this$options$selectL, _this$options2, _this$options2$select, _selectLabelInfo$data;
44616
+ var _ticks, _this$options, _this$options$selectL, _this$options2, _this$options2$select, _selectLabelInfo$data;
44615
44617
 
44616
44618
  ctx.beginPath();
44617
44619
  ticks[ix] = axisMinForLabel + ix * stepValue;
44618
44620
  linePosition = labelCenter + aliasPixel;
44619
- labelText = this.getLabelFormat(Math.min(axisMax, ticks[ix]));
44620
- var isBlurredLabel = ((_this$options = this.options) === null || _this$options === void 0 ? void 0 : (_this$options$selectL = _this$options.selectLabel) === null || _this$options$selectL === void 0 ? void 0 : _this$options$selectL.use) && ((_this$options2 = this.options) === null || _this$options2 === void 0 ? void 0 : (_this$options2$select = _this$options2.selectLabel) === null || _this$options2$select === void 0 ? void 0 : _this$options2$select.useLabelOpacity) && this.options.horizontal === (this.type === 'y') && (selectLabelInfo === null || selectLabelInfo === void 0 ? void 0 : (_selectLabelInfo$data = selectLabelInfo.dataIndex) === null || _selectLabelInfo$data === void 0 ? void 0 : _selectLabelInfo$data.length) && !(selectLabelInfo !== null && selectLabelInfo !== void 0 && selectLabelInfo.label.map(function (t) {
44621
- return _this2.getLabelFormat(Math.min(axisMax, t));
44621
+ labelText = this.getLabelFormat(Math.min(axisMax, ticks[ix]), {
44622
+ prev: (_ticks = ticks[ix - 1]) !== null && _ticks !== void 0 ? _ticks : ''
44623
+ });
44624
+ var isBlurredLabel = ((_this$options = this.options) === null || _this$options === void 0 ? void 0 : (_this$options$selectL = _this$options.selectLabel) === null || _this$options$selectL === void 0 ? void 0 : _this$options$selectL.use) && ((_this$options2 = this.options) === null || _this$options2 === void 0 ? void 0 : (_this$options2$select = _this$options2.selectLabel) === null || _this$options2$select === void 0 ? void 0 : _this$options2$select.useLabelOpacity) && this.options.horizontal === (this.type === 'y') && (selectLabelInfo === null || selectLabelInfo === void 0 ? void 0 : (_selectLabelInfo$data = selectLabelInfo.dataIndex) === null || _selectLabelInfo$data === void 0 ? void 0 : _selectLabelInfo$data.length) && !(selectLabelInfo !== null && selectLabelInfo !== void 0 && selectLabelInfo.label.map(function (t, index) {
44625
+ var _selectLabelInfo$labe;
44626
+
44627
+ return _this2.getLabelFormat(Math.min(axisMax, t), {
44628
+ prev: (_selectLabelInfo$labe = selectLabelInfo === null || selectLabelInfo === void 0 ? void 0 : selectLabelInfo.label[index - 1]) !== null && _selectLabelInfo$labe !== void 0 ? _selectLabelInfo$labe : ''
44629
+ });
44622
44630
  }).includes(labelText));
44623
44631
  var labelColor = this.labelStyle.color;
44624
44632
  var defaultOpacity = 1;
@@ -45242,13 +45250,15 @@ var scale_time_TimeScale = /*#__PURE__*/function (_Scale) {
45242
45250
  /**
45243
45251
  * Transforming label by designated format
45244
45252
  * @param {number} value label value
45245
- * @param {boolean} isMaxValueSameAsMin is default max value same as min value
45253
+ * @param {object} data data for formatting
45246
45254
  *
45247
45255
  * @returns {string} formatted label
45248
45256
  */
45249
- value: function getLabelFormat(value, isMaxValueSameAsMin) {
45257
+ value: function getLabelFormat(value) {
45258
+ var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
45259
+
45250
45260
  if (this.formatter) {
45251
- var formattedLabel = this.formatter(value, isMaxValueSameAsMin);
45261
+ var formattedLabel = this.formatter(value, data);
45252
45262
 
45253
45263
  if (typeof formattedLabel === 'string') {
45254
45264
  return formattedLabel;
@@ -45314,13 +45324,15 @@ var scale_linear_LinearScale = /*#__PURE__*/function (_Scale) {
45314
45324
  /**
45315
45325
  * Transforming label by designated format
45316
45326
  * @param {number} value label value
45317
- * @param {boolean} isMaxValueSameAsMin is default max value same as min value
45327
+ * @param {object} data data for formatting
45318
45328
  *
45319
45329
  * @returns {string} formatted label
45320
45330
  */
45321
- value: function getLabelFormat(value, isMaxValueSameAsMin) {
45331
+ value: function getLabelFormat(value) {
45332
+ var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
45333
+
45322
45334
  if (this.formatter) {
45323
- var formattedLabel = this.formatter(value, isMaxValueSameAsMin);
45335
+ var formattedLabel = this.formatter(value, data);
45324
45336
 
45325
45337
  if (typeof formattedLabel === 'string') {
45326
45338
  return formattedLabel;
@@ -45404,7 +45416,9 @@ var scale_logarithmic_LogarithmicScale = /*#__PURE__*/function (_Scale) {
45404
45416
  }
45405
45417
 
45406
45418
  var minLabel = this.getLabelFormat(minValue);
45407
- var maxLabel = this.getLabelFormat(maxValue, isDefaultMaxSameAsMin);
45419
+ var maxLabel = this.getLabelFormat(maxValue, {
45420
+ isMaxValueSameAsMin: isDefaultMaxSameAsMin
45421
+ });
45408
45422
  return {
45409
45423
  min: minValue,
45410
45424
  max: maxValue,
@@ -45467,16 +45481,18 @@ var scale_logarithmic_LogarithmicScale = /*#__PURE__*/function (_Scale) {
45467
45481
  /**
45468
45482
  * Transforming label by designated format
45469
45483
  * @param {number} value label value
45470
- * @param {boolean} isMaxValueSameAsMin is default max value same as min value
45484
+ * @param {object} data data for formatting
45471
45485
  *
45472
45486
  * @returns {string} formatted label
45473
45487
  */
45474
45488
 
45475
45489
  }, {
45476
45490
  key: "getLabelFormat",
45477
- value: function getLabelFormat(value, isMaxValueSameAsMin) {
45491
+ value: function getLabelFormat(value) {
45492
+ var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
45493
+
45478
45494
  if (this.formatter) {
45479
- var formattedLabel = this.formatter(value, isMaxValueSameAsMin);
45495
+ var formattedLabel = this.formatter(value, data);
45480
45496
 
45481
45497
  if (typeof formattedLabel === 'string') {
45482
45498
  return formattedLabel;
@@ -45890,6 +45906,7 @@ var scale_step_StepScale = /*#__PURE__*/function (_Scale) {
45890
45906
  * Transforming label by designated format
45891
45907
  * @param {string} value label value
45892
45908
  * @param {number} maxWidth max width for each label
45909
+ * @param {object} data data for formatting
45893
45910
  *
45894
45911
  * @returns {string} formatted label
45895
45912
  */
@@ -45897,8 +45914,10 @@ var scale_step_StepScale = /*#__PURE__*/function (_Scale) {
45897
45914
  }, {
45898
45915
  key: "getLabelFormat",
45899
45916
  value: function getLabelFormat(value, maxWidth) {
45917
+ var data = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
45918
+
45900
45919
  if (this.formatter) {
45901
- var formattedLabel = this.formatter(value);
45920
+ var formattedLabel = this.formatter(value, data);
45902
45921
 
45903
45922
  if (typeof formattedLabel === 'string') {
45904
45923
  return formattedLabel;
@@ -45962,7 +45981,7 @@ var scale_time_category_TimeCategoryScale = /*#__PURE__*/function (_Scale) {
45962
45981
  /**
45963
45982
  * Transforming label by designated format
45964
45983
  * @param {number} value label value
45965
- * @param {boolean} isMaxValueSameAsMin is default max value same as min value
45984
+ * @param {object} data data for formatting
45966
45985
  *
45967
45986
  * @returns {string} formatted label
45968
45987
  */
@@ -45970,9 +45989,11 @@ var scale_time_category_TimeCategoryScale = /*#__PURE__*/function (_Scale) {
45970
45989
 
45971
45990
  _createClass(TimeCategoryScale, [{
45972
45991
  key: "getLabelFormat",
45973
- value: function getLabelFormat(value, isMaxValueSameAsMin) {
45992
+ value: function getLabelFormat(value) {
45993
+ var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
45994
+
45974
45995
  if (this.formatter) {
45975
- var formattedLabel = this.formatter(value, isMaxValueSameAsMin);
45996
+ var formattedLabel = this.formatter(value, data);
45976
45997
 
45977
45998
  if (typeof formattedLabel === 'string') {
45978
45999
  return formattedLabel;
@@ -46146,9 +46167,23 @@ var scale_time_category_TimeCategoryScale = /*#__PURE__*/function (_Scale) {
46146
46167
  ticks[ix] = axisMin + ix * stepValue;
46147
46168
  labelCenter = Math.round(startPoint + graphGap * ix);
46148
46169
  linePosition = labelCenter + aliasPixel;
46149
- labelText = this.getLabelFormat(Math.min(axisMax, ticks[ix]));
46150
- var isBlurredLabel = ((_this$options = this.options) === null || _this$options === void 0 ? void 0 : (_this$options$selectL = _this$options.selectLabel) === null || _this$options$selectL === void 0 ? void 0 : _this$options$selectL.use) && ((_this$options2 = this.options) === null || _this$options2 === void 0 ? void 0 : (_this$options2$select = _this$options2.selectLabel) === null || _this$options2$select === void 0 ? void 0 : _this$options2$select.useLabelOpacity) && this.options.horizontal === (this.type === 'y') && (selectLabelInfo === null || selectLabelInfo === void 0 ? void 0 : (_selectLabelInfo$data = selectLabelInfo.dataIndex) === null || _selectLabelInfo$data === void 0 ? void 0 : _selectLabelInfo$data.length) && !(selectLabelInfo !== null && selectLabelInfo !== void 0 && selectLabelInfo.label.map(function (t) {
46151
- return _this2.getLabelFormat(Math.min(axisMax, t));
46170
+ var prev = void 0;
46171
+
46172
+ for (var jx = 0; jx < ticks.length; jx++) {
46173
+ if (ticks[jx] !== undefined && jx !== ix) {
46174
+ prev = ticks[jx];
46175
+ }
46176
+ }
46177
+
46178
+ labelText = this.getLabelFormat(Math.min(axisMax, ticks[ix]), {
46179
+ prev: prev
46180
+ });
46181
+ var isBlurredLabel = ((_this$options = this.options) === null || _this$options === void 0 ? void 0 : (_this$options$selectL = _this$options.selectLabel) === null || _this$options$selectL === void 0 ? void 0 : _this$options$selectL.use) && ((_this$options2 = this.options) === null || _this$options2 === void 0 ? void 0 : (_this$options2$select = _this$options2.selectLabel) === null || _this$options2$select === void 0 ? void 0 : _this$options2$select.useLabelOpacity) && this.options.horizontal === (this.type === 'y') && (selectLabelInfo === null || selectLabelInfo === void 0 ? void 0 : (_selectLabelInfo$data = selectLabelInfo.dataIndex) === null || _selectLabelInfo$data === void 0 ? void 0 : _selectLabelInfo$data.length) && !(selectLabelInfo !== null && selectLabelInfo !== void 0 && selectLabelInfo.label.map(function (t, index) {
46182
+ var _selectLabelInfo$labe;
46183
+
46184
+ return _this2.getLabelFormat(Math.min(axisMax, t), {
46185
+ prev: (_selectLabelInfo$labe = selectLabelInfo === null || selectLabelInfo === void 0 ? void 0 : selectLabelInfo.label[index - 1]) !== null && _selectLabelInfo$labe !== void 0 ? _selectLabelInfo$labe : ''
46186
+ });
46152
46187
  }).includes(labelText));
46153
46188
  var labelColor = this.labelStyle.color;
46154
46189
  var defaultOpacity = 1;
@@ -49480,6 +49515,10 @@ var plugins_interaction_modules = {
49480
49515
  label: label,
49481
49516
  mousePosition: [e.clientX, e.clientY]
49482
49517
  };
49518
+ } else {
49519
+ args.hoveredLabel = {
49520
+ label: ''
49521
+ };
49483
49522
  }
49484
49523
 
49485
49524
  if (typeof _this.listeners['mouse-move'] === 'function') {