@v-c/table 1.0.5 → 1.0.6

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.
Files changed (46) hide show
  1. package/dist/Body/BodyRow.js +8 -6
  2. package/dist/Body/ExpandedRow.js +6 -4
  3. package/dist/Body/MeasureCell.js +4 -2
  4. package/dist/Body/MeasureRow.js +6 -4
  5. package/dist/Body/index.js +10 -8
  6. package/dist/Cell/index.js +4 -2
  7. package/dist/Cell/useHoverState.js +2 -0
  8. package/dist/ColGroup.js +4 -2
  9. package/dist/FixedHolder/index.js +6 -4
  10. package/dist/Footer/Cell.js +6 -4
  11. package/dist/Footer/Row.js +4 -2
  12. package/dist/Footer/Summary.js +7 -6
  13. package/dist/Footer/SummaryContext.js +2 -0
  14. package/dist/Footer/index.js +8 -6
  15. package/dist/Header/Header.js +6 -4
  16. package/dist/Header/HeaderRow.js +6 -4
  17. package/dist/Panel/index.js +4 -2
  18. package/dist/Table.js +302 -273
  19. package/dist/VirtualTable/BodyGrid.js +13 -11
  20. package/dist/VirtualTable/BodyLine.js +8 -6
  21. package/dist/VirtualTable/VirtualCell.js +6 -4
  22. package/dist/VirtualTable/context.js +2 -0
  23. package/dist/VirtualTable/index.js +15 -10
  24. package/dist/constant.js +4 -2
  25. package/dist/context/PerfContext.js +2 -0
  26. package/dist/context/TableContext.js +5 -3
  27. package/dist/hooks/useColumns/index.js +4 -2
  28. package/dist/hooks/useColumns/useWidthColumns.js +2 -0
  29. package/dist/hooks/useExpand.js +3 -1
  30. package/dist/hooks/useFixedInfo.js +2 -0
  31. package/dist/hooks/useFlattenRecords.js +2 -0
  32. package/dist/hooks/useFrame.js +2 -0
  33. package/dist/hooks/useHover.js +2 -0
  34. package/dist/hooks/useRowInfo.js +2 -0
  35. package/dist/hooks/useSticky.js +2 -0
  36. package/dist/hooks/useStickyOffsets.js +2 -0
  37. package/dist/index.js +10 -8
  38. package/dist/stickyScrollBar.js +4 -2
  39. package/dist/sugar/Column.js +8 -2
  40. package/dist/sugar/ColumnGroup.js +8 -2
  41. package/dist/utils/expandUtil.js +2 -0
  42. package/dist/utils/fixUtil.js +2 -0
  43. package/dist/utils/legacyUtil.js +3 -1
  44. package/dist/utils/offsetUtil.js +2 -0
  45. package/dist/utils/valueUtil.js +2 -0
  46. package/package.json +1 -1
@@ -1,9 +1,10 @@
1
- import Cell_default from "../Cell/index.js";
1
+ import Cell from "../Cell/index.js";
2
2
  import useRowInfo from "../hooks/useRowInfo.js";
3
3
  import { computedExpandedClassName } from "../utils/expandUtil.js";
4
- import ExpandedRow_default from "./ExpandedRow.js";
4
+ import ExpandedRow from "./ExpandedRow.js";
5
5
  import { Fragment, computed, createVNode, defineComponent, isVNode, mergeProps, ref, watchEffect } from "vue";
6
6
  import { clsx } from "@v-c/util";
7
+ //#region src/Body/BodyRow.tsx
7
8
  function _isSlot(s) {
8
9
  return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
9
10
  }
@@ -42,7 +43,7 @@ function getCellProps(rowInfo, record, column, colIndex, indent, index, rowKeys
42
43
  additionalCellProps
43
44
  };
44
45
  }
