@maltjoy/core-vue 3.9.3 → 3.11.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.
Files changed (41) hide show
  1. package/dist/components/JoyAvailability/JoyAvailability.types.d.ts +2 -0
  2. package/dist/components/JoyAvailability/VJoyAvailability.vue.d.ts +28 -0
  3. package/dist/components/JoyAvatar/JoyAvatar.types.d.ts +13 -0
  4. package/dist/components/JoyAvatar/VJoyAvatar.vue.d.ts +60 -0
  5. package/dist/components/JoyAvatarsList/VJoyAvatarsList.vue.d.ts +17 -0
  6. package/dist/components/JoyBadge/VJoyBadge.vue.d.ts +2 -2
  7. package/dist/components/JoyButton/VJoyButton.vue.d.ts +4 -4
  8. package/dist/components/JoyCheckbox/VJoyCheckbox.vue.d.ts +3 -3
  9. package/dist/components/JoyCounter/VJoyCounter.vue.d.ts +12 -12
  10. package/dist/components/JoyDropdown/VJoyDropdown.vue.d.ts +4 -4
  11. package/dist/components/JoyHighlight/JoyHighlight.types.d.ts +1 -1
  12. package/dist/components/JoyHighlight/VJoyHighlight.vue.d.ts +3 -3
  13. package/dist/components/JoyIcon/JoyIcon.types.d.ts +1 -1
  14. package/dist/components/JoyIcon/VJoyIcon.vue.d.ts +6 -6
  15. package/dist/components/JoyInput/VJoyInput.vue.d.ts +17 -4
  16. package/dist/components/JoyLabel/VJoyLabel.vue.d.ts +3 -3
  17. package/dist/components/JoyMultiCheckbox/VJoyMultiCheckbox.vue.d.ts +4 -4
  18. package/dist/components/JoyRadio/VJoyRadio.vue.d.ts +1 -1
  19. package/dist/components/JoySelect/VJoySelect.vue.d.ts +5 -8
  20. package/dist/components/JoySelectableItem/VJoySelectableItem.vue.d.ts +1 -1
  21. package/dist/components/JoySelectableItemGroup/VJoySelectableItemGroup.vue.d.ts +7 -7
  22. package/dist/components/JoyTag/JoyTag.types.d.ts +13 -0
  23. package/dist/components/JoyTag/VJoyTag.vue.d.ts +80 -0
  24. package/dist/components/JoyTagsList/JoyTagsList.types.d.ts +5 -0
  25. package/dist/components/JoyTagsList/VJoyTagsList.vue.d.ts +44 -0
  26. package/dist/components/JoyTextarea/VJoyTextarea.vue.d.ts +18 -5
  27. package/dist/components/JoyToggle/VJoyToggle.vue.d.ts +2 -2
  28. package/dist/components/JoyWrapper/JoyWrapper.types.d.ts +2 -0
  29. package/dist/components/JoyWrapper/VJoyWrapper.vue.d.ts +31 -9
  30. package/dist/components/components.types.d.ts +4 -0
  31. package/dist/components/index.d.ts +6 -1
  32. package/dist/composables/props.d.ts +1 -1
  33. package/dist/joy-vue.js +1227 -907
  34. package/dist/joy-vue.umd.cjs +1 -1
  35. package/dist/style.css +1 -1
  36. package/dist/tests/composables/test-components/CheckboxFormProps.vue.d.ts +2 -2
  37. package/dist/tests/composables/test-components/GenericFormProps.vue.d.ts +1 -1
  38. package/dist/tests/composables/test-components/GenericFormPropsWithLabel.vue.d.ts +4 -4
  39. package/dist/types/index.d.ts +2 -0
  40. package/joy-components.d.ts +5 -0
  41. package/package.json +5 -4
