slate-angular 18.0.1 → 19.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/fesm2022/slate-angular.mjs +120 -130
- package/fesm2022/slate-angular.mjs.map +1 -1
- package/package.json +1 -3
- package/view/base.d.ts +4 -4
- package/view/container-item.d.ts +1 -1
- package/view/container.d.ts +1 -1
- package/esm2022/components/block-card/block-card.component.mjs +0 -33
- package/esm2022/components/children/children-outlet.component.mjs +0 -22
- package/esm2022/components/children/children.component.mjs +0 -23
- package/esm2022/components/editable/editable.component.mjs +0 -1266
- package/esm2022/components/element/default-element.component.mjs +0 -19
- package/esm2022/components/element/default-element.component.token.mjs +0 -3
- package/esm2022/components/element/element.component.mjs +0 -19
- package/esm2022/components/leaf/default-leaf.component.mjs +0 -30
- package/esm2022/components/leaf/token.mjs +0 -3
- package/esm2022/components/leaves/leaves.component.mjs +0 -25
- package/esm2022/components/string/default-string.component.mjs +0 -75
- package/esm2022/components/string/string.component.mjs +0 -108
- package/esm2022/components/string/template.component.mjs +0 -20
- package/esm2022/components/text/default-text.component.mjs +0 -22
- package/esm2022/components/text/token.mjs +0 -4
- package/esm2022/components/text/void-text.component.mjs +0 -32
- package/esm2022/custom-event/BeforeInputEventPlugin.mjs +0 -251
- package/esm2022/custom-event/DOMTopLevelEventTypes.mjs +0 -13
- package/esm2022/custom-event/FallbackCompositionState.mjs +0 -62
- package/esm2022/custom-event/before-input-polyfill.mjs +0 -13
- package/esm2022/module.mjs +0 -69
- package/esm2022/plugins/angular-editor.mjs +0 -610
- package/esm2022/plugins/with-angular.mjs +0 -217
- package/esm2022/public-api.mjs +0 -20
- package/esm2022/slate-angular.mjs +0 -5
- package/esm2022/types/clipboard.mjs +0 -2
- package/esm2022/types/error.mjs +0 -12
- package/esm2022/types/feature.mjs +0 -2
- package/esm2022/types/index.mjs +0 -5
- package/esm2022/types/view.mjs +0 -2
- package/esm2022/utils/block-card.mjs +0 -25
- package/esm2022/utils/clipboard/clipboard.mjs +0 -78
- package/esm2022/utils/clipboard/common.mjs +0 -42
- package/esm2022/utils/clipboard/data-transfer.mjs +0 -44
- package/esm2022/utils/clipboard/index.mjs +0 -5
- package/esm2022/utils/clipboard/navigator-clipboard.mjs +0 -59
- package/esm2022/utils/constants.mjs +0 -2
- package/esm2022/utils/dom.mjs +0 -165
- package/esm2022/utils/environment.mjs +0 -34
- package/esm2022/utils/global-normalize.mjs +0 -11
- package/esm2022/utils/hotkeys.mjs +0 -99
- package/esm2022/utils/index.mjs +0 -12
- package/esm2022/utils/key.mjs +0 -14
- package/esm2022/utils/lines.mjs +0 -46
- package/esm2022/utils/range-list.mjs +0 -29
- package/esm2022/utils/restore-dom.mjs +0 -33
- package/esm2022/utils/throttle.mjs +0 -18
- package/esm2022/utils/view.mjs +0 -8
- package/esm2022/utils/weak-maps.mjs +0 -40
- package/esm2022/view/base.mjs +0 -273
- package/esm2022/view/container-item.mjs +0 -108
- package/esm2022/view/container.mjs +0 -22
- package/esm2022/view/context-change.mjs +0 -13
- package/esm2022/view/context.mjs +0 -2
- package/esm2022/view/render/leaves-render.mjs +0 -107
- package/esm2022/view/render/list-render.mjs +0 -302
- package/esm2022/view/render/utils.mjs +0 -110
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Editor,
|
|
1
|
+
import { Editor, Transforms, Element, Range, Text as Text$1, Path, Node } from 'slate';
|
|
2
2
|
import { isKeyHotkey } from 'is-hotkey';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
|
-
import { TemplateRef,
|
|
4
|
+
import { TemplateRef, ViewChild, ChangeDetectionStrategy, Component, InjectionToken, ComponentRef, IterableDiffers, inject, ElementRef, ChangeDetectorRef, Input, Directive, HostBinding, ViewContainerRef, forwardRef, Inject, NgModule } from '@angular/core';
|
|
5
5
|
import { direction } from 'direction';
|
|
6
6
|
import scrollIntoView from 'scroll-into-view-if-needed';
|
|
7
7
|
import { Subject } from 'rxjs';
|
|
8
8
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
9
9
|
import { HistoryEditor } from 'slate-history';
|
|
10
|
-
import {
|
|
10
|
+
import { CommonModule } from '@angular/common';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Two weak maps that allow us rebuild a path given a node. They are populated
|
|
@@ -1867,10 +1867,10 @@ var SlateErrorCode;
|
|
|
1867
1867
|
})(SlateErrorCode || (SlateErrorCode = {}));
|
|
1868
1868
|
|
|
1869
1869
|
class SlateStringTemplate {
|
|
1870
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1871
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1870
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: SlateStringTemplate, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1871
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.2", type: SlateStringTemplate, isStandalone: true, 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 }); }
|
|
1872
1872
|
}
|
|
1873
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1873
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: SlateStringTemplate, decorators: [{
|
|
1874
1874
|
type: Component,
|
|
1875
1875
|
args: [{ selector: 'slate-string-template', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, 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" }]
|
|
1876
1876
|
}], propDecorators: { compatibleStringTemplate: [{
|
|
@@ -1916,46 +1916,6 @@ function restoreDom(editor, execute) {
|
|
|
1916
1916
|
}, 0);
|
|
1917
1917
|
}
|
|
1918
1918
|
|
|
1919
|
-
/**
|
|
1920
|
-
* @deprecated
|
|
1921
|
-
* the special container for angular template
|
|
1922
|
-
* Add the rootNodes of each child component to the parentElement
|
|
1923
|
-
* Remove useless DOM elements, eg: comment...
|
|
1924
|
-
*/
|
|
1925
|
-
class ViewContainer {
|
|
1926
|
-
constructor(elementRef, differs) {
|
|
1927
|
-
this.elementRef = elementRef;
|
|
1928
|
-
this.differs = differs;
|
|
1929
|
-
}
|
|
1930
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: ViewContainer, deps: [{ token: i0.ElementRef }, { token: i0.IterableDiffers }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1931
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.0", type: ViewContainer, inputs: { viewContext: "viewContext" }, ngImport: i0 }); }
|
|
1932
|
-
}
|
|
1933
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: ViewContainer, decorators: [{
|
|
1934
|
-
type: Directive
|
|
1935
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.IterableDiffers }], propDecorators: { viewContext: [{
|
|
1936
|
-
type: Input
|
|
1937
|
-
}] } });
|
|
1938
|
-
|
|
1939
|
-
class SlateChildren extends ViewContainer {
|
|
1940
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: SlateChildren, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1941
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.0", type: SlateChildren, isStandalone: true, selector: "slate-children", inputs: { children: "children", context: "context", viewContext: "viewContext" }, usesInheritance: true, ngImport: i0, template: ``, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1942
|
-
}
|
|
1943
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: SlateChildren, decorators: [{
|
|
1944
|
-
type: Component,
|
|
1945
|
-
args: [{
|
|
1946
|
-
selector: 'slate-children',
|
|
1947
|
-
template: ``,
|
|
1948
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1949
|
-
standalone: true
|
|
1950
|
-
}]
|
|
1951
|
-
}], propDecorators: { children: [{
|
|
1952
|
-
type: Input
|
|
1953
|
-
}], context: [{
|
|
1954
|
-
type: Input
|
|
1955
|
-
}], viewContext: [{
|
|
1956
|
-
type: Input
|
|
1957
|
-
}] } });
|
|
1958
|
-
|
|
1959
1919
|
const SLATE_DEFAULT_ELEMENT_COMPONENT_TOKEN = new InjectionToken('slate-default-element-token');
|
|
1960
1920
|
|
|
1961
1921
|
const SLATE_DEFAULT_TEXT_COMPONENT_TOKEN = new InjectionToken('slate-default-text-token');
|
|
@@ -1968,10 +1928,10 @@ class SlateChildrenOutlet {
|
|
|
1968
1928
|
getNativeElement() {
|
|
1969
1929
|
return this.elementRef.nativeElement;
|
|
1970
1930
|
}
|
|
1971
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1972
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1931
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: SlateChildrenOutlet, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1932
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.2", type: SlateChildrenOutlet, isStandalone: true, selector: "slate-children-outlet", ngImport: i0, template: ``, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1973
1933
|
}
|
|
1974
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1934
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: SlateChildrenOutlet, decorators: [{
|
|
1975
1935
|
type: Component,
|
|
1976
1936
|
args: [{
|
|
1977
1937
|
selector: 'slate-children-outlet',
|
|
@@ -2226,10 +2186,10 @@ class SlateBlockCard {
|
|
|
2226
2186
|
this.centerRootNodes = rootNodes;
|
|
2227
2187
|
this.append();
|
|
2228
2188
|
}
|
|
2229
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2230
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
2189
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: SlateBlockCard, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2190
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.2", type: SlateBlockCard, isStandalone: true, 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" }); }
|
|
2231
2191
|
}
|
|
2232
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2192
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: SlateBlockCard, decorators: [{
|
|
2233
2193
|
type: Component,
|
|
2234
2194
|
args: [{ selector: 'slate-block-card, [slateBlockCard]', standalone: true, 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" }]
|
|
2235
2195
|
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { centerContianer: [{
|
|
@@ -2562,10 +2522,10 @@ class BaseComponent {
|
|
|
2562
2522
|
get nativeElement() {
|
|
2563
2523
|
return this.elementRef.nativeElement;
|
|
2564
2524
|
}
|
|
2565
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2566
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
2525
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: BaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2526
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.2", type: BaseComponent, isStandalone: true, inputs: { context: "context", viewContext: "viewContext" }, ngImport: i0 }); }
|
|
2567
2527
|
}
|
|
2568
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2528
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: BaseComponent, decorators: [{
|
|
2569
2529
|
type: Directive
|
|
2570
2530
|
}], propDecorators: { context: [{
|
|
2571
2531
|
type: Input
|
|
@@ -2629,10 +2589,10 @@ class BaseLeafComponent extends BaseComponent {
|
|
|
2629
2589
|
this.nativeElement.classList.remove('leaf-with-placeholder');
|
|
2630
2590
|
}
|
|
2631
2591
|
}
|
|
2632
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2633
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
2592
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: BaseLeafComponent, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2593
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.2", type: BaseLeafComponent, isStandalone: true, host: { properties: { "attr.data-slate-leaf": "this.isSlateLeaf" } }, usesInheritance: true, ngImport: i0 }); }
|
|
2634
2594
|
}
|
|
2635
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2595
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: BaseLeafComponent, decorators: [{
|
|
2636
2596
|
type: Directive
|
|
2637
2597
|
}], propDecorators: { isSlateLeaf: [{
|
|
2638
2598
|
type: HostBinding,
|
|
@@ -2735,10 +2695,10 @@ class BaseElementComponent extends BaseComponent {
|
|
|
2735
2695
|
readonly: this._context.readonly
|
|
2736
2696
|
};
|
|
2737
2697
|
}
|
|
2738
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2739
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
2698
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: BaseElementComponent, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2699
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.2", type: BaseElementComponent, isStandalone: true, viewQueries: [{ propertyName: "childrenOutletInstance", first: true, predicate: SlateChildrenOutlet, descendants: true, static: true }], usesInheritance: true, ngImport: i0 }); }
|
|
2740
2700
|
}
|
|
2741
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2701
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: BaseElementComponent, decorators: [{
|
|
2742
2702
|
type: Directive
|
|
2743
2703
|
}], propDecorators: { childrenOutletInstance: [{
|
|
2744
2704
|
type: ViewChild,
|
|
@@ -2786,37 +2746,16 @@ class BaseTextComponent extends BaseComponent {
|
|
|
2786
2746
|
}
|
|
2787
2747
|
this.leavesRender.update(this.context);
|
|
2788
2748
|
}
|
|
2789
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2790
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
2749
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: BaseTextComponent, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2750
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.2", type: BaseTextComponent, isStandalone: true, viewQueries: [{ propertyName: "childrenOutletInstance", first: true, predicate: SlateChildrenOutlet, descendants: true, static: true }], usesInheritance: true, ngImport: i0 }); }
|
|
2791
2751
|
}
|
|
2792
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2752
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: BaseTextComponent, decorators: [{
|
|
2793
2753
|
type: Directive
|
|
2794
2754
|
}], propDecorators: { childrenOutletInstance: [{
|
|
2795
2755
|
type: ViewChild,
|
|
2796
2756
|
args: [SlateChildrenOutlet, { static: true }]
|
|
2797
2757
|
}] } });
|
|
2798
2758
|
|
|
2799
|
-
class SlateLeaves extends ViewContainer {
|
|
2800
|
-
constructor() {
|
|
2801
|
-
super(...arguments);
|
|
2802
|
-
this.initialized = false;
|
|
2803
|
-
}
|
|
2804
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: SlateLeaves, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
2805
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.0", type: SlateLeaves, isStandalone: true, selector: "slate-leaves", inputs: { context: "context" }, usesInheritance: true, ngImport: i0, template: ``, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2806
|
-
}
|
|
2807
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: SlateLeaves, decorators: [{
|
|
2808
|
-
type: Component,
|
|
2809
|
-
args: [{
|
|
2810
|
-
selector: 'slate-leaves',
|
|
2811
|
-
template: ``,
|
|
2812
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2813
|
-
standalone: true,
|
|
2814
|
-
imports: [NgFor]
|
|
2815
|
-
}]
|
|
2816
|
-
}], propDecorators: { context: [{
|
|
2817
|
-
type: Input
|
|
2818
|
-
}] } });
|
|
2819
|
-
|
|
2820
2759
|
class SlateVoidText extends BaseTextComponent {
|
|
2821
2760
|
ngOnInit() {
|
|
2822
2761
|
super.ngOnInit();
|
|
@@ -2826,10 +2765,10 @@ class SlateVoidText extends BaseTextComponent {
|
|
|
2826
2765
|
return;
|
|
2827
2766
|
}
|
|
2828
2767
|
}
|
|
2829
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2830
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
2768
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: SlateVoidText, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
2769
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.2", type: SlateVoidText, isStandalone: true, selector: "span[slateVoidText]", host: { attributes: { "data-slate-spacer": "true", "data-slate-node": "text" }, classAttribute: "slate-spacer" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: ``, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2831
2770
|
}
|
|
2832
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2771
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: SlateVoidText, decorators: [{
|
|
2833
2772
|
type: Component,
|
|
2834
2773
|
args: [{
|
|
2835
2774
|
selector: 'span[slateVoidText]',
|
|
@@ -2839,17 +2778,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
|
2839
2778
|
'data-slate-spacer': 'true',
|
|
2840
2779
|
class: 'slate-spacer',
|
|
2841
2780
|
'data-slate-node': 'text'
|
|
2842
|
-
}
|
|
2843
|
-
standalone: true,
|
|
2844
|
-
imports: [SlateLeaves]
|
|
2781
|
+
}
|
|
2845
2782
|
}]
|
|
2846
2783
|
}] });
|
|
2847
2784
|
|
|
2848
2785
|
class SlateDefaultText extends BaseTextComponent {
|
|
2849
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2850
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
2786
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: SlateDefaultText, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
2787
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.2", type: SlateDefaultText, isStandalone: true, selector: "span[slateDefaultText]", host: { attributes: { "data-slate-node": "text" } }, usesInheritance: true, ngImport: i0, template: ``, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2851
2788
|
}
|
|
2852
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2789
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: SlateDefaultText, decorators: [{
|
|
2853
2790
|
type: Component,
|
|
2854
2791
|
args: [{
|
|
2855
2792
|
selector: 'span[slateDefaultText]',
|
|
@@ -2857,24 +2794,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
|
2857
2794
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2858
2795
|
host: {
|
|
2859
2796
|
'data-slate-node': 'text'
|
|
2860
|
-
}
|
|
2861
|
-
standalone: true,
|
|
2862
|
-
imports: [SlateLeaves]
|
|
2797
|
+
}
|
|
2863
2798
|
}]
|
|
2864
2799
|
}] });
|
|
2865
2800
|
|
|
2866
2801
|
class SlateDefaultElement extends BaseElementComponent {
|
|
2867
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2868
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
2802
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: SlateDefaultElement, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
2803
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.2", type: SlateDefaultElement, isStandalone: true, selector: "div[slateDefaultElement]", usesInheritance: true, ngImport: i0, template: ``, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2869
2804
|
}
|
|
2870
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2805
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: SlateDefaultElement, decorators: [{
|
|
2871
2806
|
type: Component,
|
|
2872
2807
|
args: [{
|
|
2873
2808
|
selector: 'div[slateDefaultElement]',
|
|
2874
2809
|
template: ``,
|
|
2875
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
2876
|
-
standalone: true,
|
|
2877
|
-
imports: [SlateChildren]
|
|
2810
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
2878
2811
|
}]
|
|
2879
2812
|
}] });
|
|
2880
2813
|
|
|
@@ -2974,10 +2907,10 @@ class ViewContainerItem {
|
|
|
2974
2907
|
this.blockCardComponentRef.instance.append();
|
|
2975
2908
|
}
|
|
2976
2909
|
}
|
|
2977
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2978
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
2910
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: ViewContainerItem, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2911
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.2", type: ViewContainerItem, isStandalone: true, inputs: { viewContext: "viewContext" }, ngImport: i0 }); }
|
|
2979
2912
|
}
|
|
2980
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2913
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: ViewContainerItem, decorators: [{
|
|
2981
2914
|
type: Directive
|
|
2982
2915
|
}], propDecorators: { viewContext: [{
|
|
2983
2916
|
type: Input
|
|
@@ -3042,10 +2975,10 @@ class SlateDefaultString extends BaseComponent {
|
|
|
3042
2975
|
ngOnInit() {
|
|
3043
2976
|
this.nativeElement.setAttribute('editable-text', '');
|
|
3044
2977
|
}
|
|
3045
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3046
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
2978
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: SlateDefaultString, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
2979
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.2", type: SlateDefaultString, isStandalone: true, selector: "span[slateDefaultString]", usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3047
2980
|
}
|
|
3048
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2981
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: SlateDefaultString, decorators: [{
|
|
3049
2982
|
type: Component,
|
|
3050
2983
|
args: [{
|
|
3051
2984
|
selector: 'span[slateDefaultString]',
|
|
@@ -3131,10 +3064,10 @@ class SlateString extends ViewContainerItem {
|
|
|
3131
3064
|
memoizedContext(prev, next) {
|
|
3132
3065
|
return false;
|
|
3133
3066
|
}
|
|
3134
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3135
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
3067
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: SlateString, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
3068
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.2", type: SlateString, isStandalone: true, selector: "span[slateString]", inputs: { context: "context" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3136
3069
|
}
|
|
3137
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3070
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: SlateString, decorators: [{
|
|
3138
3071
|
type: Component,
|
|
3139
3072
|
args: [{
|
|
3140
3073
|
selector: 'span[slateString]',
|
|
@@ -3167,10 +3100,10 @@ class SlateDefaultLeaf extends BaseLeafComponent {
|
|
|
3167
3100
|
// Because the placeholder span is not in the current component, it is destroyed along with the current component
|
|
3168
3101
|
this.destroyPlaceholder();
|
|
3169
3102
|
}
|
|
3170
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3171
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
3103
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: SlateDefaultLeaf, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
3104
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.2", type: SlateDefaultLeaf, isStandalone: true, 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: SlateString, selector: "span[slateString]", inputs: ["context"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3172
3105
|
}
|
|
3173
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3106
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: SlateDefaultLeaf, decorators: [{
|
|
3174
3107
|
type: Component,
|
|
3175
3108
|
args: [{
|
|
3176
3109
|
selector: 'span[slateDefaultLeaf]',
|
|
@@ -3179,7 +3112,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
|
3179
3112
|
host: {
|
|
3180
3113
|
'data-slate-leaf': 'true'
|
|
3181
3114
|
},
|
|
3182
|
-
standalone: true,
|
|
3183
3115
|
imports: [SlateString]
|
|
3184
3116
|
}]
|
|
3185
3117
|
}] });
|
|
@@ -4213,8 +4145,8 @@ class SlateEditable {
|
|
|
4213
4145
|
this.destroy$.complete();
|
|
4214
4146
|
EDITOR_TO_ON_CHANGE.delete(this.editor);
|
|
4215
4147
|
}
|
|
4216
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4217
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
4148
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: SlateEditable, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i0.Injector }, { token: SLATE_DEFAULT_ELEMENT_COMPONENT_TOKEN }, { token: SLATE_DEFAULT_TEXT_COMPONENT_TOKEN }, { token: SLATE_DEFAULT_VOID_TEXT_COMPONENT_TOKEN }, { token: SLATE_DEFAULT_LEAF_COMPONENT_TOKEN }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4149
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.2", type: SlateEditable, isStandalone: true, 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: [
|
|
4218
4150
|
{
|
|
4219
4151
|
provide: NG_VALUE_ACCESSOR,
|
|
4220
4152
|
useExisting: forwardRef(() => SlateEditable),
|
|
@@ -4238,7 +4170,7 @@ class SlateEditable {
|
|
|
4238
4170
|
}
|
|
4239
4171
|
], 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-string-template #templateComponent></slate-string-template>\n", dependencies: [{ kind: "component", type: SlateStringTemplate, selector: "slate-string-template" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4240
4172
|
}
|
|
4241
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4173
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: SlateEditable, decorators: [{
|
|
4242
4174
|
type: Component,
|
|
4243
4175
|
args: [{ selector: 'slate-editable', host: {
|
|
4244
4176
|
class: 'slate-editable-container',
|
|
@@ -4269,7 +4201,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
|
4269
4201
|
provide: SLATE_DEFAULT_LEAF_COMPONENT_TOKEN,
|
|
4270
4202
|
useValue: SlateDefaultLeaf
|
|
4271
4203
|
}
|
|
4272
|
-
],
|
|
4204
|
+
], imports: [SlateStringTemplate], template: "<slate-string-template #templateComponent></slate-string-template>\n" }]
|
|
4273
4205
|
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i0.Injector }, { type: undefined, decorators: [{
|
|
4274
4206
|
type: Inject,
|
|
4275
4207
|
args: [SLATE_DEFAULT_ELEMENT_COMPONENT_TOKEN]
|
|
@@ -4426,23 +4358,81 @@ const preventInsertFromComposition = (event, editor) => {
|
|
|
4426
4358
|
};
|
|
4427
4359
|
|
|
4428
4360
|
class SlateElement extends BaseElementComponent {
|
|
4429
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4430
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
4361
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: SlateElement, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
4362
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.2", type: SlateElement, isStandalone: true, selector: "[slateElement]", usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4431
4363
|
}
|
|
4432
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4364
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: SlateElement, decorators: [{
|
|
4433
4365
|
type: Component,
|
|
4434
4366
|
args: [{
|
|
4435
4367
|
selector: '[slateElement]',
|
|
4436
4368
|
template: '<ng-content></ng-content>',
|
|
4437
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
4438
|
-
standalone: true,
|
|
4439
|
-
imports: [SlateChildren]
|
|
4369
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
4440
4370
|
}]
|
|
4441
4371
|
}] });
|
|
4442
4372
|
|
|
4373
|
+
/**
|
|
4374
|
+
* @deprecated
|
|
4375
|
+
* the special container for angular template
|
|
4376
|
+
* Add the rootNodes of each child component to the parentElement
|
|
4377
|
+
* Remove useless DOM elements, eg: comment...
|
|
4378
|
+
*/
|
|
4379
|
+
class ViewContainer {
|
|
4380
|
+
constructor(elementRef, differs) {
|
|
4381
|
+
this.elementRef = elementRef;
|
|
4382
|
+
this.differs = differs;
|
|
4383
|
+
}
|
|
4384
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: ViewContainer, deps: [{ token: i0.ElementRef }, { token: i0.IterableDiffers }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4385
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.2", type: ViewContainer, isStandalone: true, inputs: { viewContext: "viewContext" }, ngImport: i0 }); }
|
|
4386
|
+
}
|
|
4387
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: ViewContainer, decorators: [{
|
|
4388
|
+
type: Directive
|
|
4389
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.IterableDiffers }], propDecorators: { viewContext: [{
|
|
4390
|
+
type: Input
|
|
4391
|
+
}] } });
|
|
4392
|
+
|
|
4393
|
+
class SlateChildren extends ViewContainer {
|
|
4394
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: SlateChildren, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
4395
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.2", type: SlateChildren, isStandalone: true, selector: "slate-children", inputs: { children: "children", context: "context", viewContext: "viewContext" }, usesInheritance: true, ngImport: i0, template: ``, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4396
|
+
}
|
|
4397
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: SlateChildren, decorators: [{
|
|
4398
|
+
type: Component,
|
|
4399
|
+
args: [{
|
|
4400
|
+
selector: 'slate-children',
|
|
4401
|
+
template: ``,
|
|
4402
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
4403
|
+
standalone: true
|
|
4404
|
+
}]
|
|
4405
|
+
}], propDecorators: { children: [{
|
|
4406
|
+
type: Input
|
|
4407
|
+
}], context: [{
|
|
4408
|
+
type: Input
|
|
4409
|
+
}], viewContext: [{
|
|
4410
|
+
type: Input
|
|
4411
|
+
}] } });
|
|
4412
|
+
|
|
4413
|
+
class SlateLeaves extends ViewContainer {
|
|
4414
|
+
constructor() {
|
|
4415
|
+
super(...arguments);
|
|
4416
|
+
this.initialized = false;
|
|
4417
|
+
}
|
|
4418
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: SlateLeaves, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
4419
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.2", type: SlateLeaves, isStandalone: true, selector: "slate-leaves", inputs: { context: "context" }, usesInheritance: true, ngImport: i0, template: ``, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4420
|
+
}
|
|
4421
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: SlateLeaves, decorators: [{
|
|
4422
|
+
type: Component,
|
|
4423
|
+
args: [{
|
|
4424
|
+
selector: 'slate-leaves',
|
|
4425
|
+
template: ``,
|
|
4426
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
4427
|
+
imports: []
|
|
4428
|
+
}]
|
|
4429
|
+
}], propDecorators: { context: [{
|
|
4430
|
+
type: Input
|
|
4431
|
+
}] } });
|
|
4432
|
+
|
|
4443
4433
|
class SlateModule {
|
|
4444
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4445
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
4434
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: SlateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
4435
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.2", ngImport: i0, type: SlateModule, imports: [CommonModule,
|
|
4446
4436
|
SlateEditable,
|
|
4447
4437
|
SlateDefaultElement,
|
|
4448
4438
|
SlateElement,
|
|
@@ -4456,14 +4446,14 @@ class SlateModule {
|
|
|
4456
4446
|
SlateDefaultLeaf,
|
|
4457
4447
|
SlateDefaultString,
|
|
4458
4448
|
SlateChildrenOutlet], exports: [SlateEditable, SlateChildren, SlateChildrenOutlet, SlateElement, SlateLeaves, SlateString, SlateDefaultString] }); }
|
|
4459
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
4449
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: SlateModule, providers: [
|
|
4460
4450
|
{
|
|
4461
4451
|
provide: SLATE_DEFAULT_ELEMENT_COMPONENT_TOKEN,
|
|
4462
4452
|
useValue: SlateDefaultElement
|
|
4463
4453
|
}
|
|
4464
4454
|
], imports: [CommonModule] }); }
|
|
4465
4455
|
}
|
|
4466
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4456
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.2", ngImport: i0, type: SlateModule, decorators: [{
|
|
4467
4457
|
type: NgModule,
|
|
4468
4458
|
args: [{
|
|
4469
4459
|
imports: [
|