@maltjoy/core-vue 5.5.0 → 5.7.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'];
@@ -15,7 +15,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
15
15
  loading?: "lazy" | "eager" | undefined;
16
16
  /** Basic state with no information */
17
17
  isEmpty?: boolean | undefined;
18
- square?: boolean | undefined;
19
18
  /** Placeholder icon is no photo is given, and showLetters is set to false */
20
19
  placeholder?: import("@maltjoy/icons").JoyIconsId | undefined;
21
20
  /** If no photo is given and this parameter is set to false, it will directly display the placeholder icon */
@@ -41,7 +40,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
41
40
  loading?: "lazy" | "eager" | undefined;
42
41
  /** Basic state with no information */
43
42
  isEmpty?: boolean | undefined;
44
- square?: boolean | undefined;
45
43
  /** Placeholder icon is no photo is given, and showLetters is set to false */
46
44
  placeholder?: import("@maltjoy/icons").JoyIconsId | undefined;
47
45
  /** If no photo is given and this parameter is set to false, it will directly display the placeholder icon */
@@ -53,7 +51,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
53
51
  loading: "lazy" | "eager";
54
52
  profile: "default" | "strategy";
55
53
  isEmpty: boolean;
56
- square: boolean;
57
54
  placeholder: import("@maltjoy/icons").JoyIconsId;
58
55
  showLetters: boolean;
59
56
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, Readonly<{
@@ -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;
@@ -1,6 +1,9 @@
1
1
  import { PropType } from 'vue';
2
2
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
- /** In some cases you'll need to inject the error in the DOM but hide it. Visible by default */
3
+ /**
4
+ * In some cases you'll need to inject the error in the DOM but hide it. Visible by default
5
+ * @deprecated - The property is now ignored.
6
+ */
4
7
  visible: {
5
8
  type: BooleanConstructor;
6
9
  default: boolean;
@@ -12,10 +15,16 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
12
15
  type: PropType<string[]>;
13
16
  required: false;
14
17
  };
15
- /** Error message to display. If you need a list of errors, use the slot instead */
18
+ /**
19
+ * Error message to display. If you need a list of errors, use the slot instead
20
+ * @deprecated Use the slot instead, or the errors prop.
21
+ */
16
22
  noHtmlErrorText: StringConstructor;
17
23
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
18
- /** In some cases you'll need to inject the error in the DOM but hide it. Visible by default */
24
+ /**
25
+ * In some cases you'll need to inject the error in the DOM but hide it. Visible by default
26
+ * @deprecated - The property is now ignored.
27
+ */
19
28
  visible: {
20
29
  type: BooleanConstructor;
21
30
  default: boolean;
@@ -27,7 +36,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
27
36
  type: PropType<string[]>;
28
37
  required: false;
29
38
  };
30
- /** Error message to display. If you need a list of errors, use the slot instead */
39
+ /**
40
+ * Error message to display. If you need a list of errors, use the slot instead
41
+ * @deprecated Use the slot instead, or the errors prop.
42
+ */
31
43
  noHtmlErrorText: StringConstructor;
32
44
  }>> & Readonly<{}>, {
33
45
  visible: boolean;
@@ -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<{