@@ -0,0 +1,80 @@
1
+ import { PropType } from 'vue';
2
+ import { TagSizes } from './JoyTag.types';
3
+ declare const _default: import("vue").DefineComponent<{
4
+ /** Text injected within the tag */
5
+ label: {
6
+ type: StringConstructor;
7
+ required: true;
8
+ };
9
+ size: {
10
+ type: PropType<TagSizes>;
11
+ default: string;
12
+ };
13
+ variant: {
14
+ type: PropType<"primary" | "secondary" | "important" | "inactive" | "pending" | "pricing">;
15
+ default: string;
16
+ };
17
+ /** Use v-model:selected */
18
+ selected: BooleanConstructor;
19
+ selectable: BooleanConstructor;
20
+ /** Mandatory, especially if you deal with tags list and v-model */
21
+ value: {
22
+ type: StringConstructor;
23
+ required: true;
24
+ };
25
+ draggable: {
26
+ type: BooleanConstructor;
27
+ default: boolean;
28
+ };
29
+ removable: {
30
+ type: BooleanConstructor;
31
+ default: boolean;
32
+ };
33
+ link: {
34
+ type: BooleanConstructor;
35
+ default: boolean;
36
+ };
37
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
38
+ /** Text injected within the tag */
39
+ label: {
40
+ type: StringConstructor;
41
+ required: true;
42
+ };
43
+ size: {
44
+ type: PropType<TagSizes>;
45
+ default: string;
46
+ };
47
+ variant: {
48
+ type: PropType<"primary" | "secondary" | "important" | "inactive" | "pending" | "pricing">;
49
+ default: string;
50
+ };
51
+ /** Use v-model:selected */
52
+ selected: BooleanConstructor;
53
+ selectable: BooleanConstructor;
54
+ /** Mandatory, especially if you deal with tags list and v-model */
55
+ value: {
56
+ type: StringConstructor;
57
+ required: true;
58
+ };
59
+ draggable: {
60
+ type: BooleanConstructor;
61
+ default: boolean;
62
+ };
63
+ removable: {
64
+ type: BooleanConstructor;
65
+ default: boolean;
66
+ };
67
+ link: {
68
+ type: BooleanConstructor;
69
+ default: boolean;
70
+ };
71
+ }>>, {
72
+ link: boolean;
73
+ size: TagSizes;
74
+ variant: "primary" | "secondary" | "important" | "inactive" | "pending" | "pricing";
75
+ selected: boolean;
76
+ selectable: boolean;
77
+ draggable: boolean;
78
+ removable: boolean;
79
+ }, {}>;
80
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import { IJoyTag } from '../JoyTag/JoyTag.types';
2
+ export declare const TAGS_LIST_ALIGN: readonly ["center", "left", "right"];
3
+ export type TagsListAlign = (typeof TAGS_LIST_ALIGN)[number];
4
+ export type TJoyTagsList = IJoyTag[];
5
+ export type TJoyTagsListModel = IJoyTag['value'][];
@@ -0,0 +1,44 @@
1
+ import { PropType } from 'vue';
2
+ import { TJoyTagsListModel, TJoyTagsList } from './JoyTagsList.types';
3
+ declare const _default: import("vue").DefineComponent<{
4
+ align: {
5
+ type: PropType<"left" | "right" | "center">;
6
+ default: string;
7
+ };
8
+ modelValue: {
9
+ type: PropType<TJoyTagsListModel>;
10
+ };
11
+ tags: {
12
+ type: PropType<TJoyTagsList>;
13
+ default(): never[];
14
+ required: true;
15
+ };
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
+ removable: {
18
+ type: BooleanConstructor;
19
+ default: boolean;
20
+ };
21
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
22
+ align: {
23
+ type: PropType<"left" | "right" | "center">;
24
+ default: string;
25
+ };
26
+ modelValue: {
27
+ type: PropType<TJoyTagsListModel>;
28
+ };
29
+ tags: {
30
+ type: PropType<TJoyTagsList>;
31
+ default(): never[];
32
+ required: true;
33
+ };
34
+ /** You can either pass this property to make all generated tags removable, or pass the `removable: true` to each tag in "tags" prop. */
35
+ removable: {
36
+ type: BooleanConstructor;
37
+ default: boolean;
38
+ };
39
+ }>>, {
40
+ removable: boolean;
41
+ align: "left" | "right" | "center";
42
+ tags: TJoyTagsList;
43
+ }, {}>;
44
+ export default _default;
@@ -20,7 +20,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
20
20
  };
21
21
  label: StringConstructor;
22
22
  labelSize: {
23
- type: PropType<"small" | "medium" | "large">;
23
+ type: PropType<"small" | "large" | "medium">;
24
24
  default: string;
25
25
  };
26
26
  optionalLabel: StringConstructor;
@@ -32,6 +32,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
32
32
  type: StringConstructor;
33
33
  default: string;
34
34
  };
35
+ modelModifiers: {
36
+ default: () => {
37
+ lazy: boolean;
38
+ };
39
+ };
35
40
  autogrow: {
36
41
  type: BooleanConstructor;
37
42
  default: boolean;
@@ -70,7 +75,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
70
75
  };
71
76
  label: StringConstructor;
72
77
  labelSize: {
73
- type: PropType<"small" | "medium" | "large">;
78
+ type: PropType<"small" | "large" | "medium">;
74
79
  default: string;
75
80
  };
76
81
  optionalLabel: StringConstructor;
@@ -82,6 +87,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
82
87
  type: StringConstructor;
83
88
  default: string;
84
89
  };
