@gct-paas/word 0.2.5-beta.3 → 0.2.5-beta.5

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.
@@ -7,6 +7,8 @@ export interface SignInfo {
7
7
  historyId: string;
8
8
  /** 签名用户姓名 */
9
9
  username: string;
10
+ /** 签名用户 ID,人员关联字段使用此值 */
11
+ userId?: string;
10
12
  /** 签名图片方向 */
11
13
  signatureImageDirection?: string;
12
14
  }
@@ -0,0 +1,14 @@
1
+ import { AutofillRule } from '../../../../suites/shared/panel/config/editor/ref-autofill-editor/types';
2
+ import { MultipleItem } from '../../../../suites/shared/panel/config/editor/attach-fields-editor/types';
3
+ import { SignInfo } from './logic';
4
+ interface SignatureAutofillConfig {
5
+ signatureConfigVersion?: number;
6
+ signatureNumber?: string;
7
+ autofillEnabled?: boolean;
8
+ autofillRules?: AutofillRule[];
9
+ signatureType?: string;
10
+ signTimeType?: string;
11
+ populateFields?: MultipleItem[];
12
+ }
13
+ export declare function buildSignatureAutofillValues(config: SignatureAutofillConfig, signature: Pick<SignInfo, 'userId' | 'time'>, sourceValuePath: string): Record<string, unknown>;
14
+ export {};
@@ -17,6 +17,8 @@ export interface SetupPlatformAdaptersOptions {
17
17
  formulaIdentify?: any;
18
18
  /** 公式计算(可选) */
19
19
  formulaCalculate?: any;
20
+ /** 注入业务函数 */
21
+ formulaRegister?: any;
20
22
  /** 触发主工程交互(可选) */
21
23
  triggerHandler?: TriggerHandler;
22
24
  /** 需要安装的 Suite 插件列表 */
@@ -48,6 +48,9 @@ export declare const numberFieldDefaultProps: {
48
48
  readonly maxFormulaExpr: undefined;
49
49
  };
50
50
  export declare const signFieldDefaultProps: {
51
+ readonly signatureConfigVersion: 2;
52
+ readonly autofillEnabled: false;
53
+ readonly autofillRules: readonly [];
51
54
  readonly signatureNumber: string;
52
55
  readonly signatureType: string;
53
56
  readonly signTimeType: string;
@@ -0,0 +1,2 @@
1
+ import { FieldManifest } from '../../../../../capabilities/field-manifest';
2
+ export declare const manifest: FieldManifest;
@@ -0,0 +1,2 @@
1
+ import { FieldManifest } from '../../../../../capabilities/field-manifest';
2
+ export declare const manifest: FieldManifest;
@@ -0,0 +1,2 @@
1
+ import { FieldManifest } from '../../../../../capabilities/field-manifest';
2
+ export declare const manifest: FieldManifest;
@@ -7,6 +7,8 @@ export type AutofillRule = {
7
7
  toSubModel: number | undefined;
8
8
  /** 子表字段 key */
9
9
  toSubFieldKey?: string;
10
+ /** 签名填充目标的字段类型,用于日期格式化 */
11
+ toFieldType?: string;
10
12
  };
11
13
  export type AutofillRules = AutofillRule[];
12
14
  export interface Rules {
@@ -4,6 +4,7 @@ type __VLS_Props = {
4
4
  expr?: string;
5
5
  exprEcho?: string;
6
6
  formulaFieldOptions?: IdentifierGroupInterface[];
7
+ functions?: any[];
7
8
  };
8
9
  declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
9
10
  "update:expr": (expr: string) => any;