@wisemen/wise-crm-web 1.2.0 → 1.3.0
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/{AppSkeletonLoader-Dq6pKznm.js → AppSkeletonLoader-Chnz5oZv.js} +8 -21
- package/dist/{BusinessDetailSidebarProvider-a6VeNUii.js → BusinessDetailSidebarProvider-D__S8sa1.js} +30 -30
- package/dist/{BusinessDetailView-Dz3wDSx5.js → BusinessDetailView-Cu96XfzM.js} +3 -3
- package/dist/{CrmDetailHeaderCard-BkA0Z-Cu.js → CrmDetailHeaderCard-CacrRk2b.js} +3 -3
- package/dist/{CrmDetailView-BhZEQqUH.js → CrmDetailView-BJb6FSsY.js} +1 -1
- package/dist/{DealCommunicationTabView-Drp9MEPu.js → DealCommunicationTabView-CA1mbm_c.js} +2 -2
- package/dist/{DealDetailView-DWLudchX.js → DealDetailView-aB7D0WZu.js} +7 -7
- package/dist/{DealExternalAttachment-B6l0gDqF.js → DealExternalAttachment-wYY7tzfj.js} +2 -2
- package/dist/{DealSendMailDialog-Dqei4933.js → DealSendMailDialog-CMcszATV.js} +271 -271
- package/dist/{Error-za-wClcU.js → Error-D6dRLq_g.js} +843 -959
- package/dist/{IndividualDetailSidebarProvider-jjRoK1Av.js → IndividualDetailSidebarProvider-DZxDw1zQ.js} +11 -11
- package/dist/{IndividualDetailView-BqIRHn-0.js → IndividualDetailView-BeCdDJDk.js} +3 -3
- package/dist/{client-9P6xe_5g.js → client-BpnfhHgS.js} +163 -168
- package/dist/index.js +73 -73
- package/dist/testing.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { A as e, C as t, D as n, G as r, H as i, I as a, K as o, L as s, M as c, N as l, S as u, T as d, U as f, V as p, X as m, Y as h, Z as g, b as _, dt as ee, g as v, j as te, lt as ne, p as re, rt as y, t as ie, tt as ae, ut as oe, v as se, w as ce, x as le, y as ue, z as de } from "./Error-
|
|
2
|
-
import { a as fe, c as pe, d as me, f as he, i as ge, l as _e, m as ve, n as ye, o as b, p as be, r as xe, s as Se, t as Ce, u as we } from "./BusinessDetailSidebarProvider-
|
|
3
|
-
import { c as Te, u as Ee } from "./CrmDetailHeaderCard-
|
|
4
|
-
import { a as x,
|
|
5
|
-
import {
|
|
1
|
+
import { A as e, C as t, D as n, G as r, H as i, I as a, K as o, L as s, M as c, N as l, S as u, T as d, U as f, V as p, X as m, Y as h, Z as g, b as _, dt as ee, g as v, j as te, lt as ne, p as re, rt as y, t as ie, tt as ae, ut as oe, v as se, w as ce, x as le, y as ue, z as de } from "./Error-D6dRLq_g.js";
|
|
2
|
+
import { a as fe, c as pe, d as me, f as he, i as ge, l as _e, m as ve, n as ye, o as b, p as be, r as xe, s as Se, t as Ce, u as we } from "./BusinessDetailSidebarProvider-D__S8sa1.js";
|
|
3
|
+
import { c as Te, u as Ee } from "./CrmDetailHeaderCard-CacrRk2b.js";
|
|
4
|
+
import { a as x, c as De, l as Oe, n as ke, o as Ae, t as je } from "./AppSkeletonLoader-Chnz5oZv.js";
|
|
5
|
+
import { _t as Me, dt as Ne, ht as Pe, lt as Fe, mt as Ie, nt as Le, ot as S, pt as C, y as Re } from "./client-BpnfhHgS.js";
|
|
6
6
|
import { t as ze } from "./_plugin-vue_export-helper-D3hKq4w_.js";
|
|
7
|
-
import { _ as Be, a as Ve, c as He, d as Ue, f as We, g as Ge, h as Ke, i as qe, l as Je, m as Ye, o as Xe, p as Ze, r as Qe, s as $e, t as et, u as tt, v as nt, y as rt } from "./DealSendMailDialog-
|
|
7
|
+
import { _ as Be, a as Ve, c as He, d as Ue, f as We, g as Ge, h as Ke, i as qe, l as Je, m as Ye, o as Xe, p as Ze, r as Qe, s as $e, t as et, u as tt, v as nt, y as rt } from "./DealSendMailDialog-CMcszATV.js";
|
|
8
8
|
import { t as it } from "./uuid.util-DpiDKVoj.js";
|
|
9
|
-
import { o as at } from "./DealExternalAttachment-
|
|
10
|
-
import { n as ot, t as st } from "./IndividualDetailSidebarProvider-
|
|
9
|
+
import { o as at } from "./DealExternalAttachment-wYY7tzfj.js";
|
|
10
|
+
import { n as ot, t as st } from "./IndividualDetailSidebarProvider-DZxDw1zQ.js";
|
|
11
11
|
import w, { z as T } from "zod";
|
|
12
12
|
import { Fragment as E, computed as D, createBlock as O, createCommentVNode as k, createElementBlock as A, createElementVNode as j, createStaticVNode as ct, createTextVNode as M, createVNode as N, defineComponent as P, h as lt, inject as ut, isRef as dt, mergeModels as F, mergeProps as I, normalizeClass as ft, normalizeStyle as pt, onBeforeUnmount as mt, onMounted as ht, openBlock as L, provide as gt, reactive as _t, ref as R, renderList as z, renderSlot as B, resolveDynamicComponent as vt, toDisplayString as V, toValue as yt, unref as H, useId as bt, useModel as xt, useTemplateRef as St, watch as Ct, withCtx as U, withModifiers as wt } from "vue";
|
|
13
13
|
import { useI18n as W } from "vue-i18n";
|
|
@@ -65,7 +65,7 @@ var Yn = /* @__PURE__ */ P({
|
|
|
65
65
|
setup(t) {
|
|
66
66
|
let n = t, r = R(n.tabs[0]?.value ?? ""), i = d();
|
|
67
67
|
return (t, a) => (L(), O(e, {
|
|
68
|
-
color: H(i).getEntityConfig(H(
|
|
68
|
+
color: H(i).getEntityConfig(H(C).BUSINESS)?.color ?? null,
|
|
69
69
|
class: "relative flex-1"
|
|
70
70
|
}, {
|
|
71
71
|
default: U(() => [j("div", Xn, [j("div", Zn, [N(H(Pt))]), N(H(wn), {
|
|
@@ -171,7 +171,7 @@ var Yn = /* @__PURE__ */ P({
|
|
|
171
171
|
title: n.title,
|
|
172
172
|
description: n.description,
|
|
173
173
|
tabs: n.tabs,
|
|
174
|
-
"entity-type": H(
|
|
174
|
+
"entity-type": H(C).BUSINESS,
|
|
175
175
|
onClose: i
|
|
176
176
|
}, {
|
|
177
177
|
default: U(() => [N(Ce, { "business-uuid": n.businessUuid }, null, 8, ["business-uuid"])]),
|
|
@@ -187,7 +187,7 @@ var Yn = /* @__PURE__ */ P({
|
|
|
187
187
|
//#endregion
|
|
188
188
|
//#region src/api/mutations/business/businessBillingInformationUpsert.mutation.ts
|
|
189
189
|
function tr() {
|
|
190
|
-
return
|
|
190
|
+
return Oe({
|
|
191
191
|
queryFn: async ({ body: e, params: t }) => await be.upsertBillingInformation(t.businessUuid, e),
|
|
192
192
|
queryKeysToInvalidate: {
|
|
193
193
|
billingInformationDetail: { billingInformationUuid: (e) => e.billingInformationUuid },
|
|
@@ -258,10 +258,10 @@ var rr = { class: "border-primary/50 overflow-hidden rounded-xl border shadow-lg
|
|
|
258
258
|
}, { message: "Either email or address must be provided" });
|
|
259
259
|
function pr(e) {
|
|
260
260
|
switch (e) {
|
|
261
|
-
case
|
|
262
|
-
case
|
|
263
|
-
case
|
|
264
|
-
case
|
|
261
|
+
case S.EMAIL_ONLY: return lr;
|
|
262
|
+
case S.ADDRESS_ONLY: return ur;
|
|
263
|
+
case S.EMAIL_AND_ADDRESS: return dr;
|
|
264
|
+
case S.EMAIL_OR_ADDRESS: return fr;
|
|
265
265
|
}
|
|
266
266
|
}
|
|
267
267
|
//#endregion
|
|
@@ -285,7 +285,7 @@ var mr = /* @__PURE__ */ P({
|
|
|
285
285
|
reminderCcEmails: t.billingInformation.reminderCcEmails ?? [],
|
|
286
286
|
reminderEmail: t.billingInformation.reminderEmail
|
|
287
287
|
}),
|
|
288
|
-
schema: pr(a.getConfig().billingConfig?.businessBillingInformationRequirement ??
|
|
288
|
+
schema: pr(a.getConfig().billingConfig?.businessBillingInformationRequirement ?? S.EMAIL_OR_ADDRESS),
|
|
289
289
|
onSubmit: async (e) => {
|
|
290
290
|
await t.onSubmit(e);
|
|
291
291
|
}
|
|
@@ -402,7 +402,7 @@ var mr = /* @__PURE__ */ P({
|
|
|
402
402
|
n.show(e);
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
|
-
return (e, t) => H(a).isLoading.value || H(i).isLoading.value ? (L(), O(
|
|
405
|
+
return (e, t) => H(a).isLoading.value || H(i).isLoading.value ? (L(), O(je, {
|
|
406
406
|
key: 0,
|
|
407
407
|
class: "h-40"
|
|
408
408
|
})) : (L(), O(mr, {
|
|
@@ -421,7 +421,7 @@ var mr = /* @__PURE__ */ P({
|
|
|
421
421
|
//#endregion
|
|
422
422
|
//#region src/api/mutations/business/businessUpdate.mutation.ts
|
|
423
423
|
function gr() {
|
|
424
|
-
return
|
|
424
|
+
return Oe({
|
|
425
425
|
queryFn: async ({ body: e, params: t }) => await be.update(t.uuid, e),
|
|
426
426
|
queryKeysToInvalidate: {
|
|
427
427
|
businessIndex: {},
|
|
@@ -466,7 +466,7 @@ var _r = /* @__PURE__ */ P({
|
|
|
466
466
|
_: 3
|
|
467
467
|
}));
|
|
468
468
|
}
|
|
469
|
-
}), vr = w.enum(
|
|
469
|
+
}), vr = w.enum(Pe), yr = class {
|
|
470
470
|
static i18nKeys = g({
|
|
471
471
|
"en-US": "wise_crm.enum.language.en",
|
|
472
472
|
"fr-BE": "wise_crm.enum.language.fr",
|
|
@@ -557,7 +557,7 @@ var xr = { class: "col-span-4" }, Sr = /* @__PURE__ */ P({
|
|
|
557
557
|
label: H(n).t("wise_crm.contact.create_dialog.form.fields.address")
|
|
558
558
|
}, H(p)(H(o)), { class: "col-span-2" }), null, 16, ["label"]),
|
|
559
559
|
N(H(cn), I({ label: H(n).t("wise_crm.contact.create_dialog.form.fields.language") }, H(p)(H(f)), { "display-fn": (e) => e ? H(n).t(H(yr).getI18nKey(e)) : "" }), {
|
|
560
|
-
default: U(() => [(L(!0), A(E, null, z(Object.values(H(
|
|
560
|
+
default: U(() => [(L(!0), A(E, null, z(Object.values(H(Pe)), (e) => (L(), O(H(ln), {
|
|
561
561
|
key: e,
|
|
562
562
|
value: e
|
|
563
563
|
}, {
|
|
@@ -645,13 +645,13 @@ var xr = { class: "col-span-4" }, Sr = /* @__PURE__ */ P({
|
|
|
645
645
|
function d() {
|
|
646
646
|
i("close");
|
|
647
647
|
}
|
|
648
|
-
return (e, t) => H(l).isLoading.value ? (L(), O(
|
|
648
|
+
return (e, t) => H(l).isLoading.value ? (L(), O(je, {
|
|
649
649
|
key: 0,
|
|
650
650
|
class: "h-100"
|
|
651
651
|
})) : H(l).data.value ? (L(), O(Sr, {
|
|
652
652
|
key: 1,
|
|
653
653
|
business: H(l).data.value,
|
|
654
|
-
"custom-field-definitions": H(a).getCustomFieldDefinitionForEntity(H(
|
|
654
|
+
"custom-field-definitions": H(a).getCustomFieldDefinitionForEntity(H(C).BUSINESS),
|
|
655
655
|
"on-submit": u
|
|
656
656
|
}, null, 8, ["business", "custom-field-definitions"])) : k("", !0);
|
|
657
657
|
}
|
|
@@ -1022,9 +1022,9 @@ var Pr = /* @__PURE__ */ ze(jr, [["render", Nr]]), [Fr, Ir] = Or("TableHeaderCel
|
|
|
1022
1022
|
}
|
|
1023
1023
|
static transformEntity(e, t) {
|
|
1024
1024
|
switch (e) {
|
|
1025
|
-
case
|
|
1026
|
-
case
|
|
1027
|
-
case
|
|
1025
|
+
case Ie.BUSINESS: return this.transformBusinessEntity(t);
|
|
1026
|
+
case Ie.INDIVIDUAL: return this.transformIndividualEntity(t);
|
|
1027
|
+
case Ie.USER: return this.transformUserEntity(t);
|
|
1028
1028
|
default: throw Error(`Unsupported collection type: ${e}`);
|
|
1029
1029
|
}
|
|
1030
1030
|
}
|
|
@@ -1172,10 +1172,10 @@ var ti = /* @__PURE__ */ P({
|
|
|
1172
1172
|
Ct(c, (e) => {
|
|
1173
1173
|
l(e);
|
|
1174
1174
|
});
|
|
1175
|
-
let u = [
|
|
1175
|
+
let u = [Ie.INDIVIDUAL, Ie.BUSINESS], f = ei(D(() => s.value), D(() => u ?? [])), p = D(() => (f.data.value ?? []).map((e) => e.entity.type === "individual" ? {
|
|
1176
1176
|
id: e.entity.uuid,
|
|
1177
1177
|
address: e.entity.address ? m(e.entity.address) : null,
|
|
1178
|
-
description: o.getEntityConfig(
|
|
1178
|
+
description: o.getEntityConfig(C.INDIVIDUAL)?.name ?? `${a.t("wise_crm.search.individual_label")}`,
|
|
1179
1179
|
email: e.entity.email,
|
|
1180
1180
|
entity: e.entity,
|
|
1181
1181
|
icon: "user",
|
|
@@ -1184,7 +1184,7 @@ var ti = /* @__PURE__ */ P({
|
|
|
1184
1184
|
} : e.entity.type === "business" ? {
|
|
1185
1185
|
id: e.entity.uuid,
|
|
1186
1186
|
address: e.entity.address ? m(e.entity.address) : null,
|
|
1187
|
-
description: o.getEntityConfig(
|
|
1187
|
+
description: o.getEntityConfig(C.BUSINESS)?.name ?? `${a.t("wise_crm.search.business_label")}`,
|
|
1188
1188
|
email: null,
|
|
1189
1189
|
entity: e.entity,
|
|
1190
1190
|
icon: "building",
|
|
@@ -1366,7 +1366,7 @@ var ti = /* @__PURE__ */ P({
|
|
|
1366
1366
|
variant: "tertiary",
|
|
1367
1367
|
onClick: o
|
|
1368
1368
|
}, {
|
|
1369
|
-
default: U(() => [M(V(a(H(r).getEntityConfig(H(
|
|
1369
|
+
default: U(() => [M(V(a(H(r).getEntityConfig(H(C).BUSINESS)?.name ?? "")), 1)]),
|
|
1370
1370
|
_: 1
|
|
1371
1371
|
}), N(H(G), {
|
|
1372
1372
|
"class-config": {
|
|
@@ -1377,7 +1377,7 @@ var ti = /* @__PURE__ */ P({
|
|
|
1377
1377
|
variant: "tertiary",
|
|
1378
1378
|
onClick: s
|
|
1379
1379
|
}, {
|
|
1380
|
-
default: U(() => [M(V(a(H(r).getEntityConfig(H(
|
|
1380
|
+
default: U(() => [M(V(a(H(r).getEntityConfig(H(C).INDIVIDUAL)?.name ?? "")), 1)]),
|
|
1381
1381
|
_: 1
|
|
1382
1382
|
})]),
|
|
1383
1383
|
_: 1
|
|
@@ -1485,7 +1485,7 @@ var ti = /* @__PURE__ */ P({
|
|
|
1485
1485
|
//#endregion
|
|
1486
1486
|
//#region src/api/mutations/individual/individualCreate.mutation.ts
|
|
1487
1487
|
function Ai() {
|
|
1488
|
-
return
|
|
1488
|
+
return Oe({
|
|
1489
1489
|
queryFn: async ({ body: e }) => await ue.create(e),
|
|
1490
1490
|
queryKeysToInvalidate: { individualIndex: {} }
|
|
1491
1491
|
});
|
|
@@ -1788,10 +1788,10 @@ var Pi = /* @__PURE__ */ P({
|
|
|
1788
1788
|
o.open();
|
|
1789
1789
|
}
|
|
1790
1790
|
function l() {
|
|
1791
|
-
o.open({ entityType:
|
|
1791
|
+
o.open({ entityType: C.INDIVIDUAL });
|
|
1792
1792
|
}
|
|
1793
1793
|
function u() {
|
|
1794
|
-
o.open({ entityType:
|
|
1794
|
+
o.open({ entityType: C.BUSINESS });
|
|
1795
1795
|
}
|
|
1796
1796
|
return (e, t) => (L(), O(x, {
|
|
1797
1797
|
align: "start",
|
|
@@ -1881,7 +1881,7 @@ var Ji = /* @__PURE__ */ ze(Gi, [["render", qi]]), Yi = { class: "p-xl bg-primar
|
|
|
1881
1881
|
r("viewAll");
|
|
1882
1882
|
}
|
|
1883
1883
|
return (t, n) => (L(), O(e, {
|
|
1884
|
-
color: H(a).getEntityConfig(H(
|
|
1884
|
+
color: H(a).getEntityConfig(H(C).BUSINESS)?.color ?? null,
|
|
1885
1885
|
class: "flex-1"
|
|
1886
1886
|
}, {
|
|
1887
1887
|
default: U(() => [j("div", Yi, [
|
|
@@ -1896,7 +1896,7 @@ var Ji = /* @__PURE__ */ ze(Gi, [["render", qi]]), Yi = { class: "p-xl bg-primar
|
|
|
1896
1896
|
justify: "between",
|
|
1897
1897
|
class: "w-full"
|
|
1898
1898
|
}, {
|
|
1899
|
-
default: U(() => [j("p", Xi, V(H(a).getEntityConfig(H(
|
|
1899
|
+
default: U(() => [j("p", Xi, V(H(a).getEntityConfig(H(C).BUSINESS)?.name ?? ""), 1), N(H(G), {
|
|
1900
1900
|
variant: "tertiary",
|
|
1901
1901
|
"icon-right": "chevronRight",
|
|
1902
1902
|
onClick: c
|
|
@@ -1980,7 +1980,7 @@ var ia = /* @__PURE__ */ ze(ta, [["render", ra]]), aa = { class: "p-xl bg-primar
|
|
|
1980
1980
|
r("viewAll");
|
|
1981
1981
|
}
|
|
1982
1982
|
return (t, n) => (L(), O(e, {
|
|
1983
|
-
color: H(a).getEntityConfig(H(
|
|
1983
|
+
color: H(a).getEntityConfig(H(C).INDIVIDUAL)?.color ?? null,
|
|
1984
1984
|
class: "flex-1"
|
|
1985
1985
|
}, {
|
|
1986
1986
|
default: U(() => [j("div", aa, [
|
|
@@ -1995,7 +1995,7 @@ var ia = /* @__PURE__ */ ze(ta, [["render", ra]]), aa = { class: "p-xl bg-primar
|
|
|
1995
1995
|
justify: "between",
|
|
1996
1996
|
class: "w-full"
|
|
1997
1997
|
}, {
|
|
1998
|
-
default: U(() => [j("p", oa, V(H(a).getEntityConfig(H(
|
|
1998
|
+
default: U(() => [j("p", oa, V(H(a).getEntityConfig(H(C).INDIVIDUAL)?.name ?? ""), 1), N(H(G), {
|
|
1999
1999
|
variant: "tertiary",
|
|
2000
2000
|
"icon-right": "chevronRight",
|
|
2001
2001
|
onClick: s
|
|
@@ -2052,14 +2052,14 @@ var ia = /* @__PURE__ */ ze(ta, [["render", ra]]), aa = { class: "p-xl bg-primar
|
|
|
2052
2052
|
static fromDto(e) {
|
|
2053
2053
|
return {
|
|
2054
2054
|
uuid: e.uuid,
|
|
2055
|
-
createdAt:
|
|
2055
|
+
createdAt: Ae.fromDto(e.createdAt),
|
|
2056
2056
|
name: e.name,
|
|
2057
2057
|
type: e.type
|
|
2058
2058
|
};
|
|
2059
2059
|
}
|
|
2060
2060
|
}, ua = class {
|
|
2061
2061
|
static async getAll(e) {
|
|
2062
|
-
let t = await
|
|
2062
|
+
let t = await Le({ query: { pagination: e.pagination } });
|
|
2063
2063
|
return {
|
|
2064
2064
|
data: t.data.items.map(la.fromDto),
|
|
2065
2065
|
meta: t.data.meta
|
|
@@ -2090,7 +2090,7 @@ var fa = { class: "gap-sm flex items-center" }, pa = { class: "text-sm" }, ma =
|
|
|
2090
2090
|
onClick: t[0] ||= (e) => i(n.item)
|
|
2091
2091
|
}, {
|
|
2092
2092
|
default: U(() => [j("div", fa, [N(H(K), {
|
|
2093
|
-
icon: n.item.type === H(
|
|
2093
|
+
icon: n.item.type === H(C).BUSINESS ? "building" : "user",
|
|
2094
2094
|
class: "text-brand-500 size-4"
|
|
2095
2095
|
}, null, 8, ["icon"]), j("p", pa, V(n.item.name), 1)]), N(H(K), {
|
|
2096
2096
|
class: "size-4",
|
|
@@ -2107,7 +2107,7 @@ var fa = { class: "gap-sm flex items-center" }, pa = { class: "text-sm" }, ma =
|
|
|
2107
2107
|
setup(e) {
|
|
2108
2108
|
let t = W(), n = d(), r = da(), i = D(() => r.data.value?.data ?? []);
|
|
2109
2109
|
function a(e) {
|
|
2110
|
-
if (e.type ===
|
|
2110
|
+
if (e.type === C.INDIVIDUAL) {
|
|
2111
2111
|
n.openIndividualDetail(e.uuid);
|
|
2112
2112
|
return;
|
|
2113
2113
|
}
|
|
@@ -2139,7 +2139,7 @@ var fa = { class: "gap-sm flex items-center" }, pa = { class: "text-sm" }, ma =
|
|
|
2139
2139
|
a.open();
|
|
2140
2140
|
}
|
|
2141
2141
|
function s(e, t) {
|
|
2142
|
-
e ===
|
|
2142
|
+
e === C.INDIVIDUAL && r.openIndividualDetail(t), e === C.BUSINESS && r.openBusinessDetail(t);
|
|
2143
2143
|
}
|
|
2144
2144
|
function c() {
|
|
2145
2145
|
t.push({ name: i.getOptions().widgets?.entityStatistics?.viewAllIndividualRouteName });
|
|
@@ -2368,7 +2368,7 @@ var Va = { class: "gap-x-sm flex items-center tabular-nums" }, Ha = /* @__PURE__
|
|
|
2368
2368
|
__name: "FiltersActiveDate",
|
|
2369
2369
|
props: { filter: {} },
|
|
2370
2370
|
setup(e) {
|
|
2371
|
-
let t = e, { clearFilter: n } = Y(), r =
|
|
2371
|
+
let t = e, { clearFilter: n } = Y(), r = ke(), i = za(), a = Ba(t.filter.key), o = D(() => a.value === null ? null : r.toDate(a.value));
|
|
2372
2372
|
return (e, r) => (L(), O(Oa, {
|
|
2373
2373
|
filter: t.filter,
|
|
2374
2374
|
onClear: H(n)
|
|
@@ -2460,7 +2460,7 @@ var Ga = { class: "gap-x-sm flex items-center tabular-nums" }, Ka = /* @__PURE__
|
|
|
2460
2460
|
__name: "FiltersActiveDateRange",
|
|
2461
2461
|
props: { filter: {} },
|
|
2462
2462
|
setup(e) {
|
|
2463
|
-
let t = e, { clearFilter: n } = Y(), r =
|
|
2463
|
+
let t = e, { clearFilter: n } = Y(), r = ke(), i = Wa(), a = Ba(t.filter.key), o = D(() => {
|
|
2464
2464
|
let { from: e, until: t } = a.value;
|
|
2465
2465
|
return e === null || t === null ? null : `${r.toDate(e)} - ${r.toDate(t)}`;
|
|
2466
2466
|
});
|
|
@@ -4129,7 +4129,7 @@ var kc = { class: "bg-tertiary border-secondary asp p-sm flex size-6 items-cente
|
|
|
4129
4129
|
},
|
|
4130
4130
|
emits: ["openDeal"],
|
|
4131
4131
|
setup(e, { emit: t }) {
|
|
4132
|
-
let n = e, r = t, i = W(), a =
|
|
4132
|
+
let n = e, r = t, i = W(), a = ke(), o = D(() => {
|
|
4133
4133
|
if (n.boardColumnConfig.maxDaysInColumnBeforeHighlight === null) return !1;
|
|
4134
4134
|
let e = n.deal.createdAt, t = An.Now.zonedDateTimeISO();
|
|
4135
4135
|
return e.until(t).total("days") > n.boardColumnConfig.maxDaysInColumnBeforeHighlight;
|
|
@@ -4217,7 +4217,7 @@ var kc = { class: "bg-tertiary border-secondary asp p-sm flex size-6 items-cente
|
|
|
4217
4217
|
//#endregion
|
|
4218
4218
|
//#region src/api/mutations/deal/dealCreate.mutation.ts
|
|
4219
4219
|
function Vc() {
|
|
4220
|
-
return
|
|
4220
|
+
return Oe({
|
|
4221
4221
|
queryFn: async ({ body: e }) => await We.create(e),
|
|
4222
4222
|
queryKeysToInvalidate: { dealIndex: {} }
|
|
4223
4223
|
});
|
|
@@ -4305,7 +4305,7 @@ var Uc = { class: "gap-md flex" }, Wc = /* @__PURE__ */ P({
|
|
|
4305
4305
|
__name: "DealCreateDialogExtraInfoForm",
|
|
4306
4306
|
props: { form: {} },
|
|
4307
4307
|
setup(e) {
|
|
4308
|
-
let t = e, n = W(), r = he(D(() => t.form.state.value.clientId?.type ===
|
|
4308
|
+
let t = e, n = W(), r = he(D(() => t.form.state.value.clientId?.type === Fe.BUSINESS ? t.form.state.value.clientId.uuid : null)), i = t.form.register("name", `${n.t("wise_crm.deal.form.fields.quote")}: ${t.form.state.value.clientId?.name}`), a = t.form.register("dealLanguage", r.data.value ? r.data.value.language : Me.NL_BE), o = t.form.register("dealSource");
|
|
4309
4309
|
function s(e) {
|
|
4310
4310
|
return n.t(Ue.getI18nKey(e));
|
|
4311
4311
|
}
|
|
@@ -4323,7 +4323,7 @@ var Uc = { class: "gap-md flex" }, Wc = /* @__PURE__ */ P({
|
|
|
4323
4323
|
label: H(n).t("wise_crm.deal.form.fields.language"),
|
|
4324
4324
|
placeholder: H(n).t("wise_crm.deal.form.fields.language_placeholder")
|
|
4325
4325
|
}), {
|
|
4326
|
-
default: U(() => [(L(!0), A(E, null, z(Object.values(H(
|
|
4326
|
+
default: U(() => [(L(!0), A(E, null, z(Object.values(H(Me)), (e) => (L(), O(H(ln), {
|
|
4327
4327
|
key: e,
|
|
4328
4328
|
value: e
|
|
4329
4329
|
}, {
|
|
@@ -4337,7 +4337,7 @@ var Uc = { class: "gap-md flex" }, Wc = /* @__PURE__ */ P({
|
|
|
4337
4337
|
label: H(n).t("wise_crm.deal.form.fields.source"),
|
|
4338
4338
|
placeholder: H(n).t("wise_crm.deal.form.fields.source_placeholder")
|
|
4339
4339
|
}, H(p)(H(o))), {
|
|
4340
|
-
default: U(() => [(L(!0), A(E, null, z(Object.values(H(
|
|
4340
|
+
default: U(() => [(L(!0), A(E, null, z(Object.values(H(Ne)), (e) => (L(), O(H(ln), {
|
|
4341
4341
|
key: e,
|
|
4342
4342
|
value: e
|
|
4343
4343
|
}, {
|
|
@@ -4416,7 +4416,7 @@ var Uc = { class: "gap-md flex" }, Wc = /* @__PURE__ */ P({
|
|
|
4416
4416
|
a.setValue({
|
|
4417
4417
|
uuid: e.value,
|
|
4418
4418
|
name: e.label,
|
|
4419
|
-
type:
|
|
4419
|
+
type: Fe.BUSINESS
|
|
4420
4420
|
});
|
|
4421
4421
|
}
|
|
4422
4422
|
return (e, t) => (L(), O(y, { cols: 1 }, {
|
|
@@ -4477,11 +4477,11 @@ var Uc = { class: "gap-md flex" }, Wc = /* @__PURE__ */ P({
|
|
|
4477
4477
|
clientId: w.object({
|
|
4478
4478
|
uuid: w.uuid(),
|
|
4479
4479
|
name: w.string(),
|
|
4480
|
-
type: w.enum(
|
|
4480
|
+
type: w.enum(Fe)
|
|
4481
4481
|
}),
|
|
4482
4482
|
name: w.string().min(1),
|
|
4483
|
-
dealLanguage: w.enum(
|
|
4484
|
-
dealSource: w.enum(
|
|
4483
|
+
dealLanguage: w.enum(Me),
|
|
4484
|
+
dealSource: w.enum(Ne)
|
|
4485
4485
|
}), $c = /* @__PURE__ */ P({
|
|
4486
4486
|
__name: "DealCreateDialog",
|
|
4487
4487
|
emits: ["close"],
|
|
@@ -4512,7 +4512,7 @@ var Uc = { class: "gap-md flex" }, Wc = /* @__PURE__ */ P({
|
|
|
4512
4512
|
s.value = !1, l.setValue({
|
|
4513
4513
|
uuid: t,
|
|
4514
4514
|
name: e.name,
|
|
4515
|
-
type:
|
|
4515
|
+
type: Fe.BUSINESS
|
|
4516
4516
|
}), d.goToNext();
|
|
4517
4517
|
}
|
|
4518
4518
|
function m() {
|
|
@@ -4558,7 +4558,7 @@ function el(e) {
|
|
|
4558
4558
|
//#endregion
|
|
4559
4559
|
//#region src/api/mutations/mail-template/mailTemplateUpdate.mutation.ts
|
|
4560
4560
|
function tl() {
|
|
4561
|
-
return
|
|
4561
|
+
return Oe({
|
|
4562
4562
|
queryFn: async ({ body: e, params: t }) => await Je.update(t.mailTemplateUuid, e),
|
|
4563
4563
|
queryKeysToInvalidate: {
|
|
4564
4564
|
mailTemplateDetail: { mailTemplateUuid: (e) => e.mailTemplateUuid },
|
|
@@ -4857,7 +4857,7 @@ var nl = /* @__PURE__ */ P({
|
|
|
4857
4857
|
}
|
|
4858
4858
|
}), fl = w.object({
|
|
4859
4859
|
attachments: w.array(Qe),
|
|
4860
|
-
language: w.enum(
|
|
4860
|
+
language: w.enum(Me),
|
|
4861
4861
|
message: w.string().min(1),
|
|
4862
4862
|
replyTo: w.email().nullable(),
|
|
4863
4863
|
subject: w.string().min(1)
|
|
@@ -4972,7 +4972,7 @@ var nl = /* @__PURE__ */ P({
|
|
|
4972
4972
|
function o() {
|
|
4973
4973
|
r("cancel");
|
|
4974
4974
|
}
|
|
4975
|
-
return (e, t) => (L(), A("div", vl, [H(i).isLoading.value ? (L(), A("div", yl, [N(
|
|
4975
|
+
return (e, t) => (L(), A("div", vl, [H(i).isLoading.value ? (L(), A("div", yl, [N(je, { class: "h-150 w-full" })])) : H(i).data.value ? (L(), O(_l, {
|
|
4976
4976
|
key: 1,
|
|
4977
4977
|
"mail-template": H(i).data.value,
|
|
4978
4978
|
onClose: a,
|
|
@@ -5103,7 +5103,7 @@ var nl = /* @__PURE__ */ P({
|
|
|
5103
5103
|
//#endregion
|
|
5104
5104
|
//#region src/api/mutations/individual/individualBillingInformationUpdate.mutation.ts
|
|
5105
5105
|
function kl() {
|
|
5106
|
-
return
|
|
5106
|
+
return Oe({
|
|
5107
5107
|
queryFn: async ({ body: e, params: t }) => await ue.upsertBillingInformation(t.individualUuid, e),
|
|
5108
5108
|
queryKeysToInvalidate: {
|
|
5109
5109
|
individualIndex: {},
|
|
@@ -5145,10 +5145,10 @@ var jl = T.object({
|
|
|
5145
5145
|
}, { message: "Either email or address must be provided" });
|
|
5146
5146
|
function Fl(e) {
|
|
5147
5147
|
switch (e) {
|
|
5148
|
-
case
|
|
5149
|
-
case
|
|
5150
|
-
case
|
|
5151
|
-
case
|
|
5148
|
+
case S.EMAIL_ONLY: return jl;
|
|
5149
|
+
case S.ADDRESS_ONLY: return Ml;
|
|
5150
|
+
case S.EMAIL_AND_ADDRESS: return Nl;
|
|
5151
|
+
case S.EMAIL_OR_ADDRESS: return Pl;
|
|
5152
5152
|
}
|
|
5153
5153
|
}
|
|
5154
5154
|
//#endregion
|
|
@@ -5168,7 +5168,7 @@ var Il = /* @__PURE__ */ P({
|
|
|
5168
5168
|
invoiceCcEmails: t.billingInformation.invoiceCcEmails ?? [],
|
|
5169
5169
|
invoiceEmail: t.billingInformation.invoiceEmail
|
|
5170
5170
|
}),
|
|
5171
|
-
schema: Fl(a.getConfig().billingConfig.individualBillingInformationRequirement ??
|
|
5171
|
+
schema: Fl(a.getConfig().billingConfig.individualBillingInformationRequirement ?? S.EMAIL_OR_ADDRESS),
|
|
5172
5172
|
onSubmit: async (e) => {
|
|
5173
5173
|
await t.onSubmit(e);
|
|
5174
5174
|
}
|
|
@@ -5233,7 +5233,7 @@ var Il = /* @__PURE__ */ P({
|
|
|
5233
5233
|
n.show(e);
|
|
5234
5234
|
}
|
|
5235
5235
|
}
|
|
5236
|
-
return (e, t) => H(a).isLoading.value || H(s).isLoading.value ? (L(), O(
|
|
5236
|
+
return (e, t) => H(a).isLoading.value || H(s).isLoading.value ? (L(), O(je, {
|
|
5237
5237
|
key: 0,
|
|
5238
5238
|
class: "h-40"
|
|
5239
5239
|
})) : (L(), O(Il, {
|
|
@@ -5252,7 +5252,7 @@ var Il = /* @__PURE__ */ P({
|
|
|
5252
5252
|
//#endregion
|
|
5253
5253
|
//#region src/api/mutations/individual/individualUpdate.mutation.ts
|
|
5254
5254
|
function Rl() {
|
|
5255
|
-
return
|
|
5255
|
+
return Oe({
|
|
5256
5256
|
queryFn: async ({ body: e, params: t }) => await ue.update(t.uuid, e),
|
|
5257
5257
|
queryKeysToInvalidate: {
|
|
5258
5258
|
individualIndex: {},
|
|
@@ -5346,7 +5346,7 @@ var Bl = /* @__PURE__ */ P({
|
|
|
5346
5346
|
placeholder: H(n).t("wise_crm.contact.create_dialog.form.fields.phone")
|
|
5347
5347
|
}), null, 16, ["label", "placeholder"]),
|
|
5348
5348
|
N(H(cn), I({ label: H(n).t("wise_crm.contact.create_dialog.form.fields.language") }, H(p)(H(s)), { "display-fn": (e) => e ? H(n).t(H(yr).getI18nKey(e)) : "" }), {
|
|
5349
|
-
default: U(() => [(L(!0), A(E, null, z(Object.values(H(
|
|
5349
|
+
default: U(() => [(L(!0), A(E, null, z(Object.values(H(Pe)), (e) => (L(), O(H(ln), {
|
|
5350
5350
|
key: e,
|
|
5351
5351
|
value: e
|
|
5352
5352
|
}, {
|
|
@@ -5382,14 +5382,14 @@ var Bl = /* @__PURE__ */ P({
|
|
|
5382
5382
|
i.show(e);
|
|
5383
5383
|
}
|
|
5384
5384
|
}
|
|
5385
|
-
return (e, t) => H(o).isLoading.value ? (L(), O(
|
|
5385
|
+
return (e, t) => H(o).isLoading.value ? (L(), O(je, {
|
|
5386
5386
|
key: 0,
|
|
5387
5387
|
class: "h-100"
|
|
5388
5388
|
})) : H(o).data.value ? (L(), O(Bl, {
|
|
5389
5389
|
key: 1,
|
|
5390
5390
|
"on-submit": c,
|
|
5391
5391
|
individual: H(o).data.value,
|
|
5392
|
-
"custom-field-definitions": H(r).getCustomFieldDefinitionForEntity(H(
|
|
5392
|
+
"custom-field-definitions": H(r).getCustomFieldDefinitionForEntity(H(C).INDIVIDUAL)
|
|
5393
5393
|
}, null, 8, ["individual", "custom-field-definitions"])) : k("", !0);
|
|
5394
5394
|
}
|
|
5395
5395
|
}), Hl = Symbol("individualDialogContext");
|
|
@@ -5414,7 +5414,7 @@ var Wl = /* @__PURE__ */ P({
|
|
|
5414
5414
|
r("close");
|
|
5415
5415
|
}
|
|
5416
5416
|
return (e, t) => (L(), O($n, {
|
|
5417
|
-
"entity-type": H(
|
|
5417
|
+
"entity-type": H(C).INDIVIDUAL,
|
|
5418
5418
|
title: n.title,
|
|
5419
5419
|
description: n.description,
|
|
5420
5420
|
tabs: n.tabs,
|
|
@@ -5491,7 +5491,7 @@ function Xl(e) {
|
|
|
5491
5491
|
to: e.route.name
|
|
5492
5492
|
})) },
|
|
5493
5493
|
path: "/business/:businessUuid",
|
|
5494
|
-
component: () => import("./BusinessDetailView-
|
|
5494
|
+
component: () => import("./BusinessDetailView-Cu96XfzM.js"),
|
|
5495
5495
|
redirect: { name: e[0].route.name },
|
|
5496
5496
|
children: e.map((e) => e.route)
|
|
5497
5497
|
}];
|
|
@@ -5502,7 +5502,7 @@ function Zl(e) {
|
|
|
5502
5502
|
let t = [...e.map((e) => e.route), {
|
|
5503
5503
|
name: "deal-communication",
|
|
5504
5504
|
path: "communication",
|
|
5505
|
-
component: () => import("./DealCommunicationTabView-
|
|
5505
|
+
component: () => import("./DealCommunicationTabView-CA1mbm_c.js")
|
|
5506
5506
|
}];
|
|
5507
5507
|
return [{
|
|
5508
5508
|
name: "deal-detail",
|
|
@@ -5511,7 +5511,7 @@ function Zl(e) {
|
|
|
5511
5511
|
to: e.route.name
|
|
5512
5512
|
})) },
|
|
5513
5513
|
path: "/deals/:dealUuid",
|
|
5514
|
-
component: () => import("./DealDetailView-
|
|
5514
|
+
component: () => import("./DealDetailView-aB7D0WZu.js"),
|
|
5515
5515
|
redirect: { name: t[0].name },
|
|
5516
5516
|
children: t
|
|
5517
5517
|
}];
|
|
@@ -5526,7 +5526,7 @@ function Ql(e) {
|
|
|
5526
5526
|
to: e.route.name
|
|
5527
5527
|
})) },
|
|
5528
5528
|
path: "/individual/:individualUuid",
|
|
5529
|
-
component: () => import("./IndividualDetailView-
|
|
5529
|
+
component: () => import("./IndividualDetailView-BeCdDJDk.js"),
|
|
5530
5530
|
redirect: { name: e[0].route.name },
|
|
5531
5531
|
children: e.map((e) => e.route)
|
|
5532
5532
|
}];
|
package/dist/testing.js
CHANGED