90
+ modelModifiers: {
91
+ default: () => {
92
+ lazy: boolean;
93
+ };
94
+ };
85
95
  autogrow: {
86
96
  type: BooleanConstructor;
87
97
  default: boolean;
@@ -96,12 +106,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
96
106
  }>> & {
97
107
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
98
108
  }, {
99
- disabled: boolean;
100
109
  required: boolean;
110
+ disabled: boolean;
101
111
  invalid: boolean;
102
- modelValue: string;
103
- labelSize: "small" | "medium" | "large";
112
+ labelSize: "small" | "large" | "medium";
104
113
  requiredMark: boolean;
114
+ modelValue: string;
115
+ modelModifiers: {
116
+ lazy: boolean;
117
+ };
105
118
  autogrow: boolean;
106
119
  }, {}>, {
107
120
  default: (_: {}) => any;
@@ -57,9 +57,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
57
57
  }>> & {
58
58
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
59
59
  }, {
60
- disabled: boolean;
61
- value: string;
62
60
  required: boolean;
61
+ value: string;
62
+ disabled: boolean;
63
63
  invalid: boolean;
64
64
  modelValue: boolean;
65
65
  }, {}>, {
@@ -6,3 +6,5 @@ export declare const DIRECTION_WRAPPER: readonly ["row", "column"];
6
6
  export type DirectionWrapper = (typeof DIRECTION_WRAPPER)[number];
7
7
  export declare const WRAP_WRAPPER: readonly ["nowrap", "wrap"];
8
8
  export type WrapWrapper = (typeof WRAP_WRAPPER)[number];
9
+ export declare const GAP_WRAPPER: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"];
10
+ export type GapWrapper = (typeof GAP_WRAPPER)[number];
@@ -2,17 +2,17 @@ import { PropType } from 'vue';
2
2
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
3
3
  /** Horizontal spread. Refers to CSS flex justify-content. */
4
4
  justify: {
5
- type: PropType<"flex-end" | "center" | "space-between" | "flex-start">;
5
+ type: PropType<"center" | "space-between" | "flex-start" | "flex-end">;
6
6
  default: string;
7
7
  };
8
8
  /** Vertical spread. Refers to CSS flex align-items. */
9
9
  align: {
10
- type: PropType<"flex-end" | "stretch" | "center" | "flex-start">;
10
+ type: PropType<"center" | "flex-start" | "flex-end" | "stretch">;
11
11
  default: string;
12
12
  };
13
13
  /** Vertical flex, or horizontal. Refers to CSS flex-direction */
14
14
  direction: {
15
- type: PropType<"column" | "row">;
15
+ type: PropType<"row" | "column">;
16
16
  default: string;
17
17
  };
18
18
  /** Automatically sets new line if there are not enough horizontal space. Refers to CSS flex-wrap */
@@ -29,20 +29,30 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
29
29
  type: BooleanConstructor;
30
30
  default: boolean;
31
31
  };
32
+ /** Gap between the columns. Refers to CSS column-gap. Value is based on spacing tokens. */
33
+ columnGap: {
34
+ type: PropType<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12">;
35
+ default: string;
36
+ };
37
+ /** Gap between the rows. Refers to CSS row-gap. Value is based on spacing tokens. */
38
+ rowGap: {
39
+ type: PropType<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12">;
40
+ default: string;
41
+ };
32
42
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
33
43
  /** Horizontal spread. Refers to CSS flex justify-content. */
34
44
  justify: {
35
- type: PropType<"flex-end" | "center" | "space-between" | "flex-start">;
45
+ type: PropType<"center" | "space-between" | "flex-start" | "flex-end">;
36
46
  default: string;
37
47
  };
38
48
  /** Vertical spread. Refers to CSS flex align-items. */
39
49
  align: {
40
- type: PropType<"flex-end" | "stretch" | "center" | "flex-start">;
50
+ type: PropType<"center" | "flex-start" | "flex-end" | "stretch">;
41
51
  default: string;
42
52
  };
43
53
  /** Vertical flex, or horizontal. Refers to CSS flex-direction */
44
54
  direction: {
45
- type: PropType<"column" | "row">;
55
+ type: PropType<"row" | "column">;
46
56
  default: string;
47
57
  };
48
58
  /** Automatically sets new line if there are not enough horizontal space. Refers to CSS flex-wrap */
@@ -59,13 +69,25 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
59
69
  type: BooleanConstructor;
60
70
  default: boolean;
61
71
  };
72
+ /** Gap between the columns. Refers to CSS column-gap. Value is based on spacing tokens. */
73
+ columnGap: {
74
+ type: PropType<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12">;
75
+ default: string;
76
+ };
77
+ /** Gap between the rows. Refers to CSS row-gap. Value is based on spacing tokens. */
78
+ rowGap: {
79
+ type: PropType<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12">;
80
+ default: string;
81
+ };
62
82
  }>>, {
63
83
  wrap: "nowrap" | "wrap";
64
- align: "flex-end" | "stretch" | "center" | "flex-start";
65
- direction: "column" | "row";
66
- justify: "flex-end" | "center" | "space-between" | "flex-start";
84
+ align: "center" | "flex-start" | "flex-end" | "stretch";
85
+ direction: "row" | "column";
86
+ justify: "center" | "space-between" | "flex-start" | "flex-end";
67
87
  itemStretch: boolean;
68
88
  noMargin: boolean;
89
+ columnGap: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12";
90
+ rowGap: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12";
69
91
  }, {}>, {
70
92
  default: (_: {}) => any;
71
93
  }>;