45
- var BodyRow_default = /* @__PURE__ */ defineComponent({
46
+ var BodyRow = /* @__PURE__ */ defineComponent({
46
47
  name: "TableBodyRow",
47
48
  props: [
48
49
  "record",
@@ -91,7 +92,7 @@ var BodyRow_default = /* @__PURE__ */ defineComponent({
91
92
  const { key, fixedInfo, appendCellNode, additionalCellProps } = getCellProps(rowInfo, record, column, colIndex, indent, index, rowKeys, expandedRowInfo?.offset);
92
93
  const scope = column.rowScope ? column.rowScope : column.title ? "row" : void 0;
93
94
  const CellComponent = column.rowScope ? scopeCellComponent : BodyCellComponent;
94
- return createVNode(Cell_default, mergeProps({
95
+ return createVNode(Cell, mergeProps({
95
96
  "className": clsx(columnClassName, classNames?.cell),
96
97
  "style": styles?.cell,
97
98
  "ellipsis": column.ellipsis,
@@ -116,7 +117,7 @@ var BodyRow_default = /* @__PURE__ */ defineComponent({
116
117
  if (rowSupportExpand.value && (expandedRef.value || expanded.value)) {
117
118
  const expandContent = expandedRowRender(record, index, indent + 1, expanded.value);
118
119
  const computedExpandedRowClassName = computedExpandedClassName(expandedRowClassName, record, index, indent);
119
- expandRowNode = createVNode(ExpandedRow_default, {
120
+ expandRowNode = createVNode(ExpandedRow, {
120
121
  "expanded": expanded.value,
121
122
  "className": clsx(`${prefixCls}-expanded-row`, `${prefixCls}-expanded-row-level-${indent + 1}`, computedExpandedRowClassName),
122
123
  "key": `expanded-row-${rowKey}`,
@@ -133,4 +134,5 @@ var BodyRow_default = /* @__PURE__ */ defineComponent({
133
134
  };
134
135
  }
135
136
  });
136
- export { BodyRow_default as default, getCellProps };
137
+ //#endregion
138
+ export { BodyRow as default, getCellProps };
@@ -1,10 +1,11 @@
1
1
  import { useInjectTableContext } from "../context/TableContext.js";
2
- import Cell_default from "../Cell/index.js";
2
+ import Cell from "../Cell/index.js";
3
3
  import { createVNode, defineComponent, isVNode } from "vue";
4
+ //#region src/Body/ExpandedRow.tsx
4
5
  function _isSlot(s) {
5
6
  return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
6
7
  }
7
- var ExpandedRow_default = /* @__PURE__ */ defineComponent({
8
+ var ExpandedRow = /* @__PURE__ */ defineComponent({
8
9
  name: "TableExpandedRow",
9
10
  props: [
10
11
  "prefixCls",
@@ -38,7 +39,7 @@ var ExpandedRow_default = /* @__PURE__ */ defineComponent({
38
39
  return createVNode(Component, {
39
40
  "class": className,
40
41
  "style": { display: expanded ? null : "none" }
41
- }, { default: () => [createVNode(Cell_default, {
42
+ }, { default: () => [createVNode(Cell, {
42
43
  "component": cellComponent,
43
44
  "prefixCls": prefixCls,
44
45
  "colSpan": colSpan
@@ -46,4 +47,5 @@ var ExpandedRow_default = /* @__PURE__ */ defineComponent({
46
47
  };
47
48
  }
48
49
  });
49
- export { ExpandedRow_default as default };
50
+ //#endregion
51
+ export { ExpandedRow as default };
@@ -1,7 +1,8 @@
1
1
  import { createVNode, defineComponent, ref } from "vue";
2
2
  import ResizeObserver from "@v-c/resize-observer";
3
3
  import { useLayoutEffect } from "@v-c/util/dist/hooks/useLayoutEffect";
4
- var MeasureCell_default = /* @__PURE__ */ defineComponent({
4
+ //#region src/Body/MeasureCell.tsx
5
+ var MeasureCell = /* @__PURE__ */ defineComponent({
5
6
  name: "TableMeasureCell",
6
7
  props: [
7
8
  "columnKey",
@@ -29,4 +30,5 @@ var MeasureCell_default = /* @__PURE__ */ defineComponent({
29
30
  } }, [props.title || "\xA0"])])] });
30
31
  }
31
32
  });
32
- export { MeasureCell_default as default };
33
+ //#endregion
34
+ export { MeasureCell as default };
@@ -1,13 +1,14 @@
1
1
  import { useInjectTableContext } from "../context/TableContext.js";
2
- import MeasureCell_default from "./MeasureCell.js";
2
+ import MeasureCell from "./MeasureCell.js";
3
3
  import { cloneVNode, createVNode, defineComponent, isVNode, ref } from "vue";
4
4
  import ResizeObserver from "@v-c/resize-observer";
5
5
  import { filterEmpty } from "@v-c/util/dist/props-util";
6
6
  import isVisible from "@v-c/util/dist/Dom/isVisible";
7
+ //#region src/Body/MeasureRow.tsx
7
8
  function _isSlot(s) {
8
9
  return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
9
10
  }
10
- var MeasureRow_default = /* @__PURE__ */ defineComponent({
11
+ var MeasureRow = /* @__PURE__ */ defineComponent({
11
12
  name: "TableMeasureRow",
12
13
  props: [
13
14
  "prefixCls",
@@ -46,7 +47,7 @@ var MeasureRow_default = /* @__PURE__ */ defineComponent({
46
47
  });
47
48
  } }, _isSlot(_slot = props.columnsKey.map((columnKey) => {
48
49
  const titleForMeasure = cloneTitle(props.columns.find((col) => col.key === columnKey)?.title);
49
- return createVNode(MeasureCell_default, {
50
+ return createVNode(MeasureCell, {
50
51
  "key": columnKey,
51
52
  "columnKey": columnKey,
52
53
  "onColumnResize": props.onColumnResize,
@@ -57,4 +58,5 @@ var MeasureRow_default = /* @__PURE__ */ defineComponent({
57
58
  };
58
59
  }
59
60
  });
60
- export { MeasureRow_default as default };
61
+ //#endregion
62
+ export { MeasureRow as default };
@@ -2,12 +2,13 @@ import { useInjectTableContext } from "../context/TableContext.js";
2
2
  import { useProvidePerfContext } from "../context/PerfContext.js";
3
3
  import useFlattenRecords from "../hooks/useFlattenRecords.js";
4
4
  import { getColumnsKey } from "../utils/valueUtil.js";
5
- import ExpandedRow_default from "./ExpandedRow.js";
6
- import BodyRow_default from "./BodyRow.js";
7
- import MeasureRow_default from "./MeasureRow.js";
5
+ import ExpandedRow from "./ExpandedRow.js";
6
+ import BodyRow from "./BodyRow.js";
7
+ import MeasureRow from "./MeasureRow.js";
8
8
  import { computed, createVNode, defineComponent } from "vue";
9
9
  import { clsx } from "@v-c/util";
10
- var Body_default = /* @__PURE__ */ defineComponent({
10
+ //#region src/Body/index.tsx
11
+ var Body = /* @__PURE__ */ defineComponent({
11
12
  name: "TableBody",
12
13
  props: ["data", "measureColumnWidth"],
13
14
  setup(props) {
@@ -35,7 +36,7 @@ var Body_default = /* @__PURE__ */ defineComponent({
35
36
  let rows;
36
37
  if (props.data.length) rows = flattenData.value.map((item, idx) => {
37
38
  const { record, indent, index: renderIndex, rowKey } = item;
38
- return createVNode(BodyRow_default, {
39
+ return createVNode(BodyRow, {
39
40
  "classNames": bodyCls.value,
40
41
  "styles": bodyStyles.value,
41
42
  "key": rowKey,
@@ -51,7 +52,7 @@ var Body_default = /* @__PURE__ */ defineComponent({
51
52
  "expandedRowInfo": expandedRowInfo.value
52
53
  }, null);
53
54
  });
54
- else rows = createVNode(ExpandedRow_default, {
55
+ else rows = createVNode(ExpandedRow, {
55
56
  "expanded": true,
56
57
  "className": `${context.prefixCls}-placeholder`,
57
58
  "prefixCls": context.prefixCls,
@@ -64,7 +65,7 @@ var Body_default = /* @__PURE__ */ defineComponent({
64
65
  return createVNode(WrapperComponent, {
65
66
  "style": bodyStyles.value.wrapper,
66
67
  "class": clsx(`${context.prefixCls}-tbody`, bodyCls.value.wrapper)
67
- }, { default: () => [props.measureColumnWidth && createVNode(MeasureRow_default, {
68
+ }, { default: () => [props.measureColumnWidth && createVNode(MeasureRow, {
68
69
  "prefixCls": context.prefixCls,
69
70
  "columnsKey": columnsKey,
70
71
  "onColumnResize": context.onColumnResize,
@@ -73,4 +74,5 @@ var Body_default = /* @__PURE__ */ defineComponent({
73
74
  };
74
75
  }
75
76
  });
76
- export { Body_default as default };
77
+ //#endregion
78
+ export { Body as default };
@@ -6,6 +6,7 @@ import { computed, createVNode, defineComponent, isVNode, mergeProps } from "vue
6
6
  import { clsx, warning } from "@v-c/util";
7
7
  import { filterEmpty, getStylePxValue } from "@v-c/util/dist/props-util";
8
8
  import getValue from "@v-c/util/dist/utils/get";
9
+ //#region src/Cell/index.tsx
9
10
  function getTitleFromCellRenderChildren({ ellipsis, rowType, children }) {
10
11
  const ellipsisConfig = ellipsis === true ? { showTitle: true } : ellipsis;
11
12
  const showTitle = !!(ellipsisConfig && typeof ellipsisConfig === "object" && ellipsisConfig.showTitle);
@@ -38,7 +39,7 @@ function resolveCellRender({ record, dataIndex, renderIndex, children, render, p
38
39
  }
39
40
  return [returnChildNode, returnCellProps];
40
41
  }
41
- var Cell_default = /* @__PURE__ */ defineComponent({
42
+ var Cell = /* @__PURE__ */ defineComponent({
42
43
  name: "TableCell",
43
44
  props: [
44
45
  "prefixCls",
@@ -192,4 +193,5 @@ var Cell_default = /* @__PURE__ */ defineComponent({
192
193
  };
193
194
  }
194
195
  });
195
- export { Cell_default as default };
196
+ //#endregion
197
+ export { Cell as default };
@@ -1,4 +1,5 @@
1
1
  import { computed } from "vue";
2
+ //#region src/Cell/useHoverState.ts
2
3
  function inHoverRange(cellStartRow, cellRowSpan, startRow, endRow) {
3
4
  const cellEndRow = cellStartRow + cellRowSpan - 1;
4
5
  return cellStartRow <= endRow && cellEndRow >= startRow;
@@ -8,4 +9,5 @@ function useHoverState(rowIndex, rowSpan, context) {
8
9
  return inHoverRange(rowIndex, rowSpan || 1, context.hoverStartRow, context.hoverEndRow);
9
10
  }), context.onHover];
10
11
  }
12
+ //#endregion
11
13
  export { useHoverState as default };
package/dist/ColGroup.js CHANGED
@@ -1,7 +1,8 @@
1
1
  import { useInjectTableContext } from "./context/TableContext.js";
2
2
  import { INTERNAL_COL_DEFINE } from "./utils/legacyUtil.js";
3
3
  import { createVNode, defineComponent, mergeProps } from "vue";
4
- var ColGroup_default = /* @__PURE__ */ defineComponent({
4
+ //#region src/ColGroup.tsx
5
+ var ColGroup = /* @__PURE__ */ defineComponent({
5
6
  name: "TableColGroup",
6
7
  props: [
7
8
  "colWidths",
@@ -42,4 +43,5 @@ var ColGroup_default = /* @__PURE__ */ defineComponent({
42
43
  };
43
44
  }
44
45
  });
45
- export { ColGroup_default as default };
46
+ //#endregion
47
+ export { ColGroup as default };
@@ -1,8 +1,9 @@
1
1
  import { useInjectTableContext } from "../context/TableContext.js";
2
- import ColGroup_default from "../ColGroup.js";
2
+ import ColGroup from "../ColGroup.js";
3
3
  import { computed, createVNode, defineComponent, onBeforeUnmount, onMounted, ref } from "vue";
4
4
  import { clsx } from "@v-c/util";
5
5
  import { getStylePxValue, toPropsRefs } from "@v-c/util/dist/props-util";
6
+ //#region src/FixedHolder/index.tsx
6
7
  function useColumnWidth(colWidths, columnCount) {
7
8
  return computed(() => {
8
9
  const cloneColumns = [];
@@ -14,7 +15,7 @@ function useColumnWidth(colWidths, columnCount) {
14
15
  return cloneColumns;
15
16
  });
16
17
  }
17
- var FixedHolder_default = /* @__PURE__ */ defineComponent({
18
+ var FixedHolder = /* @__PURE__ */ defineComponent({
18
19
  name: "TableFixedHolder",
19
20
  props: [
20
21
  "className",
@@ -125,7 +126,7 @@ var FixedHolder_default = /* @__PURE__ */ defineComponent({
125
126
  tableLayout: props.tableLayout,
126
127
  minWidth: "100%",
127
128
  width: typeof props.scrollX === "number" ? `${props.scrollX}px` : props.scrollX
128
- } }, { default: () => [isColGroupEmpty.value ? props.colGroup : createVNode(ColGroup_default, {
129
+ } }, { default: () => [isColGroupEmpty.value ? props.colGroup : createVNode(ColGroup, {
129
130
  "colWidths": [...mergedColumnWidth.value || [], combinationScrollBarSize.value],
130
131
  "columCount": props.columCount + 1,
131
132
  "columns": flattenColumnsWithScrollbar.value
@@ -133,4 +134,5 @@ var FixedHolder_default = /* @__PURE__ */ defineComponent({
133
134
  };
134
135
  }
135
136
  });
136
- export { FixedHolder_default as default };
137
+ //#endregion
138
+ export { FixedHolder as default };
@@ -1,9 +1,10 @@
1
1
  import { useInjectTableContext } from "../context/TableContext.js";
2
- import Cell_default$1 from "../Cell/index.js";
2
+ import Cell from "../Cell/index.js";
3
3
  import { getCellFixedInfo } from "../utils/fixUtil.js";
4
4
  import { useInjectSummaryContext } from "./SummaryContext.js";
5
5
  import { computed, createVNode, defineComponent, mergeProps } from "vue";
6
- var Cell_default = /* @__PURE__ */ defineComponent({
6
+ //#region src/Footer/Cell.tsx
7
+ var SummaryCell = /* @__PURE__ */ defineComponent({
7
8
  name: "TableSummaryCell",
8
9
  props: [
9
10
  "className",
@@ -28,7 +29,7 @@ var Cell_default = /* @__PURE__ */ defineComponent({
28
29
  };
29
30
  return getCellFixedInfo(props.index, props.index + mergedColSpan.value - 1, summaryContext.flattenColumns || [], stickyOffsets);
30
31
  });
31
- return () => createVNode(Cell_default$1, mergeProps({
32
+ return () => createVNode(Cell, mergeProps({
32
33
  "className": props.className,
33
34
  "index": props.index,
34
35
  "component": "td",
@@ -42,4 +43,5 @@ var Cell_default = /* @__PURE__ */ defineComponent({
42
43
  }, fixedInfo.value), null);
43
44
  }
44
45
  });
45
- export { Cell_default as default };
46
+ //#endregion
47
+ export { SummaryCell as default };
@@ -1,5 +1,6 @@
1
1
  import { createVNode, defineComponent } from "vue";
2
- var Row_default = /* @__PURE__ */ defineComponent({
2
+ //#region src/Footer/Row.tsx
3
+ var FooterRow = /* @__PURE__ */ defineComponent({
3
4
  name: "TableFooterRow",
4
5
  props: [
5
6
  "className",
@@ -14,4 +15,5 @@ var Row_default = /* @__PURE__ */ defineComponent({
14
15
  }, [slots.default?.()]);
15
16
  }
16
17
  });
17
- export { Row_default as default };
18
+ //#endregion
19
+ export { FooterRow as default };
@@ -1,6 +1,7 @@
1
- import Cell_default from "./Cell.js";
2
- import Row_default from "./Row.js";
1
+ import SummaryCell from "./Cell.js";
2
+ import FooterRow from "./Row.js";
3
3
  import { defineComponent } from "vue";
4
+ //#region src/Footer/Summary.tsx
4
5
  var Summary = /* @__PURE__ */ defineComponent({
5
6
  name: "TableSummary",
6
7
  props: ["fixed"],
@@ -8,7 +9,7 @@ var Summary = /* @__PURE__ */ defineComponent({
8
9
  return () => slots.default?.();
9
10
  }
10
11
  });
11
- Summary.Row = Row_default;
12
- Summary.Cell = Cell_default;
13
- var Summary_default = Summary;
14
- export { Summary_default as default };
12
+ Summary.Row = FooterRow;
13
+ Summary.Cell = SummaryCell;
14
+ //#endregion
15
+ export { Summary as default };
@@ -1,4 +1,5 @@
1
1
  import { inject, provide } from "vue";
2
+ //#region src/Footer/SummaryContext.tsx
2
3
  var SummaryContextKey = Symbol("TableSummaryContext");
3
4
  function useProvideSummaryContext(value) {
4
5
  provide(SummaryContextKey, value);
@@ -6,4 +7,5 @@ function useProvideSummaryContext(value) {
6
7
  function useInjectSummaryContext() {
7
8
  return inject(SummaryContextKey, {});
8
9
  }
10
+ //#endregion
9
11
  export { useInjectSummaryContext, useProvideSummaryContext };
@@ -1,10 +1,11 @@
1
1
  import { useInjectTableContext } from "../context/TableContext.js";
2
2
  import { useProvideSummaryContext } from "./SummaryContext.js";
3
- import Cell_default from "./Cell.js";
4
- import Row_default from "./Row.js";
5
- import Summary_default from "./Summary.js";
3
+ import SummaryCell from "./Cell.js";
4
+ import FooterRow from "./Row.js";
5
+ import Summary from "./Summary.js";
6
6
  import { createVNode, defineComponent, reactive, watchEffect } from "vue";
7
- var Footer_default = /* @__PURE__ */ defineComponent({
7
+ //#region src/Footer/index.tsx
8
+ var Footer = /* @__PURE__ */ defineComponent({
8
9
  name: "TableFooter",
9
10
  props: ["stickyOffsets", "flattenColumns"],
10
11
  inheritAttrs: false,
@@ -26,5 +27,6 @@ var Footer_default = /* @__PURE__ */ defineComponent({
26
27
  return () => createVNode("tfoot", { "class": `${context.prefixCls}-summary` }, [slots.default?.()]);
27
28
  }
28
29
  });
29
- const FooterComponents = Summary_default;
30
- export { FooterComponents, Cell_default as SummaryCell, Row_default as SummaryRow, Footer_default as default };
30
+ var FooterComponents = Summary;
31
+ //#endregion
32
+ export { FooterComponents, SummaryCell, FooterRow as SummaryRow, Footer as default };
@@ -1,7 +1,8 @@
1
1
  import { useInjectTableContext } from "../context/TableContext.js";
2
- import HeaderRow_default from "./HeaderRow.js";
2
+ import HeaderRow from "./HeaderRow.js";
3
3
  import { computed, createVNode, defineComponent, isVNode } from "vue";
4
4
  import { clsx } from "@v-c/util";
5
+ //#region src/Header/Header.tsx
5
6
  function _isSlot(s) {
6
7
  return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
7
8
  }
@@ -41,7 +42,7 @@ function parseHeaderRows(rootColumns, classNames, styles) {
41
42
  });
42
43
  return rows;
43
44
  }
44
- var Header_default = /* @__PURE__ */ defineComponent({
45
+ var Header = /* @__PURE__ */ defineComponent({
45
46
  name: "TableHeader",
46
47
  inheritAttrs: false,
47
48
  props: [
@@ -64,7 +65,7 @@ var Header_default = /* @__PURE__ */ defineComponent({
64
65
  "class": clsx(`${context.prefixCls}-thead`, headerCls.value.wrapper),
65
66
  "style": headerStyles.value.wrapper
66
67
  }, _isSlot(_slot = rows.map((row, rowIndex) => {
67
- return createVNode(HeaderRow_default, {
68
+ return createVNode(HeaderRow, {
68
69
  "classNames": headerCls.value,
69
70
  "styles": headerStyles.value,
70
71
  "key": rowIndex,
@@ -80,4 +81,5 @@ var Header_default = /* @__PURE__ */ defineComponent({
80
81
  };
81
82
  }
82
83
  });
83
- export { Header_default as default };
84
+ //#endregion
85
+ export { Header as default };
@@ -1,13 +1,14 @@
1
1
  import { useInjectTableContext } from "../context/TableContext.js";
2
2
  import { getColumnsKey } from "../utils/valueUtil.js";
3
- import Cell_default from "../Cell/index.js";
3
+ import Cell from "../Cell/index.js";
4
4
  import { getCellFixedInfo } from "../utils/fixUtil.js";
5
5
  import { createVNode, defineComponent, isVNode, mergeProps } from "vue";
6
6
  import { clsx } from "@v-c/util";
7
+ //#region src/Header/HeaderRow.tsx
7
8
  function _isSlot(s) {
8
9
  return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
9
10
  }
10
- var HeaderRow_default = /* @__PURE__ */ defineComponent({
11
+ var HeaderRow = /* @__PURE__ */ defineComponent({
11
12
  name: "TableHeaderRow",
12
13
  props: [
13
14
  "cells",
@@ -41,7 +42,7 @@ var HeaderRow_default = /* @__PURE__ */ defineComponent({
41
42
  const { column, colStart, colEnd, colSpan } = cell;
42
43
  const fixedInfo = getCellFixedInfo(colStart, colEnd, flattenColumns, stickyOffsets);
43
44
  const additionalProps = column?.onHeaderCell?.(column) || {};
44
- return createVNode(Cell_default, mergeProps(cell, {
45
+ return createVNode(Cell, mergeProps(cell, {
45
46
  "colIndex": colStart ?? cellIndex,
46
47
  "scope": column.title ? colSpan > 1 ? "colgroup" : "col" : null,
47
48
  "ellipsis": column.ellipsis,
@@ -57,4 +58,5 @@ var HeaderRow_default = /* @__PURE__ */ defineComponent({
57
58
  };
58
59
  }
59
60
  });
60
- export { HeaderRow_default as default };
61
+ //#endregion
62
+ export { HeaderRow as default };
@@ -1,7 +1,9 @@
1
1
  import { createVNode, defineComponent } from "vue";
2
- var Panel_default = /* @__PURE__ */ defineComponent((_, { attrs, slots }) => {
2
+ //#region src/Panel/index.tsx
3
+ var Panel = /* @__PURE__ */ defineComponent((_, { attrs, slots }) => {
3
4
  return () => {
4
5
  return createVNode("div", attrs, [slots?.default?.()]);
5
6
  };
6
7
  });
7
- export { Panel_default as default };
8
+ //#endregion
9
+ export { Panel as default };