@wisemen/wise-crm-web 2.0.0-alpha.11 → 2.0.0-alpha.12
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-D7hxiONf.js → BusinessDetailView-DBCcuhbr.js} +3 -3
- package/dist/{CrmDetailView.vue_vue_type_script_setup_true_lang-BF8hf6cf.js → CrmDetailView.vue_vue_type_script_setup_true_lang-BCS_BXhc.js} +1 -1
- package/dist/{DealCommunicationTabView-eB4ZK4Xm.js → DealCommunicationTabView-DpnmDqLy.js} +1 -1
- package/dist/{DealDetailView-SkQ6e-Oe.js → DealDetailView-6LoOYgXK.js} +26 -26
- package/dist/{IndividualDetailView-B5Jyf-Vf.js → IndividualDetailView-POyXs3J3.js} +3 -3
- package/dist/{index-CZFDtbuz.js → index-Bujrihvs.js} +3030 -2946
- package/dist/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/testing.js +1 -1
- package/dist/{uuid.util-CaePLXHv.js → uuid.util-90e4mXv8.js} +459 -459
- package/package.json +3 -2
|
@@ -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 {
|
|
5
|
-
import { _ } from "./CrmDetailView.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { _ as p } from "./index-Bujrihvs.js";
|
|
4
|
+
import { aZ as c } from "./uuid.util-90e4mXv8.js";
|
|
5
|
+
import { _ } from "./CrmDetailView.vue_vue_type_script_setup_true_lang-BCS_BXhc.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 R, UITabsRouterLinkItem as k, UIIconButton as B } from "@wisemen/vue-core-design-system";
|
|
4
|
-
import { X as E, O as I, R as T, a5 as V } from "./index-
|
|
4
|
+
import { X as E, O as I, R as T, a5 as V } from "./index-Bujrihvs.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-Bujrihvs.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
1
|
import { defineComponent as x, ref as M, useTemplateRef as xe, openBlock as d, createElementBlock as V, createBlock as g, unref as e, withCtx as r, createVNode as l, mergeProps as E, createElementVNode as F, toDisplayString as j, nextTick as Ie, computed as w, createCommentVNode as N, Fragment as W, createTextVNode as ne, renderList as Ne, useModel as Se, mergeModels as Fe } from "vue";
|
|
2
2
|
import { useRouteParams as ke } from "@vueuse/router";
|
|
3
3
|
import { useI18n as I } from "vue-i18n";
|
|
4
|
-
import {
|
|
5
|
-
import { _ as Ve } from "./CrmDetailView.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { c as k, d as q, e as Le, E as de, C as me, f as qe, h as Ee, i as Oe, j as Qe, k as K, g as Ae, J as Be, l as Ke, n as le, o as je, I as ze, p as pe, q as Q, r as Re, s as fe, t as Ge, v as
|
|
7
|
-
import { UITextField as z, toFormField as O, UIIconButton as be, UIDropdownMenu as Ua, UIDropdownMenuGroup as Ca, UIDropdownMenuItem as re, UIPhoneNumberField as se, UIFormLayout as ee, UIFormFieldGroup as A, UIFormFieldGrid as B, useToast as wa, UIFormDialog as ye, UIDialogHeader as ve, UIForm as ue, UIDialogBody as
|
|
4
|
+
import { aZ as ce, b3 as $e, b5 as Te, b8 as Me } from "./uuid.util-90e4mXv8.js";
|
|
5
|
+
import { _ as Ve } from "./CrmDetailView.vue_vue_type_script_setup_true_lang-BCS_BXhc.js";
|
|
6
|
+
import { c as k, d as q, e as Le, E as de, C as me, f as qe, h as Ee, i as Oe, j as Qe, k as K, g as Ae, J as Be, l as Ke, n as le, o as je, I as ze, p as pe, q as Q, r as Re, s as fe, t as Ge, v as Ze, U as Ye, w as He, u as Je, x as Xe, Q as We, y as ea, z as aa, B as ta, F as oe, G as _e, H as na, K as ie, L as la, N as oa, O as ia, P as ra, R as sa, S as ge, T as ua, V as ca, W as da, X as ma, Y as pa, Z as fa, $ as _a, a0 as ga, a1 as ba, a2 as ya, a3 as va, A as ha } from "./index-Bujrihvs.js";
|
|
7
|
+
import { UITextField as z, toFormField as O, UIIconButton as be, UIDropdownMenu as Ua, UIDropdownMenuGroup as Ca, UIDropdownMenuItem as re, UIPhoneNumberField as se, UIFormLayout as ee, UIFormFieldGroup as A, UIFormFieldGrid as B, useToast as wa, UIFormDialog as ye, UIDialogHeader as ve, UIForm as ue, UIDialogBody as Z, UIDialogFooter as Y, UIDialogFooterSubmit as H, createAutocompleteOptions as Pa, createSelectOptions as J, UIAutocomplete as Da, UISelect as X, useOverlay as ae, UIButton as xa, 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
10
|
import { useMutation as T, useQuery as Ue, useOffsetInfiniteQuery as Ia, useKeysetInfiniteQuery as Na } from "@wisemen/vue-core-api-utils";
|
|
@@ -398,7 +398,7 @@ const te = /* @__PURE__ */ x({
|
|
|
398
398
|
}), null, 16, ["label", "placeholder"])
|
|
399
399
|
], 64));
|
|
400
400
|
}
|
|
401
|
-
}),
|
|
401
|
+
}), Za = /* @__PURE__ */ x({
|
|
402
402
|
__name: "DealContactPersonCreateExistingForm",
|
|
403
403
|
props: {
|
|
404
404
|
form: {}
|
|
@@ -525,12 +525,12 @@ const te = /* @__PURE__ */ x({
|
|
|
525
525
|
_: 1
|
|
526
526
|
}));
|
|
527
527
|
}
|
|
528
|
-
}),
|
|
528
|
+
}), Ha = G.object({
|
|
529
529
|
email: G.email().nullable(),
|
|
530
530
|
existingContactPerson: Re.nullable(),
|
|
531
531
|
mobile: Q.nullable(),
|
|
532
532
|
phone: Q.nullable()
|
|
533
|
-
}),
|
|
533
|
+
}), Ja = 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 te = /* @__PURE__ */ x({
|
|
|
541
541
|
code: S.ZodIssueCode.custom,
|
|
542
542
|
message: fe.global.t("wise_crm.form.errors.at_least_one")
|
|
543
543
|
});
|
|
544
|
-
}),
|
|
544
|
+
}), Xa = /* @__PURE__ */ x({
|
|
545
545
|
__name: "DealContactPersonCreateDialog",
|
|
546
546
|
props: {
|
|
547
547
|
dealUuid: {},
|
|
@@ -550,7 +550,7 @@ const te = /* @__PURE__ */ x({
|
|
|
550
550
|
emits: ["close", "createNewContactPerson"],
|
|
551
551
|
setup(t, { emit: a }) {
|
|
552
552
|
const n = t, i = a, o = I(), s = q(), p = wa(), f = Ga(), m = Ge(), u = M(n.isCreatingNewContactPerson), y = R({
|
|
553
|
-
schema:
|
|
553
|
+
schema: Ja,
|
|
554
554
|
onSubmit: async (c) => {
|
|
555
555
|
try {
|
|
556
556
|
const P = await m.execute({
|
|
@@ -591,7 +591,7 @@ const te = /* @__PURE__ */ x({
|
|
|
591
591
|
p.unableToSave();
|
|
592
592
|
}
|
|
593
593
|
}), v = R({
|
|
594
|
-
schema:
|
|
594
|
+
schema: Ha,
|
|
595
595
|
onSubmit: async (c) => {
|
|
596
596
|
await h(
|
|
597
597
|
c.existingContactPerson,
|
|
@@ -651,7 +651,7 @@ const te = /* @__PURE__ */ x({
|
|
|
651
651
|
"prompt-on-unsaved-changes": !1
|
|
652
652
|
}, {
|
|
653
653
|
default: r(() => [
|
|
654
|
-
l(e(
|
|
654
|
+
l(e(Z), null, {
|
|
655
655
|
default: r(() => [
|
|
656
656
|
l(Ya, { form: e(y) }, null, 8, ["form"])
|
|
657
657
|
]),
|
|
@@ -659,7 +659,7 @@ const te = /* @__PURE__ */ x({
|
|
|
659
659
|
}),
|
|
660
660
|
l(e(Y), null, {
|
|
661
661
|
right: r(() => [
|
|
662
|
-
l(e(
|
|
662
|
+
l(e(H), {
|
|
663
663
|
"is-loading": e(y).isSubmitting.value,
|
|
664
664
|
label: e(o).t("wise_crm.shared.create")
|
|
665
665
|
}, null, 8, ["is-loading", "label"])
|
|
@@ -674,9 +674,9 @@ const te = /* @__PURE__ */ x({
|
|
|
674
674
|
"prompt-on-unsaved-changes": !1
|
|
675
675
|
}, {
|
|
676
676
|
default: r(() => [
|
|
677
|
-
l(e(
|
|
677
|
+
l(e(Z), null, {
|
|
678
678
|
default: r(() => [
|
|
679
|
-
l(
|
|
679
|
+
l(Za, {
|
|
680
680
|
form: e(v),
|
|
681
681
|
onCreateNewContactPerson: b
|
|
682
682
|
}, null, 8, ["form"])
|
|
@@ -685,7 +685,7 @@ const te = /* @__PURE__ */ x({
|
|
|
685
685
|
}),
|
|
686
686
|
l(e(Y), null, {
|
|
687
687
|
right: r(() => [
|
|
688
|
-
l(e(
|
|
688
|
+
l(e(H), {
|
|
689
689
|
"is-loading": e(v).isSubmitting.value,
|
|
690
690
|
label: e(o).t("wise_crm.shared.create")
|
|
691
691
|
}, null, 8, ["is-loading", "label"])
|
|
@@ -790,7 +790,7 @@ const at = S.object({
|
|
|
790
790
|
title: e(o).t("wise_crm.info_dialog.contact_person_update.title"),
|
|
791
791
|
description: e(o).t("wise_crm.info_dialog.contact_person_create.description")
|
|
792
792
|
}, null, 8, ["title", "description"]),
|
|
793
|
-
m.value !== null ? (d(), g(e(
|
|
793
|
+
m.value !== null ? (d(), g(e(Z), { key: 0 }, {
|
|
794
794
|
default: r(() => [
|
|
795
795
|
l(e(ee), null, {
|
|
796
796
|
default: r(() => [
|
|
@@ -811,7 +811,7 @@ const at = S.object({
|
|
|
811
811
|
]),
|
|
812
812
|
_: 1
|
|
813
813
|
}),
|
|
814
|
-
l(
|
|
814
|
+
l(Ze, {
|
|
815
815
|
title: e(o).t("wise_crm.shared.contact_info")
|
|
816
816
|
}, {
|
|
817
817
|
default: r(() => [
|
|
@@ -841,7 +841,7 @@ const at = S.object({
|
|
|
841
841
|
})) : N("", !0),
|
|
842
842
|
l(e(Y), null, {
|
|
843
843
|
right: r(() => [
|
|
844
|
-
l(e(
|
|
844
|
+
l(e(H), {
|
|
845
845
|
"is-loading": e(u).isSubmitting.value,
|
|
846
846
|
label: e(o).t("wise_crm.shared.save_changes")
|
|
847
847
|
}, null, 8, ["is-loading", "label"])
|
|
@@ -868,7 +868,7 @@ const lt = { class: "p-lg" }, ot = /* @__PURE__ */ x({
|
|
|
868
868
|
deal: {}
|
|
869
869
|
},
|
|
870
870
|
setup(t) {
|
|
871
|
-
const a = t, n = I(), i = q(), o = $a(), s = Ta(), p = Ma(), f =
|
|
871
|
+
const a = t, n = I(), i = q(), o = $a(), s = Ta(), p = Ma(), f = He({
|
|
872
872
|
persistInUrl: !1
|
|
873
873
|
}), m = nt({
|
|
874
874
|
params: {
|
|
@@ -892,7 +892,7 @@ const lt = { class: "p-lg" }, ot = /* @__PURE__ */ x({
|
|
|
892
892
|
function h(U) {
|
|
893
893
|
return n.t(aa.getI18nKey(U));
|
|
894
894
|
}
|
|
895
|
-
const C =
|
|
895
|
+
const C = J(Object.values($e)), c = J(Object.values(Te)), P = Je();
|
|
896
896
|
function $(U) {
|
|
897
897
|
f.updateSearch(U);
|
|
898
898
|
}
|
|
@@ -945,7 +945,7 @@ const lt = { class: "p-lg" }, ot = /* @__PURE__ */ x({
|
|
|
945
945
|
l(me, null, {
|
|
946
946
|
default: r(() => [
|
|
947
947
|
F("form", null, [
|
|
948
|
-
l(
|
|
948
|
+
l(Xe, { cols: 1 }, {
|
|
949
949
|
default: r(() => [
|
|
950
950
|
l(e(Da), {
|
|
951
951
|
modelValue: v.value,
|
|
@@ -961,7 +961,7 @@ const lt = { class: "p-lg" }, ot = /* @__PURE__ */ x({
|
|
|
961
961
|
label: "Deal owner",
|
|
962
962
|
"onUpdate:search": $
|
|
963
963
|
}, null, 8, ["modelValue", "items", "display-fn", "is-loading"]),
|
|
964
|
-
l(e(
|
|
964
|
+
l(e(X), {
|
|
965
965
|
modelValue: u.value,
|
|
966
966
|
"onUpdate:modelValue": [
|
|
967
967
|
D[1] || (D[1] = (L) => u.value = L),
|
|
@@ -973,7 +973,7 @@ const lt = { class: "p-lg" }, ot = /* @__PURE__ */ x({
|
|
|
973
973
|
"is-loading": e(o).isLoading.value,
|
|
974
974
|
items: e(C)
|
|
975
975
|
}, null, 8, ["modelValue", "label", "placeholder", "is-loading", "items"]),
|
|
976
|
-
l(e(
|
|
976
|
+
l(e(X), {
|
|
977
977
|
modelValue: y.value,
|
|
978
978
|
"onUpdate:modelValue": [
|
|
979
979
|
D[2] || (D[2] = (L) => y.value = L),
|
|
@@ -1010,7 +1010,7 @@ const lt = { class: "p-lg" }, ot = /* @__PURE__ */ x({
|
|
|
1010
1010
|
deal: {}
|
|
1011
1011
|
},
|
|
1012
1012
|
setup(t) {
|
|
1013
|
-
const a = t, n = I(), i = q(), o = Oa(), s = Qa(), p = ae(), f = p.create(
|
|
1013
|
+
const a = t, n = I(), i = q(), o = Oa(), s = Qa(), p = ae(), f = p.create(Xa), m = p.create(tt), u = w(() => a.deal.contactPersons.length > 0);
|
|
1014
1014
|
function y() {
|
|
1015
1015
|
f.open({
|
|
1016
1016
|
dealUuid: a.deal.uuid
|
|
@@ -1155,7 +1155,7 @@ const ut = /* @__PURE__ */ x({
|
|
|
1155
1155
|
function v(h) {
|
|
1156
1156
|
return h?.toColumnDisplayName ?? "-";
|
|
1157
1157
|
}
|
|
1158
|
-
const _ = w(() =>
|
|
1158
|
+
const _ = w(() => J(y.value));
|
|
1159
1159
|
async function b(h) {
|
|
1160
1160
|
if (h.triggers.length !== 0) {
|
|
1161
1161
|
if (h.triggers[0]?.triggerType === Me.EMAIL) {
|
|
@@ -1195,7 +1195,7 @@ const ut = /* @__PURE__ */ x({
|
|
|
1195
1195
|
label: p.value.toColumnDisplayName,
|
|
1196
1196
|
variant: "translucent",
|
|
1197
1197
|
color: "brand"
|
|
1198
|
-
}, null, 8, ["label"])) : (d(), g(e(
|
|
1198
|
+
}, null, 8, ["label"])) : (d(), g(e(X), {
|
|
1199
1199
|
key: 1,
|
|
1200
1200
|
"model-value": p.value,
|
|
1201
1201
|
"is-loading": e(m).isLoading.value,
|
|
@@ -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 {
|
|
4
|
-
import { _ as p } from "./CrmDetailView.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import { a4 as c } from "./index-
|
|
3
|
+
import { aZ as m } from "./uuid.util-90e4mXv8.js";
|
|
4
|
+
import { _ as p } from "./CrmDetailView.vue_vue_type_script_setup_true_lang-BCS_BXhc.js";
|
|
5
|
+
import { a4 as c } from "./index-Bujrihvs.js";
|
|
6
6
|
const k = /* @__PURE__ */ n({
|
|
7
7
|
__name: "IndividualDetailView",
|
|
8
8
|
props: {
|