clickgo 3.5.2 → 3.5.4
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 +51 -2
- package/dist/app/demo/form/control/svg/svg.js +3 -3
- package/dist/app/demo/form/control/svg/svg.xml +1 -1
- package/dist/app/demo/form/event/form/form.js +13 -4
- package/dist/app/demo/form/event/form/form.xml +1 -1
- package/dist/app/demo/form/method/aform/aform.xml +10 -8
- package/dist/app/demo/form/method/core/core.js +8 -0
- package/dist/app/demo/form/method/core/core.xml +10 -9
- package/dist/app/demo/form/method/form/form.js +0 -5
- package/dist/app/demo/res/icon.svg +2 -2
- package/dist/app/demo/res/marker.svg +6 -1
- package/dist/app/demo/res/r-1.svg +1 -1
- package/dist/app/demo/res/r-2.svg +1 -1
- package/dist/app/demo/res/sql.svg +1 -1
- package/dist/app/demo/res/txt.svg +1 -1
- package/dist/app/demo/res/zip.svg +1 -1
- package/dist/app/task/form/bar/bar.js +72 -8
- package/dist/app/task/form/bar/bar.xml +1 -1
- package/dist/clickgo.js +1 -1
- package/dist/clickgo.ts +1 -1
- package/dist/control/box.cgc +0 -0
- package/dist/control/common.cgc +0 -0
- package/dist/control/desc.cgc +0 -0
- package/dist/control/echarts.cgc +0 -0
- package/dist/control/form.cgc +0 -0
- package/dist/control/html.cgc +0 -0
- package/dist/control/iconview.cgc +0 -0
- package/dist/control/map.cgc +0 -0
- package/dist/control/monaco.cgc +0 -0
- package/dist/control/nav.cgc +0 -0
- package/dist/control/page.cgc +0 -0
- package/dist/control/property.cgc +0 -0
- package/dist/control/table.cgc +0 -0
- package/dist/control/task.cgc +0 -0
- package/dist/control/xterm.cgc +0 -0
- package/dist/index.js +3 -0
- package/dist/index.ts +9 -1
- package/dist/lib/core.js +50 -16
- package/dist/lib/core.ts +51 -8
- package/dist/lib/form.js +82 -10
- package/dist/lib/form.ts +108 -13
- package/dist/lib/task.js +3 -0
- package/dist/lib/task.ts +3 -0
- package/dist/theme/byterun.cgt +0 -0
- package/dist/theme/familiar.cgt +0 -0
- package/dist/theme/light.cgt +0 -0
- package/package.json +1 -1
- package/types/index.d.ts +4 -1
- package/dist/control/aform-cell.cgc +0 -0
- package/dist/control/aform-row.cgc +0 -0
- package/dist/control/aform.cgc +0 -0
- package/dist/control/alayout.cgc +0 -0
package/README.md
CHANGED
|
@@ -28,7 +28,7 @@ Load the module loader first, and then load it using the module loader.
|
|
|
28
28
|
**index.html**
|
|
29
29
|
|
|
30
30
|
```html
|
|
31
|
-
<script src="https://cdn.jsdelivr.net/npm/@litert/loader@3.5.0/dist/loader.min.js?path=index&npm={'clickgo':'3.5.
|
|
31
|
+
<script src="https://cdn.jsdelivr.net/npm/@litert/loader@3.5.0/dist/loader.min.js?path=index&npm={'clickgo':'3.5.4'}"></script>
|
|
32
32
|
```
|
|
33
33
|
|
|
34
34
|
**index.js**
|
|
@@ -73,4 +73,53 @@ Clone and visit "dist/test/index.html".
|
|
|
73
73
|
|
|
74
74
|
## License
|
|
75
75
|
|
|
76
|
-
This library is published under [Apache-2.0](./LICENSE) license.
|
|
76
|
+
This library is published under [Apache-2.0](./LICENSE) license.
|
|
77
|
+
|
|
78
|
+
## Third-party licenses
|
|
79
|
+
|
|
80
|
+
### **LICENSE:** MIT License **AUTHOR:** sigurdarson
|
|
81
|
+
|
|
82
|
+
#### Form
|
|
83
|
+
|
|
84
|
+
[Minus SVG Vector](https://www.svgrepo.com/svg/447026/minus)
|
|
85
|
+
[Copy SVG Vector](https://www.svgrepo.com/svg/446994/copy)
|
|
86
|
+
[Border Radius SVG Vector](https://www.svgrepo.com/svg/446973/border-radius)
|
|
87
|
+
[Close SVG Vector](https://www.svgrepo.com/svg/446990/close)
|
|
88
|
+
|
|
89
|
+
#### Greatlist
|
|
90
|
+
|
|
91
|
+
[Document Remove SVG](https://www.svgrepo.com/svg/447002/document-remove)
|
|
92
|
+
|
|
93
|
+
#### Menulist Item
|
|
94
|
+
|
|
95
|
+
[Check SVG Vector](https://www.svgrepo.com/svg/446979/check)
|
|
96
|
+
|
|
97
|
+
#### Nav
|
|
98
|
+
|
|
99
|
+
[Menu SVG Vector](https://www.svgrepo.com/svg/447023/menu)
|
|
100
|
+
|
|
101
|
+
#### Page
|
|
102
|
+
|
|
103
|
+
[More Horizontal SVG Vector](https://www.svgrepo.com/svg/447028/more-horizontal)
|
|
104
|
+
|
|
105
|
+
### **LICENSE:** MIT License **AUTHOR:** developmentseed
|
|
106
|
+
|
|
107
|
+
#### Map
|
|
108
|
+
|
|
109
|
+
[Marker SVG Vector](https://www.svgrepo.com/svg/379072/marker)
|
|
110
|
+
|
|
111
|
+
### **LICENSE:** CC Attribution License **AUTHOR:** Solar Icons
|
|
112
|
+
|
|
113
|
+
#### Property
|
|
114
|
+
|
|
115
|
+
[Siderbar SVG Vector](https://www.svgrepo.com/svg/529875/siderbar)
|
|
116
|
+
[Sort By Alphabet SVG Vector](https://www.svgrepo.com/svg/529901/sort-by-alphabet)
|
|
117
|
+
[Notification Unread Lines SVG](https://www.svgrepo.com/svg/529113/notification-unread-lines)
|
|
118
|
+
[Bolt SVG Vector](https://www.svgrepo.com/svg/528871/bolt)
|
|
119
|
+
|
|
120
|
+
### **LICENSE:** CC0 License **UPLOADER:** SVG Repo
|
|
121
|
+
|
|
122
|
+
#### Iconview
|
|
123
|
+
|
|
124
|
+
[Folder SVG Vector](https://www.svgrepo.com/svg/474852/folder)
|
|
125
|
+
[File SVG Vector](https://www.svgrepo.com/svg/474842/file)
|
|
@@ -30,9 +30,9 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
30
30
|
this.i = 0;
|
|
31
31
|
this.f = 0;
|
|
32
32
|
this.layouts = [
|
|
33
|
-
`<path d="M9.5 2h-6A1.502 1.502 0 0 0 2 3.5v6A1.502 1.502 0 0 0 3.5 11h6A1.502 1.502 0 0 0 11 9.5v-6A1.502 1.502 0 0 0 9.5 2zm.5 7.5a.501.501 0 0 1-.5.5h-6a.501.501 0 0 1-.5-.5v-6a.501.501 0 0 1 .5-.5h6a.501.501 0 0 1 .5.5zM20.5 2h-6A1.502 1.502 0 0 0 13 3.5v6a1.502 1.502 0 0 0 1.5 1.5h6A1.502 1.502 0 0 0 22 9.5v-6A1.502 1.502 0 0 0 20.5 2zm.5 7.5a.501.501 0 0 1-.5.5h-6a.501.501 0 0 1-.5-.5v-6a.501.501 0 0 1 .5-.5h6a.501.501 0 0 1 .5.5zM9.5 13h-6A1.502 1.502 0 0 0 2 14.5v6A1.502 1.502 0 0 0 3.5 22h6a1.502 1.502 0 0 0 1.5-1.5v-6A1.502 1.502 0 0 0 9.5 13zm.5 7.5a.501.501 0 0 1-.5.5h-6a.501.501 0 0 1-.5-.5v-6a.501.501 0 0 1 .5-.5h6a.501.501 0 0 1 .5.5zM20.5 13h-6a1.502 1.502 0 0 0-1.5 1.5v6a1.502 1.502 0 0 0 1.5 1.5h6a1.502 1.502 0 0 0 1.5-1.5v-6a1.502 1.502 0 0 0-1.5-1.5zm.5 7.5a.501.501 0 0 1-.5.5h-6a.501.501 0 0 1-.5-.5v-6a.501.501 0 0 1 .5-.5h6a.501.501 0 0 1 .5.5z"/>`,
|
|
34
|
-
`<path d="M24 12a4.99 4.99 0 0 1-2.15 4.101l-.85-.495v-.163a3.974 3.974 0 0 0-1.377-7.377l-.79-.124-.052-.798a5.293 5.293 0 0 0-10.214-1.57L8.17 6.59l-.977-.483A2.277 2.277 0 0 0 6.19 5.87a2.18 2.18 0 0 0-1.167.339 2.206 2.206 0 0 0-.98 1.395l-.113.505-.476.2A4 4 0 0 0 5 16h2v1H5a5 5 0 0 1-1.934-9.611 3.21 3.21 0 0 1 1.422-2.025 3.17 3.17 0 0 1 1.702-.493 3.269 3.269 0 0 1 1.446.34 6.293 6.293 0 0 1 12.143 1.867A4.988 4.988 0 0 1 24 12zm-5.437 7.5l-4.016 2.342-4.015-2.342.587-.342-.993-.579-1.578.92 6 3.501 6-3.5-1.579-.92-.992.578zm1.985-3l-1.579-.92-.992.578.586.342-4.016 2.342-4.015-2.342.587-.342-.993-.579-1.578.921 6 3.5zm-12-3l6-3.5 6 3.5-6 3.5zm6 2.342l4.015-2.342-4.016-2.343-4.015 2.343z"/>`,
|
|
35
|
-
`<path d="M4 4H3v1h2V2h1v20H5v-1H4v2h18V1H4zm3-2h14v20H7zM5 20H3v-1h1v-1h1zm0-6H3v-1h1v-1h1zm0-6H3V7h1V6h1zm0 3H3v-1h1V9h1zm0 6H3v-1h1v-1h1zm10.5-5h-3A3.504 3.504 0 0 0 9 15.5V18h10v-2.5a3.504 3.504 0 0 0-3.5-3.5zm2.5 5h-8v-1.5a2.503 2.503 0 0 1 2.5-2.5h3a2.503 2.503 0 0 1 2.5 2.5zm-4-6a3 3 0 1 0-3-3 3.003 3.003 0 0 0 3 3zm0-5a2 2 0 1 1-2 2 2.002 2.002 0 0 1 2-2z"/>`
|
|
33
|
+
`<path d="M9.5 2h-6A1.502 1.502 0 0 0 2 3.5v6A1.502 1.502 0 0 0 3.5 11h6A1.502 1.502 0 0 0 11 9.5v-6A1.502 1.502 0 0 0 9.5 2zm.5 7.5a.501.501 0 0 1-.5.5h-6a.501.501 0 0 1-.5-.5v-6a.501.501 0 0 1 .5-.5h6a.501.501 0 0 1 .5.5zM20.5 2h-6A1.502 1.502 0 0 0 13 3.5v6a1.502 1.502 0 0 0 1.5 1.5h6A1.502 1.502 0 0 0 22 9.5v-6A1.502 1.502 0 0 0 20.5 2zm.5 7.5a.501.501 0 0 1-.5.5h-6a.501.501 0 0 1-.5-.5v-6a.501.501 0 0 1 .5-.5h6a.501.501 0 0 1 .5.5zM9.5 13h-6A1.502 1.502 0 0 0 2 14.5v6A1.502 1.502 0 0 0 3.5 22h6a1.502 1.502 0 0 0 1.5-1.5v-6A1.502 1.502 0 0 0 9.5 13zm.5 7.5a.501.501 0 0 1-.5.5h-6a.501.501 0 0 1-.5-.5v-6a.501.501 0 0 1 .5-.5h6a.501.501 0 0 1 .5.5zM20.5 13h-6a1.502 1.502 0 0 0-1.5 1.5v6a1.502 1.502 0 0 0 1.5 1.5h6a1.502 1.502 0 0 0 1.5-1.5v-6a1.502 1.502 0 0 0-1.5-1.5zm.5 7.5a.501.501 0 0 1-.5.5h-6a.501.501 0 0 1-.5-.5v-6a.501.501 0 0 1 .5-.5h6a.501.501 0 0 1 .5.5z" stroke="none"/>`,
|
|
34
|
+
`<path d="M24 12a4.99 4.99 0 0 1-2.15 4.101l-.85-.495v-.163a3.974 3.974 0 0 0-1.377-7.377l-.79-.124-.052-.798a5.293 5.293 0 0 0-10.214-1.57L8.17 6.59l-.977-.483A2.277 2.277 0 0 0 6.19 5.87a2.18 2.18 0 0 0-1.167.339 2.206 2.206 0 0 0-.98 1.395l-.113.505-.476.2A4 4 0 0 0 5 16h2v1H5a5 5 0 0 1-1.934-9.611 3.21 3.21 0 0 1 1.422-2.025 3.17 3.17 0 0 1 1.702-.493 3.269 3.269 0 0 1 1.446.34 6.293 6.293 0 0 1 12.143 1.867A4.988 4.988 0 0 1 24 12zm-5.437 7.5l-4.016 2.342-4.015-2.342.587-.342-.993-.579-1.578.92 6 3.501 6-3.5-1.579-.92-.992.578zm1.985-3l-1.579-.92-.992.578.586.342-4.016 2.342-4.015-2.342.587-.342-.993-.579-1.578.921 6 3.5zm-12-3l6-3.5 6 3.5-6 3.5zm6 2.342l4.015-2.342-4.016-2.343-4.015 2.343z" stroke="none"/>`,
|
|
35
|
+
`<path d="M4 4H3v1h2V2h1v20H5v-1H4v2h18V1H4zm3-2h14v20H7zM5 20H3v-1h1v-1h1zm0-6H3v-1h1v-1h1zm0-6H3V7h1V6h1zm0 3H3v-1h1V9h1zm0 6H3v-1h1v-1h1zm10.5-5h-3A3.504 3.504 0 0 0 9 15.5V18h10v-2.5a3.504 3.504 0 0 0-3.5-3.5zm2.5 5h-8v-1.5a2.503 2.503 0 0 1 2.5-2.5h3a2.503 2.503 0 0 1 2.5 2.5zm-4-6a3 3 0 1 0-3-3 3.003 3.003 0 0 0 3 3zm0-5a2 2 0 1 1-2 2 2.002 2.002 0 0 1 2-2z" stroke="none"/>`
|
|
36
36
|
];
|
|
37
37
|
this.files = [
|
|
38
38
|
'../../../res/icon.svg',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<form title="Svg" width="400" height="450" min-width="400" min-height="400" padding="10" direction="v">
|
|
2
2
|
<label>Shape: {{layout ? layout.slice(0, 30) + '...' : ''}}</label>
|
|
3
3
|
<label style="margin-top: 10px;">File: {{file ? file : ''}}</label>
|
|
4
|
-
<layout align-v="center" align-h="center" style="margin-top: 10px; flex: 1;" :style="{'fill': color}">
|
|
4
|
+
<layout align-v="center" align-h="center" style="margin-top: 10px; flex: 1;" :style="{'fill': color, 'stroke': color}">
|
|
5
5
|
<svg :layout="layout" :src="file" style="width: 64px; height: 64px;" />
|
|
6
6
|
</layout>
|
|
7
7
|
<layout gutter="10" style="margin-top: 10px;">
|
|
@@ -62,12 +62,13 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
62
62
|
'stateMin': flist[fid].stateMin,
|
|
63
63
|
'show': flist[fid].show,
|
|
64
64
|
'focus': flist[fid].focus,
|
|
65
|
-
'flash': false
|
|
65
|
+
'flash': false,
|
|
66
|
+
'showInTask': flist[fid].showInSystemTask
|
|
66
67
|
};
|
|
67
68
|
}
|
|
68
69
|
}
|
|
69
70
|
}
|
|
70
|
-
onFormCreated(taskId, formId, title, icon) {
|
|
71
|
+
onFormCreated(taskId, formId, title, icon, showInSystemTask) {
|
|
71
72
|
this.flist[formId] = {
|
|
72
73
|
'title': title,
|
|
73
74
|
'icon': icon,
|
|
@@ -75,9 +76,10 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
75
76
|
'stateMin': false,
|
|
76
77
|
'show': false,
|
|
77
78
|
'focus': false,
|
|
78
|
-
'flash': false
|
|
79
|
+
'flash': false,
|
|
80
|
+
'showInTask': true
|
|
79
81
|
};
|
|
80
|
-
this.pushConsole('formCreated', `taskId: ${taskId}, formId: ${formId}, title: ${title}, icon: ${icon ? icon.slice(0, 10) + '...' : 'null'}`);
|
|
82
|
+
this.pushConsole('formCreated', `taskId: ${taskId}, formId: ${formId}, title: ${title}, icon: ${icon ? icon.slice(0, 10) + '...' : 'null'}, sist: ${showInSystemTask ? 'true' : 'false'}`);
|
|
81
83
|
}
|
|
82
84
|
onFormRemoved(taskId, formId, title, icon) {
|
|
83
85
|
if (!this.flist[formId]) {
|
|
@@ -150,5 +152,12 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
150
152
|
this.flist[formId].flash = false;
|
|
151
153
|
});
|
|
152
154
|
}
|
|
155
|
+
onFormShowInSystemTaskChange(taskId, formId, value) {
|
|
156
|
+
if (!this.flist[formId]) {
|
|
157
|
+
return;
|
|
158
|
+
}
|
|
159
|
+
this.flist[formId].title = value;
|
|
160
|
+
this.pushConsole('formShowInSystemTaskChange', `taskId: ${taskId}, formId: ${formId}, value: ${value}`);
|
|
161
|
+
}
|
|
153
162
|
}
|
|
154
163
|
exports.default = default_1;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
</layout>
|
|
9
9
|
</layout>
|
|
10
10
|
<layout gutter="10" style="margin-top: 10px; height: 80px;">
|
|
11
|
-
<list :data="['formCreated', 'formRemoved', 'formTitleChanged', 'formIconChanged', 'formStateMinChanged', 'formStateMaxChanged', 'formShowChanged', 'formFocused', 'formBlurred', 'formFlash']" style="width: 150px;"></list>
|
|
11
|
+
<list :data="['formCreated', 'formRemoved', 'formTitleChanged', 'formIconChanged', 'formStateMinChanged', 'formStateMaxChanged', 'formShowChanged', 'formFocused', 'formBlurred', 'formFlash', 'formShowInSystemTaskChange']" style="width: 150px;"></list>
|
|
12
12
|
<vflow v-slot="data" :data="list" direction="v" style="color: #FFF; background: hsl(0, 0%, 20%); line-height: 1.5; flex: 1; width: 0; padding: 10px;" same>
|
|
13
13
|
<label>[{{data.row.time}}] {{data.row.name}}, {{data.row.text}}.</label>
|
|
14
14
|
</vflow>
|
|
@@ -11,24 +11,26 @@
|
|
|
11
11
|
<label>isMask: {{isMask}}</label>
|
|
12
12
|
<layout gutter="10" align-v="center">
|
|
13
13
|
<label>test: {{test}}</label>
|
|
14
|
-
<button @click="test = test === 'A' ? 'B' : 'A'" style="
|
|
14
|
+
<button @click="test = test === 'A' ? 'B' : 'A'" style="flex: 1;">watch('test', () => { dialog })</button>
|
|
15
15
|
</layout>
|
|
16
|
-
<button @click="topMost = !topMost"
|
|
16
|
+
<button @click="topMost = !topMost">topMost: {{topMost ? 'true' : 'false'}}</button>
|
|
17
|
+
<button @click="bottomMost = !bottomMost">bottomMost: {{bottomMost ? 'true' : 'false'}}</button>
|
|
18
|
+
<button @click="showInSystemTask = !showInSystemTask">showInSystemTask: {{showInSystemTask ? 'true' : 'false'}}</button>
|
|
17
19
|
<layout gutter="10" align-v="center">
|
|
18
20
|
<label>Form ID:</label>
|
|
19
|
-
<text v-model="fid" style="flex: 1; width: 0;
|
|
21
|
+
<text v-model="fid" style="flex: 1; width: 0;"></text>
|
|
20
22
|
</layout>
|
|
21
23
|
<layout gutter="10" align-v="center">
|
|
22
24
|
<label>Send: </label>
|
|
23
|
-
<text v-model="sendValue" style="flex: 1; width: 0;
|
|
24
|
-
<button @click="ssend"
|
|
25
|
+
<text v-model="sendValue" style="flex: 1; width: 0;"></text>
|
|
26
|
+
<button @click="ssend">send({{fid}}, { 'key': '{{sendValue}}' })</button>
|
|
25
27
|
</layout>
|
|
26
|
-
<button @click="hhide"
|
|
28
|
+
<button @click="hhide">hide() and show()</button>
|
|
27
29
|
<layout gutter="10" align-v="center">
|
|
28
|
-
<button @click="sshowDialog" style="
|
|
30
|
+
<button @click="sshowDialog" style="flex: 1;">showDialog()</button>
|
|
29
31
|
<label>result: {{dr}}</label>
|
|
30
32
|
</layout>
|
|
31
|
-
<button @click="close"
|
|
33
|
+
<button @click="close">close()</button>
|
|
32
34
|
</layout>
|
|
33
35
|
</flow>
|
|
34
36
|
</form>
|
|
@@ -78,5 +78,13 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
78
78
|
yield clickgo.form.dialog('Location is: ' + clickgo.core.getLocation());
|
|
79
79
|
});
|
|
80
80
|
}
|
|
81
|
+
back() {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
83
|
+
if (clickgo.core.back()) {
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
yield clickgo.form.dialog('No permission.');
|
|
87
|
+
});
|
|
88
|
+
}
|
|
81
89
|
}
|
|
82
90
|
exports.default = default_1;
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
<form width="350" height="
|
|
1
|
+
<form width="350" height="430" title="Library task" padding="10">
|
|
2
2
|
<layout direction="v" gutter="10" style="flex: 1;">
|
|
3
3
|
<label>config:</label>
|
|
4
4
|
<text v-model="config" readonly multi style="flex: 1;"></text>
|
|
5
|
-
<button @click="getCdn"
|
|
6
|
-
<button @click="getAvailArea"
|
|
7
|
-
<layout gutter="10"
|
|
5
|
+
<button @click="getCdn">getCdn()</button>
|
|
6
|
+
<button @click="getAvailArea">getAvailArea()</button>
|
|
7
|
+
<layout gutter="10">
|
|
8
8
|
<text v-model="hash" style="flex: 1;" />
|
|
9
|
-
<button @click="hashe"
|
|
9
|
+
<button @click="hashe">hash('{{hash}}')</button>
|
|
10
10
|
</layout>
|
|
11
|
-
<button @click="getHash"
|
|
12
|
-
<layout gutter="10"
|
|
11
|
+
<button @click="getHash">getHash()</button>
|
|
12
|
+
<layout gutter="10">
|
|
13
13
|
<text v-model="location" style="flex: 1;" />
|
|
14
|
-
<button @click="locatione"
|
|
14
|
+
<button @click="locatione">location('...{{location.slice(-5)}}')</button>
|
|
15
15
|
</layout>
|
|
16
|
-
<button @click="getLocation"
|
|
16
|
+
<button @click="getLocation">getLocation()</button>
|
|
17
|
+
<button @click="back">back()</button>
|
|
17
18
|
</layout>
|
|
18
19
|
</form>
|
|
@@ -41,7 +41,6 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
41
41
|
this.type = ['primary'];
|
|
42
42
|
this.progress = ['noraml'];
|
|
43
43
|
this.dr = '';
|
|
44
|
-
this.setTopMostValue = false;
|
|
45
44
|
}
|
|
46
45
|
min() {
|
|
47
46
|
clickgo.form.min(this.formId);
|
|
@@ -225,10 +224,6 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
225
224
|
}
|
|
226
225
|
});
|
|
227
226
|
}
|
|
228
|
-
setTopMost() {
|
|
229
|
-
this.setTopMostValue = !this.setTopMostValue;
|
|
230
|
-
this.topMost = this.setTopMostValue;
|
|
231
|
-
}
|
|
232
227
|
flash() {
|
|
233
228
|
clickgo.form.flash(this.formId);
|
|
234
229
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"
|
|
2
|
-
<svg
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" stroke="none">
|
|
3
3
|
<path opacity="0.4" d="M2 12.8799V11.1199C2 10.0799 2.85 9.21994 3.9 9.21994C5.71 9.21994 6.45 7.93994 5.54 6.36994C5.02 5.46994 5.33 4.29994 6.24 3.77994L7.97 2.78994C8.76 2.31994 9.78 2.59994 10.25 3.38994L10.36 3.57994C11.26 5.14994 12.74 5.14994 13.65 3.57994L13.76 3.38994C14.23 2.59994 15.25 2.31994 16.04 2.78994L17.77 3.77994C18.68 4.29994 18.99 5.46994 18.47 6.36994C17.56 7.93994 18.3 9.21994 20.11 9.21994C21.15 9.21994 22.01 10.0699 22.01 11.1199V12.8799C22.01 13.9199 21.16 14.7799 20.11 14.7799C18.3 14.7799 17.56 16.0599 18.47 17.6299C18.99 18.5399 18.68 19.6999 17.77 20.2199L16.04 21.2099C15.25 21.6799 14.23 21.3999 13.76 20.6099L13.65 20.4199C12.75 18.8499 11.27 18.8499 10.36 20.4199L10.25 20.6099C9.78 21.3999 8.76 21.6799 7.97 21.2099L6.24 20.2199C5.33 19.6999 5.02 18.5299 5.54 17.6299C6.45 16.0599 5.71 14.7799 3.9 14.7799C2.85 14.7799 2 13.9199 2 12.8799Z" fill="#292D32"/>
|
|
4
4
|
<path d="M12 15.25C13.7949 15.25 15.25 13.7949 15.25 12C15.25 10.2051 13.7949 8.75 12 8.75C10.2051 8.75 8.75 10.2051 8.75 12C8.75 13.7949 10.2051 15.25 12 15.25Z" fill="#292D32"/>
|
|
5
5
|
</svg>
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
3
|
+
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
4
|
+
<path d="M12.5 7.04148C12.3374 7.0142 12.1704 7 12 7C10.3431 7 9 8.34315 9 10C9 11.6569 10.3431 13 12 13C13.6569 13 15 11.6569 15 10C15 9.82964 14.9858 9.6626 14.9585 9.5" stroke-width="1.5" stroke-linecap="round"/>
|
|
5
|
+
<path d="M5 15.2161C4.35254 13.5622 4 11.8013 4 10.1433C4 5.64588 7.58172 2 12 2C16.4183 2 20 5.64588 20 10.1433C20 14.6055 17.4467 19.8124 13.4629 21.6744C12.5343 22.1085 11.4657 22.1085 10.5371 21.6744C9.26474 21.0797 8.13831 20.1439 7.19438 19" stroke-width="1.5" stroke-linecap="round"/>
|
|
6
|
+
</svg>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
2
|
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
|
|
3
3
|
<svg height="800px" width="800px" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
4
|
-
viewBox="0 0 297 297" xml:space="preserve">
|
|
4
|
+
viewBox="0 0 297 297" xml:space="preserve" stroke="none">
|
|
5
5
|
<g>
|
|
6
6
|
<g>
|
|
7
7
|
<g>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
2
|
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
|
|
3
3
|
<svg height="800px" width="800px" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
4
|
-
viewBox="0 0 297 297" xml:space="preserve">
|
|
4
|
+
viewBox="0 0 297 297" xml:space="preserve" stroke="none">
|
|
5
5
|
<g>
|
|
6
6
|
<g>
|
|
7
7
|
<g>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
2
|
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
|
|
3
3
|
<svg height="800px" width="800px" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
4
|
-
viewBox="0 0 512 512" xml:space="preserve">
|
|
4
|
+
viewBox="0 0 512 512" xml:space="preserve" stroke="none">
|
|
5
5
|
<path style="fill:#E2E5E7;" d="M128,0c-17.6,0-32,14.4-32,32v448c0,17.6,14.4,32,32,32h320c17.6,0,32-14.4,32-32V128L352,0H128z"/>
|
|
6
6
|
<path style="fill:#B0B7BD;" d="M384,128h96L352,0v96C352,113.6,366.4,128,384,128z"/>
|
|
7
7
|
<polygon style="fill:#CAD1D8;" points="480,224 384,128 480,128 "/>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
2
|
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
|
|
3
3
|
<svg height="800px" width="800px" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
4
|
-
viewBox="0 0 512 512" xml:space="preserve">
|
|
4
|
+
viewBox="0 0 512 512" xml:space="preserve" stroke="none">
|
|
5
5
|
<path style="fill:#E2E5E7;" d="M128,0c-17.6,0-32,14.4-32,32v448c0,17.6,14.4,32,32,32h320c17.6,0,32-14.4,32-32V128L352,0H128z"/>
|
|
6
6
|
<path style="fill:#B0B7BD;" d="M384,128h96L352,0v96C352,113.6,366.4,128,384,128z"/>
|
|
7
7
|
<polygon style="fill:#CAD1D8;" points="480,224 384,128 480,128 "/>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
2
|
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
|
|
3
3
|
<svg height="800px" width="800px" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
4
|
-
viewBox="0 0 512 512" xml:space="preserve">
|
|
4
|
+
viewBox="0 0 512 512" xml:space="preserve" stroke="none">
|
|
5
5
|
<path style="fill:#E2E5E7;" d="M128,0c-17.6,0-32,14.4-32,32v448c0,17.6,14.4,32,32,32h320c17.6,0,32-14.4,32-32V128L352,0H128z"/>
|
|
6
6
|
<path style="fill:#B0B7BD;" d="M384,128h96L352,0v96C352,113.6,366.4,128,384,128z"/>
|
|
7
7
|
<polygon style="fill:#CAD1D8;" points="480,224 384,128 480,128 "/>
|
|
@@ -144,12 +144,13 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
144
144
|
continue;
|
|
145
145
|
}
|
|
146
146
|
const task = tasks[taskId];
|
|
147
|
-
let
|
|
147
|
+
let app = undefined;
|
|
148
|
+
const appIndex = this.getAppIndexByPath(task.path);
|
|
148
149
|
if (appIndex >= 0) {
|
|
149
150
|
this.apps[appIndex].opened = true;
|
|
150
151
|
}
|
|
151
152
|
else {
|
|
152
|
-
|
|
153
|
+
app = {
|
|
153
154
|
'name': task.name,
|
|
154
155
|
'path': task.path,
|
|
155
156
|
'icon': task.icon,
|
|
@@ -158,21 +159,26 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
158
159
|
'forms': {},
|
|
159
160
|
'formCount': 0,
|
|
160
161
|
'pin': false
|
|
161
|
-
}
|
|
162
|
-
appIndex = this.apps.length - 1;
|
|
162
|
+
};
|
|
163
163
|
}
|
|
164
164
|
const forms = clickgo.form.getList(parseInt(taskId));
|
|
165
165
|
for (const formId in forms) {
|
|
166
166
|
const form = forms[formId];
|
|
167
|
-
|
|
167
|
+
if (!form.showInSystemTask) {
|
|
168
|
+
continue;
|
|
169
|
+
}
|
|
170
|
+
(app !== null && app !== void 0 ? app : this.apps[appIndex]).forms[formId] = {
|
|
168
171
|
'title': form.title,
|
|
169
|
-
'icon': form.icon || this.apps[appIndex].icon
|
|
172
|
+
'icon': form.icon || (app !== null && app !== void 0 ? app : this.apps[appIndex]).icon
|
|
170
173
|
};
|
|
171
174
|
}
|
|
172
|
-
this.apps[appIndex].formCount = Object.keys(this.apps[appIndex].forms).length;
|
|
175
|
+
(app !== null && app !== void 0 ? app : this.apps[appIndex]).formCount = Object.keys((app !== null && app !== void 0 ? app : this.apps[appIndex]).forms).length;
|
|
176
|
+
if (app === null || app === void 0 ? void 0 : app.formCount) {
|
|
177
|
+
this.apps.push(app);
|
|
178
|
+
}
|
|
173
179
|
}
|
|
174
180
|
}
|
|
175
|
-
onFormCreated(taskId, formId, title, icon) {
|
|
181
|
+
onFormCreated(taskId, formId, title, icon, sist) {
|
|
176
182
|
if (taskId === this.taskId) {
|
|
177
183
|
return;
|
|
178
184
|
}
|
|
@@ -180,6 +186,9 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
180
186
|
if (!task) {
|
|
181
187
|
return;
|
|
182
188
|
}
|
|
189
|
+
if (!sist) {
|
|
190
|
+
return;
|
|
191
|
+
}
|
|
183
192
|
let appIndex = this.getAppIndexByPath(task.path);
|
|
184
193
|
if (appIndex >= 0) {
|
|
185
194
|
this.apps[appIndex].opened = true;
|
|
@@ -212,6 +221,9 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
212
221
|
if (appIndex < 0) {
|
|
213
222
|
return;
|
|
214
223
|
}
|
|
224
|
+
if (!this.apps[appIndex].forms[formId]) {
|
|
225
|
+
return;
|
|
226
|
+
}
|
|
215
227
|
delete this.apps[appIndex].forms[formId];
|
|
216
228
|
--this.apps[appIndex].formCount;
|
|
217
229
|
if (this.apps[appIndex].formCount > 0) {
|
|
@@ -275,6 +287,58 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
275
287
|
}
|
|
276
288
|
this.apps[appIndex].forms[formId].icon = icon || this.apps[appIndex].icon;
|
|
277
289
|
}
|
|
290
|
+
onFormShowInSystemTaskChange(taskId, formId, value) {
|
|
291
|
+
const task = clickgo.task.get(taskId);
|
|
292
|
+
if (!task) {
|
|
293
|
+
return;
|
|
294
|
+
}
|
|
295
|
+
if (value) {
|
|
296
|
+
const form = clickgo.form.get(formId);
|
|
297
|
+
if (!form) {
|
|
298
|
+
return;
|
|
299
|
+
}
|
|
300
|
+
let appIndex = this.getAppIndexByPath(task.path);
|
|
301
|
+
if (appIndex >= 0) {
|
|
302
|
+
this.apps[appIndex].opened = true;
|
|
303
|
+
}
|
|
304
|
+
else {
|
|
305
|
+
this.apps.push({
|
|
306
|
+
'name': task.name,
|
|
307
|
+
'path': task.path,
|
|
308
|
+
'icon': task.icon,
|
|
309
|
+
'selected': false,
|
|
310
|
+
'opened': true,
|
|
311
|
+
'forms': {},
|
|
312
|
+
'formCount': 0,
|
|
313
|
+
'pin': false
|
|
314
|
+
});
|
|
315
|
+
appIndex = this.apps.length - 1;
|
|
316
|
+
}
|
|
317
|
+
this.apps[appIndex].forms[formId] = {
|
|
318
|
+
'title': form.title,
|
|
319
|
+
'icon': form.icon || this.apps[appIndex].icon
|
|
320
|
+
};
|
|
321
|
+
++this.apps[appIndex].formCount;
|
|
322
|
+
}
|
|
323
|
+
else {
|
|
324
|
+
const appIndex = this.getAppIndexByPath(task.path);
|
|
325
|
+
if (appIndex < 0) {
|
|
326
|
+
return;
|
|
327
|
+
}
|
|
328
|
+
delete this.apps[appIndex].forms[formId];
|
|
329
|
+
--this.apps[appIndex].formCount;
|
|
330
|
+
if (this.apps[appIndex].formCount > 0) {
|
|
331
|
+
return;
|
|
332
|
+
}
|
|
333
|
+
const pinPaths = Object.keys(clickgo.core.config['task.pin']);
|
|
334
|
+
if (pinPaths.includes(this.apps[appIndex].path)) {
|
|
335
|
+
this.apps[appIndex].opened = false;
|
|
336
|
+
}
|
|
337
|
+
else {
|
|
338
|
+
this.apps.splice(appIndex, 1);
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
}
|
|
278
342
|
onConfigChanged(n, v) {
|
|
279
343
|
if (n !== 'task.pin') {
|
|
280
344
|
return;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
<form title="Bar" border="none" :resize="false" background="transparent">
|
|
2
2
|
<task :position="position">
|
|
3
3
|
<task-item @click="showLauncher">
|
|
4
4
|
<img src="/clickgo/icon.png" style="width: 16px; height: 16px;" />
|
package/dist/clickgo.js
CHANGED
|
@@ -24,7 +24,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.zip = exports.tool = exports.theme = exports.task = exports.native = exports.fs = exports.form = exports.dom = exports.core = exports.control = exports.vue = exports.hasFrame = exports.isImmersion = exports.getPlatform = exports.isNative = exports.getVersion = void 0;
|
|
27
|
-
const version = '3.5.
|
|
27
|
+
const version = '3.5.4';
|
|
28
28
|
function getVersion() {
|
|
29
29
|
return version;
|
|
30
30
|
}
|
package/dist/clickgo.ts
CHANGED
package/dist/control/box.cgc
CHANGED
|
Binary file
|
package/dist/control/common.cgc
CHANGED
|
Binary file
|
package/dist/control/desc.cgc
CHANGED
|
Binary file
|
package/dist/control/echarts.cgc
CHANGED
|
Binary file
|
package/dist/control/form.cgc
CHANGED
|
Binary file
|
package/dist/control/html.cgc
CHANGED
|
Binary file
|
|
Binary file
|
package/dist/control/map.cgc
CHANGED
|
Binary file
|
package/dist/control/monaco.cgc
CHANGED
|
Binary file
|
package/dist/control/nav.cgc
CHANGED
|
Binary file
|
package/dist/control/page.cgc
CHANGED
|
Binary file
|
|
Binary file
|
package/dist/control/table.cgc
CHANGED
|
Binary file
|
package/dist/control/task.cgc
CHANGED
|
Binary file
|
package/dist/control/xterm.cgc
CHANGED
|
Binary file
|
package/dist/index.js
CHANGED
package/dist/index.ts
CHANGED
|
@@ -60,7 +60,9 @@ export abstract class AbstractBoot {
|
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
/** --- 窗体创建事件 --- */
|
|
63
|
-
public onFormCreated(
|
|
63
|
+
public onFormCreated(
|
|
64
|
+
taskId: number, formId: number, title: string, icon: string, showInSystemTask: boolean
|
|
65
|
+
): void | Promise<void>;
|
|
64
66
|
public onFormCreated(): void {
|
|
65
67
|
return;
|
|
66
68
|
}
|
|
@@ -119,6 +121,12 @@ export abstract class AbstractBoot {
|
|
|
119
121
|
return;
|
|
120
122
|
}
|
|
121
123
|
|
|
124
|
+
/** --- 窗体是否显示在任务栏属性改变事件 --- */
|
|
125
|
+
public onFormShowInSystemTaskChange(taskId: number, formId: number, value: boolean): void | Promise<void>;
|
|
126
|
+
public onFormShowInSystemTaskChange(): void {
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
|
|
122
130
|
/** --- 任务开始事件 --- */
|
|
123
131
|
public onTaskStarted(taskId: number): void | Promise<void>;
|
|
124
132
|
public onTaskStarted(): void | Promise<void> {
|