@vtable-guild/vtable-guild 2.6.0 → 2.6.1
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/index.full.mjs +2393 -2362
- package/dist/table/src/components/ColGroup.d.ts.map +1 -1
- package/dist/table/src/components/ColGroup.mjs +11 -10
- package/dist/table/src/components/FilterIcon.d.ts.map +1 -1
- package/dist/table/src/components/FilterIcon.mjs +10 -10
- package/dist/table/src/components/ResizeHandle.d.ts.map +1 -1
- package/dist/table/src/components/ResizeHandle.mjs +14 -11
- package/dist/table/src/components/SortButton.d.ts.map +1 -1
- package/dist/table/src/components/SortButton.mjs +18 -13
- package/dist/table/src/components/Table.d.ts.map +1 -1
- package/dist/table/src/components/Table.mjs +271 -266
- package/dist/table/src/components/TableBody.d.ts.map +1 -1
- package/dist/table/src/components/TableBody.mjs +44 -42
- package/dist/table/src/components/TableCell.d.ts.map +1 -1
- package/dist/table/src/components/TableCell.mjs +85 -83
- package/dist/table/src/components/TableEmpty.mjs +10 -8
- package/dist/table/src/components/TableHeaderCell.d.ts.map +1 -1
- package/dist/table/src/components/TableHeaderCell.mjs +89 -89
- package/dist/table/src/components/VirtualTableBody.d.ts.map +1 -1
- package/dist/table/src/components/VirtualTableBody.mjs +64 -62
- package/dist/table/src/utils/compat.d.ts +9 -1
- package/dist/table/src/utils/compat.d.ts.map +1 -1
- package/dist/table/src/utils/compat.mjs +24 -20
- package/dist/theme/src/compat/antdv-table.d.ts.map +1 -1
- package/dist/theme/src/compat/antdv-table.mjs +14 -8
- package/package.json +1 -1
|
@@ -2,8 +2,16 @@ import { TableContext } from '../context';
|
|
|
2
2
|
import { FixedOffset } from '../composables/useScroll';
|
|
3
3
|
/** 行级状态类:选中态 + 树层级。 */
|
|
4
4
|
export declare function getRowCompatClass(tableContext: TableContext, record: Record<string, unknown>, rowIndex: number, rowIndent: number): string;
|
|
5
|
+
/** Expanded-row state class, including the nesting level used by rc-table. */
|
|
6
|
+
export declare function getExpandedRowCompatClass(tableContext: Pick<TableContext, 'compatClass'>, rowIndent: number): string;
|
|
5
7
|
/** 固定列单元格状态类:左右固定 + 边界位置。 */
|
|
6
8
|
export declare function getFixedCellCompatClass(tableContext: TableContext, fixedInfo: FixedOffset | null): string;
|
|
7
9
|
/** 表格根元素状态类:存在固定列 + 横向滚动 ping 状态。 */
|
|
8
|
-
export declare function getRootCompatClass(tableContext: Pick<TableContext, 'compatClass' | 'fixedOffsets' | 'scrollState'>
|
|
10
|
+
export declare function getRootCompatClass(tableContext: Pick<TableContext, 'compatClass' | 'fixedOffsets' | 'scrollState'> & {
|
|
11
|
+
empty?: boolean;
|
|
12
|
+
fixedHeader?: boolean;
|
|
13
|
+
fixedColumn?: boolean;
|
|
14
|
+
horizontalScroll?: boolean;
|
|
15
|
+
layoutFixed?: boolean;
|
|
16
|
+
}): string;
|
|
9
17
|
//# sourceMappingURL=compat.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compat.d.ts","sourceRoot":"","sources":["../../../../../table/src/utils/compat.ts"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AAE3D,uBAAuB;AACvB,wBAAgB,iBAAiB,CAC/B,YAAY,EAAE,YAAY,EAC1B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM,GAChB,MAAM,
|
|
1
|
+
{"version":3,"file":"compat.d.ts","sourceRoot":"","sources":["../../../../../table/src/utils/compat.ts"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AAE3D,uBAAuB;AACvB,wBAAgB,iBAAiB,CAC/B,YAAY,EAAE,YAAY,EAC1B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM,GAChB,MAAM,CAcR;AAED,8EAA8E;AAC9E,wBAAgB,yBAAyB,CACvC,YAAY,EAAE,IAAI,CAAC,YAAY,EAAE,aAAa,CAAC,EAC/C,SAAS,EAAE,MAAM,GAChB,MAAM,CAER;AAED,6BAA6B;AAC7B,wBAAgB,uBAAuB,CACrC,YAAY,EAAE,YAAY,EAC1B,SAAS,EAAE,WAAW,GAAG,IAAI,GAC5B,MAAM,CAqBR;AAED,qCAAqC;AACrC,wBAAgB,kBAAkB,CAChC,YAAY,EAAE,IAAI,CAAC,YAAY,EAAE,aAAa,GAAG,cAAc,GAAG,aAAa,CAAC,GAAG;IACjF,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,GACA,MAAM,CAgCR"}
|
|
@@ -1,28 +1,32 @@
|
|
|
1
|
-
function
|
|
2
|
-
const
|
|
3
|
-
if (!
|
|
4
|
-
const f = [];
|
|
5
|
-
return i.getSelectionState?.(s, t).checked && f.push(l("row-selected")), i.isTreeData?.value && f.push(l(`row-level-${e}`)), f.join(" ");
|
|
6
|
-
}
|
|
7
|
-
function c(i, s) {
|
|
8
|
-
const t = i.compatClass;
|
|
9
|
-
if (!t || !s) return "";
|
|
1
|
+
function a(t, s, i, l) {
|
|
2
|
+
const f = t.compatClass;
|
|
3
|
+
if (!f) return "";
|
|
10
4
|
const e = [];
|
|
11
|
-
return
|
|
5
|
+
return t.getSelectionState?.(s, i).checked && e.push(f("row-selected")), e.push(f(`row-level-${l}`)), e.join(" ");
|
|
6
|
+
}
|
|
7
|
+
function c(t, s) {
|
|
8
|
+
return t.compatClass?.(`expanded-row-level-${s + 1}`) ?? "";
|
|
9
|
+
}
|
|
10
|
+
function u(t, s) {
|
|
11
|
+
const i = t.compatClass;
|
|
12
|
+
if (!i || !s) return "";
|
|
13
|
+
const l = [];
|
|
14
|
+
return s.left !== void 0 && (l.push(i("cell-fix-left")), s.left === 0 && l.push(i("cell-fix-left-first")), s.isLastLeft && l.push(i("cell-fix-left-last"))), s.right !== void 0 && (l.push(i("cell-fix-right")), s.isFirstRight && l.push(i("cell-fix-right-first")), s.right === 0 && l.push(i("cell-fix-right-last"))), t.sticky?.value && l.push(i("cell-fix-sticky")), l.join(" ");
|
|
12
15
|
}
|
|
13
|
-
function o(
|
|
14
|
-
const s =
|
|
16
|
+
function o(t) {
|
|
17
|
+
const s = t.compatClass;
|
|
15
18
|
if (!s) return "";
|
|
16
|
-
const
|
|
17
|
-
let
|
|
18
|
-
if (
|
|
19
|
-
for (const
|
|
20
|
-
if (
|
|
19
|
+
const i = [], l = t.fixedOffsets?.value;
|
|
20
|
+
let f = !1, e = !1;
|
|
21
|
+
if (l) {
|
|
22
|
+
for (const r of l.values())
|
|
23
|
+
if (r.left !== void 0 && (f = !0), r.right !== void 0 && (e = !0), f && e) break;
|
|
21
24
|
}
|
|
22
|
-
return
|
|
25
|
+
return f && i.push(s("has-fix-left")), e && i.push(s("has-fix-right")), t.fixedColumn && i.push(s("fixed-column")), t.empty && i.push(s("empty")), t.fixedHeader && i.push(s("fixed-header")), t.horizontalScroll && i.push(s("scroll-horizontal")), t.layoutFixed && i.push(s("layout-fixed")), t.scrollState && (t.scrollState.atStart.value || i.push(s("ping-left")), t.scrollState.atEnd.value || i.push(s("ping-right"))), i.join(" ");
|
|
23
26
|
}
|
|
24
27
|
export {
|
|
25
|
-
c as
|
|
28
|
+
c as getExpandedRowCompatClass,
|
|
29
|
+
u as getFixedCellCompatClass,
|
|
26
30
|
o as getRootCompatClass,
|
|
27
|
-
|
|
31
|
+
a as getRowCompatClass
|
|
28
32
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"antdv-table.d.ts","sourceRoot":"","sources":["../../../../../theme/src/compat/antdv-table.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAE3D,YAAY,EAAE,iBAAiB,EAAE,CAAA;AAEjC,eAAO,MAAM,uBAAuB,EAAE,
|
|
1
|
+
{"version":3,"file":"antdv-table.d.ts","sourceRoot":"","sources":["../../../../../theme/src/compat/antdv-table.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAE3D,YAAY,EAAE,iBAAiB,EAAE,CAAA;AAEjC,eAAO,MAAM,uBAAuB,EAAE,iBAqDrC,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const e = {
|
|
2
2
|
slots: {
|
|
3
3
|
root: "ant-table-wrapper ant-table",
|
|
4
4
|
wrapper: "ant-table-container ant-table-content",
|
|
@@ -8,15 +8,21 @@ const t = {
|
|
|
8
8
|
th: "ant-table-cell",
|
|
9
9
|
td: "ant-table-cell",
|
|
10
10
|
empty: "ant-table-placeholder",
|
|
11
|
+
summaryCell: "ant-table-cell",
|
|
11
12
|
thSortable: "ant-table-column-has-sorters",
|
|
12
13
|
thSorted: "ant-table-column-sort",
|
|
13
14
|
tdSorted: "ant-table-column-sort",
|
|
14
15
|
sortButton: "ant-table-column-sorter",
|
|
16
|
+
sortIconDown: "ant-table-column-sorter-down",
|
|
15
17
|
sortAreaWrapper: "ant-table-column-sorters",
|
|
16
18
|
sortAreaTitle: "ant-table-column-title",
|
|
17
19
|
filterIcon: "ant-table-filter-trigger",
|
|
18
20
|
filterDropdown: "ant-table-filter-dropdown",
|
|
19
21
|
filterDropdownActions: "ant-table-filter-dropdown-btns",
|
|
22
|
+
filterDropdownSearch: "ant-table-filter-dropdown-search",
|
|
23
|
+
filterDropdownSearchInput: "ant-table-filter-dropdown-search-input",
|
|
24
|
+
filterDropdownTreeWrapper: "ant-table-filter-dropdown-tree",
|
|
25
|
+
filterDropdownTreeCheckAll: "ant-table-filter-dropdown-checkall",
|
|
20
26
|
title: "ant-table-title",
|
|
21
27
|
footer: "ant-table-footer",
|
|
22
28
|
summary: "ant-table-summary",
|
|
@@ -24,13 +30,13 @@ const t = {
|
|
|
24
30
|
bodyWrapper: "ant-table-body",
|
|
25
31
|
expandedRow: "ant-table-expanded-row",
|
|
26
32
|
expandIcon: "ant-table-row-expand-icon",
|
|
27
|
-
expandIconExpanded: "ant-table-row-expanded",
|
|
28
|
-
expandIconCollapsed: "ant-table-row-collapsed",
|
|
29
|
-
expandIconSpaced: "ant-table-row-spaced",
|
|
33
|
+
expandIconExpanded: "ant-table-row-expand-icon-expanded ant-table-row-expanded",
|
|
34
|
+
expandIconCollapsed: "ant-table-row-expand-icon-collapsed ant-table-row-collapsed",
|
|
35
|
+
expandIconSpaced: "ant-table-row-expand-icon-spaced ant-table-row-spaced",
|
|
30
36
|
treeExpandIcon: "ant-table-row-expand-icon",
|
|
31
|
-
treeExpandIconExpanded: "ant-table-row-expanded",
|
|
32
|
-
treeExpandIconCollapsed: "ant-table-row-collapsed",
|
|
33
|
-
treeExpandIconSpaced: "ant-table-row-spaced",
|
|
37
|
+
treeExpandIconExpanded: "ant-table-row-expand-icon-expanded ant-table-row-expanded",
|
|
38
|
+
treeExpandIconCollapsed: "ant-table-row-expand-icon-collapsed ant-table-row-collapsed",
|
|
39
|
+
treeExpandIconSpaced: "ant-table-row-expand-icon-spaced ant-table-row-spaced",
|
|
34
40
|
resizeHandle: "ant-table-resize-handle",
|
|
35
41
|
selectionDropdown: "ant-table-selection",
|
|
36
42
|
selectionExtra: "ant-table-selection-extra",
|
|
@@ -47,5 +53,5 @@ const t = {
|
|
|
47
53
|
}
|
|
48
54
|
};
|
|
49
55
|
export {
|
|
50
|
-
|
|
56
|
+
e as antdvTableCompatClasses
|
|
51
57
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vtable-guild/vtable-guild",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.1",
|
|
4
4
|
"description": "Vue 3 table component with built-in virtual scrolling and switchable ant-design-vue / element-plus theme presets, powered by tailwind-variants",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|