@factoringplus/pl-components-pack-v3 1.2.26-pre-05 → 1.2.26-pre-06
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.
@@ -9,7 +9,7 @@ import loadingAndSetup from '../plugins/loading/loading';
|
|
9
9
|
|
10
10
|
import type { IPlNotification } from './pl-snackbar/types';
|
11
11
|
declare const Storybook: {
|
12
|
-
apiJs: (optionsRequest: any, isGetResourse: boolean, token: any
|
12
|
+
apiJs: (optionsRequest: any, isGetResourse: boolean, token: any) => Promise<unknown>;
|
13
13
|
plLoading: typeof plLoading;
|
14
14
|
loader: typeof loadingAndSetup;
|
15
15
|
formatCurrency: import("../install-function").SFCInstallWithContext<(number: string | number, showDecimal?: boolean, digitCount?: number) => string>;
|
@@ -5508,37 +5508,37 @@ const YA = QA({
|
|
5508
5508
|
state: () => ({
|
5509
5509
|
requests: {}
|
5510
5510
|
})
|
5511
|
-
}), RA = function(e, t = !1, n
|
5512
|
-
let
|
5511
|
+
}), RA = function(e, t = !1, n) {
|
5512
|
+
let r, o;
|
5513
5513
|
if (e.cancelPendingRequests) {
|
5514
|
-
|
5515
|
-
const
|
5516
|
-
|
5514
|
+
r = YA(), o = `${e.method}${e.url}`;
|
5515
|
+
const s = e.signalController || new AbortController();
|
5516
|
+
r.requests[o] ? (r.requests[o].firstCall || r.requests[o].controler.abort(), r.requests[o] = {
|
5517
5517
|
firstCall: !1,
|
5518
|
-
controler:
|
5519
|
-
}) :
|
5518
|
+
controler: s
|
5519
|
+
}) : r.requests[o] = {
|
5520
5520
|
firstCall: !0,
|
5521
|
-
controler:
|
5521
|
+
controler: s
|
5522
5522
|
};
|
5523
5523
|
}
|
5524
|
-
return new Promise((
|
5525
|
-
const
|
5524
|
+
return new Promise((s, i) => {
|
5525
|
+
const u = { ...e };
|
5526
5526
|
bp({
|
5527
|
-
url:
|
5528
|
-
method:
|
5529
|
-
params:
|
5527
|
+
url: u.url,
|
5528
|
+
method: u.method,
|
5529
|
+
params: u.realDate ? u.params : Pu(u.params, !0),
|
5530
5530
|
headers: {
|
5531
5531
|
authorization: n,
|
5532
|
-
...
|
5532
|
+
...u.headers
|
5533
5533
|
},
|
5534
|
-
data:
|
5535
|
-
responseType:
|
5536
|
-
signal:
|
5537
|
-
}).then((
|
5538
|
-
|
5539
|
-
}).catch((
|
5540
|
-
(
|
5541
|
-
}), (window.navigator.userAgent.indexOf("MSIE ") > -1 || window.navigator.userAgent.indexOf("Trident/") > -1) && bp.interceptors.request.use((
|
5534
|
+
data: u.realDate ? u.data : Pu(u.data, !0),
|
5535
|
+
responseType: u.responseType,
|
5536
|
+
signal: u.cancelPendingRequests || e.signalController ? e.signalController.signal || r.requests[o].controler.signal : null
|
5537
|
+
}).then((c) => {
|
5538
|
+
s(t ? u.realDate ? c : Pu(c) : u.realDate ? c.data : Pu(c.data));
|
5539
|
+
}).catch((c) => {
|
5540
|
+
(c == null ? void 0 : c.name) !== "AbortError" && i(c.response);
|
5541
|
+
}), (window.navigator.userAgent.indexOf("MSIE ") > -1 || window.navigator.userAgent.indexOf("Trident/") > -1) && bp.interceptors.request.use((c) => (c.url.indexOf("GetRequirementItems") !== -1 && (console.log(c.url), c.headers.pragma = "no-cache", c.headers.cacheControl = "no-cache", c.headers.expires = "Sat, 01 Jan 2000 00:00:00 GMT"), c));
|
5542
5542
|
});
|
5543
5543
|
};
|
5544
5544
|
function BA(e) {
|
@@ -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 xN(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,Ft({},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 vN=xN({id:"requests",state:()=>({requests:{}})}),EN=function(t,n=!1,o
|
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,Ft({},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 vN=xN({id:"requests",state:()=>({requests:{}})}),EN=function(t,n=!1,o){let r,s;if(t.cancelPendingRequests){r=vN(),s=`${t.method}${t.url}`;const i=t.signalController||new AbortController;r.requests[s]?(r.requests[s].firstCall||r.requests[s].controler.abort(),r.requests[s]={firstCall:!1,controler:i}):r.requests[s]={firstCall:!0,controler:i}}return new Promise((i,c)=>{const d={...t};T4({url:d.url,method:d.method,params:d.realDate?d.params:Yr(d.params,!0),headers:{authorization:o,...d.headers},data:d.realDate?d.data:Yr(d.data,!0),responseType:d.responseType,signal:d.cancelPendingRequests||t.signalController?t.signalController.signal||r.requests[s].controler.signal:null}).then(u=>{i(n?d.realDate?u:Yr(u):d.realDate?u.data:Yr(u.data))}).catch(u=>{(u==null?void 0:u.name)!=="AbortError"&&c(u.response)}),(window.navigator.userAgent.indexOf("MSIE ")>-1||window.navigator.userAgent.indexOf("Trident/")>-1)&&T4.interceptors.request.use(u=>(u.url.indexOf("GetRequirementItems")!==-1&&(console.log(u.url),u.headers.pragma="no-cache",u.headers.cacheControl="no-cache",u.headers.expires="Sat, 01 Jan 2000 00:00:00 GMT"),u))})};function SN(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>
|
@@ -1,2 +1,2 @@
|
|
1
|
-
declare const ApiJs: (optionsRequest: any, isGetResourse: boolean, token: any
|
1
|
+
declare const ApiJs: (optionsRequest: any, isGetResourse: boolean, token: any) => Promise<unknown>;
|
2
2
|
export default ApiJs;
|