@gct-paas/word 0.2.5-beta.4 → 0.2.5-beta.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.
Files changed (32) hide show
  1. package/dist/base/message/src/Message.vue.d.ts +2 -0
  2. package/dist/base/message/src/message.d.ts +2 -0
  3. package/dist/base/select/src/basic-select.vue.d.ts +18 -4
  4. package/dist/base/utils/image-size-util.d.ts +8 -3
  5. package/dist/core/command/commands/DeleteRow.d.ts +1 -1
  6. package/dist/core/data/formula/business-functions.d.ts +4 -0
  7. package/dist/core/layout/handlers/fields/signature-decoration-layout.d.ts +14 -0
  8. package/dist/core/view/runs/ImageRun.d.ts +9 -0
  9. package/dist/domain/field/field-type.d.ts +48 -0
  10. package/dist/index.es.js +3380 -2081
  11. package/dist/runtime/renderer/dialogs/device-scan/submit-device-scan.d.ts +3 -0
  12. package/dist/runtime/renderer/dialogs/signature/logic.d.ts +2 -0
  13. package/dist/runtime/renderer/dialogs/signature/signature-autofill-runtime.d.ts +14 -0
  14. package/dist/runtime/renderer/dropdowns/components/tables/composables/useSearchEnter.d.ts +18 -0
  15. package/dist/runtime/renderer/dropdowns/components/tables/composables/useSelectTable.d.ts +2 -0
  16. package/dist/runtime/renderer/dropdowns/components/tables/composables/useTableDropdown.d.ts +2 -1
  17. package/dist/runtime/renderer/dropdowns/components/tables/table-option-dropdown.vue.d.ts +2 -2
  18. package/dist/runtime/renderer/dropdowns/composables/useDropdownSearchFocus.d.ts +9 -0
  19. package/dist/sdk/setup.d.ts +2 -0
  20. package/dist/suites/edhr/manifest/field/_common_/basic.d.ts +3 -0
  21. package/dist/suites/edhr/manifest/field/business/inspection-module-qty-manifest.d.ts +2 -0
  22. package/dist/suites/edhr/manifest/field/object-type/device-parameter-object-manifest.d.ts +2 -0
  23. package/dist/suites/edhr/manifest/field/object-type/inspection-parameter-object-manifest.d.ts +2 -0
  24. package/dist/suites/edhr/manifest/field/object-type/process-parameter-object-manifest.d.ts +2 -0
  25. package/dist/suites/edhr/manifest/field/trace/inspection-container-manifest.d.ts +2 -0
  26. package/dist/suites/edhr/manifest/field/trace/sterilization-date-manifest.d.ts +2 -0
  27. package/dist/suites/shared/panel/config/editor/display-fields-editor/display-fields.util.d.ts +4 -4
  28. package/dist/suites/shared/panel/config/editor/ref-autofill-editor/types.d.ts +2 -0
  29. package/dist/suites/shared/panel/modules/field-formula-module/field-formula-module.vue.d.ts +1 -0
  30. package/dist/suites/shared/panel/utils/default-value-visibility.d.ts +3 -0
  31. package/dist/word.css +433 -277
  32. package/package.json +1 -1
