@maltjoy/core-vue 3.9.3 → 3.10.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 (40) 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 +5 -5
  8. package/dist/components/JoyCheckbox/VJoyCheckbox.vue.d.ts +3 -3
  9. package/dist/components/JoyCounter/VJoyCounter.vue.d.ts +13 -13
  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 +5 -5
  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 +4 -4
  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 +33 -0
  26. package/dist/components/JoyTextarea/VJoyTextarea.vue.d.ts +5 -5
  27. package/dist/components/JoyToggle/VJoyToggle.vue.d.ts +2 -2
  28. package/dist/components/JoyWrapper/VJoyWrapper.vue.d.ts +9 -9
  29. package/dist/components/components.types.d.ts +4 -0
  30. package/dist/components/index.d.ts +5 -1
  31. package/dist/composables/props.d.ts +1 -1
  32. package/dist/joy-vue.js +1184 -941
  33. package/dist/joy-vue.umd.cjs +1 -1
  34. package/dist/style.css +1 -1
  35. package/dist/tests/composables/test-components/CheckboxFormProps.vue.d.ts +2 -2
  36. package/dist/tests/composables/test-components/GenericFormProps.vue.d.ts +1 -1
  37. package/dist/tests/composables/test-components/GenericFormPropsWithLabel.vue.d.ts +4 -4
  38. package/dist/types/index.d.ts +2 -0
  39. package/joy-components.d.ts +5 -0
  40. 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
+ size: TagSizes;
73
+ link: boolean;
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,33 @@
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
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
17
+ align: {
18
+ type: PropType<"left" | "right" | "center">;
19
+ default: string;
20
+ };
21
+ modelValue: {
22
+ type: PropType<TJoyTagsListModel>;
23
+ };
24
+ tags: {
25
+ type: PropType<TJoyTagsList>;
26
+ default(): never[];
27
+ required: true;
28
+ };
29
+ }>>, {
30
+ align: "left" | "right" | "center";
31
+ tags: TJoyTagsList;
32
+ }, {}>;
33
+ 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<"large" | "medium" | "small">;
24
24
  default: string;
25
25
  };
26
26
  optionalLabel: StringConstructor;
@@ -70,7 +70,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
70
70
  };
71
71
  label: StringConstructor;
72
72
  labelSize: {
73
- type: PropType<"small" | "medium" | "large">;
73
+ type: PropType<"large" | "medium" | "small">;
74
74
  default: string;
75
75
  };
76
76
  optionalLabel: StringConstructor;
@@ -96,12 +96,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
96
96
  }>> & {
97
97
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
98
98
  }, {
99
- disabled: boolean;
100
99
  required: boolean;
100
+ disabled: boolean;
101
101
  invalid: boolean;
102
- modelValue: string;
103
- labelSize: "small" | "medium" | "large";
102
+ labelSize: "large" | "medium" | "small";
104
103
  requiredMark: boolean;
104
+ modelValue: string;
105
105
  autogrow: boolean;
106
106
  }, {}>, {
107
107
  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
  }, {}>, {
@@ -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 */
@@ -32,17 +32,17 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
32
32
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
33
33
  /** Horizontal spread. Refers to CSS flex justify-content. */
34
34
  justify: {
35
- type: PropType<"flex-end" | "center" | "space-between" | "flex-start">;
35
+ type: PropType<"center" | "space-between" | "flex-start" | "flex-end">;
36
36
  default: string;
37
37
  };
38
38
  /** Vertical spread. Refers to CSS flex align-items. */
39
39
  align: {
40
- type: PropType<"flex-end" | "stretch" | "center" | "flex-start">;
40
+ type: PropType<"center" | "flex-start" | "flex-end" | "stretch">;
41
41
  default: string;
42
42
  };
43
43
  /** Vertical flex, or horizontal. Refers to CSS flex-direction */
44
44
  direction: {
45
- type: PropType<"column" | "row">;
45
+ type: PropType<"row" | "column">;
46
46
  default: string;
47
47
  };
48
48
  /** Automatically sets new line if there are not enough horizontal space. Refers to CSS flex-wrap */
@@ -61,9 +61,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
61
61
  };
62
62
  }>>, {
63
63
  wrap: "nowrap" | "wrap";
64
- align: "flex-end" | "stretch" | "center" | "flex-start";
65
- direction: "column" | "row";
66
- justify: "flex-end" | "center" | "space-between" | "flex-start";
64
+ align: "center" | "flex-start" | "flex-end" | "stretch";
65
+ direction: "row" | "column";
66
+ justify: "center" | "space-between" | "flex-start" | "flex-end";
67
67
  itemStretch: boolean;
68
68
  noMargin: boolean;
69
69
  }, {}>, {
@@ -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,5 @@
1
+ import VJoyAvatar from '@/components/JoyAvatar/VJoyAvatar.vue';
2
+ import VJoyAvatarsList from '@/components/JoyAvatarsList/VJoyAvatarsList.vue';
1
3
  import VJoyBadge from '@/components/JoyBadge/VJoyBadge.vue';
2
4
  import VJoyButton from '@/components/JoyButton/VJoyButton.vue';
3
5
  import VJoyCheckbox from '@/components/JoyCheckbox/VJoyCheckbox.vue';
@@ -21,7 +23,9 @@ import VJoySelectableItem from '@/components/JoySelectableItem/VJoySelectableIte
21
23
  import VJoySelectableItemGroup from '@/components/JoySelectableItemGroup/VJoySelectableItemGroup.vue';
22
24
  import VJoySpinner from '@/components/JoySpinner/VJoySpinner.vue';
23
25
  import VJoyWrapper from '@/components/JoyWrapper/VJoyWrapper.vue';
26
+ import VJoyTag from '@/components/JoyTag/VJoyTag.vue';
27
+ import VJoyTagsList from '@/components/JoyTagsList/VJoyTagsList.vue';
24
28
  import VJoyTemplate from '@/components/JoyTemplate/VJoyTemplate.vue';
25
29
  import VJoyTextarea from '@/components/JoyTextarea/VJoyTextarea.vue';
26
30
  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, };
31
+ export { 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<"large" | "medium" | "small">;
65
65
  default: string;
66
66
  };
67
67
  optionalLabel: StringConstructor;