vlite3 1.5.7 → 1.5.9
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/README.md +2 -2
- package/components/Chip/Chip.vue.js +4 -4
- package/components/Clipboard.vue.d.ts +10 -29
- package/components/Clipboard.vue.js +70 -43
- package/components/CommandPalette/CommandPaletteContent.vue2.js +1 -1
- package/components/CommandPalette/{CommandPaletteItem.vue.js → CommandPaletteItem.vue2.js} +1 -1
- package/components/DataTable/DataTableHeader.vue.js +3 -3
- package/components/DataTable/DataTableHeader.vue2.js +28 -28
- package/components/DataTable/useDataTableColumnResize.js +119 -119
- package/components/Dropdown/DropdownMenu.vue.js +1 -1
- package/components/NavbarCommandPalette.vue.js +1 -1
- package/components/StatusChip/status-map.js +4 -0
- package/components/Tabes/Tabes.vue.js +2 -2
- package/components/Tabes/Tabes.vue2.js +139 -137
- package/components/Tabes/types.d.ts +1 -1
- package/components/index.d.ts +2 -0
- package/package.json +5 -6
- package/style.css +1 -1
- package/types/ClipboardTypes.d.ts +28 -0
- package/types/index.d.ts +1 -0
- /package/components/Dropdown/{DropdownMenu.vue2.js → DropdownMenu.vue3.js} +0 -0
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
import { ref as s, computed as
|
|
2
|
-
import { useResizeObserver as
|
|
3
|
-
import { usePersistentState as
|
|
4
|
-
import { pruneUnusableWidths as Ae, sanitizeColumnWidths as
|
|
5
|
-
import { DEFAULT_MIN_COLUMN_WIDTH as
|
|
6
|
-
const
|
|
7
|
-
function
|
|
1
|
+
import { ref as s, computed as p, onMounted as Je, watch as E, nextTick as Te, onUnmounted as Qe } from "vue";
|
|
2
|
+
import { useResizeObserver as Oe } from "@vueuse/core";
|
|
3
|
+
import { usePersistentState as Ze } from "../../utils/usePersistentState.js";
|
|
4
|
+
import { pruneUnusableWidths as Ae, sanitizeColumnWidths as et, computeColumnLayout as tt, COLUMN_WIDTHS_VERSION as De, clampWidth as Be, resolveColumnWidth as nt, minWidthFor as rt, MAX_COLUMN_WIDTH as ze } from "./dataTableColumnWidths.js";
|
|
5
|
+
import { DEFAULT_MIN_COLUMN_WIDTH as mt, SELECTION_COLUMN_WIDTH as ht } from "./dataTableColumnWidths.js";
|
|
6
|
+
const ot = 8, lt = 40, it = 250;
|
|
7
|
+
function ct({
|
|
8
8
|
headers: c,
|
|
9
9
|
enabled: d,
|
|
10
10
|
fullHeightBoundaries: ue,
|
|
11
11
|
persistenceKey: ae,
|
|
12
12
|
isRtl: H,
|
|
13
|
-
tableRef:
|
|
13
|
+
tableRef: h,
|
|
14
14
|
viewportRef: se,
|
|
15
15
|
hasSelectionColumn: de,
|
|
16
16
|
measurementReady: U,
|
|
17
17
|
onCommit: q
|
|
18
18
|
}) {
|
|
19
|
-
const y = s({}),
|
|
19
|
+
const y = s({}), w = s({}), u = s({}), b = s(!1), K = s(!1), R = s(!1), W = s(!1), $ = s(null), ce = s(null), j = s([]), G = s(0), Y = s(0), T = p(() => {
|
|
20
20
|
const e = /* @__PURE__ */ new Map();
|
|
21
21
|
for (const t of c.value) e.set(t.field, t);
|
|
22
22
|
return e;
|
|
23
|
-
}),
|
|
23
|
+
}), O = (e) => !!e && d.value && e.resizable !== !1, S = (e) => rt(e, w.value[e.field]), A = (e) => nt(
|
|
24
24
|
e,
|
|
25
25
|
u.value,
|
|
26
26
|
y.value,
|
|
27
|
-
|
|
28
|
-
), V =
|
|
27
|
+
w.value[e.field]
|
|
28
|
+
), V = p(
|
|
29
29
|
() => d.value && b.value && !K.value
|
|
30
|
-
),
|
|
30
|
+
), D = p(() => {
|
|
31
31
|
const e = c.value[c.value.length - 1];
|
|
32
32
|
return e?.resizable === !1 ? e.field : null;
|
|
33
|
-
}), J = (e) =>
|
|
33
|
+
}), J = (e) => tt({
|
|
34
34
|
headers: c.value,
|
|
35
35
|
userWidths: e,
|
|
36
36
|
baseWidths: y.value,
|
|
37
|
-
minimumWidths:
|
|
37
|
+
minimumWidths: w.value,
|
|
38
38
|
hasSelectionColumn: de.value,
|
|
39
39
|
containerWidth: ce.value,
|
|
40
|
-
trailingFillField:
|
|
41
|
-
}), Q =
|
|
40
|
+
trailingFillField: D.value
|
|
41
|
+
}), Q = p(() => V.value ? J(u.value) : { widths: {}, totalWidth: null, complete: !1 }), ve = p(() => Q.value.widths), ke = p(
|
|
42
42
|
() => Q.value.complete ? Q.value.totalWidth : null
|
|
43
43
|
), Z = () => {
|
|
44
|
-
const e =
|
|
44
|
+
const e = h.value;
|
|
45
45
|
if (!e) return {};
|
|
46
46
|
const t = {};
|
|
47
47
|
return e.querySelectorAll("thead th[data-vlite-col]").forEach((r) => {
|
|
@@ -49,7 +49,7 @@ function dt({
|
|
|
49
49
|
o && Number.isFinite(l) && l > 0 && (t[o] = Math.round(l));
|
|
50
50
|
}), t;
|
|
51
51
|
}, fe = () => {
|
|
52
|
-
const e =
|
|
52
|
+
const e = h.value;
|
|
53
53
|
if (!e || typeof window > "u") return {};
|
|
54
54
|
const t = {};
|
|
55
55
|
return e.querySelectorAll("thead th[data-vlite-col]").forEach((r) => {
|
|
@@ -57,31 +57,31 @@ function dt({
|
|
|
57
57
|
if (!o || !l) return;
|
|
58
58
|
const a = Array.from(l.children).filter(
|
|
59
59
|
(le) => le instanceof HTMLElement
|
|
60
|
-
),
|
|
61
|
-
const
|
|
62
|
-
return le + Math.max(ie.scrollWidth, ie.getBoundingClientRect().width) +
|
|
63
|
-
}, i * Math.max(0, a.length - 1)),
|
|
60
|
+
), f = window.getComputedStyle(l), i = Number.parseFloat(f.columnGap) || 0, m = (Number.parseFloat(f.paddingInlineStart) || 0) + (Number.parseFloat(f.paddingInlineEnd) || 0), P = a.reduce((le, ie) => {
|
|
61
|
+
const Pe = window.getComputedStyle(ie), Ve = (Number.parseFloat(Pe.marginInlineStart) || 0) + (Number.parseFloat(Pe.marginInlineEnd) || 0);
|
|
62
|
+
return le + Math.max(ie.scrollWidth, ie.getBoundingClientRect().width) + Ve;
|
|
63
|
+
}, m + i * Math.max(0, a.length - 1)), Ne = window.getComputedStyle(r), Ye = (Number.parseFloat(Ne.paddingInlineStart) || 0) + (Number.parseFloat(Ne.paddingInlineEnd) || 0), oe = Math.ceil(P + Ye);
|
|
64
64
|
Number.isFinite(oe) && oe > 0 && (t[o] = oe);
|
|
65
65
|
}), t;
|
|
66
66
|
}, me = () => {
|
|
67
67
|
const e = fe();
|
|
68
|
-
Object.keys(e).length && (
|
|
68
|
+
Object.keys(e).length && (w.value = { ...w.value, ...e });
|
|
69
69
|
};
|
|
70
|
-
let
|
|
71
|
-
const
|
|
72
|
-
if (!
|
|
70
|
+
let M = null;
|
|
71
|
+
const I = /* @__PURE__ */ new Set(), he = (e) => {
|
|
72
|
+
if (!M) return;
|
|
73
73
|
const t = new Set(e);
|
|
74
|
-
for (const r of
|
|
75
|
-
t.has(r) || (
|
|
74
|
+
for (const r of I)
|
|
75
|
+
t.has(r) || (M.unobserve(r), I.delete(r));
|
|
76
76
|
for (const r of t)
|
|
77
|
-
|
|
78
|
-
},
|
|
77
|
+
I.has(r) || (M.observe(r), I.add(r));
|
|
78
|
+
}, _e = () => {
|
|
79
79
|
if (!d.value || !ue.value) {
|
|
80
80
|
he([]), j.value = [], G.value = 0, Y.value = 0;
|
|
81
81
|
return;
|
|
82
82
|
}
|
|
83
83
|
if (W.value) return;
|
|
84
|
-
const e =
|
|
84
|
+
const e = h.value;
|
|
85
85
|
if (!e) return;
|
|
86
86
|
const t = e.getBoundingClientRect();
|
|
87
87
|
if (t.width <= 0 || t.height <= 0) return;
|
|
@@ -91,91 +91,91 @@ function dt({
|
|
|
91
91
|
he(r);
|
|
92
92
|
const o = [];
|
|
93
93
|
r.forEach((l) => {
|
|
94
|
-
const a = l.dataset.vliteCol,
|
|
95
|
-
if (!a || !
|
|
94
|
+
const a = l.dataset.vliteCol, f = a ? T.value.get(a) : void 0;
|
|
95
|
+
if (!a || !O(f)) return;
|
|
96
96
|
const i = l.getBoundingClientRect();
|
|
97
97
|
if (i.width <= 0 || i.height <= 0) return;
|
|
98
|
-
const
|
|
99
|
-
Number.isFinite(
|
|
98
|
+
const m = H.value ? t.right - i.left : i.right - t.left;
|
|
99
|
+
Number.isFinite(m) && o.push({ field: a, offset: m });
|
|
100
100
|
}), j.value = o, G.value = t.width, Y.value = t.height;
|
|
101
101
|
};
|
|
102
102
|
let C = null;
|
|
103
103
|
const v = () => {
|
|
104
104
|
typeof window > "u" || C != null || (C = window.requestAnimationFrame(() => {
|
|
105
|
-
C = null,
|
|
105
|
+
C = null, _e();
|
|
106
106
|
}));
|
|
107
|
-
},
|
|
107
|
+
}, xe = () => {
|
|
108
108
|
C == null || typeof window > "u" || (window.cancelAnimationFrame(C), C = null);
|
|
109
109
|
}, ee = () => {
|
|
110
110
|
if (me(), b.value) return !0;
|
|
111
111
|
const e = Z();
|
|
112
112
|
return Object.keys(e).length ? (y.value = { ...y.value, ...e }, b.value = !0, !0) : !1;
|
|
113
|
-
},
|
|
113
|
+
}, Xe = async () => {
|
|
114
114
|
if (!d.value || !b.value || W.value) return;
|
|
115
115
|
if (!c.value.some((o) => y.value[o.field] == null)) {
|
|
116
116
|
me();
|
|
117
117
|
return;
|
|
118
118
|
}
|
|
119
|
-
K.value = !0, await
|
|
119
|
+
K.value = !0, await Te();
|
|
120
120
|
const t = Z(), r = fe();
|
|
121
|
-
K.value = !1, y.value = { ...y.value, ...t },
|
|
122
|
-
}, B =
|
|
121
|
+
K.value = !1, y.value = { ...y.value, ...t }, w.value = { ...w.value, ...r };
|
|
122
|
+
}, B = p(
|
|
123
123
|
() => ae.value ? `data-table:${ae.value}:column-widths` : null
|
|
124
|
-
),
|
|
124
|
+
), pe = p(() => !!B.value), te = Ze(
|
|
125
125
|
() => B.value ?? "data-table:@session:column-widths",
|
|
126
126
|
{ version: De, widths: {} },
|
|
127
127
|
{ writeDefaults: !1, onError: () => {
|
|
128
128
|
} }
|
|
129
129
|
), ne = () => {
|
|
130
|
-
|
|
130
|
+
pe.value && (te.value = {
|
|
131
131
|
version: De,
|
|
132
132
|
widths: Ae(u.value, c.value)
|
|
133
133
|
});
|
|
134
134
|
};
|
|
135
|
-
let
|
|
136
|
-
const
|
|
137
|
-
z || typeof document > "u" || (
|
|
138
|
-
},
|
|
139
|
-
!z || typeof document > "u" || (document.body.style.cursor =
|
|
135
|
+
let ye = "", we = "", z = !1;
|
|
136
|
+
const He = () => {
|
|
137
|
+
z || typeof document > "u" || (ye = document.body.style.cursor, we = document.body.style.userSelect, document.body.style.cursor = "col-resize", document.body.style.userSelect = "none", z = !0);
|
|
138
|
+
}, Ue = () => {
|
|
139
|
+
!z || typeof document > "u" || (document.body.style.cursor = ye, document.body.style.userSelect = we, z = !1);
|
|
140
140
|
}, ge = () => H.value ? -1 : 1, be = (e, t) => {
|
|
141
141
|
u.value = { ...u.value, [e]: Math.round(t) };
|
|
142
142
|
}, k = (e) => {
|
|
143
|
-
const t =
|
|
143
|
+
const t = h.value;
|
|
144
144
|
if (!t) return null;
|
|
145
145
|
for (const r of t.querySelectorAll("col[data-vlite-col]"))
|
|
146
146
|
if (r.dataset.vliteCol === e) return r;
|
|
147
147
|
return null;
|
|
148
148
|
};
|
|
149
149
|
let n = null, F = null;
|
|
150
|
-
const We = (e) =>
|
|
150
|
+
const We = (e) => Be(
|
|
151
151
|
e.startWidth + (e.lastX - e.startX) * ge(),
|
|
152
152
|
e.min,
|
|
153
|
-
|
|
154
|
-
),
|
|
153
|
+
ze
|
|
154
|
+
), qe = () => {
|
|
155
155
|
F != null && (cancelAnimationFrame(F), F = null);
|
|
156
|
-
},
|
|
156
|
+
}, Ke = () => {
|
|
157
157
|
if (!n) return;
|
|
158
158
|
const e = Math.round(We(n)), t = J({ ...u.value, [n.field]: e });
|
|
159
159
|
n.col || (n.col = k(n.field)), n.col && (n.col.style.width = `${t.widths[n.field] ?? e}px`);
|
|
160
|
-
const r =
|
|
160
|
+
const r = D.value;
|
|
161
161
|
if (r) {
|
|
162
162
|
n.trailingFillCol || (n.trailingFillCol = k(r));
|
|
163
163
|
const l = t.widths[r];
|
|
164
164
|
n.trailingFillCol && l != null && (n.trailingFillCol.style.width = `${l}px`);
|
|
165
165
|
}
|
|
166
|
-
|
|
166
|
+
h.value && t.totalWidth != null && (h.value.style.width = `${t.totalWidth}px`, n.boundaryLayer && (n.boundaryLayer.style.inlineSize = `${t.totalWidth}px`));
|
|
167
167
|
const o = t.widths[n.field] ?? e;
|
|
168
168
|
n.boundary && n.boundaryStart != null && (n.boundary.style.insetInlineStart = `${n.boundaryStart + o - n.startWidth}px`);
|
|
169
169
|
}, Ce = (e) => {
|
|
170
170
|
!n || e.pointerId !== n.pointerId || (e.cancelable && e.preventDefault(), n.lastX = e.clientX, e.clientX !== n.startX && (n.moved = !0), F == null && (F = requestAnimationFrame(() => {
|
|
171
|
-
F = null,
|
|
171
|
+
F = null, Ke();
|
|
172
172
|
})));
|
|
173
|
-
},
|
|
173
|
+
}, Re = () => {
|
|
174
174
|
typeof window > "u" || (n?.handle?.removeEventListener("lostpointercapture", Ee), n?.handle?.hasPointerCapture(n.pointerId) && n.handle.releasePointerCapture(n.pointerId), window.removeEventListener("pointermove", Ce), window.removeEventListener("pointerup", Fe), window.removeEventListener("pointercancel", Le), window.removeEventListener("keydown", Se, !0), window.removeEventListener("blur", Me));
|
|
175
|
-
},
|
|
175
|
+
}, g = (e) => {
|
|
176
176
|
const t = n;
|
|
177
|
-
if (
|
|
178
|
-
if (t.col?.style.removeProperty("width"), t.trailingFillCol?.style.removeProperty("width"), t.boundary?.style.removeProperty("inset-inline-start"), t.boundaryLayer?.style.removeProperty("inline-size"),
|
|
177
|
+
if (qe(), Re(), Ue(), n = null, W.value = !1, $.value = null, !t) return;
|
|
178
|
+
if (t.col?.style.removeProperty("width"), t.trailingFillCol?.style.removeProperty("width"), t.boundary?.style.removeProperty("inset-inline-start"), t.boundaryLayer?.style.removeProperty("inline-size"), h.value?.style.removeProperty("width"), !t.moved || !e) {
|
|
179
179
|
v();
|
|
180
180
|
return;
|
|
181
181
|
}
|
|
@@ -192,84 +192,84 @@ function dt({
|
|
|
192
192
|
}), v();
|
|
193
193
|
};
|
|
194
194
|
function Fe(e) {
|
|
195
|
-
!n || e.pointerId !== n.pointerId ||
|
|
195
|
+
!n || e.pointerId !== n.pointerId || g(!0);
|
|
196
196
|
}
|
|
197
197
|
function Le(e) {
|
|
198
|
-
!n || e.pointerId !== n.pointerId ||
|
|
198
|
+
!n || e.pointerId !== n.pointerId || g(!1);
|
|
199
199
|
}
|
|
200
200
|
function Ee(e) {
|
|
201
|
-
!n || e.pointerId !== n.pointerId ||
|
|
201
|
+
!n || e.pointerId !== n.pointerId || g(!1);
|
|
202
202
|
}
|
|
203
203
|
function Se(e) {
|
|
204
|
-
e.key === "Escape" && (e.preventDefault(),
|
|
204
|
+
e.key === "Escape" && (e.preventDefault(), g(!1));
|
|
205
205
|
}
|
|
206
206
|
function Me() {
|
|
207
|
-
|
|
207
|
+
g(!1);
|
|
208
208
|
}
|
|
209
|
-
const
|
|
210
|
-
const r =
|
|
211
|
-
if (!
|
|
209
|
+
const $e = (e, t) => {
|
|
210
|
+
const r = T.value.get(e);
|
|
211
|
+
if (!O(r) || n || t.button !== 0 || !ee()) return;
|
|
212
212
|
t.preventDefault(), t.stopPropagation(), X();
|
|
213
213
|
const o = J(u.value), l = Z()[e], a = Math.round(
|
|
214
|
-
o.widths[e] ?? l ??
|
|
215
|
-
),
|
|
214
|
+
o.widths[e] ?? l ?? A(r) ?? S(r)
|
|
215
|
+
), f = t.currentTarget, i = f instanceof HTMLElement ? f : null, m = i?.dataset.vliteResizeBoundary === e ? i : null, P = m ? Number.parseFloat(m.style.insetInlineStart) : null;
|
|
216
216
|
n = {
|
|
217
217
|
field: e,
|
|
218
218
|
pointerId: t.pointerId,
|
|
219
219
|
startX: t.clientX,
|
|
220
220
|
lastX: t.clientX,
|
|
221
221
|
startWidth: a,
|
|
222
|
-
min:
|
|
222
|
+
min: S(r),
|
|
223
223
|
moved: !1,
|
|
224
224
|
handle: i,
|
|
225
225
|
col: k(e),
|
|
226
|
-
trailingFillCol:
|
|
227
|
-
boundary:
|
|
228
|
-
boundaryLayer:
|
|
229
|
-
boundaryStart:
|
|
230
|
-
}, W.value = !0, $.value = e,
|
|
226
|
+
trailingFillCol: D.value ? k(D.value) : null,
|
|
227
|
+
boundary: m,
|
|
228
|
+
boundaryLayer: m?.parentElement ?? null,
|
|
229
|
+
boundaryStart: P != null && Number.isFinite(P) ? P : null
|
|
230
|
+
}, W.value = !0, $.value = e, He(), i?.setPointerCapture(t.pointerId), i?.addEventListener("lostpointercapture", Ee), !(typeof window > "u") && (window.addEventListener("pointermove", Ce, { passive: !1 }), window.addEventListener("pointerup", Fe), window.addEventListener("pointercancel", Le), window.addEventListener("keydown", Se, !0), window.addEventListener("blur", Me));
|
|
231
231
|
};
|
|
232
|
-
let L = null, _ = null,
|
|
232
|
+
let L = null, _ = null, N = null, re = null;
|
|
233
233
|
const x = () => {
|
|
234
|
-
L && clearTimeout(L), L = null, _ = null,
|
|
234
|
+
L && clearTimeout(L), L = null, _ = null, N = null, re = null;
|
|
235
235
|
}, X = () => {
|
|
236
236
|
const e = _;
|
|
237
237
|
x(), e?.();
|
|
238
|
-
},
|
|
239
|
-
const o =
|
|
240
|
-
if (!
|
|
241
|
-
const l = Math.round(
|
|
242
|
-
l + (r ?
|
|
243
|
-
|
|
244
|
-
|
|
238
|
+
}, je = (e, t, r = !1) => {
|
|
239
|
+
const o = T.value.get(e);
|
|
240
|
+
if (!O(o) || (_ && N !== e && X(), !ee())) return;
|
|
241
|
+
const l = Math.round(A(o) ?? S(o)), a = N === e ? re : l, i = Be(
|
|
242
|
+
l + (r ? lt : ot) * t * ge(),
|
|
243
|
+
S(o),
|
|
244
|
+
ze
|
|
245
245
|
);
|
|
246
|
-
i !== l && (be(e, i), L && clearTimeout(L),
|
|
246
|
+
i !== l && (be(e, i), L && clearTimeout(L), N = e, re = a, _ = () => {
|
|
247
247
|
ne(), q?.({ field: e, width: i, previousWidth: a, source: "keyboard" });
|
|
248
|
-
}, L = setTimeout(X,
|
|
249
|
-
},
|
|
250
|
-
const t =
|
|
251
|
-
if (!
|
|
252
|
-
|
|
253
|
-
const r =
|
|
248
|
+
}, L = setTimeout(X, it));
|
|
249
|
+
}, Ge = (e) => {
|
|
250
|
+
const t = T.value.get(e);
|
|
251
|
+
if (!O(t) || u.value[e] == null) return;
|
|
252
|
+
N === e ? x() : X();
|
|
253
|
+
const r = A(t) ?? u.value[e], o = { ...u.value };
|
|
254
254
|
delete o[e], u.value = o, ne(), q?.({ field: e, width: null, previousWidth: r, source: "reset" });
|
|
255
255
|
}, Ie = () => {
|
|
256
256
|
const e = se.value?.clientWidth;
|
|
257
257
|
e != null && Number.isFinite(e) && e > 0 && (ce.value = e), v();
|
|
258
258
|
};
|
|
259
|
-
return
|
|
260
|
-
R.value = !0, typeof ResizeObserver < "u" && (
|
|
261
|
-
}),
|
|
259
|
+
return Oe(se, Ie), Oe(h, v), Je(() => {
|
|
260
|
+
R.value = !0, typeof ResizeObserver < "u" && (M = new ResizeObserver(v)), Ie(), v();
|
|
261
|
+
}), E(
|
|
262
262
|
[B, d, te],
|
|
263
263
|
() => {
|
|
264
|
-
!d.value || W.value || !
|
|
265
|
-
|
|
264
|
+
!d.value || W.value || !pe.value || (u.value = Ae(
|
|
265
|
+
et(te.value),
|
|
266
266
|
c.value
|
|
267
267
|
));
|
|
268
268
|
},
|
|
269
269
|
{ immediate: !0, deep: !0 }
|
|
270
|
-
),
|
|
270
|
+
), E(B, (e, t) => {
|
|
271
271
|
e !== t && (x(), e || (u.value = {}));
|
|
272
|
-
}),
|
|
272
|
+
}), E(
|
|
273
273
|
[
|
|
274
274
|
d,
|
|
275
275
|
U,
|
|
@@ -278,15 +278,15 @@ function dt({
|
|
|
278
278
|
() => c.value.length
|
|
279
279
|
],
|
|
280
280
|
async () => {
|
|
281
|
-
!d.value || !U.value || !R.value || b.value || !Object.keys(u.value).length || (await
|
|
281
|
+
!d.value || !U.value || !R.value || b.value || !Object.keys(u.value).length || (await Te(), ee());
|
|
282
282
|
},
|
|
283
283
|
{ immediate: !0 }
|
|
284
|
-
),
|
|
284
|
+
), E(
|
|
285
285
|
() => c.value.map((e) => e.field).join("\0"),
|
|
286
286
|
() => {
|
|
287
|
-
d.value && b.value &&
|
|
287
|
+
d.value && b.value && Xe(), v();
|
|
288
288
|
}
|
|
289
|
-
),
|
|
289
|
+
), E(
|
|
290
290
|
[
|
|
291
291
|
d,
|
|
292
292
|
ue,
|
|
@@ -298,31 +298,31 @@ function dt({
|
|
|
298
298
|
],
|
|
299
299
|
v,
|
|
300
300
|
{ deep: !0, flush: "post" }
|
|
301
|
-
),
|
|
302
|
-
!e && n &&
|
|
303
|
-
}),
|
|
304
|
-
x(),
|
|
301
|
+
), E(d, (e) => {
|
|
302
|
+
!e && n && g(!1);
|
|
303
|
+
}), Qe(() => {
|
|
304
|
+
x(), g(!1), xe(), M?.disconnect(), I.clear();
|
|
305
305
|
}), {
|
|
306
306
|
isResizing: W,
|
|
307
307
|
activeField: $,
|
|
308
308
|
isApplyingWidths: V,
|
|
309
309
|
columnWidths: ve,
|
|
310
|
-
tableWidth:
|
|
310
|
+
tableWidth: ke,
|
|
311
311
|
columnBoundaries: j,
|
|
312
312
|
boundaryLayerWidth: G,
|
|
313
313
|
boundaryLayerHeight: Y,
|
|
314
|
-
minWidthFor:
|
|
315
|
-
resolveWidth:
|
|
316
|
-
startResize:
|
|
317
|
-
adjustWidth:
|
|
318
|
-
resetColumn:
|
|
314
|
+
minWidthFor: S,
|
|
315
|
+
resolveWidth: A,
|
|
316
|
+
startResize: $e,
|
|
317
|
+
adjustWidth: je,
|
|
318
|
+
resetColumn: Ge
|
|
319
319
|
};
|
|
320
320
|
}
|
|
321
321
|
export {
|
|
322
322
|
De as COLUMN_WIDTHS_VERSION,
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
323
|
+
mt as DEFAULT_MIN_COLUMN_WIDTH,
|
|
324
|
+
ze as MAX_COLUMN_WIDTH,
|
|
325
|
+
ht as SELECTION_COLUMN_WIDTH,
|
|
326
|
+
et as sanitizeColumnWidths,
|
|
327
|
+
ct as useDataTableColumnResize
|
|
328
328
|
};
|
|
@@ -3,7 +3,7 @@ import L from "./Icon.vue.js";
|
|
|
3
3
|
import v from "./Modal.vue.js";
|
|
4
4
|
import N from "./CommandPalette/CommandPaletteContent.vue.js";
|
|
5
5
|
import { $t as U } from "../utils/i18n.js";
|
|
6
|
-
/* empty css
|
|
6
|
+
/* empty css */
|
|
7
7
|
const V = { class: "block truncate -text-fs-1.5" }, S = { class: "ms-auto inline-flex items-center gap-0.5 px-1.5 py-0.5 rounded text-[10px] font-mono font-medium border border-border/80 bg-background text-muted-foreground ms-1" }, A = /* @__PURE__ */ x({
|
|
8
8
|
__name: "NavbarCommandPalette",
|
|
9
9
|
props: {
|
|
@@ -25,6 +25,10 @@ const o = {
|
|
|
25
25
|
passed: { variant: "success", icon: "lucide:check-circle-2" },
|
|
26
26
|
instock: { variant: "success", icon: "lucide:package-check" },
|
|
27
27
|
fulfilled: { variant: "success", icon: "lucide:package-check" },
|
|
28
|
+
// ── Network / HTTP ────────────────────────────────────────────────────────
|
|
29
|
+
redirect: { variant: "warning", icon: "lucide:corner-up-right" },
|
|
30
|
+
clienterror: { variant: "orange", icon: "lucide:circle-alert" },
|
|
31
|
+
servererror: { variant: "danger", icon: "lucide:server-crash" },
|
|
28
32
|
// ── CRM / Sales / Leads ───────────────────────────────────────────────────
|
|
29
33
|
prospecting: { variant: "indigo", icon: "lucide:search" },
|
|
30
34
|
qualification: { variant: "purple", icon: "lucide:filter" },
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Tabes.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-3d1e3fc5"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|