@maltjoy/core-vue 5.17.0 → 5.19.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 (32) hide show
  1. package/dist/components/JoyAvailability/VJoyAvailability.figma.d.ts +1 -0
  2. package/dist/components/JoyButton/VJoyButton.vue.d.ts +2 -0
  3. package/dist/components/JoyButtonCard/JoyButtonCard.types.d.ts +13 -0
  4. package/dist/components/JoyButtonCard/VJoyButtonCard.vue.d.ts +18 -0
  5. package/dist/components/JoyCheckbox/JoyCheckbox.types.d.ts +26 -0
  6. package/dist/components/JoyCheckbox/VJoyCheckbox.vue.d.ts +4 -107
  7. package/dist/components/JoyCheckboxCard/JoyCheckboxCard.types.d.ts +7 -0
  8. package/dist/components/JoyCheckboxCard/VJoyCheckboxCard.vue.d.ts +35 -0
  9. package/dist/components/JoyCheckboxGroup/VJoyCheckboxGroup.vue.d.ts +67 -0
  10. package/dist/components/JoyDropdown/VJoyDropdown.vue.d.ts +4 -4
  11. package/dist/components/JoyFloatingActionsBar/VJoyFloatingActionsBar.vue.d.ts +30 -0
  12. package/dist/components/JoyIconButton/JoyIconButton.types.d.ts +5 -0
  13. package/dist/components/JoyIconButton/JoyIconButton.wip.figma.d.ts +1 -0
  14. package/dist/components/JoyIconButton/VJoyIconButton.vue.d.ts +80 -0
  15. package/dist/components/JoyInput/VJoyInput.vue.d.ts +1 -1
  16. package/dist/components/JoyInputNumber/VJoyInputNumber.vue.d.ts +23 -0
  17. package/dist/components/JoyInputPassword/VJoyInputPassword.vue.d.ts +1 -1
  18. package/dist/components/JoyMultiCheckbox/VJoyMultiCheckbox.vue.d.ts +6 -50
  19. package/dist/components/JoyProgressBar/VJoyProgressBar.vue.d.ts +0 -1
  20. package/dist/components/JoySelect/VJoySelect.vue.d.ts +1 -1
  21. package/dist/components/JoyTextarea/VJoyTextarea.vue.d.ts +2 -2
  22. package/dist/components/compat.d.ts +12 -0
  23. package/dist/components/component-metadata.d.ts +22 -0
  24. package/dist/components/components.types.d.ts +2 -0
  25. package/dist/components/index.d.ts +8 -2
  26. package/dist/core-vue.js +4538 -4258
  27. package/dist/core-vue.umd.cjs +2 -2
  28. package/dist/joy-core-vue-manifest.json +11 -6
  29. package/dist/style.css +1 -1
  30. package/joy-components.d.ts +6 -1
  31. package/package.json +16 -13
  32. /package/dist/components/{JoyTemplateShape → JoyTemplate/_JoyTemplateShape}/VJoyTemplateShape.vue.d.ts +0 -0
@@ -4,6 +4,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
4
4
  /**
5
5
  * If you only need a button with an icon. To keep your component accessible, you can give a text as slot, it will be used as title and aria-label.
6
6
  * This property takes effect only if icon property is set
7
+ * @deprecated Use `VJoyIconButton` instead.
7
8
  */
