@maltjoy/core-vue 5.12.0 → 5.13.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.
@@ -23,7 +23,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
23
23
  type: PropType<import("../JoyDot/VJoyDot.types").TJoyDotVariants>;
24
24
  default: string;
25
25
  };
26
- number: NumberConstructor;
27
26
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
28
27
  /**
29
28
  * Display the colored bulletpoint on the left
@@ -48,7 +47,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
48
47
  type: PropType<import("../JoyDot/VJoyDot.types").TJoyDotVariants>;
49
48
  default: string;
50
49
  };
51
- number: NumberConstructor;
52
50
  }>> & Readonly<{}>, {
53
51
  label: string;
54
52
  variant: import("../JoyDot/VJoyDot.types").TJoyDotVariants;
@@ -1,18 +1,15 @@
1
- import { PropType } from 'vue';
2
1
  import { TJoyDotVariants } from './VJoyDot.types';
3
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
- number: NumberConstructor;
5
- variant: {
6
- type: PropType<TJoyDotVariants>;
7
- default: string;
8
- };
9
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
10
- number: NumberConstructor;
11
- variant: {
12
- type: PropType<TJoyDotVariants>;
13
- default: string;
14
- };
15
- }>> & Readonly<{}>, {
2
+ /**
3
+ * Props for VJoyDot component.
4
+ */
5
+ interface VJoyDotProps {
6
+ /** number: set a number or a string to display inside the dot, for badge-style dots with numbers. */
7
+ number?: any;
8
+ /** variant: the color variant for the dot. You can use the TJoyDotVariants type. */
9
+ variant?: TJoyDotVariants;
10
+ }
11
+ declare const _default: import("vue").DefineComponent<VJoyDotProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<VJoyDotProps> & Readonly<{}>, {
12
+ number: any;
16
13
  variant: TJoyDotVariants;
17
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
14
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
15
  export default _default;
@@ -20,6 +20,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
20
20
  * @deprecated Use the slot instead, or the errors prop.
21
21
  */
22
22
  noHtmlErrorText: StringConstructor;
23
+ /**
24
+ * Allows to remove any bottom margin on the component
25
+ */
26
+ noMargin: {
27
+ type: BooleanConstructor;
28
+ default: boolean;
29
+ };
23
30
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
24
31
  /**
25
32
  * In some cases you'll need to inject the error in the DOM but hide it. Visible by default
@@ -41,7 +48,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
41
48
  * @deprecated Use the slot instead, or the errors prop.
42
49
  */
43
50
  noHtmlErrorText: StringConstructor;
51
+ /**
52
+ * Allows to remove any bottom margin on the component
53
+ */
54
+ noMargin: {
55
+ type: BooleanConstructor;
56
+ default: boolean;
57
+ };
44
58
  }>> & Readonly<{}>, {
59
+ noMargin: boolean;
45
60
  visible: boolean;
46
61
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, Readonly<{
47
62
  /** If you need a list of error, use this slot with a simple ul/li */
@@ -27,6 +27,16 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
27
27
  type: (StringConstructor | NumberConstructor)[];
28
28
  required: true;
29
29
  };
30
+ /**
31
+ * Invalid state of the component
32
+ *
33
+ * If not explicitly provided, will inherit from parent VJoyRadioGroup's invalid prop.
34
+ * Note: A checked radio cannot be invalid (the `checked` state takes priority over `invalid` state).
35
+ */
36
+ invalid: {
37
+ type: BooleanConstructor;
38
+ default: undefined;
39
+ };
30
40
  }>, {
31
41
  checked: import("vue").ComputedRef<boolean>;
32
42
  isExpanded: import("vue").Ref<boolean, boolean>;
@@ -59,9 +69,20 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
59
69
  type: (StringConstructor | NumberConstructor)[];
60
70
  required: true;
61
71
  };
72
+ /**
73
+ * Invalid state of the component
74
+ *
75
+ * If not explicitly provided, will inherit from parent VJoyRadioGroup's invalid prop.
76
+ * Note: A checked radio cannot be invalid (the `checked` state takes priority over `invalid` state).
77
+ */
78
+ invalid: {
79
+ type: BooleanConstructor;
80
+ default: undefined;
81
+ };
62
82
  }>> & Readonly<{
63
83
  "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
64
84
  }>, {
85
+ invalid: boolean;
65
86
  required: boolean;
66
87
  disabled: boolean;
67
88
  theme: RadioThemes;
@@ -3,8 +3,16 @@ export interface RadioGroupProps {
3
3
  direction?: RadioGroupDirection;
4
4
  form?: string;
5
5
  name?: string;
6
+ /**
7
+ * Invalid state of the radio group
8
+ *
9
+ * When set to true, all child VJoyRadio components will inherit this invalid state.
10
+ * Note: A checked radio cannot be invalid (the `checked` state takes priority over `invalid` state at the radio level).
11
+ */
12
+ invalid?: boolean;
6
13
  }
7
14
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<RadioGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<RadioGroupProps> & Readonly<{}>, {
15
+ invalid: boolean;
8
16
  direction: RadioGroupDirection;
9
17
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, Readonly<{
10
18
  /** Label of the radio group */