@maltjoy/core-vue 3.13.0 → 3.14.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.
@@ -0,0 +1,41 @@
1
+ import { PropType } from 'vue';
2
+ import { FormSizes } from '@/types';
3
+ declare const _default: import("vue").DefineComponent<{
4
+ /** In some cases you'll need to inject the error in the DOM but hide it. Visible by default */
5
+ size: {
6
+ type: PropType<FormSizes>;
7
+ default: string;
8
+ };
9
+ width: {
10
+ type: StringConstructor;
11
+ };
12
+ /** The component is aimed to be used with a VJoyWrapper to quickly create skeleton layouts.
13
+ * Use flex property to spread your items horizontally, by default they will all have the same width.
14
+ */
15
+ flex: {
16
+ type: StringConstructor;
17
+ default: string;
18
+ };
19
+ }, {
20
+ flexStyle: import("vue").ComputedRef<string>;
21
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
22
+ /** In some cases you'll need to inject the error in the DOM but hide it. Visible by default */
23
+ size: {
24
+ type: PropType<FormSizes>;
25
+ default: string;
26
+ };
27
+ width: {
28
+ type: StringConstructor;
29
+ };
30
+ /** The component is aimed to be used with a VJoyWrapper to quickly create skeleton layouts.
31
+ * Use flex property to spread your items horizontally, by default they will all have the same width.
32
+ */
33
+ flex: {
34
+ type: StringConstructor;
35
+ default: string;
36
+ };
37
+ }>>, {
38
+ size: FormSizes;
39
+ flex: string;
40
+ }, {}>;
41
+ export default _default;
@@ -0,0 +1,31 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ label: {
3
+ type: StringConstructor;
4
+ required: false;
5
+ };
6
+ next: {
7
+ type: BooleanConstructor;
8
+ default: boolean;
9
+ };
10
+ disabled: {
11
+ type: BooleanConstructor;
12
+ default: boolean;
13
+ };
14
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
15
+ label: {
16
+ type: StringConstructor;
17
+ required: false;
18
+ };
19
+ next: {
20
+ type: BooleanConstructor;
21
+ default: boolean;
22
+ };
23
+ disabled: {
24
+ type: BooleanConstructor;
25
+ default: boolean;
26
+ };
27
+ }>>, {
28
+ disabled: boolean;
29
+ next: boolean;
30
+ }, {}>;
31
+ export default _default;
@@ -0,0 +1,69 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
2
+ /** Current page number */
3
+ currentPage: {
4
+ type: NumberConstructor;
5
+ default: number;
6
+ };
7
+ /** Total number of pages in order to construct the pagination */
8
+ totalPages: {
9
+ type: NumberConstructor;
10
+ default: number;
11
+ };
12
+ /** Can be used as aria-label attribute for the full component */
13
+ labelPagination: {
14
+ type: StringConstructor;
15
+ required: false;
16
+ };
17
+ /** Can be used as title and aria-label attributes for the previous CTA */
18
+ labelPrev: {
19
+ type: StringConstructor;
20
+ required: false;
21
+ };
22
+ /** Can be used as title and aria-label attributes for the next CTA */
23
+ labelNext: {
24
+ type: StringConstructor;
25
+ required: false;
26
+ };
27
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
28
+ "update:current-page": (value: number) => void;
29
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
30
+ /** Current page number */
31
+ currentPage: {
32
+ type: NumberConstructor;
33
+ default: number;
34
+ };
35
+ /** Total number of pages in order to construct the pagination */
36
+ totalPages: {
37
+ type: NumberConstructor;
38
+ default: number;
39
+ };
40
+ /** Can be used as aria-label attribute for the full component */
41
+ labelPagination: {
42
+ type: StringConstructor;
43
+ required: false;
44
+ };
45
+ /** Can be used as title and aria-label attributes for the previous CTA */
46
+ labelPrev: {
47
+ type: StringConstructor;
48
+ required: false;
49
+ };
50
+ /** Can be used as title and aria-label attributes for the next CTA */
51
+ labelNext: {
52
+ type: StringConstructor;
53
+ required: false;
54
+ };
55
+ }>> & {
56
+ "onUpdate:current-page"?: ((value: number) => any) | undefined;
57
+ }, {
58
+ currentPage: number;
59
+ totalPages: number;
60
+ }, {}>, {
61
+ 'pagination-prev': (_: {}) => any;
62
+ 'pagination-next': (_: {}) => any;
63
+ }>;
64
+ export default _default;
65
+ type __VLS_WithTemplateSlots<T, S> = T & {
66
+ new (): {
67
+ $slots: S;
68
+ };
69
+ };
@@ -0,0 +1,3 @@
1
+ import { GENERIC_VARIANTS } from '@/types';
2
+ export type ProgressBarColors = (typeof GENERIC_VARIANTS)[number];
3
+ export declare const PROGRESSBAR_VARIANT: string[];
@@ -0,0 +1,54 @@
1
+ import { PropType } from 'vue';
2
+ declare const _default: import("vue").DefineComponent<{
3
+ color: {
4
+ type: PropType<"primary" | "secondary">;
5
+ default: string;
6
+ };
7
+ /**
8
+ * Total number of steps.
9
+ */
10
+ steps: {
11
+ type: NumberConstructor;
12
+ };
13
+ /**
14
+ * Current step number.
15
+ */
16
+ currentStep: {
17
+ type: NumberConstructor;
18
+ };
19
+ /**
20
+ * Progress bar percentage, percentage usage will override steps & currentStep definition.
21
+ */
22
+ percentage: {
23
+ type: NumberConstructor;
24
+ };
25
+ }, {
26
+ computeInnerWidth: import("vue").ComputedRef<string>;
27
+ computedPercentage: import("vue").Ref<number>;
28
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
29
+ color: {
30
+ type: PropType<"primary" | "secondary">;
31
+ default: string;
32
+ };
33
+ /**
34
+ * Total number of steps.
35
+ */
36
+ steps: {
37
+ type: NumberConstructor;
38
+ };
39
+ /**
40
+ * Current step number.
41
+ */
42
+ currentStep: {
43
+ type: NumberConstructor;
44
+ };
45
+ /**
46
+ * Progress bar percentage, percentage usage will override steps & currentStep definition.
47
+ */
48
+ percentage: {
49
+ type: NumberConstructor;
50
+ };
51
+ }>>, {
52
+ color: "primary" | "secondary";
53
+ }, {}>;
54
+ export default _default;
@@ -0,0 +1,73 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
2
+ /**
3
+ * Boolean to change style if tabButton is selected
4
+ */
5
+ selected: {
6
+ type: BooleanConstructor;
7
+ default: boolean;
8
+ };
9
+ /**
10
+ * Id of the tab, used for aria prop
11
+ */
12
+ tab: {
13
+ type: StringConstructor;
14
+ required: true;
15
+ };
16
+ /**
17
+ * Href props to send to a link. If filled, it replaces the default comportment
18
+ */
19
+ href: {
20
+ type: StringConstructor;
21
+ required: false;
22
+ };
23
+ /**
24
+ * Label of the button. If filled, it replaces the default slot
25
+ */
26
+ label: {
27
+ type: StringConstructor;
28
+ required: false;
29
+ };
30
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
31
+ changeTab: () => void;
32
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
33
+ /**
34
+ * Boolean to change style if tabButton is selected
35
+ */
36
+ selected: {
37
+ type: BooleanConstructor;
38
+ default: boolean;
39
+ };
40
+ /**
41
+ * Id of the tab, used for aria prop
42
+ */
43
+ tab: {
44
+ type: StringConstructor;
45
+ required: true;
46
+ };
47
+ /**
48
+ * Href props to send to a link. If filled, it replaces the default comportment
49
+ */
50
+ href: {
51
+ type: StringConstructor;
52
+ required: false;
53
+ };
54
+ /**
55
+ * Label of the button. If filled, it replaces the default slot
56
+ */
57
+ label: {
58
+ type: StringConstructor;
59
+ required: false;
60
+ };
61
+ }>> & {
62
+ onChangeTab?: (() => any) | undefined;
63
+ }, {
64
+ selected: boolean;
65
+ }, {}>, {
66
+ default: (_: {}) => any;
67
+ }>;
68
+ export default _default;
69
+ type __VLS_WithTemplateSlots<T, S> = T & {
70
+ new (): {
71
+ $slots: S;
72
+ };
73
+ };
@@ -0,0 +1,55 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
2
+ /**
3
+ * A tab id or name must be provided for each `joy-tab`. It's used internally to reference
4
+ * the selected tab
5
+ */
6
+ tab: {
7
+ type: StringConstructor;
8
+ required: true;
9
+ };
10
+ /**
11
+ * The title given to the button
12
+ */
13
+ label: {
14
+ type: StringConstructor;
15
+ required: true;
16
+ };
17
+ /**
18
+ * Allow to have a link on the button. When clicking on the button, you will be redirected to the target of the URL.
19
+ */
20
+ href: {
21
+ type: StringConstructor;
22
+ required: false;
23
+ };
24
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
25
+ /**
26
+ * A tab id or name must be provided for each `joy-tab`. It's used internally to reference
27
+ * the selected tab
28
+ */
29
+ tab: {
30
+ type: StringConstructor;
31
+ required: true;
32
+ };
33
+ /**
34
+ * The title given to the button
35
+ */
36
+ label: {
37
+ type: StringConstructor;
38
+ required: true;
39
+ };
40
+ /**
41
+ * Allow to have a link on the button. When clicking on the button, you will be redirected to the target of the URL.
42
+ */
43
+ href: {
44
+ type: StringConstructor;
45
+ required: false;
46
+ };
47
+ }>>, {}, {}>, {
48
+ default: (_: {}) => any;
49
+ }>;
50
+ export default _default;
51
+ type __VLS_WithTemplateSlots<T, S> = T & {
52
+ new (): {
53
+ $slots: S;
54
+ };
55
+ };
@@ -0,0 +1,23 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
2
+ /** Use this prop to activate a specific tab by default by giving its name */
3
+ selectedTab: {
4
+ type: StringConstructor;
5
+ };
6
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
+ "update:selected-tab": (value: string) => void;
8
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
9
+ /** Use this prop to activate a specific tab by default by giving its name */
10
+ selectedTab: {
11
+ type: StringConstructor;
12
+ };
13
+ }>> & {
14
+ "onUpdate:selected-tab"?: ((value: string) => any) | undefined;
15
+ }, {}, {}>, {
16
+ default: (_: {}) => any;
17
+ }>;
18
+ export default _default;
19
+ type __VLS_WithTemplateSlots<T, S> = T & {
20
+ new (): {
21
+ $slots: S;
22
+ };
23
+ };
@@ -14,6 +14,7 @@ export * from './JoyLabel/JoyLabel.types';
14
14
  export * from './JoyLink/JoyLink.types';
