@worktile/theia 2.2.5 → 2.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/worktile-theia.umd.js +85 -60
- package/bundles/worktile-theia.umd.js.map +1 -1
- package/components/toolbar/toolbar.component.d.ts +3 -2
- package/components/toolbar-item/toolbar-item.component.d.ts +3 -4
- package/esm2015/components/column-resize/resizing.store.js +2 -2
- package/esm2015/components/toolbar/toolbar.component.js +6 -4
- package/esm2015/components/toolbar-item/toolbar-item.component.js +4 -4
- package/esm2015/constants/auto-format-rules.js +26 -7
- package/esm2015/plugins/code/code.component.js +10 -4
- package/esm2015/plugins/indent/on-keydown-indent.js +2 -3
- package/esm2015/plugins/inline-code/inline-code.component.js +3 -3
- package/esm2015/plugins/link/link.component.js +2 -2
- package/esm2015/plugins/list/list.editor.js +2 -2
- package/esm2015/plugins/quick-insert/components/quick-toolbar/quick-toolbar.component.js +1 -1
- package/esm2015/plugins/table/components/td/td.component.js +6 -6
- package/fesm2015/worktile-theia.js +84 -59
- package/fesm2015/worktile-theia.js.map +1 -1
- package/interfaces/editor.d.ts +3 -1
- package/package.json +1 -1
- package/plugins/inline-code/inline-code.component.scss +0 -1
|
@@ -2097,7 +2097,7 @@
|
|
|
2097
2097
|
else if (slate.Element.isElement(node) && node.type === exports.ElementKinds.paragraph) {
|
|
2098
2098
|
var textIndent = node.textIndent;
|
|
2099
2099
|
if (textIndent) {
|
|
2100
|
-
slate.Transforms.setNodes(editor, { textIndent: undefined }, // remove
|
|
2100
|
+
slate.Transforms.setNodes(editor, { textIndent: undefined, indent: undefined }, // remove indent
|
|
2101
2101
|
{ at: path });
|
|
2102
2102
|
}
|
|
2103
2103
|
}
|
|
@@ -2228,30 +2228,80 @@
|
|
|
2228
2228
|
}
|
|
2229
2229
|
};
|
|
2230
2230
|
|
|
2231
|
+
var HeadingEditor = {
|
|
2232
|
+
setHeading: function (editor, heading) {
|
|
2233
|
+
slate.Editor.withoutNormalizing(editor, function () {
|
|
2234
|
+
var _a;
|
|
2235
|
+
var types = [exports.ElementKinds.bulletedList, exports.ElementKinds.numberedList, exports.ElementKinds.listItem];
|
|
2236
|
+
slate.Transforms.unwrapNodes(editor, {
|
|
2237
|
+
at: editor.selection,
|
|
2238
|
+
match: function (n) { return slate.Element.isElement(n) && types.includes(n.type); },
|
|
2239
|
+
mode: 'all',
|
|
2240
|
+
split: true
|
|
2241
|
+
});
|
|
2242
|
+
slate.Transforms.setNodes(editor, { type: heading });
|
|
2243
|
+
var entry = anchorBlockEntry(editor);
|
|
2244
|
+
var unMarks = (_a = {},
|
|
2245
|
+
_a[exports.MarkTypes.fontSize] = null,
|
|
2246
|
+
_a);
|
|
2247
|
+
if (entry) {
|
|
2248
|
+
setMarks(editor, unMarks, entry[1]);
|
|
2249
|
+
return;
|
|
2250
|
+
}
|
|
2251
|
+
setMarks(editor, unMarks, editor.selection);
|
|
2252
|
+
});
|
|
2253
|
+
},
|
|
2254
|
+
isHeadingActive: function (editor, heading) {
|
|
2255
|
+
var _a = __read(slate.Editor.nodes(editor, {
|
|
2256
|
+
match: function (n) { return slate.Element.isElement(n) && n.type === heading; },
|
|
2257
|
+
universal: true
|
|
2258
|
+
}), 1), match = _a[0];
|
|
2259
|
+
return !!match;
|
|
2260
|
+
}
|
|
2261
|
+
};
|
|
2262
|
+
|
|
2231
2263
|
var autoFormatRules = [
|
|
2232
2264
|
{
|
|
2233
2265
|
type: exports.ElementKinds.heading_1,
|
|
2234
|
-
markup: '#'
|
|
2266
|
+
markup: '#',
|
|
2267
|
+
format: function (editor) {
|
|
2268
|
+
HeadingEditor.setHeading(editor, exports.ElementKinds.heading_1);
|
|
2269
|
+
}
|
|
2235
2270
|
},
|
|
2236
2271
|
{
|
|
2237
2272
|
type: exports.ElementKinds.heading_2,
|
|
2238
|
-
markup: '##'
|
|
2273
|
+
markup: '##',
|
|
2274
|
+
format: function (editor) {
|
|
2275
|
+
HeadingEditor.setHeading(editor, exports.ElementKinds.heading_2);
|
|
2276
|
+
}
|
|
2239
2277
|
},
|
|
2240
2278
|
{
|
|
2241
2279
|
type: exports.ElementKinds.heading_3,
|
|
2242
|
-
markup: '###'
|
|
2280
|
+
markup: '###',
|
|
2281
|
+
format: function (editor) {
|
|
2282
|
+
HeadingEditor.setHeading(editor, exports.ElementKinds.heading_3);
|
|
2283
|
+
}
|
|
2243
2284
|
},
|
|
2244
2285
|
{
|
|
2245
2286
|
type: exports.ElementKinds.heading_4,
|
|
2246
|
-
markup: '####'
|
|
2287
|
+
markup: '####',
|
|
2288
|
+
format: function (editor) {
|
|
2289
|
+
HeadingEditor.setHeading(editor, exports.ElementKinds.heading_4);
|
|
2290
|
+
}
|
|
2247
2291
|
},
|
|
2248
2292
|
{
|
|
2249
2293
|
type: exports.ElementKinds.heading_5,
|
|
2250
|
-
markup: '#####'
|
|
2294
|
+
markup: '#####',
|
|
2295
|
+
format: function (editor) {
|
|
2296
|
+
HeadingEditor.setHeading(editor, exports.ElementKinds.heading_5);
|
|
2297
|
+
}
|
|
2251
2298
|
},
|
|
2252
2299
|
{
|
|
2253
2300
|
type: exports.ElementKinds.heading_6,
|
|
2254
|
-
markup: '######'
|
|
2301
|
+
markup: '######',
|
|
2302
|
+
format: function (editor) {
|
|
2303
|
+
HeadingEditor.setHeading(editor, exports.ElementKinds.heading_6);
|
|
2304
|
+
}
|
|
2255
2305
|
},
|
|
2256
2306
|
{
|
|
2257
2307
|
type: exports.ElementKinds.blockquote,
|
|
@@ -6106,38 +6156,6 @@
|
|
|
6106
6156
|
}
|
|
6107
6157
|
];
|
|
6108
6158
|
|
|
6109
|
-
var HeadingEditor = {
|
|
6110
|
-
setHeading: function (editor, heading) {
|
|
6111
|
-
slate.Editor.withoutNormalizing(editor, function () {
|
|
6112
|
-
var _a;
|
|
6113
|
-
var types = [exports.ElementKinds.bulletedList, exports.ElementKinds.numberedList, exports.ElementKinds.listItem];
|
|
6114
|
-
slate.Transforms.unwrapNodes(editor, {
|
|
6115
|
-
at: editor.selection,
|
|
6116
|
-
match: function (n) { return slate.Element.isElement(n) && types.includes(n.type); },
|
|
6117
|
-
mode: 'all',
|
|
6118
|
-
split: true
|
|
6119
|
-
});
|
|
6120
|
-
slate.Transforms.setNodes(editor, { type: heading });
|
|
6121
|
-
var entry = anchorBlockEntry(editor);
|
|
6122
|
-
var unMarks = (_a = {},
|
|
6123
|
-
_a[exports.MarkTypes.fontSize] = null,
|
|
6124
|
-
_a);
|
|
6125
|
-
if (entry) {
|
|
6126
|
-
setMarks(editor, unMarks, entry[1]);
|
|
6127
|
-
return;
|
|
6128
|
-
}
|
|
6129
|
-
setMarks(editor, unMarks, editor.selection);
|
|
6130
|
-
});
|
|
6131
|
-
},
|
|
6132
|
-
isHeadingActive: function (editor, heading) {
|
|
6133
|
-
var _a = __read(slate.Editor.nodes(editor, {
|
|
6134
|
-
match: function (n) { return slate.Element.isElement(n) && n.type === heading; },
|
|
6135
|
-
universal: true
|
|
6136
|
-
}), 1), match = _a[0];
|
|
6137
|
-
return !!match;
|
|
6138
|
-
}
|
|
6139
|
-
};
|
|
6140
|
-
|
|
6141
6159
|
var HeadingOptions = [
|
|
6142
6160
|
{
|
|
6143
6161
|
name: '正文',
|
|
@@ -7185,9 +7203,15 @@
|
|
|
7185
7203
|
var span = document.createElement('pre');
|
|
7186
7204
|
span.appendChild(blockCard.cloneNode(true));
|
|
7187
7205
|
span.textContent = this.element.content;
|
|
7188
|
-
|
|
7189
|
-
|
|
7190
|
-
|
|
7206
|
+
if (this.element.language) {
|
|
7207
|
+
span.setAttribute('data-language', this.element.language);
|
|
7208
|
+
}
|
|
7209
|
+
if (this.element.autoWrap) {
|
|
7210
|
+
span.setAttribute('data-auto-wrap', String(this.element.autoWrap));
|
|
7211
|
+
}
|
|
7212
|
+
if (this.element.height) {
|
|
7213
|
+
span.setAttribute('data-height', String(this.element.height));
|
|
7214
|
+
}
|
|
7191
7215
|
document.body.appendChild(span);
|
|
7192
7216
|
var selection = window.getSelection();
|
|
7193
7217
|
var range = document.createRange();
|
|
@@ -7646,7 +7670,7 @@
|
|
|
7646
7670
|
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
7647
7671
|
// Put this at the start and end of an inline component to work around this Chromium bug:
|
|
7648
7672
|
// https://bugs.chromium.org/p/chromium/issues/detail?id=1249405
|
|
7649
|
-
_this.inlineChromiumBugfix =
|
|
7673
|
+
_this.inlineChromiumBugfix = String.fromCodePoint(160);
|
|
7650
7674
|
return _this;
|
|
7651
7675
|
}
|
|
7652
7676
|
return TheLinkComponent;
|
|
@@ -9938,7 +9962,7 @@
|
|
|
9938
9962
|
ColumnResizingStore.prototype.restoreTopRows = function (deltaY) {
|
|
9939
9963
|
var index = this.resizeRows.length - 1;
|
|
9940
9964
|
while (index >= 0 && deltaY > 0) {
|
|
9941
|
-
var currentHeight =
|
|
9965
|
+
var currentHeight = this.resizeRows[index].rowElement.getBoundingClientRect().height;
|
|
9942
9966
|
if (this.resizeRows[index].baseHeight > currentHeight) {
|
|
9943
9967
|
if (this.resizeRows[index].baseHeight > currentHeight + deltaY) {
|
|
9944
9968
|
this.resizeRows[index].rowElement.style.height = coercion.coerceCssPixelValue(currentHeight + deltaY);
|
|
@@ -10599,16 +10623,16 @@
|
|
|
10599
10623
|
.pipe(takeUntilDestroyed, operators.filter(function (columnSize) { return columnSize.tableCell === _this.elementRef.nativeElement; }))
|
|
10600
10624
|
.subscribe(function (_c) {
|
|
10601
10625
|
var deltaSize = _c.deltaSize, previousSize = _c.previousSize, completeImmediately = _c.completeImmediately;
|
|
10602
|
-
var _d = _this.elementRef.nativeElement.getBoundingClientRect(), top = _d.top, left = _d.left;
|
|
10626
|
+
var _d = _this.elementRef.nativeElement.getBoundingClientRect(), top = _d.top, left = _d.left, height = _d.height, width = _d.width;
|
|
10603
10627
|
var clientY = event.clientY, clientX = event.clientX;
|
|
10604
10628
|
var isApplySize = false;
|
|
10605
10629
|
if (_this.isXAxisHover) {
|
|
10606
|
-
var
|
|
10607
|
-
isApplySize = deltaSize > 0 && left +
|
|
10630
|
+
var cellWidth = _this.hoverdDirection === 'left' ? 0 : width;
|
|
10631
|
+
isApplySize = deltaSize > 0 && left + cellWidth - clientX <= 0;
|
|
10608
10632
|
}
|
|
10609
10633
|
else {
|
|
10610
|
-
var
|
|
10611
|
-
isApplySize = deltaSize > 0 && top +
|
|
10634
|
+
var cellHeight = _this.hoverdDirection === 'bottom' ? 0 : height;
|
|
10635
|
+
isApplySize = deltaSize > 0 && top + cellHeight - clientY <= 0;
|
|
10612
10636
|
}
|
|
10613
10637
|
if (isApplySize || deltaSize < 0) {
|
|
10614
10638
|
_this.elementRef.nativeElement.classList.add(OVERLAY_ACTIVE_CLASS);
|
|
@@ -11752,7 +11776,7 @@
|
|
|
11752
11776
|
return TheToolbarItemComponent;
|
|
11753
11777
|
}(TheToolbarBaseItemComponent));
|
|
11754
11778
|
TheToolbarItemComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TheToolbarItemComponent, deps: [{ token: i0__namespace.NgZone }, { token: i0__namespace.ComponentFactoryResolver }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
11755
|
-
TheToolbarItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: TheToolbarItemComponent, selector: "the-toolbar-item", inputs: {
|
|
11779
|
+
TheToolbarItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: TheToolbarItemComponent, selector: "the-toolbar-item", inputs: { editor: "editor", item: "item", itemMode: "itemMode" }, host: { listeners: { "mousedown": "toggleDropdown($event)" }, properties: { "class.disabled": "this.disabledState" }, classAttribute: "the-toolbar-item" }, viewQueries: [{ propertyName: "toolbarContainer", first: true, predicate: ["toolbarContainer"], descendants: true, read: i0.ViewContainerRef, static: true }], usesInheritance: true, ngImport: i0__namespace, template: "\n <ng-container *ngIf=\"itemMode === ToolbarItemMode.horizontal; else selectionItem\">\n <a\n thyIconNavLink\n [thyIconNavLinkIcon]=\"item.icon\"\n [thyTooltip]=\"tooltip\"\n [thyTooltipTemplateContext]=\"{ name: item.name, shortcutKey: item.shortcutKey }\"\n thyTooltipPlacement=\"top\"\n [thyIconNavLinkActive]=\"active\"\n (mousedown)=\"execute($event)\"\n ></a>\n </ng-container>\n <ng-template #selectionItem>\n <ng-container *ngIf=\"!item?.quickItemComponent\">\n <thy-icon [thyIconName]=\"item?.icon\" [thyIconRotate]=\"0\" class=\"quick-toolbar-icon\"></thy-icon>\n <span class=\"quick-toolbar-name\">{{ item?.name }}</span>\n </ng-container>\n </ng-template>\n <ng-template #tooltip let-data> {{ data.name }} {{ data.shortcutKey }} </ng-template>\n <ng-container #toolbarContainer></ng-container>\n ", isInline: true, 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"] }], directives: [{ type: i6__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5__namespace$1.ThyTooltipDirective, selector: "[thyTooltip],[thy-tooltip]", inputs: ["thyTooltip", "thyTooltipPlacement", "thyTooltipClass", "thyTooltipShowDelay", "thyTooltipHideDelay", "thyTooltipTrigger", "thyTooltipDisabled", "thyTooltipTemplateContext", "thyTooltipOffset", "thyTooltipPin"], exportAs: ["thyTooltip"] }] });
|
|
11756
11780
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TheToolbarItemComponent, decorators: [{
|
|
11757
11781
|
type: i0.Component,
|
|
11758
11782
|
args: [{
|
|
@@ -11762,9 +11786,9 @@
|
|
|
11762
11786
|
class: 'the-toolbar-item'
|
|
11763
11787
|
}
|
|
11764
11788
|
}]
|
|
11765
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.NgZone }, { type: i0__namespace.ComponentFactoryResolver }]; }, propDecorators: {
|
|
11789
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.NgZone }, { type: i0__namespace.ComponentFactoryResolver }]; }, propDecorators: { editor: [{
|
|
11766
11790
|
type: i0.Input
|
|
11767
|
-
}],
|
|
11791
|
+
}], item: [{
|
|
11768
11792
|
type: i0.Input
|
|
11769
11793
|
}], itemMode: [{
|
|
11770
11794
|
type: i0.Input
|
|
@@ -11828,7 +11852,7 @@
|
|
|
11828
11852
|
return TheQuickToolbarComponent;
|
|
11829
11853
|
}(core.mixinUnsubscribe(core.MixinBase)));
|
|
11830
11854
|
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 });
|
|
11831
|
-
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: ["
|
|
11855
|
+
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: ["editor", "item", "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"] }] });
|
|
11832
11856
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TheQuickToolbarComponent, decorators: [{
|
|
11833
11857
|
type: i0.Component,
|
|
11834
11858
|
args: [{
|
|
@@ -12072,12 +12096,12 @@
|
|
|
12072
12096
|
return TheInlineCodeComponent;
|
|
12073
12097
|
}(TheBaseElementComponent));
|
|
12074
12098
|
TheInlineCodeComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TheInlineCodeComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
12075
|
-
TheInlineCodeComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: TheInlineCodeComponent, selector: "span[theInlineCode]", usesInheritance: true, ngImport: i0__namespace, template: "
|
|
12099
|
+
TheInlineCodeComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: TheInlineCodeComponent, selector: "span[theInlineCode]", usesInheritance: true, ngImport: i0__namespace, template: "<span contenteditable=\"false\" style=\"font-size: 0;\">{{ inlineChromiumBugfix }}</span>\n <slate-children [children]=\"children\" [context]=\"childrenContext\" [viewContext]=\"viewContext\"></slate-children>\n <span contenteditable=\"false\" style=\"font-size: 0;\">{{ inlineChromiumBugfix }}</span>", isInline: true, components: [{ type: i1__namespace.SlateChildrenComponent, selector: "slate-children", inputs: ["children", "context", "viewContext"] }] });
|
|
12076
12100
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TheInlineCodeComponent, decorators: [{
|
|
12077
12101
|
type: i0.Component,
|
|
12078
12102
|
args: [{
|
|
12079
12103
|
selector: 'span[theInlineCode]',
|
|
12080
|
-
template: "
|
|
12104
|
+
template: "<span contenteditable=\"false\" style=\"font-size: 0;\">{{ inlineChromiumBugfix }}</span>\n <slate-children [children]=\"children\" [context]=\"childrenContext\" [viewContext]=\"viewContext\"></slate-children>\n <span contenteditable=\"false\" style=\"font-size: 0;\">{{ inlineChromiumBugfix }}</span>"
|
|
12081
12105
|
}]
|
|
12082
12106
|
}] });
|
|
12083
12107
|
|
|
@@ -12355,8 +12379,7 @@
|
|
|
12355
12379
|
return false;
|
|
12356
12380
|
}
|
|
12357
12381
|
var _b = __read(startBlock, 2), block = _b[0], path = _b[1];
|
|
12358
|
-
var
|
|
12359
|
-
var isStart = slate.Editor.isStart(editor, selection.anchor, currentPath);
|
|
12382
|
+
var isStart = slate.Editor.isStart(editor, selection.anchor, path);
|
|
12360
12383
|
var textIndentDisable = [exports.ElementKinds.bulletedList, exports.ElementKinds.numberedList, exports.ElementKinds.checkItem];
|
|
12361
12384
|
if (isHotkey.isKeyHotkey('Tab', event)) {
|
|
12362
12385
|
event.preventDefault();
|
|
@@ -12582,8 +12605,9 @@
|
|
|
12582
12605
|
};
|
|
12583
12606
|
|
|
12584
12607
|
var TheToolbarComponent = /** @class */ (function () {
|
|
12585
|
-
function TheToolbarComponent(cfr, elementRef, ngZone, toolbarGroupComponent) {
|
|
12608
|
+
function TheToolbarComponent(cfr, cdr, elementRef, ngZone, toolbarGroupComponent) {
|
|
12586
12609
|
this.cfr = cfr;
|
|
12610
|
+
this.cdr = cdr;
|
|
12587
12611
|
this.elementRef = elementRef;
|
|
12588
12612
|
this.ngZone = ngZone;
|
|
12589
12613
|
this.toolbarGroupComponent = toolbarGroupComponent;
|
|
@@ -12694,6 +12718,7 @@
|
|
|
12694
12718
|
}
|
|
12695
12719
|
_this.createMoreGroup(group);
|
|
12696
12720
|
});
|
|
12721
|
+
this.cdr.markForCheck();
|
|
12697
12722
|
};
|
|
12698
12723
|
/**
|
|
12699
12724
|
* calculation display toolbar and more grouped toolbars
|
|
@@ -12855,7 +12880,7 @@
|
|
|
12855
12880
|
};
|
|
12856
12881
|
return TheToolbarComponent;
|
|
12857
12882
|
}());
|
|
12858
|
-
TheToolbarComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TheToolbarComponent, deps: [{ token: i0__namespace.ComponentFactoryResolver }, { token: i0__namespace.ElementRef }, { token: i0__namespace.NgZone }, { token: TheToolbarGroupToken }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
12883
|
+
TheToolbarComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TheToolbarComponent, deps: [{ token: i0__namespace.ComponentFactoryResolver }, { token: i0__namespace.ChangeDetectorRef }, { token: i0__namespace.ElementRef }, { token: i0__namespace.NgZone }, { token: TheToolbarGroupToken }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
12859
12884
|
TheToolbarComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.15", type: TheToolbarComponent, selector: "the-toolbar", inputs: { editor: "editor", toolbarItems: "toolbarItems", align: "align", containerClass: "containerClass", isMore: "isMore", afterTemplate: "afterTemplate" }, host: { classAttribute: "the-toolbar-container" }, viewQueries: [{ propertyName: "toolbarContainer", first: true, predicate: ["toolbarContainer"], descendants: true, read: i0.ViewContainerRef, static: true }], usesOnChanges: true, ngImport: i0__namespace, template: "<thy-icon-nav [style.justifyContent]=\"align\">\n <ng-container #toolbarContainer></ng-container>\n <ng-content></ng-content>\n <ng-template *ngIf=\"afterTemplate\" [ngTemplateOutlet]=\"afterTemplate\"></ng-template>\n</thy-icon-nav>\n", components: [{ type: i3__namespace.ThyIconNavComponent, selector: "thy-icon-nav", inputs: ["thyType"] }], directives: [{ type: i6__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
|
|
12860
12885
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TheToolbarComponent, decorators: [{
|
|
12861
12886
|
type: i0.Component,
|
|
@@ -12867,7 +12892,7 @@
|
|
|
12867
12892
|
}
|
|
12868
12893
|
}]
|
|
12869
12894
|
}], ctorParameters: function () {
|
|
12870
|
-
return [{ type: i0__namespace.ComponentFactoryResolver }, { type: i0__namespace.ElementRef }, { type: i0__namespace.NgZone }, { type: undefined, decorators: [{
|
|
12895
|
+
return [{ type: i0__namespace.ComponentFactoryResolver }, { type: i0__namespace.ChangeDetectorRef }, { type: i0__namespace.ElementRef }, { type: i0__namespace.NgZone }, { type: undefined, decorators: [{
|
|
12871
12896
|
type: i0.Inject,
|
|
12872
12897
|
args: [TheToolbarGroupToken]
|
|
12873
12898
|
}] }];
|