@progress/kendo-angular-editor 17.0.0-develop.39 → 17.0.0-develop.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,11 +6,11 @@ import * as i0 from '@angular/core';
6
6
  import { Injectable, Inject, Optional, Component, Input, ViewChild, InjectionToken, Directive, EventEmitter, Output, forwardRef, ElementRef, isDevMode, ViewContainerRef, HostBinding, ContentChild, NgModule } from '@angular/core';
7
7
  import { NgIf, NgSwitch, NgSwitchCase, NgSwitchDefault, NgStyle, NgFor } from '@angular/common';
8
8
  import * as i3 from '@angular/forms';
9
- import { FormControl, Validators, FormGroup, ReactiveFormsModule, NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
9
+ import { FormControl, Validators, FormGroup, ReactiveFormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';
10
10
  import { Subject, BehaviorSubject, zip, fromEvent, interval } from 'rxjs';
11
11
  import { take, map, filter as filter$1, concatMap, takeUntil } from 'rxjs/operators';
12
12
  import * as i1$2 from '@progress/kendo-angular-toolbar';
13
- import { ToolBarToolComponent, ToolBarComponent, ToolBarButtonGroupComponent, ToolBarButtonComponent, ToolBarModule } from '@progress/kendo-angular-toolbar';
13
+ import { ToolBarToolComponent, ToolBarComponent, ToolBarButtonGroupComponent, ToolBarButtonComponent, KENDO_TOOLBAR } from '@progress/kendo-angular-toolbar';
14
14
  import * as i1$1 from '@progress/kendo-angular-dialog';
15
15
  import { DialogContentBase, DialogTitleBarComponent, DialogActionsComponent, DialogContainerService, DialogService, WindowService, WindowContainerService } from '@progress/kendo-angular-dialog';
16
16
  import { isDocumentAvailable, guid, shouldShowValidationUI, hasObservers, KendoInput, WatermarkOverlayComponent, isPresent as isPresent$1, Keys, ResizeBatchService } from '@progress/kendo-angular-common';
@@ -22,7 +22,7 @@ import { LocalizationService, L10N_PREFIX, RTL, ComponentMessages } from '@progr
22
22
  import { TextAreaComponent, FormFieldComponent, TextBoxComponent, CheckBoxDirective, ColorPickerComponent } from '@progress/kendo-angular-inputs';
23
23
  import { ButtonComponent } from '@progress/kendo-angular-buttons';
24
24
  import { LabelComponent, LabelDirective } from '@progress/kendo-angular-label';
25
- import { alignCenterIcon, alignJustifyIcon, alignLeftIcon, alignRightIcon, dropletIcon, rightDoubleQuotesIcon, boldIcon, clearCssIcon, linkIcon, foregroundColorIcon, indentIcon, fileAddIcon, fileImageIcon, listOrderedIcon, listUnorderedIcon, italicIcon, outdentIcon, printIcon, redoIcon, selectAllIcon, strikethroughIcon, subscriptIcon, supscriptIcon, underlineIcon, undoIcon, unlinkIcon, codeSnippetIcon, tableAddIcon, tableColumnInsertLeftIcon, tableColumnInsertRightIcon, tableRowInsertAboveIcon, tableRowInsertBelowIcon, tableRowDeleteIcon, tableColumnDeleteIcon, cellsMergeIcon, cellSplitHorizontallyIcon, tableDeleteIcon, applyFormatIcon, tableWizardIcon, fontSizeIcon, fontFamilyIcon } from '@progress/kendo-svg-icons';
25
+ import { alignCenterIcon, alignJustifyIcon, alignLeftIcon, alignRightIcon, dropletIcon, rightDoubleQuotesIcon, boldIcon, clearCssIcon, linkIcon, foregroundColorIcon, indentIcon, fileAddIcon, fileImageIcon, listOrderedIcon, listUnorderedIcon, italicIcon, outdentIcon, printIcon, redoIcon, selectAllIcon, strikethroughIcon, subscriptIcon, supscriptIcon, underlineIcon, undoIcon, unlinkIcon, codeSnippetIcon, tableAddIcon, tableColumnInsertLeftIcon, tableColumnInsertRightIcon, tableRowInsertAboveIcon, tableRowInsertBelowIcon, tableRowDeleteIcon, tableColumnDeleteIcon, cellsMergeIcon, cellSplitHorizontallyIcon, tableDeleteIcon, applyFormatIcon, fontSizeIcon, fontFamilyIcon, tableWizardIcon } from '@progress/kendo-svg-icons';
26
26
  import { IconWrapperComponent, IconsService } from '@progress/kendo-angular-icons';
27
27
  import { DropDownListComponent, ItemTemplateDirective } from '@progress/kendo-angular-dropdowns';
28
28
  import * as i2 from '@progress/kendo-angular-popup';
@@ -35,8 +35,8 @@ const packageMetadata = {
35
35
  name: '@progress/kendo-angular-editor',
36
36
  productName: 'Kendo UI for Angular',
37
37
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
38
- publishDate: 1730797303,
39
- version: '17.0.0-develop.39',
38
+ publishDate: 1730799135,
39
+ version: '17.0.0-develop.40',
40
40
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
41
41
  };
42
42
 
@@ -4351,509 +4351,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
4351
4351
  args: ['defaultToolbar', { read: ToolBarComponent, static: false }]
4352
4352
  }] } });
4353
4353
 
