diff --git a/dist/vue-friendly-iframe.js b/dist/vue-friendly-iframe.js index 12da471..30d3d5c 100644 --- a/dist/vue-friendly-iframe.js +++ b/dist/vue-friendly-iframe.js @@ -1,5 +1,5 @@ /*! - * vue-friendly-iframe v0.14.0 (https://github.com/officert/vue-friendly-iframe) + * vue-friendly-iframe v0.16.0 (https://github.com/officert/vue-friendly-iframe) * (c) 2019 Tim Officer * Released under the MIT License. */ diff --git a/dist/vue-friendly-iframe.min.js b/dist/vue-friendly-iframe.min.js index cf33c7b..665de33 100644 --- a/dist/vue-friendly-iframe.min.js +++ b/dist/vue-friendly-iframe.min.js @@ -1,5 +1,5 @@ /*! - * vue-friendly-iframe v0.14.0 (https://github.com/officert/vue-friendly-iframe) + * vue-friendly-iframe v0.16.0 (https://github.com/officert/vue-friendly-iframe) * (c) 2019 Tim Officer * Released under the MIT License. */ diff --git a/docs/docs.js b/docs/docs.js index fe92ee5..60cb544 100644 --- a/docs/docs.js +++ b/docs/docs.js @@ -3,4 +3,4 @@ * (c) 2014-2018 Evan You * Released under the MIT License. */ -var ao=Object.freeze({}),so=Object.prototype.toString,co=h("slot,component",!0),uo=h("key,ref,slot,slot-scope,is"),lo=Object.prototype.hasOwnProperty,fo=/-(\w)/g,po=y(function(e){return e.replace(fo,function(e,t){return t?t.toUpperCase():""})}),ho=y(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),vo=/\B([A-Z])/g,mo=y(function(e){return e.replace(vo,"-$1").toLowerCase()}),yo=Function.prototype.bind?_:g,go=function(e,t,n){return!1},_o=function(e){return e},bo="data-server-rendered",wo=["component","directive","filter"],xo=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured"],$o={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:go,isReservedAttr:go,isUnknownElement:go,getTagNamespace:$,parsePlatformTagName:_o,mustUseProp:go,_lifecycleHooks:xo},Co=/[^\w.$]/,ko="__proto__"in{},Ao="undefined"!=typeof window,Oo="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,Eo=Oo&&WXEnvironment.platform.toLowerCase(),To=Ao&&window.navigator.userAgent.toLowerCase(),So=To&&/msie|trident/.test(To),jo=To&&To.indexOf("msie 9.0")>0,Lo=To&&To.indexOf("edge/")>0,Io=(To&&To.indexOf("android"),To&&/iphone|ipad|ipod|ios/.test(To)||"ios"===Eo),Mo=(To&&/chrome\/\d+/.test(To),{}.watch),Ro=!1;if(Ao)try{var No={};Object.defineProperty(No,"passive",{get:function(){Ro=!0}}),window.addEventListener("test-passive",null,No)}catch(e){}var Po,Do,Fo=function(){return void 0===Po&&(Po=!Ao&&!Oo&&void 0!==t&&"server"===t.process.env.VUE_ENV),Po},Uo=Ao&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,qo="undefined"!=typeof Symbol&&S(Symbol)&&"undefined"!=typeof Reflect&&S(Reflect.ownKeys);Do="undefined"!=typeof Set&&S(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var Ho=$,Bo=0,Vo=function(){this.id=Bo++,this.subs=[]};Vo.prototype.addSub=function(e){this.subs.push(e)},Vo.prototype.removeSub=function(e){v(this.subs,e)},Vo.prototype.depend=function(){Vo.target&&Vo.target.addDep(this)},Vo.prototype.notify=function(){for(var e=this.subs.slice(),t=0,n=e.length;t1?b(n):n;for(var r=b(arguments,1),i=0,o=n.length;iparseInt(this.max)&&Vt(c,u[0],u,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}},ja={KeepAlive:Sa};!function(e){var t={};t.get=function(){return $o},Object.defineProperty(e,"config",t),e.util={warn:Ho,extend:w,mergeOptions:X,defineReactive:F},e.set=U,e.delete=q,e.nextTick=ce,e.options=Object.create(null),wo.forEach(function(t){e.options[t+"s"]=Object.create(null)}),e.options._base=e,w(e.options.components,ja),Rt(e),Nt(e),Pt(e),Ut(e)}(Mt),Object.defineProperty(Mt.prototype,"$isServer",{get:Fo}),Object.defineProperty(Mt.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Mt,"FunctionalRenderContext",{value:yt}),Mt.version="2.5.16";var La,Ia,Ma,Ra,Na,Pa,Da,Fa,Ua,qa=h("style,class"),Ha=h("input,textarea,option,select,progress"),Ba=function(e,t,n){return"value"===n&&Ha(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},Va=h("contenteditable,draggable,spellcheck"),za=h("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Ka="http://www.w3.org/1999/xlink",Ja=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Wa=function(e){return Ja(e)?e.slice(6,e.length):""},Ga=function(e){return null==e||!1===e},Xa={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Za=h("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Ya=h("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Qa=function(e){return"pre"===e},es=function(e){return Za(e)||Ya(e)},ts=Object.create(null),ns=h("text,number,password,search,email,tel,url"),rs=Object.freeze({createElement:tn,createElementNS:nn,createTextNode:rn,createComment:on,insertBefore:an,removeChild:sn,appendChild:cn,parentNode:un,nextSibling:ln,tagName:fn,setTextContent:pn,setStyleScope:dn}),is={create:function(e,t){hn(t)},update:function(e,t){e.data.ref!==t.data.ref&&(hn(e,!0),hn(t))},destroy:function(e){hn(e,!0)}},os=new Ko("",{},[]),as=["create","activate","update","remove","destroy"],ss={create:gn,update:gn,destroy:function(e){gn(e,os)}},cs=Object.create(null),us=[is,ss],ls={create:$n,update:$n},fs={create:An,update:An},ps=/[\w).+\-_$\]]/,ds="__r",hs="__c",vs={create:tr,update:tr},ms={create:nr,update:nr},ys=y(function(e){var t={},n=/;(?![^(]*\))/g,r=/:(.+)/;return e.split(n).forEach(function(e){if(e){var n=e.split(r);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}),gs=/^--/,_s=/\s*!important$/,bs=function(e,t,n){if(gs.test(t))e.style.setProperty(t,n);else if(_s.test(n))e.style.setProperty(t,n.replace(_s,""),"important");else{var r=xs(t);if(Array.isArray(n))for(var i=0,o=n.length;ih?(f=r(n[y+1])?null:n[y+1].elm,g(e,f,n,d,y,o)):d>y&&b(e,t,p,h)}function $(e,t,n,r){for(var o=n;o\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,rc="[a-zA-Z_][\\w\\-\\.]*",ic="((?:"+rc+"\\:)?"+rc+")",oc=new RegExp("^<"+ic),ac=/^\s*(\/?)>/,sc=new RegExp("^<\\/"+ic+"[^>]*>"),cc=/^]+>/i,uc=/^",""":'"',"&":"&"," ":"\n"," ":"\t"},Ac=/&(?:lt|gt|quot|amp);/g,Oc=/&(?:lt|gt|quot|amp|#10|#9);/g,Ec=h("pre,textarea",!0),Tc=function(e,t){return e&&Ec(e)&&"\n"===t[0]},Sc=/^@|^v-on:/,jc=/^v-|^@|^:/,Lc=/([^]*?)\s+(?:in|of)\s+([^]*)/,Ic=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Mc=/^\(|\)$/g,Rc=/:(.*)$/,Nc=/^:|^v-bind:/,Pc=/\.[^.]+/g,Dc=y(Ys.decode),Fc=/^xmlns:NS\d+/,Uc=/^NS\d+:/,qc={preTransformNode:yi},Hc=[Xs,Zs,qc],Bc={model:Kn,text:_i,html:bi},Vc={expectHTML:!0,modules:Hc,directives:Bc,isPreTag:Qa,isUnaryTag:Qs,mustUseProp:Ba,canBeLeftOpenTag:ec,isReservedTag:es,getTagNamespace:Yt,staticKeys:function(e){return e.reduce(function(e,t){return e.concat(t.staticKeys||[])},[]).join(",")}(Hc)},zc=y(xi),Kc=/^([\w$_]+|\([^)]*?\))\s*=>|^function\s*\(/,Jc=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Wc={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Gc={esc:"Escape",tab:"Tab",enter:"Enter",space:" ",up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete"]},Xc=function(e){return"if("+e+")return null;"},Zc={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Xc("$event.target !== $event.currentTarget"),ctrl:Xc("!$event.ctrlKey"),shift:Xc("!$event.shiftKey"),alt:Xc("!$event.altKey"),meta:Xc("!$event.metaKey"),left:Xc("'button' in $event && $event.button !== 0"),middle:Xc("'button' in $event && $event.button !== 1"),right:Xc("'button' in $event && $event.button !== 2")},Yc={on:ji,bind:Li,cloak:$},Qc=function(e){this.options=e,this.warn=e.warn||Tn,this.transforms=Sn(e.modules,"transformCode"),this.dataGenFns=Sn(e.modules,"genData"),this.directives=w(w({},Yc),e.directives);var t=e.isReservedTag||go;this.maybeComponent=function(e){return!t(e.tag)},this.onceId=0,this.staticRenderFns=[]},eu=(new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),new RegExp("\\b"+"delete,typeof,void".split(",").join("\\s*\\([^\\)]*\\)|\\b")+"\\s*\\([^\\)]*\\)"),function(e){return function(t){function n(n,r){var i=Object.create(t),o=[],a=[];if(i.warn=function(e,t){(t?a:o).push(e)},r){r.modules&&(i.modules=(t.modules||[]).concat(r.modules)),r.directives&&(i.directives=w(Object.create(t.directives||null),r.directives));for(var s in r)"modules"!==s&&"directives"!==s&&(i[s]=r[s])}var c=e(n,i);return c.errors=o,c.tips=a,c}return{compile:n,compileToFunctions:ro(n)}}}(function(e,t){var n=Gr(e.trim(),t);!1!==t.optimize&&wi(n,t);var r=Ii(n,t);return{ast:n,render:r.render,staticRenderFns:r.staticRenderFns}})),tu=eu(Vc),nu=tu.compileToFunctions,ru=!!Ao&&io(!1),iu=!!Ao&&io(!0),ou=y(function(e){var t=en(e);return t&&t.innerHTML}),au=Mt.prototype.$mount;Mt.prototype.$mount=function(e,t){if((e=e&&en(e))===document.body||e===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=ou(r));else{if(!r.nodeType)return this;r=r.innerHTML}else e&&(r=oo(e));if(r){var i=nu(r,{shouldDecodeNewlines:ru,shouldDecodeNewlinesForHref:iu,delimiters:n.delimiters,comments:n.comments},this),o=i.render,a=i.staticRenderFns;n.render=o,n.staticRenderFns=a}}return au.call(this,e,t)},Mt.compile=nu,e.exports=Mt}).call(t,n(0),n(6).setImmediate)},function(e,t){function n(e,t){var n=e[1]||"",i=e[3];if(!i)return n;if(t&&"function"==typeof btoa){var o=r(i);return[n].concat(i.sources.map(function(e){return"/*# sourceURL="+i.sourceRoot+e+" */"})).concat([o]).join("\n")}return[n].join("\n")}function r(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var r=n(t,e);return t[2]?"@media "+t[2]+"{"+r+"}":r}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},i=0;in.parts.length&&(r.parts.length=n.parts.length)}else{for(var a=[],i=0;i",router:f.default,components:{App:u.default}}).$mount("#app")},function(e,t,n){(function(e){function r(e,t){this._id=e,this._clearFn=t}var i=void 0!==e&&e||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;t.setTimeout=function(){return new r(o.call(setTimeout,i,arguments),clearTimeout)},t.setInterval=function(){return new r(o.call(setInterval,i,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(i,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n(7),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(t,n(0))},function(e,t,n){(function(e,t){!function(e,n){"use strict";function r(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n1)for(var n=1;n\n