@worktile/theia 2.1.5 → 2.1.6

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.
@@ -1539,9 +1539,6 @@ function handleContinualInsertBreak(editor, lowestBlock, type) {
1539
1539
  const aboveResult = Editor.above(editor, {
1540
1540
  match: n => Editor.isBlock(editor, n) && n.type === type
1541
1541
  });
1542
- if (isEnd) {
1543
- editor.marks = {};
1544
- }
1545
1542
  if (aboveResult && aboveResult[0] && isEnd && isEmpty) {
1546
1543
  const wrapBlock = aboveResult[0];
1547
1544
  if (wrapBlock.type === type) {
@@ -2050,6 +2047,35 @@ const getToolbarClass = (editor) => {
2050
2047
  const IS_MAC = typeof window != 'undefined' && /Mac|iPod|iPhone|iPad/.test(window.navigator.platform);
2051
2048
  const CONTROL_KEY = IS_MAC ? '⌘' : 'Ctrl';
2052
2049
 
2050
+ /**
2051
+ * whether the current node is a clean paragraph
2052
+ * @param editor
2053
+ * @param text
2054
+ * @returns boolean
2055
+ */
2056
+ const isCleanEmptyParagraph = (editor) => {
2057
+ const isCollapsedCursor = TheEditor.isFocused(editor) && editor.selection && Range.isCollapsed(editor.selection);
2058
+ if (!isCollapsedCursor) {
2059
+ return false;
2060
+ }
2061
+ const block = Node.ancestor(editor, [editor.selection.anchor.path[0]]);
2062
+ const textIndent = 'textIndent';
2063
+ const align = 'align';
2064
+ const hasTextIndent = block[textIndent];
2065
+ const hasAlign = block[align];
2066
+ if (Node.string(block) === '' &&
2067
+ Element$1.isElement(block) &&
2068
+ block.type === ElementKinds.paragraph &&
2069
+ block.children.length === 1 &&
2070
+ Text.isText(block.children[0]) &&
2071
+ !Editor.isVoid(editor, block) &&
2072
+ !hasTextIndent &&
2073
+ !hasAlign) {
2074
+ return true;
2075
+ }
2076
+ return false;
2077
+ };
2078
+
2053
2079
  const withDeserializeMd = (options) => (editor) => {
2054
2080
  const { insertData, onKeydown } = editor;
2055
2081
  editor.onKeydown = (event) => {
@@ -3017,14 +3043,17 @@ const insertListItem = (editor) => {
3017
3043
  }
3018
3044
  else {
3019
3045
  /**
3020
- * If end, insert a list item after and select it
3046
+ * If end, split nodes
3021
3047
  */
3022
3048
  Editor.withoutNormalizing(editor, () => {
3023
- Transforms.insertNodes(editor, {
3024
- type: ElementKinds.listItem,
3025
- children: [{ type: ElementKinds.paragraph, children: [{ text: '' }] }]
3026
- }, { at: nextListItemPath });
3027
- Transforms.select(editor, nextListItemPath);
3049
+ Transforms.splitNodes(editor, {
3050
+ always: true,
3051
+ mode: 'highest',
3052
+ match: node => {
3053
+ const path = node && TheEditor.findPath(editor, node);
3054
+ return path && path.length === nextListItemPath.length;
3055
+ }
3056
+ });
3028
3057
  });
3029
3058
  }
3030
3059
  /**
@@ -10790,35 +10819,6 @@ const PaintFormatOptions = [
10790
10819
  }
10791
10820
  ];
10792
10821
 
10793
- /**
10794
- * whether the current node is a clean paragraph
10795
- * @param editor
10796
- * @param text
10797
- * @returns boolean
10798
- */
10799
- const isCleanEmptyParagraph = (editor) => {
10800
- const isCollapsedCursor = TheEditor.isFocused(editor) && editor.selection && Range.isCollapsed(editor.selection);
10801
- if (!isCollapsedCursor) {
10802
- return false;
10803
- }
10804
- const block = Node.ancestor(editor, [editor.selection.anchor.path[0]]);
10805
- const textIndent = 'textIndent';
10806
- const align = 'align';
10807
- const hasTextIndent = block[textIndent];
10808
- const hasAlign = block[align];
10809
- if (Node.string(block) === '' &&
10810
- Element$1.isElement(block) &&
10811
- block.type === ElementKinds.paragraph &&
10812
- block.children.length === 1 &&
10813
- Text.isText(block.children[0]) &&
10814
- !Editor.isVoid(editor, block) &&
10815
- !hasTextIndent &&
10816
- !hasAlign) {
10817
- return true;
10818
- }
10819
- return false;
10820
- };
10821
-
10822
10822
  class TheToolbarItemComponent extends TheToolbarBaseItemComponent {
10823
10823
  constructor(ngZone, cfr) {
10824
10824
  super();
@@ -11655,15 +11655,15 @@ class TheToolbarComponent {
11655
11655
  return TheToolbarItemComponent;
11656
11656
  }
11657
11657
  getDropdownItem(item) {
11658
- var _a;
11658
+ var _a, _b, _c;
11659
11659
  let dropdownKey = item === null || item === void 0 ? void 0 : item.dropdownItemKey;
11660
11660
  // modify the fontsize option externally
11661
- const contextService = this.editor.injector.get(TheContextService);
11662
- const fontSize = contextService.getDefaultFontSize();
11663
- if (item.key === MarkTypes.fontSize && fontSize) {
11661
+ const contextService = (_b = (_a = this.editor) === null || _a === void 0 ? void 0 : _a.injector) === null || _b === void 0 ? void 0 : _b.get(TheContextService);
11662
+ const fontSize = contextService === null || contextService === void 0 ? void 0 : contextService.getDefaultFontSize();
11663
+ if (contextService && item.key === MarkTypes.fontSize && fontSize) {
11664
11664
  dropdownKey = fontSize;
11665
11665
  }
11666
- return (_a = item === null || item === void 0 ? void 0 : item.includes) === null || _a === void 0 ? void 0 : _a.find((item) => item.key === dropdownKey);
11666
+ return (_c = item === null || item === void 0 ? void 0 : item.includes) === null || _c === void 0 ? void 0 : _c.find((item) => item.key === dropdownKey);
11667
11667
  }
11668
11668
  }
11669
11669
  TheToolbarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: TheToolbarComponent, deps: [{ token: i0.ComponentFactoryResolver }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: TheToolbarGroupToken }], target: i0.ɵɵFactoryTarget.Component });
@@ -11830,6 +11830,7 @@ class TheQuickInsertComponent {
11830
11830
  this.renderer = renderer;
11831
11831
  this.elementRef = elementRef;
11832
11832
  this.cdr = cdr;
11833
+ this.isVisible = false;
11833
11834
  this.isHide = true;
11834
11835
  this.defaultIconName = 'plus-circle-thin';
11835
11836
  this.iconNameFill = 'plus-circle-thin-fill';
@@ -11840,14 +11841,12 @@ class TheQuickInsertComponent {
11840
11841
  event.stopPropagation();
11841
11842
  }
11842
11843
  checkStatus() {
11844
+ var _a;
11843
11845
  const { editor } = this;
11844
- if (isCleanEmptyParagraph(editor)) {
11845
- setTimeout(() => {
11846
- var _a;
11847
- const block = Node.ancestor(editor, [(_a = editor === null || editor === void 0 ? void 0 : editor.selection) === null || _a === void 0 ? void 0 : _a.anchor.path[0]]);
11848
- const rootNode = AngularEditor.toDOMNode(editor, block);
11849
- this.updatePosition(rootNode.offsetLeft, rootNode.offsetTop);
11850
- });
11846
+ if (this.isVisible && isCleanEmptyParagraph(editor)) {
11847
+ const block = Node.ancestor(editor, [(_a = editor === null || editor === void 0 ? void 0 : editor.selection) === null || _a === void 0 ? void 0 : _a.anchor.path[0]]);
11848
+ const rootNode = AngularEditor.toDOMNode(editor, block);
11849
+ this.updatePosition(rootNode.offsetLeft, rootNode.offsetTop);
11851
11850
  return;
11852
11851
  }
11853
11852
  this.isHide = true;
@@ -11872,7 +11871,7 @@ class TheQuickInsertComponent {
11872
11871
  }
11873
11872
  }
11874
11873
  TheQuickInsertComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: TheQuickInsertComponent, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
11875
- TheQuickInsertComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: TheQuickInsertComponent, selector: "[theQuickInsert]", inputs: { editor: "editor", quickToolbarItems: "quickToolbarItems" }, host: { listeners: { "mousedown": "handleMousedownNativeElement($event)" }, properties: { "class.hide": "isHide" }, classAttribute: "the-quick-insert" }, viewQueries: [{ propertyName: "iconElement", first: true, predicate: ["iconElement"], descendants: true, read: ElementRef }], ngImport: i0, template: "<thy-icon\n #iconElement\n [thyIconName]=\"displayIconName\"\n class=\"quick-insert-icon text-desc font-size-xlg\"\n (mouseenter)=\"mouseEnter($event)\"\n (mouseleave)=\"mouseLeave($event)\"\n (mousedown)=\"handleClick($event)\"\n></thy-icon>\n", components: [{ type: i4$1.ThyIconComponent, selector: "thy-icon", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }] });
11874
+ TheQuickInsertComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: TheQuickInsertComponent, selector: "[theQuickInsert]", inputs: { editor: "editor", quickToolbarItems: "quickToolbarItems", isVisible: "isVisible" }, host: { listeners: { "mousedown": "handleMousedownNativeElement($event)" }, properties: { "class.hide": "isHide" }, classAttribute: "the-quick-insert" }, viewQueries: [{ propertyName: "iconElement", first: true, predicate: ["iconElement"], descendants: true, read: ElementRef }], ngImport: i0, template: "<thy-icon\n #iconElement\n [thyIconName]=\"displayIconName\"\n class=\"quick-insert-icon text-desc font-size-xlg\"\n (mouseenter)=\"mouseEnter($event)\"\n (mouseleave)=\"mouseLeave($event)\"\n (mousedown)=\"handleClick($event)\"\n></thy-icon>\n", components: [{ type: i4$1.ThyIconComponent, selector: "thy-icon", inputs: ["thyIconType", "thyTwotoneColor", "thyIconName", "thyIconRotate", "thyIconSet", "thyIconLegging", "thyIconLinearGradient"] }] });
11876
11875
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: TheQuickInsertComponent, decorators: [{
11877
11876
  type: Component,
11878
11877
  args: [{
@@ -11887,6 +11886,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImpor
11887
11886
  type: Input
11888
11887
  }], quickToolbarItems: [{
11889
11888
  type: Input
11889
+ }], isVisible: [{
11890
+ type: Input
11890
11891
  }], iconElement: [{
11891
11892
  type: ViewChild,
11892
11893
  args: ['iconElement', { read: ElementRef, static: false }]
@@ -11895,82 +11896,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImpor
11895
11896
  args: ['mousedown', ['$event']]
11896
11897
  }] } });
11897
11898
 
11898
- class ThePlaceholderComponent {
11899
- constructor(renderer, elementRef, contextService) {
11900
- this.renderer = renderer;
11901
- this.elementRef = elementRef;
11902
- this.contextService = contextService;
11903
- this.isHide = true;
11904
- }
11905
- handleCompositionStart() {
11906
- var _a;
11907
- if ((_a = this.editor) === null || _a === void 0 ? void 0 : _a.selection) {
11908
- this.hide();
11909
- }
11910
- }
11911
- handleCompositionEnd(event) {
11912
- if (!event.data) {
11913
- this.checkStatus();
11914
- }
11915
- }
11916
- checkStatus() {
11917
- var _a, _b, _c;
11918
- const { editor } = this;
11919
- const isEmptyShow = typeof ((_a = this.options) === null || _a === void 0 ? void 0 : _a.isEmptyShowPlaceholder) === 'undefined' ? true : this.options.isEmptyShowPlaceholder;
11920
- const isMustShow = (_b = this.options) === null || _b === void 0 ? void 0 : _b.isMustShowPlaceholder;
11921
- const isReadonly = (_c = this.options) === null || _c === void 0 ? void 0 : _c.readonly;
11922
- // empty content and no selection processing
11923
- if (!isReadonly && isEmptyShow && isEmptyContent(editor.children)) {
11924
- const firstElementChild = this.contextService.getFirstElementChild();
11925
- const offsetTop = firstElementChild.offsetTop;
11926
- const offsetLeft = firstElementChild.offsetLeft;
11927
- this.updatePosition(offsetLeft, offsetTop);
11928
- return;
11929
- }
11930
- if (isMustShow && isCleanEmptyParagraph(editor)) {
11931
- setTimeout(() => {
11932
- var _a;
11933
- const block = Node.ancestor(editor, [(_a = editor === null || editor === void 0 ? void 0 : editor.selection) === null || _a === void 0 ? void 0 : _a.anchor.path[0]]);
11934
- const rootNode = AngularEditor.toDOMNode(editor, block);
11935
- this.updatePosition(rootNode.offsetLeft, rootNode.offsetTop);
11936
- });
11937
- return;
11938
- }
11939
- this.isHide = true;
11940
- }
11941
- updatePosition(left, top) {
11942
- this.isHide = false;
11943
- this.renderer.setStyle(this.elementRef.nativeElement, 'top', `${top}px`);
11944
- this.renderer.setStyle(this.elementRef.nativeElement, 'left', `${left}px`);
11945
- }
11946
- hide() {
11947
- this.isHide = true;
11948
- }
11949
- }
11950
- ThePlaceholderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: ThePlaceholderComponent, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: TheContextService }], target: i0.ɵɵFactoryTarget.Component });
11951
- ThePlaceholderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: ThePlaceholderComponent, selector: "div[thePlaceholder]", inputs: { editor: "editor", options: "options" }, host: { listeners: { "document:compositionstart": "handleCompositionStart()", "document:compositionend": "handleCompositionEnd($event)" }, properties: { "class.hide": "isHide" }, classAttribute: "the-placeholder" }, ngImport: i0, template: `{{ options?.placeholder }}`, isInline: true });
11952
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: ThePlaceholderComponent, decorators: [{
11953
- type: Component,
11954
- args: [{
11955
- selector: 'div[thePlaceholder]',
11956
- template: `{{ options?.placeholder }}`,
11957
- host: {
11958
- class: 'the-placeholder',
11959
- '[class.hide]': 'isHide'
11960
- }
11961
- }]
11962
- }], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i0.ElementRef }, { type: TheContextService }]; }, propDecorators: { editor: [{
11963
- type: Input
11964
- }], options: [{
11965
- type: Input
11966
- }], handleCompositionStart: [{
11967
- type: HostListener,
11968
- args: ['document:compositionstart']
11969
- }], handleCompositionEnd: [{
11970
- type: HostListener,
11971
- args: ['document:compositionend', ['$event']]
11972
- }] } });
11973
-
11974
11899
  class TheTemplateComponent {
11975
11900
  constructor() {
11976
11901
  this.renderElement = (element) => {
@@ -12189,9 +12114,7 @@ class TheEditorComponent extends mixinUnsubscribe(MixinBase) {
12189
12114
  });
12190
12115
  this.toolbarCalculate();
12191
12116
  setTimeout(() => {
12192
- var _a;
12193
12117
  this.theEditorCreated.emit(this.editor);
12194
- (_a = this.placeholderInstance) === null || _a === void 0 ? void 0 : _a.checkStatus();
12195
12118
  this.applyAutoFocus();
12196
12119
  });
12197
12120
  }
@@ -12242,13 +12165,16 @@ class TheEditorComponent extends mixinUnsubscribe(MixinBase) {
12242
12165
  }
12243
12166
  valueChange(value) {
12244
12167
  var _a, _b, _c, _d, _e, _f;
12245
- (_a = this.theGlobalToolbarInstance) === null || _a === void 0 ? void 0 : _a.statusChange(this.editor);
12246
- (_b = this.quickInsertInstance) === null || _b === void 0 ? void 0 : _b.checkStatus();
12247
- (_c = this.placeholderInstance) === null || _c === void 0 ? void 0 : _c.checkStatus();
12168
+ const isEditable = !((_a = this.theOptions) === null || _a === void 0 ? void 0 : _a.readonly) && !((_b = this.theOptions) === null || _b === void 0 ? void 0 : _b.disabled);
12169
+ (_c = this.theGlobalToolbarInstance) === null || _c === void 0 ? void 0 : _c.statusChange(this.editor);
12170
+ // quick insert button
12171
+ if (isEditable) {
12172
+ (_d = this.quickInsertInstance) === null || _d === void 0 ? void 0 : _d.checkStatus();
12173
+ }
12248
12174
  // auto scroll view
12249
- const scrollContainer = (_d = this.theOptions) === null || _d === void 0 ? void 0 : _d.scrollContainer;
12250
- const maxHeight = (_e = this.theOptions) === null || _e === void 0 ? void 0 : _e.maxHeight;
12251
- if (!((_f = this.theOptions) === null || _f === void 0 ? void 0 : _f.readonly) && (scrollContainer || maxHeight)) {
12175
+ const scrollContainer = (_e = this.theOptions) === null || _e === void 0 ? void 0 : _e.scrollContainer;
12176
+ const maxHeight = (_f = this.theOptions) === null || _f === void 0 ? void 0 : _f.maxHeight;
12177
+ if (isEditable && (scrollContainer || maxHeight)) {
12252
12178
  const container = maxHeight ? DEFAULT_SCROLL_CONTAINER : scrollContainer;
12253
12179
  this.autoScrollView(this.editor, container);
12254
12180
  }
@@ -12373,7 +12299,7 @@ TheEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ver
12373
12299
  useExisting: forwardRef(() => TheEditorComponent),
12374
12300
  multi: true
12375
12301
  }
12376
- ], viewQueries: [{ propertyName: "templateInstance", first: true, predicate: ["templateInstance"], descendants: true, static: true }, { propertyName: "globalToolbarInstance", first: true, predicate: ["globalToolbar"], descendants: true }, { propertyName: "quickInsertInstance", first: true, predicate: ["quickInsert"], descendants: true, static: true }, { propertyName: "placeholderInstance", first: true, predicate: ["placeholder"], descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<the-toolbar\n *ngIf=\"!theOptions?.readonly && !theGlobalToolbar\"\n [ngClass]=\"{\n 'the-toolbar-disabled': theOptions?.disabled\n }\"\n #globalToolbar\n [editor]=\"editor\"\n [toolbarItems]=\"toolbarEntity.global\"\n [containerClass]=\"globalToolbarClass\"\n [align]=\"theOptions?.toolbar?.align\"\n></the-toolbar>\n\n<div\n class=\"the-editable-container\"\n [ngClass]=\"{\n 'the-editor-disabled': theOptions?.disabled,\n 'max-height': maxHeight\n }\"\n [ngStyle]=\"{ 'max-height': maxHeight }\"\n>\n <slate-editable\n class=\"the-editor-typo\"\n [editor]=\"editor\"\n [ngModel]=\"editorValue\"\n (ngModelChange)=\"valueChange($event)\"\n [decorate]=\"decorate\"\n [renderElement]=\"renderElement\"\n [renderText]=\"renderText\"\n [renderLeaf]=\"renderLeaf\"\n [readonly]=\"theOptions?.readonly || theOptions?.disabled\"\n [keydown]=\"onKeyDown\"\n [click]=\"onClick\"\n [paste]=\"onSlaPaste\"\n [beforeInput]=\"onSlaBeforeInput\"\n [blur]=\"onSlaBlur\"\n [focus]=\"onSlaFocus\"\n [copy]=\"onSlaCopy\"\n [cut]=\"onSlaCut\"\n [isStrictDecorate]=\"false\"\n [compositionStart]=\"onSlaCompositionStart\"\n [compositionEnd]=\"onSlaCompositionEnd\"\n [dragStart]=\"onSlaDragStart\"\n [dragOver]=\"onSlaDragOver\"\n [drop]=\"onDrop\"\n (mousedown)=\"mousedown($event)\"\n ></slate-editable>\n <the-inline-toolbar *ngIf=\"!theOptions?.readonly\" [editor]=\"editor\" [toolbarItems]=\"toolbarEntity.inline\"></the-inline-toolbar>\n <div #quickInsert theQuickInsert [editor]=\"editor\" [quickToolbarItems]=\"quickToolbarItems\"></div>\n <div #placeholder thePlaceholder [editor]=\"editor\" [options]=\"theOptions\"></div>\n <the-template #templateInstance></the-template>\n</div>\n", components: [{ type: TheToolbarComponent, selector: "the-toolbar", inputs: ["editor", "toolbarItems", "align", "containerClass", "isMore", "afterTemplate"] }, { type: i1.SlateEditableComponent, selector: "slate-editable", inputs: ["editor", "renderElement", "renderLeaf", "renderText", "decorate", "placeholderDecorate", "isStrictDecorate", "trackBy", "readonly", "placeholder", "beforeInput", "blur", "click", "compositionEnd", "compositionStart", "copy", "cut", "dragOver", "dragStart", "dragEnd", "drop", "focus", "keydown", "paste", "spellCheck", "autoCorrect", "autoCapitalize"] }, { type: TheInlineToolbarComponent, selector: "the-inline-toolbar", inputs: ["editor", "toolbarItems"] }, { type: TheQuickInsertComponent, selector: "[theQuickInsert]", inputs: ["editor", "quickToolbarItems"] }, { type: ThePlaceholderComponent, selector: "div[thePlaceholder]", inputs: ["editor", "options"] }, { type: TheTemplateComponent, selector: "the-template,[theTemplate]" }], directives: [{ type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i6.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i4$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
12302
+ ], viewQueries: [{ propertyName: "templateInstance", first: true, predicate: ["templateInstance"], descendants: true, static: true }, { propertyName: "globalToolbarInstance", first: true, predicate: ["globalToolbar"], descendants: true }, { propertyName: "quickInsertInstance", first: true, predicate: ["quickInsert"], descendants: true, static: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<the-toolbar\n *ngIf=\"!theOptions?.readonly && !theGlobalToolbar\"\n [ngClass]=\"{\n 'the-toolbar-disabled': theOptions?.disabled\n }\"\n #globalToolbar\n [editor]=\"editor\"\n [toolbarItems]=\"toolbarEntity.global\"\n [containerClass]=\"globalToolbarClass\"\n [align]=\"theOptions?.toolbar?.align\"\n></the-toolbar>\n\n<div\n class=\"the-editable-container\"\n [ngClass]=\"{\n 'the-editor-disabled': theOptions?.disabled,\n 'max-height': maxHeight\n }\"\n [ngStyle]=\"{ 'max-height': maxHeight }\"\n>\n <slate-editable\n class=\"the-editor-typo\"\n [editor]=\"editor\"\n [ngModel]=\"editorValue\"\n (ngModelChange)=\"valueChange($event)\"\n [decorate]=\"decorate\"\n [placeholder]=\"theOptions?.placeholder\"\n [placeholderDecorate]=\"theOptions?.placeholderDecorate ? theOptions?.placeholderDecorate : null\"\n [renderElement]=\"renderElement\"\n [renderText]=\"renderText\"\n [renderLeaf]=\"renderLeaf\"\n [readonly]=\"theOptions?.readonly || theOptions?.disabled\"\n [keydown]=\"onKeyDown\"\n [click]=\"onClick\"\n [paste]=\"onSlaPaste\"\n [beforeInput]=\"onSlaBeforeInput\"\n [blur]=\"onSlaBlur\"\n [focus]=\"onSlaFocus\"\n [copy]=\"onSlaCopy\"\n [cut]=\"onSlaCut\"\n [isStrictDecorate]=\"false\"\n [compositionStart]=\"onSlaCompositionStart\"\n [compositionEnd]=\"onSlaCompositionEnd\"\n [dragStart]=\"onSlaDragStart\"\n [dragOver]=\"onSlaDragOver\"\n [drop]=\"onDrop\"\n (mousedown)=\"mousedown($event)\"\n ></slate-editable>\n <the-inline-toolbar *ngIf=\"!theOptions?.readonly\" [editor]=\"editor\" [toolbarItems]=\"toolbarEntity.inline\"></the-inline-toolbar>\n <div\n #quickInsert\n theQuickInsert\n [editor]=\"editor\"\n [quickToolbarItems]=\"quickToolbarItems\"\n [isVisible]=\"theOptions?.quickInsertVisible\"\n ></div>\n <the-template #templateInstance></the-template>\n</div>\n", components: [{ type: TheToolbarComponent, selector: "the-toolbar", inputs: ["editor", "toolbarItems", "align", "containerClass", "isMore", "afterTemplate"] }, { type: i1.SlateEditableComponent, selector: "slate-editable", inputs: ["editor", "renderElement", "renderLeaf", "renderText", "decorate", "placeholderDecorate", "isStrictDecorate", "trackBy", "readonly", "placeholder", "beforeInput", "blur", "click", "compositionEnd", "compositionStart", "copy", "cut", "dragOver", "dragStart", "dragEnd", "drop", "focus", "keydown", "paste", "spellCheck", "autoCorrect", "autoCapitalize"] }, { type: TheInlineToolbarComponent, selector: "the-inline-toolbar", inputs: ["editor", "toolbarItems"] }, { type: TheQuickInsertComponent, selector: "[theQuickInsert]", inputs: ["editor", "quickToolbarItems", "isVisible"] }, { type: TheTemplateComponent, selector: "the-template,[theTemplate]" }], directives: [{ type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i6.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i4$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
12377
12303
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0, type: TheEditorComponent, decorators: [{
12378
12304
  type: Component,
12379
12305
  args: [{
@@ -12420,9 +12346,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImpor
12420
12346
  }], quickInsertInstance: [{
12421
12347
  type: ViewChild,
12422
12348
  args: ['quickInsert', { static: true }]
12423
- }], placeholderInstance: [{
12424
- type: ViewChild,
12425
- args: ['placeholder']
12426
12349
  }] } });
12427
12350
 
12428
12351
  const ENTRY_COMMON_COMPONENTS = [TheColumnResizeOverlayHandleComponent];
@@ -12620,7 +12543,6 @@ const PLUGIN_COMPONENTS = [
12620
12543
  TheTableComponent,
12621
12544
  TheTableRowComponent,
12622
12545
  TheTdComponent,
12623
- ThePlaceholderComponent,
12624
12546
  TheInlineCodeComponent
12625
12547
  ];
12626
12548
  const PIPES = [ElementStylePipe, ElementClassPipe];
@@ -12661,7 +12583,6 @@ TheEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version
12661
12583
  TheTableComponent,
12662
12584
  TheTableRowComponent,
12663
12585
  TheTdComponent,
12664
- ThePlaceholderComponent,
12665
12586
  TheInlineCodeComponent], imports: [CommonModule, SlateModule, FormsModule, ThyIconModule,
12666
12587
  ThyAvatarModule,
12667
12588
  ThyNavModule,
@@ -12711,5 +12632,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImpor
12711
12632
  * Generated bundle index. Do not edit.
12712
12633
  */
12713
12634
 
12714
- export { ALIGN_BLOCK_TYPES, A_TAG_REL_ATTR, AlignEditor, Alignment, BLOCK_DELETEBACKWARD_TYPES, BlockquoteEditor, CLIPBOARD_FORMAT_KEY, CODEMIRROR_PADDING_TOP, CODE_MODES, COMPONENTS, CONTAINER_BLOCKS, CONTROL_KEY, CodeEditor, CodeMode, ColorEditor, DEFAULT_LANGUAGE, DEFAULT_SCROLL_CONTAINER, DefaultElementOptions, DefaultGlobalToolbarDefinition, DefaultInlineToolbarDefinition, DefaultQuickToolbarDefinition, DropdownMode, ELEMENT_UNIQUE_ID, ElementKinds, ErrorCodes, FontSizeTypes, FontSizes, HEADING_TYPES, HeadingEditor, HrEditor, IS_MAC, ImageEditor, LINK_DEFAULT_TEXT, LIST_BLOCK_TYPES, LinkEditor, ListEditor, MarkEditor, MarkProps, MarkTypes, PICTURE_ACCEPTED_UPLOAD_MIME, PICTURE_ACCEPTED_UPLOAD_SIZE, PLUGIN_COMPONENTS, QUICK_TOOLBAR_HOTKEY, QuickInsertEditor, STANDARD_HEADING_TYPES, TAB_SPACE, THE_CODE_MODE_PROVIDER, THE_CODE_MODE_TOKEN, THE_EDITOR_CONVERSION_HINT_REF, THE_EDITOR_QUICK_TOOLBAR_REF, THE_EDITOR_UUID, THE_INLINE_TOOLBAR_TYPES, THE_UPLOAD_SERVICE_TOKEN, TableEditor, TheBaseElementComponent, TheCodeConfig, TheContextService, TheDataMode, TheDefaultElementComponent, TheEditor, TheEditorComponent, TheEditorModule, TheImageComponent, TheMode, index$1 as TheQueries, TheToolbarBaseItemComponent, TheToolbarComponent, TheToolbarDropdownComponent, TheToolbarGroupComponent, TheToolbarGroupToken, TheToolbarItemComponent, TheToolbarService, index as TheTransforms, TodoItemEditor, ToolbarActionTypes, ToolbarAlignment, ToolbarItemMode, ToolbarItemType, ToolbarMoreGroup, VOID_BLOCK_TYPES, VerticalAlignEditor, VerticalAlignment, ZERO_WIDTH_CHAR, createEmptyParagraph, dataDeserialize, dataSerializing, getToolbarClass, htmlToTheia, inValidTypes, plainToTheia, toolbarCompose, withTheEditor };
12635
+ export { ALIGN_BLOCK_TYPES, A_TAG_REL_ATTR, AlignEditor, Alignment, BLOCK_DELETEBACKWARD_TYPES, BlockquoteEditor, CLIPBOARD_FORMAT_KEY, CODEMIRROR_PADDING_TOP, CODE_MODES, COMPONENTS, CONTAINER_BLOCKS, CONTROL_KEY, CodeEditor, CodeMode, ColorEditor, DEFAULT_LANGUAGE, DEFAULT_SCROLL_CONTAINER, DefaultElementOptions, DefaultGlobalToolbarDefinition, DefaultInlineToolbarDefinition, DefaultQuickToolbarDefinition, DropdownMode, ELEMENT_UNIQUE_ID, ElementKinds, ErrorCodes, FontSizeTypes, FontSizes, HEADING_TYPES, HeadingEditor, HrEditor, IS_MAC, ImageEditor, LINK_DEFAULT_TEXT, LIST_BLOCK_TYPES, LinkEditor, ListEditor, MarkEditor, MarkProps, MarkTypes, PICTURE_ACCEPTED_UPLOAD_MIME, PICTURE_ACCEPTED_UPLOAD_SIZE, PLUGIN_COMPONENTS, QUICK_TOOLBAR_HOTKEY, QuickInsertEditor, STANDARD_HEADING_TYPES, TAB_SPACE, THE_CODE_MODE_PROVIDER, THE_CODE_MODE_TOKEN, THE_EDITOR_CONVERSION_HINT_REF, THE_EDITOR_QUICK_TOOLBAR_REF, THE_EDITOR_UUID, THE_INLINE_TOOLBAR_TYPES, THE_UPLOAD_SERVICE_TOKEN, TableEditor, TheBaseElementComponent, TheCodeConfig, TheContextService, TheDataMode, TheDefaultElementComponent, TheEditor, TheEditorComponent, TheEditorModule, TheImageComponent, TheMode, index$1 as TheQueries, TheToolbarBaseItemComponent, TheToolbarComponent, TheToolbarDropdownComponent, TheToolbarGroupComponent, TheToolbarGroupToken, TheToolbarItemComponent, TheToolbarService, index as TheTransforms, TodoItemEditor, ToolbarActionTypes, ToolbarAlignment, ToolbarItemMode, ToolbarItemType, ToolbarMoreGroup, VOID_BLOCK_TYPES, VerticalAlignEditor, VerticalAlignment, ZERO_WIDTH_CHAR, createEmptyParagraph, dataDeserialize, dataSerializing, getToolbarClass, htmlToTheia, inValidTypes, isCleanEmptyParagraph, plainToTheia, toolbarCompose, withTheEditor };
12715
12636
  //# sourceMappingURL=worktile-theia.js.map