jplan-pack 0.6.714 → 0.6.716

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 (45) hide show
  1. package/dist/{AuthRoute-DZfxjGOn.js → AuthRoute-euKAeE4P.js} +1 -1
  2. package/dist/{AuthRoute-Cf6eYP2e.mjs → AuthRoute-i0Nt5sxX.mjs} +1 -1
  3. package/dist/WidgetChartBar-ChMg_dbz.js +1 -0
  4. package/dist/WidgetChartBar-SQYYhXES.mjs +118 -0
  5. package/dist/WidgetChartPieStatic-BYkR3u15.js +1 -0
  6. package/dist/WidgetChartPieStatic-ClHypXEk.mjs +82 -0
  7. package/dist/WidgetImage-CIEAwTIN.js +1 -0
  8. package/dist/WidgetImage-DrcRKR9h.mjs +41 -0
  9. package/dist/WidgetLabel-4e1P9WaS.mjs +44 -0
  10. package/dist/WidgetLabel-DTgHjt89.js +1 -0
  11. package/dist/WidgetLabel.css +1 -0
  12. package/dist/WidgetShortcut-OktPb_sd.js +1 -0
  13. package/dist/WidgetShortcut-QlP0y73q.mjs +37 -0
  14. package/dist/WidgetShortcut.css +1 -0
  15. package/dist/WidgetSpacer-BLKBeo8N.mjs +20 -0
  16. package/dist/WidgetSpacer-BkQfAEGF.js +1 -0
  17. package/dist/WidgetTask-12apXuBG.js +5 -0
  18. package/dist/WidgetTask-CCrq4VJx.mjs +154 -0
  19. package/dist/{index-DS_LG9NG.js → index-CdCGmjJJ.js} +30 -30
  20. package/dist/{index-CBCesMtK.mjs → index-CizTsjAP.mjs} +4495 -4467
  21. package/dist/jplan-pack.cjs.js +1 -1
  22. package/dist/jplan-pack.es.js +19 -18
  23. package/dist/types/index.d.ts +1 -0
  24. package/dist/types/modules/dashboard/dashboard/useDashbordStore.d.ts +14 -0
  25. package/dist/types/modules/dashboard/widgets/WidgetImage.d.ts +6 -0
  26. package/dist/types/modules/dashboard/widgets/WidgetLabel.d.ts +8 -0
  27. package/dist/types/modules/dashboard/widgets/WidgetShortcut.d.ts +10 -0
  28. package/dist/types/modules/dashboard/widgets/WidgetSpacer.d.ts +2 -0
  29. package/dist/types/modules/dashboard/widgets/WidgetTask.d.ts +16 -0
  30. package/dist/types/modules/dashboard/widgets/charts/WidgetChartBar.d.ts +3 -0
  31. package/dist/types/modules/dashboard/widgets/charts/WidgetChartPieStatic.d.ts +2 -0
  32. package/dist/types/modules/dashboard/widgets/charts/format/chartBarFormat.d.ts +21 -0
  33. package/dist/types/modules/dashboard/widgets/charts/format/chartDonutFormat.d.ts +12 -0
  34. package/dist/types/modules/dashboard/widgets/charts/format/chartLineFormat.d.ts +18 -0
  35. package/dist/types/modules/dashboard/widgets/charts/format/chartPieFormat.d.ts +7 -0
  36. package/dist/types/modules/dashboard/widgets/i18nWidgets.d.ts +10 -0
  37. package/dist/types/modules/dashboard/widgets/index.d.ts +2 -0
  38. package/dist/types/plugins/i18n/i18n.d.ts +24 -0
  39. package/dist/types/types/index.d.ts +1 -0
  40. package/dist/types/types/widget.d.ts +67 -0
  41. package/dist/useDashbordStore-_JHQsW6v.js +1 -0
  42. package/dist/useDashbordStore-q2U7uEYu.mjs +45 -0
  43. package/dist/vue3-apexcharts-B4K8ww3j.mjs +10890 -0
  44. package/dist/vue3-apexcharts-D5PsMTKp.js +940 -0
  45. package/package.json +4 -2
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index-DS_LG9NG.js");require("@vueuse/core");exports.AvatarPicture=e._sfc_main$20;exports.ColumnSettingsDialog=e._sfc_main$2;exports.ConfirmDialog=e._sfc_main$5;exports.ContextMenu=e.ContextMenu;exports.CopyButton=e._sfc_main$6;exports.DeleteAllBtn=e._sfc_main$10;exports.DotsMenu=e._sfc_main$7;exports.EditButton=e._sfc_main$11;exports.EmptyListImg=e.EmptyListImg;exports.EventBus=e.EventBus;exports.FormHeadless=e.FormHeadless;exports.FormMetadata=e._sfc_main$8;exports.GlobalScopeFilter=e._sfc_main$23;exports.GlobalSpinner=e._sfc_main$24;exports.HttpCore=e.HttpCore;exports.I18nMessages=e.I18nMessages;exports.JAvatar=e._sfc_main$19;exports.JBtn=e._sfc_main$9;exports.JDialog=e._sfc_main$21;exports.JForm=e._sfc_main$16;exports.JIconBtn=e._sfc_main$12;exports.JSelect=e._sfc_main$13;exports.JTextArea=e._sfc_main$14;exports.JTextField=e._sfc_main$15;Object.defineProperty(exports,"POSITION",{enumerable:!0,get:()=>e.POSITION});exports.ParentCard=e._sfc_main$18;exports.SearchFilter=e._sfc_main$4;exports.SpinnerLoader=e.SpinnerLoader;exports.SubMenu=e._sfc_main$22;Object.defineProperty(exports,"TYPE",{enumerable:!0,get:()=>e.TYPE});exports.TabFormHeader=e._sfc_main$17;exports.TableAdvanced=e._sfc_main$1;exports.TableCard=e._sfc_main$3;exports.TableCardsView=e.TableCardsView;exports.TableHeader=e.TableHeader;exports.UiTable=e._sfc_main;exports.__spinner=e.__spinner;exports.branchInstance=e.branchInstance;exports.coreClient=e.coreClient;exports.createToastInterface=e.createToastInterface;exports.dateFormat=e.dateFormat;exports.default=e.index;exports.divisionInstance=e.divisionInstance;exports.filterQuery=e.filterQuery;exports.globalEventBus=e.globalEventBus;exports.i18n=e.i18n;exports.manageUserInstance=e.manageUserInstance;exports.orgInstance=e.orgInstance;exports.provideToast=e.provideToast;exports.scopedClient=e.scopedClient;exports.setupAuthGuard=e.setupAuthGuard;exports.teamInstance=e.teamInstance;exports.toastInjectionKey=e.toastInjectionKey;exports.useAuth=e.useAuth;exports.useBranchStore=e.useBranchStore;exports.useCustomizer=e.useCustomizer;exports.useDialog=e.useDialog;exports.useDivisionStore=e.useDivisionStore;exports.useManageUserStore=e.useManageUserStore;exports.useOrganizationStore=e.useOrganizationStore;exports.useSession=e.useSession;exports.useTeamStore=e.useTeamStore;exports.useToast=e.useToast;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index-CdCGmjJJ.js");require("@vueuse/core");exports.AvatarPicture=e._sfc_main$21;exports.ColumnSettingsDialog=e._sfc_main$3;exports.ConfirmDialog=e._sfc_main$6;exports.ContextMenu=e.ContextMenu;exports.CopyButton=e._sfc_main$7;exports.DeleteAllBtn=e._sfc_main$11;exports.DotsMenu=e._sfc_main$8;exports.EditButton=e._sfc_main$12;exports.EmptyListImg=e.EmptyListImg;exports.EventBus=e.EventBus;exports.FormHeadless=e.FormHeadless;exports.FormMetadata=e._sfc_main$9;exports.GlobalScopeFilter=e._sfc_main$23;exports.GlobalSpinner=e._sfc_main$24;exports.HttpCore=e.HttpCore;exports.I18nMessages=e.I18nMessages;exports.JAvatar=e._sfc_main$20;exports.JBtn=e._sfc_main$10;exports.JDialog=e._sfc_main;exports.JForm=e._sfc_main$17;exports.JIconBtn=e._sfc_main$13;exports.JSelect=e._sfc_main$14;exports.JTextArea=e._sfc_main$15;exports.JTextField=e._sfc_main$16;Object.defineProperty(exports,"POSITION",{enumerable:!0,get:()=>e.POSITION});exports.ParentCard=e._sfc_main$19;exports.SearchFilter=e._sfc_main$5;exports.SpinnerLoader=e.SpinnerLoader;exports.SubMenu=e._sfc_main$22;Object.defineProperty(exports,"TYPE",{enumerable:!0,get:()=>e.TYPE});exports.TabFormHeader=e._sfc_main$18;exports.TableAdvanced=e._sfc_main$2;exports.TableCard=e._sfc_main$4;exports.TableCardsView=e.TableCardsView;exports.TableHeader=e.TableHeader;exports.UiTable=e._sfc_main$1;exports.__spinner=e.__spinner;exports.branchInstance=e.branchInstance;exports.coreClient=e.coreClient;exports.createToastInterface=e.createToastInterface;exports.dateFormat=e.dateFormat;exports.default=e.index;exports.divisionInstance=e.divisionInstance;exports.filterQuery=e.filterQuery;exports.globalEventBus=e.globalEventBus;exports.i18n=e.i18n;exports.manageUserInstance=e.manageUserInstance;exports.orgInstance=e.orgInstance;exports.provideToast=e.provideToast;exports.scopedClient=e.scopedClient;exports.setupAuthGuard=e.setupAuthGuard;exports.teamInstance=e.teamInstance;exports.toastInjectionKey=e.toastInjectionKey;exports.useAuth=e.useAuth;exports.useBranchStore=e.useBranchStore;exports.useCustomizer=e.useCustomizer;exports.useDialog=e.useDialog;exports.useDivisionStore=e.useDivisionStore;exports.useManageUserStore=e.useManageUserStore;exports.useOrganizationStore=e.useOrganizationStore;exports.useSession=e.useSession;exports.useTeamStore=e.useTeamStore;exports.useToast=e.useToast;exports.widgets=e.widgets;
@@ -1,4 +1,4 @@
1
- import { B as t, e as n, j as r, C as o, k as i, p as l, l as u, q as c, P as d, Q as m, F as S, n as T, G as g, H as p, M as I, Z as b, A as C, o as v, D as B, x as F, r as J, t as A, v as D, w as M, R as f, z as h, h as E, S as x, E as y, U as H, y as P, d as G, f as O, g as U, T as z, b as L, L as j, a2 as w, c as K, V as N, O as Q, i as V, a0 as Y, N as _, W as k, $ as q, a4 as R, a1 as W, X, aa as Z, s as $, a3 as aa, Y as sa, a as ea, a7 as ta, I as na, J as ra, a5 as oa, a9 as ia, a6 as la, u as ua, a8 as ca, K as da } from "./index-CBCesMtK.mjs";
1
+ import { D as t, f as n, k as r, C as o, l as i, q as l, n as u, r as d, P as c, Q as m, F as S, o as T, G as g, H as b, M as p, Z as I, B as C, p as v, _ as B, y as F, t as J, v as A, w as D, x as M, R as f, A as h, j as E, S as x, E as y, U as H, z as P, e as G, g as O, h as U, T as w, d as z, L, a2 as _, c as j, V as K, O as N, i as Q, a0 as V, N as Y, W as k, $ as q, a4 as R, a1 as W, X, aa as Z, s as $, a3 as aa, Y as sa, b as ea, a7 as ta, I as na, J as ra, a5 as oa, a9 as ia, a6 as la, u as ua, a8 as da, K as ca, ab as ma } from "./index-CizTsjAP.mjs";
2
2
  import "@vueuse/core";
