@wisemen/wise-crm-web 0.2.5 → 1.0.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/BusinessDetailSidebarProvider-Dm6Dd7Nq.js +2899 -0
- package/dist/{BusinessDetailView-BZpocob4.js → BusinessDetailView-BHVUfCpV.js} +5 -5
- package/dist/{CrmDetailHeaderCard-Jo2OteBb.js → CrmDetailHeaderCard-CiVLyIuw.js} +39 -39
- package/dist/{CrmDetailView-DKHX-JEl.js → CrmDetailView-DaAuWeiB.js} +14 -14
- package/dist/{DealCommunicationTabView-ClflVxHJ.js → DealCommunicationTabView-xq_zOAsr.js} +2 -2
- package/dist/{DealDetailView-ChAFvBBK.js → DealDetailView-C54XpYN1.js} +124 -124
- package/dist/{DealExternalAttachment-ClwtFzpQ.js → DealExternalAttachment-Dp44vkgt.js} +1 -1
- package/dist/{DealSendMailDialog-SWWyaxq8.js → DealSendMailDialog-D11Tgd_A.js} +50 -50
- package/dist/{Error-CX6APxDX.js → Error-X0deDY-N.js} +510 -8
- package/dist/{IndividualDetailSidebarProvider-BJgxw1Jd.js → IndividualDetailSidebarProvider-BvjhFng9.js} +218 -218
- package/dist/{IndividualDetailView-CvGUCWPY.js → IndividualDetailView-Cq8iAwQv.js} +5 -5
- package/dist/{client-CpsHjr8V.js → client-S6BLV3Ct.js} +7 -12
- package/dist/composables/crmConfig.composable.d.ts +1 -0
- package/dist/index.js +375 -375
- package/dist/kbo-client/client/client.gen.d.ts +2 -0
- package/dist/kbo-client/client/index.d.ts +8 -0
- package/dist/kbo-client/client/types.gen.d.ts +117 -0
- package/dist/kbo-client/client/utils.gen.d.ts +33 -0
- package/dist/kbo-client/client.gen.d.ts +12 -0
- package/dist/kbo-client/core/auth.gen.d.ts +18 -0
- package/dist/kbo-client/core/bodySerializer.gen.d.ts +25 -0
- package/dist/kbo-client/core/params.gen.d.ts +43 -0
- package/dist/kbo-client/core/pathSerializer.gen.d.ts +33 -0
- package/dist/kbo-client/core/queryKeySerializer.gen.d.ts +18 -0
- package/dist/kbo-client/core/serverSentEvents.gen.d.ts +71 -0
- package/dist/kbo-client/core/types.gen.d.ts +78 -0
- package/dist/kbo-client/core/utils.gen.d.ts +19 -0
- package/dist/kbo-client/index.d.ts +2 -0
- package/dist/kbo-client/sdk.gen.d.ts +72 -0
- package/dist/kbo-client/types.gen.d.ts +2089 -0
- package/dist/kbo-client/zod.gen.d.ts +5943 -0
- package/dist/libs/http.lib.d.ts +3 -1
- package/dist/libs/kboBaseUrl.lib.d.ts +1 -0
- package/dist/models/cbe/search/cbeEnterpriseSearchDto.model.d.ts +1 -1
- package/dist/testing.js +1 -1
- package/package.json +2 -1
- package/dist/BusinessDetailSidebarProvider-CXG99iHk.js +0 -2077
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { G as AppDialogContainer_default, H as AppForm_default, J as AppDialogActionCancel_default, K as AppDialogActions_default, L as useOffsetInfiniteQuery, V as toFormField, Y as useApiErrorToast, Z as createI18nKeyMap, at as StringUtil, p as AppUnstyledButton_default, q as AppDialogActionPrimary_default, z as AppDialogHeader_default } from "./Error-X0deDY-N.js";
|
|
2
2
|
import { a as AppGroup_default, l as He, s as ZonedDateTimeTransformer, t as AppSkeletonLoader_default, u as ze } from "./AppSkeletonLoader-BAhoOmFD.js";
|
|
3
|
-
import {
|
|
3
|
+
import { A as updateMailTemplateV1, D as updateDealV1, E as updateDealContactPersonV1, H as viewDealContactPersonDetailV1, S as unlinkContactPersonFromDealV1, U as viewDealDetailV1, W as viewDealIndexV1, _ as makeDealContactPersonPrimaryV1, at as viewUserIndexV1, b as transitionDealColumnV1, et as viewMailTemplateDetailByKeyV1, f as linkContactPersonToDealV1, h as listBoardColumnsV1, i as createFileV1, m as listBoardColumnTransitionsV1, nt as viewMailTemplateIndexV1, r as createDealV1, t as confirmFileUploadV2, tt as viewMailTemplateDetailV1, ut as ClientType, vt as SdkContentLocale } from "./client-S6BLV3Ct.js";
|
|
4
4
|
import { t as __plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-BSi1g3Lh.js";
|
|
5
|
-
import { a as RevealOnHoverOrFocus_default, i as FileUtil, n as DealCommunicationMailListSectionContainer_default, o as FileReferenceTransformer, r as MailService, t as DealExternalAttachment_default } from "./DealExternalAttachment-
|
|
5
|
+
import { a as RevealOnHoverOrFocus_default, i as FileUtil, n as DealCommunicationMailListSectionContainer_default, o as FileReferenceTransformer, r as MailService, t as DealExternalAttachment_default } from "./DealExternalAttachment-Dp44vkgt.js";
|
|
6
6
|
import z$1, { z } from "zod";
|
|
7
7
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeModels, mergeProps, normalizeClass, onBeforeUnmount, onMounted, openBlock, ref, renderList, renderSlot, toDisplayString, unref, useAttrs, useId, useModel, useTemplateRef, watch, withCtx } from "vue";
|
|
8
8
|
import { useI18n } from "vue-i18n";
|
|
@@ -585,28 +585,28 @@ function useMailTemplateDetailByKeyQuery(i) {
|
|
|
585
585
|
var _hoisted_1$10 = { class: "p-xl w-96 max-w-full" }, AppRichTextFieldLinkDialog_default = /* @__PURE__ */ defineComponent({
|
|
586
586
|
__name: "AppRichTextFieldLinkDialog",
|
|
587
587
|
emits: ["close", "confirm"],
|
|
588
|
-
setup(
|
|
589
|
-
let
|
|
588
|
+
setup(i, { emit: R }) {
|
|
589
|
+
let V = R, H = useI18n(), U = useForm({
|
|
590
590
|
schema: z.object({ url: z.string().url() }),
|
|
591
591
|
onSubmit: (i) => {
|
|
592
|
-
|
|
592
|
+
V("confirm", i.url);
|
|
593
593
|
}
|
|
594
|
-
}),
|
|
594
|
+
}), W = U.register("url");
|
|
595
595
|
function J() {
|
|
596
|
-
|
|
596
|
+
V("close");
|
|
597
597
|
}
|
|
598
|
-
return (
|
|
598
|
+
return (i, R) => (openBlock(), createBlock(unref(VcDialog), { onClose: J }, {
|
|
599
599
|
default: withCtx(() => [createElementVNode("div", _hoisted_1$10, [createVNode(AppDialogHeader_default, {
|
|
600
|
-
title: unref(
|
|
600
|
+
title: unref(H).t("rich_text.link_dialog.title"),
|
|
601
601
|
icon: "link"
|
|
602
602
|
}, {
|
|
603
603
|
"closse-button": withCtx(() => [createVNode(unref(VcDialogCloseButton))]),
|
|
604
604
|
_: 1
|
|
605
|
-
}, 8, ["title"]), createVNode(AppForm_default, { form: unref(
|
|
606
|
-
default: withCtx(() => [createVNode(unref(VcTextField), mergeProps({ label: unref(
|
|
607
|
-
default: withCtx(() => [createVNode(AppDialogActionCancel_default, { label: unref(
|
|
608
|
-
label: unref(
|
|
609
|
-
onClick:
|
|
605
|
+
}, 8, ["title"]), createVNode(AppForm_default, { form: unref(U) }, {
|
|
606
|
+
default: withCtx(() => [createVNode(unref(VcTextField), mergeProps({ label: unref(H).t("rich_text.link_dialog.url") }, unref(toFormField)(unref(W))), null, 16, ["label"]), createVNode(AppDialogActions_default, null, {
|
|
607
|
+
default: withCtx(() => [createVNode(AppDialogActionCancel_default, { label: unref(H).t("shared.cancel") }, null, 8, ["label"]), createVNode(AppDialogActionPrimary_default, {
|
|
608
|
+
label: unref(H).t("shared.confirm"),
|
|
609
|
+
onClick: R[0] ||= (i) => unref(U).submit()
|
|
610
610
|
}, null, 8, ["label"])]),
|
|
611
611
|
_: 1
|
|
612
612
|
})]),
|
|
@@ -1343,26 +1343,26 @@ var _hoisted_1$3 = { class: "w-full overflow-hidden" }, _hoisted_2$1 = { class:
|
|
|
1343
1343
|
}
|
|
1344
1344
|
},
|
|
1345
1345
|
emits: ["cancel"],
|
|
1346
|
-
setup(
|
|
1347
|
-
let
|
|
1348
|
-
function
|
|
1349
|
-
|
|
1346
|
+
setup(N, { emit: P }) {
|
|
1347
|
+
let I = N, R = P, B = useI18n();
|
|
1348
|
+
function V() {
|
|
1349
|
+
R("cancel");
|
|
1350
1350
|
}
|
|
1351
|
-
return (
|
|
1351
|
+
return (P, R) => (openBlock(), createBlock(AppDialogContainer_default, { class: "pt-lg gap-md border-secondary flex justify-between border-t" }, {
|
|
1352
1352
|
default: withCtx(() => [createVNode(unref(VcButton), {
|
|
1353
1353
|
variant: "secondary",
|
|
1354
1354
|
size: "lg",
|
|
1355
|
-
onClick:
|
|
1355
|
+
onClick: V
|
|
1356
1356
|
}, {
|
|
1357
|
-
default: withCtx(() => [createTextVNode(toDisplayString(unref(
|
|
1357
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(B).t("wise_crm.form.cancel")), 1)]),
|
|
1358
1358
|
_: 1
|
|
1359
|
-
}), createElementVNode("div", _hoisted_1$2, [
|
|
1360
|
-
"is-loading":
|
|
1361
|
-
"is-disabled":
|
|
1359
|
+
}), createElementVNode("div", _hoisted_1$2, [N.isGeneratingPdf ? (openBlock(), createElementBlock("div", _hoisted_2, [createVNode(unref(VcSpinner), { class: "size-3" }), createElementVNode("span", _hoisted_3, toDisplayString(unref(B).t("wise_crm.deal.send_mail.pdf_generating")), 1)])) : createCommentVNode("", !0), createVNode(unref(VcButton), {
|
|
1360
|
+
"is-loading": I.isSubmitting,
|
|
1361
|
+
"is-disabled": N.isGeneratingPdf,
|
|
1362
1362
|
size: "lg",
|
|
1363
1363
|
type: "submit"
|
|
1364
1364
|
}, {
|
|
1365
|
-
default: withCtx(() => [createTextVNode(toDisplayString(unref(
|
|
1365
|
+
default: withCtx(() => [createTextVNode(toDisplayString(unref(B).t("wise_crm.form.send")), 1)]),
|
|
1366
1366
|
_: 1
|
|
1367
1367
|
}, 8, ["is-loading", "is-disabled"])])]),
|
|
1368
1368
|
_: 1
|
|
@@ -1397,23 +1397,23 @@ var _hoisted_1$1 = { class: "flex-1 overflow-y-auto" }, DealSendMailForm_default
|
|
|
1397
1397
|
template: {}
|
|
1398
1398
|
},
|
|
1399
1399
|
emits: ["close"],
|
|
1400
|
-
setup(
|
|
1401
|
-
let
|
|
1400
|
+
setup(i, { emit: P }) {
|
|
1401
|
+
let I = i, R = P, H = useI18n(), U = useApiErrorToast(), W = useMailCreateMutation(), G = computed(() => I.template.locales.findIndex((i) => i.language === I.dealLanguage)), K = useForm({
|
|
1402
1402
|
initialState: {
|
|
1403
1403
|
clientId: {
|
|
1404
|
-
uuid:
|
|
1405
|
-
type:
|
|
1404
|
+
uuid: I.client.uuid,
|
|
1405
|
+
type: I.client.type
|
|
1406
1406
|
},
|
|
1407
|
-
dealUuid:
|
|
1408
|
-
mailTemplateUuid:
|
|
1409
|
-
attachments: [...
|
|
1410
|
-
bcc:
|
|
1411
|
-
cc:
|
|
1407
|
+
dealUuid: I.dealUuid,
|
|
1408
|
+
mailTemplateUuid: I.template.uuid,
|
|
1409
|
+
attachments: [...I.template.locales[G.value]?.attachments.map(FileReferenceTransformer.toForm) ?? []],
|
|
1410
|
+
bcc: I.template.defaultBCC,
|
|
1411
|
+
cc: I.template.defaultCC,
|
|
1412
1412
|
from: null,
|
|
1413
1413
|
replyTo: null,
|
|
1414
|
-
subject:
|
|
1415
|
-
text:
|
|
1416
|
-
to:
|
|
1414
|
+
subject: I.template.locales[G.value]?.subject ?? null,
|
|
1415
|
+
text: I.template.locales[G.value]?.message ?? null,
|
|
1416
|
+
to: I.defaultSenderEmails ?? []
|
|
1417
1417
|
},
|
|
1418
1418
|
schema: mailCreateFormSchema,
|
|
1419
1419
|
onSubmit: async (i) => {
|
|
@@ -1421,8 +1421,8 @@ var _hoisted_1$1 = { class: "flex-1 overflow-y-auto" }, DealSendMailForm_default
|
|
|
1421
1421
|
await W.execute({
|
|
1422
1422
|
body: i,
|
|
1423
1423
|
params: {
|
|
1424
|
-
dealUuid:
|
|
1425
|
-
externalAttachments:
|
|
1424
|
+
dealUuid: I.dealUuid,
|
|
1425
|
+
externalAttachments: I.externalAttachments
|
|
1426
1426
|
}
|
|
1427
1427
|
}), $();
|
|
1428
1428
|
} catch (i) {
|
|
@@ -1430,12 +1430,12 @@ var _hoisted_1$1 = { class: "flex-1 overflow-y-auto" }, DealSendMailForm_default
|
|
|
1430
1430
|
}
|
|
1431
1431
|
}
|
|
1432
1432
|
});
|
|
1433
|
-
K.register("bcc"), K.register("cc"), K.register("replyTo"), K.register("from"), K.register("dealUuid",
|
|
1433
|
+
K.register("bcc"), K.register("cc"), K.register("replyTo"), K.register("from"), K.register("dealUuid", I.dealUuid), K.register("clientId", I.client);
|
|
1434
1434
|
let Y = K.register("subject"), X = K.register("to"), Z = K.register("attachments", []), Q = K.register("text");
|
|
1435
1435
|
function $() {
|
|
1436
|
-
|
|
1436
|
+
R("close");
|
|
1437
1437
|
}
|
|
1438
|
-
return (
|
|
1438
|
+
return (i, P) => (openBlock(), createBlock(AppForm_default, {
|
|
1439
1439
|
form: unref(K),
|
|
1440
1440
|
class: "flex h-full flex-col"
|
|
1441
1441
|
}, {
|
|
@@ -1464,7 +1464,7 @@ var _hoisted_1$1 = { class: "flex-1 overflow-y-auto" }, DealSendMailForm_default
|
|
|
1464
1464
|
_: 1
|
|
1465
1465
|
}),
|
|
1466
1466
|
createVNode(DealCommunicationMailListSectionContainer_default, null, {
|
|
1467
|
-
default: withCtx(() => [createVNode(DealSendMailFormAttachmentField_default, mergeProps({ "external-attachments":
|
|
1467
|
+
default: withCtx(() => [createVNode(DealSendMailFormAttachmentField_default, mergeProps({ "external-attachments": I.externalAttachments }, unref(toFormField)(unref(Z)), { accept: ["application/pdf", "image/*"] }), null, 16, ["external-attachments"])]),
|
|
1468
1468
|
_: 1
|
|
1469
1469
|
}),
|
|
1470
1470
|
createVNode(DealCommunicationMailListSectionContainer_default, { class: "flex-1 border-b-0" }, {
|
|
@@ -1475,7 +1475,7 @@ var _hoisted_1$1 = { class: "flex-1 overflow-y-auto" }, DealSendMailForm_default
|
|
|
1475
1475
|
_: 1
|
|
1476
1476
|
})
|
|
1477
1477
|
]), createVNode(DealSendMailFormFooter_default, {
|
|
1478
|
-
"is-generating-pdf":
|
|
1478
|
+
"is-generating-pdf": I.isGeneratingPdf,
|
|
1479
1479
|
"is-submitting": unref(K).isSubmitting.value,
|
|
1480
1480
|
onCancel: $
|
|
1481
1481
|
}, null, 8, ["is-generating-pdf", "is-submitting"])]),
|
|
@@ -1497,17 +1497,17 @@ var _hoisted_1$1 = { class: "flex-1 overflow-y-auto" }, DealSendMailForm_default
|
|
|
1497
1497
|
},
|
|
1498
1498
|
emits: ["close"],
|
|
1499
1499
|
setup(i, { emit: N }) {
|
|
1500
|
-
let P = i,
|
|
1500
|
+
let P = i, I = N, R = useApiErrorToast(), B = ref(P.generatePdfFile !== void 0), H = ref(null), U = computed(() => H.value === null ? P.externalAttachments : [...P.externalAttachments, H.value]), W = useDealDetailQuery(computed(() => P.dealUuid)), G = computed(() => W.data.value?.dealLanguage ?? SdkContentLocale.NL_BE), K = useMailTemplateDetailByKeyQuery(computed(() => P.templateKey));
|
|
1501
1501
|
function Y() {
|
|
1502
|
-
|
|
1502
|
+
I("close");
|
|
1503
1503
|
}
|
|
1504
1504
|
async function X() {
|
|
1505
1505
|
if (P.generatePdfFile !== void 0) try {
|
|
1506
1506
|
H.value = await P.generatePdfFile;
|
|
1507
1507
|
} catch (i) {
|
|
1508
|
-
|
|
1508
|
+
R.show(i);
|
|
1509
1509
|
} finally {
|
|
1510
|
-
|
|
1510
|
+
B.value = !1;
|
|
1511
1511
|
}
|
|
1512
1512
|
}
|
|
1513
1513
|
return onMounted(async () => {
|
|
@@ -1532,7 +1532,7 @@ var _hoisted_1$1 = { class: "flex-1 overflow-y-auto" }, DealSendMailForm_default
|
|
|
1532
1532
|
client: P.client,
|
|
1533
1533
|
"deal-uuid": P.dealUuid,
|
|
1534
1534
|
"external-attachments": U.value,
|
|
1535
|
-
"is-generating-pdf":
|
|
1535
|
+
"is-generating-pdf": B.value,
|
|
1536
1536
|
onClose: Y
|
|
1537
1537
|
}, null, 8, [
|
|
1538
1538
|
"default-sender-emails",
|