@gct-paas/word 0.1.17 → 0.1.19
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/calendar/src/calendar.vue.d.ts +6 -4
- package/dist/base/calendar/src/time.vue.d.ts +1 -0
- package/dist/core/command/commands/Backspace.d.ts +2 -0
- package/dist/core/command/commands/MergeCells.d.ts +7 -1
- package/dist/core/command/commands/UnmergeCells.d.ts +7 -1
- package/dist/core/command/types.d.ts +2 -0
- package/dist/core/data/DataManager.d.ts +9 -0
- package/dist/core/event/types.d.ts +1 -1
- package/dist/core/index.d.ts +2 -5
- package/dist/core/interaction/InteractionController.d.ts +4 -0
- package/dist/core/interaction/types.d.ts +3 -0
- package/dist/core/interaction/useInteraction.d.ts +2 -0
- package/dist/core/layout/handlers/ImageHandler.d.ts +1 -0
- package/dist/core/layout/handlers/TextHandler.d.ts +5 -0
- package/dist/core/layout/handlers/base/BaseHandler.d.ts +5 -0
- package/dist/core/layout/handlers/fields/BaseHandler.d.ts +6 -1
- package/dist/core/model/DocModel.d.ts +1 -0
- package/dist/core/model/base/ModelGroup.d.ts +6 -0
- package/dist/core/model/document/Wtr.d.ts +2 -2
- package/dist/core/model/document/WtrPr.d.ts +13 -1
- package/dist/core/model/footers/Wfooter.d.ts +6 -0
- package/dist/core/model/headers/Wheader.d.ts +6 -0
- package/dist/core/model/helpers.d.ts +15 -0
- package/dist/core/model/images/Wimages.d.ts +12 -0
- package/dist/core/utils/expand.d.ts +3 -1
- package/dist/core/view/TableCell.d.ts +2 -0
- package/dist/core/view/TableRow.d.ts +3 -0
- package/dist/core/view/base/LayoutNode.d.ts +3 -0
- package/dist/core/widget/widget-state.d.ts +14 -5
- package/dist/index.es.js +2032 -1195
- package/dist/runtime/canvas/doc-layout.vue.d.ts +2 -1
- package/dist/runtime/canvas/table/utils/index.d.ts +1 -0
- package/dist/runtime/canvas/table/utils/useTableSelection.d.ts +2 -0
- package/dist/runtime/designer/main/editable-canvas.vue.d.ts +2 -2
- package/dist/runtime/designer/ribbon/components/sub-table-form-modal.vue.d.ts +6 -6
- package/dist/runtime/factories/modules/useSpecificConfig.d.ts +2 -0
- package/dist/runtime/factories/useRenderData.d.ts +1 -1
- package/dist/runtime/factories/useWidgetInitializer.d.ts +11 -0
- package/dist/runtime/renderer/main/preview-canvas.vue.d.ts +2 -2
- package/dist/sdk/doc-runtime/factories/useDocumentFactory.d.ts +7 -1
- package/dist/sdk/engine/index.d.ts +3 -3
- package/dist/sdk/types/index.d.ts +11 -0
- package/dist/sdk/vue/layouts/doc-render-layout.vue.d.ts +2 -2
- package/dist/{core/sdk → utils/composables}/usePagesToPdf.d.ts +1 -1
- package/dist/utils/func/core.d.ts +26 -9
- package/dist/utils/func/field.d.ts +13 -0
- package/dist/utils/func/file.d.ts +1 -1
- package/dist/utils/func/form.d.ts +5 -0
- package/dist/utils/func/render.d.ts +10 -1
- package/dist/word.css +349 -305
- package/package.json +1 -2
- package/dist/base/utils/unit-converter-util.d.ts +0 -18
- package/dist/core/render/KonvaRenderer.d.ts +0 -46
- package/dist/core/render/RendererFactory.d.ts +0 -4
- package/dist/core/render/types.d.ts +0 -9
- package/dist/core/sdk/createDoc.d.ts +0 -2
- package/dist/runtime/interface/utils.d.ts +0 -12
- /package/dist/core/{sdk → utils}/DocPubApiContext.d.ts +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gct-paas/word",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.19",
|
|
4
4
|
"description": "GCT 在线 word",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vue",
|
|
@@ -43,7 +43,6 @@
|
|
|
43
43
|
"@vueuse/core": "^14.1.0",
|
|
44
44
|
"async-validator": "^4.2.5",
|
|
45
45
|
"bignumber.js": "^9.3.1",
|
|
46
|
-
"css-unit-converter": "^1.1.2",
|
|
47
46
|
"dayjs": "^1.11.19",
|
|
48
47
|
"hotkeys-js": "4.0.0-beta.7",
|
|
49
48
|
"less": "^4.4.2",
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { CSSUnits } from 'css-unit-converter';
|
|
2
|
-
/**
|
|
3
|
-
* CSS单位转换工具类
|
|
4
|
-
*/
|
|
5
|
-
export declare class UnitConverter {
|
|
6
|
-
/**
|
|
7
|
-
* 转换CSS单位
|
|
8
|
-
*/
|
|
9
|
-
static convert(value: number, from: CSSUnits, to: CSSUnits): number;
|
|
10
|
-
/**
|
|
11
|
-
* mm转px
|
|
12
|
-
*/
|
|
13
|
-
static mmToPx(mm: number): number;
|
|
14
|
-
/**
|
|
15
|
-
* px转mm
|
|
16
|
-
*/
|
|
17
|
-
static pxToMm(px: number): number;
|
|
18
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { default as Konva } from 'konva';
|
|
2
|
-
import { Renderer } from './types';
|
|
3
|
-
import { Doc } from '../view/Doc';
|
|
4
|
-
import { Page } from '../view/Page';
|
|
5
|
-
import { Paragraph } from '../view/Paragraph';
|
|
6
|
-
import { ImageRun } from '../view/runs/ImageRun';
|
|
7
|
-
import { TextRun } from '../view/runs/TextRun';
|
|
8
|
-
import { Table } from '../view/Table';
|
|
9
|
-
import { TableRow } from '../view/TableRow';
|
|
10
|
-
import { TableCell } from '../view/TableCell';
|
|
11
|
-
export declare class KonvaRenderer implements Renderer {
|
|
12
|
-
private stage;
|
|
13
|
-
private layer;
|
|
14
|
-
init(container: HTMLElement): void;
|
|
15
|
-
renderDoc(doc: Doc): void;
|
|
16
|
-
renderPage(page: Page): void;
|
|
17
|
-
/**
|
|
18
|
-
* 渲染表格
|
|
19
|
-
* @param container 父容器
|
|
20
|
-
* @param table 表格实例
|
|
21
|
-
*/
|
|
22
|
-
renderTable(container: Konva.Group, table: Table): void;
|
|
23
|
-
/**
|
|
24
|
-
* 渲染表格行
|
|
25
|
-
* @param container 表格容器
|
|
26
|
-
* @param row 行实例
|
|
27
|
-
* @param yOffset 行的 Y 偏移
|
|
28
|
-
* @param rowIndex 行索引
|
|
29
|
-
*/
|
|
30
|
-
renderTableRow(container: Konva.Group, row: TableRow, yOffset: number, rowIndex: number): void;
|
|
31
|
-
/**
|
|
32
|
-
* 渲染表格单元格
|
|
33
|
-
* @param container 行容器
|
|
34
|
-
* @param cell 单元格实例
|
|
35
|
-
* @param x 单元格 X 坐标
|
|
36
|
-
* @param y 单元格 Y 坐标
|
|
37
|
-
* @param width 单元格宽度
|
|
38
|
-
* @param height 单元格高度
|
|
39
|
-
*/
|
|
40
|
-
renderTableCell(container: Konva.Group, cell: TableCell, x: number, y: number, width: number, height: number): void;
|
|
41
|
-
renderParagraph(container: Konva.Group, paragraph: Paragraph, index: number): void;
|
|
42
|
-
renderText(container: Konva.Group, run: TextRun): void;
|
|
43
|
-
renderImage(container: Konva.Group, run: ImageRun): void;
|
|
44
|
-
clear(): void;
|
|
45
|
-
destroy(): void;
|
|
46
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { FieldMeta } from '../../capabilities/model-field-runtime';
|
|
2
|
-
/** 查找字段组件 */
|
|
3
|
-
export declare function findFieldWidget(instances: any[], fieldKey: string, modelKey: string): any;
|
|
4
|
-
/** 数据转成真实提交数据(二维表要平铺) */
|
|
5
|
-
export declare function getSubmitFormData(formData: any): any;
|
|
6
|
-
/** 转换formState */
|
|
7
|
-
export declare function conversionFormState(payload: {
|
|
8
|
-
/** 主从关联字段列表 */
|
|
9
|
-
masterSlaveList: FieldMeta[];
|
|
10
|
-
/** 渲染数据列表 */
|
|
11
|
-
interfaceData: any;
|
|
12
|
-
}): Record<string, any>;
|
|
File without changes
|