4354
- /* eslint-disable @typescript-eslint/no-explicit-any */
4355
- /**
4356
- * @hidden
4357
- */
4358
- class ColorPickerDialogComponent extends DialogContentBase {
4359
- dialog;
4360
- localization;
4361
- editor;
4362
- colorPicker;
4363
- value;
4364
- title;
4365
- editorCommand;
4366
- paletteSettings;
4367
- icon;
4368
- svgIcon;
4369
- view;
4370
- views;
4371
- constructor(dialog, localization) {
4372
- super(dialog);
4373
- this.dialog = dialog;
4374
- this.localization = localization;
4375
- }
4376
- handleActiveColorClick(event) {
4377
- event.preventOpen();
4378
- this.value = event.color;
4379
- }
4380
- handleClearButtonClick() {
4381
- this.editor.exec(this.editorCommand, undefined);
4382
- }
4383
- onCancelAction() {
4384
- this.dialog.close();
4385
- }
4386
- onConfirmAction() {
4387
- if (this.value) {
4388
- this.editor.exec(this.editorCommand, this.value);
4389
- }
4390
- this.dialog.close();
4391
- this.editor.view.focus();
4392
- }
4393
- setData(args) {
4394
- this.editor = args.editor;
4395
- this.value = args.value;
4396
- this.svgIcon = args.svgIcon;
4397
- this.editorCommand = args.editorCommand;
4398
- this.paletteSettings = args.paletteSettings;
4399
- this.icon = args.icon;
4400
- this.views = args.view ? [args.view] : args.views;
4401
- }
4402
- textFor(key) {
4403
- return this.localization.get(key);
4404
- }
4405
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ColorPickerDialogComponent, deps: [{ token: i1$1.DialogRef }, { token: EditorLocalizationService }], target: i0.ɵɵFactoryTarget.Component });
4406
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ColorPickerDialogComponent, isStandalone: true, selector: "ng-component", inputs: { editor: "editor" }, viewQueries: [{ propertyName: "colorPicker", first: true, predicate: ["colorpicker"], descendants: true, read: ColorPickerComponent, static: true }], usesInheritance: true, ngImport: i0, template: `
4407
- <kendo-dialog-titlebar (close)="onCancelAction()">
4408
- {{ textFor(editorCommand) }}
4409
- </kendo-dialog-titlebar>
4410
- <div [style.text-align]="'center'">
4411
- <kendo-colorpicker
4412
- #colorpicker
4413
- [views]="views"
4414
- [format]="'hex'"
4415
- [attr.title]="title"
4416
- [icon]="icon"
4417
- [svgIcon]="svgIcon"
4418
- [(value)]="value"
4419
- [paletteSettings]="paletteSettings"
4420
- (activeColorClick)="handleActiveColorClick($event)"
4421
- (clearButtonClick)="handleClearButtonClick()"
4422
- >
4423
- </kendo-colorpicker>
4424
- </div>
4425
- <kendo-dialog-actions layout="start">
4426
- <button
4427
- kendoButton
4428
- [primary]="true"
4429
- (click)="onConfirmAction()"
4430
- >{{ textFor('dialogApply') }}</button>
4431
- <button
4432
- kendoButton
4433
- (click)="onCancelAction()"
4434
- >{{ textFor('dialogCancel') }}</button>
4435
- </kendo-dialog-actions>
4436
- `, isInline: true, dependencies: [{ kind: "component", type: DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { kind: "component", type: ColorPickerComponent, selector: "kendo-colorpicker", inputs: ["views", "view", "activeView", "readonly", "disabled", "format", "value", "popupSettings", "paletteSettings", "gradientSettings", "icon", "iconClass", "svgIcon", "clearButton", "tabindex", "preview", "actionsLayout", "size", "rounded", "fillMode"], outputs: ["valueChange", "open", "close", "focus", "blur", "cancel", "activeColorClick", "clearButtonClick", "activeViewChange"], exportAs: ["kendoColorPicker"] }, { kind: "component", type: DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
4437
- }
4438
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ColorPickerDialogComponent, decorators: [{
4439
- type: Component,
4440
- args: [{
4441
- template: `
4442
- <kendo-dialog-titlebar (close)="onCancelAction()">
4443
- {{ textFor(editorCommand) }}
4444
- </kendo-dialog-titlebar>
4445
- <div [style.text-align]="'center'">
4446
- <kendo-colorpicker
4447
- #colorpicker
4448
- [views]="views"
4449
- [format]="'hex'"
4450
- [attr.title]="title"
4451
- [icon]="icon"
4452
- [svgIcon]="svgIcon"
4453
- [(value)]="value"
4454
- [paletteSettings]="paletteSettings"
4455
- (activeColorClick)="handleActiveColorClick($event)"
4456
- (clearButtonClick)="handleClearButtonClick()"
4457
- >
4458
- </kendo-colorpicker>
4459
- </div>
4460
- <kendo-dialog-actions layout="start">
4461
- <button
4462
- kendoButton
4463
- [primary]="true"
4464
- (click)="onConfirmAction()"
4465
- >{{ textFor('dialogApply') }}</button>
4466
- <button
4467
- kendoButton
4468
- (click)="onCancelAction()"
4469
- >{{ textFor('dialogCancel') }}</button>
4470
- </kendo-dialog-actions>
4471
- `,
4472
- standalone: true,
4473
- imports: [DialogTitleBarComponent, ColorPickerComponent, DialogActionsComponent, ButtonComponent]
4474
- }]
4475
- }], ctorParameters: function () { return [{ type: i1$1.DialogRef }, { type: EditorLocalizationService }]; }, propDecorators: { editor: [{
4476
- type: Input
4477
- }], colorPicker: [{
4478
- type: ViewChild,
4479
- args: ['colorpicker', { read: ColorPickerComponent, static: true }]
4480
- }] } });
4481
-
4482
- /**
4483
- * @hidden
4484
- */
4485
- class FontFamilyDropDownListComponent {
4486
- data;
4487
- value;
4488
- defaultItem;
4489
- itemDisabled;
4490
- title;
4491
- disabled;
4492
- tabindex;
4493
- valueChange = new EventEmitter();
4494
- element;
4495
- dropDownList;
4496
- onValueChange(tag) {
4497
- this.valueChange.emit(tag);
4498
- }
4499
- focus() {
4500
- this.dropDownList.focus();
4501
- }
4502
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FontFamilyDropDownListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
4503
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: FontFamilyDropDownListComponent, isStandalone: true, selector: "kendo-editor-fontfamily-dropdownlist", inputs: { data: "data", value: "value", defaultItem: "defaultItem", itemDisabled: "itemDisabled", title: "title", disabled: "disabled", tabindex: "tabindex" }, outputs: { valueChange: "valueChange" }, viewQueries: [{ propertyName: "element", first: true, predicate: ["element"], descendants: true, static: true }, { propertyName: "dropDownList", first: true, predicate: ["element"], descendants: true, read: DropDownListComponent, static: true }], ngImport: i0, template: `
4504
- <kendo-dropdownlist
4505
- #element
4506
- kendoEditorDropDownTool
4507
- [defaultItem]="defaultItem"
4508
- [textField]="'text'"
4509
- [valueField]="'fontName'"
4510
- [data]="data"
4511
- [(value)]="value"
4512
- [valuePrimitive]="true"
4513
- [itemDisabled]="itemDisabled"
4514
- [attr.title]="title"
4515
- [disabled]="disabled"
4516
- [tabindex]="tabindex"
4517
- (valueChange)="onValueChange($event)"
4518
- [style.width.em]="13"
4519
- >
4520
- <ng-template kendoDropDownListItemTemplate let-dataItem>
4521
- <span [ngStyle]="{ 'font-family': dataItem.fontName }">
4522
- {{ dataItem.text }}
4523
- </span>
4524
- </ng-template>
4525
- </kendo-dropdownlist>
4526
- `, isInline: true, dependencies: [{ kind: "component", type: DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["customIconClass", "showStickyHeader", "icon", "svgIcon", "loading", "data", "value", "textField", "valueField", "adaptiveMode", "title", "subtitle", "popupSettings", "listHeight", "defaultItem", "disabled", "itemDisabled", "readonly", "filterable", "virtual", "ignoreCase", "delay", "valuePrimitive", "tabindex", "tabIndex", "size", "rounded", "fillMode", "leftRightArrowsNavigation", "id"], outputs: ["valueChange", "filterChange", "selectionChange", "open", "opened", "close", "closed", "focus", "blur"], exportAs: ["kendoDropDownList"] }, { kind: "directive", type: DropDownToolDirective, selector: "[kendoEditorDropDownTool]" }, { kind: "directive", type: ItemTemplateDirective, selector: "[kendoDropDownListItemTemplate],[kendoComboBoxItemTemplate],[kendoAutoCompleteItemTemplate],[kendoMultiSelectItemTemplate]" }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
4527
- }
4528
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FontFamilyDropDownListComponent, decorators: [{
4529
- type: Component,
4530
- args: [{
4531
- selector: 'kendo-editor-fontfamily-dropdownlist',
4532
- template: `
4533
- <kendo-dropdownlist
4534
- #element
4535
- kendoEditorDropDownTool
4536
- [defaultItem]="defaultItem"
4537
- [textField]="'text'"
4538
- [valueField]="'fontName'"
4539
- [data]="data"
4540
- [(value)]="value"
4541
- [valuePrimitive]="true"
4542
- [itemDisabled]="itemDisabled"
4543
- [attr.title]="title"
4544
- [disabled]="disabled"
4545
- [tabindex]="tabindex"
4546
- (valueChange)="onValueChange($event)"
4547
- [style.width.em]="13"
4548
- >
4549
- <ng-template kendoDropDownListItemTemplate let-dataItem>
4550
- <span [ngStyle]="{ 'font-family': dataItem.fontName }">
4551
- {{ dataItem.text }}
4552
- </span>
4553
- </ng-template>
4554
- </kendo-dropdownlist>
4555
- `,
4556
- standalone: true,
4557
- imports: [DropDownListComponent, DropDownToolDirective, ItemTemplateDirective, NgStyle]
4558
- }]
4559
- }], propDecorators: { data: [{
4560
- type: Input
4561
- }], value: [{
4562
- type: Input
4563
- }], defaultItem: [{
4564
- type: Input
4565
- }], itemDisabled: [{
4566
- type: Input
4567
- }], title: [{
4568
- type: Input
4569
- }], disabled: [{
4570
- type: Input
4571
- }], tabindex: [{
4572
- type: Input
4573
- }], valueChange: [{
4574
- type: Output
4575
- }], element: [{
4576
- type: ViewChild,
4577
- args: ['element', { static: true }]
4578
- }], dropDownList: [{
4579
- type: ViewChild,
4580
- args: ['element', { read: DropDownListComponent, static: true }]
4581
- }] } });
4582
-
4583
- /**
4584
- * @hidden
4585
- */
4586
- class FontFamilyDialogComponent extends DialogContentBase {
4587
- dialog;
4588
- localization;
4589
- editor;
4590
- fontFamilyDropDownList;
4591
- data = [];
4592
- defaultItem;
4593
- value;
4594
- itemDisabled;
4595
- constructor(dialog, localization) {
4596
- super(dialog);
4597
- this.dialog = dialog;
4598
- this.localization = localization;
4599
- }
4600
- onCancelAction() {
4601
- this.dialog.close();
4602
- }
4603
- onConfirmAction() {
4604
- if (this.value) {
4605
- this.editor.exec('fontFamily', this.value);
4606
- }
4607
- this.dialog.close();
4608
- }
4609
- setData(args) {
4610
- this.editor = args.editor;
4611
- this.data = args.data;
4612
- this.defaultItem = args.defaultItem;
4613
- this.value = args.value;
4614
- this.itemDisabled = args.itemDisabled;
4615
- }
4616
- textFor(key) {
4617
- return this.localization.get(key);
4618
- }
4619
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FontFamilyDialogComponent, deps: [{ token: i1$1.DialogRef }, { token: EditorLocalizationService }], target: i0.ɵɵFactoryTarget.Component });
4620
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: FontFamilyDialogComponent, isStandalone: true, selector: "ng-component", inputs: { editor: "editor" }, viewQueries: [{ propertyName: "fontFamilyDropDownList", first: true, predicate: ["fontFamilyDropDownList"], descendants: true, read: FontFamilyDropDownListComponent, static: true }], usesInheritance: true, ngImport: i0, template: `
4621
- <kendo-dialog-titlebar (close)="onCancelAction()">
4622
- {{ textFor('fontFamily') }}
4623
- </kendo-dialog-titlebar>
4624
- <div [style.text-align]="'center'">
4625
- <kendo-editor-fontfamily-dropdownlist
4626
- #fontFamilyDropDownList
4627
- [defaultItem]="defaultItem"
4628
- [data]="data"
4629
- [(value)]="value"
4630
- [itemDisabled]="itemDisabled"
4631
- >
4632
- </kendo-editor-fontfamily-dropdownlist>
4633
- </div>
4634
- <kendo-dialog-actions layout="start">
4635
- <button
4636
- kendoButton
4637
- [primary]="true"
4638
- (click)="onConfirmAction()"
4639
- >{{ textFor('dialogApply') }}</button>
4640
- <button
4641
- kendoButton
4642
- (click)="onCancelAction()"
4643
- >{{ textFor('dialogCancel') }}</button>
4644
- </kendo-dialog-actions>
4645
- `, isInline: true, dependencies: [{ kind: "component", type: DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { kind: "component", type: FontFamilyDropDownListComponent, selector: "kendo-editor-fontfamily-dropdownlist", inputs: ["data", "value", "defaultItem", "itemDisabled", "title", "disabled", "tabindex"], outputs: ["valueChange"] }, { kind: "component", type: DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
4646
- }
4647
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FontFamilyDialogComponent, decorators: [{
4648
- type: Component,
4649
- args: [{
4650
- template: `
4651
- <kendo-dialog-titlebar (close)="onCancelAction()">
4652
- {{ textFor('fontFamily') }}
4653
- </kendo-dialog-titlebar>
4654
- <div [style.text-align]="'center'">
4655
- <kendo-editor-fontfamily-dropdownlist
4656
- #fontFamilyDropDownList
4657
- [defaultItem]="defaultItem"
4658
- [data]="data"
4659
- [(value)]="value"
4660
- [itemDisabled]="itemDisabled"
4661
- >
4662
- </kendo-editor-fontfamily-dropdownlist>
4663
- </div>
4664
- <kendo-dialog-actions layout="start">
4665
- <button
4666
- kendoButton
4667
- [primary]="true"
4668
- (click)="onConfirmAction()"
4669
- >{{ textFor('dialogApply') }}</button>
4670
- <button
4671
- kendoButton
4672
- (click)="onCancelAction()"
4673
- >{{ textFor('dialogCancel') }}</button>
4674
- </kendo-dialog-actions>
4675
- `,
4676
- standalone: true,
4677
- imports: [DialogTitleBarComponent, FontFamilyDropDownListComponent, DialogActionsComponent, ButtonComponent]
4678
- }]
4679
- }], ctorParameters: function () { return [{ type: i1$1.DialogRef }, { type: EditorLocalizationService }]; }, propDecorators: { editor: [{
4680
- type: Input
4681
- }], fontFamilyDropDownList: [{
4682
- type: ViewChild,
4683
- args: ['fontFamilyDropDownList', { read: FontFamilyDropDownListComponent, static: true }]
4684
- }] } });
4685
-
4686
- /**
4687
- * @hidden
4688
- */
4689
- class PopupTableGridComponent {
4690
- localization;
4691
- cellClick = new EventEmitter();
4692
- tableWizardClick = new EventEmitter();
4693
- tableWizardIcon = tableWizardIcon;
4694
- state = { rows: -1, cols: -1 };
4695
- rows = 6;
4696
- cols = 8;
4697
- constructor(localization) {
4698
- this.localization = localization;
4699
- }
4700
- get message() {
4701
- const { rows, cols } = this.state;
4702
- const localizationMsg = this.localization.get('insertTableHint') || '';
4703
- const rowReplacement = rows > -1 ? (rows + 1).toString() : '';
4704
- const colReplacement = cols > -1 ? (cols + 1).toString() : '';
4705
- const xReplacement = cols > -1 ? 'x' : '';
4706
- return replaceMessagePlaceholder(localizationMsg, [
4707
- { placeholder: 'rows', value: rowReplacement },
4708
- { placeholder: 'columns', value: colReplacement },
4709
- { placeholder: 'x', value: xReplacement }
4710
- ]);
4711
- }
4712
- get cells() {
4713
- return Array.from(Array(this.rows * this.cols).keys());
4714
- }
4715
- selected(index) {
4716
- const { rows, cols } = this.state;
4717
- const cellRow = Math.floor(index / this.cols);
4718
- const cellCol = index % this.cols;
4719
- return cellRow <= rows && cellCol <= cols;
4720
- }
4721
- setState(index) {
4722
- const rows = Math.floor(index / this.cols);
4723
- const cols = index % this.cols;
4724
- this.state = { rows: rows, cols: cols };
4725
- }
4726
- resetState() {
4727
- this.state = { rows: -1, cols: -1 };
4728
- }
4729
- insertTable() {
4730
- this.cellClick.emit(this.state);
4731
- }
4732
- openTableWizard() {
4733
- this.tableWizardClick.emit();
4734
- }
4735
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PopupTableGridComponent, deps: [{ token: EditorLocalizationService }], target: i0.ɵɵFactoryTarget.Component });
4736
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: PopupTableGridComponent, isStandalone: true, selector: "kendo-popup-table-grid", outputs: { cellClick: "cellClick", tableWizardClick: "tableWizardClick" }, ngImport: i0, template: `
4737
- <div
4738
- [style.border-color]="'inherit'"
4739
- class="k-ct-popup"
4740
- (mouseleave)="resetState()"
4741
- (click)="insertTable()">
4742
- <span *ngFor="let i of cells"
4743
- class="k-ct-cell"
4744
- [class.k-selected]="selected(i)"
4745
- [class.k-disabled]="!selected(i)"
4746
- (mouseenter)="setState(i)">
4747
- </span>
4748
- </div>
4749
- <div class="k-status" unselectable="on">{{ message }}</div>
4750
- <!-- uncomment when TableWizard is completed
4751
- <div class="k-editor-toolbar" unselectable="on">
4752
- <button type="button" kendoButton class="k-tool" [icon]="'table-wizard'" [svgIcon]="tableWizardIcon" (click)="openTableWizard()" title="Table Wizard">Table Wizard</button>
4753
- </div>
4754
- -->
4755
- `, isInline: true, dependencies: [{ kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
4756
- }
4757
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PopupTableGridComponent, decorators: [{
4758
- type: Component,
4759
- args: [{
4760
- selector: 'kendo-popup-table-grid',
4761
- template: `
4762
- <div
4763
- [style.border-color]="'inherit'"
4764
- class="k-ct-popup"
4765
- (mouseleave)="resetState()"
4766
- (click)="insertTable()">
4767
- <span *ngFor="let i of cells"
4768
- class="k-ct-cell"
4769
- [class.k-selected]="selected(i)"
4770
- [class.k-disabled]="!selected(i)"
4771
- (mouseenter)="setState(i)">
4772
- </span>
4773
- </div>
4774
- <div class="k-status" unselectable="on">{{ message }}</div>
4775
- <!-- uncomment when TableWizard is completed
4776
- <div class="k-editor-toolbar" unselectable="on">
4777
- <button type="button" kendoButton class="k-tool" [icon]="'table-wizard'" [svgIcon]="tableWizardIcon" (click)="openTableWizard()" title="Table Wizard">Table Wizard</button>
4778
- </div>
4779
- -->
4780
- `,
4781
- standalone: true,
4782
- imports: [NgFor]
4783
- }]
4784
- }], ctorParameters: function () { return [{ type: EditorLocalizationService }]; }, propDecorators: { cellClick: [{
4785
- type: Output
4786
- }], tableWizardClick: [{
4787
- type: Output
4788
- }] } });
4789
-
4790
- /**
4791
- * @hidden
4792
- */
4793
- class InsertTableDialogComponent extends DialogContentBase {
4794
- dialog;
4795
- localization;
4796
- editor;
4797
- constructor(dialog, localization) {
4798
- super(dialog);
4799
- this.dialog = dialog;
4800
- this.localization = localization;
4801
- }
4802
- onCancelAction() {
4803
- this.dialog.close();
4804
- this.editor.view.focus();
4805
- }
4806
- onCellClick(args) {
4807
- this.dialog.close();
4808
- this.editor.exec("insertTable", args);
4809
- this.editor.view.focus();
4810
- }
4811
- setData(args) {
4812
- this.editor = args.editor;
4813
- }
4814
- textFor(key) {
4815
- return this.localization.get(key);
4816
- }
4817
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: InsertTableDialogComponent, deps: [{ token: i1$1.DialogRef }, { token: EditorLocalizationService }], target: i0.ɵɵFactoryTarget.Component });
4818
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: InsertTableDialogComponent, isStandalone: true, selector: "ng-component", inputs: { editor: "editor" }, usesInheritance: true, ngImport: i0, template: `
4819
- <kendo-dialog-titlebar (close)="onCancelAction()">
4820
- {{ textFor('insertTable') }}
4821
- </kendo-dialog-titlebar>
4822
- <div [style.text-align]="'center'">
4823
- <kendo-popup-table-grid (cellClick)="onCellClick($event)"></kendo-popup-table-grid>
4824
- </div>
4825
- <kendo-dialog-actions layout="start">
4826
- <button
4827
- kendoButton
4828
- (click)="onCancelAction()"
4829
- >{{ textFor('dialogCancel') }}</button>
4830
- </kendo-dialog-actions>
4831
- `, isInline: true, dependencies: [{ kind: "component", type: DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { kind: "component", type: PopupTableGridComponent, selector: "kendo-popup-table-grid", outputs: ["cellClick", "tableWizardClick"] }, { kind: "component", type: DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
4832
- }
4833
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: InsertTableDialogComponent, decorators: [{
4834
- type: Component,
4835
- args: [{
4836
- template: `
4837
- <kendo-dialog-titlebar (close)="onCancelAction()">
4838
- {{ textFor('insertTable') }}
4839
- </kendo-dialog-titlebar>
4840
- <div [style.text-align]="'center'">
4841
- <kendo-popup-table-grid (cellClick)="onCellClick($event)"></kendo-popup-table-grid>
4842
- </div>
4843
- <kendo-dialog-actions layout="start">
4844
- <button
4845
- kendoButton
4846
- (click)="onCancelAction()"
4847
- >{{ textFor('dialogCancel') }}</button>
4848
- </kendo-dialog-actions>
4849
- `,
4850
- standalone: true,
4851
- imports: [DialogTitleBarComponent, PopupTableGridComponent, DialogActionsComponent, ButtonComponent]
4852
- }]
4853
- }], ctorParameters: function () { return [{ type: i1$1.DialogRef }, { type: EditorLocalizationService }]; }, propDecorators: { editor: [{
4854
- type: Input
4855
- }] } });
4856
-
4857
4354
  /**
4858
4355
  * @hidden
4859
4356
  */
