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.
Files changed (43) hide show
  1. package/dist/{AuthRoute-C8bOEFmi.mjs → AuthRoute-54Pl0J81.mjs} +1 -1
  2. package/dist/{AuthRoute-jIgHKFdU.js → AuthRoute-DwvptKt4.js} +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-CpfCwV2y.js +1 -0
  10. package/dist/WidgetLabel-DW87gbVO.mjs +44 -0
  11. package/dist/WidgetLabel.css +1 -0
  12. package/dist/WidgetShortcut-C_Ga4Z91.js +1 -0
  13. package/dist/WidgetShortcut-aWAR2seM.mjs +36 -0
  14. package/dist/WidgetShortcut.css +1 -0
  15. package/dist/WidgetSpacer-11xp0knO.mjs +20 -0
  16. package/dist/WidgetSpacer-BH9EKTpW.js +1 -0
  17. package/dist/WidgetTask-DGRY2n2N.mjs +154 -0
  18. package/dist/WidgetTask-DJbCSvNG.js +5 -0
  19. package/dist/{index-D69qG4bM.js → index-B0hKovj4.js} +35 -35
  20. package/dist/{index-CXXQstBi.mjs → index-BPA79bUI.mjs} +4960 -4891
  21. package/dist/jplan-pack.cjs.js +1 -1
  22. package/dist/jplan-pack.es.js +34 -32
  23. package/dist/types/index.d.ts +1 -0
  24. package/dist/types/modules/dashboard/dashboard/useDashbordStore.d.ts +15 -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 +3 -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/vue3-apexcharts-B4K8ww3j.mjs +10890 -0
  42. package/dist/vue3-apexcharts-D5PsMTKp.js +940 -0
  43. package/package.json +4 -2
