evui 3.4.62 → 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.
@@ -11161,7 +11161,7 @@ $({ target: 'Number', stat: true }, {
11161
11161
  /***/ "9224":
11162
11162
  /***/ (function(module) {
11163
11163
 
11164
- module.exports = JSON.parse("{\"a\":\"3.4.62\"}");
11164
+ module.exports = JSON.parse("{\"a\":\"3.4.63\"}");
11165
11165
 
11166
11166
  /***/ }),
11167
11167
 
@@ -36347,12 +36347,12 @@ var uses_contextMenuEvent = function contextMenuEvent(params) {
36347
36347
  });
36348
36348
  },
36349
36349
  disabled: !filterable,
36350
- hidden: (_contextInfo$hiddenCo3 = contextInfo.hiddenColumnMenuItem) === null || _contextInfo$hiddenCo3 === void 0 ? void 0 : _contextInfo$hiddenCo3.filter
36350
+ hidden: ((_contextInfo$hiddenCo3 = contextInfo.hiddenColumnMenuItem) === null || _contextInfo$hiddenCo3 === void 0 ? void 0 : _contextInfo$hiddenCo3.filter) || !filterInfo.isFiltering
36351
36351
  }, {
36352
36352
  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',
36353
36353
  iconClass: 'ev-icon-visibility-off',
36354
36354
  disabled: !useGridSetting.value || stores.orderedColumns.length === 1 || column.fixed,
36355
- hidden: (_contextInfo$hiddenCo4 = contextInfo.hiddenColumnMenuItem) === null || _contextInfo$hiddenCo4 === void 0 ? void 0 : _contextInfo$hiddenCo4.hide,
36355
+ hidden: ((_contextInfo$hiddenCo4 = contextInfo.hiddenColumnMenuItem) === null || _contextInfo$hiddenCo4 === void 0 ? void 0 : _contextInfo$hiddenCo4.hide) || !useGridSetting.value,
36356
36356
  click: function click() {
36357
36357
  setColumnHidden(column.field);
36358
36358
  emit('change-column-status', {
@@ -36366,7 +36366,7 @@ var uses_contextMenuEvent = function contextMenuEvent(params) {
36366
36366
  }];
36367
36367
  contextInfo.columnMenuItems = [];
36368
36368
 
36369
- if (!sortable && !filterable) {
36369
+ if (!sortable && !filterable && !useGridSetting.value) {
36370
36370
  return;
36371
36371
  }
36372
36372
 
@@ -44388,7 +44388,9 @@ var scale_Scale = /*#__PURE__*/function () {
44388
44388
  }
44389
44389
 
44390
44390
  var minLabel = this.getLabelFormat(minValue);
44391
- var maxLabel = this.getLabelFormat(maxValue, isDefaultMaxSameAsMin);
44391
+ var maxLabel = this.getLabelFormat(maxValue, {
44392
+ isMaxValueSameAsMin: isDefaultMaxSameAsMin
44393
+ });
44392
44394
  return {
44393
44395
  min: minValue,
44394
44396
  max: maxValue,
@@ -44602,14 +44604,20 @@ var scale_Scale = /*#__PURE__*/function () {
44602
44604
  labelCenter = Math.round(offsetStartPoint + labelGap * ix);
44603
44605
 
44604
44606
  if (labelCenter <= endPoint || this.type !== 'x' || !(options !== null && options !== void 0 && options.axesX[0].flow) || dataLabels.length === steps + 1) {
44605
- var _this$options, _this$options$selectL, _this$options2, _this$options2$select, _selectLabelInfo$data;
44607
+ var _ticks, _this$options, _this$options$selectL, _this$options2, _this$options2$select, _selectLabelInfo$data;
44606
44608
 
44607
44609
  ctx.beginPath();
44608
44610
  ticks[ix] = axisMinForLabel + ix * stepValue;
44609
44611
  linePosition = labelCenter + aliasPixel;
44610
- labelText = this.getLabelFormat(Math.min(axisMax, ticks[ix]));
44611
- 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) {
44612
- return _this2.getLabelFormat(Math.min(axisMax, t));
44612
+ labelText = this.getLabelFormat(Math.min(axisMax, ticks[ix]), {
44613
+ prev: (_ticks = ticks[ix - 1]) !== null && _ticks !== void 0 ? _ticks : ''
44614
+ });
44615
+ 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) {
44616
+ var _selectLabelInfo$labe;
44617
+
44618
+ return _this2.getLabelFormat(Math.min(axisMax, t), {
44619
+ prev: (_selectLabelInfo$labe = selectLabelInfo === null || selectLabelInfo === void 0 ? void 0 : selectLabelInfo.label[index - 1]) !== null && _selectLabelInfo$labe !== void 0 ? _selectLabelInfo$labe : ''
44620
+ });
44613
44621
  }).includes(labelText));
44614
44622
  var labelColor = this.labelStyle.color;
44615
44623
  var defaultOpacity = 1;
@@ -45233,13 +45241,15 @@ var scale_time_TimeScale = /*#__PURE__*/function (_Scale) {
45233
45241
  /**
45234
45242
  * Transforming label by designated format
45235
45243
  * @param {number} value label value
45236
- * @param {boolean} isMaxValueSameAsMin is default max value same as min value
45244
+ * @param {object} data data for formatting
45237
45245
  *
45238
45246
  * @returns {string} formatted label
45239
45247
  */
45240
- value: function getLabelFormat(value, isMaxValueSameAsMin) {
45248
+ value: function getLabelFormat(value) {
45249
+ var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
45250
+
45241
45251
  if (this.formatter) {
45242
- var formattedLabel = this.formatter(value, isMaxValueSameAsMin);
45252
+ var formattedLabel = this.formatter(value, data);
45243
45253
 
45244
45254
  if (typeof formattedLabel === 'string') {
45245
45255
  return formattedLabel;
@@ -45305,13 +45315,15 @@ var scale_linear_LinearScale = /*#__PURE__*/function (_Scale) {
45305
45315
  /**
45306
45316
  * Transforming label by designated format
45307
45317
  * @param {number} value label value
45308
- * @param {boolean} isMaxValueSameAsMin is default max value same as min value
45318
+ * @param {object} data data for formatting
45309
45319
  *
45310
45320
  * @returns {string} formatted label
45311
45321
  */
45312
- value: function getLabelFormat(value, isMaxValueSameAsMin) {
45322
+ value: function getLabelFormat(value) {
45323
+ var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
45324
+
45313
45325
  if (this.formatter) {
45314
- var formattedLabel = this.formatter(value, isMaxValueSameAsMin);
45326
+ var formattedLabel = this.formatter(value, data);
45315
45327
 
45316
45328
  if (typeof formattedLabel === 'string') {
45317
45329
  return formattedLabel;
@@ -45395,7 +45407,9 @@ var scale_logarithmic_LogarithmicScale = /*#__PURE__*/function (_Scale) {
45395
45407
  }
45396
45408
 
45397
45409
  var minLabel = this.getLabelFormat(minValue);
45398
- var maxLabel = this.getLabelFormat(maxValue, isDefaultMaxSameAsMin);
45410
+ var maxLabel = this.getLabelFormat(maxValue, {
45411
+ isMaxValueSameAsMin: isDefaultMaxSameAsMin
45412
+ });
45399
45413
  return {
45400
45414
  min: minValue,
45401
45415
  max: maxValue,
@@ -45458,16 +45472,18 @@ var scale_logarithmic_LogarithmicScale = /*#__PURE__*/function (_Scale) {
45458
45472
  /**
45459
45473
  * Transforming label by designated format
45460
45474
  * @param {number} value label value
45461
- * @param {boolean} isMaxValueSameAsMin is default max value same as min value
45475
+ * @param {object} data data for formatting
45462
45476
  *
45463
45477
  * @returns {string} formatted label
45464
45478
  */
45465
45479
 
45466
45480
  }, {
45467
45481
  key: "getLabelFormat",
45468
- value: function getLabelFormat(value, isMaxValueSameAsMin) {
45482
+ value: function getLabelFormat(value) {
45483
+ var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
45484
+
45469
45485
  if (this.formatter) {
45470
- var formattedLabel = this.formatter(value, isMaxValueSameAsMin);
45486
+ var formattedLabel = this.formatter(value, data);
45471
45487
 
45472
45488
  if (typeof formattedLabel === 'string') {
45473
45489
  return formattedLabel;
@@ -45881,6 +45897,7 @@ var scale_step_StepScale = /*#__PURE__*/function (_Scale) {
45881
45897
  * Transforming label by designated format
45882
45898
  * @param {string} value label value
45883
45899
  * @param {number} maxWidth max width for each label
45900
+ * @param {object} data data for formatting
45884
45901
  *
45885
45902
  * @returns {string} formatted label
45886
45903
  */
@@ -45888,8 +45905,10 @@ var scale_step_StepScale = /*#__PURE__*/function (_Scale) {
45888
45905
  }, {
45889
45906
  key: "getLabelFormat",
45890
45907
  value: function getLabelFormat(value, maxWidth) {
45908
+ var data = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
45909
+
45891
45910
  if (this.formatter) {
45892
- var formattedLabel = this.formatter(value);
45911
+ var formattedLabel = this.formatter(value, data);
45893
45912
 
45894
45913
  if (typeof formattedLabel === 'string') {
45895
45914
  return formattedLabel;
@@ -45953,7 +45972,7 @@ var scale_time_category_TimeCategoryScale = /*#__PURE__*/function (_Scale) {
45953
45972
  /**
45954
45973
  * Transforming label by designated format
45955
45974
  * @param {number} value label value
45956
- * @param {boolean} isMaxValueSameAsMin is default max value same as min value
45975
+ * @param {object} data data for formatting
45957
45976
  *
45958
45977
  * @returns {string} formatted label
45959
45978
  */
@@ -45961,9 +45980,11 @@ var scale_time_category_TimeCategoryScale = /*#__PURE__*/function (_Scale) {
45961
45980
 
45962
45981
  _createClass(TimeCategoryScale, [{
45963
45982
  key: "getLabelFormat",
45964
- value: function getLabelFormat(value, isMaxValueSameAsMin) {
45983
+ value: function getLabelFormat(value) {
45984
+ var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
45985
+
45965
45986
  if (this.formatter) {
45966
- var formattedLabel = this.formatter(value, isMaxValueSameAsMin);
45987
+ var formattedLabel = this.formatter(value, data);
45967
45988
 
45968
45989
  if (typeof formattedLabel === 'string') {
45969
45990
  return formattedLabel;
@@ -46137,9 +46158,23 @@ var scale_time_category_TimeCategoryScale = /*#__PURE__*/function (_Scale) {
46137
46158
  ticks[ix] = axisMin + ix * stepValue;
46138
46159
  labelCenter = Math.round(startPoint + graphGap * ix);
46139
46160
  linePosition = labelCenter + aliasPixel;
46140
- labelText = this.getLabelFormat(Math.min(axisMax, ticks[ix]));
46141
- 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) {
46142
- return _this2.getLabelFormat(Math.min(axisMax, t));
46161
+ var prev = void 0;
46162
+
46163
+ for (var jx = 0; jx < ticks.length; jx++) {
46164
+ if (ticks[jx] !== undefined && jx !== ix) {
46165
+ prev = ticks[jx];
46166
+ }
46167
+ }
46168
+
46169
+ labelText = this.getLabelFormat(Math.min(axisMax, ticks[ix]), {
46170
+ prev: prev
46171
+ });
46172
+ 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) {
46173
+ var _selectLabelInfo$labe;
46174
+
46175
+ return _this2.getLabelFormat(Math.min(axisMax, t), {
46176
+ prev: (_selectLabelInfo$labe = selectLabelInfo === null || selectLabelInfo === void 0 ? void 0 : selectLabelInfo.label[index - 1]) !== null && _selectLabelInfo$labe !== void 0 ? _selectLabelInfo$labe : ''
46177
+ });
46143
46178
  }).includes(labelText));
46144
46179
  var labelColor = this.labelStyle.color;
46145
46180
  var defaultOpacity = 1;