evui 3.4.103 → 3.4.105

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.
@@ -11164,7 +11164,7 @@ module.exports = exports;
11164
11164
  /***/ "9224":
11165
11165
  /***/ (function(module) {
11166
11166
 
11167
- module.exports = JSON.parse("{\"a\":\"3.4.103\"}");
11167
+ module.exports = JSON.parse("{\"a\":\"3.4.105\"}");
11168
11168
 
11169
11169
  /***/ }),
11170
11170
 
@@ -35420,17 +35420,19 @@ var uses_resizeEvent = function resizeEvent(params) {
35420
35420
  }
35421
35421
  });
35422
35422
 
35423
- if (remainWidth) {
35423
+ if (remainWidth && stores.orderedColumns.length) {
35424
35424
  var index = stores.orderedColumns.length - 1;
35425
35425
  var lastColumn = stores.orderedColumns[index]; // orderedColumns에 hiddenDisplay === true 컬럼은 포함되어 있지 않다.
35426
35426
  // 하지만 hide === true 컬럼은 포함되어 있다. 그래서 hiddenDisplay 조건은 필요없지만 조건을 추가해서 코드 가독성과 안정성을 높였다.
35427
35427
 
35428
- while (lastColumn.hide || lastColumn.hiddenDisplay) {
35428
+ while (index > 0 && lastColumn && (lastColumn.hide || lastColumn.hiddenDisplay)) {
35429
35429
  index -= 1;
35430
35430
  lastColumn = stores.orderedColumns[index];
35431
35431
  }
35432
35432
 
35433
- lastColumn.width += remainWidth;
35433
+ if (lastColumn) {
35434
+ lastColumn.width += remainWidth;
35435
+ }
35434
35436
  }
35435
35437
  };
35436
35438
  /**
@@ -46601,8 +46603,9 @@ var scale_time_category_TimeCategoryScale = /*#__PURE__*/function (_Scale) {
46601
46603
  var axisMin = stepInfo.graphMin;
46602
46604
  var axisMax = stepInfo.graphMax;
46603
46605
  var stepValue = stepInfo.rawInterval;
46604
- var oriSteps = stepInfo.oriSteps;
46605
- var count = Math.round(oriSteps / steps);
46606
+ var oriSteps = stepInfo.oriSteps; // 2개 이하일 경우, 첫번째와 마지막 라벨만 표시
46607
+
46608
+ var count = steps <= 2 ? oriSteps : Math.round(oriSteps / steps);
46606
46609
  var startPoint = aPos[this.units.rectStart];
46607
46610
  var endPoint = aPos[this.units.rectEnd];
46608
46611
  var offsetPoint = aPos[this.units.rectOffset(this.position)];
@@ -46655,8 +46658,9 @@ var scale_time_category_TimeCategoryScale = /*#__PURE__*/function (_Scale) {
46655
46658
  var labelText;
46656
46659
  var labelPoint;
46657
46660
  var ix;
46661
+ var maxIndex = oriSteps === count ? oriSteps : oriSteps - 1;
46658
46662
 
46659
- for (ix = 0; ix < oriSteps; ix += count) {
46663
+ for (ix = 0; ix <= maxIndex; ix += count) {
46660
46664
  var _this$options, _this$options$selectL, _this$options2, _this$options2$select, _selectLabelInfo$data;
46661
46665
 
46662
46666
  ticks[ix] = dayjs_min_default()(axisMin).valueOf() + ix * stepValue;
@@ -59018,17 +59022,19 @@ var treeGrid_uses_resizeEvent = function resizeEvent(params) {
59018
59022
  }
59019
59023
  });
59020
59024
 
59021
- if (remainWidth) {
59025
+ if (remainWidth && stores.orderedColumns.length) {
59022
59026
  var index = stores.orderedColumns.length - 1;
59023
59027
  var lastColumn = stores.orderedColumns[index]; // orderedColumns에 hiddenDisplay === true 컬럼은 포함되어 있지 않다.
59024
59028
  // 하지만 hide === true 컬럼은 포함되어 있다. 그래서 hiddenDisplay 조건은 필요없지만 조건을 추가해서 코드 가독성과 안정성을 높였다.
59025
59029
 
59026
- while (lastColumn.hide || lastColumn.hiddenDisplay) {
59030
+ while (index > 0 && lastColumn && (lastColumn.hide || lastColumn.hiddenDisplay)) {
59027
59031
  index -= 1;
59028
59032
  lastColumn = stores.orderedColumns[index];
59029
59033
  }
59030
59034
 
59031
- lastColumn.width += remainWidth;
59035
+ if (lastColumn) {
59036
+ lastColumn.width += remainWidth;
59037
+ }
59032
59038
  }
59033
59039
 
59034
59040
  resizeInfo.isResize = !resizeInfo.isResize;