@maltjoy/core-vue 3.6.1 → 3.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.
Files changed (35) hide show
  1. package/LICENSE +21 -0
  2. package/dist/App.vue.d.ts +1 -1
  3. package/dist/components/JoyBadge/VJoyBadge.vue.d.ts +1 -1
  4. package/dist/components/JoyButton/VJoyButton.vue.d.ts +1 -1
  5. package/dist/components/JoyCheckbox/VJoyCheckbox.vue.d.ts +2 -2
  6. package/dist/components/JoyCounter/VJoyCounter.vue.d.ts +20 -65
  7. package/dist/components/JoyDropdown/VJoyDropdown.vue.d.ts +1 -1
  8. package/dist/components/JoyDropdownList/VJoyDropdownList.vue.d.ts +1 -1
  9. package/dist/components/JoyFormError/VJoyFormError.vue.d.ts +1 -1
  10. package/dist/components/JoyHighlight/VJoyHighlight.vue.d.ts +1 -1
  11. package/dist/components/JoyIcon/VJoyIcon.vue.d.ts +1 -1
  12. package/dist/components/JoyInput/VJoyInput.vue.d.ts +2 -2
  13. package/dist/components/JoyLabel/VJoyLabel.vue.d.ts +1 -1
  14. package/dist/components/JoyLink/VJoyLink.vue.d.ts +1 -1
  15. package/dist/components/JoyMultiCheckbox/VJoyMultiCheckbox.vue.d.ts +1 -1
  16. package/dist/components/JoyPanel/VJoyPanel.vue.d.ts +1 -1
  17. package/dist/components/JoyPanelSection/VJoyPanelSection.vue.d.ts +1 -1
  18. package/dist/components/JoyRadio/VJoyRadio.vue.d.ts +2 -2
  19. package/dist/components/JoyRadioGroup/VJoyRadioGroup.vue.d.ts +13 -1
  20. package/dist/components/JoyScreenLoader/VJoyScreenLoader.vue.d.ts +1 -1
  21. package/dist/components/JoySelect/VJoySelect.vue.d.ts +2 -2
  22. package/dist/components/JoySelectableItem/VJoySelectableItem.vue.d.ts +2 -2
  23. package/dist/components/JoySelectableItemGroup/VJoySelectableItemGroup.vue.d.ts +3 -3
  24. package/dist/components/JoySpinner/VJoySpinner.vue.d.ts +1 -1
  25. package/dist/components/JoyTemplate/VJoyTemplate.vue.d.ts +1 -1
  26. package/dist/components/JoyTextarea/VJoyTextarea.vue.d.ts +2 -2
  27. package/dist/components/JoyToggle/VJoyToggle.vue.d.ts +2 -2
  28. package/dist/components/JoyWrapper/VJoyWrapper.vue.d.ts +1 -1
  29. package/dist/joy-vue.js +361 -352
  30. package/dist/joy-vue.umd.cjs +1 -1
  31. package/dist/style.css +1 -1
  32. package/dist/tests/composables/test-components/CheckboxFormProps.vue.d.ts +2 -2
  33. package/dist/tests/composables/test-components/GenericFormProps.vue.d.ts +2 -2
  34. package/dist/tests/composables/test-components/GenericFormPropsWithLabel.vue.d.ts +2 -2
  35. package/package.json +23 -24
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.
package/dist/App.vue.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
2
2
  export default _default;
@@ -47,7 +47,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
47
47
  }>>, {
48
48
  label: string;
49
49
  bulletpoint: boolean;
50
- }>, {
50
+ }, {}>, {
51
51
  default: (_: {}) => any;
52
52
  }>;
53
53
  export default _default;
@@ -88,7 +88,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
88
88
  size: ButtonSizes;
89
89
  iconPosition: "left" | "right";
90
90
  loading: boolean;
91
- }>, {
91
+ }, {}>, {
92
92
  default: (_: {}) => any;
93
93
  }>;
94
94
  export default _default;
@@ -97,13 +97,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
97
97
  onBlur?: (() => any) | undefined;
98
98
  "onUpdate:checked"?: ((value: boolean) => any) | undefined;
99
99
  }, {
100
+ disabled: boolean;
100
101
  value: string;
101
102
  checked: boolean;
102
103
  required: boolean;
103
- disabled: boolean;
104
104
  indeterminate: boolean;
105
105
  displayFocus: boolean;
106
- }>, {
106
+ }, {}>, {
107
107
  default: (_: {}) => any;
108
108
  'checkbox-content': (_: {}) => any;
109
109
  }>;
