@smartbit4all/ng-client 3.3.154 → 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.
@@ -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
- if (this.model?.parentStyle) {
15267
- let element = this.element?.nativeElement;
15268
- if (element && element.parentNode) {
15269
- element = element.parentNode;
15270
- SmartStyleUtility.applyStyle(this.model?.parentStyle, 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) {