@wisemen/wise-crm-web 1.0.0 → 1.2.0
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/ActivityIcon-DNdtN-M_.js +19 -0
- package/dist/AppSkeletonLoader-Dq6pKznm.js +1112 -0
- package/dist/{AttachmentIcon-CsucE3yf.js → AttachmentIcon-BLUd7LaN.js} +9 -7
- package/dist/BoldIcon-WRYUWz15.js +16 -0
- package/dist/{BookIcon-DgT3flV5.js → BookIcon-Bb3r5y_J.js} +9 -7
- package/dist/{BuildingIcon-Bm18omgW.js → BuildingIcon-DFutRg8d.js} +9 -7
- package/dist/{BuildingsIcon-D4X7QciL.js → BuildingsIcon-BVHy6yoa.js} +9 -7
- package/dist/{BulletListIcon-CNCV-cOS.js → BulletListIcon-BhOXLSBa.js} +9 -7
- package/dist/BusinessDetailSidebarProvider-a6VeNUii.js +2946 -0
- package/dist/BusinessDetailView-Dz3wDSx5.js +24 -0
- package/dist/ChevronDownIcon-BmyTSPND.js +19 -0
- package/dist/ClockIcon-BYfZAvIE.js +23 -0
- package/dist/ClockPlusIcon-BcNi0Y9I.js +23 -0
- package/dist/{CopyIcon-CUomKXdn.js → CopyIcon-2eV8MRv_.js} +9 -7
- package/dist/CrmDetailHeaderCard-BkA0Z-Cu.js +2523 -0
- package/dist/CrmDetailView-BhZEQqUH.js +67 -0
- package/dist/DealCommunicationTabView-Drp9MEPu.js +140 -0
- package/dist/DealDetailView-DWLudchX.js +1049 -0
- package/dist/DealExternalAttachment-B6l0gDqF.js +179 -0
- package/dist/{DealIcon-CpO-DkyS.js → DealIcon-BwUWYDxo.js} +9 -7
- package/dist/DealSendMailDialog-Dqei4933.js +1566 -0
- package/dist/DownloadCloudIcon-BSrLGGrY.js +19 -0
- package/dist/{EditWithLineIcon-C0WMD50F.js → EditWithLineIcon-BKYDPJOY.js} +9 -7
- package/dist/{Error-X0deDY-N.js → Error-za-wClcU.js} +2591 -2462
- package/dist/{FileIcon-3FebXgYQ.js → FileIcon-DL1e1tAu.js} +9 -7
- package/dist/FilterLinesIcon-DgVMySAE.js +22 -0
- package/dist/H1Icon-B6NEsEbj.js +17 -0
- package/dist/{H2Icon-CuEmp9I0.js → H2Icon-CNof5Ohu.js} +9 -7
- package/dist/{H3Icon-wAPhdYIf.js → H3Icon-B2F2Tb6r.js} +9 -7
- package/dist/HashIcon-C_XttKfW.js +19 -0
- package/dist/HomeFilledIcon-DtZ2eXxt.js +16 -0
- package/dist/IndividualDetailSidebarProvider-jjRoK1Av.js +609 -0
- package/dist/IndividualDetailView-BqIRHn-0.js +24 -0
- package/dist/ItalicIcon-DqBns3yy.js +17 -0
- package/dist/{LayersTreeIcon-Ct-owndO.js → LayersTreeIcon-DZZCSCY9.js} +10 -8
- package/dist/{LinkBrokenIcon-CTlqmapl.js → LinkBrokenIcon-BNBpWSi7.js} +9 -7
- package/dist/{LinkExternalIcon-LOVtSqBT.js → LinkExternalIcon-B7SHeB1_.js} +9 -7
- package/dist/LinkIcon-8bCrZEv9.js +17 -0
- package/dist/{LocationPinIcon-Cp-wRgk2.js → LocationPinIcon-UySRqSfG.js} +9 -7
- package/dist/{MailIcon-CnTrB1k3.js → MailIcon-BT7gSIZb.js} +9 -7
- package/dist/{MobilePhoneIcon-B747hmpS.js → MobilePhoneIcon-_KQGnCSS.js} +9 -7
- package/dist/NumberedListIcon-B-JVTSAe.js +17 -0
- package/dist/{PhoneIcon-94MYVL85.js → PhoneIcon-DGGW_MNR.js} +9 -7
- package/dist/{RefreshIcon-DRe3coBc.js → RefreshIcon-D1QWfdPD.js} +9 -7
- package/dist/{SendIcon-MYItp1xI.js → SendIcon-BtJ-NCec.js} +9 -7
- package/dist/{SettingsIcon-C0qTAv0w.js → SettingsIcon-CWFwJelS.js} +10 -8
- package/dist/{StarOutlineIcon-CiFLgepk.js → StarOutlineIcon-C-ELTCDQ.js} +9 -7
- package/dist/{StarYellowIcon-C0v_XGwI.js → StarYellowIcon-7wuNWaQO.js} +9 -7
- package/dist/{ThreeDotsIcon-lujOTU3G.js → ThreeDotsIcon-C56RWk-0.js} +12 -10
- package/dist/TimeLineMarkerIcon-DLmPwfs6.js +18 -0
- package/dist/{TrashIcon-v4L9SEK_.js → TrashIcon-o4PWmcYe.js} +9 -7
- package/dist/UploadCloudIcon-D2tWB0NP.js +19 -0
- package/dist/{UserCircleIcon-BjUt_2C4.js → UserCircleIcon-DiDajcIH.js} +10 -8
- package/dist/UserIcon-Bv1eF7ln.js +22 -0
- package/dist/{VerticalDotsIcon-Y3m6tlQ2.js → VerticalDotsIcon-YcD73UqY.js} +9 -7
- package/dist/{WalletIcon-pPsKbzmh.js → WalletIcon-CUh92U5K.js} +9 -7
- package/dist/_plugin-vue_export-helper-D3hKq4w_.js +8 -0
- package/dist/client-9P6xe_5g.js +4188 -0
- package/dist/components/auto-focus/AutoFocus.vue.d.ts +13 -0
- package/dist/components/column-layout/ColumnLayout.vue.d.ts +1 -1
- package/dist/components/row-layout/RowLayout.vue.d.ts +1 -1
- package/dist/components/text/Text.vue.d.ts +1 -1
- package/dist/index.js +1881 -1693
- package/dist/style.css +2 -2
- package/dist/testing.js +102 -98
- package/dist/utils/color.util.d.ts +6 -0
- package/dist/{uuid.util-C1p-yuFc.js → uuid.util-DpiDKVoj.js} +4 -2
- package/package.json +30 -30
- package/dist/ActivityIcon-DFD9ZhO0.js +0 -17
- package/dist/AppSkeletonLoader-BAhoOmFD.js +0 -1106
- package/dist/BoldIcon-DY2FlAS0.js +0 -14
- package/dist/BusinessDetailSidebarProvider-Dm6Dd7Nq.js +0 -2899
- package/dist/BusinessDetailView-BHVUfCpV.js +0 -24
- package/dist/ChevronDownIcon-CfBAAAca.js +0 -17
- package/dist/ClockIcon-Ckr1IQBt.js +0 -21
- package/dist/ClockPlusIcon-CVN69pCS.js +0 -21
- package/dist/CrmDetailHeaderCard-CiVLyIuw.js +0 -2516
- package/dist/CrmDetailView-DaAuWeiB.js +0 -65
- package/dist/DealCommunicationTabView-xq_zOAsr.js +0 -137
- package/dist/DealDetailView-C54XpYN1.js +0 -1021
- package/dist/DealExternalAttachment-Dp44vkgt.js +0 -177
- package/dist/DealSendMailDialog-D11Tgd_A.js +0 -1552
- package/dist/DownloadCloudIcon-VMmB9vit.js +0 -17
- package/dist/FilterLinesIcon-DHpRPKJB.js +0 -20
- package/dist/H1Icon-CPVGTTtl.js +0 -15
- package/dist/HashIcon-C2kfHjTC.js +0 -17
- package/dist/HomeFilledIcon-CxIazF0B.js +0 -14
- package/dist/IndividualDetailSidebarProvider-BvjhFng9.js +0 -608
- package/dist/IndividualDetailView-Cq8iAwQv.js +0 -24
- package/dist/ItalicIcon-DfV3EOdk.js +0 -15
- package/dist/LinkIcon-DqBbVrvs.js +0 -15
- package/dist/NumberedListIcon-amJxDaaD.js +0 -15
- package/dist/TimeLineMarkerIcon-C4LfErbc.js +0 -16
- package/dist/UploadCloudIcon-j1-1Rvqb.js +0 -17
- package/dist/UserIcon-Cb2jFKLr.js +0 -20
- package/dist/_plugin-vue_export-helper-BSi1g3Lh.js +0 -6
- package/dist/client-S6BLV3Ct.js +0 -4191
|
@@ -1,177 +0,0 @@
|
|
|
1
|
-
import { s as ZonedDateTimeTransformer } from "./AppSkeletonLoader-BAhoOmFD.js";
|
|
2
|
-
import { $ as viewMailIndexV1, _t as MimeType, o as createMailV1 } from "./client-S6BLV3Ct.js";
|
|
3
|
-
import { t as __plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-BSi1g3Lh.js";
|
|
4
|
-
import { createBlock, createElementBlock, createElementVNode, createVNode, defineComponent, openBlock, renderSlot, toDisplayString, unref, withCtx } from "vue";
|
|
5
|
-
import { VcIcon, VcIconButton } from "@wisemen/vue-core-components";
|
|
6
|
-
import { Primitive } from "reka-ui";
|
|
7
|
-
var FileReferenceTransformer = class {
|
|
8
|
-
static fromDto(p) {
|
|
9
|
-
return {
|
|
10
|
-
uuid: p.uuid,
|
|
11
|
-
name: p.name,
|
|
12
|
-
blurHash: p.blurHash,
|
|
13
|
-
mimeType: p.mimeType ?? MimeType.TEXT_PLAIN
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
static fromNullableDto(p) {
|
|
17
|
-
return p === null ? null : this.fromDto(p);
|
|
18
|
-
}
|
|
19
|
-
static toDto(p) {
|
|
20
|
-
return p.uuid;
|
|
21
|
-
}
|
|
22
|
-
static toForm(p) {
|
|
23
|
-
return {
|
|
24
|
-
uuid: p.uuid,
|
|
25
|
-
name: p.name,
|
|
26
|
-
blurHash: p.blurHash,
|
|
27
|
-
mimeType: p.mimeType,
|
|
28
|
-
order: 0,
|
|
29
|
-
url: ""
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
static toNullableDto(p) {
|
|
33
|
-
return p === null ? null : this.toDto(p);
|
|
34
|
-
}
|
|
35
|
-
static toNullableForm(p) {
|
|
36
|
-
return p === null ? null : this.toForm(p);
|
|
37
|
-
}
|
|
38
|
-
}, RevealOnHoverOrFocus_default = /* @__PURE__ */ defineComponent({
|
|
39
|
-
__name: "RevealOnHoverOrFocus",
|
|
40
|
-
setup(p) {
|
|
41
|
-
return (p, M) => (openBlock(), createBlock(unref(Primitive), {
|
|
42
|
-
"as-child": !0,
|
|
43
|
-
class: "opacity-0 duration-100 group-hover:opacity-100 group-has-focus-within:opacity-100 focus-visible:opacity-100 has-focus-visible:opacity-100 pointer-coarse:opacity-100"
|
|
44
|
-
}, {
|
|
45
|
-
default: withCtx(() => [renderSlot(p.$slots, "default")]),
|
|
46
|
-
_: 3
|
|
47
|
-
}));
|
|
48
|
-
}
|
|
49
|
-
}), FileUtil = class {
|
|
50
|
-
static mimeTypeMap = {
|
|
51
|
-
"application/json": "json",
|
|
52
|
-
"application/msword": "doc",
|
|
53
|
-
"application/pdf": "pdf",
|
|
54
|
-
"application/vnd.ms-excel": "xls",
|
|
55
|
-
"application/vnd.ms-powerpoint": "ppt",
|
|
56
|
-
"application/vnd.openxmlformats-officedocument.presentationml.presentation": "pptx",
|
|
57
|
-
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": "xlsx",
|
|
58
|
-
"application/vnd.openxmlformats-officedocument.wordprocessingml.document": "docx",
|
|
59
|
-
"application/x-rar-compressed": "rar",
|
|
60
|
-
"application/zip": "zip",
|
|
61
|
-
"image/bmp": "bmp",
|
|
62
|
-
"image/gif": "gif",
|
|
63
|
-
"image/jpeg": "jpg",
|
|
64
|
-
"image/png": "png",
|
|
65
|
-
"image/svg+xml": "svg",
|
|
66
|
-
"image/tiff": "tiff",
|
|
67
|
-
"image/webp": "webp",
|
|
68
|
-
"text/html": "html",
|
|
69
|
-
"text/plain": "txt",
|
|
70
|
-
"video/mp4": "mp4"
|
|
71
|
-
};
|
|
72
|
-
static download(p, M) {
|
|
73
|
-
let N = document.createElement("a");
|
|
74
|
-
N.href = p, N.download = M, document.body.appendChild(N), N.click(), document.body.removeChild(N);
|
|
75
|
-
}
|
|
76
|
-
static mimeTypeToExtension(p) {
|
|
77
|
-
return this.mimeTypeMap[p] ?? null;
|
|
78
|
-
}
|
|
79
|
-
}, MailCreateTransformer = class {
|
|
80
|
-
static toDto(p, M) {
|
|
81
|
-
return {
|
|
82
|
-
clientId: {
|
|
83
|
-
uuid: p.clientId.uuid,
|
|
84
|
-
type: p.clientId.type
|
|
85
|
-
},
|
|
86
|
-
dealUuid: p.dealUuid,
|
|
87
|
-
mailTemplateUuid: p.mailTemplateUuid,
|
|
88
|
-
attachments: p.attachments.map(FileReferenceTransformer.toDto),
|
|
89
|
-
bcc: p.bcc ?? [],
|
|
90
|
-
cc: p.cc ?? [],
|
|
91
|
-
externalAttachments: M,
|
|
92
|
-
from: p.from ?? void 0,
|
|
93
|
-
replyTo: p.replyTo ?? void 0,
|
|
94
|
-
subject: p.subject,
|
|
95
|
-
text: p.text,
|
|
96
|
-
to: p.to
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
}, MailIndexTransformer = class M {
|
|
100
|
-
static attachmentTransformer(p) {
|
|
101
|
-
return {
|
|
102
|
-
uuid: p.uuid,
|
|
103
|
-
name: p.name,
|
|
104
|
-
blurHash: null,
|
|
105
|
-
downloadUrl: p.downloadUrl,
|
|
106
|
-
mimeType: p.mimeType
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
static fromDto(N) {
|
|
110
|
-
let P = N.attachments.map(M.attachmentTransformer), F = N.externalAttachments.map(M.attachmentTransformer);
|
|
111
|
-
return {
|
|
112
|
-
uuid: N.uuid,
|
|
113
|
-
dealUuid: N.dealUuid,
|
|
114
|
-
createdAt: ZonedDateTimeTransformer.fromDto(N.createdAt),
|
|
115
|
-
updatedAt: ZonedDateTimeTransformer.fromDto(N.updatedAt),
|
|
116
|
-
attachments: [...P, ...F],
|
|
117
|
-
bcc: N.bcc,
|
|
118
|
-
cc: N.cc,
|
|
119
|
-
client: {
|
|
120
|
-
uuid: N.client.uuid,
|
|
121
|
-
type: N.client.type
|
|
122
|
-
},
|
|
123
|
-
from: N.from,
|
|
124
|
-
replyTo: N.replyTo,
|
|
125
|
-
status: N.status,
|
|
126
|
-
subject: N.subject,
|
|
127
|
-
text: N.text,
|
|
128
|
-
to: N.to
|
|
129
|
-
};
|
|
130
|
-
}
|
|
131
|
-
}, MailIndexQueryParamsTransformer = class {
|
|
132
|
-
static toDto(p) {
|
|
133
|
-
return {
|
|
134
|
-
filter: {
|
|
135
|
-
clientUuid: p.filters.clientUuid,
|
|
136
|
-
dealUuid: p.filters.dealUuid,
|
|
137
|
-
clientType: p.filters.clientType
|
|
138
|
-
},
|
|
139
|
-
pagination: p.pagination
|
|
140
|
-
};
|
|
141
|
-
}
|
|
142
|
-
}, MailService = class {
|
|
143
|
-
static async create(p, M) {
|
|
144
|
-
return (await createMailV1({ body: MailCreateTransformer.toDto(p, M) })).data.uuid;
|
|
145
|
-
}
|
|
146
|
-
static async getAll(p) {
|
|
147
|
-
return (await viewMailIndexV1({ query: MailIndexQueryParamsTransformer.toDto(p) })).data.items.map(MailIndexTransformer.fromDto);
|
|
148
|
-
}
|
|
149
|
-
}, _sfc_main = {}, _hoisted_1$1 = { class: "py-lg px-2xl border-secondary border-b" };
|
|
150
|
-
function _sfc_render(p, M) {
|
|
151
|
-
return openBlock(), createElementBlock("div", _hoisted_1$1, [renderSlot(p.$slots, "default")]);
|
|
152
|
-
}
|
|
153
|
-
var DealCommunicationMailListSectionContainer_default = /* @__PURE__ */ __plugin_vue_export_helper_default(_sfc_main, [["render", _sfc_render]]), _hoisted_1 = { class: "px-lg group py-md gap-sm bg-secondary flex max-w-100 min-w-80 items-center justify-between rounded-xl text-sm font-medium" }, _hoisted_2 = { class: "gap-sm flex max-w-[85%] items-center" }, _hoisted_3 = { class: "relative" }, _hoisted_4 = { class: "text-primary-on-brand absolute bottom-0.5 left-1/2 z-89 -translate-x-1/2 text-[0.625rem] font-medium" }, _hoisted_5 = { class: "text-primary truncate text-sm" }, _hoisted_6 = { class: "gap-md flex items-center" }, DealExternalAttachment_default = /* @__PURE__ */ defineComponent({
|
|
154
|
-
__name: "DealExternalAttachment",
|
|
155
|
-
props: { attachment: {} },
|
|
156
|
-
setup(p) {
|
|
157
|
-
let M = p;
|
|
158
|
-
function N(p) {
|
|
159
|
-
FileUtil.download(p.downloadUrl, p.name);
|
|
160
|
-
}
|
|
161
|
-
return (P, F) => (openBlock(), createElementBlock("div", _hoisted_1, [createElementVNode("div", _hoisted_2, [createElementVNode("div", _hoisted_3, [createVNode(unref(VcIcon), {
|
|
162
|
-
icon: "file",
|
|
163
|
-
class: "text-brand-500 size-8"
|
|
164
|
-
}), createElementVNode("div", _hoisted_4, toDisplayString(unref(FileUtil).mimeTypeToExtension(M.attachment.mimeType)), 1)]), createElementVNode("p", _hoisted_5, toDisplayString(M.attachment.name), 1)]), createElementVNode("div", _hoisted_6, [createVNode(RevealOnHoverOrFocus_default, null, {
|
|
165
|
-
default: withCtx(() => [createVNode(unref(VcIconButton), {
|
|
166
|
-
"class-config": { root: "hover:!bg-tertiary" },
|
|
167
|
-
icon: "downloadCloud",
|
|
168
|
-
label: "Download",
|
|
169
|
-
variant: "tertiary",
|
|
170
|
-
class: "shrink-0",
|
|
171
|
-
onClick: F[0] ||= (M) => N(p.attachment)
|
|
172
|
-
})]),
|
|
173
|
-
_: 1
|
|
174
|
-
})])]));
|
|
175
|
-
}
|
|
176
|
-
});
|
|
177
|
-
export { RevealOnHoverOrFocus_default as a, FileUtil as i, DealCommunicationMailListSectionContainer_default as n, FileReferenceTransformer as o, MailService as r, DealExternalAttachment_default as t };
|