@progress/kendo-angular-editor 11.0.0-develop.99 → 11.0.0
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/NOTICE.txt +17 -17
- package/config/command-icons.d.ts +4 -0
- package/dialogs/colorpicker-dialog.component.d.ts +2 -0
- 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 +4 -2
- package/esm2020/config/command-icons.mjs +45 -0
- package/esm2020/dialogs/colorpicker-dialog.component.mjs +29 -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 +31 -10
- package/esm2020/editor.module.mjs +15 -4
- package/esm2020/package-metadata.mjs +2 -2
- package/esm2020/tools/colorpicker/editor-back-color.directive.mjs +2 -1
- package/esm2020/tools/colorpicker/editor-colorpicker.component.mjs +53 -37
- package/esm2020/tools/colorpicker/editor-fore-color.directive.mjs +2 -1
- package/esm2020/tools/fontfamily/editor-fontfamily.component.mjs +36 -31
- package/esm2020/tools/fontsize/editor-fontsize.component.mjs +35 -31
- package/esm2020/tools/format/editor-format.component.mjs +35 -33
- package/esm2020/tools/shared/editor-command-base.mjs +20 -13
- package/esm2020/tools/shared/editor-command-button.mjs +10 -2
- package/esm2020/tools/shared/editor-command-dialog.mjs +10 -2
- package/esm2020/tools/tables/editor-insert-table-button.component.mjs +36 -23
- package/esm2020/tools/tables/popup-table-grid.component.mjs +4 -2
- package/esm2020/tools/tools.service.mjs +5 -4
- package/fesm2015/progress-kendo-angular-editor.mjs +571 -464
- package/fesm2020/progress-kendo-angular-editor.mjs +570 -464
- package/package.json +16 -15
- package/schematics/ngAdd/index.js +5 -3
- package/tools/colorpicker/editor-colorpicker.component.d.ts +10 -3
- package/tools/fontfamily/editor-fontfamily.component.d.ts +5 -2
- package/tools/fontsize/editor-fontsize.component.d.ts +5 -2
- package/tools/format/editor-format.component.d.ts +5 -2
- package/tools/tables/editor-insert-table-button.component.d.ts +5 -2
- package/tools/tables/popup-table-grid.component.d.ts +2 -0
- package/tools/tools.service.d.ts +3 -0
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import * as i0 from '@angular/core';
|
|
6
|
-
import { Injectable, Inject, Optional, Component, Input, ViewChild,
|
|
7
|
-
import * as
|
|
6
|
+
import { Injectable, Inject, Optional, Component, Input, ViewChild, Directive, EventEmitter, Output, forwardRef, ElementRef, InjectionToken, isDevMode, ViewContainerRef, HostBinding, ContentChild, NgModule } from '@angular/core';
|
|
7
|
+
import * as i6 from '@angular/forms';
|
|
8
8
|
import { FormControl, Validators, FormGroup, NG_VALUE_ACCESSOR, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
9
9
|
import { Subject, BehaviorSubject, zip, fromEvent, interval } from 'rxjs';
|
|
10
10
|
import { take, map, filter as filter$1, concatMap, takeUntil } from 'rxjs/operators';
|
|
@@ -18,14 +18,19 @@ import * as i1$1 from '@progress/kendo-angular-dialog';
|
|
|
18
18
|
import { DialogContentBase, DialogModule } from '@progress/kendo-angular-dialog';
|
|
19
19
|
import * as i1 from '@progress/kendo-angular-l10n';
|
|
20
20
|
import { LocalizationService, L10N_PREFIX, RTL, ComponentMessages } from '@progress/kendo-angular-l10n';
|
|
21
|
-
import * as i4 from '@progress/kendo-angular-
|
|
21
|
+
import * as i4 from '@progress/kendo-angular-inputs';
|
|
22
|
+
import { ColorPickerComponent, ColorPickerModule, NumericTextBoxModule, CheckBoxModule, TextBoxModule, TextAreaModule } from '@progress/kendo-angular-inputs';
|
|
23
|
+
import * as i4$1 from '@progress/kendo-angular-buttons';
|
|
22
24
|
import { ButtonModule } from '@progress/kendo-angular-buttons';
|
|
23
|
-
import * as i3 from '@angular
|
|
25
|
+
import * as i3 from '@progress/kendo-angular-label';
|
|
26
|
+
import { LabelModule } from '@progress/kendo-angular-label';
|
|
27
|
+
import * as i3$1 from '@angular/common';
|
|
24
28
|
import { CommonModule } from '@angular/common';
|
|
25
|
-
import * as i6 from '@progress/kendo-angular-inputs';
|
|
26
|
-
import { ColorPickerComponent, ColorPickerModule, NumericTextBoxModule, CheckBoxModule, TextBoxModule } from '@progress/kendo-angular-inputs';
|
|
27
29
|
import * as i1$2 from '@progress/kendo-angular-dropdowns';
|
|
28
30
|
import { DropDownListComponent, DropDownsModule } from '@progress/kendo-angular-dropdowns';
|
|
31
|
+
import { applyFormatIcon, 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, tableWizardIcon, fontSizeIcon, fontFamilyIcon } from '@progress/kendo-svg-icons';
|
|
32
|
+
import * as i6$1 from '@progress/kendo-angular-icons';
|
|
33
|
+
import { IconsModule } from '@progress/kendo-angular-icons';
|
|
29
34
|
import * as i2 from '@progress/kendo-angular-popup';
|
|
30
35
|
|
|
31
36
|
/**
|
|
@@ -35,8 +40,8 @@ const packageMetadata = {
|
|
|
35
40
|
name: '@progress/kendo-angular-editor',
|
|
36
41
|
productName: 'Kendo UI for Angular',
|
|
37
42
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
38
|
-
publishDate:
|
|
39
|
-
version: '',
|
|
43
|
+
publishDate: 1674032463,
|
|
44
|
+
version: '11.0.0',
|
|
40
45
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
41
46
|
};
|
|
42
47
|
|
|
@@ -660,7 +665,7 @@ class SourceDialogComponent extends DialogContentBase {
|
|
|
660
665
|
}
|
|
661
666
|
ngAfterViewInit() {
|
|
662
667
|
Promise.resolve(null).then(() => {
|
|
663
|
-
this.textarea.
|
|
668
|
+
this.textarea.focus();
|
|
664
669
|
});
|
|
665
670
|
}
|
|
666
671
|
onCancelAction() {
|
|
@@ -672,7 +677,7 @@ class SourceDialogComponent extends DialogContentBase {
|
|
|
672
677
|
this.editor.view.focus();
|
|
673
678
|
}
|
|
674
679
|
getData() {
|
|
675
|
-
return this.textarea.
|
|
680
|
+
return this.textarea.value;
|
|
676
681
|
}
|
|
677
682
|
setData() {
|
|
678
683
|
this.data = this.indent(this.editor.getSource());
|
|
@@ -693,12 +698,12 @@ SourceDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
693
698
|
<kendo-dialog-titlebar (close)="onCancelAction()">
|
|
694
699
|
{{ textFor('viewSource') }}
|
|
695
700
|
</kendo-dialog-titlebar>
|
|
696
|
-
<textarea [value]="data" #textarea
|
|
701
|
+
<kendo-textarea [value]="data" #textarea [style.height.%]="100"></kendo-textarea>
|
|
697
702
|
<kendo-dialog-actions>
|
|
698
703
|
<button kendoButton (click)="onCancelAction()">{{ textFor('dialogCancel') }}</button>
|
|
699
704
|
<button kendoButton (click)="onConfirmAction()" [primary]="true">{{ textFor('dialogUpdate') }}</button>
|
|
700
705
|
</kendo-dialog-actions>
|
|
701
|
-
`, isInline: true, components: [{ type: i1$1.DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { type: i1$1.DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }, { type: i4.Button, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
|
|
706
|
+
`, isInline: true, components: [{ type: i1$1.DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { type: i4.TextAreaComponent, selector: "kendo-textarea", inputs: ["focusableId", "flow", "rows", "cols", "maxlength", "tabindex", "tabIndex", "resizable", "size", "rounded", "fillMode"], outputs: ["focus", "blur", "valueChange"], exportAs: ["kendoTextArea"] }, { type: i1$1.DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }, { type: i4$1.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"] }] });
|
|
702
707
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SourceDialogComponent, decorators: [{
|
|
703
708
|
type: Component,
|
|
704
709
|
args: [{
|
|
@@ -706,7 +711,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
706
711
|
<kendo-dialog-titlebar (close)="onCancelAction()">
|
|
707
712
|
{{ textFor('viewSource') }}
|
|
708
713
|
</kendo-dialog-titlebar>
|
|
709
|
-
<textarea [value]="data" #textarea
|
|
714
|
+
<kendo-textarea [value]="data" #textarea [style.height.%]="100"></kendo-textarea>
|
|
710
715
|
<kendo-dialog-actions>
|
|
711
716
|
<button kendoButton (click)="onCancelAction()">{{ textFor('dialogCancel') }}</button>
|
|
712
717
|
<button kendoButton (click)="onConfirmAction()" [primary]="true">{{ textFor('dialogUpdate') }}</button>
|
|
@@ -753,7 +758,7 @@ class ImageDialogComponent extends DialogContentBase {
|
|
|
753
758
|
}
|
|
754
759
|
ngAfterViewInit() {
|
|
755
760
|
Promise.resolve(null).then(() => {
|
|
756
|
-
this.srcInput.
|
|
761
|
+
this.srcInput.focus();
|
|
757
762
|
});
|
|
758
763
|
}
|
|
759
764
|
onCancelAction() {
|
|
@@ -791,46 +796,50 @@ class ImageDialogComponent extends DialogContentBase {
|
|
|
791
796
|
}
|
|
792
797
|
}
|
|
793
798
|
ImageDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ImageDialogComponent, deps: [{ token: i1$1.DialogRef }, { token: EditorLocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
794
|
-
ImageDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ImageDialogComponent, selector: "ng-component", inputs: { editor: "editor" }, viewQueries: [{ propertyName: "srcInput", first: true, predicate: ["srcInput"], descendants: true
|
|
799
|
+
ImageDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ImageDialogComponent, selector: "ng-component", inputs: { editor: "editor" }, viewQueries: [{ propertyName: "srcInput", first: true, predicate: ["srcInput"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
795
800
|
<kendo-dialog-titlebar (close)="onCancelAction()">
|
|
796
801
|
{{ textFor('insertImage') }}
|
|
797
802
|
</kendo-dialog-titlebar>
|
|
798
|
-
<div class="k-
|
|
799
|
-
<div class="k-
|
|
800
|
-
<div class="k-
|
|
801
|
-
<
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
<
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
803
|
+
<div class="k-form k-form-md k-form-horizontal">
|
|
804
|
+
<div class="k-form-field">
|
|
805
|
+
<div class="k-form-label">
|
|
806
|
+
<kendo-label [for]="srcInput" [text]="textFor('imageWebAddress')"></kendo-label>
|
|
807
|
+
</div>
|
|
808
|
+
<div class="k-form-field-wrap">
|
|
809
|
+
<kendo-textbox #srcInput [formControl]="src"></kendo-textbox>
|
|
810
|
+
</div>
|
|
811
|
+
</div>
|
|
812
|
+
<div class="k-form-field">
|
|
813
|
+
<div class="k-form-label">
|
|
814
|
+
<kendo-label [for]="altTextInput" [text]="textFor('imageAltText')"></kendo-label>
|
|
815
|
+
</div>
|
|
816
|
+
<div class="k-form-field-wrap">
|
|
817
|
+
<kendo-textbox #altTextInput [formControl]="alt"></kendo-textbox>
|
|
818
|
+
</div>
|
|
819
|
+
</div>
|
|
820
|
+
<div class="k-form-field">
|
|
821
|
+
<div class="k-form-label">
|
|
822
|
+
<kendo-label [for]="widthInput" [text]="textFor('imageWidth')"></kendo-label>
|
|
823
|
+
</div>
|
|
824
|
+
<div class="k-form-field-wrap">
|
|
825
|
+
<kendo-textbox #widthInput [formControl]="width"></kendo-textbox>
|
|
826
|
+
</div>
|
|
827
|
+
</div>
|
|
828
|
+
<div class="k-form-field">
|
|
829
|
+
<div class="k-form-label">
|
|
830
|
+
<kendo-label [for]="heightInput" [text]="textFor('imageHeight')"></kendo-label>
|
|
831
|
+
</div>
|
|
832
|
+
<div class="k-form-field-wrap">
|
|
833
|
+
<kendo-textbox #heightInput [formControl]="height"></kendo-textbox>
|
|
825
834
|
</div>
|
|
826
835
|
</div>
|
|
827
836
|
</div>
|
|
828
|
-
<kendo-dialog-actions>
|
|
837
|
+
<kendo-dialog-actions class="k-actions-end k-actions-horizontal k-window-actions" [layout]="'normal'">
|
|
829
838
|
<button kendoButton (click)="onCancelAction()">{{ textFor('dialogCancel') }}</button>
|
|
830
839
|
<button kendoButton [disabled]="imageData.invalid"
|
|
831
840
|
(click)="onConfirmAction()" [primary]="true">{{ textFor('dialogInsert') }}</button>
|
|
832
841
|
</kendo-dialog-actions>
|
|
833
|
-
`, isInline: true, components: [{ type: i1$1.DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { type: i1$1.DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }, { type: i4.Button, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }], directives: [{ type:
|
|
842
|
+
`, isInline: true, components: [{ type: i1$1.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$1.DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }, { type: i4$1.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.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i6.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }] });
|
|
834
843
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ImageDialogComponent, decorators: [{
|
|
835
844
|
type: Component,
|
|
836
845
|
args: [{
|
|
@@ -838,37 +847,41 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
838
847
|
<kendo-dialog-titlebar (close)="onCancelAction()">
|
|
839
848
|
{{ textFor('insertImage') }}
|
|
840
849
|
</kendo-dialog-titlebar>
|
|
841
|
-
<div class="k-
|
|
842
|
-
<div class="k-
|
|
843
|
-
<div class="k-
|
|
844
|
-
<
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
<
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
850
|
+
<div class="k-form k-form-md k-form-horizontal">
|
|
851
|
+
<div class="k-form-field">
|
|
852
|
+
<div class="k-form-label">
|
|
853
|
+
<kendo-label [for]="srcInput" [text]="textFor('imageWebAddress')"></kendo-label>
|
|
854
|
+
</div>
|
|
855
|
+
<div class="k-form-field-wrap">
|
|
856
|
+
<kendo-textbox #srcInput [formControl]="src"></kendo-textbox>
|
|
857
|
+
</div>
|
|
858
|
+
</div>
|
|
859
|
+
<div class="k-form-field">
|
|
860
|
+
<div class="k-form-label">
|
|
861
|
+
<kendo-label [for]="altTextInput" [text]="textFor('imageAltText')"></kendo-label>
|
|
862
|
+
</div>
|
|
863
|
+
<div class="k-form-field-wrap">
|
|
864
|
+
<kendo-textbox #altTextInput [formControl]="alt"></kendo-textbox>
|
|
865
|
+
</div>
|
|
866
|
+
</div>
|
|
867
|
+
<div class="k-form-field">
|
|
868
|
+
<div class="k-form-label">
|
|
869
|
+
<kendo-label [for]="widthInput" [text]="textFor('imageWidth')"></kendo-label>
|
|
870
|
+
</div>
|
|
871
|
+
<div class="k-form-field-wrap">
|
|
872
|
+
<kendo-textbox #widthInput [formControl]="width"></kendo-textbox>
|
|
873
|
+
</div>
|
|
874
|
+
</div>
|
|
875
|
+
<div class="k-form-field">
|
|
876
|
+
<div class="k-form-label">
|
|
877
|
+
<kendo-label [for]="heightInput" [text]="textFor('imageHeight')"></kendo-label>
|
|
878
|
+
</div>
|
|
879
|
+
<div class="k-form-field-wrap">
|
|
880
|
+
<kendo-textbox #heightInput [formControl]="height"></kendo-textbox>
|
|
868
881
|
</div>
|
|
869
882
|
</div>
|
|
870
883
|
</div>
|
|
871
|
-
<kendo-dialog-actions>
|
|
884
|
+
<kendo-dialog-actions class="k-actions-end k-actions-horizontal k-window-actions" [layout]="'normal'">
|
|
872
885
|
<button kendoButton (click)="onCancelAction()">{{ textFor('dialogCancel') }}</button>
|
|
873
886
|
<button kendoButton [disabled]="imageData.invalid"
|
|
874
887
|
(click)="onConfirmAction()" [primary]="true">{{ textFor('dialogInsert') }}</button>
|
|
@@ -879,7 +892,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
879
892
|
type: Input
|
|
880
893
|
}], srcInput: [{
|
|
881
894
|
type: ViewChild,
|
|
882
|
-
args: ['srcInput'
|
|
895
|
+
args: ['srcInput']
|
|
883
896
|
}] } });
|
|
884
897
|
|
|
885
898
|
/**
|
|
@@ -898,7 +911,7 @@ class FileLinkDialogComponent extends DialogContentBase {
|
|
|
898
911
|
}
|
|
899
912
|
ngAfterViewInit() {
|
|
900
913
|
Promise.resolve(null).then(() => {
|
|
901
|
-
this.hrefInput.
|
|
914
|
+
this.hrefInput.focus();
|
|
902
915
|
});
|
|
903
916
|
}
|
|
904
917
|
onCancelAction() {
|
|
@@ -971,52 +984,52 @@ class FileLinkDialogComponent extends DialogContentBase {
|
|
|
971
984
|
}
|
|
972
985
|
}
|
|
973
986
|
FileLinkDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FileLinkDialogComponent, deps: [{ token: i1$1.DialogRef }, { token: EditorLocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
974
|
-
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
|
|
987
|
+
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: `
|
|
975
988
|
<kendo-dialog-titlebar (close)="onCancelAction()">
|
|
976
989
|
{{ titleText }}
|
|
977
990
|
</kendo-dialog-titlebar>
|
|
978
|
-
<
|
|
979
|
-
<div class="k-
|
|
980
|
-
<div class="k-
|
|
981
|
-
<
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
<div class="k-edit-field">
|
|
986
|
-
<input #hrefInput formControlName="href" type="text" class="k-textbox k-input k-rounded-md" />
|
|
987
|
-
</div>
|
|
988
|
-
|
|
989
|
-
<div class="k-edit-label">
|
|
990
|
-
<label (click)="textInput.focus()">{{ textForWithPrefix('Text') }}</label>
|
|
991
|
-
</div>
|
|
992
|
-
<div class="k-edit-field">
|
|
993
|
-
<input #textInput formControlName="text" type="text" class="k-textbox k-input k-rounded-md" />
|
|
994
|
-
</div>
|
|
995
|
-
|
|
996
|
-
<div class="k-edit-label">
|
|
997
|
-
<label (click)="titleInput.focus()">{{ textForWithPrefix('Title') }}</label>
|
|
998
|
-
</div>
|
|
999
|
-
<div class="k-edit-field">
|
|
1000
|
-
<input #titleInput formControlName="title" type="text" class="k-textbox k-input k-rounded-md" />
|
|
1001
|
-
</div>
|
|
1002
|
-
<ng-container *ngIf="command === 'createLink'">
|
|
1003
|
-
<div class="k-edit-label"></div>
|
|
1004
|
-
<div class="k-edit-field">
|
|
1005
|
-
<input type="checkbox" id="k-target-blank" kendoCheckBox formControlName="target" />
|
|
1006
|
-
<label class="k-checkbox-label" for="k-target-blank">{{ textForWithPrefix('OpenInNewWindow') }}</label>
|
|
1007
|
-
</div>
|
|
1008
|
-
</ng-container>
|
|
1009
|
-
</form>
|
|
991
|
+
<form class="k-form k-form-md k-form-horizontal" novalidate [formGroup]="linkForm">
|
|
992
|
+
<div class="k-form-field">
|
|
993
|
+
<div class="k-form-label">
|
|
994
|
+
<kendo-label [for]="hrefInput" [text]="textForWithPrefix('WebAddress')"></kendo-label>
|
|
995
|
+
</div>
|
|
996
|
+
<div class="k-form-field-wrap">
|
|
997
|
+
<kendo-textbox #hrefInput formControlName="href"></kendo-textbox>
|
|
1010
998
|
</div>
|
|
1011
999
|
</div>
|
|
1012
|
-
|
|
1013
|
-
|
|
1000
|
+
<div class="k-form-field">
|
|
1001
|
+
<div class="k-form-label">
|
|
1002
|
+
<kendo-label [for]="textInput" [text]="textForWithPrefix('Text')"></kendo-label>
|
|
1003
|
+
</div>
|
|
1004
|
+
<div class="k-form-field-wrap">
|
|
1005
|
+
<kendo-textbox #textInput formControlName="text"></kendo-textbox>
|
|
1006
|
+
</div>
|
|
1007
|
+
</div>
|
|
1008
|
+
<div class="k-form-field">
|
|
1009
|
+
<div class="k-form-label">
|
|
1010
|
+
<kendo-label [for]="titleInput" [text]="textForWithPrefix('Title')"></kendo-label>
|
|
1011
|
+
</div>
|
|
1012
|
+
<div class="k-form-field-wrap">
|
|
1013
|
+
<kendo-textbox #titleInput formControlName="title"></kendo-textbox>
|
|
1014
|
+
</div>
|
|
1015
|
+
</div>
|
|
1016
|
+
<ng-container *ngIf="command === 'createLink'">
|
|
1017
|
+
<div class="k-form-field">
|
|
1018
|
+
<div class="k-form-label"></div>
|
|
1019
|
+
<div class="k-form-field-wrap">
|
|
1020
|
+
<input type="checkbox" id="k-target-blank" kendoCheckBox formControlName="target" />
|
|
1021
|
+
<label class="k-checkbox-label" for="k-target-blank" [style.display]="'inline'">{{ textForWithPrefix('OpenInNewWindow') }}</label>
|
|
1022
|
+
</div>
|
|
1023
|
+
</div>
|
|
1024
|
+
</ng-container>
|
|
1025
|
+
</form>
|
|
1026
|
+
<kendo-dialog-actions class="k-actions-end k-actions-horizontal k-window-actions" [layout]="'normal'">
|
|
1014
1027
|
<button kendoButton (click)="onCancelAction()">{{ textFor('dialogCancel') }}</button>
|
|
1015
1028
|
<button kendoButton [disabled]="linkForm.invalid" (click)="onConfirmAction()" [primary]="true">
|
|
1016
1029
|
{{ textFor('dialogInsert') }}
|
|
1017
1030
|
</button>
|
|
1018
1031
|
</kendo-dialog-actions>
|
|
1019
|
-
`, isInline: true, components: [{ type: i1$1.DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { type: i1$1.DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }, { type: i4.Button, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }], directives: [{ type:
|
|
1032
|
+
`, isInline: true, components: [{ type: i1$1.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$1.DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }, { type: i4$1.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: i3$1.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"] }] });
|
|
1020
1033
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FileLinkDialogComponent, decorators: [{
|
|
1021
1034
|
type: Component,
|
|
1022
1035
|
args: [{
|
|
@@ -1024,42 +1037,42 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
1024
1037
|
<kendo-dialog-titlebar (close)="onCancelAction()">
|
|
1025
1038
|
{{ titleText }}
|
|
1026
1039
|
</kendo-dialog-titlebar>
|
|
1027
|
-
<
|
|
1028
|
-
<div class="k-
|
|
1029
|
-
<div class="k-
|
|
1030
|
-
<
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
<div class="k-edit-field">
|
|
1035
|
-
<input #hrefInput formControlName="href" type="text" class="k-textbox k-input k-rounded-md" />
|
|
1036
|
-
</div>
|
|
1037
|
-
|
|
1038
|
-
<div class="k-edit-label">
|
|
1039
|
-
<label (click)="textInput.focus()">{{ textForWithPrefix('Text') }}</label>
|
|
1040
|
-
</div>
|
|
1041
|
-
<div class="k-edit-field">
|
|
1042
|
-
<input #textInput formControlName="text" type="text" class="k-textbox k-input k-rounded-md" />
|
|
1043
|
-
</div>
|
|
1044
|
-
|
|
1045
|
-
<div class="k-edit-label">
|
|
1046
|
-
<label (click)="titleInput.focus()">{{ textForWithPrefix('Title') }}</label>
|
|
1047
|
-
</div>
|
|
1048
|
-
<div class="k-edit-field">
|
|
1049
|
-
<input #titleInput formControlName="title" type="text" class="k-textbox k-input k-rounded-md" />
|
|
1050
|
-
</div>
|
|
1051
|
-
<ng-container *ngIf="command === 'createLink'">
|
|
1052
|
-
<div class="k-edit-label"></div>
|
|
1053
|
-
<div class="k-edit-field">
|
|
1054
|
-
<input type="checkbox" id="k-target-blank" kendoCheckBox formControlName="target" />
|
|
1055
|
-
<label class="k-checkbox-label" for="k-target-blank">{{ textForWithPrefix('OpenInNewWindow') }}</label>
|
|
1056
|
-
</div>
|
|
1057
|
-
</ng-container>
|
|
1058
|
-
</form>
|
|
1040
|
+
<form class="k-form k-form-md k-form-horizontal" novalidate [formGroup]="linkForm">
|
|
1041
|
+
<div class="k-form-field">
|
|
1042
|
+
<div class="k-form-label">
|
|
1043
|
+
<kendo-label [for]="hrefInput" [text]="textForWithPrefix('WebAddress')"></kendo-label>
|
|
1044
|
+
</div>
|
|
1045
|
+
<div class="k-form-field-wrap">
|
|
1046
|
+
<kendo-textbox #hrefInput formControlName="href"></kendo-textbox>
|
|
1059
1047
|
</div>
|
|
1060
1048
|
</div>
|
|
1061
|
-
|
|
1062
|
-
|
|
1049
|
+
<div class="k-form-field">
|
|
1050
|
+
<div class="k-form-label">
|
|
1051
|
+
<kendo-label [for]="textInput" [text]="textForWithPrefix('Text')"></kendo-label>
|
|
1052
|
+
</div>
|
|
1053
|
+
<div class="k-form-field-wrap">
|
|
1054
|
+
<kendo-textbox #textInput formControlName="text"></kendo-textbox>
|
|
1055
|
+
</div>
|
|
1056
|
+
</div>
|
|
1057
|
+
<div class="k-form-field">
|
|
1058
|
+
<div class="k-form-label">
|
|
1059
|
+
<kendo-label [for]="titleInput" [text]="textForWithPrefix('Title')"></kendo-label>
|
|
1060
|
+
</div>
|
|
1061
|
+
<div class="k-form-field-wrap">
|
|
1062
|
+
<kendo-textbox #titleInput formControlName="title"></kendo-textbox>
|
|
1063
|
+
</div>
|
|
1064
|
+
</div>
|
|
1065
|
+
<ng-container *ngIf="command === 'createLink'">
|
|
1066
|
+
<div class="k-form-field">
|
|
1067
|
+
<div class="k-form-label"></div>
|
|
1068
|
+
<div class="k-form-field-wrap">
|
|
1069
|
+
<input type="checkbox" id="k-target-blank" kendoCheckBox formControlName="target" />
|
|
1070
|
+
<label class="k-checkbox-label" for="k-target-blank" [style.display]="'inline'">{{ textForWithPrefix('OpenInNewWindow') }}</label>
|
|
1071
|
+
</div>
|
|
1072
|
+
</div>
|
|
1073
|
+
</ng-container>
|
|
1074
|
+
</form>
|
|
1075
|
+
<kendo-dialog-actions class="k-actions-end k-actions-horizontal k-window-actions" [layout]="'normal'">
|
|
1063
1076
|
<button kendoButton (click)="onCancelAction()">{{ textFor('dialogCancel') }}</button>
|
|
1064
1077
|
<button kendoButton [disabled]="linkForm.invalid" (click)="onConfirmAction()" [primary]="true">
|
|
1065
1078
|
{{ textFor('dialogInsert') }}
|
|
@@ -1073,7 +1086,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
1073
1086
|
type: Input
|
|
1074
1087
|
}], hrefInput: [{
|
|
1075
1088
|
type: ViewChild,
|
|
1076
|
-
args: ['hrefInput'
|
|
1089
|
+
args: ['hrefInput']
|
|
1077
1090
|
}] } });
|
|
1078
1091
|
|
|
1079
1092
|
/**
|
|
@@ -1407,15 +1420,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
1407
1420
|
* @hidden
|
|
1408
1421
|
*/
|
|
1409
1422
|
class EditorToolsService {
|
|
1410
|
-
constructor() {
|
|
1423
|
+
constructor(zone) {
|
|
1424
|
+
this.zone = zone;
|
|
1411
1425
|
this.needsCheck = new Subject();
|
|
1412
1426
|
}
|
|
1413
1427
|
}
|
|
1414
|
-
EditorToolsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EditorToolsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1428
|
+
EditorToolsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EditorToolsService, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1415
1429
|
EditorToolsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EditorToolsService });
|
|
1416
1430
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EditorToolsService, decorators: [{
|
|
1417
1431
|
type: Injectable
|
|
1418
|
-
}] });
|
|
1432
|
+
}], ctorParameters: function () { return [{ type: i0.NgZone }]; } });
|
|
1419
1433
|
|
|
1420
1434
|
/**
|
|
1421
1435
|
* @hidden
|
|
@@ -1553,7 +1567,7 @@ FormatDropDownListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.
|
|
|
1553
1567
|
</ng-container>
|
|
1554
1568
|
</ng-template>
|
|
1555
1569
|
</kendo-dropdownlist>
|
|
1556
|
-
`, isInline: true, components: [{ type: i1$2.DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["iconClass", "loading", "data", "value", "textField", "valueField", "popupSettings", "listHeight", "defaultItem", "disabled", "itemDisabled", "readonly", "filterable", "virtual", "ignoreCase", "delay", "valuePrimitive", "tabindex", "tabIndex", "size", "rounded", "fillMode", "id"], outputs: ["valueChange", "filterChange", "selectionChange", "open", "opened", "close", "closed", "focus", "blur"], exportAs: ["kendoDropDownList"] }], directives: [{ type: DropDownToolDirective, selector: "[kendoEditorDropDownTool]" }, { type: i1$2.ItemTemplateDirective, selector: "[kendoDropDownListItemTemplate],[kendoComboBoxItemTemplate],[kendoAutoCompleteItemTemplate],[kendoMultiSelectItemTemplate]" }, { type: i3.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i3.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i3.NgSwitchDefault, selector: "[ngSwitchDefault]" }] });
|
|
1570
|
+
`, isInline: true, components: [{ type: i1$2.DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["iconClass", "loading", "data", "value", "textField", "valueField", "popupSettings", "listHeight", "defaultItem", "disabled", "itemDisabled", "readonly", "filterable", "virtual", "ignoreCase", "delay", "valuePrimitive", "tabindex", "tabIndex", "size", "rounded", "fillMode", "id"], outputs: ["valueChange", "filterChange", "selectionChange", "open", "opened", "close", "closed", "focus", "blur"], exportAs: ["kendoDropDownList"] }], directives: [{ type: DropDownToolDirective, selector: "[kendoEditorDropDownTool]" }, { type: i1$2.ItemTemplateDirective, selector: "[kendoDropDownListItemTemplate],[kendoComboBoxItemTemplate],[kendoAutoCompleteItemTemplate],[kendoMultiSelectItemTemplate]" }, { type: i3$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i3$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i3$1.NgSwitchDefault, selector: "[ngSwitchDefault]" }] });
|
|
1557
1571
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormatDropDownListComponent, decorators: [{
|
|
1558
1572
|
type: Component,
|
|
1559
1573
|
args: [{
|
|
@@ -1675,26 +1689,22 @@ FormatDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
1675
1689
|
<kendo-dialog-titlebar (close)="onCancelAction()">
|
|
1676
1690
|
{{ textFor('format') }}
|
|
1677
1691
|
</kendo-dialog-titlebar>
|
|
1678
|
-
<div
|
|
1679
|
-
<
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
>
|
|
1688
|
-
</kendo-editor-format-dropdownlist>
|
|
1689
|
-
</div>
|
|
1690
|
-
</div>
|
|
1692
|
+
<div [style.text-align]="'center'">
|
|
1693
|
+
<kendo-editor-format-dropdownlist
|
|
1694
|
+
#formatDropDownList
|
|
1695
|
+
[defaultItem]="defaultItem"
|
|
1696
|
+
[data]="data"
|
|
1697
|
+
[(value)]="value"
|
|
1698
|
+
[itemDisabled]="itemDisabled"
|
|
1699
|
+
>
|
|
1700
|
+
</kendo-editor-format-dropdownlist>
|
|
1691
1701
|
</div>
|
|
1692
|
-
<kendo-dialog-actions>
|
|
1702
|
+
<kendo-dialog-actions class="k-actions-end k-actions-horizontal k-window-actions" [layout]="'normal'">
|
|
1693
1703
|
<button kendoButton (click)="onCancelAction()">{{ textFor('dialogCancel') }}</button>
|
|
1694
1704
|
<button kendoButton
|
|
1695
1705
|
(click)="onConfirmAction()" [primary]="true">{{ textFor('dialogApply') }}</button>
|
|
1696
1706
|
</kendo-dialog-actions>
|
|
1697
|
-
`, isInline: true, components: [{ type: i1$1.DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { type: FormatDropDownListComponent, selector: "kendo-editor-format-dropdownlist", inputs: ["data", "value", "defaultItem", "itemDisabled", "title", "disabled", "tabindex"], outputs: ["valueChange"] }, { type: i1$1.DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }, { type: i4.Button, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
|
|
1707
|
+
`, isInline: true, components: [{ type: i1$1.DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { type: FormatDropDownListComponent, selector: "kendo-editor-format-dropdownlist", inputs: ["data", "value", "defaultItem", "itemDisabled", "title", "disabled", "tabindex"], outputs: ["valueChange"] }, { type: i1$1.DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }, { type: i4$1.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"] }] });
|
|
1698
1708
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormatDialogComponent, decorators: [{
|
|
1699
1709
|
type: Component,
|
|
1700
1710
|
args: [{
|
|
@@ -1702,21 +1712,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
1702
1712
|
<kendo-dialog-titlebar (close)="onCancelAction()">
|
|
1703
1713
|
{{ textFor('format') }}
|
|
1704
1714
|
</kendo-dialog-titlebar>
|
|
1705
|
-
<div
|
|
1706
|
-
<
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
>
|
|
1715
|
-
</kendo-editor-format-dropdownlist>
|
|
1716
|
-
</div>
|
|
1717
|
-
</div>
|
|
1715
|
+
<div [style.text-align]="'center'">
|
|
1716
|
+
<kendo-editor-format-dropdownlist
|
|
1717
|
+
#formatDropDownList
|
|
1718
|
+
[defaultItem]="defaultItem"
|
|
1719
|
+
[data]="data"
|
|
1720
|
+
[(value)]="value"
|
|
1721
|
+
[itemDisabled]="itemDisabled"
|
|
1722
|
+
>
|
|
1723
|
+
</kendo-editor-format-dropdownlist>
|
|
1718
1724
|
</div>
|
|
1719
|
-
<kendo-dialog-actions>
|
|
1725
|
+
<kendo-dialog-actions class="k-actions-end k-actions-horizontal k-window-actions" [layout]="'normal'">
|
|
1720
1726
|
<button kendoButton (click)="onCancelAction()">{{ textFor('dialogCancel') }}</button>
|
|
1721
1727
|
<button kendoButton
|
|
1722
1728
|
(click)="onConfirmAction()" [primary]="true">{{ textFor('dialogApply') }}</button>
|
|
@@ -1742,11 +1748,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
1742
1748
|
* ```
|
|
1743
1749
|
*/
|
|
1744
1750
|
class EditorFormatComponent extends ToolBarToolComponent {
|
|
1745
|
-
constructor(dialogService, localization, providerService, toolsService) {
|
|
1751
|
+
constructor(dialogService, localization, providerService, toolsService, renderer) {
|
|
1746
1752
|
super();
|
|
1747
1753
|
this.dialogService = dialogService;
|
|
1748
1754
|
this.localization = localization;
|
|
1749
1755
|
this.toolsService = toolsService;
|
|
1756
|
+
this.renderer = renderer;
|
|
1750
1757
|
this.disabled = false;
|
|
1751
1758
|
this.tabindex = -1;
|
|
1752
1759
|
/**
|
|
@@ -1762,6 +1769,7 @@ class EditorFormatComponent extends ToolBarToolComponent {
|
|
|
1762
1769
|
{ text: 'Heading 5', tag: 'h5' },
|
|
1763
1770
|
{ text: 'Heading 6', tag: 'h6' }
|
|
1764
1771
|
];
|
|
1772
|
+
this.applyFormatSVGIcon = applyFormatIcon;
|
|
1765
1773
|
this.editor = providerService.editor;
|
|
1766
1774
|
}
|
|
1767
1775
|
/**
|
|
@@ -1822,10 +1830,12 @@ class EditorFormatComponent extends ToolBarToolComponent {
|
|
|
1822
1830
|
openDialog() {
|
|
1823
1831
|
const dialogSettings = {
|
|
1824
1832
|
appendTo: this.editor.dialogContainer,
|
|
1825
|
-
content: FormatDialogComponent
|
|
1833
|
+
content: FormatDialogComponent,
|
|
1834
|
+
width: 400
|
|
1826
1835
|
};
|
|
1827
1836
|
this.editor.toolbar.toggle(false);
|
|
1828
1837
|
const dialogContent = this.dialogService.open(dialogSettings).content.instance;
|
|
1838
|
+
this.renderer.addClass(dialogContent.dialog.dialog.instance.wrapper.nativeElement.querySelector('.k-window'), 'k-editor-window');
|
|
1829
1839
|
dialogContent.setData({
|
|
1830
1840
|
editor: this.editor,
|
|
1831
1841
|
data: this.data,
|
|
@@ -1860,7 +1870,7 @@ class EditorFormatComponent extends ToolBarToolComponent {
|
|
|
1860
1870
|
return false;
|
|
1861
1871
|
}
|
|
1862
1872
|
}
|
|
1863
|
-
EditorFormatComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EditorFormatComponent, deps: [{ token: i1$1.DialogService }, { token: EditorLocalizationService }, { token: ProviderService }, { token: EditorToolsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1873
|
+
EditorFormatComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EditorFormatComponent, deps: [{ token: i1$1.DialogService }, { token: EditorLocalizationService }, { token: ProviderService }, { token: EditorToolsService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
1864
1874
|
EditorFormatComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: EditorFormatComponent, 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: `
|
|
1865
1875
|
<ng-template #toolbarTemplate>
|
|
1866
1876
|
<kendo-editor-format-dropdownlist
|
|
@@ -1877,22 +1887,20 @@ EditorFormatComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
1877
1887
|
</kendo-editor-format-dropdownlist>
|
|
1878
1888
|
</ng-template>
|
|
1879
1889
|
<ng-template #popupTemplate>
|
|
1880
|
-
<
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
kendoButton
|
|
1885
|
-
class="k-overflow-button"
|
|
1886
|
-
[icon]="'apply-format'"
|
|
1887
|
-
[attr.title]="title"
|
|
1888
|
-
[disabled]="disabled"
|
|
1890
|
+
<div #formatButton
|
|
1891
|
+
role="menuitem"
|
|
1892
|
+
class="k-item k-menu-item"
|
|
1893
|
+
[class.k-disabled]="disabled"
|
|
1889
1894
|
[tabindex]="tabindex"
|
|
1890
|
-
(click)="openDialog()"
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1895
|
+
(click)="openDialog()">
|
|
1896
|
+
<span
|
|
1897
|
+
class="k-link k-menu-link">
|
|
1898
|
+
<kendo-icon-wrapper name="apply-format" [svgIcon]="applyFormatSVGIcon"></kendo-icon-wrapper>
|
|
1899
|
+
<span *ngIf="title" class="k-menu-link-text">{{title}}</span>
|
|
1900
|
+
</span>
|
|
1901
|
+
</div>
|
|
1894
1902
|
</ng-template>
|
|
1895
|
-
`, isInline: true, components: [{ type: FormatDropDownListComponent, selector: "kendo-editor-format-dropdownlist", inputs: ["data", "value", "defaultItem", "itemDisabled", "title", "disabled", "tabindex"], outputs: ["valueChange"] }, { type:
|
|
1903
|
+
`, isInline: true, components: [{ type: FormatDropDownListComponent, selector: "kendo-editor-format-dropdownlist", inputs: ["data", "value", "defaultItem", "itemDisabled", "title", "disabled", "tabindex"], outputs: ["valueChange"] }, { type: i6$1.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i3$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
1896
1904
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EditorFormatComponent, decorators: [{
|
|
1897
1905
|
type: Component,
|
|
1898
1906
|
args: [{
|
|
@@ -1914,24 +1922,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
1914
1922
|
</kendo-editor-format-dropdownlist>
|
|
1915
1923
|
</ng-template>
|
|
1916
1924
|
<ng-template #popupTemplate>
|
|
1917
|
-
<
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
kendoButton
|
|
1922
|
-
class="k-overflow-button"
|
|
1923
|
-
[icon]="'apply-format'"
|
|
1924
|
-
[attr.title]="title"
|
|
1925
|
-
[disabled]="disabled"
|
|
1925
|
+
<div #formatButton
|
|
1926
|
+
role="menuitem"
|
|
1927
|
+
class="k-item k-menu-item"
|
|
1928
|
+
[class.k-disabled]="disabled"
|
|
1926
1929
|
[tabindex]="tabindex"
|
|
1927
|
-
(click)="openDialog()"
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1930
|
+
(click)="openDialog()">
|
|
1931
|
+
<span
|
|
1932
|
+
class="k-link k-menu-link">
|
|
1933
|
+
<kendo-icon-wrapper name="apply-format" [svgIcon]="applyFormatSVGIcon"></kendo-icon-wrapper>
|
|
1934
|
+
<span *ngIf="title" class="k-menu-link-text">{{title}}</span>
|
|
1935
|
+
</span>
|
|
1936
|
+
</div>
|
|
1931
1937
|
</ng-template>
|
|
1932
1938
|
`
|
|
1933
1939
|
}]
|
|
1934
|
-
}], ctorParameters: function () { return [{ type: i1$1.DialogService }, { type: EditorLocalizationService }, { type: ProviderService }, { type: EditorToolsService }]; }, propDecorators: { data: [{
|
|
1940
|
+
}], ctorParameters: function () { return [{ type: i1$1.DialogService }, { type: EditorLocalizationService }, { type: ProviderService }, { type: EditorToolsService }, { type: i0.Renderer2 }]; }, propDecorators: { data: [{
|
|
1935
1941
|
type: Input
|
|
1936
1942
|
}], valueChange: [{
|
|
1937
1943
|
type: Output
|
|
@@ -2142,6 +2148,50 @@ const commandIcons = {
|
|
|
2142
2148
|
deleteTable: 'table-delete'
|
|
2143
2149
|
// tableWizard: 'table-wizard'
|
|
2144
2150
|
};
|
|
2151
|
+
/**
|
|
2152
|
+
* @hidden
|
|
2153
|
+
*/
|
|
2154
|
+
const commandSVGIcons = {
|
|
2155
|
+
alignCenter: alignCenterIcon,
|
|
2156
|
+
alignJustify: alignJustifyIcon,
|
|
2157
|
+
alignLeft: alignLeftIcon,
|
|
2158
|
+
alignRight: alignRightIcon,
|
|
2159
|
+
backColor: dropletIcon,
|
|
2160
|
+
blockquote: rightDoubleQuotesIcon,
|
|
2161
|
+
bold: boldIcon,
|
|
2162
|
+
cleanFormatting: clearCssIcon,
|
|
2163
|
+
createLink: linkIcon,
|
|
2164
|
+
foreColor: foregroundColorIcon,
|
|
2165
|
+
indent: indentIcon,
|
|
2166
|
+
insertFile: fileAddIcon,
|
|
2167
|
+
insertImage: fileImageIcon,
|
|
2168
|
+
insertOrderedList: listOrderedIcon,
|
|
2169
|
+
insertUnorderedList: listUnorderedIcon,
|
|
2170
|
+
italic: italicIcon,
|
|
2171
|
+
outdent: outdentIcon,
|
|
2172
|
+
print: printIcon,
|
|
2173
|
+
redo: redoIcon,
|
|
2174
|
+
selectAll: selectAllIcon,
|
|
2175
|
+
strikethrough: strikethroughIcon,
|
|
2176
|
+
subscript: subscriptIcon,
|
|
2177
|
+
superscript: supscriptIcon,
|
|
2178
|
+
underline: underlineIcon,
|
|
2179
|
+
undo: undoIcon,
|
|
2180
|
+
unlink: unlinkIcon,
|
|
2181
|
+
viewSource: codeSnippetIcon,
|
|
2182
|
+
//table
|
|
2183
|
+
insertTable: tableAddIcon,
|
|
2184
|
+
addColumnBefore: tableColumnInsertLeftIcon,
|
|
2185
|
+
addColumnAfter: tableColumnInsertRightIcon,
|
|
2186
|
+
addRowBefore: tableRowInsertAboveIcon,
|
|
2187
|
+
addRowAfter: tableRowInsertBelowIcon,
|
|
2188
|
+
deleteRow: tableRowDeleteIcon,
|
|
2189
|
+
deleteColumn: tableColumnDeleteIcon,
|
|
2190
|
+
mergeCells: cellsMergeIcon,
|
|
2191
|
+
splitCell: cellSplitHorizontallyIcon,
|
|
2192
|
+
deleteTable: tableDeleteIcon
|
|
2193
|
+
// tableWizard: 'table-wizard'
|
|
2194
|
+
};
|
|
2145
2195
|
|
|
2146
2196
|
const MY_TOKEN = new InjectionToken('COMMAND_TOKEN');
|
|
2147
2197
|
/**
|
|
@@ -2154,18 +2204,25 @@ class EditorCommandBaseDirective {
|
|
|
2154
2204
|
this.localization = localization;
|
|
2155
2205
|
this.toolsService = toolsService;
|
|
2156
2206
|
this.editor = providerService.editor;
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
this.button.icon
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2207
|
+
this.toolsService.zone.runOutsideAngular(() => {
|
|
2208
|
+
setTimeout(() => {
|
|
2209
|
+
const text = this.localization.get(this.command);
|
|
2210
|
+
if (text) {
|
|
2211
|
+
this.button.showText = 'overflow';
|
|
2212
|
+
this.button.showIcon = 'both';
|
|
2213
|
+
this.button.text = text;
|
|
2214
|
+
}
|
|
2215
|
+
if (!this.button.toolbarOptions.icon) {
|
|
2216
|
+
this.button.icon = commandIcons[this.command];
|
|
2217
|
+
}
|
|
2218
|
+
if (!this.button.toolbarOptions.svgIcon) {
|
|
2219
|
+
this.button.svgIcon = commandSVGIcons[this.command];
|
|
2220
|
+
}
|
|
2221
|
+
this.button.title = text;
|
|
2222
|
+
this.toolsService.zone.run(() => {
|
|
2223
|
+
this.toolsService.needsCheck.next();
|
|
2224
|
+
});
|
|
2225
|
+
});
|
|
2169
2226
|
});
|
|
2170
2227
|
}
|
|
2171
2228
|
ngOnInit() {
|
|
@@ -2216,8 +2273,16 @@ class EditorCommandButton extends EditorCommandBaseDirective {
|
|
|
2216
2273
|
e.preventDefault();
|
|
2217
2274
|
}
|
|
2218
2275
|
onStateChange(toolBarState) {
|
|
2219
|
-
this.button.
|
|
2220
|
-
|
|
2276
|
+
if (this.button.overflows) {
|
|
2277
|
+
setTimeout(() => {
|
|
2278
|
+
this.button.selected = toolBarState[this.command].selected;
|
|
2279
|
+
this.button.disabled = toolBarState[this.command].disabled;
|
|
2280
|
+
});
|
|
2281
|
+
}
|
|
2282
|
+
else {
|
|
2283
|
+
this.button.selected = toolBarState[this.command].selected;
|
|
2284
|
+
this.button.disabled = toolBarState[this.command].disabled;
|
|
2285
|
+
}
|
|
2221
2286
|
}
|
|
2222
2287
|
}
|
|
2223
2288
|
|
|
@@ -2588,8 +2653,16 @@ class EditorCommandDialog extends EditorCommandBaseDirective {
|
|
|
2588
2653
|
this.editor.openDialog(this.dialog);
|
|
2589
2654
|
}
|
|
2590
2655
|
onStateChange(toolBarState) {
|
|
2591
|
-
this.button.
|
|
2592
|
-
|
|
2656
|
+
if (this.button.overflows) {
|
|
2657
|
+
setTimeout(() => {
|
|
2658
|
+
this.button.selected = toolBarState[this.command].selected;
|
|
2659
|
+
this.button.disabled = toolBarState[this.command].disabled;
|
|
2660
|
+
});
|
|
2661
|
+
}
|
|
2662
|
+
else {
|
|
2663
|
+
this.button.selected = toolBarState[this.command].selected;
|
|
2664
|
+
this.button.disabled = toolBarState[this.command].disabled;
|
|
2665
|
+
}
|
|
2593
2666
|
}
|
|
2594
2667
|
}
|
|
2595
2668
|
|
|
@@ -2714,7 +2787,7 @@ const getPasteCleanupAttributes = (config) => {
|
|
|
2714
2787
|
* Represents the [Kendo UI Editor component for Angular]({% slug overview_editor %}).
|
|
2715
2788
|
*/
|
|
2716
2789
|
class EditorComponent {
|
|
2717
|
-
constructor(dialogService, localization, cdr, ngZone, element, providerService, toolsService) {
|
|
2790
|
+
constructor(dialogService, localization, cdr, ngZone, element, providerService, toolsService, renderer) {
|
|
2718
2791
|
this.dialogService = dialogService;
|
|
2719
2792
|
this.localization = localization;
|
|
2720
2793
|
this.cdr = cdr;
|
|
@@ -2722,6 +2795,7 @@ class EditorComponent {
|
|
|
2722
2795
|
this.element = element;
|
|
2723
2796
|
this.providerService = providerService;
|
|
2724
2797
|
this.toolsService = toolsService;
|
|
2798
|
+
this.renderer = renderer;
|
|
2725
2799
|
/**
|
|
2726
2800
|
* If set to `false`, the Editor will run in style non-encapsulated mode. This means
|
|
2727
2801
|
* that the styles of the page will be persisted in the Editor and its content will be affected by them.
|
|
@@ -3065,6 +3139,10 @@ class EditorComponent {
|
|
|
3065
3139
|
if (this.resizable) {
|
|
3066
3140
|
this.normalizeSize();
|
|
3067
3141
|
}
|
|
3142
|
+
if (this.userToolBarComponent) {
|
|
3143
|
+
this.renderer.addClass(this.userToolBarComponent.element.nativeElement, 'k-editor-toolbar');
|
|
3144
|
+
}
|
|
3145
|
+
this.toolbar.onResize();
|
|
3068
3146
|
}
|
|
3069
3147
|
ngOnChanges(changes) {
|
|
3070
3148
|
if (changes['value'] && this.view) {
|
|
@@ -3179,13 +3257,16 @@ class EditorComponent {
|
|
|
3179
3257
|
openDialog(dialogName) {
|
|
3180
3258
|
const editorDialogs = {
|
|
3181
3259
|
createLink: {
|
|
3182
|
-
content: FileLinkDialogComponent
|
|
3260
|
+
content: FileLinkDialogComponent,
|
|
3261
|
+
width: 400
|
|
3183
3262
|
},
|
|
3184
3263
|
insertFile: {
|
|
3185
|
-
content: FileLinkDialogComponent
|
|
3264
|
+
content: FileLinkDialogComponent,
|
|
3265
|
+
width: 400
|
|
3186
3266
|
},
|
|
3187
3267
|
insertImage: {
|
|
3188
|
-
content: ImageDialogComponent
|
|
3268
|
+
content: ImageDialogComponent,
|
|
3269
|
+
width: 400
|
|
3189
3270
|
},
|
|
3190
3271
|
viewSource: {
|
|
3191
3272
|
content: SourceDialogComponent,
|
|
@@ -3199,6 +3280,7 @@ class EditorComponent {
|
|
|
3199
3280
|
const dialog = Object.assign({ appendTo: this.dialogContainer }, editorDialogs[dialogName]);
|
|
3200
3281
|
this.toolbar.toggle(false);
|
|
3201
3282
|
const dialogContent = this.dialogService.open(dialog).content.instance;
|
|
3283
|
+
this.renderer.addClass(dialogContent.dialog.dialog.instance.wrapper.nativeElement.querySelector('.k-window'), 'k-editor-window');
|
|
3202
3284
|
if (dialogName === 'createLink' || dialogName === 'insertFile') {
|
|
3203
3285
|
dialogContent.command = dialogName;
|
|
3204
3286
|
}
|
|
@@ -3466,7 +3548,7 @@ class EditorComponent {
|
|
|
3466
3548
|
}
|
|
3467
3549
|
;
|
|
3468
3550
|
}
|
|
3469
|
-
EditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", 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 }], target: i0.ɵɵFactoryTarget.Component });
|
|
3551
|
+
EditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", 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 });
|
|
3470
3552
|
EditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: EditorComponent, 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: [
|
|
3471
3553
|
EditorLocalizationService,
|
|
3472
3554
|
ProviderService,
|
|
@@ -3604,7 +3686,13 @@ EditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versio
|
|
|
3604
3686
|
>
|
|
3605
3687
|
</ng-container>
|
|
3606
3688
|
<ng-content select="kendo-toolbar"></ng-content>
|
|
3607
|
-
<kendo-toolbar
|
|
3689
|
+
<kendo-toolbar
|
|
3690
|
+
#defaultToolbar
|
|
3691
|
+
*ngIf="!userToolBarElement"
|
|
3692
|
+
class="k-editor-toolbar"
|
|
3693
|
+
[overflow]="true"
|
|
3694
|
+
[tabindex]="readonly ? -1 : 0"
|
|
3695
|
+
>
|
|
3608
3696
|
<kendo-toolbar-buttongroup>
|
|
3609
3697
|
<kendo-toolbar-button kendoEditorBoldButton></kendo-toolbar-button>
|
|
3610
3698
|
<kendo-toolbar-button kendoEditorItalicButton></kendo-toolbar-button>
|
|
@@ -3637,7 +3725,7 @@ EditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versio
|
|
|
3637
3725
|
</div>
|
|
3638
3726
|
|
|
3639
3727
|
<ng-container #dialogsContainer></ng-container>
|
|
3640
|
-
`, isInline: true, components: [{ type: i1$3.ToolBarComponent, selector: "kendo-toolbar", inputs: ["overflow", "resizable", "popupSettings", "tabindex", "tabIndex"], outputs: ["open", "close"], exportAs: ["kendoToolBar"] }, { type: i1$3.ToolBarButtonGroupComponent, selector: "kendo-toolbar-buttongroup", inputs: ["disabled", "selection", "width", "look"], exportAs: ["kendoToolBarButtonGroup"] }, { type: i1$3.ToolBarButtonComponent, selector: "kendo-toolbar-button", inputs: ["showText", "showIcon", "text", "style", "className", "title", "disabled", "toggleable", "look", "togglable", "selected", "fillMode", "themeColor", "icon", "iconClass", "imageUrl"], outputs: ["click", "pointerdown", "selectedChange"], exportAs: ["kendoToolBarButton"] }, { type: EditorFormatComponent, selector: "kendo-toolbar-dropdownlist[kendoEditorFormat]", inputs: ["data"], outputs: ["valueChange"] }], directives: [{ type: LocalizedMessagesDirective, selector: "[kendoEditorLocalizedMessages]" }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: EditorBoldButtonDirective, selector: "kendo-toolbar-button[kendoEditorBoldButton]" }, { type: EditorItalicButtonDirective, selector: "kendo-toolbar-button[kendoEditorItalicButton]" }, { type: EditorUnderlineButtonDirective, selector: "kendo-toolbar-button[kendoEditorUnderlineButton]" }, { type: EditorAlignLeftButtonDirective, selector: "kendo-toolbar-button[kendoEditorAlignLeftButton]" }, { type: EditorAlignCenterButtonDirective, selector: "kendo-toolbar-button[kendoEditorAlignCenterButton]" }, { type: EditorAlignRightButtonDirective, selector: "kendo-toolbar-button[kendoEditorAlignRightButton]" }, { type: EditorAlignJustifyButtonDirective, selector: "kendo-toolbar-button[kendoEditorAlignJustifyButton]" }, { type: EditorInsertUnorderedListButtonDirective, selector: "kendo-toolbar-button[kendoEditorInsertUnorderedListButton]" }, { type: EditorInsertOrderedListButtonDirective, selector: "kendo-toolbar-button[kendoEditorInsertOrderedListButton]" }, { type: EditorIndentButtonDirective, selector: "kendo-toolbar-button[kendoEditorIndentButton]" }, { type: EditorOutdentButtonDirective, selector: "kendo-toolbar-button[kendoEditorOutdentButton]" }, { type: EditorCreateLinkButtonDirective, selector: "kendo-toolbar-button[kendoEditorCreateLinkButton]" }, { type: EditorUnlinkButtonDirective, selector: "kendo-toolbar-button[kendoEditorUnlinkButton]" }, { type: EditorInsertImageButtonDirective, selector: "kendo-toolbar-button[kendoEditorInsertImageButton]" }] });
|
|
3728
|
+
`, isInline: true, components: [{ type: i1$3.ToolBarComponent, selector: "kendo-toolbar", inputs: ["overflow", "resizable", "popupSettings", "tabindex", "size", "tabIndex"], outputs: ["open", "close"], exportAs: ["kendoToolBar"] }, { type: i1$3.ToolBarButtonGroupComponent, selector: "kendo-toolbar-buttongroup", inputs: ["disabled", "selection", "width", "look"], exportAs: ["kendoToolBarButtonGroup"] }, { type: i1$3.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"] }, { type: EditorFormatComponent, selector: "kendo-toolbar-dropdownlist[kendoEditorFormat]", inputs: ["data"], outputs: ["valueChange"] }], directives: [{ type: LocalizedMessagesDirective, selector: "[kendoEditorLocalizedMessages]" }, { type: i3$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: EditorBoldButtonDirective, selector: "kendo-toolbar-button[kendoEditorBoldButton]" }, { type: EditorItalicButtonDirective, selector: "kendo-toolbar-button[kendoEditorItalicButton]" }, { type: EditorUnderlineButtonDirective, selector: "kendo-toolbar-button[kendoEditorUnderlineButton]" }, { type: EditorAlignLeftButtonDirective, selector: "kendo-toolbar-button[kendoEditorAlignLeftButton]" }, { type: EditorAlignCenterButtonDirective, selector: "kendo-toolbar-button[kendoEditorAlignCenterButton]" }, { type: EditorAlignRightButtonDirective, selector: "kendo-toolbar-button[kendoEditorAlignRightButton]" }, { type: EditorAlignJustifyButtonDirective, selector: "kendo-toolbar-button[kendoEditorAlignJustifyButton]" }, { type: EditorInsertUnorderedListButtonDirective, selector: "kendo-toolbar-button[kendoEditorInsertUnorderedListButton]" }, { type: EditorInsertOrderedListButtonDirective, selector: "kendo-toolbar-button[kendoEditorInsertOrderedListButton]" }, { type: EditorIndentButtonDirective, selector: "kendo-toolbar-button[kendoEditorIndentButton]" }, { type: EditorOutdentButtonDirective, selector: "kendo-toolbar-button[kendoEditorOutdentButton]" }, { type: EditorCreateLinkButtonDirective, selector: "kendo-toolbar-button[kendoEditorCreateLinkButton]" }, { type: EditorUnlinkButtonDirective, selector: "kendo-toolbar-button[kendoEditorUnlinkButton]" }, { type: EditorInsertImageButtonDirective, selector: "kendo-toolbar-button[kendoEditorInsertImageButton]" }] });
|
|
3641
3729
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EditorComponent, decorators: [{
|
|
3642
3730
|
type: Component,
|
|
3643
3731
|
args: [{
|
|
@@ -3780,7 +3868,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
3780
3868
|
>
|
|
3781
3869
|
</ng-container>
|
|
3782
3870
|
<ng-content select="kendo-toolbar"></ng-content>
|
|
3783
|
-
<kendo-toolbar
|
|
3871
|
+
<kendo-toolbar
|
|
3872
|
+
#defaultToolbar
|
|
3873
|
+
*ngIf="!userToolBarElement"
|
|
3874
|
+
class="k-editor-toolbar"
|
|
3875
|
+
[overflow]="true"
|
|
3876
|
+
[tabindex]="readonly ? -1 : 0"
|
|
3877
|
+
>
|
|
3784
3878
|
<kendo-toolbar-buttongroup>
|
|
3785
3879
|
<kendo-toolbar-button kendoEditorBoldButton></kendo-toolbar-button>
|
|
3786
3880
|
<kendo-toolbar-button kendoEditorItalicButton></kendo-toolbar-button>
|
|
@@ -3815,7 +3909,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
3815
3909
|
<ng-container #dialogsContainer></ng-container>
|
|
3816
3910
|
`
|
|
3817
3911
|
}]
|
|
3818
|
-
}], ctorParameters: function () { return [{ type: i1$1.DialogService }, { type: i1.LocalizationService }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i0.ElementRef }, { type: ProviderService }, { type: EditorToolsService }]; }, propDecorators: { value: [{
|
|
3912
|
+
}], ctorParameters: function () { return [{ type: i1$1.DialogService }, { type: i1.LocalizationService }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i0.ElementRef }, { type: ProviderService }, { type: EditorToolsService }, { type: i0.Renderer2 }]; }, propDecorators: { value: [{
|
|
3819
3913
|
type: Input
|
|
3820
3914
|
}], disabled: [{
|
|
3821
3915
|
type: Input
|
|
@@ -3933,6 +4027,7 @@ class ColorPickerDialogComponent extends DialogContentBase {
|
|
|
3933
4027
|
setData(args) {
|
|
3934
4028
|
this.editor = args.editor;
|
|
3935
4029
|
this.value = args.value;
|
|
4030
|
+
this.svgIcon = args.svgIcon;
|
|
3936
4031
|
this.editorCommand = args.editorCommand;
|
|
3937
4032
|
this.paletteSettings = args.paletteSettings;
|
|
3938
4033
|
this.icon = args.icon;
|
|
@@ -3947,29 +4042,26 @@ ColorPickerDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0
|
|
|
3947
4042
|
<kendo-dialog-titlebar (close)="onCancelAction()">
|
|
3948
4043
|
{{ textFor(editorCommand) }}
|
|
3949
4044
|
</kendo-dialog-titlebar>
|
|
3950
|
-
<div
|
|
3951
|
-
<
|
|
3952
|
-
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
</kendo-colorpicker>
|
|
3964
|
-
</div>
|
|
3965
|
-
</div>
|
|
4045
|
+
<div [style.text-align]="'center'">
|
|
4046
|
+
<kendo-colorpicker
|
|
4047
|
+
#colorpicker
|
|
4048
|
+
[views]="views"
|
|
4049
|
+
[format]="'hex'"
|
|
4050
|
+
[attr.title]="title"
|
|
4051
|
+
[icon]="icon"
|
|
4052
|
+
[svgIcon]="svgIcon"
|
|
4053
|
+
[(value)]="value"
|
|
4054
|
+
[paletteSettings]="paletteSettings"
|
|
4055
|
+
(activeColorClick)="handleActiveColorClick($event)"
|
|
4056
|
+
>
|
|
4057
|
+
</kendo-colorpicker>
|
|
3966
4058
|
</div>
|
|
3967
|
-
<kendo-dialog-actions>
|
|
4059
|
+
<kendo-dialog-actions class="k-actions-end k-actions-horizontal k-window-actions" [layout]="'normal'">
|
|
3968
4060
|
<button kendoButton (click)="onCancelAction()">{{ textFor('dialogCancel') }}</button>
|
|
3969
4061
|
<button kendoButton
|
|
3970
4062
|
(click)="onConfirmAction()" [primary]="true">{{ textFor('dialogApply') }}</button>
|
|
3971
4063
|
</kendo-dialog-actions>
|
|
3972
|
-
`, isInline: true, components: [{ type: i1$1.DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { type:
|
|
4064
|
+
`, isInline: true, components: [{ type: i1$1.DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { type: i4.ColorPickerComponent, selector: "kendo-colorpicker", inputs: ["views", "view", "activeView", "readonly", "disabled", "format", "value", "popupSettings", "paletteSettings", "gradientSettings", "icon", "iconClass", "svgIcon", "clearButton", "tabindex", "preview", "actionsLayout", "size", "rounded", "fillMode"], outputs: ["valueChange", "open", "close", "focus", "blur", "cancel", "activeColorClick", "activeViewChange"], exportAs: ["kendoColorPicker"] }, { type: i1$1.DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }, { type: i4$1.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"] }] });
|
|
3973
4065
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ColorPickerDialogComponent, decorators: [{
|
|
3974
4066
|
type: Component,
|
|
3975
4067
|
args: [{
|
|
@@ -3977,24 +4069,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
3977
4069
|
<kendo-dialog-titlebar (close)="onCancelAction()">
|
|
3978
4070
|
{{ textFor(editorCommand) }}
|
|
3979
4071
|
</kendo-dialog-titlebar>
|
|
3980
|
-
<div
|
|
3981
|
-
<
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
</kendo-colorpicker>
|
|
3994
|
-
</div>
|
|
3995
|
-
</div>
|
|
4072
|
+
<div [style.text-align]="'center'">
|
|
4073
|
+
<kendo-colorpicker
|
|
4074
|
+
#colorpicker
|
|
4075
|
+
[views]="views"
|
|
4076
|
+
[format]="'hex'"
|
|
4077
|
+
[attr.title]="title"
|
|
4078
|
+
[icon]="icon"
|
|
4079
|
+
[svgIcon]="svgIcon"
|
|
4080
|
+
[(value)]="value"
|
|
4081
|
+
[paletteSettings]="paletteSettings"
|
|
4082
|
+
(activeColorClick)="handleActiveColorClick($event)"
|
|
4083
|
+
>
|
|
4084
|
+
</kendo-colorpicker>
|
|
3996
4085
|
</div>
|
|
3997
|
-
<kendo-dialog-actions>
|
|
4086
|
+
<kendo-dialog-actions class="k-actions-end k-actions-horizontal k-window-actions" [layout]="'normal'">
|
|
3998
4087
|
<button kendoButton (click)="onCancelAction()">{{ textFor('dialogCancel') }}</button>
|
|
3999
4088
|
<button kendoButton
|
|
4000
4089
|
(click)="onConfirmAction()" [primary]="true">{{ textFor('dialogApply') }}</button>
|
|
@@ -4046,7 +4135,7 @@ FontFamilyDropDownListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion:
|
|
|
4046
4135
|
</span>
|
|
4047
4136
|
</ng-template>
|
|
4048
4137
|
</kendo-dropdownlist>
|
|
4049
|
-
`, isInline: true, components: [{ type: i1$2.DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["iconClass", "loading", "data", "value", "textField", "valueField", "popupSettings", "listHeight", "defaultItem", "disabled", "itemDisabled", "readonly", "filterable", "virtual", "ignoreCase", "delay", "valuePrimitive", "tabindex", "tabIndex", "size", "rounded", "fillMode", "id"], outputs: ["valueChange", "filterChange", "selectionChange", "open", "opened", "close", "closed", "focus", "blur"], exportAs: ["kendoDropDownList"] }], directives: [{ type: DropDownToolDirective, selector: "[kendoEditorDropDownTool]" }, { type: i1$2.ItemTemplateDirective, selector: "[kendoDropDownListItemTemplate],[kendoComboBoxItemTemplate],[kendoAutoCompleteItemTemplate],[kendoMultiSelectItemTemplate]" }, { type: i3.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
|
|
4138
|
+
`, isInline: true, components: [{ type: i1$2.DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["iconClass", "loading", "data", "value", "textField", "valueField", "popupSettings", "listHeight", "defaultItem", "disabled", "itemDisabled", "readonly", "filterable", "virtual", "ignoreCase", "delay", "valuePrimitive", "tabindex", "tabIndex", "size", "rounded", "fillMode", "id"], outputs: ["valueChange", "filterChange", "selectionChange", "open", "opened", "close", "closed", "focus", "blur"], exportAs: ["kendoDropDownList"] }], directives: [{ type: DropDownToolDirective, selector: "[kendoEditorDropDownTool]" }, { type: i1$2.ItemTemplateDirective, selector: "[kendoDropDownListItemTemplate],[kendoComboBoxItemTemplate],[kendoAutoCompleteItemTemplate],[kendoMultiSelectItemTemplate]" }, { type: i3$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
|
|
4050
4139
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FontFamilyDropDownListComponent, decorators: [{
|
|
4051
4140
|
type: Component,
|
|
4052
4141
|
args: [{
|
|
@@ -4140,26 +4229,22 @@ FontFamilyDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
|
|
|
4140
4229
|
<kendo-dialog-titlebar (close)="onCancelAction()">
|
|
4141
4230
|
{{ textFor('fontFamily') }}
|
|
4142
4231
|
</kendo-dialog-titlebar>
|
|
4143
|
-
<div
|
|
4144
|
-
<
|
|
4145
|
-
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
>
|
|
4153
|
-
</kendo-editor-fontfamily-dropdownlist>
|
|
4154
|
-
</div>
|
|
4155
|
-
</div>
|
|
4232
|
+
<div [style.text-align]="'center'">
|
|
4233
|
+
<kendo-editor-fontfamily-dropdownlist
|
|
4234
|
+
#fontFamilyDropDownList
|
|
4235
|
+
[defaultItem]="defaultItem"
|
|
4236
|
+
[data]="data"
|
|
4237
|
+
[(value)]="value"
|
|
4238
|
+
[itemDisabled]="itemDisabled"
|
|
4239
|
+
>
|
|
4240
|
+
</kendo-editor-fontfamily-dropdownlist>
|
|
4156
4241
|
</div>
|
|
4157
|
-
<kendo-dialog-actions>
|
|
4242
|
+
<kendo-dialog-actions class="k-actions-end k-actions-horizontal k-window-actions" [layout]="'normal'">
|
|
4158
4243
|
<button kendoButton (click)="onCancelAction()">{{ textFor('dialogCancel') }}</button>
|
|
4159
4244
|
<button kendoButton
|
|
4160
4245
|
(click)="onConfirmAction()" [primary]="true">{{ textFor('dialogApply') }}</button>
|
|
4161
4246
|
</kendo-dialog-actions>
|
|
4162
|
-
`, isInline: true, components: [{ type: i1$1.DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { type: FontFamilyDropDownListComponent, selector: "kendo-editor-fontfamily-dropdownlist", inputs: ["data", "value", "defaultItem", "itemDisabled", "title", "disabled", "tabindex"], outputs: ["valueChange"] }, { type: i1$1.DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }, { type: i4.Button, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
|
|
4247
|
+
`, isInline: true, components: [{ type: i1$1.DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { type: FontFamilyDropDownListComponent, selector: "kendo-editor-fontfamily-dropdownlist", inputs: ["data", "value", "defaultItem", "itemDisabled", "title", "disabled", "tabindex"], outputs: ["valueChange"] }, { type: i1$1.DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }, { type: i4$1.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"] }] });
|
|
4163
4248
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FontFamilyDialogComponent, decorators: [{
|
|
4164
4249
|
type: Component,
|
|
4165
4250
|
args: [{
|
|
@@ -4167,21 +4252,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
4167
4252
|
<kendo-dialog-titlebar (close)="onCancelAction()">
|
|
4168
4253
|
{{ textFor('fontFamily') }}
|
|
4169
4254
|
</kendo-dialog-titlebar>
|
|
4170
|
-
<div
|
|
4171
|
-
<
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4179
|
-
>
|
|
4180
|
-
</kendo-editor-fontfamily-dropdownlist>
|
|
4181
|
-
</div>
|
|
4182
|
-
</div>
|
|
4255
|
+
<div [style.text-align]="'center'">
|
|
4256
|
+
<kendo-editor-fontfamily-dropdownlist
|
|
4257
|
+
#fontFamilyDropDownList
|
|
4258
|
+
[defaultItem]="defaultItem"
|
|
4259
|
+
[data]="data"
|
|
4260
|
+
[(value)]="value"
|
|
4261
|
+
[itemDisabled]="itemDisabled"
|
|
4262
|
+
>
|
|
4263
|
+
</kendo-editor-fontfamily-dropdownlist>
|
|
4183
4264
|
</div>
|
|
4184
|
-
<kendo-dialog-actions>
|
|
4265
|
+
<kendo-dialog-actions class="k-actions-end k-actions-horizontal k-window-actions" [layout]="'normal'">
|
|
4185
4266
|
<button kendoButton (click)="onCancelAction()">{{ textFor('dialogCancel') }}</button>
|
|
4186
4267
|
<button kendoButton
|
|
4187
4268
|
(click)="onConfirmAction()" [primary]="true">{{ textFor('dialogApply') }}</button>
|
|
@@ -4202,6 +4283,7 @@ class PopupTableGridComponent {
|
|
|
4202
4283
|
constructor() {
|
|
4203
4284
|
this.cellClick = new EventEmitter();
|
|
4204
4285
|
this.tableWizardClick = new EventEmitter();
|
|
4286
|
+
this.tableWizardIcon = tableWizardIcon;
|
|
4205
4287
|
this.state = { rows: -1, cols: -1 };
|
|
4206
4288
|
this.rows = 6;
|
|
4207
4289
|
this.cols = 8;
|
|
@@ -4247,10 +4329,10 @@ PopupTableGridComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
|
|
|
4247
4329
|
<div class="k-status" unselectable="on">{{ message }}</div>
|
|
4248
4330
|
<!-- uncomment when TableWizard is completed
|
|
4249
4331
|
<div class="k-editor-toolbar" unselectable="on">
|
|
4250
|
-
<button type="button" kendoButton class="k-tool" [icon]="'table-wizard'" (click)="openTableWizard()" title="Table Wizard">Table Wizard</button>
|
|
4332
|
+
<button type="button" kendoButton class="k-tool" [icon]="'table-wizard'" [svgIcon]="tableWizardIcon" (click)="openTableWizard()" title="Table Wizard">Table Wizard</button>
|
|
4251
4333
|
</div>
|
|
4252
4334
|
-->
|
|
4253
|
-
`, isInline: true, directives: [{ type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
4335
|
+
`, isInline: true, directives: [{ type: i3$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
4254
4336
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PopupTableGridComponent, decorators: [{
|
|
4255
4337
|
type: Component,
|
|
4256
4338
|
args: [{
|
|
@@ -4267,7 +4349,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
4267
4349
|
<div class="k-status" unselectable="on">{{ message }}</div>
|
|
4268
4350
|
<!-- uncomment when TableWizard is completed
|
|
4269
4351
|
<div class="k-editor-toolbar" unselectable="on">
|
|
4270
|
-
<button type="button" kendoButton class="k-tool" [icon]="'table-wizard'" (click)="openTableWizard()" title="Table Wizard">Table Wizard</button>
|
|
4352
|
+
<button type="button" kendoButton class="k-tool" [icon]="'table-wizard'" [svgIcon]="tableWizardIcon" (click)="openTableWizard()" title="Table Wizard">Table Wizard</button>
|
|
4271
4353
|
</div>
|
|
4272
4354
|
-->
|
|
4273
4355
|
`
|
|
@@ -4308,17 +4390,13 @@ InsertTableDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0
|
|
|
4308
4390
|
<kendo-dialog-titlebar (close)="onCancelAction()">
|
|
4309
4391
|
{{ textFor('insertTable') }}
|
|
4310
4392
|
</kendo-dialog-titlebar>
|
|
4311
|
-
<div
|
|
4312
|
-
<
|
|
4313
|
-
<div class="k-ct-popup k-window-content" [style.text-align]="'center'">
|
|
4314
|
-
<kendo-popup-table-grid (cellClick)="onCellClick($event)"></kendo-popup-table-grid>
|
|
4315
|
-
</div>
|
|
4316
|
-
</div>
|
|
4393
|
+
<div [style.text-align]="'center'">
|
|
4394
|
+
<kendo-popup-table-grid (cellClick)="onCellClick($event)"></kendo-popup-table-grid>
|
|
4317
4395
|
</div>
|
|
4318
|
-
<kendo-dialog-actions>
|
|
4396
|
+
<kendo-dialog-actions class="k-actions-end k-actions-horizontal k-window-actions" [layout]="'normal'">
|
|
4319
4397
|
<button kendoButton (click)="onCancelAction()">{{ textFor('dialogCancel') }}</button>
|
|
4320
4398
|
</kendo-dialog-actions>
|
|
4321
|
-
`, isInline: true, components: [{ type: i1$1.DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { type: PopupTableGridComponent, selector: "kendo-popup-table-grid", outputs: ["cellClick", "tableWizardClick"] }, { type: i1$1.DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }, { type: i4.Button, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
|
|
4399
|
+
`, isInline: true, components: [{ type: i1$1.DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { type: PopupTableGridComponent, selector: "kendo-popup-table-grid", outputs: ["cellClick", "tableWizardClick"] }, { type: i1$1.DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }, { type: i4$1.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"] }] });
|
|
4322
4400
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: InsertTableDialogComponent, decorators: [{
|
|
4323
4401
|
type: Component,
|
|
4324
4402
|
args: [{
|
|
@@ -4326,14 +4404,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
4326
4404
|
<kendo-dialog-titlebar (close)="onCancelAction()">
|
|
4327
4405
|
{{ textFor('insertTable') }}
|
|
4328
4406
|
</kendo-dialog-titlebar>
|
|
4329
|
-
<div
|
|
4330
|
-
<
|
|
4331
|
-
<div class="k-ct-popup k-window-content" [style.text-align]="'center'">
|
|
4332
|
-
<kendo-popup-table-grid (cellClick)="onCellClick($event)"></kendo-popup-table-grid>
|
|
4333
|
-
</div>
|
|
4334
|
-
</div>
|
|
4407
|
+
<div [style.text-align]="'center'">
|
|
4408
|
+
<kendo-popup-table-grid (cellClick)="onCellClick($event)"></kendo-popup-table-grid>
|
|
4335
4409
|
</div>
|
|
4336
|
-
<kendo-dialog-actions>
|
|
4410
|
+
<kendo-dialog-actions class="k-actions-end k-actions-horizontal k-window-actions" [layout]="'normal'">
|
|
4337
4411
|
<button kendoButton (click)="onCancelAction()">{{ textFor('dialogCancel') }}</button>
|
|
4338
4412
|
</kendo-dialog-actions>
|
|
4339
4413
|
`
|
|
@@ -4464,26 +4538,22 @@ FontSizeDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
|
|
|
4464
4538
|
<kendo-dialog-titlebar (close)="onCancelAction()">
|
|
4465
4539
|
{{ textFor('fontSize') }}
|
|
4466
4540
|
</kendo-dialog-titlebar>
|
|
4467
|
-
<div
|
|
4468
|
-
<
|
|
4469
|
-
|
|
4470
|
-
|
|
4471
|
-
|
|
4472
|
-
|
|
4473
|
-
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
-
>
|
|
4477
|
-
</kendo-editor-fontsize-dropdownlist>
|
|
4478
|
-
</div>
|
|
4479
|
-
</div>
|
|
4541
|
+
<div [style.text-align]="'center'">
|
|
4542
|
+
<kendo-editor-fontsize-dropdownlist
|
|
4543
|
+
#fontSizeDropDownList
|
|
4544
|
+
[defaultItem]="defaultItem"
|
|
4545
|
+
[data]="data"
|
|
4546
|
+
[(value)]="value"
|
|
4547
|
+
[itemDisabled]="itemDisabled"
|
|
4548
|
+
>
|
|
4549
|
+
</kendo-editor-fontsize-dropdownlist>
|
|
4480
4550
|
</div>
|
|
4481
|
-
<kendo-dialog-actions>
|
|
4551
|
+
<kendo-dialog-actions class="k-actions-end k-actions-horizontal k-window-actions" [layout]="'normal'">
|
|
4482
4552
|
<button kendoButton (click)="onCancelAction()">{{ textFor('dialogCancel') }}</button>
|
|
4483
4553
|
<button kendoButton
|
|
4484
4554
|
(click)="onConfirmAction()" [primary]="true">{{ textFor('dialogApply') }}</button>
|
|
4485
4555
|
</kendo-dialog-actions>
|
|
4486
|
-
`, isInline: true, components: [{ type: i1$1.DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { type: FontSizeDropDownListComponent, selector: "kendo-editor-fontsize-dropdownlist", inputs: ["data", "value", "defaultItem", "itemDisabled", "title", "disabled", "tabindex"], outputs: ["valueChange"] }, { type: i1$1.DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }, { type: i4.Button, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
|
|
4556
|
+
`, isInline: true, components: [{ type: i1$1.DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { type: FontSizeDropDownListComponent, selector: "kendo-editor-fontsize-dropdownlist", inputs: ["data", "value", "defaultItem", "itemDisabled", "title", "disabled", "tabindex"], outputs: ["valueChange"] }, { type: i1$1.DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }, { type: i4$1.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"] }] });
|
|
4487
4557
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FontSizeDialogComponent, decorators: [{
|
|
4488
4558
|
type: Component,
|
|
4489
4559
|
args: [{
|
|
@@ -4491,21 +4561,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
4491
4561
|
<kendo-dialog-titlebar (close)="onCancelAction()">
|
|
4492
4562
|
{{ textFor('fontSize') }}
|
|
4493
4563
|
</kendo-dialog-titlebar>
|
|
4494
|
-
<div
|
|
4495
|
-
<
|
|
4496
|
-
|
|
4497
|
-
|
|
4498
|
-
|
|
4499
|
-
|
|
4500
|
-
|
|
4501
|
-
|
|
4502
|
-
|
|
4503
|
-
>
|
|
4504
|
-
</kendo-editor-fontsize-dropdownlist>
|
|
4505
|
-
</div>
|
|
4506
|
-
</div>
|
|
4564
|
+
<div [style.text-align]="'center'">
|
|
4565
|
+
<kendo-editor-fontsize-dropdownlist
|
|
4566
|
+
#fontSizeDropDownList
|
|
4567
|
+
[defaultItem]="defaultItem"
|
|
4568
|
+
[data]="data"
|
|
4569
|
+
[(value)]="value"
|
|
4570
|
+
[itemDisabled]="itemDisabled"
|
|
4571
|
+
>
|
|
4572
|
+
</kendo-editor-fontsize-dropdownlist>
|
|
4507
4573
|
</div>
|
|
4508
|
-
<kendo-dialog-actions>
|
|
4574
|
+
<kendo-dialog-actions class="k-actions-end k-actions-horizontal k-window-actions" [layout]="'normal'">
|
|
4509
4575
|
<button kendoButton (click)="onCancelAction()">{{ textFor('dialogCancel') }}</button>
|
|
4510
4576
|
<button kendoButton
|
|
4511
4577
|
(click)="onConfirmAction()" [primary]="true">{{ textFor('dialogApply') }}</button>
|
|
@@ -4533,17 +4599,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
4533
4599
|
* Use the FontSize tool to provide a custom list of font size options including any allowed units ([see example]({% slug toolbartools_editor %}#toc-dropdownlists)).
|
|
4534
4600
|
*/
|
|
4535
4601
|
class EditorFontSizeComponent extends ToolBarToolComponent {
|
|
4536
|
-
constructor(dialogService, localization, providerService, toolsService) {
|
|
4602
|
+
constructor(dialogService, localization, providerService, toolsService, renderer) {
|
|
4537
4603
|
super();
|
|
4538
4604
|
this.dialogService = dialogService;
|
|
4539
4605
|
this.localization = localization;
|
|
4540
4606
|
this.toolsService = toolsService;
|
|
4607
|
+
this.renderer = renderer;
|
|
4541
4608
|
this.disabled = false;
|
|
4542
4609
|
this.tabindex = -1;
|
|
4543
4610
|
/**
|
|
4544
4611
|
* Fires when the user updates the value of the drop-down list.
|
|
4545
4612
|
*/
|
|
4546
4613
|
this.valueChange = new EventEmitter();
|
|
4614
|
+
this.fontSizeSVGIcon = fontSizeIcon;
|
|
4547
4615
|
this._data = [
|
|
4548
4616
|
{ text: '8px', size: '8px' },
|
|
4549
4617
|
{ text: '10px', size: '10px' },
|
|
@@ -4623,10 +4691,12 @@ class EditorFontSizeComponent extends ToolBarToolComponent {
|
|
|
4623
4691
|
openDialog() {
|
|
4624
4692
|
const dialogSettings = {
|
|
4625
4693
|
appendTo: this.editor.dialogContainer,
|
|
4626
|
-
content: FontSizeDialogComponent
|
|
4694
|
+
content: FontSizeDialogComponent,
|
|
4695
|
+
width: 400
|
|
4627
4696
|
};
|
|
4628
4697
|
this.editor.toolbar.toggle(false);
|
|
4629
4698
|
const dialogContent = this.dialogService.open(dialogSettings).content.instance;
|
|
4699
|
+
this.renderer.addClass(dialogContent.dialog.dialog.instance.wrapper.nativeElement.querySelector('.k-window'), 'k-editor-window');
|
|
4630
4700
|
dialogContent.setData({
|
|
4631
4701
|
editor: this.editor,
|
|
4632
4702
|
data: this.data,
|
|
@@ -4661,7 +4731,7 @@ class EditorFontSizeComponent extends ToolBarToolComponent {
|
|
|
4661
4731
|
return false;
|
|
4662
4732
|
}
|
|
4663
4733
|
}
|
|
4664
|
-
EditorFontSizeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EditorFontSizeComponent, deps: [{ token: i1$1.DialogService }, { token: EditorLocalizationService }, { token: ProviderService }, { token: EditorToolsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
4734
|
+
EditorFontSizeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EditorFontSizeComponent, deps: [{ token: i1$1.DialogService }, { token: EditorLocalizationService }, { token: ProviderService }, { token: EditorToolsService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
4665
4735
|
EditorFontSizeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: EditorFontSizeComponent, selector: "kendo-toolbar-dropdownlist[kendoEditorFontSize]", inputs: { data: "data" }, outputs: { valueChange: "valueChange" }, providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => EditorFontSizeComponent) }], 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: "fontSizeDropDownList", first: true, predicate: ["element"], descendants: true, read: FontSizeDropDownListComponent }, { propertyName: "fontSizeButton", first: true, predicate: ["fontSizeButton"], descendants: true, read: ElementRef }], usesInheritance: true, ngImport: i0, template: `
|
|
4666
4736
|
<ng-template #toolbarTemplate>
|
|
4667
4737
|
<kendo-editor-fontsize-dropdownlist
|
|
@@ -4678,22 +4748,21 @@ EditorFontSizeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
|
|
|
4678
4748
|
</kendo-editor-fontsize-dropdownlist>
|
|
4679
4749
|
</ng-template>
|
|
4680
4750
|
<ng-template #popupTemplate>
|
|
4681
|
-
<
|
|
4751
|
+
<div #fontSizeButton
|
|
4682
4752
|
tabindex="-1"
|
|
4683
|
-
|
|
4684
|
-
|
|
4685
|
-
|
|
4686
|
-
class="k-overflow-button"
|
|
4687
|
-
[icon]="'font-size'"
|
|
4688
|
-
[attr.title]="title"
|
|
4689
|
-
[disabled]="disabled"
|
|
4753
|
+
role="menuitem"
|
|
4754
|
+
class="k-item k-menu-item"
|
|
4755
|
+
[class.k-disabled]="disabled"
|
|
4690
4756
|
[tabindex]="tabindex"
|
|
4691
|
-
(click)="openDialog()"
|
|
4692
|
-
|
|
4693
|
-
|
|
4694
|
-
|
|
4757
|
+
(click)="openDialog()">
|
|
4758
|
+
<span
|
|
4759
|
+
class="k-link k-menu-link">
|
|
4760
|
+
<kendo-icon-wrapper name="font-size" [svgIcon]="fontSizeSVGIcon"></kendo-icon-wrapper>
|
|
4761
|
+
<span *ngIf="title" class="k-menu-link-text">{{title}}</span>
|
|
4762
|
+
</span>
|
|
4763
|
+
</div>
|
|
4695
4764
|
</ng-template>
|
|
4696
|
-
`, isInline: true, components: [{ type: FontSizeDropDownListComponent, selector: "kendo-editor-fontsize-dropdownlist", inputs: ["data", "value", "defaultItem", "itemDisabled", "title", "disabled", "tabindex"], outputs: ["valueChange"] }, { type:
|
|
4765
|
+
`, isInline: true, components: [{ type: FontSizeDropDownListComponent, selector: "kendo-editor-fontsize-dropdownlist", inputs: ["data", "value", "defaultItem", "itemDisabled", "title", "disabled", "tabindex"], outputs: ["valueChange"] }, { type: i6$1.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i3$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
4697
4766
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EditorFontSizeComponent, decorators: [{
|
|
4698
4767
|
type: Component,
|
|
4699
4768
|
args: [{
|
|
@@ -4715,24 +4784,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
4715
4784
|
</kendo-editor-fontsize-dropdownlist>
|
|
4716
4785
|
</ng-template>
|
|
4717
4786
|
<ng-template #popupTemplate>
|
|
4718
|
-
<
|
|
4787
|
+
<div #fontSizeButton
|
|
4719
4788
|
tabindex="-1"
|
|
4720
|
-
|
|
4721
|
-
|
|
4722
|
-
|
|
4723
|
-
class="k-overflow-button"
|
|
4724
|
-
[icon]="'font-size'"
|
|
4725
|
-
[attr.title]="title"
|
|
4726
|
-
[disabled]="disabled"
|
|
4789
|
+
role="menuitem"
|
|
4790
|
+
class="k-item k-menu-item"
|
|
4791
|
+
[class.k-disabled]="disabled"
|
|
4727
4792
|
[tabindex]="tabindex"
|
|
4728
|
-
(click)="openDialog()"
|
|
4729
|
-
|
|
4730
|
-
|
|
4731
|
-
|
|
4793
|
+
(click)="openDialog()">
|
|
4794
|
+
<span
|
|
4795
|
+
class="k-link k-menu-link">
|
|
4796
|
+
<kendo-icon-wrapper name="font-size" [svgIcon]="fontSizeSVGIcon"></kendo-icon-wrapper>
|
|
4797
|
+
<span *ngIf="title" class="k-menu-link-text">{{title}}</span>
|
|
4798
|
+
</span>
|
|
4799
|
+
</div>
|
|
4732
4800
|
</ng-template>
|
|
4733
4801
|
`
|
|
4734
4802
|
}]
|
|
4735
|
-
}], ctorParameters: function () { return [{ type: i1$1.DialogService }, { type: EditorLocalizationService }, { type: ProviderService }, { type: EditorToolsService }]; }, propDecorators: { data: [{
|
|
4803
|
+
}], ctorParameters: function () { return [{ type: i1$1.DialogService }, { type: EditorLocalizationService }, { type: ProviderService }, { type: EditorToolsService }, { type: i0.Renderer2 }]; }, propDecorators: { data: [{
|
|
4736
4804
|
type: Input
|
|
4737
4805
|
}], valueChange: [{
|
|
4738
4806
|
type: Output
|
|
@@ -4753,6 +4821,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
4753
4821
|
args: ['fontSizeButton', { read: ElementRef }]
|
|
4754
4822
|
}] } });
|
|
4755
4823
|
|
|
4824
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
4756
4825
|
/**
|
|
4757
4826
|
* A component which configures an existing `DropDownListComponent` as an Editor tool
|
|
4758
4827
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
@@ -4765,17 +4834,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
4765
4834
|
* ```
|
|
4766
4835
|
*/
|
|
4767
4836
|
class EditorFontFamilyComponent extends ToolBarToolComponent {
|
|
4768
|
-
constructor(dialogService, localization, providerService, toolsService) {
|
|
4837
|
+
constructor(dialogService, localization, providerService, toolsService, renderer) {
|
|
4769
4838
|
super();
|
|
4770
4839
|
this.dialogService = dialogService;
|
|
4771
4840
|
this.localization = localization;
|
|
4772
4841
|
this.toolsService = toolsService;
|
|
4842
|
+
this.renderer = renderer;
|
|
4773
4843
|
this.disabled = false;
|
|
4774
4844
|
this.tabindex = -1;
|
|
4775
4845
|
/**
|
|
4776
4846
|
* Fires when the user updates the value of the drop-down list.
|
|
4777
4847
|
*/
|
|
4778
4848
|
this.valueChange = new EventEmitter();
|
|
4849
|
+
this.fontFamilySVGIcon = fontFamilyIcon;
|
|
4779
4850
|
this._data = [
|
|
4780
4851
|
{ text: 'Arial', fontName: 'Arial,"Helvetica Neue",Helvetica,sans-serif' },
|
|
4781
4852
|
{ text: 'Courier New', fontName: '"Courier New",Courier,"Lucida Sans Typewriter","Lucida Typewriter",monospace' },
|
|
@@ -4848,10 +4919,12 @@ class EditorFontFamilyComponent extends ToolBarToolComponent {
|
|
|
4848
4919
|
openDialog() {
|
|
4849
4920
|
const dialogSettings = {
|
|
4850
4921
|
appendTo: this.editor.dialogContainer,
|
|
4851
|
-
content: FontFamilyDialogComponent
|
|
4922
|
+
content: FontFamilyDialogComponent,
|
|
4923
|
+
width: 400
|
|
4852
4924
|
};
|
|
4853
4925
|
this.editor.toolbar.toggle(false);
|
|
4854
4926
|
const dialogContent = this.dialogService.open(dialogSettings).content.instance;
|
|
4927
|
+
this.renderer.addClass(dialogContent.dialog.dialog.instance.wrapper.nativeElement.querySelector('.k-window'), 'k-editor-window');
|
|
4855
4928
|
dialogContent.setData({
|
|
4856
4929
|
editor: this.editor,
|
|
4857
4930
|
data: this.data,
|
|
@@ -4886,7 +4959,7 @@ class EditorFontFamilyComponent extends ToolBarToolComponent {
|
|
|
4886
4959
|
return false;
|
|
4887
4960
|
}
|
|
4888
4961
|
}
|
|
4889
|
-
EditorFontFamilyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EditorFontFamilyComponent, deps: [{ token: i1$1.DialogService }, { token: EditorLocalizationService }, { token: ProviderService }, { token: EditorToolsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
4962
|
+
EditorFontFamilyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EditorFontFamilyComponent, deps: [{ token: i1$1.DialogService }, { token: EditorLocalizationService }, { token: ProviderService }, { token: EditorToolsService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
4890
4963
|
EditorFontFamilyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: EditorFontFamilyComponent, 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: `
|
|
4891
4964
|
<ng-template #toolbarTemplate>
|
|
4892
4965
|
<kendo-editor-fontfamily-dropdownlist
|
|
@@ -4903,22 +4976,21 @@ EditorFontFamilyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
|
|
|
4903
4976
|
</kendo-editor-fontfamily-dropdownlist>
|
|
4904
4977
|
</ng-template>
|
|
4905
4978
|
<ng-template #popupTemplate>
|
|
4906
|
-
<
|
|
4979
|
+
<div #fontFamilyButton
|
|
4907
4980
|
tabindex="-1"
|
|
4908
|
-
|
|
4909
|
-
|
|
4910
|
-
|
|
4911
|
-
class="k-overflow-button"
|
|
4912
|
-
[icon]="'font-family'"
|
|
4913
|
-
[attr.title]="title"
|
|
4914
|
-
[disabled]="disabled"
|
|
4981
|
+
role="menuitem"
|
|
4982
|
+
class="k-item k-menu-item"
|
|
4983
|
+
[class.k-disabled]="disabled"
|
|
4915
4984
|
[tabindex]="tabindex"
|
|
4916
|
-
(click)="openDialog()"
|
|
4917
|
-
|
|
4918
|
-
|
|
4919
|
-
|
|
4985
|
+
(click)="openDialog()">
|
|
4986
|
+
<span
|
|
4987
|
+
class="k-link k-menu-link">
|
|
4988
|
+
<kendo-icon-wrapper name="font-family" [svgIcon]="fontFamilySVGIcon"></kendo-icon-wrapper>
|
|
4989
|
+
<span *ngIf="title" class="k-menu-link-text">{{title}}</span>
|
|
4990
|
+
</span>
|
|
4991
|
+
</div>
|
|
4920
4992
|
</ng-template>
|
|
4921
|
-
`, isInline: true, components: [{ type: FontFamilyDropDownListComponent, selector: "kendo-editor-fontfamily-dropdownlist", inputs: ["data", "value", "defaultItem", "itemDisabled", "title", "disabled", "tabindex"], outputs: ["valueChange"] }, { type:
|
|
4993
|
+
`, isInline: true, components: [{ type: FontFamilyDropDownListComponent, selector: "kendo-editor-fontfamily-dropdownlist", inputs: ["data", "value", "defaultItem", "itemDisabled", "title", "disabled", "tabindex"], outputs: ["valueChange"] }, { type: i6$1.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i3$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
4922
4994
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EditorFontFamilyComponent, decorators: [{
|
|
4923
4995
|
type: Component,
|
|
4924
4996
|
args: [{
|
|
@@ -4940,24 +5012,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
4940
5012
|
</kendo-editor-fontfamily-dropdownlist>
|
|
4941
5013
|
</ng-template>
|
|
4942
5014
|
<ng-template #popupTemplate>
|
|
4943
|
-
<
|
|
5015
|
+
<div #fontFamilyButton
|
|
4944
5016
|
tabindex="-1"
|
|
4945
|
-
|
|
4946
|
-
|
|
4947
|
-
|
|
4948
|
-
class="k-overflow-button"
|
|
4949
|
-
[icon]="'font-family'"
|
|
4950
|
-
[attr.title]="title"
|
|
4951
|
-
[disabled]="disabled"
|
|
5017
|
+
role="menuitem"
|
|
5018
|
+
class="k-item k-menu-item"
|
|
5019
|
+
[class.k-disabled]="disabled"
|
|
4952
5020
|
[tabindex]="tabindex"
|
|
4953
|
-
(click)="openDialog()"
|
|
4954
|
-
|
|
4955
|
-
|
|
4956
|
-
|
|
5021
|
+
(click)="openDialog()">
|
|
5022
|
+
<span
|
|
5023
|
+
class="k-link k-menu-link">
|
|
5024
|
+
<kendo-icon-wrapper name="font-family" [svgIcon]="fontFamilySVGIcon"></kendo-icon-wrapper>
|
|
5025
|
+
<span *ngIf="title" class="k-menu-link-text">{{title}}</span>
|
|
5026
|
+
</span>
|
|
5027
|
+
</div>
|
|
4957
5028
|
</ng-template>
|
|
4958
5029
|
`
|
|
4959
5030
|
}]
|
|
4960
|
-
}], ctorParameters: function () { return [{ type: i1$1.DialogService }, { type: EditorLocalizationService }, { type: ProviderService }, { type: EditorToolsService }]; }, propDecorators: { data: [{
|
|
5031
|
+
}], ctorParameters: function () { return [{ type: i1$1.DialogService }, { type: EditorLocalizationService }, { type: ProviderService }, { type: EditorToolsService }, { type: i0.Renderer2 }]; }, propDecorators: { data: [{
|
|
4961
5032
|
type: Input
|
|
4962
5033
|
}], valueChange: [{
|
|
4963
5034
|
type: Output
|
|
@@ -4978,18 +5049,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
4978
5049
|
args: ['fontFamilyButton', { read: ElementRef }]
|
|
4979
5050
|
}] } });
|
|
4980
5051
|
|
|
4981
|
-
|
|
5052
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
4982
5053
|
/**
|
|
4983
5054
|
* A component which configures an existing ColorPickerComponent as a ToolBar tool.
|
|
4984
5055
|
* To associate a `kendo-toolbar-colorpicker` with an Editor command that changes the
|
|
4985
5056
|
* foreground or the background color of the text, use the `kendoEditorForeColor` or `kendoEditorBackColor` directive.
|
|
4986
5057
|
*/
|
|
4987
5058
|
class EditorColorPickerComponent extends ToolBarToolComponent {
|
|
4988
|
-
constructor(localization, dialogService, ngZone, providerService) {
|
|
5059
|
+
constructor(localization, dialogService, ngZone, providerService, renderer) {
|
|
4989
5060
|
super();
|
|
4990
5061
|
this.localization = localization;
|
|
4991
5062
|
this.dialogService = dialogService;
|
|
4992
5063
|
this.ngZone = ngZone;
|
|
5064
|
+
this.renderer = renderer;
|
|
4993
5065
|
this.tabindex = -1;
|
|
4994
5066
|
/**
|
|
4995
5067
|
* Specifies if the component should be disabled.
|
|
@@ -5085,10 +5157,12 @@ class EditorColorPickerComponent extends ToolBarToolComponent {
|
|
|
5085
5157
|
openDialog() {
|
|
5086
5158
|
const dialogSettings = {
|
|
5087
5159
|
appendTo: this.editor.dialogContainer,
|
|
5088
|
-
content: ColorPickerDialogComponent
|
|
5160
|
+
content: ColorPickerDialogComponent,
|
|
5161
|
+
width: 400
|
|
5089
5162
|
};
|
|
5090
5163
|
this.editor.toolbar.toggle(false);
|
|
5091
5164
|
const dialogContent = this.dialogService.open(dialogSettings).content.instance;
|
|
5165
|
+
this.renderer.addClass(dialogContent.dialog.dialog.instance.wrapper.nativeElement.querySelector('.k-window'), 'k-editor-window');
|
|
5092
5166
|
dialogContent.setData({
|
|
5093
5167
|
editor: this.editor,
|
|
5094
5168
|
value: this.value,
|
|
@@ -5096,6 +5170,7 @@ class EditorColorPickerComponent extends ToolBarToolComponent {
|
|
|
5096
5170
|
editorCommand: this.editorCommand,
|
|
5097
5171
|
paletteSettings: this.paletteSettings,
|
|
5098
5172
|
icon: this.icon,
|
|
5173
|
+
svgIcon: this.svgIcon,
|
|
5099
5174
|
views: this.views
|
|
5100
5175
|
});
|
|
5101
5176
|
}
|
|
@@ -5109,12 +5184,13 @@ class EditorColorPickerComponent extends ToolBarToolComponent {
|
|
|
5109
5184
|
* @hidden
|
|
5110
5185
|
*/
|
|
5111
5186
|
focus() {
|
|
5187
|
+
var _a, _b;
|
|
5112
5188
|
this.tabindex = 0;
|
|
5113
5189
|
if (this.overflows) {
|
|
5114
|
-
this.colorPickerButton.nativeElement.focus();
|
|
5190
|
+
(_a = this.colorPickerButton) === null || _a === void 0 ? void 0 : _a.nativeElement.focus();
|
|
5115
5191
|
}
|
|
5116
5192
|
else {
|
|
5117
|
-
!this.colorPicker.isOpen && this.colorPicker.focus();
|
|
5193
|
+
!this.colorPicker.isOpen && ((_b = this.colorPicker) === null || _b === void 0 ? void 0 : _b.focus());
|
|
5118
5194
|
}
|
|
5119
5195
|
}
|
|
5120
5196
|
/**
|
|
@@ -5125,13 +5201,14 @@ class EditorColorPickerComponent extends ToolBarToolComponent {
|
|
|
5125
5201
|
return false;
|
|
5126
5202
|
}
|
|
5127
5203
|
}
|
|
5128
|
-
EditorColorPickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EditorColorPickerComponent, deps: [{ token: EditorLocalizationService }, { token: i1$1.DialogService }, { token: i0.NgZone }, { token: ProviderService }], target: i0.ɵɵFactoryTarget.Component });
|
|
5129
|
-
EditorColorPickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: EditorColorPickerComponent, selector: "kendo-toolbar-colorpicker", inputs: { value: "value", icon: "icon", 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: `
|
|
5204
|
+
EditorColorPickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EditorColorPickerComponent, deps: [{ token: EditorLocalizationService }, { token: i1$1.DialogService }, { token: i0.NgZone }, { token: ProviderService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
5205
|
+
EditorColorPickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: EditorColorPickerComponent, 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: `
|
|
5130
5206
|
<ng-template #toolbarTemplate>
|
|
5131
5207
|
<kendo-colorpicker
|
|
5132
5208
|
#colorpicker
|
|
5133
5209
|
[attr.title]="title"
|
|
5134
5210
|
[icon]="icon"
|
|
5211
|
+
[svgIcon]="svgIcon"
|
|
5135
5212
|
[views]="views"
|
|
5136
5213
|
[format]="'hex'"
|
|
5137
5214
|
[value]="value"
|
|
@@ -5147,22 +5224,25 @@ EditorColorPickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0
|
|
|
5147
5224
|
</kendo-colorpicker>
|
|
5148
5225
|
</ng-template>
|
|
5149
5226
|
<ng-template #popupTemplate>
|
|
5150
|
-
<
|
|
5227
|
+
<div #colorPickerButton
|
|
5151
5228
|
tabindex="-1"
|
|
5152
|
-
|
|
5153
|
-
|
|
5154
|
-
|
|
5155
|
-
class="k-overflow-button"
|
|
5156
|
-
[icon]="icon"
|
|
5157
|
-
[attr.title]="title"
|
|
5158
|
-
[disabled]="disabled"
|
|
5229
|
+
role="menuitem"
|
|
5230
|
+
class="k-item k-menu-item"
|
|
5231
|
+
[class.k-disabled]="disabled"
|
|
5159
5232
|
[tabindex]="tabindex"
|
|
5160
|
-
(click)="openDialog()"
|
|
5161
|
-
|
|
5162
|
-
|
|
5163
|
-
|
|
5233
|
+
(click)="openDialog()">
|
|
5234
|
+
<span
|
|
5235
|
+
class="k-link k-menu-link">
|
|
5236
|
+
<kendo-icon-wrapper
|
|
5237
|
+
*ngIf="icon"
|
|
5238
|
+
[name]="icon"
|
|
5239
|
+
[svgIcon]="svgIcon"
|
|
5240
|
+
></kendo-icon-wrapper>
|
|
5241
|
+
<span *ngIf="title" class="k-menu-link-text">{{title}}</span>
|
|
5242
|
+
</span>
|
|
5243
|
+
</div>
|
|
5164
5244
|
</ng-template>
|
|
5165
|
-
`, isInline: true, components: [{ type:
|
|
5245
|
+
`, isInline: true, components: [{ type: i4.ColorPickerComponent, selector: "kendo-colorpicker", inputs: ["views", "view", "activeView", "readonly", "disabled", "format", "value", "popupSettings", "paletteSettings", "gradientSettings", "icon", "iconClass", "svgIcon", "clearButton", "tabindex", "preview", "actionsLayout", "size", "rounded", "fillMode"], outputs: ["valueChange", "open", "close", "focus", "blur", "cancel", "activeColorClick", "activeViewChange"], exportAs: ["kendoColorPicker"] }, { type: i6$1.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }], directives: [{ type: i3$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
5166
5246
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EditorColorPickerComponent, decorators: [{
|
|
5167
5247
|
type: Component,
|
|
5168
5248
|
args: [{
|
|
@@ -5174,6 +5254,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
5174
5254
|
#colorpicker
|
|
5175
5255
|
[attr.title]="title"
|
|
5176
5256
|
[icon]="icon"
|
|
5257
|
+
[svgIcon]="svgIcon"
|
|
5177
5258
|
[views]="views"
|
|
5178
5259
|
[format]="'hex'"
|
|
5179
5260
|
[value]="value"
|
|
@@ -5189,27 +5270,32 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
5189
5270
|
</kendo-colorpicker>
|
|
5190
5271
|
</ng-template>
|
|
5191
5272
|
<ng-template #popupTemplate>
|
|
5192
|
-
<
|
|
5273
|
+
<div #colorPickerButton
|
|
5193
5274
|
tabindex="-1"
|
|
5194
|
-
|
|
5195
|
-
|
|
5196
|
-
|
|
5197
|
-
class="k-overflow-button"
|
|
5198
|
-
[icon]="icon"
|
|
5199
|
-
[attr.title]="title"
|
|
5200
|
-
[disabled]="disabled"
|
|
5275
|
+
role="menuitem"
|
|
5276
|
+
class="k-item k-menu-item"
|
|
5277
|
+
[class.k-disabled]="disabled"
|
|
5201
5278
|
[tabindex]="tabindex"
|
|
5202
|
-
(click)="openDialog()"
|
|
5203
|
-
|
|
5204
|
-
|
|
5205
|
-
|
|
5279
|
+
(click)="openDialog()">
|
|
5280
|
+
<span
|
|
5281
|
+
class="k-link k-menu-link">
|
|
5282
|
+
<kendo-icon-wrapper
|
|
5283
|
+
*ngIf="icon"
|
|
5284
|
+
[name]="icon"
|
|
5285
|
+
[svgIcon]="svgIcon"
|
|
5286
|
+
></kendo-icon-wrapper>
|
|
5287
|
+
<span *ngIf="title" class="k-menu-link-text">{{title}}</span>
|
|
5288
|
+
</span>
|
|
5289
|
+
</div>
|
|
5206
5290
|
</ng-template>
|
|
5207
5291
|
`
|
|
5208
5292
|
}]
|
|
5209
|
-
}], ctorParameters: function () { return [{ type: EditorLocalizationService }, { type: i1$1.DialogService }, { type: i0.NgZone }, { type: ProviderService }]; }, propDecorators: { value: [{
|
|
5293
|
+
}], ctorParameters: function () { return [{ type: EditorLocalizationService }, { type: i1$1.DialogService }, { type: i0.NgZone }, { type: ProviderService }, { type: i0.Renderer2 }]; }, propDecorators: { value: [{
|
|
5210
5294
|
type: Input
|
|
5211
5295
|
}], icon: [{
|
|
5212
5296
|
type: Input
|
|
5297
|
+
}], svgIcon: [{
|
|
5298
|
+
type: Input
|
|
5213
5299
|
}], paletteSettings: [{
|
|
5214
5300
|
type: Input
|
|
5215
5301
|
}], editorCommand: [{
|
|
@@ -5228,13 +5314,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
5228
5314
|
args: ['popupTemplate', { static: true }]
|
|
5229
5315
|
}], element: [{
|
|
5230
5316
|
type: ViewChild,
|
|
5231
|
-
args: ['colorpicker', { read: ElementRef
|
|
5317
|
+
args: ['colorpicker', { read: ElementRef }]
|
|
5232
5318
|
}], colorPicker: [{
|
|
5233
5319
|
type: ViewChild,
|
|
5234
|
-
args: ['colorpicker', { read: ColorPickerComponent
|
|
5320
|
+
args: ['colorpicker', { read: ColorPickerComponent }]
|
|
5235
5321
|
}], colorPickerButton: [{
|
|
5236
5322
|
type: ViewChild,
|
|
5237
|
-
args: ['colorPickerButton', { read: ElementRef
|
|
5323
|
+
args: ['colorPickerButton', { read: ElementRef }]
|
|
5238
5324
|
}] } });
|
|
5239
5325
|
|
|
5240
5326
|
const popupWrapperWidth = '190px';
|
|
@@ -5248,11 +5334,13 @@ const popupWrapperHeight = '164px'; // Set to '192px' when TableWizard button is
|
|
|
5248
5334
|
* ```
|
|
5249
5335
|
*/
|
|
5250
5336
|
class EditorInsertTableButtonComponent extends ToolBarToolComponent {
|
|
5251
|
-
constructor(localization, popupService, dialogService, providerService) {
|
|
5337
|
+
constructor(localization, popupService, dialogService, providerService, renderer) {
|
|
5252
5338
|
super();
|
|
5253
5339
|
this.localization = localization;
|
|
5254
5340
|
this.popupService = popupService;
|
|
5255
5341
|
this.dialogService = dialogService;
|
|
5342
|
+
this.renderer = renderer;
|
|
5343
|
+
this.addTableSVGIcon = tableAddIcon;
|
|
5256
5344
|
this.open = false;
|
|
5257
5345
|
this.buttonBlurred = new EventEmitter();
|
|
5258
5346
|
this.cellClicked = new EventEmitter();
|
|
@@ -5294,10 +5382,12 @@ class EditorInsertTableButtonComponent extends ToolBarToolComponent {
|
|
|
5294
5382
|
openDialog() {
|
|
5295
5383
|
const dialogSettings = {
|
|
5296
5384
|
appendTo: this.editor.dialogContainer,
|
|
5297
|
-
content: InsertTableDialogComponent
|
|
5385
|
+
content: InsertTableDialogComponent,
|
|
5386
|
+
width: 400
|
|
5298
5387
|
};
|
|
5299
5388
|
this.editor.toolbar.toggle(false);
|
|
5300
5389
|
const dialogContent = this.dialogService.open(dialogSettings).content.instance;
|
|
5390
|
+
this.renderer.addClass(dialogContent.dialog.dialog.instance.wrapper.nativeElement.querySelector('.k-window'), 'k-editor-window');
|
|
5301
5391
|
dialogContent.setData({
|
|
5302
5392
|
editor: this.editor
|
|
5303
5393
|
});
|
|
@@ -5375,7 +5465,7 @@ class EditorInsertTableButtonComponent extends ToolBarToolComponent {
|
|
|
5375
5465
|
return (this.overflows ? this.overflowElement : this.element).nativeElement;
|
|
5376
5466
|
}
|
|
5377
5467
|
}
|
|
5378
|
-
EditorInsertTableButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EditorInsertTableButtonComponent, deps: [{ token: EditorLocalizationService }, { token: i2.PopupService }, { token: i1$1.DialogService }, { token: ProviderService }], target: i0.ɵɵFactoryTarget.Component });
|
|
5468
|
+
EditorInsertTableButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EditorInsertTableButtonComponent, deps: [{ token: EditorLocalizationService }, { token: i2.PopupService }, { token: i1$1.DialogService }, { token: ProviderService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
5379
5469
|
EditorInsertTableButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: EditorInsertTableButtonComponent, 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: `
|
|
5380
5470
|
<ng-template #toolbarTemplate>
|
|
5381
5471
|
<button
|
|
@@ -5385,27 +5475,30 @@ EditorInsertTableButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion:
|
|
|
5385
5475
|
[attr.title]="title"
|
|
5386
5476
|
[attr.tabindex]="tabIndex"
|
|
5387
5477
|
icon="table-add"
|
|
5478
|
+
[svgIcon]="addTableSVGIcon"
|
|
5388
5479
|
[disabled]="disabled"
|
|
5389
5480
|
(click)="toggle()"
|
|
5390
5481
|
(blur)="onBlur()"
|
|
5391
5482
|
></button>
|
|
5392
5483
|
</ng-template>
|
|
5393
5484
|
<ng-template #popupTemplate>
|
|
5394
|
-
<
|
|
5395
|
-
|
|
5396
|
-
|
|
5397
|
-
[
|
|
5485
|
+
<div #overflowElement
|
|
5486
|
+
role="menuitem"
|
|
5487
|
+
class="k-item k-menu-item"
|
|
5488
|
+
[class.k-disabled]="disabled"
|
|
5398
5489
|
[attr.tabindex]="tabIndex"
|
|
5399
|
-
icon="table-add"
|
|
5400
|
-
[disabled]="disabled"
|
|
5401
5490
|
(click)="openDialog()">
|
|
5402
|
-
|
|
5403
|
-
|
|
5491
|
+
<span
|
|
5492
|
+
class="k-link k-menu-link">
|
|
5493
|
+
<kendo-icon-wrapper name="table-add" [svgIcon]="addTableSVGIcon"></kendo-icon-wrapper>
|
|
5494
|
+
<span *ngIf="title" class="k-menu-link-text">{{title}}</span>
|
|
5495
|
+
</span>
|
|
5496
|
+
</div>
|
|
5404
5497
|
</ng-template>
|
|
5405
5498
|
<ng-template #popupGridTemplate>
|
|
5406
5499
|
<kendo-popup-table-grid (cellClick)="onCellClick($event)" (tableWizardClick)="onTableWizardClick()"></kendo-popup-table-grid>
|
|
5407
5500
|
</ng-template>
|
|
5408
|
-
`, isInline: true, components: [{ type: i4.Button, selector: "button[kendoButton], span[kendoButton], kendo-button", inputs: ["toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "role", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { type: PopupTableGridComponent, selector: "kendo-popup-table-grid", outputs: ["cellClick", "tableWizardClick"] }] });
|
|
5501
|
+
`, isInline: true, components: [{ type: i4$1.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"] }, { type: i6$1.IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass"], exportAs: ["kendoIconWrapper"] }, { type: PopupTableGridComponent, selector: "kendo-popup-table-grid", outputs: ["cellClick", "tableWizardClick"] }], directives: [{ type: i3$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
5409
5502
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EditorInsertTableButtonComponent, decorators: [{
|
|
5410
5503
|
type: Component,
|
|
5411
5504
|
args: [{
|
|
@@ -5420,29 +5513,32 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
5420
5513
|
[attr.title]="title"
|
|
5421
5514
|
[attr.tabindex]="tabIndex"
|
|
5422
5515
|
icon="table-add"
|
|
5516
|
+
[svgIcon]="addTableSVGIcon"
|
|
5423
5517
|
[disabled]="disabled"
|
|
5424
5518
|
(click)="toggle()"
|
|
5425
5519
|
(blur)="onBlur()"
|
|
5426
5520
|
></button>
|
|
5427
5521
|
</ng-template>
|
|
5428
5522
|
<ng-template #popupTemplate>
|
|
5429
|
-
<
|
|
5430
|
-
|
|
5431
|
-
|
|
5432
|
-
[
|
|
5523
|
+
<div #overflowElement
|
|
5524
|
+
role="menuitem"
|
|
5525
|
+
class="k-item k-menu-item"
|
|
5526
|
+
[class.k-disabled]="disabled"
|
|
5433
5527
|
[attr.tabindex]="tabIndex"
|
|
5434
|
-
icon="table-add"
|
|
5435
|
-
[disabled]="disabled"
|
|
5436
5528
|
(click)="openDialog()">
|
|
5437
|
-
|
|
5438
|
-
|
|
5529
|
+
<span
|
|
5530
|
+
class="k-link k-menu-link">
|
|
5531
|
+
<kendo-icon-wrapper name="table-add" [svgIcon]="addTableSVGIcon"></kendo-icon-wrapper>
|
|
5532
|
+
<span *ngIf="title" class="k-menu-link-text">{{title}}</span>
|
|
5533
|
+
</span>
|
|
5534
|
+
</div>
|
|
5439
5535
|
</ng-template>
|
|
5440
5536
|
<ng-template #popupGridTemplate>
|
|
5441
5537
|
<kendo-popup-table-grid (cellClick)="onCellClick($event)" (tableWizardClick)="onTableWizardClick()"></kendo-popup-table-grid>
|
|
5442
5538
|
</ng-template>
|
|
5443
5539
|
`
|
|
5444
5540
|
}]
|
|
5445
|
-
}], ctorParameters: function () { return [{ type: EditorLocalizationService }, { type: i2.PopupService }, { type: i1$1.DialogService }, { type: ProviderService }]; }, propDecorators: { toolbarTemplate: [{
|
|
5541
|
+
}], ctorParameters: function () { return [{ type: EditorLocalizationService }, { type: i2.PopupService }, { type: i1$1.DialogService }, { type: ProviderService }, { type: i0.Renderer2 }]; }, propDecorators: { toolbarTemplate: [{
|
|
5446
5542
|
type: ViewChild,
|
|
5447
5543
|
args: ['toolbarTemplate', { static: true }]
|
|
5448
5544
|
}], popupTemplate: [{
|
|
@@ -5714,6 +5810,7 @@ class EditorForeColorDirective {
|
|
|
5714
5810
|
constructor(colorPicker) {
|
|
5715
5811
|
this.colorPicker = colorPicker;
|
|
5716
5812
|
this.colorPicker.icon = commandIcons.foreColor;
|
|
5813
|
+
this.colorPicker.svgIcon = commandSVGIcons.foreColor;
|
|
5717
5814
|
this.colorPicker.editorCommand = 'foreColor';
|
|
5718
5815
|
}
|
|
5719
5816
|
}
|
|
@@ -5735,6 +5832,7 @@ class EditorBackColorDirective {
|
|
|
5735
5832
|
constructor(colorPicker) {
|
|
5736
5833
|
this.colorPicker = colorPicker;
|
|
5737
5834
|
this.colorPicker.icon = commandIcons.backColor;
|
|
5835
|
+
this.colorPicker.svgIcon = commandSVGIcons.backColor;
|
|
5738
5836
|
this.colorPicker.editorCommand = 'backColor';
|
|
5739
5837
|
}
|
|
5740
5838
|
}
|
|
@@ -6344,8 +6442,11 @@ EditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
|
6344
6442
|
DropDownsModule,
|
|
6345
6443
|
NumericTextBoxModule,
|
|
6346
6444
|
CheckBoxModule,
|
|
6445
|
+
IconsModule,
|
|
6347
6446
|
ToolBarModule,
|
|
6348
|
-
TextBoxModule
|
|
6447
|
+
TextBoxModule,
|
|
6448
|
+
TextAreaModule,
|
|
6449
|
+
LabelModule], exports: [EditorComponent,
|
|
6349
6450
|
//alignment
|
|
6350
6451
|
EditorAlignLeftButtonDirective,
|
|
6351
6452
|
EditorAlignCenterButtonDirective,
|
|
@@ -6424,8 +6525,11 @@ EditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
|
6424
6525
|
DropDownsModule,
|
|
6425
6526
|
NumericTextBoxModule,
|
|
6426
6527
|
CheckBoxModule,
|
|
6528
|
+
IconsModule,
|
|
6427
6529
|
ToolBarModule,
|
|
6428
|
-
TextBoxModule
|
|
6530
|
+
TextBoxModule,
|
|
6531
|
+
TextAreaModule,
|
|
6532
|
+
LabelModule
|
|
6429
6533
|
], ToolBarModule,
|
|
6430
6534
|
ButtonModule,
|
|
6431
6535
|
FormsModule,
|
|
@@ -6465,8 +6569,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
6465
6569
|
DropDownsModule,
|
|
6466
6570
|
NumericTextBoxModule,
|
|
6467
6571
|
CheckBoxModule,
|
|
6572
|
+
IconsModule,
|
|
6468
6573
|
ToolBarModule,
|
|
6469
|
-
TextBoxModule
|
|
6574
|
+
TextBoxModule,
|
|
6575
|
+
TextAreaModule,
|
|
6576
|
+
LabelModule
|
|
6470
6577
|
]
|
|
6471
6578
|
}]
|
|
6472
6579
|
}] });
|