@beterdichtbij/component-library 0.17.0 → 0.18.1

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.
Files changed (28) hide show
  1. package/dist/bd-component-lib.cjs.js +64 -32
  2. package/dist/bd-component-lib.es.js +8022 -9558
  3. package/dist/bd-component-lib.umd.js +64 -32
  4. package/dist/components/atoms/icons/IconDownloadImage.vue.d.ts +2 -0
  5. package/dist/components/atoms/icons/IconDownloadImage.vue.d.ts.map +1 -0
  6. package/dist/components/atoms/icons/IconMenu.vue.d.ts +2 -0
  7. package/dist/components/atoms/icons/IconMenu.vue.d.ts.map +1 -0
  8. package/dist/components/atoms/icons/index.d.ts +3 -1
  9. package/dist/components/molecules/BDAttachmentPreviewList/BDAttachmentPreviewList.vue.d.ts +42 -0
  10. package/dist/components/molecules/BDAttachmentPreviewList/BDAttachmentPreviewList.vue.d.ts.map +1 -0
  11. package/dist/components/molecules/BDImageAttachmentPreviewList/BDImageAttachmentPreviewList.vue.d.ts +54 -0
  12. package/dist/components/molecules/BDImageAttachmentPreviewList/BDImageAttachmentPreviewList.vue.d.ts.map +1 -0
  13. package/dist/components/molecules/BDMarkdownEditor/BDMarkdownEditor.vue.d.ts +13 -1
  14. package/dist/composables/useToaster.d.ts +1 -1
  15. package/dist/index.d.ts +4 -2
  16. package/dist/interfaces/BDAttachment.d.ts +7 -0
  17. package/dist/interfaces/BDAttachmentPreviewListProps.d.ts +6 -0
  18. package/dist/interfaces/BDImageAttachmentPreviewListProps.d.ts +4 -0
  19. package/dist/interfaces/BDMarkdownEditorProps.d.ts +2 -0
  20. package/dist/scss/_attachments.scss +107 -0
  21. package/dist/scss/_button.scss +31 -15
  22. package/dist/scss/_icons.scss +5 -0
  23. package/dist/scss/base/variables.scss +14 -0
  24. package/dist/scss/component-library-styling.scss +2 -1
  25. package/dist/types/ApiAttachment.d.ts +15 -0
  26. package/dist/types/ButtonColorVariants.d.ts +1 -0
  27. package/dist/utils/attachment.d.ts +25 -0
  28. package/package.json +3 -3
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IconDownloadImage.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/icons/IconDownloadImage.vue"],"names":[],"mappings":";AAqBA,wBAA4E"}
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IconMenu.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/icons/IconMenu.vue"],"names":[],"mappings":";AAqBA,wBAA4E"}
@@ -15,4 +15,6 @@ import IconUnderline from "./IconUnderline.vue";
15
15
  import IconBulletList from "./IconBulletList.vue";
16
16
  import IconOrderedList from "./IconOrderedList.vue";
17
17
  import IconHyperlink from "./IconHyperlink.vue";
