@vectoriox/iox-builder 1.6.6 → 1.6.8

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.
@@ -5523,11 +5523,16 @@ class SliderContainerComponent {
5523
5523
  if (v === this._style)
5524
5524
  return;
5525
5525
  this._style = v;
5526
- // Rebuild cached value so ngStyle only re-applies when input actually changed.
5527
- // Avoids DOM style-attribute mutations on every CD tick → prevents MutationObserver spam.
5528
- this._editShellStyle = { ...v, position: 'relative' };
5526
+ // `direction` is driven by the `dir` (Language direction) trait via [style.direction].
5527
+ // Strip it from the ngStyle map: NgStyle writes the inline style last and would otherwise
5528
+ // override the dir-driven direction with the generic Layout default → RTL wouldn't apply.
5529
+ // Rebuild cached objects so ngStyle only re-applies on real input changes (avoids MO spam).
5530
+ const { direction: _dropDirection, ...rest } = v || {};
5531
+ this._previewStyle = rest;
5532
+ this._editShellStyle = { ...rest, position: 'relative' };
5529
5533
  }
5530
5534
  get style() { return this._style; }
5535
+ get previewStyle() { return this._previewStyle; }
5531
5536
  get editShellStyle() { return this._editShellStyle; }
5532
5537
  get source() { return this._source; }
5533
5538
  set source(value) {
@@ -5564,6 +5569,7 @@ class SliderContainerComponent {
5564
5569
  this.activatedRoute = activatedRoute;
5565
5570
  this.children = [];
5566
5571
  this._style = {};
5572
+ this._previewStyle = {};
5567
5573
  this._editShellStyle = { position: 'relative' };
5568
5574
  this.nodeId = '';
5569
5575
  this.dropListId = '';
@@ -5937,7 +5943,7 @@ class SliderContainerComponent {
5937
5943
  <i *ngIf="isLoading" class="ph-thin ph-circle-notch slider-badge-spin"></i>
5938
5944
  </div>
5939
5945
 
5940
- <div #editSwiperEl class="swiper swiper-edit" [attr.dir]="dir">
5946
+ <div #editSwiperEl class="swiper swiper-edit" [attr.dir]="dir" [style.direction]="dir">
5941
5947
  <div class="swiper-wrapper">
5942
5948
 
5943
5949
  <!-- NORMAL MODE: all children as draggable slides -->
@@ -6014,8 +6020,9 @@ class SliderContainerComponent {
6014
6020
  #swiperEl
6015
6021
  class="swiper"
6016
6022
  [ngClass]="['iox-node-' + nodeId]"
6017
- [ngStyle]="style"
6023
+ [ngStyle]="previewStyle"
6018
6024
  [attr.dir]="dir"
6025
+ [style.direction]="dir"
6019
6026
  [style.--swiper-navigation-color]="navigationColor || null"
6020
6027
  [style.--swiper-navigation-size.px]="navigationSize || null"
6021
6028
  [style.--swiper-pagination-color]="paginationColor || null">
@@ -6087,7 +6094,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImpo
6087
6094
  <i *ngIf="isLoading" class="ph-thin ph-circle-notch slider-badge-spin"></i>
6088
6095
  </div>
6089
6096
 
6090
- <div #editSwiperEl class="swiper swiper-edit" [attr.dir]="dir">
6097
+ <div #editSwiperEl class="swiper swiper-edit" [attr.dir]="dir" [style.direction]="dir">
6091
6098
  <div class="swiper-wrapper">
6092
6099
 
6093
6100
  <!-- NORMAL MODE: all children as draggable slides -->
@@ -6164,8 +6171,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImpo
6164
6171
  #swiperEl
6165
6172
  class="swiper"
6166
6173
  [ngClass]="['iox-node-' + nodeId]"
6167
- [ngStyle]="style"
6174
+ [ngStyle]="previewStyle"
6168
6175
  [attr.dir]="dir"
6176
+ [style.direction]="dir"
6169
6177
  [style.--swiper-navigation-color]="navigationColor || null"
6170
6178
  [style.--swiper-navigation-size.px]="navigationSize || null"
6171
6179
  [style.--swiper-pagination-color]="paginationColor || null">