@mobileaction/action-kit 1.57.0 → 1.57.1
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-DzxKra_-.js → annotations-DjS6cZ0g.js} +386 -383
- package/dist/components/typography/index.vue.d.ts +1 -1
- package/dist/export-data-DSMuByxy.js +332 -0
- package/dist/exporting-DZnBR8gm.js +601 -0
- package/dist/funnel-DaTDEOyF.js +134 -0
- package/dist/{index-C8r4OcCO.js → index-bTz35Vhl.js} +1879 -1845
- package/dist/map-BhX11nMc.js +1744 -0
- package/dist/offline-exporting-Dj1jDKzF.js +192 -0
- package/dist/stock-Cv-uIi1p.js +2076 -0
- package/dist/venn-CgBXe2Vp.js +453 -0
- package/dist/wordcloud-Bwb3kAJt.js +227 -0
- package/package.json +2 -2
- package/dist/export-data-B7wYF5EQ.js +0 -327
- package/dist/exporting-B0cCEyyg.js +0 -535
- package/dist/funnel-DTHaLuEK.js +0 -135
- package/dist/map-C_BILLYp.js +0 -1757
- package/dist/offline-exporting-8t0G_rUZ.js +0 -192
- package/dist/stock-DyTZKEyb.js +0 -2044
- package/dist/venn-DfFwIzSQ.js +0 -454
- package/dist/wordcloud-Hu3_8VaC.js +0 -235
|
@@ -10,8 +10,8 @@ type __VLS_Slots = {} & {
|
|
|
10
10
|
};
|
|
11
11
|
declare const __VLS_component: import("vue").DefineComponent<MaTypographyProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MaTypographyProps> & Readonly<{}>, {
|
|
12
12
|
type: TypographyType;
|
|
13
|
-
tag: TypographyTag;
|
|
14
13
|
weight: TypographyWeight;
|
|
14
|
+
tag: TypographyTag;
|
|
15
15
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
16
16
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
17
17
|
export default _default;
|
|
@@ -0,0 +1,332 @@
|
|
|
1
|
+
import { g as We } from "./index-bTz35Vhl.js";
|
|
2
|
+
function Ge(G, ie) {
|
|
3
|
+
for (var F = 0; F < ie.length; F++) {
|
|
4
|
+
const H = ie[F];
|
|
5
|
+
if (typeof H != "string" && !Array.isArray(H)) {
|
|
6
|
+
for (const j in H)
|
|
7
|
+
if (j !== "default" && !(j in G)) {
|
|
8
|
+
const $ = Object.getOwnPropertyDescriptor(H, j);
|
|
9
|
+
$ && Object.defineProperty(G, j, $.get ? $ : {
|
|
10
|
+
enumerable: !0,
|
|
11
|
+
get: () => H[j]
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
return Object.freeze(Object.defineProperty(G, Symbol.toStringTag, { value: "Module" }));
|
|
17
|
+
}
|
|
18
|
+
var re = { exports: {} }, ze = re.exports, we;
|
|
19
|
+
function Ye() {
|
|
20
|
+
return we || (we = 1, function(G, ie) {
|
|
21
|
+
/**
|
|
22
|
+
* Highcharts JS v12.5.0 (2026-01-12)
|
|
23
|
+
* @module highcharts/modules/export-data
|
|
24
|
+
* @requires highcharts
|
|
25
|
+
* @requires highcharts/modules/exporting
|
|
26
|
+
*
|
|
27
|
+
* Export data module
|
|
28
|
+
*
|
|
29
|
+
* (c) 2010-2026 Highsoft AS
|
|
30
|
+
* Author: Torstein Honsi
|
|
31
|
+
*
|
|
32
|
+
* A commercial license may be required depending on use.
|
|
33
|
+
* See www.highcharts.com/license
|
|
34
|
+
*/
|
|
35
|
+
(function(F, H) {
|
|
36
|
+
G.exports = H(F._Highcharts, F._Highcharts.AST, F._Highcharts.Chart);
|
|
37
|
+
})("u" < typeof window ? ze : window, (F, H, j) => (() => {
|
|
38
|
+
var $, ve = { 660: (o) => {
|
|
39
|
+
o.exports = H;
|
|
40
|
+
}, 944: (o) => {
|
|
41
|
+
o.exports = F;
|
|
42
|
+
}, 960: (o) => {
|
|
43
|
+
o.exports = j;
|
|
44
|
+
} }, he = {};
|
|
45
|
+
function S(o) {
|
|
46
|
+
var d = he[o];
|
|
47
|
+
if (d !== void 0) return d.exports;
|
|
48
|
+
var m = he[o] = { exports: {} };
|
|
49
|
+
return ve[o](m, m.exports, S), m.exports;
|
|
50
|
+
}
|
|
51
|
+
S.n = (o) => {
|
|
52
|
+
var d = o && o.__esModule ? () => o.default : () => o;
|
|
53
|
+
return S.d(d, { a: d }), d;
|
|
54
|
+
}, S.d = (o, d) => {
|
|
55
|
+
for (var m in d) S.o(d, m) && !S.o(o, m) && Object.defineProperty(o, m, { enumerable: !0, get: d[m] });
|
|
56
|
+
}, S.o = (o, d) => Object.prototype.hasOwnProperty.call(o, d);
|
|
57
|
+
var ue = {};
|
|
58
|
+
S.d(ue, { default: () => Be });
|
|
59
|
+
var Te = S(944), _ = S.n(Te);
|
|
60
|
+
let { isSafari: Se, win: g, win: { document: le } } = _(), { error: Je } = _(), ge = g.URL || g.webkitURL || g;
|
|
61
|
+
function fe(o) {
|
|
62
|
+
let d = o.replace(/filename=.*;/, "").match(/data:([^;]*)(;base64)?,([A-Z+\d\/]+)/i);
|
|
63
|
+
if (d && d.length > 3 && g.atob && g.ArrayBuffer && g.Uint8Array && g.Blob && ge.createObjectURL) {
|
|
64
|
+
let m = g.atob(d[3]), O = new g.ArrayBuffer(m.length), V = new g.Uint8Array(O);
|
|
65
|
+
for (let q = 0; q < V.length; ++q) V[q] = m.charCodeAt(q);
|
|
66
|
+
return ge.createObjectURL(new g.Blob([V], { type: d[1] }));
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
function se(o, d) {
|
|
70
|
+
let m = g.navigator, O = le.createElement("a");
|
|
71
|
+
if (typeof o != "string" && !(o instanceof String) && m.msSaveOrOpenBlob) return void m.msSaveOrOpenBlob(o, d);
|
|
72
|
+
if (o = "" + o, m.userAgent.length > 1e3) throw Error("Input too long");
|
|
73
|
+
let V = /Edge\/\d+/.test(m.userAgent);
|
|
74
|
+
if ((Se && typeof o == "string" && o.indexOf("data:application/pdf") === 0 || V || o.length > 2e6) && !(o = fe(o) || "")) throw Error("Failed to convert to blob");
|
|
75
|
+
if (O.download !== void 0) O.href = o, O.download = d, le.body.appendChild(O), O.click(), le.body.removeChild(O);
|
|
76
|
+
else try {
|
|
77
|
+
if (!g.open(o, "chart")) throw Error("Failed to open window");
|
|
78
|
+
} catch {
|
|
79
|
+
g.location.href = o;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
function xe(o, d) {
|
|
83
|
+
let m = g.navigator, O = g.URL || g.webkitURL || g;
|
|
84
|
+
try {
|
|
85
|
+
if (m.msSaveOrOpenBlob && g.MSBlobBuilder) {
|
|
86
|
+
let V = new g.MSBlobBuilder();
|
|
87
|
+
return V.append(o), V.getBlob("image/svg+xml");
|
|
88
|
+
}
|
|
89
|
+
return O.createObjectURL(new g.Blob(["\uFEFF" + o], { type: d }));
|
|
90
|
+
} catch {
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
var Ee = S(660), ce = S.n(Ee), Le = S(960), Ce = S.n(Le);
|
|
94
|
+
let Ae = { exporting: { csv: { annotations: { itemDelimiter: "; ", join: !1 }, columnHeaderFormatter: null, dateFormat: "%Y-%m-%d %H:%M:%S", decimalPoint: null, itemDelimiter: null, lineDelimiter: `
|
|
95
|
+
` }, menuItemDefinitions: { downloadCSV: { textKey: "downloadCSV", onclick: function() {
|
|
96
|
+
this.exporting?.downloadCSV();
|
|
97
|
+
} }, downloadXLS: { textKey: "downloadXLS", onclick: function() {
|
|
98
|
+
this.exporting?.downloadXLS();
|
|
99
|
+
} }, viewData: { textKey: "viewData", onclick: function() {
|
|
100
|
+
this.exporting?.wrapLoading(this.exporting.toggleDataTable);
|
|
101
|
+
} } }, showExportInProgress: !0, showTable: !1, useMultiLevelHeaders: !0, useRowspanHeaders: !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: Oe, setOptions: ke } = _(), { composed: Ve, doc: Ne, win: me } = _(), { addEvent: de, defined: Re, extend: be, find: Fe, fireEvent: ee, isNumber: He, pick: K, pushUnique: Ie } = _();
|
|
102
|
+
(function(o) {
|
|
103
|
+
function d() {
|
|
104
|
+
this.wrapLoading(() => {
|
|
105
|
+
let r = this.getCSV(!0);
|
|
106
|
+
se(xe(r, "text/csv") || "data:text/csv,\uFEFF" + encodeURIComponent(r), this.getFilename() + ".csv");
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
function m() {
|
|
110
|
+
this.wrapLoading(() => {
|
|
111
|
+
let r = '<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>";
|
|
112
|
+
se(xe(r, "application/vnd.ms-excel") || "data:application/vnd.ms-excel;base64," + me.btoa(unescape(encodeURIComponent(r))), this.getFilename() + ".xls");
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
function O(r) {
|
|
116
|
+
let l = "", i = this.getDataRows(), t = this.options?.csv, a = K(t?.decimalPoint, t?.itemDelimiter !== "," && r ? 1.1.toLocaleString()[1] : "."), b = K(t?.itemDelimiter, a === "," ? ";" : ","), h = t?.lineDelimiter;
|
|
117
|
+
return i.forEach((s, n) => {
|
|
118
|
+
let f = "", y = s.length;
|
|
119
|
+
for (; y--; ) typeof (f = s[y]) == "string" && (f = `"${f}"`), typeof f == "number" && a !== "." && (f = f.toString().replace(".", a)), s[y] = f;
|
|
120
|
+
s.length = i.length ? i[0].length : 0, l += s.join(b), n < i.length - 1 && (l += h);
|
|
121
|
+
}), l;
|
|
122
|
+
}
|
|
123
|
+
function V(r) {
|
|
124
|
+
let l, i, t = this.chart, a = t.hasParallelCoordinates, b = t.time, h = this.options?.csv || {}, s = t.xAxis, n = {}, f = [], y = [], N = [], C = t.options.lang.exportData, E = C?.categoryHeader, z = C?.categoryDatetimeHeader, Y = function(e, u, v) {
|
|
125
|
+
if (h.columnHeaderFormatter) {
|
|
126
|
+
let T = h.columnHeaderFormatter(e, u, v);
|
|
127
|
+
if (T !== !1) return T;
|
|
128
|
+
}
|
|
129
|
+
return !e && E ? E : !e.bindAxes && z && E ? e.options.title && e.options.title.text || (e.dateTime ? z : E) : r ? { columnTitle: ((v || 0) > 1 ? u : e.name) || "", topLevelColumnTitle: e.name } : e.name + ((v || 0) > 1 ? " (" + u + ")" : "");
|
|
130
|
+
}, w = function(e, u, v) {
|
|
131
|
+
let T = {}, Z = {};
|
|
132
|
+
return u.forEach(function(B) {
|
|
133
|
+
let W = (e.keyToAxis && e.keyToAxis[B] || B) + "Axis", U = He(v) ? e.chart[W][v] : e[W];
|
|
134
|
+
T[B] = U && U.categories || [], Z[B] = U && U.dateTime;
|
|
135
|
+
}), { categoryMap: T, dateTimeValueAxisMap: Z };
|
|
136
|
+
}, p = function(e, u) {
|
|
137
|
+
let v = e.pointArrayMap || ["y"];
|
|
138
|
+
return e.data.some((T) => T.y !== void 0 && T.name) && u && !u.categories && e.exportKey !== "name" ? ["x", ...v] : v;
|
|
139
|
+
}, x = [], L, c, A, k = 0, M, I;
|
|
140
|
+
for (M in t.series.forEach(function(e) {
|
|
141
|
+
let u = e.options.keys, v = e.xAxis, T = u || p(e, v), Z = T.length, B = !e.requireSorting && {}, W = s.indexOf(v), U = w(e, T), ye, R;
|
|
142
|
+
if (e.options.includeInDataExport !== !1 && !e.options.isInternal && e.visible !== !1) {
|
|
143
|
+
for (Fe(x, function(pe) {
|
|
144
|
+
return pe[0] === W;
|
|
145
|
+
}) || x.push([W, k]), R = 0; R < Z; ) A = Y(e, T[R], T.length), N.push(A.columnTitle || A), r && y.push(A.topLevelColumnTitle || A), R++;
|
|
146
|
+
ye = { chart: e.chart, autoIncrement: e.autoIncrement, options: e.options, pointArrayMap: e.pointArrayMap, index: e.index }, e.options.data?.forEach(function(pe, te) {
|
|
147
|
+
let D, ae, oe, J = { series: ye };
|
|
148
|
+
a && (U = w(e, T, te)), e.pointClass.prototype.applyOptions.apply(J, [pe]);
|
|
149
|
+
let ne = e.data[te] && e.data[te].name;
|
|
150
|
+
if (D = (J.x ?? "") + "," + ne, R = 0, (!v || e.exportKey === "name" || !a && v && v.hasNames && ne) && (D = ne), B && (B[D] && (D += "|" + te), B[D] = !0), n[D]) {
|
|
151
|
+
let P = `${D},${n[D].pointers[e.index]}`, Q = D;
|
|
152
|
+
n[D].pointers[e.index] && (n[P] || (n[P] = [], n[P].xValues = [], n[P].pointers = []), D = P), n[Q].pointers[e.index] += 1;
|
|
153
|
+
} else {
|
|
154
|
+
n[D] = [], n[D].xValues = [];
|
|
155
|
+
let P = [];
|
|
156
|
+
for (let Q = 0; Q < e.chart.series.length; Q++) P[Q] = 0;
|
|
157
|
+
n[D].pointers = P, n[D].pointers[e.index] = 1;
|
|
158
|
+
}
|
|
159
|
+
for (n[D].x = J.x, n[D].name = ne, n[D].xValues[W] = J.x; R < Z; ) ae = T[R], oe = e.pointClass.prototype.getNestedProperty.apply(J, [ae]), n[D][k + R] = K(U.categoryMap[ae][oe], U.dateTimeValueAxisMap[ae] ? b.dateFormat(h.dateFormat, oe) : null, oe), R++;
|
|
160
|
+
}), k += R;
|
|
161
|
+
}
|
|
162
|
+
}), n) Object.hasOwnProperty.call(n, M) && f.push(n[M]);
|
|
163
|
+
for (c = r ? [y, N] : [N], k = x.length; k--; ) l = x[k][0], i = x[k][1], L = s[l], f.sort(function(e, u) {
|
|
164
|
+
return e.xValues[l] - u.xValues[l];
|
|
165
|
+
}), I = Y(L), c[0].splice(i, 0, I), r && c[1] && c[1].splice(i, 0, I), f.forEach(function(e) {
|
|
166
|
+
let u = e.name;
|
|
167
|
+
L && !Re(u) && (L.dateTime ? (e.x instanceof Date && (e.x = e.x.getTime()), u = b.dateFormat(h.dateFormat, e.x)) : u = L.categories ? K(L.names[e.x], L.categories[e.x], e.x) : e.x), e.splice(i, 0, u);
|
|
168
|
+
});
|
|
169
|
+
return ee(t, "exportData", { dataRows: c = c.concat(f) }), c;
|
|
170
|
+
}
|
|
171
|
+
function q(r) {
|
|
172
|
+
let l = (i) => {
|
|
173
|
+
if (!i.tagName || i.tagName === "#text") return i.textContent || "";
|
|
174
|
+
let t = i.attributes, a = `<${i.tagName}`;
|
|
175
|
+
return t && Object.keys(t).forEach((b) => {
|
|
176
|
+
let h = t[b];
|
|
177
|
+
a += ` ${b}="${h}"`;
|
|
178
|
+
}), a += ">", a += i.textContent || "", (i.children || []).forEach((b) => {
|
|
179
|
+
a += l(b);
|
|
180
|
+
}), a += `</${i.tagName}>`;
|
|
181
|
+
};
|
|
182
|
+
return l(this.getTableAST(r));
|
|
183
|
+
}
|
|
184
|
+
function Ue(r) {
|
|
185
|
+
let l = 0, i = [], t = this, a = t.chart, b = a.options, h = r ? 1.1.toLocaleString()[1] : ".", s = K(t.options.useMultiLevelHeaders, !0), n = t.getDataRows(s), f = s ? n.shift() : null, y = n.shift(), N = function(w, p) {
|
|
186
|
+
let x = w.length;
|
|
187
|
+
if (p.length !== x) return !1;
|
|
188
|
+
for (; x--; ) if (w[x] !== p[x]) return !1;
|
|
189
|
+
return !0;
|
|
190
|
+
}, C = function(w, p, x, L) {
|
|
191
|
+
let c = K(L, ""), A = "highcharts-text" + (p ? " " + p : "");
|
|
192
|
+
return typeof c == "number" ? (c = a.numberFormatter(c, -1, h, w === "th" ? "" : void 0), A = "highcharts-number") : L || (A = "highcharts-empty"), { tagName: w, attributes: x = be({ class: A }, x), textContent: c };
|
|
193
|
+
}, { tableCaption: E } = t.options || {};
|
|
194
|
+
E !== !1 && i.push({ tagName: "caption", attributes: { class: "highcharts-table-caption" }, textContent: typeof E == "string" ? E : b.title?.text || b.lang.chartTitle });
|
|
195
|
+
for (let w = 0, p = n.length; w < p; ++w) n[w].length > l && (l = n[w].length);
|
|
196
|
+
i.push(function(w, p, x) {
|
|
197
|
+
let L = [], c = 0, A = x || p && p.length, k, M = 0, I;
|
|
198
|
+
if (s && w && p && !N(w, p)) {
|
|
199
|
+
let e = [];
|
|
200
|
+
for (; c < A; ++c) if ((k = w[c]) === w[c + 1]) ++M;
|
|
201
|
+
else if (M) e.push(C("th", "highcharts-table-topheading", { scope: "col", colspan: M + 1 }, k)), M = 0;
|
|
202
|
+
else {
|
|
203
|
+
k === p[c] ? t.options.useRowspanHeaders ? (I = 2, delete p[c]) : (I = 1, p[c] = "") : I = 1;
|
|
204
|
+
let u = C("th", "highcharts-table-topheading", { scope: "col" }, k);
|
|
205
|
+
I > 1 && u.attributes && (u.attributes.valign = "top", u.attributes.rowspan = I), e.push(u);
|
|
206
|
+
}
|
|
207
|
+
L.push({ tagName: "tr", children: e });
|
|
208
|
+
}
|
|
209
|
+
if (p) {
|
|
210
|
+
let e = [];
|
|
211
|
+
for (c = 0, A = p.length; c < A; ++c) p[c] !== void 0 && e.push(C("th", null, { scope: "col" }, p[c]));
|
|
212
|
+
L.push({ tagName: "tr", children: e });
|
|
213
|
+
}
|
|
214
|
+
return { tagName: "thead", children: L };
|
|
215
|
+
}(f, y || [], Math.max(l, y?.length || 0)));
|
|
216
|
+
let z = [];
|
|
217
|
+
n.forEach(function(w) {
|
|
218
|
+
let p = [];
|
|
219
|
+
for (let x = 0; x < l; x++) p.push(C(x ? "td" : "th", null, x ? {} : { scope: "row" }, w[x]));
|
|
220
|
+
z.push({ tagName: "tr", children: p });
|
|
221
|
+
}), i.push({ tagName: "tbody", children: z });
|
|
222
|
+
let Y = { tree: { tagName: "table", id: `highcharts-data-table-${a.index}`, children: i } };
|
|
223
|
+
return ee(a, "afterGetTableAST", Y), Y.tree;
|
|
224
|
+
}
|
|
225
|
+
function Pe() {
|
|
226
|
+
this.toggleDataTable(!1);
|
|
227
|
+
}
|
|
228
|
+
function je(r) {
|
|
229
|
+
let l = this.chart, i = (r = K(r, !this.isDataTableVisible)) && !this.dataTableDiv;
|
|
230
|
+
if (i && (this.dataTableDiv = Ne.createElement("div"), this.dataTableDiv.className = "highcharts-data-table", l.renderTo.parentNode.insertBefore(this.dataTableDiv, l.renderTo.nextSibling)), this.dataTableDiv) {
|
|
231
|
+
let s = this.dataTableDiv.style, n = s.display;
|
|
232
|
+
s.display = r ? "block" : "none", r ? (this.dataTableDiv.innerHTML = ce().emptyHTML, new (ce())([this.getTableAST()]).addToDOM(this.dataTableDiv), ee(l, "afterViewData", { element: this.dataTableDiv, wasHidden: i || n !== s.display })) : ee(l, "afterHideData");
|
|
233
|
+
}
|
|
234
|
+
this.isDataTableVisible = r;
|
|
235
|
+
let t = this.divElements, a = this.options, b = a.buttons?.contextButton.menuItems, h = l.options.lang;
|
|
236
|
+
if (a && a.menuItemDefinitions && h && h.viewData && h.hideData && b && t) {
|
|
237
|
+
let s = t[b.indexOf("viewData")];
|
|
238
|
+
s && ce().setElementHTML(s, this.isDataTableVisible ? h.hideData : h.viewData);
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
function $e() {
|
|
242
|
+
this.toggleDataTable(!0);
|
|
243
|
+
}
|
|
244
|
+
function _e(r) {
|
|
245
|
+
let l = this.chart, i = !!this.options.showExportInProgress, t = me.requestAnimationFrame || setTimeout;
|
|
246
|
+
t(() => {
|
|
247
|
+
i && l.showLoading(l.options.lang.exportInProgress), t(() => {
|
|
248
|
+
try {
|
|
249
|
+
r.call(this);
|
|
250
|
+
} finally {
|
|
251
|
+
i && l.hideLoading();
|
|
252
|
+
}
|
|
253
|
+
});
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
function Ke() {
|
|
257
|
+
let r = this.exporting, l = r?.dataTableDiv, i = (t, a) => t.children[a].textContent;
|
|
258
|
+
if (l && r.options.allowTableSorting) {
|
|
259
|
+
let t = l.querySelector("thead tr");
|
|
260
|
+
t && t.childNodes.forEach((a) => {
|
|
261
|
+
let b = l.querySelector("tbody");
|
|
262
|
+
a.addEventListener("click", function() {
|
|
263
|
+
let h = [...l.querySelectorAll("tr:not(thead tr)")], s = [...a.parentNode.children];
|
|
264
|
+
if (r) {
|
|
265
|
+
let n, f;
|
|
266
|
+
h.sort((n = s.indexOf(a), f = r.ascendingOrderInTable = !r.ascendingOrderInTable, (y, N) => {
|
|
267
|
+
let C, E;
|
|
268
|
+
return C = i(f ? y : N, n), E = i(f ? N : y, n), C === "" || E === "" || isNaN(C) || isNaN(E) ? C.toString().localeCompare(E) : C - E;
|
|
269
|
+
})).forEach((y) => {
|
|
270
|
+
b?.appendChild(y);
|
|
271
|
+
}), s.forEach((y) => {
|
|
272
|
+
["highcharts-sort-ascending", "highcharts-sort-descending"].forEach((N) => {
|
|
273
|
+
y.classList.contains(N) && y.classList.remove(N);
|
|
274
|
+
});
|
|
275
|
+
}), a.classList.add(r.ascendingOrderInTable ? "highcharts-sort-ascending" : "highcharts-sort-descending");
|
|
276
|
+
}
|
|
277
|
+
});
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
function Xe() {
|
|
282
|
+
this.options?.exporting?.showTable && !this.options.chart.forExport && this.exporting?.viewData();
|
|
283
|
+
}
|
|
284
|
+
function qe() {
|
|
285
|
+
this.exporting?.dataTableDiv?.remove();
|
|
286
|
+
}
|
|
287
|
+
o.compose = function(r, l, i) {
|
|
288
|
+
if (!Ie(Ve, "ExportData")) return;
|
|
289
|
+
be(Ce().prototype, { downloadCSV: function() {
|
|
290
|
+
return this.exporting?.downloadCSV();
|
|
291
|
+
}, downloadXLS: function() {
|
|
292
|
+
return this.exporting?.downloadXLS();
|
|
293
|
+
}, getCSV: function(a) {
|
|
294
|
+
return this.exporting?.getCSV(a);
|
|
295
|
+
}, getDataRows: function(a) {
|
|
296
|
+
return this.exporting?.getDataRows(a);
|
|
297
|
+
}, getTable: function(a) {
|
|
298
|
+
return this.exporting?.getTable(a);
|
|
299
|
+
}, getTableAST: function(a) {
|
|
300
|
+
return this.exporting?.getTableAST(a);
|
|
301
|
+
}, hideData: function() {
|
|
302
|
+
return this.exporting?.hideData();
|
|
303
|
+
}, toggleDataTable: function(a) {
|
|
304
|
+
return this.exporting?.toggleDataTable(a);
|
|
305
|
+
}, viewData: function() {
|
|
306
|
+
return this.exporting?.viewData();
|
|
307
|
+
} });
|
|
308
|
+
let t = l.prototype;
|
|
309
|
+
if (!t.downloadCSV) {
|
|
310
|
+
de(r, "afterViewData", Ke), de(r, "render", Xe), de(r, "destroy", qe), t.downloadCSV = d, t.downloadXLS = m, t.getCSV = O, t.getDataRows = V, t.getTable = q, t.getTableAST = Ue, t.hideData = Pe, t.toggleDataTable = je, t.wrapLoading = _e, t.viewData = $e, ke(Ae);
|
|
311
|
+
let a = Oe().exporting?.buttons?.contextButton?.menuItems;
|
|
312
|
+
a && a.push("separator", "downloadCSV", "downloadXLS", "viewData");
|
|
313
|
+
let { arearange: b, gantt: h, map: s, mapbubble: n, treemap: f, xrange: y } = i.types;
|
|
314
|
+
b && (b.prototype.keyToAxis = { low: "y", high: "y" }), h && (h.prototype.exportKey = "name", h.prototype.keyToAxis = { start: "x", end: "x" }), s && (s.prototype.exportKey = "name"), n && (n.prototype.exportKey = "name"), f && (f.prototype.exportKey = "name"), y && (y.prototype.keyToAxis = { x2: "x" });
|
|
315
|
+
}
|
|
316
|
+
};
|
|
317
|
+
})($ || ($ = {}));
|
|
318
|
+
let Me = $, X = _();
|
|
319
|
+
X.dataURLtoBlob = X.dataURLtoBlob || fe, X.downloadURL = X.downloadURL || se, Me.compose(X.Chart, X.Exporting, X.Series);
|
|
320
|
+
let Be = _();
|
|
321
|
+
return ue.default;
|
|
322
|
+
})());
|
|
323
|
+
}(re)), re.exports;
|
|
324
|
+
}
|
|
325
|
+
var De = Ye();
|
|
326
|
+
const Ze = /* @__PURE__ */ We(De), et = /* @__PURE__ */ Ge({
|
|
327
|
+
__proto__: null,
|
|
328
|
+
default: Ze
|
|
329
|
+
}, [De]);
|
|
330
|
+
export {
|
|
331
|
+
et as e
|
|
332
|
+
};
|