@@ -5204,98 +4701,302 @@ class EditorFontSizeComponent extends ToolBarToolComponent {
5204
4701
  this.fontSizeDropDownList?.focus();
5205
4702
  }
5206
4703
  }
5207
- /**
5208
- * @hidden
5209
- */
5210
- handleKey() {
5211
- this.tabindex = -1;
5212
- return false;
4704
+ /**
4705
+ * @hidden
4706
+ */
4707
+ handleKey() {
4708
+ this.tabindex = -1;
4709
+ return false;
4710
+ }
4711
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorFontSizeComponent, deps: [{ token: i1$1.DialogService }, { token: EditorLocalizationService }, { token: ProviderService }, { token: EditorToolsService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
4712
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: EditorFontSizeComponent, isStandalone: true, selector: "kendo-toolbar-dropdownlist[kendoEditorFontSize]", inputs: { data: "data" }, outputs: { valueChange: "valueChange" }, providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => EditorFontSizeComponent) }], viewQueries: [{ propertyName: "element", first: true, predicate: ["element"], descendants: true }, { propertyName: "fontSizeDropDownList", first: true, predicate: ["element"], descendants: true, read: FontSizeDropDownListComponent }, { propertyName: "fontSizeButton", first: true, predicate: ["fontSizeButton"], descendants: true, read: ElementRef }], usesInheritance: true, ngImport: i0, template: `
4713
+ <ng-template #toolbarTemplate>
4714
+ <kendo-editor-fontsize-dropdownlist
4715
+ #element
4716
+ [defaultItem]="defaultItem"
4717
+ [data]="data"
4718
+ [(value)]="value"
4719
+ [itemDisabled]="itemDisabled"
4720
+ [title]="title"
4721
+ [disabled]="disabled"
4722
+ [tabindex]="tabindex"
4723
+ (valueChange)="onValueChange($event)"
4724
+ >
4725
+ </kendo-editor-fontsize-dropdownlist>
4726
+ </ng-template>
4727
+ <ng-template #popupTemplate>
4728
+ <div #fontSizeButton
4729
+ tabindex="-1"
4730
+ role="menuitem"
4731
+ class="k-item k-menu-item"
4732
+ [class.k-disabled]="disabled"
4733
+ [tabindex]="tabindex"
4734
+ (click)="openDialog()">
4735
+ <span
4736
+ class="k-link k-menu-link">
4737
+ <kendo-icon-wrapper name="font-size" [svgIcon]="fontSizeSVGIcon"></kendo-icon-wrapper>
4738
+ <span *ngIf="title" class="k-menu-link-text">{{title}}</span>
4739
+ </span>
4740
+ </div>
4741
+ </ng-template>
4742
+ `, isInline: true, dependencies: [{ kind: "component", type: FontSizeDropDownListComponent, selector: "kendo-editor-fontsize-dropdownlist", inputs: ["data", "value", "defaultItem", "itemDisabled", "title", "disabled", "tabindex"], outputs: ["valueChange"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
4743
+ }
4744
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorFontSizeComponent, decorators: [{
4745
+ type: Component,
4746
+ args: [{
4747
+ providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => EditorFontSizeComponent) }],
4748
+ selector: 'kendo-toolbar-dropdownlist[kendoEditorFontSize]',
4749
+ template: `
4750
+ <ng-template #toolbarTemplate>
4751
+ <kendo-editor-fontsize-dropdownlist
4752
+ #element
4753
+ [defaultItem]="defaultItem"
4754
+ [data]="data"
4755
+ [(value)]="value"
4756
+ [itemDisabled]="itemDisabled"
4757
+ [title]="title"
4758
+ [disabled]="disabled"
4759
+ [tabindex]="tabindex"
4760
+ (valueChange)="onValueChange($event)"
4761
+ >
4762
+ </kendo-editor-fontsize-dropdownlist>
4763
+ </ng-template>
4764
+ <ng-template #popupTemplate>
4765
+ <div #fontSizeButton
4766
+ tabindex="-1"
4767
+ role="menuitem"
4768
+ class="k-item k-menu-item"
4769
+ [class.k-disabled]="disabled"
4770
+ [tabindex]="tabindex"
4771
+ (click)="openDialog()">
4772
+ <span
4773
+ class="k-link k-menu-link">
4774
+ <kendo-icon-wrapper name="font-size" [svgIcon]="fontSizeSVGIcon"></kendo-icon-wrapper>
4775
+ <span *ngIf="title" class="k-menu-link-text">{{title}}</span>
4776
+ </span>
4777
+ </div>
4778
+ </ng-template>
4779
+ `,
4780
+ standalone: true,
4781
+ imports: [FontSizeDropDownListComponent, IconWrapperComponent, NgIf]
4782
+ }]
4783
+ }], ctorParameters: function () { return [{ type: i1$1.DialogService }, { type: EditorLocalizationService }, { type: ProviderService }, { type: EditorToolsService }, { type: i0.Renderer2 }]; }, propDecorators: { data: [{
4784
+ type: Input
4785
+ }], valueChange: [{
4786
+ type: Output
4787
+ }], element: [{
4788
+ type: ViewChild,
4789
+ args: ['element']
4790
+ }], fontSizeDropDownList: [{
4791
+ type: ViewChild,
4792
+ args: ['element', { read: FontSizeDropDownListComponent, static: false }]
4793
+ }], fontSizeButton: [{
4794
+ type: ViewChild,
4795
+ args: ['fontSizeButton', { read: ElementRef }]
4796
+ }] } });
4797
+
4798
+ /**
4799
+ * @hidden
4800
+ */
4801
+ class FontFamilyDropDownListComponent {
4802
+ data;
4803
+ value;
4804
+ defaultItem;
4805
+ itemDisabled;
4806
+ title;
4807
+ disabled;
4808
+ tabindex;
4809
+ valueChange = new EventEmitter();
4810
+ element;
4811
+ dropDownList;
4812
+ onValueChange(tag) {
4813
+ this.valueChange.emit(tag);
4814
+ }
4815
+ focus() {
4816
+ this.dropDownList.focus();
4817
+ }
4818
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FontFamilyDropDownListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
4819
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: FontFamilyDropDownListComponent, isStandalone: true, selector: "kendo-editor-fontfamily-dropdownlist", inputs: { data: "data", value: "value", defaultItem: "defaultItem", itemDisabled: "itemDisabled", title: "title", disabled: "disabled", tabindex: "tabindex" }, outputs: { valueChange: "valueChange" }, viewQueries: [{ propertyName: "element", first: true, predicate: ["element"], descendants: true, static: true }, { propertyName: "dropDownList", first: true, predicate: ["element"], descendants: true, read: DropDownListComponent, static: true }], ngImport: i0, template: `
4820
+ <kendo-dropdownlist
4821
+ #element
4822
+ kendoEditorDropDownTool
4823
+ [defaultItem]="defaultItem"
4824
+ [textField]="'text'"
4825
+ [valueField]="'fontName'"
4826
+ [data]="data"
4827
+ [(value)]="value"
4828
+ [valuePrimitive]="true"
4829
+ [itemDisabled]="itemDisabled"
4830
+ [attr.title]="title"
4831
+ [disabled]="disabled"
4832
+ [tabindex]="tabindex"
4833
+ (valueChange)="onValueChange($event)"
4834
+ [style.width.em]="13"
4835
+ >
4836
+ <ng-template kendoDropDownListItemTemplate let-dataItem>
4837
+ <span [ngStyle]="{ 'font-family': dataItem.fontName }">
4838
+ {{ dataItem.text }}
4839
+ </span>
4840
+ </ng-template>
4841
+ </kendo-dropdownlist>
4842
+ `, isInline: true, dependencies: [{ kind: "component", type: DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["customIconClass", "showStickyHeader", "icon", "svgIcon", "loading", "data", "value", "textField", "valueField", "adaptiveMode", "title", "subtitle", "popupSettings", "listHeight", "defaultItem", "disabled", "itemDisabled", "readonly", "filterable", "virtual", "ignoreCase", "delay", "valuePrimitive", "tabindex", "tabIndex", "size", "rounded", "fillMode", "leftRightArrowsNavigation", "id"], outputs: ["valueChange", "filterChange", "selectionChange", "open", "opened", "close", "closed", "focus", "blur"], exportAs: ["kendoDropDownList"] }, { kind: "directive", type: DropDownToolDirective, selector: "[kendoEditorDropDownTool]" }, { kind: "directive", type: ItemTemplateDirective, selector: "[kendoDropDownListItemTemplate],[kendoComboBoxItemTemplate],[kendoAutoCompleteItemTemplate],[kendoMultiSelectItemTemplate]" }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
4843
+ }
4844
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FontFamilyDropDownListComponent, decorators: [{
4845
+ type: Component,
4846
+ args: [{
4847
+ selector: 'kendo-editor-fontfamily-dropdownlist',
4848
+ template: `
4849
+ <kendo-dropdownlist
4850
+ #element
4851
+ kendoEditorDropDownTool
4852
+ [defaultItem]="defaultItem"
4853
+ [textField]="'text'"
4854
+ [valueField]="'fontName'"
4855
+ [data]="data"
4856
+ [(value)]="value"
4857
+ [valuePrimitive]="true"
4858
+ [itemDisabled]="itemDisabled"
4859
+ [attr.title]="title"
4860
+ [disabled]="disabled"
4861
+ [tabindex]="tabindex"
4862
+ (valueChange)="onValueChange($event)"
4863
+ [style.width.em]="13"
4864
+ >
4865
+ <ng-template kendoDropDownListItemTemplate let-dataItem>
4866
+ <span [ngStyle]="{ 'font-family': dataItem.fontName }">
4867
+ {{ dataItem.text }}
4868
+ </span>
4869
+ </ng-template>
4870
+ </kendo-dropdownlist>
4871
+ `,
4872
+ standalone: true,
4873
+ imports: [DropDownListComponent, DropDownToolDirective, ItemTemplateDirective, NgStyle]
4874
+ }]
4875
+ }], propDecorators: { data: [{
4876
+ type: Input
4877
+ }], value: [{
4878
+ type: Input
4879
+ }], defaultItem: [{
4880
+ type: Input
4881
+ }], itemDisabled: [{
4882
+ type: Input
4883
+ }], title: [{
4884
+ type: Input
4885
+ }], disabled: [{
4886
+ type: Input
4887
+ }], tabindex: [{
4888
+ type: Input
4889
+ }], valueChange: [{
4890
+ type: Output
4891
+ }], element: [{
4892
+ type: ViewChild,
4893
+ args: ['element', { static: true }]
4894
+ }], dropDownList: [{
4895
+ type: ViewChild,
4896
+ args: ['element', { read: DropDownListComponent, static: true }]
4897
+ }] } });
4898
+
4899
+ /**
4900
+ * @hidden
4901
+ */
4902
+ class FontFamilyDialogComponent extends DialogContentBase {
4903
+ dialog;
4904
+ localization;
4905
+ editor;
4906
+ fontFamilyDropDownList;
4907
+ data = [];
4908
+ defaultItem;
4909
+ value;
4910
+ itemDisabled;
4911
+ constructor(dialog, localization) {
4912
+ super(dialog);
4913
+ this.dialog = dialog;
4914
+ this.localization = localization;
4915
+ }
4916
+ onCancelAction() {
4917
+ this.dialog.close();
4918
+ }
4919
+ onConfirmAction() {
4920
+ if (this.value) {
4921
+ this.editor.exec('fontFamily', this.value);
4922
+ }
4923
+ this.dialog.close();
4924
+ }
4925
+ setData(args) {
4926
+ this.editor = args.editor;
4927
+ this.data = args.data;
4928
+ this.defaultItem = args.defaultItem;
4929
+ this.value = args.value;
4930
+ this.itemDisabled = args.itemDisabled;
5213
4931
  }
5214
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorFontSizeComponent, deps: [{ token: i1$1.DialogService }, { token: EditorLocalizationService }, { token: ProviderService }, { token: EditorToolsService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
5215
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: EditorFontSizeComponent, isStandalone: true, selector: "kendo-toolbar-dropdownlist[kendoEditorFontSize]", inputs: { data: "data" }, outputs: { valueChange: "valueChange" }, providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => EditorFontSizeComponent) }], viewQueries: [{ propertyName: "element", first: true, predicate: ["element"], descendants: true }, { propertyName: "fontSizeDropDownList", first: true, predicate: ["element"], descendants: true, read: FontSizeDropDownListComponent }, { propertyName: "fontSizeButton", first: true, predicate: ["fontSizeButton"], descendants: true, read: ElementRef }], usesInheritance: true, ngImport: i0, template: `
5216
- <ng-template #toolbarTemplate>
5217
- <kendo-editor-fontsize-dropdownlist
5218
- #element
4932
+ textFor(key) {
4933
+ return this.localization.get(key);
4934
+ }
4935
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FontFamilyDialogComponent, deps: [{ token: i1$1.DialogRef }, { token: EditorLocalizationService }], target: i0.ɵɵFactoryTarget.Component });
4936
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: FontFamilyDialogComponent, isStandalone: true, selector: "ng-component", inputs: { editor: "editor" }, viewQueries: [{ propertyName: "fontFamilyDropDownList", first: true, predicate: ["fontFamilyDropDownList"], descendants: true, read: FontFamilyDropDownListComponent, static: true }], usesInheritance: true, ngImport: i0, template: `
4937
+ <kendo-dialog-titlebar (close)="onCancelAction()">
4938
+ {{ textFor('fontFamily') }}
4939
+ </kendo-dialog-titlebar>
4940
+ <div [style.text-align]="'center'">
4941
+ <kendo-editor-fontfamily-dropdownlist
4942
+ #fontFamilyDropDownList
5219
4943
  [defaultItem]="defaultItem"
