jplan-pack 0.6.751 → 0.6.752
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-ycdjCrrj.js → AuthRoute-BYtmXWOj.js} +1 -1
- package/dist/{AuthRoute-Bj_FW6kZ.mjs → AuthRoute-CTfjTHCB.mjs} +1 -1
- package/dist/{WidgetLabel-C2xj02PX.js → WidgetLabel-CwQTdN7f.js} +1 -1
- package/dist/{WidgetLabel-gkjzaxVW.mjs → WidgetLabel-bs9ubmLj.mjs} +1 -1
- package/dist/{WidgetShortcut-DMhzPR7D.mjs → WidgetShortcut-Bn2lIdmf.mjs} +1 -1
- package/dist/{WidgetShortcut-C652Y1Xp.js → WidgetShortcut-Csv8Xy1k.js} +1 -1
- package/dist/{WidgetSpacer-CoMLhNuP.js → WidgetSpacer-BJCiTN51.js} +1 -1
- package/dist/{WidgetSpacer-JPjj7ho5.mjs → WidgetSpacer-DNSF5NlS.mjs} +1 -1
- package/dist/{WidgetTask-p8S2HtVN.js → WidgetTask-BFEjXsbm.js} +1 -1
- package/dist/{WidgetTask-pPTRzpGA.mjs → WidgetTask-CqVWW2bX.mjs} +1 -1
- package/dist/{index-CBxJcXR-.js → index-Ce1WO8pi.js} +30 -30
- package/dist/{index-CWPiYkG3.mjs → index-W8lGN1Ea.mjs} +2293 -2262
- package/dist/jplan-pack.cjs.js +1 -1
- package/dist/jplan-pack.es.js +1 -1
- package/dist/types/modules/notification.d.ts +12 -28
- package/dist/types/types/Notification.d.ts +7 -2
- package/package.json +1 -1
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-Ce1WO8pi.js");require("@vueuse/core");exports.AvatarPicture=e._sfc_main$22;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$24;exports.GlobalSpinner=e._sfc_main$25;exports.HttpCore=e.HttpCore;exports.I18nMessages=e.I18nMessages;exports.JAutocomplete=e._sfc_main$15;exports.JAvatar=e._sfc_main$21;exports.JBtn=e._sfc_main$10;exports.JDialog=e._sfc_main;exports.JForm=e._sfc_main$18;exports.JIconBtn=e._sfc_main$13;exports.JSelect=e._sfc_main$14;exports.JTextArea=e._sfc_main$16;exports.JTextField=e._sfc_main$17;Object.defineProperty(exports,"POSITION",{enumerable:!0,get:()=>e.POSITION});exports.ParentCard=e._sfc_main$20;exports.SearchFilter=e._sfc_main$5;exports.SpinnerLoader=e.SpinnerLoader;exports.SubMenu=e._sfc_main$23;Object.defineProperty(exports,"TYPE",{enumerable:!0,get:()=>e.TYPE});exports.TabFormHeader=e._sfc_main$19;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.useNotifications=e.useNotifications;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 { G as t, g as o, l as n, D as r, n as i, r as u, o as l, t as c, U as d, V as m, F as S, p as T, I as b, J as g, P as p, a1 as I, x as C, E as J, q as v, _ as A, A as B, v as D, w as F, y as f, z as h, W as M, C as E, k as x, S as y, H, X as P, B as G, f as O, h as U, j as w, T as z, e as L, O as N, a5 as _, d as j, Y as K, R as Q, i as V, a3 as Y, Q as k, Z as q, a2 as R, a7 as W, a4 as X, $ as Z, ad as $, s as aa, a6 as sa, a0 as ea, c as ta, aa as oa, K as na, u as ra, L as ia, a8 as ua, ac as la, N as ca, a9 as da, b as ma, ab as Sa, M as Ta, ae as ba } from "./index-
|
1
|
+
import { G as t, g as o, l as n, D as r, n as i, r as u, o as l, t as c, U as d, V as m, F as S, p as T, I as b, J as g, P as p, a1 as I, x as C, E as J, q as v, _ as A, A as B, v as D, w as F, y as f, z as h, W as M, C as E, k as x, S as y, H, X as P, B as G, f as O, h as U, j as w, T as z, e as L, O as N, a5 as _, d as j, Y as K, R as Q, i as V, a3 as Y, Q as k, Z as q, a2 as R, a7 as W, a4 as X, $ as Z, ad as $, s as aa, a6 as sa, a0 as ea, c as ta, aa as oa, K as na, u as ra, L as ia, a8 as ua, ac as la, N as ca, a9 as da, b as ma, ab as Sa, M as Ta, ae as ba } from "./index-W8lGN1Ea.mjs";
|
2
2
|
import "@vueuse/core";
|
3
3
|
export {
|
4
4
|
t as AvatarPicture,
|
@@ -1,36 +1,13 @@
|
|
1
|
-
import {
|
1
|
+
import { Ref } from 'vue';
|
2
|
+
import { ClientNotification, JNotification, ServerNotification } from '../types/Notification';
|
2
3
|
type ServerMeta = Partial<{
|
3
4
|
url: string;
|
4
5
|
method: string;
|
5
6
|
status: number;
|
6
7
|
}>;
|
7
|
-
export
|
8
|
-
client:
|
9
|
-
|
10
|
-
timestamp: Date;
|
11
|
-
}[], ClientNotification[] | {
|
12
|
-
content: string;
|
13
|
-
timestamp: Date;
|
14
|
-
}[]>;
|
15
|
-
server: import('vue').Ref<{
|
16
|
-
type: "error" | "success" | "warning" | "info";
|
17
|
-
message?: string | undefined;
|
18
|
-
timestamp: Date;
|
19
|
-
meta: {
|
20
|
-
url: string;
|
21
|
-
method: string;
|
22
|
-
status: number;
|
23
|
-
};
|
24
|
-
}[], ServerNotification[] | {
|
25
|
-
type: "error" | "success" | "warning" | "info";
|
26
|
-
message?: string | undefined;
|
27
|
-
timestamp: Date;
|
28
|
-
meta: {
|
29
|
-
url: string;
|
30
|
-
method: string;
|
31
|
-
status: number;
|
32
|
-
};
|
33
|
-
}[]>;
|
8
|
+
export type UseNotificationsReturn = {
|
9
|
+
client: Ref<ClientNotification[]>;
|
10
|
+
server: Ref<ServerNotification[]>;
|
34
11
|
toast: {
|
35
12
|
server: {
|
36
13
|
success: (message: string, meta?: ServerMeta) => void;
|
@@ -45,5 +22,12 @@ export declare function useNotifications(): {
|
|
45
22
|
info: (message: string) => void;
|
46
23
|
};
|
47
24
|
};
|
25
|
+
getUnreadClient: () => ClientNotification[];
|
26
|
+
getUnreadServer: () => ServerNotification[];
|
27
|
+
getNewNotifications: () => JNotification[];
|
28
|
+
getUnreadCount: () => number;
|
29
|
+
markAsRead: (id: string) => void;
|
30
|
+
markAllAsRead: () => void;
|
48
31
|
};
|
32
|
+
export declare function useNotifications(): UseNotificationsReturn;
|
49
33
|
export {};
|
@@ -1,10 +1,15 @@
|
|
1
1
|
export type ClientNotification = {
|
2
|
-
|
2
|
+
id: string;
|
3
|
+
read: boolean;
|
4
|
+
type: 'error' | 'success' | 'warning' | 'info';
|
5
|
+
message: string;
|
3
6
|
timestamp: Date;
|
4
7
|
};
|
5
8
|
export type ServerNotification = {
|
9
|
+
id: string;
|
10
|
+
read: boolean;
|
6
11
|
type: 'error' | 'success' | 'warning' | 'info';
|
7
|
-
message
|
12
|
+
message: string;
|
8
13
|
timestamp: Date;
|
9
14
|
meta: {
|
10
15
|
url: string;
|