@gct-paas/word 0.2.31-beta.0 → 0.2.31-beta.1

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.
@@ -19,16 +19,20 @@ export declare function createRuntimeDataSourceBinding(options: RuntimeDataSourc
19
19
  readonly [x: string]: {
20
20
  readonly status: import('@gct-paas/form-base').DataSourceQueryStatus;
21
21
  readonly data?: Readonly<unknown> | undefined;
22
+ readonly clearTargets?: boolean | undefined;
22
23
  readonly error?: string | undefined;
23
24
  };
24
25
  };
25
- query: (key: string, parameters?: import('@gct-paas/form-base').DataSourceParameters) => Promise<unknown>;
26
+ query: (key: string, parameters?: import('@gct-paas/form-base').DataSourceParameters, clearOnEmpty?: boolean) => Promise<unknown>;
26
27
  cancel: (key: string) => boolean;
27
28
  getResult(key: string): unknown;
28
29
  initialize: () => Promise<PromiseSettledResult<unknown>[]>;
29
- queryOnValueChange(keys: readonly string[]): Promise<PromiseSettledResult<unknown>[]>;
30
+ queryOnValueChange(keys: readonly string[], changeOptions?: {
31
+ cleared?: boolean;
32
+ }): Promise<PromiseSettledResult<unknown>[]>;
30
33
  dispose(): void;
31
34
  };
35
+ initialize(): Promise<void>;
32
36
  refresh: () => void | undefined;
33
37
  dispose(): void;
34
38
  };
@@ -1,5 +1,7 @@
1
1
  import { Doc } from '../../../core';
2
2
  import { DocumentRuntimeExtension } from '../../../core/runtime/DocumentRuntimeManager';
3
3
  import { DataSourceManager } from '@gct-paas/form-base';
4
- /** 只响应完成依赖计算和 enrich 后的用户编辑;hydrate 回填不会再次触发取数。 */
5
- export declare function createValueChangeDataSourceRuntime(doc: Doc, manager: Pick<DataSourceManager, 'queryOnValueChange'>, canExecute: () => boolean): DocumentRuntimeExtension;
4
+ /** 初始化就绪时补查带值字段;后续只响应用户编辑,hydrate 不重复触发。 */
5
+ export declare function createValueChangeDataSourceRuntime(doc: Doc, manager: Pick<DataSourceManager, 'queryOnValueChange' | 'states'>, canExecute: () => boolean): DocumentRuntimeExtension & {
6
+ initialize: () => Promise<void>;
7
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gct-paas/word",
3
- "version": "0.2.31-beta.0",
3
+ "version": "0.2.31-beta.1",
4
4
  "description": "GCT 在线 word",
5
5
  "keywords": [
6
6
  "vue",
@@ -59,7 +59,7 @@
59
59
  "pdf-fontkit": "^1.8.9",
60
60
  "pdf-lib": "^1.17.1",
61
61
  "resize-observer-polyfill": "^1.5.1",
62
- "@gct-paas/form-base": "0.1.7-beta.1",
62
+ "@gct-paas/form-base": "0.1.7-beta.2",
63
63
  "vue-color": "^3.3.3"
64
64
  },
65
65
  "devDependencies": {