slate-angular 14.0.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 +23 -11
- 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 +17 -14
- package/esm2020/view/container-item.mjs +5 -5
- package/esm2020/view/container.mjs +3 -3
- package/fesm2015/slate-angular.mjs +109 -94
- package/fesm2015/slate-angular.mjs.map +1 -1
- package/fesm2020/slate-angular.mjs +109 -94
- 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 +5 -4
- package/view/container-item.d.ts +1 -1
- package/view/container.d.ts +1 -1
|
@@ -11,5 +11,5 @@ export declare class SlateBlockCardComponent implements OnInit {
|
|
|
11
11
|
append(): void;
|
|
12
12
|
initializeCenter(rootNodes: HTMLElement[]): void;
|
|
13
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<SlateBlockCardComponent, never>;
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SlateBlockCardComponent, "slate-block-card, [slateBlockCard]", never, {}, {}, never, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SlateBlockCardComponent, "slate-block-card, [slateBlockCard]", never, {}, {}, never, never, false>;
|
|
15
15
|
}
|
|
@@ -12,5 +12,5 @@ export declare class SlateChildrenComponent extends ViewContainer<SlateDescendan
|
|
|
12
12
|
ngOnInit(): void;
|
|
13
13
|
trackBy: (index: any, node: any) => any;
|
|
14
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<SlateChildrenComponent, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SlateChildrenComponent, "slate-children", never, { "children": "children"; "context": "context"; "viewContext": "viewContext"; }, {}, never, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SlateChildrenComponent, "slate-children", never, { "children": "children"; "context": "context"; "viewContext": "viewContext"; }, {}, never, never, false>;
|
|
16
16
|
}
|
|
@@ -31,5 +31,5 @@ export declare class SlateDescendantComponent extends ViewContainerItem<SlateEle
|
|
|
31
31
|
memoizedTextContext(prev: SlateTextContext, next: SlateTextContext): boolean;
|
|
32
32
|
memoizedContext(prev: SlateElementContext | SlateTextContext, next: SlateElementContext | SlateTextContext): boolean;
|
|
33
33
|
static ɵfac: i0.ɵɵFactoryDeclaration<SlateDescendantComponent, never>;
|
|
34
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SlateDescendantComponent, "slate-descendant", never, { "descendant": "descendant"; "context": "context"; "viewContext": "viewContext"; "index": "index"; }, {}, never, never>;
|
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SlateDescendantComponent, "slate-descendant", never, { "descendant": "descendant"; "context": "context"; "viewContext": "viewContext"; "index": "index"; }, {}, never, never, false>;
|
|
35
35
|
}
|
|
@@ -94,5 +94,5 @@ export declare class SlateEditableComponent implements OnInit, OnChanges, OnDest
|
|
|
94
94
|
private isDOMEventHandled;
|
|
95
95
|
ngOnDestroy(): void;
|
|
96
96
|
static ɵfac: i0.ɵɵFactoryDeclaration<SlateEditableComponent, never>;
|
|
97
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SlateEditableComponent, "slate-editable", never, { "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"; }, {}, never, never>;
|
|
97
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SlateEditableComponent, "slate-editable", never, { "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"; }, {}, never, never, false>;
|
|
98
98
|
}
|
|
@@ -2,5 +2,5 @@ import { BaseElementComponent } from '../../view/base';
|
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class SlateDefaultElementComponent extends BaseElementComponent {
|
|
4
4
|
static ɵfac: i0.ɵɵFactoryDeclaration<SlateDefaultElementComponent, never>;
|
|
5
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SlateDefaultElementComponent, "div[slateDefaultElement]", never, {}, {}, never, never>;
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SlateDefaultElementComponent, "div[slateDefaultElement]", never, {}, {}, never, never, false>;
|
|
6
6
|
}
|
|
@@ -2,5 +2,5 @@ import { BaseElementComponent } from '../../view/base';
|
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class SlateElementComponent extends BaseElementComponent {
|
|
4
4
|
static ɵfac: i0.ɵɵFactoryDeclaration<SlateElementComponent, never>;
|
|
5
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SlateElementComponent, "[slateElement]", never, {}, {}, never, ["*"]>;
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SlateElementComponent, "[slateElement]", never, {}, {}, never, ["*"], false>;
|
|
6
6
|
}
|
|
@@ -5,5 +5,5 @@ export declare class SlateDefaultLeafComponent extends BaseLeafComponent impleme
|
|
|
5
5
|
onContextChange(): void;
|
|
6
6
|
ngOnDestroy(): void;
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<SlateDefaultLeafComponent, never>;
|
|
8
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SlateDefaultLeafComponent, "span[slateDefaultLeaf]", never, {}, {}, never, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SlateDefaultLeafComponent, "span[slateDefaultLeaf]", never, {}, {}, never, never, false>;
|
|
9
9
|
}
|
|
@@ -12,5 +12,5 @@ export declare class SlateLeafComponent extends ViewContainerItem<SlateLeafConte
|
|
|
12
12
|
memoizedContext(prev: SlateLeafContext, next: SlateLeafContext): boolean;
|
|
13
13
|
ngOnChanges(simpleChanges: SimpleChanges): void;
|
|
14
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<SlateLeafComponent, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SlateLeafComponent, "slate-leaf", never, { "context": "context"; }, {}, never, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SlateLeafComponent, "slate-leaf", never, { "context": "context"; }, {}, never, never, false>;
|
|
16
16
|
}
|
|
@@ -21,5 +21,5 @@ export declare class SlateLeavesComponent extends ViewContainer<SlateLeafCompone
|
|
|
21
21
|
ngOnChanges(simpleChanges: SimpleChanges): void;
|
|
22
22
|
trackBy(index: any, item: any): any;
|
|
23
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<SlateLeavesComponent, never>;
|
|
24
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SlateLeavesComponent, "slate-leaves", never, { "context": "context"; }, {}, never, never>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SlateLeavesComponent, "slate-leaves", never, { "context": "context"; }, {}, never, never, false>;
|
|
25
25
|
}
|
|
@@ -14,5 +14,5 @@ export declare class SlateStringComponent extends ViewContainerItem<SlateStringC
|
|
|
14
14
|
getContext(): SlateStringContext;
|
|
15
15
|
memoizedContext(prev: SlateStringContext, next: SlateStringContext): boolean;
|
|
16
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<SlateStringComponent, never>;
|
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SlateStringComponent, "span[slateString]", never, { "context": "context"; }, {}, never, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SlateStringComponent, "span[slateString]", never, { "context": "context"; }, {}, never, never, false>;
|
|
18
18
|
}
|
|
@@ -7,5 +7,5 @@ export declare class SlateStringTemplateComponent {
|
|
|
7
7
|
emptyTextTemplate: TemplateRef<any>;
|
|
8
8
|
lineBreakEmptyStringTemplate: TemplateRef<any>;
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<SlateStringTemplateComponent, never>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SlateStringTemplateComponent, "slate-string-template", never, {}, {}, never, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SlateStringTemplateComponent, "slate-string-template", never, {}, {}, never, never, false>;
|
|
11
11
|
}
|
|
@@ -2,5 +2,5 @@ import { BaseTextComponent } from '../../view/base';
|
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class SlateDefaultTextComponent extends BaseTextComponent {
|
|
4
4
|
static ɵfac: i0.ɵɵFactoryDeclaration<SlateDefaultTextComponent, never>;
|
|
5
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SlateDefaultTextComponent, "span[slateDefaultText]", never, {}, {}, never, never>;
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SlateDefaultTextComponent, "span[slateDefaultText]", never, {}, {}, never, never, false>;
|
|
6
6
|
}
|
|
@@ -6,5 +6,5 @@ export declare class SlateVoidTextComponent extends BaseTextComponent implements
|
|
|
6
6
|
ngOnInit(): void;
|
|
7
7
|
ngOnChanges(): void;
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<SlateVoidTextComponent, never>;
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SlateVoidTextComponent, "span[slateVoidText]", never, {}, {}, never, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SlateVoidTextComponent, "span[slateVoidText]", never, {}, {}, never, never, false>;
|
|
10
10
|
}
|
|
@@ -21,9 +21,9 @@ export class SlateBlockCardComponent {
|
|
|
21
21
|
this.centerRootNodes = rootNodes;
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
-
SlateBlockCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
25
|
-
SlateBlockCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
26
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
24
|
+
SlateBlockCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SlateBlockCardComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
25
|
+
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>" });
|
|
26
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SlateBlockCardComponent, decorators: [{
|
|
27
27
|
type: Component,
|
|
28
28
|
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>" }]
|
|
29
29
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { centerContianer: [{
|
|
@@ -3,8 +3,8 @@ import { SlateDescendantComponent } from "../descendant/descendant.component";
|
|
|
3
3
|
import { AngularEditor } from "../../plugins/angular-editor";
|
|
4
4
|
import { ViewContainer } from "../../view/container";
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "
|
|
7
|
-
import * as i2 from "
|
|
6
|
+
import * as i1 from "@angular/common";
|
|
7
|
+
import * as i2 from "../descendant/descendant.component";
|
|
8
8
|
export class SlateChildrenComponent extends ViewContainer {
|
|
9
9
|
constructor() {
|
|
10
10
|
super(...arguments);
|
|
@@ -15,14 +15,14 @@ export class SlateChildrenComponent extends ViewContainer {
|
|
|
15
15
|
ngOnInit() {
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
-
SlateChildrenComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
19
|
-
SlateChildrenComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
18
|
+
SlateChildrenComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SlateChildrenComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
19
|
+
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
|
|
20
20
|
[descendant]="descendant"
|
|
21
21
|
[context]="context" [viewContext]="viewContext"
|
|
22
22
|
[viewContext]="viewContext"
|
|
23
23
|
[index]="index"
|
|
24
|
-
*ngFor="let descendant of children;let index = index; trackBy: trackBy"></slate-descendant>`, isInline: true,
|
|
25
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
24
|
+
*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: i2.SlateDescendantComponent, selector: "slate-descendant", inputs: ["descendant", "context", "viewContext", "index"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
25
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SlateChildrenComponent, decorators: [{
|
|
26
26
|
type: Component,
|
|
27
27
|
args: [{
|
|
28
28
|
selector: 'slate-children',
|
|
@@ -159,9 +159,9 @@ export class SlateDescendantComponent extends ViewContainerItem {
|
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
|
-
SlateDescendantComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
163
|
-
SlateDescendantComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
164
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
162
|
+
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 });
|
|
163
|
+
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 });
|
|
164
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SlateDescendantComponent, decorators: [{
|
|
165
165
|
type: Component,
|
|
166
166
|
args: [{
|
|
167
167
|
selector: 'slate-descendant',
|