@wisemen/wise-crm-web 0.0.0-alpha.21 → 0.0.0-alpha.22
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.
|
@@ -23,15 +23,15 @@ var _hoisted_1$1 = { class: "p-xl" }, _hoisted_2 = { class: "bg-primary border-s
|
|
|
23
23
|
}, _hoisted_5 = { class: "text-3xl font-semibold" }, _hoisted_6 = { class: "relative" }, _hoisted_7 = { class: "sr-only" }, _hoisted_8 = { class: "gap-sm flex min-w-0 flex-1 items-center" }, _hoisted_9 = { class: "truncate" }, _hoisted_10 = { class: "gap-sm flex items-center" }, _hoisted_11 = { class: "text-tertiary flex flex-col items-end text-sm" }, _hoisted_12 = { class: "flex flex-col" }, _hoisted_13 = ["innerHTML"], DealCommunicationMailList_default = /* @__PURE__ */ defineComponent({
|
|
24
24
|
__name: "DealCommunicationMailList",
|
|
25
25
|
props: { mails: {} },
|
|
26
|
-
setup(
|
|
27
|
-
let U =
|
|
26
|
+
setup(V) {
|
|
27
|
+
let U = V, G = useI18n();
|
|
28
28
|
function K(m) {
|
|
29
29
|
return useDateTimeFormat().toDateTime(m.createdAt);
|
|
30
30
|
}
|
|
31
31
|
function q(m) {
|
|
32
32
|
return m.to.join(", ");
|
|
33
33
|
}
|
|
34
|
-
return (
|
|
34
|
+
return (V, W) => (openBlock(), createElementBlock("div", _hoisted_1$1, [createElementVNode("div", _hoisted_2, [
|
|
35
35
|
createVNode(DealCommunicationMailListSectionContainer_default, null, {
|
|
36
36
|
default: withCtx(() => [createElementVNode("p", _hoisted_3, toDisplayString(unref(G).t("wise_crm.deal.communication.mail_list.title")), 1)]),
|
|
37
37
|
_: 1
|
|
@@ -43,31 +43,27 @@ var _hoisted_1$1 = { class: "p-xl" }, _hoisted_2 = { class: "bg-primary border-s
|
|
|
43
43
|
type: "multiple",
|
|
44
44
|
class: "flex flex-col gap-0"
|
|
45
45
|
}, {
|
|
46
|
-
default: withCtx(() => [(openBlock(!0), createElementBlock(Fragment, null, renderList(U.mails, (H) => (openBlock(), createBlock(unref(AccordionItem_default), {
|
|
47
|
-
key:
|
|
48
|
-
value:
|
|
49
|
-
class: "border-secondary border-b last:border-b-0"
|
|
46
|
+
default: withCtx(() => [(openBlock(!0), createElementBlock(Fragment, null, renderList(U.mails, (V, H) => (openBlock(), createBlock(unref(AccordionItem_default), {
|
|
47
|
+
key: V.uuid,
|
|
48
|
+
value: V.uuid
|
|
50
49
|
}, {
|
|
51
|
-
default: withCtx(({ open:
|
|
50
|
+
default: withCtx(({ open: B }) => [createVNode(unref(AccordionHeader_default), null, {
|
|
52
51
|
default: withCtx(() => [createElementVNode("div", _hoisted_6, [createVNode(unref(AccordionTrigger_default), { class: "ring-brand-500 absolute inset-0 rounded-none ring-offset-1 duration-200 outline-none focus-visible:ring-2" }, {
|
|
53
|
-
default: withCtx(() => [createElementVNode("span", _hoisted_7, toDisplayString(
|
|
52
|
+
default: withCtx(() => [createElementVNode("span", _hoisted_7, toDisplayString(V.subject), 1)]),
|
|
54
53
|
_: 2
|
|
55
|
-
}, 1024), createVNode(
|
|
56
|
-
default: withCtx(() => [
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}, null, 8, ["class"])])]),
|
|
64
|
-
_: 2
|
|
65
|
-
}, 1024)]),
|
|
54
|
+
}, 1024), createElementVNode("div", { class: normalizeClass([{ "border-b border-secondary": H < U.mails.length - 1 }, "py-lg px-2xl"]) }, [createVNode(AppGroup_default, { justify: "between" }, {
|
|
55
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_8, [createVNode(unref(VcIcon), {
|
|
56
|
+
icon: "mail",
|
|
57
|
+
class: "text-secondary size-4 flex-shrink-0"
|
|
58
|
+
}), createElementVNode("p", _hoisted_9, toDisplayString(V.subject), 1)]), createElementVNode("div", _hoisted_10, [createElementVNode("div", _hoisted_11, [createElementVNode("span", null, toDisplayString(q(V)), 1), createElementVNode("span", null, toDisplayString(K(V)), 1)]), createVNode(unref(VcIcon), {
|
|
59
|
+
class: normalizeClass([{ "-rotate-180": B }, "text-secondary size-4 flex-shrink-0 duration-300"]),
|
|
60
|
+
icon: "chevronDown"
|
|
61
|
+
}, null, 8, ["class"])])]),
|
|
66
62
|
_: 2
|
|
67
|
-
}, 1024)])]),
|
|
63
|
+
}, 1024)], 2)])]),
|
|
68
64
|
_: 2
|
|
69
65
|
}, 1024), createVNode(unref(_sfc_main), { initial: !1 }, {
|
|
70
|
-
default: withCtx(() => [
|
|
66
|
+
default: withCtx(() => [B ? (openBlock(), createBlock(unref(AccordionContent_default), {
|
|
71
67
|
key: 0,
|
|
72
68
|
class: "overflow-clip"
|
|
73
69
|
}, {
|
|
@@ -95,9 +91,9 @@ var _hoisted_1$1 = { class: "p-xl" }, _hoisted_2 = { class: "bg-primary border-s
|
|
|
95
91
|
type: "spring"
|
|
96
92
|
}
|
|
97
93
|
}, {
|
|
98
|
-
default: withCtx(() => [createElementVNode("div", _hoisted_12, [
|
|
94
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_12, [V.attachments.length > 0 ? (openBlock(), createBlock(DealCommunicationMailListSectionContainer_default, { key: 0 }, {
|
|
99
95
|
default: withCtx(() => [createVNode(AppGroup_default, null, {
|
|
100
|
-
default: withCtx(() => [(openBlock(!0), createElementBlock(Fragment, null, renderList(
|
|
96
|
+
default: withCtx(() => [(openBlock(!0), createElementBlock(Fragment, null, renderList(V.attachments, (m) => (openBlock(), createBlock(DealExternalAttachment_default, {
|
|
101
97
|
key: m.uuid,
|
|
102
98
|
attachment: m
|
|
103
99
|
}, null, 8, ["attachment"]))), 128))]),
|
|
@@ -107,7 +103,7 @@ var _hoisted_1$1 = { class: "p-xl" }, _hoisted_2 = { class: "bg-primary border-s
|
|
|
107
103
|
}, 1024)) : createCommentVNode("", !0), createVNode(DealCommunicationMailListSectionContainer_default, null, {
|
|
108
104
|
default: withCtx(() => [createElementVNode("div", {
|
|
109
105
|
class: "prose pb-xl py-3xl max-w-full",
|
|
110
|
-
innerHTML:
|
|
106
|
+
innerHTML: V.text
|
|
111
107
|
}, null, 8, _hoisted_13)]),
|
|
112
108
|
_: 2
|
|
113
109
|
}, 1024)])]),
|
|
@@ -129,10 +125,10 @@ var _hoisted_1$1 = { class: "p-xl" }, _hoisted_2 = { class: "bg-primary border-s
|
|
|
129
125
|
}, DealCommunicationTabView_default = /* @__PURE__ */ defineComponent({
|
|
130
126
|
__name: "DealCommunicationTabView",
|
|
131
127
|
setup(m) {
|
|
132
|
-
let
|
|
133
|
-
return (m,
|
|
128
|
+
let z = useRouteParams("dealUuid"), B = useMailIndexQuery({ params: { filters: computed(() => ({ dealUuid: z.value })) } });
|
|
129
|
+
return (m, z) => (openBlock(), createElementBlock("div", null, [unref(B).isLoading.value ? (openBlock(), createElementBlock("div", _hoisted_1, [createVNode(AppSkeletonLoader_default, { class: "h-150 w-full" })])) : unref(B).data.value ? (openBlock(), createBlock(DealCommunicationMailList_default, {
|
|
134
130
|
key: 1,
|
|
135
|
-
mails: unref(
|
|
131
|
+
mails: unref(B).data.value ?? []
|
|
136
132
|
}, null, 8, ["mails"])) : createCommentVNode("", !0)]));
|
|
137
133
|
}
|
|
138
134
|
});
|
package/dist/index.js
CHANGED
|
@@ -17998,7 +17998,7 @@ function dealRoutes(e) {
|
|
|
17998
17998
|
let b = [...e.map((e) => e.route), {
|
|
17999
17999
|
name: "deal-communication",
|
|
18000
18000
|
path: "communication",
|
|
18001
|
-
component: () => import("./DealCommunicationTabView-
|
|
18001
|
+
component: () => import("./DealCommunicationTabView-BaP8NtDC.js")
|
|
18002
18002
|
}];
|
|
18003
18003
|
return [{
|
|
18004
18004
|
name: "deal-detail",
|
package/package.json
CHANGED