@maltjoy/core-vue 3.27.1 → 3.27.2

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 (97) hide show
  1. package/README.md +1 -0
  2. package/dist/components/JoyAvailability/JoyAvailability.types.d.ts +2 -1
  3. package/dist/components/JoyAvailability/VJoyAvailability.vue.d.ts +3 -4
  4. package/dist/components/JoyAvatar/JoyAvatar.types.d.ts +6 -4
  5. package/dist/components/JoyAvatar/VJoyAvatar.vue.d.ts +3 -3
  6. package/dist/components/JoyAvatarsList/VJoyAvatarsList.vue.d.ts +4 -14
  7. package/dist/components/JoyBadge/JoyBadge.types.d.ts +2 -1
  8. package/dist/components/JoyBadge/VJoyBadge.vue.d.ts +8 -14
  9. package/dist/components/JoyBadgeLevel/VJoyBadgeLevel.vue.d.ts +4 -8
  10. package/dist/components/JoyBlockSkeleton/VJoyBlockSkeleton.vue.d.ts +0 -2
  11. package/dist/components/JoyBottomSheet/VJoyBottomSheet.vue.d.ts +7 -20
  12. package/dist/components/JoyBottomSheetTrigger/VJoyBottomSheetTrigger.vue.d.ts +6 -12
  13. package/dist/components/JoyButton/JoyButton.types.d.ts +20 -4
  14. package/dist/components/JoyButton/VJoyButton.vue.d.ts +13 -13
  15. package/dist/components/JoyCheckbox/VJoyCheckbox.vue.d.ts +3 -10
  16. package/dist/components/JoyCollapse/VJoyCollapse.vue.d.ts +4 -10
  17. package/dist/components/JoyCollapseItem/VJoyCollapseItem.vue.d.ts +4 -12
  18. package/dist/components/JoyCompanyAvatar/JoyCompanyAvatar.types.d.ts +3 -2
  19. package/dist/components/JoyCompanyAvatar/VJoyCompanyAvatar.vue.d.ts +0 -6
  20. package/dist/components/JoyCounter/VJoyCounter.vue.d.ts +6 -11
  21. package/dist/components/JoyDialog/JoyDialog.types.d.ts +3 -2
  22. package/dist/components/JoyDialog/VJoyDialog.vue.d.ts +8 -30
  23. package/dist/components/JoyDialogTrigger/VJoyDialogTrigger.vue.d.ts +20 -56
  24. package/dist/components/JoyDividerCta/VJoyDividerCta.vue.d.ts +3 -10
  25. package/dist/components/JoyDrawer/JoyDrawer.types.d.ts +2 -1
  26. package/dist/components/JoyDrawer/VJoyDrawer.vue.d.ts +12 -32
  27. package/dist/components/JoyDrawerTrigger/VJoyDrawerTrigger.vue.d.ts +30 -64
  28. package/dist/components/JoyDropdown/JoyDropdown.types.d.ts +4 -3
  29. package/dist/components/JoyDropdown/VJoyDropdown.vue.d.ts +22 -29
  30. package/dist/components/JoyDropdownList/JoyDropdownList.types.d.ts +3 -2
  31. package/dist/components/JoyDropdownList/VJoyDropdownList.vue.d.ts +21 -22
  32. package/dist/components/JoyFilterBar/VJoyFilterBar.vue.d.ts +2 -8
  33. package/dist/components/JoyFilterBarButton/VJoyFilterBarButton.vue.d.ts +2 -10
  34. package/dist/components/JoyFormError/VJoyFormError.vue.d.ts +2 -6
  35. package/dist/components/JoyFunnel/JoyFunnel.types.d.ts +4 -2
  36. package/dist/components/JoyFunnel/VJoyFunnel.vue.d.ts +1 -8
  37. package/dist/components/JoyHighlight/JoyHighlight.types.d.ts +4 -2
  38. package/dist/components/JoyHighlight/VJoyHighlight.vue.d.ts +9 -21
  39. package/dist/components/JoyIcon/JoyIcon.types.d.ts +4 -3
  40. package/dist/components/JoyIcon/VJoyIcon.vue.d.ts +6 -9
  41. package/dist/components/JoyIndicator/VJoyIndicator.vue.d.ts +3 -4
  42. package/dist/components/JoyIndicators/JoyIndicators.types.d.ts +2 -1
  43. package/dist/components/JoyIndicators/VJoyIndicators.vue.d.ts +6 -9
  44. package/dist/components/JoyInput/JoyInput.types.d.ts +3 -2
  45. package/dist/components/JoyInput/VJoyInput.vue.d.ts +7 -10
  46. package/dist/components/JoyLabel/JoyLabel.types.d.ts +3 -2
  47. package/dist/components/JoyLabel/VJoyLabel.vue.d.ts +7 -10
  48. package/dist/components/JoyLink/JoyLink.types.d.ts +2 -1
  49. package/dist/components/JoyLink/VJoyLink.vue.d.ts +7 -8
  50. package/dist/components/JoyMenu/VJoyMenu.vue.d.ts +10 -6
  51. package/dist/components/JoyMultiCheckbox/VJoyMultiCheckbox.vue.d.ts +19 -16
  52. package/dist/components/JoyPagination/VJoyPagination.vue.d.ts +6 -14
  53. package/dist/components/JoyPanel/JoyPanel.types.d.ts +5 -3
  54. package/dist/components/JoyPanel/VJoyPanel.vue.d.ts +14 -30
  55. package/dist/components/JoyProgressBar/JoyProgressBar.types.d.ts +3 -2
  56. package/dist/components/JoyProgressBar/VJoyProgressBar.vue.d.ts +3 -5
  57. package/dist/components/JoyRadio/JoyRadio.types.d.ts +2 -1
  58. package/dist/components/JoyRadio/VJoyRadio.vue.d.ts +7 -20
  59. package/dist/components/JoyRadioGroup/JoyRadioGroup.types.d.ts +2 -1
  60. package/dist/components/JoyRadioGroup/VJoyRadioGroup.vue.d.ts +6 -14
  61. package/dist/components/JoyRatingStars/JoyRatingStars.types.d.ts +3 -2
  62. package/dist/components/JoyRatingStars/VJoyRatingStars.vue.d.ts +2 -10
  63. package/dist/components/JoyScreenLoader/VJoyScreenLoader.types.d.ts +2 -1
  64. package/dist/components/JoyScreenLoader/VJoyScreenLoader.vue.d.ts +6 -14
  65. package/dist/components/JoySelect/JoySelect.types.d.ts +3 -2
  66. package/dist/components/JoySelect/VJoySelect.vue.d.ts +4 -9
  67. package/dist/components/JoySelectableItemGroup/VJoySelectableItemGroup.vue.d.ts +65 -10
  68. package/dist/components/JoySeparator/JoySeparator.types.d.ts +3 -2
  69. package/dist/components/JoySnackbar/JoySnackbar.types.d.ts +3 -2
  70. package/dist/components/JoySnackbar/VJoySnackbar.vue.d.ts +2 -6
  71. package/dist/components/JoySnackbar/index.d.ts +1 -1
  72. package/dist/components/JoySpinner/JoySpinner.types.d.ts +2 -1
  73. package/dist/components/JoySpinner/VJoySpinner.vue.d.ts +4 -2
  74. package/dist/components/JoyStep/VJoyStep.vue.d.ts +2 -14
  75. package/dist/components/JoyStepper/VJoyStepper.vue.d.ts +2 -10
  76. package/dist/components/JoyTabs/VJoyTabs.vue.d.ts +0 -2
  77. package/dist/components/JoyTag/JoyTag.types.d.ts +5 -3
  78. package/dist/components/JoyTag/VJoyTag.vue.d.ts +3 -13
  79. package/dist/components/JoyTagsInput/VJoyTagsInput.vue.d.ts +19 -34
  80. package/dist/components/JoyTagsList/JoyTagsList.types.d.ts +2 -1
  81. package/dist/components/JoyTagsList/VJoyTagsList.vue.d.ts +9 -9
  82. package/dist/components/JoyTemplate/JoyTemplate.types.d.ts +2 -1
  83. package/dist/components/JoyTemplate/VJoyTemplate.vue.d.ts +15 -67
  84. package/dist/components/JoyText/VJoyText.vue.d.ts +2 -6
  85. package/dist/components/JoyTextarea/VJoyTextarea.vue.d.ts +5 -6
  86. package/dist/components/JoyToggle/VJoyToggle.vue.d.ts +2 -6
  87. package/dist/components/JoyTooltip/JoyTooltip.types.d.ts +1 -0
  88. package/dist/components/JoyUserCard/VJoyUserCard.vue.d.ts +6 -20
  89. package/dist/components/JoyWrapper/JoyWrapper.types.d.ts +10 -5
  90. package/dist/components/JoyWrapper/VJoyWrapper.vue.d.ts +18 -19
  91. package/dist/components/main.d.ts +1 -1
  92. package/dist/helpers/index.d.ts +2 -2
  93. package/dist/joy-vue.js +2190 -2117
  94. package/dist/joy-vue.umd.cjs +4 -4
  95. package/dist/style.css +1 -1
  96. package/dist/types/index.d.ts +10 -7
  97. package/package.json +24 -20
