slate-angular 14.1.0 → 14.1.1
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 +3 -3
- package/esm2020/components/children/children.component.mjs +6 -6
- package/esm2020/components/descendant/descendant.component.mjs +3 -3
- package/esm2020/components/editable/editable.component.mjs +16 -9
- 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 +6 -6
- 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 +6 -6
- package/esm2020/view/base.mjs +12 -12
- package/esm2020/view/container-item.mjs +3 -3
- package/esm2020/view/container.mjs +3 -3
- package/fesm2015/slate-angular.mjs +97 -90
- package/fesm2015/slate-angular.mjs.map +1 -1
- package/fesm2020/slate-angular.mjs +97 -90
- package/fesm2020/slate-angular.mjs.map +1 -1
- package/{slate-angular.d.ts → index.d.ts} +0 -0
- package/package.json +3 -3
- package/view/base.d.ts +4 -4
- package/view/container-item.d.ts +1 -1
- package/view/container.d.ts +1 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { Editor, Range, Transforms, Path, Element, Text as Text$1, Node } from 'slate';
|
|
2
2
|
import { isKeyHotkey } from 'is-hotkey';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
|
-
import { TemplateRef, Component, ViewChild, Directive, Input, HostBinding,
|
|
4
|
+
import { TemplateRef, Component, ChangeDetectionStrategy, ViewChild, Directive, Input, HostBinding, ViewChildren, InjectionToken, Inject, forwardRef, ElementRef, NgModule } from '@angular/core';
|
|
5
5
|
import { __rest } from 'tslib';
|
|
6
6
|
import getDirection from 'direction';
|
|
7
7
|
import { Subject } from 'rxjs';
|
|
8
8
|
import Debug from 'debug';
|
|
9
9
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
10
10
|
import { HistoryEditor } from 'slate-history';
|
|
11
|
-
import * as
|
|
11
|
+
import * as i1 from '@angular/common';
|
|
12
12
|
import { CommonModule } from '@angular/common';
|
|
13
13
|
|
|
14
14
|
/**
|
|
@@ -1615,6 +1615,30 @@ var SlateErrorCode;
|
|
|
1615
1615
|
SlateErrorCode[SlateErrorCode["InvalidValueError"] = 4100] = "InvalidValueError";
|
|
1616
1616
|
})(SlateErrorCode || (SlateErrorCode = {}));
|
|
1617
1617
|
|
|
1618
|
+
class SlateStringTemplateComponent {
|
|
1619
|
+
}
|
|
1620
|
+
SlateStringTemplateComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SlateStringTemplateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1621
|
+
SlateStringTemplateComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", 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 });
|
|
1622
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SlateStringTemplateComponent, decorators: [{
|
|
1623
|
+
type: Component,
|
|
1624
|
+
args: [{ selector: 'slate-string-template', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template #stringTemplate let-context=\"context\" let-viewContext=\"viewContext\">\n <span editable-text data-slate-string=\"true\">{{ context.text }}</span>\n</ng-template>\n<ng-template #compatStringTemplate let-context=\"context\" let-viewContext=\"viewContext\">\n <!-- Compatible with Chinese input in Chrome with \\n -->\n <span editable-text data-slate-string=\"true\">{{ context.text }}<span data-slate-zero-width>{{'\\uFEFF'}}</span></span>\n</ng-template>\n<ng-template #emptyStringTemplate let-context=\"context\" let-viewContext=\"viewContext\">\n <span editable-text data-slate-zero-width=\"z\" attr.data-slate-length=\"{{ context.elementStringLength }}\">{{ '\\uFEFF' }}</span>\n</ng-template>\n<ng-template #emptyTextTemplate let-context=\"context\" let-viewContext=\"viewContext\">\n <span editable-text data-slate-zero-width=\"z\" data-slate-length=\"0\">{{ '\\uFEFF' }}</span>\n</ng-template>\n<ng-template #lineBreakEmptyStringTemplate let-context=\"context\" let-viewContext=\"viewContext\">\n <span editable-text data-slate-zero-width=\"n\" attr.data-slate-length=\"{{ context.elementStringLength }}\">{{ '\\uFEFF'\n }}<br /></span>\n</ng-template>" }]
|
|
1625
|
+
}], propDecorators: { stringTemplate: [{
|
|
1626
|
+
type: ViewChild,
|
|
1627
|
+
args: ['stringTemplate', { read: TemplateRef, static: true }]
|
|
1628
|
+
}], compatStringTemplate: [{
|
|
1629
|
+
type: ViewChild,
|
|
1630
|
+
args: ['compatStringTemplate', { read: TemplateRef, static: true }]
|
|
1631
|
+
}], emptyStringTemplate: [{
|
|
1632
|
+
type: ViewChild,
|
|
1633
|
+
args: ['emptyStringTemplate', { read: TemplateRef, static: true }]
|
|
1634
|
+
}], emptyTextTemplate: [{
|
|
1635
|
+
type: ViewChild,
|
|
1636
|
+
args: ['emptyTextTemplate', { read: TemplateRef, static: true }]
|
|
1637
|
+
}], lineBreakEmptyStringTemplate: [{
|
|
1638
|
+
type: ViewChild,
|
|
1639
|
+
args: ['lineBreakEmptyStringTemplate', { read: TemplateRef, static: true }]
|
|
1640
|
+
}] } });
|
|
1641
|
+
|
|
1618
1642
|
class SlateBlockCardComponent {
|
|
1619
1643
|
constructor(elementRef) {
|
|
1620
1644
|
this.elementRef = elementRef;
|
|
@@ -1636,9 +1660,9 @@ class SlateBlockCardComponent {
|
|
|
1636
1660
|
this.centerRootNodes = rootNodes;
|
|
1637
1661
|
}
|
|
1638
1662
|
}
|
|
1639
|
-
SlateBlockCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1640
|
-
SlateBlockCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
1641
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1663
|
+
SlateBlockCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SlateBlockCardComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
1664
|
+
SlateBlockCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", 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>" });
|
|
1665
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SlateBlockCardComponent, decorators: [{
|
|
1642
1666
|
type: Component,
|
|
1643
1667
|
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>" }]
|
|
1644
1668
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { centerContianer: [{
|
|
@@ -1737,9 +1761,9 @@ class ViewContainerItem {
|
|
|
1737
1761
|
}
|
|
1738
1762
|
}
|
|
1739
1763
|
}
|
|
1740
|
-
ViewContainerItem.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1741
|
-
ViewContainerItem.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
1742
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1764
|
+
ViewContainerItem.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: ViewContainerItem, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1765
|
+
ViewContainerItem.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.2", type: ViewContainerItem, inputs: { viewContext: "viewContext" }, ngImport: i0 });
|
|
1766
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: ViewContainerItem, decorators: [{
|
|
1743
1767
|
type: Directive
|
|
1744
1768
|
}], ctorParameters: function () { return [{ type: i0.ViewContainerRef }]; }, propDecorators: { viewContext: [{
|
|
1745
1769
|
type: Input
|
|
@@ -1777,9 +1801,9 @@ class BaseComponent {
|
|
|
1777
1801
|
return this.elementRef.nativeElement;
|
|
1778
1802
|
}
|
|
1779
1803
|
}
|
|
1780
|
-
BaseComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1781
|
-
BaseComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
1782
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1804
|
+
BaseComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: BaseComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1805
|
+
BaseComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.2", type: BaseComponent, inputs: { context: "context", viewContext: "viewContext" }, ngImport: i0 });
|
|
1806
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: BaseComponent, decorators: [{
|
|
1783
1807
|
type: Directive
|
|
1784
1808
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { context: [{
|
|
1785
1809
|
type: Input
|
|
@@ -1836,9 +1860,9 @@ class BaseLeafComponent extends BaseComponent {
|
|
|
1836
1860
|
}
|
|
1837
1861
|
}
|
|
1838
1862
|
}
|
|
1839
|
-
BaseLeafComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1840
|
-
BaseLeafComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
1841
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1863
|
+
BaseLeafComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: BaseLeafComponent, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1864
|
+
BaseLeafComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.2", type: BaseLeafComponent, host: { properties: { "attr.data-slate-leaf": "this.isSlateLeaf" } }, usesInheritance: true, ngImport: i0 });
|
|
1865
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: BaseLeafComponent, decorators: [{
|
|
1842
1866
|
type: Directive
|
|
1843
1867
|
}], propDecorators: { isSlateLeaf: [{
|
|
1844
1868
|
type: HostBinding,
|
|
@@ -1911,9 +1935,9 @@ class BaseElementComponent extends BaseComponent {
|
|
|
1911
1935
|
};
|
|
1912
1936
|
}
|
|
1913
1937
|
}
|
|
1914
|
-
BaseElementComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1915
|
-
BaseElementComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
1916
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1938
|
+
BaseElementComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: BaseElementComponent, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1939
|
+
BaseElementComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.2", type: BaseElementComponent, usesInheritance: true, ngImport: i0 });
|
|
1940
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: BaseElementComponent, decorators: [{
|
|
1917
1941
|
type: Directive
|
|
1918
1942
|
}] });
|
|
1919
1943
|
/**
|
|
@@ -1948,9 +1972,9 @@ class BaseTextComponent extends BaseComponent {
|
|
|
1948
1972
|
this.updateWeakMap();
|
|
1949
1973
|
}
|
|
1950
1974
|
}
|
|
1951
|
-
BaseTextComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1952
|
-
BaseTextComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
1953
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1975
|
+
BaseTextComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: BaseTextComponent, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1976
|
+
BaseTextComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.2", type: BaseTextComponent, usesInheritance: true, ngImport: i0 });
|
|
1977
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: BaseTextComponent, decorators: [{
|
|
1954
1978
|
type: Directive
|
|
1955
1979
|
}] });
|
|
1956
1980
|
|
|
@@ -2045,9 +2069,9 @@ class ViewContainer {
|
|
|
2045
2069
|
record.item.appendBlockCardElement();
|
|
2046
2070
|
}
|
|
2047
2071
|
}
|
|
2048
|
-
ViewContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2049
|
-
ViewContainer.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
2050
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2072
|
+
ViewContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: ViewContainer, deps: [{ token: i0.ElementRef }, { token: i0.IterableDiffers }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2073
|
+
ViewContainer.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.2", type: ViewContainer, inputs: { viewContext: "viewContext" }, ngImport: i0 });
|
|
2074
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: ViewContainer, decorators: [{
|
|
2051
2075
|
type: Directive
|
|
2052
2076
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.IterableDiffers }]; }, propDecorators: { viewContext: [{
|
|
2053
2077
|
type: Input
|
|
@@ -2108,9 +2132,9 @@ class SlateStringComponent extends ViewContainerItem {
|
|
|
2108
2132
|
return false;
|
|
2109
2133
|
}
|
|
2110
2134
|
}
|
|
2111
|
-
SlateStringComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2112
|
-
SlateStringComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
2113
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2135
|
+
SlateStringComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SlateStringComponent, deps: [{ token: i0.ElementRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
2136
|
+
SlateStringComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: SlateStringComponent, selector: "span[slateString]", inputs: { context: "context" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2137
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SlateStringComponent, decorators: [{
|
|
2114
2138
|
type: Component,
|
|
2115
2139
|
args: [{
|
|
2116
2140
|
selector: 'span[slateString]',
|
|
@@ -2131,9 +2155,9 @@ class SlateDefaultLeafComponent extends BaseLeafComponent {
|
|
|
2131
2155
|
this.destroyPlaceholder();
|
|
2132
2156
|
}
|
|
2133
2157
|
}
|
|
2134
|
-
SlateDefaultLeafComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2135
|
-
SlateDefaultLeafComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
2136
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2158
|
+
SlateDefaultLeafComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SlateDefaultLeafComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2159
|
+
SlateDefaultLeafComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", 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 });
|
|
2160
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SlateDefaultLeafComponent, decorators: [{
|
|
2137
2161
|
type: Component,
|
|
2138
2162
|
args: [{
|
|
2139
2163
|
selector: 'span[slateDefaultLeaf]',
|
|
@@ -2165,9 +2189,9 @@ class SlateLeafComponent extends ViewContainerItem {
|
|
|
2165
2189
|
this.updateView();
|
|
2166
2190
|
}
|
|
2167
2191
|
}
|
|
2168
|
-
SlateLeafComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2169
|
-
SlateLeafComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
2170
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2192
|
+
SlateLeafComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SlateLeafComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2193
|
+
SlateLeafComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: SlateLeafComponent, selector: "slate-leaf", inputs: { context: "context" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2194
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SlateLeafComponent, decorators: [{
|
|
2171
2195
|
type: Component,
|
|
2172
2196
|
args: [{
|
|
2173
2197
|
selector: 'slate-leaf',
|
|
@@ -2215,13 +2239,13 @@ class SlateLeavesComponent extends ViewContainer {
|
|
|
2215
2239
|
return index;
|
|
2216
2240
|
}
|
|
2217
2241
|
}
|
|
2218
|
-
SlateLeavesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2219
|
-
SlateLeavesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
2242
|
+
SlateLeavesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SlateLeavesComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2243
|
+
SlateLeavesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", 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
|
|
2220
2244
|
[context]="context" [viewContext]="viewContext"
|
|
2221
2245
|
[viewContext]="viewContext"
|
|
2222
2246
|
*ngFor="let context of leafContexts; trackBy: trackBy"></slate-leaf>
|
|
2223
|
-
`, isInline: true,
|
|
2224
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2247
|
+
`, 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 });
|
|
2248
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SlateLeavesComponent, decorators: [{
|
|
2225
2249
|
type: Component,
|
|
2226
2250
|
args: [{
|
|
2227
2251
|
selector: 'slate-leaves',
|
|
@@ -2241,9 +2265,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.8", ngImpor
|
|
|
2241
2265
|
|
|
2242
2266
|
class SlateDefaultTextComponent extends BaseTextComponent {
|
|
2243
2267
|
}
|
|
2244
|
-
SlateDefaultTextComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2245
|
-
SlateDefaultTextComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
2246
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2268
|
+
SlateDefaultTextComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SlateDefaultTextComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2269
|
+
SlateDefaultTextComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", 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 });
|
|
2270
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SlateDefaultTextComponent, decorators: [{
|
|
2247
2271
|
type: Component,
|
|
2248
2272
|
args: [{
|
|
2249
2273
|
selector: 'span[slateDefaultText]',
|
|
@@ -2267,9 +2291,9 @@ class SlateVoidTextComponent extends BaseTextComponent {
|
|
|
2267
2291
|
this.isLeafBlock = AngularEditor.isLeafBlock(this.viewContext.editor, this.context.parent);
|
|
2268
2292
|
}
|
|
2269
2293
|
}
|
|
2270
|
-
SlateVoidTextComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2271
|
-
SlateVoidTextComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
2272
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2294
|
+
SlateVoidTextComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SlateVoidTextComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2295
|
+
SlateVoidTextComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", 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 });
|
|
2296
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SlateVoidTextComponent, decorators: [{
|
|
2273
2297
|
type: Component,
|
|
2274
2298
|
args: [{
|
|
2275
2299
|
selector: 'span[slateVoidText]',
|
|
@@ -2429,9 +2453,9 @@ class SlateDescendantComponent extends ViewContainerItem {
|
|
|
2429
2453
|
}
|
|
2430
2454
|
}
|
|
2431
2455
|
}
|
|
2432
|
-
SlateDescendantComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2433
|
-
SlateDescendantComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
2434
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2456
|
+
SlateDescendantComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SlateDescendantComponent, deps: [{ token: i0.ViewContainerRef }, { token: SLATE_DEFAULT_ELEMENT_COMPONENT_TOKEN }], target: i0.ɵɵFactoryTarget.Component });
|
|
2457
|
+
SlateDescendantComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", 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 });
|
|
2458
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SlateDescendantComponent, decorators: [{
|
|
2435
2459
|
type: Component,
|
|
2436
2460
|
args: [{
|
|
2437
2461
|
selector: 'slate-descendant',
|
|
@@ -2463,14 +2487,14 @@ class SlateChildrenComponent extends ViewContainer {
|
|
|
2463
2487
|
ngOnInit() {
|
|
2464
2488
|
}
|
|
2465
2489
|
}
|
|
2466
|
-
SlateChildrenComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2467
|
-
SlateChildrenComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
2490
|
+
SlateChildrenComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SlateChildrenComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2491
|
+
SlateChildrenComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", 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
|
|
2468
2492
|
[descendant]="descendant"
|
|
2469
2493
|
[context]="context" [viewContext]="viewContext"
|
|
2470
2494
|
[viewContext]="viewContext"
|
|
2471
2495
|
[index]="index"
|
|
2472
|
-
*ngFor="let descendant of children;let index = index; trackBy: trackBy"></slate-descendant>`, isInline: true,
|
|
2473
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2496
|
+
*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 });
|
|
2497
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SlateChildrenComponent, decorators: [{
|
|
2474
2498
|
type: Component,
|
|
2475
2499
|
args: [{
|
|
2476
2500
|
selector: 'slate-children',
|
|
@@ -2493,30 +2517,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.8", ngImpor
|
|
|
2493
2517
|
args: [SlateDescendantComponent, { read: SlateDescendantComponent }]
|
|
2494
2518
|
}] } });
|
|
2495
2519
|
|
|
2496
|
-
class SlateStringTemplateComponent {
|
|
2497
|
-
}
|
|
2498
|
-
SlateStringTemplateComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: SlateStringTemplateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2499
|
-
SlateStringTemplateComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.8", 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 });
|
|
2500
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.8", ngImport: i0, type: SlateStringTemplateComponent, decorators: [{
|
|
2501
|
-
type: Component,
|
|
2502
|
-
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>" }]
|
|
2503
|
-
}], propDecorators: { stringTemplate: [{
|
|
2504
|
-
type: ViewChild,
|
|
2505
|
-
args: ['stringTemplate', { read: TemplateRef, static: true }]
|
|
2506
|
-
}], compatStringTemplate: [{
|
|
2507
|
-
type: ViewChild,
|
|
2508
|
-
args: ['compatStringTemplate', { read: TemplateRef, static: true }]
|
|
2509
|
-
}], emptyStringTemplate: [{
|
|
2510
|
-
type: ViewChild,
|
|
2511
|
-
args: ['emptyStringTemplate', { read: TemplateRef, static: true }]
|
|
2512
|
-
}], emptyTextTemplate: [{
|
|
2513
|
-
type: ViewChild,
|
|
2514
|
-
args: ['emptyTextTemplate', { read: TemplateRef, static: true }]
|
|
2515
|
-
}], lineBreakEmptyStringTemplate: [{
|
|
2516
|
-
type: ViewChild,
|
|
2517
|
-
args: ['lineBreakEmptyStringTemplate', { read: TemplateRef, static: true }]
|
|
2518
|
-
}] } });
|
|
2519
|
-
|
|
2520
2520
|
const timeDebug = Debug('slate-angular-time');
|
|
2521
2521
|
// not correctly clipboardData on beforeinput
|
|
2522
2522
|
const forceOnDOMPaste = IS_SAFARI;
|
|
@@ -2644,6 +2644,7 @@ class SlateEditableComponent {
|
|
|
2644
2644
|
try {
|
|
2645
2645
|
const { selection } = this.editor;
|
|
2646
2646
|
const root = AngularEditor.findDocumentOrShadowRoot(this.editor);
|
|
2647
|
+
const { activeElement } = root;
|
|
2647
2648
|
const domSelection = root.getSelection();
|
|
2648
2649
|
if (this.isComposing || !domSelection || !AngularEditor.isFocused(this.editor)) {
|
|
2649
2650
|
return;
|
|
@@ -2668,6 +2669,10 @@ class SlateEditableComponent {
|
|
|
2668
2669
|
Range.equals(AngularEditor.toSlateRange(this.editor, domSelection), selection)) {
|
|
2669
2670
|
return;
|
|
2670
2671
|
}
|
|
2672
|
+
// prevent updating native selection when active element is void element
|
|
2673
|
+
if (isTargetInsideVoid(this.editor, activeElement)) {
|
|
2674
|
+
return;
|
|
2675
|
+
}
|
|
2671
2676
|
// when <Editable/> is being controlled through external value
|
|
2672
2677
|
// then its children might just change - DOM responds to it on its own
|
|
2673
2678
|
// but Slate's value is not being updated through any operation
|
|
@@ -2859,8 +2864,10 @@ class SlateEditableComponent {
|
|
|
2859
2864
|
// for example, double-click the last cell of the table to select a non-editable DOM
|
|
2860
2865
|
const range = AngularEditor.toSlateRange(this.editor, domSelection);
|
|
2861
2866
|
if (this.editor.selection && Range.equals(range, this.editor.selection) && !hasStringTarget(domSelection)) {
|
|
2862
|
-
|
|
2863
|
-
|
|
2867
|
+
if (!isTargetInsideVoid(this.editor, activeElement)) {
|
|
2868
|
+
// force adjust DOMSelection
|
|
2869
|
+
this.toNativeSelection();
|
|
2870
|
+
}
|
|
2864
2871
|
}
|
|
2865
2872
|
else {
|
|
2866
2873
|
Transforms.select(this.editor, range);
|
|
@@ -3414,13 +3421,13 @@ class SlateEditableComponent {
|
|
|
3414
3421
|
EDITOR_TO_ON_CHANGE.delete(this.editor);
|
|
3415
3422
|
}
|
|
3416
3423
|
}
|
|
3417
|
-
SlateEditableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3418
|
-
SlateEditableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
3424
|
+
SlateEditableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SlateEditableComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
3425
|
+
SlateEditableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", 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: [{
|
|
3419
3426
|
provide: NG_VALUE_ACCESSOR,
|
|
3420
3427
|
useExisting: forwardRef(() => SlateEditableComponent),
|
|
3421
3428
|
multi: true
|
|
3422
|
-
}], 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>",
|
|
3423
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3429
|
+
}], 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 });
|
|
3430
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SlateEditableComponent, decorators: [{
|
|
3424
3431
|
type: Component,
|
|
3425
3432
|
args: [{ selector: 'slate-editable', host: {
|
|
3426
3433
|
class: 'slate-editable-container',
|
|
@@ -3561,9 +3568,9 @@ const preventInsertFromComposition = (event, editor) => {
|
|
|
3561
3568
|
|
|
3562
3569
|
class SlateElementComponent extends BaseElementComponent {
|
|
3563
3570
|
}
|
|
3564
|
-
SlateElementComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3565
|
-
SlateElementComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
3566
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3571
|
+
SlateElementComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SlateElementComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
3572
|
+
SlateElementComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", 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 });
|
|
3573
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SlateElementComponent, decorators: [{
|
|
3567
3574
|
type: Component,
|
|
3568
3575
|
args: [{
|
|
3569
3576
|
selector: '[slateElement]',
|
|
@@ -3574,9 +3581,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.8", ngImpor
|
|
|
3574
3581
|
|
|
3575
3582
|
class SlateDefaultElementComponent extends BaseElementComponent {
|
|
3576
3583
|
}
|
|
3577
|
-
SlateDefaultElementComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3578
|
-
SlateDefaultElementComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
3579
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3584
|
+
SlateDefaultElementComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SlateDefaultElementComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
3585
|
+
SlateDefaultElementComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", 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 });
|
|
3586
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SlateDefaultElementComponent, decorators: [{
|
|
3580
3587
|
type: Component,
|
|
3581
3588
|
args: [{
|
|
3582
3589
|
selector: 'div[slateDefaultElement]',
|
|
@@ -3587,8 +3594,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.8", ngImpor
|
|
|
3587
3594
|
|
|
3588
3595
|
class SlateModule {
|
|
3589
3596
|
}
|
|
3590
|
-
SlateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3591
|
-
SlateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
3597
|
+
SlateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SlateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3598
|
+
SlateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: SlateModule, declarations: [SlateEditableComponent,
|
|
3592
3599
|
SlateDefaultElementComponent,
|
|
3593
3600
|
SlateElementComponent,
|
|
3594
3601
|
SlateVoidTextComponent,
|
|
@@ -3601,13 +3608,13 @@ SlateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "1
|
|
|
3601
3608
|
SlateLeafComponent,
|
|
3602
3609
|
SlateLeavesComponent,
|
|
3603
3610
|
SlateDefaultLeafComponent], imports: [CommonModule], exports: [SlateEditableComponent, SlateChildrenComponent, SlateElementComponent, SlateLeavesComponent, SlateStringComponent] });
|
|
3604
|
-
SlateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
3611
|
+
SlateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SlateModule, providers: [
|
|
3605
3612
|
{
|
|
3606
3613
|
provide: SLATE_DEFAULT_ELEMENT_COMPONENT_TOKEN,
|
|
3607
3614
|
useValue: SlateDefaultElementComponent
|
|
3608
3615
|
},
|
|
3609
|
-
], imports: [
|
|
3610
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3616
|
+
], imports: [CommonModule] });
|
|
3617
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SlateModule, decorators: [{
|
|
3611
3618
|
type: NgModule,
|
|
3612
3619
|
args: [{
|
|
3613
3620
|
declarations: [
|