@beterdichtbij/component-library 0.6.2 → 0.7.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.
Files changed (49) hide show
  1. package/dist/bd-component-lib.cjs.js +26 -26
  2. package/dist/bd-component-lib.css +1 -1
  3. package/dist/bd-component-lib.es.js +3810 -3822
  4. package/dist/bd-component-lib.umd.js +28 -28
  5. package/dist/components/atoms/BDAlert/BDAlert.vue.d.ts +0 -11
  6. package/dist/components/atoms/BDArticle/BDArticle.vue.d.ts +60 -0
  7. package/dist/components/atoms/BDArticle/BDArticle.vue.d.ts.map +1 -0
  8. package/dist/components/atoms/BDBadge/BDBadge.vue.d.ts +3 -4
  9. package/dist/components/atoms/BDButton/BDButton.vue.d.ts +3 -8
  10. package/dist/components/atoms/BDForm/BDForm.vue.d.ts +1 -20
  11. package/dist/components/atoms/BDFormInput/BDFormInput.vue.d.ts +32 -2
  12. package/dist/components/atoms/BDFormInvalidFeedback/BDFormInvalidFeedback.vue.d.ts +8 -9
  13. package/dist/components/atoms/BDFormSelect/BDFormSelect.vue.d.ts +11 -2
  14. package/dist/components/atoms/BDLink/BDLink.vue.d.ts +6 -8
  15. package/dist/components/atoms/BDPagination/BDPagination.vue.d.ts +5 -15
  16. package/dist/components/atoms/BDZoomslider/BDZoomslider.vue.d.ts +4 -18
  17. package/dist/components/molecules/BDDropdownItem/BDDropdownItem.vue.d.ts +14 -9
  18. package/dist/components/molecules/BDDropzone/BDDropzone.vue.d.ts +26 -1
  19. package/dist/components/molecules/BDMarkdownEditor/BDMarkdownEditor.vue.d.ts +9 -0
  20. package/dist/components/molecules/BDUser/BDUser.vue.d.ts +64 -0
  21. package/dist/components/molecules/BDUser/BDUser.vue.d.ts.map +1 -0
  22. package/dist/components/organisms/BDModal/BDModal.vue.d.ts +6 -0
  23. package/dist/index.d.ts +3 -2
  24. package/dist/interfaces/BDAlertProps.d.ts +5 -0
  25. package/dist/interfaces/BDArticleProps.d.ts +7 -0
  26. package/dist/interfaces/BDBadgeProps.d.ts +4 -0
  27. package/dist/{types/BDButton.d.ts → interfaces/BDButtonProps.d.ts} +2 -2
  28. package/dist/interfaces/BDCardProps.d.ts +10 -0
  29. package/dist/{types/BDDropDown.d.ts → interfaces/BDDropDownProps.d.ts} +3 -3
  30. package/dist/{types/BDFormInput.d.ts → interfaces/BDFormInputProps.d.ts} +3 -2
  31. package/dist/interfaces/BDFormInvalidFeedbackProps.d.ts +4 -0
  32. package/dist/interfaces/BDFormSelectProps.d.ts +10 -0
  33. package/dist/interfaces/BDLinkProps.d.ts +6 -0
  34. package/dist/{types/BDMarkdownEditor.d.ts → interfaces/BDMarkdownEditorProps.d.ts} +1 -1
  35. package/dist/interfaces/BDPaginationProps.d.ts +6 -0
  36. package/dist/interfaces/BDUserProps.d.ts +8 -0
  37. package/dist/interfaces/BDZoomSliderProps.d.ts +4 -0
  38. package/dist/types/Identifier.d.ts +3 -0
  39. package/package.json +118 -119
  40. package/dist/components/organisms/BDHeader/BDHeader.vue.d.ts +0 -37
  41. package/dist/components/organisms/BDHeader/BDHeader.vue.d.ts.map +0 -1
  42. package/dist/types/BDAlert.d.ts +0 -6
  43. package/dist/types/BDFormSelect.d.ts +0 -10
  44. package/dist/types/BDHeader.d.ts +0 -7
  45. package/dist/types/BDLink.d.ts +0 -13
  46. /package/dist/composables/{uniqueIdentifier.d.ts → useUniqueIdentifier.d.ts} +0 -0
  47. /package/dist/{types/BDDropzone.d.ts → interfaces/BDDropzoneProps.d.ts} +0 -0
  48. /package/dist/{types → interfaces}/BDImage.d.ts +0 -0
  49. /package/dist/{types/BDModal.d.ts → interfaces/BDModalProps.d.ts} +0 -0