15
15
  export * from './JoyLink/JoyLink.types';
16
16
  export * from './JoyPanel/JoyPanel.types';
17
+ export * from './JoyProgressBar/JoyProgressBar.types';
17
18
  export * from './JoyRadio/JoyRadio.types';
18
19
  export * from './JoyRadioGroup/JoyRadioGroup.types';
19
20
  export * from './JoyScreenLoader/VJoyScreenLoader.types';
@@ -13,14 +13,17 @@ import VJoyDropdownList from '@/components/JoyDropdownList/VJoyDropdownList.vue'
13
13
  import VJoyFilterBar from '@/components/JoyFilterBar/VJoyFilterBar.vue';
14
14
  import VJoyFilterBarButton from '@/components/JoyFilterBarButton/VJoyFilterBarButton.vue';
15
15
  import VJoyFormError from '@/components/JoyFormError/VJoyFormError.vue';
16
+ import VJoyFormFieldSkeleton from '@/components/JoyFormFieldSkeleton/VJoyFormFieldSkeleton.vue';
16
17
  import VJoyHighlight from '@/components/JoyHighlight/VJoyHighlight.vue';
17
18
  import VJoyIcon from '@/components/JoyIcon/VJoyIcon.vue';
18
19
  import VJoyInput from '@/components/JoyInput/VJoyInput.vue';