8
9
  circle: {
9
10
  type: BooleanConstructor;
@@ -53,6 +54,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
53
54
  /**
54
55
  * If you only need a button with an icon. To keep your component accessible, you can give a text as slot, it will be used as title and aria-label.
55
56
  * This property takes effect only if icon property is set
57
+ * @deprecated Use `VJoyIconButton` instead.
56
58
  */
57
59
  circle: {
58
60
  type: BooleanConstructor;
@@ -0,0 +1,13 @@
1
+ import type { Component } from 'vue';
2
+ export type TJoyButtonCardType = 'a' | 'button' | Component;
3
+ export type TJoyButtonCardAlign = 'left' | 'center' | 'right';
4
+ export interface VJoyButtonCardProps {
5
+ /** Disabled state */
6
+ disabled?: boolean;
7
+ /** Native href for anchor rendering */
8
+ href?: string;
9
+ /** HTML element or Vue component to render */
10
+ type?: TJoyButtonCardType;
11
+ /** Content alignment inside the card */
12
+ align?: TJoyButtonCardAlign;
13
+ }
@@ -0,0 +1,18 @@
1
+ import type { VJoyButtonCardProps } from './JoyButtonCard.types';
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<VJoyButtonCardProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<VJoyButtonCardProps> & Readonly<{}>, {
3
+ type: import("./JoyButtonCard.types").TJoyButtonCardType;
4
+ disabled: boolean;
5
+ align: import("./JoyButtonCard.types").TJoyButtonCardAlign;
6
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, Readonly<{
7
+ /** Main content for the card */
8
+ default(): any;
9
+ }> & {
10
+ /** Main content for the card */
11
+ default(): any;
12
+ }>;
13
+ export default _default;
14
+ type __VLS_WithTemplateSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
@@ -0,0 +1,26 @@
1
+ export interface VJoyCheckboxProps {
2
+ /** Can't be used in addition of v-model. See usage : https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox#indeterminate_state_checkboxes */
3
+ indeterminate?: boolean;
4
+ /**
5
+ * Internal purpose in order to prevent double focus mark on selectable-item
6
+ * @internal
7
+ */
8
+ displayFocus?: boolean;
9
+ /** Use it to replace the default slot */
10
+ label?: string;
11
+ /** Checked state of the component */
12
+ checked?: boolean;
13
+ /**
14
+ * Invalid state of the component
15
+ *
16
+ * Note: A checked checkbox cannot be invalid (the `checked` state takes priority over `invalid` state).
17
+ */
18
+ invalid?: boolean;
19
+ /** The value is used in multiselection context in order to build array of values. */
20
+ value?: string;
21
+ /** Removes any interactivity if disabled */
22
+ disabled?: boolean;
23
+ id?: string;
24
+ name?: string;
25
+ required?: boolean;
26
+ }
@@ -1,114 +1,11 @@
1
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
- /** Can't be used in addition of v-model. See usage : https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox#indeterminate_state_checkboxes */
3
- indeterminate: {
4
- type: BooleanConstructor;
5
- default: boolean;
6
- };
7
- /**
8
- * Internal purpose in order to prevent double focus mark on selectable-item
9
- * @internal
10
- */
11
- displayFocus: {
12
- type: BooleanConstructor;
13
- default: boolean;
14
- };
15
- /** Use it to replace the default slot */
16
- label: {
17
- type: StringConstructor;
18
- };
19
- /** Checked state of the component */
20
- checked: {
21
- type: BooleanConstructor;
22
- default: boolean;
23
- };
24
- /**
25
- * Invalid state of the component
26
- *
27
- * Note: A checked checkbox cannot be invalid (the `checked` state takes priority over `invalid` state).
28
- */
29
- invalid: {
30
- type: BooleanConstructor;
31
- default: boolean;
32
- };
33
- /** The value is used in multiselection context in order to build array of values. */
34
- value: {
35
- type: StringConstructor;
36
- default: string;
37
- };
38
- /** Removes any interactivity if disabled */
39
- disabled: {
40
- type: BooleanConstructor;
41
- default: boolean;
42
- };
43
- id: {
44
- type: StringConstructor;
45
- };
46
- name: {
47
- type: StringConstructor;
48
- };
49
- required: {
50
- type: BooleanConstructor;
51
- default: boolean;
52
- };
53
- }>, {
1
+ import type { VJoyCheckboxProps } from './JoyCheckbox.types';
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<VJoyCheckboxProps, {
54
3
  isIndeterminate: import("vue").Ref<boolean, boolean>;
55
4
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
56
5
  blur: () => any;
57
6
  focus: () => any;
58
7
  "update:checked": (value: boolean) => any;
59
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
60
- /** Can't be used in addition of v-model. See usage : https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox#indeterminate_state_checkboxes */
61
- indeterminate: {
62
- type: BooleanConstructor;
63
- default: boolean;
64
- };
65
- /**
66
- * Internal purpose in order to prevent double focus mark on selectable-item
67
- * @internal
68
- */
69
- displayFocus: {
70
- type: BooleanConstructor;
71
- default: boolean;
72
- };
73
- /** Use it to replace the default slot */
74
- label: {
75
- type: StringConstructor;
76
- };
77
- /** Checked state of the component */
78
- checked: {
79
- type: BooleanConstructor;
80
- default: boolean;
81
- };
82
- /**
83
- * Invalid state of the component
84
- *
85
- * Note: A checked checkbox cannot be invalid (the `checked` state takes priority over `invalid` state).
86
- */
87
- invalid: {
88
- type: BooleanConstructor;
89
- default: boolean;
90
- };
91
- /** The value is used in multiselection context in order to build array of values. */
92
- value: {
93
- type: StringConstructor;
94
- default: string;
95
- };
96
- /** Removes any interactivity if disabled */
97
- disabled: {
98
- type: BooleanConstructor;
99
- default: boolean;
100
- };
101
- id: {
102
- type: StringConstructor;
103
- };
104
- name: {
105
- type: StringConstructor;
106
- };
107
- required: {
108
- type: BooleanConstructor;
109
- default: boolean;
110
- };
111
- }>> & Readonly<{
8
+ }, string, import("vue").PublicProps, Readonly<VJoyCheckboxProps> & Readonly<{
112
9
  onBlur?: (() => any) | undefined;
113
10
  onFocus?: (() => any) | undefined;
114
11
  "onUpdate:checked"?: ((value: boolean) => any) | undefined;
@@ -120,7 +17,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
120
17
  checked: boolean;
121
18
  indeterminate: boolean;
122
19
  displayFocus: boolean;
123
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, Readonly<{
20
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, Readonly<{
124
21
  /** Default slot for checkbox label. You can as well use the label property. */
125
22
  default(): any;
126
23
  /** For additional content */
@@ -0,0 +1,7 @@
1
+ import type { VJoyCheckboxProps } from '../JoyCheckbox/JoyCheckbox.types';
2
+ export interface VJoyCheckboxCardProps extends Omit<VJoyCheckboxProps, 'displayFocus'> {
3
+ /** Secondary label displayed below the main label */
4
+ subLabel?: string;
5
+ /** Whether the checkbox card should fit its content */
6
+ fitContent?: boolean;
7
+ }
@@ -0,0 +1,35 @@
1
+ import type { VJoyCheckboxCardProps } from './JoyCheckboxCard.types';
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<VJoyCheckboxCardProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
3
+ blur: () => any;
4
+ focus: () => any;
5
+ "update:checked": (value: boolean) => any;
6
+ }, string, import("vue").PublicProps, Readonly<VJoyCheckboxCardProps> & Readonly<{
7
+ onBlur?: (() => any) | undefined;
8
+ onFocus?: (() => any) | undefined;
9
+ "onUpdate:checked"?: ((value: boolean) => any) | undefined;
10
+ }>, {
11
+ invalid: boolean;
12
+ required: boolean;
13
+ disabled: boolean;
14
+ value: string;
15
+ checked: boolean;
16
+ indeterminate: boolean;
17
+ subLabel: string;
18
+ fitContent: boolean;
19
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, Readonly<{
20
+ /** Right aligned free slot, displayed next to the main label. */
21
+ 'header-right': () => any;
22
+ /** Free content slot, displayed below label and sublabel. */
23
+ 'checkbox-card-content': () => any;
24
+ }> & {
25
+ /** Right aligned free slot, displayed next to the main label. */
26
+ 'header-right': () => any;
27
+ /** Free content slot, displayed below label and sublabel. */
28
+ 'checkbox-card-content': () => any;
29
+ }>;
30
+ export default _default;
31
+ type __VLS_WithTemplateSlots<T, S> = T & {
32
+ new (): {
33
+ $slots: S;
34
+ };
35
+ };
@@ -0,0 +1,67 @@
1
+ import { TJoyLabelSizes } from '../JoyLabel/JoyLabel.types';
2
+ export interface Option {
3
+ id: string;
4
+ name?: string;
5
+ value: string;
6
+ label: string;
7
+ subLabel?: string;
8
+ /**
9
+ * @default false
10
+ */
11
+ disabled?: boolean;
12
+ /**
13
+ * @default false
14
+ */
15
+ required?: boolean;
16
+ }
17
+ export type CheckboxGroupDirection = 'vertical' | 'horizontal';
18
+ export interface CheckboxGroupProps {
19
+ options?: Option[];
20
+ id?: string;
21
+ /** TODO: better typings */
22
+ value?: any[];
23
+ /** Switch checkboxes layout direction. */
24
+ direction?: CheckboxGroupDirection;
25
+ required?: boolean;
26
+ /** Use VJoyLabel if you need to customize the label HTML. */
27
+ label?: string;
28
+ labelSize?: TJoyLabelSizes;
29
+ optionalLabel?: string;
30
+ requiredMark?: boolean;
31
+ }
32
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<CheckboxGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
33
+ "update:value": (value: any[]) => any;
34
+ }, string, import("vue").PublicProps, Readonly<CheckboxGroupProps> & Readonly<{
35
+ "onUpdate:value"?: ((value: any[]) => any) | undefined;
36
+ }>, {
37
+ required: boolean;
38
+ value: any[];
39
+ options: Option[];
40
+ direction: CheckboxGroupDirection;
41
+ labelSize: TJoyLabelSizes;
42
+ requiredMark: boolean;
43
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, Readonly<{
44
+ /**
45
+ * Allows explicit declaration of VJoyCheckbox / VJoyCheckboxCard children in the group.
46
+ *
47
+ * **Important**: v-model has to be handled by consumer.
48
+ */
49
+ default?: (() => any) | undefined;
50
+ /** Customize the inner content of each checkboxes */
51
+ checkbox?: ((option: Option) => any) | undefined;
52
+ }> & {
53
+ /**
54
+ * Allows explicit declaration of VJoyCheckbox / VJoyCheckboxCard children in the group.
55
+ *
56
+ * **Important**: v-model has to be handled by consumer.
57
+ */
58
+ default?: (() => any) | undefined;
59
+ /** Customize the inner content of each checkboxes */
60
+ checkbox?: ((option: Option) => any) | undefined;
61
+ }>;
62
+ export default _default;
63
+ type __VLS_WithTemplateSlots<T, S> = T & {
64
+ new (): {
65
+ $slots: S;
66
+ };
67
+ };
@@ -71,7 +71,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
71
71
  default: string;
72
72
  };
73
73
  /**
74
- * Display a reset CTA on top of the dropdown list. Useful when using a VJoyMultiCheckbox.
74
+ * Display a reset CTA on top of the dropdown list. Useful when using a VJoyCheckboxGroup.
75
75
  * Please note that is does not automatically apply changes to you models, it simply fires a **dropdown:reset** custom event
76
76
  * */
77
77
  reset: {
@@ -160,7 +160,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
160
160
  default: string;
161
161
  };
162
162
  /**
163
- * Display a reset CTA on top of the dropdown list. Useful when using a VJoyMultiCheckbox.
163
+ * Display a reset CTA on top of the dropdown list. Useful when using a VJoyCheckboxGroup.
164
164
  * Please note that is does not automatically apply changes to you models, it simply fires a **dropdown:reset** custom event
165
165
  * */
166
166
  reset: {
@@ -194,7 +194,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
194
194
  'dropdown-button': () => any;
195
195
  /** Header that will be injected in the VJoyDropdownList */
196
196
  'dropdown-header'?: (() => any) | undefined;
197
- /** Free slot in order to render any kind of component. Can be handy to use it with VJoyMultiCheckbox for instance. */
197
+ /** Free slot in order to render any kind of component. Can be handy to use it with VJoyCheckboxGroup for instance. */
198
198
  'dropdown-items'?: (() => any) | undefined;
199
199
  /** Use it to customize the innerHTML of the li item. See https://vuejs.org/guide/components/slots.html#scoped-slots */
200
200
  'dropdown-item'?: ((option: TJoyDropdownOption) => any) | undefined;
@@ -205,7 +205,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
205
205
  'dropdown-button': () => any;
206
206
  /** Header that will be injected in the VJoyDropdownList */
207
207
  'dropdown-header'?: (() => any) | undefined;
208
- /** Free slot in order to render any kind of component. Can be handy to use it with VJoyMultiCheckbox for instance. */
208
+ /** Free slot in order to render any kind of component. Can be handy to use it with VJoyCheckboxGroup for instance. */
209
209
  'dropdown-items'?: (() => any) | undefined;
210
210
  /** Use it to customize the innerHTML of the li item. See https://vuejs.org/guide/components/slots.html#scoped-slots */
211
211
  'dropdown-item'?: ((option: TJoyDropdownOption) => any) | undefined;
@@ -0,0 +1,30 @@
1
+ import type { TeleportProps } from 'vue';
2
+ export interface Props {
3
+ /** Height of the bar. Adjust when the default does not fit your content. */
4
+ height?: string;
5
+ /** CSS selector or DOM element used as the Teleport target. */
6
+ appendTo?: TeleportProps['to'];
7
+ /** Controls the horizontal distribution of the inner content. */
8
+ justify?: 'space-between' | 'space-around' | 'space-evenly' | 'flex-start' | 'flex-end' | 'center';
9
+ }
10
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
11
+ height: string;
12
+ justify: "center" | "space-between" | "flex-start" | "flex-end" | "space-around" | "space-evenly";
13
+ appendTo: string | import("vue").RendererElement | null;
14
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, Readonly<{
15
+ /** Content slot, placed on the left side of the bar */
16
+ content: () => any;
17
+ /** Actions slot, placed on the right side */
18
+ actions: () => any;
19
+ }> & {
20
+ /** Content slot, placed on the left side of the bar */
21
+ content: () => any;
22
+ /** Actions slot, placed on the right side */
23
+ actions: () => any;
24
+ }>;
25
+ export default _default;
26
+ type __VLS_WithTemplateSlots<T, S> = T & {
27
+ new (): {
28
+ $slots: S;
29
+ };
30
+ };
@@ -0,0 +1,5 @@
1
+ import { TJoyButtonSizes, TJoyButtonVariants } from '../JoyButton/JoyButton.types';
2
+ import { TJoyIconsNames } from '../JoyIcon/JoyIcon.types';
3
+ export type TJoyIconButtonVariants = TJoyButtonVariants;
4
+ export type TJoyIconButtonSizes = TJoyButtonSizes;
5
+ export type TJoyIconButtonIconNames = TJoyIconsNames;
@@ -0,0 +1,80 @@
1
+ import { PropType } from 'vue';
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
+ /** Name of the icon displayed inside the button */
4
+ icon: {
5
+ type: PropType<import("@maltjoy/icons").JoyIconsId>;
6
+ required: true;
7
+ };
8
+ /**
9
+ * Accessible label used when no default slot is provided.
10
+ * The text is hidden visually by JoyIconButton styles.
11
+ */
12
+ label: {
13
+ type: StringConstructor;
14
+ };
15
+ /** Change the component's state and display a JoySpinner. */
16
+ loading: {
17
+ type: BooleanConstructor;
18
+ default: boolean;
19
+ };
20
+ /** Button or Link color variant */
21
+ variant: {
22
+ type: PropType<import("../components.types.js").TJoyButtonVariants>;
23
+ default: string;
24
+ };
25
+ /** Button or Link size */
26
+ size: {
27
+ type: PropType<import("../components.types.js").TJoyButtonSizes>;
28
+ default: string;
29
+ };
30
+ id: {
31
+ type: StringConstructor;
32
+ };
33
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
34
+ /** Name of the icon displayed inside the button */
35
+ icon: {
36
+ type: PropType<import("@maltjoy/icons").JoyIconsId>;
37
+ required: true;
38
+ };
39
+ /**
40
+ * Accessible label used when no default slot is provided.
41
+ * The text is hidden visually by JoyIconButton styles.
42
+ */
43
+ label: {
44
+ type: StringConstructor;
45
+ };
46
+ /** Change the component's state and display a JoySpinner. */
47
+ loading: {
48
+ type: BooleanConstructor;
49
+ default: boolean;
50
+ };
51
+ /** Button or Link color variant */
52
+ variant: {
53
+ type: PropType<import("../components.types.js").TJoyButtonVariants>;
54
+ default: string;
55
+ };
56
+ /** Button or Link size */
57
+ size: {
58
+ type: PropType<import("../components.types.js").TJoyButtonSizes>;
59
+ default: string;
60
+ };
61
+ id: {
62
+ type: StringConstructor;
63
+ };
64
+ }>> & Readonly<{}>, {
65
+ size: import("../components.types.js").TJoyButtonSizes;
66
+ loading: boolean;
67
+ variant: import("../components.types.js").TJoyButtonVariants;
68
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, Readonly<{
69
+ /** Accessible label for the icon button */
70
+ default(): any;
71
+ }> & {
72
+ /** Accessible label for the icon button */
73
+ default(): any;
74
+ }>;
75
+ export default _default;
76
+ type __VLS_WithTemplateSlots<T, S> = T & {
77
+ new (): {
78
+ $slots: S;
79
+ };
80
+ };
@@ -12,9 +12,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<VJ
12
12
  size: import("./JoyInput.types").TJoyInputSizes;
13
13
  required: boolean;
14
14
  disabled: boolean;
15
- autofocus: boolean;
16
15
  labelSize: import("../JoyLabel/JoyLabel.types").TJoyLabelSizes;
17
16
  requiredMark: boolean;
17
+ autofocus: boolean;
18
18
  modelModifiers: Partial<Record<"number" | "trim" | "lazy", boolean>>;
19
19
  clearable: boolean;
20
20
  readonly: boolean;
@@ -0,0 +1,23 @@
1
+ import type { VJoyInputProps } from '../JoyInput/JoyInput.types';
2
+ type VJoyInputNumberProps = Omit<VJoyInputProps, 'clearable' | 'clearAriaLabel'>;
3
+ declare function focus(): void;
4
+ declare const _default: import("vue").DefineComponent<VJoyInputNumberProps, {
5
+ focus: typeof focus;
6
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
+ "update:modelValue": (value: string) => any;
8
+ }, string, import("vue").PublicProps, Readonly<VJoyInputNumberProps> & Readonly<{
9
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
10
+ }>, {
11
+ invalid: boolean;
12
+ type: string;
13
+ name: string;
14
+ required: boolean;
15
+ disabled: boolean;
16
+ labelSize: import("../components.types.js").TJoyLabelSizes;
17
+ requiredMark: boolean;
18
+ autofocus: boolean;
19
+ modelModifiers: Partial<Record<"number" | "trim" | "lazy", boolean>>;
20
+ unit: string;
21
+ readonly: boolean;
22
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
23
+ export default _default;
@@ -12,9 +12,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<VJ
12
12
  name: string;
13
13
  required: boolean;
14
14
  disabled: boolean;
15
- autofocus: boolean;
16
15
  labelSize: import("../components.types.js").TJoyLabelSizes;
17
16
  requiredMark: boolean;
17
+ autofocus: boolean;
18
18
  modelModifiers: Partial<Record<"number" | "trim" | "lazy", boolean>>;
19
19
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, Readonly<{
20
20
  /** Slot used to inject password requirements. Use VJoyPasswordRequirement component to display the requirements. */
@@ -1,50 +1,6 @@
1
- import { TJoyLabelSizes } from '../JoyLabel/JoyLabel.types';
2
- export interface Option {
3
- id: string;
4
- name?: string;
5
- value: string;
6
- label: string;
7
- subLabel?: string;
8
- /**
9
- * @default false
10
- */
11
- disabled?: boolean;
12
- /**
13
- * @default false
14
- */
15
- required?: boolean;
16
- }
17
- interface MulticheckboxProps {
18
- options: Option[];
19
- id?: string;
20
- /** TODO: better typings */
21
- value?: any[];
22
- required?: boolean;
23
- /** Use VJoyLabel if you need to customize the label HTML. */
24
- label?: string;
25
- labelSize?: TJoyLabelSizes;
26
- optionalLabel?: string;
27
- requiredMark?: boolean;
28
- }
29
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<MulticheckboxProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
30
- "update:value": (value: any[]) => any;
31
- }, string, import("vue").PublicProps, Readonly<MulticheckboxProps> & Readonly<{
32
- "onUpdate:value"?: ((value: any[]) => any) | undefined;
33
- }>, {
34
- required: boolean;
35
- value: any[];
36
- labelSize: TJoyLabelSizes;
37
- requiredMark: boolean;
38
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, Readonly<{
39
- /** Customize the inner content of each checkboxes */
40
- checkbox?: ((option: Option) => any) | undefined;
41
- }> & {
42
- /** Customize the inner content of each checkboxes */
43
- checkbox?: ((option: Option) => any) | undefined;
44
- }>;
45
- export default _default;
46
- type __VLS_WithTemplateSlots<T, S> = T & {
47
- new (): {
48
- $slots: S;
49
- };
50
- };
1
+ /**
2
+ * @deprecated Use VJoyCheckboxGroup instead. This component is kept for backward compatibility.
3
+ */
4
+ import VJoyCheckboxGroup from '../JoyCheckboxGroup/VJoyCheckboxGroup.vue';
5
+ export type { Option } from '../JoyCheckboxGroup/VJoyCheckboxGroup.vue';
6
+ export default VJoyCheckboxGroup;
@@ -31,7 +31,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
31
31
  };
32
32
  }>, {
33
33
  computeInnerWidth: import("vue").ComputedRef<string>;
34
- computedPercentage: import("vue").Ref<number, number>;
35
34
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
36
35
  /** import TJoyProgressBarColors */
37
36
  color: {
@@ -96,8 +96,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
96
96
  size: TJoySelectSizes;
97
97
  required: boolean;
98
98
  disabled: boolean;
99
- modelValue: string | number | null;
100
99
  requiredMark: boolean;
100
+ modelValue: string | number | null;
101
101
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, Readonly<{
102
102
  /** Use native <option> tags here */
103
103
  default(): VNode<import("vue").RendererNode, import("vue").RendererElement, {
@@ -132,10 +132,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
132
132
  invalid: boolean;
133
133
  required: boolean;
134
134
  disabled: boolean;
135
- modelValue: string;
136
- autofocus: boolean;
137
135
  labelSize: TJoyLabelSizes;
138
136
  requiredMark: boolean;
137
+ modelValue: string;
138
+ autofocus: boolean;
139
139
  modelModifiers: {
140
140
  lazy: boolean;
141
141
  };
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Backward compatibility type re-exports.
3
+ * VJoyMultiCheckbox has been renamed to VJoyCheckboxGroup.
4
+ * Component re-exports (VJoyCheckboxGroup / VJoyMultiCheckbox) are handled
5
+ * by the auto-generated barrel in index.ts via directory scanning.
6
+ * This file only re-exports the associated types under both old and new names.
7
+ */
8
+ export type { Option as CheckboxGroupOption, CheckboxGroupProps } from './JoyCheckboxGroup/VJoyCheckboxGroup.vue';
9
+ /** @deprecated Use CheckboxGroupOption instead */
10
+ export type { Option as MultiCheckboxOption } from './JoyCheckboxGroup/VJoyCheckboxGroup.vue';
11
+ /** @deprecated Use CheckboxGroupProps instead */
12
+ export type { CheckboxGroupProps as MulticheckboxProps } from './JoyCheckboxGroup/VJoyCheckboxGroup.vue';
@@ -0,0 +1,22 @@
1
+ export declare const COMPONENT_CATEGORIES: Readonly<{
2
+ readonly ADMIN: "Admin";
3
+ readonly BUTTONS: "Buttons";
4
+ readonly FORMS: "Forms";
5
+ readonly FUNCTIONAL: "Functional";
6
+ readonly ICONS: "Icons";
7
+ readonly LAYOUT: "Layout";
8
+ readonly LOADER: "Loader";
9
+ readonly NAVIGATION: "Navigation";
10
+ readonly OVERLAYS: "Overlays";
11
+ readonly SKELETONS: "Skeletons";
12
+ readonly VIEW: "View";
13
+ }>;
14
+ export type TJoyComponentCategory = (typeof COMPONENT_CATEGORIES)[keyof typeof COMPONENT_CATEGORIES];
15
+ export interface TJoyComponentMetadata {
16
+ category: TJoyComponentCategory;
17
+ description?: string;
18
+ ignoreMcpDocumentation?: boolean;
19
+ }
20
+ export declare const COMPONENT_CATEGORY_VALUES: readonly ("Admin" | "Buttons" | "Forms" | "Functional" | "Icons" | "Layout" | "Loader" | "Navigation" | "Overlays" | "Skeletons" | "View")[];
21
+ export declare function defineComponentMetadata(metadata: TJoyComponentMetadata): TJoyComponentMetadata;
22
+ export declare function parseComponentMetadataMarkdown(markdown: string): TJoyComponentMetadata;