@beterdichtbij/component-library 0.60.0 → 0.61.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 +582 -66
- package/dist/bd-component-lib.es.js +7396 -10454
- package/dist/bd-component-lib.umd.js +582 -66
- package/dist/components/modals/BDAttachmentUploadModal/BDAttachmentUploadModal.vue.d.ts +2 -2
- package/dist/components/molecules/BDFileUpload/BDFileUpload.vue.d.ts +23 -0
- package/dist/index.d.ts +3 -2
- package/dist/interfaces/{BDDropzoneProps.d.ts → BDFileUploadProps.d.ts} +7 -3
- package/dist/locales/nl.json +13 -0
- package/dist/scss/_content-library-card-message-template.scss +4 -0
- package/dist/scss/_content-library-modal.scss +0 -1
- package/dist/scss/{_dropzone.scss → _file-upload.scss} +41 -26
- package/dist/scss/_icons.scss +1 -1
- package/dist/scss/_message-template-form-modal.scss +6 -3
- package/dist/scss/component-library-styling.scss +1 -1
- package/dist/scss/extern/_bootstrap.scss +0 -5
- package/dist/scss/extern/_prime-vue.scss +1 -0
- package/package.json +1 -3
- package/dist/components/molecules/BDDropzone/BDDropzone.vue.d.ts +0 -17
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { BDFileUploadProps } from '../../../interfaces/BDFileUploadProps';
|
|
2
|
+
import { FileUploadUploaderEvent } from 'primevue/fileupload';
|
|
3
|
+
declare const _default: import('vue').DefineComponent<BDFileUploadProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
4
|
+
"update:modelValue": (...args: any[]) => void;
|
|
5
|
+
}, string, import('vue').PublicProps, Readonly<BDFileUploadProps> & Readonly<{
|
|
6
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
7
|
+
}>, {
|
|
8
|
+
url: string;
|
|
9
|
+
buttonText: string;
|
|
10
|
+
multiple: boolean;
|
|
11
|
+
errorMessage: string;
|
|
12
|
+
fileSizeExceededMessage: string;
|
|
13
|
+
acceptedFiles: string;
|
|
14
|
+
tag: "form" | "div";
|
|
15
|
+
token: string;
|
|
16
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
17
|
+
fileUploadRef: ({
|
|
18
|
+
$props: import('primevue/fileupload').FileUploadProps & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
19
|
+
$slots: import('primevue/fileupload').FileUploadSlots;
|
|
20
|
+
$emit: ((e: "progress", event: import('primevue/fileupload').FileUploadProgressEvent) => void) & ((e: "select", event: import('primevue/fileupload').FileUploadSelectEvent) => void) & ((e: "remove", event: import('primevue/fileupload').FileUploadRemoveEvent) => void) & ((e: "error", event: import('primevue/fileupload').FileUploadErrorEvent) => void) & ((e: "before-upload", event: import('primevue/fileupload').FileUploadBeforeUploadEvent) => void) & ((e: "upload", event: import('primevue/fileupload').FileUploadUploadEvent) => void) & ((e: "uploader", event: FileUploadUploaderEvent) => void) & ((e: "before-send", event: import('primevue/fileupload').FileUploadBeforeSendEvent) => void) & ((e: "clear") => void) & ((e: "removeUploadedFile", event: import('primevue/fileupload').FileUploadRemoveUploadedFile) => void);
|
|
21
|
+
} & import('primevue/fileupload').FileUploadMethods) | null;
|
|
22
|
+
}, HTMLDivElement>;
|
|
23
|
+
export default _default;
|
package/dist/index.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ import { default as BDPill } from './components/atoms/BDPill/BDPill.vue';
|
|
|
25
25
|
import { default as BDUserInformation } from './components/atoms/BDUserInformation/BDUserInformation.vue';
|
|
26
26
|
import { default as BDDate } from './components/atoms/BDDate/BDDate.vue';
|
|
27
27
|
import { default as BDDropdownItem } from './components/molecules/BDDropdownItem/BDDropdownItem.vue';
|
|
28
|
-
import { default as
|
|
28
|
+
import { default as BDFileUpload } from './components/molecules/BDFileUpload/BDFileUpload.vue';
|
|
29
29
|
import { default as BDMarkdownEditor } from './components/molecules/BDMarkdownEditor/BDMarkdownEditor.vue';
|
|
30
30
|
import { default as BDMobileMenu } from './components/molecules/BDMobileMenu/BDMobileMenu.vue';
|
|
31
31
|
import { default as BDUser } from './components/molecules/BDUser/BDUser.vue';
|
|
@@ -68,4 +68,5 @@ import { CopyChatMessagesToClipboard, CopyChatMessageToClipboard, CopyHl7Message
|
|
|
68
68
|
import { getDisplayDateNumeric, getDisplayDateTimeNumeric, getDisplayDateTimeTextual, getDisplayDateTextual } from './utils/display-date';
|
|
69
69
|
import { TransformHyperlinks, CreateHyperlinkParagraph, ValidateUrl } from './utils/hyperlink';
|
|
70
70
|
import { CreateThumbnailUri, MapAttachmentsForApi, MapToAttachmentObjects } from './utils/attachment';
|
|
71
|
-
|
|
71
|
+
import { AttachedFiles, AttachedFile } from './interfaces/BDFileUploadProps';
|
|
72
|
+
export { BDAlert, BDArticle, BDAttachmentPreviewList, BDAttachmentUploadModal, BDBadge, BDAssignConversationModal, BDButton, BDCard, BDChangePasswordTemplate, BDChatCloud, BDCol, BDCollapsableCard, BDConfirmationModal, BDContentLibraryModal, BDConversationToTextModal, BDContentLibrarySplitButton, BDContentLibraryTemplate, BDContainer, BDDropdown, BDDropdownItem, BDFileUpload, BDForm, BDFormCheckbox, BDFormInput, BDFormInvalidFeedback, BDFormSelect, BDHeader, BDImageAttachmentModal, BDImageAttachmentPreviewList, BDInputGroup, BDLink, BDLogo, BDMarkdownEditor, BDMessageTemplateFormModal, BDMobileMenu, BDModal, BDNotFoundTemplate, BDPagination, BDPhoneNumberEditModal, BDPill, BDPractitionerHeader, BDProfileImage, BDRow, BDSessionTimeOutModal, BDTable, BDToast, BDUser, BDUserInformation, BDVideoCallConfirmationModal, BDVideoCallToast, BDZoomslider, BDDate, IconAcademy, IconArrowDown, IconArrowUp, IconAttachment, IconBold, IconBulletList, IconCalendar, IconCall, IconCallReject, IconCardView, IconCaretDown, IconCaretLeft, IconCaretRight, IconCheck, IconClipboard, IconClose, IconComment, IconCommentActive, IconCommentStatic, IconCommonFileEmpty, IconCommonFileWarning, IconContactPerson, IconCopy, IconDelete, IconDoubleCheck, IconDownloadImage, IconEdit, IconEndCall, IconError, IconExternal, IconEyeShow, IconEyeSlash, IconFile, IconFileAdded, IconForward, IconHix, IconHyperlink, IconImageFileLandscape, IconImageFileWarning, IconInbox, IconInfo, IconInformationCircle, IconItalic, IconListView, IconLock, IconLusciiEscalated, IconLusciiLogo, IconLusciiOpen, IconLusciiPriorityHigh, IconLusciiPriorityLow, IconLusciiPriorityMedium, IconMenu, IconMessage, IconMessageForward, IconMicrophoneSlash, IconMicrosoftTeams, IconMin, IconOrderedList, IconPlus, IconRefresh, IconRemove, IconSananetLogo, IconService, IconShareScreen, IconSingleNeutral, IconSort, IconSortAsc, IconSortDesc, IconSortNone, IconTriangleDown, IconTriangleExclamation, IconUnderline, IconVideocall, IconVideoDisabled, IconWarning, IconZorgkaart, ChangePasswordData, ConfirmPhoneNumberUpdateData, StartPhoneNumberUpdateData, ValidationChangePasswordData, useModal, usePopover, useServerErrors, useSessionTimeOut, useToaster, useValidation, useWindow, useZoom, vBdTooltip, CopyChatMessagesToClipboard, CopyChatMessageToClipboard, CopyHl7MessagesToClipboard, getDisplayDateNumeric, getDisplayDateTimeNumeric, getDisplayDateTimeTextual, getDisplayDateTextual, TransformHyperlinks, CreateHyperlinkParagraph, ValidateUrl, CreateThumbnailUri, MapAttachmentsForApi, MapToAttachmentObjects, type AttachedFiles, type AttachedFile, };
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
export interface
|
|
1
|
+
export interface AttachedFiles {
|
|
2
|
+
files: AttachedFile[];
|
|
3
|
+
}
|
|
4
|
+
export interface AttachedFile {
|
|
2
5
|
UUID: string;
|
|
3
6
|
CorrelationId: string;
|
|
4
7
|
Naam: string;
|
|
8
|
+
previewUrl?: string;
|
|
5
9
|
}
|
|
6
|
-
export interface
|
|
7
|
-
modelValue:
|
|
10
|
+
export interface BDFileUploadProps {
|
|
11
|
+
modelValue: AttachedFiles;
|
|
8
12
|
buttonText?: string;
|
|
9
13
|
multiple: boolean;
|
|
10
14
|
errorMessage?: string;
|
package/dist/locales/nl.json
CHANGED
|
@@ -59,6 +59,19 @@
|
|
|
59
59
|
"download": "Download afbeelding",
|
|
60
60
|
"loading": "Afbeelding aan het laden"
|
|
61
61
|
},
|
|
62
|
+
"messageTemplateFormModal": {
|
|
63
|
+
"createTitle": "Standaardbericht toevoegen",
|
|
64
|
+
"editTitle": "Standaardbericht wijzigen",
|
|
65
|
+
"titleLabel": "Titel",
|
|
66
|
+
"titlePlaceHolder": "Zwelling na botbreuk",
|
|
67
|
+
"replyTemplateLabel": "Standaardbericht",
|
|
68
|
+
"replyTemplatePlaceHolder": "Schrijf hier jouw bericht naar de patiënt",
|
|
69
|
+
"sharedWithLabel": "Delen met",
|
|
70
|
+
"owner": "Eigenaar",
|
|
71
|
+
"tooltipOwner": "Als het bericht met meerdere instanties (teams) gedeeld wordt, kunje alleen zelf eigenaar worden",
|
|
72
|
+
"categoryLabel": "Categorie",
|
|
73
|
+
"validation": "Dit veld is verplicht."
|
|
74
|
+
},
|
|
62
75
|
"notFoundTemplate": {
|
|
63
76
|
"title": "Pagina niet gevonden",
|
|
64
77
|
"description": "De pagina die je zoekt kon niet gevonden worden. Controleer de URL of ga terug naar de hoofdpagina.",
|
|
@@ -1,32 +1,47 @@
|
|
|
1
1
|
@use "sass:math";
|
|
2
2
|
|
|
3
|
-
.
|
|
4
|
-
box-sizing: border-box;
|
|
5
|
-
}
|
|
6
|
-
.dropzone.bd-dropzone {
|
|
3
|
+
.bd-file-upload {
|
|
7
4
|
position: relative;
|
|
8
5
|
color: $color-darkblue;
|
|
9
6
|
font-family: $font-family-base;
|
|
10
7
|
width:fit-content;
|
|
8
|
+
|
|
9
|
+
.p-fileupload {
|
|
10
|
+
border: 0;
|
|
11
|
+
border-radius: 0;
|
|
12
|
+
background: none;
|
|
13
|
+
|
|
14
|
+
.p-fileupload-header {
|
|
15
|
+
border: none;
|
|
16
|
+
margin-bottom: 20px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.filename {
|
|
20
|
+
color: $color-darkblue;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
11
23
|
|
|
12
24
|
.dz-message {
|
|
13
25
|
margin-bottom: 1.25rem;
|
|
14
26
|
}
|
|
15
27
|
|
|
16
|
-
.
|
|
28
|
+
.file-upload-preview {
|
|
17
29
|
position: relative;
|
|
18
30
|
display: inline-block;
|
|
19
|
-
|
|
20
31
|
text-align: center;
|
|
21
|
-
|
|
22
|
-
.dz-image{
|
|
23
|
-
min-width: 150px;
|
|
24
|
-
height: 88px;
|
|
25
|
-
object-fit: contain;
|
|
26
|
-
}
|
|
27
32
|
|
|
28
|
-
.
|
|
29
|
-
display:
|
|
33
|
+
.file-preview {
|
|
34
|
+
display: inline-block;
|
|
35
|
+
|
|
36
|
+
.preview-details {
|
|
37
|
+
position: relative;
|
|
38
|
+
|
|
39
|
+
.preview-image {
|
|
40
|
+
min-width: 150px;
|
|
41
|
+
height: 88px;
|
|
42
|
+
object-fit: contain;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
30
45
|
}
|
|
31
46
|
|
|
32
47
|
&.dz-error {
|
|
@@ -34,17 +49,17 @@
|
|
|
34
49
|
display: block;
|
|
35
50
|
}
|
|
36
51
|
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
52
|
+
|
|
53
|
+
.success-mark {
|
|
54
|
+
display: block;
|
|
55
|
+
background-color: $green;
|
|
56
|
+
border-radius: 50%;
|
|
57
|
+
width:21px;
|
|
58
|
+
height:21px;
|
|
59
|
+
margin: 0px auto;
|
|
60
|
+
|
|
61
|
+
svg{
|
|
62
|
+
transform: translateY(-2px);
|
|
48
63
|
}
|
|
49
64
|
}
|
|
50
65
|
|
|
@@ -54,7 +69,7 @@
|
|
|
54
69
|
}
|
|
55
70
|
}
|
|
56
71
|
|
|
57
|
-
.
|
|
72
|
+
.remove-button {
|
|
58
73
|
position: absolute;
|
|
59
74
|
top: -10px;
|
|
60
75
|
right: -10px;
|
package/dist/scss/_icons.scss
CHANGED
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
@import "content-library-split-button";
|
|
20
20
|
@import "conversation-to-text-modal";
|
|
21
21
|
@import "dropdown";
|
|
22
|
-
@import "dropzone";
|
|
23
22
|
@import "extern";
|
|
23
|
+
@import "file-upload";
|
|
24
24
|
@import "form-field";
|
|
25
25
|
@import "form-multiple-checkbox";
|
|
26
26
|
@import "forms";
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@beterdichtbij/component-library",
|
|
3
3
|
"description": "Component library voor BeterDichtbij design system",
|
|
4
4
|
"private": false,
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.61.0",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": "24.x",
|
|
8
8
|
"npm": "11.x"
|
|
@@ -76,7 +76,6 @@
|
|
|
76
76
|
"@tiptap/vue-3": "3.21.0",
|
|
77
77
|
"@vueuse/core": "14.2.1",
|
|
78
78
|
"dayjs": "^1.11.20",
|
|
79
|
-
"dropzone": "5.9.3",
|
|
80
79
|
"maska": "3.2.0",
|
|
81
80
|
"pinia": "3.0.4",
|
|
82
81
|
"primevue": "^4.5.4",
|
|
@@ -92,7 +91,6 @@
|
|
|
92
91
|
"@storybook/vue3": "^10.3.3",
|
|
93
92
|
"@storybook/vue3-vite": "^10.3.3",
|
|
94
93
|
"@types/bootstrap": "5.2.10",
|
|
95
|
-
"@types/dropzone": "5.7.9",
|
|
96
94
|
"@typescript-eslint/eslint-plugin": "^8.57.2",
|
|
97
95
|
"@typescript-eslint/parser": "^8.57.2",
|
|
98
96
|
"@vitejs/plugin-vue": "^6.0.5",
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { BDDropzoneProps, attachedFile } from '../../../interfaces/BDDropzoneProps';
|
|
2
|
-
declare const _default: import('vue').DefineComponent<BDDropzoneProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
3
|
-
"update:modelValue": (...args: any[]) => void;
|
|
4
|
-
}, string, import('vue').PublicProps, Readonly<BDDropzoneProps> & Readonly<{
|
|
5
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
6
|
-
}>, {
|
|
7
|
-
modelValue: attachedFile[];
|
|
8
|
-
url: string;
|
|
9
|
-
buttonText: string;
|
|
10
|
-
multiple: boolean;
|
|
11
|
-
errorMessage: string;
|
|
12
|
-
fileSizeExceededMessage: string;
|
|
13
|
-
acceptedFiles: string;
|
|
14
|
-
tag: "form" | "div";
|
|
15
|
-
token: string;
|
|
16
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
17
|
-
export default _default;
|