vue-data-ui 2.12.8-beta.1 → 2.12.8-beta.3
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/README.md +15 -0
- package/dist/{Arrow-BZERXYRS.js → Arrow-kQyQXUUg.js} +1 -1
- package/dist/{BaseDraggableDialog-CsxEDFbY.js → BaseDraggableDialog-DLRFrsDT.js} +2 -2
- package/dist/{BaseIcon-C8g0bTnH.js → BaseIcon-DaR0sIWZ.js} +1 -1
- package/dist/{ColorPicker-RCAns9t0.js → ColorPicker-Bj3sq9o7.js} +2 -2
- package/dist/{DataTable-DN8VsGNp.js → DataTable-BBqbcutV.js} +2 -2
- package/dist/{Legend-B3x9Et6h.js → Legend-DRqzYrP9.js} +2 -2
- package/dist/{NonSvgPenAndPaper-D9ieEyKs.js → NonSvgPenAndPaper-CQIC2PMP.js} +3 -3
- package/dist/{PackageVersion-CFpmup6M.js → PackageVersion-ClpqQxYT.js} +1 -1
- package/dist/{PenAndPaper-BrIjEzie.js → PenAndPaper-B-T7XvxF.js} +3 -3
- package/dist/{Shape-CtkpE63a.js → Shape-DEWxbZ-l.js} +1 -1
- package/dist/{Slicer-COOEkKtu.js → Slicer-o6jJH5bw.js} +2 -2
- package/dist/{SparkTooltip-4iy6SPsL.js → SparkTooltip-LPnbBoFu.js} +1 -1
- package/dist/{Title-BEQiIKjn.js → Title-apr_T9tg.js} +1 -1
- package/dist/{Tooltip-R_tsQZO3.js → Tooltip-BuHsMAfp.js} +1 -1
- package/dist/{UserOptions-CIOyDPmN.js → UserOptions-OVNxxnq5.js} +144 -133
- package/dist/{dom-to-png-CUCFZVax.js → dom-to-png-C0Ct8ClX.js} +1 -1
- package/dist/{img-DG5CAMFC.js → img-P0SFFw37.js} +1 -1
- package/dist/{index-_gtZv10q.js → index-CH_mJIWj.js} +254 -190
- package/dist/{pdf-CTRFaSN8.js → pdf-Jun3ogRn.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/types/vue-data-ui.d.cts +42 -0
- package/dist/types/vue-data-ui.d.ts +42 -0
- package/dist/{useNestedProp-Bz6Z0t8M.js → useNestedProp-rMR-JeOJ.js} +1 -1
- package/dist/{usePrinter-LFM5suk6.js → usePrinter-DJ7WfWUs.js} +2 -2
- package/dist/{vue-data-ui-DdACgPWc.js → vue-data-ui-D7AaTKU6.js} +63 -63
- package/dist/vue-data-ui.js +1 -1
- package/dist/{vue-ui-3d-bar-BJNtd28w.js → vue-ui-3d-bar-BfLLrwWi.js} +8 -7
- package/dist/{vue-ui-accordion-DFfQ5rpF.js → vue-ui-accordion-Ds4zkPIx.js} +3 -3
- package/dist/{vue-ui-age-pyramid-DHs_TL8y.js → vue-ui-age-pyramid-C7ca5TG5.js} +41 -40
- package/dist/{vue-ui-annotator-CuPdtRUq.js → vue-ui-annotator-DG2z1gw8.js} +2 -2
- package/dist/{vue-ui-bullet-3TXSEM2Y.js → vue-ui-bullet-Dh25QAEH.js} +9 -8
- package/dist/{vue-ui-candlestick-IcQJ9_WS.js → vue-ui-candlestick-7Yo_kEV0.js} +9 -8
- package/dist/{vue-ui-carousel-table-DX7aRcCS.js → vue-ui-carousel-table-Det9Kwmy.js} +28 -27
- package/dist/{vue-ui-chestnut-m-FVZD8y.js → vue-ui-chestnut-DLlFv6Uj.js} +8 -7
- package/dist/{vue-ui-chord-DrvRDAyr.js → vue-ui-chord-BXlv5Z2x.js} +35 -34
- package/dist/{vue-ui-circle-pack-CkNvMtLt.js → vue-ui-circle-pack-DdRcdWmx.js} +43 -42
- package/dist/{vue-ui-cursor-DxvPYJ2Y.js → vue-ui-cursor-Djtg6Ppw.js} +2 -2
- package/dist/{vue-ui-dashboard-CygrXSEE.js → vue-ui-dashboard-C4MDDCl6.js} +62 -62
- package/dist/{vue-ui-digits-C-WSlGoq.js → vue-ui-digits-8Ox6q1Ov.js} +2 -2
- package/dist/{vue-ui-donut-CHoBqz39.js → vue-ui-donut-Hk4EaVhb.js} +10 -9
- package/dist/{vue-ui-donut-evolution-D-ls2LUq.js → vue-ui-donut-evolution-DzgYokPU.js} +10 -9
- package/dist/{vue-ui-dumbbell-BnwCfYOJ.js → vue-ui-dumbbell-CAC44_Hu.js} +52 -51
- package/dist/{vue-ui-flow-09xAMehp.js → vue-ui-flow-CYWiZjrP.js} +9 -8
- package/dist/{vue-ui-funnel-DOrXAsbx.js → vue-ui-funnel-C2eqxh_8.js} +20 -19
- package/dist/{vue-ui-galaxy-BMXyhvCe.js → vue-ui-galaxy-BBfg84E4.js} +7 -6
- package/dist/{vue-ui-gauge-DkJVRsqL.js → vue-ui-gauge-BJgJgef_.js} +33 -32
- package/dist/{vue-ui-gizmo-EISlXvOs.js → vue-ui-gizmo-DBclpybR.js} +3 -3
- package/dist/{vue-ui-heatmap-B3dgboHu.js → vue-ui-heatmap-D65wOgqe.js} +10 -9
- package/dist/{vue-ui-history-plot-GZwvTkfa.js → vue-ui-history-plot-CHhDy7Da.js} +9 -8
- package/dist/{vue-ui-kpi-Dyuf4jAg.js → vue-ui-kpi-uT6fsAaO.js} +3 -3
- package/dist/{vue-ui-mini-loader-B2gkvvEB.js → vue-ui-mini-loader-CKVlBiYB.js} +2 -2
- package/dist/{vue-ui-molecule-DFTLY4ad.js → vue-ui-molecule-BwtHZtGN.js} +22 -21
- package/dist/{vue-ui-mood-radar-CQlhpdhp.js → vue-ui-mood-radar-Vf4_-R-m.js} +9 -8
- package/dist/{vue-ui-nested-donuts-BVS8QHol.js → vue-ui-nested-donuts-BVkSns4S.js} +44 -43
- package/dist/{vue-ui-onion-BVdWS8RK.js → vue-ui-onion-UzMmwtvF.js} +9 -8
- package/dist/{vue-ui-parallel-coordinate-plot-crvd8Pln.js → vue-ui-parallel-coordinate-plot-Dk5T3ZAr.js} +10 -9
- package/dist/{vue-ui-quadrant-CREePTU2.js → vue-ui-quadrant-Ck7xALez.js} +10 -9
- package/dist/{vue-ui-quick-chart-DeaiKdlr.js → vue-ui-quick-chart-B62Pa0nG.js} +8 -7
- package/dist/{vue-ui-radar-BIL-3GUR.js → vue-ui-radar-DMfv2hSb.js} +6 -6
- package/dist/{vue-ui-rating-BpU03_iR.js → vue-ui-rating-CFYHJrxj.js} +2 -2
- package/dist/{vue-ui-relation-circle-BRUFM-tU.js → vue-ui-relation-circle-RWlfC5BI.js} +75 -74
- package/dist/{vue-ui-ridgeline-B4BGITxs.js → vue-ui-ridgeline-Bh93VzcO.js} +10 -9
- package/dist/{vue-ui-rings-DZTUSyr7.js → vue-ui-rings-CyX30Ccv.js} +23 -22
- package/dist/{vue-ui-scatter-DG1k85e_.js → vue-ui-scatter-BEDnWByj.js} +10 -9
- package/dist/{vue-ui-skeleton-g2ChSAKh.js → vue-ui-skeleton-C6PWt_m5.js} +3 -3
- package/dist/{vue-ui-smiley-BlPJI-D9.js → vue-ui-smiley-79itAe84.js} +2 -2
- package/dist/{vue-ui-spark-trend-DhZ3csGm.js → vue-ui-spark-trend-AaA4KuaH.js} +3 -3
- package/dist/{vue-ui-sparkbar-cJJWCLiJ.js → vue-ui-sparkbar-CYBZeaor.js} +3 -3
- package/dist/{vue-ui-sparkgauge-ByCUh-P0.js → vue-ui-sparkgauge-ElGarXVS.js} +3 -3
- package/dist/{vue-ui-sparkhistogram-B3q-6W-d.js → vue-ui-sparkhistogram-C_LV99i1.js} +4 -4
- package/dist/{vue-ui-sparkline-ZMAOSesx.js → vue-ui-sparkline-DwzCA8d6.js} +3 -3
- package/dist/{vue-ui-sparkstackbar-BDVSCmGl.js → vue-ui-sparkstackbar-CobB11uw.js} +3 -3
- package/dist/{vue-ui-stackbar-BY3AQz0l.js → vue-ui-stackbar-B4SxM5Ix.js} +11 -10
- package/dist/{vue-ui-strip-plot-DpmUR3PK.js → vue-ui-strip-plot-9VK_Y3SC.js} +9 -8
- package/dist/{vue-ui-table-DpFMZ4rJ.js → vue-ui-table-DFTE1OH5.js} +3 -3
- package/dist/{vue-ui-table-heatmap-4GOzV-IT.js → vue-ui-table-heatmap-DvyJx0j7.js} +48 -47
- package/dist/{vue-ui-table-sparkline-1TrSrWvU.js → vue-ui-table-sparkline-SGsBnQTK.js} +8 -7
- package/dist/{vue-ui-thermometer-CZIMCIDI.js → vue-ui-thermometer-DEMS6HXl.js} +22 -21
- package/dist/{vue-ui-timer-C8VQR1EN.js → vue-ui-timer-CQ71yJ_N.js} +5 -5
- package/dist/{vue-ui-tiremarks-DfCCzbZ-.js → vue-ui-tiremarks-CsN_QtUK.js} +38 -37
- package/dist/{vue-ui-treemap-Buou4k4m.js → vue-ui-treemap-B0CPNusH.js} +229 -228
- package/dist/{vue-ui-vertical-bar-D5NWJ0Ah.js → vue-ui-vertical-bar-Cxv-ahMT.js} +12 -11
- package/dist/{vue-ui-waffle-Cs77FlO0.js → vue-ui-waffle-TgNNo9UX.js} +66 -65
- package/dist/{vue-ui-wheel-Oik-vORz.js → vue-ui-wheel-Bq0ZLc-R.js} +8 -7
- package/dist/{vue-ui-word-cloud-a4kmpLK9.js → vue-ui-word-cloud-D28awCaT.js} +66 -65
- package/dist/{vue-ui-world-CNDCD1yU.js → vue-ui-world-BhUsfhY5.js} +8 -7
- package/dist/{vue-ui-xy-BTe1HiZx.js → vue-ui-xy-CEFkua9H.js} +930 -823
- package/dist/{vue-ui-xy-canvas-BS0jWsyQ.js → vue-ui-xy-canvas-oHhzL0ui.js} +53 -52
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { useCssVars as
|
|
2
|
-
import { u as de, c as A, a as pe, o as ce, e as ve, a5 as me, G as fe, O as he, q as ge, r as be } from "./index-
|
|
3
|
-
import { u as H } from "./useNestedProp-
|
|
4
|
-
import { u as ye } from "./usePrinter-
|
|
1
|
+
import { useCssVars as ae, computed as c, defineAsyncComponent as oe, ref as h, useSlots as se, onMounted as z, watch as ne, createElementBlock as l, openBlock as n, unref as u, normalizeClass as E, normalizeStyle as C, createBlock as le, createCommentVNode as v, createElementVNode as g, createSlots as re, withCtx as b, renderSlot as r, normalizeProps as G, guardReactiveProps as B, Fragment as k, renderList as w, mergeProps as f, createVNode as ue, nextTick as ie } from "vue";
|
|
2
|
+
import { u as de, c as A, a as pe, o as ce, e as ve, a5 as me, G as fe, O as he, q as ge, r as be } from "./index-CH_mJIWj.js";
|
|
3
|
+
import { u as H } from "./useNestedProp-rMR-JeOJ.js";
|
|
4
|
+
import { u as ye } from "./usePrinter-DJ7WfWUs.js";
|
|
5
5
|
import { u as Ce } from "./useUserOptionState-BIvW1Kz7.js";
|
|
6
|
-
import { _ as ke } from "./Shape-
|
|
6
|
+
import { _ as ke } from "./Shape-DEWxbZ-l.js";
|
|
7
7
|
import { _ as _e } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
8
|
const Ie = ["id"], $e = { role: "cell" }, we = { role: "row" }, Oe = ["data-cell"], xe = {
|
|
9
9
|
key: 0,
|
|
@@ -41,11 +41,11 @@ const Ie = ["id"], $e = { role: "cell" }, we = { role: "row" }, Oe = ["data-cell
|
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
43
|
setup(D, { expose: L }) {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
"
|
|
44
|
+
ae((e) => ({
|
|
45
|
+
a9ac4c2a: ee.value,
|
|
46
|
+
"9ba12974": j.value
|
|
47
47
|
}));
|
|
48
|
-
const X =
|
|
48
|
+
const X = oe(() => import("./UserOptions-OVNxxnq5.js")), { vue_ui_table_heatmap: W } = de(), m = D, _ = h(A()), i = h(!1), y = h(null), I = h(!1), O = h(0), q = se();
|
|
49
49
|
z(() => {
|
|
50
50
|
q["chart-background"] && console.warn("VueUiTableHeatmap does not support the #chart-background slot.");
|
|
51
51
|
});
|
|
@@ -81,42 +81,42 @@ const Ie = ["id"], $e = { role: "cell" }, we = { role: "row" }, Oe = ["data-cell
|
|
|
81
81
|
componentName: "VueUiTableHeatmap",
|
|
82
82
|
type: "dataset"
|
|
83
83
|
});
|
|
84
|
-
const e = new ResizeObserver((
|
|
85
|
-
|
|
86
|
-
i.value =
|
|
84
|
+
const e = new ResizeObserver((o) => {
|
|
85
|
+
o.forEach((a) => {
|
|
86
|
+
i.value = a.contentRect.width < Q.value;
|
|
87
87
|
});
|
|
88
88
|
});
|
|
89
89
|
y.value && e.observe(y.value);
|
|
90
90
|
}
|
|
91
91
|
const M = c(() => m.dataset.map((e) => {
|
|
92
|
-
const
|
|
92
|
+
const o = e.values.map((s) => isNaN(s) ? 0 : s), a = o.reduce((s, p) => s + p, 0);
|
|
93
93
|
return {
|
|
94
94
|
...e,
|
|
95
|
-
values:
|
|
95
|
+
values: o,
|
|
96
96
|
serieExtremes: {
|
|
97
|
-
max: Math.max(...
|
|
98
|
-
min: Math.min(...
|
|
97
|
+
max: Math.max(...o),
|
|
98
|
+
min: Math.min(...o)
|
|
99
99
|
},
|
|
100
|
-
sum:
|
|
101
|
-
average:
|
|
102
|
-
median: me(
|
|
100
|
+
sum: a,
|
|
101
|
+
average: a / o.length,
|
|
102
|
+
median: me(o),
|
|
103
103
|
displayValues: [e.name, ...e.values],
|
|
104
104
|
id: A()
|
|
105
105
|
};
|
|
106
106
|
})), S = c(() => {
|
|
107
|
-
const e = M.value.flatMap((
|
|
107
|
+
const e = M.value.flatMap((o) => o.values);
|
|
108
108
|
return {
|
|
109
109
|
min: Math.min(...e),
|
|
110
110
|
max: Math.max(...e)
|
|
111
111
|
};
|
|
112
112
|
});
|
|
113
|
-
function Z(e,
|
|
114
|
-
const
|
|
115
|
-
return he(t.value.style.heatmapColors.min, t.value.style.heatmapColors.max,
|
|
113
|
+
function Z(e, o) {
|
|
114
|
+
const a = t.value.style.heatmapColors.useIndividualScale;
|
|
115
|
+
return he(t.value.style.heatmapColors.min, t.value.style.heatmapColors.max, a ? o.min : S.value.min, a ? o.max : S.value.max, e);
|
|
116
116
|
}
|
|
117
117
|
const T = c(() => M.value.map((e) => ({
|
|
118
118
|
...e,
|
|
119
|
-
colors: e.displayValues.map((
|
|
119
|
+
colors: e.displayValues.map((o) => isNaN(o) ? t.value.style.backgroundColor : Z(o, e.serieExtremes))
|
|
120
120
|
}))), j = c(() => t.value.style.backgroundColor), ee = c(() => `${t.value.table.borderWidth}px`);
|
|
121
121
|
function U() {
|
|
122
122
|
ie(() => {
|
|
@@ -126,8 +126,8 @@ const Ie = ["id"], $e = { role: "cell" }, we = { role: "row" }, Oe = ["data-cell
|
|
|
126
126
|
[s.sum],
|
|
127
127
|
[s.average],
|
|
128
128
|
[s.median]
|
|
129
|
-
]),
|
|
130
|
-
be({ csvContent:
|
|
129
|
+
]), o = [[[""], t.value.table.head.values, ["sum"], ["average"], ["median"]]].concat(e), a = ge(o);
|
|
130
|
+
be({ csvContent: a, title: "vue-ui-table-heatmap" });
|
|
131
131
|
});
|
|
132
132
|
}
|
|
133
133
|
function te(e) {
|
|
@@ -137,14 +137,14 @@ const Ie = ["id"], $e = { role: "cell" }, we = { role: "row" }, Oe = ["data-cell
|
|
|
137
137
|
generatePdf: N,
|
|
138
138
|
generateCsv: U,
|
|
139
139
|
generateImage: V
|
|
140
|
-
}), (e,
|
|
140
|
+
}), (e, o) => (n(), l("div", {
|
|
141
141
|
ref_key: "tableContainer",
|
|
142
142
|
ref: y,
|
|
143
143
|
style: C(`width:100%; overflow-x:auto; container-type: inline-size;padding-top:${t.value.userOptions.show ? "36px" : ""}; ${I.value ? "vue-data-ui-wrapper-fullscreen" : ""}; position:relative;`),
|
|
144
144
|
class: E({ "vue-ui-responsive": i.value }),
|
|
145
145
|
id: `table_heatmap_${_.value}`,
|
|
146
|
-
onMouseenter:
|
|
147
|
-
onMouseleave:
|
|
146
|
+
onMouseenter: o[0] || (o[0] = () => u(x)(!0)),
|
|
147
|
+
onMouseleave: o[1] || (o[1] = () => u(x)(!1))
|
|
148
148
|
}, [
|
|
149
149
|
t.value.userOptions.show && Y.value && (u(F) || u($)) ? (n(), le(u(X), {
|
|
150
150
|
ref: "details",
|
|
@@ -162,6 +162,7 @@ const Ie = ["id"], $e = { role: "cell" }, we = { role: "row" }, Oe = ["data-cell
|
|
|
162
162
|
titles: { ...t.value.userOptions.buttonTitles },
|
|
163
163
|
chartElement: y.value,
|
|
164
164
|
position: t.value.userOptions.position,
|
|
165
|
+
callbacks: t.value.userOptions.callbacks,
|
|
165
166
|
onToggleFullscreen: te,
|
|
166
167
|
onGeneratePdf: u(N),
|
|
167
168
|
onGenerateCsv: U,
|
|
@@ -172,8 +173,8 @@ const Ie = ["id"], $e = { role: "cell" }, we = { role: "row" }, Oe = ["data-cell
|
|
|
172
173
|
}, re({ _: 2 }, [
|
|
173
174
|
e.$slots.menuIcon ? {
|
|
174
175
|
name: "menuIcon",
|
|
175
|
-
fn: b(({ isOpen:
|
|
176
|
-
r(e.$slots, "menuIcon", G(B({ isOpen:
|
|
176
|
+
fn: b(({ isOpen: a, color: s }) => [
|
|
177
|
+
r(e.$slots, "menuIcon", G(B({ isOpen: a, color: s })), void 0, !0)
|
|
177
178
|
]),
|
|
178
179
|
key: "0"
|
|
179
180
|
} : void 0,
|
|
@@ -200,12 +201,12 @@ const Ie = ["id"], $e = { role: "cell" }, we = { role: "row" }, Oe = ["data-cell
|
|
|
200
201
|
} : void 0,
|
|
201
202
|
e.$slots.optionFullscreen ? {
|
|
202
203
|
name: "optionFullscreen",
|
|
203
|
-
fn: b(({ toggleFullscreen:
|
|
204
|
-
r(e.$slots, "optionFullscreen", G(B({ toggleFullscreen:
|
|
204
|
+
fn: b(({ toggleFullscreen: a, isFullscreen: s }) => [
|
|
205
|
+
r(e.$slots, "optionFullscreen", G(B({ toggleFullscreen: a, isFullscreen: s })), void 0, !0)
|
|
205
206
|
]),
|
|
206
207
|
key: "4"
|
|
207
208
|
} : void 0
|
|
208
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
|
|
209
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : v("", !0),
|
|
209
210
|
g("table", {
|
|
210
211
|
class: E({ "vue-ui-table-heatmap": !0 }),
|
|
211
212
|
style: C(`width:100%;font-family:${t.value.style.fontFamily};background:${t.value.style.backgroundColor};`)
|
|
@@ -218,19 +219,19 @@ const Ie = ["id"], $e = { role: "cell" }, we = { role: "row" }, Oe = ["data-cell
|
|
|
218
219
|
role: "row",
|
|
219
220
|
style: C(`background:${t.value.table.head.backgroundColor};color:${t.value.table.head.color}`)
|
|
220
221
|
}, [
|
|
221
|
-
(n(!0), l(k, null, w(t.value.table.head.values, (
|
|
222
|
-
r(e.$slots, "head", f({ ref_for: !0 }, { value:
|
|
222
|
+
(n(!0), l(k, null, w(t.value.table.head.values, (a, s) => (n(), l("th", $e, [
|
|
223
|
+
r(e.$slots, "head", f({ ref_for: !0 }, { value: a, rowIndex: s, type: typeof a, isResponsive: i.value }), void 0, !0)
|
|
223
224
|
]))), 256))
|
|
224
225
|
], 4)
|
|
225
226
|
]),
|
|
226
227
|
g("tbody", null, [
|
|
227
|
-
(n(!0), l(k, null, w(T.value, (
|
|
228
|
-
(n(!0), l(k, null, w(
|
|
228
|
+
(n(!0), l(k, null, w(T.value, (a, s) => (n(), l("tr", we, [
|
|
229
|
+
(n(!0), l(k, null, w(a.displayValues, (p, d) => (n(), l("td", {
|
|
229
230
|
role: "cell",
|
|
230
231
|
"data-cell": t.value.table.head.values[d]
|
|
231
232
|
}, [
|
|
232
|
-
|
|
233
|
-
|
|
233
|
+
a.color && d === 0 ? (n(), l("div", xe, [
|
|
234
|
+
a.color ? (n(), l("svg", {
|
|
234
235
|
key: 0,
|
|
235
236
|
height: t.value.style.shapeSize,
|
|
236
237
|
width: t.value.style.shapeSize,
|
|
@@ -239,9 +240,9 @@ const Ie = ["id"], $e = { role: "cell" }, we = { role: "row" }, Oe = ["data-cell
|
|
|
239
240
|
}, [
|
|
240
241
|
ue(ke, {
|
|
241
242
|
plot: { x: 10, y: 10 },
|
|
242
|
-
color:
|
|
243
|
+
color: a.color,
|
|
243
244
|
radius: 9,
|
|
244
|
-
shape:
|
|
245
|
+
shape: a.shape || "circle"
|
|
245
246
|
}, null, 8, ["color", "shape"])
|
|
246
247
|
], 8, Fe)) : v("", !0),
|
|
247
248
|
r(e.$slots, "rowTitle", f({ ref_for: !0 }, { value: p, rowIndex: s, colIndex: d, type: typeof p, isResponsive: i.value }), void 0, !0)
|
|
@@ -253,17 +254,17 @@ const Ie = ["id"], $e = { role: "cell" }, we = { role: "row" }, Oe = ["data-cell
|
|
|
253
254
|
d > 0 ? r(e.$slots, "cell", f({
|
|
254
255
|
key: 1,
|
|
255
256
|
ref_for: !0
|
|
256
|
-
}, { value: p, rowIndex: s, colIndex: d, type: typeof p, isResponsive: i.value, color:
|
|
257
|
+
}, { value: p, rowIndex: s, colIndex: d, type: typeof p, isResponsive: i.value, color: a.colors[d], textColor: u(fe)(a.colors[d]) }), void 0, !0) : v("", !0)
|
|
257
258
|
], 64))
|
|
258
259
|
], 8, Oe))), 256)),
|
|
259
260
|
t.value.table.showSum ? (n(), l("td", Pe, [
|
|
260
|
-
r(e.$slots, "sum", f({ ref_for: !0 }, { value:
|
|
261
|
+
r(e.$slots, "sum", f({ ref_for: !0 }, { value: a.sum, rowIndex: s, isResponsive: i.value }), void 0, !0)
|
|
261
262
|
])) : v("", !0),
|
|
262
263
|
t.value.table.showAverage ? (n(), l("td", Ne, [
|
|
263
|
-
r(e.$slots, "average", f({ ref_for: !0 }, { value:
|
|
264
|
+
r(e.$slots, "average", f({ ref_for: !0 }, { value: a.average, rowIndex: s, isResponsive: i.value }), void 0, !0)
|
|
264
265
|
])) : v("", !0),
|
|
265
266
|
t.value.table.showMedian ? (n(), l("td", Ve, [
|
|
266
|
-
r(e.$slots, "median", f({ ref_for: !0 }, { value:
|
|
267
|
+
r(e.$slots, "median", f({ ref_for: !0 }, { value: a.median, rowIndex: s, isResponsive: i.value }), void 0, !0)
|
|
267
268
|
])) : v("", !0)
|
|
268
269
|
]))), 256))
|
|
269
270
|
])
|
|
@@ -273,7 +274,7 @@ const Ie = ["id"], $e = { role: "cell" }, we = { role: "row" }, Oe = ["data-cell
|
|
|
273
274
|
], 512)) : v("", !0)
|
|
274
275
|
], 46, Ie));
|
|
275
276
|
}
|
|
276
|
-
}, Ae = /* @__PURE__ */ _e(Me, [["__scopeId", "data-v-
|
|
277
|
+
}, Ae = /* @__PURE__ */ _e(Me, [["__scopeId", "data-v-cf68b424"]]);
|
|
277
278
|
export {
|
|
278
279
|
Ae as default
|
|
279
280
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useCssVars as Fe, defineAsyncComponent as J, ref as p, useSlots as Ve, onMounted as me, computed as _, watch as be, shallowRef as Te, onBeforeUnmount as We, createElementBlock as c, openBlock as d, unref as u, normalizeClass as K, createCommentVNode as g, createElementVNode as f, normalizeStyle as r, toDisplayString as C, withDirectives as Me, createVNode as D, Fragment as Q, renderList as Y, createBlock as Ue, createSlots as Be, withCtx as P, renderSlot as O, mergeProps as ge, nextTick as Ee } from "vue";
|
|
2
|
-
import { u as ye } from "./useNestedProp-
|
|
3
|
-
import { u as Ge, c as Le, t as Re, p as T, a as He, b as qe, o as Xe, e as he, g as Je, a5 as Ke, d as Qe, i as W, f as M, q as Ye, r as Ze } from "./index-
|
|
4
|
-
import { u as je } from "./usePrinter-
|
|
2
|
+
import { u as ye } from "./useNestedProp-rMR-JeOJ.js";
|
|
3
|
+
import { u as Ge, c as Le, t as Re, p as T, a as He, b as qe, o as Xe, e as he, g as Je, a5 as Ke, d as Qe, i as W, f as M, q as Ye, r as Ze } from "./index-CH_mJIWj.js";
|
|
4
|
+
import { u as je } from "./usePrinter-DJ7WfWUs.js";
|
|
5
5
|
import { u as et } from "./useUserOptionState-BIvW1Kz7.js";
|
|
6
6
|
import { v as tt } from "./vClickOutside-C6WiFswA.js";
|
|
7
7
|
import { _ as at } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
@@ -41,9 +41,9 @@ const lt = ["id"], ot = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
41
41
|
},
|
|
42
42
|
setup(ke, { expose: _e }) {
|
|
43
43
|
Fe((t) => ({
|
|
44
|
-
"
|
|
44
|
+
"130513d6": t.tdo
|
|
45
45
|
}));
|
|
46
|
-
const Ce = J(() => import("./vue-ui-sparkline-
|
|
46
|
+
const Ce = J(() => import("./vue-ui-sparkline-DwzCA8d6.js")), N = J(() => import("./BaseIcon-DaR0sIWZ.js")), xe = J(() => import("./UserOptions-OVNxxnq5.js")), { vue_ui_table_sparkline: we } = Ge(), x = ke, U = p(Le()), Z = p(0), B = p(0), E = p(null), Se = Ve();
|
|
47
47
|
me(() => {
|
|
48
48
|
Se["chart-background"] && console.warn("VueUiTableSparkline does not support the #chart-background slot.");
|
|
49
49
|
});
|
|
@@ -406,6 +406,7 @@ const lt = ["id"], ot = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
406
406
|
titles: { ...e.value.userOptions.buttonTitles },
|
|
407
407
|
chartElement: F.value,
|
|
408
408
|
position: e.value.userOptions.position,
|
|
409
|
+
callbacks: e.value.userOptions.callbacks,
|
|
409
410
|
onToggleFullscreen: Pe,
|
|
410
411
|
onGeneratePdf: u(oe),
|
|
411
412
|
onGenerateImage: u(ne),
|
|
@@ -449,7 +450,7 @@ const lt = ["id"], ot = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
449
450
|
]),
|
|
450
451
|
key: "4"
|
|
451
452
|
} : void 0
|
|
452
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "onGeneratePdf", "onGenerateImage", "style"])) : g("", !0)
|
|
453
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasXls", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : g("", !0)
|
|
453
454
|
], 6))), 256))
|
|
454
455
|
], 4)), [
|
|
455
456
|
[u(tt), Ne]
|
|
@@ -654,7 +655,7 @@ const lt = ["id"], ot = { style: { "z-index": "1", "padding-right": "24px" } },
|
|
|
654
655
|
], 512)) : g("", !0)
|
|
655
656
|
], 42, lt));
|
|
656
657
|
}
|
|
657
|
-
}, wt = /* @__PURE__ */ at(bt, [["__scopeId", "data-v-
|
|
658
|
+
}, wt = /* @__PURE__ */ at(bt, [["__scopeId", "data-v-3be5a698"]]);
|
|
658
659
|
export {
|
|
659
660
|
wt as default
|
|
660
661
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { useCssVars as Ce, computed as d, defineAsyncComponent as F, onMounted as $e, ref as p, watch as Pe, createElementBlock as u, openBlock as l, unref as i, normalizeStyle as se, normalizeClass as
|
|
2
|
-
import { u as Ae, o as Me, e as le, g as Ye, c as Ne, t as Se, p as w, a as Ue, b as Te, v as g, d as N, X as Ve, s as qe, i as Le, f as Ee } from "./index-
|
|
3
|
-
import { u as ae } from "./useNestedProp-
|
|
4
|
-
import { u as Ge } from "./usePrinter-
|
|
1
|
+
import { useCssVars as Ce, computed as d, defineAsyncComponent as F, onMounted as $e, ref as p, watch as Pe, createElementBlock as u, openBlock as l, unref as i, normalizeStyle as se, normalizeClass as O, createBlock as I, createCommentVNode as c, createSlots as Fe, withCtx as x, renderSlot as f, normalizeProps as A, guardReactiveProps as M, createVNode as Oe, createElementVNode as v, Fragment as Y, renderList as oe, toDisplayString as Ie } from "vue";
|
|
2
|
+
import { u as Ae, o as Me, e as le, g as Ye, c as Ne, t as Se, p as w, a as Ue, b as Te, v as g, d as N, X as Ve, s as qe, i as Le, f as Ee } from "./index-CH_mJIWj.js";
|
|
3
|
+
import { u as ae } from "./useNestedProp-rMR-JeOJ.js";
|
|
4
|
+
import { u as Ge } from "./usePrinter-DJ7WfWUs.js";
|
|
5
5
|
import { u as We } from "./useUserOptionState-BIvW1Kz7.js";
|
|
6
6
|
import { u as je } from "./useChartAccessibility-9icAAmYg.js";
|
|
7
|
-
import ze from "./Title-
|
|
7
|
+
import ze from "./Title-apr_T9tg.js";
|
|
8
8
|
import { _ as Be } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
9
|
const Re = ["id"], De = {
|
|
10
10
|
key: 1,
|
|
@@ -42,11 +42,11 @@ const Re = ["id"], De = {
|
|
|
42
42
|
},
|
|
43
43
|
setup(_, { expose: re }) {
|
|
44
44
|
Ce((s) => ({
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
"4bc80fca": pe.value,
|
|
46
|
+
"19db7204": ge.value,
|
|
47
|
+
"5e34901e": fe.value
|
|
48
48
|
}));
|
|
49
|
-
const ne = F(() => import("./PackageVersion-
|
|
49
|
+
const ne = F(() => import("./PackageVersion-ClpqQxYT.js")), ue = F(() => import("./PenAndPaper-B-T7XvxF.js")), ie = F(() => import("./vue-ui-skeleton-C6PWt_m5.js")), ce = F(() => import("./UserOptions-OVNxxnq5.js")), { vue_ui_thermometer: he } = Ae(), a = _, S = d(() => !!a.dataset && Object.keys(a.dataset).length);
|
|
50
50
|
$e(() => {
|
|
51
51
|
W();
|
|
52
52
|
});
|
|
@@ -170,13 +170,13 @@ const Re = ["id"], De = {
|
|
|
170
170
|
}), (s, r) => (l(), u("div", {
|
|
171
171
|
ref_key: "thermoChart",
|
|
172
172
|
ref: j,
|
|
173
|
-
class:
|
|
173
|
+
class: O(`vue-ui-thermometer ${k.value ? "vue-data-ui-wrapper-fullscreen" : ""}`),
|
|
174
174
|
style: se(`width:100%;background:${e.value.style.chart.backgroundColor};color:${e.value.style.chart.color};font-family:${e.value.style.fontFamily}`),
|
|
175
175
|
id: `thermometer__${m.value}`,
|
|
176
176
|
onMouseenter: r[0] || (r[0] = () => i(R)(!0)),
|
|
177
177
|
onMouseleave: r[1] || (r[1] = () => i(R)(!1))
|
|
178
178
|
}, [
|
|
179
|
-
e.value.userOptions.buttons.annotator ? (l(),
|
|
179
|
+
e.value.userOptions.buttons.annotator ? (l(), I(i(ue), {
|
|
180
180
|
key: 0,
|
|
181
181
|
svgRef: i(H),
|
|
182
182
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -186,7 +186,7 @@ const Re = ["id"], De = {
|
|
|
186
186
|
}, null, 8, ["svgRef", "backgroundColor", "color", "active"])) : c("", !0),
|
|
187
187
|
de.value ? (l(), u("div", De, null, 512)) : c("", !0),
|
|
188
188
|
e.value.style.title.text ? (l(), u("div", He, [
|
|
189
|
-
(l(),
|
|
189
|
+
(l(), I(ze, {
|
|
190
190
|
key: `title_${B.value}`,
|
|
191
191
|
config: {
|
|
192
192
|
title: {
|
|
@@ -200,7 +200,7 @@ const Re = ["id"], De = {
|
|
|
200
200
|
}
|
|
201
201
|
}, null, 8, ["config"]))
|
|
202
202
|
])) : c("", !0),
|
|
203
|
-
e.value.userOptions.show && S.value && (i(D) || i(U)) ? (l(),
|
|
203
|
+
e.value.userOptions.show && S.value && (i(D) || i(U)) ? (l(), I(i(ce), {
|
|
204
204
|
ref: "details",
|
|
205
205
|
key: `user_options_${z.value}`,
|
|
206
206
|
backgroundColor: e.value.style.chart.backgroundColor,
|
|
@@ -218,6 +218,7 @@ const Re = ["id"], De = {
|
|
|
218
218
|
position: e.value.userOptions.position,
|
|
219
219
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
220
220
|
isAnnotation: P.value,
|
|
221
|
+
callbacks: e.value.userOptions.callbacks,
|
|
221
222
|
onToggleFullscreen: ke,
|
|
222
223
|
onGeneratePdf: i(Q),
|
|
223
224
|
onGenerateImage: i(Z),
|
|
@@ -261,18 +262,18 @@ const Re = ["id"], De = {
|
|
|
261
262
|
]),
|
|
262
263
|
key: "4"
|
|
263
264
|
} : void 0
|
|
264
|
-
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : c("", !0),
|
|
265
|
+
]), 1032, ["backgroundColor", "color", "isImaging", "isPrinting", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : c("", !0),
|
|
265
266
|
S.value ? (l(), u("svg", {
|
|
266
267
|
key: 4,
|
|
267
268
|
ref_key: "svgRef",
|
|
268
269
|
ref: H,
|
|
269
270
|
xmlns: i(Ve),
|
|
270
|
-
class:
|
|
271
|
+
class: O({ "vue-data-ui-fullscreen--on": k.value, "vue-data-ui-fulscreen--off": !k.value }),
|
|
271
272
|
width: "100%",
|
|
272
273
|
viewBox: `0 0 ${o.value.width} ${o.value.height}`,
|
|
273
274
|
style: "background:transparent"
|
|
274
275
|
}, [
|
|
275
|
-
|
|
276
|
+
Oe(i(ne)),
|
|
276
277
|
s.$slots["chart-background"] ? (l(), u("foreignObject", {
|
|
277
278
|
key: 0,
|
|
278
279
|
x: 0,
|
|
@@ -423,7 +424,7 @@ const Re = ["id"], De = {
|
|
|
423
424
|
], 64)) : c("", !0)
|
|
424
425
|
]))), 128)),
|
|
425
426
|
v("rect", {
|
|
426
|
-
class:
|
|
427
|
+
class: O({ "vue-ui-thermometer-temperature": e.value.style.chart.animation.use }),
|
|
427
428
|
x: o.value.left,
|
|
428
429
|
y: o.value.top,
|
|
429
430
|
height: q.value,
|
|
@@ -432,14 +433,14 @@ const Re = ["id"], De = {
|
|
|
432
433
|
}, null, 10, yt)
|
|
433
434
|
]),
|
|
434
435
|
v("text", {
|
|
435
|
-
class:
|
|
436
|
+
class: O({ "vue-ui-thermometer-temperature-value": e.value.style.chart.animation.use }),
|
|
436
437
|
y: q.value + o.value.top + e.value.style.chart.label.fontSize / 3,
|
|
437
438
|
x: o.value.left - 10,
|
|
438
439
|
"text-anchor": "end",
|
|
439
440
|
fill: e.value.style.chart.label.color,
|
|
440
441
|
"font-size": e.value.style.chart.label.fontSize,
|
|
441
442
|
"font-weight": e.value.style.chart.label.bold ? "bold" : "normal"
|
|
442
|
-
},
|
|
443
|
+
}, Ie(i(Le)(
|
|
443
444
|
e.value.style.chart.label.formatter,
|
|
444
445
|
_.dataset.value,
|
|
445
446
|
i(Ee)({
|
|
@@ -458,7 +459,7 @@ const Re = ["id"], De = {
|
|
|
458
459
|
s.$slots.source ? (l(), u("div", pt, [
|
|
459
460
|
f(s.$slots, "source", {}, void 0, !0)
|
|
460
461
|
], 512)) : c("", !0),
|
|
461
|
-
S.value ? c("", !0) : (l(),
|
|
462
|
+
S.value ? c("", !0) : (l(), I(i(ie), {
|
|
462
463
|
key: 7,
|
|
463
464
|
config: {
|
|
464
465
|
type: "thermometer",
|
|
@@ -472,7 +473,7 @@ const Re = ["id"], De = {
|
|
|
472
473
|
}, null, 8, ["config"]))
|
|
473
474
|
], 46, Re));
|
|
474
475
|
}
|
|
475
|
-
}, Ft = /* @__PURE__ */ Be(mt, [["__scopeId", "data-v-
|
|
476
|
+
}, Ft = /* @__PURE__ */ Be(mt, [["__scopeId", "data-v-c84e39bf"]]);
|
|
476
477
|
export {
|
|
477
478
|
Ft as default
|
|
478
479
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineAsyncComponent as se, ref as v, shallowRef as K, onMounted as le, computed as z, onBeforeUnmount as oe, watch as re, createElementBlock as r, openBlock as l, normalizeStyle as w, createCommentVNode as d, createElementVNode as M, createBlock as ue, unref as Q, createVNode as T, renderSlot as H, mergeProps as Y, normalizeProps as V, guardReactiveProps as G, toDisplayString as ie } from "vue";
|
|
2
|
-
import { u as ne } from "./useNestedProp-
|
|
3
|
-
import { u as ce, c as ve, X as de, F as X } from "./index-
|
|
2
|
+
import { u as ne } from "./useNestedProp-rMR-JeOJ.js";
|
|
3
|
+
import { u as ce, c as ve, X as de, F as X } from "./index-CH_mJIWj.js";
|
|
4
4
|
import { t as he, u as pe } from "./useResponsive-JZ9xq-JV.js";
|
|
5
5
|
import { u as fe } from "./useChartAccessibility-9icAAmYg.js";
|
|
6
|
-
import we from "./Title-
|
|
7
|
-
import R from "./BaseIcon-
|
|
6
|
+
import we from "./Title-apr_T9tg.js";
|
|
7
|
+
import R from "./BaseIcon-DaR0sIWZ.js";
|
|
8
8
|
import { _ as ke } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
9
|
class ge {
|
|
10
10
|
constructor(L, N, S, j = !0, A = !0) {
|
|
@@ -130,7 +130,7 @@ const me = ["xmlns", "viewBox"], ye = ["width", "height"], be = { key: 1 }, _e =
|
|
|
130
130
|
},
|
|
131
131
|
emits: ["start", "pause", "reset", "restart", "lap"],
|
|
132
132
|
setup(q, { expose: L, emit: N }) {
|
|
133
|
-
const S = se(() => import("./PackageVersion-
|
|
133
|
+
const S = se(() => import("./PackageVersion-ClpqQxYT.js")), { vue_ui_timer: j } = ce(), A = q, g = N, $ = v(null), D = v(null), i = v(null), n = K(null), o = K(null), h = v(ve()), k = v(0);
|
|
134
134
|
le(() => {
|
|
135
135
|
m();
|
|
136
136
|
});
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineAsyncComponent as F, computed as h, ref as b, watch as ee, onMounted as
|
|
2
|
-
import { u as oe } from "./useNestedProp-
|
|
3
|
-
import { u as ke, c as be, a as Ce, v as _e, o as $e, e as we, w as le, X as Pe, i as
|
|
4
|
-
import { u as Ae } from "./usePrinter-
|
|
1
|
+
import { defineAsyncComponent as F, computed as h, ref as b, watch as ee, onMounted as pe, createElementBlock as c, openBlock as n, unref as l, normalizeStyle as L, normalizeClass as j, createBlock as z, createCommentVNode as d, createSlots as ge, withCtx as O, renderSlot as g, normalizeProps as S, guardReactiveProps as N, createVNode as ye, Fragment as te, renderList as ae, toDisplayString as me } from "vue";
|
|
2
|
+
import { u as oe } from "./useNestedProp-rMR-JeOJ.js";
|
|
3
|
+
import { u as ke, c as be, a as Ce, v as _e, o as $e, e as we, w as le, X as Pe, i as Oe, f as xe } from "./index-CH_mJIWj.js";
|
|
4
|
+
import { u as Ae } from "./usePrinter-DJ7WfWUs.js";
|
|
5
5
|
import { u as Ie } from "./useUserOptionState-BIvW1Kz7.js";
|
|
6
6
|
import { u as Fe } from "./useChartAccessibility-9icAAmYg.js";
|
|
7
|
-
import ze from "./Title-
|
|
7
|
+
import ze from "./Title-apr_T9tg.js";
|
|
8
8
|
import { _ as Se } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
9
|
const Ne = ["id"], Me = {
|
|
10
10
|
key: 2,
|
|
@@ -33,7 +33,7 @@ const Ne = ["id"], Me = {
|
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
setup(se, { expose: ne }) {
|
|
36
|
-
const re = F(() => import("./PenAndPaper-
|
|
36
|
+
const re = F(() => import("./PenAndPaper-B-T7XvxF.js")), ue = F(() => import("./vue-ui-skeleton-C6PWt_m5.js")), ie = F(() => import("./UserOptions-OVNxxnq5.js")), ce = F(() => import("./PackageVersion-ClpqQxYT.js")), { vue_ui_tiremarks: ve } = ke(), f = se, M = h(() => !!f.dataset && Object.keys(f.dataset).length), T = b(be()), E = b(null), he = b(null), R = b(0), B = b(0), e = h({
|
|
37
37
|
get: () => V(),
|
|
38
38
|
set: (t) => t
|
|
39
39
|
}), { userOptionsVisible: U, setUserOptionsVisibility: X, keepUserOptionState: D } = Ie({ config: e.value }), { svgRef: H } = Fe({ config: e.value.style.chart.title });
|
|
@@ -59,7 +59,7 @@ const Ne = ["id"], Me = {
|
|
|
59
59
|
}), de = h(() => e.value.userOptions.show && !e.value.style.chart.title.text), u = b(e.value.style.chart.animation.use ? 0 : _e(f.dataset.percentage));
|
|
60
60
|
ee(() => f.dataset, (t) => {
|
|
61
61
|
e.value.style.chart.animation.use ? Q(t.percentage) : u.value = t.percentage || 0;
|
|
62
|
-
}, { deep: !0 }),
|
|
62
|
+
}, { deep: !0 }), pe(() => {
|
|
63
63
|
W();
|
|
64
64
|
});
|
|
65
65
|
function Q(t) {
|
|
@@ -94,37 +94,37 @@ const Ne = ["id"], Me = {
|
|
|
94
94
|
left: e.value.style.chart.percentage.horizontalPosition === "left" ? t.left : 3,
|
|
95
95
|
right: e.value.style.chart.percentage.horizontalPosition === "right" ? t.right : 10
|
|
96
96
|
};
|
|
97
|
-
}),
|
|
97
|
+
}), x = h(() => Object.values(i.value).reduce((t, r) => t + r, 0)), o = h(() => ({
|
|
98
98
|
height: C.value ? 312 : 56,
|
|
99
99
|
width: C.value ? 56 : 312
|
|
100
100
|
})), v = h(() => C.value ? {
|
|
101
|
-
mark: (o.value.height -
|
|
102
|
-
space: (o.value.height -
|
|
101
|
+
mark: (o.value.height - x.value) / 100 * 0.5,
|
|
102
|
+
space: (o.value.height - x.value) / 100 * 0.5
|
|
103
103
|
} : {
|
|
104
|
-
mark: (o.value.width -
|
|
105
|
-
space: (o.value.width -
|
|
104
|
+
mark: (o.value.width - x.value) / 100 * 0.5,
|
|
105
|
+
space: (o.value.width - x.value) / 100 * 0.5
|
|
106
106
|
}), Z = h(() => {
|
|
107
107
|
const t = [];
|
|
108
108
|
for (let a = 0; a < 100; a += 1) {
|
|
109
109
|
const s = e.value.style.chart.layout.ticks.gradient.show ? le(e.value.style.chart.layout.activeColor, a / 100 * (e.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.layout.activeColor;
|
|
110
110
|
if (C.value) {
|
|
111
|
-
const $ = e.value.style.chart.layout.crescendo ? (100 - a) * (o.value.width - i.value.left - i.value.right) / 100 / 3 : 0,
|
|
111
|
+
const $ = e.value.style.chart.layout.crescendo ? (100 - a) * (o.value.width - i.value.left - i.value.right) / 100 / 3 : 0, p = i.value.left + 4 + $, y = o.value.width - i.value.right - 4 - $, m = o.value.height - i.value.bottom - a * v.value.mark - a * v.value.space - v.value.mark, k = o.value.height - i.value.bottom - a * v.value.mark - a * v.value.space - v.value.mark, w = (y - p) / e.value.style.chart.layout.curveAngleX, P = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100);
|
|
112
112
|
t.push({
|
|
113
|
-
x1:
|
|
113
|
+
x1: p,
|
|
114
114
|
x2: y,
|
|
115
115
|
y1: m,
|
|
116
116
|
y2: k,
|
|
117
|
-
curve: `M ${
|
|
117
|
+
curve: `M ${p} ${m} C ${p + w} ${m - P}, ${y - w} ${k - P}, ${y} ${k}`,
|
|
118
118
|
color: s
|
|
119
119
|
});
|
|
120
120
|
} else {
|
|
121
|
-
const $ = e.value.style.chart.layout.crescendo ? (100 - a) * (o.value.height - i.value.top - i.value.bottom) / 100 / 3 : 0,
|
|
121
|
+
const $ = e.value.style.chart.layout.crescendo ? (100 - a) * (o.value.height - i.value.top - i.value.bottom) / 100 / 3 : 0, p = i.value.left + a * v.value.mark + a * v.value.space - v.value.mark, y = p, m = i.value.top + 4 + $, k = o.value.height - i.value.bottom - 4 - $, w = e.value.style.chart.layout.curveAngleY * ((1 + a) / 100), P = (k - m) / e.value.style.chart.layout.curveAngleX;
|
|
122
122
|
t.push({
|
|
123
|
-
x1:
|
|
123
|
+
x1: p,
|
|
124
124
|
x2: y,
|
|
125
125
|
y1: m,
|
|
126
126
|
y2: k,
|
|
127
|
-
curve: `M ${
|
|
127
|
+
curve: `M ${p} ${m} C ${p + w} ${m + P}, ${y + w} ${k - P}, ${y} ${k}`,
|
|
128
128
|
color: s
|
|
129
129
|
});
|
|
130
130
|
}
|
|
@@ -210,6 +210,7 @@ const Ne = ["id"], Me = {
|
|
|
210
210
|
position: e.value.userOptions.position,
|
|
211
211
|
hasAnnotator: e.value.userOptions.buttons.annotator,
|
|
212
212
|
isAnnotation: I.value,
|
|
213
|
+
callbacks: e.value.userOptions.callbacks,
|
|
213
214
|
onToggleFullscreen: fe,
|
|
214
215
|
onGeneratePdf: l(J),
|
|
215
216
|
onGenerateImage: l(K),
|
|
@@ -217,43 +218,43 @@ const Ne = ["id"], Me = {
|
|
|
217
218
|
style: L({
|
|
218
219
|
visibility: l(D) ? l(U) ? "visible" : "hidden" : "visible"
|
|
219
220
|
})
|
|
220
|
-
},
|
|
221
|
+
}, ge({ _: 2 }, [
|
|
221
222
|
t.$slots.menuIcon ? {
|
|
222
223
|
name: "menuIcon",
|
|
223
|
-
fn:
|
|
224
|
-
|
|
224
|
+
fn: O(({ isOpen: a, color: s }) => [
|
|
225
|
+
g(t.$slots, "menuIcon", S(N({ isOpen: a, color: s })), void 0, !0)
|
|
225
226
|
]),
|
|
226
227
|
key: "0"
|
|
227
228
|
} : void 0,
|
|
228
229
|
t.$slots.optionPdf ? {
|
|
229
230
|
name: "optionPdf",
|
|
230
|
-
fn:
|
|
231
|
-
|
|
231
|
+
fn: O(() => [
|
|
232
|
+
g(t.$slots, "optionPdf", {}, void 0, !0)
|
|
232
233
|
]),
|
|
233
234
|
key: "1"
|
|
234
235
|
} : void 0,
|
|
235
236
|
t.$slots.optionImg ? {
|
|
236
237
|
name: "optionImg",
|
|
237
|
-
fn:
|
|
238
|
-
|
|
238
|
+
fn: O(() => [
|
|
239
|
+
g(t.$slots, "optionImg", {}, void 0, !0)
|
|
239
240
|
]),
|
|
240
241
|
key: "2"
|
|
241
242
|
} : void 0,
|
|
242
243
|
t.$slots.optionFullscreen ? {
|
|
243
244
|
name: "optionFullscreen",
|
|
244
|
-
fn:
|
|
245
|
-
|
|
245
|
+
fn: O(({ toggleFullscreen: a, isFullscreen: s }) => [
|
|
246
|
+
g(t.$slots, "optionFullscreen", S(N({ toggleFullscreen: a, isFullscreen: s })), void 0, !0)
|
|
246
247
|
]),
|
|
247
248
|
key: "3"
|
|
248
249
|
} : void 0,
|
|
249
250
|
t.$slots.optionAnnotator ? {
|
|
250
251
|
name: "optionAnnotator",
|
|
251
|
-
fn:
|
|
252
|
-
|
|
252
|
+
fn: O(({ toggleAnnotator: a, isAnnotator: s }) => [
|
|
253
|
+
g(t.$slots, "optionAnnotator", S(N({ toggleAnnotator: a, isAnnotator: s })), void 0, !0)
|
|
253
254
|
]),
|
|
254
255
|
key: "4"
|
|
255
256
|
} : void 0
|
|
256
|
-
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "onGeneratePdf", "onGenerateImage", "style"])) : d("", !0),
|
|
257
|
+
]), 1032, ["backgroundColor", "color", "isPrinting", "isImaging", "uid", "hasPdf", "hasImg", "hasFullscreen", "isFullscreen", "titles", "chartElement", "position", "hasAnnotator", "isAnnotation", "callbacks", "onGeneratePdf", "onGenerateImage", "style"])) : d("", !0),
|
|
257
258
|
M.value ? (n(), c("svg", {
|
|
258
259
|
key: 4,
|
|
259
260
|
ref_key: "svgRef",
|
|
@@ -274,7 +275,7 @@ const Ne = ["id"], Me = {
|
|
|
274
275
|
pointerEvents: "none"
|
|
275
276
|
}
|
|
276
277
|
}, [
|
|
277
|
-
|
|
278
|
+
g(t.$slots, "chart-background", {}, void 0, !0)
|
|
278
279
|
], 8, Ue)) : d("", !0),
|
|
279
280
|
e.value.style.chart.layout.curved ? (n(), c("g", Ge, [
|
|
280
281
|
(n(!0), c(te, null, ae(Z.value, (a, s) => (n(), c("path", {
|
|
@@ -304,22 +305,22 @@ const Ne = ["id"], Me = {
|
|
|
304
305
|
fill: e.value.style.chart.layout.ticks.gradient.show && e.value.style.chart.percentage.useGradientColor ? l(le)(e.value.style.chart.layout.activeColor, u.value / 100 * (e.value.style.chart.layout.ticks.gradient.shiftHueIntensity / 100)) : e.value.style.chart.percentage.color,
|
|
305
306
|
"font-weight": _.value.bold ? "bold" : "normal",
|
|
306
307
|
"text-anchor": _.value.textAnchor
|
|
307
|
-
}, me(l(
|
|
308
|
+
}, me(l(Oe)(
|
|
308
309
|
e.value.style.chart.percentage.formatter,
|
|
309
310
|
u.value,
|
|
310
|
-
l(
|
|
311
|
+
l(xe)({
|
|
311
312
|
v: u.value,
|
|
312
313
|
s: "%",
|
|
313
314
|
r: e.value.style.chart.percentage.rounding
|
|
314
315
|
})
|
|
315
316
|
)), 9, Re)) : d("", !0),
|
|
316
|
-
|
|
317
|
+
g(t.$slots, "svg", { svg: o.value }, void 0, !0)
|
|
317
318
|
], 14, Te)) : d("", !0),
|
|
318
319
|
t.$slots.watermark ? (n(), c("div", Be, [
|
|
319
|
-
|
|
320
|
+
g(t.$slots, "watermark", S(N({ isPrinting: l(Y) || l(q) })), void 0, !0)
|
|
320
321
|
])) : d("", !0),
|
|
321
322
|
t.$slots.source ? (n(), c("div", Xe, [
|
|
322
|
-
|
|
323
|
+
g(t.$slots, "source", {}, void 0, !0)
|
|
323
324
|
], 512)) : d("", !0),
|
|
324
325
|
M.value ? d("", !0) : (n(), z(l(ue), {
|
|
325
326
|
key: 7,
|
|
@@ -335,7 +336,7 @@ const Ne = ["id"], Me = {
|
|
|
335
336
|
}, null, 8, ["config"]))
|
|
336
337
|
], 46, Ne));
|
|
337
338
|
}
|
|
338
|
-
}, Ze = /* @__PURE__ */ Se(De, [["__scopeId", "data-v-
|
|
339
|
+
}, Ze = /* @__PURE__ */ Se(De, [["__scopeId", "data-v-d54c8cf2"]]);
|
|
339
340
|
export {
|
|
340
341
|
Ze as default
|
|
341
342
|
};
|