@@ -1,3 +1,5 @@
1
+ export * from './JoyAvailability/JoyAvailability.types';
2
+ export * from './JoyAvatar/JoyAvatar.types';
1
3
  export * from './JoyBadge/JoyBadge.types';
2
4
  export * from './JoyButton/JoyButton.types';
3
5
  export * from './JoyDropdown/JoyDropdown.types';
@@ -15,6 +17,8 @@ export * from './JoyRadioGroup/JoyRadioGroup.types';
15
17
  export * from './JoyScreenLoader/VJoyScreenLoader.types';
16
18
  export * from './JoySelect/JoySelect.types';
17
19
  export * from './JoySpinner/JoySpinner.types';
20
+ export * from './JoyTag/JoyTag.types';
21
+ export * from './JoyTagsList/JoyTagsList.types';
18
22
  export * from './JoyTemplate/JoyTemplate.types';
19
23
  export * from './JoyTemplate/JoyTemplate.types';
20
24
  export * from './JoyWrapper/JoyWrapper.types';
@@ -1,3 +1,6 @@
1
+ import VJoyAvailability from '@/components/JoyAvailability/VJoyAvailability.vue';
2
+ import VJoyAvatar from '@/components/JoyAvatar/VJoyAvatar.vue';
3
+ import VJoyAvatarsList from '@/components/JoyAvatarsList/VJoyAvatarsList.vue';
1
4
  import VJoyBadge from '@/components/JoyBadge/VJoyBadge.vue';
2
5
  import VJoyButton from '@/components/JoyButton/VJoyButton.vue';
3
6
  import VJoyCheckbox from '@/components/JoyCheckbox/VJoyCheckbox.vue';
@@ -21,7 +24,9 @@ import VJoySelectableItem from '@/components/JoySelectableItem/VJoySelectableIte
21
24
  import VJoySelectableItemGroup from '@/components/JoySelectableItemGroup/VJoySelectableItemGroup.vue';
22
25
  import VJoySpinner from '@/components/JoySpinner/VJoySpinner.vue';
23
26
  import VJoyWrapper from '@/components/JoyWrapper/VJoyWrapper.vue';
27
+ import VJoyTag from '@/components/JoyTag/VJoyTag.vue';
28
+ import VJoyTagsList from '@/components/JoyTagsList/VJoyTagsList.vue';
24
29
  import VJoyTemplate from '@/components/JoyTemplate/VJoyTemplate.vue';
25
30
  import VJoyTextarea from '@/components/JoyTextarea/VJoyTextarea.vue';
26
31
  import VJoyToggle from '@/components/JoyToggle/VJoyToggle.vue';
27
- export { VJoyBadge, VJoyButton, VJoyCheckbox, VJoyCounter, VJoyDropdown, VJoyDropdownList, VJoyFormError, VJoyHighlight, VJoyIcon, VJoyInput, VJoyLabel, VJoyLink, VJoyMultiCheckbox, VJoyPanel, VJoyPanelSection, VJoyRadio, VJoyRadioGroup, VJoyScreenLoader, VJoySelect, VJoySelectableItem, VJoySelectableItemGroup, VJoySpinner, VJoyTemplate, VJoyTextarea, VJoyToggle, VJoyWrapper, };
32
+ export { VJoyAvailability, VJoyAvatar, VJoyAvatarsList, VJoyBadge, VJoyButton, VJoyCheckbox, VJoyCounter, VJoyDropdown, VJoyDropdownList, VJoyFormError, VJoyHighlight, VJoyIcon, VJoyInput, VJoyLabel, VJoyLink, VJoyMultiCheckbox, VJoyPanel, VJoyPanelSection, VJoyRadio, VJoyRadioGroup, VJoyScreenLoader, VJoySelect, VJoySelectableItem, VJoySelectableItemGroup, VJoySpinner, VJoyTag, VJoyTagsList, VJoyTemplate, VJoyTextarea, VJoyToggle, VJoyWrapper, };
@@ -61,7 +61,7 @@ export declare const CHECKBOX_BASED_PROPS: {
61
61
  export declare const LABEL_BASED_PROPS: {
62
62
  label: StringConstructor;
63
63
  labelSize: {
64
- type: PropType<"small" | "medium" | "large">;
64
+ type: PropType<"small" | "large" | "medium">;
65
65
  default: string;
66
66
  };
67
67
  optionalLabel: StringConstructor;