@beterdichtbij/component-library 0.63.2 → 0.64.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,4 +1,9 @@
1
- declare const _default: import('vue').DefineComponent<{}, {
1
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
2
+ export default _default;
3
+ type __VLS_WithTemplateSlots<T, S> = T & (new () => {
4
+ $slots: S;
5
+ });
6
+ declare const __VLS_component: import('vue').DefineComponent<{}, {
2
7
  $emit: (event: "close" | "action" | "show-attachment" | "on-submit" | "on-input" | "change-department", ...args: any[]) => void;
3
8
  modelValue: Record<string, any>;
4
9
  visible: boolean;
@@ -6,7 +11,6 @@ declare const _default: import('vue').DefineComponent<{}, {
6
11
  editable: boolean;
7
12
  serverErrors: unknown[];
8
13
  contentLibraryExternalProviders: unknown[];
9
- isOperator: boolean;
10
14
  files?: unknown[] | undefined;
11
15
  practitionerOptions?: unknown[] | undefined;
12
16
  departmentOptions?: unknown[] | undefined;
@@ -18,11 +22,17 @@ declare const _default: import('vue').DefineComponent<{}, {
18
22
  readonly editable?: boolean | undefined;
19
23
  readonly serverErrors?: unknown[] | undefined;
20
24
  readonly contentLibraryExternalProviders?: unknown[] | undefined;
21
- readonly isOperator?: boolean | undefined;
22
25
  readonly files?: unknown[] | undefined;
23
26
  readonly practitionerOptions?: unknown[] | undefined;
24
27
  readonly departmentOptions?: unknown[] | undefined;
25
28
  readonly categoryOptions?: unknown[] | undefined;
26
29
  };
27
30
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
28
- export default _default;
31
+ type __VLS_TemplateResult = {
32
+ attrs: Partial<{}>;
33
+ slots: {
34
+ 'extra-fields'?(_: {}): any;
35
+ };
36
+ refs: {};
37
+ rootEl: HTMLDivElement;
38
+ };
@@ -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;
@@ -1,12 +1,16 @@
1
- declare const _default: import('vue').DefineComponent<{}, {
2
- $emit: (event: "update:modelValue" | "action" | "show-attachment" | "on-input" | "change-department", ...args: any[]) => void;
1
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
2
+ export default _default;
3
+ type __VLS_WithTemplateSlots<T, S> = T & (new () => {
4
+ $slots: S;
5
+ });
6
+ declare const __VLS_component: import('vue').DefineComponent<{}, {
7
+ $emit: (event: "update:modelValue" | "action" | "show-attachment" | "on-input" | "change-department" | "change-text", ...args: any[]) => void;
3
8
  modelValue: Record<string, any>;
4
9
  validation: Record<string, any>;
5
10
  practitionerOptions: unknown[];
6
11
  departmentOptions: unknown[];
7
12
  categoryOptions: unknown[];
8
13
  contentLibraryExternalProviders: unknown[];
9
- isOperator: boolean;
10
14
  files?: unknown[] | undefined;
11
15
  $props: {
12
16
  readonly modelValue?: Record<string, any> | undefined;
@@ -15,8 +19,14 @@ declare const _default: import('vue').DefineComponent<{}, {
15
19
  readonly departmentOptions?: unknown[] | undefined;
16
20
  readonly categoryOptions?: unknown[] | undefined;
17
21
  readonly contentLibraryExternalProviders?: unknown[] | undefined;
18
- readonly isOperator?: boolean | undefined;
19
22
  readonly files?: unknown[] | undefined;
20
23
  };
21
24
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLFormElement>;
22
- export default _default;
25
+ type __VLS_TemplateResult = {
26
+ attrs: Partial<{}>;
27
+ slots: {
28
+ 'extra-fields'?(_: {}): any;
29
+ };
30
+ refs: {};
31
+ rootEl: HTMLFormElement;
32
+ };
@@ -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;
@@ -36,7 +36,7 @@
36
36
  "edit": "Wijzigen"
37
37
  },
38
38
  "contentLibraryOverview": {
39
- "noResults": "Er zijn geen resultaten gevonden"
39
+ "noResults": "Er zijn geen berichten gevonden voor deze zoekterm of filters; pas ze aan om opnieuw te zoeken."
40
40
  },
41
41
  "contentLibrarySplitButton": {
42
42
  "messageTemplatesTitle": "Standaardberichten"
@@ -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
  }
@@ -45,4 +45,8 @@
45
45
  .custom-control-label {
46
46
  line-height: 30px;
47
47
  }
48
+
49
+ button {
50
+ margin-bottom: 10px;
51
+ }
48
52
  }
@@ -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;
@@ -1,4 +1,7 @@
1
1
  .modal.bd-modal {
2
+
3
+ backdrop-filter: brightness(0.7);
4
+
2
5
  &.modal-xl {
3
6
  @include media-breakpoint-down(xl) {
4
7
  .modal-dialog {
@@ -6,12 +6,8 @@
6
6
  header {
7
7
  display: flex;
8
8
  justify-content: space-between;
9
- width: 100%;
10
-
11
- * {
12
- padding-top: 4px;
13
- padding-bottom: 4px;
14
- }
9
+ align-items: center;
10
+ width: 100%;
15
11
 
16
12
  span {
17
13
  font-size: 15px;
@@ -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";
@@ -1,5 +1,6 @@
1
1
  .form-check.bd-form-checkbox{
2
2
  padding: 0;
3
+ min-height: 1.6rem;
3
4
 
4
5
  input {
5
6
  background-size: 16px 11px;
@@ -129,4 +129,11 @@
129
129
  padding: 4px;
130
130
  }
131
131
  }
132
+
133
+ .controls-row {
134
+ > *:first-child {
135
+ padding-left: 2px;
136
+ }
137
+ }
138
+
132
139
  }
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.2",
5
+ "version": "0.64.0",
6
6
  "engines": {
7
7
  "node": "24.x",
8
8
  "npm": "11.x"