@maltjoy/mcp-server 0.2.0 → 0.3.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 +34 -3
- package/dist/doc/VJoyAvailability/JoyAvailability.types.ts +1 -0
- package/dist/doc/VJoyAvatar/JoyAvatar.types.ts +6 -0
- package/dist/doc/VJoyAvatar/metadata.json +2 -1
- package/dist/doc/VJoyBadge/JoyBadge.types.ts +3 -0
- package/dist/doc/VJoyBadge/metadata.json +0 -14
- package/dist/doc/VJoyBadgeLevel/JoyBadgeLevel.types.ts +15 -0
- package/dist/doc/VJoyButton/JoyButton.types.ts +10 -0
- package/dist/doc/VJoyButton/metadata.json +1 -1
- package/dist/doc/VJoyCollapseItem/JoyCollapseItem.types.ts +8 -0
- package/dist/doc/VJoyCollapseItem/metadata.json +1 -1
- package/dist/doc/VJoyCompanyAvatar/JoyCompanyAvatar.types.ts +3 -0
- package/dist/doc/VJoyDialog/JoyDialog.types.ts +3 -0
- package/dist/doc/VJoyDot/VJoyDot.types.ts +1 -0
- package/dist/doc/VJoyDot/metadata.json +13 -14
- package/dist/doc/VJoyDrawer/JoyDrawer.types.ts +1 -0
- package/dist/doc/VJoyDropdown/JoyDropdown.types.ts +21 -0
- package/dist/doc/VJoyDropdownList/JoyDropdownList.types.ts +3 -0
- package/dist/doc/VJoyDropzone/metadata.json +11 -0
- package/dist/doc/VJoyFormError/metadata.json +16 -0
- package/dist/doc/VJoyFormGroup/metadata.json +14 -0
- package/dist/doc/VJoyFunnel/JoyFunnel.types.ts +5 -0
- package/dist/doc/VJoyHighlight/JoyHighlight.types.ts +4 -0
- package/dist/doc/VJoyHighlight/metadata.json +1 -1
- package/dist/doc/VJoyIcon/JoyIcon.types.ts +8 -0
- package/dist/doc/VJoyIcon/metadata.json +3 -3
- package/dist/doc/VJoyIndicators/JoyIndicators.types.ts +1 -0
- package/dist/doc/VJoyInput/JoyInput.types.ts +40 -0
- package/dist/doc/VJoyInput/metadata.json +5 -1
- package/dist/doc/VJoyInputDigit/JoyInputDigit.types.ts +14 -0
- package/dist/doc/VJoyInputDigit/metadata.json +154 -0
- package/dist/doc/VJoyInputPassword/metadata.json +257 -0
- package/dist/doc/VJoyLabel/JoyLabel.types.ts +4 -0
- package/dist/doc/VJoyLink/JoyLink.types.ts +2 -0
- package/dist/doc/VJoyLink/metadata.json +1 -1
- package/dist/doc/VJoyListItem/metadata.json +1 -1
- package/dist/doc/VJoyMenu/JoyMenu.types.ts +14 -0
- package/dist/doc/VJoyMenu/metadata.json +3 -0
- package/dist/doc/VJoyMenuItem/JoyMenuItem.types.ts +14 -0
- package/dist/doc/VJoyMenuItem/metadata.json +2 -2
- package/dist/doc/VJoyPanel/JoyPanel.types.ts +6 -0
- package/dist/doc/VJoyPasswordRequirement/JoyPasswordRequirement.types.ts +8 -0
- package/dist/doc/VJoyPasswordRequirement/metadata.json +39 -0
- package/dist/doc/VJoyProductTour/JoyProductTour.types.ts +45 -0
- package/dist/doc/VJoyProductTour/metadata.json +1 -1
- package/dist/doc/VJoyProgressBar/JoyProgressBar.types.ts +3 -0
- package/dist/doc/VJoyRadio/JoyRadio.types.ts +1 -0
- package/dist/doc/VJoyRadio/metadata.json +16 -0
- package/dist/doc/VJoyRadioGroup/JoyRadioGroup.types.ts +1 -0
- package/dist/doc/VJoyRadioGroup/metadata.json +16 -0
- package/dist/doc/VJoyRatingStars/JoyRatingStars.types.ts +3 -0
- package/dist/doc/VJoyScreenLoader/VJoyScreenLoader.types.ts +1 -0
- package/dist/doc/VJoySelect/JoySelect.types.ts +3 -0
- package/dist/doc/VJoySelectableItem/VJoySelectableItem.types.ts +10 -0
- package/dist/doc/VJoySelectableItem/metadata.json +1 -1
- package/dist/doc/VJoySeparator/JoySeparator.types.ts +4 -0
- package/dist/doc/VJoySnackbar/JoySnackbar.types.ts +23 -0
- package/dist/doc/VJoySpinner/JoySpinner.types.ts +1 -0
- package/dist/doc/VJoyStep/TJoyStep.types.ts +1 -0
- package/dist/doc/VJoyTag/JoyTag.types.ts +19 -0
- package/dist/doc/VJoyTag/metadata.json +1 -0
- package/dist/doc/VJoyTagsInput/JoyTagsInput.types.ts +4 -0
- package/dist/doc/VJoyTagsInput/metadata.json +1 -0
- package/dist/doc/VJoyTagsList/JoyTagsList.types.ts +5 -0
- package/dist/doc/VJoyTagsList/metadata.json +1 -0
- package/dist/doc/VJoyTemplate/JoyTemplate.types.ts +1 -0
- package/dist/doc/VJoyText/JoyText.types.ts +14 -0
- package/dist/doc/VJoyWalkthrough/metadata.json +1 -1
- package/dist/doc/VJoyWalkthroughTrigger/metadata.json +1 -1
- package/dist/doc/VJoyWrapper/JoyWrapper.types.ts +9 -0
- package/dist/doc/index.json +44 -12
- package/dist/index.js +15 -2
- package/dist/index.js.map +1 -1
- package/dist/tools/get-component-types.d.ts +31 -0
- package/dist/tools/get-component-types.d.ts.map +1 -0
- package/dist/tools/get-component-types.js +60 -0
- package/dist/tools/get-component-types.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "JoyInputPassword",
|
|
3
|
+
"displayName": "VJoyInputPassword",
|
|
4
|
+
"props": [
|
|
5
|
+
{
|
|
6
|
+
"name": "invalid",
|
|
7
|
+
"type": "boolean | undefined",
|
|
8
|
+
"required": false,
|
|
9
|
+
"default": "false",
|
|
10
|
+
"description": "",
|
|
11
|
+
"possibleValues": [
|
|
12
|
+
"false",
|
|
13
|
+
"true"
|
|
14
|
+
]
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"name": "label",
|
|
18
|
+
"type": "string | undefined",
|
|
19
|
+
"required": false,
|
|
20
|
+
"description": "Display a label on top of the element. Handy if you only need to pass a string. If you need more, use the VJoyLabel.",
|
|
21
|
+
"possibleValues": [
|
|
22
|
+
"string"
|
|
23
|
+
]
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"name": "size",
|
|
27
|
+
"type": "TJoyInputSizes | undefined",
|
|
28
|
+
"required": false,
|
|
29
|
+
"description": "",
|
|
30
|
+
"possibleValues": [
|
|
31
|
+
"medium",
|
|
32
|
+
"large",
|
|
33
|
+
"small"
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "required",
|
|
38
|
+
"type": "boolean | undefined",
|
|
39
|
+
"required": false,
|
|
40
|
+
"default": "false",
|
|
41
|
+
"description": "",
|
|
42
|
+
"possibleValues": [
|
|
43
|
+
"false",
|
|
44
|
+
"true"
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "icon",
|
|
49
|
+
"type": "string",
|
|
50
|
+
"required": false,
|
|
51
|
+
"description": "Add a JoyIcon / joy-icon with given name on left-side.",
|
|
52
|
+
"possibleValues": "TJoyIconsNames (220 values)"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"name": "id",
|
|
56
|
+
"type": "string | undefined",
|
|
57
|
+
"required": false,
|
|
58
|
+
"description": "",
|
|
59
|
+
"possibleValues": [
|
|
60
|
+
"string"
|
|
61
|
+
]
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "disabled",
|
|
65
|
+
"type": "boolean | undefined",
|
|
66
|
+
"required": false,
|
|
67
|
+
"default": "false",
|
|
68
|
+
"description": "",
|
|
69
|
+
"possibleValues": [
|
|
70
|
+
"false",
|
|
71
|
+
"true"
|
|
72
|
+
]
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"name": "name",
|
|
76
|
+
"type": "string",
|
|
77
|
+
"required": false,
|
|
78
|
+
"default": "\"joy-input-password\"",
|
|
79
|
+
"description": "",
|
|
80
|
+
"possibleValues": null
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"name": "modelValue",
|
|
84
|
+
"type": "string | number | null | undefined",
|
|
85
|
+
"required": false,
|
|
86
|
+
"description": "",
|
|
87
|
+
"possibleValues": [
|
|
88
|
+
"null",
|
|
89
|
+
"string",
|
|
90
|
+
"number"
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"name": "autofocus",
|
|
95
|
+
"type": "boolean | undefined",
|
|
96
|
+
"required": false,
|
|
97
|
+
"default": "false",
|
|
98
|
+
"description": "",
|
|
99
|
+
"possibleValues": [
|
|
100
|
+
"false",
|
|
101
|
+
"true"
|
|
102
|
+
]
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"name": "labelSize",
|
|
106
|
+
"type": "TJoyLabelSizes | undefined",
|
|
107
|
+
"required": false,
|
|
108
|
+
"default": "\"medium\"",
|
|
109
|
+
"description": "Overrides the default label size. See JoyLabel stories",
|
|
110
|
+
"possibleValues": [
|
|
111
|
+
"medium",
|
|
112
|
+
"large",
|
|
113
|
+
"small"
|
|
114
|
+
]
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"name": "optionalLabel",
|
|
118
|
+
"type": "string | undefined",
|
|
119
|
+
"required": false,
|
|
120
|
+
"description": "If your component is not required, we can add a label to explicitely tell that it's not mandatory",
|
|
121
|
+
"possibleValues": [
|
|
122
|
+
"string"
|
|
123
|
+
]
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"name": "requiredMark",
|
|
127
|
+
"type": "boolean | undefined",
|
|
128
|
+
"required": false,
|
|
129
|
+
"default": "false",
|
|
130
|
+
"description": "Depending on context, we can add a \"*\" after the label to specify it's mandatory.",
|
|
131
|
+
"possibleValues": [
|
|
132
|
+
"false",
|
|
133
|
+
"true"
|
|
134
|
+
]
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"name": "modelModifiers",
|
|
138
|
+
"type": "Partial<Record<\"number\" | \"trim\" | \"lazy\", boolean>> | undefined",
|
|
139
|
+
"required": false,
|
|
140
|
+
"default": "{ lazy: false }",
|
|
141
|
+
"description": "",
|
|
142
|
+
"possibleValues": [
|
|
143
|
+
"Partial<Record<\"number\" | \"trim\" | \"lazy\", boolean>>"
|
|
144
|
+
]
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"name": "unit",
|
|
148
|
+
"type": "string | undefined",
|
|
149
|
+
"required": false,
|
|
150
|
+
"description": "Adds a legend like symbol on the right of the component. Made for number based values",
|
|
151
|
+
"possibleValues": [
|
|
152
|
+
"string"
|
|
153
|
+
]
|
|
154
|
+
}
|
|
155
|
+
],
|
|
156
|
+
"events": [
|
|
157
|
+
{
|
|
158
|
+
"name": "update:modelValue",
|
|
159
|
+
"description": "",
|
|
160
|
+
"signature": "(event: \"update:modelValue\", value: string): void"
|
|
161
|
+
}
|
|
162
|
+
],
|
|
163
|
+
"slots": [
|
|
164
|
+
{
|
|
165
|
+
"name": "password-requirements",
|
|
166
|
+
"description": "Slot used to inject password requirements. Use VJoyPasswordRequirement component to display the requirements."
|
|
167
|
+
}
|
|
168
|
+
],
|
|
169
|
+
"exposed": [
|
|
170
|
+
{
|
|
171
|
+
"name": "invalid",
|
|
172
|
+
"type": "boolean",
|
|
173
|
+
"isMethod": false
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"name": "required",
|
|
177
|
+
"type": "boolean",
|
|
178
|
+
"isMethod": false
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"name": "disabled",
|
|
182
|
+
"type": "boolean",
|
|
183
|
+
"isMethod": false
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"name": "name",
|
|
187
|
+
"type": "string",
|
|
188
|
+
"isMethod": false
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"name": "autofocus",
|
|
192
|
+
"type": "boolean",
|
|
193
|
+
"isMethod": false
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"name": "labelSize",
|
|
197
|
+
"type": "TJoyLabelSizes",
|
|
198
|
+
"isMethod": false
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"name": "requiredMark",
|
|
202
|
+
"type": "boolean",
|
|
203
|
+
"isMethod": false
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"name": "modelModifiers",
|
|
207
|
+
"type": "Partial<Record<\"number\" | \"trim\" | \"lazy\", boolean>>",
|
|
208
|
+
"isMethod": false
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"name": "label",
|
|
212
|
+
"type": "string | undefined",
|
|
213
|
+
"isMethod": false
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"name": "size",
|
|
217
|
+
"type": "TJoyInputSizes | undefined",
|
|
218
|
+
"isMethod": false
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"name": "icon",
|
|
222
|
+
"type": "string",
|
|
223
|
+
"isMethod": false
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"name": "id",
|
|
227
|
+
"type": "string | undefined",
|
|
228
|
+
"isMethod": false
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"name": "modelValue",
|
|
232
|
+
"type": "string | number | null | undefined",
|
|
233
|
+
"isMethod": false
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"name": "onUpdate:modelValue",
|
|
237
|
+
"type": "((value: string) => any) | undefined",
|
|
238
|
+
"isMethod": true
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"name": "optionalLabel",
|
|
242
|
+
"type": "string | undefined",
|
|
243
|
+
"isMethod": false
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"name": "unit",
|
|
247
|
+
"type": "string | undefined",
|
|
248
|
+
"isMethod": false
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"name": "focus",
|
|
252
|
+
"type": "() => void",
|
|
253
|
+
"isMethod": true
|
|
254
|
+
}
|
|
255
|
+
],
|
|
256
|
+
"hasVModel": true
|
|
257
|
+
}
|
|
@@ -129,6 +129,7 @@
|
|
|
129
129
|
"\"bell\"",
|
|
130
130
|
"\"block-shield\"",
|
|
131
131
|
"\"bricks\"",
|
|
132
|
+
"\"briefcase-hover\"",
|
|
132
133
|
"\"briefcase\"",
|
|
133
134
|
"\"calendar\"",
|
|
134
135
|
"\"camcorder\"",
|
|
@@ -243,6 +244,8 @@
|
|
|
243
244
|
"\"plus-circle\"",
|
|
244
245
|
"\"pound-circle\"",
|
|
245
246
|
"\"print\"",
|
|
247
|
+
"\"profile-picture-hover\"",
|
|
248
|
+
"\"profile-picture\"",
|
|
246
249
|
"\"projectmanager-agile\"",
|
|
247
250
|
"\"qr-code\"",
|
|
248
251
|
"\"question-circle\"",
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {JoyIconsId} from '@maltjoy/icons';
|
|
2
|
+
|
|
3
|
+
export interface IJoyMenuItemBis {
|
|
4
|
+
id?: string;
|
|
5
|
+
label: string;
|
|
6
|
+
href?: string;
|
|
7
|
+
icon?: JoyIconsId;
|
|
8
|
+
current?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* @default false
|
|
11
|
+
*/
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
[k: string]: any;
|
|
14
|
+
}
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"type": "string",
|
|
24
24
|
"required": false,
|
|
25
25
|
"description": "",
|
|
26
|
-
"possibleValues": "TJoyIconsNames (
|
|
26
|
+
"possibleValues": "TJoyIconsNames (220 values)"
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
29
|
"name": "current",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"type": "string",
|
|
51
51
|
"required": false,
|
|
52
52
|
"description": "",
|
|
53
|
-
"possibleValues": "TJoyIconsNames (
|
|
53
|
+
"possibleValues": "TJoyIconsNames (220 values)"
|
|
54
54
|
},
|
|
55
55
|
{
|
|
56
56
|
"name": "statusColor",
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type {TLevels} from '../../types';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* - neutral : The password field is focused but not this rule is not valid
|
|
5
|
+
* - valid : This rule is valid
|
|
6
|
+
* - invalid : This field is not focused and this rule is invalid
|
|
7
|
+
*/
|
|
8
|
+
export type TVJoyPasswordRequirementStatus = Extract<TLevels, 'success' | 'error' | 'neutral'>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "JoyPasswordRequirement",
|
|
3
|
+
"displayName": "VJoyPasswordRequirement",
|
|
4
|
+
"props": [
|
|
5
|
+
{
|
|
6
|
+
"name": "label",
|
|
7
|
+
"type": "string",
|
|
8
|
+
"required": true,
|
|
9
|
+
"description": "Label of the password strength rule",
|
|
10
|
+
"possibleValues": null
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "status",
|
|
14
|
+
"type": "TVJoyPasswordRequirementStatus | undefined",
|
|
15
|
+
"required": false,
|
|
16
|
+
"description": "Status of the password requirement",
|
|
17
|
+
"possibleValues": [
|
|
18
|
+
"error",
|
|
19
|
+
"neutral",
|
|
20
|
+
"success"
|
|
21
|
+
]
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"events": [],
|
|
25
|
+
"slots": [],
|
|
26
|
+
"exposed": [
|
|
27
|
+
{
|
|
28
|
+
"name": "label",
|
|
29
|
+
"type": "string",
|
|
30
|
+
"isMethod": false
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "status",
|
|
34
|
+
"type": "TVJoyPasswordRequirementStatus | undefined",
|
|
35
|
+
"isMethod": false
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"hasVModel": false
|
|
39
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import {TJoyIconsNames} from '../JoyIcon/JoyIcon.types';
|
|
2
|
+
import VJoyProductTourInner from './VJoyProductTourInner.vue';
|
|
3
|
+
|
|
4
|
+
export const PRODUCT_TOUR_POSITIONS = ['left', 'right', 'top', 'bottom'] as const;
|
|
5
|
+
export type TJoyProductTourPositions = (typeof PRODUCT_TOUR_POSITIONS)[number];
|
|
6
|
+
|
|
7
|
+
export interface IJoyProductTourShowParams {
|
|
8
|
+
highlightSelector?: HTMLElement;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export type TJoyProductTourEvents = {
|
|
12
|
+
'product-tour:show': string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export interface VJoyProductTourProps {
|
|
16
|
+
icon?: TJoyIconsNames;
|
|
17
|
+
steps?: number;
|
|
18
|
+
step?: number;
|
|
19
|
+
position?: TJoyProductTourPositions;
|
|
20
|
+
open?: boolean;
|
|
21
|
+
maxWidth?: number;
|
|
22
|
+
disableOverlay?: boolean;
|
|
23
|
+
spotlightPadding?: number;
|
|
24
|
+
spotlightSelector: string;
|
|
25
|
+
closeButton?: boolean;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export interface VJoyProductTourSlots {
|
|
29
|
+
/** Allows to inject an image above the title */
|
|
30
|
+
'product-tour-banner'?: () => any;
|
|
31
|
+
/** Most of the time we use it to display tags, or short content */
|
|
32
|
+
'product-tour-preheader'?: () => any;
|
|
33
|
+
/** Title of the component */
|
|
34
|
+
'product-tour-header'?: () => any;
|
|
35
|
+
/** Main content. Put whatever you want here */
|
|
36
|
+
'product-tour-content'?: () => any;
|
|
37
|
+
/** The click here will automatically handle slotted VJoyButton with bubbling */
|
|
38
|
+
'product-tour-dismiss'?: () => any;
|
|
39
|
+
/** To display the main CTA. Component hiding needs to be made manually */
|
|
40
|
+
'product-tour-next'?: () => any;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export interface VJoyProductToursEvents {
|
|
44
|
+
'product-tour:hide': [];
|
|
45
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type RadioThemes = 'default' | 'outline';
|
|
@@ -2,6 +2,17 @@
|
|
|
2
2
|
"name": "JoyRadio",
|
|
3
3
|
"displayName": "VJoyRadio",
|
|
4
4
|
"props": [
|
|
5
|
+
{
|
|
6
|
+
"name": "invalid",
|
|
7
|
+
"type": "boolean | undefined",
|
|
8
|
+
"required": false,
|
|
9
|
+
"default": "undefined",
|
|
10
|
+
"description": "Invalid state of the component\n\nIf not explicitly provided, will inherit from parent VJoyRadioGroup's invalid prop.\nNote: A checked radio cannot be invalid (the `checked` state takes priority over `invalid` state).",
|
|
11
|
+
"possibleValues": [
|
|
12
|
+
"false",
|
|
13
|
+
"true"
|
|
14
|
+
]
|
|
15
|
+
},
|
|
5
16
|
{
|
|
6
17
|
"name": "required",
|
|
7
18
|
"type": "boolean | undefined",
|
|
@@ -104,6 +115,11 @@
|
|
|
104
115
|
}
|
|
105
116
|
],
|
|
106
117
|
"exposed": [
|
|
118
|
+
{
|
|
119
|
+
"name": "invalid",
|
|
120
|
+
"type": "boolean",
|
|
121
|
+
"isMethod": false
|
|
122
|
+
},
|
|
107
123
|
{
|
|
108
124
|
"name": "required",
|
|
109
125
|
"type": "boolean",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type RadioGroupDirection = 'vertical' | 'horizontal';
|
|
@@ -30,6 +30,17 @@
|
|
|
30
30
|
"possibleValues": [
|
|
31
31
|
"string"
|
|
32
32
|
]
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "invalid",
|
|
36
|
+
"type": "boolean | undefined",
|
|
37
|
+
"required": false,
|
|
38
|
+
"default": "false",
|
|
39
|
+
"description": "Invalid state of the radio group\n\nWhen set to true, all child VJoyRadio components will inherit this invalid state.\nNote: A checked radio cannot be invalid (the `checked` state takes priority over `invalid` state at the radio level).",
|
|
40
|
+
"possibleValues": [
|
|
41
|
+
"false",
|
|
42
|
+
"true"
|
|
43
|
+
]
|
|
33
44
|
}
|
|
34
45
|
],
|
|
35
46
|
"events": [],
|
|
@@ -44,6 +55,11 @@
|
|
|
44
55
|
}
|
|
45
56
|
],
|
|
46
57
|
"exposed": [
|
|
58
|
+
{
|
|
59
|
+
"name": "invalid",
|
|
60
|
+
"type": "boolean",
|
|
61
|
+
"isMethod": false
|
|
62
|
+
},
|
|
47
63
|
{
|
|
48
64
|
"name": "direction",
|
|
49
65
|
"type": "RadioGroupDirection",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type TJoyScreenLoaderColors = 'dark' | 'light';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import VJoySelectableItem from './VJoySelectableItem.vue';
|
|
2
|
+
import type {ComponentProps} from 'vue-component-type-helpers';
|
|
3
|
+
|
|
4
|
+
export type TVJoySelectableItemProps = ComponentProps<typeof VJoySelectableItem>;
|
|
5
|
+
|
|
6
|
+
export interface TJoySelectableItemOption extends TVJoySelectableItemProps {
|
|
7
|
+
attrs?: {
|
|
8
|
+
[k: string]: any;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import {App} from 'vue';
|
|
2
|
+
import {Emitter} from 'mitt';
|
|
3
|
+
import VJoySnackbar from './VJoySnackbar.vue';
|
|
4
|
+
import {TLevels} from '../../types';
|
|
5
|
+
|
|
6
|
+
export type TJoySnackbarLevels = Exclude<TLevels, 'neutral'>;
|
|
7
|
+
|
|
8
|
+
export type TJoySnackbarEvents = {
|
|
9
|
+
'snackbar:hide': undefined;
|
|
10
|
+
'snackbar:show': undefined;
|
|
11
|
+
'snackbar:action-click': undefined;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export interface IJoynackbarServiceOptions {
|
|
15
|
+
disableStacking?: boolean;
|
|
16
|
+
snackbarHostId?: string;
|
|
17
|
+
props: InstanceType<typeof VJoySnackbar>['$props'];
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface IJoynackbarServiceReturn {
|
|
21
|
+
snackbarEventBus: Emitter<TJoySnackbarEvents>;
|
|
22
|
+
snackbarApp: App<Element>;
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type TJoySpinnerColors = 'teal' | 'white';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type TJoyStepSizes = 'small' | 'default';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {TSizes} from '../../types';
|
|
2
|
+
import VJoyTag from './VJoyTag.vue';
|
|
3
|
+
|
|
4
|
+
export type TJoyTagVariants = 'important' | 'inactive' | 'pending' | 'pricing' | 'special' | 'primary' | 'secondary' | 'ai-primary' | 'ai-secondary' | 'empty';
|
|
5
|
+
|
|
6
|
+
export type TJoyTagSizes = Exclude<TSizes, 'xlarge' | 'xxsmall'>;
|
|
7
|
+
|
|
8
|
+
export type VJoyTagProps = InstanceType<typeof VJoyTag>['$props'];
|
|
9
|
+
|
|
10
|
+
export interface IJoyTagSelected {
|
|
11
|
+
selected: boolean;
|
|
12
|
+
value: VJoyTagProps['value'];
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface IJoyTagRemoved {
|
|
16
|
+
value: VJoyTagProps['value'];
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface IJoyTag extends VJoyTagProps {}
|