@wisemen/wise-crm-web 2.0.0-alpha.10 → 2.0.0-alpha.11
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--L1bhR8I.js → BusinessDetailView-D7hxiONf.js} +2 -2
- package/dist/{CrmDetailView.vue_vue_type_script_setup_true_lang-CkZX0YT2.js → CrmDetailView.vue_vue_type_script_setup_true_lang-BF8hf6cf.js} +5 -5
- package/dist/{DealCommunicationTabView-ByM1GzSP.js → DealCommunicationTabView-eB4ZK4Xm.js} +32 -32
- package/dist/{DealDetailView-FGWeCs6G.js → DealDetailView-SkQ6e-Oe.js} +142 -142
- package/dist/{IndividualDetailView-C2BxGT0k.js → IndividualDetailView-B5Jyf-Vf.js} +2 -2
- package/dist/{index-BD98vKv0.js → index-CZFDtbuz.js} +537 -536
- package/dist/index.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +13 -12
|
@@ -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-
|
|
3
|
+
import { _ as p } from "./index-CZFDtbuz.js";
|
|
4
4
|
import { aX as c } from "./uuid.util-CaePLXHv.js";
|
|
5
|
-
import { _ } from "./CrmDetailView.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { _ } from "./CrmDetailView.vue_vue_type_script_setup_true_lang-BF8hf6cf.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-CZFDtbuz.js";
|
|
5
5
|
import { useRoute as A, RouterView as H } from "vue-router";
|
|
6
6
|
class U {
|
|
7
7
|
/**
|
|
@@ -19,7 +19,7 @@ class U {
|
|
|
19
19
|
return !1;
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
const $ = { key: 0 }, j = { class: "flex h-dvh w-dvw flex-1 overflow-hidden" }, z = { class: "flex h-full min-w-100 flex-col" }, L = { class: "flex size-full flex-1 justify-center overflow-hidden bg-secondary" }, N = { class: "flex w-full flex-col" }, S = { class: "grid w-full grid-cols-3 p-lg" },
|
|
22
|
+
const $ = { key: 0 }, j = { class: "flex h-dvh w-dvw flex-1 overflow-hidden" }, z = { class: "flex h-full min-w-100 flex-col" }, L = { class: "flex size-full flex-1 justify-center overflow-hidden bg-secondary" }, N = { class: "flex w-full flex-col" }, S = { class: "grid w-full grid-cols-3 p-lg" }, D = { class: "flex items-center justify-center" }, F = { class: "flex items-center justify-end" }, K = { class: "size-full overflow-y-auto" }, M = /* @__PURE__ */ v({
|
|
23
23
|
__name: "CrmDetailView",
|
|
24
24
|
props: {
|
|
25
25
|
entityType: {},
|
|
@@ -44,7 +44,7 @@ const $ = { key: 0 }, j = { class: "flex h-dvh w-dvw flex-1 overflow-hidden" },
|
|
|
44
44
|
t("div", N, [
|
|
45
45
|
t("div", S, [
|
|
46
46
|
n[1] || (n[1] = t("div", null, null, -1)),
|
|
47
|
-
t("div",
|
|
47
|
+
t("div", D, [
|
|
48
48
|
r(e(R), { variant: "button-border" }, {
|
|
49
49
|
default: f(() => [
|
|
50
50
|
(d(!0), u(y, null, g(a.tabs, (s) => (d(), w(e(k), {
|
|
@@ -59,7 +59,7 @@ const $ = { key: 0 }, j = { class: "flex h-dvh w-dvw flex-1 overflow-hidden" },
|
|
|
59
59
|
_: 1
|
|
60
60
|
})
|
|
61
61
|
]),
|
|
62
|
-
t("div",
|
|
62
|
+
t("div", F, [
|
|
63
63
|
r(e(B), {
|
|
64
64
|
ref_key: "closeButtonRef",
|
|
65
65
|
ref: o,
|
|
@@ -73,7 +73,7 @@ const $ = { key: 0 }, j = { class: "flex h-dvh w-dvw flex-1 overflow-hidden" },
|
|
|
73
73
|
}, null, 8, ["icon"])
|
|
74
74
|
])
|
|
75
75
|
]),
|
|
76
|
-
t("div",
|
|
76
|
+
t("div", K, [
|
|
77
77
|
r(e(H))
|
|
78
78
|
])
|
|
79
79
|
])
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useRouteParams as
|
|
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
|
+
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,
|
|
5
|
-
import { UIEmptyState as
|
|
6
|
-
import { AnimatePresence as
|
|
7
|
-
import { AccordionRoot as
|
|
8
|
-
import { useI18n as
|
|
9
|
-
function
|
|
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-CZFDtbuz.js";
|
|
5
|
+
import { UIEmptyState as U } from "@wisemen/vue-core-design-system";
|
|
6
|
+
import { AnimatePresence as $, Motion as q } from "motion-v";
|
|
7
|
+
import { AccordionRoot as z, AccordionItem as B, AccordionHeader as E, AccordionTrigger as F, AccordionContent as H } from "reka-ui";
|
|
8
|
+
import { useI18n as N } from "vue-i18n";
|
|
9
|
+
function P(r) {
|
|
10
10
|
return L("mailIndex", {
|
|
11
11
|
params: {
|
|
12
12
|
queryParams: r.params
|
|
@@ -17,17 +17,17 @@ function Q(r) {
|
|
|
17
17
|
})
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
|
-
const O = { class: "p-xl" }, R = { class: "overflow-hidden rounded-xl border border-secondary bg-primary shadow-lg" }, G = { class: "text-md font-medium" }, J = { class: "relative" }, K = { class: "sr-only" }, W = { class: "flex min-w-0 flex-1 items-center gap-sm" }, X = { class: "truncate" }, Y = { class: "pointer-events-none flex items-center gap-sm" }, Z = { class: "flex flex-col items-end text-sm text-tertiary" }, ee = { class: "flex flex-col" }, te = ["innerHTML"], se = /* @__PURE__ */
|
|
20
|
+
const O = { class: "p-xl" }, R = { class: "overflow-hidden rounded-xl border border-secondary bg-primary shadow-lg" }, G = { class: "text-md font-medium" }, J = { class: "relative" }, K = { class: "sr-only" }, W = { class: "flex min-w-0 flex-1 items-center gap-sm" }, X = { class: "truncate" }, Y = { class: "pointer-events-none flex items-center gap-sm" }, Z = { class: "flex flex-col items-end text-sm text-tertiary" }, ee = { class: "flex flex-col" }, te = ["innerHTML"], se = /* @__PURE__ */ C({
|
|
21
21
|
__name: "DealCommunicationMailList",
|
|
22
22
|
props: {
|
|
23
23
|
mails: {}
|
|
24
24
|
},
|
|
25
25
|
setup(r) {
|
|
26
|
-
const l = r, c =
|
|
26
|
+
const l = r, c = N();
|
|
27
27
|
function u(d) {
|
|
28
28
|
return j().toDateTime(d.createdAt);
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function x(d) {
|
|
31
31
|
return d.to.join(", ");
|
|
32
32
|
}
|
|
33
33
|
return (d, ie) => (t(), f("div", O, [
|
|
@@ -38,29 +38,29 @@ const O = { class: "p-xl" }, R = { class: "overflow-hidden rounded-xl border bor
|
|
|
38
38
|
]),
|
|
39
39
|
_: 1
|
|
40
40
|
}),
|
|
41
|
-
l.mails.length === 0 ? (t(), o(e(
|
|
41
|
+
l.mails.length === 0 ? (t(), o(e(U), {
|
|
42
42
|
key: 0,
|
|
43
43
|
icon: e(w),
|
|
44
44
|
title: e(c).t("wise_crm.deal.communication.mail_list.no_communication_sent"),
|
|
45
45
|
description: e(c).t("wise_crm.deal.communication.mail_list.create_quote_instruction"),
|
|
46
46
|
class: "h-120"
|
|
47
47
|
}, null, 8, ["icon", "title", "description"])) : _("", !0),
|
|
48
|
-
l.mails.length > 0 ? (t(), o(e(
|
|
48
|
+
l.mails.length > 0 ? (t(), o(e(z), {
|
|
49
49
|
key: 1,
|
|
50
50
|
collapsible: !0,
|
|
51
51
|
type: "multiple",
|
|
52
52
|
class: "flex flex-col gap-0"
|
|
53
53
|
}, {
|
|
54
54
|
default: n(() => [
|
|
55
|
-
(t(!0), f(
|
|
55
|
+
(t(!0), f(g, null, v(l.mails, (i, D) => (t(), o(e(B), {
|
|
56
56
|
key: i.uuid,
|
|
57
57
|
value: i.uuid
|
|
58
58
|
}, {
|
|
59
|
-
default: n(({ open:
|
|
60
|
-
a(e(
|
|
59
|
+
default: n(({ open: y }) => [
|
|
60
|
+
a(e(E), null, {
|
|
61
61
|
default: n(() => [
|
|
62
62
|
s("div", J, [
|
|
63
|
-
a(e(
|
|
63
|
+
a(e(F), { class: "absolute inset-0 rounded-none ring-brand-500 ring-offset-1 duration-200 outline-none focus-visible:ring-2" }, {
|
|
64
64
|
default: n(() => [
|
|
65
65
|
s("span", K, m(i.subject), 1)
|
|
66
66
|
]),
|
|
@@ -71,7 +71,7 @@ const O = { class: "p-xl" }, R = { class: "overflow-hidden rounded-xl border bor
|
|
|
71
71
|
"border-b border-secondary": D < l.mails.length - 1
|
|
72
72
|
}, "px-2xl py-lg"])
|
|
73
73
|
}, [
|
|
74
|
-
a(
|
|
74
|
+
a(A, { justify: "between" }, {
|
|
75
75
|
default: n(() => [
|
|
76
76
|
s("div", W, [
|
|
77
77
|
(t(), o(k(e(w)), { class: "size-4 shrink-0 text-secondary" })),
|
|
@@ -79,12 +79,12 @@ const O = { class: "p-xl" }, R = { class: "overflow-hidden rounded-xl border bor
|
|
|
79
79
|
]),
|
|
80
80
|
s("div", Y, [
|
|
81
81
|
s("div", Z, [
|
|
82
|
-
s("span", null, m(
|
|
82
|
+
s("span", null, m(x(i)), 1),
|
|
83
83
|
s("span", null, m(u(i)), 1)
|
|
84
84
|
]),
|
|
85
85
|
(t(), o(k(e(S)), {
|
|
86
86
|
class: b([{
|
|
87
|
-
"-rotate-180":
|
|
87
|
+
"-rotate-180": y
|
|
88
88
|
}, "size-4 shrink-0 text-secondary duration-300"])
|
|
89
89
|
}, null, 8, ["class"]))
|
|
90
90
|
])
|
|
@@ -96,14 +96,14 @@ const O = { class: "p-xl" }, R = { class: "overflow-hidden rounded-xl border bor
|
|
|
96
96
|
]),
|
|
97
97
|
_: 2
|
|
98
98
|
}, 1024),
|
|
99
|
-
a(e(
|
|
99
|
+
a(e($), { initial: !1 }, {
|
|
100
100
|
default: n(() => [
|
|
101
|
-
|
|
101
|
+
y ? (t(), o(e(H), {
|
|
102
102
|
key: 0,
|
|
103
103
|
class: "overflow-clip"
|
|
104
104
|
}, {
|
|
105
105
|
default: n(() => [
|
|
106
|
-
a(e(
|
|
106
|
+
a(e(q), {
|
|
107
107
|
initial: {
|
|
108
108
|
opacity: 0,
|
|
109
109
|
height: 0,
|
|
@@ -131,11 +131,11 @@ const O = { class: "p-xl" }, R = { class: "overflow-hidden rounded-xl border bor
|
|
|
131
131
|
s("div", ee, [
|
|
132
132
|
i.attachments.length > 0 ? (t(), o(p, { key: 0 }, {
|
|
133
133
|
default: n(() => [
|
|
134
|
-
a(
|
|
134
|
+
a(A, { class: "flex-wrap" }, {
|
|
135
135
|
default: n(() => [
|
|
136
|
-
(t(!0), f(
|
|
137
|
-
key:
|
|
138
|
-
attachment:
|
|
136
|
+
(t(!0), f(g, null, v(i.attachments, (h) => (t(), o(V, {
|
|
137
|
+
key: h.uuid,
|
|
138
|
+
attachment: h
|
|
139
139
|
}, null, 8, ["attachment"]))), 128))
|
|
140
140
|
]),
|
|
141
141
|
_: 2
|
|
@@ -174,19 +174,19 @@ const O = { class: "p-xl" }, R = { class: "overflow-hidden rounded-xl border bor
|
|
|
174
174
|
}), ne = {
|
|
175
175
|
key: 0,
|
|
176
176
|
class: "p-xl"
|
|
177
|
-
}, _e = /* @__PURE__ */
|
|
177
|
+
}, _e = /* @__PURE__ */ C({
|
|
178
178
|
__name: "DealCommunicationTabView",
|
|
179
179
|
setup(r) {
|
|
180
|
-
const l =
|
|
180
|
+
const l = I("dealUuid"), c = M(() => ({
|
|
181
181
|
dealUuid: l.value
|
|
182
|
-
})), u =
|
|
182
|
+
})), u = P({
|
|
183
183
|
params: {
|
|
184
184
|
filters: c
|
|
185
185
|
}
|
|
186
186
|
});
|
|
187
|
-
return (
|
|
187
|
+
return (x, d) => (t(), f("div", null, [
|
|
188
188
|
e(u).isLoading.value ? (t(), f("div", ne, [
|
|
189
|
-
a(
|
|
189
|
+
a(Q, { class: "h-150 w-full" })
|
|
190
190
|
])) : e(u).result.value.isOk() ? (t(), o(se, {
|
|
191
191
|
key: 1,
|
|
192
192
|
mails: e(u).result.value.getValue().data
|