19
20
  import VJoyLabel from '@/components/JoyLabel/VJoyLabel.vue';
20
21
  import VJoyLink from '@/components/JoyLink/VJoyLink.vue';
21
22
  import VJoyMultiCheckbox from '@/components/JoyMultiCheckbox/VJoyMultiCheckbox.vue';
23
+ import VJoyPagination from '@/components/JoyPagination/VJoyPagination.vue';
22
24
  import VJoyPanel from '@/components/JoyPanel/VJoyPanel.vue';
23
25
  import VJoyPanelSection from '@/components/JoyPanelSection/VJoyPanelSection.vue';
26
+ import VJoyProgressBar from '@/components/JoyProgressBar/VJoyProgressBar.vue';
24
27
  import VJoyRadio from '@/components/JoyRadio/VJoyRadio.vue';
25
28
  import VJoyRadioGroup from '@/components/JoyRadioGroup/VJoyRadioGroup.vue';
26
29
  import VJoyRatingStars from '@/components/JoyRatingStars/VJoyRatingStars.vue';
@@ -31,10 +34,12 @@ import VJoySelectableItemGroup from '@/components/JoySelectableItemGroup/VJoySel
31
34
  import VJoySeparator from '@/components/JoySeparator/VJoySeparator.vue';
32
35
  import VJoySpinner from '@/components/JoySpinner/VJoySpinner.vue';
