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.
@@ -1,47 +1,47 @@
1
- import { ref as s, computed as h, onMounted as Ve, watch as S, nextTick as Oe, onUnmounted as Je } from "vue";
2
- import { useResizeObserver as Pe } from "@vueuse/core";
3
- import { usePersistentState as Qe } from "../../utils/usePersistentState.js";
4
- import { pruneUnusableWidths as Ae, sanitizeColumnWidths as Ze, computeColumnLayout as et, COLUMN_WIDTHS_VERSION as De, clampWidth as Ne, resolveColumnWidth as tt, minWidthFor as nt, MAX_COLUMN_WIDTH as Be } from "./dataTableColumnWidths.js";
5
- import { DEFAULT_MIN_COLUMN_WIDTH as ft, SELECTION_COLUMN_WIDTH as mt } from "./dataTableColumnWidths.js";
6
- const rt = 8, ot = 40, lt = 250;
7
- function dt({
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: m,
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({}), p = 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), P = h(() => {
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
- }), A = (e) => !!e && d.value && e.resizable !== !1, M = (e) => nt(e, p.value[e.field]), D = (e) => tt(
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
- p.value[e.field]
28
- ), V = h(
27
+ w.value[e.field]
28
+ ), V = p(
29
29
  () => d.value && b.value && !K.value
30
- ), N = h(() => {
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) => et({
33
+ }), J = (e) => tt({
34
34
  headers: c.value,
35
35
  userWidths: e,
36
36
  baseWidths: y.value,
37
- minimumWidths: p.value,
37
+ minimumWidths: w.value,
38
38
  hasSelectionColumn: de.value,
39
39
  containerWidth: ce.value,
40
- trailingFillField: N.value
41
- }), Q = h(() => V.value ? J(u.value) : { widths: {}, totalWidth: null, complete: !1 }), ve = h(() => Q.value.widths), ze = h(
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 = m.value;
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 = m.value;
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
- ), g = window.getComputedStyle(l), i = Number.parseFloat(g.columnGap) || 0, f = a.reduce((le, ie) => {
61
- const Te = window.getComputedStyle(ie), Ye = (Number.parseFloat(Te.marginInlineStart) || 0) + (Number.parseFloat(Te.marginInlineEnd) || 0);
62
- return le + Math.max(ie.scrollWidth, ie.getBoundingClientRect().width) + Ye;
63
- }, i * Math.max(0, a.length - 1)), E = window.getComputedStyle(r), Ge = (Number.parseFloat(E.paddingInlineStart) || 0) + (Number.parseFloat(E.paddingInlineEnd) || 0), oe = Math.ceil(f + Ge);
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 && (p.value = { ...p.value, ...e });
68
+ Object.keys(e).length && (w.value = { ...w.value, ...e });
69
69
  };
70
- let I = null;
71
- const T = /* @__PURE__ */ new Set(), he = (e) => {
72
- if (!I) return;
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 T)
75
- t.has(r) || (I.unobserve(r), T.delete(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
- T.has(r) || (I.observe(r), T.add(r));
78
- }, ke = () => {
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 = m.value;
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, g = a ? P.value.get(a) : void 0;
95
- if (!a || !A(g)) return;
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 f = H.value ? t.right - i.left : i.right - t.left;
99
- Number.isFinite(f) && o.push({ field: a, offset: f });
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, ke();
105
+ C = null, _e();
106
106
  }));
107
- }, _e = () => {
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
- }, xe = async () => {
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 Oe();
119
+ K.value = !0, await Te();
120
120
  const t = Z(), r = fe();
121
- K.value = !1, y.value = { ...y.value, ...t }, p.value = { ...p.value, ...r };
122
- }, B = h(
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
- ), ye = h(() => !!B.value), te = Qe(
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
- ye.value && (te.value = {
130
+ pe.value && (te.value = {
131
131
  version: De,
132
132
  widths: Ae(u.value, c.value)
133
133
  });
134
134
  };
135
- let pe = "", we = "", z = !1;
136
- const Xe = () => {
137
- z || typeof document > "u" || (pe = document.body.style.cursor, we = document.body.style.userSelect, document.body.style.cursor = "col-resize", document.body.style.userSelect = "none", z = !0);
138
- }, He = () => {
139
- !z || typeof document > "u" || (document.body.style.cursor = pe, document.body.style.userSelect = we, z = !1);
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 = m.value;
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) => Ne(
150
+ const We = (e) => Be(
151
151
  e.startWidth + (e.lastX - e.startX) * ge(),
152
152
  e.min,
153
- Be
154
- ), Ue = () => {
153
+ ze
154
+ ), qe = () => {
155
155
  F != null && (cancelAnimationFrame(F), F = null);
156
- }, qe = () => {
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 = N.value;
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
- m.value && t.totalWidth != null && (m.value.style.width = `${t.totalWidth}px`, n.boundaryLayer && (n.boundaryLayer.style.inlineSize = `${t.totalWidth}px`));
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, qe();
171
+ F = null, Ke();
172
172
  })));
