@gct-paas/word 0.2.18-beta.0 → 0.2.18
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 +0 -1
- package/dist/base/dropdown/src/dropdown-basic-select.vue.d.ts +0 -6
- package/dist/base/input/src/input-number.vue.d.ts +0 -1
- package/dist/base/message/src/Message.vue.d.ts +0 -2
- package/dist/base/message/src/message.d.ts +0 -2
- package/dist/base/modal/src/modal.type.d.ts +1 -3
- package/dist/base/select/src/basic-select.vue.d.ts +4 -16
- package/dist/base/utils/image-size-util.d.ts +6 -12
- package/dist/capabilities/model-field-runtime/types/field.d.ts +0 -4
- 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/InsertTable.d.ts +1 -0
- package/dist/core/command/types.d.ts +0 -21
- package/dist/core/data/DataManager.d.ts +32 -11
- package/dist/core/data/initialization.d.ts +26 -0
- package/dist/core/data/types/runtime-config.d.ts +0 -13
- package/dist/core/event/handlers/IMEHandler.d.ts +0 -1
- package/dist/core/index.d.ts +0 -2
- package/dist/core/model/document/WtblPr.d.ts +0 -2
- package/dist/core/model/document/Wtc.d.ts +0 -2
- package/dist/core/model/document/wtcRegionRef.d.ts +1 -1
- package/dist/core/model/logic/subtable/repeating/RepeatingRegion.d.ts +1 -4
- package/dist/core/model/logic/subtable/shared/dataGroupSlotCount.d.ts +1 -37
- package/dist/core/model/overlays/Wlayout.d.ts +0 -4
- package/dist/core/view/Doc.d.ts +0 -5
- package/dist/core/view/TableCell.d.ts +0 -3
- package/dist/core/widget/types.d.ts +2 -2
- package/dist/domain/active/active-types.d.ts +1 -3
- package/dist/domain/field/field-props-schema-type.d.ts +1 -1
- package/dist/domain/field/field-type.d.ts +2 -68
- package/dist/domain/field/form-value.d.ts +0 -6
- package/dist/domain/table/business/check/check-table/runtime/map-check-table-item-infos.d.ts +3 -2
- package/dist/domain/table/business/check/check-table/runtime/prepare-check-table-init.d.ts +1 -1
- package/dist/domain/table/business/material/material-requisition/profile/field-keys.d.ts +1 -1
- package/dist/domain/table/business/material/types.d.ts +1 -2
- package/dist/domain/table/business/warehouse/warehouse-allocate/actions/scan.d.ts +2 -1
- package/dist/domain/table/design/ribbon-options.d.ts +0 -2
- package/dist/domain/table/design/sub-model-matcher.d.ts +0 -2
- package/dist/domain/table/index.d.ts +0 -3
- package/dist/domain/table/registry.d.ts +2 -5
- package/dist/domain/table/runtime/engines/init-load-engine.d.ts +2 -1
- package/dist/domain/table/runtime/engines/row-runtime-engine.d.ts +2 -2
- package/dist/domain/table/runtime/table-runtime.d.ts +3 -4
- package/dist/domain/table/types.d.ts +5 -15
- package/dist/index.es.js +9866 -32012
- package/dist/runtime/canvas/doc-layout.vue.d.ts +2 -1
- package/dist/runtime/canvas/table/render/material-consume/bom-validator.d.ts +2 -10
- package/dist/runtime/canvas/table/render/material-consume/material-consume-group-merge.d.ts +0 -1
- package/dist/runtime/canvas/table/render/material-consume/material-consume-table-controller.d.ts +0 -6
- package/dist/runtime/canvas/table/shared/table-lines.vue.d.ts +0 -1
- package/dist/runtime/interface/computed.d.ts +1 -1
- package/dist/runtime/interface/render.d.ts +3 -1
- package/dist/runtime/renderer/dialogs/signature/signature-dialog.vue.d.ts +1 -54
- package/dist/runtime/renderer/dialogs/upload-image/base-upload-image.vue.d.ts +0 -1
- package/dist/runtime/renderer/dialogs/upload-image/upload-image-dialog.vue.d.ts +0 -1
- package/dist/runtime/validation/layout.d.ts +0 -20
- package/dist/runtime/validation/state.d.ts +3 -7
- package/dist/runtime/validation/useFormValidator.d.ts +0 -4
- package/dist/sdk/doc-runtime/factories/document-initializer.d.ts +5 -2
- package/dist/sdk/doc-runtime/factories/useDocumentFactory.d.ts +0 -5
- package/dist/sdk/engine/index.d.ts +1 -3
- package/dist/sdk/setup.d.ts +0 -6
- package/dist/sdk/types/index.d.ts +0 -8
- package/dist/sdk/vue/index.d.ts +0 -6
- package/dist/suites/edhr/manifest/field/_common_/basic.d.ts +3 -3
- package/dist/suites/edhr/panel-schema/data-init/material-consume-object/bom-validator.d.ts +3 -7
- package/dist/suites/edhr/panel-schema/index.d.ts +0 -1
- package/dist/suites/edhr/panel-schema/rule/components/add-rule-button.vue.d.ts +3 -8
- package/dist/suites/edhr/panel-schema/rule/types.d.ts +0 -3
- package/dist/suites/edhr/panel-schema/rule/use-rules-config.d.ts +0 -12
- package/dist/suites/shared/panel/modules/field-formula-module/field-formula-module.vue.d.ts +0 -1
- package/dist/utils/adapters/ServiceUtil.d.ts +0 -9
- package/dist/word.css +1309 -1697
- package/package.json +4 -4
- package/dist/core/command/base/FloatingFieldCommand.d.ts +0 -9
- package/dist/core/command/commands/InsertFloatingField.d.ts +0 -9
- package/dist/core/command/commands/MoveFloatingField.d.ts +0 -10
- package/dist/core/command/commands/RemoveFloatingField.d.ts +0 -12
- package/dist/core/command/commands/SetTableBorder.d.ts +0 -14
- package/dist/core/data/enrichers/inspection-module-qty-enricher.d.ts +0 -19
- package/dist/core/data/enrichers/udi-enricher.d.ts +0 -23
- package/dist/core/data/formula/business-functions.d.ts +0 -10
- package/dist/core/data/formula/formula-params-cache.d.ts +0 -15
- package/dist/core/model/types/table-border.d.ts +0 -18
- package/dist/core/runtime/DocumentRuntimeManager.d.ts +0 -34
- package/dist/core/table/border-selection.d.ts +0 -9
- package/dist/core/table/borders.d.ts +0 -42
- package/dist/domain/document-business/business/product-release/profile.d.ts +0 -2
- package/dist/domain/document-business/business/product-release/service.d.ts +0 -2
- package/dist/domain/document-business/index.d.ts +0 -2
- package/dist/domain/document-business/registry.d.ts +0 -2
- package/dist/domain/document-business/runtime/field-query-runtime.d.ts +0 -4
- package/dist/domain/document-business/types.d.ts +0 -24
- package/dist/domain/document-rule/index.d.ts +0 -3
- package/dist/domain/document-rule/runtime/decision-rule-evaluator.d.ts +0 -13
- package/dist/domain/document-rule/runtime/document-rule-runtime.d.ts +0 -19
- package/dist/domain/document-rule/types.d.ts +0 -50
- package/dist/domain/field/query-filter.d.ts +0 -15
- package/dist/domain/field/seal/seal-binding.d.ts +0 -19
- package/dist/domain/field/seal/seal-display.d.ts +0 -32
- package/dist/domain/field/seal/seal-value.d.ts +0 -39
- package/dist/domain/table/business/device/maintenance/index.d.ts +0 -1
- package/dist/domain/table/business/device/maintenance/profile/field-keys.d.ts +0 -9
- package/dist/domain/table/business/device/maintenance/profile/fields.d.ts +0 -2
- package/dist/domain/table/business/device/maintenance/profile/index.d.ts +0 -3
- package/dist/domain/table/business/device/point-inspection/index.d.ts +0 -1
- package/dist/domain/table/business/device/point-inspection/profile/field-keys.d.ts +0 -9
- package/dist/domain/table/business/device/point-inspection/profile/fields.d.ts +0 -2
- package/dist/domain/table/business/device/point-inspection/profile/index.d.ts +0 -3
- package/dist/domain/table/business/device/runtime/device-signature-lock-engine.d.ts +0 -13
- package/dist/domain/table/business/device/signature-lock.d.ts +0 -26
- package/dist/domain/table/business/material/material-consume/profile/fields.d.ts +0 -2
- package/dist/domain/table/business/material/material-substitution/actions/scan.d.ts +0 -3
- package/dist/domain/table/business/material/material-substitution/index.d.ts +0 -3
- package/dist/domain/table/business/material/material-substitution/profile/field-keys.d.ts +0 -41
- package/dist/domain/table/business/material/material-substitution/profile/fields.d.ts +0 -2
- package/dist/domain/table/business/material/material-substitution/profile/index.d.ts +0 -4
- package/dist/domain/table/business/material/material-substitution/runtime/register-handlers.d.ts +0 -1
- package/dist/domain/table/business/material/material-substitution/runtime/row-change-handlers.d.ts +0 -4
- package/dist/domain/table/design/hooks/on-bounded-default-props.d.ts +0 -3
- package/dist/domain/table/design/validate-nested-table-insert.d.ts +0 -3
- package/dist/domain/table/runtime/option-fill-updates.d.ts +0 -6
- package/dist/runtime/canvas/__common__/context-menu/resolve-table-context.d.ts +0 -10
- package/dist/runtime/canvas/node/seal-overlay.vue.d.ts +0 -6
- package/dist/runtime/canvas/print-capture.d.ts +0 -12
- package/dist/runtime/canvas/table/table-presentation.d.ts +0 -16
- package/dist/runtime/canvas/table/utils/paint-table-borders.d.ts +0 -4
- package/dist/runtime/designer/ribbon/hooks/useDhrEdition.d.ts +0 -7
- package/dist/runtime/designer/ribbon/svg/table-border-icon.vue.d.ts +0 -6
- package/dist/runtime/interface/sterilization-date.d.ts +0 -9
- package/dist/runtime/renderer/dialogs/document-rule-prompt/document-rule-prompt.vue.d.ts +0 -5
- package/dist/runtime/renderer/dialogs/document-rule-prompt/open-document-rule-prompt.d.ts +0 -2
- package/dist/runtime/renderer/dialogs/seal/open-seal-flow.d.ts +0 -3
- package/dist/runtime/renderer/dialogs/seal/seal-api.d.ts +0 -17
- package/dist/runtime/renderer/dialogs/seal/seal-auth-dialog.vue.d.ts +0 -60
- package/dist/runtime/renderer/dialogs/seal/seal-confirm-dialog.vue.d.ts +0 -9
- package/dist/runtime/renderer/dialogs/seal/seal-runtime.d.ts +0 -30
- package/dist/runtime/renderer/dialogs/seal/types.d.ts +0 -24
- package/dist/runtime/renderer/dialogs/seal/use-seal-confirm.d.ts +0 -27
- package/dist/runtime/renderer/dialogs/signature/authentication/signature-authentication.vue.d.ts +0 -27
- package/dist/runtime/renderer/dialogs/signature/authentication/types.d.ts +0 -30
- package/dist/runtime/renderer/dialogs/signature/authentication/useSignatureAuthentication.d.ts +0 -29
- package/dist/runtime/renderer/dropdowns/components/tables/columns/business/material-consume-history.d.ts +0 -17
- package/dist/runtime/renderer/dropdowns/components/tables/composables/useMaterialSubstitutionSource.d.ts +0 -7
- package/dist/sdk/doc-runtime/composables/useDocumentRulePrompt.d.ts +0 -3
- package/dist/sdk/doc-runtime/queries/template-placed-fields.d.ts +0 -7
- package/dist/sdk/types/placed-form-field.d.ts +0 -6
- package/dist/suites/edhr/component/gct-seal-render.vue.d.ts +0 -7
- package/dist/suites/edhr/manifest/field/business/inspection-module-qty-manifest.d.ts +0 -2
- package/dist/suites/edhr/manifest/field/business/product-release-qty-manifest.d.ts +0 -2
- package/dist/suites/edhr/manifest/field/business/udi-manifest.d.ts +0 -2
- package/dist/suites/edhr/manifest/field/logic/seal-manifest.d.ts +0 -2
- package/dist/suites/edhr/manifest/field/object-type/device-parameter-object-manifest.d.ts +0 -2
- package/dist/suites/edhr/manifest/field/object-type/inspection-parameter-object-manifest.d.ts +0 -2
- package/dist/suites/edhr/manifest/field/object-type/process-parameter-object-manifest.d.ts +0 -2
- package/dist/suites/edhr/manifest/field/trace/inspection-container-manifest.d.ts +0 -2
- package/dist/suites/edhr/manifest/field/trace/sterilization-date-manifest.d.ts +0 -2
- package/dist/suites/edhr/panel-schema/material-substitution-table/material-substitution-table.basic.d.ts +0 -1
- package/dist/suites/edhr/panel-schema/rule/components/decision-rule-condition.vue.d.ts +0 -19
- package/dist/suites/edhr/panel-schema/rule/components/decision-rule-group.vue.d.ts +0 -16
- package/dist/suites/edhr/panel-schema/rule/modals/inspection-decision-modal.vue.d.ts +0 -11
- package/dist/suites/edhr/panel-schema/rule/modals/open-inspection-decision-modal.d.ts +0 -8
- package/dist/suites/edhr/panel-schema/rule/utils/decision-rule.d.ts +0 -34
- package/dist/suites/shared/panel/utils/default-value-visibility.d.ts +0 -3
- package/dist/utils/pdf/collect-seal-draw-ops.d.ts +0 -4
|
@@ -24,7 +24,6 @@ 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;
|
|
28
27
|
readonly 'check-table': string;
|
|
29
28
|
readonly 'pretreatment-list': string;
|
|
30
29
|
readonly 'entrust-steril-batch-list': string;
|
|
@@ -10,8 +10,6 @@ type __VLS_Props = {
|
|
|
10
10
|
modelValue?: string | number | Array<string | number>;
|
|
11
11
|
/** 是否多选 */
|
|
12
12
|
multiple?: boolean;
|
|
13
|
-
/** 左侧触发动作,右侧箭头展开菜单 */
|
|
14
|
-
split?: boolean;
|
|
15
13
|
/** 是否显示勾选 icon */
|
|
16
14
|
showCheck?: boolean;
|
|
17
15
|
/** 是否显示编辑 icon(全局开关,可被 option.editable 覆盖) */
|
|
@@ -29,8 +27,6 @@ type __VLS_Props = {
|
|
|
29
27
|
/** 选项列表最大高度 */
|
|
30
28
|
listMaxHeight?: number | string;
|
|
31
29
|
dropdownExtraProps?: Record<string, any>;
|
|
32
|
-
/** 下拉入口点击前校验;返回 false 时不展开菜单 */
|
|
33
|
-
beforeOpen?: () => boolean;
|
|
34
30
|
};
|
|
35
31
|
declare function __VLS_template(): {
|
|
36
32
|
attrs: Partial<{}>;
|
|
@@ -69,12 +65,10 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
69
65
|
edit: (...args: any[]) => void;
|
|
70
66
|
"update:modelValue": (...args: any[]) => void;
|
|
71
67
|
change: (...args: any[]) => void;
|
|
72
|
-
"left-btn-click": (...args: any[]) => void;
|
|
73
68
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
74
69
|
onEdit?: ((...args: any[]) => any) | undefined;
|
|
75
70
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
76
71
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
77
|
-
"onLeft-btn-click"?: ((...args: any[]) => any) | undefined;
|
|
78
72
|
}>, {
|
|
79
73
|
options: DropdownOption[] | DropdownOptionGroup[];
|
|
80
74
|
showCheck: boolean;
|
|
@@ -2,10 +2,8 @@ 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;
|
|
6
5
|
duration?: number;
|
|
7
6
|
closeable?: boolean;
|
|
8
|
-
key?: string;
|
|
9
7
|
}
|
|
10
8
|
declare function GctMessage(options: MessageOptions): void;
|
|
11
9
|
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: any) => void;
|
|
9
9
|
}
|
|
10
10
|
export interface IModalOptions {
|
|
11
11
|
title?: string;
|
|
@@ -13,8 +13,6 @@ export interface IModalOptions {
|
|
|
13
13
|
bodyProps?: any;
|
|
14
14
|
width?: number;
|
|
15
15
|
height?: number;
|
|
16
|
-
/** 弹框最大高度,数字按 px,字符串可传 90vh 等 CSS 值。 */
|
|
17
|
-
maxHeight?: number | string;
|
|
18
16
|
zIndex?: number;
|
|
19
17
|
className?: string;
|
|
20
18
|
closable?: boolean;
|
|
@@ -44,10 +44,6 @@ type __VLS_Props = {
|
|
|
44
44
|
allowCreate?: boolean;
|
|
45
45
|
/** 下拉选项是否可搜索 */
|
|
46
46
|
searchable?: boolean;
|
|
47
|
-
/** 由外部请求搜索结果,跳过本地过滤 */
|
|
48
|
-
remote?: boolean;
|
|
49
|
-
/** 当前选中项的回显信息,可不在搜索结果中 */
|
|
50
|
-
selectedOption?: DropdownOption;
|
|
51
47
|
};
|
|
52
48
|
declare function __VLS_template(): {
|
|
53
49
|
attrs: Partial<{}>;
|
|
@@ -64,7 +60,6 @@ declare function __VLS_template(): {
|
|
|
64
60
|
'option-icon'?(_: {
|
|
65
61
|
option: DropdownOption;
|
|
66
62
|
}): any;
|
|
67
|
-
'bottom-bar'?(_: {}): any;
|
|
68
63
|
};
|
|
69
64
|
refs: {
|
|
70
65
|
dropdownRef: import('vue').CreateComponentPublicInstanceWithMixins<Record<string, any> & {}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, {}, {}, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
@@ -86,21 +81,15 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
|
86
81
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
87
82
|
getRef: import('vue').Ref<any, any>;
|
|
88
83
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
89
|
-
search: (keyword: string) => any;
|
|
90
84
|
edit: (option: DropdownOption) => any;
|
|
91
85
|
click: (evt: any) => any;
|
|
92
|
-
"update:modelValue": (val: string | number | (string | number)[]
|
|
93
|
-
change: (val: string | number | (string | number)[]
|
|
94
|
-
"dropdown-show": () => any;
|
|
95
|
-
"reach-bottom": () => any;
|
|
86
|
+
"update:modelValue": (val: string | number | (string | number)[]) => any;
|
|
87
|
+
change: (val: string | number | (string | number)[], item?: DropdownOption | undefined) => any;
|
|
96
88
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
97
|
-
onSearch?: ((keyword: string) => any) | undefined;
|
|
98
89
|
onEdit?: ((option: DropdownOption) => any) | undefined;
|
|
99
90
|
onClick?: ((evt: any) => any) | undefined;
|
|
100
|
-
"onUpdate:modelValue"?: ((val: string | number | (string | number)[]
|
|
101
|
-
onChange?: ((val: string | number | (string | number)[]
|
|
102
|
-
"onDropdown-show"?: (() => any) | undefined;
|
|
103
|
-
"onReach-bottom"?: (() => any) | undefined;
|
|
91
|
+
"onUpdate:modelValue"?: ((val: string | number | (string | number)[]) => any) | undefined;
|
|
92
|
+
onChange?: ((val: string | number | (string | number)[], item?: DropdownOption | undefined) => any) | undefined;
|
|
104
93
|
}>, {
|
|
105
94
|
disabled: boolean;
|
|
106
95
|
options: DropdownOption[];
|
|
@@ -110,7 +99,6 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
110
99
|
multipleClearable: boolean;
|
|
111
100
|
unremovableValues: Array<string | number>;
|
|
112
101
|
searchable: boolean;
|
|
113
|
-
remote: boolean;
|
|
114
102
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
115
103
|
dropdownRef: import('vue').CreateComponentPublicInstanceWithMixins<Record<string, any> & {}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, {}, {}, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
116
104
|
P: {};
|
|
@@ -18,10 +18,10 @@ export interface ImageCropRect {
|
|
|
18
18
|
width: number;
|
|
19
19
|
height: number;
|
|
20
20
|
}
|
|
21
|
-
/**
|
|
21
|
+
/** 固定 360×204 兜底图同一比例,按 2 倍像素绘制 */
|
|
22
22
|
export declare const FALLBACK_SIGN_DISPLAY_SIZE: {
|
|
23
|
-
readonly width:
|
|
24
|
-
readonly height:
|
|
23
|
+
readonly width: 180;
|
|
24
|
+
readonly height: 102;
|
|
25
25
|
};
|
|
26
26
|
/**
|
|
27
27
|
* 根据图片原始尺寸 + 配置,计算最终显示尺寸
|
|
@@ -39,17 +39,11 @@ 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
|
|
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;
|
|
42
|
+
/** 同步取无图签名缓存(布局重建时可避免先闪占位再异步补图)。宽高参数仅为兼容现有调用。 */
|
|
43
|
+
export declare function getCachedSignatureImage(name: string, _width?: number, _height?: number, time?: number | string, fallbackSignType?: string, signatureImageDirection?: string): HTMLImageElement | null;
|
|
50
44
|
/**
|
|
51
45
|
* 创建无图签名兜底图
|
|
52
46
|
* 默认仅绘制用户名;显式配置用户名 + 签署日期时绘制完整兜底签名
|
|
53
47
|
*/
|
|
54
|
-
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;
|
|
55
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 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']);
|
|
@@ -5,6 +5,7 @@ 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;
|
|
8
9
|
protected execute(): Promise<PostCommandContext>;
|
|
9
10
|
private insertAtCursor;
|
|
10
11
|
private insertIntoBody;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { TableBorderPreset } from '../model/types/table-border';
|
|
2
1
|
import { VOrientationType } from '../../domain/constants/enum';
|
|
3
|
-
import { FIELD_TYPE } from '../../domain/field/field-type';
|
|
4
2
|
import { Doc } from '../view/Doc';
|
|
5
3
|
import { WidgetMeta } from '../widget/widget-meta';
|
|
6
4
|
import { WordHighlight } from '../model/types';
|
|
@@ -41,9 +39,6 @@ export declare const CommandType: {
|
|
|
41
39
|
readonly insertField: "insertField";
|
|
42
40
|
readonly insertPaperWidget: "insertPaperWidget";
|
|
43
41
|
readonly insertFloatingOverlay: "insertFloatingOverlay";
|
|
44
|
-
readonly insertFloatingField: "insertFloatingField";
|
|
45
|
-
readonly moveFloatingField: "moveFloatingField";
|
|
46
|
-
readonly removeFloatingField: "removeFloatingField";
|
|
47
42
|
readonly delete: "delete";
|
|
48
43
|
readonly backspace: "backspace";
|
|
49
44
|
readonly enter: "enter";
|
|
@@ -74,7 +69,6 @@ export declare const CommandType: {
|
|
|
74
69
|
readonly deleteRow: "deleteRow";
|
|
75
70
|
readonly deleteCol: "deleteCol";
|
|
76
71
|
readonly deleteTable: "deleteTable";
|
|
77
|
-
readonly setTableBorder: "setTableBorder";
|
|
78
72
|
readonly mergeCells: "mergeCells";
|
|
79
73
|
readonly unmergeCells: "unmergeCells";
|
|
80
74
|
readonly snapshot: "snapshot";
|
|
@@ -94,7 +88,6 @@ export type CommandPayloadMap = {
|
|
|
94
88
|
};
|
|
95
89
|
commitValidateNumber: CommandPayload & {
|
|
96
90
|
valuePath?: string;
|
|
97
|
-
fieldType?: FIELD_TYPE;
|
|
98
91
|
type?: 'fw:number' | 'fw:double';
|
|
99
92
|
digits?: number;
|
|
100
93
|
roundingMode?: 1 | 4 | 6;
|
|
@@ -118,17 +111,6 @@ export type CommandPayloadMap = {
|
|
|
118
111
|
hit: PointerHitResult;
|
|
119
112
|
pageWidgetMeta: WidgetMeta;
|
|
120
113
|
};
|
|
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
|
-
};
|
|
132
114
|
delete: CommandPayload & Record<string, never>;
|
|
133
115
|
backspace: CommandPayload & Record<string, never>;
|
|
134
116
|
enter: CommandPayload & Record<string, never>;
|
|
@@ -249,9 +231,6 @@ export type CommandPayloadMap = {
|
|
|
249
231
|
deleteTable: CommandPayload & {
|
|
250
232
|
tableId: string;
|
|
251
233
|
};
|
|
252
|
-
setTableBorder: CommandPayload & {
|
|
253
|
-
preset: TableBorderPreset;
|
|
254
|
-
};
|
|
255
234
|
mergeCells: CommandPayload & Record<string, never>;
|
|
256
235
|
unmergeCells: CommandPayload & Record<string, never>;
|
|
257
236
|
snapshot: CommandPayload & Record<string, never>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Doc } from '../view/Doc';
|
|
2
|
-
import { EmitSource, Data, PartialData,
|
|
2
|
+
import { EmitSource, Data, PartialData, FieldRuntimeSpecificConfig, PostChangePipelineContext } from './types';
|
|
3
3
|
type JsonPath = string;
|
|
4
4
|
/** 原始写入信息;向父路径通知时保留,不替换为 parent。 */
|
|
5
5
|
type SubscriptionChange = {
|
|
@@ -40,6 +40,13 @@ export declare class DataManager {
|
|
|
40
40
|
* value: 默认值
|
|
41
41
|
*/
|
|
42
42
|
private defaults;
|
|
43
|
+
/** 表结构/检验项元数据,不属于用户输入初值,重开和打印时仍需读取。 */
|
|
44
|
+
private configurationDefaults;
|
|
45
|
+
/** 参数映射的行模板;保存过的文档只允许对新增行使用。 */
|
|
46
|
+
private rowInitData;
|
|
47
|
+
/** 按对象身份追踪本次新增行,插入/删除导致下标变化时不会误初始化旧行。 */
|
|
48
|
+
private initializedRows;
|
|
49
|
+
private documentInitializationEnabled;
|
|
43
50
|
constructor(options?: {
|
|
44
51
|
doc?: Doc;
|
|
45
52
|
data?: Data;
|
|
@@ -77,11 +84,6 @@ export declare class DataManager {
|
|
|
77
84
|
setRuntimeSpecificConfig(entries: any): void;
|
|
78
85
|
getFieldRuntimeSpecificConfig(path: JsonPath): FieldRuntimeSpecificConfig | undefined;
|
|
79
86
|
setFieldRuntimeSpecificConfig(path: JsonPath, partial: FieldRuntimeSpecificConfig): void;
|
|
80
|
-
/**
|
|
81
|
-
* 原子替换某一功能来源施加的全部字段约束。
|
|
82
|
-
* 未出现在 constraintsByPath 中的旧约束会被清理,其他来源和普通运行时配置不受影响。
|
|
83
|
-
*/
|
|
84
|
-
replaceFieldRuntimeConstraints(source: string, constraintsByPath: ReadonlyMap<JsonPath, FieldRuntimeConstraint>): void;
|
|
85
87
|
/** 子表插行后:index 及之后的行配置下标 +1 */
|
|
86
88
|
private shiftFieldRuntimeConfigAfterRowInsert;
|
|
87
89
|
/** 子表删行后:移除该行配置,其后行配置下标 -1 */
|
|
@@ -104,11 +106,14 @@ export declare class DataManager {
|
|
|
104
106
|
flushDependenciesNow(): Promise<JsonPath[]>;
|
|
105
107
|
private trackDependencyFieldChange;
|
|
106
108
|
/**
|
|
107
|
-
* 根据 jsonpath
|
|
109
|
+
* 根据 jsonpath 读取字段。首次填报和本次新增行允许 undefined 回落到输入初值;
|
|
110
|
+
* null / '' 保留。结构配置独立读取,不受输入初值生命周期限制。
|
|
108
111
|
* @param path jsonpath 路径 (例如: "document.body.children[0].text" 或 "user.name")
|
|
109
112
|
* @returns 指定路径的值,不存在返回 undefined
|
|
110
113
|
*/
|
|
111
114
|
get<T = any>(path: JsonPath): T | undefined;
|
|
115
|
+
/** 仅读取实际数据,不回落到默认值。初始化写入据此保护已有值与主动清空。 */
|
|
116
|
+
getStoredValue<T = any>(path: JsonPath): T | undefined;
|
|
112
117
|
/**
|
|
113
118
|
* 根据 jsonpath 获取标签数据
|
|
114
119
|
* 优先获取带 LABEL_SUFFIX 的值,如果不存在则返回原值
|
|
@@ -229,11 +234,15 @@ export declare class DataManager {
|
|
|
229
234
|
/**
|
|
230
235
|
* 设置整个原始数据
|
|
231
236
|
* @param data 新的 JSON 数据
|
|
232
|
-
* @param defaultsMap
|
|
237
|
+
* @param defaultsMap 默认值:首次填报仅为 undefined 懒填充,保存过的实例仅供新增行使用
|
|
233
238
|
*/
|
|
234
|
-
setRawData(data: Data, defaultsMap?: Record<string, any
|
|
239
|
+
setRawData(data: Data, defaultsMap?: Record<string, any>, options?: {
|
|
240
|
+
configurationDefaults?: Record<string, any>;
|
|
241
|
+
initializeValues?: boolean;
|
|
242
|
+
}): void;
|
|
235
243
|
/**
|
|
236
|
-
*
|
|
244
|
+
* 首次填报时将初始化数据写入 rawData,仅填 undefined;null / '' 是已赋值,必须保留。
|
|
245
|
+
* 保存过的数据重新打开时不再赋初值,行模板仅保留给后续新增行使用。
|
|
237
246
|
* 与 defaults(懒填充)不同,此方法在初始化阶段一次性写入
|
|
238
247
|
*
|
|
239
248
|
* 支持两种子表路径形式:
|
|
@@ -241,9 +250,14 @@ export declare class DataManager {
|
|
|
241
250
|
* - 真实下标:直接写入指定行,如 `$.sub[0].field`
|
|
242
251
|
*
|
|
243
252
|
* 处理顺序:先展开 `[n]` 通配符,再写入真实下标路径。
|
|
244
|
-
*
|
|
253
|
+
* 参数映射(`[n]`)先填未赋值字段,自定义数据源(真实下标)再填剩余未赋值字段。
|
|
245
254
|
*/
|
|
246
255
|
applyInitData(initDataMap: Record<string, any>): void;
|
|
256
|
+
/**
|
|
257
|
+
* 只初始化刚新增的行。参数写入实际数据,组件默认值继续懒读并在提交前物化。
|
|
258
|
+
* 不提前物化默认值,避免其挡住当前主表选择的数据填充;复制行/null/'' 均保留。
|
|
259
|
+
*/
|
|
260
|
+
applyRowInitData(subFieldKey: string, rowIndex: number): void;
|
|
247
261
|
/**
|
|
248
262
|
* 按版面铺砖槽位补齐子表行数:
|
|
249
263
|
* - 固定表:按槽位补齐自身子表行
|
|
@@ -346,6 +360,13 @@ export declare class DataManager {
|
|
|
346
360
|
* @returns 默认值,不存在返回 undefined
|
|
347
361
|
*/
|
|
348
362
|
getDefault<T = any>(path: JsonPath): T | undefined;
|
|
363
|
+
private allDefaults;
|
|
364
|
+
/** 设计/未保存模板打印仍可展示默认值;重开或整表换数后不再隐式填充旧行。 */
|
|
365
|
+
private canApplyDocumentDefaults;
|
|
366
|
+
private canApplyDefaultAt;
|
|
367
|
+
private getApplicableDefault;
|
|
368
|
+
/** 快照的交叉区保持 UID 稀疏结构,不能按 [y][x] 写成嵌套数组。 */
|
|
369
|
+
private setSnapshotDefault;
|
|
349
370
|
/**
|
|
350
371
|
* 将路径中的具体数组索引转换为默认值通配符
|
|
351
372
|
* - 普通子表: items[0].name -> items[n].name
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 初始化值语义:
|
|
3
|
+
* - undefined:尚未赋值,首次填报或新增行时可以带入初值。
|
|
4
|
+
* - null:用户主动清空;'':已写入的空字符串。二者都必须保留。
|
|
5
|
+
* - 0、false 及其他已定义的值同样不能被初值覆盖。
|
|
6
|
+
* isBlank/isPresent 用于业务校验,不能用于判断是否允许初始化。
|
|
7
|
+
*/
|
|
8
|
+
export declare function isUninitialized(value: unknown): value is undefined;
|
|
9
|
+
interface DocumentInitializationContext {
|
|
10
|
+
mode?: string;
|
|
11
|
+
docRuntimeMeta?: {
|
|
12
|
+
dataId?: string;
|
|
13
|
+
dataStatus?: string;
|
|
14
|
+
instanceStatus?: string;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
/** 是否已有填报记录;与编辑/打印等展示模式无关。 */
|
|
18
|
+
export declare function hasPersistedDocumentData(context: DocumentInitializationContext): boolean;
|
|
19
|
+
/**
|
|
20
|
+
* 文档初值只在首次填报时带入。暂存、提交或已有填报数据的实例重开时,
|
|
21
|
+
* 即使接口未返回某个字段,也不能重新初始化;新增行另走行初始化入口。
|
|
22
|
+
* 没有实例状态的模板模拟填报仍可初始化;设计/打印不执行填报初始化,
|
|
23
|
+
* 模板预览展示默认值由 DataManager 单独处理。
|
|
24
|
+
*/
|
|
25
|
+
export declare function shouldInitializeDocumentData(context: DocumentInitializationContext): boolean;
|
|
26
|
+
export {};
|
|
@@ -1,23 +1,10 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 独立运行时功能施加的字段约束。
|
|
3
|
-
*
|
|
4
|
-
* 多个来源互不覆盖,最终状态按“任一来源为 true”聚合。
|
|
5
|
-
*/
|
|
6
|
-
export type FieldRuntimeConstraint = {
|
|
7
|
-
readonly?: boolean;
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
};
|
|
10
1
|
/** 组件依赖按 runtime valuePath 写入的运行时配置(子表各行独立) */
|
|
11
2
|
export type FieldRuntimeSpecificConfig = {
|
|
12
3
|
newReadonly?: boolean;
|
|
13
4
|
newRequired?: boolean;
|
|
14
5
|
newDisabled?: boolean;
|
|
15
|
-
/** 按功能来源隔离的强制约束,避免解除某项约束时覆盖其他运行时规则 */
|
|
16
|
-
runtimeConstraints?: Record<string, FieldRuntimeConstraint>;
|
|
17
6
|
/** assignment 策略「始终覆盖」时按行不可输入 */
|
|
18
7
|
cannotInput?: boolean;
|
|
19
8
|
/** 实例数字段:用户手填后不再被 API 回填覆盖 */
|
|
20
9
|
ofInstNumUserEdited?: boolean;
|
|
21
|
-
/** 检验数量字段:用户手填(含清空)后不再被 API 回填覆盖 */
|
|
22
|
-
inspectionModuleQtyUserEdited?: boolean;
|
|
23
10
|
};
|
package/dist/core/index.d.ts
CHANGED
|
@@ -9,8 +9,6 @@ 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';
|
|
14
12
|
export { DocModeTypeConst, PaperSizeConst, BuiltinComponentTypeConst } from './constants';
|
|
15
13
|
export { default as CursorOverlay } from './cursor/render/cursor-overlay.vue';
|
|
16
14
|
export { default as HiddenInput } from './cursor/render/hidden-input.vue';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { RawElement } from '../types/raw';
|
|
2
|
-
import { TableBorders } from '../types/table-border';
|
|
3
2
|
import { ModelNode, ModelNodeOptions } from '../base';
|
|
4
3
|
/**
|
|
5
4
|
* 段落属性节点 - 保存 w:pPr 及其子元素
|
|
@@ -11,7 +10,6 @@ export declare class WtblPr extends ModelNode {
|
|
|
11
10
|
name: 'w:tblPr';
|
|
12
11
|
/** 节点类型 */
|
|
13
12
|
type: "element";
|
|
14
|
-
borders: TableBorders;
|
|
15
13
|
elements: RawElement[];
|
|
16
14
|
constructor(options: ModelNodeOptions & {
|
|
17
15
|
elements?: RawElement[];
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { CellBorders } from '../types/table-border';
|
|
2
1
|
import { RawElement } from '../types/raw';
|
|
3
2
|
import { Wtr } from './Wtr';
|
|
4
3
|
import { Wp } from './Wp';
|
|
@@ -16,7 +15,6 @@ export declare class Wtc extends ModelGroup {
|
|
|
16
15
|
type: "element";
|
|
17
16
|
parent?: Wtr;
|
|
18
17
|
tcPrRaw?: RawElement;
|
|
19
|
-
borders: CellBorders;
|
|
20
18
|
colspan?: number;
|
|
21
19
|
rowspan?: number;
|
|
22
20
|
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' | '
|
|
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';
|
|
33
33
|
/** 表头 layout 类型 */
|
|
34
34
|
export type TableHeaderLayoutType = 'table-header';
|
|
35
35
|
/** 所有子表表格 layout 类型 */
|
|
@@ -63,14 +63,11 @@ 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
|
-
};
|
|
69
66
|
export type WarehouseAllocateTableProps = RepeatingWidgetPropsBase & {
|
|
70
67
|
layoutType: 'warehouse-allocate-table';
|
|
71
68
|
barcode_parsing_rules_id_?: string;
|
|
72
69
|
};
|
|
73
|
-
export type RepeatingWidgetPropsMeta = DynamicTableProps | WarehouseInTableProps | WarehouseInboundTableProps | WarehouseOutTableProps | WarehouseOutboundTableProps | WarehouseInOutTableProps | WarehouseInventoryTableProps | PartStocktakeTableProps | DevicePartConsumeTableProps | WarehouseAllocateTableProps | MaterialBalanceTableProps | MaterialRequisitionTableProps |
|
|
70
|
+
export type RepeatingWidgetPropsMeta = DynamicTableProps | WarehouseInTableProps | WarehouseInboundTableProps | WarehouseOutTableProps | WarehouseOutboundTableProps | WarehouseInOutTableProps | WarehouseInventoryTableProps | PartStocktakeTableProps | DevicePartConsumeTableProps | WarehouseAllocateTableProps | MaterialBalanceTableProps | MaterialRequisitionTableProps | EntrustSterilBatchListTableProps | PretreatmentListTableProps;
|
|
74
71
|
export type RepeatingWidgetMeta = {
|
|
75
72
|
props: RepeatingWidgetPropsMeta;
|
|
76
73
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Wtbl } from '../../../document/Wtbl';
|
|
2
1
|
/** 表格矩形范围(含起止行列,均为闭区间) */
|
|
3
2
|
export type TableRange = {
|
|
4
3
|
start: {
|
|
@@ -10,45 +9,10 @@ export type TableRange = {
|
|
|
10
9
|
col: number;
|
|
11
10
|
};
|
|
12
11
|
};
|
|
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[];
|
|
47
12
|
/**
|
|
48
13
|
* 计算数据分组 / 动态关联在版面中可铺砖的数据槽位数(含模板块 dataIndex 0)。
|
|
49
14
|
* 逻辑与 TableExpander.computeDataIndexMap 中铺砖循环一致。
|
|
50
15
|
*/
|
|
51
|
-
export declare function countDataGroupSlots(range: TableRange, itemRange: TableRange, fillDirection?: 'x' | 'y'
|
|
16
|
+
export declare function countDataGroupSlots(range: TableRange, itemRange: TableRange, fillDirection?: 'x' | 'y'): number;
|
|
52
17
|
/** 检验表 / 二维表动态关联:itemRegion 行范围可能超出子表主体 */
|
|
53
18
|
export declare function expandDataGroupRowRange(parent: TableRange, itemRange: TableRange): TableRange;
|
|
54
|
-
export {};
|
|
@@ -9,7 +9,6 @@ export type WlayoutXmlJson = RawElement & {
|
|
|
9
9
|
width?: number;
|
|
10
10
|
height?: number;
|
|
11
11
|
zIndex?: number;
|
|
12
|
-
pageIndex?: number;
|
|
13
12
|
};
|
|
14
13
|
};
|
|
15
14
|
export interface WlayoutOptions extends ModelGroupOptions<ModelNode> {
|
|
@@ -19,7 +18,6 @@ export interface WlayoutOptions extends ModelGroupOptions<ModelNode> {
|
|
|
19
18
|
width?: number;
|
|
20
19
|
height?: number;
|
|
21
20
|
zIndex?: number;
|
|
22
|
-
pageIndex?: number;
|
|
23
21
|
}
|
|
24
22
|
/**
|
|
25
23
|
* 布局容器
|
|
@@ -36,7 +34,6 @@ export declare class Wlayout extends ModelGroup<ModelNode> {
|
|
|
36
34
|
width?: number;
|
|
37
35
|
height?: number;
|
|
38
36
|
zIndex: number;
|
|
39
|
-
pageIndex?: number;
|
|
40
37
|
parent?: ModelNode;
|
|
41
38
|
constructor(options: WlayoutOptions);
|
|
42
39
|
/**
|
|
@@ -69,6 +66,5 @@ export declare class Wlayout extends ModelGroup<ModelNode> {
|
|
|
69
66
|
width: number;
|
|
70
67
|
height: number;
|
|
71
68
|
zIndex: number;
|
|
72
|
-
pageIndex?: number;
|
|
73
69
|
}): Wlayout;
|
|
74
70
|
}
|
package/dist/core/view/Doc.d.ts
CHANGED
|
@@ -11,7 +11,6 @@ import { DocModeType } from '../constants';
|
|
|
11
11
|
import { CommandPayloadMap, RequiredPayloadCommands, OptionalPayloadCommands } from '../command/types';
|
|
12
12
|
import { DocModel } from '../model';
|
|
13
13
|
import { DocRuntimeMeta, FieldModelQuery, IDeviceConfig } from '../../sdk/types';
|
|
14
|
-
import { DocumentRuntimeManager } from '../runtime/DocumentRuntimeManager';
|
|
15
14
|
export interface DocInitOptions {
|
|
16
15
|
mode?: DocModeType;
|
|
17
16
|
model?: DocModel;
|
|
@@ -57,8 +56,6 @@ export declare class Doc {
|
|
|
57
56
|
refer: boolean;
|
|
58
57
|
/** 是否是模拟填报 */
|
|
59
58
|
isMockReport: boolean;
|
|
60
|
-
/** 已进入表单变更编辑;由 enterBaseline 设置,随文档实例销毁。 */
|
|
61
|
-
isFormChangeEditing: boolean;
|
|
62
59
|
/** 填报内容区底色开关配置 */
|
|
63
60
|
showPrintFieldBg: boolean;
|
|
64
61
|
model?: DocModel;
|
|
@@ -70,8 +67,6 @@ export declare class Doc {
|
|
|
70
67
|
eventManager: EventManager;
|
|
71
68
|
dataManager: DataManager;
|
|
72
69
|
interactionManager: InteractionManager;
|
|
73
|
-
/** 文档级业务运行时统一生命周期。 */
|
|
74
|
-
runtimeManager: DocumentRuntimeManager;
|
|
75
70
|
pageSize: {
|
|
76
71
|
width: number;
|
|
77
72
|
height: number;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Paragraph } from './Paragraph';
|
|
2
|
-
import { ResolvedCellBorders } from '../model/types/table-border';
|
|
3
2
|
import { LayoutGroup, LayoutGroupOptions } from './base';
|
|
4
3
|
import { IContainerMetrics, Border } from './types';
|
|
5
4
|
import { Table } from './Table';
|
|
@@ -14,7 +13,6 @@ export interface TableCellOptions extends LayoutGroupOptions {
|
|
|
14
13
|
mergeRefRowOffset?: number;
|
|
15
14
|
mergeRefColOffset?: number;
|
|
16
15
|
backgroundColor?: string;
|
|
17
|
-
borderEdges?: ResolvedCellBorders;
|
|
18
16
|
subRenderer?: SubRenderer;
|
|
19
17
|
}
|
|
20
18
|
export type SubRenderer = {
|
|
@@ -38,7 +36,6 @@ export declare class TableCell extends LayoutGroup<TableCellContent> implements
|
|
|
38
36
|
mergeRefRowOffset?: number;
|
|
39
37
|
mergeRefColOffset?: number;
|
|
40
38
|
backgroundColor?: string;
|
|
41
|
-
borderEdges?: ResolvedCellBorders;
|
|
42
39
|
border?: Border;
|
|
43
40
|
/** 设计渲染时 */
|
|
44
41
|
subRenderer?: SubRenderer;
|