@vc-shell/framework 2.2.0-pr263.f4e6550 → 2.3.0
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/ai-agent/index.js +3 -3
- package/dist/chunks/VcAiAgentPanel.vue_vue_type_script_setup_true_lang-Cm_izaFs.js +1380 -0
- package/dist/chunks/VcAiAgentPanel.vue_vue_type_script_setup_true_lang-Cm_izaFs.js.map +1 -0
- package/dist/chunks/{VcAiAgentPanel.vue_vue_type_style_index_0_lang-D2KmNhhl.js → VcAiAgentPanel.vue_vue_type_style_index_0_lang-DrGobYkj.js} +381 -246
- package/dist/chunks/VcAiAgentPanel.vue_vue_type_style_index_0_lang-DrGobYkj.js.map +1 -0
- package/dist/chunks/{VcScheduler.vue_vue_type_script_setup_true_lang-DmHoLXKj.js → VcScheduler.vue_vue_type_script_setup_true_lang-BHufGxno.js} +6901 -6742
- package/dist/chunks/VcScheduler.vue_vue_type_script_setup_true_lang-BHufGxno.js.map +1 -0
- package/dist/chunks/{VcScheduler.vue_vue_type_style_index_0_lang-DR8wrtyB.js → VcScheduler.vue_vue_type_style_index_0_lang-Iu3FiU-0.js} +1471 -1587
- package/dist/chunks/VcScheduler.vue_vue_type_style_index_0_lang-Iu3FiU-0.js.map +1 -0
- package/dist/chunks/{dashboard-feed-row.vue_vue_type_script_setup_true_lang-DvM1DXj8.js → dashboard-feed-row.vue_vue_type_script_setup_true_lang-DlE4KIvq.js} +68 -68
- package/dist/chunks/{dashboard-feed-row.vue_vue_type_script_setup_true_lang-DvM1DXj8.js.map → dashboard-feed-row.vue_vue_type_script_setup_true_lang-DlE4KIvq.js.map} +1 -1
- package/dist/chunks/{index-CvSe3hjU.js → index-C-SEYj46.js} +2 -2
- package/dist/chunks/{index-CvSe3hjU.js.map → index-C-SEYj46.js.map} +1 -1
- package/dist/chunks/{vendor-vueuse-components-BW7i7Uhb.js → vendor-vueuse-components-CoR2FSn3.js} +1 -1
- package/dist/chunks/{vendor-vueuse-components-BW7i7Uhb.js.map → vendor-vueuse-components-CoR2FSn3.js.map} +1 -1
- package/dist/chunks/{vendor-vueuse-core-BYWoPpF_.js → vendor-vueuse-core-BFa9je5E.js} +83 -82
- package/dist/chunks/{vendor-vueuse-core-BYWoPpF_.js.map → vendor-vueuse-core-BFa9je5E.js.map} +1 -1
- package/dist/chunks/{vendor-vueuse-shared-BlCOXw5g.js → vendor-vueuse-shared-kZH3-Km1.js} +2 -2
- package/dist/chunks/{vendor-vueuse-shared-BlCOXw5g.js.map → vendor-vueuse-shared-kZH3-Km1.js.map} +1 -1
- package/dist/core/blade-navigation/types/index.d.ts +8 -0
- package/dist/core/blade-navigation/types/index.d.ts.map +1 -1
- package/dist/core/composables/index.d.ts +1 -0
- package/dist/core/composables/index.d.ts.map +1 -1
- package/dist/core/composables/useAsync/index.d.ts.map +1 -1
- package/dist/core/composables/useKeyboardShortcuts/format.d.ts +11 -0
- package/dist/core/composables/useKeyboardShortcuts/format.d.ts.map +1 -0
- package/dist/core/composables/useKeyboardShortcuts/hotkey.d.ts +14 -0
- package/dist/core/composables/useKeyboardShortcuts/hotkey.d.ts.map +1 -0
- package/dist/core/composables/useKeyboardShortcuts/index.d.ts +23 -0
- package/dist/core/composables/useKeyboardShortcuts/index.d.ts.map +1 -0
- package/dist/core/composables/useKeyboardShortcuts/match.d.ts +14 -0
- package/dist/core/composables/useKeyboardShortcuts/match.d.ts.map +1 -0
- package/dist/core/composables/useUser/index.d.ts.map +1 -1
- package/dist/core/interceptors/index.d.ts.map +1 -1
- package/dist/core/plugins/ai-agent/components/VcAiAgentPanel.vue.d.ts.map +1 -1
- package/dist/core/plugins/ai-agent/components/_internal/VcAiAgentHeader.vue.d.ts.map +1 -1
- package/dist/core/plugins/ai-agent/composables/useAiAgent.d.ts.map +1 -1
- package/dist/core/types/index.d.ts +12 -0
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/core/utilities/sessionExpiration.d.ts +30 -0
- package/dist/core/utilities/sessionExpiration.d.ts.map +1 -0
- package/dist/dashboard/index.js +1 -1
- package/dist/framework.js +653 -644
- package/dist/framework.js.map +1 -1
- package/dist/index.css +1 -1
- package/dist/locales/de.js +4 -1
- package/dist/locales/en.js +4 -1
- package/dist/locales/en.json +4 -1
- package/dist/locales/types.d.ts +3 -0
- package/dist/shell/_internal/blade-navigation/components/vc-blade-navigation/shortcut-dispatch.d.ts +22 -0
- package/dist/shell/_internal/blade-navigation/components/vc-blade-navigation/shortcut-dispatch.d.ts.map +1 -0
- package/dist/shell/_internal/blade-navigation/components/vc-blade-navigation/vc-blade-navigation-new.vue.d.ts.map +1 -1
- package/dist/shell/_internal/blade-navigation/components/vc-blade-slot/vc-blade-slot.vue.d.ts.map +1 -1
- package/dist/shell/components/error-interceptor/interceptor.d.ts.map +1 -1
- package/dist/test-helpers.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/molecules/vc-dropdown/vc-dropdown.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-popover/vc-popover.vue.d.ts +1 -1
- package/dist/ui/components/molecules/vc-popover/vc-popover.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-blade/_internal/toolbar/ShortcutKbd.vue.d.ts +11 -0
- package/dist/ui/components/organisms/vc-blade/_internal/toolbar/ShortcutKbd.vue.d.ts.map +1 -0
- package/dist/ui/components/organisms/vc-blade/_internal/toolbar/ToolbarBaseButton.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-blade/_internal/toolbar/toolbar-button-props.d.ts +2 -0
- package/dist/ui/components/organisms/vc-blade/_internal/toolbar/toolbar-button-props.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-data-table/components/VcColumn.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-filmstrip/vc-gallery-filmstrip.vue.d.ts +1 -1
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-filmstrip/vc-gallery-filmstrip.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-gallery/_internal/vc-gallery-preview/vc-gallery-preview.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-popup/vc-popup.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-sidebar/vc-sidebar.vue.d.ts.map +1 -1
- package/dist/ui/index.js +20 -20
- package/package.json +4 -4
- package/dist/chunks/VcAiAgentPanel.vue_vue_type_script_setup_true_lang-Cx8_DCu_.js +0 -1124
- package/dist/chunks/VcAiAgentPanel.vue_vue_type_script_setup_true_lang-Cx8_DCu_.js.map +0 -1
- package/dist/chunks/VcAiAgentPanel.vue_vue_type_style_index_0_lang-D2KmNhhl.js.map +0 -1
- package/dist/chunks/VcScheduler.vue_vue_type_script_setup_true_lang-DmHoLXKj.js.map +0 -1
- package/dist/chunks/VcScheduler.vue_vue_type_style_index_0_lang-DR8wrtyB.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { shallowRef as Q, ref as $, watch as V, nextTick as Y, onUnmounted as X, openBlock as u, createElementBlock as v, createStaticVNode as Z, defineComponent as L, inject as ee, computed as
|
|
2
|
-
import {
|
|
1
|
+
import { shallowRef as Q, ref as $, watch as V, nextTick as Y, onUnmounted as X, openBlock as u, createElementBlock as v, createStaticVNode as Z, defineComponent as L, inject as ee, computed as q, onMounted as te, createBlock as A, withCtx as ae, unref as R, Fragment as j, renderList as K, normalizeStyle as oe, createElementVNode as h, createCommentVNode as x, resolveDynamicComponent as se, mergeProps as re, toDisplayString as T, renderSlot as k, createVNode as ie, withDirectives as ne, normalizeClass as de } from "vue";
|
|
2
|
+
import { q as le, r as ce, s as ue, l as me } from "./VcScheduler.vue_vue_type_style_index_0_lang-Iu3FiU-0.js";
|
|
3
3
|
import { G as pe } from "./vendor-gridstack-Beau2jQ7.js";
|
|
4
|
-
import { M as ve, _ as fe } from "./VcAiAgentPanel.vue_vue_type_style_index_0_lang-
|
|
4
|
+
import { M as ve, _ as fe } from "./VcAiAgentPanel.vue_vue_type_style_index_0_lang-DrGobYkj.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";
|
|
@@ -82,8 +82,8 @@ 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
84
|
const D = "vc-dashboard-layout";
|
|
85
|
-
function N(e,
|
|
86
|
-
const o =
|
|
85
|
+
function N(e, r) {
|
|
86
|
+
const o = r ?? e.position;
|
|
87
87
|
return {
|
|
88
88
|
id: e.id,
|
|
89
89
|
x: o?.x ?? 0,
|
|
@@ -108,24 +108,24 @@ function C(e) {
|
|
|
108
108
|
};
|
|
109
109
|
}
|
|
110
110
|
function he(e) {
|
|
111
|
-
const
|
|
111
|
+
const r = /* @__PURE__ */ new Map();
|
|
112
112
|
for (const o of e)
|
|
113
|
-
o.id &&
|
|
113
|
+
o.id && r.set(o.id, {
|
|
114
114
|
x: o.x ?? 0,
|
|
115
115
|
y: o.y ?? 0
|
|
116
116
|
});
|
|
117
|
-
return
|
|
117
|
+
return r;
|
|
118
118
|
}
|
|
119
119
|
function F() {
|
|
120
120
|
try {
|
|
121
121
|
const e = localStorage.getItem(D);
|
|
122
122
|
if (!e) return null;
|
|
123
|
-
const
|
|
124
|
-
if (Array.isArray(
|
|
125
|
-
return he(
|
|
126
|
-
if (typeof
|
|
123
|
+
const r = JSON.parse(e);
|
|
124
|
+
if (Array.isArray(r))
|
|
125
|
+
return he(r);
|
|
126
|
+
if (typeof r == "object" && r !== null) {
|
|
127
127
|
const o = /* @__PURE__ */ new Map();
|
|
128
|
-
for (const [l, c] of Object.entries(
|
|
128
|
+
for (const [l, c] of Object.entries(r))
|
|
129
129
|
c && typeof c.x == "number" && typeof c.y == "number" && o.set(l, { x: c.x, y: c.y });
|
|
130
130
|
return o;
|
|
131
131
|
}
|
|
@@ -134,10 +134,10 @@ function F() {
|
|
|
134
134
|
return console.warn("[GridstackAdapter] Failed to load layout from storage:", e), null;
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
|
-
function J(e,
|
|
137
|
+
function J(e, r) {
|
|
138
138
|
try {
|
|
139
139
|
const o = e.map((l) => {
|
|
140
|
-
const c =
|
|
140
|
+
const c = r.get(l.id);
|
|
141
141
|
return {
|
|
142
142
|
id: l.id,
|
|
143
143
|
x: c?.x ?? l.position?.x ?? 0,
|
|
@@ -158,7 +158,7 @@ function ge() {
|
|
|
158
158
|
console.warn("[GridstackAdapter] Failed to clear layout storage:", e);
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
|
-
function _e(e,
|
|
161
|
+
function _e(e, r = 12) {
|
|
162
162
|
const o = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map(), c = (a, m, p, _) => {
|
|
163
163
|
for (let g = m; g < m + _; g++) {
|
|
164
164
|
const w = l.get(g) || [];
|
|
@@ -173,10 +173,10 @@ function _e(e, i = 12) {
|
|
|
173
173
|
w.push(y);
|
|
174
174
|
l.set(g, w);
|
|
175
175
|
}
|
|
176
|
-
},
|
|
176
|
+
}, i = (a, m) => {
|
|
177
177
|
let p = 0;
|
|
178
178
|
for (; ; ) {
|
|
179
|
-
for (let _ = 0; _ <=
|
|
179
|
+
for (let _ = 0; _ <= r - a; _++)
|
|
180
180
|
if (c(_, p, a, m))
|
|
181
181
|
return { x: _, y: p };
|
|
182
182
|
if (p++, p > 100) break;
|
|
@@ -184,16 +184,16 @@ function _e(e, i = 12) {
|
|
|
184
184
|
return { x: 0, y: p };
|
|
185
185
|
};
|
|
186
186
|
for (const a of e) {
|
|
187
|
-
const m =
|
|
187
|
+
const m = i(a.size.width, a.size.height);
|
|
188
188
|
o.set(a.id, m), b(m.x, m.y, a.size.width, a.size.height);
|
|
189
189
|
}
|
|
190
190
|
return o;
|
|
191
191
|
}
|
|
192
|
-
function U(e,
|
|
193
|
-
if (
|
|
192
|
+
function U(e, r) {
|
|
193
|
+
if (r && r.size > 0) {
|
|
194
194
|
const l = /* @__PURE__ */ new Map();
|
|
195
195
|
for (const c of e) {
|
|
196
|
-
const b =
|
|
196
|
+
const b = r.get(c.id), i = c.position, a = b ?? i ?? { x: 0, y: 0 };
|
|
197
197
|
l.set(c.id, a);
|
|
198
198
|
}
|
|
199
199
|
return l;
|
|
@@ -225,23 +225,23 @@ const ye = {
|
|
|
225
225
|
// Only bottom-right corner
|
|
226
226
|
}
|
|
227
227
|
};
|
|
228
|
-
function be(e,
|
|
229
|
-
const { gridOptions: o = {}, resizable: l = !1, autoSave: c = !0, onLayoutChange: b } =
|
|
228
|
+
function be(e, r = {}) {
|
|
229
|
+
const { gridOptions: o = {}, resizable: l = !1, autoSave: c = !0, onLayoutChange: b } = r, i = Q(null), a = $(/* @__PURE__ */ new Map()), m = $(!1), p = $(!1), _ = {
|
|
230
230
|
...ye,
|
|
231
231
|
...o,
|
|
232
232
|
disableResize: !l
|
|
233
233
|
}, g = (t) => {
|
|
234
|
-
if (
|
|
234
|
+
if (i.value) {
|
|
235
235
|
console.warn("[useGridstack] Grid already initialized");
|
|
236
236
|
return;
|
|
237
237
|
}
|
|
238
238
|
const n = F();
|
|
239
|
-
a.value = U(e.value, n),
|
|
239
|
+
a.value = U(e.value, n), i.value = pe.init(_, t), i.value.on("change", w), i.value.on("added", y), i.value.on("removed", I);
|
|
240
240
|
const s = e.value.map((d) => {
|
|
241
241
|
const f = a.value.get(d.id);
|
|
242
242
|
return N(d, f);
|
|
243
243
|
});
|
|
244
|
-
|
|
244
|
+
i.value.load(s), m.value = !0;
|
|
245
245
|
}, w = (t, n) => {
|
|
246
246
|
if (!p.value) {
|
|
247
247
|
for (const s of n) {
|
|
@@ -261,19 +261,19 @@ function be(e, i = {}) {
|
|
|
261
261
|
s.id && a.value.delete(s.id);
|
|
262
262
|
a.value = new Map(a.value);
|
|
263
263
|
}, G = () => {
|
|
264
|
-
|
|
264
|
+
i.value && (i.value.off("change"), i.value.off("added"), i.value.off("removed"), i.value.destroy(!1), i.value = null, m.value = !1);
|
|
265
265
|
}, S = (t) => {
|
|
266
|
-
if (!
|
|
266
|
+
if (!i.value) return;
|
|
267
267
|
const n = a.value.get(t.id) ?? t.position, s = N(t, n), d = document.querySelector(`[gs-id="${t.id}"]`);
|
|
268
|
-
d &&
|
|
268
|
+
d && i.value.makeWidget(d, s);
|
|
269
269
|
}, z = (t) => {
|
|
270
|
-
if (!
|
|
270
|
+
if (!i.value) return;
|
|
271
271
|
const n = document.querySelector(`[gs-id="${t}"]`);
|
|
272
|
-
n &&
|
|
272
|
+
n && i.value.removeWidget(n, !1), a.value.delete(t);
|
|
273
273
|
}, M = (t, n) => {
|
|
274
|
-
if (!
|
|
274
|
+
if (!i.value) return;
|
|
275
275
|
const s = document.querySelector(`[gs-id="${t}"]`);
|
|
276
|
-
s && (p.value = !0,
|
|
276
|
+
s && (p.value = !0, i.value.update(s, { x: n.x, y: n.y }), a.value.set(t, n), a.value = new Map(a.value), p.value = !1);
|
|
277
277
|
}, W = () => {
|
|
278
278
|
J(e.value, a.value);
|
|
279
279
|
}, P = () => {
|
|
@@ -285,31 +285,31 @@ function be(e, i = {}) {
|
|
|
285
285
|
t.position && a.value.set(t.id, { ...t.position });
|
|
286
286
|
O(), W();
|
|
287
287
|
}, O = () => {
|
|
288
|
-
if (
|
|
289
|
-
p.value = !0,
|
|
288
|
+
if (i.value) {
|
|
289
|
+
p.value = !0, i.value.batchUpdate();
|
|
290
290
|
for (const t of e.value) {
|
|
291
291
|
const n = a.value.get(t.id);
|
|
292
292
|
if (n) {
|
|
293
293
|
const s = document.querySelector(`[gs-id="${t.id}"]`);
|
|
294
|
-
s &&
|
|
294
|
+
s && i.value.update(s, {
|
|
295
295
|
x: n.x,
|
|
296
296
|
y: n.y
|
|
297
297
|
});
|
|
298
298
|
}
|
|
299
299
|
}
|
|
300
|
-
|
|
300
|
+
i.value.batchUpdate(!1), p.value = !1;
|
|
301
301
|
}
|
|
302
302
|
}, H = (t) => {
|
|
303
|
-
if (!
|
|
303
|
+
if (!i.value) {
|
|
304
304
|
t();
|
|
305
305
|
return;
|
|
306
306
|
}
|
|
307
|
-
p.value = !0,
|
|
307
|
+
p.value = !0, i.value.batchUpdate(), t(), i.value.batchUpdate(!1), p.value = !1;
|
|
308
308
|
};
|
|
309
309
|
return V(
|
|
310
310
|
e,
|
|
311
311
|
async (t, n) => {
|
|
312
|
-
if (!
|
|
312
|
+
if (!i.value || !m.value) return;
|
|
313
313
|
await Y();
|
|
314
314
|
const s = t.filter((f) => !n?.some((B) => B.id === f.id)), d = n?.filter((f) => !t.some((B) => B.id === f.id)).map((f) => f.id) ?? [];
|
|
315
315
|
for (const f of d)
|
|
@@ -321,7 +321,7 @@ function be(e, i = {}) {
|
|
|
321
321
|
), X(() => {
|
|
322
322
|
G();
|
|
323
323
|
}), {
|
|
324
|
-
grid:
|
|
324
|
+
grid: i,
|
|
325
325
|
layout: a,
|
|
326
326
|
isInitialized: m,
|
|
327
327
|
initGrid: g,
|
|
@@ -339,8 +339,8 @@ const we = {}, ke = {
|
|
|
339
339
|
class: "dashboard-widget-skeleton",
|
|
340
340
|
"aria-hidden": "true"
|
|
341
341
|
};
|
|
342
|
-
function $e(e,
|
|
343
|
-
return u(), v("div", ke, [...
|
|
342
|
+
function $e(e, r) {
|
|
343
|
+
return u(), v("div", ke, [...r[0] || (r[0] = [
|
|
344
344
|
Z('<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)
|
|
345
345
|
])]);
|
|
346
346
|
}
|
|
@@ -360,7 +360,7 @@ const xe = /* @__PURE__ */ le(we, [["render", $e]]), Le = ["aria-label"], Se = [
|
|
|
360
360
|
resizable: { type: Boolean, default: !1 },
|
|
361
361
|
ariaLabel: { default: "Dashboard widgets. Drag widgets to rearrange." }
|
|
362
362
|
},
|
|
363
|
-
setup(e, { expose:
|
|
363
|
+
setup(e, { expose: r }) {
|
|
364
364
|
const o = [
|
|
365
365
|
{ x: 0, y: 0, w: 6, h: 6 },
|
|
366
366
|
{ x: 6, y: 0, w: 6, h: 6 },
|
|
@@ -382,10 +382,10 @@ const xe = /* @__PURE__ */ le(we, [["render", $e]]), Le = ["aria-label"], Se = [
|
|
|
382
382
|
return null;
|
|
383
383
|
}
|
|
384
384
|
}
|
|
385
|
-
const c = e, b = $(null),
|
|
385
|
+
const c = e, b = $(null), i = $(""), a = ee(ve, $(!0)), m = q(() => a.value ? [] : l() ?? o), p = (t) => ({
|
|
386
386
|
gridColumn: `${t.x + 1} / span ${t.w}`,
|
|
387
387
|
gridRow: `${t.y + 1} / span ${t.h}`
|
|
388
|
-
}), _ = ce(), g =
|
|
388
|
+
}), _ = ce(), g = q(() => _.getWidgets()), { layout: w, isInitialized: y, initGrid: I, saveLayout: G, resetToDefaults: S } = be(g, {
|
|
389
389
|
resizable: c.resizable,
|
|
390
390
|
autoSave: !0,
|
|
391
391
|
gridOptions: {
|
|
@@ -399,15 +399,15 @@ const xe = /* @__PURE__ */ le(we, [["render", $e]]), Le = ["aria-label"], Se = [
|
|
|
399
399
|
W("Widget positions updated");
|
|
400
400
|
}
|
|
401
401
|
}), z = (t) => w.value.get(t), M = (t, n) => `${t.name || t.id}, widget ${n + 1} of ${g.value.length}. Drag to reorder.`, W = (t) => {
|
|
402
|
-
|
|
403
|
-
|
|
402
|
+
i.value = t, setTimeout(() => {
|
|
403
|
+
i.value = "";
|
|
404
404
|
}, 1e3);
|
|
405
405
|
}, P = async () => {
|
|
406
406
|
await Y(), b.value && !y.value && I(b.value);
|
|
407
407
|
};
|
|
408
408
|
return te(P), V(a, (t) => {
|
|
409
409
|
t && P();
|
|
410
|
-
}),
|
|
410
|
+
}), r({
|
|
411
411
|
rearrangeWidgets: () => {
|
|
412
412
|
S();
|
|
413
413
|
},
|
|
@@ -428,7 +428,7 @@ const xe = /* @__PURE__ */ le(we, [["render", $e]]), Le = ["aria-label"], Se = [
|
|
|
428
428
|
role: "list",
|
|
429
429
|
"aria-label": e.ariaLabel
|
|
430
430
|
}, [
|
|
431
|
-
(u(!0), v(
|
|
431
|
+
(u(!0), v(j, null, K(g.value, (s, d) => (u(), v("div", {
|
|
432
432
|
key: s.id,
|
|
433
433
|
class: "grid-stack-item",
|
|
434
434
|
"gs-id": s.id,
|
|
@@ -481,7 +481,7 @@ const xe = /* @__PURE__ */ le(we, [["render", $e]]), Le = ["aria-label"], Se = [
|
|
|
481
481
|
})
|
|
482
482
|
], -1)
|
|
483
483
|
])])) : x("", !0),
|
|
484
|
-
(u(), A(se(s.component),
|
|
484
|
+
(u(), A(se(s.component), re({ ref_for: !0 }, s.props || {}, { class: "vc-gridstack-dashboard__widget-content" }), null, 16))
|
|
485
485
|
])
|
|
486
486
|
], 8, ze))), 128))
|
|
487
487
|
], 8, Se)) : (u(), v("div", {
|
|
@@ -491,13 +491,13 @@ const xe = /* @__PURE__ */ le(we, [["render", $e]]), Le = ["aria-label"], Se = [
|
|
|
491
491
|
"aria-busy": "true",
|
|
492
492
|
"aria-label": e.ariaLabel
|
|
493
493
|
}, [
|
|
494
|
-
(u(!0), v(
|
|
494
|
+
(u(!0), v(j, null, K(m.value, (s, d) => (u(), A(xe, {
|
|
495
495
|
key: `skeleton-${d}`,
|
|
496
496
|
class: "vc-gridstack-dashboard__skeleton-item",
|
|
497
497
|
style: oe(p(s))
|
|
498
498
|
}, null, 8, ["style"]))), 128))
|
|
499
499
|
], 8, Le)),
|
|
500
|
-
h("div", Ge, T(
|
|
500
|
+
h("div", Ge, T(i.value), 1)
|
|
501
501
|
]),
|
|
502
502
|
_: 1
|
|
503
503
|
}));
|
|
@@ -509,9 +509,9 @@ const xe = /* @__PURE__ */ le(we, [["render", $e]]), Le = ["aria-label"], Se = [
|
|
|
509
509
|
resizable: { type: Boolean, default: !1 },
|
|
510
510
|
ariaLabel: { default: "Dashboard widgets. Drag widgets to rearrange." }
|
|
511
511
|
},
|
|
512
|
-
setup(e, { expose:
|
|
512
|
+
setup(e, { expose: r }) {
|
|
513
513
|
const o = $(null);
|
|
514
|
-
return
|
|
514
|
+
return r({
|
|
515
515
|
rearrangeWidgets: () => {
|
|
516
516
|
o.value?.rearrangeWidgets?.();
|
|
517
517
|
},
|
|
@@ -550,19 +550,19 @@ const xe = /* @__PURE__ */ le(we, [["render", $e]]), Le = ["aria-label"], Se = [
|
|
|
550
550
|
loading: { type: Boolean }
|
|
551
551
|
},
|
|
552
552
|
setup(e) {
|
|
553
|
-
const
|
|
553
|
+
const r = e;
|
|
554
554
|
return (o, l) => (u(), v("div", Ae, [
|
|
555
555
|
h("div", Te, [
|
|
556
556
|
k(o.$slots, "header", {}, () => [
|
|
557
557
|
h("div", Ie, [
|
|
558
558
|
e.icon ? (u(), v("div", Me, [
|
|
559
|
-
|
|
559
|
+
ie(R(fe), {
|
|
560
560
|
class: "dashboard-widget-card__icon",
|
|
561
561
|
icon: e.icon,
|
|
562
562
|
size: "l"
|
|
563
563
|
}, null, 8, ["icon"])
|
|
564
564
|
])) : x("", !0),
|
|
565
|
-
h("div", Oe, T(
|
|
565
|
+
h("div", Oe, T(r.header), 1)
|
|
566
566
|
])
|
|
567
567
|
]),
|
|
568
568
|
o.$slots.actions ? (u(), v("div", Be, [
|
|
@@ -590,7 +590,7 @@ const xe = /* @__PURE__ */ le(we, [["render", $e]]), Le = ["aria-label"], Se = [
|
|
|
590
590
|
variant: {}
|
|
591
591
|
},
|
|
592
592
|
setup(e) {
|
|
593
|
-
return (
|
|
593
|
+
return (r, o) => (u(), v("div", Fe, [
|
|
594
594
|
h("div", {
|
|
595
595
|
class: de(["dashboard-stat-item__value", e.variant ? `dashboard-stat-item__value--${e.variant}` : ""])
|
|
596
596
|
}, T(e.value), 3),
|
|
@@ -600,26 +600,26 @@ const xe = /* @__PURE__ */ le(we, [["render", $e]]), Le = ["aria-label"], Se = [
|
|
|
600
600
|
}), Ee = { class: "tw-divide-y tw-divide-[var(--neutrals-200)]" }, Pa = /* @__PURE__ */ L({
|
|
601
601
|
__name: "dashboard-feed-list",
|
|
602
602
|
setup(e) {
|
|
603
|
-
return (
|
|
604
|
-
k(
|
|
603
|
+
return (r, o) => (u(), v("div", Ee, [
|
|
604
|
+
k(r.$slots, "default")
|
|
605
605
|
]));
|
|
606
606
|
}
|
|
607
|
-
}), He = { class: "tw-flex tw-items-center tw-gap-2.5 tw-min-w-0" },
|
|
607
|
+
}), He = { class: "tw-flex tw-items-center tw-gap-2.5 tw-min-w-0" }, qe = {
|
|
608
608
|
key: 0,
|
|
609
609
|
class: "tw-flex tw-items-center tw-gap-3 tw-flex-shrink-0 tw-ml-3"
|
|
610
610
|
}, Aa = /* @__PURE__ */ L({
|
|
611
611
|
__name: "dashboard-feed-row",
|
|
612
612
|
emits: ["click"],
|
|
613
613
|
setup(e) {
|
|
614
|
-
return (
|
|
614
|
+
return (r, o) => (u(), v("div", {
|
|
615
615
|
class: "dashboard-feed-row",
|
|
616
|
-
onClick: o[0] || (o[0] = (l) =>
|
|
616
|
+
onClick: o[0] || (o[0] = (l) => r.$emit("click"))
|
|
617
617
|
}, [
|
|
618
618
|
h("div", He, [
|
|
619
|
-
k(
|
|
619
|
+
k(r.$slots, "default")
|
|
620
620
|
]),
|
|
621
|
-
|
|
622
|
-
k(
|
|
621
|
+
r.$slots.trailing ? (u(), v("div", qe, [
|
|
622
|
+
k(r.$slots, "trailing")
|
|
623
623
|
])) : x("", !0)
|
|
624
624
|
]));
|
|
625
625
|
}
|