@wisemen/wise-crm-web 1.1.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.
Files changed (114) hide show
  1. package/dist/ActivityIcon-DNdtN-M_.js +19 -0
  2. package/dist/AppSkeletonLoader-Dq6pKznm.js +1112 -0
  3. package/dist/AttachmentIcon-BLUd7LaN.js +19 -0
  4. package/dist/BoldIcon-WRYUWz15.js +16 -0
  5. package/dist/BookIcon-Bb3r5y_J.js +19 -0
  6. package/dist/BuildingIcon-DFutRg8d.js +19 -0
  7. package/dist/BuildingsIcon-BVHy6yoa.js +19 -0
  8. package/dist/BulletListIcon-BhOXLSBa.js +16 -0
  9. package/dist/BusinessDetailSidebarProvider-a6VeNUii.js +2946 -0
  10. package/dist/BusinessDetailView-Dz3wDSx5.js +24 -0
  11. package/dist/ChevronDownIcon-BmyTSPND.js +19 -0
  12. package/dist/ClockIcon-BYfZAvIE.js +23 -0
  13. package/dist/ClockPlusIcon-BcNi0Y9I.js +23 -0
  14. package/dist/CopyIcon-2eV8MRv_.js +19 -0
  15. package/dist/CrmDetailHeaderCard-BkA0Z-Cu.js +2523 -0
  16. package/dist/CrmDetailView-BhZEQqUH.js +67 -0
  17. package/dist/DealCommunicationTabView-Drp9MEPu.js +140 -0
  18. package/dist/DealDetailView-DWLudchX.js +1049 -0
  19. package/dist/DealExternalAttachment-B6l0gDqF.js +179 -0
  20. package/dist/DealIcon-BwUWYDxo.js +19 -0
  21. package/dist/DealSendMailDialog-Dqei4933.js +1566 -0
  22. package/dist/DownloadCloudIcon-BSrLGGrY.js +19 -0
  23. package/dist/EditWithLineIcon-BKYDPJOY.js +19 -0
  24. package/dist/Error-za-wClcU.js +13302 -0
  25. package/dist/FileIcon-DL1e1tAu.js +19 -0
  26. package/dist/FilterLinesIcon-DgVMySAE.js +22 -0
  27. package/dist/H1Icon-B6NEsEbj.js +17 -0
  28. package/dist/H2Icon-CNof5Ohu.js +17 -0
  29. package/dist/H3Icon-B2F2Tb6r.js +17 -0
  30. package/dist/HashIcon-C_XttKfW.js +19 -0
  31. package/dist/HomeFilledIcon-DtZ2eXxt.js +16 -0
  32. package/dist/IndividualDetailSidebarProvider-jjRoK1Av.js +609 -0
  33. package/dist/IndividualDetailView-BqIRHn-0.js +24 -0
  34. package/dist/ItalicIcon-DqBns3yy.js +17 -0
  35. package/dist/LayersTreeIcon-DZZCSCY9.js +23 -0
  36. package/dist/LinkBrokenIcon-BNBpWSi7.js +19 -0
  37. package/dist/LinkExternalIcon-B7SHeB1_.js +19 -0
  38. package/dist/LinkIcon-8bCrZEv9.js +17 -0
  39. package/dist/LocationPinIcon-UySRqSfG.js +19 -0
  40. package/dist/MailIcon-BT7gSIZb.js +19 -0
  41. package/dist/MobilePhoneIcon-_KQGnCSS.js +19 -0
  42. package/dist/NumberedListIcon-B-JVTSAe.js +17 -0
  43. package/dist/PhoneIcon-DGGW_MNR.js +19 -0
  44. package/dist/RefreshIcon-D1QWfdPD.js +19 -0
  45. package/dist/SendIcon-BtJ-NCec.js +19 -0
  46. package/dist/SettingsIcon-CWFwJelS.js +25 -0
  47. package/dist/StarOutlineIcon-C-ELTCDQ.js +19 -0
  48. package/dist/StarYellowIcon-7wuNWaQO.js +19 -0
  49. package/dist/ThreeDotsIcon-C56RWk-0.js +32 -0
  50. package/dist/TimeLineMarkerIcon-DLmPwfs6.js +18 -0
  51. package/dist/TrashIcon-o4PWmcYe.js +20 -0
  52. package/dist/UploadCloudIcon-D2tWB0NP.js +19 -0
  53. package/dist/UserCircleIcon-DiDajcIH.js +23 -0
  54. package/dist/UserIcon-Bv1eF7ln.js +22 -0
  55. package/dist/VerticalDotsIcon-YcD73UqY.js +20 -0
  56. package/dist/WalletIcon-CUh92U5K.js +19 -0
  57. package/dist/_plugin-vue_export-helper-D3hKq4w_.js +8 -0
  58. package/dist/client-9P6xe_5g.js +4188 -0
  59. package/dist/index.js +5598 -28
  60. package/dist/style.css +2 -1
  61. package/dist/testing.js +366 -386
  62. package/dist/uuid.util-DpiDKVoj.js +11 -0
  63. package/package.json +17 -17
  64. package/dist/ActivityIcon-xJAmguCr.js +0 -21
  65. package/dist/AttachmentIcon-BE5eNDu2.js +0 -21
  66. package/dist/BoldIcon-gIpFueAk.js +0 -18
  67. package/dist/BookIcon-BcJ7URa7.js +0 -21
  68. package/dist/BuildingIcon-Dg6uZKp9.js +0 -21
  69. package/dist/BuildingsIcon-BFPEpeVP.js +0 -21
  70. package/dist/BulletListIcon-CjJGF99S.js +0 -18
  71. package/dist/BusinessDetailView-Cq7_ziCe.js +0 -27
  72. package/dist/ChevronDownIcon-CsDbkAjy.js +0 -21
  73. package/dist/ClockIcon-DmkNAIk7.js +0 -32
  74. package/dist/ClockPlusIcon-DeHgqDF1.js +0 -32
  75. package/dist/CopyIcon-BsUjyueq.js +0 -21
  76. package/dist/CrmDetailView.vue_vue_type_script_setup_true_lang-Db5HsgF9.js +0 -102
  77. package/dist/DealCommunicationTabView-CQ9vUi3p.js +0 -207
  78. package/dist/DealDetailView-t_v7MuZA.js +0 -1329
  79. package/dist/DealIcon-BJzNx1o6.js +0 -21
  80. package/dist/DownloadCloudIcon-DNPJTdVt.js +0 -21
  81. package/dist/EditWithLineIcon-BXkQTlXs.js +0 -21
  82. package/dist/FileIcon-DSQi3VUb.js +0 -21
  83. package/dist/FilterLinesIcon-YkTZirYE.js +0 -24
  84. package/dist/H1Icon-DsvWrDD0.js +0 -19
  85. package/dist/H2Icon-8xYiqSmR.js +0 -19
  86. package/dist/H3Icon-BdH22r8A.js +0 -19
  87. package/dist/HashIcon-DNclSYC-.js +0 -21
  88. package/dist/HomeFilledIcon-my0TzA9q.js +0 -18
  89. package/dist/IndividualDetailView-CjgKD__T.js +0 -27
  90. package/dist/ItalicIcon-Be9twusP.js +0 -19
  91. package/dist/LayersTreeIcon-DcK6WtJe.js +0 -32
  92. package/dist/LinkBrokenIcon-9wgVs__d.js +0 -21
  93. package/dist/LinkExternalIcon--XtB6wEj.js +0 -21
  94. package/dist/LinkIcon-BzYeqJaA.js +0 -19
  95. package/dist/LocationPinIcon-CSBPPRHC.js +0 -21
  96. package/dist/MailIcon-BgkBOes6.js +0 -21
  97. package/dist/MobilePhoneIcon-BgB_oAAr.js +0 -21
  98. package/dist/NumberedListIcon-Bf4a8S_g.js +0 -19
  99. package/dist/PhoneIcon-BKgg0ufh.js +0 -21
  100. package/dist/RefreshIcon-GJ03jEFx.js +0 -21
  101. package/dist/SendIcon-0ygrHbYx.js +0 -21
  102. package/dist/SettingsIcon-BRNQD8GX.js +0 -28
  103. package/dist/StarOutlineIcon-Gxm2X9hf.js +0 -21
  104. package/dist/StarYellowIcon-BZfRhUd6.js +0 -21
  105. package/dist/ThreeDotsIcon-cBE_pGvU.js +0 -32
  106. package/dist/TimeLineMarkerIcon-j4hDQteY.js +0 -20
  107. package/dist/TrashIcon-BynOxtIY.js +0 -22
  108. package/dist/UploadCloudIcon-BgcrXv_v.js +0 -21
  109. package/dist/UserCircleIcon-Bc1eahfh.js +0 -32
  110. package/dist/UserIcon-CCK-3lX3.js +0 -24
  111. package/dist/VerticalDotsIcon-C5gK8Zmi.js +0 -22
  112. package/dist/WalletIcon-DjqurEH2.js +0 -21
  113. package/dist/index-Cb2tNFVq.js +0 -24606
  114. package/dist/uuid.util-1167NMVR.js +0 -6562
