@wisemen/wise-crm-web 2.0.0-alpha.33 → 2.0.0-alpha.34
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-CNeUuzJA.js → BusinessDetailView-1UifnEVs.js} +3 -3
- package/dist/{CrmDetailView.vue_vue_type_script_setup_true_lang-B1j_Ngmt.js → CrmDetailView.vue_vue_type_script_setup_true_lang-BTC2xhF6.js} +1 -1
- package/dist/{DealCommunicationTabView-BCKMrygP.js → DealCommunicationTabView-BWW-kNfR.js} +1 -1
- package/dist/{DealDetailView-DUXn7ehm.js → DealDetailView-BAmOzqHI.js} +84 -77
- package/dist/{IndividualDetailView-DfTr361N.js → IndividualDetailView-QYz08e_2.js} +3 -3
- package/dist/{index-BcNzhcz4.js → index-roZXpdzB.js} +1698 -1692
- package/dist/index.js +2 -2
- package/dist/style.css +1 -1
- package/dist/testing.d.ts +8 -2
- package/dist/testing.js +6 -4
- package/dist/{uuid.util-BFJ_Ekju.js → uuid.util-SYJY4Bt5.js} +529 -527
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as n, openBlock as o, createBlock as r, unref as s, withCtx as a, createVNode as u } from "vue";
|
|
2
2
|
import { useRouteParams as m } from "@vueuse/router";
|
|
3
|
-
import { _ as p } from "./index-
|
|
4
|
-
import { br as c } from "./uuid.util-
|
|
5
|
-
import { _ } from "./CrmDetailView.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { _ as p } from "./index-roZXpdzB.js";
|
|
4
|
+
import { br as c } from "./uuid.util-SYJY4Bt5.js";
|
|
5
|
+
import { _ } from "./CrmDetailView.vue_vue_type_script_setup_true_lang-BTC2xhF6.js";
|
|
6
6
|
const x = /* @__PURE__ */ n({
|
|
7
7
|
__name: "BusinessDetailView",
|
|
8
8
|
props: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as v, ref as h, unref as e, openBlock as d, createElementBlock as u, createElementVNode as t, renderSlot as x, createVNode as r, withCtx as f, Fragment as y, renderList as g, createBlock as w, toValue as m, createCommentVNode as b } from "vue";
|
|
2
2
|
import { onKeyStroke as C } from "@vueuse/core";
|
|
3
3
|
import { UITabsRouterLink as k, UITabsRouterLinkItem as R, UIIconButton as B } from "@wisemen/vue-core-design-system";
|
|
4
|
-
import { d as E, f as T, T as I, a6 as V } from "./index-
|
|
4
|
+
import { d as E, f as T, T as I, a6 as V } from "./index-roZXpdzB.js";
|
|
5
5
|
import { useRoute as A, RouterView as H } from "vue-router";
|
|
6
6
|
class U {
|
|
7
7
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as C, openBlock as t, createElementBlock as f, createElementVNode as s, createVNode as a, withCtx as n, toDisplayString as m, unref as e, createBlock as o, createCommentVNode as _, Fragment as g, renderList as v, normalizeClass as b, resolveDynamicComponent as k, computed as M } from "vue";
|
|
2
2
|
import { useRouteParams as I } from "@vueuse/router";
|
|
3
3
|
import { useOffsetInfiniteQuery as L } from "@wisemen/vue-core-api-utils";
|
|
4
|
-
import { M as T, D as p, g as w, a as A, m as S, b as V, u as j, A as Q } from "./index-
|
|
4
|
+
import { M as T, D as p, g as w, a as A, m as S, b as V, u as j, A as Q } from "./index-roZXpdzB.js";
|
|
5
5
|
import { UIEmptyState as U } from "@wisemen/vue-core-design-system";
|
|
6
6
|
import { AnimatePresence as $, Motion as q } from "motion-v";
|
|
7
7
|
import { AccordionRoot as z, AccordionItem as B, AccordionHeader as E, AccordionTrigger as F, AccordionContent as H } from "reka-ui";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as x, openBlock as d, createBlock as g, unref as e, ref as V, useTemplateRef as Se, createElementBlock as E, withCtx as r, createVNode as o, mergeProps as q, createElementVNode as S, toDisplayString as z, nextTick as ke, computed as w, createCommentVNode as F, Fragment as
|
|
1
|
+
import { defineComponent as x, openBlock as d, createBlock as g, unref as e, ref as V, useTemplateRef as Se, createElementBlock as E, withCtx as r, createVNode as o, mergeProps as q, createElementVNode as S, toDisplayString as z, nextTick as ke, computed as w, createCommentVNode as F, Fragment as ne, createTextVNode as re, renderList as Fe, useModel as $e, mergeModels as Te } from "vue";
|
|
2
2
|
import { useRouteParams as Me } from "@vueuse/router";
|
|
3
3
|
import { useI18n as I } from "vue-i18n";
|
|
4
|
-
import { br as
|
|
5
|
-
import { _ as Oe } from "./CrmDetailView.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { c as k, d as
|
|
7
|
-
import { useToast as
|
|
4
|
+
import { br as pe, bw as Ve, by as Ee, bB as Le } from "./uuid.util-SYJY4Bt5.js";
|
|
5
|
+
import { _ as Oe } from "./CrmDetailView.vue_vue_type_script_setup_true_lang-BTC2xhF6.js";
|
|
6
|
+
import { c as k, d as _e, e as qe, f as $, h as O, i as Qe, E as ge, C as ye, j as Ae, k as Be, l as Ke, n as je, o as R, g as Re, J as ze, p as Ge, q as se, r as Ye, I as Ze, s as be, t as A, v as He, w as he, x as Je, y as Xe, U as We, z as ea, u as aa, B as ta, Q as na, F as la, G as oa, H as ia, K as ue, L as ve, N as ra, O as ce, P as sa, R as ua, S as ca, T as da, V as Ue, W as ma, X as fa, Y as pa, Z as _a, $ as ga, a0 as ya, a1 as ba, a2 as ha, a3 as va, a4 as Ua, A as Ca } from "./index-roZXpdzB.js";
|
|
7
|
+
import { useToast as Ce, useOverlay as H, UIConfirmDialog as wa, UIIconButton as le, UITextField as G, toFormField as Q, UIDropdownMenu as Pa, UIDropdownMenuGroup as Da, UIDropdownMenuItem as de, UIPhoneNumberField as me, UIFormLayout as oe, UIFormFieldGroup as B, UIFormFieldGrid as K, UIFormDialog as we, UIDialogHeader as Pe, UIForm as fe, UIDialogBody as J, UIDialogFooter as X, UIDialogFooterSubmit as W, createAutocompleteOptions as xa, createSelectOptions as ee, UIAutocomplete as Ia, UISelect as ae, UIButton as Na, UIBadge as te } from "@wisemen/vue-core-design-system";
|
|
8
8
|
import { useMutation as T, useQuery as De, useOffsetInfiniteQuery as Sa, useKeysetInfiniteQuery as ka } from "@wisemen/vue-core-api-utils";
|
|
9
9
|
import { useForm as Y } from "formango";
|
|
10
10
|
import Z, { z as N } from "zod";
|
|
@@ -26,7 +26,7 @@ const Va = /* @__PURE__ */ x({
|
|
|
26
26
|
deal: {}
|
|
27
27
|
},
|
|
28
28
|
setup(n) {
|
|
29
|
-
const a = n, t = I(), l =
|
|
29
|
+
const a = n, t = I(), l = Ce(), i = _e(), c = H().create(wa), m = Ma();
|
|
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 Va = /* @__PURE__ */ x({
|
|
|
49
49
|
}
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
|
-
return (u, y) => (d(), g(e(
|
|
52
|
+
return (u, y) => (d(), g(e(le), {
|
|
53
53
|
label: e(t).t("wise_crm.deal.detail.sidebar.delete.label"),
|
|
54
54
|
icon: e(qe),
|
|
55
55
|
variant: "tertiary",
|
|
@@ -206,9 +206,9 @@ const Qa = {
|
|
|
206
206
|
_: 1
|
|
207
207
|
}, 8, ["form"])) : (d(), E("div", Qa, [
|
|
208
208
|
S("h2", Aa, z(a.deal.name), 1),
|
|
209
|
-
o(e(
|
|
209
|
+
o(e(le), {
|
|
210
210
|
label: e(t).t("wise_crm.deal.detail.sidebar.name_field.edit_label"),
|
|
211
|
-
icon: e(
|
|
211
|
+
icon: e(ge),
|
|
212
212
|
variant: "tertiary",
|
|
213
213
|
class: "shrink-0",
|
|
214
214
|
onClick: u
|
|
@@ -320,7 +320,7 @@ const Ra = { class: "flex items-start justify-between" }, za = { class: "flex fl
|
|
|
320
320
|
setup(n, { emit: a }) {
|
|
321
321
|
const t = n, l = a, i = I(), s = t.contactPerson.uuid ?? t.contactPerson.contactPersonUuid, c = {
|
|
322
322
|
left: {
|
|
323
|
-
icon:
|
|
323
|
+
icon: ge,
|
|
324
324
|
type: "icon"
|
|
325
325
|
}
|
|
326
326
|
}, m = {
|
|
@@ -338,14 +338,14 @@ const Ra = { class: "flex items-start justify-between" }, za = { class: "flex fl
|
|
|
338
338
|
function y() {
|
|
339
339
|
t.onToggleIsPrimary();
|
|
340
340
|
}
|
|
341
|
-
return (h, _) => (d(), g(
|
|
341
|
+
return (h, _) => (d(), g(ye, { class: "flex flex-col gap-lg" }, {
|
|
342
342
|
default: r(() => [
|
|
343
343
|
S("div", Ra, [
|
|
344
344
|
S("div", za, [
|
|
345
345
|
e(s) ? (d(), g(Ae, {
|
|
346
346
|
key: 0,
|
|
347
347
|
label: `${t.contactPerson.firstName} ${t.contactPerson.lastName}`,
|
|
348
|
-
"entity-type": e(
|
|
348
|
+
"entity-type": e(pe).INDIVIDUAL,
|
|
349
349
|
uuid: e(s),
|
|
350
350
|
class: "-m-xs"
|
|
351
351
|
}, null, 8, ["label", "entity-type", "uuid"])) : F("", !0),
|
|
@@ -358,7 +358,7 @@ const Ra = { class: "flex items-start justify-between" }, za = { class: "flex fl
|
|
|
358
358
|
}, null, 8, ["is-active"]),
|
|
359
359
|
o(e(Pa), { "popover-align": "end" }, {
|
|
360
360
|
trigger: r(() => [
|
|
361
|
-
o(e(
|
|
361
|
+
o(e(le), {
|
|
362
362
|
icon: e(je),
|
|
363
363
|
variant: "tertiary",
|
|
364
364
|
size: "sm",
|
|
@@ -368,12 +368,12 @@ const Ra = { class: "flex items-start justify-between" }, za = { class: "flex fl
|
|
|
368
368
|
content: r(() => [
|
|
369
369
|
o(e(Da), null, {
|
|
370
370
|
default: r(() => [
|
|
371
|
-
o(e(
|
|
371
|
+
o(e(de), {
|
|
372
372
|
config: c,
|
|
373
373
|
label: e(i).t("wise_crm.info_dialog.sidebar.overview.update_contact_person"),
|
|
374
374
|
onSelect: f
|
|
375
375
|
}, null, 8, ["label"]),
|
|
376
|
-
o(e(
|
|
376
|
+
o(e(de), {
|
|
377
377
|
"is-destructive": !0,
|
|
378
378
|
"is-disabled": t.contactPerson.isPrimary,
|
|
379
379
|
config: m,
|
|
@@ -432,7 +432,7 @@ function Ja() {
|
|
|
432
432
|
}
|
|
433
433
|
});
|
|
434
434
|
}
|
|
435
|
-
const
|
|
435
|
+
const ie = /* @__PURE__ */ x({
|
|
436
436
|
__name: "ContactPersonFormContactField",
|
|
437
437
|
props: {
|
|
438
438
|
email: {},
|
|
@@ -441,30 +441,30 @@ const oe = /* @__PURE__ */ x({
|
|
|
441
441
|
},
|
|
442
442
|
setup(n) {
|
|
443
443
|
const a = n, t = I();
|
|
444
|
-
return (l, i) => (d(), E(
|
|
444
|
+
return (l, i) => (d(), E(ne, null, [
|
|
445
445
|
o(e(G), q(e(Q)(a.email), {
|
|
446
446
|
label: e(t).t("wise_crm.contact.create_dialog.form.fields.email"),
|
|
447
447
|
placeholder: e(t).t("wise_crm.contact.create_dialog.form.fields.email"),
|
|
448
448
|
class: "col-span-2"
|
|
449
449
|
}), null, 16, ["label", "placeholder"]),
|
|
450
|
-
o(
|
|
450
|
+
o(se, { class: "col-span-2" }, {
|
|
451
451
|
default: r(() => [
|
|
452
|
-
|
|
452
|
+
re(z(e(t).t("wise_crm.contact.create_dialog.form.seperator_label")), 1)
|
|
453
453
|
]),
|
|
454
454
|
_: 1
|
|
455
455
|
}),
|
|
456
|
-
o(e(
|
|
456
|
+
o(e(me), q(e(Q)(a.mobilePhone), {
|
|
457
457
|
label: e(t).t("wise_crm.contact.create_dialog.form.fields.mobile_phone"),
|
|
458
458
|
placeholder: e(t).t("wise_crm.contact.create_dialog.form.fields.mobile_phone"),
|
|
459
459
|
class: "col-span-2"
|
|
460
460
|
}), null, 16, ["label", "placeholder"]),
|
|
461
|
-
o(
|
|
461
|
+
o(se, { class: "col-span-2" }, {
|
|
462
462
|
default: r(() => [
|
|
463
|
-
|
|
463
|
+
re(z(e(t).t("wise_crm.contact.create_dialog.form.seperator_label")), 1)
|
|
464
464
|
]),
|
|
465
465
|
_: 1
|
|
466
466
|
}),
|
|
467
|
-
o(e(
|
|
467
|
+
o(e(me), q(e(Q)(a.phone), {
|
|
468
468
|
label: e(t).t("wise_crm.contact.create_dialog.form.fields.phone"),
|
|
469
469
|
placeholder: e(t).t("wise_crm.contact.create_dialog.form.fields.phone"),
|
|
470
470
|
class: "col-span-2"
|
|
@@ -488,7 +488,7 @@ const oe = /* @__PURE__ */ x({
|
|
|
488
488
|
const b = _.value;
|
|
489
489
|
s.setValue(b.email), c.setValue(b.phone), m.setValue(b.mobilePhone);
|
|
490
490
|
}
|
|
491
|
-
return (h, _) => (d(), g(e(
|
|
491
|
+
return (h, _) => (d(), g(e(oe), null, {
|
|
492
492
|
default: r(() => [
|
|
493
493
|
o(e(B), null, {
|
|
494
494
|
default: r(() => [
|
|
@@ -512,7 +512,7 @@ const oe = /* @__PURE__ */ x({
|
|
|
512
512
|
variant: "card"
|
|
513
513
|
}, {
|
|
514
514
|
default: r(() => [
|
|
515
|
-
o(
|
|
515
|
+
o(ie, {
|
|
516
516
|
email: e(s),
|
|
517
517
|
"mobile-phone": e(m),
|
|
518
518
|
phone: e(c)
|
|
@@ -535,7 +535,7 @@ const oe = /* @__PURE__ */ x({
|
|
|
535
535
|
},
|
|
536
536
|
setup(n) {
|
|
537
537
|
const a = n, t = I();
|
|
538
|
-
return (l, i) => (d(), E(
|
|
538
|
+
return (l, i) => (d(), E(ne, null, [
|
|
539
539
|
o(e(G), q(e(Q)(a.firstName), {
|
|
540
540
|
label: e(t).t("wise_crm.contact.create_dialog.form.fields.first_name"),
|
|
541
541
|
placeholder: e(t).t("wise_crm.contact.create_dialog.form.fields.first_name")
|
|
@@ -553,7 +553,7 @@ const oe = /* @__PURE__ */ x({
|
|
|
553
553
|
},
|
|
554
554
|
setup(n) {
|
|
555
555
|
const a = n, t = a.form.register("firstName"), l = a.form.register("lastName"), i = a.form.register("email"), s = a.form.register("mobilePhone"), c = a.form.register("phone");
|
|
556
|
-
return (m, f) => (d(), g(e(
|
|
556
|
+
return (m, f) => (d(), g(e(oe), null, {
|
|
557
557
|
default: r(() => [
|
|
558
558
|
o(e(B), null, {
|
|
559
559
|
default: r(() => [
|
|
@@ -580,7 +580,7 @@ const oe = /* @__PURE__ */ x({
|
|
|
580
580
|
variant: "card"
|
|
581
581
|
}, {
|
|
582
582
|
default: r(() => [
|
|
583
|
-
o(
|
|
583
|
+
o(ie, {
|
|
584
584
|
email: e(i),
|
|
585
585
|
"mobile-phone": e(s),
|
|
586
586
|
phone: e(c)
|
|
@@ -588,7 +588,7 @@ const oe = /* @__PURE__ */ x({
|
|
|
588
588
|
]),
|
|
589
589
|
_: 1
|
|
590
590
|
}),
|
|
591
|
-
o(
|
|
591
|
+
o(be, {
|
|
592
592
|
form: a.form
|
|
593
593
|
}, null, 8, ["form"])
|
|
594
594
|
]),
|
|
@@ -612,7 +612,7 @@ const oe = /* @__PURE__ */ x({
|
|
|
612
612
|
}).superRefine((n, a) => {
|
|
613
613
|
n.email !== null && n.email !== "" || n.mobilePhone !== null && n.mobilePhone !== "" || n.phone !== null && n.phone !== "" || a.addIssue({
|
|
614
614
|
code: N.ZodIssueCode.custom,
|
|
615
|
-
message:
|
|
615
|
+
message: he.global.t("wise_crm.form.errors.at_least_one")
|
|
616
616
|
});
|
|
617
617
|
}), tt = /* @__PURE__ */ x({
|
|
618
618
|
__name: "DealContactPersonCreateDialog",
|
|
@@ -622,7 +622,7 @@ const oe = /* @__PURE__ */ x({
|
|
|
622
622
|
},
|
|
623
623
|
emits: ["close", "createNewContactPerson"],
|
|
624
624
|
setup(n, { emit: a }) {
|
|
625
|
-
const t = n, l = a, i = I(), s = O(), c =
|
|
625
|
+
const t = n, l = a, i = I(), s = O(), c = Ce(), m = Ja(), f = Je(), u = V(t.isCreatingNewContactPerson), y = Y({
|
|
626
626
|
schema: at,
|
|
627
627
|
onSubmit: async (p) => {
|
|
628
628
|
try {
|
|
@@ -714,18 +714,18 @@ const oe = /* @__PURE__ */ x({
|
|
|
714
714
|
}
|
|
715
715
|
l("createNewContactPerson", p), l("close");
|
|
716
716
|
}
|
|
717
|
-
return (p, P) => (d(), g(e(
|
|
717
|
+
return (p, P) => (d(), g(e(we), {
|
|
718
718
|
form: _.value,
|
|
719
719
|
size: "md",
|
|
720
720
|
"render-own-form-component": "",
|
|
721
721
|
onClose: C
|
|
722
722
|
}, {
|
|
723
723
|
default: r(() => [
|
|
724
|
-
o(e(
|
|
724
|
+
o(e(Pe), {
|
|
725
725
|
title: e(i).t("wise_crm.info_dialog.contact_person_create.title"),
|
|
726
726
|
description: e(i).t("wise_crm.info_dialog.contact_person_create.description")
|
|
727
727
|
}, null, 8, ["title", "description"]),
|
|
728
|
-
u.value ? (d(), g(e(
|
|
728
|
+
u.value ? (d(), g(e(fe), {
|
|
729
729
|
key: 0,
|
|
730
730
|
form: e(y),
|
|
731
731
|
"prompt-on-unsaved-changes": !1
|
|
@@ -748,7 +748,7 @@ const oe = /* @__PURE__ */ x({
|
|
|
748
748
|
})
|
|
749
749
|
]),
|
|
750
750
|
_: 1
|
|
751
|
-
}, 8, ["form"])) : (d(), g(e(
|
|
751
|
+
}, 8, ["form"])) : (d(), g(e(fe), {
|
|
752
752
|
key: 1,
|
|
753
753
|
form: e(h),
|
|
754
754
|
"prompt-on-unsaved-changes": !1
|
|
@@ -820,7 +820,7 @@ const ot = N.object({
|
|
|
820
820
|
}).superRefine((n, a) => {
|
|
821
821
|
n.email !== null && n.email !== "" || n.mobilePhone !== null && n.mobilePhone !== "" || n.phone !== null && n.phone !== "" || a.addIssue({
|
|
822
822
|
code: N.ZodIssueCode.custom,
|
|
823
|
-
message:
|
|
823
|
+
message: he.global.t("wise_crm.form.errors.at_least_one")
|
|
824
824
|
});
|
|
825
825
|
}), it = /* @__PURE__ */ x({
|
|
826
826
|
__name: "DealContactPersonUpdateDialog",
|
|
@@ -864,19 +864,19 @@ const ot = N.object({
|
|
|
864
864
|
function p() {
|
|
865
865
|
l("close");
|
|
866
866
|
}
|
|
867
|
-
return (P, M) => (d(), g(e(
|
|
867
|
+
return (P, M) => (d(), g(e(we), {
|
|
868
868
|
form: e(u),
|
|
869
869
|
size: "md",
|
|
870
870
|
onClose: p
|
|
871
871
|
}, {
|
|
872
872
|
default: r(() => [
|
|
873
|
-
o(e(
|
|
873
|
+
o(e(Pe), {
|
|
874
874
|
title: e(i).t("wise_crm.info_dialog.contact_person_update.title"),
|
|
875
875
|
description: e(i).t("wise_crm.info_dialog.contact_person_create.description")
|
|
876
876
|
}, null, 8, ["title", "description"]),
|
|
877
877
|
f.value !== null ? (d(), g(e(J), { key: 0 }, {
|
|
878
878
|
default: r(() => [
|
|
879
|
-
o(e(
|
|
879
|
+
o(e(oe), null, {
|
|
880
880
|
default: r(() => [
|
|
881
881
|
o(e(B), null, {
|
|
882
882
|
default: r(() => [
|
|
@@ -905,7 +905,7 @@ const ot = N.object({
|
|
|
905
905
|
variant: "card"
|
|
906
906
|
}, {
|
|
907
907
|
default: r(() => [
|
|
908
|
-
o(
|
|
908
|
+
o(ie, {
|
|
909
909
|
email: e(_),
|
|
910
910
|
"mobile-phone": e(b),
|
|
911
911
|
phone: e(v)
|
|
@@ -913,7 +913,7 @@ const ot = N.object({
|
|
|
913
913
|
]),
|
|
914
914
|
_: 1
|
|
915
915
|
}),
|
|
916
|
-
o(
|
|
916
|
+
o(be, { form: e(u) }, null, 8, ["form"])
|
|
917
917
|
]),
|
|
918
918
|
_: 1
|
|
919
919
|
}, 8, ["title"])
|
|
@@ -1026,7 +1026,7 @@ const st = { class: "p-lg" }, ut = /* @__PURE__ */ x({
|
|
|
1026
1026
|
}
|
|
1027
1027
|
}
|
|
1028
1028
|
return (U, D) => (d(), E("div", null, [
|
|
1029
|
-
o(
|
|
1029
|
+
o(ye, null, {
|
|
1030
1030
|
default: r(() => [
|
|
1031
1031
|
S("form", null, [
|
|
1032
1032
|
o(ta, { cols: 1 }, {
|
|
@@ -1130,9 +1130,9 @@ const st = { class: "p-lg" }, ut = /* @__PURE__ */ x({
|
|
|
1130
1130
|
}
|
|
1131
1131
|
return (v, C) => (d(), g(ia, { "default-values": ["general-info", "contact-persons"] }, {
|
|
1132
1132
|
default: r(() => [
|
|
1133
|
-
o(
|
|
1133
|
+
o(ue, {
|
|
1134
1134
|
label: e(t).t("wise_crm.deal.detail.sidebar.accordion.general_info"),
|
|
1135
|
-
icon: e(
|
|
1135
|
+
icon: e(ve),
|
|
1136
1136
|
value: "general-info"
|
|
1137
1137
|
}, {
|
|
1138
1138
|
default: r(() => [
|
|
@@ -1142,7 +1142,7 @@ const st = { class: "p-lg" }, ut = /* @__PURE__ */ x({
|
|
|
1142
1142
|
]),
|
|
1143
1143
|
_: 1
|
|
1144
1144
|
}, 8, ["label", "icon"]),
|
|
1145
|
-
o(
|
|
1145
|
+
o(ue, {
|
|
1146
1146
|
"is-empty": !u.value,
|
|
1147
1147
|
label: e(t).t("wise_crm.info_dialog.sidebar.overview.contact_persons_label"),
|
|
1148
1148
|
icon: e(ra),
|
|
@@ -1153,13 +1153,13 @@ const st = { class: "p-lg" }, ut = /* @__PURE__ */ x({
|
|
|
1153
1153
|
u.value ? F("", !0) : (d(), g(sa, {
|
|
1154
1154
|
key: 0,
|
|
1155
1155
|
label: e(t).t("wise_crm.info_dialog.sidebar.overview.contact_persons_label"),
|
|
1156
|
-
icon: e(
|
|
1156
|
+
icon: e(ce),
|
|
1157
1157
|
class: "z-1",
|
|
1158
1158
|
onClick: y
|
|
1159
1159
|
}, null, 8, ["label", "icon"]))
|
|
1160
1160
|
]),
|
|
1161
1161
|
default: r(() => [
|
|
1162
|
-
(d(!0), E(
|
|
1162
|
+
(d(!0), E(ne, null, Fe(a.deal.contactPersons, (p) => (d(), g(e(Fa), {
|
|
1163
1163
|
key: p.uuid,
|
|
1164
1164
|
"layout-id": p.uuid
|
|
1165
1165
|
}, {
|
|
@@ -1176,7 +1176,7 @@ const st = { class: "p-lg" }, ut = /* @__PURE__ */ x({
|
|
|
1176
1176
|
}, 1032, ["layout-id"]))), 128)),
|
|
1177
1177
|
u.value ? (d(), g(e(Na), {
|
|
1178
1178
|
key: 0,
|
|
1179
|
-
"icon-left": e(
|
|
1179
|
+
"icon-left": e(ce),
|
|
1180
1180
|
label: e(t).t("wise_crm.shared.add"),
|
|
1181
1181
|
variant: "tertiary",
|
|
1182
1182
|
size: "sm",
|
|
@@ -1275,7 +1275,7 @@ const ft = /* @__PURE__ */ x({
|
|
|
1275
1275
|
color: c.value?.toColumnColor ?? null
|
|
1276
1276
|
}, {
|
|
1277
1277
|
default: r(() => [
|
|
1278
|
-
y.value.length === 0 ? (d(), g(e(
|
|
1278
|
+
y.value.length === 0 ? (d(), g(e(te), {
|
|
1279
1279
|
key: 0,
|
|
1280
1280
|
"class-config": {
|
|
1281
1281
|
root: "text-nowrap"
|
|
@@ -1306,7 +1306,7 @@ function pt() {
|
|
|
1306
1306
|
queryFn: async ({
|
|
1307
1307
|
body: n,
|
|
1308
1308
|
params: a
|
|
1309
|
-
}) => await
|
|
1309
|
+
}) => await Ue.create(n, {
|
|
1310
1310
|
dealUuid: a.dealUuid
|
|
1311
1311
|
}),
|
|
1312
1312
|
queryKeysToInvalidate: {
|
|
@@ -1319,7 +1319,7 @@ function _t(n, a) {
|
|
|
1319
1319
|
params: {
|
|
1320
1320
|
params: a?.params
|
|
1321
1321
|
},
|
|
1322
|
-
queryFn: (t) =>
|
|
1322
|
+
queryFn: (t) => Ue.getDealNotes({
|
|
1323
1323
|
pagination: t
|
|
1324
1324
|
}, n.value)
|
|
1325
1325
|
});
|
|
@@ -1367,13 +1367,13 @@ const gt = /* @__PURE__ */ x({
|
|
|
1367
1367
|
onUpdate: h
|
|
1368
1368
|
}, null, 8, ["is-loading", "notes", "has-next-page"]));
|
|
1369
1369
|
}
|
|
1370
|
-
}), yt = { class: "flex h-full flex-1 flex-col" }, bt = { class: "flex flex-col gap-xl rounded-2xl border border-primary p-xl" }, ht = { class: "flex items-start gap-xs" }, vt = { class: "flex w-full flex-wrap items-center justify-between gap-sm" }, Ut = /* @__PURE__ */ x({
|
|
1370
|
+
}), yt = { class: "flex h-full flex-1 flex-col" }, bt = { class: "flex flex-col gap-xl rounded-2xl border border-primary p-xl" }, ht = { class: "flex items-start gap-xs" }, vt = { 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" }, Ct = /* @__PURE__ */ x({
|
|
1371
1371
|
__name: "DealDetailSidebar",
|
|
1372
1372
|
props: {
|
|
1373
1373
|
deal: {}
|
|
1374
1374
|
},
|
|
1375
1375
|
setup(n) {
|
|
1376
|
-
const a = n, t = I(), l =
|
|
1376
|
+
const a = n, t = I(), l = _e(), i = V(
|
|
1377
1377
|
"overview"
|
|
1378
1378
|
/* OVERVIEW */
|
|
1379
1379
|
), s = V({
|
|
@@ -1386,7 +1386,7 @@ const gt = /* @__PURE__ */ x({
|
|
|
1386
1386
|
triggers: []
|
|
1387
1387
|
}), c = w(() => [
|
|
1388
1388
|
{
|
|
1389
|
-
icon:
|
|
1389
|
+
icon: ve,
|
|
1390
1390
|
label: t.t("wise_crm.shared.overview"),
|
|
1391
1391
|
value: "overview"
|
|
1392
1392
|
/* OVERVIEW */
|
|
@@ -1410,23 +1410,30 @@ const gt = /* @__PURE__ */ x({
|
|
|
1410
1410
|
}, null, 8, ["deal"])
|
|
1411
1411
|
]),
|
|
1412
1412
|
S("div", vt, [
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1413
|
+
S("div", Ut, [
|
|
1414
|
+
o(e(te), {
|
|
1415
|
+
label: a.deal.dealNumber,
|
|
1416
|
+
variant: "translucent",
|
|
1417
|
+
color: "gray"
|
|
1418
|
+
}, null, 8, ["label"]),
|
|
1419
|
+
o(ga, {
|
|
1420
|
+
class: "max-w-full min-w-0",
|
|
1421
|
+
onClick: f[0] || (f[0] = (u) => e(l).openBusinessDetail(
|
|
1422
|
+
a.deal.client.uuid
|
|
1423
|
+
))
|
|
1424
|
+
}, {
|
|
1425
|
+
default: r(() => [
|
|
1426
|
+
o(e(te), {
|
|
1427
|
+
icon: e(ya),
|
|
1428
|
+
label: a.deal.client.name,
|
|
1429
|
+
variant: "translucent",
|
|
1430
|
+
color: "brand",
|
|
1431
|
+
class: "max-w-full"
|
|
1432
|
+
}, null, 8, ["icon", "label"])
|
|
1433
|
+
]),
|
|
1434
|
+
_: 1
|
|
1435
|
+
})
|
|
1436
|
+
]),
|
|
1430
1437
|
o(ft, {
|
|
1431
1438
|
modelValue: s.value,
|
|
1432
1439
|
"onUpdate:modelValue": f[1] || (f[1] = (u) => s.value = u),
|
|
@@ -1452,7 +1459,7 @@ const gt = /* @__PURE__ */ x({
|
|
|
1452
1459
|
}, 8, ["modelValue", "tabs"])
|
|
1453
1460
|
]));
|
|
1454
1461
|
}
|
|
1455
|
-
}),
|
|
1462
|
+
}), wt = /* @__PURE__ */ x({
|
|
1456
1463
|
__name: "DealDetailSidebarProvider",
|
|
1457
1464
|
props: {
|
|
1458
1465
|
dealUuid: {}
|
|
@@ -1470,7 +1477,7 @@ const gt = /* @__PURE__ */ x({
|
|
|
1470
1477
|
}, null, 8, ["message", "title"])) : e(t).isLoading.value ? (d(), g(Ca, {
|
|
1471
1478
|
key: 1,
|
|
1472
1479
|
class: "h-full"
|
|
1473
|
-
})) : e(t).result.value.isOk() ? (d(), g(
|
|
1480
|
+
})) : e(t).result.value.isOk() ? (d(), g(Ct, {
|
|
1474
1481
|
key: e(t).result.value.getValue().boardColumn.uuid,
|
|
1475
1482
|
deal: e(t).result.value.getValue()
|
|
1476
1483
|
}, null, 8, ["deal"])) : F("", !0)
|
|
@@ -1478,7 +1485,7 @@ const gt = /* @__PURE__ */ x({
|
|
|
1478
1485
|
_: 1
|
|
1479
1486
|
}));
|
|
1480
1487
|
}
|
|
1481
|
-
}),
|
|
1488
|
+
}), Et = /* @__PURE__ */ x({
|
|
1482
1489
|
__name: "DealDetailView",
|
|
1483
1490
|
props: {
|
|
1484
1491
|
tabs: {}
|
|
@@ -1493,16 +1500,16 @@ const gt = /* @__PURE__ */ x({
|
|
|
1493
1500
|
]);
|
|
1494
1501
|
return (s, c) => (d(), g(Oe, {
|
|
1495
1502
|
key: e(l),
|
|
1496
|
-
"entity-type": e(
|
|
1503
|
+
"entity-type": e(pe).BUSINESS,
|
|
1497
1504
|
tabs: i.value
|
|
1498
1505
|
}, {
|
|
1499
1506
|
sidebar: r(() => [
|
|
1500
|
-
o(
|
|
1507
|
+
o(wt, { "deal-uuid": e(l) }, null, 8, ["deal-uuid"])
|
|
1501
1508
|
]),
|
|
1502
1509
|
_: 1
|
|
1503
1510
|
}, 8, ["entity-type", "tabs"]));
|
|
1504
1511
|
}
|
|
1505
1512
|
});
|
|
1506
1513
|
export {
|
|
1507
|
-
|
|
1514
|
+
Et as default
|
|
1508
1515
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as n, openBlock as o, createBlock as r, unref as i, withCtx as s, createVNode as u } from "vue";
|
|
2
2
|
import { useRouteParams as d } from "@vueuse/router";
|
|
3
|
-
import { br as m } from "./uuid.util-
|
|
4
|
-
import { _ as p } from "./CrmDetailView.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import { a5 as c } from "./index-
|
|
3
|
+
import { br as m } from "./uuid.util-SYJY4Bt5.js";
|
|
4
|
+
import { _ as p } from "./CrmDetailView.vue_vue_type_script_setup_true_lang-BTC2xhF6.js";
|
|
5
|
+
import { a5 as c } from "./index-roZXpdzB.js";
|
|
6
6
|
const k = /* @__PURE__ */ n({
|
|
7
7
|
__name: "IndividualDetailView",
|
|
8
8
|
props: {
|