18
- export { IconAttachment, IconCheck, IconError, IconInfo, IconRemove, IconFile, IconCaretDown, IconCaretRight, IconCaretLeft, IconClose, IconItalic, IconBold, IconUnderline, IconBulletList, IconOrderedList, IconHyperlink, IconCalendar };
18
+ import IconDownloadImage from "./IconDownloadImage.vue";
19
+ import IconMenu from "./IconMenu.vue";
20
+ export { IconAttachment, IconCheck, IconError, IconInfo, IconRemove, IconFile, IconCaretDown, IconCaretRight, IconCaretLeft, IconClose, IconItalic, IconBold, IconUnderline, IconBulletList, IconOrderedList, IconHyperlink, IconCalendar, IconDownloadImage, IconMenu };
@@ -0,0 +1,42 @@
1
+ import type { PropType as __PropType } from 'vue';
2
+ import { BDAttachment } from '../../../interfaces/BDAttachment';
3
+ declare const _sfc_main: import("vue").DefineComponent<{
4
+ files: {
5
+ type: __PropType<BDAttachment[] | undefined>;
6
+ required: false;
7
+ default: never[];
8
+ };
9
+ showDelete: {
10
+ type: __PropType<boolean>;
11
+ required: true;
12
+ default: boolean;
13
+ };
14
+ noDownload: {
15
+ type: __PropType<boolean>;
16
+ required: true;
17
+ default: boolean;
18
+ };
19
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "delete"[], "delete", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
20
+ files: {
21
+ type: __PropType<BDAttachment[] | undefined>;
22
+ required: false;
23
+ default: never[];
24
+ };
25
+ showDelete: {
26
+ type: __PropType<boolean>;
27
+ required: true;
28
+ default: boolean;
29
+ };
30
+ noDownload: {
31
+ type: __PropType<boolean>;
32
+ required: true;
33
+ default: boolean;
34
+ };
35
+ }>> & {
36
+ onDelete?: ((...args: any[]) => any) | undefined;
37
+ }, {
38
+ files: BDAttachment[] | undefined;
39
+ showDelete: boolean;
40
+ noDownload: boolean;
41
+ }, {}>;
42
+ export default _sfc_main;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BDAttachmentPreviewList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/BDAttachmentPreviewList/BDAttachmentPreviewList.vue"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,qIAAqI,CAAC;AAC5J,cAAc,qIAAqI,CAAC;AACpJ,eAAe,SAAS,CAAC"}
@@ -0,0 +1,54 @@
1
+ import type { PropType as __PropType } from 'vue';
2
+ import { BDAttachment } from '../../../interfaces/BDAttachment';
3
+ declare const _sfc_main: import("vue").DefineComponent<{
4
+ fastDownload: {
5
+ type: __PropType<boolean>;
6
+ required: true;
7
+ default: boolean;
8
+ };
9
+ files: {
10
+ type: __PropType<BDAttachment[] | undefined>;
11
+ required: false;
12
+ default: undefined;
13
+ };
14
+ showDelete: {
15
+ type: __PropType<boolean>;
16
+ required: true;
17
+ default: boolean;
18
+ };
19
+ noDownload: {
20
+ type: __PropType<boolean>;
21
+ required: true;
22
+ default: boolean;
23
+ };
24
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("show" | "delete")[], "show" | "delete", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
25
+ fastDownload: {
26
+ type: __PropType<boolean>;
27
+ required: true;
28
+ default: boolean;
29
+ };
30
+ files: {
31
+ type: __PropType<BDAttachment[] | undefined>;
32
+ required: false;
33
+ default: undefined;
34
+ };
35
+ showDelete: {
36
+ type: __PropType<boolean>;
37
+ required: true;
38
+ default: boolean;
39
+ };
40
+ noDownload: {
41
+ type: __PropType<boolean>;
42
+ required: true;
43
+ default: boolean;
44
+ };
45
+ }>> & {
46
+ onDelete?: ((...args: any[]) => any) | undefined;
47
+ onShow?: ((...args: any[]) => any) | undefined;
48
+ }, {
49
+ files: BDAttachment[] | undefined;
50
+ showDelete: boolean;
51
+ noDownload: boolean;
52
+ fastDownload: boolean;
53
+ }, {}>;
54
+ export default _sfc_main;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BDImageAttachmentPreviewList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/BDImageAttachmentPreviewList/BDImageAttachmentPreviewList.vue"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,+IAA+I,CAAC;AACtK,cAAc,+IAA+I,CAAC;AAC9J,eAAe,SAAS,CAAC"}
@@ -20,11 +20,16 @@ declare const _sfc_main: import("vue").DefineComponent<{
20
20
  required: true;
21
21
  default: "basic";
22
22
  };
23
+ files: {
24
+ type: __PropType<import("../../../types/ApiAttachment").ApiAttachment[] | undefined>;
25
+ required: false;
26
+ default: undefined;
27
+ };
23
28
  modelValue: {
24
29
  type: __PropType<string>;
25
30
  required: true;
26
31
  };
