@wisemen/wise-crm-web 2.0.0-alpha.32 → 2.0.0-alpha.33

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.
@@ -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-CfqdXN1x.js";
4
- import { bq as c } from "./uuid.util-DIPbDJ-m.js";
5
- import { _ } from "./CrmDetailView.vue_vue_type_script_setup_true_lang-C3Ak-VBU.js";
3
+ import { _ as p } from "./index-BcNzhcz4.js";
4
+ import { br as c } from "./uuid.util-BFJ_Ekju.js";
5
+ import { _ } from "./CrmDetailView.vue_vue_type_script_setup_true_lang-B1j_Ngmt.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-CfqdXN1x.js";
4
+ import { d as E, f as T, T as I, a6 as V } from "./index-BcNzhcz4.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-CfqdXN1x.js";
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-BcNzhcz4.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,9 +1,9 @@
1
- import { defineComponent as x, openBlock as d, createBlock as g, unref as e, ref as V, useTemplateRef as Se, createElementBlock as q, withCtx as r, createVNode as o, mergeProps as O, createElementVNode as S, toDisplayString as z, nextTick as ke, computed as w, createCommentVNode as F, Fragment as te, createTextVNode as ie, renderList as Fe, useModel as $e, mergeModels as Te } from "vue";
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 te, createTextVNode as ie, 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 { bq as fe, bv as Ve, bx as qe, bA as Ee } from "./uuid.util-DIPbDJ-m.js";
5
- import { _ as Le } from "./CrmDetailView.vue_vue_type_script_setup_true_lang-C3Ak-VBU.js";
6
- import { c as k, d as pe, e as Oe, f as $, h as L, i as Qe, E as _e, C as ge, 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 re, r as Ye, I as Ze, s as ye, t as A, v as He, w as be, 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 se, L as he, N as ra, O as ue, P as sa, R as ua, S as ca, T as da, V as ve, 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-CfqdXN1x.js";
4
+ import { br as fe, bw as Ve, by as Ee, bB as Le } from "./uuid.util-BFJ_Ekju.js";
5
+ import { _ as Oe } from "./CrmDetailView.vue_vue_type_script_setup_true_lang-B1j_Ngmt.js";
6
+ import { c as k, d as pe, e as qe, f as $, h as O, i as Qe, E as _e, C as ge, 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 re, r as Ye, I as Ze, s as ye, t as A, v as He, w as be, 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 se, L as he, N as ra, O as ue, P as sa, R as ua, S as ca, T as da, V as ve, 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-BcNzhcz4.js";
7
7
  import { useToast as Ue, useOverlay as H, UIConfirmDialog as wa, UIIconButton as ne, UITextField as G, toFormField as Q, UIDropdownMenu as Pa, UIDropdownMenuGroup as Da, UIDropdownMenuItem as ce, UIPhoneNumberField as de, UIFormLayout as le, UIFormFieldGroup as B, UIFormFieldGrid as K, UIFormDialog as Ce, UIDialogHeader as we, UIForm as me, 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 Pe } 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";
@@ -51,14 +51,14 @@ const Va = /* @__PURE__ */ x({
51
51
  }
52
52
  return (u, y) => (d(), g(e(ne), {
53
53
  label: e(t).t("wise_crm.deal.detail.sidebar.delete.label"),
54
- icon: e(Oe),
54
+ icon: e(qe),
55
55
  variant: "tertiary",
56
56
  class: "shrink-0",
57
57
  onClick: f
58
58
  }, null, 8, ["label", "icon"]));
59
59
  }
60
60
  });
