@gct-paas/word 0.1.32 → 0.1.34
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/input/src/input.vue.d.ts +1 -1
- package/dist/base/input/src/text-area.vue.d.ts +1 -1
- package/dist/base/table/src/table.vue.d.ts +1 -1
- package/dist/core/command/commands/InsertField.d.ts +22 -2
- package/dist/core/data/DataManager.d.ts +40 -12
- package/dist/core/layout/handlers/fields/FieldBaseHandler.d.ts +1 -0
- package/dist/core/layout/linkSubTableLayout.d.ts +27 -0
- package/dist/core/layout/providers/TableInfoProvider.d.ts +2 -3
- package/dist/core/model/DocModel.d.ts +9 -0
- package/dist/core/model/document/Wtbl/RegionManager.d.ts +47 -10
- package/dist/core/model/document/Wtc.d.ts +20 -15
- package/dist/core/model/document/wtcRegionRef.d.ts +20 -0
- package/dist/core/model/logic/{Region.d.ts → base/Region.d.ts} +2 -5
- package/dist/core/model/logic/{SubTableHeaderRegion.d.ts → header/SubTableHeaderRegion.d.ts} +3 -6
- package/dist/core/model/logic/{TableHeaderRegion.d.ts → header/TableHeaderRegion.d.ts} +3 -3
- package/dist/core/model/logic/index.d.ts +18 -22
- package/dist/core/model/logic/{BoundedItemRegion.d.ts → subtable/bounded/BoundedItemRegion.d.ts} +5 -1
- package/dist/core/model/logic/{BoundedRegion.d.ts → subtable/bounded/BoundedRegion.d.ts} +7 -9
- package/dist/core/model/logic/subtable/link/CheckTableRegion.d.ts +11 -0
- package/dist/core/model/logic/subtable/link/DataGroup2DRegion.d.ts +15 -0
- package/dist/core/model/logic/subtable/link/LinkSubTableRegion.d.ts +48 -0
- package/dist/core/model/logic/subtable/link/_2DTableRegion.d.ts +11 -0
- package/dist/core/model/logic/{RepeatingRegion.d.ts → subtable/repeating/RepeatingRegion.d.ts} +7 -9
- package/dist/core/model/logic/subtable/shared/dataGroupSlotCount.d.ts +18 -0
- package/dist/core/model/logic/subtable/shared/itemRegionOps.d.ts +11 -0
- package/dist/core/model/logic/subtable/shared/regionValuePath.d.ts +8 -0
- package/dist/core/model/logic/types.d.ts +10 -0
- package/dist/core/utils/expand.d.ts +49 -18
- package/dist/core/view/TableCell.d.ts +3 -7
- package/dist/core/view/runs/ImageWidget.d.ts +6 -0
- package/dist/core/view/runs/TextWidget.d.ts +6 -0
- package/dist/index.es.js +1968 -1254
- package/dist/runtime/canvas/table/utils/index.d.ts +2 -2
- package/dist/runtime/factories/createDesignWidgetFactory.d.ts +17 -0
- package/dist/runtime/factories/{useRenderData.d.ts → useWidgetRenderData.d.ts} +18 -6
- package/dist/runtime/renderer/dropdowns/components/tables/rdo-table-dropdown.vue.d.ts +3 -3
- package/dist/runtime/renderer/dropdowns/components/tables/table-dropdown.vue.d.ts +3 -3
- package/dist/utils/func/core.d.ts +62 -18
- package/dist/utils/func/render.d.ts +4 -1
- package/dist/word.css +153 -153
- package/package.json +1 -1
- package/dist/core/model/logic/CheckTableRegion.d.ts +0 -44
- package/dist/core/model/logic/DataGroup2DRegion.d.ts +0 -12
- package/dist/core/model/logic/_2DTableRegion.d.ts +0 -44
- package/dist/runtime/factories/createFieldToWidgetFactory.d.ts +0 -13
- package/dist/runtime/factories/createPaperWidgetToWidgetFactory.d.ts +0 -13
- package/dist/runtime/factories/usePwRenderData.d.ts +0 -13
package/package.json
CHANGED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { Wtbl } from '../document';
|
|
2
|
-
import { Region, RegionOptions } from './Region';
|
|
3
|
-
import { RegionJson } from '../types';
|
|
4
|
-
import { DataGroup2DRegion, DataGroup2DRegionOptions } from './DataGroup2DRegion';
|
|
5
|
-
export type CheckTableWidgetPropsMeta = {
|
|
6
|
-
/** 引用填充(撑满固定表)*/
|
|
7
|
-
autoFill: boolean;
|
|
8
|
-
refColField: string | undefined;
|
|
9
|
-
refRowField: string | undefined;
|
|
10
|
-
[key: string]: any;
|
|
11
|
-
};
|
|
12
|
-
export type CheckTableWidgetMeta = {
|
|
13
|
-
props: CheckTableWidgetPropsMeta;
|
|
14
|
-
};
|
|
15
|
-
export type CheckTableRegionOptions = RegionOptions & {
|
|
16
|
-
name: string;
|
|
17
|
-
valuePath: string;
|
|
18
|
-
widgetMeta: CheckTableWidgetMeta;
|
|
19
|
-
itemRegion?: DataGroup2DRegion;
|
|
20
|
-
};
|
|
21
|
-
export type CheckTableRegionJson = RegionJson & {
|
|
22
|
-
name: string;
|
|
23
|
-
valuePath: string;
|
|
24
|
-
widgetMeta: CheckTableWidgetMeta;
|
|
25
|
-
itemRegion?: any;
|
|
26
|
-
};
|
|
27
|
-
export declare class CheckTableRegion extends Region {
|
|
28
|
-
type: "check-table";
|
|
29
|
-
name: string;
|
|
30
|
-
valuePath: string;
|
|
31
|
-
widgetMeta: CheckTableWidgetMeta;
|
|
32
|
-
itemRegion?: DataGroup2DRegion;
|
|
33
|
-
constructor(options: CheckTableRegionOptions);
|
|
34
|
-
/**
|
|
35
|
-
* 序列化为 JSON 对象
|
|
36
|
-
*/
|
|
37
|
-
toJSON(): CheckTableRegionJson;
|
|
38
|
-
/**
|
|
39
|
-
* 从 JSON 对象还原
|
|
40
|
-
*/
|
|
41
|
-
static fromJSON(json: CheckTableRegionJson, table: Wtbl): CheckTableRegion;
|
|
42
|
-
setItemRegion(options: Omit<DataGroup2DRegionOptions, 'table'>): DataGroup2DRegion;
|
|
43
|
-
removeItemRegion(): void;
|
|
44
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Region, RegionOptions } from './Region';
|
|
2
|
-
import { CheckTableRegion } from './CheckTableRegion';
|
|
3
|
-
import { _2DTableRegion } from './_2DTableRegion';
|
|
4
|
-
export type DataGroup2DRegionOptions = RegionOptions & {
|
|
5
|
-
parent?: CheckTableRegion | _2DTableRegion;
|
|
6
|
-
};
|
|
7
|
-
export declare class DataGroup2DRegion extends Region {
|
|
8
|
-
type: "dataGroup2D";
|
|
9
|
-
parent?: CheckTableRegion | _2DTableRegion;
|
|
10
|
-
constructor(options: DataGroup2DRegionOptions);
|
|
11
|
-
remove(): void;
|
|
12
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { Wtbl } from '../document';
|
|
2
|
-
import { Region, RegionOptions } from './Region';
|
|
3
|
-
import { RegionJson } from '../types';
|
|
4
|
-
import { DataGroup2DRegion, DataGroup2DRegionOptions } from './DataGroup2DRegion';
|
|
5
|
-
export type _2DTableWidgetPropsMeta = {
|
|
6
|
-
/** 引用填充(撑满固定表)*/
|
|
7
|
-
autoFill: boolean;
|
|
8
|
-
refColField: string | undefined;
|
|
9
|
-
refRowField: string | undefined;
|
|
10
|
-
[key: string]: any;
|
|
11
|
-
};
|
|
12
|
-
export type _2DTableWidgetMeta = {
|
|
13
|
-
props: _2DTableWidgetPropsMeta;
|
|
14
|
-
};
|
|
15
|
-
export type _2DTableRegionOptions = RegionOptions & {
|
|
16
|
-
name: string;
|
|
17
|
-
valuePath: string;
|
|
18
|
-
widgetMeta: _2DTableWidgetMeta;
|
|
19
|
-
itemRegion?: DataGroup2DRegion;
|
|
20
|
-
};
|
|
21
|
-
export type _2DTableRegionJson = RegionJson & {
|
|
22
|
-
name: string;
|
|
23
|
-
valuePath: string;
|
|
24
|
-
widgetMeta: _2DTableWidgetMeta;
|
|
25
|
-
itemRegion?: any;
|
|
26
|
-
};
|
|
27
|
-
export declare class _2DTableRegion extends Region {
|
|
28
|
-
type: "2d-table";
|
|
29
|
-
name: string;
|
|
30
|
-
valuePath: string;
|
|
31
|
-
widgetMeta: _2DTableWidgetMeta;
|
|
32
|
-
itemRegion?: DataGroup2DRegion;
|
|
33
|
-
constructor(options: _2DTableRegionOptions);
|
|
34
|
-
/**
|
|
35
|
-
* 序列化为 JSON 对象
|
|
36
|
-
*/
|
|
37
|
-
toJSON(): _2DTableRegionJson;
|
|
38
|
-
/**
|
|
39
|
-
* 从 JSON 对象还原
|
|
40
|
-
*/
|
|
41
|
-
static fromJSON(json: _2DTableRegionJson, table: Wtbl): _2DTableRegion;
|
|
42
|
-
setItemRegion(options: Omit<DataGroup2DRegionOptions, 'table'>): DataGroup2DRegion;
|
|
43
|
-
removeItemRegion(): void;
|
|
44
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { FIELD_TYPE } from '../../domain/field/field-type';
|
|
2
|
-
import { FieldMeta } from '../../capabilities/model-field-runtime';
|
|
3
|
-
import { FieldManifest } from '../../capabilities/field-manifest';
|
|
4
|
-
import { WidgetMeta } from '../../core';
|
|
5
|
-
export interface CreateWidgetFromFieldOptions {
|
|
6
|
-
/** 主从关联字段 key */
|
|
7
|
-
parentFieldKey?: string;
|
|
8
|
-
/** 插入来源 */
|
|
9
|
-
source?: 'palette';
|
|
10
|
-
/** 覆盖默认 props */
|
|
11
|
-
overrideProps?: Record<string, any>;
|
|
12
|
-
}
|
|
13
|
-
export declare function createDesignFieldToWidgetFactory(getFieldManifest: (type: FIELD_TYPE) => FieldManifest | undefined): (field: FieldMeta, opts?: CreateWidgetFromFieldOptions) => WidgetMeta;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { WidgetMeta } from '../../core';
|
|
2
|
-
import { PaperWidgetManifest } from '../../capabilities/paper-widget-manifest';
|
|
3
|
-
import { PAPER_WIDGET_TYPE } from '../../domain/paper-widget/paper-widget-type';
|
|
4
|
-
import { PaperWidgetMeta } from '../../capabilities/model-field-runtime/types/paper-widget';
|
|
5
|
-
export interface CreateWidgetFromFieldOptions {
|
|
6
|
-
/** 主从关联字段 key */
|
|
7
|
-
parentFieldKey?: string;
|
|
8
|
-
/** 插入来源 */
|
|
9
|
-
source?: 'palette';
|
|
10
|
-
/** 覆盖默认 props */
|
|
11
|
-
overrideProps?: Record<string, any>;
|
|
12
|
-
}
|
|
13
|
-
export declare function createDesignPaperWidgetToWidgetFactory(getPaperWidgetManifest: (type: PAPER_WIDGET_TYPE) => PaperWidgetManifest | undefined): (widget: PaperWidgetMeta, opts?: CreateWidgetFromFieldOptions) => WidgetMeta;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { WidgetMeta } from '../../core';
|
|
2
|
-
export declare function usePaperWidgetMeta(widget: any): {
|
|
3
|
-
pageWidgetMeta: import('vue').ComputedRef<WidgetMeta>;
|
|
4
|
-
pageWidgetProps: import('vue').ComputedRef<WidgetPropsMeta>;
|
|
5
|
-
widgetType: import('vue').ComputedRef<import('../../domain/widget/component-type').ExternalComponentType>;
|
|
6
|
-
};
|
|
7
|
-
export declare function usePaperWidgetStaticAttrs(widget: any): {
|
|
8
|
-
docInst: import('vue').ShallowRef<import('../../core').Doc>;
|
|
9
|
-
isDesignMode: import('vue').ComputedRef<boolean>;
|
|
10
|
-
pageWidgetMeta: import('vue').ComputedRef<WidgetMeta>;
|
|
11
|
-
pageWidgetProps: import('vue').ComputedRef<WidgetPropsMeta>;
|
|
12
|
-
widgetType: import('vue').ComputedRef<import('../../domain/widget/component-type').ExternalComponentType>;
|
|
13
|
-
};
|