@wisemen/wise-crm-web 2.0.0-alpha.6 → 2.0.0-alpha.8
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/{BusinessDetailView-BdD672Xc.js → BusinessDetailView-D8a2-c6x.js} +3 -3
- package/dist/{CrmDetailView.vue_vue_type_script_setup_true_lang-Cl6b9lH3.js → CrmDetailView.vue_vue_type_script_setup_true_lang-CnNcFNCP.js} +1 -1
- package/dist/{DealCommunicationTabView-FzTeJrPo.js → DealCommunicationTabView-j9epVy2E.js} +38 -38
- package/dist/{DealDetailView-DNcPhzGL.js → DealDetailView-C0osyh38.js} +154 -163
- package/dist/{IndividualDetailView-Dn5lJBjU.js → IndividualDetailView-kde5VlBp.js} +5 -5
- package/dist/{index-DhVEfWNY.js → index-B3Abn7vf.js} +4452 -4215
- package/dist/index.d.ts +40 -22
- package/dist/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/testing.js +1 -1
- package/dist/{uuid.util-B9bkU4IX.js → uuid.util-CaePLXHv.js} +1890 -2234
- package/package.json +14 -7
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { defineComponent as D, ref as T, useTemplateRef as De, openBlock as m, createElementBlock as M, createBlock as g, unref as e, withCtx as s, createVNode as l, mergeProps as q, createElementVNode as k, toDisplayString as j, nextTick as Ie, computed as P, createCommentVNode as N, Fragment as Z, createTextVNode as ee, renderList as xe, useModel as Ne, mergeModels as Se } from "vue";
|
|
2
2
|
import { useRouteParams as ke } from "@vueuse/router";
|
|
3
3
|
import { useI18n as x } from "vue-i18n";
|
|
4
|
-
import {
|
|
5
|
-
import { _ as Me } from "./CrmDetailView.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { d as F, e as L, f as Ve, E as re, g as se, h as Le, i as qe, L as Ee, j as Oe, k as K, a as Be, P as
|
|
7
|
-
import { UITextField as z, toFormField as E, UIIconButton as pe, UIDropdownMenu as
|
|
4
|
+
import { aX as ie, b1 as Fe, b3 as $e, b6 as Te } from "./uuid.util-CaePLXHv.js";
|
|
5
|
+
import { _ as Me } from "./CrmDetailView.vue_vue_type_script_setup_true_lang-CnNcFNCP.js";
|
|
6
|
+
import { d as F, e as L, f as Ve, E as re, g as se, h as Le, i as qe, L as Ee, j as Oe, k as K, a as Be, P as Qe, l as Ae, m as ae, n as Ke, I as je, o as ue, p as ze, q as O, r as ce, s as Re, t as Ge, U as He, v as Ye, u as Ze, w as Xe, x as Je, y as We, z as ea, B as aa, F as te, G as de, H as ta, J as ne, K as na, N as la, O as oa, Q as ia, R as ra, S as me, T as sa, V as ua, W as ca, X as da, Y as ma, Z as pa, $ as fa, a0 as _a, a1 as ga, a2 as ya, a3 as ba, A as ha } from "./index-B3Abn7vf.js";
|
|
7
|
+
import { UITextField as z, toFormField as E, UIIconButton as pe, UIDropdownMenu as va, UIDropdownMenuGroup as Ua, UIDropdownMenuItem as le, UIPhoneNumberField as oe, UIFormLayout as X, UIFormFieldGroup as B, UIFormFieldGrid as Q, UIFormDialog as fe, UIDialogHeader as _e, UIDialogBody as ge, UIDialogFooter as ye, UIDialogFooterSubmit as be, createAutocompleteOptions as Ca, createSelectOptions as H, UIAutocomplete as Pa, UISelect as Y, useOverlay as J, UIButton as wa, UIBadge as he } from "@wisemen/vue-core-design-system";
|
|
8
8
|
import { useForm as R } from "formango";
|
|
9
9
|
import G, { z as S } from "zod";
|
|
10
|
-
import { useMutation as $, useQuery as
|
|
11
|
-
import { Motion as
|
|
12
|
-
import { useQueryClient as
|
|
13
|
-
function
|
|
10
|
+
import { useMutation as $, useQuery as ve, useOffsetInfiniteQuery as Da, useKeysetInfiniteQuery as Ia } from "@wisemen/vue-core-api-utils";
|
|
11
|
+
import { Motion as xa } from "motion-v";
|
|
12
|
+
import { useQueryClient as Na, useMutation as Sa } from "@tanstack/vue-query";
|
|
13
|
+
function ka() {
|
|
14
14
|
return $({
|
|
15
15
|
queryFn: async ({
|
|
16
16
|
body: t,
|
|
@@ -26,7 +26,7 @@ function Fa() {
|
|
|
26
26
|
}
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function Fa() {
|
|
30
30
|
return $({
|
|
31
31
|
queryFn: async ({
|
|
32
32
|
body: t,
|
|
@@ -42,7 +42,7 @@ function $a() {
|
|
|
42
42
|
}
|
|
43
43
|
});
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function $a() {
|
|
46
46
|
return $({
|
|
47
47
|
queryFn: async ({
|
|
48
48
|
body: t,
|
|
@@ -58,7 +58,7 @@ function Ta() {
|
|
|
58
58
|
}
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function Ta() {
|
|
62
62
|
return $({
|
|
63
63
|
queryFn: async ({
|
|
64
64
|
body: t,
|
|
@@ -74,16 +74,16 @@ function Ma() {
|
|
|
74
74
|
}
|
|
75
75
|
});
|
|
76
76
|
}
|
|
77
|
-
const
|
|
77
|
+
const Ma = {
|
|
78
78
|
key: 1,
|
|
79
79
|
class: "flex justify-between"
|
|
80
|
-
},
|
|
80
|
+
}, Va = { class: "text-xl font-bold text-primary" }, La = /* @__PURE__ */ D({
|
|
81
81
|
__name: "DealDetailSidebarNameField",
|
|
82
82
|
props: {
|
|
83
83
|
deal: {}
|
|
84
84
|
},
|
|
85
85
|
setup(t) {
|
|
86
|
-
const a = t, n = x(), i = L(), o = T(!1), u = De("nameFieldContainerRef"), p =
|
|
86
|
+
const a = t, n = x(), i = L(), o = T(!1), u = De("nameFieldContainerRef"), p = Ta(), f = R({
|
|
87
87
|
schema: G.object({
|
|
88
88
|
name: G.string().min(1)
|
|
89
89
|
}),
|
|
@@ -105,14 +105,14 @@ const Va = {
|
|
|
105
105
|
}
|
|
106
106
|
}), d = f.register("name", a.deal.name);
|
|
107
107
|
async function c() {
|
|
108
|
-
o.value = !0, await Ie(),
|
|
108
|
+
o.value = !0, await Ie(), h();
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function h() {
|
|
111
111
|
u.value?.querySelector(
|
|
112
112
|
"input"
|
|
113
113
|
)?.focus();
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function v() {
|
|
116
116
|
if (!f.isDirty.value) {
|
|
117
117
|
o.value = !1;
|
|
118
118
|
return;
|
|
@@ -132,7 +132,7 @@ const Va = {
|
|
|
132
132
|
"is-loading": e(f).isSubmitting.value,
|
|
133
133
|
label: e(n).t("wise_crm.deal.detail.sidebar.name_field.label"),
|
|
134
134
|
class: "[&_input]:text-xl [&_input]:font-bold",
|
|
135
|
-
onBlur:
|
|
135
|
+
onBlur: v
|
|
136
136
|
}), null, 16, ["is-loading", "label"]),
|
|
137
137
|
y[0] || (y[0] = k("button", {
|
|
138
138
|
type: "submit",
|
|
@@ -140,8 +140,8 @@ const Va = {
|
|
|
140
140
|
}, null, -1))
|
|
141
141
|
]),
|
|
142
142
|
_: 1
|
|
143
|
-
}, 8, ["form"])) : (m(), M("div",
|
|
144
|
-
k("h2",
|
|
143
|
+
}, 8, ["form"])) : (m(), M("div", Ma, [
|
|
144
|
+
k("h2", Va, j(a.deal.name), 1),
|
|
145
145
|
l(e(pe), {
|
|
146
146
|
label: e(n).t("wise_crm.deal.detail.sidebar.name_field.edit_label"),
|
|
147
147
|
icon: e(re),
|
|
@@ -153,8 +153,8 @@ const Va = {
|
|
|
153
153
|
], 512));
|
|
154
154
|
}
|
|
155
155
|
});
|
|
156
|
-
function
|
|
157
|
-
const t =
|
|
156
|
+
function qa() {
|
|
157
|
+
const t = Na(), a = "dealDetail", n = Sa({
|
|
158
158
|
mutationFn: async (i) => {
|
|
159
159
|
const o = await F.setPrimaryContactPerson(i.dealUuid, i.contactPersonUuid);
|
|
160
160
|
if (o.isErr())
|
|
@@ -223,7 +223,7 @@ function Ea() {
|
|
|
223
223
|
execute: async (i) => await n.mutateAsync(i.params)
|
|
224
224
|
};
|
|
225
225
|
}
|
|
226
|
-
function
|
|
226
|
+
function Ea() {
|
|
227
227
|
return $({
|
|
228
228
|
queryFn: async ({
|
|
229
229
|
body: t,
|
|
@@ -237,10 +237,10 @@ function Oa() {
|
|
|
237
237
|
}
|
|
238
238
|
});
|
|
239
239
|
}
|
|
240
|
-
const
|
|
240
|
+
const Oa = { class: "flex items-start justify-between" }, Ba = { class: "flex flex-col items-start" }, Qa = {
|
|
241
241
|
key: 1,
|
|
242
242
|
class: "mt-sm text-brand-700"
|
|
243
|
-
},
|
|
243
|
+
}, Aa = { class: "-mt-2 -mr-2 flex items-center justify-end" }, Ka = { class: "grid gap-lg" }, ja = /* @__PURE__ */ D({
|
|
244
244
|
__name: "CrmDetailSidebarAccordionGenericContactPersonInfo",
|
|
245
245
|
props: {
|
|
246
246
|
contactPerson: {},
|
|
@@ -266,13 +266,13 @@ const Ba = { class: "flex items-start justify-between" }, Aa = { class: "flex fl
|
|
|
266
266
|
function c() {
|
|
267
267
|
i("delete");
|
|
268
268
|
}
|
|
269
|
-
function
|
|
269
|
+
function h() {
|
|
270
270
|
n.onToggleIsPrimary();
|
|
271
271
|
}
|
|
272
|
-
return (
|
|
272
|
+
return (v, _) => (m(), g(se, { class: "flex flex-col gap-lg" }, {
|
|
273
273
|
default: s(() => [
|
|
274
|
-
k("div",
|
|
275
|
-
k("div",
|
|
274
|
+
k("div", Oa, [
|
|
275
|
+
k("div", Ba, [
|
|
276
276
|
e(u) ? (m(), g(Le, {
|
|
277
277
|
key: 0,
|
|
278
278
|
label: `${n.contactPerson.firstName} ${n.contactPerson.lastName}`,
|
|
@@ -282,12 +282,12 @@ const Ba = { class: "flex items-start justify-between" }, Aa = { class: "flex fl
|
|
|
282
282
|
}, null, 8, ["label", "entity-type", "uuid"])) : N("", !0),
|
|
283
283
|
n.description ? (m(), M("p", Qa, j(n.description), 1)) : N("", !0)
|
|
284
284
|
]),
|
|
285
|
-
k("div",
|
|
285
|
+
k("div", Aa, [
|
|
286
286
|
l(qe, {
|
|
287
287
|
"is-active": n.contactPerson.isPrimary,
|
|
288
|
-
onClick:
|
|
288
|
+
onClick: h
|
|
289
289
|
}, null, 8, ["is-active"]),
|
|
290
|
-
l(e(
|
|
290
|
+
l(e(va), { "popover-align": "end" }, {
|
|
291
291
|
trigger: s(() => [
|
|
292
292
|
l(e(pe), {
|
|
293
293
|
icon: e(Oe),
|
|
@@ -297,7 +297,7 @@ const Ba = { class: "flex items-start justify-between" }, Aa = { class: "flex fl
|
|
|
297
297
|
}, null, 8, ["icon"])
|
|
298
298
|
]),
|
|
299
299
|
content: s(() => [
|
|
300
|
-
l(e(
|
|
300
|
+
l(e(Ua), null, {
|
|
301
301
|
default: s(() => [
|
|
302
302
|
l(e(le), {
|
|
303
303
|
config: p,
|
|
@@ -319,7 +319,7 @@ const Ba = { class: "flex items-start justify-between" }, Aa = { class: "flex fl
|
|
|
319
319
|
})
|
|
320
320
|
])
|
|
321
321
|
]),
|
|
322
|
-
k("div",
|
|
322
|
+
k("div", Ka, [
|
|
323
323
|
n.contactPerson.email !== null ? (m(), g(K, {
|
|
324
324
|
key: 0,
|
|
325
325
|
label: n.contactPerson.email,
|
|
@@ -328,12 +328,12 @@ const Ba = { class: "flex items-start justify-between" }, Aa = { class: "flex fl
|
|
|
328
328
|
n.contactPerson.mobilePhone !== null ? (m(), g(K, {
|
|
329
329
|
key: 1,
|
|
330
330
|
label: n.contactPerson.mobilePhone,
|
|
331
|
-
icon: e(
|
|
331
|
+
icon: e(Qe)
|
|
332
332
|
}, null, 8, ["label", "icon"])) : N("", !0),
|
|
333
333
|
n.contactPerson.phone !== null ? (m(), g(K, {
|
|
334
334
|
key: 2,
|
|
335
335
|
label: n.contactPerson.phone,
|
|
336
|
-
icon: e(
|
|
336
|
+
icon: e(Ae)
|
|
337
337
|
}, null, 8, ["label", "icon"])) : N("", !0)
|
|
338
338
|
])
|
|
339
339
|
]),
|
|
@@ -341,7 +341,7 @@ const Ba = { class: "flex items-start justify-between" }, Aa = { class: "flex fl
|
|
|
341
341
|
}));
|
|
342
342
|
}
|
|
343
343
|
});
|
|
344
|
-
function
|
|
344
|
+
function za() {
|
|
345
345
|
return $({
|
|
346
346
|
queryFn: async ({
|
|
347
347
|
body: t,
|
|
@@ -359,7 +359,7 @@ function Ra() {
|
|
|
359
359
|
}
|
|
360
360
|
});
|
|
361
361
|
}
|
|
362
|
-
const
|
|
362
|
+
const W = /* @__PURE__ */ D({
|
|
363
363
|
__name: "ContactPersonFormContactField",
|
|
364
364
|
props: {
|
|
365
365
|
email: {},
|
|
@@ -398,7 +398,7 @@ const X = /* @__PURE__ */ D({
|
|
|
398
398
|
}), null, 16, ["label", "placeholder"])
|
|
399
399
|
], 64));
|
|
400
400
|
}
|
|
401
|
-
}),
|
|
401
|
+
}), Ra = /* @__PURE__ */ D({
|
|
402
402
|
__name: "DealContactPersonCreateExistingForm",
|
|
403
403
|
props: {
|
|
404
404
|
form: {}
|
|
@@ -406,16 +406,16 @@ const X = /* @__PURE__ */ D({
|
|
|
406
406
|
emits: ["createNewContactPerson"],
|
|
407
407
|
setup(t, { emit: a }) {
|
|
408
408
|
const n = t, i = a, o = x(), u = n.form.register("email"), p = n.form.register("phone"), f = n.form.register("mobile"), d = n.form.register("existingContactPerson"), c = T(null);
|
|
409
|
-
async function v
|
|
410
|
-
if (c.value =
|
|
409
|
+
async function h(v) {
|
|
410
|
+
if (c.value = v, d.setValue(v?.uuid ?? null), v === null)
|
|
411
411
|
return;
|
|
412
|
-
const _ = await je.getByUuid(
|
|
412
|
+
const _ = await je.getByUuid(v.uuid);
|
|
413
413
|
if (_.isErr())
|
|
414
414
|
return;
|
|
415
415
|
const y = _.value;
|
|
416
416
|
u.setValue(y.email), p.setValue(y.phone), f.setValue(y.mobilePhone);
|
|
417
417
|
}
|
|
418
|
-
return (
|
|
418
|
+
return (v, _) => (m(), g(e(X), null, {
|
|
419
419
|
default: s(() => [
|
|
420
420
|
l(e(B), null, {
|
|
421
421
|
default: s(() => [
|
|
@@ -423,7 +423,7 @@ const X = /* @__PURE__ */ D({
|
|
|
423
423
|
modelValue: c.value,
|
|
424
424
|
"onUpdate:modelValue": [
|
|
425
425
|
_[0] || (_[0] = (y) => c.value = y),
|
|
426
|
-
|
|
426
|
+
h
|
|
427
427
|
],
|
|
428
428
|
label: e(o).t("wise_crm.contact.create_dialog.form.fields.contact_person"),
|
|
429
429
|
onCreateNew: _[1] || (_[1] = (y) => i("createNewContactPerson"))
|
|
@@ -433,13 +433,13 @@ const X = /* @__PURE__ */ D({
|
|
|
433
433
|
}),
|
|
434
434
|
l(e(B), null, {
|
|
435
435
|
default: s(() => [
|
|
436
|
-
l(e(
|
|
436
|
+
l(e(Q), {
|
|
437
437
|
sm: 1,
|
|
438
438
|
lg: 1,
|
|
439
439
|
variant: "card"
|
|
440
440
|
}, {
|
|
441
441
|
default: s(() => [
|
|
442
|
-
l(
|
|
442
|
+
l(W, {
|
|
443
443
|
email: e(u),
|
|
444
444
|
"mobile-phone": e(f),
|
|
445
445
|
phone: e(p)
|
|
@@ -473,18 +473,18 @@ const X = /* @__PURE__ */ D({
|
|
|
473
473
|
}), null, 16, ["label", "placeholder"])
|
|
474
474
|
], 64));
|
|
475
475
|
}
|
|
476
|
-
}),
|
|
476
|
+
}), Ga = /* @__PURE__ */ D({
|
|
477
477
|
__name: "DealContactPersonCreateNewForm",
|
|
478
478
|
props: {
|
|
479
479
|
form: {}
|
|
480
480
|
},
|
|
481
481
|
setup(t) {
|
|
482
482
|
const a = t, n = a.form.register("firstName"), i = a.form.register("lastName"), o = a.form.register("email"), u = a.form.register("mobilePhone"), p = a.form.register("phone");
|
|
483
|
-
return (f, d) => (m(), g(e(
|
|
483
|
+
return (f, d) => (m(), g(e(X), null, {
|
|
484
484
|
default: s(() => [
|
|
485
485
|
l(e(B), null, {
|
|
486
486
|
default: s(() => [
|
|
487
|
-
l(e(
|
|
487
|
+
l(e(Q), {
|
|
488
488
|
sm: 1,
|
|
489
489
|
lg: 2
|
|
490
490
|
}, {
|
|
@@ -501,13 +501,13 @@ const X = /* @__PURE__ */ D({
|
|
|
501
501
|
}),
|
|
502
502
|
l(e(B), null, {
|
|
503
503
|
default: s(() => [
|
|
504
|
-
l(e(
|
|
504
|
+
l(e(Q), {
|
|
505
505
|
sm: 1,
|
|
506
506
|
lg: 1,
|
|
507
507
|
variant: "card"
|
|
508
508
|
}, {
|
|
509
509
|
default: s(() => [
|
|
510
|
-
l(
|
|
510
|
+
l(W, {
|
|
511
511
|
email: e(o),
|
|
512
512
|
"mobile-phone": e(u),
|
|
513
513
|
phone: e(p)
|
|
@@ -525,12 +525,12 @@ const X = /* @__PURE__ */ D({
|
|
|
525
525
|
_: 1
|
|
526
526
|
}));
|
|
527
527
|
}
|
|
528
|
-
}),
|
|
528
|
+
}), Ha = G.object({
|
|
529
529
|
email: G.email().nullable(),
|
|
530
530
|
existingContactPerson: ze,
|
|
531
531
|
mobile: O.nullable(),
|
|
532
532
|
phone: O.nullable()
|
|
533
|
-
}),
|
|
533
|
+
}), Ya = S.object({
|
|
534
534
|
email: S.email().min(1).nullable(),
|
|
535
535
|
firstName: S.string().min(1),
|
|
536
536
|
lastName: S.string().min(1),
|
|
@@ -541,7 +541,7 @@ const X = /* @__PURE__ */ D({
|
|
|
541
541
|
code: S.ZodIssueCode.custom,
|
|
542
542
|
message: ce.global.t("wise_crm.form.errors.at_least_one")
|
|
543
543
|
});
|
|
544
|
-
}),
|
|
544
|
+
}), Za = /* @__PURE__ */ D({
|
|
545
545
|
__name: "DealContactPersonCreateDialog",
|
|
546
546
|
props: {
|
|
547
547
|
dealUuid: {},
|
|
@@ -549,8 +549,8 @@ const X = /* @__PURE__ */ D({
|
|
|
549
549
|
},
|
|
550
550
|
emits: ["close", "createNewContactPerson"],
|
|
551
551
|
setup(t, { emit: a }) {
|
|
552
|
-
const n = t, i = a, o = x(), u = L(), p =
|
|
553
|
-
schema:
|
|
552
|
+
const n = t, i = a, o = x(), u = L(), p = za(), f = Re(), d = T(n.isCreatingNewContactPerson), c = R({
|
|
553
|
+
schema: Ya,
|
|
554
554
|
onSubmit: async (r) => {
|
|
555
555
|
try {
|
|
556
556
|
const U = await f.execute({
|
|
@@ -587,8 +587,8 @@ const X = /* @__PURE__ */ D({
|
|
|
587
587
|
u.show(U);
|
|
588
588
|
}
|
|
589
589
|
}
|
|
590
|
-
}),
|
|
591
|
-
schema:
|
|
590
|
+
}), h = R({
|
|
591
|
+
schema: Ha,
|
|
592
592
|
onSubmit: async (r) => {
|
|
593
593
|
await y(
|
|
594
594
|
r.existingContactPerson,
|
|
@@ -599,8 +599,8 @@ const X = /* @__PURE__ */ D({
|
|
|
599
599
|
}
|
|
600
600
|
);
|
|
601
601
|
}
|
|
602
|
-
}),
|
|
603
|
-
() => d.value ? c :
|
|
602
|
+
}), v = P(
|
|
603
|
+
() => d.value ? c : h
|
|
604
604
|
);
|
|
605
605
|
function _() {
|
|
606
606
|
d.value = !0;
|
|
@@ -629,7 +629,7 @@ const X = /* @__PURE__ */ D({
|
|
|
629
629
|
i("createNewContactPerson", r), i("close");
|
|
630
630
|
}
|
|
631
631
|
return (r, U) => (m(), g(e(fe), {
|
|
632
|
-
form:
|
|
632
|
+
form: v.value,
|
|
633
633
|
size: "md",
|
|
634
634
|
onClose: b
|
|
635
635
|
}, {
|
|
@@ -640,12 +640,12 @@ const X = /* @__PURE__ */ D({
|
|
|
640
640
|
}, null, 8, ["title", "description"]),
|
|
641
641
|
l(e(ge), null, {
|
|
642
642
|
default: s(() => [
|
|
643
|
-
d.value ? (m(), g(
|
|
643
|
+
d.value ? (m(), g(Ga, {
|
|
644
644
|
key: 0,
|
|
645
645
|
form: e(c)
|
|
646
|
-
}, null, 8, ["form"])) : (m(), g(
|
|
646
|
+
}, null, 8, ["form"])) : (m(), g(Ra, {
|
|
647
647
|
key: 1,
|
|
648
|
-
form: e(
|
|
648
|
+
form: e(h),
|
|
649
649
|
onCreateNewContactPerson: _
|
|
650
650
|
}, null, 8, ["form"]))
|
|
651
651
|
]),
|
|
@@ -654,7 +654,7 @@ const X = /* @__PURE__ */ D({
|
|
|
654
654
|
l(e(ye), null, {
|
|
655
655
|
right: s(() => [
|
|
656
656
|
l(e(be), {
|
|
657
|
-
"is-loading":
|
|
657
|
+
"is-loading": v.value.isSubmitting.value,
|
|
658
658
|
label: e(o).t("wise_crm.shared.create")
|
|
659
659
|
}, null, 8, ["is-loading", "label"])
|
|
660
660
|
]),
|
|
@@ -665,7 +665,7 @@ const X = /* @__PURE__ */ D({
|
|
|
665
665
|
}, 8, ["form"]));
|
|
666
666
|
}
|
|
667
667
|
});
|
|
668
|
-
function
|
|
668
|
+
function Xa() {
|
|
669
669
|
return $({
|
|
670
670
|
queryFn: async ({
|
|
671
671
|
body: t,
|
|
@@ -683,8 +683,8 @@ function Wa() {
|
|
|
683
683
|
}
|
|
684
684
|
});
|
|
685
685
|
}
|
|
686
|
-
function
|
|
687
|
-
return
|
|
686
|
+
function Ja(t, a) {
|
|
687
|
+
return ve("dealContactPersonDetail", {
|
|
688
688
|
params: {
|
|
689
689
|
contactPersonUuid: a,
|
|
690
690
|
dealUuid: t
|
|
@@ -692,7 +692,7 @@ function Xa(t, a) {
|
|
|
692
692
|
queryFn: () => F.getContactPerson(t.value, a.value)
|
|
693
693
|
});
|
|
694
694
|
}
|
|
695
|
-
const
|
|
695
|
+
const Wa = S.object({
|
|
696
696
|
email: S.email().min(1).nullable(),
|
|
697
697
|
firstName: S.string().min(1),
|
|
698
698
|
lastName: S.string().min(1),
|
|
@@ -703,7 +703,7 @@ const et = S.object({
|
|
|
703
703
|
code: S.ZodIssueCode.custom,
|
|
704
704
|
message: ce.global.t("wise_crm.form.errors.at_least_one")
|
|
705
705
|
});
|
|
706
|
-
}),
|
|
706
|
+
}), et = /* @__PURE__ */ D({
|
|
707
707
|
__name: "DealContactPersonUpdateDialog",
|
|
708
708
|
props: {
|
|
709
709
|
contactPersonUuid: {},
|
|
@@ -711,7 +711,7 @@ const et = S.object({
|
|
|
711
711
|
},
|
|
712
712
|
emits: ["close"],
|
|
713
713
|
setup(t, { emit: a }) {
|
|
714
|
-
const n = t, i = a, o = x(), u = L(), p =
|
|
714
|
+
const n = t, i = a, o = x(), u = L(), p = Xa(), f = Ja(
|
|
715
715
|
P(() => n.dealUuid),
|
|
716
716
|
P(() => n.contactPersonUuid)
|
|
717
717
|
), d = P(() => f.result.value.isOk() ? f.result.value.getValue() : null), c = R({
|
|
@@ -722,11 +722,11 @@ const et = S.object({
|
|
|
722
722
|
mobilePhone: d.value.mobilePhone,
|
|
723
723
|
phone: d.value.phone
|
|
724
724
|
}),
|
|
725
|
-
schema:
|
|
725
|
+
schema: Wa,
|
|
726
726
|
onSubmit: async (I) => {
|
|
727
727
|
await r(I);
|
|
728
728
|
}
|
|
729
|
-
}),
|
|
729
|
+
}), h = c.register("firstName"), v = c.register("lastName"), _ = c.register("email"), y = c.register("mobilePhone"), b = c.register("phone");
|
|
730
730
|
async function r(I) {
|
|
731
731
|
try {
|
|
732
732
|
await p.execute({
|
|
@@ -738,14 +738,14 @@ const et = S.object({
|
|
|
738
738
|
dealUuid: n.dealUuid
|
|
739
739
|
}
|
|
740
740
|
}), i("close");
|
|
741
|
-
} catch (
|
|
742
|
-
u.show(
|
|
741
|
+
} catch (A) {
|
|
742
|
+
u.show(A);
|
|
743
743
|
}
|
|
744
744
|
}
|
|
745
745
|
function U() {
|
|
746
746
|
i("close");
|
|
747
747
|
}
|
|
748
|
-
return (I,
|
|
748
|
+
return (I, A) => (m(), g(e(fe), {
|
|
749
749
|
form: e(c),
|
|
750
750
|
size: "md",
|
|
751
751
|
onClose: U
|
|
@@ -757,18 +757,18 @@ const et = S.object({
|
|
|
757
757
|
}, null, 8, ["title", "description"]),
|
|
758
758
|
d.value !== null ? (m(), g(e(ge), { key: 0 }, {
|
|
759
759
|
default: s(() => [
|
|
760
|
-
l(e(
|
|
760
|
+
l(e(X), null, {
|
|
761
761
|
default: s(() => [
|
|
762
762
|
l(e(B), null, {
|
|
763
763
|
default: s(() => [
|
|
764
|
-
l(e(
|
|
764
|
+
l(e(Q), {
|
|
765
765
|
sm: 1,
|
|
766
766
|
lg: 2
|
|
767
767
|
}, {
|
|
768
768
|
default: s(() => [
|
|
769
769
|
l(Ue, {
|
|
770
|
-
"first-name": e(
|
|
771
|
-
"last-name": e(
|
|
770
|
+
"first-name": e(h),
|
|
771
|
+
"last-name": e(v)
|
|
772
772
|
}, null, 8, ["first-name", "last-name"])
|
|
773
773
|
]),
|
|
774
774
|
_: 1
|
|
@@ -780,13 +780,13 @@ const et = S.object({
|
|
|
780
780
|
title: e(o).t("wise_crm.shared.contact_info")
|
|
781
781
|
}, {
|
|
782
782
|
default: s(() => [
|
|
783
|
-
l(e(
|
|
783
|
+
l(e(Q), {
|
|
784
784
|
sm: 1,
|
|
785
785
|
lg: 1,
|
|
786
786
|
variant: "card"
|
|
787
787
|
}, {
|
|
788
788
|
default: s(() => [
|
|
789
|
-
l(
|
|
789
|
+
l(W, {
|
|
790
790
|
email: e(_),
|
|
791
791
|
"mobile-phone": e(y),
|
|
792
792
|
phone: e(b)
|
|
@@ -818,8 +818,8 @@ const et = S.object({
|
|
|
818
818
|
}, 8, ["form"]));
|
|
819
819
|
}
|
|
820
820
|
});
|
|
821
|
-
function
|
|
822
|
-
return
|
|
821
|
+
function at(t) {
|
|
822
|
+
return Da("userIndex", {
|
|
823
823
|
params: t,
|
|
824
824
|
queryFn: (a) => He.getAll({
|
|
825
825
|
pagination: a,
|
|
@@ -827,19 +827,19 @@ function tt(t) {
|
|
|
827
827
|
})
|
|
828
828
|
});
|
|
829
829
|
}
|
|
830
|
-
const
|
|
830
|
+
const tt = { class: "p-lg" }, nt = /* @__PURE__ */ D({
|
|
831
831
|
__name: "DealDetailSidebarGeneralInfo",
|
|
832
832
|
props: {
|
|
833
833
|
deal: {}
|
|
834
834
|
},
|
|
835
835
|
setup(t) {
|
|
836
|
-
const a = t, n = x(), i = L(), o =
|
|
836
|
+
const a = t, n = x(), i = L(), o = ka(), u = Fa(), p = $a(), f = Ye({
|
|
837
837
|
persistInUrl: !1
|
|
838
|
-
}), d =
|
|
838
|
+
}), d = at({
|
|
839
839
|
params: {
|
|
840
840
|
search: f.debouncedSearch
|
|
841
841
|
}
|
|
842
|
-
}), c = T(a.deal.dealLanguage),
|
|
842
|
+
}), c = T(a.deal.dealLanguage), h = T(a.deal.dealSource), v = T(
|
|
843
843
|
a.deal.owner ? {
|
|
844
844
|
uuid: a.deal.owner.uuid,
|
|
845
845
|
name: a.deal.owner.name
|
|
@@ -849,16 +849,16 @@ const nt = { class: "p-lg" }, lt = /* @__PURE__ */ D({
|
|
|
849
849
|
uuid: w.uuid,
|
|
850
850
|
name: `${w.firstName} ${w.lastName}`
|
|
851
851
|
}));
|
|
852
|
-
return
|
|
852
|
+
return Ca(C);
|
|
853
853
|
});
|
|
854
854
|
function y(C) {
|
|
855
|
-
return n.t(
|
|
855
|
+
return n.t(We.getI18nKey(C));
|
|
856
856
|
}
|
|
857
857
|
function b(C) {
|
|
858
858
|
return n.t(ea.getI18nKey(C));
|
|
859
859
|
}
|
|
860
860
|
const r = H(Object.values(Fe)), U = H(Object.values($e)), I = Ze();
|
|
861
|
-
function
|
|
861
|
+
function A(C) {
|
|
862
862
|
f.updateSearch(C);
|
|
863
863
|
}
|
|
864
864
|
async function Ce(C) {
|
|
@@ -877,7 +877,7 @@ const nt = { class: "p-lg" }, lt = /* @__PURE__ */ D({
|
|
|
877
877
|
}
|
|
878
878
|
}
|
|
879
879
|
async function Pe(C) {
|
|
880
|
-
if (
|
|
880
|
+
if (h.value = C, C !== null)
|
|
881
881
|
try {
|
|
882
882
|
await u.execute({
|
|
883
883
|
body: {
|
|
@@ -892,7 +892,7 @@ const nt = { class: "p-lg" }, lt = /* @__PURE__ */ D({
|
|
|
892
892
|
}
|
|
893
893
|
}
|
|
894
894
|
async function we(C) {
|
|
895
|
-
if (
|
|
895
|
+
if (v.value = C, C !== null)
|
|
896
896
|
try {
|
|
897
897
|
await p.execute({
|
|
898
898
|
body: {
|
|
@@ -910,12 +910,12 @@ const nt = { class: "p-lg" }, lt = /* @__PURE__ */ D({
|
|
|
910
910
|
l(se, null, {
|
|
911
911
|
default: s(() => [
|
|
912
912
|
k("form", null, [
|
|
913
|
-
l(
|
|
913
|
+
l(Xe, { cols: 1 }, {
|
|
914
914
|
default: s(() => [
|
|
915
|
-
l(e(
|
|
916
|
-
modelValue:
|
|
915
|
+
l(e(Pa), {
|
|
916
|
+
modelValue: v.value,
|
|
917
917
|
"onUpdate:modelValue": [
|
|
918
|
-
w[0] || (w[0] = (V) =>
|
|
918
|
+
w[0] || (w[0] = (V) => v.value = V),
|
|
919
919
|
we
|
|
920
920
|
],
|
|
921
921
|
items: _.value,
|
|
@@ -924,7 +924,7 @@ const nt = { class: "p-lg" }, lt = /* @__PURE__ */ D({
|
|
|
924
924
|
"search-mode": "remote",
|
|
925
925
|
placeholder: "Select deal owner",
|
|
926
926
|
label: "Deal owner",
|
|
927
|
-
"onUpdate:search":
|
|
927
|
+
"onUpdate:search": A
|
|
928
928
|
}, null, 8, ["modelValue", "items", "display-fn", "is-loading"]),
|
|
929
929
|
l(e(Y), {
|
|
930
930
|
modelValue: c.value,
|
|
@@ -939,9 +939,9 @@ const nt = { class: "p-lg" }, lt = /* @__PURE__ */ D({
|
|
|
939
939
|
items: e(r)
|
|
940
940
|
}, null, 8, ["modelValue", "label", "placeholder", "is-loading", "items"]),
|
|
941
941
|
l(e(Y), {
|
|
942
|
-
modelValue:
|
|
942
|
+
modelValue: h.value,
|
|
943
943
|
"onUpdate:modelValue": [
|
|
944
|
-
w[2] || (w[2] = (V) =>
|
|
944
|
+
w[2] || (w[2] = (V) => h.value = V),
|
|
945
945
|
Pe
|
|
946
946
|
],
|
|
947
947
|
"display-fn": b,
|
|
@@ -957,31 +957,31 @@ const nt = { class: "p-lg" }, lt = /* @__PURE__ */ D({
|
|
|
957
957
|
]),
|
|
958
958
|
_: 1
|
|
959
959
|
}),
|
|
960
|
-
k("div",
|
|
960
|
+
k("div", tt, [
|
|
961
961
|
l(K, {
|
|
962
962
|
label: e(n).t("wise_crm.deal.sidebar.created_at", {
|
|
963
963
|
date: e(I).toDate(a.deal.createdAt.toPlainDate())
|
|
964
964
|
}),
|
|
965
|
-
icon: e(
|
|
965
|
+
icon: e(Je),
|
|
966
966
|
"text-color": "text-quaternary",
|
|
967
967
|
class: "text-sm"
|
|
968
968
|
}, null, 8, ["label", "icon"])
|
|
969
969
|
])
|
|
970
970
|
]));
|
|
971
971
|
}
|
|
972
|
-
}),
|
|
972
|
+
}), lt = /* @__PURE__ */ D({
|
|
973
973
|
__name: "DealDetailSidebarOverviewContent",
|
|
974
974
|
props: {
|
|
975
975
|
deal: {}
|
|
976
976
|
},
|
|
977
977
|
setup(t) {
|
|
978
|
-
const a = t, n = x(), i = L(), o =
|
|
979
|
-
function
|
|
978
|
+
const a = t, n = x(), i = L(), o = qa(), u = Ea(), p = J(), f = p.create(Za), d = p.create(et), c = P(() => a.deal.contactPersons.length > 0);
|
|
979
|
+
function h() {
|
|
980
980
|
f.open({
|
|
981
981
|
dealUuid: a.deal.uuid
|
|
982
982
|
});
|
|
983
983
|
}
|
|
984
|
-
function
|
|
984
|
+
function v(b) {
|
|
985
985
|
d.open({
|
|
986
986
|
contactPersonUuid: b,
|
|
987
987
|
dealUuid: a.deal.uuid
|
|
@@ -1017,7 +1017,7 @@ const nt = { class: "p-lg" }, lt = /* @__PURE__ */ D({
|
|
|
1017
1017
|
value: "general-info"
|
|
1018
1018
|
}, {
|
|
1019
1019
|
default: s(() => [
|
|
1020
|
-
l(
|
|
1020
|
+
l(nt, {
|
|
1021
1021
|
deal: a.deal
|
|
1022
1022
|
}, null, 8, ["deal"])
|
|
1023
1023
|
]),
|
|
@@ -1028,7 +1028,7 @@ const nt = { class: "p-lg" }, lt = /* @__PURE__ */ D({
|
|
|
1028
1028
|
label: e(n).t("wise_crm.info_dialog.sidebar.overview.contact_persons_label"),
|
|
1029
1029
|
icon: e(ta),
|
|
1030
1030
|
value: "contact-persons",
|
|
1031
|
-
onAdd:
|
|
1031
|
+
onAdd: h
|
|
1032
1032
|
}, {
|
|
1033
1033
|
actions: s(() => [
|
|
1034
1034
|
c.value ? N("", !0) : (m(), g(na, {
|
|
@@ -1036,32 +1036,32 @@ const nt = { class: "p-lg" }, lt = /* @__PURE__ */ D({
|
|
|
1036
1036
|
label: e(n).t("wise_crm.info_dialog.sidebar.overview.contact_persons_label"),
|
|
1037
1037
|
icon: e(ne),
|
|
1038
1038
|
class: "z-1",
|
|
1039
|
-
onClick:
|
|
1039
|
+
onClick: h
|
|
1040
1040
|
}, null, 8, ["label", "icon"]))
|
|
1041
1041
|
]),
|
|
1042
1042
|
default: s(() => [
|
|
1043
|
-
(m(!0), M(Z, null, xe(a.deal.contactPersons, (U) => (m(), g(e(
|
|
1043
|
+
(m(!0), M(Z, null, xe(a.deal.contactPersons, (U) => (m(), g(e(xa), {
|
|
1044
1044
|
key: U.uuid,
|
|
1045
1045
|
"layout-id": U.uuid
|
|
1046
1046
|
}, {
|
|
1047
1047
|
default: s(() => [
|
|
1048
|
-
l(
|
|
1048
|
+
l(ja, {
|
|
1049
1049
|
"contact-person": U,
|
|
1050
1050
|
"on-toggle-is-primary": () => y(U.uuid),
|
|
1051
1051
|
description: U.phone,
|
|
1052
|
-
onUpdate: (I) =>
|
|
1052
|
+
onUpdate: (I) => v(U.uuid),
|
|
1053
1053
|
onDelete: (I) => _(U.uuid)
|
|
1054
1054
|
}, null, 8, ["contact-person", "on-toggle-is-primary", "description", "onUpdate", "onDelete"])
|
|
1055
1055
|
]),
|
|
1056
1056
|
_: 2
|
|
1057
1057
|
}, 1032, ["layout-id"]))), 128)),
|
|
1058
|
-
c.value ? (m(), g(e(
|
|
1058
|
+
c.value ? (m(), g(e(wa), {
|
|
1059
1059
|
key: 0,
|
|
1060
1060
|
"icon-left": e(ne),
|
|
1061
1061
|
label: e(n).t("wise_crm.shared.add"),
|
|
1062
1062
|
variant: "tertiary",
|
|
1063
1063
|
size: "sm",
|
|
1064
|
-
onClick:
|
|
1064
|
+
onClick: h
|
|
1065
1065
|
}, null, 8, ["icon-left", "label"])) : N("", !0)
|
|
1066
1066
|
]),
|
|
1067
1067
|
_: 1
|
|
@@ -1071,7 +1071,7 @@ const nt = { class: "p-lg" }, lt = /* @__PURE__ */ D({
|
|
|
1071
1071
|
}));
|
|
1072
1072
|
}
|
|
1073
1073
|
});
|
|
1074
|
-
function
|
|
1074
|
+
function ot() {
|
|
1075
1075
|
return $({
|
|
1076
1076
|
queryFn: async ({
|
|
1077
1077
|
body: t,
|
|
@@ -1085,15 +1085,15 @@ function it() {
|
|
|
1085
1085
|
}
|
|
1086
1086
|
});
|
|
1087
1087
|
}
|
|
1088
|
-
function
|
|
1089
|
-
return
|
|
1088
|
+
function it(t, a) {
|
|
1089
|
+
return ve("boardColumnsTransition", {
|
|
1090
1090
|
params: {
|
|
1091
1091
|
boardColumnUuid: t
|
|
1092
1092
|
},
|
|
1093
1093
|
queryFn: () => la.getTransitions(t.value, a.value)
|
|
1094
1094
|
});
|
|
1095
1095
|
}
|
|
1096
|
-
const
|
|
1096
|
+
const rt = /* @__PURE__ */ D({
|
|
1097
1097
|
__name: "DealDetailSidebarTransitionSelect",
|
|
1098
1098
|
props: /* @__PURE__ */ Se({
|
|
1099
1099
|
deal: {}
|
|
@@ -1105,10 +1105,10 @@ const st = /* @__PURE__ */ D({
|
|
|
1105
1105
|
}),
|
|
1106
1106
|
emits: ["update:modelValue"],
|
|
1107
1107
|
setup(t) {
|
|
1108
|
-
const a = t, n = x(), i = oa(), u =
|
|
1108
|
+
const a = t, n = x(), i = oa(), u = J().create(ia), p = Ne(t, "modelValue"), f = L(), d = ot(), c = it(
|
|
1109
1109
|
P(() => p.value.toColumnUuid),
|
|
1110
1110
|
P(() => i.getOptions().deals?.allowedTransitionTriggerTypes ?? [])
|
|
1111
|
-
),
|
|
1111
|
+
), h = P(() => (c.result.value.isOk() ? c.result.value.getValue() : []).flatMap((r) => r.triggers.length === 0 ? [
|
|
1112
1112
|
r
|
|
1113
1113
|
] : r.triggers.map((U) => ({
|
|
1114
1114
|
...r,
|
|
@@ -1117,10 +1117,10 @@ const st = /* @__PURE__ */ D({
|
|
|
1117
1117
|
U
|
|
1118
1118
|
]
|
|
1119
1119
|
}))));
|
|
1120
|
-
function
|
|
1120
|
+
function v(b) {
|
|
1121
1121
|
return b?.toColumnDisplayName ?? "-";
|
|
1122
1122
|
}
|
|
1123
|
-
const _ = P(() => H(
|
|
1123
|
+
const _ = P(() => H(h.value));
|
|
1124
1124
|
async function y(b) {
|
|
1125
1125
|
if (b.triggers.length !== 0) {
|
|
1126
1126
|
if (b.triggers[0]?.triggerType === Te.EMAIL) {
|
|
@@ -1153,7 +1153,7 @@ const st = /* @__PURE__ */ D({
|
|
|
1153
1153
|
color: p.value?.toColumnColor ?? null
|
|
1154
1154
|
}, {
|
|
1155
1155
|
default: s(() => [
|
|
1156
|
-
|
|
1156
|
+
h.value.length === 0 ? (m(), g(e(he), {
|
|
1157
1157
|
key: 0,
|
|
1158
1158
|
"class-config": {
|
|
1159
1159
|
root: "text-nowrap"
|
|
@@ -1165,11 +1165,12 @@ const st = /* @__PURE__ */ D({
|
|
|
1165
1165
|
key: 1,
|
|
1166
1166
|
"model-value": p.value,
|
|
1167
1167
|
"is-loading": e(d).isLoading.value,
|
|
1168
|
-
"display-fn":
|
|
1168
|
+
"display-fn": v,
|
|
1169
1169
|
items: _.value,
|
|
1170
1170
|
"is-label-hidden": !0,
|
|
1171
1171
|
placeholder: e(n).t("wise_crm.deal.transition.placeholder"),
|
|
1172
1172
|
label: e(n).t("wise_crm.deal.transition.label"),
|
|
1173
|
+
class: "w-20",
|
|
1173
1174
|
size: "sm",
|
|
1174
1175
|
"onUpdate:modelValue": y
|
|
1175
1176
|
}, null, 8, ["model-value", "is-loading", "items", "placeholder", "label"]))
|
|
@@ -1178,7 +1179,7 @@ const st = /* @__PURE__ */ D({
|
|
|
1178
1179
|
}, 8, ["color"]));
|
|
1179
1180
|
}
|
|
1180
1181
|
});
|
|
1181
|
-
function
|
|
1182
|
+
function st() {
|
|
1182
1183
|
return $({
|
|
1183
1184
|
queryFn: async ({
|
|
1184
1185
|
body: t,
|
|
@@ -1191,8 +1192,8 @@ function ut() {
|
|
|
1191
1192
|
}
|
|
1192
1193
|
});
|
|
1193
1194
|
}
|
|
1194
|
-
function
|
|
1195
|
-
return
|
|
1195
|
+
function ut(t, a) {
|
|
1196
|
+
return Ia("noteDealIndex", {
|
|
1196
1197
|
params: {
|
|
1197
1198
|
params: a?.params
|
|
1198
1199
|
},
|
|
@@ -1201,13 +1202,13 @@ function ct(t, a) {
|
|
|
1201
1202
|
}, t.value)
|
|
1202
1203
|
});
|
|
1203
1204
|
}
|
|
1204
|
-
const
|
|
1205
|
+
const ct = /* @__PURE__ */ D({
|
|
1205
1206
|
__name: "DealDialogSidebarNotesContent",
|
|
1206
1207
|
props: {
|
|
1207
1208
|
deal: {}
|
|
1208
1209
|
},
|
|
1209
1210
|
setup(t) {
|
|
1210
|
-
const a = t, i =
|
|
1211
|
+
const a = t, i = J().create(sa), o = L(), u = st(), p = ua(), f = ut(
|
|
1211
1212
|
P(() => a.deal.uuid)
|
|
1212
1213
|
), d = P(() => f.result.value.isOk() ? f.result.value.getValue().data : []);
|
|
1213
1214
|
async function c(_) {
|
|
@@ -1218,7 +1219,7 @@ const dt = /* @__PURE__ */ D({
|
|
|
1218
1219
|
}
|
|
1219
1220
|
});
|
|
1220
1221
|
}
|
|
1221
|
-
async function
|
|
1222
|
+
async function h(_) {
|
|
1222
1223
|
try {
|
|
1223
1224
|
await p.execute({
|
|
1224
1225
|
params: {
|
|
@@ -1229,7 +1230,7 @@ const dt = /* @__PURE__ */ D({
|
|
|
1229
1230
|
o.show(y);
|
|
1230
1231
|
}
|
|
1231
1232
|
}
|
|
1232
|
-
function
|
|
1233
|
+
function v(_) {
|
|
1233
1234
|
i.open({
|
|
1234
1235
|
note: _
|
|
1235
1236
|
});
|
|
@@ -1240,11 +1241,11 @@ const dt = /* @__PURE__ */ D({
|
|
|
1240
1241
|
"on-submit": c,
|
|
1241
1242
|
"has-next-page": e(f).hasNextPage.value,
|
|
1242
1243
|
onNext: y[0] || (y[0] = (b) => e(f).fetchNextPage()),
|
|
1243
|
-
onDelete:
|
|
1244
|
-
onUpdate:
|
|
1244
|
+
onDelete: h,
|
|
1245
|
+
onUpdate: v
|
|
1245
1246
|
}, null, 8, ["is-loading", "notes", "has-next-page"]));
|
|
1246
1247
|
}
|
|
1247
|
-
}),
|
|
1248
|
+
}), dt = { class: "flex h-full flex-1 flex-col" }, mt = { class: "flex flex-col gap-xl rounded-2xl border border-primary p-xl" }, pt = { class: "flex w-full flex-wrap items-center justify-between gap-sm" }, ft = /* @__PURE__ */ D({
|
|
1248
1249
|
__name: "DealDetailSidebar",
|
|
1249
1250
|
props: {
|
|
1250
1251
|
deal: {}
|
|
@@ -1270,35 +1271,25 @@ const dt = /* @__PURE__ */ D({
|
|
|
1270
1271
|
},
|
|
1271
1272
|
{
|
|
1272
1273
|
icon: ma,
|
|
1273
|
-
label: n.t("wise_crm.shared.activity"),
|
|
1274
|
-
value: "activity"
|
|
1275
|
-
/* ACTIVITY */
|
|
1276
|
-
},
|
|
1277
|
-
{
|
|
1278
|
-
icon: pa,
|
|
1279
1274
|
label: n.t("wise_crm.shared.notes"),
|
|
1280
1275
|
value: "notes"
|
|
1281
1276
|
/* NOTES */
|
|
1282
1277
|
}
|
|
1283
1278
|
]);
|
|
1284
|
-
return (f, d) => (m(), M("div",
|
|
1285
|
-
k("div",
|
|
1286
|
-
l(
|
|
1279
|
+
return (f, d) => (m(), M("div", dt, [
|
|
1280
|
+
k("div", mt, [
|
|
1281
|
+
l(La, {
|
|
1287
1282
|
deal: a.deal
|
|
1288
1283
|
}, null, 8, ["deal"]),
|
|
1289
|
-
k("div",
|
|
1290
|
-
l(
|
|
1284
|
+
k("div", pt, [
|
|
1285
|
+
l(pa, {
|
|
1291
1286
|
onClick: d[0] || (d[0] = (c) => e(i).openBusinessDetail(
|
|
1292
1287
|
a.deal.client.uuid
|
|
1293
1288
|
))
|
|
1294
1289
|
}, {
|
|
1295
1290
|
default: s(() => [
|
|
1296
|
-
l(e(
|
|
1297
|
-
|
|
1298
|
-
icon: "shrink-0 size-4",
|
|
1299
|
-
root: "text-nowrap"
|
|
1300
|
-
},
|
|
1301
|
-
icon: e(_a),
|
|
1291
|
+
l(e(he), {
|
|
1292
|
+
icon: e(fa),
|
|
1302
1293
|
label: a.deal.client.name,
|
|
1303
1294
|
variant: "translucent",
|
|
1304
1295
|
color: "brand"
|
|
@@ -1306,23 +1297,23 @@ const dt = /* @__PURE__ */ D({
|
|
|
1306
1297
|
]),
|
|
1307
1298
|
_: 1
|
|
1308
1299
|
}),
|
|
1309
|
-
l(
|
|
1300
|
+
l(rt, {
|
|
1310
1301
|
modelValue: u.value,
|
|
1311
1302
|
"onUpdate:modelValue": d[1] || (d[1] = (c) => u.value = c),
|
|
1312
1303
|
deal: a.deal
|
|
1313
1304
|
}, null, 8, ["modelValue", "deal"])
|
|
1314
1305
|
])
|
|
1315
1306
|
]),
|
|
1316
|
-
l(
|
|
1307
|
+
l(_a, {
|
|
1317
1308
|
modelValue: o.value,
|
|
1318
1309
|
"onUpdate:modelValue": d[2] || (d[2] = (c) => o.value = c),
|
|
1319
1310
|
tabs: p.value
|
|
1320
1311
|
}, {
|
|
1321
1312
|
default: s(() => [
|
|
1322
|
-
o.value === "overview" ? (m(), g(
|
|
1313
|
+
o.value === "overview" ? (m(), g(lt, {
|
|
1323
1314
|
key: 0,
|
|
1324
1315
|
deal: a.deal
|
|
1325
|
-
}, null, 8, ["deal"])) : o.value === "notes" ? (m(), g(
|
|
1316
|
+
}, null, 8, ["deal"])) : o.value === "notes" ? (m(), g(ct, {
|
|
1326
1317
|
key: 1,
|
|
1327
1318
|
deal: a.deal
|
|
1328
1319
|
}, null, 8, ["deal"])) : N("", !0)
|
|
@@ -1331,25 +1322,25 @@ const dt = /* @__PURE__ */ D({
|
|
|
1331
1322
|
}, 8, ["modelValue", "tabs"])
|
|
1332
1323
|
]));
|
|
1333
1324
|
}
|
|
1334
|
-
}),
|
|
1325
|
+
}), _t = /* @__PURE__ */ D({
|
|
1335
1326
|
__name: "DealDetailSidebarProvider",
|
|
1336
1327
|
props: {
|
|
1337
1328
|
dealUuid: {}
|
|
1338
1329
|
},
|
|
1339
1330
|
setup(t) {
|
|
1340
|
-
const a = t, n =
|
|
1331
|
+
const a = t, n = ga(
|
|
1341
1332
|
P(() => a.dealUuid)
|
|
1342
1333
|
), i = x();
|
|
1343
|
-
return (o, u) => (m(), g(
|
|
1334
|
+
return (o, u) => (m(), g(ya, null, {
|
|
1344
1335
|
default: s(() => [
|
|
1345
|
-
e(n).isError.value ? (m(), g(
|
|
1336
|
+
e(n).isError.value ? (m(), g(ba, {
|
|
1346
1337
|
key: 0,
|
|
1347
1338
|
message: e(i).t("error.deal_details.description"),
|
|
1348
1339
|
title: e(i).t("error.deal_details.title")
|
|
1349
1340
|
}, null, 8, ["message", "title"])) : e(n).isLoading.value ? (m(), g(ha, {
|
|
1350
1341
|
key: 1,
|
|
1351
1342
|
class: "h-full"
|
|
1352
|
-
})) : e(n).result.value.isOk() ? (m(), g(
|
|
1343
|
+
})) : e(n).result.value.isOk() ? (m(), g(ft, {
|
|
1353
1344
|
key: e(n).result.value.getValue().boardColumn.uuid,
|
|
1354
1345
|
deal: e(n).result.value.getValue()
|
|
1355
1346
|
}, null, 8, ["deal"])) : N("", !0)
|
|
@@ -1357,7 +1348,7 @@ const dt = /* @__PURE__ */ D({
|
|
|
1357
1348
|
_: 1
|
|
1358
1349
|
}));
|
|
1359
1350
|
}
|
|
1360
|
-
}),
|
|
1351
|
+
}), Nt = /* @__PURE__ */ D({
|
|
1361
1352
|
__name: "DealDetailView",
|
|
1362
1353
|
props: {
|
|
1363
1354
|
tabs: {}
|
|
@@ -1376,12 +1367,12 @@ const dt = /* @__PURE__ */ D({
|
|
|
1376
1367
|
tabs: o.value
|
|
1377
1368
|
}, {
|
|
1378
1369
|
sidebar: s(() => [
|
|
1379
|
-
l(
|
|
1370
|
+
l(_t, { "deal-uuid": e(i) }, null, 8, ["deal-uuid"])
|
|
1380
1371
|
]),
|
|
1381
1372
|
_: 1
|
|
1382
1373
|
}, 8, ["entity-type", "tabs"]));
|
|
1383
1374
|
}
|
|
1384
1375
|
});
|
|
1385
1376
|
export {
|
|
1386
|
-
|
|
1377
|
+
Nt as default
|
|
1387
1378
|
};
|