5220
4944
  [data]="data"
5221
4945
  [(value)]="value"
5222
4946
  [itemDisabled]="itemDisabled"
5223
- [title]="title"
5224
- [disabled]="disabled"
5225
- [tabindex]="tabindex"
5226
- (valueChange)="onValueChange($event)"
5227
4947
  >
5228
- </kendo-editor-fontsize-dropdownlist>
5229
- </ng-template>
5230
- <ng-template #popupTemplate>
5231
- <div #fontSizeButton
5232
- tabindex="-1"
5233
- role="menuitem"
5234
- class="k-item k-menu-item"
5235
- [class.k-disabled]="disabled"
5236
- [tabindex]="tabindex"
5237
- (click)="openDialog()">
5238
- <span
5239
- class="k-link k-menu-link">
5240
- <kendo-icon-wrapper name="font-size" [svgIcon]="fontSizeSVGIcon"></kendo-icon-wrapper>
5241
- <span *ngIf="title" class="k-menu-link-text">{{title}}</span>
5242
- </span>
5243
- </div>
5244
- </ng-template>
5245
- `, isInline: true, dependencies: [{ kind: "component", type: FontSizeDropDownListComponent, selector: "kendo-editor-fontsize-dropdownlist", inputs: ["data", "value", "defaultItem", "itemDisabled", "title", "disabled", "tabindex"], outputs: ["valueChange"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
4948
+ </kendo-editor-fontfamily-dropdownlist>
4949
+ </div>
4950
+ <kendo-dialog-actions layout="start">
4951
+ <button
4952
+ kendoButton
4953
+ [primary]="true"
4954
+ (click)="onConfirmAction()"
4955
+ >{{ textFor('dialogApply') }}</button>
4956
+ <button
4957
+ kendoButton
4958
+ (click)="onCancelAction()"
4959
+ >{{ textFor('dialogCancel') }}</button>
4960
+ </kendo-dialog-actions>
4961
+ `, isInline: true, dependencies: [{ kind: "component", type: DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { kind: "component", type: FontFamilyDropDownListComponent, selector: "kendo-editor-fontfamily-dropdownlist", inputs: ["data", "value", "defaultItem", "itemDisabled", "title", "disabled", "tabindex"], outputs: ["valueChange"] }, { kind: "component", type: DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
5246
4962
  }
5247
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorFontSizeComponent, decorators: [{
4963
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FontFamilyDialogComponent, decorators: [{
5248
4964
  type: Component,
5249
4965
  args: [{
5250
- providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => EditorFontSizeComponent) }],
5251
- selector: 'kendo-toolbar-dropdownlist[kendoEditorFontSize]',
5252
4966
  template: `
5253
- <ng-template #toolbarTemplate>
5254
- <kendo-editor-fontsize-dropdownlist
5255
- #element
4967
+ <kendo-dialog-titlebar (close)="onCancelAction()">
4968
+ {{ textFor('fontFamily') }}
4969
+ </kendo-dialog-titlebar>
4970
+ <div [style.text-align]="'center'">
4971
+ <kendo-editor-fontfamily-dropdownlist
4972
+ #fontFamilyDropDownList
5256
4973
  [defaultItem]="defaultItem"
5257
4974
  [data]="data"
5258
4975
  [(value)]="value"
5259
4976
  [itemDisabled]="itemDisabled"
5260
- [title]="title"
5261
- [disabled]="disabled"
5262
- [tabindex]="tabindex"
5263
- (valueChange)="onValueChange($event)"
5264
4977
  >
5265
- </kendo-editor-fontsize-dropdownlist>
5266
- </ng-template>
5267
- <ng-template #popupTemplate>
5268
- <div #fontSizeButton
5269
- tabindex="-1"
5270
- role="menuitem"
5271
- class="k-item k-menu-item"
5272
- [class.k-disabled]="disabled"
5273
- [tabindex]="tabindex"
5274
- (click)="openDialog()">
5275
- <span
5276
- class="k-link k-menu-link">
5277
- <kendo-icon-wrapper name="font-size" [svgIcon]="fontSizeSVGIcon"></kendo-icon-wrapper>
5278
- <span *ngIf="title" class="k-menu-link-text">{{title}}</span>
5279
- </span>
5280
- </div>
5281
- </ng-template>
4978
+ </kendo-editor-fontfamily-dropdownlist>
4979
+ </div>
4980
+ <kendo-dialog-actions layout="start">
4981
+ <button
4982
+ kendoButton
4983
+ [primary]="true"
4984
+ (click)="onConfirmAction()"
4985
+ >{{ textFor('dialogApply') }}</button>
4986
+ <button
4987
+ kendoButton
4988
+ (click)="onCancelAction()"
4989
+ >{{ textFor('dialogCancel') }}</button>
4990
+ </kendo-dialog-actions>
5282
4991
  `,
5283
4992
  standalone: true,
5284
- imports: [FontSizeDropDownListComponent, IconWrapperComponent, NgIf]
4993
+ imports: [DialogTitleBarComponent, FontFamilyDropDownListComponent, DialogActionsComponent, ButtonComponent]
5285
4994
  }]
5286
- }], ctorParameters: function () { return [{ type: i1$1.DialogService }, { type: EditorLocalizationService }, { type: ProviderService }, { type: EditorToolsService }, { type: i0.Renderer2 }]; }, propDecorators: { data: [{
4995
+ }], ctorParameters: function () { return [{ type: i1$1.DialogRef }, { type: EditorLocalizationService }]; }, propDecorators: { editor: [{
5287
4996
  type: Input
5288
- }], valueChange: [{
5289
- type: Output
5290
- }], element: [{
5291
- type: ViewChild,
5292
- args: ['element']
5293
- }], fontSizeDropDownList: [{
5294
- type: ViewChild,
5295
- args: ['element', { read: FontSizeDropDownListComponent, static: false }]
5296
- }], fontSizeButton: [{
4997
+ }], fontFamilyDropDownList: [{
5297
4998
  type: ViewChild,
5298
- args: ['fontSizeButton', { read: ElementRef }]
4999
+ args: ['fontFamilyDropDownList', { read: FontFamilyDropDownListComponent, static: true }]
5299
5000
  }] } });
