slate-angular 15.1.2 → 16.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/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/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/{esm2020 → esm2022}/components/block-card/block-card.component.mjs +4 -4
- package/{esm2020 → esm2022}/components/children/children.component.mjs +6 -6
- package/{esm2020 → esm2022}/components/descendant/descendant.component.mjs +4 -4
- package/{esm2020 → esm2022}/components/editable/editable.component.mjs +10 -10
- package/{esm2020 → esm2022}/components/element/default-element.component.mjs +4 -4
- package/{esm2020 → esm2022}/components/element/element.component.mjs +4 -4
- package/{esm2020 → esm2022}/components/leaf/default-leaf.component.mjs +4 -4
- package/{esm2020 → esm2022}/components/leaf/leaf.component.mjs +4 -4
- package/{esm2020 → esm2022}/components/leaves/leaves.component.mjs +6 -8
- package/{esm2020 → esm2022}/components/string/default-string.component.mjs +4 -4
- package/{esm2020 → esm2022}/components/string/string.component.mjs +4 -4
- package/{esm2020 → esm2022}/components/string/template.component.mjs +4 -4
- package/{esm2020 → esm2022}/components/text/default-text.component.mjs +4 -4
- package/{esm2020 → esm2022}/components/text/void-text.component.mjs +4 -4
- package/esm2022/module.mjs +83 -0
- package/{esm2020 → esm2022}/view/base.mjs +13 -13
- package/{esm2020 → esm2022}/view/container-item.mjs +5 -5
- package/{esm2020 → esm2022}/view/container.mjs +4 -4
- package/{fesm2020 → fesm2022}/slate-angular.mjs +98 -100
- package/fesm2022/slate-angular.mjs.map +1 -0
- package/package.json +5 -11
- package/view/base.d.ts +1 -1
- package/view/container-item.d.ts +1 -1
- package/view/container.d.ts +1 -1
- package/esm2020/module.mjs +0 -83
- package/fesm2015/slate-angular.mjs +0 -3930
- package/fesm2015/slate-angular.mjs.map +0 -1
- package/fesm2020/slate-angular.mjs.map +0 -1
- /package/{esm2020 → esm2022}/components/element/default-element.component.token.mjs +0 -0
- /package/{esm2020 → esm2022}/custom-event/BeforeInputEventPlugin.mjs +0 -0
- /package/{esm2020 → esm2022}/custom-event/DOMTopLevelEventTypes.mjs +0 -0
- /package/{esm2020 → esm2022}/custom-event/FallbackCompositionState.mjs +0 -0
- /package/{esm2020 → esm2022}/custom-event/before-input-polyfill.mjs +0 -0
- /package/{esm2020 → esm2022}/plugins/angular-editor.mjs +0 -0
- /package/{esm2020 → esm2022}/plugins/with-angular.mjs +0 -0
- /package/{esm2020 → esm2022}/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/slate-angular.mjs +0 -0
- /package/{esm2020 → esm2022}/types/error.mjs +0 -0
- /package/{esm2020 → esm2022}/types/feature.mjs +0 -0
- /package/{esm2020 → esm2022}/types/index.mjs +0 -0
- /package/{esm2020 → esm2022}/types/view.mjs +0 -0
- /package/{esm2020 → esm2022}/utils/block-card.mjs +0 -0
- /package/{esm2020 → esm2022}/utils/dom.mjs +0 -0
- /package/{esm2020 → esm2022}/utils/environment.mjs +0 -0
- /package/{esm2020 → esm2022}/utils/global-normalize.mjs +0 -0
- /package/{esm2020 → esm2022}/utils/hotkeys.mjs +0 -0
- /package/{esm2020 → esm2022}/utils/index.mjs +0 -0
- /package/{esm2020 → esm2022}/utils/key.mjs +0 -0
- /package/{esm2020 → esm2022}/utils/lines.mjs +0 -0
- /package/{esm2020 → esm2022}/utils/range-list.mjs +0 -0
- /package/{esm2020 → esm2022}/utils/restore-dom.mjs +0 -0
- /package/{esm2020 → esm2022}/utils/view.mjs +0 -0
- /package/{esm2020 → esm2022}/utils/weak-maps.mjs +0 -0
- /package/{esm2020 → esm2022}/view/before-context-change.mjs +0 -0
- /package/{esm2020 → esm2022}/view/context.mjs +0 -0
|
@@ -1647,10 +1647,10 @@ function restoreDom(editor, execute) {
|
|
|
1647
1647
|
}
|
|
1648
1648
|
|
|
1649
1649
|
class SlateStringTemplateComponent {
|
|
1650
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SlateStringTemplateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1651
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.1", type: SlateStringTemplateComponent, selector: "slate-string-template", viewQueries: [{ propertyName: "compatibleStringTemplate", first: true, predicate: ["compatibleStringTemplate"], descendants: true, read: TemplateRef, static: true }, { propertyName: "voidStringTemplate", first: true, predicate: ["voidStringTemplate"], descendants: true, read: TemplateRef, static: true }, { propertyName: "emptyTextTemplate", first: true, predicate: ["emptyTextTemplate"], descendants: true, read: TemplateRef, static: true }], ngImport: i0, template: "<ng-template #compatibleStringTemplate let-context=\"context\" let-viewContext=\"viewContext\">\n <!-- Compatible with Chinese input in Chrome with \\n -->\n <span editable-text data-slate-string=\"true\"\n >{{ context.text }}<span data-slate-zero-width>{{ '\\uFEFF' }}</span></span\n >\n</ng-template>\n<ng-template #voidStringTemplate 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", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1650
1652
|
}
|
|
1651
|
-
|
|
1652
|
-
SlateStringTemplateComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.4", type: SlateStringTemplateComponent, selector: "slate-string-template", viewQueries: [{ propertyName: "compatibleStringTemplate", first: true, predicate: ["compatibleStringTemplate"], descendants: true, read: TemplateRef, static: true }, { propertyName: "voidStringTemplate", first: true, predicate: ["voidStringTemplate"], descendants: true, read: TemplateRef, static: true }, { propertyName: "emptyTextTemplate", first: true, predicate: ["emptyTextTemplate"], descendants: true, read: TemplateRef, static: true }], ngImport: i0, template: "<ng-template #compatibleStringTemplate let-context=\"context\" let-viewContext=\"viewContext\">\n <!-- Compatible with Chinese input in Chrome with \\n -->\n <span editable-text data-slate-string=\"true\"\n >{{ context.text }}<span data-slate-zero-width>{{ '\\uFEFF' }}</span></span\n >\n</ng-template>\n<ng-template #voidStringTemplate 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", changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1653
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateStringTemplateComponent, decorators: [{
|
|
1653
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SlateStringTemplateComponent, decorators: [{
|
|
1654
1654
|
type: Component,
|
|
1655
1655
|
args: [{ selector: 'slate-string-template', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template #compatibleStringTemplate let-context=\"context\" let-viewContext=\"viewContext\">\n <!-- Compatible with Chinese input in Chrome with \\n -->\n <span editable-text data-slate-string=\"true\"\n >{{ context.text }}<span data-slate-zero-width>{{ '\\uFEFF' }}</span></span\n >\n</ng-template>\n<ng-template #voidStringTemplate 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" }]
|
|
1656
1656
|
}], propDecorators: { compatibleStringTemplate: [{
|
|
@@ -1684,10 +1684,10 @@ class SlateBlockCardComponent {
|
|
|
1684
1684
|
initializeCenter(rootNodes) {
|
|
1685
1685
|
this.centerRootNodes = rootNodes;
|
|
1686
1686
|
}
|
|
1687
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SlateBlockCardComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1688
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.1", 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>\n" }); }
|
|
1687
1689
|
}
|
|
1688
|
-
|
|
1689
|
-
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>\n" });
|
|
1690
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateBlockCardComponent, decorators: [{
|
|
1690
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SlateBlockCardComponent, decorators: [{
|
|
1691
1691
|
type: Component,
|
|
1692
1692
|
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>\n" }]
|
|
1693
1693
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { centerContianer: [{
|
|
@@ -1778,8 +1778,8 @@ class ViewContainerItem {
|
|
|
1778
1778
|
}
|
|
1779
1779
|
if (isComponentType(this.viewType)) {
|
|
1780
1780
|
const componentRef = this.viewContainerRef.createComponent(this.viewType);
|
|
1781
|
-
componentRef.instance.context = context;
|
|
1782
1781
|
componentRef.instance.viewContext = this.viewContext;
|
|
1782
|
+
componentRef.instance.context = context;
|
|
1783
1783
|
firstRootNode.replaceWith(componentRef.instance.nativeElement);
|
|
1784
1784
|
this.destroyView();
|
|
1785
1785
|
this.componentRef = componentRef;
|
|
@@ -1791,10 +1791,10 @@ class ViewContainerItem {
|
|
|
1791
1791
|
this.blockCardComponentRef.instance.append();
|
|
1792
1792
|
}
|
|
1793
1793
|
}
|
|
1794
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: ViewContainerItem, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1795
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.1", type: ViewContainerItem, inputs: { viewContext: "viewContext" }, ngImport: i0 }); }
|
|
1794
1796
|
}
|
|
1795
|
-
|
|
1796
|
-
ViewContainerItem.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.4", type: ViewContainerItem, inputs: { viewContext: "viewContext" }, ngImport: i0 });
|
|
1797
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: ViewContainerItem, decorators: [{
|
|
1797
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: ViewContainerItem, decorators: [{
|
|
1798
1798
|
type: Directive
|
|
1799
1799
|
}], ctorParameters: function () { return [{ type: i0.ViewContainerRef }]; }, propDecorators: { viewContext: [{
|
|
1800
1800
|
type: Input
|
|
@@ -1831,10 +1831,10 @@ class BaseComponent {
|
|
|
1831
1831
|
this.elementRef = elementRef;
|
|
1832
1832
|
this.cdr = cdr;
|
|
1833
1833
|
}
|
|
1834
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: BaseComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1835
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.1", type: BaseComponent, inputs: { context: "context", viewContext: "viewContext" }, ngImport: i0 }); }
|
|
1834
1836
|
}
|
|
1835
|
-
|
|
1836
|
-
BaseComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.4", type: BaseComponent, inputs: { context: "context", viewContext: "viewContext" }, ngImport: i0 });
|
|
1837
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: BaseComponent, decorators: [{
|
|
1837
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: BaseComponent, decorators: [{
|
|
1838
1838
|
type: Directive
|
|
1839
1839
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { context: [{
|
|
1840
1840
|
type: Input
|
|
@@ -1900,10 +1900,10 @@ class BaseLeafComponent extends BaseComponent {
|
|
|
1900
1900
|
this.nativeElement.classList.remove('leaf-with-placeholder');
|
|
1901
1901
|
}
|
|
1902
1902
|
}
|
|
1903
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: BaseLeafComponent, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1904
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.1", type: BaseLeafComponent, host: { properties: { "attr.data-slate-leaf": "this.isSlateLeaf" } }, usesInheritance: true, ngImport: i0 }); }
|
|
1903
1905
|
}
|
|
1904
|
-
|
|
1905
|
-
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 });
|
|
1906
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: BaseLeafComponent, decorators: [{
|
|
1906
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: BaseLeafComponent, decorators: [{
|
|
1907
1907
|
type: Directive
|
|
1908
1908
|
}], propDecorators: { isSlateLeaf: [{
|
|
1909
1909
|
type: HostBinding,
|
|
@@ -1975,10 +1975,10 @@ class BaseElementComponent extends BaseComponent {
|
|
|
1975
1975
|
readonly: this._context.readonly
|
|
1976
1976
|
};
|
|
1977
1977
|
}
|
|
1978
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: BaseElementComponent, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1979
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.1", type: BaseElementComponent, usesInheritance: true, ngImport: i0 }); }
|
|
1978
1980
|
}
|
|
1979
|
-
|
|
1980
|
-
BaseElementComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.4", type: BaseElementComponent, usesInheritance: true, ngImport: i0 });
|
|
1981
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: BaseElementComponent, decorators: [{
|
|
1981
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: BaseElementComponent, decorators: [{
|
|
1982
1982
|
type: Directive
|
|
1983
1983
|
}] });
|
|
1984
1984
|
/**
|
|
@@ -2012,10 +2012,10 @@ class BaseTextComponent extends BaseComponent {
|
|
|
2012
2012
|
this.cdr.markForCheck();
|
|
2013
2013
|
this.updateWeakMap();
|
|
2014
2014
|
}
|
|
2015
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: BaseTextComponent, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2016
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.1", type: BaseTextComponent, usesInheritance: true, ngImport: i0 }); }
|
|
2015
2017
|
}
|
|
2016
|
-
|
|
2017
|
-
BaseTextComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.4", type: BaseTextComponent, usesInheritance: true, ngImport: i0 });
|
|
2018
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: BaseTextComponent, decorators: [{
|
|
2018
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: BaseTextComponent, decorators: [{
|
|
2019
2019
|
type: Directive
|
|
2020
2020
|
}] });
|
|
2021
2021
|
|
|
@@ -2109,10 +2109,10 @@ class ViewContainer {
|
|
|
2109
2109
|
// Solve the block-card DOMElement loss when moving nodes
|
|
2110
2110
|
record.item.appendBlockCardElement();
|
|
2111
2111
|
}
|
|
2112
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: ViewContainer, deps: [{ token: i0.ElementRef }, { token: i0.IterableDiffers }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2113
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.1", type: ViewContainer, inputs: { viewContext: "viewContext" }, ngImport: i0 }); }
|
|
2112
2114
|
}
|
|
2113
|
-
|
|
2114
|
-
ViewContainer.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.4", type: ViewContainer, inputs: { viewContext: "viewContext" }, ngImport: i0 });
|
|
2115
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: ViewContainer, decorators: [{
|
|
2115
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: ViewContainer, decorators: [{
|
|
2116
2116
|
type: Directive
|
|
2117
2117
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.IterableDiffers }]; }, propDecorators: { viewContext: [{
|
|
2118
2118
|
type: Input
|
|
@@ -2182,10 +2182,10 @@ class SlateDefaultStringComponent extends BaseComponent {
|
|
|
2182
2182
|
ngOnInit() {
|
|
2183
2183
|
this.nativeElement.setAttribute('editable-text', '');
|
|
2184
2184
|
}
|
|
2185
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SlateDefaultStringComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2186
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.1", type: SlateDefaultStringComponent, selector: "span[slateDefaultString]", usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2185
2187
|
}
|
|
2186
|
-
|
|
2187
|
-
SlateDefaultStringComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.4", type: SlateDefaultStringComponent, selector: "span[slateDefaultString]", usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2188
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateDefaultStringComponent, decorators: [{
|
|
2188
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SlateDefaultStringComponent, decorators: [{
|
|
2189
2189
|
type: Component,
|
|
2190
2190
|
args: [{
|
|
2191
2191
|
selector: 'span[slateDefaultString]',
|
|
@@ -2271,10 +2271,10 @@ class SlateStringComponent extends ViewContainerItem {
|
|
|
2271
2271
|
memoizedContext(prev, next) {
|
|
2272
2272
|
return false;
|
|
2273
2273
|
}
|
|
2274
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SlateStringComponent, deps: [{ token: i0.ElementRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2275
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.1", type: SlateStringComponent, selector: "span[slateString]", inputs: { context: "context" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2274
2276
|
}
|
|
2275
|
-
|
|
2276
|
-
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 });
|
|
2277
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateStringComponent, decorators: [{
|
|
2277
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SlateStringComponent, decorators: [{
|
|
2278
2278
|
type: Component,
|
|
2279
2279
|
args: [{
|
|
2280
2280
|
selector: 'span[slateString]',
|
|
@@ -2294,10 +2294,10 @@ class SlateDefaultLeafComponent extends BaseLeafComponent {
|
|
|
2294
2294
|
// Because the placeholder span is not in the current component, it is destroyed along with the current component
|
|
2295
2295
|
this.destroyPlaceholder();
|
|
2296
2296
|
}
|
|
2297
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SlateDefaultLeafComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
2298
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.1", type: SlateDefaultLeafComponent, selector: "span[slateDefaultLeaf]", host: { attributes: { "data-slate-leaf": "true" } }, usesInheritance: true, ngImport: i0, template: `<span slateString [context]="context" [viewContext]="viewContext"><span></span></span>`, isInline: true, dependencies: [{ kind: "component", type: SlateStringComponent, selector: "span[slateString]", inputs: ["context"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2297
2299
|
}
|
|
2298
|
-
|
|
2299
|
-
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></span></span>`, isInline: true, dependencies: [{ kind: "component", type: SlateStringComponent, selector: "span[slateString]", inputs: ["context"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2300
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateDefaultLeafComponent, decorators: [{
|
|
2300
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SlateDefaultLeafComponent, decorators: [{
|
|
2301
2301
|
type: Component,
|
|
2302
2302
|
args: [{
|
|
2303
2303
|
selector: 'span[slateDefaultLeaf]',
|
|
@@ -2328,10 +2328,10 @@ class SlateLeafComponent extends ViewContainerItem {
|
|
|
2328
2328
|
}
|
|
2329
2329
|
this.updateView();
|
|
2330
2330
|
}
|
|
2331
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SlateLeafComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
2332
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.1", type: SlateLeafComponent, selector: "slate-leaf", inputs: { context: "context" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2331
2333
|
}
|
|
2332
|
-
|
|
2333
|
-
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 });
|
|
2334
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateLeafComponent, decorators: [{
|
|
2334
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SlateLeafComponent, decorators: [{
|
|
2335
2335
|
type: Component,
|
|
2336
2336
|
args: [{
|
|
2337
2337
|
selector: 'slate-leaf',
|
|
@@ -2378,22 +2378,20 @@ class SlateLeavesComponent extends ViewContainer {
|
|
|
2378
2378
|
trackBy(index, item) {
|
|
2379
2379
|
return index;
|
|
2380
2380
|
}
|
|
2381
|
-
}
|
|
2382
|
-
|
|
2383
|
-
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
|
|
2381
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SlateLeavesComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
2382
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.1", 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
|
|
2384
2383
|
[context]="context"
|
|
2385
2384
|
[viewContext]="viewContext"
|
|
2386
|
-
[viewContext]="viewContext"
|
|
2387
2385
|
*ngFor="let context of leafContexts; trackBy: trackBy"
|
|
2388
|
-
></slate-leaf>`, 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 });
|
|
2389
|
-
|
|
2386
|
+
></slate-leaf>`, 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 }); }
|
|
2387
|
+
}
|
|
2388
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SlateLeavesComponent, decorators: [{
|
|
2390
2389
|
type: Component,
|
|
2391
2390
|
args: [{
|
|
2392
2391
|
selector: 'slate-leaves',
|
|
2393
2392
|
template: `<slate-leaf
|
|
2394
2393
|
[context]="context"
|
|
2395
2394
|
[viewContext]="viewContext"
|
|
2396
|
-
[viewContext]="viewContext"
|
|
2397
2395
|
*ngFor="let context of leafContexts; trackBy: trackBy"
|
|
2398
2396
|
></slate-leaf>`,
|
|
2399
2397
|
changeDetection: ChangeDetectionStrategy.OnPush
|
|
@@ -2406,10 +2404,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImpor
|
|
|
2406
2404
|
}] } });
|
|
2407
2405
|
|
|
2408
2406
|
class SlateDefaultTextComponent extends BaseTextComponent {
|
|
2407
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SlateDefaultTextComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
2408
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.1", 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 }); }
|
|
2409
2409
|
}
|
|
2410
|
-
|
|
2411
|
-
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 });
|
|
2412
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateDefaultTextComponent, decorators: [{
|
|
2410
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SlateDefaultTextComponent, decorators: [{
|
|
2413
2411
|
type: Component,
|
|
2414
2412
|
args: [{
|
|
2415
2413
|
selector: 'span[slateDefaultText]',
|
|
@@ -2432,10 +2430,10 @@ class SlateVoidTextComponent extends BaseTextComponent {
|
|
|
2432
2430
|
}
|
|
2433
2431
|
this.isLeafBlock = AngularEditor.isLeafBlock(this.viewContext.editor, this.context.parent);
|
|
2434
2432
|
}
|
|
2433
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SlateVoidTextComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
2434
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.1", 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 }); }
|
|
2435
2435
|
}
|
|
2436
|
-
|
|
2437
|
-
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 });
|
|
2438
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateVoidTextComponent, decorators: [{
|
|
2436
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SlateVoidTextComponent, decorators: [{
|
|
2439
2437
|
type: Component,
|
|
2440
2438
|
args: [{
|
|
2441
2439
|
selector: 'span[slateVoidText]',
|
|
@@ -2602,10 +2600,10 @@ class SlateDescendantComponent extends ViewContainerItem {
|
|
|
2602
2600
|
return this.memoizedTextContext(prev, next);
|
|
2603
2601
|
}
|
|
2604
2602
|
}
|
|
2603
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SlateDescendantComponent, deps: [{ token: i0.ViewContainerRef }, { token: SLATE_DEFAULT_ELEMENT_COMPONENT_TOKEN }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2604
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.1", 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 }); }
|
|
2605
2605
|
}
|
|
2606
|
-
|
|
2607
|
-
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 });
|
|
2608
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateDescendantComponent, decorators: [{
|
|
2606
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SlateDescendantComponent, decorators: [{
|
|
2609
2607
|
type: Component,
|
|
2610
2608
|
args: [{
|
|
2611
2609
|
selector: 'slate-descendant',
|
|
@@ -2633,17 +2631,17 @@ class SlateChildrenComponent extends ViewContainer {
|
|
|
2633
2631
|
};
|
|
2634
2632
|
}
|
|
2635
2633
|
ngOnInit() { }
|
|
2636
|
-
}
|
|
2637
|
-
|
|
2638
|
-
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
|
|
2634
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SlateChildrenComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
2635
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.1", 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
|
|
2639
2636
|
[descendant]="descendant"
|
|
2640
2637
|
[context]="context"
|
|
2641
2638
|
[viewContext]="viewContext"
|
|
2642
2639
|
[viewContext]="viewContext"
|
|
2643
2640
|
[index]="index"
|
|
2644
2641
|
*ngFor="let descendant of children; let index = index; trackBy: trackBy"
|
|
2645
|
-
></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 });
|
|
2646
|
-
|
|
2642
|
+
></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 }); }
|
|
2643
|
+
}
|
|
2644
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SlateChildrenComponent, decorators: [{
|
|
2647
2645
|
type: Component,
|
|
2648
2646
|
args: [{
|
|
2649
2647
|
selector: 'slate-children',
|
|
@@ -3659,16 +3657,16 @@ class SlateEditableComponent {
|
|
|
3659
3657
|
this.destroy$.complete();
|
|
3660
3658
|
EDITOR_TO_ON_CHANGE.delete(this.editor);
|
|
3661
3659
|
}
|
|
3660
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SlateEditableComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3661
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.1", type: SlateEditableComponent, selector: "slate-editable", inputs: { editor: "editor", renderElement: "renderElement", renderLeaf: "renderLeaf", renderText: "renderText", decorate: "decorate", placeholderDecorate: "placeholderDecorate", scrollSelectionIntoView: "scrollSelectionIntoView", isStrictDecorate: "isStrictDecorate", trackBy: "trackBy", readonly: "readonly", placeholder: "placeholder", beforeInput: "beforeInput", blur: "blur", click: "click", compositionEnd: "compositionEnd", compositionUpdate: "compositionUpdate", 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: [
|
|
3662
|
+
{
|
|
3663
|
+
provide: NG_VALUE_ACCESSOR,
|
|
3664
|
+
useExisting: forwardRef(() => SlateEditableComponent),
|
|
3665
|
+
multi: true
|
|
3666
|
+
}
|
|
3667
|
+
], 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>\n", dependencies: [{ kind: "component", type: SlateStringTemplateComponent, selector: "slate-string-template" }, { kind: "component", type: SlateChildrenComponent, selector: "slate-children", inputs: ["children", "context", "viewContext"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3662
3668
|
}
|
|
3663
|
-
|
|
3664
|
-
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", scrollSelectionIntoView: "scrollSelectionIntoView", isStrictDecorate: "isStrictDecorate", trackBy: "trackBy", readonly: "readonly", placeholder: "placeholder", beforeInput: "beforeInput", blur: "blur", click: "click", compositionEnd: "compositionEnd", compositionUpdate: "compositionUpdate", 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: [
|
|
3665
|
-
{
|
|
3666
|
-
provide: NG_VALUE_ACCESSOR,
|
|
3667
|
-
useExisting: forwardRef(() => SlateEditableComponent),
|
|
3668
|
-
multi: true
|
|
3669
|
-
}
|
|
3670
|
-
], 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>\n", dependencies: [{ kind: "component", type: SlateStringTemplateComponent, selector: "slate-string-template" }, { kind: "component", type: SlateChildrenComponent, selector: "slate-children", inputs: ["children", "context", "viewContext"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3671
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateEditableComponent, decorators: [{
|
|
3669
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SlateEditableComponent, decorators: [{
|
|
3672
3670
|
type: Component,
|
|
3673
3671
|
args: [{ selector: 'slate-editable', host: {
|
|
3674
3672
|
class: 'slate-editable-container',
|
|
@@ -3828,10 +3826,10 @@ const preventInsertFromComposition = (event, editor) => {
|
|
|
3828
3826
|
};
|
|
3829
3827
|
|
|
3830
3828
|
class SlateElementComponent extends BaseElementComponent {
|
|
3829
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SlateElementComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
3830
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.1", 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 }); }
|
|
3831
3831
|
}
|
|
3832
|
-
|
|
3833
|
-
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 });
|
|
3834
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateElementComponent, decorators: [{
|
|
3832
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SlateElementComponent, decorators: [{
|
|
3835
3833
|
type: Component,
|
|
3836
3834
|
args: [{
|
|
3837
3835
|
selector: '[slateElement]',
|
|
@@ -3841,10 +3839,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImpor
|
|
|
3841
3839
|
}] });
|
|
3842
3840
|
|
|
3843
3841
|
class SlateDefaultElementComponent extends BaseElementComponent {
|
|
3842
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SlateDefaultElementComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
3843
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.1", 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 }); }
|
|
3844
3844
|
}
|
|
3845
|
-
|
|
3846
|
-
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 });
|
|
3847
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateDefaultElementComponent, decorators: [{
|
|
3845
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SlateDefaultElementComponent, decorators: [{
|
|
3848
3846
|
type: Component,
|
|
3849
3847
|
args: [{
|
|
3850
3848
|
selector: 'div[slateDefaultElement]',
|
|
@@ -3854,34 +3852,34 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImpor
|
|
|
3854
3852
|
}] });
|
|
3855
3853
|
|
|
3856
3854
|
class SlateModule {
|
|
3855
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SlateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3856
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.1", ngImport: i0, type: SlateModule, declarations: [SlateEditableComponent,
|
|
3857
|
+
SlateDefaultElementComponent,
|
|
3858
|
+
SlateElementComponent,
|
|
3859
|
+
SlateVoidTextComponent,
|
|
3860
|
+
SlateDefaultTextComponent,
|
|
3861
|
+
SlateStringComponent,
|
|
3862
|
+
SlateStringTemplateComponent,
|
|
3863
|
+
SlateDescendantComponent,
|
|
3864
|
+
SlateChildrenComponent,
|
|
3865
|
+
SlateBlockCardComponent,
|
|
3866
|
+
SlateLeafComponent,
|
|
3867
|
+
SlateLeavesComponent,
|
|
3868
|
+
SlateDefaultLeafComponent,
|
|
3869
|
+
SlateDefaultStringComponent], imports: [CommonModule], exports: [SlateEditableComponent,
|
|
3870
|
+
SlateChildrenComponent,
|
|
3871
|
+
SlateElementComponent,
|
|
3872
|
+
SlateLeavesComponent,
|
|
3873
|
+
SlateStringComponent,
|
|
3874
|
+
SlateDefaultStringComponent] }); }
|
|
3875
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SlateModule, providers: [
|
|
3876
|
+
{
|
|
3877
|
+
provide: SLATE_DEFAULT_ELEMENT_COMPONENT_TOKEN,
|
|
3878
|
+
useValue: SlateDefaultElementComponent
|
|
3879
|
+
}
|
|
3880
|
+
], imports: [CommonModule] }); }
|
|
3857
3881
|
}
|
|
3858
|
-
|
|
3859
|
-
SlateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.4", ngImport: i0, type: SlateModule, declarations: [SlateEditableComponent,
|
|
3860
|
-
SlateDefaultElementComponent,
|
|
3861
|
-
SlateElementComponent,
|
|
3862
|
-
SlateVoidTextComponent,
|
|
3863
|
-
SlateDefaultTextComponent,
|
|
3864
|
-
SlateStringComponent,
|
|
3865
|
-
SlateStringTemplateComponent,
|
|
3866
|
-
SlateDescendantComponent,
|
|
3867
|
-
SlateChildrenComponent,
|
|
3868
|
-
SlateBlockCardComponent,
|
|
3869
|
-
SlateLeafComponent,
|
|
3870
|
-
SlateLeavesComponent,
|
|
3871
|
-
SlateDefaultLeafComponent,
|
|
3872
|
-
SlateDefaultStringComponent], imports: [CommonModule], exports: [SlateEditableComponent,
|
|
3873
|
-
SlateChildrenComponent,
|
|
3874
|
-
SlateElementComponent,
|
|
3875
|
-
SlateLeavesComponent,
|
|
3876
|
-
SlateStringComponent,
|
|
3877
|
-
SlateDefaultStringComponent] });
|
|
3878
|
-
SlateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateModule, providers: [
|
|
3879
|
-
{
|
|
3880
|
-
provide: SLATE_DEFAULT_ELEMENT_COMPONENT_TOKEN,
|
|
3881
|
-
useValue: SlateDefaultElementComponent
|
|
3882
|
-
}
|
|
3883
|
-
], imports: [CommonModule] });
|
|
3884
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: SlateModule, decorators: [{
|
|
3882
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: SlateModule, decorators: [{
|
|
3885
3883
|
type: NgModule,
|
|
3886
3884
|
args: [{
|
|
3887
3885
|
declarations: [
|