@itguy614/clean-ui 1.3.0 → 1.3.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/clean-ui.css +1 -1
- package/dist/components/CuiCombobox.vue.d.ts.map +1 -1
- package/dist/components/CuiCombobox.vue.js +2 -2
- package/dist/components/CuiCombobox.vue2.js +96 -97
- package/dist/components/CuiDataGridTable.vue.d.ts.map +1 -1
- package/dist/components/CuiDataGridTable.vue.js +212 -190
- package/dist/components/CuiDataGridViewManager.vue.d.ts.map +1 -1
- package/dist/components/CuiDataGridViewManager.vue.js +5 -4
- package/dist/components/CuiDivider.vue.d.ts +1 -3
- package/dist/components/CuiDivider.vue.d.ts.map +1 -1
- package/dist/components/CuiDivider.vue.js +44 -60
- package/dist/components/CuiPagination.vue.d.ts.map +1 -1
- package/dist/components/CuiPagination.vue.js +2 -2
- package/dist/components/CuiPagination.vue2.js +28 -25
- package/dist/components/CuiPopover.vue.d.ts.map +1 -1
- package/dist/components/CuiPopover.vue.js +77 -74
- package/dist/components/CuiSlider.vue.d.ts.map +1 -1
- package/dist/components/CuiSlider.vue.js +5 -167
- package/dist/components/CuiSlider.vue2.js +171 -2
- package/dist/components/CuiTabs.vue.d.ts.map +1 -1
- package/dist/components/CuiTabs.vue.js +2 -2
- package/dist/components/CuiTabs.vue2.js +80 -76
- package/dist/components/CuiTagInput.vue.d.ts.map +1 -1
- package/dist/components/CuiTagInput.vue.js +1 -1
- package/dist/components/CuiTagInput.vue2.js +98 -99
- package/dist/components/CuiTooltip.vue.d.ts.map +1 -1
- package/dist/components/CuiTooltip.vue.js +2 -2
- package/dist/components/CuiTooltip.vue2.js +2 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useDataGridState as
|
|
3
|
-
import { useVirtualScroll as
|
|
4
|
-
import
|
|
1
|
+
import { defineComponent as se, computed as s, ref as de, openBlock as i, createBlock as d, unref as c, withCtx as r, createVNode as f, normalizeStyle as m, createCommentVNode as y, createElementBlock as k, Fragment as C, renderList as b, createElementVNode as E, createTextVNode as _, toDisplayString as z, withModifiers as W, renderSlot as ce } from "vue";
|
|
2
|
+
import { useDataGridState as fe } from "../composables/useDataGrid.js";
|
|
3
|
+
import { useVirtualScroll as ye } from "../composables/useVirtualScroll.js";
|
|
4
|
+
import me from "./CuiTable.vue.js";
|
|
5
5
|
/* empty css */
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
6
|
+
import ve from "./CuiTableHead.vue.js";
|
|
7
|
+
import pe from "./CuiTableBody.vue.js";
|
|
8
|
+
import G from "./CuiTableRow.vue.js";
|
|
9
9
|
import h from "./CuiTableCell.vue.js";
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
const
|
|
10
|
+
import P from "./CuiCheckbox.vue.js";
|
|
11
|
+
import j from "./CuiIcon.vue.js";
|
|
12
|
+
import ke from "./CuiDropdown.vue.js";
|
|
13
|
+
import ge from "./CuiDropdownTrigger.vue.js";
|
|
14
|
+
import he from "./CuiDropdownMenu.vue.js";
|
|
15
|
+
import F from "./CuiDropdownItem.vue.js";
|
|
16
|
+
import Ce from "./CuiButton.vue.js";
|
|
17
|
+
import be from "./CuiContextMenu.vue.js";
|
|
18
|
+
const we = { style: { display: "inline-flex", "align-items": "center", gap: "calc(0.25rem * var(--cui-density-scale, 1))" } }, Se = ["colspan"], xe = ["colspan"], D = "3rem", X = "var(--cui-table-head-bg, var(--color-surface-50))", Y = "2px 0 4px -1px rgba(0,0,0,0.08)", Ue = /* @__PURE__ */ se({
|
|
19
19
|
__name: "CuiDataGridTable",
|
|
20
20
|
props: {
|
|
21
21
|
rowKey: { default: "id" },
|
|
@@ -31,254 +31,276 @@ const de = { style: { display: "inline-flex", "align-items": "center", gap: "cal
|
|
|
31
31
|
virtualRowHeight: {}
|
|
32
32
|
},
|
|
33
33
|
emits: ["row-click", "row-action"],
|
|
34
|
-
setup(u, { emit:
|
|
35
|
-
const
|
|
36
|
-
var
|
|
37
|
-
return (((
|
|
38
|
-
}),
|
|
39
|
-
() =>
|
|
34
|
+
setup(u, { emit: q }) {
|
|
35
|
+
const v = u, B = q, a = fe(), g = s(() => {
|
|
36
|
+
var e;
|
|
37
|
+
return (((e = v.bulkActions) == null ? void 0 : e.length) ?? 0) > 0;
|
|
38
|
+
}), w = s(
|
|
39
|
+
() => a.displayData.value.some((e) => e._actions && e._actions.length > 0)
|
|
40
40
|
);
|
|
41
|
-
function
|
|
42
|
-
return String(
|
|
41
|
+
function $(e) {
|
|
42
|
+
return String(e[v.rowKey] ?? "");
|
|
43
43
|
}
|
|
44
|
-
function
|
|
45
|
-
return
|
|
44
|
+
function H(e) {
|
|
45
|
+
return a.selectedRows.value.has($(e));
|
|
46
46
|
}
|
|
47
|
-
const
|
|
48
|
-
const
|
|
49
|
-
if (
|
|
50
|
-
const
|
|
51
|
-
return
|
|
47
|
+
const N = s(() => {
|
|
48
|
+
const e = a.displayData.value;
|
|
49
|
+
if (e.length === 0) return !1;
|
|
50
|
+
const l = e.filter((t) => H(t)).length;
|
|
51
|
+
return l === 0 ? !1 : l === e.length ? !0 : "indeterminate";
|
|
52
52
|
});
|
|
53
|
-
function
|
|
54
|
-
|
|
53
|
+
function J(e) {
|
|
54
|
+
e ? a.selectAll(a.displayData.value) : a.clearSelection();
|
|
55
55
|
}
|
|
56
|
-
function
|
|
57
|
-
return
|
|
56
|
+
function S(e) {
|
|
57
|
+
return e._actions ?? [];
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function Q(e) {
|
|
60
60
|
var o;
|
|
61
|
-
const
|
|
62
|
-
return ((o =
|
|
61
|
+
const l = a.columns.find((n) => n.key === e), t = (l == null ? void 0 : l.sortKey) ?? e;
|
|
62
|
+
return ((o = a.sort.value) == null ? void 0 : o.key) === t ? a.sort.value.direction === "asc" ? "caret-up" : "caret-down" : "caret-up-down";
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function Z(e) {
|
|
65
65
|
var o;
|
|
66
|
-
const
|
|
67
|
-
return ((o =
|
|
66
|
+
const l = a.columns.find((n) => n.key === e), t = (l == null ? void 0 : l.sortKey) ?? e;
|
|
67
|
+
return ((o = a.sort.value) == null ? void 0 : o.key) === t ? "1" : "0.3";
|
|
68
68
|
}
|
|
69
|
-
const
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
return
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
69
|
+
const x = { paddingInline: 0 }, R = D;
|
|
70
|
+
function T(e) {
|
|
71
|
+
const l = e == null ? void 0 : e.trim();
|
|
72
|
+
if (l)
|
|
73
|
+
return /^\d*\.?\d+$/.test(l) ? `${l}px` : /^(\d|\.|(calc|min|max|clamp|var)\()/.test(l) ? l : void 0;
|
|
74
|
+
}
|
|
75
|
+
function V(e) {
|
|
76
|
+
return e.length === 0 ? "0px" : e.length === 1 ? e[0] : `calc(${e.join(" + ")})`;
|
|
77
|
+
}
|
|
78
|
+
const ee = s(() => {
|
|
79
|
+
const e = a.visibleColumns.value;
|
|
80
|
+
if (e.some((l) => l.width))
|
|
81
|
+
return V([
|
|
82
|
+
...g.value ? [D] : [],
|
|
83
|
+
...e.map((l) => T(l.width) ?? "150px"),
|
|
84
|
+
...w.value ? [R] : []
|
|
85
|
+
]);
|
|
86
|
+
}), L = s(() => {
|
|
87
|
+
const e = /* @__PURE__ */ new Map(), l = g.value ? [D] : [];
|
|
88
|
+
for (const t of a.visibleColumns.value) {
|
|
89
|
+
if (!t.sticky) continue;
|
|
90
|
+
e.set(t.key, V(l));
|
|
91
|
+
const o = T(t.width);
|
|
92
|
+
o && l.push(o);
|
|
93
|
+
}
|
|
94
|
+
return e;
|
|
95
|
+
}), A = s(() => {
|
|
96
|
+
const e = a.visibleColumns.value;
|
|
97
|
+
for (let l = e.length - 1; l >= 0; l--)
|
|
98
|
+
if (e[l].sticky) return e[l].key;
|
|
88
99
|
return null;
|
|
89
|
-
});
|
|
90
|
-
function
|
|
91
|
-
const
|
|
92
|
-
|
|
93
|
-
|
|
100
|
+
}), M = s(() => g.value && A.value !== null);
|
|
101
|
+
function O(e, l) {
|
|
102
|
+
const t = { position: "sticky", left: e, zIndex: 4, background: X };
|
|
103
|
+
return l && (t.boxShadow = Y), t;
|
|
104
|
+
}
|
|
105
|
+
function te(e) {
|
|
106
|
+
const l = L.value.get(e);
|
|
107
|
+
return l ? O(l, e === A.value) : void 0;
|
|
108
|
+
}
|
|
109
|
+
const le = s(() => ({
|
|
110
|
+
...x,
|
|
111
|
+
...M.value ? O("0", !1) : {}
|
|
112
|
+
}));
|
|
113
|
+
function I(e, l = !1) {
|
|
114
|
+
const t = v.stickyHeader;
|
|
115
|
+
if (!e && !t) return {};
|
|
116
|
+
const o = {
|
|
94
117
|
position: "sticky",
|
|
95
|
-
|
|
96
|
-
zIndex:
|
|
97
|
-
background: "var(--cui-table-head-bg, var(--color-surface-50))"
|
|
118
|
+
background: X,
|
|
119
|
+
zIndex: e && t ? 11 : e ? 5 : 10
|
|
98
120
|
};
|
|
99
|
-
return t
|
|
121
|
+
return t && (o.top = 0), e && (o.left = e), e && l && (o.boxShadow = Y), o;
|
|
100
122
|
}
|
|
101
|
-
function
|
|
102
|
-
|
|
103
|
-
|
|
123
|
+
function ne(e) {
|
|
124
|
+
return {
|
|
125
|
+
...e.sortable ? { cursor: "pointer", userSelect: "none" } : {},
|
|
126
|
+
...I(L.value.get(e.key), e.key === A.value)
|
|
127
|
+
};
|
|
104
128
|
}
|
|
105
|
-
const
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
} : {}
|
|
112
|
-
), R = Y(null);
|
|
113
|
-
function J(t) {
|
|
114
|
-
R.value = m.virtualize && m.maxHeight ? t : null;
|
|
129
|
+
const ae = s(() => ({
|
|
130
|
+
...x,
|
|
131
|
+
...I(M.value ? "0" : void 0)
|
|
132
|
+
})), ie = s(() => ({ ...x, ...I(void 0) })), K = de(null);
|
|
133
|
+
function re(e) {
|
|
134
|
+
K.value = v.virtualize && v.maxHeight ? e : null;
|
|
115
135
|
}
|
|
116
|
-
const
|
|
117
|
-
|
|
136
|
+
const p = ye(
|
|
137
|
+
s(() => a.displayData.value),
|
|
118
138
|
{
|
|
119
|
-
containerRef:
|
|
120
|
-
rowHeight:
|
|
139
|
+
containerRef: K,
|
|
140
|
+
rowHeight: v.virtualRowHeight
|
|
121
141
|
}
|
|
122
|
-
),
|
|
123
|
-
() =>
|
|
124
|
-
),
|
|
125
|
-
let
|
|
126
|
-
return g.value && (
|
|
142
|
+
), oe = s(
|
|
143
|
+
() => v.virtualize ? p.visibleRows.value : a.displayData.value
|
|
144
|
+
), U = s(() => {
|
|
145
|
+
let e = a.visibleColumns.value.length;
|
|
146
|
+
return g.value && (e += 1), w.value && (e += 1), e;
|
|
127
147
|
});
|
|
128
|
-
return (
|
|
148
|
+
return (e, l) => (i(), d(me, {
|
|
129
149
|
class: "cui-data-grid-table",
|
|
130
|
-
ref: (
|
|
150
|
+
ref: (t) => re((t == null ? void 0 : t.scrollWrapper) ?? null),
|
|
131
151
|
size: u.size,
|
|
132
152
|
striped: u.striped,
|
|
133
153
|
hoverable: u.hoverable,
|
|
134
154
|
bordered: u.bordered,
|
|
135
155
|
"sticky-header": u.stickyHeader,
|
|
136
156
|
"max-height": u.maxHeight,
|
|
137
|
-
"min-width":
|
|
138
|
-
"aria-rowcount": u.virtualize ?
|
|
157
|
+
"min-width": ee.value,
|
|
158
|
+
"aria-rowcount": u.virtualize ? c(a).displayData.value.length + 1 : void 0
|
|
139
159
|
}, {
|
|
140
|
-
default:
|
|
141
|
-
f(
|
|
142
|
-
default:
|
|
143
|
-
f(
|
|
160
|
+
default: r(() => [
|
|
161
|
+
f(ve, null, {
|
|
162
|
+
default: r(() => [
|
|
163
|
+
f(G, {
|
|
144
164
|
"aria-rowindex": u.virtualize ? 1 : void 0
|
|
145
165
|
}, {
|
|
146
|
-
default:
|
|
147
|
-
g.value ? (
|
|
166
|
+
default: r(() => [
|
|
167
|
+
g.value ? (i(), d(h, {
|
|
148
168
|
key: 0,
|
|
149
|
-
width:
|
|
169
|
+
width: D,
|
|
150
170
|
align: "center",
|
|
151
|
-
style:
|
|
171
|
+
style: m(ae.value)
|
|
152
172
|
}, {
|
|
153
|
-
default:
|
|
154
|
-
u.showSelectAll ? (
|
|
173
|
+
default: r(() => [
|
|
174
|
+
u.showSelectAll ? (i(), d(P, {
|
|
155
175
|
key: 0,
|
|
156
|
-
"model-value":
|
|
157
|
-
indeterminate:
|
|
158
|
-
"onUpdate:modelValue":
|
|
176
|
+
"model-value": N.value === !0,
|
|
177
|
+
indeterminate: N.value === "indeterminate",
|
|
178
|
+
"onUpdate:modelValue": J
|
|
159
179
|
}, null, 8, ["model-value", "indeterminate"])) : y("", !0)
|
|
160
180
|
]),
|
|
161
181
|
_: 1
|
|
162
182
|
}, 8, ["style"])) : y("", !0),
|
|
163
|
-
(
|
|
164
|
-
key:
|
|
165
|
-
align:
|
|
166
|
-
width:
|
|
167
|
-
nowrap:
|
|
168
|
-
style:
|
|
169
|
-
onClick: (o) =>
|
|
183
|
+
(i(!0), k(C, null, b(c(a).visibleColumns.value, (t) => (i(), d(h, {
|
|
184
|
+
key: t.key,
|
|
185
|
+
align: t.align,
|
|
186
|
+
width: t.width,
|
|
187
|
+
nowrap: t.nowrap,
|
|
188
|
+
style: m(ne(t)),
|
|
189
|
+
onClick: (o) => t.sortable ? c(a).applySort(t.key) : void 0
|
|
170
190
|
}, {
|
|
171
|
-
default:
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
191
|
+
default: r(() => [
|
|
192
|
+
E("span", we, [
|
|
193
|
+
_(z(t.label) + " ", 1),
|
|
194
|
+
t.sortable ? (i(), d(j, {
|
|
175
195
|
key: 0,
|
|
176
|
-
name:
|
|
196
|
+
name: Q(t.key),
|
|
177
197
|
size: "0.875rem",
|
|
178
|
-
style:
|
|
198
|
+
style: m({ opacity: Z(t.key) })
|
|
179
199
|
}, null, 8, ["name", "style"])) : y("", !0)
|
|
180
200
|
])
|
|
181
201
|
]),
|
|
182
202
|
_: 2
|
|
183
203
|
}, 1032, ["align", "width", "nowrap", "style", "onClick"]))), 128)),
|
|
184
|
-
|
|
204
|
+
w.value ? (i(), d(h, {
|
|
185
205
|
key: 1,
|
|
186
|
-
width:
|
|
187
|
-
style:
|
|
188
|
-
}, null, 8, ["style"])) : y("", !0)
|
|
206
|
+
width: c(R),
|
|
207
|
+
style: m(ie.value)
|
|
208
|
+
}, null, 8, ["width", "style"])) : y("", !0)
|
|
189
209
|
]),
|
|
190
210
|
_: 1
|
|
191
211
|
}, 8, ["aria-rowindex"])
|
|
192
212
|
]),
|
|
193
213
|
_: 1
|
|
194
214
|
}),
|
|
195
|
-
f(
|
|
196
|
-
default:
|
|
197
|
-
u.virtualize &&
|
|
215
|
+
f(pe, null, {
|
|
216
|
+
default: r(() => [
|
|
217
|
+
u.virtualize && c(p).paddingTop.value > 0 ? (i(), k("tr", {
|
|
198
218
|
key: 0,
|
|
199
219
|
"aria-hidden": "true",
|
|
200
|
-
style:
|
|
220
|
+
style: m({ height: `${c(p).paddingTop.value}px`, padding: 0, border: 0 })
|
|
201
221
|
}, [
|
|
202
|
-
|
|
203
|
-
colspan:
|
|
222
|
+
E("td", {
|
|
223
|
+
colspan: U.value,
|
|
204
224
|
style: { padding: "0", border: "none" }
|
|
205
|
-
}, null, 8,
|
|
225
|
+
}, null, 8, Se)
|
|
206
226
|
], 4)) : y("", !0),
|
|
207
|
-
(
|
|
208
|
-
key:
|
|
209
|
-
disabled:
|
|
227
|
+
(i(!0), k(C, null, b(oe.value, (t, o) => (i(), d(be, {
|
|
228
|
+
key: $(t),
|
|
229
|
+
disabled: S(t).length === 0
|
|
210
230
|
}, {
|
|
211
|
-
menu:
|
|
212
|
-
(
|
|
213
|
-
key:
|
|
214
|
-
onSelect: (
|
|
231
|
+
menu: r(() => [
|
|
232
|
+
(i(!0), k(C, null, b(S(t), (n) => (i(), d(F, {
|
|
233
|
+
key: n.key,
|
|
234
|
+
onSelect: (ue) => B("row-action", { action: n, row: t })
|
|
215
235
|
}, {
|
|
216
|
-
default:
|
|
217
|
-
|
|
236
|
+
default: r(() => [
|
|
237
|
+
_(z(n.label), 1)
|
|
218
238
|
]),
|
|
219
239
|
_: 2
|
|
220
240
|
}, 1032, ["onSelect"]))), 128))
|
|
221
241
|
]),
|
|
222
|
-
default:
|
|
223
|
-
f(
|
|
242
|
+
default: r(() => [
|
|
243
|
+
f(G, {
|
|
224
244
|
ref_for: !0,
|
|
225
|
-
ref: (
|
|
226
|
-
u.virtualize && o === 0 &&
|
|
245
|
+
ref: (n) => {
|
|
246
|
+
u.virtualize && o === 0 && c(p).measureRow((n == null ? void 0 : n.rowEl) ?? null);
|
|
227
247
|
},
|
|
228
|
-
selected:
|
|
229
|
-
"aria-rowindex": u.virtualize ?
|
|
248
|
+
selected: H(t),
|
|
249
|
+
"aria-rowindex": u.virtualize ? c(p).firstVisibleIndex.value + o + 2 : void 0,
|
|
230
250
|
style: { cursor: "pointer" },
|
|
231
|
-
onClick: (
|
|
251
|
+
onClick: (n) => B("row-click", { row: t })
|
|
232
252
|
}, {
|
|
233
|
-
default:
|
|
234
|
-
g.value ? (
|
|
253
|
+
default: r(() => [
|
|
254
|
+
g.value ? (i(), d(h, {
|
|
235
255
|
key: 0,
|
|
236
256
|
align: "center",
|
|
237
|
-
|
|
257
|
+
style: m(le.value),
|
|
258
|
+
onClick: l[0] || (l[0] = W(() => {
|
|
238
259
|
}, ["stop"]))
|
|
239
260
|
}, {
|
|
240
|
-
default:
|
|
241
|
-
f(
|
|
242
|
-
"model-value":
|
|
243
|
-
"onUpdate:modelValue": (
|
|
261
|
+
default: r(() => [
|
|
262
|
+
f(P, {
|
|
263
|
+
"model-value": H(t),
|
|
264
|
+
"onUpdate:modelValue": (n) => c(a).toggleSelection($(t))
|
|
244
265
|
}, null, 8, ["model-value", "onUpdate:modelValue"])
|
|
245
266
|
]),
|
|
246
267
|
_: 2
|
|
247
|
-
},
|
|
248
|
-
(
|
|
249
|
-
key:
|
|
250
|
-
align:
|
|
251
|
-
nowrap:
|
|
252
|
-
style:
|
|
268
|
+
}, 1032, ["style"])) : y("", !0),
|
|
269
|
+
(i(!0), k(C, null, b(c(a).visibleColumns.value, (n) => (i(), d(h, {
|
|
270
|
+
key: n.key,
|
|
271
|
+
align: n.align,
|
|
272
|
+
nowrap: n.nowrap,
|
|
273
|
+
style: m(te(n.key))
|
|
253
274
|
}, {
|
|
254
|
-
default:
|
|
255
|
-
|
|
256
|
-
value:
|
|
257
|
-
row:
|
|
275
|
+
default: r(() => [
|
|
276
|
+
ce(e.$slots, `cell-${n.key}`, {
|
|
277
|
+
value: t[n.key],
|
|
278
|
+
row: t
|
|
258
279
|
}, () => [
|
|
259
|
-
|
|
280
|
+
_(z(t[n.key]), 1)
|
|
260
281
|
])
|
|
261
282
|
]),
|
|
262
283
|
_: 2
|
|
263
284
|
}, 1032, ["align", "nowrap", "style"]))), 128)),
|
|
264
|
-
|
|
285
|
+
w.value ? (i(), d(h, {
|
|
265
286
|
key: 1,
|
|
266
|
-
align: "
|
|
267
|
-
|
|
287
|
+
align: "center",
|
|
288
|
+
style: x,
|
|
289
|
+
onClick: l[1] || (l[1] = W(() => {
|
|
268
290
|
}, ["stop"]))
|
|
269
291
|
}, {
|
|
270
|
-
default:
|
|
271
|
-
|
|
272
|
-
default:
|
|
273
|
-
f(
|
|
274
|
-
default:
|
|
275
|
-
f(
|
|
292
|
+
default: r(() => [
|
|
293
|
+
S(t).length > 0 ? (i(), d(ke, { key: 0 }, {
|
|
294
|
+
default: r(() => [
|
|
295
|
+
f(ge, null, {
|
|
296
|
+
default: r(() => [
|
|
297
|
+
f(Ce, {
|
|
276
298
|
variant: "ghost",
|
|
277
299
|
size: "xs",
|
|
278
300
|
style: { opacity: "0.4" }
|
|
279
301
|
}, {
|
|
280
|
-
default:
|
|
281
|
-
f(
|
|
302
|
+
default: r(() => [
|
|
303
|
+
f(j, {
|
|
282
304
|
name: "dots-three",
|
|
283
305
|
size: "1rem"
|
|
284
306
|
})
|
|
@@ -288,14 +310,14 @@ const de = { style: { display: "inline-flex", "align-items": "center", gap: "cal
|
|
|
288
310
|
]),
|
|
289
311
|
_: 1
|
|
290
312
|
}),
|
|
291
|
-
f(
|
|
292
|
-
default:
|
|
293
|
-
(
|
|
294
|
-
key:
|
|
295
|
-
onSelect: (
|
|
313
|
+
f(he, null, {
|
|
314
|
+
default: r(() => [
|
|
315
|
+
(i(!0), k(C, null, b(S(t), (n) => (i(), d(F, {
|
|
316
|
+
key: n.key,
|
|
317
|
+
onSelect: (ue) => B("row-action", { action: n, row: t })
|
|
296
318
|
}, {
|
|
297
|
-
default:
|
|
298
|
-
|
|
319
|
+
default: r(() => [
|
|
320
|
+
_(z(n.label), 1)
|
|
299
321
|
]),
|
|
300
322
|
_: 2
|
|
301
323
|
}, 1032, ["onSelect"]))), 128))
|
|
@@ -314,15 +336,15 @@ const de = { style: { display: "inline-flex", "align-items": "center", gap: "cal
|
|
|
314
336
|
]),
|
|
315
337
|
_: 2
|
|
316
338
|
}, 1032, ["disabled"]))), 128)),
|
|
317
|
-
u.virtualize &&
|
|
339
|
+
u.virtualize && c(p).paddingBottom.value > 0 ? (i(), k("tr", {
|
|
318
340
|
key: 1,
|
|
319
341
|
"aria-hidden": "true",
|
|
320
|
-
style:
|
|
342
|
+
style: m({ height: `${c(p).paddingBottom.value}px`, padding: 0, border: 0 })
|
|
321
343
|
}, [
|
|
322
|
-
|
|
323
|
-
colspan:
|
|
344
|
+
E("td", {
|
|
345
|
+
colspan: U.value,
|
|
324
346
|
style: { padding: "0", border: "none" }
|
|
325
|
-
}, null, 8,
|
|
347
|
+
}, null, 8, xe)
|
|
326
348
|
], 4)) : y("", !0)
|
|
327
349
|
]),
|
|
328
350
|
_: 3
|
|
@@ -333,5 +355,5 @@ const de = { style: { display: "inline-flex", "align-items": "center", gap: "cal
|
|
|
333
355
|
}
|
|
334
356
|
});
|
|
335
357
|
export {
|
|
336
|
-
|
|
358
|
+
Ue as default
|
|
337
359
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CuiDataGridViewManager.vue.d.ts","sourceRoot":"","sources":["../../src/components/CuiDataGridViewManager.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CuiDataGridViewManager.vue.d.ts","sourceRoot":"","sources":["../../src/components/CuiDataGridViewManager.vue"],"names":[],"mappings":"AA4KA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAY9D,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,mBAAmB,CAAC;CAC/B,CAAC;;AA4ZF,wBAMG"}
|
|
@@ -32,7 +32,7 @@ const J = { style: { display: "flex", "align-items": "center", "justify-content"
|
|
|
32
32
|
const e = i.views.value.find((r) => r.id === f);
|
|
33
33
|
e && (o.loadConfig(e.config), i.selectView(f));
|
|
34
34
|
}
|
|
35
|
-
async function
|
|
35
|
+
async function b() {
|
|
36
36
|
if (i.activeViewId.value) {
|
|
37
37
|
c.value = !0;
|
|
38
38
|
try {
|
|
@@ -52,7 +52,7 @@ const J = { style: { display: "flex", "align-items": "center", "justify-content"
|
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
async function
|
|
55
|
+
async function I(f) {
|
|
56
56
|
await i.removeView(f);
|
|
57
57
|
}
|
|
58
58
|
function _() {
|
|
@@ -113,8 +113,9 @@ const J = { style: { display: "flex", "align-items": "center", "justify-content"
|
|
|
113
113
|
l(" " + T(r.name), 1)
|
|
114
114
|
]),
|
|
115
115
|
g("button", {
|
|
116
|
+
type: "button",
|
|
116
117
|
style: { border: "none", background: "none", cursor: "pointer", padding: "calc(0.125rem * var(--cui-density-scale, 1))", color: "var(--cui-text-tertiary)", opacity: "0.6" },
|
|
117
|
-
onClick: $((N) =>
|
|
118
|
+
onClick: $((N) => I(r.id), ["stop"])
|
|
118
119
|
}, [
|
|
119
120
|
t(m, {
|
|
120
121
|
name: "trash",
|
|
@@ -137,7 +138,7 @@ const J = { style: { display: "flex", "align-items": "center", "justify-content"
|
|
|
137
138
|
d(i).activeViewId.value && d(o).isDirty.value ? (n(), u(v, {
|
|
138
139
|
key: 2,
|
|
139
140
|
"close-on-select": !1,
|
|
140
|
-
onSelect:
|
|
141
|
+
onSelect: b
|
|
141
142
|
}, {
|
|
142
143
|
default: a(() => [
|
|
143
144
|
t(m, {
|
|
@@ -16,11 +16,9 @@ export interface CuiDividerProps extends HideableProps {
|
|
|
16
16
|
/** Line color — a color role (mapped to its token) or any CSS color */
|
|
17
17
|
color?: CuiColorOrCss;
|
|
18
18
|
}
|
|
19
|
-
declare var __VLS_1: {}
|
|
19
|
+
declare var __VLS_1: {};
|
|
20
20
|
type __VLS_Slots = {} & {
|
|
21
21
|
default?: (props: typeof __VLS_1) => any;
|
|
22
|
-
} & {
|
|
23
|
-
default?: (props: typeof __VLS_3) => any;
|
|
24
22
|
};
|
|
25
23
|
declare const __VLS_component: import("vue").DefineComponent<CuiDividerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CuiDividerProps> & Readonly<{}>, {
|
|
26
24
|
hidden: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CuiDivider.vue.d.ts","sourceRoot":"","sources":["../../src/components/CuiDivider.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CuiDivider.vue.d.ts","sourceRoot":"","sources":["../../src/components/CuiDivider.vue"],"names":[],"mappings":"AAoJA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGpE,MAAM,MAAM,kBAAkB,GAAG,YAAY,GAAG,UAAU,CAAC;AAC3D,MAAM,MAAM,oBAAoB,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;AAC9D,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE3D,MAAM,WAAW,eAAgB,SAAQ,aAAa;IACpD,kBAAkB;IAClB,WAAW,CAAC,EAAE,kBAAkB,CAAC;IACjC,6DAA6D;IAC7D,aAAa,CAAC,EAAE,oBAAoB,CAAC;IACrC,wBAAwB;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iBAAiB;IACjB,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,wDAAwD;IACxD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,uEAAuE;IACvE,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AAuJD,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAyB/C,QAAA,MAAM,eAAe;;aAvLT,cAAc;iBANV,kBAAkB;aAQtB,MAAM;mBANA,oBAAoB;6EAkMpC,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|