clickgo 6.4.0 → 6.4.2
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/app/demo.cga +0 -0
- package/dist/app/task.cga +0 -0
- package/dist/control/common.cgc +0 -0
- package/dist/control/monaco.cgc +0 -0
- package/dist/control/objviewer.cgc +0 -0
- package/dist/index.js +1 -1
- package/dist/lib/dom.d.ts +24 -3
- package/dist/lib/task.d.ts +9 -2
- package/dist/lib/tool.d.ts +1 -0
- package/doc/clickgo-rag.md +409 -265
- package/package.json +1 -1
- package/test/dock-lifecycle.mjs +93 -0
- package/test/tool-clone.mjs +42 -0
package/dist/lib/dom.d.ts
CHANGED
|
@@ -103,7 +103,7 @@ export declare function clearWatchPosition(formId: string, panelId?: string): vo
|
|
|
103
103
|
*/
|
|
104
104
|
export declare function getWatchSizeCount(taskId?: lCore.TCurrent): number;
|
|
105
105
|
/**
|
|
106
|
-
* --- 添加监视 Element
|
|
106
|
+
* --- 添加监视 Element 对象大小,元素移除后自动停止监视,已经通过本方法监视的不会再次监视 ---
|
|
107
107
|
* @param current 当前执行的任务
|
|
108
108
|
* @param el 要监视的大小
|
|
109
109
|
* @param cb 回调函数
|
|
@@ -115,6 +115,21 @@ export declare function watchSize(current: lCore.TCurrent, el: HTMLElement, cb:
|
|
|
115
115
|
* @param el 要移除监视
|
|
116
116
|
*/
|
|
117
117
|
export declare function unwatchSize(el: HTMLElement): void;
|
|
118
|
+
/**
|
|
119
|
+
* --- 添加可与其他订阅者共存的 Element 大小监视 ---
|
|
120
|
+
* @param current 当前执行的任务
|
|
121
|
+
* @param el 要监视的大小
|
|
122
|
+
* @param cb 回调函数
|
|
123
|
+
* @param immediate 立刻先执行一次回调
|
|
124
|
+
*/
|
|
125
|
+
export declare function watchSizeMulti(current: lCore.TCurrent, el: HTMLElement, cb: () => void | Promise<void>, immediate?: boolean): boolean;
|
|
126
|
+
/**
|
|
127
|
+
* --- 移除当前任务的可共存 Element 大小监视 ---
|
|
128
|
+
* @param current 当前执行的任务
|
|
129
|
+
* @param el 要移除监视的元素
|
|
130
|
+
* @param cb 只移除此回调,留空则移除当前任务在本元素上的全部可共存回调
|
|
131
|
+
*/
|
|
132
|
+
export declare function unwatchSizeMulti(current: lCore.TCurrent, el: HTMLElement, cb?: () => void | Promise<void>): void;
|
|
118
133
|
/**
|
|
119
134
|
* --- 检测一个标签是否正在被 watchSize ---
|
|
120
135
|
* @param el 要检测的标签
|
|
@@ -344,8 +359,14 @@ export interface IWatchPositionItem {
|
|
|
344
359
|
/** --- 监视大小中的元素 --- */
|
|
345
360
|
export interface IWatchSizeItem {
|
|
346
361
|
'el': HTMLElement;
|
|
347
|
-
'handler'
|
|
348
|
-
|
|
362
|
+
'handler'?: {
|
|
363
|
+
'handler': () => void | Promise<void>;
|
|
364
|
+
'taskId': string;
|
|
365
|
+
};
|
|
366
|
+
'handlers': Array<{
|
|
367
|
+
'handler': () => void | Promise<void>;
|
|
368
|
+
'taskId': string;
|
|
369
|
+
}>;
|
|
349
370
|
}
|
|
350
371
|
/** --- 监视变化中的元素 --- */
|
|
351
372
|
export interface IWatchItem {
|
package/dist/lib/task.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export declare function getRuntime(current: lCore.TCurrent, taskId: string): IRu
|
|
|
15
15
|
/** --- 获取原始 list --- */
|
|
16
16
|
export declare function getOriginList(current: lCore.TCurrent): Promise<Record<string, ITask>>;
|
|
17
17
|
/**
|
|
18
|
-
* ---
|
|
18
|
+
* --- 获取任务及其应用包简略信息 ---
|
|
19
19
|
* @param taskId 任务 id
|
|
20
20
|
*/
|
|
21
21
|
export declare function get(taskId: lCore.TCurrent): ITaskInfo | null;
|
|
@@ -272,11 +272,18 @@ export interface ICreateTimerOptions {
|
|
|
272
272
|
'immediate'?: boolean;
|
|
273
273
|
'count'?: number;
|
|
274
274
|
}
|
|
275
|
-
/** --- Task
|
|
275
|
+
/** --- Task 及其应用包的简略信息,通常在 list 当中 --- */
|
|
276
276
|
export interface ITaskInfo {
|
|
277
277
|
/** --- 任务 ID --- */
|
|
278
278
|
'id': string;
|
|
279
|
+
/** --- 应用名 --- */
|
|
279
280
|
'name': string;
|
|
281
|
+
/** --- 发行版本 --- */
|
|
282
|
+
'ver': number;
|
|
283
|
+
/** --- 发行版本字符串 --- */
|
|
284
|
+
'version': string;
|
|
285
|
+
/** --- 作者 --- */
|
|
286
|
+
'author': string;
|
|
280
287
|
'locale': string;
|
|
281
288
|
'customTheme': boolean;
|
|
282
289
|
'formCount': number;
|