33
36
  import VJoyWrapper from '@/components/JoyWrapper/VJoyWrapper.vue';
37
+ import VJoyTabs from '@/components/JoyTabs/VJoyTabs.vue';
38
+ import VJoyTab from '@/components/JoyTab/VJoyTab.vue';
34
39
  import VJoyTag from '@/components/JoyTag/VJoyTag.vue';
35
40
  import VJoyTagsList from '@/components/JoyTagsList/VJoyTagsList.vue';
36
41
  import VJoyTemplate from '@/components/JoyTemplate/VJoyTemplate.vue';
37
42
  import VJoyTemplateShape from '@/components/JoyTemplateShape/VJoyTemplateShape.vue';
38
43
  import VJoyTextarea from '@/components/JoyTextarea/VJoyTextarea.vue';
39
44
  import VJoyToggle from '@/components/JoyToggle/VJoyToggle.vue';
40
- export { VJoyAvailability, VJoyAvatar, VJoyAvatarsList, VJoyBadge, VJoyBadgeLevel, VJoyButton, VJoyCheckbox, VJoyCompanyAvatar, VJoyCounter, VJoyDividerCta, VJoyDropdown, VJoyDropdownList, VJoyFilterBar, VJoyFilterBarButton, VJoyFormError, VJoyHighlight, VJoyIcon, VJoyInput, VJoyLabel, VJoyLink, VJoyMultiCheckbox, VJoyPanel, VJoyPanelSection, VJoyRadio, VJoyRadioGroup, VJoyRatingStars, VJoyScreenLoader, VJoySelect, VJoySelectableItem, VJoySelectableItemGroup, VJoySeparator, VJoySpinner, VJoyTag, VJoyTagsList, VJoyTemplate, VJoyTemplateShape, VJoyTextarea, VJoyToggle, VJoyWrapper, };
45
+ export { VJoyAvailability, VJoyAvatar, VJoyAvatarsList, VJoyBadge, VJoyBadgeLevel, VJoyButton, VJoyCheckbox, VJoyCompanyAvatar, VJoyCounter, VJoyDividerCta, VJoyDropdown, VJoyDropdownList, VJoyFilterBar, VJoyFilterBarButton, VJoyFormError, VJoyFormFieldSkeleton, VJoyHighlight, VJoyIcon, VJoyInput, VJoyLabel, VJoyLink, VJoyMultiCheckbox, VJoyPagination, VJoyPanel, VJoyPanelSection, VJoyProgressBar, VJoyRadio, VJoyRadioGroup, VJoyRatingStars, VJoyScreenLoader, VJoySelect, VJoySelectableItem, VJoySelectableItemGroup, VJoySeparator, VJoySpinner, VJoyTabs, VJoyTab, VJoyTag, VJoyTagsList, VJoyTemplate, VJoyTemplateShape, VJoyTextarea, VJoyToggle, VJoyWrapper, };