@mobileaction/action-kit 1.55.11 → 1.55.12-beta.0

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.
@@ -1,13 +1,12 @@
1
- import type { MaChartProps } from './types';
2
- import Highcharts from 'highcharts';
3
- declare function getChart(): Highcharts.Chart;
1
+ import type { ChartConstructor, MaChartProps } from './types';
2
+ declare function getChart(): ChartConstructor;
4
3
  declare const _default: import("vue").DefineComponent<MaChartProps, {
5
4
  getChart: typeof getChart;
6
5
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
7
- chartReady: (chart: Highcharts.Chart) => any;
6
+ chartReady: (chart: ChartConstructor) => any;
8
7
  chartDestroyed: () => any;
9
8
  }, string, import("vue").PublicProps, Readonly<MaChartProps> & Readonly<{
10
- onChartReady?: (chart: Highcharts.Chart) => any;
9
+ onChartReady?: (chart: ChartConstructor) => any;
11
10
  onChartDestroyed?: () => any;
12
11
  }>, {
13
12
  constructorType: import("./types").ChartConstructorType;
@@ -1,4 +1,5 @@
1
1
  import type Highcharts from 'highcharts';
2
+ export type * from 'highcharts';
2
3
  export interface MaChartEvents {
3
4
  /**
4
5
  * Triggered when the chart is loaded.
@@ -103,10 +104,10 @@ export interface MaChartProps {
103
104
  */
104
105
  suppressDefaultOptions?: boolean;
105
106
  }
106
- export type ChartNamespace = typeof Highcharts;
107
- export type ChartConstructorType = keyof typeof Highcharts;
108
- export type ChartConstructor = Highcharts.Chart;
107
+ export type ChartConstructor = Highcharts.Chart | Highcharts.StockChart | Highcharts.MapChart;
108
+ export type ChartConstructorType = 'chart' | 'stockChart' | 'mapChart';
109
109
  export type ChartOptions = Highcharts.Options;
110
+ export type ChartSeriesOptionsType = Highcharts.SeriesOptionsType;
110
111
  export type ChartUpdateArgs = [boolean] | [boolean, boolean] | [boolean, boolean, boolean];
111
112
  export type ChartModuleName = 'stock' | 'map' | 'wordcloud' | 'venn' | 'funnel' | 'annotations' | 'exporting' | 'offline-exporting' | 'export-data';
112
113
  export interface ModulesToLoad {
@@ -3,6 +3,8 @@ export interface MaRadioCardProps extends RadioProps {
3
3
  text?: string;
4
4
  hint?: string;
5
5
  disabled?: boolean;
6
+ width?: string;
7
+ height?: string;
6
8
  }
7
9
  declare var __VLS_8: {}, __VLS_10: {}, __VLS_12: {};
8
10
  type __VLS_Slots = {} & {
@@ -16,7 +18,10 @@ declare const __VLS_component: import("vue").DefineComponent<MaRadioCardProps, {
16
18
  "update:checked": (...args: any[]) => void;
17
19
  }, string, import("vue").PublicProps, Readonly<MaRadioCardProps> & Readonly<{
18
20
  "onUpdate:checked"?: (...args: any[]) => any;
19
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
21
+ }>, {
22
+ width: string;
23
+ height: string;
24
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
20
25
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
21
26
  export default _default;
22
27
  type __VLS_WithSlots<T, S> = T & {
@@ -26,6 +26,10 @@ type __VLS_Slots = {
26
26
  'option': ({ option }: {
27
27
  option: MaSelectOptionType;
28
28
  }) => unknown;
29
+ /**
30
+ * Slot for when no options are available
31
+ */
32
+ 'noOptions': () => unknown;
29
33
  /**
30
34
  * Customize dropdown header area
31
35
  */
@@ -1,5 +1,5 @@
1
1
  import type { App } from 'vue';
2
- import type { ActionKitConfigOptions } from './config';
2
+ import type { ActionKitConfigOptions } from './types';
3
3
  export declare const defaultOptions: {
4
4
  locale: {
5
5
  total: string;
@@ -18,6 +18,9 @@ export declare const defaultOptions: {
18
18
  confirm: string;
19
19
  noData: string;
20
20
  loading: string;
21
+ search: string;
22
+ itemSelected: string;
23
+ itemsSelected: string;
21
24
  aria: {
22
25
  close: string;
23
26
  closeDrawer: string;
@@ -0,0 +1,7 @@
1
+ import type { ActionKitLocaleOptions } from '../locales/types';
2
+ export interface UseActionKitConfig {
3
+ config: ActionKitConfigOptions;
4
+ }
5
+ export interface ActionKitConfigOptions {
6
+ locale?: ActionKitLocaleOptions;
7
+ }
@@ -1,2 +1,2 @@
1
- import type { UseActionKitConfig } from './config';
1
+ import type { UseActionKitConfig } from './types';
2
2
  export declare function useActionKit(): UseActionKitConfig;
@@ -1,4 +1,4 @@
1
- import { g as Ge } from "./index-HRyHV1rP.js";
1
+ import { g as Ge } from "./index-3mtfxEqv.js";
2
2
  function ze(G, le) {
3
3
  for (var R = 0; R < le.length; R++) {
4
4
  const k = le[R];
@@ -1,7 +1,7 @@
1
- import { g as Bt } from "./index-HRyHV1rP.js";
2
- function Gt(U, $) {
3
- for (var k = 0; k < $.length; k++) {
4
- const F = $[k];
1
+ import { g as Bt } from "./index-3mtfxEqv.js";
2
+ function Gt(U, q) {
3
+ for (var k = 0; k < q.length; k++) {
4
+ const F = q[k];
5
5
  if (typeof F != "string" && !Array.isArray(F)) {
6
6
  for (const R in F)
7
7
  if (R !== "default" && !(R in U)) {
@@ -15,9 +15,9 @@ function Gt(U, $) {
15
15
  }
16
16
  return Object.freeze(Object.defineProperty(U, Symbol.toStringTag, { value: "Module" }));
17
17
  }
18
- var q = { exports: {} }, Vt = q.exports, st;
19
- function qt() {
20
- return st || (st = 1, function(U, $) {
18
+ var $ = { exports: {} }, Vt = $.exports, st;
19
+ function $t() {
20
+ return st || (st = 1, function(U, q) {
21
21
  /**
22
22
  * Highcharts JS v12.3.0 (2025-06-21)
23
23
  * @module highcharts/modules/exporting
@@ -523,12 +523,12 @@ function qt() {
523
523
  let It = E();
524
524
  return Z.default;
525
525
  })());
526
- }(q)), q.exports;
526
+ }($)), $.exports;
527
527
  }
528
- var lt = qt();
529
- const $t = /* @__PURE__ */ Bt(lt), zt = /* @__PURE__ */ Gt({
528
+ var lt = $t();
529
+ const qt = /* @__PURE__ */ Bt(lt), zt = /* @__PURE__ */ Gt({
530
530
  __proto__: null,
531
- default: $t
531
+ default: qt
532
532
  }, [lt]);
533
533
  export {
534
534
  zt as e
@@ -1,23 +1,23 @@
1
- import { g as De } from "./index-HRyHV1rP.js";
2
- function He(q, J) {
1
+ import { g as De } from "./index-3mtfxEqv.js";
2
+ function He($, J) {
3
3
  for (var W = 0; W < J.length; W++) {
4
4
  const m = J[W];
5
5
  if (typeof m != "string" && !Array.isArray(m)) {
6
6
  for (const _ in m)
7
- if (_ !== "default" && !(_ in q)) {
7
+ if (_ !== "default" && !(_ in $)) {
8
8
  const E = Object.getOwnPropertyDescriptor(m, _);
9
- E && Object.defineProperty(q, _, E.get ? E : {
9
+ E && Object.defineProperty($, _, E.get ? E : {
10
10
  enumerable: !0,
11
11
  get: () => m[_]
12
12
  });
13
13
  }
14
14
  }
15
15
  }
16
- return Object.freeze(Object.defineProperty(q, Symbol.toStringTag, { value: "Module" }));
16
+ return Object.freeze(Object.defineProperty($, Symbol.toStringTag, { value: "Module" }));
17
17
  }
18
18
  var G = { exports: {} }, Te = G.exports, se;
19
19
  function Ie() {
20
- return se || (se = 1, function(q, J) {
20
+ return se || (se = 1, function($, J) {
21
21
  /**
22
22
  * Highcharts JS v12.3.0 (2025-06-21)
23
23
  * @module highcharts/modules/funnel
@@ -30,7 +30,7 @@ function Ie() {
30
30
  * License: www.highcharts.com/license
31
31
  */
32
32
  (function(W, m) {
33
- q.exports = m(W._Highcharts, W._Highcharts.SeriesRegistry);
33
+ $.exports = m(W._Highcharts, W._Highcharts.SeriesRegistry);
34
34
  })(typeof window > "u" ? Te : window, (W, m) => (() => {
35
35
  var _ = { 512: (i) => {
36
36
  i.exports = m;
@@ -64,8 +64,8 @@ function Ie() {
64
64
  }
65
65
  class N extends K {
66
66
  alignDataLabel(t, o, r, M, D) {
67
- let P = t.series, k = P.options.reversed, h = t.dlBox || t.shapeArgs, { align: $, padding: u = 0, verticalAlign: c } = r, H = ((P.options || {}).dataLabels || {}).inside, b = P.center[1], C = t.plotY || 0, T = o.height ?? o.getBBox().height, I = P.getWidthAt((k ? 2 * b - C : C) - h.height / 2 + T), S = c === "middle" ? (h.topWidth - h.bottomWidth) / 4 : (I - h.bottomWidth) / 2, Y = h.y, w = h.x;
68
- c === "middle" ? Y = h.y - h.height / 2 + T / 2 : c === "top" && (Y = h.y - h.height + T + u), (c === "top" && !k || c === "bottom" && k || c === "middle") && ($ === "right" ? w = h.x - u + S : $ === "left" && (w = h.x + u - S)), M = { x: w, y: k ? Y - h.height : Y, width: h.bottomWidth, height: h.height }, r.verticalAlign = "bottom", H && (r.distance = void 0), H && t.visible && ke.call(P, t, o, r, M, D), H && (!t.visible && t.dataLabel && (t.dataLabel.placed = !1), t.contrastColor && o.css({ color: t.contrastColor }));
67
+ let P = t.series, k = P.options.reversed, h = t.dlBox || t.shapeArgs, { align: q, padding: u = 0, verticalAlign: c } = r, H = ((P.options || {}).dataLabels || {}).inside, b = P.center[1], C = t.plotY || 0, T = o.height ?? o.getBBox().height, I = P.getWidthAt((k ? 2 * b - C : C) - h.height / 2 + T), S = c === "middle" ? (h.topWidth - h.bottomWidth) / 4 : (I - h.bottomWidth) / 2, Y = h.y, w = h.x;
68
+ c === "middle" ? Y = h.y - h.height / 2 + T / 2 : c === "top" && (Y = h.y - h.height + T + u), (c === "top" && !k || c === "bottom" && k || c === "middle") && (q === "right" ? w = h.x - u + S : q === "left" && (w = h.x + u - S)), M = { x: w, y: k ? Y - h.height : Y, width: h.bottomWidth, height: h.height }, r.verticalAlign = "bottom", H && (r.distance = void 0), H && t.visible && ke.call(P, t, o, r, M, D), H && (!t.visible && t.dataLabel && (t.dataLabel.placed = !1), t.contrastColor && o.css({ color: t.contrastColor }));
69
69
  }
70
70
  drawDataLabels() {
71
71
  (Pe(this.options.dataLabels || {})[0].inside ? ye : K).prototype.drawDataLabels.call(this);
@@ -75,7 +75,7 @@ function Ie() {
75
75
  return { distance: o, natural: { x: 0, y: r }, computed: {}, alignment: t.half ? "right" : "left", connectorPosition: { breakAt: { x: D + (o - 5) * M, y: r }, touchingSliceAt: { x: D + o * M, y: r } } };
76
76
  }
77
77
  translate() {
78
- let t = this, o = t.chart, r = t.options, M = r.reversed, D = r.ignoreHiddenPoint, P = fe.optionsToObject(r.borderRadius), k = o.plotWidth, h = o.plotHeight, $ = r.center, u = F($[0], k), c = F($[1], h), H = F(r.width, k), b = F(r.height, h), C = F(r.neckWidth, k), T = F(r.neckHeight, h), I = c - b / 2 + b - T, S = t.points, Y = ie(P.radius, H), w = P.scope, _e = +(r.dataLabels.position === "left"), z = (s) => {
78
+ let t = this, o = t.chart, r = t.options, M = r.reversed, D = r.ignoreHiddenPoint, P = fe.optionsToObject(r.borderRadius), k = o.plotWidth, h = o.plotHeight, q = r.center, u = F(q[0], k), c = F(q[1], h), H = F(r.width, k), b = F(r.height, h), C = F(r.neckWidth, k), T = F(r.neckHeight, h), I = c - b / 2 + b - T, S = t.points, Y = ie(P.radius, H), w = P.scope, _e = +(r.dataLabels.position === "left"), z = (s) => {
79
79
  let y = Math.tan(s / 2), L = Math.cos(B), j = Math.sin(B), V = Y, e = V / y, g = Math.tan((Math.PI - s) / 3.2104);
80
80
  return e > X && (V = (e = X) * y), { dx: [e * L, (e - (g *= V)) * L, e - g, e], dy: [e * j, (e - g) * j, e - g, e].map((ne) => M ? -ne : ne) };
81
81
  }, ee = 0, re = 0, R, f, Z, B, X, A, p, v, n, a, l, d;