@maltjoy/core-vue 3.29.2 → 3.30.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 +1,2 @@
1
- export type TJoyBadgeVariants = 'info' | 'gray' | 'green' | 'orange' | 'red' | 'teal' | 'pink' | 'dark-blue' | 'yellow';
1
+ import { TJoyDotVariants } from '../JoyDot/VJoyDot.types';
2
+ export type TJoyBadgeVariants = TJoyDotVariants;
@@ -1,5 +1,4 @@
1
1
  import { PropType } from 'vue';
2
- import { TJoyBadgeVariants } from './JoyBadge.types';
3
2
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
4
3
  /**
5
4
  * Display the colored bulletpoint on the left
@@ -17,11 +16,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
17
16
  };
18
17
  /**
19
18
  * Color of the badge. Override the color with `--badge-bg-color` and `--badge-circle-color` if needed.
19
+ *
20
+ * You can use the `TJoyBadgeVariants` type.
20
21
  */
21
22
  variant: {
22
- type: PropType<TJoyBadgeVariants>;
23
+ type: PropType<import("../JoyDot/VJoyDot.types").TJoyDotVariants>;
23
24
  default: string;
24
25
  };
26
+ number: NumberConstructor;
25
27
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
26
28
  /**
27
29
  * Display the colored bulletpoint on the left
@@ -39,15 +41,18 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
39
41
  };
40
42
  /**
41
43
  * Color of the badge. Override the color with `--badge-bg-color` and `--badge-circle-color` if needed.
44
+ *
45
+ * You can use the `TJoyBadgeVariants` type.
42
46
  */
43
47
  variant: {
44
- type: PropType<TJoyBadgeVariants>;
48
+ type: PropType<import("../JoyDot/VJoyDot.types").TJoyDotVariants>;
45
49
  default: string;
46
50
  };
