@maltjoy/core-vue 3.9.1 → 3.9.3
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/JoyButton/VJoyButton.vue.d.ts +5 -5
- package/dist/components/JoyDropdown/VJoyDropdown.vue.d.ts +7 -0
- package/dist/components/JoyHighlight/VJoyHighlight.vue.d.ts +3 -3
- package/dist/components/JoyIcon/JoyIcon.types.d.ts +1 -1
- package/dist/components/JoyIcon/VJoyIcon.vue.d.ts +5 -5
- package/dist/components/JoyInput/VJoyInput.vue.d.ts +11 -4
- package/dist/components/JoyLink/VJoyLink.vue.d.ts +2 -2
- package/dist/components/JoyWrapper/VJoyWrapper.vue.d.ts +1 -1
- package/dist/components/components.types.d.ts +20 -0
- package/dist/composables/helpers.d.ts +9 -0
- package/dist/composables/index.d.ts +2 -1
- package/dist/helpers/index.d.ts +2 -0
- package/dist/joy-vue.js +902 -854
- package/dist/joy-vue.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/dist/tests/helpers/FocusOnFormElement.vue.d.ts +6 -0
- package/index.d.ts +1 -0
- package/package.json +3 -3
- package/dist/components/JoySelectableItem/JoySelectableItem.types.d.ts +0 -2
|
@@ -11,7 +11,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
11
11
|
};
|
|
12
12
|
/** Name of the icon, placed before the text */
|
|
13
13
|
icon: {
|
|
14
|
-
type: PropType<import("@maltjoy/icons
|
|
14
|
+
type: PropType<import("@maltjoy/icons").JoyIconsId>;
|
|
15
15
|
};
|
|
16
16
|
/** Left to the text or right */
|
|
17
17
|
iconPosition: {
|
|
@@ -31,7 +31,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
31
31
|
};
|
|
32
32
|
/** Button or Link color variant */
|
|
33
33
|
variant: {
|
|
34
|
-
type: PropType<"main" | "ghost" | "
|
|
34
|
+
type: PropType<"main" | "ghost" | "secondary" | "primary" | "white" | "admin">;
|
|
35
35
|
default: string;
|
|
36
36
|
validator(variant: ButtonVariants): boolean;
|
|
37
37
|
};
|
|
@@ -52,7 +52,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
52
52
|
};
|
|
53
53
|
/** Name of the icon, placed before the text */
|
|
54
54
|
icon: {
|
|
55
|
-
type: PropType<import("@maltjoy/icons
|
|
55
|
+
type: PropType<import("@maltjoy/icons").JoyIconsId>;
|
|
56
56
|
};
|
|
57
57
|
/** Left to the text or right */
|
|
58
58
|
iconPosition: {
|
|
@@ -72,7 +72,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
72
72
|
};
|
|
73
73
|
/** Button or Link color variant */
|
|
74
74
|
variant: {
|
|
75
|
-
type: PropType<"main" | "ghost" | "
|
|
75
|
+
type: PropType<"main" | "ghost" | "secondary" | "primary" | "white" | "admin">;
|
|
76
76
|
default: string;
|
|
77
77
|
validator(variant: ButtonVariants): boolean;
|
|
78
78
|
};
|
|
@@ -84,7 +84,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
84
84
|
};
|
|
85
85
|
}>>, {
|
|
86
86
|
circle: boolean;
|
|
87
|
-
variant: "main" | "ghost" | "
|
|
87
|
+
variant: "main" | "ghost" | "secondary" | "primary" | "white" | "admin";
|
|
88
88
|
size: ButtonSizes;
|
|
89
89
|
iconPosition: "left" | "right";
|
|
90
90
|
loading: boolean;
|
|
@@ -86,6 +86,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
86
86
|
default: string;
|
|
87
87
|
};
|
|
88
88
|
}, {
|
|
89
|
+
coords: {
|
|
90
|
+
position?: string | undefined;
|
|
91
|
+
zIndex?: string | undefined;
|
|
92
|
+
left: string;
|
|
93
|
+
top: string;
|
|
94
|
+
right: string;
|
|
95
|
+
};
|
|
89
96
|
showDropdownList: import("vue").Ref<boolean>;
|
|
90
97
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
91
98
|
"update:modelValue": (value: string | undefined) => void;
|
|
@@ -10,7 +10,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
10
10
|
default: boolean;
|
|
11
11
|
};
|
|
12
12
|
icon: {
|
|
13
|
-
type: PropType<import("@maltjoy/icons
|
|
13
|
+
type: PropType<import("@maltjoy/icons").JoyIconsId>;
|
|
14
14
|
};
|
|
15
15
|
level: {
|
|
16
16
|
type: PropType<"info" | "error" | "warning" | "neutral" | "success">;
|
|
@@ -18,7 +18,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
18
18
|
validator(level: HighlightLevels): boolean;
|
|
19
19
|
};
|
|
20
20
|
}, {
|
|
21
|
-
getRelevantIcon: import("vue").ComputedRef<import("@maltjoy/icons
|
|
21
|
+
getRelevantIcon: import("vue").ComputedRef<import("@maltjoy/icons").JoyIconsId>;
|
|
22
22
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
23
23
|
accent: {
|
|
24
24
|
type: BooleanConstructor;
|
|
@@ -29,7 +29,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
29
29
|
default: boolean;
|
|
30
30
|
};
|
|
31
31
|
icon: {
|
|
32
|
-
type: PropType<import("@maltjoy/icons
|
|
32
|
+
type: PropType<import("@maltjoy/icons").JoyIconsId>;
|
|
33
33
|
};
|
|
34
34
|
level: {
|
|
35
35
|
type: PropType<"info" | "error" | "warning" | "neutral" | "success">;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { JoyIconsId } from '@maltjoy/icons
|
|
1
|
+
import type { JoyIconsId } from '@maltjoy/icons';
|
|
2
2
|
export declare const JOY_ICONS_COLORS: readonly [...("info" | "error" | "warning" | "neutral" | "success")[], "primary", "secondary", "tertiary", "quaternary", "brand-primary", "brand-secondary", "white"];
|
|
3
3
|
export type JoyIconsColors = (typeof JOY_ICONS_COLORS)[number];
|
|
4
4
|
export declare const JOY_ICONS_SIZES: readonly ["xlarge", "large", "medium", "small", "xsmall", "xxsmall"];
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<{
|
|
3
3
|
name: {
|
|
4
|
-
type: PropType<import("@maltjoy/icons
|
|
4
|
+
type: PropType<import("@maltjoy/icons").JoyIconsId>;
|
|
5
5
|
required: true;
|
|
6
6
|
};
|
|
7
7
|
color: {
|
|
8
|
-
type: PropType<"
|
|
8
|
+
type: PropType<"secondary" | "primary" | "tertiary" | "quaternary" | "info" | "error" | "white" | "warning" | "neutral" | "success" | "brand-primary" | "brand-secondary">;
|
|
9
9
|
default: string;
|
|
10
10
|
};
|
|
11
11
|
size: {
|
|
@@ -14,11 +14,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
14
14
|
};
|
|
15
15
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
16
16
|
name: {
|
|
17
|
-
type: PropType<import("@maltjoy/icons
|
|
17
|
+
type: PropType<import("@maltjoy/icons").JoyIconsId>;
|
|
18
18
|
required: true;
|
|
19
19
|
};
|
|
20
20
|
color: {
|
|
21
|
-
type: PropType<"
|
|
21
|
+
type: PropType<"secondary" | "primary" | "tertiary" | "quaternary" | "info" | "error" | "white" | "warning" | "neutral" | "success" | "brand-primary" | "brand-secondary">;
|
|
22
22
|
default: string;
|
|
23
23
|
};
|
|
24
24
|
size: {
|
|
@@ -26,7 +26,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
26
26
|
default: string;
|
|
27
27
|
};
|
|
28
28
|
}>>, {
|
|
29
|
-
color: "
|
|
29
|
+
color: "secondary" | "primary" | "tertiary" | "quaternary" | "info" | "error" | "white" | "warning" | "neutral" | "success" | "brand-primary" | "brand-secondary";
|
|
30
30
|
size: "small" | "xsmall" | "xxsmall" | "medium" | "large" | "xlarge";
|
|
31
31
|
}, {}>;
|
|
32
32
|
export default _default;
|
|
@@ -44,14 +44,17 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
44
44
|
};
|
|
45
45
|
/** Add a JoyIcon / joy-icon with given name on left-side. */
|
|
46
46
|
icon: {
|
|
47
|
-
type: PropType<import("@maltjoy/icons
|
|
47
|
+
type: PropType<import("@maltjoy/icons").JoyIconsId>;
|
|
48
48
|
};
|
|
49
49
|
size: {
|
|
50
50
|
type: PropType<InputSizes>;
|
|
51
51
|
default: string;
|
|
52
52
|
validator(size: InputSizes): boolean;
|
|
53
53
|
};
|
|
54
|
-
type:
|
|
54
|
+
type: {
|
|
55
|
+
type: StringConstructor;
|
|
56
|
+
default: string;
|
|
57
|
+
};
|
|
55
58
|
/** Adds a legend like symbol on the right of the component. Made for number based values */
|
|
56
59
|
unit: StringConstructor;
|
|
57
60
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -98,18 +101,22 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
98
101
|
};
|
|
99
102
|
/** Add a JoyIcon / joy-icon with given name on left-side. */
|
|
100
103
|
icon: {
|
|
101
|
-
type: PropType<import("@maltjoy/icons
|
|
104
|
+
type: PropType<import("@maltjoy/icons").JoyIconsId>;
|
|
102
105
|
};
|
|
103
106
|
size: {
|
|
104
107
|
type: PropType<InputSizes>;
|
|
105
108
|
default: string;
|
|
106
109
|
validator(size: InputSizes): boolean;
|
|
107
110
|
};
|
|
108
|
-
type:
|
|
111
|
+
type: {
|
|
112
|
+
type: StringConstructor;
|
|
113
|
+
default: string;
|
|
114
|
+
};
|
|
109
115
|
/** Adds a legend like symbol on the right of the component. Made for number based values */
|
|
110
116
|
unit: StringConstructor;
|
|
111
117
|
}>>, {
|
|
112
118
|
disabled: boolean;
|
|
119
|
+
type: string;
|
|
113
120
|
size: InputSizes;
|
|
114
121
|
required: boolean;
|
|
115
122
|
invalid: boolean;
|
|
@@ -10,7 +10,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
10
10
|
default: string;
|
|
11
11
|
validator(color: LinkColors): boolean;
|
|
12
12
|
};
|
|
13
|
-
icon: PropType<import("@maltjoy/icons
|
|
13
|
+
icon: PropType<import("@maltjoy/icons").JoyIconsId>;
|
|
14
14
|
text: PropType<string | null>;
|
|
15
15
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
16
16
|
href: {
|
|
@@ -22,7 +22,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
22
22
|
default: string;
|
|
23
23
|
validator(color: LinkColors): boolean;
|
|
24
24
|
};
|
|
25
|
-
icon: PropType<import("@maltjoy/icons
|
|
25
|
+
icon: PropType<import("@maltjoy/icons").JoyIconsId>;
|
|
26
26
|
text: PropType<string | null>;
|
|
27
27
|
}>>, {
|
|
28
28
|
color: "teal" | "white";
|
|
@@ -60,10 +60,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
60
60
|
default: boolean;
|
|
61
61
|
};
|
|
62
62
|
}>>, {
|
|
63
|
+
wrap: "nowrap" | "wrap";
|
|
63
64
|
align: "flex-end" | "stretch" | "center" | "flex-start";
|
|
64
65
|
direction: "column" | "row";
|
|
65
66
|
justify: "flex-end" | "center" | "space-between" | "flex-start";
|
|
66
|
-
wrap: "nowrap" | "wrap";
|
|
67
67
|
itemStretch: boolean;
|
|
68
68
|
noMargin: boolean;
|
|
69
69
|
}, {}>, {
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export * from './JoyBadge/JoyBadge.types';
|
|
2
|
+
export * from './JoyButton/JoyButton.types';
|
|
3
|
+
export * from './JoyDropdown/JoyDropdown.types';
|
|
4
|
+
export * from './JoyDropdownList/JoyDropdownList.types';
|
|
5
|
+
export * from './JoyHighlight/JoyHighlight.types';
|
|
6
|
+
export * from './JoyHighlight/JoyHighlight.types';
|
|
7
|
+
export * from './JoyIcon/JoyIcon.types';
|
|
8
|
+
export * from './JoyInput/JoyInput.types';
|
|
9
|
+
export * from './JoyLabel/JoyLabel.types';
|
|
10
|
+
export * from './JoyLink/JoyLink.types';
|
|
11
|
+
export * from './JoyLink/JoyLink.types';
|
|
12
|
+
export * from './JoyPanel/JoyPanel.types';
|
|
13
|
+
export * from './JoyRadio/JoyRadio.types';
|
|
14
|
+
export * from './JoyRadioGroup/JoyRadioGroup.types';
|
|
15
|
+
export * from './JoyScreenLoader/VJoyScreenLoader.types';
|
|
16
|
+
export * from './JoySelect/JoySelect.types';
|
|
17
|
+
export * from './JoySpinner/JoySpinner.types';
|
|
18
|
+
export * from './JoyTemplate/JoyTemplate.types';
|
|
19
|
+
export * from './JoyTemplate/JoyTemplate.types';
|
|
20
|
+
export * from './JoyWrapper/JoyWrapper.types';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* Check if your current Node is a child of an Overlay component (dialog, drawer...)
|
|
4
|
+
*
|
|
5
|
+
* @param node - Vue ref of the node you want to check.
|
|
6
|
+
*/
|
|
7
|
+
export declare function useCheckIfParentIsOverlay(node: Ref): {
|
|
8
|
+
isInOverlay: Ref<boolean>;
|
|
9
|
+
};
|
package/dist/helpers/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import { JoyIconsNames } from '@/components/JoyIcon/JoyIcon.types';
|
|
2
|
+
import { Ref } from 'vue';
|
|
2
3
|
import { LEVELS } from '../types';
|
|
3
4
|
export declare function iconLevel(level: (typeof LEVELS)[number]): JoyIconsNames;
|
|
5
|
+
export declare function focusOnFirstFocusableFormField(root: Ref): any;
|