@gct-paas/word 0.1.73-patch.1 → 0.1.73-patch.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/base/utils/image-size-util.d.ts +2 -0
- package/dist/core/command/commands/InsertTable.d.ts +4 -0
- package/dist/core/constants/index.d.ts +1 -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/templates/tableCell.template.d.ts +2 -0
- package/dist/core/view/Table.d.ts +13 -0
- package/dist/core/view/TableCell.d.ts +2 -1
- 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 +2535 -1414
- 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/word.css +66 -66
- package/package.json +1 -1
|
@@ -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';
|