@vc-shell/framework 2.5.0-pr351.8e074ad → 2.5.0-pr354.da09837

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 (59) hide show
  1. package/dist/chunks/{VcScheduler.vue_vue_type_script_setup_true_lang-tWGSlvvu.js → VcScheduler.vue_vue_type_script_setup_true_lang-RHeDlcVB.js} +5554 -5656
  2. package/dist/chunks/VcScheduler.vue_vue_type_script_setup_true_lang-RHeDlcVB.js.map +1 -0
  3. package/dist/chunks/{VcScheduler.vue_vue_type_style_index_0_lang-BFmpC0MN.js → VcScheduler.vue_vue_type_style_index_0_lang-BQ09AUgy.js} +440 -448
  4. package/dist/chunks/VcScheduler.vue_vue_type_style_index_0_lang-BQ09AUgy.js.map +1 -0
  5. package/dist/chunks/{dashboard-feed-row.vue_vue_type_script_setup_true_lang-f8MTDeS0.js → dashboard-feed-row.vue_vue_type_script_setup_true_lang-C0IjvNtI.js} +256 -269
  6. package/dist/chunks/dashboard-feed-row.vue_vue_type_script_setup_true_lang-C0IjvNtI.js.map +1 -0
  7. package/dist/core/blade-navigation/utils/navigateToMainRoute.d.ts +2 -12
  8. package/dist/core/blade-navigation/utils/navigateToMainRoute.d.ts.map +1 -1
  9. package/dist/core/blade-navigation/utils/restoreFromUrl.d.ts.map +1 -1
  10. package/dist/core/composables/useAssets/index.d.ts.map +1 -1
  11. package/dist/core/composables/useAssetsManager/index.d.ts.map +1 -1
  12. package/dist/core/composables/useBladeNavigationAdapter/index.d.ts.map +1 -1
  13. package/dist/core/composables/useLatestRequest/index.d.ts +8 -25
  14. package/dist/core/composables/useLatestRequest/index.d.ts.map +1 -1
  15. package/dist/core/composables/useModificationTracker/index.d.ts +0 -11
  16. package/dist/core/composables/useModificationTracker/index.d.ts.map +1 -1
  17. package/dist/core/composables/usePopup/index.d.ts.map +1 -1
  18. package/dist/core/interceptors/index.d.ts.map +1 -1
  19. package/dist/core/plugins/signalR/index.d.ts.map +1 -1
  20. package/dist/core/utilities/focus.d.ts +0 -14
  21. package/dist/core/utilities/focus.d.ts.map +1 -1
  22. package/dist/dashboard/index.js +1 -1
  23. package/dist/framework.js +1358 -1337
  24. package/dist/framework.js.map +1 -1
  25. package/dist/locales/de.js +0 -5
  26. package/dist/locales/en.js +0 -5
  27. package/dist/locales/en.json +0 -5
  28. package/dist/locales/types.d.ts +0 -5
  29. package/dist/shell/dashboard/draggable-dashboard/DraggableDashboard.vue.d.ts +2 -5
  30. package/dist/shell/dashboard/draggable-dashboard/DraggableDashboard.vue.d.ts.map +1 -1
  31. package/dist/shell/dashboard/draggable-dashboard/GridstackDashboard.vue.d.ts.map +1 -1
  32. package/dist/shell/dashboard/draggable-dashboard/composables/useGridstack.d.ts +0 -2
  33. package/dist/shell/dashboard/draggable-dashboard/composables/useGridstack.d.ts.map +1 -1
  34. package/dist/tsconfig.tsbuildinfo +1 -1
  35. package/dist/ui/components/atoms/vc-button/vc-button.vue.d.ts.map +1 -1
  36. package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts.map +1 -1
  37. package/dist/ui/components/molecules/vc-popover/vc-popover.vue.d.ts +0 -9
  38. package/dist/ui/components/molecules/vc-popover/vc-popover.vue.d.ts.map +1 -1
  39. package/dist/ui/components/organisms/vc-app/_internal/app-bar/components/AppHubPopover.vue.d.ts +0 -2
  40. package/dist/ui/components/organisms/vc-app/_internal/app-bar/components/AppHubPopover.vue.d.ts.map +1 -1
  41. package/dist/ui/components/organisms/vc-app/_internal/layouts/DesktopLayout.vue.d.ts.map +1 -1
  42. package/dist/ui/components/organisms/vc-auth-layout/vc-auth-layout.vue.d.ts.map +1 -1
  43. package/dist/ui/components/organisms/vc-blade/_internal/BladeHeader.vue.d.ts.map +1 -1
  44. package/dist/ui/components/organisms/vc-data-table/VcDataTable.vue.d.ts +3 -3
  45. package/dist/ui/components/organisms/vc-data-table/VcDataTable.vue.d.ts.map +1 -1
  46. package/dist/ui/components/organisms/vc-data-table/components/VcColumn.vue.d.ts +3 -3
  47. package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue.d.ts.map +1 -1
  48. package/dist/ui/components/organisms/vc-scheduler/VcScheduler.vue.d.ts +1 -1
  49. package/dist/ui/components/organisms/vc-scheduler/VcScheduler.vue.d.ts.map +1 -1
  50. package/dist/ui/components/organisms/vc-scheduler/_internal/editor/SchedulerEventEditor.vue.d.ts.map +1 -1
  51. package/dist/ui/index.js +2 -2
  52. package/package.json +4 -4
  53. package/dist/chunks/VcScheduler.vue_vue_type_script_setup_true_lang-tWGSlvvu.js.map +0 -1
  54. package/dist/chunks/VcScheduler.vue_vue_type_style_index_0_lang-BFmpC0MN.js.map +0 -1
  55. package/dist/chunks/dashboard-feed-row.vue_vue_type_script_setup_true_lang-f8MTDeS0.js.map +0 -1
  56. package/dist/core/composables/useAssetsManager/uploadAssets.d.ts +0 -37
  57. package/dist/core/composables/useAssetsManager/uploadAssets.d.ts.map +0 -1
  58. package/dist/core/composables/useDynamicProperties/resolveControlKind.d.ts +0 -23
  59. package/dist/core/composables/useDynamicProperties/resolveControlKind.d.ts.map +0 -1