5300
5001
 
5301
5002
  /* eslint-disable @typescript-eslint/no-explicit-any */
@@ -5488,58 +5189,186 @@ class EditorFontFamilyComponent extends ToolBarToolComponent {
5488
5189
  </ng-template>
5489
5190
  `, isInline: true, dependencies: [{ kind: "component", type: FontFamilyDropDownListComponent, selector: "kendo-editor-fontfamily-dropdownlist", inputs: ["data", "value", "defaultItem", "itemDisabled", "title", "disabled", "tabindex"], outputs: ["valueChange"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
5490
5191
  }
5491
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorFontFamilyComponent, decorators: [{
5192
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorFontFamilyComponent, decorators: [{
5193
+ type: Component,
5194
+ args: [{
5195
+ providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => EditorFontFamilyComponent) }],
5196
+ selector: 'kendo-toolbar-dropdownlist[kendoEditorFontFamily]',
5197
+ template: `
5198
+ <ng-template #toolbarTemplate>
5199
+ <kendo-editor-fontfamily-dropdownlist
5200
+ #element
5201
+ [defaultItem]="defaultItem"
5202
+ [data]="data"
5203
+ [(value)]="value"
5204
+ [itemDisabled]="itemDisabled"
5205
+ [title]="title"
5206
+ [disabled]="disabled"
5207
+ [tabindex]="tabindex"
5208
+ (valueChange)="onValueChange($event)"
5209
+ >
5210
+ </kendo-editor-fontfamily-dropdownlist>
5211
+ </ng-template>
5212
+ <ng-template #popupTemplate>
5213
+ <div #fontFamilyButton
5214
+ tabindex="-1"
5215
+ role="menuitem"
5216
+ class="k-item k-menu-item"
5217
+ [class.k-disabled]="disabled"
5218
+ [tabindex]="tabindex"
5219
+ (click)="openDialog()">
5220
+ <span
5221
+ class="k-link k-menu-link">
5222
+ <kendo-icon-wrapper name="font-family" [svgIcon]="fontFamilySVGIcon"></kendo-icon-wrapper>
5223
+ <span *ngIf="title" class="k-menu-link-text">{{title}}</span>
5224
+ </span>
5225
+ </div>
5226
+ </ng-template>
5227
+ `,
5228
+ standalone: true,
5229
+ imports: [FontFamilyDropDownListComponent, IconWrapperComponent, NgIf]
5230
+ }]
5231
+ }], ctorParameters: function () { return [{ type: i1$1.DialogService }, { type: EditorLocalizationService }, { type: ProviderService }, { type: EditorToolsService }, { type: i0.Renderer2 }]; }, propDecorators: { data: [{
5232
+ type: Input
5233
+ }], valueChange: [{
5234
+ type: Output
5235
+ }], element: [{
5236
+ type: ViewChild,
5237
+ args: ['element']
5238
+ }], fontFamilyDropDownList: [{
5239
+ type: ViewChild,
5240
+ args: ['element', { read: FontFamilyDropDownListComponent, static: false }]
5241
+ }], fontFamilyButton: [{
5242
+ type: ViewChild,
5243
+ args: ['fontFamilyButton', { read: ElementRef }]
5244
+ }] } });
5245
+
5246
+ /* eslint-disable @typescript-eslint/no-explicit-any */
5247
+ /**
5248
+ * @hidden
5249
+ */
5250
+ class ColorPickerDialogComponent extends DialogContentBase {
5251
+ dialog;
5252
+ localization;
5253
+ editor;
5254
+ colorPicker;
5255
+ value;
5256
+ title;
5257
+ editorCommand;
5258
+ paletteSettings;
5259
+ icon;
5260
+ svgIcon;
5261
+ view;
5262
+ views;
5263
+ constructor(dialog, localization) {
5264
+ super(dialog);
5265
+ this.dialog = dialog;
5266
+ this.localization = localization;
5267
+ }
5268
+ handleActiveColorClick(event) {
5269
+ event.preventOpen();
5270
+ this.value = event.color;
5271
+ }
5272
+ handleClearButtonClick() {
5273
+ this.editor.exec(this.editorCommand, undefined);
5274
+ }
5275
+ onCancelAction() {
5276
+ this.dialog.close();
5277
+ }
5278
+ onConfirmAction() {
5279
+ if (this.value) {
5280
+ this.editor.exec(this.editorCommand, this.value);
5281
+ }
5282
+ this.dialog.close();
5283
+ this.editor.view.focus();
5284
+ }
5285
+ setData(args) {
5286
+ this.editor = args.editor;
5287
+ this.value = args.value;
5288
+ this.svgIcon = args.svgIcon;
5289
+ this.editorCommand = args.editorCommand;
5290
+ this.paletteSettings = args.paletteSettings;
5291
+ this.icon = args.icon;
5292
+ this.views = args.view ? [args.view] : args.views;
5293
+ }
5294
+ textFor(key) {
5295
+ return this.localization.get(key);
5296
+ }
5297
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ColorPickerDialogComponent, deps: [{ token: i1$1.DialogRef }, { token: EditorLocalizationService }], target: i0.ɵɵFactoryTarget.Component });
5298
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ColorPickerDialogComponent, isStandalone: true, selector: "ng-component", inputs: { editor: "editor" }, viewQueries: [{ propertyName: "colorPicker", first: true, predicate: ["colorpicker"], descendants: true, read: ColorPickerComponent, static: true }], usesInheritance: true, ngImport: i0, template: `
5299
+ <kendo-dialog-titlebar (close)="onCancelAction()">
5300
+ {{ textFor(editorCommand) }}
5301
+ </kendo-dialog-titlebar>
5302
+ <div [style.text-align]="'center'">
5303
+ <kendo-colorpicker
5304
+ #colorpicker
5305
+ [views]="views"
5306
+ [format]="'hex'"
5307
+ [attr.title]="title"
5308
+ [icon]="icon"
5309
+ [svgIcon]="svgIcon"
5310
+ [(value)]="value"
5311
+ [paletteSettings]="paletteSettings"
5312
+ (activeColorClick)="handleActiveColorClick($event)"
5313
+ (clearButtonClick)="handleClearButtonClick()"
5314
+ >
5315
+ </kendo-colorpicker>
5316
+ </div>
5317
+ <kendo-dialog-actions layout="start">
5318
+ <button
5319
+ kendoButton
5320
+ [primary]="true"
5321
+ (click)="onConfirmAction()"
5322
+ >{{ textFor('dialogApply') }}</button>
5323
+ <button
5324
+ kendoButton
5325
+ (click)="onCancelAction()"
5326
+ >{{ textFor('dialogCancel') }}</button>
5327
+ </kendo-dialog-actions>
5328
+ `, isInline: true, dependencies: [{ kind: "component", type: DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { kind: "component", type: ColorPickerComponent, selector: "kendo-colorpicker", inputs: ["views", "view", "activeView", "readonly", "disabled", "format", "value", "popupSettings", "paletteSettings", "gradientSettings", "icon", "iconClass", "svgIcon", "clearButton", "tabindex", "preview", "actionsLayout", "size", "rounded", "fillMode"], outputs: ["valueChange", "open", "close", "focus", "blur", "cancel", "activeColorClick", "clearButtonClick", "activeViewChange"], exportAs: ["kendoColorPicker"] }, { kind: "component", type: DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
5329
+ }
5330
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ColorPickerDialogComponent, decorators: [{
5492
5331
  type: Component,
5493
5332
  args: [{
5494
- providers: [{ provide: ToolBarToolComponent, useExisting: forwardRef(() => EditorFontFamilyComponent) }],
5495
- selector: 'kendo-toolbar-dropdownlist[kendoEditorFontFamily]',
5496
5333
  template: `
5497
- <ng-template #toolbarTemplate>
5498
- <kendo-editor-fontfamily-dropdownlist
5499
- #element
5500
- [defaultItem]="defaultItem"
5501
- [data]="data"
5334
+ <kendo-dialog-titlebar (close)="onCancelAction()">
5335
+ {{ textFor(editorCommand) }}
5336
+ </kendo-dialog-titlebar>
5337
+ <div [style.text-align]="'center'">
5338
+ <kendo-colorpicker
5339
+ #colorpicker
5340
+ [views]="views"
5341
+ [format]="'hex'"
5342
+ [attr.title]="title"
5343
+ [icon]="icon"
5344
+ [svgIcon]="svgIcon"
5502
5345
  [(value)]="value"
5503
- [itemDisabled]="itemDisabled"
5504
- [title]="title"
5505
- [disabled]="disabled"
5506
- [tabindex]="tabindex"
5507
- (valueChange)="onValueChange($event)"
5346
+ [paletteSettings]="paletteSettings"
5347
+ (activeColorClick)="handleActiveColorClick($event)"
5348
+ (clearButtonClick)="handleClearButtonClick()"
5508
5349
  >
5509
- </kendo-editor-fontfamily-dropdownlist>
5510
- </ng-template>
5511
- <ng-template #popupTemplate>
5512
- <div #fontFamilyButton
5513
- tabindex="-1"
5514
- role="menuitem"
5515
- class="k-item k-menu-item"
5516
- [class.k-disabled]="disabled"
5517
- [tabindex]="tabindex"
5518
- (click)="openDialog()">
5519
- <span
5520
- class="k-link k-menu-link">
5521
- <kendo-icon-wrapper name="font-family" [svgIcon]="fontFamilySVGIcon"></kendo-icon-wrapper>
5522
- <span *ngIf="title" class="k-menu-link-text">{{title}}</span>
5523
- </span>
5524
- </div>
5525
- </ng-template>
5350
+ </kendo-colorpicker>
5351
+ </div>
5352
+ <kendo-dialog-actions layout="start">
5353
+ <button
5354
+ kendoButton
5355
+ [primary]="true"
5356
+ (click)="onConfirmAction()"
5357
+ >{{ textFor('dialogApply') }}</button>
5358
+ <button
5359
+ kendoButton
5360
+ (click)="onCancelAction()"
5361
+ >{{ textFor('dialogCancel') }}</button>
5362
+ </kendo-dialog-actions>
5526
5363
  `,
5527
5364
  standalone: true,
5528
- imports: [FontFamilyDropDownListComponent, IconWrapperComponent, NgIf]
5365
+ imports: [DialogTitleBarComponent, ColorPickerComponent, DialogActionsComponent, ButtonComponent]
5529
5366
  }]
5530
- }], ctorParameters: function () { return [{ type: i1$1.DialogService }, { type: EditorLocalizationService }, { type: ProviderService }, { type: EditorToolsService }, { type: i0.Renderer2 }]; }, propDecorators: { data: [{
5367
+ }], ctorParameters: function () { return [{ type: i1$1.DialogRef }, { type: EditorLocalizationService }]; }, propDecorators: { editor: [{
5531
5368
  type: Input
5532
- }], valueChange: [{
5533
- type: Output
5534
- }], element: [{
5535
- type: ViewChild,
5536
- args: ['element']
5537
- }], fontFamilyDropDownList: [{
5538
- type: ViewChild,
5539
- args: ['element', { read: FontFamilyDropDownListComponent, static: false }]
5540
- }], fontFamilyButton: [{
5369
+ }], colorPicker: [{
5541
5370
  type: ViewChild,
5542
- args: ['fontFamilyButton', { read: ElementRef }]
5371
+ args: ['colorpicker', { read: ColorPickerComponent, static: true }]
5543
5372
  }] } });
5544
5373
 
5545
5374
  /* eslint-disable @typescript-eslint/no-explicit-any */
@@ -5859,6 +5688,177 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
5859
5688
  args: ['colorPickerButton', { read: ElementRef }]
5860
5689
  }] } });
5861
5690
 
5691
+ /**
5692
+ * @hidden
5693
+ */
5694
+ class PopupTableGridComponent {
5695
+ localization;
5696
+ cellClick = new EventEmitter();
5697
+ tableWizardClick = new EventEmitter();
5698
+ tableWizardIcon = tableWizardIcon;
5699
+ state = { rows: -1, cols: -1 };
5700
+ rows = 6;
5701
+ cols = 8;
5702
+ constructor(localization) {
5703
+ this.localization = localization;
5704
+ }
5705
+ get message() {
5706
+ const { rows, cols } = this.state;
5707
+ const localizationMsg = this.localization.get('insertTableHint') || '';
5708
+ const rowReplacement = rows > -1 ? (rows + 1).toString() : '';
5709
+ const colReplacement = cols > -1 ? (cols + 1).toString() : '';
5710
+ const xReplacement = cols > -1 ? 'x' : '';
5711
+ return replaceMessagePlaceholder(localizationMsg, [
5712
+ { placeholder: 'rows', value: rowReplacement },
5713
+ { placeholder: 'columns', value: colReplacement },
5714
+ { placeholder: 'x', value: xReplacement }
5715
+ ]);
5716
+ }
5717
+ get cells() {
5718
+ return Array.from(Array(this.rows * this.cols).keys());
5719
+ }
5720
+ selected(index) {
5721
+ const { rows, cols } = this.state;
5722
+ const cellRow = Math.floor(index / this.cols);
5723
+ const cellCol = index % this.cols;
5724
+ return cellRow <= rows && cellCol <= cols;
5725
+ }
5726
+ setState(index) {
5727
+ const rows = Math.floor(index / this.cols);
5728
+ const cols = index % this.cols;
5729
+ this.state = { rows: rows, cols: cols };
5730
+ }
5731
+ resetState() {
5732
+ this.state = { rows: -1, cols: -1 };
5733
+ }
5734
+ insertTable() {
5735
+ this.cellClick.emit(this.state);
5736
+ }
5737
+ openTableWizard() {
5738
+ this.tableWizardClick.emit();
5739
+ }
5740
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PopupTableGridComponent, deps: [{ token: EditorLocalizationService }], target: i0.ɵɵFactoryTarget.Component });
5741
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: PopupTableGridComponent, isStandalone: true, selector: "kendo-popup-table-grid", outputs: { cellClick: "cellClick", tableWizardClick: "tableWizardClick" }, ngImport: i0, template: `
5742
+ <div
5743
+ [style.border-color]="'inherit'"
5744
+ class="k-ct-popup"
5745
+ (mouseleave)="resetState()"
5746
+ (click)="insertTable()">
5747
+ <span *ngFor="let i of cells"
5748
+ class="k-ct-cell"
5749
+ [class.k-selected]="selected(i)"
5750
+ [class.k-disabled]="!selected(i)"
5751
+ (mouseenter)="setState(i)">
5752
+ </span>
5753
+ </div>
5754
+ <div class="k-status" unselectable="on">{{ message }}</div>
5755
+ <!-- uncomment when TableWizard is completed
5756
+ <div class="k-editor-toolbar" unselectable="on">
5757
+ <button type="button" kendoButton class="k-tool" [icon]="'table-wizard'" [svgIcon]="tableWizardIcon" (click)="openTableWizard()" title="Table Wizard">Table Wizard</button>
5758
+ </div>
5759
+ -->
5760
+ `, isInline: true, dependencies: [{ kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
5761
+ }
5762
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PopupTableGridComponent, decorators: [{
5763
+ type: Component,
5764
+ args: [{
5765
+ selector: 'kendo-popup-table-grid',
5766
+ template: `
5767
+ <div
5768
+ [style.border-color]="'inherit'"
5769
+ class="k-ct-popup"
5770
+ (mouseleave)="resetState()"
5771
+ (click)="insertTable()">
5772
+ <span *ngFor="let i of cells"
5773
+ class="k-ct-cell"
5774
+ [class.k-selected]="selected(i)"
5775
+ [class.k-disabled]="!selected(i)"
5776
+ (mouseenter)="setState(i)">
5777
+ </span>
5778
+ </div>
5779
+ <div class="k-status" unselectable="on">{{ message }}</div>
5780
+ <!-- uncomment when TableWizard is completed
5781
+ <div class="k-editor-toolbar" unselectable="on">
5782
+ <button type="button" kendoButton class="k-tool" [icon]="'table-wizard'" [svgIcon]="tableWizardIcon" (click)="openTableWizard()" title="Table Wizard">Table Wizard</button>
5783
+ </div>
5784
+ -->
5785
+ `,
5786
+ standalone: true,
5787
+ imports: [NgFor]
5788
+ }]
5789
+ }], ctorParameters: function () { return [{ type: EditorLocalizationService }]; }, propDecorators: { cellClick: [{
5790
+ type: Output
5791
+ }], tableWizardClick: [{
5792
+ type: Output
5793
+ }] } });
5794
+
5795
+ /**
5796
+ * @hidden
5797
+ */
5798
+ class InsertTableDialogComponent extends DialogContentBase {
5799
+ dialog;
5800
+ localization;
5801
+ editor;
5802
+ constructor(dialog, localization) {
5803
+ super(dialog);
5804
+ this.dialog = dialog;
5805
+ this.localization = localization;
5806
+ }
5807
+ onCancelAction() {
5808
+ this.dialog.close();
5809
+ this.editor.view.focus();
5810
+ }
5811
+ onCellClick(args) {
5812
+ this.dialog.close();
5813
+ this.editor.exec("insertTable", args);
5814
+ this.editor.view.focus();
5815
+ }
5816
+ setData(args) {
5817
+ this.editor = args.editor;
5818
+ }
5819
+ textFor(key) {
5820
+ return this.localization.get(key);
5821
+ }
5822
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: InsertTableDialogComponent, deps: [{ token: i1$1.DialogRef }, { token: EditorLocalizationService }], target: i0.ɵɵFactoryTarget.Component });
5823
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: InsertTableDialogComponent, isStandalone: true, selector: "ng-component", inputs: { editor: "editor" }, usesInheritance: true, ngImport: i0, template: `
5824
+ <kendo-dialog-titlebar (close)="onCancelAction()">
5825
+ {{ textFor('insertTable') }}
5826
+ </kendo-dialog-titlebar>
5827
+ <div [style.text-align]="'center'">
5828
+ <kendo-popup-table-grid (cellClick)="onCellClick($event)"></kendo-popup-table-grid>
5829
+ </div>
5830
+ <kendo-dialog-actions layout="start">
5831
+ <button
5832
+ kendoButton
5833
+ (click)="onCancelAction()"
5834
+ >{{ textFor('dialogCancel') }}</button>
5835
+ </kendo-dialog-actions>
5836
+ `, isInline: true, dependencies: [{ kind: "component", type: DialogTitleBarComponent, selector: "kendo-dialog-titlebar", inputs: ["id", "closeTitle"], outputs: ["close"] }, { kind: "component", type: PopupTableGridComponent, selector: "kendo-popup-table-grid", outputs: ["cellClick", "tableWizardClick"] }, { kind: "component", type: DialogActionsComponent, selector: "kendo-dialog-actions", inputs: ["actions", "layout"], outputs: ["action"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon", "primary", "look"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
5837
+ }
5838
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: InsertTableDialogComponent, decorators: [{
5839
+ type: Component,
5840
+ args: [{
5841
+ template: `
5842
+ <kendo-dialog-titlebar (close)="onCancelAction()">
5843
+ {{ textFor('insertTable') }}
5844
+ </kendo-dialog-titlebar>
5845
+ <div [style.text-align]="'center'">
5846
+ <kendo-popup-table-grid (cellClick)="onCellClick($event)"></kendo-popup-table-grid>
5847
+ </div>
5848
+ <kendo-dialog-actions layout="start">
5849
+ <button
5850
+ kendoButton
5851
+ (click)="onCancelAction()"
5852
+ >{{ textFor('dialogCancel') }}</button>
5853
+ </kendo-dialog-actions>
5854
+ `,
5855
+ standalone: true,
5856
+ imports: [DialogTitleBarComponent, PopupTableGridComponent, DialogActionsComponent, ButtonComponent]
5857
+ }]
5858
+ }], ctorParameters: function () { return [{ type: i1$1.DialogRef }, { type: EditorLocalizationService }]; }, propDecorators: { editor: [{
5859
+ type: Input
5860
+ }] } });
5861
+
5862
5862
  const popupWrapperWidth = '190px';
5863
5863
  const popupWrapperHeight = '164px'; // Set to '192px' when TableWizard button is added;
5864
5864
  /**
@@ -6793,21 +6793,6 @@ const KENDO_EDITOR = [
6793
6793
  EditorSplitCellButtonDirective
6794
6794
  ];
6795
6795
 
6796
- const TOOLBAR_DIALOGS = [
6797
- FileLinkDialogComponent,
6798
- ImageDialogComponent,
6799
- SourceDialogComponent,
6800
- FormatDialogComponent,
6801
- ColorPickerDialogComponent,
6802
- FontFamilyDialogComponent,
6803
- FontSizeDialogComponent,
6804
- InsertTableDialogComponent
6805
- // TableWizardDialogComponent
6806
- // Table Wizard Building Blocks
6807
- // TableSettingsComponent,
6808
- // CellSettingsComponent,
6809
- // AccessibilitySettingsComponent
6810
- ];
6811
6796
  // IMPORTANT: NgModule export kept for backwards compatibility
6812
6797
  /**
6813
6798
  * Represents the [NgModule](link:site.data.urls.angular['ngmoduleapi']) definition for the Editor component.
@@ -6829,14 +6814,14 @@ const TOOLBAR_DIALOGS = [
6829
6814
  */
6830
6815
  class EditorModule {
6831
6816
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
6832
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: EditorModule, imports: [EditorComponent, EditorAlignLeftButtonDirective, EditorAlignCenterButtonDirective, EditorAlignRightButtonDirective, EditorAlignJustifyButtonDirective, EditorInsertFileButtonDirective, EditorRedoButtonDirective, EditorUndoButtonDirective, EditorInsertImageButtonDirective, EditorIndentButtonDirective, EditorOutdentButtonDirective, EditorCreateLinkButtonDirective, EditorUnlinkButtonDirective, EditorInsertOrderedListButtonDirective, EditorInsertUnorderedListButtonDirective, EditorViewSourceButtonDirective, EditorBoldButtonDirective, EditorItalicButtonDirective, EditorUnderlineButtonDirective, EditorStrikethroughButtonDirective, EditorSubscriptButtonDirective, EditorSuperscriptButtonDirective, EditorForeColorDirective, EditorBackColorDirective, EditorCleanFormattingButtonDirective, EditorAddColumnBeforeButtonDirective, EditorAddColumnAfterButtonDirective, EditorAddRowBeforeButtonDirective, EditorAddRowAfterButtonDirective, EditorDeleteColumnButtonDirective, EditorDeleteRowButtonDirective, EditorDeleteTableButtonDirective, CustomMessagesComponent, EditorPrintDirective, EditorSelectAllButtonDirective, EditorBlockquoteDirective, EditorFontSizeComponent, EditorFontFamilyComponent, EditorFormatComponent, EditorColorPickerComponent, EditorInsertTableButtonComponent, EditorMergeCellsButtonDirective, EditorSplitCellButtonDirective], exports: [EditorComponent, EditorAlignLeftButtonDirective, EditorAlignCenterButtonDirective, EditorAlignRightButtonDirective, EditorAlignJustifyButtonDirective, EditorInsertFileButtonDirective, EditorRedoButtonDirective, EditorUndoButtonDirective, EditorInsertImageButtonDirective, EditorIndentButtonDirective, EditorOutdentButtonDirective, EditorCreateLinkButtonDirective, EditorUnlinkButtonDirective, EditorInsertOrderedListButtonDirective, EditorInsertUnorderedListButtonDirective, EditorViewSourceButtonDirective, EditorBoldButtonDirective, EditorItalicButtonDirective, EditorUnderlineButtonDirective, EditorStrikethroughButtonDirective, EditorSubscriptButtonDirective, EditorSuperscriptButtonDirective, EditorForeColorDirective, EditorBackColorDirective, EditorCleanFormattingButtonDirective, EditorAddColumnBeforeButtonDirective, EditorAddColumnAfterButtonDirective, EditorAddRowBeforeButtonDirective, EditorAddRowAfterButtonDirective, EditorDeleteColumnButtonDirective, EditorDeleteRowButtonDirective, EditorDeleteTableButtonDirective, CustomMessagesComponent, EditorPrintDirective, EditorSelectAllButtonDirective, EditorBlockquoteDirective, EditorFontSizeComponent, EditorFontFamilyComponent, EditorFormatComponent, EditorColorPickerComponent, EditorInsertTableButtonComponent, EditorMergeCellsButtonDirective, EditorSplitCellButtonDirective, FormsModule, ReactiveFormsModule, ToolBarModule] });
6833
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorModule, providers: [IconsService, PopupService, ResizeBatchService, DialogContainerService, DialogService, WindowService, WindowContainerService], imports: [EditorComponent, EditorFontSizeComponent, EditorFontFamilyComponent, EditorFormatComponent, EditorColorPickerComponent, EditorInsertTableButtonComponent, FormsModule, ReactiveFormsModule, ToolBarModule] });
6817
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: EditorModule, imports: [EditorComponent, EditorAlignLeftButtonDirective, EditorAlignCenterButtonDirective, EditorAlignRightButtonDirective, EditorAlignJustifyButtonDirective, EditorInsertFileButtonDirective, EditorRedoButtonDirective, EditorUndoButtonDirective, EditorInsertImageButtonDirective, EditorIndentButtonDirective, EditorOutdentButtonDirective, EditorCreateLinkButtonDirective, EditorUnlinkButtonDirective, EditorInsertOrderedListButtonDirective, EditorInsertUnorderedListButtonDirective, EditorViewSourceButtonDirective, EditorBoldButtonDirective, EditorItalicButtonDirective, EditorUnderlineButtonDirective, EditorStrikethroughButtonDirective, EditorSubscriptButtonDirective, EditorSuperscriptButtonDirective, EditorForeColorDirective, EditorBackColorDirective, EditorCleanFormattingButtonDirective, EditorAddColumnBeforeButtonDirective, EditorAddColumnAfterButtonDirective, EditorAddRowBeforeButtonDirective, EditorAddRowAfterButtonDirective, EditorDeleteColumnButtonDirective, EditorDeleteRowButtonDirective, EditorDeleteTableButtonDirective, CustomMessagesComponent, EditorPrintDirective, EditorSelectAllButtonDirective, EditorBlockquoteDirective, EditorFontSizeComponent, EditorFontFamilyComponent, EditorFormatComponent, EditorColorPickerComponent, EditorInsertTableButtonComponent, EditorMergeCellsButtonDirective, EditorSplitCellButtonDirective, i1$2.ToolBarComponent, i1$2.ToolbarCustomMessagesComponent, i1$2.ToolBarButtonComponent, i1$2.ToolBarButtonGroupComponent, i1$2.ToolBarDropDownButtonComponent, i1$2.ToolBarSeparatorComponent, i1$2.ToolBarSpacerComponent, i1$2.ToolBarSplitButtonComponent, i1$2.ToolBarToolComponent], exports: [EditorComponent, EditorAlignLeftButtonDirective, EditorAlignCenterButtonDirective, EditorAlignRightButtonDirective, EditorAlignJustifyButtonDirective, EditorInsertFileButtonDirective, EditorRedoButtonDirective, EditorUndoButtonDirective, EditorInsertImageButtonDirective, EditorIndentButtonDirective, EditorOutdentButtonDirective, EditorCreateLinkButtonDirective, EditorUnlinkButtonDirective, EditorInsertOrderedListButtonDirective, EditorInsertUnorderedListButtonDirective, EditorViewSourceButtonDirective, EditorBoldButtonDirective, EditorItalicButtonDirective, EditorUnderlineButtonDirective, EditorStrikethroughButtonDirective, EditorSubscriptButtonDirective, EditorSuperscriptButtonDirective, EditorForeColorDirective, EditorBackColorDirective, EditorCleanFormattingButtonDirective, EditorAddColumnBeforeButtonDirective, EditorAddColumnAfterButtonDirective, EditorAddRowBeforeButtonDirective, EditorAddRowAfterButtonDirective, EditorDeleteColumnButtonDirective, EditorDeleteRowButtonDirective, EditorDeleteTableButtonDirective, CustomMessagesComponent, EditorPrintDirective, EditorSelectAllButtonDirective, EditorBlockquoteDirective, EditorFontSizeComponent, EditorFontFamilyComponent, EditorFormatComponent, EditorColorPickerComponent, EditorInsertTableButtonComponent, EditorMergeCellsButtonDirective, EditorSplitCellButtonDirective, i1$2.ToolBarComponent, i1$2.ToolbarCustomMessagesComponent, i1$2.ToolBarButtonComponent, i1$2.ToolBarButtonGroupComponent, i1$2.ToolBarDropDownButtonComponent, i1$2.ToolBarSeparatorComponent, i1$2.ToolBarSpacerComponent, i1$2.ToolBarSplitButtonComponent, i1$2.ToolBarToolComponent] });
6818
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorModule, providers: [IconsService, PopupService, ResizeBatchService, DialogContainerService, DialogService, WindowService, WindowContainerService], imports: [EditorComponent, EditorFontSizeComponent, EditorFontFamilyComponent, EditorFormatComponent, EditorColorPickerComponent, EditorInsertTableButtonComponent, i1$2.ToolBarComponent, i1$2.ToolbarCustomMessagesComponent, i1$2.ToolBarButtonComponent, i1$2.ToolBarButtonGroupComponent, i1$2.ToolBarDropDownButtonComponent, i1$2.ToolBarSeparatorComponent, i1$2.ToolBarSpacerComponent, i1$2.ToolBarSplitButtonComponent] });
6834
6819
  }
6835
6820
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: EditorModule, decorators: [{
6836
6821
  type: NgModule,
6837
6822
  args: [{
6838
- exports: [...KENDO_EDITOR, FormsModule, ReactiveFormsModule, ToolBarModule],
6839
- imports: [...KENDO_EDITOR],
6823
+ exports: [...KENDO_EDITOR, ...KENDO_TOOLBAR],
6824
+ imports: [...KENDO_EDITOR, ...KENDO_TOOLBAR],
6840
6825
  providers: [IconsService, PopupService, ResizeBatchService, DialogContainerService, DialogService, WindowService, WindowContainerService]
6841
6826
  }]
6842
6827
  }] });