@maltjoy/core-vue 5.23.0-next → 5.23.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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022 maltcommunity / apps
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -4,6 +4,7 @@ declare const _default: <T extends {
4
4
  readonly "onUpdate:modelValue"?: ((modelValue: (File | T)[]) => any) | undefined;
5
5
  modelValue: (File | T)[];
6
6
  name: string;
7
+ label?: string | undefined;
7
8
  multiple?: boolean | undefined;
8
9
  accept?: string[] | undefined;
9
10
  maxSize?: number | undefined;
@@ -50,6 +51,7 @@ declare const _default: <T extends {
50
51
  readonly "onUpdate:modelValue"?: ((modelValue: (File | T)[]) => any) | undefined;
51
52
  modelValue: (File | T)[];
52
53
  name: string;
54
+ label?: string | undefined;
53
55
  multiple?: boolean | undefined;
54
56
  accept?: string[] | undefined;
55
57
  maxSize?: number | undefined;
@@ -100,6 +102,7 @@ declare const _default: <T extends {
100
102
  readonly "onUpdate:modelValue"?: ((modelValue: (File | T)[]) => any) | undefined;
101
103
  modelValue: (File | T)[];
102
104
  name: string;
105
+ label?: string | undefined;
103
106
  multiple?: boolean | undefined;
104
107
  accept?: string[] | undefined;
105
108
  maxSize?: number | undefined;
@@ -1,5 +1,5 @@
1
1
  import type { JoyIconsId } from '@maltjoy/icons';
2
2
  import { TSizes, TLevels } from '../../types';
3
3
  export type TJoyIconsColors = TLevels | 'neutral-50' | 'primary' | 'secondary' | 'tertiary' | 'quaternary' | 'brand-primary' | 'brand-secondary' | 'white';
4
- export type TJoyIconSizes = Extract<TSizes, 'xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge'>;
4
+ export type TJoyIconSizes = Extract<TSizes, 'xxsmall' | 'xsmall' | 'small' | 'medium' | 'large'>;
5
5
  export type TJoyIconsNames = JoyIconsId;
@@ -29,7 +29,10 @@ export interface VJoyInputProps {
29
29
  * Use VJoyInputPassword for password fields and toggle behavior.
30
30
  */
31
31
  type?: string;
32
- /** Adds a legend like symbol on the right of the component. Made for number based values */
32
+ /**
33
+ * @deprecated Use VJoyInputNumber instead.
34
+ * Adds a legend like symbol on the right of the component. Made for number based values
35
+ */
33
36
  unit?: string;
34
37
  /** Activates the readonly mode for the input */
35
38
  readonly?: boolean;
@@ -1,7 +1,7 @@
1
1
  import type { VJoyInputProps } from '../JoyInput/JoyInput.types';
2
2
  type VJoyInputNumberProps = Omit<VJoyInputProps, 'clearable' | 'clearAriaLabel'>;
3
3
  declare function focus(): void;
4
- declare const _default: import("vue").DefineComponent<VJoyInputNumberProps, {
4
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<VJoyInputNumberProps, {
5
5
  focus: typeof focus;
6
6
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
7
  "update:modelValue": (value: string) => any;
@@ -19,5 +19,12 @@ declare const _default: import("vue").DefineComponent<VJoyInputNumberProps, {
19
19
  modelModifiers: Partial<Record<"number" | "trim" | "lazy", boolean>>;
20
20
  unit: string;
21
21
  readonly: boolean;
22
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
22
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
23
+ default?(_: {}): any;
24
+ }>;
23
25
  export default _default;
26
+ type __VLS_WithTemplateSlots<T, S> = T & {
27
+ new (): {
28
+ $slots: S;
29
+ };
30
+ };
@@ -17,10 +17,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
17
17
  subTitle: {
18
18
  type: StringConstructor;
19
19
  };
20
- /** Introduce a VJoyRatingStars component with given rating */
21
- ratingValue: {
22
- type: NumberConstructor;
23
- };
24
20
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
25
21
  /**
26
22
  * Giving a link will make the whole component wrapped by an hyperlink
@@ -40,27 +36,31 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
40
36
  subTitle: {
41
37
  type: StringConstructor;
42
38
  };
43
- /** Introduce a VJoyRatingStars component with given rating */
44
- ratingValue: {
45
- type: NumberConstructor;
46
- };
47
39
  }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, Readonly<{
40
+ /** Free content displayed below the user information. Use this slot for custom content like VJoyRatingStars. */
48
41
  default(): any;
49
42
  /** Customize the VJoyAvatar component by using this slot */
50
43
  'user-card-avatar': () => any;
51
44
  /** User name, basically */
52
45
  'user-card-title': () => any;
53
46
  'user-card-subtitle': () => any;
54
- /** Use your own customized VJoyRatingStars here, if needed */
47
+ /**
48
+ * @deprecated Use the default slot instead.
49
+ * This slot is kept for backward compatibility.
50
+ */
55
51
  'user-card-rating-stars': () => any;
56
52
  }> & {
53
+ /** Free content displayed below the user information. Use this slot for custom content like VJoyRatingStars. */
57
54
  default(): any;
58
55
  /** Customize the VJoyAvatar component by using this slot */
59
56
  'user-card-avatar': () => any;
60
57
  /** User name, basically */
61
58
  'user-card-title': () => any;
62
59
  'user-card-subtitle': () => any;
63
- /** Use your own customized VJoyRatingStars here, if needed */
60
+ /**
61
+ * @deprecated Use the default slot instead.
62
+ * This slot is kept for backward compatibility.
63
+ */
64
64
  'user-card-rating-stars': () => any;
65
65
  }>;
66
66
  export default _default;