@beterdichtbij/component-library 0.20.0 → 0.21.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.
@@ -54,10 +54,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
54
54
  }>> & {
55
55
  onClick?: ((...args: any[]) => any) | undefined;
56
56
  }, {
57
+ src: string;
57
58
  size: import('../../../types/BootstrapSizes').bootstrapSizes | undefined;
58
59
  showFooter: boolean;
59
60
  linkText: string;
60
- src: string;
61
61
  alt: string | undefined;
62
62
  }, {}>;
63
63
  export default _sfc_main;
@@ -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":"IconEyeShow.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/icons/IconEyeShow.vue"],"names":[],"mappings":";AA2BA,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":"IconEyeSlash.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/icons/IconEyeSlash.vue"],"names":[],"mappings":";AAuBA,wBAA4E"}
@@ -17,4 +17,6 @@ import IconOrderedList from "./IconOrderedList.vue";
17
17
  import IconHyperlink from "./IconHyperlink.vue";
18
18
  import IconDownloadImage from "./IconDownloadImage.vue";
19
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 };
20
+ import IconEyeShow from "./IconEyeShow.vue";
21
+ import IconEyeSlash from "./IconEyeSlash.vue";
22
+ export { IconAttachment, IconCheck, IconError, IconInfo, IconRemove, IconFile, IconCaretDown, IconCaretRight, IconCaretLeft, IconClose, IconItalic, IconBold, IconUnderline, IconBulletList, IconOrderedList, IconHyperlink, IconCalendar, IconDownloadImage, IconMenu, IconEyeShow, IconEyeSlash };
@@ -0,0 +1,86 @@
1
+ import type { PropType as __PropType } from 'vue';
2
+ declare const _sfc_main: import("vue").DefineComponent<{
3
+ headerTitle: {
4
+ type: __PropType<string>;
5
+ required: true;
6
+ default: string;
7
+ };
8
+ src: {
9
+ type: __PropType<string | undefined>;
10
+ required: false;
11
+ default: undefined;
12
+ };
13
+ AltProfileImage: {
14
+ type: __PropType<string>;
15
+ required: true;
16
+ default: string;
17
+ };
18
+ message: {
19
+ type: __PropType<string>;
20
+ required: true;
21
+ default: string;
22
+ };
23
+ isSender: {
24
+ type: __PropType<boolean>;
25
+ required: true;
26
+ default: boolean;
27
+ };
28
+ files: {
29
+ type: __PropType<import("../../../types/ApiAttachment").ApiAttachment[] | undefined>;
30
+ required: false;
31
+ default: undefined;
32
+ };
33
+ pills: {
34
+ type: __PropType<Object[] | undefined>;
35
+ required: false;
36
+ default: undefined;
37
+ };
38
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("show-attachment" | "action")[], "show-attachment" | "action", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
39
+ headerTitle: {
40
+ type: __PropType<string>;
41
+ required: true;
42
+ default: string;
43
+ };
44
+ src: {
45
+ type: __PropType<string | undefined>;
46
+ required: false;
47
+ default: undefined;
48
+ };
49
+ AltProfileImage: {
50
+ type: __PropType<string>;
51
+ required: true;
52
+ default: string;
53
+ };
54
+ message: {
55
+ type: __PropType<string>;
56
+ required: true;
57
+ default: string;
58
+ };
59
+ isSender: {
60
+ type: __PropType<boolean>;
61
+ required: true;
62
+ default: boolean;
63
+ };
64
+ files: {
65
+ type: __PropType<import("../../../types/ApiAttachment").ApiAttachment[] | undefined>;
66
+ required: false;
67
+ default: undefined;
68
+ };
69
+ pills: {
70
+ type: __PropType<Object[] | undefined>;
71
+ required: false;
72
+ default: undefined;
73
+ };
74
+ }>> & {
75
+ "onShow-attachment"?: ((...args: any[]) => any) | undefined;
76
+ onAction?: ((...args: any[]) => any) | undefined;
77
+ }, {
78
+ headerTitle: string;
79
+ src: string | undefined;
80
+ AltProfileImage: string;
81
+ message: string;
82
+ isSender: boolean;
83
+ files: import("../../../types/ApiAttachment").ApiAttachment[] | undefined;
84
+ pills: Object[] | undefined;
85
+ }, {}>;
86
+ export default _sfc_main;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BDChatCloud.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/BDChatCloud/BDChatCloud.vue"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,6GAA6G,CAAC;AACpI,cAAc,6GAA6G,CAAC;AAC5H,eAAe,SAAS,CAAC"}
@@ -29,7 +29,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
29
29
  type: __PropType<string>;
30
30
  required: true;
