clickgo 3.1.5-dev14 → 3.1.6-dev15
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 +7 -7
- package/dist/app/demo/app.js +28 -2
- package/dist/app/demo/config.json +17 -1
- package/dist/app/demo/form/control/box/box.js +66 -0
- package/dist/app/demo/form/control/box/box.xml +18 -0
- package/dist/app/demo/form/control/button/button.js +24 -1
- package/dist/app/demo/form/control/check/check.js +24 -1
- package/dist/app/demo/form/control/dialog/dialog.js +24 -1
- package/dist/app/demo/form/control/file/file.js +24 -1
- package/dist/app/demo/form/control/flow/flow.js +24 -1
- package/dist/app/demo/form/control/form/form.js +24 -1
- package/dist/app/demo/form/control/layout/layout.js +57 -0
- package/dist/app/demo/form/control/layout/layout.xml +16 -0
- package/dist/app/demo/form/control/list/list.js +24 -1
- package/dist/app/demo/form/control/list/list.xml +8 -2
- package/dist/app/demo/form/control/marquee/marquee.js +24 -2
- package/dist/app/demo/form/control/marquee/marquee.xml +2 -5
- package/dist/app/demo/form/control/menu/menu.js +24 -1
- package/dist/app/demo/form/control/monaco/monaco.js +24 -1
- package/dist/app/demo/form/control/nav/nav.js +52 -0
- package/dist/app/demo/form/control/nav/nav.xml +43 -0
- package/dist/app/demo/form/control/panel/panel.js +67 -0
- package/dist/app/demo/form/control/panel/panel.xml +11 -0
- package/dist/app/demo/form/control/panel/test1.js +58 -0
- package/dist/app/demo/form/control/panel/test1.xml +16 -0
- package/dist/app/demo/form/control/panel/test2.xml +3 -0
- package/dist/app/demo/form/control/property/property.js +24 -1
- package/dist/app/demo/form/control/radio/radio.js +24 -1
- package/dist/app/demo/form/control/scroll/scroll.js +25 -1
- package/dist/app/demo/form/control/scroll/scroll.xml +5 -2
- package/dist/app/demo/form/control/select/select.js +24 -1
- package/dist/app/demo/form/control/tab/tab.js +24 -1
- package/dist/app/demo/form/control/table/table.js +164 -0
- package/dist/app/demo/form/control/table/table.xml +35 -0
- package/dist/app/demo/form/control/text/text.js +24 -1
- package/dist/app/demo/form/control/vflow/vflow.js +24 -1
- package/dist/app/demo/form/event/form/form.js +24 -1
- package/dist/app/demo/form/event/other/other.js +24 -1
- package/dist/app/demo/form/event/screen/screen.js +24 -1
- package/dist/app/demo/form/event/task/task.js +24 -1
- package/dist/app/demo/form/main.js +84 -33
- package/dist/app/demo/form/main.xml +5 -0
- package/dist/app/demo/form/method/aform/aform.js +28 -2
- package/dist/app/demo/form/method/aform/sd.js +24 -1
- package/dist/app/demo/form/method/core/core.js +24 -1
- package/dist/app/demo/form/method/dom/dom.js +48 -2
- package/dist/app/demo/form/method/dom/dom.xml +11 -0
- package/dist/app/demo/form/method/form/form.js +35 -1
- package/dist/app/demo/form/method/form/form.xml +2 -0
- package/dist/app/demo/form/method/fs/fs.js +138 -4
- package/dist/app/demo/form/method/fs/fs.xml +11 -1
- package/dist/app/demo/form/method/fs/text.js +24 -1
- package/dist/app/demo/form/method/native/native.js +24 -1
- package/dist/app/demo/form/method/system/system.js +24 -1
- package/dist/app/demo/form/method/task/task.js +31 -4
- package/dist/app/demo/form/method/task/task.xml +6 -1
- package/dist/app/demo/form/method/theme/theme.js +24 -1
- package/dist/app/demo/form/method/tool/tool.js +35 -1
- package/dist/app/demo/form/method/zip/zip.js +29 -3
- package/dist/app/task/app.js +28 -2
- package/dist/app/task/form/bar/bar.js +24 -1
- package/dist/clickgo.js +33 -10
- package/dist/control/box.cgc +0 -0
- package/dist/control/common.cgc +0 -0
- package/dist/control/form.cgc +0 -0
- package/dist/control/monaco.cgc +0 -0
- package/dist/control/nav.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/global.css +1 -1
- package/dist/lib/control.js +53 -12
- package/dist/lib/control.ts +25 -5
- package/dist/lib/core.js +44 -45
- package/dist/lib/core.ts +17 -41
- package/dist/lib/dom.js +322 -108
- package/dist/lib/dom.ts +394 -127
- package/dist/lib/form.js +441 -58
- package/dist/lib/form.ts +525 -74
- package/dist/lib/fs.js +485 -224
- package/dist/lib/fs.ts +493 -287
- package/dist/lib/native.js +24 -1
- package/dist/lib/task.js +143 -136
- package/dist/lib/task.ts +124 -127
- package/dist/lib/theme.js +27 -4
- package/dist/lib/tool.js +19 -2
- package/dist/lib/tool.ts +23 -1
- package/dist/lib/zip.js +29 -3
- package/dist/lib/zip.ts +1 -1
- package/dist/theme/familiar.cgt +0 -0
- package/package.json +4 -6
- package/types/index.d.ts +42 -34
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
<form width="400" height="500" title="Table">
|
|
2
|
+
<layout direction="v" gutter="10" style="padding: 10px; flex: 1; width: 0;">
|
|
3
|
+
<label>Value: {{val}}</label>
|
|
4
|
+
<table :data="data" style="flex: 1;" v-model="val" :disabled="disabled" :must="must" :multi="multi" :ctrl="ctrl" :selection="selection" :gesture="gesture ? ['top', 'bottom'] : []" :split="split" @gesture="onGesture" :scroll="scroll" :sizes="sizes" :sort="sort" @select="onSelect" @sort="onSort">
|
|
5
|
+
<template v-slot="d">
|
|
6
|
+
<table-item v-if="index" label="index" width="80" sort="false">{{d.index}}</table-item>
|
|
7
|
+
<table-item label="name">{{d.row.name ?? 'name'}}</table-item>
|
|
8
|
+
<table-item label="size" width="50">{{d.row.type ?? '0'}}</table-item>
|
|
9
|
+
</template>
|
|
10
|
+
<template v-slot:pop>
|
|
11
|
+
<menulist>
|
|
12
|
+
<menulist-item alt="S" @click="showIndex">Show select</menulist-item>
|
|
13
|
+
</menulist>
|
|
14
|
+
</template>
|
|
15
|
+
</table>
|
|
16
|
+
<layout gutter="10">
|
|
17
|
+
<button style="flex: 1; height: 30px;" @click="data.splice(-2, 0, {'type': 0, 'name': 'Card' + data.length, 'disabled': false});refreshSort()">Add</button>
|
|
18
|
+
<button style="flex: 1; height: 30px;" @click="data.splice(-3, 1);refreshSort()">Remove</button>
|
|
19
|
+
<button style="flex: 1; height: 30px;" @click="scrollChange">Scroll {{scroll}}</button>
|
|
20
|
+
</layout>
|
|
21
|
+
<layout gutter="10">
|
|
22
|
+
<button style="flex: 1; height: 30px;" @click="disabled = !disabled">{{disabled ? '' : '!'}}disabled</button>
|
|
23
|
+
<button style="flex: 1; height: 30px;" @click="multi = !multi">{{multi ? '' : '!'}}multi</button>
|
|
24
|
+
<button style="flex: 1; height: 30px;" @click="ctrl = !ctrl">{{ctrl ? '' : '!'}}ctrl</button>
|
|
25
|
+
<button style="flex: 1; height: 30px;" @click="must = !must">{{must ? '' : '!'}}must</button>
|
|
26
|
+
<button style="flex: 1; height: 30px;" @click="index = !index">{{index ? '' : '!'}}index</button>
|
|
27
|
+
</layout>
|
|
28
|
+
<layout gutter="10">
|
|
29
|
+
<button style="flex: 1; height: 30px;" @click="sortChange">sort {{sort ? 'true' : (sort === false ? 'false' : 'undefined')}}</button>
|
|
30
|
+
<button style="flex: 1; height: 30px;" @click="selection = !selection">{{selection ? '' : '!'}}selection</button>
|
|
31
|
+
<button style="flex: 1; height: 30px;" @click="gesture = !gesture">{{gesture ? '' : '!'}}gesture</button>
|
|
32
|
+
<button style="flex: 1; height: 30px;" @click="split = !split">{{split ? '' : '!'}}split</button>
|
|
33
|
+
</layout>
|
|
34
|
+
</layout>
|
|
35
|
+
</form>
|
|
@@ -1,4 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
26
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
27
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -9,7 +32,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
32
|
});
|
|
10
33
|
};
|
|
11
34
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
const clickgo = require("clickgo");
|
|
35
|
+
const clickgo = __importStar(require("clickgo"));
|
|
13
36
|
class default_1 extends clickgo.form.AbstractForm {
|
|
14
37
|
constructor() {
|
|
15
38
|
super(...arguments);
|
|
@@ -1,4 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
26
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
27
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -9,7 +32,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
32
|
});
|
|
10
33
|
};
|
|
11
34
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
const clickgo = require("clickgo");
|
|
35
|
+
const clickgo = __importStar(require("clickgo"));
|
|
13
36
|
class default_1 extends clickgo.form.AbstractForm {
|
|
14
37
|
constructor() {
|
|
15
38
|
super(...arguments);
|
|
@@ -1,4 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
26
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
27
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -9,7 +32,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
32
|
});
|
|
10
33
|
};
|
|
11
34
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
const clickgo = require("clickgo");
|
|
35
|
+
const clickgo = __importStar(require("clickgo"));
|
|
13
36
|
class default_1 extends clickgo.form.AbstractForm {
|
|
14
37
|
constructor() {
|
|
15
38
|
super(...arguments);
|
|
@@ -1,6 +1,29 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const clickgo = require("clickgo");
|
|
26
|
+
const clickgo = __importStar(require("clickgo"));
|
|
4
27
|
class default_1 extends clickgo.form.AbstractForm {
|
|
5
28
|
constructor() {
|
|
6
29
|
super(...arguments);
|
|
@@ -1,6 +1,29 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const clickgo = require("clickgo");
|
|
26
|
+
const clickgo = __importStar(require("clickgo"));
|
|
4
27
|
class default_1 extends clickgo.form.AbstractForm {
|
|
5
28
|
constructor() {
|
|
6
29
|
super(...arguments);
|
|
@@ -1,4 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
26
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
27
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -9,7 +32,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
32
|
});
|
|
10
33
|
};
|
|
11
34
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
const clickgo = require("clickgo");
|
|
35
|
+
const clickgo = __importStar(require("clickgo"));
|
|
13
36
|
class default_1 extends clickgo.form.AbstractForm {
|
|
14
37
|
constructor() {
|
|
15
38
|
super(...arguments);
|
|
@@ -1,4 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
26
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
27
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -8,40 +31,48 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
31
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
32
|
});
|
|
10
33
|
};
|
|
34
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
35
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
36
|
+
};
|
|
11
37
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
const clickgo = require("clickgo");
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
const
|
|
26
|
-
const
|
|
27
|
-
const
|
|
28
|
-
const
|
|
29
|
-
const
|
|
30
|
-
const
|
|
31
|
-
const
|
|
32
|
-
const
|
|
33
|
-
const
|
|
34
|
-
const
|
|
35
|
-
const
|
|
36
|
-
const
|
|
37
|
-
const
|
|
38
|
-
const
|
|
39
|
-
const
|
|
40
|
-
const
|
|
41
|
-
const
|
|
42
|
-
const
|
|
43
|
-
const
|
|
44
|
-
const
|
|
38
|
+
const clickgo = __importStar(require("clickgo"));
|
|
39
|
+
const box_1 = __importDefault(require("./control/box/box"));
|
|
40
|
+
const button_1 = __importDefault(require("~c/button/button"));
|
|
41
|
+
const check_1 = __importDefault(require("./control/check/check"));
|
|
42
|
+
const dialog_1 = __importDefault(require("./control/dialog/dialog"));
|
|
43
|
+
const file_1 = __importDefault(require("./control/file/file"));
|
|
44
|
+
const form_1 = __importDefault(require("./control/form/form"));
|
|
45
|
+
const layout_1 = __importDefault(require("./control/layout/layout"));
|
|
46
|
+
const list_1 = __importDefault(require("./control/list/list"));
|
|
47
|
+
const marquee_1 = __importDefault(require("./control/marquee/marquee"));
|
|
48
|
+
const menu_1 = __importDefault(require("./control/menu/menu"));
|
|
49
|
+
const monaco_1 = __importDefault(require("./control/monaco/monaco"));
|
|
50
|
+
const nav_1 = __importDefault(require("./control/nav/nav"));
|
|
51
|
+
const panel_1 = __importDefault(require("./control/panel/panel"));
|
|
52
|
+
const flow_1 = __importDefault(require("./control/flow/flow"));
|
|
53
|
+
const property_1 = __importDefault(require("./control/property/property"));
|
|
54
|
+
const radio_1 = __importDefault(require("./control/radio/radio"));
|
|
55
|
+
const scroll_1 = __importDefault(require("./control/scroll/scroll"));
|
|
56
|
+
const select_1 = __importDefault(require("./control/select/select"));
|
|
57
|
+
const tab_1 = __importDefault(require("./control/tab/tab"));
|
|
58
|
+
const table_1 = __importDefault(require("./control/table/table"));
|
|
59
|
+
const text_1 = __importDefault(require("./control/text/text"));
|
|
60
|
+
const vflow_1 = __importDefault(require("./control/vflow/vflow"));
|
|
61
|
+
const form_2 = __importDefault(require("./event/form/form"));
|
|
62
|
+
const other_1 = __importDefault(require("./event/other/other"));
|
|
63
|
+
const screen_1 = __importDefault(require("./event/screen/screen"));
|
|
64
|
+
const task_1 = __importDefault(require("./event/task/task"));
|
|
65
|
+
const aform_1 = __importDefault(require("./method/aform/aform"));
|
|
66
|
+
const core_1 = __importDefault(require("./method/core/core"));
|
|
67
|
+
const dom_1 = __importDefault(require("./method/dom/dom"));
|
|
68
|
+
const form_3 = __importDefault(require("./method/form/form"));
|
|
69
|
+
const fs_1 = __importDefault(require("./method/fs/fs"));
|
|
70
|
+
const native_1 = __importDefault(require("./method/native/native"));
|
|
71
|
+
const system_1 = __importDefault(require("./method/system/system"));
|
|
72
|
+
const task_2 = __importDefault(require("./method/task/task"));
|
|
73
|
+
const theme_1 = __importDefault(require("./method/theme/theme"));
|
|
74
|
+
const tool_1 = __importDefault(require("./method/tool/tool"));
|
|
75
|
+
const zip_1 = __importDefault(require("./method/zip/zip"));
|
|
45
76
|
class default_1 extends clickgo.form.AbstractForm {
|
|
46
77
|
constructor() {
|
|
47
78
|
super(...arguments);
|
|
@@ -57,6 +88,10 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
57
88
|
});
|
|
58
89
|
break;
|
|
59
90
|
}
|
|
91
|
+
case 'cbox': {
|
|
92
|
+
frm = yield clickgo.form.create(box_1.default);
|
|
93
|
+
break;
|
|
94
|
+
}
|
|
60
95
|
case 'cbutton': {
|
|
61
96
|
frm = yield clickgo.form.create(button_1.default);
|
|
62
97
|
break;
|
|
@@ -93,6 +128,10 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
93
128
|
});
|
|
94
129
|
break;
|
|
95
130
|
}
|
|
131
|
+
case 'clayout': {
|
|
132
|
+
frm = yield clickgo.form.create(layout_1.default);
|
|
133
|
+
break;
|
|
134
|
+
}
|
|
96
135
|
case 'clist': {
|
|
97
136
|
frm = yield clickgo.form.create(list_1.default);
|
|
98
137
|
break;
|
|
@@ -115,6 +154,14 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
115
154
|
frm = yield clickgo.form.create(monaco_1.default);
|
|
116
155
|
break;
|
|
117
156
|
}
|
|
157
|
+
case 'cnav': {
|
|
158
|
+
frm = yield clickgo.form.create(nav_1.default);
|
|
159
|
+
break;
|
|
160
|
+
}
|
|
161
|
+
case 'cpanel': {
|
|
162
|
+
frm = yield clickgo.form.create(panel_1.default);
|
|
163
|
+
break;
|
|
164
|
+
}
|
|
118
165
|
case 'cflow': {
|
|
119
166
|
frm = yield clickgo.form.create(flow_1.default);
|
|
120
167
|
break;
|
|
@@ -139,6 +186,10 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
139
186
|
frm = yield clickgo.form.create(tab_1.default);
|
|
140
187
|
break;
|
|
141
188
|
}
|
|
189
|
+
case 'ctable': {
|
|
190
|
+
frm = yield clickgo.form.create(table_1.default);
|
|
191
|
+
break;
|
|
192
|
+
}
|
|
142
193
|
case 'ctext': {
|
|
143
194
|
frm = yield clickgo.form.create(text_1.default);
|
|
144
195
|
break;
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
<flow v-if="ntab === 'control'" class="inner" direction="v">
|
|
4
4
|
<layout class="buttons" gutter="10" direction="v">
|
|
5
5
|
<button @click="openForm('cform')">Form</button>
|
|
6
|
+
<button @click="openForm('clayout')">Layout</button>
|
|
6
7
|
<button @click="openForm('cimg')">Img</button>
|
|
7
8
|
<button @click="openForm('cbutton')">Button</button>
|
|
8
9
|
<button @click="openForm('ccheck')">Check</button>
|
|
@@ -21,7 +22,11 @@
|
|
|
21
22
|
<button @click="openForm('cmenu')">Menu</button>
|
|
22
23
|
<button @click="openForm('clist')">List</button>
|
|
23
24
|
<button @click="openForm('cselect')">Select</button>
|
|
25
|
+
<button @click="openForm('cpanel')">Panel</button>
|
|
24
26
|
<button @click="openForm('cproperty')">Property</button>
|
|
27
|
+
<button @click="openForm('ctable')">Table</button>
|
|
28
|
+
<button @click="openForm('cnav')">Nav</button>
|
|
29
|
+
<button @click="openForm('cbox')">Box</button>
|
|
25
30
|
<button @click="openForm('cmonaco')">Monaco</button>
|
|
26
31
|
</layout>
|
|
27
32
|
</flow>
|
|
@@ -1,4 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
26
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
27
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -8,9 +31,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
31
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
32
|
});
|
|
10
33
|
};
|
|
34
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
35
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
36
|
+
};
|
|
11
37
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
const clickgo = require("clickgo");
|
|
13
|
-
const sd_1 = require("./sd");
|
|
38
|
+
const clickgo = __importStar(require("clickgo"));
|
|
39
|
+
const sd_1 = __importDefault(require("./sd"));
|
|
14
40
|
class default_1 extends clickgo.form.AbstractForm {
|
|
15
41
|
constructor() {
|
|
16
42
|
super(...arguments);
|
|
@@ -1,4 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
26
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
27
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -9,7 +32,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
32
|
});
|
|
10
33
|
};
|
|
11
34
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
const clickgo = require("clickgo");
|
|
35
|
+
const clickgo = __importStar(require("clickgo"));
|
|
13
36
|
class Sd extends clickgo.form.AbstractForm {
|
|
14
37
|
constructor() {
|
|
15
38
|
super(...arguments);
|
|
@@ -1,4 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
26
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
27
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -9,7 +32,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
32
|
});
|
|
10
33
|
};
|
|
11
34
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
const clickgo = require("clickgo");
|
|
35
|
+
const clickgo = __importStar(require("clickgo"));
|
|
13
36
|
class default_1 extends clickgo.form.AbstractForm {
|
|
14
37
|
constructor() {
|
|
15
38
|
super(...arguments);
|
|
@@ -1,4 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
26
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
27
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -9,7 +32,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
32
|
});
|
|
10
33
|
};
|
|
11
34
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
const clickgo = require("clickgo");
|
|
35
|
+
const clickgo = __importStar(require("clickgo"));
|
|
13
36
|
class default_1 extends clickgo.form.AbstractForm {
|
|
14
37
|
constructor() {
|
|
15
38
|
super(...arguments);
|
|
@@ -25,6 +48,8 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
25
48
|
this.moveTop = 0;
|
|
26
49
|
this.moveWidth = 25;
|
|
27
50
|
this.moveHeight = 25;
|
|
51
|
+
this.getWatchInfoDisabled = false;
|
|
52
|
+
this.getWatchInfoText = '{}';
|
|
28
53
|
}
|
|
29
54
|
get isMove() {
|
|
30
55
|
return clickgo.dom.is.move;
|
|
@@ -44,6 +69,11 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
44
69
|
getStyleCount() {
|
|
45
70
|
clickgo.form.dialog(clickgo.dom.getStyleCount(this.taskId, 'form').toString()).catch((e) => { throw e; });
|
|
46
71
|
}
|
|
72
|
+
getWatchSizeCount(taskId) {
|
|
73
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
74
|
+
yield clickgo.form.dialog(clickgo.dom.getWatchSizeCount(taskId).toString());
|
|
75
|
+
});
|
|
76
|
+
}
|
|
47
77
|
watchSize() {
|
|
48
78
|
this.watchSizeText = !this.watchSizeText;
|
|
49
79
|
if (this.watchSizeText) {
|
|
@@ -63,15 +93,31 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
63
93
|
if (this.watchText) {
|
|
64
94
|
clickgo.dom.watch(this.refs.watch.$el, () => {
|
|
65
95
|
clickgo.form.dialog('Changed.').catch((e) => { throw e; });
|
|
66
|
-
});
|
|
96
|
+
}, 'text');
|
|
67
97
|
}
|
|
68
98
|
else {
|
|
69
99
|
clickgo.dom.unwatch(this.refs.watch.$el);
|
|
70
100
|
}
|
|
71
101
|
}
|
|
102
|
+
getWatchCount(taskId) {
|
|
103
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
104
|
+
yield clickgo.form.dialog(clickgo.dom.getWatchCount(taskId).toString());
|
|
105
|
+
});
|
|
106
|
+
}
|
|
72
107
|
isWatchStyle() {
|
|
73
108
|
clickgo.form.dialog(clickgo.dom.isWatchStyle(this.refs.watchStyle.$el) ? 'true' : 'false').catch((e) => { throw e; });
|
|
74
109
|
}
|
|
110
|
+
getWatchInfo() {
|
|
111
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
112
|
+
this.getWatchInfoDisabled = true;
|
|
113
|
+
for (let i = 0; i < 40; ++i) {
|
|
114
|
+
const rtn = clickgo.dom.getWatchInfo();
|
|
115
|
+
this.getWatchInfoText = JSON.stringify(rtn, undefined, 4);
|
|
116
|
+
yield clickgo.tool.sleep(500);
|
|
117
|
+
}
|
|
118
|
+
this.getWatchInfoDisabled = false;
|
|
119
|
+
});
|
|
120
|
+
}
|
|
75
121
|
bindGesture(e) {
|
|
76
122
|
clickgo.dom.bindGesture(e, (ne, dir) => {
|
|
77
123
|
if (['top', 'bottom'].includes(dir)) {
|