3
3
  export {
4
4
  t as AvatarPicture,
@@ -8,15 +8,15 @@ export {
8
8
  i as CopyButton,
9
9
  l as DeleteAllBtn,
10
10
  u as DotsMenu,
11
- c as EditButton,
12
- d as EmptyListImg,
11
+ d as EditButton,
12
+ c as EmptyListImg,
13
13
  m as EventBus,
14
14
  S as FormHeadless,
15
15
  T as FormMetadata,
16
16
  g as GlobalScopeFilter,
17
- p as GlobalSpinner,
18
- I as HttpCore,
19
- b as I18nMessages,
17
+ b as GlobalSpinner,
18
+ p as HttpCore,
19
+ I as I18nMessages,
20
20
  C as JAvatar,
21
21
  v as JBtn,
22
22
  B as JDialog,
@@ -35,16 +35,16 @@ export {
35
35
  G as TableAdvanced,
36
36
  O as TableCard,
37
37
  U as TableCardsView,
38
- z as TableHeader,
39
- L as UiTable,
40
- j as __spinner,
41
- w as branchInstance,
42
- K as coreClient,
43
- N as createToastInterface,
44
- Q as dateFormat,
45
- V as default,
46
- Y as divisionInstance,
47
- _ as filterQuery,
38
+ w as TableHeader,
39
+ z as UiTable,
40
+ L as __spinner,
41
+ _ as branchInstance,
42
+ j as coreClient,
43
+ K as createToastInterface,
44
+ N as dateFormat,
45
+ Q as default,
46
+ V as divisionInstance,
47
+ Y as filterQuery,
48
48
  k as globalEventBus,
49
49
  q as i18n,
50
50
  R as manageUserInstance,
@@ -62,6 +62,7 @@ export {
62
62
  ia as useManageUserStore,
63
63
  la as useOrganizationStore,
64
64
  ua as useSession,
65
- ca as useTeamStore,
66
- da as useToast
65
+ da as useTeamStore,
66
+ ca as useToast,
67
+ ma as widgets
67
68
  };
@@ -17,3 +17,4 @@ export * from 'vue-toastification';
17
17
  export * from './composables/__spinner';
18
18
  export * from './plugins/i18n/i18n';
19
19
  export * from './modules/scope';
20
+ export * from './modules/dashboard/widgets';
@@ -0,0 +1,14 @@
1
+ import { Ref } from 'vue';
2
+ import { LayoutInstance } from 'grid-layout-plus/dist/helpers/types';
3
+ import { DashboardWidget } from '../../../types';
4
+ export declare function useDashboardStore(): {
5
+ config: Ref<Partial<LayoutInstance & {
6
+ cursor: "default" | "pointer" | "move";
7
+ }>, Partial<LayoutInstance & {
8
+ cursor: "default" | "pointer" | "move";
9
+ }>>;
10
+ layout: Ref<DashboardWidget[], DashboardWidget[]>;
11
+ edition: Ref<boolean, boolean>;
12
+ toggleEdit: () => void;
13
+ resetLayout: () => void;
14
+ };
@@ -0,0 +1,6 @@
1
+ declare const _default: import('vue').DefineComponent<{
2
+ image: string;
3
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
4
+ image: string;
5
+ }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
6
+ export default _default;
@@ -0,0 +1,8 @@
1
+ declare const _default: import('vue').DefineComponent<{
2
+ label: string;
3
+ font_size: string;
4
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
5
+ label: string;
6
+ font_size: string;
7
+ }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
8
+ export default _default;
@@ -0,0 +1,10 @@
1
+ declare const _default: import('vue').DefineComponent<{
2
+ title: string;
3
+ image: string;
4
+ url: string;
5
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
6
+ title: string;
7
+ image: string;
8
+ url: string;
9
+ }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
10
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,16 @@
1
+ declare const _default: import('vue').DefineComponent<{
2
+ description: string;
3
+ userStory: string;
4
+ dueDate: string;
5
+ id: number;
6
+ priority: string;
7
+ title: string;
8
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
9
+ description: string;
10
+ userStory: string;
11
+ dueDate: string;
12
+ id: number;
13
+ priority: string;
14
+ title: string;
15
+ }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
16
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { ChartBarFlatten } from './format/chartBarFormat';
2
+ declare const _default: import('vue').DefineComponent<ChartBarFlatten, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ChartBarFlatten> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
3
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,21 @@
1
+ import { ApexOptions } from 'apexcharts';
2
+ type Axis = {
3
+ type: "category" | "datetime" | "numeric";
4
+ label: string;
5
+ title?: string;
6
+ };
7
+ export type ChartBar = {
8
+ title: string;
9
+ x_axis: Axis;
10
+ y_axis: Axis;
11
+ };
12
+ export type ChartBarFlatten = {
13
+ title: string;
14
+ x_axis_type: "category" | "datetime" | "numeric";
15
+ x_axis_label: string;
16
+ x_axis_title?: string;
17
+ y_axis_label: string;
18
+ y_axis_title?: string;
19
+ };
20
+ export declare function chartBarDataFormat(data: Record<string, any>[], config: ChartBarFlatten): ApexOptions;
21
+ export {};
@@ -0,0 +1,12 @@
1
+ import { ApexOptions } from 'apexcharts';
2
+ export type SimpleDonutChartInput = {
3
+ title: string;
4
+ labels: string[];
5
+ data: number[];
6
+ total: number;
7
+ value: number;
8
+ };
9
+ export declare function chartDonutFormat({ title, labels, data, total, value, }: SimpleDonutChartInput): {
10
+ series: number[];
11
+ options: ApexOptions;
12
+ };
@@ -0,0 +1,18 @@
1
+ import { Ref } from 'vue';
2
+ import { ApexOptions } from 'apexcharts';
3
+ export type ChartLineRealtime = {
4
+ title: string;
5
+ x_axis_title?: string;
6
+ y_axis_title?: string;
7
+ series: {
8
+ name: string;
9
+ data: [number, number][];
10
+ }[];
11
+ };
12
+ export declare function chartLineRealtimeFormat(config: ChartLineRealtime): {
13
+ series: Ref<{
14
+ name: string;
15
+ data: [number, number][];
16
+ }[]>;
17
+ options: ApexOptions;
18
+ };
@@ -0,0 +1,7 @@
1
+ import { ApexOptions } from 'apexcharts';
2
+ export type ChartPie = {
3
+ title: string;
4
+ labels: string[];
5
+ series: number[];
6
+ };
7
+ export declare function chartPieFormat(data: Record<string, any>[], config: ChartPie): ApexOptions;
@@ -0,0 +1,10 @@
1
+ export declare const i18nWidgets: {
2
+ enUS: {
3
+ widget: string;
4
+ spacer: string;
5
+ };
6
+ ptBr: {
7
+ widget: string;
8
+ spacer: string;
9
+ };
10
+ };
@@ -0,0 +1,2 @@
1
+ declare const widgets: Record<string, any>;
2
+ export { widgets };
@@ -73,6 +73,12 @@ export declare const I18nMessages: {
73
73
  select_valid_item: string;
74
74
  };
75
75
  };
76
+ app: {
77
+ widget: {
78
+ widget: string;
79
+ spacer: string;
80
+ };
81
+ };
76
82
  };
77
83
  'en-US': {
78
84
  placeholders: {
@@ -148,6 +154,12 @@ export declare const I18nMessages: {
148
154
  select_valid_item: string;
149
155
  };
150
156
  };
157
+ app: {
158
+ widget: {
159
+ widget: string;
160
+ spacer: string;
161
+ };
162
+ };
151
163
  };
152
164
  };
