@maltjoy/core-vue 3.27.1 → 3.27.2
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/README.md +1 -0
- package/dist/components/JoyAvailability/JoyAvailability.types.d.ts +2 -1
- package/dist/components/JoyAvailability/VJoyAvailability.vue.d.ts +3 -4
- package/dist/components/JoyAvatar/JoyAvatar.types.d.ts +6 -4
- package/dist/components/JoyAvatar/VJoyAvatar.vue.d.ts +3 -3
- package/dist/components/JoyAvatarsList/VJoyAvatarsList.vue.d.ts +4 -14
- package/dist/components/JoyBadge/JoyBadge.types.d.ts +2 -1
- package/dist/components/JoyBadge/VJoyBadge.vue.d.ts +8 -14
- package/dist/components/JoyBadgeLevel/VJoyBadgeLevel.vue.d.ts +4 -8
- package/dist/components/JoyBlockSkeleton/VJoyBlockSkeleton.vue.d.ts +0 -2
- package/dist/components/JoyBottomSheet/VJoyBottomSheet.vue.d.ts +7 -20
- package/dist/components/JoyBottomSheetTrigger/VJoyBottomSheetTrigger.vue.d.ts +6 -12
- package/dist/components/JoyButton/JoyButton.types.d.ts +20 -4
- package/dist/components/JoyButton/VJoyButton.vue.d.ts +13 -13
- package/dist/components/JoyCheckbox/VJoyCheckbox.vue.d.ts +3 -10
- package/dist/components/JoyCollapse/VJoyCollapse.vue.d.ts +4 -10
- package/dist/components/JoyCollapseItem/VJoyCollapseItem.vue.d.ts +4 -12
- package/dist/components/JoyCompanyAvatar/JoyCompanyAvatar.types.d.ts +3 -2
- package/dist/components/JoyCompanyAvatar/VJoyCompanyAvatar.vue.d.ts +0 -6
- package/dist/components/JoyCounter/VJoyCounter.vue.d.ts +6 -11
- package/dist/components/JoyDialog/JoyDialog.types.d.ts +3 -2
- package/dist/components/JoyDialog/VJoyDialog.vue.d.ts +8 -30
- package/dist/components/JoyDialogTrigger/VJoyDialogTrigger.vue.d.ts +20 -56
- package/dist/components/JoyDividerCta/VJoyDividerCta.vue.d.ts +3 -10
- package/dist/components/JoyDrawer/JoyDrawer.types.d.ts +2 -1
- package/dist/components/JoyDrawer/VJoyDrawer.vue.d.ts +12 -32
- package/dist/components/JoyDrawerTrigger/VJoyDrawerTrigger.vue.d.ts +30 -64
- package/dist/components/JoyDropdown/JoyDropdown.types.d.ts +4 -3
- package/dist/components/JoyDropdown/VJoyDropdown.vue.d.ts +22 -29
- package/dist/components/JoyDropdownList/JoyDropdownList.types.d.ts +3 -2
- package/dist/components/JoyDropdownList/VJoyDropdownList.vue.d.ts +21 -22
- package/dist/components/JoyFilterBar/VJoyFilterBar.vue.d.ts +2 -8
- package/dist/components/JoyFilterBarButton/VJoyFilterBarButton.vue.d.ts +2 -10
- package/dist/components/JoyFormError/VJoyFormError.vue.d.ts +2 -6
- package/dist/components/JoyFunnel/JoyFunnel.types.d.ts +4 -2
- package/dist/components/JoyFunnel/VJoyFunnel.vue.d.ts +1 -8
- package/dist/components/JoyHighlight/JoyHighlight.types.d.ts +4 -2
- package/dist/components/JoyHighlight/VJoyHighlight.vue.d.ts +9 -21
- package/dist/components/JoyIcon/JoyIcon.types.d.ts +4 -3
- package/dist/components/JoyIcon/VJoyIcon.vue.d.ts +6 -9
- package/dist/components/JoyIndicator/VJoyIndicator.vue.d.ts +3 -4
- package/dist/components/JoyIndicators/JoyIndicators.types.d.ts +2 -1
- package/dist/components/JoyIndicators/VJoyIndicators.vue.d.ts +6 -9
- package/dist/components/JoyInput/JoyInput.types.d.ts +3 -2
- package/dist/components/JoyInput/VJoyInput.vue.d.ts +7 -10
- package/dist/components/JoyLabel/JoyLabel.types.d.ts +3 -2
- package/dist/components/JoyLabel/VJoyLabel.vue.d.ts +7 -10
- package/dist/components/JoyLink/JoyLink.types.d.ts +2 -1
- package/dist/components/JoyLink/VJoyLink.vue.d.ts +7 -8
- package/dist/components/JoyMenu/VJoyMenu.vue.d.ts +10 -6
- package/dist/components/JoyMultiCheckbox/VJoyMultiCheckbox.vue.d.ts +19 -16
- package/dist/components/JoyPagination/VJoyPagination.vue.d.ts +6 -14
- package/dist/components/JoyPanel/JoyPanel.types.d.ts +5 -3
- package/dist/components/JoyPanel/VJoyPanel.vue.d.ts +14 -30
- package/dist/components/JoyProgressBar/JoyProgressBar.types.d.ts +3 -2
- package/dist/components/JoyProgressBar/VJoyProgressBar.vue.d.ts +3 -5
- package/dist/components/JoyRadio/JoyRadio.types.d.ts +2 -1
- package/dist/components/JoyRadio/VJoyRadio.vue.d.ts +7 -20
- package/dist/components/JoyRadioGroup/JoyRadioGroup.types.d.ts +2 -1
- package/dist/components/JoyRadioGroup/VJoyRadioGroup.vue.d.ts +6 -14
- package/dist/components/JoyRatingStars/JoyRatingStars.types.d.ts +3 -2
- package/dist/components/JoyRatingStars/VJoyRatingStars.vue.d.ts +2 -10
- package/dist/components/JoyScreenLoader/VJoyScreenLoader.types.d.ts +2 -1
- package/dist/components/JoyScreenLoader/VJoyScreenLoader.vue.d.ts +6 -14
- package/dist/components/JoySelect/JoySelect.types.d.ts +3 -2
- package/dist/components/JoySelect/VJoySelect.vue.d.ts +4 -9
- package/dist/components/JoySelectableItemGroup/VJoySelectableItemGroup.vue.d.ts +65 -10
- package/dist/components/JoySeparator/JoySeparator.types.d.ts +3 -2
- package/dist/components/JoySnackbar/JoySnackbar.types.d.ts +3 -2
- package/dist/components/JoySnackbar/VJoySnackbar.vue.d.ts +2 -6
- package/dist/components/JoySnackbar/index.d.ts +1 -1
- package/dist/components/JoySpinner/JoySpinner.types.d.ts +2 -1
- package/dist/components/JoySpinner/VJoySpinner.vue.d.ts +4 -2
- package/dist/components/JoyStep/VJoyStep.vue.d.ts +2 -14
- package/dist/components/JoyStepper/VJoyStepper.vue.d.ts +2 -10
- package/dist/components/JoyTabs/VJoyTabs.vue.d.ts +0 -2
- package/dist/components/JoyTag/JoyTag.types.d.ts +5 -3
- package/dist/components/JoyTag/VJoyTag.vue.d.ts +3 -13
- package/dist/components/JoyTagsInput/VJoyTagsInput.vue.d.ts +19 -34
- package/dist/components/JoyTagsList/JoyTagsList.types.d.ts +2 -1
- package/dist/components/JoyTagsList/VJoyTagsList.vue.d.ts +9 -9
- package/dist/components/JoyTemplate/JoyTemplate.types.d.ts +2 -1
- package/dist/components/JoyTemplate/VJoyTemplate.vue.d.ts +15 -67
- package/dist/components/JoyText/VJoyText.vue.d.ts +2 -6
- package/dist/components/JoyTextarea/VJoyTextarea.vue.d.ts +5 -6
- package/dist/components/JoyToggle/VJoyToggle.vue.d.ts +2 -6
- package/dist/components/JoyTooltip/JoyTooltip.types.d.ts +1 -0
- package/dist/components/JoyUserCard/VJoyUserCard.vue.d.ts +6 -20
- package/dist/components/JoyWrapper/JoyWrapper.types.d.ts +10 -5
- package/dist/components/JoyWrapper/VJoyWrapper.vue.d.ts +18 -19
- package/dist/components/main.d.ts +1 -1
- package/dist/helpers/index.d.ts +2 -2
- package/dist/joy-vue.js +2190 -2117
- package/dist/joy-vue.umd.cjs +4 -4
- package/dist/style.css +1 -1
- package/dist/types/index.d.ts +10 -7
- package/package.json +24 -20
|
@@ -7,7 +7,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7
7
|
type: PropType<TJoySnackbarLevels>;
|
|
8
8
|
default: string;
|
|
9
9
|
};
|
|
10
|
-
/** Allows to manually hide the component before its timeout */
|
|
11
10
|
closable: {
|
|
12
11
|
type: BooleanConstructor;
|
|
13
12
|
default: boolean;
|
|
@@ -33,7 +32,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
33
32
|
actionText: {
|
|
34
33
|
type: StringConstructor;
|
|
35
34
|
};
|
|
36
|
-
/** Documentation purpose */
|
|
37
35
|
frozen: {
|
|
38
36
|
type: BooleanConstructor;
|
|
39
37
|
default: boolean;
|
|
@@ -42,7 +40,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
42
40
|
bus: {
|
|
43
41
|
type: PropType<Emitter<TJoySnackbarEvents>>;
|
|
44
42
|
};
|
|
45
|
-
/**
|
|
43
|
+
/** @internal */
|
|
46
44
|
instanceNb: {
|
|
47
45
|
type: NumberConstructor;
|
|
48
46
|
};
|
|
@@ -56,7 +54,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
56
54
|
type: PropType<TJoySnackbarLevels>;
|
|
57
55
|
default: string;
|
|
58
56
|
};
|
|
59
|
-
/** Allows to manually hide the component before its timeout */
|
|
60
57
|
closable: {
|
|
61
58
|
type: BooleanConstructor;
|
|
62
59
|
default: boolean;
|
|
@@ -82,7 +79,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
82
79
|
actionText: {
|
|
83
80
|
type: StringConstructor;
|
|
84
81
|
};
|
|
85
|
-
/** Documentation purpose */
|
|
86
82
|
frozen: {
|
|
87
83
|
type: BooleanConstructor;
|
|
88
84
|
default: boolean;
|
|
@@ -91,7 +87,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
91
87
|
bus: {
|
|
92
88
|
type: PropType<Emitter<TJoySnackbarEvents>>;
|
|
93
89
|
};
|
|
94
|
-
/**
|
|
90
|
+
/** @internal */
|
|
95
91
|
instanceNb: {
|
|
96
92
|
type: NumberConstructor;
|
|
97
93
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from './VJoySnackbarService';
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare const SPINNER_COLORS: readonly ["teal", "white"];
|
|
2
|
+
export type TJoySpinnerColors = (typeof SPINNER_COLORS)[number];
|
|
@@ -2,11 +2,13 @@ import { PropType } from 'vue';
|
|
|
2
2
|
import { TJoySpinnerColors } from './JoySpinner.types';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<{
|
|
4
4
|
color: {
|
|
5
|
-
type: PropType<
|
|
5
|
+
type: PropType<"white" | "teal">;
|
|
6
|
+
validator(color: TJoySpinnerColors): boolean;
|
|
6
7
|
};
|
|
7
8
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
8
9
|
color: {
|
|
9
|
-
type: PropType<
|
|
10
|
+
type: PropType<"white" | "teal">;
|
|
11
|
+
validator(color: TJoySpinnerColors): boolean;
|
|
10
12
|
};
|
|
11
13
|
}>>, {}, {}>;
|
|
12
14
|
export default _default;
|
|
@@ -1,22 +1,18 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { TJoyStepSizes } from './TJoyStep.types';
|
|
3
3
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
4
|
-
/** Set it to completed to change it's color */
|
|
5
4
|
completed: {
|
|
6
5
|
type: BooleanConstructor;
|
|
7
6
|
default: boolean;
|
|
8
7
|
};
|
|
9
|
-
/** Progress substep of the current step */
|
|
10
8
|
currentSubStep: {
|
|
11
9
|
type: NumberConstructor;
|
|
12
10
|
default: number;
|
|
13
11
|
};
|
|
14
|
-
/** Adjust the text size, not the component size */
|
|
15
12
|
size: {
|
|
16
13
|
type: PropType<TJoyStepSizes>;
|
|
17
14
|
default: string;
|
|
18
15
|
};
|
|
19
|
-
/** Set the amount of sub steps of the current step */
|
|
20
16
|
subSteps: {
|
|
21
17
|
type: NumberConstructor;
|
|
22
18
|
default: number;
|
|
@@ -30,22 +26,18 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
30
26
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
31
27
|
"update:subSteps": () => void;
|
|
32
28
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
33
|
-
/** Set it to completed to change it's color */
|
|
34
29
|
completed: {
|
|
35
30
|
type: BooleanConstructor;
|
|
36
31
|
default: boolean;
|
|
37
32
|
};
|
|
38
|
-
/** Progress substep of the current step */
|
|
39
33
|
currentSubStep: {
|
|
40
34
|
type: NumberConstructor;
|
|
41
35
|
default: number;
|
|
42
36
|
};
|
|
43
|
-
/** Adjust the text size, not the component size */
|
|
44
37
|
size: {
|
|
45
38
|
type: PropType<TJoyStepSizes>;
|
|
46
39
|
default: string;
|
|
47
40
|
};
|
|
48
|
-
/** Set the amount of sub steps of the current step */
|
|
49
41
|
subSteps: {
|
|
50
42
|
type: NumberConstructor;
|
|
51
43
|
default: number;
|
|
@@ -62,12 +54,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
62
54
|
completed: boolean;
|
|
63
55
|
currentSubStep: number;
|
|
64
56
|
subSteps: number;
|
|
65
|
-
}, {}>,
|
|
66
|
-
|
|
67
|
-
default(): any;
|
|
68
|
-
}> & {
|
|
69
|
-
/** Label of the step. For text only */
|
|
70
|
-
default(): any;
|
|
57
|
+
}, {}>, {
|
|
58
|
+
default?(_: {}): any;
|
|
71
59
|
}>;
|
|
72
60
|
export default _default;
|
|
73
61
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
2
|
-
/** Current step value */
|
|
3
2
|
step: {
|
|
4
3
|
type: NumberConstructor;
|
|
5
4
|
required: true;
|
|
6
5
|
};
|
|
7
|
-
/** Each main step can have sub-steps to have more specific visual progress feedback */
|
|
8
6
|
subStep: {
|
|
9
7
|
type: NumberConstructor;
|
|
10
8
|
default: number;
|
|
@@ -144,20 +142,16 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
144
142
|
currentSubStep: number;
|
|
145
143
|
subSteps: number;
|
|
146
144
|
}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
147
|
-
$slots:
|
|
148
|
-
default(): any;
|
|
149
|
-
}> & {
|
|
150
|
-
default(): any;
|
|
145
|
+
$slots: {
|
|
146
|
+
default?(_: {}): any;
|
|
151
147
|
};
|
|
152
148
|
}))[]>;
|
|
153
149
|
invalidSubStepValue: import("vue").ComputedRef<boolean>;
|
|
154
150
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
155
|
-
/** Current step value */
|
|
156
151
|
step: {
|
|
157
152
|
type: NumberConstructor;
|
|
158
153
|
required: true;
|
|
159
154
|
};
|
|
160
|
-
/** Each main step can have sub-steps to have more specific visual progress feedback */
|
|
161
155
|
subStep: {
|
|
162
156
|
type: NumberConstructor;
|
|
163
157
|
default: number;
|
|
@@ -165,10 +159,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
165
159
|
}>>, {
|
|
166
160
|
subStep: number;
|
|
167
161
|
}, {}>, Readonly<{
|
|
168
|
-
/** Use it to inject all VJoyStep children */
|
|
169
162
|
default(): any;
|
|
170
163
|
}> & {
|
|
171
|
-
/** Use it to inject all VJoyStep children */
|
|
172
164
|
default(): any;
|
|
173
165
|
}>;
|
|
174
166
|
export default _default;
|
|
@@ -105,10 +105,8 @@ 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 */
|
|
109
108
|
default(): any;
|
|
110
109
|
}> & {
|
|
111
|
-
/** Use it to inject all your `VJoyTab` children */
|
|
112
110
|
default(): any;
|
|
113
111
|
}>;
|
|
114
112
|
export default _default;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SIZES } from '../../types';
|
|
2
2
|
import VJoyTag from './VJoyTag.vue';
|
|
3
|
-
export
|
|
4
|
-
export type
|
|
3
|
+
export declare const TAG_VARIANTS: readonly ["important", "inactive", "pending", "pricing", "special", "primary", "secondary", "ai-primary", "ai-secondary"];
|
|
4
|
+
export type TJoyTagVariants = (typeof TAG_VARIANTS)[number];
|
|
5
|
+
export type TJoyTagSizes = Exclude<(typeof SIZES)[number], 'xlarge' | 'xxsmall'>;
|
|
6
|
+
export declare const TAG_SIZES: TJoyTagSizes[];
|
|
5
7
|
export type VJoyTagProps = InstanceType<typeof VJoyTag>['$props'];
|
|
6
8
|
export interface IJoyTagSelected {
|
|
7
9
|
selected: boolean;
|
|
@@ -1,19 +1,13 @@
|
|
|
1
1
|
import type { TJoyTagVariants, TJoyTagSizes, IJoyTagSelected, IJoyTagRemoved } from './JoyTag.types';
|
|
2
2
|
interface Props {
|
|
3
|
-
/** Main text of the tag */
|
|
4
3
|
label?: string;
|
|
5
4
|
size?: TJoyTagSizes;
|
|
6
5
|
variant?: TJoyTagVariants;
|
|
7
|
-
/** Introduce an icon in case you need to sort your tags. **It does not create the actual "drag" mecanism** */
|
|
8
6
|
draggable?: boolean;
|
|
9
|
-
/** Add a cross icon on the right side */
|
|
10
7
|
removable?: boolean;
|
|
11
8
|
selected?: boolean;
|
|
12
|
-
/** Selectable state is only applied to 2 variants: primary and secondary */
|
|
13
9
|
selectable?: boolean;
|
|
14
|
-
/** Only for style purpose, not an actual link */
|
|
15
10
|
link?: boolean;
|
|
16
|
-
/** Value property is handy if you use the component with `VJoyTagsList` */
|
|
17
11
|
value?: string | number;
|
|
18
12
|
}
|
|
19
13
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
@@ -41,16 +35,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
41
35
|
}, {
|
|
42
36
|
link: boolean;
|
|
43
37
|
size: TJoyTagSizes;
|
|
44
|
-
variant:
|
|
38
|
+
variant: "primary" | "secondary" | "important" | "inactive" | "pending" | "pricing" | "special" | "ai-primary" | "ai-secondary";
|
|
45
39
|
value: string | number;
|
|
46
40
|
draggable: boolean;
|
|
47
41
|
removable: boolean;
|
|
48
|
-
}, {}>,
|
|
49
|
-
|
|
50
|
-
default(): any;
|
|
51
|
-
}> & {
|
|
52
|
-
/** Use it if you want to have 100% control on the tag content. */
|
|
53
|
-
default(): any;
|
|
42
|
+
}, {}>, {
|
|
43
|
+
default?(_: {}): any;
|
|
54
44
|
}>;
|
|
55
45
|
export default _default;
|
|
56
46
|
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 {
|
|
3
|
+
import type { 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?: "primary" | "secondary" | "important" | "inactive" | "pending" | "pricing" | "special" | "ai-primary" | "ai-secondary" | undefined;
|
|
8
8
|
invalid?: boolean | undefined;
|
|
9
9
|
modelValue?: T[] | undefined;
|
|
10
10
|
"onUpdate:modelValue"?: ((values: T[]) => any) | undefined;
|
|
@@ -15,16 +15,11 @@ 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
|
-
|
|
23
|
-
}> & {
|
|
24
|
-
/** Label of the component */
|
|
25
|
-
default?: (() => any) | undefined;
|
|
26
|
-
/** Customize the inner content of each VJoyTag */
|
|
27
|
-
tag?: (() => any) | undefined;
|
|
18
|
+
slots: {
|
|
19
|
+
default?(_: {}): any;
|
|
20
|
+
tag?(_: {
|
|
21
|
+
name: T;
|
|
22
|
+
}): any;
|
|
28
23
|
};
|
|
29
24
|
emit: {
|
|
30
25
|
(e: 'update:modelValue', values: T[]): void;
|
|
@@ -37,7 +32,7 @@ declare const _default: <T extends string>(__VLS_props: {
|
|
|
37
32
|
props: {
|
|
38
33
|
size?: TJoyTagSizes | undefined;
|
|
39
34
|
name?: string | undefined;
|
|
40
|
-
variant?:
|
|
35
|
+
variant?: "primary" | "secondary" | "important" | "inactive" | "pending" | "pricing" | "special" | "ai-primary" | "ai-secondary" | undefined;
|
|
41
36
|
invalid?: boolean | undefined;
|
|
42
37
|
modelValue?: T[] | undefined;
|
|
43
38
|
"onUpdate:modelValue"?: ((values: T[]) => any) | undefined;
|
|
@@ -52,16 +47,11 @@ declare const _default: <T extends string>(__VLS_props: {
|
|
|
52
47
|
hasDuplicates: () => boolean;
|
|
53
48
|
}>): void;
|
|
54
49
|
attrs: any;
|
|
55
|
-
slots:
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}> & {
|
|
61
|
-
/** Label of the component */
|
|
62
|
-
default?: (() => any) | undefined;
|
|
63
|
-
/** Customize the inner content of each VJoyTag */
|
|
64
|
-
tag?: (() => any) | undefined;
|
|
50
|
+
slots: {
|
|
51
|
+
default?(_: {}): any;
|
|
52
|
+
tag?(_: {
|
|
53
|
+
name: T;
|
|
54
|
+
}): any;
|
|
65
55
|
};
|
|
66
56
|
emit: {
|
|
67
57
|
(e: 'update:modelValue', values: T[]): void;
|
|
@@ -74,7 +64,7 @@ declare const _default: <T extends string>(__VLS_props: {
|
|
|
74
64
|
props: {
|
|
75
65
|
size?: TJoyTagSizes | undefined;
|
|
76
66
|
name?: string | undefined;
|
|
77
|
-
variant?:
|
|
67
|
+
variant?: "primary" | "secondary" | "important" | "inactive" | "pending" | "pricing" | "special" | "ai-primary" | "ai-secondary" | undefined;
|
|
78
68
|
invalid?: boolean | undefined;
|
|
79
69
|
modelValue?: T[] | undefined;
|
|
80
70
|
"onUpdate:modelValue"?: ((values: T[]) => any) | undefined;
|
|
@@ -89,16 +79,11 @@ declare const _default: <T extends string>(__VLS_props: {
|
|
|
89
79
|
hasDuplicates: () => boolean;
|
|
90
80
|
}>): void;
|
|
91
81
|
attrs: any;
|
|
92
|
-
slots:
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
}> & {
|
|
98
|
-
/** Label of the component */
|
|
99
|
-
default?: (() => any) | undefined;
|
|
100
|
-
/** Customize the inner content of each VJoyTag */
|
|
101
|
-
tag?: (() => any) | undefined;
|
|
82
|
+
slots: {
|
|
83
|
+
default?(_: {}): any;
|
|
84
|
+
tag?(_: {
|
|
85
|
+
name: T;
|
|
86
|
+
}): any;
|
|
102
87
|
};
|
|
103
88
|
emit: {
|
|
104
89
|
(e: 'update:modelValue', values: T[]): void;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IJoyTag } from '../JoyTag/JoyTag.types';
|
|
2
|
-
export
|
|
2
|
+
export declare const TAGS_LIST_ALIGN: readonly ["center", "left", "right"];
|
|
3
|
+
export type TJoyTagsListAlign = (typeof TAGS_LIST_ALIGN)[number];
|
|
3
4
|
export type TJoyTagsList = IJoyTag[];
|
|
4
5
|
export type TJoyTagsListModel = IJoyTag['value'][];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import { TJoyTagsListModel,
|
|
3
|
-
import { IJoyTagRemoved, IJoyTagSelected
|
|
2
|
+
import { TJoyTagsListModel, TJoyTagsList } from './JoyTagsList.types';
|
|
3
|
+
import { IJoyTagRemoved, IJoyTagSelected } from '../JoyTag/JoyTag.types';
|
|
4
4
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
5
5
|
align: {
|
|
6
|
-
type: PropType<
|
|
6
|
+
type: PropType<"left" | "right" | "center">;
|
|
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<"primary" | "secondary" | "important" | "inactive" | "pending" | "pricing" | "special" | "ai-primary" | "ai-secondary">;
|
|
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<"left" | "right" | "center">;
|
|
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<"primary" | "secondary" | "important" | "inactive" | "pending" | "pricing" | "special" | "ai-primary" | "ai-secondary">;
|
|
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: "primary" | "secondary" | "important" | "inactive" | "pending" | "pricing" | "special" | "ai-primary" | "ai-secondary";
|
|
68
|
+
align: "left" | "right" | "center";
|
|
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?: "primary" | "secondary" | "important" | "inactive" | "pending" | "pricing" | "special" | "ai-primary" | "ai-secondary" | undefined;
|
|
80
80
|
value?: string | number | undefined;
|
|
81
81
|
draggable?: boolean | undefined;
|
|
82
82
|
key?: string | number | symbol | undefined;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export declare const TEMPLATE_SIDEBAR: readonly ["left", "right"];
|
|
2
|
+
export type TJoyTemplateSidebarSide = (typeof TEMPLATE_SIDEBAR)[number];
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
import { PropType
|
|
2
|
-
import { TJoyScreenLoaderColors } from '../JoyScreenLoader/VJoyScreenLoader.types';
|
|
3
|
-
import { TJoyTemplateSidebarSide } from './JoyTemplate.types';
|
|
1
|
+
import { PropType } from 'vue';
|
|
4
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
5
|
-
/** Takes 100% of free space */
|
|
6
3
|
full: {
|
|
7
4
|
type: BooleanConstructor;
|
|
8
5
|
default: boolean;
|
|
9
6
|
};
|
|
10
7
|
sidebar: {
|
|
11
|
-
type: PropType<
|
|
8
|
+
type: PropType<"left" | "right">;
|
|
12
9
|
default: string;
|
|
13
10
|
};
|
|
14
11
|
loading: {
|
|
@@ -16,22 +13,20 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
16
13
|
default: boolean;
|
|
17
14
|
};
|
|
18
15
|
loadingColor: {
|
|
19
|
-
type: PropType<
|
|
16
|
+
type: PropType<"light" | "dark">;
|
|
20
17
|
default: string;
|
|
21
18
|
};
|
|
22
|
-
/** Decorative purpose, on bottom right corner */
|
|
23
19
|
shapes: {
|
|
24
20
|
type: BooleanConstructor;
|
|
25
21
|
default: boolean;
|
|
26
22
|
};
|
|
27
23
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
28
|
-
/** Takes 100% of free space */
|
|
29
24
|
full: {
|
|
30
25
|
type: BooleanConstructor;
|
|
31
26
|
default: boolean;
|
|
32
27
|
};
|
|
33
28
|
sidebar: {
|
|
34
|
-
type: PropType<
|
|
29
|
+
type: PropType<"left" | "right">;
|
|
35
30
|
default: string;
|
|
36
31
|
};
|
|
37
32
|
loading: {
|
|
@@ -39,74 +34,27 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
39
34
|
default: boolean;
|
|
40
35
|
};
|
|
41
36
|
loadingColor: {
|
|
42
|
-
type: PropType<
|
|
37
|
+
type: PropType<"light" | "dark">;
|
|
43
38
|
default: string;
|
|
44
39
|
};
|
|
45
|
-
/** Decorative purpose, on bottom right corner */
|
|
46
40
|
shapes: {
|
|
47
41
|
type: BooleanConstructor;
|
|
48
42
|
default: boolean;
|
|
49
43
|
};
|
|
50
44
|
}>>, {
|
|
51
45
|
loading: boolean;
|
|
52
|
-
loadingColor:
|
|
46
|
+
loadingColor: "light" | "dark";
|
|
53
47
|
full: boolean;
|
|
54
|
-
sidebar:
|
|
48
|
+
sidebar: "left" | "right";
|
|
55
49
|
shapes: boolean;
|
|
56
|
-
}, {}>,
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
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;
|
|
50
|
+
}, {}>, {
|
|
51
|
+
"template-back"?(_: {}): any;
|
|
52
|
+
"template-title"?(_: {}): any;
|
|
53
|
+
"template-subtitle"?(_: {}): any;
|
|
54
|
+
"template-actions"?(_: {}): any;
|
|
55
|
+
"template-main"?(_: {}): any;
|
|
56
|
+
"template-sidebar"?(_: {}): any;
|
|
57
|
+
"template-loader-content"?(_: {}): any;
|
|
110
58
|
}>;
|
|
111
59
|
export default _default;
|
|
112
60
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -25,12 +25,8 @@ 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
|
-
|
|
30
|
-
default(): any;
|
|
31
|
-
}> & {
|
|
32
|
-
/** Main content */
|
|
33
|
-
default(): any;
|
|
28
|
+
}, {}>, {
|
|
29
|
+
default?(_: {}): any;
|
|
34
30
|
}>;
|
|
35
31
|
export default _default;
|
|
36
32
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import { TJoyLabelSizes } from '../JoyLabel/JoyLabel.types';
|
|
3
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
4
3
|
autofocus: {
|
|
5
4
|
type: BooleanConstructor;
|
|
@@ -25,7 +24,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
25
24
|
};
|
|
26
25
|
label: StringConstructor;
|
|
27
26
|
labelSize: {
|
|
28
|
-
type: PropType<
|
|
27
|
+
type: PropType<"small" | "large" | "medium">;
|
|
29
28
|
default: string;
|
|
30
29
|
};
|
|
31
30
|
optionalLabel: StringConstructor;
|
|
@@ -96,7 +95,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
96
95
|
};
|
|
97
96
|
label: StringConstructor;
|
|
98
97
|
labelSize: {
|
|
99
|
-
type: PropType<
|
|
98
|
+
type: PropType<"small" | "large" | "medium">;
|
|
100
99
|
default: string;
|
|
101
100
|
};
|
|
102
101
|
optionalLabel: StringConstructor;
|
|
@@ -132,17 +131,17 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
132
131
|
invalid: boolean;
|
|
133
132
|
modelValue: string;
|
|
134
133
|
autofocus: boolean;
|
|
135
|
-
labelSize:
|
|
134
|
+
labelSize: "small" | "large" | "medium";
|
|
136
135
|
requiredMark: boolean;
|
|
137
136
|
modelModifiers: {
|
|
138
137
|
lazy: boolean;
|
|
139
138
|
};
|
|
140
139
|
autogrow: boolean;
|
|
141
140
|
}, {}>, Readonly<{
|
|
142
|
-
/** Default slot if you need to render a custom label. */
|
|
141
|
+
/** @slot Default slot if you need to render a custom label. */
|
|
143
142
|
default: () => any;
|
|
144
143
|
}> & {
|
|
145
|
-
/** Default slot if you need to render a custom label. */
|
|
144
|
+
/** @slot Default slot if you need to render a custom label. */
|
|
146
145
|
default: () => any;
|
|
147
146
|
}>;
|
|
148
147
|
export default _default;
|
|
@@ -64,12 +64,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
64
64
|
invalid: boolean;
|
|
65
65
|
value: string;
|
|
66
66
|
modelValue: boolean;
|
|
67
|
-
}, {}>,
|
|
68
|
-
|
|
69
|
-
default: () => any;
|
|
70
|
-
}> & {
|
|
71
|
-
/** Default slot if you need to render a custom label. */
|
|
72
|
-
default: () => any;
|
|
67
|
+
}, {}>, {
|
|
68
|
+
default?(_: {}): any;
|
|
73
69
|
}>;
|
|
74
70
|
export default _default;
|
|
75
71
|
type __VLS_WithTemplateSlots<T, S> = T & {
|