@@ -62,69 +62,24 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
62
62
  type: StringConstructor;
63
63
  };
64
64
  }, {
65
- props: Readonly<import("vue").ExtractPropTypes<{
66
- /** Removes any interactivity */
67
- disabled: {
68
- type: BooleanConstructor;
69
- default: boolean;
70
- };
71
- id: {
72
- type: StringConstructor;
73
- };
74
- invalid: {
75
- type: BooleanConstructor;
76
- default: boolean;
77
- };
78
- name: {
79
- type: StringConstructor;
80
- };
81
- required: {
82
- type: BooleanConstructor;
83
- default: boolean;
84
- };
85
- /** Display a label on top of the element. */
86
- label: StringConstructor;
87
- /** Overrides the default label size. See JoyLabel stories */
88
- labelSize: {
89
- type: PropType<"small" | "medium" | "large">;
90
- default: string;
91
- };
92
- /** If your component is not required, we can add a label to explicitely tell that it's not mandatory */
93
- optionalLabel: StringConstructor;
94
- /** Depending on context, we can add a "*" after the label to specify it's mandatory. */
95
- requiredMark: {
96
- type: BooleanConstructor;
97
- default: boolean;
98
- };
99
- /** Used for aria-label. */
100
- labelDecrement: {
101
- type: StringConstructor;
102
- };
103
- /** Used for aria-label. */
104
- labelIncrement: {
105
- type: StringConstructor;
106
- };
107
- max: {
108
- type: NumberConstructor;
109
- };
110
- min: {
111
- type: NumberConstructor;
112
- default: number;
113
- };
114
- modelValue: {
115
- type: NumberConstructor;
116
- default: number;
117
- };
118
- /** In order to increment or decrement by given steps. For non-integer values, don't use comma */
119
- step: {
120
- type: NumberConstructor;
121
- default: number;
122
- };
123
- /** When given, it renders a JoyFormError element */
124
- errorMessage: {
125
- type: StringConstructor;
126
- };
127
- }>>;
65
+ props: {
66
+ readonly disabled: boolean;
67
+ readonly required: boolean;
68
+ readonly modelValue: number;
69
+ readonly min: number;
70
+ readonly step: number;
71
+ readonly invalid: boolean;
72
+ readonly labelSize: "small" | "medium" | "large";
73
+ readonly requiredMark: boolean;
74
+ readonly id?: string | undefined;
75
+ readonly label?: string | undefined;
76
+ readonly name?: string | undefined;
77
+ readonly max?: number | undefined;
78
+ readonly optionalLabel?: string | undefined;
79
+ readonly labelDecrement?: string | undefined;
80
+ readonly labelIncrement?: string | undefined;
81
+ readonly errorMessage?: string | undefined;
82
+ };
128
83
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
129
84
  "update:modelValue": (value: number) => void;
130
85
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -192,15 +147,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
192
147
  }>> & {
193
148
  "onUpdate:modelValue"?: ((value: number) => any) | undefined;
194
149
  }, {
195
- required: boolean;
196
150
  disabled: boolean;
151
+ required: boolean;
197
152
  modelValue: number;
198
153
  min: number;
199
154
  step: number;
200
155
  invalid: boolean;
201
156
  labelSize: "small" | "medium" | "large";
202
157
  requiredMark: boolean;
203
- }>, {
158
+ }, {}>, {
204
159
  default: (_: {}) => any;
205
160
  }>;
206
161
  export default _default;
@@ -175,7 +175,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
175
175
  direction: "down" | "up";
176
176
  justify: "left" | "right";
177
177
  dropdownGap: string;
178
- }>, {
178
+ }, {}>, {
179
179
  'dropdown-button': (_: {}) => any;
180
180
  'dropdown-header': (_: {}) => any;
181
181
  'dropdown-items': (_: {}) => any;
@@ -79,7 +79,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
79
79
  options: Option[];
80
80
  width: string;
81
81
  height: string;
82
- }>, {
82
+ }, {}>, {
83
83
  'dropdown-list-header': (_: {}) => any;
84
84
  'dropdown-list-items': (_: {}) => any;
85
85
  label: (_: Option) => any;
@@ -16,7 +16,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
16
16
  noHtmlErrorText: StringConstructor;
17
17
  }>>, {
18
18
  visible: boolean;
19
- }>, {
19
+ }, {}>, {
20
20
  default: (_: {}) => any;
21
21
  }>;