@@ -3,8 +3,10 @@ interface MessageItem {
3
3
  id: number;
4
4
  type: 'info' | 'success' | 'warning' | 'error';
5
5
  message: string | VNode;
6
+ title?: string;
6
7
  closeable: boolean;
7
8
  duration: number;
9
+ key?: string;
8
10
  timer?: number;
9
11
  startTime?: number;
10
12
  remaining: number;
@@ -2,8 +2,10 @@ import { VNode } from 'vue';
2
2
  export interface MessageOptions {
3
3
  type?: 'info' | 'success' | 'warning' | 'error';
4
4
  message: string | VNode | (() => VNode);
5
+ title?: string;
5
6
  duration?: number;
6
7
  closeable?: boolean;
8
+ key?: string;
7
9
  }
8
10
  declare function GctMessage(options: MessageOptions): void;
9
11
  declare namespace GctMessage {
@@ -24,6 +24,8 @@ type __VLS_Props = {
24
24
  noArrow?: boolean;
25
25
  /** 多选模式下也显示右侧箭头 */
26
26
  multipleArrow?: boolean;
27
+ /** 多选清空按钮位于箭头左侧,仅悬停时显示 */
28
+ multipleClearOnHover?: boolean;
27
29
  /** 是否显示已选项勾选图标 */
28
30
  showCheck?: boolean;
29
31
  /** 是否允许清除 */
@@ -40,6 +42,10 @@ type __VLS_Props = {
40
42
  allowCreate?: boolean;
41
43
  /** 下拉选项是否可搜索 */
42
44
  searchable?: boolean;
45
+ /** 由外部请求搜索结果,跳过本地过滤 */
46
+ remote?: boolean;
47
+ /** 当前选中项的回显信息,可不在搜索结果中 */
48
+ selectedOption?: DropdownOption;
43
49
  };
44
50
  declare function __VLS_template(): {
45
51
  attrs: Partial<{}>;
@@ -56,6 +62,7 @@ declare function __VLS_template(): {
56
62
  'option-icon'?(_: {
57
63
  option: DropdownOption;
58
64
  }): any;
65
+ 'bottom-bar'?(_: {}): any;
59
66
  };
60
67
  refs: {
61
68
  dropdownRef: import('vue').CreateComponentPublicInstanceWithMixins<Record<string, any> & {}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, {}, {}, string, {}, any, import('vue').ComponentProvideOptions, {
@@ -77,15 +84,21 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
77
84
  declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
78
85
  getRef: import('vue').Ref<any, any>;
79
86
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
87
+ search: (keyword: string) => any;
80
88
  edit: (option: DropdownOption) => any;
81
89
  click: (evt: any) => any;
82
- "update:modelValue": (val: string | number | (string | number)[]) => any;
83
- change: (val: string | number | (string | number)[], item?: DropdownOption | undefined) => any;
90
+ "update:modelValue": (val: string | number | (string | number)[] | undefined) => any;
91
+ change: (val: string | number | (string | number)[] | undefined, item?: DropdownOption | undefined) => any;
92
+ "dropdown-show": () => any;
93
+ "reach-bottom": () => any;
84
94
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
95
+ onSearch?: ((keyword: string) => any) | undefined;
85
96
  onEdit?: ((option: DropdownOption) => any) | undefined;
86
97
  onClick?: ((evt: any) => any) | undefined;
87
- "onUpdate:modelValue"?: ((val: string | number | (string | number)[]) => any) | undefined;
88
- onChange?: ((val: string | number | (string | number)[], item?: DropdownOption | undefined) => any) | undefined;
98
+ "onUpdate:modelValue"?: ((val: string | number | (string | number)[] | undefined) => any) | undefined;
99
+ onChange?: ((val: string | number | (string | number)[] | undefined, item?: DropdownOption | undefined) => any) | undefined;
100
+ "onDropdown-show"?: (() => any) | undefined;
101
+ "onReach-bottom"?: (() => any) | undefined;
89
102
  }>, {
90
103
  disabled: boolean;
91
104
  options: DropdownOption[];
@@ -94,6 +107,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
94
107
  allowClear: boolean;
95
108
  unremovableValues: Array<string | number>;
96
109
  searchable: boolean;
110
+ remote: boolean;
97
111
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
98
112
  dropdownRef: import('vue').CreateComponentPublicInstanceWithMixins<Record<string, any> & {}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, {}, {}, string, {}, any, import('vue').ComponentProvideOptions, {
99
113
  P: {};
@@ -18,6 +18,11 @@ export interface ImageCropRect {
18
18
  width: number;
19
19
  height: number;
20
20
  }
21
+ /** 固定 360×204 兜底图同一比例,按 2 倍像素绘制 */
22
+ export declare const FALLBACK_SIGN_DISPLAY_SIZE: {
23
+ readonly width: 180;
24
+ readonly height: 102;
25
+ };
21
26
  /**
22
27
  * 根据图片原始尺寸 + 配置,计算最终显示尺寸
23
28
  */
@@ -34,11 +39,11 @@ export declare function computeContainLayout(natural: ImageSize, box: ImageSize)
34
39
  * 在目标框内等比缩放(contain),不压缩、不拉伸
35
40
  */
36
41
  export declare function computeContainDisplaySize(natural: ImageSize, box: ImageSize): ImageSize;
37
- /** 同步取无图签名缓存(布局重建时可避免先闪占位再异步补图) */
38
- export declare function getCachedSignatureImage(name: string, width?: number, height?: number, time?: number | string, fallbackSignType?: string, signatureImageDirection?: string): HTMLImageElement | null;
42
+ /** 同步取无图签名缓存(布局重建时可避免先闪占位再异步补图)。宽高参数仅为兼容现有调用。 */
43
+ export declare function getCachedSignatureImage(name: string, _width?: number, _height?: number, time?: number | string, fallbackSignType?: string, signatureImageDirection?: string): HTMLImageElement | null;
39
44
  /**
40
45
  * 创建无图签名兜底图
41
46
  * 默认用户名 + 电子签名 + 验证日期;仅用户名时只绘制姓名
42
47
  */
43
- export declare function createSignatureImageDataUrl(name: string, width?: number, height?: number, time?: number | string, fallbackSignType?: string, signatureImageDirection?: string): string;
48
+ export declare function createSignatureImageDataUrl(name: string, _width?: number, _height?: number, time?: number | string, fallbackSignType?: string, signatureImageDirection?: string): string;
44
49
  export declare function createSignatureImage(name: string, width?: number, height?: number, time?: number | string, fallbackSignType?: string, signatureImageDirection?: string): Promise<HTMLImageElement>;
@@ -4,7 +4,7 @@ import { CommandBase, PostCommandContext } from '../base/CommandBase';
4
4
  /**
5
5
  * 表格行删除命令
6
6
  *
7
- * 删除指定索引处的行
7
+ * 删除指定行,或当前选区中同一表格的连续多行
8
8
  */
9
9
  export declare class DeleteRow extends CommandBase<'deleteRow'> {
10
10
  constructor(doc: Doc, payload?: CommandPayloadMap['deleteRow']);
@@ -0,0 +1,4 @@
1
+ export type FormulaRegister = (name: string, executor: (...args: any[]) => any) => void;
2
+ /** 更新当前表单的参数配置;未传入配置时清空上次的数据。 */
3
+ export declare function setFormulaParamsConfig(paramsConfig?: Record<string, any> | null): void;
4
+ export declare function registerFormulaFuncs(register?: FormulaRegister): void;
@@ -0,0 +1,14 @@
1
+ /** 签名与日期的组合区域。未设置样式的旧模板按上下排列。 */
2
+ export declare function getSignatureDecorationPlacement(width: number, height: number, textWidth: number, textHeight: number, gap: number, signDisplayStyle?: string): {
3
+ position: "right";
4
+ rectWidth: number;
5
+ rectHeight: number;
6
+ x: number;
7
+ y: number;
8
+ } | {
9
+ position: "bottom";
10
+ rectWidth: number;
11
+ rectHeight: number;
12
+ x: number;
13
+ y: number;
14
+ };
@@ -10,14 +10,20 @@ export interface IImageRun {
10
10
  readonly width: number;
11
11
  /** 组件高度 */
12
12
  readonly height: number;
13
+ /** 图片本身的宽高(不包含日期装饰) */
14
+ readonly imageWidth: number;
15
+ readonly imageHeight: number;
13
16
  /** 组件坐标位置 */
14
17
  readonly x: number;
15
18
  /** 组件坐标位置 */
16
19
  readonly y: number;
17
20
  /** 图片源地址 */
18
21
  src: string;
22
+ decorations?: ImageRunOptions['decorations'];
19
23
  /** 是否保持等比 */
20
24
  keepAspect: boolean;
25
+ /** 下方文字比图片宽时,图片在组合区域中的水平偏移 */
26
+ readonly imageOffsetX: number;
21
27
  }
22
28
  export interface ImageRunOptions extends LayoutNodeOptions {
23
29
  src: string;
@@ -45,6 +51,9 @@ export declare class ImageRun extends LayoutNode implements IImageRun {
45
51
  decorations?: ImageRunOptions['decorations'];
46
52
  get width(): number;
47
53
  set width(value: number);
54
+ get imageWidth(): number;
55
+ get imageHeight(): number;
56
+ get imageOffsetX(): number;
48
57
  get height(): number;
49
58
  set height(value: number);
50
59
  constructor(options: ImageRunOptions);
@@ -334,6 +334,10 @@ export declare const BUSINESS_FIELD_TYPE: {
334
334
  * 检验数量
335
335
  */
336
336
  readonly INSPECTION_QTY: "inspection_qty";
337
+ /**
338
+ * 受检数量
339
+ */
340
+ readonly INSPECTION_MODULE_QTY: "inspection_module_qty";
337
341
  /**
338
342
  * 工序接收数量
339
343
  */
@@ -386,6 +390,18 @@ export declare const BUSINESS_FIELD_TYPE: {
386
390
  * 物料日期对象
387
391
  */
388
392
  readonly DATE_OBJECT: "date_object";
393
+ /**
394
+ * 检验参数对象
395
+ */
396
+ readonly INSPECTION_PARAMETER_OBJECT: "inspection_parameter_object";
397
+ /**
398
+ * 工艺参数对象
399
+ */
400
+ readonly PROCESS_PARAMETER_OBJECT: "process_parameter_object";
401
+ /**
402
+ * 设备参数对象
403
+ */
404
+ readonly DEVICE_PARAMETER_OBJECT: "device_parameter_object";
389
405
  /**
390
406
  * 有效期
391
407
  */
@@ -438,6 +454,14 @@ export declare const BUSINESS_FIELD_TYPE: {
438
454
  * 灭菌批(追溯)
439
455
  */
440
456
  readonly STERILIZATION_CONTAINER: "sterilization_container";
457
+ /**
458
+ * 检验批
459
+ */
460
+ readonly INSPECTION_CONTAINER: "inspection_container";
461
+ /**
462
+ * 灭菌日期
463
+ */
464
+ readonly STERILIZATION_DATE: "sterilization_date";
441
465
  };
442
466
  export type BusinessFieldType = (typeof BUSINESS_FIELD_TYPE)[keyof typeof BUSINESS_FIELD_TYPE];
443
467
  /** 字段类型 = 基础 + 业务 */
@@ -558,6 +582,10 @@ export declare const FIELD_TYPE: {
558
582
  * 检验数量
559
583
  */
560
584
  readonly INSPECTION_QTY: "inspection_qty";
585
+ /**
586
+ * 受检数量
587
+ */
588
+ readonly INSPECTION_MODULE_QTY: "inspection_module_qty";
561
589
  /**
562
590
  * 工序接收数量
563
591
  */
@@ -610,6 +638,18 @@ export declare const FIELD_TYPE: {
610
638
  * 物料日期对象
611
639
  */
612
640
  readonly DATE_OBJECT: "date_object";
641
+ /**
642
+ * 检验参数对象
643
+ */
644
+ readonly INSPECTION_PARAMETER_OBJECT: "inspection_parameter_object";
645
+ /**
646
+ * 工艺参数对象
647
+ */
648
+ readonly PROCESS_PARAMETER_OBJECT: "process_parameter_object";
649
+ /**
650
+ * 设备参数对象
651
+ */
652
+ readonly DEVICE_PARAMETER_OBJECT: "device_parameter_object";
613
653
  /**
614
654
  * 有效期
615
655
  */
@@ -662,6 +702,14 @@ export declare const FIELD_TYPE: {
662
702
  * 灭菌批(追溯)
663
703
  */
664
704
  readonly STERILIZATION_CONTAINER: "sterilization_container";
705
+ /**
706
+ * 检验批
707
+ */
708
+ readonly INSPECTION_CONTAINER: "inspection_container";
709
+ /**
710
+ * 灭菌日期
711
+ */
712
+ readonly STERILIZATION_DATE: "sterilization_date";
665
713
  /**
666
714
  * 文本
667
715
  */