@progress/kendo-angular-editor 4.0.0-next.202204121114 → 4.1.0-dev.202205251353
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/bundles/kendo-angular-editor.umd.js +1 -1
- package/common/font-size-item.interface.d.ts +2 -2
- package/common/styles.d.ts +1 -1
- package/editor.component.d.ts +1 -0
- package/esm2015/common/styles.js +76 -50
- package/esm2015/config/commands.js +1 -1
- package/esm2015/editor.component.js +20 -10
- package/esm2015/package-metadata.js +1 -1
- package/esm2015/tools/fontsize/editor-fontsize.component.js +20 -10
- package/fesm2015/kendo-angular-editor.js +112 -66
- package/main.d.ts +1 -1
- package/package.json +17 -19
- package/schematics/ngAdd/index.js +2 -2
- package/tools/fontsize/editor-fontsize.component.d.ts +1 -0
|
@@ -11,7 +11,7 @@ import { take, map, filter as filter$1, concatMap, takeUntil } from 'rxjs/operat
|
|
|
11
11
|
import * as i1$3 from '@progress/kendo-angular-toolbar';
|
|
12
12
|
import { ToolBarToolComponent, ToolBarComponent, ToolBarModule } from '@progress/kendo-angular-toolbar';
|
|
13
13
|
import { isDocumentAvailable, guid, hasObservers, KendoInput, Keys } from '@progress/kendo-angular-common';
|
|
14
|
-
import { marks as marks$1, nodes as nodes$1, Schema, createTable, insertNode, alignBlocks, alignRemoveRules, expandToWordWrap, toggleInlineFormat, bold, cleanFormatting, applyLink, applyInlineStyle, insertText, italic, strikethrough, subscript, superscript, underline, removeLink, link, selectAll, isAligned, alignCenterRules, alignJustifyRules, alignLeftRules, alignRightRules, formatBlockElements, getHtml, indent, insertImage, toggleOrderedList, toggleUnorderedList, outdent, redo, setHtml, undo, blockquote, addColumnBefore, addColumnAfter, addRowBefore, addRowAfter, deleteRow, deleteColumn, mergeCells, splitCell, deleteTable, hasMark, activeNode, canIndentAsListItem, canBeIndented, indentRules, hasNode, canOutdentAsListItem, outdentRules, isIndented, getActiveMarks, expandSelection, getSelectionText as getSelectionText$1, getNodeFromSelection, getMark, removeComments, sanitize, removeAttribute, sanitizeStyleAttr, sanitizeClassAttr, pasteCleanup, parseContent, AllSelection, TextSelection, Plugin, PluginKey, history, keymap, buildListKeymap, buildKeymap, baseKeymap, gapCursor, imageResizing, tableEditing, caretColor, placeholder, EditorState, EditorView } from '@progress/kendo-editor-common';
|
|
14
|
+
import { marks as marks$1, nodes as nodes$1, Schema, createTable, insertNode, alignBlocks, alignRemoveRules, expandToWordWrap, toggleInlineFormat, bold, cleanFormatting, applyLink, applyInlineStyle, insertText, italic, strikethrough, subscript, superscript, underline, removeLink, link, selectAll, isAligned, alignCenterRules, alignJustifyRules, alignLeftRules, alignRightRules, formatBlockElements, getHtml, indent, insertImage, toggleOrderedList, toggleUnorderedList, outdent, redo, setHtml, undo, blockquote, addColumnBefore, addColumnAfter, addRowBefore, addRowAfter, deleteRow, deleteColumn, mergeCells, splitCell, deleteTable, hasMark, activeNode, canIndentAsListItem, canBeIndented, indentRules, hasNode, canOutdentAsListItem, outdentRules, isIndented, getActiveMarks, expandSelection, getSelectionText as getSelectionText$1, getNodeFromSelection, getMark, removeComments, sanitize, removeAttribute, sanitizeStyleAttr, sanitizeClassAttr, pasteCleanup, parseContent, AllSelection, TextSelection, Plugin, PluginKey, history, keymap, buildListKeymap, buildKeymap, baseKeymap, gapCursor, imageResizing, tableResizing, tableEditing, caretColor, placeholder, EditorState, EditorView } from '@progress/kendo-editor-common';
|
|
15
15
|
export { Decoration, DecorationSet, EditorState, EditorView, InputRule, Mark, MarkType, Node, NodeType, Plugin, PluginKey, Schema, Transaction, baseKeymap, dropCursor, gapCursor, history, inputRules, keymap, tableNodes, textblockTypeInputRule, wrappingInputRule } from '@progress/kendo-editor-common';
|
|
16
16
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
17
17
|
import * as i1$1 from '@progress/kendo-angular-dialog';
|
|
@@ -35,7 +35,7 @@ const packageMetadata = {
|
|
|
35
35
|
name: '@progress/kendo-angular-editor',
|
|
36
36
|
productName: 'Kendo UI for Angular',
|
|
37
37
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
38
|
-
publishDate:
|
|
38
|
+
publishDate: 1653486755,
|
|
39
39
|
version: '',
|
|
40
40
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
|
|
41
41
|
};
|
|
@@ -179,7 +179,7 @@ const inlineCommand = {
|
|
|
179
179
|
cleanFormatting: (options) => cleanFormatting(options),
|
|
180
180
|
createLink: attrs => expandToWordWrap(applyLink, { mark: 'link', attrs: attrs.value, applyToWord: attrs.applyToWord }),
|
|
181
181
|
fontFamily: attrs => expandToWordWrap(applyInlineStyle, { style: 'font-family', value: attrs.value, applyToWord: attrs.applyToWord }),
|
|
182
|
-
fontSize: attrs => expandToWordWrap(applyInlineStyle, { style: 'font-size', value: attrs.value
|
|
182
|
+
fontSize: attrs => expandToWordWrap(applyInlineStyle, { style: 'font-size', value: attrs.value, applyToWord: attrs.applyToWord }),
|
|
183
183
|
insertFile: attrs => expandToWordWrap(applyLink, { mark: 'link', attrs: attrs, applyToWord: attrs.applyToWord }),
|
|
184
184
|
insertText: text => insertText(text),
|
|
185
185
|
italic: (applyToWord) => expandToWordWrap(toggleInlineFormat, Object.assign(Object.assign({}, italic), { applyToWord })),
|
|
@@ -1279,56 +1279,82 @@ const defaultStyle = `
|
|
|
1279
1279
|
* @hidden
|
|
1280
1280
|
*/
|
|
1281
1281
|
const tablesStyles = `
|
|
1282
|
-
.ProseMirror .tableWrapper {
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
}
|
|
1282
|
+
.ProseMirror .tableWrapper {
|
|
1283
|
+
overflow-x: auto;
|
|
1284
|
+
margin: 1em 0;
|
|
1285
|
+
}
|
|
1286
1286
|
|
|
1287
|
-
.ProseMirror table {
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
}
|
|
1287
|
+
.ProseMirror table {
|
|
1288
|
+
margin: 0;
|
|
1289
|
+
border-collapse: collapse;
|
|
1290
|
+
table-layout: fixed;
|
|
1291
|
+
width: 100%;
|
|
1292
|
+
overflow: hidden;
|
|
1293
|
+
}
|
|
1294
1294
|
|
|
1295
|
-
.ProseMirror td, .ProseMirror th {
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
}
|
|
1295
|
+
.ProseMirror td, .ProseMirror th {
|
|
1296
|
+
min-width: 1em;
|
|
1297
|
+
border: 1px solid #ddd;
|
|
1298
|
+
padding: 3px 5px;
|
|
1299
|
+
vertical-align: top;
|
|
1300
|
+
box-sizing: border-box;
|
|
1301
|
+
position: relative;
|
|
1302
|
+
}
|
|
1303
1303
|
|
|
1304
|
-
.ProseMirror th {
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
}
|
|
1304
|
+
.ProseMirror th {
|
|
1305
|
+
font-weight: bold;
|
|
1306
|
+
text-align: left;
|
|
1307
|
+
}
|
|
1308
1308
|
|
|
1309
|
-
.ProseMirror .column-resize-handle {
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
}
|
|
1309
|
+
.ProseMirror .column-resize-handle {
|
|
1310
|
+
position: absolute;
|
|
1311
|
+
right: -2px; top: 0; bottom: 0;
|
|
1312
|
+
width: 4px;
|
|
1313
|
+
z-index: 20;
|
|
1314
|
+
background-color: #adf;
|
|
1315
|
+
pointer-events: none;
|
|
1316
|
+
}
|
|
1317
1317
|
|
|
1318
|
-
.ProseMirror.resize-cursor {
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
}
|
|
1318
|
+
.ProseMirror.resize-cursor {
|
|
1319
|
+
cursor: ew-resize;
|
|
1320
|
+
cursor: col-resize;
|
|
1321
|
+
}
|
|
1322
1322
|
|
|
1323
|
-
/* Give selected cells a blue overlay */
|
|
1324
|
-
.ProseMirror .selectedCell:after {
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
}
|
|
1323
|
+
/* Give selected cells a blue overlay */
|
|
1324
|
+
.ProseMirror .selectedCell:after {
|
|
1325
|
+
z-index: 2;
|
|
1326
|
+
position: absolute;
|
|
1327
|
+
content: "";
|
|
1328
|
+
left: 0; right: 0; top: 0; bottom: 0;
|
|
1329
|
+
background: rgba(200, 200, 255, 0.4);
|
|
1330
|
+
pointer-events: none;
|
|
1331
|
+
}
|
|
1332
|
+
|
|
1333
|
+
/* Resizing */
|
|
1334
|
+
.k-editor-resize-wrap-element {
|
|
1335
|
+
display: inline-block;
|
|
1336
|
+
position: relative;
|
|
1337
|
+
}
|
|
1338
|
+
|
|
1339
|
+
.ProseMirror .row-resize-handle {
|
|
1340
|
+
position: absolute;
|
|
1341
|
+
right: 0; left: 0; bottom: 0;
|
|
1342
|
+
transform: translate(0, 50%);
|
|
1343
|
+
height: 4px;
|
|
1344
|
+
z-index: 20;
|
|
1345
|
+
background-color: #adf;
|
|
1346
|
+
pointer-events: none;
|
|
1347
|
+
}
|
|
1348
|
+
|
|
1349
|
+
.ProseMirror.resize-cursor-vertical {
|
|
1350
|
+
cursor: sn-resize;
|
|
1351
|
+
cursor: row-resize;
|
|
1352
|
+
}
|
|
1353
|
+
|
|
1354
|
+
.k-editor-resize-wrap-element table td p,
|
|
1355
|
+
.k-editor-resize-wrap-element table th p {
|
|
1356
|
+
margin: 0 auto;
|
|
1357
|
+
}
|
|
1332
1358
|
`;
|
|
1333
1359
|
/**
|
|
1334
1360
|
* @hidden
|
|
@@ -2797,7 +2823,7 @@ class EditorComponent {
|
|
|
2797
2823
|
this.onChangeCallback = (value) => {
|
|
2798
2824
|
this.changeValue(value);
|
|
2799
2825
|
};
|
|
2800
|
-
this.onTouchedCallback = (_) => { };
|
|
2826
|
+
this.onTouchedCallback = (_) => { };
|
|
2801
2827
|
this.onPaste = (_view, nativeEvent) => {
|
|
2802
2828
|
this._pasteEvent = nativeEvent;
|
|
2803
2829
|
return false;
|
|
@@ -2978,6 +3004,9 @@ class EditorComponent {
|
|
|
2978
3004
|
get toolbar() {
|
|
2979
3005
|
return this.defaultToolbarComponent || this.userToolBarComponent;
|
|
2980
3006
|
}
|
|
3007
|
+
get toolbarElement() {
|
|
3008
|
+
return this.defaultToolbar || this.userToolBarElement;
|
|
3009
|
+
}
|
|
2981
3010
|
/**
|
|
2982
3011
|
* Returns the ProseMirror [EditorView](https://prosemirror.net/docs/ref/#view.EditorView) object
|
|
2983
3012
|
* that manages the DOM structure that represents an editable document.
|
|
@@ -2998,6 +3027,7 @@ class EditorComponent {
|
|
|
2998
3027
|
this.subs.add(this.toolsService.needsCheck.subscribe(() => this.cdr.markForCheck()));
|
|
2999
3028
|
}
|
|
3000
3029
|
ngAfterViewInit() {
|
|
3030
|
+
var _a;
|
|
3001
3031
|
this.afterViewInit.next();
|
|
3002
3032
|
if (!this.iframe) {
|
|
3003
3033
|
this.contentAreaLoaded.next();
|
|
@@ -3005,6 +3035,13 @@ class EditorComponent {
|
|
|
3005
3035
|
if (this.resizable) {
|
|
3006
3036
|
this.normalizeSize();
|
|
3007
3037
|
}
|
|
3038
|
+
// address edge cases for responsive toolbar tools
|
|
3039
|
+
// calculations - https://github.com/telerik/kendo-angular/issues/3661
|
|
3040
|
+
if ((_a = this.toolbar) === null || _a === void 0 ? void 0 : _a.resizable) {
|
|
3041
|
+
this.ngZone.runOutsideAngular(() => {
|
|
3042
|
+
setTimeout(() => this.toolbar.onResize(), 70);
|
|
3043
|
+
});
|
|
3044
|
+
}
|
|
3008
3045
|
}
|
|
3009
3046
|
ngOnChanges(changes) {
|
|
3010
3047
|
if (changes.value && this.view) {
|
|
@@ -3255,6 +3292,7 @@ class EditorComponent {
|
|
|
3255
3292
|
keymap(baseKeymap),
|
|
3256
3293
|
gapCursor(),
|
|
3257
3294
|
imageResizing(),
|
|
3295
|
+
...tableResizing(),
|
|
3258
3296
|
tableEditing(),
|
|
3259
3297
|
caretColor()
|
|
3260
3298
|
];
|
|
@@ -3336,7 +3374,7 @@ class EditorComponent {
|
|
|
3336
3374
|
}));
|
|
3337
3375
|
this.subs.add(fromEvent(this.viewMountElement, 'keyup')
|
|
3338
3376
|
.pipe(map((e) => e.keyCode), filter$1((code) => code === 121), // F10
|
|
3339
|
-
map(() => this.
|
|
3377
|
+
map(() => this.toolbarElement))
|
|
3340
3378
|
.subscribe((toolbar) => toolbar.nativeElement.focus()));
|
|
3341
3379
|
this.subs.add(fromEvent(this.viewMountElement, 'blur')
|
|
3342
3380
|
.pipe(filter$1((event) => !this.viewMountElement.contains(event.relatedTarget)))
|
|
@@ -3415,7 +3453,7 @@ EditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versio
|
|
|
3415
3453
|
provide: KendoInput,
|
|
3416
3454
|
useExisting: forwardRef(() => EditorComponent)
|
|
3417
3455
|
}
|
|
3418
|
-
], queries: [{ propertyName: "userToolBarComponent", first: true, predicate: ToolBarComponent, descendants: true }, { propertyName: "userToolBarElement", first: true, predicate: ToolBarComponent, descendants: true, read: ElementRef }], viewQueries: [{ propertyName: "dialogContainer", first: true, predicate: ["dialogsContainer"], descendants: true, read: ViewContainerRef
|
|
3456
|
+
], queries: [{ propertyName: "userToolBarComponent", first: true, predicate: ToolBarComponent, descendants: true }, { propertyName: "userToolBarElement", first: true, predicate: ToolBarComponent, descendants: true, read: ElementRef }], viewQueries: [{ propertyName: "dialogContainer", first: true, predicate: ["dialogsContainer"], descendants: true, read: ViewContainerRef }, { propertyName: "container", first: true, predicate: ["content"], descendants: true, read: ViewContainerRef }, { propertyName: "defaultToolbar", first: true, predicate: ["defaultToolbar"], descendants: true, read: ElementRef }, { propertyName: "defaultToolbarComponent", first: true, predicate: ["defaultToolbar"], descendants: true, read: ToolBarComponent }], usesOnChanges: true, ngImport: i0, template: `
|
|
3419
3457
|
<ng-container
|
|
3420
3458
|
kendoEditorLocalizedMessages
|
|
3421
3459
|
i18n-alignCenter="kendo.editor.alignCenter|The title of the tool that aligns text in the center."
|
|
@@ -3526,7 +3564,6 @@ EditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versio
|
|
|
3526
3564
|
deleteTable="Delete table"
|
|
3527
3565
|
>
|
|
3528
3566
|
</ng-container>
|
|
3529
|
-
|
|
3530
3567
|
<ng-content select="kendo-toolbar"></ng-content>
|
|
3531
3568
|
<kendo-toolbar [overflow]="true" [tabindex]="readonly ? -1 : 0" *ngIf="!userToolBarElement" #defaultToolbar>
|
|
3532
3569
|
<kendo-toolbar-buttongroup>
|
|
@@ -3699,7 +3736,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
3699
3736
|
deleteTable="Delete table"
|
|
3700
3737
|
>
|
|
3701
3738
|
</ng-container>
|
|
3702
|
-
|
|
3703
3739
|
<ng-content select="kendo-toolbar"></ng-content>
|
|
3704
3740
|
<kendo-toolbar [overflow]="true" [tabindex]="readonly ? -1 : 0" *ngIf="!userToolBarElement" #defaultToolbar>
|
|
3705
3741
|
<kendo-toolbar-buttongroup>
|
|
@@ -3820,16 +3856,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
|
|
|
3820
3856
|
args: ['style.maxHeight']
|
|
3821
3857
|
}], userToolBarComponent: [{
|
|
3822
3858
|
type: ContentChild,
|
|
3823
|
-
args: [ToolBarComponent
|
|
3859
|
+
args: [ToolBarComponent]
|
|
3824
3860
|
}], userToolBarElement: [{
|
|
3825
3861
|
type: ContentChild,
|
|
3826
|
-
args: [ToolBarComponent, { read: ElementRef
|
|
3862
|
+
args: [ToolBarComponent, { read: ElementRef }]
|
|
3827
3863
|
}], dialogContainer: [{
|
|
3828
3864
|
type: ViewChild,
|
|
3829
|
-
args: ['dialogsContainer', { read: ViewContainerRef
|
|
3865
|
+
args: ['dialogsContainer', { read: ViewContainerRef }]
|
|
3830
3866
|
}], container: [{
|
|
3831
3867
|
type: ViewChild,
|
|
3832
|
-
args: ['content', { read: ViewContainerRef
|
|
3868
|
+
args: ['content', { read: ViewContainerRef }]
|
|
3833
3869
|
}], defaultToolbar: [{
|
|
3834
3870
|
type: ViewChild,
|
|
3835
3871
|
args: ['defaultToolbar', { read: ElementRef, static: false }]
|
|
@@ -4485,21 +4521,31 @@ class EditorFontSizeComponent extends ToolBarToolComponent {
|
|
|
4485
4521
|
*/
|
|
4486
4522
|
this.valueChange = new EventEmitter();
|
|
4487
4523
|
this._data = [
|
|
4488
|
-
{ text: '8px', size:
|
|
4489
|
-
{ text: '10px', size:
|
|
4490
|
-
{ text: '12px', size:
|
|
4491
|
-
{ text: '14px', size:
|
|
4492
|
-
{ text: '18px', size:
|
|
4493
|
-
{ text: '24px', size:
|
|
4494
|
-
{ text: '36px', size:
|
|
4524
|
+
{ text: '8px', size: '8px' },
|
|
4525
|
+
{ text: '10px', size: '10px' },
|
|
4526
|
+
{ text: '12px', size: '12px' },
|
|
4527
|
+
{ text: '14px', size: '14px' },
|
|
4528
|
+
{ text: '18px', size: '18px' },
|
|
4529
|
+
{ text: '24px', size: '24px' },
|
|
4530
|
+
{ text: '36px', size: '36px' }
|
|
4495
4531
|
];
|
|
4496
4532
|
this.editor = providerService.editor;
|
|
4497
4533
|
}
|
|
4498
4534
|
/**
|
|
4499
4535
|
* Overrides the default font size list.
|
|
4536
|
+
* Numeric values are treated as pixels.
|
|
4500
4537
|
*/
|
|
4501
4538
|
set data(sizes) {
|
|
4502
|
-
|
|
4539
|
+
let normalizedSizes;
|
|
4540
|
+
if (sizes) {
|
|
4541
|
+
normalizedSizes = sizes.map(s => {
|
|
4542
|
+
if (typeof s.size === 'number') {
|
|
4543
|
+
return Object.assign(Object.assign({}, s), { size: `${s.size}px` });
|
|
4544
|
+
}
|
|
4545
|
+
return s;
|
|
4546
|
+
});
|
|
4547
|
+
}
|
|
4548
|
+
this._data = normalizedSizes || this._data;
|
|
4503
4549
|
}
|
|
4504
4550
|
get data() {
|
|
4505
4551
|
return this._data;
|
|
@@ -4520,7 +4566,7 @@ class EditorFontSizeComponent extends ToolBarToolComponent {
|
|
|
4520
4566
|
this.subs = this.editor.stateChange.subscribe(({ style }) => {
|
|
4521
4567
|
// remove units(px, em, rem...)
|
|
4522
4568
|
// string#match returns array
|
|
4523
|
-
this.value =
|
|
4569
|
+
this.value = getUniqueStyleValues(style.selected, 'font-size') || null;
|
|
4524
4570
|
this.disabled = style.disabled;
|
|
4525
4571
|
});
|
|
4526
4572
|
}
|
|
@@ -4531,7 +4577,7 @@ class EditorFontSizeComponent extends ToolBarToolComponent {
|
|
|
4531
4577
|
if (isPresent(ev)) {
|
|
4532
4578
|
this.editor.exec('fontSize', ev);
|
|
4533
4579
|
this.editor.view.focus();
|
|
4534
|
-
this.valueChange.emit(this.data.find(d => d.size ===
|
|
4580
|
+
this.valueChange.emit(this.data.find(d => d.size === ev));
|
|
4535
4581
|
}
|
|
4536
4582
|
}
|
|
4537
4583
|
ngOnDestroy() {
|
package/main.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
export { EditorComponent } from './editor.component';
|
|
6
6
|
export { EditorModule } from './editor.module';
|
|
7
7
|
export { schema, Schema } from './config/schema';
|
|
8
|
-
export { EditorState, Plugin, PluginKey, Transaction, EditorView, Decoration, DecorationSet, NodeType, Node, MarkType, Mark, InputRule, inputRules, wrappingInputRule, textblockTypeInputRule, keymap, baseKeymap, history, dropCursor, gapCursor, tableNodes } from '@progress/kendo-editor-common';
|
|
8
|
+
export { EditorState, Plugin, PluginKey, Transaction, EditorView, Decoration, DecorationSet, NodeType, Node, MarkType, Mark, InputRule, inputRules, wrappingInputRule, textblockTypeInputRule, keymap, baseKeymap, history, dropCursor, gapCursor, tableNodes, NodeSpec, MarkSpec } from '@progress/kendo-editor-common';
|
|
9
9
|
export { getSelectionText } from './util';
|
|
10
10
|
export { PluginsFn } from './common/plugins-function';
|
|
11
11
|
export { ApplyToWordOptions } from './common/apply-to-word-options';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-editor",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.1.0-dev.202205251353",
|
|
4
4
|
"description": "Kendo UI Editor for Angular",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -20,24 +20,24 @@
|
|
|
20
20
|
"friendlyName": "Editor"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@progress/kendo-editor-common": "
|
|
23
|
+
"@progress/kendo-editor-common": "1.9.0",
|
|
24
24
|
"@progress/kendo-schematics": "^3.0.0",
|
|
25
25
|
"tslib": "^2.3.1"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
|
-
"@angular/common": "
|
|
29
|
-
"@angular/core": "
|
|
30
|
-
"@angular/forms": "
|
|
31
|
-
"@progress/kendo-angular-buttons": "
|
|
32
|
-
"@progress/kendo-angular-common": "
|
|
33
|
-
"@progress/kendo-angular-dialog": "
|
|
34
|
-
"@progress/kendo-angular-dropdowns": "
|
|
35
|
-
"@progress/kendo-angular-inputs": "
|
|
36
|
-
"@progress/kendo-angular-intl": "
|
|
37
|
-
"@progress/kendo-angular-l10n": "
|
|
38
|
-
"@progress/kendo-angular-layout": "
|
|
39
|
-
"@progress/kendo-angular-popup": "
|
|
40
|
-
"@progress/kendo-angular-toolbar": "
|
|
28
|
+
"@angular/common": "12 - 14",
|
|
29
|
+
"@angular/core": "12 - 14",
|
|
30
|
+
"@angular/forms": "12 - 14",
|
|
31
|
+
"@progress/kendo-angular-buttons": "^8.0.0",
|
|
32
|
+
"@progress/kendo-angular-common": "^3.0.0",
|
|
33
|
+
"@progress/kendo-angular-dialog": "^7.0.0",
|
|
34
|
+
"@progress/kendo-angular-dropdowns": "^7.0.0",
|
|
35
|
+
"@progress/kendo-angular-inputs": "^9.0.0",
|
|
36
|
+
"@progress/kendo-angular-intl": "^4.0.0",
|
|
37
|
+
"@progress/kendo-angular-l10n": "^4.0.0",
|
|
38
|
+
"@progress/kendo-angular-layout": "^7.0.0",
|
|
39
|
+
"@progress/kendo-angular-popup": "^5.0.0",
|
|
40
|
+
"@progress/kendo-angular-toolbar": "^6.0.0",
|
|
41
41
|
"@progress/kendo-drawing": "^1.5.12",
|
|
42
42
|
"@progress/kendo-licensing": "^1.0.2",
|
|
43
43
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
@@ -69,12 +69,10 @@
|
|
|
69
69
|
"release": {
|
|
70
70
|
"debug": false,
|
|
71
71
|
"branchTags": {
|
|
72
|
-
"develop": "dev"
|
|
73
|
-
"ng12-update": "next"
|
|
72
|
+
"develop": "dev"
|
|
74
73
|
},
|
|
75
74
|
"fallbackTags": {
|
|
76
|
-
"dev": "latest"
|
|
77
|
-
"next": "latest"
|
|
75
|
+
"dev": "latest"
|
|
78
76
|
},
|
|
79
77
|
"analyzeCommits": "@telerik/semantic-prerelease/analyzeCommits",
|
|
80
78
|
"generateNotes": "@progress/kendo-angular-tasks/lib/generateNotes",
|
|
@@ -8,9 +8,9 @@ const schematics_1 = require("@angular-devkit/schematics");
|
|
|
8
8
|
function default_1(options) {
|
|
9
9
|
const finalOptions = Object.assign(Object.assign({}, options), { mainNgModule: 'EditorModule', package: 'editor', peerDependencies: {
|
|
10
10
|
// peer dependency of kendo-angular-dropdowns
|
|
11
|
-
'@progress/kendo-angular-treeview': '^
|
|
11
|
+
'@progress/kendo-angular-treeview': '^7.0.0',
|
|
12
12
|
// peer dependency of kendo-angular-layout
|
|
13
|
-
'@progress/kendo-angular-progressbar': '^
|
|
13
|
+
'@progress/kendo-angular-progressbar': '^3.0.0'
|
|
14
14
|
} });
|
|
15
15
|
return schematics_1.externalSchematic('@progress/kendo-schematics', 'ng-add', finalOptions);
|
|
16
16
|
}
|
|
@@ -32,6 +32,7 @@ export declare class EditorFontSizeComponent extends ToolBarToolComponent {
|
|
|
32
32
|
tabindex: number;
|
|
33
33
|
/**
|
|
34
34
|
* Overrides the default font size list.
|
|
35
|
+
* Numeric values are treated as pixels.
|
|
35
36
|
*/
|
|
36
37
|
set data(sizes: FontSizeItem[]);
|
|
37
38
|
get data(): FontSizeItem[];
|