22
22
  export default _default;
@@ -40,7 +40,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
40
40
  accent: boolean;
41
41
  displayIcon: boolean;
42
42
  level: "info" | "error" | "warning" | "neutral" | "success";
43
- }>, {
43
+ }, {}>, {
44
44
  'highlight-title': (_: {}) => any;
45
45
  default: (_: {}) => any;
46
46
  }>;
@@ -28,5 +28,5 @@ declare const _default: import("vue").DefineComponent<{
28
28
  }>>, {
29
29
  color: "primary" | "secondary" | "tertiary" | "quaternary" | "info" | "error" | "white" | "warning" | "neutral" | "success" | "brand-primary" | "brand-secondary";
30
30
  size: "small" | "xsmall" | "xxsmall" | "medium" | "large" | "xlarge";
31
- }>;
31
+ }, {}>;
32
32
  export default _default;
@@ -113,14 +113,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
113
113
  }>> & {
114
114
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
115
115
  }, {
116
+ disabled: boolean;
116
117
  size: InputSizes;
117
118
  required: boolean;
118
- disabled: boolean;
119
119
  invalid: boolean;
120
120
  labelSize: "small" | "medium" | "large";
121
121
  requiredMark: boolean;
122
122
  clearable: boolean;
123
- }>, {
123
+ }, {}>, {
124
124
  default: (_: {}) => any;
125
125
  }>;
126
126
  export default _default;
@@ -40,7 +40,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
40
40
  size: "small" | "medium" | "large";
41
41
  required: boolean;
42
42
  tagName: "label" | "legend";
43
- }>, {
43
+ }, {}>, {
44
44
  default: (_: {}) => any;
45
45
  }>;
46
46
  export default _default;
@@ -30,7 +30,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
30
30
  text: StringConstructor;
31
31
  }>>, {
32
32
  color: "teal" | "white";
33
- }>, {
33
+ }, {}>, {
34
34
  default: (_: {}) => any;
35
35
  }>;
36
36
  export default _default;
@@ -73,7 +73,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
73
73
  required: boolean;
74
74
  labelSize: "small" | "medium" | "large";
75
75
  requiredMark: boolean;
76
- }>, {
76
+ }, {}>, {
77
77
  checkbox: (_: Option) => any;
78
78
  }>;
79
79
  export default _default;
@@ -58,7 +58,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
58
58
  padding: PanelSizes;
59
59
  titleSize: PanelTitleSizes;
60
60
  loadingColor: "dark" | "light";
61
- }>, {
61
+ }, {}>, {
62
62
  'panel-title': (_: {}) => any;
63
63
  'panel-title-action': (_: {}) => any;
64
64
  'panel-subtitle': (_: {}) => any;
@@ -1,4 +1,4 @@
1
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>, {
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>, {
2
2
  'panel-section-title': (_: {}) => any;
3
3
  'panel-section-content': (_: {}) => any;
4
4
  }>;
@@ -67,11 +67,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
67
67
  }>> & {
68
68
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
69
69
  }, {
70
- required: boolean;
71
70
  disabled: boolean;
71
+ required: boolean;
72
72
  invalid: boolean;
73
73
  theme: "default" | "outline";
74
- }>, {
74
+ }, {}>, {
75
75
  default: (_: {}) => any;
76
76
  'radio-content': (_: {}) => any;
77
77
  'expandable-content': (_: {}) => any;
@@ -1,9 +1,15 @@
1
1
  import { PropType } from 'vue';
2
2
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
3
+ /**
4
+ * Change the layout
5
+ */
3
6
  direction: {
4
7
  type: PropType<"vertical" | "horizontal">;
5
8
  default: string;
6
9
  };
10
+ /**
11
+ * Applied to the generated fieldset. Can bind a form ID to your component if you can't include it into the form itself.
12
+ */
7
13
  form: {
8
14
  type: StringConstructor;
9
15
  };
@@ -11,10 +17,16 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
11
17
  type: StringConstructor;
12
18
  };
13
19
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
20
+ /**
21
+ * Change the layout
22
+ */
14
23
  direction: {
15
24
  type: PropType<"vertical" | "horizontal">;
16
25
  default: string;
17
26
  };
27
+ /**
28
+ * Applied to the generated fieldset. Can bind a form ID to your component if you can't include it into the form itself.
29
+ */
18
30
  form: {
19
31
  type: StringConstructor;
20
32
  };
@@ -23,7 +35,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
23
35
  };
