@smartbit4all/ng-client 3.3.153 → 3.3.155
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/esm2020/lib/smart-client/smart-component-api-client.mjs +2 -8
- package/esm2020/lib/view-context/utility/smart-style-utility.mjs +5 -2
- package/fesm2015/smartbit4all-ng-client.mjs +7 -10
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +5 -8
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
- package/lib/view-context/utility/smart-style-utility.d.ts +1 -1
- package/package.json +1 -1
- package/smartbit4all-ng-client-3.3.155.tgz +0 -0
- package/smartbit4all-ng-client-3.3.153.tgz +0 -0
|
@@ -6478,9 +6478,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImpor
|
|
|
6478
6478
|
}], ctorParameters: function () { return []; } });
|
|
6479
6479
|
|
|
6480
6480
|
class SmartStyleUtility {
|
|
6481
|
-
static applyStyle(style, elementRef, renderer) {
|
|
6481
|
+
static applyStyle(style, elementRef, renderer, parent) {
|
|
6482
6482
|
if (style && elementRef && renderer) {
|
|
6483
6483
|
let element = elementRef.nativeElement;
|
|
6484
|
+
if (parent && element && element.parentNode) {
|
|
6485
|
+
element = element.parentNode;
|
|
6486
|
+
}
|
|
6484
6487
|
// css style properties
|
|
6485
6488
|
if (style.style) {
|
|
6486
6489
|
Object.entries(style.style).forEach(([key, value]) => {
|
|
@@ -15263,13 +15266,7 @@ class SmartComponentApiClient {
|
|
|
15263
15266
|
}
|
|
15264
15267
|
initComponentByModel() {
|
|
15265
15268
|
SmartStyleUtility.applyStyle(this.model?.style, this.element, this.renderer);
|
|
15266
|
-
|
|
15267
|
-
let element = this.element?.nativeElement;
|
|
15268
|
-
if (element && element.parentNode) {
|
|
15269
|
-
element = element.parentNode;
|
|
15270
|
-
SmartStyleUtility.applyStyle(this.model?.style, element, this.renderer);
|
|
15271
|
-
}
|
|
15272
|
-
}
|
|
15269
|
+
SmartStyleUtility.applyStyle(this.model?.parentStyle, this.element, this.renderer, true);
|
|
15273
15270
|
this.initData();
|
|
15274
15271
|
this.initActions();
|
|
15275
15272
|
if (this.useQueryLists) {
|