@wisemen/wise-crm-web 2.0.0-alpha.37 → 2.0.0-alpha.39
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-CeSKs5bI.js → BusinessDetailView-BtA-vvUT.js} +2 -2
- package/dist/{CrmDetailView.vue_vue_type_script_setup_true_lang-DH0nCDqJ.js → CrmDetailView.vue_vue_type_script_setup_true_lang-xCc-CnYZ.js} +11 -11
- package/dist/DealCommunicationTabView-CQLIouhC.js +265 -0
- package/dist/{DealDetailView-DXd9cOxv.js → DealDetailView-B3BWJm2T.js} +127 -131
- package/dist/{IndividualDetailView-B9XhTiMD.js → IndividualDetailView-Be8w3l_5.js} +2 -2
- package/dist/{index-BaYi6FgB.js → index-DC7UPeB1.js} +2043 -2024
- package/dist/index.js +15 -15
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/DealCommunicationTabView-6qBWVkVQ.js +0 -199
package/package.json
CHANGED
|
@@ -1,199 +0,0 @@
|
|
|
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
|
-
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-BaYi6FgB.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
|
-
return L("mailIndex", {
|
|
11
|
-
params: {
|
|
12
|
-
queryParams: r.params
|
|
13
|
-
},
|
|
14
|
-
queryFn: (l) => T.getAll({
|
|
15
|
-
filters: r.params.filters.value,
|
|
16
|
-
pagination: l
|
|
17
|
-
})
|
|
18
|
-
});
|
|
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__ */ C({
|
|
21
|
-
__name: "DealCommunicationMailList",
|
|
22
|
-
props: {
|
|
23
|
-
mails: {}
|
|
24
|
-
},
|
|
25
|
-
setup(r) {
|
|
26
|
-
const l = r, c = N();
|
|
27
|
-
function u(d) {
|
|
28
|
-
return j().toDateTime(d.createdAt);
|
|
29
|
-
}
|
|
30
|
-
function x(d) {
|
|
31
|
-
return d.to.join(", ");
|
|
32
|
-
}
|
|
33
|
-
return (d, ie) => (t(), f("div", O, [
|
|
34
|
-
s("div", R, [
|
|
35
|
-
a(p, null, {
|
|
36
|
-
default: n(() => [
|
|
37
|
-
s("p", G, m(e(c).t("wise_crm.deal.communication.mail_list.title")), 1)
|
|
38
|
-
]),
|
|
39
|
-
_: 1
|
|
40
|
-
}),
|
|
41
|
-
l.mails.length === 0 ? (t(), o(e(U), {
|
|
42
|
-
key: 0,
|
|
43
|
-
icon: e(w),
|
|
44
|
-
title: e(c).t("wise_crm.deal.communication.mail_list.no_communication_sent"),
|
|
45
|
-
description: e(c).t("wise_crm.deal.communication.mail_list.create_quote_instruction"),
|
|
46
|
-
class: "h-120"
|
|
47
|
-
}, null, 8, ["icon", "title", "description"])) : _("", !0),
|
|
48
|
-
l.mails.length > 0 ? (t(), o(e(z), {
|
|
49
|
-
key: 1,
|
|
50
|
-
collapsible: !0,
|
|
51
|
-
type: "multiple",
|
|
52
|
-
class: "flex flex-col gap-0"
|
|
53
|
-
}, {
|
|
54
|
-
default: n(() => [
|
|
55
|
-
(t(!0), f(g, null, v(l.mails, (i, D) => (t(), o(e(B), {
|
|
56
|
-
key: i.uuid,
|
|
57
|
-
value: i.uuid
|
|
58
|
-
}, {
|
|
59
|
-
default: n(({ open: y }) => [
|
|
60
|
-
a(e(E), null, {
|
|
61
|
-
default: n(() => [
|
|
62
|
-
s("div", J, [
|
|
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
|
-
default: n(() => [
|
|
65
|
-
s("span", K, m(i.subject), 1)
|
|
66
|
-
]),
|
|
67
|
-
_: 2
|
|
68
|
-
}, 1024),
|
|
69
|
-
s("div", {
|
|
70
|
-
class: b([{
|
|
71
|
-
"border-b border-secondary": D < l.mails.length - 1
|
|
72
|
-
}, "px-2xl py-lg"])
|
|
73
|
-
}, [
|
|
74
|
-
a(A, { justify: "between" }, {
|
|
75
|
-
default: n(() => [
|
|
76
|
-
s("div", W, [
|
|
77
|
-
(t(), o(k(e(w)), { class: "size-4 shrink-0 text-secondary" })),
|
|
78
|
-
s("p", X, m(i.subject), 1)
|
|
79
|
-
]),
|
|
80
|
-
s("div", Y, [
|
|
81
|
-
s("div", Z, [
|
|
82
|
-
s("span", null, m(x(i)), 1),
|
|
83
|
-
s("span", null, m(u(i)), 1)
|
|
84
|
-
]),
|
|
85
|
-
(t(), o(k(e(S)), {
|
|
86
|
-
class: b([{
|
|
87
|
-
"-rotate-180": y
|
|
88
|
-
}, "size-4 shrink-0 text-secondary duration-300"])
|
|
89
|
-
}, null, 8, ["class"]))
|
|
90
|
-
])
|
|
91
|
-
]),
|
|
92
|
-
_: 2
|
|
93
|
-
}, 1024)
|
|
94
|
-
], 2)
|
|
95
|
-
])
|
|
96
|
-
]),
|
|
97
|
-
_: 2
|
|
98
|
-
}, 1024),
|
|
99
|
-
a(e($), { initial: !1 }, {
|
|
100
|
-
default: n(() => [
|
|
101
|
-
y ? (t(), o(e(H), {
|
|
102
|
-
key: 0,
|
|
103
|
-
class: "overflow-clip"
|
|
104
|
-
}, {
|
|
105
|
-
default: n(() => [
|
|
106
|
-
a(e(q), {
|
|
107
|
-
initial: {
|
|
108
|
-
opacity: 0,
|
|
109
|
-
height: 0,
|
|
110
|
-
y: -10
|
|
111
|
-
},
|
|
112
|
-
animate: {
|
|
113
|
-
opacity: 1,
|
|
114
|
-
height: "auto",
|
|
115
|
-
filter: "blur(0px)",
|
|
116
|
-
y: 0
|
|
117
|
-
},
|
|
118
|
-
exit: {
|
|
119
|
-
opacity: 0,
|
|
120
|
-
height: 0,
|
|
121
|
-
filter: "blur(5px)",
|
|
122
|
-
y: -10
|
|
123
|
-
},
|
|
124
|
-
transition: {
|
|
125
|
-
bounce: 0,
|
|
126
|
-
duration: 0.4,
|
|
127
|
-
type: "spring"
|
|
128
|
-
}
|
|
129
|
-
}, {
|
|
130
|
-
default: n(() => [
|
|
131
|
-
s("div", ee, [
|
|
132
|
-
i.attachments.length > 0 ? (t(), o(p, { key: 0 }, {
|
|
133
|
-
default: n(() => [
|
|
134
|
-
a(A, { class: "flex-wrap" }, {
|
|
135
|
-
default: n(() => [
|
|
136
|
-
(t(!0), f(g, null, v(i.attachments, (h) => (t(), o(V, {
|
|
137
|
-
key: h.uuid,
|
|
138
|
-
attachment: h
|
|
139
|
-
}, null, 8, ["attachment"]))), 128))
|
|
140
|
-
]),
|
|
141
|
-
_: 2
|
|
142
|
-
}, 1024)
|
|
143
|
-
]),
|
|
144
|
-
_: 2
|
|
145
|
-
}, 1024)) : _("", !0),
|
|
146
|
-
a(p, null, {
|
|
147
|
-
default: n(() => [
|
|
148
|
-
s("div", {
|
|
149
|
-
class: "prose prose-sm max-w-full py-3xl pb-xl",
|
|
150
|
-
innerHTML: i.text
|
|
151
|
-
}, null, 8, te)
|
|
152
|
-
]),
|
|
153
|
-
_: 2
|
|
154
|
-
}, 1024)
|
|
155
|
-
])
|
|
156
|
-
]),
|
|
157
|
-
_: 2
|
|
158
|
-
}, 1024)
|
|
159
|
-
]),
|
|
160
|
-
_: 2
|
|
161
|
-
}, 1024)) : _("", !0)
|
|
162
|
-
]),
|
|
163
|
-
_: 2
|
|
164
|
-
}, 1024)
|
|
165
|
-
]),
|
|
166
|
-
_: 2
|
|
167
|
-
}, 1032, ["value"]))), 128))
|
|
168
|
-
]),
|
|
169
|
-
_: 1
|
|
170
|
-
})) : _("", !0)
|
|
171
|
-
])
|
|
172
|
-
]));
|
|
173
|
-
}
|
|
174
|
-
}), ne = {
|
|
175
|
-
key: 0,
|
|
176
|
-
class: "p-xl"
|
|
177
|
-
}, _e = /* @__PURE__ */ C({
|
|
178
|
-
__name: "DealCommunicationTabView",
|
|
179
|
-
setup(r) {
|
|
180
|
-
const l = I("dealUuid"), c = M(() => ({
|
|
181
|
-
dealUuid: l.value
|
|
182
|
-
})), u = P({
|
|
183
|
-
params: {
|
|
184
|
-
filters: c
|
|
185
|
-
}
|
|
186
|
-
});
|
|
187
|
-
return (x, d) => (t(), f("div", null, [
|
|
188
|
-
e(u).isLoading.value ? (t(), f("div", ne, [
|
|
189
|
-
a(Q, { class: "h-150 w-full" })
|
|
190
|
-
])) : e(u).result.value.isOk() ? (t(), o(se, {
|
|
191
|
-
key: 1,
|
|
192
|
-
mails: e(u).result.value.getValue().data
|
|
193
|
-
}, null, 8, ["mails"])) : _("", !0)
|
|
194
|
-
]));
|
|
195
|
-
}
|
|
196
|
-
});
|
|
197
|
-
export {
|
|
198
|
-
_e as default
|
|
199
|
-
};
|