@@ -1,7 +1,7 @@
1
- import { shallowRef as pe, ref as M, watch as de, nextTick as ce, onUnmounted as me, openBlock as v, createElementBlock as _, createStaticVNode as fe, defineComponent as B, inject as ve, computed as re, onMounted as ge, createBlock as V, withCtx as ye, unref as ee, Fragment as ie, renderList as ne, normalizeStyle as _e, normalizeClass as ue, createElementVNode as w, createCommentVNode as N, resolveDynamicComponent as be, mergeProps as we, toDisplayString as Y, renderSlot as P, createVNode as ke, withDirectives as $e } from "vue";
2
- import { K as xe, L as Le, M as Se, A as We } from "./VcScheduler.vue_vue_type_style_index_0_lang-BFmpC0MN.js";
3
- import { G as ze } from "./vendor-gridstack-Beau2jQ7.js";
4
- import { M as De, _ as Ae } from "./VcAiAgentPanel.vue_vue_type_style_index_0_lang-JB7OKRk6.js";
1
+ import { shallowRef as he, ref as D, watch as le, nextTick as de, onUnmounted as pe, openBlock as v, createElementBlock as _, createStaticVNode as me, defineComponent as R, inject as fe, computed as se, onMounted as ve, createBlock as q, withCtx as ge, unref as Z, Fragment as re, renderList as ie, normalizeStyle as ye, normalizeClass as ce, createElementVNode as w, createCommentVNode as B, resolveDynamicComponent as _e, mergeProps as be, toDisplayString as J, renderSlot as O, createVNode as we, withDirectives as ke } from "vue";
2
+ import { K as $e, L as xe, M as Se, A as Le } from "./VcScheduler.vue_vue_type_style_index_0_lang-BQ09AUgy.js";
3
+ import { G as We } from "./vendor-gridstack-Beau2jQ7.js";
4
+ import { M as ze, _ as De } from "./VcAiAgentPanel.vue_vue_type_style_index_0_lang-JB7OKRk6.js";
5
5
  import "vee-validate";
6
6
  import "./vendor-tiptap-starter-kit-ny-AoaO_.js";
7
7
  import "./vendor-tiptap-extension-underline-Bo1pXXDN.js";
@@ -81,22 +81,22 @@ import "./vendor-cypress-signalr-mock-itnm2wpA.js";
81
81
  import "./ExtensionPoint.vue_vue_type_style_index_0_lang-B1R06zHa.js";
82
82
  import "./vendor-truncate-html-ChA1T5zy.js";
83
83
  import "./vendor-sortablejs-Bsvu-FKn.js";
