@maltjoy/core-vue 5.4.1 → 5.6.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.
@@ -1,5 +1,5 @@
1
1
  import { TSizes } from '../../types';
2
2
  import VJoyAvatar from './VJoyAvatar.vue';
3
3
  /** AVATAR SIZES */
4
- export type TJoyAvatarSizes = Extract<TSizes, 'large' | 'medium' | 'small' | 'xsmall'>;
4
+ export type TJoyAvatarSizes = Exclude<TSizes, 'xxsmall'>;
5
5
  export type TJoyAvatarProps = InstanceType<typeof VJoyAvatar>['$props'];
@@ -1,5 +1,5 @@
1
1
  import { TJoyAvatarSizes } from './JoyAvatar.types';
2
- declare const _default: import("vue").DefineComponent<{
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
3
3
  size?: TJoyAvatarSizes | undefined;
4
4
  /** Display the initials based on Firstname and Lastname */
5
5
  fullName?: string | undefined;
@@ -56,5 +56,16 @@ declare const _default: import("vue").DefineComponent<{
56
56
  square: boolean;
57
57
  placeholder: import("@maltjoy/icons").JoyIconsId;
58
58
  showLetters: boolean;
59
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
59
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, Readonly<{
60
+ /** Inject the image here. Use any Nuxt or custom wrapper to better handle performances. */
61
+ default(): any;
62
+ }> & {
63
+ /** Inject the image here. Use any Nuxt or custom wrapper to better handle performances. */
64
+ default(): any;
65
+ }>;
60
66
  export default _default;
67
+ type __VLS_WithTemplateSlots<T, S> = T & {
68
+ new (): {
69
+ $slots: S;
70
+ };
71
+ };
@@ -9,6 +9,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
9
9
  type: BooleanConstructor;
10
10
  default: boolean;
11
11
  };
12
+ /** The button takes all the available space (100% width) */
13
+ full: {
14
+ type: BooleanConstructor;
15
+ default: boolean;
16
+ };
12
17
  /** Name of the icon, placed before the text */
13
18
  icon: {
14
19
  type: PropType<import("@maltjoy/icons").JoyIconsId>;
@@ -53,6 +58,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
53
58
  type: BooleanConstructor;
54
59
  default: boolean;
55
60
  };
61
+ /** The button takes all the available space (100% width) */
62
+ full: {
63
+ type: BooleanConstructor;
64
+ default: boolean;
65
+ };
56
66
  /** Name of the icon, placed before the text */
57
67
  icon: {
58
68
  type: PropType<import("@maltjoy/icons").JoyIconsId>;
@@ -89,6 +99,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
89
99
  }>> & Readonly<{}>, {
90
100
  circle: boolean;
91
101
  size: TJoyButtonSizes;
102
+ full: boolean;
92
103
  iconPosition: import("../../types/index.js").TPositions;
93
104
  loading: boolean;
94
105
  variant: TJoyButtonVariants;
@@ -29,4 +29,6 @@ export interface VJoyInputProps {
29
29
  unit?: string;
30
30
  /** Activates the readonly mode for the input */
31
31
  readonly?: boolean;
32
+ /** When using the clearable property, you have to specific an aria-label for accessibility. */
33
+ clearAriaLabel?: string;
32
34
  }
@@ -18,6 +18,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<VJ
18
18
  modelModifiers: Partial<Record<"number" | "trim" | "lazy", boolean>>;
19
19
  clearable: boolean;
20
20
  readonly: boolean;
21
+ clearAriaLabel: string;
21
22
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, Readonly<{
22
23
  /** DEPRECATED. Default slot to display a label on top of the element. You can use label property as well */
23
24
  default?: (() => any) | undefined;
@@ -65,6 +65,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
65
65
  titleSize: TJoyPanelTitleSizes;
66
66
  loadingColor: TJoyScreenLoaderColors;
67
67
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, Readonly<{
68
+ /** Use the slot to inject a VJoyIcon at the beginning of your panel title. */
69
+ 'panel-title-icon'?(): any;
68
70
  /** Main title of the panel */
69
71
  'panel-title'(): any;
70
72
  /** Subtitle, not mandatory */
@@ -78,6 +80,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
78
80
  /** Customize the loading state content */
79
81
  'panel-loader-content'?(): any;
80
82
  }> & {
83
+ /** Use the slot to inject a VJoyIcon at the beginning of your panel title. */
84
+ 'panel-title-icon'?(): any;
81
85
  /** Main title of the panel */
82
86
  'panel-title'(): any;
83
87
  /** Subtitle, not mandatory */
@@ -48,9 +48,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
48
48
  default: boolean;
49
49
  };
50
50
  }>> & Readonly<{}>, {
51
+ full: boolean;
51
52
  loading: boolean;
52
53
  loadingColor: TJoyScreenLoaderColors;
53
- full: boolean;
54
54
  sidebar: TJoyTemplateSidebarSide;
55
55
  shapes: boolean;
56
56
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, Readonly<{