@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.
- 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
- package/dist/chunks/VcScheduler.vue_vue_type_script_setup_true_lang-RHeDlcVB.js.map +1 -0
- 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
- package/dist/chunks/VcScheduler.vue_vue_type_style_index_0_lang-BQ09AUgy.js.map +1 -0
- 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
- package/dist/chunks/dashboard-feed-row.vue_vue_type_script_setup_true_lang-C0IjvNtI.js.map +1 -0
- package/dist/core/blade-navigation/utils/navigateToMainRoute.d.ts +2 -12
- package/dist/core/blade-navigation/utils/navigateToMainRoute.d.ts.map +1 -1
- package/dist/core/blade-navigation/utils/restoreFromUrl.d.ts.map +1 -1
- package/dist/core/composables/useAssets/index.d.ts.map +1 -1
- package/dist/core/composables/useAssetsManager/index.d.ts.map +1 -1
- package/dist/core/composables/useBladeNavigationAdapter/index.d.ts.map +1 -1
- package/dist/core/composables/useLatestRequest/index.d.ts +8 -25
- package/dist/core/composables/useLatestRequest/index.d.ts.map +1 -1
- package/dist/core/composables/useModificationTracker/index.d.ts +0 -11
- package/dist/core/composables/useModificationTracker/index.d.ts.map +1 -1
- package/dist/core/composables/usePopup/index.d.ts.map +1 -1
- package/dist/core/interceptors/index.d.ts.map +1 -1
- package/dist/core/plugins/signalR/index.d.ts.map +1 -1
- package/dist/core/utilities/focus.d.ts +0 -14
- package/dist/core/utilities/focus.d.ts.map +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/framework.js +1358 -1337
- package/dist/framework.js.map +1 -1
- package/dist/locales/de.js +0 -5
- package/dist/locales/en.js +0 -5
- package/dist/locales/en.json +0 -5
- package/dist/locales/types.d.ts +0 -5
- package/dist/shell/dashboard/draggable-dashboard/DraggableDashboard.vue.d.ts +2 -5
- package/dist/shell/dashboard/draggable-dashboard/DraggableDashboard.vue.d.ts.map +1 -1
- package/dist/shell/dashboard/draggable-dashboard/GridstackDashboard.vue.d.ts.map +1 -1
- package/dist/shell/dashboard/draggable-dashboard/composables/useGridstack.d.ts +0 -2
- package/dist/shell/dashboard/draggable-dashboard/composables/useGridstack.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/atoms/vc-button/vc-button.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-popover/vc-popover.vue.d.ts +0 -9
- package/dist/ui/components/molecules/vc-popover/vc-popover.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/app-bar/components/AppHubPopover.vue.d.ts +0 -2
- package/dist/ui/components/organisms/vc-app/_internal/app-bar/components/AppHubPopover.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-app/_internal/layouts/DesktopLayout.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-auth-layout/vc-auth-layout.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/BladeHeader.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/VcDataTable.vue.d.ts +3 -3
- package/dist/ui/components/organisms/vc-data-table/VcDataTable.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/VcColumn.vue.d.ts +3 -3
- package/dist/ui/components/organisms/vc-dynamic-property/vc-dynamic-property.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-scheduler/VcScheduler.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-scheduler/VcScheduler.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-scheduler/_internal/editor/SchedulerEventEditor.vue.d.ts.map +1 -1
- package/dist/ui/index.js +2 -2
- package/package.json +4 -4
- package/dist/chunks/VcScheduler.vue_vue_type_script_setup_true_lang-tWGSlvvu.js.map +0 -1
- package/dist/chunks/VcScheduler.vue_vue_type_style_index_0_lang-BFmpC0MN.js.map +0 -1
- package/dist/chunks/dashboard-feed-row.vue_vue_type_script_setup_true_lang-f8MTDeS0.js.map +0 -1
- package/dist/core/composables/useAssetsManager/uploadAssets.d.ts +0 -37
- package/dist/core/composables/useAssetsManager/uploadAssets.d.ts.map +0 -1
- package/dist/core/composables/useDynamicProperties/resolveControlKind.d.ts +0 -23
- package/dist/core/composables/useDynamicProperties/resolveControlKind.d.ts.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { shallowRef as
|
|
2
|
-
import { K as
|
|
3
|
-
import { G as
|
|
4
|
-
import { M as
|
|
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
|
|
85
|
-
function
|
|
86
|
-
const a =
|
|
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:
|
|
94
|
-
h:
|
|
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
|
|
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
|
|
113
|
-
const
|
|
112
|
+
function Ae(t) {
|
|
113
|
+
const s = /* @__PURE__ */ new Map();
|
|
114
114
|
for (const a of t)
|
|
115
|
-
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
|
|
123
|
+
return s;
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function oe() {
|
|
126
126
|
try {
|
|
127
|
-
const t = localStorage.getItem(
|
|
127
|
+
const t = localStorage.getItem(j);
|
|
128
128
|
if (!t) return null;
|
|
129
|
-
const
|
|
130
|
-
if (Array.isArray(
|
|
131
|
-
return
|
|
132
|
-
if (typeof
|
|
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(
|
|
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
|
|
143
|
+
function ue(t, s) {
|
|
144
144
|
try {
|
|
145
145
|
const a = t.map((h) => {
|
|
146
|
-
const p =
|
|
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(
|
|
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(
|
|
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
|
|
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
|
|
173
|
-
for (let
|
|
174
|
-
if (
|
|
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
|
-
},
|
|
177
|
+
}, W = (o, y, f, k) => {
|
|
178
178
|
for (let b = y; b < y + k; b++) {
|
|
179
|
-
const
|
|
180
|
-
for (let
|
|
181
|
-
|
|
182
|
-
h.set(b,
|
|
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 <=
|
|
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),
|
|
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
|
|
201
|
-
if (
|
|
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
|
|
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
|
|
215
|
+
return Me(t);
|
|
216
216
|
}
|
|
217
|
-
const
|
|
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
|
|
237
|
-
const { gridOptions: a = {}, resizable: h = !1, autoSave: p = !0, onLayoutChange:
|
|
238
|
-
...
|
|
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 = (
|
|
241
|
+
}, b = (r) => {
|
|
242
242
|
if (i.value) {
|
|
243
243
|
console.warn("[useGridstack] Grid already initialized");
|
|
244
244
|
return;
|
|
245
245
|
}
|
|
246
|
-
const
|
|
247
|
-
o.value =
|
|
248
|
-
const
|
|
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
|
|
250
|
+
return ee(g, m);
|
|
251
251
|
});
|
|
252
|
-
i.value.load(
|
|
253
|
-
},
|
|
252
|
+
i.value.load(c), y.value = !0;
|
|
253
|
+
}, z = (r, l) => {
|
|
254
254
|
if (!f.value) {
|
|
255
|
-
for (const
|
|
256
|
-
const { id: g, position: m } =
|
|
255
|
+
for (const c of l) {
|
|
256
|
+
const { id: g, position: m } = te(c);
|
|
257
257
|
if (g) {
|
|
258
|
-
const $ = o.value.get(g),
|
|
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
|
|
262
|
-
...typeof
|
|
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),
|
|
266
|
+
o.value = new Map(o.value), W?.(o.value), p && M();
|
|
267
267
|
}
|
|
268
|
-
},
|
|
269
|
-
for (const
|
|
270
|
-
const { id: g, position: m } =
|
|
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
|
-
},
|
|
275
|
-
for (const
|
|
276
|
-
|
|
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
|
-
},
|
|
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
|
-
},
|
|
280
|
+
}, F = (r) => {
|
|
281
281
|
if (!i.value) return;
|
|
282
|
-
const
|
|
283
|
-
g && i.value.makeWidget(g,
|
|
284
|
-
}, C = (
|
|
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
|
|
287
|
-
|
|
288
|
-
}, H = (
|
|
289
|
-
const m =
|
|
290
|
-
o.value.set(
|
|
291
|
-
x:
|
|
292
|
-
y:
|
|
293
|
-
...typeof
|
|
294
|
-
...typeof
|
|
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
|
-
},
|
|
296
|
+
}, V = (r, l) => {
|
|
297
297
|
if (!i.value) return;
|
|
298
|
-
const
|
|
299
|
-
|
|
300
|
-
},
|
|
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
|
|
303
|
-
|
|
304
|
-
},
|
|
305
|
-
|
|
306
|
-
},
|
|
307
|
-
const
|
|
308
|
-
|
|
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
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
},
|
|
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
|
|
318
|
-
const
|
|
319
|
-
if (
|
|
320
|
-
const
|
|
321
|
-
|
|
322
|
-
x:
|
|
323
|
-
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
|
|
327
|
-
...typeof
|
|
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
|
-
},
|
|
334
|
-
o.value = new Map([...s].map(([n, l]) => [n, { ...l }])), A();
|
|
335
|
-
}, Q = (s) => {
|
|
333
|
+
}, E = (r) => {
|
|
336
334
|
if (!i.value) {
|
|
337
|
-
|
|
335
|
+
r();
|
|
338
336
|
return;
|
|
339
337
|
}
|
|
340
|
-
f.value = !0, i.value.batchUpdate(),
|
|
338
|
+
f.value = !0, i.value.batchUpdate(), r(), i.value.batchUpdate(!1), f.value = !1;
|
|
341
339
|
};
|
|
342
|
-
return
|
|
340
|
+
return le(
|
|
343
341
|
t,
|
|
344
|
-
async (
|
|
342
|
+
async (r, l) => {
|
|
345
343
|
if (!i.value || !y.value) return;
|
|
346
|
-
await
|
|
347
|
-
const
|
|
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
|
|
351
|
-
|
|
348
|
+
for (const m of c)
|
|
349
|
+
F(m);
|
|
352
350
|
},
|
|
353
351
|
{ deep: !1 }
|
|
354
|
-
),
|
|
355
|
-
|
|
352
|
+
), pe(() => {
|
|
353
|
+
U();
|
|
356
354
|
}), {
|
|
357
355
|
grid: i,
|
|
358
356
|
layout: o,
|
|
359
357
|
isInitialized: y,
|
|
360
358
|
initGrid: b,
|
|
361
|
-
destroyGrid:
|
|
362
|
-
addWidget:
|
|
359
|
+
destroyGrid: U,
|
|
360
|
+
addWidget: F,
|
|
363
361
|
removeWidget: C,
|
|
364
|
-
updateWidgetPosition:
|
|
365
|
-
updateWidgetSize:
|
|
366
|
-
saveLayout:
|
|
367
|
-
loadLayout:
|
|
362
|
+
updateWidgetPosition: V,
|
|
363
|
+
updateWidgetSize: A,
|
|
364
|
+
saveLayout: M,
|
|
365
|
+
loadLayout: T,
|
|
368
366
|
resetToDefaults: I,
|
|
369
|
-
|
|
370
|
-
batchUpdate: Q
|
|
367
|
+
batchUpdate: E
|
|
371
368
|
};
|
|
372
369
|
}
|
|
373
|
-
const
|
|
370
|
+
const Ee = {}, Te = {
|
|
374
371
|
class: "dashboard-widget-skeleton",
|
|
375
372
|
"aria-hidden": "true"
|
|
376
373
|
};
|
|
377
|
-
function
|
|
378
|
-
return v(), _("div",
|
|
379
|
-
|
|
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
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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:
|
|
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(
|
|
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
|
|
413
|
-
(
|
|
414
|
-
).map((
|
|
415
|
-
return
|
|
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,
|
|
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 =
|
|
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,
|
|
442
|
-
k.updateWidgetPosition(u,
|
|
443
|
-
|
|
429
|
+
for (const [u, n] of e)
|
|
430
|
+
k.updateWidgetPosition(u, n);
|
|
431
|
+
L("Widget positions updated");
|
|
444
432
|
}
|
|
445
|
-
}),
|
|
446
|
-
const u =
|
|
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
|
-
},
|
|
452
|
-
|
|
453
|
-
|
|
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
|
-
},
|
|
458
|
-
|
|
459
|
-
const { x: u, y:
|
|
460
|
-
|
|
461
|
-
},
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
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
|
-
|
|
467
|
-
const
|
|
468
|
-
|
|
469
|
-
},
|
|
470
|
-
const
|
|
471
|
-
if (x ===
|
|
472
|
-
|
|
473
|
-
const
|
|
474
|
-
|
|
475
|
-
},
|
|
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
|
|
464
|
+
const n = A.value === u.id;
|
|
478
465
|
if (e.key === "Enter" || e.key === " ") {
|
|
479
|
-
if (e.preventDefault(),
|
|
466
|
+
if (e.preventDefault(), n) l(u);
|
|
480
467
|
else {
|
|
481
|
-
const
|
|
482
|
-
|
|
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" &&
|
|
487
|
-
e.preventDefault(),
|
|
473
|
+
if (e.key === "Escape" && n) {
|
|
474
|
+
e.preventDefault(), c(u);
|
|
488
475
|
return;
|
|
489
476
|
}
|
|
490
|
-
const
|
|
491
|
-
|
|
492
|
-
},
|
|
493
|
-
const
|
|
494
|
-
return `${
|
|
495
|
-
},
|
|
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
|
-
},
|
|
500
|
-
await
|
|
486
|
+
}, K = async () => {
|
|
487
|
+
await de(), W.value && !S.value && Q(W.value);
|
|
501
488
|
};
|
|
502
|
-
return
|
|
503
|
-
e &&
|
|
504
|
-
}),
|
|
489
|
+
return ve(K), le(o, (e) => {
|
|
490
|
+
e && K();
|
|
491
|
+
}), s({
|
|
505
492
|
rearrangeWidgets: () => {
|
|
506
|
-
|
|
493
|
+
F();
|
|
507
494
|
},
|
|
508
495
|
recalculateLayout: () => {
|
|
509
496
|
},
|
|
510
|
-
saveLayout:
|
|
511
|
-
useBuiltInPositions: () => (
|
|
512
|
-
}), (e, u) => (v(),
|
|
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:
|
|
517
|
-
|
|
503
|
+
default: ge(() => [
|
|
504
|
+
Z(o) ? (v(), _("div", {
|
|
518
505
|
key: 1,
|
|
519
506
|
ref_key: "gridRef",
|
|
520
|
-
ref:
|
|
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), _(
|
|
526
|
-
key:
|
|
527
|
-
class:
|
|
528
|
-
"gs-id":
|
|
529
|
-
"gs-x":
|
|
530
|
-
"gs-y":
|
|
531
|
-
"gs-w":
|
|
532
|
-
"gs-h":
|
|
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":
|
|
538
|
-
onKeydown: (x) =>
|
|
524
|
+
"aria-label": N(n, d),
|
|
525
|
+
onKeydown: (x) => $(x, n)
|
|
539
526
|
}, [
|
|
540
|
-
w("div",
|
|
541
|
-
t.showDragHandles ? (v(), _("div",
|
|
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
|
-
])])) :
|
|
580
|
-
(v(),
|
|
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,
|
|
583
|
-
], 8,
|
|
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), _(
|
|
591
|
-
key: `skeleton-${
|
|
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:
|
|
580
|
+
style: ye(f(n))
|
|
594
581
|
}, null, 8, ["style"]))), 128))
|
|
595
|
-
], 8,
|
|
596
|
-
w("div",
|
|
582
|
+
], 8, Be)),
|
|
583
|
+
w("div", He, J(i.value), 1)
|
|
597
584
|
]),
|
|
598
585
|
_: 1
|
|
599
586
|
}));
|
|
600
587
|
}
|
|
601
|
-
}), No = /* @__PURE__ */
|
|
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:
|
|
609
|
-
const a =
|
|
610
|
-
return
|
|
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(),
|
|
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 =
|
|
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
|
-
},
|
|
619
|
+
}, Je = { class: "dashboard-widget-card__title" }, Qe = {
|
|
633
620
|
key: 0,
|
|
634
621
|
class: "dashboard-widget-card__actions"
|
|
635
|
-
},
|
|
622
|
+
}, Xe = {
|
|
636
623
|
key: 0,
|
|
637
624
|
class: "dashboard-widget-card__stats"
|
|
638
|
-
},
|
|
625
|
+
}, Ze = { class: "dashboard-widget-card__body" }, et = {
|
|
639
626
|
key: 1,
|
|
640
627
|
class: "dashboard-widget-card__footer"
|
|
641
|
-
}, jo = /* @__PURE__ */
|
|
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
|
|
650
|
-
return (a, h) => (v(), _("div",
|
|
651
|
-
w("div",
|
|
652
|
-
|
|
653
|
-
w("div",
|
|
654
|
-
t.icon ? (v(), _("div",
|
|
655
|
-
|
|
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
|
-
])) :
|
|
661
|
-
w("div",
|
|
647
|
+
])) : B("", !0),
|
|
648
|
+
w("div", Je, J(s.header), 1)
|
|
662
649
|
])
|
|
663
650
|
]),
|
|
664
|
-
a.$slots.actions ? (v(), _("div",
|
|
665
|
-
|
|
666
|
-
])) :
|
|
651
|
+
a.$slots.actions ? (v(), _("div", Qe, [
|
|
652
|
+
O(a.$slots, "actions")
|
|
653
|
+
])) : B("", !0)
|
|
667
654
|
]),
|
|
668
|
-
a.$slots.stats ? (v(), _("div",
|
|
669
|
-
|
|
670
|
-
])) :
|
|
671
|
-
|
|
672
|
-
|
|
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
|
-
[
|
|
661
|
+
[Z(Le), t.loading]
|
|
675
662
|
]),
|
|
676
|
-
a.$slots.footer ? (v(), _("div",
|
|
677
|
-
|
|
678
|
-
])) :
|
|
663
|
+
a.$slots.footer ? (v(), _("div", et, [
|
|
664
|
+
O(a.$slots, "footer")
|
|
665
|
+
])) : B("", !0)
|
|
679
666
|
]));
|
|
680
667
|
}
|
|
681
|
-
}),
|
|
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 (
|
|
676
|
+
return (s, a) => (v(), _("div", tt, [
|
|
690
677
|
w("div", {
|
|
691
|
-
class:
|
|
692
|
-
},
|
|
693
|
-
w("div",
|
|
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
|
-
}),
|
|
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 (
|
|
700
|
-
|
|
686
|
+
return (s, a) => (v(), _("div", at, [
|
|
687
|
+
O(s.$slots, "default")
|
|
701
688
|
]));
|
|
702
689
|
}
|
|
703
|
-
}),
|
|
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__ */
|
|
693
|
+
}, qo = /* @__PURE__ */ R({
|
|
707
694
|
__name: "dashboard-feed-row",
|
|
708
695
|
emits: ["click"],
|
|
709
696
|
setup(t) {
|
|
710
|
-
return (
|
|
697
|
+
return (s, a) => (v(), _("div", {
|
|
711
698
|
class: "dashboard-feed-row",
|
|
712
|
-
onClick: a[0] || (a[0] = (h) =>
|
|
699
|
+
onClick: a[0] || (a[0] = (h) => s.$emit("click"))
|
|
713
700
|
}, [
|
|
714
|
-
w("div",
|
|
715
|
-
|
|
701
|
+
w("div", st, [
|
|
702
|
+
O(s.$slots, "default")
|
|
716
703
|
]),
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
])) :
|
|
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
|
-
|
|
723
|
+
Oe as u
|
|
737
724
|
};
|