@gct-paas/word 0.1.73-patch.1 → 0.1.73-patch.10
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/README.md +4 -1
- package/dist/base/modal/src/ConfirmTip.vue.d.ts +5 -0
- package/dist/base/modal/src/ModalRoot.vue.d.ts +3 -0
- package/dist/base/modal/src/index.d.ts +1 -0
- package/dist/base/modal/src/modal.type.d.ts +8 -1
- package/dist/base/utils/image-size-util.d.ts +2 -0
- package/dist/core/command/commands/InsertTable.d.ts +4 -0
- package/dist/core/constants/common.d.ts +1 -0
- package/dist/core/constants/index.d.ts +2 -0
- package/dist/core/constants/table.d.ts +11 -0
- package/dist/core/cursor/logic/getSelectionRects.d.ts +15 -2
- package/dist/core/cursor/logic/index.d.ts +2 -1
- package/dist/core/cursor/logic/selectionAnalyzer.d.ts +31 -6
- package/dist/core/event/types.d.ts +1 -1
- package/dist/core/index.d.ts +1 -1
- package/dist/core/interaction/InteractionController.d.ts +11 -0
- package/dist/core/interaction/types.d.ts +8 -0
- package/dist/core/interaction/useInteraction.d.ts +6 -0
- package/dist/core/layout/LayoutManager.d.ts +5 -1
- package/dist/core/layout/providers/TableInfoProvider.d.ts +2 -2
- package/dist/core/layout/table/split-table.d.ts +10 -0
- package/dist/core/layout/types/index.d.ts +2 -0
- package/dist/core/model/document/Wbody.d.ts +4 -0
- package/dist/core/model/document/Wtbl/Calculation.d.ts +8 -2
- package/dist/core/model/document/Wtbl/RowColumnOps.d.ts +24 -3
- package/dist/core/model/document/Wtbl/Serialization.d.ts +26 -1
- package/dist/core/model/document/Wtbl.d.ts +31 -3
- package/dist/core/model/document/Wtc.d.ts +13 -2
- package/dist/core/model/document/Wtr.d.ts +2 -1
- package/dist/core/model/document/index.d.ts +1 -0
- package/dist/core/model/document/utils/ensure-paragraphs-around-tables.d.ts +18 -0
- package/dist/core/model/logic/subtable/repeating/MaterialConsumeTableRegion.d.ts +4 -0
- package/dist/core/model/logic/subtable/repeating/RepeatingRegion.d.ts +4 -0
- package/dist/core/model/templates/tableCell.template.d.ts +2 -0
- package/dist/core/view/Doc.d.ts +21 -1
- package/dist/core/view/Table.d.ts +13 -0
- package/dist/core/view/TableCell.d.ts +2 -1
- package/dist/core/view/context/DocPubApiContext.d.ts +1 -0
- package/dist/domain/table/business/check/check-table/actions/fetch-check-items.d.ts +1 -0
- package/dist/domain/table/design/validate-nested-table-region.d.ts +31 -0
- package/dist/domain/table/design/validate-table-selection.d.ts +8 -0
- package/dist/domain/table/index.d.ts +1 -0
- package/dist/index.es.js +3636 -2162
- package/dist/runtime/canvas/table/render/material-consume/bom-validator.d.ts +5 -5
- package/dist/runtime/canvas/table/render/material-consume/material-consume-table-controller.d.ts +1 -0
- package/dist/runtime/canvas/table/table-design.vue.d.ts +1 -0
- package/dist/runtime/canvas/table/utils/useTableSelection.d.ts +6 -0
- package/dist/runtime/designer/panel/panel.vue.d.ts +1 -1
- package/dist/runtime/interface/fetchers.d.ts +2 -0
- package/dist/sdk/doc-runtime/factories/useDocumentFactory.d.ts +3 -1
- package/dist/sdk/types/index.d.ts +6 -1
- package/dist/suites/edhr/panel-schema/2d-table/2DSubTablePanel.vue.d.ts +8 -0
- package/dist/suites/shared/panel/modules/confirm-before-delete-config.vue.d.ts +5 -0
- package/dist/suites/shared/panel/modules/field-dependency-module/field-dependency-modal.vue.d.ts +2 -0
- package/dist/suites/shared/panel/utils/open-design-modal.d.ts +7 -0
- package/dist/word.css +464 -372
- package/package.json +1 -1
|
@@ -8,6 +8,10 @@ export type MaterialConsumeTableWidgetPropsMeta = {
|
|
|
8
8
|
personal_bom_enabled_?: boolean;
|
|
9
9
|
entries_?: any[];
|
|
10
10
|
sequence_loading_enabled_?: boolean;
|
|
11
|
+
/** 删除二次确认 */
|
|
12
|
+
confirmBeforeDelete: boolean;
|
|
13
|
+
/** 删除二次确认提示 */
|
|
14
|
+
confirmBeforeDeleteTip: string;
|
|
11
15
|
[key: string]: any;
|
|
12
16
|
};
|
|
13
17
|
export type MaterialConsumeTableWidgetMeta = {
|
|
@@ -5,6 +5,10 @@ import { SubTableLayoutType } from '../../../document/wtcRegionRef';
|
|
|
5
5
|
export type RepeatingWidgetPropsBase = {
|
|
6
6
|
/** 快速填报 */
|
|
7
7
|
quickFill: boolean;
|
|
8
|
+
/** 删除二次确认 */
|
|
9
|
+
confirmBeforeDelete: boolean;
|
|
10
|
+
/** 删除二次确认提示 */
|
|
11
|
+
confirmBeforeDeleteTip: string;
|
|
8
12
|
};
|
|
9
13
|
export type DynamicTableProps = RepeatingWidgetPropsBase & {
|
|
10
14
|
layoutType?: 'dynamic-table';
|
package/dist/core/view/Doc.d.ts
CHANGED
|
@@ -15,6 +15,13 @@ export interface DocInitOptions {
|
|
|
15
15
|
mode?: DocModeType;
|
|
16
16
|
model?: DocModel;
|
|
17
17
|
preview?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* 设计器引用只读态;与 preview 互斥。
|
|
20
|
+
* 仅保留右侧属性 panel,禁止修改文档与配置
|
|
21
|
+
*/
|
|
22
|
+
refer?: boolean;
|
|
23
|
+
/** 是否是模拟填报 */
|
|
24
|
+
isMockReport?: boolean;
|
|
18
25
|
mainModelKey: ModelKey;
|
|
19
26
|
/** 文档运行时元信息(接口数据 + 业务数据) */
|
|
20
27
|
docRuntimeMeta: DocRuntimeMeta;
|
|
@@ -43,8 +50,14 @@ export declare class Doc {
|
|
|
43
50
|
mode: DocModeType;
|
|
44
51
|
/** 按钮区渲染模式 */
|
|
45
52
|
btnRenderModeType: DocModeType;
|
|
46
|
-
/**
|
|
53
|
+
/** 是否是设计器预览模式(隐藏设计器壳) */
|
|
47
54
|
preview: boolean;
|
|
55
|
+
/** 是否是设计器引用只读态(保留壳,禁止编辑) */
|
|
56
|
+
refer: boolean;
|
|
57
|
+
/** 是否是模拟填报 */
|
|
58
|
+
isMockReport: boolean;
|
|
59
|
+
/** 填报内容区底色开关配置 */
|
|
60
|
+
showPrintFieldBg: boolean;
|
|
48
61
|
model?: DocModel;
|
|
49
62
|
pages: Page[];
|
|
50
63
|
commandManager: CommandManager;
|
|
@@ -125,6 +138,13 @@ export declare class Doc {
|
|
|
125
138
|
isInFillMode(): boolean;
|
|
126
139
|
/** 是否是打印模式 */
|
|
127
140
|
isInPrintMode(): boolean;
|
|
141
|
+
/**
|
|
142
|
+
* 设计侧不可编辑:预览(藏壳)或引用只读(留 panel)。
|
|
143
|
+
* 用于命令 / 输入 / 拖拽等写操作拦截。
|
|
144
|
+
*/
|
|
145
|
+
isDesignReadonly(): boolean;
|
|
146
|
+
/** 打印时临时开关填报内容区底色 */
|
|
147
|
+
setShowPrintFieldBg(show: boolean): void;
|
|
128
148
|
bumpUpdateTick(): void;
|
|
129
149
|
increaseTextRunCount(): void;
|
|
130
150
|
/**
|
|
@@ -3,14 +3,18 @@ import { TableRow } from './TableRow';
|
|
|
3
3
|
import { Border } from './types';
|
|
4
4
|
import { EventUtil } from './utils/EventUtil';
|
|
5
5
|
import { TableCell } from './TableCell';
|
|
6
|
+
import { WtblPr } from '../model/document/WtblPr';
|
|
6
7
|
export interface TableOptions extends LayoutGroupOptions {
|
|
7
8
|
colWidths?: number[];
|
|
9
|
+
tblPr?: WtblPr;
|
|
8
10
|
}
|
|
9
11
|
export declare class Table extends LayoutGroup<TableRow> {
|
|
10
12
|
type: 'table';
|
|
11
13
|
component: "table";
|
|
12
14
|
cellPadding: [number, number, number, number];
|
|
13
15
|
colWidths?: number[];
|
|
16
|
+
/** 表格属性 */
|
|
17
|
+
tblPr?: WtblPr;
|
|
14
18
|
/** redistribute 完成事件 */
|
|
15
19
|
redistributeEvent: EventUtil;
|
|
16
20
|
/** 表格边框 */
|
|
@@ -21,6 +25,15 @@ export declare class Table extends LayoutGroup<TableRow> {
|
|
|
21
25
|
get width(): number;
|
|
22
26
|
redistribute(): void;
|
|
23
27
|
layout(x: number, y: number): void;
|
|
28
|
+
/**
|
|
29
|
+
* 相对正文区左边缘的水平偏移
|
|
30
|
+
* 对应 w:jc / w:tblInd;居中或右对齐且表格宽于正文区时可为负值
|
|
31
|
+
*/
|
|
32
|
+
private resolveOffsetX;
|
|
33
|
+
/** 嵌套在单元格内的表格不使用页面级对齐 */
|
|
34
|
+
private isNestedInCell;
|
|
35
|
+
private getTableJc;
|
|
36
|
+
private getTblIndPx;
|
|
24
37
|
updateCellOffsetInfo(): void;
|
|
25
38
|
forEachCell(options: {
|
|
26
39
|
startRowIdx: number;
|
|
@@ -27,7 +27,8 @@ export type SubRenderer = {
|
|
|
27
27
|
/** 用来标记二维表的子类型 交叉 / 横向 / 纵向 */
|
|
28
28
|
cellZone?: LinkSubTableCellZone;
|
|
29
29
|
};
|
|
30
|
-
export
|
|
30
|
+
export type TableCellContent = Paragraph | Table;
|
|
31
|
+
export declare class TableCell extends LayoutGroup<TableCellContent> implements IContainerMetrics {
|
|
31
32
|
component: "tableCell";
|
|
32
33
|
colspan: number;
|
|
33
34
|
rowspan: number;
|
|
@@ -11,6 +11,7 @@ export declare function useDocPubApiContext(): {
|
|
|
11
11
|
query: ComputedRef<import('../../../sdk/types').DocQueryAPI>;
|
|
12
12
|
updateTick: ComputedRef<number>;
|
|
13
13
|
isDesignMode: ComputedRef<boolean>;
|
|
14
|
+
isRefer: ComputedRef<boolean>;
|
|
14
15
|
loading: ComputedRef<boolean>;
|
|
15
16
|
hasData: ComputedRef<boolean>;
|
|
16
17
|
hasPages: ComputedRef<boolean>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CheckTableItemInfosPayload, CheckTableRegionRef } from '../types';
|
|
2
2
|
/**
|
|
3
3
|
* 按已扫描的检验表 region 并行拉取检验项详情。
|
|
4
|
+
* @param instanceId 真实填报实例 id;设计态 / 模拟填报应传空字符串(默认数据源将跳过请求)
|
|
4
5
|
* @returns infosMap / countMap(count 至少为 1,用于占位行)
|
|
5
6
|
*/
|
|
6
7
|
export declare function fetchCheckItemsForRegions(instanceId: string, regions: CheckTableRegionRef[]): Promise<{
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Wtbl, Wtc } from '../../../core/model/document';
|
|
2
|
+
import { TableCellSelectionBounds } from './validate-table-selection';
|
|
3
|
+
export type NestedTableMutexReason = 'cell-has-nested' | 'outer-has-region';
|
|
4
|
+
/**
|
|
5
|
+
* 业务表/数据表互斥校验(内外表)
|
|
6
|
+
*
|
|
7
|
+
* 规则 3:内表已标业务/数据区 → 外表该单元格不支持再标(被规则 4 涵盖)
|
|
8
|
+
* 规则 4:外表选中单元格含有内表 → 不支持标为业务/数据表
|
|
9
|
+
* 内表视角:外层宿主单元格已被外表标为业务/数据区 → 内表不支持再标
|
|
10
|
+
*
|
|
11
|
+
* @param table 当前操作的表格(外表或内表)
|
|
12
|
+
* @param bounds 当前光标选区对应的单元格范围(来自 resolveTableCellSelectionBounds)
|
|
13
|
+
*/
|
|
14
|
+
export declare function validateNestedTableRegionMutex(table: Wtbl, bounds?: TableCellSelectionBounds | null): {
|
|
15
|
+
ok: boolean;
|
|
16
|
+
existingLabel?: string;
|
|
17
|
+
reason?: NestedTableMutexReason;
|
|
18
|
+
};
|
|
19
|
+
export declare function getNestedTableRegionMutexMessage(reason?: NestedTableMutexReason, existingLabel?: string): string;
|
|
20
|
+
/**
|
|
21
|
+
* 校验互斥并弹出警告。返回 true 表示可以继续标记。
|
|
22
|
+
*/
|
|
23
|
+
export declare function assertNestedTableRegionMutex(table: Wtbl, bounds?: TableCellSelectionBounds | null): boolean;
|
|
24
|
+
/**
|
|
25
|
+
* 设置子表前的综合校验(嵌套互斥 + 同一行唯一子表)
|
|
26
|
+
*/
|
|
27
|
+
export declare function assertSubTableRegionPlacement(table: Wtbl, bounds?: TableCellSelectionBounds | null): boolean;
|
|
28
|
+
/**
|
|
29
|
+
* 从起止单元格构造互斥校验所需的 bounds。
|
|
30
|
+
*/
|
|
31
|
+
export declare function buildBoundsFromCellRange(startCell: Wtc, endCell: Wtc): TableCellSelectionBounds | null;
|
|
@@ -18,6 +18,14 @@ export type ValidateTableSelectionOptions = {
|
|
|
18
18
|
/** 与这些类型区域重叠时不视为非法 */
|
|
19
19
|
ignoreOverlapTypes?: string[];
|
|
20
20
|
};
|
|
21
|
+
/**
|
|
22
|
+
* 同一行并排多个子表(列不重叠)时,布局展开只保留后设 region,需提前拦截。
|
|
23
|
+
* 若选区与已有 region 重叠,交由 findCrossRegion 处理,此处返回 undefined。
|
|
24
|
+
*/
|
|
25
|
+
export declare function findSameRowSubTableConflict(table: Wtbl, bounds: TableCellSelectionBounds): TableRegion | undefined;
|
|
26
|
+
export declare function getSameRowSubTableConflictMessage(existing?: TableRegion): string;
|
|
27
|
+
/** 校验通过返回 true;冲突时弹出提示并返回 false */
|
|
28
|
+
export declare function assertSameRowSubTableAllowed(table: Wtbl, bounds: TableCellSelectionBounds): boolean;
|
|
21
29
|
/** 解析已有逻辑区域的展示名称 */
|
|
22
30
|
export declare function resolveTableRegionLabel(region: TableRegion): string;
|
|
23
31
|
/** 从当前光标选区解析表格单元格范围 */
|
|
@@ -14,3 +14,4 @@ export * from './design/hooks/on-subtable-create';
|
|
|
14
14
|
export * from './design/hooks/on-field-attach';
|
|
15
15
|
export * from './design/hooks/on-repeating-default-props';
|
|
16
16
|
export * from './design/validate-table-selection';
|
|
17
|
+
export * from './design/validate-nested-table-region';
|