@progress/kendo-angular-editor 17.0.0-develop.4 → 17.0.0-develop.40
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/README.md +26 -18
- package/common/commands.d.ts +5 -5
- package/common/direction.d.ts +1 -1
- package/common/plugins-function.d.ts +1 -1
- package/common/predicate.d.ts +1 -1
- package/config/utils.d.ts +2 -2
- 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.component.d.ts +1 -1
- package/editor.module.d.ts +2 -3
- package/{esm2020 → esm2022}/common/provider.service.mjs +4 -3
- package/{esm2020 → esm2022}/dialogs/colorpicker-dialog.component.mjs +17 -5
- package/{esm2020 → esm2022}/dialogs/file-link-dialog.component.mjs +15 -10
- package/{esm2020 → esm2022}/dialogs/font-family-dialog.component.mjs +13 -6
- package/{esm2020 → esm2022}/dialogs/font-size-dialog.component.mjs +13 -6
- package/{esm2020 → esm2022}/dialogs/format-dialog.component.mjs +13 -6
- package/{esm2020 → esm2022}/dialogs/image-dialog.component.mjs +29 -21
- package/{esm2020 → esm2022}/dialogs/insert-table-dialog.component.mjs +8 -5
- package/{esm2020 → esm2022}/dialogs/source-dialog.component.mjs +10 -6
- package/{esm2020 → esm2022}/editor.component.mjs +222 -180
- package/esm2022/editor.module.mjs +88 -0
- package/{esm2020 → esm2022}/localization/custom-messages.component.mjs +9 -8
- package/{esm2020 → esm2022}/localization/editor-localization.service.mjs +3 -3
- package/{esm2020 → esm2022}/localization/localized-messages.directive.mjs +7 -6
- package/esm2022/localization/messages.mjs +364 -0
- package/{esm2020 → esm2022}/package-metadata.mjs +2 -2
- package/{esm2020 → esm2022}/preventable-events/paste-event.mjs +12 -0
- package/{esm2020 → esm2022}/preventable-events/preventable-event.mjs +1 -3
- package/{esm2020 → esm2022}/tools/alignment/editor-align-center-button.directive.mjs +3 -3
- package/{esm2020 → esm2022}/tools/alignment/editor-align-justify-button.directive.mjs +3 -3
- package/{esm2020 → esm2022}/tools/alignment/editor-align-left-button.directive.mjs +3 -3
- package/{esm2020 → esm2022}/tools/alignment/editor-align-right-button.directive.mjs +3 -3
- package/{esm2020 → esm2022}/tools/blockquote/editor-blockquote-button.directive.mjs +3 -3
- package/{esm2020 → esm2022}/tools/colorpicker/editor-back-color.directive.mjs +4 -3
- package/{esm2020 → esm2022}/tools/colorpicker/editor-colorpicker.component.mjs +59 -33
- package/{esm2020 → esm2022}/tools/colorpicker/editor-fore-color.directive.mjs +4 -3
- package/{esm2020 → esm2022}/tools/editor-clean-formatting-button.directive.mjs +3 -3
- package/{esm2020 → esm2022}/tools/fontfamily/editor-fontfamily-dropdownlist.component.mjs +14 -7
- package/{esm2020 → esm2022}/tools/fontfamily/editor-fontfamily.component.mjs +53 -41
- package/{esm2020 → esm2022}/tools/fontsize/editor-fontsize-dropdownlist.component.mjs +14 -7
- package/{esm2020 → esm2022}/tools/fontsize/editor-fontsize.component.mjs +48 -36
- package/{esm2020 → esm2022}/tools/format/editor-format-dropdownlist.component.mjs +14 -7
- package/{esm2020 → esm2022}/tools/format/editor-format.component.mjs +41 -36
- package/{esm2020 → esm2022}/tools/history/editor-redo-button.directive.mjs +3 -3
- package/{esm2020 → esm2022}/tools/history/editor-undo-button.directive.mjs +3 -3
- package/{esm2020 → esm2022}/tools/image/editor-insert-image-button.directive.mjs +3 -3
- package/{esm2020 → esm2022}/tools/indentation/editor-indent-button.directive.mjs +3 -3
- package/{esm2020 → esm2022}/tools/indentation/editor-outdent-button.directive.mjs +3 -3
- package/{esm2020 → esm2022}/tools/link/editor-create-link-button.directive.mjs +3 -3
- package/{esm2020 → esm2022}/tools/link/editor-insert-file-button.directive.mjs +3 -3
- package/{esm2020 → esm2022}/tools/link/editor-unlink-button.directive.mjs +3 -3
- package/{esm2020 → esm2022}/tools/list/editor-insert-ordered-list-button.directive.mjs +3 -3
- package/{esm2020 → esm2022}/tools/list/editor-insert-unordered-list-button.directive.mjs +3 -3
- package/{esm2020 → esm2022}/tools/print/editor-print-button.directive.mjs +3 -3
- package/{esm2020 → esm2022}/tools/select-all/select-all-button.directive.mjs +3 -3
- package/{esm2020 → esm2022}/tools/shared/dropdown-tool.directive.mjs +11 -9
- package/{esm2020 → esm2022}/tools/shared/editor-command-base.mjs +9 -3
- package/{esm2020 → esm2022}/tools/shared/editor-command-button.mjs +5 -0
- package/{esm2020 → esm2022}/tools/shared/editor-command-dialog.mjs +5 -0
- package/{esm2020 → esm2022}/tools/source/editor-view-source-button.directive.mjs +3 -3
- package/{esm2020 → esm2022}/tools/tables/editor-add-column-after-button.directive.mjs +3 -3
- package/{esm2020 → esm2022}/tools/tables/editor-add-column-before-button.directive.mjs +3 -3
- package/{esm2020 → esm2022}/tools/tables/editor-add-row-after-button.directive.mjs +3 -3
- package/{esm2020 → esm2022}/tools/tables/editor-add-row-before-button.directive.mjs +3 -3
- package/{esm2020 → esm2022}/tools/tables/editor-delete-column-button.directive.mjs +3 -3
- package/{esm2020 → esm2022}/tools/tables/editor-delete-row-button.directive.mjs +3 -3
- package/{esm2020 → esm2022}/tools/tables/editor-delete-table-button.directive.mjs +3 -3
- package/{esm2020 → esm2022}/tools/tables/editor-insert-table-button.component.mjs +27 -16
- package/{esm2020 → esm2022}/tools/tables/editor-merge-cells-button.directive.mjs +3 -3
- package/{esm2020 → esm2022}/tools/tables/editor-split-cell-button.directive.mjs +3 -3
- package/{esm2020 → esm2022}/tools/tables/popup-table-grid.component.mjs +11 -10
- package/{esm2020 → esm2022}/tools/tools.service.mjs +5 -4
- package/{esm2020 → esm2022}/tools/typographical-emphasis/editor-bold-button.directive.mjs +3 -3
- package/{esm2020 → esm2022}/tools/typographical-emphasis/editor-italic-button.directive.mjs +3 -3
- package/{esm2020 → esm2022}/tools/typographical-emphasis/editor-strikethrough-button.directive.mjs +3 -3
- package/{esm2020 → esm2022}/tools/typographical-emphasis/editor-subscript-button.directive.mjs +3 -3
- package/{esm2020 → esm2022}/tools/typographical-emphasis/editor-superscript-button.directive.mjs +3 -3
- package/{esm2020 → esm2022}/tools/typographical-emphasis/editor-underline-button.directive.mjs +3 -3
- package/{fesm2020 → fesm2022}/progress-kendo-angular-editor.mjs +1608 -1174
- package/localization/messages.d.ts +1 -1
- package/package.json +25 -31
- package/schematics/ngAdd/index.js +4 -4
- package/tools/colorpicker/editor-colorpicker.component.d.ts +2 -4
- package/tools/fontfamily/editor-fontfamily-dropdownlist.component.d.ts +1 -1
- package/tools/fontfamily/editor-fontfamily.component.d.ts +2 -4
- package/tools/fontsize/editor-fontsize-dropdownlist.component.d.ts +1 -1
- package/tools/fontsize/editor-fontsize.component.d.ts +2 -4
- package/tools/format/editor-format-dropdownlist.component.d.ts +1 -1
- package/tools/format/editor-format.component.d.ts +2 -4
- package/tools/tables/editor-insert-table-button.component.d.ts +0 -2
- package/esm2020/editor.module.mjs +0 -111
- package/esm2020/localization/messages.mjs +0 -132
- package/fesm2015/progress-kendo-angular-editor.mjs +0 -6403
- /package/{esm2020 → esm2022}/common/active-marks.mjs +0 -0
- /package/{esm2020 → esm2022}/common/apply-to-word-options.mjs +0 -0
- /package/{esm2020 → esm2022}/common/commands.mjs +0 -0
- /package/{esm2020 → esm2022}/common/css-settings.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/common/direction.mjs +0 -0
- /package/{esm2020 → esm2022}/common/error-messages.mjs +0 -0
- /package/{esm2020 → esm2022}/common/font-family-item.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/common/font-size-item.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/common/format-item.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/common/image-data.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/common/link-data.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/common/paste-cleanup-settings.mjs +0 -0
- /package/{esm2020 → esm2022}/common/plugins-function.mjs +0 -0
- /package/{esm2020 → esm2022}/common/predicate.mjs +0 -0
- /package/{esm2020 → esm2022}/common/resizable-options.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/common/styles.mjs +0 -0
- /package/{esm2020 → esm2022}/common/table-data.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/config/command-icons.mjs +0 -0
- /package/{esm2020 → esm2022}/config/commands.mjs +0 -0
- /package/{esm2020 → esm2022}/config/schema.mjs +0 -0
- /package/{esm2020 → esm2022}/config/semantic-nodes.mjs +0 -0
- /package/{esm2020 → esm2022}/config/table-commands.mjs +0 -0
- /package/{esm2020 → esm2022}/config/utils.mjs +0 -0
- /package/{esm2020 → esm2022}/directives.mjs +0 -0
- /package/{esm2020 → esm2022}/editor-toolbar-state.mjs +0 -0
- /package/{esm2020 → esm2022}/index.mjs +0 -0
- /package/{esm2020 → esm2022}/progress-kendo-angular-editor.mjs +0 -0
- /package/{esm2020 → esm2022}/util.mjs +0 -0
|
@@ -6,15 +6,15 @@ import * as i0 from '@angular/core';
|
|
|
6
6
|
import { Injectable, Inject, Optional, Component, Input, ViewChild, InjectionToken, Directive, EventEmitter, Output, forwardRef, ElementRef, isDevMode, ViewContainerRef, HostBinding, ContentChild, NgModule } from '@angular/core';
|
|
7
7
|
import { NgIf, NgSwitch, NgSwitchCase, NgSwitchDefault, NgStyle, NgFor } from '@angular/common';
|
|
8
8
|
import * as i3 from '@angular/forms';
|
|
9
|
-
import { FormControl, Validators, FormGroup, ReactiveFormsModule, NG_VALUE_ACCESSOR
|
|
9
|
+
import { FormControl, Validators, FormGroup, ReactiveFormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
10
10
|
import { Subject, BehaviorSubject, zip, fromEvent, interval } from 'rxjs';
|
|
11
11
|
import { take, map, filter as filter$1, concatMap, takeUntil } from 'rxjs/operators';
|
|
12
12
|
import * as i1$2 from '@progress/kendo-angular-toolbar';
|
|
13
|
-
import { ToolBarToolComponent, ToolBarComponent, ToolBarButtonGroupComponent, ToolBarButtonComponent,
|
|
13
|
+
import { ToolBarToolComponent, ToolBarComponent, ToolBarButtonGroupComponent, ToolBarButtonComponent, KENDO_TOOLBAR } from '@progress/kendo-angular-toolbar';
|
|
14
14
|
import * as i1$1 from '@progress/kendo-angular-dialog';
|
|
15
15
|
import { DialogContentBase, DialogTitleBarComponent, DialogActionsComponent, DialogContainerService, DialogService, WindowService, WindowContainerService } from '@progress/kendo-angular-dialog';
|
|
16
16
|
import { isDocumentAvailable, guid, shouldShowValidationUI, hasObservers, KendoInput, WatermarkOverlayComponent, isPresent as isPresent$1, Keys, ResizeBatchService } from '@progress/kendo-angular-common';
|
|
17
|
-
import { marks as marks$1, nodes as nodes$1, Schema, createTable, insertNode, alignBlocks, alignRemoveRules, expandToWordWrap, toggleInlineFormat, bold, cleanFormatting, applyLink, applyInlineStyle, insertText, italic, strikethrough, subscript, superscript, underline, removeLink, link, selectAll, isAligned, alignCenterRules, alignJustifyRules, alignLeftRules, alignRightRules, formatBlockElements, getHtml, indent, insertImage, toggleOrderedList, toggleUnorderedList, outdent, redo, setHtml, undo, blockquote, addColumnBefore, addColumnAfter, addRowBefore, addRowAfter, deleteRow, deleteColumn, mergeCells, splitCell, deleteTable, hasMark, activeNode, canIndentAsListItem, canBeIndented, indentRules, hasNode, canOutdentAsListItem, outdentRules, isIndented, getActiveMarks, expandSelection, getSelectionText as getSelectionText$1, getNodeFromSelection, getMark, removeComments, sanitize, removeAttribute, sanitizeStyleAttr, sanitizeClassAttr,
|
|
17
|
+
import { marks as marks$1, nodes as nodes$1, Schema, createTable, insertNode, alignBlocks, alignRemoveRules, expandToWordWrap, toggleInlineFormat, bold, cleanFormatting, applyLink, applyInlineStyle, insertText, italic, strikethrough, subscript, superscript, underline, removeLink, link, selectAll, isAligned, alignCenterRules, alignJustifyRules, alignLeftRules, alignRightRules, formatBlockElements, getHtml, indent, insertImage, toggleOrderedList, toggleUnorderedList, outdent, redo, setHtml, undo, blockquote, addColumnBefore, addColumnAfter, addRowBefore, addRowAfter, deleteRow, deleteColumn, mergeCells, splitCell, deleteTable, hasMark, activeNode, canIndentAsListItem, canBeIndented, indentRules, hasNode, canOutdentAsListItem, outdentRules, isIndented, getActiveMarks, expandSelection, getSelectionText as getSelectionText$1, getNodeFromSelection, getMark, removeComments, sanitize, removeAttribute, sanitizeStyleAttr, sanitizeClassAttr, TextSelection, parseContent, Plugin, PluginKey, history, keymap, buildListKeymap, buildKeymap, baseKeymap, gapCursor, imageResizing, tableResizing, tableEditing, caretColor, cspFix, placeholder, EditorState, EditorView, pasteCleanup, AllSelection } from '@progress/kendo-editor-common';
|
|
18
18
|
export { Decoration, DecorationSet, EditorState, EditorView, InputRule, Mark, MarkType, Node, NodeType, Plugin, PluginKey, Schema, Transaction, baseKeymap, dropCursor, gapCursor, history, inputRules, keymap, tableNodes, textblockTypeInputRule, wrappingInputRule } from '@progress/kendo-editor-common';
|
|
19
19
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
20
20
|
import * as i1 from '@progress/kendo-angular-l10n';
|
|
@@ -22,7 +22,7 @@ import { LocalizationService, L10N_PREFIX, RTL, ComponentMessages } from '@progr
|
|
|
22
22
|
import { TextAreaComponent, FormFieldComponent, TextBoxComponent, CheckBoxDirective, ColorPickerComponent } from '@progress/kendo-angular-inputs';
|
|
23
23
|
import { ButtonComponent } from '@progress/kendo-angular-buttons';
|
|
24
24
|
import { LabelComponent, LabelDirective } from '@progress/kendo-angular-label';
|
|
25
|
-
import { alignCenterIcon, alignJustifyIcon, alignLeftIcon, alignRightIcon, dropletIcon, rightDoubleQuotesIcon, boldIcon, clearCssIcon, linkIcon, foregroundColorIcon, indentIcon, fileAddIcon, fileImageIcon, listOrderedIcon, listUnorderedIcon, italicIcon, outdentIcon, printIcon, redoIcon, selectAllIcon, strikethroughIcon, subscriptIcon, supscriptIcon, underlineIcon, undoIcon, unlinkIcon, codeSnippetIcon, tableAddIcon, tableColumnInsertLeftIcon, tableColumnInsertRightIcon, tableRowInsertAboveIcon, tableRowInsertBelowIcon, tableRowDeleteIcon, tableColumnDeleteIcon, cellsMergeIcon, cellSplitHorizontallyIcon, tableDeleteIcon, applyFormatIcon,
|
|
25
|
+
import { alignCenterIcon, alignJustifyIcon, alignLeftIcon, alignRightIcon, dropletIcon, rightDoubleQuotesIcon, boldIcon, clearCssIcon, linkIcon, foregroundColorIcon, indentIcon, fileAddIcon, fileImageIcon, listOrderedIcon, listUnorderedIcon, italicIcon, outdentIcon, printIcon, redoIcon, selectAllIcon, strikethroughIcon, subscriptIcon, supscriptIcon, underlineIcon, undoIcon, unlinkIcon, codeSnippetIcon, tableAddIcon, tableColumnInsertLeftIcon, tableColumnInsertRightIcon, tableRowInsertAboveIcon, tableRowInsertBelowIcon, tableRowDeleteIcon, tableColumnDeleteIcon, cellsMergeIcon, cellSplitHorizontallyIcon, tableDeleteIcon, applyFormatIcon, fontSizeIcon, fontFamilyIcon, tableWizardIcon } from '@progress/kendo-svg-icons';
|
|
26
26
|
import { IconWrapperComponent, IconsService } from '@progress/kendo-angular-icons';
|
|
27
27
|
import { DropDownListComponent, ItemTemplateDirective } from '@progress/kendo-angular-dropdowns';
|
|
28
28
|
import * as i2 from '@progress/kendo-angular-popup';
|
|
@@ -35,8 +35,8 @@ const packageMetadata = {
|
|
|
35
35
|
name: '@progress/kendo-angular-editor',
|
|
36
36
|
productName: 'Kendo UI for Angular',
|
|
37
37
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
38
|
-
publishDate:
|
|
39
|
-
version: '17.0.0-develop.
|
|
38
|
+
publishDate: 1730799135,
|
|
39
|
+
version: '17.0.0-develop.40',
|
|
40
40
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
41
41
|
};
|
|
42
42
|
|
|
@@ -653,10 +653,10 @@ class EditorLocalizationService extends LocalizationService {
|
|
|
653
653
|
constructor(prefix, messageService, _rtl) {
|
|
654
654
|
super(prefix, messageService, _rtl);
|
|
655
655
|
}
|
|
656
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorLocalizationService, deps: [{ token: L10N_PREFIX }, { token: i1.MessageService, optional: true }, { token: RTL, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
657
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorLocalizationService });
|
|
656
658
|
}
|
|
657
|
-
|
|
658
|
-
EditorLocalizationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EditorLocalizationService });
|
|
659
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EditorLocalizationService, decorators: [{
|
|
659
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorLocalizationService, decorators: [{
|
|
660
660
|
type: Injectable
|
|
661
661
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
662
662
|
type: Inject,
|
|
@@ -674,11 +674,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
674
674
|
* @hidden
|
|
675
675
|
*/
|
|
676
676
|
class SourceDialogComponent extends DialogContentBase {
|
|
677
|
+
dialog;
|
|
678
|
+
localization;
|
|
679
|
+
editor;
|
|
680
|
+
textarea;
|
|
681
|
+
data = '';
|
|
677
682
|
constructor(dialog, localization) {
|
|
678
683
|
super(dialog);
|
|
679
684
|
this.dialog = dialog;
|
|
680
685
|
this.localization = localization;
|
|
681
|
-
this.data = '';
|
|
682
686
|
}
|
|
683
687
|
onCancelAction() {
|
|
684
688
|
this.dialog.close();
|
|
@@ -704,9 +708,8 @@ class SourceDialogComponent extends DialogContentBase {
|
|
|
704
708
|
.replace(/<br \/>/gi, '<br />\n')
|
|
705
709
|
.replace(/\n$/, '');
|
|
706
710
|
}
|
|
707
|
-
}
|
|
708
|
-
|
|
709
|
-
SourceDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: SourceDialogComponent, isStandalone: true, selector: "ng-component", inputs: { editor: "editor" }, viewQueries: [{ propertyName: "textarea", first: true, predicate: ["textarea"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `
|
|
711
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SourceDialogComponent, deps: [{ token: i1$1.DialogRef }, { token: EditorLocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
712
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SourceDialogComponent, isStandalone: true, selector: "ng-component", inputs: { editor: "editor" }, viewQueries: [{ propertyName: "textarea", first: true, predicate: ["textarea"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `
|
|
710
713
|
<kendo-dialog-titlebar (close)="onCancelAction()">
|
|
711
714
|
{{ textFor('viewSource') }}
|
|
712
715
|
</kendo-dialog-titlebar>
|
|
@@ -729,8 +732,9 @@ SourceDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0",
|
|
|
729
732
|
(click)="onCancelAction()"
|
|
730
733
|
>{{ textFor('dialogCancel') }}</button>
|
|
731
734
|
</kendo-dialog-actions>
|
|
732
|
-
`, isInline: true, dependencies: [{ kind: "component", type: DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { kind: "component", type: TextAreaComponent, selector: "kendo-textarea", inputs: ["focusableId", "flow", "inputAttributes", "adornmentsOrientation", "rows", "cols", "maxlength", "tabindex", "tabIndex", "resizable", "size", "rounded", "fillMode", "showPrefixSeparator", "showSuffixSeparator"], outputs: ["focus", "blur", "valueChange"], exportAs: ["kendoTextArea"] }, { kind: "component", type: DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]
|
|
733
|
-
|
|
735
|
+
`, isInline: true, dependencies: [{ kind: "component", type: DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { kind: "component", type: TextAreaComponent, selector: "kendo-textarea", inputs: ["focusableId", "flow", "inputAttributes", "adornmentsOrientation", "rows", "cols", "maxlength", "tabindex", "tabIndex", "resizable", "size", "rounded", "fillMode", "showPrefixSeparator", "showSuffixSeparator"], outputs: ["focus", "blur", "valueChange"], exportAs: ["kendoTextArea"] }, { kind: "component", type: DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
|
|
736
|
+
}
|
|
737
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SourceDialogComponent, decorators: [{
|
|
734
738
|
type: Component,
|
|
735
739
|
args: [{
|
|
736
740
|
template: `
|
|
@@ -771,26 +775,34 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
771
775
|
* @hidden
|
|
772
776
|
*/
|
|
773
777
|
class ImageDialogComponent extends DialogContentBase {
|
|
778
|
+
dialog;
|
|
779
|
+
localization;
|
|
780
|
+
editor;
|
|
781
|
+
srcInput;
|
|
782
|
+
src = new FormControl('', Validators.required);
|
|
783
|
+
alt = new FormControl('');
|
|
784
|
+
width = new FormControl('', Validators.min(1));
|
|
785
|
+
height = new FormControl('', Validators.min(1));
|
|
786
|
+
data = {
|
|
787
|
+
alt: '',
|
|
788
|
+
height: '',
|
|
789
|
+
src: '',
|
|
790
|
+
width: ''
|
|
791
|
+
};
|
|
792
|
+
imageData = new FormGroup({
|
|
793
|
+
alt: this.alt,
|
|
794
|
+
height: this.height,
|
|
795
|
+
src: this.src,
|
|
796
|
+
width: this.width
|
|
797
|
+
});
|
|
798
|
+
srcInputId;
|
|
799
|
+
altTextInputId;
|
|
800
|
+
widthInputId;
|
|
801
|
+
heightInputId;
|
|
774
802
|
constructor(dialog, localization) {
|
|
775
803
|
super(dialog);
|
|
776
804
|
this.dialog = dialog;
|
|
777
805
|
this.localization = localization;
|
|
778
|
-
this.src = new FormControl('', Validators.required);
|
|
779
|
-
this.alt = new FormControl('');
|
|
780
|
-
this.width = new FormControl('', Validators.min(1));
|
|
781
|
-
this.height = new FormControl('', Validators.min(1));
|
|
782
|
-
this.data = {
|
|
783
|
-
alt: '',
|
|
784
|
-
height: '',
|
|
785
|
-
src: '',
|
|
786
|
-
width: ''
|
|
787
|
-
};
|
|
788
|
-
this.imageData = new FormGroup({
|
|
789
|
-
alt: this.alt,
|
|
790
|
-
height: this.height,
|
|
791
|
-
src: this.src,
|
|
792
|
-
width: this.width
|
|
793
|
-
});
|
|
794
806
|
}
|
|
795
807
|
ngOnInit() {
|
|
796
808
|
this.srcInputId = `k-${guid()}`;
|
|
@@ -831,9 +843,8 @@ class ImageDialogComponent extends DialogContentBase {
|
|
|
831
843
|
normalizeDimension(value) {
|
|
832
844
|
return Number.isNaN(parseInt(value, 10)) || parseInt(value, 10) <= 0 ? '' : safeString(parseInt(value, 10));
|
|
833
845
|
}
|
|
834
|
-
}
|
|
835
|
-
|
|
836
|
-
ImageDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ImageDialogComponent, isStandalone: true, selector: "ng-component", inputs: { editor: "editor" }, viewQueries: [{ propertyName: "srcInput", first: true, predicate: ["srcInput"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
846
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ImageDialogComponent, deps: [{ token: i1$1.DialogRef }, { token: EditorLocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
847
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ImageDialogComponent, isStandalone: true, selector: "ng-component", inputs: { editor: "editor" }, viewQueries: [{ propertyName: "srcInput", first: true, predicate: ["srcInput"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
837
848
|
<kendo-dialog-titlebar (close)="onCancelAction()">
|
|
838
849
|
{{ textFor('insertImage') }}
|
|
839
850
|
</kendo-dialog-titlebar>
|
|
@@ -895,8 +906,9 @@ ImageDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", v
|
|
|
895
906
|
(click)="onCancelAction()"
|
|
896
907
|
>{{ textFor('dialogCancel') }}</button>
|
|
897
908
|
</kendo-dialog-actions>
|
|
898
|
-
`, isInline: true, dependencies: [{ kind: "component", type: DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { kind: "component", type: FormFieldComponent, selector: "kendo-formfield", inputs: ["showHints", "orientation", "showErrors"] }, { kind: "component", type: LabelComponent, selector: "kendo-label", inputs: ["text", "for", "optional", "labelCssStyle", "labelCssClass"], exportAs: ["kendoLabel"] }, { kind: "component", type: TextBoxComponent, selector: "kendo-textbox", inputs: ["focusableId", "title", "type", "disabled", "readonly", "tabindex", "value", "selectOnFocus", "showSuccessIcon", "showErrorIcon", "clearButton", "successIcon", "successSvgIcon", "errorIcon", "errorSvgIcon", "clearButtonIcon", "clearButtonSvgIcon", "size", "rounded", "fillMode", "tabIndex", "placeholder", "maxlength", "inputAttributes"], outputs: ["valueChange", "inputFocus", "inputBlur", "focus", "blur"], exportAs: ["kendoTextBox"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]
|
|
899
|
-
|
|
909
|
+
`, isInline: true, dependencies: [{ kind: "component", type: DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { kind: "component", type: FormFieldComponent, selector: "kendo-formfield", inputs: ["showHints", "orientation", "showErrors"] }, { kind: "component", type: LabelComponent, selector: "kendo-label", inputs: ["text", "for", "optional", "labelCssStyle", "labelCssClass"], exportAs: ["kendoLabel"] }, { kind: "component", type: TextBoxComponent, selector: "kendo-textbox", inputs: ["focusableId", "title", "type", "disabled", "readonly", "tabindex", "value", "selectOnFocus", "showSuccessIcon", "showErrorIcon", "clearButton", "successIcon", "successSvgIcon", "errorIcon", "errorSvgIcon", "clearButtonIcon", "clearButtonSvgIcon", "size", "rounded", "fillMode", "tabIndex", "placeholder", "maxlength", "inputAttributes"], outputs: ["valueChange", "inputFocus", "inputBlur", "focus", "blur"], exportAs: ["kendoTextBox"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
|
|
910
|
+
}
|
|
911
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ImageDialogComponent, decorators: [{
|
|
900
912
|
type: Component,
|
|
901
913
|
args: [{
|
|
902
914
|
template: `
|
|
@@ -976,15 +988,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
976
988
|
* @hidden
|
|
977
989
|
*/
|
|
978
990
|
class FileLinkDialogComponent extends DialogContentBase {
|
|
991
|
+
dialog;
|
|
992
|
+
localization;
|
|
993
|
+
editor;
|
|
994
|
+
command;
|
|
995
|
+
hrefInput;
|
|
996
|
+
linkForm = new FormGroup({
|
|
997
|
+
'href': new FormControl('', Validators.required),
|
|
998
|
+
'text': new FormControl({ value: '', disabled: true }, Validators.required),
|
|
999
|
+
'title': new FormControl('')
|
|
1000
|
+
});
|
|
979
1001
|
constructor(dialog, localization) {
|
|
980
1002
|
super(dialog);
|
|
981
1003
|
this.dialog = dialog;
|
|
982
1004
|
this.localization = localization;
|
|
983
|
-
this.linkForm = new FormGroup({
|
|
984
|
-
'href': new FormControl('', Validators.required),
|
|
985
|
-
'text': new FormControl({ value: '', disabled: true }, Validators.required),
|
|
986
|
-
'title': new FormControl('')
|
|
987
|
-
});
|
|
988
1005
|
}
|
|
989
1006
|
onCancelAction() {
|
|
990
1007
|
this.dialog.close();
|
|
@@ -1054,9 +1071,8 @@ class FileLinkDialogComponent extends DialogContentBase {
|
|
|
1054
1071
|
}
|
|
1055
1072
|
return linkData;
|
|
1056
1073
|
}
|
|
1057
|
-
}
|
|
1058
|
-
|
|
1059
|
-
FileLinkDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: FileLinkDialogComponent, isStandalone: true, selector: "ng-component", inputs: { editor: "editor", command: "command" }, viewQueries: [{ propertyName: "hrefInput", first: true, predicate: ["hrefInput"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
1074
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FileLinkDialogComponent, deps: [{ token: i1$1.DialogRef }, { token: EditorLocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1075
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: FileLinkDialogComponent, isStandalone: true, selector: "ng-component", inputs: { editor: "editor", command: "command" }, viewQueries: [{ propertyName: "hrefInput", first: true, predicate: ["hrefInput"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
1060
1076
|
<kendo-dialog-titlebar (close)="onCancelAction()">
|
|
1061
1077
|
{{ titleText }}
|
|
1062
1078
|
</kendo-dialog-titlebar>
|
|
@@ -1122,8 +1138,9 @@ FileLinkDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0"
|
|
|
1122
1138
|
(click)="onCancelAction()"
|
|
1123
1139
|
>{{ textFor('dialogCancel') }}</button>
|
|
1124
1140
|
</kendo-dialog-actions>
|
|
1125
|
-
`, isInline: true, dependencies: [{ kind: "component", type: DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: FormFieldComponent, selector: "kendo-formfield", inputs: ["showHints", "orientation", "showErrors"] }, { kind: "component", type: LabelComponent, selector: "kendo-label", inputs: ["text", "for", "optional", "labelCssStyle", "labelCssClass"], exportAs: ["kendoLabel"] }, { kind: "component", type: TextBoxComponent, selector: "kendo-textbox", inputs: ["focusableId", "title", "type", "disabled", "readonly", "tabindex", "value", "selectOnFocus", "showSuccessIcon", "showErrorIcon", "clearButton", "successIcon", "successSvgIcon", "errorIcon", "errorSvgIcon", "clearButtonIcon", "clearButtonSvgIcon", "size", "rounded", "fillMode", "tabIndex", "placeholder", "maxlength", "inputAttributes"], outputs: ["valueChange", "inputFocus", "inputBlur", "focus", "blur"], exportAs: ["kendoTextBox"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: CheckBoxDirective, selector: "input[kendoCheckBox]", inputs: ["size", "rounded"] }, { kind: "directive", type: LabelDirective, selector: "label[for]", inputs: ["for", "labelClass"] }, { kind: "component", type: DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]
|
|
1126
|
-
|
|
1141
|
+
`, isInline: true, dependencies: [{ kind: "component", type: DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: FormFieldComponent, selector: "kendo-formfield", inputs: ["showHints", "orientation", "showErrors"] }, { kind: "component", type: LabelComponent, selector: "kendo-label", inputs: ["text", "for", "optional", "labelCssStyle", "labelCssClass"], exportAs: ["kendoLabel"] }, { kind: "component", type: TextBoxComponent, selector: "kendo-textbox", inputs: ["focusableId", "title", "type", "disabled", "readonly", "tabindex", "value", "selectOnFocus", "showSuccessIcon", "showErrorIcon", "clearButton", "successIcon", "successSvgIcon", "errorIcon", "errorSvgIcon", "clearButtonIcon", "clearButtonSvgIcon", "size", "rounded", "fillMode", "tabIndex", "placeholder", "maxlength", "inputAttributes"], outputs: ["valueChange", "inputFocus", "inputBlur", "focus", "blur"], exportAs: ["kendoTextBox"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: CheckBoxDirective, selector: "input[kendoCheckBox]", inputs: ["size", "rounded"] }, { kind: "directive", type: LabelDirective, selector: "label[for]", inputs: ["for", "labelClass"] }, { kind: "component", type: DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
|
|
1142
|
+
}
|
|
1143
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FileLinkDialogComponent, decorators: [{
|
|
1127
1144
|
type: Component,
|
|
1128
1145
|
args: [{
|
|
1129
1146
|
template: `
|
|
@@ -1525,10 +1542,11 @@ const EditorErrorMessages = {
|
|
|
1525
1542
|
* @hidden
|
|
1526
1543
|
*/
|
|
1527
1544
|
class ProviderService {
|
|
1545
|
+
editor;
|
|
1546
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ProviderService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1547
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ProviderService });
|
|
1528
1548
|
}
|
|
1529
|
-
|
|
1530
|
-
ProviderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ProviderService });
|
|
1531
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ProviderService, decorators: [{
|
|
1549
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ProviderService, decorators: [{
|
|
1532
1550
|
type: Injectable
|
|
1533
1551
|
}] });
|
|
1534
1552
|
|
|
@@ -1536,14 +1554,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1536
1554
|
* @hidden
|
|
1537
1555
|
*/
|
|
1538
1556
|
class EditorToolsService {
|
|
1557
|
+
zone;
|
|
1558
|
+
needsCheck = new Subject();
|
|
1539
1559
|
constructor(zone) {
|
|
1540
1560
|
this.zone = zone;
|
|
1541
|
-
this.needsCheck = new Subject();
|
|
1542
1561
|
}
|
|
1562
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorToolsService, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1563
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorToolsService });
|
|
1543
1564
|
}
|
|
1544
|
-
|
|
1545
|
-
EditorToolsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EditorToolsService });
|
|
1546
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EditorToolsService, decorators: [{
|
|
1565
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorToolsService, decorators: [{
|
|
1547
1566
|
type: Injectable
|
|
1548
1567
|
}], ctorParameters: function () { return [{ type: i0.NgZone }]; } });
|
|
1549
1568
|
|
|
@@ -1551,9 +1570,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1551
1570
|
* @hidden
|
|
1552
1571
|
*/
|
|
1553
1572
|
class PreventableEvent {
|
|
1554
|
-
|
|
1555
|
-
this.prevented = false;
|
|
1556
|
-
}
|
|
1573
|
+
prevented = false;
|
|
1557
1574
|
/**
|
|
1558
1575
|
* Prevents the default action for a specified event.
|
|
1559
1576
|
* In this way, the source component suppresses the built-in behavior that follows the event.
|
|
@@ -1575,6 +1592,18 @@ class PreventableEvent {
|
|
|
1575
1592
|
* The Editor [`paste`]({% slug api_editor_editorcomponent %}#toc-paste) event.
|
|
1576
1593
|
*/
|
|
1577
1594
|
class EditorPasteEvent extends PreventableEvent {
|
|
1595
|
+
/**
|
|
1596
|
+
* The HTML content cleaned in accordance with the [`PasteCleanupSettings`]({% slug paste_cleanup %}).
|
|
1597
|
+
*/
|
|
1598
|
+
cleanedHtml;
|
|
1599
|
+
/**
|
|
1600
|
+
* The raw pasted content.
|
|
1601
|
+
*/
|
|
1602
|
+
originalHtml;
|
|
1603
|
+
/**
|
|
1604
|
+
* The original DOM event.
|
|
1605
|
+
*/
|
|
1606
|
+
originalEvent;
|
|
1578
1607
|
/**
|
|
1579
1608
|
* Constructs the event arguments for the `paste` event.
|
|
1580
1609
|
* @hidden
|
|
@@ -1681,6 +1710,12 @@ const MY_TOKEN = new InjectionToken('COMMAND_TOKEN');
|
|
|
1681
1710
|
* @hidden
|
|
1682
1711
|
*/
|
|
1683
1712
|
class EditorCommandBaseDirective {
|
|
1713
|
+
command;
|
|
1714
|
+
button;
|
|
1715
|
+
localization;
|
|
1716
|
+
toolsService;
|
|
1717
|
+
subs;
|
|
1718
|
+
editor;
|
|
1684
1719
|
constructor(command, button, localization, providerService, toolsService) {
|
|
1685
1720
|
this.command = command;
|
|
1686
1721
|
this.button = button;
|
|
@@ -1721,10 +1756,10 @@ class EditorCommandBaseDirective {
|
|
|
1721
1756
|
clickHandler() { }
|
|
1722
1757
|
pointerdownHandler(_event) { }
|
|
1723
1758
|
onStateChange(_toolBarState) { }
|
|
1759
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorCommandBaseDirective, deps: [{ token: MY_TOKEN }, { token: i1$2.ToolBarButtonComponent }, { token: i1.LocalizationService }, { token: ProviderService }, { token: EditorToolsService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1760
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: EditorCommandBaseDirective, selector: "[kendoEditorCommandBase]", ngImport: i0 });
|
|
1724
1761
|
}
|
|
1725
|
-
|
|
1726
|
-
EditorCommandBaseDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: EditorCommandBaseDirective, selector: "[kendoEditorCommandBase]", ngImport: i0 });
|
|
1727
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EditorCommandBaseDirective, decorators: [{
|
|
1762
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorCommandBaseDirective, decorators: [{
|
|
1728
1763
|
type: Directive,
|
|
1729
1764
|
args: [{
|
|
1730
1765
|
selector: '[kendoEditorCommandBase]'
|
|
@@ -1738,6 +1773,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1738
1773
|
* @hidden
|
|
1739
1774
|
*/
|
|
1740
1775
|
class EditorCommandDialog extends EditorCommandBaseDirective {
|
|
1776
|
+
dialog;
|
|
1777
|
+
button;
|
|
1778
|
+
localization;
|
|
1779
|
+
providerService;
|
|
1780
|
+
toolsService;
|
|
1741
1781
|
constructor(dialog, button, localization, providerService, toolsService) {
|
|
1742
1782
|
super(dialog, button, localization, providerService, toolsService);
|
|
1743
1783
|
this.dialog = dialog;
|
|
@@ -1771,10 +1811,10 @@ class EditorInsertImageButtonDirective extends EditorCommandDialog {
|
|
|
1771
1811
|
constructor(button, localization, providerService, toolsService) {
|
|
1772
1812
|
super('insertImage', button, localization, providerService, toolsService);
|
|
1773
1813
|
}
|
|
1814
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorInsertImageButtonDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: EditorLocalizationService }, { token: ProviderService }, { token: EditorToolsService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1815
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: EditorInsertImageButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorInsertImageButton]", usesInheritance: true, ngImport: i0 });
|
|
1774
1816
|
}
|
|
1775
|
-
|
|
1776
|
-
EditorInsertImageButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: EditorInsertImageButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorInsertImageButton]", usesInheritance: true, ngImport: i0 });
|
|
1777
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EditorInsertImageButtonDirective, decorators: [{
|
|
1817
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorInsertImageButtonDirective, decorators: [{
|
|
1778
1818
|
type: Directive,
|
|
1779
1819
|
args: [{
|
|
1780
1820
|
selector: 'kendo-toolbar-button[kendoEditorInsertImageButton]',
|
|
@@ -1786,6 +1826,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1786
1826
|
* @hidden
|
|
1787
1827
|
*/
|
|
1788
1828
|
class EditorCommandButton extends EditorCommandBaseDirective {
|
|
1829
|
+
command;
|
|
1830
|
+
button;
|
|
1831
|
+
localization;
|
|
1832
|
+
providerService;
|
|
1833
|
+
toolsService;
|
|
1789
1834
|
constructor(command, button, localization, providerService, toolsService) {
|
|
1790
1835
|
super(command, button, localization, providerService, toolsService);
|
|
1791
1836
|
this.command = command;
|
|
@@ -1824,10 +1869,10 @@ class EditorUnlinkButtonDirective extends EditorCommandButton {
|
|
|
1824
1869
|
constructor(button, localization, providerService, toolsService) {
|
|
1825
1870
|
super('unlink', button, localization, providerService, toolsService);
|
|
1826
1871
|
}
|
|
1872
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorUnlinkButtonDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: EditorLocalizationService }, { token: ProviderService }, { token: EditorToolsService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1873
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: EditorUnlinkButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorUnlinkButton]", usesInheritance: true, ngImport: i0 });
|
|
1827
1874
|
}
|
|
1828
|
-
|
|
1829
|
-
EditorUnlinkButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: EditorUnlinkButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorUnlinkButton]", usesInheritance: true, ngImport: i0 });
|
|
1830
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EditorUnlinkButtonDirective, decorators: [{
|
|
1875
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorUnlinkButtonDirective, decorators: [{
|
|
1831
1876
|
type: Directive,
|
|
1832
1877
|
args: [{
|
|
1833
1878
|
selector: 'kendo-toolbar-button[kendoEditorUnlinkButton]',
|
|
@@ -1850,10 +1895,10 @@ class EditorCreateLinkButtonDirective extends EditorCommandDialog {
|
|
|
1850
1895
|
constructor(button, localization, providerService, toolsService) {
|
|
1851
1896
|
super('createLink', button, localization, providerService, toolsService);
|
|
1852
1897
|
}
|
|
1898
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorCreateLinkButtonDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: EditorLocalizationService }, { token: ProviderService }, { token: EditorToolsService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1899
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: EditorCreateLinkButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorCreateLinkButton]", usesInheritance: true, ngImport: i0 });
|
|
1853
1900
|
}
|
|
1854
|
-
|
|
1855
|
-
EditorCreateLinkButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: EditorCreateLinkButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorCreateLinkButton]", usesInheritance: true, ngImport: i0 });
|
|
1856
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EditorCreateLinkButtonDirective, decorators: [{
|
|
1901
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorCreateLinkButtonDirective, decorators: [{
|
|
1857
1902
|
type: Directive,
|
|
1858
1903
|
args: [{
|
|
1859
1904
|
selector: 'kendo-toolbar-button[kendoEditorCreateLinkButton]',
|
|
@@ -1876,10 +1921,10 @@ class EditorOutdentButtonDirective extends EditorCommandButton {
|
|
|
1876
1921
|
constructor(button, localization, providerService, toolsService) {
|
|
1877
1922
|
super('outdent', button, localization, providerService, toolsService);
|
|
1878
1923
|
}
|
|
1924
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorOutdentButtonDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: EditorLocalizationService }, { token: ProviderService }, { token: EditorToolsService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1925
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: EditorOutdentButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorOutdentButton]", usesInheritance: true, ngImport: i0 });
|
|
1879
1926
|
}
|
|
1880
|
-
|
|
1881
|
-
EditorOutdentButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: EditorOutdentButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorOutdentButton]", usesInheritance: true, ngImport: i0 });
|
|
1882
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EditorOutdentButtonDirective, decorators: [{
|
|
1927
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorOutdentButtonDirective, decorators: [{
|
|
1883
1928
|
type: Directive,
|
|
1884
1929
|
args: [{
|
|
1885
1930
|
selector: 'kendo-toolbar-button[kendoEditorOutdentButton]',
|
|
@@ -1902,10 +1947,10 @@ class EditorIndentButtonDirective extends EditorCommandButton {
|
|
|
1902
1947
|
constructor(button, localization, providerService, toolsService) {
|
|
1903
1948
|
super('indent', button, localization, providerService, toolsService);
|
|
1904
1949
|
}
|
|
1950
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorIndentButtonDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: EditorLocalizationService }, { token: ProviderService }, { token: EditorToolsService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1951
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: EditorIndentButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorIndentButton]", usesInheritance: true, ngImport: i0 });
|
|
1905
1952
|
}
|
|
1906
|
-
|
|
1907
|
-
EditorIndentButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: EditorIndentButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorIndentButton]", usesInheritance: true, ngImport: i0 });
|
|
1908
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EditorIndentButtonDirective, decorators: [{
|
|
1953
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorIndentButtonDirective, decorators: [{
|
|
1909
1954
|
type: Directive,
|
|
1910
1955
|
args: [{
|
|
1911
1956
|
selector: 'kendo-toolbar-button[kendoEditorIndentButton]',
|
|
@@ -1928,10 +1973,10 @@ class EditorInsertOrderedListButtonDirective extends EditorCommandButton {
|
|
|
1928
1973
|
constructor(button, localization, providerService, toolsService) {
|
|
1929
1974
|
super('insertOrderedList', button, localization, providerService, toolsService);
|
|
1930
1975
|
}
|
|
1976
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorInsertOrderedListButtonDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: EditorLocalizationService }, { token: ProviderService }, { token: EditorToolsService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1977
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: EditorInsertOrderedListButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorInsertOrderedListButton]", usesInheritance: true, ngImport: i0 });
|
|
1931
1978
|
}
|
|
1932
|
-
|
|
1933
|
-
EditorInsertOrderedListButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: EditorInsertOrderedListButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorInsertOrderedListButton]", usesInheritance: true, ngImport: i0 });
|
|
1934
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EditorInsertOrderedListButtonDirective, decorators: [{
|
|
1979
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorInsertOrderedListButtonDirective, decorators: [{
|
|
1935
1980
|
type: Directive,
|
|
1936
1981
|
args: [{
|
|
1937
1982
|
selector: 'kendo-toolbar-button[kendoEditorInsertOrderedListButton]',
|
|
@@ -1954,10 +1999,10 @@ class EditorInsertUnorderedListButtonDirective extends EditorCommandButton {
|
|
|
1954
1999
|
constructor(button, localization, providerService, toolsService) {
|
|
1955
2000
|
super('insertUnorderedList', button, localization, providerService, toolsService);
|
|
1956
2001
|
}
|
|
2002
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorInsertUnorderedListButtonDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: EditorLocalizationService }, { token: ProviderService }, { token: EditorToolsService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2003
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: EditorInsertUnorderedListButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorInsertUnorderedListButton]", usesInheritance: true, ngImport: i0 });
|
|
1957
2004
|
}
|
|
1958
|
-
|
|
1959
|
-
EditorInsertUnorderedListButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: EditorInsertUnorderedListButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorInsertUnorderedListButton]", usesInheritance: true, ngImport: i0 });
|
|
1960
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EditorInsertUnorderedListButtonDirective, decorators: [{
|
|
2005
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorInsertUnorderedListButtonDirective, decorators: [{
|
|
1961
2006
|
type: Directive,
|
|
1962
2007
|
args: [{
|
|
1963
2008
|
selector: 'kendo-toolbar-button[kendoEditorInsertUnorderedListButton]',
|
|
@@ -1980,10 +2025,10 @@ class EditorAlignJustifyButtonDirective extends EditorCommandButton {
|
|
|
1980
2025
|
constructor(button, localization, providerService, toolsService) {
|
|
1981
2026
|
super('alignJustify', button, localization, providerService, toolsService);
|
|
1982
2027
|
}
|
|
2028
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorAlignJustifyButtonDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: EditorLocalizationService }, { token: ProviderService }, { token: EditorToolsService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2029
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: EditorAlignJustifyButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorAlignJustifyButton]", usesInheritance: true, ngImport: i0 });
|
|
1983
2030
|
}
|
|
1984
|
-
|
|
1985
|
-
EditorAlignJustifyButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: EditorAlignJustifyButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorAlignJustifyButton]", usesInheritance: true, ngImport: i0 });
|
|
1986
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EditorAlignJustifyButtonDirective, decorators: [{
|
|
2031
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorAlignJustifyButtonDirective, decorators: [{
|
|
1987
2032
|
type: Directive,
|
|
1988
2033
|
args: [{
|
|
1989
2034
|
selector: 'kendo-toolbar-button[kendoEditorAlignJustifyButton]',
|
|
@@ -2006,10 +2051,10 @@ class EditorAlignRightButtonDirective extends EditorCommandButton {
|
|
|
2006
2051
|
constructor(button, localization, providerService, toolsService) {
|
|
2007
2052
|
super('alignRight', button, localization, providerService, toolsService);
|
|
2008
2053
|
}
|
|
2054
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorAlignRightButtonDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: EditorLocalizationService }, { token: ProviderService }, { token: EditorToolsService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2055
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: EditorAlignRightButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorAlignRightButton]", usesInheritance: true, ngImport: i0 });
|
|
2009
2056
|
}
|
|
2010
|
-
|
|
2011
|
-
EditorAlignRightButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: EditorAlignRightButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorAlignRightButton]", usesInheritance: true, ngImport: i0 });
|
|
2012
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EditorAlignRightButtonDirective, decorators: [{
|
|
2057
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorAlignRightButtonDirective, decorators: [{
|
|
2013
2058
|
type: Directive,
|
|
2014
2059
|
args: [{
|
|
2015
2060
|
selector: 'kendo-toolbar-button[kendoEditorAlignRightButton]',
|
|
@@ -2032,10 +2077,10 @@ class EditorAlignCenterButtonDirective extends EditorCommandButton {
|
|
|
2032
2077
|
constructor(button, localization, providerService, toolsService) {
|
|
2033
2078
|
super('alignCenter', button, localization, providerService, toolsService);
|
|
2034
2079
|
}
|
|
2080
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorAlignCenterButtonDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: EditorLocalizationService }, { token: ProviderService }, { token: EditorToolsService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2081
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: EditorAlignCenterButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorAlignCenterButton]", usesInheritance: true, ngImport: i0 });
|
|
2035
2082
|
}
|
|
2036
|
-
|
|
2037
|
-
EditorAlignCenterButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: EditorAlignCenterButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorAlignCenterButton]", usesInheritance: true, ngImport: i0 });
|
|
2038
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EditorAlignCenterButtonDirective, decorators: [{
|
|
2083
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorAlignCenterButtonDirective, decorators: [{
|
|
2039
2084
|
type: Directive,
|
|
2040
2085
|
args: [{
|
|
2041
2086
|
selector: 'kendo-toolbar-button[kendoEditorAlignCenterButton]',
|
|
@@ -2058,10 +2103,10 @@ class EditorAlignLeftButtonDirective extends EditorCommandButton {
|
|
|
2058
2103
|
constructor(button, localization, providerService, toolsService) {
|
|
2059
2104
|
super('alignLeft', button, localization, providerService, toolsService);
|
|
2060
2105
|
}
|
|
2106
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorAlignLeftButtonDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: EditorLocalizationService }, { token: ProviderService }, { token: EditorToolsService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2107
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: EditorAlignLeftButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorAlignLeftButton]", usesInheritance: true, ngImport: i0 });
|
|
2061
2108
|
}
|
|
2062
|
-
|
|
2063
|
-
EditorAlignLeftButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: EditorAlignLeftButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorAlignLeftButton]", usesInheritance: true, ngImport: i0 });
|
|
2064
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EditorAlignLeftButtonDirective, decorators: [{
|
|
2109
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorAlignLeftButtonDirective, decorators: [{
|
|
2065
2110
|
type: Directive,
|
|
2066
2111
|
args: [{
|
|
2067
2112
|
selector: 'kendo-toolbar-button[kendoEditorAlignLeftButton]',
|
|
@@ -2073,15 +2118,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2073
2118
|
* @hidden
|
|
2074
2119
|
*/
|
|
2075
2120
|
class DropDownToolDirective {
|
|
2121
|
+
hostEl;
|
|
2122
|
+
zone;
|
|
2123
|
+
get hostElement() {
|
|
2124
|
+
return this.hostEl.nativeElement;
|
|
2125
|
+
}
|
|
2076
2126
|
constructor(hostEl, zone) {
|
|
2077
2127
|
this.hostEl = hostEl;
|
|
2078
2128
|
this.zone = zone;
|
|
2079
|
-
this.preventDefault = (event) => {
|
|
2080
|
-
event.preventDefault();
|
|
2081
|
-
};
|
|
2082
|
-
}
|
|
2083
|
-
get hostElement() {
|
|
2084
|
-
return this.hostEl.nativeElement;
|
|
2085
2129
|
}
|
|
2086
2130
|
ngAfterViewInit() {
|
|
2087
2131
|
this.zone.runOutsideAngular(() => {
|
|
@@ -2091,10 +2135,13 @@ class DropDownToolDirective {
|
|
|
2091
2135
|
ngOnDestroy() {
|
|
2092
2136
|
this.hostElement.removeEventListener('pointerdown', this.preventDefault);
|
|
2093
2137
|
}
|
|
2138
|
+
preventDefault = (event) => {
|
|
2139
|
+
event.preventDefault();
|
|
2140
|
+
};
|
|
2141
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DropDownToolDirective, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2142
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: DropDownToolDirective, isStandalone: true, selector: "[kendoEditorDropDownTool]", ngImport: i0 });
|
|
2094
2143
|
}
|
|
2095
|
-
|
|
2096
|
-
DropDownToolDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: DropDownToolDirective, isStandalone: true, selector: "[kendoEditorDropDownTool]", ngImport: i0 });
|
|
2097
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DropDownToolDirective, decorators: [{
|
|
2144
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DropDownToolDirective, decorators: [{
|
|
2098
2145
|
type: Directive,
|
|
2099
2146
|
args: [{
|
|
2100
2147
|
selector: '[kendoEditorDropDownTool]',
|
|
@@ -2106,18 +2153,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2106
2153
|
* @hidden
|
|
2107
2154
|
*/
|
|
2108
2155
|
class FormatDropDownListComponent {
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2156
|
+
data;
|
|
2157
|
+
value;
|
|
2158
|
+
defaultItem;
|
|
2159
|
+
itemDisabled;
|
|
2160
|
+
title;
|
|
2161
|
+
disabled;
|
|
2162
|
+
tabindex;
|
|
2163
|
+
valueChange = new EventEmitter();
|
|
2164
|
+
element;
|
|
2165
|
+
dropDownList;
|
|
2112
2166
|
onValueChange(tag) {
|
|
2113
2167
|
this.valueChange.emit(tag);
|
|
2114
2168
|
}
|
|
2115
2169
|
focus() {
|
|
2116
2170
|
this.dropDownList.focus();
|
|
2117
2171
|
}
|
|
2118
|
-
}
|
|
2119
|
-
|
|
2120
|
-
FormatDropDownListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: FormatDropDownListComponent, isStandalone: true, selector: "kendo-editor-format-dropdownlist", inputs: { data: "data", value: "value", defaultItem: "defaultItem", itemDisabled: "itemDisabled", title: "title", disabled: "disabled", tabindex: "tabindex" }, outputs: { valueChange: "valueChange" }, viewQueries: [{ propertyName: "element", first: true, predicate: ["element"], descendants: true, static: true }, { propertyName: "dropDownList", first: true, predicate: ["element"], descendants: true, read: DropDownListComponent, static: true }], ngImport: i0, template: `
|
|
2172
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormatDropDownListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2173
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: FormatDropDownListComponent, isStandalone: true, selector: "kendo-editor-format-dropdownlist", inputs: { data: "data", value: "value", defaultItem: "defaultItem", itemDisabled: "itemDisabled", title: "title", disabled: "disabled", tabindex: "tabindex" }, outputs: { valueChange: "valueChange" }, viewQueries: [{ propertyName: "element", first: true, predicate: ["element"], descendants: true, static: true }, { propertyName: "dropDownList", first: true, predicate: ["element"], descendants: true, read: DropDownListComponent, static: true }], ngImport: i0, template: `
|
|
2121
2174
|
<kendo-dropdownlist
|
|
2122
2175
|
#element
|
|
2123
2176
|
kendoEditorDropDownTool
|
|
@@ -2169,7 +2222,8 @@ FormatDropDownListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.
|
|
|
2169
2222
|
</ng-template>
|
|
2170
2223
|
</kendo-dropdownlist>
|
|
2171
2224
|
`, isInline: true, dependencies: [{ kind: "component", type: DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["customIconClass", "showStickyHeader", "icon", "svgIcon", "loading", "data", "value", "textField", "valueField", "adaptiveMode", "title", "subtitle", "popupSettings", "listHeight", "defaultItem", "disabled", "itemDisabled", "readonly", "filterable", "virtual", "ignoreCase", "delay", "valuePrimitive", "tabindex", "tabIndex", "size", "rounded", "fillMode", "leftRightArrowsNavigation", "id"], outputs: ["valueChange", "filterChange", "selectionChange", "open", "opened", "close", "closed", "focus", "blur"], exportAs: ["kendoDropDownList"] }, { kind: "directive", type: DropDownToolDirective, selector: "[kendoEditorDropDownTool]" }, { kind: "directive", type: ItemTemplateDirective, selector: "[kendoDropDownListItemTemplate],[kendoComboBoxItemTemplate],[kendoAutoCompleteItemTemplate],[kendoMultiSelectItemTemplate]" }, { kind: "directive", type: NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: NgSwitchDefault, selector: "[ngSwitchDefault]" }] });
|
|
2172
|
-
|
|
2225
|
+
}
|
|
2226
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormatDropDownListComponent, decorators: [{
|
|
2173
2227
|
type: Component,
|
|
2174
2228
|
args: [{
|
|
2175
2229
|
selector: 'kendo-editor-format-dropdownlist',
|
|
@@ -2256,11 +2310,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2256
2310
|
* @hidden
|
|
2257
2311
|
*/
|
|
2258
2312
|
class FormatDialogComponent extends DialogContentBase {
|
|
2313
|
+
dialog;
|
|
2314
|
+
localization;
|
|
2315
|
+
editor;
|
|
2316
|
+
formatDropDownList;
|
|
2317
|
+
data = [];
|
|
2318
|
+
defaultItem;
|
|
2319
|
+
value;
|
|
2320
|
+
itemDisabled;
|
|
2259
2321
|
constructor(dialog, localization) {
|
|
2260
2322
|
super(dialog);
|
|
2261
2323
|
this.dialog = dialog;
|
|
2262
2324
|
this.localization = localization;
|
|
2263
|
-
this.data = [];
|
|
2264
2325
|
}
|
|
2265
2326
|
onCancelAction() {
|
|
2266
2327
|
this.dialog.close();
|
|
@@ -2281,9 +2342,8 @@ class FormatDialogComponent extends DialogContentBase {
|
|
|
2281
2342
|
textFor(key) {
|
|
2282
2343
|
return this.localization.get(key);
|
|
2283
2344
|
}
|
|
2284
|
-
}
|
|
2285
|
-
|
|
2286
|
-
FormatDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: FormatDialogComponent, isStandalone: true, selector: "ng-component", inputs: { editor: "editor" }, viewQueries: [{ propertyName: "formatDropDownList", first: true, predicate: ["formatDropDownList"], descendants: true, read: FormatDropDownListComponent, static: true }], usesInheritance: true, ngImport: i0, template: `
|
|
2345
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormatDialogComponent, deps: [{ token: i1$1.DialogRef }, { token: EditorLocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2346
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: FormatDialogComponent, isStandalone: true, selector: "ng-component", inputs: { editor: "editor" }, viewQueries: [{ propertyName: "formatDropDownList", first: true, predicate: ["formatDropDownList"], descendants: true, read: FormatDropDownListComponent, static: true }], usesInheritance: true, ngImport: i0, template: `
|
|
2287
2347
|
<kendo-dialog-titlebar (close)="onCancelAction()">
|
|
2288
2348
|
{{ textFor('format') }}
|
|
2289
2349
|
</kendo-dialog-titlebar>
|
|
@@ -2308,8 +2368,9 @@ FormatDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0",
|
|
|
2308
2368
|
(click)="onCancelAction()"
|
|
2309
2369
|
>{{ textFor('dialogCancel') }}</button>
|
|
2310
2370
|
</kendo-dialog-actions>
|
|
2311
|
-
`, isInline: true, dependencies: [{ kind: "component", type: DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { kind: "component", type: FormatDropDownListComponent, selector: "kendo-editor-format-dropdownlist", inputs: ["data", "value", "defaultItem", "itemDisabled", "title", "disabled", "tabindex"], outputs: ["valueChange"] }, { kind: "component", type: DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]
|
|
2312
|
-
|
|
2371
|
+
`, isInline: true, dependencies: [{ kind: "component", type: DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { kind: "component", type: FormatDropDownListComponent, selector: "kendo-editor-format-dropdownlist", inputs: ["data", "value", "defaultItem", "itemDisabled", "title", "disabled", "tabindex"], outputs: ["valueChange"] }, { kind: "component", type: DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
|
|
2372
|
+
}
|
|
2373
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormatDialogComponent, decorators: [{
|
|
2313
2374
|
type: Component,
|
|
2314
2375
|
args: [{
|
|
2315
2376
|
template: `
|
|
@@ -2360,31 +2421,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2360
2421
|
* ```
|
|
2361
2422
|
*/
|
|
2362
2423
|
class EditorFormatComponent extends ToolBarToolComponent {
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
* Fires when the user updates the value of the drop-down list.
|
|
2373
|
-
*/
|
|
2374
|
-
this.valueChange = new EventEmitter();
|
|
2375
|
-
this._data = [
|
|
2376
|
-
{ text: 'Paragraph', tag: 'p' },
|
|
2377
|
-
{ text: 'Heading 1', tag: 'h1' },
|
|
2378
|
-
{ text: 'Heading 2', tag: 'h2' },
|
|
2379
|
-
{ text: 'Heading 3', tag: 'h3' },
|
|
2380
|
-
{ text: 'Heading 4', tag: 'h4' },
|
|
2381
|
-
{ text: 'Heading 5', tag: 'h5' },
|
|
2382
|
-
{ text: 'Heading 6', tag: 'h6' }
|
|
2383
|
-
];
|
|
2384
|
-
this.applyFormatSVGIcon = applyFormatIcon;
|
|
2385
|
-
this.editor = providerService.editor;
|
|
2386
|
-
this.isBuiltInTool = true;
|
|
2387
|
-
}
|
|
2424
|
+
dialogService;
|
|
2425
|
+
localization;
|
|
2426
|
+
toolsService;
|
|
2427
|
+
renderer;
|
|
2428
|
+
value;
|
|
2429
|
+
defaultItem;
|
|
2430
|
+
itemDisabled;
|
|
2431
|
+
disabled = false;
|
|
2432
|
+
tabindex = -1;
|
|
2388
2433
|
/**
|
|
2389
2434
|
* Overrides the default format items list.
|
|
2390
2435
|
*/
|
|
@@ -2394,6 +2439,33 @@ class EditorFormatComponent extends ToolBarToolComponent {
|
|
|
2394
2439
|
get data() {
|
|
2395
2440
|
return this._data;
|
|
2396
2441
|
}
|
|
2442
|
+
/**
|
|
2443
|
+
* Fires when the user updates the value of the drop-down list.
|
|
2444
|
+
*/
|
|
2445
|
+
valueChange = new EventEmitter();
|
|
2446
|
+
formatDropDownList;
|
|
2447
|
+
formatButton;
|
|
2448
|
+
subs;
|
|
2449
|
+
_data = [
|
|
2450
|
+
{ text: 'Paragraph', tag: 'p' },
|
|
2451
|
+
{ text: 'Heading 1', tag: 'h1' },
|
|
2452
|
+
{ text: 'Heading 2', tag: 'h2' },
|
|
2453
|
+
{ text: 'Heading 3', tag: 'h3' },
|
|
2454
|
+
{ text: 'Heading 4', tag: 'h4' },
|
|
2455
|
+
{ text: 'Heading 5', tag: 'h5' },
|
|
2456
|
+
{ text: 'Heading 6', tag: 'h6' }
|
|
2457
|
+
];
|
|
2458
|
+
applyFormatSVGIcon = applyFormatIcon;
|
|
2459
|
+
editor;
|
|
2460
|
+
constructor(dialogService, localization, providerService, toolsService, renderer) {
|
|
2461
|
+
super();
|
|
2462
|
+
this.dialogService = dialogService;
|
|
2463
|
+
this.localization = localization;
|
|
2464
|
+
this.toolsService = toolsService;
|
|
2465
|
+
this.renderer = renderer;
|
|
2466
|
+
this.editor = providerService.editor;
|
|
2467
|
+
this.isBuiltInTool = true;
|
|
2468
|
+
}
|
|
2397
2469
|
ngOnInit() {
|
|
2398
2470
|
this.itemDisabled = (itemArgs) => {
|
|
2399
2471
|
if (!this.overflows && this.formatDropDownList && !this.formatDropDownList.dropDownList.isOpen) {
|
|
@@ -2483,9 +2555,8 @@ class EditorFormatComponent extends ToolBarToolComponent {
|
|
|
2483
2555
|
this.tabindex = -1;
|
|
2484
2556
|
return false;
|
|
2485
2557
|
}
|
|
2486
|
-
}
|
|
2487
|
-
|
|
2488
|
-
EditorFormatComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: EditorFormatComponent, isStandalone: true, selector: "kendo-toolbar-dropdownlist[kendoEditorFormat]", inputs: { data: "data" }, outputs: { valueChange: "valueChange" }, providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => EditorFormatComponent) }], viewQueries: [{ propertyName: "toolbarTemplate", first: true, predicate: ["toolbarTemplate"], descendants: true, static: true }, { propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true, static: true }, { propertyName: "formatDropDownList", first: true, predicate: ["formatDropDownList"], descendants: true }, { propertyName: "formatButton", first: true, predicate: ["formatButton"], descendants: true, read: ElementRef }], usesInheritance: true, ngImport: i0, template: `
|
|
2558
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorFormatComponent, deps: [{ token: i1$1.DialogService }, { token: EditorLocalizationService }, { token: ProviderService }, { token: EditorToolsService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
2559
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: EditorFormatComponent, isStandalone: true, selector: "kendo-toolbar-dropdownlist[kendoEditorFormat]", inputs: { data: "data" }, outputs: { valueChange: "valueChange" }, providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => EditorFormatComponent) }], viewQueries: [{ propertyName: "formatDropDownList", first: true, predicate: ["formatDropDownList"], descendants: true }, { propertyName: "formatButton", first: true, predicate: ["formatButton"], descendants: true, read: ElementRef }], usesInheritance: true, ngImport: i0, template: `
|
|
2489
2560
|
<ng-template #toolbarTemplate>
|
|
2490
2561
|
<kendo-editor-format-dropdownlist
|
|
2491
2562
|
#formatDropDownList
|
|
@@ -2515,7 +2586,8 @@ EditorFormatComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0",
|
|
|
2515
2586
|
</div>
|
|
2516
2587
|
</ng-template>
|
|
2517
2588
|
`, isInline: true, dependencies: [{ kind: "component", type: FormatDropDownListComponent, selector: "kendo-editor-format-dropdownlist", inputs: ["data", "value", "defaultItem", "itemDisabled", "title", "disabled", "tabindex"], outputs: ["valueChange"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
2518
|
-
|
|
2589
|
+
}
|
|
2590
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorFormatComponent, decorators: [{
|
|
2519
2591
|
type: Component,
|
|
2520
2592
|
args: [{
|
|
2521
2593
|
providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => EditorFormatComponent) }],
|
|
@@ -2557,12 +2629,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2557
2629
|
type: Input
|
|
2558
2630
|
}], valueChange: [{
|
|
2559
2631
|
type: Output
|
|
2560
|
-
}], toolbarTemplate: [{
|
|
2561
|
-
type: ViewChild,
|
|
2562
|
-
args: ['toolbarTemplate', { static: true }]
|
|
2563
|
-
}], popupTemplate: [{
|
|
2564
|
-
type: ViewChild,
|
|
2565
|
-
args: ['popupTemplate', { static: true }]
|
|
2566
2632
|
}], formatDropDownList: [{
|
|
2567
2633
|
type: ViewChild,
|
|
2568
2634
|
args: ['formatDropDownList']
|
|
@@ -2586,10 +2652,10 @@ class EditorUnderlineButtonDirective extends EditorCommandButton {
|
|
|
2586
2652
|
constructor(button, localization, providerService, toolsService) {
|
|
2587
2653
|
super('underline', button, localization, providerService, toolsService);
|
|
2588
2654
|
}
|
|
2655
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorUnderlineButtonDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: EditorLocalizationService }, { token: ProviderService }, { token: EditorToolsService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2656
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: EditorUnderlineButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorUnderlineButton]", usesInheritance: true, ngImport: i0 });
|
|
2589
2657
|
}
|
|
2590
|
-
|
|
2591
|
-
EditorUnderlineButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: EditorUnderlineButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorUnderlineButton]", usesInheritance: true, ngImport: i0 });
|
|
2592
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EditorUnderlineButtonDirective, decorators: [{
|
|
2658
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorUnderlineButtonDirective, decorators: [{
|
|
2593
2659
|
type: Directive,
|
|
2594
2660
|
args: [{
|
|
2595
2661
|
selector: 'kendo-toolbar-button[kendoEditorUnderlineButton]',
|
|
@@ -2612,10 +2678,10 @@ class EditorItalicButtonDirective extends EditorCommandButton {
|
|
|
2612
2678
|
constructor(button, localization, providerService, toolsService) {
|
|
2613
2679
|
super('italic', button, localization, providerService, toolsService);
|
|
2614
2680
|
}
|
|
2681
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorItalicButtonDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: EditorLocalizationService }, { token: ProviderService }, { token: EditorToolsService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2682
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: EditorItalicButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorItalicButton]", usesInheritance: true, ngImport: i0 });
|
|
2615
2683
|
}
|
|
2616
|
-
|
|
2617
|
-
EditorItalicButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: EditorItalicButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorItalicButton]", usesInheritance: true, ngImport: i0 });
|
|
2618
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EditorItalicButtonDirective, decorators: [{
|
|
2684
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorItalicButtonDirective, decorators: [{
|
|
2619
2685
|
type: Directive,
|
|
2620
2686
|
args: [{
|
|
2621
2687
|
selector: 'kendo-toolbar-button[kendoEditorItalicButton]',
|
|
@@ -2638,10 +2704,10 @@ class EditorBoldButtonDirective extends EditorCommandButton {
|
|
|
2638
2704
|
constructor(button, localization, providerService, toolsService) {
|
|
2639
2705
|
super('bold', button, localization, providerService, toolsService);
|
|
2640
2706
|
}
|
|
2707
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorBoldButtonDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: EditorLocalizationService }, { token: ProviderService }, { token: EditorToolsService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2708
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: EditorBoldButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorBoldButton]", usesInheritance: true, ngImport: i0 });
|
|
2641
2709
|
}
|
|
2642
|
-
|
|
2643
|
-
EditorBoldButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: EditorBoldButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorBoldButton]", usesInheritance: true, ngImport: i0 });
|
|
2644
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EditorBoldButtonDirective, decorators: [{
|
|
2710
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorBoldButtonDirective, decorators: [{
|
|
2645
2711
|
type: Directive,
|
|
2646
2712
|
args: [{
|
|
2647
2713
|
selector: 'kendo-toolbar-button[kendoEditorBoldButton]',
|
|
@@ -2653,10 +2719,242 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2653
2719
|
* @hidden
|
|
2654
2720
|
*/
|
|
2655
2721
|
class MessagesDirective extends ComponentMessages {
|
|
2722
|
+
/* Section of Tools Messages */
|
|
2723
|
+
/**
|
|
2724
|
+
* The title of the tool that aligns text in the center.
|
|
2725
|
+
*/
|
|
2726
|
+
alignCenter;
|
|
2727
|
+
/**
|
|
2728
|
+
* The title of the tool that justifies text both left and right.
|
|
2729
|
+
*/
|
|
2730
|
+
alignJustify;
|
|
2731
|
+
/**
|
|
2732
|
+
* The title of the tool that aligns text on the left.
|
|
2733
|
+
*/
|
|
2734
|
+
alignLeft;
|
|
2735
|
+
/**
|
|
2736
|
+
* The title of the tool that aligns text on the right.
|
|
2737
|
+
*/
|
|
2738
|
+
alignRight;
|
|
2739
|
+
/**
|
|
2740
|
+
* The title of the tool that changes the text background color.
|
|
2741
|
+
*/
|
|
2742
|
+
backColor;
|
|
2743
|
+
/**
|
|
2744
|
+
* The title of the tool that wraps an element in a blockquote.
|
|
2745
|
+
*/
|
|
2746
|
+
blockquote;
|
|
2747
|
+
/**
|
|
2748
|
+
* The title of the tool that makes text bold.
|
|
2749
|
+
*/
|
|
2750
|
+
bold;
|
|
2751
|
+
/**
|
|
2752
|
+
* The title of the Clean Formatting tool.
|
|
2753
|
+
*/
|
|
2754
|
+
cleanFormatting;
|
|
2755
|
+
/**
|
|
2756
|
+
* The title of the tool that creates hyperlinks.
|
|
2757
|
+
*/
|
|
2758
|
+
createLink;
|
|
2759
|
+
/**
|
|
2760
|
+
* The title of the tool that changes the text font.
|
|
2761
|
+
*/
|
|
2762
|
+
fontFamily;
|
|
2763
|
+
/**
|
|
2764
|
+
* The title of the tool that changes the text size.
|
|
2765
|
+
*/
|
|
2766
|
+
fontSize;
|
|
2767
|
+
/**
|
|
2768
|
+
* The title of the tool that changes the text color.
|
|
2769
|
+
*/
|
|
2770
|
+
foreColor;
|
|
2771
|
+
/**
|
|
2772
|
+
* The title of the tool that lets users choose block formats.
|
|
2773
|
+
*/
|
|
2774
|
+
format;
|
|
2775
|
+
/**
|
|
2776
|
+
* The title of the tool that indents the content.
|
|
2777
|
+
*/
|
|
2778
|
+
indent;
|
|
2779
|
+
/**
|
|
2780
|
+
* The title of the tool that inserts links to files.
|
|
2781
|
+
*/
|
|
2782
|
+
insertFile;
|
|
2783
|
+
/**
|
|
2784
|
+
* The title of the tool that inserts images.
|
|
2785
|
+
*/
|
|
2786
|
+
insertImage;
|
|
2787
|
+
/**
|
|
2788
|
+
* The title of the tool that inserts an ordered list.
|
|
2789
|
+
*/
|
|
2790
|
+
insertOrderedList;
|
|
2791
|
+
/**
|
|
2792
|
+
* The title of the tool that inserts an unordered list.
|
|
2793
|
+
*/
|
|
2794
|
+
insertUnorderedList;
|
|
2795
|
+
/**
|
|
2796
|
+
* The title of the tool that makes text italicized.
|
|
2797
|
+
*/
|
|
2798
|
+
italic;
|
|
2799
|
+
/**
|
|
2800
|
+
* The title of the tool that outdents the content.
|
|
2801
|
+
*/
|
|
2802
|
+
outdent;
|
|
2803
|
+
/**
|
|
2804
|
+
* The title of the print tool.
|
|
2805
|
+
*/
|
|
2806
|
+
print;
|
|
2807
|
+
/**
|
|
2808
|
+
* The title of the tool that redos the last action.
|
|
2809
|
+
*/
|
|
2810
|
+
redo;
|
|
2811
|
+
/**
|
|
2812
|
+
* The title of the tool that selects all content.
|
|
2813
|
+
*/
|
|
2814
|
+
selectAll;
|
|
2815
|
+
/**
|
|
2816
|
+
* The title of the tool that strikes through text.
|
|
2817
|
+
*/
|
|
2818
|
+
strikethrough;
|
|
2819
|
+
/**
|
|
2820
|
+
* The title of the tool that makes text subscript.
|
|
2821
|
+
*/
|
|
2822
|
+
subscript;
|
|
2823
|
+
/**
|
|
2824
|
+
* The title of the tool that makes text superscript.
|
|
2825
|
+
*/
|
|
2826
|
+
superscript;
|
|
2827
|
+
/**
|
|
2828
|
+
* The title of the tool that underlines text.
|
|
2829
|
+
*/
|
|
2830
|
+
underline;
|
|
2831
|
+
/**
|
|
2832
|
+
* The title of the tool that undos the last action.
|
|
2833
|
+
*/
|
|
2834
|
+
undo;
|
|
2835
|
+
/**
|
|
2836
|
+
* The title of the tool that removes hyperlinks.
|
|
2837
|
+
*/
|
|
2838
|
+
unlink;
|
|
2839
|
+
/**
|
|
2840
|
+
* The title of the tool that shows the editor value as HTML.
|
|
2841
|
+
*/
|
|
2842
|
+
viewSource;
|
|
2843
|
+
/**
|
|
2844
|
+
* The title of the tool that inserts table.
|
|
2845
|
+
*/
|
|
2846
|
+
insertTable;
|
|
2847
|
+
/**
|
|
2848
|
+
* The caption for the hint in the insert table tool.
|
|
2849
|
+
*
|
|
2850
|
+
* The message consists of several parts - the amount of rows, the amount of columns, an `x` separator, and a localizable string.
|
|
2851
|
+
* To allow for reordering its parts, the `insertTableHint` input accepts a string with placeholders for the selected rows, selected columns
|
|
2852
|
+
* and the separator. The `{rows}` and `{columns}` placeholders will be replaced internally with the respective actual values. The `{x}` placeholder
|
|
2853
|
+
* shows a separator only when rows and columns are selected.
|
|
2854
|
+
*/
|
|
2855
|
+
insertTableHint;
|
|
2856
|
+
/**
|
|
2857
|
+
* The title of the tool that adds new column before currently selected column.
|
|
2858
|
+
*/
|
|
2859
|
+
addColumnBefore;
|
|
2860
|
+
/**
|
|
2861
|
+
* The title of the tool that adds new column after currently selected column.
|
|
2862
|
+
*/
|
|
2863
|
+
addColumnAfter;
|
|
2864
|
+
/**
|
|
2865
|
+
* The title of the tool that adds new row before currently selected row.
|
|
2866
|
+
*/
|
|
2867
|
+
addRowBefore;
|
|
2868
|
+
/**
|
|
2869
|
+
* The title of the tool that adds new row after currently selected row.
|
|
2870
|
+
*/
|
|
2871
|
+
addRowAfter;
|
|
2872
|
+
/**
|
|
2873
|
+
* The title of the tool that deletes a table column.
|
|
2874
|
+
*/
|
|
2875
|
+
deleteColumn;
|
|
2876
|
+
/**
|
|
2877
|
+
* The title of the tool that deletes a table row.
|
|
2878
|
+
*/
|
|
2879
|
+
deleteRow;
|
|
2880
|
+
/**
|
|
2881
|
+
* The title of the tool that deletes a table.
|
|
2882
|
+
*/
|
|
2883
|
+
deleteTable;
|
|
2884
|
+
/**
|
|
2885
|
+
* The title of the tool that merges the currently selected cells.
|
|
2886
|
+
*/
|
|
2887
|
+
mergeCells;
|
|
2888
|
+
/**
|
|
2889
|
+
* The title of the tool that splits the currently selected cell.
|
|
2890
|
+
*/
|
|
2891
|
+
splitCell;
|
|
2892
|
+
/* End of Tools Messages Section */
|
|
2893
|
+
/* Section of Dialog Messages */
|
|
2894
|
+
/**
|
|
2895
|
+
* The label of the **Apply** button in all Editor dialogs.
|
|
2896
|
+
*/
|
|
2897
|
+
dialogApply;
|
|
2898
|
+
/**
|
|
2899
|
+
* The label of the **Cancel** button in all editor dialogs.
|
|
2900
|
+
*/
|
|
2901
|
+
dialogCancel;
|
|
2902
|
+
/**
|
|
2903
|
+
* The label of the **Insert** button in all editor dialogs.
|
|
2904
|
+
*/
|
|
2905
|
+
dialogInsert;
|
|
2906
|
+
/**
|
|
2907
|
+
* The label of the **Update** button in all editor dialogs.
|
|
2908
|
+
*/
|
|
2909
|
+
dialogUpdate;
|
|
2910
|
+
/**
|
|
2911
|
+
* The caption for the file text in the insertFile dialog.
|
|
2912
|
+
*/
|
|
2913
|
+
fileText;
|
|
2914
|
+
/**
|
|
2915
|
+
* The caption for the file Title in the insertFile dialog.
|
|
2916
|
+
*/
|
|
2917
|
+
fileTitle;
|
|
2918
|
+
/**
|
|
2919
|
+
* The caption for the file URL in the insertFile dialog.
|
|
2920
|
+
*/
|
|
2921
|
+
fileWebAddress;
|
|
2922
|
+
/**
|
|
2923
|
+
* The caption for the image alternate text in the insertImage dialog.
|
|
2924
|
+
*/
|
|
2925
|
+
imageAltText;
|
|
2926
|
+
/**
|
|
2927
|
+
* The caption for the image height in the insertImage dialog.
|
|
2928
|
+
*/
|
|
2929
|
+
imageHeight;
|
|
2930
|
+
/**
|
|
2931
|
+
* The caption for the image URL in the insertImage dialog.
|
|
2932
|
+
*/
|
|
2933
|
+
imageWebAddress;
|
|
2934
|
+
/**
|
|
2935
|
+
* The caption for the image width in the insertImage dialog.
|
|
2936
|
+
*/
|
|
2937
|
+
imageWidth;
|
|
2938
|
+
/**
|
|
2939
|
+
* The caption for the checkbox for opening the link in a new window in the createLink dialog.
|
|
2940
|
+
*/
|
|
2941
|
+
linkOpenInNewWindow;
|
|
2942
|
+
/**
|
|
2943
|
+
* The caption for the link text in the createLink dialog.
|
|
2944
|
+
*/
|
|
2945
|
+
linkText;
|
|
2946
|
+
/**
|
|
2947
|
+
* The caption for the link title in the createLink dialog.
|
|
2948
|
+
*/
|
|
2949
|
+
linkTitle;
|
|
2950
|
+
/**
|
|
2951
|
+
* The caption for the URL in the createLink dialog.
|
|
2952
|
+
*/
|
|
2953
|
+
linkWebAddress;
|
|
2954
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MessagesDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
2955
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: MessagesDirective, selector: "[kendoEditorMessages]", inputs: { alignCenter: "alignCenter", alignJustify: "alignJustify", alignLeft: "alignLeft", alignRight: "alignRight", backColor: "backColor", blockquote: "blockquote", bold: "bold", cleanFormatting: "cleanFormatting", createLink: "createLink", fontFamily: "fontFamily", fontSize: "fontSize", foreColor: "foreColor", format: "format", indent: "indent", insertFile: "insertFile", insertImage: "insertImage", insertOrderedList: "insertOrderedList", insertUnorderedList: "insertUnorderedList", italic: "italic", outdent: "outdent", print: "print", redo: "redo", selectAll: "selectAll", strikethrough: "strikethrough", subscript: "subscript", superscript: "superscript", underline: "underline", undo: "undo", unlink: "unlink", viewSource: "viewSource", insertTable: "insertTable", insertTableHint: "insertTableHint", addColumnBefore: "addColumnBefore", addColumnAfter: "addColumnAfter", addRowBefore: "addRowBefore", addRowAfter: "addRowAfter", deleteColumn: "deleteColumn", deleteRow: "deleteRow", deleteTable: "deleteTable", mergeCells: "mergeCells", splitCell: "splitCell", dialogApply: "dialogApply", dialogCancel: "dialogCancel", dialogInsert: "dialogInsert", dialogUpdate: "dialogUpdate", fileText: "fileText", fileTitle: "fileTitle", fileWebAddress: "fileWebAddress", imageAltText: "imageAltText", imageHeight: "imageHeight", imageWebAddress: "imageWebAddress", imageWidth: "imageWidth", linkOpenInNewWindow: "linkOpenInNewWindow", linkText: "linkText", linkTitle: "linkTitle", linkWebAddress: "linkWebAddress" }, usesInheritance: true, ngImport: i0 });
|
|
2656
2956
|
}
|
|
2657
|
-
|
|
2658
|
-
MessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: MessagesDirective, selector: "[kendoEditorMessages]", inputs: { alignCenter: "alignCenter", alignJustify: "alignJustify", alignLeft: "alignLeft", alignRight: "alignRight", backColor: "backColor", blockquote: "blockquote", bold: "bold", cleanFormatting: "cleanFormatting", createLink: "createLink", fontFamily: "fontFamily", fontSize: "fontSize", foreColor: "foreColor", format: "format", indent: "indent", insertFile: "insertFile", insertImage: "insertImage", insertOrderedList: "insertOrderedList", insertUnorderedList: "insertUnorderedList", italic: "italic", outdent: "outdent", print: "print", redo: "redo", selectAll: "selectAll", strikethrough: "strikethrough", subscript: "subscript", superscript: "superscript", underline: "underline", undo: "undo", unlink: "unlink", viewSource: "viewSource", insertTable: "insertTable", insertTableHint: "insertTableHint", addColumnBefore: "addColumnBefore", addColumnAfter: "addColumnAfter", addRowBefore: "addRowBefore", addRowAfter: "addRowAfter", deleteColumn: "deleteColumn", deleteRow: "deleteRow", deleteTable: "deleteTable", mergeCells: "mergeCells", splitCell: "splitCell", dialogApply: "dialogApply", dialogCancel: "dialogCancel", dialogInsert: "dialogInsert", dialogUpdate: "dialogUpdate", fileText: "fileText", fileTitle: "fileTitle", fileWebAddress: "fileWebAddress", imageAltText: "imageAltText", imageHeight: "imageHeight", imageWebAddress: "imageWebAddress", imageWidth: "imageWidth", linkOpenInNewWindow: "linkOpenInNewWindow", linkText: "linkText", linkTitle: "linkTitle", linkWebAddress: "linkWebAddress" }, usesInheritance: true, ngImport: i0 });
|
|
2659
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MessagesDirective, decorators: [{
|
|
2957
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MessagesDirective, decorators: [{
|
|
2660
2958
|
type: Directive,
|
|
2661
2959
|
args: [{
|
|
2662
2960
|
selector: '[kendoEditorMessages]'
|
|
@@ -2779,17 +3077,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2779
3077
|
* @hidden
|
|
2780
3078
|
*/
|
|
2781
3079
|
class LocalizedMessagesDirective extends MessagesDirective {
|
|
3080
|
+
service;
|
|
2782
3081
|
constructor(service) {
|
|
2783
3082
|
super();
|
|
2784
3083
|
this.service = service;
|
|
2785
3084
|
}
|
|
3085
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LocalizedMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3086
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: LocalizedMessagesDirective, isStandalone: true, selector: "[kendoEditorLocalizedMessages]", providers: [{
|
|
3087
|
+
provide: MessagesDirective,
|
|
3088
|
+
useExisting: forwardRef(() => LocalizedMessagesDirective)
|
|
3089
|
+
}], usesInheritance: true, ngImport: i0 });
|
|
2786
3090
|
}
|
|
2787
|
-
|
|
2788
|
-
LocalizedMessagesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: LocalizedMessagesDirective, isStandalone: true, selector: "[kendoEditorLocalizedMessages]", providers: [{
|
|
2789
|
-
provide: MessagesDirective,
|
|
2790
|
-
useExisting: forwardRef(() => LocalizedMessagesDirective)
|
|
2791
|
-
}], usesInheritance: true, ngImport: i0 });
|
|
2792
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LocalizedMessagesDirective, decorators: [{
|
|
3091
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LocalizedMessagesDirective, decorators: [{
|
|
2793
3092
|
type: Directive,
|
|
2794
3093
|
args: [{
|
|
2795
3094
|
providers: [{
|
|
@@ -2827,160 +3126,14 @@ const getPasteCleanupAttributes = (config) => {
|
|
|
2827
3126
|
* Represents the [Kendo UI Editor component for Angular]({% slug overview_editor %}).
|
|
2828
3127
|
*/
|
|
2829
3128
|
class EditorComponent {
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
this.renderer = renderer;
|
|
2839
|
-
/**
|
|
2840
|
-
* If set to `false`, the Editor will run in style non-encapsulated mode. This means
|
|
2841
|
-
* that the styles of the page will be persisted in the Editor and its content will be affected by them.
|
|
2842
|
-
* @default true
|
|
2843
|
-
*/
|
|
2844
|
-
this.iframe = true;
|
|
2845
|
-
/**
|
|
2846
|
-
* If set to `true` or `ApplyToWordOptions` object, commands that apply emphasis or inline styles will be applied to the whole word the cursor is in.
|
|
2847
|
-
* @default false
|
|
2848
|
-
*/
|
|
2849
|
-
this.applyToWord = false;
|
|
2850
|
-
/**
|
|
2851
|
-
* By default, whitespace is collapsed as per HTML's rules.
|
|
2852
|
-
* Set to `true` to preserve whitespace, but normalize newlines to spaces.
|
|
2853
|
-
* Set to `'full'` to preserve whitespace entirely. In this case the default ProseMirror behavior is to parse white space into nodes.
|
|
2854
|
-
*
|
|
2855
|
-
* @default false
|
|
2856
|
-
*/
|
|
2857
|
-
this.preserveWhitespace = false;
|
|
2858
|
-
/**
|
|
2859
|
-
* Determines whether the Editor can be resized ([see example](slug:resizing_editor#toc-resizing-the-editor)).
|
|
2860
|
-
* @default false
|
|
2861
|
-
*/
|
|
2862
|
-
this.resizable = false;
|
|
2863
|
-
/**
|
|
2864
|
-
* Fires each time the value of the Editor is changed upon user interaction—
|
|
2865
|
-
* for example, when the value is updated through typing in the content area or using some of the Editor tools ([see example](slug:events_editor)).
|
|
2866
|
-
* When the value of the Editor is programmatically changed through its API (`ngModel`) or form binding (`formControl`),
|
|
2867
|
-
* the `valueChange` event is not triggered because it might cause a mix-up with the
|
|
2868
|
-
* built-in `valueChange` mechanisms of the `ngModel` or `formControl` bindings.
|
|
2869
|
-
*/
|
|
2870
|
-
this.valueChange = new EventEmitter();
|
|
2871
|
-
/**
|
|
2872
|
-
* Fires when the content area of the Editor is focused ([see example](slug:events_editor)).
|
|
2873
|
-
*/
|
|
2874
|
-
this.onFocus = new EventEmitter();
|
|
2875
|
-
/**
|
|
2876
|
-
* Fires when the user performs paste in the content area of the Editor ([see example](slug:events_editor)).
|
|
2877
|
-
* The event is preventable. If you cancel it, the Editor content will not change.
|
|
2878
|
-
*/
|
|
2879
|
-
this.paste = new EventEmitter();
|
|
2880
|
-
/**
|
|
2881
|
-
* Fires when the content area of the Editor is blurred ([see example](slug:events_editor)).
|
|
2882
|
-
*/
|
|
2883
|
-
this.onBlur = new EventEmitter();
|
|
2884
|
-
this.hostClass = true;
|
|
2885
|
-
/**
|
|
2886
|
-
* @hidden
|
|
2887
|
-
*/
|
|
2888
|
-
this.stateChange = new BehaviorSubject(initialToolBarState);
|
|
2889
|
-
/**
|
|
2890
|
-
* @hidden
|
|
2891
|
-
*/
|
|
2892
|
-
this.showLicenseWatermark = false;
|
|
2893
|
-
/**
|
|
2894
|
-
* @hidden
|
|
2895
|
-
*/
|
|
2896
|
-
this.valueModified = new Subject();
|
|
2897
|
-
/**
|
|
2898
|
-
* @hidden
|
|
2899
|
-
*/
|
|
2900
|
-
this.focusableId = `k-editor-${guid()}`;
|
|
2901
|
-
this._readonly = false;
|
|
2902
|
-
this._placeholder = '';
|
|
2903
|
-
this.inForm = false;
|
|
2904
|
-
this._iframeCss = { keepBuiltInCss: true };
|
|
2905
|
-
this.afterViewInit = new Subject();
|
|
2906
|
-
this.contentAreaLoaded = new Subject();
|
|
2907
|
-
this.dispatchTransaction = (tr) => {
|
|
2908
|
-
const docChanged = tr.docChanged;
|
|
2909
|
-
if (this.disabled || (this.readonly && docChanged)) {
|
|
2910
|
-
return;
|
|
2911
|
-
}
|
|
2912
|
-
if (docChanged) {
|
|
2913
|
-
const doc = tr.doc;
|
|
2914
|
-
const html = getHtml({ doc });
|
|
2915
|
-
this.trOnChange = tr;
|
|
2916
|
-
this.htmlOnChange = html;
|
|
2917
|
-
this.ngZone.run(() => {
|
|
2918
|
-
this.valueModified.next(html === EMPTY_PARAGRAPH ? '' : html);
|
|
2919
|
-
});
|
|
2920
|
-
}
|
|
2921
|
-
if (!docChanged || this.inForm) {
|
|
2922
|
-
this.view.updateState(this.view.state.apply(tr));
|
|
2923
|
-
this.trOnChange = null;
|
|
2924
|
-
}
|
|
2925
|
-
};
|
|
2926
|
-
this.transformPastedContent = (dirtyHtml, plainText) => {
|
|
2927
|
-
if (plainText) {
|
|
2928
|
-
return this.dispatchPasteEvent(dirtyHtml, dirtyHtml);
|
|
2929
|
-
}
|
|
2930
|
-
const pasteCleanupSettings = { ...defaultPasteCleanupSettings, ...this.pasteCleanupSettings };
|
|
2931
|
-
const html = pipe(removeInvalidHTMLIf(pasteCleanupSettings.removeInvalidHTML), removeCommentsIf(pasteCleanupSettings.removeHtmlComments))(dirtyHtml);
|
|
2932
|
-
const clean = pasteCleanup(html, {
|
|
2933
|
-
convertMsLists: pasteCleanupSettings.convertMsLists,
|
|
2934
|
-
stripTags: pasteCleanupSettings.stripTags.join('|'),
|
|
2935
|
-
attributes: getPasteCleanupAttributes(pasteCleanupSettings)
|
|
2936
|
-
});
|
|
2937
|
-
return this.dispatchPasteEvent(dirtyHtml, clean);
|
|
2938
|
-
};
|
|
2939
|
-
this.transformPastedHTML = (html) => this.transformPastedContent(html);
|
|
2940
|
-
this.transformPastedText = (html) => this.transformPastedContent(html, true);
|
|
2941
|
-
this.changeValue = (value) => {
|
|
2942
|
-
const prev = this._value;
|
|
2943
|
-
this._value = value;
|
|
2944
|
-
if (!this._view) {
|
|
2945
|
-
return;
|
|
2946
|
-
}
|
|
2947
|
-
if (this.htmlOnChange === value && this.trOnChange) {
|
|
2948
|
-
this.view.updateState(this.view.state.apply(this.trOnChange));
|
|
2949
|
-
}
|
|
2950
|
-
else {
|
|
2951
|
-
const newValue = (prev || '') !== (value || '');
|
|
2952
|
-
const formReset = (this.inForm && !value);
|
|
2953
|
-
if (newValue || formReset) {
|
|
2954
|
-
const iframeContentWindowNotPresent = this.iframe && !this.container.element.nativeElement.contentWindow;
|
|
2955
|
-
if (iframeContentWindowNotPresent) {
|
|
2956
|
-
return;
|
|
2957
|
-
}
|
|
2958
|
-
const state = this.view.state;
|
|
2959
|
-
const nextDoc = parseContent(value || '', state.schema, { preserveWhitespace: this.preserveWhitespace });
|
|
2960
|
-
const tr = state.tr
|
|
2961
|
-
.setSelection(new AllSelection(state.doc))
|
|
2962
|
-
.replaceSelectionWith(nextDoc);
|
|
2963
|
-
this.view.updateState(state.apply(tr));
|
|
2964
|
-
}
|
|
2965
|
-
}
|
|
2966
|
-
this.trOnChange = null;
|
|
2967
|
-
this.htmlOnChange = null;
|
|
2968
|
-
};
|
|
2969
|
-
this.onChangeCallback = (value) => {
|
|
2970
|
-
this.changeValue(value);
|
|
2971
|
-
};
|
|
2972
|
-
this.onTouchedCallback = (_) => { };
|
|
2973
|
-
this.onPaste = (_view, nativeEvent) => {
|
|
2974
|
-
this._pasteEvent = nativeEvent;
|
|
2975
|
-
return false;
|
|
2976
|
-
};
|
|
2977
|
-
const isValid = validatePackage(packageMetadata);
|
|
2978
|
-
this.showLicenseWatermark = shouldShowValidationUI(isValid);
|
|
2979
|
-
this.providerService.editor = this;
|
|
2980
|
-
this.direction = localization.rtl ? 'rtl' : 'ltr';
|
|
2981
|
-
// https://stackoverflow.com/questions/56572483/chrome-is-synchronously-handling-iframe-loading-whereas-firefox-handles-it-asyn
|
|
2982
|
-
this.subs = zip(this.afterViewInit.asObservable(), this.contentAreaLoaded.asObservable()).subscribe(() => this.initialize());
|
|
2983
|
-
}
|
|
3129
|
+
dialogService;
|
|
3130
|
+
localization;
|
|
3131
|
+
cdr;
|
|
3132
|
+
ngZone;
|
|
3133
|
+
element;
|
|
3134
|
+
providerService;
|
|
3135
|
+
toolsService;
|
|
3136
|
+
renderer;
|
|
2984
3137
|
/**
|
|
2985
3138
|
* Sets the value of the Editor ([see example](slug:overview_editor)).
|
|
2986
3139
|
*/
|
|
@@ -3061,6 +3214,12 @@ class EditorComponent {
|
|
|
3061
3214
|
get readonly() {
|
|
3062
3215
|
return this._readonly;
|
|
3063
3216
|
}
|
|
3217
|
+
/**
|
|
3218
|
+
* If set to `false`, the Editor will run in style non-encapsulated mode. This means
|
|
3219
|
+
* that the styles of the page will be persisted in the Editor and its content will be affected by them.
|
|
3220
|
+
* @default true
|
|
3221
|
+
*/
|
|
3222
|
+
iframe = true;
|
|
3064
3223
|
/**
|
|
3065
3224
|
* Allows applying custom CSS styles to the Editor in iframe mode.
|
|
3066
3225
|
*/
|
|
@@ -3070,6 +3229,11 @@ class EditorComponent {
|
|
|
3070
3229
|
get iframeCss() {
|
|
3071
3230
|
return this._iframeCss;
|
|
3072
3231
|
}
|
|
3232
|
+
/**
|
|
3233
|
+
* If set to `true` or `ApplyToWordOptions` object, commands that apply emphasis or inline styles will be applied to the whole word the cursor is in.
|
|
3234
|
+
* @default false
|
|
3235
|
+
*/
|
|
3236
|
+
applyToWord = false;
|
|
3073
3237
|
/**
|
|
3074
3238
|
* Allows providing a custom schema. ([see example]({% slug schema_editor %}))
|
|
3075
3239
|
*/
|
|
@@ -3118,6 +3282,45 @@ class EditorComponent {
|
|
|
3118
3282
|
get placeholder() {
|
|
3119
3283
|
return this._placeholder;
|
|
3120
3284
|
}
|
|
3285
|
+
/**
|
|
3286
|
+
* By default, whitespace is collapsed as per HTML's rules.
|
|
3287
|
+
* Set to `true` to preserve whitespace, but normalize newlines to spaces.
|
|
3288
|
+
* Set to `'full'` to preserve whitespace entirely. In this case the default ProseMirror behavior is to parse white space into nodes.
|
|
3289
|
+
*
|
|
3290
|
+
* @default false
|
|
3291
|
+
*/
|
|
3292
|
+
preserveWhitespace = false;
|
|
3293
|
+
/**
|
|
3294
|
+
* Configures how pasted content is modified before it is added to the Editor ([see example]({% slug paste_cleanup %})).
|
|
3295
|
+
*/
|
|
3296
|
+
pasteCleanupSettings;
|
|
3297
|
+
/**
|
|
3298
|
+
* Determines whether the Editor can be resized ([see example](slug:resizing_editor#toc-resizing-the-editor)).
|
|
3299
|
+
* @default false
|
|
3300
|
+
*/
|
|
3301
|
+
resizable = false;
|
|
3302
|
+
/**
|
|
3303
|
+
* Fires each time the value of the Editor is changed upon user interaction—
|
|
3304
|
+
* for example, when the value is updated through typing in the content area or using some of the Editor tools ([see example](slug:events_editor)).
|
|
3305
|
+
* When the value of the Editor is programmatically changed through its API (`ngModel`) or form binding (`formControl`),
|
|
3306
|
+
* the `valueChange` event is not triggered because it might cause a mix-up with the
|
|
3307
|
+
* built-in `valueChange` mechanisms of the `ngModel` or `formControl` bindings.
|
|
3308
|
+
*/
|
|
3309
|
+
valueChange = new EventEmitter();
|
|
3310
|
+
/**
|
|
3311
|
+
* Fires when the content area of the Editor is focused ([see example](slug:events_editor)).
|
|
3312
|
+
*/
|
|
3313
|
+
onFocus = new EventEmitter();
|
|
3314
|
+
/**
|
|
3315
|
+
* Fires when the user performs paste in the content area of the Editor ([see example](slug:events_editor)).
|
|
3316
|
+
* The event is preventable. If you cancel it, the Editor content will not change.
|
|
3317
|
+
*/
|
|
3318
|
+
paste = new EventEmitter();
|
|
3319
|
+
/**
|
|
3320
|
+
* Fires when the content area of the Editor is blurred ([see example](slug:events_editor)).
|
|
3321
|
+
*/
|
|
3322
|
+
onBlur = new EventEmitter();
|
|
3323
|
+
hostClass = true;
|
|
3121
3324
|
get resizableClass() {
|
|
3122
3325
|
return !!this.resizable;
|
|
3123
3326
|
}
|
|
@@ -3152,6 +3355,14 @@ class EditorComponent {
|
|
|
3152
3355
|
const resizableOptions = this.resizable;
|
|
3153
3356
|
return resizableOptions.maxHeight ? resizableOptions.maxHeight + 'px' : undefined;
|
|
3154
3357
|
}
|
|
3358
|
+
/**
|
|
3359
|
+
* @hidden
|
|
3360
|
+
*/
|
|
3361
|
+
stateChange = new BehaviorSubject(initialToolBarState);
|
|
3362
|
+
/**
|
|
3363
|
+
* @hidden
|
|
3364
|
+
*/
|
|
3365
|
+
showLicenseWatermark = false;
|
|
3155
3366
|
get toolbar() {
|
|
3156
3367
|
return this.defaultToolbarComponent || this.userToolBarComponent;
|
|
3157
3368
|
}
|
|
@@ -3171,31 +3382,88 @@ class EditorComponent {
|
|
|
3171
3382
|
get selectionText() {
|
|
3172
3383
|
return this._view && this._view.state ? getSelectionText$1(this._view.state) : '';
|
|
3173
3384
|
}
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3385
|
+
/**
|
|
3386
|
+
* @hidden
|
|
3387
|
+
*/
|
|
3388
|
+
valueModified = new Subject();
|
|
3389
|
+
userToolBarComponent;
|
|
3390
|
+
userToolBarElement;
|
|
3391
|
+
dialogContainer;
|
|
3392
|
+
// Use `ViewContainerRef` instead of `ElementRef` because the dialog expects `ViewContainerRef`.
|
|
3393
|
+
container;
|
|
3394
|
+
direction;
|
|
3395
|
+
viewMountElement;
|
|
3396
|
+
/**
|
|
3397
|
+
* @hidden
|
|
3398
|
+
*/
|
|
3399
|
+
focusChangedProgrammatically;
|
|
3400
|
+
/**
|
|
3401
|
+
* @hidden
|
|
3402
|
+
*/
|
|
3403
|
+
shouldEmitFocus;
|
|
3404
|
+
/**
|
|
3405
|
+
* @hidden
|
|
3406
|
+
*/
|
|
3407
|
+
focusableId = `k-editor-${guid()}`;
|
|
3408
|
+
defaultToolbar;
|
|
3409
|
+
defaultToolbarComponent;
|
|
3410
|
+
subs;
|
|
3411
|
+
_view;
|
|
3412
|
+
_value;
|
|
3413
|
+
_disabled;
|
|
3414
|
+
_readonly = false;
|
|
3415
|
+
_schema;
|
|
3416
|
+
_plugins;
|
|
3417
|
+
_placeholder = '';
|
|
3418
|
+
_styleObserver;
|
|
3419
|
+
trOnChange;
|
|
3420
|
+
htmlOnChange;
|
|
3421
|
+
inForm = false;
|
|
3422
|
+
_pasteEvent;
|
|
3423
|
+
_iframeCss = { keepBuiltInCss: true };
|
|
3424
|
+
afterViewInit = new Subject();
|
|
3425
|
+
contentAreaLoaded = new Subject();
|
|
3426
|
+
constructor(dialogService, localization, cdr, ngZone, element, providerService, toolsService, renderer) {
|
|
3427
|
+
this.dialogService = dialogService;
|
|
3428
|
+
this.localization = localization;
|
|
3429
|
+
this.cdr = cdr;
|
|
3430
|
+
this.ngZone = ngZone;
|
|
3431
|
+
this.element = element;
|
|
3432
|
+
this.providerService = providerService;
|
|
3433
|
+
this.toolsService = toolsService;
|
|
3434
|
+
this.renderer = renderer;
|
|
3435
|
+
const isValid = validatePackage(packageMetadata);
|
|
3436
|
+
this.showLicenseWatermark = shouldShowValidationUI(isValid);
|
|
3437
|
+
this.providerService.editor = this;
|
|
3438
|
+
this.direction = localization.rtl ? 'rtl' : 'ltr';
|
|
3439
|
+
// https://stackoverflow.com/questions/56572483/chrome-is-synchronously-handling-iframe-loading-whereas-firefox-handles-it-asyn
|
|
3440
|
+
this.subs = zip(this.afterViewInit.asObservable(), this.contentAreaLoaded.asObservable()).subscribe(() => this.initialize());
|
|
3441
|
+
}
|
|
3442
|
+
ngOnInit() {
|
|
3443
|
+
this.subs.add(this.localization.changes.subscribe(({ rtl }) => {
|
|
3444
|
+
this.direction = rtl ? 'rtl' : 'ltr';
|
|
3445
|
+
}));
|
|
3446
|
+
this.subs.add(this.toolsService.needsCheck.subscribe(() => this.cdr.markForCheck()));
|
|
3447
|
+
}
|
|
3448
|
+
ngAfterViewInit() {
|
|
3449
|
+
if (!isDocumentAvailable()) {
|
|
3450
|
+
return;
|
|
3451
|
+
}
|
|
3452
|
+
this.afterViewInit.next();
|
|
3453
|
+
if (!this.iframe) {
|
|
3454
|
+
this.contentAreaLoaded.next();
|
|
3455
|
+
}
|
|
3456
|
+
if (this.resizable) {
|
|
3457
|
+
this.normalizeSize();
|
|
3458
|
+
}
|
|
3459
|
+
if (this.userToolBarComponent) {
|
|
3460
|
+
this.renderer.addClass(this.userToolBarComponent.element.nativeElement, 'k-editor-toolbar');
|
|
3461
|
+
}
|
|
3462
|
+
if (this.toolbar.overflow) {
|
|
3463
|
+
this.toolbar.onResize();
|
|
3464
|
+
}
|
|
3465
|
+
}
|
|
3466
|
+
ngOnChanges(changes) {
|
|
3199
3467
|
if (changes['value'] && this.view) {
|
|
3200
3468
|
this.changeValue(changes['value'].currentValue);
|
|
3201
3469
|
}
|
|
@@ -3502,6 +3770,71 @@ class EditorComponent {
|
|
|
3502
3770
|
.pipe(filter$1((event) => !this.viewMountElement.contains(event.relatedTarget)))
|
|
3503
3771
|
.subscribe(() => this.onTouchedCallback()));
|
|
3504
3772
|
}
|
|
3773
|
+
dispatchTransaction = (tr) => {
|
|
3774
|
+
const docChanged = tr.docChanged;
|
|
3775
|
+
if (this.disabled || (this.readonly && docChanged)) {
|
|
3776
|
+
return;
|
|
3777
|
+
}
|
|
3778
|
+
if (docChanged) {
|
|
3779
|
+
const doc = tr.doc;
|
|
3780
|
+
const html = getHtml({ doc });
|
|
3781
|
+
this.trOnChange = tr;
|
|
3782
|
+
this.htmlOnChange = html;
|
|
3783
|
+
this.ngZone.run(() => {
|
|
3784
|
+
this.valueModified.next(html === EMPTY_PARAGRAPH ? '' : html);
|
|
3785
|
+
});
|
|
3786
|
+
}
|
|
3787
|
+
if (!docChanged || this.inForm) {
|
|
3788
|
+
this.view.updateState(this.view.state.apply(tr));
|
|
3789
|
+
this.trOnChange = null;
|
|
3790
|
+
}
|
|
3791
|
+
};
|
|
3792
|
+
transformPastedContent = (dirtyHtml, plainText) => {
|
|
3793
|
+
if (plainText) {
|
|
3794
|
+
return this.dispatchPasteEvent(dirtyHtml, dirtyHtml);
|
|
3795
|
+
}
|
|
3796
|
+
const pasteCleanupSettings = { ...defaultPasteCleanupSettings, ...this.pasteCleanupSettings };
|
|
3797
|
+
const html = pipe(removeInvalidHTMLIf(pasteCleanupSettings.removeInvalidHTML), removeCommentsIf(pasteCleanupSettings.removeHtmlComments))(dirtyHtml);
|
|
3798
|
+
const clean = pasteCleanup(html, {
|
|
3799
|
+
convertMsLists: pasteCleanupSettings.convertMsLists,
|
|
3800
|
+
stripTags: pasteCleanupSettings.stripTags.join('|'),
|
|
3801
|
+
attributes: getPasteCleanupAttributes(pasteCleanupSettings)
|
|
3802
|
+
});
|
|
3803
|
+
return this.dispatchPasteEvent(dirtyHtml, clean);
|
|
3804
|
+
};
|
|
3805
|
+
transformPastedHTML = (html) => this.transformPastedContent(html);
|
|
3806
|
+
transformPastedText = (html) => this.transformPastedContent(html, true);
|
|
3807
|
+
changeValue = (value) => {
|
|
3808
|
+
const prev = this._value;
|
|
3809
|
+
this._value = value;
|
|
3810
|
+
if (!this._view) {
|
|
3811
|
+
return;
|
|
3812
|
+
}
|
|
3813
|
+
if (this.htmlOnChange === value && this.trOnChange) {
|
|
3814
|
+
this.view.updateState(this.view.state.apply(this.trOnChange));
|
|
3815
|
+
}
|
|
3816
|
+
else {
|
|
3817
|
+
const newValue = (prev || '') !== (value || '');
|
|
3818
|
+
const formReset = (this.inForm && !value);
|
|
3819
|
+
if (newValue || formReset) {
|
|
3820
|
+
const iframeContentWindowNotPresent = this.iframe && !this.container.element.nativeElement.contentWindow;
|
|
3821
|
+
if (iframeContentWindowNotPresent) {
|
|
3822
|
+
return;
|
|
3823
|
+
}
|
|
3824
|
+
const state = this.view.state;
|
|
3825
|
+
const nextDoc = parseContent(value || '', state.schema, { preserveWhitespace: this.preserveWhitespace });
|
|
3826
|
+
const tr = state.tr
|
|
3827
|
+
.setSelection(new AllSelection(state.doc))
|
|
3828
|
+
.replaceSelectionWith(nextDoc);
|
|
3829
|
+
this.view.updateState(state.apply(tr));
|
|
3830
|
+
}
|
|
3831
|
+
}
|
|
3832
|
+
this.trOnChange = null;
|
|
3833
|
+
this.htmlOnChange = null;
|
|
3834
|
+
};
|
|
3835
|
+
onChangeCallback = (value) => {
|
|
3836
|
+
this.changeValue(value);
|
|
3837
|
+
};
|
|
3505
3838
|
normalizeSize() {
|
|
3506
3839
|
if (typeof this.resizable === 'object' && !this._styleObserver) {
|
|
3507
3840
|
const element = this.element.nativeElement;
|
|
@@ -3543,38 +3876,45 @@ class EditorComponent {
|
|
|
3543
3876
|
}
|
|
3544
3877
|
});
|
|
3545
3878
|
}
|
|
3879
|
+
onTouchedCallback = (_) => { };
|
|
3880
|
+
onPaste = (_view, nativeEvent) => {
|
|
3881
|
+
this._pasteEvent = nativeEvent;
|
|
3882
|
+
return false;
|
|
3883
|
+
};
|
|
3546
3884
|
dispatchPasteEvent(originalContent, cleanContent) {
|
|
3547
3885
|
if (hasObservers(this.paste)) {
|
|
3886
|
+
if (!this.iframe) {
|
|
3887
|
+
this._pasteEvent.stopImmediatePropagation();
|
|
3888
|
+
}
|
|
3548
3889
|
const event = new EditorPasteEvent(cleanContent, originalContent, this._pasteEvent);
|
|
3549
3890
|
this.ngZone.run(() => this.paste.emit(event));
|
|
3550
3891
|
return event.isDefaultPrevented() ? '' : event.cleanedHtml;
|
|
3551
3892
|
}
|
|
3552
3893
|
return cleanContent;
|
|
3553
3894
|
}
|
|
3554
|
-
}
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
}
|
|
3577
|
-
], queries: [{ propertyName: "userToolBarComponent", first: true, predicate: ToolBarComponent, descendants: true }, { propertyName: "userToolBarElement", first: true, predicate: ToolBarComponent, descendants: true, read: ElementRef }], viewQueries: [{ propertyName: "dialogContainer", first: true, predicate: ["dialogsContainer"], descendants: true, read: ViewContainerRef }, { propertyName: "container", first: true, predicate: ["content"], descendants: true, read: ViewContainerRef }, { propertyName: "defaultToolbar", first: true, predicate: ["defaultToolbar"], descendants: true, read: ElementRef }, { propertyName: "defaultToolbarComponent", first: true, predicate: ["defaultToolbar"], descendants: true, read: ToolBarComponent }], usesOnChanges: true, ngImport: i0, template: `
|
|
3895
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorComponent, deps: [{ token: i1$1.DialogService }, { token: i1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i0.ElementRef }, { token: ProviderService }, { token: EditorToolsService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
3896
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: EditorComponent, isStandalone: true, selector: "kendo-editor", inputs: { value: "value", disabled: "disabled", readonly: "readonly", iframe: "iframe", iframeCss: "iframeCss", applyToWord: "applyToWord", schema: "schema", plugins: "plugins", placeholder: "placeholder", preserveWhitespace: "preserveWhitespace", pasteCleanupSettings: "pasteCleanupSettings", resizable: "resizable" }, outputs: { valueChange: "valueChange", onFocus: "focus", paste: "paste", onBlur: "blur" }, host: { properties: { "class.k-editor": "this.hostClass", "class.k-editor-resizable": "this.resizableClass", "class.k-disabled": "this.isDisabled", "class.k-readonly": "this.isReadonly", "class.k-ie": "this.isIE", "attr.dir": "this.dir", "attr.ariaDisabled": "this.ariaDisabled", "style.minWidth": "this.minWidth", "style.maxWidth": "this.maxWidth", "style.minHeight": "this.minHeight", "style.maxHeight": "this.maxHeight" } }, providers: [
|
|
3897
|
+
EditorLocalizationService,
|
|
3898
|
+
ProviderService,
|
|
3899
|
+
EditorToolsService,
|
|
3900
|
+
{
|
|
3901
|
+
provide: LocalizationService,
|
|
3902
|
+
useExisting: EditorLocalizationService
|
|
3903
|
+
},
|
|
3904
|
+
{
|
|
3905
|
+
provide: L10N_PREFIX,
|
|
3906
|
+
useValue: 'kendo.editor'
|
|
3907
|
+
},
|
|
3908
|
+
{
|
|
3909
|
+
provide: NG_VALUE_ACCESSOR,
|
|
3910
|
+
useExisting: forwardRef(() => EditorComponent),
|
|
3911
|
+
multi: true
|
|
3912
|
+
},
|
|
3913
|
+
{
|
|
3914
|
+
provide: KendoInput,
|
|
3915
|
+
useExisting: forwardRef(() => EditorComponent)
|
|
3916
|
+
}
|
|
3917
|
+
], queries: [{ propertyName: "userToolBarComponent", first: true, predicate: ToolBarComponent, descendants: true }, { propertyName: "userToolBarElement", first: true, predicate: ToolBarComponent, descendants: true, read: ElementRef }], viewQueries: [{ propertyName: "dialogContainer", first: true, predicate: ["dialogsContainer"], descendants: true, read: ViewContainerRef }, { propertyName: "container", first: true, predicate: ["content"], descendants: true, read: ViewContainerRef }, { propertyName: "defaultToolbar", first: true, predicate: ["defaultToolbar"], descendants: true, read: ElementRef }, { propertyName: "defaultToolbarComponent", first: true, predicate: ["defaultToolbar"], descendants: true, read: ToolBarComponent }], usesOnChanges: true, ngImport: i0, template: `
|
|
3578
3918
|
<ng-container
|
|
3579
3919
|
kendoEditorLocalizedMessages
|
|
3580
3920
|
i18n-alignCenter="kendo.editor.alignCenter|The title of the tool that aligns text in the center."
|
|
@@ -3733,8 +4073,9 @@ EditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", versio
|
|
|
3733
4073
|
<ng-container #dialogsContainer></ng-container>
|
|
3734
4074
|
|
|
3735
4075
|
<div kendoWatermarkOverlay *ngIf="showLicenseWatermark"></div>
|
|
3736
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: LocalizedMessagesDirective, selector: "[kendoEditorLocalizedMessages]" }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: ToolBarComponent, selector: "kendo-toolbar", inputs: ["overflow", "resizable", "popupSettings", "tabindex", "size", "tabIndex"], outputs: ["open", "close"], exportAs: ["kendoToolBar"] }, { kind: "component", type: ToolBarButtonGroupComponent, selector: "kendo-toolbar-buttongroup", inputs: ["disabled", "selection", "width", "look"], exportAs: ["kendoToolBarButtonGroup"] }, { kind: "component", type: ToolBarButtonComponent, selector: "kendo-toolbar-button", inputs: ["showText", "showIcon", "text", "style", "className", "title", "disabled", "toggleable", "look", "togglable", "selected", "fillMode", "themeColor", "icon", "iconClass", "svgIcon", "imageUrl"], outputs: ["click", "pointerdown", "selectedChange"], exportAs: ["kendoToolBarButton"] }, { kind: "directive", type: EditorBoldButtonDirective, selector: "kendo-toolbar-button[kendoEditorBoldButton]" }, { kind: "directive", type: EditorItalicButtonDirective, selector: "kendo-toolbar-button[kendoEditorItalicButton]" }, { kind: "directive", type: EditorUnderlineButtonDirective, selector: "kendo-toolbar-button[kendoEditorUnderlineButton]" }, { kind: "component", type: EditorFormatComponent, selector: "kendo-toolbar-dropdownlist[kendoEditorFormat]", inputs: ["data"], outputs: ["valueChange"] }, { kind: "directive", type: EditorAlignLeftButtonDirective, selector: "kendo-toolbar-button[kendoEditorAlignLeftButton]" }, { kind: "directive", type: EditorAlignCenterButtonDirective, selector: "kendo-toolbar-button[kendoEditorAlignCenterButton]" }, { kind: "directive", type: EditorAlignRightButtonDirective, selector: "kendo-toolbar-button[kendoEditorAlignRightButton]" }, { kind: "directive", type: EditorAlignJustifyButtonDirective, selector: "kendo-toolbar-button[kendoEditorAlignJustifyButton]" }, { kind: "directive", type: EditorInsertUnorderedListButtonDirective, selector: "kendo-toolbar-button[kendoEditorInsertUnorderedListButton]" }, { kind: "directive", type: EditorInsertOrderedListButtonDirective, selector: "kendo-toolbar-button[kendoEditorInsertOrderedListButton]" }, { kind: "directive", type: EditorIndentButtonDirective, selector: "kendo-toolbar-button[kendoEditorIndentButton]" }, { kind: "directive", type: EditorOutdentButtonDirective, selector: "kendo-toolbar-button[kendoEditorOutdentButton]" }, { kind: "directive", type: EditorCreateLinkButtonDirective, selector: "kendo-toolbar-button[kendoEditorCreateLinkButton]" }, { kind: "directive", type: EditorUnlinkButtonDirective, selector: "kendo-toolbar-button[kendoEditorUnlinkButton]" }, { kind: "directive", type: EditorInsertImageButtonDirective, selector: "kendo-toolbar-button[kendoEditorInsertImageButton]" }, { kind: "component", type: WatermarkOverlayComponent, selector: "div[kendoWatermarkOverlay]" }] });
|
|
3737
|
-
|
|
4076
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: LocalizedMessagesDirective, selector: "[kendoEditorLocalizedMessages]" }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: ToolBarComponent, selector: "kendo-toolbar", inputs: ["overflow", "resizable", "popupSettings", "fillMode", "tabindex", "size", "tabIndex"], outputs: ["open", "close"], exportAs: ["kendoToolBar"] }, { kind: "component", type: ToolBarButtonGroupComponent, selector: "kendo-toolbar-buttongroup", inputs: ["disabled", "fillMode", "selection", "width", "look"], exportAs: ["kendoToolBarButtonGroup"] }, { kind: "component", type: ToolBarButtonComponent, selector: "kendo-toolbar-button", inputs: ["showText", "showIcon", "text", "style", "className", "title", "disabled", "toggleable", "look", "togglable", "selected", "fillMode", "themeColor", "icon", "iconClass", "svgIcon", "imageUrl"], outputs: ["click", "pointerdown", "selectedChange"], exportAs: ["kendoToolBarButton"] }, { kind: "directive", type: EditorBoldButtonDirective, selector: "kendo-toolbar-button[kendoEditorBoldButton]" }, { kind: "directive", type: EditorItalicButtonDirective, selector: "kendo-toolbar-button[kendoEditorItalicButton]" }, { kind: "directive", type: EditorUnderlineButtonDirective, selector: "kendo-toolbar-button[kendoEditorUnderlineButton]" }, { kind: "component", type: EditorFormatComponent, selector: "kendo-toolbar-dropdownlist[kendoEditorFormat]", inputs: ["data"], outputs: ["valueChange"] }, { kind: "directive", type: EditorAlignLeftButtonDirective, selector: "kendo-toolbar-button[kendoEditorAlignLeftButton]" }, { kind: "directive", type: EditorAlignCenterButtonDirective, selector: "kendo-toolbar-button[kendoEditorAlignCenterButton]" }, { kind: "directive", type: EditorAlignRightButtonDirective, selector: "kendo-toolbar-button[kendoEditorAlignRightButton]" }, { kind: "directive", type: EditorAlignJustifyButtonDirective, selector: "kendo-toolbar-button[kendoEditorAlignJustifyButton]" }, { kind: "directive", type: EditorInsertUnorderedListButtonDirective, selector: "kendo-toolbar-button[kendoEditorInsertUnorderedListButton]" }, { kind: "directive", type: EditorInsertOrderedListButtonDirective, selector: "kendo-toolbar-button[kendoEditorInsertOrderedListButton]" }, { kind: "directive", type: EditorIndentButtonDirective, selector: "kendo-toolbar-button[kendoEditorIndentButton]" }, { kind: "directive", type: EditorOutdentButtonDirective, selector: "kendo-toolbar-button[kendoEditorOutdentButton]" }, { kind: "directive", type: EditorCreateLinkButtonDirective, selector: "kendo-toolbar-button[kendoEditorCreateLinkButton]" }, { kind: "directive", type: EditorUnlinkButtonDirective, selector: "kendo-toolbar-button[kendoEditorUnlinkButton]" }, { kind: "directive", type: EditorInsertImageButtonDirective, selector: "kendo-toolbar-button[kendoEditorInsertImageButton]" }, { kind: "component", type: WatermarkOverlayComponent, selector: "div[kendoWatermarkOverlay]" }] });
|
|
4077
|
+
}
|
|
4078
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorComponent, decorators: [{
|
|
3738
4079
|
type: Component,
|
|
3739
4080
|
args: [{
|
|
3740
4081
|
selector: 'kendo-editor',
|
|
@@ -4010,144 +4351,34 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
4010
4351
|
args: ['defaultToolbar', { read: ToolBarComponent, static: false }]
|
|
4011
4352
|
}] } });
|
|
4012
4353
|
|
|
4013
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
4014
|
-
/**
|
|
4015
|
-
* @hidden
|
|
4016
|
-
*/
|
|
4017
|
-
class ColorPickerDialogComponent extends DialogContentBase {
|
|
4018
|
-
constructor(dialog, localization) {
|
|
4019
|
-
super(dialog);
|
|
4020
|
-
this.dialog = dialog;
|
|
4021
|
-
this.localization = localization;
|
|
4022
|
-
}
|
|
4023
|
-
handleActiveColorClick(event) {
|
|
4024
|
-
event.preventOpen();
|
|
4025
|
-
this.value = event.color;
|
|
4026
|
-
}
|
|
4027
|
-
handleClearButtonClick() {
|
|
4028
|
-
this.editor.exec(this.editorCommand, undefined);
|
|
4029
|
-
}
|
|
4030
|
-
onCancelAction() {
|
|
4031
|
-
this.dialog.close();
|
|
4032
|
-
}
|
|
4033
|
-
onConfirmAction() {
|
|
4034
|
-
if (this.value) {
|
|
4035
|
-
this.editor.exec(this.editorCommand, this.value);
|
|
4036
|
-
}
|
|
4037
|
-
this.dialog.close();
|
|
4038
|
-
this.editor.view.focus();
|
|
4039
|
-
}
|
|
4040
|
-
setData(args) {
|
|
4041
|
-
this.editor = args.editor;
|
|
4042
|
-
this.value = args.value;
|
|
4043
|
-
this.svgIcon = args.svgIcon;
|
|
4044
|
-
this.editorCommand = args.editorCommand;
|
|
4045
|
-
this.paletteSettings = args.paletteSettings;
|
|
4046
|
-
this.icon = args.icon;
|
|
4047
|
-
this.views = args.view ? [args.view] : args.views;
|
|
4048
|
-
}
|
|
4049
|
-
textFor(key) {
|
|
4050
|
-
return this.localization.get(key);
|
|
4051
|
-
}
|
|
4052
|
-
}
|
|
4053
|
-
ColorPickerDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ColorPickerDialogComponent, deps: [{ token: i1$1.DialogRef }, { token: EditorLocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
4054
|
-
ColorPickerDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: ColorPickerDialogComponent, isStandalone: true, selector: "ng-component", inputs: { editor: "editor" }, viewQueries: [{ propertyName: "colorPicker", first: true, predicate: ["colorpicker"], descendants: true, read: ColorPickerComponent, static: true }], usesInheritance: true, ngImport: i0, template: `
|
|
4055
|
-
<kendo-dialog-titlebar (close)="onCancelAction()">
|
|
4056
|
-
{{ textFor(editorCommand) }}
|
|
4057
|
-
</kendo-dialog-titlebar>
|
|
4058
|
-
<div [style.text-align]="'center'">
|
|
4059
|
-
<kendo-colorpicker
|
|
4060
|
-
#colorpicker
|
|
4061
|
-
[views]="views"
|
|
4062
|
-
[format]="'hex'"
|
|
4063
|
-
[attr.title]="title"
|
|
4064
|
-
[icon]="icon"
|
|
4065
|
-
[svgIcon]="svgIcon"
|
|
4066
|
-
[(value)]="value"
|
|
4067
|
-
[paletteSettings]="paletteSettings"
|
|
4068
|
-
(activeColorClick)="handleActiveColorClick($event)"
|
|
4069
|
-
(clearButtonClick)="handleClearButtonClick()"
|
|
4070
|
-
>
|
|
4071
|
-
</kendo-colorpicker>
|
|
4072
|
-
</div>
|
|
4073
|
-
<kendo-dialog-actions layout="start">
|
|
4074
|
-
<button
|
|
4075
|
-
kendoButton
|
|
4076
|
-
[primary]="true"
|
|
4077
|
-
(click)="onConfirmAction()"
|
|
4078
|
-
>{{ textFor('dialogApply') }}</button>
|
|
4079
|
-
<button
|
|
4080
|
-
kendoButton
|
|
4081
|
-
(click)="onCancelAction()"
|
|
4082
|
-
>{{ textFor('dialogCancel') }}</button>
|
|
4083
|
-
</kendo-dialog-actions>
|
|
4084
|
-
`, isInline: true, dependencies: [{ kind: "component", type: DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { kind: "component", type: 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", "clearButtonClick", "activeViewChange"], exportAs: ["kendoColorPicker"] }, { kind: "component", type: DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
|
|
4085
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ColorPickerDialogComponent, decorators: [{
|
|
4086
|
-
type: Component,
|
|
4087
|
-
args: [{
|
|
4088
|
-
template: `
|
|
4089
|
-
<kendo-dialog-titlebar (close)="onCancelAction()">
|
|
4090
|
-
{{ textFor(editorCommand) }}
|
|
4091
|
-
</kendo-dialog-titlebar>
|
|
4092
|
-
<div [style.text-align]="'center'">
|
|
4093
|
-
<kendo-colorpicker
|
|
4094
|
-
#colorpicker
|
|
4095
|
-
[views]="views"
|
|
4096
|
-
[format]="'hex'"
|
|
4097
|
-
[attr.title]="title"
|
|
4098
|
-
[icon]="icon"
|
|
4099
|
-
[svgIcon]="svgIcon"
|
|
4100
|
-
[(value)]="value"
|
|
4101
|
-
[paletteSettings]="paletteSettings"
|
|
4102
|
-
(activeColorClick)="handleActiveColorClick($event)"
|
|
4103
|
-
(clearButtonClick)="handleClearButtonClick()"
|
|
4104
|
-
>
|
|
4105
|
-
</kendo-colorpicker>
|
|
4106
|
-
</div>
|
|
4107
|
-
<kendo-dialog-actions layout="start">
|
|
4108
|
-
<button
|
|
4109
|
-
kendoButton
|
|
4110
|
-
[primary]="true"
|
|
4111
|
-
(click)="onConfirmAction()"
|
|
4112
|
-
>{{ textFor('dialogApply') }}</button>
|
|
4113
|
-
<button
|
|
4114
|
-
kendoButton
|
|
4115
|
-
(click)="onCancelAction()"
|
|
4116
|
-
>{{ textFor('dialogCancel') }}</button>
|
|
4117
|
-
</kendo-dialog-actions>
|
|
4118
|
-
`,
|
|
4119
|
-
standalone: true,
|
|
4120
|
-
imports: [DialogTitleBarComponent, ColorPickerComponent, DialogActionsComponent, ButtonComponent]
|
|
4121
|
-
}]
|
|
4122
|
-
}], ctorParameters: function () { return [{ type: i1$1.DialogRef }, { type: EditorLocalizationService }]; }, propDecorators: { editor: [{
|
|
4123
|
-
type: Input
|
|
4124
|
-
}], colorPicker: [{
|
|
4125
|
-
type: ViewChild,
|
|
4126
|
-
args: ['colorpicker', { read: ColorPickerComponent, static: true }]
|
|
4127
|
-
}] } });
|
|
4128
|
-
|
|
4129
4354
|
/**
|
|
4130
4355
|
* @hidden
|
|
4131
4356
|
*/
|
|
4132
|
-
class
|
|
4133
|
-
|
|
4134
|
-
|
|
4135
|
-
|
|
4136
|
-
|
|
4137
|
-
|
|
4357
|
+
class FontSizeDropDownListComponent {
|
|
4358
|
+
data;
|
|
4359
|
+
value;
|
|
4360
|
+
defaultItem;
|
|
4361
|
+
itemDisabled;
|
|
4362
|
+
title;
|
|
4363
|
+
disabled;
|
|
4364
|
+
tabindex;
|
|
4365
|
+
valueChange = new EventEmitter();
|
|
4366
|
+
element;
|
|
4367
|
+
dropDownList;
|
|
4368
|
+
onValueChange(size) {
|
|
4369
|
+
this.valueChange.emit(size);
|
|
4138
4370
|
}
|
|
4139
4371
|
focus() {
|
|
4140
4372
|
this.dropDownList.focus();
|
|
4141
4373
|
}
|
|
4142
|
-
}
|
|
4143
|
-
|
|
4144
|
-
FontFamilyDropDownListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: FontFamilyDropDownListComponent, isStandalone: true, selector: "kendo-editor-fontfamily-dropdownlist", inputs: { data: "data", value: "value", defaultItem: "defaultItem", itemDisabled: "itemDisabled", title: "title", disabled: "disabled", tabindex: "tabindex" }, outputs: { valueChange: "valueChange" }, viewQueries: [{ propertyName: "element", first: true, predicate: ["element"], descendants: true, static: true }, { propertyName: "dropDownList", first: true, predicate: ["element"], descendants: true, read: DropDownListComponent, static: true }], ngImport: i0, template: `
|
|
4374
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FontSizeDropDownListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4375
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: FontSizeDropDownListComponent, isStandalone: true, selector: "kendo-editor-fontsize-dropdownlist", inputs: { data: "data", value: "value", defaultItem: "defaultItem", itemDisabled: "itemDisabled", title: "title", disabled: "disabled", tabindex: "tabindex" }, outputs: { valueChange: "valueChange" }, viewQueries: [{ propertyName: "element", first: true, predicate: ["element"], descendants: true, static: true }, { propertyName: "dropDownList", first: true, predicate: ["element"], descendants: true, read: DropDownListComponent, static: true }], ngImport: i0, template: `
|
|
4145
4376
|
<kendo-dropdownlist
|
|
4146
4377
|
#element
|
|
4147
4378
|
kendoEditorDropDownTool
|
|
4148
4379
|
[defaultItem]="defaultItem"
|
|
4149
4380
|
[textField]="'text'"
|
|
4150
|
-
[valueField]="'
|
|
4381
|
+
[valueField]="'size'"
|
|
4151
4382
|
[data]="data"
|
|
4152
4383
|
[(value)]="value"
|
|
4153
4384
|
[valuePrimitive]="true"
|
|
@@ -4158,24 +4389,20 @@ FontFamilyDropDownListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion:
|
|
|
4158
4389
|
(valueChange)="onValueChange($event)"
|
|
4159
4390
|
[style.width.em]="13"
|
|
4160
4391
|
>
|
|
4161
|
-
<ng-template kendoDropDownListItemTemplate let-dataItem>
|
|
4162
|
-
<span [ngStyle]="{ 'font-family': dataItem.fontName }">
|
|
4163
|
-
{{ dataItem.text }}
|
|
4164
|
-
</span>
|
|
4165
|
-
</ng-template>
|
|
4166
4392
|
</kendo-dropdownlist>
|
|
4167
|
-
`, isInline: true, dependencies: [{ kind: "component", type: DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["customIconClass", "showStickyHeader", "icon", "svgIcon", "loading", "data", "value", "textField", "valueField", "adaptiveMode", "title", "subtitle", "popupSettings", "listHeight", "defaultItem", "disabled", "itemDisabled", "readonly", "filterable", "virtual", "ignoreCase", "delay", "valuePrimitive", "tabindex", "tabIndex", "size", "rounded", "fillMode", "leftRightArrowsNavigation", "id"], outputs: ["valueChange", "filterChange", "selectionChange", "open", "opened", "close", "closed", "focus", "blur"], exportAs: ["kendoDropDownList"] }, { kind: "directive", type: DropDownToolDirective, selector: "[kendoEditorDropDownTool]" }
|
|
4168
|
-
|
|
4393
|
+
`, isInline: true, dependencies: [{ kind: "component", type: DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["customIconClass", "showStickyHeader", "icon", "svgIcon", "loading", "data", "value", "textField", "valueField", "adaptiveMode", "title", "subtitle", "popupSettings", "listHeight", "defaultItem", "disabled", "itemDisabled", "readonly", "filterable", "virtual", "ignoreCase", "delay", "valuePrimitive", "tabindex", "tabIndex", "size", "rounded", "fillMode", "leftRightArrowsNavigation", "id"], outputs: ["valueChange", "filterChange", "selectionChange", "open", "opened", "close", "closed", "focus", "blur"], exportAs: ["kendoDropDownList"] }, { kind: "directive", type: DropDownToolDirective, selector: "[kendoEditorDropDownTool]" }] });
|
|
4394
|
+
}
|
|
4395
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FontSizeDropDownListComponent, decorators: [{
|
|
4169
4396
|
type: Component,
|
|
4170
4397
|
args: [{
|
|
4171
|
-
selector: 'kendo-editor-
|
|
4398
|
+
selector: 'kendo-editor-fontsize-dropdownlist',
|
|
4172
4399
|
template: `
|
|
4173
4400
|
<kendo-dropdownlist
|
|
4174
4401
|
#element
|
|
4175
4402
|
kendoEditorDropDownTool
|
|
4176
4403
|
[defaultItem]="defaultItem"
|
|
4177
4404
|
[textField]="'text'"
|
|
4178
|
-
[valueField]="'
|
|
4405
|
+
[valueField]="'size'"
|
|
4179
4406
|
[data]="data"
|
|
4180
4407
|
[(value)]="value"
|
|
4181
4408
|
[valuePrimitive]="true"
|
|
@@ -4186,15 +4413,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
4186
4413
|
(valueChange)="onValueChange($event)"
|
|
4187
4414
|
[style.width.em]="13"
|
|
4188
4415
|
>
|
|
4189
|
-
<ng-template kendoDropDownListItemTemplate let-dataItem>
|
|
4190
|
-
<span [ngStyle]="{ 'font-family': dataItem.fontName }">
|
|
4191
|
-
{{ dataItem.text }}
|
|
4192
|
-
</span>
|
|
4193
|
-
</ng-template>
|
|
4194
4416
|
</kendo-dropdownlist>
|
|
4195
4417
|
`,
|
|
4196
4418
|
standalone: true,
|
|
4197
|
-
imports: [DropDownListComponent, DropDownToolDirective
|
|
4419
|
+
imports: [DropDownListComponent, DropDownToolDirective]
|
|
4198
4420
|
}]
|
|
4199
4421
|
}], propDecorators: { data: [{
|
|
4200
4422
|
type: Input
|
|
@@ -4223,19 +4445,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
4223
4445
|
/**
|
|
4224
4446
|
* @hidden
|
|
4225
4447
|
*/
|
|
4226
|
-
class
|
|
4448
|
+
class FontSizeDialogComponent extends DialogContentBase {
|
|
4449
|
+
dialog;
|
|
4450
|
+
localization;
|
|
4451
|
+
editor;
|
|
4452
|
+
fontSizeDropDownList;
|
|
4453
|
+
data = [];
|
|
4454
|
+
defaultItem;
|
|
4455
|
+
value;
|
|
4456
|
+
itemDisabled;
|
|
4227
4457
|
constructor(dialog, localization) {
|
|
4228
4458
|
super(dialog);
|
|
4229
4459
|
this.dialog = dialog;
|
|
4230
4460
|
this.localization = localization;
|
|
4231
|
-
this.data = [];
|
|
4232
4461
|
}
|
|
4233
4462
|
onCancelAction() {
|
|
4234
4463
|
this.dialog.close();
|
|
4235
4464
|
}
|
|
4236
4465
|
onConfirmAction() {
|
|
4237
4466
|
if (this.value) {
|
|
4238
|
-
this.editor.exec('
|
|
4467
|
+
this.editor.exec('fontSize', this.value);
|
|
4239
4468
|
}
|
|
4240
4469
|
this.dialog.close();
|
|
4241
4470
|
}
|
|
@@ -4249,21 +4478,20 @@ class FontFamilyDialogComponent extends DialogContentBase {
|
|
|
4249
4478
|
textFor(key) {
|
|
4250
4479
|
return this.localization.get(key);
|
|
4251
4480
|
}
|
|
4252
|
-
}
|
|
4253
|
-
|
|
4254
|
-
FontFamilyDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: FontFamilyDialogComponent, isStandalone: true, selector: "ng-component", inputs: { editor: "editor" }, viewQueries: [{ propertyName: "fontFamilyDropDownList", first: true, predicate: ["fontFamilyDropDownList"], descendants: true, read: FontFamilyDropDownListComponent, static: true }], usesInheritance: true, ngImport: i0, template: `
|
|
4481
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FontSizeDialogComponent, deps: [{ token: i1$1.DialogRef }, { token: EditorLocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
4482
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: FontSizeDialogComponent, isStandalone: true, selector: "ng-component", inputs: { editor: "editor" }, viewQueries: [{ propertyName: "fontSizeDropDownList", first: true, predicate: ["fontSizeDropDownList"], descendants: true, read: FontSizeDropDownListComponent, static: true }], usesInheritance: true, ngImport: i0, template: `
|
|
4255
4483
|
<kendo-dialog-titlebar (close)="onCancelAction()">
|
|
4256
|
-
{{ textFor('
|
|
4484
|
+
{{ textFor('fontSize') }}
|
|
4257
4485
|
</kendo-dialog-titlebar>
|
|
4258
4486
|
<div [style.text-align]="'center'">
|
|
4259
|
-
<kendo-editor-
|
|
4260
|
-
#
|
|
4487
|
+
<kendo-editor-fontsize-dropdownlist
|
|
4488
|
+
#fontSizeDropDownList
|
|
4261
4489
|
[defaultItem]="defaultItem"
|
|
4262
4490
|
[data]="data"
|
|
4263
4491
|
[(value)]="value"
|
|
4264
4492
|
[itemDisabled]="itemDisabled"
|
|
4265
4493
|
>
|
|
4266
|
-
</kendo-editor-
|
|
4494
|
+
</kendo-editor-fontsize-dropdownlist>
|
|
4267
4495
|
</div>
|
|
4268
4496
|
<kendo-dialog-actions layout="start">
|
|
4269
4497
|
<button
|
|
@@ -4276,364 +4504,18 @@ FontFamilyDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.
|
|
|
4276
4504
|
(click)="onCancelAction()"
|
|
4277
4505
|
>{{ textFor('dialogCancel') }}</button>
|
|
4278
4506
|
</kendo-dialog-actions>
|
|
4279
|
-
`, isInline: true, dependencies: [{ kind: "component", type: DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { kind: "component", type:
|
|
4280
|
-
|
|
4507
|
+
`, isInline: true, dependencies: [{ kind: "component", type: DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { kind: "component", type: FontSizeDropDownListComponent, selector: "kendo-editor-fontsize-dropdownlist", inputs: ["data", "value", "defaultItem", "itemDisabled", "title", "disabled", "tabindex"], outputs: ["valueChange"] }, { kind: "component", type: DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
|
|
4508
|
+
}
|
|
4509
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FontSizeDialogComponent, decorators: [{
|
|
4281
4510
|
type: Component,
|
|
4282
4511
|
args: [{
|
|
4283
4512
|
template: `
|
|
4284
4513
|
<kendo-dialog-titlebar (close)="onCancelAction()">
|
|
4285
|
-
{{ textFor('
|
|
4514
|
+
{{ textFor('fontSize') }}
|
|
4286
4515
|
</kendo-dialog-titlebar>
|
|
4287
4516
|
<div [style.text-align]="'center'">
|
|
4288
|
-
<kendo-editor-
|
|
4289
|
-
#
|
|
4290
|
-
[defaultItem]="defaultItem"
|
|
4291
|
-
[data]="data"
|
|
4292
|
-
[(value)]="value"
|
|
4293
|
-
[itemDisabled]="itemDisabled"
|
|
4294
|
-
>
|
|
4295
|
-
</kendo-editor-fontfamily-dropdownlist>
|
|
4296
|
-
</div>
|
|
4297
|
-
<kendo-dialog-actions layout="start">
|
|
4298
|
-
<button
|
|
4299
|
-
kendoButton
|
|
4300
|
-
[primary]="true"
|
|
4301
|
-
(click)="onConfirmAction()"
|
|
4302
|
-
>{{ textFor('dialogApply') }}</button>
|
|
4303
|
-
<button
|
|
4304
|
-
kendoButton
|
|
4305
|
-
(click)="onCancelAction()"
|
|
4306
|
-
>{{ textFor('dialogCancel') }}</button>
|
|
4307
|
-
</kendo-dialog-actions>
|
|
4308
|
-
`,
|
|
4309
|
-
standalone: true,
|
|
4310
|
-
imports: [DialogTitleBarComponent, FontFamilyDropDownListComponent, DialogActionsComponent, ButtonComponent]
|
|
4311
|
-
}]
|
|
4312
|
-
}], ctorParameters: function () { return [{ type: i1$1.DialogRef }, { type: EditorLocalizationService }]; }, propDecorators: { editor: [{
|
|
4313
|
-
type: Input
|
|
4314
|
-
}], fontFamilyDropDownList: [{
|
|
4315
|
-
type: ViewChild,
|
|
4316
|
-
args: ['fontFamilyDropDownList', { read: FontFamilyDropDownListComponent, static: true }]
|
|
4317
|
-
}] } });
|
|
4318
|
-
|
|
4319
|
-
/**
|
|
4320
|
-
* @hidden
|
|
4321
|
-
*/
|
|
4322
|
-
class PopupTableGridComponent {
|
|
4323
|
-
constructor(localization) {
|
|
4324
|
-
this.localization = localization;
|
|
4325
|
-
this.cellClick = new EventEmitter();
|
|
4326
|
-
this.tableWizardClick = new EventEmitter();
|
|
4327
|
-
this.tableWizardIcon = tableWizardIcon;
|
|
4328
|
-
this.state = { rows: -1, cols: -1 };
|
|
4329
|
-
this.rows = 6;
|
|
4330
|
-
this.cols = 8;
|
|
4331
|
-
}
|
|
4332
|
-
get message() {
|
|
4333
|
-
const { rows, cols } = this.state;
|
|
4334
|
-
const localizationMsg = this.localization.get('insertTableHint') || '';
|
|
4335
|
-
const rowReplacement = rows > -1 ? (rows + 1).toString() : '';
|
|
4336
|
-
const colReplacement = cols > -1 ? (cols + 1).toString() : '';
|
|
4337
|
-
const xReplacement = cols > -1 ? 'x' : '';
|
|
4338
|
-
return replaceMessagePlaceholder(localizationMsg, [
|
|
4339
|
-
{ placeholder: 'rows', value: rowReplacement },
|
|
4340
|
-
{ placeholder: 'columns', value: colReplacement },
|
|
4341
|
-
{ placeholder: 'x', value: xReplacement }
|
|
4342
|
-
]);
|
|
4343
|
-
}
|
|
4344
|
-
get cells() {
|
|
4345
|
-
return Array.from(Array(this.rows * this.cols).keys());
|
|
4346
|
-
}
|
|
4347
|
-
selected(index) {
|
|
4348
|
-
const { rows, cols } = this.state;
|
|
4349
|
-
const cellRow = Math.floor(index / this.cols);
|
|
4350
|
-
const cellCol = index % this.cols;
|
|
4351
|
-
return cellRow <= rows && cellCol <= cols;
|
|
4352
|
-
}
|
|
4353
|
-
setState(index) {
|
|
4354
|
-
const rows = Math.floor(index / this.cols);
|
|
4355
|
-
const cols = index % this.cols;
|
|
4356
|
-
this.state = { rows: rows, cols: cols };
|
|
4357
|
-
}
|
|
4358
|
-
resetState() {
|
|
4359
|
-
this.state = { rows: -1, cols: -1 };
|
|
4360
|
-
}
|
|
4361
|
-
insertTable() {
|
|
4362
|
-
this.cellClick.emit(this.state);
|
|
4363
|
-
}
|
|
4364
|
-
openTableWizard() {
|
|
4365
|
-
this.tableWizardClick.emit();
|
|
4366
|
-
}
|
|
4367
|
-
}
|
|
4368
|
-
PopupTableGridComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PopupTableGridComponent, deps: [{ token: EditorLocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
4369
|
-
PopupTableGridComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: PopupTableGridComponent, isStandalone: true, selector: "kendo-popup-table-grid", outputs: { cellClick: "cellClick", tableWizardClick: "tableWizardClick" }, ngImport: i0, template: `
|
|
4370
|
-
<div
|
|
4371
|
-
[style.border-color]="'inherit'"
|
|
4372
|
-
class="k-ct-popup"
|
|
4373
|
-
(mouseleave)="resetState()"
|
|
4374
|
-
(click)="insertTable()">
|
|
4375
|
-
<span *ngFor="let i of cells"
|
|
4376
|
-
class="k-ct-cell"
|
|
4377
|
-
[class.k-selected]="selected(i)"
|
|
4378
|
-
[class.k-disabled]="!selected(i)"
|
|
4379
|
-
(mouseenter)="setState(i)">
|
|
4380
|
-
</span>
|
|
4381
|
-
</div>
|
|
4382
|
-
<div class="k-status" unselectable="on">{{ message }}</div>
|
|
4383
|
-
<!-- uncomment when TableWizard is completed
|
|
4384
|
-
<div class="k-editor-toolbar" unselectable="on">
|
|
4385
|
-
<button type="button" kendoButton class="k-tool" [icon]="'table-wizard'" [svgIcon]="tableWizardIcon" (click)="openTableWizard()" title="Table Wizard">Table Wizard</button>
|
|
4386
|
-
</div>
|
|
4387
|
-
-->
|
|
4388
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
4389
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PopupTableGridComponent, decorators: [{
|
|
4390
|
-
type: Component,
|
|
4391
|
-
args: [{
|
|
4392
|
-
selector: 'kendo-popup-table-grid',
|
|
4393
|
-
template: `
|
|
4394
|
-
<div
|
|
4395
|
-
[style.border-color]="'inherit'"
|
|
4396
|
-
class="k-ct-popup"
|
|
4397
|
-
(mouseleave)="resetState()"
|
|
4398
|
-
(click)="insertTable()">
|
|
4399
|
-
<span *ngFor="let i of cells"
|
|
4400
|
-
class="k-ct-cell"
|
|
4401
|
-
[class.k-selected]="selected(i)"
|
|
4402
|
-
[class.k-disabled]="!selected(i)"
|
|
4403
|
-
(mouseenter)="setState(i)">
|
|
4404
|
-
</span>
|
|
4405
|
-
</div>
|
|
4406
|
-
<div class="k-status" unselectable="on">{{ message }}</div>
|
|
4407
|
-
<!-- uncomment when TableWizard is completed
|
|
4408
|
-
<div class="k-editor-toolbar" unselectable="on">
|
|
4409
|
-
<button type="button" kendoButton class="k-tool" [icon]="'table-wizard'" [svgIcon]="tableWizardIcon" (click)="openTableWizard()" title="Table Wizard">Table Wizard</button>
|
|
4410
|
-
</div>
|
|
4411
|
-
-->
|
|
4412
|
-
`,
|
|
4413
|
-
standalone: true,
|
|
4414
|
-
imports: [NgFor]
|
|
4415
|
-
}]
|
|
4416
|
-
}], ctorParameters: function () { return [{ type: EditorLocalizationService }]; }, propDecorators: { cellClick: [{
|
|
4417
|
-
type: Output
|
|
4418
|
-
}], tableWizardClick: [{
|
|
4419
|
-
type: Output
|
|
4420
|
-
}] } });
|
|
4421
|
-
|
|
4422
|
-
/**
|
|
4423
|
-
* @hidden
|
|
4424
|
-
*/
|
|
4425
|
-
class InsertTableDialogComponent extends DialogContentBase {
|
|
4426
|
-
constructor(dialog, localization) {
|
|
4427
|
-
super(dialog);
|
|
4428
|
-
this.dialog = dialog;
|
|
4429
|
-
this.localization = localization;
|
|
4430
|
-
}
|
|
4431
|
-
onCancelAction() {
|
|
4432
|
-
this.dialog.close();
|
|
4433
|
-
this.editor.view.focus();
|
|
4434
|
-
}
|
|
4435
|
-
onCellClick(args) {
|
|
4436
|
-
this.dialog.close();
|
|
4437
|
-
this.editor.exec("insertTable", args);
|
|
4438
|
-
this.editor.view.focus();
|
|
4439
|
-
}
|
|
4440
|
-
setData(args) {
|
|
4441
|
-
this.editor = args.editor;
|
|
4442
|
-
}
|
|
4443
|
-
textFor(key) {
|
|
4444
|
-
return this.localization.get(key);
|
|
4445
|
-
}
|
|
4446
|
-
}
|
|
4447
|
-
InsertTableDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: InsertTableDialogComponent, deps: [{ token: i1$1.DialogRef }, { token: EditorLocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
4448
|
-
InsertTableDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: InsertTableDialogComponent, isStandalone: true, selector: "ng-component", inputs: { editor: "editor" }, usesInheritance: true, ngImport: i0, template: `
|
|
4449
|
-
<kendo-dialog-titlebar (close)="onCancelAction()">
|
|
4450
|
-
{{ textFor('insertTable') }}
|
|
4451
|
-
</kendo-dialog-titlebar>
|
|
4452
|
-
<div [style.text-align]="'center'">
|
|
4453
|
-
<kendo-popup-table-grid (cellClick)="onCellClick($event)"></kendo-popup-table-grid>
|
|
4454
|
-
</div>
|
|
4455
|
-
<kendo-dialog-actions layout="start">
|
|
4456
|
-
<button
|
|
4457
|
-
kendoButton
|
|
4458
|
-
(click)="onCancelAction()"
|
|
4459
|
-
>{{ textFor('dialogCancel') }}</button>
|
|
4460
|
-
</kendo-dialog-actions>
|
|
4461
|
-
`, isInline: true, dependencies: [{ kind: "component", type: DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { kind: "component", type: PopupTableGridComponent, selector: "kendo-popup-table-grid", outputs: ["cellClick", "tableWizardClick"] }, { kind: "component", type: DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
|
|
4462
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: InsertTableDialogComponent, decorators: [{
|
|
4463
|
-
type: Component,
|
|
4464
|
-
args: [{
|
|
4465
|
-
template: `
|
|
4466
|
-
<kendo-dialog-titlebar (close)="onCancelAction()">
|
|
4467
|
-
{{ textFor('insertTable') }}
|
|
4468
|
-
</kendo-dialog-titlebar>
|
|
4469
|
-
<div [style.text-align]="'center'">
|
|
4470
|
-
<kendo-popup-table-grid (cellClick)="onCellClick($event)"></kendo-popup-table-grid>
|
|
4471
|
-
</div>
|
|
4472
|
-
<kendo-dialog-actions layout="start">
|
|
4473
|
-
<button
|
|
4474
|
-
kendoButton
|
|
4475
|
-
(click)="onCancelAction()"
|
|
4476
|
-
>{{ textFor('dialogCancel') }}</button>
|
|
4477
|
-
</kendo-dialog-actions>
|
|
4478
|
-
`,
|
|
4479
|
-
standalone: true,
|
|
4480
|
-
imports: [DialogTitleBarComponent, PopupTableGridComponent, DialogActionsComponent, ButtonComponent]
|
|
4481
|
-
}]
|
|
4482
|
-
}], ctorParameters: function () { return [{ type: i1$1.DialogRef }, { type: EditorLocalizationService }]; }, propDecorators: { editor: [{
|
|
4483
|
-
type: Input
|
|
4484
|
-
}] } });
|
|
4485
|
-
|
|
4486
|
-
/**
|
|
4487
|
-
* @hidden
|
|
4488
|
-
*/
|
|
4489
|
-
class FontSizeDropDownListComponent {
|
|
4490
|
-
constructor() {
|
|
4491
|
-
this.valueChange = new EventEmitter();
|
|
4492
|
-
}
|
|
4493
|
-
onValueChange(size) {
|
|
4494
|
-
this.valueChange.emit(size);
|
|
4495
|
-
}
|
|
4496
|
-
focus() {
|
|
4497
|
-
this.dropDownList.focus();
|
|
4498
|
-
}
|
|
4499
|
-
}
|
|
4500
|
-
FontSizeDropDownListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FontSizeDropDownListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4501
|
-
FontSizeDropDownListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: FontSizeDropDownListComponent, isStandalone: true, selector: "kendo-editor-fontsize-dropdownlist", inputs: { data: "data", value: "value", defaultItem: "defaultItem", itemDisabled: "itemDisabled", title: "title", disabled: "disabled", tabindex: "tabindex" }, outputs: { valueChange: "valueChange" }, viewQueries: [{ propertyName: "element", first: true, predicate: ["element"], descendants: true, static: true }, { propertyName: "dropDownList", first: true, predicate: ["element"], descendants: true, read: DropDownListComponent, static: true }], ngImport: i0, template: `
|
|
4502
|
-
<kendo-dropdownlist
|
|
4503
|
-
#element
|
|
4504
|
-
kendoEditorDropDownTool
|
|
4505
|
-
[defaultItem]="defaultItem"
|
|
4506
|
-
[textField]="'text'"
|
|
4507
|
-
[valueField]="'size'"
|
|
4508
|
-
[data]="data"
|
|
4509
|
-
[(value)]="value"
|
|
4510
|
-
[valuePrimitive]="true"
|
|
4511
|
-
[itemDisabled]="itemDisabled"
|
|
4512
|
-
[attr.title]="title"
|
|
4513
|
-
[disabled]="disabled"
|
|
4514
|
-
[tabindex]="tabindex"
|
|
4515
|
-
(valueChange)="onValueChange($event)"
|
|
4516
|
-
[style.width.em]="13"
|
|
4517
|
-
>
|
|
4518
|
-
</kendo-dropdownlist>
|
|
4519
|
-
`, isInline: true, dependencies: [{ kind: "component", type: DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["customIconClass", "showStickyHeader", "icon", "svgIcon", "loading", "data", "value", "textField", "valueField", "adaptiveMode", "title", "subtitle", "popupSettings", "listHeight", "defaultItem", "disabled", "itemDisabled", "readonly", "filterable", "virtual", "ignoreCase", "delay", "valuePrimitive", "tabindex", "tabIndex", "size", "rounded", "fillMode", "leftRightArrowsNavigation", "id"], outputs: ["valueChange", "filterChange", "selectionChange", "open", "opened", "close", "closed", "focus", "blur"], exportAs: ["kendoDropDownList"] }, { kind: "directive", type: DropDownToolDirective, selector: "[kendoEditorDropDownTool]" }] });
|
|
4520
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FontSizeDropDownListComponent, decorators: [{
|
|
4521
|
-
type: Component,
|
|
4522
|
-
args: [{
|
|
4523
|
-
selector: 'kendo-editor-fontsize-dropdownlist',
|
|
4524
|
-
template: `
|
|
4525
|
-
<kendo-dropdownlist
|
|
4526
|
-
#element
|
|
4527
|
-
kendoEditorDropDownTool
|
|
4528
|
-
[defaultItem]="defaultItem"
|
|
4529
|
-
[textField]="'text'"
|
|
4530
|
-
[valueField]="'size'"
|
|
4531
|
-
[data]="data"
|
|
4532
|
-
[(value)]="value"
|
|
4533
|
-
[valuePrimitive]="true"
|
|
4534
|
-
[itemDisabled]="itemDisabled"
|
|
4535
|
-
[attr.title]="title"
|
|
4536
|
-
[disabled]="disabled"
|
|
4537
|
-
[tabindex]="tabindex"
|
|
4538
|
-
(valueChange)="onValueChange($event)"
|
|
4539
|
-
[style.width.em]="13"
|
|
4540
|
-
>
|
|
4541
|
-
</kendo-dropdownlist>
|
|
4542
|
-
`,
|
|
4543
|
-
standalone: true,
|
|
4544
|
-
imports: [DropDownListComponent, DropDownToolDirective]
|
|
4545
|
-
}]
|
|
4546
|
-
}], propDecorators: { data: [{
|
|
4547
|
-
type: Input
|
|
4548
|
-
}], value: [{
|
|
4549
|
-
type: Input
|
|
4550
|
-
}], defaultItem: [{
|
|
4551
|
-
type: Input
|
|
4552
|
-
}], itemDisabled: [{
|
|
4553
|
-
type: Input
|
|
4554
|
-
}], title: [{
|
|
4555
|
-
type: Input
|
|
4556
|
-
}], disabled: [{
|
|
4557
|
-
type: Input
|
|
4558
|
-
}], tabindex: [{
|
|
4559
|
-
type: Input
|
|
4560
|
-
}], valueChange: [{
|
|
4561
|
-
type: Output
|
|
4562
|
-
}], element: [{
|
|
4563
|
-
type: ViewChild,
|
|
4564
|
-
args: ['element', { static: true }]
|
|
4565
|
-
}], dropDownList: [{
|
|
4566
|
-
type: ViewChild,
|
|
4567
|
-
args: ['element', { read: DropDownListComponent, static: true }]
|
|
4568
|
-
}] } });
|
|
4569
|
-
|
|
4570
|
-
/**
|
|
4571
|
-
* @hidden
|
|
4572
|
-
*/
|
|
4573
|
-
class FontSizeDialogComponent extends DialogContentBase {
|
|
4574
|
-
constructor(dialog, localization) {
|
|
4575
|
-
super(dialog);
|
|
4576
|
-
this.dialog = dialog;
|
|
4577
|
-
this.localization = localization;
|
|
4578
|
-
this.data = [];
|
|
4579
|
-
}
|
|
4580
|
-
onCancelAction() {
|
|
4581
|
-
this.dialog.close();
|
|
4582
|
-
}
|
|
4583
|
-
onConfirmAction() {
|
|
4584
|
-
if (this.value) {
|
|
4585
|
-
this.editor.exec('fontSize', this.value);
|
|
4586
|
-
}
|
|
4587
|
-
this.dialog.close();
|
|
4588
|
-
}
|
|
4589
|
-
setData(args) {
|
|
4590
|
-
this.editor = args.editor;
|
|
4591
|
-
this.data = args.data;
|
|
4592
|
-
this.defaultItem = args.defaultItem;
|
|
4593
|
-
this.value = args.value;
|
|
4594
|
-
this.itemDisabled = args.itemDisabled;
|
|
4595
|
-
}
|
|
4596
|
-
textFor(key) {
|
|
4597
|
-
return this.localization.get(key);
|
|
4598
|
-
}
|
|
4599
|
-
}
|
|
4600
|
-
FontSizeDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FontSizeDialogComponent, deps: [{ token: i1$1.DialogRef }, { token: EditorLocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
4601
|
-
FontSizeDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: FontSizeDialogComponent, isStandalone: true, selector: "ng-component", inputs: { editor: "editor" }, viewQueries: [{ propertyName: "fontSizeDropDownList", first: true, predicate: ["fontSizeDropDownList"], descendants: true, read: FontSizeDropDownListComponent, static: true }], usesInheritance: true, ngImport: i0, template: `
|
|
4602
|
-
<kendo-dialog-titlebar (close)="onCancelAction()">
|
|
4603
|
-
{{ textFor('fontSize') }}
|
|
4604
|
-
</kendo-dialog-titlebar>
|
|
4605
|
-
<div [style.text-align]="'center'">
|
|
4606
|
-
<kendo-editor-fontsize-dropdownlist
|
|
4607
|
-
#fontSizeDropDownList
|
|
4608
|
-
[defaultItem]="defaultItem"
|
|
4609
|
-
[data]="data"
|
|
4610
|
-
[(value)]="value"
|
|
4611
|
-
[itemDisabled]="itemDisabled"
|
|
4612
|
-
>
|
|
4613
|
-
</kendo-editor-fontsize-dropdownlist>
|
|
4614
|
-
</div>
|
|
4615
|
-
<kendo-dialog-actions layout="start">
|
|
4616
|
-
<button
|
|
4617
|
-
kendoButton
|
|
4618
|
-
[primary]="true"
|
|
4619
|
-
(click)="onConfirmAction()"
|
|
4620
|
-
>{{ textFor('dialogApply') }}</button>
|
|
4621
|
-
<button
|
|
4622
|
-
kendoButton
|
|
4623
|
-
(click)="onCancelAction()"
|
|
4624
|
-
>{{ textFor('dialogCancel') }}</button>
|
|
4625
|
-
</kendo-dialog-actions>
|
|
4626
|
-
`, isInline: true, dependencies: [{ kind: "component", type: DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { kind: "component", type: FontSizeDropDownListComponent, selector: "kendo-editor-fontsize-dropdownlist", inputs: ["data", "value", "defaultItem", "itemDisabled", "title", "disabled", "tabindex"], outputs: ["valueChange"] }, { kind: "component", type: DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
|
|
4627
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FontSizeDialogComponent, decorators: [{
|
|
4628
|
-
type: Component,
|
|
4629
|
-
args: [{
|
|
4630
|
-
template: `
|
|
4631
|
-
<kendo-dialog-titlebar (close)="onCancelAction()">
|
|
4632
|
-
{{ textFor('fontSize') }}
|
|
4633
|
-
</kendo-dialog-titlebar>
|
|
4634
|
-
<div [style.text-align]="'center'">
|
|
4635
|
-
<kendo-editor-fontsize-dropdownlist
|
|
4636
|
-
#fontSizeDropDownList
|
|
4517
|
+
<kendo-editor-fontsize-dropdownlist
|
|
4518
|
+
#fontSizeDropDownList
|
|
4637
4519
|
[defaultItem]="defaultItem"
|
|
4638
4520
|
[data]="data"
|
|
4639
4521
|
[(value)]="value"
|
|
@@ -4675,31 +4557,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
4675
4557
|
* ```
|
|
4676
4558
|
*/
|
|
4677
4559
|
class EditorFontSizeComponent extends ToolBarToolComponent {
|
|
4678
|
-
|
|
4679
|
-
|
|
4680
|
-
|
|
4681
|
-
|
|
4682
|
-
|
|
4683
|
-
|
|
4684
|
-
|
|
4685
|
-
this.tabindex = -1;
|
|
4686
|
-
/**
|
|
4687
|
-
* Fires when the user updates the value of the drop-down list.
|
|
4688
|
-
*/
|
|
4689
|
-
this.valueChange = new EventEmitter();
|
|
4690
|
-
this.fontSizeSVGIcon = fontSizeIcon;
|
|
4691
|
-
this._data = [
|
|
4692
|
-
{ text: '8px', size: '8px' },
|
|
4693
|
-
{ text: '10px', size: '10px' },
|
|
4694
|
-
{ text: '12px', size: '12px' },
|
|
4695
|
-
{ text: '14px', size: '14px' },
|
|
4696
|
-
{ text: '18px', size: '18px' },
|
|
4697
|
-
{ text: '24px', size: '24px' },
|
|
4698
|
-
{ text: '36px', size: '36px' }
|
|
4699
|
-
];
|
|
4700
|
-
this.editor = providerService.editor;
|
|
4701
|
-
this.isBuiltInTool = true;
|
|
4702
|
-
}
|
|
4560
|
+
dialogService;
|
|
4561
|
+
localization;
|
|
4562
|
+
toolsService;
|
|
4563
|
+
renderer;
|
|
4564
|
+
value;
|
|
4565
|
+
disabled = false;
|
|
4566
|
+
tabindex = -1;
|
|
4703
4567
|
/**
|
|
4704
4568
|
* Overrides the default font size list.
|
|
4705
4569
|
* Numeric values are treated as pixels.
|
|
@@ -4719,6 +4583,42 @@ class EditorFontSizeComponent extends ToolBarToolComponent {
|
|
|
4719
4583
|
get data() {
|
|
4720
4584
|
return this._data;
|
|
4721
4585
|
}
|
|
4586
|
+
/**
|
|
4587
|
+
* Fires when the user updates the value of the drop-down list.
|
|
4588
|
+
*/
|
|
4589
|
+
valueChange = new EventEmitter();
|
|
4590
|
+
element;
|
|
4591
|
+
fontSizeDropDownList;
|
|
4592
|
+
fontSizeButton;
|
|
4593
|
+
/**
|
|
4594
|
+
* @hidden
|
|
4595
|
+
*/
|
|
4596
|
+
defaultItem;
|
|
4597
|
+
fontSizeSVGIcon = fontSizeIcon;
|
|
4598
|
+
/**
|
|
4599
|
+
* @hidden
|
|
4600
|
+
*/
|
|
4601
|
+
itemDisabled;
|
|
4602
|
+
subs;
|
|
4603
|
+
editor;
|
|
4604
|
+
_data = [
|
|
4605
|
+
{ text: '8px', size: '8px' },
|
|
4606
|
+
{ text: '10px', size: '10px' },
|
|
4607
|
+
{ text: '12px', size: '12px' },
|
|
4608
|
+
{ text: '14px', size: '14px' },
|
|
4609
|
+
{ text: '18px', size: '18px' },
|
|
4610
|
+
{ text: '24px', size: '24px' },
|
|
4611
|
+
{ text: '36px', size: '36px' }
|
|
4612
|
+
];
|
|
4613
|
+
constructor(dialogService, localization, providerService, toolsService, renderer) {
|
|
4614
|
+
super();
|
|
4615
|
+
this.dialogService = dialogService;
|
|
4616
|
+
this.localization = localization;
|
|
4617
|
+
this.toolsService = toolsService;
|
|
4618
|
+
this.renderer = renderer;
|
|
4619
|
+
this.editor = providerService.editor;
|
|
4620
|
+
this.isBuiltInTool = true;
|
|
4621
|
+
}
|
|
4722
4622
|
ngOnInit() {
|
|
4723
4623
|
this.itemDisabled = itemArgs => {
|
|
4724
4624
|
if (!this.overflows && this.fontSizeDropDownList && !this.fontSizeDropDownList.dropDownList.isOpen) {
|
|
@@ -4801,104 +4701,302 @@ class EditorFontSizeComponent extends ToolBarToolComponent {
|
|
|
4801
4701
|
this.fontSizeDropDownList?.focus();
|
|
4802
4702
|
}
|
|
4803
4703
|
}
|
|
4804
|
-
/**
|
|
4805
|
-
* @hidden
|
|
4806
|
-
*/
|
|
4807
|
-
handleKey() {
|
|
4808
|
-
this.tabindex = -1;
|
|
4809
|
-
return false;
|
|
4704
|
+
/**
|
|
4705
|
+
* @hidden
|
|
4706
|
+
*/
|
|
4707
|
+
handleKey() {
|
|
4708
|
+
this.tabindex = -1;
|
|
4709
|
+
return false;
|
|
4710
|
+
}
|
|
4711
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorFontSizeComponent, deps: [{ token: i1$1.DialogService }, { token: EditorLocalizationService }, { token: ProviderService }, { token: EditorToolsService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
4712
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: EditorFontSizeComponent, isStandalone: true, selector: "kendo-toolbar-dropdownlist[kendoEditorFontSize]", inputs: { data: "data" }, outputs: { valueChange: "valueChange" }, providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => EditorFontSizeComponent) }], viewQueries: [{ propertyName: "element", first: true, predicate: ["element"], descendants: true }, { propertyName: "fontSizeDropDownList", first: true, predicate: ["element"], descendants: true, read: FontSizeDropDownListComponent }, { propertyName: "fontSizeButton", first: true, predicate: ["fontSizeButton"], descendants: true, read: ElementRef }], usesInheritance: true, ngImport: i0, template: `
|
|
4713
|
+
<ng-template #toolbarTemplate>
|
|
4714
|
+
<kendo-editor-fontsize-dropdownlist
|
|
4715
|
+
#element
|
|
4716
|
+
[defaultItem]="defaultItem"
|
|
4717
|
+
[data]="data"
|
|
4718
|
+
[(value)]="value"
|
|
4719
|
+
[itemDisabled]="itemDisabled"
|
|
4720
|
+
[title]="title"
|
|
4721
|
+
[disabled]="disabled"
|
|
4722
|
+
[tabindex]="tabindex"
|
|
4723
|
+
(valueChange)="onValueChange($event)"
|
|
4724
|
+
>
|
|
4725
|
+
</kendo-editor-fontsize-dropdownlist>
|
|
4726
|
+
</ng-template>
|
|
4727
|
+
<ng-template #popupTemplate>
|
|
4728
|
+
<div #fontSizeButton
|
|
4729
|
+
tabindex="-1"
|
|
4730
|
+
role="menuitem"
|
|
4731
|
+
class="k-item k-menu-item"
|
|
4732
|
+
[class.k-disabled]="disabled"
|
|
4733
|
+
[tabindex]="tabindex"
|
|
4734
|
+
(click)="openDialog()">
|
|
4735
|
+
<span
|
|
4736
|
+
class="k-link k-menu-link">
|
|
4737
|
+
<kendo-icon-wrapper name="font-size" [svgIcon]="fontSizeSVGIcon"></kendo-icon-wrapper>
|
|
4738
|
+
<span *ngIf="title" class="k-menu-link-text">{{title}}</span>
|
|
4739
|
+
</span>
|
|
4740
|
+
</div>
|
|
4741
|
+
</ng-template>
|
|
4742
|
+
`, isInline: true, dependencies: [{ kind: "component", type: FontSizeDropDownListComponent, selector: "kendo-editor-fontsize-dropdownlist", inputs: ["data", "value", "defaultItem", "itemDisabled", "title", "disabled", "tabindex"], outputs: ["valueChange"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
4743
|
+
}
|
|
4744
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorFontSizeComponent, decorators: [{
|
|
4745
|
+
type: Component,
|
|
4746
|
+
args: [{
|
|
4747
|
+
providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => EditorFontSizeComponent) }],
|
|
4748
|
+
selector: 'kendo-toolbar-dropdownlist[kendoEditorFontSize]',
|
|
4749
|
+
template: `
|
|
4750
|
+
<ng-template #toolbarTemplate>
|
|
4751
|
+
<kendo-editor-fontsize-dropdownlist
|
|
4752
|
+
#element
|
|
4753
|
+
[defaultItem]="defaultItem"
|
|
4754
|
+
[data]="data"
|
|
4755
|
+
[(value)]="value"
|
|
4756
|
+
[itemDisabled]="itemDisabled"
|
|
4757
|
+
[title]="title"
|
|
4758
|
+
[disabled]="disabled"
|
|
4759
|
+
[tabindex]="tabindex"
|
|
4760
|
+
(valueChange)="onValueChange($event)"
|
|
4761
|
+
>
|
|
4762
|
+
</kendo-editor-fontsize-dropdownlist>
|
|
4763
|
+
</ng-template>
|
|
4764
|
+
<ng-template #popupTemplate>
|
|
4765
|
+
<div #fontSizeButton
|
|
4766
|
+
tabindex="-1"
|
|
4767
|
+
role="menuitem"
|
|
4768
|
+
class="k-item k-menu-item"
|
|
4769
|
+
[class.k-disabled]="disabled"
|
|
4770
|
+
[tabindex]="tabindex"
|
|
4771
|
+
(click)="openDialog()">
|
|
4772
|
+
<span
|
|
4773
|
+
class="k-link k-menu-link">
|
|
4774
|
+
<kendo-icon-wrapper name="font-size" [svgIcon]="fontSizeSVGIcon"></kendo-icon-wrapper>
|
|
4775
|
+
<span *ngIf="title" class="k-menu-link-text">{{title}}</span>
|
|
4776
|
+
</span>
|
|
4777
|
+
</div>
|
|
4778
|
+
</ng-template>
|
|
4779
|
+
`,
|
|
4780
|
+
standalone: true,
|
|
4781
|
+
imports: [FontSizeDropDownListComponent, IconWrapperComponent, NgIf]
|
|
4782
|
+
}]
|
|
4783
|
+
}], ctorParameters: function () { return [{ type: i1$1.DialogService }, { type: EditorLocalizationService }, { type: ProviderService }, { type: EditorToolsService }, { type: i0.Renderer2 }]; }, propDecorators: { data: [{
|
|
4784
|
+
type: Input
|
|
4785
|
+
}], valueChange: [{
|
|
4786
|
+
type: Output
|
|
4787
|
+
}], element: [{
|
|
4788
|
+
type: ViewChild,
|
|
4789
|
+
args: ['element']
|
|
4790
|
+
}], fontSizeDropDownList: [{
|
|
4791
|
+
type: ViewChild,
|
|
4792
|
+
args: ['element', { read: FontSizeDropDownListComponent, static: false }]
|
|
4793
|
+
}], fontSizeButton: [{
|
|
4794
|
+
type: ViewChild,
|
|
4795
|
+
args: ['fontSizeButton', { read: ElementRef }]
|
|
4796
|
+
}] } });
|
|
4797
|
+
|
|
4798
|
+
/**
|
|
4799
|
+
* @hidden
|
|
4800
|
+
*/
|
|
4801
|
+
class FontFamilyDropDownListComponent {
|
|
4802
|
+
data;
|
|
4803
|
+
value;
|
|
4804
|
+
defaultItem;
|
|
4805
|
+
itemDisabled;
|
|
4806
|
+
title;
|
|
4807
|
+
disabled;
|
|
4808
|
+
tabindex;
|
|
4809
|
+
valueChange = new EventEmitter();
|
|
4810
|
+
element;
|
|
4811
|
+
dropDownList;
|
|
4812
|
+
onValueChange(tag) {
|
|
4813
|
+
this.valueChange.emit(tag);
|
|
4814
|
+
}
|
|
4815
|
+
focus() {
|
|
4816
|
+
this.dropDownList.focus();
|
|
4817
|
+
}
|
|
4818
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FontFamilyDropDownListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4819
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: FontFamilyDropDownListComponent, isStandalone: true, selector: "kendo-editor-fontfamily-dropdownlist", inputs: { data: "data", value: "value", defaultItem: "defaultItem", itemDisabled: "itemDisabled", title: "title", disabled: "disabled", tabindex: "tabindex" }, outputs: { valueChange: "valueChange" }, viewQueries: [{ propertyName: "element", first: true, predicate: ["element"], descendants: true, static: true }, { propertyName: "dropDownList", first: true, predicate: ["element"], descendants: true, read: DropDownListComponent, static: true }], ngImport: i0, template: `
|
|
4820
|
+
<kendo-dropdownlist
|
|
4821
|
+
#element
|
|
4822
|
+
kendoEditorDropDownTool
|
|
4823
|
+
[defaultItem]="defaultItem"
|
|
4824
|
+
[textField]="'text'"
|
|
4825
|
+
[valueField]="'fontName'"
|
|
4826
|
+
[data]="data"
|
|
4827
|
+
[(value)]="value"
|
|
4828
|
+
[valuePrimitive]="true"
|
|
4829
|
+
[itemDisabled]="itemDisabled"
|
|
4830
|
+
[attr.title]="title"
|
|
4831
|
+
[disabled]="disabled"
|
|
4832
|
+
[tabindex]="tabindex"
|
|
4833
|
+
(valueChange)="onValueChange($event)"
|
|
4834
|
+
[style.width.em]="13"
|
|
4835
|
+
>
|
|
4836
|
+
<ng-template kendoDropDownListItemTemplate let-dataItem>
|
|
4837
|
+
<span [ngStyle]="{ 'font-family': dataItem.fontName }">
|
|
4838
|
+
{{ dataItem.text }}
|
|
4839
|
+
</span>
|
|
4840
|
+
</ng-template>
|
|
4841
|
+
</kendo-dropdownlist>
|
|
4842
|
+
`, isInline: true, dependencies: [{ kind: "component", type: DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["customIconClass", "showStickyHeader", "icon", "svgIcon", "loading", "data", "value", "textField", "valueField", "adaptiveMode", "title", "subtitle", "popupSettings", "listHeight", "defaultItem", "disabled", "itemDisabled", "readonly", "filterable", "virtual", "ignoreCase", "delay", "valuePrimitive", "tabindex", "tabIndex", "size", "rounded", "fillMode", "leftRightArrowsNavigation", "id"], outputs: ["valueChange", "filterChange", "selectionChange", "open", "opened", "close", "closed", "focus", "blur"], exportAs: ["kendoDropDownList"] }, { kind: "directive", type: DropDownToolDirective, selector: "[kendoEditorDropDownTool]" }, { kind: "directive", type: ItemTemplateDirective, selector: "[kendoDropDownListItemTemplate],[kendoComboBoxItemTemplate],[kendoAutoCompleteItemTemplate],[kendoMultiSelectItemTemplate]" }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
|
|
4843
|
+
}
|
|
4844
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FontFamilyDropDownListComponent, decorators: [{
|
|
4845
|
+
type: Component,
|
|
4846
|
+
args: [{
|
|
4847
|
+
selector: 'kendo-editor-fontfamily-dropdownlist',
|
|
4848
|
+
template: `
|
|
4849
|
+
<kendo-dropdownlist
|
|
4850
|
+
#element
|
|
4851
|
+
kendoEditorDropDownTool
|
|
4852
|
+
[defaultItem]="defaultItem"
|
|
4853
|
+
[textField]="'text'"
|
|
4854
|
+
[valueField]="'fontName'"
|
|
4855
|
+
[data]="data"
|
|
4856
|
+
[(value)]="value"
|
|
4857
|
+
[valuePrimitive]="true"
|
|
4858
|
+
[itemDisabled]="itemDisabled"
|
|
4859
|
+
[attr.title]="title"
|
|
4860
|
+
[disabled]="disabled"
|
|
4861
|
+
[tabindex]="tabindex"
|
|
4862
|
+
(valueChange)="onValueChange($event)"
|
|
4863
|
+
[style.width.em]="13"
|
|
4864
|
+
>
|
|
4865
|
+
<ng-template kendoDropDownListItemTemplate let-dataItem>
|
|
4866
|
+
<span [ngStyle]="{ 'font-family': dataItem.fontName }">
|
|
4867
|
+
{{ dataItem.text }}
|
|
4868
|
+
</span>
|
|
4869
|
+
</ng-template>
|
|
4870
|
+
</kendo-dropdownlist>
|
|
4871
|
+
`,
|
|
4872
|
+
standalone: true,
|
|
4873
|
+
imports: [DropDownListComponent, DropDownToolDirective, ItemTemplateDirective, NgStyle]
|
|
4874
|
+
}]
|
|
4875
|
+
}], propDecorators: { data: [{
|
|
4876
|
+
type: Input
|
|
4877
|
+
}], value: [{
|
|
4878
|
+
type: Input
|
|
4879
|
+
}], defaultItem: [{
|
|
4880
|
+
type: Input
|
|
4881
|
+
}], itemDisabled: [{
|
|
4882
|
+
type: Input
|
|
4883
|
+
}], title: [{
|
|
4884
|
+
type: Input
|
|
4885
|
+
}], disabled: [{
|
|
4886
|
+
type: Input
|
|
4887
|
+
}], tabindex: [{
|
|
4888
|
+
type: Input
|
|
4889
|
+
}], valueChange: [{
|
|
4890
|
+
type: Output
|
|
4891
|
+
}], element: [{
|
|
4892
|
+
type: ViewChild,
|
|
4893
|
+
args: ['element', { static: true }]
|
|
4894
|
+
}], dropDownList: [{
|
|
4895
|
+
type: ViewChild,
|
|
4896
|
+
args: ['element', { read: DropDownListComponent, static: true }]
|
|
4897
|
+
}] } });
|
|
4898
|
+
|
|
4899
|
+
/**
|
|
4900
|
+
* @hidden
|
|
4901
|
+
*/
|
|
4902
|
+
class FontFamilyDialogComponent extends DialogContentBase {
|
|
4903
|
+
dialog;
|
|
4904
|
+
localization;
|
|
4905
|
+
editor;
|
|
4906
|
+
fontFamilyDropDownList;
|
|
4907
|
+
data = [];
|
|
4908
|
+
defaultItem;
|
|
4909
|
+
value;
|
|
4910
|
+
itemDisabled;
|
|
4911
|
+
constructor(dialog, localization) {
|
|
4912
|
+
super(dialog);
|
|
4913
|
+
this.dialog = dialog;
|
|
4914
|
+
this.localization = localization;
|
|
4915
|
+
}
|
|
4916
|
+
onCancelAction() {
|
|
4917
|
+
this.dialog.close();
|
|
4918
|
+
}
|
|
4919
|
+
onConfirmAction() {
|
|
4920
|
+
if (this.value) {
|
|
4921
|
+
this.editor.exec('fontFamily', this.value);
|
|
4922
|
+
}
|
|
4923
|
+
this.dialog.close();
|
|
4924
|
+
}
|
|
4925
|
+
setData(args) {
|
|
4926
|
+
this.editor = args.editor;
|
|
4927
|
+
this.data = args.data;
|
|
4928
|
+
this.defaultItem = args.defaultItem;
|
|
4929
|
+
this.value = args.value;
|
|
4930
|
+
this.itemDisabled = args.itemDisabled;
|
|
4810
4931
|
}
|
|
4811
|
-
|
|
4812
|
-
|
|
4813
|
-
|
|
4814
|
-
|
|
4815
|
-
|
|
4816
|
-
|
|
4932
|
+
textFor(key) {
|
|
4933
|
+
return this.localization.get(key);
|
|
4934
|
+
}
|
|
4935
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FontFamilyDialogComponent, deps: [{ token: i1$1.DialogRef }, { token: EditorLocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
4936
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: FontFamilyDialogComponent, isStandalone: true, selector: "ng-component", inputs: { editor: "editor" }, viewQueries: [{ propertyName: "fontFamilyDropDownList", first: true, predicate: ["fontFamilyDropDownList"], descendants: true, read: FontFamilyDropDownListComponent, static: true }], usesInheritance: true, ngImport: i0, template: `
|
|
4937
|
+
<kendo-dialog-titlebar (close)="onCancelAction()">
|
|
4938
|
+
{{ textFor('fontFamily') }}
|
|
4939
|
+
</kendo-dialog-titlebar>
|
|
4940
|
+
<div [style.text-align]="'center'">
|
|
4941
|
+
<kendo-editor-fontfamily-dropdownlist
|
|
4942
|
+
#fontFamilyDropDownList
|
|
4817
4943
|
[defaultItem]="defaultItem"
|
|
4818
4944
|
[data]="data"
|
|
4819
4945
|
[(value)]="value"
|
|
4820
4946
|
[itemDisabled]="itemDisabled"
|
|
4821
|
-
[title]="title"
|
|
4822
|
-
[disabled]="disabled"
|
|
4823
|
-
[tabindex]="tabindex"
|
|
4824
|
-
(valueChange)="onValueChange($event)"
|
|
4825
4947
|
>
|
|
4826
|
-
</kendo-editor-
|
|
4827
|
-
</
|
|
4828
|
-
<
|
|
4829
|
-
<
|
|
4830
|
-
|
|
4831
|
-
|
|
4832
|
-
|
|
4833
|
-
|
|
4834
|
-
|
|
4835
|
-
|
|
4836
|
-
|
|
4837
|
-
|
|
4838
|
-
|
|
4839
|
-
|
|
4840
|
-
|
|
4841
|
-
|
|
4842
|
-
</ng-template>
|
|
4843
|
-
`, isInline: true, dependencies: [{ kind: "component", type: FontSizeDropDownListComponent, selector: "kendo-editor-fontsize-dropdownlist", inputs: ["data", "value", "defaultItem", "itemDisabled", "title", "disabled", "tabindex"], outputs: ["valueChange"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
4844
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EditorFontSizeComponent, decorators: [{
|
|
4948
|
+
</kendo-editor-fontfamily-dropdownlist>
|
|
4949
|
+
</div>
|
|
4950
|
+
<kendo-dialog-actions layout="start">
|
|
4951
|
+
<button
|
|
4952
|
+
kendoButton
|
|
4953
|
+
[primary]="true"
|
|
4954
|
+
(click)="onConfirmAction()"
|
|
4955
|
+
>{{ textFor('dialogApply') }}</button>
|
|
4956
|
+
<button
|
|
4957
|
+
kendoButton
|
|
4958
|
+
(click)="onCancelAction()"
|
|
4959
|
+
>{{ textFor('dialogCancel') }}</button>
|
|
4960
|
+
</kendo-dialog-actions>
|
|
4961
|
+
`, isInline: true, dependencies: [{ kind: "component", type: DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { kind: "component", type: FontFamilyDropDownListComponent, selector: "kendo-editor-fontfamily-dropdownlist", inputs: ["data", "value", "defaultItem", "itemDisabled", "title", "disabled", "tabindex"], outputs: ["valueChange"] }, { kind: "component", type: DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
|
|
4962
|
+
}
|
|
4963
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FontFamilyDialogComponent, decorators: [{
|
|
4845
4964
|
type: Component,
|
|
4846
4965
|
args: [{
|
|
4847
|
-
providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => EditorFontSizeComponent) }],
|
|
4848
|
-
selector: 'kendo-toolbar-dropdownlist[kendoEditorFontSize]',
|
|
4849
4966
|
template: `
|
|
4850
|
-
<
|
|
4851
|
-
|
|
4852
|
-
|
|
4967
|
+
<kendo-dialog-titlebar (close)="onCancelAction()">
|
|
4968
|
+
{{ textFor('fontFamily') }}
|
|
4969
|
+
</kendo-dialog-titlebar>
|
|
4970
|
+
<div [style.text-align]="'center'">
|
|
4971
|
+
<kendo-editor-fontfamily-dropdownlist
|
|
4972
|
+
#fontFamilyDropDownList
|
|
4853
4973
|
[defaultItem]="defaultItem"
|
|
4854
4974
|
[data]="data"
|
|
4855
4975
|
[(value)]="value"
|
|
4856
4976
|
[itemDisabled]="itemDisabled"
|
|
4857
|
-
[title]="title"
|
|
4858
|
-
[disabled]="disabled"
|
|
4859
|
-
[tabindex]="tabindex"
|
|
4860
|
-
(valueChange)="onValueChange($event)"
|
|
4861
4977
|
>
|
|
4862
|
-
</kendo-editor-
|
|
4863
|
-
</
|
|
4864
|
-
<
|
|
4865
|
-
<
|
|
4866
|
-
|
|
4867
|
-
|
|
4868
|
-
|
|
4869
|
-
|
|
4870
|
-
|
|
4871
|
-
|
|
4872
|
-
|
|
4873
|
-
|
|
4874
|
-
|
|
4875
|
-
<span *ngIf="title" class="k-menu-link-text">{{title}}</span>
|
|
4876
|
-
</span>
|
|
4877
|
-
</div>
|
|
4878
|
-
</ng-template>
|
|
4978
|
+
</kendo-editor-fontfamily-dropdownlist>
|
|
4979
|
+
</div>
|
|
4980
|
+
<kendo-dialog-actions layout="start">
|
|
4981
|
+
<button
|
|
4982
|
+
kendoButton
|
|
4983
|
+
[primary]="true"
|
|
4984
|
+
(click)="onConfirmAction()"
|
|
4985
|
+
>{{ textFor('dialogApply') }}</button>
|
|
4986
|
+
<button
|
|
4987
|
+
kendoButton
|
|
4988
|
+
(click)="onCancelAction()"
|
|
4989
|
+
>{{ textFor('dialogCancel') }}</button>
|
|
4990
|
+
</kendo-dialog-actions>
|
|
4879
4991
|
`,
|
|
4880
4992
|
standalone: true,
|
|
4881
|
-
imports: [
|
|
4993
|
+
imports: [DialogTitleBarComponent, FontFamilyDropDownListComponent, DialogActionsComponent, ButtonComponent]
|
|
4882
4994
|
}]
|
|
4883
|
-
}], ctorParameters: function () { return [{ type: i1$1.
|
|
4995
|
+
}], ctorParameters: function () { return [{ type: i1$1.DialogRef }, { type: EditorLocalizationService }]; }, propDecorators: { editor: [{
|
|
4884
4996
|
type: Input
|
|
4885
|
-
}],
|
|
4886
|
-
type: Output
|
|
4887
|
-
}], toolbarTemplate: [{
|
|
4888
|
-
type: ViewChild,
|
|
4889
|
-
args: ['toolbarTemplate', { static: true }]
|
|
4890
|
-
}], popupTemplate: [{
|
|
4891
|
-
type: ViewChild,
|
|
4892
|
-
args: ['popupTemplate', { static: true }]
|
|
4893
|
-
}], element: [{
|
|
4894
|
-
type: ViewChild,
|
|
4895
|
-
args: ['element']
|
|
4896
|
-
}], fontSizeDropDownList: [{
|
|
4897
|
-
type: ViewChild,
|
|
4898
|
-
args: ['element', { read: FontSizeDropDownListComponent, static: false }]
|
|
4899
|
-
}], fontSizeButton: [{
|
|
4997
|
+
}], fontFamilyDropDownList: [{
|
|
4900
4998
|
type: ViewChild,
|
|
4901
|
-
args: ['
|
|
4999
|
+
args: ['fontFamilyDropDownList', { read: FontFamilyDropDownListComponent, static: true }]
|
|
4902
5000
|
}] } });
|
|
4903
5001
|
|
|
4904
5002
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
@@ -4914,36 +5012,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
4914
5012
|
* ```
|
|
4915
5013
|
*/
|
|
4916
5014
|
class EditorFontFamilyComponent extends ToolBarToolComponent {
|
|
4917
|
-
|
|
4918
|
-
|
|
4919
|
-
|
|
4920
|
-
|
|
4921
|
-
|
|
4922
|
-
|
|
4923
|
-
|
|
4924
|
-
this.tabindex = -1;
|
|
4925
|
-
/**
|
|
4926
|
-
* Fires when the user updates the value of the drop-down list.
|
|
4927
|
-
*/
|
|
4928
|
-
this.valueChange = new EventEmitter();
|
|
4929
|
-
this.fontFamilySVGIcon = fontFamilyIcon;
|
|
4930
|
-
this._data = [
|
|
4931
|
-
{ text: 'Arial', fontName: 'Arial,"Helvetica Neue",Helvetica,sans-serif' },
|
|
4932
|
-
{ text: 'Courier New', fontName: '"Courier New",Courier,"Lucida Sans Typewriter","Lucida Typewriter",monospace' },
|
|
4933
|
-
{ text: 'Georgia', fontName: 'Georgia,Times,"Times New Roman",serif' },
|
|
4934
|
-
{
|
|
4935
|
-
fontName: 'Impact,Haettenschweiler,"Franklin Gothic Bold",Charcoal,"Helvetica Inserat","Bitstream Vera Sans Bold","Arial Black","sans serif"',
|
|
4936
|
-
text: 'Impact'
|
|
4937
|
-
},
|
|
4938
|
-
{ text: 'Lucida Console', fontName: '"Lucida Console","Lucida Sans Typewriter",monaco,"Bitstream Vera Sans Mono",monospace' },
|
|
4939
|
-
{ text: 'Tahoma', fontName: 'Tahoma,Verdana,Segoe,sans-serif' },
|
|
4940
|
-
{ text: 'Times New Roman', fontName: 'TimesNewRoman,"Times New Roman",Times,Baskerville,Georgia,serif' },
|
|
4941
|
-
{ text: 'Trebuchet MS', fontName: '"Trebuchet MS","Lucida Grande","Lucida Sans Unicode","Lucida Sans",Tahoma,sans-serif' },
|
|
4942
|
-
{ text: 'Verdana', fontName: 'Verdana,Geneva,sans-serif' }
|
|
4943
|
-
];
|
|
4944
|
-
this.editor = providerService.editor;
|
|
4945
|
-
this.isBuiltInTool = true;
|
|
4946
|
-
}
|
|
5015
|
+
dialogService;
|
|
5016
|
+
localization;
|
|
5017
|
+
toolsService;
|
|
5018
|
+
renderer;
|
|
5019
|
+
value;
|
|
5020
|
+
disabled = false;
|
|
5021
|
+
tabindex = -1;
|
|
4947
5022
|
/**
|
|
4948
5023
|
* Overrides the default font list.
|
|
4949
5024
|
*/
|
|
@@ -4953,6 +5028,47 @@ class EditorFontFamilyComponent extends ToolBarToolComponent {
|
|
|
4953
5028
|
get data() {
|
|
4954
5029
|
return this._data;
|
|
4955
5030
|
}
|
|
5031
|
+
/**
|
|
5032
|
+
* Fires when the user updates the value of the drop-down list.
|
|
5033
|
+
*/
|
|
5034
|
+
valueChange = new EventEmitter();
|
|
5035
|
+
element;
|
|
5036
|
+
fontFamilyDropDownList;
|
|
5037
|
+
fontFamilyButton;
|
|
5038
|
+
/**
|
|
5039
|
+
* @hidden
|
|
5040
|
+
*/
|
|
5041
|
+
defaultItem;
|
|
5042
|
+
/**
|
|
5043
|
+
* @hidden
|
|
5044
|
+
*/
|
|
5045
|
+
itemDisabled;
|
|
5046
|
+
fontFamilySVGIcon = fontFamilyIcon;
|
|
5047
|
+
subs;
|
|
5048
|
+
editor;
|
|
5049
|
+
_data = [
|
|
5050
|
+
{ text: 'Arial', fontName: 'Arial,"Helvetica Neue",Helvetica,sans-serif' },
|
|
5051
|
+
{ text: 'Courier New', fontName: '"Courier New",Courier,"Lucida Sans Typewriter","Lucida Typewriter",monospace' },
|
|
5052
|
+
{ text: 'Georgia', fontName: 'Georgia,Times,"Times New Roman",serif' },
|
|
5053
|
+
{
|
|
5054
|
+
fontName: 'Impact,Haettenschweiler,"Franklin Gothic Bold",Charcoal,"Helvetica Inserat","Bitstream Vera Sans Bold","Arial Black","sans serif"',
|
|
5055
|
+
text: 'Impact'
|
|
5056
|
+
},
|
|
5057
|
+
{ text: 'Lucida Console', fontName: '"Lucida Console","Lucida Sans Typewriter",monaco,"Bitstream Vera Sans Mono",monospace' },
|
|
5058
|
+
{ text: 'Tahoma', fontName: 'Tahoma,Verdana,Segoe,sans-serif' },
|
|
5059
|
+
{ text: 'Times New Roman', fontName: 'TimesNewRoman,"Times New Roman",Times,Baskerville,Georgia,serif' },
|
|
5060
|
+
{ text: 'Trebuchet MS', fontName: '"Trebuchet MS","Lucida Grande","Lucida Sans Unicode","Lucida Sans",Tahoma,sans-serif' },
|
|
5061
|
+
{ text: 'Verdana', fontName: 'Verdana,Geneva,sans-serif' }
|
|
5062
|
+
];
|
|
5063
|
+
constructor(dialogService, localization, providerService, toolsService, renderer) {
|
|
5064
|
+
super();
|
|
5065
|
+
this.dialogService = dialogService;
|
|
5066
|
+
this.localization = localization;
|
|
5067
|
+
this.toolsService = toolsService;
|
|
5068
|
+
this.renderer = renderer;
|
|
5069
|
+
this.editor = providerService.editor;
|
|
5070
|
+
this.isBuiltInTool = true;
|
|
5071
|
+
}
|
|
4956
5072
|
ngOnInit() {
|
|
4957
5073
|
this.itemDisabled = (itemArgs) => {
|
|
4958
5074
|
if (!this.overflows && this.fontFamilyDropDownList && !this.fontFamilyDropDownList.dropDownList.isOpen) {
|
|
@@ -5040,9 +5156,8 @@ class EditorFontFamilyComponent extends ToolBarToolComponent {
|
|
|
5040
5156
|
this.tabindex = -1;
|
|
5041
5157
|
return false;
|
|
5042
5158
|
}
|
|
5043
|
-
}
|
|
5044
|
-
|
|
5045
|
-
EditorFontFamilyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: EditorFontFamilyComponent, isStandalone: true, selector: "kendo-toolbar-dropdownlist[kendoEditorFontFamily]", inputs: { data: "data" }, outputs: { valueChange: "valueChange" }, providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => EditorFontFamilyComponent) }], viewQueries: [{ propertyName: "toolbarTemplate", first: true, predicate: ["toolbarTemplate"], descendants: true, static: true }, { propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true, static: true }, { propertyName: "element", first: true, predicate: ["element"], descendants: true }, { propertyName: "fontFamilyDropDownList", first: true, predicate: ["element"], descendants: true, read: FontFamilyDropDownListComponent }, { propertyName: "fontFamilyButton", first: true, predicate: ["fontFamilyButton"], descendants: true, read: ElementRef }], usesInheritance: true, ngImport: i0, template: `
|
|
5159
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorFontFamilyComponent, deps: [{ token: i1$1.DialogService }, { token: EditorLocalizationService }, { token: ProviderService }, { token: EditorToolsService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
5160
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: EditorFontFamilyComponent, isStandalone: true, selector: "kendo-toolbar-dropdownlist[kendoEditorFontFamily]", inputs: { data: "data" }, outputs: { valueChange: "valueChange" }, providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => EditorFontFamilyComponent) }], viewQueries: [{ propertyName: "element", first: true, predicate: ["element"], descendants: true }, { propertyName: "fontFamilyDropDownList", first: true, predicate: ["element"], descendants: true, read: FontFamilyDropDownListComponent }, { propertyName: "fontFamilyButton", first: true, predicate: ["fontFamilyButton"], descendants: true, read: ElementRef }], usesInheritance: true, ngImport: i0, template: `
|
|
5046
5161
|
<ng-template #toolbarTemplate>
|
|
5047
5162
|
<kendo-editor-fontfamily-dropdownlist
|
|
5048
5163
|
#element
|
|
@@ -5073,7 +5188,8 @@ EditorFontFamilyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.
|
|
|
5073
5188
|
</div>
|
|
5074
5189
|
</ng-template>
|
|
5075
5190
|
`, isInline: true, dependencies: [{ kind: "component", type: FontFamilyDropDownListComponent, selector: "kendo-editor-fontfamily-dropdownlist", inputs: ["data", "value", "defaultItem", "itemDisabled", "title", "disabled", "tabindex"], outputs: ["valueChange"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
5076
|
-
|
|
5191
|
+
}
|
|
5192
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorFontFamilyComponent, decorators: [{
|
|
5077
5193
|
type: Component,
|
|
5078
5194
|
args: [{
|
|
5079
5195
|
providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => EditorFontFamilyComponent) }],
|
|
@@ -5110,27 +5226,149 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
5110
5226
|
</ng-template>
|
|
5111
5227
|
`,
|
|
5112
5228
|
standalone: true,
|
|
5113
|
-
imports: [FontFamilyDropDownListComponent, IconWrapperComponent, NgIf]
|
|
5229
|
+
imports: [FontFamilyDropDownListComponent, IconWrapperComponent, NgIf]
|
|
5230
|
+
}]
|
|
5231
|
+
}], ctorParameters: function () { return [{ type: i1$1.DialogService }, { type: EditorLocalizationService }, { type: ProviderService }, { type: EditorToolsService }, { type: i0.Renderer2 }]; }, propDecorators: { data: [{
|
|
5232
|
+
type: Input
|
|
5233
|
+
}], valueChange: [{
|
|
5234
|
+
type: Output
|
|
5235
|
+
}], element: [{
|
|
5236
|
+
type: ViewChild,
|
|
5237
|
+
args: ['element']
|
|
5238
|
+
}], fontFamilyDropDownList: [{
|
|
5239
|
+
type: ViewChild,
|
|
5240
|
+
args: ['element', { read: FontFamilyDropDownListComponent, static: false }]
|
|
5241
|
+
}], fontFamilyButton: [{
|
|
5242
|
+
type: ViewChild,
|
|
5243
|
+
args: ['fontFamilyButton', { read: ElementRef }]
|
|
5244
|
+
}] } });
|
|
5245
|
+
|
|
5246
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
5247
|
+
/**
|
|
5248
|
+
* @hidden
|
|
5249
|
+
*/
|
|
5250
|
+
class ColorPickerDialogComponent extends DialogContentBase {
|
|
5251
|
+
dialog;
|
|
5252
|
+
localization;
|
|
5253
|
+
editor;
|
|
5254
|
+
colorPicker;
|
|
5255
|
+
value;
|
|
5256
|
+
title;
|
|
5257
|
+
editorCommand;
|
|
5258
|
+
paletteSettings;
|
|
5259
|
+
icon;
|
|
5260
|
+
svgIcon;
|
|
5261
|
+
view;
|
|
5262
|
+
views;
|
|
5263
|
+
constructor(dialog, localization) {
|
|
5264
|
+
super(dialog);
|
|
5265
|
+
this.dialog = dialog;
|
|
5266
|
+
this.localization = localization;
|
|
5267
|
+
}
|
|
5268
|
+
handleActiveColorClick(event) {
|
|
5269
|
+
event.preventOpen();
|
|
5270
|
+
this.value = event.color;
|
|
5271
|
+
}
|
|
5272
|
+
handleClearButtonClick() {
|
|
5273
|
+
this.editor.exec(this.editorCommand, undefined);
|
|
5274
|
+
}
|
|
5275
|
+
onCancelAction() {
|
|
5276
|
+
this.dialog.close();
|
|
5277
|
+
}
|
|
5278
|
+
onConfirmAction() {
|
|
5279
|
+
if (this.value) {
|
|
5280
|
+
this.editor.exec(this.editorCommand, this.value);
|
|
5281
|
+
}
|
|
5282
|
+
this.dialog.close();
|
|
5283
|
+
this.editor.view.focus();
|
|
5284
|
+
}
|
|
5285
|
+
setData(args) {
|
|
5286
|
+
this.editor = args.editor;
|
|
5287
|
+
this.value = args.value;
|
|
5288
|
+
this.svgIcon = args.svgIcon;
|
|
5289
|
+
this.editorCommand = args.editorCommand;
|
|
5290
|
+
this.paletteSettings = args.paletteSettings;
|
|
5291
|
+
this.icon = args.icon;
|
|
5292
|
+
this.views = args.view ? [args.view] : args.views;
|
|
5293
|
+
}
|
|
5294
|
+
textFor(key) {
|
|
5295
|
+
return this.localization.get(key);
|
|
5296
|
+
}
|
|
5297
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ColorPickerDialogComponent, deps: [{ token: i1$1.DialogRef }, { token: EditorLocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
5298
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ColorPickerDialogComponent, isStandalone: true, selector: "ng-component", inputs: { editor: "editor" }, viewQueries: [{ propertyName: "colorPicker", first: true, predicate: ["colorpicker"], descendants: true, read: ColorPickerComponent, static: true }], usesInheritance: true, ngImport: i0, template: `
|
|
5299
|
+
<kendo-dialog-titlebar (close)="onCancelAction()">
|
|
5300
|
+
{{ textFor(editorCommand) }}
|
|
5301
|
+
</kendo-dialog-titlebar>
|
|
5302
|
+
<div [style.text-align]="'center'">
|
|
5303
|
+
<kendo-colorpicker
|
|
5304
|
+
#colorpicker
|
|
5305
|
+
[views]="views"
|
|
5306
|
+
[format]="'hex'"
|
|
5307
|
+
[attr.title]="title"
|
|
5308
|
+
[icon]="icon"
|
|
5309
|
+
[svgIcon]="svgIcon"
|
|
5310
|
+
[(value)]="value"
|
|
5311
|
+
[paletteSettings]="paletteSettings"
|
|
5312
|
+
(activeColorClick)="handleActiveColorClick($event)"
|
|
5313
|
+
(clearButtonClick)="handleClearButtonClick()"
|
|
5314
|
+
>
|
|
5315
|
+
</kendo-colorpicker>
|
|
5316
|
+
</div>
|
|
5317
|
+
<kendo-dialog-actions layout="start">
|
|
5318
|
+
<button
|
|
5319
|
+
kendoButton
|
|
5320
|
+
[primary]="true"
|
|
5321
|
+
(click)="onConfirmAction()"
|
|
5322
|
+
>{{ textFor('dialogApply') }}</button>
|
|
5323
|
+
<button
|
|
5324
|
+
kendoButton
|
|
5325
|
+
(click)="onCancelAction()"
|
|
5326
|
+
>{{ textFor('dialogCancel') }}</button>
|
|
5327
|
+
</kendo-dialog-actions>
|
|
5328
|
+
`, isInline: true, dependencies: [{ kind: "component", type: DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { kind: "component", type: 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", "clearButtonClick", "activeViewChange"], exportAs: ["kendoColorPicker"] }, { kind: "component", type: DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
|
|
5329
|
+
}
|
|
5330
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ColorPickerDialogComponent, decorators: [{
|
|
5331
|
+
type: Component,
|
|
5332
|
+
args: [{
|
|
5333
|
+
template: `
|
|
5334
|
+
<kendo-dialog-titlebar (close)="onCancelAction()">
|
|
5335
|
+
{{ textFor(editorCommand) }}
|
|
5336
|
+
</kendo-dialog-titlebar>
|
|
5337
|
+
<div [style.text-align]="'center'">
|
|
5338
|
+
<kendo-colorpicker
|
|
5339
|
+
#colorpicker
|
|
5340
|
+
[views]="views"
|
|
5341
|
+
[format]="'hex'"
|
|
5342
|
+
[attr.title]="title"
|
|
5343
|
+
[icon]="icon"
|
|
5344
|
+
[svgIcon]="svgIcon"
|
|
5345
|
+
[(value)]="value"
|
|
5346
|
+
[paletteSettings]="paletteSettings"
|
|
5347
|
+
(activeColorClick)="handleActiveColorClick($event)"
|
|
5348
|
+
(clearButtonClick)="handleClearButtonClick()"
|
|
5349
|
+
>
|
|
5350
|
+
</kendo-colorpicker>
|
|
5351
|
+
</div>
|
|
5352
|
+
<kendo-dialog-actions layout="start">
|
|
5353
|
+
<button
|
|
5354
|
+
kendoButton
|
|
5355
|
+
[primary]="true"
|
|
5356
|
+
(click)="onConfirmAction()"
|
|
5357
|
+
>{{ textFor('dialogApply') }}</button>
|
|
5358
|
+
<button
|
|
5359
|
+
kendoButton
|
|
5360
|
+
(click)="onCancelAction()"
|
|
5361
|
+
>{{ textFor('dialogCancel') }}</button>
|
|
5362
|
+
</kendo-dialog-actions>
|
|
5363
|
+
`,
|
|
5364
|
+
standalone: true,
|
|
5365
|
+
imports: [DialogTitleBarComponent, ColorPickerComponent, DialogActionsComponent, ButtonComponent]
|
|
5114
5366
|
}]
|
|
5115
|
-
}], ctorParameters: function () { return [{ type: i1$1.
|
|
5367
|
+
}], ctorParameters: function () { return [{ type: i1$1.DialogRef }, { type: EditorLocalizationService }]; }, propDecorators: { editor: [{
|
|
5116
5368
|
type: Input
|
|
5117
|
-
}],
|
|
5118
|
-
type: Output
|
|
5119
|
-
}], toolbarTemplate: [{
|
|
5120
|
-
type: ViewChild,
|
|
5121
|
-
args: ['toolbarTemplate', { static: true }]
|
|
5122
|
-
}], popupTemplate: [{
|
|
5123
|
-
type: ViewChild,
|
|
5124
|
-
args: ['popupTemplate', { static: true }]
|
|
5125
|
-
}], element: [{
|
|
5126
|
-
type: ViewChild,
|
|
5127
|
-
args: ['element']
|
|
5128
|
-
}], fontFamilyDropDownList: [{
|
|
5129
|
-
type: ViewChild,
|
|
5130
|
-
args: ['element', { read: FontFamilyDropDownListComponent, static: false }]
|
|
5131
|
-
}], fontFamilyButton: [{
|
|
5369
|
+
}], colorPicker: [{
|
|
5132
5370
|
type: ViewChild,
|
|
5133
|
-
args: ['
|
|
5371
|
+
args: ['colorpicker', { read: ColorPickerComponent, static: true }]
|
|
5134
5372
|
}] } });
|
|
5135
5373
|
|
|
5136
5374
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
@@ -5141,28 +5379,44 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
5141
5379
|
* foreground or the background color of the text, use the `kendoEditorForeColor` or `kendoEditorBackColor` directivе ([more information]({% slug toolbartools_editor %}#toc-colorpickers)).
|
|
5142
5380
|
*/
|
|
5143
5381
|
class EditorColorPickerComponent extends ToolBarToolComponent {
|
|
5144
|
-
|
|
5145
|
-
|
|
5146
|
-
|
|
5147
|
-
|
|
5148
|
-
|
|
5149
|
-
|
|
5150
|
-
|
|
5151
|
-
|
|
5152
|
-
|
|
5153
|
-
|
|
5154
|
-
|
|
5155
|
-
|
|
5156
|
-
|
|
5157
|
-
|
|
5158
|
-
|
|
5159
|
-
|
|
5160
|
-
|
|
5161
|
-
|
|
5162
|
-
|
|
5163
|
-
|
|
5164
|
-
|
|
5165
|
-
|
|
5382
|
+
localization;
|
|
5383
|
+
dialogService;
|
|
5384
|
+
ngZone;
|
|
5385
|
+
renderer;
|
|
5386
|
+
tabindex = -1;
|
|
5387
|
+
/**
|
|
5388
|
+
* Specifies the initial value of the color picker.
|
|
5389
|
+
*/
|
|
5390
|
+
value;
|
|
5391
|
+
/**
|
|
5392
|
+
* Specifies the Kendo UI font icon that will be used.
|
|
5393
|
+
*/
|
|
5394
|
+
icon;
|
|
5395
|
+
/**
|
|
5396
|
+
* Defines an SVGIcon to be rendered within the ColorPicker button.
|
|
5397
|
+
* The input can take either an [existing Kendo SVG icon](slug:svgicon_list) or a custom one.
|
|
5398
|
+
*/
|
|
5399
|
+
svgIcon;
|
|
5400
|
+
/**
|
|
5401
|
+
* Overrides the default [color palette settings]({% slug api_inputs_palettesettings %}).
|
|
5402
|
+
*/
|
|
5403
|
+
paletteSettings;
|
|
5404
|
+
/**
|
|
5405
|
+
* Specifies the color-related command that will be executed.
|
|
5406
|
+
*/
|
|
5407
|
+
editorCommand;
|
|
5408
|
+
/**
|
|
5409
|
+
* Specifies if the component should be disabled.
|
|
5410
|
+
*
|
|
5411
|
+
* @default false
|
|
5412
|
+
*/
|
|
5413
|
+
disabled = false;
|
|
5414
|
+
/**
|
|
5415
|
+
* Specifies whether the ColorPicker will render a gradient, palette, or both in its popup.
|
|
5416
|
+
*
|
|
5417
|
+
* @default ['palette']
|
|
5418
|
+
*/
|
|
5419
|
+
views = ['palette'];
|
|
5166
5420
|
/**
|
|
5167
5421
|
* @hidden
|
|
5168
5422
|
*
|
|
@@ -5180,6 +5434,22 @@ class EditorColorPickerComponent extends ToolBarToolComponent {
|
|
|
5180
5434
|
get title() {
|
|
5181
5435
|
return this.localization.get(this.editorCommand);
|
|
5182
5436
|
}
|
|
5437
|
+
element;
|
|
5438
|
+
colorPicker;
|
|
5439
|
+
colorPickerButton;
|
|
5440
|
+
subs;
|
|
5441
|
+
valueCache;
|
|
5442
|
+
editor;
|
|
5443
|
+
activeView;
|
|
5444
|
+
constructor(localization, dialogService, ngZone, providerService, renderer) {
|
|
5445
|
+
super();
|
|
5446
|
+
this.localization = localization;
|
|
5447
|
+
this.dialogService = dialogService;
|
|
5448
|
+
this.ngZone = ngZone;
|
|
5449
|
+
this.renderer = renderer;
|
|
5450
|
+
this.editor = providerService.editor;
|
|
5451
|
+
this.isBuiltInTool = true;
|
|
5452
|
+
}
|
|
5183
5453
|
ngOnInit() {
|
|
5184
5454
|
this.subs = this.editor.stateChange.subscribe(({ style }) => {
|
|
5185
5455
|
this.disabled = style.disabled;
|
|
@@ -5297,9 +5567,8 @@ class EditorColorPickerComponent extends ToolBarToolComponent {
|
|
|
5297
5567
|
this.tabindex = -1;
|
|
5298
5568
|
return false;
|
|
5299
5569
|
}
|
|
5300
|
-
}
|
|
5301
|
-
|
|
5302
|
-
EditorColorPickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: EditorColorPickerComponent, isStandalone: true, selector: "kendo-toolbar-colorpicker", inputs: { value: "value", icon: "icon", svgIcon: "svgIcon", paletteSettings: "paletteSettings", editorCommand: "editorCommand", disabled: "disabled", views: "views", view: "view" }, providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => EditorColorPickerComponent) }], viewQueries: [{ propertyName: "toolbarTemplate", first: true, predicate: ["toolbarTemplate"], descendants: true, static: true }, { propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true, static: true }, { propertyName: "element", first: true, predicate: ["colorpicker"], descendants: true, read: ElementRef }, { propertyName: "colorPicker", first: true, predicate: ["colorpicker"], descendants: true, read: ColorPickerComponent }, { propertyName: "colorPickerButton", first: true, predicate: ["colorPickerButton"], descendants: true, read: ElementRef }], usesInheritance: true, ngImport: i0, template: `
|
|
5570
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorColorPickerComponent, deps: [{ token: EditorLocalizationService }, { token: i1$1.DialogService }, { token: i0.NgZone }, { token: ProviderService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
5571
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: EditorColorPickerComponent, isStandalone: true, selector: "kendo-toolbar-colorpicker", inputs: { value: "value", icon: "icon", svgIcon: "svgIcon", paletteSettings: "paletteSettings", editorCommand: "editorCommand", disabled: "disabled", views: "views", view: "view" }, providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => EditorColorPickerComponent) }], viewQueries: [{ propertyName: "element", first: true, predicate: ["colorpicker"], descendants: true, read: ElementRef }, { propertyName: "colorPicker", first: true, predicate: ["colorpicker"], descendants: true, read: ColorPickerComponent }, { propertyName: "colorPickerButton", first: true, predicate: ["colorPickerButton"], descendants: true, read: ElementRef }], usesInheritance: true, ngImport: i0, template: `
|
|
5303
5572
|
<ng-template #toolbarTemplate>
|
|
5304
5573
|
<kendo-colorpicker
|
|
5305
5574
|
#colorpicker
|
|
@@ -5341,7 +5610,8 @@ EditorColorPickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0
|
|
|
5341
5610
|
</div>
|
|
5342
5611
|
</ng-template>
|
|
5343
5612
|
`, isInline: true, dependencies: [{ kind: "component", type: 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", "clearButtonClick", "activeViewChange"], exportAs: ["kendoColorPicker"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }] });
|
|
5344
|
-
|
|
5613
|
+
}
|
|
5614
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorColorPickerComponent, decorators: [{
|
|
5345
5615
|
type: Component,
|
|
5346
5616
|
args: [{
|
|
5347
5617
|
providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => EditorColorPickerComponent) }],
|
|
@@ -5407,12 +5677,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
5407
5677
|
type: Input
|
|
5408
5678
|
}], view: [{
|
|
5409
5679
|
type: Input
|
|
5410
|
-
}], toolbarTemplate: [{
|
|
5411
|
-
type: ViewChild,
|
|
5412
|
-
args: ['toolbarTemplate', { static: true }]
|
|
5413
|
-
}], popupTemplate: [{
|
|
5414
|
-
type: ViewChild,
|
|
5415
|
-
args: ['popupTemplate', { static: true }]
|
|
5416
5680
|
}], element: [{
|
|
5417
5681
|
type: ViewChild,
|
|
5418
5682
|
args: ['colorpicker', { read: ElementRef }]
|
|
@@ -5424,6 +5688,177 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
5424
5688
|
args: ['colorPickerButton', { read: ElementRef }]
|
|
5425
5689
|
}] } });
|
|
5426
5690
|
|
|
5691
|
+
/**
|
|
5692
|
+
* @hidden
|
|
5693
|
+
*/
|
|
5694
|
+
class PopupTableGridComponent {
|
|
5695
|
+
localization;
|
|
5696
|
+
cellClick = new EventEmitter();
|
|
5697
|
+
tableWizardClick = new EventEmitter();
|
|
5698
|
+
tableWizardIcon = tableWizardIcon;
|
|
5699
|
+
state = { rows: -1, cols: -1 };
|
|
5700
|
+
rows = 6;
|
|
5701
|
+
cols = 8;
|
|
5702
|
+
constructor(localization) {
|
|
5703
|
+
this.localization = localization;
|
|
5704
|
+
}
|
|
5705
|
+
get message() {
|
|
5706
|
+
const { rows, cols } = this.state;
|
|
5707
|
+
const localizationMsg = this.localization.get('insertTableHint') || '';
|
|
5708
|
+
const rowReplacement = rows > -1 ? (rows + 1).toString() : '';
|
|
5709
|
+
const colReplacement = cols > -1 ? (cols + 1).toString() : '';
|
|
5710
|
+
const xReplacement = cols > -1 ? 'x' : '';
|
|
5711
|
+
return replaceMessagePlaceholder(localizationMsg, [
|
|
5712
|
+
{ placeholder: 'rows', value: rowReplacement },
|
|
5713
|
+
{ placeholder: 'columns', value: colReplacement },
|
|
5714
|
+
{ placeholder: 'x', value: xReplacement }
|
|
5715
|
+
]);
|
|
5716
|
+
}
|
|
5717
|
+
get cells() {
|
|
5718
|
+
return Array.from(Array(this.rows * this.cols).keys());
|
|
5719
|
+
}
|
|
5720
|
+
selected(index) {
|
|
5721
|
+
const { rows, cols } = this.state;
|
|
5722
|
+
const cellRow = Math.floor(index / this.cols);
|
|
5723
|
+
const cellCol = index % this.cols;
|
|
5724
|
+
return cellRow <= rows && cellCol <= cols;
|
|
5725
|
+
}
|
|
5726
|
+
setState(index) {
|
|
5727
|
+
const rows = Math.floor(index / this.cols);
|
|
5728
|
+
const cols = index % this.cols;
|
|
5729
|
+
this.state = { rows: rows, cols: cols };
|
|
5730
|
+
}
|
|
5731
|
+
resetState() {
|
|
5732
|
+
this.state = { rows: -1, cols: -1 };
|
|
5733
|
+
}
|
|
5734
|
+
insertTable() {
|
|
5735
|
+
this.cellClick.emit(this.state);
|
|
5736
|
+
}
|
|
5737
|
+
openTableWizard() {
|
|
5738
|
+
this.tableWizardClick.emit();
|
|
5739
|
+
}
|
|
5740
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PopupTableGridComponent, deps: [{ token: EditorLocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
5741
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: PopupTableGridComponent, isStandalone: true, selector: "kendo-popup-table-grid", outputs: { cellClick: "cellClick", tableWizardClick: "tableWizardClick" }, ngImport: i0, template: `
|
|
5742
|
+
<div
|
|
5743
|
+
[style.border-color]="'inherit'"
|
|
5744
|
+
class="k-ct-popup"
|
|
5745
|
+
(mouseleave)="resetState()"
|
|
5746
|
+
(click)="insertTable()">
|
|
5747
|
+
<span *ngFor="let i of cells"
|
|
5748
|
+
class="k-ct-cell"
|
|
5749
|
+
[class.k-selected]="selected(i)"
|
|
5750
|
+
[class.k-disabled]="!selected(i)"
|
|
5751
|
+
(mouseenter)="setState(i)">
|
|
5752
|
+
</span>
|
|
5753
|
+
</div>
|
|
5754
|
+
<div class="k-status" unselectable="on">{{ message }}</div>
|
|
5755
|
+
<!-- uncomment when TableWizard is completed
|
|
5756
|
+
<div class="k-editor-toolbar" unselectable="on">
|
|
5757
|
+
<button type="button" kendoButton class="k-tool" [icon]="'table-wizard'" [svgIcon]="tableWizardIcon" (click)="openTableWizard()" title="Table Wizard">Table Wizard</button>
|
|
5758
|
+
</div>
|
|
5759
|
+
-->
|
|
5760
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
5761
|
+
}
|
|
5762
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PopupTableGridComponent, decorators: [{
|
|
5763
|
+
type: Component,
|
|
5764
|
+
args: [{
|
|
5765
|
+
selector: 'kendo-popup-table-grid',
|
|
5766
|
+
template: `
|
|
5767
|
+
<div
|
|
5768
|
+
[style.border-color]="'inherit'"
|
|
5769
|
+
class="k-ct-popup"
|
|
5770
|
+
(mouseleave)="resetState()"
|
|
5771
|
+
(click)="insertTable()">
|
|
5772
|
+
<span *ngFor="let i of cells"
|
|
5773
|
+
class="k-ct-cell"
|
|
5774
|
+
[class.k-selected]="selected(i)"
|
|
5775
|
+
[class.k-disabled]="!selected(i)"
|
|
5776
|
+
(mouseenter)="setState(i)">
|
|
5777
|
+
</span>
|
|
5778
|
+
</div>
|
|
5779
|
+
<div class="k-status" unselectable="on">{{ message }}</div>
|
|
5780
|
+
<!-- uncomment when TableWizard is completed
|
|
5781
|
+
<div class="k-editor-toolbar" unselectable="on">
|
|
5782
|
+
<button type="button" kendoButton class="k-tool" [icon]="'table-wizard'" [svgIcon]="tableWizardIcon" (click)="openTableWizard()" title="Table Wizard">Table Wizard</button>
|
|
5783
|
+
</div>
|
|
5784
|
+
-->
|
|
5785
|
+
`,
|
|
5786
|
+
standalone: true,
|
|
5787
|
+
imports: [NgFor]
|
|
5788
|
+
}]
|
|
5789
|
+
}], ctorParameters: function () { return [{ type: EditorLocalizationService }]; }, propDecorators: { cellClick: [{
|
|
5790
|
+
type: Output
|
|
5791
|
+
}], tableWizardClick: [{
|
|
5792
|
+
type: Output
|
|
5793
|
+
}] } });
|
|
5794
|
+
|
|
5795
|
+
/**
|
|
5796
|
+
* @hidden
|
|
5797
|
+
*/
|
|
5798
|
+
class InsertTableDialogComponent extends DialogContentBase {
|
|
5799
|
+
dialog;
|
|
5800
|
+
localization;
|
|
5801
|
+
editor;
|
|
5802
|
+
constructor(dialog, localization) {
|
|
5803
|
+
super(dialog);
|
|
5804
|
+
this.dialog = dialog;
|
|
5805
|
+
this.localization = localization;
|
|
5806
|
+
}
|
|
5807
|
+
onCancelAction() {
|
|
5808
|
+
this.dialog.close();
|
|
5809
|
+
this.editor.view.focus();
|
|
5810
|
+
}
|
|
5811
|
+
onCellClick(args) {
|
|
5812
|
+
this.dialog.close();
|
|
5813
|
+
this.editor.exec("insertTable", args);
|
|
5814
|
+
this.editor.view.focus();
|
|
5815
|
+
}
|
|
5816
|
+
setData(args) {
|
|
5817
|
+
this.editor = args.editor;
|
|
5818
|
+
}
|
|
5819
|
+
textFor(key) {
|
|
5820
|
+
return this.localization.get(key);
|
|
5821
|
+
}
|
|
5822
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: InsertTableDialogComponent, deps: [{ token: i1$1.DialogRef }, { token: EditorLocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
5823
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: InsertTableDialogComponent, isStandalone: true, selector: "ng-component", inputs: { editor: "editor" }, usesInheritance: true, ngImport: i0, template: `
|
|
5824
|
+
<kendo-dialog-titlebar (close)="onCancelAction()">
|
|
5825
|
+
{{ textFor('insertTable') }}
|
|
5826
|
+
</kendo-dialog-titlebar>
|
|
5827
|
+
<div [style.text-align]="'center'">
|
|
5828
|
+
<kendo-popup-table-grid (cellClick)="onCellClick($event)"></kendo-popup-table-grid>
|
|
5829
|
+
</div>
|
|
5830
|
+
<kendo-dialog-actions layout="start">
|
|
5831
|
+
<button
|
|
5832
|
+
kendoButton
|
|
5833
|
+
(click)="onCancelAction()"
|
|
5834
|
+
>{{ textFor('dialogCancel') }}</button>
|
|
5835
|
+
</kendo-dialog-actions>
|
|
5836
|
+
`, isInline: true, dependencies: [{ kind: "component", type: DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { kind: "component", type: PopupTableGridComponent, selector: "kendo-popup-table-grid", outputs: ["cellClick", "tableWizardClick"] }, { kind: "component", type: DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
|
|
5837
|
+
}
|
|
5838
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: InsertTableDialogComponent, decorators: [{
|
|
5839
|
+
type: Component,
|
|
5840
|
+
args: [{
|
|
5841
|
+
template: `
|
|
5842
|
+
<kendo-dialog-titlebar (close)="onCancelAction()">
|
|
5843
|
+
{{ textFor('insertTable') }}
|
|
5844
|
+
</kendo-dialog-titlebar>
|
|
5845
|
+
<div [style.text-align]="'center'">
|
|
5846
|
+
<kendo-popup-table-grid (cellClick)="onCellClick($event)"></kendo-popup-table-grid>
|
|
5847
|
+
</div>
|
|
5848
|
+
<kendo-dialog-actions layout="start">
|
|
5849
|
+
<button
|
|
5850
|
+
kendoButton
|
|
5851
|
+
(click)="onCancelAction()"
|
|
5852
|
+
>{{ textFor('dialogCancel') }}</button>
|
|
5853
|
+
</kendo-dialog-actions>
|
|
5854
|
+
`,
|
|
5855
|
+
standalone: true,
|
|
5856
|
+
imports: [DialogTitleBarComponent, PopupTableGridComponent, DialogActionsComponent, ButtonComponent]
|
|
5857
|
+
}]
|
|
5858
|
+
}], ctorParameters: function () { return [{ type: i1$1.DialogRef }, { type: EditorLocalizationService }]; }, propDecorators: { editor: [{
|
|
5859
|
+
type: Input
|
|
5860
|
+
}] } });
|
|
5861
|
+
|
|
5427
5862
|
const popupWrapperWidth = '190px';
|
|
5428
5863
|
const popupWrapperHeight = '164px'; // Set to '192px' when TableWizard button is added;
|
|
5429
5864
|
/**
|
|
@@ -5435,16 +5870,33 @@ const popupWrapperHeight = '164px'; // Set to '192px' when TableWizard button is
|
|
|
5435
5870
|
* ```
|
|
5436
5871
|
*/
|
|
5437
5872
|
class EditorInsertTableButtonComponent extends ToolBarToolComponent {
|
|
5873
|
+
localization;
|
|
5874
|
+
popupService;
|
|
5875
|
+
dialogService;
|
|
5876
|
+
renderer;
|
|
5877
|
+
element;
|
|
5878
|
+
overflowElement;
|
|
5879
|
+
popupGridTemplate;
|
|
5880
|
+
/**
|
|
5881
|
+
* @hidden
|
|
5882
|
+
*/
|
|
5883
|
+
popupRef;
|
|
5884
|
+
/**
|
|
5885
|
+
* @hidden
|
|
5886
|
+
*/
|
|
5887
|
+
disabled;
|
|
5888
|
+
addTableSVGIcon = tableAddIcon;
|
|
5889
|
+
open = false;
|
|
5890
|
+
buttonBlurred = new EventEmitter();
|
|
5891
|
+
cellClicked = new EventEmitter();
|
|
5892
|
+
subs;
|
|
5893
|
+
editor;
|
|
5438
5894
|
constructor(localization, popupService, dialogService, providerService, renderer) {
|
|
5439
5895
|
super();
|
|
5440
5896
|
this.localization = localization;
|
|
5441
5897
|
this.popupService = popupService;
|
|
5442
5898
|
this.dialogService = dialogService;
|
|
5443
5899
|
this.renderer = renderer;
|
|
5444
|
-
this.addTableSVGIcon = tableAddIcon;
|
|
5445
|
-
this.open = false;
|
|
5446
|
-
this.buttonBlurred = new EventEmitter();
|
|
5447
|
-
this.cellClicked = new EventEmitter();
|
|
5448
5900
|
this.editor = providerService.editor;
|
|
5449
5901
|
this.subs = this.editor.stateChange.subscribe(({ insertTable }) => {
|
|
5450
5902
|
this.disabled = insertTable.disabled;
|
|
@@ -5569,9 +6021,8 @@ class EditorInsertTableButtonComponent extends ToolBarToolComponent {
|
|
|
5569
6021
|
getButton() {
|
|
5570
6022
|
return (this.overflows ? this.overflowElement : this.element)?.nativeElement;
|
|
5571
6023
|
}
|
|
5572
|
-
}
|
|
5573
|
-
|
|
5574
|
-
EditorInsertTableButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: EditorInsertTableButtonComponent, isStandalone: true, selector: "kendo-editor-insert-table-button", providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => EditorInsertTableButtonComponent) }], viewQueries: [{ propertyName: "toolbarTemplate", first: true, predicate: ["toolbarTemplate"], descendants: true, static: true }, { propertyName: "popupTemplate", first: true, predicate: ["popupTemplate"], descendants: true }, { propertyName: "element", first: true, predicate: ["element"], descendants: true, read: ElementRef }, { propertyName: "overflowElement", first: true, predicate: ["overflowElement"], descendants: true, read: ElementRef }, { propertyName: "popupGridTemplate", first: true, predicate: ["popupGridTemplate"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `
|
|
6024
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorInsertTableButtonComponent, deps: [{ token: EditorLocalizationService }, { token: i2.PopupService }, { token: i1$1.DialogService }, { token: ProviderService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
6025
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: EditorInsertTableButtonComponent, isStandalone: true, selector: "kendo-editor-insert-table-button", providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => EditorInsertTableButtonComponent) }], viewQueries: [{ propertyName: "element", first: true, predicate: ["element"], descendants: true, read: ElementRef }, { propertyName: "overflowElement", first: true, predicate: ["overflowElement"], descendants: true, read: ElementRef }, { propertyName: "popupGridTemplate", first: true, predicate: ["popupGridTemplate"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `
|
|
5575
6026
|
<ng-template #toolbarTemplate>
|
|
5576
6027
|
<button
|
|
5577
6028
|
type="button"
|
|
@@ -5604,8 +6055,9 @@ EditorInsertTableButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion:
|
|
|
5604
6055
|
<ng-template #popupGridTemplate>
|
|
5605
6056
|
<kendo-popup-table-grid (cellClick)="onCellClick($event)" (tableWizardClick)="onTableWizardClick()"></kendo-popup-table-grid>
|
|
5606
6057
|
</ng-template>
|
|
5607
|
-
`, isInline: true, dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[kendoButton]
|
|
5608
|
-
|
|
6058
|
+
`, isInline: true, dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: PopupTableGridComponent, selector: "kendo-popup-table-grid", outputs: ["cellClick", "tableWizardClick"] }] });
|
|
6059
|
+
}
|
|
6060
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorInsertTableButtonComponent, decorators: [{
|
|
5609
6061
|
type: Component,
|
|
5610
6062
|
args: [{
|
|
5611
6063
|
providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => EditorInsertTableButtonComponent) }],
|
|
@@ -5647,13 +6099,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
5647
6099
|
standalone: true,
|
|
5648
6100
|
imports: [ButtonComponent, IconWrapperComponent, NgIf, PopupTableGridComponent]
|
|
5649
6101
|
}]
|
|
5650
|
-
}], ctorParameters: function () { return [{ type: EditorLocalizationService }, { type: i2.PopupService }, { type: i1$1.DialogService }, { type: ProviderService }, { type: i0.Renderer2 }]; }, propDecorators: {
|
|
5651
|
-
type: ViewChild,
|
|
5652
|
-
args: ['toolbarTemplate', { static: true }]
|
|
5653
|
-
}], popupTemplate: [{
|
|
5654
|
-
type: ViewChild,
|
|
5655
|
-
args: ['popupTemplate']
|
|
5656
|
-
}], element: [{
|
|
6102
|
+
}], ctorParameters: function () { return [{ type: EditorLocalizationService }, { type: i2.PopupService }, { type: i1$1.DialogService }, { type: ProviderService }, { type: i0.Renderer2 }]; }, propDecorators: { element: [{
|
|
5657
6103
|
type: ViewChild,
|
|
5658
6104
|
args: ['element', { read: ElementRef }]
|
|
5659
6105
|
}], overflowElement: [{
|
|
@@ -5678,10 +6124,10 @@ class EditorBlockquoteDirective extends EditorCommandButton {
|
|
|
5678
6124
|
constructor(button, localization, providerService, toolsService) {
|
|
5679
6125
|
super('blockquote', button, localization, providerService, toolsService);
|
|
5680
6126
|
}
|
|
6127
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorBlockquoteDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: EditorLocalizationService }, { token: ProviderService }, { token: EditorToolsService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
6128
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: EditorBlockquoteDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorBlockquoteButton]", usesInheritance: true, ngImport: i0 });
|
|
5681
6129
|
}
|
|
5682
|
-
|
|
5683
|
-
EditorBlockquoteDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: EditorBlockquoteDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorBlockquoteButton]", usesInheritance: true, ngImport: i0 });
|
|
5684
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EditorBlockquoteDirective, decorators: [{
|
|
6130
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorBlockquoteDirective, decorators: [{
|
|
5685
6131
|
type: Directive,
|
|
5686
6132
|
args: [{
|
|
5687
6133
|
selector: 'kendo-toolbar-button[kendoEditorBlockquoteButton]',
|
|
@@ -5704,10 +6150,10 @@ class EditorRedoButtonDirective extends EditorCommandButton {
|
|
|
5704
6150
|
constructor(button, localization, providerService, toolsService) {
|
|
5705
6151
|
super('redo', button, localization, providerService, toolsService);
|
|
5706
6152
|
}
|
|
6153
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorRedoButtonDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: EditorLocalizationService }, { token: ProviderService }, { token: EditorToolsService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
6154
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: EditorRedoButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorRedoButton]", usesInheritance: true, ngImport: i0 });
|
|
5707
6155
|
}
|
|
5708
|
-
|
|
5709
|
-
EditorRedoButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: EditorRedoButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorRedoButton]", usesInheritance: true, ngImport: i0 });
|
|
5710
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EditorRedoButtonDirective, decorators: [{
|
|
6156
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorRedoButtonDirective, decorators: [{
|
|
5711
6157
|
type: Directive,
|
|
5712
6158
|
args: [{
|
|
5713
6159
|
selector: 'kendo-toolbar-button[kendoEditorRedoButton]',
|
|
@@ -5730,10 +6176,10 @@ class EditorUndoButtonDirective extends EditorCommandButton {
|
|
|
5730
6176
|
constructor(button, localization, providerService, toolsService) {
|
|
5731
6177
|
super('undo', button, localization, providerService, toolsService);
|
|
5732
6178
|
}
|
|
6179
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorUndoButtonDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: EditorLocalizationService }, { token: ProviderService }, { token: EditorToolsService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
6180
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: EditorUndoButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorUndoButton]", usesInheritance: true, ngImport: i0 });
|
|
5733
6181
|
}
|
|
5734
|
-
|
|
5735
|
-
EditorUndoButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: EditorUndoButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorUndoButton]", usesInheritance: true, ngImport: i0 });
|
|
5736
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EditorUndoButtonDirective, decorators: [{
|
|
6182
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorUndoButtonDirective, decorators: [{
|
|
5737
6183
|
type: Directive,
|
|
5738
6184
|
args: [{
|
|
5739
6185
|
selector: 'kendo-toolbar-button[kendoEditorUndoButton]',
|
|
@@ -5755,10 +6201,10 @@ class EditorViewSourceButtonDirective extends EditorCommandDialog {
|
|
|
5755
6201
|
constructor(button, localization, providerService, toolsService) {
|
|
5756
6202
|
super('viewSource', button, localization, providerService, toolsService);
|
|
5757
6203
|
}
|
|
6204
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorViewSourceButtonDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: EditorLocalizationService }, { token: ProviderService }, { token: EditorToolsService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
6205
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: EditorViewSourceButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorViewSourceButton]", usesInheritance: true, ngImport: i0 });
|
|
5758
6206
|
}
|
|
5759
|
-
|
|
5760
|
-
EditorViewSourceButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: EditorViewSourceButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorViewSourceButton]", usesInheritance: true, ngImport: i0 });
|
|
5761
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EditorViewSourceButtonDirective, decorators: [{
|
|
6207
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorViewSourceButtonDirective, decorators: [{
|
|
5762
6208
|
type: Directive,
|
|
5763
6209
|
args: [{
|
|
5764
6210
|
selector: 'kendo-toolbar-button[kendoEditorViewSourceButton]',
|
|
@@ -5781,10 +6227,10 @@ class EditorStrikethroughButtonDirective extends EditorCommandButton {
|
|
|
5781
6227
|
constructor(button, localization, providerService, toolsService) {
|
|
5782
6228
|
super('strikethrough', button, localization, providerService, toolsService);
|
|
5783
6229
|
}
|
|
6230
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorStrikethroughButtonDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: EditorLocalizationService }, { token: ProviderService }, { token: EditorToolsService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
6231
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: EditorStrikethroughButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorStrikethroughButton]", usesInheritance: true, ngImport: i0 });
|
|
5784
6232
|
}
|
|
5785
|
-
|
|
5786
|
-
EditorStrikethroughButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: EditorStrikethroughButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorStrikethroughButton]", usesInheritance: true, ngImport: i0 });
|
|
5787
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EditorStrikethroughButtonDirective, decorators: [{
|
|
6233
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorStrikethroughButtonDirective, decorators: [{
|
|
5788
6234
|
type: Directive,
|
|
5789
6235
|
args: [{
|
|
5790
6236
|
selector: 'kendo-toolbar-button[kendoEditorStrikethroughButton]',
|
|
@@ -5807,10 +6253,10 @@ class EditorSubscriptButtonDirective extends EditorCommandButton {
|
|
|
5807
6253
|
constructor(button, localization, providerService, toolsService) {
|
|
5808
6254
|
super('subscript', button, localization, providerService, toolsService);
|
|
5809
6255
|
}
|
|
6256
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorSubscriptButtonDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: EditorLocalizationService }, { token: ProviderService }, { token: EditorToolsService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
6257
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: EditorSubscriptButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorSubscriptButton]", usesInheritance: true, ngImport: i0 });
|
|
5810
6258
|
}
|
|
5811
|
-
|
|
5812
|
-
EditorSubscriptButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: EditorSubscriptButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorSubscriptButton]", usesInheritance: true, ngImport: i0 });
|
|
5813
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EditorSubscriptButtonDirective, decorators: [{
|
|
6259
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorSubscriptButtonDirective, decorators: [{
|
|
5814
6260
|
type: Directive,
|
|
5815
6261
|
args: [{
|
|
5816
6262
|
selector: 'kendo-toolbar-button[kendoEditorSubscriptButton]',
|
|
@@ -5833,10 +6279,10 @@ class EditorSuperscriptButtonDirective extends EditorCommandButton {
|
|
|
5833
6279
|
constructor(button, localization, providerService, toolsService) {
|
|
5834
6280
|
super('superscript', button, localization, providerService, toolsService);
|
|
5835
6281
|
}
|
|
6282
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorSuperscriptButtonDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: EditorLocalizationService }, { token: ProviderService }, { token: EditorToolsService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
6283
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: EditorSuperscriptButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorSuperscriptButton]", usesInheritance: true, ngImport: i0 });
|
|
5836
6284
|
}
|
|
5837
|
-
|
|
5838
|
-
EditorSuperscriptButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: EditorSuperscriptButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorSuperscriptButton]", usesInheritance: true, ngImport: i0 });
|
|
5839
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EditorSuperscriptButtonDirective, decorators: [{
|
|
6285
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorSuperscriptButtonDirective, decorators: [{
|
|
5840
6286
|
type: Directive,
|
|
5841
6287
|
args: [{
|
|
5842
6288
|
selector: 'kendo-toolbar-button[kendoEditorSuperscriptButton]',
|
|
@@ -5858,10 +6304,10 @@ class EditorInsertFileButtonDirective extends EditorCommandDialog {
|
|
|
5858
6304
|
constructor(button, localization, providerService, toolsService) {
|
|
5859
6305
|
super('insertFile', button, localization, providerService, toolsService);
|
|
5860
6306
|
}
|
|
6307
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorInsertFileButtonDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: EditorLocalizationService }, { token: ProviderService }, { token: EditorToolsService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
6308
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: EditorInsertFileButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorInsertFileButton]", usesInheritance: true, ngImport: i0 });
|
|
5861
6309
|
}
|
|
5862
|
-
|
|
5863
|
-
EditorInsertFileButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: EditorInsertFileButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorInsertFileButton]", usesInheritance: true, ngImport: i0 });
|
|
5864
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EditorInsertFileButtonDirective, decorators: [{
|
|
6310
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorInsertFileButtonDirective, decorators: [{
|
|
5865
6311
|
type: Directive,
|
|
5866
6312
|
args: [{
|
|
5867
6313
|
selector: 'kendo-toolbar-button[kendoEditorInsertFileButton]',
|
|
@@ -5879,16 +6325,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
5879
6325
|
* ```
|
|
5880
6326
|
*/
|
|
5881
6327
|
class EditorForeColorDirective {
|
|
6328
|
+
colorPicker;
|
|
5882
6329
|
constructor(colorPicker) {
|
|
5883
6330
|
this.colorPicker = colorPicker;
|
|
5884
6331
|
this.colorPicker.icon = commandIcons.foreColor;
|
|
5885
6332
|
this.colorPicker.svgIcon = commandSVGIcons.foreColor;
|
|
5886
6333
|
this.colorPicker.editorCommand = 'foreColor';
|
|
5887
6334
|
}
|
|
6335
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorForeColorDirective, deps: [{ token: EditorColorPickerComponent }], target: i0.ɵɵFactoryTarget.Directive });
|
|
6336
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: EditorForeColorDirective, isStandalone: true, selector: "[kendoEditorForeColor]", ngImport: i0 });
|
|
5888
6337
|
}
|
|
5889
|
-
|
|
5890
|
-
EditorForeColorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: EditorForeColorDirective, isStandalone: true, selector: "[kendoEditorForeColor]", ngImport: i0 });
|
|
5891
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EditorForeColorDirective, decorators: [{
|
|
6338
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorForeColorDirective, decorators: [{
|
|
5892
6339
|
type: Directive,
|
|
5893
6340
|
args: [{
|
|
5894
6341
|
selector: '[kendoEditorForeColor]',
|
|
@@ -5906,16 +6353,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
5906
6353
|
* ```
|
|
5907
6354
|
*/
|
|
5908
6355
|
class EditorBackColorDirective {
|
|
6356
|
+
colorPicker;
|
|
5909
6357
|
constructor(colorPicker) {
|
|
5910
6358
|
this.colorPicker = colorPicker;
|
|
5911
6359
|
this.colorPicker.icon = commandIcons.backColor;
|
|
5912
6360
|
this.colorPicker.svgIcon = commandSVGIcons.backColor;
|
|
5913
6361
|
this.colorPicker.editorCommand = 'backColor';
|
|
5914
6362
|
}
|
|
6363
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorBackColorDirective, deps: [{ token: EditorColorPickerComponent }], target: i0.ɵɵFactoryTarget.Directive });
|
|
6364
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: EditorBackColorDirective, isStandalone: true, selector: "[kendoEditorBackColor]", ngImport: i0 });
|
|
5915
6365
|
}
|
|
5916
|
-
|
|
5917
|
-
EditorBackColorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: EditorBackColorDirective, isStandalone: true, selector: "[kendoEditorBackColor]", ngImport: i0 });
|
|
5918
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EditorBackColorDirective, decorators: [{
|
|
6366
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorBackColorDirective, decorators: [{
|
|
5919
6367
|
type: Directive,
|
|
5920
6368
|
args: [{
|
|
5921
6369
|
selector: '[kendoEditorBackColor]',
|
|
@@ -5937,10 +6385,10 @@ class EditorCleanFormattingButtonDirective extends EditorCommandButton {
|
|
|
5937
6385
|
constructor(button, localization, providerService, toolsService) {
|
|
5938
6386
|
super('cleanFormatting', button, localization, providerService, toolsService);
|
|
5939
6387
|
}
|
|
6388
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorCleanFormattingButtonDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: EditorLocalizationService }, { token: ProviderService }, { token: EditorToolsService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
6389
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: EditorCleanFormattingButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorCleanFormattingButton]", usesInheritance: true, ngImport: i0 });
|
|
5940
6390
|
}
|
|
5941
|
-
|
|
5942
|
-
EditorCleanFormattingButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: EditorCleanFormattingButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorCleanFormattingButton]", usesInheritance: true, ngImport: i0 });
|
|
5943
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EditorCleanFormattingButtonDirective, decorators: [{
|
|
6391
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorCleanFormattingButtonDirective, decorators: [{
|
|
5944
6392
|
type: Directive,
|
|
5945
6393
|
args: [{
|
|
5946
6394
|
selector: 'kendo-toolbar-button[kendoEditorCleanFormattingButton]',
|
|
@@ -5963,10 +6411,10 @@ class EditorAddColumnBeforeButtonDirective extends EditorCommandButton {
|
|
|
5963
6411
|
constructor(button, localization, providerService, toolsService) {
|
|
5964
6412
|
super('addColumnBefore', button, localization, providerService, toolsService);
|
|
5965
6413
|
}
|
|
6414
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorAddColumnBeforeButtonDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: EditorLocalizationService }, { token: ProviderService }, { token: EditorToolsService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
6415
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: EditorAddColumnBeforeButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorAddColumnBeforeButton]", usesInheritance: true, ngImport: i0 });
|
|
5966
6416
|
}
|
|
5967
|
-
|
|
5968
|
-
EditorAddColumnBeforeButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: EditorAddColumnBeforeButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorAddColumnBeforeButton]", usesInheritance: true, ngImport: i0 });
|
|
5969
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EditorAddColumnBeforeButtonDirective, decorators: [{
|
|
6417
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorAddColumnBeforeButtonDirective, decorators: [{
|
|
5970
6418
|
type: Directive,
|
|
5971
6419
|
args: [{
|
|
5972
6420
|
selector: 'kendo-toolbar-button[kendoEditorAddColumnBeforeButton]',
|
|
@@ -5989,10 +6437,10 @@ class EditorAddColumnAfterButtonDirective extends EditorCommandButton {
|
|
|
5989
6437
|
constructor(button, localization, providerService, toolsService) {
|
|
5990
6438
|
super('addColumnAfter', button, localization, providerService, toolsService);
|
|
5991
6439
|
}
|
|
6440
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorAddColumnAfterButtonDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: EditorLocalizationService }, { token: ProviderService }, { token: EditorToolsService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
6441
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: EditorAddColumnAfterButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorAddColumnAfterButton]", usesInheritance: true, ngImport: i0 });
|
|
5992
6442
|
}
|
|
5993
|
-
|
|
5994
|
-
EditorAddColumnAfterButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: EditorAddColumnAfterButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorAddColumnAfterButton]", usesInheritance: true, ngImport: i0 });
|
|
5995
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EditorAddColumnAfterButtonDirective, decorators: [{
|
|
6443
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorAddColumnAfterButtonDirective, decorators: [{
|
|
5996
6444
|
type: Directive,
|
|
5997
6445
|
args: [{
|
|
5998
6446
|
selector: 'kendo-toolbar-button[kendoEditorAddColumnAfterButton]',
|
|
@@ -6015,10 +6463,10 @@ class EditorAddRowBeforeButtonDirective extends EditorCommandButton {
|
|
|
6015
6463
|
constructor(button, localization, providerService, toolsService) {
|
|
6016
6464
|
super('addRowBefore', button, localization, providerService, toolsService);
|
|
6017
6465
|
}
|
|
6466
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorAddRowBeforeButtonDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: EditorLocalizationService }, { token: ProviderService }, { token: EditorToolsService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
6467
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: EditorAddRowBeforeButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorAddRowBeforeButton]", usesInheritance: true, ngImport: i0 });
|
|
6018
6468
|
}
|
|
6019
|
-
|
|
6020
|
-
EditorAddRowBeforeButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: EditorAddRowBeforeButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorAddRowBeforeButton]", usesInheritance: true, ngImport: i0 });
|
|
6021
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EditorAddRowBeforeButtonDirective, decorators: [{
|
|
6469
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorAddRowBeforeButtonDirective, decorators: [{
|
|
6022
6470
|
type: Directive,
|
|
6023
6471
|
args: [{
|
|
6024
6472
|
selector: 'kendo-toolbar-button[kendoEditorAddRowBeforeButton]',
|
|
@@ -6041,10 +6489,10 @@ class EditorAddRowAfterButtonDirective extends EditorCommandButton {
|
|
|
6041
6489
|
constructor(button, localization, providerService, toolsService) {
|
|
6042
6490
|
super('addRowAfter', button, localization, providerService, toolsService);
|
|
6043
6491
|
}
|
|
6492
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorAddRowAfterButtonDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: EditorLocalizationService }, { token: ProviderService }, { token: EditorToolsService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
6493
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: EditorAddRowAfterButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorAddRowAfterButton]", usesInheritance: true, ngImport: i0 });
|
|
6044
6494
|
}
|
|
6045
|
-
|
|
6046
|
-
EditorAddRowAfterButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: EditorAddRowAfterButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorAddRowAfterButton]", usesInheritance: true, ngImport: i0 });
|
|
6047
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EditorAddRowAfterButtonDirective, decorators: [{
|
|
6495
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorAddRowAfterButtonDirective, decorators: [{
|
|
6048
6496
|
type: Directive,
|
|
6049
6497
|
args: [{
|
|
6050
6498
|
selector: 'kendo-toolbar-button[kendoEditorAddRowAfterButton]',
|
|
@@ -6067,10 +6515,10 @@ class EditorDeleteColumnButtonDirective extends EditorCommandButton {
|
|
|
6067
6515
|
constructor(button, localization, providerService, toolsService) {
|
|
6068
6516
|
super('deleteColumn', button, localization, providerService, toolsService);
|
|
6069
6517
|
}
|
|
6518
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorDeleteColumnButtonDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: EditorLocalizationService }, { token: ProviderService }, { token: EditorToolsService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
6519
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: EditorDeleteColumnButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorDeleteColumnButton]", usesInheritance: true, ngImport: i0 });
|
|
6070
6520
|
}
|
|
6071
|
-
|
|
6072
|
-
EditorDeleteColumnButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: EditorDeleteColumnButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorDeleteColumnButton]", usesInheritance: true, ngImport: i0 });
|
|
6073
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EditorDeleteColumnButtonDirective, decorators: [{
|
|
6521
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorDeleteColumnButtonDirective, decorators: [{
|
|
6074
6522
|
type: Directive,
|
|
6075
6523
|
args: [{
|
|
6076
6524
|
selector: 'kendo-toolbar-button[kendoEditorDeleteColumnButton]',
|
|
@@ -6093,10 +6541,10 @@ class EditorDeleteRowButtonDirective extends EditorCommandButton {
|
|
|
6093
6541
|
constructor(button, localization, providerService, toolsService) {
|
|
6094
6542
|
super('deleteRow', button, localization, providerService, toolsService);
|
|
6095
6543
|
}
|
|
6544
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorDeleteRowButtonDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: EditorLocalizationService }, { token: ProviderService }, { token: EditorToolsService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
6545
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: EditorDeleteRowButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorDeleteRowButton]", usesInheritance: true, ngImport: i0 });
|
|
6096
6546
|
}
|
|
6097
|
-
|
|
6098
|
-
EditorDeleteRowButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: EditorDeleteRowButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorDeleteRowButton]", usesInheritance: true, ngImport: i0 });
|
|
6099
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EditorDeleteRowButtonDirective, decorators: [{
|
|
6547
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorDeleteRowButtonDirective, decorators: [{
|
|
6100
6548
|
type: Directive,
|
|
6101
6549
|
args: [{
|
|
6102
6550
|
selector: 'kendo-toolbar-button[kendoEditorDeleteRowButton]',
|
|
@@ -6119,10 +6567,10 @@ class EditorDeleteTableButtonDirective extends EditorCommandButton {
|
|
|
6119
6567
|
constructor(button, localization, providerService, toolsService) {
|
|
6120
6568
|
super('deleteTable', button, localization, providerService, toolsService);
|
|
6121
6569
|
}
|
|
6570
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorDeleteTableButtonDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: EditorLocalizationService }, { token: ProviderService }, { token: EditorToolsService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
6571
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: EditorDeleteTableButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorDeleteTableButton]", usesInheritance: true, ngImport: i0 });
|
|
6122
6572
|
}
|
|
6123
|
-
|
|
6124
|
-
EditorDeleteTableButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: EditorDeleteTableButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorDeleteTableButton]", usesInheritance: true, ngImport: i0 });
|
|
6125
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EditorDeleteTableButtonDirective, decorators: [{
|
|
6573
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorDeleteTableButtonDirective, decorators: [{
|
|
6126
6574
|
type: Directive,
|
|
6127
6575
|
args: [{
|
|
6128
6576
|
selector: 'kendo-toolbar-button[kendoEditorDeleteTableButton]',
|
|
@@ -6135,6 +6583,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
6135
6583
|
* ([see example]({% slug globalization_editor %}#toc-custom-messages)).
|
|
6136
6584
|
*/
|
|
6137
6585
|
class CustomMessagesComponent extends MessagesDirective {
|
|
6586
|
+
service;
|
|
6138
6587
|
constructor(service) {
|
|
6139
6588
|
super();
|
|
6140
6589
|
this.service = service;
|
|
@@ -6142,15 +6591,15 @@ class CustomMessagesComponent extends MessagesDirective {
|
|
|
6142
6591
|
get override() {
|
|
6143
6592
|
return true;
|
|
6144
6593
|
}
|
|
6594
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
6595
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: CustomMessagesComponent, isStandalone: true, selector: "kendo-editor-messages", providers: [
|
|
6596
|
+
{
|
|
6597
|
+
provide: MessagesDirective,
|
|
6598
|
+
useExisting: forwardRef(() => CustomMessagesComponent)
|
|
6599
|
+
}
|
|
6600
|
+
], usesInheritance: true, ngImport: i0 });
|
|
6145
6601
|
}
|
|
6146
|
-
|
|
6147
|
-
CustomMessagesComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: CustomMessagesComponent, isStandalone: true, selector: "kendo-editor-messages", providers: [
|
|
6148
|
-
{
|
|
6149
|
-
provide: MessagesDirective,
|
|
6150
|
-
useExisting: forwardRef(() => CustomMessagesComponent)
|
|
6151
|
-
}
|
|
6152
|
-
], usesInheritance: true, ngImport: i0 });
|
|
6153
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CustomMessagesComponent, decorators: [{
|
|
6602
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CustomMessagesComponent, decorators: [{
|
|
6154
6603
|
type: Directive,
|
|
6155
6604
|
args: [{
|
|
6156
6605
|
providers: [
|
|
@@ -6199,10 +6648,10 @@ class EditorPrintDirective extends EditorCommandButton {
|
|
|
6199
6648
|
}
|
|
6200
6649
|
}
|
|
6201
6650
|
}
|
|
6651
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorPrintDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: EditorLocalizationService }, { token: ProviderService }, { token: EditorToolsService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
6652
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: EditorPrintDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorPrintButton]", usesInheritance: true, ngImport: i0 });
|
|
6202
6653
|
}
|
|
6203
|
-
|
|
6204
|
-
EditorPrintDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: EditorPrintDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorPrintButton]", usesInheritance: true, ngImport: i0 });
|
|
6205
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EditorPrintDirective, decorators: [{
|
|
6654
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorPrintDirective, decorators: [{
|
|
6206
6655
|
type: Directive,
|
|
6207
6656
|
args: [{
|
|
6208
6657
|
selector: 'kendo-toolbar-button[kendoEditorPrintButton]',
|
|
@@ -6228,10 +6677,10 @@ class EditorSelectAllButtonDirective extends EditorCommandButton {
|
|
|
6228
6677
|
this.editor.shouldEmitFocus = true;
|
|
6229
6678
|
super.clickHandler();
|
|
6230
6679
|
}
|
|
6680
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorSelectAllButtonDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: EditorLocalizationService }, { token: ProviderService }, { token: EditorToolsService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
6681
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: EditorSelectAllButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorSelectAllButton]", usesInheritance: true, ngImport: i0 });
|
|
6231
6682
|
}
|
|
6232
|
-
|
|
6233
|
-
EditorSelectAllButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: EditorSelectAllButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorSelectAllButton]", usesInheritance: true, ngImport: i0 });
|
|
6234
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EditorSelectAllButtonDirective, decorators: [{
|
|
6683
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorSelectAllButtonDirective, decorators: [{
|
|
6235
6684
|
type: Directive,
|
|
6236
6685
|
args: [{
|
|
6237
6686
|
selector: 'kendo-toolbar-button[kendoEditorSelectAllButton]',
|
|
@@ -6256,10 +6705,10 @@ class EditorSplitCellButtonDirective extends EditorCommandButton {
|
|
|
6256
6705
|
constructor(button, localization, providerService, toolsService) {
|
|
6257
6706
|
super('splitCell', button, localization, providerService, toolsService);
|
|
6258
6707
|
}
|
|
6708
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorSplitCellButtonDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: EditorLocalizationService }, { token: ProviderService }, { token: EditorToolsService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
6709
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: EditorSplitCellButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorSplitCellButton]", usesInheritance: true, ngImport: i0 });
|
|
6259
6710
|
}
|
|
6260
|
-
|
|
6261
|
-
EditorSplitCellButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: EditorSplitCellButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorSplitCellButton]", usesInheritance: true, ngImport: i0 });
|
|
6262
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EditorSplitCellButtonDirective, decorators: [{
|
|
6711
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorSplitCellButtonDirective, decorators: [{
|
|
6263
6712
|
type: Directive,
|
|
6264
6713
|
args: [{
|
|
6265
6714
|
selector: 'kendo-toolbar-button[kendoEditorSplitCellButton]',
|
|
@@ -6284,10 +6733,10 @@ class EditorMergeCellsButtonDirective extends EditorCommandButton {
|
|
|
6284
6733
|
constructor(button, localization, providerService, toolsService) {
|
|
6285
6734
|
super('mergeCells', button, localization, providerService, toolsService);
|
|
6286
6735
|
}
|
|
6736
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorMergeCellsButtonDirective, deps: [{ token: i1$2.ToolBarButtonComponent }, { token: EditorLocalizationService }, { token: ProviderService }, { token: EditorToolsService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
6737
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: EditorMergeCellsButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorMergeCellsButton]", usesInheritance: true, ngImport: i0 });
|
|
6287
6738
|
}
|
|
6288
|
-
|
|
6289
|
-
EditorMergeCellsButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: EditorMergeCellsButtonDirective, isStandalone: true, selector: "kendo-toolbar-button[kendoEditorMergeCellsButton]", usesInheritance: true, ngImport: i0 });
|
|
6290
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EditorMergeCellsButtonDirective, decorators: [{
|
|
6739
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorMergeCellsButtonDirective, decorators: [{
|
|
6291
6740
|
type: Directive,
|
|
6292
6741
|
args: [{
|
|
6293
6742
|
selector: 'kendo-toolbar-button[kendoEditorMergeCellsButton]',
|
|
@@ -6344,21 +6793,6 @@ const KENDO_EDITOR = [
|
|
|
6344
6793
|
EditorSplitCellButtonDirective
|
|
6345
6794
|
];
|
|
6346
6795
|
|
|
6347
|
-
const TOOLBAR_DIALOGS = [
|
|
6348
|
-
FileLinkDialogComponent,
|
|
6349
|
-
ImageDialogComponent,
|
|
6350
|
-
SourceDialogComponent,
|
|
6351
|
-
FormatDialogComponent,
|
|
6352
|
-
ColorPickerDialogComponent,
|
|
6353
|
-
FontFamilyDialogComponent,
|
|
6354
|
-
FontSizeDialogComponent,
|
|
6355
|
-
InsertTableDialogComponent
|
|
6356
|
-
// TableWizardDialogComponent
|
|
6357
|
-
// Table Wizard Building Blocks
|
|
6358
|
-
// TableSettingsComponent,
|
|
6359
|
-
// CellSettingsComponent,
|
|
6360
|
-
// AccessibilitySettingsComponent
|
|
6361
|
-
];
|
|
6362
6796
|
// IMPORTANT: NgModule export kept for backwards compatibility
|
|
6363
6797
|
/**
|
|
6364
6798
|
* Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi']) definition for the Editor component.
|
|
@@ -6379,15 +6813,15 @@ const TOOLBAR_DIALOGS = [
|
|
|
6379
6813
|
* ```
|
|
6380
6814
|
*/
|
|
6381
6815
|
class EditorModule {
|
|
6816
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
6817
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: EditorModule, imports: [EditorComponent, EditorAlignLeftButtonDirective, EditorAlignCenterButtonDirective, EditorAlignRightButtonDirective, EditorAlignJustifyButtonDirective, EditorInsertFileButtonDirective, EditorRedoButtonDirective, EditorUndoButtonDirective, EditorInsertImageButtonDirective, EditorIndentButtonDirective, EditorOutdentButtonDirective, EditorCreateLinkButtonDirective, EditorUnlinkButtonDirective, EditorInsertOrderedListButtonDirective, EditorInsertUnorderedListButtonDirective, EditorViewSourceButtonDirective, EditorBoldButtonDirective, EditorItalicButtonDirective, EditorUnderlineButtonDirective, EditorStrikethroughButtonDirective, EditorSubscriptButtonDirective, EditorSuperscriptButtonDirective, EditorForeColorDirective, EditorBackColorDirective, EditorCleanFormattingButtonDirective, EditorAddColumnBeforeButtonDirective, EditorAddColumnAfterButtonDirective, EditorAddRowBeforeButtonDirective, EditorAddRowAfterButtonDirective, EditorDeleteColumnButtonDirective, EditorDeleteRowButtonDirective, EditorDeleteTableButtonDirective, CustomMessagesComponent, EditorPrintDirective, EditorSelectAllButtonDirective, EditorBlockquoteDirective, EditorFontSizeComponent, EditorFontFamilyComponent, EditorFormatComponent, EditorColorPickerComponent, EditorInsertTableButtonComponent, EditorMergeCellsButtonDirective, EditorSplitCellButtonDirective, i1$2.ToolBarComponent, i1$2.ToolbarCustomMessagesComponent, i1$2.ToolBarButtonComponent, i1$2.ToolBarButtonGroupComponent, i1$2.ToolBarDropDownButtonComponent, i1$2.ToolBarSeparatorComponent, i1$2.ToolBarSpacerComponent, i1$2.ToolBarSplitButtonComponent, i1$2.ToolBarToolComponent], exports: [EditorComponent, EditorAlignLeftButtonDirective, EditorAlignCenterButtonDirective, EditorAlignRightButtonDirective, EditorAlignJustifyButtonDirective, EditorInsertFileButtonDirective, EditorRedoButtonDirective, EditorUndoButtonDirective, EditorInsertImageButtonDirective, EditorIndentButtonDirective, EditorOutdentButtonDirective, EditorCreateLinkButtonDirective, EditorUnlinkButtonDirective, EditorInsertOrderedListButtonDirective, EditorInsertUnorderedListButtonDirective, EditorViewSourceButtonDirective, EditorBoldButtonDirective, EditorItalicButtonDirective, EditorUnderlineButtonDirective, EditorStrikethroughButtonDirective, EditorSubscriptButtonDirective, EditorSuperscriptButtonDirective, EditorForeColorDirective, EditorBackColorDirective, EditorCleanFormattingButtonDirective, EditorAddColumnBeforeButtonDirective, EditorAddColumnAfterButtonDirective, EditorAddRowBeforeButtonDirective, EditorAddRowAfterButtonDirective, EditorDeleteColumnButtonDirective, EditorDeleteRowButtonDirective, EditorDeleteTableButtonDirective, CustomMessagesComponent, EditorPrintDirective, EditorSelectAllButtonDirective, EditorBlockquoteDirective, EditorFontSizeComponent, EditorFontFamilyComponent, EditorFormatComponent, EditorColorPickerComponent, EditorInsertTableButtonComponent, EditorMergeCellsButtonDirective, EditorSplitCellButtonDirective, i1$2.ToolBarComponent, i1$2.ToolbarCustomMessagesComponent, i1$2.ToolBarButtonComponent, i1$2.ToolBarButtonGroupComponent, i1$2.ToolBarDropDownButtonComponent, i1$2.ToolBarSeparatorComponent, i1$2.ToolBarSpacerComponent, i1$2.ToolBarSplitButtonComponent, i1$2.ToolBarToolComponent] });
|
|
6818
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorModule, providers: [IconsService, PopupService, ResizeBatchService, DialogContainerService, DialogService, WindowService, WindowContainerService], imports: [EditorComponent, EditorFontSizeComponent, EditorFontFamilyComponent, EditorFormatComponent, EditorColorPickerComponent, EditorInsertTableButtonComponent, i1$2.ToolBarComponent, i1$2.ToolbarCustomMessagesComponent, i1$2.ToolBarButtonComponent, i1$2.ToolBarButtonGroupComponent, i1$2.ToolBarDropDownButtonComponent, i1$2.ToolBarSeparatorComponent, i1$2.ToolBarSpacerComponent, i1$2.ToolBarSplitButtonComponent] });
|
|
6382
6819
|
}
|
|
6383
|
-
|
|
6384
|
-
EditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: EditorModule, imports: [EditorComponent, EditorAlignLeftButtonDirective, EditorAlignCenterButtonDirective, EditorAlignRightButtonDirective, EditorAlignJustifyButtonDirective, EditorInsertFileButtonDirective, EditorRedoButtonDirective, EditorUndoButtonDirective, EditorInsertImageButtonDirective, EditorIndentButtonDirective, EditorOutdentButtonDirective, EditorCreateLinkButtonDirective, EditorUnlinkButtonDirective, EditorInsertOrderedListButtonDirective, EditorInsertUnorderedListButtonDirective, EditorViewSourceButtonDirective, EditorBoldButtonDirective, EditorItalicButtonDirective, EditorUnderlineButtonDirective, EditorStrikethroughButtonDirective, EditorSubscriptButtonDirective, EditorSuperscriptButtonDirective, EditorForeColorDirective, EditorBackColorDirective, EditorCleanFormattingButtonDirective, EditorAddColumnBeforeButtonDirective, EditorAddColumnAfterButtonDirective, EditorAddRowBeforeButtonDirective, EditorAddRowAfterButtonDirective, EditorDeleteColumnButtonDirective, EditorDeleteRowButtonDirective, EditorDeleteTableButtonDirective, CustomMessagesComponent, EditorPrintDirective, EditorSelectAllButtonDirective, EditorBlockquoteDirective, EditorFontSizeComponent, EditorFontFamilyComponent, EditorFormatComponent, EditorColorPickerComponent, EditorInsertTableButtonComponent, EditorMergeCellsButtonDirective, EditorSplitCellButtonDirective], exports: [EditorComponent, EditorAlignLeftButtonDirective, EditorAlignCenterButtonDirective, EditorAlignRightButtonDirective, EditorAlignJustifyButtonDirective, EditorInsertFileButtonDirective, EditorRedoButtonDirective, EditorUndoButtonDirective, EditorInsertImageButtonDirective, EditorIndentButtonDirective, EditorOutdentButtonDirective, EditorCreateLinkButtonDirective, EditorUnlinkButtonDirective, EditorInsertOrderedListButtonDirective, EditorInsertUnorderedListButtonDirective, EditorViewSourceButtonDirective, EditorBoldButtonDirective, EditorItalicButtonDirective, EditorUnderlineButtonDirective, EditorStrikethroughButtonDirective, EditorSubscriptButtonDirective, EditorSuperscriptButtonDirective, EditorForeColorDirective, EditorBackColorDirective, EditorCleanFormattingButtonDirective, EditorAddColumnBeforeButtonDirective, EditorAddColumnAfterButtonDirective, EditorAddRowBeforeButtonDirective, EditorAddRowAfterButtonDirective, EditorDeleteColumnButtonDirective, EditorDeleteRowButtonDirective, EditorDeleteTableButtonDirective, CustomMessagesComponent, EditorPrintDirective, EditorSelectAllButtonDirective, EditorBlockquoteDirective, EditorFontSizeComponent, EditorFontFamilyComponent, EditorFormatComponent, EditorColorPickerComponent, EditorInsertTableButtonComponent, EditorMergeCellsButtonDirective, EditorSplitCellButtonDirective, FormsModule, ReactiveFormsModule, ToolBarModule] });
|
|
6385
|
-
EditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EditorModule, providers: [IconsService, PopupService, ResizeBatchService, DialogContainerService, DialogService, WindowService, WindowContainerService], imports: [EditorComponent, EditorFontSizeComponent, EditorFontFamilyComponent, EditorFormatComponent, EditorColorPickerComponent, EditorInsertTableButtonComponent, FormsModule, ReactiveFormsModule, ToolBarModule] });
|
|
6386
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: EditorModule, decorators: [{
|
|
6820
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorModule, decorators: [{
|
|
6387
6821
|
type: NgModule,
|
|
6388
6822
|
args: [{
|
|
6389
|
-
exports: [...KENDO_EDITOR,
|
|
6390
|
-
imports: [...KENDO_EDITOR],
|
|
6823
|
+
exports: [...KENDO_EDITOR, ...KENDO_TOOLBAR],
|
|
6824
|
+
imports: [...KENDO_EDITOR, ...KENDO_TOOLBAR],
|
|
6391
6825
|
providers: [IconsService, PopupService, ResizeBatchService, DialogContainerService, DialogService, WindowService, WindowContainerService]
|
|
6392
6826
|
}]
|
|
6393
6827
|
}] });
|