@factoringplus/pl-components-pack-v3 1.2.26-pre-32 → 1.2.26-pre-34
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.
|
@@ -5518,34 +5518,33 @@ const pN = YA({
|
|
|
5518
5518
|
}), Or = (e, t) => (e.install = (n) => {
|
|
5519
5519
|
e._context = n._context, n.config.globalProperties[t] = e, n.component(t, e);
|
|
5520
5520
|
}, e), RA = function(e, t = !1, n) {
|
|
5521
|
-
|
|
5522
|
-
|
|
5523
|
-
|
|
5524
|
-
|
|
5525
|
-
const s = `${e.method.toLowerCase()}${e.url}`, i = e.signalController || new AbortController();
|
|
5521
|
+
var u;
|
|
5522
|
+
const r = pN(), o = !(e != null && e.method) || ((u = e.method) == null ? void 0 : u.toLowerCase()) === "get" || (e == null ? void 0 : e.cancellable);
|
|
5523
|
+
console.log("method:", e == null ? void 0 : e.method, "cancellableRequest:", o);
|
|
5524
|
+
const s = `${e.method}${e.url}`, i = e.signalController || new AbortController();
|
|
5526
5525
|
return e.cancelPendingRequests && r.requests[s] && r.requests[s].controler.abort(), o && (r.requests[s] = {
|
|
5527
5526
|
controler: i
|
|
5528
|
-
}), new Promise((
|
|
5529
|
-
const
|
|
5527
|
+
}), new Promise((c, d) => {
|
|
5528
|
+
const v = { ...e };
|
|
5530
5529
|
bp({
|
|
5531
|
-
url:
|
|
5532
|
-
method:
|
|
5533
|
-
params:
|
|
5530
|
+
url: v.url,
|
|
5531
|
+
method: v.method,
|
|
5532
|
+
params: v.realDate ? v.params : Pu(v.params, !0),
|
|
5534
5533
|
headers: {
|
|
5535
5534
|
authorization: n,
|
|
5536
|
-
...
|
|
5535
|
+
...v.headers
|
|
5537
5536
|
},
|
|
5538
|
-
data:
|
|
5539
|
-
responseType:
|
|
5537
|
+
data: v.realDate ? v.data : Pu(v.data, !0),
|
|
5538
|
+
responseType: v.responseType,
|
|
5540
5539
|
signal: r.requests[s].controler.signal
|
|
5541
|
-
}).then((
|
|
5542
|
-
|
|
5543
|
-
}).catch((
|
|
5544
|
-
|
|
5540
|
+
}).then((f) => {
|
|
5541
|
+
c(t ? v.realDate ? f : Pu(f) : v.realDate ? f.data : Pu(f.data));
|
|
5542
|
+
}).catch((f) => {
|
|
5543
|
+
d(f.response || f);
|
|
5545
5544
|
}).finally(() => {
|
|
5546
|
-
var
|
|
5547
|
-
(
|
|
5548
|
-
}), (window.navigator.userAgent.indexOf("MSIE ") > -1 || window.navigator.userAgent.indexOf("Trident/") > -1) && bp.interceptors.request.use((
|
|
5545
|
+
var f;
|
|
5546
|
+
(f = r.requests) != null && f[s] && delete r.requests[s];
|
|
5547
|
+
}), (window.navigator.userAgent.indexOf("MSIE ") > -1 || window.navigator.userAgent.indexOf("Trident/") > -1) && bp.interceptors.request.use((f) => (f.url.indexOf("GetRequirementItems") !== -1 && (console.log(f.url), f.headers.pragma = "no-cache", f.headers.cacheControl = "no-cache", f.headers.expires = "Sat, 01 Jan 2000 00:00:00 GMT"), f));
|
|
5549
5548
|
});
|
|
5550
5549
|
}, BA = () => {
|
|
5551
5550
|
pN().cancelAllRequests();
|
|
@@ -36,7 +36,7 @@ Only state can be modified.`);c[0]="$state",v3=!1,r.set(i,c,r.state.value),v3=!0
|
|
|
36
36
|
Found in store "${b.$id}".`),g&&i&&o.hydrate&&o.hydrate(b.$state,g),f=!0,C=!0,b}function EN(t,n,o){let r,s;const i=typeof n=="function";if(typeof t=="string")r=t,s=i?o:n;else if(s=t,r=t.id,process.env.NODE_ENV!=="production"&&typeof r!="string")throw new Error('[🍍]: "defineStore()" must be passed a store id as its first argument.');function c(d,u){const f=e.hasInjectionContext();if(d=(process.env.NODE_ENV==="test"&&Eo&&Eo._testing?null:d)||(f?e.inject(Di,null):null),d&&So(d),process.env.NODE_ENV!=="production"&&!Eo)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Did you forget to install pinia?
|
|
37
37
|
const pinia = createPinia()
|
|
38
38
|
app.use(pinia)
|
|
39
|
-
This will fail in production.`);d=Eo,d._s.has(r)||(i?A4(r,n,s,d):Ai(r,s,d),process.env.NODE_ENV!=="production"&&(c._pinia=d));const C=d._s.get(r);if(process.env.NODE_ENV!=="production"&&u){const p="__hot:"+r,_=i?A4(p,n,s,d,!0):Ai(p,Wt({},s),d,!0);u._hotUpdate(_),delete d.state.value[p],d._s.delete(p)}if(process.env.NODE_ENV!=="production"&&Fr){const p=e.getCurrentInstance();if(p&&p.proxy&&!u){const _=p.proxy,M="_pStores"in _?_._pStores:_._pStores={};M[r]=C}}return C}return c.$id=r,c}const Pi=EN({id:"requests",state:()=>({requests:{}}),actions:{async cancelAllRequests(){for(const t in this.requests)await this.requests[t].controler.abort();this.requests={}}}}),zt=(t,n)=>(t.install=o=>{t._context=o._context,o.config.globalProperties[n]=t,o.component(n,t)},t),SN=function(t,n=!1,o){const r=Pi()
|
|
39
|
+
This will fail in production.`);d=Eo,d._s.has(r)||(i?A4(r,n,s,d):Ai(r,s,d),process.env.NODE_ENV!=="production"&&(c._pinia=d));const C=d._s.get(r);if(process.env.NODE_ENV!=="production"&&u){const p="__hot:"+r,_=i?A4(p,n,s,d,!0):Ai(p,Wt({},s),d,!0);u._hotUpdate(_),delete d.state.value[p],d._s.delete(p)}if(process.env.NODE_ENV!=="production"&&Fr){const p=e.getCurrentInstance();if(p&&p.proxy&&!u){const _=p.proxy,M="_pStores"in _?_._pStores:_._pStores={};M[r]=C}}return C}return c.$id=r,c}const Pi=EN({id:"requests",state:()=>({requests:{}}),actions:{async cancelAllRequests(){for(const t in this.requests)await this.requests[t].controler.abort();this.requests={}}}}),zt=(t,n)=>(t.install=o=>{t._context=o._context,o.config.globalProperties[n]=t,o.component(n,t)},t),SN=function(t,n=!1,o){var d;const r=Pi(),s=!(t!=null&&t.method)||((d=t.method)==null?void 0:d.toLowerCase())==="get"||(t==null?void 0:t.cancellable);console.log("method:",t==null?void 0:t.method,"cancellableRequest:",s);const i=`${t.method}${t.url}`,c=t.signalController||new AbortController;return t.cancelPendingRequests&&r.requests[i]&&r.requests[i].controler.abort(),s&&(r.requests[i]={controler:c}),new Promise((u,f)=>{const C={...t};T4({url:C.url,method:C.method,params:C.realDate?C.params:Yr(C.params,!0),headers:{authorization:o,...C.headers},data:C.realDate?C.data:Yr(C.data,!0),responseType:C.responseType,signal:r.requests[i].controler.signal}).then(p=>{u(n?C.realDate?p:Yr(p):C.realDate?p.data:Yr(p.data))}).catch(p=>{f(p.response||p)}).finally(()=>{var p;(p=r.requests)!=null&&p[i]&&delete r.requests[i]}),(window.navigator.userAgent.indexOf("MSIE ")>-1||window.navigator.userAgent.indexOf("Trident/")>-1)&&T4.interceptors.request.use(p=>(p.url.indexOf("GetRequirementItems")!==-1&&(console.log(p.url),p.headers.pragma="no-cache",p.headers.cacheControl="no-cache",p.headers.expires="Sat, 01 Jan 2000 00:00:00 GMT"),p))})},Hi=zt(()=>{Pi().cancelAllRequests()},"cancelAllApiRequests");function $N(t){return function(...n){const o=this;if(n[1]!==void 0){const s=document.getElementById(n[1]);if(s!==null){const i=document.createElement("div");i.className="loading__body",i.style.background="rgb(255 255 255 / 80%)",i.innerHTML+=`
|
|
40
40
|
<div class='loading__spinner-wrapper' data-testid='loading-plus'>
|
|
41
41
|
<svg>
|
|
42
42
|
<circle cx='18' cy='18' r='18'></circle>
|