173
- }, Ke = () => {
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
- }, w = (e) => {
175
+ }, g = (e) => {
176
176
  const t = n;
177
- if (Ue(), Ke(), He(), 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"), m.value?.style.removeProperty("width"), !t.moved || !e) {
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 || w(!0);
195
+ !n || e.pointerId !== n.pointerId || g(!0);
196
196
  }
197
197
  function Le(e) {
198
- !n || e.pointerId !== n.pointerId || w(!1);
198
+ !n || e.pointerId !== n.pointerId || g(!1);
199
199
  }
200
200
  function Ee(e) {
201
- !n || e.pointerId !== n.pointerId || w(!1);
201
+ !n || e.pointerId !== n.pointerId || g(!1);
202
202
  }
203
203
  function Se(e) {
204
- e.key === "Escape" && (e.preventDefault(), w(!1));
204
+ e.key === "Escape" && (e.preventDefault(), g(!1));
205
205
  }
206
206
  function Me() {
207
- w(!1);
207
+ g(!1);
208
208
  }
209
- const Re = (e, t) => {
210
- const r = P.value.get(e);
211
- if (!A(r) || n || t.button !== 0 || !ee()) return;
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 ?? D(r) ?? M(r)
215
- ), g = t.currentTarget, i = g instanceof HTMLElement ? g : null, f = i?.dataset.vliteResizeBoundary === e ? i : null, E = f ? Number.parseFloat(f.style.insetInlineStart) : null;
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: M(r),
222
+ min: S(r),
223
223
  moved: !1,
224
224
  handle: i,
225
225
  col: k(e),
226
- trailingFillCol: N.value ? k(N.value) : null,
227
- boundary: f,
228
- boundaryLayer: f?.parentElement ?? null,
229
- boundaryStart: E != null && Number.isFinite(E) ? E : null
230
- }, W.value = !0, $.value = e, Xe(), 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));
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, O = null, re = null;
232
+ let L = null, _ = null, N = null, re = null;
233
233
  const x = () => {
234
- L && clearTimeout(L), L = null, _ = null, O = null, re = null;
234
+ L && clearTimeout(L), L = null, _ = null, N = null, re = null;
235
235
  }, X = () => {
236
236
  const e = _;
237
237
  x(), e?.();
238
- }, $e = (e, t, r = !1) => {
239
- const o = P.value.get(e);
240
- if (!A(o) || (_ && O !== e && X(), !ee())) return;
241
- const l = Math.round(D(o) ?? M(o)), a = O === e ? re : l, i = Ne(
242
- l + (r ? ot : rt) * t * ge(),
243
- M(o),
244
- Be
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), O = e, re = a, _ = () => {
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, lt));
249
- }, je = (e) => {
250
- const t = P.value.get(e);
251
- if (!A(t) || u.value[e] == null) return;
252
- O === e ? x() : X();
253
- const r = D(t) ?? u.value[e], o = { ...u.value };
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 Pe(se, Ie), Pe(m, v), Ve(() => {
260
- R.value = !0, typeof ResizeObserver < "u" && (I = new ResizeObserver(v)), Ie(), v();
261
- }), S(
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 || !ye.value || (u.value = Ae(
265
- Ze(te.value),
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
- ), S(B, (e, t) => {
270
+ ), E(B, (e, t) => {
271
271
  e !== t && (x(), e || (u.value = {}));
272
- }), S(
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 Oe(), ee());
281
+ !d.value || !U.value || !R.value || b.value || !Object.keys(u.value).length || (await Te(), ee());
282
282
  },
283
283
  { immediate: !0 }
284
- ), S(
284
+ ), E(
285
285
  () => c.value.map((e) => e.field).join("\0"),
286
286
  () => {
287
- d.value && b.value && xe(), v();
287
+ d.value && b.value && Xe(), v();
288
288
  }
289
- ), S(
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
- ), S(d, (e) => {
302
- !e && n && w(!1);
303
- }), Je(() => {
304
- x(), w(!1), _e(), I?.disconnect(), T.clear();
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: ze,
310
+ tableWidth: ke,
311
311
  columnBoundaries: j,
312
312
  boundaryLayerWidth: G,
313
313
  boundaryLayerHeight: Y,
314
- minWidthFor: M,
315
- resolveWidth: D,
316
- startResize: Re,
317
- adjustWidth: $e,
318
- resetColumn: je
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
- ft as DEFAULT_MIN_COLUMN_WIDTH,
324
- Be as MAX_COLUMN_WIDTH,
325
- mt as SELECTION_COLUMN_WIDTH,
326
- Ze as sanitizeColumnWidths,
327
- dt as useDataTableColumnResize
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
  };
@@ -1,4 +1,4 @@
1
- import o from "./DropdownMenu.vue2.js";
1
+ import o from "./DropdownMenu.vue3.js";
2
2
  /* empty css */
3
3
  import r from "../../_virtual/_plugin-vue_export-helper.js";
4
4
  const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-173c7a02"]]);
@@ -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 m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-e5574264"]]);
4
+ const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-3d1e3fc5"]]);
5
5
  export {
6
- m as default
6
+ f as default
7
7
  };