@wisemen/wise-crm-web 2.0.0-alpha.39 → 2.0.0-alpha.40
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-BtA-vvUT.js → BusinessDetailView-CzYmbWDI.js} +2 -2
- package/dist/{CrmDetailView.vue_vue_type_script_setup_true_lang-xCc-CnYZ.js → CrmDetailView.vue_vue_type_script_setup_true_lang-Cnn_HfDr.js} +1 -1
- package/dist/{DealCommunicationTabView-CQLIouhC.js → DealCommunicationTabView-DJ3O_RbV.js} +1 -1
- package/dist/{DealDetailView-B3BWJm2T.js → DealDetailView-DC4_nsQh.js} +170 -171
- package/dist/{IndividualDetailView-Be8w3l_5.js → IndividualDetailView-B7tg3Zc7.js} +2 -2
- package/dist/{index-DC7UPeB1.js → index-BM5Kw4_U.js} +1134 -1132
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineComponent as x, openBlock as d, createBlock as g, unref as e, ref as O, useTemplateRef as ke, createElementBlock as V, withCtx as r, createVNode as o, mergeProps as A, createElementVNode as S, toDisplayString as G, nextTick as Te, computed as w, createCommentVNode as
|
|
1
|
+
import { defineComponent as x, openBlock as d, createBlock as g, unref as e, ref as O, useTemplateRef as ke, createElementBlock as V, withCtx as r, createVNode as o, mergeProps as A, createElementVNode as S, toDisplayString as G, nextTick as Te, computed as w, createCommentVNode as F, Fragment as le, createTextVNode as se, renderList as Fe, useModel as $e, mergeModels as Me } from "vue";
|
|
2
2
|
import { useRouteParams as Ee } from "@vueuse/router";
|
|
3
3
|
import { useI18n as I } from "vue-i18n";
|
|
4
4
|
import { br as _e, bw as Oe, by as Ve, bB as Le } from "./uuid.util-SYJY4Bt5.js";
|
|
5
|
-
import { _ as qe } from "./CrmDetailView.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { f as
|
|
7
|
-
import { useToast as we, useOverlay as J, UIConfirmDialog as
|
|
8
|
-
import { useMutation as
|
|
5
|
+
import { _ as qe } from "./CrmDetailView.vue_vue_type_script_setup_true_lang-Cnn_HfDr.js";
|
|
6
|
+
import { f as T, h as ge, i as Ae, j as $, k as E, u as q, l as Qe, E as ye, C as be, n as Be, o as Ke, p as Re, q as je, r as z, g as ze, J as Ge, s as Ye, t as ue, v as Ze, I as He, w as he, x as B, y as Je, z as ve, B as Xe, G as We, U as ea, H as aa, e as ta, K as na, Q as la, L as oa, N as ia, O as ra, P as ce, R as Ce, S as sa, V as de, X as ua, Y as ca, Z as da, $ as ma, a0 as Ue, a1 as fa, a2 as pa, a3 as _a, a4 as ga, a5 as ya, a6 as ba, a7 as ha, a8 as va, a9 as Ca, aa as Ua, A as wa } from "./index-BM5Kw4_U.js";
|
|
7
|
+
import { useToast as we, useOverlay as J, UIConfirmDialog as Pa, UIIconButton as oe, UITextField as Y, toFormField as Q, UIDropdownMenu as Da, UIDropdownMenuGroup as xa, UIDropdownMenuItem as me, UIPhoneNumberField as fe, UIFormLayout as ie, UIFormFieldGroup as K, UIFormFieldGrid as R, UIFormDialog as Pe, UIDialogHeader as De, UIForm as pe, UIDialogBody as X, UIDialogFooter as W, UIDialogFooterSubmit as ee, createAutocompleteOptions as Ia, createSelectOptions as ae, UIAutocomplete as Na, UISelect as te, UIButton as Sa, UIBadge as ne } from "@wisemen/vue-core-design-system";
|
|
8
|
+
import { useMutation as M, useQuery as xe, useOffsetInfiniteQuery as ka, useKeysetInfiniteQuery as Ta } from "@wisemen/vue-core-api-utils";
|
|
9
9
|
import { useForm as Z } from "formango";
|
|
10
10
|
import H, { z as N } from "zod";
|
|
11
11
|
import { Motion as Fa } from "motion-v";
|
|
12
12
|
import { useQueryClient as $a, useMutation as Ma } from "@tanstack/vue-query";
|
|
13
13
|
function Ea() {
|
|
14
|
-
return
|
|
14
|
+
return M({
|
|
15
15
|
queryFn: async ({
|
|
16
16
|
params: n
|
|
17
|
-
}) => await
|
|
17
|
+
}) => await T.delete(n.dealUuid),
|
|
18
18
|
queryKeysToInvalidate: {
|
|
19
19
|
dealIndex: {}
|
|
20
20
|
}
|
|
@@ -26,7 +26,7 @@ const Oa = /* @__PURE__ */ x({
|
|
|
26
26
|
deal: {}
|
|
27
27
|
},
|
|
28
28
|
setup(n) {
|
|
29
|
-
const a = n, t = I(), l = we(), i = ge(), c = J().create(
|
|
29
|
+
const a = n, t = I(), l = we(), i = ge(), c = J().create(Pa), m = Ea();
|
|
30
30
|
function f() {
|
|
31
31
|
c.open({
|
|
32
32
|
title: t.t("wise_crm.deal.detail.sidebar.delete.title"),
|
|
@@ -49,7 +49,7 @@ const Oa = /* @__PURE__ */ x({
|
|
|
49
49
|
}
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
|
-
return (u,
|
|
52
|
+
return (u, v) => (d(), g(e(oe), {
|
|
53
53
|
label: e(t).t("wise_crm.deal.detail.sidebar.delete.label"),
|
|
54
54
|
icon: e(Ae),
|
|
55
55
|
variant: "tertiary",
|
|
@@ -59,13 +59,13 @@ const Oa = /* @__PURE__ */ x({
|
|
|
59
59
|
}
|
|
60
60
|
});
|
|
61
61
|
function Va() {
|
|
62
|
-
const n =
|
|
63
|
-
return
|
|
62
|
+
const n = $();
|
|
63
|
+
return M({
|
|
64
64
|
queryFn: async ({
|
|
65
65
|
body: a,
|
|
66
66
|
params: t
|
|
67
67
|
}) => {
|
|
68
|
-
const l = await
|
|
68
|
+
const l = await T.update(t.dealUuid, {
|
|
69
69
|
dealLanguage: a.dealLanguage
|
|
70
70
|
});
|
|
71
71
|
return l.isOk() && n.notifyDealChanged(t.dealUuid, E.DETAILS), l;
|
|
@@ -79,13 +79,13 @@ function Va() {
|
|
|
79
79
|
});
|
|
80
80
|
}
|
|
81
81
|
function La() {
|
|
82
|
-
const n =
|
|
83
|
-
return
|
|
82
|
+
const n = $();
|
|
83
|
+
return M({
|
|
84
84
|
queryFn: async ({
|
|
85
85
|
body: a,
|
|
86
86
|
params: t
|
|
87
87
|
}) => {
|
|
88
|
-
const l = await
|
|
88
|
+
const l = await T.update(t.dealUuid, {
|
|
89
89
|
dealSource: a.dealSource
|
|
90
90
|
});
|
|
91
91
|
return l.isOk() && n.notifyDealChanged(t.dealUuid, E.DETAILS), l;
|
|
@@ -99,13 +99,13 @@ function La() {
|
|
|
99
99
|
});
|
|
100
100
|
}
|
|
101
101
|
function qa() {
|
|
102
|
-
const n =
|
|
103
|
-
return
|
|
102
|
+
const n = $();
|
|
103
|
+
return M({
|
|
104
104
|
queryFn: async ({
|
|
105
105
|
body: a,
|
|
106
106
|
params: t
|
|
107
107
|
}) => {
|
|
108
|
-
const l = await
|
|
108
|
+
const l = await T.update(t.dealUuid, {
|
|
109
109
|
dealOwner: a.dealOwner
|
|
110
110
|
});
|
|
111
111
|
return l.isOk() && n.notifyDealChanged(t.dealUuid, E.DETAILS), l;
|
|
@@ -119,13 +119,13 @@ function qa() {
|
|
|
119
119
|
});
|
|
120
120
|
}
|
|
121
121
|
function Aa() {
|
|
122
|
-
const n =
|
|
123
|
-
return
|
|
122
|
+
const n = $();
|
|
123
|
+
return M({
|
|
124
124
|
queryFn: async ({
|
|
125
125
|
body: a,
|
|
126
126
|
params: t
|
|
127
127
|
}) => {
|
|
128
|
-
const l = await
|
|
128
|
+
const l = await T.update(t.dealUuid, {
|
|
129
129
|
name: a.name
|
|
130
130
|
});
|
|
131
131
|
return l.isOk() && n.notifyDealChanged(t.dealUuid, E.DETAILS), l;
|
|
@@ -169,14 +169,14 @@ const Qa = {
|
|
|
169
169
|
}
|
|
170
170
|
}), f = m.register("name", a.deal.name);
|
|
171
171
|
async function u() {
|
|
172
|
-
i.value = !0, await Te(),
|
|
172
|
+
i.value = !0, await Te(), v();
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function v() {
|
|
175
175
|
s.value?.querySelector(
|
|
176
176
|
"input"
|
|
177
177
|
)?.focus();
|
|
178
178
|
}
|
|
179
|
-
function
|
|
179
|
+
function y() {
|
|
180
180
|
if (!m.isDirty.value) {
|
|
181
181
|
i.value = !1;
|
|
182
182
|
return;
|
|
@@ -196,7 +196,7 @@ const Qa = {
|
|
|
196
196
|
"is-loading": e(m).isSubmitting.value,
|
|
197
197
|
label: e(t).t("wise_crm.deal.detail.sidebar.name_field.label"),
|
|
198
198
|
class: "[&_input]:text-xl [&_input]:font-bold",
|
|
199
|
-
onBlur:
|
|
199
|
+
onBlur: y
|
|
200
200
|
}), null, 16, ["is-loading", "label"]),
|
|
201
201
|
b[0] || (b[0] = S("button", {
|
|
202
202
|
type: "submit",
|
|
@@ -218,9 +218,9 @@ const Qa = {
|
|
|
218
218
|
}
|
|
219
219
|
});
|
|
220
220
|
function Ra() {
|
|
221
|
-
const n = $a(), a =
|
|
221
|
+
const n = $a(), a = $(), t = "dealDetail", l = Ma({
|
|
222
222
|
mutationFn: async (i) => {
|
|
223
|
-
const s = await
|
|
223
|
+
const s = await T.setPrimaryContactPerson(i.dealUuid, i.contactPersonUuid);
|
|
224
224
|
if (s.isErr())
|
|
225
225
|
throw s.error;
|
|
226
226
|
a.notifyDealChanged(i.dealUuid, E.CONTACT_PERSON);
|
|
@@ -289,13 +289,13 @@ function Ra() {
|
|
|
289
289
|
};
|
|
290
290
|
}
|
|
291
291
|
function ja() {
|
|
292
|
-
const n =
|
|
293
|
-
return
|
|
292
|
+
const n = $();
|
|
293
|
+
return M({
|
|
294
294
|
queryFn: async ({
|
|
295
295
|
body: a,
|
|
296
296
|
params: t
|
|
297
297
|
}) => {
|
|
298
|
-
const l = await
|
|
298
|
+
const l = await T.unlinkContactPerson(t.dealUuid, a.contactPersonUuid);
|
|
299
299
|
return l.isOk() && n.notifyDealChanged(t.dealUuid, E.CONTACT_PERSON), l;
|
|
300
300
|
},
|
|
301
301
|
queryKeysToInvalidate: {
|
|
@@ -335,10 +335,10 @@ const za = { class: "flex items-start justify-between" }, Ga = { class: "flex fl
|
|
|
335
335
|
function u() {
|
|
336
336
|
l("delete");
|
|
337
337
|
}
|
|
338
|
-
function
|
|
338
|
+
function v() {
|
|
339
339
|
t.onToggleIsPrimary();
|
|
340
340
|
}
|
|
341
|
-
return (
|
|
341
|
+
return (y, _) => (d(), g(be, { class: "flex flex-col gap-lg" }, {
|
|
342
342
|
default: r(() => [
|
|
343
343
|
S("div", za, [
|
|
344
344
|
S("div", Ga, [
|
|
@@ -348,15 +348,15 @@ const za = { class: "flex items-start justify-between" }, Ga = { class: "flex fl
|
|
|
348
348
|
"entity-type": e(_e).INDIVIDUAL,
|
|
349
349
|
uuid: e(s),
|
|
350
350
|
class: "-m-xs"
|
|
351
|
-
}, null, 8, ["label", "entity-type", "uuid"])) :
|
|
352
|
-
t.description ? (d(), V("p", Ya, G(t.description), 1)) :
|
|
351
|
+
}, null, 8, ["label", "entity-type", "uuid"])) : F("", !0),
|
|
352
|
+
t.description ? (d(), V("p", Ya, G(t.description), 1)) : F("", !0)
|
|
353
353
|
]),
|
|
354
354
|
S("div", Za, [
|
|
355
355
|
o(Ke, {
|
|
356
356
|
"is-active": t.contactPerson.isPrimary,
|
|
357
|
-
onClick:
|
|
357
|
+
onClick: v
|
|
358
358
|
}, null, 8, ["is-active"]),
|
|
359
|
-
o(e(
|
|
359
|
+
o(e(Da), { "popover-align": "end" }, {
|
|
360
360
|
trigger: r(() => [
|
|
361
361
|
o(e(oe), {
|
|
362
362
|
icon: e(je),
|
|
@@ -392,17 +392,17 @@ const za = { class: "flex items-start justify-between" }, Ga = { class: "flex fl
|
|
|
392
392
|
key: 0,
|
|
393
393
|
label: t.contactPerson.email,
|
|
394
394
|
icon: e(ze)
|
|
395
|
-
}, null, 8, ["label", "icon"])) :
|
|
395
|
+
}, null, 8, ["label", "icon"])) : F("", !0),
|
|
396
396
|
t.contactPerson.mobilePhone !== null ? (d(), g(z, {
|
|
397
397
|
key: 1,
|
|
398
398
|
label: t.contactPerson.mobilePhone,
|
|
399
399
|
icon: e(Ge)
|
|
400
|
-
}, null, 8, ["label", "icon"])) :
|
|
400
|
+
}, null, 8, ["label", "icon"])) : F("", !0),
|
|
401
401
|
t.contactPerson.phone !== null ? (d(), g(z, {
|
|
402
402
|
key: 2,
|
|
403
403
|
label: t.contactPerson.phone,
|
|
404
404
|
icon: e(Ye)
|
|
405
|
-
}, null, 8, ["label", "icon"])) :
|
|
405
|
+
}, null, 8, ["label", "icon"])) : F("", !0)
|
|
406
406
|
])
|
|
407
407
|
]),
|
|
408
408
|
_: 1
|
|
@@ -410,13 +410,13 @@ const za = { class: "flex items-start justify-between" }, Ga = { class: "flex fl
|
|
|
410
410
|
}
|
|
411
411
|
});
|
|
412
412
|
function Xa() {
|
|
413
|
-
const n =
|
|
414
|
-
return
|
|
413
|
+
const n = $();
|
|
414
|
+
return M({
|
|
415
415
|
queryFn: async ({
|
|
416
416
|
body: a,
|
|
417
417
|
params: t
|
|
418
418
|
}) => {
|
|
419
|
-
const l = await
|
|
419
|
+
const l = await T.linkContactPerson(
|
|
420
420
|
t.dealUuid,
|
|
421
421
|
a.contactPersonUuid,
|
|
422
422
|
a.contactInfo
|
|
@@ -478,16 +478,16 @@ const re = /* @__PURE__ */ x({
|
|
|
478
478
|
emits: ["createNewContactPerson"],
|
|
479
479
|
setup(n, { emit: a }) {
|
|
480
480
|
const t = n, l = a, i = I(), s = t.form.register("email"), c = t.form.register("phone"), m = t.form.register("mobile"), f = t.form.register("existingContactPerson"), u = O(null);
|
|
481
|
-
async function y
|
|
482
|
-
if (u.value =
|
|
481
|
+
async function v(y) {
|
|
482
|
+
if (u.value = y, f.setValue(y?.uuid ?? null), y === null)
|
|
483
483
|
return;
|
|
484
|
-
const _ = await He.getByUuid(
|
|
484
|
+
const _ = await He.getByUuid(y.uuid);
|
|
485
485
|
if (_.isErr())
|
|
486
486
|
return;
|
|
487
487
|
const b = _.value;
|
|
488
488
|
s.setValue(b.email), c.setValue(b.phone), m.setValue(b.mobilePhone);
|
|
489
489
|
}
|
|
490
|
-
return (
|
|
490
|
+
return (y, _) => (d(), g(e(ie), null, {
|
|
491
491
|
default: r(() => [
|
|
492
492
|
o(e(K), null, {
|
|
493
493
|
default: r(() => [
|
|
@@ -495,7 +495,7 @@ const re = /* @__PURE__ */ x({
|
|
|
495
495
|
modelValue: u.value,
|
|
496
496
|
"onUpdate:modelValue": [
|
|
497
497
|
_[0] || (_[0] = (b) => u.value = b),
|
|
498
|
-
|
|
498
|
+
v
|
|
499
499
|
],
|
|
500
500
|
label: e(i).t("wise_crm.contact.create_dialog.form.fields.contact_person"),
|
|
501
501
|
onCreateNew: _[1] || (_[1] = (b) => l("createNewContactPerson"))
|
|
@@ -621,11 +621,11 @@ const re = /* @__PURE__ */ x({
|
|
|
621
621
|
},
|
|
622
622
|
emits: ["close", "createNewContactPerson"],
|
|
623
623
|
setup(n, { emit: a }) {
|
|
624
|
-
const t = n, l = a, i = I(), s = q(), c = we(), m = Xa(), f = Xe(), u = O(t.isCreatingNewContactPerson),
|
|
624
|
+
const t = n, l = a, i = I(), s = q(), c = we(), m = Xa(), f = Xe(), u = O(t.isCreatingNewContactPerson), v = Z({
|
|
625
625
|
schema: tt,
|
|
626
626
|
onSubmit: async (p) => {
|
|
627
627
|
try {
|
|
628
|
-
const
|
|
628
|
+
const C = await f.execute({
|
|
629
629
|
body: {
|
|
630
630
|
email: p.email,
|
|
631
631
|
firstName: p.firstName,
|
|
@@ -634,15 +634,15 @@ const re = /* @__PURE__ */ x({
|
|
|
634
634
|
phone: p.phone
|
|
635
635
|
}
|
|
636
636
|
});
|
|
637
|
-
if (
|
|
638
|
-
s.show(
|
|
637
|
+
if (C.isErr()) {
|
|
638
|
+
s.show(C.error);
|
|
639
639
|
return;
|
|
640
640
|
}
|
|
641
|
-
const
|
|
641
|
+
const k = C.value;
|
|
642
642
|
if (!t.isCreatingNewContactPerson) {
|
|
643
643
|
const j = await m.execute({
|
|
644
644
|
body: {
|
|
645
|
-
contactPersonUuid:
|
|
645
|
+
contactPersonUuid: k,
|
|
646
646
|
contactInfo: {
|
|
647
647
|
email: p.email,
|
|
648
648
|
mobilePhone: p.mobilePhone,
|
|
@@ -658,21 +658,21 @@ const re = /* @__PURE__ */ x({
|
|
|
658
658
|
return;
|
|
659
659
|
}
|
|
660
660
|
}
|
|
661
|
-
|
|
661
|
+
h({
|
|
662
662
|
label: `${p.firstName} ${p.lastName}`,
|
|
663
|
-
value:
|
|
663
|
+
value: k
|
|
664
664
|
});
|
|
665
|
-
} catch (
|
|
666
|
-
s.show(
|
|
665
|
+
} catch (C) {
|
|
666
|
+
s.show(C);
|
|
667
667
|
}
|
|
668
668
|
},
|
|
669
669
|
onSubmitError: () => {
|
|
670
670
|
c.unableToSave();
|
|
671
671
|
}
|
|
672
|
-
}),
|
|
672
|
+
}), y = Z({
|
|
673
673
|
schema: at,
|
|
674
674
|
onSubmit: async (p) => {
|
|
675
|
-
await
|
|
675
|
+
await P(
|
|
676
676
|
p.existingContactPerson,
|
|
677
677
|
{
|
|
678
678
|
email: p.email,
|
|
@@ -685,61 +685,61 @@ const re = /* @__PURE__ */ x({
|
|
|
685
685
|
c.unableToSave();
|
|
686
686
|
}
|
|
687
687
|
}), _ = w(
|
|
688
|
-
() => u.value ?
|
|
688
|
+
() => u.value ? v : y
|
|
689
689
|
);
|
|
690
690
|
function b() {
|
|
691
691
|
u.value = !0;
|
|
692
692
|
}
|
|
693
|
-
async function
|
|
693
|
+
async function P(p, C) {
|
|
694
694
|
if (p !== null)
|
|
695
695
|
try {
|
|
696
696
|
await m.execute({
|
|
697
697
|
body: {
|
|
698
698
|
contactPersonUuid: p,
|
|
699
|
-
contactInfo:
|
|
699
|
+
contactInfo: C
|
|
700
700
|
},
|
|
701
701
|
params: {
|
|
702
702
|
dealUuid: t.dealUuid
|
|
703
703
|
}
|
|
704
|
-
}),
|
|
705
|
-
} catch (
|
|
706
|
-
s.show(
|
|
704
|
+
}), h();
|
|
705
|
+
} catch (k) {
|
|
706
|
+
s.show(k);
|
|
707
707
|
}
|
|
708
708
|
}
|
|
709
|
-
function
|
|
709
|
+
function h(p) {
|
|
710
710
|
if (p === void 0) {
|
|
711
711
|
l("close");
|
|
712
712
|
return;
|
|
713
713
|
}
|
|
714
714
|
l("createNewContactPerson", p), l("close");
|
|
715
715
|
}
|
|
716
|
-
return (p,
|
|
716
|
+
return (p, C) => (d(), g(e(Pe), {
|
|
717
717
|
form: _.value,
|
|
718
718
|
size: "md",
|
|
719
719
|
"render-own-form-component": "",
|
|
720
|
-
onClose:
|
|
720
|
+
onClose: h
|
|
721
721
|
}, {
|
|
722
722
|
default: r(() => [
|
|
723
|
-
o(e(
|
|
723
|
+
o(e(De), {
|
|
724
724
|
title: e(i).t("wise_crm.info_dialog.contact_person_create.title"),
|
|
725
725
|
description: e(i).t("wise_crm.info_dialog.contact_person_create.description")
|
|
726
726
|
}, null, 8, ["title", "description"]),
|
|
727
727
|
u.value ? (d(), g(e(pe), {
|
|
728
728
|
key: 0,
|
|
729
|
-
form: e(
|
|
729
|
+
form: e(v),
|
|
730
730
|
"prompt-on-unsaved-changes": !1
|
|
731
731
|
}, {
|
|
732
732
|
default: r(() => [
|
|
733
733
|
o(e(X), null, {
|
|
734
734
|
default: r(() => [
|
|
735
|
-
o(et, { form: e(
|
|
735
|
+
o(et, { form: e(v) }, null, 8, ["form"])
|
|
736
736
|
]),
|
|
737
737
|
_: 1
|
|
738
738
|
}),
|
|
739
739
|
o(e(W), null, {
|
|
740
740
|
right: r(() => [
|
|
741
741
|
o(e(ee), {
|
|
742
|
-
"is-loading": e(
|
|
742
|
+
"is-loading": e(v).isSubmitting.value,
|
|
743
743
|
label: e(i).t("wise_crm.shared.create")
|
|
744
744
|
}, null, 8, ["is-loading", "label"])
|
|
745
745
|
]),
|
|
@@ -749,14 +749,14 @@ const re = /* @__PURE__ */ x({
|
|
|
749
749
|
_: 1
|
|
750
750
|
}, 8, ["form"])) : (d(), g(e(pe), {
|
|
751
751
|
key: 1,
|
|
752
|
-
form: e(
|
|
752
|
+
form: e(y),
|
|
753
753
|
"prompt-on-unsaved-changes": !1
|
|
754
754
|
}, {
|
|
755
755
|
default: r(() => [
|
|
756
756
|
o(e(X), null, {
|
|
757
757
|
default: r(() => [
|
|
758
758
|
o(Wa, {
|
|
759
|
-
form: e(
|
|
759
|
+
form: e(y),
|
|
760
760
|
onCreateNewContactPerson: b
|
|
761
761
|
}, null, 8, ["form"])
|
|
762
762
|
]),
|
|
@@ -765,7 +765,7 @@ const re = /* @__PURE__ */ x({
|
|
|
765
765
|
o(e(W), null, {
|
|
766
766
|
right: r(() => [
|
|
767
767
|
o(e(ee), {
|
|
768
|
-
"is-loading": e(
|
|
768
|
+
"is-loading": e(y).isSubmitting.value,
|
|
769
769
|
label: e(i).t("wise_crm.shared.create")
|
|
770
770
|
}, null, 8, ["is-loading", "label"])
|
|
771
771
|
]),
|
|
@@ -780,13 +780,13 @@ const re = /* @__PURE__ */ x({
|
|
|
780
780
|
}
|
|
781
781
|
});
|
|
782
782
|
function lt() {
|
|
783
|
-
const n =
|
|
784
|
-
return
|
|
783
|
+
const n = $();
|
|
784
|
+
return M({
|
|
785
785
|
queryFn: async ({
|
|
786
786
|
body: a,
|
|
787
787
|
params: t
|
|
788
788
|
}) => {
|
|
789
|
-
const l = await
|
|
789
|
+
const l = await T.updateContactPerson(t.dealUuid, t.contactPersonUuid, a.form);
|
|
790
790
|
return l.isOk() && n.notifyDealChanged(t.dealUuid, E.CONTACT_PERSON), l;
|
|
791
791
|
},
|
|
792
792
|
queryKeysToInvalidate: {
|
|
@@ -807,7 +807,7 @@ function ot(n, a) {
|
|
|
807
807
|
contactPersonUuid: a,
|
|
808
808
|
dealUuid: n
|
|
809
809
|
},
|
|
810
|
-
queryFn: () =>
|
|
810
|
+
queryFn: () => T.getContactPerson(n.value, a.value)
|
|
811
811
|
});
|
|
812
812
|
}
|
|
813
813
|
const it = N.object({
|
|
@@ -841,35 +841,35 @@ const it = N.object({
|
|
|
841
841
|
phone: f.value.phone
|
|
842
842
|
}),
|
|
843
843
|
schema: it,
|
|
844
|
-
onSubmit: async (
|
|
845
|
-
await C
|
|
844
|
+
onSubmit: async (C) => {
|
|
845
|
+
await h(C);
|
|
846
846
|
}
|
|
847
|
-
}),
|
|
848
|
-
async function C
|
|
847
|
+
}), v = u.register("firstName"), y = u.register("lastName"), _ = u.register("email"), b = u.register("mobilePhone"), P = u.register("phone");
|
|
848
|
+
async function h(C) {
|
|
849
849
|
try {
|
|
850
850
|
await c.execute({
|
|
851
851
|
body: {
|
|
852
|
-
form:
|
|
852
|
+
form: C
|
|
853
853
|
},
|
|
854
854
|
params: {
|
|
855
855
|
contactPersonUuid: t.contactPersonUuid,
|
|
856
856
|
dealUuid: t.dealUuid
|
|
857
857
|
}
|
|
858
858
|
}), l("close");
|
|
859
|
-
} catch (
|
|
860
|
-
s.show(
|
|
859
|
+
} catch (k) {
|
|
860
|
+
s.show(k);
|
|
861
861
|
}
|
|
862
862
|
}
|
|
863
863
|
function p() {
|
|
864
864
|
l("close");
|
|
865
865
|
}
|
|
866
|
-
return (
|
|
866
|
+
return (C, k) => (d(), g(e(Pe), {
|
|
867
867
|
form: e(u),
|
|
868
868
|
size: "md",
|
|
869
869
|
onClose: p
|
|
870
870
|
}, {
|
|
871
871
|
default: r(() => [
|
|
872
|
-
o(e(
|
|
872
|
+
o(e(De), {
|
|
873
873
|
title: e(i).t("wise_crm.info_dialog.contact_person_update.title"),
|
|
874
874
|
description: e(i).t("wise_crm.info_dialog.contact_person_create.description")
|
|
875
875
|
}, null, 8, ["title", "description"]),
|
|
@@ -885,8 +885,8 @@ const it = N.object({
|
|
|
885
885
|
}, {
|
|
886
886
|
default: r(() => [
|
|
887
887
|
o(Ie, {
|
|
888
|
-
"first-name": e(
|
|
889
|
-
"last-name": e(
|
|
888
|
+
"first-name": e(v),
|
|
889
|
+
"last-name": e(y)
|
|
890
890
|
}, null, 8, ["first-name", "last-name"])
|
|
891
891
|
]),
|
|
892
892
|
_: 1
|
|
@@ -907,7 +907,7 @@ const it = N.object({
|
|
|
907
907
|
o(re, {
|
|
908
908
|
email: e(_),
|
|
909
909
|
"mobile-phone": e(b),
|
|
910
|
-
phone: e(
|
|
910
|
+
phone: e(P)
|
|
911
911
|
}, null, 8, ["email", "mobile-phone", "phone"])
|
|
912
912
|
]),
|
|
913
913
|
_: 1
|
|
@@ -921,7 +921,7 @@ const it = N.object({
|
|
|
921
921
|
})
|
|
922
922
|
]),
|
|
923
923
|
_: 1
|
|
924
|
-
})) :
|
|
924
|
+
})) : F("", !0),
|
|
925
925
|
o(e(W), null, {
|
|
926
926
|
right: r(() => [
|
|
927
927
|
o(e(ee), {
|
|
@@ -957,26 +957,26 @@ const ut = { class: "p-lg" }, ct = /* @__PURE__ */ x({
|
|
|
957
957
|
params: {
|
|
958
958
|
search: m.debouncedSearch
|
|
959
959
|
}
|
|
960
|
-
}), u = O(a.deal.dealLanguage),
|
|
960
|
+
}), u = O(a.deal.dealLanguage), v = O(a.deal.dealSource), y = O(
|
|
961
961
|
a.deal.owner ? {
|
|
962
962
|
uuid: a.deal.owner.uuid,
|
|
963
963
|
name: a.deal.owner.name
|
|
964
964
|
} : null
|
|
965
965
|
), _ = w(() => {
|
|
966
|
-
const U = (f.result.value.isOk() ? f.result.value.getValue().data : []).map((
|
|
967
|
-
uuid:
|
|
968
|
-
name: `${
|
|
966
|
+
const U = (f.result.value.isOk() ? f.result.value.getValue().data : []).map((D) => ({
|
|
967
|
+
uuid: D.uuid,
|
|
968
|
+
name: `${D.firstName} ${D.lastName}`
|
|
969
969
|
}));
|
|
970
970
|
return Ia(U);
|
|
971
971
|
});
|
|
972
972
|
function b(U) {
|
|
973
973
|
return t.t(oa.getI18nKey(U));
|
|
974
974
|
}
|
|
975
|
-
function
|
|
975
|
+
function P(U) {
|
|
976
976
|
return t.t(ia.getI18nKey(U));
|
|
977
977
|
}
|
|
978
|
-
const
|
|
979
|
-
function
|
|
978
|
+
const h = ae(Object.values(Oe)), p = ae(Object.values(Ve)), C = ta();
|
|
979
|
+
function k(U) {
|
|
980
980
|
m.updateSearch(U);
|
|
981
981
|
}
|
|
982
982
|
async function j(U) {
|
|
@@ -990,12 +990,12 @@ const ut = { class: "p-lg" }, ct = /* @__PURE__ */ x({
|
|
|
990
990
|
dealUuid: a.deal.uuid
|
|
991
991
|
}
|
|
992
992
|
});
|
|
993
|
-
} catch (
|
|
994
|
-
l.show(
|
|
993
|
+
} catch (D) {
|
|
994
|
+
l.show(D);
|
|
995
995
|
}
|
|
996
996
|
}
|
|
997
997
|
async function Ne(U) {
|
|
998
|
-
if (
|
|
998
|
+
if (v.value = U, U !== null)
|
|
999
999
|
try {
|
|
1000
1000
|
await s.execute({
|
|
1001
1001
|
body: {
|
|
@@ -1005,12 +1005,12 @@ const ut = { class: "p-lg" }, ct = /* @__PURE__ */ x({
|
|
|
1005
1005
|
dealUuid: a.deal.uuid
|
|
1006
1006
|
}
|
|
1007
1007
|
});
|
|
1008
|
-
} catch (
|
|
1009
|
-
l.show(
|
|
1008
|
+
} catch (D) {
|
|
1009
|
+
l.show(D);
|
|
1010
1010
|
}
|
|
1011
1011
|
}
|
|
1012
1012
|
async function Se(U) {
|
|
1013
|
-
if (
|
|
1013
|
+
if (y.value = U, U !== null)
|
|
1014
1014
|
try {
|
|
1015
1015
|
await c.execute({
|
|
1016
1016
|
body: {
|
|
@@ -1020,20 +1020,20 @@ const ut = { class: "p-lg" }, ct = /* @__PURE__ */ x({
|
|
|
1020
1020
|
dealUuid: a.deal.uuid
|
|
1021
1021
|
}
|
|
1022
1022
|
});
|
|
1023
|
-
} catch (
|
|
1024
|
-
l.show(
|
|
1023
|
+
} catch (D) {
|
|
1024
|
+
l.show(D);
|
|
1025
1025
|
}
|
|
1026
1026
|
}
|
|
1027
|
-
return (U,
|
|
1027
|
+
return (U, D) => (d(), V("div", null, [
|
|
1028
1028
|
o(be, null, {
|
|
1029
1029
|
default: r(() => [
|
|
1030
1030
|
S("form", null, [
|
|
1031
1031
|
o(na, { cols: 1 }, {
|
|
1032
1032
|
default: r(() => [
|
|
1033
1033
|
o(e(Na), {
|
|
1034
|
-
modelValue:
|
|
1034
|
+
modelValue: y.value,
|
|
1035
1035
|
"onUpdate:modelValue": [
|
|
1036
|
-
|
|
1036
|
+
D[0] || (D[0] = (L) => y.value = L),
|
|
1037
1037
|
Se
|
|
1038
1038
|
],
|
|
1039
1039
|
items: _.value,
|
|
@@ -1042,27 +1042,27 @@ const ut = { class: "p-lg" }, ct = /* @__PURE__ */ x({
|
|
|
1042
1042
|
"search-mode": "remote",
|
|
1043
1043
|
placeholder: "Select deal owner",
|
|
1044
1044
|
label: "Deal owner",
|
|
1045
|
-
"onUpdate:search":
|
|
1045
|
+
"onUpdate:search": k
|
|
1046
1046
|
}, null, 8, ["modelValue", "items", "display-fn", "is-loading"]),
|
|
1047
1047
|
o(e(te), {
|
|
1048
1048
|
modelValue: u.value,
|
|
1049
1049
|
"onUpdate:modelValue": [
|
|
1050
|
-
|
|
1050
|
+
D[1] || (D[1] = (L) => u.value = L),
|
|
1051
1051
|
j
|
|
1052
1052
|
],
|
|
1053
1053
|
label: e(t).t("wise_crm.deal.form.fields.language"),
|
|
1054
1054
|
placeholder: e(t).t("wise_crm.deal.form.fields.language_placeholder"),
|
|
1055
1055
|
"display-fn": b,
|
|
1056
1056
|
"is-loading": e(i).isLoading.value,
|
|
1057
|
-
items: e(
|
|
1057
|
+
items: e(h)
|
|
1058
1058
|
}, null, 8, ["modelValue", "label", "placeholder", "is-loading", "items"]),
|
|
1059
1059
|
o(e(te), {
|
|
1060
|
-
modelValue:
|
|
1060
|
+
modelValue: v.value,
|
|
1061
1061
|
"onUpdate:modelValue": [
|
|
1062
|
-
|
|
1062
|
+
D[2] || (D[2] = (L) => v.value = L),
|
|
1063
1063
|
Ne
|
|
1064
1064
|
],
|
|
1065
|
-
"display-fn":
|
|
1065
|
+
"display-fn": P,
|
|
1066
1066
|
label: e(t).t("wise_crm.deal.form.fields.source"),
|
|
1067
1067
|
placeholder: e(t).t("wise_crm.deal.form.fields.source_placeholder"),
|
|
1068
1068
|
"is-loading": e(s).isLoading.value,
|
|
@@ -1078,7 +1078,7 @@ const ut = { class: "p-lg" }, ct = /* @__PURE__ */ x({
|
|
|
1078
1078
|
S("div", ut, [
|
|
1079
1079
|
o(z, {
|
|
1080
1080
|
label: e(t).t("wise_crm.deal.sidebar.created_at", {
|
|
1081
|
-
date: e(
|
|
1081
|
+
date: e(C).toDate(a.deal.createdAt.toPlainDate())
|
|
1082
1082
|
}),
|
|
1083
1083
|
icon: e(la),
|
|
1084
1084
|
"text-color": "text-quaternary",
|
|
@@ -1093,38 +1093,38 @@ const ut = { class: "p-lg" }, ct = /* @__PURE__ */ x({
|
|
|
1093
1093
|
deal: {}
|
|
1094
1094
|
},
|
|
1095
1095
|
setup(n) {
|
|
1096
|
-
const a = n, t = I(), l = q(), i = Ra(), s = ja(), c = J(), m = c.create(nt), f = c.create(rt), u = w(() => a.deal.contactPersons.length > 0);
|
|
1096
|
+
const a = n, t = I(), l = q(), i = Ra(), s = ja(), c = J(), m = c.create(nt), f = c.create(rt), u = w(() => a.deal.contactPersons.length > 0), v = w(() => a.deal.contactPersons.toSorted((h, p) => Number(p.isPrimary) - Number(h.isPrimary)));
|
|
1097
1097
|
function y() {
|
|
1098
1098
|
m.open({
|
|
1099
1099
|
dealUuid: a.deal.uuid
|
|
1100
1100
|
});
|
|
1101
1101
|
}
|
|
1102
|
-
function h
|
|
1102
|
+
function _(h) {
|
|
1103
1103
|
f.open({
|
|
1104
|
-
contactPersonUuid:
|
|
1104
|
+
contactPersonUuid: h,
|
|
1105
1105
|
dealUuid: a.deal.uuid
|
|
1106
1106
|
});
|
|
1107
1107
|
}
|
|
1108
|
-
async function
|
|
1109
|
-
const
|
|
1108
|
+
async function b(h) {
|
|
1109
|
+
const p = await s.execute({
|
|
1110
1110
|
body: {
|
|
1111
|
-
contactPersonUuid:
|
|
1111
|
+
contactPersonUuid: h
|
|
1112
1112
|
},
|
|
1113
1113
|
params: {
|
|
1114
1114
|
dealUuid: a.deal.uuid
|
|
1115
1115
|
}
|
|
1116
1116
|
});
|
|
1117
|
-
|
|
1117
|
+
p.isErr() && l.show(p.error);
|
|
1118
1118
|
}
|
|
1119
|
-
function
|
|
1119
|
+
function P(h) {
|
|
1120
1120
|
i.execute({
|
|
1121
1121
|
params: {
|
|
1122
|
-
contactPersonUuid:
|
|
1122
|
+
contactPersonUuid: h,
|
|
1123
1123
|
dealUuid: a.deal.uuid
|
|
1124
1124
|
}
|
|
1125
1125
|
});
|
|
1126
1126
|
}
|
|
1127
|
-
return (
|
|
1127
|
+
return (h, p) => (d(), g(ra, { "default-values": ["general-info", "contact-persons"] }, {
|
|
1128
1128
|
default: r(() => [
|
|
1129
1129
|
o(ce, {
|
|
1130
1130
|
label: e(t).t("wise_crm.deal.detail.sidebar.accordion.general_info"),
|
|
@@ -1146,7 +1146,7 @@ const ut = { class: "p-lg" }, ct = /* @__PURE__ */ x({
|
|
|
1146
1146
|
onAdd: y
|
|
1147
1147
|
}, {
|
|
1148
1148
|
actions: r(() => [
|
|
1149
|
-
u.value ?
|
|
1149
|
+
u.value ? F("", !0) : (d(), g(ua, {
|
|
1150
1150
|
key: 0,
|
|
1151
1151
|
label: e(t).t("wise_crm.info_dialog.sidebar.overview.contact_persons_label"),
|
|
1152
1152
|
icon: e(de),
|
|
@@ -1155,18 +1155,17 @@ const ut = { class: "p-lg" }, ct = /* @__PURE__ */ x({
|
|
|
1155
1155
|
}, null, 8, ["label", "icon"]))
|
|
1156
1156
|
]),
|
|
1157
1157
|
default: r(() => [
|
|
1158
|
-
(d(!0), V(le, null, Fe(
|
|
1159
|
-
key:
|
|
1160
|
-
"layout-id":
|
|
1158
|
+
(d(!0), V(le, null, Fe(v.value, (C) => (d(), g(e(Fa), {
|
|
1159
|
+
key: C.uuid,
|
|
1160
|
+
"layout-id": C.uuid
|
|
1161
1161
|
}, {
|
|
1162
1162
|
default: r(() => [
|
|
1163
1163
|
o(Ja, {
|
|
1164
|
-
"contact-person":
|
|
1165
|
-
"on-toggle-is-primary": () =>
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
}, null, 8, ["contact-person", "on-toggle-is-primary", "description", "onUpdate", "onDelete"])
|
|
1164
|
+
"contact-person": C,
|
|
1165
|
+
"on-toggle-is-primary": () => P(C.uuid),
|
|
1166
|
+
onUpdate: (k) => _(C.uuid),
|
|
1167
|
+
onDelete: (k) => b(C.uuid)
|
|
1168
|
+
}, null, 8, ["contact-person", "on-toggle-is-primary", "onUpdate", "onDelete"])
|
|
1170
1169
|
]),
|
|
1171
1170
|
_: 2
|
|
1172
1171
|
}, 1032, ["layout-id"]))), 128)),
|
|
@@ -1177,7 +1176,7 @@ const ut = { class: "p-lg" }, ct = /* @__PURE__ */ x({
|
|
|
1177
1176
|
variant: "tertiary",
|
|
1178
1177
|
size: "sm",
|
|
1179
1178
|
onClick: y
|
|
1180
|
-
}, null, 8, ["icon-left", "label"])) :
|
|
1179
|
+
}, null, 8, ["icon-left", "label"])) : F("", !0)
|
|
1181
1180
|
]),
|
|
1182
1181
|
_: 1
|
|
1183
1182
|
}, 8, ["is-empty", "label", "icon"])
|
|
@@ -1187,13 +1186,13 @@ const ut = { class: "p-lg" }, ct = /* @__PURE__ */ x({
|
|
|
1187
1186
|
}
|
|
1188
1187
|
});
|
|
1189
1188
|
function mt() {
|
|
1190
|
-
const n =
|
|
1191
|
-
return
|
|
1189
|
+
const n = $();
|
|
1190
|
+
return M({
|
|
1192
1191
|
queryFn: async ({
|
|
1193
1192
|
body: a,
|
|
1194
1193
|
params: t
|
|
1195
1194
|
}) => {
|
|
1196
|
-
const l = await
|
|
1195
|
+
const l = await T.transition(t.dealUuid, a.toBoardColumnUuid);
|
|
1197
1196
|
return l.isOk() && n.notifyDealChanged(t.dealUuid, E.TRANSITION), l;
|
|
1198
1197
|
},
|
|
1199
1198
|
queryKeysToInvalidate: {
|
|
@@ -1224,54 +1223,54 @@ const pt = /* @__PURE__ */ x({
|
|
|
1224
1223
|
}),
|
|
1225
1224
|
emits: ["update:modelValue"],
|
|
1226
1225
|
setup(n) {
|
|
1227
|
-
const a = n, t = I(), l =
|
|
1226
|
+
const a = n, t = I(), l = $(), s = J().create(da), c = $e(n, "modelValue"), m = q(), f = mt(), u = ft(
|
|
1228
1227
|
w(() => c.value.toColumnUuid),
|
|
1229
1228
|
w(() => l.getOptions().deals?.allowedTransitionTriggerTypes ?? [])
|
|
1230
|
-
),
|
|
1231
|
-
|
|
1232
|
-
] :
|
|
1233
|
-
...
|
|
1234
|
-
toColumnDisplayName:
|
|
1229
|
+
), v = w(() => (u.result.value.isOk() ? u.result.value.getValue() : []).flatMap((h) => h.triggers.length === 0 ? [
|
|
1230
|
+
h
|
|
1231
|
+
] : h.triggers.map((p) => ({
|
|
1232
|
+
...h,
|
|
1233
|
+
toColumnDisplayName: h.toColumnDisplayName,
|
|
1235
1234
|
triggers: [
|
|
1236
1235
|
p
|
|
1237
1236
|
]
|
|
1238
1237
|
}))));
|
|
1239
|
-
function
|
|
1240
|
-
return
|
|
1238
|
+
function y(P) {
|
|
1239
|
+
return P?.toColumnDisplayName ?? "-";
|
|
1241
1240
|
}
|
|
1242
|
-
const _ = w(() => ae(
|
|
1243
|
-
async function b(
|
|
1244
|
-
if (
|
|
1245
|
-
if (
|
|
1241
|
+
const _ = w(() => ae(v.value));
|
|
1242
|
+
async function b(P) {
|
|
1243
|
+
if (P.triggers.length !== 0) {
|
|
1244
|
+
if (P.triggers[0]?.triggerType === Le.EMAIL) {
|
|
1246
1245
|
s.open({
|
|
1247
1246
|
dealUuid: a.deal.uuid,
|
|
1248
1247
|
client: {
|
|
1249
1248
|
uuid: a.deal.client.uuid,
|
|
1250
1249
|
type: a.deal.client.type
|
|
1251
1250
|
},
|
|
1252
|
-
templateKey:
|
|
1251
|
+
templateKey: P.triggers[0].config.mailTemplateKey
|
|
1253
1252
|
});
|
|
1254
1253
|
return;
|
|
1255
1254
|
}
|
|
1256
1255
|
try {
|
|
1257
|
-
c.value =
|
|
1256
|
+
c.value = P, await f.execute({
|
|
1258
1257
|
body: {
|
|
1259
|
-
toBoardColumnUuid:
|
|
1258
|
+
toBoardColumnUuid: P.toColumnUuid
|
|
1260
1259
|
},
|
|
1261
1260
|
params: {
|
|
1262
1261
|
dealUuid: a.deal.uuid
|
|
1263
1262
|
}
|
|
1264
1263
|
});
|
|
1265
|
-
} catch (
|
|
1266
|
-
m.show(
|
|
1264
|
+
} catch (h) {
|
|
1265
|
+
m.show(h);
|
|
1267
1266
|
}
|
|
1268
1267
|
}
|
|
1269
1268
|
}
|
|
1270
|
-
return (
|
|
1269
|
+
return (P, h) => (d(), g(ma, {
|
|
1271
1270
|
color: c.value?.toColumnColor ?? null
|
|
1272
1271
|
}, {
|
|
1273
1272
|
default: r(() => [
|
|
1274
|
-
|
|
1273
|
+
v.value.length === 0 ? (d(), g(e(ne), {
|
|
1275
1274
|
key: 0,
|
|
1276
1275
|
"class-config": {
|
|
1277
1276
|
root: "text-nowrap"
|
|
@@ -1283,7 +1282,7 @@ const pt = /* @__PURE__ */ x({
|
|
|
1283
1282
|
key: 1,
|
|
1284
1283
|
"model-value": c.value,
|
|
1285
1284
|
"is-loading": e(f).isLoading.value,
|
|
1286
|
-
"display-fn":
|
|
1285
|
+
"display-fn": y,
|
|
1287
1286
|
items: _.value,
|
|
1288
1287
|
"is-label-hidden": !0,
|
|
1289
1288
|
placeholder: e(t).t("wise_crm.deal.transition.placeholder"),
|
|
@@ -1298,7 +1297,7 @@ const pt = /* @__PURE__ */ x({
|
|
|
1298
1297
|
}
|
|
1299
1298
|
});
|
|
1300
1299
|
function _t() {
|
|
1301
|
-
return
|
|
1300
|
+
return M({
|
|
1302
1301
|
queryFn: async ({
|
|
1303
1302
|
body: n,
|
|
1304
1303
|
params: a
|
|
@@ -1337,7 +1336,7 @@ const yt = /* @__PURE__ */ x({
|
|
|
1337
1336
|
}
|
|
1338
1337
|
});
|
|
1339
1338
|
}
|
|
1340
|
-
async function
|
|
1339
|
+
async function v(_) {
|
|
1341
1340
|
try {
|
|
1342
1341
|
await c.execute({
|
|
1343
1342
|
params: {
|
|
@@ -1348,7 +1347,7 @@ const yt = /* @__PURE__ */ x({
|
|
|
1348
1347
|
i.show(b);
|
|
1349
1348
|
}
|
|
1350
1349
|
}
|
|
1351
|
-
function
|
|
1350
|
+
function y(_) {
|
|
1352
1351
|
l.open({
|
|
1353
1352
|
note: _
|
|
1354
1353
|
});
|
|
@@ -1358,9 +1357,9 @@ const yt = /* @__PURE__ */ x({
|
|
|
1358
1357
|
notes: f.value,
|
|
1359
1358
|
"on-submit": u,
|
|
1360
1359
|
"has-next-page": e(m).hasNextPage.value,
|
|
1361
|
-
onNext: b[0] || (b[0] = (
|
|
1362
|
-
onDelete:
|
|
1363
|
-
onUpdate:
|
|
1360
|
+
onNext: b[0] || (b[0] = (P) => e(m).fetchNextPage()),
|
|
1361
|
+
onDelete: v,
|
|
1362
|
+
onUpdate: y
|
|
1364
1363
|
}, null, 8, ["is-loading", "notes", "has-next-page"]));
|
|
1365
1364
|
}
|
|
1366
1365
|
}), bt = { class: "flex h-full flex-1 flex-col" }, ht = { class: "flex flex-col gap-xl rounded-2xl border border-primary p-xl" }, vt = { class: "flex items-start gap-xs" }, Ct = { class: "flex w-full flex-wrap items-center justify-between gap-sm" }, Ut = { class: "flex max-w-full min-w-0 items-center gap-sm" }, wt = /* @__PURE__ */ x({
|
|
@@ -1449,13 +1448,13 @@ const yt = /* @__PURE__ */ x({
|
|
|
1449
1448
|
}, null, 8, ["deal"])) : i.value === "notes" ? (d(), g(yt, {
|
|
1450
1449
|
key: 1,
|
|
1451
1450
|
deal: a.deal
|
|
1452
|
-
}, null, 8, ["deal"])) :
|
|
1451
|
+
}, null, 8, ["deal"])) : F("", !0)
|
|
1453
1452
|
]),
|
|
1454
1453
|
_: 1
|
|
1455
1454
|
}, 8, ["modelValue", "tabs"])
|
|
1456
1455
|
]));
|
|
1457
1456
|
}
|
|
1458
|
-
}),
|
|
1457
|
+
}), Pt = /* @__PURE__ */ x({
|
|
1459
1458
|
__name: "DealDetailSidebarProvider",
|
|
1460
1459
|
props: {
|
|
1461
1460
|
dealUuid: {}
|
|
@@ -1476,7 +1475,7 @@ const yt = /* @__PURE__ */ x({
|
|
|
1476
1475
|
})) : e(t).result.value.isOk() ? (d(), g(wt, {
|
|
1477
1476
|
key: e(t).result.value.getValue().boardColumn.uuid,
|
|
1478
1477
|
deal: e(t).result.value.getValue()
|
|
1479
|
-
}, null, 8, ["deal"])) :
|
|
1478
|
+
}, null, 8, ["deal"])) : F("", !0)
|
|
1480
1479
|
]),
|
|
1481
1480
|
_: 1
|
|
1482
1481
|
}));
|
|
@@ -1500,7 +1499,7 @@ const yt = /* @__PURE__ */ x({
|
|
|
1500
1499
|
tabs: i.value
|
|
1501
1500
|
}, {
|
|
1502
1501
|
sidebar: r(() => [
|
|
1503
|
-
o(
|
|
1502
|
+
o(Pt, { "deal-uuid": e(l) }, null, 8, ["deal-uuid"])
|
|
1504
1503
|
]),
|
|
1505
1504
|
_: 1
|
|
1506
1505
|
}, 8, ["entity-type", "tabs"]));
|