@progress/kendo-angular-editor 19.1.2-develop.2 → 19.1.2-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.
Files changed (108) hide show
  1. package/common/apply-to-word-options.d.ts +12 -6
  2. package/common/commands.d.ts +7 -6
  3. package/common/css-settings.interface.d.ts +13 -4
  4. package/common/font-family-item.interface.d.ts +11 -3
  5. package/common/font-size-item.interface.d.ts +11 -3
  6. package/common/format-item.interface.d.ts +11 -3
  7. package/common/paste-cleanup-settings.d.ts +29 -24
  8. package/common/plugins-function.d.ts +7 -6
  9. package/common/resizable-options.interface.d.ts +15 -5
  10. package/directives.d.ts +1 -1
  11. package/editor.component.d.ts +36 -27
  12. package/editor.module.d.ts +5 -4
  13. package/esm2022/common/error-messages.mjs +1 -1
  14. package/esm2022/directives.mjs +1 -1
  15. package/esm2022/editor.component.mjs +36 -27
  16. package/esm2022/editor.module.mjs +5 -4
  17. package/esm2022/localization/custom-messages.component.mjs +10 -1
  18. package/esm2022/package-metadata.mjs +2 -2
  19. package/esm2022/preventable-events/paste-event.mjs +4 -4
  20. package/esm2022/tools/alignment/editor-align-center-button.directive.mjs +3 -3
  21. package/esm2022/tools/alignment/editor-align-justify-button.directive.mjs +3 -3
  22. package/esm2022/tools/alignment/editor-align-left-button.directive.mjs +3 -3
  23. package/esm2022/tools/alignment/editor-align-right-button.directive.mjs +3 -3
  24. package/esm2022/tools/blockquote/editor-blockquote-button.directive.mjs +2 -3
  25. package/esm2022/tools/colorpicker/editor-back-color.directive.mjs +3 -4
  26. package/esm2022/tools/colorpicker/editor-colorpicker.component.mjs +20 -10
  27. package/esm2022/tools/colorpicker/editor-fore-color.directive.mjs +3 -4
  28. package/esm2022/tools/editor-clean-formatting-button.directive.mjs +3 -3
  29. package/esm2022/tools/fontfamily/editor-fontfamily.component.mjs +4 -5
  30. package/esm2022/tools/fontsize/editor-fontsize.component.mjs +6 -6
  31. package/esm2022/tools/format/editor-format.component.mjs +6 -6
  32. package/esm2022/tools/history/editor-redo-button.directive.mjs +3 -3
  33. package/esm2022/tools/history/editor-undo-button.directive.mjs +3 -3
  34. package/esm2022/tools/image/editor-insert-image-button.directive.mjs +2 -2
  35. package/esm2022/tools/indentation/editor-indent-button.directive.mjs +3 -4
  36. package/esm2022/tools/indentation/editor-outdent-button.directive.mjs +3 -4
  37. package/esm2022/tools/link/editor-create-link-button.directive.mjs +3 -4
  38. package/esm2022/tools/link/editor-insert-file-button.directive.mjs +2 -3
  39. package/esm2022/tools/link/editor-unlink-button.directive.mjs +3 -4
  40. package/esm2022/tools/list/editor-insert-ordered-list-button.directive.mjs +3 -4
  41. package/esm2022/tools/list/editor-insert-unordered-list-button.directive.mjs +3 -3
  42. package/esm2022/tools/print/editor-print-button.directive.mjs +3 -3
  43. package/esm2022/tools/select-all/select-all-button.directive.mjs +2 -2
  44. package/esm2022/tools/source/editor-view-source-button.directive.mjs +2 -2
  45. package/esm2022/tools/tables/editor-add-column-after-button.directive.mjs +3 -3
  46. package/esm2022/tools/tables/editor-add-column-before-button.directive.mjs +3 -3
  47. package/esm2022/tools/tables/editor-add-row-after-button.directive.mjs +3 -3
  48. package/esm2022/tools/tables/editor-add-row-before-button.directive.mjs +3 -3
  49. package/esm2022/tools/tables/editor-delete-column-button.directive.mjs +3 -3
  50. package/esm2022/tools/tables/editor-delete-row-button.directive.mjs +3 -3
  51. package/esm2022/tools/tables/editor-delete-table-button.directive.mjs +3 -3
  52. package/esm2022/tools/tables/editor-insert-table-button.component.mjs +3 -1
  53. package/esm2022/tools/tables/editor-merge-cells-button.directive.mjs +4 -4
  54. package/esm2022/tools/tables/editor-split-cell-button.directive.mjs +4 -4
  55. package/esm2022/tools/typographical-emphasis/editor-bold-button.directive.mjs +3 -3
  56. package/esm2022/tools/typographical-emphasis/editor-italic-button.directive.mjs +3 -3
  57. package/esm2022/tools/typographical-emphasis/editor-strikethrough-button.directive.mjs +3 -3
  58. package/esm2022/tools/typographical-emphasis/editor-subscript-button.directive.mjs +3 -3
  59. package/esm2022/tools/typographical-emphasis/editor-superscript-button.directive.mjs +3 -3
  60. package/esm2022/tools/typographical-emphasis/editor-underline-button.directive.mjs +3 -3
  61. package/esm2022/util.mjs +7 -6
  62. package/fesm2022/progress-kendo-angular-editor.mjs +210 -188
  63. package/localization/custom-messages.component.d.ts +10 -1
  64. package/package.json +15 -15
  65. package/preventable-events/paste-event.d.ts +4 -4
  66. package/schematics/ngAdd/index.js +4 -4
  67. package/tools/alignment/editor-align-center-button.directive.d.ts +3 -3
  68. package/tools/alignment/editor-align-justify-button.directive.d.ts +3 -3
  69. package/tools/alignment/editor-align-left-button.directive.d.ts +3 -3
  70. package/tools/alignment/editor-align-right-button.directive.d.ts +3 -3
  71. package/tools/blockquote/editor-blockquote-button.directive.d.ts +2 -3
  72. package/tools/colorpicker/editor-back-color.directive.d.ts +3 -4
  73. package/tools/colorpicker/editor-colorpicker.component.d.ts +20 -10
  74. package/tools/colorpicker/editor-fore-color.directive.d.ts +3 -4
  75. package/tools/editor-clean-formatting-button.directive.d.ts +3 -3
  76. package/tools/fontfamily/editor-fontfamily.component.d.ts +4 -5
  77. package/tools/fontsize/editor-fontsize.component.d.ts +6 -6
  78. package/tools/format/editor-format.component.d.ts +6 -6
  79. package/tools/history/editor-redo-button.directive.d.ts +3 -3
  80. package/tools/history/editor-undo-button.directive.d.ts +3 -3
  81. package/tools/image/editor-insert-image-button.directive.d.ts +2 -2
  82. package/tools/indentation/editor-indent-button.directive.d.ts +3 -4
  83. package/tools/indentation/editor-outdent-button.directive.d.ts +3 -4
  84. package/tools/link/editor-create-link-button.directive.d.ts +3 -4
  85. package/tools/link/editor-insert-file-button.directive.d.ts +2 -3
  86. package/tools/link/editor-unlink-button.directive.d.ts +3 -4
  87. package/tools/list/editor-insert-ordered-list-button.directive.d.ts +3 -4
  88. package/tools/list/editor-insert-unordered-list-button.directive.d.ts +3 -3
  89. package/tools/print/editor-print-button.directive.d.ts +3 -3
  90. package/tools/select-all/select-all-button.directive.d.ts +2 -2
  91. package/tools/source/editor-view-source-button.directive.d.ts +2 -2
  92. package/tools/tables/editor-add-column-after-button.directive.d.ts +3 -3
  93. package/tools/tables/editor-add-column-before-button.directive.d.ts +3 -3
  94. package/tools/tables/editor-add-row-after-button.directive.d.ts +3 -3
  95. package/tools/tables/editor-add-row-before-button.directive.d.ts +3 -3
  96. package/tools/tables/editor-delete-column-button.directive.d.ts +3 -3
  97. package/tools/tables/editor-delete-row-button.directive.d.ts +3 -3
  98. package/tools/tables/editor-delete-table-button.directive.d.ts +3 -3
  99. package/tools/tables/editor-insert-table-button.component.d.ts +3 -1
  100. package/tools/tables/editor-merge-cells-button.directive.d.ts +4 -4
  101. package/tools/tables/editor-split-cell-button.directive.d.ts +4 -4
  102. package/tools/typographical-emphasis/editor-bold-button.directive.d.ts +3 -3
  103. package/tools/typographical-emphasis/editor-italic-button.directive.d.ts +3 -3
  104. package/tools/typographical-emphasis/editor-strikethrough-button.directive.d.ts +3 -3
  105. package/tools/typographical-emphasis/editor-subscript-button.directive.d.ts +3 -3
  106. package/tools/typographical-emphasis/editor-superscript-button.directive.d.ts +3 -3
  107. package/tools/typographical-emphasis/editor-underline-button.directive.d.ts +3 -3
  108. package/util.d.ts +7 -6