24
36
  }>>, {
25
37
  direction: "vertical" | "horizontal";
26
- }>, {
38
+ }, {}>, {
27
39
  'radio-group-legend': (_: {}) => any;
28
40
  default: (_: {}) => any;
29
41
  }>;
@@ -24,7 +24,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
24
24
  }>>, {
25
25
  color: "dark" | "light";
26
26
  overlay: boolean;
27
- }>, {
27
+ }, {}>, {
28
28
  spinner: (_: {}) => any;
29
29
  content: (_: {}) => any;
30
30
  }>;
@@ -70,13 +70,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
70
70
  }>> & {
71
71
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
72
72
  }, {
73
- required: boolean;
74
73
  disabled: boolean;
74
+ required: boolean;
75
75
  modelValue: string;
76
76
  invalid: boolean;
77
77
  labelSize: "small" | "medium" | "large";
78
78
  requiredMark: boolean;
79
- }>, {
79
+ }, {}>, {
80
80
  'select-label': (_: {}) => any;
81
81
  default: (_: {}) => any;
82
82
  }>;
@@ -67,12 +67,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
67
67
  }>> & {
68
68
  "onUpdate:checked"?: ((value: string | boolean) => any) | undefined;
69
69
  }, {
70
+ disabled: boolean;
70
71
  checked: boolean;
71
72
  required: boolean;
72
- disabled: boolean;
73
73
  multiple: boolean;
74
74
  invalid: boolean;
75
- }>, {
75
+ }, {}>, {
76
76
  default: (_: {}) => any;
77
77
  'selectable-item-sublabel': (_: {}) => any;
78
78
  }>;
@@ -8,11 +8,11 @@ export interface Option {
8
8
  /**
9
9
  * @default false
10
10
  */
11
- disabled: boolean;
11
+ disabled?: boolean;
12
12
  /**
13
13
  * @default false
14
14
  */
15
- required: boolean;
15
+ required?: boolean;
16
16
  }
17
17
  declare const _default: import("vue").DefineComponent<{
18
18
  options: {
@@ -91,5 +91,5 @@ declare const _default: import("vue").DefineComponent<{
91
91
  labelSize: "small" | "medium" | "large";
92
92
  requiredMark: boolean;
93
93
  fullWidth: boolean;
94
- }>;
94
+ }, {}>;
95
95
  export default _default;
@@ -10,5 +10,5 @@ declare const _default: import("vue").DefineComponent<{
10
10
  type: PropType<"teal" | "white">;
11
11
  validator(color: SpinnerColors): boolean;
12
12
  };
13
- }>>, {}>;
13
+ }>>, {}, {}>;
14
14
  export default _default;
@@ -38,7 +38,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
38
38
  loadingColor: "dark" | "light";
39
39
  full: boolean;
40
40
  sidebar: "left" | "right";
41
- }>, {
41
+ }, {}>, {
42
42
  'template-back': (_: {}) => any;
43
43
  'template-title': (_: {}) => any;
44
44
  'template-subtitle': (_: {}) => any;
@@ -96,14 +96,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
96
96
  }>> & {
97
97
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
98
98
  }, {
99
- required: boolean;
100
99
  disabled: boolean;
100
+ required: boolean;
101
101
  modelValue: string;
102
102
  invalid: boolean;
103
103
  labelSize: "small" | "medium" | "large";
104
104
  requiredMark: boolean;
105
105
  autogrow: boolean;
106
- }>, {
106
+ }, {}>, {
107
107
  default: (_: {}) => any;
108
108
  }>;
109
109
  export default _default;
@@ -57,12 +57,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
57
57
  }>> & {
58
58
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
59
59
  }, {
60
+ disabled: boolean;
60
61
  value: string;
61
62
  required: boolean;
62
- disabled: boolean;
63
63
  modelValue: boolean;
64
64
  invalid: boolean;
65
- }>, {
65
+ }, {}>, {
66
66
  default: (_: {}) => any;
67
67
  }>;
68
68
  export default _default;
@@ -66,7 +66,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
66
66
  wrap: "nowrap" | "wrap";
67
67
  itemStretch: boolean;
68
68
  noMargin: boolean;
69
- }>, {
69
+ }, {}>, {
70
70
  default: (_: {}) => any;
71
71
  }>;
72
72
  export default _default;