@abi-software/simulationvuer 2.0.16 → 2.0.17
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/package.json +2 -2
- package/src/components.d.ts +3 -0
- package/vuese-generator.js +11 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abi-software/simulationvuer",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.17",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"serve": "vite serve --host --force",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"docs:preview": "vitepress preview docs"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@abi-software/plotvuer": "1.0.
|
|
20
|
+
"@abi-software/plotvuer": "1.0.5",
|
|
21
21
|
"element-plus": "2.8.4",
|
|
22
22
|
"jsonschema": "^1.4.0",
|
|
23
23
|
"mathjs": "^13.0.2",
|
package/src/components.d.ts
CHANGED
|
@@ -8,9 +8,12 @@ export {}
|
|
|
8
8
|
declare module 'vue' {
|
|
9
9
|
export interface GlobalComponents {
|
|
10
10
|
ElButton: typeof import('element-plus/es')['ElButton']
|
|
11
|
+
ElDialog: typeof import('element-plus/es')['ElDialog']
|
|
11
12
|
ElDivider: typeof import('element-plus/es')['ElDivider']
|
|
12
13
|
ElInputNumber: typeof import('element-plus/es')['ElInputNumber']
|
|
13
14
|
ElOption: typeof import('element-plus/es')['ElOption']
|
|
15
|
+
ElRadioButton: typeof import('element-plus/es')['ElRadioButton']
|
|
16
|
+
ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup']
|
|
14
17
|
ElSelect: typeof import('element-plus/es')['ElSelect']
|
|
15
18
|
ElSlider: typeof import('element-plus/es')['ElSlider']
|
|
16
19
|
RouterLink: typeof import('vue-router')['RouterLink']
|
package/vuese-generator.js
CHANGED
|
@@ -68,6 +68,10 @@ function generateMarkdown(file) {
|
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
function transformData(data = []) {
|
|
71
|
+
function capitalise(str) {
|
|
72
|
+
return str.charAt(0).toUpperCase() + str.slice(1)
|
|
73
|
+
}
|
|
74
|
+
|
|
71
75
|
data.forEach((prop) => {
|
|
72
76
|
prop.name = prop.name
|
|
73
77
|
|
|
@@ -76,7 +80,13 @@ function transformData(data = []) {
|
|
|
76
80
|
}
|
|
77
81
|
|
|
78
82
|
if (prop.type) {
|
|
79
|
-
|
|
83
|
+
// Handle multiple types separated by '|'
|
|
84
|
+
// Convert to array to avoid markdown table issues
|
|
85
|
+
if (prop.type.name.indexOf('|') !== -1) {
|
|
86
|
+
prop.type = prop.type.name.split('|').map((item) => capitalise(item.trim()))
|
|
87
|
+
} else {
|
|
88
|
+
prop.type = capitalise(prop.type.name)
|
|
89
|
+
}
|
|
80
90
|
}
|
|
81
91
|
|
|
82
92
|
if (prop.defaultValue) {
|