@beterdichtbij/component-library 0.50.0 → 0.51.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/bd-component-lib.cjs.js +60 -60
- package/dist/bd-component-lib.es.js +33 -24
- package/dist/bd-component-lib.umd.js +63 -63
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/src/components/molecules/BDChatCloud/BDChatCloud.vue.d.ts +11 -0
- package/dist/src/components/molecules/BDContentLibraryCardMessageTemplate/BDContentLibraryCardMessageTemplate.vue.d.ts +9 -0
- package/dist/src/components/molecules/BDMarkdownEditor/BDMarkdownEditor.vue.d.ts +11 -0
- package/dist/src/interfaces/BDChatCloudProps.d.ts +1 -0
- package/dist/src/interfaces/BDMarkdownEditorProps.d.ts +1 -0
- package/dist/src/utils/attachment.d.ts +3 -3
- package/package.json +1 -1
|
@@ -32419,15 +32419,15 @@ const qN = Ar.create({
|
|
|
32419
32419
|
]))), 128))
|
|
32420
32420
|
]));
|
|
32421
32421
|
}
|
|
32422
|
-
}), Bm = (t) => t.Naam.toLowerCase().endsWith(".png") || t.Naam.toLowerCase().endsWith(".jpg") || t.Naam.toLowerCase().endsWith(".jpeg") || t.Naam.toLowerCase().endsWith(".gif"), RD = (t) =>
|
|
32423
|
-
const
|
|
32422
|
+
}), ZU = (t) => t == null ? void 0 : t.map((e) => e.CorrelationId), Bm = (t) => t.Naam.toLowerCase().endsWith(".png") || t.Naam.toLowerCase().endsWith(".jpg") || t.Naam.toLowerCase().endsWith(".jpeg") || t.Naam.toLowerCase().endsWith(".gif"), RD = (t, e) => e.DownloadUrl ? e.DownloadUrl : e.identifier ? `${t}/Collega/api/Conversation/GetConversationAttachment?conversationId=${e.conversationId}&fileMetadataId=${e.identifier}` : e.url ? e.url : e.Id ? `${t}/Portaal/DownloadBerichtBijlage/${e.Id}` : e.FileId ? `${t}/Portaal/DownloadStandardMessageAttachment/${e.StandardAttachmentId}/${e.FileId}` : `${t}/Portaal/DownloadBerichtStagingBijlage/${e.CorrelationId}`, $D = (t, e) => e.ThumbnailUrl ? e.ThumbnailUrl : e.identifier ? `${t}/Collega/api/Conversation/GetConversationAttachmentThumbnail?conversationId=${e.conversationId}&fileMetadataId=${e.identifier}` : e.url ? e.url : e.Id ? `${t}/Portaal/DownloadBerichtBijlageThumbnail/${e.Id}` : e.StandardAttachmentId || e.standardAttachmentId ? `${t}/Portaal/DownloadStandardMessageAttachmentThumbnail/${e.StandardAttachmentId}/${e.FileId}` : `${t}/Portaal/DownloadBerichtStagingBijlageThumbnail/${e.CorrelationId}`, FD = (t, e) => e.identifier ? `${t}/Collega/api/Conversation/GetConversationAttachment?conversationId=${e.conversationId}&fileMetadataId=${e.identifier}` : null, BD = (t, e) => e ? Bm(t) : !Bm(t), ts = (t = "", e, n) => e === void 0 ? void 0 : e.filter((o) => BD(o, n)).map((o) => {
|
|
32423
|
+
const i = typeof o.CorrelationId == "string" ? o.CorrelationId : o.CorrelationId != null ? o.CorrelationId.toString() : "";
|
|
32424
32424
|
return {
|
|
32425
|
-
downloadUrl: RD(
|
|
32426
|
-
previewUrl: $D(
|
|
32427
|
-
fullImageUrl: FD(
|
|
32428
|
-
altName: `${
|
|
32429
|
-
...
|
|
32430
|
-
CorrelationId:
|
|
32425
|
+
downloadUrl: RD(t, o),
|
|
32426
|
+
previewUrl: $D(t, o),
|
|
32427
|
+
fullImageUrl: FD(t, o),
|
|
32428
|
+
altName: `${o.Naam}`,
|
|
32429
|
+
...o,
|
|
32430
|
+
CorrelationId: i
|
|
32431
32431
|
};
|
|
32432
32432
|
});
|
|
32433
32433
|
/*!
|
|
@@ -34763,6 +34763,7 @@ const ps = {
|
|
|
34763
34763
|
variant: { default: Fu.BASIC },
|
|
34764
34764
|
files: { default: void 0 },
|
|
34765
34765
|
pills: { default: void 0 },
|
|
34766
|
+
apiUrl: { default: "" },
|
|
34766
34767
|
modelValue: {}
|
|
34767
34768
|
},
|
|
34768
34769
|
emits: ["update:modelValue", "upload", "action"],
|
|
@@ -34808,7 +34809,7 @@ const ps = {
|
|
|
34808
34809
|
});
|
|
34809
34810
|
}
|
|
34810
34811
|
);
|
|
34811
|
-
const l = ne(() => n.state === !1 ? "is-invalid" : null), a = ne(() => m("bold")), c = ne(() => m("italic")), u = ne(() => m("underline")), d = ne(() => m("bulletList")), f = ne(() => m("orderedList")), h = ne(() => m("link")), p = ne(() => n.variant === Fu.FULL), m = (R) => s.value && s.value.isActive(R) ? "active" : null, g = ne(() => n.files && n.files.length > 0 ? ts(n.files, !1) : null), b = ne(() => n.files && n.files.length > 0 ? ts(n.files, !0) : null), C = (R) => {
|
|
34812
|
+
const l = ne(() => n.state === !1 ? "is-invalid" : null), a = ne(() => m("bold")), c = ne(() => m("italic")), u = ne(() => m("underline")), d = ne(() => m("bulletList")), f = ne(() => m("orderedList")), h = ne(() => m("link")), p = ne(() => n.variant === Fu.FULL), m = (R) => s.value && s.value.isActive(R) ? "active" : null, g = ne(() => n.files && n.files.length > 0 ? ts(n.apiUrl, n.files, !1) : null), b = ne(() => n.files && n.files.length > 0 ? ts(n.apiUrl, n.files, !0) : null), C = (R) => {
|
|
34812
34813
|
e("action", { name: "delete-attachment", obj: R });
|
|
34813
34814
|
}, y = (R) => {
|
|
34814
34815
|
e("action", { name: "image-attachment", obj: R });
|
|
@@ -35038,11 +35039,12 @@ const ps = {
|
|
|
35038
35039
|
message: { default: "" },
|
|
35039
35040
|
isSender: { type: Boolean, default: !1 },
|
|
35040
35041
|
files: { default: void 0 },
|
|
35041
|
-
pills: { default: void 0 }
|
|
35042
|
+
pills: { default: void 0 },
|
|
35043
|
+
apiUrl: { default: "" }
|
|
35042
35044
|
},
|
|
35043
35045
|
emits: ["show-attachment", "action"],
|
|
35044
35046
|
setup(t, { emit: e }) {
|
|
35045
|
-
const n = t, r = ne(() => n.isSender ? "sender" : Qe), o = ne(() => ts(n.files, !1)), i = ne(() => ts(n.files, !0)), s = () => {
|
|
35047
|
+
const n = t, r = ne(() => n.isSender ? "sender" : Qe), o = ne(() => ts(n.apiUrl, n.files, !1)), i = ne(() => ts(n.apiUrl, n.files, !0)), s = () => {
|
|
35046
35048
|
e("action", "copy-message");
|
|
35047
35049
|
}, l = (a) => {
|
|
35048
35050
|
e("show-attachment", a);
|
|
@@ -37319,6 +37321,10 @@ const fj = (t) => typeof t == "number", hj = 12, pj = ["textContent"], mj = ["te
|
|
|
37319
37321
|
validator(t) {
|
|
37320
37322
|
return ["insert", "edit", "shared"].includes(t);
|
|
37321
37323
|
}
|
|
37324
|
+
},
|
|
37325
|
+
apiUrl: {
|
|
37326
|
+
type: String,
|
|
37327
|
+
default: ""
|
|
37322
37328
|
}
|
|
37323
37329
|
},
|
|
37324
37330
|
emits: [
|
|
@@ -37328,7 +37334,7 @@ const fj = (t) => typeof t == "number", hj = 12, pj = ["textContent"], mj = ["te
|
|
|
37328
37334
|
"delete"
|
|
37329
37335
|
],
|
|
37330
37336
|
setup(t, { emit: e }) {
|
|
37331
|
-
const n = t, { t: r } = mn(), o = $e(null), i = $e(!1), s = $e(!1), l = ne(() => `collapse-preview-${n.item.itemId}`), a = ne(() => Av(n.item.files) ? null : n.item.files.length), c = ne(() => n.variant === "insert"), u = ne(() => n.variant === "edit"), d = ne(() => n.variant === "shared"), f = ne(() => s.value ? Qe : "content-library-card-not-collapsable"), h = ne(() => n.item.text ? Tj(n.item.text) : Qe), p = ne(() => ts(n.item.files, !1)), m = ne(() => ts(n.item.files, !0)), g = () => {
|
|
37337
|
+
const n = t, { t: r } = mn(), o = $e(null), i = $e(!1), s = $e(!1), l = ne(() => `collapse-preview-${n.item.itemId}`), a = ne(() => Av(n.item.files) ? null : n.item.files.length), c = ne(() => n.variant === "insert"), u = ne(() => n.variant === "edit"), d = ne(() => n.variant === "shared"), f = ne(() => s.value ? Qe : "content-library-card-not-collapsable"), h = ne(() => n.item.text ? Tj(n.item.text) : Qe), p = ne(() => ts(n.apiUrl, n.item.files, !1)), m = ne(() => ts(n.apiUrl, n.item.files, !0)), g = () => {
|
|
37332
37338
|
o.value && (s.value = i.value || o.value.scrollHeight > o.value.clientHeight || n.item.files && n.item.files.length > 0);
|
|
37333
37339
|
}, b = () => {
|
|
37334
37340
|
e("on-insert", n.item.itemId);
|
|
@@ -37956,7 +37962,7 @@ const eU = "Failed to copy value to clipboard. Unknown type.", tU = {
|
|
|
37956
37962
|
}
|
|
37957
37963
|
};
|
|
37958
37964
|
new qj();
|
|
37959
|
-
const { showSuccessToast: bh } = Yc(),
|
|
37965
|
+
const { showSuccessToast: bh } = Yc(), JU = (t, e, n) => {
|
|
37960
37966
|
const r = `${e}
|
|
37961
37967
|
${t.AfzenderNaam}: \r${t.Datum} \r${b5(C5(t.Tekst))}`;
|
|
37962
37968
|
$i.copy(r).then(() => bh(n));
|
|
@@ -37968,7 +37974,7 @@ ${r}`;
|
|
|
37968
37974
|
$i.copy(o).then(
|
|
37969
37975
|
() => bh(n)
|
|
37970
37976
|
);
|
|
37971
|
-
},
|
|
37977
|
+
}, XU = (t, e) => {
|
|
37972
37978
|
$i.copy(t).then(() => bh(e));
|
|
37973
37979
|
}, iU = { class: "message-cloud-multi-select" }, sU = { class: "message-cloud-multi-select__body" }, aU = { class: "message-content" }, lU = { class: "message-cloud__header" }, cU = { class: "message-cloud__title" }, uU = { key: 0 }, dU = ["innerHTML"], fU = /* @__PURE__ */ je({
|
|
37974
37980
|
__name: "BDConversationToTextModal",
|
|
@@ -38634,7 +38640,7 @@ var KU = S5.exports;
|
|
|
38634
38640
|
const YU = /* @__PURE__ */ kf(KU);
|
|
38635
38641
|
rs.extend(YU);
|
|
38636
38642
|
rs.locale("nl");
|
|
38637
|
-
function
|
|
38643
|
+
function qU(t, e = rs().startOf("day")) {
|
|
38638
38644
|
const n = "DD-MM-YYYY", r = rs(t, n);
|
|
38639
38645
|
if (r.isSame(e))
|
|
38640
38646
|
return "vandaag";
|
|
@@ -38655,14 +38661,14 @@ function XU(t, e = rs().startOf("day")) {
|
|
|
38655
38661
|
}
|
|
38656
38662
|
return r.format(n);
|
|
38657
38663
|
}
|
|
38658
|
-
const
|
|
38664
|
+
const ez = (t) => {
|
|
38659
38665
|
const e = new RegExp("(?<=^|a>)((?:(?!<a).)*?)"), n = /((https?:\/\/|www\.)[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{2,24}\b([-a-zA-Z0-9()!@:%_+.~#?&/=]*))/;
|
|
38660
38666
|
let r = new RegExp(e.source + n.source, "g");
|
|
38661
38667
|
return t.replace(r, (o, i, s) => {
|
|
38662
38668
|
const l = s.startsWith("www.") ? `http://${s}` : s;
|
|
38663
38669
|
return `${i}<a href="${l}" target="_blank" rel="noopener noreferrer">${s}</a>`;
|
|
38664
38670
|
});
|
|
38665
|
-
},
|
|
38671
|
+
}, tz = (t, e) => `<p><a href="${t}" title="${e}" target="_blank" rel="noopener noreferrer">${e}</a></p>`, nz = (t) => t.startsWith("http://") || t.startsWith("https://"), rz = {
|
|
38666
38672
|
install: (t) => {
|
|
38667
38673
|
t.component("BDAlert", Vi), t.component("BDArticle", $T), t.component("BDAssignConversationModal", wV), t.component("BDAttachmentPreviewList", jc), t.component("BDAttachmentUploadModal", TV), t.component("BDBadge", CT), t.component("BDButton", at), t.component("BDCard", hf), t.component("BDChangePasswordTemplate", FU), t.component("BDChatCloud", wB), t.component("BDCol", rn), t.component("BDCollapsableCard", eg), t.component("BDContentLibraryModal", Zj), t.component("BDConversationToTextModal", fU), t.component("BDContentLibrarySplitButton", sT), t.component("BDContentLibraryTemplate", E5), t.component("BDContainer", ll), t.component("BDDropdown", h5), t.component("BDDropdownItem", Sd), t.component("BDDropzone", Tv), t.component("BDForm", ST), t.component("BDFormCheckbox", ti), t.component("BDFormInput", Wo), t.component("BDFormInvalidFeedback", wf), t.component("BDFormSelect", NT), t.component("BDHeader", p5), t.component("BDImageAttachmentModal", bU), t.component("BDImageAttachmentPreviewList", Uc), t.component("BDInputGroup", pl), t.component("BDLink", Bi), t.component("BDLogo", k0), t.component("BDMarkdownEditor", iB), t.component("BDMobileMenu", f5), t.component("BDModal", Yr), t.component("BDNotFoundTemplate", HU), t.component("BDPagination", Ev), t.component("BDPhoneNumberEditModal", SV), t.component("BDPill", Tf), t.component("BDPractitionerHeader", aV), t.component("BDProfileImage", gc), t.component("BDRow", pr), t.component("BDSessionTimeOutModal", _V), t.component("BDTable", NB), t.component("BDToast", Sv), t.component("BDUser", vB), t.component("BDUserInformation", _v), t.component("BDVideoCallConfirmationModal", IU), t.component("BDVideoCallToast", UB), t.component("BDZoomslider", J0), t.component("IconAcademy", ed), t.component("IconArrowDown", x0), t.component("IconArrowUp", O0), t.component("IconAttachment", Xo), t.component("IconBold", M0), t.component("IconBulletList", L0), t.component("IconCalendar", A3), t.component("IconCall", td), t.component("IconCallReject", N0), t.component("IconCardView", B3), t.component("IconCaretDown", cf), t.component("IconCaretLeft", D0), t.component("IconCaretRight", P0), t.component("IconCheck", ya), t.component("IconClipboard", db), t.component("IconClose", uf), t.component("IconComment", Sb), t.component("IconCommentActive", kb), t.component("IconCommonFileEmpty", jb), t.component("IconCommonFileWarning", Gb), t.component("IconCommentStatic", Db), t.component("IconContactPerson", e4), t.component("IconCopy", s4), t.component("IconDelete", R0), t.component("IconDoubleCheck", v4), t.component("IconDownloadImage", $0), t.component("IconEdit", F0), t.component("IconEndCall", N4), t.component("IconError", df), t.component("IconExternal", B0), t.component("IconEyeShow", Q4), t.component("IconEyeSlash", t7), t.component("IconFile", V0), t.component("IconFileAdded", h7), t.component("IconForward", b7), t.component("IconHix", T7), t.component("IconHyperlink", ff), t.component("IconImageFileLandscape", F7), t.component("IconImageFileWarning", H7), t.component("IconInfo", ai), t.component("IconInformationCircle", j0), t.component("IconItalic", U0), t.component("IconListView", d8), t.component("IconLock", v8), t.component("IconLusciiEscalated", A8), t.component("IconLusciiLogo", x8), t.component("IconLusciiOpen", P8), t.component("IconLusciiPriorityHigh", U8), t.component("IconLusciiPriorityLow", Q8), t.component("IconLusciiPriorityMedium", n6), t.component("IconMenu", z0), t.component("IconMessage", h6), t.component("IconMessageForward", b6), t.component("IconMicrophoneSlash", _6), t.component("IconMicrosoftTeams", O6), t.component("IconMin", R6), t.component("IconOrderedList", H0), t.component("IconPlus", nd), t.component("IconRefresh", X6), t.component("IconRemove", pc), t.component("IconSananetLogo", c9), t.component("IconService", m9), t.component("IconShareScreen", E9), t.component("IconSingleNeutral", I9), t.component("IconSort", N9), t.component("IconSortAsc", W0), t.component("IconSortDesc", K0), t.component("IconSortNone", Y0), t.component("IconTriangleDown", eC), t.component("IconTriangleExclamation", G0), t.component("IconUnderline", Q0), t.component("IconVideoDisabled", EC), t.component("IconVideocall", gC), t.component("IconZorgkaart", IC), t.directive("vBDTooltip", ps);
|
|
38668
38674
|
}
|
|
@@ -38717,10 +38723,11 @@ export {
|
|
|
38717
38723
|
IU as BDVideoCallConfirmationModal,
|
|
38718
38724
|
UB as BDVideoCallToast,
|
|
38719
38725
|
J0 as BDZoomslider,
|
|
38720
|
-
|
|
38726
|
+
JU as CopyChatMessageToClipboard,
|
|
38721
38727
|
oU as CopyChatMessagesToClipboard,
|
|
38722
|
-
|
|
38723
|
-
|
|
38728
|
+
XU as CopyHl7MessagesToClipboard,
|
|
38729
|
+
tz as CreateHyperlinkParagraph,
|
|
38730
|
+
$D as CreateThumbnailUri,
|
|
38724
38731
|
ed as IconAcademy,
|
|
38725
38732
|
x0 as IconArrowDown,
|
|
38726
38733
|
O0 as IconArrowUp,
|
|
@@ -38795,10 +38802,12 @@ export {
|
|
|
38795
38802
|
EC as IconVideoDisabled,
|
|
38796
38803
|
gC as IconVideocall,
|
|
38797
38804
|
IC as IconZorgkaart,
|
|
38798
|
-
|
|
38799
|
-
|
|
38800
|
-
|
|
38801
|
-
|
|
38805
|
+
ZU as MapAttachmentsForApi,
|
|
38806
|
+
ts as MapToAttachmentObjects,
|
|
38807
|
+
ez as TransformHyperlinks,
|
|
38808
|
+
nz as ValidateUrl,
|
|
38809
|
+
rz as default,
|
|
38810
|
+
qU as getDisplayDate,
|
|
38802
38811
|
ka as useModal,
|
|
38803
38812
|
XB as usePopover,
|
|
38804
38813
|
g5 as useServerErrors,
|