@progress/kendo-angular-editor 4.2.0 → 11.0.0-develop.101
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/LICENSE.md +1 -1
- package/NOTICE.txt +4 -4
- package/README.md +3 -3
- package/common/active-marks.d.ts +1 -1
- package/common/apply-to-word-options.d.ts +1 -1
- package/common/commands.d.ts +1 -1
- package/common/css-settings.interface.d.ts +1 -1
- package/common/direction.d.ts +1 -1
- package/common/error-messages.d.ts +1 -1
- package/common/font-family-item.interface.d.ts +1 -1
- package/common/font-size-item.interface.d.ts +1 -1
- package/common/format-item.interface.d.ts +1 -1
- package/common/image-data.interface.d.ts +1 -1
- package/common/link-data.interface.d.ts +1 -1
- package/common/paste-cleanup-settings.d.ts +1 -1
- package/common/plugins-function.d.ts +1 -1
- package/common/predicate.d.ts +1 -1
- package/common/provider.service.d.ts +1 -1
- package/common/resizable-options.interface.d.ts +1 -1
- package/common/styles.d.ts +1 -1
- package/common/table-data.interface.d.ts +1 -1
- package/config/command-icons.d.ts +1 -1
- package/config/commands.d.ts +1 -1
- package/config/schema.d.ts +1 -1
- package/config/semantic-nodes.d.ts +1 -1
- package/config/table-commands.d.ts +1 -1
- package/config/utils.d.ts +1 -1
- package/dialogs/colorpicker-dialog.component.d.ts +1 -1
- package/dialogs/file-link-dialog.component.d.ts +1 -1
- package/dialogs/font-family-dialog.component.d.ts +1 -1
- package/dialogs/font-size-dialog.component.d.ts +1 -1
- package/dialogs/format-dialog.component.d.ts +1 -1
- package/dialogs/image-dialog.component.d.ts +1 -1
- package/dialogs/insert-table-dialog.component.d.ts +1 -1
- package/dialogs/source-dialog.component.d.ts +1 -1
- package/editor-toolbar-state.d.ts +1 -1
- package/editor.component.d.ts +1 -1
- package/editor.module.d.ts +1 -1
- package/{esm2015/common/css-settings.interface.js → esm2020/common/active-marks.mjs} +1 -1
- package/{esm2015/common/active-marks.js → esm2020/common/apply-to-word-options.mjs} +1 -1
- package/{esm2015/common/apply-to-word-options.js → esm2020/common/commands.mjs} +1 -1
- package/{esm2015/common/commands.js → esm2020/common/css-settings.interface.mjs} +1 -1
- package/esm2020/common/direction.mjs +5 -0
- package/{esm2015/common/error-messages.js → esm2020/common/error-messages.mjs} +1 -1
- package/esm2020/common/font-family-item.interface.mjs +5 -0
- package/esm2020/common/font-size-item.interface.mjs +5 -0
- package/esm2020/common/format-item.interface.mjs +5 -0
- package/esm2020/common/image-data.interface.mjs +5 -0
- package/esm2020/common/link-data.interface.mjs +5 -0
- package/esm2020/common/paste-cleanup-settings.mjs +5 -0
- package/esm2020/common/plugins-function.mjs +5 -0
- package/esm2020/common/predicate.mjs +5 -0
- package/{esm2015/common/provider.service.js → esm2020/common/provider.service.mjs} +4 -4
- package/esm2020/common/resizable-options.interface.mjs +5 -0
- package/{esm2015/common/styles.js → esm2020/common/styles.mjs} +1 -1
- package/esm2020/common/table-data.interface.mjs +5 -0
- package/{esm2015/config/command-icons.js → esm2020/config/command-icons.mjs} +1 -1
- package/{esm2015/config/commands.js → esm2020/config/commands.mjs} +7 -7
- package/{esm2015/config/schema.js → esm2020/config/schema.mjs} +1 -1
- package/{esm2015/config/semantic-nodes.js → esm2020/config/semantic-nodes.mjs} +4 -2
- package/{esm2015/config/table-commands.js → esm2020/config/table-commands.mjs} +1 -1
- package/{esm2015/config/utils.js → esm2020/config/utils.mjs} +11 -7
- package/{esm2015/dialogs/colorpicker-dialog.component.js → esm2020/dialogs/colorpicker-dialog.component.mjs} +10 -8
- package/{esm2015/dialogs/file-link-dialog.component.js → esm2020/dialogs/file-link-dialog.component.mjs} +17 -16
- package/{esm2015/dialogs/font-family-dialog.component.js → esm2020/dialogs/font-family-dialog.component.mjs} +10 -8
- package/{esm2015/dialogs/font-size-dialog.component.js → esm2020/dialogs/font-size-dialog.component.mjs} +10 -8
- package/{esm2015/dialogs/format-dialog.component.js → esm2020/dialogs/format-dialog.component.mjs} +9 -8
- package/{esm2015/dialogs/image-dialog.component.js → esm2020/dialogs/image-dialog.component.mjs} +13 -12
- package/{esm2015/dialogs/insert-table-dialog.component.js → esm2020/dialogs/insert-table-dialog.component.mjs} +10 -8
- package/{esm2015/dialogs/source-dialog.component.js → esm2020/dialogs/source-dialog.component.mjs} +10 -16
- package/{esm2015/editor-toolbar-state.js → esm2020/editor-toolbar-state.mjs} +6 -6
- package/{esm2015/editor.component.js → esm2020/editor.component.mjs} +22 -31
- package/{esm2015/editor.module.js → esm2020/editor.module.mjs} +5 -5
- package/{esm2015/main.js → esm2020/index.mjs} +3 -2
- package/{esm2015/localization/custom-messages.component.js → esm2020/localization/custom-messages.component.mjs} +5 -4
- package/{esm2015/localization/editor-localization.service.js → esm2020/localization/editor-localization.service.mjs} +5 -5
- package/{esm2015/localization/localized-messages.directive.js → esm2020/localization/localized-messages.directive.mjs} +5 -4
- package/{esm2015/localization/messages.js → esm2020/localization/messages.mjs} +4 -4
- package/{esm2015/package-metadata.js → esm2020/package-metadata.mjs} +3 -3
- package/esm2020/preventable-events/paste-event-data.mjs +5 -0
- package/{esm2015/preventable-events/paste-event.js → esm2020/preventable-events/paste-event.mjs} +1 -1
- package/{esm2015/preventable-events/preventable-event.js → esm2020/preventable-events/preventable-event.mjs} +1 -1
- package/{esm2015/kendo-angular-editor.js → esm2020/progress-kendo-angular-editor.mjs} +2 -2
- package/{esm2015/tools/alignment/editor-align-center-button.directive.js → esm2020/tools/alignment/editor-align-center-button.directive.mjs} +8 -4
- package/{esm2015/tools/alignment/editor-align-justify-button.directive.js → esm2020/tools/alignment/editor-align-justify-button.directive.mjs} +8 -4
- package/{esm2015/tools/alignment/editor-align-left-button.directive.js → esm2020/tools/alignment/editor-align-left-button.directive.mjs} +8 -4
- package/{esm2015/tools/alignment/editor-align-right-button.directive.js → esm2020/tools/alignment/editor-align-right-button.directive.mjs} +8 -4
- package/{esm2015/tools/blockquote/editor-blockquote-button.directive.js → esm2020/tools/blockquote/editor-blockquote-button.directive.mjs} +8 -4
- package/{esm2015/tools/colorpicker/editor-back-color.directive.js → esm2020/tools/colorpicker/editor-back-color.directive.mjs} +5 -4
- package/{esm2015/tools/colorpicker/editor-colorpicker.component.js → esm2020/tools/colorpicker/editor-colorpicker.component.mjs} +9 -6
- package/{esm2015/tools/colorpicker/editor-fore-color.directive.js → esm2020/tools/colorpicker/editor-fore-color.directive.mjs} +5 -4
- package/{esm2015/tools/editor-clean-formatting-button.directive.js → esm2020/tools/editor-clean-formatting-button.directive.mjs} +8 -4
- package/{esm2015/tools/fontfamily/editor-fontfamily-dropdownlist.component.js → esm2020/tools/fontfamily/editor-fontfamily-dropdownlist.component.mjs} +9 -12
- package/{esm2015/tools/fontfamily/editor-fontfamily.component.js → esm2020/tools/fontfamily/editor-fontfamily.component.mjs} +12 -8
- package/{esm2015/tools/fontsize/editor-fontsize-dropdownlist.component.js → esm2020/tools/fontsize/editor-fontsize-dropdownlist.component.mjs} +9 -12
- package/{esm2015/tools/fontsize/editor-fontsize.component.js → esm2020/tools/fontsize/editor-fontsize.component.mjs} +13 -9
- package/{esm2015/tools/format/editor-format-dropdownlist.component.js → esm2020/tools/format/editor-format-dropdownlist.component.mjs} +23 -26
- package/{esm2015/tools/format/editor-format.component.js → esm2020/tools/format/editor-format.component.mjs} +13 -8
- package/{esm2015/tools/history/editor-redo-button.directive.js → esm2020/tools/history/editor-redo-button.directive.mjs} +8 -4
- package/{esm2015/tools/history/editor-undo-button.directive.js → esm2020/tools/history/editor-undo-button.directive.mjs} +8 -4
- package/{esm2015/tools/image/editor-insert-image-button.directive.js → esm2020/tools/image/editor-insert-image-button.directive.mjs} +8 -4
- package/{esm2015/tools/indentation/editor-indent-button.directive.js → esm2020/tools/indentation/editor-indent-button.directive.mjs} +8 -4
- package/{esm2015/tools/indentation/editor-outdent-button.directive.js → esm2020/tools/indentation/editor-outdent-button.directive.mjs} +8 -4
- package/{esm2015/tools/link/editor-create-link-button.directive.js → esm2020/tools/link/editor-create-link-button.directive.mjs} +8 -4
- package/{esm2015/tools/link/editor-insert-file-button.directive.js → esm2020/tools/link/editor-insert-file-button.directive.mjs} +8 -4
- package/{esm2015/tools/link/editor-unlink-button.directive.js → esm2020/tools/link/editor-unlink-button.directive.mjs} +8 -4
- package/{esm2015/tools/list/editor-insert-ordered-list-button.directive.js → esm2020/tools/list/editor-insert-ordered-list-button.directive.mjs} +8 -4
- package/{esm2015/tools/list/editor-insert-unordered-list-button.directive.js → esm2020/tools/list/editor-insert-unordered-list-button.directive.mjs} +8 -4
- package/{esm2015/tools/print/editor-print-button.directive.js → esm2020/tools/print/editor-print-button.directive.mjs} +8 -4
- package/{esm2015/tools/select-all/select-all-button.directive.js → esm2020/tools/select-all/select-all-button.directive.mjs} +8 -4
- package/{esm2015/tools/shared/dropdown-tool.directive.js → esm2020/tools/shared/dropdown-tool.directive.mjs} +5 -5
- package/{esm2015/tools/shared/editor-command-base.js → esm2020/tools/shared/editor-command-base.mjs} +8 -7
- package/{esm2015/tools/shared/editor-command-button.js → esm2020/tools/shared/editor-command-button.mjs} +1 -1
- package/{esm2015/tools/shared/editor-command-dialog.js → esm2020/tools/shared/editor-command-dialog.mjs} +1 -1
- package/{esm2015/tools/source/editor-view-source-button.directive.js → esm2020/tools/source/editor-view-source-button.directive.mjs} +8 -4
- package/{esm2015/tools/tables/editor-add-column-after-button.directive.js → esm2020/tools/tables/editor-add-column-after-button.directive.mjs} +8 -4
- package/{esm2015/tools/tables/editor-add-column-before-button.directive.js → esm2020/tools/tables/editor-add-column-before-button.directive.mjs} +8 -4
- package/{esm2015/tools/tables/editor-add-row-after-button.directive.js → esm2020/tools/tables/editor-add-row-after-button.directive.mjs} +8 -4
- package/{esm2015/tools/tables/editor-add-row-before-button.directive.js → esm2020/tools/tables/editor-add-row-before-button.directive.mjs} +8 -4
- package/{esm2015/tools/tables/editor-delete-column-button.directive.js → esm2020/tools/tables/editor-delete-column-button.directive.mjs} +8 -4
- package/{esm2015/tools/tables/editor-delete-row-button.directive.js → esm2020/tools/tables/editor-delete-row-button.directive.mjs} +8 -4
- package/{esm2015/tools/tables/editor-delete-table-button.directive.js → esm2020/tools/tables/editor-delete-table-button.directive.mjs} +8 -4
- package/{esm2015/tools/tables/editor-insert-table-button.component.js → esm2020/tools/tables/editor-insert-table-button.component.mjs} +19 -15
- package/{esm2015/tools/tables/editor-merge-cells-button.directive.js → esm2020/tools/tables/editor-merge-cells-button.directive.mjs} +8 -4
- package/{esm2015/tools/tables/editor-split-cell-button.directive.js → esm2020/tools/tables/editor-split-cell-button.directive.mjs} +8 -4
- package/{esm2015/tools/tables/popup-table-grid.component.js → esm2020/tools/tables/popup-table-grid.component.mjs} +6 -6
- package/{esm2015/tools/tools.service.js → esm2020/tools/tools.service.mjs} +4 -4
- package/{esm2015/tools/typographical-emphasis/editor-bold-button.directive.js → esm2020/tools/typographical-emphasis/editor-bold-button.directive.mjs} +8 -4
- package/{esm2015/tools/typographical-emphasis/editor-italic-button.directive.js → esm2020/tools/typographical-emphasis/editor-italic-button.directive.mjs} +8 -4
- package/{esm2015/tools/typographical-emphasis/editor-strikethrough-button.directive.js → esm2020/tools/typographical-emphasis/editor-strikethrough-button.directive.mjs} +8 -4
- package/{esm2015/tools/typographical-emphasis/editor-subscript-button.directive.js → esm2020/tools/typographical-emphasis/editor-subscript-button.directive.mjs} +8 -4
- package/{esm2015/tools/typographical-emphasis/editor-superscript-button.directive.js → esm2020/tools/typographical-emphasis/editor-superscript-button.directive.mjs} +8 -4
- package/{esm2015/tools/typographical-emphasis/editor-underline-button.directive.js → esm2020/tools/typographical-emphasis/editor-underline-button.directive.mjs} +8 -4
- package/{esm2015/util.js → esm2020/util.mjs} +2 -2
- package/fesm2015/{kendo-angular-editor.js → progress-kendo-angular-editor.mjs} +319 -343
- package/fesm2020/progress-kendo-angular-editor.mjs +6480 -0
- package/{main.d.ts → index.d.ts} +3 -2
- package/localization/custom-messages.component.d.ts +1 -1
- package/localization/editor-localization.service.d.ts +1 -1
- package/localization/localized-messages.directive.d.ts +1 -1
- package/localization/messages.d.ts +1 -1
- package/package-metadata.d.ts +1 -1
- package/package.json +36 -63
- package/preventable-events/paste-event-data.d.ts +1 -1
- package/preventable-events/paste-event.d.ts +1 -1
- package/preventable-events/preventable-event.d.ts +1 -1
- package/{kendo-angular-editor.d.ts → progress-kendo-angular-editor.d.ts} +2 -2
- package/schematics/ngAdd/index.js +1 -5
- package/tools/alignment/editor-align-center-button.directive.d.ts +1 -1
- package/tools/alignment/editor-align-justify-button.directive.d.ts +1 -1
- package/tools/alignment/editor-align-left-button.directive.d.ts +1 -1
- package/tools/alignment/editor-align-right-button.directive.d.ts +1 -1
- package/tools/blockquote/editor-blockquote-button.directive.d.ts +1 -1
- package/tools/colorpicker/editor-back-color.directive.d.ts +1 -1
- package/tools/colorpicker/editor-colorpicker.component.d.ts +1 -1
- package/tools/colorpicker/editor-fore-color.directive.d.ts +1 -1
- package/tools/editor-clean-formatting-button.directive.d.ts +1 -1
- package/tools/fontfamily/editor-fontfamily-dropdownlist.component.d.ts +1 -1
- package/tools/fontfamily/editor-fontfamily.component.d.ts +1 -1
- package/tools/fontsize/editor-fontsize-dropdownlist.component.d.ts +1 -1
- package/tools/fontsize/editor-fontsize.component.d.ts +1 -1
- package/tools/format/editor-format-dropdownlist.component.d.ts +1 -1
- package/tools/format/editor-format.component.d.ts +1 -1
- package/tools/history/editor-redo-button.directive.d.ts +1 -1
- package/tools/history/editor-undo-button.directive.d.ts +1 -1
- package/tools/image/editor-insert-image-button.directive.d.ts +1 -1
- package/tools/indentation/editor-indent-button.directive.d.ts +1 -1
- package/tools/indentation/editor-outdent-button.directive.d.ts +1 -1
- package/tools/link/editor-create-link-button.directive.d.ts +1 -1
- package/tools/link/editor-insert-file-button.directive.d.ts +1 -1
- package/tools/link/editor-unlink-button.directive.d.ts +1 -1
- package/tools/list/editor-insert-ordered-list-button.directive.d.ts +1 -1
- package/tools/list/editor-insert-unordered-list-button.directive.d.ts +1 -1
- package/tools/print/editor-print-button.directive.d.ts +1 -1
- package/tools/select-all/select-all-button.directive.d.ts +1 -1
- package/tools/shared/dropdown-tool.directive.d.ts +1 -1
- package/tools/shared/editor-command-base.d.ts +1 -1
- package/tools/shared/editor-command-button.d.ts +1 -1
- package/tools/shared/editor-command-dialog.d.ts +1 -1
- package/tools/source/editor-view-source-button.directive.d.ts +1 -1
- package/tools/tables/editor-add-column-after-button.directive.d.ts +1 -1
- package/tools/tables/editor-add-column-before-button.directive.d.ts +1 -1
- package/tools/tables/editor-add-row-after-button.directive.d.ts +1 -1
- package/tools/tables/editor-add-row-before-button.directive.d.ts +1 -1
- package/tools/tables/editor-delete-column-button.directive.d.ts +1 -1
- package/tools/tables/editor-delete-row-button.directive.d.ts +1 -1
- package/tools/tables/editor-delete-table-button.directive.d.ts +1 -1
- package/tools/tables/editor-insert-table-button.component.d.ts +1 -1
- package/tools/tables/editor-merge-cells-button.directive.d.ts +1 -1
- package/tools/tables/editor-split-cell-button.directive.d.ts +1 -1
- package/tools/tables/popup-table-grid.component.d.ts +1 -1
- package/tools/tools.service.d.ts +1 -1
- package/tools/typographical-emphasis/editor-bold-button.directive.d.ts +1 -1
- package/tools/typographical-emphasis/editor-italic-button.directive.d.ts +1 -1
- package/tools/typographical-emphasis/editor-strikethrough-button.directive.d.ts +1 -1
- package/tools/typographical-emphasis/editor-subscript-button.directive.d.ts +1 -1
- package/tools/typographical-emphasis/editor-superscript-button.directive.d.ts +1 -1
- package/tools/typographical-emphasis/editor-underline-button.directive.d.ts +1 -1
- package/util.d.ts +1 -1
- package/bundles/kendo-angular-editor.umd.js +0 -5
- package/esm2015/common/direction.js +0 -5
- package/esm2015/common/font-family-item.interface.js +0 -5
- package/esm2015/common/font-size-item.interface.js +0 -5
- package/esm2015/common/format-item.interface.js +0 -5
- package/esm2015/common/image-data.interface.js +0 -5
- package/esm2015/common/link-data.interface.js +0 -5
- package/esm2015/common/paste-cleanup-settings.js +0 -5
- package/esm2015/common/plugins-function.js +0 -5
- package/esm2015/common/predicate.js +0 -5
- package/esm2015/common/resizable-options.interface.js +0 -5
- package/esm2015/common/table-data.interface.js +0 -5
- package/esm2015/preventable-events/paste-event-data.js +0 -5
- package/schematics/ngAdd/index.js.map +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
/**
|
|
6
6
|
* @hidden
|
|
7
7
|
*/
|
|
8
8
|
export const hasAttrs = (attrs, exclude) => {
|
|
9
|
-
for (
|
|
9
|
+
for (const attr in attrs) {
|
|
10
10
|
if (attr && attrs[attr] !== null && attr !== exclude) {
|
|
11
11
|
return true;
|
|
12
12
|
}
|
|
@@ -18,7 +18,7 @@ export const hasAttrs = (attrs, exclude) => {
|
|
|
18
18
|
*/
|
|
19
19
|
export const getAttrs = (attrs, exclude) => {
|
|
20
20
|
const result = {};
|
|
21
|
-
for (
|
|
21
|
+
for (const attr in attrs) {
|
|
22
22
|
if (attr && attrs[attr] !== null && attr !== exclude) {
|
|
23
23
|
result[attr] = attrs[attr];
|
|
24
24
|
}
|
|
@@ -30,9 +30,9 @@ export const getAttrs = (attrs, exclude) => {
|
|
|
30
30
|
*/
|
|
31
31
|
export const getAttributes = (dom) => {
|
|
32
32
|
const result = {};
|
|
33
|
-
|
|
33
|
+
const attributes = dom.attributes;
|
|
34
34
|
for (let i = 0; i < attributes.length; i++) {
|
|
35
|
-
attr = attributes[i];
|
|
35
|
+
const attr = attributes[i];
|
|
36
36
|
result[attr.name] = attr.value;
|
|
37
37
|
}
|
|
38
38
|
return result;
|
|
@@ -46,13 +46,17 @@ export const serializeDOMAttrs = (el) => Array.from(el.attributes)
|
|
|
46
46
|
* @hidden
|
|
47
47
|
*/
|
|
48
48
|
export const commonAttributes = () => {
|
|
49
|
-
return
|
|
49
|
+
return {
|
|
50
|
+
...createDefaultAttributes(['class', 'id', 'style'])
|
|
51
|
+
};
|
|
50
52
|
};
|
|
51
53
|
/**
|
|
52
54
|
* @hidden
|
|
53
55
|
*/
|
|
54
56
|
export const createDefaultAttributes = (attrs = []) => {
|
|
55
|
-
return
|
|
57
|
+
return {
|
|
58
|
+
...attrs.reduce((acc, curr) => ({ ...acc, [curr]: { default: null } }), {})
|
|
59
|
+
};
|
|
56
60
|
};
|
|
57
61
|
/**
|
|
58
62
|
* @hidden
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { Component, Input, ViewChild } from '@angular/core';
|
|
6
|
-
import { DialogContentBase } from '@progress/kendo-angular-dialog';
|
|
6
|
+
import { DialogRef, DialogContentBase } from '@progress/kendo-angular-dialog';
|
|
7
|
+
import { EditorLocalizationService } from '../localization/editor-localization.service';
|
|
8
|
+
import { EditorComponent } from '../editor.component';
|
|
7
9
|
import { ColorPickerComponent } from '@progress/kendo-angular-inputs';
|
|
8
10
|
import * as i0 from "@angular/core";
|
|
9
11
|
import * as i1 from "@progress/kendo-angular-dialog";
|
|
@@ -50,14 +52,14 @@ export class ColorPickerDialogComponent extends DialogContentBase {
|
|
|
50
52
|
return this.localization.get(key);
|
|
51
53
|
}
|
|
52
54
|
}
|
|
53
|
-
ColorPickerDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
54
|
-
ColorPickerDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
55
|
+
ColorPickerDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColorPickerDialogComponent, deps: [{ token: i1.DialogRef }, { token: i2.EditorLocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
56
|
+
ColorPickerDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ColorPickerDialogComponent, selector: "ng-component", inputs: { editor: "editor" }, viewQueries: [{ propertyName: "colorPicker", first: true, predicate: ["colorpicker"], descendants: true, read: ColorPickerComponent, static: true }], usesInheritance: true, ngImport: i0, template: `
|
|
55
57
|
<kendo-dialog-titlebar (close)="onCancelAction()">
|
|
56
58
|
{{ textFor(editorCommand) }}
|
|
57
59
|
</kendo-dialog-titlebar>
|
|
58
60
|
<div class="k-editor-dialog">
|
|
59
61
|
<div class="k-editor-dialog k-popup-edit-form k-window-content k-content">
|
|
60
|
-
<div class="k-edit-form-container k-window-content" style
|
|
62
|
+
<div class="k-edit-form-container k-window-content" [style.text-align]="'center'">
|
|
61
63
|
<kendo-colorpicker
|
|
62
64
|
#colorpicker
|
|
63
65
|
[views]="views"
|
|
@@ -77,8 +79,8 @@ ColorPickerDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0
|
|
|
77
79
|
<button kendoButton
|
|
78
80
|
(click)="onConfirmAction()" [primary]="true">{{ textFor('dialogApply') }}</button>
|
|
79
81
|
</kendo-dialog-actions>
|
|
80
|
-
`, isInline: true, components: [{ type: i1.DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { type: i3.ColorPickerComponent, selector: "kendo-colorpicker", inputs: ["views", "view", "activeView", "readonly", "disabled", "format", "value", "popupSettings", "paletteSettings", "gradientSettings", "icon", "iconClass", "clearButton", "tabindex", "preview", "actionsLayout", "size", "rounded", "fillMode"], outputs: ["valueChange", "open", "close", "focus", "blur", "cancel", "activeColorClick", "activeViewChange"], exportAs: ["kendoColorPicker"] }, { type: i1.DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }
|
|
81
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
82
|
+
`, isInline: true, components: [{ type: i1.DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { type: i3.ColorPickerComponent, selector: "kendo-colorpicker", inputs: ["views", "view", "activeView", "readonly", "disabled", "format", "value", "popupSettings", "paletteSettings", "gradientSettings", "icon", "iconClass", "svgIcon", "clearButton", "tabindex", "preview", "actionsLayout", "size", "rounded", "fillMode"], outputs: ["valueChange", "open", "close", "focus", "blur", "cancel", "activeColorClick", "activeViewChange"], exportAs: ["kendoColorPicker"] }, { type: i1.DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }, { type: i4.Button, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
|
|
83
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColorPickerDialogComponent, decorators: [{
|
|
82
84
|
type: Component,
|
|
83
85
|
args: [{
|
|
84
86
|
template: `
|
|
@@ -87,7 +89,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
87
89
|
</kendo-dialog-titlebar>
|
|
88
90
|
<div class="k-editor-dialog">
|
|
89
91
|
<div class="k-editor-dialog k-popup-edit-form k-window-content k-content">
|
|
90
|
-
<div class="k-edit-form-container k-window-content" style
|
|
92
|
+
<div class="k-edit-form-container k-window-content" [style.text-align]="'center'">
|
|
91
93
|
<kendo-colorpicker
|
|
92
94
|
#colorpicker
|
|
93
95
|
[views]="views"
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { Component, Input, ViewChild, ElementRef } from '@angular/core';
|
|
6
6
|
import { FormGroup, FormControl, Validators } from '@angular/forms';
|
|
7
|
-
import { DialogContentBase } from '@progress/kendo-angular-dialog';
|
|
7
|
+
import { DialogContentBase, DialogRef } from '@progress/kendo-angular-dialog';
|
|
8
8
|
import { getMark, getSelectionText, expandSelection } from '@progress/kendo-editor-common';
|
|
9
9
|
import { isPresent } from '../util';
|
|
10
|
+
import { EditorLocalizationService } from '../localization/editor-localization.service';
|
|
10
11
|
import * as i0 from "@angular/core";
|
|
11
12
|
import * as i1 from "@progress/kendo-angular-dialog";
|
|
12
13
|
import * as i2 from "../localization/editor-localization.service";
|
|
13
|
-
import * as i3 from "@angular
|
|
14
|
-
import * as i4 from "@angular/
|
|
15
|
-
import * as i5 from "@
|
|
16
|
-
import * as i6 from "@progress/kendo-angular-
|
|
14
|
+
import * as i3 from "@progress/kendo-angular-buttons";
|
|
15
|
+
import * as i4 from "@angular/forms";
|
|
16
|
+
import * as i5 from "@angular/common";
|
|
17
|
+
import * as i6 from "@progress/kendo-angular-inputs";
|
|
17
18
|
/**
|
|
18
19
|
* @hidden
|
|
19
20
|
*/
|
|
@@ -49,14 +50,14 @@ export class FileLinkDialogComponent extends DialogContentBase {
|
|
|
49
50
|
if (this.command === 'createLink') {
|
|
50
51
|
this.linkForm.addControl('target', new FormControl());
|
|
51
52
|
}
|
|
52
|
-
const linkMark = getMark(state, state.schema.marks
|
|
53
|
+
const linkMark = getMark(state, state.schema.marks['link']);
|
|
53
54
|
if (linkMark) {
|
|
54
55
|
// const linkMarkRange = getMarkRange(state.selection.$cursor, schema.marks.link);
|
|
55
56
|
// const mark = parentNode.child(cursorNodeIndex).marks.find(m => m.type === markType);
|
|
56
57
|
this.linkForm.reset({
|
|
57
|
-
href: linkMark.attrs
|
|
58
|
-
title: linkMark.attrs
|
|
59
|
-
target: isPresent(linkMark.attrs
|
|
58
|
+
href: linkMark.attrs['href'],
|
|
59
|
+
title: linkMark.attrs['title'],
|
|
60
|
+
target: isPresent(linkMark.attrs['target']),
|
|
60
61
|
text: this.setLinkText(state)
|
|
61
62
|
});
|
|
62
63
|
return;
|
|
@@ -95,15 +96,15 @@ export class FileLinkDialogComponent extends DialogContentBase {
|
|
|
95
96
|
}
|
|
96
97
|
}
|
|
97
98
|
getData() {
|
|
98
|
-
|
|
99
|
-
if (isPresent(this.linkForm.controls
|
|
99
|
+
const linkData = this.linkForm.value;
|
|
100
|
+
if (isPresent(this.linkForm.controls['target'])) {
|
|
100
101
|
linkData.target = linkData.target ? '_blank' : null;
|
|
101
102
|
}
|
|
102
103
|
return linkData;
|
|
103
104
|
}
|
|
104
105
|
}
|
|
105
|
-
FileLinkDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
106
|
-
FileLinkDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
106
|
+
FileLinkDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FileLinkDialogComponent, deps: [{ token: i1.DialogRef }, { token: i2.EditorLocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
107
|
+
FileLinkDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: FileLinkDialogComponent, selector: "ng-component", inputs: { editor: "editor", command: "command" }, viewQueries: [{ propertyName: "hrefInput", first: true, predicate: ["hrefInput"], descendants: true, read: ElementRef, static: true }], usesInheritance: true, ngImport: i0, template: `
|
|
107
108
|
<kendo-dialog-titlebar (close)="onCancelAction()">
|
|
108
109
|
{{ titleText }}
|
|
109
110
|
</kendo-dialog-titlebar>
|
|
@@ -148,8 +149,8 @@ FileLinkDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
|
|
|
148
149
|
{{ textFor('dialogInsert') }}
|
|
149
150
|
</button>
|
|
150
151
|
</kendo-dialog-actions>
|
|
151
|
-
`, isInline: true, components: [{ type: i1.DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { type: i1.DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }], directives: [{ type:
|
|
152
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
152
|
+
`, isInline: true, components: [{ type: i1.DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { type: i1.DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }, { type: i3.Button, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }], directives: [{ type: i4.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i4.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { type: i6.CheckBoxDirective, selector: "input[kendoCheckBox]", inputs: ["size", "rounded"] }] });
|
|
153
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FileLinkDialogComponent, decorators: [{
|
|
153
154
|
type: Component,
|
|
154
155
|
args: [{
|
|
155
156
|
template: `
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { Component, Input, ViewChild } from '@angular/core';
|
|
6
|
-
import { DialogContentBase } from '@progress/kendo-angular-dialog';
|
|
6
|
+
import { DialogRef, DialogContentBase } from '@progress/kendo-angular-dialog';
|
|
7
|
+
import { EditorLocalizationService } from '../localization/editor-localization.service';
|
|
8
|
+
import { EditorComponent } from '../editor.component';
|
|
7
9
|
import { FontFamilyDropDownListComponent } from '../tools/fontfamily/editor-fontfamily-dropdownlist.component';
|
|
8
10
|
import * as i0 from "@angular/core";
|
|
9
11
|
import * as i1 from "@progress/kendo-angular-dialog";
|
|
@@ -45,14 +47,14 @@ export class FontFamilyDialogComponent extends DialogContentBase {
|
|
|
45
47
|
return this.localization.get(key);
|
|
46
48
|
}
|
|
47
49
|
}
|
|
48
|
-
FontFamilyDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
49
|
-
FontFamilyDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
50
|
+
FontFamilyDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FontFamilyDialogComponent, deps: [{ token: i1.DialogRef }, { token: i2.EditorLocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
51
|
+
FontFamilyDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: FontFamilyDialogComponent, selector: "ng-component", inputs: { editor: "editor" }, viewQueries: [{ propertyName: "fontFamilyDropDownList", first: true, predicate: ["fontFamilyDropDownList"], descendants: true, read: FontFamilyDropDownListComponent, static: true }], usesInheritance: true, ngImport: i0, template: `
|
|
50
52
|
<kendo-dialog-titlebar (close)="onCancelAction()">
|
|
51
53
|
{{ textFor('fontFamily') }}
|
|
52
54
|
</kendo-dialog-titlebar>
|
|
53
55
|
<div class="k-editor-dialog">
|
|
54
56
|
<div class="k-editor-dialog k-popup-edit-form k-window-content k-content">
|
|
55
|
-
<div class="k-edit-form-container k-window-content" style
|
|
57
|
+
<div class="k-edit-form-container k-window-content" [style.text-align]="'center'">
|
|
56
58
|
<kendo-editor-fontfamily-dropdownlist
|
|
57
59
|
#fontFamilyDropDownList
|
|
58
60
|
[defaultItem]="defaultItem"
|
|
@@ -69,8 +71,8 @@ FontFamilyDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
|
|
|
69
71
|
<button kendoButton
|
|
70
72
|
(click)="onConfirmAction()" [primary]="true">{{ textFor('dialogApply') }}</button>
|
|
71
73
|
</kendo-dialog-actions>
|
|
72
|
-
`, isInline: true, components: [{ type: i1.DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { type: i3.FontFamilyDropDownListComponent, selector: "kendo-editor-fontfamily-dropdownlist", inputs: ["data", "value", "defaultItem", "itemDisabled", "title", "disabled", "tabindex"], outputs: ["valueChange"] }, { type: i1.DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }
|
|
73
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
74
|
+
`, isInline: true, components: [{ type: i1.DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { type: i3.FontFamilyDropDownListComponent, selector: "kendo-editor-fontfamily-dropdownlist", inputs: ["data", "value", "defaultItem", "itemDisabled", "title", "disabled", "tabindex"], outputs: ["valueChange"] }, { type: i1.DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }, { type: i4.Button, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
|
|
75
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FontFamilyDialogComponent, decorators: [{
|
|
74
76
|
type: Component,
|
|
75
77
|
args: [{
|
|
76
78
|
template: `
|
|
@@ -79,7 +81,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
79
81
|
</kendo-dialog-titlebar>
|
|
80
82
|
<div class="k-editor-dialog">
|
|
81
83
|
<div class="k-editor-dialog k-popup-edit-form k-window-content k-content">
|
|
82
|
-
<div class="k-edit-form-container k-window-content" style
|
|
84
|
+
<div class="k-edit-form-container k-window-content" [style.text-align]="'center'">
|
|
83
85
|
<kendo-editor-fontfamily-dropdownlist
|
|
84
86
|
#fontFamilyDropDownList
|
|
85
87
|
[defaultItem]="defaultItem"
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { Component, Input, ViewChild } from '@angular/core';
|
|
6
|
-
import { DialogContentBase } from '@progress/kendo-angular-dialog';
|
|
6
|
+
import { DialogRef, DialogContentBase } from '@progress/kendo-angular-dialog';
|
|
7
|
+
import { EditorLocalizationService } from '../localization/editor-localization.service';
|
|
8
|
+
import { EditorComponent } from '../editor.component';
|
|
7
9
|
import { FontSizeDropDownListComponent } from '../tools/fontsize/editor-fontsize-dropdownlist.component';
|
|
8
10
|
import * as i0 from "@angular/core";
|
|
9
11
|
import * as i1 from "@progress/kendo-angular-dialog";
|
|
@@ -45,14 +47,14 @@ export class FontSizeDialogComponent extends DialogContentBase {
|
|
|
45
47
|
return this.localization.get(key);
|
|
46
48
|
}
|
|
47
49
|
}
|
|
48
|
-
FontSizeDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
49
|
-
FontSizeDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
50
|
+
FontSizeDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FontSizeDialogComponent, deps: [{ token: i1.DialogRef }, { token: i2.EditorLocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
51
|
+
FontSizeDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: FontSizeDialogComponent, selector: "ng-component", inputs: { editor: "editor" }, viewQueries: [{ propertyName: "fontSizeDropDownList", first: true, predicate: ["fontSizeDropDownList"], descendants: true, read: FontSizeDropDownListComponent, static: true }], usesInheritance: true, ngImport: i0, template: `
|
|
50
52
|
<kendo-dialog-titlebar (close)="onCancelAction()">
|
|
51
53
|
{{ textFor('fontSize') }}
|
|
52
54
|
</kendo-dialog-titlebar>
|
|
53
55
|
<div class="k-editor-dialog">
|
|
54
56
|
<div class="k-editor-dialog k-popup-edit-form k-window-content k-content">
|
|
55
|
-
<div class="k-edit-form-container k-window-content" style
|
|
57
|
+
<div class="k-edit-form-container k-window-content" [style.text-align]="'center'">
|
|
56
58
|
<kendo-editor-fontsize-dropdownlist
|
|
57
59
|
#fontSizeDropDownList
|
|
58
60
|
[defaultItem]="defaultItem"
|
|
@@ -69,8 +71,8 @@ FontSizeDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
|
|
|
69
71
|
<button kendoButton
|
|
70
72
|
(click)="onConfirmAction()" [primary]="true">{{ textFor('dialogApply') }}</button>
|
|
71
73
|
</kendo-dialog-actions>
|
|
72
|
-
`, isInline: true, components: [{ type: i1.DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { type: i3.FontSizeDropDownListComponent, selector: "kendo-editor-fontsize-dropdownlist", inputs: ["data", "value", "defaultItem", "itemDisabled", "title", "disabled", "tabindex"], outputs: ["valueChange"] }, { type: i1.DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }
|
|
73
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
74
|
+
`, isInline: true, components: [{ type: i1.DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { type: i3.FontSizeDropDownListComponent, selector: "kendo-editor-fontsize-dropdownlist", inputs: ["data", "value", "defaultItem", "itemDisabled", "title", "disabled", "tabindex"], outputs: ["valueChange"] }, { type: i1.DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }, { type: i4.Button, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
|
|
75
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FontSizeDialogComponent, decorators: [{
|
|
74
76
|
type: Component,
|
|
75
77
|
args: [{
|
|
76
78
|
template: `
|
|
@@ -79,7 +81,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
79
81
|
</kendo-dialog-titlebar>
|
|
80
82
|
<div class="k-editor-dialog">
|
|
81
83
|
<div class="k-editor-dialog k-popup-edit-form k-window-content k-content">
|
|
82
|
-
<div class="k-edit-form-container k-window-content" style
|
|
84
|
+
<div class="k-edit-form-container k-window-content" [style.text-align]="'center'">
|
|
83
85
|
<kendo-editor-fontsize-dropdownlist
|
|
84
86
|
#fontSizeDropDownList
|
|
85
87
|
[defaultItem]="defaultItem"
|
package/{esm2015/dialogs/format-dialog.component.js → esm2020/dialogs/format-dialog.component.mjs}
RENAMED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { Component, Input, ViewChild } from '@angular/core';
|
|
6
|
-
import { DialogContentBase } from '@progress/kendo-angular-dialog';
|
|
6
|
+
import { DialogRef, DialogContentBase } from '@progress/kendo-angular-dialog';
|
|
7
|
+
import { EditorLocalizationService } from '../localization/editor-localization.service';
|
|
7
8
|
import { FormatDropDownListComponent } from '../tools/format/editor-format-dropdownlist.component';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
10
|
import * as i1 from "@progress/kendo-angular-dialog";
|
|
@@ -45,14 +46,14 @@ export class FormatDialogComponent extends DialogContentBase {
|
|
|
45
46
|
return this.localization.get(key);
|
|
46
47
|
}
|
|
47
48
|
}
|
|
48
|
-
FormatDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
49
|
-
FormatDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
49
|
+
FormatDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormatDialogComponent, deps: [{ token: i1.DialogRef }, { token: i2.EditorLocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
50
|
+
FormatDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: FormatDialogComponent, selector: "ng-component", inputs: { editor: "editor" }, viewQueries: [{ propertyName: "formatDropDownList", first: true, predicate: ["formatDropDownList"], descendants: true, read: FormatDropDownListComponent, static: true }], usesInheritance: true, ngImport: i0, template: `
|
|
50
51
|
<kendo-dialog-titlebar (close)="onCancelAction()">
|
|
51
52
|
{{ textFor('format') }}
|
|
52
53
|
</kendo-dialog-titlebar>
|
|
53
54
|
<div class="k-editor-dialog">
|
|
54
55
|
<div class="k-editor-dialog k-popup-edit-form k-window-content k-content">
|
|
55
|
-
<div class="k-edit-form-container k-window-content" style
|
|
56
|
+
<div class="k-edit-form-container k-window-content" [style.text-align]="'center'">
|
|
56
57
|
<kendo-editor-format-dropdownlist
|
|
57
58
|
#formatDropDownList
|
|
58
59
|
[defaultItem]="defaultItem"
|
|
@@ -69,8 +70,8 @@ FormatDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
69
70
|
<button kendoButton
|
|
70
71
|
(click)="onConfirmAction()" [primary]="true">{{ textFor('dialogApply') }}</button>
|
|
71
72
|
</kendo-dialog-actions>
|
|
72
|
-
`, isInline: true, components: [{ type: i1.DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { type: i3.FormatDropDownListComponent, selector: "kendo-editor-format-dropdownlist", inputs: ["data", "value", "defaultItem", "itemDisabled", "title", "disabled", "tabindex"], outputs: ["valueChange"] }, { type: i1.DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }
|
|
73
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
73
|
+
`, isInline: true, components: [{ type: i1.DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { type: i3.FormatDropDownListComponent, selector: "kendo-editor-format-dropdownlist", inputs: ["data", "value", "defaultItem", "itemDisabled", "title", "disabled", "tabindex"], outputs: ["valueChange"] }, { type: i1.DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }, { type: i4.Button, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
|
|
74
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormatDialogComponent, decorators: [{
|
|
74
75
|
type: Component,
|
|
75
76
|
args: [{
|
|
76
77
|
template: `
|
|
@@ -79,7 +80,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
79
80
|
</kendo-dialog-titlebar>
|
|
80
81
|
<div class="k-editor-dialog">
|
|
81
82
|
<div class="k-editor-dialog k-popup-edit-form k-window-content k-content">
|
|
82
|
-
<div class="k-edit-form-container k-window-content" style
|
|
83
|
+
<div class="k-edit-form-container k-window-content" [style.text-align]="'center'">
|
|
83
84
|
<kendo-editor-format-dropdownlist
|
|
84
85
|
#formatDropDownList
|
|
85
86
|
[defaultItem]="defaultItem"
|
package/{esm2015/dialogs/image-dialog.component.js → esm2020/dialogs/image-dialog.component.mjs}
RENAMED
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { Component, Input, ViewChild, ElementRef } from '@angular/core';
|
|
6
6
|
import { FormControl, FormGroup, Validators } from '@angular/forms';
|
|
7
|
-
import { DialogContentBase } from '@progress/kendo-angular-dialog';
|
|
7
|
+
import { DialogRef, DialogContentBase } from '@progress/kendo-angular-dialog';
|
|
8
8
|
import { getNodeFromSelection } from '@progress/kendo-editor-common';
|
|
9
9
|
import { safeString } from '../util';
|
|
10
|
+
import { EditorLocalizationService } from '../localization/editor-localization.service';
|
|
10
11
|
import { guid } from '@progress/kendo-angular-common';
|
|
11
12
|
import * as i0 from "@angular/core";
|
|
12
13
|
import * as i1 from "@progress/kendo-angular-dialog";
|
|
13
14
|
import * as i2 from "../localization/editor-localization.service";
|
|
14
|
-
import * as i3 from "@angular
|
|
15
|
-
import * as i4 from "@
|
|
15
|
+
import * as i3 from "@progress/kendo-angular-buttons";
|
|
16
|
+
import * as i4 from "@angular/forms";
|
|
16
17
|
/**
|
|
17
18
|
* @hidden
|
|
18
19
|
*/
|
|
@@ -62,10 +63,10 @@ export class ImageDialogComponent extends DialogContentBase {
|
|
|
62
63
|
setData(state) {
|
|
63
64
|
const node = getNodeFromSelection(state);
|
|
64
65
|
if (node) {
|
|
65
|
-
this.src.patchValue(node.attrs
|
|
66
|
-
this.alt.patchValue(node.attrs
|
|
67
|
-
this.width.patchValue(node.attrs
|
|
68
|
-
this.height.patchValue(node.attrs
|
|
66
|
+
this.src.patchValue(node.attrs['src']);
|
|
67
|
+
this.alt.patchValue(node.attrs['alt']);
|
|
68
|
+
this.width.patchValue(node.attrs['width']);
|
|
69
|
+
this.height.patchValue(node.attrs['height']);
|
|
69
70
|
}
|
|
70
71
|
}
|
|
71
72
|
textFor(key) {
|
|
@@ -83,8 +84,8 @@ export class ImageDialogComponent extends DialogContentBase {
|
|
|
83
84
|
return Number.isNaN(parseInt(value, 10)) || parseInt(value, 10) <= 0 ? '' : safeString(parseInt(value, 10));
|
|
84
85
|
}
|
|
85
86
|
}
|
|
86
|
-
ImageDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
87
|
-
ImageDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
87
|
+
ImageDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ImageDialogComponent, deps: [{ token: i1.DialogRef }, { token: i2.EditorLocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
88
|
+
ImageDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ImageDialogComponent, selector: "ng-component", inputs: { editor: "editor" }, viewQueries: [{ propertyName: "srcInput", first: true, predicate: ["srcInput"], descendants: true, read: ElementRef, static: true }], usesInheritance: true, ngImport: i0, template: `
|
|
88
89
|
<kendo-dialog-titlebar (close)="onCancelAction()">
|
|
89
90
|
{{ textFor('insertImage') }}
|
|
90
91
|
</kendo-dialog-titlebar>
|
|
@@ -123,8 +124,8 @@ ImageDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
|
|
|
123
124
|
<button kendoButton [disabled]="imageData.invalid"
|
|
124
125
|
(click)="onConfirmAction()" [primary]="true">{{ textFor('dialogInsert') }}</button>
|
|
125
126
|
</kendo-dialog-actions>
|
|
126
|
-
`, isInline: true, components: [{ type: i1.DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { type: i1.DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }], directives: [{ type:
|
|
127
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
127
|
+
`, isInline: true, components: [{ type: i1.DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { type: i1.DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }, { type: i3.Button, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }], directives: [{ type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }] });
|
|
128
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ImageDialogComponent, decorators: [{
|
|
128
129
|
type: Component,
|
|
129
130
|
args: [{
|
|
130
131
|
template: `
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { Component, Input } from '@angular/core';
|
|
6
|
-
import { DialogContentBase } from '@progress/kendo-angular-dialog';
|
|
6
|
+
import { DialogRef, DialogContentBase } from '@progress/kendo-angular-dialog';
|
|
7
|
+
import { EditorLocalizationService } from '../localization/editor-localization.service';
|
|
8
|
+
import { EditorComponent } from '../editor.component';
|
|
7
9
|
import * as i0 from "@angular/core";
|
|
8
10
|
import * as i1 from "@progress/kendo-angular-dialog";
|
|
9
11
|
import * as i2 from "../localization/editor-localization.service";
|
|
@@ -34,14 +36,14 @@ export class InsertTableDialogComponent extends DialogContentBase {
|
|
|
34
36
|
return this.localization.get(key);
|
|
35
37
|
}
|
|
36
38
|
}
|
|
37
|
-
InsertTableDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
38
|
-
InsertTableDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
39
|
+
InsertTableDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: InsertTableDialogComponent, deps: [{ token: i1.DialogRef }, { token: i2.EditorLocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
40
|
+
InsertTableDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: InsertTableDialogComponent, selector: "ng-component", inputs: { editor: "editor" }, usesInheritance: true, ngImport: i0, template: `
|
|
39
41
|
<kendo-dialog-titlebar (close)="onCancelAction()">
|
|
40
42
|
{{ textFor('insertTable') }}
|
|
41
43
|
</kendo-dialog-titlebar>
|
|
42
44
|
<div class="k-editor-dialog">
|
|
43
45
|
<div class="k-editor-dialog k-popup-edit-form k-window-content k-content">
|
|
44
|
-
<div class="k-ct-popup k-window-content" style
|
|
46
|
+
<div class="k-ct-popup k-window-content" [style.text-align]="'center'">
|
|
45
47
|
<kendo-popup-table-grid (cellClick)="onCellClick($event)"></kendo-popup-table-grid>
|
|
46
48
|
</div>
|
|
47
49
|
</div>
|
|
@@ -49,8 +51,8 @@ InsertTableDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0
|
|
|
49
51
|
<kendo-dialog-actions>
|
|
50
52
|
<button kendoButton (click)="onCancelAction()">{{ textFor('dialogCancel') }}</button>
|
|
51
53
|
</kendo-dialog-actions>
|
|
52
|
-
`, isInline: true, components: [{ type: i1.DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { type: i3.PopupTableGridComponent, selector: "kendo-popup-table-grid", outputs: ["cellClick", "tableWizardClick"] }, { type: i1.DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }
|
|
53
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
54
|
+
`, isInline: true, components: [{ type: i1.DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { type: i3.PopupTableGridComponent, selector: "kendo-popup-table-grid", outputs: ["cellClick", "tableWizardClick"] }, { type: i1.DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }, { type: i4.Button, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
|
|
55
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: InsertTableDialogComponent, decorators: [{
|
|
54
56
|
type: Component,
|
|
55
57
|
args: [{
|
|
56
58
|
template: `
|
|
@@ -59,7 +61,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
59
61
|
</kendo-dialog-titlebar>
|
|
60
62
|
<div class="k-editor-dialog">
|
|
61
63
|
<div class="k-editor-dialog k-popup-edit-form k-window-content k-content">
|
|
62
|
-
<div class="k-ct-popup k-window-content" style
|
|
64
|
+
<div class="k-ct-popup k-window-content" [style.text-align]="'center'">
|
|
63
65
|
<kendo-popup-table-grid (cellClick)="onCellClick($event)"></kendo-popup-table-grid>
|
|
64
66
|
</div>
|
|
65
67
|
</div>
|
package/{esm2015/dialogs/source-dialog.component.js → esm2020/dialogs/source-dialog.component.mjs}
RENAMED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Component, ViewChild, Input } from '@angular/core';
|
|
5
|
+
import { Component, ViewChild, ElementRef, Input } from '@angular/core';
|
|
6
6
|
// import { EditorService } from '../editor.service';
|
|
7
|
-
import { DialogContentBase } from '@progress/kendo-angular-dialog';
|
|
7
|
+
import { DialogRef, DialogContentBase } from '@progress/kendo-angular-dialog';
|
|
8
|
+
import { EditorLocalizationService } from '../localization/editor-localization.service';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
10
|
import * as i1 from "@progress/kendo-angular-dialog";
|
|
10
11
|
import * as i2 from "../localization/editor-localization.service";
|
|
@@ -49,32 +50,25 @@ export class SourceDialogComponent extends DialogContentBase {
|
|
|
49
50
|
.replace(/\n$/, '');
|
|
50
51
|
}
|
|
51
52
|
}
|
|
52
|
-
SourceDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
53
|
-
SourceDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
53
|
+
SourceDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SourceDialogComponent, deps: [{ token: i1.DialogRef }, { token: i2.EditorLocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
54
|
+
SourceDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: SourceDialogComponent, selector: "ng-component", inputs: { editor: "editor" }, viewQueries: [{ propertyName: "textarea", first: true, predicate: ["textarea"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `
|
|
54
55
|
<kendo-dialog-titlebar (close)="onCancelAction()">
|
|
55
56
|
{{ textFor('viewSource') }}
|
|
56
57
|
</kendo-dialog-titlebar>
|
|
57
|
-
<textarea [value]="data" #textarea class="k-textarea k-editor-textarea"></textarea>
|
|
58
|
+
<textarea [value]="data" #textarea class="k-textarea k-editor-textarea" [style.height.%]="100"></textarea>
|
|
58
59
|
<kendo-dialog-actions>
|
|
59
60
|
<button kendoButton (click)="onCancelAction()">{{ textFor('dialogCancel') }}</button>
|
|
60
61
|
<button kendoButton (click)="onConfirmAction()" [primary]="true">{{ textFor('dialogUpdate') }}</button>
|
|
61
62
|
</kendo-dialog-actions>
|
|
62
|
-
`, isInline: true,
|
|
63
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
63
|
+
`, isInline: true, components: [{ type: i1.DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { type: i1.DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }, { type: i3.Button, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
|
|
64
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SourceDialogComponent, decorators: [{
|
|
64
65
|
type: Component,
|
|
65
66
|
args: [{
|
|
66
|
-
styles: [
|
|
67
|
-
`
|
|
68
|
-
>>> .k-editor-textarea {
|
|
69
|
-
height: 100%;
|
|
70
|
-
}
|
|
71
|
-
`
|
|
72
|
-
],
|
|
73
67
|
template: `
|
|
74
68
|
<kendo-dialog-titlebar (close)="onCancelAction()">
|
|
75
69
|
{{ textFor('viewSource') }}
|
|
76
70
|
</kendo-dialog-titlebar>
|
|
77
|
-
<textarea [value]="data" #textarea class="k-textarea k-editor-textarea"></textarea>
|
|
71
|
+
<textarea [value]="data" #textarea class="k-textarea k-editor-textarea" [style.height.%]="100"></textarea>
|
|
78
72
|
<kendo-dialog-actions>
|
|
79
73
|
<button kendoButton (click)="onCancelAction()">{{ textFor('dialogCancel') }}</button>
|
|
80
74
|
<button kendoButton (click)="onConfirmAction()" [primary]="true">{{ textFor('dialogUpdate') }}</button>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
2
|
+
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { blockquote, cleanFormatting, isIndented } from '@progress/kendo-editor-common';
|
|
@@ -42,14 +42,14 @@ export const getToolbarState = (state, options) => ({
|
|
|
42
42
|
},
|
|
43
43
|
indent: {
|
|
44
44
|
selected: false,
|
|
45
|
-
disabled: !(canIndentAsListItem(state, state.schema.nodes
|
|
45
|
+
disabled: !(canIndentAsListItem(state, state.schema.nodes['list_item']) || canBeIndented(state, indentRules))
|
|
46
46
|
},
|
|
47
47
|
insertOrderedList: {
|
|
48
|
-
selected: hasNode(state, state.schema.nodes
|
|
48
|
+
selected: hasNode(state, state.schema.nodes['ordered_list']),
|
|
49
49
|
disabled: false
|
|
50
50
|
},
|
|
51
51
|
insertUnorderedList: {
|
|
52
|
-
selected: hasNode(state, state.schema.nodes
|
|
52
|
+
selected: hasNode(state, state.schema.nodes['bullet_list']),
|
|
53
53
|
disabled: false
|
|
54
54
|
},
|
|
55
55
|
italic: {
|
|
@@ -63,7 +63,7 @@ export const getToolbarState = (state, options) => ({
|
|
|
63
63
|
outdent: {
|
|
64
64
|
selected: false,
|
|
65
65
|
get disabled() {
|
|
66
|
-
return !(hasNode(state, state.schema.nodes
|
|
66
|
+
return !(hasNode(state, state.schema.nodes['blockquote']) ||
|
|
67
67
|
canOutdentAsListItem(state, outdentRules) ||
|
|
68
68
|
isIndented(state, outdentRules.nodes));
|
|
69
69
|
}
|
|
@@ -81,7 +81,7 @@ export const getToolbarState = (state, options) => ({
|
|
|
81
81
|
disabled: false
|
|
82
82
|
},
|
|
83
83
|
style: {
|
|
84
|
-
selected: getActiveMarks(state, state.schema.marks
|
|
84
|
+
selected: getActiveMarks(state, state.schema.marks['style']),
|
|
85
85
|
disabled: false
|
|
86
86
|
},
|
|
87
87
|
subscript: {
|