@@ -3,7 +3,7 @@ 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 w, _ as v } from "./index-CXXQstBi.mjs";
6
+ import { m as t, S as w, a as v } from "./index-BPA79bUI.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";
@@ -1 +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-D69qG4bM.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/VAvatar/index.mjs");require("vuetify/lib/components/VImg/index.mjs");require("vuetify/lib/components/VList/index.mjs");require("vuetify/lib/components/VMenu/index.mjs");require("vuetify/lib/components/VDataTable/index.mjs");require("vuetify/lib/components/VTextField/index.mjs");require("vuetify/lib/components/VSelect/index.mjs");require("vuetify/lib/components/VCheckbox/index.mjs");require("vuetify/lib/components/VChip/index.mjs");require("vuetify/lib/components/VLabel/index.mjs");require("vuetify/lib/components/VTextarea/index.mjs");require("vuetify/lib/components/VBtnToggle/index.mjs");const c={class:"overlay",style:{background:"rgba(0, 0, 0, 0.5)",height:"100vh"}},l={class:"text-white"},d={class:"text-white"},q=e.defineComponent({__name:"AuthRoute",setup(m){const s=r=>({scopes:["https://graph.microsoft.com/.default","openid","profile"],redirectStartPage:window.location.href,extraQueryParameters:r}),i=e.ref(!1);async function u(){t.msal.getAllAccounts().length===0&&(i.value=!0);const r=await t.msal.handleRedirectPromise();if(!r){await t.msal.initialize();const n=s();await t.msal.loginRedirect(n);return}t.msal.setActiveAccount(r.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(()=>i.value?o[0]:o[1]);return(r,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)]))}}),h=t._export_sfc(q,[["__scopeId","data-v-f2fc8290"]]);exports.default=h;
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-B0hKovj4.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/VAvatar/index.mjs");require("vuetify/lib/components/VImg/index.mjs");require("vuetify/lib/components/VList/index.mjs");require("vuetify/lib/components/VMenu/index.mjs");require("vuetify/lib/components/VDataTable/index.mjs");require("vuetify/lib/components/VTextField/index.mjs");require("vuetify/lib/components/VSelect/index.mjs");require("vuetify/lib/components/VCheckbox/index.mjs");require("vuetify/lib/components/VChip/index.mjs");require("vuetify/lib/components/VLabel/index.mjs");require("vuetify/lib/components/VTextarea/index.mjs");require("vuetify/lib/components/VBtnToggle/index.mjs");const c={class:"overlay",style:{background:"rgba(0, 0, 0, 0.5)",height:"100vh"}},l={class:"text-white"},d={class:"text-white"},q=e.defineComponent({__name:"AuthRoute",setup(m){const s=r=>({scopes:["https://graph.microsoft.com/.default","openid","profile"],redirectStartPage:window.location.href,extraQueryParameters:r}),i=e.ref(!1);async function u(){t.msal.getAllAccounts().length===0&&(i.value=!0);const r=await t.msal.handleRedirectPromise();if(!r){await t.msal.initialize();const n=s();await t.msal.loginRedirect(n);return}t.msal.setActiveAccount(r.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(()=>i.value?o[0]:o[1]);return(r,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)]))}}),h=t._export_sfc(q,[["__scopeId","data-v-f2fc8290"]]);exports.default=h;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),x=require("./vue3-apexcharts-D5PsMTKp.js"),d=require("vuetify/lib/components/VSheet/index.mjs");function y(o,i){if(o.length===0)throw new Error("Empty data.");const{title:n,x_axis_type:r,x_axis_label:t,x_axis_title:a,y_axis_label:s,y_axis_title:u}=i,c=r==="datetime";return{title:{text:n,style:{fontSize:"18px",fontFamily:"inherit",color:"#F1F1F1",fontWeight:12}},series:[{name:s,data:o.map(l=>({x:c?new Date(l[t]).getTime():l[t],y:Number(l[s])}))}],xaxis:{type:c?"datetime":"category",categories:c?void 0:o.map(l=>l[t]),labels:{style:{colors:"#FFFFFF"}},title:{text:a,style:{color:"rgba(241,241,241,0.69)",cssClass:"text-medium"}}},yaxis:{labels:{style:{colors:"#FFFFFF"}},title:{text:u,style:{color:"rgba(241,241,241,0.69)",cssClass:"text-medium"}}},colors:["#00F981"],grid:{borderColor:"#444"},plotOptions:{bar:{borderRadius:4,horizontal:!1}},dataLabels:{enabled:!0,style:{colors:["#FFFFFF"]}}}}const _=e.defineComponent({__name:"WidgetChartBar",props:{title:{},x_axis_type:{},x_axis_label:{},x_axis_title:{},y_axis_label:{},y_axis_title:{}},setup(o){const i=o,n=[{day:"Sun",executions:25},{day:"Mon",executions:53},{day:"Tue",executions:73},{day:"Wed",executions:103},{day:"Thu",executions:129},{day:"Fri",executions:157},{day:"Sat",executions:202}],r=e.ref(),t=e.ref(),a=e.ref(!1);return e.onMounted(()=>{a.value=!0;const s=y(n,i);r.value=s,t.value=s.series,setTimeout(()=>{a.value=!1},0)}),(s,u)=>r.value&&t.value&&!a.value?(e.openBlock(),e.createBlock(d.VSheet,{key:0,rounded:"md",color:"containerBg",class:"pa-3 h-100"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.unref(x.m),{type:"bar",options:r.value,series:t.value,height:"100%",key:a.value},null,8,["options","series"]))]),_:1})):e.createCommentVNode("",!0)}});exports.default=_;
@@ -0,0 +1,118 @@
1
+ import { defineComponent as y, ref as c, onMounted as m, openBlock as x, createBlock as d, withCtx as _, unref as p, createCommentVNode as F } from "vue";
2
+ import { m as f } from "./vue3-apexcharts-B4K8ww3j.mjs";
3
+ import { VSheet as b } from "vuetify/lib/components/VSheet/index.mjs";
4
+ function h(o, l) {
5
+ if (o.length === 0)
6
+ throw new Error("Empty data.");
7
+ const {
8
+ title: r,
9
+ x_axis_type: s,
10
+ x_axis_label: e,
11
+ x_axis_title: t,
12
+ y_axis_label: a,
13
+ y_axis_title: u
14
+ } = l, n = s === "datetime";
15
+ return {
16
+ title: {
17
+ text: r,
18
+ style: {
19
+ fontSize: "18px",
20
+ fontFamily: "inherit",
21
+ color: "#F1F1F1",
22
+ fontWeight: 12
23
+ }
24
+ },
25
+ series: [
26
+ {
27
+ name: a,
28
+ data: o.map((i) => ({
29
+ x: n ? new Date(i[e]).getTime() : i[e],
30
+ y: Number(i[a])
31
+ }))
32
+ }
33
+ ],
34
+ xaxis: {
35
+ type: n ? "datetime" : "category",
36
+ categories: n ? void 0 : o.map((i) => i[e]),
37
+ labels: {
38
+ style: { colors: "#FFFFFF" }
39
+ },
40
+ title: {
41
+ text: t,
42
+ style: {
43
+ color: "rgba(241,241,241,0.69)",
44
+ cssClass: "text-medium"
45
+ }
46
+ }
47
+ },
48
+ yaxis: {
49
+ labels: {
50
+ style: { colors: "#FFFFFF" }
51
+ },
52
+ title: {
53
+ text: u,
54
+ style: {
55
+ color: "rgba(241,241,241,0.69)",
56
+ cssClass: "text-medium"
57
+ }
58
+ }
59
+ },
60
+ colors: ["#00F981"],
61
+ grid: { borderColor: "#444" },
62
+ plotOptions: {
63
+ bar: { borderRadius: 4, horizontal: !1 }
64
+ },
65
+ dataLabels: {
66
+ enabled: !0,
67
+ style: { colors: ["#FFFFFF"] }
68
+ }
69
+ };
70
+ }
71
+ const B = /* @__PURE__ */ y({
72
+ __name: "WidgetChartBar",
73
+ props: {
74
+ title: {},
75
+ x_axis_type: {},
76
+ x_axis_label: {},
77
+ x_axis_title: {},
78
+ y_axis_label: {},
79
+ y_axis_title: {}
80
+ },
81
+ setup(o) {
82
+ const l = o, r = [
83
+ { day: "Sun", executions: 25 },
84
+ { day: "Mon", executions: 53 },
85
+ { day: "Tue", executions: 73 },
86
+ { day: "Wed", executions: 103 },
87
+ { day: "Thu", executions: 129 },
88
+ { day: "Fri", executions: 157 },
89
+ { day: "Sat", executions: 202 }
90
+ ], s = c(), e = c(), t = c(!1);
91
+ return m(() => {
92
+ t.value = !0;
93
+ const a = h(r, l);
94
+ s.value = a, e.value = a.series, setTimeout(() => {
95
+ t.value = !1;
96
+ }, 0);
97
+ }), (a, u) => s.value && e.value && !t.value ? (x(), d(b, {
98
+ key: 0,
99
+ rounded: "md",
100
+ color: "containerBg",
101
+ class: "pa-3 h-100"
102
+ }, {
103
+ default: _(() => [
104
+ (x(), d(p(f), {
105
+ type: "bar",
106
+ options: s.value,
107
+ series: e.value,
108
+ height: "100%",
109
+ key: t.value
110
+ }, null, 8, ["options", "series"]))
111
+ ]),
112
+ _: 1
113
+ })) : F("", !0);
114
+ }
115
+ });
116
+ export {
117
+ B as default
118
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),i=require("./vue3-apexcharts-D5PsMTKp.js"),c=require("vuetify/lib/components/VSheet/index.mjs");function u(l,s){if(l.length===0)throw new Error("Empty data.");const{title:a,labels:t,series:o}=s;return{chart:{type:"pie"},title:{text:a,style:{fontSize:"18px",fontFamily:"inherit",color:"#F1F1F1",fontWeight:12}},labels:t,series:o,colors:["#00F981","#dc3545"],legend:{show:!0,labels:{colors:"#FFFFFF"}},dataLabels:{enabled:!0,formatter:(r,n)=>n.w.config.series[n.seriesIndex],style:{fontSize:"16px",fontWeight:"bold",colors:["#FFFFFF"]}},stroke:{show:!1}}}const d=e.defineComponent({__name:"WidgetChartPieStatic",setup(l){const s=[{status:"Success",count:12},{status:"Fail",count:4}],a={title:"Execution Status for the Past Week",labels:s.map(r=>r.status),series:s.map(r=>r.count)},t=e.ref(),o=e.ref(!1);return e.onMounted(()=>{o.value=!0,t.value=u(s,a),setTimeout(()=>{o.value=!1},0)}),(r,n)=>t.value&&!o.value?(e.openBlock(),e.createBlock(c.VSheet,{key:0,rounded:"md",color:"containerBg",class:"pa-3 h-100"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.unref(i.m),{type:"pie",options:t.value,series:t.value.series,width:"100%",height:"100%",key:o.value},null,8,["options","series"]))]),_:1})):e.createCommentVNode("",!0)}});exports.default=d;
@@ -0,0 +1,82 @@
1
+ import { defineComponent as u, ref as i, onMounted as f, openBlock as l, createBlock as c, withCtx as p, unref as m, createCommentVNode as d } from "vue";
2
+ import { m as h } from "./vue3-apexcharts-B4K8ww3j.mjs";
3
+ import { VSheet as F } from "vuetify/lib/components/VSheet/index.mjs";
4
+ function g(n, o) {
5
+ if (n.length === 0)
6
+ throw new Error("Empty data.");
7
+ const { title: a, labels: e, series: t } = o;
8
+ return {
9
+ chart: {
10
+ type: "pie"
11
+ },
12
+ title: {
13
+ text: a,
14
+ style: {
15
+ fontSize: "18px",
16
+ fontFamily: "inherit",
17
+ color: "#F1F1F1",
18
+ fontWeight: 12
19
+ }
20
+ },
21
+ labels: e,
22
+ series: t,
23
+ colors: ["#00F981", "#dc3545"],
24
+ // Customize as needed
25
+ legend: {
26
+ show: !0,
27
+ labels: {
28
+ colors: "#FFFFFF"
29
+ }
30
+ },
31
+ dataLabels: {
32
+ enabled: !0,
33
+ formatter: (s, r) => r.w.config.series[r.seriesIndex],
34
+ style: {
35
+ fontSize: "16px",
36
+ fontWeight: "bold",
37
+ colors: ["#FFFFFF"]
38
+ }
39
+ },
40
+ stroke: {
41
+ show: !1
42
+ }
43
+ };
44
+ }
45
+ const y = /* @__PURE__ */ u({
46
+ __name: "WidgetChartPieStatic",
47
+ setup(n) {
48
+ const o = [
49
+ { status: "Success", count: 12 },
50
+ { status: "Fail", count: 4 }
51
+ ], a = {
52
+ title: "Execution Status for the Past Week",
53
+ labels: o.map((s) => s.status),
54
+ series: o.map((s) => s.count)
55
+ }, e = i(), t = i(!1);
56
+ return f(() => {
57
+ t.value = !0, e.value = g(o, a), setTimeout(() => {
58
+ t.value = !1;
59
+ }, 0);
60
+ }), (s, r) => e.value && !t.value ? (l(), c(F, {
61
+ key: 0,
62
+ rounded: "md",
63
+ color: "containerBg",
64
+ class: "pa-3 h-100"
65
+ }, {
66
+ default: p(() => [
67
+ (l(), c(m(h), {
68
+ type: "pie",
69
+ options: e.value,
70
+ series: e.value.series,
71
+ width: "100%",
72
+ height: "100%",
73
+ key: t.value
74
+ }, null, 8, ["options", "series"]))
75
+ ]),
76
+ _: 1
77
+ })) : d("", !0);
78
+ }
79
+ });
80
+ export {
81
+ y as default
82
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("vuetify/lib/components/VImg/index.mjs"),c=require("vuetify/lib/components/VSheet/index.mjs"),i={class:"d-flex h-100 w-100 flex-column align-items-center justify-center overflow-hidden"},s={key:0,class:"w-100 align-self-center"},a=e.defineComponent({__name:"WidgetImage",props:{image:{}},setup(u){const r=e.ref(!1);function o(){r.value=!0}return(n,t)=>(e.openBlock(),e.createElementBlock("div",i,[r.value?(e.openBlock(),e.createBlock(c.VSheet,{key:1,color:"lighterror",elevation:"0",width:"100%",height:"100%",variant:"flat"},{default:e.withCtx(()=>t[0]||(t[0]=[e.createElementVNode("p",{class:""},"Error loading yout picture. Check your link.",-1)])),_:1})):(e.openBlock(),e.createElementBlock("div",s,[e.createVNode(l.VImg,{src:n.image,onError:o},null,8,["src"])]))]))}});exports.default=a;
@@ -0,0 +1,41 @@
1
+ import { defineComponent as i, ref as a, openBlock as e, createElementBlock as o, createVNode as c, createBlock as s, withCtx as m, createElementVNode as f } from "vue";
2
+ import { VImg as d } from "vuetify/lib/components/VImg/index.mjs";
3
+ import { VSheet as u } from "vuetify/lib/components/VSheet/index.mjs";
4
+ const p = { class: "d-flex h-100 w-100 flex-column align-items-center justify-center overflow-hidden" }, g = {
5
+ key: 0,
6
+ class: "w-100 align-self-center"
7
+ }, w = /* @__PURE__ */ i({
8
+ __name: "WidgetImage",
9
+ props: {
10
+ image: {}
11
+ },
12
+ setup(h) {
13
+ const r = a(!1);
14
+ function n() {
15
+ r.value = !0;
16
+ }
17
+ return (l, t) => (e(), o("div", p, [
18
+ r.value ? (e(), s(u, {
19
+ key: 1,
20
+ color: "lighterror",
21
+ elevation: "0",
22
+ width: "100%",
23
+ height: "100%",
24
+ variant: "flat"
25
+ }, {
26
+ default: m(() => t[0] || (t[0] = [
27
+ f("p", { class: "" }, "Error loading yout picture. Check your link.", -1)
28
+ ])),
29
+ _: 1
30
+ })) : (e(), o("div", g, [
31
+ c(d, {
32
+ src: l.image,
33
+ onError: n
34
+ }, null, 8, ["src"])
35
+ ]))
36
+ ]));
37
+ }
38
+ });
39
+ export {
40
+ w as default
41
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),c=require("vuetify/lib/components/VCard/index.mjs"),o=require("./index-B0hKovj4.js"),a=e.defineComponent({__name:"WidgetLabel",props:{label:{},font_size:{}},setup(n){const t=n,s=r=>{switch(r){case"body":return"text-body-1";case"sm":return"text-h5";case"md":return"text-h4";case"lg":return"text-h3";default:return"text-body-1"}};return(r,i)=>(e.openBlock(),e.createBlock(c.VCard,{color:"containerBg",class:"w-100 h-100 d-flex align-center justify-center"},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass([s(t.font_size),"text-center truncate"])},e.toDisplayString(t.label),3)]),_:1}))}}),l=o._export_sfc(a,[["__scopeId","data-v-9d79374d"]]);exports.default=l;
@@ -0,0 +1,44 @@
1
+ import { defineComponent as o, openBlock as s, createBlock as n, withCtx as c, createElementVNode as l, normalizeClass as d, toDisplayString as i } from "vue";
2
+ import { VCard as p } from "vuetify/lib/components/VCard/index.mjs";
3
+ import { a as f } from "./index-BPA79bUI.mjs";
4
+ const m = /* @__PURE__ */ o({
5
+ __name: "WidgetLabel",
6
+ props: {
7
+ label: {},
8
+ font_size: {}
9
+ },
10
+ setup(r) {
11
+ const e = r, a = (t) => {
12
+ switch (t) {
13
+ case "body":
14
+ return "text-body-1";
15
+ case "sm":
16
+ return "text-h5";
17
+ case "md":
18
+ return "text-h4";
19
+ case "lg":
20
+ return "text-h3";
21
+ /* case 'xl':
22
+ return 'text-h2';
23
+ case 'xxl':
24
+ return 'text-h1';*/
25
+ default:
26
+ return "text-body-1";
27
+ }
28
+ };
29
+ return (t, u) => (s(), n(p, {
30
+ color: "containerBg",
31
+ class: "w-100 h-100 d-flex align-center justify-center"
32
+ }, {
33
+ default: c(() => [
34
+ l("div", {
35
+ class: d([a(e.font_size), "text-center truncate"])
36
+ }, i(e.label), 3)
37
+ ]),
38
+ _: 1
39
+ }));
40
+ }
41
+ }), g = /* @__PURE__ */ f(m, [["__scopeId", "data-v-9d79374d"]]);
42
+ export {
43
+ g as default
44
+ };
@@ -0,0 +1 @@
1
+ .truncate[data-v-9d79374d]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-B0hKovj4.js"),i=require("vuetify/lib/components/VImg/index.mjs"),s=require("vuetify/lib/components/VSheet/index.mjs"),a={class:"text-h6 text-center truncate w-100 px-4 mb-4"},u=e.defineComponent({__name:"WidgetShortcut",props:{title:{},image:{},url:{}},setup(r){const t=r,{edition:o}=n.useDashboardStore();function c(){window.open(t.url,"__blank")}return(l,_)=>(e.openBlock(),e.createBlock(s.VSheet,e.mergeProps(e.unref(o)?{}:{onClick:c},{ripple:"",rounded:"md",class:"d-flex flex-column align-center justify-center w-100 h-100 bg-containerBg"}),{default:e.withCtx(()=>[e.createVNode(i.VImg,{src:t.image,height:"45",width:"45"},null,8,["src"]),e.createElementVNode("div",a,e.toDisplayString(t.title),1)]),_:1},16))}}),d=n._export_sfc(u,[["__scopeId","data-v-7045e16b"]]);exports.default=d;
@@ -0,0 +1,36 @@
1
+ import { defineComponent as n, openBlock as c, createBlock as i, mergeProps as a, unref as s, withCtx as l, createVNode as p, createElementVNode as d, toDisplayString as m } from "vue";
2
+ import { u, a as _ } from "./index-BPA79bUI.mjs";
3
+ import { VImg as f } from "vuetify/lib/components/VImg/index.mjs";
4
+ import { VSheet as g } from "vuetify/lib/components/VSheet/index.mjs";
5
+ const h = { class: "text-h6 text-center truncate w-100 px-4 mb-4" }, x = /* @__PURE__ */ n({
6
+ __name: "WidgetShortcut",
7
+ props: {
8
+ title: {},
9
+ image: {},
10
+ url: {}
11
+ },
12
+ setup(t) {
13
+ const e = t, { edition: o } = u();
14
+ function r() {
15
+ window.open(e.url, "__blank");
16
+ }
17
+ return (w, b) => (c(), i(g, a(s(o) ? {} : { onClick: r }, {
18
+ ripple: "",
19
+ rounded: "md",
20
+ class: "d-flex flex-column align-center justify-center w-100 h-100 bg-containerBg"
21
+ }), {
22
+ default: l(() => [
23
+ p(f, {
24
+ src: e.image,
25
+ height: "45",
26
+ width: "45"
27
+ }, null, 8, ["src"]),
28
+ d("div", h, m(e.title), 1)
29
+ ]),
30
+ _: 1
31
+ }, 16));
32
+ }
33
+ }), B = /* @__PURE__ */ _(x, [["__scopeId", "data-v-7045e16b"]]);
34
+ export {
35
+ B as default
36
+ };
@@ -0,0 +1 @@
1
+ .truncate[data-v-7045e16b]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
@@ -0,0 +1,20 @@
1
+ import { defineComponent as t, unref as r, openBlock as e, createElementBlock as c, createBlock as n } from "vue";
2
+ import { u as a } from "./index-BPA79bUI.mjs";
3
+ import { VCard as s } from "vuetify/lib/components/VCard/index.mjs";
4
+ const i = {
5
+ key: 0,
6
+ class: "w-100 h-100"
7
+ }, u = /* @__PURE__ */ t({
8
+ __name: "WidgetSpacer",
9
+ setup(l) {
10
+ const { edition: o } = a();
11
+ return (m, p) => r(o) ? (e(), n(s, {
12
+ key: 1,
13
+ color: "containerBg",
14
+ class: "w-100 h-100 d-flex align-center justify-center"
15
+ })) : (e(), c("div", i));
16
+ }
17
+ });
18
+ export {
19
+ u as default
20
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-B0hKovj4.js"),o=require("vuetify/lib/components/VCard/index.mjs"),r={key:0,class:"w-100 h-100"},c=e.defineComponent({__name:"WidgetSpacer",setup(s){const{edition:t}=n.useDashboardStore();return(i,a)=>e.unref(t)?(e.openBlock(),e.createBlock(o.VCard,{key:1,color:"containerBg",class:"w-100 h-100 d-flex align-center justify-center"})):(e.openBlock(),e.createElementBlock("div",r))}});exports.default=c;
@@ -0,0 +1,154 @@
1
+ import { inject as h, defineComponent as y, resolveComponent as i, openBlock as d, createBlock as m, withCtx as r, createVNode as e, createElementVNode as n, toDisplayString as s, createTextVNode as l, unref as p, mergeProps as D, createCommentVNode as S } from "vue";
2
+ import "@vueuse/core";
3
+ import { VBtn as u } from "vuetify/lib/components/VBtn/index.mjs";
4
+ import "vuetify/components";
5
+ import "vuetify/lib/components/VIcon/index.mjs";
6
+ import { _ as w } from "./index-BPA79bUI.mjs";
7
+ import { VCard as C, VCardText as g } from "vuetify/lib/components/VCard/index.mjs";
8
+ import "vuetify/lib/components/VDialog/index.mjs";
9
+ import "vuetify/lib/components/VAvatar/index.mjs";
10
+ import "vuetify/lib/components/VImg/index.mjs";
11
+ import { VList as I, VListItem as _ } from "vuetify/lib/components/VList/index.mjs";
12
+ import { VMenu as B } from "vuetify/lib/components/VMenu/index.mjs";
13
+ import "vuetify/lib/components/VDataTable/index.mjs";
14
+ import "vuetify/lib/components/VTextField/index.mjs";
15
+ import "vuetify/lib/components/VDivider/index.mjs";
16
+ import "vuetify/lib/components/VGrid/index.mjs";
17
+ import "vuetify/lib/components/VSelect/index.mjs";
18
+ import "vuetify/lib/components/VCheckbox/index.mjs";
19
+ import "vuetify/lib/components/VChip/index.mjs";
20
+ import "vuetify/lib/components/VLabel/index.mjs";
21
+ import "vuetify/lib/components/VTextarea/index.mjs";
22
+ import "vuetify/lib/components/VBtnToggle/index.mjs";
23
+ import { VBanner as O } from "vuetify/lib/components/VBanner/index.mjs";
24
+ /*!
25
+ * vue-router v4.5.0
26
+ * (c) 2024 Eduardo San Martin Morote
27
+ * @license MIT
28
+ */
29
+ var f;
30
+ (function(o) {
31
+ o.pop = "pop", o.push = "push";
32
+ })(f || (f = {}));
33
+ var b;
34
+ (function(o) {
35
+ o.back = "back", o.forward = "forward", o.unknown = "";
36
+ })(b || (b = {}));
37
+ Symbol(process.env.NODE_ENV !== "production" ? "navigation failure" : "");
38
+ var v;
39
+ (function(o) {
40
+ o[o.aborted = 4] = "aborted", o[o.cancelled = 8] = "cancelled", o[o.duplicated = 16] = "duplicated";
41
+ })(v || (v = {}));
42
+ Symbol(process.env.NODE_ENV !== "production" ? "router view location matched" : "");
43
+ Symbol(process.env.NODE_ENV !== "production" ? "router view depth" : "");
44
+ const k = Symbol(process.env.NODE_ENV !== "production" ? "router" : "");
45
+ Symbol(process.env.NODE_ENV !== "production" ? "route location" : "");
46
+ Symbol(process.env.NODE_ENV !== "production" ? "router view location" : "");
47
+ function z() {
48
+ return h(k);
49
+ }
50
+ const L = { class: "d-flex align-start ga-2" }, T = { class: "d-block text-truncate" }, $ = { class: "text-h6 text-truncate" }, j = { class: "text-secondary text-subtitle-2 d-flex align-center cursor-pointer mt-2" }, G = { class: "mt-4" }, at = /* @__PURE__ */ y({
51
+ __name: "WidgetTask",
52
+ props: {
53
+ description: {},
54
+ userStory: {},
55
+ dueDate: {},
56
+ id: {},
57
+ priority: {},
58
+ title: {}
59
+ },
60
+ setup(o) {
61
+ const t = o, V = z();
62
+ return (K, c) => {
63
+ const x = i("NotebookIcon"), E = i("DotsVerticalIcon"), N = i("CalendarTimeIcon");
64
+ return d(), m(C, {
65
+ color: "containerBg",
66
+ variant: "flat",
67
+ class: "border"
68
+ }, {
69
+ default: r(() => [
70
+ e(g, { class: "pa-4" }, {
71
+ default: r(() => [
72
+ n("div", L, [
73
+ n("div", T, [
74
+ n("h4", $, s(t == null ? void 0 : t.title), 1),
75
+ n("a", j, [
76
+ e(x, { size: "14" }),
77
+ l(" User Story #" + s(t == null ? void 0 : t.userStory), 1)
78
+ ])
79
+ ]),
80
+ e(p(w), {
81
+ title: `Task #${t == null ? void 0 : t.userStory}`,
82
+ width: "1200",
83
+ variant: "global"
84
+ }, null, 8, ["title"]),
85
+ e(B, { class: "rounded-sm" }, {
86
+ activator: r(({ props: a }) => [
87
+ e(u, {
88
+ icon: "",
89
+ size: "small",
90
+ variant: "text",
91
+ class: "ml-auto"
92
+ }, {
93
+ default: r(() => [
94
+ e(E, D({ size: "14" }, a), null, 16)
95
+ ]),
96
+ _: 2
97
+ }, 1024)
98
+ ]),
99
+ default: r(() => [
100
+ e(I, null, {
101
+ default: r(() => [
102
+ e(_, null, {
103
+ default: r(() => [
104
+ e(_, {
105
+ onClick: c[0] || (c[0] = (a) => p(V).push("/dev/kanban/list"))
106
+ }, {
107
+ default: r(() => c[1] || (c[1] = [
108
+ l("Go To")
109
+ ])),
110
+ _: 1
111
+ })
112
+ ]),
113
+ _: 1
114
+ })
115
+ ]),
116
+ _: 1
117
+ })
118
+ ]),
119
+ _: 1
120
+ })
121
+ ]),
122
+ e(O, {
123
+ class: "mx-0 px-0 text-borderLight bg-containerBg",
124
+ lines: "two",
125
+ text: t == null ? void 0 : t.description
126
+ }, null, 8, ["text"]),
127
+ n("div", G, [
128
+ t != null && t.dueDate ? (d(), m(u, {
129
+ key: 0,
130
+ variant: "tonal"
131
+ }, {
132
+ default: r(() => [
133
+ e(N, {
134
+ color: "secondary",
135
+ size: "20",
136
+ class: "me-2"
137
+ }),
138
+ l(" " + s(t.dueDate), 1)
139
+ ]),
140
+ _: 1
141
+ })) : S("", !0)
142
+ ])
143
+ ]),
144
+ _: 1
145
+ })
146
+ ]),
147
+ _: 1
148
+ });
149
+ };
150
+ }
151
+ });
152
+ export {
153
+ at as default
154
+ };
@@ -0,0 +1,5 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("@vueuse/core");const i=require("vuetify/lib/components/VBtn/index.mjs");require("vuetify/components");require("vuetify/lib/components/VIcon/index.mjs");const V=require("./index-B0hKovj4.js"),s=require("vuetify/lib/components/VCard/index.mjs");require("vuetify/lib/components/VDialog/index.mjs");require("vuetify/lib/components/VAvatar/index.mjs");require("vuetify/lib/components/VImg/index.mjs");const n=require("vuetify/lib/components/VList/index.mjs"),x=require("vuetify/lib/components/VMenu/index.mjs");require("vuetify/lib/components/VDataTable/index.mjs");require("vuetify/lib/components/VTextField/index.mjs");require("vuetify/lib/components/VDivider/index.mjs");require("vuetify/lib/components/VGrid/index.mjs");require("vuetify/lib/components/VSelect/index.mjs");require("vuetify/lib/components/VCheckbox/index.mjs");require("vuetify/lib/components/VChip/index.mjs");require("vuetify/lib/components/VLabel/index.mjs");require("vuetify/lib/components/VTextarea/index.mjs");require("vuetify/lib/components/VBtnToggle/index.mjs");const N=require("vuetify/lib/components/VBanner/index.mjs");/*!
2
+ * vue-router v4.5.0
3
+ * (c) 2024 Eduardo San Martin Morote
4
+ * @license MIT
5
+ */var a;(function(o){o.pop="pop",o.push="push"})(a||(a={}));var d;(function(o){o.back="back",o.forward="forward",o.unknown=""})(d||(d={}));Symbol(process.env.NODE_ENV!=="production"?"navigation failure":"");var l;(function(o){o[o.aborted=4]="aborted",o[o.cancelled=8]="cancelled",o[o.duplicated=16]="duplicated"})(l||(l={}));Symbol(process.env.NODE_ENV!=="production"?"router view location matched":"");Symbol(process.env.NODE_ENV!=="production"?"router view depth":"");const f=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 q(){return e.inject(f)}const v={class:"d-flex align-start ga-2"},b={class:"d-block text-truncate"},h={class:"text-h6 text-truncate"},C={class:"text-secondary text-subtitle-2 d-flex align-center cursor-pointer mt-2"},w={class:"mt-4"},E=e.defineComponent({__name:"WidgetTask",props:{description:{},userStory:{},dueDate:{},id:{},priority:{},title:{}},setup(o){const t=o,u=q();return(y,r)=>{const m=e.resolveComponent("NotebookIcon"),p=e.resolveComponent("DotsVerticalIcon"),_=e.resolveComponent("CalendarTimeIcon");return e.openBlock(),e.createBlock(s.VCard,{color:"containerBg",variant:"flat",class:"border"},{default:e.withCtx(()=>[e.createVNode(s.VCardText,{class:"pa-4"},{default:e.withCtx(()=>[e.createElementVNode("div",v,[e.createElementVNode("div",b,[e.createElementVNode("h4",h,e.toDisplayString(t==null?void 0:t.title),1),e.createElementVNode("a",C,[e.createVNode(m,{size:"14"}),e.createTextVNode(" User Story #"+e.toDisplayString(t==null?void 0:t.userStory),1)])]),e.createVNode(e.unref(V._sfc_main),{title:`Task #${t==null?void 0:t.userStory}`,width:"1200",variant:"global"},null,8,["title"]),e.createVNode(x.VMenu,{class:"rounded-sm"},{activator:e.withCtx(({props:c})=>[e.createVNode(i.VBtn,{icon:"",size:"small",variant:"text",class:"ml-auto"},{default:e.withCtx(()=>[e.createVNode(p,e.mergeProps({size:"14"},c),null,16)]),_:2},1024)]),default:e.withCtx(()=>[e.createVNode(n.VList,null,{default:e.withCtx(()=>[e.createVNode(n.VListItem,null,{default:e.withCtx(()=>[e.createVNode(n.VListItem,{onClick:r[0]||(r[0]=c=>e.unref(u).push("/dev/kanban/list"))},{default:e.withCtx(()=>r[1]||(r[1]=[e.createTextVNode("Go To")])),_:1})]),_:1})]),_:1})]),_:1})]),e.createVNode(N.VBanner,{class:"mx-0 px-0 text-borderLight bg-containerBg",lines:"two",text:t==null?void 0:t.description},null,8,["text"]),e.createElementVNode("div",w,[t!=null&&t.dueDate?(e.openBlock(),e.createBlock(i.VBtn,{key:0,variant:"tonal"},{default:e.withCtx(()=>[e.createVNode(_,{color:"secondary",size:"20",class:"me-2"}),e.createTextVNode(" "+e.toDisplayString(t.dueDate),1)]),_:1})):e.createCommentVNode("",!0)])]),_:1})]),_:1})}}});exports.default=E;