@gct-paas/word 0.2.5 → 0.2.6

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.
@@ -0,0 +1,30 @@
1
+ import { Doc } from '../../../../../../core';
2
+ import { BoundedRegion } from '../../../../../../core/model/logic/subtable/bounded/BoundedRegion';
3
+ /** 与宿主固定表弹窗约定的输入位置及字段映射。 */
4
+ export interface FixedQuickFillCell {
5
+ row: number;
6
+ col: number;
7
+ groupIndex: number;
8
+ prop: string;
9
+ }
10
+ export interface QuickFillLayoutCell {
11
+ hidden: boolean;
12
+ inItem: boolean;
13
+ groupIndex?: number;
14
+ prop?: string;
15
+ }
16
+ /** 仅为绑定到数据分组的字段提供输入位置,避免空白格吞掉连续粘贴的值。 */
17
+ export declare function compactFixedQuickFillLayout(rows: QuickFillLayoutCell[][]): {
18
+ rowCount: number;
19
+ colCount: number;
20
+ dgRowCount: number;
21
+ dgColCount: number;
22
+ cells: FixedQuickFillCell[];
23
+ };
24
+ export declare function createFixedQuickFillLayout(doc: Doc, region: BoundedRegion): {
25
+ rowCount: number;
26
+ colCount: number;
27
+ dgRowCount: number;
28
+ dgColCount: number;
29
+ cells: FixedQuickFillCell[];
30
+ };
@@ -1,4 +1,5 @@
1
1
  import { Doc } from '../../../../../../core';
2
+ import { BoundedRegion } from '../../../../../../core/model/logic/subtable/bounded/BoundedRegion';
2
3
  export declare const getTableColumns: (doc: Doc, subFieldKey: string, isDynamic: boolean) => ({
3
4
  fieldType: any;
4
5
  field: any;
@@ -26,6 +27,6 @@ export declare const hasFixedTableEmptyGroup: (doc: Doc, subFieldKey: string) =>
26
27
  */
27
28
  export declare const handleOpenFixedQuickFillModal: ({ doc, table, cell, }: {
28
29
  doc: Doc;
29
- table: any;
30
+ table: BoundedRegion;
30
31
  cell: any;
31
32
  }) => void;
@@ -7,6 +7,10 @@ export interface SignInfo {
7
7
  historyId: string;
8
8
  /** 签名用户姓名 */
9
9
  username: string;
10
+ /** 签名用户 ID,人员关联字段使用此值 */
11
+ userId?: string;
12
+ /** 签名图片方向 */
13
+ signatureImageDirection?: string;
10
14
  }
11
15
  /**
12
16
  * 通过账户密码获取签名图片
@@ -14,7 +18,7 @@ export interface SignInfo {
14
18
  * @param {string} password
15
19
  * @param {string} type
16
20
  */
17
- export declare function getSignImgByAccount(username: string, password: string, type: string): Promise<SignInfo>;
21
+ export declare function getSignImgByAccount(username: string, password: string, type: string, signatureImageDirection?: string): Promise<SignInfo>;
18
22
  /** 从接口异常中提取签名错误提示 */
19
23
  export declare function getSignatureErrorMessage(error: unknown): string;
20
24
  export declare function getSignWay(enableSignPassword: number): {
@@ -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 {};
@@ -20,6 +20,8 @@ export interface IDeviceConfig {
20
20
  defaultOrgId: string | undefined;
21
21
  /** 默认的登录账号 */
22
22
  defaultLoginAccount?: string;
23
+ /** 默认的用户姓名(预览/兜底签名展示用) */
24
+ defaultUserName?: string;
23
25
  /** 默认的物料查询条件 */
24
26
  defaultProductSearchFields: string;
25
27
  /** 是否启用人员字段 false: 不使用 true: 使用;先留着扩展,后续如果需要在字段列表过滤才使用 */
@@ -48,11 +48,16 @@ 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;
54
57
  readonly signDisplayStyle: string;
55
58
  readonly populateFields: readonly [];
59
+ readonly fallbackSignType: string;
60
+ readonly signatureImageDirection: string;
56
61
  };
57
62
  export declare const fileFieldDefaultProps: {
58
63
  readonly imageDisplayMode: string;
@@ -5,6 +5,7 @@ type __VLS_Props = {
5
5
  modelValue?: string;
6
6
  forceExpand?: boolean;
7
7
  defaultExpanded?: boolean;
8
+ defaultExpandedValues?: string[];
8
9
  groupOnlyExpand?: boolean;
9
10
  highlightName?: (name?: string) => string;
10
11
  };
@@ -14,6 +15,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
14
15
  onSelect?: ((value: string, node: FieldTreeNodeType) => any) | undefined;
15
16
  }>, {
16
17
  defaultExpanded: boolean;
18
+ defaultExpandedValues: string[];
17
19
  groupOnlyExpand: boolean;
18
20
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
19
21
  export default _default;
@@ -5,7 +5,9 @@ type __VLS_Props = {
5
5
  placeholder?: string;
6
6
  popperWidth?: number;
7
7
  defaultExpanded?: boolean;
8
+ defaultExpandedValues?: string[];
8
9
  groupOnlyExpand?: boolean;
10
+ disabled?: boolean;
9
11
  };
10
12
  declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
11
13
  "update:modelValue": (value?: string | undefined) => any;
@@ -14,9 +16,11 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
14
16
  "onUpdate:modelValue"?: ((value?: string | undefined) => any) | undefined;
15
17
  onChange?: ((value?: string | undefined, node?: FieldTreeNodeType | undefined) => any) | undefined;
16
18
  }>, {
19
+ disabled: boolean;
17
20
  treeData: FieldTreeNodeType[];
18
21
  placeholder: string;
19
22
  defaultExpanded: boolean;
23
+ defaultExpandedValues: string[];
20
24
  groupOnlyExpand: boolean;
21
25
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
22
26
  rootRef: HTMLDivElement;
@@ -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 {