@worktile/theia 2.1.10 → 2.1.14

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.
@@ -506,73 +506,6 @@
506
506
  var VOID_BLOCK_TYPES = [exports.ElementKinds.image, exports.ElementKinds.hr];
507
507
  var BLOCK_DELETEBACKWARD_TYPES = [exports.ElementKinds.tableCell];
508
508
 
509
- var TheToolbarGroupToken = new i0.InjectionToken('the-toolbar-group-token');
510
- var QUICK_TOOLBAR_HOTKEY = '/';
511
- exports.DropdownMode = void 0;
512
- (function (DropdownMode) {
513
- DropdownMode["icon"] = "icon-mode";
514
- DropdownMode["text"] = "text-mode";
515
- })(exports.DropdownMode || (exports.DropdownMode = {}));
516
- exports.ToolbarItemMode = void 0;
517
- (function (ToolbarItemMode) {
518
- ToolbarItemMode[ToolbarItemMode["horizontal"] = 0] = "horizontal";
519
- ToolbarItemMode[ToolbarItemMode["vertical"] = 1] = "vertical";
520
- })(exports.ToolbarItemMode || (exports.ToolbarItemMode = {}));
521
- var DefaultGlobalToolbarDefinition = [
522
- exports.ElementKinds.headingList,
523
- exports.ToolbarActionTypes.split,
524
- exports.MarkTypes.bold,
525
- exports.MarkTypes.italic,
526
- exports.MarkTypes.underline,
527
- exports.MarkTypes.strike,
528
- exports.ElementKinds.inlineCode,
529
- exports.MarkTypes.color,
530
- exports.MarkTypes.backgroundColor,
531
- exports.ToolbarActionTypes.split,
532
- exports.ToolbarActionTypes.alignType,
533
- exports.ToolbarActionTypes.verticalAlign,
534
- exports.ToolbarActionTypes.split,
535
- exports.ElementKinds.numberedList,
536
- exports.ElementKinds.bulletedList,
537
- exports.ToolbarActionTypes.split,
538
- exports.ElementKinds.link,
539
- exports.ElementKinds.image,
540
- exports.ElementKinds.table,
541
- exports.ElementKinds.blockquote,
542
- exports.ElementKinds.code
543
- ];
544
- var DefaultInlineToolbarDefinition = [
545
- exports.ToolbarActionTypes.clean,
546
- exports.ToolbarActionTypes.split,
547
- exports.MarkTypes.bold,
548
- exports.MarkTypes.italic,
549
- exports.MarkTypes.underline,
550
- exports.MarkTypes.strike,
551
- exports.ElementKinds.inlineCode,
552
- exports.MarkTypes.color,
553
- exports.MarkTypes.backgroundColor,
554
- exports.ToolbarActionTypes.split,
555
- exports.ToolbarActionTypes.alignType,
556
- exports.ToolbarActionTypes.split,
557
- exports.ElementKinds.link
558
- ];
559
- var DefaultQuickToolbarDefinition = __spreadArray(__spreadArray([], __read(STANDARD_HEADING_TYPES)), [
560
- exports.ToolbarActionTypes.split,
561
- exports.ElementKinds.numberedList,
562
- exports.ElementKinds.bulletedList,
563
- exports.ToolbarActionTypes.split,
564
- exports.ElementKinds.link,
565
- exports.ElementKinds.image,
566
- exports.ElementKinds.table,
567
- exports.ElementKinds.blockquote,
568
- exports.ElementKinds.hr,
569
- exports.ElementKinds.code
570
- ]);
571
- var ToolbarMoreGroup = {
572
- key: 'more',
573
- icon: 'more'
574
- };
575
-
576
509
  exports.ErrorCodes = void 0;
