@mobileaction/action-kit 1.59.0-beta.20260824072801 → 1.59.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-BotVbqYk.js +1275 -0
- package/dist/components/badge/stories/basic.stories.d.ts +2 -2
- package/dist/components/badge/stories/blue.stories.d.ts +2 -2
- package/dist/components/badge/stories/dark.stories.d.ts +2 -2
- package/dist/components/badge/stories/green.stories.d.ts +2 -2
- package/dist/components/badge/stories/orange.stories.d.ts +2 -2
- package/dist/components/badge/stories/pink.stories.d.ts +2 -2
- package/dist/components/badge/stories/purple.stories.d.ts +2 -2
- package/dist/components/badge/stories/red.stories.d.ts +2 -2
- package/dist/components/badge/stories/teal.stories.d.ts +2 -2
- package/dist/components/badge/stories/yellow.stories.d.ts +2 -2
- package/dist/components/cascader/stories/default.stories.d.ts +16 -16
- package/dist/export-data-BR_-2Q3f.js +332 -0
- package/dist/exporting-DR0s0ify.js +601 -0
- package/dist/funnel-DL7kiG31.js +134 -0
- package/dist/{index-6Py-WZ9e.js → index-CBkR2AwI.js} +2355 -2349
- package/dist/map-CMb83okh.js +1731 -0
- package/dist/offline-exporting-YDP5IlMX.js +192 -0
- package/dist/stock-CBVAQBFc.js +2054 -0
- package/dist/venn-D6eKe_-O.js +453 -0
- package/dist/wordcloud-t7GdM2hM.js +227 -0
- package/package.json +30 -15
- package/dist/annotations-DSkf_ftr.js +0 -1496
- package/dist/export-data-DCTe5P_S.js +0 -404
- package/dist/exporting-DQGEobM-.js +0 -739
- package/dist/funnel-CqFEWYxB.js +0 -201
- package/dist/map-DAB70ark.js +0 -1928
- package/dist/offline-exporting-aCzMDQAJ.js +0 -203
- package/dist/stock-CYJWuEFp.js +0 -2216
- package/dist/venn-Dec0FzLN.js +0 -498
- package/dist/wordcloud-CjsQdxnL.js +0 -268
|
@@ -1,404 +0,0 @@
|
|
|
1
|
-
import { g as Xe } from "./index-6Py-WZ9e.js";
|
|
2
|
-
function We(J, ge) {
|
|
3
|
-
for (var I = 0; I < ge.length; I++) {
|
|
4
|
-
const M = ge[I];
|
|
5
|
-
if (typeof M != "string" && !Array.isArray(M)) {
|
|
6
|
-
for (const X in M)
|
|
7
|
-
if (X !== "default" && !(X in J)) {
|
|
8
|
-
const W = Object.getOwnPropertyDescriptor(M, X);
|
|
9
|
-
W && Object.defineProperty(J, X, W.get ? W : {
|
|
10
|
-
enumerable: !0,
|
|
11
|
-
get: () => M[X]
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
return Object.freeze(Object.defineProperty(J, Symbol.toStringTag, { value: "Module" }));
|
|
17
|
-
}
|
|
18
|
-
var fe = { exports: {} }, qe = fe.exports, ke;
|
|
19
|
-
function Ge() {
|
|
20
|
-
return ke || (ke = 1, (function(J, ge) {
|
|
21
|
-
/**
|
|
22
|
-
* Highcharts JS v12.6.0 (2026-04-13)
|
|
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 Hønsi
|
|
31
|
-
*
|
|
32
|
-
* A commercial license may be required depending on use.
|
|
33
|
-
* See www.highcharts.com/license
|
|
34
|
-
*/
|
|
35
|
-
(function(I, M) {
|
|
36
|
-
J.exports = M(I._Highcharts, I._Highcharts.AST, I._Highcharts.Chart);
|
|
37
|
-
})("u" < typeof window ? qe : window, (I, M, X) => (() => {
|
|
38
|
-
var W, Ve = { 660: (e) => {
|
|
39
|
-
e.exports = M;
|
|
40
|
-
}, 944: (e) => {
|
|
41
|
-
e.exports = I;
|
|
42
|
-
}, 960: (e) => {
|
|
43
|
-
e.exports = X;
|
|
44
|
-
} }, we = {};
|
|
45
|
-
function L(e) {
|
|
46
|
-
var n = we[e];
|
|
47
|
-
if (n !== void 0) return n.exports;
|
|
48
|
-
var a = we[e] = { exports: {} };
|
|
49
|
-
return Ve[e](a, a.exports, L), a.exports;
|
|
50
|
-
}
|
|
51
|
-
L.n = (e) => {
|
|
52
|
-
var n = e && e.__esModule ? () => e.default : () => e;
|
|
53
|
-
return L.d(n, { a: n }), n;
|
|
54
|
-
}, L.d = (e, n) => {
|
|
55
|
-
for (var a in n) L.o(n, a) && !L.o(e, a) && Object.defineProperty(e, a, { enumerable: !0, get: n[a] });
|
|
56
|
-
}, L.o = (e, n) => Object.prototype.hasOwnProperty.call(e, n);
|
|
57
|
-
var De = {};
|
|
58
|
-
L.d(De, { default: () => Ke });
|
|
59
|
-
var Pe = L(944), H = L.n(Pe);
|
|
60
|
-
let { isSafari: Re, win: b, win: { document: xe } } = H(), Te = b.URL || b.webkitURL || b;
|
|
61
|
-
function Ee(e) {
|
|
62
|
-
let n = e.replace(/filename=.*;/, "").match(/data:([^;]*)(;base64)?,([A-Z+\d\/]+)/i);
|
|
63
|
-
if (n && n.length > 3 && b.atob && b.ArrayBuffer && b.Uint8Array && b.Blob && Te.createObjectURL) {
|
|
64
|
-
let a = b.atob(n[3]), x = new b.ArrayBuffer(a.length), f = new b.Uint8Array(x);
|
|
65
|
-
for (let E = 0; E < f.length; ++E) f[E] = a.charCodeAt(E);
|
|
66
|
-
return Te.createObjectURL(new b.Blob([f], { type: n[1] }));
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
function me(e, n) {
|
|
70
|
-
let a = b.navigator, x = xe.createElement("a");
|
|
71
|
-
if (typeof e != "string" && !(e instanceof String) && a.msSaveOrOpenBlob) return void a.msSaveOrOpenBlob(e, n);
|
|
72
|
-
if (e = "" + e, a.userAgent.length > 1e3) throw Error("Input too long");
|
|
73
|
-
let f = /Edge\/\d+/.test(a.userAgent);
|
|
74
|
-
if ((Re && typeof e == "string" && e.indexOf("data:application/pdf") === 0 || f || e.length > 2e6) && !(e = Ee(e) || "")) throw Error("Failed to convert to blob");
|
|
75
|
-
if (x.download !== void 0) x.href = e, x.download = n, xe.body.appendChild(x), x.click(), xe.body.removeChild(x);
|
|
76
|
-
else try {
|
|
77
|
-
if (!b.open(e, "chart")) throw Error("Failed to open window");
|
|
78
|
-
} catch {
|
|
79
|
-
b.location.href = e;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
function Se(e, n) {
|
|
83
|
-
let a = b.navigator, x = b.URL || b.webkitURL || b;
|
|
84
|
-
try {
|
|
85
|
-
if (a.msSaveOrOpenBlob && b.MSBlobBuilder) {
|
|
86
|
-
let f = new b.MSBlobBuilder();
|
|
87
|
-
return f.append(e), f.getBlob("image/svg+xml");
|
|
88
|
-
}
|
|
89
|
-
return x.createObjectURL(new b.Blob(["\uFEFF" + e], { type: n }));
|
|
90
|
-
} catch {
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
var Fe = L(660), be = L.n(Fe), He = L(960), je = L.n(He);
|
|
94
|
-
let Ie = { 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..." } }, { doc: Oe, win: Ye } = H();
|
|
102
|
-
function ye(e, n, a, x = {}) {
|
|
103
|
-
let f = typeof e == "function" && e.prototype || e;
|
|
104
|
-
Object.hasOwnProperty.call(f, "hcEvents") || (f.hcEvents = {});
|
|
105
|
-
let E = f.hcEvents;
|
|
106
|
-
H().Point && e instanceof H().Point && e.series && e.series.chart && (e.series.chart.runTrackerClick = !0);
|
|
107
|
-
let z = e.addEventListener;
|
|
108
|
-
z && z.call(e, n, a, !!H().supportsPassiveEvents && { passive: x.passive === void 0 ? n.indexOf("touch") !== -1 : x.passive, capture: !1 }), E[n] || (E[n] = []);
|
|
109
|
-
let Y = { fn: a, order: typeof x.order == "number" ? x.order : 1 / 0 };
|
|
110
|
-
return E[n].push(Y), E[n].sort((P, F) => P.order - F.order), function() {
|
|
111
|
-
(function(P, F, Q) {
|
|
112
|
-
function se(o, s) {
|
|
113
|
-
let r = P.removeEventListener;
|
|
114
|
-
r && r.call(P, o, s, !1);
|
|
115
|
-
}
|
|
116
|
-
function ce(o) {
|
|
117
|
-
let s, r;
|
|
118
|
-
if (P.nodeName) {
|
|
119
|
-
F ? (s = {})[F] = !0 : s = o;
|
|
120
|
-
var i = s, l = function(p, d) {
|
|
121
|
-
if (o[d]) for (r = o[d].length; r--; ) se(d, o[d][r].fn);
|
|
122
|
-
};
|
|
123
|
-
for (let p in i) Object.hasOwnProperty.call(i, p) && l.call(i[p], i[p], p, i);
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
let ee = typeof P == "function" && P.prototype || P;
|
|
127
|
-
if (Object.hasOwnProperty.call(ee, "hcEvents")) {
|
|
128
|
-
let o = ee.hcEvents;
|
|
129
|
-
if (F) {
|
|
130
|
-
let s = o[F] || [];
|
|
131
|
-
Q ? (o[F] = s.filter(function(r) {
|
|
132
|
-
return Q !== r.fn;
|
|
133
|
-
}), se(F, Q)) : (ce(o), o[F] = []);
|
|
134
|
-
} else ce(o), delete ee.hcEvents;
|
|
135
|
-
}
|
|
136
|
-
})(e, n, a);
|
|
137
|
-
};
|
|
138
|
-
}
|
|
139
|
-
function ie(e, n) {
|
|
140
|
-
let a;
|
|
141
|
-
for (a in e || (e = {}), n) e[a] = n[a];
|
|
142
|
-
return e;
|
|
143
|
-
}
|
|
144
|
-
function le(e, n, a, x) {
|
|
145
|
-
if (a = a || {}, Oe?.createEvent && (e.dispatchEvent || e.fireEvent && e !== H())) {
|
|
146
|
-
let f = Oe.createEvent("Events");
|
|
147
|
-
f.initEvent(n, !0, !0), a = ie(f, a), e.dispatchEvent ? e.dispatchEvent(a) : e.fireEvent(n, a);
|
|
148
|
-
} else if (e.hcEvents) {
|
|
149
|
-
a.target || ie(a, { preventDefault: function() {
|
|
150
|
-
a.defaultPrevented = !0;
|
|
151
|
-
}, target: e, type: n });
|
|
152
|
-
let f = [], E = e, z = !1;
|
|
153
|
-
for (; E.hcEvents; ) Object.hasOwnProperty.call(E, "hcEvents") && E.hcEvents[n] && (f.length && (z = !0), f.unshift.apply(f, E.hcEvents[n])), E = Object.getPrototypeOf(E);
|
|
154
|
-
z && f.sort((Y, P) => Y.order - P.order), f.forEach((Y) => {
|
|
155
|
-
Y.fn.call(e, a, e) === !1 && a.preventDefault();
|
|
156
|
-
});
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
let Me = Array.prototype.find ? function(e, n) {
|
|
160
|
-
return e.find(n);
|
|
161
|
-
} : function(e, n) {
|
|
162
|
-
let a, x = e.length;
|
|
163
|
-
for (a = 0; a < x; a++) if (n(e[a], a)) return e[a];
|
|
164
|
-
};
|
|
165
|
-
function q() {
|
|
166
|
-
let e = arguments, n = e.length;
|
|
167
|
-
for (let a = 0; a < n; a++) {
|
|
168
|
-
let x = e[a];
|
|
169
|
-
if (x != null) return x;
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
let { getOptions: Be, setOptions: Ue } = H(), { composed: Le, doc: $e, win: Ce } = H();
|
|
173
|
-
(function(e) {
|
|
174
|
-
function n() {
|
|
175
|
-
this.wrapLoading(() => {
|
|
176
|
-
let o = this.getCSV(!0);
|
|
177
|
-
me(Se(o, "text/csv") || "data:text/csv,\uFEFF" + encodeURIComponent(o), this.getFilename() + ".csv");
|
|
178
|
-
});
|
|
179
|
-
}
|
|
180
|
-
function a() {
|
|
181
|
-
this.wrapLoading(() => {
|
|
182
|
-
let o = '<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>";
|
|
183
|
-
me(Se(o, "application/vnd.ms-excel") || "data:application/vnd.ms-excel;base64," + Ce.btoa(unescape(encodeURIComponent(o))), this.getFilename() + ".xls");
|
|
184
|
-
});
|
|
185
|
-
}
|
|
186
|
-
function x(o) {
|
|
187
|
-
let s = "", r = this.getDataRows(), i = this.options?.csv, l = q(i?.decimalPoint, i?.itemDelimiter !== "," && o ? 1.1.toLocaleString()[1] : "."), p = q(i?.itemDelimiter, l === "," ? ";" : ","), d = i?.lineDelimiter;
|
|
188
|
-
return r.forEach((h, c) => {
|
|
189
|
-
let y = "", w = h.length;
|
|
190
|
-
for (; w--; ) typeof (y = h[w]) == "string" && (y = `"${y}"`), typeof y == "number" && l !== "." && (y = y.toString().replace(".", l)), h[w] = y;
|
|
191
|
-
h.length = r.length ? r[0].length : 0, s += h.join(p), c < r.length - 1 && (s += d);
|
|
192
|
-
}), s;
|
|
193
|
-
}
|
|
194
|
-
function f(o) {
|
|
195
|
-
let s, r, i = this.chart, l = i.hasParallelCoordinates, p = i.time, d = this.options?.csv || {}, h = i.xAxis, c = {}, y = [], w = [], C = [], N = i.options.lang.exportData, A = N?.categoryHeader, te = N?.categoryDatetimeHeader, ae = function(t, m, S) {
|
|
196
|
-
if (d.columnHeaderFormatter) {
|
|
197
|
-
let O = d.columnHeaderFormatter(t, m, S);
|
|
198
|
-
if (O !== !1) return O;
|
|
199
|
-
}
|
|
200
|
-
return !t && A ? A : !t.bindAxes && te && A ? t.options.title && t.options.title.text || (t.dateTime ? te : A) : o ? { columnTitle: ((S || 0) > 1 ? m : t.name) || "", topLevelColumnTitle: t.name } : t.name + ((S || 0) > 1 ? " (" + m + ")" : "");
|
|
201
|
-
}, D = function(t, m, S) {
|
|
202
|
-
let O = {}, oe = {};
|
|
203
|
-
return m.forEach(function($) {
|
|
204
|
-
let Z = (t.keyToAxis && t.keyToAxis[$] || $) + "Axis", _ = typeof S == "number" && !isNaN(S) && S < 1 / 0 && S > -1 / 0 ? t.chart[Z][S] : t[Z];
|
|
205
|
-
O[$] = _ && _.categories || [], oe[$] = _ && _.dateTime;
|
|
206
|
-
}), { categoryMap: O, dateTimeValueAxisMap: oe };
|
|
207
|
-
}, g = function(t, m) {
|
|
208
|
-
let S = t.pointArrayMap || ["y"];
|
|
209
|
-
return t.data.some((O) => O.y !== void 0 && O.name) && m && !m.categories && t.exportKey !== "name" ? ["x", ...S] : S;
|
|
210
|
-
}, v = [], k, u, V, R = 0, U, B;
|
|
211
|
-
for (U in i.series.forEach(function(t) {
|
|
212
|
-
let m = t.options.keys, S = t.xAxis, O = m || g(t, S), oe = O.length, $ = !t.requireSorting && {}, Z = h.indexOf(S), _ = D(t, O), Ae, j;
|
|
213
|
-
if (t.options.includeInDataExport !== !1 && !t.options.isInternal && t.visible !== !1) {
|
|
214
|
-
for (Me(v, function(ve) {
|
|
215
|
-
return ve[0] === Z;
|
|
216
|
-
}) || v.push([Z, R]), j = 0; j < oe; ) V = ae(t, O[j], O.length), C.push(V.columnTitle || V), o && w.push(V.topLevelColumnTitle || V), j++;
|
|
217
|
-
Ae = { chart: t.chart, autoIncrement: t.autoIncrement, options: t.options, pointArrayMap: t.pointArrayMap, index: t.index, xAxis: t.xAxis }, t.options.data?.forEach(function(ve, pe) {
|
|
218
|
-
let T, de, he, ne = { series: Ae };
|
|
219
|
-
l && (_ = D(t, O, pe)), t.pointClass.prototype.applyOptions.apply(ne, [ve]);
|
|
220
|
-
let ue = t.data[pe] && t.data[pe].name;
|
|
221
|
-
if (T = (ne.x ?? "") + "," + ue, j = 0, (!S || t.exportKey === "name" || !l && S && S.hasNames && ue) && (T = ue), $ && ($[T] && (T += "|" + pe), $[T] = !0), c[T]) {
|
|
222
|
-
let K = `${T},${c[T].pointers[t.index]}`, re = T;
|
|
223
|
-
c[T].pointers[t.index] && (c[K] || (c[K] = [], c[K].xValues = [], c[K].pointers = []), T = K), c[re].pointers[t.index] += 1;
|
|
224
|
-
} else {
|
|
225
|
-
c[T] = [], c[T].xValues = [];
|
|
226
|
-
let K = [];
|
|
227
|
-
for (let re = 0; re < t.chart.series.length; re++) K[re] = 0;
|
|
228
|
-
c[T].pointers = K, c[T].pointers[t.index] = 1;
|
|
229
|
-
}
|
|
230
|
-
for (c[T].x = ne.x, c[T].name = ue, c[T].xValues[Z] = ne.x; j < oe; ) de = O[j], he = t.pointClass.prototype.getNestedProperty.apply(ne, [de]), c[T][R + j] = q(_.categoryMap[de][he], _.dateTimeValueAxisMap[de] ? p.dateFormat(d.dateFormat, he) : null, he), j++;
|
|
231
|
-
}), R += j;
|
|
232
|
-
}
|
|
233
|
-
}), c) Object.hasOwnProperty.call(c, U) && y.push(c[U]);
|
|
234
|
-
for (u = o ? [w, C] : [C], R = v.length; R--; ) s = v[R][0], r = v[R][1], k = h[s], y.sort(function(t, m) {
|
|
235
|
-
return t.xValues[s] - m.xValues[s];
|
|
236
|
-
}), B = ae(k), u[0].splice(r, 0, B), o && u[1] && u[1].splice(r, 0, B), y.forEach(function(t) {
|
|
237
|
-
let m = t.name;
|
|
238
|
-
k && m == null && (k.dateTime ? (t.x instanceof Date && (t.x = t.x.getTime()), m = p.dateFormat(d.dateFormat, t.x)) : m = k.categories ? q(k.names[t.x], k.categories[t.x], t.x) : t.x), t.splice(r, 0, m);
|
|
239
|
-
});
|
|
240
|
-
return le(i, "exportData", { dataRows: u = u.concat(y) }), u;
|
|
241
|
-
}
|
|
242
|
-
function E(o) {
|
|
243
|
-
let s = (r) => {
|
|
244
|
-
if (!r.tagName || r.tagName === "#text") return r.textContent || "";
|
|
245
|
-
let i = r.attributes, l = `<${r.tagName}`;
|
|
246
|
-
return i && Object.keys(i).forEach((p) => {
|
|
247
|
-
let d = i[p];
|
|
248
|
-
l += ` ${p}="${d}"`;
|
|
249
|
-
}), l += ">", l += r.textContent || "", (r.children || []).forEach((p) => {
|
|
250
|
-
l += s(p);
|
|
251
|
-
}), l += `</${r.tagName}>`;
|
|
252
|
-
};
|
|
253
|
-
return s(this.getTableAST(o));
|
|
254
|
-
}
|
|
255
|
-
function z(o) {
|
|
256
|
-
let s = 0, r = [], i = this, l = i.chart, p = l.options, d = o ? 1.1.toLocaleString()[1] : ".", h = q(i.options.useMultiLevelHeaders, !0), c = i.getDataRows(h), y = h ? c.shift() : null, w = c.shift(), C = function(D, g) {
|
|
257
|
-
let v = D.length;
|
|
258
|
-
if (g.length !== v) return !1;
|
|
259
|
-
for (; v--; ) if (D[v] !== g[v]) return !1;
|
|
260
|
-
return !0;
|
|
261
|
-
}, N = function(D, g, v, k) {
|
|
262
|
-
let u = q(k, ""), V = "highcharts-text" + (g ? " " + g : "");
|
|
263
|
-
return typeof u == "number" ? (u = l.numberFormatter(u, -1, d, D === "th" ? "" : void 0), V = "highcharts-number") : k || (V = "highcharts-empty"), { tagName: D, attributes: v = ie({ class: V }, v), textContent: u };
|
|
264
|
-
}, { tableCaption: A } = i.options || {};
|
|
265
|
-
A !== !1 && r.push({ tagName: "caption", attributes: { class: "highcharts-table-caption" }, textContent: typeof A == "string" ? A : p.title?.text || p.lang.chartTitle });
|
|
266
|
-
for (let D = 0, g = c.length; D < g; ++D) c[D].length > s && (s = c[D].length);
|
|
267
|
-
r.push((function(D, g, v) {
|
|
268
|
-
let k = [], u = 0, V = v || g && g.length, R, U = 0, B;
|
|
269
|
-
if (h && D && g && !C(D, g)) {
|
|
270
|
-
let t = [];
|
|
271
|
-
for (; u < V; ++u) if ((R = D[u]) === D[u + 1]) ++U;
|
|
272
|
-
else if (U) t.push(N("th", "highcharts-table-topheading", { scope: "col", colspan: U + 1 }, R)), U = 0;
|
|
273
|
-
else {
|
|
274
|
-
R === g[u] ? i.options.useRowspanHeaders ? (B = 2, delete g[u]) : (B = 1, g[u] = "") : B = 1;
|
|
275
|
-
let m = N("th", "highcharts-table-topheading", { scope: "col" }, R);
|
|
276
|
-
B > 1 && m.attributes && (m.attributes.valign = "top", m.attributes.rowspan = B), t.push(m);
|
|
277
|
-
}
|
|
278
|
-
k.push({ tagName: "tr", children: t });
|
|
279
|
-
}
|
|
280
|
-
if (g) {
|
|
281
|
-
let t = [];
|
|
282
|
-
for (u = 0, V = g.length; u < V; ++u) g[u] !== void 0 && t.push(N("th", null, { scope: "col" }, g[u]));
|
|
283
|
-
k.push({ tagName: "tr", children: t });
|
|
284
|
-
}
|
|
285
|
-
return { tagName: "thead", children: k };
|
|
286
|
-
})(y, w || [], Math.max(s, w?.length || 0)));
|
|
287
|
-
let te = [];
|
|
288
|
-
c.forEach(function(D) {
|
|
289
|
-
let g = [];
|
|
290
|
-
for (let v = 0; v < s; v++) g.push(N(v ? "td" : "th", null, v ? {} : { scope: "row" }, D[v]));
|
|
291
|
-
te.push({ tagName: "tr", children: g });
|
|
292
|
-
}), r.push({ tagName: "tbody", children: te });
|
|
293
|
-
let ae = { tree: { tagName: "table", id: `highcharts-data-table-${l.index}`, children: r } };
|
|
294
|
-
return le(l, "afterGetTableAST", ae), ae.tree;
|
|
295
|
-
}
|
|
296
|
-
function Y() {
|
|
297
|
-
this.toggleDataTable(!1);
|
|
298
|
-
}
|
|
299
|
-
function P(o) {
|
|
300
|
-
let s = this.chart, r = (o = q(o, !this.isDataTableVisible)) && !this.dataTableDiv;
|
|
301
|
-
if (r && (this.dataTableDiv = $e.createElement("div"), this.dataTableDiv.className = "highcharts-data-table", s.renderTo.parentNode.insertBefore(this.dataTableDiv, s.renderTo.nextSibling)), this.dataTableDiv) {
|
|
302
|
-
let h = this.dataTableDiv.style, c = h.display;
|
|
303
|
-
h.display = o ? "block" : "none", o ? (this.dataTableDiv.innerHTML = be().emptyHTML, new (be())([this.getTableAST()]).addToDOM(this.dataTableDiv), le(s, "afterViewData", { element: this.dataTableDiv, wasHidden: r || c !== h.display })) : le(s, "afterHideData");
|
|
304
|
-
}
|
|
305
|
-
this.isDataTableVisible = o;
|
|
306
|
-
let i = this.divElements, l = this.options, p = l.buttons?.contextButton.menuItems, d = s.options.lang;
|
|
307
|
-
if (l && l.menuItemDefinitions && d && d.viewData && d.hideData && p && i) {
|
|
308
|
-
let h = i[p.indexOf("viewData")];
|
|
309
|
-
h && be().setElementHTML(h, this.isDataTableVisible ? d.hideData : d.viewData);
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
function F() {
|
|
313
|
-
this.toggleDataTable(!0);
|
|
314
|
-
}
|
|
315
|
-
function Q(o) {
|
|
316
|
-
let s = this.chart, r = !!this.options.showExportInProgress, i = Ce.requestAnimationFrame || setTimeout;
|
|
317
|
-
i(() => {
|
|
318
|
-
r && s.showLoading(s.options.lang.exportInProgress), i(() => {
|
|
319
|
-
try {
|
|
320
|
-
o.call(this);
|
|
321
|
-
} finally {
|
|
322
|
-
r && s.hideLoading();
|
|
323
|
-
}
|
|
324
|
-
});
|
|
325
|
-
});
|
|
326
|
-
}
|
|
327
|
-
function se() {
|
|
328
|
-
let o = this.exporting, s = o?.dataTableDiv, r = (i, l) => i.children[l].textContent;
|
|
329
|
-
if (s && o.options.allowTableSorting) {
|
|
330
|
-
let i = s.querySelector("thead tr");
|
|
331
|
-
i && i.childNodes.forEach((l) => {
|
|
332
|
-
let p = s.querySelector("tbody");
|
|
333
|
-
l.addEventListener("click", function() {
|
|
334
|
-
let d = [...s.querySelectorAll("tr:not(thead tr)")], h = [...l.parentNode.children];
|
|
335
|
-
if (o) {
|
|
336
|
-
let c, y;
|
|
337
|
-
d.sort((c = h.indexOf(l), y = o.ascendingOrderInTable = !o.ascendingOrderInTable, (w, C) => {
|
|
338
|
-
let N, A;
|
|
339
|
-
return N = r(y ? w : C, c), A = r(y ? C : w, c), N === "" || A === "" || isNaN(N) || isNaN(A) ? N.toString().localeCompare(A) : N - A;
|
|
340
|
-
})).forEach((w) => {
|
|
341
|
-
p?.appendChild(w);
|
|
342
|
-
}), h.forEach((w) => {
|
|
343
|
-
["highcharts-sort-ascending", "highcharts-sort-descending"].forEach((C) => {
|
|
344
|
-
w.classList.contains(C) && w.classList.remove(C);
|
|
345
|
-
});
|
|
346
|
-
}), l.classList.add(o.ascendingOrderInTable ? "highcharts-sort-ascending" : "highcharts-sort-descending");
|
|
347
|
-
}
|
|
348
|
-
});
|
|
349
|
-
});
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
function ce() {
|
|
353
|
-
this.options?.exporting?.showTable && !this.options.chart.forExport && this.exporting?.viewData();
|
|
354
|
-
}
|
|
355
|
-
function ee() {
|
|
356
|
-
this.exporting?.dataTableDiv?.remove();
|
|
357
|
-
}
|
|
358
|
-
e.compose = function(o, s, r) {
|
|
359
|
-
var i;
|
|
360
|
-
if (i = "ExportData", !(0 > Le.indexOf(i) && Le.push(i))) return;
|
|
361
|
-
ie(je().prototype, { downloadCSV: function() {
|
|
362
|
-
return this.exporting?.downloadCSV();
|
|
363
|
-
}, downloadXLS: function() {
|
|
364
|
-
return this.exporting?.downloadXLS();
|
|
365
|
-
}, getCSV: function(p) {
|
|
366
|
-
return this.exporting?.getCSV(p);
|
|
367
|
-
}, getDataRows: function(p) {
|
|
368
|
-
return this.exporting?.getDataRows(p);
|
|
369
|
-
}, getTable: function(p) {
|
|
370
|
-
return this.exporting?.getTable(p);
|
|
371
|
-
}, getTableAST: function(p) {
|
|
372
|
-
return this.exporting?.getTableAST(p);
|
|
373
|
-
}, hideData: function() {
|
|
374
|
-
return this.exporting?.hideData();
|
|
375
|
-
}, toggleDataTable: function(p) {
|
|
376
|
-
return this.exporting?.toggleDataTable(p);
|
|
377
|
-
}, viewData: function() {
|
|
378
|
-
return this.exporting?.viewData();
|
|
379
|
-
} });
|
|
380
|
-
let l = s.prototype;
|
|
381
|
-
if (!l.downloadCSV) {
|
|
382
|
-
ye(o, "afterViewData", se), ye(o, "render", ce), ye(o, "destroy", ee), l.downloadCSV = n, l.downloadXLS = a, l.getCSV = x, l.getDataRows = f, l.getTable = E, l.getTableAST = z, l.hideData = Y, l.toggleDataTable = P, l.wrapLoading = Q, l.viewData = F, Ue(Ie);
|
|
383
|
-
let p = Be().exporting?.buttons?.contextButton?.menuItems;
|
|
384
|
-
p && p.push("separator", "downloadCSV", "downloadXLS", "viewData");
|
|
385
|
-
let { arearange: d, gantt: h, map: c, mapbubble: y, treemap: w, xrange: C } = r.types;
|
|
386
|
-
d && (d.prototype.keyToAxis = { low: "y", high: "y" }), h && (h.prototype.exportKey = "name", h.prototype.keyToAxis = { start: "x", end: "x" }), c && (c.prototype.exportKey = "name"), y && (y.prototype.exportKey = "name"), w && (w.prototype.exportKey = "name"), C && (C.prototype.keyToAxis = { x2: "x" });
|
|
387
|
-
}
|
|
388
|
-
};
|
|
389
|
-
})(W || (W = {}));
|
|
390
|
-
let _e = W, G = H();
|
|
391
|
-
G.dataURLtoBlob = G.dataURLtoBlob || Ee, G.downloadURL = G.downloadURL || me, _e.compose(G.Chart, G.Exporting, G.Series);
|
|
392
|
-
let Ke = H();
|
|
393
|
-
return De.default;
|
|
394
|
-
})());
|
|
395
|
-
})(fe)), fe.exports;
|
|
396
|
-
}
|
|
397
|
-
var Ne = Ge();
|
|
398
|
-
const ze = /* @__PURE__ */ Xe(Ne), Je = /* @__PURE__ */ We({
|
|
399
|
-
__proto__: null,
|
|
400
|
-
default: ze
|
|
401
|
-
}, [Ne]);
|
|
402
|
-
export {
|
|
403
|
-
Je as e
|
|
404
|
-
};
|