@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.
Files changed (32) hide show
  1. package/dist/action-kit.mjs +1 -1
  2. package/dist/annotations-BotVbqYk.js +1275 -0
  3. package/dist/components/badge/stories/basic.stories.d.ts +2 -2
  4. package/dist/components/badge/stories/blue.stories.d.ts +2 -2
  5. package/dist/components/badge/stories/dark.stories.d.ts +2 -2
  6. package/dist/components/badge/stories/green.stories.d.ts +2 -2
  7. package/dist/components/badge/stories/orange.stories.d.ts +2 -2
  8. package/dist/components/badge/stories/pink.stories.d.ts +2 -2
  9. package/dist/components/badge/stories/purple.stories.d.ts +2 -2
  10. package/dist/components/badge/stories/red.stories.d.ts +2 -2
  11. package/dist/components/badge/stories/teal.stories.d.ts +2 -2
  12. package/dist/components/badge/stories/yellow.stories.d.ts +2 -2
  13. package/dist/components/cascader/stories/default.stories.d.ts +16 -16
  14. package/dist/export-data-BR_-2Q3f.js +332 -0
  15. package/dist/exporting-DR0s0ify.js +601 -0
  16. package/dist/funnel-DL7kiG31.js +134 -0
  17. package/dist/{index-6Py-WZ9e.js → index-CBkR2AwI.js} +2355 -2349
  18. package/dist/map-CMb83okh.js +1731 -0
  19. package/dist/offline-exporting-YDP5IlMX.js +192 -0
  20. package/dist/stock-CBVAQBFc.js +2054 -0
  21. package/dist/venn-D6eKe_-O.js +453 -0
  22. package/dist/wordcloud-t7GdM2hM.js +227 -0
  23. package/package.json +30 -15
  24. package/dist/annotations-DSkf_ftr.js +0 -1496
  25. package/dist/export-data-DCTe5P_S.js +0 -404
  26. package/dist/exporting-DQGEobM-.js +0 -739
  27. package/dist/funnel-CqFEWYxB.js +0 -201
  28. package/dist/map-DAB70ark.js +0 -1928
  29. package/dist/offline-exporting-aCzMDQAJ.js +0 -203
  30. package/dist/stock-CYJWuEFp.js +0 -2216
  31. package/dist/venn-Dec0FzLN.js +0 -498
  32. package/dist/wordcloud-CjsQdxnL.js +0 -268
