@vectoriox/iox-ui 4.7.5 → 4.8.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.
@@ -966,11 +966,11 @@ class BuilderIconComponent {
966
966
  this.nodeId = '';
967
967
  }
968
968
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: BuilderIconComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
969
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.11", type: BuilderIconComponent, isStandalone: false, selector: "i[iox-icon]", inputs: { iconClass: "iconClass", nodeId: "nodeId" }, host: { properties: { "class": "iconClass + ' iox-node-' + nodeId" } }, ngImport: i0, template: '', isInline: true, styles: [":host{display:block;line-height:0}\n"] }); }
969
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.11", type: BuilderIconComponent, isStandalone: false, selector: "i[iox-icon]", inputs: { iconClass: "iconClass", nodeId: "nodeId" }, host: { properties: { "class": "iconClass + ' iox-node-' + nodeId" } }, ngImport: i0, template: '', isInline: true, styles: [":host{display:inline-flex;align-items:center;justify-content:center;line-height:0}\n"] }); }
970
970
  }
971
971
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: BuilderIconComponent, decorators: [{
972
972
  type: Component,
973
- args: [{ selector: 'i[iox-icon]', template: '', host: { '[class]': "iconClass + ' iox-node-' + nodeId" }, standalone: false, styles: [":host{display:block;line-height:0}\n"] }]
973
+ args: [{ selector: 'i[iox-icon]', template: '', host: { '[class]': "iconClass + ' iox-node-' + nodeId" }, standalone: false, styles: [":host{display:inline-flex;align-items:center;justify-content:center;line-height:0}\n"] }]
974
974
  }], propDecorators: { iconClass: [{
975
975
  type: Input
976
976
  }], nodeId: [{
@@ -1497,6 +1497,10 @@ class ClientSliderContainerComponent {
1497
1497
  constructor(platformId) {
1498
1498
  this.platformId = platformId;
1499
1499
  this.nodeId = '';
1500
+ /** Language (writing) direction. Rendered as the `dir` attribute so it survives SSR and drives
1501
+ * Swiper's RTL layout — must match the builder's app-slider-container, which had `dir` while
1502
+ * this engine-runtime component did not (RTL showed in the editor but never on the live site). */
1503
+ this.dir = 'ltr';
1500
1504
  this.direction = 'horizontal';
1501
1505
  this.loop = false;
1502
1506
  this.slidesPerView = 1;
@@ -1576,6 +1580,9 @@ class ClientSliderContainerComponent {
1576
1580
  }
1577
1581
  const config = {
1578
1582
  modules,
1583
+ // Swiper reads the container's `dir` attribute, but pass it explicitly so RTL is applied
1584
+ // on init regardless of attribute timing.
1585
+ dir: this.dir,
1579
1586
  direction: this.direction,
1580
1587
  loop: this.loop,
1581
1588
  slidesPerView: this.slidesPerView,
@@ -1606,8 +1613,8 @@ class ClientSliderContainerComponent {
1606
1613
  this.instanceRegistry.register(this.nodeId, this._swiper);
1607
1614
  }
1608
1615
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: ClientSliderContainerComponent, deps: [{ token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Component }); }
1609
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.11", type: ClientSliderContainerComponent, isStandalone: false, selector: "iox-slider-container", inputs: { nodeId: "nodeId", direction: "direction", loop: "loop", slidesPerView: "slidesPerView", spaceBetween: "spaceBetween", speed: "speed", effect: "effect", grabCursor: "grabCursor", centeredSlides: "centeredSlides", initialSlide: "initialSlide", enableNavigation: "enableNavigation", enablePagination: "enablePagination", enableScrollbar: "enableScrollbar", enableAutoplay: "enableAutoplay", enableKeyboard: "enableKeyboard", enableMousewheel: "enableMousewheel", enableZoom: "enableZoom", enableGrid: "enableGrid", enableParallax: "enableParallax", autoplayDelay: "autoplayDelay", autoplayPauseOnMouseEnter: "autoplayPauseOnMouseEnter", autoplayDisableOnInteraction: "autoplayDisableOnInteraction", paginationType: "paginationType", paginationClickable: "paginationClickable", gridRows: "gridRows", breakpoints: "breakpoints" }, viewQueries: [{ propertyName: "childrenHost", first: true, predicate: ["childrenHost"], descendants: true, read: ViewContainerRef, static: true }, { propertyName: "swiperEl", first: true, predicate: ["swiperEl"], descendants: true, static: true }], ngImport: i0, template: `
1610
- <div class="swiper" [class]="'iox-node-' + nodeId" #swiperEl>
1616
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.11", type: ClientSliderContainerComponent, isStandalone: false, selector: "iox-slider-container", inputs: { nodeId: "nodeId", dir: "dir", direction: "direction", loop: "loop", slidesPerView: "slidesPerView", spaceBetween: "spaceBetween", speed: "speed", effect: "effect", grabCursor: "grabCursor", centeredSlides: "centeredSlides", initialSlide: "initialSlide", enableNavigation: "enableNavigation", enablePagination: "enablePagination", enableScrollbar: "enableScrollbar", enableAutoplay: "enableAutoplay", enableKeyboard: "enableKeyboard", enableMousewheel: "enableMousewheel", enableZoom: "enableZoom", enableGrid: "enableGrid", enableParallax: "enableParallax", autoplayDelay: "autoplayDelay", autoplayPauseOnMouseEnter: "autoplayPauseOnMouseEnter", autoplayDisableOnInteraction: "autoplayDisableOnInteraction", paginationType: "paginationType", paginationClickable: "paginationClickable", gridRows: "gridRows", breakpoints: "breakpoints" }, viewQueries: [{ propertyName: "childrenHost", first: true, predicate: ["childrenHost"], descendants: true, read: ViewContainerRef, static: true }, { propertyName: "swiperEl", first: true, predicate: ["swiperEl"], descendants: true, static: true }], ngImport: i0, template: `
1617
+ <div class="swiper" [class]="'iox-node-' + nodeId" [attr.dir]="dir" [style.direction]="dir" #swiperEl>
1611
1618
  <div class="swiper-wrapper">
1612
1619
  <ng-container #childrenHost></ng-container>
1613
1620
  </div>
@@ -1621,7 +1628,7 @@ class ClientSliderContainerComponent {
1621
1628
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImport: i0, type: ClientSliderContainerComponent, decorators: [{
1622
1629
  type: Component,
1623
1630
  args: [{ selector: 'iox-slider-container', template: `
1624
- <div class="swiper" [class]="'iox-node-' + nodeId" #swiperEl>
1631
+ <div class="swiper" [class]="'iox-node-' + nodeId" [attr.dir]="dir" [style.direction]="dir" #swiperEl>
1625
1632
  <div class="swiper-wrapper">
1626
1633
  <ng-container #childrenHost></ng-container>
1627
1634
  </div>
@@ -1636,6 +1643,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImpo
1636
1643
  args: [PLATFORM_ID]
1637
1644
  }] }], propDecorators: { nodeId: [{
1638
1645
  type: Input
1646
+ }], dir: [{
1647
+ type: Input
1639
1648
  }], direction: [{
1640
1649
  type: Input
1641
1650
  }], loop: [{
@@ -2092,6 +2101,14 @@ function renderDefaultDeclarations(type, styleProps, hasHoverState) {
2092
2101
  // it is not enough: the icon would inherit 1.5 from its container instead.
2093
2102
  if (type === 'Icon')
2094
2103
  out.push('line-height: 0');
2104
+ // An icon's `<i>` must shrink-wrap its glyph so it grows with font-size and doesn't overflow its
2105
+ // parent. Phosphor forces `display:inline-flex` on its own class; generated (fantasticon) fonts
2106
+ // don't, so the engine's plain `<i class="bi-x iox-node-…">` would fall back to inline and the
2107
+ // glyph would overflow. Emit it here (guarded so a user-set display still wins) — mirrors the
2108
+ // builder Icon component's `:host{display:inline-flex}`.
2109
+ if (type === 'Icon' && sp['display'] === undefined) {
2110
+ out.push('display: inline-flex', 'align-items: center', 'justify-content: center');
2111
+ }
2095
2112
  return out;
2096
2113
  }
2097
2114