@progress/kendo-angular-editor 11.0.0-develop.104 → 11.0.0-develop.106
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/dialogs/file-link-dialog.component.d.ts +2 -2
- package/dialogs/image-dialog.component.d.ts +2 -2
- package/dialogs/source-dialog.component.d.ts +2 -2
- package/editor.component.d.ts +3 -2
- package/editor.module.d.ts +2 -1
- package/esm2020/dialogs/colorpicker-dialog.component.mjs +26 -34
- package/esm2020/dialogs/file-link-dialog.component.mjs +79 -77
- package/esm2020/dialogs/font-family-dialog.component.mjs +20 -28
- package/esm2020/dialogs/font-size-dialog.component.mjs +20 -28
- package/esm2020/dialogs/format-dialog.component.mjs +20 -28
- package/esm2020/dialogs/image-dialog.component.mjs +74 -63
- package/esm2020/dialogs/insert-table-dialog.component.mjs +6 -14
- package/esm2020/dialogs/source-dialog.component.mjs +9 -7
- package/esm2020/editor.component.mjs +29 -9
- package/esm2020/editor.module.mjs +11 -4
- package/esm2020/package-metadata.mjs +1 -1
- package/esm2020/tools/colorpicker/editor-colorpicker.component.mjs +8 -5
- package/esm2020/tools/fontfamily/editor-fontfamily.component.mjs +8 -5
- package/esm2020/tools/fontsize/editor-fontsize.component.mjs +8 -5
- package/esm2020/tools/format/editor-format.component.mjs +8 -5
- package/esm2020/tools/tables/editor-insert-table-button.component.mjs +8 -5
- package/fesm2015/progress-kendo-angular-editor.mjs +332 -321
- package/fesm2020/progress-kendo-angular-editor.mjs +332 -321
- package/package.json +12 -12
- package/tools/colorpicker/editor-colorpicker.component.d.ts +3 -2
- package/tools/fontfamily/editor-fontfamily.component.d.ts +3 -2
- package/tools/fontsize/editor-fontsize.component.d.ts +3 -2
- package/tools/format/editor-format.component.d.ts +3 -2
- package/tools/tables/editor-insert-table-button.component.d.ts +3 -2
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { ElementRef } from '@angular/core';
|
|
6
5
|
import { FormGroup } from '@angular/forms';
|
|
7
6
|
import { DialogContentBase, DialogRef } from '@progress/kendo-angular-dialog';
|
|
8
7
|
import { EditorState } from '@progress/kendo-editor-common';
|
|
9
8
|
import { DialogCommand } from '../common/commands';
|
|
10
9
|
import { EditorLocalizationService } from '../localization/editor-localization.service';
|
|
10
|
+
import { TextBoxComponent } from '@progress/kendo-angular-inputs';
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
12
12
|
/**
|
|
13
13
|
* @hidden
|
|
@@ -17,7 +17,7 @@ export declare class FileLinkDialogComponent extends DialogContentBase {
|
|
|
17
17
|
localization: EditorLocalizationService;
|
|
18
18
|
editor: any;
|
|
19
19
|
command: DialogCommand;
|
|
20
|
-
hrefInput:
|
|
20
|
+
hrefInput: TextBoxComponent;
|
|
21
21
|
linkForm: FormGroup;
|
|
22
22
|
constructor(dialog: DialogRef, localization: EditorLocalizationService);
|
|
23
23
|
ngAfterViewInit(): void;
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { ElementRef } from '@angular/core';
|
|
6
5
|
import { FormControl, FormGroup } from '@angular/forms';
|
|
7
6
|
import { DialogRef, DialogContentBase } from '@progress/kendo-angular-dialog';
|
|
8
7
|
import { EditorState } from '@progress/kendo-editor-common';
|
|
9
8
|
import { ImageData } from '../common/image-data.interface';
|
|
10
9
|
import { EditorLocalizationService } from '../localization/editor-localization.service';
|
|
10
|
+
import { TextBoxComponent } from '@progress/kendo-angular-inputs';
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
12
12
|
/**
|
|
13
13
|
* @hidden
|
|
@@ -16,7 +16,7 @@ export declare class ImageDialogComponent extends DialogContentBase {
|
|
|
16
16
|
dialog: DialogRef;
|
|
17
17
|
private localization;
|
|
18
18
|
editor: any;
|
|
19
|
-
srcInput:
|
|
19
|
+
srcInput: TextBoxComponent;
|
|
20
20
|
src: FormControl;
|
|
21
21
|
alt: FormControl;
|
|
22
22
|
width: FormControl;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { ElementRef } from '@angular/core';
|
|
6
5
|
import { DialogRef, DialogContentBase } from '@progress/kendo-angular-dialog';
|
|
6
|
+
import { TextAreaComponent } from '@progress/kendo-angular-inputs';
|
|
7
7
|
import { EditorLocalizationService } from '../localization/editor-localization.service';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
/**
|
|
@@ -13,7 +13,7 @@ export declare class SourceDialogComponent extends DialogContentBase {
|
|
|
13
13
|
dialog: DialogRef;
|
|
14
14
|
private localization;
|
|
15
15
|
editor: any;
|
|
16
|
-
textarea:
|
|
16
|
+
textarea: TextAreaComponent;
|
|
17
17
|
data: string;
|
|
18
18
|
constructor(dialog: DialogRef, localization: EditorLocalizationService);
|
|
19
19
|
ngAfterViewInit(): void;
|
package/editor.component.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { AfterViewInit, ViewContainerRef, ElementRef, EventEmitter, ChangeDetectorRef, NgZone, SimpleChanges } from '@angular/core';
|
|
5
|
+
import { AfterViewInit, ViewContainerRef, ElementRef, EventEmitter, ChangeDetectorRef, NgZone, SimpleChanges, Renderer2 } from '@angular/core';
|
|
6
6
|
import { ControlValueAccessor } from '@angular/forms';
|
|
7
7
|
import { BehaviorSubject, Subject } from 'rxjs';
|
|
8
8
|
import { ToolBarComponent } from '@progress/kendo-angular-toolbar';
|
|
@@ -31,6 +31,7 @@ export declare class EditorComponent implements AfterViewInit, ControlValueAcces
|
|
|
31
31
|
private element;
|
|
32
32
|
private providerService;
|
|
33
33
|
private toolsService;
|
|
34
|
+
private renderer;
|
|
34
35
|
/**
|
|
35
36
|
* Sets the value of the Editor ([see example]({% slug overview_editor %}#toc-basic-usage)).
|
|
36
37
|
*/
|
|
@@ -186,7 +187,7 @@ export declare class EditorComponent implements AfterViewInit, ControlValueAcces
|
|
|
186
187
|
private _iframeCss;
|
|
187
188
|
private afterViewInit;
|
|
188
189
|
private contentAreaLoaded;
|
|
189
|
-
constructor(dialogService: DialogService, localization: LocalizationService, cdr: ChangeDetectorRef, ngZone: NgZone, element: ElementRef, providerService: ProviderService, toolsService: EditorToolsService);
|
|
190
|
+
constructor(dialogService: DialogService, localization: LocalizationService, cdr: ChangeDetectorRef, ngZone: NgZone, element: ElementRef, providerService: ProviderService, toolsService: EditorToolsService, renderer: Renderer2);
|
|
190
191
|
ngOnInit(): void;
|
|
191
192
|
ngAfterViewInit(): void;
|
|
192
193
|
ngOnChanges(changes: SimpleChanges): void;
|
package/editor.module.d.ts
CHANGED
|
@@ -67,6 +67,7 @@ import * as i61 from "@progress/kendo-angular-inputs";
|
|
|
67
67
|
import * as i62 from "@progress/kendo-angular-dialog";
|
|
68
68
|
import * as i63 from "@progress/kendo-angular-dropdowns";
|
|
69
69
|
import * as i64 from "@progress/kendo-angular-toolbar";
|
|
70
|
+
import * as i65 from "@progress/kendo-angular-label";
|
|
70
71
|
/**
|
|
71
72
|
* Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi']) definition for the Editor component.
|
|
72
73
|
*
|
|
@@ -108,6 +109,6 @@ import * as i64 from "@progress/kendo-angular-toolbar";
|
|
|
108
109
|
*/
|
|
109
110
|
export declare class EditorModule {
|
|
110
111
|
static ɵfac: i0.ɵɵFactoryDeclaration<EditorModule, never>;
|
|
111
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<EditorModule, [typeof i1.EditorComponent, typeof i2.EditorAlignLeftButtonDirective, typeof i3.EditorAlignCenterButtonDirective, typeof i4.EditorAlignRightButtonDirective, typeof i5.EditorAlignJustifyButtonDirective, typeof i6.EditorInsertFileButtonDirective, typeof i7.EditorRedoButtonDirective, typeof i8.EditorUndoButtonDirective, typeof i9.EditorInsertImageButtonDirective, typeof i10.EditorIndentButtonDirective, typeof i11.EditorOutdentButtonDirective, typeof i12.EditorCreateLinkButtonDirective, typeof i13.EditorUnlinkButtonDirective, typeof i14.EditorInsertOrderedListButtonDirective, typeof i15.EditorInsertUnorderedListButtonDirective, typeof i16.EditorViewSourceButtonDirective, typeof i17.EditorBoldButtonDirective, typeof i18.EditorItalicButtonDirective, typeof i19.EditorUnderlineButtonDirective, typeof i20.EditorStrikethroughButtonDirective, typeof i21.EditorSubscriptButtonDirective, typeof i22.EditorSuperscriptButtonDirective, typeof i23.EditorForeColorDirective, typeof i24.EditorBackColorDirective, typeof i25.EditorCleanFormattingButtonDirective, typeof i26.EditorAddColumnBeforeButtonDirective, typeof i27.EditorAddColumnAfterButtonDirective, typeof i28.EditorAddRowBeforeButtonDirective, typeof i29.EditorAddRowAfterButtonDirective, typeof i30.EditorDeleteColumnButtonDirective, typeof i31.EditorDeleteRowButtonDirective, typeof i32.EditorDeleteTableButtonDirective, typeof i33.EditorMergeCellsButtonDirective, typeof i34.EditorSplitCellButtonDirective, typeof i35.CustomMessagesComponent, typeof i36.LocalizedMessagesDirective, typeof i37.DropDownToolDirective, typeof i38.EditorPrintDirective, typeof i39.EditorSelectAllButtonDirective, typeof i40.EditorBlockquoteDirective, typeof i41.EditorFontSizeComponent, typeof i42.EditorFontFamilyComponent, typeof i43.EditorFormatComponent, typeof i44.EditorColorPickerComponent, typeof i45.EditorInsertTableButtonComponent, typeof i46.FileLinkDialogComponent, typeof i47.ImageDialogComponent, typeof i48.SourceDialogComponent, typeof i49.FormatDialogComponent, typeof i50.ColorPickerDialogComponent, typeof i51.FontFamilyDialogComponent, typeof i52.FontSizeDialogComponent, typeof i53.InsertTableDialogComponent, typeof i54.PopupTableGridComponent, typeof i55.FormatDropDownListComponent, typeof i56.FontFamilyDropDownListComponent, typeof i57.FontSizeDropDownListComponent], [typeof i58.CommonModule, typeof i59.FormsModule, typeof i59.ReactiveFormsModule, typeof i60.ButtonModule, typeof i61.ColorPickerModule, typeof i62.DialogModule, typeof i63.DropDownsModule, typeof i61.NumericTextBoxModule, typeof i61.CheckBoxModule, typeof i64.ToolBarModule, typeof i61.TextBoxModule], [typeof i1.EditorComponent, typeof i2.EditorAlignLeftButtonDirective, typeof i3.EditorAlignCenterButtonDirective, typeof i4.EditorAlignRightButtonDirective, typeof i5.EditorAlignJustifyButtonDirective, typeof i6.EditorInsertFileButtonDirective, typeof i7.EditorRedoButtonDirective, typeof i8.EditorUndoButtonDirective, typeof i9.EditorInsertImageButtonDirective, typeof i10.EditorIndentButtonDirective, typeof i11.EditorOutdentButtonDirective, typeof i12.EditorCreateLinkButtonDirective, typeof i13.EditorUnlinkButtonDirective, typeof i14.EditorInsertOrderedListButtonDirective, typeof i15.EditorInsertUnorderedListButtonDirective, typeof i16.EditorViewSourceButtonDirective, typeof i17.EditorBoldButtonDirective, typeof i18.EditorItalicButtonDirective, typeof i19.EditorUnderlineButtonDirective, typeof i20.EditorStrikethroughButtonDirective, typeof i21.EditorSubscriptButtonDirective, typeof i22.EditorSuperscriptButtonDirective, typeof i23.EditorForeColorDirective, typeof i24.EditorBackColorDirective, typeof i25.EditorCleanFormattingButtonDirective, typeof i26.EditorAddColumnBeforeButtonDirective, typeof i27.EditorAddColumnAfterButtonDirective, typeof i28.EditorAddRowBeforeButtonDirective, typeof i29.EditorAddRowAfterButtonDirective, typeof i30.EditorDeleteColumnButtonDirective, typeof i31.EditorDeleteRowButtonDirective, typeof i32.EditorDeleteTableButtonDirective, typeof i33.EditorMergeCellsButtonDirective, typeof i34.EditorSplitCellButtonDirective, typeof i35.CustomMessagesComponent, typeof i36.LocalizedMessagesDirective, typeof i37.DropDownToolDirective, typeof i38.EditorPrintDirective, typeof i39.EditorSelectAllButtonDirective, typeof i40.EditorBlockquoteDirective, typeof i41.EditorFontSizeComponent, typeof i42.EditorFontFamilyComponent, typeof i43.EditorFormatComponent, typeof i44.EditorColorPickerComponent, typeof i45.EditorInsertTableButtonComponent, typeof i64.ToolBarModule, typeof i60.ButtonModule, typeof i59.FormsModule, typeof i59.ReactiveFormsModule, typeof i54.PopupTableGridComponent, typeof i55.FormatDropDownListComponent, typeof i56.FontFamilyDropDownListComponent, typeof i57.FontSizeDropDownListComponent]>;
|
|
112
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<EditorModule, [typeof i1.EditorComponent, typeof i2.EditorAlignLeftButtonDirective, typeof i3.EditorAlignCenterButtonDirective, typeof i4.EditorAlignRightButtonDirective, typeof i5.EditorAlignJustifyButtonDirective, typeof i6.EditorInsertFileButtonDirective, typeof i7.EditorRedoButtonDirective, typeof i8.EditorUndoButtonDirective, typeof i9.EditorInsertImageButtonDirective, typeof i10.EditorIndentButtonDirective, typeof i11.EditorOutdentButtonDirective, typeof i12.EditorCreateLinkButtonDirective, typeof i13.EditorUnlinkButtonDirective, typeof i14.EditorInsertOrderedListButtonDirective, typeof i15.EditorInsertUnorderedListButtonDirective, typeof i16.EditorViewSourceButtonDirective, typeof i17.EditorBoldButtonDirective, typeof i18.EditorItalicButtonDirective, typeof i19.EditorUnderlineButtonDirective, typeof i20.EditorStrikethroughButtonDirective, typeof i21.EditorSubscriptButtonDirective, typeof i22.EditorSuperscriptButtonDirective, typeof i23.EditorForeColorDirective, typeof i24.EditorBackColorDirective, typeof i25.EditorCleanFormattingButtonDirective, typeof i26.EditorAddColumnBeforeButtonDirective, typeof i27.EditorAddColumnAfterButtonDirective, typeof i28.EditorAddRowBeforeButtonDirective, typeof i29.EditorAddRowAfterButtonDirective, typeof i30.EditorDeleteColumnButtonDirective, typeof i31.EditorDeleteRowButtonDirective, typeof i32.EditorDeleteTableButtonDirective, typeof i33.EditorMergeCellsButtonDirective, typeof i34.EditorSplitCellButtonDirective, typeof i35.CustomMessagesComponent, typeof i36.LocalizedMessagesDirective, typeof i37.DropDownToolDirective, typeof i38.EditorPrintDirective, typeof i39.EditorSelectAllButtonDirective, typeof i40.EditorBlockquoteDirective, typeof i41.EditorFontSizeComponent, typeof i42.EditorFontFamilyComponent, typeof i43.EditorFormatComponent, typeof i44.EditorColorPickerComponent, typeof i45.EditorInsertTableButtonComponent, typeof i46.FileLinkDialogComponent, typeof i47.ImageDialogComponent, typeof i48.SourceDialogComponent, typeof i49.FormatDialogComponent, typeof i50.ColorPickerDialogComponent, typeof i51.FontFamilyDialogComponent, typeof i52.FontSizeDialogComponent, typeof i53.InsertTableDialogComponent, typeof i54.PopupTableGridComponent, typeof i55.FormatDropDownListComponent, typeof i56.FontFamilyDropDownListComponent, typeof i57.FontSizeDropDownListComponent], [typeof i58.CommonModule, typeof i59.FormsModule, typeof i59.ReactiveFormsModule, typeof i60.ButtonModule, typeof i61.ColorPickerModule, typeof i62.DialogModule, typeof i63.DropDownsModule, typeof i61.NumericTextBoxModule, typeof i61.CheckBoxModule, typeof i64.ToolBarModule, typeof i61.TextBoxModule, typeof i61.TextAreaModule, typeof i65.LabelModule], [typeof i1.EditorComponent, typeof i2.EditorAlignLeftButtonDirective, typeof i3.EditorAlignCenterButtonDirective, typeof i4.EditorAlignRightButtonDirective, typeof i5.EditorAlignJustifyButtonDirective, typeof i6.EditorInsertFileButtonDirective, typeof i7.EditorRedoButtonDirective, typeof i8.EditorUndoButtonDirective, typeof i9.EditorInsertImageButtonDirective, typeof i10.EditorIndentButtonDirective, typeof i11.EditorOutdentButtonDirective, typeof i12.EditorCreateLinkButtonDirective, typeof i13.EditorUnlinkButtonDirective, typeof i14.EditorInsertOrderedListButtonDirective, typeof i15.EditorInsertUnorderedListButtonDirective, typeof i16.EditorViewSourceButtonDirective, typeof i17.EditorBoldButtonDirective, typeof i18.EditorItalicButtonDirective, typeof i19.EditorUnderlineButtonDirective, typeof i20.EditorStrikethroughButtonDirective, typeof i21.EditorSubscriptButtonDirective, typeof i22.EditorSuperscriptButtonDirective, typeof i23.EditorForeColorDirective, typeof i24.EditorBackColorDirective, typeof i25.EditorCleanFormattingButtonDirective, typeof i26.EditorAddColumnBeforeButtonDirective, typeof i27.EditorAddColumnAfterButtonDirective, typeof i28.EditorAddRowBeforeButtonDirective, typeof i29.EditorAddRowAfterButtonDirective, typeof i30.EditorDeleteColumnButtonDirective, typeof i31.EditorDeleteRowButtonDirective, typeof i32.EditorDeleteTableButtonDirective, typeof i33.EditorMergeCellsButtonDirective, typeof i34.EditorSplitCellButtonDirective, typeof i35.CustomMessagesComponent, typeof i36.LocalizedMessagesDirective, typeof i37.DropDownToolDirective, typeof i38.EditorPrintDirective, typeof i39.EditorSelectAllButtonDirective, typeof i40.EditorBlockquoteDirective, typeof i41.EditorFontSizeComponent, typeof i42.EditorFontFamilyComponent, typeof i43.EditorFormatComponent, typeof i44.EditorColorPickerComponent, typeof i45.EditorInsertTableButtonComponent, typeof i64.ToolBarModule, typeof i60.ButtonModule, typeof i59.FormsModule, typeof i59.ReactiveFormsModule, typeof i54.PopupTableGridComponent, typeof i55.FormatDropDownListComponent, typeof i56.FontFamilyDropDownListComponent, typeof i57.FontSizeDropDownListComponent]>;
|
|
112
113
|
static ɵinj: i0.ɵɵInjectorDeclaration<EditorModule>;
|
|
113
114
|
}
|
|
@@ -57,24 +57,20 @@ ColorPickerDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0
|
|
|
57
57
|
<kendo-dialog-titlebar (close)="onCancelAction()">
|
|
58
58
|
{{ textFor(editorCommand) }}
|
|
59
59
|
</kendo-dialog-titlebar>
|
|
60
|
-
<div
|
|
61
|
-
<
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
>
|
|
73
|
-
</kendo-colorpicker>
|
|
74
|
-
</div>
|
|
75
|
-
</div>
|
|
60
|
+
<div [style.text-align]="'center'">
|
|
61
|
+
<kendo-colorpicker
|
|
62
|
+
#colorpicker
|
|
63
|
+
[views]="views"
|
|
64
|
+
[format]="'hex'"
|
|
65
|
+
[attr.title]="title"
|
|
66
|
+
[icon]="icon"
|
|
67
|
+
[(value)]="value"
|
|
68
|
+
[paletteSettings]="paletteSettings"
|
|
69
|
+
(activeColorClick)="handleActiveColorClick($event)"
|
|
70
|
+
>
|
|
71
|
+
</kendo-colorpicker>
|
|
76
72
|
</div>
|
|
77
|
-
<kendo-dialog-actions>
|
|
73
|
+
<kendo-dialog-actions class="k-actions-end k-actions-horizontal k-window-actions" [layout]="'normal'">
|
|
78
74
|
<button kendoButton (click)="onCancelAction()">{{ textFor('dialogCancel') }}</button>
|
|
79
75
|
<button kendoButton
|
|
80
76
|
(click)="onConfirmAction()" [primary]="true">{{ textFor('dialogApply') }}</button>
|
|
@@ -87,24 +83,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
87
83
|
<kendo-dialog-titlebar (close)="onCancelAction()">
|
|
88
84
|
{{ textFor(editorCommand) }}
|
|
89
85
|
</kendo-dialog-titlebar>
|
|
90
|
-
<div
|
|
91
|
-
<
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
>
|
|
103
|
-
</kendo-colorpicker>
|
|
104
|
-
</div>
|
|
105
|
-
</div>
|
|
86
|
+
<div [style.text-align]="'center'">
|
|
87
|
+
<kendo-colorpicker
|
|
88
|
+
#colorpicker
|
|
89
|
+
[views]="views"
|
|
90
|
+
[format]="'hex'"
|
|
91
|
+
[attr.title]="title"
|
|
92
|
+
[icon]="icon"
|
|
93
|
+
[(value)]="value"
|
|
94
|
+
[paletteSettings]="paletteSettings"
|
|
95
|
+
(activeColorClick)="handleActiveColorClick($event)"
|
|
96
|
+
>
|
|
97
|
+
</kendo-colorpicker>
|
|
106
98
|
</div>
|
|
107
|
-
<kendo-dialog-actions>
|
|
99
|
+
<kendo-dialog-actions class="k-actions-end k-actions-horizontal k-window-actions" [layout]="'normal'">
|
|
108
100
|
<button kendoButton (click)="onCancelAction()">{{ textFor('dialogCancel') }}</button>
|
|
109
101
|
<button kendoButton
|
|
110
102
|
(click)="onConfirmAction()" [primary]="true">{{ textFor('dialogApply') }}</button>
|
|
@@ -2,19 +2,21 @@
|
|
|
2
2
|
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Component, Input, ViewChild
|
|
5
|
+
import { Component, Input, ViewChild } from '@angular/core';
|
|
6
6
|
import { FormGroup, FormControl, Validators } from '@angular/forms';
|
|
7
7
|
import { DialogContentBase, DialogRef } from '@progress/kendo-angular-dialog';
|
|
8
8
|
import { getMark, getSelectionText, expandSelection } from '@progress/kendo-editor-common';
|
|
9
9
|
import { isPresent } from '../util';
|
|
10
10
|
import { EditorLocalizationService } from '../localization/editor-localization.service';
|
|
11
|
+
import { TextBoxComponent } from '@progress/kendo-angular-inputs';
|
|
11
12
|
import * as i0 from "@angular/core";
|
|
12
13
|
import * as i1 from "@progress/kendo-angular-dialog";
|
|
13
14
|
import * as i2 from "../localization/editor-localization.service";
|
|
14
|
-
import * as i3 from "@progress/kendo-angular-
|
|
15
|
-
import * as i4 from "@angular
|
|
16
|
-
import * as i5 from "@angular
|
|
17
|
-
import * as i6 from "@
|
|
15
|
+
import * as i3 from "@progress/kendo-angular-label";
|
|
16
|
+
import * as i4 from "@progress/kendo-angular-inputs";
|
|
17
|
+
import * as i5 from "@progress/kendo-angular-buttons";
|
|
18
|
+
import * as i6 from "@angular/forms";
|
|
19
|
+
import * as i7 from "@angular/common";
|
|
18
20
|
/**
|
|
19
21
|
* @hidden
|
|
20
22
|
*/
|
|
@@ -31,7 +33,7 @@ export class FileLinkDialogComponent extends DialogContentBase {
|
|
|
31
33
|
}
|
|
32
34
|
ngAfterViewInit() {
|
|
33
35
|
Promise.resolve(null).then(() => {
|
|
34
|
-
this.hrefInput.
|
|
36
|
+
this.hrefInput.focus();
|
|
35
37
|
});
|
|
36
38
|
}
|
|
37
39
|
onCancelAction() {
|
|
@@ -104,52 +106,52 @@ export class FileLinkDialogComponent extends DialogContentBase {
|
|
|
104
106
|
}
|
|
105
107
|
}
|
|
106
108
|
FileLinkDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FileLinkDialogComponent, deps: [{ token: i1.DialogRef }, { token: i2.EditorLocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
107
|
-
FileLinkDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: FileLinkDialogComponent, selector: "ng-component", inputs: { editor: "editor", command: "command" }, viewQueries: [{ propertyName: "hrefInput", first: true, predicate: ["hrefInput"], descendants: true
|
|
109
|
+
FileLinkDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: FileLinkDialogComponent, selector: "ng-component", inputs: { editor: "editor", command: "command" }, viewQueries: [{ propertyName: "hrefInput", first: true, predicate: ["hrefInput"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
108
110
|
<kendo-dialog-titlebar (close)="onCancelAction()">
|
|
109
111
|
{{ titleText }}
|
|
110
112
|
</kendo-dialog-titlebar>
|
|
111
|
-
<
|
|
112
|
-
<div class="k-
|
|
113
|
-
<div class="k-
|
|
114
|
-
<
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
<input #textInput formControlName="text" type="text" class="k-textbox k-input k-rounded-md" />
|
|
127
|
-
</div>
|
|
128
|
-
|
|
129
|
-
<div class="k-edit-label">
|
|
130
|
-
<label (click)="titleInput.focus()">{{ textForWithPrefix('Title') }}</label>
|
|
131
|
-
</div>
|
|
132
|
-
<div class="k-edit-field">
|
|
133
|
-
<input #titleInput formControlName="title" type="text" class="k-textbox k-input k-rounded-md" />
|
|
134
|
-
</div>
|
|
135
|
-
<ng-container *ngIf="command === 'createLink'">
|
|
136
|
-
<div class="k-edit-label"></div>
|
|
137
|
-
<div class="k-edit-field">
|
|
138
|
-
<input type="checkbox" id="k-target-blank" kendoCheckBox formControlName="target" />
|
|
139
|
-
<label class="k-checkbox-label" for="k-target-blank">{{ textForWithPrefix('OpenInNewWindow') }}</label>
|
|
140
|
-
</div>
|
|
141
|
-
</ng-container>
|
|
142
|
-
</form>
|
|
113
|
+
<form class="k-form k-form-md k-form-horizontal" novalidate [formGroup]="linkForm">
|
|
114
|
+
<div class="k-form-field">
|
|
115
|
+
<div class="k-form-label">
|
|
116
|
+
<kendo-label [for]="hrefInput" [text]="textForWithPrefix('WebAddress')"></kendo-label>
|
|
117
|
+
</div>
|
|
118
|
+
<div class="k-form-field-wrap">
|
|
119
|
+
<kendo-textbox #hrefInput formControlName="href"></kendo-textbox>
|
|
120
|
+
</div>
|
|
121
|
+
</div>
|
|
122
|
+
<div class="k-form-field">
|
|
123
|
+
<div class="k-form-label">
|
|
124
|
+
<kendo-label [for]="textInput" [text]="textForWithPrefix('Text')"></kendo-label>
|
|
125
|
+
</div>
|
|
126
|
+
<div class="k-form-field-wrap">
|
|
127
|
+
<kendo-textbox #textInput formControlName="text"></kendo-textbox>
|
|
143
128
|
</div>
|
|
144
129
|
</div>
|
|
145
|
-
|
|
146
|
-
|
|
130
|
+
<div class="k-form-field">
|
|
131
|
+
<div class="k-form-label">
|
|
132
|
+
<kendo-label [for]="titleInput" [text]="textForWithPrefix('Title')"></kendo-label>
|
|
133
|
+
</div>
|
|
134
|
+
<div class="k-form-field-wrap">
|
|
135
|
+
<kendo-textbox #titleInput formControlName="title"></kendo-textbox>
|
|
136
|
+
</div>
|
|
137
|
+
</div>
|
|
138
|
+
<ng-container *ngIf="command === 'createLink'">
|
|
139
|
+
<div class="k-form-field">
|
|
140
|
+
<div class="k-form-label"></div>
|
|
141
|
+
<div class="k-form-field-wrap">
|
|
142
|
+
<input type="checkbox" id="k-target-blank" kendoCheckBox formControlName="target" />
|
|
143
|
+
<label class="k-checkbox-label" for="k-target-blank" [style.display]="'inline'">{{ textForWithPrefix('OpenInNewWindow') }}</label>
|
|
144
|
+
</div>
|
|
145
|
+
</div>
|
|
146
|
+
</ng-container>
|
|
147
|
+
</form>
|
|
148
|
+
<kendo-dialog-actions class="k-actions-end k-actions-horizontal k-window-actions" [layout]="'normal'">
|
|
147
149
|
<button kendoButton (click)="onCancelAction()">{{ textFor('dialogCancel') }}</button>
|
|
148
150
|
<button kendoButton [disabled]="linkForm.invalid" (click)="onConfirmAction()" [primary]="true">
|
|
149
151
|
{{ textFor('dialogInsert') }}
|
|
150
152
|
</button>
|
|
151
153
|
</kendo-dialog-actions>
|
|
152
|
-
`, isInline: true, components: [{ type: i1.DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { type: i1.DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }, { type:
|
|
154
|
+
`, isInline: true, components: [{ type: i1.DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { type: i3.LabelComponent, selector: "kendo-label", inputs: ["text", "for", "optional"], exportAs: ["kendoLabel"] }, { type: i4.TextBoxComponent, selector: "kendo-textbox", inputs: ["focusableId", "title", "disabled", "readonly", "tabindex", "value", "selectOnFocus", "showSuccessIcon", "showErrorIcon", "clearButton", "successIcon", "errorIcon", "clearButtonIcon", "size", "rounded", "fillMode", "tabIndex", "placeholder", "maxlength"], outputs: ["valueChange", "inputFocus", "inputBlur", "focus", "blur"], exportAs: ["kendoTextBox"] }, { type: i1.DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }, { type: i5.Button, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }], directives: [{ type: i6.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i6.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i6.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i6.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i6.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { type: i4.CheckBoxDirective, selector: "input[kendoCheckBox]", inputs: ["size", "rounded"] }, { type: i3.LabelDirective, selector: "label[for]", inputs: ["for"] }] });
|
|
153
155
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FileLinkDialogComponent, decorators: [{
|
|
154
156
|
type: Component,
|
|
155
157
|
args: [{
|
|
@@ -157,42 +159,42 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
157
159
|
<kendo-dialog-titlebar (close)="onCancelAction()">
|
|
158
160
|
{{ titleText }}
|
|
159
161
|
</kendo-dialog-titlebar>
|
|
160
|
-
<
|
|
161
|
-
<div class="k-
|
|
162
|
-
<div class="k-
|
|
163
|
-
<
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
<input #textInput formControlName="text" type="text" class="k-textbox k-input k-rounded-md" />
|
|
176
|
-
</div>
|
|
177
|
-
|
|
178
|
-
<div class="k-edit-label">
|
|
179
|
-
<label (click)="titleInput.focus()">{{ textForWithPrefix('Title') }}</label>
|
|
180
|
-
</div>
|
|
181
|
-
<div class="k-edit-field">
|
|
182
|
-
<input #titleInput formControlName="title" type="text" class="k-textbox k-input k-rounded-md" />
|
|
183
|
-
</div>
|
|
184
|
-
<ng-container *ngIf="command === 'createLink'">
|
|
185
|
-
<div class="k-edit-label"></div>
|
|
186
|
-
<div class="k-edit-field">
|
|
187
|
-
<input type="checkbox" id="k-target-blank" kendoCheckBox formControlName="target" />
|
|
188
|
-
<label class="k-checkbox-label" for="k-target-blank">{{ textForWithPrefix('OpenInNewWindow') }}</label>
|
|
189
|
-
</div>
|
|
190
|
-
</ng-container>
|
|
191
|
-
</form>
|
|
162
|
+
<form class="k-form k-form-md k-form-horizontal" novalidate [formGroup]="linkForm">
|
|
163
|
+
<div class="k-form-field">
|
|
164
|
+
<div class="k-form-label">
|
|
165
|
+
<kendo-label [for]="hrefInput" [text]="textForWithPrefix('WebAddress')"></kendo-label>
|
|
166
|
+
</div>
|
|
167
|
+
<div class="k-form-field-wrap">
|
|
168
|
+
<kendo-textbox #hrefInput formControlName="href"></kendo-textbox>
|
|
169
|
+
</div>
|
|
170
|
+
</div>
|
|
171
|
+
<div class="k-form-field">
|
|
172
|
+
<div class="k-form-label">
|
|
173
|
+
<kendo-label [for]="textInput" [text]="textForWithPrefix('Text')"></kendo-label>
|
|
174
|
+
</div>
|
|
175
|
+
<div class="k-form-field-wrap">
|
|
176
|
+
<kendo-textbox #textInput formControlName="text"></kendo-textbox>
|
|
192
177
|
</div>
|
|
193
178
|
</div>
|
|
194
|
-
|
|
195
|
-
|
|
179
|
+
<div class="k-form-field">
|
|
180
|
+
<div class="k-form-label">
|
|
181
|
+
<kendo-label [for]="titleInput" [text]="textForWithPrefix('Title')"></kendo-label>
|
|
182
|
+
</div>
|
|
183
|
+
<div class="k-form-field-wrap">
|
|
184
|
+
<kendo-textbox #titleInput formControlName="title"></kendo-textbox>
|
|
185
|
+
</div>
|
|
186
|
+
</div>
|
|
187
|
+
<ng-container *ngIf="command === 'createLink'">
|
|
188
|
+
<div class="k-form-field">
|
|
189
|
+
<div class="k-form-label"></div>
|
|
190
|
+
<div class="k-form-field-wrap">
|
|
191
|
+
<input type="checkbox" id="k-target-blank" kendoCheckBox formControlName="target" />
|
|
192
|
+
<label class="k-checkbox-label" for="k-target-blank" [style.display]="'inline'">{{ textForWithPrefix('OpenInNewWindow') }}</label>
|
|
193
|
+
</div>
|
|
194
|
+
</div>
|
|
195
|
+
</ng-container>
|
|
196
|
+
</form>
|
|
197
|
+
<kendo-dialog-actions class="k-actions-end k-actions-horizontal k-window-actions" [layout]="'normal'">
|
|
196
198
|
<button kendoButton (click)="onCancelAction()">{{ textFor('dialogCancel') }}</button>
|
|
197
199
|
<button kendoButton [disabled]="linkForm.invalid" (click)="onConfirmAction()" [primary]="true">
|
|
198
200
|
{{ textFor('dialogInsert') }}
|
|
@@ -206,5 +208,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
206
208
|
type: Input
|
|
207
209
|
}], hrefInput: [{
|
|
208
210
|
type: ViewChild,
|
|
209
|
-
args: ['hrefInput'
|
|
211
|
+
args: ['hrefInput']
|
|
210
212
|
}] } });
|
|
@@ -52,21 +52,17 @@ FontFamilyDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
|
|
|
52
52
|
<kendo-dialog-titlebar (close)="onCancelAction()">
|
|
53
53
|
{{ textFor('fontFamily') }}
|
|
54
54
|
</kendo-dialog-titlebar>
|
|
55
|
-
<div
|
|
56
|
-
<
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
>
|
|
65
|
-
</kendo-editor-fontfamily-dropdownlist>
|
|
66
|
-
</div>
|
|
67
|
-
</div>
|
|
55
|
+
<div [style.text-align]="'center'">
|
|
56
|
+
<kendo-editor-fontfamily-dropdownlist
|
|
57
|
+
#fontFamilyDropDownList
|
|
58
|
+
[defaultItem]="defaultItem"
|
|
59
|
+
[data]="data"
|
|
60
|
+
[(value)]="value"
|
|
61
|
+
[itemDisabled]="itemDisabled"
|
|
62
|
+
>
|
|
63
|
+
</kendo-editor-fontfamily-dropdownlist>
|
|
68
64
|
</div>
|
|
69
|
-
<kendo-dialog-actions>
|
|
65
|
+
<kendo-dialog-actions class="k-actions-end k-actions-horizontal k-window-actions" [layout]="'normal'">
|
|
70
66
|
<button kendoButton (click)="onCancelAction()">{{ textFor('dialogCancel') }}</button>
|
|
71
67
|
<button kendoButton
|
|
72
68
|
(click)="onConfirmAction()" [primary]="true">{{ textFor('dialogApply') }}</button>
|
|
@@ -79,21 +75,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
79
75
|
<kendo-dialog-titlebar (close)="onCancelAction()">
|
|
80
76
|
{{ textFor('fontFamily') }}
|
|
81
77
|
</kendo-dialog-titlebar>
|
|
82
|
-
<div
|
|
83
|
-
<
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
>
|
|
92
|
-
</kendo-editor-fontfamily-dropdownlist>
|
|
93
|
-
</div>
|
|
94
|
-
</div>
|
|
78
|
+
<div [style.text-align]="'center'">
|
|
79
|
+
<kendo-editor-fontfamily-dropdownlist
|
|
80
|
+
#fontFamilyDropDownList
|
|
81
|
+
[defaultItem]="defaultItem"
|
|
82
|
+
[data]="data"
|
|
83
|
+
[(value)]="value"
|
|
84
|
+
[itemDisabled]="itemDisabled"
|
|
85
|
+
>
|
|
86
|
+
</kendo-editor-fontfamily-dropdownlist>
|
|
95
87
|
</div>
|
|
96
|
-
<kendo-dialog-actions>
|
|
88
|
+
<kendo-dialog-actions class="k-actions-end k-actions-horizontal k-window-actions" [layout]="'normal'">
|
|
97
89
|
<button kendoButton (click)="onCancelAction()">{{ textFor('dialogCancel') }}</button>
|
|
98
90
|
<button kendoButton
|
|
99
91
|
(click)="onConfirmAction()" [primary]="true">{{ textFor('dialogApply') }}</button>
|
|
@@ -52,21 +52,17 @@ FontSizeDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
|
|
|
52
52
|
<kendo-dialog-titlebar (close)="onCancelAction()">
|
|
53
53
|
{{ textFor('fontSize') }}
|
|
54
54
|
</kendo-dialog-titlebar>
|
|
55
|
-
<div
|
|
56
|
-
<
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
>
|
|
65
|
-
</kendo-editor-fontsize-dropdownlist>
|
|
66
|
-
</div>
|
|
67
|
-
</div>
|
|
55
|
+
<div [style.text-align]="'center'">
|
|
56
|
+
<kendo-editor-fontsize-dropdownlist
|
|
57
|
+
#fontSizeDropDownList
|
|
58
|
+
[defaultItem]="defaultItem"
|
|
59
|
+
[data]="data"
|
|
60
|
+
[(value)]="value"
|
|
61
|
+
[itemDisabled]="itemDisabled"
|
|
62
|
+
>
|
|
63
|
+
</kendo-editor-fontsize-dropdownlist>
|
|
68
64
|
</div>
|
|
69
|
-
<kendo-dialog-actions>
|
|
65
|
+
<kendo-dialog-actions class="k-actions-end k-actions-horizontal k-window-actions" [layout]="'normal'">
|
|
70
66
|
<button kendoButton (click)="onCancelAction()">{{ textFor('dialogCancel') }}</button>
|
|
71
67
|
<button kendoButton
|
|
72
68
|
(click)="onConfirmAction()" [primary]="true">{{ textFor('dialogApply') }}</button>
|
|
@@ -79,21 +75,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
79
75
|
<kendo-dialog-titlebar (close)="onCancelAction()">
|
|
80
76
|
{{ textFor('fontSize') }}
|
|
81
77
|
</kendo-dialog-titlebar>
|
|
82
|
-
<div
|
|
83
|
-
<
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
>
|
|
92
|
-
</kendo-editor-fontsize-dropdownlist>
|
|
93
|
-
</div>
|
|
94
|
-
</div>
|
|
78
|
+
<div [style.text-align]="'center'">
|
|
79
|
+
<kendo-editor-fontsize-dropdownlist
|
|
80
|
+
#fontSizeDropDownList
|
|
81
|
+
[defaultItem]="defaultItem"
|
|
82
|
+
[data]="data"
|
|
83
|
+
[(value)]="value"
|
|
84
|
+
[itemDisabled]="itemDisabled"
|
|
85
|
+
>
|
|
86
|
+
</kendo-editor-fontsize-dropdownlist>
|
|
95
87
|
</div>
|
|
96
|
-
<kendo-dialog-actions>
|
|
88
|
+
<kendo-dialog-actions class="k-actions-end k-actions-horizontal k-window-actions" [layout]="'normal'">
|
|
97
89
|
<button kendoButton (click)="onCancelAction()">{{ textFor('dialogCancel') }}</button>
|
|
98
90
|
<button kendoButton
|
|
99
91
|
(click)="onConfirmAction()" [primary]="true">{{ textFor('dialogApply') }}</button>
|