@@ -17,7 +17,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
17
17
  subTitle: {
18
18
  type: StringConstructor;
19
19
  };
20
- /** Introduce a VJoyRatingStars component with given rating */
21
20
  ratingValue: {
22
21
  type: NumberConstructor;
23
22
  };
@@ -40,28 +39,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
40
39
  subTitle: {
41
40
  type: StringConstructor;
42
41
  };
43
- /** Introduce a VJoyRatingStars component with given rating */
44
42
  ratingValue: {
45
43
  type: NumberConstructor;
46
44
  };
47
- }>>, {}, {}>, Readonly<{
48
- default(): any;
49
- /** Customize the VJoyAvatar component by using this slot */
50
- 'user-card-avatar': () => any;
51
- /** User name, basically */
52
- 'user-card-title': () => any;
53
- 'user-card-subtitle': () => any;
54
- /** Use your own customized VJoyRatingStars here, if needed */
55
- 'user-card-rating-stars': () => any;
56
- }> & {
57
- default(): any;
58
- /** Customize the VJoyAvatar component by using this slot */
59
- 'user-card-avatar': () => any;
60
- /** User name, basically */
61
- 'user-card-title': () => any;
62
- 'user-card-subtitle': () => any;
63
- /** Use your own customized VJoyRatingStars here, if needed */
64
- 'user-card-rating-stars': () => any;
45
+ }>>, {}, {}>, {
46
+ "user-card-avatar"?(_: {}): any;
47
+ "user-card-title"?(_: {}): any;
48
+ "user-card-subtitle"?(_: {}): any;
49
+ "user-card-rating-stars"?(_: {}): any;
50
+ default?(_: {}): any;
65
51
  }>;