@@ -4,69 +4,94 @@ declare const _sfc_main: import("vue").DefineComponent<{
4
4
  modelValue: {
5
5
  type: __PropType<Dropzone.DropzoneFile[]>;
6
6
  required: true;
7
+ default: Dropzone.DropzoneFile[];
7
8
  };
8
9
  buttonText: {
9
10
  type: __PropType<string | undefined>;
10
11
  required: false;
12
+ default: undefined;
11
13
  };
12
14
  multiple: {
13
15
  type: __PropType<boolean>;
14
16
  required: true;
17
+ default: boolean;
15
18
  };
16
19
  errorMessage: {
17
20
  type: __PropType<string | undefined>;
18
21
  required: false;
22
+ default: undefined;
19
23
  };
20
24
  fileSizeExceededMessage: {
21
25
  type: __PropType<string | undefined>;
22
26
  required: false;
27
+ default: undefined;
23
28
  };
24
29
  acceptedFiles: {
25
30
  type: __PropType<string>;
26
31
  required: true;
32
+ default: string;
27
33
  };
28
34
  url: {
29
35
  type: __PropType<string>;
30
36
  required: true;
37
+ default: string;
31
38
  };
32
39
  tag: {
33
40
  type: __PropType<"form" | "div" | undefined>;
34
41
  required: false;
42
+ default: string;
35
43
  };
36
44
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
37
45
  modelValue: {
38
46
  type: __PropType<Dropzone.DropzoneFile[]>;
39
47
  required: true;
48
+ default: Dropzone.DropzoneFile[];
40
49
  };
41
50
  buttonText: {
42
51
  type: __PropType<string | undefined>;
43
52
  required: false;
53
+ default: undefined;
44
54
  };
45
55
  multiple: {
46
56
  type: __PropType<boolean>;
47
57
  required: true;
58
+ default: boolean;
48
59
  };
49
60
  errorMessage: {
50
61
  type: __PropType<string | undefined>;
51
62
  required: false;
63
+ default: undefined;
52
64
  };
53
65
  fileSizeExceededMessage: {
54
66
  type: __PropType<string | undefined>;
55
67
  required: false;
68
+ default: undefined;
56
69
  };
57
70
  acceptedFiles: {
58
71
  type: __PropType<string>;
59
72
  required: true;
73
+ default: string;
60
74
  };
61
75
  url: {
62
76
  type: __PropType<string>;
63
77
  required: true;
78
+ default: string;
64
79
  };
65
80
  tag: {
66
81
  type: __PropType<"form" | "div" | undefined>;
67
82
  required: false;
83
+ default: string;
68
84
  };
69
85
  }>> & {
70
86
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
71
- }, {}, {}>;
87
+ }, {
88
+ modelValue: Dropzone.DropzoneFile[];
89
+ buttonText: string | undefined;
90
+ multiple: boolean;
91
+ errorMessage: string | undefined;
92
+ fileSizeExceededMessage: string | undefined;
93
+ acceptedFiles: string;
94
+ url: string;
95
+ tag: "form" | "div" | undefined;
96
+ }, {}>;
72
97
  export default _sfc_main;
