@kvass/widgets 1.9.52 → 1.9.54
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/dist/Selector.ce.js +1 -1
- package/dist/Vimeo.ce.js +1 -1
- package/dist/_plugin-vue_export-helper.js +16 -8
- package/dist/chart-builder.js +3 -3
- package/dist/contact.js +2 -2
- package/dist/directories.js +1 -1
- package/dist/finn.js +11 -11
- package/dist/flatfinder.js +44 -44
- package/dist/font-selector.js +1 -1
- package/dist/google-search-console.js +2 -2
- package/dist/gsc-verification-key-form.js +1 -1
- package/dist/icon-selector.js +1 -1
- package/dist/img-comparison-slider.js +1 -1
- package/dist/index.es.js +3 -3
- package/dist/index.es2.js +22 -22
- package/dist/index2.js +1 -1
- package/dist/index3.js +1 -18
- package/dist/index4.js +18 -0
- package/dist/knips.js +2 -2
- package/dist/kvass-form.js +5 -5
- package/dist/kvass-storyfly.js +1 -1
- package/dist/loan-calculator.js +1 -1
- package/dist/location-selector.js +1 -1
- package/dist/map.js +1 -1
- package/dist/nabolagsprofil.js +1 -1
- package/dist/project-portal.js +1 -1
- package/dist/residential-expenses.js +1 -1
- package/dist/style.js +1 -1
- package/dist/table-builder.js +1 -1
- package/dist/visualization-order-form.js +9 -9
- package/dist/youtube.js +1 -1
- package/package.json +3 -3
package/dist/youtube.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as p,
|
|
1
|
+
import{_ as p,o as d,c as u,a as i,j as h,w as y,y as f,x as l,z as b,A as g,B as w,t as c,d as v,p as k}from"./_plugin-vue_export-helper.js";import{L as _,W as S,E as a}from"./index.js";const B=".widget-kvass-media-render-youtube{height:100%;width:100%;position:relative}.widget-kvass-media-render-youtube iframe{height:100%;width:100%}.widget-kvass-media-render-youtube>*{position:absolute;top:0;left:0;width:100%;height:100%}.widget-kvass-media-render-youtube__thumbnail{background-size:cover;background-repeat:no-repeat;background-position:center;filter:blur(10px);opacity:.7}.widget-kvass-media-render-youtube__blocked{display:flex;justify-content:center;align-items:center;left:50%;top:50%;transform:translate(-50%,-50%)}.widget-kvass-media-render-youtube__blocked svg{opacity:.3}@media (max-width: 992px){.widget-kvass-media-render-youtube__blocked svg{font-size:2.5em}}.widget-kvass-media-render-youtube__blocked-warning{pointer-events:initial;position:absolute;bottom:0;text-align:center;background-color:#f2f2f2;font-size:.6em;bottom:3rem;left:3rem;max-width:400px;font-size:.8em;padding:1.5em 2em}.widget-kvass-media-render-youtube__blocked-warning-button{padding:.5rem;border:1px solid #818181;backdrop-filter:none;background-color:transparent}@media (max-width: 992px){.widget-kvass-media-render-youtube__blocked-warning{left:.5rem;bottom:.5rem;font-size:.6em;max-width:200px}}.widget-kvass-media-render-youtube .fade-enter-active,.widget-kvass-media-render-youtube .fade-leave-active{transition:opacity .5s}.widget-kvass-media-render-youtube .fade-enter,.widget-kvass-media-render-youtube .fade-leave-to{opacity:0}",x={props:{url:{type:String,default:""},videoState:{type:String,default:"ready",enums:["ready ","play","pause"]},loop:{type:[String,Boolean],default:!0},autoplay:{type:[String,Boolean],default:!1},controls:{type:[String,Boolean],default:!0},mute:{type:[String,Boolean],default:!1},displayThumbnail:{type:[String,Boolean],default:!0},ignoreConsent:{type:[String,Boolean],default:!1},hideConsent:{type:[String,Boolean],default:!1},thumbnailSource:{type:String,default:""},consentBlockMessage:{type:String,default:"The video is blocked due to lack of consent to cookies"},consentButtonLabel:{type:String,default:"Edit consents"},aspectRatio:{type:String,default:"16/9"}},watch:{videoState:{handler(e,t){if(e!==t)switch(e){case"play":return this.play();case"pause":return this.pause();default:return}}}},data(){return{ready:!1,thumbnail:null,consents:[]}},computed:{kvassDefined(){return typeof Kvass<"u"},showConsent(){return this.hideConsent||!this.kvassDefined?!1:!this.ignoreConsent&&!this.consents.includes("statistics")},videoId(){if(!this.url)return;let e=this.url,t=[a(e,/https\:\/\/(w{3}\.)?youtube\.com\/watch\?v=(.+)\/?/,{group:2}),a(e,/https\:\/\/(w{3}\.)?youtube\.com\/embed\/(.+)\/?/,{group:2}),a(e,/https\:\/\/(w{3}\.)?youtube\.com\/watch\/(.+)\/?/,{group:2}),a(e,/https\:\/\/(w{3}\.)?youtu\.be\/(.+)\/?/,{group:2})].find(s=>!!s);if(t)return t.split("&")[0]}},methods:{openConsent(){this.kvassDefined&&Kvass.emit("consent:show")},play(){this.player.mute(),this.player.playVideo()},pause(){this.player.pauseVideo()},async init(){const e={loop:this.loop,autoplay:this.autoplay,controls:this.controls,muted:this.mute||this.autoplay,enablejsapi:1,playsinline:1};function t(s){return s==="false"?!1:s==="true"?!0:s}Object.entries(e).map(([s,r])=>e[s]=Number(t(r))),_("https://www.youtube.com/iframe_api"),await S(()=>window.YT&&window.YT.Player,{limit:200}),this.player=new YT.Player(this.$refs.youtubePlayer,{videoId:this.videoId,playerVars:{...e,videoId:this.videoId,origin:window.location.host},events:{onReady:s=>{this.ready=!0,e.mute&&this.player.mute(),e.autoplay&&this.play()}}})}},async mounted(){if(this.displayThumbnail&&(this.thumbnail=!this.thumbnailSource&&this.kvassDefined?`/api/media/thumbnail?url=${this.url}`:this.thumbnailSource),this.ignoreConsent||!this.kvassDefined)return this.init();let e=t=>{if(this.consents=t||[],!(!this.consents||!this.consents.length)&&this.consents.includes("statistics"))return this.init()};this.kvassDefined&&(Kvass.emit("consent:get",t=>e(t)),Kvass.on("consent:change",e))}},C={ref:"youtubePlayer",class:"kvass-media-render-youtube__embed",frameborder:"0",allow:"autoplay; fullscreen;",webkitallowfullscreen:"",mozallowfullscreen:""},T={key:0,class:"widget-kvass-media-render-youtube__blocked"},z={class:"widget-kvass-media-render-youtube__blocked-warning"};function D(e,t,s,r,n,o){return d(),u("div",{class:"widget-kvass-media-render-youtube",style:l(`aspect-ratio: ${s.aspectRatio};`)},[i("div",C,null,512),h(g,{name:"fade",mode:"in-out"},{default:y(()=>[f(i("div",{class:"widget-kvass-media-render-youtube__thumbnail",style:l({backgroundImage:`url(${n.thumbnail})`})},null,4),[[b,!n.ready&&n.thumbnail]])]),_:1}),o.showConsent?(d(),u("div",T,[i("div",z,[w(c(s.consentBlockMessage)+" ",1),i("button",{class:"widget-kvass-media-render-youtube__blocked-warning-button",onClick:t[0]||(t[0]=(...m)=>o.openConsent&&o.openConsent(...m))},c(s.consentButtonLabel),1)])])):v("",!0)],4)}const E=p(x,[["render",D],["styles",[B]]]);customElements.define("kvass-youtube",k(E));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kvass/widgets",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.54",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "vite",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"@kvass/storage": "^1.1.0",
|
|
18
18
|
"@kvass/ui": "1.6.60",
|
|
19
19
|
"@kvass/vue3-flatfinder": "^1.0.81",
|
|
20
|
-
"@vueuse/core": "
|
|
20
|
+
"@vueuse/core": "10.9.0",
|
|
21
21
|
"chart.js": "^4.4.2",
|
|
22
22
|
"chartjs-adapter-date-fns": "^3.0.0",
|
|
23
23
|
"chartjs-plugin-datalabels": "^2.2.0",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"lottie-web-vue": "^2.0.7",
|
|
26
26
|
"object-hash": "^3.0.0",
|
|
27
27
|
"ramda": "^0.30.1",
|
|
28
|
-
"vue": "
|
|
28
|
+
"vue": "3.5.14",
|
|
29
29
|
"vue-chartjs": "^5.3.1",
|
|
30
30
|
"webfontloader": "^1.6.28",
|
|
31
31
|
"validator": "^13.12.0",
|