@progress/kendo-angular-editor 11.0.0-develop.112 → 11.0.0-develop.114
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/config/command-icons.d.ts +4 -0
- package/dialogs/colorpicker-dialog.component.d.ts +2 -0
- package/editor.module.d.ts +4 -3
- package/esm2020/config/command-icons.mjs +45 -0
- package/esm2020/dialogs/colorpicker-dialog.component.mjs +3 -0
- package/esm2020/editor.module.mjs +4 -0
- 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 +20 -11
- package/esm2020/tools/colorpicker/editor-fore-color.directive.mjs +2 -1
- package/esm2020/tools/fontfamily/editor-fontfamily.component.mjs +8 -4
- package/esm2020/tools/fontsize/editor-fontsize.component.mjs +7 -4
- package/esm2020/tools/format/editor-format.component.mjs +7 -4
- package/esm2020/tools/shared/editor-command-base.mjs +20 -13
- package/esm2020/tools/tables/editor-insert-table-button.component.mjs +10 -5
- 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 +120 -42
- package/fesm2020/progress-kendo-angular-editor.mjs +120 -42
- package/package.json +13 -12
- package/schematics/ngAdd/index.js +5 -3
- package/tools/colorpicker/editor-colorpicker.component.d.ts +7 -5
- package/tools/fontfamily/editor-fontfamily.component.d.ts +2 -0
- package/tools/fontsize/editor-fontsize.component.d.ts +2 -0
- package/tools/format/editor-format.component.d.ts +2 -0
- package/tools/tables/editor-insert-table-button.component.d.ts +2 -0
- package/tools/tables/popup-table-grid.component.d.ts +2 -0
- package/tools/tools.service.d.ts +3 -0
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import { Component, Output, EventEmitter } from '@angular/core';
|
|
6
|
+
import { tableWizardIcon } from '@progress/kendo-svg-icons';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
import * as i1 from "@angular/common";
|
|
8
9
|
/**
|
|
@@ -12,6 +13,7 @@ export class PopupTableGridComponent {
|
|
|
12
13
|
constructor() {
|
|
13
14
|
this.cellClick = new EventEmitter();
|
|
14
15
|
this.tableWizardClick = new EventEmitter();
|
|
16
|
+
this.tableWizardIcon = tableWizardIcon;
|
|
15
17
|
this.state = { rows: -1, cols: -1 };
|
|
16
18
|
this.rows = 6;
|
|
17
19
|
this.cols = 8;
|
|
@@ -57,7 +59,7 @@ PopupTableGridComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
|
|
|
57
59
|
<div class="k-status" unselectable="on">{{ message }}</div>
|
|
58
60
|
<!-- uncomment when TableWizard is completed
|
|
59
61
|
<div class="k-editor-toolbar" unselectable="on">
|
|
60
|
-
<button type="button" kendoButton class="k-tool" [icon]="'table-wizard'" (click)="openTableWizard()" title="Table Wizard">Table Wizard</button>
|
|
62
|
+
<button type="button" kendoButton class="k-tool" [icon]="'table-wizard'" [svgIcon]="tableWizardIcon" (click)="openTableWizard()" title="Table Wizard">Table Wizard</button>
|
|
61
63
|
</div>
|
|
62
64
|
-->
|
|
63
65
|
`, isInline: true, directives: [{ type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
@@ -77,7 +79,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
77
79
|
<div class="k-status" unselectable="on">{{ message }}</div>
|
|
78
80
|
<!-- uncomment when TableWizard is completed
|
|
79
81
|
<div class="k-editor-toolbar" unselectable="on">
|
|
80
|
-
<button type="button" kendoButton class="k-tool" [icon]="'table-wizard'" (click)="openTableWizard()" title="Table Wizard">Table Wizard</button>
|
|
82
|
+
<button type="button" kendoButton class="k-tool" [icon]="'table-wizard'" [svgIcon]="tableWizardIcon" (click)="openTableWizard()" title="Table Wizard">Table Wizard</button>
|
|
81
83
|
</div>
|
|
82
84
|
-->
|
|
83
85
|
`
|
|
@@ -2,19 +2,20 @@
|
|
|
2
2
|
* Copyright © 2023 Progress Software Corporation. All rights reserved.
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { Injectable } from '@angular/core';
|
|
5
|
+
import { Injectable, NgZone } from '@angular/core';
|
|
6
6
|
import { Subject } from 'rxjs';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
/**
|
|
9
9
|
* @hidden
|
|
10
10
|
*/
|
|
11
11
|
export class EditorToolsService {
|
|
12
|
-
constructor() {
|
|
12
|
+
constructor(zone) {
|
|
13
|
+
this.zone = zone;
|
|
13
14
|
this.needsCheck = new Subject();
|
|
14
15
|
}
|
|
15
16
|
}
|
|
16
|
-
EditorToolsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EditorToolsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
17
|
+
EditorToolsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EditorToolsService, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
17
18
|
EditorToolsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EditorToolsService });
|
|
18
19
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EditorToolsService, decorators: [{
|
|
19
20
|
type: Injectable
|
|
20
|
-
}] });
|
|
21
|
+
}], ctorParameters: function () { return [{ type: i0.NgZone }]; } });
|
|
@@ -28,6 +28,9 @@ import * as i3$1 from '@angular/common';
|
|
|
28
28
|
import { CommonModule } from '@angular/common';
|
|
29
29
|
import * as i1$2 from '@progress/kendo-angular-dropdowns';
|
|
30
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';
|
|
31
34
|
import * as i2 from '@progress/kendo-angular-popup';
|
|
32
35
|
|
|
33
36
|
/**
|
|
@@ -37,8 +40,8 @@ const packageMetadata = {
|
|
|
37
40
|
name: '@progress/kendo-angular-editor',
|
|
38
41
|
productName: 'Kendo UI for Angular',
|
|
39
42
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
40
|
-
publishDate:
|
|
41
|
-
version: '',
|
|
43
|
+
publishDate: 1673629315,
|
|
44
|
+
version: '11.0.0-develop.114',
|
|
42
45
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
43
46
|
};
|
|
44
47
|
|
|
@@ -1417,15 +1420,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
1417
1420
|
* @hidden
|
|
1418
1421
|
*/
|
|
1419
1422
|
class EditorToolsService {
|
|
1420
|
-
constructor() {
|
|
1423
|
+
constructor(zone) {
|
|
1424
|
+
this.zone = zone;
|
|
1421
1425
|
this.needsCheck = new Subject();
|
|
1422
1426
|
}
|
|
1423
1427
|
}
|
|
1424
|
-
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 });
|
|
1425
1429
|
EditorToolsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EditorToolsService });
|
|
1426
1430
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EditorToolsService, decorators: [{
|
|
1427
1431
|
type: Injectable
|
|
1428
|
-
}] });
|
|
1432
|
+
}], ctorParameters: function () { return [{ type: i0.NgZone }]; } });
|
|
1429
1433
|
|
|
1430
1434
|
/**
|
|
1431
1435
|
* @hidden
|
|
@@ -1765,6 +1769,7 @@ class EditorFormatComponent extends ToolBarToolComponent {
|
|
|
1765
1769
|
{ text: 'Heading 5', tag: 'h5' },
|
|
1766
1770
|
{ text: 'Heading 6', tag: 'h6' }
|
|
1767
1771
|
];
|
|
1772
|
+
this.applyFormatSVGIcon = applyFormatIcon;
|
|
1768
1773
|
this.editor = providerService.editor;
|
|
1769
1774
|
}
|
|
1770
1775
|
/**
|
|
@@ -1890,12 +1895,12 @@ EditorFormatComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
1890
1895
|
(click)="openDialog()">
|
|
1891
1896
|
<span
|
|
1892
1897
|
class="k-link k-menu-link">
|
|
1893
|
-
<
|
|
1898
|
+
<kendo-icon-wrapper name="apply-format" [svgIcon]="applyFormatSVGIcon"></kendo-icon-wrapper>
|
|
1894
1899
|
<span *ngIf="title" class="k-menu-link-text">{{title}}</span>
|
|
1895
1900
|
</span>
|
|
1896
1901
|
</div>
|
|
1897
1902
|
</ng-template>
|
|
1898
|
-
`, isInline: true, components: [{ type: FormatDropDownListComponent, selector: "kendo-editor-format-dropdownlist", inputs: ["data", "value", "defaultItem", "itemDisabled", "title", "disabled", "tabindex"], outputs: ["valueChange"] }], directives: [{ type: i3$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
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"] }] });
|
|
1899
1904
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EditorFormatComponent, decorators: [{
|
|
1900
1905
|
type: Component,
|
|
1901
1906
|
args: [{
|
|
@@ -1925,7 +1930,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
1925
1930
|
(click)="openDialog()">
|
|
1926
1931
|
<span
|
|
1927
1932
|
class="k-link k-menu-link">
|
|
1928
|
-
<
|
|
1933
|
+
<kendo-icon-wrapper name="apply-format" [svgIcon]="applyFormatSVGIcon"></kendo-icon-wrapper>
|
|
1929
1934
|
<span *ngIf="title" class="k-menu-link-text">{{title}}</span>
|
|
1930
1935
|
</span>
|
|
1931
1936
|
</div>
|
|
@@ -2143,6 +2148,50 @@ const commandIcons = {
|
|
|
2143
2148
|
deleteTable: 'table-delete'
|
|
2144
2149
|
// tableWizard: 'table-wizard'
|
|
2145
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
|
+
};
|
|
2146
2195
|
|
|
2147
2196
|
const MY_TOKEN = new InjectionToken('COMMAND_TOKEN');
|
|
2148
2197
|
/**
|
|
@@ -2155,18 +2204,25 @@ class EditorCommandBaseDirective {
|
|
|
2155
2204
|
this.localization = localization;
|
|
2156
2205
|
this.toolsService = toolsService;
|
|
2157
2206
|
this.editor = providerService.editor;
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
this.button.icon
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
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
|
+
});
|
|
2170
2226
|
});
|
|
2171
2227
|
}
|
|
2172
2228
|
ngOnInit() {
|
|
@@ -3971,6 +4027,7 @@ class ColorPickerDialogComponent extends DialogContentBase {
|
|
|
3971
4027
|
setData(args) {
|
|
3972
4028
|
this.editor = args.editor;
|
|
3973
4029
|
this.value = args.value;
|
|
4030
|
+
this.svgIcon = args.svgIcon;
|
|
3974
4031
|
this.editorCommand = args.editorCommand;
|
|
3975
4032
|
this.paletteSettings = args.paletteSettings;
|
|
3976
4033
|
this.icon = args.icon;
|
|
@@ -3992,6 +4049,7 @@ ColorPickerDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0
|
|
|
3992
4049
|
[format]="'hex'"
|
|
3993
4050
|
[attr.title]="title"
|
|
3994
4051
|
[icon]="icon"
|
|
4052
|
+
[svgIcon]="svgIcon"
|
|
3995
4053
|
[(value)]="value"
|
|
3996
4054
|
[paletteSettings]="paletteSettings"
|
|
3997
4055
|
(activeColorClick)="handleActiveColorClick($event)"
|
|
@@ -4018,6 +4076,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
4018
4076
|
[format]="'hex'"
|
|
4019
4077
|
[attr.title]="title"
|
|
4020
4078
|
[icon]="icon"
|
|
4079
|
+
[svgIcon]="svgIcon"
|
|
4021
4080
|
[(value)]="value"
|
|
4022
4081
|
[paletteSettings]="paletteSettings"
|
|
4023
4082
|
(activeColorClick)="handleActiveColorClick($event)"
|
|
@@ -4224,6 +4283,7 @@ class PopupTableGridComponent {
|
|
|
4224
4283
|
constructor() {
|
|
4225
4284
|
this.cellClick = new EventEmitter();
|
|
4226
4285
|
this.tableWizardClick = new EventEmitter();
|
|
4286
|
+
this.tableWizardIcon = tableWizardIcon;
|
|
4227
4287
|
this.state = { rows: -1, cols: -1 };
|
|
4228
4288
|
this.rows = 6;
|
|
4229
4289
|
this.cols = 8;
|
|
@@ -4269,7 +4329,7 @@ PopupTableGridComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
|
|
|
4269
4329
|
<div class="k-status" unselectable="on">{{ message }}</div>
|
|
4270
4330
|
<!-- uncomment when TableWizard is completed
|
|
4271
4331
|
<div class="k-editor-toolbar" unselectable="on">
|
|
4272
|
-
<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>
|
|
4273
4333
|
</div>
|
|
4274
4334
|
-->
|
|
4275
4335
|
`, isInline: true, directives: [{ type: i3$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
@@ -4289,7 +4349,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
4289
4349
|
<div class="k-status" unselectable="on">{{ message }}</div>
|
|
4290
4350
|
<!-- uncomment when TableWizard is completed
|
|
4291
4351
|
<div class="k-editor-toolbar" unselectable="on">
|
|
4292
|
-
<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>
|
|
4293
4353
|
</div>
|
|
4294
4354
|
-->
|
|
4295
4355
|
`
|
|
@@ -4551,6 +4611,7 @@ class EditorFontSizeComponent extends ToolBarToolComponent {
|
|
|
4551
4611
|
* Fires when the user updates the value of the drop-down list.
|
|
4552
4612
|
*/
|
|
4553
4613
|
this.valueChange = new EventEmitter();
|
|
4614
|
+
this.fontSizeSVGIcon = fontSizeIcon;
|
|
4554
4615
|
this._data = [
|
|
4555
4616
|
{ text: '8px', size: '8px' },
|
|
4556
4617
|
{ text: '10px', size: '10px' },
|
|
@@ -4696,12 +4757,12 @@ EditorFontSizeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0"
|
|
|
4696
4757
|
(click)="openDialog()">
|
|
4697
4758
|
<span
|
|
4698
4759
|
class="k-link k-menu-link">
|
|
4699
|
-
<
|
|
4760
|
+
<kendo-icon-wrapper name="font-size" [svgIcon]="fontSizeSVGIcon"></kendo-icon-wrapper>
|
|
4700
4761
|
<span *ngIf="title" class="k-menu-link-text">{{title}}</span>
|
|
4701
4762
|
</span>
|
|
4702
4763
|
</div>
|
|
4703
4764
|
</ng-template>
|
|
4704
|
-
`, isInline: true, components: [{ type: FontSizeDropDownListComponent, selector: "kendo-editor-fontsize-dropdownlist", inputs: ["data", "value", "defaultItem", "itemDisabled", "title", "disabled", "tabindex"], outputs: ["valueChange"] }], directives: [{ type: i3$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
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"] }] });
|
|
4705
4766
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EditorFontSizeComponent, decorators: [{
|
|
4706
4767
|
type: Component,
|
|
4707
4768
|
args: [{
|
|
@@ -4732,7 +4793,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
4732
4793
|
(click)="openDialog()">
|
|
4733
4794
|
<span
|
|
4734
4795
|
class="k-link k-menu-link">
|
|
4735
|
-
<
|
|
4796
|
+
<kendo-icon-wrapper name="font-size" [svgIcon]="fontSizeSVGIcon"></kendo-icon-wrapper>
|
|
4736
4797
|
<span *ngIf="title" class="k-menu-link-text">{{title}}</span>
|
|
4737
4798
|
</span>
|
|
4738
4799
|
</div>
|
|
@@ -4760,6 +4821,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
4760
4821
|
args: ['fontSizeButton', { read: ElementRef }]
|
|
4761
4822
|
}] } });
|
|
4762
4823
|
|
|
4824
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
4763
4825
|
/**
|
|
4764
4826
|
* A component which configures an existing `DropDownListComponent` as an Editor tool
|
|
4765
4827
|
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
@@ -4784,6 +4846,7 @@ class EditorFontFamilyComponent extends ToolBarToolComponent {
|
|
|
4784
4846
|
* Fires when the user updates the value of the drop-down list.
|
|
4785
4847
|
*/
|
|
4786
4848
|
this.valueChange = new EventEmitter();
|
|
4849
|
+
this.fontFamilySVGIcon = fontFamilyIcon;
|
|
4787
4850
|
this._data = [
|
|
4788
4851
|
{ text: 'Arial', fontName: 'Arial,"Helvetica Neue",Helvetica,sans-serif' },
|
|
4789
4852
|
{ text: 'Courier New', fontName: '"Courier New",Courier,"Lucida Sans Typewriter","Lucida Typewriter",monospace' },
|
|
@@ -4922,12 +4985,12 @@ EditorFontFamilyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
|
|
|
4922
4985
|
(click)="openDialog()">
|
|
4923
4986
|
<span
|
|
4924
4987
|
class="k-link k-menu-link">
|
|
4925
|
-
<
|
|
4988
|
+
<kendo-icon-wrapper name="font-family" [svgIcon]="fontFamilySVGIcon"></kendo-icon-wrapper>
|
|
4926
4989
|
<span *ngIf="title" class="k-menu-link-text">{{title}}</span>
|
|
4927
4990
|
</span>
|
|
4928
4991
|
</div>
|
|
4929
4992
|
</ng-template>
|
|
4930
|
-
`, isInline: true, components: [{ type: FontFamilyDropDownListComponent, selector: "kendo-editor-fontfamily-dropdownlist", inputs: ["data", "value", "defaultItem", "itemDisabled", "title", "disabled", "tabindex"], outputs: ["valueChange"] }], directives: [{ type: i3$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
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"] }] });
|
|
4931
4994
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EditorFontFamilyComponent, decorators: [{
|
|
4932
4995
|
type: Component,
|
|
4933
4996
|
args: [{
|
|
@@ -4958,7 +5021,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
4958
5021
|
(click)="openDialog()">
|
|
4959
5022
|
<span
|
|
4960
5023
|
class="k-link k-menu-link">
|
|
4961
|
-
<
|
|
5024
|
+
<kendo-icon-wrapper name="font-family" [svgIcon]="fontFamilySVGIcon"></kendo-icon-wrapper>
|
|
4962
5025
|
<span *ngIf="title" class="k-menu-link-text">{{title}}</span>
|
|
4963
5026
|
</span>
|
|
4964
5027
|
</div>
|
|
@@ -4986,7 +5049,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
4986
5049
|
args: ['fontFamilyButton', { read: ElementRef }]
|
|
4987
5050
|
}] } });
|
|
4988
5051
|
|
|
4989
|
-
|
|
5052
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
4990
5053
|
/**
|
|
4991
5054
|
* A component which configures an existing ColorPickerComponent as a ToolBar tool.
|
|
4992
5055
|
* To associate a `kendo-toolbar-colorpicker` with an Editor command that changes the
|
|
@@ -5107,6 +5170,7 @@ class EditorColorPickerComponent extends ToolBarToolComponent {
|
|
|
5107
5170
|
editorCommand: this.editorCommand,
|
|
5108
5171
|
paletteSettings: this.paletteSettings,
|
|
5109
5172
|
icon: this.icon,
|
|
5173
|
+
svgIcon: this.svgIcon,
|
|
5110
5174
|
views: this.views
|
|
5111
5175
|
});
|
|
5112
5176
|
}
|
|
@@ -5136,20 +5200,15 @@ class EditorColorPickerComponent extends ToolBarToolComponent {
|
|
|
5136
5200
|
this.tabindex = -1;
|
|
5137
5201
|
return false;
|
|
5138
5202
|
}
|
|
5139
|
-
/**
|
|
5140
|
-
* @hidden
|
|
5141
|
-
*/
|
|
5142
|
-
getIconClasses() {
|
|
5143
|
-
return `k-icon k-i-${this.icon}`;
|
|
5144
|
-
}
|
|
5145
5203
|
}
|
|
5146
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 });
|
|
5147
|
-
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: `
|
|
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: `
|
|
5148
5206
|
<ng-template #toolbarTemplate>
|
|
5149
5207
|
<kendo-colorpicker
|
|
5150
5208
|
#colorpicker
|
|
5151
5209
|
[attr.title]="title"
|
|
5152
5210
|
[icon]="icon"
|
|
5211
|
+
[svgIcon]="svgIcon"
|
|
5153
5212
|
[views]="views"
|
|
5154
5213
|
[format]="'hex'"
|
|
5155
5214
|
[value]="value"
|
|
@@ -5174,12 +5233,16 @@ EditorColorPickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0
|
|
|
5174
5233
|
(click)="openDialog()">
|
|
5175
5234
|
<span
|
|
5176
5235
|
class="k-link k-menu-link">
|
|
5177
|
-
<
|
|
5236
|
+
<kendo-icon-wrapper
|
|
5237
|
+
*ngIf="icon"
|
|
5238
|
+
[name]="icon"
|
|
5239
|
+
[svgIcon]="svgIcon"
|
|
5240
|
+
></kendo-icon-wrapper>
|
|
5178
5241
|
<span *ngIf="title" class="k-menu-link-text">{{title}}</span>
|
|
5179
5242
|
</span>
|
|
5180
5243
|
</div>
|
|
5181
5244
|
</ng-template>
|
|
5182
|
-
`, 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"] }
|
|
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"] }] });
|
|
5183
5246
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EditorColorPickerComponent, decorators: [{
|
|
5184
5247
|
type: Component,
|
|
5185
5248
|
args: [{
|
|
@@ -5191,6 +5254,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
5191
5254
|
#colorpicker
|
|
5192
5255
|
[attr.title]="title"
|
|
5193
5256
|
[icon]="icon"
|
|
5257
|
+
[svgIcon]="svgIcon"
|
|
5194
5258
|
[views]="views"
|
|
5195
5259
|
[format]="'hex'"
|
|
5196
5260
|
[value]="value"
|
|
@@ -5215,7 +5279,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
5215
5279
|
(click)="openDialog()">
|
|
5216
5280
|
<span
|
|
5217
5281
|
class="k-link k-menu-link">
|
|
5218
|
-
<
|
|
5282
|
+
<kendo-icon-wrapper
|
|
5283
|
+
*ngIf="icon"
|
|
5284
|
+
[name]="icon"
|
|
5285
|
+
[svgIcon]="svgIcon"
|
|
5286
|
+
></kendo-icon-wrapper>
|
|
5219
5287
|
<span *ngIf="title" class="k-menu-link-text">{{title}}</span>
|
|
5220
5288
|
</span>
|
|
5221
5289
|
</div>
|
|
@@ -5226,6 +5294,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
5226
5294
|
type: Input
|
|
5227
5295
|
}], icon: [{
|
|
5228
5296
|
type: Input
|
|
5297
|
+
}], svgIcon: [{
|
|
5298
|
+
type: Input
|
|
5229
5299
|
}], paletteSettings: [{
|
|
5230
5300
|
type: Input
|
|
5231
5301
|
}], editorCommand: [{
|
|
@@ -5270,6 +5340,7 @@ class EditorInsertTableButtonComponent extends ToolBarToolComponent {
|
|
|
5270
5340
|
this.popupService = popupService;
|
|
5271
5341
|
this.dialogService = dialogService;
|
|
5272
5342
|
this.renderer = renderer;
|
|
5343
|
+
this.addTableSVGIcon = tableAddIcon;
|
|
5273
5344
|
this.open = false;
|
|
5274
5345
|
this.buttonBlurred = new EventEmitter();
|
|
5275
5346
|
this.cellClicked = new EventEmitter();
|
|
@@ -5404,6 +5475,7 @@ EditorInsertTableButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion:
|
|
|
5404
5475
|
[attr.title]="title"
|
|
5405
5476
|
[attr.tabindex]="tabIndex"
|
|
5406
5477
|
icon="table-add"
|
|
5478
|
+
[svgIcon]="addTableSVGIcon"
|
|
5407
5479
|
[disabled]="disabled"
|
|
5408
5480
|
(click)="toggle()"
|
|
5409
5481
|
(blur)="onBlur()"
|
|
@@ -5418,7 +5490,7 @@ EditorInsertTableButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion:
|
|
|
5418
5490
|
(click)="openDialog()">
|
|
5419
5491
|
<span
|
|
5420
5492
|
class="k-link k-menu-link">
|
|
5421
|
-
<
|
|
5493
|
+
<kendo-icon-wrapper name="table-add" [svgIcon]="addTableSVGIcon"></kendo-icon-wrapper>
|
|
5422
5494
|
<span *ngIf="title" class="k-menu-link-text">{{title}}</span>
|
|
5423
5495
|
</span>
|
|
5424
5496
|
</div>
|
|
@@ -5426,7 +5498,7 @@ EditorInsertTableButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion:
|
|
|
5426
5498
|
<ng-template #popupGridTemplate>
|
|
5427
5499
|
<kendo-popup-table-grid (cellClick)="onCellClick($event)" (tableWizardClick)="onTableWizardClick()"></kendo-popup-table-grid>
|
|
5428
5500
|
</ng-template>
|
|
5429
|
-
`, 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: PopupTableGridComponent, selector: "kendo-popup-table-grid", outputs: ["cellClick", "tableWizardClick"] }], directives: [{ type: i3$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
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"] }] });
|
|
5430
5502
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EditorInsertTableButtonComponent, decorators: [{
|
|
5431
5503
|
type: Component,
|
|
5432
5504
|
args: [{
|
|
@@ -5441,6 +5513,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
5441
5513
|
[attr.title]="title"
|
|
5442
5514
|
[attr.tabindex]="tabIndex"
|
|
5443
5515
|
icon="table-add"
|
|
5516
|
+
[svgIcon]="addTableSVGIcon"
|
|
5444
5517
|
[disabled]="disabled"
|
|
5445
5518
|
(click)="toggle()"
|
|
5446
5519
|
(blur)="onBlur()"
|
|
@@ -5455,7 +5528,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
5455
5528
|
(click)="openDialog()">
|
|
5456
5529
|
<span
|
|
5457
5530
|
class="k-link k-menu-link">
|
|
5458
|
-
<
|
|
5531
|
+
<kendo-icon-wrapper name="table-add" [svgIcon]="addTableSVGIcon"></kendo-icon-wrapper>
|
|
5459
5532
|
<span *ngIf="title" class="k-menu-link-text">{{title}}</span>
|
|
5460
5533
|
</span>
|
|
5461
5534
|
</div>
|
|
@@ -5737,6 +5810,7 @@ class EditorForeColorDirective {
|
|
|
5737
5810
|
constructor(colorPicker) {
|
|
5738
5811
|
this.colorPicker = colorPicker;
|
|
5739
5812
|
this.colorPicker.icon = commandIcons.foreColor;
|
|
5813
|
+
this.colorPicker.svgIcon = commandSVGIcons.foreColor;
|
|
5740
5814
|
this.colorPicker.editorCommand = 'foreColor';
|
|
5741
5815
|
}
|
|
5742
5816
|
}
|
|
@@ -5758,6 +5832,7 @@ class EditorBackColorDirective {
|
|
|
5758
5832
|
constructor(colorPicker) {
|
|
5759
5833
|
this.colorPicker = colorPicker;
|
|
5760
5834
|
this.colorPicker.icon = commandIcons.backColor;
|
|
5835
|
+
this.colorPicker.svgIcon = commandSVGIcons.backColor;
|
|
5761
5836
|
this.colorPicker.editorCommand = 'backColor';
|
|
5762
5837
|
}
|
|
5763
5838
|
}
|
|
@@ -6367,6 +6442,7 @@ EditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
|
6367
6442
|
DropDownsModule,
|
|
6368
6443
|
NumericTextBoxModule,
|
|
6369
6444
|
CheckBoxModule,
|
|
6445
|
+
IconsModule,
|
|
6370
6446
|
ToolBarModule,
|
|
6371
6447
|
TextBoxModule,
|
|
6372
6448
|
TextAreaModule,
|
|
@@ -6449,6 +6525,7 @@ EditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
|
6449
6525
|
DropDownsModule,
|
|
6450
6526
|
NumericTextBoxModule,
|
|
6451
6527
|
CheckBoxModule,
|
|
6528
|
+
IconsModule,
|
|
6452
6529
|
ToolBarModule,
|
|
6453
6530
|
TextBoxModule,
|
|
6454
6531
|
TextAreaModule,
|
|
@@ -6492,6 +6569,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
6492
6569
|
DropDownsModule,
|
|
6493
6570
|
NumericTextBoxModule,
|
|
6494
6571
|
CheckBoxModule,
|
|
6572
|
+
IconsModule,
|
|
6495
6573
|
ToolBarModule,
|
|
6496
6574
|
TextBoxModule,
|
|
6497
6575
|
TextAreaModule,
|