@vtable-guild/vtable-guild 2.9.0-alpha.5 → 2.9.0-alpha.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.
- package/css/style.css +40 -9
- package/css/tailwind3-utilities.css +40 -9
- package/dist/core/src/utils/types.d.ts +2 -0
- package/dist/core/src/utils/types.d.ts.map +1 -1
- package/dist/css/style.css +40 -9
- package/dist/css/tailwind3-utilities.css +40 -9
- package/dist/index.full.mjs +4426 -4335
- package/dist/table/src/components/ExpandIcon.d.ts.map +1 -1
- package/dist/table/src/components/ExpandIcon.mjs +11 -11
- package/dist/table/src/components/ExpandIcon.test.d.ts +2 -0
- package/dist/table/src/components/ExpandIcon.test.d.ts.map +1 -0
- package/dist/table/src/components/SelectionDropdown.d.ts +10 -0
- package/dist/table/src/components/SelectionDropdown.d.ts.map +1 -1
- package/dist/table/src/components/SelectionDropdown.mjs +65 -25
- package/dist/table/src/components/SelectionDropdown.test.d.ts +2 -0
- package/dist/table/src/components/SelectionDropdown.test.d.ts.map +1 -0
- package/dist/table/src/components/TableColumnSettings.d.ts.map +1 -1
- package/dist/table/src/components/TableColumnSettings.mjs +193 -161
- package/dist/table/src/components/TableHeaderCell.d.ts.map +1 -1
- package/dist/table/src/components/TableHeaderCell.mjs +235 -226
- package/dist/table/src/components/TableSelectionAlert.d.ts.map +1 -1
- package/dist/table/src/components/TableSelectionAlert.mjs +2 -2
- package/dist/table/src/utils/columnSettings.d.ts +7 -1
- package/dist/table/src/utils/columnSettings.d.ts.map +1 -1
- package/dist/table/src/utils/columnSettings.mjs +68 -66
- package/dist/theme/src/column-settings.d.ts +36 -20
- package/dist/theme/src/column-settings.d.ts.map +1 -1
- package/dist/theme/src/column-settings.mjs +11 -7
- package/dist/theme/src/presets/antdv/table-locale.d.ts +2 -0
- package/dist/theme/src/presets/antdv/table-locale.d.ts.map +1 -1
- package/dist/theme/src/presets/antdv/table-locale.mjs +4 -2
- package/dist/theme/src/presets/element-plus/table-locale.d.ts +2 -0
- package/dist/theme/src/presets/element-plus/table-locale.d.ts.map +1 -1
- package/dist/theme/src/presets/element-plus/table-locale.mjs +4 -2
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableSelectionAlert.d.ts","sourceRoot":"","sources":["../../../../../table/src/components/TableSelectionAlert.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqC,KAAK,QAAQ,EAAE,KAAK,SAAS,EAAE,MAAM,KAAK,CAAA;AAOtF,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAA;AAC1C,OAAO,KAAK,EACV,wBAAwB,EAExB,wBAAwB,EACzB,MAAM,0BAA0B,CAAA;AAEjC,KAAK,GAAG,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;;;cAKI,QAAQ,CAAC,SAAS,GAAG,EAAE,CAAC;;;kBACnC,QAAQ,CAAC,SAAS,GAAG,EAAE,CAAC;;;;;;;;YAK7B,QAAQ,CAAC,wBAAwB,CAAC,QAAQ,CAAC,CAAC;QAChD,QAAQ,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC;;;sCAIpB,GAAG,EAAE;8BACb,SAAS,GAAG,EAAE,iBAAiB,SAAS,GAAG,EAAE;;;cAZrC,QAAQ,CAAC,SAAS,GAAG,EAAE,CAAC;;;kBACnC,QAAQ,CAAC,SAAS,GAAG,EAAE,CAAC;;;;;;;;YAK7B,QAAQ,CAAC,wBAAwB,CAAC,QAAQ,CAAC,CAAC;QAChD,QAAQ,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC;;;;;;;;;;;AAV1D,
|
|
1
|
+
{"version":3,"file":"TableSelectionAlert.d.ts","sourceRoot":"","sources":["../../../../../table/src/components/TableSelectionAlert.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqC,KAAK,QAAQ,EAAE,KAAK,SAAS,EAAE,MAAM,KAAK,CAAA;AAOtF,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAA;AAC1C,OAAO,KAAK,EACV,wBAAwB,EAExB,wBAAwB,EACzB,MAAM,0BAA0B,CAAA;AAEjC,KAAK,GAAG,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;;;cAKI,QAAQ,CAAC,SAAS,GAAG,EAAE,CAAC;;;kBACnC,QAAQ,CAAC,SAAS,GAAG,EAAE,CAAC;;;;;;;;YAK7B,QAAQ,CAAC,wBAAwB,CAAC,QAAQ,CAAC,CAAC;QAChD,QAAQ,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC;;;sCAIpB,GAAG,EAAE;8BACb,SAAS,GAAG,EAAE,iBAAiB,SAAS,GAAG,EAAE;;;cAZrC,QAAQ,CAAC,SAAS,GAAG,EAAE,CAAC;;;kBACnC,QAAQ,CAAC,SAAS,GAAG,EAAE,CAAC;;;;;;;;YAK7B,QAAQ,CAAC,wBAAwB,CAAC,QAAQ,CAAC,CAAC;QAChD,QAAQ,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC;;;;;;;;;;;AAV1D,wBAyFE"}
|
|
@@ -63,10 +63,10 @@ const B = /* @__PURE__ */ y({
|
|
|
63
63
|
"data-vtg-preset": r.value,
|
|
64
64
|
class: l.root()
|
|
65
65
|
}, [o("div", {
|
|
66
|
-
class: l.info()
|
|
67
|
-
}, [a.info ? a.info(c) : o("span", {
|
|
68
66
|
role: "status",
|
|
69
67
|
"aria-live": "polite",
|
|
68
|
+
class: l.info()
|
|
69
|
+
}, [a.info ? a.info(c) : o("span", {
|
|
70
70
|
class: l.text()
|
|
71
71
|
}, [d.value.selected.replace("{count}", String(t))])]), (e.showClear || a.actions) && o("div", {
|
|
72
72
|
class: l.option()
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { DropPosition } from '../composables/useRowDragSort';
|
|
1
2
|
import { ColumnsType, ColumnType, ColumnGroupType } from '../types';
|
|
2
3
|
export interface SettingsEntry<T extends object> {
|
|
3
4
|
id: string;
|
|
@@ -13,7 +14,12 @@ export declare function configurableEntries<T extends object>(columns: ColumnsTy
|
|
|
13
14
|
export declare function columnFixedRegion<T extends object>(column: ColumnType<T> | ColumnGroupType<T>): ColumnFixed | 'mixed';
|
|
14
15
|
export declare function canSetColumnFixed<T extends object>(entry: SettingsEntry<T>): boolean;
|
|
15
16
|
export declare function setColumnFixed<T extends object>(columns: ColumnsType<T>, id: string, fixed: ColumnFixed): ColumnsType<T>;
|
|
16
|
-
export declare function moveSettingColumn<T extends object>(columns: ColumnsType<T>, sourceId: string, targetId: string
|
|
17
|
+
export declare function moveSettingColumn<T extends object>(columns: ColumnsType<T>, sourceId: string, targetId: string,
|
|
18
|
+
/**
|
|
19
|
+
* 显式插入位置;缺省时占据目标原槽位(顺序恢复等场景依赖该语义)。
|
|
20
|
+
* 位置按移除源后的数组计算:before 取目标之前,after 取目标之后。
|
|
21
|
+
*/
|
|
22
|
+
position?: DropPosition): ColumnsType<T>;
|
|
17
23
|
/** Keys keep defaults attached to the same column after immutable updates or reordering. */
|
|
18
24
|
export declare function settingsEntries<T extends object>(columns: ColumnsType<T>, parent?: string): SettingsEntry<T>[];
|
|
19
25
|
/** Clone only changed branches; preserve renderers, sort/filter configuration and sentinels. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"columnSettings.d.ts","sourceRoot":"","sources":["../../../../../table/src/utils/columnSettings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAExE,MAAM,WAAW,aAAa,CAAC,CAAC,SAAS,MAAM;IAC7C,EAAE,EAAE,MAAM,CAAA;IACV,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,eAAe,CAAC,CAAC,CAAC,CAAA;IAC1C,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,EAAE,CAAA;CAC7B;AAED,MAAM,MAAM,mBAAmB,GAAG,UAAU,GAAG,OAAO,GAAG,OAAO,CAAA;AAChE,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAA;AAEtD,wBAAgB,uBAAuB,CAAC,CAAC,SAAS,MAAM,EACtD,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,eAAe,CAAC,CAAC,CAAC,EAC1C,MAAM,EAAE,mBAAmB,GAC1B,OAAO,CAKT;AAED,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,MAAM,EAAE,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,OAAO,CAErF;AAED,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,MAAM,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,EAAE,CAUjG;AAED,4FAA4F;AAC5F,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,MAAM,EAChD,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,eAAe,CAAC,CAAC,CAAC,GACzC,WAAW,GAAG,OAAO,CAMvB;AAYD,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,MAAM,EAAE,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,OAAO,CAEpF;AAkBD,wBAAgB,cAAc,CAAC,CAAC,SAAS,MAAM,EAC7C,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,EACvB,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,WAAW,GACjB,WAAW,CAAC,CAAC,CAAC,CAiChB;AAED,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,MAAM,EAChD,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,EACvB,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"columnSettings.d.ts","sourceRoot":"","sources":["../../../../../table/src/utils/columnSettings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AACjE,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAExE,MAAM,WAAW,aAAa,CAAC,CAAC,SAAS,MAAM;IAC7C,EAAE,EAAE,MAAM,CAAA;IACV,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,eAAe,CAAC,CAAC,CAAC,CAAA;IAC1C,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,EAAE,CAAA;CAC7B;AAED,MAAM,MAAM,mBAAmB,GAAG,UAAU,GAAG,OAAO,GAAG,OAAO,CAAA;AAChE,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAA;AAEtD,wBAAgB,uBAAuB,CAAC,CAAC,SAAS,MAAM,EACtD,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,eAAe,CAAC,CAAC,CAAC,EAC1C,MAAM,EAAE,mBAAmB,GAC1B,OAAO,CAKT;AAED,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,MAAM,EAAE,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,OAAO,CAErF;AAED,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,MAAM,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,EAAE,CAUjG;AAED,4FAA4F;AAC5F,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,MAAM,EAChD,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,eAAe,CAAC,CAAC,CAAC,GACzC,WAAW,GAAG,OAAO,CAMvB;AAYD,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,MAAM,EAAE,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,OAAO,CAEpF;AAkBD,wBAAgB,cAAc,CAAC,CAAC,SAAS,MAAM,EAC7C,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,EACvB,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,WAAW,GACjB,WAAW,CAAC,CAAC,CAAC,CAiChB;AAED,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,MAAM,EAChD,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,EACvB,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM;AAChB;;;GAGG;AACH,QAAQ,CAAC,EAAE,YAAY,GACtB,WAAW,CAAC,CAAC,CAAC,CAiChB;AAED,4FAA4F;AAC5F,wBAAgB,eAAe,CAAC,CAAC,SAAS,MAAM,EAC9C,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,EACvB,MAAM,SAAK,GACV,aAAa,CAAC,CAAC,CAAC,EAAE,CAkBpB;AAED,gGAAgG;AAChG,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,MAAM,EAClD,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,EACvC,MAAM,EAAE,WAAW,CAAC,MAAM,EAAE,OAAO,GAAG,SAAS,CAAC,EAChD,MAAM,CAAC,EAAE,MAAM,GACd,eAAe,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAA;AACjC,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,MAAM,EAClD,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,EACvB,MAAM,EAAE,WAAW,CAAC,MAAM,EAAE,OAAO,GAAG,SAAS,CAAC,EAChD,MAAM,CAAC,EAAE,MAAM,GACd,WAAW,CAAC,CAAC,CAAC,CAAA"}
|
|
@@ -1,107 +1,109 @@
|
|
|
1
|
-
function
|
|
1
|
+
function u(e, r) {
|
|
2
2
|
return e.disable === !0 || typeof e.disable == "object" && e.disable[r] === !0;
|
|
3
3
|
}
|
|
4
|
-
function
|
|
4
|
+
function I(e) {
|
|
5
5
|
return x(e.column, "checkbox");
|
|
6
6
|
}
|
|
7
|
-
function
|
|
8
|
-
function r(
|
|
9
|
-
return
|
|
10
|
-
...
|
|
11
|
-
children: r(
|
|
7
|
+
function v(e) {
|
|
8
|
+
function r(n) {
|
|
9
|
+
return n.filter((s) => !s.column.hideInSetting).map((s) => ({
|
|
10
|
+
...s,
|
|
11
|
+
children: r(s.children)
|
|
12
12
|
}));
|
|
13
13
|
}
|
|
14
14
|
return r(y(e));
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function b(e) {
|
|
17
17
|
if ("children" in e && e.children.length) {
|
|
18
|
-
const r = e.children.map(
|
|
19
|
-
return r.every((
|
|
18
|
+
const r = e.children.map(b);
|
|
19
|
+
return r.every((n) => n === r[0]) ? r[0] : "mixed";
|
|
20
20
|
}
|
|
21
21
|
return e.fixed === !0 ? "left" : e.fixed || void 0;
|
|
22
22
|
}
|
|
23
23
|
function x(e, r) {
|
|
24
|
-
return
|
|
24
|
+
return u(e, r) || "children" in e && e.children.some((n) => x(n, r));
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function k(e) {
|
|
27
27
|
return !x(e.column, "fixed");
|
|
28
28
|
}
|
|
29
|
-
function
|
|
30
|
-
if (e.filter((
|
|
31
|
-
(
|
|
29
|
+
function C(e, r) {
|
|
30
|
+
if (e.filter((f) => typeof f != "symbol").some(
|
|
31
|
+
(f, i) => u(f, "order") && r[i] !== f
|
|
32
32
|
))
|
|
33
33
|
return e;
|
|
34
|
-
let
|
|
35
|
-
return e.map((
|
|
34
|
+
let s = 0;
|
|
35
|
+
return e.map((f) => typeof f == "symbol" ? f : r[s++]);
|
|
36
36
|
}
|
|
37
|
-
function
|
|
38
|
-
const
|
|
39
|
-
if (!
|
|
40
|
-
function
|
|
41
|
-
return "children" in
|
|
37
|
+
function F(e, r, n) {
|
|
38
|
+
const s = y(e).find((t) => t.id === r);
|
|
39
|
+
if (!s || !k(s)) return e;
|
|
40
|
+
function f(t) {
|
|
41
|
+
return "children" in t ? { ...t, fixed: n, children: t.children.map(f) } : t.fixed === n ? t : { ...t, fixed: n };
|
|
42
42
|
}
|
|
43
|
-
const
|
|
44
|
-
if (
|
|
45
|
-
const a = (
|
|
46
|
-
const
|
|
47
|
-
return
|
|
43
|
+
const i = f(s.column), d = e.filter((t) => typeof t != "symbol").map((t) => t === s.column ? i : t);
|
|
44
|
+
if (d.some((t) => b(t) === "mixed")) return e;
|
|
45
|
+
const a = (t) => {
|
|
46
|
+
const c = b(t);
|
|
47
|
+
return c === "left" ? -1 : c === "right" ? 1 : 0;
|
|
48
48
|
};
|
|
49
|
-
|
|
50
|
-
const h = e.filter((
|
|
49
|
+
d.sort((t, c) => a(t) - a(c));
|
|
50
|
+
const h = e.filter((t) => typeof t != "symbol");
|
|
51
51
|
if (h.some(
|
|
52
|
-
(
|
|
53
|
-
) || x(
|
|
52
|
+
(t, c) => x(t, "order") && d[c] !== t && t !== s.column
|
|
53
|
+
) || x(s.column, "order") && d.indexOf(i) !== h.indexOf(s.column))
|
|
54
54
|
return e;
|
|
55
55
|
let p = 0;
|
|
56
|
-
return e.map((
|
|
56
|
+
return e.map((t) => typeof t == "symbol" ? t : d[p++]);
|
|
57
57
|
}
|
|
58
|
-
function
|
|
59
|
-
const
|
|
60
|
-
if (
|
|
61
|
-
const
|
|
62
|
-
if (
|
|
58
|
+
function M(e, r, n, s) {
|
|
59
|
+
const f = y(e), i = f.findIndex((o) => o.id === r), d = f.findIndex((o) => o.id === n);
|
|
60
|
+
if (i < 0 || d < 0 || i === d) return e;
|
|
61
|
+
const a = f[i], h = f[d], p = b(a.column);
|
|
62
|
+
if (p === "mixed" || p !== b(h.column) || f.slice(Math.min(i, d), Math.max(i, d) + 1).some((o) => x(o.column, "order")))
|
|
63
63
|
return e;
|
|
64
|
-
const
|
|
65
|
-
|
|
66
|
-
const
|
|
67
|
-
|
|
64
|
+
const t = f.map((o) => o.column);
|
|
65
|
+
t.splice(i, 1);
|
|
66
|
+
const c = s === "before" ? i < d ? d - 1 : d : s === "after" ? i < d ? d : d + 1 : d;
|
|
67
|
+
t.splice(c, 0, a.column);
|
|
68
|
+
const g = t.map(b).map((o) => o === "left" ? -1 : o === "right" ? 1 : 0);
|
|
69
|
+
return g.some((o, l) => l > 0 && o < g[l - 1]) ? e : C(e, t);
|
|
68
70
|
}
|
|
69
71
|
function y(e, r = "") {
|
|
70
|
-
return e.flatMap((
|
|
71
|
-
if (typeof
|
|
72
|
-
const
|
|
72
|
+
return e.flatMap((n, s) => {
|
|
73
|
+
if (typeof n == "symbol") return [];
|
|
74
|
+
const f = n.key !== void 0 ? ["key", n.key] : "dataIndex" in n && n.dataIndex !== void 0 ? ["dataIndex", n.dataIndex] : ["index", s], i = `${r}/${JSON.stringify(f)}`;
|
|
73
75
|
return [
|
|
74
76
|
{
|
|
75
|
-
id:
|
|
76
|
-
column:
|
|
77
|
-
children: "children" in
|
|
77
|
+
id: i,
|
|
78
|
+
column: n,
|
|
79
|
+
children: "children" in n ? y(n.children, i) : []
|
|
78
80
|
}
|
|
79
81
|
];
|
|
80
82
|
});
|
|
81
83
|
}
|
|
82
|
-
function
|
|
83
|
-
const
|
|
84
|
-
let
|
|
85
|
-
return e.map((
|
|
86
|
-
if (typeof
|
|
87
|
-
const
|
|
88
|
-
if (
|
|
89
|
-
let a =
|
|
90
|
-
if (r.has(
|
|
91
|
-
const h =
|
|
92
|
-
h.some((p,
|
|
84
|
+
function S(e, r, n = "") {
|
|
85
|
+
const s = y(e, n);
|
|
86
|
+
let f = 0;
|
|
87
|
+
return e.map((i) => {
|
|
88
|
+
if (typeof i == "symbol") return i;
|
|
89
|
+
const d = s[f++];
|
|
90
|
+
if (i.hideInSetting || u(i, "checkbox")) return i;
|
|
91
|
+
let a = i;
|
|
92
|
+
if (r.has(d.id) && !I(d) && i.visible !== r.get(d.id) && (a = { ...i, visible: r.get(d.id) }), "children" in i) {
|
|
93
|
+
const h = S(i.children, r, d.id);
|
|
94
|
+
h.some((p, t) => p !== i.children[t]) && (a = { ...a, children: h });
|
|
93
95
|
}
|
|
94
96
|
return a;
|
|
95
97
|
});
|
|
96
98
|
}
|
|
97
99
|
export {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
100
|
+
k as canSetColumnFixed,
|
|
101
|
+
b as columnFixedRegion,
|
|
102
|
+
v as configurableEntries,
|
|
103
|
+
u as isColumnSettingDisabled,
|
|
104
|
+
I as isVisibilityLocked,
|
|
105
|
+
M as moveSettingColumn,
|
|
106
|
+
F as setColumnFixed,
|
|
107
|
+
S as setColumnVisibility,
|
|
106
108
|
y as settingsEntries
|
|
107
109
|
};
|
|
@@ -8,14 +8,18 @@ export declare const columnSettingsTheme: {
|
|
|
8
8
|
readonly popup: "[--vtg-table-popup-panel-radius:var(--vtg-column-settings-radius)] [--vtg-table-popup-panel-shadow:var(--vtg-column-settings-shadow)] flex flex-col [--vtg-table-popup-width:var(--vtg-column-settings-width)] max-w-[calc(100vw-16px)]";
|
|
9
9
|
readonly densityPopup: "[--vtg-table-popup-panel-radius:var(--vtg-column-settings-radius)] [--vtg-table-popup-panel-shadow:var(--vtg-column-settings-shadow)] min-w-[80px]";
|
|
10
10
|
readonly density: "block w-full border-0 rounded-[var(--vtg-btn-border-radius-sm)] px-3 py-[5px] text-left text-[length:var(--vtg-table-font-size)] font-normal leading-[var(--vtg-table-line-height)] bg-transparent cursor-pointer hover:bg-[color:var(--color-control-item-hover-bg)] aria-checked:bg-[color:var(--color-control-item-active-bg)] aria-checked:text-[color:var(--color-primary)] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[color:var(--color-primary)]";
|
|
11
|
-
readonly header: "flex items-center justify-between gap-3 h-8 mb-2";
|
|
11
|
+
readonly header: "flex items-center justify-between gap-3 h-8 mb-2 px-2";
|
|
12
12
|
readonly heading: "group inline-flex items-center gap-2 cursor-pointer font-normal";
|
|
13
13
|
readonly reset: "shrink-0 border-0 bg-transparent p-0 text-[color:var(--color-primary)] text-[length:var(--vtg-table-font-size)] font-semibold cursor-pointer hover:text-[color:var(--color-primary-hover)] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[color:var(--color-primary)]";
|
|
14
|
-
readonly columns: "m-0 max-h-[280px] overflow-auto list-none px-
|
|
14
|
+
readonly columns: "m-0 max-h-[280px] overflow-auto list-none px-2 py-2";
|
|
15
15
|
readonly children: "m-0 list-none pl-6";
|
|
16
16
|
readonly item: "m-0 p-0 pb-1";
|
|
17
|
-
readonly row: "flex min-w-0 items-center gap-1";
|
|
18
|
-
readonly
|
|
17
|
+
readonly row: "relative flex min-w-0 items-center gap-1 select-none [&[draggable=true]]:cursor-grab [&[draggable=true]]:active:cursor-grabbing [&[draggable=false]]:cursor-not-allowed";
|
|
18
|
+
readonly rowDragging: "rounded-[var(--vtg-btn-border-radius-sm)] bg-[color:var(--color-control-item-active-bg)] ring-1 ring-inset ring-[color:var(--color-primary)]";
|
|
19
|
+
readonly rowDropAbove: "pointer-events-none absolute right-0 top-0 z-[1] h-[2px] rounded-[1px] left-[calc(var(--vtg-column-settings-icon-size)+var(--vtg-checkbox-size)+16px)] bg-[color:var(--vtg-table-row-drop-indicator-color)]";
|
|
20
|
+
readonly rowDropBelow: "pointer-events-none absolute right-0 bottom-0 z-[1] h-[2px] rounded-[1px] left-[calc(var(--vtg-column-settings-icon-size)+var(--vtg-checkbox-size)+16px)] bg-[color:var(--vtg-table-row-drop-indicator-color)]";
|
|
21
|
+
readonly rowDropDot: "pointer-events-none absolute start-[-6px] top-[-3px] h-2 w-2 rounded-full border-2 border-[color:var(--vtg-table-row-drop-indicator-color)] bg-transparent";
|
|
22
|
+
readonly dragHandle: "inline-flex w-[var(--vtg-column-settings-icon-size)] shrink-0 items-center justify-center mr-2 select-none text-[color:var(--color-muted)]";
|
|
19
23
|
readonly pinActions: "inline-flex shrink-0 items-center gap-0.5";
|
|
20
24
|
readonly pinAction: "inline-flex items-center justify-center h-5 w-5 p-0 border-0 rounded-[var(--vtg-btn-border-radius-sm)] bg-transparent text-[color:var(--color-muted)] cursor-pointer hover:text-[color:var(--color-primary)] hover:bg-[color:var(--color-control-item-hover-bg)] aria-pressed:text-[color:var(--color-primary)] disabled:cursor-not-allowed disabled:text-[color:var(--color-text-disabled)] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[color:var(--color-primary)]";
|
|
21
25
|
readonly pinIcon: "h-[var(--vtg-column-settings-pin-icon-size,14px)] w-[var(--vtg-column-settings-pin-icon-size,14px)]";
|
|
@@ -28,7 +32,7 @@ export declare const columnSettingsTheme: {
|
|
|
28
32
|
readonly checkMark: `${string} peer-disabled:border-[color:var(--color-text-disabled)]`;
|
|
29
33
|
readonly indeterminateMark: string;
|
|
30
34
|
readonly labelText: "min-w-0 flex-1 truncate px-1";
|
|
31
|
-
readonly empty: "py-2 text-[color:var(--color-muted)]";
|
|
35
|
+
readonly empty: "px-2 py-2 text-[color:var(--color-muted)]";
|
|
32
36
|
};
|
|
33
37
|
};
|
|
34
38
|
export declare const elementPlusColumnSettingsTheme: {
|
|
@@ -42,14 +46,18 @@ export declare const elementPlusColumnSettingsTheme: {
|
|
|
42
46
|
readonly popup: "[--vtg-table-popup-panel-radius:var(--vtg-column-settings-radius)] [--vtg-table-popup-panel-shadow:var(--vtg-column-settings-shadow)] flex flex-col [--vtg-table-popup-width:var(--vtg-column-settings-width)] max-w-[calc(100vw-16px)]";
|
|
43
47
|
readonly densityPopup: "[--vtg-table-popup-panel-radius:var(--vtg-column-settings-radius)] [--vtg-table-popup-panel-shadow:var(--vtg-column-settings-shadow)] min-w-[80px]";
|
|
44
48
|
readonly density: "block w-full border-0 rounded-[var(--vtg-btn-border-radius-sm)] px-3 py-[5px] text-left text-[length:var(--vtg-table-font-size)] font-normal leading-[var(--vtg-table-line-height)] bg-transparent cursor-pointer hover:bg-[color:var(--color-control-item-hover-bg)] aria-checked:bg-[color:var(--color-control-item-active-bg)] aria-checked:text-[color:var(--color-primary)] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[color:var(--color-primary)]";
|
|
45
|
-
readonly header: "flex items-center justify-between gap-3 h-8 mb-2";
|
|
49
|
+
readonly header: "flex items-center justify-between gap-3 h-8 mb-2 px-2";
|
|
46
50
|
readonly heading: "group inline-flex items-center gap-2 cursor-pointer font-normal";
|
|
47
51
|
readonly reset: "shrink-0 border-0 bg-transparent p-0 text-[color:var(--color-primary)] text-[length:var(--vtg-table-font-size)] font-semibold cursor-pointer hover:text-[color:var(--color-primary-hover)] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[color:var(--color-primary)]";
|
|
48
|
-
readonly columns: "m-0 max-h-[280px] overflow-auto list-none px-
|
|
52
|
+
readonly columns: "m-0 max-h-[280px] overflow-auto list-none px-2 py-2";
|
|
49
53
|
readonly children: "m-0 list-none pl-6";
|
|
50
54
|
readonly item: "m-0 p-0 pb-1";
|
|
51
|
-
readonly row: "flex min-w-0 items-center gap-1";
|
|
52
|
-
readonly
|
|
55
|
+
readonly row: "relative flex min-w-0 items-center gap-1 select-none [&[draggable=true]]:cursor-grab [&[draggable=true]]:active:cursor-grabbing [&[draggable=false]]:cursor-not-allowed";
|
|
56
|
+
readonly rowDragging: "rounded-[var(--vtg-btn-border-radius-sm)] bg-[color:var(--color-control-item-active-bg)] ring-1 ring-inset ring-[color:var(--color-primary)]";
|
|
57
|
+
readonly rowDropAbove: "pointer-events-none absolute right-0 top-0 z-[1] h-[2px] rounded-[1px] left-[calc(var(--vtg-column-settings-icon-size)+var(--vtg-checkbox-size)+16px)] bg-[color:var(--vtg-table-row-drop-indicator-color)]";
|
|
58
|
+
readonly rowDropBelow: "pointer-events-none absolute right-0 bottom-0 z-[1] h-[2px] rounded-[1px] left-[calc(var(--vtg-column-settings-icon-size)+var(--vtg-checkbox-size)+16px)] bg-[color:var(--vtg-table-row-drop-indicator-color)]";
|
|
59
|
+
readonly rowDropDot: "pointer-events-none absolute start-[-6px] top-[-3px] h-2 w-2 rounded-full border-2 border-[color:var(--vtg-table-row-drop-indicator-color)] bg-transparent";
|
|
60
|
+
readonly dragHandle: "inline-flex w-[var(--vtg-column-settings-icon-size)] shrink-0 items-center justify-center mr-2 select-none text-[color:var(--color-muted)]";
|
|
53
61
|
readonly pinActions: "inline-flex shrink-0 items-center gap-0.5";
|
|
54
62
|
readonly pinAction: "inline-flex items-center justify-center h-5 w-5 p-0 border-0 rounded-[var(--vtg-btn-border-radius-sm)] bg-transparent text-[color:var(--color-muted)] cursor-pointer hover:text-[color:var(--color-primary)] hover:bg-[color:var(--color-control-item-hover-bg)] aria-pressed:text-[color:var(--color-primary)] disabled:cursor-not-allowed disabled:text-[color:var(--color-text-disabled)] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[color:var(--color-primary)]";
|
|
55
63
|
readonly pinIcon: "h-[var(--vtg-column-settings-pin-icon-size,14px)] w-[var(--vtg-column-settings-pin-icon-size,14px)]";
|
|
@@ -59,7 +67,7 @@ export declare const elementPlusColumnSettingsTheme: {
|
|
|
59
67
|
readonly label: "group flex min-w-0 flex-1 min-h-6 items-center gap-1 cursor-pointer has-[:disabled]:cursor-not-allowed has-[:disabled]:text-[color:var(--color-text-disabled)]";
|
|
60
68
|
readonly checkboxControl: "relative inline-flex shrink-0 h-[var(--vtg-checkbox-size)] w-[var(--vtg-checkbox-size)]";
|
|
61
69
|
readonly labelText: "min-w-0 flex-1 truncate px-1";
|
|
62
|
-
readonly empty: "py-2 text-[color:var(--color-muted)]";
|
|
70
|
+
readonly empty: "px-2 py-2 text-[color:var(--color-muted)]";
|
|
63
71
|
};
|
|
64
72
|
};
|
|
65
73
|
export type ColumnSettingsThemeConfig = typeof columnSettingsTheme;
|
|
@@ -72,14 +80,18 @@ export declare function resolveColumnSettingsThemePreset(name?: ThemePresetName)
|
|
|
72
80
|
readonly popup: "[--vtg-table-popup-panel-radius:var(--vtg-column-settings-radius)] [--vtg-table-popup-panel-shadow:var(--vtg-column-settings-shadow)] flex flex-col [--vtg-table-popup-width:var(--vtg-column-settings-width)] max-w-[calc(100vw-16px)]";
|
|
73
81
|
readonly densityPopup: "[--vtg-table-popup-panel-radius:var(--vtg-column-settings-radius)] [--vtg-table-popup-panel-shadow:var(--vtg-column-settings-shadow)] min-w-[80px]";
|
|
74
82
|
readonly density: "block w-full border-0 rounded-[var(--vtg-btn-border-radius-sm)] px-3 py-[5px] text-left text-[length:var(--vtg-table-font-size)] font-normal leading-[var(--vtg-table-line-height)] bg-transparent cursor-pointer hover:bg-[color:var(--color-control-item-hover-bg)] aria-checked:bg-[color:var(--color-control-item-active-bg)] aria-checked:text-[color:var(--color-primary)] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[color:var(--color-primary)]";
|
|
75
|
-
readonly header: "flex items-center justify-between gap-3 h-8 mb-2";
|
|
83
|
+
readonly header: "flex items-center justify-between gap-3 h-8 mb-2 px-2";
|
|
76
84
|
readonly heading: "group inline-flex items-center gap-2 cursor-pointer font-normal";
|
|
77
85
|
readonly reset: "shrink-0 border-0 bg-transparent p-0 text-[color:var(--color-primary)] text-[length:var(--vtg-table-font-size)] font-semibold cursor-pointer hover:text-[color:var(--color-primary-hover)] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[color:var(--color-primary)]";
|
|
78
|
-
readonly columns: "m-0 max-h-[280px] overflow-auto list-none px-
|
|
86
|
+
readonly columns: "m-0 max-h-[280px] overflow-auto list-none px-2 py-2";
|
|
79
87
|
readonly children: "m-0 list-none pl-6";
|
|
80
88
|
readonly item: "m-0 p-0 pb-1";
|
|
81
|
-
readonly row: "flex min-w-0 items-center gap-1";
|
|
82
|
-
readonly
|
|
89
|
+
readonly row: "relative flex min-w-0 items-center gap-1 select-none [&[draggable=true]]:cursor-grab [&[draggable=true]]:active:cursor-grabbing [&[draggable=false]]:cursor-not-allowed";
|
|
90
|
+
readonly rowDragging: "rounded-[var(--vtg-btn-border-radius-sm)] bg-[color:var(--color-control-item-active-bg)] ring-1 ring-inset ring-[color:var(--color-primary)]";
|
|
91
|
+
readonly rowDropAbove: "pointer-events-none absolute right-0 top-0 z-[1] h-[2px] rounded-[1px] left-[calc(var(--vtg-column-settings-icon-size)+var(--vtg-checkbox-size)+16px)] bg-[color:var(--vtg-table-row-drop-indicator-color)]";
|
|
92
|
+
readonly rowDropBelow: "pointer-events-none absolute right-0 bottom-0 z-[1] h-[2px] rounded-[1px] left-[calc(var(--vtg-column-settings-icon-size)+var(--vtg-checkbox-size)+16px)] bg-[color:var(--vtg-table-row-drop-indicator-color)]";
|
|
93
|
+
readonly rowDropDot: "pointer-events-none absolute start-[-6px] top-[-3px] h-2 w-2 rounded-full border-2 border-[color:var(--vtg-table-row-drop-indicator-color)] bg-transparent";
|
|
94
|
+
readonly dragHandle: "inline-flex w-[var(--vtg-column-settings-icon-size)] shrink-0 items-center justify-center mr-2 select-none text-[color:var(--color-muted)]";
|
|
83
95
|
readonly pinActions: "inline-flex shrink-0 items-center gap-0.5";
|
|
84
96
|
readonly pinAction: "inline-flex items-center justify-center h-5 w-5 p-0 border-0 rounded-[var(--vtg-btn-border-radius-sm)] bg-transparent text-[color:var(--color-muted)] cursor-pointer hover:text-[color:var(--color-primary)] hover:bg-[color:var(--color-control-item-hover-bg)] aria-pressed:text-[color:var(--color-primary)] disabled:cursor-not-allowed disabled:text-[color:var(--color-text-disabled)] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[color:var(--color-primary)]";
|
|
85
97
|
readonly pinIcon: "h-[var(--vtg-column-settings-pin-icon-size,14px)] w-[var(--vtg-column-settings-pin-icon-size,14px)]";
|
|
@@ -92,7 +104,7 @@ export declare function resolveColumnSettingsThemePreset(name?: ThemePresetName)
|
|
|
92
104
|
readonly checkMark: `${string} peer-disabled:border-[color:var(--color-text-disabled)]`;
|
|
93
105
|
readonly indeterminateMark: string;
|
|
94
106
|
readonly labelText: "min-w-0 flex-1 truncate px-1";
|
|
95
|
-
readonly empty: "py-2 text-[color:var(--color-muted)]";
|
|
107
|
+
readonly empty: "px-2 py-2 text-[color:var(--color-muted)]";
|
|
96
108
|
};
|
|
97
109
|
} | {
|
|
98
110
|
readonly slots: {
|
|
@@ -105,14 +117,18 @@ export declare function resolveColumnSettingsThemePreset(name?: ThemePresetName)
|
|
|
105
117
|
readonly popup: "[--vtg-table-popup-panel-radius:var(--vtg-column-settings-radius)] [--vtg-table-popup-panel-shadow:var(--vtg-column-settings-shadow)] flex flex-col [--vtg-table-popup-width:var(--vtg-column-settings-width)] max-w-[calc(100vw-16px)]";
|
|
106
118
|
readonly densityPopup: "[--vtg-table-popup-panel-radius:var(--vtg-column-settings-radius)] [--vtg-table-popup-panel-shadow:var(--vtg-column-settings-shadow)] min-w-[80px]";
|
|
107
119
|
readonly density: "block w-full border-0 rounded-[var(--vtg-btn-border-radius-sm)] px-3 py-[5px] text-left text-[length:var(--vtg-table-font-size)] font-normal leading-[var(--vtg-table-line-height)] bg-transparent cursor-pointer hover:bg-[color:var(--color-control-item-hover-bg)] aria-checked:bg-[color:var(--color-control-item-active-bg)] aria-checked:text-[color:var(--color-primary)] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[color:var(--color-primary)]";
|
|
108
|
-
readonly header: "flex items-center justify-between gap-3 h-8 mb-2";
|
|
120
|
+
readonly header: "flex items-center justify-between gap-3 h-8 mb-2 px-2";
|
|
109
121
|
readonly heading: "group inline-flex items-center gap-2 cursor-pointer font-normal";
|
|
110
122
|
readonly reset: "shrink-0 border-0 bg-transparent p-0 text-[color:var(--color-primary)] text-[length:var(--vtg-table-font-size)] font-semibold cursor-pointer hover:text-[color:var(--color-primary-hover)] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[color:var(--color-primary)]";
|
|
111
|
-
readonly columns: "m-0 max-h-[280px] overflow-auto list-none px-
|
|
123
|
+
readonly columns: "m-0 max-h-[280px] overflow-auto list-none px-2 py-2";
|
|
112
124
|
readonly children: "m-0 list-none pl-6";
|
|
113
125
|
readonly item: "m-0 p-0 pb-1";
|
|
114
|
-
readonly row: "flex min-w-0 items-center gap-1";
|
|
115
|
-
readonly
|
|
126
|
+
readonly row: "relative flex min-w-0 items-center gap-1 select-none [&[draggable=true]]:cursor-grab [&[draggable=true]]:active:cursor-grabbing [&[draggable=false]]:cursor-not-allowed";
|
|
127
|
+
readonly rowDragging: "rounded-[var(--vtg-btn-border-radius-sm)] bg-[color:var(--color-control-item-active-bg)] ring-1 ring-inset ring-[color:var(--color-primary)]";
|
|
128
|
+
readonly rowDropAbove: "pointer-events-none absolute right-0 top-0 z-[1] h-[2px] rounded-[1px] left-[calc(var(--vtg-column-settings-icon-size)+var(--vtg-checkbox-size)+16px)] bg-[color:var(--vtg-table-row-drop-indicator-color)]";
|
|
129
|
+
readonly rowDropBelow: "pointer-events-none absolute right-0 bottom-0 z-[1] h-[2px] rounded-[1px] left-[calc(var(--vtg-column-settings-icon-size)+var(--vtg-checkbox-size)+16px)] bg-[color:var(--vtg-table-row-drop-indicator-color)]";
|
|
130
|
+
readonly rowDropDot: "pointer-events-none absolute start-[-6px] top-[-3px] h-2 w-2 rounded-full border-2 border-[color:var(--vtg-table-row-drop-indicator-color)] bg-transparent";
|
|
131
|
+
readonly dragHandle: "inline-flex w-[var(--vtg-column-settings-icon-size)] shrink-0 items-center justify-center mr-2 select-none text-[color:var(--color-muted)]";
|
|
116
132
|
readonly pinActions: "inline-flex shrink-0 items-center gap-0.5";
|
|
117
133
|
readonly pinAction: "inline-flex items-center justify-center h-5 w-5 p-0 border-0 rounded-[var(--vtg-btn-border-radius-sm)] bg-transparent text-[color:var(--color-muted)] cursor-pointer hover:text-[color:var(--color-primary)] hover:bg-[color:var(--color-control-item-hover-bg)] aria-pressed:text-[color:var(--color-primary)] disabled:cursor-not-allowed disabled:text-[color:var(--color-text-disabled)] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[color:var(--color-primary)]";
|
|
118
134
|
readonly pinIcon: "h-[var(--vtg-column-settings-pin-icon-size,14px)] w-[var(--vtg-column-settings-pin-icon-size,14px)]";
|
|
@@ -122,7 +138,7 @@ export declare function resolveColumnSettingsThemePreset(name?: ThemePresetName)
|
|
|
122
138
|
readonly label: "group flex min-w-0 flex-1 min-h-6 items-center gap-1 cursor-pointer has-[:disabled]:cursor-not-allowed has-[:disabled]:text-[color:var(--color-text-disabled)]";
|
|
123
139
|
readonly checkboxControl: "relative inline-flex shrink-0 h-[var(--vtg-checkbox-size)] w-[var(--vtg-checkbox-size)]";
|
|
124
140
|
readonly labelText: "min-w-0 flex-1 truncate px-1";
|
|
125
|
-
readonly empty: "py-2 text-[color:var(--color-muted)]";
|
|
141
|
+
readonly empty: "px-2 py-2 text-[color:var(--color-muted)]";
|
|
126
142
|
};
|
|
127
143
|
};
|
|
128
144
|
export declare const columnSettingsZhCN: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"column-settings.d.ts","sourceRoot":"","sources":["../../../../theme/src/column-settings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,eAAe,EAEhB,MAAM,oBAAoB,CAAA;AAU3B,4FAA4F;AAC5F,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"column-settings.d.ts","sourceRoot":"","sources":["../../../../theme/src/column-settings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,eAAe,EAEhB,MAAM,oBAAoB,CAAA;AAU3B,4FAA4F;AAC5F,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0CA,CAAA;AAEhC,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQX,CAAA;AAEhC,MAAM,MAAM,yBAAyB,GAAG,OAAO,mBAAmB,CAAA;AAClE,MAAM,MAAM,mBAAmB,GAAG,MAAM,yBAAyB,CAAC,OAAO,CAAC,CAAA;AAE1E,wBAAgB,gCAAgC,CAAC,IAAI,GAAE,eAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE/E;AAED,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;CAeqB,CAAA;AAEpD,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;CAeqB,CAAA"}
|
|
@@ -8,14 +8,18 @@ const e = "focus-visible:outline focus-visible:outline-2 focus-visible:outline-o
|
|
|
8
8
|
popup: `${n} flex flex-col [--vtg-table-popup-width:var(--vtg-column-settings-width)] max-w-[calc(100vw-16px)]`,
|
|
9
9
|
densityPopup: `${n} min-w-[80px]`,
|
|
10
10
|
density: `block w-full border-0 rounded-[var(--vtg-btn-border-radius-sm)] px-3 py-[5px] text-left text-[length:var(--vtg-table-font-size)] font-normal leading-[var(--vtg-table-line-height)] bg-transparent cursor-pointer hover:bg-[color:var(--color-control-item-hover-bg)] aria-checked:bg-[color:var(--color-control-item-active-bg)] aria-checked:text-[color:var(--color-primary)] ${e}`,
|
|
11
|
-
header: "flex items-center justify-between gap-3 h-8 mb-2",
|
|
11
|
+
header: "flex items-center justify-between gap-3 h-8 mb-2 px-2",
|
|
12
12
|
heading: "group inline-flex items-center gap-2 cursor-pointer font-normal",
|
|
13
13
|
reset: `shrink-0 border-0 bg-transparent p-0 text-[color:var(--color-primary)] text-[length:var(--vtg-table-font-size)] font-semibold cursor-pointer hover:text-[color:var(--color-primary-hover)] ${e}`,
|
|
14
|
-
columns: "m-0 max-h-[280px] overflow-auto list-none px-
|
|
14
|
+
columns: "m-0 max-h-[280px] overflow-auto list-none px-2 py-2",
|
|
15
15
|
children: "m-0 list-none pl-6",
|
|
16
16
|
item: "m-0 p-0 pb-1",
|
|
17
|
-
row: "flex min-w-0 items-center gap-1",
|
|
18
|
-
|
|
17
|
+
row: "relative flex min-w-0 items-center gap-1 select-none [&[draggable=true]]:cursor-grab [&[draggable=true]]:active:cursor-grabbing [&[draggable=false]]:cursor-not-allowed",
|
|
18
|
+
rowDragging: "rounded-[var(--vtg-btn-border-radius-sm)] bg-[color:var(--color-control-item-active-bg)] ring-1 ring-inset ring-[color:var(--color-primary)]",
|
|
19
|
+
rowDropAbove: "pointer-events-none absolute right-0 top-0 z-[1] h-[2px] rounded-[1px] left-[calc(var(--vtg-column-settings-icon-size)+var(--vtg-checkbox-size)+16px)] bg-[color:var(--vtg-table-row-drop-indicator-color)]",
|
|
20
|
+
rowDropBelow: "pointer-events-none absolute right-0 bottom-0 z-[1] h-[2px] rounded-[1px] left-[calc(var(--vtg-column-settings-icon-size)+var(--vtg-checkbox-size)+16px)] bg-[color:var(--vtg-table-row-drop-indicator-color)]",
|
|
21
|
+
rowDropDot: "pointer-events-none absolute start-[-6px] top-[-3px] h-2 w-2 rounded-full border-2 border-[color:var(--vtg-table-row-drop-indicator-color)] bg-transparent",
|
|
22
|
+
dragHandle: "inline-flex w-[var(--vtg-column-settings-icon-size)] shrink-0 items-center justify-center mr-2 select-none text-[color:var(--color-muted)]",
|
|
19
23
|
pinActions: "inline-flex shrink-0 items-center gap-0.5",
|
|
20
24
|
pinAction: `inline-flex items-center justify-center h-5 w-5 p-0 border-0 rounded-[var(--vtg-btn-border-radius-sm)] bg-transparent text-[color:var(--color-muted)] cursor-pointer hover:text-[color:var(--color-primary)] hover:bg-[color:var(--color-control-item-hover-bg)] aria-pressed:text-[color:var(--color-primary)] disabled:cursor-not-allowed disabled:text-[color:var(--color-text-disabled)] ${e}`,
|
|
21
25
|
pinIcon: "h-[var(--vtg-column-settings-pin-icon-size,14px)] w-[var(--vtg-column-settings-pin-icon-size,14px)]",
|
|
@@ -28,7 +32,7 @@ const e = "focus-visible:outline focus-visible:outline-2 focus-visible:outline-o
|
|
|
28
32
|
checkMark: `${o.slots.checkMark} peer-disabled:border-[color:var(--color-text-disabled)]`,
|
|
29
33
|
indeterminateMark: o.slots.indeterminateMark,
|
|
30
34
|
labelText: "min-w-0 flex-1 truncate px-1",
|
|
31
|
-
empty: "py-2 text-[color:var(--color-muted)]"
|
|
35
|
+
empty: "px-2 py-2 text-[color:var(--color-muted)]"
|
|
32
36
|
}
|
|
33
37
|
}, a = {
|
|
34
38
|
...r,
|
|
@@ -57,7 +61,7 @@ const p = {
|
|
|
57
61
|
unfixed: "不固定",
|
|
58
62
|
mixed: "混合固定",
|
|
59
63
|
move: "拖动调整列顺序"
|
|
60
|
-
},
|
|
64
|
+
}, g = {
|
|
61
65
|
title: "Column settings",
|
|
62
66
|
reset: "Reset",
|
|
63
67
|
density: "Density",
|
|
@@ -74,7 +78,7 @@ const p = {
|
|
|
74
78
|
move: "Drag to reorder columns"
|
|
75
79
|
};
|
|
76
80
|
export {
|
|
77
|
-
|
|
81
|
+
g as columnSettingsEnUS,
|
|
78
82
|
r as columnSettingsTheme,
|
|
79
83
|
p as columnSettingsZhCN,
|
|
80
84
|
a as elementPlusColumnSettingsTheme,
|
|
@@ -32,6 +32,7 @@ export declare const antdvTableLocale: {
|
|
|
32
32
|
readonly selectAll: "全选所有";
|
|
33
33
|
readonly selectInvert: "反选当页";
|
|
34
34
|
readonly selectNone: "清空所有";
|
|
35
|
+
readonly selectionsTriggerAriaLabel: "选择操作";
|
|
35
36
|
};
|
|
36
37
|
};
|
|
37
38
|
export declare const antdvTableEnUSLocale: {
|
|
@@ -68,6 +69,7 @@ export declare const antdvTableEnUSLocale: {
|
|
|
68
69
|
readonly selectAll: "Select all data";
|
|
69
70
|
readonly selectInvert: "Invert current page";
|
|
70
71
|
readonly selectNone: "Clear all";
|
|
72
|
+
readonly selectionsTriggerAriaLabel: "Selection options";
|
|
71
73
|
};
|
|
72
74
|
};
|
|
73
75
|
//# sourceMappingURL=table-locale.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-locale.d.ts","sourceRoot":"","sources":["../../../../../../theme/src/presets/antdv/table-locale.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"table-locale.d.ts","sourceRoot":"","sources":["../../../../../../theme/src/presets/antdv/table-locale.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4Bc,CAAA;AAE3C,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4BU,CAAA"}
|
|
@@ -23,7 +23,8 @@ const e = {
|
|
|
23
23
|
selection: {
|
|
24
24
|
selectAll: "全选所有",
|
|
25
25
|
selectInvert: "反选当页",
|
|
26
|
-
selectNone: "清空所有"
|
|
26
|
+
selectNone: "清空所有",
|
|
27
|
+
selectionsTriggerAriaLabel: "选择操作"
|
|
27
28
|
}
|
|
28
29
|
}, t = {
|
|
29
30
|
tree: { expand: "Expand row", collapse: "Collapse row", retry: "Loading failed, retry" },
|
|
@@ -50,7 +51,8 @@ const e = {
|
|
|
50
51
|
selection: {
|
|
51
52
|
selectAll: "Select all data",
|
|
52
53
|
selectInvert: "Invert current page",
|
|
53
|
-
selectNone: "Clear all"
|
|
54
|
+
selectNone: "Clear all",
|
|
55
|
+
selectionsTriggerAriaLabel: "Selection options"
|
|
54
56
|
}
|
|
55
57
|
};
|
|
56
58
|
export {
|
|
@@ -32,6 +32,7 @@ export declare const elementPlusTableLocale: {
|
|
|
32
32
|
readonly selectAll: "全选所有";
|
|
33
33
|
readonly selectInvert: "反选当页";
|
|
34
34
|
readonly selectNone: "清空所有";
|
|
35
|
+
readonly selectionsTriggerAriaLabel: "选择操作";
|
|
35
36
|
};
|
|
36
37
|
};
|
|
37
38
|
export declare const elementPlusTableEnUSLocale: {
|
|
@@ -68,6 +69,7 @@ export declare const elementPlusTableEnUSLocale: {
|
|
|
68
69
|
readonly selectAll: "Select all data";
|
|
69
70
|
readonly selectInvert: "Invert current page";
|
|
70
71
|
readonly selectNone: "Clear all";
|
|
72
|
+
readonly selectionsTriggerAriaLabel: "Selection options";
|
|
71
73
|
};
|
|
72
74
|
};
|
|
73
75
|
//# sourceMappingURL=table-locale.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-locale.d.ts","sourceRoot":"","sources":["../../../../../../theme/src/presets/element-plus/table-locale.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"table-locale.d.ts","sourceRoot":"","sources":["../../../../../../theme/src/presets/element-plus/table-locale.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BQ,CAAA;AAE3C,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4BI,CAAA"}
|
|
@@ -24,7 +24,8 @@ const e = {
|
|
|
24
24
|
selection: {
|
|
25
25
|
selectAll: "全选所有",
|
|
26
26
|
selectInvert: "反选当页",
|
|
27
|
-
selectNone: "清空所有"
|
|
27
|
+
selectNone: "清空所有",
|
|
28
|
+
selectionsTriggerAriaLabel: "选择操作"
|
|
28
29
|
}
|
|
29
30
|
}, t = {
|
|
30
31
|
tree: { expand: "Expand row", collapse: "Collapse row", retry: "Loading failed, retry" },
|
|
@@ -51,7 +52,8 @@ const e = {
|
|
|
51
52
|
selection: {
|
|
52
53
|
selectAll: "Select all data",
|
|
53
54
|
selectInvert: "Invert current page",
|
|
54
|
-
selectNone: "Clear all"
|
|
55
|
+
selectNone: "Clear all",
|
|
56
|
+
selectionsTriggerAriaLabel: "Selection options"
|
|
55
57
|
}
|
|
56
58
|
};
|
|
57
59
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vtable-guild/vtable-guild",
|
|
3
|
-
"version": "2.9.0-alpha.
|
|
3
|
+
"version": "2.9.0-alpha.6",
|
|
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": [
|