@opentiny/tiny-vue-mcp 0.0.4 → 0.0.5

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/dist/index.d.ts CHANGED
@@ -1,5 +1,7 @@
1
1
  import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
2
  import { Business, ComponentMcpConfig } from './src/utils/defineTool';
3
+ import { default as zhCN } from './src/lang/zh-CN';
4
+ import { default as enUS } from './src/lang/en';
3
5
  export declare const createMcpTools: (instance: any, { server, business }: {
4
6
  server: McpServer;
5
7
  business: Business;
@@ -153,3 +155,4 @@ export declare const getTinyVueMcpConfig: ({ t }?: {
153
155
  Wizard: import('./src/utils/defineComponentTool').RealComponentTool;
154
156
  };
155
157
  };
158
+ export { zhCN, enUS };
package/dist/index.js CHANGED
@@ -1,4 +1,6 @@
1
1
  import { defineTool as m } from "./src/utils/defineTool.js";
2
+ import { default as yi } from "./src/lang/zh-CN.js";
3
+ import { default as Fi } from "./src/lang/en.js";
2
4
  import { getGridConfig as g } from "./src/grid/index.js";
3
5
  import { getTreeConfig as f } from "./src/tree/index.js";
4
6
  import { getBaseSelectConfig as n } from "./src/base-select/index.js";
@@ -11,28 +13,28 @@ import { getInputConfig as c } from "./src/input/index.js";
11
13
  import { getSelectConfig as d } from "./src/select/index.js";
12
14
  import { getCheckboxConfig as u } from "./src/checkbox/index.js";
13
15
  import { getRadioConfig as s } from "./src/radio/index.js";
14
- import { getTableConfig as T } from "./src/table/index.js";
15
- import { getDatePickerConfig as S } from "./src/date-picker/index.js";
16
+ import { getTableConfig as S } from "./src/table/index.js";
17
+ import { getDatePickerConfig as T } from "./src/date-picker/index.js";
16
18
  import { getTabsConfig as D } from "./src/tabs/index.js";
17
19
  import { getUploadConfig as M } from "./src/upload/index.js";
18
20
  import { getDrawerConfig as P } from "./src/drawer/index.js";
19
- import { getDialogBoxConfig as k } from "./src/dialog-box/index.js";
20
- import { getStepsConfig as x } from "./src/steps/index.js";
21
+ import { getDialogBoxConfig as x } from "./src/dialog-box/index.js";
22
+ import { getStepsConfig as k } from "./src/steps/index.js";
21
23
  import { getTooltipConfig as b } from "./src/tooltip/index.js";
22
24
  import { getPopoverConfig as y } from "./src/popover/index.js";
23
25
  import { getProgressConfig as B } from "./src/progress/index.js";
24
26
  import { getCollapseConfig as F } from "./src/collapse/index.js";
25
27
  import { getCarouselConfig as R } from "./src/carousel/index.js";
26
28
  import { getCascaderConfig as h } from "./src/cascader/index.js";
27
- import { getDateRangeConfig as L } from "./src/date-range/index.js";
28
- import { getTimePickerConfig as U } from "./src/time-picker/index.js";
29
+ import { getDateRangeConfig as U } from "./src/date-range/index.js";
30
+ import { getTimePickerConfig as L } from "./src/time-picker/index.js";
29
31
  import { getRateConfig as w } from "./src/rate/index.js";
30
32
  import { getSwitchConfig as G } from "./src/switch/index.js";
31
33
  import { getSliderConfig as I } from "./src/slider/index.js";
32
34
  import { getBadgeConfig as v } from "./src/badge/index.js";
33
- import { getTagConfig as A } from "./src/tag/index.js";
34
- import { getDividerConfig as E } from "./src/divider/index.js";
35
- import { getLoadingConfig as N } from "./src/loading/index.js";
35
+ import { getTagConfig as N } from "./src/tag/index.js";
36
+ import { getDividerConfig as A } from "./src/divider/index.js";
37
+ import { getLoadingConfig as E } from "./src/loading/index.js";
36
38
  import { getSearchConfig as V } from "./src/search/index.js";
37
39
  import { getPagerConfig as H } from "./src/pager/index.js";
38
40
  import { getImageConfig as W } from "./src/image/index.js";
@@ -64,28 +66,28 @@ import { getColorPickerConfig as lo } from "./src/color-picker/index.js";
64
66
  import { getRichTextEditorConfig as co } from "./src/rich-text-editor/index.js";
65
67
  import { getPopconfirmConfig as uo } from "./src/popconfirm/index.js";
66
68
  import { getFilterPanelConfig as so } from "./src/filter-panel/index.js";
67
- import { getMonthTableConfig as To } from "./src/month-table/index.js";
68
- import { getYearTableConfig as So } from "./src/year-table/index.js";
69
+ import { getMonthTableConfig as So } from "./src/month-table/index.js";
70
+ import { getYearTableConfig as To } from "./src/year-table/index.js";
69
71
  import { getCardGroupConfig as Do } from "./src/card-group/index.js";
70
72
  import { getCardConfig as Mo } from "./src/card/index.js";
71
73
  import { getCardTemplateConfig as Po } from "./src/card-template/index.js";
72
- import { getTimeRangeConfig as ko } from "./src/time-range/index.js";
73
- import { getTimeSelectConfig as xo } from "./src/time-select/index.js";
74
+ import { getTimeRangeConfig as xo } from "./src/time-range/index.js";
75
+ import { getTimeSelectConfig as ko } from "./src/time-select/index.js";
74
76
  import { getFormItemConfig as bo } from "./src/form-item/index.js";
75
77
  import { getOptionGroupConfig as yo } from "./src/option-group/index.js";
76
78
  import { getFlowchartConfig as Bo } from "./src/flowchart/index.js";
77
79
  import { getMindMapConfig as Fo } from "./src/mind-map/index.js";
78
80
  import { getQueryBuilderConfig as Ro } from "./src/query-builder/index.js";
79
81
  import { getImageViewerConfig as ho } from "./src/image-viewer/index.js";
80
- import { getDropdownConfig as Lo } from "./src/dropdown/index.js";
81
- import { getDropdownItemConfig as Uo } from "./src/dropdown-item/index.js";
82
+ import { getDropdownConfig as Uo } from "./src/dropdown/index.js";
83
+ import { getDropdownItemConfig as Lo } from "./src/dropdown-item/index.js";
82
84
  import { getDropdownMenuConfig as wo } from "./src/dropdown-menu/index.js";
83
85
  import { getDatePanelConfig as Go } from "./src/date-panel/index.js";
84
86
  import { getDateTableConfig as Io } from "./src/date-table/index.js";
85
87
  import { getTimePanelConfig as vo } from "./src/time-panel/index.js";
86
- import { getTimeSpinnerConfig as Ao } from "./src/time-spinner/index.js";
87
- import { getRichTextConfig as Eo } from "./src/rich-text/index.js";
88
- import { getScrollTextConfig as No } from "./src/scroll-text/index.js";
88
+ import { getTimeSpinnerConfig as No } from "./src/time-spinner/index.js";
89
+ import { getRichTextConfig as Ao } from "./src/rich-text/index.js";
90
+ import { getScrollTextConfig as Eo } from "./src/scroll-text/index.js";
89
91
  import { getSelectDropdownConfig as Vo } from "./src/select-dropdown/index.js";
90
92
  import { getDynamicScrollerConfig as Ho } from "./src/dynamic-scroller/index.js";
91
93
  import { getRecycleScrollerConfig as Wo } from "./src/recycle-scroller/index.js";
@@ -118,32 +120,32 @@ import { getGuideConfig as cr } from "./src/guide/index.js";
118
120
  import { getHrapproverConfig as dr } from "./src/hrapprover/index.js";
119
121
  import { getInfiniteScrollConfig as ur } from "./src/infinite-scroll/index.js";
120
122
  import { getIpAddressConfig as sr } from "./src/ip-address/index.js";
121
- import { getLinkMenuConfig as Tr } from "./src/link-menu/index.js";
122
- import { getLocalesConfig as Sr } from "./src/locales/index.js";
123
+ import { getLinkMenuConfig as Sr } from "./src/link-menu/index.js";
124
+ import { getLocalesConfig as Tr } from "./src/locales/index.js";
123
125
  import { getLogonUserConfig as Dr } from "./src/logon-user/index.js";
124
126
  import { getLogoutConfig as Mr } from "./src/logout/index.js";
125
127
  import { getMilestoneConfig as Pr } from "./src/milestone/index.js";
126
- import { getNotifyConfig as kr } from "./src/notify/index.js";
127
- import { getNumberAnimationConfig as xr } from "./src/number-animation/index.js";
128
+ import { getNotifyConfig as xr } from "./src/notify/index.js";
129
+ import { getNumberAnimationConfig as kr } from "./src/number-animation/index.js";
128
130
  import { getNumericConfig as br } from "./src/numeric/index.js";
129
131
  import { getPopUploadConfig as yr } from "./src/pop-upload/index.js";
130
132
  import { getPopeditorConfig as Br } from "./src/popeditor/index.js";
131
133
  import { getQrCodeConfig as Fr } from "./src/qr-code/index.js";
132
134
  import { getRolesConfig as Rr } from "./src/roles/index.js";
133
135
  import { getSelectWrapperConfig as hr } from "./src/select-wrapper/index.js";
134
- import { getTagGroupConfig as Lr } from "./src/tag-group/index.js";
135
- import { getTextPopupConfig as Ur } from "./src/text-popup/index.js";
136
+ import { getTagGroupConfig as Ur } from "./src/tag-group/index.js";
137
+ import { getTextPopupConfig as Lr } from "./src/text-popup/index.js";
136
138
  import { getTimeLineConfig as wr } from "./src/time-line/index.js";
137
139
  import { getToggleMenuConfig as Gr } from "./src/toggle-menu/index.js";
138
140
  import { getUserConfig as Ir } from "./src/user/index.js";
139
141
  import { getUserAccountConfig as vr } from "./src/user-account/index.js";
140
- import { getUserContactConfig as Ar } from "./src/user-contact/index.js";
141
- import { getUserHeadConfig as Er } from "./src/user-head/index.js";
142
- import { getUserLinkConfig as Nr } from "./src/user-link/index.js";
142
+ import { getUserContactConfig as Nr } from "./src/user-contact/index.js";
143
+ import { getUserHeadConfig as Ar } from "./src/user-head/index.js";
144
+ import { getUserLinkConfig as Er } from "./src/user-link/index.js";
143
145
  import { getWizardConfig as Vr } from "./src/wizard/index.js";
144
146
  const Pi = (o, { server: e, business: t }, i) => {
145
147
  m({ business: t, componentMcpConfig: i, instance: o, server: e });
146
- }, ki = ({ t: o } = {}) => (r && o && (r.t = o), {
148
+ }, xi = ({ t: o } = {}) => (r && o && (r.t = o), {
147
149
  name: "tiny-vue-mcp",
148
150
  version: "0.0.1",
149
151
  components: {
@@ -158,28 +160,28 @@ const Pi = (o, { server: e, business: t }, i) => {
158
160
  Select: d(),
159
161
  Checkbox: u(),
160
162
  Radio: s(),
161
- Table: T(),
162
- DatePicker: S(),
163
+ Table: S(),
164
+ DatePicker: T(),
163
165
  Tabs: D(),
164
166
  Upload: M(),
165
167
  Drawer: P(),
166
- DialogBox: k(),
167
- Steps: x(),
168
+ DialogBox: x(),
169
+ Steps: k(),
168
170
  Tooltip: b(),
169
171
  Popover: y(),
170
172
  Progress: B(),
171
173
  Collapse: F(),
172
174
  Carousel: R(),
173
175
  Cascader: h(),
174
- DateRange: L(),
175
- TimePicker: U(),
176
+ DateRange: U(),
177
+ TimePicker: L(),
176
178
  Rate: w(),
177
179
  Switch: G(),
178
180
  Slider: I(),
179
181
  Badge: v(),
180
- Tag: A(),
181
- Divider: E(),
182
- Loading: N(),
182
+ Tag: N(),
183
+ Divider: A(),
184
+ Loading: E(),
183
185
  Search: V(),
184
186
  Pager: H(),
185
187
  Image: W(),
@@ -211,28 +213,28 @@ const Pi = (o, { server: e, business: t }, i) => {
211
213
  RichTextEditor: co(),
212
214
  Popconfirm: uo(),
213
215
  FilterPanel: so(),
214
- MonthTable: To(),
215
- YearTable: So(),
216
+ MonthTable: So(),
217
+ YearTable: To(),
216
218
  CardGroup: Do(),
217
219
  Card: Mo(),
218
220
  CardTemplate: Po(),
219
- TimeRange: ko(),
220
- TimeSelect: xo(),
221
+ TimeRange: xo(),
222
+ TimeSelect: ko(),
221
223
  FormItem: bo(),
222
224
  OptionGroup: yo(),
223
225
  Flowchart: Bo(),
224
226
  MindMap: Fo(),
225
227
  QueryBuilder: Ro(),
226
228
  ImageViewer: ho(),
227
- Dropdown: Lo(),
228
- DropdownItem: Uo(),
229
+ Dropdown: Uo(),
230
+ DropdownItem: Lo(),
229
231
  DropdownMenu: wo(),
230
232
  DatePanel: Go(),
231
233
  DateTable: Io(),
232
234
  TimePanel: vo(),
233
- TimeSpinner: Ao(),
234
- RichText: Eo(),
235
- ScrollText: No(),
235
+ TimeSpinner: No(),
236
+ RichText: Ao(),
237
+ ScrollText: Eo(),
236
238
  SelectDropdown: Vo(),
237
239
  DynamicScroller: Ho(),
238
240
  RecycleScroller: Wo(),
@@ -265,32 +267,34 @@ const Pi = (o, { server: e, business: t }, i) => {
265
267
  Hrapprover: dr(),
266
268
  InfiniteScroll: ur(),
267
269
  IpAddress: sr(),
268
- LinkMenu: Tr(),
269
- Locales: Sr(),
270
+ LinkMenu: Sr(),
271
+ Locales: Tr(),
270
272
  LogonUser: Dr(),
271
273
  Logout: Mr(),
272
274
  Milestone: Pr(),
273
- Notify: kr(),
274
- NumberAnimation: xr(),
275
+ Notify: xr(),
276
+ NumberAnimation: kr(),
275
277
  Numeric: br(),
276
278
  PopUpload: yr(),
277
279
  Popeditor: Br(),
278
280
  QrCode: Fr(),
279
281
  Roles: Rr(),
280
282
  SelectWrapper: hr(),
281
- TagGroup: Lr(),
282
- TextPopup: Ur(),
283
+ TagGroup: Ur(),
284
+ TextPopup: Lr(),
283
285
  TimeLine: wr(),
284
286
  ToggleMenu: Gr(),
285
287
  User: Ir(),
286
288
  UserAccount: vr(),
287
- UserContact: Ar(),
288
- UserHead: Er(),
289
- UserLink: Nr(),
289
+ UserContact: Nr(),
290
+ UserHead: Ar(),
291
+ UserLink: Er(),
290
292
  Wizard: Vr()
291
293
  }
292
294
  });
293
295
  export {
294
296
  Pi as createMcpTools,
295
- ki as getTinyVueMcpConfig
297
+ Fi as enUS,
298
+ xi as getTinyVueMcpConfig,
299
+ yi as zhCN
296
300
  };
@@ -0,0 +1,857 @@
1
+ const e = {
2
+ ai: {
3
+ grid: {
4
+ description: "Grid component related tool set, including scrolling to specified row, table full selection and other functions",
5
+ scrollToRow: 'Scroll to specified row, need to pass the data of the row to scroll to, requirement: the data must contain the "_RID" field',
6
+ getTableData: "Get table data",
7
+ getColumns: 'Get table column configuration, "property" field represents the field property of table data, "title" represents the column title',
8
+ setSelection: 'Select a row in the table, need to pass the data to be selected, requirement: the data must contain the "_RID" field',
9
+ setAllSelection: "Set table full selection status, true: select all, false: cancel all selection",
10
+ insertRow: "Insert or add a row of data, need to get table data first, then add corresponding data according to the table data format",
11
+ updateRow: 'Update specified row data in the table, need to pass the data to be updated, requirement: the data must contain the "_RID" field',
12
+ removeRow: 'Remove specified row in the table, need to pass the data to be removed, requirement: the data must contain the "_RID" field'
13
+ },
14
+ baseSelect: {
15
+ description: "Dropdown component related tool set, including getting dropdown data, selecting dropdown data, clearing selected value and other functions",
16
+ openMenu: "Open dropdown panel",
17
+ selectByLabel: "Select dropdown data by label",
18
+ clearValue: "Clear dropdown value",
19
+ getOptions: "Query all option values of the dropdown select"
20
+ },
21
+ button: {
22
+ description: "Button component related tool set",
23
+ triggerClick: "Button click, click the button"
24
+ },
25
+ tree: {
26
+ description: "Collection of Tools Related to Tree Control Components",
27
+ getTreeData: "Obtain table data",
28
+ setCurrentKey: "Please enter the ID value to set the current selected state of a node",
29
+ expandHlNode: "Please enter the ID value to set the current deployment status of a node",
30
+ collapseHlNode: "Please enter the ID value to set the collapsed state of a node",
31
+ removeNode: "Please enter the ID value to delete a node",
32
+ insertBefore: "Add a node in front of a node",
33
+ insertAfter: "Add a node after a node"
34
+ },
35
+ form: {
36
+ description: "Form component related tool set, including getting form validation, resetting form and other functions",
37
+ resetFields: "Reset the entire form, resetting all field values to their initial values and removing validation results",
38
+ clearValidate: "Remove the validation results of the form item, you can pass in the prop of the form item to be removed, or an array of props, if not passed in, the validation results of the entire form will be removed",
39
+ clearValidateAll: "Remove the validation results of the entire form",
40
+ validate: "Validate the entire form, the parameter is a callback function (the callback function will be called after the validation is completed and passed two parameters: 1, whether the validation is successful 2, the fields that failed validation) returns a Promise object",
41
+ validateField: "Validate the specified field by passing in the prop of the form item to be validated, or separating the props with commas"
42
+ },
43
+ alert: {
44
+ description: "Alert component tool set",
45
+ close: "Close the alert message",
46
+ setType: "Set alert type (success, warning, error, info)",
47
+ setTitle: "Set alert title"
48
+ },
49
+ modal: {
50
+ description: "Modal component tool set",
51
+ open: "Open the dialog box",
52
+ close: "Close the dialog box",
53
+ setTitle: "Set dialog box title",
54
+ setContent: "Set dialog box content"
55
+ },
56
+ input: {
57
+ description: "Input component tool set",
58
+ getValue: "Get the value of the input box",
59
+ setValue: "Set the value of the input box",
60
+ clear: "Clear the input box",
61
+ focus: "Make the input box gain focus"
62
+ },
63
+ select: {
64
+ description: "Select component tool set",
65
+ openMenu: "Open the dropdown menu",
66
+ closeMenu: "Close the dropdown menu",
67
+ getValue: "Get the selected value",
68
+ setValue: "Set the selected value",
69
+ getOptions: "Get all options",
70
+ clearValue: "Clear the selected value"
71
+ },
72
+ checkbox: {
73
+ description: "Checkbox component tool set",
74
+ getValue: "Get the checked state of the checkbox",
75
+ setValue: "Set the checked state of the checkbox",
76
+ check: "Check the checkbox",
77
+ uncheck: "Uncheck the checkbox"
78
+ },
79
+ radio: {
80
+ description: "Radio component tool set",
81
+ getValue: "Get the selected value of the radio button",
82
+ setValue: "Set the selected value of the radio button",
83
+ select: "Select the current radio button"
84
+ },
85
+ table: {
86
+ description: "Table component tool set",
87
+ getTableData: "Get table data",
88
+ getColumns: "Get table column configuration",
89
+ getCurrentRow: "Get the currently selected row",
90
+ setCurrentRow: "Set the currently selected row"
91
+ },
92
+ datePicker: {
93
+ description: "DatePicker component tool set",
94
+ getValue: "Get the selected date",
95
+ setValue: "Set the selected date",
96
+ clear: "Clear the selected date",
97
+ openPicker: "Open the date picker"
98
+ },
99
+ tabs: {
100
+ description: "Tabs component tool set",
101
+ getCurrentTab: "Get the currently activated tab",
102
+ setCurrentTab: "Set the currently activated tab",
103
+ getTabsCount: "Get the total number of tabs"
104
+ },
105
+ upload: {
106
+ description: "Upload component tool set",
107
+ getFileList: "Get the file list",
108
+ clearFileList: "Clear the file list",
109
+ removeFile: "Remove the specified file",
110
+ submit: "Submit the upload"
111
+ },
112
+ drawer: {
113
+ description: "Drawer component tool set",
114
+ open: "Open the drawer",
115
+ close: "Close the drawer",
116
+ setTitle: "Set the drawer title"
117
+ },
118
+ dialogBox: {
119
+ description: "DialogBox component tool set",
120
+ open: "Open the dialog box",
121
+ close: "Close the dialog box",
122
+ setTitle: "Set the dialog box title",
123
+ getVisible: "Get whether the dialog box is displayed"
124
+ },
125
+ steps: {
126
+ description: "Steps component tool set",
127
+ getCurrentStep: "Get the current step",
128
+ setCurrentStep: "Set the current step",
129
+ nextStep: "Next step",
130
+ prevStep: "Previous step"
131
+ },
132
+ tooltip: {
133
+ description: "Tooltip component tool set",
134
+ show: "Show the tooltip message",
135
+ hide: "Hide the tooltip message",
136
+ setContent: "Set the tooltip content"
137
+ },
138
+ popover: {
139
+ description: "Popover component tool set",
140
+ show: "Show the popover",
141
+ hide: "Hide the popover",
142
+ setTitle: "Set the popover title",
143
+ setContent: "Set the popover content"
144
+ },
145
+ progress: {
146
+ description: "Progress component tool set",
147
+ getProgress: "Get the current progress percentage",
148
+ setProgress: "Set the progress percentage (0-100)"
149
+ },
150
+ collapse: {
151
+ description: "Collapse component tool set",
152
+ getActiveNames: "Get the list of currently active accordion panel names",
153
+ setActiveNames: "Set active accordion panels",
154
+ expand: "Expand a specified accordion panel",
155
+ collapse: "Collapse a specified accordion panel"
156
+ },
157
+ carousel: {
158
+ description: "Carousel component tool set",
159
+ getCurrentIndex: "Get the current carousel index",
160
+ setCurrentIndex: "Set carousel to a specified index",
161
+ next: "Move to the next slide",
162
+ prev: "Move to the previous slide"
163
+ },
164
+ cascader: {
165
+ description: "Cascader component tool set",
166
+ getValue: "Get the currently selected value",
167
+ setValue: "Set the value of the cascader",
168
+ clear: "Clear the cascader value"
169
+ },
170
+ dateRange: {
171
+ description: "DateRange component tool set",
172
+ getValue: "Get the currently selected date range",
173
+ setValue: "Set the date range",
174
+ clear: "Clear the date range selection"
175
+ },
176
+ timePicker: {
177
+ description: "TimePicker component tool set",
178
+ getValue: "Get the currently selected time",
179
+ setValue: "Set the time picker value",
180
+ clear: "Clear the time selection"
181
+ },
182
+ rate: {
183
+ description: "Rate component tool set",
184
+ getValue: "Get the current rating value",
185
+ setValue: "Set the rating value",
186
+ clear: "Clear the rating"
187
+ },
188
+ switch: {
189
+ description: "Switch component tool set",
190
+ getValue: "Get the current switch state",
191
+ setValue: "Set the switch state",
192
+ toggle: "Toggle the switch state"
193
+ },
194
+ slider: {
195
+ description: "Slider component tool set",
196
+ getValue: "Get the current slider value",
197
+ setValue: "Set the slider value",
198
+ reset: "Reset the slider to minimum value"
199
+ },
200
+ badge: {
201
+ description: "Badge component tool set",
202
+ getValue: "Get the current badge value",
203
+ setValue: "Set the badge value"
204
+ },
205
+ tag: {
206
+ description: "Tag component tool set",
207
+ getType: "Get the tag type",
208
+ setType: "Set the tag type",
209
+ close: "Close the tag"
210
+ },
211
+ divider: {
212
+ description: "Divider component tool set",
213
+ getContent: "Get the divider content",
214
+ setContent: "Set the divider content"
215
+ },
216
+ loading: {
217
+ description: "Loading component tool set",
218
+ show: "Show the loading state",
219
+ hide: "Hide the loading state"
220
+ },
221
+ search: {
222
+ description: "Search component tool set",
223
+ getValue: "Get the current search value",
224
+ setValue: "Set the search value",
225
+ clear: "Clear the search value"
226
+ },
227
+ pager: {
228
+ description: "Pager component tool set",
229
+ getCurrentPage: "Get the current page number",
230
+ setCurrentPage: "Set the current page number",
231
+ getPageSize: "Get the page size",
232
+ setPageSize: "Set the page size"
233
+ },
234
+ image: {
235
+ description: "Image component tool set",
236
+ getSrc: "Get the image source",
237
+ setSrc: "Set the image source"
238
+ },
239
+ fileUpload: {
240
+ description: "FileUpload component tool set",
241
+ getFileList: "Get the file list",
242
+ clearFileList: "Clear the file list",
243
+ removeFile: "Remove a specified file"
244
+ },
245
+ calendar: {
246
+ description: "Calendar component tool set",
247
+ getValue: "Get the currently selected date",
248
+ setValue: "Set the calendar date",
249
+ reset: "Reset the calendar to the current date"
250
+ },
251
+ breadcrumb: {
252
+ description: "Breadcrumb component tool set",
253
+ getItems: "Get the list of breadcrumb items",
254
+ setItems: "Set breadcrumb items"
255
+ },
256
+ menu: {
257
+ description: "Menu component tool set",
258
+ getActiveIndex: "Get the index of the currently active menu item",
259
+ setActiveIndex: "Set the active menu item"
260
+ },
261
+ treeMenu: {
262
+ description: "TreeMenu component tool set",
263
+ getSelectedNode: "Get the currently selected node",
264
+ setSelectedNode: "Set the selected node"
265
+ },
266
+ navMenu: {
267
+ description: "NavMenu component tool set",
268
+ getActiveKey: "Get the currently active menu key",
269
+ setActiveKey: "Set the active menu key"
270
+ },
271
+ pagination: {
272
+ description: "Pagination component tool set",
273
+ getCurrentPage: "Get the current page number",
274
+ setCurrentPage: "Set the current page number",
275
+ getPageSize: "Get the page size",
276
+ setPageSize: "Set the page size"
277
+ },
278
+ layout: {
279
+ description: "Layout component tool set",
280
+ getMode: "Get the layout mode",
281
+ setMode: "Set the layout mode"
282
+ },
283
+ header: {
284
+ description: "Header component tool set",
285
+ getTitle: "Get the page header title",
286
+ setTitle: "Set the page header title"
287
+ },
288
+ footer: {
289
+ description: "Footer component tool set",
290
+ getContent: "Get the page footer content",
291
+ setContent: "Set the page footer content"
292
+ },
293
+ side: {
294
+ description: "Side component tool set",
295
+ getCollapsed: "Get whether the sidebar is collapsed",
296
+ setCollapsed: "Set the sidebar collapsed state",
297
+ toggleCollapsed: "Toggle the sidebar collapsed state"
298
+ },
299
+ notification: {
300
+ description: "Notification component tool set",
301
+ show: "Show notification",
302
+ close: "Close notification"
303
+ },
304
+ message: {
305
+ description: "Message component tool set",
306
+ show: "Show message",
307
+ close: "Close message"
308
+ },
309
+ messageBox: {
310
+ description: "MessageBox component tool set",
311
+ show: "Show message box",
312
+ confirm: "Confirm action",
313
+ cancel: "Cancel action"
314
+ },
315
+ empty: {
316
+ description: "Empty component tool set",
317
+ getDescription: "Get the empty state description",
318
+ setDescription: "Set the empty state description"
319
+ },
320
+ skeleton: {
321
+ description: "Skeleton component tool set",
322
+ getLoading: "Get the loading state",
323
+ setLoading: "Set the loading state"
324
+ },
325
+ result: {
326
+ description: "Result component tool set",
327
+ getStatus: "Get the result status",
328
+ setStatus: "Set the result status"
329
+ },
330
+ avatar: {
331
+ description: "Avatar component tool set",
332
+ getSrc: "Get the avatar source",
333
+ setSrc: "Set the avatar source"
334
+ },
335
+ link: {
336
+ description: "Link component tool set",
337
+ getHref: "Get the link address",
338
+ setHref: "Set the link address"
339
+ },
340
+ spin: {
341
+ description: "Spin component tool set",
342
+ getSpinning: "Get the spinning loading state",
343
+ setSpinning: "Set the spinning loading state"
344
+ },
345
+ watermark: {
346
+ description: "Watermark component tool set",
347
+ getText: "Get the watermark text",
348
+ setText: "Set the watermark text"
349
+ },
350
+ transfer: {
351
+ description: "Transfer component tool set",
352
+ getLeftItems: "Get left items",
353
+ getRightItems: "Get right items",
354
+ move: "Move items"
355
+ },
356
+ treeSelect: {
357
+ description: "TreeSelect component tool set",
358
+ getValue: "Get selected value",
359
+ setValue: "Set selected value",
360
+ getSelectedNodes: "Get selected nodes",
361
+ expandNode: "Expand node"
362
+ },
363
+ virtualTree: {
364
+ description: "VirtualTree component tool set",
365
+ getSelectedNodes: "Get selected nodes",
366
+ expandAll: "Expand all nodes",
367
+ collapseAll: "Collapse all nodes",
368
+ selectNode: "Select node"
369
+ },
370
+ colorPicker: {
371
+ description: "ColorPicker component tool set",
372
+ getColor: "Get selected color",
373
+ setColor: "Set color",
374
+ getFormats: "Get supported formats",
375
+ clearColor: "Clear color"
376
+ },
377
+ richTextEditor: {
378
+ description: "RichTextEditor component tool set",
379
+ getContent: "Get editor content",
380
+ setContent: "Set editor content",
381
+ insertText: "Insert text",
382
+ clearContent: "Clear content"
383
+ },
384
+ popconfirm: {
385
+ description: "Popconfirm component tool set",
386
+ show: "Show confirmation dialog",
387
+ hide: "Hide confirmation dialog",
388
+ confirm: "Confirm action",
389
+ cancel: "Cancel action"
390
+ },
391
+ filterPanel: {
392
+ description: "FilterPanel component tool set",
393
+ getFilters: "Get filter conditions",
394
+ addFilter: "Add filter condition",
395
+ removeFilter: "Remove filter condition",
396
+ clearFilters: "Clear all filters"
397
+ },
398
+ monthTable: {
399
+ description: "MonthTable component tool set",
400
+ getSelectedMonth: "Get selected month",
401
+ setSelectedMonth: "Set selected month",
402
+ getYear: "Get year",
403
+ nextYear: "Jump to next year"
404
+ },
405
+ yearTable: {
406
+ description: "YearTable component tool set",
407
+ getSelectedYear: "Get selected year",
408
+ setSelectedYear: "Set selected year",
409
+ getYearRange: "Get year range",
410
+ nextDecade: "Jump to next decade"
411
+ },
412
+ cardGroup: {
413
+ description: "CardGroup component tool set",
414
+ getCards: "Get all cards",
415
+ addCard: "Add card",
416
+ removeCard: "Remove card",
417
+ getLayout: "Get layout type"
418
+ },
419
+ card: {
420
+ description: "Card component tool set",
421
+ getTitle: "Get card title",
422
+ setTitle: "Set card title",
423
+ getContent: "Get card content",
424
+ setContent: "Set card content"
425
+ },
426
+ cardTemplate: {
427
+ description: "CardTemplate component tool set",
428
+ getTemplate: "Get template",
429
+ setTemplate: "Set template",
430
+ getData: "Get template data",
431
+ render: "Render template"
432
+ },
433
+ timeRange: {
434
+ description: "TimeRange component tool set",
435
+ getRange: "Get time range",
436
+ setRange: "Set time range",
437
+ getStartTime: "Get start time",
438
+ setStartTime: "Set start time"
439
+ },
440
+ timeSelect: {
441
+ description: "TimeSelect component tool set",
442
+ getSelectedTime: "Get selected time",
443
+ setSelectedTime: "Set selected time",
444
+ getOptions: "Get time options",
445
+ clearSelection: "Clear selection"
446
+ },
447
+ formItem: {
448
+ description: "FormItem component tool set",
449
+ getLabel: "Get form item label",
450
+ setLabel: "Set form item label",
451
+ validate: "Validate form item",
452
+ getError: "Get error message"
453
+ },
454
+ optionGroup: {
455
+ description: "OptionGroup component tool set",
456
+ getLabel: "Get group label",
457
+ setLabel: "Set group label",
458
+ getOptions: "Get group options",
459
+ addOption: "Add option"
460
+ },
461
+ flowchart: {
462
+ description: "Flowchart component tool set",
463
+ getNodes: "Get all nodes",
464
+ addNode: "Add node",
465
+ connectNodes: "Connect nodes",
466
+ getLayout: "Get layout type"
467
+ },
468
+ mindMap: {
469
+ description: "MindMap component tool set",
470
+ getNodes: "Get all nodes",
471
+ addNode: "Add node",
472
+ expandAll: "Expand all nodes",
473
+ collapseAll: "Collapse all nodes"
474
+ },
475
+ queryBuilder: {
476
+ description: "QueryBuilder component tool set",
477
+ getQuery: "Get query string",
478
+ setQuery: "Set query string",
479
+ addCondition: "Add query condition",
480
+ executeQuery: "Execute query"
481
+ },
482
+ imageViewer: {
483
+ description: "ImageViewer component tool set",
484
+ getImages: "Get all images",
485
+ setImages: "Set image list",
486
+ goToImage: "Jump to image",
487
+ zoom: "Zoom image"
488
+ },
489
+ dropdown: {
490
+ description: "Dropdown menu component tool set",
491
+ open: "Open dropdown menu",
492
+ close: "Close dropdown menu",
493
+ getItems: "Get menu items list",
494
+ selectItem: "Select menu item"
495
+ },
496
+ dropdownItem: {
497
+ description: "DropdownItem component tool set",
498
+ getLabel: "Get menu item label",
499
+ setLabel: "Set menu item label",
500
+ isDisabled: "Check if menu item is disabled",
501
+ setDisabled: "Set menu item disabled state"
502
+ },
503
+ dropdownMenu: {
504
+ description: "DropdownMenu component tool set",
505
+ open: "Open dropdown menu",
506
+ close: "Close dropdown menu",
507
+ getItems: "Get menu items list",
508
+ addItem: "Add menu item"
509
+ },
510
+ datePanel: {
511
+ description: "DatePanel component tool set",
512
+ getDate: "Get currently selected date",
513
+ setDate: "Set selected date",
514
+ nextMonth: "Switch to next month",
515
+ previousMonth: "Switch to previous month"
516
+ },
517
+ dateTable: {
518
+ description: "DateTable component tool set",
519
+ getSelectedDate: "Get selected date",
520
+ setSelectedDate: "Set selected date",
521
+ getMonth: "Get current month",
522
+ getDates: "Get date list"
523
+ },
524
+ timePanel: {
525
+ description: "TimePanel component tool set",
526
+ getTime: "Get current time",
527
+ setTime: "Set time",
528
+ getHour: "Get hour",
529
+ setHour: "Set hour"
530
+ },
531
+ timeSpinner: {
532
+ description: "TimeSpinner component tool set",
533
+ getTime: "Get current time",
534
+ setTime: "Set time",
535
+ increment: "Increase specified unit",
536
+ decrement: "Decrease specified unit"
537
+ },
538
+ richText: {
539
+ description: "RichText editor component tool set",
540
+ getContent: "Get content",
541
+ setContent: "Set content",
542
+ getText: "Get plain text",
543
+ getLength: "Get content length"
544
+ },
545
+ scrollText: {
546
+ description: "ScrollText component tool set",
547
+ getText: "Get text",
548
+ setText: "Set text",
549
+ start: "Start scrolling",
550
+ stop: "Stop scrolling"
551
+ },
552
+ selectDropdown: {
553
+ description: "SelectDropdown component tool set",
554
+ open: "Open dropdown menu",
555
+ close: "Close dropdown menu",
556
+ getOptions: "Get options list",
557
+ selectOption: "Select option"
558
+ },
559
+ dynamicScroller: {
560
+ description: "DynamicScroller component tool set",
561
+ getItems: "Get items list",
562
+ scrollToItem: "Scroll to specified item",
563
+ refresh: "Refresh scroller",
564
+ getScrollPosition: "Get scroll position"
565
+ },
566
+ recycleScroller: {
567
+ description: "RecycleScroller component tool set",
568
+ getItems: "Get items list",
569
+ scrollToItem: "Scroll to specified item",
570
+ reset: "Reset scroller",
571
+ getFirstVisibleIndex: "Get first visible item index"
572
+ },
573
+ virtualScrollBox: {
574
+ description: "VirtualScrollBox component tool set",
575
+ getItems: "Get items list",
576
+ scrollTo: "Scroll to specified position",
577
+ getViewportHeight: "Get viewport height",
578
+ setViewportHeight: "Set viewport height"
579
+ },
580
+ scrollBar: {
581
+ description: "ScrollBar component tool set",
582
+ getPosition: "Get scroll position",
583
+ setPosition: "Set scroll position",
584
+ getSize: "Get scrollbar size",
585
+ scroll: "Scroll specified distance"
586
+ },
587
+ statistic: {
588
+ description: "Statistic component tool set",
589
+ getValue: "Get statistic value",
590
+ setValue: "Set statistic value",
591
+ getTitle: "Get title",
592
+ getPrefix: "Get prefix"
593
+ },
594
+ space: {
595
+ description: "Space layout component tool set",
596
+ getDirection: "Get direction",
597
+ setDirection: "Set direction",
598
+ getSize: "Get spacing size",
599
+ setSize: "Set spacing size"
600
+ },
601
+ split: {
602
+ description: "Split panel component tool set",
603
+ getDividerPosition: "Get divider position",
604
+ setDividerPosition: "Set divider position",
605
+ getMode: "Get split mode",
606
+ setMode: "Set split mode"
607
+ },
608
+ sticky: {
609
+ description: "Sticky positioning component tool set",
610
+ getOffset: "Get offset",
611
+ setOffset: "Set offset",
612
+ isSticky: "Check if sticky positioning",
613
+ getZIndex: "Get z-index"
614
+ },
615
+ checkboxButton: {
616
+ description: "CheckboxButton component tool set",
617
+ getValue: "Get checked state",
618
+ setValue: "Set checked state",
619
+ toggle: "Toggle checked state",
620
+ getLabel: "Get label"
621
+ },
622
+ checkboxGroup: {
623
+ description: "CheckboxGroup component tool set",
624
+ getValues: "Get all selected values",
625
+ setValues: "Set selected values",
626
+ selectAll: "Select all items",
627
+ clearSelection: "Clear selection"
628
+ },
629
+ colorSelectPanel: {
630
+ description: "Color select panel component tool set",
631
+ getColor: "Get selected color",
632
+ setColor: "Set color",
633
+ open: "Open panel"
634
+ },
635
+ company: {
636
+ description: "Company selector tool set",
637
+ getCompany: "Get current company",
638
+ setCompany: "Set company"
639
+ },
640
+ country: {
641
+ description: "Country selector tool set",
642
+ getCountry: "Get selected country",
643
+ setCountry: "Set country"
644
+ },
645
+ crop: {
646
+ description: "Image crop tool set",
647
+ getImage: "Get original image",
648
+ setImage: "Set image to crop",
649
+ crop: "Execute crop operation"
650
+ },
651
+ currency: {
652
+ description: "Currency tool set",
653
+ getValue: "Get currency value",
654
+ setValue: "Set currency value"
655
+ },
656
+ dept: {
657
+ description: "Department selector tool set",
658
+ getDept: "Get current department",
659
+ setDept: "Set department"
660
+ },
661
+ dialogSelect: {
662
+ description: "Dialog select tool set",
663
+ open: "Open dialog",
664
+ close: "Close dialog",
665
+ getSelected: "Get selected items"
666
+ },
667
+ dropRoles: {
668
+ description: "Role dropdown tool set",
669
+ getSelected: "Get selected roles",
670
+ setSelected: "Set selected roles"
671
+ },
672
+ dropTimes: {
673
+ description: "Time dropdown tool set",
674
+ getTime: "Get selected time",
675
+ setTime: "Set time"
676
+ },
677
+ espace: {
678
+ description: "Enterprise space tool set",
679
+ getInformation: "Get space information",
680
+ setInformation: "Set space information"
681
+ },
682
+ exception: {
683
+ description: "Exception display tool set",
684
+ getCode: "Get exception code",
685
+ setCode: "Set exception code"
686
+ },
687
+ fallMenu: {
688
+ description: "Falldown menu tool set",
689
+ open: "Open menu",
690
+ close: "Close menu"
691
+ },
692
+ floatButton: {
693
+ description: "Floating button tool set",
694
+ show: "Show button",
695
+ hide: "Hide button",
696
+ click: "Click button"
697
+ },
698
+ floatbar: {
699
+ description: "Floatbar tool set",
700
+ position: "Set position",
701
+ getPosition: "Get current position"
702
+ },
703
+ fluentEditor: {
704
+ description: "Fluent editor tool set",
705
+ getContent: "Get editor content",
706
+ setContent: "Set editor content"
707
+ },
708
+ fullscreen: {
709
+ description: "Fullscreen tool set",
710
+ enter: "Enter fullscreen",
711
+ exit: "Exit fullscreen"
712
+ },
713
+ gridSelect: {
714
+ description: "Grid select dialog tool set",
715
+ open: "Open grid dialog",
716
+ getSelected: "Get selected rows"
717
+ },
718
+ guide: {
719
+ description: "Guide tool set",
720
+ start: "Start guide",
721
+ next: "Go to next step"
722
+ },
723
+ hrapprover: {
724
+ description: "HR approver selector tool set",
725
+ getApprovers: "Get approver list",
726
+ addApprover: "Add approver"
727
+ },
728
+ infiniteScroll: {
729
+ description: "Infinite scroll tool set",
730
+ loadMore: "Load more items",
731
+ reset: "Reset scroll"
732
+ },
733
+ ipAddress: {
734
+ description: "IP address input tool set",
735
+ getAddress: "Get IP address",
736
+ setAddress: "Set IP address"
737
+ },
738
+ linkMenu: {
739
+ description: "Link menu tool set",
740
+ getItems: "Get links list",
741
+ addItem: "Add link"
742
+ },
743
+ locales: {
744
+ description: "Localization tool set",
745
+ getCurrentLocale: "Get current locale",
746
+ setLocale: "Set locale"
747
+ },
748
+ logonUser: {
749
+ description: "Logon user tool set",
750
+ getUser: "Get current user",
751
+ setUser: "Set user"
752
+ },
753
+ logout: {
754
+ description: "Logout tool set",
755
+ logout: "Execute logout"
756
+ },
757
+ milestone: {
758
+ description: "Milestone tool set",
759
+ getCurrent: "Get current milestone",
760
+ setCurrent: "Set current milestone"
761
+ },
762
+ notify: {
763
+ description: "Notifications tool set",
764
+ show: "Show notification",
765
+ close: "Close notification"
766
+ },
767
+ numberAnimation: {
768
+ description: "Number animation tool set",
769
+ start: "Start animation",
770
+ stop: "Stop animation"
771
+ },
772
+ numeric: {
773
+ description: "Numeric input tool set",
774
+ getValue: "Get numeric value",
775
+ setValue: "Set numeric value"
776
+ },
777
+ popUpload: {
778
+ description: "Popup upload tool set",
779
+ upload: "Upload file",
780
+ getFiles: "Get uploaded files"
781
+ },
782
+ popeditor: {
783
+ description: "Popup editor tool set",
784
+ open: "Open editor",
785
+ close: "Close editor"
786
+ },
787
+ qrCode: {
788
+ description: "QR code tool set",
789
+ generate: "Generate QR code",
790
+ getCode: "Get QR code"
791
+ },
792
+ roles: {
793
+ description: "Role selection tool set",
794
+ getSelected: "Get selected roles",
795
+ setSelected: "Set selected roles"
796
+ },
797
+ selectWrapper: {
798
+ description: "Select wrapper tool set",
799
+ getValue: "Get value",
800
+ setValue: "Set value"
801
+ },
802
+ tagGroup: {
803
+ description: "Tag group tool set",
804
+ getTags: "Get tag list",
805
+ addTag: "Add tag"
806
+ },
807
+ textPopup: {
808
+ description: "Text popup tool set",
809
+ show: "Show popup",
810
+ hide: "Hide popup"
811
+ },
812
+ timeLine: {
813
+ description: "Timeline tool set",
814
+ getItems: "Get timeline items",
815
+ addItem: "Add timeline item"
816
+ },
817
+ toggleMenu: {
818
+ description: "Toggle menu tool set",
819
+ toggle: "Toggle menu",
820
+ isOpen: "Check menu state"
821
+ },
822
+ user: {
823
+ description: "User selection tool set",
824
+ getUser: "Get current user",
825
+ setUser: "Set user"
826
+ },
827
+ userAccount: {
828
+ description: "User account tool set",
829
+ getAccount: "Get account",
830
+ setAccount: "Set account"
831
+ },
832
+ userContact: {
833
+ description: "User contact tool set",
834
+ getContact: "Get contact info",
835
+ setContact: "Set contact info"
836
+ },
837
+ userHead: {
838
+ description: "User avatar tool set",
839
+ getAvatar: "Get avatar",
840
+ setAvatar: "Set avatar"
841
+ },
842
+ userLink: {
843
+ description: "User link tool set",
844
+ getLink: "Get link",
845
+ setLink: "Set link"
846
+ },
847
+ wizard: {
848
+ description: "Wizard tool set",
849
+ getCurrentStep: "Get current step",
850
+ nextStep: "Go to next step",
851
+ prevStep: "Go to previous step"
852
+ }
853
+ }
854
+ };
855
+ export {
856
+ e as default
857
+ };
package/index.ts CHANGED
@@ -307,3 +307,5 @@ export const getTinyVueMcpConfig = ({ t }: { t?: ((path: string) => string) | nu
307
307
  }
308
308
  }
309
309
  }
310
+
311
+ export { zhCN, enUS }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentiny/tiny-vue-mcp",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC",