portalcash-shared 1.1.21 → 1.1.22
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/auto-imports.d.ts +1 -1
- package/dist/index.es.js +14 -14
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/dist/stores/clientStore.d.ts +23 -0
- package/dist/stores/clientStore.d.ts.map +1 -0
- package/dist/stores/index.d.ts +1 -1
- package/dist/stores/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/stores/companyStore.d.ts +0 -23
- package/dist/stores/companyStore.d.ts.map +0 -1
package/dist/auto-imports.d.ts
CHANGED
|
@@ -66,8 +66,8 @@ declare global {
|
|
|
66
66
|
const useAccountTypesStore: typeof import('./stores/accountsStore')['useAccountTypesStore']
|
|
67
67
|
const useAttrs: typeof import('vue')['useAttrs']
|
|
68
68
|
const useAuthStore: typeof import('./stores/authStore')['useAuthStore']
|
|
69
|
+
const useClientStore: typeof import('./stores/clientStore')['useClientStore']
|
|
69
70
|
const useClientTypesStore: typeof import('./stores/clientTypeStore')['useClientTypesStore']
|
|
70
|
-
const useCompanyStore: typeof import('./stores/companyStore')['useCompanyStore']
|
|
71
71
|
const useCssModule: typeof import('vue')['useCssModule']
|
|
72
72
|
const useCssVars: typeof import('vue')['useCssVars']
|
|
73
73
|
const useCurrencyFormatter: typeof import('./composables/useFormatPrice')['useCurrencyFormatter']
|
package/dist/index.es.js
CHANGED
|
@@ -39985,29 +39985,29 @@ const uc = /* @__PURE__ */ _n(N2, [["render", $2]]), R8 = Qn("accountTypes", {
|
|
|
39985
39985
|
return t.clientTypes;
|
|
39986
39986
|
}
|
|
39987
39987
|
}
|
|
39988
|
-
}), j2 = Qn("
|
|
39988
|
+
}), j2 = Qn("client", {
|
|
39989
39989
|
state: () => ({
|
|
39990
|
-
|
|
39991
|
-
|
|
39990
|
+
clientId: null,
|
|
39991
|
+
client: null
|
|
39992
39992
|
}),
|
|
39993
39993
|
actions: {
|
|
39994
|
-
|
|
39995
|
-
this.
|
|
39994
|
+
setClient(t) {
|
|
39995
|
+
this.clientId = t.id, this.client = t, localStorage.setItem("clientId", t.id), localStorage.setItem("client", JSON.stringify(t));
|
|
39996
39996
|
},
|
|
39997
39997
|
loadFromStorage() {
|
|
39998
|
-
const t = localStorage.getItem("
|
|
39998
|
+
const t = localStorage.getItem("client");
|
|
39999
39999
|
if (t) {
|
|
40000
40000
|
const e = JSON.parse(t);
|
|
40001
|
-
this.
|
|
40001
|
+
this.clientId = e.id, this.client = e;
|
|
40002
40002
|
}
|
|
40003
40003
|
}
|
|
40004
40004
|
},
|
|
40005
40005
|
getters: {
|
|
40006
|
-
|
|
40007
|
-
return t.
|
|
40006
|
+
getClientId(t) {
|
|
40007
|
+
return t.clientId;
|
|
40008
40008
|
},
|
|
40009
|
-
|
|
40010
|
-
return t.
|
|
40009
|
+
getClient(t) {
|
|
40010
|
+
return t.clientId;
|
|
40011
40011
|
}
|
|
40012
40012
|
}
|
|
40013
40013
|
}), z2 = Qn("currencyType", {
|
|
@@ -40051,7 +40051,7 @@ const K2 = { class: "flex flex-row mt-4 justify-between" }, G2 = { class: "flex
|
|
|
40051
40051
|
setup(t, { emit: e }) {
|
|
40052
40052
|
const n = dc(), i = new U2(), a = j2(), { formatPrice: r } = xr(), o = ee(), s = e, l = ee([]), u = ee([]);
|
|
40053
40053
|
Ln(async () => {
|
|
40054
|
-
a.loadFromStorage(), a.
|
|
40054
|
+
a.loadFromStorage(), a.getClient && (o.value = a.getClient?.secuency.find(
|
|
40055
40055
|
(m) => parseInt(m.id) === parseInt(n.secuency)
|
|
40056
40056
|
));
|
|
40057
40057
|
const p = ee(0);
|
|
@@ -40061,7 +40061,7 @@ const K2 = { class: "flex flex-row mt-4 justify-between" }, G2 = { class: "flex
|
|
|
40061
40061
|
(m) => m.secuencyTypeId === p.value
|
|
40062
40062
|
);
|
|
40063
40063
|
});
|
|
40064
|
-
const d = _e(() => a.
|
|
40064
|
+
const d = _e(() => a.getClient?.secuency ?? []);
|
|
40065
40065
|
function c(p) {
|
|
40066
40066
|
return p < 0 ? "text-icon-tertiary" : "text-icon-success";
|
|
40067
40067
|
}
|
|
@@ -45430,8 +45430,8 @@ export {
|
|
|
45430
45430
|
MC as transferService,
|
|
45431
45431
|
R8 as useAccountTypesStore,
|
|
45432
45432
|
dc as useAuthStore,
|
|
45433
|
+
j2 as useClientStore,
|
|
45433
45434
|
B8 as useClientTypesStore,
|
|
45434
|
-
j2 as useCompanyStore,
|
|
45435
45435
|
xr as useCurrencyFormatter,
|
|
45436
45436
|
z2 as useCurrencyTypesStore,
|
|
45437
45437
|
$C as useFeatureFlag,
|