pangea-lib 4.0.15 → 4.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.cjs.js +1 -1
- package/dist/main.es.js +4 -4
- package/dist/types/components/form/inputs/PgaInputFileExcel.vue.d.ts +2 -4
- package/dist/types/models/auth-store.model.d.ts +1 -1
- package/dist/types/models/{database-default.model.d.ts → base-model.model.d.ts} +2 -2
- package/dist/types/models/index.d.ts +1 -1
- package/dist/types/models/user.model.d.ts +2 -2
- package/dist/types/types/api-connections.types.d.ts +2 -2
- package/dist/types/types/index.d.ts +4 -0
- package/package.json +1 -1
package/dist/main.cjs.js
CHANGED
|
@@ -875,4 +875,4 @@ A valid view must be one of: ${Uu.join(", ")}.`),e="week"),this.enabledViews.inc
|
|
|
875
875
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...a){const r=new this(t);return a.forEach(n=>r.set(n)),r}static accessor(t){const r=(this[bp]=this[bp]={accessors:{}}).accessors,n=this.prototype;function c(i){const s=$a(i);r[s]||(Qj1(n,i),r[s]=!0)}return _1.isArray(t)?t.forEach(c):c(t),this}}mi.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);_1.reduceDescriptors(mi.prototype,({value:e},t)=>{let a=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[a]=r}}});_1.freezeMethods(mi);const h4=mi;function ks(e,t){const a=this||_f,r=t||a,n=h4.from(r.headers);let c=r.data;return _1.forEach(e,function(s){c=s.call(a,c,n.normalize(),t?t.status:void 0)}),n.normalize(),c}function GA(e){return!!(e&&e.__CANCEL__)}function Ca(e,t,a){t2.call(this,e??"canceled",t2.ERR_CANCELED,t,a),this.name="CanceledError"}_1.inherits(Ca,t2,{__CANCEL__:!0});function XA(e,t,a){const r=a.config.validateStatus;!a.status||!r||r(a.status)?e(a):t(new t2("Request failed with status code "+a.status,[t2.ERR_BAD_REQUEST,t2.ERR_BAD_RESPONSE][Math.floor(a.status/100)-4],a.config,a.request,a))}function Jj1(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function eY1(e,t){e=e||10;const a=new Array(e),r=new Array(e);let n=0,c=0,i;return t=t!==void 0?t:1e3,function(l){const f=Date.now(),u=r[c];i||(i=f),a[n]=l,r[n]=f;let d=c,h=0;for(;d!==n;)h+=a[d++],d=d%e;if(n=(n+1)%e,n===c&&(c=(c+1)%e),f-i<t)return;const m=u&&f-u;return m?Math.round(h*1e3/m):void 0}}function tY1(e,t){let a=0,r=1e3/t,n,c;const i=(f,u=Date.now())=>{a=u,n=null,c&&(clearTimeout(c),c=null),e.apply(null,f)};return[(...f)=>{const u=Date.now(),d=u-a;d>=r?i(f,u):(n=f,c||(c=setTimeout(()=>{c=null,i(n)},r-d)))},()=>n&&i(n)]}const e5=(e,t,a=3)=>{let r=0;const n=eY1(50,250);return tY1(c=>{const i=c.loaded,s=c.lengthComputable?c.total:void 0,l=i-r,f=n(l),u=i<=s;r=i;const d={loaded:i,total:s,progress:s?i/s:void 0,bytes:l,rate:f||void 0,estimated:f&&s&&u?(s-i)/f:void 0,event:c,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(d)},a)},Cp=(e,t)=>{const a=e!=null;return[r=>t[0]({lengthComputable:a,total:e,loaded:r}),t[1]]},Mp=e=>(...t)=>_1.asap(()=>e(...t)),aY1=Ke.hasStandardBrowserEnv?((e,t)=>a=>(a=new URL(a,Ke.origin),e.protocol===a.protocol&&e.host===a.host&&(t||e.port===a.port)))(new URL(Ke.origin),Ke.navigator&&/(msie|trident)/i.test(Ke.navigator.userAgent)):()=>!0,rY1=Ke.hasStandardBrowserEnv?{write(e,t,a,r,n,c){const i=[e+"="+encodeURIComponent(t)];_1.isNumber(a)&&i.push("expires="+new Date(a).toGMTString()),_1.isString(r)&&i.push("path="+r),_1.isString(n)&&i.push("domain="+n),c===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function nY1(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function cY1(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function KA(e,t){return e&&!nY1(t)?cY1(e,t):t}const zp=e=>e instanceof h4?{...e}:e;function f6(e,t){t=t||{};const a={};function r(f,u,d,h){return _1.isPlainObject(f)&&_1.isPlainObject(u)?_1.merge.call({caseless:h},f,u):_1.isPlainObject(u)?_1.merge({},u):_1.isArray(u)?u.slice():u}function n(f,u,d,h){if(_1.isUndefined(u)){if(!_1.isUndefined(f))return r(void 0,f,d,h)}else return r(f,u,d,h)}function c(f,u){if(!_1.isUndefined(u))return r(void 0,u)}function i(f,u){if(_1.isUndefined(u)){if(!_1.isUndefined(f))return r(void 0,f)}else return r(void 0,u)}function s(f,u,d){if(d in t)return r(f,u);if(d in e)return r(void 0,f)}const l={url:c,method:c,data:c,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s,headers:(f,u,d)=>n(zp(f),zp(u),d,!0)};return _1.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=l[u]||n,h=d(e[u],t[u],u);_1.isUndefined(h)&&d!==s||(a[u]=h)}),a}const ZA=e=>{const t=f6({},e);let{data:a,withXSRFToken:r,xsrfHeaderName:n,xsrfCookieName:c,headers:i,auth:s}=t;t.headers=i=h4.from(i),t.url=qA(KA(t.baseURL,t.url),e.params,e.paramsSerializer),s&&i.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(_1.isFormData(a)){if(Ke.hasStandardBrowserEnv||Ke.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((l=i.getContentType())!==!1){const[f,...u]=l?l.split(";").map(d=>d.trim()).filter(Boolean):[];i.setContentType([f||"multipart/form-data",...u].join("; "))}}if(Ke.hasStandardBrowserEnv&&(r&&_1.isFunction(r)&&(r=r(t)),r||r!==!1&&aY1(t.url))){const f=n&&c&&rY1.read(c);f&&i.set(n,f)}return t},iY1=typeof XMLHttpRequest<"u",sY1=iY1&&function(e){return new Promise(function(a,r){const n=ZA(e);let c=n.data;const i=h4.from(n.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:f}=n,u,d,h,m,v;function p(){m&&m(),v&&v(),n.cancelToken&&n.cancelToken.unsubscribe(u),n.signal&&n.signal.removeEventListener("abort",u)}let g=new XMLHttpRequest;g.open(n.method.toUpperCase(),n.url,!0),g.timeout=n.timeout;function y(){if(!g)return;const C=h4.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),M={data:!s||s==="text"||s==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:C,config:e,request:g};XA(function(z){a(z),p()},function(z){r(z),p()},M),g=null}"onloadend"in g?g.onloadend=y:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(y)},g.onabort=function(){g&&(r(new t2("Request aborted",t2.ECONNABORTED,e,g)),g=null)},g.onerror=function(){r(new t2("Network Error",t2.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let b=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const M=n.transitional||jA;n.timeoutErrorMessage&&(b=n.timeoutErrorMessage),r(new t2(b,M.clarifyTimeoutError?t2.ETIMEDOUT:t2.ECONNABORTED,e,g)),g=null},c===void 0&&i.setContentType(null),"setRequestHeader"in g&&_1.forEach(i.toJSON(),function(b,M){g.setRequestHeader(M,b)}),_1.isUndefined(n.withCredentials)||(g.withCredentials=!!n.withCredentials),s&&s!=="json"&&(g.responseType=n.responseType),f&&([h,v]=e5(f,!0),g.addEventListener("progress",h)),l&&g.upload&&([d,m]=e5(l),g.upload.addEventListener("progress",d),g.upload.addEventListener("loadend",m)),(n.cancelToken||n.signal)&&(u=C=>{g&&(r(!C||C.type?new Ca(null,e,g):C),g.abort(),g=null)},n.cancelToken&&n.cancelToken.subscribe(u),n.signal&&(n.signal.aborted?u():n.signal.addEventListener("abort",u)));const x=Jj1(n.url);if(x&&Ke.protocols.indexOf(x)===-1){r(new t2("Unsupported protocol "+x+":",t2.ERR_BAD_REQUEST,e));return}g.send(c||null)})},oY1=(e,t)=>{const{length:a}=e=e?e.filter(Boolean):[];if(t||a){let r=new AbortController,n;const c=function(f){if(!n){n=!0,s();const u=f instanceof Error?f:this.reason;r.abort(u instanceof t2?u:new Ca(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{i=null,c(new t2(`timeout ${t} of ms exceeded`,t2.ETIMEDOUT))},t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(c):f.removeEventListener("abort",c)}),e=null)};e.forEach(f=>f.addEventListener("abort",c));const{signal:l}=r;return l.unsubscribe=()=>_1.asap(s),l}},lY1=oY1,fY1=function*(e,t){let a=e.byteLength;if(!t||a<t){yield e;return}let r=0,n;for(;r<a;)n=r+t,yield e.slice(r,n),r=n},uY1=async function*(e,t){for await(const a of dY1(e))yield*fY1(a,t)},dY1=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:a,value:r}=await t.read();if(a)break;yield r}}finally{await t.cancel()}},wp=(e,t,a,r)=>{const n=uY1(e,t);let c=0,i,s=l=>{i||(i=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:f,value:u}=await n.next();if(f){s(),l.close();return}let d=u.byteLength;if(a){let h=c+=d;a(h)}l.enqueue(new Uint8Array(u))}catch(f){throw s(f),f}},cancel(l){return s(l),n.return()}},{highWaterMark:2})},pi=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",QA=pi&&typeof ReadableStream=="function",hY1=pi&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),JA=(e,...t)=>{try{return!!e(...t)}catch{return!1}},mY1=QA&&JA(()=>{let e=!1;const t=new Request(Ke.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),_p=64*1024,to=QA&&JA(()=>_1.isReadableStream(new Response("").body)),t5={stream:to&&(e=>e.body)};pi&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!t5[t]&&(t5[t]=_1.isFunction(e[t])?a=>a[t]():(a,r)=>{throw new t2(`Response type '${t}' is not supported`,t2.ERR_NOT_SUPPORT,r)})})})(new Response);const pY1=async e=>{if(e==null)return 0;if(_1.isBlob(e))return e.size;if(_1.isSpecCompliantForm(e))return(await new Request(Ke.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(_1.isArrayBufferView(e)||_1.isArrayBuffer(e))return e.byteLength;if(_1.isURLSearchParams(e)&&(e=e+""),_1.isString(e))return(await hY1(e)).byteLength},vY1=async(e,t)=>{const a=_1.toFiniteNumber(e.getContentLength());return a??pY1(t)},gY1=pi&&(async e=>{let{url:t,method:a,data:r,signal:n,cancelToken:c,timeout:i,onDownloadProgress:s,onUploadProgress:l,responseType:f,headers:u,withCredentials:d="same-origin",fetchOptions:h}=ZA(e);f=f?(f+"").toLowerCase():"text";let m=lY1([n,c&&c.toAbortSignal()],i),v;const p=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let g;try{if(l&&mY1&&a!=="get"&&a!=="head"&&(g=await vY1(u,r))!==0){let M=new Request(t,{method:"POST",body:r,duplex:"half"}),w;if(_1.isFormData(r)&&(w=M.headers.get("content-type"))&&u.setContentType(w),M.body){const[z,k]=Cp(g,e5(Mp(l)));r=wp(M.body,_p,z,k)}}_1.isString(d)||(d=d?"include":"omit");const y="credentials"in Request.prototype;v=new Request(t,{...h,signal:m,method:a.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:y?d:void 0});let x=await fetch(v);const C=to&&(f==="stream"||f==="response");if(to&&(s||C&&p)){const M={};["status","statusText","headers"].forEach(S=>{M[S]=x[S]});const w=_1.toFiniteNumber(x.headers.get("content-length")),[z,k]=s&&Cp(w,e5(Mp(s),!0))||[];x=new Response(wp(x.body,_p,z,()=>{k&&k(),p&&p()}),M)}f=f||"text";let b=await t5[_1.findKey(t5,f)||"text"](x,e);return!C&&p&&p(),await new Promise((M,w)=>{XA(M,w,{data:b,headers:h4.from(x.headers),status:x.status,statusText:x.statusText,config:e,request:v})})}catch(y){throw p&&p(),y&&y.name==="TypeError"&&/fetch/i.test(y.message)?Object.assign(new t2("Network Error",t2.ERR_NETWORK,e,v),{cause:y.cause||y}):t2.from(y,y&&y.code,e,v)}}),ao={http:Sj1,xhr:sY1,fetch:gY1};_1.forEach(ao,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const kp=e=>`- ${e}`,yY1=e=>_1.isFunction(e)||e===null||e===!1,eT={getAdapter:e=>{e=_1.isArray(e)?e:[e];const{length:t}=e;let a,r;const n={};for(let c=0;c<t;c++){a=e[c];let i;if(r=a,!yY1(a)&&(r=ao[(i=String(a)).toLowerCase()],r===void 0))throw new t2(`Unknown adapter '${i}'`);if(r)break;n[i||"#"+c]=r}if(!r){const c=Object.entries(n).map(([s,l])=>`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let i=t?c.length>1?`since :
|
|
876
876
|
`+c.map(kp).join(`
|
|
877
877
|
`):" "+kp(c[0]):"as no adapter specified";throw new t2("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:ao};function Hs(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ca(null,e)}function Hp(e){return Hs(e),e.headers=h4.from(e.headers),e.data=ks.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),eT.getAdapter(e.adapter||_f.adapter)(e).then(function(r){return Hs(e),r.data=ks.call(e,e.transformResponse,r),r.headers=h4.from(r.headers),r},function(r){return GA(r)||(Hs(e),r&&r.response&&(r.response.data=ks.call(e,e.transformResponse,r.response),r.response.headers=h4.from(r.response.headers))),Promise.reject(r)})}const tT="1.7.8",vi={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{vi[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Vp={};vi.transitional=function(t,a,r){function n(c,i){return"[Axios v"+tT+"] Transitional option '"+c+"'"+i+(r?". "+r:"")}return(c,i,s)=>{if(t===!1)throw new t2(n(i," has been removed"+(a?" in "+a:"")),t2.ERR_DEPRECATED);return a&&!Vp[i]&&(Vp[i]=!0,console.warn(n(i," has been deprecated since v"+a+" and will be removed in the near future"))),t?t(c,i,s):!0}};vi.spelling=function(t){return(a,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function xY1(e,t,a){if(typeof e!="object")throw new t2("options must be an object",t2.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let n=r.length;for(;n-- >0;){const c=r[n],i=t[c];if(i){const s=e[c],l=s===void 0||i(s,c,e);if(l!==!0)throw new t2("option "+c+" must be "+l,t2.ERR_BAD_OPTION_VALUE);continue}if(a!==!0)throw new t2("Unknown option "+c,t2.ERR_BAD_OPTION)}}const ic={assertOptions:xY1,validators:vi},_4=ic.validators;class a5{constructor(t){this.defaults=t,this.interceptors={request:new xp,response:new xp}}async request(t,a){try{return await this._request(t,a)}catch(r){if(r instanceof Error){let n={};Error.captureStackTrace?Error.captureStackTrace(n):n=new Error;const c=n.stack?n.stack.replace(/^.+\n/,""):"";try{r.stack?c&&!String(r.stack).endsWith(c.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
878
|
-
`+c):r.stack=c}catch{}}throw r}}_request(t,a){typeof t=="string"?(a=a||{},a.url=t):a=t||{},a=f6(this.defaults,a);const{transitional:r,paramsSerializer:n,headers:c}=a;r!==void 0&&ic.assertOptions(r,{silentJSONParsing:_4.transitional(_4.boolean),forcedJSONParsing:_4.transitional(_4.boolean),clarifyTimeoutError:_4.transitional(_4.boolean)},!1),n!=null&&(_1.isFunction(n)?a.paramsSerializer={serialize:n}:ic.assertOptions(n,{encode:_4.function,serialize:_4.function},!0)),ic.assertOptions(a,{baseUrl:_4.spelling("baseURL"),withXsrfToken:_4.spelling("withXSRFToken")},!0),a.method=(a.method||this.defaults.method||"get").toLowerCase();let i=c&&_1.merge(c.common,c[a.method]);c&&_1.forEach(["delete","get","head","post","put","patch","common"],v=>{delete c[v]}),a.headers=h4.concat(i,c);const s=[];let l=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(a)===!1||(l=l&&p.synchronous,s.unshift(p.fulfilled,p.rejected))});const f=[];this.interceptors.response.forEach(function(p){f.push(p.fulfilled,p.rejected)});let u,d=0,h;if(!l){const v=[Hp.bind(this),void 0];for(v.unshift.apply(v,s),v.push.apply(v,f),h=v.length,u=Promise.resolve(a);d<h;)u=u.then(v[d++],v[d++]);return u}h=s.length;let m=a;for(d=0;d<h;){const v=s[d++],p=s[d++];try{m=v(m)}catch(g){p.call(this,g);break}}try{u=Hp.call(this,m)}catch(v){return Promise.reject(v)}for(d=0,h=f.length;d<h;)u=u.then(f[d++],f[d++]);return u}getUri(t){t=f6(this.defaults,t);const a=KA(t.baseURL,t.url);return qA(a,t.params,t.paramsSerializer)}}_1.forEach(["delete","get","head","options"],function(t){a5.prototype[t]=function(a,r){return this.request(f6(r||{},{method:t,url:a,data:(r||{}).data}))}});_1.forEach(["post","put","patch"],function(t){function a(r){return function(c,i,s){return this.request(f6(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:c,data:i}))}}a5.prototype[t]=a(),a5.prototype[t+"Form"]=a(!0)});const sc=a5;class kf{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let a;this.promise=new Promise(function(c){a=c});const r=this;this.promise.then(n=>{if(!r._listeners)return;let c=r._listeners.length;for(;c-- >0;)r._listeners[c](n);r._listeners=null}),this.promise.then=n=>{let c;const i=new Promise(s=>{r.subscribe(s),c=s}).then(n);return i.cancel=function(){r.unsubscribe(c)},i},t(function(c,i,s){r.reason||(r.reason=new Ca(c,i,s),a(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const a=this._listeners.indexOf(t);a!==-1&&this._listeners.splice(a,1)}toAbortSignal(){const t=new AbortController,a=r=>{t.abort(r)};return this.subscribe(a),t.signal.unsubscribe=()=>this.unsubscribe(a),t.signal}static source(){let t;return{token:new kf(function(n){t=n}),cancel:t}}}const bY1=kf;function CY1(e){return function(a){return e.apply(null,a)}}function MY1(e){return _1.isObject(e)&&e.isAxiosError===!0}const ro={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ro).forEach(([e,t])=>{ro[t]=e});const zY1=ro;function aT(e){const t=new sc(e),a=EA(sc.prototype.request,t);return _1.extend(a,sc.prototype,t,{allOwnKeys:!0}),_1.extend(a,t,null,{allOwnKeys:!0}),a.create=function(n){return aT(f6(e,n))},a}const we=aT(_f);we.Axios=sc;we.CanceledError=Ca;we.CancelToken=bY1;we.isCancel=GA;we.VERSION=tT;we.toFormData=hi;we.AxiosError=t2;we.Cancel=we.CanceledError;we.all=function(t){return Promise.all(t)};we.spread=CY1;we.isAxiosError=MY1;we.mergeConfig=f6;we.AxiosHeaders=h4;we.formToJSON=e=>YA(_1.isHTMLForm(e)?new FormData(e):e);we.getAdapter=eT.getAdapter;we.HttpStatusCode=zY1;we.default=we;const Ua=we;function wY1(e,t,a,r){if(e==="get")return Ua.get(t,{params:a,...r});if(e==="post")return Ua.post(t,a,r);if(e==="put")return Ua.put(t,a,r);if(e==="patch")return Ua.patch(t,a,r);if(e==="delete")return Ua.delete(t,{data:a,...r})}function _Y1(e,t){return e?Array.isArray(t)?t.map(a=>new e(a)):new e(t):t}const P8=w2("apiConnectionsError");function kY1(e){var r,n,c;const t=(c=(n=(r=e.response)==null?void 0:r.data)==null?void 0:n.error)==null?void 0:c.errorCode;if(!t){r4("danger",()=>P8("INTERNAL_SERVER_ERROR"));return}const a=Q2.getConfig();if(a.i18n.apiConnectionsError(t)){r4("danger",()=>a.i18n.apiConnectionsError(t));return}if(P8(t)){r4("danger",()=>P8(t));return}r4("danger",()=>P8("INTERNAL_SERVER_ERROR"))}const Lp=w2("apiConnectionsSuccess");function HY1(e){const t=Q2.getConfig();if(t.i18n.apiConnectionsSuccess(e)){r4("success",()=>t.i18n.apiConnectionsSuccess(e));return}Lp(e)&&r4("success",()=>Lp(e))}function VY1(e){const t=new FormData;return Object.entries(e).forEach(([a,r])=>{Array.isArray(r)?r.forEach(n=>t.append(a,n)):t.append(a,r)}),t}function LY1(e,t){var n;const a={...(n=t.getCustomHeaders)==null?void 0:n.call(t),"x-app-version":e,"x-language":m4().language};t.basicAuth||(a.Authorization=`Bearer ${Ep()||""}`);const r={headers:a};return t.basicAuth&&(r.auth=t.basicAuth),r}async function Pt(e,t,a,r,n,c,i={}){var v,p,g,y;const{getCustomHeaders:s}=c||{},{success:l,error:f,preventDisplayError:u,preventThrowError:d,isLoadingRef:h,basicAuth:m}=i;try{h&&(h.value=!0);const x=Q2.getConfig().backendUrl,C=(v=a.meta)!=null&&v.sendAsFormData?VY1(r):r,b=LY1(n,{basicAuth:m,getCustomHeaders:s}),M=await wY1(e,`${x}/${t}`,C,b),w=_Y1(a.response,M.data.data);return e!=="get"&&HY1(M.data.successCode),l&&l(w,M.data.totalCount),{data:w,totalCount:M.data.totalCount}}catch(x){if(((y=(g=(p=x.response)==null?void 0:p.data)==null?void 0:g.error)==null?void 0:y.errorCode)==="APP_VERSION_MISMATCH"?window.location.reload():u||kY1(x),f&&f(x),d)return{data:null,totalCount:void 0};throw x}finally{h&&(h.value=!1)}}function Vs(e,t){return t?`${e}/${t}`:e}function A6(e,t){return e?Array.isArray(t)?t.map(a=>new e(a)):new e(t):t}function SY1(e,t,a){return{getOne(r,n,c,i){const s=Vs(r,n),l=e[r].getOne,f=A6(l.params,c);return Pt("get",s,l,f,t,a,i)},getMany(r,n,c){const i=e[r].getMany,s=A6(i.params,n);return Pt("get",r,i,s,t,a,c)},postOne(r,n,c){const i=e[r].postOne,s=A6(i.params,n);return Pt("post",r,i,s,t,a,c)},postMany(r,n,c){const i=e[r].postMany,s=A6(i.params,n);return Pt("post",r,i,s,t,a,c)},putOne(r,n,c,i){const s=Vs(r,n),l=e[r].putOne,f=A6(l.params,c);return Pt("put",s,l,f,t,a,i)},putMany(r,n,c){const i=e[r].putMany,s=A6(i.params,n);return Pt("put",r,i,s,t,a,c)},deleteOne(r,n,c){const i=Vs(r,n),s=e[r].deleteOne;return Pt("delete",i,s,void 0,t,a,c)},deleteMany(r,n,c){const i=e[r].deleteMany;return Pt("delete",r,i,n,t,a,c)}}}class gi{constructor(t){v1(this,"id",0);v1(this,"createdAt",new Date);v1(this,"updatedAt",new Date);v1(this,"deletedAt",null);gi.CopyFields(this,t)}static CopyFields(t,a,r){bn(t,a,r)}}class mn extends gi{constructor(a){super(a);v1(this,"username","");mn.CopyFields(this,a)}}class AY1{constructor(t){v1(this,"accessToken","");v1(this,"user",new mn);bn(this,t,{user:mn})}}class L3{constructor(t){L3.CopyFields(this,t)}static CopyFields(t,a,r){bn(t,a,r)}}class TY1 extends L3{constructor(a){super(a);v1(this,"page");v1(this,"pageSize");v1(this,"search");L3.CopyFields(this,a)}}class EY1 extends L3{constructor(a){super(a);v1(this,"file");L3.CopyFields(this,a)}}class NY1 extends L3{constructor(a){super(a);v1(this,"file");L3.CopyFields(this,a)}}class DY1 extends L3{constructor(t){super(t),L3.CopyFields(this,t)}}class OY1 extends L3{constructor(a){super(a);v1(this,"index",0);L3.CopyFields(this,a)}}class Hf{constructor(t){Hf.CopyFields(this,t)}static CopyFields(t,a,r){bn(t,a,r)}}function PY1(e,t,a){return a||{top:0}}async function BY1(e,t,a){if(t.name&&t.name===e.name){a();return}const r=Q2.getConfig().routerHelpers;if(!r.validateRouteAccess(e.meta.access)){a({name:r.getDefaultRouteName(e)});return}a()}async function FY1(e){b4().currentRoute=e,RY1(e.name),IY1()}function RY1(e){const t=b4().routeType;document.title=`${Cn(t,e)} | ${Q2.getConfig().appName}`}async function IY1(){const e=Q2.getConfig(),t=e.routerHelpers;if(await Dp(),!t.validateRouteAccess(b4().routeAccess)){e.router.push({name:t.getDefaultRouteName()});return}}function $Y1(e){const t=Vr.createRouter({history:Vr.createWebHistory(),routes:e,scrollBehavior:PY1});return t.beforeEach(BY1),t.afterEach(FY1),t}function UY1(e,t,a){const r=I4.createPinia();r.use(pF({storage:localStorage})),e.use(r),e.use(t.router),e.use(Cg),e.use(gR,yR),Q2.init(t),Fv(a==null?void 0:a.appOptions),m4().init(a==null?void 0:a.appOptionsStore);const n={...l71,...a==null?void 0:a.components};Object.entries(n).forEach(([c,i])=>e.component(c,i))}exports.App=lF;exports.AuthUser=AY1;exports.BaseParams=L3;exports.BaseResponse=Hf;exports.DatabaseDefault=gi;exports.GetManyBaseParams=TY1;exports.RemoveFileParams=DY1;exports.RemoveFilesParams=OY1;exports.UploadFileParams=EY1;exports.UploadFilesParams=NY1;exports.User=mn;exports.addNotification=r4;exports.animateElement=oT;exports.clearNotifications=Iv;exports.copyModelFields=bn;exports.createApiConnections=SY1;exports.createI18n=Pp;exports.createRouter=$Y1;exports.default=UY1;exports.displayAlert=Qg;exports.getAccessToken=Ep;exports.getAppOptions=r3;exports.getDateStr=Ss;exports.getDatetimeStr=p4;exports.getDomain=So;exports.getEnvironment=Lo;exports.getFinalValue=Fe;exports.getIsSmallDevice=Er;exports.getLayouts=GO;exports.getMonthStr=kT;exports.getNavigationSectionsToDisplay=Vo;exports.getNumberStr=Es;exports.getNumericDateStr=Wa;exports.getRandomColorSelectorColor=lT;exports.getRouteTitle=Cn;exports.getRouteType=Pv;exports.getRoutesByNavigationSection=m5;exports.getRoutesToDisplay=Ho;exports.getSubdomain=YO;exports.getTimeStr=Bp;exports.greaterEqualRule=u11;exports.greaterThanRule=d11;exports.idRequiredRule=l11;exports.initAppOptions=Fv;exports.integerRule=f11;exports.isAValidId=XO;exports.isColorTemplateVariable=pn;exports.isMobileDevice=KO;exports.lessEqualRule=h11;exports.lessThanRule=m11;exports.login=Np;exports.logout=sT;exports.maxLengthRule=T7;exports.minLengthRule=A7;exports.removeHtmlTags=qp;exports.removeNotification=To;exports.requiredRule=S7;exports.rgba=Op;exports.sanitizeHtml=jT;exports.scrollToTop=Bv;exports.setBodyOverflow=lc;exports.setColorProperties=Ao;exports.setColorRootProperties=Ls;exports.setLayoutProperties=Rv;exports.setRootProperty=oc;exports.useAppOptionsStore=m4;exports.useElementPosition=eM;exports.useRouteStore=b4;exports.useScrollListener=el;exports.validateAccessToken=Dp;
|
|
878
|
+
`+c):r.stack=c}catch{}}throw r}}_request(t,a){typeof t=="string"?(a=a||{},a.url=t):a=t||{},a=f6(this.defaults,a);const{transitional:r,paramsSerializer:n,headers:c}=a;r!==void 0&&ic.assertOptions(r,{silentJSONParsing:_4.transitional(_4.boolean),forcedJSONParsing:_4.transitional(_4.boolean),clarifyTimeoutError:_4.transitional(_4.boolean)},!1),n!=null&&(_1.isFunction(n)?a.paramsSerializer={serialize:n}:ic.assertOptions(n,{encode:_4.function,serialize:_4.function},!0)),ic.assertOptions(a,{baseUrl:_4.spelling("baseURL"),withXsrfToken:_4.spelling("withXSRFToken")},!0),a.method=(a.method||this.defaults.method||"get").toLowerCase();let i=c&&_1.merge(c.common,c[a.method]);c&&_1.forEach(["delete","get","head","post","put","patch","common"],v=>{delete c[v]}),a.headers=h4.concat(i,c);const s=[];let l=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(a)===!1||(l=l&&p.synchronous,s.unshift(p.fulfilled,p.rejected))});const f=[];this.interceptors.response.forEach(function(p){f.push(p.fulfilled,p.rejected)});let u,d=0,h;if(!l){const v=[Hp.bind(this),void 0];for(v.unshift.apply(v,s),v.push.apply(v,f),h=v.length,u=Promise.resolve(a);d<h;)u=u.then(v[d++],v[d++]);return u}h=s.length;let m=a;for(d=0;d<h;){const v=s[d++],p=s[d++];try{m=v(m)}catch(g){p.call(this,g);break}}try{u=Hp.call(this,m)}catch(v){return Promise.reject(v)}for(d=0,h=f.length;d<h;)u=u.then(f[d++],f[d++]);return u}getUri(t){t=f6(this.defaults,t);const a=KA(t.baseURL,t.url);return qA(a,t.params,t.paramsSerializer)}}_1.forEach(["delete","get","head","options"],function(t){a5.prototype[t]=function(a,r){return this.request(f6(r||{},{method:t,url:a,data:(r||{}).data}))}});_1.forEach(["post","put","patch"],function(t){function a(r){return function(c,i,s){return this.request(f6(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:c,data:i}))}}a5.prototype[t]=a(),a5.prototype[t+"Form"]=a(!0)});const sc=a5;class kf{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let a;this.promise=new Promise(function(c){a=c});const r=this;this.promise.then(n=>{if(!r._listeners)return;let c=r._listeners.length;for(;c-- >0;)r._listeners[c](n);r._listeners=null}),this.promise.then=n=>{let c;const i=new Promise(s=>{r.subscribe(s),c=s}).then(n);return i.cancel=function(){r.unsubscribe(c)},i},t(function(c,i,s){r.reason||(r.reason=new Ca(c,i,s),a(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const a=this._listeners.indexOf(t);a!==-1&&this._listeners.splice(a,1)}toAbortSignal(){const t=new AbortController,a=r=>{t.abort(r)};return this.subscribe(a),t.signal.unsubscribe=()=>this.unsubscribe(a),t.signal}static source(){let t;return{token:new kf(function(n){t=n}),cancel:t}}}const bY1=kf;function CY1(e){return function(a){return e.apply(null,a)}}function MY1(e){return _1.isObject(e)&&e.isAxiosError===!0}const ro={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ro).forEach(([e,t])=>{ro[t]=e});const zY1=ro;function aT(e){const t=new sc(e),a=EA(sc.prototype.request,t);return _1.extend(a,sc.prototype,t,{allOwnKeys:!0}),_1.extend(a,t,null,{allOwnKeys:!0}),a.create=function(n){return aT(f6(e,n))},a}const we=aT(_f);we.Axios=sc;we.CanceledError=Ca;we.CancelToken=bY1;we.isCancel=GA;we.VERSION=tT;we.toFormData=hi;we.AxiosError=t2;we.Cancel=we.CanceledError;we.all=function(t){return Promise.all(t)};we.spread=CY1;we.isAxiosError=MY1;we.mergeConfig=f6;we.AxiosHeaders=h4;we.formToJSON=e=>YA(_1.isHTMLForm(e)?new FormData(e):e);we.getAdapter=eT.getAdapter;we.HttpStatusCode=zY1;we.default=we;const Ua=we;function wY1(e,t,a,r){if(e==="get")return Ua.get(t,{params:a,...r});if(e==="post")return Ua.post(t,a,r);if(e==="put")return Ua.put(t,a,r);if(e==="patch")return Ua.patch(t,a,r);if(e==="delete")return Ua.delete(t,{data:a,...r})}function _Y1(e,t){return e?Array.isArray(t)?t.map(a=>new e(a)):new e(t):t}const P8=w2("apiConnectionsError");function kY1(e){var r,n,c;const t=(c=(n=(r=e.response)==null?void 0:r.data)==null?void 0:n.error)==null?void 0:c.errorCode;if(!t){r4("danger",()=>P8("INTERNAL_SERVER_ERROR"));return}const a=Q2.getConfig();if(a.i18n.apiConnectionsError(t)){r4("danger",()=>a.i18n.apiConnectionsError(t));return}if(P8(t)){r4("danger",()=>P8(t));return}r4("danger",()=>P8("INTERNAL_SERVER_ERROR"))}const Lp=w2("apiConnectionsSuccess");function HY1(e){const t=Q2.getConfig();if(t.i18n.apiConnectionsSuccess(e)){r4("success",()=>t.i18n.apiConnectionsSuccess(e));return}Lp(e)&&r4("success",()=>Lp(e))}function VY1(e){const t=new FormData;return Object.entries(e).forEach(([a,r])=>{Array.isArray(r)?r.forEach(n=>t.append(a,n)):t.append(a,r)}),t}function LY1(e,t){var n;const a={...(n=t.getCustomHeaders)==null?void 0:n.call(t),"x-app-version":e,"x-language":m4().language};t.basicAuth||(a.Authorization=`Bearer ${Ep()||""}`);const r={headers:a};return t.basicAuth&&(r.auth=t.basicAuth),r}async function Pt(e,t,a,r,n,c,i={}){var v,p,g,y;const{getCustomHeaders:s}=c||{},{success:l,error:f,preventDisplayError:u,preventThrowError:d,isLoadingRef:h,basicAuth:m}=i;try{h&&(h.value=!0);const x=Q2.getConfig().backendUrl,C=(v=a.meta)!=null&&v.sendAsFormData?VY1(r):r,b=LY1(n,{basicAuth:m,getCustomHeaders:s}),M=await wY1(e,`${x}/${t}`,C,b),w=_Y1(a.response,M.data.data);return e!=="get"&&HY1(M.data.successCode),l&&l(w,M.data.totalCount),{data:w,totalCount:M.data.totalCount}}catch(x){if(((y=(g=(p=x.response)==null?void 0:p.data)==null?void 0:g.error)==null?void 0:y.errorCode)==="APP_VERSION_MISMATCH"?window.location.reload():u||kY1(x),f&&f(x),d)return{data:null,totalCount:void 0};throw x}finally{h&&(h.value=!1)}}function Vs(e,t){return t?`${e}/${t}`:e}function A6(e,t){return e?Array.isArray(t)?t.map(a=>new e(a)):new e(t):t}function SY1(e,t,a){return{getOne(r,n,c,i){const s=Vs(r,n),l=e[r].getOne,f=A6(l.params,c);return Pt("get",s,l,f,t,a,i)},getMany(r,n,c){const i=e[r].getMany,s=A6(i.params,n);return Pt("get",r,i,s,t,a,c)},postOne(r,n,c){const i=e[r].postOne,s=A6(i.params,n);return Pt("post",r,i,s,t,a,c)},postMany(r,n,c){const i=e[r].postMany,s=A6(i.params,n);return Pt("post",r,i,s,t,a,c)},putOne(r,n,c,i){const s=Vs(r,n),l=e[r].putOne,f=A6(l.params,c);return Pt("put",s,l,f,t,a,i)},putMany(r,n,c){const i=e[r].putMany,s=A6(i.params,n);return Pt("put",r,i,s,t,a,c)},deleteOne(r,n,c){const i=Vs(r,n),s=e[r].deleteOne;return Pt("delete",i,s,void 0,t,a,c)},deleteMany(r,n,c){const i=e[r].deleteMany;return Pt("delete",r,i,n,t,a,c)}}}class gi{constructor(t){v1(this,"id",0);v1(this,"createdAt",new Date);v1(this,"updatedAt",new Date);v1(this,"deletedAt",null);gi.CopyFields(this,t)}static CopyFields(t,a,r){bn(t,a,r)}}class mn extends gi{constructor(a){super(a);v1(this,"username","");mn.CopyFields(this,a)}}class AY1{constructor(t){v1(this,"user",new mn);v1(this,"accessToken","");bn(this,t,{user:mn})}}class L3{constructor(t){L3.CopyFields(this,t)}static CopyFields(t,a,r){bn(t,a,r)}}class TY1 extends L3{constructor(a){super(a);v1(this,"page");v1(this,"pageSize");v1(this,"search");L3.CopyFields(this,a)}}class EY1 extends L3{constructor(a){super(a);v1(this,"file");L3.CopyFields(this,a)}}class NY1 extends L3{constructor(a){super(a);v1(this,"file");L3.CopyFields(this,a)}}class DY1 extends L3{constructor(t){super(t),L3.CopyFields(this,t)}}class OY1 extends L3{constructor(a){super(a);v1(this,"index",0);L3.CopyFields(this,a)}}class Hf{constructor(t){Hf.CopyFields(this,t)}static CopyFields(t,a,r){bn(t,a,r)}}function PY1(e,t,a){return a||{top:0}}async function BY1(e,t,a){if(t.name&&t.name===e.name){a();return}const r=Q2.getConfig().routerHelpers;if(!r.validateRouteAccess(e.meta.access)){a({name:r.getDefaultRouteName(e)});return}a()}async function FY1(e){b4().currentRoute=e,RY1(e.name),IY1()}function RY1(e){const t=b4().routeType;document.title=`${Cn(t,e)} | ${Q2.getConfig().appName}`}async function IY1(){const e=Q2.getConfig(),t=e.routerHelpers;if(await Dp(),!t.validateRouteAccess(b4().routeAccess)){e.router.push({name:t.getDefaultRouteName()});return}}function $Y1(e){const t=Vr.createRouter({history:Vr.createWebHistory(),routes:e,scrollBehavior:PY1});return t.beforeEach(BY1),t.afterEach(FY1),t}function UY1(e,t,a){const r=I4.createPinia();r.use(pF({storage:localStorage})),e.use(r),e.use(t.router),e.use(Cg),e.use(gR,yR),Q2.init(t),Fv(a==null?void 0:a.appOptions),m4().init(a==null?void 0:a.appOptionsStore);const n={...l71,...a==null?void 0:a.components};Object.entries(n).forEach(([c,i])=>e.component(c,i))}exports.App=lF;exports.AuthUser=AY1;exports.BaseModel=gi;exports.BaseParams=L3;exports.BaseResponse=Hf;exports.GetManyBaseParams=TY1;exports.RemoveFileParams=DY1;exports.RemoveFilesParams=OY1;exports.UploadFileParams=EY1;exports.UploadFilesParams=NY1;exports.User=mn;exports.addNotification=r4;exports.animateElement=oT;exports.clearNotifications=Iv;exports.copyModelFields=bn;exports.createApiConnections=SY1;exports.createI18n=Pp;exports.createRouter=$Y1;exports.default=UY1;exports.displayAlert=Qg;exports.getAccessToken=Ep;exports.getAppOptions=r3;exports.getDateStr=Ss;exports.getDatetimeStr=p4;exports.getDomain=So;exports.getEnvironment=Lo;exports.getFinalValue=Fe;exports.getIsSmallDevice=Er;exports.getLayouts=GO;exports.getMonthStr=kT;exports.getNavigationSectionsToDisplay=Vo;exports.getNumberStr=Es;exports.getNumericDateStr=Wa;exports.getRandomColorSelectorColor=lT;exports.getRouteTitle=Cn;exports.getRouteType=Pv;exports.getRoutesByNavigationSection=m5;exports.getRoutesToDisplay=Ho;exports.getSubdomain=YO;exports.getTimeStr=Bp;exports.greaterEqualRule=u11;exports.greaterThanRule=d11;exports.idRequiredRule=l11;exports.initAppOptions=Fv;exports.integerRule=f11;exports.isAValidId=XO;exports.isColorTemplateVariable=pn;exports.isMobileDevice=KO;exports.lessEqualRule=h11;exports.lessThanRule=m11;exports.login=Np;exports.logout=sT;exports.maxLengthRule=T7;exports.minLengthRule=A7;exports.removeHtmlTags=qp;exports.removeNotification=To;exports.requiredRule=S7;exports.rgba=Op;exports.sanitizeHtml=jT;exports.scrollToTop=Bv;exports.setBodyOverflow=lc;exports.setColorProperties=Ao;exports.setColorRootProperties=Ls;exports.setLayoutProperties=Rv;exports.setRootProperty=oc;exports.useAppOptionsStore=m4;exports.useElementPosition=eM;exports.useRouteStore=b4;exports.useScrollListener=el;exports.validateAccessToken=Dp;
|
package/dist/main.es.js
CHANGED
|
@@ -1288,13 +1288,13 @@ const uE = {
|
|
|
1288
1288
|
MODELS_ASSOCIATED: "No se puede eliminar porque tiene items asociados",
|
|
1289
1289
|
INVALID_INPUT_DATA: "Los datos ingresados no son correctos",
|
|
1290
1290
|
ENTITY_NOT_FOUND: "El item no existe",
|
|
1291
|
-
//
|
|
1291
|
+
// auth
|
|
1292
1292
|
INVALID_CREDENTIALS: "Usuario o contraseña incorrectos",
|
|
1293
1293
|
UNAUTHORIZED: "No autorizado"
|
|
1294
1294
|
}
|
|
1295
1295
|
}, pE = {
|
|
1296
1296
|
es: {
|
|
1297
|
-
//
|
|
1297
|
+
// auth
|
|
1298
1298
|
_LOGIN: "¡Bienvenido!"
|
|
1299
1299
|
// TODO: sacar el '_' y que no tire error en el displaySuccess()
|
|
1300
1300
|
}
|
|
@@ -78076,8 +78076,8 @@ class Fi extends au {
|
|
|
78076
78076
|
}
|
|
78077
78077
|
class eX1 {
|
|
78078
78078
|
constructor(t) {
|
|
78079
|
-
b1(this, "accessToken", "");
|
|
78080
78079
|
b1(this, "user", new Fi());
|
|
78080
|
+
b1(this, "accessToken", "");
|
|
78081
78081
|
Zi(this, t, { user: Fi });
|
|
78082
78082
|
}
|
|
78083
78083
|
}
|
|
@@ -78176,9 +78176,9 @@ function sX1(e, t, a) {
|
|
|
78176
78176
|
export {
|
|
78177
78177
|
jG1 as App,
|
|
78178
78178
|
eX1 as AuthUser,
|
|
78179
|
+
au as BaseModel,
|
|
78179
78180
|
y4 as BaseParams,
|
|
78180
78181
|
IT as BaseResponse,
|
|
78181
|
-
au as DatabaseDefault,
|
|
78182
78182
|
tX1 as GetManyBaseParams,
|
|
78183
78183
|
nX1 as RemoveFileParams,
|
|
78184
78184
|
iX1 as RemoveFilesParams,
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
columns: Record<string, number>;
|
|
4
|
-
};
|
|
1
|
+
import { ExcelConfig } from '../../../types';
|
|
2
|
+
|
|
5
3
|
declare function resetInput(): void;
|
|
6
4
|
declare const _default: import('vue').DefineComponent<{
|
|
7
5
|
isReadingFile: import('vue').PropType<boolean>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Id } from '../types';
|
|
2
2
|
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class BaseModel {
|
|
4
4
|
id: Id;
|
|
5
5
|
createdAt: Date;
|
|
6
6
|
updatedAt: Date;
|
|
7
7
|
deletedAt: Date | null;
|
|
8
|
-
constructor(params?: Partial<
|
|
8
|
+
constructor(params?: Partial<BaseModel>);
|
|
9
9
|
static CopyFields(objTo: any, objFrom: any, relations?: any): void;
|
|
10
10
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BaseModel } from './base-model.model';
|
|
2
2
|
|
|
3
|
-
export declare class User extends
|
|
3
|
+
export declare class User extends BaseModel {
|
|
4
4
|
username: string;
|
|
5
5
|
constructor(params?: Partial<User>);
|
|
6
6
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
2
|
import { AxiosError, AxiosBasicCredentials } from 'axios';
|
|
3
|
-
import {
|
|
3
|
+
import { BaseModel } from '../models/base-model.model';
|
|
4
4
|
import { BaseParams } from '../models/base-params.models';
|
|
5
5
|
import { BaseResponse } from '../models/base-response.models';
|
|
6
6
|
import { ExtractConstructor } from 'pangea-helpers';
|
|
@@ -22,7 +22,7 @@ export type ApiConnectionsConfig = {
|
|
|
22
22
|
getCustomHeaders?: GetCustomHeaders;
|
|
23
23
|
};
|
|
24
24
|
export type EndpointSettingsParams = typeof BaseParams;
|
|
25
|
-
export type EndpointSettingsResponse = typeof
|
|
25
|
+
export type EndpointSettingsResponse = typeof BaseModel | typeof BaseResponse | ClassWithConstructor | undefined;
|
|
26
26
|
export type EndpointSettingsMeta = {
|
|
27
27
|
sendAsFormData?: boolean;
|
|
28
28
|
};
|
|
@@ -27,3 +27,7 @@ export type BoolOrFn = OrFn<boolean>;
|
|
|
27
27
|
export type Align = 'center' | 'left' | 'right';
|
|
28
28
|
export type DatetimeFormat = 'numeric' | 'short' | 'long';
|
|
29
29
|
export type FileSource = 'static' | 'dynamic';
|
|
30
|
+
export type ExcelConfig = {
|
|
31
|
+
firstRow: number;
|
|
32
|
+
columns: Record<string, number>;
|
|
33
|
+
};
|