@itguy614/clean-ui 1.3.0 → 1.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/dist/clean-ui.css +1 -1
  2. package/dist/components/CuiColorPicker.vue.d.ts.map +1 -1
  3. package/dist/components/CuiColorPicker.vue.js +187 -194
  4. package/dist/components/CuiCombobox.vue.d.ts.map +1 -1
  5. package/dist/components/CuiCombobox.vue.js +2 -2
  6. package/dist/components/CuiCombobox.vue2.js +96 -97
  7. package/dist/components/CuiDataGrid.vue.js +1 -1
  8. package/dist/components/CuiDataGridTable.vue.d.ts.map +1 -1
  9. package/dist/components/CuiDataGridTable.vue.js +212 -190
  10. package/dist/components/CuiDataGridViewManager.vue.d.ts.map +1 -1
  11. package/dist/components/CuiDataGridViewManager.vue.js +5 -4
  12. package/dist/components/CuiDivider.vue.d.ts +1 -3
  13. package/dist/components/CuiDivider.vue.d.ts.map +1 -1
  14. package/dist/components/CuiDivider.vue.js +44 -60
  15. package/dist/components/CuiPagination.vue.d.ts.map +1 -1
  16. package/dist/components/CuiPagination.vue.js +2 -2
  17. package/dist/components/CuiPagination.vue2.js +28 -25
  18. package/dist/components/CuiPopover.vue.d.ts.map +1 -1
  19. package/dist/components/CuiPopover.vue.js +77 -74
  20. package/dist/components/CuiSlider.vue.d.ts.map +1 -1
  21. package/dist/components/CuiSlider.vue.js +5 -167
  22. package/dist/components/CuiSlider.vue2.js +171 -2
  23. package/dist/components/CuiTabs.vue.d.ts.map +1 -1
  24. package/dist/components/CuiTabs.vue.js +2 -2
  25. package/dist/components/CuiTabs.vue2.js +80 -76
  26. package/dist/components/CuiTagInput.vue.d.ts.map +1 -1
  27. package/dist/components/CuiTagInput.vue.js +1 -1
  28. package/dist/components/CuiTagInput.vue2.js +98 -99
  29. package/dist/components/CuiTooltip.vue.d.ts.map +1 -1
  30. package/dist/components/CuiTooltip.vue.js +2 -2
  31. package/dist/components/CuiTooltip.vue2.js +80 -66
  32. package/dist/composables/useDataGrid.d.ts +3 -2
  33. package/dist/composables/useDataGrid.d.ts.map +1 -1
  34. package/dist/composables/useDataGrid.js +222 -190
  35. package/dist/composables/useFieldDescribedBy.d.ts +1 -2
  36. package/dist/composables/useFieldDescribedBy.d.ts.map +1 -1
  37. package/dist/index.d.ts +1 -0
  38. package/dist/index.d.ts.map +1 -1
  39. package/dist/index.js +28 -26
  40. package/dist/version.js +1 -1
  41. package/package.json +1 -1
