jplan-pack 0.6.715 → 0.6.717
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/{AuthRoute-C8bOEFmi.mjs → AuthRoute-54Pl0J81.mjs} +1 -1
- package/dist/{AuthRoute-jIgHKFdU.js → AuthRoute-DwvptKt4.js} +1 -1
- package/dist/WidgetChartBar-ChMg_dbz.js +1 -0
- package/dist/WidgetChartBar-SQYYhXES.mjs +118 -0
- package/dist/WidgetChartPieStatic-BYkR3u15.js +1 -0
- package/dist/WidgetChartPieStatic-ClHypXEk.mjs +82 -0
- package/dist/WidgetImage-CIEAwTIN.js +1 -0
- package/dist/WidgetImage-DrcRKR9h.mjs +41 -0
- package/dist/WidgetLabel-CpfCwV2y.js +1 -0
- package/dist/WidgetLabel-DW87gbVO.mjs +44 -0
- package/dist/WidgetLabel.css +1 -0
- package/dist/WidgetShortcut-C_Ga4Z91.js +1 -0
- package/dist/WidgetShortcut-aWAR2seM.mjs +36 -0
- package/dist/WidgetShortcut.css +1 -0
- package/dist/WidgetSpacer-11xp0knO.mjs +20 -0
- package/dist/WidgetSpacer-BH9EKTpW.js +1 -0
- package/dist/WidgetTask-DGRY2n2N.mjs +154 -0
- package/dist/WidgetTask-DJbCSvNG.js +5 -0
- package/dist/{index-D69qG4bM.js → index-B0hKovj4.js} +35 -35
- package/dist/{index-CXXQstBi.mjs → index-BPA79bUI.mjs} +4960 -4891
- package/dist/jplan-pack.cjs.js +1 -1
- package/dist/jplan-pack.es.js +34 -32
- package/dist/types/index.d.ts +1 -0
- package/dist/types/modules/dashboard/dashboard/useDashbordStore.d.ts +15 -0
- package/dist/types/modules/dashboard/widgets/WidgetImage.d.ts +6 -0
- package/dist/types/modules/dashboard/widgets/WidgetLabel.d.ts +8 -0
- package/dist/types/modules/dashboard/widgets/WidgetShortcut.d.ts +10 -0
- package/dist/types/modules/dashboard/widgets/WidgetSpacer.d.ts +2 -0
- package/dist/types/modules/dashboard/widgets/WidgetTask.d.ts +16 -0
- package/dist/types/modules/dashboard/widgets/charts/WidgetChartBar.d.ts +3 -0
- package/dist/types/modules/dashboard/widgets/charts/WidgetChartPieStatic.d.ts +2 -0
- package/dist/types/modules/dashboard/widgets/charts/format/chartBarFormat.d.ts +21 -0
- package/dist/types/modules/dashboard/widgets/charts/format/chartDonutFormat.d.ts +12 -0
- package/dist/types/modules/dashboard/widgets/charts/format/chartLineFormat.d.ts +18 -0
- package/dist/types/modules/dashboard/widgets/charts/format/chartPieFormat.d.ts +7 -0
- package/dist/types/modules/dashboard/widgets/i18nWidgets.d.ts +10 -0
- package/dist/types/modules/dashboard/widgets/index.d.ts +3 -0
- package/dist/types/plugins/i18n/i18n.d.ts +24 -0
- package/dist/types/types/index.d.ts +1 -0
- package/dist/types/types/widget.d.ts +67 -0
- package/dist/vue3-apexcharts-B4K8ww3j.mjs +10890 -0
- package/dist/vue3-apexcharts-D5PsMTKp.js +940 -0
- package/package.json +4 -2
package/dist/jplan-pack.cjs.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index-
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index-B0hKovj4.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.useDashboardStore=e.useDashboardStore;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;
|
package/dist/jplan-pack.es.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { E as t, g as n, l as r, C as o, n as i, r as l, o as u, t as d, Q as c, R as S, F as m, p as T, H as b, I as g, N as p, $ as I, D as C, q as v, _ as B, z as D, v as F, w as J, x as A, y as h, U as M, B as f, k as E, S as x, G as y, V as H, A as P, f as G, h as O, j as U, T as w, e as z, M as L, a3 as _, d as j, W as K, P as N, i as Q, a1 as V, O as Y, X as k, a0 as q, a5 as R, a2 as W, Y as X, ab as Z, s as $, a4 as aa, Z as sa, c as ea, a8 as ta, J as na, u as ra, K as oa, a6 as ia, aa as la, a7 as ua, b as da, a9 as ca, L as Sa, ac as ma } from "./index-BPA79bUI.mjs";
|
2
2
|
import "@vueuse/core";
|
3
3
|
export {
|
4
4
|
t as AvatarPicture,
|
@@ -8,25 +8,25 @@ export {
|
|
8
8
|
i as CopyButton,
|
9
9
|
l as DeleteAllBtn,
|
10
10
|
u as DotsMenu,
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
11
|
+
d as EditButton,
|
12
|
+
c as EmptyListImg,
|
13
|
+
S as EventBus,
|
14
|
+
m as FormHeadless,
|
15
15
|
T as FormMetadata,
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
16
|
+
b as GlobalScopeFilter,
|
17
|
+
g 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,
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
23
|
+
D as JForm,
|
24
|
+
F as JIconBtn,
|
25
|
+
J as JSelect,
|
26
|
+
A as JTextArea,
|
27
|
+
h as JTextField,
|
28
|
+
M as POSITION,
|
29
|
+
f as ParentCard,
|
30
30
|
E as SearchFilter,
|
31
31
|
x as SpinnerLoader,
|
32
32
|
y as SubMenu,
|
@@ -35,16 +35,16 @@ export {
|
|
35
35
|
G as TableAdvanced,
|
36
36
|
O as TableCard,
|
37
37
|
U as TableCardsView,
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
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,
|
@@ -57,11 +57,13 @@ export {
|
|
57
57
|
ea as useAuth,
|
58
58
|
ta as useBranchStore,
|
59
59
|
na as useCustomizer,
|
60
|
-
ra as
|
61
|
-
oa as
|
62
|
-
ia as
|
63
|
-
la as
|
64
|
-
ua as
|
60
|
+
ra as useDashboardStore,
|
61
|
+
oa as useDialog,
|
62
|
+
ia as useDivisionStore,
|
63
|
+
la as useManageUserStore,
|
64
|
+
ua as useOrganizationStore,
|
65
|
+
da as useSession,
|
65
66
|
ca as useTeamStore,
|
66
|
-
|
67
|
+
Sa as useToast,
|
68
|
+
ma as widgets
|
67
69
|
};
|
package/dist/types/index.d.ts
CHANGED
@@ -0,0 +1,15 @@
|
|
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
|
+
DEFAULT_CONFIG: Partial<LayoutInstance>;
|
6
|
+
config: Ref<Partial<LayoutInstance & {
|
7
|
+
cursor: "default" | "pointer" | "move";
|
8
|
+
}>, Partial<LayoutInstance & {
|
9
|
+
cursor: "default" | "pointer" | "move";
|
10
|
+
}>>;
|
11
|
+
layout: Ref<DashboardWidget[], DashboardWidget[]>;
|
12
|
+
edition: Ref<boolean, boolean>;
|
13
|
+
toggleEdit: () => void;
|
14
|
+
resetLayout: () => void;
|
15
|
+
};
|
@@ -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
|
+
};
|
@@ -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>;
|
@@ -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
|
+
};
|