@selfeesas/shared-components 0.4.5 → 0.4.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -54,5 +54,5 @@ use chrome, FireFox or Internet Explorer 11`)}var n=t("safe-buffer"),e=t("random
|
|
|
54
54
|
* @author Louis-Dominique Dubeau
|
|
55
55
|
* @license MIT
|
|
56
56
|
* @copyright Louis-Dominique Dubeau
|
|
57
|
-
*/function f(o){return o>=65&&o<=90||o===95||o>=97&&o<=122||o>=192&&o<=214||o>=216&&o<=246||o>=248&&o<=767||o>=880&&o<=893||o>=895&&o<=8191||o>=8204&&o<=8205||o>=8304&&o<=8591||o>=11264&&o<=12271||o>=12289&&o<=55295||o>=63744&&o<=64975||o>=65008&&o<=65533||o>=65536&&o<=983039}Object.defineProperty(b,"__esModule",{value:!0}),b.NC_NAME_START_CHAR="A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ--⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-",b.NC_NAME_CHAR="-"+b.NC_NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",b.NC_NAME_START_CHAR_RE=new RegExp("^["+b.NC_NAME_START_CHAR+"]$","u"),b.NC_NAME_CHAR_RE=new RegExp("^["+b.NC_NAME_CHAR+"]$","u"),b.NC_NAME_RE=new RegExp("^["+b.NC_NAME_START_CHAR+"]["+b.NC_NAME_CHAR+"]*$","u"),b.isNCNameStartChar=f,b.isNCNameChar=function(o){return f(o)||o===45||o===46||o>=48&&o<=57||o===183||o>=768&&o<=879||o>=8255&&o<=8256}},{}]},{},[15])(15)})}(Kn)),Kn.exports}var $c=qc();const Vc=zc($c),Hc=async u=>{const{data:P,columns:t,fileNamePrefix:v,filters:b={}}=u,f=new Vc.Workbook,o=f.addWorksheet("Données");if(o.columns=t.map(d=>({header:d.label,key:d.field,width:d.width||20})),P.forEach(d=>{const h={};t.forEach(c=>{const m=d[c.field];h[c.field]=c.format?c.format(m):m}),o.addRow(h)}),Object.keys(b).length>0){const d=f.addWorksheet("Filtres");d.addRow(["Filtres appliqués:"]),Object.entries(b).filter(([h,c])=>c!=null&&c!=="").forEach(([h,c])=>{d.addRow([h,String(c)])})}const a=qu.formatDate(new Date,"DD-MM-YYYY"),n=Object.entries(b).filter(([d,h])=>h!=null&&h!=="").map(([d,h])=>`${d}_${h}`.slice(0,20)),e=`${v}_${a}${n.length?`_${n.join("_")}`:""}.xlsx`,r=await f.xlsx.writeBuffer(),l=new Blob([r],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),s=URL.createObjectURL(l),i=document.createElement("a");i.href=s,i.download=e,document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(s)},Uc=C.defineComponent({__name:"ExportButton",props:{data:{},columns:{},fileNamePrefix:{},filters:{default:()=>({})},color:{default:"positive"},label:{default:"Exporter en Excel"},disabled:{type:Boolean,default:!1},beforeExport:{},onSuccess:{},onError:{}},emits:["success","error"],setup(u,{emit:P}){const t=u,v=P,b=C.useAttrs(),f=C.ref(!1),o=C.computed(()=>{const{label:n,disabled:e,...r}=b;return r}),a=async()=>{if(!f.value){f.value=!0;try{await t.beforeExport?.(),await Hc(t),t.onSuccess?.(),v("success")}catch(n){t.onError?.(n),v("error",n)}finally{f.value=!1}}};return(n,e)=>(C.openBlock(),C.createBlock(wt,C.mergeProps({color:n.color,icon:"file_download",label:n.label,loading:f.value,disable:n.disabled||f.value},o.value,{onClick:a}),null,16,["color","label","loading","disable"]))}}),Wc=it({name:"QForm",props:{autofocus:Boolean,noErrorFocus:Boolean,noResetFocus:Boolean,greedy:Boolean,onSubmit:Function},emits:["reset","validationSuccess","validationError"],setup(u,{slots:P,emit:t}){const v=C.getCurrentInstance(),b=C.ref(null);let f=0;const o=[];function a(i){const d=typeof i=="boolean"?i:u.noErrorFocus!==!0,h=++f,c=(x,k)=>{t(`validation${x===!0?"Success":"Error"}`,k)},m=x=>{const k=x.validate();return typeof k.then=="function"?k.then(A=>({valid:A,comp:x}),A=>({valid:!1,comp:x,err:A})):Promise.resolve({valid:k,comp:x})};return(u.greedy===!0?Promise.all(o.map(m)).then(x=>x.filter(k=>k.valid!==!0)):o.reduce((x,k)=>x.then(()=>m(k).then(A=>{if(A.valid===!1)return Promise.reject(A)})),Promise.resolve()).catch(x=>[x])).then(x=>{if(x===void 0||x.length===0)return h===f&&c(!0),!0;if(h===f){const{comp:k,err:A}=x[0];if(A!==void 0&&console.error(A),c(!1,k),d===!0){const N=x.find(({comp:q})=>typeof q.focus=="function"&&mi(q.$)===!1);N!==void 0&&N.comp.focus()}}return!1})}function n(){f++,o.forEach(i=>{typeof i.resetValidation=="function"&&i.resetValidation()})}function e(i){i!==void 0&&_t(i);const d=f+1;a().then(h=>{d===f&&h===!0&&(u.onSubmit!==void 0?t("submit",i):i?.target!==void 0&&typeof i.target.submit=="function"&&i.target.submit())})}function r(i){i!==void 0&&_t(i),t("reset"),C.nextTick(()=>{n(),u.autofocus===!0&&u.noResetFocus!==!0&&l()})}function l(){Lr(()=>{if(b.value===null)return;(b.value.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||b.value.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||b.value.querySelector("[autofocus], [data-autofocus]")||Array.prototype.find.call(b.value.querySelectorAll("[tabindex]"),d=>d.tabIndex!==-1))?.focus({preventScroll:!0})})}C.provide(xo,{bindComponent(i){o.push(i)},unbindComponent(i){const d=o.indexOf(i);d!==-1&&o.splice(d,1)}});let s=!1;return C.onDeactivated(()=>{s=!0}),C.onActivated(()=>{s===!0&&u.autofocus===!0&&l()}),C.onMounted(()=>{u.autofocus===!0&&l()}),Object.assign(v.proxy,{validate:a,resetValidation:n,submit:e,reset:r,focus:l,getValidationComponents:()=>o}),()=>C.h("form",{class:"q-form",ref:b,onSubmit:e,onReset:r},vt(P.default))}}),Yc=it({name:"QPage",props:{padding:Boolean,styleFn:Function},setup(u,{slots:P}){const{proxy:{$q:t}}=C.getCurrentInstance(),v=C.inject(zr,Rt);if(v===Rt)return console.error("QPage needs to be a deep child of QLayout"),Rt;if(C.inject(_o,Rt)===Rt)return console.error("QPage needs to be child of QPageContainer"),Rt;const f=C.computed(()=>{const a=(v.header.space===!0?v.header.size:0)+(v.footer.space===!0?v.footer.size:0);if(typeof u.styleFn=="function"){const n=v.isContainer.value===!0?v.containerHeight.value:t.screen.height;return u.styleFn(a,n)}return{minHeight:v.isContainer.value===!0?v.containerHeight.value-a+"px":t.screen.height===0?a!==0?`calc(100vh - ${a}px)`:"100vh":t.screen.height-a+"px"}}),o=C.computed(()=>`q-page${u.padding===!0?" q-layout-padding":""}`);return()=>C.h("main",{class:o.value,style:f.value},vt(P.default))}}),Xc=u=>{const t=[];for(let v=0;v<30;v++)t.push({size:Math.random()*3+2,x:Math.random()*100,y:Math.random()*100,delay:Math.random()*5,duration:Math.random()*10+5});u.value=t},Kc=u=>{const t=[];for(let b=0;b<12;b++){const f=b/12*Math.PI*2;t.push({size:Math.random()*8+4,x:50+Math.cos(f)*120,y:50+Math.sin(f)*120,delay:Math.random()*2,duration:Math.random()*3+2,opacity:Math.random()*.5+.3})}u.value=t},Zc=u=>({width:`${u.size}px`,height:`${u.size}px`,left:`${u.x}%`,top:`${u.y}%`,animationDelay:`${u.delay}s`,animationDuration:`${u.duration}s`,"--random":Math.random()}),Gc=u=>({width:`${u.size}px`,height:`${u.size}px`,left:`${u.x}px`,top:`${u.y}px`,animationDelay:`${u.delay}s`,animationDuration:`${u.duration}s`,opacity:u.opacity}),Qc={class:"particles"},Jc={class:"container"},ef={class:"brand-section"},tf={class:"energy-dots"},rf={class:"login-section"},nf={class:"form-group"},sf={class:"form-group"},of=C.defineComponent({__name:"LoginLayout",emits:["login"],setup(u,{emit:P}){const t=P,v=C.ref(!1),b=C.ref([]),f=C.ref([]),o=C.ref({username:"",password:""}),a=async()=>{v.value=!0,t("login",{...o.value}),v.value=!1};return C.onMounted(()=>{Xc(b),Kc(f)}),(n,e)=>(C.openBlock(),C.createBlock(Yc,{class:"login-page"},{default:C.withCtx(()=>[C.createElementVNode("div",Qc,[(C.openBlock(!0),C.createElementBlock(C.Fragment,null,C.renderList(b.value,(r,l)=>(C.openBlock(),C.createElementBlock("div",{key:l,class:"particle",style:C.normalizeStyle(C.unref(Zc)(r))},null,4))),128))]),C.createElementVNode("div",Jc,[C.createElementVNode("div",ef,[e[2]||(e[2]=C.createElementVNode("div",{class:"logo-container"},[C.createElementVNode("img",{src:"logo.svg",alt:"Selfee Logo",class:"logo-image"}),C.createElementVNode("div",{class:"logo-pulse-1"}),C.createElementVNode("div",{class:"logo-pulse-2"})],-1)),e[3]||(e[3]=C.createElementVNode("div",{class:"tagline"},"DE L'ÉNERGIE À REVENDRE",-1)),e[4]||(e[4]=C.createElementVNode("div",{class:"energy-wave"},null,-1)),e[5]||(e[5]=C.createElementVNode("div",{class:"energy-wave-2"},null,-1)),e[6]||(e[6]=C.createElementVNode("div",{class:"energy-pulse"},null,-1)),C.createElementVNode("div",tf,[(C.openBlock(!0),C.createElementBlock(C.Fragment,null,C.renderList(f.value,(r,l)=>(C.openBlock(),C.createElementBlock("div",{key:"dot-"+l,class:"energy-dot",style:C.normalizeStyle(C.unref(Gc)(r))},null,4))),128))])]),C.createElementVNode("div",rf,[e[7]||(e[7]=C.createElementVNode("div",{class:"login-header"},[C.createElementVNode("h2",null,"Connexion"),C.createElementVNode("p",null,"Accédez à votre espace personnel")],-1)),C.createVNode(Wc,{class:"login-form",onSubmit:C.withModifiers(a,["prevent"])},{default:C.withCtx(()=>[C.createElementVNode("div",nf,[C.createVNode(Fr,{modelValue:o.value.username,"onUpdate:modelValue":e[0]||(e[0]=r=>o.value.username=r),label:"Identifiant",outlined:"",dark:"",rules:[r=>!!r||"Identifiant requis"]},{prepend:C.withCtx(()=>[C.createVNode(kt,{name:"person",color:"energy-green"})]),_:1},8,["modelValue","rules"])]),C.createElementVNode("div",sf,[C.createVNode(Fr,{modelValue:o.value.password,"onUpdate:modelValue":e[1]||(e[1]=r=>o.value.password=r),type:"password",label:"Mot de passe",outlined:"",dark:"",rules:[r=>!!r||"Mot de passe requis"]},{prepend:C.withCtx(()=>[C.createVNode(kt,{name:"lock",color:"energy-green"})]),_:1},8,["modelValue","rules"])]),C.createVNode(wt,{type:"submit",label:"Se connecter",class:"login-button full-width",color:"energy-green","text-color":"'white'",loading:v.value},null,8,["loading"])]),_:1})])])]),_:1}))}});exports.Breadcrumbs=pa;exports.CheckboxFilter=Ul;exports.CustomTable=Lc;exports.DATE_FORMAT_REGEX=Wo;exports.DatePicker=Qu;exports.DateRange=ic;exports.ExportButton=Uc;exports.Layout=cu;exports.LoginLayout=of;exports.NavButton=Oa;exports.SelectSearch=Wl;exports.SelfeeFooter=nu;exports.SelfeeHeader=Gl;exports.UserAvatar=au;exports.createBreadcrumb=Yu;exports.dateRangeUtils=sr;exports.dateWithoutTimezone=Xu;exports.defaultLocale=Yo;exports.formatDate=Ir;exports.isDateSelectable=zi;
|
|
57
|
+
*/function f(o){return o>=65&&o<=90||o===95||o>=97&&o<=122||o>=192&&o<=214||o>=216&&o<=246||o>=248&&o<=767||o>=880&&o<=893||o>=895&&o<=8191||o>=8204&&o<=8205||o>=8304&&o<=8591||o>=11264&&o<=12271||o>=12289&&o<=55295||o>=63744&&o<=64975||o>=65008&&o<=65533||o>=65536&&o<=983039}Object.defineProperty(b,"__esModule",{value:!0}),b.NC_NAME_START_CHAR="A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ--⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-",b.NC_NAME_CHAR="-"+b.NC_NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",b.NC_NAME_START_CHAR_RE=new RegExp("^["+b.NC_NAME_START_CHAR+"]$","u"),b.NC_NAME_CHAR_RE=new RegExp("^["+b.NC_NAME_CHAR+"]$","u"),b.NC_NAME_RE=new RegExp("^["+b.NC_NAME_START_CHAR+"]["+b.NC_NAME_CHAR+"]*$","u"),b.isNCNameStartChar=f,b.isNCNameChar=function(o){return f(o)||o===45||o===46||o>=48&&o<=57||o===183||o>=768&&o<=879||o>=8255&&o<=8256}},{}]},{},[15])(15)})}(Kn)),Kn.exports}var $c=qc();const Vc=zc($c),Hc=async u=>{const{data:P,columns:t,fileNamePrefix:v,filters:b={}}=u,f=new Vc.Workbook,o=f.addWorksheet("Données");if(o.columns=t.map(d=>({header:d.label,key:d.field,width:d.width||20})),P.forEach(d=>{const h={};t.forEach(c=>{const m=d[c.field];h[c.field]=c.format?c.format(m):m}),o.addRow(h)}),Object.keys(b).length>0){const d=f.addWorksheet("Filtres");d.addRow(["Filtres appliqués:"]),Object.entries(b).filter(([h,c])=>c!=null&&c!=="").forEach(([h,c])=>{d.addRow([h,String(c)])})}const a=qu.formatDate(new Date,"DD-MM-YYYY"),n=Object.entries(b).filter(([d,h])=>h!=null&&h!=="").map(([d,h])=>`${d}_${h}`.slice(0,20)),e=`${v}_${a}${n.length?`_${n.join("_")}`:""}.xlsx`,r=await f.xlsx.writeBuffer(),l=new Blob([r],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),s=URL.createObjectURL(l),i=document.createElement("a");i.href=s,i.download=e,document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(s)},Uc=C.defineComponent({__name:"ExportButton",props:{data:{},columns:{},fileNamePrefix:{},filters:{default:()=>({})},color:{default:"positive"},label:{default:"Exporter en Excel"},disabled:{type:Boolean,default:!1},beforeExport:{},onSuccess:{},onError:{}},emits:["success","error"],setup(u,{emit:P}){const t=u,v=P,b=C.useAttrs(),f=C.ref(!1),o=C.computed(()=>{const{label:n,disabled:e,...r}=b;return r}),a=async()=>{if(!f.value){f.value=!0;try{await t.beforeExport?.(),await Hc(t),t.onSuccess?.(),v("success")}catch(n){t.onError?.(n),v("error",n)}finally{f.value=!1}}};return(n,e)=>(C.openBlock(),C.createBlock(wt,C.mergeProps({color:n.color,icon:"file_download",label:n.label,loading:f.value,disable:n.disabled||f.value},o.value,{"data-cy":"export-excel-button",onClick:a}),null,16,["color","label","loading","disable"]))}}),Wc=it({name:"QForm",props:{autofocus:Boolean,noErrorFocus:Boolean,noResetFocus:Boolean,greedy:Boolean,onSubmit:Function},emits:["reset","validationSuccess","validationError"],setup(u,{slots:P,emit:t}){const v=C.getCurrentInstance(),b=C.ref(null);let f=0;const o=[];function a(i){const d=typeof i=="boolean"?i:u.noErrorFocus!==!0,h=++f,c=(x,k)=>{t(`validation${x===!0?"Success":"Error"}`,k)},m=x=>{const k=x.validate();return typeof k.then=="function"?k.then(A=>({valid:A,comp:x}),A=>({valid:!1,comp:x,err:A})):Promise.resolve({valid:k,comp:x})};return(u.greedy===!0?Promise.all(o.map(m)).then(x=>x.filter(k=>k.valid!==!0)):o.reduce((x,k)=>x.then(()=>m(k).then(A=>{if(A.valid===!1)return Promise.reject(A)})),Promise.resolve()).catch(x=>[x])).then(x=>{if(x===void 0||x.length===0)return h===f&&c(!0),!0;if(h===f){const{comp:k,err:A}=x[0];if(A!==void 0&&console.error(A),c(!1,k),d===!0){const N=x.find(({comp:q})=>typeof q.focus=="function"&&mi(q.$)===!1);N!==void 0&&N.comp.focus()}}return!1})}function n(){f++,o.forEach(i=>{typeof i.resetValidation=="function"&&i.resetValidation()})}function e(i){i!==void 0&&_t(i);const d=f+1;a().then(h=>{d===f&&h===!0&&(u.onSubmit!==void 0?t("submit",i):i?.target!==void 0&&typeof i.target.submit=="function"&&i.target.submit())})}function r(i){i!==void 0&&_t(i),t("reset"),C.nextTick(()=>{n(),u.autofocus===!0&&u.noResetFocus!==!0&&l()})}function l(){Lr(()=>{if(b.value===null)return;(b.value.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]")||b.value.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]")||b.value.querySelector("[autofocus], [data-autofocus]")||Array.prototype.find.call(b.value.querySelectorAll("[tabindex]"),d=>d.tabIndex!==-1))?.focus({preventScroll:!0})})}C.provide(xo,{bindComponent(i){o.push(i)},unbindComponent(i){const d=o.indexOf(i);d!==-1&&o.splice(d,1)}});let s=!1;return C.onDeactivated(()=>{s=!0}),C.onActivated(()=>{s===!0&&u.autofocus===!0&&l()}),C.onMounted(()=>{u.autofocus===!0&&l()}),Object.assign(v.proxy,{validate:a,resetValidation:n,submit:e,reset:r,focus:l,getValidationComponents:()=>o}),()=>C.h("form",{class:"q-form",ref:b,onSubmit:e,onReset:r},vt(P.default))}}),Yc=it({name:"QPage",props:{padding:Boolean,styleFn:Function},setup(u,{slots:P}){const{proxy:{$q:t}}=C.getCurrentInstance(),v=C.inject(zr,Rt);if(v===Rt)return console.error("QPage needs to be a deep child of QLayout"),Rt;if(C.inject(_o,Rt)===Rt)return console.error("QPage needs to be child of QPageContainer"),Rt;const f=C.computed(()=>{const a=(v.header.space===!0?v.header.size:0)+(v.footer.space===!0?v.footer.size:0);if(typeof u.styleFn=="function"){const n=v.isContainer.value===!0?v.containerHeight.value:t.screen.height;return u.styleFn(a,n)}return{minHeight:v.isContainer.value===!0?v.containerHeight.value-a+"px":t.screen.height===0?a!==0?`calc(100vh - ${a}px)`:"100vh":t.screen.height-a+"px"}}),o=C.computed(()=>`q-page${u.padding===!0?" q-layout-padding":""}`);return()=>C.h("main",{class:o.value,style:f.value},vt(P.default))}}),Xc=u=>{const t=[];for(let v=0;v<30;v++)t.push({size:Math.random()*3+2,x:Math.random()*100,y:Math.random()*100,delay:Math.random()*5,duration:Math.random()*10+5});u.value=t},Kc=u=>{const t=[];for(let b=0;b<12;b++){const f=b/12*Math.PI*2;t.push({size:Math.random()*8+4,x:50+Math.cos(f)*120,y:50+Math.sin(f)*120,delay:Math.random()*2,duration:Math.random()*3+2,opacity:Math.random()*.5+.3})}u.value=t},Zc=u=>({width:`${u.size}px`,height:`${u.size}px`,left:`${u.x}%`,top:`${u.y}%`,animationDelay:`${u.delay}s`,animationDuration:`${u.duration}s`,"--random":Math.random()}),Gc=u=>({width:`${u.size}px`,height:`${u.size}px`,left:`${u.x}px`,top:`${u.y}px`,animationDelay:`${u.delay}s`,animationDuration:`${u.duration}s`,opacity:u.opacity}),Qc={class:"particles"},Jc={class:"container"},ef={class:"brand-section"},tf={class:"energy-dots"},rf={class:"login-section"},nf={class:"form-group"},sf={class:"form-group"},of=C.defineComponent({__name:"LoginLayout",emits:["login"],setup(u,{emit:P}){const t=P,v=C.ref(!1),b=C.ref([]),f=C.ref([]),o=C.ref({username:"",password:""}),a=async()=>{v.value=!0,t("login",{...o.value}),v.value=!1};return C.onMounted(()=>{Xc(b),Kc(f)}),(n,e)=>(C.openBlock(),C.createBlock(Yc,{class:"login-page"},{default:C.withCtx(()=>[C.createElementVNode("div",Qc,[(C.openBlock(!0),C.createElementBlock(C.Fragment,null,C.renderList(b.value,(r,l)=>(C.openBlock(),C.createElementBlock("div",{key:l,class:"particle",style:C.normalizeStyle(C.unref(Zc)(r))},null,4))),128))]),C.createElementVNode("div",Jc,[C.createElementVNode("div",ef,[e[2]||(e[2]=C.createElementVNode("div",{class:"logo-container"},[C.createElementVNode("img",{src:"logo.svg",alt:"Selfee Logo",class:"logo-image"}),C.createElementVNode("div",{class:"logo-pulse-1"}),C.createElementVNode("div",{class:"logo-pulse-2"})],-1)),e[3]||(e[3]=C.createElementVNode("div",{class:"tagline"},"DE L'ÉNERGIE À REVENDRE",-1)),e[4]||(e[4]=C.createElementVNode("div",{class:"energy-wave"},null,-1)),e[5]||(e[5]=C.createElementVNode("div",{class:"energy-wave-2"},null,-1)),e[6]||(e[6]=C.createElementVNode("div",{class:"energy-pulse"},null,-1)),C.createElementVNode("div",tf,[(C.openBlock(!0),C.createElementBlock(C.Fragment,null,C.renderList(f.value,(r,l)=>(C.openBlock(),C.createElementBlock("div",{key:"dot-"+l,class:"energy-dot",style:C.normalizeStyle(C.unref(Gc)(r))},null,4))),128))])]),C.createElementVNode("div",rf,[e[7]||(e[7]=C.createElementVNode("div",{class:"login-header"},[C.createElementVNode("h2",null,"Connexion"),C.createElementVNode("p",null,"Accédez à votre espace personnel")],-1)),C.createVNode(Wc,{class:"login-form",onSubmit:C.withModifiers(a,["prevent"])},{default:C.withCtx(()=>[C.createElementVNode("div",nf,[C.createVNode(Fr,{modelValue:o.value.username,"onUpdate:modelValue":e[0]||(e[0]=r=>o.value.username=r),label:"Identifiant",outlined:"",dark:"",rules:[r=>!!r||"Identifiant requis"],"data-cy":"username"},{prepend:C.withCtx(()=>[C.createVNode(kt,{name:"person",color:"energy-green"})]),_:1},8,["modelValue","rules"])]),C.createElementVNode("div",sf,[C.createVNode(Fr,{modelValue:o.value.password,"onUpdate:modelValue":e[1]||(e[1]=r=>o.value.password=r),type:"password",label:"Mot de passe",outlined:"",dark:"",rules:[r=>!!r||"Mot de passe requis"],"data-cy":"password"},{prepend:C.withCtx(()=>[C.createVNode(kt,{name:"lock",color:"energy-green"})]),_:1},8,["modelValue","rules"])]),C.createVNode(wt,{type:"submit",label:"Se connecter",class:"login-button full-width",color:"energy-green","text-color":"'white'",loading:v.value,"data-cy":"login-button"},null,8,["loading"])]),_:1})])])]),_:1}))}});exports.Breadcrumbs=pa;exports.CheckboxFilter=Ul;exports.CustomTable=Lc;exports.DATE_FORMAT_REGEX=Wo;exports.DatePicker=Qu;exports.DateRange=ic;exports.ExportButton=Uc;exports.Layout=cu;exports.LoginLayout=of;exports.NavButton=Oa;exports.SelectSearch=Wl;exports.SelfeeFooter=nu;exports.SelfeeHeader=Gl;exports.UserAvatar=au;exports.createBreadcrumb=Yu;exports.dateRangeUtils=sr;exports.dateWithoutTimezone=Xu;exports.defaultLocale=Yo;exports.formatDate=Ir;exports.isDateSelectable=zi;
|
|
58
58
|
//# sourceMappingURL=shared-components.cjs.js.map
|