@gsc-basic/components 1.0.2 → 1.0.3
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/es/index.js +43 -29
- package/dist/es/node_modules/@codemirror/autocomplete/dist/index.js +15 -15
- package/dist/es/node_modules/@codemirror/commands/dist/index.js +5 -5
- package/dist/es/node_modules/@codemirror/lang-java/dist/index.js +3 -3
- package/dist/es/node_modules/@codemirror/lang-javascript/dist/index.js +8 -8
- package/dist/es/node_modules/@codemirror/lang-json/dist/index.js +1 -1
- package/dist/es/node_modules/@codemirror/lang-python/dist/index.js +1 -1
- package/dist/es/node_modules/@codemirror/lang-sql/dist/index.js +6 -6
- package/dist/es/node_modules/@codemirror/lang-xml/dist/index.js +3 -3
- package/dist/es/node_modules/@codemirror/lang-yaml/dist/index.js +1 -1
- package/dist/es/node_modules/@codemirror/language/dist/index.js +1 -1
- package/dist/es/node_modules/@codemirror/lint/dist/index.js +7 -7
- package/dist/es/node_modules/@codemirror/search/dist/index.js +9 -9
- package/dist/es/node_modules/@codemirror/view/dist/index.js +7 -7
- package/dist/es/node_modules/@lezer/lr/dist/index.js +4 -2
- package/dist/es/node_modules/@tanstack/form-core/dist/esm/FormApi.js +146 -142
- package/dist/es/node_modules/@tanstack/vue-table/build/lib/index.js +7 -7
- package/dist/es/node_modules/@vueuse/core/dist/index.js +1 -1
- package/dist/es/node_modules/codemirror/dist/index.js +3 -3
- package/dist/es/src/Button/index.js +6 -0
- package/dist/es/src/Button/src/Button.css +1 -0
- package/dist/es/src/Button/src/Button.vue.js +41 -0
- package/dist/es/src/Button/src/Button2.css +1 -0
- package/dist/es/src/CodeEditor/src/index.css +1 -1
- package/dist/es/src/CodeEditor/src/index.vue.js +54 -51
- package/dist/es/src/CodeEditor/src/index2.css +1 -1
- package/dist/es/src/ConfigProvider/index.js +1 -2
- package/dist/es/src/ConfigProvider/src/useGlobalConfig.js +9 -9
- package/dist/es/src/Form/index.js +6 -0
- package/dist/es/src/Form/src/Form.css +1 -0
- package/dist/es/src/Form/src/Form.vue.js +208 -0
- package/dist/es/src/Form/src/styles/form.css +1 -0
- package/dist/es/src/Grid/src/Grid.css +1 -1
- package/dist/es/src/Grid/src/Grid.vue.js +77 -83
- package/dist/es/src/Grid/src/components/ActionBar.css +1 -1
- package/dist/es/src/Grid/src/components/ActionBar.vue.js +43 -36
- package/dist/es/src/Grid/src/components/CellEditor.css +1 -1
- package/dist/es/src/Grid/src/components/CellEditor.vue.js +80 -69
- package/dist/es/src/Grid/src/components/CellEditor2.css +1 -1
- package/dist/es/src/Grid/src/components/ColumnFilter.css +1 -1
- package/dist/es/src/Grid/src/components/ColumnFilter.vue.js +45 -34
- package/dist/es/src/Grid/src/components/ColumnSettings.css +1 -1
- package/dist/es/src/Grid/src/components/ColumnSettings.vue.js +72 -49
- package/dist/es/src/Grid/src/components/DataTable.css +1 -1
- package/dist/es/src/Grid/src/components/DataTable.vue.js +251 -228
- package/dist/es/src/Grid/src/components/Pager.css +1 -1
- package/dist/es/src/Grid/src/components/Pager.vue.js +40 -31
- package/dist/es/src/Grid/src/components/QueryBar.css +1 -1
- package/dist/es/src/Grid/src/components/QueryBar.vue.js +119 -147
- package/dist/es/src/Grid/src/composables/useGridTable.js +45 -44
- package/dist/es/src/Grid/src/styles/table.css +1 -0
- package/dist/es/src/Overlay/index.js +61 -0
- package/dist/es/src/Overlay/src/Message.css +1 -0
- package/dist/es/src/Overlay/src/Message.vue.js +36 -0
- package/dist/es/src/Overlay/src/Message2.css +1 -0
- package/dist/es/src/Overlay/src/Modal.css +1 -0
- package/dist/es/src/Overlay/src/Modal.vue.js +67 -0
- package/dist/es/src/Overlay/src/Modal2.css +1 -0
- package/dist/es/src/Overlay/src/Notice.css +1 -0
- package/dist/es/src/Overlay/src/Notice.vue.js +37 -0
- package/dist/es/src/Overlay/src/Notice2.css +1 -0
- package/dist/es/src/ScaleScreen/src/index.vue.js +2 -2
- package/dist/es/src/VideoBackground/src/index.vue.js +8 -8
- package/dist/es/src/index.js +39 -25
- package/dist/es/src/styles/tokens.css +1 -1
- package/dist/lib/index.js +1 -1
- package/dist/lib/node_modules/@lezer/lr/dist/index.js +1 -1
- package/dist/lib/node_modules/@tanstack/form-core/dist/esm/FormApi.js +1 -1
- package/dist/lib/src/Button/index.js +1 -0
- package/dist/lib/src/Button/src/Button.css +1 -0
- package/dist/lib/src/Button/src/Button.vue.js +1 -0
- package/dist/lib/src/Button/src/Button2.css +1 -0
- package/dist/lib/src/CodeEditor/src/index.css +1 -1
- package/dist/lib/src/CodeEditor/src/index.vue.js +1 -1
- package/dist/lib/src/CodeEditor/src/index2.css +1 -1
- package/dist/lib/src/ConfigProvider/index.js +1 -1
- package/dist/lib/src/Form/index.js +1 -0
- package/dist/lib/src/Form/src/Form.css +1 -0
- package/dist/lib/src/Form/src/Form.vue.js +1 -0
- package/dist/lib/src/Form/src/styles/form.css +1 -0
- package/dist/lib/src/Grid/src/Grid.css +1 -1
- package/dist/lib/src/Grid/src/Grid.vue.js +1 -1
- package/dist/lib/src/Grid/src/components/ActionBar.css +1 -1
- package/dist/lib/src/Grid/src/components/ActionBar.vue.js +1 -1
- package/dist/lib/src/Grid/src/components/CellEditor.css +1 -1
- package/dist/lib/src/Grid/src/components/CellEditor.vue.js +1 -1
- package/dist/lib/src/Grid/src/components/CellEditor2.css +1 -1
- package/dist/lib/src/Grid/src/components/ColumnFilter.css +1 -1
- package/dist/lib/src/Grid/src/components/ColumnFilter.vue.js +1 -1
- package/dist/lib/src/Grid/src/components/ColumnSettings.css +1 -1
- package/dist/lib/src/Grid/src/components/ColumnSettings.vue.js +1 -1
- package/dist/lib/src/Grid/src/components/DataTable.css +1 -1
- package/dist/lib/src/Grid/src/components/DataTable.vue.js +1 -1
- package/dist/lib/src/Grid/src/components/Pager.css +1 -1
- package/dist/lib/src/Grid/src/components/Pager.vue.js +1 -1
- package/dist/lib/src/Grid/src/components/QueryBar.css +1 -1
- package/dist/lib/src/Grid/src/components/QueryBar.vue.js +1 -1
- package/dist/lib/src/Grid/src/composables/useGridTable.js +1 -1
- package/dist/lib/src/Grid/src/styles/table.css +1 -0
- package/dist/lib/src/Overlay/index.js +1 -0
- package/dist/lib/src/Overlay/src/Message.css +1 -0
- package/dist/lib/src/Overlay/src/Message.vue.js +1 -0
- package/dist/lib/src/Overlay/src/Message2.css +1 -0
- package/dist/lib/src/Overlay/src/Modal.css +1 -0
- package/dist/lib/src/Overlay/src/Modal.vue.js +1 -0
- package/dist/lib/src/Overlay/src/Modal2.css +1 -0
- package/dist/lib/src/Overlay/src/Notice.css +1 -0
- package/dist/lib/src/Overlay/src/Notice.vue.js +1 -0
- package/dist/lib/src/Overlay/src/Notice2.css +1 -0
- package/dist/lib/src/index.js +1 -1
- package/dist/lib/src/styles/tokens.css +1 -1
- package/package.json +9 -9
- package/dist/es/src/Grid/src/styles/antd.css +0 -1
- package/dist/es/src/Grid/src/utils/exportCsv.js +0 -15
- package/dist/lib/src/Grid/src/styles/antd.css +0 -1
- package/dist/lib/src/Grid/src/utils/exportCsv.js +0 -3
|
@@ -1,39 +1,37 @@
|
|
|
1
|
-
import { computed as m, ref as A, reactive as
|
|
1
|
+
import { computed as m, ref as A, reactive as Se, onMounted as Te, onBeforeUnmount as Oe, watch as Pe, openBlock as i, createElementBlock as s, normalizeStyle as p, createElementVNode as c, Fragment as x, renderList as b, createCommentVNode as u, withModifiers as k, normalizeClass as _e, unref as a, createBlock as h, toDisplayString as M, withCtx as H, renderSlot as Ae, createVNode as we, createTextVNode as He } from "vue";
|
|
2
2
|
import { FlexRender as V } from "../../../../node_modules/@tanstack/vue-table/build/lib/index.js";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { useLocale as
|
|
3
|
+
import De from "./ColumnFilter.vue.js";
|
|
4
|
+
import $e from "./CellEditor.vue.js";
|
|
5
|
+
import { useLocale as Be } from "../../../hooks/useLocale.js";
|
|
6
|
+
import { GscButton as B } from "../../../Button/index.js";
|
|
6
7
|
import './DataTable.css';/* empty css */
|
|
7
|
-
import
|
|
8
|
-
const
|
|
9
|
-
key: 0,
|
|
10
|
-
class: "overflow-auto"
|
|
11
|
-
}, Be = { class: "gsc-table" }, Le = { class: "gsc-thead sticky top-0 z-10" }, Ue = ["checked", ".indeterminate"], Ge = ["onDrop"], Ne = { class: "flex items-center gap-2 min-w-0" }, We = ["onClick"], Ke = ["title", "onDragstart"], je = { class: "truncate" }, qe = {
|
|
8
|
+
import Le from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
9
|
+
const Ue = { class: "w-full" }, Ge = { class: "gsc-table" }, Ne = { class: "gsc-thead sticky top-0 z-10" }, We = ["checked", ".indeterminate"], Ke = ["onDrop"], je = { class: "flex items-center gap-2 min-w-0" }, qe = ["onClick"], Je = ["title", "onDragstart"], Qe = { class: "truncate" }, Xe = {
|
|
12
10
|
key: 0,
|
|
13
11
|
class: "text-[rgba(0,0,0,0.45)] text-xs"
|
|
14
|
-
},
|
|
12
|
+
}, Ye = ["onMousedown"], Ze = ["checked", "onChange"], et = ["onDblclick"], tt = {
|
|
15
13
|
key: 1,
|
|
16
14
|
class: "flex items-start gap-2"
|
|
17
|
-
},
|
|
15
|
+
}, nt = { class: "min-w-0 flex-1" }, ot = {
|
|
18
16
|
key: 1,
|
|
19
17
|
class: "break-words"
|
|
20
|
-
},
|
|
18
|
+
}, lt = { key: 0 }, it = ["colspan"], st = {
|
|
21
19
|
key: 1,
|
|
22
20
|
class: "w-full"
|
|
23
|
-
},
|
|
21
|
+
}, ct = { class: "gsc-table" }, rt = { class: "gsc-thead sticky top-0 z-10" }, ut = ["checked", ".indeterminate"], at = ["onDrop"], dt = { class: "flex items-center gap-2 min-w-0" }, gt = ["onClick"], mt = ["title", "onDragstart"], pt = { class: "truncate" }, ft = {
|
|
24
22
|
key: 0,
|
|
25
23
|
class: "text-[rgba(0,0,0,0.45)] text-xs"
|
|
26
|
-
},
|
|
24
|
+
}, vt = ["onMousedown"], yt = { class: "gsc-table" }, ht = ["checked", "onChange"], xt = ["onDblclick"], bt = {
|
|
27
25
|
key: 1,
|
|
28
26
|
class: "break-words"
|
|
29
|
-
},
|
|
27
|
+
}, kt = { key: 0 }, Ct = ["colspan"], R = 44, St = 6, _t = {
|
|
30
28
|
__name: "DataTable",
|
|
31
29
|
props: {
|
|
32
30
|
table: { type: Object, required: !0 },
|
|
33
31
|
mode: { type: String, default: "server" },
|
|
34
32
|
loading: { type: Boolean, default: !1 },
|
|
35
33
|
virtual: { type: Boolean, default: !1 },
|
|
36
|
-
height: { type: Number, default: 400 },
|
|
34
|
+
height: { type: [Number, String], default: 400 },
|
|
37
35
|
rowHeight: { type: Number, default: 40 },
|
|
38
36
|
enableRowSelection: { type: Boolean, default: !1 }
|
|
39
37
|
},
|
|
@@ -42,34 +40,34 @@ const Ae = { class: "w-full" }, He = {
|
|
|
42
40
|
"cell-change",
|
|
43
41
|
"server-filter-change"
|
|
44
42
|
],
|
|
45
|
-
setup(f, { emit:
|
|
46
|
-
const
|
|
43
|
+
setup(f, { emit: Re }) {
|
|
44
|
+
const d = f, I = Re, { t: v } = Be(), g = m(() => d.table), L = m(() => {
|
|
47
45
|
try {
|
|
48
|
-
return
|
|
46
|
+
return g.value.getHeaderGroups?.() || [];
|
|
49
47
|
} catch {
|
|
50
48
|
return [];
|
|
51
49
|
}
|
|
52
50
|
}), z = m(() => {
|
|
53
51
|
try {
|
|
54
|
-
return
|
|
52
|
+
return g.value.getRowModel?.().rows || [];
|
|
55
53
|
} catch {
|
|
56
54
|
return [];
|
|
57
55
|
}
|
|
58
|
-
}),
|
|
59
|
-
function
|
|
56
|
+
}), U = m(() => (g.value.getVisibleLeafColumns?.() || []).length + (d.enableRowSelection ? 1 : 0));
|
|
57
|
+
function G(t) {
|
|
60
58
|
const n = t.getIsSorted?.();
|
|
61
59
|
return n === "asc" ? "↑" : n === "desc" ? "↓" : "";
|
|
62
60
|
}
|
|
63
|
-
function
|
|
61
|
+
function N(t, n) {
|
|
64
62
|
const o = n.column;
|
|
65
63
|
if (!o.getCanSort?.())
|
|
66
64
|
return;
|
|
67
65
|
const e = !!t?.shiftKey;
|
|
68
66
|
o.toggleSorting?.(void 0, e);
|
|
69
67
|
}
|
|
70
|
-
const
|
|
71
|
-
function
|
|
72
|
-
|
|
68
|
+
const C = A(null);
|
|
69
|
+
function W(t, n) {
|
|
70
|
+
C.value = n?.id ?? null;
|
|
73
71
|
try {
|
|
74
72
|
t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", String(n?.id ?? ""));
|
|
75
73
|
} catch {
|
|
@@ -86,264 +84,274 @@ const Ae = { class: "w-full" }, He = {
|
|
|
86
84
|
const D = t.slice();
|
|
87
85
|
return D.splice(e, 1), D.splice(l, 0, n), D;
|
|
88
86
|
}
|
|
89
|
-
function
|
|
87
|
+
function K(t, n) {
|
|
90
88
|
const o = n?.id;
|
|
91
|
-
let e =
|
|
89
|
+
let e = C.value;
|
|
92
90
|
try {
|
|
93
91
|
const r = t.dataTransfer.getData("text/plain");
|
|
94
92
|
r && (e = r);
|
|
95
93
|
} catch {
|
|
96
94
|
}
|
|
97
95
|
if (!e || !o || e === o) {
|
|
98
|
-
|
|
96
|
+
C.value = null;
|
|
99
97
|
return;
|
|
100
98
|
}
|
|
101
|
-
const l = (
|
|
102
|
-
if (!D || !
|
|
103
|
-
|
|
99
|
+
const l = (g.value.getAllLeafColumns?.() || []).filter(Boolean), D = l.find((r) => r.id === e), ve = l.find((r) => r.id === o);
|
|
100
|
+
if (!D || !ve) {
|
|
101
|
+
C.value = null;
|
|
104
102
|
return;
|
|
105
103
|
}
|
|
106
|
-
const
|
|
107
|
-
if (
|
|
108
|
-
|
|
104
|
+
const P = $(D), Fe = $(ve);
|
|
105
|
+
if (P !== Fe) {
|
|
106
|
+
C.value = null;
|
|
109
107
|
return;
|
|
110
108
|
}
|
|
111
|
-
const
|
|
112
|
-
let
|
|
113
|
-
|
|
109
|
+
const ye = l.filter((r) => $(r) === "left").map((r) => r.id), he = l.filter((r) => $(r) === "center").map((r) => r.id), xe = l.filter((r) => $(r) === "right").map((r) => r.id);
|
|
110
|
+
let be = ye, ke = he, Ce = xe;
|
|
111
|
+
P === "left" ? be = E(ye, e, o) : P === "right" ? Ce = E(xe, e, o) : ke = E(he, e, o), g.value.setColumnOrder?.([...be, ...ke, ...Ce]), C.value = null;
|
|
114
112
|
}
|
|
115
|
-
function
|
|
113
|
+
function j(t) {
|
|
116
114
|
const n = t.getIsPinned?.();
|
|
117
|
-
return n === "left" ? { position: "sticky", left: `${(t.getStart?.("left") ?? 0) + (
|
|
115
|
+
return n === "left" ? { position: "sticky", left: `${(t.getStart?.("left") ?? 0) + (d.enableRowSelection ? R : 0)}px`, zIndex: 2 } : n === "right" ? { position: "sticky", right: `${t.getAfter?.("right") ?? 0}px`, zIndex: 2 } : {};
|
|
118
116
|
}
|
|
119
|
-
const
|
|
117
|
+
const q = m(() => d.enableRowSelection ? {
|
|
120
118
|
width: `${R}px`,
|
|
121
119
|
minWidth: `${R}px`,
|
|
122
120
|
position: "sticky",
|
|
123
121
|
left: "0px",
|
|
124
122
|
zIndex: 4
|
|
125
|
-
} : {}),
|
|
123
|
+
} : {}), J = m(() => d.enableRowSelection ? {
|
|
126
124
|
width: `${R}px`,
|
|
127
125
|
minWidth: `${R}px`,
|
|
128
126
|
position: "sticky",
|
|
129
127
|
left: "0px",
|
|
130
128
|
zIndex: 3
|
|
131
|
-
} : {})
|
|
132
|
-
|
|
129
|
+
} : {}), Ie = m(() => {
|
|
130
|
+
if (d.virtual)
|
|
131
|
+
return {};
|
|
132
|
+
const t = d.height;
|
|
133
|
+
return t == null || t === "" ? {} : typeof t == "number" ? { height: `${t}px`, overflow: "auto" } : t === "auto" || t === "100%" ? { height: "100%", overflow: "auto" } : { height: String(t), overflow: "auto" };
|
|
134
|
+
});
|
|
135
|
+
function Q(t) {
|
|
133
136
|
const n = t.column, o = t.getSize?.();
|
|
134
137
|
return {
|
|
135
138
|
width: o ? `${o}px` : void 0,
|
|
136
139
|
minWidth: n.columnDef?.minSize ? `${n.columnDef.minSize}px` : void 0,
|
|
137
140
|
position: "relative",
|
|
138
|
-
...
|
|
141
|
+
...j(n)
|
|
139
142
|
};
|
|
140
143
|
}
|
|
141
|
-
function
|
|
144
|
+
function X(t) {
|
|
142
145
|
const n = t.column, o = n.getSize?.();
|
|
143
146
|
return {
|
|
144
147
|
width: o ? `${o}px` : void 0,
|
|
145
148
|
minWidth: n.columnDef?.minSize ? `${n.columnDef.minSize}px` : void 0,
|
|
146
|
-
...
|
|
149
|
+
...j(n)
|
|
147
150
|
};
|
|
148
151
|
}
|
|
149
|
-
const y = A(null),
|
|
150
|
-
function
|
|
152
|
+
const y = A(null), S = Se({});
|
|
153
|
+
function Y(t) {
|
|
151
154
|
const n = t?.columnDef?.meta?.col;
|
|
152
155
|
return !!(n?.filterable || n?.filterType || n?.filterOptions);
|
|
153
156
|
}
|
|
154
|
-
function
|
|
157
|
+
function Z(t) {
|
|
155
158
|
return t?.columnDef?.meta?.col?.filterType || "text";
|
|
156
159
|
}
|
|
157
|
-
function
|
|
160
|
+
function ee(t) {
|
|
158
161
|
return t?.columnDef?.meta?.col?.filterOptions || [];
|
|
159
162
|
}
|
|
160
|
-
function
|
|
163
|
+
function te(t) {
|
|
161
164
|
y.value = y.value === t ? null : t;
|
|
162
165
|
}
|
|
163
|
-
function
|
|
164
|
-
|
|
166
|
+
function ne(t, n) {
|
|
167
|
+
S[t] = n;
|
|
165
168
|
}
|
|
166
|
-
function
|
|
167
|
-
if (
|
|
168
|
-
I("server-filter-change", { key: t, value:
|
|
169
|
+
function oe(t) {
|
|
170
|
+
if (d.mode === "server") {
|
|
171
|
+
I("server-filter-change", { key: t, value: S[t] }), y.value = null;
|
|
169
172
|
return;
|
|
170
173
|
}
|
|
171
|
-
|
|
174
|
+
g.value.getColumn?.(t)?.setFilterValue?.(S[t]), y.value = null;
|
|
172
175
|
}
|
|
173
|
-
function
|
|
174
|
-
if (
|
|
176
|
+
function le(t) {
|
|
177
|
+
if (S[t] = "", d.mode === "server") {
|
|
175
178
|
I("server-filter-change", { key: t, value: "" }), y.value = null;
|
|
176
179
|
return;
|
|
177
180
|
}
|
|
178
|
-
|
|
181
|
+
g.value.getColumn?.(t)?.setFilterValue?.(""), y.value = null;
|
|
179
182
|
}
|
|
180
|
-
function
|
|
183
|
+
function ie() {
|
|
181
184
|
y.value = null;
|
|
182
185
|
}
|
|
183
|
-
|
|
184
|
-
document.addEventListener("click",
|
|
185
|
-
}),
|
|
186
|
-
document.removeEventListener("click",
|
|
187
|
-
}),
|
|
188
|
-
() =>
|
|
186
|
+
Te(() => {
|
|
187
|
+
document.addEventListener("click", ie);
|
|
188
|
+
}), Oe(() => {
|
|
189
|
+
document.removeEventListener("click", ie);
|
|
190
|
+
}), Pe(
|
|
191
|
+
() => g.value.getState?.().rowSelection,
|
|
189
192
|
() => {
|
|
190
|
-
if (
|
|
193
|
+
if (d.enableRowSelection)
|
|
191
194
|
try {
|
|
192
|
-
const t =
|
|
195
|
+
const t = g.value.getSelectedRowModel?.().rows || [];
|
|
193
196
|
I("selection-change", t.map((n) => n.original));
|
|
194
197
|
} catch {
|
|
195
198
|
}
|
|
196
199
|
},
|
|
197
200
|
{ deep: !0 }
|
|
198
201
|
);
|
|
199
|
-
const _ =
|
|
200
|
-
function
|
|
202
|
+
const _ = Se({});
|
|
203
|
+
function w(t, n) {
|
|
201
204
|
return `${t.id}::${n.id}`;
|
|
202
205
|
}
|
|
203
|
-
function
|
|
206
|
+
function se(t) {
|
|
204
207
|
return !!t?.columnDef?.meta?.col?.editor;
|
|
205
208
|
}
|
|
206
|
-
function
|
|
209
|
+
function ce(t) {
|
|
207
210
|
const n = t?.columnDef?.meta?.col;
|
|
208
211
|
return !n?.editor || n.editor === "input" ? "text" : n.editor;
|
|
209
212
|
}
|
|
210
|
-
function
|
|
213
|
+
function re(t) {
|
|
211
214
|
return t?.columnDef?.meta?.col?.options || [];
|
|
212
215
|
}
|
|
213
216
|
function F(t, n) {
|
|
214
|
-
if (!
|
|
217
|
+
if (!se(n))
|
|
215
218
|
return;
|
|
216
|
-
const o =
|
|
219
|
+
const o = w(t, n);
|
|
217
220
|
_[o] = t.original?.[n.id];
|
|
218
221
|
}
|
|
219
|
-
function
|
|
220
|
-
const o =
|
|
222
|
+
function T(t, n) {
|
|
223
|
+
const o = w(t, n);
|
|
221
224
|
return Object.prototype.hasOwnProperty.call(_, o);
|
|
222
225
|
}
|
|
223
|
-
function
|
|
224
|
-
const o =
|
|
226
|
+
function ue(t, n) {
|
|
227
|
+
const o = w(t, n);
|
|
225
228
|
return _[o];
|
|
226
229
|
}
|
|
227
|
-
function
|
|
228
|
-
const e =
|
|
230
|
+
function ae(t, n, o) {
|
|
231
|
+
const e = w(t, n);
|
|
229
232
|
_[e] = o;
|
|
230
233
|
}
|
|
231
|
-
function
|
|
232
|
-
const o =
|
|
234
|
+
function de(t, n) {
|
|
235
|
+
const o = w(t, n);
|
|
233
236
|
delete _[o];
|
|
234
237
|
}
|
|
235
|
-
function
|
|
236
|
-
const e =
|
|
238
|
+
function ge(t, n, o) {
|
|
239
|
+
const e = w(t, n);
|
|
237
240
|
try {
|
|
238
241
|
t.original[n.id] = o;
|
|
239
242
|
} catch {
|
|
240
243
|
}
|
|
241
244
|
I("cell-change", { row: t.original, rowId: t.id, column: n.id, value: o }), delete _[e];
|
|
242
245
|
}
|
|
243
|
-
const
|
|
244
|
-
function
|
|
245
|
-
|
|
246
|
+
const me = A(0);
|
|
247
|
+
function ze(t) {
|
|
248
|
+
me.value = t.target.scrollTop || 0;
|
|
246
249
|
}
|
|
247
|
-
const
|
|
248
|
-
return (t, n) => (
|
|
249
|
-
f.virtual ? (
|
|
250
|
-
c("table",
|
|
251
|
-
c("thead",
|
|
252
|
-
(
|
|
250
|
+
const Me = m(() => Math.ceil(d.height / d.rowHeight) + St), O = m(() => Math.max(0, Math.floor((me.value || 0) / d.rowHeight))), pe = m(() => O.value + Me.value), fe = m(() => z.value.slice(O.value, pe.value)), Ve = m(() => O.value * d.rowHeight), Ee = m(() => Math.max(0, (z.value.length - pe.value) * d.rowHeight));
|
|
251
|
+
return (t, n) => (i(), s("div", Ue, [
|
|
252
|
+
f.virtual ? (i(), s("div", st, [
|
|
253
|
+
c("table", ct, [
|
|
254
|
+
c("thead", rt, [
|
|
255
|
+
(i(!0), s(x, null, b(L.value, (o) => (i(), s("tr", {
|
|
253
256
|
key: o.id
|
|
254
257
|
}, [
|
|
255
|
-
f.enableRowSelection ? (
|
|
258
|
+
f.enableRowSelection ? (i(), s("th", {
|
|
256
259
|
key: 0,
|
|
257
260
|
class: "gsc-th text-center",
|
|
258
|
-
style: p(
|
|
261
|
+
style: p(q.value)
|
|
259
262
|
}, [
|
|
260
263
|
c("input", {
|
|
261
264
|
type: "checkbox",
|
|
262
265
|
class: "gsc-checkbox",
|
|
263
|
-
checked:
|
|
264
|
-
".indeterminate":
|
|
265
|
-
onChange: n[2] || (n[2] = (e) =>
|
|
266
|
-
}, null, 40,
|
|
266
|
+
checked: g.value.getIsAllPageRowsSelected?.(),
|
|
267
|
+
".indeterminate": g.value.getIsSomePageRowsSelected?.(),
|
|
268
|
+
onChange: n[2] || (n[2] = (e) => g.value.toggleAllPageRowsSelected?.(!!e.target.checked))
|
|
269
|
+
}, null, 40, ut)
|
|
267
270
|
], 4)) : u("", !0),
|
|
268
|
-
(
|
|
271
|
+
(i(!0), s(x, null, b(o.headers, (e) => (i(), s("th", {
|
|
269
272
|
key: e.id,
|
|
270
273
|
class: "gsc-th",
|
|
271
|
-
style: p(
|
|
274
|
+
style: p(Q(e)),
|
|
272
275
|
onDragover: n[3] || (n[3] = k(() => {
|
|
273
276
|
}, ["prevent"])),
|
|
274
|
-
onDrop: (l) =>
|
|
277
|
+
onDrop: (l) => K(l, e.column)
|
|
275
278
|
}, [
|
|
276
|
-
c("div",
|
|
279
|
+
c("div", dt, [
|
|
277
280
|
c("div", {
|
|
278
|
-
class:
|
|
279
|
-
onClick: (l) =>
|
|
281
|
+
class: _e(["flex items-center gap-1 min-w-0", e.column.getCanSort?.() ? "cursor-pointer" : ""]),
|
|
282
|
+
onClick: (l) => N(l, e)
|
|
280
283
|
}, [
|
|
281
284
|
c("span", {
|
|
282
285
|
class: "text-[rgba(0,0,0,0.25)] hover:text-[rgba(0,0,0,0.45)] cursor-grab select-none",
|
|
283
|
-
title:
|
|
286
|
+
title: a(v)("gsc.grid.table.dragReorder"),
|
|
284
287
|
draggable: "true",
|
|
285
|
-
onDragstart: (l) =>
|
|
286
|
-
}, " ⋮⋮ ", 40,
|
|
287
|
-
c("span",
|
|
288
|
-
e.isPlaceholder ? u("", !0) : (
|
|
288
|
+
onDragstart: (l) => W(l, e.column)
|
|
289
|
+
}, " ⋮⋮ ", 40, mt),
|
|
290
|
+
c("span", pt, [
|
|
291
|
+
e.isPlaceholder ? u("", !0) : (i(), h(a(V), {
|
|
289
292
|
key: 0,
|
|
290
293
|
render: e.column.columnDef.header,
|
|
291
294
|
props: e.getContext()
|
|
292
295
|
}, null, 8, ["render", "props"]))
|
|
293
296
|
]),
|
|
294
|
-
e.column.getCanSort?.() ? (
|
|
295
|
-
], 10,
|
|
296
|
-
|
|
297
|
+
e.column.getCanSort?.() ? (i(), s("span", ft, M(G(e.column)), 1)) : u("", !0)
|
|
298
|
+
], 10, gt),
|
|
299
|
+
Y(e.column) ? (i(), h(a(B), {
|
|
297
300
|
key: 0,
|
|
298
301
|
type: "button",
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
"
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
302
|
+
variant: "text",
|
|
303
|
+
size: "icon",
|
|
304
|
+
class: "ml-auto gsc-btn-icon-sm",
|
|
305
|
+
title: a(v)("gsc.grid.table.filter"),
|
|
306
|
+
"aria-label": a(v)("gsc.grid.table.filter"),
|
|
307
|
+
onClick: k((l) => te(e.column.id), ["stop"])
|
|
308
|
+
}, {
|
|
309
|
+
default: H(() => [...n[6] || (n[6] = [
|
|
310
|
+
c("i", {
|
|
311
|
+
class: "i-material-symbols:filter-alt-outline",
|
|
312
|
+
"aria-hidden": "true"
|
|
313
|
+
}, null, -1)
|
|
314
|
+
])]),
|
|
315
|
+
_: 1
|
|
316
|
+
}, 8, ["title", "aria-label", "onClick"])) : u("", !0)
|
|
309
317
|
]),
|
|
310
|
-
y.value === e.column.id ? (
|
|
318
|
+
y.value === e.column.id ? (i(), h(De, {
|
|
311
319
|
key: 0,
|
|
312
|
-
value:
|
|
313
|
-
type:
|
|
314
|
-
options:
|
|
315
|
-
"onUpdate:value": (l) =>
|
|
316
|
-
onApply: (l) =>
|
|
317
|
-
onClear: (l) =>
|
|
320
|
+
value: S[e.column.id],
|
|
321
|
+
type: Z(e.column),
|
|
322
|
+
options: ee(e.column),
|
|
323
|
+
"onUpdate:value": (l) => ne(e.column.id, l),
|
|
324
|
+
onApply: (l) => oe(e.column.id),
|
|
325
|
+
onClear: (l) => le(e.column.id)
|
|
318
326
|
}, null, 8, ["value", "type", "options", "onUpdate:value", "onApply", "onClear"])) : u("", !0),
|
|
319
|
-
e.column.getCanResize?.() ? (
|
|
327
|
+
e.column.getCanResize?.() ? (i(), s("div", {
|
|
320
328
|
key: 1,
|
|
321
329
|
class: "absolute right-0 top-0 h-full w-2 cursor-col-resize",
|
|
322
330
|
onMousedown: k((l) => e.getResizeHandler?.()(l), ["prevent"])
|
|
323
331
|
}, null, 40, vt)) : u("", !0)
|
|
324
|
-
], 44,
|
|
332
|
+
], 44, at))), 128))
|
|
325
333
|
]))), 128))
|
|
326
334
|
])
|
|
327
335
|
]),
|
|
328
336
|
c("div", {
|
|
329
337
|
class: "overflow-auto",
|
|
330
338
|
style: p({ height: `${f.height}px` }),
|
|
331
|
-
onScroll:
|
|
339
|
+
onScroll: ze
|
|
332
340
|
}, [
|
|
333
341
|
c("div", {
|
|
334
|
-
style: p({ height: `${
|
|
342
|
+
style: p({ height: `${Ve.value}px` })
|
|
335
343
|
}, null, 4),
|
|
336
344
|
c("table", yt, [
|
|
337
345
|
c("tbody", null, [
|
|
338
|
-
(
|
|
346
|
+
(i(!0), s(x, null, b(fe.value, (o) => (i(), s("tr", {
|
|
339
347
|
key: o.id,
|
|
340
348
|
class: "gsc-tr",
|
|
341
349
|
style: p({ height: `${f.rowHeight}px` })
|
|
342
350
|
}, [
|
|
343
|
-
f.enableRowSelection ? (
|
|
351
|
+
f.enableRowSelection ? (i(), s("td", {
|
|
344
352
|
key: 0,
|
|
345
353
|
class: "gsc-td text-center",
|
|
346
|
-
style: p(
|
|
354
|
+
style: p(J.value)
|
|
347
355
|
}, [
|
|
348
356
|
c("input", {
|
|
349
357
|
type: "checkbox",
|
|
@@ -352,182 +360,197 @@ const Ae = { class: "w-full" }, He = {
|
|
|
352
360
|
onChange: (e) => o.toggleSelected?.(!!e.target.checked)
|
|
353
361
|
}, null, 40, ht)
|
|
354
362
|
], 4)) : u("", !0),
|
|
355
|
-
(
|
|
363
|
+
(i(!0), s(x, null, b(o.getVisibleCells(), (e) => (i(), s("td", {
|
|
356
364
|
key: e.id,
|
|
357
365
|
class: "gsc-td align-top",
|
|
358
|
-
style: p(
|
|
366
|
+
style: p(X(e)),
|
|
359
367
|
onDblclick: (l) => F(o, e.column)
|
|
360
368
|
}, [
|
|
361
|
-
|
|
369
|
+
T(o, e.column) ? (i(), h($e, {
|
|
362
370
|
key: 0,
|
|
363
|
-
"model-value":
|
|
364
|
-
type:
|
|
365
|
-
options:
|
|
366
|
-
onUpdateModelValue: (l) =>
|
|
367
|
-
onCommit: (l) =>
|
|
368
|
-
onCancel: (l) =>
|
|
369
|
-
}, null, 8, ["model-value", "type", "options", "onUpdateModelValue", "onCommit", "onCancel"])) : (
|
|
370
|
-
|
|
371
|
+
"model-value": ue(o, e.column),
|
|
372
|
+
type: ce(e.column),
|
|
373
|
+
options: re(e.column),
|
|
374
|
+
onUpdateModelValue: (l) => ae(o, e.column, l),
|
|
375
|
+
onCommit: (l) => ge(o, e.column, l),
|
|
376
|
+
onCancel: (l) => de(o, e.column)
|
|
377
|
+
}, null, 8, ["model-value", "type", "options", "onUpdateModelValue", "onCommit", "onCancel"])) : (i(), s("span", bt, [
|
|
378
|
+
we(a(V), {
|
|
371
379
|
render: e.column.columnDef.cell,
|
|
372
380
|
props: e.getContext()
|
|
373
381
|
}, null, 8, ["render", "props"])
|
|
374
382
|
]))
|
|
375
|
-
], 44,
|
|
383
|
+
], 44, xt))), 128))
|
|
376
384
|
], 4))), 128)),
|
|
377
|
-
|
|
385
|
+
fe.value.length === 0 ? (i(), s("tr", kt, [
|
|
378
386
|
c("td", {
|
|
379
|
-
colspan:
|
|
387
|
+
colspan: U.value,
|
|
380
388
|
class: "px-3 py-10 text-center text-sm text-[rgba(0,0,0,0.45)]"
|
|
381
|
-
}, M(f.loading ?
|
|
389
|
+
}, M(f.loading ? a(v)("gsc.grid.table.loading") : a(v)("gsc.grid.table.empty")), 9, Ct)
|
|
382
390
|
])) : u("", !0)
|
|
383
391
|
])
|
|
384
392
|
]),
|
|
385
393
|
c("div", {
|
|
386
|
-
style: p({ height: `${
|
|
394
|
+
style: p({ height: `${Ee.value}px` })
|
|
387
395
|
}, null, 4)
|
|
388
396
|
], 36)
|
|
389
|
-
])) : (
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
397
|
+
])) : (i(), s("div", {
|
|
398
|
+
key: 0,
|
|
399
|
+
class: "overflow-auto",
|
|
400
|
+
style: p(Ie.value)
|
|
401
|
+
}, [
|
|
402
|
+
c("table", Ge, [
|
|
403
|
+
c("thead", Ne, [
|
|
404
|
+
(i(!0), s(x, null, b(L.value, (o) => (i(), s("tr", {
|
|
393
405
|
key: o.id
|
|
394
406
|
}, [
|
|
395
|
-
f.enableRowSelection ? (
|
|
407
|
+
f.enableRowSelection ? (i(), s("th", {
|
|
396
408
|
key: 0,
|
|
397
409
|
class: "gsc-th text-center",
|
|
398
|
-
style: p(
|
|
410
|
+
style: p(q.value)
|
|
399
411
|
}, [
|
|
400
412
|
c("input", {
|
|
401
413
|
type: "checkbox",
|
|
402
414
|
class: "gsc-checkbox",
|
|
403
|
-
checked:
|
|
404
|
-
".indeterminate":
|
|
405
|
-
onChange: n[0] || (n[0] = (e) =>
|
|
406
|
-
}, null, 40,
|
|
415
|
+
checked: g.value.getIsAllPageRowsSelected?.(),
|
|
416
|
+
".indeterminate": g.value.getIsSomePageRowsSelected?.(),
|
|
417
|
+
onChange: n[0] || (n[0] = (e) => g.value.toggleAllPageRowsSelected?.(!!e.target.checked))
|
|
418
|
+
}, null, 40, We)
|
|
407
419
|
], 4)) : u("", !0),
|
|
408
|
-
(
|
|
420
|
+
(i(!0), s(x, null, b(o.headers, (e) => (i(), s("th", {
|
|
409
421
|
key: e.id,
|
|
410
422
|
class: "gsc-th",
|
|
411
|
-
style: p(
|
|
423
|
+
style: p(Q(e)),
|
|
412
424
|
onDragover: n[1] || (n[1] = k(() => {
|
|
413
425
|
}, ["prevent"])),
|
|
414
|
-
onDrop: (l) =>
|
|
426
|
+
onDrop: (l) => K(l, e.column)
|
|
415
427
|
}, [
|
|
416
|
-
c("div",
|
|
428
|
+
c("div", je, [
|
|
417
429
|
c("div", {
|
|
418
|
-
class:
|
|
419
|
-
onClick: (l) =>
|
|
430
|
+
class: _e(["flex items-center gap-1 min-w-0", e.column.getCanSort?.() ? "cursor-pointer" : ""]),
|
|
431
|
+
onClick: (l) => N(l, e)
|
|
420
432
|
}, [
|
|
421
433
|
c("span", {
|
|
422
434
|
class: "text-[rgba(0,0,0,0.25)] hover:text-[rgba(0,0,0,0.45)] cursor-grab select-none",
|
|
423
|
-
title:
|
|
435
|
+
title: a(v)("gsc.grid.table.dragReorder"),
|
|
424
436
|
draggable: "true",
|
|
425
|
-
onDragstart: (l) =>
|
|
426
|
-
}, " ⋮⋮ ", 40,
|
|
427
|
-
c("span",
|
|
428
|
-
e.isPlaceholder ? u("", !0) : (
|
|
437
|
+
onDragstart: (l) => W(l, e.column)
|
|
438
|
+
}, " ⋮⋮ ", 40, Je),
|
|
439
|
+
c("span", Qe, [
|
|
440
|
+
e.isPlaceholder ? u("", !0) : (i(), h(a(V), {
|
|
429
441
|
key: 0,
|
|
430
442
|
render: e.column.columnDef.header,
|
|
431
443
|
props: e.getContext()
|
|
432
444
|
}, null, 8, ["render", "props"]))
|
|
433
445
|
]),
|
|
434
|
-
e.column.getCanSort?.() ? (
|
|
435
|
-
], 10,
|
|
436
|
-
|
|
446
|
+
e.column.getCanSort?.() ? (i(), s("span", Xe, M(G(e.column)), 1)) : u("", !0)
|
|
447
|
+
], 10, qe),
|
|
448
|
+
Y(e.column) ? (i(), h(a(B), {
|
|
437
449
|
key: 0,
|
|
438
450
|
type: "button",
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
"
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
451
|
+
variant: "text",
|
|
452
|
+
size: "icon",
|
|
453
|
+
class: "ml-auto gsc-btn-icon-sm",
|
|
454
|
+
title: a(v)("gsc.grid.table.filter"),
|
|
455
|
+
"aria-label": a(v)("gsc.grid.table.filter"),
|
|
456
|
+
onClick: k((l) => te(e.column.id), ["stop"])
|
|
457
|
+
}, {
|
|
458
|
+
default: H(() => [...n[4] || (n[4] = [
|
|
459
|
+
c("i", {
|
|
460
|
+
class: "i-material-symbols:filter-alt-outline",
|
|
461
|
+
"aria-hidden": "true"
|
|
462
|
+
}, null, -1)
|
|
463
|
+
])]),
|
|
464
|
+
_: 1
|
|
465
|
+
}, 8, ["title", "aria-label", "onClick"])) : u("", !0)
|
|
449
466
|
]),
|
|
450
|
-
y.value === e.column.id ? (
|
|
467
|
+
y.value === e.column.id ? (i(), h(De, {
|
|
451
468
|
key: 0,
|
|
452
|
-
value:
|
|
453
|
-
type:
|
|
454
|
-
options:
|
|
455
|
-
"onUpdate:value": (l) =>
|
|
456
|
-
onApply: (l) =>
|
|
457
|
-
onClear: (l) =>
|
|
469
|
+
value: S[e.column.id],
|
|
470
|
+
type: Z(e.column),
|
|
471
|
+
options: ee(e.column),
|
|
472
|
+
"onUpdate:value": (l) => ne(e.column.id, l),
|
|
473
|
+
onApply: (l) => oe(e.column.id),
|
|
474
|
+
onClear: (l) => le(e.column.id)
|
|
458
475
|
}, null, 8, ["value", "type", "options", "onUpdate:value", "onApply", "onClear"])) : u("", !0),
|
|
459
|
-
e.column.getCanResize?.() ? (
|
|
476
|
+
e.column.getCanResize?.() ? (i(), s("div", {
|
|
460
477
|
key: 1,
|
|
461
478
|
class: "absolute right-0 top-0 h-full w-2 cursor-col-resize",
|
|
462
479
|
onMousedown: k((l) => e.getResizeHandler?.()(l), ["prevent"])
|
|
463
|
-
}, null, 40,
|
|
464
|
-
], 44,
|
|
480
|
+
}, null, 40, Ye)) : u("", !0)
|
|
481
|
+
], 44, Ke))), 128))
|
|
465
482
|
]))), 128))
|
|
466
483
|
]),
|
|
467
484
|
c("tbody", null, [
|
|
468
|
-
(
|
|
485
|
+
(i(!0), s(x, null, b(z.value, (o) => (i(), s("tr", {
|
|
469
486
|
key: o.id,
|
|
470
487
|
class: "gsc-tr"
|
|
471
488
|
}, [
|
|
472
|
-
f.enableRowSelection ? (
|
|
489
|
+
f.enableRowSelection ? (i(), s("td", {
|
|
473
490
|
key: 0,
|
|
474
491
|
class: "gsc-td text-center",
|
|
475
|
-
style: p(
|
|
492
|
+
style: p(J.value)
|
|
476
493
|
}, [
|
|
477
494
|
c("input", {
|
|
478
495
|
type: "checkbox",
|
|
479
496
|
class: "gsc-checkbox",
|
|
480
497
|
checked: o.getIsSelected?.(),
|
|
481
498
|
onChange: (e) => o.toggleSelected?.(!!e.target.checked)
|
|
482
|
-
}, null, 40,
|
|
499
|
+
}, null, 40, Ze)
|
|
483
500
|
], 4)) : u("", !0),
|
|
484
|
-
(
|
|
501
|
+
(i(!0), s(x, null, b(o.getVisibleCells(), (e) => (i(), s("td", {
|
|
485
502
|
key: e.id,
|
|
486
503
|
class: "gsc-td align-top",
|
|
487
|
-
style: p(
|
|
504
|
+
style: p(X(e)),
|
|
488
505
|
onDblclick: (l) => F(o, e.column)
|
|
489
506
|
}, [
|
|
490
|
-
t.$slots[`cell-${e.column.id}`] ?
|
|
507
|
+
t.$slots[`cell-${e.column.id}`] ? Ae(t.$slots, `cell-${e.column.id}`, {
|
|
491
508
|
key: 0,
|
|
492
509
|
value: e.getValue(),
|
|
493
510
|
row: o.original
|
|
494
|
-
}, void 0, !0) : (
|
|
495
|
-
c("div",
|
|
496
|
-
|
|
511
|
+
}, void 0, !0) : (i(), s("div", tt, [
|
|
512
|
+
c("div", nt, [
|
|
513
|
+
T(o, e.column) ? (i(), h($e, {
|
|
497
514
|
key: 0,
|
|
498
|
-
"model-value":
|
|
499
|
-
type:
|
|
500
|
-
options:
|
|
501
|
-
onUpdateModelValue: (l) =>
|
|
502
|
-
onCommit: (l) =>
|
|
503
|
-
onCancel: (l) =>
|
|
504
|
-
}, null, 8, ["model-value", "type", "options", "onUpdateModelValue", "onCommit", "onCancel"])) : (
|
|
505
|
-
|
|
515
|
+
"model-value": ue(o, e.column),
|
|
516
|
+
type: ce(e.column),
|
|
517
|
+
options: re(e.column),
|
|
518
|
+
onUpdateModelValue: (l) => ae(o, e.column, l),
|
|
519
|
+
onCommit: (l) => ge(o, e.column, l),
|
|
520
|
+
onCancel: (l) => de(o, e.column)
|
|
521
|
+
}, null, 8, ["model-value", "type", "options", "onUpdateModelValue", "onCommit", "onCancel"])) : (i(), s("span", ot, [
|
|
522
|
+
we(a(V), {
|
|
506
523
|
render: e.column.columnDef.cell,
|
|
507
524
|
props: e.getContext()
|
|
508
525
|
}, null, 8, ["render", "props"])
|
|
509
526
|
]))
|
|
510
527
|
]),
|
|
511
|
-
|
|
528
|
+
se(e.column) && !T(o, e.column) ? (i(), h(a(B), {
|
|
512
529
|
key: 0,
|
|
513
|
-
|
|
530
|
+
variant: "default",
|
|
531
|
+
class: "shrink-0 mt-0.5 px-2 h-6 text-xs",
|
|
514
532
|
onClick: k((l) => F(o, e.column), ["stop"])
|
|
515
|
-
},
|
|
533
|
+
}, {
|
|
534
|
+
default: H(() => [...n[5] || (n[5] = [
|
|
535
|
+
He(" ✎ ", -1)
|
|
536
|
+
])]),
|
|
537
|
+
_: 1
|
|
538
|
+
}, 8, ["onClick"])) : u("", !0)
|
|
516
539
|
]))
|
|
517
|
-
], 44,
|
|
540
|
+
], 44, et))), 128))
|
|
518
541
|
]))), 128)),
|
|
519
|
-
z.value.length === 0 ? (
|
|
542
|
+
z.value.length === 0 ? (i(), s("tr", lt, [
|
|
520
543
|
c("td", {
|
|
521
|
-
colspan:
|
|
544
|
+
colspan: U.value,
|
|
522
545
|
class: "px-3 py-10 text-center text-sm text-[rgba(0,0,0,0.45)]"
|
|
523
|
-
}, M(f.loading ?
|
|
546
|
+
}, M(f.loading ? a(v)("gsc.grid.table.loading") : a(v)("gsc.grid.table.empty")), 9, it)
|
|
524
547
|
])) : u("", !0)
|
|
525
548
|
])
|
|
526
549
|
])
|
|
527
|
-
]))
|
|
550
|
+
], 4))
|
|
528
551
|
]));
|
|
529
552
|
}
|
|
530
|
-
},
|
|
553
|
+
}, Et = /* @__PURE__ */ Le(_t, [["__scopeId", "data-v-506c5c98"]]);
|
|
531
554
|
export {
|
|
532
|
-
|
|
555
|
+
Et as default
|
|
533
556
|
};
|