jplan-pack 0.6.791 → 0.6.793
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-Blc0tWgT.js +1 -0
- package/dist/AuthRoute-C_egjiTV.mjs +50 -0
- package/dist/AuthRoute.css +1 -1
- package/dist/PublicClientApplication-RghphFC3.js +7 -0
- package/dist/PublicClientApplication-X_bVRzjL.mjs +9896 -0
- package/dist/{WidgetLabel-CvTCeXSC.mjs → WidgetLabel-CiJ_74cd.mjs} +1 -1
- package/dist/{WidgetLabel-BL-HPmoT.js → WidgetLabel-D05JkgcX.js} +1 -1
- package/dist/{WidgetShortcut-L4ryNdal.mjs → WidgetShortcut-D07Os1SC.mjs} +1 -1
- package/dist/{WidgetShortcut-UdHldZ9C.js → WidgetShortcut-Dbqwi5_v.js} +1 -1
- package/dist/{WidgetSpacer-BvjgDMNT.mjs → WidgetSpacer-CGTdfVI9.mjs} +1 -1
- package/dist/{WidgetSpacer-C6Ky2gYR.js → WidgetSpacer-DJlgBAV_.js} +1 -1
- package/dist/{WidgetTask-BfpBS5_a.mjs → WidgetTask-BinOYu7t.mjs} +1 -1
- package/dist/{WidgetTask-JYEsD2XY.js → WidgetTask-XDA3hGhG.js} +1 -1
- package/dist/getAsyncMsal-DmA99D0f.mjs +35 -0
- package/dist/getAsyncMsal-DuaMdBNJ.js +1 -0
- package/dist/index-94At5ZAN.mjs +26991 -0
- package/dist/index-D0Sp9GbP.js +107 -0
- package/dist/jplan-pack.cjs.js +1 -1
- package/dist/jplan-pack.es.js +43 -42
- package/dist/msalInstance-CQrPN8cS.mjs +29 -0
- package/dist/msalInstance-lTZGjWGu.js +1 -0
- package/dist/types/_auth/composables/session/useSession.d.ts +3 -0
- package/dist/types/_auth/composables/session/useSessionBasic.d.ts +13 -0
- package/dist/types/_auth/composables/session/useSessionScoped.d.ts +101 -0
- package/dist/types/_auth/composables/type.d.ts +24 -24
- package/dist/types/_auth/composables/useAuth.d.ts +1 -1
- package/dist/types/_auth/composables/useToken.d.ts +1 -1
- package/dist/types/_auth/index.d.ts +3 -3
- package/dist/types/_auth/msal/getAsyncMsal.d.ts +2 -0
- package/dist/types/_auth/msal/index.d.ts +25 -0
- package/dist/types/_auth/msal/msalInstance.d.ts +3 -0
- package/dist/types/_auth/navigation-guard/protectAuthRoutes.d.ts +3 -15
- package/dist/types/_auth/navigation-guard/type.d.ts +3 -0
- package/dist/types/_auth/{_dev → tab-routes}/authFailRoute.d.ts +1 -1
- package/dist/types/_auth/{_dev → tab-routes}/authRoute.d.ts +1 -1
- package/dist/types/plugins/i18n/i18n.d.ts +4 -2
- package/dist/types/views/LoginView.d.ts +1 -5
- package/package.json +4 -2
- package/dist/AuthRoute-BLy4wEB9.mjs +0 -68
- package/dist/AuthRoute-CH6pMkeZ.js +0 -1
- package/dist/index-CjkoOPGG.mjs +0 -36905
- package/dist/index-DrklXS0T.js +0 -113
- package/dist/types/_auth/composables/useSession.d.ts +0 -56
- package/dist/types/_auth/msal/asyncMsal.d.ts +0 -14
- package/dist/types/_auth/msal/msal.d.ts +0 -3
- /package/dist/types/_auth/{_dev → tab-routes}/AuthFailRoute.d.ts +0 -0
- /package/dist/types/_auth/{_dev → tab-routes}/AuthRoute.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-D0Sp9GbP.js"),u={class:"overlay",style:{background:"rgba(0, 0, 0, 0.5)",height:"100vh"}},d={class:"text-white"},p={class:"text-white"},h=e.defineComponent({__name:"AuthRoute",setup(_){const c=o=>({scopes:["https://graph.microsoft.com/.default","openid","profile"],redirectStartPage:window.location.href,extraQueryParameters:o}),n=e.ref(!1);async function l(){t.msal.getAllAccounts().length===0&&(n.value=!0);const o=await t.msal.handleRedirectPromise();if(!o){await t.msal.initialize();const s=c();await t.msal.loginRedirect(s);return}t.msal.setActiveAccount(o.account)}e.onMounted(async()=>{await t.msal.initialize(),await l()});const a=[{title:"Authenticating...",subtitle:"Please wait."},{title:"Authorized",subtitle:"If this window don't closed automatically, you can close it now."}],i=e.computed(()=>n.value?a[0]:a[1]);return(o,s)=>{const r=e.resolveComponent("SpinnerLoader");return e.openBlock(),e.createElementBlock("div",u,[e.createElementVNode("h3",d,e.toDisplayString(i.value.title),1),e.createVNode(r),e.createElementVNode("p",p,e.toDisplayString(i.value.subtitle),1)])}}}),m=t._export_sfc(h,[["__scopeId","data-v-02ac351e"]]);exports.default=m;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { defineComponent as d, ref as p, onMounted as h, computed as _, resolveComponent as m, createElementBlock as f, openBlock as g, createElementVNode as s, createVNode as w, toDisplayString as c } from "vue";
|
|
2
|
+
import { m as t, a as v } from "./index-94At5ZAN.mjs";
|
|
3
|
+
const x = {
|
|
4
|
+
class: "overlay",
|
|
5
|
+
style: { background: "rgba(0, 0, 0, 0.5)", height: "100vh" }
|
|
6
|
+
}, y = { class: "text-white" }, A = { class: "text-white" }, R = /* @__PURE__ */ d({
|
|
7
|
+
__name: "AuthRoute",
|
|
8
|
+
setup(b) {
|
|
9
|
+
const r = (e) => ({
|
|
10
|
+
scopes: ["https://graph.microsoft.com/.default", "openid", "profile"],
|
|
11
|
+
redirectStartPage: window.location.href,
|
|
12
|
+
extraQueryParameters: e
|
|
13
|
+
}), o = p(!1);
|
|
14
|
+
async function l() {
|
|
15
|
+
t.getAllAccounts().length === 0 && (o.value = !0);
|
|
16
|
+
const e = await t.handleRedirectPromise();
|
|
17
|
+
if (!e) {
|
|
18
|
+
await t.initialize();
|
|
19
|
+
const i = r();
|
|
20
|
+
await t.loginRedirect(i);
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
t.setActiveAccount(e.account);
|
|
24
|
+
}
|
|
25
|
+
h(async () => {
|
|
26
|
+
await t.initialize(), await l();
|
|
27
|
+
});
|
|
28
|
+
const n = [
|
|
29
|
+
{
|
|
30
|
+
title: "Authenticating...",
|
|
31
|
+
subtitle: "Please wait."
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
title: "Authorized",
|
|
35
|
+
subtitle: "If this window don't closed automatically, you can close it now."
|
|
36
|
+
}
|
|
37
|
+
], a = _(() => o.value ? n[0] : n[1]);
|
|
38
|
+
return (e, i) => {
|
|
39
|
+
const u = m("SpinnerLoader");
|
|
40
|
+
return g(), f("div", x, [
|
|
41
|
+
s("h3", y, c(a.value.title), 1),
|
|
42
|
+
w(u),
|
|
43
|
+
s("p", A, c(a.value.subtitle), 1)
|
|
44
|
+
]);
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
}), k = /* @__PURE__ */ v(R, [["__scopeId", "data-v-02ac351e"]]);
|
|
48
|
+
export {
|
|
49
|
+
k as default
|
|
50
|
+
};
|
package/dist/AuthRoute.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.overlay[data-v-
|
|
1
|
+
.overlay[data-v-02ac351e]{position:fixed;top:0;left:0;width:100%;height:100%;background:#00000080;z-index:10000;display:flex;flex-direction:column;align-items:center;justify-content:center}.text-white[data-v-02ac351e]{color:#fff}
|