66
52
  export default _default;
67
53
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1,5 +1,10 @@
1
- export type TJoyWrapperJustify = 'center' | 'space-between' | 'flex-start' | 'flex-end';
2
- export type TJoyWrapperAlign = 'center' | 'flex-start' | 'flex-end' | 'stretch';
3
- export type TJoyWrapperDirection = 'row' | 'column';
4
- export type TJoyWrapperWrap = 'nowrap' | 'wrap';
5
- export type TJoyWrapperGap = '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12';
1
+ export declare const JUSTIFY_WRAPPER: readonly ["center", "space-between", "flex-start", "flex-end"];
2
+ export type TJoyWrapperJustify = (typeof JUSTIFY_WRAPPER)[number];
3
+ export declare const ALIGN_WRAPPER: readonly ["center", "flex-start", "flex-end", "stretch"];
4
+ export type TJoyWrapperAlign = (typeof ALIGN_WRAPPER)[number];
5
+ export declare const DIRECTION_WRAPPER: readonly ["row", "column"];
6
+ export type TJoyWrapperDirection = (typeof DIRECTION_WRAPPER)[number];
7
+ export declare const WRAP_WRAPPER: readonly ["nowrap", "wrap"];
8
+ export type TJoyWrapperWrap = (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 TJoyWrapperGap = (typeof GAP_WRAPPER)[number];
@@ -1,24 +1,23 @@
1
1
  import { PropType } from 'vue';
2
- import { TJoyWrapperAlign, TJoyWrapperDirection, TJoyWrapperGap, TJoyWrapperJustify, TJoyWrapperWrap } from './JoyWrapper.types';
3
2
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
4
3
  /** Horizontal spread. Refers to CSS flex justify-content. */
5
4
  justify: {
6
- type: PropType<TJoyWrapperJustify>;
5
+ type: PropType<"center" | "space-between" | "flex-start" | "flex-end">;
7
6
  default: string;
8
7
  };
9
8
  /** Vertical spread. Refers to CSS flex align-items. */
10
9
  align: {
11
- type: PropType<TJoyWrapperAlign>;
10
+ type: PropType<"center" | "flex-start" | "flex-end" | "stretch">;
12
11
  default: string;
13
12
  };
14
13
  /** Vertical flex, or horizontal. Refers to CSS flex-direction */
15
14
  direction: {
16
- type: PropType<TJoyWrapperDirection>;
15
+ type: PropType<"row" | "column">;
17
16
  default: string;
18
17
  };
19
18
  /** Automatically sets new line if there are not enough horizontal space. Refers to CSS flex-wrap */
20
19
  wrap: {
21
- type: PropType<TJoyWrapperWrap>;
20
+ type: PropType<"nowrap" | "wrap">;
22
21
  default: string;
23
22
  };
24
23
  /** Applies a flex-grow to children in order to stretch them all along horizontal space */
@@ -32,33 +31,33 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
32
31
  };
33
32
  /** Gap between the columns. Refers to CSS column-gap. Value is based on spacing tokens. */
34
33
  columnGap: {
35
- type: PropType<TJoyWrapperGap>;
34
+ type: PropType<"0" | "1" | "2" | "3" | "12" | "10" | "4" | "5" | "6" | "7" | "8" | "9" | "11">;
36
35
  default: string;
37
36
  };
