@mobileaction/action-kit 1.44.5-beta.5 → 1.44.5-beta.6
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/action-kit.mjs +1 -1
- package/dist/{annotations-DC4H-q09.js → annotations-B0qO-NO4.js} +1 -1
- package/dist/export-data-6YwQ0gDG.js +292 -0
- package/dist/{exporting-D7s3ogfS.js → exporting-D_plUb6f.js} +1 -1
- package/dist/{index-D3Q40tuM.js → index-DLy45sWV.js} +3043 -3034
- package/dist/{map-fbwyRDeC.js → map--j5fdvKK.js} +1 -1
- package/dist/offline-exporting-BdlhIJ3d.js +578 -0
- package/dist/src/components/chart/index.vue.d.ts +2 -1
- package/dist/src/components/chart/stories/chart.stories.d.ts +1 -0
- package/dist/src/components/chart/types.d.ts +3 -2
- package/dist/src/components/chart/utils.d.ts +4 -0
- package/dist/{stock-CuS43HQR.js → stock-opFn0JN0.js} +1 -1
- package/dist/{venn-CoVrPER0.js → venn-B3kxSuLO.js} +1 -1
- package/dist/{wordcloud-CEtWq2C-.js → wordcloud-DQTiJxQa.js} +1 -1
- package/package.json +1 -1
package/dist/action-kit.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { az as e, bk as o, bd as t, bc as M, aF as n, aJ as i, aK as p, aH as r, aG as l, aI as b, aE as c, b6 as u, b5 as S, bX as T, bV as d, aL as m, aM as g, _ as y, aD as I, aB as B, aC as C, C as P, y as A, x as z, a7 as h, B as k, bi as R, bh as O, bg as f, bf as w, bj as x, a as D, Y as G, bL as L, bN as v, bM as N, ay as V, Z as E, t as F, u as U, av as K, aw as W, bW as H, v as j, a4 as q, X as J, aq as Q, ar as X, a1 as Y, G as Z, br as _, bs as $, as as aa, H as sa, bv as ea, bt as oa, bu as ta, b1 as Ma, j as na, k as ia, aW as pa, m as ra, a2 as la, b2 as ba, b0 as ca, af as ua, ah as Sa, ag as Ta, ai as da, aj as ma, l as ga, aZ as ya, a0 as Ia, aY as Ba, aX as Ca, b as Pa, aa as Aa, bA as za, ab as ha, D as ka, bm as Ra, bl as Oa, ax as fa, w as wa, ae as xa, al as Da, am as Ga, a5 as La, a6 as va, R as Na, bD as Va, bC as Ea, bE as Fa, bB as Ua, z as Ka, ap as Wa, A as Ha, be as ja, E as qa, bo as Ja, bn as Qa, ak as Xa, o as Ya, q as Za, r as _a, s as $a, p as as, O as ss, N as es, J as os, Q as ts, L as Ms, K as ns, P as is, bz as ps, M as rs, a3 as ls, c as bs, F as cs, bq as us, bp as Ss, ad as Ts, ao as ds, an as ms, ac as gs, f as ys, W as Is, bH as Bs, T as Cs, V as Ps, bK as As, bF as zs, bG as hs, S as ks, U as Rs, bJ as Os, bI as fs, a8 as ws, e as xs, h as Ds, i as Gs, d as Ls, au as vs, at as Ns, I as Vs, by as Es, bx as Fs, bw as Us, a9 as Ks, b8 as Ws, b7 as Hs, bb as js, bQ as qs, bP as Js, bO as Qs, b4 as Xs, ba as Ys, b9 as Zs, b3 as _s, aN as $s, aO as ae, aR as se, aQ as ee, aV as oe, aS as te, aU as Me, aT as ne, aP as ie, bU as pe, bS as re, bR as le, bT as be, a$ as ce, a_ as ue, n as Se, $ as Te, aA as de } from "./index-
|
|
1
|
+
import { az as e, bk as o, bd as t, bc as M, aF as n, aJ as i, aK as p, aH as r, aG as l, aI as b, aE as c, b6 as u, b5 as S, bX as T, bV as d, aL as m, aM as g, _ as y, aD as I, aB as B, aC as C, C as P, y as A, x as z, a7 as h, B as k, bi as R, bh as O, bg as f, bf as w, bj as x, a as D, Y as G, bL as L, bN as v, bM as N, ay as V, Z as E, t as F, u as U, av as K, aw as W, bW as H, v as j, a4 as q, X as J, aq as Q, ar as X, a1 as Y, G as Z, br as _, bs as $, as as aa, H as sa, bv as ea, bt as oa, bu as ta, b1 as Ma, j as na, k as ia, aW as pa, m as ra, a2 as la, b2 as ba, b0 as ca, af as ua, ah as Sa, ag as Ta, ai as da, aj as ma, l as ga, aZ as ya, a0 as Ia, aY as Ba, aX as Ca, b as Pa, aa as Aa, bA as za, ab as ha, D as ka, bm as Ra, bl as Oa, ax as fa, w as wa, ae as xa, al as Da, am as Ga, a5 as La, a6 as va, R as Na, bD as Va, bC as Ea, bE as Fa, bB as Ua, z as Ka, ap as Wa, A as Ha, be as ja, E as qa, bo as Ja, bn as Qa, ak as Xa, o as Ya, q as Za, r as _a, s as $a, p as as, O as ss, N as es, J as os, Q as ts, L as Ms, K as ns, P as is, bz as ps, M as rs, a3 as ls, c as bs, F as cs, bq as us, bp as Ss, ad as Ts, ao as ds, an as ms, ac as gs, f as ys, W as Is, bH as Bs, T as Cs, V as Ps, bK as As, bF as zs, bG as hs, S as ks, U as Rs, bJ as Os, bI as fs, a8 as ws, e as xs, h as Ds, i as Gs, d as Ls, au as vs, at as Ns, I as Vs, by as Es, bx as Fs, bw as Us, a9 as Ks, b8 as Ws, b7 as Hs, bb as js, bQ as qs, bP as Js, bO as Qs, b4 as Xs, ba as Ys, b9 as Zs, b3 as _s, aN as $s, aO as ae, aR as se, aQ as ee, aV as oe, aS as te, aU as Me, aT as ne, aP as ie, bU as pe, bS as re, bR as le, bT as be, a$ as ce, a_ as ue, n as Se, $ as Te, aA as de } from "./index-DLy45sWV.js";
|
|
2
2
|
import { SelectOptGroup as ge } from "ant-design-vue";
|
|
3
3
|
export {
|
|
4
4
|
e as ActionKitConfig,
|
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
import { g as Me } from "./index-DLy45sWV.js";
|
|
2
|
+
function Pe($, ee) {
|
|
3
|
+
for (var R = 0; R < ee.length; R++) {
|
|
4
|
+
const C = ee[R];
|
|
5
|
+
if (typeof C != "string" && !Array.isArray(C)) {
|
|
6
|
+
for (const F in C)
|
|
7
|
+
if (F !== "default" && !(F in $)) {
|
|
8
|
+
const U = Object.getOwnPropertyDescriptor(C, F);
|
|
9
|
+
U && Object.defineProperty($, F, U.get ? U : {
|
|
10
|
+
enumerable: !0,
|
|
11
|
+
get: () => C[F]
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
return Object.freeze(Object.defineProperty($, Symbol.toStringTag, { value: "Module" }));
|
|
17
|
+
}
|
|
18
|
+
var Q = { exports: {} }, je = Q.exports, fe;
|
|
19
|
+
function $e() {
|
|
20
|
+
return fe || (fe = 1, function($, ee) {
|
|
21
|
+
(function(R, C) {
|
|
22
|
+
$.exports = C(R._Highcharts, R._Highcharts.AST);
|
|
23
|
+
})(typeof window > "u" ? je : window, (R, C) => (() => {
|
|
24
|
+
var F = { 660: (e) => {
|
|
25
|
+
e.exports = C;
|
|
26
|
+
}, 944: (e) => {
|
|
27
|
+
e.exports = R;
|
|
28
|
+
} }, U = {};
|
|
29
|
+
function D(e) {
|
|
30
|
+
var o = U[e];
|
|
31
|
+
if (o !== void 0) return o.exports;
|
|
32
|
+
var a = U[e] = { exports: {} };
|
|
33
|
+
return F[e](a, a.exports, D), a.exports;
|
|
34
|
+
}
|
|
35
|
+
D.n = (e) => {
|
|
36
|
+
var o = e && e.__esModule ? () => e.default : () => e;
|
|
37
|
+
return D.d(o, { a: o }), o;
|
|
38
|
+
}, D.d = (e, o) => {
|
|
39
|
+
for (var a in o) D.o(o, a) && !D.o(e, a) && Object.defineProperty(e, a, { enumerable: !0, get: o[a] });
|
|
40
|
+
}, D.o = (e, o) => Object.prototype.hasOwnProperty.call(e, o);
|
|
41
|
+
var se = {};
|
|
42
|
+
D.d(se, { default: () => Ie });
|
|
43
|
+
var me = D(944), I = D.n(me);
|
|
44
|
+
let { isSafari: xe, win: v, win: { document: te } } = I(), le = v.URL || v.webkitURL || v;
|
|
45
|
+
function ce(e) {
|
|
46
|
+
let o = e.replace(/filename=.*;/, "").match(/data:([^;]*)(;base64)?,([A-Z+\d\/]+)/i);
|
|
47
|
+
if (o && o.length > 3 && v.atob && v.ArrayBuffer && v.Uint8Array && v.Blob && le.createObjectURL) {
|
|
48
|
+
let a = v.atob(o[3]), n = new v.ArrayBuffer(a.length), r = new v.Uint8Array(n);
|
|
49
|
+
for (let i = 0; i < r.length; ++i) r[i] = a.charCodeAt(i);
|
|
50
|
+
return le.createObjectURL(new v.Blob([r], { type: o[1] }));
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
let ae = { dataURLtoBlob: ce, downloadURL: function(e, o) {
|
|
54
|
+
let a = v.navigator, n = te.createElement("a");
|
|
55
|
+
if (typeof e != "string" && !(e instanceof String) && a.msSaveOrOpenBlob) {
|
|
56
|
+
a.msSaveOrOpenBlob(e, o);
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
if (e = "" + e, a.userAgent.length > 1e3) throw Error("Input too long");
|
|
60
|
+
let r = /Edge\/\d+/.test(a.userAgent);
|
|
61
|
+
if ((xe && typeof e == "string" && e.indexOf("data:application/pdf") === 0 || r || e.length > 2e6) && !(e = ce(e) || "")) throw Error("Failed to convert to blob");
|
|
62
|
+
if (n.download !== void 0) n.href = e, n.download = o, te.body.appendChild(n), n.click(), te.body.removeChild(n);
|
|
63
|
+
else try {
|
|
64
|
+
if (!v.open(e, "chart")) throw Error("Failed to open window");
|
|
65
|
+
} catch {
|
|
66
|
+
v.location.href = e;
|
|
67
|
+
}
|
|
68
|
+
} };
|
|
69
|
+
var be = D(660), oe = D.n(be);
|
|
70
|
+
let ye = { exporting: { csv: { annotations: { itemDelimiter: "; ", join: !1 }, columnHeaderFormatter: null, dateFormat: "%Y-%m-%d %H:%M:%S", decimalPoint: null, itemDelimiter: null, lineDelimiter: `
|
|
71
|
+
` }, showTable: !1, useMultiLevelHeaders: !0, useRowspanHeaders: !0, showExportInProgress: !0 }, lang: { downloadCSV: "Download CSV", downloadXLS: "Download XLS", exportData: { annotationHeader: "Annotations", categoryHeader: "Category", categoryDatetimeHeader: "DateTime" }, viewData: "View data table", hideData: "Hide data table", exportInProgress: "Exporting..." } }, { getOptions: we, setOptions: ve } = I(), { downloadURL: de } = ae, { doc: De, win: O } = I(), { addEvent: ne, defined: Te, extend: pe, find: Se, fireEvent: q, isNumber: Ee, pick: H } = I();
|
|
72
|
+
function ie(e) {
|
|
73
|
+
let o = !!this.options.exporting?.showExportInProgress, a = O.requestAnimationFrame || setTimeout;
|
|
74
|
+
a(() => {
|
|
75
|
+
o && this.showLoading(this.options.lang.exportInProgress), a(() => {
|
|
76
|
+
try {
|
|
77
|
+
e.call(this);
|
|
78
|
+
} finally {
|
|
79
|
+
o && this.hideLoading();
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
function Le() {
|
|
85
|
+
ie.call(this, () => {
|
|
86
|
+
let e = this.getCSV(!0);
|
|
87
|
+
de(he(e, "text/csv") || "data:text/csv,\uFEFF" + encodeURIComponent(e), this.getFilename() + ".csv");
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
function Ae() {
|
|
91
|
+
ie.call(this, () => {
|
|
92
|
+
let e = '<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"><head><!--[if gte mso 9]><xml><x:ExcelWorkbook><x:ExcelWorksheets><x:ExcelWorksheet><x:Name>Ark1</x:Name><x:WorksheetOptions><x:DisplayGridlines/></x:WorksheetOptions></x:ExcelWorksheet></x:ExcelWorksheets></x:ExcelWorkbook></xml><![endif]--><style>td{border:none;font-family: Calibri, sans-serif;} .number{mso-number-format:"0.00";} .text{ mso-number-format:"@";}</style><meta name=ProgId content=Excel.Sheet><meta charset=UTF-8></head><body>' + this.getTable(!0) + "</body></html>";
|
|
93
|
+
de(he(e, "application/vnd.ms-excel") || "data:application/vnd.ms-excel;base64," + O.btoa(unescape(encodeURIComponent(e))), this.getFilename() + ".xls");
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
function Ce(e) {
|
|
97
|
+
let o = "", a = this.getDataRows(), n = this.options.exporting.csv, r = H(n.decimalPoint, n.itemDelimiter !== "," && e ? 1.1.toLocaleString()[1] : "."), i = H(n.itemDelimiter, r === "," ? ";" : ","), l = n.lineDelimiter;
|
|
98
|
+
return a.forEach((s, h) => {
|
|
99
|
+
let d = "", x = s.length;
|
|
100
|
+
for (; x--; ) typeof (d = s[x]) == "string" && (d = `"${d}"`), typeof d == "number" && r !== "." && (d = d.toString().replace(".", r)), s[x] = d;
|
|
101
|
+
s.length = a.length ? a[0].length : 0, o += s.join(i), h < a.length - 1 && (o += l);
|
|
102
|
+
}), o;
|
|
103
|
+
}
|
|
104
|
+
function Oe(e) {
|
|
105
|
+
let o, a, n = this.hasParallelCoordinates, r = this.time, i = this.options.exporting && this.options.exporting.csv || {}, l = this.xAxis, s = {}, h = [], d = [], x = [], P = this.options.lang.exportData, K = P.categoryHeader, z = P.categoryDatetimeHeader, u = function(t, m, y) {
|
|
106
|
+
if (i.columnHeaderFormatter) {
|
|
107
|
+
let w = i.columnHeaderFormatter(t, m, y);
|
|
108
|
+
if (w !== !1) return w;
|
|
109
|
+
}
|
|
110
|
+
return t ? t.bindAxes ? e ? { columnTitle: y > 1 ? m : t.name, topLevelColumnTitle: t.name } : t.name + (y > 1 ? " (" + m + ")" : "") : t.options.title && t.options.title.text || (t.dateTime ? z : K) : K;
|
|
111
|
+
}, p = function(t, m, y) {
|
|
112
|
+
let w = {}, W = {};
|
|
113
|
+
return m.forEach(function(N) {
|
|
114
|
+
let j = (t.keyToAxis && t.keyToAxis[N] || N) + "Axis", V = Ee(y) ? t.chart[j][y] : t[j];
|
|
115
|
+
w[N] = V && V.categories || [], W[N] = V && V.dateTime;
|
|
116
|
+
}), { categoryMap: w, dateTimeValueAxisMap: W };
|
|
117
|
+
}, g = function(t, m) {
|
|
118
|
+
let y = t.pointArrayMap || ["y"];
|
|
119
|
+
return t.data.some((w) => w.y !== void 0 && w.name) && m && !m.categories && t.exportKey !== "name" ? ["x", ...y] : y;
|
|
120
|
+
}, T = [], c, b, E, S = 0, k, L;
|
|
121
|
+
for (k in this.series.forEach(function(t) {
|
|
122
|
+
let m = t.options.keys, y = t.xAxis, w = m || g(t, y), W = w.length, N = !t.requireSorting && {}, j = l.indexOf(y), V = p(t, w), ue, A;
|
|
123
|
+
if (t.options.includeInDataExport !== !1 && !t.options.isInternal && t.visible !== !1) {
|
|
124
|
+
for (Se(T, function(re) {
|
|
125
|
+
return re[0] === j;
|
|
126
|
+
}) || T.push([j, S]), A = 0; A < W; ) E = u(t, w[A], w.length), x.push(E.columnTitle || E), e && d.push(E.topLevelColumnTitle || E), A++;
|
|
127
|
+
ue = { chart: t.chart, autoIncrement: t.autoIncrement, options: t.options, pointArrayMap: t.pointArrayMap, index: t.index }, t.options.data.forEach(function(re, G) {
|
|
128
|
+
let f, Y, Z, _ = { series: ue };
|
|
129
|
+
n && (V = p(t, w, G)), t.pointClass.prototype.applyOptions.apply(_, [re]);
|
|
130
|
+
let J = t.data[G] && t.data[G].name;
|
|
131
|
+
if (f = (_.x ?? "") + "," + J, A = 0, (!y || t.exportKey === "name" || !n && y && y.hasNames && J) && (f = J), N && (N[f] && (f += "|" + G), N[f] = !0), s[f]) {
|
|
132
|
+
let B = `${f},${s[f].pointers[t.index]}`, X = f;
|
|
133
|
+
s[f].pointers[t.index] && (s[B] || (s[B] = [], s[B].xValues = [], s[B].pointers = []), f = B), s[X].pointers[t.index] += 1;
|
|
134
|
+
} else {
|
|
135
|
+
s[f] = [], s[f].xValues = [];
|
|
136
|
+
let B = [];
|
|
137
|
+
for (let X = 0; X < t.chart.series.length; X++) B[X] = 0;
|
|
138
|
+
s[f].pointers = B, s[f].pointers[t.index] = 1;
|
|
139
|
+
}
|
|
140
|
+
for (s[f].x = _.x, s[f].name = J, s[f].xValues[j] = _.x; A < W; ) Y = w[A], Z = t.pointClass.prototype.getNestedProperty.apply(_, [Y]), s[f][S + A] = H(V.categoryMap[Y][Z], V.dateTimeValueAxisMap[Y] ? r.dateFormat(i.dateFormat, Z) : null, Z), A++;
|
|
141
|
+
}), S += A;
|
|
142
|
+
}
|
|
143
|
+
}), s) Object.hasOwnProperty.call(s, k) && h.push(s[k]);
|
|
144
|
+
for (b = e ? [d, x] : [x], S = T.length; S--; ) o = T[S][0], a = T[S][1], c = l[o], h.sort(function(t, m) {
|
|
145
|
+
return t.xValues[o] - m.xValues[o];
|
|
146
|
+
}), L = u(c), b[0].splice(a, 0, L), e && b[1] && b[1].splice(a, 0, L), h.forEach(function(t) {
|
|
147
|
+
let m = t.name;
|
|
148
|
+
c && !Te(m) && (c.dateTime ? (t.x instanceof Date && (t.x = t.x.getTime()), m = r.dateFormat(i.dateFormat, t.x)) : m = c.categories ? H(c.names[t.x], c.categories[t.x], t.x) : t.x), t.splice(a, 0, m);
|
|
149
|
+
});
|
|
150
|
+
return q(this, "exportData", { dataRows: b = b.concat(h) }), b;
|
|
151
|
+
}
|
|
152
|
+
function ke(e) {
|
|
153
|
+
let o = (a) => {
|
|
154
|
+
if (!a.tagName || a.tagName === "#text") return a.textContent || "";
|
|
155
|
+
let n = a.attributes, r = `<${a.tagName}`;
|
|
156
|
+
return n && Object.keys(n).forEach((i) => {
|
|
157
|
+
let l = n[i];
|
|
158
|
+
r += ` ${i}="${l}"`;
|
|
159
|
+
}), r += ">", r += a.textContent || "", (a.children || []).forEach((i) => {
|
|
160
|
+
r += o(i);
|
|
161
|
+
}), r += `</${a.tagName}>`;
|
|
162
|
+
};
|
|
163
|
+
return o(this.getTableAST(e));
|
|
164
|
+
}
|
|
165
|
+
function Re(e) {
|
|
166
|
+
let o = 0, a = [], n = this.options, r = e ? 1.1.toLocaleString()[1] : ".", i = H(n.exporting.useMultiLevelHeaders, !0), l = this.getDataRows(i), s = i ? l.shift() : null, h = l.shift(), d = function(u, p) {
|
|
167
|
+
let g = u.length;
|
|
168
|
+
if (p.length !== g) return !1;
|
|
169
|
+
for (; g--; ) if (u[g] !== p[g]) return !1;
|
|
170
|
+
return !0;
|
|
171
|
+
}, x = function(u, p, g, T) {
|
|
172
|
+
let c = H(T, ""), b = "highcharts-text" + (p ? " " + p : "");
|
|
173
|
+
return typeof c == "number" ? (c = c.toString(), r === "," && (c = c.replace(".", r)), b = "highcharts-number") : T || (b = "highcharts-empty"), { tagName: u, attributes: g = pe({ class: b }, g), textContent: c };
|
|
174
|
+
}, { tableCaption: P } = n.exporting || {};
|
|
175
|
+
P !== !1 && a.push({ tagName: "caption", attributes: { class: "highcharts-table-caption" }, textContent: typeof P == "string" ? P : n.title?.text || n.lang.chartTitle });
|
|
176
|
+
for (let u = 0, p = l.length; u < p; ++u) l[u].length > o && (o = l[u].length);
|
|
177
|
+
a.push(function(u, p, g) {
|
|
178
|
+
let T = [], c = 0, b = g || p && p.length, E, S = 0, k;
|
|
179
|
+
if (i && u && p && !d(u, p)) {
|
|
180
|
+
let L = [];
|
|
181
|
+
for (; c < b; ++c) if ((E = u[c]) === u[c + 1]) ++S;
|
|
182
|
+
else if (S) L.push(x("th", "highcharts-table-topheading", { scope: "col", colspan: S + 1 }, E)), S = 0;
|
|
183
|
+
else {
|
|
184
|
+
E === p[c] ? n.exporting.useRowspanHeaders ? (k = 2, delete p[c]) : (k = 1, p[c] = "") : k = 1;
|
|
185
|
+
let t = x("th", "highcharts-table-topheading", { scope: "col" }, E);
|
|
186
|
+
k > 1 && t.attributes && (t.attributes.valign = "top", t.attributes.rowspan = k), L.push(t);
|
|
187
|
+
}
|
|
188
|
+
T.push({ tagName: "tr", children: L });
|
|
189
|
+
}
|
|
190
|
+
if (p) {
|
|
191
|
+
let L = [];
|
|
192
|
+
for (c = 0, b = p.length; c < b; ++c) p[c] !== void 0 && L.push(x("th", null, { scope: "col" }, p[c]));
|
|
193
|
+
T.push({ tagName: "tr", children: L });
|
|
194
|
+
}
|
|
195
|
+
return { tagName: "thead", children: T };
|
|
196
|
+
}(s, h, Math.max(o, h.length)));
|
|
197
|
+
let K = [];
|
|
198
|
+
l.forEach(function(u) {
|
|
199
|
+
let p = [];
|
|
200
|
+
for (let g = 0; g < o; g++) p.push(x(g ? "td" : "th", null, g ? {} : { scope: "row" }, u[g]));
|
|
201
|
+
K.push({ tagName: "tr", children: p });
|
|
202
|
+
}), a.push({ tagName: "tbody", children: K });
|
|
203
|
+
let z = { tree: { tagName: "table", id: `highcharts-data-table-${this.index}`, children: a } };
|
|
204
|
+
return q(this, "aftergetTableAST", z), z.tree;
|
|
205
|
+
}
|
|
206
|
+
function Ne() {
|
|
207
|
+
this.toggleDataTable(!1);
|
|
208
|
+
}
|
|
209
|
+
function Ve(e) {
|
|
210
|
+
let o = (e = H(e, !this.isDataTableVisible)) && !this.dataTableDiv;
|
|
211
|
+
if (o && (this.dataTableDiv = De.createElement("div"), this.dataTableDiv.className = "highcharts-data-table", this.renderTo.parentNode.insertBefore(this.dataTableDiv, this.renderTo.nextSibling)), this.dataTableDiv) {
|
|
212
|
+
let l = this.dataTableDiv.style, s = l.display;
|
|
213
|
+
l.display = e ? "block" : "none", e ? (this.dataTableDiv.innerHTML = oe().emptyHTML, new (oe())([this.getTableAST()]).addToDOM(this.dataTableDiv), q(this, "afterViewData", { element: this.dataTableDiv, wasHidden: o || s !== l.display })) : q(this, "afterHideData");
|
|
214
|
+
}
|
|
215
|
+
this.isDataTableVisible = e;
|
|
216
|
+
let a = this.exportDivElements, n = this.options.exporting, r = n && n.buttons && n.buttons.contextButton.menuItems, i = this.options.lang;
|
|
217
|
+
if (n && n.menuItemDefinitions && i && i.viewData && i.hideData && r && a) {
|
|
218
|
+
let l = a[r.indexOf("viewData")];
|
|
219
|
+
l && oe().setElementHTML(l, this.isDataTableVisible ? i.hideData : i.viewData);
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
function Be() {
|
|
223
|
+
this.toggleDataTable(!0);
|
|
224
|
+
}
|
|
225
|
+
function he(e, o) {
|
|
226
|
+
let a = O.navigator, n = O.URL || O.webkitURL || O;
|
|
227
|
+
try {
|
|
228
|
+
if (a.msSaveOrOpenBlob && O.MSBlobBuilder) {
|
|
229
|
+
let r = new O.MSBlobBuilder();
|
|
230
|
+
return r.append(e), r.getBlob("image/svg+xml");
|
|
231
|
+
}
|
|
232
|
+
return n.createObjectURL(new O.Blob(["\uFEFF" + e], { type: o }));
|
|
233
|
+
} catch {
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
function Fe() {
|
|
237
|
+
let e = this, o = e.dataTableDiv, a = (r, i) => r.children[i].textContent, n = (r, i) => (l, s) => {
|
|
238
|
+
let h, d;
|
|
239
|
+
return h = a(i ? l : s, r), d = a(i ? s : l, r), h === "" || d === "" || isNaN(h) || isNaN(d) ? h.toString().localeCompare(d) : h - d;
|
|
240
|
+
};
|
|
241
|
+
if (o && e.options.exporting && e.options.exporting.allowTableSorting) {
|
|
242
|
+
let r = o.querySelector("thead tr");
|
|
243
|
+
r && r.childNodes.forEach((i) => {
|
|
244
|
+
let l = i.closest("table");
|
|
245
|
+
i.addEventListener("click", function() {
|
|
246
|
+
let s = [...o.querySelectorAll("tr:not(thead tr)")], h = [...i.parentNode.children];
|
|
247
|
+
s.sort(n(h.indexOf(i), e.ascendingOrderInTable = !e.ascendingOrderInTable)).forEach((d) => {
|
|
248
|
+
l.appendChild(d);
|
|
249
|
+
}), h.forEach((d) => {
|
|
250
|
+
["highcharts-sort-ascending", "highcharts-sort-descending"].forEach((x) => {
|
|
251
|
+
d.classList.contains(x) && d.classList.remove(x);
|
|
252
|
+
});
|
|
253
|
+
}), i.classList.add(e.ascendingOrderInTable ? "highcharts-sort-ascending" : "highcharts-sort-descending");
|
|
254
|
+
});
|
|
255
|
+
});
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
function He() {
|
|
259
|
+
this.options && this.options.exporting && this.options.exporting.showTable && !this.options.chart.forExport && this.viewData();
|
|
260
|
+
}
|
|
261
|
+
function Ue() {
|
|
262
|
+
this.dataTableDiv?.remove();
|
|
263
|
+
}
|
|
264
|
+
let M = I();
|
|
265
|
+
M.dataURLtoBlob = M.dataURLtoBlob || ae.dataURLtoBlob, M.downloadURL = M.downloadURL || ae.downloadURL, { compose: function(e, o) {
|
|
266
|
+
let a = e.prototype;
|
|
267
|
+
if (!a.getCSV) {
|
|
268
|
+
let n = we().exporting;
|
|
269
|
+
ne(e, "afterViewData", Fe), ne(e, "render", He), ne(e, "destroy", Ue), a.downloadCSV = Le, a.downloadXLS = Ae, a.getCSV = Ce, a.getDataRows = Oe, a.getTable = ke, a.getTableAST = Re, a.hideData = Ne, a.toggleDataTable = Ve, a.viewData = Be, n && (pe(n.menuItemDefinitions, { downloadCSV: { textKey: "downloadCSV", onclick: function() {
|
|
270
|
+
this.downloadCSV();
|
|
271
|
+
} }, downloadXLS: { textKey: "downloadXLS", onclick: function() {
|
|
272
|
+
this.downloadXLS();
|
|
273
|
+
} }, viewData: { textKey: "viewData", onclick: function() {
|
|
274
|
+
ie.call(this, this.toggleDataTable);
|
|
275
|
+
} } }), n.buttons && n.buttons.contextButton.menuItems && n.buttons.contextButton.menuItems.push("separator", "downloadCSV", "downloadXLS", "viewData")), ve(ye);
|
|
276
|
+
let { arearange: r, gantt: i, map: l, mapbubble: s, treemap: h, xrange: d } = o.types;
|
|
277
|
+
r && (r.prototype.keyToAxis = { low: "y", high: "y" }), i && (i.prototype.exportKey = "name", i.prototype.keyToAxis = { start: "x", end: "x" }), l && (l.prototype.exportKey = "name"), s && (s.prototype.exportKey = "name"), h && (h.prototype.exportKey = "name"), d && (d.prototype.keyToAxis = { x2: "x" });
|
|
278
|
+
}
|
|
279
|
+
} }.compose(M.Chart, M.Series);
|
|
280
|
+
let Ie = I();
|
|
281
|
+
return se.default;
|
|
282
|
+
})());
|
|
283
|
+
}(Q)), Q.exports;
|
|
284
|
+
}
|
|
285
|
+
var ge = $e();
|
|
286
|
+
const Ke = /* @__PURE__ */ Me(ge), _e = /* @__PURE__ */ Pe({
|
|
287
|
+
__proto__: null,
|
|
288
|
+
default: Ke
|
|
289
|
+
}, [ge]);
|
|
290
|
+
export {
|
|
291
|
+
_e as e
|
|
292
|
+
};
|