slate-angular 1.8.0 → 1.9.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/bundles/slate-angular.umd.js +19 -3
- package/bundles/slate-angular.umd.js.map +1 -1
- package/components/block-card/block-card.component.d.ts +2 -0
- package/components/descendant/descendant.component.d.ts +1 -3
- package/esm2015/components/block-card/block-card.component.js +8 -4
- package/esm2015/components/descendant/descendant.component.js +1 -1
- package/esm2015/view/container-item.js +6 -1
- package/esm2015/view/container.js +3 -1
- package/fesm2015/slate-angular.js +14 -3
- package/fesm2015/slate-angular.js.map +1 -1
- package/package.json +1 -1
- package/view/container-item.d.ts +3 -0
|
@@ -2028,12 +2028,21 @@
|
|
|
2028
2028
|
enumerable: false,
|
|
2029
2029
|
configurable: true
|
|
2030
2030
|
});
|
|
2031
|
+
Object.defineProperty(SlateBlockCardComponent.prototype, "centerContainerElement", {
|
|
2032
|
+
get: function () {
|
|
2033
|
+
return this.centerContianer.nativeElement;
|
|
2034
|
+
},
|
|
2035
|
+
enumerable: false,
|
|
2036
|
+
configurable: true
|
|
2037
|
+
});
|
|
2031
2038
|
SlateBlockCardComponent.prototype.ngOnInit = function () {
|
|
2032
|
-
|
|
2033
|
-
fragment.append.apply(fragment, __spreadArray([], __read(this.centerRootNodes)));
|
|
2034
|
-
this.centerContianer.nativeElement.appendChild(fragment);
|
|
2039
|
+
this.append();
|
|
2035
2040
|
this.nativeElement.classList.add("slate-block-card");
|
|
2036
2041
|
};
|
|
2042
|
+
SlateBlockCardComponent.prototype.append = function () {
|
|
2043
|
+
var _this = this;
|
|
2044
|
+
this.centerRootNodes.forEach(function (rootNode) { return !_this.centerContainerElement.contains(rootNode) && _this.centerContainerElement.appendChild(rootNode); });
|
|
2045
|
+
};
|
|
2037
2046
|
SlateBlockCardComponent.prototype.initializeCenter = function (rootNodes) {
|
|
2038
2047
|
this.centerRootNodes = rootNodes;
|
|
2039
2048
|
};
|
|
@@ -2144,6 +2153,11 @@
|
|
|
2144
2153
|
}
|
|
2145
2154
|
}
|
|
2146
2155
|
};
|
|
2156
|
+
ViewContainerItem.prototype.appendBlockCardElement = function () {
|
|
2157
|
+
if (this.blockCardComponentRef) {
|
|
2158
|
+
this.blockCardComponentRef.instance.append();
|
|
2159
|
+
}
|
|
2160
|
+
};
|
|
2147
2161
|
return ViewContainerItem;
|
|
2148
2162
|
}());
|
|
2149
2163
|
ViewContainerItem.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: ViewContainerItem, deps: [{ token: i0__namespace.ViewContainerRef }, { token: i0__namespace.ComponentFactoryResolver }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
@@ -2506,6 +2520,8 @@
|
|
|
2506
2520
|
});
|
|
2507
2521
|
}
|
|
2508
2522
|
}
|
|
2523
|
+
// Solve the block-card DOMElement loss when moving nodes
|
|
2524
|
+
record.item.appendBlockCardElement();
|
|
2509
2525
|
};
|
|
2510
2526
|
return ViewContainer;
|
|
2511
2527
|
}());
|