@@ -9,10 +9,10 @@ import { ProviderService } from '../../common/provider.service';
9
9
  import { EditorToolsService } from '../tools.service';
10
10
  import * as i0 from "@angular/core";
11
11
  /**
12
- * A directive which configures an existing `ToolBarButtonComponent` as an Editor **AddColumnBefore** tool
12
+ * Configures a ToolBarButtonComponent as an Editor **AddColumnBefore** tool
13
13
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
14
- * The directive will predefine the SVG icon and `click` event handlers of the button.
15
- * In addition, the directive updates the `disabled` state of the button according to the cursor position in the editing area.
14
+ * The directive sets the SVG icon and `click` event handlers for the button.
15
+ * The directive also updates the `disabled` state of the button based on the cursor position in the editing area.
16
16
  *
17
17
  * @example
18
18
  * ```html
@@ -9,10 +9,10 @@ import { ProviderService } from '../../common/provider.service';
9
9
  import { EditorToolsService } from '../tools.service';
10
10
  import * as i0 from "@angular/core";
11
11
  /**
12
- * A directive which configures an existing `ToolBarButtonComponent` as an Editor **AddRowAfter** tool
12
+ * Configures a ToolBarButtonComponent as an Editor **AddRowAfter** tool
13
13
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
14
- * The directive will predefine the SVG icon and `click` event handlers of the button.
15
- * In addition, the directive updates the `disabled` state of the button according to the cursor position in the editing area.
14
+ * The directive sets the SVG icon and `click` event handlers for the button.
15
+ * The directive also updates the `disabled` state of the button based on the cursor position in the editing area.
16
16
  *
17
17
  * @example
18
18
  * ```html
@@ -9,10 +9,10 @@ import { ProviderService } from '../../common/provider.service';
9
9
  import { EditorToolsService } from '../tools.service';
10
10
  import * as i0 from "@angular/core";
11
11
  /**
12
- * A directive which configures an existing `ToolBarButtonComponent` as an Editor **AddRowBefore** tool
12
+ * Configures a ToolBarButtonComponent as an Editor **AddRowBefore** tool
13
13
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
14
- * The directive will predefine the SVG icon and `click` event handlers of the button.
15
- * In addition, the directive updates the `disabled` state of the button according to the cursor position in the editing area.
14
+ * The directive sets the SVG icon and `click` event handlers for the button.
15
+ * The directive also updates the `disabled` state of the button based on the cursor position in the editing area.
16
16
  *
17
17
  * @example
18
18
  * ```html
@@ -9,10 +9,10 @@ import { ProviderService } from '../../common/provider.service';
9
9
  import { EditorToolsService } from '../tools.service';
10
10
  import * as i0 from "@angular/core";
11
11
  /**
12
- * A directive which configures an existing `ToolBarButtonComponent` as an Editor **DeleteColumn** tool
12
+ * Configures a ToolBarButtonComponent as an Editor **DeleteColumn** tool
13
13
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
14
- * The directive will predefine the SVG icon and `click` event handlers of the button.
15
- * In addition, the directive updates the `disabled` state of the button according to the cursor position in the editing area.
14
+ * The directive sets the SVG icon and `click` event handlers for the button.
15
+ * The directive also updates the `disabled` state of the button based on the cursor position in the editing area.
16
16
  *
17
17
  * @example
18
18
  * ```html
@@ -9,10 +9,10 @@ import { ProviderService } from '../../common/provider.service';
9
9
  import { EditorToolsService } from '../tools.service';
10
10
  import * as i0 from "@angular/core";
11
11
  /**
12
- * A directive which configures an existing `ToolBarButtonComponent` as an Editor **DeleteRow** tool
12
+ * Configures a ToolBarButtonComponent as an Editor **DeleteRow** tool
13
13
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
14
- * The directive will predefine the SVG icon and `click` event handlers of the button.
15
- * In addition, the directive updates the `disabled` state of the button according to the cursor position in the editing area.
14
+ * The directive sets the SVG icon and `click` event handlers for the button.
15
+ * The directive also updates the `disabled` state of the button based on the cursor position in the editing area.
16
16
  *
17
17
  * @example
18
18
  * ```html
@@ -9,10 +9,10 @@ import { ProviderService } from '../../common/provider.service';
9
9
  import { EditorToolsService } from '../tools.service';
10
10
  import * as i0 from "@angular/core";
11
11
  /**
12
- * A directive which configures an existing `ToolBarButtonComponent` as an Editor **DeleteTable** tool
12
+ * Configures a ToolBarButtonComponent as an Editor **DeleteTable** tool
13
13
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
14
- * The directive will predefine the SVG icon and `click` event handlers of the button.
15
- * In addition, the directive updates the `disabled` state of the button according to the cursor position in the editing area.
14
+ * The directive sets the SVG icon and `click` event handlers for the button.
15
+ * The directive also updates the `disabled` state of the button based on the cursor position in the editing area.
16
16
  *
17
17
  * @example
18
18
  * ```html
@@ -12,7 +12,9 @@ import { ProviderService } from '../../common/provider.service';
12
12
  import { TableData } from '../../common/table-data.interface';
13
13
  import * as i0 from "@angular/core";
14
14
  /**
15
- * A toolbar component which allows the user to create and insert a table in the Editor's content.
15
+ * Represents toolbar component which allows creating and insertig a table in the Editor's content.
16
+ *
17
+ * Use this toolbar component to let users create and insert a table in the Editor's content.
16
18
  *
17
19
  * @example
18
20
  * ```html
@@ -11,13 +11,13 @@ import * as i0 from "@angular/core";
11
11
  /**
12
12
  * @hidden
13
13
  *
14
- * A directive which configures an existing `ToolBarButtonComponent` as an Editor MergeCells tool
14
+ * Configures an existing ToolBarButtonComponent as an Editor **MergeCells** tool
15
15
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
16
- * The directive will predefine the `icon` and `click` event handlers of the button.
17
- * In addition, the directive updates the `disabled` state of the button according to the cursor position in the editing area.
16
+ * The directive predefines the `icon` and `click` event handlers of the button.
17
+ * It also updates the `disabled` state of the button based on the cursor position in the editing area.
18
18
  *
19
19
  * @example
20
- * ```ts-no-run
20
+ * ```html
21
21
  * <kendo-toolbar-button kendoEditorMergeCellsButton></kendo-toolbar-button>
22
22
  * ```
23
23
  */
