@maltjoy/mcp-server 0.1.2 → 0.3.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/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 +1 -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/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 +1 -1
- package/dist/doc/VJoyIndicators/JoyIndicators.types.ts +1 -0
- package/dist/doc/VJoyInput/JoyInput.types.ts +36 -0
- package/dist/doc/VJoyInput/metadata.json +7 -5
- package/dist/doc/VJoyLabel/JoyLabel.types.ts +3 -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 +14 -4
- package/dist/doc/VJoyMenuItem/metadata.json +2 -2
- package/dist/doc/VJoyPanel/JoyPanel.types.ts +6 -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 +10 -9
- 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 +112 -110
- 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/css-classes.json +12 -0
- package/dist/doc/design-tokens.json +150 -148
- package/dist/doc/index.json +8 -8
- 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/dist/tools/list-design-tokens.d.ts +8 -8
- package/dist/tools/list-design-tokens.d.ts.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -6,6 +6,7 @@ MCP (Model Context Protocol) server for the Joy Design System. This server expos
|
|
|
6
6
|
|
|
7
7
|
- 🔍 List all 74 available Joy Vue3 components
|
|
8
8
|
- 📚 Access component documentation (props, events, slots, exposed members)
|
|
9
|
+
- 🏷️ Retrieve TypeScript types definitions for component props (variants, sizes, etc.)
|
|
9
10
|
- 🎨 List 132 design tokens (colors, spacing, typography, etc.)
|
|
10
11
|
- 💅 List 272 CSS utility classes
|
|
11
12
|
- 🤖 AI-friendly interface through MCP protocol
|
|
@@ -109,7 +110,35 @@ Retrieves detailed information about a specific Joy Vue3 component including pro
|
|
|
109
110
|
}
|
|
110
111
|
```
|
|
111
112
|
|
|
112
|
-
### 3. `
|
|
113
|
+
### 3. `joy_get_component_types`
|
|
114
|
+
|
|
115
|
+
Retrieves the TypeScript types definition files associated with a specific Joy Vue3 component. These types define the allowed values for props (variants, sizes, etc.).
|
|
116
|
+
|
|
117
|
+
**Parameters:**
|
|
118
|
+
- `componentName` (string, required): The exact name of the component (e.g., "VJoyButton", "VJoyMenu")
|
|
119
|
+
|
|
120
|
+
**Returns:**
|
|
121
|
+
```json
|
|
122
|
+
{
|
|
123
|
+
"componentName": "VJoyButton",
|
|
124
|
+
"files": [
|
|
125
|
+
{
|
|
126
|
+
"filename": "JoyButton.types.ts",
|
|
127
|
+
"content": "import {TGenericVariants, TPositions, TSizes} from '../../types';\n\nexport type TJoyDefaultButtonVariants = TGenericVariants | 'main' | 'admin' | 'ghost';\nexport type TJoyButtonVariants = TJoyDefaultButtonVariants | ...;\nexport type TJoyButtonSizes = Exclude<TSizes, 'xlarge'>;\nexport type TJoyButtonIconPositions = TPositions;\n"
|
|
128
|
+
}
|
|
129
|
+
]
|
|
130
|
+
}
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
**Error Response:**
|
|
134
|
+
```json
|
|
135
|
+
{
|
|
136
|
+
"error": "No types file found for component \"VJoyNonExistent\". Use joy_list_components to get a list of available components."
|
|
137
|
+
}
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
### 4. `joy_list_design_tokens`
|
|
141
|
+
|
|
113
142
|
|
|
114
143
|
Lists all available Joy design tokens (CSS custom properties) organized by domain.
|
|
115
144
|
|
|
@@ -129,7 +158,7 @@ Lists all available Joy design tokens (CSS custom properties) organized by domai
|
|
|
129
158
|
}
|
|
130
159
|
```
|
|
131
160
|
|
|
132
|
-
###
|
|
161
|
+
### 5. `joy_list_css_classes`
|
|
133
162
|
|
|
134
163
|
Lists all available Joy CSS utility classes organized by domain.
|
|
135
164
|
|
|
@@ -192,6 +221,7 @@ joy-mcp-server/
|
|
|
192
221
|
│ └── tools/
|
|
193
222
|
│ ├── list-components.ts # Component listing tool
|
|
194
223
|
│ ├── get-component-info.ts # Component info retrieval tool
|
|
224
|
+
│ ├── get-component-types.ts # Component types retrieval tool
|
|
195
225
|
│ ├── list-design-tokens.ts # Design tokens tool
|
|
196
226
|
│ └── list-css-classes.ts # CSS classes tool
|
|
197
227
|
├── dist/
|
|
@@ -200,7 +230,8 @@ joy-mcp-server/
|
|
|
200
230
|
│ ├── design-tokens.json # All design tokens
|
|
201
231
|
│ ├── css-classes.json # All CSS classes
|
|
202
232
|
│ └── VJoy*/ # Component directories
|
|
203
|
-
│
|
|
233
|
+
│ ├── metadata.json # Component metadata
|
|
234
|
+
│ └── *.types.ts # Component TypeScript types
|
|
204
235
|
├── package.json
|
|
205
236
|
├── tsconfig.json
|
|
206
237
|
├── README.md
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type TJoyAvailabilityStatus = 'AVAILABLE' | 'AVAILABLE_AND_VERIFIED' | 'NOT_AVAILABLE_WITH_DATE' | 'AVAILABLE_SOON' | 'NOT_AVAILABLE';
|
|
@@ -40,15 +40,6 @@
|
|
|
40
40
|
"dark-blue",
|
|
41
41
|
"yellow"
|
|
42
42
|
]
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"name": "number",
|
|
46
|
-
"type": "number | undefined",
|
|
47
|
-
"required": false,
|
|
48
|
-
"description": "",
|
|
49
|
-
"possibleValues": [
|
|
50
|
-
"number"
|
|
51
|
-
]
|
|
52
43
|
}
|
|
53
44
|
],
|
|
54
45
|
"events": [],
|
|
@@ -73,11 +64,6 @@
|
|
|
73
64
|
"name": "variant",
|
|
74
65
|
"type": "TJoyDotVariants",
|
|
75
66
|
"isMethod": false
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
"name": "number",
|
|
79
|
-
"type": "number | undefined",
|
|
80
|
-
"isMethod": false
|
|
81
67
|
}
|
|
82
68
|
],
|
|
83
69
|
"hasVModel": false
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export enum JoyBadgeLevelEnum {
|
|
2
|
+
// Should be replaced by JoyBadgeLevelEnum.HIGH_POTENTIAL_AUTO OR JoyBadgeProgramEnum.HIGH_POTENTIAL
|
|
3
|
+
HIGH_POTENTIAL = 'highpotential',
|
|
4
|
+
HIGH_POTENTIAL_AUTO = 'high-potential-auto',
|
|
5
|
+
MALT_LINKER = 'maltlinker',
|
|
6
|
+
NEW = 'new',
|
|
7
|
+
SUPER_MALTER = 'supermalter',
|
|
8
|
+
VERIFIED = 'verified',
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export enum JoyBadgeProgramEnum {
|
|
12
|
+
HIGH_POTENTIAL = 'program_high-potential',
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export type TJoyBadges = `${JoyBadgeLevelEnum | JoyBadgeProgramEnum}`;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {TGenericVariants, TPositions, TSizes} from '../../types';
|
|
2
|
+
|
|
3
|
+
export type TJoyDefaultButtonVariants = TGenericVariants | 'main' | 'admin' | 'ghost';
|
|
4
|
+
export type TJoyAIButtonVariants = `${TJoyDefaultButtonVariants}-ai`;
|
|
5
|
+
|
|
6
|
+
export type TJoyButtonVariants = TJoyDefaultButtonVariants | Exclude<TJoyAIButtonVariants, 'admin-ai'>;
|
|
7
|
+
|
|
8
|
+
export type TJoyButtonSizes = Exclude<TSizes, 'xlarge'>;
|
|
9
|
+
|
|
10
|
+
export type TJoyButtonIconPositions = TPositions;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import VJoyCollapseItem from './VJoyCollapseItem.vue';
|
|
2
|
+
|
|
3
|
+
export type TJoyCollapseItemProps = InstanceType<typeof VJoyCollapseItem>['$props'];
|
|
4
|
+
|
|
5
|
+
export type TJoyCollapseItems = TJoyCollapseItemProps[];
|
|
6
|
+
|
|
7
|
+
export const COLLAPSE_ITEM_MODES = ['outline', 'default'] as const;
|
|
8
|
+
export type TJoyCollapseItemModes = (typeof COLLAPSE_ITEM_MODES)[number];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type TJoyDotVariants = 'info' | 'gray' | 'green' | 'orange' | 'red' | 'teal' | 'pink' | 'dark-blue' | 'yellow';
|
|
@@ -2,12 +2,20 @@
|
|
|
2
2
|
"name": "JoyDot",
|
|
3
3
|
"displayName": "VJoyDot",
|
|
4
4
|
"props": [
|
|
5
|
+
{
|
|
6
|
+
"name": "number",
|
|
7
|
+
"type": "any",
|
|
8
|
+
"required": false,
|
|
9
|
+
"default": "undefined",
|
|
10
|
+
"description": "number: set a number or a string to display inside the dot, for badge-style dots with numbers.",
|
|
11
|
+
"possibleValues": null
|
|
12
|
+
},
|
|
5
13
|
{
|
|
6
14
|
"name": "variant",
|
|
7
15
|
"type": "TJoyDotVariants | undefined",
|
|
8
16
|
"required": false,
|
|
9
17
|
"default": "\"info\"",
|
|
10
|
-
"description": "",
|
|
18
|
+
"description": "variant: the color variant for the dot. You can use the TJoyDotVariants type.",
|
|
11
19
|
"possibleValues": [
|
|
12
20
|
"info",
|
|
13
21
|
"gray",
|
|
@@ -19,28 +27,19 @@
|
|
|
19
27
|
"dark-blue",
|
|
20
28
|
"yellow"
|
|
21
29
|
]
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"name": "number",
|
|
25
|
-
"type": "number | undefined",
|
|
26
|
-
"required": false,
|
|
27
|
-
"description": "",
|
|
28
|
-
"possibleValues": [
|
|
29
|
-
"number"
|
|
30
|
-
]
|
|
31
30
|
}
|
|
32
31
|
],
|
|
33
32
|
"events": [],
|
|
34
33
|
"slots": [],
|
|
35
34
|
"exposed": [
|
|
36
35
|
{
|
|
37
|
-
"name": "
|
|
38
|
-
"type": "
|
|
36
|
+
"name": "number",
|
|
37
|
+
"type": "any",
|
|
39
38
|
"isMethod": false
|
|
40
39
|
},
|
|
41
40
|
{
|
|
42
|
-
"name": "
|
|
43
|
-
"type": "
|
|
41
|
+
"name": "variant",
|
|
42
|
+
"type": "TJoyDotVariants",
|
|
44
43
|
"isMethod": false
|
|
45
44
|
}
|
|
46
45
|
],
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type TJoyDrawerSizes = 'default' | 'large';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import {TPositions} from '../../types';
|
|
2
|
+
|
|
3
|
+
export type TJoyDropdownDirections = 'up' | 'down';
|
|
4
|
+
|
|
5
|
+
export type TJoyDropdownJustify = TPositions;
|
|
6
|
+
|
|
7
|
+
export interface TJoyDropdownOption {
|
|
8
|
+
id: string;
|
|
9
|
+
value?: string;
|
|
10
|
+
label: string;
|
|
11
|
+
href?: string;
|
|
12
|
+
/**
|
|
13
|
+
* @default false
|
|
14
|
+
*/
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* @default false
|
|
18
|
+
*/
|
|
19
|
+
checked?: boolean;
|
|
20
|
+
[k: string]: any;
|
|
21
|
+
}
|
|
@@ -102,6 +102,17 @@
|
|
|
102
102
|
"possibleValues": [
|
|
103
103
|
"string"
|
|
104
104
|
]
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"name": "canDelete",
|
|
108
|
+
"type": "boolean | undefined",
|
|
109
|
+
"required": false,
|
|
110
|
+
"default": "true",
|
|
111
|
+
"description": "Enable delete file button.",
|
|
112
|
+
"possibleValues": [
|
|
113
|
+
"false",
|
|
114
|
+
"true"
|
|
115
|
+
]
|
|
105
116
|
}
|
|
106
117
|
],
|
|
107
118
|
"events": [],
|
|
@@ -13,6 +13,17 @@
|
|
|
13
13
|
"true"
|
|
14
14
|
]
|
|
15
15
|
},
|
|
16
|
+
{
|
|
17
|
+
"name": "noMargin",
|
|
18
|
+
"type": "boolean | undefined",
|
|
19
|
+
"required": false,
|
|
20
|
+
"default": "false",
|
|
21
|
+
"description": "Allows to remove any bottom margin on the component",
|
|
22
|
+
"possibleValues": [
|
|
23
|
+
"false",
|
|
24
|
+
"true"
|
|
25
|
+
]
|
|
26
|
+
},
|
|
16
27
|
{
|
|
17
28
|
"name": "noHtmlErrorText",
|
|
18
29
|
"type": "string | undefined",
|
|
@@ -51,6 +62,11 @@
|
|
|
51
62
|
"type": "boolean",
|
|
52
63
|
"isMethod": false
|
|
53
64
|
},
|
|
65
|
+
{
|
|
66
|
+
"name": "noMargin",
|
|
67
|
+
"type": "boolean",
|
|
68
|
+
"isMethod": false
|
|
69
|
+
},
|
|
54
70
|
{
|
|
55
71
|
"name": "noHtmlErrorText",
|
|
56
72
|
"type": "string | undefined",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"type": "string",
|
|
55
55
|
"required": false,
|
|
56
56
|
"description": "Based on maltjoy/icons availabilities. Works in pair with displayIcon boolean prop.",
|
|
57
|
-
"possibleValues": "TJoyIconsNames (
|
|
57
|
+
"possibleValues": "TJoyIconsNames (220 values)"
|
|
58
58
|
}
|
|
59
59
|
],
|
|
60
60
|
"events": [],
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type {JoyIconsId} from '@maltjoy/icons';
|
|
2
|
+
import {TSizes, TLevels} from '../../types';
|
|
3
|
+
|
|
4
|
+
export type TJoyIconsColors = TLevels | 'neutral-50' | 'primary' | 'secondary' | 'tertiary' | 'quaternary' | 'brand-primary' | 'brand-secondary' | 'white';
|
|
5
|
+
|
|
6
|
+
export type TJoyIconSizes = TSizes;
|
|
7
|
+
|
|
8
|
+
export type TJoyIconsNames = JoyIconsId;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type TJoyIndicatorsVariants = 'default' | 'light';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import {TSizes} from '../../types';
|
|
2
|
+
import {TJoyIconsNames} from '../JoyIcon/JoyIcon.types';
|
|
3
|
+
import {TJoyLabelSizes} from '../JoyLabel/JoyLabel.types';
|
|
4
|
+
|
|
5
|
+
export type TJoyInputSizes = Extract<TSizes, 'small' | 'medium' | 'large'>;
|
|
6
|
+
|
|
7
|
+
export interface VJoyInputProps {
|
|
8
|
+
autofocus?: boolean;
|
|
9
|
+
modelValue?: string | number | null;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
id?: string;
|
|
12
|
+
invalid?: boolean;
|
|
13
|
+
name?: string;
|
|
14
|
+
required?: boolean;
|
|
15
|
+
/** Display a label on top of the element. Handy if you only need to pass a string. If you need more, use the VJoyLabel. */
|
|
16
|
+
label?: string;
|
|
17
|
+
/** Overrides the default label size. See JoyLabel stories */
|
|
18
|
+
labelSize?: TJoyLabelSizes;
|
|
19
|
+
/** If your component is not required, we can add a label to explicitely tell that it's not mandatory */
|
|
20
|
+
optionalLabel?: string;
|
|
21
|
+
/** Depending on context, we can add a "*" after the label to specify it's mandatory. */
|
|
22
|
+
requiredMark?: boolean;
|
|
23
|
+
modelModifiers?: Partial<Record<'number' | 'trim' | 'lazy', boolean>>;
|
|
24
|
+
/** Display a cross icon on the right that enables to clear the field */
|
|
25
|
+
clearable?: boolean;
|
|
26
|
+
/** Add a JoyIcon / joy-icon with given name on left-side. */
|
|
27
|
+
icon?: TJoyIconsNames;
|
|
28
|
+
size?: TJoyInputSizes;
|
|
29
|
+
type?: string;
|
|
30
|
+
/** Adds a legend like symbol on the right of the component. Made for number based values */
|
|
31
|
+
unit?: string;
|
|
32
|
+
/** Activates the readonly mode for the input */
|
|
33
|
+
readonly?: boolean;
|
|
34
|
+
/** When using the clearable property, you have to specific an aria-label for accessibility. */
|
|
35
|
+
clearAriaLabel?: string;
|
|
36
|
+
}
|
|
@@ -57,10 +57,12 @@
|
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
59
|
"name": "name",
|
|
60
|
-
"type": "string",
|
|
61
|
-
"required":
|
|
60
|
+
"type": "string | undefined",
|
|
61
|
+
"required": false,
|
|
62
62
|
"description": "",
|
|
63
|
-
"possibleValues":
|
|
63
|
+
"possibleValues": [
|
|
64
|
+
"string"
|
|
65
|
+
]
|
|
64
66
|
},
|
|
65
67
|
{
|
|
66
68
|
"name": "required",
|
|
@@ -140,7 +142,7 @@
|
|
|
140
142
|
"type": "string",
|
|
141
143
|
"required": false,
|
|
142
144
|
"description": "Add a JoyIcon / joy-icon with given name on left-side.",
|
|
143
|
-
"possibleValues": "TJoyIconsNames (
|
|
145
|
+
"possibleValues": "TJoyIconsNames (220 values)"
|
|
144
146
|
},
|
|
145
147
|
{
|
|
146
148
|
"name": "size",
|
|
@@ -284,7 +286,7 @@
|
|
|
284
286
|
},
|
|
285
287
|
{
|
|
286
288
|
"name": "name",
|
|
287
|
-
"type": "string",
|
|
289
|
+
"type": "string | undefined",
|
|
288
290
|
"isMethod": false
|
|
289
291
|
},
|
|
290
292
|
{
|
|
@@ -129,9 +129,8 @@
|
|
|
129
129
|
"\"bell\"",
|
|
130
130
|
"\"block-shield\"",
|
|
131
131
|
"\"bricks\"",
|
|
132
|
+
"\"briefcase-hover\"",
|
|
132
133
|
"\"briefcase\"",
|
|
133
|
-
"\"building-column\"",
|
|
134
|
-
"\"business-suitcase\"",
|
|
135
134
|
"\"calendar\"",
|
|
136
135
|
"\"camcorder\"",
|
|
137
136
|
"\"camera-device\"",
|
|
@@ -163,6 +162,7 @@
|
|
|
163
162
|
"\"conditions\"",
|
|
164
163
|
"\"conference\"",
|
|
165
164
|
"\"contact\"",
|
|
165
|
+
"\"cookie\"",
|
|
166
166
|
"\"cost-plus\"",
|
|
167
167
|
"\"creditcard\"",
|
|
168
168
|
"\"cross\"",
|
|
@@ -188,11 +188,11 @@
|
|
|
188
188
|
"\"file\"",
|
|
189
189
|
"\"five-day\"",
|
|
190
190
|
"\"flag\"",
|
|
191
|
-
"\"folder-arrow-down\"",
|
|
192
|
-
"\"folder-text\"",
|
|
193
191
|
"\"freelancer-placeholder\"",
|
|
194
192
|
"\"fullscren\"",
|
|
195
193
|
"\"gasoline\"",
|
|
194
|
+
"\"globe-hover\"",
|
|
195
|
+
"\"globe\"",
|
|
196
196
|
"\"google\"",
|
|
197
197
|
"\"granular-report\"",
|
|
198
198
|
"\"graph-high\"",
|
|
@@ -209,6 +209,7 @@
|
|
|
209
209
|
"\"home\"",
|
|
210
210
|
"\"ico-list\"",
|
|
211
211
|
"\"identity-switch\"",
|
|
212
|
+
"\"image\"",
|
|
212
213
|
"\"info-circle\"",
|
|
213
214
|
"\"instagram\"",
|
|
214
215
|
"\"insurance\"",
|
|
@@ -217,6 +218,7 @@
|
|
|
217
218
|
"\"legal-check\"",
|
|
218
219
|
"\"legal\"",
|
|
219
220
|
"\"linkedin\"",
|
|
221
|
+
"\"list-file\"",
|
|
220
222
|
"\"list\"",
|
|
221
223
|
"\"location\"",
|
|
222
224
|
"\"lock\"",
|
|
@@ -232,14 +234,18 @@
|
|
|
232
234
|
"\"money\"",
|
|
233
235
|
"\"mood-bad\"",
|
|
234
236
|
"\"mood-good\"",
|
|
237
|
+
"\"newspaper\"",
|
|
235
238
|
"\"open-conversation\"",
|
|
236
239
|
"\"paperclip\"",
|
|
237
240
|
"\"pen\"",
|
|
238
241
|
"\"pencil\"",
|
|
239
242
|
"\"phone\"",
|
|
243
|
+
"\"plane-full\"",
|
|
240
244
|
"\"plus-circle\"",
|
|
241
245
|
"\"pound-circle\"",
|
|
242
246
|
"\"print\"",
|
|
247
|
+
"\"profile-picture-hover\"",
|
|
248
|
+
"\"profile-picture\"",
|
|
243
249
|
"\"projectmanager-agile\"",
|
|
244
250
|
"\"qr-code\"",
|
|
245
251
|
"\"question-circle\"",
|
|
@@ -265,9 +271,12 @@
|
|
|
265
271
|
"\"sort-asc\"",
|
|
266
272
|
"\"sort-desc\"",
|
|
267
273
|
"\"sparkle\"",
|
|
274
|
+
"\"sparkles\"",
|
|
268
275
|
"\"star-fill\"",
|
|
269
276
|
"\"star-half\"",
|
|
277
|
+
"\"star-message\"",
|
|
270
278
|
"\"star\"",
|
|
279
|
+
"\"super-malter\"",
|
|
271
280
|
"\"swipe\"",
|
|
272
281
|
"\"switch\"",
|
|
273
282
|
"\"sync-reset\"",
|
|
@@ -300,6 +309,7 @@
|
|
|
300
309
|
"\"wallet\"",
|
|
301
310
|
"\"warning-triangle\"",
|
|
302
311
|
"\"warning\"",
|
|
312
|
+
"\"waving-hand\"",
|
|
303
313
|
"\"web-design\"",
|
|
304
314
|
"\"wench\"",
|
|
305
315
|
"\"x\"",
|
|
@@ -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,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
|
+
}
|