153
165
  export declare const i18n: import('vue-i18n').I18n<{
@@ -225,6 +237,12 @@ export declare const i18n: import('vue-i18n').I18n<{
225
237
  select_valid_item: string;
226
238
  };
227
239
  };
240
+ app: {
241
+ widget: {
242
+ widget: string;
243
+ spacer: string;
244
+ };
245
+ };
228
246
  };
229
247
  'en-US': {
230
248
  placeholders: {
@@ -300,5 +318,11 @@ export declare const i18n: import('vue-i18n').I18n<{
300
318
  select_valid_item: string;
301
319
  };
302
320
  };
321
+ app: {
322
+ widget: {
323
+ widget: string;
324
+ spacer: string;
325
+ };
326
+ };
303
327
  };
304
328
  }, {}, {}, string, true>;
@@ -5,3 +5,4 @@ export * from './client/scope';
5
5
  export * from './client/scopeClient';
6
6
  export * from '../components/table/card/type';
7
7
  export * from './table';
8
+ export * from './widget';
@@ -0,0 +1,67 @@
1
+ import { Metadata } from './Metadata';
2
+ export interface LayoutItemRequired {
3
+ w: number;
4
+ h: number;
5
+ x: number;
6
+ y: number;
7
+ i: number | string;
8
+ }
9
+ export interface LayoutItem extends LayoutItemRequired {
10
+ minW?: number;
11
+ minH?: number;
12
+ maxW?: number;
13
+ maxH?: number;
14
+ moved?: boolean;
15
+ static?: boolean;
16
+ isDraggable?: boolean;
17
+ isResizable?: boolean;
18
+ }
19
+ export type WidgetGroup = Metadata & {
20
+ name: string;
21
+ description: string;
22
+ icon_type: 'tabler' | 'mdi';
23
+ icon_value: string;
24
+ };
25
+ export type WidgetRequestBase = Partial<Metadata> & {
26
+ readonly vue_component: string;
27
+ name: string;
28
+ group: string;
29
+ description?: string;
30
+ icon_type: string;
31
+ icon_value: string;
32
+ min_height?: LayoutItem['minH'];
33
+ min_width?: LayoutItem['minW'];
34
+ max_height?: LayoutItem['maxH'];
35
+ max_width?: LayoutItem['maxW'];
36
+ input_schema: string;
37
+ };
38
+ export type ResizableWidget = WidgetRequestBase & {
39
+ isResizable: true;
40
+ display_size?: never;
41
+ };
42
+ export type FixedSizeWidget = WidgetRequestBase & {
43
+ isResizable?: false;
44
+ display_size: string[];
45
+ };
46
+ export type WidgetInstance = WidgetRequestBase & (ResizableWidget | FixedSizeWidget);
47
+ export type UserWidget = {
48
+ __id: LayoutItem['i'];
49
+ pos_x: LayoutItem['x'];
50
+ pos_y: LayoutItem['y'];
51
+ height: LayoutItem['h'];
52
+ width: LayoutItem['w'];
53
+ input_json: object;
54
+ vue_component: string;
55
+ selected_size?: string;
56
+ };
57
+ export type FormatedWidget = LayoutItem & Omit<UserWidget, 'pos_x' | 'pos_y' | 'height' | 'width' | '__id'> & WidgetInstance;
58
+ export type DashboardWidget = LayoutItem & {
59
+ input_json: UserWidget['input_json'];
60
+ selected_size: UserWidget['selected_size'];
61
+ vue_component: WidgetInstance['vue_component'];
62
+ group: WidgetInstance['group'];
63
+ name: WidgetInstance['name'];
64
+ input_schema: WidgetInstance['input_schema'];
65
+ isResizable: WidgetInstance['isResizable'];
66
+ display_size: WidgetInstance['display_size'];
67
+ };
@@ -0,0 +1 @@
1
+ "use strict";const r=require("vue"),u=Object.freeze({colNum:24,rowHeight:50,useCssTransforms:!0,responsive:!0,margin:[12,10]}),s=r.ref(!1),t=r.ref([]);function o(){const e=r.ref({...u,isResizable:!1,isDraggable:!1,useStyleCursor:!1,cursor:"default"});function a(){if(s.value=!s.value,e.value.isDraggable=s.value,e.value.isResizable=s.value,!s.value){e.value.useStyleCursor=!0,e.value.cursor="pointer";return}e.value.useStyleCursor=!1,e.value.cursor="move"}function l(){e.value={...u,isResizable:!1,isDraggable:!1,useStyleCursor:!1,cursor:"default"}}return{config:e,layout:t,edition:s,toggleEdit:a,resetLayout:l}}exports.useDashboardStore=o;
@@ -0,0 +1,45 @@
1
+ import { ref as r } from "vue";
2
+ const u = Object.freeze({
3
+ colNum: 24,
4
+ rowHeight: 50,
5
+ useCssTransforms: !0,
6
+ responsive: !0,
7
+ margin: [12, 10]
8
+ }), s = r(!1), o = r([]);
9
+ function i() {
10
+ const e = r({
11
+ ...u,
12
+ isResizable: !1,
13
+ isDraggable: !1,
14
+ useStyleCursor: !1,
15
+ cursor: "default"
16
+ });
17
+ function a() {
18
+ if (s.value = !s.value, e.value.isDraggable = s.value, e.value.isResizable = s.value, !s.value) {
19
+ e.value.useStyleCursor = !0, e.value.cursor = "pointer";
20
+ return;
21
+ }
22
+ e.value.useStyleCursor = !1, e.value.cursor = "move";
23
+ }
24
+ function l() {
25
+ e.value = {
26
+ ...u,
27
+ isResizable: !1,
28
+ isDraggable: !1,
29
+ useStyleCursor: !1,
30
+ cursor: "default"
31
+ };
32
+ }
33
+ return {
34
+ config: e,
35
+ layout: o,
36
+ edition: s,
37
+ //loading,
38
+ toggleEdit: a,
39
+ //getDashboard,
40
+ resetLayout: l
41
+ };
42
+ }
43
+ export {
44
+ i as u
45
+ };