@@ -1,21 +1,21 @@
1
- import { defineComponent as X, computed as c, ref as Y, openBlock as r, createBlock as s, unref as d, withCtx as n, createVNode as f, normalizeStyle as p, createCommentVNode as y, createElementBlock as k, Fragment as b, renderList as w, createElementVNode as _, createTextVNode as S, toDisplayString as z, withModifiers as T, renderSlot as Z } from "vue";
2
- import { useDataGridState as ee } from "../composables/useDataGrid.js";
3
- import { useVirtualScroll as te } from "../composables/useVirtualScroll.js";
4
- import le from "./CuiTable.vue.js";
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 ae from "./CuiTableHead.vue.js";
7
- import ie from "./CuiTableBody.vue.js";
8
- import M from "./CuiTableRow.vue.js";
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 N from "./CuiCheckbox.vue.js";
11
- import W from "./CuiIcon.vue.js";
12
- import re from "./CuiDropdown.vue.js";
13
- import ne from "./CuiDropdownTrigger.vue.js";
14
- import oe from "./CuiDropdownMenu.vue.js";
15
- import E from "./CuiDropdownItem.vue.js";
16
- import ue from "./CuiButton.vue.js";
17
- import se from "./CuiContextMenu.vue.js";
18
- const de = { style: { display: "inline-flex", "align-items": "center", gap: "calc(0.25rem * var(--cui-density-scale, 1))" } }, ce = ["colspan"], fe = ["colspan"], He = /* @__PURE__ */ X({
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: U }) {
35
- const m = u, $ = U, i = ee(), g = c(() => {
36
- var t;
37
- return (((t = m.bulkActions) == null ? void 0 : t.length) ?? 0) > 0;
38
- }), C = c(
39
- () => i.displayData.value.some((t) => t._actions && t._actions.length > 0)
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 B(t) {
42
- return String(t[m.rowKey] ?? "");
41
+ function $(e) {
42
+ return String(e[v.rowKey] ?? "");
43
43
  }
44
- function D(t) {
45
- return i.selectedRows.value.has(B(t));
44
+ function H(e) {
45
+ return a.selectedRows.value.has($(e));
46
46
  }
47
- const H = c(() => {
48
- const t = i.displayData.value;
49
- if (t.length === 0) return !1;
50
- const a = t.filter((e) => D(e)).length;
51
- return a === 0 ? !1 : a === t.length ? !0 : "indeterminate";
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 G(t) {
54
- t ? i.selectAll(i.displayData.value) : i.clearSelection();
53
+ function J(e) {
54
+ e ? a.selectAll(a.displayData.value) : a.clearSelection();
55
55
  }
56
- function x(t) {
57
- return t._actions ?? [];
56
+ function S(e) {
57
+ return e._actions ?? [];
58
58
  }
59
- function O(t) {
59
+ function Q(e) {
60
60
  var o;
61
- const a = i.columns.find((l) => l.key === t), e = (a == null ? void 0 : a.sortKey) ?? t;
62
- return ((o = i.sort.value) == null ? void 0 : o.key) === e ? i.sort.value.direction === "asc" ? "caret-up" : "caret-down" : "caret-up-down";
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 F(t) {
64
+ function Z(e) {
65
65
  var o;
66
- const a = i.columns.find((l) => l.key === t), e = (a == null ? void 0 : a.sortKey) ?? t;
67
- return ((o = i.sort.value) == null ? void 0 : o.key) === e ? "1" : "0.3";
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 L = c(() => {
70
- const t = i.visibleColumns.value;
71
- if (!t.some((o) => o.width)) return;
72
- let e = 0;
73
- g.value && (e += 48);
74
- for (const o of t)
75
- e += parseInt(o.width ?? "150", 10) || 150;
76
- return C.value && (e += 48), `${e}px`;
77
- }), V = c(() => {
78
- const t = /* @__PURE__ */ new Map();
79
- let a = 0;
80
- g.value && (a += 48);
81
- for (const e of i.visibleColumns.value)
82
- e.sticky && e.width ? (t.set(e.key, `${a}px`), a += parseInt(e.width, 10) || 0) : e.sticky && t.set(e.key, `${a}px`);
83
- return t;
84
- }), A = c(() => {
85
- const t = i.visibleColumns.value;
86
- for (let a = t.length - 1; a >= 0; a--)
87
- if (t[a].sticky) return t[a].key;
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 j(t) {
91
- const a = V.value.get(t);
92
- if (!a) return;
93
- const e = {
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
- left: a,
96
- zIndex: 4,
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 === A.value && (e.boxShadow = "2px 0 4px -1px rgba(0,0,0,0.08)"), e;
121
+ return t && (o.top = 0), e && (o.left = e), e && l && (o.boxShadow = Y), o;
100
122
  }
101
- function q(t) {
102
- const a = V.value.get(t.key), e = !!a, o = m.stickyHeader, l = t.sortable ? { cursor: "pointer", userSelect: "none" } : {};
103
- return (e || o) && (l.position = "sticky", l.background = "var(--cui-table-head-bg, var(--color-surface-50))", l.zIndex = e && o ? 11 : e ? 5 : 10), o && (l.top = 0), e && (l.left = a, t.key === A.value && (l.boxShadow = "2px 0 4px -1px rgba(0,0,0,0.08)")), l;
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 I = c(
106
- () => m.stickyHeader ? {
107
- position: "sticky",
108
- top: 0,
109
- zIndex: 10,
110
- background: "var(--cui-table-head-bg, var(--color-surface-50))"
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 v = te(
117
- c(() => i.displayData.value),
136
+ const p = ye(
137
+ s(() => a.displayData.value),
118
138
  {
119
- containerRef: R,
120
- rowHeight: m.virtualRowHeight
139
+ containerRef: K,
140
+ rowHeight: v.virtualRowHeight
121
141
  }
122
- ), P = c(
123
- () => m.virtualize ? v.visibleRows.value : i.displayData.value
124
- ), K = c(() => {
125
- let t = i.visibleColumns.value.length;
126
- return g.value && (t += 1), C.value && (t += 1), t;
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 (t, a) => (r(), s(le, {
148
+ return (e, l) => (i(), d(me, {
129
149
  class: "cui-data-grid-table",
130
- ref: (e) => J((e == null ? void 0 : e.scrollWrapper) ?? null),
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": L.value,
138
- "aria-rowcount": u.virtualize ? d(i).displayData.value.length + 1 : void 0
157
+ "min-width": ee.value,
158
+ "aria-rowcount": u.virtualize ? c(a).displayData.value.length + 1 : void 0
139
159
  }, {
140
- default: n(() => [
141
- f(ae, null, {
142
- default: n(() => [
143
- f(M, {
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: n(() => [
147
- g.value ? (r(), s(h, {
166
+ default: r(() => [
167
+ g.value ? (i(), d(h, {
148
168
  key: 0,
149
- width: "3rem",
169
+ width: D,
150
170
  align: "center",
151
- style: p(I.value)
171
+ style: m(ae.value)
152
172
  }, {
153
- default: n(() => [
154
- u.showSelectAll ? (r(), s(N, {
173
+ default: r(() => [
174
+ u.showSelectAll ? (i(), d(P, {
155
175
  key: 0,
156
- "model-value": H.value === !0,
157
- indeterminate: H.value === "indeterminate",
158
- "onUpdate:modelValue": G
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
- (r(!0), k(b, null, w(d(i).visibleColumns.value, (e) => (r(), s(h, {
164
- key: e.key,
165
- align: e.align,
166
- width: e.width,
167
- nowrap: e.nowrap,
168
- style: p(q(e)),
169
- onClick: (o) => e.sortable ? d(i).applySort(e.key) : void 0
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: n(() => [
172
- _("span", de, [
173
- S(z(e.label) + " ", 1),
174
- e.sortable ? (r(), s(W, {
191
+ default: r(() => [
192
+ E("span", we, [
193
+ _(z(t.label) + " ", 1),
194
+ t.sortable ? (i(), d(j, {
175
195
  key: 0,
176
- name: O(e.key),
196
+ name: Q(t.key),
177
197
  size: "0.875rem",
178
- style: p({ opacity: F(e.key) })
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
- C.value ? (r(), s(h, {
204
+ w.value ? (i(), d(h, {
185
205
  key: 1,
186
- width: "3rem",
187
- style: p(I.value)
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(ie, null, {
196
- default: n(() => [
197
- u.virtualize && d(v).paddingTop.value > 0 ? (r(), k("tr", {
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: p({ height: `${d(v).paddingTop.value}px`, padding: 0, border: 0 })
220
+ style: m({ height: `${c(p).paddingTop.value}px`, padding: 0, border: 0 })
201
221
  }, [
202
- _("td", {
203
- colspan: K.value,
222
+ E("td", {
223
+ colspan: U.value,
204
224
  style: { padding: "0", border: "none" }
205
- }, null, 8, ce)
225
+ }, null, 8, Se)
206
226
  ], 4)) : y("", !0),
207
- (r(!0), k(b, null, w(P.value, (e, o) => (r(), s(se, {
208
- key: B(e),
209
- disabled: x(e).length === 0
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: n(() => [
212
- (r(!0), k(b, null, w(x(e), (l) => (r(), s(E, {
213
- key: l.key,
214
- onSelect: (Q) => $("row-action", { action: l, row: e })
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: n(() => [
217
- S(z(l.label), 1)
236
+ default: r(() => [
237
+ _(z(n.label), 1)
218
238
  ]),
219
239
  _: 2
220
240
  }, 1032, ["onSelect"]))), 128))
221
241
  ]),
222
- default: n(() => [
223
- f(M, {
242
+ default: r(() => [
243
+ f(G, {
224
244
  ref_for: !0,
225
- ref: (l) => {
226
- u.virtualize && o === 0 && d(v).measureRow((l == null ? void 0 : l.rowEl) ?? null);
245
+ ref: (n) => {
246
+ u.virtualize && o === 0 && c(p).measureRow((n == null ? void 0 : n.rowEl) ?? null);
227
247
  },
228
- selected: D(e),
229
- "aria-rowindex": u.virtualize ? d(v).firstVisibleIndex.value + o + 2 : void 0,
248
+ selected: H(t),
249
+ "aria-rowindex": u.virtualize ? c(p).firstVisibleIndex.value + o + 2 : void 0,
230
250
  style: { cursor: "pointer" },
231
- onClick: (l) => $("row-click", { row: e })
251
+ onClick: (n) => B("row-click", { row: t })
232
252
  }, {
233
- default: n(() => [
234
- g.value ? (r(), s(h, {
253
+ default: r(() => [
254
+ g.value ? (i(), d(h, {
235
255
  key: 0,
236
256
  align: "center",
237
- onClick: a[0] || (a[0] = T(() => {
257
+ style: m(le.value),
258
+ onClick: l[0] || (l[0] = W(() => {
238
259
  }, ["stop"]))
239
260
  }, {
240
- default: n(() => [
241
- f(N, {
242
- "model-value": D(e),
243
- "onUpdate:modelValue": (l) => d(i).toggleSelection(B(e))
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
- }, 1024)) : y("", !0),
248
- (r(!0), k(b, null, w(d(i).visibleColumns.value, (l) => (r(), s(h, {
249
- key: l.key,
250
- align: l.align,
251
- nowrap: l.nowrap,
252
- style: p(j(l.key))
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: n(() => [
255
- Z(t.$slots, `cell-${l.key}`, {
256
- value: e[l.key],
257
- row: e
275
+ default: r(() => [
276
+ ce(e.$slots, `cell-${n.key}`, {
277
+ value: t[n.key],
278
+ row: t
258
279
  }, () => [
259
- S(z(e[l.key]), 1)
280
+ _(z(t[n.key]), 1)
260
281
  ])
261
282
  ]),
262
283
  _: 2
263
284
  }, 1032, ["align", "nowrap", "style"]))), 128)),
264
- C.value ? (r(), s(h, {
285
+ w.value ? (i(), d(h, {
265
286
  key: 1,
266
- align: "right",
267
- onClick: a[1] || (a[1] = T(() => {
287
+ align: "center",
288
+ style: x,
289
+ onClick: l[1] || (l[1] = W(() => {
268
290
  }, ["stop"]))
269
291
  }, {
270
- default: n(() => [
271
- x(e).length > 0 ? (r(), s(re, { key: 0 }, {
272
- default: n(() => [
273
- f(ne, null, {
274
- default: n(() => [
275
- f(ue, {
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: n(() => [
281
- f(W, {
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(oe, null, {
292
- default: n(() => [
293
- (r(!0), k(b, null, w(x(e), (l) => (r(), s(E, {
294
- key: l.key,
295
- onSelect: (Q) => $("row-action", { action: l, row: e })
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: n(() => [
298
- S(z(l.label), 1)
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 && d(v).paddingBottom.value > 0 ? (r(), k("tr", {
339
+ u.virtualize && c(p).paddingBottom.value > 0 ? (i(), k("tr", {
318
340
  key: 1,
319
341
  "aria-hidden": "true",
320
- style: p({ height: `${d(v).paddingBottom.value}px`, padding: 0, border: 0 })
342
+ style: m({ height: `${c(p).paddingBottom.value}px`, padding: 0, border: 0 })
321
343
  }, [
322
- _("td", {
323
- colspan: K.value,
344
+ E("td", {
345
+ colspan: U.value,
324
346
  style: { padding: "0", border: "none" }
325
- }, null, 8, fe)
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
- He as default
358
+ Ue as default
337
359
  };
@@ -1 +1 @@
1
- {"version":3,"file":"CuiDataGridViewManager.vue.d.ts","sourceRoot":"","sources":["../../src/components/CuiDataGridViewManager.vue"],"names":[],"mappings":"AA2KA,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;;AA2ZF,wBAMG"}
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 I() {
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 b(f) {
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) => b(r.id), ["stop"])
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: I
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: {}, __VLS_3: {};
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":"AA6IA,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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