version 1-after PWA: 1st draft including PWA built, ready for integraton testing
This commit is contained in:
parent
1ea6cf49ad
commit
772cece2df
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1 +1 @@
|
|||
import{_ as s,a as t,d as o,f as a,g as _}from"./index-BUdRbiwj.js";const c={class:"assets-view"},r={__name:"AssetsView",setup(n){return(p,i)=>{const e=a("router-view");return _(),t("div",c,[o(e)])}}},m=s(r,[["__scopeId","data-v-b5ae2e46"]]);export{m as default};
|
||||
import{_ as s,a as t,d as o,f as a,g as _}from"./index-QAlcqU00.js";const c={class:"assets-view"},r={__name:"AssetsView",setup(n){return(p,i)=>{const e=a("router-view");return _(),t("div",c,[o(e)])}}},m=s(r,[["__scopeId","data-v-b5ae2e46"]]);export{m as default};
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -1 +1 @@
|
|||
import{r as o,a,b as t,aS as i,t as l,g as r}from"./index-BUdRbiwj.js";const d={class:"min-h-screen bg-gray-50 py-8"},c={class:"max-w-4xl mx-auto px-4"},p={class:"bg-white p-6 rounded-lg shadow mb-6"},x={class:"text-gray-600 mb-4"},m={__name:"BasicTest",setup(u){const s=o(0);return console.log("BasicTest component loaded successfully"),console.log("Vue ref working:",s.value),(b,e)=>(r(),a("div",d,[t("div",c,[e[3]||(e[3]=i('<h1 class="text-3xl font-bold text-gray-900 mb-8">Basic Setup Test</h1><div class="bg-white p-6 rounded-lg shadow mb-6"><h2 class="text-xl font-semibold text-gray-800 mb-4">✅ TailwindCSS Test</h2><p class="text-gray-600 mb-4">If you can see this styled content, TailwindCSS is working correctly.</p><div class="grid grid-cols-5 gap-2 mb-4"><div class="h-12 bg-primary-100 rounded flex items-center justify-center text-xs">100</div><div class="h-12 bg-primary-300 rounded flex items-center justify-center text-xs">300</div><div class="h-12 bg-primary-500 rounded flex items-center justify-center text-xs text-white">500</div><div class="h-12 bg-primary-700 rounded flex items-center justify-center text-xs text-white">700</div><div class="h-12 bg-primary-900 rounded flex items-center justify-center text-xs text-white">900</div></div><button class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded transition-colors"> Basic Button </button></div>',2)),t("div",p,[e[2]||(e[2]=t("h2",{class:"text-xl font-semibold text-gray-800 mb-4"},"✅ Vue 3 Reactivity Test",-1)),t("p",x,"Counter: "+l(s.value),1),t("button",{onClick:e[0]||(e[0]=n=>s.value++),class:"bg-green-500 hover:bg-green-700 text-white font-bold py-2 px-4 rounded mr-2"}," Increment "),t("button",{onClick:e[1]||(e[1]=n=>s.value=0),class:"bg-red-500 hover:bg-red-700 text-white font-bold py-2 px-4 rounded"}," Reset ")]),e[4]||(e[4]=i('<div class="bg-white p-6 rounded-lg shadow mb-6"><h2 class="text-xl font-semibold text-gray-800 mb-4">📦 Import Status</h2><div class="space-y-2 text-sm"><div class="flex justify-between"><span>Vue:</span><span class="text-green-600">✅ Working</span></div><div class="flex justify-between"><span>TailwindCSS:</span><span class="text-green-600">✅ Working</span></div><div class="flex justify-between"><span>Theme Colors:</span><span class="text-green-600">✅ Working</span></div></div></div><div class="bg-blue-50 border border-blue-200 p-6 rounded-lg"><h2 class="text-xl font-semibold text-blue-800 mb-4">🚀 Next Steps</h2><p class="text-blue-600 mb-4"> Basic setup is working! Now we can gradually add Frappe UI components. </p><div class="text-sm text-blue-600"><p>1. ✅ Vue 3 + Vite setup</p><p>2. ✅ TailwindCSS configuration</p><p>3. ✅ Custom color theme</p><p>4. 🔄 Add Frappe UI components (next)</p></div></div>',2))])]))}};export{m as default};
|
||||
import{r as o,a,b as t,aT as i,t as l,g as r}from"./index-QAlcqU00.js";const d={class:"min-h-screen bg-gray-50 py-8"},c={class:"max-w-4xl mx-auto px-4"},p={class:"bg-white p-6 rounded-lg shadow mb-6"},x={class:"text-gray-600 mb-4"},m={__name:"BasicTest",setup(u){const s=o(0);return console.log("BasicTest component loaded successfully"),console.log("Vue ref working:",s.value),(b,e)=>(r(),a("div",d,[t("div",c,[e[3]||(e[3]=i('<h1 class="text-3xl font-bold text-gray-900 mb-8">Basic Setup Test</h1><div class="bg-white p-6 rounded-lg shadow mb-6"><h2 class="text-xl font-semibold text-gray-800 mb-4">✅ TailwindCSS Test</h2><p class="text-gray-600 mb-4">If you can see this styled content, TailwindCSS is working correctly.</p><div class="grid grid-cols-5 gap-2 mb-4"><div class="h-12 bg-primary-100 rounded flex items-center justify-center text-xs">100</div><div class="h-12 bg-primary-300 rounded flex items-center justify-center text-xs">300</div><div class="h-12 bg-primary-500 rounded flex items-center justify-center text-xs text-white">500</div><div class="h-12 bg-primary-700 rounded flex items-center justify-center text-xs text-white">700</div><div class="h-12 bg-primary-900 rounded flex items-center justify-center text-xs text-white">900</div></div><button class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded transition-colors"> Basic Button </button></div>',2)),t("div",p,[e[2]||(e[2]=t("h2",{class:"text-xl font-semibold text-gray-800 mb-4"},"✅ Vue 3 Reactivity Test",-1)),t("p",x,"Counter: "+l(s.value),1),t("button",{onClick:e[0]||(e[0]=n=>s.value++),class:"bg-green-500 hover:bg-green-700 text-white font-bold py-2 px-4 rounded mr-2"}," Increment "),t("button",{onClick:e[1]||(e[1]=n=>s.value=0),class:"bg-red-500 hover:bg-red-700 text-white font-bold py-2 px-4 rounded"}," Reset ")]),e[4]||(e[4]=i('<div class="bg-white p-6 rounded-lg shadow mb-6"><h2 class="text-xl font-semibold text-gray-800 mb-4">📦 Import Status</h2><div class="space-y-2 text-sm"><div class="flex justify-between"><span>Vue:</span><span class="text-green-600">✅ Working</span></div><div class="flex justify-between"><span>TailwindCSS:</span><span class="text-green-600">✅ Working</span></div><div class="flex justify-between"><span>Theme Colors:</span><span class="text-green-600">✅ Working</span></div></div></div><div class="bg-blue-50 border border-blue-200 p-6 rounded-lg"><h2 class="text-xl font-semibold text-blue-800 mb-4">🚀 Next Steps</h2><p class="text-blue-600 mb-4"> Basic setup is working! Now we can gradually add Frappe UI components. </p><div class="text-sm text-blue-600"><p>1. ✅ Vue 3 + Vite setup</p><p>2. ✅ TailwindCSS configuration</p><p>3. ✅ Custom color theme</p><p>4. 🔄 Add Frappe UI components (next)</p></div></div>',2))])]))}};export{m as default};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1 +1 @@
|
|||
import{i as o,f as r,g as t}from"./index-BUdRbiwj.js";const c={__name:"CategoriesView",setup(n){return(s,_)=>{const e=r("router-view");return t(),o(e)}}};export{c as default};
|
||||
import{i as o,f as r,g as t}from"./index-QAlcqU00.js";const c={__name:"CategoriesView",setup(n){return(s,_)=>{const e=r("router-view");return t(),o(e)}}};export{c as default};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -0,0 +1 @@
|
|||
import{i as o,f as t,g as r}from"./index-QAlcqU00.js";const a={__name:"ContractsView",setup(n){return(c,s)=>{const e=t("router-view");return r(),o(e)}}};export{a as default};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1 +1 @@
|
|||
import{i as o,f as r,g as t}from"./index-BUdRbiwj.js";const a={__name:"CustomersView",setup(s){return(n,_)=>{const e=r("router-view");return t(),o(e)}}};export{a as default};
|
||||
import{i as o,f as r,g as t}from"./index-QAlcqU00.js";const a={__name:"CustomersView",setup(s){return(n,_)=>{const e=r("router-view");return t(),o(e)}}};export{a as default};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -0,0 +1 @@
|
|||
import{i as o,f as t,g as r}from"./index-QAlcqU00.js";const a={__name:"DocumentsView",setup(n){return(c,s)=>{const e=t("router-view");return r(),o(e)}}};export{a as default};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1 +1 @@
|
|||
import{_ as h,r as w,c as n,m as k,a as i,j as u,g as d,b as s,t as f,n as a,p as _,k as B}from"./index-BUdRbiwj.js";const S={class:"flex-shrink-0"},F={class:"text-lg"},N={class:"ml-3 flex-1"},V={key:0,class:"ml-4 flex-shrink-0"},$={__name:"FPAlert",props:{type:{type:String,default:"info",validator:o=>["success","warning","error","info"].includes(o)},title:{type:String,default:""},message:{type:String,default:""},closable:{type:Boolean,default:!1},show:{type:Boolean,default:!0}},emits:["close"],setup(o,{emit:g}){const t=o,C=g,c=w(t.show),r={success:{icon:"✅",bgColor:"bg-success-50",borderColor:"border-success-200",textColor:"text-success-800",titleColor:"text-success-900"},warning:{icon:"⚠️",bgColor:"bg-warning-50",borderColor:"border-warning-200",textColor:"text-warning-800",titleColor:"text-warning-900"},error:{icon:"❌",bgColor:"bg-error-50",borderColor:"border-error-200",textColor:"text-error-800",titleColor:"text-error-900"},info:{icon:"ℹ️",bgColor:"bg-info-50",borderColor:"border-info-200",textColor:"text-info-800",titleColor:"text-info-900"}},b=n(()=>{const e=r[t.type];return["atlas-alert","flex","p-4","rounded-md","border",e.bgColor,e.borderColor]}),x=n(()=>r[t.type].icon),m=n(()=>["text-sm","font-medium",r[t.type].titleColor]),p=n(()=>{const l=["text-sm",r[t.type].textColor];return t.title&&l.push("mt-1"),l}),v=n(()=>{const e=r[t.type];return["inline-flex","rounded-md","p-1.5","transition-colors","focus:outline-none","focus:ring-2","focus:ring-offset-2",e.textColor,`hover:${e.bgColor}`,`focus:ring-${t.type}-500`]}),y=()=>{c.value=!1,C("close")};return k(()=>t.show,e=>{c.value=e}),(e,l)=>c.value?(d(),i("div",{key:0,class:a(b.value),role:"alert"},[s("div",S,[s("span",F,f(x.value),1)]),s("div",N,[o.title?(d(),i("h3",{key:0,class:a(m.value)},f(o.title),3)):u("",!0),s("div",{class:a(p.value)},[_(e.$slots,"default",{},()=>[B(f(o.message),1)],!0)],2)]),o.closable?(d(),i("div",V,[s("button",{type:"button",class:a(v.value),onClick:y},l[0]||(l[0]=[s("span",{class:"text-lg"},"×",-1)]),2)])):u("",!0)],2)):u("",!0)}},I=h($,[["__scopeId","data-v-6db12345"]]);export{I as F};
|
||||
import{_ as h,r as w,c as n,m as k,a as i,j as u,g as d,b as s,t as f,n as a,p as _,k as B}from"./index-QAlcqU00.js";const S={class:"flex-shrink-0"},F={class:"text-lg"},N={class:"ml-3 flex-1"},V={key:0,class:"ml-4 flex-shrink-0"},$={__name:"FPAlert",props:{type:{type:String,default:"info",validator:o=>["success","warning","error","info"].includes(o)},title:{type:String,default:""},message:{type:String,default:""},closable:{type:Boolean,default:!1},show:{type:Boolean,default:!0}},emits:["close"],setup(o,{emit:g}){const t=o,C=g,c=w(t.show),r={success:{icon:"✅",bgColor:"bg-success-50",borderColor:"border-success-200",textColor:"text-success-800",titleColor:"text-success-900"},warning:{icon:"⚠️",bgColor:"bg-warning-50",borderColor:"border-warning-200",textColor:"text-warning-800",titleColor:"text-warning-900"},error:{icon:"❌",bgColor:"bg-error-50",borderColor:"border-error-200",textColor:"text-error-800",titleColor:"text-error-900"},info:{icon:"ℹ️",bgColor:"bg-info-50",borderColor:"border-info-200",textColor:"text-info-800",titleColor:"text-info-900"}},b=n(()=>{const e=r[t.type];return["atlas-alert","flex","p-4","rounded-md","border",e.bgColor,e.borderColor]}),x=n(()=>r[t.type].icon),m=n(()=>["text-sm","font-medium",r[t.type].titleColor]),p=n(()=>{const l=["text-sm",r[t.type].textColor];return t.title&&l.push("mt-1"),l}),v=n(()=>{const e=r[t.type];return["inline-flex","rounded-md","p-1.5","transition-colors","focus:outline-none","focus:ring-2","focus:ring-offset-2",e.textColor,`hover:${e.bgColor}`,`focus:ring-${t.type}-500`]}),y=()=>{c.value=!1,C("close")};return k(()=>t.show,e=>{c.value=e}),(e,l)=>c.value?(d(),i("div",{key:0,class:a(b.value),role:"alert"},[s("div",S,[s("span",F,f(x.value),1)]),s("div",N,[o.title?(d(),i("h3",{key:0,class:a(m.value)},f(o.title),3)):u("",!0),s("div",{class:a(p.value)},[_(e.$slots,"default",{},()=>[B(f(o.message),1)],!0)],2)]),o.closable?(d(),i("div",V,[s("button",{type:"button",class:a(v.value),onClick:y},l[0]||(l[0]=[s("span",{class:"text-lg"},"×",-1)]),2)])):u("",!0)],2)):u("",!0)}},I=h($,[["__scopeId","data-v-6db12345"]]);export{I as F};
|
||||
|
|
@ -1 +1 @@
|
|||
import{_ as n,c as d,a as i,g as u,p,n as g}from"./index-BUdRbiwj.js";const b={__name:"FPBadge",props:{variant:{type:String,default:"default",validator:t=>["default","primary","secondary","success","warning","error","info"].includes(t)},size:{type:String,default:"md",validator:t=>["xs","sm","md","lg"].includes(t)},outline:{type:Boolean,default:!1},pill:{type:Boolean,default:!1},dot:{type:Boolean,default:!1}},setup(t){const e=t,o=d(()=>{const r=["inline-flex items-center justify-center font-medium","transition-colors duration-200"],s={xs:e.dot?["w-1.5 h-1.5"]:["px-1.5 py-0.5 text-xs"],sm:e.dot?["w-2 h-2"]:["px-2 py-0.5 text-xs"],md:e.dot?["w-2.5 h-2.5"]:["px-2.5 py-0.5 text-xs"],lg:e.dot?["w-3 h-3"]:["px-3 py-1 text-sm"]},a=[];e.pill||e.dot?a.push("rounded-full"):a.push("rounded");const l={default:e.outline?["bg-white text-gray-700 border border-gray-300"]:["bg-gray-100 text-gray-800"],primary:e.outline?["bg-white text-primary-700 border border-primary-300"]:["bg-primary-100 text-primary-800"],secondary:e.outline?["bg-white text-gray-700 border border-gray-300"]:["bg-gray-100 text-gray-800"],success:e.outline?["bg-white text-green-700 border border-green-300"]:["bg-green-100 text-green-800"],warning:e.outline?["bg-white text-yellow-700 border border-yellow-300"]:["bg-yellow-100 text-yellow-800"],error:e.outline?["bg-white text-red-700 border border-red-300"]:["bg-red-100 text-red-800"],info:e.outline?["bg-white text-blue-700 border border-blue-300"]:["bg-blue-100 text-blue-800"]};return[...r,...s[e.size],...a,...l[e.variant]].flat()});return(r,s)=>(u(),i("span",{class:g(o.value)},[p(r.$slots,"default",{},void 0,!0)],2))}},x=n(b,[["__scopeId","data-v-39ba8990"]]);export{x as F};
|
||||
import{_ as n,c as d,a as i,p as u,n as p,g}from"./index-QAlcqU00.js";const b={__name:"FPBadge",props:{variant:{type:String,default:"default",validator:t=>["default","primary","secondary","success","warning","error","info"].includes(t)},size:{type:String,default:"md",validator:t=>["xs","sm","md","lg"].includes(t)},outline:{type:Boolean,default:!1},pill:{type:Boolean,default:!1},dot:{type:Boolean,default:!1}},setup(t){const e=t,o=d(()=>{const r=["inline-flex items-center justify-center font-medium","transition-colors duration-200"],s={xs:e.dot?["w-1.5 h-1.5"]:["px-1.5 py-0.5 text-xs"],sm:e.dot?["w-2 h-2"]:["px-2 py-0.5 text-xs"],md:e.dot?["w-2.5 h-2.5"]:["px-2.5 py-0.5 text-xs"],lg:e.dot?["w-3 h-3"]:["px-3 py-1 text-sm"]},a=[];e.pill||e.dot?a.push("rounded-full"):a.push("rounded");const l={default:e.outline?["bg-white text-gray-700 border border-gray-300"]:["bg-gray-100 text-gray-800"],primary:e.outline?["bg-white text-primary-700 border border-primary-300"]:["bg-primary-100 text-primary-800"],secondary:e.outline?["bg-white text-gray-700 border border-gray-300"]:["bg-gray-100 text-gray-800"],success:e.outline?["bg-white text-green-700 border border-green-300"]:["bg-green-100 text-green-800"],warning:e.outline?["bg-white text-yellow-700 border border-yellow-300"]:["bg-yellow-100 text-yellow-800"],error:e.outline?["bg-white text-red-700 border border-red-300"]:["bg-red-100 text-red-800"],info:e.outline?["bg-white text-blue-700 border border-blue-300"]:["bg-blue-100 text-blue-800"]};return[...r,...s[e.size],...a,...l[e.variant]].flat()});return(r,s)=>(g(),i("span",{class:p(o.value)},[u(r.$slots,"default",{},void 0,!0)],2))}},x=n(b,[["__scopeId","data-v-39ba8990"]]);export{x as F};
|
||||
|
|
@ -1 +1 @@
|
|||
import{_ as m,bg as b,bf as y,c as i,a as o,g as l,j as r,b as c,p as n,n as C,a3 as k,t as p}from"./index-BUdRbiwj.js";const _={key:0,class:"atlas-card-header"},S={class:"flex items-center justify-between"},$={key:0,class:"text-lg font-medium text-gray-900"},w={key:1,class:"mt-1 text-sm text-gray-500"},B={key:0,class:"flex items-center space-x-2"},x={key:1,class:"atlas-card-footer"},F={__name:"FPCard",props:{title:{type:String,default:""},subtitle:{type:String,default:""},variant:{type:String,default:"default",validator:t=>["default","outlined","elevated","flat"].includes(t)},padding:{type:String,default:"md",validator:t=>["none","sm","md","lg"].includes(t)},hover:{type:Boolean,default:!1},clickable:{type:Boolean,default:!1}},setup(t){const s=t,u=b();y();const f=i(()=>u.header||s.title||s.subtitle||u.actions),v=i(()=>{const e=["atlas-card","bg-white","transition-all duration-200"],d={default:["border border-gray-200","rounded"],outlined:["border-2 border-gray-300","rounded"],elevated:["shadow-lg border border-gray-100","rounded"],flat:["border-0"]},a=[];s.hover&&a.push("hover:shadow-md"),s.clickable&&a.push("cursor-pointer","hover:bg-gray-50");const g={default:["shadow-sm"],outlined:[],elevated:[],flat:[]};return[...e,...d[s.variant],...g[s.variant],...a].flat()}),h=i(()=>{const e={none:[],sm:["p-4"],md:["p-6"],lg:["p-8"]},d=["atlas-card-content"],a=[];return f.value&&s.padding!=="none"&&a.push("pt-0"),[...d,...e[s.padding],...a].flat()});return(e,d)=>(l(),o("div",k({class:v.value},e.$attrs),[f.value?(l(),o("div",_,[n(e.$slots,"header",{},()=>[c("div",S,[c("div",null,[t.title?(l(),o("h3",$,p(t.title),1)):r("",!0),t.subtitle?(l(),o("p",w,p(t.subtitle),1)):r("",!0)]),e.$slots.actions?(l(),o("div",B,[n(e.$slots,"actions",{},void 0,!0)])):r("",!0)])],!0)])):r("",!0),c("div",{class:C(h.value)},[n(e.$slots,"default",{},void 0,!0)],2),e.$slots.footer?(l(),o("div",x,[n(e.$slots,"footer",{},void 0,!0)])):r("",!0)],16))}},j=m(F,[["__scopeId","data-v-c3f51894"]]);export{j as F};
|
||||
import{_ as m,bg as b,bf as y,c as i,a as o,g as l,j as r,b as c,p as n,n as C,a3 as k,t as p}from"./index-QAlcqU00.js";const _={key:0,class:"atlas-card-header"},S={class:"flex items-center justify-between"},$={key:0,class:"text-lg font-medium text-gray-900"},w={key:1,class:"mt-1 text-sm text-gray-500"},B={key:0,class:"flex items-center space-x-2"},x={key:1,class:"atlas-card-footer"},F={__name:"FPCard",props:{title:{type:String,default:""},subtitle:{type:String,default:""},variant:{type:String,default:"default",validator:t=>["default","outlined","elevated","flat"].includes(t)},padding:{type:String,default:"md",validator:t=>["none","sm","md","lg"].includes(t)},hover:{type:Boolean,default:!1},clickable:{type:Boolean,default:!1}},setup(t){const s=t,u=b();y();const f=i(()=>u.header||s.title||s.subtitle||u.actions),v=i(()=>{const e=["atlas-card","bg-white","transition-all duration-200"],d={default:["border border-gray-200","rounded"],outlined:["border-2 border-gray-300","rounded"],elevated:["shadow-lg border border-gray-100","rounded"],flat:["border-0"]},a=[];s.hover&&a.push("hover:shadow-md"),s.clickable&&a.push("cursor-pointer","hover:bg-gray-50");const g={default:["shadow-sm"],outlined:[],elevated:[],flat:[]};return[...e,...d[s.variant],...g[s.variant],...a].flat()}),h=i(()=>{const e={none:[],sm:["p-4"],md:["p-6"],lg:["p-8"]},d=["atlas-card-content"],a=[];return f.value&&s.padding!=="none"&&a.push("pt-0"),[...d,...e[s.padding],...a].flat()});return(e,d)=>(l(),o("div",k({class:v.value},e.$attrs),[f.value?(l(),o("div",_,[n(e.$slots,"header",{},()=>[c("div",S,[c("div",null,[t.title?(l(),o("h3",$,p(t.title),1)):r("",!0),t.subtitle?(l(),o("p",w,p(t.subtitle),1)):r("",!0)]),e.$slots.actions?(l(),o("div",B,[n(e.$slots,"actions",{},void 0,!0)])):r("",!0)])],!0)])):r("",!0),c("div",{class:C(h.value)},[n(e.$slots,"default",{},void 0,!0)],2),e.$slots.footer?(l(),o("div",x,[n(e.$slots,"footer",{},void 0,!0)])):r("",!0)],16))}},j=m(F,[["__scopeId","data-v-c3f51894"]]);export{j as F};
|
||||
|
|
@ -1 +1 @@
|
|||
import{_ as x,c,a as r,g as l,b as n,j as i,n as d,t as u}from"./index-BUdRbiwj.js";const y={class:"atlas-checkbox-wrapper"},k={class:"flex items-center cursor-pointer"},v={class:"relative"},C=["id","checked","disabled"],w={key:0,class:"absolute inset-0 flex items-center justify-center pointer-events-none"},V={key:0,class:"mt-1 text-sm text-error-600"},_={__name:"FPCheckbox",props:{modelValue:{type:Boolean,default:!1},label:{type:String,default:""},disabled:{type:Boolean,default:!1},errorMessage:{type:String,default:""},size:{type:String,default:"md",validator:e=>["sm","md","lg"].includes(e)}},emits:["update:modelValue"],setup(e,{emit:m}){const t=e,p=m,h=c(()=>`atlas-checkbox-${Math.random().toString(36).substr(2,9)}`),f=c(()=>{const s=["appearance-none rounded-sm border-2 transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2"],o={sm:["w-4 h-4"],md:["w-5 h-5"],lg:["w-6 h-6"]},a=[];return t.modelValue?a.push("bg-primary-600","border-primary-600","focus:ring-primary-500"):a.push("bg-white","border-gray-300","focus:ring-primary-500"),t.disabled?a.push("opacity-50","cursor-not-allowed"):a.push("cursor-pointer"),t.errorMessage&&a.push("border-error-500","focus:ring-error-500"),[...s,...o[t.size],...a].flat()}),b=c(()=>{const s=["text-gray-700","select-none"];return t.disabled?s.push("opacity-50","cursor-not-allowed"):s.push("cursor-pointer"),t.errorMessage&&s.push("text-error-700"),s}),g=s=>{p("update:modelValue",s.target.checked)};return(s,o)=>(l(),r("div",y,[n("label",k,[n("div",v,[n("input",{id:h.value,type:"checkbox",checked:e.modelValue,disabled:e.disabled,class:d(f.value),onChange:g},null,42,C),e.modelValue?(l(),r("div",w,o[0]||(o[0]=[n("span",{class:"text-white text-xs"},"✓",-1)]))):i("",!0)]),e.label?(l(),r("span",{key:0,class:d(["ml-2 text-sm",b.value])},u(e.label),3)):i("",!0)]),e.errorMessage?(l(),r("div",V,u(e.errorMessage),1)):i("",!0)]))}},B=x(_,[["__scopeId","data-v-eeade3ef"]]);export{B as F};
|
||||
import{_ as x,c,a as r,b as l,j as i,n as d,t as u,g as n}from"./index-QAlcqU00.js";const y={class:"atlas-checkbox-wrapper"},k={class:"flex items-center cursor-pointer"},v={class:"relative"},C=["id","checked","disabled"],w={key:0,class:"absolute inset-0 flex items-center justify-center pointer-events-none"},V={key:0,class:"mt-1 text-sm text-error-600"},_={__name:"FPCheckbox",props:{modelValue:{type:Boolean,default:!1},label:{type:String,default:""},disabled:{type:Boolean,default:!1},errorMessage:{type:String,default:""},size:{type:String,default:"md",validator:e=>["sm","md","lg"].includes(e)}},emits:["update:modelValue"],setup(e,{emit:m}){const t=e,p=m,h=c(()=>`atlas-checkbox-${Math.random().toString(36).substr(2,9)}`),f=c(()=>{const s=["appearance-none rounded-sm border-2 transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2"],o={sm:["w-4 h-4"],md:["w-5 h-5"],lg:["w-6 h-6"]},a=[];return t.modelValue?a.push("bg-primary-600","border-primary-600","focus:ring-primary-500"):a.push("bg-white","border-gray-300","focus:ring-primary-500"),t.disabled?a.push("opacity-50","cursor-not-allowed"):a.push("cursor-pointer"),t.errorMessage&&a.push("border-error-500","focus:ring-error-500"),[...s,...o[t.size],...a].flat()}),b=c(()=>{const s=["text-gray-700","select-none"];return t.disabled?s.push("opacity-50","cursor-not-allowed"):s.push("cursor-pointer"),t.errorMessage&&s.push("text-error-700"),s}),g=s=>{p("update:modelValue",s.target.checked)};return(s,o)=>(n(),r("div",y,[l("label",k,[l("div",v,[l("input",{id:h.value,type:"checkbox",checked:e.modelValue,disabled:e.disabled,class:d(f.value),onChange:g},null,42,C),e.modelValue?(n(),r("div",w,o[0]||(o[0]=[l("span",{class:"text-white text-xs"},"✓",-1)]))):i("",!0)]),e.label?(n(),r("span",{key:0,class:d(["ml-2 text-sm",b.value])},u(e.label),3)):i("",!0)]),e.errorMessage?(n(),r("div",V,u(e.errorMessage),1)):i("",!0)]))}},B=x(_,[["__scopeId","data-v-eeade3ef"]]);export{B as F};
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -1 +1 @@
|
|||
import{_ as B,bf as M,r as V,c as d,a,g as s,j as n,b as i,k as w,t as o,a3 as F,n as g}from"./index-BUdRbiwj.js";const T={class:"fp-input-group"},z=["for"],N={key:0,class:"text-error-500 ml-1"},P={class:"relative"},q={key:0,class:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none"},A={class:"text-gray-400 text-sm"},$=["id","type","value","placeholder","disabled","readonly"],j={key:1,class:"mt-1 text-sm text-error-600"},D={key:2,class:"mt-1 text-sm text-gray-500"},E={__name:"FPInput",props:{modelValue:{type:[String,Number],default:""},label:{type:String,default:""},placeholder:{type:String,default:""},type:{type:String,default:"text"},variant:{type:String,default:"outlined",validator:e=>["outlined","filled","underlined"].includes(e)},size:{type:String,default:"md",validator:e=>["sm","md","lg"].includes(e)},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},errorMessage:{type:String,default:""},helpText:{type:String,default:""},prependIcon:{type:String,default:""},appendIcon:{type:String,default:""},appendIconClickable:{type:Boolean,default:!1},rules:{type:Array,default:()=>[]}},emits:["update:modelValue","blur","focus","append-icon-click"],setup(e,{emit:b}){const t=e,l=b;M();const p=V(!1),f=d(()=>`fp-input-${Math.random().toString(36).substr(2,9)}`),h=d(()=>t.type==="password"&&t.appendIcon==="mdi-eye"?"text":t.type==="password"&&t.appendIcon==="mdi-eye-off"?"password":t.type),x=d(()=>{const r=["block w-full rounded transition-colors duration-200","focus:outline-none focus:ring-2 focus:ring-offset-0"],m={sm:["px-3 py-1.5 text-sm"],md:["px-3 py-2 text-sm"],lg:["px-4 py-3 text-base"]},S={outlined:["border",t.errorMessage?"border-error-300 focus:border-error-500 focus:ring-error-500":"border-gray-300 focus:border-primary-500 focus:ring-primary-500","bg-white"],filled:["border-0 bg-gray-100",t.errorMessage?"focus:ring-error-500":"focus:ring-primary-500"],underlined:["border-0 border-b-2 bg-transparent rounded-none",t.errorMessage?"border-error-300 focus:border-error-500":"border-gray-300 focus:border-primary-500"]},c=[];t.disabled&&c.push("bg-gray-50","text-gray-500","cursor-not-allowed"),t.readonly&&c.push("bg-gray-50","cursor-default");const u=[];return t.prependIcon&&u.push("pl-10"),t.appendIcon&&u.push("pr-10"),[...r,...m[t.size],...S[t.variant],...c,...u].flat()});d(()=>"span");const y={"mdi-email":"✉","mdi-lock":"🔒","mdi-eye":"👁","mdi-eye-off":"🙈","mdi-account":"👤","mdi-phone":"📞"},v=r=>{l("update:modelValue",r.target.value)},I=r=>{p.value=!0,l("focus",r)},k=r=>{p.value=!1,l("blur",r),t.rules.length>0},C=r=>{t.appendIconClickable&&l("append-icon-click",r)};return(r,m)=>(s(),a("div",T,[e.label?(s(),a("label",{key:0,for:f.value,class:"block text-sm font-medium text-gray-700 mb-1"},[w(o(e.label)+" ",1),e.required?(s(),a("span",N,"*")):n("",!0)],8,z)):n("",!0),i("div",P,[e.prependIcon?(s(),a("div",q,[i("span",A,o(y[e.prependIcon]||e.prependIcon),1)])):n("",!0),i("input",F({id:f.value,type:h.value,value:e.modelValue,placeholder:e.placeholder,disabled:e.disabled,readonly:e.readonly,class:x.value},r.$attrs,{onInput:v,onBlur:k,onFocus:I}),null,16,$),e.appendIcon?(s(),a("div",{key:1,class:g(["absolute inset-y-0 right-0 pr-3 flex items-center",{"cursor-pointer":e.appendIconClickable}]),onClick:C},[i("span",{class:g(["text-gray-400 text-sm",{"hover:text-gray-600":e.appendIconClickable}])},o(y[e.appendIcon]||e.appendIcon),3)],2)):n("",!0)]),e.errorMessage?(s(),a("div",j,o(e.errorMessage),1)):n("",!0),e.helpText&&!e.errorMessage?(s(),a("div",D,o(e.helpText),1)):n("",!0)]))}},H=B(E,[["__scopeId","data-v-14fbf784"]]);export{H as F};
|
||||
import{_ as B,bf as M,r as V,c as d,a,j as n,b as i,k as w,t as o,a3 as F,n as g,g as s}from"./index-QAlcqU00.js";const T={class:"fp-input-group"},z=["for"],N={key:0,class:"text-error-500 ml-1"},P={class:"relative"},q={key:0,class:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none"},A={class:"text-gray-400 text-sm"},$=["id","type","value","placeholder","disabled","readonly"],j={key:1,class:"mt-1 text-sm text-error-600"},D={key:2,class:"mt-1 text-sm text-gray-500"},E={__name:"FPInput",props:{modelValue:{type:[String,Number],default:""},label:{type:String,default:""},placeholder:{type:String,default:""},type:{type:String,default:"text"},variant:{type:String,default:"outlined",validator:e=>["outlined","filled","underlined"].includes(e)},size:{type:String,default:"md",validator:e=>["sm","md","lg"].includes(e)},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},errorMessage:{type:String,default:""},helpText:{type:String,default:""},prependIcon:{type:String,default:""},appendIcon:{type:String,default:""},appendIconClickable:{type:Boolean,default:!1},rules:{type:Array,default:()=>[]}},emits:["update:modelValue","blur","focus","append-icon-click"],setup(e,{emit:b}){const t=e,l=b;M();const p=V(!1),f=d(()=>`fp-input-${Math.random().toString(36).substr(2,9)}`),h=d(()=>t.type==="password"&&t.appendIcon==="mdi-eye"?"text":t.type==="password"&&t.appendIcon==="mdi-eye-off"?"password":t.type),x=d(()=>{const r=["block w-full rounded transition-colors duration-200","focus:outline-none focus:ring-2 focus:ring-offset-0"],m={sm:["px-3 py-1.5 text-sm"],md:["px-3 py-2 text-sm"],lg:["px-4 py-3 text-base"]},S={outlined:["border",t.errorMessage?"border-error-300 focus:border-error-500 focus:ring-error-500":"border-gray-300 focus:border-primary-500 focus:ring-primary-500","bg-white"],filled:["border-0 bg-gray-100",t.errorMessage?"focus:ring-error-500":"focus:ring-primary-500"],underlined:["border-0 border-b-2 bg-transparent rounded-none",t.errorMessage?"border-error-300 focus:border-error-500":"border-gray-300 focus:border-primary-500"]},c=[];t.disabled&&c.push("bg-gray-50","text-gray-500","cursor-not-allowed"),t.readonly&&c.push("bg-gray-50","cursor-default");const u=[];return t.prependIcon&&u.push("pl-10"),t.appendIcon&&u.push("pr-10"),[...r,...m[t.size],...S[t.variant],...c,...u].flat()});d(()=>"span");const y={"mdi-email":"✉","mdi-lock":"🔒","mdi-eye":"👁","mdi-eye-off":"🙈","mdi-account":"👤","mdi-phone":"📞"},v=r=>{l("update:modelValue",r.target.value)},I=r=>{p.value=!0,l("focus",r)},k=r=>{p.value=!1,l("blur",r),t.rules.length>0},C=r=>{t.appendIconClickable&&l("append-icon-click",r)};return(r,m)=>(s(),a("div",T,[e.label?(s(),a("label",{key:0,for:f.value,class:"block text-sm font-medium text-gray-700 mb-1"},[w(o(e.label)+" ",1),e.required?(s(),a("span",N,"*")):n("",!0)],8,z)):n("",!0),i("div",P,[e.prependIcon?(s(),a("div",q,[i("span",A,o(y[e.prependIcon]||e.prependIcon),1)])):n("",!0),i("input",F({id:f.value,type:h.value,value:e.modelValue,placeholder:e.placeholder,disabled:e.disabled,readonly:e.readonly,class:x.value},r.$attrs,{onInput:v,onBlur:k,onFocus:I}),null,16,$),e.appendIcon?(s(),a("div",{key:1,class:g(["absolute inset-y-0 right-0 pr-3 flex items-center",{"cursor-pointer":e.appendIconClickable}]),onClick:C},[i("span",{class:g(["text-gray-400 text-sm",{"hover:text-gray-600":e.appendIconClickable}])},o(y[e.appendIcon]||e.appendIcon),3)],2)):n("",!0)]),e.errorMessage?(s(),a("div",j,o(e.errorMessage),1)):n("",!0),e.helpText&&!e.errorMessage?(s(),a("div",D,o(e.helpText),1)):n("",!0)]))}},H=B(E,[["__scopeId","data-v-14fbf784"]]);export{H as F};
|
||||
|
|
@ -1 +1 @@
|
|||
import{_ as h,c as C,o as B,b4 as V,i as z,g as o,d as u,w as c,a as s,j as d,b as l,h as F,n as b,p as f,e as x,F as g,k as v,t as r,aA as S,bi as T}from"./index-BUdRbiwj.js";const $={class:"flex min-h-full items-center justify-center p-4"},M={key:0,class:"px-6 py-4 border-b border-gray-200"},j={class:"flex items-center justify-between"},E={class:"flex-1"},O={class:"text-lg font-semibold text-gray-900"},N={key:0,class:"mt-1 text-sm text-gray-600"},D={key:1,class:"px-6 py-4 border-t border-gray-200 bg-gray-50 rounded-b"},L={key:2,class:"px-6 py-4 border-t border-gray-200 bg-gray-50 rounded-b flex justify-end space-x-3"},P={__name:"FPModal",props:{modelValue:{type:Boolean,default:!1},title:{type:String,default:""},subtitle:{type:String,default:""},size:{type:String,default:"md",validator:e=>["sm","md","lg","xl","full"].includes(e)},closable:{type:Boolean,default:!0},closeOnOverlay:{type:Boolean,default:!0},scrollable:{type:Boolean,default:!1},hideDefaultFooter:{type:Boolean,default:!1},confirmText:{type:String,default:"Confirm"},cancelText:{type:String,default:"Cancel"},loading:{type:Boolean,default:!1}},emits:["update:modelValue","confirm","cancel"],setup(e,{emit:p}){const n=e,m=p,k=C(()=>({sm:"max-w-md w-full",md:"max-w-lg w-full",lg:"max-w-2xl w-full",xl:"max-w-4xl w-full",full:"max-w-none w-full h-full m-0 rounded-none"})[n.size]),i=()=>{m("update:modelValue",!1),m("cancel")},w=()=>{n.closeOnOverlay&&n.closable&&i()},y=t=>{t.key==="Escape"&&n.modelValue&&n.closable&&i()};return B(()=>{document.addEventListener("keydown",y)}),V(()=>{document.removeEventListener("keydown",y)}),(t,a)=>(o(),z(T,{to:"body"},[u(S,{name:"modal"},{default:c(()=>[e.modelValue?(o(),s("div",{key:0,class:"fixed inset-0 z-50 overflow-y-auto",onClick:w},[a[3]||(a[3]=l("div",{class:"fixed inset-0 bg-black transition-opacity",style:{opacity:"0.5"}},null,-1)),l("div",$,[l("div",{class:b(["relative bg-white rounded shadow-xl transform transition-all",k.value]),onClick:a[1]||(a[1]=F(()=>{},["stop"]))},[t.$slots.header||e.title?(o(),s("div",M,[l("div",j,[l("div",E,[f(t.$slots,"header",{},()=>[l("h3",O,r(e.title),1),e.subtitle?(o(),s("p",N,r(e.subtitle),1)):d("",!0)],!0)]),e.closable?(o(),s("button",{key:0,type:"button",class:"ml-4 text-gray-400 hover:text-gray-600 transition-colors",onClick:i},a[2]||(a[2]=[l("svg",{class:"w-6 h-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1)]))):d("",!0)])])):d("",!0),l("div",{class:b(["px-6 py-4",{"max-h-96 overflow-y-auto":e.scrollable}])},[f(t.$slots,"default",{},void 0,!0)],2),t.$slots.footer?(o(),s("div",D,[f(t.$slots,"footer",{},void 0,!0)])):e.hideDefaultFooter?d("",!0):(o(),s("div",L,[u(x(g),{variant:"secondary",onClick:i},{default:c(()=>[v(r(e.cancelText),1)]),_:1}),u(x(g),{variant:"primary",loading:e.loading,onClick:a[0]||(a[0]=A=>t.$emit("confirm"))},{default:c(()=>[v(r(e.confirmText),1)]),_:1},8,["loading"])]))],2)])])):d("",!0)]),_:3})]))}},K=h(P,[["__scopeId","data-v-583bdfc3"]]);export{K as F};
|
||||
import{_ as h,c as C,o as B,aO as V,i as z,d as u,w as c,aA as F,bi as S,g as o,a as s,j as d,b as l,h as T,n as x,p as f,t as r,e as b,F as g,k as v}from"./index-QAlcqU00.js";const $={class:"flex min-h-full items-center justify-center p-4"},M={key:0,class:"px-6 py-4 border-b border-gray-200"},O={class:"flex items-center justify-between"},j={class:"flex-1"},E={class:"text-lg font-semibold text-gray-900"},N={key:0,class:"mt-1 text-sm text-gray-600"},D={key:1,class:"px-6 py-4 border-t border-gray-200 bg-gray-50 rounded-b"},L={key:2,class:"px-6 py-4 border-t border-gray-200 bg-gray-50 rounded-b flex justify-end space-x-3"},P={__name:"FPModal",props:{modelValue:{type:Boolean,default:!1},title:{type:String,default:""},subtitle:{type:String,default:""},size:{type:String,default:"md",validator:e=>["sm","md","lg","xl","full"].includes(e)},closable:{type:Boolean,default:!0},closeOnOverlay:{type:Boolean,default:!0},scrollable:{type:Boolean,default:!1},hideDefaultFooter:{type:Boolean,default:!1},confirmText:{type:String,default:"Confirm"},cancelText:{type:String,default:"Cancel"},loading:{type:Boolean,default:!1}},emits:["update:modelValue","confirm","cancel"],setup(e,{emit:p}){const n=e,m=p,k=C(()=>({sm:"max-w-md w-full",md:"max-w-lg w-full",lg:"max-w-2xl w-full",xl:"max-w-4xl w-full",full:"max-w-none w-full h-full m-0 rounded-none"})[n.size]),i=()=>{m("update:modelValue",!1),m("cancel")},w=()=>{n.closeOnOverlay&&n.closable&&i()},y=t=>{t.key==="Escape"&&n.modelValue&&n.closable&&i()};return B(()=>{document.addEventListener("keydown",y)}),V(()=>{document.removeEventListener("keydown",y)}),(t,a)=>(o(),z(S,{to:"body"},[u(F,{name:"modal"},{default:c(()=>[e.modelValue?(o(),s("div",{key:0,class:"fixed inset-0 z-50 overflow-y-auto",onClick:w},[a[3]||(a[3]=l("div",{class:"fixed inset-0 bg-black transition-opacity",style:{opacity:"0.5"}},null,-1)),l("div",$,[l("div",{class:x(["relative bg-white rounded shadow-xl transform transition-all",k.value]),onClick:a[1]||(a[1]=T(()=>{},["stop"]))},[t.$slots.header||e.title?(o(),s("div",M,[l("div",O,[l("div",j,[f(t.$slots,"header",{},()=>[l("h3",E,r(e.title),1),e.subtitle?(o(),s("p",N,r(e.subtitle),1)):d("",!0)],!0)]),e.closable?(o(),s("button",{key:0,type:"button",class:"ml-4 text-gray-400 hover:text-gray-600 transition-colors",onClick:i},a[2]||(a[2]=[l("svg",{class:"w-6 h-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1)]))):d("",!0)])])):d("",!0),l("div",{class:x(["px-6 py-4",{"max-h-96 overflow-y-auto":e.scrollable}])},[f(t.$slots,"default",{},void 0,!0)],2),t.$slots.footer?(o(),s("div",D,[f(t.$slots,"footer",{},void 0,!0)])):e.hideDefaultFooter?d("",!0):(o(),s("div",L,[u(b(g),{variant:"secondary",onClick:i},{default:c(()=>[v(r(e.cancelText),1)]),_:1}),u(b(g),{variant:"primary",loading:e.loading,onClick:a[0]||(a[0]=A=>t.$emit("confirm"))},{default:c(()=>[v(r(e.confirmText),1)]),_:1},8,["loading"])]))],2)])])):d("",!0)]),_:3})]))}},K=h(P,[["__scopeId","data-v-583bdfc3"]]);export{K as F};
|
||||
|
|
@ -0,0 +1 @@
|
|||
import{_ as u,i as m,w as f,bh as h,g as e,b as r,a as s,j as o,p as n,t as i,af as p,aR as y,n as b,f as x,k}from"./index-QAlcqU00.js";const g={class:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8"},v={key:0,class:"mb-8"},$={class:"bg-white rounded shadow-sm"},w={key:0,class:"mt-auto"},B={__name:"FPLayout",props:{title:{type:String,default:""}},setup(a){return(t,d)=>(e(),m(h,null,{default:f(()=>[r("div",g,[t.$slots.header?(e(),s("div",v,[n(t.$slots,"header",{},void 0,!0)])):o("",!0),r("div",$,[n(t.$slots,"default",{},void 0,!0)])]),t.$slots.footer?(e(),s("footer",w,[n(t.$slots,"footer",{},void 0,!0)])):o("",!0)]),_:3}))}},D=u(B,[["__scopeId","data-v-9a23b903"]]),F={class:"flex items-center justify-between"},P={class:"flex-1"},C={class:"text-2xl font-bold text-gray-900"},S={key:0,class:"mt-2 text-sm text-gray-600"},N={key:1,class:"flex mt-3","aria-label":"Breadcrumb"},j={class:"flex items-center space-x-2"},L={key:1,class:"text-sm text-gray-500"},V={key:2,class:"w-4 h-4 mx-2 text-gray-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},A={key:0,class:"flex items-center space-x-3"},H={key:0,class:"mt-6"},I={key:1,class:"mt-6"},q={__name:"FPPageHeader",props:{title:{type:String,required:!0},description:{type:String,default:""},breadcrumbs:{type:Array,default:()=>[]}},setup(a){return(t,d)=>{const _=x("router-link");return e(),s("div",{class:b(["pb-6 mb-8",{"border-b border-gray-200":!t.$slots.tabs}])},[r("div",F,[r("div",P,[r("h1",C,i(a.title),1),a.description?(e(),s("p",S,i(a.description),1)):o("",!0),a.breadcrumbs&&a.breadcrumbs.length>0?(e(),s("nav",N,[r("ol",j,[(e(!0),s(p,null,y(a.breadcrumbs,(l,c)=>(e(),s("li",{key:c,class:"flex items-center"},[l.to?(e(),m(_,{key:0,to:l.to,class:"text-sm text-primary-600 hover:text-primary-700 transition-colors"},{default:f(()=>[k(i(l.text),1)]),_:2},1032,["to"])):(e(),s("span",L,i(l.text),1)),c<a.breadcrumbs.length-1?(e(),s("svg",V,d[0]||(d[0]=[r("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"},null,-1)]))):o("",!0)]))),128))])])):o("",!0)]),t.$slots.actions?(e(),s("div",A,[n(t.$slots,"actions",{},void 0,!0)])):o("",!0)]),t.$slots.stats?(e(),s("div",H,[n(t.$slots,"stats",{},void 0,!0)])):o("",!0),t.$slots.tabs?(e(),s("div",I,[n(t.$slots,"tabs",{},void 0,!0)])):o("",!0)],2)}}},E=u(q,[["__scopeId","data-v-6cfe6ab5"]]);export{D as F,E as a};
|
||||
|
|
@ -1 +0,0 @@
|
|||
import{_ as u,i as m,g as e,w as f,b as r,a as s,j as o,p as n,bh as h,f as p,t as i,af as y,aQ as b,k as x,n as k}from"./index-BUdRbiwj.js";const g={class:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8"},v={key:0,class:"mb-8"},$={class:"bg-white rounded shadow-sm"},w={key:0,class:"mt-auto"},B={__name:"FPLayout",props:{title:{type:String,default:""}},setup(a){return(t,d)=>(e(),m(h,null,{default:f(()=>[r("div",g,[t.$slots.header?(e(),s("div",v,[n(t.$slots,"header",{},void 0,!0)])):o("",!0),r("div",$,[n(t.$slots,"default",{},void 0,!0)])]),t.$slots.footer?(e(),s("footer",w,[n(t.$slots,"footer",{},void 0,!0)])):o("",!0)]),_:3}))}},D=u(B,[["__scopeId","data-v-9a23b903"]]),F={class:"flex items-center justify-between"},P={class:"flex-1"},C={class:"text-2xl font-bold text-gray-900"},S={key:0,class:"mt-2 text-sm text-gray-600"},N={key:1,class:"flex mt-3","aria-label":"Breadcrumb"},j={class:"flex items-center space-x-2"},L={key:1,class:"text-sm text-gray-500"},V={key:2,class:"w-4 h-4 mx-2 text-gray-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},A={key:0,class:"flex items-center space-x-3"},H={key:0,class:"mt-6"},I={key:1,class:"mt-6"},q={__name:"FPPageHeader",props:{title:{type:String,required:!0},description:{type:String,default:""},breadcrumbs:{type:Array,default:()=>[]}},setup(a){return(t,d)=>{const _=p("router-link");return e(),s("div",{class:k(["pb-6 mb-8",{"border-b border-gray-200":!t.$slots.tabs}])},[r("div",F,[r("div",P,[r("h1",C,i(a.title),1),a.description?(e(),s("p",S,i(a.description),1)):o("",!0),a.breadcrumbs&&a.breadcrumbs.length>0?(e(),s("nav",N,[r("ol",j,[(e(!0),s(y,null,b(a.breadcrumbs,(l,c)=>(e(),s("li",{key:c,class:"flex items-center"},[l.to?(e(),m(_,{key:0,to:l.to,class:"text-sm text-primary-600 hover:text-primary-700 transition-colors"},{default:f(()=>[x(i(l.text),1)]),_:2},1032,["to"])):(e(),s("span",L,i(l.text),1)),c<a.breadcrumbs.length-1?(e(),s("svg",V,d[0]||(d[0]=[r("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"},null,-1)]))):o("",!0)]))),128))])])):o("",!0)]),t.$slots.actions?(e(),s("div",A,[n(t.$slots,"actions",{},void 0,!0)])):o("",!0)]),t.$slots.stats?(e(),s("div",H,[n(t.$slots,"stats",{},void 0,!0)])):o("",!0),t.$slots.tabs?(e(),s("div",I,[n(t.$slots,"tabs",{},void 0,!0)])):o("",!0)],2)}}},E=u(q,[["__scopeId","data-v-6cfe6ab5"]]);export{D as F,E as a};
|
||||
|
|
@ -1 +1 @@
|
|||
import{_ as V,r as k,c as m,a as l,g as o,j as i,b as n,k as C,t as u,a3 as M,af as B,aQ as F}from"./index-BUdRbiwj.js";const N={class:"atlas-select-group"},L=["for"],T={key:0,class:"text-error-500 ml-1"},j={class:"relative"},w=["id","value","disabled"],z={value:"",disabled:""},P=["value"],q={key:1,class:"mt-1 text-sm text-error-600"},A={key:2,class:"mt-1 text-sm text-gray-500"},I={__name:"FPSelect",props:{modelValue:{type:[String,Number,null],default:null},label:{type:String,default:""},placeholder:{type:String,default:""},options:{type:Array,default:()=>[]},optionValue:{type:String,default:"value"},optionLabel:{type:String,default:"title"},variant:{type:String,default:"outlined",validator:t=>["outlined","filled","underlined"].includes(t)},size:{type:String,default:"md",validator:t=>["sm","md","lg"].includes(t)},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},errorMessage:{type:String,default:""},helpText:{type:String,default:""},rules:{type:Array,default:()=>[]}},emits:["update:modelValue","blur","focus","change"],setup(t,{emit:y}){const r=t,d=y,f=k(!1),g=m(()=>`atlas-select-${Math.random().toString(36).substr(2,9)}`),p=m(()=>{const e=["block w-full rounded transition-colors duration-200 appearance-none","focus:outline-none focus:ring-2 focus:ring-offset-0"],s={sm:["px-3 py-1.5 text-sm"],md:["px-3 py-2 text-sm"],lg:["px-4 py-3 text-base"]},a={outlined:["border",r.errorMessage?"border-error-300 focus:border-error-500 focus:ring-error-500":"border-gray-300 focus:border-primary-500 focus:ring-primary-500","bg-white"],filled:["border-0 bg-gray-100",r.errorMessage?"focus:ring-error-500":"focus:ring-primary-500"],underlined:["border-0 border-b-2 bg-transparent rounded-none",r.errorMessage?"border-error-300 focus:border-error-500":"border-gray-300 focus:border-primary-500"]},c=[];return r.disabled&&c.push("bg-gray-50","text-gray-500","cursor-not-allowed"),c.push("pr-10"),[...e,...s[r.size],...a[r.variant],...c].flat()}),b=e=>typeof e=="object"&&e!==null?e[r.optionValue]:e,v=e=>typeof e=="object"&&e!==null?e[r.optionLabel]:e,h=e=>{const s=e.target.value,a=s===""?null:isNaN(s)?s:Number(s);d("update:modelValue",a),d("change",a)},x=e=>{f.value=!0,d("focus",e)},S=e=>{f.value=!1,d("blur",e),r.rules.length>0};return(e,s)=>(o(),l("div",N,[t.label?(o(),l("label",{key:0,for:g.value,class:"block text-sm font-medium text-gray-700 mb-1"},[C(u(t.label)+" ",1),t.required?(o(),l("span",T,"*")):i("",!0)],8,L)):i("",!0),n("div",j,[n("select",M({id:g.value,value:t.modelValue,disabled:t.disabled,class:p.value},e.$attrs,{onChange:h,onBlur:S,onFocus:x}),[n("option",z,u(t.placeholder||"Select an option"),1),(o(!0),l(B,null,F(t.options,a=>(o(),l("option",{key:b(a),value:b(a)},u(v(a)),9,P))),128))],16,w),s[0]||(s[0]=n("div",{class:"absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none"},[n("span",{class:"text-gray-400 text-sm"},"▼")],-1))]),t.errorMessage?(o(),l("div",q,u(t.errorMessage),1)):i("",!0),t.helpText&&!t.errorMessage?(o(),l("div",A,u(t.helpText),1)):i("",!0)]))}},_=V(I,[["__scopeId","data-v-dfd92765"]]);export{_ as F};
|
||||
import{_ as V,r as k,c as m,a as l,j as i,b as n,k as C,t as u,a3 as M,af as B,aR as F,g as o}from"./index-QAlcqU00.js";const N={class:"atlas-select-group"},L=["for"],T={key:0,class:"text-error-500 ml-1"},j={class:"relative"},w=["id","value","disabled"],z={value:"",disabled:""},P=["value"],q={key:1,class:"mt-1 text-sm text-error-600"},A={key:2,class:"mt-1 text-sm text-gray-500"},I={__name:"FPSelect",props:{modelValue:{type:[String,Number,null],default:null},label:{type:String,default:""},placeholder:{type:String,default:""},options:{type:Array,default:()=>[]},optionValue:{type:String,default:"value"},optionLabel:{type:String,default:"title"},variant:{type:String,default:"outlined",validator:t=>["outlined","filled","underlined"].includes(t)},size:{type:String,default:"md",validator:t=>["sm","md","lg"].includes(t)},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},errorMessage:{type:String,default:""},helpText:{type:String,default:""},rules:{type:Array,default:()=>[]}},emits:["update:modelValue","blur","focus","change"],setup(t,{emit:y}){const r=t,d=y,f=k(!1),g=m(()=>`atlas-select-${Math.random().toString(36).substr(2,9)}`),p=m(()=>{const e=["block w-full rounded transition-colors duration-200 appearance-none","focus:outline-none focus:ring-2 focus:ring-offset-0"],s={sm:["px-3 py-1.5 text-sm"],md:["px-3 py-2 text-sm"],lg:["px-4 py-3 text-base"]},a={outlined:["border",r.errorMessage?"border-error-300 focus:border-error-500 focus:ring-error-500":"border-gray-300 focus:border-primary-500 focus:ring-primary-500","bg-white"],filled:["border-0 bg-gray-100",r.errorMessage?"focus:ring-error-500":"focus:ring-primary-500"],underlined:["border-0 border-b-2 bg-transparent rounded-none",r.errorMessage?"border-error-300 focus:border-error-500":"border-gray-300 focus:border-primary-500"]},c=[];return r.disabled&&c.push("bg-gray-50","text-gray-500","cursor-not-allowed"),c.push("pr-10"),[...e,...s[r.size],...a[r.variant],...c].flat()}),b=e=>typeof e=="object"&&e!==null?e[r.optionValue]:e,v=e=>typeof e=="object"&&e!==null?e[r.optionLabel]:e,h=e=>{const s=e.target.value,a=s===""?null:isNaN(s)?s:Number(s);d("update:modelValue",a),d("change",a)},x=e=>{f.value=!0,d("focus",e)},S=e=>{f.value=!1,d("blur",e),r.rules.length>0};return(e,s)=>(o(),l("div",N,[t.label?(o(),l("label",{key:0,for:g.value,class:"block text-sm font-medium text-gray-700 mb-1"},[C(u(t.label)+" ",1),t.required?(o(),l("span",T,"*")):i("",!0)],8,L)):i("",!0),n("div",j,[n("select",M({id:g.value,value:t.modelValue,disabled:t.disabled,class:p.value},e.$attrs,{onChange:h,onBlur:S,onFocus:x}),[n("option",z,u(t.placeholder||"Select an option"),1),(o(!0),l(B,null,F(t.options,a=>(o(),l("option",{key:b(a),value:b(a)},u(v(a)),9,P))),128))],16,w),s[0]||(s[0]=n("div",{class:"absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none"},[n("span",{class:"text-gray-400 text-sm"},"▼")],-1))]),t.errorMessage?(o(),l("div",q,u(t.errorMessage),1)):i("",!0),t.helpText&&!t.errorMessage?(o(),l("div",A,u(t.helpText),1)):i("",!0)]))}},_=V(I,[["__scopeId","data-v-dfd92765"]]);export{_ as F};
|
||||
|
|
@ -1 +1 @@
|
|||
import{_ as u,a as s,g as n,af as m,aQ as h,i as k,w as p,b as o,n as t,j as c,t as i,k as x,e as g}from"./index-BUdRbiwj.js";import{F as f}from"./FPCard-qHzcEQAE.js";const v={class:"grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4"},y={class:"flex items-center"},w={class:"flex-shrink-0"},_={class:"ml-4 flex-1"},C={class:"text-sm font-medium text-gray-600"},b={class:"flex items-baseline"},B={class:"text-2xl font-semibold text-gray-900"},M={key:0,class:"self-center flex-shrink-0 h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},j={key:1,class:"self-center flex-shrink-0 h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},F={class:"sr-only"},z={key:0,class:"text-xs text-gray-500 mt-1"},V={__name:"FPStats",props:{stats:{type:Array,required:!0,validator:a=>a.every(l=>l.name&&l.value!==void 0&&l.value!==null)}},setup(a){const l=d=>d>0?"text-green-600":d<0?"text-red-600":"text-gray-500";return(d,r)=>(n(),s("div",v,[(n(!0),s(m,null,h(a.stats,e=>(n(),k(g(f),{key:e.name,padding:"md",class:"bg-white"},{default:p(()=>[o("div",y,[o("div",w,[o("div",{class:t(["w-8 h-8 rounded flex items-center justify-center",e.iconBg||"bg-primary-100"])},[e.icon==="building"?(n(),s("svg",{key:0,class:t(["w-5 h-5",e.iconColor||"text-primary-600"]),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},r[0]||(r[0]=[o("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4"},null,-1)]),2)):e.icon==="check-circle"?(n(),s("svg",{key:1,class:t(["w-5 h-5",e.iconColor||"text-primary-600"]),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},r[1]||(r[1]=[o("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1)]),2)):e.icon==="heart"?(n(),s("svg",{key:2,class:t(["w-5 h-5",e.iconColor||"text-primary-600"]),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},r[2]||(r[2]=[o("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z"},null,-1)]),2)):e.icon==="shield-check"?(n(),s("svg",{key:3,class:t(["w-5 h-5",e.iconColor||"text-primary-600"]),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},r[3]||(r[3]=[o("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"},null,-1)]),2)):(n(),s("svg",{key:4,class:t(["w-5 h-5",e.iconColor||"text-primary-600"]),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},r[4]||(r[4]=[o("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1)]),2))],2)]),o("div",_,[o("p",C,i(e.name),1),o("div",b,[o("p",B,i(e.value),1),e.change?(n(),s("p",{key:0,class:t(["ml-2 flex items-baseline text-sm font-semibold",l(e.change)])},[e.change>0?(n(),s("svg",M,r[5]||(r[5]=[o("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M7 11l5-5m0 0l5 5m-5-5v12"},null,-1)]))):e.change<0?(n(),s("svg",j,r[6]||(r[6]=[o("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M17 13l-5 5m0 0l-5-5m5 5V6"},null,-1)]))):c("",!0),o("span",F,i(e.change>0?"Increased":"Decreased")+" by",1),x(" "+i(Math.abs(e.change))+"% ",1)],2)):c("",!0)]),e.subtitle?(n(),s("p",z,i(e.subtitle),1)):c("",!0)])])]),_:2},1024))),128))]))}},N=u(V,[["__scopeId","data-v-6c53d08e"]]);export{N as F};
|
||||
import{_ as u,a as s,af as m,aR as h,g as n,i as k,w as p,b as o,n as t,j as c,t as i,k as x,e as g}from"./index-QAlcqU00.js";import{F as f}from"./FPCard-AB6NRXg5.js";const v={class:"grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4"},y={class:"flex items-center"},w={class:"flex-shrink-0"},_={class:"ml-4 flex-1"},C={class:"text-sm font-medium text-gray-600"},b={class:"flex items-baseline"},B={class:"text-2xl font-semibold text-gray-900"},M={key:0,class:"self-center flex-shrink-0 h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},j={key:1,class:"self-center flex-shrink-0 h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},F={class:"sr-only"},z={key:0,class:"text-xs text-gray-500 mt-1"},V={__name:"FPStats",props:{stats:{type:Array,required:!0,validator:a=>a.every(l=>l.name&&l.value!==void 0&&l.value!==null)}},setup(a){const l=d=>d>0?"text-green-600":d<0?"text-red-600":"text-gray-500";return(d,r)=>(n(),s("div",v,[(n(!0),s(m,null,h(a.stats,e=>(n(),k(g(f),{key:e.name,padding:"md",class:"bg-white"},{default:p(()=>[o("div",y,[o("div",w,[o("div",{class:t(["w-8 h-8 rounded flex items-center justify-center",e.iconBg||"bg-primary-100"])},[e.icon==="building"?(n(),s("svg",{key:0,class:t(["w-5 h-5",e.iconColor||"text-primary-600"]),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},r[0]||(r[0]=[o("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4"},null,-1)]),2)):e.icon==="check-circle"?(n(),s("svg",{key:1,class:t(["w-5 h-5",e.iconColor||"text-primary-600"]),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},r[1]||(r[1]=[o("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1)]),2)):e.icon==="heart"?(n(),s("svg",{key:2,class:t(["w-5 h-5",e.iconColor||"text-primary-600"]),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},r[2]||(r[2]=[o("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z"},null,-1)]),2)):e.icon==="shield-check"?(n(),s("svg",{key:3,class:t(["w-5 h-5",e.iconColor||"text-primary-600"]),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},r[3]||(r[3]=[o("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"},null,-1)]),2)):(n(),s("svg",{key:4,class:t(["w-5 h-5",e.iconColor||"text-primary-600"]),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},r[4]||(r[4]=[o("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1)]),2))],2)]),o("div",_,[o("p",C,i(e.name),1),o("div",b,[o("p",B,i(e.value),1),e.change?(n(),s("p",{key:0,class:t(["ml-2 flex items-baseline text-sm font-semibold",l(e.change)])},[e.change>0?(n(),s("svg",M,r[5]||(r[5]=[o("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M7 11l5-5m0 0l5 5m-5-5v12"},null,-1)]))):e.change<0?(n(),s("svg",j,r[6]||(r[6]=[o("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M17 13l-5 5m0 0l-5-5m5 5V6"},null,-1)]))):c("",!0),o("span",F,i(e.change>0?"Increased":"Decreased")+" by",1),x(" "+i(Math.abs(e.change))+"% ",1)],2)):c("",!0)]),e.subtitle?(n(),s("p",z,i(e.subtitle),1)):c("",!0)])])]),_:2},1024))),128))]))}},N=u(V,[["__scopeId","data-v-6c53d08e"]]);export{N as F};
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -1 +1 @@
|
|||
import{_ as v,r as _,m as b,a as c,g as s,b as l,af as g,aQ as h,n as k,i as u,j as m,k as p,aW as x,t as y,w as T,e as C,p as F}from"./index-BUdRbiwj.js";import{F as V}from"./FPBadge-BKY5dPnL.js";const B={class:"fp-tabs"},S={class:"border-b border-gray-200"},N={class:"-mb-px flex space-x-8"},P=["onClick"],w={class:"flex items-center"},z={class:"mt-6"},A={__name:"FPTabs",props:{tabs:{type:Array,required:!0,validator:r=>r.every(o=>o.key&&o.label)},defaultTab:{type:String,default:null},modelValue:{type:String,default:null}},emits:["update:modelValue","tab-change"],setup(r,{emit:o}){var i;const n=r,d=o,t=_(n.modelValue||n.defaultTab||((i=n.tabs[0])==null?void 0:i.key)),f=e=>{t.value=e,d("update:modelValue",e),d("tab-change",e)};return b(()=>n.modelValue,e=>{e&&e!==t.value&&(t.value=e)}),(e,D)=>(s(),c("div",B,[l("div",S,[l("nav",N,[(s(!0),c(g,null,h(r.tabs,a=>(s(),c("button",{key:a.key,type:"button",class:k(["py-2 px-1 border-b-2 font-medium text-sm transition-colors duration-200",t.value===a.key?"border-primary-500 text-primary-600":"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300"]),onClick:$=>f(a.key)},[l("div",w,[a.icon?(s(),u(x(a.icon),{key:0,class:"w-4 h-4 mr-2"})):m("",!0),p(" "+y(a.label)+" ",1),a.badge?(s(),u(C(V),{key:1,variant:"secondary",size:"sm",class:"ml-2"},{default:T(()=>[p(y(a.badge),1)]),_:2},1024)):m("",!0)])],10,P))),128))])]),l("div",z,[F(e.$slots,"default",{activeTab:t.value},void 0,!0)])]))}},E=v(A,[["__scopeId","data-v-a621f3f9"]]);export{E as F};
|
||||
import{_ as v,r as _,m as b,a as c,b as l,af as g,aR as h,p as k,g as s,n as x,i as u,j as m,k as p,aX as T,t as y,w as C,e as F}from"./index-QAlcqU00.js";import{F as V}from"./FPBadge-DvOitM1C.js";const B={class:"fp-tabs"},S={class:"border-b border-gray-200"},N={class:"-mb-px flex space-x-8"},P=["onClick"],w={class:"flex items-center"},z={class:"mt-6"},A={__name:"FPTabs",props:{tabs:{type:Array,required:!0,validator:r=>r.every(o=>o.key&&o.label)},defaultTab:{type:String,default:null},modelValue:{type:String,default:null}},emits:["update:modelValue","tab-change"],setup(r,{emit:o}){var i;const n=r,d=o,t=_(n.modelValue||n.defaultTab||((i=n.tabs[0])==null?void 0:i.key)),f=e=>{t.value=e,d("update:modelValue",e),d("tab-change",e)};return b(()=>n.modelValue,e=>{e&&e!==t.value&&(t.value=e)}),(e,D)=>(s(),c("div",B,[l("div",S,[l("nav",N,[(s(!0),c(g,null,h(r.tabs,a=>(s(),c("button",{key:a.key,type:"button",class:x(["py-2 px-1 border-b-2 font-medium text-sm transition-colors duration-200",t.value===a.key?"border-primary-500 text-primary-600":"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300"]),onClick:$=>f(a.key)},[l("div",w,[a.icon?(s(),u(T(a.icon),{key:0,class:"w-4 h-4 mr-2"})):m("",!0),p(" "+y(a.label)+" ",1),a.badge?(s(),u(F(V),{key:1,variant:"secondary",size:"sm",class:"ml-2"},{default:C(()=>[p(y(a.badge),1)]),_:2},1024)):m("",!0)])],10,P))),128))])]),l("div",z,[k(e.$slots,"default",{activeTab:t.value},void 0,!0)])]))}},E=v(A,[["__scopeId","data-v-a621f3f9"]]);export{E as F};
|
||||
|
|
@ -1 +1 @@
|
|||
import{_ as y,q as b,r as o,i as u,w as t,f as w,g as d,d as s,k as a,h as x,j as c,b as k,e as f,t as C,V as S}from"./index-BUdRbiwj.js";import{r as F,e as B}from"./validators-BsFa-KD7.js";import{V as P}from"./VContainer-Cf71ALK9.js";import{V as N,a as R,b as I,c as T,d as j,e as q,f as A,g as _}from"./VTextField-CU5R_EKn.js";const E={class:"text-center"},z={__name:"ForgotPasswordView",setup(D){const p=b(),r=o({email:""}),n=o(!1),l=o(null),i=o(!1),V=async()=>{try{n.value=!0,l.value=null,i.value=!1,await p.forgotPassword(r.value.email),i.value=!0}catch(m){l.value=m.message||"Failed to send reset instructions"}finally{n.value=!1}};return(m,e)=>{const v=w("router-link");return d(),u(P,{fluid:"",class:"fill-height"},{default:t(()=>[s(N,{justify:"center",align:"center"},{default:t(()=>[s(R,{cols:"12",sm:"8",md:"6",lg:"4"},{default:t(()=>[s(I,{class:"pa-6"},{default:t(()=>[s(T,{class:"text-center text-h4 mb-6"},{default:t(()=>e[1]||(e[1]=[a(" Reset Password ",-1)])),_:1,__:[1]}),s(j,{class:"text-center mb-4"},{default:t(()=>e[2]||(e[2]=[a(" Enter your email to receive reset instructions ",-1)])),_:1,__:[2]}),s(q,{onSubmit:x(V,["prevent"])},{default:t(()=>[s(A,{modelValue:r.value.email,"onUpdate:modelValue":e[0]||(e[0]=g=>r.value.email=g),label:"Email",type:"email","prepend-inner-icon":"mdi-email",rules:[f(F),f(B)],variant:"outlined",class:"mb-3"},null,8,["modelValue","rules"]),l.value?(d(),u(_,{key:0,type:"error",class:"mb-4"},{default:t(()=>[a(C(l.value),1)]),_:1})):c("",!0),i.value?(d(),u(_,{key:1,type:"success",class:"mb-4"},{default:t(()=>e[3]||(e[3]=[a(" Reset instructions sent to your email ",-1)])),_:1,__:[3]})):c("",!0),s(S,{type:"submit",color:"primary",size:"large",block:"",loading:n.value,class:"mb-4"},{default:t(()=>e[4]||(e[4]=[a(" Send Reset Instructions ",-1)])),_:1,__:[4]},8,["loading"]),k("div",E,[s(v,{to:"/login",class:"text-decoration-none"},{default:t(()=>e[5]||(e[5]=[a(" Back to Sign In ",-1)])),_:1,__:[5]})])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})}}},H=y(z,[["__scopeId","data-v-c3e285a3"]]);export{H as default};
|
||||
import{_ as y,q as b,r as o,i as u,w as t,f as w,g as d,d as s,k as a,h as x,j as c,b as k,e as f,t as C,V as S}from"./index-QAlcqU00.js";import{r as F,e as B}from"./validators-BsFa-KD7.js";import{V as P}from"./VContainer-DnjqAjRY.js";import{V as N,a as R,b as I,c as T,d as j,e as q,f as A,g as _}from"./VTextField-BNQ_nyd-.js";const E={class:"text-center"},z={__name:"ForgotPasswordView",setup(D){const p=b(),r=o({email:""}),n=o(!1),l=o(null),i=o(!1),V=async()=>{try{n.value=!0,l.value=null,i.value=!1,await p.forgotPassword(r.value.email),i.value=!0}catch(m){l.value=m.message||"Failed to send reset instructions"}finally{n.value=!1}};return(m,e)=>{const v=w("router-link");return d(),u(P,{fluid:"",class:"fill-height"},{default:t(()=>[s(N,{justify:"center",align:"center"},{default:t(()=>[s(R,{cols:"12",sm:"8",md:"6",lg:"4"},{default:t(()=>[s(I,{class:"pa-6"},{default:t(()=>[s(T,{class:"text-center text-h4 mb-6"},{default:t(()=>e[1]||(e[1]=[a(" Reset Password ",-1)])),_:1,__:[1]}),s(j,{class:"text-center mb-4"},{default:t(()=>e[2]||(e[2]=[a(" Enter your email to receive reset instructions ",-1)])),_:1,__:[2]}),s(q,{onSubmit:x(V,["prevent"])},{default:t(()=>[s(A,{modelValue:r.value.email,"onUpdate:modelValue":e[0]||(e[0]=g=>r.value.email=g),label:"Email",type:"email","prepend-inner-icon":"mdi-email",rules:[f(F),f(B)],variant:"outlined",class:"mb-3"},null,8,["modelValue","rules"]),l.value?(d(),u(_,{key:0,type:"error",class:"mb-4"},{default:t(()=>[a(C(l.value),1)]),_:1})):c("",!0),i.value?(d(),u(_,{key:1,type:"success",class:"mb-4"},{default:t(()=>e[3]||(e[3]=[a(" Reset instructions sent to your email ",-1)])),_:1,__:[3]})):c("",!0),s(S,{type:"submit",color:"primary",size:"large",block:"",loading:n.value,class:"mb-4"},{default:t(()=>e[4]||(e[4]=[a(" Send Reset Instructions ",-1)])),_:1,__:[4]},8,["loading"]),k("div",E,[s(v,{to:"/login",class:"text-decoration-none"},{default:t(()=>e[5]||(e[5]=[a(" Back to Sign In ",-1)])),_:1,__:[5]})])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})}}},H=y(z,[["__scopeId","data-v-c3e285a3"]]);export{H as default};
|
||||
|
|
@ -1 +1 @@
|
|||
import{r as b,c as v,o as p,m as g,a as x,j as h,g as k,b as e,t as y,k as u}from"./index-BUdRbiwj.js";const w={key:0,class:"mb-4 p-4 bg-blue-50 border border-blue-200 rounded-lg"},D={class:"flex items-start"},C={class:"ml-3 flex-1"},M={class:"mt-1 text-sm text-blue-700"},N={__name:"FormRestoreNotification",props:{savedDataInfo:{type:Object,default:null},visible:{type:Boolean,default:!1}},emits:["restore","dismiss"],setup(d,{emit:f}){const o=d,l=f,n=b(!1),c=v(()=>{var i;if(!((i=o.savedDataInfo)!=null&&i.age))return"";const t=Math.floor(o.savedDataInfo.age/(1e3*60)),s=Math.floor(t/60),r=Math.floor(s/24);return r>0?`${r} day${r>1?"s":""}`:s>0?`${s} hour${s>1?"s":""}`:t>0?`${t} minute${t>1?"s":""}`:"a few moments"}),m=()=>{l("restore"),n.value=!1},a=()=>{l("dismiss"),n.value=!1};return p(()=>{var t;o.visible&&((t=o.savedDataInfo)!=null&&t.hasData)&&(n.value=!0)}),g(()=>o.visible,t=>{var s;t&&((s=o.savedDataInfo)!=null&&s.hasData)?n.value=!0:n.value=!1}),(t,s)=>n.value?(k(),x("div",w,[e("div",D,[s[4]||(s[4]=e("div",{class:"flex-shrink-0"},[e("svg",{class:"w-5 h-5 text-blue-400 mt-0.5",fill:"currentColor",viewBox:"0 0 20 20"},[e("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z","clip-rule":"evenodd"})])],-1)),e("div",C,[s[2]||(s[2]=e("h3",{class:"text-sm font-medium text-blue-800"}," Unsaved Changes Found ",-1)),e("div",M,[e("p",null," We found unsaved changes from "+y(c.value)+" ago. Would you like to restore your previous work? ",1),s[0]||(s[0]=e("p",{class:"mt-1 text-xs text-blue-600"},[e("strong",null,"Note:"),u(" Text data will be restored, but images and audio recordings cannot be recovered after page refresh. ")],-1))]),e("div",{class:"mt-3 flex space-x-3"},[e("button",{onClick:m,type:"button",class:"inline-flex items-center px-3 py-1.5 border border-transparent text-xs font-medium rounded text-blue-800 bg-blue-100 hover:bg-blue-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"},s[1]||(s[1]=[e("svg",{class:"w-3 h-3 mr-1",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})],-1),u(" Restore Changes ",-1)])),e("button",{onClick:a,type:"button",class:"inline-flex items-center px-3 py-1.5 border border-transparent text-xs font-medium rounded text-blue-800 bg-transparent hover:bg-blue-100 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"}," Start Fresh ")])]),e("div",{class:"ml-auto pl-3"},[e("div",{class:"-mx-1.5 -my-1.5"},[e("button",{onClick:a,type:"button",class:"inline-flex bg-blue-50 rounded-md p-1.5 text-blue-500 hover:bg-blue-100 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-blue-50 focus:ring-blue-600"},s[3]||(s[3]=[e("span",{class:"sr-only"},"Dismiss",-1),e("svg",{class:"w-3 h-3",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1)]))])])])])):h("",!0)}};export{N as _};
|
||||
import{r as b,c as v,o as p,m as g,a as x,j as h,b as e,t as k,k as u,g as y}from"./index-QAlcqU00.js";const w={key:0,class:"mb-4 p-4 bg-blue-50 border border-blue-200 rounded-lg"},D={class:"flex items-start"},C={class:"ml-3 flex-1"},M={class:"mt-1 text-sm text-blue-700"},N={__name:"FormRestoreNotification",props:{savedDataInfo:{type:Object,default:null},visible:{type:Boolean,default:!1}},emits:["restore","dismiss"],setup(d,{emit:f}){const o=d,l=f,n=b(!1),c=v(()=>{var i;if(!((i=o.savedDataInfo)!=null&&i.age))return"";const t=Math.floor(o.savedDataInfo.age/(1e3*60)),s=Math.floor(t/60),r=Math.floor(s/24);return r>0?`${r} day${r>1?"s":""}`:s>0?`${s} hour${s>1?"s":""}`:t>0?`${t} minute${t>1?"s":""}`:"a few moments"}),m=()=>{l("restore"),n.value=!1},a=()=>{l("dismiss"),n.value=!1};return p(()=>{var t;o.visible&&((t=o.savedDataInfo)!=null&&t.hasData)&&(n.value=!0)}),g(()=>o.visible,t=>{var s;t&&((s=o.savedDataInfo)!=null&&s.hasData)?n.value=!0:n.value=!1}),(t,s)=>n.value?(y(),x("div",w,[e("div",D,[s[4]||(s[4]=e("div",{class:"flex-shrink-0"},[e("svg",{class:"w-5 h-5 text-blue-400 mt-0.5",fill:"currentColor",viewBox:"0 0 20 20"},[e("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z","clip-rule":"evenodd"})])],-1)),e("div",C,[s[2]||(s[2]=e("h3",{class:"text-sm font-medium text-blue-800"}," Unsaved Changes Found ",-1)),e("div",M,[e("p",null," We found unsaved changes from "+k(c.value)+" ago. Would you like to restore your previous work? ",1),s[0]||(s[0]=e("p",{class:"mt-1 text-xs text-blue-600"},[e("strong",null,"Note:"),u(" Text data will be restored, but images and audio recordings cannot be recovered after page refresh. ")],-1))]),e("div",{class:"mt-3 flex space-x-3"},[e("button",{onClick:m,type:"button",class:"inline-flex items-center px-3 py-1.5 border border-transparent text-xs font-medium rounded text-blue-800 bg-blue-100 hover:bg-blue-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"},s[1]||(s[1]=[e("svg",{class:"w-3 h-3 mr-1",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})],-1),u(" Restore Changes ",-1)])),e("button",{onClick:a,type:"button",class:"inline-flex items-center px-3 py-1.5 border border-transparent text-xs font-medium rounded text-blue-800 bg-transparent hover:bg-blue-100 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"}," Start Fresh ")])]),e("div",{class:"ml-auto pl-3"},[e("div",{class:"-mx-1.5 -my-1.5"},[e("button",{onClick:a,type:"button",class:"inline-flex bg-blue-50 rounded-md p-1.5 text-blue-500 hover:bg-blue-100 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-blue-50 focus:ring-blue-600"},s[3]||(s[3]=[e("span",{class:"sr-only"},"Dismiss",-1),e("svg",{class:"w-3 h-3",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1)]))])])])])):h("",!0)}};export{N as _};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1 +1 @@
|
|||
import{i as o,f as t,g as r}from"./index-BUdRbiwj.js";const a={__name:"LocationsView",setup(n){return(c,s)=>{const e=t("router-view");return r(),o(e)}}};export{a as default};
|
||||
import{i as o,f as t,g as r}from"./index-QAlcqU00.js";const a={__name:"LocationsView",setup(n){return(c,s)=>{const e=t("router-view");return r(),o(e)}}};export{a as default};
|
||||
|
|
@ -1 +1 @@
|
|||
import{_ as C,u as P,r as w,c as m,o as S,a as d,b as s,d as o,w as n,e as a,t as A,f as B,g as u,h as E,i as M,j as I,k as c,F as N,l as j}from"./index-BUdRbiwj.js";import{e as x,r as b}from"./validators-BsFa-KD7.js";import{F as _}from"./FPInput-CzR_dWoe.js";import{F as q}from"./FPCard-qHzcEQAE.js";import{F as L}from"./FPCheckbox-Bu8jNAEW.js";import{F as z}from"./FPAlert-qtmRrGXf.js";const D={class:"min-h-screen flex items-center justify-center bg-gradient-to-br from-primary-600 to-primary-800 py-12 px-4 sm:px-6 lg:px-8"},U={class:"max-w-md w-full space-y-8"},Y={class:"flex items-center justify-between"},H={key:0},R={key:1,class:"flex items-center"},T={class:"text-center"},$={class:"text-center"},G={class:"text-primary-100 text-sm"},J={__name:"LoginView",setup(K){const{login:h,loading:p,error:f}=P(),{success:V}=j(),t=w({email:"",password:"",rememberMe:!1}),i=w(!1),v=m(()=>{const r=[];return t.value.email&&x(t.value.email)!==!0&&r.push(x(t.value.email)),r}),y=m(()=>{const r=[];return t.value.password&&b(t.value.password)!==!0&&r.push(b(t.value.password)),r}),k=m(()=>new Date().getFullYear()),F=async()=>{try{await h(t.value),V("Successfully signed in!")}catch(r){console.error("Login error:",r)}};return S(()=>{const r=document.querySelector('input[type="email"]');r&&r.focus()}),(r,e)=>{const g=B("router-link");return u(),d("div",D,[s("div",U,[e[8]||(e[8]=s("div",{class:"text-center"},[s("h2",{class:"text-3xl font-bold text-white mb-2"},"Facility Plus"),s("p",{class:"text-primary-100"},"Sign in to your account")],-1)),o(a(q),{padding:"lg",class:"bg-white shadow-2xl"},{default:n(()=>[s("form",{onSubmit:E(F,["prevent"]),class:"space-y-6"},[o(a(_),{modelValue:t.value.email,"onUpdate:modelValue":e[0]||(e[0]=l=>t.value.email=l),label:"Email Address",type:"email",placeholder:"Enter your email","error-message":v.value.length>0?v.value[0]:"",required:"",class:"w-full"},null,8,["modelValue","error-message"]),o(a(_),{modelValue:t.value.password,"onUpdate:modelValue":e[1]||(e[1]=l=>t.value.password=l),label:"Password",type:i.value?"text":"password","append-icon":i.value?"mdi-eye":"mdi-eye-off","append-icon-clickable":"",placeholder:"Enter your password","error-message":y.value.length>0?y.value[0]:"",required:"",onAppendIconClick:e[2]||(e[2]=l=>i.value=!i.value),class:"w-full"},null,8,["modelValue","type","append-icon","error-message"]),s("div",Y,[o(a(L),{modelValue:t.value.rememberMe,"onUpdate:modelValue":e[3]||(e[3]=l=>t.value.rememberMe=l),label:"Remember me"},null,8,["modelValue"]),o(g,{to:"/forgot-password",class:"text-sm text-primary-600 hover:text-primary-700 font-medium transition-colors"},{default:n(()=>e[4]||(e[4]=[c(" Forgot password? ",-1)])),_:1,__:[4]})]),a(f)?(u(),M(a(z),{key:0,type:"error",message:a(f),class:"mb-4"},null,8,["message"])):I("",!0),o(a(N),{type:"submit",variant:"primary",size:"lg",block:"",loading:a(p),class:"w-full"},{default:n(()=>[a(p)?(u(),d("span",R,e[5]||(e[5]=[s("svg",{class:"animate-spin -ml-1 mr-3 h-4 w-4 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[s("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),s("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})],-1),c(" Signing in... ",-1)]))):(u(),d("span",H,"Sign In"))]),_:1},8,["loading"]),e[7]||(e[7]=s("div",{class:"relative"},[s("div",{class:"absolute inset-0 flex items-center"},[s("div",{class:"w-full border-t border-gray-300"})]),s("div",{class:"relative flex justify-center text-sm"},[s("span",{class:"px-2 bg-white text-gray-500"},"Don't have an account?")])],-1)),s("div",T,[o(g,{to:"/register",class:"text-primary-600 hover:text-primary-700 font-medium transition-colors"},{default:n(()=>e[6]||(e[6]=[c(" Create your account ",-1)])),_:1,__:[6]})])],32)]),_:1}),s("div",$,[s("p",G," © "+A(k.value)+" Facility Plus. All rights reserved. ",1)])])])}}},se=C(J,[["__scopeId","data-v-c8761e5f"]]);export{se as default};
|
||||
import{_ as C,u as P,r as w,c as m,o as S,a as d,b as s,d as o,w as n,e as a,t as A,f as B,g as u,h as E,i as M,j as I,k as c,F as N,l as j}from"./index-QAlcqU00.js";import{e as x,r as b}from"./validators-BsFa-KD7.js";import{F as _}from"./FPInput-D5RURom0.js";import{F as q}from"./FPCard-AB6NRXg5.js";import{F as L}from"./FPCheckbox-DcRYwN3n.js";import{F as z}from"./FPAlert-CZx0ew6-.js";const D={class:"min-h-screen flex items-center justify-center bg-gradient-to-br from-primary-600 to-primary-800 py-12 px-4 sm:px-6 lg:px-8"},U={class:"max-w-md w-full space-y-8"},Y={class:"flex items-center justify-between"},H={key:0},R={key:1,class:"flex items-center"},T={class:"text-center"},$={class:"text-center"},G={class:"text-primary-100 text-sm"},J={__name:"LoginView",setup(K){const{login:h,loading:p,error:f}=P(),{success:V}=j(),t=w({email:"",password:"",rememberMe:!1}),i=w(!1),v=m(()=>{const r=[];return t.value.email&&x(t.value.email)!==!0&&r.push(x(t.value.email)),r}),y=m(()=>{const r=[];return t.value.password&&b(t.value.password)!==!0&&r.push(b(t.value.password)),r}),k=m(()=>new Date().getFullYear()),F=async()=>{try{await h(t.value),V("Successfully signed in!")}catch(r){console.error("Login error:",r)}};return S(()=>{const r=document.querySelector('input[type="email"]');r&&r.focus()}),(r,e)=>{const g=B("router-link");return u(),d("div",D,[s("div",U,[e[8]||(e[8]=s("div",{class:"text-center"},[s("h2",{class:"text-3xl font-bold text-white mb-2"},"Facility Plus"),s("p",{class:"text-primary-100"},"Sign in to your account")],-1)),o(a(q),{padding:"lg",class:"bg-white shadow-2xl"},{default:n(()=>[s("form",{onSubmit:E(F,["prevent"]),class:"space-y-6"},[o(a(_),{modelValue:t.value.email,"onUpdate:modelValue":e[0]||(e[0]=l=>t.value.email=l),label:"Email Address",type:"email",placeholder:"Enter your email","error-message":v.value.length>0?v.value[0]:"",required:"",class:"w-full"},null,8,["modelValue","error-message"]),o(a(_),{modelValue:t.value.password,"onUpdate:modelValue":e[1]||(e[1]=l=>t.value.password=l),label:"Password",type:i.value?"text":"password","append-icon":i.value?"mdi-eye":"mdi-eye-off","append-icon-clickable":"",placeholder:"Enter your password","error-message":y.value.length>0?y.value[0]:"",required:"",onAppendIconClick:e[2]||(e[2]=l=>i.value=!i.value),class:"w-full"},null,8,["modelValue","type","append-icon","error-message"]),s("div",Y,[o(a(L),{modelValue:t.value.rememberMe,"onUpdate:modelValue":e[3]||(e[3]=l=>t.value.rememberMe=l),label:"Remember me"},null,8,["modelValue"]),o(g,{to:"/forgot-password",class:"text-sm text-primary-600 hover:text-primary-700 font-medium transition-colors"},{default:n(()=>e[4]||(e[4]=[c(" Forgot password? ",-1)])),_:1,__:[4]})]),a(f)?(u(),M(a(z),{key:0,type:"error",message:a(f),class:"mb-4"},null,8,["message"])):I("",!0),o(a(N),{type:"submit",variant:"primary",size:"lg",block:"",loading:a(p),class:"w-full"},{default:n(()=>[a(p)?(u(),d("span",R,e[5]||(e[5]=[s("svg",{class:"animate-spin -ml-1 mr-3 h-4 w-4 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[s("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),s("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})],-1),c(" Signing in... ",-1)]))):(u(),d("span",H,"Sign In"))]),_:1},8,["loading"]),e[7]||(e[7]=s("div",{class:"relative"},[s("div",{class:"absolute inset-0 flex items-center"},[s("div",{class:"w-full border-t border-gray-300"})]),s("div",{class:"relative flex justify-center text-sm"},[s("span",{class:"px-2 bg-white text-gray-500"},"Don't have an account?")])],-1)),s("div",T,[o(g,{to:"/register",class:"text-primary-600 hover:text-primary-700 font-medium transition-colors"},{default:n(()=>e[6]||(e[6]=[c(" Create your account ",-1)])),_:1,__:[6]})])],32)]),_:1}),s("div",$,[s("p",G," © "+A(k.value)+" Facility Plus. All rights reserved. ",1)])])])}}},se=C(J,[["__scopeId","data-v-c8761e5f"]]);export{se as default};
|
||||
|
|
@ -1 +1 @@
|
|||
import{o as a,v as r,a as s,b as e,g as o}from"./index-BUdRbiwj.js";const c={class:"flex items-center justify-center min-h-screen"},l={__name:"MaintenanceView",setup(i){const n=r();return a(()=>{n.replace("/maintenance/preventive")}),(m,t)=>(o(),s("div",c,t[0]||(t[0]=[e("div",{class:"text-center"},[e("div",{class:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary-600 mx-auto mb-4"}),e("p",{class:"text-gray-600"},"Redirecting to Maintenance Management...")],-1)])))}};export{l as default};
|
||||
import{o as a,v as r,a as s,b as e,g as o}from"./index-QAlcqU00.js";const c={class:"flex items-center justify-center min-h-screen"},l={__name:"MaintenanceView",setup(i){const n=r();return a(()=>{n.replace("/maintenance/preventive")}),(m,t)=>(o(),s("div",c,t[0]||(t[0]=[e("div",{class:"text-center"},[e("div",{class:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary-600 mx-auto mb-4"}),e("p",{class:"text-gray-600"},"Redirecting to Maintenance Management...")],-1)])))}};export{l as default};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1 +1 @@
|
|||
import{i as o,f as r,g as t}from"./index-BUdRbiwj.js";const a={__name:"MetersView",setup(n){return(s,_)=>{const e=r("router-view");return t(),o(e)}}};export{a as default};
|
||||
import{i as o,f as r,g as t}from"./index-QAlcqU00.js";const a={__name:"MetersView",setup(n){return(s,_)=>{const e=r("router-view");return t(),o(e)}}};export{a as default};
|
||||
|
|
@ -1 +1 @@
|
|||
import{_ as a,i as n,w as t,g as d,d as e,b as s,a2 as i,k as r,V as l}from"./index-BUdRbiwj.js";import{V as f}from"./VContainer-Cf71ALK9.js";const u={};function _(m,o){return d(),n(f,{class:"text-center"},{default:t(()=>[e(i,{size:"120",color:"grey"},{default:t(()=>o[0]||(o[0]=[r("mdi-file-question",-1)])),_:1,__:[0]}),o[2]||(o[2]=s("h1",{class:"text-h2 mb-4"},"404 - Page Not Found",-1)),o[3]||(o[3]=s("p",{class:"text-h6 mb-6"},"The page you're looking for doesn't exist.",-1)),e(l,{color:"primary",to:"/dashboard"},{default:t(()=>o[1]||(o[1]=[r("Go to Dashboard",-1)])),_:1,__:[1]})]),_:1,__:[2,3]})}const p=a(u,[["render",_]]);export{p as default};
|
||||
import{_ as a,i as n,w as t,g as d,d as e,b as s,a2 as i,k as r,V as l}from"./index-QAlcqU00.js";import{V as f}from"./VContainer-DnjqAjRY.js";const u={};function _(m,o){return d(),n(f,{class:"text-center"},{default:t(()=>[e(i,{size:"120",color:"grey"},{default:t(()=>o[0]||(o[0]=[r("mdi-file-question",-1)])),_:1,__:[0]}),o[2]||(o[2]=s("h1",{class:"text-h2 mb-4"},"404 - Page Not Found",-1)),o[3]||(o[3]=s("p",{class:"text-h6 mb-6"},"The page you're looking for doesn't exist.",-1)),e(l,{color:"primary",to:"/dashboard"},{default:t(()=>o[1]||(o[1]=[r("Go to Dashboard",-1)])),_:1,__:[1]})]),_:1,__:[2,3]})}const p=a(u,[["render",_]]);export{p as default};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1 +1 @@
|
|||
import{i as o,f as r,g as t}from"./index-BUdRbiwj.js";const c={__name:"PartsView",setup(n){return(s,_)=>{const e=r("router-view");return t(),o(e)}}};export{c as default};
|
||||
import{i as o,f as r,g as t}from"./index-QAlcqU00.js";const c={__name:"PartsView",setup(n){return(s,_)=>{const e=r("router-view");return t(),o(e)}}};export{c as default};
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -1 +1 @@
|
|||
import{_ as o,a as t,d as s,f as _,g as c}from"./index-BUdRbiwj.js";const a={class:"people-view"},r={__name:"PeopleView",setup(n){return(p,i)=>{const e=_("router-view");return c(),t("div",a,[s(e)])}}},d=o(r,[["__scopeId","data-v-3c12d62b"]]);export{d as default};
|
||||
import{_ as o,a as t,d as s,f as _,g as c}from"./index-QAlcqU00.js";const a={class:"people-view"},r={__name:"PeopleView",setup(n){return(p,i)=>{const e=_("router-view");return c(),t("div",a,[s(e)])}}},d=o(r,[["__scopeId","data-v-3c12d62b"]]);export{d as default};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1 +1 @@
|
|||
import{i as o,f as t,g as n}from"./index-BUdRbiwj.js";const s={__name:"PreventiveMaintenanceView",setup(r){return(a,c)=>{const e=t("router-view");return n(),o(e)}}};export{s as default};
|
||||
import{i as o,f as t,g as n}from"./index-QAlcqU00.js";const s={__name:"PreventiveMaintenanceView",setup(r){return(a,c)=>{const e=t("router-view");return n(),o(e)}}};export{s as default};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1 +1 @@
|
|||
import{i as o,f as t,g as r}from"./index-BUdRbiwj.js";const a={__name:"RequestsView",setup(s){return(n,_)=>{const e=t("router-view");return r(),o(e)}}};export{a as default};
|
||||
import{i as o,f as t,g as r}from"./index-QAlcqU00.js";const a={__name:"RequestsView",setup(s){return(n,_)=>{const e=t("router-view");return r(),o(e)}}};export{a as default};
|
||||
|
|
@ -1 +1 @@
|
|||
import{_ as g,q as b,r as t,o as k,s as x,i as m,w as s,v as C,g as p,d as a,k as i,h as R,j as N,e as l,t as S,V as h,l as q}from"./index-BUdRbiwj.js";import{r as f,p as B,c as F}from"./validators-BsFa-KD7.js";import{V as T}from"./VContainer-Cf71ALK9.js";import{V as j,a as A,b as I,c as M,e as U,f as w,g as z}from"./VTextField-CU5R_EKn.js";const D={__name:"ResetPasswordView",setup(E){const v=x(),V=C(),_=b(),{success:y}=q(),o=t({password:"",confirmPassword:""}),u=t(!1),r=t(null),d=t(""),P=async()=>{try{u.value=!0,r.value=null,await _.resetPassword(d.value,o.value.password),y("Password reset successfully!"),V.push("/login")}catch(c){r.value=c.message||"Failed to reset password"}finally{u.value=!1}};return k(()=>{d.value=v.query.token||"",d.value||(r.value="Invalid reset token")}),(c,e)=>(p(),m(T,{fluid:"",class:"fill-height"},{default:s(()=>[a(j,{justify:"center",align:"center"},{default:s(()=>[a(A,{cols:"12",sm:"8",md:"6",lg:"4"},{default:s(()=>[a(I,{class:"pa-6"},{default:s(()=>[a(M,{class:"text-center text-h4 mb-6"},{default:s(()=>e[2]||(e[2]=[i(" Set New Password ",-1)])),_:1,__:[2]}),a(U,{onSubmit:R(P,["prevent"])},{default:s(()=>[a(w,{modelValue:o.value.password,"onUpdate:modelValue":e[0]||(e[0]=n=>o.value.password=n),label:"New Password",type:"password","prepend-inner-icon":"mdi-lock",rules:[l(f),l(B)],variant:"outlined",class:"mb-3"},null,8,["modelValue","rules"]),a(w,{modelValue:o.value.confirmPassword,"onUpdate:modelValue":e[1]||(e[1]=n=>o.value.confirmPassword=n),label:"Confirm Password",type:"password","prepend-inner-icon":"mdi-lock",rules:[l(f),l(F)(o.value.password)],variant:"outlined",class:"mb-3"},null,8,["modelValue","rules"]),r.value?(p(),m(z,{key:0,type:"error",class:"mb-4"},{default:s(()=>[i(S(r.value),1)]),_:1})):N("",!0),a(h,{type:"submit",color:"primary",size:"large",block:"",loading:u.value,class:"mb-4"},{default:s(()=>e[3]||(e[3]=[i(" Reset Password ",-1)])),_:1,__:[3]},8,["loading"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}))}},L=g(D,[["__scopeId","data-v-d769999f"]]);export{L as default};
|
||||
import{_ as g,q as b,r as t,o as k,s as x,i as m,w as s,v as C,g as p,d as a,k as i,h as R,j as N,e as l,t as S,V as h,l as q}from"./index-QAlcqU00.js";import{r as f,p as B,c as F}from"./validators-BsFa-KD7.js";import{V as T}from"./VContainer-DnjqAjRY.js";import{V as j,a as A,b as I,c as M,e as U,f as w,g as z}from"./VTextField-BNQ_nyd-.js";const D={__name:"ResetPasswordView",setup(E){const v=x(),V=C(),_=b(),{success:y}=q(),o=t({password:"",confirmPassword:""}),u=t(!1),r=t(null),d=t(""),P=async()=>{try{u.value=!0,r.value=null,await _.resetPassword(d.value,o.value.password),y("Password reset successfully!"),V.push("/login")}catch(c){r.value=c.message||"Failed to reset password"}finally{u.value=!1}};return k(()=>{d.value=v.query.token||"",d.value||(r.value="Invalid reset token")}),(c,e)=>(p(),m(T,{fluid:"",class:"fill-height"},{default:s(()=>[a(j,{justify:"center",align:"center"},{default:s(()=>[a(A,{cols:"12",sm:"8",md:"6",lg:"4"},{default:s(()=>[a(I,{class:"pa-6"},{default:s(()=>[a(M,{class:"text-center text-h4 mb-6"},{default:s(()=>e[2]||(e[2]=[i(" Set New Password ",-1)])),_:1,__:[2]}),a(U,{onSubmit:R(P,["prevent"])},{default:s(()=>[a(w,{modelValue:o.value.password,"onUpdate:modelValue":e[0]||(e[0]=n=>o.value.password=n),label:"New Password",type:"password","prepend-inner-icon":"mdi-lock",rules:[l(f),l(B)],variant:"outlined",class:"mb-3"},null,8,["modelValue","rules"]),a(w,{modelValue:o.value.confirmPassword,"onUpdate:modelValue":e[1]||(e[1]=n=>o.value.confirmPassword=n),label:"Confirm Password",type:"password","prepend-inner-icon":"mdi-lock",rules:[l(f),l(F)(o.value.password)],variant:"outlined",class:"mb-3"},null,8,["modelValue","rules"]),r.value?(p(),m(z,{key:0,type:"error",class:"mb-4"},{default:s(()=>[i(S(r.value),1)]),_:1})):N("",!0),a(h,{type:"submit",color:"primary",size:"large",block:"",loading:u.value,class:"mb-4"},{default:s(()=>e[3]||(e[3]=[i(" Reset Password ",-1)])),_:1,__:[3]},8,["loading"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}))}},L=g(D,[["__scopeId","data-v-d769999f"]]);export{L as default};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1 +1 @@
|
|||
import{_ as a,i as d,w as e,g as n,d as o,b as s,a2 as i,k as r,V as l}from"./index-BUdRbiwj.js";import{V as f}from"./VContainer-Cf71ALK9.js";const m={};function _(p,t){return n(),d(f,{class:"text-center"},{default:e(()=>[o(i,{size:"120",color:"error"},{default:e(()=>t[0]||(t[0]=[r("mdi-shield-alert",-1)])),_:1,__:[0]}),t[2]||(t[2]=s("h1",{class:"text-h2 mb-4"},"403 - Unauthorized",-1)),t[3]||(t[3]=s("p",{class:"text-h6 mb-6"},"You don't have permission to access this page.",-1)),o(l,{color:"primary",to:"/dashboard"},{default:e(()=>t[1]||(t[1]=[r("Go to Dashboard",-1)])),_:1,__:[1]})]),_:1,__:[2,3]})}const c=a(m,[["render",_]]);export{c as default};
|
||||
import{_ as a,i as d,w as e,g as n,d as o,b as s,a2 as i,k as r,V as l}from"./index-QAlcqU00.js";import{V as f}from"./VContainer-DnjqAjRY.js";const m={};function _(p,t){return n(),d(f,{class:"text-center"},{default:e(()=>[o(i,{size:"120",color:"error"},{default:e(()=>t[0]||(t[0]=[r("mdi-shield-alert",-1)])),_:1,__:[0]}),t[2]||(t[2]=s("h1",{class:"text-h2 mb-4"},"403 - Unauthorized",-1)),t[3]||(t[3]=s("p",{class:"text-h6 mb-6"},"You don't have permission to access this page.",-1)),o(l,{color:"primary",to:"/dashboard"},{default:e(()=>t[1]||(t[1]=[r("Go to Dashboard",-1)])),_:1,__:[1]})]),_:1,__:[2,3]})}const c=a(m,[["render",_]]);export{c as default};
|
||||
|
|
@ -1 +1 @@
|
|||
import{x as t,C as l,aE as r,J as i,a6 as m,T as c,Z as u,y as C,d,Q as y,n as f}from"./index-BUdRbiwj.js";const p=l({fluid:{type:Boolean,default:!1},...C(),...u(),...c()},"VContainer"),k=t()({name:"VContainer",props:p(),setup(e,a){let{slots:s}=a;const{rtlClasses:n}=r(),{dimensionStyles:o}=i(e);return m(()=>d(e.tag,{class:f(["v-container",{"v-container--fluid":e.fluid},n.value,e.class]),style:y([o.value,e.style])},s)),{}}});export{k as V};
|
||||
import{x as t,C as l,aE as r,J as i,a6 as m,T as c,Z as u,y as C,d,Q as y,n as f}from"./index-QAlcqU00.js";const p=l({fluid:{type:Boolean,default:!1},...C(),...u(),...c()},"VContainer"),k=t()({name:"VContainer",props:p(),setup(e,a){let{slots:s}=a;const{rtlClasses:n}=r(),{dimensionStyles:o}=i(e);return m(()=>d(e.tag,{class:f(["v-container",{"v-container--fluid":e.fluid},n.value,e.class]),style:y([o.value,e.style])},s)),{}}});export{k as V};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1 +1 @@
|
|||
import{i as o,f as r,g as t}from"./index-BUdRbiwj.js";const a={__name:"VendorsView",setup(n){return(s,_)=>{const e=r("router-view");return t(),o(e)}}};export{a as default};
|
||||
import{i as o,f as r,g as t}from"./index-QAlcqU00.js";const a={__name:"VendorsView",setup(n){return(s,_)=>{const e=r("router-view");return t(),o(e)}}};export{a as default};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1 +1 @@
|
|||
import{_ as o,i as r,f as t,g as c}from"./index-BUdRbiwj.js";const n={};function s(_,a){const e=t("router-view");return c(),r(e)}const i=o(n,[["render",s]]);export{i as default};
|
||||
import{_ as o,i as r,f as t,g as c}from"./index-QAlcqU00.js";const n={};function s(_,a){const e=t("router-view");return c(),r(e)}const i=o(n,[["render",s]]);export{i as default};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue