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
|
@@ -4,7 +4,6 @@ import * as i0 from '@angular/core';
|
|
|
4
4
|
import { TemplateRef, Component, ChangeDetectionStrategy, ViewChild, Directive, Input, HostBinding, ViewChildren, InjectionToken, Inject, forwardRef, ElementRef, NgModule } from '@angular/core';
|
|
5
5
|
import getDirection from 'direction';
|
|
6
6
|
import { Subject } from 'rxjs';
|
|
7
|
-
import Debug from 'debug';
|
|
8
7
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
9
8
|
import { HistoryEditor } from 'slate-history';
|
|
10
9
|
import * as i1 from '@angular/common';
|
|
@@ -261,7 +260,7 @@ const IS_SAFARI = typeof navigator !== 'undefined' &&
|
|
|
261
260
|
/Version\/[\d\.]+.*Safari/.test(navigator.userAgent);
|
|
262
261
|
// "modern" Edge was released at 79.x
|
|
263
262
|
const IS_EDGE_LEGACY = typeof navigator !== 'undefined' &&
|
|
264
|
-
/Edge?\/(?:[0-6][0-9]|[0-7][0-8])/i.test(navigator.userAgent);
|
|
263
|
+
/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent);
|
|
265
264
|
const IS_CHROME = typeof navigator !== 'undefined' && /Chrome/i.test(navigator.userAgent);
|
|
266
265
|
// Native beforeInput events don't work well with react on Chrome 75 and older, Chrome 76+ can use beforeInput
|
|
267
266
|
const IS_CHROME_LEGACY = typeof navigator !== 'undefined' &&
|
|
@@ -270,7 +269,7 @@ const IS_CHROME_LEGACY = typeof navigator !== 'undefined' &&
|
|
|
270
269
|
!/Chrome?\/(?:\d{3,})/i.test(navigator.userAgent);
|
|
271
270
|
// Firefox did not support `beforeInput` until `v87`.
|
|
272
271
|
const IS_FIREFOX_LEGACY = typeof navigator !== 'undefined' &&
|
|
273
|
-
/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])).*/i.test(navigator.userAgent);
|
|
272
|
+
/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent);
|
|
274
273
|
// qq browser
|
|
275
274
|
const IS_QQBROWSER = typeof navigator !== 'undefined' && /.*QQBrowser/.test(navigator.userAgent);
|
|
276
275
|
// UC mobile browser
|
|
@@ -1616,9 +1615,9 @@ var SlateErrorCode;
|
|
|
1616
1615
|
|
|
1617
1616
|
class SlateStringTemplateComponent {
|
|
1618
1617
|
}
|
|
1619
|
-
SlateStringTemplateComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1620
|
-
SlateStringTemplateComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1621
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1618
|
+
SlateStringTemplateComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateStringTemplateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1619
|
+
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 });
|
|
1620
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateStringTemplateComponent, decorators: [{
|
|
1622
1621
|
type: Component,
|
|
1623
1622
|
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>" }]
|
|
1624
1623
|
}], propDecorators: { stringTemplate: [{
|
|
@@ -1639,15 +1638,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
|
|
|
1639
1638
|
}] } });
|
|
1640
1639
|
|
|
1641
1640
|
class SlateBlockCardComponent {
|
|
1642
|
-
constructor(elementRef) {
|
|
1643
|
-
this.elementRef = elementRef;
|
|
1644
|
-
}
|
|
1645
1641
|
get nativeElement() {
|
|
1646
1642
|
return this.elementRef.nativeElement;
|
|
1647
1643
|
}
|
|
1648
1644
|
get centerContainerElement() {
|
|
1649
1645
|
return this.centerContianer.nativeElement;
|
|
1650
1646
|
}
|
|
1647
|
+
constructor(elementRef) {
|
|
1648
|
+
this.elementRef = elementRef;
|
|
1649
|
+
}
|
|
1651
1650
|
ngOnInit() {
|
|
1652
1651
|
this.append();
|
|
1653
1652
|
this.nativeElement.classList.add(`slate-block-card`);
|
|
@@ -1659,9 +1658,9 @@ class SlateBlockCardComponent {
|
|
|
1659
1658
|
this.centerRootNodes = rootNodes;
|
|
1660
1659
|
}
|
|
1661
1660
|
}
|
|
1662
|
-
SlateBlockCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1663
|
-
SlateBlockCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1664
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1661
|
+
SlateBlockCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateBlockCardComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
1662
|
+
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>" });
|
|
1663
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateBlockCardComponent, decorators: [{
|
|
1665
1664
|
type: Component,
|
|
1666
1665
|
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>" }]
|
|
1667
1666
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { centerContianer: [{
|
|
@@ -1675,10 +1674,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
|
|
|
1675
1674
|
* If the dynamically created component uses onpush mode, then it must call markForCheck when setting the context
|
|
1676
1675
|
*/
|
|
1677
1676
|
class ViewContainerItem {
|
|
1678
|
-
constructor(viewContainerRef) {
|
|
1679
|
-
this.viewContainerRef = viewContainerRef;
|
|
1680
|
-
this.initialized = false;
|
|
1681
|
-
}
|
|
1682
1677
|
get rootNodes() {
|
|
1683
1678
|
return this.getRootNodes();
|
|
1684
1679
|
}
|
|
@@ -1691,6 +1686,10 @@ class ViewContainerItem {
|
|
|
1691
1686
|
}
|
|
1692
1687
|
return [];
|
|
1693
1688
|
}
|
|
1689
|
+
constructor(viewContainerRef) {
|
|
1690
|
+
this.viewContainerRef = viewContainerRef;
|
|
1691
|
+
this.initialized = false;
|
|
1692
|
+
}
|
|
1694
1693
|
destroyView() {
|
|
1695
1694
|
if (this.embeddedViewRef) {
|
|
1696
1695
|
this.embeddedViewRef.destroy();
|
|
@@ -1760,9 +1759,9 @@ class ViewContainerItem {
|
|
|
1760
1759
|
}
|
|
1761
1760
|
}
|
|
1762
1761
|
}
|
|
1763
|
-
ViewContainerItem.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1764
|
-
ViewContainerItem.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1765
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1762
|
+
ViewContainerItem.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: ViewContainerItem, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1763
|
+
ViewContainerItem.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.4", type: ViewContainerItem, inputs: { viewContext: "viewContext" }, ngImport: i0 });
|
|
1764
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: ViewContainerItem, decorators: [{
|
|
1766
1765
|
type: Directive
|
|
1767
1766
|
}], ctorParameters: function () { return [{ type: i0.ViewContainerRef }]; }, propDecorators: { viewContext: [{
|
|
1768
1767
|
type: Input
|
|
@@ -1779,10 +1778,6 @@ function hasBeforeContextChange(value) {
|
|
|
1779
1778
|
* base class for custom element component or text component
|
|
1780
1779
|
*/
|
|
1781
1780
|
class BaseComponent {
|
|
1782
|
-
constructor(elementRef, cdr) {
|
|
1783
|
-
this.elementRef = elementRef;
|
|
1784
|
-
this.cdr = cdr;
|
|
1785
|
-
}
|
|
1786
1781
|
set context(value) {
|
|
1787
1782
|
if (hasBeforeContextChange(this)) {
|
|
1788
1783
|
this.beforeContextChange(value);
|
|
@@ -1799,10 +1794,14 @@ class BaseComponent {
|
|
|
1799
1794
|
get nativeElement() {
|
|
1800
1795
|
return this.elementRef.nativeElement;
|
|
1801
1796
|
}
|
|
1797
|
+
constructor(elementRef, cdr) {
|
|
1798
|
+
this.elementRef = elementRef;
|
|
1799
|
+
this.cdr = cdr;
|
|
1800
|
+
}
|
|
1802
1801
|
}
|
|
1803
|
-
BaseComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1804
|
-
BaseComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1805
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1802
|
+
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 });
|
|
1803
|
+
BaseComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.4", type: BaseComponent, inputs: { context: "context", viewContext: "viewContext" }, ngImport: i0 });
|
|
1804
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: BaseComponent, decorators: [{
|
|
1806
1805
|
type: Directive
|
|
1807
1806
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { context: [{
|
|
1808
1807
|
type: Input
|
|
@@ -1869,9 +1868,9 @@ class BaseLeafComponent extends BaseComponent {
|
|
|
1869
1868
|
}
|
|
1870
1869
|
}
|
|
1871
1870
|
}
|
|
1872
|
-
BaseLeafComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1873
|
-
BaseLeafComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1874
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1871
|
+
BaseLeafComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: BaseLeafComponent, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1872
|
+
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 });
|
|
1873
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: BaseLeafComponent, decorators: [{
|
|
1875
1874
|
type: Directive
|
|
1876
1875
|
}], propDecorators: { isSlateLeaf: [{
|
|
1877
1876
|
type: HostBinding,
|
|
@@ -1944,9 +1943,9 @@ class BaseElementComponent extends BaseComponent {
|
|
|
1944
1943
|
};
|
|
1945
1944
|
}
|
|
1946
1945
|
}
|
|
1947
|
-
BaseElementComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1948
|
-
BaseElementComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1949
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1946
|
+
BaseElementComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: BaseElementComponent, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1947
|
+
BaseElementComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.4", type: BaseElementComponent, usesInheritance: true, ngImport: i0 });
|
|
1948
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: BaseElementComponent, decorators: [{
|
|
1950
1949
|
type: Directive
|
|
1951
1950
|
}] });
|
|
1952
1951
|
/**
|
|
@@ -1981,9 +1980,9 @@ class BaseTextComponent extends BaseComponent {
|
|
|
1981
1980
|
this.updateWeakMap();
|
|
1982
1981
|
}
|
|
1983
1982
|
}
|
|
1984
|
-
BaseTextComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1985
|
-
BaseTextComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1986
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1983
|
+
BaseTextComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: BaseTextComponent, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1984
|
+
BaseTextComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.4", type: BaseTextComponent, usesInheritance: true, ngImport: i0 });
|
|
1985
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: BaseTextComponent, decorators: [{
|
|
1987
1986
|
type: Directive
|
|
1988
1987
|
}] });
|
|
1989
1988
|
|
|
@@ -2078,9 +2077,9 @@ class ViewContainer {
|
|
|
2078
2077
|
record.item.appendBlockCardElement();
|
|
2079
2078
|
}
|
|
2080
2079
|
}
|
|
2081
|
-
ViewContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2082
|
-
ViewContainer.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
2083
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2080
|
+
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 });
|
|
2081
|
+
ViewContainer.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.4", type: ViewContainer, inputs: { viewContext: "viewContext" }, ngImport: i0 });
|
|
2082
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: ViewContainer, decorators: [{
|
|
2084
2083
|
type: Directive
|
|
2085
2084
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.IterableDiffers }]; }, propDecorators: { viewContext: [{
|
|
2086
2085
|
type: Input
|
|
@@ -2141,9 +2140,9 @@ class SlateStringComponent extends ViewContainerItem {
|
|
|
2141
2140
|
return false;
|
|
2142
2141
|
}
|
|
2143
2142
|
}
|
|
2144
|
-
SlateStringComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2145
|
-
SlateStringComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
2146
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2143
|
+
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 });
|
|
2144
|
+
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 });
|
|
2145
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateStringComponent, decorators: [{
|
|
2147
2146
|
type: Component,
|
|
2148
2147
|
args: [{
|
|
2149
2148
|
selector: 'span[slateString]',
|
|
@@ -2164,9 +2163,9 @@ class SlateDefaultLeafComponent extends BaseLeafComponent {
|
|
|
2164
2163
|
this.destroyPlaceholder();
|
|
2165
2164
|
}
|
|
2166
2165
|
}
|
|
2167
|
-
SlateDefaultLeafComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2168
|
-
SlateDefaultLeafComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
2169
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2166
|
+
SlateDefaultLeafComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateDefaultLeafComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2167
|
+
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 });
|
|
2168
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateDefaultLeafComponent, decorators: [{
|
|
2170
2169
|
type: Component,
|
|
2171
2170
|
args: [{
|
|
2172
2171
|
selector: 'span[slateDefaultLeaf]',
|
|
@@ -2198,9 +2197,9 @@ class SlateLeafComponent extends ViewContainerItem {
|
|
|
2198
2197
|
this.updateView();
|
|
2199
2198
|
}
|
|
2200
2199
|
}
|
|
2201
|
-
SlateLeafComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2202
|
-
SlateLeafComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
2203
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2200
|
+
SlateLeafComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateLeafComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2201
|
+
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 });
|
|
2202
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateLeafComponent, decorators: [{
|
|
2204
2203
|
type: Component,
|
|
2205
2204
|
args: [{
|
|
2206
2205
|
selector: 'slate-leaf',
|
|
@@ -2248,13 +2247,13 @@ class SlateLeavesComponent extends ViewContainer {
|
|
|
2248
2247
|
return index;
|
|
2249
2248
|
}
|
|
2250
2249
|
}
|
|
2251
|
-
SlateLeavesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2252
|
-
SlateLeavesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
2250
|
+
SlateLeavesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateLeavesComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2251
|
+
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
|
|
2253
2252
|
[context]="context" [viewContext]="viewContext"
|
|
2254
2253
|
[viewContext]="viewContext"
|
|
2255
2254
|
*ngFor="let context of leafContexts; trackBy: trackBy"></slate-leaf>
|
|
2256
2255
|
`, 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 });
|
|
2257
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2256
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateLeavesComponent, decorators: [{
|
|
2258
2257
|
type: Component,
|
|
2259
2258
|
args: [{
|
|
2260
2259
|
selector: 'slate-leaves',
|
|
@@ -2274,9 +2273,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
|
|
|
2274
2273
|
|
|
2275
2274
|
class SlateDefaultTextComponent extends BaseTextComponent {
|
|
2276
2275
|
}
|
|
2277
|
-
SlateDefaultTextComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2278
|
-
SlateDefaultTextComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
2279
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2276
|
+
SlateDefaultTextComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateDefaultTextComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2277
|
+
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 });
|
|
2278
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateDefaultTextComponent, decorators: [{
|
|
2280
2279
|
type: Component,
|
|
2281
2280
|
args: [{
|
|
2282
2281
|
selector: 'span[slateDefaultText]',
|
|
@@ -2300,9 +2299,9 @@ class SlateVoidTextComponent extends BaseTextComponent {
|
|
|
2300
2299
|
this.isLeafBlock = AngularEditor.isLeafBlock(this.viewContext.editor, this.context.parent);
|
|
2301
2300
|
}
|
|
2302
2301
|
}
|
|
2303
|
-
SlateVoidTextComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2304
|
-
SlateVoidTextComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
2305
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2302
|
+
SlateVoidTextComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateVoidTextComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2303
|
+
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 });
|
|
2304
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateVoidTextComponent, decorators: [{
|
|
2306
2305
|
type: Component,
|
|
2307
2306
|
args: [{
|
|
2308
2307
|
selector: 'span[slateVoidText]',
|
|
@@ -2320,11 +2319,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
|
|
|
2320
2319
|
const SLATE_DEFAULT_ELEMENT_COMPONENT_TOKEN = new InjectionToken('slate-default-element-token');
|
|
2321
2320
|
|
|
2322
2321
|
class SlateDescendantComponent extends ViewContainerItem {
|
|
2323
|
-
constructor(viewContainerRef, defaultElementComponentType) {
|
|
2324
|
-
super(viewContainerRef);
|
|
2325
|
-
this.viewContainerRef = viewContainerRef;
|
|
2326
|
-
this.defaultElementComponentType = defaultElementComponentType;
|
|
2327
|
-
}
|
|
2328
2322
|
get rootNodes() {
|
|
2329
2323
|
if (this.blockCardComponentRef) {
|
|
2330
2324
|
return [this.blockCardComponentRef.instance.nativeElement];
|
|
@@ -2334,6 +2328,11 @@ class SlateDescendantComponent extends ViewContainerItem {
|
|
|
2334
2328
|
get isBlockCard() {
|
|
2335
2329
|
return this.viewContext.editor.isBlockCard(this.descendant);
|
|
2336
2330
|
}
|
|
2331
|
+
constructor(viewContainerRef, defaultElementComponentType) {
|
|
2332
|
+
super(viewContainerRef);
|
|
2333
|
+
this.viewContainerRef = viewContainerRef;
|
|
2334
|
+
this.defaultElementComponentType = defaultElementComponentType;
|
|
2335
|
+
}
|
|
2337
2336
|
ngOnInit() {
|
|
2338
2337
|
NODE_TO_INDEX.set(this.descendant, this.index);
|
|
2339
2338
|
NODE_TO_PARENT.set(this.descendant, this.context.parent);
|
|
@@ -2468,9 +2467,9 @@ class SlateDescendantComponent extends ViewContainerItem {
|
|
|
2468
2467
|
}
|
|
2469
2468
|
}
|
|
2470
2469
|
}
|
|
2471
|
-
SlateDescendantComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2472
|
-
SlateDescendantComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
2473
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2470
|
+
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 });
|
|
2471
|
+
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 });
|
|
2472
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateDescendantComponent, decorators: [{
|
|
2474
2473
|
type: Component,
|
|
2475
2474
|
args: [{
|
|
2476
2475
|
selector: 'slate-descendant',
|
|
@@ -2500,14 +2499,14 @@ class SlateChildrenComponent extends ViewContainer {
|
|
|
2500
2499
|
ngOnInit() {
|
|
2501
2500
|
}
|
|
2502
2501
|
}
|
|
2503
|
-
SlateChildrenComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2504
|
-
SlateChildrenComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
2502
|
+
SlateChildrenComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateChildrenComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2503
|
+
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
|
|
2505
2504
|
[descendant]="descendant"
|
|
2506
2505
|
[context]="context" [viewContext]="viewContext"
|
|
2507
2506
|
[viewContext]="viewContext"
|
|
2508
2507
|
[index]="index"
|
|
2509
2508
|
*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 });
|
|
2510
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2509
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateChildrenComponent, decorators: [{
|
|
2511
2510
|
type: Component,
|
|
2512
2511
|
args: [{
|
|
2513
2512
|
selector: 'slate-children',
|
|
@@ -2530,10 +2529,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
|
|
|
2530
2529
|
args: [SlateDescendantComponent, { read: SlateDescendantComponent }]
|
|
2531
2530
|
}] } });
|
|
2532
2531
|
|
|
2533
|
-
const timeDebug = Debug('slate-angular-time');
|
|
2534
2532
|
// not correctly clipboardData on beforeinput
|
|
2535
2533
|
const forceOnDOMPaste = IS_SAFARI;
|
|
2536
2534
|
class SlateEditableComponent {
|
|
2535
|
+
get hasBeforeInputSupport() {
|
|
2536
|
+
return HAS_BEFORE_INPUT_SUPPORT;
|
|
2537
|
+
}
|
|
2537
2538
|
constructor(elementRef, renderer2, cdr, ngZone, injector) {
|
|
2538
2539
|
this.elementRef = elementRef;
|
|
2539
2540
|
this.renderer2 = renderer2;
|
|
@@ -2561,9 +2562,6 @@ class SlateEditableComponent {
|
|
|
2561
2562
|
this.dataSlateNode = 'value';
|
|
2562
2563
|
this.dataGramm = false;
|
|
2563
2564
|
}
|
|
2564
|
-
get hasBeforeInputSupport() {
|
|
2565
|
-
return HAS_BEFORE_INPUT_SUPPORT;
|
|
2566
|
-
}
|
|
2567
2565
|
ngOnInit() {
|
|
2568
2566
|
this.editor.injector = this.injector;
|
|
2569
2567
|
this.editor.children = [];
|
|
@@ -2735,13 +2733,10 @@ class SlateEditableComponent {
|
|
|
2735
2733
|
this.onChangeCallback(this.editor.children);
|
|
2736
2734
|
}
|
|
2737
2735
|
ngAfterViewChecked() {
|
|
2738
|
-
timeDebug('editable ngAfterViewChecked');
|
|
2739
2736
|
}
|
|
2740
2737
|
ngDoCheck() {
|
|
2741
|
-
timeDebug('editable ngDoCheck');
|
|
2742
2738
|
}
|
|
2743
2739
|
forceFlush() {
|
|
2744
|
-
timeDebug('start data sync');
|
|
2745
2740
|
this.detectContext();
|
|
2746
2741
|
this.cdr.detectChanges();
|
|
2747
2742
|
// repair collaborative editing when Chinese input is interrupted by other users' cursors
|
|
@@ -2778,7 +2773,6 @@ class SlateEditableComponent {
|
|
|
2778
2773
|
}, 0);
|
|
2779
2774
|
}
|
|
2780
2775
|
this.toNativeSelection();
|
|
2781
|
-
timeDebug('end data sync');
|
|
2782
2776
|
}
|
|
2783
2777
|
initializeContext() {
|
|
2784
2778
|
this.context = {
|
|
@@ -3438,13 +3432,13 @@ class SlateEditableComponent {
|
|
|
3438
3432
|
EDITOR_TO_ON_CHANGE.delete(this.editor);
|
|
3439
3433
|
}
|
|
3440
3434
|
}
|
|
3441
|
-
SlateEditableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3442
|
-
SlateEditableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
3435
|
+
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 });
|
|
3436
|
+
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: [{
|
|
3443
3437
|
provide: NG_VALUE_ACCESSOR,
|
|
3444
3438
|
useExisting: forwardRef(() => SlateEditableComponent),
|
|
3445
3439
|
multi: true
|
|
3446
3440
|
}], 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 });
|
|
3447
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3441
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateEditableComponent, decorators: [{
|
|
3448
3442
|
type: Component,
|
|
3449
3443
|
args: [{ selector: 'slate-editable', host: {
|
|
3450
3444
|
class: 'slate-editable-container',
|
|
@@ -3585,9 +3579,9 @@ const preventInsertFromComposition = (event, editor) => {
|
|
|
3585
3579
|
|
|
3586
3580
|
class SlateElementComponent extends BaseElementComponent {
|
|
3587
3581
|
}
|
|
3588
|
-
SlateElementComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3589
|
-
SlateElementComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
3590
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3582
|
+
SlateElementComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateElementComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
3583
|
+
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 });
|
|
3584
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateElementComponent, decorators: [{
|
|
3591
3585
|
type: Component,
|
|
3592
3586
|
args: [{
|
|
3593
3587
|
selector: '[slateElement]',
|
|
@@ -3598,9 +3592,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
|
|
|
3598
3592
|
|
|
3599
3593
|
class SlateDefaultElementComponent extends BaseElementComponent {
|
|
3600
3594
|
}
|
|
3601
|
-
SlateDefaultElementComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3602
|
-
SlateDefaultElementComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
3603
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3595
|
+
SlateDefaultElementComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateDefaultElementComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
3596
|
+
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 });
|
|
3597
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateDefaultElementComponent, decorators: [{
|
|
3604
3598
|
type: Component,
|
|
3605
3599
|
args: [{
|
|
3606
3600
|
selector: 'div[slateDefaultElement]',
|
|
@@ -3611,8 +3605,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
|
|
|
3611
3605
|
|
|
3612
3606
|
class SlateModule {
|
|
3613
3607
|
}
|
|
3614
|
-
SlateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3615
|
-
SlateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
3608
|
+
SlateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3609
|
+
SlateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.4", ngImport: i0, type: SlateModule, declarations: [SlateEditableComponent,
|
|
3616
3610
|
SlateDefaultElementComponent,
|
|
3617
3611
|
SlateElementComponent,
|
|
3618
3612
|
SlateVoidTextComponent,
|
|
@@ -3625,13 +3619,13 @@ SlateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "1
|
|
|
3625
3619
|
SlateLeafComponent,
|
|
3626
3620
|
SlateLeavesComponent,
|
|
3627
3621
|
SlateDefaultLeafComponent], imports: [CommonModule], exports: [SlateEditableComponent, SlateChildrenComponent, SlateElementComponent, SlateLeavesComponent, SlateStringComponent] });
|
|
3628
|
-
SlateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
3622
|
+
SlateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateModule, providers: [
|
|
3629
3623
|
{
|
|
3630
3624
|
provide: SLATE_DEFAULT_ELEMENT_COMPONENT_TOKEN,
|
|
3631
3625
|
useValue: SlateDefaultElementComponent
|
|
3632
3626
|
},
|
|
3633
3627
|
], imports: [CommonModule] });
|
|
3634
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3628
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateModule, decorators: [{
|
|
3635
3629
|
type: NgModule,
|
|
3636
3630
|
args: [{
|
|
3637
3631
|
declarations: [
|