@@ -0,0 +1,179 @@
1
+ import { s as e } from "./AppSkeletonLoader-Dq6pKznm.js";
2
+ import { $ as t, _t as n, o as r } from "./client-9P6xe_5g.js";
3
+ import { t as i } from "./_plugin-vue_export-helper-D3hKq4w_.js";
4
+ import { createBlock as a, createElementBlock as o, createElementVNode as s, createVNode as c, defineComponent as l, openBlock as u, renderSlot as d, toDisplayString as f, unref as p, withCtx as m } from "vue";
5
+ import { VcIcon as h, VcIconButton as g } from "@wisemen/vue-core-components";
6
+ import { Primitive as _ } from "reka-ui";
7
+ //#region src/models/file-reference/fileReference.transformer.ts
8
+ var v = class {
9
+ static fromDto(e) {
10
+ return {
11
+ uuid: e.uuid,
12
+ name: e.name,
13
+ blurHash: e.blurHash,
14
+ mimeType: e.mimeType ?? n.TEXT_PLAIN
15
+ };
16
+ }
17
+ static fromNullableDto(e) {
18
+ return e === null ? null : this.fromDto(e);
19
+ }
20
+ static toDto(e) {
21
+ return e.uuid;
22
+ }
23
+ static toForm(e) {
24
+ return {
25
+ uuid: e.uuid,
26
+ name: e.name,
27
+ blurHash: e.blurHash,
28
+ mimeType: e.mimeType,
29
+ order: 0,
30
+ url: ""
31
+ };
32
+ }
33
+ static toNullableDto(e) {
34
+ return e === null ? null : this.toDto(e);
35
+ }
36
+ static toNullableForm(e) {
37
+ return e === null ? null : this.toForm(e);
38
+ }
39
+ }, y = /* @__PURE__ */ l({
40
+ __name: "RevealOnHoverOrFocus",
41
+ setup(e) {
42
+ return (e, t) => (u(), a(p(_), {
43
+ "as-child": !0,
44
+ 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"
45
+ }, {
46
+ default: m(() => [d(e.$slots, "default")]),
47
+ _: 3
48
+ }));
49
+ }
50
+ }), b = class {
51
+ static mimeTypeMap = {
52
+ "application/json": "json",
53
+ "application/msword": "doc",
54
+ "application/pdf": "pdf",
55
+ "application/vnd.ms-excel": "xls",
56
+ "application/vnd.ms-powerpoint": "ppt",
57
+ "application/vnd.openxmlformats-officedocument.presentationml.presentation": "pptx",
58
+ "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": "xlsx",
59
+ "application/vnd.openxmlformats-officedocument.wordprocessingml.document": "docx",
60
+ "application/x-rar-compressed": "rar",
61
+ "application/zip": "zip",
62
+ "image/bmp": "bmp",
63
+ "image/gif": "gif",
64
+ "image/jpeg": "jpg",
65
+ "image/png": "png",
66
+ "image/svg+xml": "svg",
67
+ "image/tiff": "tiff",
68
+ "image/webp": "webp",
69
+ "text/html": "html",
70
+ "text/plain": "txt",
71
+ "video/mp4": "mp4"
72
+ };
73
+ static download(e, t) {
74
+ let n = document.createElement("a");
75
+ n.href = e, n.download = t, document.body.appendChild(n), n.click(), document.body.removeChild(n);
76
+ }
77
+ static mimeTypeToExtension(e) {
78
+ return this.mimeTypeMap[e] ?? null;
79
+ }
80
+ }, x = class {
81
+ static toDto(e, t) {
82
+ return {
83
+ clientId: {
84
+ uuid: e.clientId.uuid,
85
+ type: e.clientId.type
86
+ },
87
+ dealUuid: e.dealUuid,
88
+ mailTemplateUuid: e.mailTemplateUuid,
89
+ attachments: e.attachments.map(v.toDto),
90
+ bcc: e.bcc ?? [],
91
+ cc: e.cc ?? [],
92
+ externalAttachments: t,
93
+ from: e.from ?? void 0,
94
+ replyTo: e.replyTo ?? void 0,
95
+ subject: e.subject,
96
+ text: e.text,
97
+ to: e.to
98
+ };
99
+ }
100
+ }, S = class t {
101
+ static attachmentTransformer(e) {
102
+ return {
103
+ uuid: e.uuid,
104
+ name: e.name,
105
+ blurHash: null,
106
+ downloadUrl: e.downloadUrl,
107
+ mimeType: e.mimeType
108
+ };
109
+ }
110
+ static fromDto(n) {
111
+ let r = n.attachments.map(t.attachmentTransformer), i = n.externalAttachments.map(t.attachmentTransformer);
112
+ return {
113
+ uuid: n.uuid,
114
+ dealUuid: n.dealUuid,
115
+ createdAt: e.fromDto(n.createdAt),
116
+ updatedAt: e.fromDto(n.updatedAt),
117
+ attachments: [...r, ...i],
118
+ bcc: n.bcc,
119
+ cc: n.cc,
120
+ client: {
121
+ uuid: n.client.uuid,
122
+ type: n.client.type
123
+ },
124
+ from: n.from,
125
+ replyTo: n.replyTo,
126
+ status: n.status,
127
+ subject: n.subject,
128
+ text: n.text,
129
+ to: n.to
130
+ };
131
+ }
132
+ }, C = class {
133
+ static toDto(e) {
134
+ return {
135
+ filter: {
136
+ clientUuid: e.filters.clientUuid,
137
+ dealUuid: e.filters.dealUuid,
138
+ clientType: e.filters.clientType
139
+ },
140
+ pagination: e.pagination
141
+ };
142
+ }
143
+ }, w = class {
144
+ static async create(e, t) {
145
+ return (await r({ body: x.toDto(e, t) })).data.uuid;
146
+ }
147
+ static async getAll(e) {
148
+ return (await t({ query: C.toDto(e) })).data.items.map(S.fromDto);
149
+ }
150
+ }, T = {}, E = { class: "py-lg px-2xl border-secondary border-b" };
151
+ function D(e, t) {
152
+ return u(), o("div", E, [d(e.$slots, "default")]);
153
+ }
154
+ var O = /* @__PURE__ */ i(T, [["render", D]]), k = { 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" }, A = { class: "gap-sm flex max-w-[85%] items-center" }, j = { class: "relative" }, M = { class: "text-primary-on-brand absolute bottom-0.5 left-1/2 z-89 -translate-x-1/2 text-[0.625rem] font-medium" }, N = { class: "text-primary truncate text-sm" }, P = { class: "gap-md flex items-center" }, F = /* @__PURE__ */ l({
155
+ __name: "DealExternalAttachment",
156
+ props: { attachment: {} },
157
+ setup(e) {
158
+ let t = e;
159
+ function n(e) {
160
+ b.download(e.downloadUrl, e.name);
161
+ }
162
+ return (r, i) => (u(), o("div", k, [s("div", A, [s("div", j, [c(p(h), {
163
+ icon: "file",
164
+ class: "text-brand-500 size-8"
165
+ }), s("div", M, f(p(b).mimeTypeToExtension(t.attachment.mimeType)), 1)]), s("p", N, f(t.attachment.name), 1)]), s("div", P, [c(y, null, {
166
+ default: m(() => [c(p(g), {
167
+ "class-config": { root: "hover:!bg-tertiary" },
168
+ icon: "downloadCloud",
169
+ label: "Download",
170
+ variant: "tertiary",
171
+ class: "shrink-0",
172
+ onClick: i[0] ||= (t) => n(e.attachment)
173
+ })]),
174
+ _: 1
175
+ })])]));
176
+ }
177
+ });
178
+ //#endregion
179
+ export { y as a, b as i, O as n, v as o, w as r, F as t };
@@ -0,0 +1,19 @@
1
+ import { t as e } from "./_plugin-vue_export-helper-D3hKq4w_.js";
2
+ import { createElementBlock as t, createElementVNode as n, openBlock as r } from "vue";
3
+ //#region src/icons/DealIcon.vue
4
+ var i = {}, a = {
5
+ viewBox: "0 0 32 32",
6
+ fill: "none"
7
+ };
8
+ function o(e, i) {
9
+ return r(), t("svg", a, [...i[0] ||= [n("path", {
10
+ d: "M21.2173 10.7821V6.8691L25.1304 2.95605L26.4347 5.56475L29.0434 6.8691L25.1304 10.7821H21.2173ZM21.2173 10.7821L16 15.9995M29.0435 15.9995C29.0435 23.2032 23.2037 29.043 16 29.043C8.79628 29.043 2.95652 23.2032 2.95652 15.9995C2.95652 8.79582 8.79628 2.95605 16 2.95605M22.5217 15.9995C22.5217 19.6014 19.6019 22.5213 16 22.5213C12.3981 22.5213 9.47826 19.6014 9.47826 15.9995C9.47826 12.3977 12.3981 9.47779 16 9.47779",
11
+ class: "stroke-current",
12
+ "stroke-width": "2.6087",
13
+ "stroke-linecap": "round",
14
+ "stroke-linejoin": "round"
15
+ }, null, -1)]]);
16
+ }
17
+ var s = /* @__PURE__ */ e(i, [["render", o]]);
18
+ //#endregion
19
+ export { s as default };