@maltjoy/core-vue 3.27.0 → 3.27.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.
- package/dist/components/JoyAvailability/JoyAvailability.types.d.ts +1 -2
- package/dist/components/JoyAvailability/VJoyAvailability.vue.d.ts +4 -3
- package/dist/components/JoyAvatar/JoyAvatar.types.d.ts +4 -6
- package/dist/components/JoyAvatar/VJoyAvatar.vue.d.ts +3 -3
- package/dist/components/JoyAvatarsList/VJoyAvatarsList.vue.d.ts +14 -4
- package/dist/components/JoyBadge/JoyBadge.types.d.ts +1 -2
- package/dist/components/JoyBadge/VJoyBadge.vue.d.ts +14 -8
- package/dist/components/JoyBadgeLevel/VJoyBadgeLevel.vue.d.ts +8 -4
- package/dist/components/JoyBlockSkeleton/VJoyBlockSkeleton.vue.d.ts +2 -0
- package/dist/components/JoyBottomSheet/VJoyBottomSheet.vue.d.ts +20 -7
- package/dist/components/JoyBottomSheetTrigger/VJoyBottomSheetTrigger.vue.d.ts +12 -6
- package/dist/components/JoyButton/JoyButton.types.d.ts +4 -20
- package/dist/components/JoyButton/VJoyButton.vue.d.ts +13 -13
- package/dist/components/JoyCheckbox/VJoyCheckbox.vue.d.ts +10 -3
- package/dist/components/JoyCollapse/VJoyCollapse.vue.d.ts +10 -4
- package/dist/components/JoyCollapseItem/VJoyCollapseItem.vue.d.ts +12 -4
- package/dist/components/JoyCompanyAvatar/JoyCompanyAvatar.types.d.ts +2 -3
- package/dist/components/JoyCompanyAvatar/VJoyCompanyAvatar.vue.d.ts +6 -0
- package/dist/components/JoyCounter/VJoyCounter.vue.d.ts +11 -6
- package/dist/components/JoyDialog/JoyDialog.types.d.ts +2 -3
- package/dist/components/JoyDialog/VJoyDialog.vue.d.ts +30 -8
- package/dist/components/JoyDialogTrigger/VJoyDialogTrigger.vue.d.ts +56 -20
- package/dist/components/JoyDividerCta/VJoyDividerCta.vue.d.ts +10 -3
- package/dist/components/JoyDrawer/JoyDrawer.types.d.ts +1 -2
- package/dist/components/JoyDrawer/VJoyDrawer.vue.d.ts +32 -12
- package/dist/components/JoyDrawerTrigger/VJoyDrawerTrigger.vue.d.ts +64 -30
- package/dist/components/JoyDropdown/JoyDropdown.types.d.ts +3 -4
- package/dist/components/JoyDropdown/VJoyDropdown.vue.d.ts +29 -22
- package/dist/components/JoyDropdownList/JoyDropdownList.types.d.ts +2 -3
- package/dist/components/JoyDropdownList/VJoyDropdownList.vue.d.ts +22 -21
- package/dist/components/JoyFilterBar/VJoyFilterBar.vue.d.ts +8 -2
- package/dist/components/JoyFilterBarButton/VJoyFilterBarButton.vue.d.ts +10 -2
- package/dist/components/JoyFormError/VJoyFormError.vue.d.ts +6 -2
- package/dist/components/JoyFunnel/JoyFunnel.types.d.ts +2 -4
- package/dist/components/JoyFunnel/VJoyFunnel.vue.d.ts +8 -0
- package/dist/components/JoyHighlight/JoyHighlight.types.d.ts +2 -4
- package/dist/components/JoyHighlight/VJoyHighlight.vue.d.ts +21 -9
- package/dist/components/JoyIcon/JoyIcon.types.d.ts +3 -4
- package/dist/components/JoyIcon/VJoyIcon.vue.d.ts +9 -6
- package/dist/components/JoyIndicator/VJoyIndicator.vue.d.ts +4 -3
- package/dist/components/JoyIndicators/JoyIndicators.types.d.ts +1 -2
- package/dist/components/JoyIndicators/VJoyIndicators.vue.d.ts +9 -6
- package/dist/components/JoyInput/JoyInput.types.d.ts +2 -3
- package/dist/components/JoyInput/VJoyInput.vue.d.ts +10 -7
- package/dist/components/JoyLabel/JoyLabel.types.d.ts +2 -3
- package/dist/components/JoyLabel/VJoyLabel.vue.d.ts +10 -7
- package/dist/components/JoyLink/JoyLink.types.d.ts +1 -2
- package/dist/components/JoyLink/VJoyLink.vue.d.ts +8 -7
- package/dist/components/JoyMenu/VJoyMenu.vue.d.ts +6 -10
- package/dist/components/JoyMultiCheckbox/VJoyMultiCheckbox.vue.d.ts +16 -19
- package/dist/components/JoyPagination/VJoyPagination.vue.d.ts +14 -6
- package/dist/components/JoyPanel/JoyPanel.types.d.ts +3 -5
- package/dist/components/JoyPanel/VJoyPanel.vue.d.ts +30 -14
- package/dist/components/JoyProgressBar/JoyProgressBar.types.d.ts +2 -3
- package/dist/components/JoyProgressBar/VJoyProgressBar.vue.d.ts +5 -3
- package/dist/components/JoyRadio/JoyRadio.types.d.ts +1 -2
- package/dist/components/JoyRadio/VJoyRadio.vue.d.ts +20 -7
- package/dist/components/JoyRadioGroup/JoyRadioGroup.types.d.ts +1 -2
- package/dist/components/JoyRadioGroup/VJoyRadioGroup.vue.d.ts +14 -6
- package/dist/components/JoyRatingStars/JoyRatingStars.types.d.ts +2 -3
- package/dist/components/JoyRatingStars/VJoyRatingStars.vue.d.ts +10 -2
- package/dist/components/JoyScreenLoader/VJoyScreenLoader.types.d.ts +1 -2
- package/dist/components/JoyScreenLoader/VJoyScreenLoader.vue.d.ts +14 -6
- package/dist/components/JoySelect/JoySelect.types.d.ts +2 -3
- package/dist/components/JoySelect/VJoySelect.vue.d.ts +9 -4
- package/dist/components/JoySelectableItemGroup/VJoySelectableItemGroup.vue.d.ts +10 -65
- package/dist/components/JoySeparator/JoySeparator.types.d.ts +2 -3
- package/dist/components/JoySnackbar/JoySnackbar.types.d.ts +2 -3
- package/dist/components/JoySnackbar/VJoySnackbar.vue.d.ts +6 -2
- package/dist/components/JoySnackbar/index.d.ts +1 -1
- package/dist/components/JoySpinner/JoySpinner.types.d.ts +1 -2
- package/dist/components/JoySpinner/VJoySpinner.vue.d.ts +2 -4
- package/dist/components/JoyStep/VJoyStep.vue.d.ts +14 -2
- package/dist/components/JoyStepper/VJoyStepper.vue.d.ts +10 -2
- package/dist/components/JoyTabs/VJoyTabs.vue.d.ts +2 -0
- package/dist/components/JoyTag/JoyTag.types.d.ts +3 -5
- package/dist/components/JoyTag/VJoyTag.vue.d.ts +13 -3
- package/dist/components/JoyTagsInput/VJoyTagsInput.vue.d.ts +34 -19
- package/dist/components/JoyTagsList/JoyTagsList.types.d.ts +1 -2
- package/dist/components/JoyTagsList/VJoyTagsList.vue.d.ts +9 -9
- package/dist/components/JoyTemplate/JoyTemplate.types.d.ts +1 -2
- package/dist/components/JoyTemplate/VJoyTemplate.vue.d.ts +67 -15
- package/dist/components/JoyText/VJoyText.vue.d.ts +6 -2
- package/dist/components/JoyTextarea/VJoyTextarea.vue.d.ts +6 -5
- package/dist/components/JoyToggle/VJoyToggle.vue.d.ts +6 -2
- package/dist/components/JoyTooltip/JoyTooltip.types.d.ts +0 -1
- package/dist/components/JoyUserCard/VJoyUserCard.vue.d.ts +20 -6
- package/dist/components/JoyWrapper/JoyWrapper.types.d.ts +5 -10
- package/dist/components/JoyWrapper/VJoyWrapper.vue.d.ts +19 -18
- package/dist/components/main.d.ts +1 -1
- package/dist/helpers/index.d.ts +2 -2
- package/dist/joy-vue.js +2086 -2152
- package/dist/joy-vue.umd.cjs +4 -4
- package/dist/style.css +1 -1
- package/dist/types/index.d.ts +7 -10
- package/package.json +20 -24
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
2
|
+
/** Current step value */
|
|
2
3
|
step: {
|
|
3
4
|
type: NumberConstructor;
|
|
4
5
|
required: true;
|
|
5
6
|
};
|
|
7
|
+
/** Each main step can have sub-steps to have more specific visual progress feedback */
|
|
6
8
|
subStep: {
|
|
7
9
|
type: NumberConstructor;
|
|
8
10
|
default: number;
|
|
@@ -142,16 +144,20 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
142
144
|
currentSubStep: number;
|
|
143
145
|
subSteps: number;
|
|
144
146
|
}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
145
|
-
$slots: {
|
|
146
|
-
default
|
|
147
|
+
$slots: Readonly<{
|
|
148
|
+
default(): any;
|
|
149
|
+
}> & {
|
|
150
|
+
default(): any;
|
|
147
151
|
};
|
|
148
152
|
}))[]>;
|
|
149
153
|
invalidSubStepValue: import("vue").ComputedRef<boolean>;
|
|
150
154
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
155
|
+
/** Current step value */
|
|
151
156
|
step: {
|
|
152
157
|
type: NumberConstructor;
|
|
153
158
|
required: true;
|
|
154
159
|
};
|
|
160
|
+
/** Each main step can have sub-steps to have more specific visual progress feedback */
|
|
155
161
|
subStep: {
|
|
156
162
|
type: NumberConstructor;
|
|
157
163
|
default: number;
|
|
@@ -159,8 +165,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
159
165
|
}>>, {
|
|
160
166
|
subStep: number;
|
|
161
167
|
}, {}>, Readonly<{
|
|
168
|
+
/** Use it to inject all VJoyStep children */
|
|
162
169
|
default(): any;
|
|
163
170
|
}> & {
|
|
171
|
+
/** Use it to inject all VJoyStep children */
|
|
164
172
|
default(): any;
|
|
165
173
|
}>;
|
|
166
174
|
export default _default;
|
|
@@ -105,8 +105,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
105
105
|
}>> & {
|
|
106
106
|
"onUpdate:selected-tab"?: ((value: string) => any) | undefined;
|
|
107
107
|
}, {}, {}>, Readonly<{
|
|
108
|
+
/** Use it to inject all your `VJoyTab` children */
|
|
108
109
|
default(): any;
|
|
109
110
|
}> & {
|
|
111
|
+
/** Use it to inject all your `VJoyTab` children */
|
|
110
112
|
default(): any;
|
|
111
113
|
}>;
|
|
112
114
|
export default _default;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TSizes } from '../../types';
|
|
2
2
|
import VJoyTag from './VJoyTag.vue';
|
|
3
|
-
export
|
|
4
|
-
export type
|
|
5
|
-
export type TJoyTagSizes = Exclude<(typeof SIZES)[number], 'xlarge' | 'xxsmall'>;
|
|
6
|
-
export declare const TAG_SIZES: TJoyTagSizes[];
|
|
3
|
+
export type TJoyTagVariants = 'important' | 'inactive' | 'pending' | 'pricing' | 'special' | 'primary' | 'secondary' | 'ai-primary' | 'ai-secondary';
|
|
4
|
+
export type TJoyTagSizes = Exclude<TSizes, 'xlarge' | 'xxsmall'>;
|
|
7
5
|
export type VJoyTagProps = InstanceType<typeof VJoyTag>['$props'];
|
|
8
6
|
export interface IJoyTagSelected {
|
|
9
7
|
selected: boolean;
|
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
import type { TJoyTagVariants, TJoyTagSizes, IJoyTagSelected, IJoyTagRemoved } from './JoyTag.types';
|
|
2
2
|
interface Props {
|
|
3
|
+
/** Main text of the tag */
|
|
3
4
|
label?: string;
|
|
4
5
|
size?: TJoyTagSizes;
|
|
5
6
|
variant?: TJoyTagVariants;
|
|
7
|
+
/** Introduce an icon in case you need to sort your tags. **It does not create the actual "drag" mecanism** */
|
|
6
8
|
draggable?: boolean;
|
|
9
|
+
/** Add a cross icon on the right side */
|
|
7
10
|
removable?: boolean;
|
|
8
11
|
selected?: boolean;
|
|
12
|
+
/** Selectable state is only applied to 2 variants: primary and secondary */
|
|
9
13
|
selectable?: boolean;
|
|
14
|
+
/** Only for style purpose, not an actual link */
|
|
10
15
|
link?: boolean;
|
|
16
|
+
/** Value property is handy if you use the component with `VJoyTagsList` */
|
|
11
17
|
value?: string | number;
|
|
12
18
|
}
|
|
13
19
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
@@ -35,12 +41,16 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
35
41
|
}, {
|
|
36
42
|
link: boolean;
|
|
37
43
|
size: TJoyTagSizes;
|
|
38
|
-
variant:
|
|
44
|
+
variant: TJoyTagVariants;
|
|
39
45
|
value: string | number;
|
|
40
46
|
draggable: boolean;
|
|
41
47
|
removable: boolean;
|
|
42
|
-
}, {}>, {
|
|
43
|
-
|
|
48
|
+
}, {}>, Readonly<{
|
|
49
|
+
/** Use it if you want to have 100% control on the tag content. */
|
|
50
|
+
default(): any;
|
|
51
|
+
}> & {
|
|
52
|
+
/** Use it if you want to have 100% control on the tag content. */
|
|
53
|
+
default(): any;
|
|
44
54
|
}>;
|
|
45
55
|
export default _default;
|
|
46
56
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { Ref } from 'vue';
|
|
2
2
|
import { TAGS_INPUT_ERRORS } from './JoyTagsInput.types';
|
|
3
|
-
import type { TJoyTagSizes } from '../JoyTag/JoyTag.types';
|
|
3
|
+
import type { TJoyTagVariants, TJoyTagSizes } from '../JoyTag/JoyTag.types';
|
|
4
4
|
declare const _default: <T extends string>(__VLS_props: {
|
|
5
5
|
size?: TJoyTagSizes | undefined;
|
|
6
6
|
name?: string | undefined;
|
|
7
|
-
variant?:
|
|
7
|
+
variant?: TJoyTagVariants | undefined;
|
|
8
8
|
invalid?: boolean | undefined;
|
|
9
9
|
modelValue?: T[] | undefined;
|
|
10
10
|
"onUpdate:modelValue"?: ((values: T[]) => any) | undefined;
|
|
@@ -15,11 +15,16 @@ declare const _default: <T extends string>(__VLS_props: {
|
|
|
15
15
|
invalidEmailError?: string | undefined;
|
|
16
16
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
|
|
17
17
|
attrs: any;
|
|
18
|
-
slots: {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
slots: Readonly<{
|
|
19
|
+
/** Label of the component */
|
|
20
|
+
default?: (() => any) | undefined;
|
|
21
|
+
/** Customize the inner content of each VJoyTag */
|
|
22
|
+
tag?: (() => any) | undefined;
|
|
23
|
+
}> & {
|
|
24
|
+
/** Label of the component */
|
|
25
|
+
default?: (() => any) | undefined;
|
|
26
|
+
/** Customize the inner content of each VJoyTag */
|
|
27
|
+
tag?: (() => any) | undefined;
|
|
23
28
|
};
|
|
24
29
|
emit: {
|
|
25
30
|
(e: 'update:modelValue', values: T[]): void;
|
|
@@ -32,7 +37,7 @@ declare const _default: <T extends string>(__VLS_props: {
|
|
|
32
37
|
props: {
|
|
33
38
|
size?: TJoyTagSizes | undefined;
|
|
34
39
|
name?: string | undefined;
|
|
35
|
-
variant?:
|
|
40
|
+
variant?: TJoyTagVariants | undefined;
|
|
36
41
|
invalid?: boolean | undefined;
|
|
37
42
|
modelValue?: T[] | undefined;
|
|
38
43
|
"onUpdate:modelValue"?: ((values: T[]) => any) | undefined;
|
|
@@ -47,11 +52,16 @@ declare const _default: <T extends string>(__VLS_props: {
|
|
|
47
52
|
hasDuplicates: () => boolean;
|
|
48
53
|
}>): void;
|
|
49
54
|
attrs: any;
|
|
50
|
-
slots: {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
+
slots: Readonly<{
|
|
56
|
+
/** Label of the component */
|
|
57
|
+
default?: (() => any) | undefined;
|
|
58
|
+
/** Customize the inner content of each VJoyTag */
|
|
59
|
+
tag?: (() => any) | undefined;
|
|
60
|
+
}> & {
|
|
61
|
+
/** Label of the component */
|
|
62
|
+
default?: (() => any) | undefined;
|
|
63
|
+
/** Customize the inner content of each VJoyTag */
|
|
64
|
+
tag?: (() => any) | undefined;
|
|
55
65
|
};
|
|
56
66
|
emit: {
|
|
57
67
|
(e: 'update:modelValue', values: T[]): void;
|
|
@@ -64,7 +74,7 @@ declare const _default: <T extends string>(__VLS_props: {
|
|
|
64
74
|
props: {
|
|
65
75
|
size?: TJoyTagSizes | undefined;
|
|
66
76
|
name?: string | undefined;
|
|
67
|
-
variant?:
|
|
77
|
+
variant?: TJoyTagVariants | undefined;
|
|
68
78
|
invalid?: boolean | undefined;
|
|
69
79
|
modelValue?: T[] | undefined;
|
|
70
80
|
"onUpdate:modelValue"?: ((values: T[]) => any) | undefined;
|
|
@@ -79,11 +89,16 @@ declare const _default: <T extends string>(__VLS_props: {
|
|
|
79
89
|
hasDuplicates: () => boolean;
|
|
80
90
|
}>): void;
|
|
81
91
|
attrs: any;
|
|
82
|
-
slots: {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
92
|
+
slots: Readonly<{
|
|
93
|
+
/** Label of the component */
|
|
94
|
+
default?: (() => any) | undefined;
|
|
95
|
+
/** Customize the inner content of each VJoyTag */
|
|
96
|
+
tag?: (() => any) | undefined;
|
|
97
|
+
}> & {
|
|
98
|
+
/** Label of the component */
|
|
99
|
+
default?: (() => any) | undefined;
|
|
100
|
+
/** Customize the inner content of each VJoyTag */
|
|
101
|
+
tag?: (() => any) | undefined;
|
|
87
102
|
};
|
|
88
103
|
emit: {
|
|
89
104
|
(e: 'update:modelValue', values: T[]): void;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { IJoyTag } from '../JoyTag/JoyTag.types';
|
|
2
|
-
export
|
|
3
|
-
export type TJoyTagsListAlign = (typeof TAGS_LIST_ALIGN)[number];
|
|
2
|
+
export type TJoyTagsListAlign = 'center' | 'left' | 'right';
|
|
4
3
|
export type TJoyTagsList = IJoyTag[];
|
|
5
4
|
export type TJoyTagsListModel = IJoyTag['value'][];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import { TJoyTagsListModel, TJoyTagsList } from './JoyTagsList.types';
|
|
3
|
-
import { IJoyTagRemoved, IJoyTagSelected } from '../JoyTag/JoyTag.types';
|
|
2
|
+
import { TJoyTagsListModel, TJoyTagsListAlign, TJoyTagsList } from './JoyTagsList.types';
|
|
3
|
+
import { IJoyTagRemoved, IJoyTagSelected, TJoyTagVariants } from '../JoyTag/JoyTag.types';
|
|
4
4
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
5
5
|
align: {
|
|
6
|
-
type: PropType<
|
|
6
|
+
type: PropType<TJoyTagsListAlign>;
|
|
7
7
|
default: string;
|
|
8
8
|
};
|
|
9
9
|
modelValue: {
|
|
@@ -26,7 +26,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
26
26
|
};
|
|
27
27
|
/** Apply variant for all VJoyTag. Can be overriden by setting a variant property in specific tags entry. */
|
|
28
28
|
variant: {
|
|
29
|
-
type: PropType<
|
|
29
|
+
type: PropType<TJoyTagVariants>;
|
|
30
30
|
default: string;
|
|
31
31
|
};
|
|
32
32
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -34,7 +34,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
34
34
|
removeTag: (tagValue: string | number | undefined) => void;
|
|
35
35
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
36
36
|
align: {
|
|
37
|
-
type: PropType<
|
|
37
|
+
type: PropType<TJoyTagsListAlign>;
|
|
38
38
|
default: string;
|
|
39
39
|
};
|
|
40
40
|
modelValue: {
|
|
@@ -57,15 +57,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
57
57
|
};
|
|
58
58
|
/** Apply variant for all VJoyTag. Can be overriden by setting a variant property in specific tags entry. */
|
|
59
59
|
variant: {
|
|
60
|
-
type: PropType<
|
|
60
|
+
type: PropType<TJoyTagVariants>;
|
|
61
61
|
default: string;
|
|
62
62
|
};
|
|
63
63
|
}>> & {
|
|
64
64
|
"onUpdate:modelValue"?: ((tags: TJoyTagsListModel) => any) | undefined;
|
|
65
65
|
onRemoveTag?: ((tagValue: string | number | undefined) => any) | undefined;
|
|
66
66
|
}, {
|
|
67
|
-
variant:
|
|
68
|
-
align:
|
|
67
|
+
variant: TJoyTagVariants;
|
|
68
|
+
align: TJoyTagsListAlign;
|
|
69
69
|
removable: boolean;
|
|
70
70
|
selectable: boolean;
|
|
71
71
|
tags: TJoyTagsList;
|
|
@@ -76,7 +76,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
76
76
|
removable: boolean;
|
|
77
77
|
link?: boolean | undefined;
|
|
78
78
|
size?: import("../JoyTag/JoyTag.types").TJoyTagSizes | undefined;
|
|
79
|
-
variant?:
|
|
79
|
+
variant?: TJoyTagVariants | undefined;
|
|
80
80
|
value?: string | number | undefined;
|
|
81
81
|
draggable?: boolean | undefined;
|
|
82
82
|
key?: string | number | symbol | undefined;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export type TJoyTemplateSidebarSide = (typeof TEMPLATE_SIDEBAR)[number];
|
|
1
|
+
export type TJoyTemplateSidebarSide = 'left' | 'right';
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import { PropType } from 'vue';
|
|
1
|
+
import { PropType, VNode } from 'vue';
|
|
2
|
+
import { TJoyScreenLoaderColors } from '../JoyScreenLoader/VJoyScreenLoader.types';
|
|
3
|
+
import { TJoyTemplateSidebarSide } from './JoyTemplate.types';
|
|
2
4
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
5
|
+
/** Takes 100% of free space */
|
|
3
6
|
full: {
|
|
4
7
|
type: BooleanConstructor;
|
|
5
8
|
default: boolean;
|
|
6
9
|
};
|
|
7
10
|
sidebar: {
|
|
8
|
-
type: PropType<
|
|
11
|
+
type: PropType<TJoyTemplateSidebarSide>;
|
|
9
12
|
default: string;
|
|
10
13
|
};
|
|
11
14
|
loading: {
|
|
@@ -13,20 +16,22 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
13
16
|
default: boolean;
|
|
14
17
|
};
|
|
15
18
|
loadingColor: {
|
|
16
|
-
type: PropType<
|
|
19
|
+
type: PropType<TJoyScreenLoaderColors>;
|
|
17
20
|
default: string;
|
|
18
21
|
};
|
|
22
|
+
/** Decorative purpose, on bottom right corner */
|
|
19
23
|
shapes: {
|
|
20
24
|
type: BooleanConstructor;
|
|
21
25
|
default: boolean;
|
|
22
26
|
};
|
|
23
27
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
28
|
+
/** Takes 100% of free space */
|
|
24
29
|
full: {
|
|
25
30
|
type: BooleanConstructor;
|
|
26
31
|
default: boolean;
|
|
27
32
|
};
|
|
28
33
|
sidebar: {
|
|
29
|
-
type: PropType<
|
|
34
|
+
type: PropType<TJoyTemplateSidebarSide>;
|
|
30
35
|
default: string;
|
|
31
36
|
};
|
|
32
37
|
loading: {
|
|
@@ -34,27 +39,74 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
34
39
|
default: boolean;
|
|
35
40
|
};
|
|
36
41
|
loadingColor: {
|
|
37
|
-
type: PropType<
|
|
42
|
+
type: PropType<TJoyScreenLoaderColors>;
|
|
38
43
|
default: string;
|
|
39
44
|
};
|
|
45
|
+
/** Decorative purpose, on bottom right corner */
|
|
40
46
|
shapes: {
|
|
41
47
|
type: BooleanConstructor;
|
|
42
48
|
default: boolean;
|
|
43
49
|
};
|
|
44
50
|
}>>, {
|
|
45
51
|
loading: boolean;
|
|
46
|
-
loadingColor:
|
|
52
|
+
loadingColor: TJoyScreenLoaderColors;
|
|
47
53
|
full: boolean;
|
|
48
|
-
sidebar:
|
|
54
|
+
sidebar: TJoyTemplateSidebarSide;
|
|
49
55
|
shapes: boolean;
|
|
50
|
-
}, {}>, {
|
|
51
|
-
"
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
}, {}>, Readonly<{
|
|
57
|
+
/** Slot to inject a "back" button left to the title */
|
|
58
|
+
'template-back': () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
59
|
+
[key: string]: any;
|
|
60
|
+
}>[];
|
|
61
|
+
/** Main title of the template */
|
|
62
|
+
'template-title': () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
63
|
+
[key: string]: any;
|
|
64
|
+
}>[];
|
|
65
|
+
/** Not mandatory, subtitle of the component */
|
|
66
|
+
'template-subtitle': () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
67
|
+
[key: string]: any;
|
|
68
|
+
}>[];
|
|
69
|
+
/** Top right corner, free slot (mostly for CTA) */
|
|
70
|
+
'template-actions': () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
71
|
+
[key: string]: any;
|
|
72
|
+
}>[];
|
|
73
|
+
/** Main content section */
|
|
74
|
+
'template-main': () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
75
|
+
[key: string]: any;
|
|
76
|
+
}>[];
|
|
77
|
+
/** Aside content section */
|
|
78
|
+
'template-sidebar': () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
79
|
+
[key: string]: any;
|
|
80
|
+
}>[];
|
|
81
|
+
/** Customize the loading state content */
|
|
82
|
+
'template-loader-content': () => any;
|
|
83
|
+
}> & {
|
|
84
|
+
/** Slot to inject a "back" button left to the title */
|
|
85
|
+
'template-back': () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
86
|
+
[key: string]: any;
|
|
87
|
+
}>[];
|
|
88
|
+
/** Main title of the template */
|
|
89
|
+
'template-title': () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
90
|
+
[key: string]: any;
|
|
91
|
+
}>[];
|
|
92
|
+
/** Not mandatory, subtitle of the component */
|
|
93
|
+
'template-subtitle': () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
94
|
+
[key: string]: any;
|
|
95
|
+
}>[];
|
|
96
|
+
/** Top right corner, free slot (mostly for CTA) */
|
|
97
|
+
'template-actions': () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
98
|
+
[key: string]: any;
|
|
99
|
+
}>[];
|
|
100
|
+
/** Main content section */
|
|
101
|
+
'template-main': () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
102
|
+
[key: string]: any;
|
|
103
|
+
}>[];
|
|
104
|
+
/** Aside content section */
|
|
105
|
+
'template-sidebar': () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
106
|
+
[key: string]: any;
|
|
107
|
+
}>[];
|
|
108
|
+
/** Customize the loading state content */
|
|
109
|
+
'template-loader-content': () => any;
|
|
58
110
|
}>;
|
|
59
111
|
export default _default;
|
|
60
112
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -25,8 +25,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
25
25
|
}>>, {
|
|
26
26
|
tagName: number | typeof Symbol.iterator | "length" | "concat" | "slice" | "indexOf" | "lastIndexOf" | "includes" | "at" | "toString" | "anchor" | "link" | "small" | "sub" | "sup" | "search" | "charAt" | "charCodeAt" | "localeCompare" | "match" | "replace" | "split" | "substring" | "toLowerCase" | "toLocaleLowerCase" | "toUpperCase" | "toLocaleUpperCase" | "trim" | "substr" | "codePointAt" | "endsWith" | "normalize" | "repeat" | "startsWith" | "big" | "blink" | "bold" | "fixed" | "fontcolor" | "fontsize" | "italics" | "strike" | "padStart" | "padEnd" | "trimEnd" | "trimStart" | "trimLeft" | "trimRight" | "matchAll" | "replaceAll" | "valueOf";
|
|
27
27
|
preset: TJoyTextFontPreset;
|
|
28
|
-
}, {}>, {
|
|
29
|
-
|
|
28
|
+
}, {}>, Readonly<{
|
|
29
|
+
/** Main content */
|
|
30
|
+
default(): any;
|
|
31
|
+
}> & {
|
|
32
|
+
/** Main content */
|
|
33
|
+
default(): any;
|
|
30
34
|
}>;
|
|
31
35
|
export default _default;
|
|
32
36
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
+
import { TJoyLabelSizes } from '../JoyLabel/JoyLabel.types';
|
|
2
3
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
3
4
|
autofocus: {
|
|
4
5
|
type: BooleanConstructor;
|
|
@@ -24,7 +25,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
24
25
|
};
|
|
25
26
|
label: StringConstructor;
|
|
26
27
|
labelSize: {
|
|
27
|
-
type: PropType<
|
|
28
|
+
type: PropType<TJoyLabelSizes>;
|
|
28
29
|
default: string;
|
|
29
30
|
};
|
|
30
31
|
optionalLabel: StringConstructor;
|
|
@@ -95,7 +96,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
95
96
|
};
|
|
96
97
|
label: StringConstructor;
|
|
97
98
|
labelSize: {
|
|
98
|
-
type: PropType<
|
|
99
|
+
type: PropType<TJoyLabelSizes>;
|
|
99
100
|
default: string;
|
|
100
101
|
};
|
|
101
102
|
optionalLabel: StringConstructor;
|
|
@@ -131,17 +132,17 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
131
132
|
invalid: boolean;
|
|
132
133
|
modelValue: string;
|
|
133
134
|
autofocus: boolean;
|
|
134
|
-
labelSize:
|
|
135
|
+
labelSize: TJoyLabelSizes;
|
|
135
136
|
requiredMark: boolean;
|
|
136
137
|
modelModifiers: {
|
|
137
138
|
lazy: boolean;
|
|
138
139
|
};
|
|
139
140
|
autogrow: boolean;
|
|
140
141
|
}, {}>, Readonly<{
|
|
141
|
-
/**
|
|
142
|
+
/** Default slot if you need to render a custom label. */
|
|
142
143
|
default: () => any;
|
|
143
144
|
}> & {
|
|
144
|
-
/**
|
|
145
|
+
/** Default slot if you need to render a custom label. */
|
|
145
146
|
default: () => any;
|
|
146
147
|
}>;
|
|
147
148
|
export default _default;
|
|
@@ -64,8 +64,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
64
64
|
invalid: boolean;
|
|
65
65
|
value: string;
|
|
66
66
|
modelValue: boolean;
|
|
67
|
-
}, {}>, {
|
|
68
|
-
|
|
67
|
+
}, {}>, Readonly<{
|
|
68
|
+
/** Default slot if you need to render a custom label. */
|
|
69
|
+
default: () => any;
|
|
70
|
+
}> & {
|
|
71
|
+
/** Default slot if you need to render a custom label. */
|
|
72
|
+
default: () => any;
|
|
69
73
|
}>;
|
|
70
74
|
export default _default;
|
|
71
75
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -17,6 +17,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
17
17
|
subTitle: {
|
|
18
18
|
type: StringConstructor;
|
|
19
19
|
};
|
|
20
|
+
/** Introduce a VJoyRatingStars component with given rating */
|
|
20
21
|
ratingValue: {
|
|
21
22
|
type: NumberConstructor;
|
|
22
23
|
};
|
|
@@ -39,15 +40,28 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
39
40
|
subTitle: {
|
|
40
41
|
type: StringConstructor;
|
|
41
42
|
};
|
|
43
|
+
/** Introduce a VJoyRatingStars component with given rating */
|
|
42
44
|
ratingValue: {
|
|
43
45
|
type: NumberConstructor;
|
|
44
46
|
};
|
|
45
|
-
}>>, {}, {}>, {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
47
|
+
}>>, {}, {}>, Readonly<{
|
|
48
|
+
default(): any;
|
|
49
|
+
/** Customize the VJoyAvatar component by using this slot */
|
|
50
|
+
'user-card-avatar': () => any;
|
|
51
|
+
/** User name, basically */
|
|
52
|
+
'user-card-title': () => any;
|
|
53
|
+
'user-card-subtitle': () => any;
|
|
54
|
+
/** Use your own customized VJoyRatingStars here, if needed */
|
|
55
|
+
'user-card-rating-stars': () => any;
|
|
56
|
+
}> & {
|
|
57
|
+
default(): any;
|
|
58
|
+
/** Customize the VJoyAvatar component by using this slot */
|
|
59
|
+
'user-card-avatar': () => any;
|
|
60
|
+
/** User name, basically */
|
|
61
|
+
'user-card-title': () => any;
|
|
62
|
+
'user-card-subtitle': () => any;
|
|
63
|
+
/** Use your own customized VJoyRatingStars here, if needed */
|
|
64
|
+
'user-card-rating-stars': () => any;
|
|
51
65
|
}>;
|
|
52
66
|
export default _default;
|
|
53
67
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
export
|
|
2
|
-
export type
|
|
3
|
-
export
|
|
4
|
-
export type
|
|
5
|
-
export
|
|
6
|
-
export type TJoyWrapperDirection = (typeof DIRECTION_WRAPPER)[number];
|
|
7
|
-
export declare const WRAP_WRAPPER: readonly ["nowrap", "wrap"];
|
|
8
|
-
export type TJoyWrapperWrap = (typeof WRAP_WRAPPER)[number];
|
|
9
|
-
export declare const GAP_WRAPPER: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"];
|
|
10
|
-
export type TJoyWrapperGap = (typeof GAP_WRAPPER)[number];
|
|
1
|
+
export type TJoyWrapperJustify = 'center' | 'space-between' | 'flex-start' | 'flex-end';
|
|
2
|
+
export type TJoyWrapperAlign = 'center' | 'flex-start' | 'flex-end' | 'stretch';
|
|
3
|
+
export type TJoyWrapperDirection = 'row' | 'column';
|
|
4
|
+
export type TJoyWrapperWrap = 'nowrap' | 'wrap';
|
|
5
|
+
export type TJoyWrapperGap = '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12';
|