jplan-pack 0.5.90 → 0.5.92
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/AuthFailRoute-B2ZQYcPg.mjs +55 -0
- package/dist/AuthFailRoute-ClQ9doUk.js +5 -0
- package/dist/AuthFailRoute.css +1 -0
- package/dist/{AuthRoute-B4FmOmWm.mjs → AuthRoute-D4Ddf1ej.mjs} +29 -14
- package/dist/AuthRoute-DD9W0rUv.js +1 -0
- package/dist/AuthRoute.css +1 -0
- package/dist/{index-KAV_PCnW.js → index-BAgZr3O9.js} +24 -24
- package/dist/{index-Ddk5W7E3.mjs → index-DElQ1kwo.mjs} +4007 -3948
- package/dist/index.css +1 -0
- package/dist/jplan-pack.cjs.js +1 -1
- package/dist/jplan-pack.es.js +47 -39
- package/dist/types/_auth/_dev/authFailRoute.d.ts +7 -0
- package/dist/types/components/DotsMenu.d.ts +15 -13
- package/dist/types/components/DotsMenuV1.d.ts +27 -0
- package/dist/types/components/index.d.ts +2 -1
- package/dist/types/index.d.ts +1 -0
- package/package.json +3 -8
- package/dist/AuthRoute-BMxjsJmx.js +0 -1
- package/dist/jplan-pack.css +0 -1
- package/dist/jplan-pack.min.css +0 -1
@@ -0,0 +1,55 @@
|
|
1
|
+
import { inject as u, openBlock as d, createElementBlock as a, createElementVNode as r, createVNode as p, withCtx as i, createTextVNode as f } from "vue";
|
2
|
+
import { _ as m } from "./index-DElQ1kwo.mjs";
|
3
|
+
import { VBtn as _ } from "vuetify/lib/components/VBtn/index.mjs";
|
4
|
+
/*!
|
5
|
+
* vue-router v4.5.0
|
6
|
+
* (c) 2024 Eduardo San Martin Morote
|
7
|
+
* @license MIT
|
8
|
+
*/
|
9
|
+
var n;
|
10
|
+
(function(o) {
|
11
|
+
o.pop = "pop", o.push = "push";
|
12
|
+
})(n || (n = {}));
|
13
|
+
var c;
|
14
|
+
(function(o) {
|
15
|
+
o.back = "back", o.forward = "forward", o.unknown = "";
|
16
|
+
})(c || (c = {}));
|
17
|
+
Symbol(process.env.NODE_ENV !== "production" ? "navigation failure" : "");
|
18
|
+
var s;
|
19
|
+
(function(o) {
|
20
|
+
o[o.aborted = 4] = "aborted", o[o.cancelled = 8] = "cancelled", o[o.duplicated = 16] = "duplicated";
|
21
|
+
})(s || (s = {}));
|
22
|
+
Symbol(process.env.NODE_ENV !== "production" ? "router view location matched" : "");
|
23
|
+
Symbol(process.env.NODE_ENV !== "production" ? "router view depth" : "");
|
24
|
+
const b = Symbol(process.env.NODE_ENV !== "production" ? "router" : "");
|
25
|
+
Symbol(process.env.NODE_ENV !== "production" ? "route location" : "");
|
26
|
+
Symbol(process.env.NODE_ENV !== "production" ? "router view location" : "");
|
27
|
+
function v() {
|
28
|
+
return u(b);
|
29
|
+
}
|
30
|
+
const E = { class: "overlay d-flex flex-column align-center justify-center" }, w = {
|
31
|
+
__name: "AuthFailRoute",
|
32
|
+
setup(o) {
|
33
|
+
const t = v(), l = () => {
|
34
|
+
window.history.length > 1 ? t.back() : t.push("/");
|
35
|
+
};
|
36
|
+
return (N, e) => (d(), a("div", E, [
|
37
|
+
e[1] || (e[1] = r("div", { class: "w-100 text-h5 text-center mb-4" }, "Unable to Access. Please allow pop-ups and try again.", -1)),
|
38
|
+
r("div", null, [
|
39
|
+
p(_, {
|
40
|
+
variant: "flat",
|
41
|
+
color: "secondary",
|
42
|
+
onClick: l
|
43
|
+
}, {
|
44
|
+
default: i(() => e[0] || (e[0] = [
|
45
|
+
f("Login")
|
46
|
+
])),
|
47
|
+
_: 1
|
48
|
+
})
|
49
|
+
])
|
50
|
+
]));
|
51
|
+
}
|
52
|
+
}, k = /* @__PURE__ */ m(w, [["__scopeId", "data-v-db169f45"]]);
|
53
|
+
export {
|
54
|
+
k as default
|
55
|
+
};
|
@@ -0,0 +1,5 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),l=require("./index-BAgZr3O9.js"),d=require("vuetify/lib/components/VBtn/index.mjs");/*!
|
2
|
+
* vue-router v4.5.0
|
3
|
+
* (c) 2024 Eduardo San Martin Morote
|
4
|
+
* @license MIT
|
5
|
+
*/var r;(function(e){e.pop="pop",e.push="push"})(r||(r={}));var c;(function(e){e.back="back",e.forward="forward",e.unknown=""})(c||(c={}));Symbol(process.env.NODE_ENV!=="production"?"navigation failure":"");var s;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(s||(s={}));Symbol(process.env.NODE_ENV!=="production"?"router view location matched":"");Symbol(process.env.NODE_ENV!=="production"?"router view depth":"");const a=Symbol(process.env.NODE_ENV!=="production"?"router":"");Symbol(process.env.NODE_ENV!=="production"?"route location":"");Symbol(process.env.NODE_ENV!=="production"?"router view location":"");function i(){return o.inject(a)}const p={class:"overlay d-flex flex-column align-center justify-center"},f={__name:"AuthFailRoute",setup(e){const n=i(),u=()=>{window.history.length>1?n.back():n.push("/")};return(b,t)=>(o.openBlock(),o.createElementBlock("div",p,[t[1]||(t[1]=o.createElementVNode("div",{class:"w-100 text-h5 text-center mb-4"},"Unable to Access. Please allow pop-ups and try again.",-1)),o.createElementVNode("div",null,[o.createVNode(d.VBtn,{variant:"flat",color:"secondary",onClick:u},{default:o.withCtx(()=>t[0]||(t[0]=[o.createTextVNode("Login")])),_:1})])]))}},_=l._export_sfc(f,[["__scopeId","data-v-db169f45"]]);exports.default=_;
|
@@ -0,0 +1 @@
|
|
1
|
+
.overlay[data-v-db169f45]{background:#00000080}.text-white[data-v-db169f45]{color:#fff}
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import { defineComponent as
|
1
|
+
import { defineComponent as p, ref as m, onMounted as u, computed as d, openBlock as _, createElementBlock as f, createElementVNode as n, toDisplayString as s, createVNode as h, unref as w } from "vue";
|
2
2
|
import "@vueuse/core";
|
3
3
|
import "vuetify/lib/components/VBtn/index.mjs";
|
4
4
|
import "vuetify/components";
|
5
5
|
import "vuetify/lib/components/VIcon/index.mjs";
|
6
|
-
import { m as t, S as
|
6
|
+
import { m as t, S as g, _ as v } from "./index-DElQ1kwo.mjs";
|
7
7
|
import "vuetify/lib/components/VCard/index.mjs";
|
8
8
|
import "vuetify/lib/components/VDialog/index.mjs";
|
9
9
|
import "vuetify/lib/components/VDivider/index.mjs";
|
@@ -18,30 +18,45 @@ import "vuetify/lib/components/VLabel/index.mjs";
|
|
18
18
|
import "vuetify/lib/components/VTextarea/index.mjs";
|
19
19
|
import "vuetify/lib/components/VBtnToggle/index.mjs";
|
20
20
|
import "vuetify/lib/components/VSelect/index.mjs";
|
21
|
-
const
|
21
|
+
const x = { class: "overlay" }, A = { class: "text-white" }, y = { class: "text-white" }, R = /* @__PURE__ */ p({
|
22
22
|
__name: "AuthRoute",
|
23
|
-
setup(
|
24
|
-
const
|
23
|
+
setup(S) {
|
24
|
+
const c = (e) => ({
|
25
25
|
scopes: ["https://graph.microsoft.com/.default", "openid", "profile"],
|
26
26
|
redirectStartPage: window.location.href,
|
27
27
|
extraQueryParameters: e
|
28
|
-
}), o =
|
29
|
-
async function
|
28
|
+
}), o = m(!1);
|
29
|
+
async function l() {
|
30
30
|
t.getAllAccounts().length === 0 && (o.value = !0);
|
31
31
|
const e = await t.handleRedirectPromise();
|
32
32
|
if (!e) {
|
33
33
|
await t.initialize();
|
34
|
-
const
|
35
|
-
await t.loginRedirect(
|
34
|
+
const a = c();
|
35
|
+
await t.loginRedirect(a);
|
36
36
|
return;
|
37
37
|
}
|
38
38
|
t.setActiveAccount(e.account);
|
39
39
|
}
|
40
|
-
|
41
|
-
await t.initialize(), await
|
42
|
-
})
|
40
|
+
u(async () => {
|
41
|
+
await t.initialize(), await l();
|
42
|
+
});
|
43
|
+
const i = [
|
44
|
+
{
|
45
|
+
title: "Authenticating...",
|
46
|
+
subtitle: "Please wait."
|
47
|
+
},
|
48
|
+
{
|
49
|
+
title: "Authorized",
|
50
|
+
subtitle: "If this window don't closed automatically, you can close it now."
|
51
|
+
}
|
52
|
+
], r = d(() => o.value ? i[0] : i[1]);
|
53
|
+
return (e, a) => (_(), f("div", x, [
|
54
|
+
n("h3", A, s(r.value.title), 1),
|
55
|
+
h(w(g)),
|
56
|
+
n("p", y, s(r.value.subtitle), 1)
|
57
|
+
]));
|
43
58
|
}
|
44
|
-
});
|
59
|
+
}), J = /* @__PURE__ */ v(R, [["__scopeId", "data-v-b7679fd7"]]);
|
45
60
|
export {
|
46
|
-
|
61
|
+
J as default
|
47
62
|
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("@vueuse/core");require("vuetify/lib/components/VBtn/index.mjs");require("vuetify/components");require("vuetify/lib/components/VIcon/index.mjs");const t=require("./index-BAgZr3O9.js");require("vuetify/lib/components/VCard/index.mjs");require("vuetify/lib/components/VDialog/index.mjs");require("vuetify/lib/components/VDivider/index.mjs");require("vuetify/lib/components/VGrid/index.mjs");require("vuetify/lib/components/VDataTable/index.mjs");require("vuetify/lib/components/VCheckbox/index.mjs");require("vuetify/lib/components/VList/index.mjs");require("vuetify/lib/components/VAvatar/index.mjs");require("vuetify/lib/components/VImg/index.mjs");require("vuetify/lib/components/VMenu/index.mjs");require("vuetify/lib/components/VLabel/index.mjs");require("vuetify/lib/components/VTextarea/index.mjs");require("vuetify/lib/components/VBtnToggle/index.mjs");require("vuetify/lib/components/VSelect/index.mjs");const c={class:"overlay"},l={class:"text-white"},d={class:"text-white"},q=e.defineComponent({__name:"AuthRoute",setup(p){const s=i=>({scopes:["https://graph.microsoft.com/.default","openid","profile"],redirectStartPage:window.location.href,extraQueryParameters:i}),r=e.ref(!1);async function u(){t.msal.getAllAccounts().length===0&&(r.value=!0);const i=await t.msal.handleRedirectPromise();if(!i){await t.msal.initialize();const n=s();await t.msal.loginRedirect(n);return}t.msal.setActiveAccount(i.account)}e.onMounted(async()=>{await t.msal.initialize(),await u()});const o=[{title:"Authenticating...",subtitle:"Please wait."},{title:"Authorized",subtitle:"If this window don't closed automatically, you can close it now."}],a=e.computed(()=>r.value?o[0]:o[1]);return(i,n)=>(e.openBlock(),e.createElementBlock("div",c,[e.createElementVNode("h3",l,e.toDisplayString(a.value.title),1),e.createVNode(e.unref(t.SpinnerLoader)),e.createElementVNode("p",d,e.toDisplayString(a.value.subtitle),1)]))}}),m=t._export_sfc(q,[["__scopeId","data-v-b7679fd7"]]);exports.default=m;
|
@@ -0,0 +1 @@
|
|
1
|
+
.overlay[data-v-b7679fd7]{align-items:center;background:#00000080;display:flex;flex-direction:column;height:100%;justify-content:center;left:0;position:fixed;top:0;width:100%;z-index:10000}.text-white[data-v-b7679fd7]{color:#fff}
|