@visactor/vtable 0.9.3-alpha.1 → 0.9.3-alpha.2

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/vtable.js CHANGED
@@ -41897,9 +41897,26 @@
41897
41897
  if (!colorKey) {
41898
41898
  return undefined;
41899
41899
  }
41900
- const hoverStyle = table.isHeader(cellGroup.col, cellGroup.row)
41901
- ? table.theme.headerStyle?.hover
41902
- : table.theme.bodyStyle?.hover;
41900
+ let hoverStyle;
41901
+ const layout = table.internalProps.layoutMap;
41902
+ if (layout.isCornerHeader(cellGroup.col, cellGroup.row)) {
41903
+ hoverStyle = table.theme.cornerHeaderStyle?.hover;
41904
+ }
41905
+ else if (layout.isColumnHeader(cellGroup.col, cellGroup.row)) {
41906
+ hoverStyle = table.theme.headerStyle?.hover;
41907
+ }
41908
+ else if (layout.isRowHeader(cellGroup.col, cellGroup.row)) {
41909
+ hoverStyle = table.theme.rowHeaderStyle?.hover;
41910
+ }
41911
+ else if (layout.isBottomFrozenRow(cellGroup.col, cellGroup.row)) {
41912
+ hoverStyle = table.theme.bottomFrozenStyle?.hover || table.theme.headerStyle?.hover;
41913
+ }
41914
+ else if (layout.isRightFrozenColumn(cellGroup.col, cellGroup.row)) {
41915
+ hoverStyle = table.theme.rightFrozenStyle?.hover || table.theme.rowHeaderStyle?.hover;
41916
+ }
41917
+ else if (!table.isHeader(cellGroup.col, cellGroup.row)) {
41918
+ hoverStyle = table.theme.bodyStyle?.hover;
41919
+ }
41903
41920
  const fillColor = getProp(colorKey, hoverStyle, cellGroup.col, cellGroup.row, table);
41904
41921
  return fillColor;
41905
41922
  }
@@ -51297,7 +51314,7 @@
51297
51314
  return TABLE_EVENT_TYPE;
51298
51315
  }
51299
51316
  options;
51300
- version = "0.9.3-alpha.1";
51317
+ version = "0.9.3-alpha.2";
51301
51318
  pagerConf;
51302
51319
  id = `VTable${Date.now()}`;
51303
51320
  headerStyleCache;
@@ -57516,10 +57533,10 @@
57516
57533
  const dimensionKeys = [];
57517
57534
  if (chartSpec) {
57518
57535
  if (this.indicatorsAsCol === false) {
57519
- dimensionKeys.push(chartSpec.xField);
57536
+ dimensionKeys.push(chartSpec.xField ?? chartSpec?.series[0]?.xField);
57520
57537
  }
57521
57538
  else {
57522
- dimensionKeys.push(chartSpec.yField);
57539
+ dimensionKeys.push(chartSpec.yField ?? chartSpec?.series[0]?.yField);
57523
57540
  }
57524
57541
  return dimensionKeys;
57525
57542
  }
@@ -60637,7 +60654,7 @@
60637
60654
  percentCalc: percentCalc
60638
60655
  });
60639
60656
 
60640
- const version = "0.9.3-alpha.1";
60657
+ const version = "0.9.3-alpha.2";
60641
60658
  function getIcons() {
60642
60659
  return get$1();
60643
60660
  }