@gct-paas/word 0.1.63-beta.1 → 0.1.63-beta.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/assets/theme/index.d.ts +1 -0
- package/dist/base/icon/src/icon.vue.d.ts +1 -1
- package/dist/base/input/src/input.vue.d.ts +1 -1
- package/dist/base/rdo-tree-select/src/rdo-tree-select.vue.d.ts +1 -1
- package/dist/base/table/src/table.vue.d.ts +1 -1
- package/dist/capabilities/component-registry/registry.d.ts +1 -1
- package/dist/capabilities/component-registry/service.d.ts +1 -1
- package/dist/capabilities/component-registry/types.d.ts +1 -1
- package/dist/capabilities/field-manifest/service.d.ts +1 -2
- package/dist/capabilities/field-manifest/types.d.ts +1 -1
- package/dist/capabilities/model-field-runtime/types/paper-widget.d.ts +1 -1
- package/dist/capabilities/paper-widget-manifest/registry.d.ts +1 -1
- package/dist/capabilities/paper-widget-manifest/service.d.ts +1 -1
- package/dist/capabilities/paper-widget-manifest/types.d.ts +1 -2
- package/dist/core/command/commands/InsertField.d.ts +1 -1
- package/dist/core/constants/component.d.ts +27 -0
- package/dist/core/constants/doc-mode.d.ts +10 -0
- package/dist/core/constants/index.d.ts +3 -68
- package/dist/core/constants/paper.d.ts +31 -0
- package/dist/core/data/enrichers/enrich-design-defaults.d.ts +1 -1
- package/dist/core/data/enrichers/hyperlink-enricher.d.ts +1 -1
- package/dist/core/data/enrichers/id-enricher.d.ts +1 -1
- package/dist/core/data/enrichers/label-enricher.d.ts +1 -2
- package/dist/core/data/enrichers/label-resolve.d.ts +1 -1
- package/dist/{domain/field/of-inst-num → core/data/enrichers}/of-inst-num-enricher.d.ts +3 -3
- package/dist/core/data/index.d.ts +1 -0
- package/dist/{utils/func/render.d.ts → core/data/submit/form-state.d.ts} +2 -2
- package/dist/core/index.d.ts +7 -6
- package/dist/core/layout/attach-field/AttachFieldContext.d.ts +1 -1
- package/dist/core/{utils → layout/image}/adaptive-image-cell.d.ts +8 -8
- package/dist/core/layout/providers/TableInfoProvider.d.ts +1 -1
- package/dist/core/{utils/index.d.ts → layout/shared/helpers.d.ts} +1 -0
- package/dist/core/layout/{linkSubTableLayout.d.ts → table/link-sub-table-layout.d.ts} +1 -1
- package/dist/core/{utils/splitTable.d.ts → layout/table/split-table.d.ts} +1 -1
- package/dist/core/{utils/expand.d.ts → layout/table/table-expand.d.ts} +5 -5
- package/dist/core/model/document/WrText.d.ts +1 -1
- package/dist/core/view/TableCell.d.ts +1 -1
- package/dist/core/{utils → view/context}/DocPubApiContext.d.ts +3 -3
- package/dist/core/view/runs/ImageWidget.d.ts +1 -1
- package/dist/core/view/runs/TextWidget.d.ts +1 -1
- package/dist/core/widget/{field-hyperlink.d.ts → hyperlink.d.ts} +1 -1
- package/dist/core/widget/index.d.ts +5 -0
- package/dist/core/widget/{widget-state.d.ts → state.d.ts} +1 -1
- package/dist/core/widget/types.d.ts +190 -0
- package/dist/domain/constants/enum/form.d.ts +56 -0
- package/dist/domain/constants/enum/image.d.ts +15 -0
- package/dist/domain/constants/enum/index.d.ts +5 -0
- package/dist/domain/constants/enum/signature.d.ts +30 -0
- package/dist/domain/constants/enum/view.d.ts +79 -0
- package/dist/domain/constants/enum/widget.d.ts +48 -0
- package/dist/domain/field/field-type.d.ts +6 -0
- package/dist/{utils/func/form.d.ts → domain/field/form-value.d.ts} +4 -2
- package/dist/domain/field/index.d.ts +1 -1
- package/dist/domain/table/business/shared/change-parse-rule.d.ts +1 -1
- package/dist/domain/table/business/shared/scan-action.d.ts +2 -2
- package/dist/domain/table/business/warehouse/warehouse-allocate/runtime/before-btn-click.d.ts +1 -1
- package/dist/domain/table/business/warehouse/warehouse-inventory/runtime/stocktake-calc.d.ts +1 -1
- package/dist/domain/table/types.d.ts +2 -0
- package/dist/index.es.js +283 -233
- package/dist/runtime/_register_/context/DesignSuiteContext.d.ts +2 -3
- package/dist/runtime/canvas/__common__/widget-container/overlay-layer.vue.d.ts +1 -1
- package/dist/runtime/canvas/constants/index.d.ts +1 -0
- package/dist/runtime/canvas/table/render/label-parse-rule/useLabelParsingRules.d.ts +1 -1
- package/dist/runtime/canvas/table/render/material-consume/bom-validator.d.ts +1 -1
- package/dist/runtime/canvas/table/render/material-consume/context-key.d.ts +2 -0
- package/dist/runtime/canvas/table/render/material-consume/index.d.ts +1 -0
- package/dist/runtime/canvas/table/render/material-consume/material-consume-table-controller.d.ts +3 -3
- package/dist/runtime/canvas/table/render/material-consume/service.d.ts +1 -1
- package/dist/runtime/canvas/table/render/material-consume/tmpl-bom-controller.d.ts +1 -1
- package/dist/runtime/canvas/table/render/material-consume/uom-convert-runtime.d.ts +1 -1
- package/dist/runtime/factories/createDesignWidgetFactory.d.ts +2 -2
- package/dist/runtime/factories/useWidgetRenderData.d.ts +7 -7
- package/dist/runtime/interface/computed.d.ts +1 -1
- package/dist/runtime/renderer/dialogs/device-scan/device-scan-dialog.vue.d.ts +3 -3
- package/dist/runtime/renderer/dialogs/dialog-container.vue.d.ts +1 -1
- package/dist/{core/widget/e-sop-view.d.ts → runtime/renderer/dialogs/e-sop-view/open-e-sop-view.d.ts} +1 -2
- package/dist/runtime/renderer/dialogs/signature/signature-dialog.vue.d.ts +1 -1
- package/dist/runtime/renderer/dialogs/upload-file/upload-file-dialog.vue.d.ts +1 -1
- package/dist/runtime/renderer/dialogs/upload-image/upload-image-dialog.vue.d.ts +1 -1
- package/dist/runtime/renderer/dropdowns/components/dropdown-container.vue.d.ts +1 -1
- 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/runtime/renderer/dropdowns/factories/dropdown-factory.d.ts +1 -1
- package/dist/sdk/doc-runtime/composables/useDocOperations.d.ts +1 -2
- package/dist/sdk/setup.d.ts +1 -1
- package/dist/sdk/types/index.d.ts +2 -1
- package/dist/suites/edhr/component/index.d.ts +1 -1
- package/dist/suites/edhr/manifest/field/_common_/basic.d.ts +1 -1
- package/dist/suites/edhr/manifest/paper-widget/index.d.ts +1 -1
- package/dist/suites/edhr/panel-schema/material-consume-table/bom-entry-editor.vue.d.ts +1 -1
- package/dist/suites/edhr/panel-schema/material-consume-table/parse-rule-add-btn.vue.d.ts +1 -1
- package/dist/suites/edhr/panel-schema/rule/utils/uom-convert-rule.d.ts +3 -1
- package/dist/suites/shared/hooks/useFieldPanelMeta.d.ts +1 -1
- package/dist/suites/shared/panel/config/editor/attach-fields-editor/types.d.ts +1 -1
- package/dist/suites/shared/panel/config/editor/date-format-editor/logic.d.ts +1 -1
- package/dist/suites/shared/panel/config/editor/ref-autofill-editor/autofill-runtime.d.ts +1 -1
- package/dist/suites/shared/panel/config/editor/single-field-editor/types.d.ts +1 -1
- package/dist/suites/shared/panel/modules/field-dependency-module/field-dependency-modal.vue.d.ts +1 -1
- package/dist/suites/shared/panel/modules/field-dependency-module/field-dependency-module.vue.d.ts +1 -1
- package/dist/suites/shared/panel/modules/field-formula-module/field-formula-module.vue.d.ts +1 -1
- package/dist/suites/shared/panel/modules/field-formula-module/formula-field-options.d.ts +1 -1
- package/dist/{types → suites/shared/panel/types}/formula.type.d.ts +2 -2
- package/dist/utils/symbol/contextKey.d.ts +0 -2
- package/dist/word.css +411 -411
- package/package.json +1 -1
- package/dist/core/widget/widget-meta.d.ts +0 -72
- package/dist/domain/constants/enum.d.ts +0 -228
- package/dist/domain/field/field-binding.d.ts +0 -74
- package/dist/domain/field/of-inst-num/index.d.ts +0 -1
- package/dist/domain/field/resolve-field-type.d.ts +0 -7
- package/dist/domain/paper-widget/paper-widget-type.d.ts +0 -18
- package/dist/domain/paper-widget/widget-binding.d.ts +0 -8
- package/dist/domain/widget/component-type.d.ts +0 -22
- package/dist/utils/deepEqualJson.d.ts +0 -16
- /package/dist/{domain/constants → assets/theme}/field-state.d.ts +0 -0
- /package/dist/core/{utils → data/formula}/calculate-formula.d.ts +0 -0
- /package/dist/core/{utils/unit-converter-util.d.ts → layout/shared/unit-converter.d.ts} +0 -0
- /package/dist/{types/material.type.d.ts → domain/table/business/material/types.d.ts} +0 -0
- /package/dist/{types/warehouse-allocate.type.d.ts → domain/table/business/warehouse/warehouse-allocate/types.d.ts} +0 -0
- /package/dist/{types/warehouse-inventory.type.d.ts → domain/table/business/warehouse/warehouse-inventory/types.d.ts} +0 -0
- /package/dist/{domain/constants/canvas.d.ts → runtime/canvas/constants/base-attrs.d.ts} +0 -0
- /package/dist/{types/main.type.d.ts → sdk/types/action-button.d.ts} +0 -0
- /package/dist/utils/{ServiceUtil.d.ts → adapters/ServiceUtil.d.ts} +0 -0
- /package/dist/utils/{TriggerUtil.d.ts → adapters/TriggerUtil.d.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { FieldStateColors } from './field-state';
|
|
@@ -5,8 +5,8 @@ type __VLS_Props = {
|
|
|
5
5
|
icon: string;
|
|
6
6
|
};
|
|
7
7
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
8
|
+
version: "v1" | "v2";
|
|
8
9
|
color: string;
|
|
9
10
|
size: number | string;
|
|
10
|
-
version: "v1" | "v2";
|
|
11
11
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
12
12
|
export default _default;
|
|
@@ -41,9 +41,9 @@ declare const __VLS_component: import('vue').DefineComponent<GctInputProps, {
|
|
|
41
41
|
onKeyup?: ((event: KeyboardEvent) => any) | undefined;
|
|
42
42
|
onPressEnter?: ((event: KeyboardEvent) => any) | undefined;
|
|
43
43
|
}>, {
|
|
44
|
-
name: string;
|
|
45
44
|
type: import('./types').InputType;
|
|
46
45
|
id: string;
|
|
46
|
+
name: string;
|
|
47
47
|
readonly: boolean;
|
|
48
48
|
disabled: boolean;
|
|
49
49
|
size: import('./types').InputSize;
|
|
@@ -22,8 +22,8 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
22
22
|
onChange?: ((value?: string | null | undefined, node?: RdoTreeNode | undefined, display?: RdoDisplayInfo | undefined) => any) | undefined;
|
|
23
23
|
"onUpdate:fullPathValue"?: ((value?: string | null | undefined) => any) | undefined;
|
|
24
24
|
}>, {
|
|
25
|
-
disabled: boolean;
|
|
26
25
|
modelCategory: string;
|
|
26
|
+
disabled: boolean;
|
|
27
27
|
placeholder: string;
|
|
28
28
|
pageSize: number;
|
|
29
29
|
popperWidth: number;
|
|
@@ -31,8 +31,8 @@ declare const __VLS_component: import('vue').DefineComponent<TableProps, {}, {},
|
|
|
31
31
|
onSelect?: ((keys: string[]) => any) | undefined;
|
|
32
32
|
"onRow-click"?: ((row: TableRow) => any) | undefined;
|
|
33
33
|
}>, {
|
|
34
|
-
multiple: boolean;
|
|
35
34
|
loading: boolean;
|
|
35
|
+
multiple: boolean;
|
|
36
36
|
size: "small" | "middle" | "large";
|
|
37
37
|
columns: TableColumn[];
|
|
38
38
|
stripe: boolean;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { BaseService } from '../base/BaseService';
|
|
2
2
|
import { FieldManifestRegistry } from './registry';
|
|
3
|
-
import { FieldTypeSource } from '../../domain/field/
|
|
4
|
-
import { FIELD_TYPE } from '../../domain/field/field-type';
|
|
3
|
+
import { FieldTypeSource, FIELD_TYPE } from '../../domain/field/field-type';
|
|
5
4
|
import { FieldManifest } from './types';
|
|
6
5
|
export declare class FieldManifestService extends BaseService<FIELD_TYPE, FieldManifest, FieldManifestRegistry> {
|
|
7
6
|
constructor(suiteKey: SuiteKey);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FieldPropsSchemaKey, FieldComputedConfig } from '../../domain/field/field-props-schema-type';
|
|
2
2
|
import { FIELD_TYPE } from '../../domain/field/field-type';
|
|
3
|
-
import { ExternalComponentType, FieldNodeRenderers } from '../../
|
|
3
|
+
import { ExternalComponentType, FieldNodeRenderers } from '../../core/widget';
|
|
4
4
|
/** 单个字段类型的声明信息 用来确定当前套件“支持哪些字段类型 + 如何渲染 + 如何配置” */
|
|
5
5
|
export interface FieldManifest {
|
|
6
6
|
/** 唯一 key */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PAPER_WIDGET_TYPE } from '../../
|
|
1
|
+
import { PAPER_WIDGET_TYPE } from '../../core/widget';
|
|
2
2
|
import { BaseRegistry } from '../base/BaseRegistry';
|
|
3
3
|
import { PaperWidgetManifest, PaperWidgetManifestMap } from './types';
|
|
4
4
|
export declare class PaperWidgetManifestRegistry extends BaseRegistry<PAPER_WIDGET_TYPE, PaperWidgetManifest> {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseService } from '../base/BaseService';
|
|
2
2
|
import { PaperWidgetManifestRegistry } from './registry';
|
|
3
|
-
import { PAPER_WIDGET_TYPE } from '../../
|
|
3
|
+
import { PAPER_WIDGET_TYPE } from '../../core/widget';
|
|
4
4
|
import { PaperWidgetManifest } from './types';
|
|
5
5
|
export declare class PaperWidgetManifestService extends BaseService<PAPER_WIDGET_TYPE, PaperWidgetManifest, PaperWidgetManifestRegistry> {
|
|
6
6
|
constructor(suiteKey: SuiteKey);
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { ExternalComponentType, PaperWidgetNodeRenderers } from '../../
|
|
2
|
-
import { PAPER_WIDGET_TYPE } from '../../domain/paper-widget/paper-widget-type';
|
|
1
|
+
import { ExternalComponentType, PaperWidgetNodeRenderers, PAPER_WIDGET_TYPE } from '../../core/widget';
|
|
3
2
|
import { PaperWidgetPropsSchemaKey } from '../../domain/paper-widget/paper-widget-props-schema-type';
|
|
4
3
|
export interface PaperWidgetManifest {
|
|
5
4
|
/** 唯一 key */
|
|
@@ -2,7 +2,7 @@ import { CommandBase, PostCommandContext } from '../base/CommandBase';
|
|
|
2
2
|
import { Doc } from '../../view/Doc';
|
|
3
3
|
import { CommandPayloadMap } from '../types';
|
|
4
4
|
import { Wp } from '../../model/document';
|
|
5
|
-
import { WidgetMeta } from '../../widget
|
|
5
|
+
import { WidgetMeta } from '../../widget';
|
|
6
6
|
type InsertFieldCommandOptions = CommandPayloadMap['insertField'];
|
|
7
7
|
export declare class InsertField extends CommandBase<'insertField'> {
|
|
8
8
|
constructor(doc: Doc, payload: InsertFieldCommandOptions);
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ExternalNodeType } from '../widget/types';
|
|
2
|
+
/** 组件类型枚举 */
|
|
3
|
+
export declare const BuiltinComponentTypeConst: {
|
|
4
|
+
/** 纸张 */
|
|
5
|
+
readonly Paper: "paper";
|
|
6
|
+
/** 页眉 */
|
|
7
|
+
readonly Header: "header";
|
|
8
|
+
/** 页脚 */
|
|
9
|
+
readonly Footer: "footer";
|
|
10
|
+
/** 浮层容器 */
|
|
11
|
+
readonly OverlayContainer: "overlay-container";
|
|
12
|
+
readonly OverlayLayout: "overlay-layout";
|
|
13
|
+
/** 段落 */
|
|
14
|
+
readonly Paragraph: "paragraph";
|
|
15
|
+
/** 文本 */
|
|
16
|
+
readonly Text: "text";
|
|
17
|
+
/** 内联图片 */
|
|
18
|
+
readonly InlineImage: "inline-image";
|
|
19
|
+
/** 表格 */
|
|
20
|
+
readonly Table: "table";
|
|
21
|
+
/** 表格行 */
|
|
22
|
+
readonly TableRow: "tableRow";
|
|
23
|
+
/** 表格单元格 */
|
|
24
|
+
readonly TableCell: "tableCell";
|
|
25
|
+
};
|
|
26
|
+
export type BuiltinComponentType = ValueOf<typeof BuiltinComponentTypeConst>;
|
|
27
|
+
export type CompleteComponentType = BuiltinComponentType | ExternalNodeType;
|
|
@@ -1,68 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
/** 纸张 */
|
|
5
|
-
readonly Paper: "paper";
|
|
6
|
-
/** 页眉 */
|
|
7
|
-
readonly Header: "header";
|
|
8
|
-
/** 页脚 */
|
|
9
|
-
readonly Footer: "footer";
|
|
10
|
-
/** 浮层容器 */
|
|
11
|
-
readonly OverlayContainer: "overlay-container";
|
|
12
|
-
readonly OverlayLayout: "overlay-layout";
|
|
13
|
-
/** 段落 */
|
|
14
|
-
readonly Paragraph: "paragraph";
|
|
15
|
-
/** 文本 */
|
|
16
|
-
readonly Text: "text";
|
|
17
|
-
/** 内联图片 */
|
|
18
|
-
readonly InlineImage: "inline-image";
|
|
19
|
-
/** 表格 */
|
|
20
|
-
readonly Table: "table";
|
|
21
|
-
/** 表格行 */
|
|
22
|
-
readonly TableRow: "tableRow";
|
|
23
|
-
/** 表格单元格 */
|
|
24
|
-
readonly TableCell: "tableCell";
|
|
25
|
-
};
|
|
26
|
-
export type BuiltinComponentType = ValueOf<typeof BuiltinComponentTypeConst>;
|
|
27
|
-
export type CompleteComponentType = BuiltinComponentType | ExternalNodeType;
|
|
28
|
-
/** 渲染模式 */
|
|
29
|
-
export declare const DocModeTypeConst: {
|
|
30
|
-
/** 编辑设计(结构、样式) */
|
|
31
|
-
readonly Edit: "edit";
|
|
32
|
-
/** 填写(表单 / 内容) */
|
|
33
|
-
readonly Fill: "fill";
|
|
34
|
-
/** 打印预览 / 打印 */
|
|
35
|
-
readonly Print: "print";
|
|
36
|
-
};
|
|
37
|
-
export type DocModeType = ValueOf<typeof DocModeTypeConst>;
|
|
38
|
-
/** 纸张大小 */
|
|
39
|
-
export declare const PaperSizeConst: {
|
|
40
|
-
/** A3 */
|
|
41
|
-
readonly A3: "A3";
|
|
42
|
-
/** A4 */
|
|
43
|
-
readonly A4: "A4";
|
|
44
|
-
/** A5 */
|
|
45
|
-
readonly A5: "A5";
|
|
46
|
-
/** 自定义 */
|
|
47
|
-
readonly CUSTOM: "CUSTOM";
|
|
48
|
-
};
|
|
49
|
-
export type PaperSize = ValueOf<typeof PaperSizeConst>;
|
|
50
|
-
export type StandardPaperSize = Exclude<PaperSize, 'CUSTOM'>;
|
|
51
|
-
export interface IPaperInfo {
|
|
52
|
-
paperSize: PaperSize;
|
|
53
|
-
mmWidth: number;
|
|
54
|
-
mmHeight: number;
|
|
55
|
-
}
|
|
56
|
-
/** 纸张大小 单位: mm */
|
|
57
|
-
export declare const PaperSizeMmMap: Record<StandardPaperSize, [number, number]>;
|
|
58
|
-
/** 默认纸张大小 单位: mm */
|
|
59
|
-
export declare const DEFAULT_PAGE_SIZE: {
|
|
60
|
-
width: number;
|
|
61
|
-
height: number;
|
|
62
|
-
};
|
|
63
|
-
export declare const DEFAULT_PAGE_PADDING: [number, number, number, number];
|
|
64
|
-
export declare const DEFAULT_CELL_PADDING: [number, number, number, number];
|
|
65
|
-
export declare const DEFAULT_FONT_SIZE = 16;
|
|
66
|
-
export declare const DEFAULT_FONT_FAMILY = "Roboto,RobotoDraft,Helvetica,Arial,sans-serif";
|
|
67
|
-
export declare const DEFAULT_TEXT_COLOR = "black";
|
|
68
|
-
export declare const ZERO_WIDTH_SPACE = "\u200B";
|
|
1
|
+
export * from './component';
|
|
2
|
+
export * from './doc-mode';
|
|
3
|
+
export * from './paper';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/** 纸张大小 */
|
|
2
|
+
export declare const PaperSizeConst: {
|
|
3
|
+
/** A3 */
|
|
4
|
+
readonly A3: "A3";
|
|
5
|
+
/** A4 */
|
|
6
|
+
readonly A4: "A4";
|
|
7
|
+
/** A5 */
|
|
8
|
+
readonly A5: "A5";
|
|
9
|
+
/** 自定义 */
|
|
10
|
+
readonly CUSTOM: "CUSTOM";
|
|
11
|
+
};
|
|
12
|
+
export type PaperSize = ValueOf<typeof PaperSizeConst>;
|
|
13
|
+
export type StandardPaperSize = Exclude<PaperSize, 'CUSTOM'>;
|
|
14
|
+
export interface IPaperInfo {
|
|
15
|
+
paperSize: PaperSize;
|
|
16
|
+
mmWidth: number;
|
|
17
|
+
mmHeight: number;
|
|
18
|
+
}
|
|
19
|
+
/** 纸张大小 单位: mm */
|
|
20
|
+
export declare const PaperSizeMmMap: Record<StandardPaperSize, [number, number]>;
|
|
21
|
+
/** 默认纸张大小 单位: mm */
|
|
22
|
+
export declare const DEFAULT_PAGE_SIZE: {
|
|
23
|
+
width: number;
|
|
24
|
+
height: number;
|
|
25
|
+
};
|
|
26
|
+
export declare const DEFAULT_PAGE_PADDING: [number, number, number, number];
|
|
27
|
+
export declare const DEFAULT_CELL_PADDING: [number, number, number, number];
|
|
28
|
+
export declare const DEFAULT_FONT_SIZE = 16;
|
|
29
|
+
export declare const DEFAULT_FONT_FAMILY = "Roboto,RobotoDraft,Helvetica,Arial,sans-serif";
|
|
30
|
+
export declare const DEFAULT_TEXT_COLOR = "black";
|
|
31
|
+
export declare const ZERO_WIDTH_SPACE = "\u200B";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Doc } from '../../view/Doc';
|
|
2
|
-
import { FieldDataBindingMeta } from '
|
|
2
|
+
import { FieldDataBindingMeta } from '../../widget';
|
|
3
3
|
import { FIELD_TYPE } from '../../../domain/field/field-type';
|
|
4
4
|
import { FieldManifest } from '../../../capabilities/field-manifest';
|
|
5
5
|
import { FieldMeta } from '../../../capabilities/model-field-runtime';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Doc } from '../../view/Doc';
|
|
2
|
-
import { WidgetMeta } from '../../widget
|
|
2
|
+
import { WidgetMeta } from '../../widget';
|
|
3
3
|
import { DataEnricherRegistration } from '../types';
|
|
4
4
|
type HyperlinkEnricherOptions = Omit<DataEnricherRegistration, 'enrich'> & {
|
|
5
5
|
doc: Doc;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Doc } from '../../view/Doc';
|
|
2
|
-
import { WidgetMeta } from '../../widget
|
|
2
|
+
import { WidgetMeta } from '../../widget';
|
|
3
3
|
import { DataEnricherRegistration } from '../types';
|
|
4
4
|
type IdEnricherOptions = Omit<DataEnricherRegistration, 'enrich'> & {
|
|
5
5
|
doc: Doc;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Doc } from '../../view/Doc';
|
|
2
|
-
import { WidgetMeta } from '../../widget
|
|
3
|
-
import { FieldDataBindingMeta } from '../../../domain/field/field-binding';
|
|
2
|
+
import { WidgetMeta, FieldDataBindingMeta } from '../../widget';
|
|
4
3
|
import { FieldManifest } from '../../../capabilities/field-manifest';
|
|
5
4
|
import { FieldMeta } from '../../../capabilities/model-field-runtime';
|
|
6
5
|
import { DataEnricherRegistration } from '../types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FieldDataBindingMeta } from '
|
|
1
|
+
import { FieldDataBindingMeta } from '../../widget';
|
|
2
2
|
import { FIELD_TYPE } from '../../../domain/field/field-type';
|
|
3
3
|
import { FieldManifest } from '../../../capabilities/field-manifest';
|
|
4
4
|
import { FieldMeta } from '../../../capabilities/model-field-runtime';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Doc } from '
|
|
2
|
-
import { DataEnricherRegistration } from '
|
|
3
|
-
import { FIELD_TYPE } from '
|
|
1
|
+
import { Doc } from '../..';
|
|
2
|
+
import { DataEnricherRegistration } from '..';
|
|
3
|
+
import { FIELD_TYPE } from '../../../domain/field/field-type';
|
|
4
4
|
export interface OfInstNumWidgetTarget {
|
|
5
5
|
valuePath: string;
|
|
6
6
|
bindFormTmplRefId?: string | null;
|
|
@@ -2,6 +2,7 @@ export { DataManager } from './DataManager';
|
|
|
2
2
|
export type { EmitSource, FieldChangeDetail, FieldChangeMap, FieldRuntimeSpecificConfig, DataEnricherRegistration, EnrichContext, } from './types';
|
|
3
3
|
export * from './paths/field-paths';
|
|
4
4
|
export * from './submit/fields';
|
|
5
|
+
export * from './submit/form-state';
|
|
5
6
|
export * from './updates/field-updates';
|
|
6
7
|
export * from './paths/subtable-path';
|
|
7
8
|
export * from './subtable/row';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FieldMeta } from '
|
|
2
|
-
import { SubTableInfo } from '
|
|
1
|
+
import { FieldMeta } from '../../../capabilities/model-field-runtime';
|
|
2
|
+
import { SubTableInfo } from '../../../sdk/types';
|
|
3
3
|
export declare function transformSourceData(sourceData: any, i18nData: any): any;
|
|
4
4
|
export declare function transformSourceDataList(data: any[], dict?: {}): {
|
|
5
5
|
_DICT: object;
|
package/dist/core/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export { Doc } from './view/Doc';
|
|
2
|
-
export { useDocPubApiContext } from './
|
|
2
|
+
export { useDocPubApiContext } from './view/context/DocPubApiContext';
|
|
3
3
|
export { useInteraction } from './interaction/useInteraction';
|
|
4
|
-
export { formulaUtils } from './
|
|
4
|
+
export { formulaUtils } from './data/formula/calculate-formula';
|
|
5
5
|
export { TextUtil } from './view/utils/TextUtil';
|
|
6
|
-
export { resolveWidgetState, resolveFieldSpecificConfig, isWidgetMetaReadonlyDisplay } from './widget/
|
|
7
|
-
export { isFieldHyperlinkMarked, hasFieldHyperlinkHref, shouldShowFieldHyperlink, } from './widget/
|
|
6
|
+
export { resolveWidgetState, resolveFieldSpecificConfig, isWidgetMetaReadonlyDisplay } from './widget/state';
|
|
7
|
+
export { isFieldHyperlinkMarked, hasFieldHyperlinkHref, shouldShowFieldHyperlink, } from './widget/hyperlink';
|
|
8
8
|
export { validateTextWidgetMarker } from './layout/logic/LayoutBuilder';
|
|
9
9
|
export { CommandType } from './command/types';
|
|
10
10
|
export { ModelConverter } from './model';
|
|
@@ -13,7 +13,8 @@ export { DocModeTypeConst, PaperSizeConst, BuiltinComponentTypeConst } from './c
|
|
|
13
13
|
export { default as CursorOverlay } from './cursor/render/cursor-overlay.vue';
|
|
14
14
|
export { default as HiddenInput } from './cursor/render/hidden-input.vue';
|
|
15
15
|
export type { DocInitOptions } from './view/Doc';
|
|
16
|
-
export type { WidgetMeta } from './widget/
|
|
16
|
+
export type { WidgetMeta, ExternalComponentType, ExternalNodeType, FieldNodeRenderers, PaperWidgetNodeRenderers, FieldDataBindingMeta, PaperWidgetDataBindingMeta, } from './widget/types';
|
|
17
|
+
export { PAPER_WIDGET_TYPE } from './widget/types';
|
|
17
18
|
export type { DocModeType, CompleteComponentType, BuiltinComponentType } from './constants';
|
|
18
19
|
export type { LayoutNode } from './view/base/LayoutNode';
|
|
19
20
|
export type { BuiltinComponentToLayoutNode, LayoutNodeForComponent } from './view/types';
|
|
@@ -31,4 +32,4 @@ export type { Table } from './view/Table';
|
|
|
31
32
|
export type { SubRenderer } from './view/TableCell';
|
|
32
33
|
export type { Wtbl } from './model/document';
|
|
33
34
|
export type { BoundedRegion, CheckTableRegion, _2DTableRegion } from './model/logic';
|
|
34
|
-
export type { WidgetStateContext } from './widget/
|
|
35
|
+
export type { WidgetStateContext } from './widget/state';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Doc } from '../..';
|
|
2
2
|
import { BaseMetaNode } from '../types';
|
|
3
|
-
import { WidgetMeta } from '../../widget
|
|
3
|
+
import { WidgetMeta } from '../../widget';
|
|
4
4
|
import { MultipleItem } from '../../../suites/shared/panel/config/editor/attach-fields-editor/types';
|
|
5
5
|
import { AttachFieldTarget } from '../../../domain/field/attach-field';
|
|
6
6
|
import { AttachFieldParentMeta, WidgetOptionLike } from './types';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ModelNode } from '
|
|
2
|
-
import { Doc } from '
|
|
3
|
-
import { ImageSize } from '
|
|
4
|
-
import { WrField } from '
|
|
5
|
-
import { Wtc } from '
|
|
6
|
-
import { Wr } from '
|
|
7
|
-
import { WrText } from '
|
|
8
|
-
import { WidgetMeta } from '
|
|
1
|
+
import { ModelNode } from '../../model/base';
|
|
2
|
+
import { Doc } from '../../view/Doc';
|
|
3
|
+
import { ImageSize } from '../../../base/utils/image-size-util';
|
|
4
|
+
import { WrField } from '../../model/document/WrField';
|
|
5
|
+
import { Wtc } from '../../model/document/Wtc';
|
|
6
|
+
import { Wr } from '../../model/document/Wp';
|
|
7
|
+
import { WrText } from '../../model/document/WrText';
|
|
8
|
+
import { WidgetMeta } from '../../widget';
|
|
9
9
|
export declare const ADAPTIVE_IMAGE_CELL_MSG = "\u8BE5\u5355\u5143\u683C\u4E3A\u81EA\u9002\u5E94\u56FE\u7247\u5B57\u6BB5\uFF0C\u4E0D\u53EF\u6DFB\u52A0\u5176\u4ED6\u5185\u5BB9";
|
|
10
10
|
export declare const ADAPTIVE_IMAGE_SWITCH_MSG = "\u5207\u6362\u4E3A\u81EA\u9002\u5E94\u524D\uFF0C\u8BF7\u5148\u6E05\u7A7A\u5355\u5143\u683C\u5185\u5176\u4ED6\u5185\u5BB9\uFF0C\u4E14\u5355\u5143\u683C\u5185\u4EC5\u4FDD\u7559\u8BE5\u56FE\u7247\u5B57\u6BB5";
|
|
11
11
|
export type AdaptiveImageComputedValue = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Wtbl, Wtc, Wtr } from '../../model/document';
|
|
2
|
-
import { TableExpander, CellFragment } from '
|
|
2
|
+
import { TableExpander, CellFragment } from '../table/table-expand';
|
|
3
3
|
import { SubRenderer } from '../../view/TableCell';
|
|
4
4
|
export declare class TableInfoProvider {
|
|
5
5
|
wtbl: Wtbl;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LinkSubTableRegion } from '
|
|
1
|
+
import { LinkSubTableRegion } from '../../model/logic';
|
|
2
2
|
export type LinkSubTableCellZone = 'cross' | 'horizontal' | 'vertical';
|
|
3
3
|
export type LinkSubTableLayoutType = '2d-table' | 'check-table';
|
|
4
4
|
/** 二维表 / 检验表(LinkSubTable 布局体系) */
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { DataManager } from '
|
|
2
|
-
import { Wtr, Wtbl, Wtc } from '
|
|
3
|
-
import { RepeatingRegion, BoundedRegion, TableHeaderRegion, SubTableHeaderRegion, CheckTableRegion, _2DTableRegion, MaterialConsumeTableRegion, SubTableRegion } from '
|
|
4
|
-
import { LinkSubTableCellZone } from '
|
|
5
|
-
import { Doc } from '
|
|
1
|
+
import { DataManager } from '../../data/DataManager';
|
|
2
|
+
import { Wtr, Wtbl, Wtc } from '../../model/document';
|
|
3
|
+
import { RepeatingRegion, BoundedRegion, TableHeaderRegion, SubTableHeaderRegion, CheckTableRegion, _2DTableRegion, MaterialConsumeTableRegion, SubTableRegion } from '../../model/logic';
|
|
4
|
+
import { LinkSubTableCellZone } from './link-sub-table-layout';
|
|
5
|
+
import { Doc } from '../../view/Doc';
|
|
6
6
|
/** 表格矩形范围(含起止行列,均为闭区间) */
|
|
7
7
|
export type TableRange = {
|
|
8
8
|
start: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Wp } from './Wp';
|
|
2
2
|
import { RawElement, WordHighlight } from '../types';
|
|
3
|
-
import { WidgetMeta } from '../../widget
|
|
3
|
+
import { WidgetMeta } from '../../widget';
|
|
4
4
|
import { WrPr } from './WrPr';
|
|
5
5
|
import { ModelNode, ModelNodeOptions } from '../base';
|
|
6
6
|
type IElement = ModelNode | RawElement;
|
|
@@ -4,7 +4,7 @@ import { IContainerMetrics, Border } from './types';
|
|
|
4
4
|
import { Table } from './Table';
|
|
5
5
|
import { TableRow } from './TableRow';
|
|
6
6
|
import { RepeatingWidgetMeta, BoundedWidgetMeta, CheckTableWidgetMeta, _2DTableWidgetMeta, MaterialConsumeTableWidgetMeta } from '../model/logic';
|
|
7
|
-
import { LinkSubTableCellZone } from '../layout/
|
|
7
|
+
import { LinkSubTableCellZone } from '../layout/table/link-sub-table-layout';
|
|
8
8
|
import { TableLayoutType } from '../model/document/wtcRegionRef';
|
|
9
9
|
export interface TableCellOptions extends LayoutGroupOptions {
|
|
10
10
|
colspan?: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComputedRef, Ref, ShallowRef } from 'vue';
|
|
2
|
-
import { Doc } from '../
|
|
3
|
-
import { DocController, DocInfo } from '
|
|
2
|
+
import { Doc } from '../Doc';
|
|
3
|
+
import { DocController, DocInfo } from '../../../sdk/types';
|
|
4
4
|
export declare function useDocPubApiContext(): {
|
|
5
5
|
/** 受控文档句柄(公共 API) */
|
|
6
6
|
controller: ShallowRef<DocController>;
|
|
@@ -8,7 +8,7 @@ export declare function useDocPubApiContext(): {
|
|
|
8
8
|
/** doc 实例 */
|
|
9
9
|
docInst: ShallowRef<Doc>;
|
|
10
10
|
/** query 服务 */
|
|
11
|
-
query: ComputedRef<import('
|
|
11
|
+
query: ComputedRef<import('../../../sdk/types').DocQueryAPI>;
|
|
12
12
|
updateTick: ComputedRef<number>;
|
|
13
13
|
isDesignMode: ComputedRef<boolean>;
|
|
14
14
|
loading: ComputedRef<boolean>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Doc } from '../view/Doc';
|
|
2
|
-
import { WidgetMeta } from './
|
|
2
|
+
import { WidgetMeta } from './types';
|
|
3
3
|
/** 静态标记:直接按超链接样式展示,不走 enrich / _href_ */
|
|
4
4
|
export declare function isFieldHyperlinkMarked(widgetMeta: WidgetMeta | undefined | null): boolean;
|
|
5
5
|
/** manifest 规则:依赖 enrich 写入的 path_href_ */
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type { ExternalComponentType, ExternalNodeType, FieldNodeRenderers, PaperWidgetNodeRenderers, FieldDataBindingMeta, PaperWidgetDataBindingMeta, WidgetMeta, } from './types';
|
|
2
|
+
export { PAPER_WIDGET_TYPE } from './types';
|
|
3
|
+
export type { WidgetDisplayStatus, WidgetStateContext } from './state';
|
|
4
|
+
export { resolveDisplayStatusFromAuth, resolveFieldSpecificConfig, getWidgetInteractionState, isWidgetMetaInteractionBlockedInFillMode, isWidgetMetaReadonlyDisplay, resolveWidgetState, } from './state';
|
|
5
|
+
export { isFieldHyperlinkMarked, hasFieldHyperlinkHref, shouldShowFieldHyperlink, } from './hyperlink';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Doc } from '../view/Doc';
|
|
2
2
|
import { FieldPermissionInfo } from '../../sdk/types';
|
|
3
|
-
import { WidgetMeta } from './
|
|
3
|
+
import { WidgetMeta } from './types';
|
|
4
4
|
export type WidgetDisplayStatus = 'readonly-component' | 'edit-component' | 'readonly-text';
|
|
5
5
|
export interface WidgetStateContext {
|
|
6
6
|
doc: Doc;
|