@maltjoy/core-vue 3.17.2 → 3.19.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/JoyBottomSheet/JoyBottomSheet.types.d.ts +3 -0
- package/dist/components/JoyBottomSheet/VJoyBottomSheet.vue.d.ts +73 -0
- package/dist/components/JoyBottomSheetTrigger/VJoyBottomSheetTrigger.vue.d.ts +322 -0
- package/dist/components/JoyCollapse/VJoyCollapse.vue.d.ts +235 -0
- package/dist/components/JoyCollapseItem/JoyCollapseItem.types.d.ts +3 -0
- package/dist/components/JoyCollapseItem/VJoyCollapseItem.vue.d.ts +59 -0
- package/dist/components/JoyCounter/VJoyCounter.vue.d.ts +2 -2
- package/dist/components/JoyDialog/JoyDialog.types.d.ts +5 -0
- package/dist/components/JoyDialog/VJoyDialog.vue.d.ts +144 -0
- package/dist/components/JoyDialogTrigger/VJoyDialogTrigger.vue.d.ts +463 -0
- package/dist/components/JoyDrawer/JoyDrawer.types.d.ts +7 -0
- package/dist/components/JoyDrawer/VJoyDrawer.vue.d.ts +124 -0
- package/dist/components/JoyDrawerTrigger/VJoyDrawerTrigger.vue.d.ts +435 -0
- package/dist/components/JoyDropdown/VJoyDropdown.vue.d.ts +4 -4
- package/dist/components/JoyDropdownList/VJoyDropdownList.vue.d.ts +2 -2
- package/dist/components/JoyHighlight/VJoyHighlight.vue.d.ts +1 -1
- package/dist/components/JoySelect/VJoySelect.vue.d.ts +1 -1
- package/dist/components/JoySnackbar/JoySnackbar.types.d.ts +19 -0
- package/dist/components/JoySnackbar/VJoySnackbar.vue.d.ts +96 -0
- package/dist/components/JoySnackbar/VJoySnackbarService.d.ts +25 -0
- package/dist/components/JoySnackbar/index.d.ts +1 -0
- package/dist/components/JoyTab/TabButton.vue.d.ts +2 -2
- package/dist/components/JoyTag/VJoyTag.vue.d.ts +0 -2
- package/dist/components/JoyTagsList/VJoyTagsList.vue.d.ts +25 -3
- package/dist/components/JoyTextarea/VJoyTextarea.vue.d.ts +1 -1
- package/dist/components/JoyWrapper/VJoyWrapper.vue.d.ts +2 -2
- package/dist/components/components.types.d.ts +4 -0
- package/dist/components/index.d.ts +10 -1
- package/dist/components/main.d.ts +5 -2
- package/dist/events/bus.d.ts +3 -0
- package/dist/events/index.d.ts +1 -0
- package/dist/helpers/index.d.ts +9 -0
- package/dist/joy-vue.js +3969 -2313
- package/dist/joy-vue.umd.cjs +16 -1
- package/dist/style.css +1 -1
- package/index.d.ts +1 -1
- package/joy-components.d.ts +9 -0
- package/package.json +10 -4
|
@@ -20,7 +20,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
20
20
|
/** Mandatory, especially if you deal with tags list and v-model */
|
|
21
21
|
value: {
|
|
22
22
|
type: StringConstructor;
|
|
23
|
-
required: true;
|
|
24
23
|
default: string;
|
|
25
24
|
};
|
|
26
25
|
draggable: {
|
|
@@ -61,7 +60,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
61
60
|
/** Mandatory, especially if you deal with tags list and v-model */
|
|
62
61
|
value: {
|
|
63
62
|
type: StringConstructor;
|
|
64
|
-
required: true;
|
|
65
63
|
default: string;
|
|
66
64
|
};
|
|
67
65
|
draggable: {
|
|
@@ -8,16 +8,26 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
8
8
|
modelValue: {
|
|
9
9
|
type: PropType<TJoyTagsListModel>;
|
|
10
10
|
};
|
|
11
|
+
/** Tags list. Array of objects containing at least a label. "value" is mandatory if dealing with removable or selectable tags */
|
|
11
12
|
tags: {
|
|
12
13
|
type: PropType<TJoyTagsList>;
|
|
13
14
|
default(): never[];
|
|
14
|
-
required: true;
|
|
15
15
|
};
|
|
16
16
|
/** You can either pass this property to make all generated tags removable, or pass the `removable: true` to each tag in "tags" prop. */
|
|
17
17
|
removable: {
|
|
18
18
|
type: BooleanConstructor;
|
|
19
19
|
default: boolean;
|
|
20
20
|
};
|
|
21
|
+
/** Make all VJoyTag selectable. Can be overriden by setting selectable: false in specific tags property entry. */
|
|
22
|
+
selectable: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
26
|
+
/** Apply variant for all VJoyTag. Can be overriden by setting a variant property in specific tags entry. */
|
|
27
|
+
variant: {
|
|
28
|
+
type: PropType<"primary" | "secondary" | "important" | "inactive" | "pending" | "pricing">;
|
|
29
|
+
default: string;
|
|
30
|
+
};
|
|
21
31
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
22
32
|
"update:modelValue": (tags: TJoyTagsListModel) => void;
|
|
23
33
|
removeTag: (tagValue: string) => void;
|
|
@@ -29,22 +39,34 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
29
39
|
modelValue: {
|
|
30
40
|
type: PropType<TJoyTagsListModel>;
|
|
31
41
|
};
|
|
42
|
+
/** Tags list. Array of objects containing at least a label. "value" is mandatory if dealing with removable or selectable tags */
|
|
32
43
|
tags: {
|
|
33
44
|
type: PropType<TJoyTagsList>;
|
|
34
45
|
default(): never[];
|
|
35
|
-
required: true;
|
|
36
46
|
};
|
|
37
47
|
/** You can either pass this property to make all generated tags removable, or pass the `removable: true` to each tag in "tags" prop. */
|
|
38
48
|
removable: {
|
|
39
49
|
type: BooleanConstructor;
|
|
40
50
|
default: boolean;
|
|
41
51
|
};
|
|
52
|
+
/** Make all VJoyTag selectable. Can be overriden by setting selectable: false in specific tags property entry. */
|
|
53
|
+
selectable: {
|
|
54
|
+
type: BooleanConstructor;
|
|
55
|
+
default: boolean;
|
|
56
|
+
};
|
|
57
|
+
/** Apply variant for all VJoyTag. Can be overriden by setting a variant property in specific tags entry. */
|
|
58
|
+
variant: {
|
|
59
|
+
type: PropType<"primary" | "secondary" | "important" | "inactive" | "pending" | "pricing">;
|
|
60
|
+
default: string;
|
|
61
|
+
};
|
|
42
62
|
}>> & {
|
|
43
63
|
"onUpdate:modelValue"?: ((tags: TJoyTagsListModel) => any) | undefined;
|
|
44
64
|
onRemoveTag?: ((tagValue: string) => any) | undefined;
|
|
45
65
|
}, {
|
|
46
|
-
|
|
66
|
+
variant: "primary" | "secondary" | "important" | "inactive" | "pending" | "pricing";
|
|
67
|
+
selectable: boolean;
|
|
47
68
|
removable: boolean;
|
|
69
|
+
align: "left" | "right" | "center";
|
|
48
70
|
tags: TJoyTagsList;
|
|
49
71
|
}, {}>;
|
|
50
72
|
export default _default;
|
|
@@ -109,9 +109,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
109
109
|
required: boolean;
|
|
110
110
|
disabled: boolean;
|
|
111
111
|
invalid: boolean;
|
|
112
|
+
modelValue: string;
|
|
112
113
|
labelSize: "small" | "large" | "medium";
|
|
113
114
|
requiredMark: boolean;
|
|
114
|
-
modelValue: string;
|
|
115
115
|
modelModifiers: {
|
|
116
116
|
lazy: boolean;
|
|
117
117
|
};
|
|
@@ -80,10 +80,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
80
80
|
default: string;
|
|
81
81
|
};
|
|
82
82
|
}>>, {
|
|
83
|
+
wrap: "nowrap" | "wrap";
|
|
84
|
+
justify: "center" | "space-between" | "flex-start" | "flex-end";
|
|
83
85
|
align: "center" | "flex-start" | "flex-end" | "stretch";
|
|
84
86
|
direction: "row" | "column";
|
|
85
|
-
justify: "center" | "space-between" | "flex-start" | "flex-end";
|
|
86
|
-
wrap: "nowrap" | "wrap";
|
|
87
87
|
itemStretch: boolean;
|
|
88
88
|
noMargin: boolean;
|
|
89
89
|
columnGap: "0" | "1" | "2" | "3" | "12" | "10" | "4" | "5" | "6" | "7" | "8" | "9" | "11";
|
|
@@ -2,8 +2,11 @@ export * from './JoyAvailability/JoyAvailability.types';
|
|
|
2
2
|
export * from './JoyAvatar/JoyAvatar.types';
|
|
3
3
|
export * from './JoyBadge/JoyBadge.types';
|
|
4
4
|
export * from './JoyBadgeLevel/JoyBadgeLevel.types';
|
|
5
|
+
export * from './JoyBottomSheet/JoyBottomSheet.types';
|
|
5
6
|
export * from './JoyButton/JoyButton.types';
|
|
6
7
|
export * from './JoyCompanyAvatar/JoyCompanyAvatar.types';
|
|
8
|
+
export * from './JoyDialog/JoyDialog.types';
|
|
9
|
+
export * from './JoyDrawer/JoyDrawer.types';
|
|
7
10
|
export * from './JoyDropdown/JoyDropdown.types';
|
|
8
11
|
export * from './JoyDropdownList/JoyDropdownList.types';
|
|
9
12
|
export * from './JoyFunnel/JoyFunnel.types';
|
|
@@ -23,6 +26,7 @@ export * from './JoyRadioGroup/JoyRadioGroup.types';
|
|
|
23
26
|
export * from './JoyScreenLoader/VJoyScreenLoader.types';
|
|
24
27
|
export * from './JoySelect/JoySelect.types';
|
|
25
28
|
export * from './JoySeparator/JoySeparator.types';
|
|
29
|
+
export * from './JoySnackbar/JoySnackbar.types';
|
|
26
30
|
export * from './JoySpinner/JoySpinner.types';
|
|
27
31
|
export * from './JoyTag/JoyTag.types';
|
|
28
32
|
export * from './JoyTagsList/JoyTagsList.types';
|
|
@@ -3,11 +3,19 @@ import VJoyAvatar from '@/components/JoyAvatar/VJoyAvatar.vue';
|
|
|
3
3
|
import VJoyAvatarsList from '@/components/JoyAvatarsList/VJoyAvatarsList.vue';
|
|
4
4
|
import VJoyBadge from '@/components/JoyBadge/VJoyBadge.vue';
|
|
5
5
|
import VJoyBadgeLevel from '@/components/JoyBadgeLevel/VJoyBadgeLevel.vue';
|
|
6
|
+
import VJoyBottomSheet from '@/components/JoyBottomSheet/VJoyBottomSheet.vue';
|
|
7
|
+
import VJoyBottomSheetTrigger from '@/components/JoyBottomSheetTrigger/VJoyBottomSheetTrigger.vue';
|
|
6
8
|
import VJoyButton from '@/components/JoyButton/VJoyButton.vue';
|
|
7
9
|
import VJoyCheckbox from '@/components/JoyCheckbox/VJoyCheckbox.vue';
|
|
10
|
+
import VJoyCollapse from '@/components/JoyCollapse/VJoyCollapse.vue';
|
|
11
|
+
import VJoyCollapseItem from '@/components/JoyCollapseItem/VJoyCollapseItem.vue';
|
|
8
12
|
import VJoyCompanyAvatar from '@/components/JoyCompanyAvatar/VJoyCompanyAvatar.vue';
|
|
9
13
|
import VJoyCounter from '@/components/JoyCounter/VJoyCounter.vue';
|
|
14
|
+
import VJoyDialog from '@/components/JoyDialog/VJoyDialog.vue';
|
|
15
|
+
import VJoyDialogTrigger from '@/components/JoyDialogTrigger/VJoyDialogTrigger.vue';
|
|
10
16
|
import VJoyDividerCta from '@/components/JoyDividerCta/VJoyDividerCta.vue';
|
|
17
|
+
import VJoyDrawer from '@/components/JoyDrawer/VJoyDrawer.vue';
|
|
18
|
+
import VJoyDrawerTrigger from '@/components/JoyDrawerTrigger/VJoyDrawerTrigger.vue';
|
|
11
19
|
import VJoyDropdown from '@/components/JoyDropdown/VJoyDropdown.vue';
|
|
12
20
|
import VJoyDropdownList from '@/components/JoyDropdownList/VJoyDropdownList.vue';
|
|
13
21
|
import VJoyFilterBar from '@/components/JoyFilterBar/VJoyFilterBar.vue';
|
|
@@ -38,6 +46,7 @@ import VJoySelect from '@/components/JoySelect/VJoySelect.vue';
|
|
|
38
46
|
import VJoySelectableItem from '@/components/JoySelectableItem/VJoySelectableItem.vue';
|
|
39
47
|
import VJoySelectableItemGroup from '@/components/JoySelectableItemGroup/VJoySelectableItemGroup.vue';
|
|
40
48
|
import VJoySeparator from '@/components/JoySeparator/VJoySeparator.vue';
|
|
49
|
+
import VJoySnackbar from '@/components/JoySnackbar/VJoySnackbar.vue';
|
|
41
50
|
import VJoySpinner from '@/components/JoySpinner/VJoySpinner.vue';
|
|
42
51
|
import VJoyStep from '@/components/JoyStep/VJoyStep.vue';
|
|
43
52
|
import VJoyStepper from '@/components/JoyStepper/VJoyStepper.vue';
|
|
@@ -53,4 +62,4 @@ import VJoyToggle from '@/components/JoyToggle/VJoyToggle.vue';
|
|
|
53
62
|
import VJoyTooltip from '@/components/JoyTooltip/VJoyTooltip.vue';
|
|
54
63
|
import VJoyUserCard from '@/components/JoyUserCard/VJoyUserCard.vue';
|
|
55
64
|
import VJoyWrapper from '@/components/JoyWrapper/VJoyWrapper.vue';
|
|
56
|
-
export { VJoyAvailability, VJoyAvatar, VJoyAvatarsList, VJoyBadge, VJoyBadgeLevel, VJoyButton, VJoyCheckbox, VJoyCompanyAvatar, VJoyCounter, VJoyDividerCta, VJoyDropdown, VJoyDropdownList, VJoyFilterBar, VJoyFilterBarButton, VJoyFooter, VJoyFormError, VJoyFormFieldSkeleton, VJoyFunnel, VJoyHeader, VJoyHighlight, VJoyIcon, VJoyIndicator, VJoyIndicators, VJoyInput, VJoyLabel, VJoyLink, VJoyMenu, VJoyMultiCheckbox, VJoyPagination, VJoyPanel, VJoyPanelSection, VJoyProgressBar, VJoyRadio, VJoyRadioGroup, VJoyRatingStars, VJoyScreenLoader, VJoySelect, VJoySelectableItem, VJoySelectableItemGroup, VJoySeparator, VJoySpinner, VJoyStep, VJoyStepper, VJoyTab, VJoyTabs, VJoyTag, VJoyTagsList, VJoyTemplate, VJoyTemplateShape, VJoyText, VJoyTextarea, VJoyToggle, VJoyTooltip, VJoyUserCard, VJoyWrapper, };
|
|
65
|
+
export { VJoyAvailability, VJoyAvatar, VJoyAvatarsList, VJoyBadge, VJoyBadgeLevel, VJoyBottomSheet, VJoyBottomSheetTrigger, VJoyButton, VJoyCheckbox, VJoyCollapse, VJoyCollapseItem, VJoyCompanyAvatar, VJoyCounter, VJoyDialog, VJoyDialogTrigger, VJoyDividerCta, VJoyDrawer, VJoyDrawerTrigger, VJoyDropdown, VJoyDropdownList, VJoyFilterBar, VJoyFilterBarButton, VJoyFooter, VJoyFormError, VJoyFormFieldSkeleton, VJoyFunnel, VJoyHeader, VJoyHighlight, VJoyIcon, VJoyIndicator, VJoyIndicators, VJoyInput, VJoyLabel, VJoyLink, VJoyMenu, VJoyMultiCheckbox, VJoyPagination, VJoyPanel, VJoyPanelSection, VJoyProgressBar, VJoyRadio, VJoyRadioGroup, VJoyRatingStars, VJoyScreenLoader, VJoySelect, VJoySelectableItem, VJoySelectableItemGroup, VJoySeparator, VJoySnackbar, VJoySpinner, VJoyStep, VJoyStepper, VJoyTab, VJoyTabs, VJoyTag, VJoyTagsList, VJoyTemplate, VJoyTemplateShape, VJoyText, VJoyTextarea, VJoyToggle, VJoyTooltip, VJoyUserCard, VJoyWrapper, };
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import type { App } from 'vue';
|
|
2
2
|
import '../style.scss';
|
|
3
|
-
export * from './';
|
|
4
3
|
export declare const JoyVuePlugin: {
|
|
5
|
-
install: (app: App
|
|
4
|
+
install: (app: App, options?: {
|
|
5
|
+
env: 'client' | 'server';
|
|
6
|
+
}) => void;
|
|
6
7
|
};
|
|
8
|
+
export * from './';
|
|
9
|
+
export * from './JoySnackbar';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './bus';
|
package/dist/helpers/index.d.ts
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import { TJoyIconsNames } from '@/components/JoyIcon/JoyIcon.types';
|
|
2
2
|
import { Ref } from 'vue';
|
|
3
3
|
import { LEVELS } from '../types';
|
|
4
|
+
/**
|
|
5
|
+
* Check if you are working on dev environment. Based on `getMode` util that returns import.meta.env.MODE,
|
|
6
|
+
*/
|
|
7
|
+
export declare const isDevMode: boolean;
|
|
4
8
|
export declare function iconLevel(level: (typeof LEVELS)[number]): TJoyIconsNames;
|
|
5
9
|
export declare function focusOnFirstFocusableFormField(root: Ref): any;
|
|
6
10
|
export declare const generateRandomId: (length?: number) => string;
|
|
11
|
+
/**
|
|
12
|
+
* @param {Boolean} prevent - If you want to prevent scrolling or enable it again. Used by dialog component
|
|
13
|
+
* @return {void}
|
|
14
|
+
*/
|
|
15
|
+
export declare function preventBodyScroll(prevent: boolean): void;
|