@progress/kendo-vue-editor 8.0.3-develop.1 → 8.0.3-develop.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/Editor.d.ts +587 -0
- package/Editor.mjs +2 -2
- package/EditorProps.d.ts +201 -0
- package/config/defaultStyles.d.ts +19 -0
- package/config/pasteSettings.d.ts +13 -0
- package/config/schema.d.ts +15 -0
- package/config/schema.mjs +3 -3
- package/config/shortcuts.d.ts +31 -0
- package/config/shortcuts.mjs +4 -4
- package/config/toolsSettings.d.ts +496 -0
- package/dialogs/EditorDialogProps.d.ts +30 -0
- package/dialogs/FindReplace.d.ts +83 -0
- package/dialogs/insertImage.d.ts +46 -0
- package/dialogs/insertLink.d.ts +42 -0
- package/dialogs/main.d.ts +7 -0
- package/dist/cdn/js/kendo-vue-editor.js +1 -1
- package/index.d.mts +192 -1920
- package/index.d.ts +192 -1920
- package/messages/main.d.ts +181 -0
- package/package-metadata.d.ts +12 -0
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +20 -14
- package/tools/ToolProps.d.ts +42 -0
- package/tools/align.d.ts +17 -0
- package/tools/cleanFormatting.d.ts +25 -0
- package/tools/findReplace.d.ts +24 -0
- package/tools/fontStyle.d.ts +31 -0
- package/tools/formatBlock.d.ts +21 -0
- package/tools/history.d.ts +25 -0
- package/tools/indent.d.ts +20 -0
- package/tools/inlineFormat.d.ts +50 -0
- package/tools/insertImage.d.ts +23 -0
- package/tools/insertLink.d.ts +23 -0
- package/tools/insertTable/popup.d.ts +112 -0
- package/tools/insertTable/popupGrid.d.ts +43 -0
- package/tools/insertTable/tool.d.ts +26 -0
- package/tools/lists.d.ts +24 -0
- package/tools/main.d.ts +102 -0
- package/tools/outdent.d.ts +20 -0
- package/tools/pdf.d.ts +34 -0
- package/tools/print.d.ts +25 -0
- package/tools/proseMirrorTool.d.ts +23 -0
- package/tools/selectAll.d.ts +25 -0
- package/tools/tableEdit.d.ts +58 -0
- package/tools/unlink.d.ts +22 -0
- package/tools/utils.d.ts +25 -0
- package/tools/viewHtml.d.ts +26 -0
- package/utils/browser-detection.d.ts +11 -0
- package/utils/cleanup.d.ts +38 -0
- package/utils/controlled-value.d.ts +12 -0
- package/utils/main.d.ts +364 -0
- package/utils/props-key.d.ts +12 -0
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { PropType } from 'vue';
|
|
9
|
+
export interface InsertTablePopupProps {
|
|
10
|
+
/**
|
|
11
|
+
* The element which will be used as an anchor.
|
|
12
|
+
*/
|
|
13
|
+
anchor: HTMLButtonElement | null | string;
|
|
14
|
+
/**
|
|
15
|
+
* Controls the visibility of the Popup.
|
|
16
|
+
*/
|
|
17
|
+
show: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* The `Create a table` message.
|
|
20
|
+
*/
|
|
21
|
+
createTableMessage: string;
|
|
22
|
+
/**
|
|
23
|
+
* The `Create a {0} x {1} table` message.
|
|
24
|
+
*/
|
|
25
|
+
createTableHintMessage: string;
|
|
26
|
+
/**
|
|
27
|
+
* The number of rows.
|
|
28
|
+
*/
|
|
29
|
+
rows?: number;
|
|
30
|
+
/**
|
|
31
|
+
* The number of columns.
|
|
32
|
+
*/
|
|
33
|
+
columns?: number;
|
|
34
|
+
/**
|
|
35
|
+
* The `dir` HTML attribute.
|
|
36
|
+
*/
|
|
37
|
+
dir?: string;
|
|
38
|
+
/**
|
|
39
|
+
* The `close` event which will be triggered when the `InsertTablePopup` is about to be closed.
|
|
40
|
+
*/
|
|
41
|
+
onClose?: () => void;
|
|
42
|
+
/**
|
|
43
|
+
* The `onTableInsert` event which will be triggered when a cell in `InsertTablePopup` is clicked.
|
|
44
|
+
*/
|
|
45
|
+
onTableinsert?: (row: number, col: number) => void;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* @hidden
|
|
49
|
+
*/
|
|
50
|
+
declare const InsertTablePopup: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
51
|
+
show: {
|
|
52
|
+
type: PropType<boolean>;
|
|
53
|
+
required: true;
|
|
54
|
+
};
|
|
55
|
+
createTableMessage: {
|
|
56
|
+
type: PropType<string>;
|
|
57
|
+
required: true;
|
|
58
|
+
};
|
|
59
|
+
createTableHintMessage: {
|
|
60
|
+
type: PropType<string>;
|
|
61
|
+
required: true;
|
|
62
|
+
};
|
|
63
|
+
anchor: PropType<string | HTMLButtonElement>;
|
|
64
|
+
rows: {
|
|
65
|
+
type: PropType<number>;
|
|
66
|
+
default: number;
|
|
67
|
+
};
|
|
68
|
+
columns: {
|
|
69
|
+
type: PropType<number>;
|
|
70
|
+
default: number;
|
|
71
|
+
};
|
|
72
|
+
dir: PropType<string>;
|
|
73
|
+
onTableinsert: PropType<(row: number, col: number) => void>;
|
|
74
|
+
}>, {}, {
|
|
75
|
+
pointerdown: boolean;
|
|
76
|
+
}, {}, {
|
|
77
|
+
onTableInsert(row: number, col: number): void;
|
|
78
|
+
onWindowDown(event: any): void;
|
|
79
|
+
onPointerDown(): void;
|
|
80
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
81
|
+
close: any;
|
|
82
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
83
|
+
show: {
|
|
84
|
+
type: PropType<boolean>;
|
|
85
|
+
required: true;
|
|
86
|
+
};
|
|
87
|
+
createTableMessage: {
|
|
88
|
+
type: PropType<string>;
|
|
89
|
+
required: true;
|
|
90
|
+
};
|
|
91
|
+
createTableHintMessage: {
|
|
92
|
+
type: PropType<string>;
|
|
93
|
+
required: true;
|
|
94
|
+
};
|
|
95
|
+
anchor: PropType<string | HTMLButtonElement>;
|
|
96
|
+
rows: {
|
|
97
|
+
type: PropType<number>;
|
|
98
|
+
default: number;
|
|
99
|
+
};
|
|
100
|
+
columns: {
|
|
101
|
+
type: PropType<number>;
|
|
102
|
+
default: number;
|
|
103
|
+
};
|
|
104
|
+
dir: PropType<string>;
|
|
105
|
+
onTableinsert: PropType<(row: number, col: number) => void>;
|
|
106
|
+
}>> & Readonly<{
|
|
107
|
+
onClose?: (...args: any[] | unknown[]) => any;
|
|
108
|
+
}>, {
|
|
109
|
+
columns: number;
|
|
110
|
+
rows: number;
|
|
111
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
112
|
+
export { InsertTablePopup };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { PropType } from 'vue';
|
|
9
|
+
export interface PopupGridProps {
|
|
10
|
+
rows: number;
|
|
11
|
+
columns: number;
|
|
12
|
+
createTableMessage: string;
|
|
13
|
+
createTableHintMessage: string;
|
|
14
|
+
onCellclick?: (row: number, col: number) => void;
|
|
15
|
+
onDown?: () => void;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @hidden
|
|
19
|
+
*/
|
|
20
|
+
declare const PopupGrid: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
21
|
+
rows: PropType<number>;
|
|
22
|
+
columns: PropType<number>;
|
|
23
|
+
createTableMessage: PropType<string>;
|
|
24
|
+
createTableHintMessage: PropType<string>;
|
|
25
|
+
onCellclick: PropType<(row: number, col: number) => void>;
|
|
26
|
+
onDown: PropType<() => void>;
|
|
27
|
+
}>, {}, {
|
|
28
|
+
row: number;
|
|
29
|
+
col: number;
|
|
30
|
+
}, {}, {
|
|
31
|
+
cellMouseEnter({ row, col }: any): void;
|
|
32
|
+
handleMouseLeave(): void;
|
|
33
|
+
onCellClick(row: number, col: number): void;
|
|
34
|
+
onMouseDown(e: any): void;
|
|
35
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
36
|
+
rows: PropType<number>;
|
|
37
|
+
columns: PropType<number>;
|
|
38
|
+
createTableMessage: PropType<string>;
|
|
39
|
+
createTableHintMessage: PropType<string>;
|
|
40
|
+
onCellclick: PropType<(row: number, col: number) => void>;
|
|
41
|
+
onDown: PropType<() => void>;
|
|
42
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
43
|
+
export { PopupGrid };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { ButtonProps } from '@progress/kendo-vue-buttons';
|
|
9
|
+
import { BasicToolProps, ToolRenderProp } from './../ToolProps';
|
|
10
|
+
export interface InsertTableProps extends BasicToolProps, ButtonProps, ToolRenderProp {
|
|
11
|
+
dir?: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @hidden
|
|
15
|
+
*/
|
|
16
|
+
declare const InsertTable: import('vue').DefineComponent<{}, {}, {
|
|
17
|
+
openedPopup: boolean;
|
|
18
|
+
}, {}, {
|
|
19
|
+
togglePopup(): void;
|
|
20
|
+
closePopup(): void;
|
|
21
|
+
onTableInsert(row: number, col: number): void;
|
|
22
|
+
preventDefault(e: any): void;
|
|
23
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {} | {
|
|
24
|
+
[x: string]: any;
|
|
25
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
26
|
+
export { InsertTable };
|
package/tools/lists.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { ToolProps } from './ToolProps';
|
|
9
|
+
export interface ListToolProps extends ToolProps {
|
|
10
|
+
}
|
|
11
|
+
export interface OrderedListProps extends ListToolProps {
|
|
12
|
+
}
|
|
13
|
+
export interface UnorderedListProps extends ListToolProps {
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* @hidden
|
|
17
|
+
*/
|
|
18
|
+
declare const List: import('vue').DefineComponent<{}, {}, {}, {}, {
|
|
19
|
+
handleClick(): void;
|
|
20
|
+
preventDefault(e: any): void;
|
|
21
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {} | {
|
|
22
|
+
[x: string]: any;
|
|
23
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
24
|
+
export { List };
|
package/tools/main.d.ts
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { ToolProps } from './ToolProps';
|
|
9
|
+
import { TableEditNS } from './tableEdit';
|
|
10
|
+
import { PrintProps as PrintToolProps } from './print';
|
|
11
|
+
import { PdfProps as PdfToolProps } from './pdf';
|
|
12
|
+
import { FindAndReplaceProps as FindAndReplaceToolProps } from './findReplace';
|
|
13
|
+
/**
|
|
14
|
+
* Represents a wrapping namespace for the tool components, props, and functions of the Editor.
|
|
15
|
+
*/
|
|
16
|
+
export declare namespace EditorTools {
|
|
17
|
+
/**
|
|
18
|
+
* The props for the Align tool component of the Editor.
|
|
19
|
+
*/
|
|
20
|
+
interface AlignToolProps extends ToolProps {
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* The props for the AlignLeft tool component of the Editor.
|
|
24
|
+
*/
|
|
25
|
+
interface AlignLeftProps extends AlignToolProps {
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* The props for the AlignRight tool component of the Editor.
|
|
29
|
+
*/
|
|
30
|
+
interface AlignRightProps extends AlignToolProps {
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* The props for the AlignCenter tool component of the Editor.
|
|
34
|
+
*/
|
|
35
|
+
interface AlignCenterProps extends AlignToolProps {
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* The props for the AlignJustify tool component of the Editor.
|
|
39
|
+
*/
|
|
40
|
+
interface AlignJustifyProps extends AlignToolProps {
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* The props for the Print tool component of the Editor.
|
|
44
|
+
*/
|
|
45
|
+
interface PrintProps extends PrintToolProps {
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* The props for the Export to PDF tool component of the Editor.
|
|
49
|
+
*/
|
|
50
|
+
interface PdfProps extends PdfToolProps {
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* The props for the AddRowBefore tool component of the Editor.
|
|
54
|
+
*/
|
|
55
|
+
interface AddRowBeforeProps extends TableEditNS.AddRowBeforeProps {
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* The props for the AddRowAfter tool component of the Editor.
|
|
59
|
+
*/
|
|
60
|
+
interface AddRowAfterProps extends TableEditNS.AddRowAfterProps {
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* The props for the AddColumnBefore tool component of the Editor.
|
|
64
|
+
*/
|
|
65
|
+
interface AddColumnBeforeProps extends TableEditNS.AddColumnBeforeProps {
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* The props for the AddColumnAfter tool component of the Editor.
|
|
69
|
+
*/
|
|
70
|
+
interface AddColumnAfterProps extends TableEditNS.AddColumnAfterProps {
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* The props for the DeleteRow tool component of the Editor.
|
|
74
|
+
*/
|
|
75
|
+
interface DeleteRowProps extends TableEditNS.DeleteRowProps {
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* The props for the DeleteColumn tool component of the Editor.
|
|
79
|
+
*/
|
|
80
|
+
interface DeleteColumnProps extends TableEditNS.DeleteColumnProps {
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* The props for the DeleteTable tool component of the Editor.
|
|
84
|
+
*/
|
|
85
|
+
interface DeleteTableProps extends TableEditNS.DeleteTableProps {
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* The props for the MergeCells tool component of the Editor.
|
|
89
|
+
*/
|
|
90
|
+
interface MergeCellsProps extends TableEditNS.MergeCellsProps {
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* The props for the SplitCell tool component of the Editor.
|
|
94
|
+
*/
|
|
95
|
+
interface SplitCellProps extends TableEditNS.SplitCellProps {
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* The props for the FindAndReplace tool component of the Editor.
|
|
99
|
+
*/
|
|
100
|
+
interface FindAndReplaceProps extends FindAndReplaceToolProps {
|
|
101
|
+
}
|
|
102
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { IndentProps } from './indent';
|
|
9
|
+
export interface OutdentProps extends IndentProps {
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
declare const Outdent: import('vue').DefineComponent<{}, {}, {}, {}, {
|
|
15
|
+
handleClick(): void;
|
|
16
|
+
preventDefault(e: any): void;
|
|
17
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {} | {
|
|
18
|
+
[x: string]: any;
|
|
19
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
20
|
+
export { Outdent };
|
package/tools/pdf.d.ts
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { ToolProps } from './ToolProps';
|
|
9
|
+
import { EditorToolsSettings } from './../config/toolsSettings';
|
|
10
|
+
import { PDFExportProps } from '@progress/kendo-vue-pdf';
|
|
11
|
+
export interface PdfProps extends ToolProps {
|
|
12
|
+
/**
|
|
13
|
+
* The settings of the tool. Use it to modify the tool appearance.
|
|
14
|
+
*/
|
|
15
|
+
settings?: EditorToolsSettings.PdfSettings;
|
|
16
|
+
/**
|
|
17
|
+
* The options which will be passed to the [`savePDF`]({% slug api_pdf_savepdf %}) function.
|
|
18
|
+
*/
|
|
19
|
+
savePdfOptions?: PDFExportProps;
|
|
20
|
+
/**
|
|
21
|
+
* The callback which will be passed to the [`savePDF`]({% slug api_pdf_savepdf %}) function.
|
|
22
|
+
*/
|
|
23
|
+
savePdfCallback?: () => void;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @hidden
|
|
27
|
+
*/
|
|
28
|
+
declare const Pdf: import('vue').DefineComponent<{}, {}, {}, {}, {
|
|
29
|
+
handleClick(): void;
|
|
30
|
+
preventDefault(e: any): void;
|
|
31
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {} | {
|
|
32
|
+
[x: string]: any;
|
|
33
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
34
|
+
export { Pdf };
|
package/tools/print.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { ToolProps } from './ToolProps';
|
|
9
|
+
import { EditorToolsSettings } from './../config/toolsSettings';
|
|
10
|
+
export interface PrintProps extends ToolProps {
|
|
11
|
+
/**
|
|
12
|
+
* The settings of the tool. Use it to modify the tool appearance.
|
|
13
|
+
*/
|
|
14
|
+
settings?: EditorToolsSettings.PrintSettings;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @hidden
|
|
18
|
+
*/
|
|
19
|
+
declare const Print: import('vue').DefineComponent<{}, {}, {}, {}, {
|
|
20
|
+
handleClick(): void;
|
|
21
|
+
preventDefault(e: any): void;
|
|
22
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {} | {
|
|
23
|
+
[x: string]: any;
|
|
24
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
25
|
+
export { Print };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { EditorState, Transaction } from '@progress/kendo-editor-common';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export declare type ProseMirrorCommand = (state: EditorState, dispatch?: (tr: Transaction) => void) => boolean;
|
|
13
|
+
/**
|
|
14
|
+
* @hidden
|
|
15
|
+
*/
|
|
16
|
+
declare const ProseMirror: import('vue').DefineComponent<{}, {}, {}, {
|
|
17
|
+
command(): any;
|
|
18
|
+
}, {
|
|
19
|
+
handleClick(): void;
|
|
20
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {} | {
|
|
21
|
+
[x: string]: any;
|
|
22
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
23
|
+
export { ProseMirror };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { ToolProps } from './ToolProps';
|
|
9
|
+
import { EditorToolsSettings } from './../config/toolsSettings';
|
|
10
|
+
export interface SelectAllProps extends ToolProps {
|
|
11
|
+
/**
|
|
12
|
+
* The settings of the tool. Use it to modify the tool appearance.
|
|
13
|
+
*/
|
|
14
|
+
settings?: EditorToolsSettings.SelectAllSettings;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @hidden
|
|
18
|
+
*/
|
|
19
|
+
declare const SelectAll: import('vue').DefineComponent<{}, {}, {}, {}, {
|
|
20
|
+
handleClick(): void;
|
|
21
|
+
preventDefault(e: any): void;
|
|
22
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {} | {
|
|
23
|
+
[x: string]: any;
|
|
24
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
25
|
+
export { SelectAll };
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { ToolProps } from './ToolProps';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export declare namespace TableEditNS {
|
|
13
|
+
/**
|
|
14
|
+
* @hidden
|
|
15
|
+
*/
|
|
16
|
+
interface AddRowBeforeProps extends ToolProps {
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* @hidden
|
|
20
|
+
*/
|
|
21
|
+
interface AddRowAfterProps extends ToolProps {
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* @hidden
|
|
25
|
+
*/
|
|
26
|
+
interface AddColumnBeforeProps extends ToolProps {
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* @hidden
|
|
30
|
+
*/
|
|
31
|
+
interface AddColumnAfterProps extends ToolProps {
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* @hidden
|
|
35
|
+
*/
|
|
36
|
+
interface DeleteRowProps extends ToolProps {
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* @hidden
|
|
40
|
+
*/
|
|
41
|
+
interface DeleteColumnProps extends ToolProps {
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* @hidden
|
|
45
|
+
*/
|
|
46
|
+
interface DeleteTableProps extends ToolProps {
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* @hidden
|
|
50
|
+
*/
|
|
51
|
+
interface MergeCellsProps extends ToolProps {
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* @hidden
|
|
55
|
+
*/
|
|
56
|
+
interface SplitCellProps extends ToolProps {
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { ToolProps } from './ToolProps';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export interface UnlinkProps extends ToolProps {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @hidden
|
|
16
|
+
*/
|
|
17
|
+
declare const Unlink: import('vue').DefineComponent<{}, {}, {}, {}, {
|
|
18
|
+
handleClick(): void;
|
|
19
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {} | {
|
|
20
|
+
[x: string]: any;
|
|
21
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
22
|
+
export { Unlink };
|
package/tools/utils.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
declare const onDownPreventDefault: {
|
|
12
|
+
onMouseDown: (e: any) => any;
|
|
13
|
+
onPointerDown: (e: any) => any;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* @hidden
|
|
17
|
+
*/
|
|
18
|
+
declare const userSelectNone: {
|
|
19
|
+
userSelect: string;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* @hidden
|
|
23
|
+
*/
|
|
24
|
+
declare const formatString: (input: string, ...args: Array<any>) => string;
|
|
25
|
+
export { onDownPreventDefault, formatString, userSelectNone };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { ButtonProps } from '@progress/kendo-vue-buttons';
|
|
9
|
+
import { BasicToolProps, ToolRenderProp } from './ToolProps';
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
export interface ViewHtmlProps extends BasicToolProps, ToolRenderProp, ButtonProps {
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* @hidden
|
|
17
|
+
*/
|
|
18
|
+
declare const ViewHtml: import('vue').DefineComponent<{}, {}, {
|
|
19
|
+
openedDialog: boolean;
|
|
20
|
+
}, {}, {
|
|
21
|
+
toggleDialog(): void;
|
|
22
|
+
preventDefault(e: any): void;
|
|
23
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {} | {
|
|
24
|
+
[x: string]: any;
|
|
25
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
26
|
+
export { ViewHtml };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
export declare const firefox: boolean;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Utilities for cleaning up ProseMirror and DOM resources to prevent memory leaks
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
* Recursively destroys all child nodes and removes attributes from a DOM node
|
|
13
|
+
* @param node - The DOM node to destroy
|
|
14
|
+
* @hidden
|
|
15
|
+
*/
|
|
16
|
+
export declare const destroyNode: (node: Node) => void;
|
|
17
|
+
/**
|
|
18
|
+
* Cleans up ProseMirror EditorView internal references and destroys the view
|
|
19
|
+
* This breaks circular references and releases DOM nodes held by ProseMirror
|
|
20
|
+
* @param view - The ProseMirror EditorView instance
|
|
21
|
+
* @returns The view's DOM element before it was nullified (for cleanup)
|
|
22
|
+
* @hidden
|
|
23
|
+
*/
|
|
24
|
+
export declare const cleanupAndDestroyProseMirrorView: (view: any) => Element | null;
|
|
25
|
+
/**
|
|
26
|
+
* Cleans up an iframe and its document to release memory
|
|
27
|
+
* @param iframe - The iframe element to clean up
|
|
28
|
+
* @param contentElement - Optional content element to destroy
|
|
29
|
+
* @hidden
|
|
30
|
+
*/
|
|
31
|
+
export declare const cleanupIframe: (iframe: HTMLIFrameElement, contentElement?: Element | null) => void;
|
|
32
|
+
/**
|
|
33
|
+
* Nullifies all properties on an object to break references
|
|
34
|
+
* Useful for breaking Vue's reactivity wrapper (markRaw)
|
|
35
|
+
* @param obj - The object to nullify
|
|
36
|
+
* @hidden
|
|
37
|
+
*/
|
|
38
|
+
export declare const nullifyObjectProperties: (obj: any) => void;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { Transaction, EditorView, Node } from '@progress/kendo-editor-common';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export declare const updateEditorValue: (view: EditorView, value: Node | string, prevValue: Node | string | undefined, trOnChange: Transaction | null, htmlOnChange: string | null) => void;
|