clickgo 3.13.16 → 3.13.18
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 +1 -1
- package/dist/app/demo/form/control/date/date.js +1 -16
- package/dist/app/demo/form/control/date/date.xml +1 -2
- package/dist/app/demo/form/control/datepanel/datepanel.xml +1 -1
- package/dist/app/demo/form/control/jodit/jodit.xml +1 -1
- package/dist/clickgo.js +1 -1
- package/dist/clickgo.ts +1 -1
- package/dist/control/arteditor.cgc +0 -0
- package/dist/control/box.cgc +0 -0
- package/dist/control/common.cgc +0 -0
- package/dist/control/desc.cgc +0 -0
- package/dist/control/drawer.cgc +0 -0
- package/dist/control/echarts.cgc +0 -0
- package/dist/control/form.cgc +0 -0
- package/dist/control/iconview.cgc +0 -0
- package/dist/control/jodit.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/tuieditor.cgc +0 -0
- package/dist/control/tuiviewer.cgc +0 -0
- package/dist/control/xterm.cgc +0 -0
- package/dist/lib/core.js +1 -1
- package/dist/lib/core.ts +1 -1
- 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 +26 -7
package/README.md
CHANGED
|
@@ -25,7 +25,7 @@ Load the module loader first, and then load it using the module loader.
|
|
|
25
25
|
**index.html**
|
|
26
26
|
|
|
27
27
|
```html
|
|
28
|
-
<script src="https://cdn.jsdelivr.net/npm/@litert/loader@3.5.7/dist/loader.min.js?path=index&npm={'clickgo':'3.13.
|
|
28
|
+
<script src="https://cdn.jsdelivr.net/npm/@litert/loader@3.5.7/dist/loader.min.js?path=index&npm={'clickgo':'3.13.18'}"></script>
|
|
29
29
|
```
|
|
30
30
|
|
|
31
31
|
**index.js**
|
|
@@ -22,15 +22,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
22
22
|
__setModuleDefault(result, mod);
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
28
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
29
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
30
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
31
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
32
|
-
});
|
|
33
|
-
};
|
|
34
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
26
|
const clickgo = __importStar(require("clickgo"));
|
|
36
27
|
class default_1 extends clickgo.form.AbstractForm {
|
|
@@ -39,18 +30,12 @@ class default_1 extends clickgo.form.AbstractForm {
|
|
|
39
30
|
this.date = true;
|
|
40
31
|
this.time = true;
|
|
41
32
|
this.zone = true;
|
|
42
|
-
this.ts =
|
|
33
|
+
this.ts = undefined;
|
|
43
34
|
this.tz = undefined;
|
|
44
35
|
this.disabled = false;
|
|
45
|
-
this.range = undefined;
|
|
46
36
|
}
|
|
47
37
|
settime() {
|
|
48
38
|
this.ts = clickgo.tool.rand(1504304812000, 1704304812000);
|
|
49
39
|
}
|
|
50
|
-
onRange(e) {
|
|
51
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
52
|
-
yield clickgo.form.dialog(JSON.stringify(e));
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
40
|
}
|
|
56
41
|
exports.default = default_1;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<form width="400" height="350" title="Date">
|
|
2
2
|
<layout direction="v" gutter="10" style="padding: 10px; flex: 1;">
|
|
3
3
|
<label>Timestamp: {{ts}}, Time zone: {{tz}}</label>
|
|
4
|
-
<date v-model="ts" v-model:tz="tz" :date="date" :time="time" :zone="zone" :disabled="disabled"
|
|
4
|
+
<date v-model="ts" v-model:tz="tz" :date="date" :time="time" :zone="zone" :disabled="disabled" />
|
|
5
5
|
<layout gutter="10">
|
|
6
6
|
<button @click="date = !date" style="flex: 1;">{{date ? '' : '!'}}date</button>
|
|
7
7
|
<button @click="time = !time" style="flex: 1;">{{time ? '' : '!'}}time</button>
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
<layout gutter="10">
|
|
11
11
|
<button @click="disabled = !disabled" style="flex: 1;">{{disabled ? '' : '!'}}disabled</button>
|
|
12
12
|
<button @click="settime" style="flex: 1;">Set time</button>
|
|
13
|
-
<button @click="range = 0" style="flex: 1;">Set range</button>
|
|
14
13
|
</layout>
|
|
15
14
|
</layout>
|
|
16
15
|
</form>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<form width="500" height="700" title="Datepanel">
|
|
2
2
|
<layout direction="v" gutter="10" style="padding: 10px; flex: 1;">
|
|
3
3
|
<label>Timestamp: {{ts}}, Time zone: {{tz}}, yearmonth: {{yearmonth}}</label>
|
|
4
|
-
<datepanel v-model="ts" v-model:tz="tz" v-model:yearmonth="yearmonth" time="
|
|
4
|
+
<datepanel v-model="ts" v-model:tz="tz" v-model:yearmonth="yearmonth" :time="time" :zone="zone" :disabled="disabled" :plain="plain" :range="range" :start="start ? 1704067200_000 : undefined" @changed="onChanged" style="flex: 1;">
|
|
5
5
|
<template v-if="bottom" v-slot="d">
|
|
6
6
|
<layout style="flex: 1;" align-h="center">{{d.year}}</layout>
|
|
7
7
|
</template>
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
<layout gutter="10">
|
|
19
19
|
<button @click="family = !family" style="flex: 1;">{{family ? '' : '!'}}Family CCM</button>
|
|
20
20
|
<select v-model="size" :data="['12px', '13px', '14px', '15px', '16px']" style="flex: 1;"></select>
|
|
21
|
-
|
|
21
|
+
<select v-model="theme" :data="themes" style="flex: 1;"></select>
|
|
22
22
|
</layout>
|
|
23
23
|
</layout>
|
|
24
24
|
</form>
|
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.storage = 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.13.
|
|
27
|
+
const version = '3.13.18';
|
|
28
28
|
function getVersion() {
|
|
29
29
|
return version;
|
|
30
30
|
}
|
package/dist/clickgo.ts
CHANGED
|
Binary file
|
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/drawer.cgc
CHANGED
|
Binary file
|
package/dist/control/echarts.cgc
CHANGED
|
Binary file
|
package/dist/control/form.cgc
CHANGED
|
Binary file
|
|
Binary file
|
package/dist/control/jodit.cgc
CHANGED
|
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
|
|
Binary file
|
|
Binary file
|
package/dist/control/xterm.cgc
CHANGED
|
Binary file
|
package/dist/lib/core.js
CHANGED
|
@@ -270,7 +270,7 @@ const modules = {
|
|
|
270
270
|
loader.cdn + '/npm/@toast-ui/editor@3.2.2/dist/toastui-editor.min.css',
|
|
271
271
|
loader.cdn + '/npm/@toast-ui/editor@3.2.2/dist/theme/toastui-editor-dark.css'
|
|
272
272
|
]);
|
|
273
|
-
loader.loadStyle('.toastui-editor-defaultUI-toolbar,.ProseMirror{box-sizing:initial !important}.toastui-editor-main{background:var(--g-plain-background);border-radius:0 0 3px 3px}.ProseMirror{cursor:text}');
|
|
273
|
+
loader.loadStyle('.toastui-editor-defaultUI-toolbar,.ProseMirror{box-sizing:initial !important}.toastui-editor-main{background:var(--g-plain-background);border-radius:0 0 3px 3px}.ProseMirror{cursor:text}.jodit ::-webkit-scrollbar{width:6px;cursor:default;}.jodit ::-webkit-scrollbar-thumb{background:rgba(0,0,0,.1);border-radius:3px;}.jodit ::-webkit-scrollbar-thumb:hover{background: rgba(0,0,0,.2);}');
|
|
274
274
|
return window.toastui.Editor;
|
|
275
275
|
});
|
|
276
276
|
},
|
package/dist/lib/core.ts
CHANGED
|
@@ -340,7 +340,7 @@ const modules: Record<string, {
|
|
|
340
340
|
loader.cdn + '/npm/@toast-ui/editor@3.2.2/dist/toastui-editor.min.css',
|
|
341
341
|
loader.cdn + '/npm/@toast-ui/editor@3.2.2/dist/theme/toastui-editor-dark.css'
|
|
342
342
|
]);
|
|
343
|
-
loader.loadStyle('.toastui-editor-defaultUI-toolbar,.ProseMirror{box-sizing:initial !important}.toastui-editor-main{background:var(--g-plain-background);border-radius:0 0 3px 3px}.ProseMirror{cursor:text}');
|
|
343
|
+
loader.loadStyle('.toastui-editor-defaultUI-toolbar,.ProseMirror{box-sizing:initial !important}.toastui-editor-main{background:var(--g-plain-background);border-radius:0 0 3px 3px}.ProseMirror{cursor:text}.jodit ::-webkit-scrollbar{width:6px;cursor:default;}.jodit ::-webkit-scrollbar-thumb{background:rgba(0,0,0,.1);border-radius:3px;}.jodit ::-webkit-scrollbar-thumb:hover{background: rgba(0,0,0,.2);}');
|
|
344
344
|
return (window as any).toastui.Editor;
|
|
345
345
|
},
|
|
346
346
|
'obj': null,
|
package/dist/theme/byterun.cgt
CHANGED
|
Binary file
|
package/dist/theme/familiar.cgt
CHANGED
|
Binary file
|
package/dist/theme/light.cgt
CHANGED
|
Binary file
|
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -672,7 +672,7 @@ export interface IAbstractPanelShowEvent {
|
|
|
672
672
|
'previous': string;
|
|
673
673
|
/** --- 仅 nav 联动时有效,代表本次 show 的时候 qs 是否发生了变化 --- */
|
|
674
674
|
'qsChange': boolean;
|
|
675
|
-
}
|
|
675
|
+
};
|
|
676
676
|
}
|
|
677
677
|
|
|
678
678
|
// --- Check Control ---
|
|
@@ -697,7 +697,15 @@ export interface ITextBeforechangeEvent extends ICustomEvent {
|
|
|
697
697
|
'detail': {
|
|
698
698
|
'value': string;
|
|
699
699
|
'change'?: string;
|
|
700
|
-
}
|
|
700
|
+
};
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
// --- Date Control ---
|
|
704
|
+
|
|
705
|
+
export interface IDateChangedEvent {
|
|
706
|
+
'detail': {
|
|
707
|
+
'value'?: number;
|
|
708
|
+
};
|
|
701
709
|
}
|
|
702
710
|
|
|
703
711
|
// --- Datepanel Control ---
|
|
@@ -715,6 +723,17 @@ export interface IDatepanelChangedEvent {
|
|
|
715
723
|
};
|
|
716
724
|
}
|
|
717
725
|
|
|
726
|
+
export interface IDatepanelSelectedEvent {
|
|
727
|
+
'detail': {
|
|
728
|
+
'time': number;
|
|
729
|
+
'date': number;
|
|
730
|
+
'month': number;
|
|
731
|
+
'year': number;
|
|
732
|
+
'day': number;
|
|
733
|
+
'str': string;
|
|
734
|
+
};
|
|
735
|
+
}
|
|
736
|
+
|
|
718
737
|
// --- Date Control ---
|
|
719
738
|
|
|
720
739
|
export interface IDateRangeEvent {
|
|
@@ -729,7 +748,7 @@ export interface IDateRangeEvent {
|
|
|
729
748
|
export interface IFormCloseEvent extends ICustomEvent {
|
|
730
749
|
'detail': {
|
|
731
750
|
'event': MouseEvent;
|
|
732
|
-
}
|
|
751
|
+
};
|
|
733
752
|
}
|
|
734
753
|
|
|
735
754
|
export interface IFormMaxEvent {
|
|
@@ -744,8 +763,8 @@ export interface IFormMaxEvent {
|
|
|
744
763
|
'height': number;
|
|
745
764
|
'left': number;
|
|
746
765
|
'top': number;
|
|
747
|
-
} | null
|
|
748
|
-
}
|
|
766
|
+
} | null;
|
|
767
|
+
};
|
|
749
768
|
}
|
|
750
769
|
|
|
751
770
|
export interface IFormMinEvent {
|
|
@@ -760,8 +779,8 @@ export interface IFormMinEvent {
|
|
|
760
779
|
'height': number;
|
|
761
780
|
'left': number;
|
|
762
781
|
'top': number;
|
|
763
|
-
} | null
|
|
764
|
-
}
|
|
782
|
+
} | null;
|
|
783
|
+
};
|
|
765
784
|
}
|
|
766
785
|
|
|
767
786
|
// --- Greatlist Control ---
|