@@ -11,13 +11,13 @@ import * as i0 from "@angular/core";
11
11
  /**
12
12
  * @hidden
13
13
  *
14
- * A directive which configures an existing `ToolBarButtonComponent` as an Editor SplitCell tool
14
+ * Configures an existing ToolBarButtonComponent as an Editor SplitCell tool
15
15
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
16
- * The directive will predefine the `icon` and `click` event handlers of the button.
17
- * In addition, the directive updates the `disabled` state of the button according to the cursor position in the editing area.
16
+ * The directive predefines the `icon` and `click` event handlers of the button.
17
+ * It also updates the `disabled` state of the button based on the cursor position in the editing area.
18
18
  *
19
19
  * @example
20
- * ```ts-no-run
20
+ * ```html
21
21
  * <kendo-toolbar-button kendoEditorSplitCellButton></kendo-toolbar-button>
22
22
  * ```
23
23
  */
@@ -9,10 +9,10 @@ import { ProviderService } from '../../common/provider.service';
9
9
  import { EditorToolsService } from '../tools.service';
10
10
  import * as i0 from "@angular/core";
11
11
  /**
12
- * A directive which configures an existing `ToolBarButtonComponent` as an Editor **Bold** tool
12
+ * Configures a ToolBarButtonComponent as an Editor **Bold** tool
13
13
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
14
- * The directive will predefine the SVG icon and `click` event handlers of the button.
15
- * In addition, the directive updates the `selected` state of the button according to the cursor position in the editing area.
14
+ * This directive sets the SVG icon and `click` event handlers for the button.
15
+ * The directive also updates the `selected` state of the button based on the cursor position in the editing area.
16
16
  *
17
17
  * @example
18
18
  * ```html
@@ -9,10 +9,10 @@ import { ProviderService } from '../../common/provider.service';
9
9
  import { EditorToolsService } from '../tools.service';
10
10
  import * as i0 from "@angular/core";
11
11
  /**
12
- * A directive which configures an existing `ToolBarButtonComponent` as an Editor **Italic** tool
12
+ * Configures a ToolBarButtonComponent as an Editor **Italic** tool
13
13
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
14
- * The directive will predefine the SVG icon and `click` event handlers of the button.
15
- * In addition, the directive updates the `selected` state of the button according to the cursor position in the editing area.
14
+ * This directive sets the SVG icon and `click` event handlers for the button.
15
+ * The directive also updates the `selected` state of the button based on the cursor position in the editing area.
16
16
  *
17
17
  * @example
18
18
  * ```html
@@ -9,10 +9,10 @@ import { ProviderService } from '../../common/provider.service';
9
9
  import { EditorToolsService } from '../tools.service';
10
10
  import * as i0 from "@angular/core";
11
11
  /**
12
- * A directive which configures an existing `ToolBarButtonComponent` as an Editor **Strikethrough** tool
12
+ * Configures a ToolBarButtonComponent as an Editor **Strikethrough** tool
13
13
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
14
- * The directive will predefine the SVG icon and `click` event handlers of the button.
15
- * In addition, the directive updates the `selected` state of the button according to the cursor position in the editing area.
14
+ * This directive sets the SVG icon and `click` event handlers for the button.
15
+ * The directive also updates the `selected` state of the button based on the cursor position in the editing area.
16
16
  *
17
17
  * @example
18
18
  * ```html
@@ -9,10 +9,10 @@ import { ProviderService } from '../../common/provider.service';
9
9
  import { EditorToolsService } from '../tools.service';
10
10
  import * as i0 from "@angular/core";
11
11
  /**
12
- * A directive which configures an existing `ToolBarButtonComponent` as an Editor **Subscript** tool
12
+ * Configures a ToolBarButtonComponent as an Editor **Subscript** tool
13
13
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
14
- * The directive will predefine the SVG icon and `click` event handlers of the button.
15
- * In addition, the directive updates the `selected` state of the button according to the cursor position in the editing area.
14
+ * This directive sets the SVG icon and `click` event handlers for the button.
15
+ * The directive also updates the `selected` state of the button based on the cursor position in the editing area.
16
16
  *
17
17
  * @example
18
18
  * ```html
@@ -9,10 +9,10 @@ import { ProviderService } from '../../common/provider.service';
9
9
  import { EditorToolsService } from '../tools.service';
10
10
  import * as i0 from "@angular/core";
11
11
  /**
12
- * A directive which configures an existing `ToolBarButtonComponent` as an Editor **Superscript** tool
12
+ * Configures a ToolBarButtonComponent as an Editor **Superscript** tool
13
13
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
14
- * The directive will predefine the SVG icon and `click` event handlers of the button.
15
- * In addition, the directive updates the `selected` state of the button according to the cursor position in the editing area.
14
+ * This directive sets the SVG icon and `click` event handlers for the button.
15
+ * The directive also updates the `selected` state of the button based on the cursor position in the editing area.
16
16
  *
17
17
  * @example
18
18
  * ```html
@@ -9,10 +9,10 @@ import { ProviderService } from '../../common/provider.service';
9
9
  import { EditorToolsService } from '../tools.service';
10
10
  import * as i0 from "@angular/core";
11
11
  /**
12
- * A directive which configures an existing `ToolBarButtonComponent` as an Editor **Underline** tool
12
+ * Configures a ToolBarButtonComponent as an Editor **Underline** tool
13
13
  * ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
14
- * The directive will predefine the SVG icon and `click` event handlers of the button.
15
- * In addition, the directive updates the `selected` state of the button according to the cursor position in the editing area.
14
+ * This directive sets the SVG icon and `click` event handlers for the button.
15
+ * The directive also updates the `selected` state of the button based on the cursor position in the editing area.
16
16
  *
17
17
  * @example
18
18
  * ```html
package/util.d.ts CHANGED
@@ -74,20 +74,21 @@ export declare const conditionallyExecute: <T, R>(fn: (x: T) => R) => (condition
74
74
  */
75
75
  export declare const pipe: (...fns: any[]) => (x: any) => any;
76
76
  /**
77
- * A method for extracting the text from the current editor state's selection ([see example]({% slug plugins_editor %}#toc-popup-tools)).
77
+ * Extracts the text from the current editor state's selection ([see example]({% slug plugins_editor %}#toc-popup-tools)).
78
78
  *
79
+ * @example
79
80
  * ```ts
80
- * import {getSelectionText} from '@progress/kendo-angular-editor';
81
+ * import { getSelectionText } from '@progress/kendo-angular-editor';
81
82
  *
82
83
  * export class AppComponent {
83
84
  * @ViewChild('editor') public editor;
84
- * public onClick(){
85
- * const selection = getSelectionText(this.editor.view.state)
85
+ * public onClick() {
86
+ * const selection = getSelectionText(this.editor.view.state);
86
87
  * }
87
88
  * }
88
89
  * ```
89
- * @param state
90
- * @returns the selection text.
90
+ * @param state The current `EditorState`.
91
+ * @returns The selected text.
91
92
  */
92
93
  export declare const getSelectionText: (state: EditorState) => string;
93
94
  /**