27
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "upload")[], "update:modelValue" | "upload", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
32
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "upload" | "action")[], "update:modelValue" | "upload" | "action", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
28
33
  placeholder: {
29
34
  type: __PropType<string | undefined>;
30
35
  required: false;
@@ -45,6 +50,11 @@ declare const _sfc_main: import("vue").DefineComponent<{
45
50
  required: true;
46
51
  default: "basic";
47
52
  };
53
+ files: {
54
+ type: __PropType<import("../../../types/ApiAttachment").ApiAttachment[] | undefined>;
55
+ required: false;
56
+ default: undefined;
57
+ };
48
58
  modelValue: {
49
59
  type: __PropType<string>;
50
60
  required: true;
@@ -52,10 +62,12 @@ declare const _sfc_main: import("vue").DefineComponent<{
52
62
  }>> & {
53
63
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
54
64
  onUpload?: ((...args: any[]) => any) | undefined;
65
+ onAction?: ((...args: any[]) => any) | undefined;
55
66
  }, {
56
67
  variant: import('../../../types/tiptapVariants').TiptapVariants;
57
68
  placeholder: string | undefined;
58
69
  state: boolean | undefined;
59
70
  errorText: string | undefined;
71
+ files: import("../../../types/ApiAttachment").ApiAttachment[] | undefined;
60
72
  }, {}>;
61
73
  export default _sfc_main;
@@ -1,4 +1,4 @@
1
- import { Toast } from "bootstrap";
1
+ import Toast from "bootstrap/js/dist/toast";
2
2
  export declare function useToaster(options?: Toast.Options | undefined): {
3
3
  showSuccessToast: (message: string) => void;
4
4
  showInformationToast: (message: string) => void;
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import BDCol from "./layout/BDCol.vue";
2
2
  import BDContainer from "./layout/BDContainer.vue";
3
3
  import BDRow from "./layout/BDRow.vue";
4
- import { IconAttachment, IconBold, IconBulletList, IconCaretDown, IconCaretLeft, IconCaretRight, IconCheck, IconClose, IconError, IconFile, IconHyperlink, IconInfo, IconItalic, IconOrderedList, IconRemove, IconUnderline, IconCalendar } from "./components/atoms/icons/index";
4
+ import { IconAttachment, IconBold, IconBulletList, IconCaretDown, IconCaretLeft, IconCaretRight, IconCheck, IconClose, IconError, IconFile, IconHyperlink, IconInfo, IconItalic, IconOrderedList, IconRemove, IconUnderline, IconCalendar, IconDownloadImage, IconMenu } from "./components/atoms/icons/index";
5
5
  import BDButton from "./components/atoms/BDButton/BDButton.vue";
6
6
  import BDLogo from "./components/atoms/BDLogo/BDLogo.vue";
7
7
  import BDLink from "./components/atoms/BDLink/BDLink.vue";
@@ -24,7 +24,9 @@ import BDDropdownItem from "./components/molecules/BDDropdownItem/BDDropdownItem
24
24
  import BDDropzone from "./components/molecules/BDDropzone/BDDropzone.vue";
25
25
  import BDMarkdownEditor from "./components/molecules/BDMarkdownEditor/BDMarkdownEditor.vue";
26
26
  import BDUser from "./components/molecules/BDUser/BDUser.vue";
27
+ import BDAttachmentPreviewList from "./components/molecules/BDAttachmentPreviewList/BDAttachmentPreviewList.vue";
28
+ import BDImageAttachmentPreviewList from "./components/molecules/BDImageAttachmentPreviewList/BDImageAttachmentPreviewList.vue";
27
29
  import BDDropdown from "./components/organisms/BDDropdown/BDDropdown.vue";
28
30
  import BDModal from "./components/organisms/BDModal/BDModal.vue";
29
31
  import { useToaster } from "./composables/useToaster";
30
- export { BDCol, BDContainer, BDRow, BDButton, BDLogo, BDLink, BDDropdownItem, BDDropdown, BDAlert, BDProfileImage, BDZoomslider, BDCard, BDCollapsableCard, BDModal, BDFormInput, BDFormInvalidFeedback, BDInputGroup, BDBadge, BDForm, BDPagination, BDDropzone, BDMarkdownEditor, BDFormSelect, BDFormCheckbox, IconAttachment, IconBold, IconBulletList, IconCaretDown, IconCaretLeft, IconCaretRight, IconCheck, IconClose, IconError, IconFile, IconHyperlink, IconInfo, IconItalic, IconOrderedList, IconRemove, IconUnderline, IconCalendar, BDArticle, BDUser, BDToast, useToaster };
32
+ export { BDCol, BDContainer, BDRow, BDButton, BDLogo, BDLink, BDDropdownItem, BDDropdown, BDAlert, BDProfileImage, BDZoomslider, BDCard, BDCollapsableCard, BDModal, BDFormInput, BDFormInvalidFeedback, BDInputGroup, BDBadge, BDForm, BDPagination, BDDropzone, BDMarkdownEditor, BDFormSelect, BDFormCheckbox, IconAttachment, IconBold, IconBulletList, IconCaretDown, IconCaretLeft, IconCaretRight, IconCheck, IconClose, IconError, IconFile, IconHyperlink, IconInfo, IconItalic, IconOrderedList, IconRemove, IconUnderline, IconCalendar, BDArticle, BDUser, BDToast, BDAttachmentPreviewList, useToaster, IconDownloadImage, BDImageAttachmentPreviewList, IconMenu, };
@@ -0,0 +1,7 @@
1
+ export interface BDAttachment {
2
+ CorrelationId: string;
3
+ downloadUrl?: string;
4
+ previewUrl?: string;
5
+ altName?: string;
6
+ Naam: string;
7
+ }
@@ -0,0 +1,6 @@
1
+ import { BDAttachment } from "./BDAttachment";
2
+ export interface BDAttachmentPreviewListProps {
3
+ files?: BDAttachment[];
4
+ showDelete: boolean;
5
+ noDownload: boolean;
6
+ }
@@ -0,0 +1,4 @@
1
+ import { BDAttachmentPreviewListProps } from "./BDAttachmentPreviewListProps";
2
+ export interface BDImageAttachmentPreviewListProps extends BDAttachmentPreviewListProps {
3
+ fastDownload: boolean;
4
+ }
@@ -1,8 +1,10 @@
1
1
  import { ModelValueString } from "../types/ModelValue";
2
2
  import { TiptapVariants } from '../types/tiptapVariants';
3
+ import { ApiAttachment } from '../types/ApiAttachment';
3
4
  export interface BDMarkdownEditorProps extends ModelValueString {
4
5
  placeholder?: string;
5
6
  errorText?: string;
6
7
  state?: boolean;
7
8
  variant: TiptapVariants;
9
+ files?: ApiAttachment[];
8
10
  }
@@ -0,0 +1,107 @@
1
+
2
+ .attachment-list {
3
+ display: flex;
4
+ justify-content: flex-start;
5
+ flex-flow: wrap;
6
+ margin-top: 20px;
7
+ list-style: none;
8
+ padding: 0px;
9
+
10
+ &__item {
11
+ margin-bottom: 10px;
12
+
13
+ @include media-breakpoint-up(md) {
14
+ margin-bottom: 25px;
15
+ }
16
+
17
+ &:not(:last-child) {
18
+ margin-right: 10px;
19
+
20
+ @include media-breakpoint-up(md) {
21
+ margin-right: 20px;
22
+ }
23
+ }
24
+ }
25
+
26
+ .attachment {
27
+ .img-preview {
28
+ cursor: zoom-in;
29
+ border-radius: 8px;
30
+ border: 1px solid #abb0be;
31
+ }
32
+
33
+ .download-button-image {
34
+ position: absolute;
35
+ top: 3px;
36
+ right: 3px;
37
+ padding: 5px;
38
+ width: 30px;
39
+ height: 34px;
40
+ text-align: center;
41
+ display: none;
42
+ cursor: pointer;
43
+ background-color: white;
44
+ border-radius: 8px;
45
+
46
+ &.btn{
47
+ border:1px solid #abb0be;
48
+ }
49
+
50
+ svg {
51
+ margin-right: 0px;
52
+ stroke: $color-stroke-gray;
53
+ }
54
+
55
+ &:hover {
56
+ svg {
57
+ stroke: $color-darkblue;
58
+ }
59
+ }
60
+ }
61
+
62
+ &:hover {
63
+ .download-button-image {
64
+ display: block;
65
+ }
66
+ }
67
+ }
68
+ }
69
+
70
+
71
+
72
+ .attachment-link {
73
+ color: $primary;
74
+ text-decoration: none;
75
+ font-weight: $font-normal;
76
+ position: relative;
77
+ fill: $primary;
78
+ .icon-attachment {
79
+ margin-right: 5px;
80
+ }
81
+
82
+ .icon-external {
83
+ fill: $color-border;
84
+ margin-left: 10px;
85
+ }
86
+
87
+ .icon-file-added {
88
+ fill: $color-blue;
89
+ margin-right: 10px;
90
+ }
91
+ &:hover{
92
+ fill:#2a76a6;
93
+ }
94
+ }
95
+
96
+ .attachment {
97
+ position: relative;
98
+ width: fit-content;
99
+
100
+ img {
101
+ object-fit: contain;
102
+ min-height: 40px;
103
+ max-height: 120px;
104
+ width: auto;
105
+ }
106
+ }
107
+
@@ -4,7 +4,7 @@
4
4
  border-radius: $border-radius-default;
5
5
  text-align: center;
6
6
  margin: 0;
7
- transition: all .5s cubic-bezier(.36,.03,.28,.99);
7
+ transition: all 0.5s cubic-bezier(0.36, 0.03, 0.28, 0.99);
8
8
  }
9
9
 
10
10
  // $variant, $color, $bg-color, $hover-color, $hover-bg-color, $border $solid $border-color
@@ -21,12 +21,12 @@ $btn-variants:
21
21
 
22
22
  @each $variant, $color, $bg-color, $hover-color, $hover-bg-color, $border, $solid, $border-color in $btn-variants {
23
23
  .btn-#{$variant} {
24
- @include button($variant, $color, $bg-color, $hover-color, $hover-bg-color, $border, $solid, $border-color)
24
+ @include button($variant, $color, $bg-color, $hover-color, $hover-bg-color, $border, $solid, $border-color);
25
25
  }
26
26
  }
27
27
 
28
28
  .btn-link {
29
- text-decoration: none;
29
+ text-decoration: none;
30
30
 
31
31
  &:hover {
32
32
  text-decoration: underline;
@@ -34,29 +34,45 @@ $btn-variants:
34
34
  }
35
35
 
36
36
  .btn-outline-tertiary {
37
- &.disabled{
38
- opacity: 1;
39
- color: #afb8cc;
40
- background-color: #f2f3f5;
37
+ &.disabled {
38
+ opacity: 1;
39
+ color: #afb8cc;
40
+ background-color: #f2f3f5;
41
41
  }
42
42
  }
43
43
 
44
- .btn.btn-primary{
45
- &:disabled{
44
+ .btn.btn-primary {
45
+ &:disabled {
46
46
  opacity: 1;
47
47
  color: $white;
48
48
  background-color: #bdc2cc;
49
49
  }
50
50
  }
51
51
 
52
- .btn-close{
52
+ .btn-close {
53
53
  .modal & {
54
54
  background-image: initial;
55
55
  }
56
56
  }
57
57
 
58
-
59
-
60
-
61
-
62
-
58
+ button {
59
+ &.btn-remove {
60
+ position: absolute;
61
+ top: -10px;
62
+ right: -10px;
63
+ margin-top: 0px !important;
64
+ background-color: $primary;
65
+ color: #fff;
66
+ fill: #fff;
67
+ width: 21px;
68
+ height: 21px;
69
+ border-radius: 50%;
70
+ line-height: normal;
71
+ padding: 0;
72
+ text-align: center;
73
+ &:hover {
74
+ fill: $primary;
75
+ background-color: #ebf3f8;
76
+ }
77
+ }
78
+ }
@@ -50,4 +50,9 @@
50
50
  height: 24px;
51
51
  fill: white;
52
52
  }
53
+
54
+ &.icon-menu {
55
+ width: 14px;
56
+ font-weight: 900;
57
+ }
53
58
  }
@@ -166,3 +166,17 @@ $pagination-color: $gray-600;
166
166
  $pagination-border-color:$gray-500;
167
167
  $pagination-border-radius: 4px;
168
168
  $pagination-border-width: 1px;
169
+
170
+
171
+ //newly found variables
172
+ $color-stroke-gray: #6B758A;
173
+ $color-border:hsl(224, 13%, 71%);
174
+
175
+ //zoom slider
176
+ $form-range-track-cursor: pointer;
177
+ $form-range-track-width: 100%;
178
+ $form-range-track-border-radius: 1rem;
179
+ $form-range-thumb-border-radius: 1rem;
180
+ $form-range-track-height: .5rem;
181
+ $form-range-thumb-width: 1rem;
182
+ $form-range-thumb-height: $form-range-thumb-width;
@@ -17,4 +17,5 @@
17
17
  @import "dropzone";
18
18
  @import "user";
19
19
  @import "markdown-editor";
20
- @import "modal";
20
+ @import "modal";
21
+ @import "attachments"
@@ -0,0 +1,15 @@
1
+ export interface ApiAttachment {
2
+ Id?: number;
3
+ BerichtId?: number;
4
+ Naam: string;
5
+ MimeType: string | null;
6
+ DownloadUrl?: string;
7
+ identifier?: string;
8
+ conversationId?: string | number;
9
+ url?: string;
10
+ FileId?: string;
11
+ StandardAttachmentId?: string | number;
12
+ CorrelationId?: string | number;
13
+ ThumbnailUrl?: string;
14
+ standardAttachmentId?: string;
15
+ }
@@ -10,5 +10,6 @@ export declare const BTN_COLOR_VARIANTS: {
10
10
  readonly OUT_LINK: "link";
11
11
  readonly LIGHT: "light";
12
12
  readonly DARK: "dark";
13
+ readonly REMOVE: "remove";
13
14
  };
14
15
  export type btnColorVariants = GenericEnum<typeof BTN_COLOR_VARIANTS>;
@@ -0,0 +1,25 @@
1
+ import { BDAttachment } from '../interfaces/BDAttachment';
2
+ import { ApiAttachment } from '../types/ApiAttachment';
3
+ export declare const IsSvg: (filename: string) => boolean | "";
4
+ export declare const MapAttachmentsForApi: (files: BDAttachment[]) => string[];
5
+ export declare const CreateThumbnailUri: (attachment: ApiAttachment) => string;
6
+ export declare const CreateFullImageUri: (attachment: ApiAttachment) => string | null;
7
+ export declare const MapToAttachmentObjects: (attachments: ApiAttachment[], isImage: boolean) => {
8
+ Id?: number | undefined;
9
+ BerichtId?: number | undefined;
10
+ Naam: string;
11
+ MimeType: string | null;
12
+ DownloadUrl?: string | undefined;
13
+ identifier?: string | undefined;
14
+ conversationId?: string | number | undefined;
15
+ url?: string | undefined;
16
+ FileId?: string | undefined;
17
+ StandardAttachmentId?: string | number | undefined;
18
+ CorrelationId?: string | number | undefined;
19
+ ThumbnailUrl?: string | undefined;
20
+ standardAttachmentId?: string | undefined;
21
+ downloadUrl: string;
22
+ previewUrl: string;
23
+ fullImageUrl: string | null;
24
+ altName: string;
25
+ }[];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@beterdichtbij/component-library",
3
3
  "private": false,
4
- "version": "0.17.0",
4
+ "version": "0.18.1",
5
5
  "author": "Ralph van der Neut <rvanderneut@beterdichtbij.nl>",
6
6
  "type": "module",
7
7
  "files": [
@@ -89,7 +89,7 @@
89
89
  "@typescript-eslint/eslint-plugin": "6.8.0",
90
90
  "@typescript-eslint/parser": "6.8.0",
91
91
  "@vitejs/plugin-vue": "^4.1.0",
92
- "@vitest/coverage-v8": "0.32.0",
92
+ "@vitest/coverage-v8": "1.5.3",
93
93
  "@vue/eslint-config-typescript": "12.0.0",
94
94
  "@vue/test-utils": "^2.3.2",
95
95
  "bootstrap": "5.3.0",
@@ -109,7 +109,7 @@
109
109
  "typescript": "^5.0.2",
110
110
  "vite": "^4.3.2",
111
111
  "vite-plugin-dts": "^2.3.0",
112
- "vitest": "0.32.0"
112
+ "vitest": "1.5.3"
113
113
  },
114
114
  "description": "Component library voor BeterDichtbij design system",
115
115
  "repository": {