@beterdichtbij/component-library 0.16.1 → 0.18.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 +34 -30
- package/dist/bd-component-lib.es.js +9879 -7317
- package/dist/bd-component-lib.umd.js +34 -30
- package/dist/components/atoms/BDToast/BDToast.vue.d.ts +0 -17
- package/dist/components/atoms/icons/IconDownloadImage.vue.d.ts +2 -0
- package/dist/components/atoms/icons/IconDownloadImage.vue.d.ts.map +1 -0
- package/dist/components/atoms/icons/IconMenu.vue.d.ts +2 -0
- package/dist/components/atoms/icons/IconMenu.vue.d.ts.map +1 -0
- package/dist/components/atoms/icons/index.d.ts +3 -1
- package/dist/components/molecules/BDAttachmentPreviewList/BDAttachmentPreviewList.vue.d.ts +42 -0
- package/dist/components/molecules/BDAttachmentPreviewList/BDAttachmentPreviewList.vue.d.ts.map +1 -0
- package/dist/components/molecules/BDImageAttachmentPreviewList/BDImageAttachmentPreviewList.vue.d.ts +54 -0
- package/dist/components/molecules/BDImageAttachmentPreviewList/BDImageAttachmentPreviewList.vue.d.ts.map +1 -0
- package/dist/components/molecules/BDMarkdownEditor/BDMarkdownEditor.vue.d.ts +13 -1
- package/dist/composables/useToaster.d.ts +7 -0
- package/dist/index.d.ts +5 -2
- package/dist/interfaces/BDAttachment.d.ts +7 -0
- package/dist/interfaces/BDAttachmentPreviewListProps.d.ts +6 -0
- package/dist/interfaces/BDImageAttachmentPreviewListProps.d.ts +4 -0
- package/dist/interfaces/BDMarkdownEditorProps.d.ts +2 -0
- package/dist/interfaces/BDToastProps.d.ts +0 -2
- package/dist/scss/_attachments.scss +107 -0
- package/dist/scss/_button.scss +31 -15
- package/dist/scss/_icons.scss +5 -0
- package/dist/scss/_toast.scss +41 -61
- package/dist/scss/base/variables.scss +14 -0
- package/dist/scss/component-library-styling.scss +2 -1
- package/dist/types/ApiAttachment.d.ts +15 -0
- package/dist/types/ButtonColorVariants.d.ts +1 -0
- package/dist/utils/attachment.d.ts +25 -0
- package/package.json +3 -3
|
@@ -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.
|
|
4
|
+
"version": "0.18.0",
|
|
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": "
|
|
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": "
|
|
112
|
+
"vitest": "1.5.3"
|
|
113
113
|
},
|
|
114
114
|
"description": "Component library voor BeterDichtbij design system",
|
|
115
115
|
"repository": {
|