84
- const F = "vc-dashboard-layout";
85
- function te(t, r) {
86
- const a = r ?? t.position;
84
+ const j = "vc-dashboard-layout";
85
+ function ee(t, s) {
86
+ const a = s ?? t.position;
87
87
  return {
88
88
  id: t.id,
89
89
  x: a?.x ?? 0,
90
90
  y: a?.y ?? 0,
91
91
  // A placement size wins over the declared one, so a saved or live resize is
92
92
  // restored instead of snapping back to the widget's default.
93
- w: r?.width ?? t.size.width,
94
- h: r?.height ?? t.size.height,
93
+ w: s?.width ?? t.size.width,
94
+ h: s?.height ?? t.size.height,
95
95
  minW: 2,
96
96
  minH: 2
97
97
  };
98
98
  }
99
- function oe(t) {
99
+ function te(t) {
100
100
  return {
101
101
  id: t.id ?? "",
102
102
  position: {
@@ -109,10 +109,10 @@ function oe(t) {
109
109
  }
110
110
  };
111
111
  }
112
- function Me(t) {
113
- const r = /* @__PURE__ */ new Map();
112
+ function Ae(t) {
113
+ const s = /* @__PURE__ */ new Map();
114
114
  for (const a of t)
115
- a.id && r.set(a.id, {
115
+ a.id && s.set(a.id, {
116
116
  x: a.x ?? 0,
117
117
  y: a.y ?? 0,
118
118
  // Size is carried through as well; dropping it here is what used to make
@@ -120,18 +120,18 @@ function Me(t) {
120
120
  ...typeof a.w == "number" ? { width: a.w } : {},
121
121
  ...typeof a.h == "number" ? { height: a.h } : {}
122
122
  });
123
- return r;
123
+ return s;
124
124
  }
125
- function ae() {
125
+ function oe() {
126
126
  try {
127
- const t = localStorage.getItem(F);
127
+ const t = localStorage.getItem(j);
128
128
  if (!t) return null;
129
- const r = JSON.parse(t);
130
- if (Array.isArray(r))
131
- return Me(r);
132
- if (typeof r == "object" && r !== null) {
129
+ const s = JSON.parse(t);
130
+ if (Array.isArray(s))
131
+ return Ae(s);
132
+ if (typeof s == "object" && s !== null) {
133
133
  const a = /* @__PURE__ */ new Map();
134
- for (const [h, p] of Object.entries(r))
134
+ for (const [h, p] of Object.entries(s))
135
135
  p && typeof p.x == "number" && typeof p.y == "number" && a.set(h, { x: p.x, y: p.y });
136
136
  return a;
137
137
  }
@@ -140,10 +140,10 @@ function ae() {
140
140
  return console.warn("[GridstackAdapter] Failed to load layout from storage:", t), null;
141
141
  }
142
142
  }
143
- function he(t, r) {
143
+ function ue(t, s) {
144
144
  try {
145
145
  const a = t.map((h) => {
146
- const p = r.get(h.id);
146
+ const p = s.get(h.id);
147
147
  return {
148
148
  id: h.id,
149
149
  x: p?.x ?? h.position?.x ?? 0,
@@ -154,37 +154,37 @@ function he(t, r) {
154
154
  h: p?.height ?? h.size.height
155
155
  };
156
156
  });
157
- localStorage.setItem(F, JSON.stringify(a));
157
+ localStorage.setItem(j, JSON.stringify(a));
158
158
  } catch (a) {
159
159
  console.warn("[GridstackAdapter] Failed to save layout to storage:", a);
160
160
  }
161
161
  }
162
162
  function Ge() {
163
163
  try {
164
- localStorage.removeItem(F);
164
+ localStorage.removeItem(j);
165
165
  } catch (t) {
166
166
  console.warn("[GridstackAdapter] Failed to clear layout storage:", t);
167
167
  }
168
168
  }
169
- function Pe(t, r = 12) {
169
+ function Me(t, s = 12) {
170
170
  const a = /* @__PURE__ */ new Map(), h = /* @__PURE__ */ new Map(), p = (o, y, f, k) => {
171
171
  for (let b = y; b < y + k; b++) {
172
- const D = h.get(b) || [];
173
- for (let L = o; L < o + f; L++)
174
- if (D.includes(L)) return !1;
172
+ const z = h.get(b) || [];
173
+ for (let S = o; S < o + f; S++)
174
+ if (z.includes(S)) return !1;
175
175
  }
176
176
  return !0;
177
- }, z = (o, y, f, k) => {
177
+ }, W = (o, y, f, k) => {
178
178
  for (let b = y; b < y + k; b++) {
179
- const D = h.get(b) || [];
180
- for (let L = o; L < o + f; L++)
181
- D.push(L);
182
- h.set(b, D);
179
+ const z = h.get(b) || [];
180
+ for (let S = o; S < o + f; S++)
181
+ z.push(S);
182
+ h.set(b, z);
183
183
  }
184
184
  }, i = (o, y) => {
185
185
  let f = 0;
186
186
  for (; ; ) {
187
- for (let k = 0; k <= r - o; k++)
187
+ for (let k = 0; k <= s - o; k++)
188
188
  if (p(k, f, o, y))
189
189
  return { x: k, y: f };
190
190
  if (f++, f > 100) break;
@@ -193,15 +193,15 @@ function Pe(t, r = 12) {
193
193
  };
194
194
  for (const o of t) {
195
195
  const y = i(o.size.width, o.size.height);
196
- a.set(o.id, y), z(y.x, y.y, o.size.width, o.size.height);
196
+ a.set(o.id, y), W(y.x, y.y, o.size.width, o.size.height);
197
197
  }
198
198
  return a;
199
199
  }
200
- function se(t, r) {
201
- if (r && r.size > 0) {
200
+ function ae(t, s) {
201
+ if (s && s.size > 0) {
202
202
  const h = /* @__PURE__ */ new Map();
203
203
  for (const p of t) {
204
- const z = r.get(p.id), i = p.position, o = z ?? i ?? { x: 0, y: 0 };
204
+ const W = s.get(p.id), i = p.position, o = W ?? i ?? { x: 0, y: 0 };
205
205
  h.set(p.id, o);
206
206
  }
207
207
  return h;
@@ -212,9 +212,9 @@ function se(t, r) {
212
212
  h.set(p.id, p.position);
213
213
  return h;
214
214
  }
215
- return Pe(t);
215
+ return Me(t);
216
216
  }
217
- const Ee = {
217
+ const Pe = {
218
218
  column: 12,
219
219
  cellHeight: 80,
220
220
  margin: "10px",
@@ -233,169 +233,166 @@ const Ee = {
233
233
  // Only bottom-right corner
234
234
  }
235
235
  };
236
- function Te(t, r = {}) {
237
- const { gridOptions: a = {}, resizable: h = !1, autoSave: p = !0, onLayoutChange: z } = r, i = pe(null), o = M(/* @__PURE__ */ new Map()), y = M(!1), f = M(!1), k = {
238
- ...Ee,
236
+ function Oe(t, s = {}) {
237
+ const { gridOptions: a = {}, resizable: h = !1, autoSave: p = !0, onLayoutChange: W } = s, i = he(null), o = D(/* @__PURE__ */ new Map()), y = D(!1), f = D(!1), k = {
238
+ ...Pe,
239
239
  ...a,
240
240
  disableResize: !h
241
- }, b = (s) => {
241
+ }, b = (r) => {
242
242
  if (i.value) {
243
243
  console.warn("[useGridstack] Grid already initialized");
244
244
  return;
245
245
  }
246
- const n = ae();
247
- o.value = se(t.value, n), i.value = ze.init(k, s), i.value.on("change", D), i.value.on("added", L), i.value.on("removed", q);
248
- const l = t.value.map((g) => {
246
+ const l = oe();
247
+ o.value = ae(t.value, l), i.value = We.init(k, r), i.value.on("change", z), i.value.on("added", S), i.value.on("removed", Q);
248
+ const c = t.value.map((g) => {
249
249
  const m = o.value.get(g.id);
250
- return te(g, m);
250
+ return ee(g, m);
251
251
  });
252
- i.value.load(l), y.value = !0;
253
- }, D = (s, n) => {
252
+ i.value.load(c), y.value = !0;
253
+ }, z = (r, l) => {
254
254
  if (!f.value) {
255
- for (const l of n) {
256
- const { id: g, position: m } = oe(l);
255
+ for (const c of l) {
256
+ const { id: g, position: m } = te(c);
257
257
  if (g) {
258
- const $ = o.value.get(g), W = typeof l.w == "number" ? l.w : $?.width, O = typeof l.h == "number" ? l.h : $?.height;
258
+ const $ = o.value.get(g), N = typeof c.w == "number" ? c.w : $?.width, L = typeof c.h == "number" ? c.h : $?.height;
259
259
  o.value.set(g, {
260
260
  ...m,
261
- ...typeof W == "number" ? { width: W } : {},
262
- ...typeof O == "number" ? { height: O } : {}
261
+ ...typeof N == "number" ? { width: N } : {},
262
+ ...typeof L == "number" ? { height: L } : {}
263
263
  });
264
264
  }
265
265
  }
266
- o.value = new Map(o.value), z?.(o.value), p && S();
266
+ o.value = new Map(o.value), W?.(o.value), p && M();
267
267
  }
268
- }, L = (s, n) => {
269
- for (const l of n) {
270
- const { id: g, position: m } = oe(l);
268
+ }, S = (r, l) => {
269
+ for (const c of l) {
270
+ const { id: g, position: m } = te(c);
271
271
  g && !o.value.has(g) && o.value.set(g, m);
272
272
  }
273
273
  o.value = new Map(o.value);
274
- }, q = (s, n) => {
275
- for (const l of n)
276
- l.id && o.value.delete(l.id);
274
+ }, Q = (r, l) => {
275
+ for (const c of l)
276
+ c.id && o.value.delete(c.id);
277
277
  o.value = new Map(o.value);
278
- }, R = () => {
278
+ }, U = () => {
279
279
  i.value && (i.value.off("change"), i.value.off("added"), i.value.off("removed"), i.value.destroy(!1), i.value = null, y.value = !1);
280
- }, U = (s) => {
280
+ }, F = (r) => {
281
281
  if (!i.value) return;
282
- const n = o.value.get(s.id) ?? s.position, l = te(s, n), g = document.querySelector(`[gs-id="${s.id}"]`);
283
- g && i.value.makeWidget(g, l);
284
- }, C = (s) => {
282
+ const l = o.value.get(r.id) ?? r.position, c = ee(r, l), g = document.querySelector(`[gs-id="${r.id}"]`);
283
+ g && i.value.makeWidget(g, c);
284
+ }, C = (r) => {
285
285
  if (!i.value) return;
286
- const n = document.querySelector(`[gs-id="${s}"]`);
287
- n && i.value.removeWidget(n, !1), o.value.delete(s);
288
- }, H = (s, n, l, g) => {
289
- const m = n.gridstackNode, $ = o.value.get(s), W = m?.x ?? l?.x ?? $?.x ?? 0, O = m?.y ?? l?.y ?? $?.y ?? 0, X = m?.w ?? g?.width ?? $?.width, Z = m?.h ?? g?.height ?? $?.height;
290
- o.value.set(s, {
291
- x: W,
292
- y: O,
293
- ...typeof X == "number" ? { width: X } : {},
294
- ...typeof Z == "number" ? { height: Z } : {}
286
+ const l = document.querySelector(`[gs-id="${r}"]`);
287
+ l && i.value.removeWidget(l, !1), o.value.delete(r);
288
+ }, H = (r, l, c, g) => {
289
+ const m = l.gridstackNode, $ = o.value.get(r), N = m?.x ?? c?.x ?? $?.x ?? 0, L = m?.y ?? c?.y ?? $?.y ?? 0, K = m?.w ?? g?.width ?? $?.width, X = m?.h ?? g?.height ?? $?.height;
290
+ o.value.set(r, {
291
+ x: N,
292
+ y: L,
293
+ ...typeof K == "number" ? { width: K } : {},
294
+ ...typeof X == "number" ? { height: X } : {}
295
295
  }), o.value = new Map(o.value);
296
- }, J = (s, n) => {
296
+ }, V = (r, l) => {
297
297
  if (!i.value) return;
298
- const l = document.querySelector(`[gs-id="${s}"]`);
299
- l && (f.value = !0, i.value.update(l, { x: n.x, y: n.y }), H(s, l, n), f.value = !1);
300
- }, K = (s, n) => {
298
+ const c = document.querySelector(`[gs-id="${r}"]`);
299
+ c && (f.value = !0, i.value.update(c, { x: l.x, y: l.y }), H(r, c, l), f.value = !1);
300
+ }, A = (r, l) => {
301
301
  if (!i.value) return;
302
- const l = document.querySelector(`[gs-id="${s}"]`);
303
- l && (f.value = !0, i.value.update(l, { w: n.width, h: n.height }), H(s, l, void 0, n), f.value = !1);
304
- }, S = () => {
305
- he(t.value, o.value);
306
- }, E = () => {
307
- const s = ae();
308
- s && (o.value = se(t.value, s), A());
302
+ const c = document.querySelector(`[gs-id="${r}"]`);
303
+ c && (f.value = !0, i.value.update(c, { w: l.width, h: l.height }), H(r, c, void 0, l), f.value = !1);
304
+ }, M = () => {
305
+ ue(t.value, o.value);
306
+ }, T = () => {
307
+ const r = oe();
308
+ r && (o.value = ae(t.value, r), G());
309
309
  }, I = () => {
310
310
  o.value = /* @__PURE__ */ new Map();
311
- for (const s of t.value)
312
- s.position && o.value.set(s.id, { ...s.position });
313
- A(), S();
314
- }, A = () => {
311
+ for (const r of t.value)
312
+ r.position && o.value.set(r.id, { ...r.position });
313
+ G(), M();
314
+ }, G = () => {
315
315
  if (i.value) {
316
316
  f.value = !0, i.value.batchUpdate();
317
- for (const s of t.value) {
318
- const n = o.value.get(s.id);
319
- if (n) {
320
- const l = document.querySelector(`[gs-id="${s.id}"]`);
321
- l && i.value.update(l, {
322
- x: n.x,
323
- y: n.y,
317
+ for (const r of t.value) {
318
+ const l = o.value.get(r.id);
319
+ if (l) {
320
+ const c = document.querySelector(`[gs-id="${r.id}"]`);
321
+ c && i.value.update(c, {
322
+ x: l.x,
323
+ y: l.y,
324
324
  // Restores a persisted size; omitted when unknown so Gridstack keeps
325
325
  // whatever the element already declares.
326
- ...typeof n.width == "number" ? { w: n.width } : {},
327
- ...typeof n.height == "number" ? { h: n.height } : {}
326
+ ...typeof l.width == "number" ? { w: l.width } : {},
327
+ ...typeof l.height == "number" ? { h: l.height } : {}
328
328
  });
329
329
  }
330
330
  }
331
331
  i.value.batchUpdate(!1), f.value = !1;
332
332
  }
333
- }, T = (s) => {
334
- o.value = new Map([...s].map(([n, l]) => [n, { ...l }])), A();
335
- }, Q = (s) => {
333
+ }, E = (r) => {
336
334
  if (!i.value) {
337
- s();
335
+ r();
338
336
  return;
339
337
  }
340
- f.value = !0, i.value.batchUpdate(), s(), i.value.batchUpdate(!1), f.value = !1;
338
+ f.value = !0, i.value.batchUpdate(), r(), i.value.batchUpdate(!1), f.value = !1;
341
339
  };
342
- return de(
340
+ return le(
343
341
  t,
344
- async (s, n) => {
342
+ async (r, l) => {
345
343
  if (!i.value || !y.value) return;
346
- await ce();
347
- const l = s.filter((m) => !n?.some(($) => $.id === m.id)), g = n?.filter((m) => !s.some(($) => $.id === m.id)).map((m) => m.id) ?? [];
344
+ await de();
345
+ const c = r.filter((m) => !l?.some(($) => $.id === m.id)), g = l?.filter((m) => !r.some(($) => $.id === m.id)).map((m) => m.id) ?? [];
348
346
  for (const m of g)
349
347
  C(m);
350
- for (const m of l)
351
- U(m);
348
+ for (const m of c)
349
+ F(m);
352
350
  },
353
351
  { deep: !1 }
354
- ), me(() => {
355
- R();
352
+ ), pe(() => {
353
+ U();
356
354
  }), {
357
355
  grid: i,
358
356
  layout: o,
359
357
  isInitialized: y,
360
358
  initGrid: b,
361
- destroyGrid: R,
362
- addWidget: U,
359
+ destroyGrid: U,
360
+ addWidget: F,
363
361
  removeWidget: C,
364
- updateWidgetPosition: J,
365
- updateWidgetSize: K,
366
- saveLayout: S,
367
- loadLayout: E,
362
+ updateWidgetPosition: V,
363
+ updateWidgetSize: A,
364
+ saveLayout: M,
365
+ loadLayout: T,
368
366
  resetToDefaults: I,
369
- restoreLayout: T,
370
- batchUpdate: Q
367
+ batchUpdate: E
371
368
  };
372
369
  }
373
- const Oe = {}, Ie = {
370
+ const Ee = {}, Te = {
374
371
  class: "dashboard-widget-skeleton",
375
372
  "aria-hidden": "true"
376
373
  };
377
- function Ne(t, r) {
378
- return v(), _("div", Ie, [...r[0] || (r[0] = [
379
- fe('<div class="dashboard-widget-skeleton__header"><div class="dashboard-widget-skeleton__icon"></div><div class="dashboard-widget-skeleton__title"></div></div><div class="dashboard-widget-skeleton__stats"><div class="dashboard-widget-skeleton__stat"></div><div class="dashboard-widget-skeleton__stat"></div><div class="dashboard-widget-skeleton__stat"></div></div><div class="dashboard-widget-skeleton__body"><div class="dashboard-widget-skeleton__line dashboard-widget-skeleton__line--w80"></div><div class="dashboard-widget-skeleton__line dashboard-widget-skeleton__line--w60"></div><div class="dashboard-widget-skeleton__line dashboard-widget-skeleton__line--w90"></div><div class="dashboard-widget-skeleton__line dashboard-widget-skeleton__line--w70"></div></div>', 3)
374
+ function Ie(t, s) {
375
+ return v(), _("div", Te, [...s[0] || (s[0] = [
376
+ me('<div class="dashboard-widget-skeleton__header"><div class="dashboard-widget-skeleton__icon"></div><div class="dashboard-widget-skeleton__title"></div></div><div class="dashboard-widget-skeleton__stats"><div class="dashboard-widget-skeleton__stat"></div><div class="dashboard-widget-skeleton__stat"></div><div class="dashboard-widget-skeleton__stat"></div></div><div class="dashboard-widget-skeleton__body"><div class="dashboard-widget-skeleton__line dashboard-widget-skeleton__line--w80"></div><div class="dashboard-widget-skeleton__line dashboard-widget-skeleton__line--w60"></div><div class="dashboard-widget-skeleton__line dashboard-widget-skeleton__line--w90"></div><div class="dashboard-widget-skeleton__line dashboard-widget-skeleton__line--w70"></div></div>', 3)
380
377
  ])]);
381
378
  }
382
- const Be = /* @__PURE__ */ xe(Oe, [["render", Ne]]), Re = ["aria-label"], Ue = ["aria-label"], Fe = ["gs-id", "gs-x", "gs-y", "gs-w", "gs-h", "aria-label", "onKeydown"], Ce = { class: "grid-stack-item-content" }, He = {
379
+ const Ne = /* @__PURE__ */ $e(Ee, [["render", Ie]]), Be = ["aria-label"], Re = ["aria-label"], Ue = ["gs-id", "gs-x", "gs-y", "gs-w", "gs-h", "aria-label", "onKeydown"], Fe = { class: "grid-stack-item-content" }, Ce = {
383
380
  key: 0,
384
381
  class: "vc-gridstack-dashboard__drag-handle",
385
382
  "aria-hidden": "true"
386
- }, Ke = {
383
+ }, He = {
387
384
  class: "vc-gridstack-dashboard__live-region",
388
385
  role: "status",
389
386
  "aria-live": "polite",
390
387
  "aria-atomic": "true"
391
- }, le = 2, je = /* @__PURE__ */ B({
388
+ }, ne = 2, Ke = /* @__PURE__ */ R({
392
389
  __name: "GridstackDashboard",
393
390
  props: {
394
391
  showDragHandles: { type: Boolean, default: !1 },
395
392
  resizable: { type: Boolean, default: !1 },
396
393
  ariaLabel: { default: "Dashboard widgets. Drag a widget, or focus one and press Enter to rearrange with the arrow keys." }
397
394
  },
398
- setup(t, { expose: r }) {
395
+ setup(t, { expose: s }) {
399
396
  const a = [
400
397
  { x: 0, y: 0, w: 6, h: 6 },
401
398
  { x: 6, y: 0, w: 6, h: 6 },
@@ -405,31 +402,22 @@ const Be = /* @__PURE__ */ xe(Oe, [["render", Ne]]), Re = ["aria-label"], Ue = [
405
402
  function h() {
406
403
  if (typeof window > "u") return null;
407
404
  try {
408
- const e = window.localStorage.getItem(F);
405
+ const e = window.localStorage.getItem(j);
409
406
  if (!e) return null;
410
407
  const u = JSON.parse(e);
411
408
  if (!Array.isArray(u)) return null;
412
- const d = u.filter(
413
- (c) => !!c && typeof c == "object" && typeof c.w == "number" && typeof c.h == "number" && typeof c.x == "number" && typeof c.y == "number"
414
- ).map((c) => ({ x: c.x, y: c.y, w: c.w, h: c.h }));
415
- return d.length > 0 ? d : null;
409
+ const n = u.filter(
410
+ (d) => !!d && typeof d == "object" && typeof d.w == "number" && typeof d.h == "number" && typeof d.x == "number" && typeof d.y == "number"
411
+ ).map((d) => ({ x: d.x, y: d.y, w: d.w, h: d.h }));
412
+ return n.length > 0 ? n : null;
416
413
  } catch {
417
414
  return null;
418
415
  }
419
416
  }
420
- const p = t, z = M(null), i = M(""), o = ve(De, M(!0)), y = re(() => o.value ? [] : h() ?? a), f = (e) => ({
417
+ const p = t, W = D(null), i = D(""), o = fe(ze, D(!0)), y = se(() => o.value ? [] : h() ?? a), f = (e) => ({
421
418
  gridColumn: `${e.x + 1} / span ${e.w}`,
422
419
  gridRow: `${e.y + 1} / span ${e.h}`
423
- }), k = Le(), b = re(() => k.getWidgets()), {
424
- layout: D,
425
- isInitialized: L,
426
- initGrid: q,
427
- saveLayout: R,
428
- resetToDefaults: U,
429
- restoreLayout: C,
430
- updateWidgetPosition: H,
431
- updateWidgetSize: J
432
- } = Te(b, {
420
+ }), k = xe(), b = se(() => k.getWidgets()), { layout: z, isInitialized: S, initGrid: Q, saveLayout: U, resetToDefaults: F, updateWidgetPosition: C, updateWidgetSize: H } = Oe(b, {
433
421
  resizable: p.resizable,
434
422
  autoSave: !0,
435
423
  gridOptions: {
@@ -438,107 +426,106 @@ const Be = /* @__PURE__ */ xe(Oe, [["render", Ne]]), Re = ["aria-label"], Ue = [
438
426
  }
439
427
  },
440
428
  onLayoutChange: (e) => {
441
- for (const [u, d] of e)
442
- k.updateWidgetPosition(u, d);
443
- W("Widget positions updated");
429
+ for (const [u, n] of e)
430
+ k.updateWidgetPosition(u, n);
431
+ L("Widget positions updated");
444
432
  }
445
- }), K = (e) => D.value.get(e), S = M(null), E = M(null), I = (e) => D.value.get(e.id) ?? e.position ?? { x: 0, y: 0 }, A = (e) => {
446
- const u = D.value.get(e.id);
433
+ }), V = (e) => z.value.get(e), A = D(null), M = D(null), T = D(null), I = (e) => z.value.get(e.id) ?? e.position ?? { x: 0, y: 0 }, G = (e) => {
434
+ const u = z.value.get(e.id);
447
435
  return {
448
436
  width: u?.width ?? e.size.width,
449
437
  height: u?.height ?? e.size.height
450
438
  };
451
- }, T = (e) => e.name || e.id, Q = (e) => {
452
- S.value = e.id, E.value = new Map(
453
- b.value.map((u) => [u.id, { ...I(u), ...A(u) }])
454
- ), W(
455
- `${T(e)} picked up. Use arrow keys to move, Shift and arrow keys to resize, Enter to drop, Escape to cancel.`
439
+ }, E = (e) => e.name || e.id, r = (e) => {
440
+ A.value = e.id, M.value = { ...I(e) }, T.value = { ...G(e) }, L(
441
+ `${E(e)} picked up. Use arrow keys to move, Shift and arrow keys to resize, Enter to drop, Escape to cancel.`
456
442
  );
457
- }, s = (e) => {
458
- S.value = null, E.value = null, R();
459
- const { x: u, y: d } = I(e);
460
- W(`${T(e)} dropped at column ${u + 1}, row ${d + 1}.`);
461
- }, n = (e) => {
462
- E.value && C(E.value), S.value = null, E.value = null, W(`Move cancelled. ${T(e)} returned to its original position and size.`);
463
- }, l = (e, u, d) => {
464
- const c = I(e), x = { x: c.x + u, y: c.y + d };
443
+ }, l = (e) => {
444
+ A.value = null, M.value = null, T.value = null, U();
445
+ const { x: u, y: n } = I(e);
446
+ L(`${E(e)} dropped at column ${u + 1}, row ${n + 1}.`);
447
+ }, c = (e) => {
448
+ const u = M.value, n = T.value, d = G(e);
449
+ n && (n.width !== d.width || n.height !== d.height) && H(e.id, n), u && C(e.id, u), A.value = null, M.value = null, T.value = null, L(`Move cancelled. ${E(e)} returned to its original position and size.`);
450
+ }, g = (e, u, n) => {
451
+ const d = I(e), x = { x: d.x + u, y: d.y + n };
465
452
  if (x.x < 0 || x.y < 0) return;
466
- H(e.id, x);
467
- const G = I(e);
468
- W(`${T(e)} moved to column ${G.x + 1}, row ${G.y + 1}.`);
469
- }, g = (e, u, d) => {
470
- const c = A(e), x = u ? Math.max(le, c.width + u) : c.width, G = d ? Math.max(le, c.height + d) : c.height;
471
- if (x === c.width && G === c.height) return;
472
- J(e.id, { width: x, height: G });
473
- const j = A(e);
474
- W(`${T(e)} resized to ${j.width} by ${j.height} cells.`);
475
- }, m = (e, u) => {
453
+ C(e.id, x);
454
+ const P = I(e);
455
+ L(`${E(e)} moved to column ${P.x + 1}, row ${P.y + 1}.`);
456
+ }, m = (e, u, n) => {
457
+ const d = G(e), x = u ? Math.max(ne, d.width + u) : d.width, P = n ? Math.max(ne, d.height + n) : d.height;
458
+ if (x === d.width && P === d.height) return;
459
+ H(e.id, { width: x, height: P });
460
+ const Y = G(e);
461
+ L(`${E(e)} resized to ${Y.width} by ${Y.height} cells.`);
462
+ }, $ = (e, u) => {
476
463
  if (e.target !== e.currentTarget) return;
477
- const d = S.value === u.id;
464
+ const n = A.value === u.id;
478
465
  if (e.key === "Enter" || e.key === " ") {
479
- if (e.preventDefault(), d) s(u);
466
+ if (e.preventDefault(), n) l(u);
480
467
  else {
481
- const G = b.value.find((j) => j.id === S.value);
482
- G && n(G), Q(u);
468
+ const P = b.value.find((Y) => Y.id === A.value);
469
+ P && c(P), r(u);
483
470
  }
484
471
  return;
485
472
  }
486
- if (e.key === "Escape" && d) {
487
- e.preventDefault(), n(u);
473
+ if (e.key === "Escape" && n) {
474
+ e.preventDefault(), c(u);
488
475
  return;
489
476
  }
490
- const c = e.key === "ArrowLeft" ? -1 : e.key === "ArrowRight" ? 1 : 0, x = e.key === "ArrowUp" ? -1 : e.key === "ArrowDown" ? 1 : 0;
491
- c === 0 && x === 0 || !d || (e.preventDefault(), e.shiftKey ? p.resizable && g(u, c, x) : l(u, c, x));
492
- }, $ = (e, u) => {
493
- const d = e.name || e.id, c = S.value === e.id ? "Picked up. Arrow keys move, Enter drops, Escape cancels." : "Press Enter to pick up and rearrange with the arrow keys.";
494
- return `${d}, widget ${u + 1} of ${b.value.length}. ${c}`;
495
- }, W = (e) => {
477
+ const d = e.key === "ArrowLeft" ? -1 : e.key === "ArrowRight" ? 1 : 0, x = e.key === "ArrowUp" ? -1 : e.key === "ArrowDown" ? 1 : 0;
478
+ d === 0 && x === 0 || !n || (e.preventDefault(), e.shiftKey ? p.resizable && m(u, d, x) : g(u, d, x));
479
+ }, N = (e, u) => {
480
+ const n = e.name || e.id, d = A.value === e.id ? "Picked up. Arrow keys move, Enter drops, Escape cancels." : "Press Enter to pick up and rearrange with the arrow keys.";
481
+ return `${n}, widget ${u + 1} of ${b.value.length}. ${d}`;
482
+ }, L = (e) => {
496
483
  i.value = e, setTimeout(() => {
497
484
  i.value = "";
498
485
  }, 1e3);
499
- }, O = async () => {
500
- await ce(), z.value && !L.value && q(z.value);
486
+ }, K = async () => {
487
+ await de(), W.value && !S.value && Q(W.value);
501
488
  };
502
- return ge(O), de(o, (e) => {
503
- e && O();
504
- }), r({
489
+ return ve(K), le(o, (e) => {
490
+ e && K();
491
+ }), s({
505
492
  rearrangeWidgets: () => {
506
- U();
493
+ F();
507
494
  },
508
495
  recalculateLayout: () => {
509
496
  },
510
- saveLayout: R,
511
- useBuiltInPositions: () => (U(), !0)
512
- }), (e, u) => (v(), V(Se, {
497
+ saveLayout: U,
498
+ useBuiltInPositions: () => (F(), !0)
499
+ }), (e, u) => (v(), q(Se, {
513
500
  "no-padding": "",
514
501
  class: "vc-gridstack-dashboard"
515
502
  }, {
516
- default: ye(() => [
517
- ee(o) ? (v(), _("div", {
503
+ default: ge(() => [
504
+ Z(o) ? (v(), _("div", {
518
505
  key: 1,
519
506
  ref_key: "gridRef",
520
- ref: z,
507
+ ref: W,
521
508
  class: "grid-stack vc-gridstack-dashboard__grid",
522
509
  role: "list",
523
510
  "aria-label": t.ariaLabel
524
511
  }, [
525
- (v(!0), _(ie, null, ne(b.value, (d, c) => (v(), _("div", {
526
- key: d.id,
527
- class: ue(["grid-stack-item", { "vc-gridstack-dashboard__item--grabbed": S.value === d.id }]),
528
- "gs-id": d.id,
529
- "gs-x": K(d.id)?.x ?? d.position?.x ?? 0,
530
- "gs-y": K(d.id)?.y ?? d.position?.y ?? 0,
531
- "gs-w": A(d).width,
532
- "gs-h": A(d).height,
512
+ (v(!0), _(re, null, ie(b.value, (n, d) => (v(), _("div", {
513
+ key: n.id,
514
+ class: ce(["grid-stack-item", { "vc-gridstack-dashboard__item--grabbed": A.value === n.id }]),
515
+ "gs-id": n.id,
516
+ "gs-x": V(n.id)?.x ?? n.position?.x ?? 0,
517
+ "gs-y": V(n.id)?.y ?? n.position?.y ?? 0,
518
+ "gs-w": G(n).width,
519
+ "gs-h": G(n).height,
533
520
  "gs-min-w": 2,
534
521
  "gs-min-h": 2,
535
522
  role: "listitem",
536
523
  tabindex: "0",
537
- "aria-label": $(d, c),
538
- onKeydown: (x) => m(x, d)
524
+ "aria-label": N(n, d),
525
+ onKeydown: (x) => $(x, n)
539
526
  }, [
540
- w("div", Ce, [
541
- t.showDragHandles ? (v(), _("div", He, [...u[0] || (u[0] = [
527
+ w("div", Fe, [
528
+ t.showDragHandles ? (v(), _("div", Ce, [...u[0] || (u[0] = [
542
529
  w("svg", {
543
530
  width: "16",
544
531
  height: "16",
@@ -576,38 +563,38 @@ const Be = /* @__PURE__ */ xe(Oe, [["render", Ne]]), Re = ["aria-label"], Ue = [
576
563
  r: "1.5"
577
564
  })
578
565
  ], -1)
579
- ])])) : N("", !0),
580
- (v(), V(be(d.component), we({ ref_for: !0 }, d.props || {}, { class: "vc-gridstack-dashboard__widget-content" }), null, 16))
566
+ ])])) : B("", !0),
567
+ (v(), q(_e(n.component), be({ ref_for: !0 }, n.props || {}, { class: "vc-gridstack-dashboard__widget-content" }), null, 16))
581
568
  ])
582
- ], 42, Fe))), 128))
583
- ], 8, Ue)) : (v(), _("div", {
569
+ ], 42, Ue))), 128))
570
+ ], 8, Re)) : (v(), _("div", {
584
571
  key: 0,
585
572
  class: "vc-gridstack-dashboard__skeleton-grid",
586
573
  role: "status",
587
574
  "aria-busy": "true",
588
575
  "aria-label": t.ariaLabel
589
576
  }, [
590
- (v(!0), _(ie, null, ne(y.value, (d, c) => (v(), V(Be, {
591
- key: `skeleton-${c}`,
577
+ (v(!0), _(re, null, ie(y.value, (n, d) => (v(), q(Ne, {
578
+ key: `skeleton-${d}`,
592
579
  class: "vc-gridstack-dashboard__skeleton-item",
593
- style: _e(f(d))
580
+ style: ye(f(n))
594
581
  }, null, 8, ["style"]))), 128))
595
- ], 8, Re)),
596
- w("div", Ke, Y(i.value), 1)
582
+ ], 8, Be)),
583
+ w("div", He, J(i.value), 1)
597
584
  ]),
598
585
  _: 1
599
586
  }));
600
587
  }
601
- }), No = /* @__PURE__ */ B({
588
+ }), No = /* @__PURE__ */ R({
602
589
  __name: "DraggableDashboard",
603
590
  props: {
604
591
  showDragHandles: { type: Boolean, default: !1 },
605
592
  resizable: { type: Boolean, default: !1 },
606
- ariaLabel: {}
593
+ ariaLabel: { default: "Dashboard widgets. Drag widgets to rearrange." }
607
594
  },
608
- setup(t, { expose: r }) {
609
- const a = M(null);
610
- return r({
595
+ setup(t, { expose: s }) {
596
+ const a = D(null);
597
+ return s({
611
598
  rearrangeWidgets: () => {
612
599
  a.value?.rearrangeWidgets?.();
613
600
  },
@@ -618,7 +605,7 @@ const Be = /* @__PURE__ */ xe(Oe, [["render", Ne]]), Re = ["aria-label"], Ue = [
618
605
  a.value?.saveLayout?.();
619
606
  },
620
607
  useBuiltInPositions: () => a.value?.useBuiltInPositions?.() ?? !1
621
- }), (o, y) => (v(), V(je, {
608
+ }), (o, y) => (v(), q(Ke, {
622
609
  ref_key: "dashboardRef",
623
610
  ref: a,
624
611
  "show-drag-handles": t.showDragHandles,
@@ -626,19 +613,19 @@ const Be = /* @__PURE__ */ xe(Oe, [["render", Ne]]), Re = ["aria-label"], Ue = [
626
613
  "aria-label": t.ariaLabel
627
614
  }, null, 8, ["show-drag-handles", "resizable", "aria-label"]));
628
615
  }
629
- }), Bo = te, Ro = oe, Uo = ae, Fo = he, Co = se, Ho = Ge, Ko = F, Ve = { class: "dashboard-widget-card" }, Ye = { class: "dashboard-widget-card__header" }, qe = { class: "dashboard-widget-card__header-content" }, Je = {
616
+ }), Bo = ee, Ro = te, Uo = oe, Fo = ue, Co = ae, Ho = Ge, Ko = j, je = { class: "dashboard-widget-card" }, Ve = { class: "dashboard-widget-card__header" }, Ye = { class: "dashboard-widget-card__header-content" }, qe = {
630
617
  key: 0,
631
618
  class: "dashboard-widget-card__icon-wrapper"
632
- }, Qe = { class: "dashboard-widget-card__title" }, Xe = {
619
+ }, Je = { class: "dashboard-widget-card__title" }, Qe = {
633
620
  key: 0,
634
621
  class: "dashboard-widget-card__actions"
635
- }, Ze = {
622
+ }, Xe = {
636
623
  key: 0,
637
624
  class: "dashboard-widget-card__stats"
638
- }, et = { class: "dashboard-widget-card__body" }, tt = {
625
+ }, Ze = { class: "dashboard-widget-card__body" }, et = {
639
626
  key: 1,
640
627
  class: "dashboard-widget-card__footer"
641
- }, jo = /* @__PURE__ */ B({
628
+ }, jo = /* @__PURE__ */ R({
642
629
  __name: "dashboard-widget-card",
643
630
  props: {
644
631
  header: {},
@@ -646,39 +633,39 @@ const Be = /* @__PURE__ */ xe(Oe, [["render", Ne]]), Re = ["aria-label"], Ue = [
646
633
  loading: { type: Boolean }
647
634
  },
648
635
  setup(t) {
649
- const r = t;
650
- return (a, h) => (v(), _("div", Ve, [
651
- w("div", Ye, [
652
- P(a.$slots, "header", {}, () => [
653
- w("div", qe, [
654
- t.icon ? (v(), _("div", Je, [
655
- ke(ee(Ae), {
636
+ const s = t;
637
+ return (a, h) => (v(), _("div", je, [
638
+ w("div", Ve, [
639
+ O(a.$slots, "header", {}, () => [
640
+ w("div", Ye, [
641
+ t.icon ? (v(), _("div", qe, [
642
+ we(Z(De), {
656
643
  class: "dashboard-widget-card__icon",
657
644
  icon: t.icon,
658
645
  size: "l"
659
646
  }, null, 8, ["icon"])
660
- ])) : N("", !0),
661
- w("div", Qe, Y(r.header), 1)
647
+ ])) : B("", !0),
648
+ w("div", Je, J(s.header), 1)
662
649
  ])
663
650
  ]),
664
- a.$slots.actions ? (v(), _("div", Xe, [
665
- P(a.$slots, "actions")
666
- ])) : N("", !0)
651
+ a.$slots.actions ? (v(), _("div", Qe, [
652
+ O(a.$slots, "actions")
653
+ ])) : B("", !0)
667
654
  ]),
668
- a.$slots.stats ? (v(), _("div", Ze, [
669
- P(a.$slots, "stats")
670
- ])) : N("", !0),
671
- $e((v(), _("div", et, [
672
- P(a.$slots, "content")
655
+ a.$slots.stats ? (v(), _("div", Xe, [
656
+ O(a.$slots, "stats")
657
+ ])) : B("", !0),
658
+ ke((v(), _("div", Ze, [
659
+ O(a.$slots, "content")
673
660
  ])), [
674
- [ee(We), t.loading]
661
+ [Z(Le), t.loading]
675
662
  ]),
676
- a.$slots.footer ? (v(), _("div", tt, [
677
- P(a.$slots, "footer")
678
- ])) : N("", !0)
663
+ a.$slots.footer ? (v(), _("div", et, [
664
+ O(a.$slots, "footer")
665
+ ])) : B("", !0)
679
666
  ]));
680
667
  }
681
- }), ot = { class: "dashboard-stat-item" }, at = { class: "dashboard-stat-item__label" }, Vo = /* @__PURE__ */ B({
668
+ }), tt = { class: "dashboard-stat-item" }, ot = { class: "dashboard-stat-item__label" }, Vo = /* @__PURE__ */ R({
682
669
  __name: "dashboard-stat-item",
683
670
  props: {
684
671
  value: {},
@@ -686,37 +673,37 @@ const Be = /* @__PURE__ */ xe(Oe, [["render", Ne]]), Re = ["aria-label"], Ue = [
686
673
  variant: {}
687
674
  },
688
675
  setup(t) {
689
- return (r, a) => (v(), _("div", ot, [
676
+ return (s, a) => (v(), _("div", tt, [
690
677
  w("div", {
691
- class: ue(["dashboard-stat-item__value", t.variant ? `dashboard-stat-item__value--${t.variant}` : ""])
692
- }, Y(t.value), 3),
693
- w("div", at, Y(t.label), 1)
678
+ class: ce(["dashboard-stat-item__value", t.variant ? `dashboard-stat-item__value--${t.variant}` : ""])
679
+ }, J(t.value), 3),
680
+ w("div", ot, J(t.label), 1)
694
681
  ]));
695
682
  }
696
- }), st = { class: "tw-divide-y tw-divide-[var(--neutrals-200)]" }, Yo = /* @__PURE__ */ B({
683
+ }), at = { class: "tw-divide-y tw-divide-[var(--neutrals-200)]" }, Yo = /* @__PURE__ */ R({
697
684
  __name: "dashboard-feed-list",
698
685
  setup(t) {
699
- return (r, a) => (v(), _("div", st, [
700
- P(r.$slots, "default")
686
+ return (s, a) => (v(), _("div", at, [
687
+ O(s.$slots, "default")
701
688
  ]));
702
689
  }
703
- }), rt = { class: "tw-flex tw-items-center tw-gap-2.5 tw-min-w-0" }, it = {
690
+ }), st = { class: "tw-flex tw-items-center tw-gap-2.5 tw-min-w-0" }, rt = {
704
691
  key: 0,
705
692
  class: "tw-flex tw-items-center tw-gap-3 tw-flex-shrink-0 tw-ml-3"
706
- }, qo = /* @__PURE__ */ B({
693
+ }, qo = /* @__PURE__ */ R({
707
694
  __name: "dashboard-feed-row",
708
695
  emits: ["click"],
709
696
  setup(t) {
710
- return (r, a) => (v(), _("div", {
697
+ return (s, a) => (v(), _("div", {
711
698
  class: "dashboard-feed-row",
712
- onClick: a[0] || (a[0] = (h) => r.$emit("click"))
699
+ onClick: a[0] || (a[0] = (h) => s.$emit("click"))
713
700
  }, [
714
- w("div", rt, [
715
- P(r.$slots, "default")
701
+ w("div", st, [
702
+ O(s.$slots, "default")
716
703
  ]),
717
- r.$slots.trailing ? (v(), _("div", it, [
718
- P(r.$slots, "trailing")
719
- ])) : N("", !0)
704
+ s.$slots.trailing ? (v(), _("div", rt, [
705
+ O(s.$slots, "trailing")
706
+ ])) : B("", !0)
720
707
  ]));
721
708
  }
722
709
  });
@@ -733,5 +720,5 @@ export {
733
720
  Co as m,
734
721
  Fo as s,
735
722
  Bo as t,
736
- Te as u
723
+ Oe as u
737
724
  };