@@ -3,14 +3,17 @@ declare const _sfc_main: import("vue").DefineComponent<{
3
3
  placeholder: {
4
4
  type: __PropType<string | undefined>;
5
5
  required: false;
6
+ default: string;
6
7
  };
7
8
  errorText: {
8
9
  type: __PropType<string | undefined>;
9
10
  required: false;
11
+ default: string;
10
12
  };
11
13
  state: {
12
14
  type: __PropType<boolean | undefined>;
13
15
  required: false;
16
+ default: undefined;
14
17
  };
15
18
  variant: {
16
19
  type: __PropType<import('../../../types/tiptapVariants').TiptapVariants>;
@@ -25,14 +28,17 @@ declare const _sfc_main: import("vue").DefineComponent<{
25
28
  placeholder: {
26
29
  type: __PropType<string | undefined>;
27
30
  required: false;
31
+ default: string;
28
32
  };
29
33
  errorText: {
30
34
  type: __PropType<string | undefined>;
31
35
  required: false;
36
+ default: string;
32
37
  };
33
38
  state: {
34
39
  type: __PropType<boolean | undefined>;
35
40
  required: false;
41
+ default: undefined;
36
42
  };
37
43
  variant: {
38
44
  type: __PropType<import('../../../types/tiptapVariants').TiptapVariants>;
@@ -47,5 +53,8 @@ declare const _sfc_main: import("vue").DefineComponent<{
47
53
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
48
54
  }, {
49
55
  variant: import('../../../types/tiptapVariants').TiptapVariants;
56
+ placeholder: string | undefined;
57
+ state: boolean | undefined;
58
+ errorText: string | undefined;
50
59
  }, {}>;
51
60
  export default _sfc_main;
@@ -0,0 +1,64 @@
1
+ import type { PropType as __PropType } from 'vue';
2
+ declare const _sfc_main: import("vue").DefineComponent<{
3
+ name: {
4
+ type: __PropType<string>;
5
+ required: true;
6
+ default: string;
7
+ };
8
+ img: {
9
+ type: __PropType<import("../../../interfaces/BDImage").ImageProps>;
10
+ required: true;
11
+ default: {
12
+ src: string;
13
+ alt: string;
14
+ };
15
+ };
16
+ details: {
17
+ type: __PropType<string[]>;
18
+ required: true;
19
+ default: never[];
20
+ };
21
+ hideImage: {
22
+ type: __PropType<boolean>;
23
+ required: true;
24
+ default: boolean;
25
+ };
26
+ identifier: {
27
+ type: __PropType<string | number>;
28
+ required: true;
29
+ };
30
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
31
+ name: {
32
+ type: __PropType<string>;
33
+ required: true;
34
+ default: string;
35
+ };
36
+ img: {
37
+ type: __PropType<import("../../../interfaces/BDImage").ImageProps>;
38
+ required: true;
39
+ default: {
40
+ src: string;
41
+ alt: string;
42
+ };
43
+ };
44
+ details: {
45
+ type: __PropType<string[]>;
46
+ required: true;
47
+ default: never[];
48
+ };
49
+ hideImage: {
50
+ type: __PropType<boolean>;
51
+ required: true;
52
+ default: boolean;
53
+ };
54
+ identifier: {
55
+ type: __PropType<string | number>;
56
+ required: true;
57
+ };
58
+ }>>, {
59
+ name: string;
60
+ img: import("../../../interfaces/BDImage").ImageProps;
61
+ details: string[];
62
+ hideImage: boolean;
63
+ }, {}>;
64
+ export default _sfc_main;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BDUser.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/molecules/BDUser/BDUser.vue"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,mGAAmG,CAAC;AAC1H,cAAc,mGAAmG,CAAC;AAClH,eAAe,SAAS,CAAC"}
@@ -3,6 +3,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
3
3
  title: {
4
4
  type: __PropType<string | undefined>;
5
5
  required: false;
6
+ default: string;
6
7
  };
7
8
  submitButtonTitle: {
8
9
  type: __PropType<string | undefined>;
@@ -12,11 +13,13 @@ declare const _sfc_main: import("vue").DefineComponent<{
12
13
  hideFooterCancelButton: {
13
14
  type: __PropType<boolean>;
14
15
  required: true;
16
+ default: boolean;
15
17
  };
16
18
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("submit" | "cancel")[], "submit" | "cancel", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
17
19
  title: {
18
20
  type: __PropType<string | undefined>;
19
21
  required: false;
22
+ default: string;
20
23
  };
21
24
  submitButtonTitle: {
22
25
  type: __PropType<string | undefined>;
@@ -26,11 +29,14 @@ declare const _sfc_main: import("vue").DefineComponent<{
26
29
  hideFooterCancelButton: {
27
30
  type: __PropType<boolean>;
28
31
  required: true;
32
+ default: boolean;
29
33
  };
30
34
  }>> & {
31
35
  onSubmit?: ((...args: any[]) => any) | undefined;
32
36
  onCancel?: ((...args: any[]) => any) | undefined;
33
37
  }, {
38
+ title: string | undefined;
34
39
  submitButtonTitle: string | undefined;
40
+ hideFooterCancelButton: boolean;
35
41
  }, {}>;
36
42
  export default _sfc_main;
package/dist/index.d.ts CHANGED
@@ -16,10 +16,11 @@ import BDBadge from "./components/atoms/BDBadge/BDBadge.vue";
16
16
  import BDForm from "./components/atoms/BDForm/BDForm.vue";
17
17
  import BDPagination from "./components/atoms/BDPagination/BDPagination.vue";
18
18
  import BDFormSelect from "./components/atoms/BDFormSelect/BDFormSelect.vue";
19
+ import BDArticle from "./components/atoms/BDArticle/BDArticle.vue";
19
20
  import BDDropdownItem from "./components/molecules/BDDropdownItem/BDDropdownItem.vue";
20
21
  import BDDropzone from "./components/molecules/BDDropzone/BDDropzone.vue";
21
22
  import BDMarkdownEditor from "./components/molecules/BDMarkdownEditor/BDMarkdownEditor.vue";
23
+ import BDUser from "./components/molecules/BDUser/BDUser.vue";
22
24
  import BDDropdown from "./components/organisms/BDDropdown/BDDropdown.vue";
23
- import BDHeader from "./components/organisms/BDHeader/BDHeader.vue";
24
25
  import BDModal from "./components/organisms/BDModal/BDModal.vue";
25
- export { BDCol, BDContainer, BDRow, BDButton, BDLogo, BDLink, BDDropdownItem, BDDropdown, BDHeader, BDAlert, BDProfileImage, BDZoomslider, BDCard, BDModal, BDFormInput, BDFormInvalidFeedback, BDInputGroup, BDBadge, BDForm, BDPagination, BDDropzone, BDMarkdownEditor, BDFormSelect, IconAttachment, IconBold, IconBulletList, IconCaretLeft, IconCaretRight, IconCheck, IconClose, IconError, IconFile, IconHyperlink, IconInfo, IconItalic, IconOrderedList, IconRemove, IconUnderline };
26
+ export { BDCol, BDContainer, BDRow, BDButton, BDLogo, BDLink, BDDropdownItem, BDDropdown, BDAlert, BDProfileImage, BDZoomslider, BDCard, BDModal, BDFormInput, BDFormInvalidFeedback, BDInputGroup, BDBadge, BDForm, BDPagination, BDDropzone, BDMarkdownEditor, BDFormSelect, IconAttachment, IconBold, IconBulletList, IconCaretLeft, IconCaretRight, IconCheck, IconClose, IconError, IconFile, IconHyperlink, IconInfo, IconItalic, IconOrderedList, IconRemove, IconUnderline, BDArticle, BDUser };
@@ -0,0 +1,5 @@
1
+ import { bootstrapVariants } from "../types/BootstrapVariants";
2
+ export interface BDAlertProps {
3
+ variant?: bootstrapVariants;
4
+ title?: string;
5
+ }
@@ -0,0 +1,7 @@
1
+ import { identifierProp } from "../types/Identifier";
2
+ export interface BDArticleProps extends identifierProp {
3
+ title?: string;
4
+ text?: string;
5
+ hideBody?: boolean;
6
+ hideFooter?: boolean;
7
+ }
@@ -0,0 +1,4 @@
1
+ import { bootstrapVariants } from '../types/BootstrapVariants';
2
+ export interface BDBadgeProps {
3
+ variant?: bootstrapVariants;
4
+ }
@@ -1,7 +1,7 @@
1
1
  import { bootstrapSizes } from '../types/BootstrapSizes';
2
2
  import { btnColorVariants } from '../types/ButtonColorVariants';
3
- import { props as linkProps } from "./BDLink";
4
- export interface props extends linkProps {
3
+ import { BDLinkProps } from '../interfaces/BDLinkProps';
4
+ export interface BDButtonProps extends BDLinkProps {
5
5
  size?: bootstrapSizes;
6
6
  variant?: btnColorVariants;
7
7
  blockElement?: boolean;
@@ -0,0 +1,10 @@
1
+ export interface BDCardProps {
2
+ class?: string;
3
+ title?: string;
4
+ noHeader?: boolean;
5
+ noBody?: boolean;
6
+ headerClass?: string;
7
+ bodyClass?: string;
8
+ id?: number;
9
+ headerVariant?: string;
10
+ }
@@ -1,7 +1,7 @@
1
- import { props as BDTextType } from "./BDText";
2
- import { bootstrapVariants } from "./BootstrapVariants";
1
+ import { props as BDTextType } from "../types/BDText";
2
+ import { bootstrapVariants } from "../types/BootstrapVariants";
3
3
  import { bootstrapSizes } from '../types/BootstrapSizes';
4
- import { PopperOffset } from "./PopperOffset";
4
+ import { PopperOffset } from "../types/PopperOffset";
5
5
  export interface props extends BDTextType, PopperOffset {
6
6
  size?: bootstrapSizes;
7
7
  variant?: bootstrapVariants;
@@ -1,4 +1,5 @@
1
- export interface props {
1
+ import { bootstrapSizes } from '../types/BootstrapSizes';
2
+ export interface BDFormInputProps {
2
3
  modelValue?: string;
3
4
  formGroupClass?: string;
4
5
  type: string;
@@ -11,7 +12,7 @@ export interface props {
11
12
  readonly?: boolean | null;
12
13
  disabled?: boolean | null;
13
14
  autofocus?: boolean | null;
14
- size?: string;
15
+ size?: bootstrapSizes;
15
16
  tabindex?: number | null;
16
17
  invalidFeedbackClass?: string;
17
18
  invalidFeedbackText?: string;
@@ -0,0 +1,4 @@
1
+ export interface BDFormInvalidFeedbackProps {
2
+ state: boolean | null;
3
+ text?: string;
4
+ }
@@ -0,0 +1,10 @@
1
+ import { ModelValueStringAndNumber } from "../types/ModelValue";
2
+ import { ValidationState } from '../types/ValidationState';
3
+ import { BDOption } from "../types/BDOption";
4
+ import { bootstrapSizes } from '../types/BootstrapSizes';
5
+ export interface BDFormSelectProps extends ModelValueStringAndNumber, ValidationState {
6
+ size?: bootstrapSizes;
7
+ disabled?: boolean;
8
+ autofocus?: boolean;
9
+ options?: BDOption[];
10
+ }
@@ -0,0 +1,6 @@
1
+ export interface BDLinkProps {
2
+ to: object | string;
3
+ target?: string;
4
+ text?: string;
5
+ rel?: string;
6
+ }
@@ -1,4 +1,4 @@
1
- import { ModelValueString } from "./ModelValue";
1
+ import { ModelValueString } from "../types/ModelValue";
2
2
  import { TiptapVariants } from '../types/tiptapVariants';
3
3
  export interface BDMarkdownEditorProps extends ModelValueString {
4
4
  placeholder?: string;
@@ -0,0 +1,6 @@
1
+ export interface BDPaginationProps {
2
+ modelValue?: string | number;
3
+ totalRows: number;
4
+ rowsPerPage: number;
5
+ isPatient?: boolean;
6
+ }
@@ -0,0 +1,8 @@
1
+ import { identifierProp } from '../types/Identifier';
2
+ import { ImageProps } from "./BDImage";
3
+ export interface BDUserProps extends identifierProp {
4
+ name: string;
5
+ img: ImageProps;
6
+ details: string[];
7
+ hideImage: boolean;
8
+ }
@@ -0,0 +1,4 @@
1
+ export interface BDZoomSliderProps {
2
+ modelValue: number;
3
+ maxValue?: number;
4
+ }
@@ -0,0 +1,3 @@
1
+ export interface identifierProp {
2
+ identifier: string | number;
3
+ }