@maltjoy/core-vue 3.27.2 → 3.28.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.
- 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 +20 -14
- 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 +14 -7
- 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 +18 -13
- package/dist/components/JoyDialog/JoyDialog.types.d.ts +2 -3
- package/dist/components/JoyDialog/VJoyDialog.vue.d.ts +31 -9
- package/dist/components/JoyDialogTrigger/VJoyDialogTrigger.vue.d.ts +72 -56
- 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 +33 -13
- package/dist/components/JoyDrawerTrigger/VJoyDrawerTrigger.vue.d.ts +68 -54
- package/dist/components/JoyDropdown/JoyDropdown.types.d.ts +3 -4
- package/dist/components/JoyDropdown/VJoyDropdown.vue.d.ts +31 -24
- package/dist/components/JoyDropdownList/JoyDropdownList.types.d.ts +2 -3
- package/dist/components/JoyDropdownList/VJoyDropdownList.vue.d.ts +24 -23
- 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 +13 -10
- 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/JoyProductTour/JoyProductTour.store.d.ts +550 -0
- package/dist/components/JoyProductTour/JoyProductTour.types.d.ts +32 -0
- package/dist/components/JoyProductTour/JoyProductTourSpotlight/VJoyProductTourSpotlight.vue.d.ts +2 -0
- package/dist/components/JoyProductTour/VJoyProductTour.vue.d.ts +22 -0
- package/dist/components/JoyProductTour/VJoyProductTourInner.vue.d.ts +55 -0
- package/dist/components/JoyProductTourTrigger/VJoyProductTourTrigger.vue.d.ts +310 -0
- package/dist/components/JoyProgressBar/JoyProgressBar.types.d.ts +2 -3
- package/dist/components/JoyProgressBar/VJoyProgressBar.vue.d.ts +6 -3
- package/dist/components/JoyRadio/JoyRadio.types.d.ts +1 -2
- package/dist/components/JoyRadio/VJoyRadio.vue.d.ts +21 -8
- 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 +11 -6
- package/dist/components/JoySelectableItem/VJoySelectableItem.vue.d.ts +4 -3
- package/dist/components/JoySelectableItemGroup/VJoySelectableItemGroup.vue.d.ts +11 -66
- 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 +17 -9
- 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 +24 -14
- package/dist/components/JoyTagsInput/VJoyTagsInput.vue.d.ts +52 -37
- 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 +9 -5
- package/dist/components/JoyTextarea/VJoyTextarea.vue.d.ts +7 -6
- package/dist/components/JoyToggle/VJoyToggle.vue.d.ts +8 -4
- package/dist/components/JoyTooltip/JoyTooltip.types.d.ts +0 -1
- package/dist/components/JoyTooltip/VJoyTooltip.vue.d.ts +97 -0
- 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/index.d.ts +3 -1
- package/dist/components/main.d.ts +1 -1
- package/dist/helpers/index.d.ts +2 -2
- package/dist/joy-vue.js +4972 -4387
- package/dist/joy-vue.umd.cjs +12 -4
- package/dist/style.css +1 -1
- package/dist/types/index.d.ts +7 -10
- package/joy-components.d.ts +2 -0
- package/package.json +22 -27
|
@@ -9,13 +9,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
9
9
|
type: BooleanConstructor;
|
|
10
10
|
default: boolean;
|
|
11
11
|
};
|
|
12
|
+
/** Based on maltjoy/icons availabilities. Works in pair with displayIcon boolean prop. */
|
|
12
13
|
icon: {
|
|
13
14
|
type: PropType<import("@maltjoy/icons").JoyIconsId>;
|
|
14
15
|
};
|
|
16
|
+
/** import `TJoyHighlightLevels` */
|
|
15
17
|
level: {
|
|
16
|
-
type: PropType<"
|
|
18
|
+
type: PropType<import("../../types/index.js").TLevels>;
|
|
17
19
|
default: string;
|
|
18
|
-
validator(level: "neutral" | "success" | "info" | "warning" | "error"): boolean;
|
|
19
20
|
};
|
|
20
21
|
/** Please note that 'default' variant has no effect. This property is meant to completely override "level" prop style */
|
|
21
22
|
variant: {
|
|
@@ -33,13 +34,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
33
34
|
type: BooleanConstructor;
|
|
34
35
|
default: boolean;
|
|
35
36
|
};
|
|
37
|
+
/** Based on maltjoy/icons availabilities. Works in pair with displayIcon boolean prop. */
|
|
36
38
|
icon: {
|
|
37
39
|
type: PropType<import("@maltjoy/icons").JoyIconsId>;
|
|
38
40
|
};
|
|
41
|
+
/** import `TJoyHighlightLevels` */
|
|
39
42
|
level: {
|
|
40
|
-
type: PropType<"
|
|
43
|
+
type: PropType<import("../../types/index.js").TLevels>;
|
|
41
44
|
default: string;
|
|
42
|
-
validator(level: "neutral" | "success" | "info" | "warning" | "error"): boolean;
|
|
43
45
|
};
|
|
44
46
|
/** Please note that 'default' variant has no effect. This property is meant to completely override "level" prop style */
|
|
45
47
|
variant: {
|
|
@@ -48,13 +50,23 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
48
50
|
};
|
|
49
51
|
}>>, {
|
|
50
52
|
variant: TJoyHighlightVariants;
|
|
51
|
-
level: "
|
|
53
|
+
level: import("../../types/index.js").TLevels;
|
|
52
54
|
accent: boolean;
|
|
53
55
|
displayIcon: boolean;
|
|
54
|
-
}, {}>, {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
default
|
|
56
|
+
}, {}>, Readonly<{
|
|
57
|
+
/** Main content of the highlight */
|
|
58
|
+
default(): any;
|
|
59
|
+
/** Use it if you want to customize the default icon associated with the highlight. You can inject whatever you want here */
|
|
60
|
+
'highlight-decorator': () => any;
|
|
61
|
+
/** Not mandatory, renders a bold title above the main content */
|
|
62
|
+
'highlight-title': () => any;
|
|
63
|
+
}> & {
|
|
64
|
+
/** Main content of the highlight */
|
|
65
|
+
default(): any;
|
|
66
|
+
/** Use it if you want to customize the default icon associated with the highlight. You can inject whatever you want here */
|
|
67
|
+
'highlight-decorator': () => any;
|
|
68
|
+
/** Not mandatory, renders a bold title above the main content */
|
|
69
|
+
'highlight-title': () => any;
|
|
58
70
|
}>;
|
|
59
71
|
export default _default;
|
|
60
72
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { JoyIconsId } from '@maltjoy/icons';
|
|
2
|
-
|
|
3
|
-
export type TJoyIconsColors =
|
|
4
|
-
export
|
|
5
|
-
export type TJoyIconSizes = (typeof JOY_ICONS_SIZES)[number];
|
|
2
|
+
import { TSizes, TLevels } from '../../types';
|
|
3
|
+
export type TJoyIconsColors = TLevels | 'primary' | 'secondary' | 'tertiary' | 'quaternary' | 'brand-primary' | 'brand-secondary' | 'white';
|
|
4
|
+
export type TJoyIconSizes = TSizes;
|
|
6
5
|
export type TJoyIconsNames = JoyIconsId;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
+
import { TJoyIconsColors } from './JoyIcon.types';
|
|
2
3
|
declare const _default: import("vue").DefineComponent<{
|
|
3
4
|
ariaLabel: {
|
|
4
5
|
type: StringConstructor;
|
|
@@ -18,11 +19,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
18
19
|
required: true;
|
|
19
20
|
};
|
|
20
21
|
color: {
|
|
21
|
-
type: PropType<
|
|
22
|
+
type: PropType<TJoyIconsColors>;
|
|
22
23
|
default: string;
|
|
23
24
|
};
|
|
25
|
+
/** Use `TJoyIconSizes` */
|
|
24
26
|
size: {
|
|
25
|
-
type: PropType<"
|
|
27
|
+
type: PropType<import("../../types").TSizes>;
|
|
26
28
|
default: string;
|
|
27
29
|
};
|
|
28
30
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -44,16 +46,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
44
46
|
required: true;
|
|
45
47
|
};
|
|
46
48
|
color: {
|
|
47
|
-
type: PropType<
|
|
49
|
+
type: PropType<TJoyIconsColors>;
|
|
48
50
|
default: string;
|
|
49
51
|
};
|
|
52
|
+
/** Use `TJoyIconSizes` */
|
|
50
53
|
size: {
|
|
51
|
-
type: PropType<"
|
|
54
|
+
type: PropType<import("../../types").TSizes>;
|
|
52
55
|
default: string;
|
|
53
56
|
};
|
|
54
57
|
}>>, {
|
|
55
|
-
size: "
|
|
56
|
-
color:
|
|
58
|
+
size: import("../../types").TSizes;
|
|
59
|
+
color: TJoyIconsColors;
|
|
57
60
|
tabIndex: number;
|
|
58
61
|
}, {}>;
|
|
59
62
|
export default _default;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
+
import { TJoyIndicatorsVariants } from '../JoyIndicators/JoyIndicators.types';
|
|
2
3
|
declare const _default: import("vue").DefineComponent<{
|
|
3
4
|
/** Value is used for the parent v-model. Mandatory */
|
|
4
5
|
value: {
|
|
@@ -11,7 +12,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
11
12
|
default: boolean;
|
|
12
13
|
};
|
|
13
14
|
variant: {
|
|
14
|
-
type: PropType<
|
|
15
|
+
type: PropType<TJoyIndicatorsVariants>;
|
|
15
16
|
default: string;
|
|
16
17
|
};
|
|
17
18
|
/** Indicators are text-less buttons by design. To make the more accessible, you can pass them an aria-label that will describe more their action. */
|
|
@@ -30,7 +31,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
30
31
|
default: boolean;
|
|
31
32
|
};
|
|
32
33
|
variant: {
|
|
33
|
-
type: PropType<
|
|
34
|
+
type: PropType<TJoyIndicatorsVariants>;
|
|
34
35
|
default: string;
|
|
35
36
|
};
|
|
36
37
|
/** Indicators are text-less buttons by design. To make the more accessible, you can pass them an aria-label that will describe more their action. */
|
|
@@ -38,7 +39,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
38
39
|
type: StringConstructor;
|
|
39
40
|
};
|
|
40
41
|
}>>, {
|
|
41
|
-
variant:
|
|
42
|
+
variant: TJoyIndicatorsVariants;
|
|
42
43
|
selected: boolean;
|
|
43
44
|
}, {}>;
|
|
44
45
|
export default _default;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export type TJoyIndicatorsVariants = (typeof JOY_INDICATORS_VARIANT)[number];
|
|
1
|
+
export type TJoyIndicatorsVariants = 'default' | 'light';
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import
|
|
2
|
+
import VJoyIndicator from '../JoyIndicator/VJoyIndicator.vue';
|
|
3
|
+
import { TJoyIndicatorsVariants } from './JoyIndicators.types';
|
|
3
4
|
declare function isSelected(indicator: typeof VJoyIndicator): boolean;
|
|
4
5
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
5
6
|
variant: {
|
|
6
|
-
type: PropType<
|
|
7
|
+
type: PropType<TJoyIndicatorsVariants>;
|
|
7
8
|
};
|
|
8
9
|
/** Use the component with a v-model to easily handle selected items */
|
|
9
10
|
modelValue: {
|
|
@@ -20,7 +21,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
20
21
|
default: boolean;
|
|
21
22
|
};
|
|
22
23
|
variant: {
|
|
23
|
-
type: PropType<
|
|
24
|
+
type: PropType<TJoyIndicatorsVariants>;
|
|
24
25
|
default: string;
|
|
25
26
|
};
|
|
26
27
|
ariaLabel: {
|
|
@@ -36,14 +37,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
36
37
|
default: boolean;
|
|
37
38
|
};
|
|
38
39
|
variant: {
|
|
39
|
-
type: PropType<
|
|
40
|
+
type: PropType<TJoyIndicatorsVariants>;
|
|
40
41
|
default: string;
|
|
41
42
|
};
|
|
42
43
|
ariaLabel: {
|
|
43
44
|
type: StringConstructor;
|
|
44
45
|
};
|
|
45
46
|
}>>, {
|
|
46
|
-
variant:
|
|
47
|
+
variant: TJoyIndicatorsVariants;
|
|
47
48
|
selected: boolean;
|
|
48
49
|
}, {}>[]>;
|
|
49
50
|
isSelected: typeof isSelected;
|
|
@@ -51,7 +52,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
51
52
|
"update:modelValue": (value: string | number) => void;
|
|
52
53
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
53
54
|
variant: {
|
|
54
|
-
type: PropType<
|
|
55
|
+
type: PropType<TJoyIndicatorsVariants>;
|
|
55
56
|
};
|
|
56
57
|
/** Use the component with a v-model to easily handle selected items */
|
|
57
58
|
modelValue: {
|
|
@@ -60,8 +61,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
60
61
|
}>> & {
|
|
61
62
|
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
62
63
|
}, {}, {}>, Readonly<{
|
|
64
|
+
/** Use VJoyIndicator children here */
|
|
63
65
|
default(): any;
|
|
64
66
|
}> & {
|
|
67
|
+
/** Use VJoyIndicator children here */
|
|
65
68
|
default(): any;
|
|
66
69
|
}>;
|
|
67
70
|
export default _default;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type TJoyInputSizes = Extract<
|
|
3
|
-
export declare const INPUT_SIZES: TJoyInputSizes[];
|
|
1
|
+
import { TSizes } from '../../types';
|
|
2
|
+
export type TJoyInputSizes = Extract<TSizes, 'small' | 'medium' | 'large'>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { TJoyInputSizes } from './JoyInput.types';
|
|
3
|
+
import { TJoyLabelSizes } from '../JoyLabel/JoyLabel.types';
|
|
3
4
|
declare function focus(): void;
|
|
4
5
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
5
6
|
autofocus: {
|
|
@@ -32,7 +33,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
32
33
|
label: StringConstructor;
|
|
33
34
|
/** Overrides the default label size. See JoyLabel stories */
|
|
34
35
|
labelSize: {
|
|
35
|
-
type: PropType<
|
|
36
|
+
type: PropType<TJoyLabelSizes>;
|
|
36
37
|
default: string;
|
|
37
38
|
};
|
|
38
39
|
/** If your component is not required, we can add a label to explicitely tell that it's not mandatory */
|
|
@@ -59,7 +60,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
59
60
|
size: {
|
|
60
61
|
type: PropType<TJoyInputSizes>;
|
|
61
62
|
default: string;
|
|
62
|
-
validator(size: TJoyInputSizes): boolean;
|
|
63
63
|
};
|
|
64
64
|
type: {
|
|
65
65
|
type: StringConstructor;
|
|
@@ -107,7 +107,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
107
107
|
label: StringConstructor;
|
|
108
108
|
/** Overrides the default label size. See JoyLabel stories */
|
|
109
109
|
labelSize: {
|
|
110
|
-
type: PropType<
|
|
110
|
+
type: PropType<TJoyLabelSizes>;
|
|
111
111
|
default: string;
|
|
112
112
|
};
|
|
113
113
|
/** If your component is not required, we can add a label to explicitely tell that it's not mandatory */
|
|
@@ -134,7 +134,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
134
134
|
size: {
|
|
135
135
|
type: PropType<TJoyInputSizes>;
|
|
136
136
|
default: string;
|
|
137
|
-
validator(size: TJoyInputSizes): boolean;
|
|
138
137
|
};
|
|
139
138
|
type: {
|
|
140
139
|
type: StringConstructor;
|
|
@@ -151,20 +150,24 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
151
150
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
152
151
|
}, {
|
|
153
152
|
type: string;
|
|
154
|
-
|
|
155
|
-
required: boolean;
|
|
153
|
+
readonly: boolean;
|
|
156
154
|
disabled: boolean;
|
|
155
|
+
required: boolean;
|
|
156
|
+
size: TJoyInputSizes;
|
|
157
157
|
invalid: boolean;
|
|
158
158
|
autofocus: boolean;
|
|
159
|
-
labelSize:
|
|
159
|
+
labelSize: TJoyLabelSizes;
|
|
160
160
|
requiredMark: boolean;
|
|
161
161
|
modelModifiers: {
|
|
162
162
|
lazy: boolean;
|
|
163
163
|
};
|
|
164
164
|
clearable: boolean;
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
default
|
|
165
|
+
}, {}>, Readonly<{
|
|
166
|
+
/** Default slot to display a label on top of the element. You can use label property as well */
|
|
167
|
+
default?: (() => any) | undefined;
|
|
168
|
+
}> & {
|
|
169
|
+
/** Default slot to display a label on top of the element. You can use label property as well */
|
|
170
|
+
default?: (() => any) | undefined;
|
|
168
171
|
}>;
|
|
169
172
|
export default _default;
|
|
170
173
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
export type TJoyLabelSizes = (typeof LABEL_SIZES)[number];
|
|
1
|
+
import { TSizes } from '@/types';
|
|
2
|
+
export type TJoyLabelSizes = Extract<TSizes, 'small' | 'medium' | 'large'>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
+
import { TJoyLabelSizes } from './JoyLabel.types';
|
|
2
3
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
3
4
|
size: {
|
|
4
|
-
type: PropType<
|
|
5
|
+
type: PropType<TJoyLabelSizes>;
|
|
5
6
|
default: string;
|
|
6
|
-
validator(size: "small" | "large" | "medium"): boolean;
|
|
7
7
|
};
|
|
8
8
|
tagName: {
|
|
9
9
|
type: PropType<"label" | "legend">;
|
|
@@ -19,9 +19,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
19
19
|
text: StringConstructor;
|
|
20
20
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
21
21
|
size: {
|
|
22
|
-
type: PropType<
|
|
22
|
+
type: PropType<TJoyLabelSizes>;
|
|
23
23
|
default: string;
|
|
24
|
-
validator(size: "small" | "large" | "medium"): boolean;
|
|
25
24
|
};
|
|
26
25
|
tagName: {
|
|
27
26
|
type: PropType<"label" | "legend">;
|
|
@@ -36,11 +35,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
36
35
|
};
|
|
37
36
|
text: StringConstructor;
|
|
38
37
|
}>>, {
|
|
39
|
-
size: "small" | "large" | "medium";
|
|
40
38
|
required: boolean;
|
|
39
|
+
size: TJoyLabelSizes;
|
|
41
40
|
tagName: "label" | "legend";
|
|
42
|
-
}, {}>, {
|
|
43
|
-
|
|
41
|
+
}, {}>, Readonly<{
|
|
42
|
+
/** Label text here */
|
|
43
|
+
default: () => any;
|
|
44
|
+
}> & {
|
|
45
|
+
/** Label text here */
|
|
46
|
+
default: () => any;
|
|
44
47
|
}>;
|
|
45
48
|
export default _default;
|
|
46
49
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export type LinkColors = (typeof LINK_COLORS)[number];
|
|
1
|
+
export type TJoyLinkColors = 'teal' | 'white';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
+
import { TJoyLinkColors } from './JoyLink.types';
|
|
2
3
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
3
4
|
href: {
|
|
4
5
|
type: StringConstructor;
|
|
5
6
|
required: true;
|
|
6
7
|
};
|
|
7
8
|
color: {
|
|
8
|
-
type: PropType<
|
|
9
|
+
type: PropType<TJoyLinkColors>;
|
|
9
10
|
default: string;
|
|
10
|
-
validator(color: "white" | "teal"): boolean;
|
|
11
11
|
};
|
|
12
12
|
icon: PropType<import("@maltjoy/icons").JoyIconsId>;
|
|
13
13
|
text: PropType<string | null>;
|
|
@@ -17,16 +17,17 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
17
17
|
required: true;
|
|
18
18
|
};
|
|
19
19
|
color: {
|
|
20
|
-
type: PropType<
|
|
20
|
+
type: PropType<TJoyLinkColors>;
|
|
21
21
|
default: string;
|
|
22
|
-
validator(color: "white" | "teal"): boolean;
|
|
23
22
|
};
|
|
24
23
|
icon: PropType<import("@maltjoy/icons").JoyIconsId>;
|
|
25
24
|
text: PropType<string | null>;
|
|
26
25
|
}>>, {
|
|
27
|
-
color:
|
|
28
|
-
}, {}>, {
|
|
29
|
-
default
|
|
26
|
+
color: TJoyLinkColors;
|
|
27
|
+
}, {}>, Readonly<{
|
|
28
|
+
default(): any;
|
|
29
|
+
}> & {
|
|
30
|
+
default(): any;
|
|
30
31
|
}>;
|
|
31
32
|
export default _default;
|
|
32
33
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -42,16 +42,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
42
42
|
onSelectItem?: ((value: IJoyMenuItem) => any) | undefined;
|
|
43
43
|
}, {
|
|
44
44
|
items: IJoyMenuItem[];
|
|
45
|
-
}, {}>, {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
icon?: import("@maltjoy/icons").JoyIconsId | undefined;
|
|
52
|
-
current?: boolean | undefined;
|
|
53
|
-
disabled?: boolean | undefined;
|
|
54
|
-
}): any;
|
|
45
|
+
}, {}>, Readonly<{
|
|
46
|
+
/** Customize the inner content of each menu item */
|
|
47
|
+
'menu-item': () => any;
|
|
48
|
+
}> & {
|
|
49
|
+
/** Customize the inner content of each menu item */
|
|
50
|
+
'menu-item': () => any;
|
|
55
51
|
}>;
|
|
56
52
|
export default _default;
|
|
57
53
|
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
|
export interface Option {
|
|
3
4
|
id: string;
|
|
4
5
|
name?: string;
|
|
@@ -15,12 +16,14 @@ export interface Option {
|
|
|
15
16
|
required?: boolean;
|
|
16
17
|
}
|
|
17
18
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
19
|
+
/** To render the list of checkboxes you have to use this property. See "Controls" for object model */
|
|
18
20
|
options: {
|
|
19
21
|
type: PropType<Option[]>;
|
|
20
22
|
required: true;
|
|
21
23
|
validator(value: Option[]): boolean;
|
|
22
24
|
};
|
|
23
25
|
id: StringConstructor;
|
|
26
|
+
/** Use it with `v-model:value` */
|
|
24
27
|
value: {
|
|
25
28
|
type: PropType<any[]>;
|
|
26
29
|
default(): never[];
|
|
@@ -31,10 +34,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
31
34
|
};
|
|
32
35
|
label: StringConstructor;
|
|
33
36
|
labelSize: {
|
|
34
|
-
type: PropType<
|
|
37
|
+
type: PropType<TJoyLabelSizes>;
|
|
35
38
|
default: string;
|
|
36
39
|
};
|
|
37
40
|
optionalLabel: StringConstructor;
|
|
41
|
+
/** Display the "*" next to the label */
|
|
38
42
|
requiredMark: {
|
|
39
43
|
type: BooleanConstructor;
|
|
40
44
|
default: boolean;
|
|
@@ -42,12 +46,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
42
46
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
43
47
|
"update:value": (value: any[]) => void;
|
|
44
48
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
49
|
+
/** To render the list of checkboxes you have to use this property. See "Controls" for object model */
|
|
45
50
|
options: {
|
|
46
51
|
type: PropType<Option[]>;
|
|
47
52
|
required: true;
|
|
48
53
|
validator(value: Option[]): boolean;
|
|
49
54
|
};
|
|
50
55
|
id: StringConstructor;
|
|
56
|
+
/** Use it with `v-model:value` */
|
|
51
57
|
value: {
|
|
52
58
|
type: PropType<any[]>;
|
|
53
59
|
default(): never[];
|
|
@@ -58,10 +64,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
58
64
|
};
|
|
59
65
|
label: StringConstructor;
|
|
60
66
|
labelSize: {
|
|
61
|
-
type: PropType<
|
|
67
|
+
type: PropType<TJoyLabelSizes>;
|
|
62
68
|
default: string;
|
|
63
69
|
};
|
|
64
70
|
optionalLabel: StringConstructor;
|
|
71
|
+
/** Display the "*" next to the label */
|
|
65
72
|
requiredMark: {
|
|
66
73
|
type: BooleanConstructor;
|
|
67
74
|
default: boolean;
|
|
@@ -71,24 +78,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
71
78
|
}, {
|
|
72
79
|
required: boolean;
|
|
73
80
|
value: any[];
|
|
74
|
-
labelSize:
|
|
81
|
+
labelSize: TJoyLabelSizes;
|
|
75
82
|
requiredMark: boolean;
|
|
76
|
-
}, {}>, {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
subLabel?: string | undefined;
|
|
83
|
-
/**
|
|
84
|
-
* @default false
|
|
85
|
-
*/
|
|
86
|
-
disabled?: boolean | undefined;
|
|
87
|
-
/**
|
|
88
|
-
* @default false
|
|
89
|
-
*/
|
|
90
|
-
required?: boolean | undefined;
|
|
91
|
-
}): any;
|
|
83
|
+
}, {}>, Readonly<{
|
|
84
|
+
/** Customize the inner content of each checkboxes */
|
|
85
|
+
checkbox?: (() => any) | undefined;
|
|
86
|
+
}> & {
|
|
87
|
+
/** Customize the inner content of each checkboxes */
|
|
88
|
+
checkbox?: (() => any) | undefined;
|
|
92
89
|
}>;
|
|
93
90
|
export default _default;
|
|
94
91
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -57,12 +57,20 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
57
57
|
}, {
|
|
58
58
|
currentPage: number;
|
|
59
59
|
totalPages: number;
|
|
60
|
-
}, {}>, {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
60
|
+
}, {}>, Readonly<{
|
|
61
|
+
/** Customize the content of the left arrow */
|
|
62
|
+
'pagination-prev'?: (() => any) | undefined;
|
|
63
|
+
/** Customize the content of the right arrow */
|
|
64
|
+
'pagination-next'?: (() => any) | undefined;
|
|
65
|
+
/** Customize the content of each pagination item */
|
|
66
|
+
page?: (() => any) | undefined;
|
|
67
|
+
}> & {
|
|
68
|
+
/** Customize the content of the left arrow */
|
|
69
|
+
'pagination-prev'?: (() => any) | undefined;
|
|
70
|
+
/** Customize the content of the right arrow */
|
|
71
|
+
'pagination-next'?: (() => any) | undefined;
|
|
72
|
+
/** Customize the content of each pagination item */
|
|
73
|
+
page?: (() => any) | undefined;
|
|
66
74
|
}>;
|
|
67
75
|
export default _default;
|
|
68
76
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type TJoyPanelSizes = Extract<
|
|
3
|
-
export
|
|
4
|
-
export type TJoyPanelTitleSizes = Extract<(typeof SIZES)[number], 'small' | 'large'>;
|
|
5
|
-
export declare const PANEL_TITLE_SIZES: TJoyPanelTitleSizes[];
|
|
1
|
+
import { TSizes } from '../../types';
|
|
2
|
+
export type TJoyPanelSizes = Extract<TSizes, 'small' | 'medium' | 'large'>;
|
|
3
|
+
export type TJoyPanelTitleSizes = Extract<TSizes, 'small' | 'large'>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { TJoyPanelSizes, TJoyPanelTitleSizes } from './JoyPanel.types';
|
|
3
|
+
import { TJoyScreenLoaderColors } from '../JoyScreenLoader/VJoyScreenLoader.types';
|
|
3
4
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
4
5
|
flex: {
|
|
5
6
|
type: StringConstructor;
|
|
@@ -11,19 +12,17 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
11
12
|
padding: {
|
|
12
13
|
type: PropType<TJoyPanelSizes>;
|
|
13
14
|
default: string;
|
|
14
|
-
validator(size: TJoyPanelSizes): boolean;
|
|
15
15
|
};
|
|
16
16
|
titleSize: {
|
|
17
17
|
type: PropType<TJoyPanelTitleSizes>;
|
|
18
18
|
default: string;
|
|
19
|
-
validator(size: TJoyPanelTitleSizes): boolean;
|
|
20
19
|
};
|
|
21
20
|
loading: {
|
|
22
21
|
type: BooleanConstructor;
|
|
23
22
|
default: boolean;
|
|
24
23
|
};
|
|
25
24
|
loadingColor: {
|
|
26
|
-
type: PropType<
|
|
25
|
+
type: PropType<TJoyScreenLoaderColors>;
|
|
27
26
|
default: string;
|
|
28
27
|
};
|
|
29
28
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -37,19 +36,17 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
37
36
|
padding: {
|
|
38
37
|
type: PropType<TJoyPanelSizes>;
|
|
39
38
|
default: string;
|
|
40
|
-
validator(size: TJoyPanelSizes): boolean;
|
|
41
39
|
};
|
|
42
40
|
titleSize: {
|
|
43
41
|
type: PropType<TJoyPanelTitleSizes>;
|
|
44
42
|
default: string;
|
|
45
|
-
validator(size: TJoyPanelTitleSizes): boolean;
|
|
46
43
|
};
|
|
47
44
|
loading: {
|
|
48
45
|
type: BooleanConstructor;
|
|
49
46
|
default: boolean;
|
|
50
47
|
};
|
|
51
48
|
loadingColor: {
|
|
52
|
-
type: PropType<
|
|
49
|
+
type: PropType<TJoyScreenLoaderColors>;
|
|
53
50
|
default: string;
|
|
54
51
|
};
|
|
55
52
|
}>>, {
|
|
@@ -57,14 +54,33 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
57
54
|
noMargin: boolean;
|
|
58
55
|
padding: TJoyPanelSizes;
|
|
59
56
|
titleSize: TJoyPanelTitleSizes;
|
|
60
|
-
loadingColor:
|
|
61
|
-
}, {}>, {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
57
|
+
loadingColor: TJoyScreenLoaderColors;
|
|
58
|
+
}, {}>, Readonly<{
|
|
59
|
+
/** Main title of the panel */
|
|
60
|
+
'panel-title'(): any;
|
|
61
|
+
/** Subtitle, not mandatory */
|
|
62
|
+
'panel-subtitle'?(): any;
|
|
63
|
+
/** Top right corner actions. Put whatever you want */
|
|
64
|
+
'panel-title-action'?(): any;
|
|
65
|
+
/** Main content */
|
|
66
|
+
'panel-body'?(): any;
|
|
67
|
+
/** Mostly for CTA */
|
|
68
|
+
'panel-action'?(): any;
|
|
69
|
+
/** Customize the loading state content */
|
|
70
|
+
'panel-loader-content'?(): any;
|
|
71
|
+
}> & {
|
|
72
|
+
/** Main title of the panel */
|
|
73
|
+
'panel-title'(): any;
|
|
74
|
+
/** Subtitle, not mandatory */
|
|
75
|
+
'panel-subtitle'?(): any;
|
|
76
|
+
/** Top right corner actions. Put whatever you want */
|
|
77
|
+
'panel-title-action'?(): any;
|
|
78
|
+
/** Main content */
|
|
79
|
+
'panel-body'?(): any;
|
|
80
|
+
/** Mostly for CTA */
|
|
81
|
+
'panel-action'?(): any;
|
|
82
|
+
/** Customize the loading state content */
|
|
83
|
+
'panel-loader-content'?(): any;
|
|
68
84
|
}>;
|
|
69
85
|
export default _default;
|
|
70
86
|
type __VLS_WithTemplateSlots<T, S> = T & {
|