@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.
Files changed (97) hide show
  1. package/dist/ActivityIcon-DNdtN-M_.js +19 -0
  2. package/dist/AppSkeletonLoader-Dq6pKznm.js +1112 -0
  3. package/dist/{AttachmentIcon-CsucE3yf.js → AttachmentIcon-BLUd7LaN.js} +9 -7
  4. package/dist/BoldIcon-WRYUWz15.js +16 -0
  5. package/dist/{BookIcon-DgT3flV5.js → BookIcon-Bb3r5y_J.js} +9 -7
  6. package/dist/{BuildingIcon-Bm18omgW.js → BuildingIcon-DFutRg8d.js} +9 -7
  7. package/dist/{BuildingsIcon-D4X7QciL.js → BuildingsIcon-BVHy6yoa.js} +9 -7
  8. package/dist/{BulletListIcon-CNCV-cOS.js → BulletListIcon-BhOXLSBa.js} +9 -7
  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-CUomKXdn.js → CopyIcon-2eV8MRv_.js} +9 -7
  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-CpO-DkyS.js → DealIcon-BwUWYDxo.js} +9 -7
  21. package/dist/DealSendMailDialog-Dqei4933.js +1566 -0
  22. package/dist/DownloadCloudIcon-BSrLGGrY.js +19 -0
  23. package/dist/{EditWithLineIcon-C0WMD50F.js → EditWithLineIcon-BKYDPJOY.js} +9 -7
  24. package/dist/{Error-X0deDY-N.js → Error-za-wClcU.js} +2591 -2462
  25. package/dist/{FileIcon-3FebXgYQ.js → FileIcon-DL1e1tAu.js} +9 -7
  26. package/dist/FilterLinesIcon-DgVMySAE.js +22 -0
  27. package/dist/H1Icon-B6NEsEbj.js +17 -0
  28. package/dist/{H2Icon-CuEmp9I0.js → H2Icon-CNof5Ohu.js} +9 -7
  29. package/dist/{H3Icon-wAPhdYIf.js → H3Icon-B2F2Tb6r.js} +9 -7
  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-Ct-owndO.js → LayersTreeIcon-DZZCSCY9.js} +10 -8
  36. package/dist/{LinkBrokenIcon-CTlqmapl.js → LinkBrokenIcon-BNBpWSi7.js} +9 -7
  37. package/dist/{LinkExternalIcon-LOVtSqBT.js → LinkExternalIcon-B7SHeB1_.js} +9 -7
  38. package/dist/LinkIcon-8bCrZEv9.js +17 -0
  39. package/dist/{LocationPinIcon-Cp-wRgk2.js → LocationPinIcon-UySRqSfG.js} +9 -7
  40. package/dist/{MailIcon-CnTrB1k3.js → MailIcon-BT7gSIZb.js} +9 -7
  41. package/dist/{MobilePhoneIcon-B747hmpS.js → MobilePhoneIcon-_KQGnCSS.js} +9 -7
  42. package/dist/NumberedListIcon-B-JVTSAe.js +17 -0
  43. package/dist/{PhoneIcon-94MYVL85.js → PhoneIcon-DGGW_MNR.js} +9 -7
  44. package/dist/{RefreshIcon-DRe3coBc.js → RefreshIcon-D1QWfdPD.js} +9 -7
  45. package/dist/{SendIcon-MYItp1xI.js → SendIcon-BtJ-NCec.js} +9 -7
  46. package/dist/{SettingsIcon-C0qTAv0w.js → SettingsIcon-CWFwJelS.js} +10 -8
  47. package/dist/{StarOutlineIcon-CiFLgepk.js → StarOutlineIcon-C-ELTCDQ.js} +9 -7
  48. package/dist/{StarYellowIcon-C0v_XGwI.js → StarYellowIcon-7wuNWaQO.js} +9 -7
  49. package/dist/{ThreeDotsIcon-lujOTU3G.js → ThreeDotsIcon-C56RWk-0.js} +12 -10
  50. package/dist/TimeLineMarkerIcon-DLmPwfs6.js +18 -0
  51. package/dist/{TrashIcon-v4L9SEK_.js → TrashIcon-o4PWmcYe.js} +9 -7
  52. package/dist/UploadCloudIcon-D2tWB0NP.js +19 -0
  53. package/dist/{UserCircleIcon-BjUt_2C4.js → UserCircleIcon-DiDajcIH.js} +10 -8
  54. package/dist/UserIcon-Bv1eF7ln.js +22 -0
  55. package/dist/{VerticalDotsIcon-Y3m6tlQ2.js → VerticalDotsIcon-YcD73UqY.js} +9 -7
  56. package/dist/{WalletIcon-pPsKbzmh.js → WalletIcon-CUh92U5K.js} +9 -7
  57. package/dist/_plugin-vue_export-helper-D3hKq4w_.js +8 -0
  58. package/dist/client-9P6xe_5g.js +4188 -0
  59. package/dist/components/auto-focus/AutoFocus.vue.d.ts +13 -0
  60. package/dist/components/column-layout/ColumnLayout.vue.d.ts +1 -1
  61. package/dist/components/row-layout/RowLayout.vue.d.ts +1 -1
  62. package/dist/components/text/Text.vue.d.ts +1 -1
  63. package/dist/index.js +1881 -1693
  64. package/dist/style.css +2 -2
  65. package/dist/testing.js +102 -98
  66. package/dist/utils/color.util.d.ts +6 -0
  67. package/dist/{uuid.util-C1p-yuFc.js → uuid.util-DpiDKVoj.js} +4 -2
  68. package/package.json +30 -30
  69. package/dist/ActivityIcon-DFD9ZhO0.js +0 -17
  70. package/dist/AppSkeletonLoader-BAhoOmFD.js +0 -1106
  71. package/dist/BoldIcon-DY2FlAS0.js +0 -14
  72. package/dist/BusinessDetailSidebarProvider-Dm6Dd7Nq.js +0 -2899
  73. package/dist/BusinessDetailView-BHVUfCpV.js +0 -24
  74. package/dist/ChevronDownIcon-CfBAAAca.js +0 -17
  75. package/dist/ClockIcon-Ckr1IQBt.js +0 -21
  76. package/dist/ClockPlusIcon-CVN69pCS.js +0 -21
  77. package/dist/CrmDetailHeaderCard-CiVLyIuw.js +0 -2516
  78. package/dist/CrmDetailView-DaAuWeiB.js +0 -65
  79. package/dist/DealCommunicationTabView-xq_zOAsr.js +0 -137
  80. package/dist/DealDetailView-C54XpYN1.js +0 -1021
  81. package/dist/DealExternalAttachment-Dp44vkgt.js +0 -177
  82. package/dist/DealSendMailDialog-D11Tgd_A.js +0 -1552
  83. package/dist/DownloadCloudIcon-VMmB9vit.js +0 -17
  84. package/dist/FilterLinesIcon-DHpRPKJB.js +0 -20
  85. package/dist/H1Icon-CPVGTTtl.js +0 -15
  86. package/dist/HashIcon-C2kfHjTC.js +0 -17
  87. package/dist/HomeFilledIcon-CxIazF0B.js +0 -14
  88. package/dist/IndividualDetailSidebarProvider-BvjhFng9.js +0 -608
  89. package/dist/IndividualDetailView-Cq8iAwQv.js +0 -24
  90. package/dist/ItalicIcon-DfV3EOdk.js +0 -15
  91. package/dist/LinkIcon-DqBbVrvs.js +0 -15
  92. package/dist/NumberedListIcon-amJxDaaD.js +0 -15
  93. package/dist/TimeLineMarkerIcon-C4LfErbc.js +0 -16
  94. package/dist/UploadCloudIcon-j1-1Rvqb.js +0 -17
  95. package/dist/UserIcon-Cb2jFKLr.js +0 -20
  96. package/dist/_plugin-vue_export-helper-BSi1g3Lh.js +0 -6
  97. package/dist/client-S6BLV3Ct.js +0 -4191
@@ -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 };
@@ -1,11 +1,12 @@
1
- import { t as __plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-BSi1g3Lh.js";
2
- import { createElementBlock, createElementVNode, openBlock } from "vue";
3
- var _sfc_main = {}, _hoisted_1 = {
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 = {
4
5
  viewBox: "0 0 32 32",
5
6
  fill: "none"
6
7
  };
7
- function _sfc_render(e, s) {
8
- return openBlock(), createElementBlock("svg", _hoisted_1, [...s[0] ||= [createElementVNode("path", {
8
+ function o(e, i) {
9
+ return r(), t("svg", a, [...i[0] ||= [n("path", {
9
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",
10
11
  class: "stroke-current",
11
12
  "stroke-width": "2.6087",
@@ -13,5 +14,6 @@ function _sfc_render(e, s) {
13
14
  "stroke-linejoin": "round"
14
15
  }, null, -1)]]);
15
16
  }
16
- var DealIcon_default = /* @__PURE__ */ __plugin_vue_export_helper_default(_sfc_main, [["render", _sfc_render]]);
17
- export { DealIcon_default as default };
17
+ var s = /* @__PURE__ */ e(i, [["render", o]]);
18
+ //#endregion
19
+ export { s as default };