@gct-paas/word 0.2.5-beta.5 → 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.
- package/dist/base/select/src/basic-select.vue.d.ts +18 -4
- package/dist/base/utils/image-size-util.d.ts +8 -3
- package/dist/core/command/commands/DeleteRow.d.ts +1 -1
- package/dist/core/layout/handlers/fields/signature-decoration-layout.d.ts +14 -0
- package/dist/core/view/runs/ImageRun.d.ts +9 -0
- package/dist/domain/field/field-type.d.ts +24 -0
- package/dist/index.es.js +2430 -1624
- package/dist/runtime/renderer/dialogs/device-scan/submit-device-scan.d.ts +3 -0
- package/dist/runtime/renderer/dropdowns/components/tables/composables/useSearchEnter.d.ts +18 -0
- package/dist/runtime/renderer/dropdowns/components/tables/composables/useSelectTable.d.ts +2 -0
- package/dist/runtime/renderer/dropdowns/components/tables/composables/useTableDropdown.d.ts +2 -1
- package/dist/runtime/renderer/dropdowns/components/tables/table-option-dropdown.vue.d.ts +2 -2
- package/dist/runtime/renderer/dropdowns/composables/useDropdownSearchFocus.d.ts +9 -0
- package/dist/suites/edhr/manifest/field/business/inspection-module-qty-manifest.d.ts +2 -0
- package/dist/suites/edhr/manifest/field/trace/inspection-container-manifest.d.ts +2 -0
- package/dist/suites/edhr/manifest/field/trace/sterilization-date-manifest.d.ts +2 -0
- package/dist/suites/shared/panel/config/editor/display-fields-editor/display-fields.util.d.ts +4 -4
- package/dist/suites/shared/panel/utils/default-value-visibility.d.ts +3 -0
- package/dist/word.css +213 -176
- package/package.json +1 -1
|
@@ -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,
|
|
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,
|
|
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,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
|
*/
|
|
@@ -450,6 +454,14 @@ export declare const BUSINESS_FIELD_TYPE: {
|
|
|
450
454
|
* 灭菌批(追溯)
|
|
451
455
|
*/
|
|
452
456
|
readonly STERILIZATION_CONTAINER: "sterilization_container";
|
|
457
|
+
/**
|
|
458
|
+
* 检验批
|
|
459
|
+
*/
|
|
460
|
+
readonly INSPECTION_CONTAINER: "inspection_container";
|
|
461
|
+
/**
|
|
462
|
+
* 灭菌日期
|
|
463
|
+
*/
|
|
464
|
+
readonly STERILIZATION_DATE: "sterilization_date";
|
|
453
465
|
};
|
|
454
466
|
export type BusinessFieldType = (typeof BUSINESS_FIELD_TYPE)[keyof typeof BUSINESS_FIELD_TYPE];
|
|
455
467
|
/** 字段类型 = 基础 + 业务 */
|
|
@@ -570,6 +582,10 @@ export declare const FIELD_TYPE: {
|
|
|
570
582
|
* 检验数量
|
|
571
583
|
*/
|
|
572
584
|
readonly INSPECTION_QTY: "inspection_qty";
|
|
585
|
+
/**
|
|
586
|
+
* 受检数量
|
|
587
|
+
*/
|
|
588
|
+
readonly INSPECTION_MODULE_QTY: "inspection_module_qty";
|
|
573
589
|
/**
|
|
574
590
|
* 工序接收数量
|
|
575
591
|
*/
|
|
@@ -686,6 +702,14 @@ export declare const FIELD_TYPE: {
|
|
|
686
702
|
* 灭菌批(追溯)
|
|
687
703
|
*/
|
|
688
704
|
readonly STERILIZATION_CONTAINER: "sterilization_container";
|
|
705
|
+
/**
|
|
706
|
+
* 检验批
|
|
707
|
+
*/
|
|
708
|
+
readonly INSPECTION_CONTAINER: "inspection_container";
|
|
709
|
+
/**
|
|
710
|
+
* 灭菌日期
|
|
711
|
+
*/
|
|
712
|
+
readonly STERILIZATION_DATE: "sterilization_date";
|
|
689
713
|
/**
|
|
690
714
|
* 文本
|
|
691
715
|
*/
|