@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
package/dist/testing.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { lt as
|
|
2
|
-
import { t as
|
|
3
|
-
|
|
1
|
+
import { lt as e, pt as t, ut as n } from "./client-9P6xe_5g.js";
|
|
2
|
+
import { t as r } from "./uuid.util-DpiDKVoj.js";
|
|
3
|
+
//#region src/testing/factories/factory.util.ts
|
|
4
|
+
var i = {
|
|
4
5
|
placeId: "ChIJd_Y0eVIxkcRjQ1m2YkYg9o",
|
|
5
6
|
city: "Brussels",
|
|
6
7
|
coordinates: {
|
|
@@ -14,21 +15,23 @@ const ADDRESS_RESPONSE_MOCK = {
|
|
|
14
15
|
streetNumber: "1",
|
|
15
16
|
unit: null
|
|
16
17
|
};
|
|
17
|
-
function
|
|
18
|
-
return
|
|
18
|
+
function a() {
|
|
19
|
+
return r.getRandom();
|
|
19
20
|
}
|
|
20
|
-
function
|
|
21
|
+
function o() {
|
|
21
22
|
return (/* @__PURE__ */ new Date()).toISOString();
|
|
22
23
|
}
|
|
23
|
-
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region src/testing/factories/business.factory.ts
|
|
26
|
+
var s = class e {
|
|
24
27
|
static createBillingInformation(e = {}) {
|
|
25
28
|
return {
|
|
26
|
-
uuid:
|
|
27
|
-
createdAt:
|
|
28
|
-
updatedAt:
|
|
29
|
+
uuid: a(),
|
|
30
|
+
createdAt: o(),
|
|
31
|
+
updatedAt: o(),
|
|
29
32
|
billingLocation: {
|
|
30
|
-
uuid:
|
|
31
|
-
address:
|
|
33
|
+
uuid: a(),
|
|
34
|
+
address: i
|
|
32
35
|
},
|
|
33
36
|
invoiceCcEmails: [],
|
|
34
37
|
invoiceEmail: "billing@example.com",
|
|
@@ -41,7 +44,7 @@ var BusinessFactory = class e {
|
|
|
41
44
|
}
|
|
42
45
|
static createContactPerson(e = {}) {
|
|
43
46
|
return {
|
|
44
|
-
uuid:
|
|
47
|
+
uuid: a(),
|
|
45
48
|
isPrimary: !1,
|
|
46
49
|
email: "contact@example.com",
|
|
47
50
|
firstName: "Jane",
|
|
@@ -54,9 +57,9 @@ var BusinessFactory = class e {
|
|
|
54
57
|
}
|
|
55
58
|
static createDetail(e = {}) {
|
|
56
59
|
return {
|
|
57
|
-
uuid:
|
|
58
|
-
createdAt:
|
|
59
|
-
updatedAt:
|
|
60
|
+
uuid: a(),
|
|
61
|
+
createdAt: o(),
|
|
62
|
+
updatedAt: o(),
|
|
60
63
|
name: "Acme Corporation",
|
|
61
64
|
billingInformation: null,
|
|
62
65
|
companyNumber: null,
|
|
@@ -65,10 +68,10 @@ var BusinessFactory = class e {
|
|
|
65
68
|
email: "info@acme.com",
|
|
66
69
|
language: "en-US",
|
|
67
70
|
location: {
|
|
68
|
-
uuid:
|
|
69
|
-
createdAt:
|
|
70
|
-
updatedAt:
|
|
71
|
-
address:
|
|
71
|
+
uuid: a(),
|
|
72
|
+
createdAt: o(),
|
|
73
|
+
updatedAt: o(),
|
|
74
|
+
address: i
|
|
72
75
|
},
|
|
73
76
|
mobilePhone: "+32 470 12 34 56",
|
|
74
77
|
parent: null,
|
|
@@ -83,7 +86,7 @@ var BusinessFactory = class e {
|
|
|
83
86
|
}
|
|
84
87
|
static createIndex(e = {}) {
|
|
85
88
|
return {
|
|
86
|
-
uuid:
|
|
89
|
+
uuid: a(),
|
|
87
90
|
name: "Acme Corporation",
|
|
88
91
|
companyNumber: null,
|
|
89
92
|
email: "info@acme.com",
|
|
@@ -94,11 +97,11 @@ var BusinessFactory = class e {
|
|
|
94
97
|
...e
|
|
95
98
|
};
|
|
96
99
|
}
|
|
97
|
-
static createIndexList(
|
|
98
|
-
return Array.from({ length:
|
|
99
|
-
name: `Business ${
|
|
100
|
-
email: `business${
|
|
101
|
-
...
|
|
100
|
+
static createIndexList(t, n = {}) {
|
|
101
|
+
return Array.from({ length: t }, (t, r) => e.createIndex({
|
|
102
|
+
name: `Business ${r + 1}`,
|
|
103
|
+
email: `business${r + 1}@example.com`,
|
|
104
|
+
...n
|
|
102
105
|
}));
|
|
103
106
|
}
|
|
104
107
|
static createStatistics(e = {}) {
|
|
@@ -109,10 +112,10 @@ var BusinessFactory = class e {
|
|
|
109
112
|
...e
|
|
110
113
|
};
|
|
111
114
|
}
|
|
112
|
-
},
|
|
115
|
+
}, c = class r {
|
|
113
116
|
static createContactPerson(e = {}) {
|
|
114
117
|
return {
|
|
115
|
-
uuid:
|
|
118
|
+
uuid: a(),
|
|
116
119
|
isPrimary: !1,
|
|
117
120
|
email: "contact@example.com",
|
|
118
121
|
firstName: "Jane",
|
|
@@ -122,79 +125,79 @@ var BusinessFactory = class e {
|
|
|
122
125
|
...e
|
|
123
126
|
};
|
|
124
127
|
}
|
|
125
|
-
static createDetail(
|
|
128
|
+
static createDetail(r = {}) {
|
|
126
129
|
return {
|
|
127
|
-
uuid:
|
|
128
|
-
createdAt:
|
|
129
|
-
updatedAt:
|
|
130
|
+
uuid: a(),
|
|
131
|
+
createdAt: o(),
|
|
132
|
+
updatedAt: o(),
|
|
130
133
|
name: "New Deal",
|
|
131
134
|
boardColumn: {
|
|
132
|
-
uuid:
|
|
133
|
-
color:
|
|
135
|
+
uuid: a(),
|
|
136
|
+
color: t.BLUE,
|
|
134
137
|
displayName: "New",
|
|
135
138
|
key: "new"
|
|
136
139
|
},
|
|
137
140
|
client: {
|
|
138
|
-
uuid:
|
|
141
|
+
uuid: a(),
|
|
139
142
|
name: "Acme Corporation",
|
|
140
|
-
status:
|
|
141
|
-
type:
|
|
143
|
+
status: e.CUSTOMER,
|
|
144
|
+
type: n.BUSINESS
|
|
142
145
|
},
|
|
143
146
|
contactPersons: [],
|
|
144
147
|
createdBy: {
|
|
145
|
-
uuid:
|
|
148
|
+
uuid: a(),
|
|
146
149
|
firstName: "Admin",
|
|
147
150
|
lastName: "User"
|
|
148
151
|
},
|
|
149
152
|
dealLanguage: "en-US",
|
|
150
153
|
dealSource: "mail",
|
|
151
154
|
owner: null,
|
|
152
|
-
...
|
|
155
|
+
...r
|
|
153
156
|
};
|
|
154
157
|
}
|
|
155
|
-
static createIndex(
|
|
158
|
+
static createIndex(t = {}) {
|
|
156
159
|
return {
|
|
157
|
-
uuid:
|
|
158
|
-
createdAt:
|
|
159
|
-
updatedAt:
|
|
160
|
+
uuid: a(),
|
|
161
|
+
createdAt: o(),
|
|
162
|
+
updatedAt: o(),
|
|
160
163
|
name: "New Deal",
|
|
161
164
|
boardColumn: {
|
|
162
|
-
uuid:
|
|
165
|
+
uuid: a(),
|
|
163
166
|
displayName: "New",
|
|
164
167
|
key: "new"
|
|
165
168
|
},
|
|
166
169
|
client: {
|
|
167
|
-
uuid:
|
|
170
|
+
uuid: a(),
|
|
168
171
|
name: "Acme Corporation",
|
|
169
|
-
status:
|
|
170
|
-
type:
|
|
172
|
+
status: e.CUSTOMER,
|
|
173
|
+
type: n.BUSINESS
|
|
171
174
|
},
|
|
172
175
|
createdBy: {
|
|
173
|
-
uuid:
|
|
176
|
+
uuid: a(),
|
|
174
177
|
firstName: "Admin",
|
|
175
178
|
lastName: "User"
|
|
176
179
|
},
|
|
177
180
|
dealLanguage: "en-US",
|
|
178
181
|
dealSource: "mail",
|
|
179
182
|
owner: null,
|
|
180
|
-
...
|
|
183
|
+
...t
|
|
181
184
|
};
|
|
182
185
|
}
|
|
183
|
-
static createIndexList(e,
|
|
184
|
-
return Array.from({ length: e }, (e,
|
|
185
|
-
name: `Deal ${
|
|
186
|
-
...
|
|
186
|
+
static createIndexList(e, t = {}) {
|
|
187
|
+
return Array.from({ length: e }, (e, n) => r.createIndex({
|
|
188
|
+
name: `Deal ${n + 1}`,
|
|
189
|
+
...t
|
|
187
190
|
}));
|
|
188
191
|
}
|
|
189
|
-
},
|
|
192
|
+
}, l = class e {
|
|
190
193
|
static createBillingInformation(e = {}) {
|
|
191
194
|
return {
|
|
192
|
-
uuid:
|
|
193
|
-
createdAt:
|
|
194
|
-
updatedAt:
|
|
195
|
+
uuid: a(),
|
|
196
|
+
createdAt: o(),
|
|
197
|
+
updatedAt: o(),
|
|
195
198
|
billingLocation: {
|
|
196
|
-
uuid:
|
|
197
|
-
address:
|
|
199
|
+
uuid: a(),
|
|
200
|
+
address: i
|
|
198
201
|
},
|
|
199
202
|
invoiceCcEmails: [],
|
|
200
203
|
invoiceEmail: "billing@example.com",
|
|
@@ -203,7 +206,7 @@ var BusinessFactory = class e {
|
|
|
203
206
|
}
|
|
204
207
|
static createContactPerson(e = {}) {
|
|
205
208
|
return {
|
|
206
|
-
uuid:
|
|
209
|
+
uuid: a(),
|
|
207
210
|
isPrimary: !1,
|
|
208
211
|
email: "contact@example.com",
|
|
209
212
|
firstName: "Jane",
|
|
@@ -216,9 +219,9 @@ var BusinessFactory = class e {
|
|
|
216
219
|
}
|
|
217
220
|
static createDetail(e = {}) {
|
|
218
221
|
return {
|
|
219
|
-
uuid:
|
|
220
|
-
createdAt:
|
|
221
|
-
updatedAt:
|
|
222
|
+
uuid: a(),
|
|
223
|
+
createdAt: o(),
|
|
224
|
+
updatedAt: o(),
|
|
222
225
|
billingInformation: null,
|
|
223
226
|
contactPersons: [],
|
|
224
227
|
customFields: null,
|
|
@@ -228,10 +231,10 @@ var BusinessFactory = class e {
|
|
|
228
231
|
lastName: "Doe",
|
|
229
232
|
linkedBusinesses: [],
|
|
230
233
|
location: {
|
|
231
|
-
uuid:
|
|
232
|
-
createdAt:
|
|
233
|
-
updatedAt:
|
|
234
|
-
address:
|
|
234
|
+
uuid: a(),
|
|
235
|
+
createdAt: o(),
|
|
236
|
+
updatedAt: o(),
|
|
237
|
+
address: i
|
|
235
238
|
},
|
|
236
239
|
mobilePhone: "+32 470 12 34 56",
|
|
237
240
|
phone: "+32 2 123 45 67",
|
|
@@ -240,7 +243,7 @@ var BusinessFactory = class e {
|
|
|
240
243
|
}
|
|
241
244
|
static createIndex(e = {}) {
|
|
242
245
|
return {
|
|
243
|
-
uuid:
|
|
246
|
+
uuid: a(),
|
|
244
247
|
name: "John Doe",
|
|
245
248
|
email: "john.doe@example.com",
|
|
246
249
|
mobilePhone: "+32 470 12 34 56",
|
|
@@ -249,11 +252,11 @@ var BusinessFactory = class e {
|
|
|
249
252
|
...e
|
|
250
253
|
};
|
|
251
254
|
}
|
|
252
|
-
static createIndexList(
|
|
253
|
-
return Array.from({ length:
|
|
254
|
-
name: `Person ${
|
|
255
|
-
email: `person${
|
|
256
|
-
...
|
|
255
|
+
static createIndexList(t, n = {}) {
|
|
256
|
+
return Array.from({ length: t }, (t, r) => e.createIndex({
|
|
257
|
+
name: `Person ${r + 1}`,
|
|
258
|
+
email: `person${r + 1}@example.com`,
|
|
259
|
+
...n
|
|
257
260
|
}));
|
|
258
261
|
}
|
|
259
262
|
static createStatistics(e = {}) {
|
|
@@ -264,62 +267,62 @@ var BusinessFactory = class e {
|
|
|
264
267
|
...e
|
|
265
268
|
};
|
|
266
269
|
}
|
|
267
|
-
},
|
|
270
|
+
}, u = class e {
|
|
268
271
|
static createBusinessNote(e = {}) {
|
|
269
272
|
return {
|
|
270
|
-
uuid:
|
|
271
|
-
lastUpdatedByUserUuid:
|
|
272
|
-
updatedAt:
|
|
273
|
+
uuid: a(),
|
|
274
|
+
lastUpdatedByUserUuid: a(),
|
|
275
|
+
updatedAt: o(),
|
|
273
276
|
content: "This is a test note for the business.",
|
|
274
277
|
files: [],
|
|
275
278
|
lastUpdatedByUser: "Admin User",
|
|
276
279
|
...e
|
|
277
280
|
};
|
|
278
281
|
}
|
|
279
|
-
static createBusinessNoteList(
|
|
280
|
-
return Array.from({ length:
|
|
281
|
-
content: `Business note ${
|
|
282
|
-
...
|
|
282
|
+
static createBusinessNoteList(t, n = {}) {
|
|
283
|
+
return Array.from({ length: t }, (t, r) => e.createBusinessNote({
|
|
284
|
+
content: `Business note ${r + 1}`,
|
|
285
|
+
...n
|
|
283
286
|
}));
|
|
284
287
|
}
|
|
285
288
|
static createDealNote(e = {}) {
|
|
286
289
|
return {
|
|
287
|
-
uuid:
|
|
288
|
-
lastUpdatedByUserUuid:
|
|
289
|
-
updatedAt:
|
|
290
|
+
uuid: a(),
|
|
291
|
+
lastUpdatedByUserUuid: a(),
|
|
292
|
+
updatedAt: o(),
|
|
290
293
|
content: "This is a test note for the deal.",
|
|
291
294
|
files: [],
|
|
292
295
|
lastUpdatedByUser: "Admin User",
|
|
293
296
|
...e
|
|
294
297
|
};
|
|
295
298
|
}
|
|
296
|
-
static createDealNoteList(
|
|
297
|
-
return Array.from({ length:
|
|
298
|
-
content: `Deal note ${
|
|
299
|
-
...
|
|
299
|
+
static createDealNoteList(t, n = {}) {
|
|
300
|
+
return Array.from({ length: t }, (t, r) => e.createDealNote({
|
|
301
|
+
content: `Deal note ${r + 1}`,
|
|
302
|
+
...n
|
|
300
303
|
}));
|
|
301
304
|
}
|
|
302
305
|
static createIndividualNote(e = {}) {
|
|
303
306
|
return {
|
|
304
|
-
uuid:
|
|
305
|
-
lastUpdatedByUserUuid:
|
|
306
|
-
updatedAt:
|
|
307
|
+
uuid: a(),
|
|
308
|
+
lastUpdatedByUserUuid: a(),
|
|
309
|
+
updatedAt: o(),
|
|
307
310
|
content: "This is a test note for the individual.",
|
|
308
311
|
files: [],
|
|
309
312
|
lastUpdatedByUser: "Admin User",
|
|
310
313
|
...e
|
|
311
314
|
};
|
|
312
315
|
}
|
|
313
|
-
static createIndividualNoteList(
|
|
314
|
-
return Array.from({ length:
|
|
315
|
-
content: `Individual note ${
|
|
316
|
-
...
|
|
316
|
+
static createIndividualNoteList(t, n = {}) {
|
|
317
|
+
return Array.from({ length: t }, (t, r) => e.createIndividualNote({
|
|
318
|
+
content: `Individual note ${r + 1}`,
|
|
319
|
+
...n
|
|
317
320
|
}));
|
|
318
321
|
}
|
|
319
|
-
},
|
|
322
|
+
}, d = class {
|
|
320
323
|
static createDetail(e = {}) {
|
|
321
324
|
return {
|
|
322
|
-
uuid:
|
|
325
|
+
uuid: a(),
|
|
323
326
|
name: "Wisemen",
|
|
324
327
|
billingConfig: {
|
|
325
328
|
businessBillingInformationRequirement: "EMAIL_AND_ADDRESS",
|
|
@@ -364,4 +367,5 @@ var BusinessFactory = class e {
|
|
|
364
367
|
};
|
|
365
368
|
}
|
|
366
369
|
};
|
|
367
|
-
|
|
370
|
+
//#endregion
|
|
371
|
+
export { s as BusinessFactory, c as DealFactory, l as IndividualFactory, u as NoteFactory, d as TenantConfigFactory };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns 'var(--text-primary)' or 'var(--text-primary-on-brand)' depending on which provides
|
|
3
|
+
* better contrast against the given hex background color.
|
|
4
|
+
* Uses the WCAG relative luminance formula.
|
|
5
|
+
*/
|
|
6
|
+
export declare function getContrastColor(hex: string): 'var(--text-primary)' | 'var(--text-primary-on-brand)';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
//#region src/utils/uuid.util.ts
|
|
2
|
+
var e = class {
|
|
2
3
|
static getRandom() {
|
|
3
4
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replaceAll(/[xy]/g, (e) => {
|
|
4
5
|
let t = Math.random() * 16 | 0;
|
|
@@ -6,4 +7,5 @@ var UuidUtil = class {
|
|
|
6
7
|
});
|
|
7
8
|
}
|
|
8
9
|
};
|
|
9
|
-
|
|
10
|
+
//#endregion
|
|
11
|
+
export { e as t };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wisemen/wise-crm-web",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.2.0",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "CRM frontend package with Vue 3 components, composables and types",
|
|
7
7
|
"author": "Wisemen",
|
|
@@ -43,50 +43,50 @@
|
|
|
43
43
|
"reka-ui": ">=2.6.0",
|
|
44
44
|
"temporal-polyfill": ">=0.3.0",
|
|
45
45
|
"vue": ">=3.5.0",
|
|
46
|
-
"vue-i18n": ">=11.
|
|
46
|
+
"vue-i18n": ">=11.3.0",
|
|
47
47
|
"vue-router": ">=4.5.0",
|
|
48
48
|
"zod": ">=4.0.0"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@googlemaps/js-api-loader": "
|
|
52
|
-
"@number-flow/vue": "0.
|
|
53
|
-
"@tiptap/extension-color": "3.
|
|
54
|
-
"@tiptap/extension-link": "3.
|
|
55
|
-
"@tiptap/extension-text-style": "3.
|
|
56
|
-
"@tiptap/pm": "3.
|
|
57
|
-
"@tiptap/starter-kit": "3.
|
|
58
|
-
"@tiptap/vue-3": "3.
|
|
59
|
-
"@vueuse/router": "
|
|
51
|
+
"@googlemaps/js-api-loader": "2.0.2",
|
|
52
|
+
"@number-flow/vue": "0.5.0",
|
|
53
|
+
"@tiptap/extension-color": "3.22.3",
|
|
54
|
+
"@tiptap/extension-link": "3.22.3",
|
|
55
|
+
"@tiptap/extension-text-style": "3.22.3",
|
|
56
|
+
"@tiptap/pm": "3.22.3",
|
|
57
|
+
"@tiptap/starter-kit": "3.22.3",
|
|
58
|
+
"@tiptap/vue-3": "3.22.3",
|
|
59
|
+
"@vueuse/router": "14.2.1",
|
|
60
60
|
"@wisemen/vue-core-query": "0.0.47",
|
|
61
61
|
"blurhash": "2.0.5",
|
|
62
|
-
"dayjs": "
|
|
63
|
-
"dompurify": "3.
|
|
64
|
-
"libphonenumber-js": "1.12.
|
|
65
|
-
"vue3-google-map": "0.
|
|
62
|
+
"dayjs": "1.11.20",
|
|
63
|
+
"dompurify": "3.4.0",
|
|
64
|
+
"libphonenumber-js": "1.12.41",
|
|
65
|
+
"vue3-google-map": "0.27.1"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@hey-api/openapi-ts": "0.92.4",
|
|
69
69
|
"@tailwindcss/typography": "0.5.19",
|
|
70
|
-
"@tailwindcss/vite": "4.2.
|
|
71
|
-
"@tanstack/vue-query": "
|
|
72
|
-
"@vue/tsconfig": "0.
|
|
73
|
-
"@vueuse/core": "
|
|
70
|
+
"@tailwindcss/vite": "4.2.2",
|
|
71
|
+
"@tanstack/vue-query": "5.99.0",
|
|
72
|
+
"@vue/tsconfig": "0.9.1",
|
|
73
|
+
"@vueuse/core": "14.2.1",
|
|
74
74
|
"@wisemen/eslint-config-vue": "1.7.6",
|
|
75
75
|
"@wisemen/open-api-plugins": "1.0.0",
|
|
76
|
-
"eslint-plugin-oxlint": "1.
|
|
77
|
-
"formango": "3.2.
|
|
78
|
-
"motion-v": "
|
|
79
|
-
"pinia": "
|
|
80
|
-
"reka-ui": "
|
|
81
|
-
"rollup-plugin-visualizer": "
|
|
76
|
+
"eslint-plugin-oxlint": "1.60.0",
|
|
77
|
+
"formango": "3.2.4",
|
|
78
|
+
"motion-v": "2.2.1",
|
|
79
|
+
"pinia": "3.0.4",
|
|
80
|
+
"reka-ui": "2.9.6",
|
|
81
|
+
"rollup-plugin-visualizer": "7.0.1",
|
|
82
82
|
"superjson": "2.2.6",
|
|
83
83
|
"tailwind-merge": "3.5.0",
|
|
84
|
-
"tailwindcss": "4.2.
|
|
85
|
-
"vite": "
|
|
84
|
+
"tailwindcss": "4.2.2",
|
|
85
|
+
"vite": "8.0.8",
|
|
86
86
|
"vitest": "3.2.4",
|
|
87
|
-
"vue": "3.5.
|
|
88
|
-
"vue-router": "
|
|
89
|
-
"zod": "
|
|
87
|
+
"vue": "3.5.32",
|
|
88
|
+
"vue-router": "5.0.4",
|
|
89
|
+
"zod": "4.3.6"
|
|
90
90
|
},
|
|
91
91
|
"scripts": {
|
|
92
92
|
"build": "vite build && vue-tsc --emitDeclarationOnly --outDir ./dist",
|
|
@@ -1,17 +0,0 @@
|
|
|
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 = {
|
|
4
|
-
viewBox: "0 0 16 16",
|
|
5
|
-
fill: "none"
|
|
6
|
-
};
|
|
7
|
-
function _sfc_render(e, s) {
|
|
8
|
-
return openBlock(), createElementBlock("svg", _hoisted_1, [...s[0] ||= [createElementVNode("path", {
|
|
9
|
-
d: "M14.6666 8H12L9.99998 14L5.99998 2L3.99998 8H1.33331",
|
|
10
|
-
class: "stroke-current",
|
|
11
|
-
"stroke-width": "1.2",
|
|
12
|
-
"stroke-linecap": "round",
|
|
13
|
-
"stroke-linejoin": "round"
|
|
14
|
-
}, null, -1)]]);
|
|
15
|
-
}
|
|
16
|
-
var ActivityIcon_default = /* @__PURE__ */ __plugin_vue_export_helper_default(_sfc_main, [["render", _sfc_render]]);
|
|
17
|
-
export { ActivityIcon_default as default };
|