@getflip/swirl-components 0.517.0 → 0.517.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.
- package/components.json +1 -1
- package/dist/cjs/swirl-file-viewer-audio_7.cjs.entry.js +4 -1
- package/dist/collection/components/swirl-file-viewer/viewers/swirl-file-viewer-video/swirl-file-viewer-video.js +4 -1
- package/dist/components/swirl-file-viewer-video2.js +1 -1
- package/dist/esm/swirl-file-viewer-audio_7.entry.js +4 -1
- package/dist/swirl-components/{p-d773cafa.entry.js → p-7bf07b6f.entry.js} +1 -1
- package/dist/swirl-components/swirl-components.esm.js +1 -1
- package/dist/types/components/swirl-file-viewer/viewers/swirl-file-viewer-video/swirl-file-viewer-video.d.ts +1 -0
- package/package.json +1 -1
package/components.json
CHANGED
|
@@ -28731,6 +28731,9 @@ const SwirlFileViewerVideo = class {
|
|
|
28731
28731
|
this.onNativeEnded = () => {
|
|
28732
28732
|
this.playbackEnded.emit(this.getPlaybackDetail());
|
|
28733
28733
|
};
|
|
28734
|
+
this.onKeyDown = (event) => {
|
|
28735
|
+
event.stopPropagation();
|
|
28736
|
+
};
|
|
28734
28737
|
}
|
|
28735
28738
|
componentDidLoad() {
|
|
28736
28739
|
this.activate.emit(this.el);
|
|
@@ -28774,7 +28777,7 @@ const SwirlFileViewerVideo = class {
|
|
|
28774
28777
|
};
|
|
28775
28778
|
}
|
|
28776
28779
|
render() {
|
|
28777
|
-
return (index.h(index.Host, { key: '
|
|
28780
|
+
return (index.h(index.Host, { key: 'c4b740e48720383d57b54a70446905e13db356fd', class: "file-viewer-video" }, index.h("video", { key: 'f1a889c3636429c8d25be050816d92cfabf5cf51', autoplay: this.autoplay, class: "file-viewer-video__video", controls: true, onEnded: this.onNativeEnded, onKeyDown: this.onKeyDown, onPause: this.onNativePause, onPlay: this.onNativePlay, onRateChange: this.onNativeRateChange, onSeeked: this.onNativeSeeked, onSeeking: this.onNativeSeeking, onTimeUpdate: this.onNativeTimeUpdate, src: this.file, ref: (el) => (this.videoEl = el) })));
|
|
28778
28781
|
}
|
|
28779
28782
|
get el() { return index.getElement(this); }
|
|
28780
28783
|
static get watchers() { return {
|
|
@@ -22,6 +22,9 @@ export class SwirlFileViewerVideo {
|
|
|
22
22
|
this.onNativeEnded = () => {
|
|
23
23
|
this.playbackEnded.emit(this.getPlaybackDetail());
|
|
24
24
|
};
|
|
25
|
+
this.onKeyDown = (event) => {
|
|
26
|
+
event.stopPropagation();
|
|
27
|
+
};
|
|
25
28
|
}
|
|
26
29
|
componentDidLoad() {
|
|
27
30
|
this.activate.emit(this.el);
|
|
@@ -65,7 +68,7 @@ export class SwirlFileViewerVideo {
|
|
|
65
68
|
};
|
|
66
69
|
}
|
|
67
70
|
render() {
|
|
68
|
-
return (h(Host, { key: '
|
|
71
|
+
return (h(Host, { key: 'c4b740e48720383d57b54a70446905e13db356fd', class: "file-viewer-video" }, h("video", { key: 'f1a889c3636429c8d25be050816d92cfabf5cf51', autoplay: this.autoplay, class: "file-viewer-video__video", controls: true, onEnded: this.onNativeEnded, onKeyDown: this.onKeyDown, onPause: this.onNativePause, onPlay: this.onNativePlay, onRateChange: this.onNativeRateChange, onSeeked: this.onNativeSeeked, onSeeking: this.onNativeSeeking, onTimeUpdate: this.onNativeTimeUpdate, src: this.file, ref: (el) => (this.videoEl = el) })));
|
|
69
72
|
}
|
|
70
73
|
static get is() { return "swirl-file-viewer-video"; }
|
|
71
74
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{proxyCustomElement as t,HTMLElement as i,createEvent as e,h as s,Host as a,transformTag as h}from"@stencil/core/internal/client";const o=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.activate=e(this,"activate",7),this.playbackPlay=e(this,"playbackPlay",7),this.playbackPause=e(this,"playbackPause",7),this.playbackTimeUpdate=e(this,"playbackTimeUpdate",7),this.playbackSeeked=e(this,"playbackSeeked",7),this.playbackSeeking=e(this,"playbackSeeking",7),this.playbackRateChange=e(this,"playbackRateChange",7),this.playbackEnded=e(this,"playbackEnded",7),this.playbackTeardown=e(this,"playbackTeardown",7),this.onNativePlay=()=>{this.playbackPlay.emit(this.getPlaybackDetail())},this.onNativePause=()=>{this.playbackPause.emit(this.getPlaybackDetail())},this.onNativeTimeUpdate=()=>{this.playbackTimeUpdate.emit(this.getPlaybackDetail())},this.onNativeSeeked=()=>{this.playbackSeeked.emit(this.getPlaybackDetail())},this.onNativeSeeking=()=>{this.playbackSeeking.emit(this.getPlaybackDetail())},this.onNativeRateChange=()=>{this.playbackRateChange.emit(this.getPlaybackRateChangeDetail())},this.onNativeEnded=()=>{this.playbackEnded.emit(this.getPlaybackDetail())}}componentDidLoad(){this.activate.emit(this.el),this.disableDownload&&this.videoEl.setAttribute("controlsList","nodownload")}disconnectedCallback(){this.videoEl&&this.el.dispatchEvent(new CustomEvent("playbackTeardown",{bubbles:!0,composed:!0,detail:this.getPlaybackDetail()}))}watchDisableDownload(){this.disableDownload?this.videoEl.setAttribute("controlsList","nodownload"):this.videoEl.removeAttribute("controlsList")}getPlaybackDetail(){return{currentTime:this.videoEl.currentTime,duration:this.videoEl.duration,videoEl:this.videoEl}}getPlaybackRateChangeDetail(){return{playbackRate:this.videoEl.playbackRate,...this.getPlaybackDetail()}}render(){return s(a,{key:"
|
|
1
|
+
import{proxyCustomElement as t,HTMLElement as i,createEvent as e,h as s,Host as a,transformTag as h}from"@stencil/core/internal/client";const o=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.activate=e(this,"activate",7),this.playbackPlay=e(this,"playbackPlay",7),this.playbackPause=e(this,"playbackPause",7),this.playbackTimeUpdate=e(this,"playbackTimeUpdate",7),this.playbackSeeked=e(this,"playbackSeeked",7),this.playbackSeeking=e(this,"playbackSeeking",7),this.playbackRateChange=e(this,"playbackRateChange",7),this.playbackEnded=e(this,"playbackEnded",7),this.playbackTeardown=e(this,"playbackTeardown",7),this.onNativePlay=()=>{this.playbackPlay.emit(this.getPlaybackDetail())},this.onNativePause=()=>{this.playbackPause.emit(this.getPlaybackDetail())},this.onNativeTimeUpdate=()=>{this.playbackTimeUpdate.emit(this.getPlaybackDetail())},this.onNativeSeeked=()=>{this.playbackSeeked.emit(this.getPlaybackDetail())},this.onNativeSeeking=()=>{this.playbackSeeking.emit(this.getPlaybackDetail())},this.onNativeRateChange=()=>{this.playbackRateChange.emit(this.getPlaybackRateChangeDetail())},this.onNativeEnded=()=>{this.playbackEnded.emit(this.getPlaybackDetail())},this.onKeyDown=t=>{t.stopPropagation()}}componentDidLoad(){this.activate.emit(this.el),this.disableDownload&&this.videoEl.setAttribute("controlsList","nodownload")}disconnectedCallback(){this.videoEl&&this.el.dispatchEvent(new CustomEvent("playbackTeardown",{bubbles:!0,composed:!0,detail:this.getPlaybackDetail()}))}watchDisableDownload(){this.disableDownload?this.videoEl.setAttribute("controlsList","nodownload"):this.videoEl.removeAttribute("controlsList")}getPlaybackDetail(){return{currentTime:this.videoEl.currentTime,duration:this.videoEl.duration,videoEl:this.videoEl}}getPlaybackRateChangeDetail(){return{playbackRate:this.videoEl.playbackRate,...this.getPlaybackDetail()}}render(){return s(a,{key:"c4b740e48720383d57b54a70446905e13db356fd",class:"file-viewer-video"},s("video",{key:"f1a889c3636429c8d25be050816d92cfabf5cf51",autoplay:this.autoplay,class:"file-viewer-video__video",controls:!0,onEnded:this.onNativeEnded,onKeyDown:this.onKeyDown,onPause:this.onNativePause,onPlay:this.onNativePlay,onRateChange:this.onNativeRateChange,onSeeked:this.onNativeSeeked,onSeeking:this.onNativeSeeking,onTimeUpdate:this.onNativeTimeUpdate,src:this.file,ref:t=>this.videoEl=t}))}get el(){return this}static get watchers(){return{disableDownload:[{watchDisableDownload:0}]}}static get style(){return":host{display:inline-flex;width:100%;max-height:100%;pointer-events:auto}:host *{box-sizing:border-box}.file-viewer-video__video{width:100%;background-color:rgba(0, 0, 0, 1)}"}},[1,"swirl-file-viewer-video",{autoplay:[4],disableDownload:[4,"disable-download"],file:[1]},void 0,{disableDownload:[{watchDisableDownload:0}]}]);function l(){"undefined"!=typeof customElements&&["swirl-file-viewer-video"].forEach((t=>{"swirl-file-viewer-video"===t&&(customElements.get(h(t))||customElements.define(h(t),o))}))}export{o as S,l as d}
|
|
@@ -28710,6 +28710,9 @@ const SwirlFileViewerVideo = class {
|
|
|
28710
28710
|
this.onNativeEnded = () => {
|
|
28711
28711
|
this.playbackEnded.emit(this.getPlaybackDetail());
|
|
28712
28712
|
};
|
|
28713
|
+
this.onKeyDown = (event) => {
|
|
28714
|
+
event.stopPropagation();
|
|
28715
|
+
};
|
|
28713
28716
|
}
|
|
28714
28717
|
componentDidLoad() {
|
|
28715
28718
|
this.activate.emit(this.el);
|
|
@@ -28753,7 +28756,7 @@ const SwirlFileViewerVideo = class {
|
|
|
28753
28756
|
};
|
|
28754
28757
|
}
|
|
28755
28758
|
render() {
|
|
28756
|
-
return (h(Host, { key: '
|
|
28759
|
+
return (h(Host, { key: 'c4b740e48720383d57b54a70446905e13db356fd', class: "file-viewer-video" }, h("video", { key: 'f1a889c3636429c8d25be050816d92cfabf5cf51', autoplay: this.autoplay, class: "file-viewer-video__video", controls: true, onEnded: this.onNativeEnded, onKeyDown: this.onKeyDown, onPause: this.onNativePause, onPlay: this.onNativePlay, onRateChange: this.onNativeRateChange, onSeeked: this.onNativeSeeked, onSeeking: this.onNativeSeeking, onTimeUpdate: this.onNativeTimeUpdate, src: this.file, ref: (el) => (this.videoEl = el) })));
|
|
28757
28760
|
}
|
|
28758
28761
|
get el() { return getElement(this); }
|
|
28759
28762
|
static get watchers() { return {
|