@beterdichtbij/component-library 0.63.3 → 0.64.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.
@@ -12,6 +12,7 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
12
  declare const __VLS_component: import('vue').DefineComponent<BDCollapsableCardProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BDCollapsableCardProps> & Readonly<{}>, {
13
13
  title: string;
14
14
  disabled: boolean;
15
+ noHeader: boolean;
15
16
  collapseOn: import('../../../types/BootstrapSizes').bootstrapSizes | null;
16
17
  showOn: import('../../../types/BootstrapSizes').bootstrapSizes;
17
18
  visible: boolean;
@@ -0,0 +1,11 @@
1
+ import { AttachedFile } from '../../../interfaces/BDFileUploadProps';
2
+ type __VLS_Props = {
3
+ file: AttachedFile;
4
+ isPending: boolean;
5
+ };
6
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
+ remove: (file: AttachedFile) => any;
8
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
9
+ onRemove?: ((file: AttachedFile) => any) | undefined;
10
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
11
+ export default _default;
@@ -5,4 +5,5 @@ export interface BDCollapsableCardProps {
5
5
  collapseOn: bootstrapSizes | null;
6
6
  showOn: bootstrapSizes;
7
7
  visible: boolean;
8
+ noHeader: boolean;
8
9
  }
@@ -2,10 +2,10 @@ export interface AttachedFiles {
2
2
  files: AttachedFile[];
3
3
  }
4
4
  export interface AttachedFile {
5
- UUID: string;
6
- CorrelationId: string;
7
- Naam: string;
5
+ name: string;
8
6
  previewUrl?: string;
7
+ UUID?: string;
8
+ CorrelationId?: string;
9
9
  }
10
10
  export interface BDFileUploadProps {
11
11
  modelValue: AttachedFiles;
@@ -0,0 +1,54 @@
1
+ .bd-file-upload-preview {
2
+ display: inline-block;
3
+
4
+ .preview-details {
5
+ position: relative;
6
+
7
+ .preview-image {
8
+ min-width: 150px;
9
+ height: 88px;
10
+ object-fit: contain;
11
+ }
12
+
13
+ .mark-container {
14
+ display: block;
15
+ border-radius: 50%;
16
+ width: 21px;
17
+ height: 21px;
18
+ margin: 0px auto;
19
+
20
+ &.success {
21
+ background-color: $green;
22
+
23
+ svg {
24
+ transform: translateY(-2px);
25
+ }
26
+ }
27
+
28
+ &.pending {
29
+ background-color: $white;
30
+ }
31
+ }
32
+
33
+ .remove-button {
34
+ position: absolute;
35
+ top: -10px;
36
+ right: -10px;
37
+ margin: 0;
38
+ width: 21px;
39
+ height: 21px;
40
+ border-radius: 50%;
41
+ padding: 0px;
42
+ background-color: $primary;
43
+ display: flex;
44
+ justify-content: center;
45
+ align-items: center;
46
+
47
+ .icon {
48
+ margin: revert;
49
+ transform: revert;
50
+ transition: revert;
51
+ }
52
+ }
53
+ }
54
+ }
@@ -1,5 +1,3 @@
1
- @use "sass:math";
2
-
3
1
  .bd-file-upload {
4
2
  position: relative;
5
3
  color: $color-darkblue;
@@ -20,74 +18,10 @@
20
18
  color: $color-darkblue;
21
19
  }
22
20
  }
23
-
24
- .dz-message {
25
- margin-bottom: 1.25rem;
26
- }
27
21
 
28
- .file-upload-preview {
22
+ .preview-container {
29
23
  position: relative;
30
24
  display: inline-block;
31
25
  text-align: center;
32
-
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
- }
45
- }
46
-
47
- &.dz-error {
48
- .dz-error-message, .dz-error-mark {
49
- display: block;
50
- }
51
- }
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);
63
- }
64
- }
65
-
66
- &.dz-complete {
67
- .dz-progress {
68
- display: none;
69
- }
70
- }
71
-
72
- .remove-button {
73
- position: absolute;
74
- top: -10px;
75
- right: -10px;
76
- margin: 0;
77
- width: 21px;
78
- height: 21px;
79
- border-radius: 50%;
80
- padding: 0px;
81
- background-color: $primary;
82
- display: flex;
83
- justify-content: center;
84
- align-items: center;
85
-
86
- .icon {
87
- margin: revert;
88
- transform: revert;
89
- transition: revert;
90
- }
91
- }
92
26
  }
93
27
  }
@@ -14,31 +14,12 @@
14
14
  &.icon-remove {
15
15
  width: 11px;
16
16
  height: 11px;
17
-
18
- .dz-remove &{
19
- fill: $color-white;
20
- }
21
17
  }
22
18
 
23
19
  &.icon-file{
24
20
  fill: $color-darkblue;
25
- .dz-details &{
26
- height: 88px;
27
- min-width: 150px;
28
- }
29
-
30
- .dz-error &{
31
- fill: $color-red;
32
- }
33
21
  }
34
22
 
35
- &.icon-error{
36
- .dz-error-mark & , .dz-error-message &, .bd-invalid-feedback &{
37
- path {
38
- fill: $color-red;
39
- }
40
- }
41
- }
42
23
  &.icon-loading{
43
24
  width:25px;
44
25
  height:25px;
@@ -23,6 +23,7 @@
23
23
  @import "extern";
24
24
  @import "filter-card";
25
25
  @import "file-upload";
26
+ @import "file-upload-preview";
26
27
  @import "form-field";
27
28
  @import "form-multiple-checkbox";
28
29
  @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.63.3",
5
+ "version": "0.64.1",
6
6
  "engines": {
7
7
  "node": "24.x",
8
8
  "npm": "11.x"