@vc-shell/framework 1.2.4-beta.6 → 1.2.4-beta.8
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/framework.js +35065 -464
- package/dist/index.css +1 -1
- package/dist/shared/components/dashboard-charts/index.d.ts +3 -6
- package/dist/shared/components/dashboard-charts/index.d.ts.map +1 -1
- package/dist/shared/components/draggable-dashboard/DraggableDashboard.vue.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/atoms/vc-tooltip/vc-tooltip.vue.d.ts +1 -1
- package/dist/ui/components/atoms/vc-tooltip/vc-tooltip.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-editor/index.d.ts +2 -3
- package/dist/ui/components/molecules/vc-editor/index.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-slider/index.d.ts +3 -5
- package/dist/ui/components/molecules/vc-slider/index.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/VcDataTable.vue.d.ts.map +1 -1
- package/dist/{vendor-cheerio-3JDxU-TZ.js → vendor-cheerio-DrsWhxJH.js} +4 -4
- package/dist/{vendor-cheerio-select-B7cQ9HP4.js → vendor-cheerio-select-jw4C2SiT.js} +2 -2
- package/dist/{vendor-css-select-CaVL4gMJ.js → vendor-css-select-BwGMmTuc.js} +1 -1
- package/dist/{vendor-dom-serializer-Sk3xHhQk.js → vendor-dom-serializer-BbVuF1MQ.js} +1 -1
- package/dist/{vendor-domutils-o2IJSx7k.js → vendor-domutils-DDRq_ial.js} +1 -1
- package/dist/{vendor-entities-CCReaWqU.js → vendor-entities-J86Og8IU.js} +2 -2
- package/dist/{vendor-htmlparser2-nRkKyNhl.js → vendor-htmlparser2-BxKKzWLL.js} +1 -1
- package/dist/{vendor-markdown-it-pxD-Y9qk.js → vendor-markdown-it-Bs9KEWkF.js} +1 -1
- package/dist/{vendor-prosemirror-commands-Dml_M5TN.js → vendor-prosemirror-commands-Bv4ChObl.js} +2 -2
- package/dist/{vendor-prosemirror-dropcursor-BpoETgOQ.js → vendor-prosemirror-dropcursor-kF5UKNFM.js} +2 -2
- package/dist/{vendor-prosemirror-gapcursor-VVbNCx01.js → vendor-prosemirror-gapcursor-BAwEBHgE.js} +3 -3
- package/dist/{vendor-prosemirror-history-CZUb2jWK.js → vendor-prosemirror-history-CQYKHz3u.js} +2 -2
- package/dist/{vendor-prosemirror-keymap-D5bacBom.js → vendor-prosemirror-keymap-CAfQyvJ7.js} +1 -1
- package/dist/{vendor-prosemirror-markdown-C-c5VoFH.js → vendor-prosemirror-markdown-rpUTSG_Q.js} +1 -1
- package/dist/{vendor-prosemirror-schema-list-BZ-Z46DO.js → vendor-prosemirror-schema-list-BNJkECdS.js} +1 -1
- package/dist/{vendor-prosemirror-state-DYjHje5i.js → vendor-prosemirror-state-IeimrELV.js} +1 -1
- package/dist/{vendor-prosemirror-tables-CjY-gm1w.js → vendor-prosemirror-tables-zVUKdbdQ.js} +4 -4
- package/dist/{vendor-prosemirror-transform-6xBwIzbI.js → vendor-prosemirror-transform-BUjWd5Tb.js} +4 -4
- package/dist/{vendor-prosemirror-view-CzBOGIAq.js → vendor-prosemirror-view-DFpBkGRq.js} +2 -2
- package/dist/{vendor-tiptap-core-BNrmxwcD.js → vendor-tiptap-core-BfrE48R3.js} +16 -16
- package/dist/{vendor-tiptap-extension-blockquote-DBYgJvrA.js → vendor-tiptap-extension-blockquote-DG5eEgV_.js} +1 -1
- package/dist/{vendor-tiptap-extension-bold-BaDsyhkA.js → vendor-tiptap-extension-bold-CqPrSfgB.js} +1 -1
- package/dist/{vendor-tiptap-extension-code-DmMmyuE8.js → vendor-tiptap-extension-code-Dj9HfL9x.js} +1 -1
- package/dist/{vendor-tiptap-extension-code-block-Cryhc4vR.js → vendor-tiptap-extension-code-block-YnlbQcbJ.js} +2 -2
- package/dist/{vendor-tiptap-extension-document-DTFkPYG-.js → vendor-tiptap-extension-document-DyG2LNKD.js} +1 -1
- package/dist/{vendor-tiptap-extension-hard-break-DLmFSWL4.js → vendor-tiptap-extension-hard-break-mzhqFFEq.js} +1 -1
- package/dist/{vendor-tiptap-extension-heading-DlpNyZOc.js → vendor-tiptap-extension-heading-DGnriW33.js} +1 -1
- package/dist/{vendor-tiptap-extension-horizontal-rule-CI2nC7l5.js → vendor-tiptap-extension-horizontal-rule-pR7MlJHI.js} +2 -2
- package/dist/{vendor-tiptap-extension-image-g6grWBFQ.js → vendor-tiptap-extension-image-BsXHNscz.js} +1 -1
- package/dist/{vendor-tiptap-extension-italic-DsMLQC-Z.js → vendor-tiptap-extension-italic-aoCbIXRj.js} +1 -1
- package/dist/{vendor-tiptap-extension-link-CF-euSmX.js → vendor-tiptap-extension-link-DiV7DqnY.js} +3 -3
- package/dist/{vendor-tiptap-extension-list-DA57LKdr.js → vendor-tiptap-extension-list-BGYRWOyu.js} +5 -5
- package/dist/{vendor-tiptap-extension-paragraph-CrvWamNP.js → vendor-tiptap-extension-paragraph-BEBEvW1W.js} +1 -1
- package/dist/vendor-tiptap-extension-placeholder-ZfoeEW0T.js +1 -0
- package/dist/{vendor-tiptap-extension-strike-caeBdU8d.js → vendor-tiptap-extension-strike-6vob8J1A.js} +1 -1
- package/dist/{vendor-tiptap-extension-table-DBQupXqd.js → vendor-tiptap-extension-table-CH-0UqG-.js} +8 -8
- package/dist/vendor-tiptap-extension-table-cell-_uzaJkJG.js +1 -0
- package/dist/vendor-tiptap-extension-table-header-_uzaJkJG.js +1 -0
- package/dist/vendor-tiptap-extension-table-row-_uzaJkJG.js +1 -0
- package/dist/{vendor-tiptap-extension-text-CYaZSxyC.js → vendor-tiptap-extension-text-CnqQVbB2.js} +1 -1
- package/dist/{vendor-tiptap-extension-text-style-C8Uqg46V.js → vendor-tiptap-extension-text-style-Bj4bCZI1.js} +1 -1
- package/dist/{vendor-tiptap-extension-underline-Ct9ZgKsw.js → vendor-tiptap-extension-underline-CVBZMhrs.js} +1 -1
- package/dist/{vendor-tiptap-extensions-Dg7-f1Pi.js → vendor-tiptap-extensions-2ZbpCG7T.js} +8 -8
- package/dist/{vendor-tiptap-markdown-DDkltz0i.js → vendor-tiptap-markdown-B7Wvo0s5.js} +4 -4
- package/dist/vendor-tiptap-pm-DSHuSumV.js +1 -0
- package/dist/{vendor-tiptap-starter-kit-C1nkrZcr.js → vendor-tiptap-starter-kit-ipneJHYV.js} +17 -17
- package/dist/{vendor-tiptap-vue-3-B3dwsJj3.js → vendor-tiptap-vue-3-IfJcIOl5.js} +1 -1
- package/dist/{vendor-truncate-html-C77Epb-R.js → vendor-truncate-html-r2r8GKvW.js} +1 -1
- package/package.json +5 -5
- package/shared/components/dashboard-charts/index.ts +3 -27
- package/shared/components/draggable-dashboard/DraggableDashboard.vue +69 -75
- package/ui/components/molecules/vc-editor/index.ts +2 -11
- package/ui/components/molecules/vc-slider/index.ts +3 -11
- package/ui/components/organisms/vc-table/VcDataTable.vue +39 -18
- package/dist/DashboardBarChart-BzfKkUke.js +0 -123
- package/dist/DashboardDonutChart-CWfe85Xq.js +0 -89
- package/dist/DashboardLineChart-kdA8VnrR.js +0 -125
- package/dist/GridstackDashboard-CGHYkReX.js +0 -131
- package/dist/GridstackDashboard.css +0 -1
- package/dist/chart-utils-BTs6UFaZ.js +0 -83
- package/dist/index-tgmgQAD9.js +0 -33730
- package/dist/vc-editor-BNrG1GAG.js +0 -848
- package/dist/vc-editor.css +0 -1
- package/dist/vc-slider-Ce0X1_1m.js +0 -83
- package/dist/vc-slider.css +0 -1
- package/dist/vendor-tiptap-extension-placeholder-DVCL5REL.js +0 -1
- package/dist/vendor-tiptap-extension-table-cell-A6UIxsTF.js +0 -1
- package/dist/vendor-tiptap-extension-table-header-A6UIxsTF.js +0 -1
- package/dist/vendor-tiptap-extension-table-row-A6UIxsTF.js +0 -1
- package/dist/vendor-tiptap-pm-BbD2LeB7.js +0 -1
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { defineComponent as K, computed as f, openBlock as n, createBlock as i, withCtx as s, createVNode as g, unref as u, createCommentVNode as b } from "vue";
|
|
2
|
-
import { D as L, c as w, E as k, z as C } from "./vendor-unovis-vue-C_K1g5KH.js";
|
|
3
|
-
import { b as S, c as T } from "./index-tgmgQAD9.js";
|
|
4
|
-
import { r as B, b as p, a as x } from "./chart-utils-BTs6UFaZ.js";
|
|
5
|
-
const A = /* @__PURE__ */ K({
|
|
6
|
-
__name: "DashboardDonutChart",
|
|
7
|
-
props: {
|
|
8
|
-
data: {},
|
|
9
|
-
config: {},
|
|
10
|
-
valueKey: {},
|
|
11
|
-
colorKey: { default: void 0 },
|
|
12
|
-
height: { default: void 0 },
|
|
13
|
-
arcWidth: { default: 60 },
|
|
14
|
-
cornerRadius: { default: 4 },
|
|
15
|
-
showTooltip: { type: Boolean, default: !0 },
|
|
16
|
-
showLegend: { type: Boolean, default: !0 },
|
|
17
|
-
centralLabel: { default: void 0 },
|
|
18
|
-
centralSubLabel: { default: void 0 },
|
|
19
|
-
valueFormat: { type: Function, default: void 0 }
|
|
20
|
-
},
|
|
21
|
-
setup(a) {
|
|
22
|
-
const o = a, h = (e) => e[o.valueKey], c = f(() => Object.keys(o.config)), d = (e, t) => o.colorKey && e[o.colorKey] ? e[o.colorKey] : c.value[t] ? o.config[c.value[t]].color : void 0, v = (e, t) => {
|
|
23
|
-
const l = e.label;
|
|
24
|
-
if (typeof l == "string" && l.trim())
|
|
25
|
-
return l;
|
|
26
|
-
const r = c.value[t];
|
|
27
|
-
return r ? o.config[r]?.label ?? r : `Segment ${t + 1}`;
|
|
28
|
-
}, m = f(() => ({
|
|
29
|
-
[L.segment]: (e) => {
|
|
30
|
-
if (!e?.data)
|
|
31
|
-
return;
|
|
32
|
-
const t = e.index ?? 0, l = v(e.data, t), r = c.value[t], { color: y } = B({
|
|
33
|
-
config: o.config,
|
|
34
|
-
key: r,
|
|
35
|
-
index: t,
|
|
36
|
-
fallbackLabel: l
|
|
37
|
-
});
|
|
38
|
-
return p({
|
|
39
|
-
items: [
|
|
40
|
-
{
|
|
41
|
-
label: l,
|
|
42
|
-
color: d(e.data, t) ?? y,
|
|
43
|
-
value: x(
|
|
44
|
-
e.value ?? e.data[o.valueKey],
|
|
45
|
-
o.valueFormat
|
|
46
|
-
)
|
|
47
|
-
}
|
|
48
|
-
]
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
}));
|
|
52
|
-
return (e, t) => (n(), i(S, { config: a.config }, {
|
|
53
|
-
default: s(() => [
|
|
54
|
-
g(u(w), {
|
|
55
|
-
data: a.data,
|
|
56
|
-
height: a.height
|
|
57
|
-
}, {
|
|
58
|
-
default: s(() => [
|
|
59
|
-
g(u(k), {
|
|
60
|
-
value: h,
|
|
61
|
-
color: d,
|
|
62
|
-
"arc-width": a.arcWidth,
|
|
63
|
-
"corner-radius": a.cornerRadius,
|
|
64
|
-
"pad-angle": 0.02,
|
|
65
|
-
"central-label": a.centralLabel,
|
|
66
|
-
"central-sub-label": a.centralSubLabel
|
|
67
|
-
}, null, 8, ["arc-width", "corner-radius", "central-label", "central-sub-label"]),
|
|
68
|
-
a.showTooltip ? (n(), i(u(C), {
|
|
69
|
-
key: 0,
|
|
70
|
-
"allow-hover": !0,
|
|
71
|
-
"class-name": "dashboard-chart-tooltip-host",
|
|
72
|
-
"vertical-shift": 8,
|
|
73
|
-
triggers: m.value
|
|
74
|
-
}, null, 8, ["triggers"])) : b("", !0)
|
|
75
|
-
]),
|
|
76
|
-
_: 1
|
|
77
|
-
}, 8, ["data", "height"]),
|
|
78
|
-
a.showLegend ? (n(), i(T, {
|
|
79
|
-
key: 0,
|
|
80
|
-
config: a.config
|
|
81
|
-
}, null, 8, ["config"])) : b("", !0)
|
|
82
|
-
]),
|
|
83
|
-
_: 1
|
|
84
|
-
}, 8, ["config"]));
|
|
85
|
-
}
|
|
86
|
-
});
|
|
87
|
-
export {
|
|
88
|
-
A as default
|
|
89
|
-
};
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import { defineComponent as b, computed as f, openBlock as i, createBlock as n, withCtx as g, createVNode as p, unref as r, createCommentVNode as u, createElementBlock as B, Fragment as F, renderList as A } from "vue";
|
|
2
|
-
import { S as K, z as S, A as C, C as L, a as h } from "./vendor-unovis-vue-C_K1g5KH.js";
|
|
3
|
-
import { b as V, c as X } from "./index-tgmgQAD9.js";
|
|
4
|
-
import { f as Y, r as k, b as D, a as E, c as $ } from "./chart-utils-BTs6UFaZ.js";
|
|
5
|
-
const H = /* @__PURE__ */ b({
|
|
6
|
-
__name: "DashboardLineChart",
|
|
7
|
-
props: {
|
|
8
|
-
data: {},
|
|
9
|
-
config: {},
|
|
10
|
-
xKey: {},
|
|
11
|
-
yKeys: {},
|
|
12
|
-
height: { default: void 0 },
|
|
13
|
-
showTooltip: { type: Boolean, default: !0 },
|
|
14
|
-
showXAxis: { type: Boolean, default: !0 },
|
|
15
|
-
showYAxis: { type: Boolean, default: !0 },
|
|
16
|
-
showGrid: { type: Boolean, default: !0 },
|
|
17
|
-
showLegend: { type: Boolean, default: !0 },
|
|
18
|
-
numXTicks: { default: void 0 },
|
|
19
|
-
numYTicks: { default: 5 },
|
|
20
|
-
rangeStart: { default: void 0 },
|
|
21
|
-
rangeEnd: { default: void 0 },
|
|
22
|
-
xTickFormat: { type: Function, default: void 0 },
|
|
23
|
-
yTickFormat: { type: Function, default: void 0 }
|
|
24
|
-
},
|
|
25
|
-
setup(e) {
|
|
26
|
-
const o = e, v = { top: 8, right: 8, bottom: 4, left: 4 }, m = (t) => t[o.xKey], x = f(
|
|
27
|
-
() => Y(
|
|
28
|
-
o.data,
|
|
29
|
-
(t) => t[o.xKey],
|
|
30
|
-
o.rangeStart,
|
|
31
|
-
o.rangeEnd
|
|
32
|
-
)
|
|
33
|
-
), d = f(
|
|
34
|
-
() => o.yKeys.map((t) => (a) => a[t])
|
|
35
|
-
), y = f(
|
|
36
|
-
() => o.yKeys.map(
|
|
37
|
-
(t, a) => k({
|
|
38
|
-
config: o.config,
|
|
39
|
-
key: String(t),
|
|
40
|
-
index: a,
|
|
41
|
-
fallbackLabel: String(t)
|
|
42
|
-
}).color
|
|
43
|
-
)
|
|
44
|
-
), T = (t) => D({
|
|
45
|
-
title: $(t[o.xKey], o.xTickFormat),
|
|
46
|
-
items: o.yKeys.map((a, c) => {
|
|
47
|
-
const { label: l, color: s } = k({
|
|
48
|
-
config: o.config,
|
|
49
|
-
key: String(a),
|
|
50
|
-
index: c,
|
|
51
|
-
fallbackLabel: String(a)
|
|
52
|
-
});
|
|
53
|
-
return {
|
|
54
|
-
label: l,
|
|
55
|
-
color: s,
|
|
56
|
-
value: E(t[a], o.yTickFormat)
|
|
57
|
-
};
|
|
58
|
-
})
|
|
59
|
-
}), w = (t, a, c, l) => {
|
|
60
|
-
const s = t ?? (typeof l == "number" ? c[l] : void 0);
|
|
61
|
-
if (s)
|
|
62
|
-
return T(s);
|
|
63
|
-
};
|
|
64
|
-
return (t, a) => (i(), n(V, { config: e.config }, {
|
|
65
|
-
default: g(() => [
|
|
66
|
-
p(r(K), {
|
|
67
|
-
data: x.value,
|
|
68
|
-
height: e.height,
|
|
69
|
-
margin: v
|
|
70
|
-
}, {
|
|
71
|
-
default: g(() => [
|
|
72
|
-
e.showTooltip ? (i(), n(r(S), {
|
|
73
|
-
key: 0,
|
|
74
|
-
"allow-hover": !0,
|
|
75
|
-
"class-name": "dashboard-chart-tooltip-host",
|
|
76
|
-
"vertical-shift": 8
|
|
77
|
-
})) : u("", !0),
|
|
78
|
-
e.showTooltip ? (i(), n(r(C), {
|
|
79
|
-
key: 1,
|
|
80
|
-
x: m,
|
|
81
|
-
y: d.value,
|
|
82
|
-
color: y.value,
|
|
83
|
-
template: w
|
|
84
|
-
}, null, 8, ["y", "color"])) : u("", !0),
|
|
85
|
-
(i(!0), B(F, null, A(d.value, (c, l) => (i(), n(r(L), {
|
|
86
|
-
key: l,
|
|
87
|
-
x: m,
|
|
88
|
-
y: c,
|
|
89
|
-
color: y.value[l],
|
|
90
|
-
"curve-type": "monotoneX",
|
|
91
|
-
"line-width": 2
|
|
92
|
-
}, null, 8, ["y", "color"]))), 128)),
|
|
93
|
-
e.showXAxis ? (i(), n(r(h), {
|
|
94
|
-
key: 2,
|
|
95
|
-
type: "x",
|
|
96
|
-
"tick-line": !1,
|
|
97
|
-
"domain-line": !1,
|
|
98
|
-
"grid-line": !1,
|
|
99
|
-
"num-ticks": e.numXTicks,
|
|
100
|
-
"tick-format": e.xTickFormat
|
|
101
|
-
}, null, 8, ["num-ticks", "tick-format"])) : u("", !0),
|
|
102
|
-
e.showYAxis ? (i(), n(r(h), {
|
|
103
|
-
key: 3,
|
|
104
|
-
type: "y",
|
|
105
|
-
"tick-line": !1,
|
|
106
|
-
"domain-line": !1,
|
|
107
|
-
"grid-line": e.showGrid,
|
|
108
|
-
"num-ticks": e.numYTicks,
|
|
109
|
-
"tick-format": e.yTickFormat
|
|
110
|
-
}, null, 8, ["grid-line", "num-ticks", "tick-format"])) : u("", !0)
|
|
111
|
-
]),
|
|
112
|
-
_: 1
|
|
113
|
-
}, 8, ["data", "height"]),
|
|
114
|
-
e.showLegend ? (i(), n(X, {
|
|
115
|
-
key: 0,
|
|
116
|
-
config: e.config
|
|
117
|
-
}, null, 8, ["config"])) : u("", !0)
|
|
118
|
-
]),
|
|
119
|
-
_: 1
|
|
120
|
-
}, 8, ["config"]));
|
|
121
|
-
}
|
|
122
|
-
});
|
|
123
|
-
export {
|
|
124
|
-
H as default
|
|
125
|
-
};
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
import { defineComponent as B, ref as m, computed as L, onMounted as w, nextTick as z, openBlock as r, createBlock as v, withCtx as C, createElementVNode as a, createElementBlock as l, Fragment as W, renderList as P, createCommentVNode as I, resolveDynamicComponent as T, mergeProps as $, toDisplayString as G } from "vue";
|
|
2
|
-
import { u as H, a as R, _ as S } from "./index-tgmgQAD9.js";
|
|
3
|
-
const A = ["aria-label"], E = ["gs-id", "gs-x", "gs-y", "gs-w", "gs-h", "aria-label"], N = { class: "grid-stack-item-content" }, V = {
|
|
4
|
-
key: 0,
|
|
5
|
-
class: "vc-gridstack-dashboard__drag-handle",
|
|
6
|
-
"aria-hidden": "true"
|
|
7
|
-
}, F = {
|
|
8
|
-
class: "vc-gridstack-dashboard__live-region",
|
|
9
|
-
role: "status",
|
|
10
|
-
"aria-live": "polite",
|
|
11
|
-
"aria-atomic": "true"
|
|
12
|
-
}, K = /* @__PURE__ */ B({
|
|
13
|
-
__name: "GridstackDashboard",
|
|
14
|
-
props: {
|
|
15
|
-
showDragHandles: { type: Boolean, default: !1 },
|
|
16
|
-
resizable: { type: Boolean, default: !1 },
|
|
17
|
-
ariaLabel: { default: "Dashboard widgets. Drag widgets to rearrange." }
|
|
18
|
-
},
|
|
19
|
-
setup(i, { expose: _ }) {
|
|
20
|
-
const d = i, o = m(null), n = m(""), u = H(), c = L(() => u.getWidgets()), {
|
|
21
|
-
layout: f,
|
|
22
|
-
isInitialized: p,
|
|
23
|
-
initGrid: y,
|
|
24
|
-
saveLayout: b,
|
|
25
|
-
resetToDefaults: g
|
|
26
|
-
} = R(c, {
|
|
27
|
-
resizable: d.resizable,
|
|
28
|
-
autoSave: !0,
|
|
29
|
-
gridOptions: {
|
|
30
|
-
draggable: {
|
|
31
|
-
handle: d.showDragHandles ? ".vc-gridstack-dashboard__drag-handle" : ".grid-stack-item-content"
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
onLayoutChange: (t) => {
|
|
35
|
-
for (const [s, e] of t)
|
|
36
|
-
u.updateWidgetPosition(s, e);
|
|
37
|
-
x("Widget positions updated");
|
|
38
|
-
}
|
|
39
|
-
}), h = (t) => f.value.get(t), k = (t, s) => `${t.name || t.id}, widget ${s + 1} of ${c.value.length}. Drag to reorder.`, x = (t) => {
|
|
40
|
-
n.value = t, setTimeout(() => {
|
|
41
|
-
n.value = "";
|
|
42
|
-
}, 1e3);
|
|
43
|
-
};
|
|
44
|
-
return w(async () => {
|
|
45
|
-
await z(), o.value && !p.value && y(o.value);
|
|
46
|
-
}), _({
|
|
47
|
-
rearrangeWidgets: () => {
|
|
48
|
-
g();
|
|
49
|
-
},
|
|
50
|
-
recalculateLayout: () => {
|
|
51
|
-
},
|
|
52
|
-
saveLayout: b,
|
|
53
|
-
useBuiltInPositions: () => (g(), !0)
|
|
54
|
-
}), (t, s) => (r(), v(S, {
|
|
55
|
-
"no-padding": "",
|
|
56
|
-
class: "vc-gridstack-dashboard"
|
|
57
|
-
}, {
|
|
58
|
-
default: C(() => [
|
|
59
|
-
a("div", {
|
|
60
|
-
ref_key: "gridRef",
|
|
61
|
-
ref: o,
|
|
62
|
-
class: "grid-stack vc-gridstack-dashboard__grid",
|
|
63
|
-
role: "list",
|
|
64
|
-
"aria-label": i.ariaLabel
|
|
65
|
-
}, [
|
|
66
|
-
(r(!0), l(W, null, P(c.value, (e, D) => (r(), l("div", {
|
|
67
|
-
key: e.id,
|
|
68
|
-
class: "grid-stack-item",
|
|
69
|
-
"gs-id": e.id,
|
|
70
|
-
"gs-x": h(e.id)?.x ?? e.position?.x ?? 0,
|
|
71
|
-
"gs-y": h(e.id)?.y ?? e.position?.y ?? 0,
|
|
72
|
-
"gs-w": e.size.width,
|
|
73
|
-
"gs-h": e.size.height,
|
|
74
|
-
"gs-min-w": 2,
|
|
75
|
-
"gs-min-h": 2,
|
|
76
|
-
role: "listitem",
|
|
77
|
-
"aria-label": k(e, D)
|
|
78
|
-
}, [
|
|
79
|
-
a("div", N, [
|
|
80
|
-
i.showDragHandles ? (r(), l("div", V, [...s[0] || (s[0] = [
|
|
81
|
-
a("svg", {
|
|
82
|
-
width: "16",
|
|
83
|
-
height: "16",
|
|
84
|
-
viewBox: "0 0 16 16",
|
|
85
|
-
fill: "currentColor"
|
|
86
|
-
}, [
|
|
87
|
-
a("circle", {
|
|
88
|
-
cx: "5",
|
|
89
|
-
cy: "3",
|
|
90
|
-
r: "1.5"
|
|
91
|
-
}),
|
|
92
|
-
a("circle", {
|
|
93
|
-
cx: "11",
|
|
94
|
-
cy: "3",
|
|
95
|
-
r: "1.5"
|
|
96
|
-
}),
|
|
97
|
-
a("circle", {
|
|
98
|
-
cx: "5",
|
|
99
|
-
cy: "8",
|
|
100
|
-
r: "1.5"
|
|
101
|
-
}),
|
|
102
|
-
a("circle", {
|
|
103
|
-
cx: "11",
|
|
104
|
-
cy: "8",
|
|
105
|
-
r: "1.5"
|
|
106
|
-
}),
|
|
107
|
-
a("circle", {
|
|
108
|
-
cx: "5",
|
|
109
|
-
cy: "13",
|
|
110
|
-
r: "1.5"
|
|
111
|
-
}),
|
|
112
|
-
a("circle", {
|
|
113
|
-
cx: "11",
|
|
114
|
-
cy: "13",
|
|
115
|
-
r: "1.5"
|
|
116
|
-
})
|
|
117
|
-
], -1)
|
|
118
|
-
])])) : I("", !0),
|
|
119
|
-
(r(), v(T(e.component), $({ ref_for: !0 }, e.props || {}, { class: "vc-gridstack-dashboard__widget-content" }), null, 16))
|
|
120
|
-
])
|
|
121
|
-
], 8, E))), 128))
|
|
122
|
-
], 8, A),
|
|
123
|
-
a("div", F, G(n.value), 1)
|
|
124
|
-
]),
|
|
125
|
-
_: 1
|
|
126
|
-
}));
|
|
127
|
-
}
|
|
128
|
-
});
|
|
129
|
-
export {
|
|
130
|
-
K as default
|
|
131
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.grid-stack-item>.ui-resizable-ne,.grid-stack-item>.ui-resizable-nw,.grid-stack-item>.ui-resizable-se,.grid-stack-item>.ui-resizable-sw{background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" stroke="%23666" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewBox="0 0 20 20"><path d="m10 3 2 2H8l2-2v14l-2-2h4l-2 2"/></svg>');background-repeat:no-repeat;background-position:center}.grid-stack{position:relative}.grid-stack-rtl{direction:ltr}.grid-stack-rtl>.grid-stack-item{direction:rtl}.grid-stack-placeholder>.placeholder-content{background-color:#0000001a;margin:0;position:absolute;width:auto;z-index:0!important}.grid-stack>.grid-stack-item{position:absolute;padding:0;top:0;left:0;width:var(--gs-column-width);height:var(--gs-cell-height)}.grid-stack>.grid-stack-item>.grid-stack-item-content{margin:0;position:absolute;width:auto;overflow-x:hidden;overflow-y:auto}.grid-stack>.grid-stack-item.size-to-content:not(.size-to-content-max)>.grid-stack-item-content{overflow-y:hidden}.grid-stack>.grid-stack-item>.grid-stack-item-content,.grid-stack>.grid-stack-placeholder>.placeholder-content{top:var(--gs-item-margin-top);right:var(--gs-item-margin-right);bottom:var(--gs-item-margin-bottom);left:var(--gs-item-margin-left)}.grid-stack-item>.ui-resizable-handle{position:absolute;font-size:.1px;display:block;touch-action:none}.grid-stack-item.ui-resizable-autohide>.ui-resizable-handle,.grid-stack-item.ui-resizable-disabled>.ui-resizable-handle{display:none}.grid-stack-item>.ui-resizable-ne,.grid-stack-item>.ui-resizable-nw,.grid-stack-item>.ui-resizable-se,.grid-stack-item>.ui-resizable-sw{background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" stroke="%23666" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewBox="0 0 20 20"><path d="m10 3 2 2H8l2-2v14l-2-2h4l-2 2"/></svg>');background-repeat:no-repeat;background-position:center}.grid-stack-item>.ui-resizable-ne{transform:rotate(45deg)}.grid-stack-item>.ui-resizable-sw{transform:rotate(45deg)}.grid-stack-item>.ui-resizable-nw{transform:rotate(-45deg)}.grid-stack-item>.ui-resizable-se{transform:rotate(-45deg)}.grid-stack-item>.ui-resizable-nw{cursor:nw-resize;width:20px;height:20px;top:var(--gs-item-margin-top);left:var(--gs-item-margin-left)}.grid-stack-item>.ui-resizable-n{cursor:n-resize;height:10px;top:var(--gs-item-margin-top);left:25px;right:25px}.grid-stack-item>.ui-resizable-ne{cursor:ne-resize;width:20px;height:20px;top:var(--gs-item-margin-top);right:var(--gs-item-margin-right)}.grid-stack-item>.ui-resizable-e{cursor:e-resize;width:10px;top:15px;bottom:15px;right:var(--gs-item-margin-right)}.grid-stack-item>.ui-resizable-se{cursor:se-resize;width:20px;height:20px;bottom:var(--gs-item-margin-bottom);right:var(--gs-item-margin-right)}.grid-stack-item>.ui-resizable-s{cursor:s-resize;height:10px;left:25px;bottom:var(--gs-item-margin-bottom);right:25px}.grid-stack-item>.ui-resizable-sw{cursor:sw-resize;width:20px;height:20px;bottom:var(--gs-item-margin-bottom);left:var(--gs-item-margin-left)}.grid-stack-item>.ui-resizable-w{cursor:w-resize;width:10px;top:15px;bottom:15px;left:var(--gs-item-margin-left)}.grid-stack-item.ui-draggable-dragging>.ui-resizable-handle{display:none!important}.grid-stack-item.ui-draggable-dragging{will-change:left,top}.grid-stack-item.ui-resizable-resizing{will-change:width,height}.ui-draggable-dragging,.ui-resizable-resizing{z-index:10000}.ui-draggable-dragging>.grid-stack-item-content,.ui-resizable-resizing>.grid-stack-item-content{box-shadow:1px 4px 6px #0003;opacity:.8}.grid-stack-animate,.grid-stack-animate .grid-stack-item{transition:left .3s,top .3s,height .3s,width .3s}.grid-stack-animate .grid-stack-item.grid-stack-placeholder,.grid-stack-animate .grid-stack-item.ui-draggable-dragging,.grid-stack-animate .grid-stack-item.ui-resizable-resizing{transition:left 0s,top 0s,height 0s,width 0s}.grid-stack>.grid-stack-item[gs-y="0"]{top:0}.grid-stack>.grid-stack-item[gs-x="0"]{left:0}:root{--gridstack-dashboard-background: var(--additional-50);--gridstack-widget-background: var(--additional-50);--gridstack-widget-border-radius: 8px;--gridstack-widget-shadow: 0 2px 8px rgba(0, 0, 0, .08);--gridstack-widget-shadow-dragging: 0 8px 24px rgba(0, 0, 0, .15);--gridstack-placeholder-background: rgba(59, 130, 246, .1);--gridstack-placeholder-border: rgba(59, 130, 246, .5);--gridstack-drag-handle-color: var(--neutrals-400);--gridstack-drag-handle-color-hover: var(--neutrals-600)}.vc-gridstack-dashboard{background-color:var(--gridstack-dashboard-background);min-height:100%}.vc-gridstack-dashboard__grid{padding:24px 18px;min-height:688px}.vc-gridstack-dashboard .grid-stack-item-content{background:var(--gridstack-widget-background);border-radius:var(--gridstack-widget-border-radius);box-shadow:var(--gridstack-widget-shadow);overflow:hidden;transition:box-shadow .2s ease}.vc-gridstack-dashboard .grid-stack-item.ui-draggable-dragging .grid-stack-item-content,.vc-gridstack-dashboard .grid-stack-item.ui-resizable-resizing .grid-stack-item-content{box-shadow:var(--gridstack-widget-shadow-dragging)}.vc-gridstack-dashboard .grid-stack-placeholder>.placeholder-content{background:var(--gridstack-placeholder-background);border:2px dashed var(--gridstack-placeholder-border);border-radius:var(--gridstack-widget-border-radius)}.vc-gridstack-dashboard__drag-handle{position:absolute;top:8px;right:8px;z-index:10;width:24px;height:24px;display:flex;align-items:center;justify-content:center;color:var(--gridstack-drag-handle-color);cursor:grab;border-radius:4px;transition:color .15s ease,background-color .15s ease}.vc-gridstack-dashboard__drag-handle:hover{color:var(--gridstack-drag-handle-color-hover);background-color:#0000000d}.vc-gridstack-dashboard__drag-handle:active{cursor:grabbing}.vc-gridstack-dashboard__widget-content{width:100%;height:100%}.vc-gridstack-dashboard__live-region{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(prefers-reduced-motion:reduce){.vc-gridstack-dashboard .grid-stack-item,.vc-gridstack-dashboard .grid-stack-item-content,.grid-stack.grid-stack-animate .grid-stack-item{transition:none!important}}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
const m = "var(--primary-500)";
|
|
2
|
-
const p = {
|
|
3
|
-
"&": "&",
|
|
4
|
-
"<": "<",
|
|
5
|
-
">": ">",
|
|
6
|
-
'"': """,
|
|
7
|
-
"'": "'"
|
|
8
|
-
}, c = (t) => t == null ? "" : String(t).replace(/[&<>"']/g, (r) => p[r] ?? r), d = (t) => {
|
|
9
|
-
if (t instanceof Date) {
|
|
10
|
-
const r = t.getTime();
|
|
11
|
-
return Number.isFinite(r) ? r : void 0;
|
|
12
|
-
}
|
|
13
|
-
if (typeof t == "number")
|
|
14
|
-
return Number.isFinite(t) ? t : void 0;
|
|
15
|
-
if (typeof t == "string") {
|
|
16
|
-
const r = Number(t);
|
|
17
|
-
if (Number.isFinite(r))
|
|
18
|
-
return r;
|
|
19
|
-
const i = Date.parse(t);
|
|
20
|
-
if (Number.isFinite(i))
|
|
21
|
-
return i;
|
|
22
|
-
}
|
|
23
|
-
}, b = (t, r, i, e) => {
|
|
24
|
-
const o = d(i), n = d(e);
|
|
25
|
-
if (o === void 0 && n === void 0)
|
|
26
|
-
return t;
|
|
27
|
-
const a = o !== void 0 && n !== void 0 ? Math.min(o, n) : o, s = o !== void 0 && n !== void 0 ? Math.max(o, n) : n;
|
|
28
|
-
return t.filter((u) => {
|
|
29
|
-
const l = d(r(u));
|
|
30
|
-
return l === void 0 ? !0 : !(a !== void 0 && l < a || s !== void 0 && l > s);
|
|
31
|
-
});
|
|
32
|
-
}, f = (t, r) => {
|
|
33
|
-
if (r) {
|
|
34
|
-
if (typeof t == "number" || t instanceof Date)
|
|
35
|
-
return r(t);
|
|
36
|
-
const i = d(t);
|
|
37
|
-
if (i !== void 0)
|
|
38
|
-
return r(i);
|
|
39
|
-
}
|
|
40
|
-
return t == null ? "-" : String(t);
|
|
41
|
-
}, h = (t, r) => {
|
|
42
|
-
const i = typeof t == "number" ? t : Number(t);
|
|
43
|
-
return Number.isFinite(i) ? r ? r(i) : i.toLocaleString() : "-";
|
|
44
|
-
}, _ = ({
|
|
45
|
-
config: t,
|
|
46
|
-
key: r,
|
|
47
|
-
index: i,
|
|
48
|
-
fallbackLabel: e
|
|
49
|
-
}) => {
|
|
50
|
-
const o = Object.keys(t), n = r ? t[r] : void 0, a = typeof i == "number" && Number.isFinite(i) && o[i] ? t[o[i]] : void 0, s = n ?? a;
|
|
51
|
-
return {
|
|
52
|
-
label: s?.label ?? e ?? r ?? "Series",
|
|
53
|
-
color: s?.color ?? m
|
|
54
|
-
};
|
|
55
|
-
}, v = ({
|
|
56
|
-
title: t,
|
|
57
|
-
items: r
|
|
58
|
-
}) => {
|
|
59
|
-
if (!r.length)
|
|
60
|
-
return;
|
|
61
|
-
const i = t ? `<div class="dashboard-chart-tooltip__title">${c(t)}</div>` : "", e = r.map(
|
|
62
|
-
(o) => `
|
|
63
|
-
<div class="dashboard-chart-tooltip__item">
|
|
64
|
-
<span class="dashboard-chart-tooltip__indicator" style="background: ${c(o.color)}"></span>
|
|
65
|
-
<span class="dashboard-chart-tooltip__label">${c(o.label)}</span>
|
|
66
|
-
<span class="dashboard-chart-tooltip__value">${c(o.value)}</span>
|
|
67
|
-
</div>
|
|
68
|
-
`
|
|
69
|
-
).join("");
|
|
70
|
-
return `
|
|
71
|
-
<div class="dashboard-chart-tooltip">
|
|
72
|
-
${i}
|
|
73
|
-
<div class="dashboard-chart-tooltip__items">${e}</div>
|
|
74
|
-
</div>
|
|
75
|
-
`;
|
|
76
|
-
};
|
|
77
|
-
export {
|
|
78
|
-
h as a,
|
|
79
|
-
v as b,
|
|
80
|
-
f as c,
|
|
81
|
-
b as f,
|
|
82
|
-
_ as r
|
|
83
|
-
};
|