@worktile/theia 2.2.6 → 2.2.10
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 +78 -59
- 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/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/esm2015/utils/is-clean-empty-paragraph.js +4 -4
- package/fesm2015/worktile-theia.js +77 -58
- package/fesm2015/worktile-theia.js.map +1 -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,
|
|
@@ -2504,7 +2554,7 @@
|
|
|
2504
2554
|
var textIndent = 'textIndent';
|
|
2505
2555
|
var align = 'align';
|
|
2506
2556
|
var hasTextIndent = block[textIndent];
|
|
2507
|
-
var
|
|
2557
|
+
var alignValue = block[align];
|
|
2508
2558
|
var hasIndent = block[exports.ElementKinds.indent];
|
|
2509
2559
|
if (slate.Node.string(block) === '' &&
|
|
2510
2560
|
slate.Element.isElement(block) &&
|
|
@@ -2514,7 +2564,7 @@
|
|
|
2514
2564
|
!slate.Editor.isVoid(editor, block) &&
|
|
2515
2565
|
!hasIndent &&
|
|
2516
2566
|
!hasTextIndent &&
|
|
2517
|
-
!
|
|
2567
|
+
(!alignValue || alignValue === exports.Alignment.left)) {
|
|
2518
2568
|
return true;
|
|
2519
2569
|
}
|
|
2520
2570
|
return false;
|
|
@@ -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: '正文',
|
|
@@ -7652,7 +7670,7 @@
|
|
|
7652
7670
|
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
7653
7671
|
// Put this at the start and end of an inline component to work around this Chromium bug:
|
|
7654
7672
|
// https://bugs.chromium.org/p/chromium/issues/detail?id=1249405
|
|
7655
|
-
_this.inlineChromiumBugfix =
|
|
7673
|
+
_this.inlineChromiumBugfix = String.fromCodePoint(160);
|
|
7656
7674
|
return _this;
|
|
7657
7675
|
}
|
|
7658
7676
|
return TheLinkComponent;
|
|
@@ -9944,7 +9962,7 @@
|
|
|
9944
9962
|
ColumnResizingStore.prototype.restoreTopRows = function (deltaY) {
|
|
9945
9963
|
var index = this.resizeRows.length - 1;
|
|
9946
9964
|
while (index >= 0 && deltaY > 0) {
|
|
9947
|
-
var currentHeight =
|
|
9965
|
+
var currentHeight = this.resizeRows[index].rowElement.getBoundingClientRect().height;
|
|
9948
9966
|
if (this.resizeRows[index].baseHeight > currentHeight) {
|
|
9949
9967
|
if (this.resizeRows[index].baseHeight > currentHeight + deltaY) {
|
|
9950
9968
|
this.resizeRows[index].rowElement.style.height = coercion.coerceCssPixelValue(currentHeight + deltaY);
|
|
@@ -10605,16 +10623,16 @@
|
|
|
10605
10623
|
.pipe(takeUntilDestroyed, operators.filter(function (columnSize) { return columnSize.tableCell === _this.elementRef.nativeElement; }))
|
|
10606
10624
|
.subscribe(function (_c) {
|
|
10607
10625
|
var deltaSize = _c.deltaSize, previousSize = _c.previousSize, completeImmediately = _c.completeImmediately;
|
|
10608
|
-
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;
|
|
10609
10627
|
var clientY = event.clientY, clientX = event.clientX;
|
|
10610
10628
|
var isApplySize = false;
|
|
10611
10629
|
if (_this.isXAxisHover) {
|
|
10612
|
-
var
|
|
10613
|
-
isApplySize = deltaSize > 0 && left +
|
|
10630
|
+
var cellWidth = _this.hoverdDirection === 'left' ? 0 : width;
|
|
10631
|
+
isApplySize = deltaSize > 0 && left + cellWidth - clientX <= 0;
|
|
10614
10632
|
}
|
|
10615
10633
|
else {
|
|
10616
|
-
var
|
|
10617
|
-
isApplySize = deltaSize > 0 && top +
|
|
10634
|
+
var cellHeight = _this.hoverdDirection === 'bottom' ? 0 : height;
|
|
10635
|
+
isApplySize = deltaSize > 0 && top + cellHeight - clientY <= 0;
|
|
10618
10636
|
}
|
|
10619
10637
|
if (isApplySize || deltaSize < 0) {
|
|
10620
10638
|
_this.elementRef.nativeElement.classList.add(OVERLAY_ACTIVE_CLASS);
|
|
@@ -11758,7 +11776,7 @@
|
|
|
11758
11776
|
return TheToolbarItemComponent;
|
|
11759
11777
|
}(TheToolbarBaseItemComponent));
|
|
11760
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 });
|
|
11761
|
-
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"] }] });
|
|
11762
11780
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TheToolbarItemComponent, decorators: [{
|
|
11763
11781
|
type: i0.Component,
|
|
11764
11782
|
args: [{
|
|
@@ -11768,9 +11786,9 @@
|
|
|
11768
11786
|
class: 'the-toolbar-item'
|
|
11769
11787
|
}
|
|
11770
11788
|
}]
|
|
11771
|
-
}], 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: [{
|
|
11772
11790
|
type: i0.Input
|
|
11773
|
-
}],
|
|
11791
|
+
}], item: [{
|
|
11774
11792
|
type: i0.Input
|
|
11775
11793
|
}], itemMode: [{
|
|
11776
11794
|
type: i0.Input
|
|
@@ -11834,7 +11852,7 @@
|
|
|
11834
11852
|
return TheQuickToolbarComponent;
|
|
11835
11853
|
}(core.mixinUnsubscribe(core.MixinBase)));
|
|
11836
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 });
|
|
11837
|
-
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"] }] });
|
|
11838
11856
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TheQuickToolbarComponent, decorators: [{
|
|
11839
11857
|
type: i0.Component,
|
|
11840
11858
|
args: [{
|
|
@@ -12078,12 +12096,12 @@
|
|
|
12078
12096
|
return TheInlineCodeComponent;
|
|
12079
12097
|
}(TheBaseElementComponent));
|
|
12080
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 });
|
|
12081
|
-
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"] }] });
|
|
12082
12100
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TheInlineCodeComponent, decorators: [{
|
|
12083
12101
|
type: i0.Component,
|
|
12084
12102
|
args: [{
|
|
12085
12103
|
selector: 'span[theInlineCode]',
|
|
12086
|
-
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>"
|
|
12087
12105
|
}]
|
|
12088
12106
|
}] });
|
|
12089
12107
|
|
|
@@ -12361,8 +12379,7 @@
|
|
|
12361
12379
|
return false;
|
|
12362
12380
|
}
|
|
12363
12381
|
var _b = __read(startBlock, 2), block = _b[0], path = _b[1];
|
|
12364
|
-
var
|
|
12365
|
-
var isStart = slate.Editor.isStart(editor, selection.anchor, currentPath);
|
|
12382
|
+
var isStart = slate.Editor.isStart(editor, selection.anchor, path);
|
|
12366
12383
|
var textIndentDisable = [exports.ElementKinds.bulletedList, exports.ElementKinds.numberedList, exports.ElementKinds.checkItem];
|
|
12367
12384
|
if (isHotkey.isKeyHotkey('Tab', event)) {
|
|
12368
12385
|
event.preventDefault();
|
|
@@ -12588,8 +12605,9 @@
|
|
|
12588
12605
|
};
|
|
12589
12606
|
|
|
12590
12607
|
var TheToolbarComponent = /** @class */ (function () {
|
|
12591
|
-
function TheToolbarComponent(cfr, elementRef, ngZone, toolbarGroupComponent) {
|
|
12608
|
+
function TheToolbarComponent(cfr, cdr, elementRef, ngZone, toolbarGroupComponent) {
|
|
12592
12609
|
this.cfr = cfr;
|
|
12610
|
+
this.cdr = cdr;
|
|
12593
12611
|
this.elementRef = elementRef;
|
|
12594
12612
|
this.ngZone = ngZone;
|
|
12595
12613
|
this.toolbarGroupComponent = toolbarGroupComponent;
|
|
@@ -12700,6 +12718,7 @@
|
|
|
12700
12718
|
}
|
|
12701
12719
|
_this.createMoreGroup(group);
|
|
12702
12720
|
});
|
|
12721
|
+
this.cdr.markForCheck();
|
|
12703
12722
|
};
|
|
12704
12723
|
/**
|
|
12705
12724
|
* calculation display toolbar and more grouped toolbars
|
|
@@ -12861,7 +12880,7 @@
|
|
|
12861
12880
|
};
|
|
12862
12881
|
return TheToolbarComponent;
|
|
12863
12882
|
}());
|
|
12864
|
-
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 });
|
|
12865
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"] }] });
|
|
12866
12885
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.15", ngImport: i0__namespace, type: TheToolbarComponent, decorators: [{
|
|
12867
12886
|
type: i0.Component,
|
|
@@ -12873,7 +12892,7 @@
|
|
|
12873
12892
|
}
|
|
12874
12893
|
}]
|
|
12875
12894
|
}], ctorParameters: function () {
|
|
12876
|
-
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: [{
|
|
12877
12896
|
type: i0.Inject,
|
|
12878
12897
|
args: [TheToolbarGroupToken]
|
|
12879
12898
|
}] }];
|