@gct-paas/word 0.2.18 → 0.2.19-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.
- package/dist/assets/svgs/table/index.d.ts +1 -0
- package/dist/base/dropdown/src/dropdown-basic-select.vue.d.ts +6 -0
- package/dist/base/input/src/input-number.vue.d.ts +1 -0
- package/dist/base/message/src/Message.vue.d.ts +2 -0
- package/dist/base/message/src/message.d.ts +2 -0
- package/dist/base/modal/src/modal.type.d.ts +3 -1
- package/dist/base/select/src/basic-select.vue.d.ts +16 -4
- package/dist/base/utils/image-size-util.d.ts +12 -6
- package/dist/capabilities/model-field-runtime/types/field.d.ts +4 -0
- package/dist/core/command/base/FloatingFieldCommand.d.ts +9 -0
- package/dist/core/command/commands/DeleteCol.d.ts +1 -1
- package/dist/core/command/commands/DeleteRow.d.ts +1 -1
- package/dist/core/command/commands/InsertFloatingField.d.ts +9 -0
- package/dist/core/command/commands/InsertTable.d.ts +0 -1
- package/dist/core/command/commands/MoveFloatingField.d.ts +10 -0
- package/dist/core/command/commands/RemoveFloatingField.d.ts +12 -0
- package/dist/core/command/commands/SetTableBorder.d.ts +14 -0
- package/dist/core/command/types.d.ts +21 -0
- package/dist/core/data/DataManager.d.ts +6 -1
- package/dist/core/data/enrichers/inspection-module-qty-enricher.d.ts +19 -0
- package/dist/core/data/enrichers/udi-enricher.d.ts +23 -0
- package/dist/core/data/formula/business-functions.d.ts +10 -0
- package/dist/core/data/formula/formula-params-cache.d.ts +15 -0
- package/dist/core/data/types/runtime-config.d.ts +13 -0
- package/dist/core/event/handlers/IMEHandler.d.ts +1 -0
- package/dist/core/index.d.ts +2 -0
- package/dist/core/model/document/Wtbl/RowColumnOps.d.ts +11 -0
- package/dist/core/model/document/WtblPr.d.ts +2 -0
- package/dist/core/model/document/Wtc.d.ts +2 -0
- package/dist/core/model/document/wtcRegionRef.d.ts +1 -1
- package/dist/core/model/logic/subtable/repeating/RepeatingRegion.d.ts +4 -1
- package/dist/core/model/logic/subtable/shared/dataGroupSlotCount.d.ts +37 -1
- package/dist/core/model/overlays/Wlayout.d.ts +4 -0
- package/dist/core/model/types/table-border.d.ts +18 -0
- package/dist/core/runtime/DocumentRuntimeManager.d.ts +38 -0
- package/dist/core/table/border-selection.d.ts +9 -0
- package/dist/core/table/borders.d.ts +42 -0
- package/dist/core/view/Doc.d.ts +5 -0
- package/dist/core/view/TableCell.d.ts +3 -0
- package/dist/core/widget/types.d.ts +2 -2
- package/dist/domain/active/active-types.d.ts +3 -1
- package/dist/domain/document-business/business/product-release/profile.d.ts +2 -0
- package/dist/domain/document-business/business/product-release/service.d.ts +2 -0
- package/dist/domain/document-business/index.d.ts +2 -0
- package/dist/domain/document-business/registry.d.ts +2 -0
- package/dist/domain/document-business/runtime/field-query-runtime.d.ts +4 -0
- package/dist/domain/document-business/types.d.ts +24 -0
- package/dist/domain/document-rule/index.d.ts +3 -0
- package/dist/domain/document-rule/runtime/decision-rule-evaluator.d.ts +13 -0
- package/dist/domain/document-rule/runtime/document-rule-runtime.d.ts +19 -0
- package/dist/domain/document-rule/types.d.ts +50 -0
- package/dist/domain/field/field-props-schema-type.d.ts +1 -1
- package/dist/domain/field/field-type.d.ts +68 -2
- package/dist/domain/field/form-value.d.ts +6 -0
- package/dist/domain/field/query-filter.d.ts +15 -0
- package/dist/domain/field/seal/seal-binding.d.ts +19 -0
- package/dist/domain/field/seal/seal-display.d.ts +34 -0
- package/dist/domain/field/seal/seal-value.d.ts +39 -0
- package/dist/domain/table/business/device/maintenance/index.d.ts +1 -0
- package/dist/domain/table/business/device/maintenance/profile/field-keys.d.ts +9 -0
- package/dist/domain/table/business/device/maintenance/profile/fields.d.ts +2 -0
- package/dist/domain/table/business/device/maintenance/profile/index.d.ts +3 -0
- package/dist/domain/table/business/device/point-inspection/index.d.ts +1 -0
- package/dist/domain/table/business/device/point-inspection/profile/field-keys.d.ts +9 -0
- package/dist/domain/table/business/device/point-inspection/profile/fields.d.ts +2 -0
- package/dist/domain/table/business/device/point-inspection/profile/index.d.ts +3 -0
- package/dist/domain/table/business/device/runtime/device-signature-lock-engine.d.ts +13 -0
- package/dist/domain/table/business/device/signature-lock.d.ts +26 -0
- package/dist/domain/table/business/material/material-consume/profile/fields.d.ts +2 -0
- package/dist/domain/table/business/material/material-requisition/profile/field-keys.d.ts +1 -1
- package/dist/domain/table/business/material/material-substitution/actions/scan.d.ts +3 -0
- package/dist/domain/table/business/material/material-substitution/index.d.ts +3 -0
- package/dist/domain/table/business/material/material-substitution/profile/field-keys.d.ts +41 -0
- package/dist/domain/table/business/material/material-substitution/profile/fields.d.ts +2 -0
- package/dist/domain/table/business/material/material-substitution/profile/index.d.ts +4 -0
- package/dist/domain/table/business/material/material-substitution/runtime/register-handlers.d.ts +1 -0
- package/dist/domain/table/business/material/material-substitution/runtime/row-change-handlers.d.ts +4 -0
- package/dist/domain/table/business/material/types.d.ts +2 -1
- package/dist/domain/table/design/hooks/on-bounded-default-props.d.ts +3 -0
- package/dist/domain/table/design/ribbon-options.d.ts +2 -0
- package/dist/domain/table/design/sub-model-matcher.d.ts +2 -0
- package/dist/domain/table/design/validate-nested-table-insert.d.ts +3 -0
- package/dist/domain/table/index.d.ts +3 -0
- package/dist/domain/table/registry.d.ts +5 -2
- package/dist/domain/table/runtime/option-fill-updates.d.ts +6 -0
- package/dist/domain/table/runtime/table-runtime.d.ts +3 -0
- package/dist/domain/table/types.d.ts +13 -3
- package/dist/index.es.js +31674 -9436
- package/dist/runtime/canvas/__common__/context-menu/resolve-table-context.d.ts +10 -0
- package/dist/runtime/canvas/doc-layout.vue.d.ts +1 -2
- package/dist/runtime/canvas/node/seal-overlay.vue.d.ts +6 -0
- package/dist/runtime/canvas/print-capture.d.ts +12 -0
- package/dist/runtime/canvas/table/render/material-consume/bom-validator.d.ts +10 -2
- package/dist/runtime/canvas/table/render/material-consume/material-consume-group-merge.d.ts +1 -0
- package/dist/runtime/canvas/table/render/material-consume/material-consume-table-controller.d.ts +6 -0
- package/dist/runtime/canvas/table/shared/table-lines.vue.d.ts +1 -0
- package/dist/runtime/canvas/table/table-presentation.d.ts +16 -0
- package/dist/runtime/canvas/table/utils/paint-table-borders.d.ts +4 -0
- package/dist/runtime/designer/ribbon/hooks/useDhrEdition.d.ts +7 -0
- package/dist/runtime/designer/ribbon/svg/table-border-icon.vue.d.ts +6 -0
- package/dist/runtime/interface/computed.d.ts +1 -1
- package/dist/runtime/interface/sterilization-date.d.ts +9 -0
- package/dist/runtime/renderer/dialogs/document-rule-prompt/document-rule-prompt.vue.d.ts +5 -0
- package/dist/runtime/renderer/dialogs/document-rule-prompt/open-document-rule-prompt.d.ts +2 -0
- package/dist/runtime/renderer/dialogs/seal/open-seal-flow.d.ts +3 -0
- package/dist/runtime/renderer/dialogs/seal/seal-api.d.ts +17 -0
- package/dist/runtime/renderer/dialogs/seal/seal-confirm-dialog.vue.d.ts +7 -0
- package/dist/runtime/renderer/dialogs/seal/seal-runtime.d.ts +30 -0
- package/dist/runtime/renderer/dialogs/seal/types.d.ts +17 -0
- package/dist/runtime/renderer/dialogs/seal/use-seal-confirm.d.ts +27 -0
- package/dist/runtime/renderer/dialogs/signature/authentication/signature-authentication.vue.d.ts +27 -0
- package/dist/runtime/renderer/dialogs/signature/authentication/types.d.ts +30 -0
- package/dist/runtime/renderer/dialogs/signature/authentication/useSignatureAuthentication.d.ts +29 -0
- package/dist/runtime/renderer/dialogs/signature/signature-dialog.vue.d.ts +54 -1
- package/dist/runtime/renderer/dialogs/upload-image/base-upload-image.vue.d.ts +1 -0
- package/dist/runtime/renderer/dialogs/upload-image/upload-image-dialog.vue.d.ts +1 -0
- package/dist/runtime/renderer/dropdowns/components/tables/columns/business/material-consume-history.d.ts +17 -0
- package/dist/runtime/renderer/dropdowns/components/tables/composables/useMaterialSubstitutionSource.d.ts +7 -0
- package/dist/runtime/validation/layout.d.ts +20 -0
- package/dist/runtime/validation/state.d.ts +7 -3
- package/dist/runtime/validation/useFormValidator.d.ts +4 -0
- package/dist/sdk/doc-runtime/composables/useDocumentRulePrompt.d.ts +3 -0
- package/dist/sdk/doc-runtime/factories/document-initializer.d.ts +1 -1
- package/dist/sdk/doc-runtime/factories/useDocumentFactory.d.ts +5 -0
- package/dist/sdk/doc-runtime/queries/template-placed-fields.d.ts +7 -0
- package/dist/sdk/engine/index.d.ts +3 -1
- package/dist/sdk/setup.d.ts +6 -0
- package/dist/sdk/types/index.d.ts +8 -0
- package/dist/sdk/types/placed-form-field.d.ts +6 -0
- package/dist/sdk/vue/index.d.ts +6 -0
- package/dist/suites/edhr/component/gct-seal-render.vue.d.ts +7 -0
- package/dist/suites/edhr/manifest/field/_common_/basic.d.ts +3 -3
- package/dist/suites/edhr/manifest/field/business/inspection-module-qty-manifest.d.ts +2 -0
- package/dist/suites/edhr/manifest/field/business/product-release-qty-manifest.d.ts +2 -0
- package/dist/suites/edhr/manifest/field/business/udi-manifest.d.ts +2 -0
- package/dist/suites/edhr/manifest/field/logic/seal-manifest.d.ts +2 -0
- package/dist/suites/edhr/manifest/field/object-type/device-parameter-object-manifest.d.ts +2 -0
- package/dist/suites/edhr/manifest/field/object-type/inspection-parameter-object-manifest.d.ts +2 -0
- package/dist/suites/edhr/manifest/field/object-type/process-parameter-object-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/edhr/panel-schema/index.d.ts +1 -0
- package/dist/suites/edhr/panel-schema/material-substitution-table/material-substitution-table.basic.d.ts +1 -0
- package/dist/suites/edhr/panel-schema/rule/components/add-rule-button.vue.d.ts +8 -3
- package/dist/suites/edhr/panel-schema/rule/components/decision-rule-condition.vue.d.ts +19 -0
- package/dist/suites/edhr/panel-schema/rule/components/decision-rule-group.vue.d.ts +16 -0
- package/dist/suites/edhr/panel-schema/rule/modals/inspection-decision-modal.vue.d.ts +11 -0
- package/dist/suites/edhr/panel-schema/rule/modals/open-inspection-decision-modal.d.ts +8 -0
- package/dist/suites/edhr/panel-schema/rule/types.d.ts +3 -0
- package/dist/suites/edhr/panel-schema/rule/use-rules-config.d.ts +12 -0
- package/dist/suites/edhr/panel-schema/rule/utils/decision-rule.d.ts +34 -0
- package/dist/suites/shared/panel/modules/field-formula-module/field-formula-module.vue.d.ts +1 -0
- package/dist/suites/shared/panel/utils/default-value-visibility.d.ts +3 -0
- package/dist/utils/adapters/ServiceUtil.d.ts +9 -0
- package/dist/utils/pdf/collect-seal-draw-ops.d.ts +4 -0
- package/dist/word.css +1566 -1187
- package/package.json +4 -4
|
@@ -24,6 +24,7 @@ export declare const TABLE_BUSINESS_SVG: {
|
|
|
24
24
|
readonly 'material-consume': string;
|
|
25
25
|
readonly 'material-balance': string;
|
|
26
26
|
readonly 'material-requisition': string;
|
|
27
|
+
readonly 'material-substitution': string;
|
|
27
28
|
readonly 'check-table': string;
|
|
28
29
|
readonly 'pretreatment-list': string;
|
|
29
30
|
readonly 'entrust-steril-batch-list': string;
|
|
@@ -10,6 +10,8 @@ type __VLS_Props = {
|
|
|
10
10
|
modelValue?: string | number | Array<string | number>;
|
|
11
11
|
/** 是否多选 */
|
|
12
12
|
multiple?: boolean;
|
|
13
|
+
/** 左侧触发动作,右侧箭头展开菜单 */
|
|
14
|
+
split?: boolean;
|
|
13
15
|
/** 是否显示勾选 icon */
|
|
14
16
|
showCheck?: boolean;
|
|
15
17
|
/** 是否显示编辑 icon(全局开关,可被 option.editable 覆盖) */
|
|
@@ -27,6 +29,8 @@ type __VLS_Props = {
|
|
|
27
29
|
/** 选项列表最大高度 */
|
|
28
30
|
listMaxHeight?: number | string;
|
|
29
31
|
dropdownExtraProps?: Record<string, any>;
|
|
32
|
+
/** 下拉入口点击前校验;返回 false 时不展开菜单 */
|
|
33
|
+
beforeOpen?: () => boolean;
|
|
30
34
|
};
|
|
31
35
|
declare function __VLS_template(): {
|
|
32
36
|
attrs: Partial<{}>;
|
|
@@ -65,10 +69,12 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
65
69
|
edit: (...args: any[]) => void;
|
|
66
70
|
"update:modelValue": (...args: any[]) => void;
|
|
67
71
|
change: (...args: any[]) => void;
|
|
72
|
+
"left-btn-click": (...args: any[]) => void;
|
|
68
73
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
69
74
|
onEdit?: ((...args: any[]) => any) | undefined;
|
|
70
75
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
71
76
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
77
|
+
"onLeft-btn-click"?: ((...args: any[]) => any) | undefined;
|
|
72
78
|
}>, {
|
|
73
79
|
options: DropdownOption[] | DropdownOptionGroup[];
|
|
74
80
|
showCheck: boolean;
|
|
@@ -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 {
|
|
@@ -5,7 +5,7 @@ export interface IModalInstance {
|
|
|
5
5
|
setLoading: (v: boolean) => void;
|
|
6
6
|
}
|
|
7
7
|
export interface IModalContext extends IModalInstance {
|
|
8
|
-
setOnConfirm: (fn:
|
|
8
|
+
setOnConfirm: (fn: (ins: IModalInstance) => Promise<void> | void) => void;
|
|
9
9
|
}
|
|
10
10
|
export interface IModalOptions {
|
|
11
11
|
title?: string;
|
|
@@ -13,6 +13,8 @@ export interface IModalOptions {
|
|
|
13
13
|
bodyProps?: any;
|
|
14
14
|
width?: number;
|
|
15
15
|
height?: number;
|
|
16
|
+
/** 弹框最大高度,数字按 px,字符串可传 90vh 等 CSS 值。 */
|
|
17
|
+
maxHeight?: number | string;
|
|
16
18
|
zIndex?: number;
|
|
17
19
|
className?: string;
|
|
18
20
|
closable?: boolean;
|
|
@@ -44,6 +44,10 @@ type __VLS_Props = {
|
|
|
44
44
|
allowCreate?: boolean;
|
|
45
45
|
/** 下拉选项是否可搜索 */
|
|
46
46
|
searchable?: boolean;
|
|
47
|
+
/** 由外部请求搜索结果,跳过本地过滤 */
|
|
48
|
+
remote?: boolean;
|
|
49
|
+
/** 当前选中项的回显信息,可不在搜索结果中 */
|
|
50
|
+
selectedOption?: DropdownOption;
|
|
47
51
|
};
|
|
48
52
|
declare function __VLS_template(): {
|
|
49
53
|
attrs: Partial<{}>;
|
|
@@ -60,6 +64,7 @@ declare function __VLS_template(): {
|
|
|
60
64
|
'option-icon'?(_: {
|
|
61
65
|
option: DropdownOption;
|
|
62
66
|
}): any;
|
|
67
|
+
'bottom-bar'?(_: {}): any;
|
|
63
68
|
};
|
|
64
69
|
refs: {
|
|
65
70
|
dropdownRef: import('vue').CreateComponentPublicInstanceWithMixins<Record<string, any> & {}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, {}, {}, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
@@ -81,15 +86,21 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
|
81
86
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
82
87
|
getRef: import('vue').Ref<any, any>;
|
|
83
88
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
89
|
+
search: (keyword: string) => any;
|
|
84
90
|
edit: (option: DropdownOption) => any;
|
|
85
91
|
click: (evt: any) => any;
|
|
86
|
-
"update:modelValue": (val: string | number | (string | number)[]) => any;
|
|
87
|
-
change: (val: string | number | (string | number)[], item?: DropdownOption | undefined) => any;
|
|
92
|
+
"update:modelValue": (val: string | number | (string | number)[] | undefined) => any;
|
|
93
|
+
change: (val: string | number | (string | number)[] | undefined, item?: DropdownOption | undefined) => any;
|
|
94
|
+
"dropdown-show": () => any;
|
|
95
|
+
"reach-bottom": () => any;
|
|
88
96
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
97
|
+
onSearch?: ((keyword: string) => any) | undefined;
|
|
89
98
|
onEdit?: ((option: DropdownOption) => any) | undefined;
|
|
90
99
|
onClick?: ((evt: any) => any) | undefined;
|
|
91
|
-
"onUpdate:modelValue"?: ((val: string | number | (string | number)[]) => any) | undefined;
|
|
92
|
-
onChange?: ((val: string | number | (string | number)[], item?: DropdownOption | undefined) => any) | undefined;
|
|
100
|
+
"onUpdate:modelValue"?: ((val: string | number | (string | number)[] | undefined) => any) | undefined;
|
|
101
|
+
onChange?: ((val: string | number | (string | number)[] | undefined, item?: DropdownOption | undefined) => any) | undefined;
|
|
102
|
+
"onDropdown-show"?: (() => any) | undefined;
|
|
103
|
+
"onReach-bottom"?: (() => any) | undefined;
|
|
93
104
|
}>, {
|
|
94
105
|
disabled: boolean;
|
|
95
106
|
options: DropdownOption[];
|
|
@@ -99,6 +110,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
99
110
|
multipleClearable: boolean;
|
|
100
111
|
unremovableValues: Array<string | number>;
|
|
101
112
|
searchable: boolean;
|
|
113
|
+
remote: boolean;
|
|
102
114
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
103
115
|
dropdownRef: import('vue').CreateComponentPublicInstanceWithMixins<Record<string, any> & {}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, {}, {}, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
104
116
|
P: {};
|
|
@@ -18,10 +18,10 @@ export interface ImageCropRect {
|
|
|
18
18
|
width: number;
|
|
19
19
|
height: number;
|
|
20
20
|
}
|
|
21
|
-
/**
|
|
21
|
+
/** 无图签名的默认尺寸;已有字段沿用各自配置的宽高 */
|
|
22
22
|
export declare const FALLBACK_SIGN_DISPLAY_SIZE: {
|
|
23
|
-
readonly width:
|
|
24
|
-
readonly height:
|
|
23
|
+
readonly width: 120;
|
|
24
|
+
readonly height: 68;
|
|
25
25
|
};
|
|
26
26
|
/**
|
|
27
27
|
* 根据图片原始尺寸 + 配置,计算最终显示尺寸
|
|
@@ -39,11 +39,17 @@ export declare function computeContainLayout(natural: ImageSize, box: ImageSize)
|
|
|
39
39
|
* 在目标框内等比缩放(contain),不压缩、不拉伸
|
|
40
40
|
*/
|
|
41
41
|
export declare function computeContainDisplaySize(natural: ImageSize, box: ImageSize): ImageSize;
|
|
42
|
-
/**
|
|
43
|
-
export declare function
|
|
42
|
+
/** 横向“姓名 + 日期”兜底签名按文字内容决定宽度,高度沿用字段配置。 */
|
|
43
|
+
export declare function getFormSignFallbackSize(name: string, time?: number | string, height?: number): ImageSize;
|
|
44
|
+
/** 仅姓名兜底签名按最长一行文字宽度和左右各 8px 留白确定画布宽度。 */
|
|
45
|
+
export declare function getSimpleNameFallbackSize(name: string, height: number): ImageSize;
|
|
46
|
+
/** 兜底签名悬浮预览的逻辑尺寸,与默认尺寸生成的图片保持一致。 */
|
|
47
|
+
export declare function getFormSignPreviewSize(name: string, time?: number | string, fallbackSignType?: string, signatureImageDirection?: string): ImageSize;
|
|
48
|
+
/** 同步取无图签名缓存(布局重建时可避免先闪占位再异步补图)。 */
|
|
49
|
+
export declare function getCachedSignatureImage(name: string, width?: number, height?: number, time?: number | string, fallbackSignType?: string, signatureImageDirection?: string): HTMLImageElement | null;
|
|
44
50
|
/**
|
|
45
51
|
* 创建无图签名兜底图
|
|
46
52
|
* 默认仅绘制用户名;显式配置用户名 + 签署日期时绘制完整兜底签名
|
|
47
53
|
*/
|
|
48
|
-
export declare function createSignatureImageDataUrl(name: string,
|
|
54
|
+
export declare function createSignatureImageDataUrl(name: string, imageWidth?: number, imageHeight?: number, time?: number | string, fallbackSignType?: string, signatureImageDirection?: string): string;
|
|
49
55
|
export declare function createSignatureImage(name: string, width?: number, height?: number, time?: number | string, fallbackSignType?: string, signatureImageDirection?: string): Promise<HTMLImageElement>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CommandBase } from './CommandBase';
|
|
2
|
+
import { CommandType } from '../types';
|
|
3
|
+
/** Existing commands snapshot only the body; floating field commands also own their overlays. */
|
|
4
|
+
export declare abstract class FloatingFieldCommand<T extends CommandType> extends CommandBase<T> {
|
|
5
|
+
private overlays?;
|
|
6
|
+
private overlayIdentities?;
|
|
7
|
+
protected saveSnapshot(): import('../../model/types').RawElement | undefined;
|
|
8
|
+
protected restoreSnapshot(): void;
|
|
9
|
+
}
|
|
@@ -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 DeleteCol extends CommandBase<'deleteCol'> {
|
|
10
10
|
constructor(doc: Doc, payload?: CommandPayloadMap['deleteCol']);
|
|
@@ -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,9 @@
|
|
|
1
|
+
import { FloatingFieldCommand } from '../base/FloatingFieldCommand';
|
|
2
|
+
import { WrField } from '../../model/document';
|
|
3
|
+
export declare class InsertFloatingField extends FloatingFieldCommand<'insertFloatingField'> {
|
|
4
|
+
protected execute(): Promise<{
|
|
5
|
+
wr: WrField;
|
|
6
|
+
pos: number;
|
|
7
|
+
side: "before";
|
|
8
|
+
} | null>;
|
|
9
|
+
}
|
|
@@ -5,7 +5,6 @@ import { Wtbl } from '../../model/document';
|
|
|
5
5
|
export declare class InsertTable extends CommandBase<'insertTable'> {
|
|
6
6
|
constructor(doc: Doc, payload?: CommandPayloadMap['insertTable']);
|
|
7
7
|
protected createTable(width: number, rowCount?: number, colCount?: number): Wtbl;
|
|
8
|
-
private resolveBlockedTableLabel;
|
|
9
8
|
protected execute(): Promise<PostCommandContext>;
|
|
10
9
|
private insertAtCursor;
|
|
11
10
|
private insertIntoBody;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FloatingFieldCommand } from '../base/FloatingFieldCommand';
|
|
2
|
+
export declare class MoveFloatingField extends FloatingFieldCommand<'moveFloatingField'> {
|
|
3
|
+
private fieldId?;
|
|
4
|
+
protected execute(): Promise<{
|
|
5
|
+
wr: import('../../model/document').WrField;
|
|
6
|
+
pos: number;
|
|
7
|
+
side: "after";
|
|
8
|
+
} | null>;
|
|
9
|
+
protected afterUndo(): import('../types').CursorMeta | null;
|
|
10
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FloatingFieldCommand } from '../base/FloatingFieldCommand';
|
|
2
|
+
export declare class RemoveFloatingField extends FloatingFieldCommand<'removeFloatingField'> {
|
|
3
|
+
private fieldId?;
|
|
4
|
+
private bindingSnapshot;
|
|
5
|
+
protected execute(): Promise<{
|
|
6
|
+
wp: import('../../model/document').Wp;
|
|
7
|
+
pos: number;
|
|
8
|
+
side: "before";
|
|
9
|
+
} | null>;
|
|
10
|
+
protected restoreSnapshot(): void;
|
|
11
|
+
protected afterUndo(): import('../types').CursorMeta | null;
|
|
12
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CommandBase, PostCommandContext } from '../base/CommandBase';
|
|
2
|
+
import { CommandPayloadMap } from '../types';
|
|
3
|
+
import { Doc } from '../../view/Doc';
|
|
4
|
+
export declare class SetTableBorder extends CommandBase<'setTableBorder'> {
|
|
5
|
+
private target?;
|
|
6
|
+
private previousBorders?;
|
|
7
|
+
private savedCursors;
|
|
8
|
+
constructor(doc: Doc, payload: CommandPayloadMap['setTableBorder']);
|
|
9
|
+
private saveCursor;
|
|
10
|
+
private restoreContext;
|
|
11
|
+
protected execute(): Promise<PostCommandContext>;
|
|
12
|
+
protected restoreSnapshot(): void;
|
|
13
|
+
protected afterUndo(): import('../types').CommandResult;
|
|
14
|
+
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { TableBorderPreset } from '../model/types/table-border';
|
|
1
2
|
import { VOrientationType } from '../../domain/constants/enum';
|
|
3
|
+
import { FIELD_TYPE } from '../../domain/field/field-type';
|
|
2
4
|
import { Doc } from '../view/Doc';
|
|
3
5
|
import { WidgetMeta } from '../widget/widget-meta';
|
|
4
6
|
import { WordHighlight } from '../model/types';
|
|
@@ -39,6 +41,9 @@ export declare const CommandType: {
|
|
|
39
41
|
readonly insertField: "insertField";
|
|
40
42
|
readonly insertPaperWidget: "insertPaperWidget";
|
|
41
43
|
readonly insertFloatingOverlay: "insertFloatingOverlay";
|
|
44
|
+
readonly insertFloatingField: "insertFloatingField";
|
|
45
|
+
readonly moveFloatingField: "moveFloatingField";
|
|
46
|
+
readonly removeFloatingField: "removeFloatingField";
|
|
42
47
|
readonly delete: "delete";
|
|
43
48
|
readonly backspace: "backspace";
|
|
44
49
|
readonly enter: "enter";
|
|
@@ -69,6 +74,7 @@ export declare const CommandType: {
|
|
|
69
74
|
readonly deleteRow: "deleteRow";
|
|
70
75
|
readonly deleteCol: "deleteCol";
|
|
71
76
|
readonly deleteTable: "deleteTable";
|
|
77
|
+
readonly setTableBorder: "setTableBorder";
|
|
72
78
|
readonly mergeCells: "mergeCells";
|
|
73
79
|
readonly unmergeCells: "unmergeCells";
|
|
74
80
|
readonly snapshot: "snapshot";
|
|
@@ -88,6 +94,7 @@ export type CommandPayloadMap = {
|
|
|
88
94
|
};
|
|
89
95
|
commitValidateNumber: CommandPayload & {
|
|
90
96
|
valuePath?: string;
|
|
97
|
+
fieldType?: FIELD_TYPE;
|
|
91
98
|
type?: 'fw:number' | 'fw:double';
|
|
92
99
|
digits?: number;
|
|
93
100
|
roundingMode?: 1 | 4 | 6;
|
|
@@ -111,6 +118,17 @@ export type CommandPayloadMap = {
|
|
|
111
118
|
hit: PointerHitResult;
|
|
112
119
|
pageWidgetMeta: WidgetMeta;
|
|
113
120
|
};
|
|
121
|
+
insertFloatingField: CommandPayload & {
|
|
122
|
+
hit: PointerHitResult;
|
|
123
|
+
widgetMeta: WidgetMeta;
|
|
124
|
+
};
|
|
125
|
+
moveFloatingField: CommandPayload & {
|
|
126
|
+
id: string;
|
|
127
|
+
position: import('../../domain/field/seal/seal-value').SealPosition;
|
|
128
|
+
};
|
|
129
|
+
removeFloatingField: CommandPayload & {
|
|
130
|
+
id: string;
|
|
131
|
+
};
|
|
114
132
|
delete: CommandPayload & Record<string, never>;
|
|
115
133
|
backspace: CommandPayload & Record<string, never>;
|
|
116
134
|
enter: CommandPayload & Record<string, never>;
|
|
@@ -231,6 +249,9 @@ export type CommandPayloadMap = {
|
|
|
231
249
|
deleteTable: CommandPayload & {
|
|
232
250
|
tableId: string;
|
|
233
251
|
};
|
|
252
|
+
setTableBorder: CommandPayload & {
|
|
253
|
+
preset: TableBorderPreset;
|
|
254
|
+
};
|
|
234
255
|
mergeCells: CommandPayload & Record<string, never>;
|
|
235
256
|
unmergeCells: CommandPayload & Record<string, never>;
|
|
236
257
|
snapshot: CommandPayload & Record<string, never>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Doc } from '../view/Doc';
|
|
2
|
-
import { EmitSource, Data, PartialData, FieldRuntimeSpecificConfig, PostChangePipelineContext } from './types';
|
|
2
|
+
import { EmitSource, Data, PartialData, FieldRuntimeConstraint, FieldRuntimeSpecificConfig, PostChangePipelineContext } from './types';
|
|
3
3
|
type JsonPath = string;
|
|
4
4
|
/** 原始写入信息;向父路径通知时保留,不替换为 parent。 */
|
|
5
5
|
type SubscriptionChange = {
|
|
@@ -84,6 +84,11 @@ export declare class DataManager {
|
|
|
84
84
|
setRuntimeSpecificConfig(entries: any): void;
|
|
85
85
|
getFieldRuntimeSpecificConfig(path: JsonPath): FieldRuntimeSpecificConfig | undefined;
|
|
86
86
|
setFieldRuntimeSpecificConfig(path: JsonPath, partial: FieldRuntimeSpecificConfig): void;
|
|
87
|
+
/**
|
|
88
|
+
* 原子替换某一功能来源施加的全部字段约束。
|
|
89
|
+
* 未出现在 constraintsByPath 中的旧约束会被清理,其他来源和普通运行时配置不受影响。
|
|
90
|
+
*/
|
|
91
|
+
replaceFieldRuntimeConstraints(source: string, constraintsByPath: ReadonlyMap<JsonPath, FieldRuntimeConstraint>): void;
|
|
87
92
|
/** 子表插行后:index 及之后的行配置下标 +1 */
|
|
88
93
|
private shiftFieldRuntimeConfigAfterRowInsert;
|
|
89
94
|
/** 子表删行后:移除该行配置,其后行配置下标 -1 */
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Doc } from '../../view/Doc';
|
|
2
|
+
import { DataEnricherRegistration } from '../types';
|
|
3
|
+
import { FIELD_TYPE } from '../../../domain/field/field-type';
|
|
4
|
+
export interface InspectionModuleQtyWidgetTarget {
|
|
5
|
+
valuePath: string;
|
|
6
|
+
}
|
|
7
|
+
type InspectionModuleQtyWidgetInstance = {
|
|
8
|
+
widgetMeta?: {
|
|
9
|
+
field?: {
|
|
10
|
+
fieldType?: FIELD_TYPE;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
valuePath?: string;
|
|
14
|
+
};
|
|
15
|
+
/** 仅收集检验数量 inspection_module_qty;inspection_qty 为送检数量。 */
|
|
16
|
+
export declare function tryCollectInspectionModuleQtyTarget(instance: InspectionModuleQtyWidgetInstance): InspectionModuleQtyWidgetTarget | null;
|
|
17
|
+
/** 检验数量:用 detail.txnInstId 查询检验单,仅补空值,手工修改后不再回填。 */
|
|
18
|
+
export declare function createInspectionModuleQtyEnricher(doc: Doc, targets: InspectionModuleQtyWidgetTarget[]): DataEnricherRegistration;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Doc } from '../../view/Doc';
|
|
2
|
+
import { DataEnricherRegistration } from '../types';
|
|
3
|
+
import { FIELD_TYPE } from '../../../domain/field/field-type';
|
|
4
|
+
export interface UdiWidgetTarget {
|
|
5
|
+
valuePath: string;
|
|
6
|
+
}
|
|
7
|
+
type UdiWidgetInstance = {
|
|
8
|
+
widgetMeta?: {
|
|
9
|
+
field?: {
|
|
10
|
+
fieldType?: FIELD_TYPE;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
valuePath?: string;
|
|
14
|
+
};
|
|
15
|
+
/** paramsConfig 中 containerId 优先;没有时使用 snId。 */
|
|
16
|
+
export declare function resolveUdiQuery(doc: Doc): Record<string, string> | undefined;
|
|
17
|
+
/** listAll 返回第一条 UDI;兼容接口返回 udi / name_ 的历史形态。 */
|
|
18
|
+
export declare function parseUdi(res: unknown): string | undefined;
|
|
19
|
+
/** 从单个 widget 实例解析 UDI enrich 目标。 */
|
|
20
|
+
export declare function tryCollectUdiTarget(instance: UdiWidgetInstance): UdiWidgetTarget | null;
|
|
21
|
+
/** UDI:按 paramsConfig.containerId / snId 查询并回填尚未赋值的字段。 */
|
|
22
|
+
export declare function createUdiEnricher(doc: Doc, targets: UdiWidgetTarget[]): DataEnricherRegistration;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { setFormulaParamsConfig } from './formula-params-cache';
|
|
2
|
+
export type FormulaRegister = (name: string, executor: (...args: any[]) => any) => void;
|
|
3
|
+
interface DeviceParamConfig {
|
|
4
|
+
customFieldKey: string;
|
|
5
|
+
lowerLimit?: number | string | null;
|
|
6
|
+
upperLimit?: number | string | null;
|
|
7
|
+
}
|
|
8
|
+
type FetchDeviceParamLimits = (id: any) => Promise<DeviceParamConfig[] | null>;
|
|
9
|
+
export declare function configureDeviceParamCheck(fetcher: FetchDeviceParamLimits): void;
|
|
10
|
+
export declare function registerFormulaFuncs(register?: FormulaRegister): void;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
interface FormulaParam {
|
|
2
|
+
customFieldKey: string;
|
|
3
|
+
lowerLimit?: number | string | null;
|
|
4
|
+
upperLimit?: number | string | null;
|
|
5
|
+
}
|
|
6
|
+
export declare const currentParamsConfig: {
|
|
7
|
+
readonly routingParamList: FormulaParam[];
|
|
8
|
+
readonly inspectionParamList: FormulaParam[];
|
|
9
|
+
readonly deviceParamList: FormulaParam[];
|
|
10
|
+
};
|
|
11
|
+
/** Excel、Word 共用参数;空配置也要覆盖旧值。 */
|
|
12
|
+
export declare function setFormulaParamsConfig(paramsConfig?: Record<string, any> | null): void;
|
|
13
|
+
/** 随应用绑定一次失效通知,不包装或替换宿主计算函数。 */
|
|
14
|
+
export declare function bindFormulaCacheInvalidation(value: unknown): void;
|
|
15
|
+
export {};
|
|
@@ -1,10 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 独立运行时功能施加的字段约束。
|
|
3
|
+
*
|
|
4
|
+
* 多个来源互不覆盖,最终状态按“任一来源为 true”聚合。
|
|
5
|
+
*/
|
|
6
|
+
export type FieldRuntimeConstraint = {
|
|
7
|
+
readonly?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
};
|
|
1
10
|
/** 组件依赖按 runtime valuePath 写入的运行时配置(子表各行独立) */
|
|
2
11
|
export type FieldRuntimeSpecificConfig = {
|
|
3
12
|
newReadonly?: boolean;
|
|
4
13
|
newRequired?: boolean;
|
|
5
14
|
newDisabled?: boolean;
|
|
15
|
+
/** 按功能来源隔离的强制约束,避免解除某项约束时覆盖其他运行时规则 */
|
|
16
|
+
runtimeConstraints?: Record<string, FieldRuntimeConstraint>;
|
|
6
17
|
/** assignment 策略「始终覆盖」时按行不可输入 */
|
|
7
18
|
cannotInput?: boolean;
|
|
8
19
|
/** 实例数字段:用户手填后不再被 API 回填覆盖 */
|
|
9
20
|
ofInstNumUserEdited?: boolean;
|
|
21
|
+
/** 检验数量字段:用户手填(含清空)后不再被 API 回填覆盖 */
|
|
22
|
+
inspectionModuleQtyUserEdited?: boolean;
|
|
10
23
|
};
|
package/dist/core/index.d.ts
CHANGED
|
@@ -9,6 +9,8 @@ export { validateTextWidgetMarker } from './layout/logic/LayoutBuilder';
|
|
|
9
9
|
export { CommandType } from './command/types';
|
|
10
10
|
export { ModelConverter } from './model';
|
|
11
11
|
export { DocumentEventBridge } from './event/DocumentEventBridge';
|
|
12
|
+
export { DocumentRuntimeManager } from './runtime/DocumentRuntimeManager';
|
|
13
|
+
export type { DocumentRuntimeExtension, DocumentValidationContext, DocumentValidationDecision, } from './runtime/DocumentRuntimeManager';
|
|
12
14
|
export { DocModeTypeConst, PaperSizeConst, BuiltinComponentTypeConst } from './constants';
|
|
13
15
|
export { default as CursorOverlay } from './cursor/render/cursor-overlay.vue';
|
|
14
16
|
export { default as HiddenInput } from './cursor/render/hidden-input.vue';
|
|
@@ -2,6 +2,17 @@ import { Wtbl } from '../Wtbl';
|
|
|
2
2
|
/**
|
|
3
3
|
* 表格行列操作功能类
|
|
4
4
|
* 提供插入和删除行列的功能
|
|
5
|
+
*
|
|
6
|
+
* 边框规则说明:
|
|
7
|
+
* 1. 边框操作作用于当前单元格或选中区域。“外侧边框”只设置外围,内部保持原设置;
|
|
8
|
+
* 如需只保留外框,应先设置“无边框”,再设置“外侧边框”。
|
|
9
|
+
* 2. 相邻单元格共用一条边,设置或清除时会同步两侧。例如第二行的下边框,
|
|
10
|
+
* 同时也是第三行的上边框,画面上只显示一条线。
|
|
11
|
+
* 3. 当前删除行或列时,保留剩余单元格已有的边框设置。因此删除第二行后,
|
|
12
|
+
* 原第三行的上边框仍会保留并上移,交界处可能继续显示横线。
|
|
13
|
+
* 4. 新增行或列沿用邻近单元格的边框设置;合并单元格时隐藏内部边框,保留设置供拆分后恢复。
|
|
14
|
+
* 5. 编辑时的浅灰虚线用于识别单元格范围,预览、打印和 PDF 输出时不显示。
|
|
15
|
+
* 如需删除行后同步清除交界线,应统一首行、末行及连续多行删除等场景的产品规则和验收预期。
|
|
5
16
|
*/
|
|
6
17
|
export declare class WtblRowColumnOps {
|
|
7
18
|
/** 外表删除前,显式移除受影响单元格中的嵌套表,避免孤儿节点残留 */
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { RawElement } from '../types/raw';
|
|
2
|
+
import { TableBorders } from '../types/table-border';
|
|
2
3
|
import { ModelNode, ModelNodeOptions } from '../base';
|
|
3
4
|
/**
|
|
4
5
|
* 段落属性节点 - 保存 w:pPr 及其子元素
|
|
@@ -10,6 +11,7 @@ export declare class WtblPr extends ModelNode {
|
|
|
10
11
|
name: 'w:tblPr';
|
|
11
12
|
/** 节点类型 */
|
|
12
13
|
type: "element";
|
|
14
|
+
borders: TableBorders;
|
|
13
15
|
elements: RawElement[];
|
|
14
16
|
constructor(options: ModelNodeOptions & {
|
|
15
17
|
elements?: RawElement[];
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CellBorders } from '../types/table-border';
|
|
1
2
|
import { RawElement } from '../types/raw';
|
|
2
3
|
import { Wtr } from './Wtr';
|
|
3
4
|
import { Wp } from './Wp';
|
|
@@ -15,6 +16,7 @@ export declare class Wtc extends ModelGroup {
|
|
|
15
16
|
type: "element";
|
|
16
17
|
parent?: Wtr;
|
|
17
18
|
tcPrRaw?: RawElement;
|
|
19
|
+
borders: CellBorders;
|
|
18
20
|
colspan?: number;
|
|
19
21
|
rowspan?: number;
|
|
20
22
|
backgroundColor?: string;
|
|
@@ -29,7 +29,7 @@ export declare const SUB_TABLE_REGION_TYPES: readonly ["repeating", "bounded", "
|
|
|
29
29
|
* 子表 layout 类型
|
|
30
30
|
* Ribbon 面板、子表主题色均使用此类型;主题配置见 @/domain/table 各 Profile.theme
|
|
31
31
|
*/
|
|
32
|
-
export type SubTableLayoutType = 'dynamic-table' | 'fixed-table' | '2d-table' | 'check-table' | 'material-consume-table' | 'material-balance-table' | 'material-requisition-table' | 'warehouse-in-table' | 'warehouse-inbound-table' | 'warehouse-out-table' | 'warehouse-outbound-table' | 'warehouse-in-out-table' | 'warehouse-inventory-table' | 'part-stocktake-table' | 'device-part-consume-table' | 'warehouse-allocate-table' | 'pretreatment-list-table' | 'entrust-steril-batch-list-table';
|
|
32
|
+
export type SubTableLayoutType = 'dynamic-table' | 'fixed-table' | '2d-table' | 'check-table' | 'material-consume-table' | 'material-balance-table' | 'material-requisition-table' | 'material-substitution-table' | 'warehouse-in-table' | 'warehouse-inbound-table' | 'warehouse-out-table' | 'warehouse-outbound-table' | 'warehouse-in-out-table' | 'warehouse-inventory-table' | 'part-stocktake-table' | 'device-part-consume-table' | 'warehouse-allocate-table' | 'pretreatment-list-table' | 'entrust-steril-batch-list-table';
|
|
33
33
|
/** 表头 layout 类型 */
|
|
34
34
|
export type TableHeaderLayoutType = 'table-header';
|
|
35
35
|
/** 所有子表表格 layout 类型 */
|
|
@@ -63,11 +63,14 @@ export type MaterialBalanceTableProps = RepeatingWidgetPropsBase & {
|
|
|
63
63
|
export type MaterialRequisitionTableProps = RepeatingWidgetPropsBase & {
|
|
64
64
|
layoutType: 'material-requisition-table';
|
|
65
65
|
};
|
|
66
|
+
export type MaterialSubstitutionTableProps = RepeatingWidgetPropsBase & {
|
|
67
|
+
layoutType: 'material-substitution-table';
|
|
68
|
+
};
|
|
66
69
|
export type WarehouseAllocateTableProps = RepeatingWidgetPropsBase & {
|
|
67
70
|
layoutType: 'warehouse-allocate-table';
|
|
68
71
|
barcode_parsing_rules_id_?: string;
|
|
69
72
|
};
|
|
70
|
-
export type RepeatingWidgetPropsMeta = DynamicTableProps | WarehouseInTableProps | WarehouseInboundTableProps | WarehouseOutTableProps | WarehouseOutboundTableProps | WarehouseInOutTableProps | WarehouseInventoryTableProps | PartStocktakeTableProps | DevicePartConsumeTableProps | WarehouseAllocateTableProps | MaterialBalanceTableProps | MaterialRequisitionTableProps | EntrustSterilBatchListTableProps | PretreatmentListTableProps;
|
|
73
|
+
export type RepeatingWidgetPropsMeta = DynamicTableProps | WarehouseInTableProps | WarehouseInboundTableProps | WarehouseOutTableProps | WarehouseOutboundTableProps | WarehouseInOutTableProps | WarehouseInventoryTableProps | PartStocktakeTableProps | DevicePartConsumeTableProps | WarehouseAllocateTableProps | MaterialBalanceTableProps | MaterialRequisitionTableProps | MaterialSubstitutionTableProps | EntrustSterilBatchListTableProps | PretreatmentListTableProps;
|
|
71
74
|
export type RepeatingWidgetMeta = {
|
|
72
75
|
props: RepeatingWidgetPropsMeta;
|
|
73
76
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Wtbl } from '../../../document/Wtbl';
|
|
1
2
|
/** 表格矩形范围(含起止行列,均为闭区间) */
|
|
2
3
|
export type TableRange = {
|
|
3
4
|
start: {
|
|
@@ -9,10 +10,45 @@ export type TableRange = {
|
|
|
9
10
|
col: number;
|
|
10
11
|
};
|
|
11
12
|
};
|
|
13
|
+
type AxisRange = {
|
|
14
|
+
start: number;
|
|
15
|
+
end: number;
|
|
16
|
+
};
|
|
17
|
+
export type MergeAwareDataGroupSlot = {
|
|
18
|
+
range: TableRange;
|
|
19
|
+
/** 目标可见行带与模板行带的对应关系。 */
|
|
20
|
+
rowBands: Array<{
|
|
21
|
+
source: AxisRange;
|
|
22
|
+
target: AxisRange;
|
|
23
|
+
}>;
|
|
24
|
+
/** 目标可见列带与模板列带的对应关系。 */
|
|
25
|
+
colBands: Array<{
|
|
26
|
+
source: AxisRange;
|
|
27
|
+
target: AxisRange;
|
|
28
|
+
}>;
|
|
29
|
+
};
|
|
30
|
+
export type MergeAwareDataGroupCellMapping = {
|
|
31
|
+
row: number;
|
|
32
|
+
col: number;
|
|
33
|
+
sourceRow: number;
|
|
34
|
+
sourceCol: number;
|
|
35
|
+
dataIndex: number;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* 按可见合并单元格枚举铺砖槽位。
|
|
39
|
+
*
|
|
40
|
+
* Word 底层的 gridCol/gridRow 数量不一定等于用户看到的单元格数量。这里先把父区域
|
|
41
|
+
* 转换为逻辑行列带,再按原有的先横后纵/先纵后横顺序铺砖。返回 undefined 表示合并
|
|
42
|
+
* 结构不规则,应回退到传统的底层网格矩形算法。
|
|
43
|
+
*/
|
|
44
|
+
export declare function getMergeAwareDataGroupSlots(table: Wtbl, range: TableRange, itemRange: TableRange, fillDirection?: 'x' | 'y'): MergeAwareDataGroupSlot[] | undefined;
|
|
45
|
+
/** 将可见槽位展开为每个底层网格单元格的数据索引和模板坐标。 */
|
|
46
|
+
export declare function getMergeAwareDataGroupCellMappings(slots: MergeAwareDataGroupSlot[]): MergeAwareDataGroupCellMapping[];
|
|
12
47
|
/**
|
|
13
48
|
* 计算数据分组 / 动态关联在版面中可铺砖的数据槽位数(含模板块 dataIndex 0)。
|
|
14
49
|
* 逻辑与 TableExpander.computeDataIndexMap 中铺砖循环一致。
|
|
15
50
|
*/
|
|
16
|
-
export declare function countDataGroupSlots(range: TableRange, itemRange: TableRange, fillDirection?: 'x' | 'y'): number;
|
|
51
|
+
export declare function countDataGroupSlots(range: TableRange, itemRange: TableRange, fillDirection?: 'x' | 'y', table?: Wtbl): number;
|
|
17
52
|
/** 检验表 / 二维表动态关联:itemRegion 行范围可能超出子表主体 */
|
|
18
53
|
export declare function expandDataGroupRowRange(parent: TableRange, itemRange: TableRange): TableRange;
|
|
54
|
+
export {};
|
|
@@ -9,6 +9,7 @@ export type WlayoutXmlJson = RawElement & {
|
|
|
9
9
|
width?: number;
|
|
10
10
|
height?: number;
|
|
11
11
|
zIndex?: number;
|
|
12
|
+
pageIndex?: number;
|
|
12
13
|
};
|
|
13
14
|
};
|
|
14
15
|
export interface WlayoutOptions extends ModelGroupOptions<ModelNode> {
|
|
@@ -18,6 +19,7 @@ export interface WlayoutOptions extends ModelGroupOptions<ModelNode> {
|
|
|
18
19
|
width?: number;
|
|
19
20
|
height?: number;
|
|
20
21
|
zIndex?: number;
|
|
22
|
+
pageIndex?: number;
|
|
21
23
|
}
|
|
22
24
|
/**
|
|
23
25
|
* 布局容器
|
|
@@ -34,6 +36,7 @@ export declare class Wlayout extends ModelGroup<ModelNode> {
|
|
|
34
36
|
width?: number;
|
|
35
37
|
height?: number;
|
|
36
38
|
zIndex: number;
|
|
39
|
+
pageIndex?: number;
|
|
37
40
|
parent?: ModelNode;
|
|
38
41
|
constructor(options: WlayoutOptions);
|
|
39
42
|
/**
|
|
@@ -66,5 +69,6 @@ export declare class Wlayout extends ModelGroup<ModelNode> {
|
|
|
66
69
|
width: number;
|
|
67
70
|
height: number;
|
|
68
71
|
zIndex: number;
|
|
72
|
+
pageIndex?: number;
|
|
69
73
|
}): Wlayout;
|
|
70
74
|
}
|