@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
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import { g as ae } from "./index-bTz35Vhl.js";
|
|
2
|
+
function ie(S, N) {
|
|
3
|
+
for (var w = 0; w < N.length; w++) {
|
|
4
|
+
const x = N[w];
|
|
5
|
+
if (typeof x != "string" && !Array.isArray(x)) {
|
|
6
|
+
for (const E in x)
|
|
7
|
+
if (E !== "default" && !(E in S)) {
|
|
8
|
+
const F = Object.getOwnPropertyDescriptor(x, E);
|
|
9
|
+
F && Object.defineProperty(S, E, F.get ? F : {
|
|
10
|
+
enumerable: !0,
|
|
11
|
+
get: () => x[E]
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
return Object.freeze(Object.defineProperty(S, Symbol.toStringTag, { value: "Module" }));
|
|
17
|
+
}
|
|
18
|
+
var U = { exports: {} }, le = U.exports, T;
|
|
19
|
+
function se() {
|
|
20
|
+
return T || (T = 1, function(S, N) {
|
|
21
|
+
/**
|
|
22
|
+
* Highcharts JS v12.5.0 (2026-01-12)
|
|
23
|
+
* @module highcharts/modules/offline-exporting
|
|
24
|
+
* @requires highcharts
|
|
25
|
+
* @requires highcharts/modules/exporting
|
|
26
|
+
*
|
|
27
|
+
* Client side exporting module
|
|
28
|
+
*
|
|
29
|
+
* (c) 2015-2026 Highsoft AS
|
|
30
|
+
* Author: Torstein Honsi / Oystein Moseng
|
|
31
|
+
*
|
|
32
|
+
* A commercial license may be required depending on use.
|
|
33
|
+
* See www.highcharts.com/license
|
|
34
|
+
*/
|
|
35
|
+
(function(w, x) {
|
|
36
|
+
S.exports = x(w._Highcharts, w._Highcharts.AST, w._Highcharts.Chart);
|
|
37
|
+
})("u" < typeof window ? le : window, (w, x, E) => (() => {
|
|
38
|
+
var F, G = { 660: (e) => {
|
|
39
|
+
e.exports = x;
|
|
40
|
+
}, 944: (e) => {
|
|
41
|
+
e.exports = w;
|
|
42
|
+
}, 960: (e) => {
|
|
43
|
+
e.exports = E;
|
|
44
|
+
} }, P = {};
|
|
45
|
+
function s(e) {
|
|
46
|
+
var o = P[e];
|
|
47
|
+
if (o !== void 0) return o.exports;
|
|
48
|
+
var a = P[e] = { exports: {} };
|
|
49
|
+
return G[e](a, a.exports, s), a.exports;
|
|
50
|
+
}
|
|
51
|
+
s.n = (e) => {
|
|
52
|
+
var o = e && e.__esModule ? () => e.default : () => e;
|
|
53
|
+
return s.d(o, { a: o }), o;
|
|
54
|
+
}, s.d = (e, o) => {
|
|
55
|
+
for (var a in o) s.o(o, a) && !s.o(e, a) && Object.defineProperty(e, a, { enumerable: !0, get: o[a] });
|
|
56
|
+
}, s.o = (e, o) => Object.prototype.hasOwnProperty.call(e, o);
|
|
57
|
+
var R = {};
|
|
58
|
+
s.d(R, { default: () => ne });
|
|
59
|
+
var V = s(944), b = s.n(V);
|
|
60
|
+
let { isSafari: I, win: f, win: { document: j } } = b(), { error: z } = b(), _ = f.URL || f.webkitURL || f;
|
|
61
|
+
function H(e) {
|
|
62
|
+
let o = e.replace(/filename=.*;/, "").match(/data:([^;]*)(;base64)?,([A-Z+\d\/]+)/i);
|
|
63
|
+
if (o && o.length > 3 && f.atob && f.ArrayBuffer && f.Uint8Array && f.Blob && _.createObjectURL) {
|
|
64
|
+
let a = f.atob(o[3]), h = new f.ArrayBuffer(a.length), t = new f.Uint8Array(h);
|
|
65
|
+
for (let r = 0; r < t.length; ++r) t[r] = a.charCodeAt(r);
|
|
66
|
+
return _.createObjectURL(new f.Blob([t], { type: o[1] }));
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
function $(e, o) {
|
|
70
|
+
let a = f.navigator, h = j.createElement("a");
|
|
71
|
+
if (typeof e != "string" && !(e instanceof String) && a.msSaveOrOpenBlob) return void a.msSaveOrOpenBlob(e, o);
|
|
72
|
+
if (e = "" + e, a.userAgent.length > 1e3) throw Error("Input too long");
|
|
73
|
+
let t = /Edge\/\d+/.test(a.userAgent);
|
|
74
|
+
if ((I && typeof e == "string" && e.indexOf("data:application/pdf") === 0 || t || e.length > 2e6) && !(e = H(e) || "")) throw Error("Failed to convert to blob");
|
|
75
|
+
if (h.download !== void 0) h.href = e, h.download = o, j.body.appendChild(h), h.click(), j.body.removeChild(h);
|
|
76
|
+
else try {
|
|
77
|
+
if (!f.open(e, "chart")) throw Error("Failed to open window");
|
|
78
|
+
} catch {
|
|
79
|
+
f.location.href = e;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
function q(e) {
|
|
83
|
+
return new Promise((o, a) => {
|
|
84
|
+
let h = j.getElementsByTagName("head")[0], t = j.createElement("script");
|
|
85
|
+
t.type = "text/javascript", t.src = e, t.onload = () => {
|
|
86
|
+
o();
|
|
87
|
+
}, t.onerror = () => {
|
|
88
|
+
let r = `Error loading script ${e}`;
|
|
89
|
+
z(r), a(Error(r));
|
|
90
|
+
}, h.appendChild(t);
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
var M = s(660), Z = s.n(M), J = s(960), K = s.n(J);
|
|
94
|
+
let Q = { exporting: {} }, { getOptions: W, setOptions: X } = b(), { composed: Y, doc: ee, win: C } = b(), { addEvent: te, extend: oe, pushUnique: re } = b();
|
|
95
|
+
(function(e) {
|
|
96
|
+
async function o(t, r, y, d) {
|
|
97
|
+
var p, i;
|
|
98
|
+
let u, n, c, l, v, L = (p = t, i = d, c = ee.createElement("div"), Z().setElementHTML(c, p), l = c.getElementsByTagName("text"), v = function(g, m) {
|
|
99
|
+
let O = g;
|
|
100
|
+
for (; O && O !== c; ) {
|
|
101
|
+
if (O.style[m]) {
|
|
102
|
+
let B = O.style[m];
|
|
103
|
+
m === "fontSize" && /em$/.test(B) && (B = Math.round(16 * parseFloat(B)) + "px"), g.style[m] = B;
|
|
104
|
+
break;
|
|
105
|
+
}
|
|
106
|
+
O = O.parentNode;
|
|
107
|
+
}
|
|
108
|
+
}, [].forEach.call(l, function(g) {
|
|
109
|
+
for (["fontFamily", "fontSize"].forEach((m) => {
|
|
110
|
+
v(g, m);
|
|
111
|
+
}), g.style.fontFamily = i?.normal ? "HighchartsFont" : String(g.style.fontFamily && g.style.fontFamily.split(" ").splice(-1)), u = g.getElementsByTagName("title"), [].forEach.call(u, function(m) {
|
|
112
|
+
g.removeChild(m);
|
|
113
|
+
}), n = g.getElementsByClassName("highcharts-text-outline"); n.length > 0; ) {
|
|
114
|
+
let m = n[0];
|
|
115
|
+
m.parentNode && m.parentNode.removeChild(m);
|
|
116
|
+
}
|
|
117
|
+
}), c.querySelector("svg"));
|
|
118
|
+
L && (await a(L, d), $(await h(L, 0, r), y));
|
|
119
|
+
}
|
|
120
|
+
async function a(t, r) {
|
|
121
|
+
let y, d, p = (i, u) => {
|
|
122
|
+
C.jspdf.jsPDF.API.events.push(["initialized", function() {
|
|
123
|
+
this.addFileToVFS(i, u), this.addFont(i, "HighchartsFont", i), this.getFontList()?.HighchartsFont || this.setFont("HighchartsFont");
|
|
124
|
+
}]);
|
|
125
|
+
};
|
|
126
|
+
for (let i of (r && (d = t.textContent || "", !/[^\u0000-\u007F\u200B]+/.test(d)) && (r = void 0), ["normal", "italic", "bold", "bolditalic"])) {
|
|
127
|
+
let u = r?.[i];
|
|
128
|
+
if (u) try {
|
|
129
|
+
let n = await C.fetch(u);
|
|
130
|
+
if (!n.ok) throw Error(`Failed to fetch font: ${u}`);
|
|
131
|
+
let c = await n.blob(), l = new FileReader(), v = await new Promise((L, g) => {
|
|
132
|
+
l.onloadend = () => {
|
|
133
|
+
typeof l.result == "string" ? L(l.result.split(",")[1]) : g(Error("Failed to read font as base64"));
|
|
134
|
+
}, l.onerror = g, l.readAsDataURL(c);
|
|
135
|
+
});
|
|
136
|
+
p(i, v), i === "normal" && (y = v);
|
|
137
|
+
} catch {
|
|
138
|
+
}
|
|
139
|
+
else y && p(i, y);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
async function h(t, r, y) {
|
|
143
|
+
let d = (Number(t.getAttribute("width")) + 2 * r) * y, p = (Number(t.getAttribute("height")) + 2 * r) * y, i = new C.jspdf.jsPDF(p > d ? "p" : "l", "pt", [d, p]);
|
|
144
|
+
[].forEach.call(t.querySelectorAll('*[visibility="hidden"]'), function(n) {
|
|
145
|
+
n.parentNode.removeChild(n);
|
|
146
|
+
});
|
|
147
|
+
let u = t.querySelectorAll("linearGradient");
|
|
148
|
+
for (let n = 0; n < u.length; n++) {
|
|
149
|
+
let c = u[n].querySelectorAll("stop"), l = 0;
|
|
150
|
+
for (; l < c.length && c[l].getAttribute("offset") === "0" && c[l + 1].getAttribute("offset") === "0"; ) c[l].remove(), l++;
|
|
151
|
+
}
|
|
152
|
+
return [].forEach.call(t.querySelectorAll("tspan"), (n) => {
|
|
153
|
+
n.textContent === "" && (n.textContent = " ", n.setAttribute("dx", -5));
|
|
154
|
+
}), await i.svg(t, { x: 0, y: 0, width: d, height: p, removeInvalid: !0 }), i.output("datauristring");
|
|
155
|
+
}
|
|
156
|
+
e.compose = function(t) {
|
|
157
|
+
if (te(t, "downloadSVG", async function(y) {
|
|
158
|
+
let { svg: d, exportingOptions: p, exporting: i, preventDefault: u } = y;
|
|
159
|
+
if (p?.type === "application/pdf") {
|
|
160
|
+
u?.();
|
|
161
|
+
try {
|
|
162
|
+
let { type: n, filename: c, scale: l, libURL: v } = b().Exporting.prepareImageOptions(p);
|
|
163
|
+
n === "application/pdf" && (C.jspdf?.jsPDF || (await q(`${v}jspdf.js`), await q(`${v}svg2pdf.js`)), await o(d, l, c, p?.pdfFont));
|
|
164
|
+
} catch (n) {
|
|
165
|
+
await i?.fallbackToServer(p, n);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}), !re(Y, "OfflineExporting")) return;
|
|
169
|
+
oe(K().prototype, { exportChartLocal: async function(y, d) {
|
|
170
|
+
await this.exporting?.exportChart(y, d);
|
|
171
|
+
} }), X(Q);
|
|
172
|
+
let r = W().exporting?.buttons?.contextButton?.menuItems;
|
|
173
|
+
r && r.push("downloadPDF");
|
|
174
|
+
}, e.downloadSVGLocal = async function(t, r) {
|
|
175
|
+
await b().Exporting.prototype.downloadSVG.call(void 0, t, r);
|
|
176
|
+
};
|
|
177
|
+
})(F || (F = {}));
|
|
178
|
+
let D = F, A = b();
|
|
179
|
+
A.dataURLtoBlob = A.dataURLtoBlob || H, A.downloadSVGLocal = D.downloadSVGLocal, A.downloadURL = A.downloadURL || $, D.compose(A.Exporting);
|
|
180
|
+
let ne = b();
|
|
181
|
+
return R.default;
|
|
182
|
+
})());
|
|
183
|
+
}(U)), U.exports;
|
|
184
|
+
}
|
|
185
|
+
var k = se();
|
|
186
|
+
const fe = /* @__PURE__ */ ae(k), ce = /* @__PURE__ */ ie({
|
|
187
|
+
__proto__: null,
|
|
188
|
+
default: fe
|
|
189
|
+
}, [k]);
|
|
190
|
+
export {
|
|
191
|
+
ce as o
|
|
192
|
+
};
|