@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.
@@ -1,6 +1,6 @@
1
1
  type __VLS_Props = {
2
- dropzoneUrl?: string;
3
- token?: string;
2
+ url: string;
3
+ token: string;
4
4
  };
5
5
  declare function __VLS_template(): {
6
6
  attrs: Partial<{}>;
@@ -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 BDDropzone } from './components/molecules/BDDropzone/BDDropzone.vue';
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
- export { BDAlert, BDArticle, BDAttachmentPreviewList, BDAttachmentUploadModal, BDBadge, BDAssignConversationModal, BDButton, BDCard, BDChangePasswordTemplate, BDChatCloud, BDCol, BDCollapsableCard, BDConfirmationModal, BDContentLibraryModal, BDConversationToTextModal, BDContentLibrarySplitButton, BDContentLibraryTemplate, BDContainer, BDDropdown, BDDropdownItem, BDDropzone, 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, };
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 attachedFile {
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 BDDropzoneProps {
7
- modelValue: attachedFile[];
10
+ export interface BDFileUploadProps {
11
+ modelValue: AttachedFiles;
8
12
  buttonText?: string;
9
13
  multiple: boolean;
10
14
  errorMessage?: string;
@@ -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.",
@@ -25,6 +25,10 @@
25
25
  }
26
26
  }
27
27
 
28
+ .btn-insert {
29
+ width: auto;
30
+ }
31
+
28
32
  .content-library-card-message-template__body {
29
33
  display: block !important;
30
34
 
@@ -9,7 +9,6 @@
9
9
 
10
10
  .collapse-button {
11
11
  padding: 0 12px;
12
- margin-bottom: 8px;
13
12
 
14
13
  &-last {
15
14
  margin-bottom: 0;
@@ -1,32 +1,47 @@
1
1
  @use "sass:math";
2
2
 
3
- .dropzone.bd-dropzone, .dropzone.bd-dropzone * {
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
- .dz-preview {
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
- .dz-error-message,.dz-success-mark {
29
- display: none;
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
- &.dz-success {
38
- .dz-success-mark {
39
- display: block;
40
- background-color: $green;
41
- border-radius: 50%;
42
- width:21px;
43
- height:21px;
44
- margin: 0px auto;
45
- svg{
46
- transform: translateY(-2px);
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
- .dz-remove {
72
+ .remove-button {
58
73
  position: absolute;
59
74
  top: -10px;
60
75
  right: -10px;
@@ -5,7 +5,7 @@
5
5
  position: relative;
6
6
 
7
7
  &.icon-check{
8
- .bd-dropzone &{
8
+ .bd-file-upload &{
9
9
  height: 16px;
10
10
  width: 11px;
11
11
  fill: $color-white;
@@ -18,9 +18,12 @@
18
18
  margin-bottom: 1rem;
19
19
  }
20
20
 
21
- .bd-input-group > div {
22
- margin-bottom: 1rem;
23
- width: 100%;
21
+ .bd-input-group {
22
+ margin-bottom: 16px;
23
+
24
+ &:last-of-type {
25
+ margin-bottom: 0;
26
+ }
24
27
  }
25
28
 
26
29
  .bd-markdown-editor {
@@ -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";
@@ -1,10 +1,5 @@
1
1
  .bs-popover-bottom,
2
2
  .bs-popover-auto[data-popper-placement^=bottom] {
3
- .popover-header {
4
- font-weight: bold;
5
- background: $color-chatcloud;
6
- }
7
-
8
3
  .popover-body {
9
4
  font-size: 15px;
10
5
 
@@ -1,4 +1,5 @@
1
1
  :root {
2
+ --p-fileupload-color: #394156;
2
3
  --p-border-radius-none: 0;
3
4
  --p-border-radius-xs: 2px;
4
5
  --p-border-radius-sm: 4px;
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.60.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;