61
- function qa() {
61
+ function Ea() {
62
62
  const n = $();
63
63
  return T({
64
64
  queryFn: async ({
@@ -78,7 +78,7 @@ function qa() {
78
78
  }
79
79
  });
80
80
  }
81
- function Ea() {
81
+ function La() {
82
82
  const n = $();
83
83
  return T({
84
84
  queryFn: async ({
@@ -98,7 +98,7 @@ function Ea() {
98
98
  }
99
99
  });
100
100
  }
101
- function La() {
101
+ function Oa() {
102
102
  const n = $();
103
103
  return T({
104
104
  queryFn: async ({
@@ -118,7 +118,7 @@ function La() {
118
118
  }
119
119
  });
120
120
  }
121
- function Oa() {
121
+ function qa() {
122
122
  const n = $();
123
123
  return T({
124
124
  queryFn: async ({
@@ -147,7 +147,7 @@ const Qa = {
147
147
  deal: {}
148
148
  },
149
149
  setup(n) {
150
- const a = n, t = I(), l = L(), i = V(!1), s = Se("nameFieldContainerRef"), c = Oa(), m = Y({
150
+ const a = n, t = I(), l = O(), i = V(!1), s = Se("nameFieldContainerRef"), c = qa(), m = Y({
151
151
  schema: Z.object({
152
152
  name: Z.string().min(1)
153
153
  }),
@@ -183,7 +183,7 @@ const Qa = {
183
183
  }
184
184
  m.submit();
185
185
  }
186
- return (_, b) => (d(), q("div", {
186
+ return (_, b) => (d(), E("div", {
187
187
  ref_key: "nameFieldContainerRef",
188
188
  ref: s
189
189
  }, [
@@ -192,7 +192,7 @@ const Qa = {
192
192
  form: e(m)
193
193
  }, {
194
194
  default: r(() => [
195
- o(e(G), O(e(Q)(e(f)), {
195
+ o(e(G), q(e(Q)(e(f)), {
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",
@@ -204,7 +204,7 @@ const Qa = {
204
204
  }, null, -1))
205
205
  ]),
206
206
  _: 1
207
- }, 8, ["form"])) : (d(), q("div", Qa, [
207
+ }, 8, ["form"])) : (d(), E("div", Qa, [
208
208
  S("h2", Aa, z(a.deal.name), 1),
209
209
  o(e(ne), {
210
210
  label: e(t).t("wise_crm.deal.detail.sidebar.name_field.edit_label"),
@@ -349,7 +349,7 @@ const Ra = { class: "flex items-start justify-between" }, za = { class: "flex fl
349
349
  uuid: e(s),
350
350
  class: "-m-xs"
351
351
  }, null, 8, ["label", "entity-type", "uuid"])) : F("", !0),
352
- t.description ? (d(), q("p", Ga, z(t.description), 1)) : F("", !0)
352
+ t.description ? (d(), E("p", Ga, z(t.description), 1)) : F("", !0)
353
353
  ]),
354
354
  S("div", Ya, [
355
355
  o(Be, {
@@ -441,8 +441,8 @@ const oe = /* @__PURE__ */ x({
441
441
  },
442
442
  setup(n) {
443
443
  const a = n, t = I();
444
- return (l, i) => (d(), q(te, null, [
445
- o(e(G), O(e(Q)(a.email), {
444
+ return (l, i) => (d(), E(te, null, [
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"
@@ -453,7 +453,7 @@ const oe = /* @__PURE__ */ x({
453
453
  ]),
454
454
  _: 1
455
455
  }),
456
- o(e(de), O(e(Q)(a.mobilePhone), {
456
+ o(e(de), 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"
@@ -464,7 +464,7 @@ const oe = /* @__PURE__ */ x({
464
464
  ]),
465
465
  _: 1
466
466
  }),
467
- o(e(de), O(e(Q)(a.phone), {
467
+ o(e(de), 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"
@@ -535,12 +535,12 @@ const oe = /* @__PURE__ */ x({
535
535
  },
536
536
  setup(n) {
537
537
  const a = n, t = I();
538
- return (l, i) => (d(), q(te, null, [
539
- o(e(G), O(e(Q)(a.firstName), {
538
+ return (l, i) => (d(), E(te, null, [
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")
542
542
  }), null, 16, ["label", "placeholder"]),
543
- o(e(G), O(e(Q)(a.lastName), {
543
+ o(e(G), q(e(Q)(a.lastName), {
544
544
  label: e(t).t("wise_crm.contact.create_dialog.form.fields.last_name"),
545
545
  placeholder: e(t).t("wise_crm.contact.create_dialog.form.fields.last_name")
546
546
  }), null, 16, ["label", "placeholder"])
@@ -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 = L(), c = Ue(), m = Ja(), f = Je(), u = V(t.isCreatingNewContactPerson), y = Y({
625
+ const t = n, l = a, i = I(), s = O(), c = Ue(), m = Ja(), f = Je(), u = V(t.isCreatingNewContactPerson), y = Y({
626
626
  schema: at,
627
627
  onSubmit: async (p) => {
628
628
  try {
@@ -830,7 +830,7 @@ const ot = N.object({
830
830
  },
831
831
  emits: ["close"],
832
832
  setup(n, { emit: a }) {
833
- const t = n, l = a, i = I(), s = L(), c = nt(), m = lt(
833
+ const t = n, l = a, i = I(), s = O(), c = nt(), m = lt(
834
834
  w(() => t.dealUuid),
835
835
  w(() => t.contactPersonUuid)
836
836
  ), f = w(() => m.result.value.isOk() ? m.result.value.getValue() : null), u = Y({
@@ -952,7 +952,7 @@ const st = { class: "p-lg" }, ut = /* @__PURE__ */ x({
952
952
  deal: {}
953
953
  },
954
954
  setup(n) {
955
- const a = n, t = I(), l = L(), i = qa(), s = Ea(), c = La(), m = ea({
955
+ const a = n, t = I(), l = O(), i = Ea(), s = La(), c = Oa(), m = ea({
956
956
  persistInUrl: !1
957
957
  }), f = rt({
958
958
  params: {
@@ -976,7 +976,7 @@ const st = { class: "p-lg" }, ut = /* @__PURE__ */ x({
976
976
  function v(U) {
977
977
  return t.t(oa.getI18nKey(U));
978
978
  }
979
- const C = ee(Object.values(Ve)), p = ee(Object.values(qe)), P = aa();
979
+ const C = ee(Object.values(Ve)), p = ee(Object.values(Ee)), P = aa();
980
980
  function M(U) {
981
981
  m.updateSearch(U);
982
982
  }
@@ -1025,7 +1025,7 @@ const st = { class: "p-lg" }, ut = /* @__PURE__ */ x({
1025
1025
  l.show(D);
1026
1026
  }
1027
1027
  }
1028
- return (U, D) => (d(), q("div", null, [
1028
+ return (U, D) => (d(), E("div", null, [
1029
1029
  o(ge, null, {
1030
1030
  default: r(() => [
1031
1031
  S("form", null, [
@@ -1034,11 +1034,11 @@ const st = { class: "p-lg" }, ut = /* @__PURE__ */ x({
1034
1034
  o(e(Ia), {
1035
1035
  modelValue: h.value,
1036
1036
  "onUpdate:modelValue": [
1037
- D[0] || (D[0] = (E) => h.value = E),
1037
+ D[0] || (D[0] = (L) => h.value = L),
1038
1038
  Ne
1039
1039
  ],
1040
1040
  items: _.value,
1041
- "display-fn": (E) => E.name,
1041
+ "display-fn": (L) => L.name,
1042
1042
  "is-loading": e(f).isLoading.value || e(c).isLoading.value,
1043
1043
  "search-mode": "remote",
1044
1044
  placeholder: "Select deal owner",
@@ -1048,7 +1048,7 @@ const st = { class: "p-lg" }, ut = /* @__PURE__ */ x({
1048
1048
  o(e(ae), {
1049
1049
  modelValue: u.value,
1050
1050
  "onUpdate:modelValue": [
1051
- D[1] || (D[1] = (E) => u.value = E),
1051
+ D[1] || (D[1] = (L) => u.value = L),
1052
1052
  j
1053
1053
  ],
1054
1054
  label: e(t).t("wise_crm.deal.form.fields.language"),
@@ -1060,7 +1060,7 @@ const st = { class: "p-lg" }, ut = /* @__PURE__ */ x({
1060
1060
  o(e(ae), {
1061
1061
  modelValue: y.value,
1062
1062
  "onUpdate:modelValue": [
1063
- D[2] || (D[2] = (E) => y.value = E),
1063
+ D[2] || (D[2] = (L) => y.value = L),
1064
1064
  Ie
1065
1065
  ],
1066
1066
  "display-fn": v,
@@ -1094,7 +1094,7 @@ const st = { class: "p-lg" }, ut = /* @__PURE__ */ x({
1094
1094
  deal: {}
1095
1095
  },
1096
1096
  setup(n) {
1097
- const a = n, t = I(), l = L(), i = Ka(), s = ja(), c = H(), m = c.create(tt), f = c.create(it), u = w(() => a.deal.contactPersons.length > 0);
1097
+ const a = n, t = I(), l = O(), i = Ka(), s = ja(), c = H(), m = c.create(tt), f = c.create(it), u = w(() => a.deal.contactPersons.length > 0);
1098
1098
  function y() {
1099
1099
  m.open({
1100
1100
  dealUuid: a.deal.uuid
@@ -1159,7 +1159,7 @@ const st = { class: "p-lg" }, ut = /* @__PURE__ */ x({
1159
1159
  }, null, 8, ["label", "icon"]))
1160
1160
  ]),
1161
1161
  default: r(() => [
1162
- (d(!0), q(te, null, Fe(a.deal.contactPersons, (p) => (d(), g(e(Fa), {
1162
+ (d(!0), E(te, null, Fe(a.deal.contactPersons, (p) => (d(), g(e(Fa), {
1163
1163
  key: p.uuid,
1164
1164
  "layout-id": p.uuid
1165
1165
  }, {
@@ -1228,7 +1228,7 @@ const ft = /* @__PURE__ */ x({
1228
1228
  }),
1229
1229
  emits: ["update:modelValue"],
1230
1230
  setup(n) {
1231
- const a = n, t = I(), l = $(), s = H().create(ca), c = $e(n, "modelValue"), m = L(), f = dt(), u = mt(
1231
+ const a = n, t = I(), l = $(), s = H().create(ca), c = $e(n, "modelValue"), m = O(), f = dt(), u = mt(
1232
1232
  w(() => c.value.toColumnUuid),
1233
1233
  w(() => l.getOptions().deals?.allowedTransitionTriggerTypes ?? [])
1234
1234
  ), y = w(() => (u.result.value.isOk() ? u.result.value.getValue() : []).flatMap((C) => C.triggers.length === 0 ? [
@@ -1246,7 +1246,7 @@ const ft = /* @__PURE__ */ x({
1246
1246
  const _ = w(() => ee(y.value));
1247
1247
  async function b(v) {
1248
1248
  if (v.triggers.length !== 0) {
1249
- if (v.triggers[0]?.triggerType === Ee.EMAIL) {
1249
+ if (v.triggers[0]?.triggerType === Le.EMAIL) {
1250
1250
  s.open({
1251
1251
  dealUuid: a.deal.uuid,
1252
1252
  client: {
@@ -1330,7 +1330,7 @@ const gt = /* @__PURE__ */ x({
1330
1330
  deal: {}
1331
1331
  },
1332
1332
  setup(n) {
1333
- const a = n, l = H().create(ma), i = L(), s = pt(), c = fa(), m = _t(
1333
+ const a = n, l = H().create(ma), i = O(), s = pt(), c = fa(), m = _t(
1334
1334
  w(() => a.deal.uuid)
1335
1335
  ), f = w(() => m.result.value.isOk() ? m.result.value.getValue().data : []);
1336
1336
  async function u(_) {
@@ -1398,7 +1398,7 @@ const gt = /* @__PURE__ */ x({
1398
1398
  /* NOTES */
1399
1399
  }
1400
1400
  ]);
1401
- return (m, f) => (d(), q("div", yt, [
1401
+ return (m, f) => (d(), E("div", yt, [
1402
1402
  S("div", bt, [
1403
1403
  S("div", ht, [
1404
1404
  o(Ba, {
@@ -1491,7 +1491,7 @@ const gt = /* @__PURE__ */ x({
1491
1491
  to: "deal-communication"
1492
1492
  }
1493
1493
  ]);
1494
- return (s, c) => (d(), g(Le, {
1494
+ return (s, c) => (d(), g(Oe, {
1495
1495
  key: e(l),
1496
1496
  "entity-type": e(fe).BUSINESS,
1497
1497
  tabs: i.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 { bq as m } from "./uuid.util-DIPbDJ-m.js";
4
- import { _ as p } from "./CrmDetailView.vue_vue_type_script_setup_true_lang-C3Ak-VBU.js";
5
- import { a5 as c } from "./index-CfqdXN1x.js";
3
+ import { br as m } from "./uuid.util-BFJ_Ekju.js";
4
+ import { _ as p } from "./CrmDetailView.vue_vue_type_script_setup_true_lang-B1j_Ngmt.js";
5
+ import { a5 as c } from "./index-BcNzhcz4.js";
6
6
  const k = /* @__PURE__ */ n({
7
7
  __name: "IndividualDetailView",
8
8
  props: {