@progress/kendo-react-editor 7.2.4-develop.2 → 7.2.4-develop.4
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.js +8 -0
- package/Editor.mjs +327 -0
- package/config/defaultStyles.js +229 -0
- package/config/defaultStyles.mjs +235 -0
- package/config/shortcuts.js +8 -0
- package/config/shortcuts.mjs +34 -0
- package/config/toolsSettings.js +8 -0
- package/config/toolsSettings.mjs +549 -0
- package/dialogs/FindReplace.js +8 -0
- package/dialogs/FindReplace.mjs +214 -0
- package/dialogs/index.js +8 -0
- package/dialogs/index.mjs +30 -0
- package/dialogs/insertImage.js +8 -0
- package/dialogs/insertImage.mjs +117 -0
- package/dialogs/insertLink.js +8 -0
- package/dialogs/insertLink.mjs +96 -0
- package/dialogs/viewHtml.js +8 -0
- package/dialogs/viewHtml.mjs +70 -0
- package/dist/cdn/js/kendo-react-editor.js +8 -226
- package/index.d.mts +2943 -5
- package/index.d.ts +2941 -178
- package/index.js +8 -226
- package/index.mjs +165 -4118
- package/messages/index.js +8 -0
- package/messages/index.mjs +345 -0
- package/package-metadata.js +8 -0
- package/package-metadata.mjs +19 -0
- package/package.json +11 -11
- package/tools/align.js +8 -0
- package/tools/align.mjs +38 -0
- package/tools/applyColor.js +8 -0
- package/tools/applyColor.mjs +34 -0
- package/tools/cleanFormatting.js +8 -0
- package/tools/cleanFormatting.mjs +41 -0
- package/tools/findReplace.js +8 -0
- package/tools/findReplace.mjs +53 -0
- package/tools/fontStyle.js +8 -0
- package/tools/fontStyle.mjs +61 -0
- package/tools/formatBlock.js +8 -0
- package/tools/formatBlock.mjs +60 -0
- package/tools/history.js +8 -0
- package/tools/history.mjs +17 -0
- package/tools/indent.js +8 -0
- package/tools/indent.mjs +43 -0
- package/tools/index.js +8 -0
- package/tools/index.mjs +278 -0
- package/tools/inlineFormat.js +8 -0
- package/tools/inlineFormat.mjs +43 -0
- package/tools/insertImage.js +8 -0
- package/tools/insertImage.mjs +58 -0
- package/tools/insertLink.js +8 -0
- package/tools/insertLink.mjs +61 -0
- package/tools/insertTable/popup.js +8 -0
- package/tools/insertTable/popup.mjs +94 -0
- package/tools/insertTable/popupGrid.js +8 -0
- package/tools/insertTable/popupGrid.mjs +58 -0
- package/tools/insertTable/tool.js +8 -0
- package/tools/insertTable/tool.mjs +73 -0
- package/tools/lists-styled.js +8 -0
- package/tools/lists-styled.mjs +61 -0
- package/tools/lists.js +8 -0
- package/tools/lists.mjs +47 -0
- package/tools/outdent.js +8 -0
- package/tools/outdent.mjs +43 -0
- package/tools/pdf.js +8 -0
- package/tools/pdf.mjs +36 -0
- package/tools/print.js +8 -0
- package/tools/print.mjs +38 -0
- package/tools/proseMirrorTool.js +8 -0
- package/tools/proseMirrorTool.mjs +37 -0
- package/tools/selectAll.js +8 -0
- package/tools/selectAll.mjs +36 -0
- package/tools/table-wizard/cellPropsUtils.js +8 -0
- package/tools/table-wizard/cellPropsUtils.mjs +124 -0
- package/tools/table-wizard/tableCellProperties.js +8 -0
- package/tools/table-wizard/tableCellProperties.mjs +238 -0
- package/tools/table-wizard/tableProperties.js +8 -0
- package/tools/table-wizard/tableProperties.mjs +292 -0
- package/tools/table-wizard/tablePropsUtils.js +8 -0
- package/tools/table-wizard/tablePropsUtils.mjs +288 -0
- package/tools/table-wizard/utils.js +8 -0
- package/tools/table-wizard/utils.mjs +91 -0
- package/tools/tableEdit.js +8 -0
- package/tools/tableEdit.mjs +36 -0
- package/tools/unlink.js +8 -0
- package/tools/unlink.mjs +41 -0
- package/tools/utils.js +8 -0
- package/tools/utils.mjs +51 -0
- package/tools/viewHtml.js +8 -0
- package/tools/viewHtml.mjs +57 -0
- package/utils/browser-detection.js +8 -0
- package/utils/browser-detection.mjs +12 -0
- package/utils/controlled-value.js +8 -0
- package/utils/controlled-value.mjs +19 -0
- package/utils/index.js +8 -0
- package/utils/index.mjs +162 -0
- package/utils/props-key.js +8 -0
- package/utils/props-key.mjs +13 -0
- package/Editor.d.ts +0 -122
- package/EditorProps.d.ts +0 -200
- package/config/defaultStyles.d.ts +0 -16
- package/config/pasteSettings.d.ts +0 -10
- package/config/schema.d.ts +0 -5
- package/config/shortcuts.d.ts +0 -28
- package/config/toolsSettings.d.ts +0 -493
- package/dialogs/EditorDialogProps.d.ts +0 -30
- package/dialogs/FindReplace.d.ts +0 -75
- package/dialogs/index.d.ts +0 -53
- package/dialogs/insertImage.d.ts +0 -32
- package/dialogs/insertLink.d.ts +0 -30
- package/dialogs/viewHtml.d.ts +0 -29
- package/messages/index.d.ts +0 -338
- package/package-metadata.d.ts +0 -9
- package/tools/ToolProps.d.ts +0 -41
- package/tools/align.d.ts +0 -11
- package/tools/applyColor.d.ts +0 -16
- package/tools/cleanFormatting.d.ts +0 -20
- package/tools/findReplace.d.ts +0 -33
- package/tools/fontStyle.d.ts +0 -32
- package/tools/formatBlock.d.ts +0 -22
- package/tools/history.d.ts +0 -30
- package/tools/indent.d.ts +0 -21
- package/tools/index.d.ts +0 -718
- package/tools/inlineFormat.d.ts +0 -51
- package/tools/insertImage.d.ts +0 -17
- package/tools/insertLink.d.ts +0 -28
- package/tools/insertTable/index.d.ts +0 -7
- package/tools/insertTable/popup.d.ts +0 -97
- package/tools/insertTable/popupGrid.d.ts +0 -35
- package/tools/insertTable/tool.d.ts +0 -28
- package/tools/lists-styled.d.ts +0 -8
- package/tools/lists.d.ts +0 -31
- package/tools/outdent.d.ts +0 -21
- package/tools/pdf.d.ts +0 -29
- package/tools/print.d.ts +0 -20
- package/tools/proseMirrorTool.d.ts +0 -16
- package/tools/selectAll.d.ts +0 -20
- package/tools/table-wizard/cellPropsUtils.d.ts +0 -40
- package/tools/table-wizard/tableCellProperties.d.ts +0 -24
- package/tools/table-wizard/tableProperties.d.ts +0 -15
- package/tools/table-wizard/tablePropsUtils.d.ts +0 -56
- package/tools/table-wizard/utils.d.ts +0 -43
- package/tools/tableEdit.d.ts +0 -102
- package/tools/unlink.d.ts +0 -21
- package/tools/utils.d.ts +0 -54
- package/tools/viewHtml.d.ts +0 -28
- package/utils/browser-detection.d.ts +0 -8
- package/utils/controlled-value.d.ts +0 -9
- package/utils/index.d.ts +0 -367
- package/utils/props-key.d.ts +0 -9
package/tools/inlineFormat.d.ts
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
import { EditorToolsSettings } from '../config/toolsSettings';
|
|
7
|
-
import { ToolProps } from './ToolProps';
|
|
8
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*/
|
|
11
|
-
export declare namespace InlineFormatToolNS {
|
|
12
|
-
/**
|
|
13
|
-
* @hidden
|
|
14
|
-
*/
|
|
15
|
-
interface InlineFormatToolProps extends ToolProps {
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* @hidden
|
|
19
|
-
*/
|
|
20
|
-
interface BoldProps extends InlineFormatToolProps {
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* @hidden
|
|
24
|
-
*/
|
|
25
|
-
interface ItalicProps extends InlineFormatToolProps {
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* @hidden
|
|
29
|
-
*/
|
|
30
|
-
interface UnderlineProps extends InlineFormatToolProps {
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* @hidden
|
|
34
|
-
*/
|
|
35
|
-
interface StrikethroughProps extends InlineFormatToolProps {
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* @hidden
|
|
39
|
-
*/
|
|
40
|
-
interface SubscriptProps extends InlineFormatToolProps {
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* @hidden
|
|
44
|
-
*/
|
|
45
|
-
interface SuperscriptProps extends InlineFormatToolProps {
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* @hidden
|
|
49
|
-
*/
|
|
50
|
-
const createInlineFormatTool: (settings: EditorToolsSettings.InlineFormatSettings) => React.ComponentClass<InlineFormatToolProps, any>;
|
|
51
|
-
}
|
package/tools/insertImage.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
import { EditorToolsSettings } from '../config/toolsSettings';
|
|
7
|
-
import { EditorTools } from '.';
|
|
8
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*/
|
|
11
|
-
export interface InsertImageState {
|
|
12
|
-
openedDialog: boolean;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* @hidden
|
|
16
|
-
*/
|
|
17
|
-
export declare const createInsertImageTool: (settings: EditorToolsSettings.ImageSettings) => React.ComponentClass<EditorTools.InsertImageProps, InsertImageState>;
|
package/tools/insertLink.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
import { ButtonProps } from '@progress/kendo-react-buttons';
|
|
7
|
-
import { EditorToolsSettings } from '../config/toolsSettings';
|
|
8
|
-
import { BasicToolProps, ToolWithDialogRenderProp } from './ToolProps';
|
|
9
|
-
/**
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
export declare namespace LinkToolNS {
|
|
13
|
-
/**
|
|
14
|
-
* @hidden
|
|
15
|
-
*/
|
|
16
|
-
interface LinkProps extends BasicToolProps, ToolWithDialogRenderProp, ButtonProps {
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* @hidden
|
|
20
|
-
*/
|
|
21
|
-
interface LinkToolState {
|
|
22
|
-
openedDialog: boolean;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* @hidden
|
|
26
|
-
*/
|
|
27
|
-
const createLinkTool: (settings: EditorToolsSettings.LinkSettings) => React.ComponentClass<LinkProps, LinkToolState>;
|
|
28
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { InsertTableToolNS } from './tool';
|
|
6
|
-
import { InsertTablePopupNS } from './popup';
|
|
7
|
-
export { InsertTableToolNS, InsertTablePopupNS };
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
import PropTypes from 'prop-types';
|
|
7
|
-
/**
|
|
8
|
-
* @hidden
|
|
9
|
-
*/
|
|
10
|
-
export declare namespace InsertTablePopupNS {
|
|
11
|
-
/**
|
|
12
|
-
* @hidden
|
|
13
|
-
*/
|
|
14
|
-
interface InsertTablePopupProps {
|
|
15
|
-
/**
|
|
16
|
-
* The element which will be used as an anchor.
|
|
17
|
-
*/
|
|
18
|
-
anchor: HTMLButtonElement | null;
|
|
19
|
-
/**
|
|
20
|
-
* Controls the visibility of the Popup.
|
|
21
|
-
*/
|
|
22
|
-
show: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* The `Create a table` message.
|
|
25
|
-
*/
|
|
26
|
-
createTableMessage: string;
|
|
27
|
-
/**
|
|
28
|
-
* The `Create a {0} x {1} table` message.
|
|
29
|
-
*/
|
|
30
|
-
createTableHintMessage: string;
|
|
31
|
-
/**
|
|
32
|
-
* The number of rows.
|
|
33
|
-
*/
|
|
34
|
-
rows?: number;
|
|
35
|
-
/**
|
|
36
|
-
* The number of columns.
|
|
37
|
-
*/
|
|
38
|
-
columns?: number;
|
|
39
|
-
/**
|
|
40
|
-
* The `dir` HTML attribute.
|
|
41
|
-
*/
|
|
42
|
-
dir?: string;
|
|
43
|
-
/**
|
|
44
|
-
* The `close` event which will be triggered when the `InsertTablePopup` is about to be closed.
|
|
45
|
-
*/
|
|
46
|
-
onClose: () => void;
|
|
47
|
-
/**
|
|
48
|
-
* The `onTableInsert` event which will be triggered when a cell in `InsertTablePopup` is clicked.
|
|
49
|
-
*/
|
|
50
|
-
onTableInsert: (row: number, col: number) => void;
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* @hidden
|
|
54
|
-
*/
|
|
55
|
-
class InsertTablePopup extends React.Component<InsertTablePopupProps> {
|
|
56
|
-
/**
|
|
57
|
-
* @hidden
|
|
58
|
-
*/
|
|
59
|
-
static propTypes: {
|
|
60
|
-
show: PropTypes.Validator<boolean>;
|
|
61
|
-
createTableMessage: PropTypes.Validator<string>;
|
|
62
|
-
createTableHintMessage: PropTypes.Validator<string>;
|
|
63
|
-
onClose: PropTypes.Validator<(...args: any[]) => any>;
|
|
64
|
-
onTableInsert: PropTypes.Validator<(...args: any[]) => any>;
|
|
65
|
-
anchor: PropTypes.Requireable<any>;
|
|
66
|
-
rows: PropTypes.Requireable<number>;
|
|
67
|
-
columns: PropTypes.Requireable<number>;
|
|
68
|
-
dir: PropTypes.Requireable<string>;
|
|
69
|
-
};
|
|
70
|
-
/**
|
|
71
|
-
* @hidden
|
|
72
|
-
*/
|
|
73
|
-
static defaultProps: {
|
|
74
|
-
rows: number;
|
|
75
|
-
columns: number;
|
|
76
|
-
};
|
|
77
|
-
private pointerdown;
|
|
78
|
-
/**
|
|
79
|
-
* @hidden
|
|
80
|
-
*/
|
|
81
|
-
componentDidUpdate(prevProps: InsertTablePopupProps): void;
|
|
82
|
-
/**
|
|
83
|
-
* @hidden
|
|
84
|
-
*/
|
|
85
|
-
componentDidMount(): void;
|
|
86
|
-
/**
|
|
87
|
-
* @hidden
|
|
88
|
-
*/
|
|
89
|
-
componentWillUnmount(): void;
|
|
90
|
-
/**
|
|
91
|
-
* @hidden
|
|
92
|
-
*/
|
|
93
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
94
|
-
private onWindowDown;
|
|
95
|
-
private onPointerDown;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
/**
|
|
7
|
-
* @hidden
|
|
8
|
-
*/
|
|
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
|
-
interface PopupGridState {
|
|
21
|
-
row: number;
|
|
22
|
-
col: number;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* @hidden
|
|
26
|
-
*/
|
|
27
|
-
export default class PopupGrid extends React.Component<PopupGridProps, PopupGridState> {
|
|
28
|
-
readonly state: {
|
|
29
|
-
row: number;
|
|
30
|
-
col: number;
|
|
31
|
-
};
|
|
32
|
-
renderCell(index: number, selRow: number, selCol: number): import("react/jsx-runtime").JSX.Element;
|
|
33
|
-
render(): import("react/jsx-runtime").JSX.Element[];
|
|
34
|
-
}
|
|
35
|
-
export {};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
import { ButtonProps } from '@progress/kendo-react-buttons';
|
|
7
|
-
import { EditorToolsSettings } from './../../config/toolsSettings';
|
|
8
|
-
import { BasicToolProps, ToolWithDialogRenderProp } from './../ToolProps';
|
|
9
|
-
/**
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
export declare namespace InsertTableToolNS {
|
|
13
|
-
/**
|
|
14
|
-
* @hidden
|
|
15
|
-
*/
|
|
16
|
-
interface InsertTableProps extends BasicToolProps, ToolWithDialogRenderProp, ButtonProps {
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* @hidden
|
|
20
|
-
*/
|
|
21
|
-
interface InsertTableToolState {
|
|
22
|
-
openedPopup: boolean;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* @hidden
|
|
26
|
-
*/
|
|
27
|
-
const createInsertTableTool: (settings: EditorToolsSettings.InsertTableSettings) => React.ComponentClass<InsertTableProps, InsertTableToolState>;
|
|
28
|
-
}
|
package/tools/lists-styled.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*/
|
|
8
|
-
export declare const ListTool: (props: any) => import("react/jsx-runtime").JSX.Element;
|
package/tools/lists.d.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
import { EditorToolsSettings } from '../config/toolsSettings';
|
|
7
|
-
import { ToolProps } from './ToolProps';
|
|
8
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*/
|
|
11
|
-
export declare namespace ListToolNS {
|
|
12
|
-
/**
|
|
13
|
-
* @hidden
|
|
14
|
-
*/
|
|
15
|
-
interface ListToolProps extends ToolProps {
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* @hidden
|
|
19
|
-
*/
|
|
20
|
-
interface OrderedListProps extends ListToolProps {
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* @hidden
|
|
24
|
-
*/
|
|
25
|
-
interface UnorderedListProps extends ListToolProps {
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* @hidden
|
|
29
|
-
*/
|
|
30
|
-
const createListTool: (settings: EditorToolsSettings.ListSettings) => React.ComponentClass<ListToolProps, any>;
|
|
31
|
-
}
|
package/tools/outdent.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
import { EditorToolsSettings } from '../config/toolsSettings';
|
|
7
|
-
import { IndentToolNS } from './indent';
|
|
8
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*/
|
|
11
|
-
export declare namespace OutdentToolNS {
|
|
12
|
-
/**
|
|
13
|
-
* @hidden
|
|
14
|
-
*/
|
|
15
|
-
interface OutdentProps extends IndentToolNS.IndentProps {
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* @hidden
|
|
19
|
-
*/
|
|
20
|
-
const createOutdentTool: (settings: EditorToolsSettings.IndentationSettings) => React.ComponentClass<OutdentProps, any>;
|
|
21
|
-
}
|
package/tools/pdf.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
import { ToolProps } from './ToolProps';
|
|
7
|
-
import { EditorToolsSettings } from './../config/toolsSettings';
|
|
8
|
-
import { PDFExportProps } from '@progress/kendo-react-pdf';
|
|
9
|
-
/**
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
export interface PdfProps extends ToolProps {
|
|
13
|
-
/**
|
|
14
|
-
* The settings of the tool. Use it to modify the tool appearance.
|
|
15
|
-
*/
|
|
16
|
-
settings?: EditorToolsSettings.PdfSettings;
|
|
17
|
-
/**
|
|
18
|
-
* The options which will be passed to the [`savePDF`]({% slug api_pdf_savepdf %}) function.
|
|
19
|
-
*/
|
|
20
|
-
savePdfOptions?: PDFExportProps;
|
|
21
|
-
/**
|
|
22
|
-
* The callback which will be passed to the [`savePDF`]({% slug api_pdf_savepdf %}) function.
|
|
23
|
-
*/
|
|
24
|
-
savePdfCallback?: () => void;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* @hidden
|
|
28
|
-
*/
|
|
29
|
-
export declare const Pdf: React.FunctionComponent<PdfProps>;
|
package/tools/print.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
import { ToolProps } from './ToolProps';
|
|
7
|
-
import { EditorToolsSettings } from './../config/toolsSettings';
|
|
8
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*/
|
|
11
|
-
export interface PrintProps extends ToolProps {
|
|
12
|
-
/**
|
|
13
|
-
* The settings of the tool. Use it to modify the tool appearance.
|
|
14
|
-
*/
|
|
15
|
-
settings?: EditorToolsSettings.PrintSettings;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* @hidden
|
|
19
|
-
*/
|
|
20
|
-
export declare const Print: React.FunctionComponent<PrintProps>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
import { EditorToolsSettings } from '../config/toolsSettings';
|
|
7
|
-
import { EditorState, Transaction } from '@progress/kendo-editor-common';
|
|
8
|
-
import { ToolProps } from './ToolProps';
|
|
9
|
-
/**
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
export declare type ProseMirrorCommand = (state: EditorState, dispatch?: (tr: Transaction) => void) => boolean;
|
|
13
|
-
/**
|
|
14
|
-
* @hidden
|
|
15
|
-
*/
|
|
16
|
-
export declare const createProseMirrorTool: (settings: EditorToolsSettings.ToolSettings, command: ProseMirrorCommand) => React.ComponentClass<ToolProps, any>;
|
package/tools/selectAll.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
import { ToolProps } from './ToolProps';
|
|
7
|
-
import { EditorToolsSettings } from './../config/toolsSettings';
|
|
8
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*/
|
|
11
|
-
export interface SelectAllProps extends ToolProps {
|
|
12
|
-
/**
|
|
13
|
-
* The settings of the tool. Use it to modify the tool appearance.
|
|
14
|
-
*/
|
|
15
|
-
settings?: EditorToolsSettings.SelectAllSettings;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* @hidden
|
|
19
|
-
*/
|
|
20
|
-
export declare const SelectAll: React.FunctionComponent<SelectAllProps>;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { EditorState, Transaction } from '@progress/kendo-editor-common';
|
|
6
|
-
/**
|
|
7
|
-
* @hidden
|
|
8
|
-
*/
|
|
9
|
-
interface CellData {
|
|
10
|
-
applyToAll: boolean;
|
|
11
|
-
cellWidth: number | null;
|
|
12
|
-
widthUnit: string;
|
|
13
|
-
cellHeight: number | null;
|
|
14
|
-
heightUnit: string;
|
|
15
|
-
alignment: {
|
|
16
|
-
x: string;
|
|
17
|
-
y: string;
|
|
18
|
-
};
|
|
19
|
-
textControl: string;
|
|
20
|
-
backgroundColor?: string;
|
|
21
|
-
cellPadding: number | null;
|
|
22
|
-
borderWidth: number | null;
|
|
23
|
-
borderColor?: string;
|
|
24
|
-
borderStyle: string | null;
|
|
25
|
-
id: string;
|
|
26
|
-
className: string;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* @hidden
|
|
30
|
-
*/
|
|
31
|
-
declare const initialCellData: CellData;
|
|
32
|
-
/**
|
|
33
|
-
* @hidden
|
|
34
|
-
*/
|
|
35
|
-
declare const cellsDefaultData: (state: EditorState) => CellData;
|
|
36
|
-
/**
|
|
37
|
-
* @hidden
|
|
38
|
-
*/
|
|
39
|
-
declare const applyCellsData: (state: EditorState, data: CellData) => Transaction;
|
|
40
|
-
export { CellData, initialCellData, cellsDefaultData, applyCellsData };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
import { ListItemProps } from '@progress/kendo-react-dropdowns';
|
|
7
|
-
import { ToolProps } from '../ToolProps';
|
|
8
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*/
|
|
11
|
-
export interface TableCellPropertiesProps extends ToolProps {
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* @hidden
|
|
15
|
-
*/
|
|
16
|
-
export declare const TableCellProperties: React.FunctionComponent<TableCellPropertiesProps>;
|
|
17
|
-
/**
|
|
18
|
-
* @hidden
|
|
19
|
-
*/
|
|
20
|
-
export declare const valueRenderWithIcon: (element: React.ReactElement<HTMLSpanElement>, value: any) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
-
/**
|
|
22
|
-
* @hidden
|
|
23
|
-
*/
|
|
24
|
-
export declare const itemRenderWithIcon: (li: React.ReactElement<any>, itemProps: ListItemProps) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
import { ToolProps } from './../ToolProps';
|
|
7
|
-
/**
|
|
8
|
-
* @hidden
|
|
9
|
-
*/
|
|
10
|
-
export interface TablePropertiesProps extends ToolProps {
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* @hidden
|
|
14
|
-
*/
|
|
15
|
-
export declare const TableProperties: React.FunctionComponent<TablePropertiesProps>;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { EditorState, Transaction } from '@progress/kendo-editor-common';
|
|
6
|
-
/**
|
|
7
|
-
* @hidden
|
|
8
|
-
*/
|
|
9
|
-
type TablePosition = 'left' | 'right' | 'center' | '';
|
|
10
|
-
/**
|
|
11
|
-
* @hidden
|
|
12
|
-
*/
|
|
13
|
-
interface TableData {
|
|
14
|
-
rows: number;
|
|
15
|
-
columns: number;
|
|
16
|
-
width: number | null;
|
|
17
|
-
widthUnit: string;
|
|
18
|
-
height: number | null;
|
|
19
|
-
heightUnit: string;
|
|
20
|
-
position: TablePosition | null;
|
|
21
|
-
textAlign: string;
|
|
22
|
-
cellPadding: number | null;
|
|
23
|
-
cellSpacing: number | null;
|
|
24
|
-
backgroundColor: string | undefined;
|
|
25
|
-
borderWidth: number | null;
|
|
26
|
-
borderColor: string | undefined;
|
|
27
|
-
borderStyle: string | null;
|
|
28
|
-
collapseBorders: boolean;
|
|
29
|
-
id: string;
|
|
30
|
-
className: string;
|
|
31
|
-
caption?: string;
|
|
32
|
-
captionPosition: string | null;
|
|
33
|
-
captionAlignment: string | null;
|
|
34
|
-
headerRows: number;
|
|
35
|
-
headerColumns: number;
|
|
36
|
-
associateHeaders: 'none' | 'scope' | 'id';
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* @hidden
|
|
40
|
-
*/
|
|
41
|
-
declare const initialTableData: TableData;
|
|
42
|
-
/**
|
|
43
|
-
* @hidden
|
|
44
|
-
*/
|
|
45
|
-
declare const tablePositionStyles: Record<TablePosition, {
|
|
46
|
-
[styleName: string]: string;
|
|
47
|
-
}>;
|
|
48
|
-
/**
|
|
49
|
-
* @hidden
|
|
50
|
-
*/
|
|
51
|
-
declare const tableDefaultData: (state: EditorState) => TableData;
|
|
52
|
-
/**
|
|
53
|
-
* @hidden
|
|
54
|
-
*/
|
|
55
|
-
declare const applyTableData: (state: EditorState, data: TableData) => Transaction | undefined;
|
|
56
|
-
export { TableData, initialTableData, tablePositionStyles, TablePosition, tableDefaultData, applyTableData };
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { EditorState, Node } from '@progress/kendo-editor-common';
|
|
6
|
-
/**
|
|
7
|
-
* @hidden
|
|
8
|
-
*/
|
|
9
|
-
export declare const reUnit: RegExp;
|
|
10
|
-
/**
|
|
11
|
-
* @hidden
|
|
12
|
-
*/
|
|
13
|
-
export declare const getUnit: (value: string) => string;
|
|
14
|
-
/**
|
|
15
|
-
* @hidden
|
|
16
|
-
*/
|
|
17
|
-
export declare const nodeSize: (node: Node, style: string) => {
|
|
18
|
-
[x: string]: string | number | null;
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
* @hidden
|
|
22
|
-
*/
|
|
23
|
-
export declare const parseStyle: (styleText: string | null) => {
|
|
24
|
-
[x: string]: string;
|
|
25
|
-
};
|
|
26
|
-
/**
|
|
27
|
-
* @hidden
|
|
28
|
-
*/
|
|
29
|
-
export declare function setNodeStyle(nodeAttrs: any, styleType: string, value: string): any;
|
|
30
|
-
/**
|
|
31
|
-
* @hidden
|
|
32
|
-
*/
|
|
33
|
-
export declare const selectedCells: (state: EditorState) => Array<{
|
|
34
|
-
node: Node;
|
|
35
|
-
pos: number;
|
|
36
|
-
}>;
|
|
37
|
-
/**
|
|
38
|
-
* @hidden
|
|
39
|
-
*/
|
|
40
|
-
export declare const tableCells: (state: EditorState) => Array<{
|
|
41
|
-
node: Node;
|
|
42
|
-
pos: number;
|
|
43
|
-
}>;
|