51
+ number: NumberConstructor;
47
52
  }>>, {
48
53
  label: string;
54
+ variant: import("../JoyDot/VJoyDot.types").TJoyDotVariants;
49
55
  bulletpoint: boolean;
50
- variant: TJoyBadgeVariants;
51
56
  }, {}>, Readonly<{
52
57
  /** Use the slot as an alternative to "label" property. */
53
58
  default(): any;
@@ -0,0 +1 @@
1
+ export type TJoyDotVariants = 'info' | 'gray' | 'green' | 'orange' | 'red' | 'teal' | 'pink' | 'dark-blue' | 'yellow';
@@ -0,0 +1,18 @@
1
+ import { PropType } from 'vue';
2
+ import { TJoyDotVariants } from './VJoyDot.types';
3
+ declare const _default: import("vue").DefineComponent<{
4
+ number: NumberConstructor;
5
+ variant: {
6
+ type: PropType<TJoyDotVariants>;
7
+ default: string;
8
+ };
9
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
10
+ number: NumberConstructor;
11
+ variant: {
12
+ type: PropType<TJoyDotVariants>;
13
+ default: string;
14
+ };
15
+ }>>, {
16
+ variant: TJoyDotVariants;
17
+ }, {}>;
18
+ export default _default;
@@ -0,0 +1,120 @@
1
+ declare const _default: <T extends {
2
+ name: string;
3
+ }>(__VLS_props: {
4
+ name: string;
5
+ multiple?: boolean | undefined;
6
+ modelValue: (File | T)[];
7
+ accept?: string[] | undefined;
8
+ deleteLabel?: string | undefined;
9
+ updateLabel?: string | undefined;
10
+ maxSize?: number | undefined;
11
+ errorTextFormat?: string | undefined;
12
+ errorTextMaxSize?: string | undefined;
13
+ errorTextFormatAndMaxSize?: string | undefined;
14
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
15
+ attrs: any;
16
+ slots: Readonly<{
17
+ /** Legend displayed at the bottom of the dropzone */
18
+ 'dropzone-legend'?: (() => any) | undefined;
19
+ /** Block description of the dropzone */
20
+ 'dropzone-description'?: (() => any) | undefined;
21
+ /** Add information under the file name */
22
+ 'file-information'?: (() => any) | undefined;
23
+ /** Add file actions next to the update button */
24
+ 'file-actions'?: (() => any) | undefined;
25
+ }> & {
26
+ /** Legend displayed at the bottom of the dropzone */
27
+ 'dropzone-legend'?: (() => any) | undefined;
28
+ /** Block description of the dropzone */
29
+ 'dropzone-description'?: (() => any) | undefined;
30
+ /** Add information under the file name */
31
+ 'file-information'?: (() => any) | undefined;
32
+ /** Add file actions next to the update button */
33
+ 'file-actions'?: (() => any) | undefined;
34
+ };
35
+ emit: any;
36
+ } | undefined, __VLS_expose?: ((exposed: import("vue").ShallowUnwrapRef<{
37
+ invalid: import("vue").ComputedRef<boolean>;
38
+ }>) => void) | undefined, __VLS_setup?: Promise<{
39
+ props: {
40
+ name: string;
41
+ multiple?: boolean | undefined;
42
+ modelValue: (File | T)[];
43
+ accept?: string[] | undefined;
44
+ deleteLabel?: string | undefined;
45
+ updateLabel?: string | undefined;
46
+ maxSize?: number | undefined;
47
+ errorTextFormat?: string | undefined;
48
+ errorTextMaxSize?: string | undefined;
49
+ errorTextFormatAndMaxSize?: string | undefined;
50
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
51
+ expose(exposed: import("vue").ShallowUnwrapRef<{
52
+ invalid: import("vue").ComputedRef<boolean>;
53
+ }>): void;
54
+ attrs: any;
55
+ slots: Readonly<{
56
+ /** Legend displayed at the bottom of the dropzone */
57
+ 'dropzone-legend'?: (() => any) | undefined;
58
+ /** Block description of the dropzone */
59
+ 'dropzone-description'?: (() => any) | undefined;
60
+ /** Add information under the file name */
61
+ 'file-information'?: (() => any) | undefined;
62
+ /** Add file actions next to the update button */
63
+ 'file-actions'?: (() => any) | undefined;
64
+ }> & {
65
+ /** Legend displayed at the bottom of the dropzone */
66
+ 'dropzone-legend'?: (() => any) | undefined;
67
+ /** Block description of the dropzone */
68
+ 'dropzone-description'?: (() => any) | undefined;
69
+ /** Add information under the file name */
70
+ 'file-information'?: (() => any) | undefined;
71
+ /** Add file actions next to the update button */
72
+ 'file-actions'?: (() => any) | undefined;
73
+ };
74
+ emit: any;
75
+ }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
76
+ [key: string]: any;
77
+ }> & {
78
+ __ctx?: {
79
+ props: {
80
+ name: string;
81
+ multiple?: boolean | undefined;
82
+ modelValue: (File | T)[];
83
+ accept?: string[] | undefined;
84
+ deleteLabel?: string | undefined;
85
+ updateLabel?: string | undefined;
86
+ maxSize?: number | undefined;
87
+ errorTextFormat?: string | undefined;
88
+ errorTextMaxSize?: string | undefined;
89
+ errorTextFormatAndMaxSize?: string | undefined;
90
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
91
+ expose(exposed: import("vue").ShallowUnwrapRef<{
92
+ invalid: import("vue").ComputedRef<boolean>;
93
+ }>): void;
94
+ attrs: any;
95
+ slots: Readonly<{
96
+ /** Legend displayed at the bottom of the dropzone */
97
+ 'dropzone-legend'?: (() => any) | undefined;
98
+ /** Block description of the dropzone */
99
+ 'dropzone-description'?: (() => any) | undefined;
100
+ /** Add information under the file name */
101
+ 'file-information'?: (() => any) | undefined;
102
+ /** Add file actions next to the update button */
103
+ 'file-actions'?: (() => any) | undefined;
104
+ }> & {
105
+ /** Legend displayed at the bottom of the dropzone */
106
+ 'dropzone-legend'?: (() => any) | undefined;
107
+ /** Block description of the dropzone */
108
+ 'dropzone-description'?: (() => any) | undefined;
109
+ /** Add information under the file name */
110
+ 'file-information'?: (() => any) | undefined;
111
+ /** Add file actions next to the update button */
112
+ 'file-actions'?: (() => any) | undefined;
113
+ };
114
+ emit: any;
115
+ } | undefined;
116
+ };
117
+ export default _default;
118
+ type __VLS_Prettify<T> = {
119
+ [K in keyof T]: T[K];
120
+ } & {};
@@ -0,0 +1,75 @@
1
+ declare const _default: <T extends {
2
+ name: string;
3
+ }>(__VLS_props: {
4
+ error?: string | undefined;
5
+ file: T | File;
6
+ onDelete?: ((...args: any[]) => any) | undefined;
7
+ onUpdate?: ((...args: any[]) => any) | undefined;
8
+ deleteLabel: string;
9
+ updateLabel: string;
10
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
11
+ attrs: any;
12
+ slots: Readonly<{
13
+ /** Information under the file name */
14
+ information?: (() => any) | undefined;
15
+ /** Extra file actions */
16
+ actions?: (() => any) | undefined;
17
+ }> & {
18
+ /** Information under the file name */
19
+ information?: (() => any) | undefined;
20
+ /** Extra file actions */
21
+ actions?: (() => any) | undefined;
22
+ };
23
+ emit: (event: "delete" | "update", ...args: any[]) => void;
24
+ } | undefined, __VLS_expose?: ((exposed: import('vue').ShallowUnwrapRef<{}>) => void) | undefined, __VLS_setup?: Promise<{
25
+ props: {
26
+ error?: string | undefined;
27
+ file: T | File;
28
+ onDelete?: ((...args: any[]) => any) | undefined;
29
+ onUpdate?: ((...args: any[]) => any) | undefined;
30
+ deleteLabel: string;
31
+ updateLabel: string;
32
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
33
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
34
+ attrs: any;
35
+ slots: Readonly<{
36
+ /** Information under the file name */
37
+ information?: (() => any) | undefined;
38
+ /** Extra file actions */
39
+ actions?: (() => any) | undefined;
40
+ }> & {
41
+ /** Information under the file name */
42
+ information?: (() => any) | undefined;
43
+ /** Extra file actions */
44
+ actions?: (() => any) | undefined;
45
+ };
46
+ emit: (event: "delete" | "update", ...args: any[]) => void;
47
+ }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
48
+ [key: string]: any;
49
+ }> & {
50
+ __ctx?: {
51
+ props: {
52
+ error?: string | undefined;
53
+ file: T | File;
54
+ onDelete?: ((...args: any[]) => any) | undefined;
55
+ onUpdate?: ((...args: any[]) => any) | undefined;
56
+ deleteLabel: string;
57
+ updateLabel: string;
58
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
59
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
60
+ attrs: any;
61
+ slots: Readonly<{
62
+ /** Information under the file name */
63
+ information?: (() => any) | undefined;
64
+ /** Extra file actions */
65
+ actions?: (() => any) | undefined;
66
+ }> & {
67
+ /** Information under the file name */
68
+ information?: (() => any) | undefined;
69
+ /** Extra file actions */
70
+ actions?: (() => any) | undefined;
71
+ };
72
+ emit: (event: "delete" | "update", ...args: any[]) => void;
73
+ } | undefined;
74
+ };
75
+ export default _default;
@@ -0,0 +1,13 @@
1
+ import { PropType } from 'vue';
2
+ declare const _default: import("vue").DefineComponent<{
3
+ name: {
4
+ type: PropType<import("@maltjoy/icons").JoyIconsId>;
5
+ required: true;
6
+ };
7
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
8
+ name: {
9
+ type: PropType<import("@maltjoy/icons").JoyIconsId>;
10
+ required: true;
11
+ };
12
+ }>>, {}, {}>;
13
+ export default _default;
@@ -27,9 +27,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
27
27
  type: (StringConstructor | NumberConstructor)[];
28
28
  required: false;
29
29
  };
30
- notification: {
31
- type: BooleanConstructor;
32
- required: false;
30
+ notifications: {
31
+ type: NumberConstructor;
33
32
  };
34
33
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
35
34
  changeTab: () => void;
@@ -62,15 +61,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
62
61
  type: (StringConstructor | NumberConstructor)[];
63
62
  required: false;
64
63
  };
65
- notification: {
66
- type: BooleanConstructor;
67
- required: false;
64
+ notifications: {
65
+ type: NumberConstructor;
68
66
  };
69
67
  }>> & {
70
68
  onChangeTab?: (() => any) | undefined;
71
69
  }, {
72
70
  selected: boolean;
73
- notification: boolean;
74
71
  }, {}>, {
75
72
  default?(_: {}): any;
76
73
  }>;
@@ -15,10 +15,12 @@ import { default as VJoyCounter } from './JoyCounter/VJoyCounter.vue';
15
15
  import { default as VJoyDialog } from './JoyDialog/VJoyDialog.vue';
16
16
  import { default as VJoyDialogTrigger } from './JoyDialogTrigger/VJoyDialogTrigger.vue';
17
17
  import { default as VJoyDividerCta } from './JoyDividerCta/VJoyDividerCta.vue';
18
+ import { default as VJoyDot } from './JoyDot/VJoyDot.vue';
18
19
  import { default as VJoyDrawer } from './JoyDrawer/VJoyDrawer.vue';
19
20
  import { default as VJoyDrawerTrigger } from './JoyDrawerTrigger/VJoyDrawerTrigger.vue';
20
21
  import { default as VJoyDropdown } from './JoyDropdown/VJoyDropdown.vue';
21
22
  import { default as VJoyDropdownList } from './JoyDropdownList/VJoyDropdownList.vue';
23
+ import { default as VJoyDropzone } from './JoyDropzone/VJoyDropzone.vue';
22
24
  import { default as VJoyFilterBar } from './JoyFilterBar/VJoyFilterBar.vue';
23
25
  import { default as VJoyFilterBarButton } from './JoyFilterBarButton/VJoyFilterBarButton.vue';
24
26
  import { default as VJoyFooter } from './JoyFooter/VJoyFooter.vue';
@@ -66,4 +68,4 @@ import { default as VJoyToggle } from './JoyToggle/VJoyToggle.vue';
66
68
  import { default as VJoyTooltip } from './JoyTooltip/VJoyTooltip.vue';
67
69
  import { default as VJoyUserCard } from './JoyUserCard/VJoyUserCard.vue';
68
70
  import { default as VJoyWrapper } from './JoyWrapper/VJoyWrapper.vue';
69
- export { VJoyAvailability, VJoyAvatar, VJoyAvatarsList, VJoyBadge, VJoyBadgeLevel, VJoyBlockSkeleton, VJoyBottomSheet, VJoyBottomSheetTrigger, VJoyButton, VJoyCheckbox, VJoyCollapse, VJoyCollapseItem, VJoyCompanyAvatar, VJoyCounter, VJoyDialog, VJoyDialogTrigger, VJoyDividerCta, VJoyDrawer, VJoyDrawerTrigger, VJoyDropdown, VJoyDropdownList, VJoyFilterBar, VJoyFilterBarButton, VJoyFooter, VJoyFormError, VJoyFormFieldSkeleton, VJoyFunnel, VJoyHeader, VJoyHighlight, VJoyIcon, VJoyIndicator, VJoyIndicators, VJoyInput, VJoyLabel, VJoyLink, VJoyMenu, VJoyMultiCheckbox, VJoyPagination, VJoyPanel, VJoyPanelSection, VJoyProductTour, VJoyProductTourTrigger, VJoyProgressBar, VJoyRadio, VJoyRadioGroup, VJoyRatingStars, VJoyScreenLoader, VJoySelect, VJoySelectableItem, VJoySelectableItemGroup, VJoySeparator, VJoySnackbar, VJoySpinner, VJoyStep, VJoyStepper, VJoyTab, VJoyTabs, VJoyTag, VJoyTagsInput, VJoyTagsList, VJoyTemplate, VJoyTemplateShape, VJoyText, VJoyTextarea, VJoyToggle, VJoyTooltip, VJoyUserCard, VJoyWrapper, };
71
+ export { VJoyAvailability, VJoyAvatar, VJoyAvatarsList, VJoyBadge, VJoyBadgeLevel, VJoyBlockSkeleton, VJoyBottomSheet, VJoyBottomSheetTrigger, VJoyButton, VJoyCheckbox, VJoyCollapse, VJoyCollapseItem, VJoyCompanyAvatar, VJoyCounter, VJoyDialog, VJoyDialogTrigger, VJoyDividerCta, VJoyDot, VJoyDrawer, VJoyDrawerTrigger, VJoyDropdown, VJoyDropdownList, VJoyDropzone, VJoyFilterBar, VJoyFilterBarButton, VJoyFooter, VJoyFormError, VJoyFormFieldSkeleton, VJoyFunnel, VJoyHeader, VJoyHighlight, VJoyIcon, VJoyIndicator, VJoyIndicators, VJoyInput, VJoyLabel, VJoyLink, VJoyMenu, VJoyMultiCheckbox, VJoyPagination, VJoyPanel, VJoyPanelSection, VJoyProductTour, VJoyProductTourTrigger, VJoyProgressBar, VJoyRadio, VJoyRadioGroup, VJoyRatingStars, VJoyScreenLoader, VJoySelect, VJoySelectableItem, VJoySelectableItemGroup, VJoySeparator, VJoySnackbar, VJoySpinner, VJoyStep, VJoyStepper, VJoyTab, VJoyTabs, VJoyTag, VJoyTagsInput, VJoyTagsList, VJoyTemplate, VJoyTemplateShape, VJoyText, VJoyTextarea, VJoyToggle, VJoyTooltip, VJoyUserCard, VJoyWrapper, };
@@ -1,9 +1,11 @@
1
1
  import type { App } from 'vue';
2
2
  import '../style.scss';
3
+ interface JoyVuePluginOptions {
4
+ env: 'client' | 'server';
5
+ autoRegisterComponents: boolean;
6
+ }
3
7
  export declare const JoyVuePlugin: {
4
- install: (app: App, options?: {
5
- env: 'client' | 'server';
6
- }) => void;
8
+ install: (app: App, options?: JoyVuePluginOptions) => void;
7
9
  };
8
10
  export * from './';
9
11
  export { createAllSnackbarsContainer, pushVJoySnackbar, resetCount } from './JoySnackbar';