@@ -1,268 +0,0 @@
1
- import { g as zt } from "./index-6Py-WZ9e.js";
2
- function Ot(D, R) {
3
- for (var z = 0; z < R.length; z++) {
4
- const v = R[z];
5
- if (typeof v != "string" && !Array.isArray(v)) {
6
- for (const j in v)
7
- if (j !== "default" && !(j in D)) {
8
- const Y = Object.getOwnPropertyDescriptor(v, j);
9
- Y && Object.defineProperty(D, j, Y.get ? Y : {
10
- enumerable: !0,
11
- get: () => v[j]
12
- });
13
- }
14
- }
15
- }
16
- return Object.freeze(Object.defineProperty(D, Symbol.toStringTag, { value: "Module" }));
17
- }
18
- var B = { exports: {} }, _t = B.exports, lt;
19
- function Tt() {
20
- return lt || (lt = 1, (function(D, R) {
21
- /**
22
- * Highcharts JS v12.6.0 (2026-04-13)
23
- * @module highcharts/modules/wordcloud
24
- * @requires highcharts
25
- *
26
- * (c) 2016-2026 Highsoft AS
27
- * Authors: Jon Arild Nygård
28
- *
29
- * A commercial license may be required depending on use.
30
- * See www.highcharts.com/license
31
- */
32
- (function(z, v) {
33
- D.exports = v(z._Highcharts, z._Highcharts.SeriesRegistry);
34
- })("u" < typeof window ? _t : window, (z, v) => (() => {
35
- var j = { 512: (t) => {
36
- t.exports = v;
37
- }, 944: (t) => {
38
- t.exports = z;
39
- } }, Y = {};
40
- function S(t) {
41
- var e = Y[t];
42
- if (e !== void 0) return e.exports;
43
- var o = Y[t] = { exports: {} };
44
- return j[t](o, o.exports, S), o.exports;
45
- }
46
- S.n = (t) => {
47
- var e = t && t.__esModule ? () => t.default : () => t;
48
- return S.d(e, { a: e }), e;
49
- }, S.d = (t, e) => {
50
- for (var o in e) S.o(e, o) && !S.o(t, o) && Object.defineProperty(t, o, { enumerable: !0, get: e[o] });
51
- }, S.o = (t, e) => Object.prototype.hasOwnProperty.call(t, e);
52
- var V = {};
53
- S.d(V, { default: () => Xt });
54
- var ht = S(944), W = S.n(ht);
55
- let ut = function(t, e) {
56
- let { animatableAttribs: o, onComplete: i, css: r, renderer: n } = e, a = t.series && t.series.chart.hasRendered ? void 0 : t.series && t.series.options.animation, l = t.graphic;
57
- if (e.attribs = { ...e.attribs, class: t.getClassName() }, t.shouldDraw()) l || (t.graphic = l = n.text(), l.add(e.group)), r && l.css(r), l.attr(e.attribs).animate(o, !e.isNew && a, i);
58
- else if (l) {
59
- let c = () => {
60
- t.graphic = l = l && l.destroy(), typeof i == "function" && i();
61
- };
62
- Object.keys(o).length ? l.animate(o, void 0, () => c()) : c();
63
- }
64
- };
65
- var pt = S(512), E = S.n(pt);
66
- let { doc: Yt, win: Ct } = W();
67
- function C(t, e) {
68
- let o;
69
- for (o in t || (t = {}), e) t[o] = e[o];
70
- return t;
71
- }
72
- let q = Array.prototype.find ? function(t, e) {
73
- return t.find(e);
74
- } : function(t, e) {
75
- let o, i = t.length;
76
- for (o = 0; o < i; o++) if (e(t[o], o)) return t[o];
77
- };
78
- function k(t) {
79
- return O(t) && typeof t.nodeType == "number";
80
- }
81
- function y(t) {
82
- return typeof t == "number" && !isNaN(t) && t < 1 / 0 && t > -1 / 0;
83
- }
84
- function U(t) {
85
- let e = Object.prototype.toString.call(t);
86
- return e === "[object Array]" || e === "[object Array Iterator]";
87
- }
88
- function O(t, e) {
89
- return !!t && typeof t == "object" && (!e || !U(t));
90
- }
91
- function I(t, ...e) {
92
- let o, i = [t, ...e], r = {}, n = function(l, c) {
93
- return typeof l != "object" && (l = {}), (function(s, h, x) {
94
- for (let M in s) Object.hasOwnProperty.call(s, M) && h.call(s[M], s[M], M, s);
95
- })(c, function(s, h) {
96
- if (h !== "__proto__" && h !== "constructor") {
97
- let x;
98
- !O(s, !0) || (x = s?.constructor, O(s, !0) && !k(s) && x?.name && x.name !== "Object") || k(s) ? l[h] = c[h] : l[h] = n(l[h] || {}, s);
99
- }
100
- }), l;
101
- };
102
- t === !0 && (r = i[1], i = Array.prototype.slice.call(i, 2));
103
- let a = i.length;
104
- for (o = 0; o < a; o++) r = n(r, i[o]);
105
- return r;
106
- }
107
- let { column: { prototype: { pointClass: ct } } } = E().seriesTypes;
108
- class $ extends ct {
109
- isValid() {
110
- return !0;
111
- }
112
- }
113
- C($.prototype, { weight: 1 });
114
- let { deg2rad: dt } = W();
115
- function ft(t, e) {
116
- return !(e.left > t.right || e.right < t.left || e.top > t.bottom || e.bottom < t.top);
117
- }
118
- function K(t) {
119
- let e = t.axes || [];
120
- return e.length || (e = [], t.concat([t[0]]).reduce((o, i) => {
121
- let r, n, a = (r = i[0] - o[0], [[-(n = i[1] - o[1]), r], [n, -r]])[0];
122
- return q(e, (l) => l[0] === a[0] && l[1] === a[1]) || e.push(a), i;
123
- }), t.axes = e), e;
124
- }
125
- function G(t, e) {
126
- let o = t.map((i) => {
127
- let r = i[0], n = i[1];
128
- return r * e[0] + n * e[1];
129
- });
130
- return { min: Math.min.apply(this, o), max: Math.max.apply(this, o) };
131
- }
132
- function J(t, e) {
133
- let o = K(t), i = K(e);
134
- return !q(o.concat(i), (r) => {
135
- let n, a;
136
- return n = G(t, r), (a = G(e, r)).min > n.max || a.max < n.min;
137
- });
138
- }
139
- function Q(t, e) {
140
- let o = 4 * t, i = Math.ceil((Math.sqrt(o) - 1) / 2), r = 2 * i + 1, n = Math.pow(r, 2), a = !1;
141
- return r -= 1, t <= 1e4 && (typeof a == "boolean" && o >= n - r && (a = { x: i - (n - o), y: -i }), n -= r, typeof a == "boolean" && o >= n - r && (a = { x: -i, y: -i + (n - o) }), n -= r, typeof a == "boolean" && (a = o >= n - r ? { x: -i + (n - o), y: i } : { x: i, y: i - (n - o - r) }), a.x *= 5, a.y *= 5), a;
142
- }
143
- function Z(t, e) {
144
- let o = Math.pow(10, y(e) ? e : 14);
145
- return Math.round(t * o) / o;
146
- }
147
- function tt(t, e) {
148
- let o = t[0], i = t[1], r = -(dt * e), n = Math.cos(r), a = Math.sin(r);
149
- return [Z(o * n - i * a), Z(o * a + i * n)];
150
- }
151
- function et(t, e, o) {
152
- let i = tt([t[0] - e[0], t[1] - e[1]], o);
153
- return [i[0] + e[0], i[1] + e[1]];
154
- }
155
- let { noop: N } = W(), { column: ot } = E().seriesTypes, { archimedeanSpiral: gt, extendPlayingField: it, getBoundingBoxFromPolygon: mt, getPlayingField: yt, getPolygon: xt, getRandomPosition: rt, getRotation: H, getScale: bt, getSpiral: Mt, intersectionTesting: nt, isPolygonsColliding: wt, rectangularSpiral: St, rotate2DToOrigin: Pt, rotate2DToPoint: At, squareSpiral: Ft, updateFieldBoundaries: vt } = { archimedeanSpiral: function(t, e) {
156
- let o = e.field, i = o.width * o.width + o.height * o.height, r = 0.8 * t, n = !1;
157
- return t <= 1e4 && (Math.min(Math.abs((n = { x: r * Math.cos(r), y: r * Math.sin(r) }).x), Math.abs(n.y)) < i || (n = !1)), n;
158
- }, extendPlayingField: function(t, e) {
159
- let o, i, r, n, a, l;
160
- return O(t) && O(e) ? (o = e.bottom - e.top, i = e.right - e.left, a = i * (r = t.ratioX) > o * (n = t.ratioY) ? i : o, l = I(t, { width: t.width + a * r * 2, height: t.height + a * n * 2 })) : l = t, l;
161
- }, getBoundingBoxFromPolygon: function(t) {
162
- return t.reduce(function(e, o) {
163
- let i = o[0], r = o[1];
164
- return e.left = Math.min(i, e.left), e.right = Math.max(i, e.right), e.bottom = Math.max(r, e.bottom), e.top = Math.min(r, e.top), e;
165
- }, { left: Number.MAX_VALUE, right: -Number.MAX_VALUE, bottom: -Number.MAX_VALUE, top: Number.MAX_VALUE });
166
- }, getPlayingField: function(t, e, o) {
167
- let i = o.reduce(function(l, c) {
168
- let s = c.dimensions, h = Math.max(s.width, s.height);
169
- return l.maxHeight = Math.max(l.maxHeight, s.height), l.maxWidth = Math.max(l.maxWidth, s.width), l.area += h * h, l;
170
- }, { maxHeight: 0, maxWidth: 0, area: 0 }), r = Math.max(i.maxHeight, i.maxWidth, 0.85 * Math.sqrt(i.area)), n = t > e ? t / e : 1, a = e > t ? e / t : 1;
171
- return { width: r * n, height: r * a, ratioX: n, ratioY: a };
172
- }, getPolygon: function(t, e, o, i, r) {
173
- let n = [t, e], a = t - o / 2, l = t + o / 2, c = e - i / 2, s = e + i / 2;
174
- return [[a, c], [l, c], [l, s], [a, s]].map(function(h) {
175
- return et(h, n, -r);
176
- });
177
- }, getRandomPosition: function(t) {
178
- return Math.round(t * (Math.random() + 0.5) / 2);
179
- }, getRotation: function(t, e, o, i) {
180
- let r = !1, n;
181
- return y(t) && y(e) && y(o) && y(i) && t > 0 && e > -1 && i > o && (n = (i - o) / (t - 1 || 1), r = o + e % t * n), r;
182
- }, getScale: function(t, e, o) {
183
- let i = 2 * Math.max(Math.abs(o.top), Math.abs(o.bottom)), r = 2 * Math.max(Math.abs(o.left), Math.abs(o.right));
184
- return Math.min(r > 0 ? 1 / r * t : 1, i > 0 ? 1 / i * e : 1);
185
- }, getSpiral: function(t, e) {
186
- let o = [];
187
- for (let i = 1; i < 1e4; i++) o.push(t(i, e));
188
- return (i) => i <= 1e4 && o[i - 1];
189
- }, intersectionTesting: function(t, e) {
190
- let o, i, r, n, a, l, c = e.placed, s = e.field, h = e.rectangle, x = e.polygon, M = e.spiral, b = t.rect = C({}, h), A = 1, d = { x: 0, y: 0 };
191
- for (t.polygon = x, t.rotation = e.rotation; d !== !1 && (o = t.rect, i = t.polygon, r = t.lastCollidedWith, n = function(g) {
192
- let u = ft(o, g.rect);
193
- return u && (t.rotation % 90 || g.rotation % 90) && (u = J(i, g.polygon)), u;
194
- }, a = !1, r && !(a = n(r)) && delete t.lastCollidedWith, !a && (a = !!q(c, function(g) {
195
- let u = n(g);
196
- return u && (t.lastCollidedWith = g), u;
197
- })), a || !((l = { left: -(s.width / 2), right: s.width / 2, top: -(s.height / 2), bottom: s.height / 2 }).left < b.left && l.right > b.right && l.top < b.top && l.bottom > b.bottom)); ) O(d = M(A)) && (b.left = h.left + d.x, b.right = h.right + d.x, b.top = h.top + d.y, b.bottom = h.bottom + d.y, t.polygon = (function(g, u, F) {
198
- return F.map(function(p) {
199
- return [p[0] + g, p[1] + u];
200
- });
201
- })(d.x, d.y, x)), A++;
202
- return d;
203
- }, isPolygonsColliding: J, rectangularSpiral: function(t, e) {
204
- let o = Q(t), i = e.field;
205
- return o && (o.x *= i.ratioX, o.y *= i.ratioY), o;
206
- }, rotate2DToOrigin: tt, rotate2DToPoint: et, squareSpiral: Q, updateFieldBoundaries: function(t, e) {
207
- return (!y(t.left) || t.left > e.left) && (t.left = e.left), (!y(t.right) || t.right < e.right) && (t.right = e.right), (!y(t.top) || t.top > e.top) && (t.top = e.top), (!y(t.bottom) || t.bottom < e.bottom) && (t.bottom = e.bottom), t;
208
- } };
209
- class L extends ot {
210
- pointAttribs(e, o) {
211
- let i = W().seriesTypes.column.prototype.pointAttribs.call(this, e, o);
212
- return delete i.stroke, delete i["stroke-width"], i;
213
- }
214
- deriveFontSize(e, o, i) {
215
- let r = y(e) ? e : 0, n = y(o) ? o : 1;
216
- return Math.floor(Math.max(y(i) ? i : 1, r * n));
217
- }
218
- drawPoints() {
219
- if (this.zooming || this.defaultScale && this.group.scaleX !== this.defaultScale) return;
220
- let e = this.hasRendered, o = this.xAxis, i = this.yAxis, r = this.chart, n = this.group, a = this.options, l = a.animation, c = a.allowExtendPlayingField, s = r.renderer, h = [], x = this.placementStrategy[a.placementStrategy], M = a.rotation, b = this.points.map(function(p) {
221
- return p.weight;
222
- }), A = Math.max.apply(null, b), d = this.points.concat().sort((p, _) => _.weight - p.weight), g = s.text().add(n), u;
223
- for (let p of (this.group.attr({ scaleX: 1, scaleY: 1 }), d)) {
224
- let _ = 1 / A * p.weight, X = C({ fontSize: this.deriveFontSize(_, a.maxFontSize, a.minFontSize) + "px" }, a.style);
225
- g.css(X).attr({ x: 0, y: 0, text: p.name });
226
- let f = g.getBBox(!0);
227
- p.dimensions = { height: f.height, width: f.width };
228
- }
229
- u = yt(o.len, i.len, d);
230
- let F = Mt(this.spirals[a.spiral], { field: u });
231
- for (let p of d) {
232
- let _ = 1 / A * p.weight, X = C({ fontSize: this.deriveFontSize(_, a.maxFontSize, a.minFontSize) + "px" }, a.style), f = x(p, { data: d, field: u, placed: h, rotation: M }), m = C(this.pointAttribs(p, p.selected && "select"), { align: "center", "alignment-baseline": "middle", "dominant-baseline": "middle", x: f.x, y: f.y, text: p.name, rotation: y(f.rotation) ? f.rotation : void 0 }), T = xt(f.x, f.y, p.dimensions.width, p.dimensions.height, f.rotation), w = mt(T), P = nt(p, { rectangle: w, polygon: T, field: u, placed: h, spiral: F, rotation: f.rotation }), at;
233
- !P && c && (u = it(u, w), P = nt(p, { rectangle: w, polygon: T, field: u, placed: h, spiral: F, rotation: f.rotation })), O(P) ? (m.x = (m.x || 0) + P.x, m.y = (m.y || 0) + P.y, w.left += P.x, w.right += P.x, w.top += P.y, w.bottom += P.y, u = vt(u, w), h.push(p), p.isNull = !1, p.isInside = !0) : p.isNull = !0, l && (at = { x: m.x, y: m.y }, e ? (delete m.x, delete m.y) : (m.x = 0, m.y = 0)), ut(p, { animatableAttribs: at, attribs: m, css: X, group: n, renderer: s });
234
- }
235
- g = g.destroy(), this.defaultScale = bt(o.len, i.len, u), this.field = u, this.group.attr({ scaleX: this.defaultScale, scaleY: this.defaultScale });
236
- }
237
- hasData() {
238
- return O(this) && this.visible === !0 && U(this.points) && this.points.length > 0;
239
- }
240
- getPlotBox(e) {
241
- let { chart: o, group: i, zooming: r } = this, { plotSizeX: n = 0, plotSizeY: a = 0, inverted: l } = o, c = this[l ? "yAxis" : "xAxis"], s = this[l ? "xAxis" : "yAxis"], h = c ? c.len : o.plotWidth, x = s ? s.len : o.plotHeight, M = c ? c.left : o.plotLeft, b = s ? s.top : o.plotTop, A = this.field, d = 0, g = 0, u = M + h / 2, F = b + x / 2, p = u, _ = F, X = this.defaultScale || 1, f = 0, m = 0;
242
- if (A && (f = 2 * Math.max(Math.abs(A.top), Math.abs(A.bottom)), m = 2 * Math.max(Math.abs(A.left), Math.abs(A.right))), l && ([m, f] = [f, m]), i && r) {
243
- let T = M + Math.max(m * (X = Math.max(r.scale, this.defaultScale || 1)), h) / 2, w = b + Math.max(f * X, x) / 2, P = X - (i.scaleX || 1);
244
- d = P * ((n - m) / 2 + r.zoomX * n - h / 2), g = P * ((a - f) / 2 + r.zoomY * a - x / 2), e === "series" && (r.x = Math.max(0, Math.min(1 - r.width, r.x + r.panX / r.scale)), d += r.panX * n, r.panX = 0, r.y = Math.max(0, Math.min(1 - r.height, r.y + r.panY / r.scale)), g += r.panY * a, r.panY = 0), y(i.translateX) && y(i.translateY) && (p = i.translateX, _ = i.translateY), u = p - d, (F = _ - g) > w ? F = w : F < 2 * b + x - w && (F = 2 * b + x - w), u > T ? u = T : u < 2 * M + h - T && (u = 2 * M + h - T);
245
- }
246
- return { translateX: u, translateY: F, scaleX: X, scaleY: X };
247
- }
248
- }
249
- L.defaultOptions = I(ot.defaultOptions, { allowExtendPlayingField: !0, animation: { duration: 500 }, borderWidth: 0, clip: !1, colorByPoint: !0, cropThreshold: 1 / 0, colorKey: "weight", minFontSize: 1, maxFontSize: 25, placementStrategy: "center", rotation: { from: 0, orientations: 2, to: 90 }, showInLegend: !1, spiral: "rectangular", style: { fontFamily: "sans-serif", fontWeight: "900", whiteSpace: "nowrap" }, tooltip: { followPointer: !0, pointFormat: '<span style="color:{point.color}">●</span> {series.name}: <b>{point.weight}</b><br/>' } }), C(L.prototype, { animate: N, animateDrilldown: N, animateDrillupFrom: N, isCartesian: !1, pointClass: $, setClip: N, placementStrategy: { random: function(t, e) {
250
- let o = e.field, i = e.rotation;
251
- return { x: rt(o.width) - o.width / 2, y: rt(o.height) - o.height / 2, rotation: H(i.orientations, t.index, i.from, i.to) };
252
- }, center: function(t, e) {
253
- let o = e.rotation;
254
- return { x: 0, y: 0, rotation: H(o.orientations, t.index, o.from, o.to) };
255
- } }, pointArrayMap: ["weight"], spirals: { archimedean: gt, rectangular: St, square: Ft }, utils: { extendPlayingField: it, getRotation: H, isPolygonsColliding: wt, rotate2DToOrigin: Pt, rotate2DToPoint: At } }), E().registerSeriesType("wordcloud", L);
256
- let Xt = W();
257
- return V.default;
258
- })());
259
- })(B)), B.exports;
260
- }
261
- var st = Tt();
262
- const jt = /* @__PURE__ */ zt(st), Wt = /* @__PURE__ */ Ot({
263
- __proto__: null,
264
- default: jt
265
- }, [st]);
266
- export {
267
- Wt as w
268
- };