slate-angular 14.1.2 → 15.0.0
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/components/block-card/block-card.component.d.ts +1 -1
- package/components/children/children.component.d.ts +1 -1
- package/components/descendant/descendant.component.d.ts +1 -1
- package/components/editable/editable.component.d.ts +1 -1
- package/components/element/default-element.component.d.ts +1 -1
- package/components/element/element.component.d.ts +1 -1
- package/components/leaf/default-leaf.component.d.ts +1 -1
- package/components/leaf/leaf.component.d.ts +1 -1
- package/components/leaves/leaves.component.d.ts +1 -1
- package/components/string/string.component.d.ts +1 -1
- package/components/string/template.component.d.ts +1 -1
- package/components/text/default-text.component.d.ts +1 -1
- package/components/text/void-text.component.d.ts +1 -1
- package/esm2020/components/block-card/block-card.component.mjs +7 -7
- package/esm2020/components/children/children.component.mjs +3 -3
- package/esm2020/components/descendant/descendant.component.mjs +9 -9
- package/esm2020/components/editable/editable.component.mjs +8 -15
- package/esm2020/components/element/default-element.component.mjs +3 -3
- package/esm2020/components/element/element.component.mjs +3 -3
- package/esm2020/components/leaf/default-leaf.component.mjs +3 -3
- package/esm2020/components/leaf/leaf.component.mjs +3 -3
- package/esm2020/components/leaves/leaves.component.mjs +3 -3
- package/esm2020/components/string/string.component.mjs +3 -3
- package/esm2020/components/string/template.component.mjs +3 -3
- package/esm2020/components/text/default-text.component.mjs +3 -3
- package/esm2020/components/text/void-text.component.mjs +3 -3
- package/esm2020/module.mjs +4 -4
- package/esm2020/utils/environment.mjs +3 -3
- package/esm2020/view/base.mjs +17 -17
- package/esm2020/view/container-item.mjs +8 -8
- package/esm2020/view/container.mjs +3 -3
- package/fesm2015/slate-angular.mjs +82 -88
- package/fesm2015/slate-angular.mjs.map +1 -1
- package/fesm2020/slate-angular.mjs +82 -88
- package/fesm2020/slate-angular.mjs.map +1 -1
- package/package.json +5 -5
- package/styles/index.scss +1 -1
- package/types/index.d.ts +1 -1
- package/types/view.d.ts +1 -1
- package/utils/dom.d.ts +1 -1
- package/view/base.d.ts +4 -4
- package/view/container-item.d.ts +1 -1
- package/view/container.d.ts +1 -1
|
@@ -5,7 +5,6 @@ import { TemplateRef, Component, ChangeDetectionStrategy, ViewChild, Directive,
|
|
|
5
5
|
import { __rest } from 'tslib';
|
|
6
6
|
import getDirection from 'direction';
|
|
7
7
|
import { Subject } from 'rxjs';
|
|
8
|
-
import Debug from 'debug';
|
|
9
8
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
10
9
|
import { HistoryEditor } from 'slate-history';
|
|
11
10
|
import * as i1 from '@angular/common';
|
|
@@ -262,7 +261,7 @@ const IS_SAFARI = typeof navigator !== 'undefined' &&
|
|
|
262
261
|
/Version\/[\d\.]+.*Safari/.test(navigator.userAgent);
|
|
263
262
|
// "modern" Edge was released at 79.x
|
|
264
263
|
const IS_EDGE_LEGACY = typeof navigator !== 'undefined' &&
|
|
265
|
-
/Edge?\/(?:[0-6][0-9]|[0-7][0-8])/i.test(navigator.userAgent);
|
|
264
|
+
/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent);
|
|
266
265
|
const IS_CHROME = typeof navigator !== 'undefined' && /Chrome/i.test(navigator.userAgent);
|
|
267
266
|
// Native beforeInput events don't work well with react on Chrome 75 and older, Chrome 76+ can use beforeInput
|
|
268
267
|
const IS_CHROME_LEGACY = typeof navigator !== 'undefined' &&
|
|
@@ -271,7 +270,7 @@ const IS_CHROME_LEGACY = typeof navigator !== 'undefined' &&
|
|
|
271
270
|
!/Chrome?\/(?:\d{3,})/i.test(navigator.userAgent);
|
|
272
271
|
// Firefox did not support `beforeInput` until `v87`.
|
|
273
272
|
const IS_FIREFOX_LEGACY = typeof navigator !== 'undefined' &&
|
|
274
|
-
/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])).*/i.test(navigator.userAgent);
|
|
273
|
+
/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent);
|
|
275
274
|
// qq browser
|
|
276
275
|
const IS_QQBROWSER = typeof navigator !== 'undefined' && /.*QQBrowser/.test(navigator.userAgent);
|
|
277
276
|
// UC mobile browser
|
|
@@ -1617,9 +1616,9 @@ var SlateErrorCode;
|
|
|
1617
1616
|
|
|
1618
1617
|
class SlateStringTemplateComponent {
|
|
1619
1618
|
}
|
|
1620
|
-
SlateStringTemplateComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1621
|
-
SlateStringTemplateComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1622
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1619
|
+
SlateStringTemplateComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateStringTemplateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1620
|
+
SlateStringTemplateComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.4", type: SlateStringTemplateComponent, selector: "slate-string-template", viewQueries: [{ propertyName: "stringTemplate", first: true, predicate: ["stringTemplate"], descendants: true, read: TemplateRef, static: true }, { propertyName: "compatStringTemplate", first: true, predicate: ["compatStringTemplate"], descendants: true, read: TemplateRef, static: true }, { propertyName: "emptyStringTemplate", first: true, predicate: ["emptyStringTemplate"], descendants: true, read: TemplateRef, static: true }, { propertyName: "emptyTextTemplate", first: true, predicate: ["emptyTextTemplate"], descendants: true, read: TemplateRef, static: true }, { propertyName: "lineBreakEmptyStringTemplate", first: true, predicate: ["lineBreakEmptyStringTemplate"], descendants: true, read: TemplateRef, static: true }], ngImport: i0, template: "<ng-template #stringTemplate let-context=\"context\" let-viewContext=\"viewContext\">\n <span editable-text data-slate-string=\"true\">{{ context.text }}</span>\n</ng-template>\n<ng-template #compatStringTemplate let-context=\"context\" let-viewContext=\"viewContext\">\n <!-- Compatible with Chinese input in Chrome with \\n -->\n <span editable-text data-slate-string=\"true\">{{ context.text }}<span data-slate-zero-width>{{'\\uFEFF'}}</span></span>\n</ng-template>\n<ng-template #emptyStringTemplate let-context=\"context\" let-viewContext=\"viewContext\">\n <span editable-text data-slate-zero-width=\"z\" attr.data-slate-length=\"{{ context.elementStringLength }}\">{{ '\\uFEFF' }}</span>\n</ng-template>\n<ng-template #emptyTextTemplate let-context=\"context\" let-viewContext=\"viewContext\">\n <span editable-text data-slate-zero-width=\"z\" data-slate-length=\"0\">{{ '\\uFEFF' }}</span>\n</ng-template>\n<ng-template #lineBreakEmptyStringTemplate let-context=\"context\" let-viewContext=\"viewContext\">\n <span editable-text data-slate-zero-width=\"n\" attr.data-slate-length=\"{{ context.elementStringLength }}\">{{ '\\uFEFF'\n }}<br /></span>\n</ng-template>", changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1621
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateStringTemplateComponent, decorators: [{
|
|
1623
1622
|
type: Component,
|
|
1624
1623
|
args: [{ selector: 'slate-string-template', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template #stringTemplate let-context=\"context\" let-viewContext=\"viewContext\">\n <span editable-text data-slate-string=\"true\">{{ context.text }}</span>\n</ng-template>\n<ng-template #compatStringTemplate let-context=\"context\" let-viewContext=\"viewContext\">\n <!-- Compatible with Chinese input in Chrome with \\n -->\n <span editable-text data-slate-string=\"true\">{{ context.text }}<span data-slate-zero-width>{{'\\uFEFF'}}</span></span>\n</ng-template>\n<ng-template #emptyStringTemplate let-context=\"context\" let-viewContext=\"viewContext\">\n <span editable-text data-slate-zero-width=\"z\" attr.data-slate-length=\"{{ context.elementStringLength }}\">{{ '\\uFEFF' }}</span>\n</ng-template>\n<ng-template #emptyTextTemplate let-context=\"context\" let-viewContext=\"viewContext\">\n <span editable-text data-slate-zero-width=\"z\" data-slate-length=\"0\">{{ '\\uFEFF' }}</span>\n</ng-template>\n<ng-template #lineBreakEmptyStringTemplate let-context=\"context\" let-viewContext=\"viewContext\">\n <span editable-text data-slate-zero-width=\"n\" attr.data-slate-length=\"{{ context.elementStringLength }}\">{{ '\\uFEFF'\n }}<br /></span>\n</ng-template>" }]
|
|
1625
1624
|
}], propDecorators: { stringTemplate: [{
|
|
@@ -1640,15 +1639,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
|
|
|
1640
1639
|
}] } });
|
|
1641
1640
|
|
|
1642
1641
|
class SlateBlockCardComponent {
|
|
1643
|
-
constructor(elementRef) {
|
|
1644
|
-
this.elementRef = elementRef;
|
|
1645
|
-
}
|
|
1646
1642
|
get nativeElement() {
|
|
1647
1643
|
return this.elementRef.nativeElement;
|
|
1648
1644
|
}
|
|
1649
1645
|
get centerContainerElement() {
|
|
1650
1646
|
return this.centerContianer.nativeElement;
|
|
1651
1647
|
}
|
|
1648
|
+
constructor(elementRef) {
|
|
1649
|
+
this.elementRef = elementRef;
|
|
1650
|
+
}
|
|
1652
1651
|
ngOnInit() {
|
|
1653
1652
|
this.append();
|
|
1654
1653
|
this.nativeElement.classList.add(`slate-block-card`);
|
|
@@ -1660,9 +1659,9 @@ class SlateBlockCardComponent {
|
|
|
1660
1659
|
this.centerRootNodes = rootNodes;
|
|
1661
1660
|
}
|
|
1662
1661
|
}
|
|
1663
|
-
SlateBlockCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1664
|
-
SlateBlockCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1665
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1662
|
+
SlateBlockCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateBlockCardComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
1663
|
+
SlateBlockCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.4", type: SlateBlockCardComponent, selector: "slate-block-card, [slateBlockCard]", viewQueries: [{ propertyName: "centerContianer", first: true, predicate: ["centerContianer"], descendants: true, static: true }], ngImport: i0, template: "<span card-target=\"card-left\" class=\"card-left\">{{ '\\uFEFF' }}</span>\n<div card-target=\"card-center\" #centerContianer></div>\n<span card-target=\"card-right\" class=\"card-right\">{{ '\\uFEFF' }}</span>" });
|
|
1664
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateBlockCardComponent, decorators: [{
|
|
1666
1665
|
type: Component,
|
|
1667
1666
|
args: [{ selector: 'slate-block-card, [slateBlockCard]', template: "<span card-target=\"card-left\" class=\"card-left\">{{ '\\uFEFF' }}</span>\n<div card-target=\"card-center\" #centerContianer></div>\n<span card-target=\"card-right\" class=\"card-right\">{{ '\\uFEFF' }}</span>" }]
|
|
1668
1667
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { centerContianer: [{
|
|
@@ -1676,10 +1675,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
|
|
|
1676
1675
|
* If the dynamically created component uses onpush mode, then it must call markForCheck when setting the context
|
|
1677
1676
|
*/
|
|
1678
1677
|
class ViewContainerItem {
|
|
1679
|
-
constructor(viewContainerRef) {
|
|
1680
|
-
this.viewContainerRef = viewContainerRef;
|
|
1681
|
-
this.initialized = false;
|
|
1682
|
-
}
|
|
1683
1678
|
get rootNodes() {
|
|
1684
1679
|
return this.getRootNodes();
|
|
1685
1680
|
}
|
|
@@ -1692,6 +1687,10 @@ class ViewContainerItem {
|
|
|
1692
1687
|
}
|
|
1693
1688
|
return [];
|
|
1694
1689
|
}
|
|
1690
|
+
constructor(viewContainerRef) {
|
|
1691
|
+
this.viewContainerRef = viewContainerRef;
|
|
1692
|
+
this.initialized = false;
|
|
1693
|
+
}
|
|
1695
1694
|
destroyView() {
|
|
1696
1695
|
if (this.embeddedViewRef) {
|
|
1697
1696
|
this.embeddedViewRef.destroy();
|
|
@@ -1761,9 +1760,9 @@ class ViewContainerItem {
|
|
|
1761
1760
|
}
|
|
1762
1761
|
}
|
|
1763
1762
|
}
|
|
1764
|
-
ViewContainerItem.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1765
|
-
ViewContainerItem.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1766
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1763
|
+
ViewContainerItem.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: ViewContainerItem, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1764
|
+
ViewContainerItem.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.4", type: ViewContainerItem, inputs: { viewContext: "viewContext" }, ngImport: i0 });
|
|
1765
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: ViewContainerItem, decorators: [{
|
|
1767
1766
|
type: Directive
|
|
1768
1767
|
}], ctorParameters: function () { return [{ type: i0.ViewContainerRef }]; }, propDecorators: { viewContext: [{
|
|
1769
1768
|
type: Input
|
|
@@ -1780,10 +1779,6 @@ function hasBeforeContextChange(value) {
|
|
|
1780
1779
|
* base class for custom element component or text component
|
|
1781
1780
|
*/
|
|
1782
1781
|
class BaseComponent {
|
|
1783
|
-
constructor(elementRef, cdr) {
|
|
1784
|
-
this.elementRef = elementRef;
|
|
1785
|
-
this.cdr = cdr;
|
|
1786
|
-
}
|
|
1787
1782
|
set context(value) {
|
|
1788
1783
|
if (hasBeforeContextChange(this)) {
|
|
1789
1784
|
this.beforeContextChange(value);
|
|
@@ -1800,10 +1795,14 @@ class BaseComponent {
|
|
|
1800
1795
|
get nativeElement() {
|
|
1801
1796
|
return this.elementRef.nativeElement;
|
|
1802
1797
|
}
|
|
1798
|
+
constructor(elementRef, cdr) {
|
|
1799
|
+
this.elementRef = elementRef;
|
|
1800
|
+
this.cdr = cdr;
|
|
1801
|
+
}
|
|
1803
1802
|
}
|
|
1804
|
-
BaseComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1805
|
-
BaseComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1806
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1803
|
+
BaseComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: BaseComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1804
|
+
BaseComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.4", type: BaseComponent, inputs: { context: "context", viewContext: "viewContext" }, ngImport: i0 });
|
|
1805
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: BaseComponent, decorators: [{
|
|
1807
1806
|
type: Directive
|
|
1808
1807
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { context: [{
|
|
1809
1808
|
type: Input
|
|
@@ -1870,9 +1869,9 @@ class BaseLeafComponent extends BaseComponent {
|
|
|
1870
1869
|
}
|
|
1871
1870
|
}
|
|
1872
1871
|
}
|
|
1873
|
-
BaseLeafComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1874
|
-
BaseLeafComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1875
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1872
|
+
BaseLeafComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: BaseLeafComponent, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1873
|
+
BaseLeafComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.4", type: BaseLeafComponent, host: { properties: { "attr.data-slate-leaf": "this.isSlateLeaf" } }, usesInheritance: true, ngImport: i0 });
|
|
1874
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: BaseLeafComponent, decorators: [{
|
|
1876
1875
|
type: Directive
|
|
1877
1876
|
}], propDecorators: { isSlateLeaf: [{
|
|
1878
1877
|
type: HostBinding,
|
|
@@ -1945,9 +1944,9 @@ class BaseElementComponent extends BaseComponent {
|
|
|
1945
1944
|
};
|
|
1946
1945
|
}
|
|
1947
1946
|
}
|
|
1948
|
-
BaseElementComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1949
|
-
BaseElementComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1950
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1947
|
+
BaseElementComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: BaseElementComponent, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1948
|
+
BaseElementComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.4", type: BaseElementComponent, usesInheritance: true, ngImport: i0 });
|
|
1949
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: BaseElementComponent, decorators: [{
|
|
1951
1950
|
type: Directive
|
|
1952
1951
|
}] });
|
|
1953
1952
|
/**
|
|
@@ -1982,9 +1981,9 @@ class BaseTextComponent extends BaseComponent {
|
|
|
1982
1981
|
this.updateWeakMap();
|
|
1983
1982
|
}
|
|
1984
1983
|
}
|
|
1985
|
-
BaseTextComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1986
|
-
BaseTextComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1987
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1984
|
+
BaseTextComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: BaseTextComponent, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1985
|
+
BaseTextComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.4", type: BaseTextComponent, usesInheritance: true, ngImport: i0 });
|
|
1986
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: BaseTextComponent, decorators: [{
|
|
1988
1987
|
type: Directive
|
|
1989
1988
|
}] });
|
|
1990
1989
|
|
|
@@ -2079,9 +2078,9 @@ class ViewContainer {
|
|
|
2079
2078
|
record.item.appendBlockCardElement();
|
|
2080
2079
|
}
|
|
2081
2080
|
}
|
|
2082
|
-
ViewContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2083
|
-
ViewContainer.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
2084
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2081
|
+
ViewContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: ViewContainer, deps: [{ token: i0.ElementRef }, { token: i0.IterableDiffers }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2082
|
+
ViewContainer.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.4", type: ViewContainer, inputs: { viewContext: "viewContext" }, ngImport: i0 });
|
|
2083
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: ViewContainer, decorators: [{
|
|
2085
2084
|
type: Directive
|
|
2086
2085
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.IterableDiffers }]; }, propDecorators: { viewContext: [{
|
|
2087
2086
|
type: Input
|
|
@@ -2142,9 +2141,9 @@ class SlateStringComponent extends ViewContainerItem {
|
|
|
2142
2141
|
return false;
|
|
2143
2142
|
}
|
|
2144
2143
|
}
|
|
2145
|
-
SlateStringComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2146
|
-
SlateStringComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
2147
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2144
|
+
SlateStringComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateStringComponent, deps: [{ token: i0.ElementRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
2145
|
+
SlateStringComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.4", type: SlateStringComponent, selector: "span[slateString]", inputs: { context: "context" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2146
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateStringComponent, decorators: [{
|
|
2148
2147
|
type: Component,
|
|
2149
2148
|
args: [{
|
|
2150
2149
|
selector: 'span[slateString]',
|
|
@@ -2165,9 +2164,9 @@ class SlateDefaultLeafComponent extends BaseLeafComponent {
|
|
|
2165
2164
|
this.destroyPlaceholder();
|
|
2166
2165
|
}
|
|
2167
2166
|
}
|
|
2168
|
-
SlateDefaultLeafComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2169
|
-
SlateDefaultLeafComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
2170
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2167
|
+
SlateDefaultLeafComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateDefaultLeafComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2168
|
+
SlateDefaultLeafComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.4", type: SlateDefaultLeafComponent, selector: "span[slateDefaultLeaf]", host: { attributes: { "data-slate-leaf": "true" } }, usesInheritance: true, ngImport: i0, template: `<span slateString [context]="context" [viewContext]="viewContext"><span>`, isInline: true, dependencies: [{ kind: "component", type: SlateStringComponent, selector: "span[slateString]", inputs: ["context"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2169
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateDefaultLeafComponent, decorators: [{
|
|
2171
2170
|
type: Component,
|
|
2172
2171
|
args: [{
|
|
2173
2172
|
selector: 'span[slateDefaultLeaf]',
|
|
@@ -2199,9 +2198,9 @@ class SlateLeafComponent extends ViewContainerItem {
|
|
|
2199
2198
|
this.updateView();
|
|
2200
2199
|
}
|
|
2201
2200
|
}
|
|
2202
|
-
SlateLeafComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2203
|
-
SlateLeafComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
2204
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2201
|
+
SlateLeafComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateLeafComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2202
|
+
SlateLeafComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.4", type: SlateLeafComponent, selector: "slate-leaf", inputs: { context: "context" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2203
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateLeafComponent, decorators: [{
|
|
2205
2204
|
type: Component,
|
|
2206
2205
|
args: [{
|
|
2207
2206
|
selector: 'slate-leaf',
|
|
@@ -2249,13 +2248,13 @@ class SlateLeavesComponent extends ViewContainer {
|
|
|
2249
2248
|
return index;
|
|
2250
2249
|
}
|
|
2251
2250
|
}
|
|
2252
|
-
SlateLeavesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2253
|
-
SlateLeavesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
2251
|
+
SlateLeavesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateLeavesComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2252
|
+
SlateLeavesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.4", type: SlateLeavesComponent, selector: "slate-leaves", inputs: { context: "context" }, viewQueries: [{ propertyName: "childrenComponent", predicate: SlateLeafComponent, descendants: true, read: SlateLeafComponent }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `<slate-leaf
|
|
2254
2253
|
[context]="context" [viewContext]="viewContext"
|
|
2255
2254
|
[viewContext]="viewContext"
|
|
2256
2255
|
*ngFor="let context of leafContexts; trackBy: trackBy"></slate-leaf>
|
|
2257
2256
|
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: SlateLeafComponent, selector: "slate-leaf", inputs: ["context"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2258
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2257
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateLeavesComponent, decorators: [{
|
|
2259
2258
|
type: Component,
|
|
2260
2259
|
args: [{
|
|
2261
2260
|
selector: 'slate-leaves',
|
|
@@ -2275,9 +2274,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
|
|
|
2275
2274
|
|
|
2276
2275
|
class SlateDefaultTextComponent extends BaseTextComponent {
|
|
2277
2276
|
}
|
|
2278
|
-
SlateDefaultTextComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2279
|
-
SlateDefaultTextComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
2280
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2277
|
+
SlateDefaultTextComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateDefaultTextComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2278
|
+
SlateDefaultTextComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.4", type: SlateDefaultTextComponent, selector: "span[slateDefaultText]", host: { attributes: { "data-slate-node": "text" } }, usesInheritance: true, ngImport: i0, template: `<slate-leaves [context]="context" [viewContext]="viewContext" [viewContext]="viewContext"></slate-leaves>`, isInline: true, dependencies: [{ kind: "component", type: SlateLeavesComponent, selector: "slate-leaves", inputs: ["context"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2279
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateDefaultTextComponent, decorators: [{
|
|
2281
2280
|
type: Component,
|
|
2282
2281
|
args: [{
|
|
2283
2282
|
selector: 'span[slateDefaultText]',
|
|
@@ -2301,9 +2300,9 @@ class SlateVoidTextComponent extends BaseTextComponent {
|
|
|
2301
2300
|
this.isLeafBlock = AngularEditor.isLeafBlock(this.viewContext.editor, this.context.parent);
|
|
2302
2301
|
}
|
|
2303
2302
|
}
|
|
2304
|
-
SlateVoidTextComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2305
|
-
SlateVoidTextComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
2306
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2303
|
+
SlateVoidTextComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateVoidTextComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2304
|
+
SlateVoidTextComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.4", type: SlateVoidTextComponent, selector: "span[slateVoidText]", host: { attributes: { "data-slate-spacer": "true", "data-slate-node": "text" }, properties: { "attr.contenteditable": "isLeafBlock" }, classAttribute: "slate-spacer" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `<slate-leaves [context]="context" [viewContext]="viewContext" [viewContext]="viewContext"></slate-leaves>`, isInline: true, dependencies: [{ kind: "component", type: SlateLeavesComponent, selector: "slate-leaves", inputs: ["context"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2305
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateVoidTextComponent, decorators: [{
|
|
2307
2306
|
type: Component,
|
|
2308
2307
|
args: [{
|
|
2309
2308
|
selector: 'span[slateVoidText]',
|
|
@@ -2321,11 +2320,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
|
|
|
2321
2320
|
const SLATE_DEFAULT_ELEMENT_COMPONENT_TOKEN = new InjectionToken('slate-default-element-token');
|
|
2322
2321
|
|
|
2323
2322
|
class SlateDescendantComponent extends ViewContainerItem {
|
|
2324
|
-
constructor(viewContainerRef, defaultElementComponentType) {
|
|
2325
|
-
super(viewContainerRef);
|
|
2326
|
-
this.viewContainerRef = viewContainerRef;
|
|
2327
|
-
this.defaultElementComponentType = defaultElementComponentType;
|
|
2328
|
-
}
|
|
2329
2323
|
get rootNodes() {
|
|
2330
2324
|
if (this.blockCardComponentRef) {
|
|
2331
2325
|
return [this.blockCardComponentRef.instance.nativeElement];
|
|
@@ -2335,6 +2329,11 @@ class SlateDescendantComponent extends ViewContainerItem {
|
|
|
2335
2329
|
get isBlockCard() {
|
|
2336
2330
|
return this.viewContext.editor.isBlockCard(this.descendant);
|
|
2337
2331
|
}
|
|
2332
|
+
constructor(viewContainerRef, defaultElementComponentType) {
|
|
2333
|
+
super(viewContainerRef);
|
|
2334
|
+
this.viewContainerRef = viewContainerRef;
|
|
2335
|
+
this.defaultElementComponentType = defaultElementComponentType;
|
|
2336
|
+
}
|
|
2338
2337
|
ngOnInit() {
|
|
2339
2338
|
NODE_TO_INDEX.set(this.descendant, this.index);
|
|
2340
2339
|
NODE_TO_PARENT.set(this.descendant, this.context.parent);
|
|
@@ -2463,9 +2462,9 @@ class SlateDescendantComponent extends ViewContainerItem {
|
|
|
2463
2462
|
}
|
|
2464
2463
|
}
|
|
2465
2464
|
}
|
|
2466
|
-
SlateDescendantComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2467
|
-
SlateDescendantComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
2468
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2465
|
+
SlateDescendantComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateDescendantComponent, deps: [{ token: i0.ViewContainerRef }, { token: SLATE_DEFAULT_ELEMENT_COMPONENT_TOKEN }], target: i0.ɵɵFactoryTarget.Component });
|
|
2466
|
+
SlateDescendantComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.4", type: SlateDescendantComponent, selector: "slate-descendant", inputs: { descendant: "descendant", context: "context", viewContext: "viewContext", index: "index" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2467
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateDescendantComponent, decorators: [{
|
|
2469
2468
|
type: Component,
|
|
2470
2469
|
args: [{
|
|
2471
2470
|
selector: 'slate-descendant',
|
|
@@ -2497,14 +2496,14 @@ class SlateChildrenComponent extends ViewContainer {
|
|
|
2497
2496
|
ngOnInit() {
|
|
2498
2497
|
}
|
|
2499
2498
|
}
|
|
2500
|
-
SlateChildrenComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2501
|
-
SlateChildrenComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
2499
|
+
SlateChildrenComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateChildrenComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2500
|
+
SlateChildrenComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.4", type: SlateChildrenComponent, selector: "slate-children", inputs: { children: "children", context: "context", viewContext: "viewContext" }, viewQueries: [{ propertyName: "childrenComponent", predicate: SlateDescendantComponent, descendants: true, read: SlateDescendantComponent }], usesInheritance: true, ngImport: i0, template: `<slate-descendant
|
|
2502
2501
|
[descendant]="descendant"
|
|
2503
2502
|
[context]="context" [viewContext]="viewContext"
|
|
2504
2503
|
[viewContext]="viewContext"
|
|
2505
2504
|
[index]="index"
|
|
2506
2505
|
*ngFor="let descendant of children;let index = index; trackBy: trackBy"></slate-descendant>`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: SlateDescendantComponent, selector: "slate-descendant", inputs: ["descendant", "context", "viewContext", "index"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2507
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2506
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateChildrenComponent, decorators: [{
|
|
2508
2507
|
type: Component,
|
|
2509
2508
|
args: [{
|
|
2510
2509
|
selector: 'slate-children',
|
|
@@ -2527,10 +2526,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
|
|
|
2527
2526
|
args: [SlateDescendantComponent, { read: SlateDescendantComponent }]
|
|
2528
2527
|
}] } });
|
|
2529
2528
|
|
|
2530
|
-
const timeDebug = Debug('slate-angular-time');
|
|
2531
2529
|
// not correctly clipboardData on beforeinput
|
|
2532
2530
|
const forceOnDOMPaste = IS_SAFARI;
|
|
2533
2531
|
class SlateEditableComponent {
|
|
2532
|
+
get hasBeforeInputSupport() {
|
|
2533
|
+
return HAS_BEFORE_INPUT_SUPPORT;
|
|
2534
|
+
}
|
|
2534
2535
|
constructor(elementRef, renderer2, cdr, ngZone, injector) {
|
|
2535
2536
|
this.elementRef = elementRef;
|
|
2536
2537
|
this.renderer2 = renderer2;
|
|
@@ -2558,9 +2559,6 @@ class SlateEditableComponent {
|
|
|
2558
2559
|
this.dataSlateNode = 'value';
|
|
2559
2560
|
this.dataGramm = false;
|
|
2560
2561
|
}
|
|
2561
|
-
get hasBeforeInputSupport() {
|
|
2562
|
-
return HAS_BEFORE_INPUT_SUPPORT;
|
|
2563
|
-
}
|
|
2564
2562
|
ngOnInit() {
|
|
2565
2563
|
this.editor.injector = this.injector;
|
|
2566
2564
|
this.editor.children = [];
|
|
@@ -2732,13 +2730,10 @@ class SlateEditableComponent {
|
|
|
2732
2730
|
this.onChangeCallback(this.editor.children);
|
|
2733
2731
|
}
|
|
2734
2732
|
ngAfterViewChecked() {
|
|
2735
|
-
timeDebug('editable ngAfterViewChecked');
|
|
2736
2733
|
}
|
|
2737
2734
|
ngDoCheck() {
|
|
2738
|
-
timeDebug('editable ngDoCheck');
|
|
2739
2735
|
}
|
|
2740
2736
|
forceFlush() {
|
|
2741
|
-
timeDebug('start data sync');
|
|
2742
2737
|
this.detectContext();
|
|
2743
2738
|
this.cdr.detectChanges();
|
|
2744
2739
|
// repair collaborative editing when Chinese input is interrupted by other users' cursors
|
|
@@ -2775,7 +2770,6 @@ class SlateEditableComponent {
|
|
|
2775
2770
|
}, 0);
|
|
2776
2771
|
}
|
|
2777
2772
|
this.toNativeSelection();
|
|
2778
|
-
timeDebug('end data sync');
|
|
2779
2773
|
}
|
|
2780
2774
|
initializeContext() {
|
|
2781
2775
|
this.context = {
|
|
@@ -3435,13 +3429,13 @@ class SlateEditableComponent {
|
|
|
3435
3429
|
EDITOR_TO_ON_CHANGE.delete(this.editor);
|
|
3436
3430
|
}
|
|
3437
3431
|
}
|
|
3438
|
-
SlateEditableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3439
|
-
SlateEditableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
3432
|
+
SlateEditableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateEditableComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
3433
|
+
SlateEditableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.4", type: SlateEditableComponent, selector: "slate-editable", inputs: { editor: "editor", renderElement: "renderElement", renderLeaf: "renderLeaf", renderText: "renderText", decorate: "decorate", placeholderDecorate: "placeholderDecorate", isStrictDecorate: "isStrictDecorate", trackBy: "trackBy", readonly: "readonly", placeholder: "placeholder", beforeInput: "beforeInput", blur: "blur", click: "click", compositionEnd: "compositionEnd", compositionStart: "compositionStart", copy: "copy", cut: "cut", dragOver: "dragOver", dragStart: "dragStart", dragEnd: "dragEnd", drop: "drop", focus: "focus", keydown: "keydown", paste: "paste", spellCheck: "spellCheck", autoCorrect: "autoCorrect", autoCapitalize: "autoCapitalize" }, host: { properties: { "attr.contenteditable": "readonly ? undefined : true", "attr.role": "readonly ? undefined : 'textbox'", "attr.spellCheck": "!hasBeforeInputSupport ? false : spellCheck", "attr.autoCorrect": "!hasBeforeInputSupport ? 'false' : autoCorrect", "attr.autoCapitalize": "!hasBeforeInputSupport ? 'false' : autoCapitalize", "attr.data-slate-editor": "this.dataSlateEditor", "attr.data-slate-node": "this.dataSlateNode", "attr.data-gramm": "this.dataGramm" }, classAttribute: "slate-editable-container" }, providers: [{
|
|
3440
3434
|
provide: NG_VALUE_ACCESSOR,
|
|
3441
3435
|
useExisting: forwardRef(() => SlateEditableComponent),
|
|
3442
3436
|
multi: true
|
|
3443
3437
|
}], viewQueries: [{ propertyName: "templateComponent", first: true, predicate: ["templateComponent"], descendants: true, static: true }, { propertyName: "templateElementRef", first: true, predicate: ["templateComponent"], descendants: true, read: ElementRef, static: true }], usesOnChanges: true, ngImport: i0, template: "<slate-children [children]=\"editor.children\" [context]=\"context\" [viewContext]=\"viewContext\"></slate-children>\n<slate-string-template #templateComponent></slate-string-template>", dependencies: [{ kind: "component", type: SlateStringTemplateComponent, selector: "slate-string-template" }, { kind: "component", type: SlateChildrenComponent, selector: "slate-children", inputs: ["children", "context", "viewContext"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3444
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3438
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateEditableComponent, decorators: [{
|
|
3445
3439
|
type: Component,
|
|
3446
3440
|
args: [{ selector: 'slate-editable', host: {
|
|
3447
3441
|
class: 'slate-editable-container',
|
|
@@ -3582,9 +3576,9 @@ const preventInsertFromComposition = (event, editor) => {
|
|
|
3582
3576
|
|
|
3583
3577
|
class SlateElementComponent extends BaseElementComponent {
|
|
3584
3578
|
}
|
|
3585
|
-
SlateElementComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3586
|
-
SlateElementComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
3587
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3579
|
+
SlateElementComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateElementComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
3580
|
+
SlateElementComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.4", type: SlateElementComponent, selector: "[slateElement]", usesInheritance: true, ngImport: i0, template: '<slate-children [children]="children" [context]="childrenContext" [viewContext]="viewContext"></slate-children><ng-content></ng-content>', isInline: true, dependencies: [{ kind: "component", type: SlateChildrenComponent, selector: "slate-children", inputs: ["children", "context", "viewContext"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3581
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateElementComponent, decorators: [{
|
|
3588
3582
|
type: Component,
|
|
3589
3583
|
args: [{
|
|
3590
3584
|
selector: '[slateElement]',
|
|
@@ -3595,9 +3589,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
|
|
|
3595
3589
|
|
|
3596
3590
|
class SlateDefaultElementComponent extends BaseElementComponent {
|
|
3597
3591
|
}
|
|
3598
|
-
SlateDefaultElementComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3599
|
-
SlateDefaultElementComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
3600
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3592
|
+
SlateDefaultElementComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateDefaultElementComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
3593
|
+
SlateDefaultElementComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.4", type: SlateDefaultElementComponent, selector: "div[slateDefaultElement]", usesInheritance: true, ngImport: i0, template: `<slate-children [children]="children" [context]="childrenContext" [viewContext]="viewContext"></slate-children>`, isInline: true, dependencies: [{ kind: "component", type: SlateChildrenComponent, selector: "slate-children", inputs: ["children", "context", "viewContext"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3594
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateDefaultElementComponent, decorators: [{
|
|
3601
3595
|
type: Component,
|
|
3602
3596
|
args: [{
|
|
3603
3597
|
selector: 'div[slateDefaultElement]',
|
|
@@ -3608,8 +3602,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
|
|
|
3608
3602
|
|
|
3609
3603
|
class SlateModule {
|
|
3610
3604
|
}
|
|
3611
|
-
SlateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3612
|
-
SlateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
3605
|
+
SlateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3606
|
+
SlateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.4", ngImport: i0, type: SlateModule, declarations: [SlateEditableComponent,
|
|
3613
3607
|
SlateDefaultElementComponent,
|
|
3614
3608
|
SlateElementComponent,
|
|
3615
3609
|
SlateVoidTextComponent,
|
|
@@ -3622,13 +3616,13 @@ SlateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "1
|
|
|
3622
3616
|
SlateLeafComponent,
|
|
3623
3617
|
SlateLeavesComponent,
|
|
3624
3618
|
SlateDefaultLeafComponent], imports: [CommonModule], exports: [SlateEditableComponent, SlateChildrenComponent, SlateElementComponent, SlateLeavesComponent, SlateStringComponent] });
|
|
3625
|
-
SlateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
3619
|
+
SlateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateModule, providers: [
|
|
3626
3620
|
{
|
|
3627
3621
|
provide: SLATE_DEFAULT_ELEMENT_COMPONENT_TOKEN,
|
|
3628
3622
|
useValue: SlateDefaultElementComponent
|
|
3629
3623
|
},
|
|
3630
3624
|
], imports: [CommonModule] });
|
|
3631
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3625
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateModule, decorators: [{
|
|
3632
3626
|
type: NgModule,
|
|
3633
3627
|
args: [{
|
|
3634
3628
|
declarations: [
|