31
31
  };
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<{
32
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("action" | "update:modelValue" | "upload")[], "action" | "update:modelValue" | "upload", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
33
33
  placeholder: {
34
34
  type: __PropType<string | undefined>;
35
35
  required: false;
@@ -60,14 +60,14 @@ declare const _sfc_main: import("vue").DefineComponent<{
60
60
  required: true;
61
61
  };
62
62
  }>> & {
63
+ onAction?: ((...args: any[]) => any) | undefined;
63
64
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
64
65
  onUpload?: ((...args: any[]) => any) | undefined;
65
- onAction?: ((...args: any[]) => any) | undefined;
66
66
  }, {
67
+ files: import("../../../types/ApiAttachment").ApiAttachment[] | undefined;
67
68
  variant: import('../../../types/tiptapVariants').TiptapVariants;
68
69
  placeholder: string | undefined;
69
70
  state: boolean | undefined;
70
71
  errorText: string | undefined;
71
- files: import("../../../types/ApiAttachment").ApiAttachment[] | undefined;
72
72
  }, {}>;
73
73
  export default _sfc_main;
@@ -0,0 +1 @@
1
+ export declare const EMPTY_STRING: string;
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, IconDownloadImage, IconMenu } 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, IconEyeShow, IconEyeSlash } 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";
@@ -26,8 +26,9 @@ import BDMarkdownEditor from "./components/molecules/BDMarkdownEditor/BDMarkdown
26
26
  import BDUser from "./components/molecules/BDUser/BDUser.vue";
27
27
  import BDAttachmentPreviewList from "./components/molecules/BDAttachmentPreviewList/BDAttachmentPreviewList.vue";
28
28
  import BDImageAttachmentPreviewList from "./components/molecules/BDImageAttachmentPreviewList/BDImageAttachmentPreviewList.vue";
29
+ import BDChatCloud from "./components/molecules/BDChatCloud/BDChatCloud.vue";
29
30
  import BDDropdown from "./components/organisms/BDDropdown/BDDropdown.vue";
30
31
  import BDModal from "./components/organisms/BDModal/BDModal.vue";
31
32
  import { useModal } from "./composables/useModal";
32
33
  import { useToaster } from "./composables/useToaster";
