@vectoriox/iox-ui 5.73.1 → 5.73.4

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.
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { EventEmitter, HostListener, Output, Input, Directive, NgModule, Injectable, ViewChild, Component, Host, Optional, inject, NgZone, InjectionToken, Inject, ChangeDetectionStrategy, ViewContainerRef, PLATFORM_ID, reflectComponentType, signal, computed } from '@angular/core';
2
+ import { EventEmitter, HostListener, Output, Input, Directive, NgModule, Injectable, ViewChild, Component, Host, Optional, inject, NgZone, InjectionToken, Inject, ChangeDetectionStrategy, ViewContainerRef, PLATFORM_ID, HostBinding, reflectComponentType, signal, computed } from '@angular/core';
3
3
  import * as i2 from '@angular/animations';
4
4
  import { style, animate } from '@angular/animations';
5
5
  import { Subject, fromEvent } from 'rxjs';
@@ -13,7 +13,7 @@ import { SLIDER_WORDS, sliderPartElement, SliderRole, sliderWords, attachCarouse
13
13
  import { getByPath } from '@vectoriox/iox-ui/data-core';
14
14
  export * from '@vectoriox/iox-ui/data-core';
15
15
  import { dialogOpenerAttributes, dialogDomId } from '@vectoriox/iox-ui/actions-core';
16
- import { planVideo, videoRootAttributes, videoInnerHtml, videoWords, VideoAttribute, attachVideoAt, VideoClass } from '@vectoriox/iox-ui/media-core';
16
+ import { VideoKind, planVideo, videoRootAttributes, videoInnerHtml, videoWords, VideoAttribute, attachVideoAt, VideoClass } from '@vectoriox/iox-ui/media-core';
17
17
  import * as i1$1 from '@angular/platform-browser';
18
18
  import { SCENE_REVEAL_DEFAULT, SceneRevealFrom, revealClipPath, TextRevealBy, playTextReveal } from '@vectoriox/iox-ui/scene-core';
19
19
 
@@ -5597,6 +5597,14 @@ class IoxVideoComponent {
5597
5597
  get consentCategory() { return this.values['consentCategory']; }
5598
5598
  set frames(v) { this.set('frames', v); }
5599
5599
  get frames() { return this.values['frames']; }
5600
+ /**
5601
+ * A Video the scroll plays usually fills its stage with height: 100%, which is a percent of this host. The host stays a
5602
+ * box, because a node's width and margin live on it, so it passes the height down. Where a Scene flows, 100% of an
5603
+ * auto stage is auto. An ordinary Video keeps its own height, so what stands beside it stays put.
5604
+ */
5605
+ get hostHeight() {
5606
+ return this.plan?.kind === VideoKind.Frames ? '100%' : null;
5607
+ }
5600
5608
  constructor(sanitizer, platformId, isPreview) {
5601
5609
  this.sanitizer = sanitizer;
5602
5610
  this.nodeId = '';
@@ -5644,7 +5652,7 @@ class IoxVideoComponent {
5644
5652
  this.runtime = attachVideoAt(el);
5645
5653
  }
5646
5654
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: IoxVideoComponent, deps: [{ token: i1$1.DomSanitizer }, { token: PLATFORM_ID }, { token: IS_PREVIEW, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
5647
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.31", type: IoxVideoComponent, isStandalone: false, selector: "iox-video", inputs: { nodeId: "nodeId", videoSource: "videoSource", src: "src", poster: "poster", mode: "mode", autoplay: "autoplay", title: "title", captions: "captions", captionsLang: "captionsLang", consentCategory: "consentCategory", frames: "frames" }, viewQueries: [{ propertyName: "root", first: true, predicate: ["root"], descendants: true, static: true }], ngImport: i0, template: "<div #root\n [class]=\"'iox-video iox-node-' + nodeId\"\n [attr.data-iox-video]=\"attrs['data-iox-video'] ?? null\"\n [attr.data-iox-video-source]=\"attrs['data-iox-video-source'] ?? null\"\n [attr.data-iox-video-id]=\"attrs['data-iox-video-id'] ?? null\"\n [attr.data-iox-video-hash]=\"attrs['data-iox-video-hash'] ?? null\"\n [attr.data-iox-video-mode]=\"attrs['data-iox-video-mode'] ?? null\"\n [attr.data-iox-video-autoplay]=\"attrs['data-iox-video-autoplay'] ?? null\"\n [attr.data-iox-video-consent]=\"attrs['data-iox-video-consent'] ?? null\"\n [attr.data-iox-video-title]=\"attrs['data-iox-video-title'] ?? null\"\n [attr.data-iox-video-poster-empty]=\"attrs['data-iox-video-poster-empty'] ?? null\"\n [attr.data-iox-video-frames]=\"attrs['data-iox-video-frames'] ?? null\"\n [innerHTML]=\"html\"></div>", isInline: true, styles: [":host{display:contents}\n"] }); }
5655
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.31", type: IoxVideoComponent, isStandalone: false, selector: "iox-video", inputs: { nodeId: "nodeId", videoSource: "videoSource", src: "src", poster: "poster", mode: "mode", autoplay: "autoplay", title: "title", captions: "captions", captionsLang: "captionsLang", consentCategory: "consentCategory", frames: "frames" }, host: { properties: { "style.height": "this.hostHeight" } }, viewQueries: [{ propertyName: "root", first: true, predicate: ["root"], descendants: true, static: true }], ngImport: i0, template: "<div #root\n [class]=\"'iox-video iox-node-' + nodeId\"\n [attr.data-iox-video]=\"attrs['data-iox-video'] ?? null\"\n [attr.data-iox-video-source]=\"attrs['data-iox-video-source'] ?? null\"\n [attr.data-iox-video-id]=\"attrs['data-iox-video-id'] ?? null\"\n [attr.data-iox-video-hash]=\"attrs['data-iox-video-hash'] ?? null\"\n [attr.data-iox-video-mode]=\"attrs['data-iox-video-mode'] ?? null\"\n [attr.data-iox-video-autoplay]=\"attrs['data-iox-video-autoplay'] ?? null\"\n [attr.data-iox-video-consent]=\"attrs['data-iox-video-consent'] ?? null\"\n [attr.data-iox-video-title]=\"attrs['data-iox-video-title'] ?? null\"\n [attr.data-iox-video-poster-empty]=\"attrs['data-iox-video-poster-empty'] ?? null\"\n [attr.data-iox-video-frames]=\"attrs['data-iox-video-frames'] ?? null\"\n [innerHTML]=\"html\"></div>", isInline: true, styles: [":host{display:block;min-width:0;max-width:100%}\n"] }); }
5648
5656
  }
5649
5657
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImport: i0, type: IoxVideoComponent, decorators: [{
5650
5658
  type: Component,
@@ -5660,7 +5668,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
5660
5668
  [attr.data-iox-video-title]="attrs['${VideoAttribute.Title}'] ?? null"
5661
5669
  [attr.data-iox-video-poster-empty]="attrs['${VideoAttribute.PosterEmpty}'] ?? null"
5662
5670
  [attr.data-iox-video-frames]="attrs['${VideoAttribute.Frames}'] ?? null"
5663
- [innerHTML]="html"></div>`, standalone: false, styles: [":host{display:contents}\n"] }]
5671
+ [innerHTML]="html"></div>`, standalone: false, styles: [":host{display:block;min-width:0;max-width:100%}\n"] }]
5664
5672
  }], ctorParameters: () => [{ type: i1$1.DomSanitizer }, { type: undefined, decorators: [{
5665
5673
  type: Inject,
5666
5674
  args: [PLATFORM_ID]
@@ -5694,6 +5702,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.31", ngImpo
5694
5702
  }], root: [{
5695
5703
  type: ViewChild,
5696
5704
  args: ['root', { static: true }]
5705
+ }], hostHeight: [{
5706
+ type: HostBinding,
5707
+ args: ['style.height']
5697
5708
  }] } });
5698
5709
 
5699
5710
  const COMPONENTS = [