38
37
  /** Gap between the rows. Refers to CSS row-gap. Value is based on spacing tokens. */
39
38
  rowGap: {
40
- type: PropType<TJoyWrapperGap>;
39
+ type: PropType<"0" | "1" | "2" | "3" | "12" | "10" | "4" | "5" | "6" | "7" | "8" | "9" | "11">;
41
40
  default: string;
42
41
  };
43
42
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
44
43
  /** Horizontal spread. Refers to CSS flex justify-content. */
45
44
  justify: {
46
- type: PropType<TJoyWrapperJustify>;
45
+ type: PropType<"center" | "space-between" | "flex-start" | "flex-end">;
47
46
  default: string;
48
47
  };
49
48
  /** Vertical spread. Refers to CSS flex align-items. */
50
49
  align: {
51
- type: PropType<TJoyWrapperAlign>;
50
+ type: PropType<"center" | "flex-start" | "flex-end" | "stretch">;
52
51
  default: string;
53
52
  };
54
53
  /** Vertical flex, or horizontal. Refers to CSS flex-direction */
55
54
  direction: {
56
- type: PropType<TJoyWrapperDirection>;
55
+ type: PropType<"row" | "column">;
57
56
  default: string;
58
57
  };
59
58
  /** Automatically sets new line if there are not enough horizontal space. Refers to CSS flex-wrap */
60
59
  wrap: {
61
- type: PropType<TJoyWrapperWrap>;
60
+ type: PropType<"nowrap" | "wrap">;
62
61
  default: string;
63
62
  };
64
63
  /** Applies a flex-grow to children in order to stretch them all along horizontal space */
@@ -72,23 +71,23 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
72
71
  };
73
72
  /** Gap between the columns. Refers to CSS column-gap. Value is based on spacing tokens. */
74
73
  columnGap: {
75
- type: PropType<TJoyWrapperGap>;
74
+ type: PropType<"0" | "1" | "2" | "3" | "12" | "10" | "4" | "5" | "6" | "7" | "8" | "9" | "11">;
76
75
  default: string;
77
76
  };
78
77
  /** Gap between the rows. Refers to CSS row-gap. Value is based on spacing tokens. */
79
78
  rowGap: {
80
- type: PropType<TJoyWrapperGap>;
79
+ type: PropType<"0" | "1" | "2" | "3" | "12" | "10" | "4" | "5" | "6" | "7" | "8" | "9" | "11">;
81
80
  default: string;
82
81
  };
83
82
  }>>, {
84
- wrap: TJoyWrapperWrap;
85
- justify: TJoyWrapperJustify;
86
- align: TJoyWrapperAlign;
87
- direction: TJoyWrapperDirection;
83
+ wrap: "nowrap" | "wrap";
84
+ justify: "center" | "space-between" | "flex-start" | "flex-end";
85
+ align: "center" | "flex-start" | "flex-end" | "stretch";
86
+ direction: "row" | "column";
88
87
  itemStretch: boolean;
89
88
  noMargin: boolean;
90
- columnGap: TJoyWrapperGap;
91
- rowGap: TJoyWrapperGap;
89
+ columnGap: "0" | "1" | "2" | "3" | "12" | "10" | "4" | "5" | "6" | "7" | "8" | "9" | "11";
90
+ rowGap: "0" | "1" | "2" | "3" | "12" | "10" | "4" | "5" | "6" | "7" | "8" | "9" | "11";
92
91
  }, {}>, {
93
92
  default?(_: {}): any;
94
93
  }>;
@@ -6,4 +6,4 @@ export declare const JoyVuePlugin: {
6
6
  }) => void;
7
7
  };
8
8
  export * from './';
9
- export { createAllSnackbarsContainer, pushVJoySnackbar, resetCount } from './JoySnackbar';
9
+ export * from './JoySnackbar';
@@ -1,11 +1,11 @@
1
1
  import { TJoyIconsNames } from '@/components/JoyIcon/JoyIcon.types';
2
2
  import { Ref } from 'vue';
3
- import { TLevels } from '../types';
3
+ import { LEVELS } from '../types';
4
4
  /**
5
5
  * Check if you are working on dev environment. Based on `getMode` util that returns import.meta.env.MODE,
6
6
  */
7
7
  export declare const isDevMode: boolean;
8
- export declare function iconLevel(level: TLevels): TJoyIconsNames;
8
+ export declare function iconLevel(level: (typeof LEVELS)[number]): TJoyIconsNames;
9
9
  export declare function focusOnFirstFocusableFormField(root: Ref): any;
10
10
  export declare const generateRandomId: (length?: number) => string;
11
11
  /**