577
510
  (function (ErrorCodes) {
578
511
  ErrorCodes[ErrorCodes["UNKNOW_ERROR"] = 1000] = "UNKNOW_ERROR";
@@ -665,6 +598,73 @@
665
598
  };
666
599
  var CODEMIRROR_PADDING_TOP = 10;
667
600
 
601
+ var TheToolbarGroupToken = new i0.InjectionToken('the-toolbar-group-token');
602
+ var QUICK_TOOLBAR_HOTKEY = '/';
603
+ exports.DropdownMode = void 0;
604
+ (function (DropdownMode) {
605
+ DropdownMode["icon"] = "icon-mode";
606
+ DropdownMode["text"] = "text-mode";
607
+ })(exports.DropdownMode || (exports.DropdownMode = {}));
608
+ exports.ToolbarItemMode = void 0;
609
+ (function (ToolbarItemMode) {
610
+ ToolbarItemMode[ToolbarItemMode["horizontal"] = 0] = "horizontal";
611
+ ToolbarItemMode[ToolbarItemMode["vertical"] = 1] = "vertical";
612
+ })(exports.ToolbarItemMode || (exports.ToolbarItemMode = {}));
613
+ var DefaultGlobalToolbarDefinition = [
614
+ exports.ElementKinds.headingList,
615
+ exports.ToolbarActionTypes.split,
616
+ exports.MarkTypes.bold,
617
+ exports.MarkTypes.italic,
618
+ exports.MarkTypes.underline,
619
+ exports.MarkTypes.strike,
620
+ exports.ElementKinds.inlineCode,
621
+ exports.MarkTypes.color,
622
+ exports.MarkTypes.backgroundColor,
623
+ exports.ToolbarActionTypes.split,
624
+ exports.ToolbarActionTypes.alignType,
625
+ exports.ToolbarActionTypes.verticalAlign,
626
+ exports.ToolbarActionTypes.split,
627
+ exports.ElementKinds.numberedList,
628
+ exports.ElementKinds.bulletedList,
629
+ exports.ToolbarActionTypes.split,
630
+ exports.ElementKinds.link,
631
+ exports.ElementKinds.image,
632
+ exports.ElementKinds.table,
633
+ exports.ElementKinds.blockquote,
634
+ exports.ElementKinds.code
635
+ ];
636
+ var DefaultInlineToolbarDefinition = [
637
+ exports.ToolbarActionTypes.clean,
638
+ exports.ToolbarActionTypes.split,
639
+ exports.MarkTypes.bold,
640
+ exports.MarkTypes.italic,
641
+ exports.MarkTypes.underline,
642
+ exports.MarkTypes.strike,
643
+ exports.ElementKinds.inlineCode,
644
+ exports.MarkTypes.color,
645
+ exports.MarkTypes.backgroundColor,
646
+ exports.ToolbarActionTypes.split,
647
+ exports.ToolbarActionTypes.alignType,
648
+ exports.ToolbarActionTypes.split,
649
+ exports.ElementKinds.link
650
+ ];
651
+ var DefaultQuickToolbarDefinition = __spreadArray(__spreadArray([], __read(STANDARD_HEADING_TYPES)), [
652
+ exports.ToolbarActionTypes.split,
653
+ exports.ElementKinds.numberedList,
654
+ exports.ElementKinds.bulletedList,
655
+ exports.ToolbarActionTypes.split,
656
+ exports.ElementKinds.link,
657
+ exports.ElementKinds.image,
658
+ exports.ElementKinds.table,
659
+ exports.ElementKinds.blockquote,
660
+ exports.ElementKinds.hr,
661
+ exports.ElementKinds.code
662
+ ]);
663
+ var ToolbarMoreGroup = {
664
+ key: 'more',
665
+ icon: 'more'
666
+ };
667
+
668
668
  var TheTextComponent = /** @class */ (function (_super) {
669
669
  __extends(TheTextComponent, _super);
670
670
  function TheTextComponent(elementRef, renderer2, cdr) {
@@ -689,10 +689,7 @@
689
689
  }
690
690
  }
691
691
  var fontSize = this.text[exports.MarkTypes.fontSize];
692
- if (fontSize) {
693
- var attr = "the-" + exports.MarkTypes.fontSize;
694
- this.renderer2.setAttribute(this.elementRef.nativeElement, attr, fontSize);
695
- }
692
+ this.renderer2.setAttribute(this.elementRef.nativeElement, "the-" + exports.MarkTypes.fontSize, fontSize ? fontSize : null);
696
693
  if (this.text[exports.MarkTypes.color]) {
697
694
  this.renderer2.setStyle(this.elementRef.nativeElement, 'color', this.text[exports.MarkTypes.color]);
698
695
  }
@@ -2080,6 +2077,13 @@
2080
2077
  slate.Transforms.setNodes(editor, { type: exports.ElementKinds.paragraph, checked: undefined }, // todo remove checked
2081
2078
  { at: path });
2082
2079
  }
2080
+ else if (slate.Element.isElement(node) && node.type === exports.ElementKinds.paragraph) {
2081
+ var textIndent = node.textIndent;
2082
+ if (textIndent) {
2083
+ slate.Transforms.setNodes(editor, { textIndent: undefined }, // remove textIndent
2084
+ { at: path });
2085
+ }
2086
+ }
2083
2087
  if (slate.Node.parent(editor, path).type !== exports.ElementKinds.listItem) {
2084
2088
  slate.Transforms.wrapNodes(editor, { type: exports.ElementKinds.listItem, children: [] }, {
2085
2089
  at: path,
@@ -11552,7 +11556,7 @@
11552
11556
  TheVerticalToolbarItemComponent.prototype.execute = function (event) {
11553
11557
  var _a, _b;
11554
11558
  _super.prototype.execute.call(this, event);
11555
- if (!((_a = this.item) === null || _a === void 0 ? void 0 : _a.execute) || ((_b = this.editor) === null || _b === void 0 ? void 0 : _b.disabled)) {
11559
+ if (((_a = this.editor) === null || _a === void 0 ? void 0 : _a.readOnly) || ((_b = this.editor) === null || _b === void 0 ? void 0 : _b.disabled)) {
11556
11560
  return;
11557
11561
  }
11558
11562
  this.openPopover();
@@ -11586,7 +11590,7 @@
11586
11590
  return TheVerticalToolbarItemComponent;
11587
11591
  }(TheToolbarBaseItemComponent));
11588
11592
  TheVerticalToolbarItemComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TheVerticalToolbarItemComponent, deps: [{ token: i0__namespace.ElementRef }, { token: i1__namespace$6.ThyPopover }, { token: i0__namespace.ViewContainerRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
11589
- TheVerticalToolbarItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: TheVerticalToolbarItemComponent, selector: "the-toolbar-vertical-align-item", inputs: { item: "item", menus: "menus", editor: "editor", toolbarItem: "toolbarItem" }, host: { listeners: { "document: mousedown": "handleDocumentMouseDown($event)" }, properties: { "class.hide": "!active" }, classAttribute: "the-toolbar-dropdown-container verticalAlign" }, viewQueries: [{ propertyName: "template", first: true, predicate: ["VerticalAlignItems"], descendants: true, read: i0.TemplateRef, static: true }], usesInheritance: true, ngImport: i0__namespace, template: "<a\n thyIconNavLink\n class=\"icon-mode link-with-down\"\n [thyTooltip]=\"toolbarItem?.name\"\n [thyIconNavLinkActive]=\"isOpened\"\n thyTooltipPlacement=\"top\"\n (mousedown)=\"execute($event)\"\n>\n <thy-icon [thyIconName]=\"activeMenu?.icon\"></thy-icon>\n <thy-icon class=\"caret-down-icon font-size-sm text-desc\" thyIconName=\"caret-down\"></thy-icon>\n</a>\n\n<ng-template #VerticalAlignItems>\n <thy-action-menu class=\"dropdown\">\n <ng-container *ngFor=\"let menu of toolbarItem?.includes\">\n <a\n thyActionMenuItem\n href=\"javascript:;\"\n [thyActionMenuItemActive]=\"menu.key === activeMenu?.key\"\n [ngStyle]=\"menu?.styles\"\n (mousedown)=\"itemMousedown($event, menu)\"\n >\n <span *ngIf=\"menu.icon\" thyActionMenuItemIcon>\n <thy-icon [thyIconName]=\"menu?.icon\"></thy-icon>\n </span>\n <span thyActionMenuItemName>{{ menu.name }}</span>\n </a>\n </ng-container>\n </thy-action-menu>\n</ng-template>\n", components: [{ type: i3__namespace.ThyIconNavLinkComponent, selector: "[thyIconNavLink]", inputs: ["thyIconNavLinkIcon", "thyIconNavLinkActive"] }, { type: i4__namespace$1.ThyIconComponent, selector: "thy-icon", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }, { type: i5__namespace$2.ThyActionMenuComponent, selector: "thy-action-menu", inputs: ["thyTheme", "thyWidth"] }], directives: [{ type: i5__namespace$1.ThyTooltipDirective, selector: "[thyTooltip],[thy-tooltip]", inputs: ["thyTooltip", "thyTooltipPlacement", "thyTooltipClass", "thyTooltipShowDelay", "thyTooltipHideDelay", "thyTooltipTrigger", "thyTooltipDisabled", "thyTooltipTemplateContext", "thyTooltipOffset", "thyTooltipPin"], exportAs: ["thyTooltip"] }, { type: i6__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i5__namespace$2.ThyActionMenuItemDirective, selector: "[thyActionMenuItem]", inputs: ["thyDisabled", "thyType"] }, { type: i5__namespace$2.ThyActionMenuItemActiveDirective, selector: "[thyActionMenuItemActive]", inputs: ["thyActionMenuItemActive"] }, { type: i6__namespace.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i6__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5__namespace$2.ThyActionMenuItemIconDirective, selector: "[thyActionMenuItemIcon]" }, { type: i5__namespace$2.ThyActionMenuItemNameDirective, selector: "[thyActionMenuItemName]" }] });
11593
+ TheVerticalToolbarItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: TheVerticalToolbarItemComponent, selector: "the-toolbar-vertical-align-item", inputs: { item: "item", menus: "menus", editor: "editor", toolbarItem: "toolbarItem" }, host: { listeners: { "document: mousedown": "handleDocumentMouseDown($event)" }, properties: { "class.hide": "!active" }, classAttribute: "the-toolbar-dropdown-container verticalAlign" }, viewQueries: [{ propertyName: "template", first: true, predicate: ["VerticalAlignItems"], descendants: true, read: i0.TemplateRef, static: true }], usesInheritance: true, ngImport: i0__namespace, template: "<a\n thyIconNavLink\n class=\"icon-mode link-with-down\"\n [thyTooltip]=\"toolbarItem?.name\"\n [thyIconNavLinkActive]=\"isOpened\"\n thyTooltipPlacement=\"top\"\n (mousedown)=\"execute($event)\"\n>\n <thy-icon [thyIconName]=\"activeMenu?.icon\"></thy-icon>\n <thy-icon class=\"caret-down-icon font-size-sm text-desc\" thyIconName=\"caret-down\"></thy-icon>\n</a>\n\n<ng-template #VerticalAlignItems>\n <thy-action-menu class=\"dropdown\">\n <ng-container *ngFor=\"let menu of toolbarItem?.includes\">\n <a\n thyActionMenuItem\n href=\"javascript:;\"\n [thyActionMenuItemActive]=\"menu.key === activeMenu?.key\"\n (mousedown)=\"itemMousedown($event, menu)\"\n >\n <span *ngIf=\"menu.icon\" thyActionMenuItemIcon>\n <thy-icon [thyIconName]=\"menu?.icon\"></thy-icon>\n </span>\n <span thyActionMenuItemName>{{ menu.name }}</span>\n </a>\n </ng-container>\n </thy-action-menu>\n</ng-template>\n", components: [{ type: i3__namespace.ThyIconNavLinkComponent, selector: "[thyIconNavLink]", inputs: ["thyIconNavLinkIcon", "thyIconNavLinkActive"] }, { type: i4__namespace$1.ThyIconComponent, selector: "thy-icon", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }, { type: i5__namespace$2.ThyActionMenuComponent, selector: "thy-action-menu", inputs: ["thyTheme", "thyWidth"] }], directives: [{ type: i5__namespace$1.ThyTooltipDirective, selector: "[thyTooltip],[thy-tooltip]", inputs: ["thyTooltip", "thyTooltipPlacement", "thyTooltipClass", "thyTooltipShowDelay", "thyTooltipHideDelay", "thyTooltipTrigger", "thyTooltipDisabled", "thyTooltipTemplateContext", "thyTooltipOffset", "thyTooltipPin"], exportAs: ["thyTooltip"] }, { type: i6__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i5__namespace$2.ThyActionMenuItemDirective, selector: "[thyActionMenuItem]", inputs: ["thyDisabled", "thyType"] }, { type: i5__namespace$2.ThyActionMenuItemActiveDirective, selector: "[thyActionMenuItemActive]", inputs: ["thyActionMenuItemActive"] }, { type: i6__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5__namespace$2.ThyActionMenuItemIconDirective, selector: "[thyActionMenuItemIcon]" }, { type: i5__namespace$2.ThyActionMenuItemNameDirective, selector: "[thyActionMenuItemName]" }] });
11590
11594
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TheVerticalToolbarItemComponent, decorators: [{
11591
11595
  type: i0.Component,
11592
11596
  args: [{
@@ -11870,14 +11874,17 @@
11870
11874
  }
11871
11875
  TheQuickToolbarComponent.prototype.handleMouseDown = function (event) {
11872
11876
  if (!this.elementRef.nativeElement.contains(event.target)) {
11873
- this.popoverRef.close();
11877
+ QuickInsertEditor.closeQuickToolbar(this.editor);
11874
11878
  }
11875
11879
  else {
11876
11880
  event.preventDefault();
11877
11881
  }
11878
11882
  };
11879
11883
  TheQuickToolbarComponent.prototype.handleEnter = function () {
11880
- this.popoverRef.close();
11884
+ QuickInsertEditor.closeQuickToolbar(this.editor);
11885
+ };
11886
+ TheQuickToolbarComponent.prototype.handleEsc = function () {
11887
+ QuickInsertEditor.closeQuickToolbar(this.editor);
11881
11888
  };
11882
11889
  TheQuickToolbarComponent.prototype.ngOnInit = function () {
11883
11890
  this.editorElement = i1.AngularEditor.toDOMNode(this.editor, this.editor);
@@ -11894,7 +11901,7 @@
11894
11901
  };
11895
11902
  TheQuickToolbarComponent.prototype.removeHotKey = function () {
11896
11903
  var node = slate.Node.get(this.editor, this.editor.selection.anchor.path);
11897
- if (node && slate.Text.equals({ text: QUICK_TOOLBAR_HOTKEY }, node)) {
11904
+ if (node && QUICK_TOOLBAR_HOTKEY === node.text) {
11898
11905
  slate.Editor.deleteBackward(this.editor);
11899
11906
  }
11900
11907
  };
@@ -11904,7 +11911,7 @@
11904
11911
  return TheQuickToolbarComponent;
11905
11912
  }(core.mixinUnsubscribe(core.MixinBase)));
11906
11913
  TheQuickToolbarComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TheQuickToolbarComponent, deps: [{ token: i1__namespace$3.ThyPopoverRef }, { token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
11907
- TheQuickToolbarComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: TheQuickToolbarComponent, selector: "the-quick-toolbar", inputs: { editor: "editor", quickToolbarItems: "quickToolbarItems" }, host: { listeners: { "document: mousedown": "handleMouseDown($event)", "document: keydown.enter": "handleEnter()" } }, usesInheritance: true, ngImport: i0__namespace, template: "<thy-selection-list\n class=\"the-quick-toolbar\"\n [thyBindKeyEventContainer]=\"editorElement\"\n (thySelectionChange)=\"selectionChange($event)\"\n [thyMultiple]=\"false\"\n>\n <ng-container *ngFor=\"let item of quickToolbarItems\">\n <ng-container *ngIf=\"item.key !== ToolbarActionTypes.split; else splitLine\">\n <thy-list-option [thyValue]=\"item?.key\" (mousedown)=\"stopPropagation($event)\">\n <the-toolbar-item [editor]=\"editor\" [item]=\"item\" [itemMode]=\"ToolbarItemMode.vertical\"></the-toolbar-item>\n </thy-list-option>\n </ng-container>\n </ng-container>\n</thy-selection-list>\n\n<ng-template #splitLine>\n <nav-split-line [mode]=\"ToolbarItemMode.horizontal\"></nav-split-line>\n</ng-template>\n", components: [{ type: i2__namespace$2.ThySelectionListComponent, selector: "thy-selection-list,[thy-selection-list]", inputs: ["thyMultiple", "thyBindKeyEventContainer", "thyScrollContainer", "thyBeforeKeydown", "thyUniqueKey", "thyCompareWith", "thyLayout", "thyAutoActiveFirstItem", "thySize", "thySpaceKeyEnabled"], outputs: ["thySelectionChange"] }, { type: i5__namespace$3.ThyListOptionComponent, selector: "thy-list-option,[thy-list-option]", inputs: ["id", "thyValue", "thyDisabled"] }, { type: TheToolbarItemComponent, selector: "the-toolbar-item", inputs: ["item", "editor", "itemMode"] }, { type: NavSplitLineComponent, selector: "nav-split-line", inputs: ["mode"] }], directives: [{ type: i6__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i6__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
11914
+ TheQuickToolbarComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: TheQuickToolbarComponent, selector: "the-quick-toolbar", inputs: { editor: "editor", quickToolbarItems: "quickToolbarItems" }, host: { listeners: { "document: mousedown": "handleMouseDown($event)", "document: keydown.enter": "handleEnter()", "document: keydown.escape": "handleEsc()" } }, usesInheritance: true, ngImport: i0__namespace, template: "<thy-selection-list\n class=\"the-quick-toolbar\"\n [thyBindKeyEventContainer]=\"editorElement\"\n (thySelectionChange)=\"selectionChange($event)\"\n [thyMultiple]=\"false\"\n>\n <ng-container *ngFor=\"let item of quickToolbarItems\">\n <ng-container *ngIf=\"item.key !== ToolbarActionTypes.split; else splitLine\">\n <thy-list-option [thyValue]=\"item?.key\" (mousedown)=\"stopPropagation($event)\">\n <the-toolbar-item [editor]=\"editor\" [item]=\"item\" [itemMode]=\"ToolbarItemMode.vertical\"></the-toolbar-item>\n </thy-list-option>\n </ng-container>\n </ng-container>\n</thy-selection-list>\n\n<ng-template #splitLine>\n <nav-split-line [mode]=\"ToolbarItemMode.horizontal\"></nav-split-line>\n</ng-template>\n", components: [{ type: i2__namespace$2.ThySelectionListComponent, selector: "thy-selection-list,[thy-selection-list]", inputs: ["thyMultiple", "thyBindKeyEventContainer", "thyScrollContainer", "thyBeforeKeydown", "thyUniqueKey", "thyCompareWith", "thyLayout", "thyAutoActiveFirstItem", "thySize", "thySpaceKeyEnabled"], outputs: ["thySelectionChange"] }, { type: i5__namespace$3.ThyListOptionComponent, selector: "thy-list-option,[thy-list-option]", inputs: ["id", "thyValue", "thyDisabled"] }, { type: TheToolbarItemComponent, selector: "the-toolbar-item", inputs: ["item", "editor", "itemMode"] }, { type: NavSplitLineComponent, selector: "nav-split-line", inputs: ["mode"] }], directives: [{ type: i6__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i6__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
11908
11915
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TheQuickToolbarComponent, decorators: [{
11909
11916
  type: i0.Component,
11910
11917
  args: [{
@@ -11921,6 +11928,9 @@
11921
11928
  }], handleEnter: [{
11922
11929
  type: i0.HostListener,
11923
11930
  args: ['document: keydown.enter']
11931
+ }], handleEsc: [{
11932
+ type: i0.HostListener,
11933
+ args: ['document: keydown.escape']
11924
11934
  }] } });
11925
11935
 
11926
11936
  var OperationTypes = ['insert_text', 'remove_node', 'merge_node'];
@@ -12039,7 +12049,8 @@
12039
12049
  return;
12040
12050
  }
12041
12051
  // unset fontSize
12042
- if (FontSizeEditor.unsetFontSize(editor, size, fontSizeMark, isDefaultFontSize)) {
12052
+ if (isDefaultFontSize) {
12053
+ FontSizeEditor.unsetFontSize(editor, size);
12043
12054
  return;
12044
12055
  }
12045
12056
  FontSizeEditor.setFontSizeMark(editor, size);
@@ -12052,21 +12063,17 @@
12052
12063
  // set paragraph text fontSize
12053
12064
  slate.Editor.addMark(editor, exports.MarkTypes.fontSize, Number(size));
12054
12065
  },
12055
- unsetFontSize: function (editor, size, fontSizeMark, isDefaultFontSize) {
12066
+ unsetFontSize: function (editor, size) {
12056
12067
  var _a;
12057
12068
  var isTable = TableEditor.isActive(editor);
12058
- if (fontSizeMark && isDefaultFontSize) {
12059
- // unset Table selectedCells fontSize
12060
- if (isTable && TableEditor.toggleMark(editor, true, exports.MarkTypes.fontSize, Number(size))) {
12061
- return true;
12062
- }
12063
- // unset paragraph text fontSize
12064
- setMarks(editor, (_a = {},
12065
- _a[exports.MarkTypes.fontSize] = null,
12066
- _a), editor.selection);
12067
- return true;
12069
+ // unset Table selectedCells fontSize
12070
+ if (isTable && TableEditor.toggleMark(editor, true, exports.MarkTypes.fontSize, Number(size))) {
12071
+ return;
12068
12072
  }
12069
- return false;
12073
+ // unset paragraph text fontSize
12074
+ setMarks(editor, (_a = {},
12075
+ _a[exports.MarkTypes.fontSize] = null,
12076
+ _a), editor.selection);
12070
12077
  },
12071
12078
  isFontSizeActive: function (editor, size) {
12072
12079
  if (editor.selection) {