@maltjoy/core-vue 1.0.0-beta.9 → 1.0.0-rc.1

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/README.md CHANGED
@@ -17,3 +17,4 @@ Then import the CSS :
17
17
  ```
18
18
 
19
19
 
20
+
@@ -16,6 +16,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
16
16
  type: PropType<"left" | "right">;
17
17
  default: string;
18
18
  };
19
+ /**
20
+ * Use default slot or label property.
21
+ */
22
+ label: {
23
+ type: StringConstructor;
24
+ };
19
25
  /** Change the component's state and display a JoySpinner. */
20
26
  loading: {
21
27
  type: BooleanConstructor;
@@ -49,6 +55,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
49
55
  type: PropType<"left" | "right">;
50
56
  default: string;
51
57
  };
58
+ /**
59
+ * Use default slot or label property.
60
+ */
61
+ label: {
62
+ type: StringConstructor;
63
+ };
52
64
  /** Change the component's state and display a JoySpinner. */
53
65
  loading: {
54
66
  type: BooleanConstructor;
@@ -35,8 +35,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
35
35
  default: boolean;
36
36
  };
37
37
  modelValue: {
38
- type: StringConstructor;
39
- default: string;
38
+ type: (StringConstructor | NumberConstructor)[];
40
39
  };
41
40
  /** Display a cross icon on the right that enables to clear the field */
42
41
  clearable: {
@@ -90,8 +89,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
90
89
  default: boolean;
91
90
  };
92
91
  modelValue: {
93
- type: StringConstructor;
94
- default: string;
92
+ type: (StringConstructor | NumberConstructor)[];
95
93
  };
96
94
  /** Display a cross icon on the right that enables to clear the field */
97
95
  clearable: {
@@ -114,7 +112,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
114
112
  size: InputSizes;
115
113
  disabled: boolean;
116
114
  required: boolean;
117
- modelValue: string;
118
115
  invalid: boolean;
119
116
  labelSize: "small" | "medium" | "large";
120
117
  requiredMark: boolean;
@@ -17,6 +17,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
17
17
  optionalLabel: {
18
18
  type: StringConstructor;
19
19
  };
20
+ text: StringConstructor;
20
21
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
21
22
  size: {
22
23
  type: PropType<"small" | "medium" | "large">;
@@ -34,6 +35,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
34
35
  optionalLabel: {
35
36
  type: StringConstructor;
36
37
  };
38
+ text: StringConstructor;
37
39
  }>>, {
38
40
  size: "small" | "medium" | "large";
39
41
  required: boolean;
@@ -11,6 +11,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
11
11
  validator(color: LinkColors): boolean;
12
12
  };
13
13
  icon: StringConstructor;
14
+ text: StringConstructor;
14
15
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
15
16
  href: {
16
17
  type: StringConstructor;
@@ -22,6 +23,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
22
23
  validator(color: LinkColors): boolean;
23
24
  };
24
25
  icon: StringConstructor;
26
+ text: StringConstructor;
25
27
  }>>, {
26
28
  color: "teal" | "white";
27
29
  }>, {
@@ -25,10 +25,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
25
25
  type: PropType<any[]>;
26
26
  default(): never[];
27
27
  };
28
- fullWidth: {
29
- type: BooleanConstructor;
30
- default: boolean;
31
- };
32
28
  required: {
33
29
  type: BooleanConstructor;
34
30
  default: boolean;
@@ -56,10 +52,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
56
52
  type: PropType<any[]>;
57
53
  default(): never[];
58
54
  };
59
- fullWidth: {
60
- type: BooleanConstructor;
61
- default: boolean;
62
- };
63
55
  required: {
64
56
  type: BooleanConstructor;
65
57
  default: boolean;
@@ -81,7 +73,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
81
73
  required: boolean;
82
74
  labelSize: "small" | "medium" | "large";
83
75
  requiredMark: boolean;
84
- fullWidth: boolean;
85
76
  }>, {
86
77
  checkbox: (_: Option) => any;
87
78
  }>;
@@ -1,3 +1,5 @@
1
1
  import { SIZES } from '@/types';
2
2
  export type PanelSizes = Extract<(typeof SIZES)[number], 'small' | 'medium' | 'large'>;
3
3
  export declare const PANEL_SIZES: PanelSizes[];
4
+ export type PanelTitleSizes = Extract<(typeof SIZES)[number], 'small' | 'large'>;
5
+ export declare const PANEL_TITLE_SIZES: PanelTitleSizes[];
@@ -1,5 +1,5 @@
1
1
  import { PropType } from 'vue';
2
- import { PanelSizes } from './JoyPanel.types';
2
+ import { PanelSizes, PanelTitleSizes } from './JoyPanel.types';
3
3
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
4
4
  flex: {
5
5
  type: StringConstructor;
@@ -13,6 +13,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
13
13
  default: string;
14
14
  validator(size: PanelSizes): boolean;
15
15
  };
16
+ titleSize: {
17
+ type: PropType<PanelTitleSizes>;
18
+ default: string;
19
+ validator(size: PanelTitleSizes): boolean;
20
+ };
16
21
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
17
22
  flex: {
18
23
  type: StringConstructor;
@@ -26,9 +31,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
26
31
  default: string;
27
32
  validator(size: PanelSizes): boolean;
28
33
  };
34
+ titleSize: {
35
+ type: PropType<PanelTitleSizes>;
36
+ default: string;
37
+ validator(size: PanelTitleSizes): boolean;
38
+ };
29
39
  }>>, {
30
40
  noMargin: boolean;
31
41
  padding: PanelSizes;
42
+ titleSize: PanelTitleSizes;
32
43
  }>, {
33
44
  'panel-title': (_: {}) => any;
34
45
  'panel-title-action': (_: {}) => any;
@@ -0,0 +1,2 @@
1
+ export declare const RADIO_GROUP_DIRECTION: readonly ["vertical", "horizontal"];
2
+ export type RadioGroupDirection = (typeof RADIO_GROUP_DIRECTION)[number];
@@ -77,7 +77,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
77
77
  labelSize: "small" | "medium" | "large";
78
78
  requiredMark: boolean;
79
79
  }>, {
80
- label: (_: {}) => any;
80
+ 'select-label': (_: {}) => any;
81
81
  default: (_: {}) => any;
82
82
  }>;
83
83
  export default _default;
@@ -24,6 +24,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
24
24
  'template-back': (_: {}) => any;
25
25
  'template-title': (_: {}) => any;
26
26
  'template-subtitle': (_: {}) => any;
27
+ 'template-actions': (_: {}) => any;
27
28
  'template-main': (_: {}) => any;
28
29
  'template-sidebar': (_: {}) => any;
29
30
  }>;
@@ -1,17 +1,21 @@
1
1
  import { PropType } from 'vue';
2
2
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
3
+ /** Horizontal spread. Refers to CSS flex justify-content. */
3
4
  justify: {
4
5
  type: PropType<"flex-end" | "center" | "space-between" | "flex-start">;
5
6
  default: string;
6
7
  };
8
+ /** Vertical spread. Refers to CSS flex align-items. */
7
9
  align: {
8
10
  type: PropType<"flex-end" | "stretch" | "center" | "flex-start">;
9
11
  default: string;
10
12
  };
13
+ /** Vertical flex, or horizontal. Refers to CSS flex-direction */
11
14
  direction: {
12
15
  type: PropType<"column" | "row">;
13
16
  default: string;
14
17
  };
18
+ /** Automatically sets new line if there are not enough horizontal space. Refers to CSS flex-wrap */
15
19
  wrap: {
16
20
  type: PropType<"nowrap" | "wrap">;
17
21
  default: string;
@@ -21,18 +25,22 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
21
25
  type: BooleanConstructor;
22
26
  };
23
27
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
28
+ /** Horizontal spread. Refers to CSS flex justify-content. */
24
29
  justify: {
25
30
  type: PropType<"flex-end" | "center" | "space-between" | "flex-start">;
26
31
  default: string;
27
32
  };
33
+ /** Vertical spread. Refers to CSS flex align-items. */
28
34
  align: {
29
35
  type: PropType<"flex-end" | "stretch" | "center" | "flex-start">;
30
36
  default: string;
31
37
  };
38
+ /** Vertical flex, or horizontal. Refers to CSS flex-direction */
32
39
  direction: {
33
40
  type: PropType<"column" | "row">;
34
41
  default: string;
35
42
  };
43
+ /** Automatically sets new line if there are not enough horizontal space. Refers to CSS flex-wrap */
36
44
  wrap: {
37
45
  type: PropType<"nowrap" | "wrap">;
38
46
  default: string;