@guodun/antdv 1.4.1 → 1.4.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/es/components/contract-signing-location/src/ContractSigningLocationCanvas.vue.mjs +304 -293
- package/dist/es/components/contract-signing-location/src/coordinates.mjs +23 -23
- package/dist/es/components/contract-signing-location/src/location-rules.mjs +20 -10
- package/dist/es/components/contract-signing-location/src/page-layout.mjs +12 -9
- package/dist/es/components/contract-signing-location/src/template-source.mjs +2 -0
- package/dist/es/components/pro-contract-template-designer/src/ContractTemplateDesignerInspector.vue.mjs +208 -180
- package/dist/es/components/pro-contract-template-designer/src/ContractTemplateDesignerSidebar.vue.mjs +2 -1
- package/dist/es/components/pro-contract-template-designer/src/ContractTemplateDesignerToolbar.mjs +5 -0
- package/dist/es/components/pro-contract-template-designer/src/ContractTemplateDesignerToolbar.vue.mjs +690 -0
- package/dist/es/components/pro-contract-template-designer/src/ContractTemplateDesignerWorkspaceHeader.mjs +5 -0
- package/dist/es/components/pro-contract-template-designer/src/ContractTemplateDesignerWorkspaceHeader.vue.mjs +253 -0
- package/dist/es/components/pro-contract-template-designer/src/ContractTemplateImageContextMenu.mjs +5 -0
- package/dist/es/components/pro-contract-template-designer/src/ContractTemplateImageContextMenu.vue.mjs +87 -0
- package/dist/es/components/pro-contract-template-designer/src/ContractTemplatePageDecorations.mjs +5 -0
- package/dist/es/components/pro-contract-template-designer/src/ContractTemplatePageDecorations.vue.mjs +98 -0
- package/dist/es/components/pro-contract-template-designer/src/ContractTemplatePageDecorationsInspector.mjs +5 -0
- package/dist/es/components/pro-contract-template-designer/src/ContractTemplatePageDecorationsInspector.vue.mjs +550 -0
- package/dist/es/components/pro-contract-template-designer/src/ContractTemplatePageDecorationsStudio.mjs +5 -0
- package/dist/es/components/pro-contract-template-designer/src/ContractTemplatePageDecorationsStudio.vue.mjs +117 -0
- package/dist/es/components/pro-contract-template-designer/src/ContractTemplatePreviewModal.mjs +5 -0
- package/dist/es/components/pro-contract-template-designer/src/ContractTemplatePreviewModal.vue.mjs +96 -0
- package/dist/es/components/pro-contract-template-designer/src/ContractTemplatePreviewPage.vue.mjs +51 -26
- package/dist/es/components/pro-contract-template-designer/src/ContractTemplateRendererPage.vue.mjs +56 -33
- package/dist/es/components/pro-contract-template-designer/src/ContractTemplateSubmitDataModal.mjs +5 -0
- package/dist/es/components/pro-contract-template-designer/src/ContractTemplateSubmitDataModal.vue.mjs +29 -0
- package/dist/es/components/pro-contract-template-designer/src/ContractTemplateTextBubbleMenu.mjs +5 -0
- package/dist/es/components/pro-contract-template-designer/src/ContractTemplateTextBubbleMenu.vue.mjs +179 -0
- package/dist/es/components/pro-contract-template-designer/src/ContractTemplateTextContextMenu.mjs +5 -0
- package/dist/es/components/pro-contract-template-designer/src/ContractTemplateTextContextMenu.vue.mjs +390 -0
- package/dist/es/components/pro-contract-template-designer/src/DesignerPage.vue.mjs +332 -263
- package/dist/es/components/pro-contract-template-designer/src/ProContractTemplateDesigner.vue.mjs +1442 -2287
- package/dist/es/components/pro-contract-template-designer/src/composables/use-auto-pagination.mjs +71 -0
- package/dist/es/components/pro-contract-template-designer/src/composables/use-designer-files.mjs +11 -0
- package/dist/es/components/pro-contract-template-designer/src/composables/use-draft-cache-session.mjs +111 -0
- package/dist/es/components/pro-contract-template-designer/src/composables/use-signing-placement-editor.mjs +79 -0
- package/dist/es/components/pro-contract-template-designer/src/composables/use-template-designer.mjs +189 -160
- package/dist/es/components/pro-contract-template-designer/src/composables/use-template-files.mjs +35 -22
- package/dist/es/components/pro-contract-template-designer/src/composables/use-toolbar-overflow.mjs +71 -0
- package/dist/es/components/pro-contract-template-designer/src/constants.mjs +71 -10
- package/dist/es/components/pro-contract-template-designer/src/extensions/editor-extensions.mjs +1 -0
- package/dist/es/components/pro-contract-template-designer/src/utils/block-style.mjs +43 -0
- package/dist/es/components/pro-contract-template-designer/src/utils/context-menu-viewport.mjs +13 -0
- package/dist/es/components/pro-contract-template-designer/src/utils/editor-state.mjs +7 -0
- package/dist/es/components/pro-contract-template-designer/src/utils/page-decorations.mjs +398 -0
- package/dist/es/components/pro-contract-template-designer/src/utils/serialize-fingerprint.mjs +6 -0
- package/dist/es/components/pro-contract-template-designer/src/utils/template-renderer.mjs +88 -72
- package/dist/es/components/pro-contract-template-designer/style/index.css +1 -1
- package/dist/es/index.mjs +20 -20
- package/dist/lib/components/contract-signing-location/src/ContractSigningLocationCanvas.vue.cjs +1 -1
- package/dist/lib/components/contract-signing-location/src/coordinates.cjs +1 -1
- package/dist/lib/components/contract-signing-location/src/location-rules.cjs +1 -1
- package/dist/lib/components/contract-signing-location/src/page-layout.cjs +1 -1
- package/dist/lib/components/contract-signing-location/src/template-source.cjs +1 -1
- package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateDesignerInspector.vue.cjs +1 -1
- package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateDesignerSidebar.vue.cjs +1 -1
- package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateDesignerToolbar.cjs +1 -0
- package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateDesignerToolbar.vue.cjs +1 -0
- package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateDesignerWorkspaceHeader.cjs +1 -0
- package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateDesignerWorkspaceHeader.vue.cjs +1 -0
- package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateImageContextMenu.cjs +1 -0
- package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateImageContextMenu.vue.cjs +1 -0
- package/dist/lib/components/pro-contract-template-designer/src/ContractTemplatePageDecorations.cjs +1 -0
- package/dist/lib/components/pro-contract-template-designer/src/ContractTemplatePageDecorations.vue.cjs +1 -0
- package/dist/lib/components/pro-contract-template-designer/src/ContractTemplatePageDecorationsInspector.cjs +1 -0
- package/dist/lib/components/pro-contract-template-designer/src/ContractTemplatePageDecorationsInspector.vue.cjs +1 -0
- package/dist/lib/components/pro-contract-template-designer/src/ContractTemplatePageDecorationsStudio.cjs +1 -0
- package/dist/lib/components/pro-contract-template-designer/src/ContractTemplatePageDecorationsStudio.vue.cjs +1 -0
- package/dist/lib/components/pro-contract-template-designer/src/ContractTemplatePreviewModal.cjs +1 -0
- package/dist/lib/components/pro-contract-template-designer/src/ContractTemplatePreviewModal.vue.cjs +1 -0
- package/dist/lib/components/pro-contract-template-designer/src/ContractTemplatePreviewPage.vue.cjs +1 -1
- package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateRendererPage.vue.cjs +1 -1
- package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateSubmitDataModal.cjs +1 -0
- package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateSubmitDataModal.vue.cjs +1 -0
- package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateTextBubbleMenu.cjs +1 -0
- package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateTextBubbleMenu.vue.cjs +1 -0
- package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateTextContextMenu.cjs +1 -0
- package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateTextContextMenu.vue.cjs +1 -0
- package/dist/lib/components/pro-contract-template-designer/src/DesignerPage.vue.cjs +2 -2
- package/dist/lib/components/pro-contract-template-designer/src/ProContractTemplateDesigner.vue.cjs +1 -1
- package/dist/lib/components/pro-contract-template-designer/src/composables/use-auto-pagination.cjs +1 -0
- package/dist/lib/components/pro-contract-template-designer/src/composables/use-designer-files.cjs +1 -0
- package/dist/lib/components/pro-contract-template-designer/src/composables/use-draft-cache-session.cjs +1 -0
- package/dist/lib/components/pro-contract-template-designer/src/composables/use-signing-placement-editor.cjs +1 -0
- package/dist/lib/components/pro-contract-template-designer/src/composables/use-template-designer.cjs +4 -4
- package/dist/lib/components/pro-contract-template-designer/src/composables/use-template-files.cjs +2 -2
- package/dist/lib/components/pro-contract-template-designer/src/composables/use-toolbar-overflow.cjs +1 -0
- package/dist/lib/components/pro-contract-template-designer/src/constants.cjs +1 -1
- package/dist/lib/components/pro-contract-template-designer/src/extensions/editor-extensions.cjs +1 -1
- package/dist/lib/components/pro-contract-template-designer/src/utils/block-style.cjs +1 -0
- package/dist/lib/components/pro-contract-template-designer/src/utils/context-menu-viewport.cjs +1 -0
- package/dist/lib/components/pro-contract-template-designer/src/utils/editor-state.cjs +1 -0
- package/dist/lib/components/pro-contract-template-designer/src/utils/page-decorations.cjs +1 -0
- package/dist/lib/components/pro-contract-template-designer/src/utils/serialize-fingerprint.cjs +1 -0
- package/dist/lib/components/pro-contract-template-designer/src/utils/template-renderer.cjs +3 -3
- package/dist/lib/components/pro-contract-template-designer/style/index.css +1 -1
- package/dist/lib/index.cjs +1 -1
- package/dist/theme/icon.css +1 -1
- package/dist/theme/index.css +1 -1
- package/dist/types/components/contract-signing-location/src/coordinates.d.ts +2 -2
- package/dist/types/components/contract-signing-location/src/page-layout.d.ts +2 -2
- package/dist/types/components/contract-signing-location/src/template-source.d.ts +2 -0
- package/dist/types/components/contract-signing-location/src/types.d.ts +3 -0
- package/dist/types/components/pro-contract-template-designer/src/ContractTemplateDesignerInspector.vue.d.ts +3 -0
- package/dist/types/components/pro-contract-template-designer/src/ContractTemplateDesignerSidebar.vue.d.ts +1 -0
- package/dist/types/components/pro-contract-template-designer/src/ContractTemplateDesignerToolbar.vue.d.ts +104 -0
- package/dist/types/components/pro-contract-template-designer/src/ContractTemplateDesignerWorkspaceHeader.vue.d.ts +60 -0
- package/dist/types/components/pro-contract-template-designer/src/ContractTemplateImageContextMenu.vue.d.ts +27 -0
- package/dist/types/components/pro-contract-template-designer/src/ContractTemplatePageDecorations.vue.d.ts +13 -0
- package/dist/types/components/pro-contract-template-designer/src/ContractTemplatePageDecorationsInspector.vue.d.ts +28 -0
- package/dist/types/components/pro-contract-template-designer/src/ContractTemplatePageDecorationsStudio.vue.d.ts +77 -0
- package/dist/types/components/pro-contract-template-designer/src/ContractTemplatePreviewModal.vue.d.ts +36 -0
- package/dist/types/components/pro-contract-template-designer/src/ContractTemplatePreviewPage.vue.d.ts +5 -1
- package/dist/types/components/pro-contract-template-designer/src/ContractTemplateRendererHeader.vue.d.ts +4 -4
- package/dist/types/components/pro-contract-template-designer/src/ContractTemplateRendererToolbar.vue.d.ts +4 -4
- package/dist/types/components/pro-contract-template-designer/src/ContractTemplateSubmitDataModal.vue.d.ts +12 -0
- package/dist/types/components/pro-contract-template-designer/src/ContractTemplateTextBubbleMenu.vue.d.ts +43 -0
- package/dist/types/components/pro-contract-template-designer/src/ContractTemplateTextContextMenu.vue.d.ts +77 -0
- package/dist/types/components/pro-contract-template-designer/src/DesignerPage.vue.d.ts +30 -32
- package/dist/types/components/pro-contract-template-designer/src/ProContractTemplateDesigner.vue.d.ts +456 -12
- package/dist/types/components/pro-contract-template-designer/src/composables/use-auto-pagination.d.ts +43 -0
- package/dist/types/components/pro-contract-template-designer/src/composables/use-designer-files.d.ts +22 -0
- package/dist/types/components/pro-contract-template-designer/src/composables/use-draft-cache-session.d.ts +41 -0
- package/dist/types/components/pro-contract-template-designer/src/composables/use-signing-placement-editor.d.ts +49 -0
- package/dist/types/components/pro-contract-template-designer/src/composables/use-template-designer.d.ts +15 -1
- package/dist/types/components/pro-contract-template-designer/src/composables/use-template-files.d.ts +13 -0
- package/dist/types/components/pro-contract-template-designer/src/composables/use-toolbar-overflow.d.ts +19 -0
- package/dist/types/components/pro-contract-template-designer/src/constants.d.ts +7 -1
- package/dist/types/components/pro-contract-template-designer/src/types.d.ts +89 -0
- package/dist/types/components/pro-contract-template-designer/src/utils/block-style.d.ts +4 -0
- package/dist/types/components/pro-contract-template-designer/src/utils/context-menu-viewport.d.ts +25 -0
- package/dist/types/components/pro-contract-template-designer/src/utils/editor-state.d.ts +8 -0
- package/dist/types/components/pro-contract-template-designer/src/utils/page-decorations.d.ts +90 -0
- package/dist/types/components/pro-contract-template-designer/src/utils/serialize-fingerprint.d.ts +8 -0
- package/dist/types/components/pro-contract-template-designer/src/utils/template-renderer.d.ts +4 -1
- package/package.json +3 -3
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { Component } from 'vue';
|
|
2
|
+
import { ContractTemplateEditorCommand, ContractTemplateEditorState, ContractTemplateEditorTextAlign, ContractTemplateFieldType, ContractTemplateBlockFormat, ContractTemplateTableInsertOptions } from './types';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
readonly: boolean;
|
|
5
|
+
editorState: ContractTemplateEditorState;
|
|
6
|
+
currentBlockFormat?: ContractTemplateBlockFormat;
|
|
7
|
+
blockFormatOptions: Array<{
|
|
8
|
+
label: string;
|
|
9
|
+
value: ContractTemplateBlockFormat;
|
|
10
|
+
}>;
|
|
11
|
+
fontFamilySelectOptions: Array<{
|
|
12
|
+
label: string;
|
|
13
|
+
value: string;
|
|
14
|
+
}>;
|
|
15
|
+
currentEditorFontFamily: string;
|
|
16
|
+
fontSizePresetOptions: Array<{
|
|
17
|
+
label: string;
|
|
18
|
+
value: number | string;
|
|
19
|
+
}>;
|
|
20
|
+
currentEditorFontSize: number;
|
|
21
|
+
editorFontSizeSearchValue: string;
|
|
22
|
+
currentEditorTextColor: string;
|
|
23
|
+
bodyControlToolItems: Array<{
|
|
24
|
+
type: ContractTemplateFieldType;
|
|
25
|
+
label: string;
|
|
26
|
+
icon: Component;
|
|
27
|
+
}>;
|
|
28
|
+
pageLimitReached: boolean;
|
|
29
|
+
normalizedMaxPages: number;
|
|
30
|
+
imageProcessing: boolean;
|
|
31
|
+
imageInsertError: string;
|
|
32
|
+
};
|
|
33
|
+
type __VLS_PublicProps = {
|
|
34
|
+
'variableInsertPopoverOpen'?: boolean;
|
|
35
|
+
'imageInsertPopoverOpen'?: boolean;
|
|
36
|
+
'imageInsertUrl'?: string;
|
|
37
|
+
'imageInsertWidth'?: number | undefined;
|
|
38
|
+
'imageInsertHeight'?: number | undefined;
|
|
39
|
+
'tableInsertPopoverOpen'?: boolean;
|
|
40
|
+
'tableActionsPopoverOpen'?: boolean;
|
|
41
|
+
'tableInsertDraft': ContractTemplateTableInsertOptions;
|
|
42
|
+
'toolbarMoreOpen'?: boolean;
|
|
43
|
+
} & __VLS_Props;
|
|
44
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
45
|
+
"insert-table": (rows: number, cols: number) => any;
|
|
46
|
+
command: (command: ContractTemplateEditorCommand) => any;
|
|
47
|
+
"patch-block-format": (value: unknown) => any;
|
|
48
|
+
"patch-font-family": (value: unknown) => any;
|
|
49
|
+
"patch-font-size": (value: unknown) => any;
|
|
50
|
+
"patch-color": (event: Event) => any;
|
|
51
|
+
"patch-text-align": (value: ContractTemplateEditorTextAlign) => any;
|
|
52
|
+
"insert-variable": (type: ContractTemplateFieldType) => any;
|
|
53
|
+
"open-image-file": () => any;
|
|
54
|
+
"insert-image-url": () => any;
|
|
55
|
+
"add-page": () => any;
|
|
56
|
+
"table-action": (action: "select-all" | "add-table-row-before" | "add-table-row-after" | "delete-table-row" | "add-table-column-before" | "add-table-column-after" | "delete-table-column" | "merge-table-cells" | "split-table-cell" | "toggle-table-header-row" | "toggle-table-header-column" | "delete-table" | "undo" | "redo" | "set-paragraph" | "set-heading" | "apply-block-style" | "toggle-heading" | "set-bold" | "toggle-bold" | "unset-bold" | "set-italic" | "toggle-italic" | "unset-italic" | "set-underline" | "toggle-underline" | "unset-underline" | "toggle-bullet-list" | "toggle-ordered-list" | "set-text-align" | "unset-text-align" | "set-color" | "unset-color" | "set-font-size" | "unset-font-size" | "set-font-family" | "unset-font-family" | "clear-text-format" | "clear-block-format" | "apply-text-style-preset" | "insert-horizontal-rule" | "insert-content-image" | "insert-table" | "set-table-cell-align" | "toggle-table-header-cell") => any;
|
|
57
|
+
"font-size-search": (value: string) => any;
|
|
58
|
+
"font-size-commit": () => any;
|
|
59
|
+
"font-size-dropdown-change": (open: boolean) => any;
|
|
60
|
+
"font-size-keydown": (event: KeyboardEvent) => any;
|
|
61
|
+
"update:variableInsertPopoverOpen": (value: boolean) => any;
|
|
62
|
+
"update:imageInsertPopoverOpen": (value: boolean) => any;
|
|
63
|
+
"update:imageInsertUrl": (value: string) => any;
|
|
64
|
+
"update:imageInsertWidth": (value: number | undefined) => any;
|
|
65
|
+
"update:imageInsertHeight": (value: number | undefined) => any;
|
|
66
|
+
"update:tableInsertPopoverOpen": (value: boolean) => any;
|
|
67
|
+
"update:tableActionsPopoverOpen": (value: boolean) => any;
|
|
68
|
+
"update:tableInsertDraft": (value: ContractTemplateTableInsertOptions) => any;
|
|
69
|
+
"update:toolbarMoreOpen": (value: boolean) => any;
|
|
70
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
71
|
+
"onInsert-table"?: ((rows: number, cols: number) => any) | undefined;
|
|
72
|
+
onCommand?: ((command: ContractTemplateEditorCommand) => any) | undefined;
|
|
73
|
+
"onPatch-block-format"?: ((value: unknown) => any) | undefined;
|
|
74
|
+
"onPatch-font-family"?: ((value: unknown) => any) | undefined;
|
|
75
|
+
"onPatch-font-size"?: ((value: unknown) => any) | undefined;
|
|
76
|
+
"onPatch-color"?: ((event: Event) => any) | undefined;
|
|
77
|
+
"onPatch-text-align"?: ((value: ContractTemplateEditorTextAlign) => any) | undefined;
|
|
78
|
+
"onInsert-variable"?: ((type: ContractTemplateFieldType) => any) | undefined;
|
|
79
|
+
"onOpen-image-file"?: (() => any) | undefined;
|
|
80
|
+
"onInsert-image-url"?: (() => any) | undefined;
|
|
81
|
+
"onAdd-page"?: (() => any) | undefined;
|
|
82
|
+
"onTable-action"?: ((action: "select-all" | "add-table-row-before" | "add-table-row-after" | "delete-table-row" | "add-table-column-before" | "add-table-column-after" | "delete-table-column" | "merge-table-cells" | "split-table-cell" | "toggle-table-header-row" | "toggle-table-header-column" | "delete-table" | "undo" | "redo" | "set-paragraph" | "set-heading" | "apply-block-style" | "toggle-heading" | "set-bold" | "toggle-bold" | "unset-bold" | "set-italic" | "toggle-italic" | "unset-italic" | "set-underline" | "toggle-underline" | "unset-underline" | "toggle-bullet-list" | "toggle-ordered-list" | "set-text-align" | "unset-text-align" | "set-color" | "unset-color" | "set-font-size" | "unset-font-size" | "set-font-family" | "unset-font-family" | "clear-text-format" | "clear-block-format" | "apply-text-style-preset" | "insert-horizontal-rule" | "insert-content-image" | "insert-table" | "set-table-cell-align" | "toggle-table-header-cell") => any) | undefined;
|
|
83
|
+
"onFont-size-search"?: ((value: string) => any) | undefined;
|
|
84
|
+
"onFont-size-commit"?: (() => any) | undefined;
|
|
85
|
+
"onFont-size-dropdown-change"?: ((open: boolean) => any) | undefined;
|
|
86
|
+
"onFont-size-keydown"?: ((event: KeyboardEvent) => any) | undefined;
|
|
87
|
+
"onUpdate:variableInsertPopoverOpen"?: ((value: boolean) => any) | undefined;
|
|
88
|
+
"onUpdate:imageInsertPopoverOpen"?: ((value: boolean) => any) | undefined;
|
|
89
|
+
"onUpdate:imageInsertUrl"?: ((value: string) => any) | undefined;
|
|
90
|
+
"onUpdate:imageInsertWidth"?: ((value: number | undefined) => any) | undefined;
|
|
91
|
+
"onUpdate:imageInsertHeight"?: ((value: number | undefined) => any) | undefined;
|
|
92
|
+
"onUpdate:tableInsertPopoverOpen"?: ((value: boolean) => any) | undefined;
|
|
93
|
+
"onUpdate:tableActionsPopoverOpen"?: ((value: boolean) => any) | undefined;
|
|
94
|
+
"onUpdate:tableInsertDraft"?: ((value: ContractTemplateTableInsertOptions) => any) | undefined;
|
|
95
|
+
"onUpdate:toolbarMoreOpen"?: ((value: boolean) => any) | undefined;
|
|
96
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
97
|
+
toolbarMainElement: HTMLDivElement;
|
|
98
|
+
toolbarMoreElement: HTMLDivElement;
|
|
99
|
+
toolbarInsertSlotElement: HTMLDivElement;
|
|
100
|
+
toolbarTypographySlotElement: HTMLDivElement;
|
|
101
|
+
toolbarCleanupSlotElement: HTMLDivElement;
|
|
102
|
+
toolbarTableSlotElement: HTMLDivElement;
|
|
103
|
+
}, HTMLElement>;
|
|
104
|
+
export default _default;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
summary: string;
|
|
3
|
+
draftCacheStatusText: string;
|
|
4
|
+
draftCacheStatusClass: Record<string, boolean>;
|
|
5
|
+
showDraftCacheStatus: boolean;
|
|
6
|
+
showClearButton: boolean;
|
|
7
|
+
showSubmitDataViewer: boolean;
|
|
8
|
+
readonly: boolean;
|
|
9
|
+
zoomPercent: string;
|
|
10
|
+
zoomOutDisabled: boolean;
|
|
11
|
+
zoomInDisabled: boolean;
|
|
12
|
+
isFullscreen: boolean;
|
|
13
|
+
/** 沉浸写作态;入口按钮据此显示按下态。 */
|
|
14
|
+
immersive: boolean;
|
|
15
|
+
pageDecorationsOpen: boolean;
|
|
16
|
+
pageDecorationsStudioId: string;
|
|
17
|
+
pageDecorationsPresetLabel: string;
|
|
18
|
+
pageDecorationsEnabledCount: number;
|
|
19
|
+
pageDecorationsEnabledStates: {
|
|
20
|
+
header: boolean;
|
|
21
|
+
footer: boolean;
|
|
22
|
+
watermark: boolean;
|
|
23
|
+
};
|
|
24
|
+
/** 工具区包裹层 id;折叠按钮通过 `aria-controls` 指向它。 */
|
|
25
|
+
chromeControlsId: string;
|
|
26
|
+
};
|
|
27
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
28
|
+
focusPageDecorations: () => void | undefined;
|
|
29
|
+
focusImmersive: () => void | undefined;
|
|
30
|
+
focusChromeToggle: () => void | undefined;
|
|
31
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
32
|
+
clear: () => any;
|
|
33
|
+
validate: () => any;
|
|
34
|
+
preview: () => any;
|
|
35
|
+
fitWidth: () => any;
|
|
36
|
+
zoomOut: () => any;
|
|
37
|
+
zoomIn: () => any;
|
|
38
|
+
resetZoom: () => any;
|
|
39
|
+
toggleFullscreen: () => any;
|
|
40
|
+
toggleImmersive: () => any;
|
|
41
|
+
submitData: () => any;
|
|
42
|
+
togglePageDecorations: () => any;
|
|
43
|
+
toggleChrome: () => any;
|
|
44
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
45
|
+
onClear?: (() => any) | undefined;
|
|
46
|
+
onValidate?: (() => any) | undefined;
|
|
47
|
+
onPreview?: (() => any) | undefined;
|
|
48
|
+
onFitWidth?: (() => any) | undefined;
|
|
49
|
+
onZoomOut?: (() => any) | undefined;
|
|
50
|
+
onZoomIn?: (() => any) | undefined;
|
|
51
|
+
onResetZoom?: (() => any) | undefined;
|
|
52
|
+
onToggleFullscreen?: (() => any) | undefined;
|
|
53
|
+
onToggleImmersive?: (() => any) | undefined;
|
|
54
|
+
onSubmitData?: (() => any) | undefined;
|
|
55
|
+
onTogglePageDecorations?: (() => any) | undefined;
|
|
56
|
+
onToggleChrome?: (() => any) | undefined;
|
|
57
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
58
|
+
workspaceHeader: HTMLElement;
|
|
59
|
+
}, HTMLElement>;
|
|
60
|
+
export default _default;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
x: number;
|
|
3
|
+
y: number;
|
|
4
|
+
readonly: boolean;
|
|
5
|
+
};
|
|
6
|
+
type __VLS_PublicProps = {
|
|
7
|
+
'width'?: number | undefined;
|
|
8
|
+
'height'?: number | undefined;
|
|
9
|
+
} & __VLS_Props;
|
|
10
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
11
|
+
getMenuElement: () => HTMLElement | undefined;
|
|
12
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
13
|
+
keydown: (event: KeyboardEvent) => any;
|
|
14
|
+
restore: () => any;
|
|
15
|
+
apply: () => any;
|
|
16
|
+
"update:width": (value: number | undefined) => any;
|
|
17
|
+
"update:height": (value: number | undefined) => any;
|
|
18
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
19
|
+
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
20
|
+
onRestore?: (() => any) | undefined;
|
|
21
|
+
onApply?: (() => any) | undefined;
|
|
22
|
+
"onUpdate:width"?: ((value: number | undefined) => any) | undefined;
|
|
23
|
+
"onUpdate:height"?: ((value: number | undefined) => any) | undefined;
|
|
24
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
25
|
+
menuElement: HTMLDivElement;
|
|
26
|
+
}, HTMLDivElement>;
|
|
27
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ContractTemplatePageDecorations, ContractTemplateRenderValues, ContractTemplateVariable } from './types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
decorations?: ContractTemplatePageDecorations;
|
|
4
|
+
pageNumber: number;
|
|
5
|
+
totalPages: number;
|
|
6
|
+
variables?: ContractTemplateVariable[];
|
|
7
|
+
values?: ContractTemplateRenderValues;
|
|
8
|
+
};
|
|
9
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
10
|
+
values: ContractTemplateRenderValues;
|
|
11
|
+
variables: ContractTemplateVariable[];
|
|
12
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ContractTemplatePageDecorations, ContractTemplateVariable } from './types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
decorations?: ContractTemplatePageDecorations;
|
|
4
|
+
variables: ContractTemplateVariable[];
|
|
5
|
+
fontFamilyOptions: Array<{
|
|
6
|
+
label: string;
|
|
7
|
+
value: string;
|
|
8
|
+
}>;
|
|
9
|
+
readonly: boolean;
|
|
10
|
+
disabled: boolean;
|
|
11
|
+
activeTab?: 'header' | 'footer' | 'watermark';
|
|
12
|
+
/** 工作台嵌入态隐藏重复标题和恢复按钮,表单及事件契约保持不变。 */
|
|
13
|
+
embedded?: boolean;
|
|
14
|
+
};
|
|
15
|
+
/** 工作台底部的恢复操作复用预设确认逻辑,避免形成第二套重置行为。 */
|
|
16
|
+
declare function resetToDefault(): void;
|
|
17
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
18
|
+
resetToDefault: typeof resetToDefault;
|
|
19
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
20
|
+
change: (value: ContractTemplatePageDecorations) => any;
|
|
21
|
+
"update:activeTab": (value: "footer" | "header" | "watermark") => any;
|
|
22
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
23
|
+
onChange?: ((value: ContractTemplatePageDecorations) => any) | undefined;
|
|
24
|
+
"onUpdate:activeTab"?: ((value: "footer" | "header" | "watermark") => any) | undefined;
|
|
25
|
+
}>, {
|
|
26
|
+
embedded: boolean;
|
|
27
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
|
|
28
|
+
export default _default;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { ContractTemplatePageDecorations, ContractTemplateVariable } from './types';
|
|
2
|
+
import { ContractTemplatePageDecorationFieldPath } from './utils/page-decorations';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
id?: string;
|
|
5
|
+
open: boolean;
|
|
6
|
+
decorations?: ContractTemplatePageDecorations;
|
|
7
|
+
variables: ContractTemplateVariable[];
|
|
8
|
+
fontFamilyOptions: Array<{
|
|
9
|
+
label: string;
|
|
10
|
+
value: string;
|
|
11
|
+
}>;
|
|
12
|
+
readonly: boolean;
|
|
13
|
+
disabled: boolean;
|
|
14
|
+
activeTab?: 'header' | 'footer' | 'watermark';
|
|
15
|
+
};
|
|
16
|
+
declare function focusField(path: ContractTemplatePageDecorationFieldPath): Promise<void>;
|
|
17
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
18
|
+
focusField: typeof focusField;
|
|
19
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
20
|
+
change: (value: ContractTemplatePageDecorations) => any;
|
|
21
|
+
close: () => any;
|
|
22
|
+
"update:activeTab": (value: "footer" | "header" | "watermark") => any;
|
|
23
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
24
|
+
onChange?: ((value: ContractTemplatePageDecorations) => any) | undefined;
|
|
25
|
+
onClose?: (() => any) | undefined;
|
|
26
|
+
"onUpdate:activeTab"?: ((value: "footer" | "header" | "watermark") => any) | undefined;
|
|
27
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
28
|
+
studioRoot: HTMLElement;
|
|
29
|
+
inspectorRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
30
|
+
decorations?: ContractTemplatePageDecorations;
|
|
31
|
+
variables: ContractTemplateVariable[];
|
|
32
|
+
fontFamilyOptions: Array<{
|
|
33
|
+
label: string;
|
|
34
|
+
value: string;
|
|
35
|
+
}>;
|
|
36
|
+
readonly: boolean;
|
|
37
|
+
disabled: boolean;
|
|
38
|
+
activeTab?: "header" | "footer" | "watermark";
|
|
39
|
+
embedded?: boolean;
|
|
40
|
+
}> & Readonly<{
|
|
41
|
+
onChange?: ((value: ContractTemplatePageDecorations) => any) | undefined;
|
|
42
|
+
"onUpdate:activeTab"?: ((value: "footer" | "header" | "watermark") => any) | undefined;
|
|
43
|
+
}>, {
|
|
44
|
+
resetToDefault: () => void;
|
|
45
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
46
|
+
change: (value: ContractTemplatePageDecorations) => any;
|
|
47
|
+
"update:activeTab": (value: "footer" | "header" | "watermark") => any;
|
|
48
|
+
}, import('vue').PublicProps, {
|
|
49
|
+
embedded: boolean;
|
|
50
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLElement, import('vue').ComponentProvideOptions, {
|
|
51
|
+
P: {};
|
|
52
|
+
B: {};
|
|
53
|
+
D: {};
|
|
54
|
+
C: {};
|
|
55
|
+
M: {};
|
|
56
|
+
Defaults: {};
|
|
57
|
+
}, Readonly<{
|
|
58
|
+
decorations?: ContractTemplatePageDecorations;
|
|
59
|
+
variables: ContractTemplateVariable[];
|
|
60
|
+
fontFamilyOptions: Array<{
|
|
61
|
+
label: string;
|
|
62
|
+
value: string;
|
|
63
|
+
}>;
|
|
64
|
+
readonly: boolean;
|
|
65
|
+
disabled: boolean;
|
|
66
|
+
activeTab?: "header" | "footer" | "watermark";
|
|
67
|
+
embedded?: boolean;
|
|
68
|
+
}> & Readonly<{
|
|
69
|
+
onChange?: ((value: ContractTemplatePageDecorations) => any) | undefined;
|
|
70
|
+
"onUpdate:activeTab"?: ((value: "footer" | "header" | "watermark") => any) | undefined;
|
|
71
|
+
}>, {
|
|
72
|
+
resetToDefault: () => void;
|
|
73
|
+
}, {}, {}, {}, {
|
|
74
|
+
embedded: boolean;
|
|
75
|
+
}> | null;
|
|
76
|
+
}, HTMLElement>;
|
|
77
|
+
export default _default;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ContractTemplateData, ContractTemplateFile, ContractTemplatePage, ContractTemplateSigningPlacement } from './types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
open: boolean;
|
|
4
|
+
previewPages: Array<{
|
|
5
|
+
page: ContractTemplatePage;
|
|
6
|
+
contentHtml: string;
|
|
7
|
+
signingPlacements: ContractTemplateSigningPlacement[];
|
|
8
|
+
}>;
|
|
9
|
+
previewFileGroups: Array<{
|
|
10
|
+
file: ContractTemplateFile;
|
|
11
|
+
pages: Array<{
|
|
12
|
+
page: ContractTemplatePage;
|
|
13
|
+
contentHtml: string;
|
|
14
|
+
signingPlacements: ContractTemplateSigningPlacement[];
|
|
15
|
+
}>;
|
|
16
|
+
}>;
|
|
17
|
+
previewActiveGroup?: {
|
|
18
|
+
file: ContractTemplateFile;
|
|
19
|
+
pages: Array<{
|
|
20
|
+
page: ContractTemplatePage;
|
|
21
|
+
contentHtml: string;
|
|
22
|
+
signingPlacements: ContractTemplateSigningPlacement[];
|
|
23
|
+
}>;
|
|
24
|
+
};
|
|
25
|
+
previewSnapshot?: ContractTemplateData;
|
|
26
|
+
};
|
|
27
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
28
|
+
cancel: () => any;
|
|
29
|
+
"update:open": (value: boolean) => any;
|
|
30
|
+
"select-file": (fileId: string) => any;
|
|
31
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
32
|
+
onCancel?: (() => any) | undefined;
|
|
33
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
34
|
+
"onSelect-file"?: ((fileId: string) => any) | undefined;
|
|
35
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
36
|
+
export default _default;
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import { ContractTemplatePage, ContractTemplatePageSize, ContractTemplateSigningPlacement } from './types';
|
|
1
|
+
import { ContractTemplatePage, ContractTemplatePageDecorations, ContractTemplatePageSize, ContractTemplateSigningPlacement, ContractTemplateVariable } from './types';
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
page: ContractTemplatePage;
|
|
4
4
|
fallbackPageSize: ContractTemplatePageSize;
|
|
5
5
|
contentHtml: string;
|
|
6
6
|
signingPlacements: ContractTemplateSigningPlacement[];
|
|
7
|
+
pageDecorations?: ContractTemplatePageDecorations;
|
|
8
|
+
pageNumber: number;
|
|
9
|
+
totalPages: number;
|
|
10
|
+
variables: ContractTemplateVariable[];
|
|
7
11
|
};
|
|
8
12
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
|
|
9
13
|
export default _default;
|
|
@@ -37,9 +37,9 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
|
|
|
37
37
|
reset: () => any;
|
|
38
38
|
submit: () => any;
|
|
39
39
|
fitWidth: () => any;
|
|
40
|
-
resetZoom: () => any;
|
|
41
|
-
zoomIn: () => any;
|
|
42
40
|
zoomOut: () => any;
|
|
41
|
+
zoomIn: () => any;
|
|
42
|
+
resetZoom: () => any;
|
|
43
43
|
selectPage: (pageId: string) => any;
|
|
44
44
|
togglePanel: () => any;
|
|
45
45
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
@@ -47,9 +47,9 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
|
|
|
47
47
|
onReset?: (() => any) | undefined;
|
|
48
48
|
onSubmit?: (() => any) | undefined;
|
|
49
49
|
onFitWidth?: (() => any) | undefined;
|
|
50
|
-
onResetZoom?: (() => any) | undefined;
|
|
51
|
-
onZoomIn?: (() => any) | undefined;
|
|
52
50
|
onZoomOut?: (() => any) | undefined;
|
|
51
|
+
onZoomIn?: (() => any) | undefined;
|
|
52
|
+
onResetZoom?: (() => any) | undefined;
|
|
53
53
|
onSelectPage?: ((pageId: string) => any) | undefined;
|
|
54
54
|
onTogglePanel?: (() => any) | undefined;
|
|
55
55
|
}>, {
|
|
@@ -16,15 +16,15 @@ type __VLS_Props = {
|
|
|
16
16
|
};
|
|
17
17
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
18
18
|
fitWidth: () => any;
|
|
19
|
-
resetZoom: () => any;
|
|
20
|
-
zoomIn: () => any;
|
|
21
19
|
zoomOut: () => any;
|
|
20
|
+
zoomIn: () => any;
|
|
21
|
+
resetZoom: () => any;
|
|
22
22
|
selectPage: (pageId: string) => any;
|
|
23
23
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
24
24
|
onFitWidth?: (() => any) | undefined;
|
|
25
|
-
onResetZoom?: (() => any) | undefined;
|
|
26
|
-
onZoomIn?: (() => any) | undefined;
|
|
27
25
|
onZoomOut?: (() => any) | undefined;
|
|
26
|
+
onZoomIn?: (() => any) | undefined;
|
|
27
|
+
onResetZoom?: (() => any) | undefined;
|
|
28
28
|
onSelectPage?: ((pageId: string) => any) | undefined;
|
|
29
29
|
}>, {
|
|
30
30
|
minZoom: number;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
open: boolean;
|
|
3
|
+
json: string;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
+
cancel: () => any;
|
|
7
|
+
"update:open": (value: boolean) => any;
|
|
8
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
|
+
onCancel?: (() => any) | undefined;
|
|
10
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { ContractTemplateEditorCommand, ContractTemplateEditorState, ContractTemplateEditorTextAlign } from './types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
x: number;
|
|
4
|
+
y: number;
|
|
5
|
+
editorState: ContractTemplateEditorState;
|
|
6
|
+
fontSizePresetOptions: Array<{
|
|
7
|
+
label: string;
|
|
8
|
+
value: number | string;
|
|
9
|
+
}>;
|
|
10
|
+
currentEditorFontSize: number;
|
|
11
|
+
editorFontSizeSearchValue: string;
|
|
12
|
+
currentEditorTextColor: string;
|
|
13
|
+
textAlignOptions: Array<{
|
|
14
|
+
label: string;
|
|
15
|
+
value: ContractTemplateEditorTextAlign;
|
|
16
|
+
}>;
|
|
17
|
+
};
|
|
18
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
19
|
+
getMenuElement: () => HTMLElement | undefined;
|
|
20
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
21
|
+
more: (clientX: number, clientY: number) => any;
|
|
22
|
+
command: (command: ContractTemplateEditorCommand) => any;
|
|
23
|
+
"patch-font-size": (value: unknown) => any;
|
|
24
|
+
"patch-color": (value: string) => any;
|
|
25
|
+
"patch-text-align": (value: unknown) => any;
|
|
26
|
+
"font-size-search": (value: string) => any;
|
|
27
|
+
"font-size-commit": () => any;
|
|
28
|
+
"font-size-dropdown-change": (open: boolean) => any;
|
|
29
|
+
"font-size-keydown": (event: KeyboardEvent) => any;
|
|
30
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
31
|
+
onMore?: ((clientX: number, clientY: number) => any) | undefined;
|
|
32
|
+
onCommand?: ((command: ContractTemplateEditorCommand) => any) | undefined;
|
|
33
|
+
"onPatch-font-size"?: ((value: unknown) => any) | undefined;
|
|
34
|
+
"onPatch-color"?: ((value: string) => any) | undefined;
|
|
35
|
+
"onPatch-text-align"?: ((value: unknown) => any) | undefined;
|
|
36
|
+
"onFont-size-search"?: ((value: string) => any) | undefined;
|
|
37
|
+
"onFont-size-commit"?: (() => any) | undefined;
|
|
38
|
+
"onFont-size-dropdown-change"?: ((open: boolean) => any) | undefined;
|
|
39
|
+
"onFont-size-keydown"?: ((event: KeyboardEvent) => any) | undefined;
|
|
40
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
41
|
+
menuElement: HTMLDivElement;
|
|
42
|
+
}, HTMLDivElement>;
|
|
43
|
+
export default _default;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { Component } from 'vue';
|
|
2
|
+
import { ContractTemplateEditorCommand, ContractTemplateEditorState, ContractTemplateEditorTextAlign, ContractTemplateFieldType, ContractTemplateTableInsertOptions, ContractTemplateVariable } from './types';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
x: number;
|
|
5
|
+
y: number;
|
|
6
|
+
hasSelection: boolean;
|
|
7
|
+
editorState: ContractTemplateEditorState;
|
|
8
|
+
fontSizePresetOptions: Array<{
|
|
9
|
+
label: string;
|
|
10
|
+
value: number | string;
|
|
11
|
+
}>;
|
|
12
|
+
currentEditorFontSize: number;
|
|
13
|
+
editorFontSizeSearchValue: string;
|
|
14
|
+
textAlignOptions: Array<{
|
|
15
|
+
label: string;
|
|
16
|
+
value: ContractTemplateEditorTextAlign;
|
|
17
|
+
}>;
|
|
18
|
+
currentEditorTextColor: string;
|
|
19
|
+
bodyControlToolItems: Array<{
|
|
20
|
+
type: ContractTemplateFieldType;
|
|
21
|
+
label: string;
|
|
22
|
+
icon: Component;
|
|
23
|
+
}>;
|
|
24
|
+
textMenuBindableVariables: ContractTemplateVariable[];
|
|
25
|
+
pageLimitReached: boolean;
|
|
26
|
+
tableInsertDraft: ContractTemplateTableInsertOptions;
|
|
27
|
+
variablesCount: number;
|
|
28
|
+
resolveBindVariableTypeLabel: (variable: ContractTemplateVariable) => string;
|
|
29
|
+
};
|
|
30
|
+
type __VLS_PublicProps = {
|
|
31
|
+
'bindOpen'?: boolean;
|
|
32
|
+
'bindKeyword'?: string;
|
|
33
|
+
} & __VLS_Props;
|
|
34
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
35
|
+
getMenuElement: () => HTMLElement | undefined;
|
|
36
|
+
focusBindSearch: () => void;
|
|
37
|
+
focusFirstButton: () => void;
|
|
38
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
39
|
+
keydown: (event: KeyboardEvent) => any;
|
|
40
|
+
command: (command: ContractTemplateEditorCommand) => any;
|
|
41
|
+
"patch-font-size": (value: unknown) => any;
|
|
42
|
+
"patch-color": (value: string) => any;
|
|
43
|
+
"patch-text-align": (value: unknown) => any;
|
|
44
|
+
"insert-variable": (type: ContractTemplateFieldType) => any;
|
|
45
|
+
"add-page": () => any;
|
|
46
|
+
"font-size-search": (value: string) => any;
|
|
47
|
+
"font-size-commit": () => any;
|
|
48
|
+
"font-size-dropdown-change": (open: boolean) => any;
|
|
49
|
+
"font-size-keydown": (event: KeyboardEvent) => any;
|
|
50
|
+
clipboard: (command: "copy" | "cut" | "paste") => any;
|
|
51
|
+
"open-image": () => any;
|
|
52
|
+
"bind-variable": (variable: ContractTemplateVariable) => any;
|
|
53
|
+
"open-bind-panel": () => any;
|
|
54
|
+
"update:bindOpen": (value: boolean) => any;
|
|
55
|
+
"update:bindKeyword": (value: string) => any;
|
|
56
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
57
|
+
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
58
|
+
onCommand?: ((command: ContractTemplateEditorCommand) => any) | undefined;
|
|
59
|
+
"onPatch-font-size"?: ((value: unknown) => any) | undefined;
|
|
60
|
+
"onPatch-color"?: ((value: string) => any) | undefined;
|
|
61
|
+
"onPatch-text-align"?: ((value: unknown) => any) | undefined;
|
|
62
|
+
"onInsert-variable"?: ((type: ContractTemplateFieldType) => any) | undefined;
|
|
63
|
+
"onAdd-page"?: (() => any) | undefined;
|
|
64
|
+
"onFont-size-search"?: ((value: string) => any) | undefined;
|
|
65
|
+
"onFont-size-commit"?: (() => any) | undefined;
|
|
66
|
+
"onFont-size-dropdown-change"?: ((open: boolean) => any) | undefined;
|
|
67
|
+
"onFont-size-keydown"?: ((event: KeyboardEvent) => any) | undefined;
|
|
68
|
+
onClipboard?: ((command: "copy" | "cut" | "paste") => any) | undefined;
|
|
69
|
+
"onOpen-image"?: (() => any) | undefined;
|
|
70
|
+
"onBind-variable"?: ((variable: ContractTemplateVariable) => any) | undefined;
|
|
71
|
+
"onOpen-bind-panel"?: (() => any) | undefined;
|
|
72
|
+
"onUpdate:bindOpen"?: ((value: boolean) => any) | undefined;
|
|
73
|
+
"onUpdate:bindKeyword"?: ((value: string) => any) | undefined;
|
|
74
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
75
|
+
menuElement: HTMLDivElement;
|
|
76
|
+
}, HTMLDivElement>;
|
|
77
|
+
export default _default;
|