33
- 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, IconDownloadImage, BDImageAttachmentPreviewList, IconMenu, useModal, useToaster, };
34
+ export { BDChatCloud, 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, IconEyeShow, IconEyeSlash, BDArticle, BDUser, BDToast, BDAttachmentPreviewList, IconDownloadImage, BDImageAttachmentPreviewList, IconMenu, useModal, useToaster, };
@@ -0,0 +1,10 @@
1
+ import { ApiAttachment } from '../types/ApiAttachment';
2
+ export interface BDChatCloudProps {
3
+ headerTitle: string;
4
+ src?: string;
5
+ AltProfileImage: string;
6
+ message: string;
7
+ isSender: boolean;
8
+ files?: ApiAttachment[];
9
+ pills?: Object[];
10
+ }
@@ -0,0 +1,124 @@
1
+ .bd-chat-cloud {
2
+ display: flex;
3
+ gap: 12px;
4
+ margin-bottom: 16px;
5
+ padding-right: 80px;
6
+
7
+ &-card {
8
+ flex: 1;
9
+ background-color: $color-bg;
10
+ padding: 30px;
11
+ border-radius: 8px;
12
+ position: relative;
13
+
14
+
15
+ &__header {
16
+ display: flex;
17
+ justify-content: space-between;
18
+ margin-bottom: 12px;
19
+
20
+ @include media-breakpoint-down(md) {
21
+ flex-direction: column;
22
+ button {
23
+ width: 80px;
24
+ margin-top: 12px;
25
+ }
26
+ }
27
+ }
28
+
29
+ &__body {
30
+ word-break: break-word;
31
+ .card-body &{
32
+ ul {
33
+ padding:revert;
34
+ padding-left:2rem;
35
+ list-style-type: revert;
36
+ margin:revert;
37
+ }
38
+ }
39
+
40
+
41
+ }
42
+
43
+ &__message{
44
+ p{
45
+ min-height: 1rem;
46
+ }
47
+ p:last-of-type{
48
+ margin-bottom: 0px;
49
+ }
50
+ }
51
+ &__footer {
52
+ ul {
53
+
54
+ margin-bottom: 0;
55
+
56
+ li {
57
+ margin-bottom: 0;
58
+ }
59
+
60
+ .card-body &{
61
+ margin-top: 1.25rem;
62
+ }
63
+ }
64
+ }
65
+
66
+ .sender & {
67
+ background-color: $color-chatcloud;
68
+ }
69
+
70
+ &::before {
71
+ content: "";
72
+ position: absolute;
73
+ border-left: 12px solid transparent;
74
+ border-right: 12px solid $color-bg;
75
+ border-top: 12px solid $color-bg;
76
+ border-bottom: 12px solid transparent;
77
+ left: -14px;
78
+ top: 0px;
79
+ border-radius: 4px;
80
+ transform: scaleZ(-1);
81
+
82
+ .sender & {
83
+ border-right: 12px solid transparent;
84
+ border-top: 12px solid $color-chatcloud;
85
+ border-left: 12px solid $color-chatcloud;
86
+ transform: revert;
87
+ right: -12px;
88
+ left: revert;
89
+ }
90
+ }
91
+
92
+ @include media-breakpoint-down(md) {
93
+ padding: 8px;
94
+ }
95
+
96
+ }
97
+
98
+
99
+ &.sender {
100
+ flex-direction: row-reverse;
101
+ padding-right: revert;
102
+ padding-left: 80px;
103
+ }
104
+
105
+ @include media-breakpoint-down(md) {
106
+ padding-left: 6px;
107
+ padding-right: 30px;
108
+
109
+ &.sender {
110
+ padding-left: 30px;
111
+ padding-right: 6px;
112
+ }
113
+ }
114
+
115
+ .bd-profile-picture {
116
+ @include media-breakpoint-down(md) {
117
+ display: none;
118
+ }
119
+
120
+ }
121
+ }
122
+
123
+
124
+
@@ -1,16 +1,89 @@
1
- .modal.bd-modal{
1
+ .modal.bd-modal {
2
+
3
+ .modal-header {
4
+ display: flex;
5
+ align-items: center;
6
+ justify-content: space-between;
7
+ margin-top:30px;
8
+
9
+ button.btn-close {
10
+ top: 20px;
11
+ right: 20px;
12
+ position: absolute;
13
+ padding: revert;
14
+ margin: revert;
15
+ height: revert;
16
+ }
17
+
18
+ @include media-breakpoint-up(md) {
19
+ padding: 0px 65px;
20
+ }
21
+
22
+ @include media-breakpoint-down(md) {
23
+ flex-direction: column-reverse;
24
+ align-items: center;
25
+ justify-content: center;
26
+ padding: .75rem;
27
+ margin-top: 0px;
28
+
29
+ > * {
30
+ width: 100%;
31
+ text-align: center;
32
+ }
33
+
34
+ button.btn-close {
35
+ top: initial;
36
+ right: initial;
37
+ position: initial;
38
+ margin: auto;
39
+ font-size: 0.9em;
40
+ padding: initial;
41
+ height: initial;
42
+ }
43
+ }
44
+ }
45
+
46
+ .modal-body {
47
+ @include media-breakpoint-up(md) {
48
+ padding: 30px 65px;
49
+ }
50
+ border: 0px;
51
+ }
52
+
2
53
  .modal-footer {
3
54
  justify-content: flex-start;
4
- }
55
+
56
+ @include media-breakpoint-up(md) {
57
+ padding: 30px 65px;
58
+ }
5
59
 
6
- @include media-breakpoint-up(md) {
7
- .modal-footer {
8
- padding-left: 1.75rem;
9
- padding-bottom:1rem;
60
+ @include media-breakpoint-down(md) {
61
+ display: flex;
62
+ align-items: center;
63
+ justify-content: center;
64
+ padding: .75rem;
65
+
66
+ > * {
67
+ width: 100%;
68
+ }
10
69
  }
11
70
  }
12
71
 
13
- .btn-close{
72
+ .btn-close {
14
73
  align-self: baseline;
15
74
  }
75
+
76
+ .modal-title {
77
+ font-family: $font-secondary;
78
+ font-weight: $font-normal;
79
+ font-size: 31px;
80
+ color: $color-darkblue;
81
+ letter-spacing: 0;
82
+
83
+ @include media-breakpoint-down(sm) {
84
+ margin-top: 20px;
85
+ line-height:normal;
86
+ }
87
+ }
88
+
16
89
  }
@@ -90,7 +90,8 @@ $font-black : 900;
90
90
 
91
91
  $font-color-primary : $color-darkblue;
92
92
 
93
-
93
+ //chatcloud
94
+ $color-chatcloud:#E1EFF8;
94
95
 
95
96
  //dropdown item vars
96
97
  $dropdown-bg: #fff;
@@ -18,4 +18,5 @@
18
18
  @import "user";
19
19
  @import "markdown-editor";
20
20
  @import "modal";
21
- @import "attachments"
21
+ @import "attachments";
22
+ @import "chatcloud";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@beterdichtbij/component-library",
3
3
  "private": false,
4
- "version": "0.20.0",
4
+ "version": "0.21.0",
5
5
  "author": "Ralph van der Neut <rvanderneut@beterdichtbij.nl>",
6
6
  "type": "module",
7
7
  "files": [