@hyjiacan/vue-slideout 3.0.0 → 3.0.2
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/API.md +19 -16
- package/API.zh-CN.md +14 -11
- package/README.md +8 -8
- package/dist/slideout.common.js +1127 -1720
- package/dist/slideout.css +1 -1
- package/dist/slideout.umd.js +1127 -1720
- package/dist/slideout.umd.min.js +1 -1
- package/package.json +9 -7
- package/src/assets/langs.json +11 -1
- package/src/components/computed.js +25 -69
- package/src/components/index.js +8 -8
- package/src/components/methods.js +33 -26
- package/src/components/renderer.js +13 -15
- package/src/styles/autosize.less +0 -17
- package/src/styles/header.less +5 -10
- package/src/styles/index.less +8 -23
- package/src/views/Main.vue +3 -0
- package/src/views/demos/CustomizeDemo.vue +1 -1
- package/src/views/demos/FillparentDemo.vue +2 -2
- package/src/views/demos/NestedDemo.vue +85 -0
- package/types/slideout.d.ts +96 -0
package/dist/slideout.umd.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("vue")):"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["Slideout"]=e(require("vue")):t["Slideout"]=e(t["Vue"])})("undefined"!==typeof self?self:this,(function(t){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"00ee":function(t,e,n){var r=n("b622"),i=r("toStringTag"),o={};o[i]="z",t.exports="[object z]"===String(o)},"06cf":function(t,e,n){var r=n("83ab"),i=n("d1e7"),o=n("5c6c"),s=n("fc6a"),c=n("c04e"),a=n("5135"),u=n("0cfb"),l=Object.getOwnPropertyDescriptor;e.f=r?l:function(t,e){if(t=s(t),e=c(e,!0),u)try{return l(t,e)}catch(n){}if(a(t,e))return o(!i.f.call(t,e),t[e])}},"0cb2":function(t,e,n){var r=n("7b0b"),i=Math.floor,o="".replace,s=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,a,u,l){var f=n+t.length,d=a.length,h=c;return void 0!==u&&(u=r(u),h=s),o.call(l,h,(function(r,o){var s;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,n);case"'":return e.slice(f);case"<":s=u[o.slice(1,-1)];break;default:var c=+o;if(0===c)return r;if(c>d){var l=i(c/10);return 0===l?r:l<=d?void 0===a[l-1]?o.charAt(1):a[l-1]+o.charAt(1):r}s=a[c-1]}return void 0===s?"":s}))}},"0cfb":function(t,e,n){var r=n("83ab"),i=n("d039"),o=n("cc12");t.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"14c3":function(t,e,n){var r=n("c6b6"),i=n("9263");t.exports=function(t,e){var n=t.exec;if("function"===typeof n){var o=n.call(t,e);if("object"!==typeof o)throw TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(t))throw TypeError("RegExp#exec called on incompatible receiver");return i.call(t,e)}},"1be4":function(t,e,n){var r=n("d066");t.exports=r("document","documentElement")},"1d80":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},"1dde":function(t,e,n){var r=n("d039"),i=n("b622"),o=n("2d00"),s=i("species");t.exports=function(t){return o>=51||!r((function(){var e=[],n=e.constructor={};return n[s]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},"23cb":function(t,e,n){var r=n("a691"),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},"23e7":function(t,e,n){var r=n("da84"),i=n("06cf").f,o=n("9112"),s=n("6eeb"),c=n("ce4e"),a=n("e893"),u=n("94ca");t.exports=function(t,e){var n,l,f,d,h,p,v=t.target,b=t.global,g=t.stat;if(l=b?r:g?r[v]||c(v,{}):(r[v]||{}).prototype,l)for(f in e){if(h=e[f],t.noTargetGet?(p=i(l,f),d=p&&p.value):d=l[f],n=u(b?f:v+(g?".":"#")+f,t.forced),!n&&void 0!==d){if(typeof h===typeof d)continue;a(h,d)}(t.sham||d&&d.sham)&&o(h,"sham",!0),s(l,f,h,t)}}},"241c":function(t,e,n){var r=n("ca84"),i=n("7839"),o=i.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},"25f0":function(t,e,n){"use strict";var r=n("6eeb"),i=n("825a"),o=n("d039"),s=n("ad6d"),c="toString",a=RegExp.prototype,u=a[c],l=o((function(){return"/a/b"!=u.call({source:"a",flags:"b"})})),f=u.name!=c;(l||f)&&r(RegExp.prototype,c,(function(){var t=i(this),e=String(t.source),n=t.flags,r=String(void 0===n&&t instanceof RegExp&&!("flags"in a)?s.call(t):n);return"/"+e+"/"+r}),{unsafe:!0})},"2d00":function(t,e,n){var r,i,o=n("da84"),s=n("342f"),c=o.process,a=c&&c.versions,u=a&&a.v8;u?(r=u.split("."),i=r[0]+r[1]):s&&(r=s.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=s.match(/Chrome\/(\d+)/),r&&(i=r[1]))),t.exports=i&&+i},"342f":function(t,e,n){var r=n("d066");t.exports=r("navigator","userAgent")||""},"37e8":function(t,e,n){var r=n("83ab"),i=n("9bf2"),o=n("825a"),s=n("df75");t.exports=r?Object.defineProperties:function(t,e){o(t);var n,r=s(e),c=r.length,a=0;while(c>a)i.f(t,n=r[a++],e[n]);return t}},"3bbe":function(t,e,n){var r=n("861d");t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},"428f":function(t,e,n){var r=n("da84");t.exports=r},"44ad":function(t,e,n){var r=n("d039"),i=n("c6b6"),o="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?o.call(t,""):Object(t)}:Object},4930:function(t,e,n){var r=n("605d"),i=n("2d00"),o=n("d039");t.exports=!!Object.getOwnPropertySymbols&&!o((function(){return!Symbol.sham&&(r?38===i:i>37&&i<41)}))},"4d64":function(t,e,n){var r=n("fc6a"),i=n("50c4"),o=n("23cb"),s=function(t){return function(e,n,s){var c,a=r(e),u=i(a.length),l=o(s,u);if(t&&n!=n){while(u>l)if(c=a[l++],c!=c)return!0}else for(;u>l;l++)if((t||l in a)&&a[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},"50c4":function(t,e,n){var r=n("a691"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},5135:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},5319:function(t,e,n){"use strict";var r=n("d784"),i=n("825a"),o=n("50c4"),s=n("a691"),c=n("1d80"),a=n("8aa5"),u=n("0cb2"),l=n("14c3"),f=Math.max,d=Math.min,h=function(t){return void 0===t?t:String(t)};r("replace",2,(function(t,e,n,r){var p=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,v=r.REPLACE_KEEPS_$0,b=p?"$":"$0";return[function(n,r){var i=c(this),o=void 0==n?void 0:n[t];return void 0!==o?o.call(n,i,r):e.call(String(i),n,r)},function(t,r){if(!p&&v||"string"===typeof r&&-1===r.indexOf(b)){var c=n(e,t,this,r);if(c.done)return c.value}var g=i(t),m=String(this),y="function"===typeof r;y||(r=String(r));var x=g.global;if(x){var w=g.unicode;g.lastIndex=0}var S=[];while(1){var E=l(g,m);if(null===E)break;if(S.push(E),!x)break;var O=String(E[0]);""===O&&(g.lastIndex=a(m,o(g.lastIndex),w))}for(var z="",k=0,j=0;j<S.length;j++){E=S[j];for(var C=String(E[0]),_=f(d(s(E.index),m.length),0),L=[],A=1;A<E.length;A++)L.push(h(E[A]));var V=E.groups;if(y){var P=[C].concat(L,_,m);void 0!==V&&P.push(V);var T=String(r.apply(void 0,P))}else T=u(C,m,_,L,V,r);_>=k&&(z+=m.slice(k,_)+T,k=_+C.length)}return z+m.slice(k)}]}))},5692:function(t,e,n){var r=n("c430"),i=n("c6cd");(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.9.1",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},"56ef":function(t,e,n){var r=n("d066"),i=n("241c"),o=n("7418"),s=n("825a");t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(s(t)),n=o.f;return n?e.concat(n(t)):e}},5899:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},"58a8":function(t,e,n){var r=n("1d80"),i=n("5899"),o="["+i+"]",s=RegExp("^"+o+o+"*"),c=RegExp(o+o+"*$"),a=function(t){return function(e){var n=String(r(e));return 1&t&&(n=n.replace(s,"")),2&t&&(n=n.replace(c,"")),n}};t.exports={start:a(1),end:a(2),trim:a(3)}},"5c6c":function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"605d":function(t,e,n){var r=n("c6b6"),i=n("da84");t.exports="process"==r(i.process)},6547:function(t,e,n){var r=n("a691"),i=n("1d80"),o=function(t){return function(e,n){var o,s,c=String(i(e)),a=r(n),u=c.length;return a<0||a>=u?t?"":void 0:(o=c.charCodeAt(a),o<55296||o>56319||a+1===u||(s=c.charCodeAt(a+1))<56320||s>57343?t?c.charAt(a):o:t?c.slice(a,a+2):s-56320+(o-55296<<10)+65536)}};t.exports={codeAt:o(!1),charAt:o(!0)}},"65f0":function(t,e,n){var r=n("861d"),i=n("e8b5"),o=n("b622"),s=o("species");t.exports=function(t,e){var n;return i(t)&&(n=t.constructor,"function"!=typeof n||n!==Array&&!i(n.prototype)?r(n)&&(n=n[s],null===n&&(n=void 0)):n=void 0),new(void 0===n?Array:n)(0===e?0:e)}},"69f3":function(t,e,n){var r,i,o,s=n("7f9a"),c=n("da84"),a=n("861d"),u=n("9112"),l=n("5135"),f=n("c6cd"),d=n("f772"),h=n("d012"),p=c.WeakMap,v=function(t){return o(t)?i(t):r(t,{})},b=function(t){return function(e){var n;if(!a(e)||(n=i(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}};if(s){var g=f.state||(f.state=new p),m=g.get,y=g.has,x=g.set;r=function(t,e){return e.facade=t,x.call(g,t,e),e},i=function(t){return m.call(g,t)||{}},o=function(t){return y.call(g,t)}}else{var w=d("state");h[w]=!0,r=function(t,e){return e.facade=t,u(t,w,e),e},i=function(t){return l(t,w)?t[w]:{}},o=function(t){return l(t,w)}}t.exports={set:r,get:i,has:o,enforce:v,getterFor:b}},"6eeb":function(t,e,n){var r=n("da84"),i=n("9112"),o=n("5135"),s=n("ce4e"),c=n("8925"),a=n("69f3"),u=a.get,l=a.enforce,f=String(String).split("String");(t.exports=function(t,e,n,c){var a,u=!!c&&!!c.unsafe,d=!!c&&!!c.enumerable,h=!!c&&!!c.noTargetGet;"function"==typeof n&&("string"!=typeof e||o(n,"name")||i(n,"name",e),a=l(n),a.source||(a.source=f.join("string"==typeof e?e:""))),t!==r?(u?!h&&t[e]&&(d=!0):delete t[e],d?t[e]=n:i(t,e,n)):d?t[e]=n:s(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&u(this).source||c(this)}))},7156:function(t,e,n){var r=n("861d"),i=n("d2bb");t.exports=function(t,e,n){var o,s;return i&&"function"==typeof(o=e.constructor)&&o!==n&&r(s=o.prototype)&&s!==n.prototype&&i(t,s),t}},7418:function(t,e){e.f=Object.getOwnPropertySymbols},7839:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(t,e,n){var r=n("1d80");t.exports=function(t){return Object(r(t))}},"7c73":function(t,e,n){var r,i=n("825a"),o=n("37e8"),s=n("7839"),c=n("d012"),a=n("1be4"),u=n("cc12"),l=n("f772"),f=">",d="<",h="prototype",p="script",v=l("IE_PROTO"),b=function(){},g=function(t){return d+p+f+t+d+"/"+p+f},m=function(t){t.write(g("")),t.close();var e=t.parentWindow.Object;return t=null,e},y=function(){var t,e=u("iframe"),n="java"+p+":";return e.style.display="none",a.appendChild(e),e.src=String(n),t=e.contentWindow.document,t.open(),t.write(g("document.F=Object")),t.close(),t.F},x=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}x=r?m(r):y();var t=s.length;while(t--)delete x[h][s[t]];return x()};c[v]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(b[h]=i(t),n=new b,b[h]=null,n[v]=t):n=x(),void 0===e?n:o(n,e)}},"7f9a":function(t,e,n){var r=n("da84"),i=n("8925"),o=r.WeakMap;t.exports="function"===typeof o&&/native code/.test(i(o))},"825a":function(t,e,n){var r=n("861d");t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},"83ab":function(t,e,n){var r=n("d039");t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8418:function(t,e,n){"use strict";var r=n("c04e"),i=n("9bf2"),o=n("5c6c");t.exports=function(t,e,n){var s=r(e);s in t?i.f(t,s,o(0,n)):t[s]=n}},"857a":function(t,e,n){var r=n("1d80"),i=/"/g;t.exports=function(t,e,n,o){var s=String(r(t)),c="<"+e;return""!==n&&(c+=" "+n+'="'+String(o).replace(i,""")+'"'),c+">"+s+"</"+e+">"}},"861d":function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},8875:function(t,e,n){var r,i,o;(function(n,s){i=[],r=s,o="function"===typeof r?r.apply(e,i):r,void 0===o||(t.exports=o)})("undefined"!==typeof self&&self,(function(){function t(){var e=Object.getOwnPropertyDescriptor(document,"currentScript");if(!e&&"currentScript"in document&&document.currentScript)return document.currentScript;if(e&&e.get!==t&&document.currentScript)return document.currentScript;try{throw new Error}catch(h){var n,r,i,o=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,s=/@([^@]*):(\d+):(\d+)\s*$/gi,c=o.exec(h.stack)||s.exec(h.stack),a=c&&c[1]||!1,u=c&&c[2]||!1,l=document.location.href.replace(document.location.hash,""),f=document.getElementsByTagName("script");a===l&&(n=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(u-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),i=n.replace(r,"$1").trim());for(var d=0;d<f.length;d++){if("interactive"===f[d].readyState)return f[d];if(f[d].src===a)return f[d];if(a===l&&f[d].innerHTML&&f[d].innerHTML.trim()===i)return f[d]}return null}}return t}))},8925:function(t,e,n){var r=n("c6cd"),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return i.call(t)}),t.exports=r.inspectSource},"8aa5":function(t,e,n){"use strict";var r=n("6547").charAt;t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},"8bbf":function(e,n){e.exports=t},"90e3":function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+r).toString(36)}},9112:function(t,e,n){var r=n("83ab"),i=n("9bf2"),o=n("5c6c");t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},9263:function(t,e,n){"use strict";var r=n("ad6d"),i=n("9f7f"),o=RegExp.prototype.exec,s=String.prototype.replace,c=o,a=function(){var t=/a/,e=/b*/g;return o.call(t,"a"),o.call(e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),u=i.UNSUPPORTED_Y||i.BROKEN_CARET,l=void 0!==/()??/.exec("")[1],f=a||l||u;f&&(c=function(t){var e,n,i,c,f=this,d=u&&f.sticky,h=r.call(f),p=f.source,v=0,b=t;return d&&(h=h.replace("y",""),-1===h.indexOf("g")&&(h+="g"),b=String(t).slice(f.lastIndex),f.lastIndex>0&&(!f.multiline||f.multiline&&"\n"!==t[f.lastIndex-1])&&(p="(?: "+p+")",b=" "+b,v++),n=new RegExp("^(?:"+p+")",h)),l&&(n=new RegExp("^"+p+"$(?!\\s)",h)),a&&(e=f.lastIndex),i=o.call(d?n:f,b),d?i?(i.input=i.input.slice(v),i[0]=i[0].slice(v),i.index=f.lastIndex,f.lastIndex+=i[0].length):f.lastIndex=0:a&&i&&(f.lastIndex=f.global?i.index+i[0].length:e),l&&i&&i.length>1&&s.call(i[0],n,(function(){for(c=1;c<arguments.length-2;c++)void 0===arguments[c]&&(i[c]=void 0)})),i}),t.exports=c},"94ca":function(t,e,n){var r=n("d039"),i=/#|\.prototype\./,o=function(t,e){var n=c[s(t)];return n==u||n!=a&&("function"==typeof e?r(e):!!e)},s=o.normalize=function(t){return String(t).replace(i,".").toLowerCase()},c=o.data={},a=o.NATIVE="N",u=o.POLYFILL="P";t.exports=o},"99af":function(t,e,n){"use strict";var r=n("23e7"),i=n("d039"),o=n("e8b5"),s=n("861d"),c=n("7b0b"),a=n("50c4"),u=n("8418"),l=n("65f0"),f=n("1dde"),d=n("b622"),h=n("2d00"),p=d("isConcatSpreadable"),v=9007199254740991,b="Maximum allowed index exceeded",g=h>=51||!i((function(){var t=[];return t[p]=!1,t.concat()[0]!==t})),m=f("concat"),y=function(t){if(!s(t))return!1;var e=t[p];return void 0!==e?!!e:o(t)},x=!g||!m;r({target:"Array",proto:!0,forced:x},{concat:function(t){var e,n,r,i,o,s=c(this),f=l(s,0),d=0;for(e=-1,r=arguments.length;e<r;e++)if(o=-1===e?s:arguments[e],y(o)){if(i=a(o.length),d+i>v)throw TypeError(b);for(n=0;n<i;n++,d++)n in o&&u(f,d,o[n])}else{if(d>=v)throw TypeError(b);u(f,d++,o)}return f.length=d,f}})},"9bf2":function(t,e,n){var r=n("83ab"),i=n("0cfb"),o=n("825a"),s=n("c04e"),c=Object.defineProperty;e.f=r?c:function(t,e,n){if(o(t),e=s(e,!0),o(n),i)try{return c(t,e,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},"9f7f":function(t,e,n){"use strict";var r=n("d039");function i(t,e){return RegExp(t,e)}e.UNSUPPORTED_Y=r((function(){var t=i("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),e.BROKEN_CARET=r((function(){var t=i("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},a4b1:function(t,e,n){},a691:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},a9e3:function(t,e,n){"use strict";var r=n("83ab"),i=n("da84"),o=n("94ca"),s=n("6eeb"),c=n("5135"),a=n("c6b6"),u=n("7156"),l=n("c04e"),f=n("d039"),d=n("7c73"),h=n("241c").f,p=n("06cf").f,v=n("9bf2").f,b=n("58a8").trim,g="Number",m=i[g],y=m.prototype,x=a(d(y))==g,w=function(t){var e,n,r,i,o,s,c,a,u=l(t,!1);if("string"==typeof u&&u.length>2)if(u=b(u),e=u.charCodeAt(0),43===e||45===e){if(n=u.charCodeAt(2),88===n||120===n)return NaN}else if(48===e){switch(u.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+u}for(o=u.slice(2),s=o.length,c=0;c<s;c++)if(a=o.charCodeAt(c),a<48||a>i)return NaN;return parseInt(o,r)}return+u};if(o(g,!m(" 0o1")||!m("0b1")||m("+0x1"))){for(var S,E=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof E&&(x?f((function(){y.valueOf.call(n)})):a(n)!=g)?u(new m(w(e)),n,E):w(e)},O=r?h(m):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),z=0;O.length>z;z++)c(m,S=O[z])&&!c(E,S)&&v(E,S,p(m,S));E.prototype=y,y.constructor=E,s(i,g,E)}},ac1f:function(t,e,n){"use strict";var r=n("23e7"),i=n("9263");r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},ad6d:function(t,e,n){"use strict";var r=n("825a");t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},af03:function(t,e,n){var r=n("d039");t.exports=function(t){return r((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}))}},b041:function(t,e,n){"use strict";var r=n("00ee"),i=n("f5df");t.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},b0c0:function(t,e,n){var r=n("83ab"),i=n("9bf2").f,o=Function.prototype,s=o.toString,c=/^\s*function ([^ (]*)/,a="name";r&&!(a in o)&&i(o,a,{configurable:!0,get:function(){try{return s.call(this).match(c)[1]}catch(t){return""}}})},b622:function(t,e,n){var r=n("da84"),i=n("5692"),o=n("5135"),s=n("90e3"),c=n("4930"),a=n("fdbf"),u=i("wks"),l=r.Symbol,f=a?l:l&&l.withoutSetter||s;t.exports=function(t){return o(u,t)&&(c||"string"==typeof u[t])||(c&&o(l,t)?u[t]=l[t]:u[t]=f("Symbol."+t)),u[t]}},c04e:function(t,e,n){var r=n("861d");t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},c430:function(t,e){t.exports=!1},c6b6:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},c6cd:function(t,e,n){var r=n("da84"),i=n("ce4e"),o="__core-js_shared__",s=r[o]||i(o,{});t.exports=s},c7cd:function(t,e,n){"use strict";var r=n("23e7"),i=n("857a"),o=n("af03");r({target:"String",proto:!0,forced:o("fixed")},{fixed:function(){return i(this,"tt","","")}})},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},ca84:function(t,e,n){var r=n("5135"),i=n("fc6a"),o=n("4d64").indexOf,s=n("d012");t.exports=function(t,e){var n,c=i(t),a=0,u=[];for(n in c)!r(s,n)&&r(c,n)&&u.push(n);while(e.length>a)r(c,n=e[a++])&&(~o(u,n)||u.push(n));return u}},cc12:function(t,e,n){var r=n("da84"),i=n("861d"),o=r.document,s=i(o)&&i(o.createElement);t.exports=function(t){return s?o.createElement(t):{}}},ce4e:function(t,e,n){var r=n("da84"),i=n("9112");t.exports=function(t,e){try{i(r,t,e)}catch(n){r[t]=e}return e}},d012:function(t,e){t.exports={}},d039:function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},d066:function(t,e,n){var r=n("428f"),i=n("da84"),o=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t])||o(i[t]):r[t]&&r[t][e]||i[t]&&i[t][e]}},d1e7:function(t,e,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);e.f=o?function(t){var e=i(this,t);return!!e&&e.enumerable}:r},d2bb:function(t,e,n){var r=n("825a"),i=n("3bbe");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(n,[]),e=n instanceof Array}catch(o){}return function(n,o){return r(n),i(o),e?t.call(n,o):n.__proto__=o,n}}():void 0)},d3b7:function(t,e,n){var r=n("00ee"),i=n("6eeb"),o=n("b041");r||i(Object.prototype,"toString",o,{unsafe:!0})},d784:function(t,e,n){"use strict";n("ac1f");var r=n("6eeb"),i=n("d039"),o=n("b622"),s=n("9263"),c=n("9112"),a=o("species"),u=!i((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),l=function(){return"$0"==="a".replace(/./,"$0")}(),f=o("replace"),d=function(){return!!/./[f]&&""===/./[f]("a","$0")}(),h=!i((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));t.exports=function(t,e,n,f){var p=o(t),v=!i((function(){var e={};return e[p]=function(){return 7},7!=""[t](e)})),b=v&&!i((function(){var e=!1,n=/a/;return"split"===t&&(n={},n.constructor={},n.constructor[a]=function(){return n},n.flags="",n[p]=/./[p]),n.exec=function(){return e=!0,null},n[p](""),!e}));if(!v||!b||"replace"===t&&(!u||!l||d)||"split"===t&&!h){var g=/./[p],m=n(p,""[t],(function(t,e,n,r,i){return e.exec===s?v&&!i?{done:!0,value:g.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),{REPLACE_KEEPS_$0:l,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:d}),y=m[0],x=m[1];r(String.prototype,t,y),r(RegExp.prototype,p,2==e?function(t,e){return x.call(t,this,e)}:function(t){return x.call(t,this)})}f&&c(RegExp.prototype[p],"sham",!0)}},da84:function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(this,n("c8ba"))},df75:function(t,e,n){var r=n("ca84"),i=n("7839");t.exports=Object.keys||function(t){return r(t,i)}},e893:function(t,e,n){var r=n("5135"),i=n("56ef"),o=n("06cf"),s=n("9bf2");t.exports=function(t,e){for(var n=i(e),c=s.f,a=o.f,u=0;u<n.length;u++){var l=n[u];r(t,l)||c(t,l,a(e,l))}}},e8b5:function(t,e,n){var r=n("c6b6");t.exports=Array.isArray||function(t){return"Array"==r(t)}},f5df:function(t,e,n){var r=n("00ee"),i=n("c6b6"),o=n("b622"),s=o("toStringTag"),c="Arguments"==i(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(n){}};t.exports=r?i:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),s))?n:c?i(e):"Object"==(r=i(e))&&"function"==typeof e.callee?"Arguments":r}},f772:function(t,e,n){var r=n("5692"),i=n("90e3"),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},fb15:function(t,e,n){"use strict";if(n.r(e),"undefined"!==typeof window){var r=window.document.currentScript,i=n("8875");r=i(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:i});var o=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(n.p=o[1])}n("5319"),n("ac1f"),n("b0c0"),n("a9e3"),n("a4b1");function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n("d3b7"),n("25f0"),n("c7cd");var c={computed:{dockOn:function(){return this.dock||"right"},showHeader:function(){return this.title||this.$slots.header},showFooter:function(){return this.$slots.footer},containerStyle:function(){var t={"z-index":this.zIndex,display:this.showContainer?"block":"none"};return this.mousedown&&(t.userSelect="none"),t},maskStyle:function(){return this.maskColor?{"background-color":this.maskColor}:{}},isSizeFixed:function(){return Array.isArray(this.size)},isAutoSize:function(){return this.isSizeFixed?!this.size.every((function(t){return"0"!==t.toString()})):"0"===this.size.toString()},sizeWithUnit:function(){return this.isSizeFixed?[this._fixSizeUnit(this.size[0]),this._fixSizeUnit(this.size[1===this.size.length?0:1])]:this._fixSizeUnit(this.size)},panelStyle:function(){var t={};if(this.isSizeFixed){t.width=this.sizeWithUnit[0],t.height=this.sizeWithUnit[1];var e=this.isFilled?0:this.offset;switch(this.dockOn){case"right":case"left":t.top=e,t.maxHeight="calc(100% - ".concat(e,")");break;case"bottom":case"top":t.left=e,t.maxWidth="calc(100% - ".concat(e,")");break}return t}var n=this.isFilled?"100%":this.resizeValue>0?"".concat(this.resizeValue,"px"):this.sizeWithUnit;switch(this.dockOn){case"right":case"left":t.width=n;break;case"bottom":case"top":t.height=n;break}return t},contentStyles:function(){var t={};if(!this.isAutoSize)return t;var e=0;switch(this.dockOn){case"right":case"left":break;case"bottom":case"top":this.showHeader&&(e+=48),this.showFooter&&(e+=48),this.maxSize&&(t.maxHeight="".concat(this.maxSize-e,"px")),this.minSize&&(t.minHeight="".concat(this.minSize-e,"px"));break}return t},containerClasses:function(){var t;return t={slideout:!0},s(t,this.customClass||"",!0),s(t,"slideout-dock--".concat(this.dockOn),!0),s(t,"slideout-is--visible",this.activeVisibleClass),s(t,"slideout-animation--enabled",!this.mousedown&&!this.disableAnimation),s(t,"slideout-header--visible",this.showHeader),s(t,"slideout-footer--visible",this.$slots.footer),s(t,"slideout-is--resizable",this.resizable),s(t,"slideout-is--fixed",this.isFixed),s(t,"slideout-is--filled",this.isFilled),s(t,"slideout-is--autosize",this.isAutoSize),t},headerStyle:function(){var t={};if(this.$slots.header)return t;if(t.paddingRight="".concat(this.defaultButtonsWidth,"px"),!this.headerButtons)return t;var e=window.getComputedStyle(this.headerButtons);return t.paddingRight="".concat(this.defaultButtonsWidth+parseInt(e.width)+5,"px"),t},defaultButtonsWidth:function(){var t=20;return this.showClose&&(t+=32),this.showFillButton&&(t+=32),t},isFixed:function(){return this.fixed||this.parentElement===document.body||!this.target}}},a={data:function(){return{isVisible:!1,isFilled:!1,mousedown:!1,mouseDownPosition:{x:0,y:0},originSize:{width:0,height:0},resizeValue:0,parentElement:null,headerButtons:null,animationDuration:312,activeVisibleClass:!1,showContainer:!1}}},u=(n("99af"),{methods:{makeBeforeEventArgs:function(t,e){var n=this,r=!1;return{pause:!1,set resume(e){e&&n.$nextTick((function(){t()}))},get resume(){},set cancel(t){r=t,t&&n.$nextTick((function(){e()}))},get cancel(){return r}}},tryOpen:function(){var t=this;if(!this.isVisible){var e=this.makeBeforeEventArgs((function(){t.setVisibleValue(!0)}),(function(){t._updateVisibleValue(!1)}));this.$emit("opening",e),e.pause||e.cancel||this.setVisibleValue(!0)}},tryClose:function(){var t=this;if(this.isVisible){var e=this.makeBeforeEventArgs((function(){t.setVisibleValue(!1)}),(function(){t._updateVisibleValue(!0)}));this.$emit("closing",e),e.pause||e.cancel||this.setVisibleValue(!1)}},setVisibleValue:function(t){var e=this;t&&(this.resizeValue=0),t?(this.showContainer=!0,this.isVisible=!0,this.$nextTick((function(){setTimeout((function(){e.activeVisibleClass=!0,e.emitOpenedEvent()}),10)}))):(this.isFilled&&this.$emit("update:fill-parent",!1),this.activeVisibleClass=!1,this.$nextTick((function(){e.emitClosedEvent()})))},emitOpenedEvent:function(){var t=this;this.disableAnimation?this._doOpen():setTimeout((function(){t._doOpen()}),this.animationDuration)},emitClosedEvent:function(){var t=this;this.disableAnimation?this._doClose():setTimeout((function(){t._doClose()}),this.animationDuration)},_doOpen:function(){this.$emit("opened",this.$refs.panel),this.visible!==this.isVisible&&this._updateVisibleValue(!0)},_doClose:function(){this.showContainer=!1,this.isVisible=!1,this.$emit("closed"),this.visible!==this.isVisible&&this._updateVisibleValue(!1)},toggleFillState:function(t){if("boolean"!==typeof t)this.isFilled=!this.isFilled;else{if(this.isFilled===t)return;this.isFilled=t}this.isFilled!==this.fillParent&&this.$emit("update:fill-parent",this.isFilled)},updateParentElement:function(){if(this.target){var t=this.target;if("string"===typeof t&&(t=document.querySelector(t),!t))throw new Error("[vue-slideout] Cannot find the node to append: ".concat(this.target));this.parentElement=t}else this.parentElement=this.$refs.container.parentElement},onMaskClick:function(){this.closeOnMaskClick&&this.tryClose()},getParentSize:function(){var t=this.parentElement.getClientRects()[0];return{width:t.width,height:t.height}},getMyownSize:function(){var t=this.$refs.panel.getClientRects()[0];return{width:t.width,height:t.height}},mouseDownHandler:function(t){this.isFilled||(this.mousedown=!0,this.mouseDownPosition={x:t.pageX,y:t.pageY},this.originSize=this.getMyownSize())},mouseMoveHandler:function(t){var e=this;if(!this.isFilled&&this.mousedown){t.preventDefault();var n=t.pageX-this.mouseDownPosition.x,r=t.pageY-this.mouseDownPosition.y,i=this.getParentSize(),o={width:window.innerWidth,height:window.innerHeight},s=this.originSize,c=0;switch(this.dock){case"top":c=s.height+r,c>i.height&&(c=i.height),c>o.height&&(c=o.height);break;case"right":c=s.width-n,c>i.width&&(c=i.width),c>o.width&&(c=o.width);break;case"bottom":c=s.height-r,c>i.height&&(c=i.height),c>o.height&&(c=o.height);break;case"left":c=s.width+n,c>i.width&&(c=i.width),c>o.width&&(c=o.width);break}this.maxSize>0&&this.maxSize<c&&(c=this.maxSize),requestAnimationFrame((function(){e.resizeValue=c<e.minSize?e.minSize:c})),this.$nextTick((function(){e.$emit("resize",{size:e.resizeValue})}))}},mouseUpHandler:function(){this.mousedown=!1},onKeydown:function(t){if(!this.ignoreEsc&&this.isVisible&&("Escape"===t.code||27===t.keyCode||27===t.which)&&-1===["INPUT","TEXTAREA"].indexOf(t.target.tagName)&&"true"!==t.target.contentEditable)return this.tryClose(),!1},_fixSizeUnit:function(t){return"0"===t.toString()?"auto":"".concat(parseInt(t)).concat(/%$/.test(t)?"%":"px")},_updateVisibleValue:function(t){this.$emit("update:modelValue",t)}}}),l={watch:{modelValue:function(t){t!==this.isVisible&&(t?this.tryOpen():this.tryClose())},fillParent:function(t){t!==this.isFilled&&this.toggleFillState(t)},isVisible:function(t){var e=this;t&&this.$nextTick((function(){e.$refs.container.focus()})),this.isFixed&&(t?document.body.classList.add("slideout-helper--scroll-locker"):document.body.classList.remove("slideout-helper--scroll-locker"))}}},f=n("8bbf"),d={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"},h=Object(f["createVNode"])("path",{d:"M493.45411 71.89033 197.751365 361.596502c-9.624195 9.380648-9.624195 24.707728 0 34.138518 9.576099 9.381671 25.222451 9.381671 34.848693 0l253.612115-248.494561 0 786.690176c0 13.3214 11.047614 24.142863 24.642237 24.142863 13.597693 0 24.645306-10.821463 24.645306-24.142863L535.499715 147.240459l253.632581 248.494561c9.603729 9.381671 25.248034 9.381671 34.847669 0 4.836145-4.76349 7.194866-10.939143 7.194866-17.116843 0-6.1777-2.405793-12.355399-7.194866-17.116843L528.255731 71.797209c-9.602705-9.383718-25.244964-9.383718-34.849716 0L493.45411 71.89033z"},null,-1);function p(t,e){return Object(f["openBlock"])(),Object(f["createBlock"])("svg",d,[h])}const v={};v.render=p;var b=v,g={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"},m=Object(f["createVNode"])("path",{d:"M184.64768 836.34176c3.9936 3.9936 9.23648 5.98016 14.47936 5.98016 5.24288 0 10.48576-2.00704 14.49984-6.00064l292.70016-293.04832 292.70016 293.04832c3.9936 4.01408 9.23648 6.00064 14.49984 6.00064 5.24288 0 10.48576-2.00704 14.47936-5.98016 8.00768-7.9872 8.00768-20.95104 0.02048-28.95872L535.61344 514.64192 828.0064 221.92128c7.9872-8.00768 7.9872-20.97152-0.02048-28.95872-8.02816-8.00768-20.97152-8.00768-28.95872 0.02048L506.30656 486.03136 213.6064 192.98304c-8.00768-8.00768-20.97152-8.00768-28.95872-0.02048-8.00768 7.9872-8.00768 20.95104-0.02048 28.95872l292.37248 292.72064L184.6272 807.38304C176.64 815.37024 176.64 828.35456 184.64768 836.34176z"},null,-1);function y(t,e){return Object(f["openBlock"])(),Object(f["createBlock"])("svg",g,[m])}const x={};x.render=y;var w=x,S={version:"1.1",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"},E=Object(f["createVNode"])("path",{d:"M258.285714 197.028571l50.171429-50.171428a9.154286 9.154286 0 0 0-5.371429-15.542857L120 109.714286c-5.828571-0.685714-10.857143 4.228571-10.171429 10.171428L131.428571 302.971429c0.914286 7.542857 10.171429 10.742857 15.542858 5.371428l49.942857-49.942857L349.714286 411.085714c3.542857 3.542857 9.371429 3.542857 12.914285 0l48.457143-48.342857c3.542857-3.542857 3.542857-9.371429 0-12.914286L258.285714 197.028571z m403.085715 214.057143c3.542857 3.542857 9.371429 3.542857 12.914285 0l152.8-152.685714 49.942857 49.942857a9.154286 9.154286 0 0 0 15.542858-5.371428L914.171429 120c0.685714-5.828571-4.228571-10.857143-10.171429-10.171429L720.914286 131.428571c-7.542857 0.914286-10.742857 10.171429-5.371429 15.542858l50.171429 50.171428L612.914286 349.714286a9.177143 9.177143 0 0 0 0 12.914285l48.457143 48.457143zM892.571429 721.028571c-0.914286-7.542857-10.171429-10.742857-15.542858-5.371428l-49.942857 49.942857L674.285714 612.914286a9.177143 9.177143 0 0 0-12.914285 0l-48.457143 48.342857a9.177143 9.177143 0 0 0 0 12.914286L765.714286 826.971429l-50.171429 50.171428a9.154286 9.154286 0 0 0 5.371429 15.542857L904 914.285714c5.828571 0.685714 10.857143-4.228571 10.171429-10.171428L892.571429 721.028571z m-529.942858-108.114285a9.177143 9.177143 0 0 0-12.914285 0L196.914286 765.6l-49.942857-49.942857a9.154286 9.154286 0 0 0-15.542858 5.371428L109.828571 904c-0.685714 5.828571 4.228571 10.857143 10.171429 10.171429L303.085714 892.571429c7.542857-0.914286 10.742857-10.171429 5.371429-15.542858L258.285714 826.971429 411.085714 674.285714c3.542857-3.542857 3.542857-9.371429 0-12.914285l-48.457143-48.457143z"},null,-1);function O(t,e){return Object(f["openBlock"])(),Object(f["createBlock"])("svg",S,[E])}const z={};z.render=O;var k=z,j={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"},C=Object(f["createVNode"])("path",{d:"M391 240.9c-0.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L200 146.3c-3.1-3.1-8.2-3.1-11.3 0l-42.4 42.3c-3.1 3.1-3.1 8.2 0 11.3L280 333.6l-43.9 43.9c-4.7 4.7-1.9 12.8 4.7 13.6L401 410c5.1 0.6 9.5-3.7 8.9-8.9L391 240.9zM401.1 614.1L240.8 633c-6.6 0.8-9.4 8.9-4.7 13.6l43.9 43.9L146.3 824c-3.1 3.1-3.1 8.2 0 11.3l42.4 42.3c3.1 3.1 8.2 3.1 11.3 0L333.7 744l43.7 43.7c4.7 4.7 12.8 1.9 13.6-4.7l18.9-160.1c0.6-5.1-3.7-9.4-8.8-8.8zM622.9 409.9L783.2 391c6.6-0.8 9.4-8.9 4.7-13.6L744 333.6 877.7 200c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.3c-3.1-3.1-8.2-3.1-11.3 0L690.3 279.9l-43.7-43.7c-4.7-4.7-12.8-1.9-13.6 4.7L614.1 401c-0.6 5.2 3.7 9.5 8.8 8.9zM744 690.4l43.9-43.9c4.7-4.7 1.9-12.8-4.7-13.6L623 614c-5.1-0.6-9.5 3.7-8.9 8.9L633 783.1c0.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L824 877.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3L744 690.4z"},null,-1);function _(t,e){return Object(f["openBlock"])(),Object(f["createBlock"])("svg",j,[C])}const L={};L.render=_;var A=L,V={methods:{renderDefaultButtons:function(){var t=[];return this.showFillButton&&t.push(Object(f["h"])("button",{class:"slideout-btn--fill",onClick:this.toggleFillState},[Object(f["h"])(k),Object(f["h"])(A)])),this.showClose&&t.push(Object(f["h"])("button",{class:"slideout-btn--close",onClick:this.tryClose},this.arrowButton?Object(f["h"])(b):Object(f["h"])(w))),this.span({class:"slideout-header--buttons-default"},t)},renderResizeHandle:function(){return this.div({class:"slideout-resize--handle",onMousedown:this.mouseDownHandler})},renderHeader:function(){return this.div({class:"slideout-header",style:this.headerStyle},this.$slots.header?this.$slots.header():[this.div({class:"slideout-header--text"},this.title),this.div({class:"slideout-header--buttons",ref:"buttons"},[this.span({class:"slideout-header--buttons-custom"},this.$slots.buttons?this.$slots.buttons():[]),this.renderDefaultButtons()])])},renderContent:function(){return this.div({class:"slideout-content",style:this.contentStyles},this.$slots.default())},renderFooter:function(){return this.div({class:"slideout-footer"},this.$slots.footer?this.$slots.footer():[])},renderLayout:function(){var t=[];return!this.resizable||this.isFilled||this.isSizeFixed||t.push(this.renderResizeHandle()),this.showHeader&&t.push(this.renderHeader()),t.push(this.renderContent()),this.showFooter&&t.push(this.renderFooter()),this.div({class:"slideout-panel",style:this.panelStyle,ref:"panel"},t)},renderMask:function(){return this.div({class:"slideout-mask",style:this.maskStyle,onClick:this.onMaskClick})},renderContainer:function(t){return this.div({class:this.containerClasses,style:this.containerStyle,tabindex:0,ref:"container",onKeydown:this.onKeydown},t)},div:function(t,e){return Object(f["h"])("div",t,e)},span:function(t,e){return Object(f["h"])("span",t,e)}},render:function(){if(this.renderWhenVisible&&!this.modelValue)return null;var t=[];this.showMask&&t.push(this.renderMask()),t.push(this.renderLayout());var e=this.renderContainer(t);return this.target?Object(f["h"])(f["Teleport"],{to:this.target},e):e}},P={name:"Slideout",inheritAttrs:!1,mixins:[c,a,u,l,V],emits:["opening","opened","closing","closed","resize","update:fill-parent","update:modelValue"],props:{size:{type:[String,Number,Array],default:400},resizable:{type:Boolean,default:!1},minSize:{type:Number,default:100},maxSize:{type:Number,default:0},zIndex:{type:Number,default:1997},modelValue:{type:Boolean,default:!1},title:{type:String},customClass:{type:String},showMask:{type:Boolean,default:!0},maskColor:{type:String,default:null},closeOnMaskClick:{type:Boolean,default:!0},ignoreEsc:{type:Boolean,default:!1},dock:{type:String,default:"right",validator:function(t){return["top","right","bottom","left"].indexOf(t)>=0}},target:{type:[String,HTMLElement],default:"body"},disableAnimation:{type:Boolean,default:!1},fillParent:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},showFillButton:{type:Boolean,default:!1},fixed:{type:Boolean,default:!1},offset:{type:String,default:"0"},arrowButton:{type:Boolean,default:!0},renderWhenVisible:{type:Boolean,default:!1}},mounted:function(){this.isFilled=this.fillParent,this.updateParentElement(),this.resizable&&(document.addEventListener("mousemove",this.mouseMoveHandler),document.addEventListener("mouseup",this.mouseUpHandler)),this.headerButtons=this.$slots.btn?this.$refs.buttons:null},beforeUnmount:function(){this.showContainer=!1,this.resizable&&(document.removeEventListener("mousemove",this.mouseUpHandler),document.removeEventListener("mouseup",this.mouseMoveHandler)),this.isVisible&&this.tryClose(),document.body.classList.remove("slideout-helper--scroll-locker")}};function T(t){for(var e in t)t.hasOwnProperty(e)&&(e=e.replace(/-[a-z]/g,(function(t){return t[1].toUpperCase()})),P.props.hasOwnProperty(e)&&(P.props[e]["default"]=t[e]))}var F={install:function(t,e){e&&T(e),t.component(P.name,P)}};e["default"]=F},fc6a:function(t,e,n){var r=n("44ad"),i=n("1d80");t.exports=function(t){return r(i(t))}},fdbf:function(t,e,n){var r=n("4930");t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}})["default"]}));
|
|
1
|
+
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("vue")):"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["Slideout"]=e(require("vue")):t["Slideout"]=e(t["Vue"])})("undefined"!==typeof self?self:this,(function(t){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"00ee":function(t,e,n){var r=n("b622"),i=r("toStringTag"),o={};o[i]="z",t.exports="[object z]"===String(o)},"04f8":function(t,e,n){var r=n("2d00"),i=n("d039");t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},"06cf":function(t,e,n){var r=n("83ab"),i=n("c65b"),o=n("d1e7"),s=n("5c6c"),a=n("fc6a"),c=n("a04b"),u=n("1a2d"),l=n("0cfb"),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=a(t),e=c(e),l)try{return f(t,e)}catch(n){}if(u(t,e))return s(!i(o.f,t,e),t[e])}},"07fa":function(t,e,n){var r=n("50c4");t.exports=function(t){return r(t.length)}},"0cfb":function(t,e,n){var r=n("83ab"),i=n("d039"),o=n("cc12");t.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"0d26":function(t,e,n){var r=n("e330"),i=Error,o=r("".replace),s=function(t){return String(i(t).stack)}("zxcasd"),a=/\n\s*at [^:]*:[^\n]*/,c=a.test(s);t.exports=function(t,e){if(c&&"string"==typeof t&&!i.prepareStackTrace)while(e--)t=o(t,a,"");return t}},"0d51":function(t,e){var n=String;t.exports=function(t){try{return n(t)}catch(e){return"Object"}}},"13d2":function(t,e,n){var r=n("d039"),i=n("1626"),o=n("1a2d"),s=n("83ab"),a=n("5e77").CONFIGURABLE,c=n("8925"),u=n("69f3"),l=u.enforce,f=u.get,h=Object.defineProperty,d=s&&!r((function(){return 8!==h((function(){}),"length",{value:8}).length})),p=String(String).split("String"),b=t.exports=function(t,e,n){"Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!o(t,"name")||a&&t.name!==e)&&(s?h(t,"name",{value:e,configurable:!0}):t.name=e),d&&n&&o(n,"arity")&&t.length!==n.arity&&h(t,"length",{value:n.arity});try{n&&o(n,"constructor")&&n.constructor?s&&h(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(i){}var r=l(t);return o(r,"source")||(r.source=p.join("string"==typeof e?e:"")),t};Function.prototype.toString=b((function(){return i(this)&&f(this).source||c(this)}),"toString")},"14d9":function(t,e,n){"use strict";var r=n("23e7"),i=n("7b0b"),o=n("07fa"),s=n("3a34"),a=n("3511"),c=n("d039"),u=c((function(){return 4294967297!==[].push.call({length:4294967296},1)})),l=!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}();r({target:"Array",proto:!0,arity:1,forced:u||l},{push:function(t){var e=i(this),n=o(e),r=arguments.length;a(n+r);for(var c=0;c<r;c++)e[n]=arguments[c],n++;return s(e,n),n}})},1626:function(t,e,n){var r=n("8ea1"),i=r.all;t.exports=r.IS_HTMLDDA?function(t){return"function"==typeof t||t===i}:function(t){return"function"==typeof t}},"1a2d":function(t,e,n){var r=n("e330"),i=n("7b0b"),o=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(i(t),e)}},"1d80":function(t,e,n){var r=n("7234"),i=TypeError;t.exports=function(t){if(r(t))throw i("Can't call method on "+t);return t}},"23cb":function(t,e,n){var r=n("5926"),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},"23e7":function(t,e,n){var r=n("da84"),i=n("06cf").f,o=n("9112"),s=n("cb2d"),a=n("6374"),c=n("e893"),u=n("94ca");t.exports=function(t,e){var n,l,f,h,d,p,b=t.target,v=t.global,y=t.stat;if(l=v?r:y?r[b]||a(b,{}):(r[b]||{}).prototype,l)for(f in e){if(d=e[f],t.dontCallGetSet?(p=i(l,f),h=p&&p.value):h=l[f],n=u(v?f:b+(y?".":"#")+f,t.forced),!n&&void 0!==h){if(typeof d==typeof h)continue;c(d,h)}(t.sham||h&&h.sham)&&o(d,"sham",!0),s(l,f,d,t)}}},"241c":function(t,e,n){var r=n("ca84"),i=n("7839"),o=i.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},"2ba4":function(t,e,n){var r=n("40d5"),i=Function.prototype,o=i.apply,s=i.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?s.bind(o):function(){return s.apply(o,arguments)})},"2d00":function(t,e,n){var r,i,o=n("da84"),s=n("342f"),a=o.process,c=o.Deno,u=a&&a.versions||c&&c.version,l=u&&u.v8;l&&(r=l.split("."),i=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&s&&(r=s.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=s.match(/Chrome\/(\d+)/),r&&(i=+r[1]))),t.exports=i},"342f":function(t,e,n){var r=n("d066");t.exports=r("navigator","userAgent")||""},3511:function(t,e){var n=TypeError,r=9007199254740991;t.exports=function(t){if(t>r)throw n("Maximum allowed index exceeded");return t}},"3a34":function(t,e,n){"use strict";var r=n("83ab"),i=n("e8b5"),o=TypeError,s=Object.getOwnPropertyDescriptor,a=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=a?function(t,e){if(i(t)&&!s(t,"length").writable)throw o("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},"3a9b":function(t,e,n){var r=n("e330");t.exports=r({}.isPrototypeOf)},"3bbe":function(t,e,n){var r=n("1626"),i=String,o=TypeError;t.exports=function(t){if("object"==typeof t||r(t))return t;throw o("Can't set "+i(t)+" as a prototype")}},"40d5":function(t,e,n){var r=n("d039");t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},"44ad":function(t,e,n){var r=n("e330"),i=n("d039"),o=n("c6b6"),s=Object,a=r("".split);t.exports=i((function(){return!s("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?a(t,""):s(t)}:s},"485a":function(t,e,n){var r=n("c65b"),i=n("1626"),o=n("861d"),s=TypeError;t.exports=function(t,e){var n,a;if("string"===e&&i(n=t.toString)&&!o(a=r(n,t)))return a;if(i(n=t.valueOf)&&!o(a=r(n,t)))return a;if("string"!==e&&i(n=t.toString)&&!o(a=r(n,t)))return a;throw s("Can't convert object to primitive value")}},"4d64":function(t,e,n){var r=n("fc6a"),i=n("23cb"),o=n("07fa"),s=function(t){return function(e,n,s){var a,c=r(e),u=o(c),l=i(s,u);if(t&&n!=n){while(u>l)if(a=c[l++],a!=a)return!0}else for(;u>l;l++)if((t||l in c)&&c[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},"50c4":function(t,e,n){var r=n("5926"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},5692:function(t,e,n){var r=n("c430"),i=n("c6cd");(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.26.1",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE",source:"https://github.com/zloirock/core-js"})},"56ef":function(t,e,n){var r=n("d066"),i=n("e330"),o=n("241c"),s=n("7418"),a=n("825a"),c=i([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(a(t)),n=s.f;return n?c(e,n(t)):e}},"577e":function(t,e,n){var r=n("f5df"),i=String;t.exports=function(t){if("Symbol"===r(t))throw TypeError("Cannot convert a Symbol value to a string");return i(t)}},5926:function(t,e,n){var r=n("b42e");t.exports=function(t){var e=+t;return e!==e||0===e?0:r(e)}},"59ed":function(t,e,n){var r=n("1626"),i=n("0d51"),o=TypeError;t.exports=function(t){if(r(t))return t;throw o(i(t)+" is not a function")}},"5c6c":function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"5e77":function(t,e,n){var r=n("83ab"),i=n("1a2d"),o=Function.prototype,s=r&&Object.getOwnPropertyDescriptor,a=i(o,"name"),c=a&&"something"===function(){}.name,u=a&&(!r||r&&s(o,"name").configurable);t.exports={EXISTS:a,PROPER:c,CONFIGURABLE:u}},6374:function(t,e,n){var r=n("da84"),i=Object.defineProperty;t.exports=function(t,e){try{i(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},"69f3":function(t,e,n){var r,i,o,s=n("cdce"),a=n("da84"),c=n("861d"),u=n("9112"),l=n("1a2d"),f=n("c6cd"),h=n("f772"),d=n("d012"),p="Object already initialized",b=a.TypeError,v=a.WeakMap,y=function(t){return o(t)?i(t):r(t,{})},m=function(t){return function(e){var n;if(!c(e)||(n=i(e)).type!==t)throw b("Incompatible receiver, "+t+" required");return n}};if(s||f.state){var g=f.state||(f.state=new v);g.get=g.get,g.has=g.has,g.set=g.set,r=function(t,e){if(g.has(t))throw b(p);return e.facade=t,g.set(t,e),e},i=function(t){return g.get(t)||{}},o=function(t){return g.has(t)}}else{var w=h("state");d[w]=!0,r=function(t,e){if(l(t,w))throw b(p);return e.facade=t,u(t,w,e),e},i=function(t){return l(t,w)?t[w]:{}},o=function(t){return l(t,w)}}t.exports={set:r,get:i,has:o,enforce:y,getterFor:m}},"6b0d":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=(t,e)=>{const n=t.__vccOpts||t;for(const[r,i]of e)n[r]=i;return n}},7156:function(t,e,n){var r=n("1626"),i=n("861d"),o=n("d2bb");t.exports=function(t,e,n){var s,a;return o&&r(s=e.constructor)&&s!==n&&i(a=s.prototype)&&a!==n.prototype&&o(t,a),t}},7234:function(t,e){t.exports=function(t){return null===t||void 0===t}},7418:function(t,e){e.f=Object.getOwnPropertySymbols},7839:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(t,e,n){var r=n("1d80"),i=Object;t.exports=function(t){return i(r(t))}},"825a":function(t,e,n){var r=n("861d"),i=String,o=TypeError;t.exports=function(t){if(r(t))return t;throw o(i(t)+" is not an object")}},"83ab":function(t,e,n){var r=n("d039");t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"861d":function(t,e,n){var r=n("1626"),i=n("8ea1"),o=i.all;t.exports=i.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:r(t)||t===o}:function(t){return"object"==typeof t?null!==t:r(t)}},8925:function(t,e,n){var r=n("e330"),i=n("1626"),o=n("c6cd"),s=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(t){return s(t)}),t.exports=o.inspectSource},"8bbf":function(e,n){e.exports=t},"8ea1":function(t,e){var n="object"==typeof document&&document.all,r="undefined"==typeof n&&void 0!==n;t.exports={all:n,IS_HTMLDDA:r}},"90e3":function(t,e,n){var r=n("e330"),i=0,o=Math.random(),s=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+s(++i+o,36)}},9112:function(t,e,n){var r=n("83ab"),i=n("9bf2"),o=n("5c6c");t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},"94ca":function(t,e,n){var r=n("d039"),i=n("1626"),o=/#|\.prototype\./,s=function(t,e){var n=c[a(t)];return n==l||n!=u&&(i(e)?r(e):!!e)},a=s.normalize=function(t){return String(t).replace(o,".").toLowerCase()},c=s.data={},u=s.NATIVE="N",l=s.POLYFILL="P";t.exports=s},"9bf2":function(t,e,n){var r=n("83ab"),i=n("0cfb"),o=n("aed9"),s=n("825a"),a=n("a04b"),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",h="configurable",d="writable";e.f=r?o?function(t,e,n){if(s(t),e=a(e),s(n),"function"===typeof t&&"prototype"===e&&"value"in n&&d in n&&!n[d]){var r=l(t,e);r&&r[d]&&(t[e]=n.value,n={configurable:h in n?n[h]:r[h],enumerable:f in n?n[f]:r[f],writable:!1})}return u(t,e,n)}:u:function(t,e,n){if(s(t),e=a(e),s(n),i)try{return u(t,e,n)}catch(r){}if("get"in n||"set"in n)throw c("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},a04b:function(t,e,n){var r=n("c04e"),i=n("d9b5");t.exports=function(t){var e=r(t,"string");return i(e)?e:e+""}},a4b1:function(t,e,n){},ab36:function(t,e,n){var r=n("861d"),i=n("9112");t.exports=function(t,e){r(e)&&"cause"in e&&i(t,"cause",e.cause)}},aeb0:function(t,e,n){var r=n("9bf2").f;t.exports=function(t,e,n){n in t||r(t,n,{configurable:!0,get:function(){return e[n]},set:function(t){e[n]=t}})}},aed9:function(t,e,n){var r=n("83ab"),i=n("d039");t.exports=r&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},b42e:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var e=+t;return(e>0?r:n)(e)}},b622:function(t,e,n){var r=n("da84"),i=n("5692"),o=n("1a2d"),s=n("90e3"),a=n("04f8"),c=n("fdbf"),u=i("wks"),l=r.Symbol,f=l&&l["for"],h=c?l:l&&l.withoutSetter||s;t.exports=function(t){if(!o(u,t)||!a&&"string"!=typeof u[t]){var e="Symbol."+t;a&&o(l,t)?u[t]=l[t]:u[t]=c&&f?f(e):h(e)}return u[t]}},b980:function(t,e,n){var r=n("d039"),i=n("5c6c");t.exports=!r((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",i(1,7)),7!==t.stack)}))},c04e:function(t,e,n){var r=n("c65b"),i=n("861d"),o=n("d9b5"),s=n("dc4a"),a=n("485a"),c=n("b622"),u=TypeError,l=c("toPrimitive");t.exports=function(t,e){if(!i(t)||o(t))return t;var n,c=s(t,l);if(c){if(void 0===e&&(e="default"),n=r(c,t,e),!i(n)||o(n))return n;throw u("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},c430:function(t,e){t.exports=!1},c65b:function(t,e,n){var r=n("40d5"),i=Function.prototype.call;t.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},c6b6:function(t,e,n){var r=n("e330"),i=r({}.toString),o=r("".slice);t.exports=function(t){return o(i(t),8,-1)}},c6cd:function(t,e,n){var r=n("da84"),i=n("6374"),o="__core-js_shared__",s=r[o]||i(o,{});t.exports=s},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},ca84:function(t,e,n){var r=n("e330"),i=n("1a2d"),o=n("fc6a"),s=n("4d64").indexOf,a=n("d012"),c=r([].push);t.exports=function(t,e){var n,r=o(t),u=0,l=[];for(n in r)!i(a,n)&&i(r,n)&&c(l,n);while(e.length>u)i(r,n=e[u++])&&(~s(l,n)||c(l,n));return l}},cb2d:function(t,e,n){var r=n("1626"),i=n("9bf2"),o=n("13d2"),s=n("6374");t.exports=function(t,e,n,a){a||(a={});var c=a.enumerable,u=void 0!==a.name?a.name:e;if(r(n)&&o(n,u,a),a.global)c?t[e]=n:s(e,n);else{try{a.unsafe?t[e]&&(c=!0):delete t[e]}catch(l){}c?t[e]=n:i.f(t,e,{value:n,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return t}},cc12:function(t,e,n){var r=n("da84"),i=n("861d"),o=r.document,s=i(o)&&i(o.createElement);t.exports=function(t){return s?o.createElement(t):{}}},cdce:function(t,e,n){var r=n("da84"),i=n("1626"),o=r.WeakMap;t.exports=i(o)&&/native code/.test(String(o))},d012:function(t,e){t.exports={}},d039:function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},d066:function(t,e,n){var r=n("da84"),i=n("1626"),o=function(t){return i(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t]):r[t]&&r[t][e]}},d1e7:function(t,e,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);e.f=o?function(t){var e=i(this,t);return!!e&&e.enumerable}:r},d2bb:function(t,e,n){var r=n("e330"),i=n("825a"),o=n("3bbe");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),t(n,[]),e=n instanceof Array}catch(s){}return function(n,r){return i(n),o(r),e?t(n,r):n.__proto__=r,n}}():void 0)},d9b5:function(t,e,n){var r=n("d066"),i=n("1626"),o=n("3a9b"),s=n("fdbf"),a=Object;t.exports=s?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return i(e)&&o(e.prototype,a(t))}},d9e2:function(t,e,n){var r=n("23e7"),i=n("da84"),o=n("2ba4"),s=n("e5cb"),a="WebAssembly",c=i[a],u=7!==Error("e",{cause:7}).cause,l=function(t,e){var n={};n[t]=s(t,e,u),r({global:!0,constructor:!0,arity:1,forced:u},n)},f=function(t,e){if(c&&c[t]){var n={};n[t]=s(a+"."+t,e,u),r({target:a,stat:!0,constructor:!0,arity:1,forced:u},n)}};l("Error",(function(t){return function(e){return o(t,this,arguments)}})),l("EvalError",(function(t){return function(e){return o(t,this,arguments)}})),l("RangeError",(function(t){return function(e){return o(t,this,arguments)}})),l("ReferenceError",(function(t){return function(e){return o(t,this,arguments)}})),l("SyntaxError",(function(t){return function(e){return o(t,this,arguments)}})),l("TypeError",(function(t){return function(e){return o(t,this,arguments)}})),l("URIError",(function(t){return function(e){return o(t,this,arguments)}})),f("CompileError",(function(t){return function(e){return o(t,this,arguments)}})),f("LinkError",(function(t){return function(e){return o(t,this,arguments)}})),f("RuntimeError",(function(t){return function(e){return o(t,this,arguments)}}))},da84:function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(this,n("c8ba"))},dc4a:function(t,e,n){var r=n("59ed"),i=n("7234");t.exports=function(t,e){var n=t[e];return i(n)?void 0:r(n)}},e330:function(t,e,n){var r=n("40d5"),i=Function.prototype,o=i.call,s=r&&i.bind.bind(o,o);t.exports=r?s:function(t){return function(){return o.apply(t,arguments)}}},e391:function(t,e,n){var r=n("577e");t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:r(t)}},e5cb:function(t,e,n){"use strict";var r=n("d066"),i=n("1a2d"),o=n("9112"),s=n("3a9b"),a=n("d2bb"),c=n("e893"),u=n("aeb0"),l=n("7156"),f=n("e391"),h=n("ab36"),d=n("0d26"),p=n("b980"),b=n("83ab"),v=n("c430");t.exports=function(t,e,n,y){var m="stackTraceLimit",g=y?2:1,w=t.split("."),x=w[w.length-1],S=r.apply(null,w);if(S){var O=S.prototype;if(!v&&i(O,"cause")&&delete O.cause,!n)return S;var j=r("Error"),z=e((function(t,e){var n=f(y?e:t,void 0),r=y?new S(t):new S;return void 0!==n&&o(r,"message",n),p&&o(r,"stack",d(r.stack,2)),this&&s(O,this)&&l(r,this,z),arguments.length>g&&h(r,arguments[g]),r}));if(z.prototype=O,"Error"!==x?a?a(z,j):c(z,j,{name:!0}):b&&m in S&&(u(z,S,m),u(z,S,"prepareStackTrace")),c(z,S),!v)try{O.name!==x&&o(O,"name",x),O.constructor=z}catch(k){}return z}}},e893:function(t,e,n){var r=n("1a2d"),i=n("56ef"),o=n("06cf"),s=n("9bf2");t.exports=function(t,e,n){for(var a=i(e),c=s.f,u=o.f,l=0;l<a.length;l++){var f=a[l];r(t,f)||n&&r(n,f)||c(t,f,u(e,f))}}},e8b5:function(t,e,n){var r=n("c6b6");t.exports=Array.isArray||function(t){return"Array"==r(t)}},f5df:function(t,e,n){var r=n("00ee"),i=n("1626"),o=n("c6b6"),s=n("b622"),a=s("toStringTag"),c=Object,u="Arguments"==o(function(){return arguments}()),l=function(t,e){try{return t[e]}catch(n){}};t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=l(e=c(t),a))?n:u?o(e):"Object"==(r=o(e))&&i(e.callee)?"Arguments":r}},f772:function(t,e,n){var r=n("5692"),i=n("90e3"),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},fb15:function(t,e,n){"use strict";if(n.r(e),"undefined"!==typeof window){var r=window.document.currentScript,i=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(n.p=i[1])}n("a4b1");var o={computed:{dockOn(){return this.dock||"right"},showHeader(){return this.title||this.$slots.header},showFooter(){return this.$slots.footer},containerStyle(){const t={"z-index":this.zIndex,display:this.showContainer?"block":"none"},e=this.$attrs.style;if(e)if("string"===typeof e)e.split(";").forEach(e=>{const[n,r]=e.split(":");t[n]=r});else for(const n in e)t[n]=e[n];return this.mousedown&&(t.userSelect="none"),t},maskStyle(){return this.maskColor?{"background-color":this.maskColor}:{}},isSizeFixed(){return Array.isArray(this.size)},isAutoSize(){return this.isSizeFixed?!this.size.every(t=>"0"!==t.toString()):"0"===this.size.toString()},sizeWithUnit(){return this.isSizeFixed?[this._fixSizeUnit(this.size[0]),this._fixSizeUnit(this.size[1===this.size.length?0:1])]:this._fixSizeUnit(this.size)},panelStyle(){const t={};if(this.isSizeFixed){t.width=this.sizeWithUnit[0],t.height=this.sizeWithUnit[1];const e=this.isFilled?0:this.offset;switch(this.dockOn){case"right":case"left":t.top=e,t.maxHeight=`calc(100% - ${e})`;break;case"bottom":case"top":t.left=e,t.maxWidth=`calc(100% - ${e})`;break}return t}const e=this.isFilled?"100%":this.resizeValue>0?this.resizeValue+"px":this.sizeWithUnit;switch(this.dockOn){case"right":case"left":t.width=e;break;case"bottom":case"top":t.height=e;break}return t},containerClasses(){return{slideout:!0,[this.customClass||""]:!0,["slideout-dock--"+this.dockOn]:!0,"slideout-is--visible":this.activeVisibleClass,"slideout-animation--enabled":!this.mousedown&&!this.disableAnimation,"slideout-header--visible":this.showHeader,"slideout-footer--visible":this.$slots.footer,"slideout-is--resizable":this.resizable,"slideout-is--fixed":this.isFixed,"slideout-is--filled":this.isFilled,"slideout-is--autosize":this.isAutoSize}},isFixed(){return this.fixed||this.parentElement===document.body||!this.target}}},s={data(){return{isVisible:!1,isFilled:!1,mousedown:!1,mouseDownPosition:{x:0,y:0},originSize:{width:0,height:0},resizeValue:0,parentElement:null,headerButtons:null,animationDuration:312,activeVisibleClass:!1,showContainer:!1}}},a=(n("d9e2"),{methods:{makeBeforeEventArgs(t,e){const n=this;let r=!1;return{pause:!1,set resume(e){e&&n.$nextTick(()=>{t()})},get resume(){},set cancel(t){r=t,t&&n.$nextTick(()=>{e()})},get cancel(){return r}}},tryOpen(){if(this.isVisible)return;const t=this.makeBeforeEventArgs(()=>{this.setVisibleValue(!0)},()=>{this._updateVisibleValue(!1)});this.$emit("opening",t),t.pause||t.cancel||this.setVisibleValue(!0)},tryClose(){if(!this.isVisible)return;const t=this.makeBeforeEventArgs(()=>{this.setVisibleValue(!1)},()=>{this._updateVisibleValue(!0)});this.$emit("closing",t),t.pause||t.cancel||this.setVisibleValue(!1)},setVisibleValue(t){t&&(this.resizeValue=0),t?(this.showContainer=!0,this.isVisible=!0,this.$nextTick(()=>{setTimeout(()=>{this.activeVisibleClass=!0,this.emitOpenedEvent()},10)})):(this.isFilled&&this.$emit("update:fill-parent",!1),this.activeVisibleClass=!1,this.$nextTick(()=>{this.emitClosedEvent()}))},emitOpenedEvent(){this.disableAnimation?this._doOpen():setTimeout(()=>{this._doOpen()},this.animationDuration)},emitClosedEvent(){this.disableAnimation?this._doClose():setTimeout(()=>{this._doClose()},this.animationDuration)},_doOpen(){this.$emit("opened",this.$refs.panel),this.visible!==this.isVisible&&this._updateVisibleValue(!0)},_doClose(){this.showContainer=!1,this.isVisible=!1,this.$emit("closed"),this.visible!==this.isVisible&&this._updateVisibleValue(!1)},toggleFillState(t){if("boolean"!==typeof t)this.isFilled=!this.isFilled;else{if(this.isFilled===t)return;this.isFilled=t}this.isFilled!==this.fillParent&&this.$emit("update:fill-parent",this.isFilled)},updateParentElement(){if(!this.target)return void(this.parentElement=this.$parent.$el.parentElement);let t=this.target;if("string"===typeof t&&(t=document.querySelector(t),!t))throw new Error("[vue-slideout] Cannot find the node to append: "+this.target);this.parentElement=t},onMaskClick(){this.closeOnMaskClick&&this.tryClose()},getParentSize(){const t=this.parentElement.getClientRects()[0];return{width:t.width,height:t.height}},getMyownSize(){const t=this.$refs.panel.getClientRects()[0];return{width:t.width,height:t.height}},mouseDownHandler(t){this.isFilled||(this.mousedown=!0,this.mouseDownPosition={x:t.pageX,y:t.pageY},this.originSize=this.getMyownSize())},mouseMoveHandler(t){if(this.isFilled)return;if(!this.mousedown)return;t.preventDefault();const e=t.pageX-this.mouseDownPosition.x,n=t.pageY-this.mouseDownPosition.y,r=this.getParentSize(),i={width:window.innerWidth,height:window.innerHeight},o=this.originSize;let s=0;switch(this.dock){case"top":s=o.height+n,s>r.height&&(s=r.height),s>i.height&&(s=i.height);break;case"right":s=o.width-e,s>r.width&&(s=r.width),s>i.width&&(s=i.width);break;case"bottom":s=o.height-n,s>r.height&&(s=r.height),s>i.height&&(s=i.height);break;case"left":s=o.width+e,s>r.width&&(s=r.width),s>i.width&&(s=i.width);break}this.maxSize>0&&this.maxSize<s&&(s=this.maxSize),requestAnimationFrame(()=>{this.resizeValue=s<this.minSize?this.minSize:s}),this.$nextTick(()=>{this.$emit("resize",{size:this.resizeValue})})},mouseUpHandler(){this.mousedown=!1},onKeydown(t){if(!this.ignoreEsc&&this.isVisible&&("Escape"===t.code||27===t.keyCode||27===t.which)&&-1===["INPUT","TEXTAREA"].indexOf(t.target.tagName)&&"true"!==t.target.contentEditable)return this.tryClose(),!1},_fixSizeUnit(t){return"0"===t.toString()?"auto":/^[0-9.]+$/.test(t)?t+"px":t},_updateVisibleValue(t){this.$emit("update:modelValue",t)}}}),c={watch:{modelValue(t){t!==this.isVisible&&(t?this.tryOpen():this.tryClose())},fillParent(t){t!==this.isFilled&&this.toggleFillState(t)},isVisible(t){t&&this.$nextTick(()=>{this.$refs.container.focus()}),this.isFixed&&(t?document.body.classList.add("slideout-helper--scroll-locker"):document.body.classList.remove("slideout-helper--scroll-locker"))}}},u=(n("14d9"),n("8bbf"));const l={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"},f=Object(u["createElementVNode"])("path",{d:"M493.45411 71.89033 197.751365 361.596502c-9.624195 9.380648-9.624195 24.707728 0 34.138518 9.576099 9.381671 25.222451 9.381671 34.848693 0l253.612115-248.494561 0 786.690176c0 13.3214 11.047614 24.142863 24.642237 24.142863 13.597693 0 24.645306-10.821463 24.645306-24.142863L535.499715 147.240459l253.632581 248.494561c9.603729 9.381671 25.248034 9.381671 34.847669 0 4.836145-4.76349 7.194866-10.939143 7.194866-17.116843 0-6.1777-2.405793-12.355399-7.194866-17.116843L528.255731 71.797209c-9.602705-9.383718-25.244964-9.383718-34.849716 0L493.45411 71.89033z"},null,-1),h=[f];function d(t,e){return Object(u["openBlock"])(),Object(u["createElementBlock"])("svg",l,h)}var p=n("6b0d"),b=n.n(p);const v={},y=b()(v,[["render",d]]);var m=y;const g={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"},w=Object(u["createElementVNode"])("path",{d:"M184.64768 836.34176c3.9936 3.9936 9.23648 5.98016 14.47936 5.98016 5.24288 0 10.48576-2.00704 14.49984-6.00064l292.70016-293.04832 292.70016 293.04832c3.9936 4.01408 9.23648 6.00064 14.49984 6.00064 5.24288 0 10.48576-2.00704 14.47936-5.98016 8.00768-7.9872 8.00768-20.95104 0.02048-28.95872L535.61344 514.64192 828.0064 221.92128c7.9872-8.00768 7.9872-20.97152-0.02048-28.95872-8.02816-8.00768-20.97152-8.00768-28.95872 0.02048L506.30656 486.03136 213.6064 192.98304c-8.00768-8.00768-20.97152-8.00768-28.95872-0.02048-8.00768 7.9872-8.00768 20.95104-0.02048 28.95872l292.37248 292.72064L184.6272 807.38304C176.64 815.37024 176.64 828.35456 184.64768 836.34176z"},null,-1),x=[w];function S(t,e){return Object(u["openBlock"])(),Object(u["createElementBlock"])("svg",g,x)}const O={},j=b()(O,[["render",S]]);var z=j;const k={version:"1.1",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"},E=Object(u["createElementVNode"])("path",{d:"M258.285714 197.028571l50.171429-50.171428a9.154286 9.154286 0 0 0-5.371429-15.542857L120 109.714286c-5.828571-0.685714-10.857143 4.228571-10.171429 10.171428L131.428571 302.971429c0.914286 7.542857 10.171429 10.742857 15.542858 5.371428l49.942857-49.942857L349.714286 411.085714c3.542857 3.542857 9.371429 3.542857 12.914285 0l48.457143-48.342857c3.542857-3.542857 3.542857-9.371429 0-12.914286L258.285714 197.028571z m403.085715 214.057143c3.542857 3.542857 9.371429 3.542857 12.914285 0l152.8-152.685714 49.942857 49.942857a9.154286 9.154286 0 0 0 15.542858-5.371428L914.171429 120c0.685714-5.828571-4.228571-10.857143-10.171429-10.171429L720.914286 131.428571c-7.542857 0.914286-10.742857 10.171429-5.371429 15.542858l50.171429 50.171428L612.914286 349.714286a9.177143 9.177143 0 0 0 0 12.914285l48.457143 48.457143zM892.571429 721.028571c-0.914286-7.542857-10.171429-10.742857-15.542858-5.371428l-49.942857 49.942857L674.285714 612.914286a9.177143 9.177143 0 0 0-12.914285 0l-48.457143 48.342857a9.177143 9.177143 0 0 0 0 12.914286L765.714286 826.971429l-50.171429 50.171428a9.154286 9.154286 0 0 0 5.371429 15.542857L904 914.285714c5.828571 0.685714 10.857143-4.228571 10.171429-10.171428L892.571429 721.028571z m-529.942858-108.114285a9.177143 9.177143 0 0 0-12.914285 0L196.914286 765.6l-49.942857-49.942857a9.154286 9.154286 0 0 0-15.542858 5.371428L109.828571 904c-0.685714 5.828571 4.228571 10.857143 10.171429 10.171429L303.085714 892.571429c7.542857-0.914286 10.742857-10.171429 5.371429-15.542858L258.285714 826.971429 411.085714 674.285714c3.542857-3.542857 3.542857-9.371429 0-12.914285l-48.457143-48.457143z"},null,-1),C=[E];function L(t,e){return Object(u["openBlock"])(),Object(u["createElementBlock"])("svg",k,C)}const V={},P=b()(V,[["render",L]]);var _=P;const F={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16"},M=Object(u["createElementVNode"])("path",{d:"M391 240.9c-0.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L200 146.3c-3.1-3.1-8.2-3.1-11.3 0l-42.4 42.3c-3.1 3.1-3.1 8.2 0 11.3L280 333.6l-43.9 43.9c-4.7 4.7-1.9 12.8 4.7 13.6L401 410c5.1 0.6 9.5-3.7 8.9-8.9L391 240.9zM401.1 614.1L240.8 633c-6.6 0.8-9.4 8.9-4.7 13.6l43.9 43.9L146.3 824c-3.1 3.1-3.1 8.2 0 11.3l42.4 42.3c3.1 3.1 8.2 3.1 11.3 0L333.7 744l43.7 43.7c4.7 4.7 12.8 1.9 13.6-4.7l18.9-160.1c0.6-5.1-3.7-9.4-8.8-8.8zM622.9 409.9L783.2 391c6.6-0.8 9.4-8.9 4.7-13.6L744 333.6 877.7 200c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.3c-3.1-3.1-8.2-3.1-11.3 0L690.3 279.9l-43.7-43.7c-4.7-4.7-12.8-1.9-13.6 4.7L614.1 401c-0.6 5.2 3.7 9.5 8.8 8.9zM744 690.4l43.9-43.9c4.7-4.7 1.9-12.8-4.7-13.6L623 614c-5.1-0.6-9.5 3.7-8.9 8.9L633 783.1c0.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L824 877.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3L744 690.4z"},null,-1),T=[M];function B(t,e){return Object(u["openBlock"])(),Object(u["createElementBlock"])("svg",F,T)}const $={},A=b()($,[["render",B]]);var D=A,H={methods:{renderDefaultButtons(){const t=[];return this.showFillButton&&t.push(Object(u["h"])("button",{class:"slideout-btn--fill",onClick:this.toggleFillState},[Object(u["h"])(_),Object(u["h"])(D)])),this.showClose&&t.push(Object(u["h"])("button",{class:"slideout-btn--close",onClick:this.tryClose},this.arrowButton?Object(u["h"])(m):Object(u["h"])(z))),this.span({class:"slideout-header--buttons-default"},t)},renderResizeHandle(){return this.div({class:"slideout-resize--handle",onMousedown:this.mouseDownHandler})},renderHeader(){return this.div({class:"slideout-header"},this.$slots.header?this.$slots.header():[this.div({class:"slideout-header--text"},this.title),this.div({class:"slideout-header--buttons",ref:"buttons"},[this.span({class:"slideout-header--buttons-custom"},this.$slots.buttons?this.$slots.buttons():[]),this.renderDefaultButtons()])])},renderContent(){return this.div({class:"slideout-content"},this.$slots.default())},renderFooter(){return this.div({class:"slideout-footer"},this.$slots.footer?this.$slots.footer():[])},renderLayout(){const t=[];return!this.resizable||this.isFilled||this.isSizeFixed||t.push(this.renderResizeHandle()),this.showHeader&&t.push(this.renderHeader()),t.push(this.renderContent()),this.showFooter&&t.push(this.renderFooter()),this.div({class:"slideout-panel",style:this.panelStyle,ref:"panel"},t)},renderMask(){return this.div({class:"slideout-mask",style:this.maskStyle,onClick:this.onMaskClick})},renderContainer(t){return this.div({class:this.containerClasses,style:this.containerStyle,tabindex:0,ref:"container",onKeydown:this.onKeydown},t)},div(t,e){return Object(u["h"])("div",t,e)},span(t,e){return Object(u["h"])("span",t,e)}},render(){if(this.renderWhenVisible&&!this.modelValue)return null;const t=[];this.showMask&&t.push(this.renderMask()),t.push(this.renderLayout());const e=this.renderContainer(t);return this.target?Object(u["h"])(u["Teleport"],{to:this.target},e):e}},U={name:"Slideout",inheritAttrs:!1,mixins:[o,s,a,c,H],emits:["opening","opened","closing","closed","resize","update:fill-parent","update:modelValue"],props:{size:{type:[String,Number,Array],default:400},resizable:{type:Boolean,default:!1},minSize:{type:Number,default:100},maxSize:{type:Number,default:0},zIndex:{type:Number,default:1997},modelValue:{type:Boolean,default:!1},title:{type:String},customClass:{type:String},showMask:{type:Boolean,default:!0},maskColor:{type:String,default:null},closeOnMaskClick:{type:Boolean,default:!0},ignoreEsc:{type:Boolean,default:!1},dock:{type:String,default:"right",validator:t=>["top","right","bottom","left"].indexOf(t)>=0},target:{type:[String,HTMLElement],default:"body"},disableAnimation:{type:Boolean,default:!1},fillParent:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},showFillButton:{type:Boolean,default:!1},fixed:{type:Boolean,default:!1},offset:{type:String,default:"0"},arrowButton:{type:Boolean,default:!0},renderWhenVisible:{type:Boolean,default:!1}},mounted(){this.isFilled=this.fillParent,this.updateParentElement(),this.resizable&&(document.addEventListener("mousemove",this.mouseMoveHandler),document.addEventListener("mouseup",this.mouseUpHandler)),this.headerButtons=this.$slots.btn?this.$refs.buttons:null},beforeUnmount(){this.showContainer=!1,this.resizable&&(document.removeEventListener("mousemove",this.mouseUpHandler),document.removeEventListener("mouseup",this.mouseMoveHandler)),this.isVisible&&this.tryClose(),document.body.classList.remove("slideout-helper--scroll-locker")}};function I(t){for(let e in t)t.hasOwnProperty(e)&&(e=e.replace(/_[a-z]/g,t=>t[1].toUpperCase()),U.props.hasOwnProperty(e)&&(U.props[e]["default"]=t[e]))}U.install=function(t,e){e&&I(e),t.component(U.name,U)};var N=U;e["default"]=N},fc6a:function(t,e,n){var r=n("44ad"),i=n("1d80");t.exports=function(t){return r(i(t))}},fdbf:function(t,e,n){var r=n("04f8");t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}})["default"]}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyjiacan/vue-slideout",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.2",
|
|
4
4
|
"description": "A Slide-Out component for Vue3",
|
|
5
5
|
"main": "dist/slideout.common.js",
|
|
6
6
|
"unpkg": "dist/slideout.umd.js",
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
"files": [
|
|
28
28
|
"dist",
|
|
29
29
|
"src",
|
|
30
|
+
"types",
|
|
30
31
|
"LICENSE",
|
|
31
32
|
"README.md",
|
|
32
33
|
"README.zh-CN.md",
|
|
@@ -34,6 +35,7 @@
|
|
|
34
35
|
"API.zh-CN.md",
|
|
35
36
|
"MIGRATIONS.md"
|
|
36
37
|
],
|
|
38
|
+
"types": "types/slideout.d.ts",
|
|
37
39
|
"publishConfig": {
|
|
38
40
|
"access": "public",
|
|
39
41
|
"registry": "https://registry.npmjs.org"
|
|
@@ -44,13 +46,13 @@
|
|
|
44
46
|
"homepage": "https://hyjiacan.github.io/vue-slideout/",
|
|
45
47
|
"dependencies": {
|
|
46
48
|
"core-js": "^3.6.5",
|
|
47
|
-
"vue": "^3.
|
|
49
|
+
"vue": "^3.2.45"
|
|
48
50
|
},
|
|
49
51
|
"devDependencies": {
|
|
50
|
-
"@vue/cli-plugin-babel": "
|
|
51
|
-
"@vue/cli-plugin-eslint": "
|
|
52
|
-
"@vue/cli-service": "
|
|
53
|
-
"@vue/compiler-sfc": "^3.
|
|
52
|
+
"@vue/cli-plugin-babel": "^4.5.19",
|
|
53
|
+
"@vue/cli-plugin-eslint": "^4.5.19",
|
|
54
|
+
"@vue/cli-service": "^4.5.19",
|
|
55
|
+
"@vue/compiler-sfc": "^3.2.45",
|
|
54
56
|
"babel-eslint": "^10.1.0",
|
|
55
57
|
"eslint": "^6.7.2",
|
|
56
58
|
"eslint-plugin-vue": "^7.0.0-0",
|
|
@@ -79,4 +81,4 @@
|
|
|
79
81
|
"last 2 versions",
|
|
80
82
|
"not dead"
|
|
81
83
|
]
|
|
82
|
-
}
|
|
84
|
+
}
|
package/src/assets/langs.json
CHANGED
|
@@ -67,6 +67,16 @@
|
|
|
67
67
|
"Component has limited the max value of <code>size</code> as <code>100%</code>.": "组件限制了 <code>size</code> 的最大值为 <code>100%</code>。",
|
|
68
68
|
"The <code>size=\"120%\"</code> specified here is greater than <code>100%</code>, thus it wouldn't work as expected.": "此处指定的值 <code>size=\"120%\"</code> 大于 <code>100%</code>, 因此其不会如期起作用。",
|
|
69
69
|
"There are some breaking changes at 3.0.0, see migrations on": "版本 3.0.0 发生不兼容的变化,可以在这里找到迁移信息",
|
|
70
|
-
"Try it on the fly.": "试试在线示例"
|
|
70
|
+
"Try it on the fly.": "试试在线示例",
|
|
71
|
+
"Open": "打开",
|
|
72
|
+
"Nested usage": "嵌套使用",
|
|
73
|
+
"Click to open the inner Slide": "点击打开内层的 Slide",
|
|
74
|
+
"Here is the outer Slide.": "这是外层 Slide",
|
|
75
|
+
"Here is the inner Slide.": "这是内层 Slide",
|
|
76
|
+
"The style": "样式",
|
|
77
|
+
"is important, you can": "很重要,你可以",
|
|
78
|
+
"remove it": "将其移除",
|
|
79
|
+
"add it": "将其加上",
|
|
80
|
+
"to see what's difference.": "再看看有什么不同。"
|
|
71
81
|
}
|
|
72
82
|
}
|
|
@@ -2,43 +2,56 @@ export default {
|
|
|
2
2
|
computed: {
|
|
3
3
|
// The side to dock on.
|
|
4
4
|
// The default value is right.
|
|
5
|
-
dockOn
|
|
5
|
+
dockOn() {
|
|
6
6
|
return this.dock || 'right'
|
|
7
7
|
},
|
|
8
8
|
// If to show the header bar or not.
|
|
9
9
|
// This depends on the title property and the header slot.
|
|
10
|
-
showHeader
|
|
10
|
+
showHeader() {
|
|
11
11
|
return this.title || this.$slots.header
|
|
12
12
|
},
|
|
13
13
|
// If to show the footer bar or not.
|
|
14
14
|
// This depends on the footer slot.
|
|
15
|
-
showFooter
|
|
15
|
+
showFooter() {
|
|
16
16
|
return this.$slots.footer
|
|
17
17
|
},
|
|
18
|
-
containerStyle
|
|
18
|
+
containerStyle() {
|
|
19
19
|
const style = {
|
|
20
20
|
'z-index': this.zIndex,
|
|
21
21
|
display: this.showContainer ? 'block' : 'none'
|
|
22
22
|
}
|
|
23
|
+
const customStyle = this.$attrs.style
|
|
24
|
+
if (customStyle) {
|
|
25
|
+
if (typeof customStyle === 'string') {
|
|
26
|
+
customStyle.split(';').forEach(item => {
|
|
27
|
+
const [key, value] = item.split(':')
|
|
28
|
+
style[key] = value
|
|
29
|
+
})
|
|
30
|
+
} else {
|
|
31
|
+
for (const key in customStyle) {
|
|
32
|
+
style[key] = customStyle[key]
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
23
36
|
if (this.mousedown) {
|
|
24
37
|
style.userSelect = 'none'
|
|
25
38
|
}
|
|
26
39
|
return style
|
|
27
40
|
},
|
|
28
|
-
maskStyle
|
|
41
|
+
maskStyle() {
|
|
29
42
|
return this.maskColor ? {
|
|
30
43
|
'background-color': this.maskColor
|
|
31
44
|
} : {}
|
|
32
45
|
},
|
|
33
46
|
// If to use the fixed size or not:
|
|
34
47
|
// true if the value of size is an Array
|
|
35
|
-
isSizeFixed
|
|
48
|
+
isSizeFixed() {
|
|
36
49
|
return Array.isArray(this.size)
|
|
37
50
|
},
|
|
38
51
|
// Should I fit the size automatically ?
|
|
39
52
|
// If the value of size is 0 or [0, 0],
|
|
40
53
|
// then make it auto.
|
|
41
|
-
isAutoSize
|
|
54
|
+
isAutoSize() {
|
|
42
55
|
if (this.isSizeFixed) {
|
|
43
56
|
return !this.size.every(i => i.toString() !== '0')
|
|
44
57
|
}
|
|
@@ -48,14 +61,14 @@ export default {
|
|
|
48
61
|
* Get the value of size with unit px or "%"
|
|
49
62
|
* @return {Array|String}
|
|
50
63
|
*/
|
|
51
|
-
sizeWithUnit
|
|
64
|
+
sizeWithUnit() {
|
|
52
65
|
if (!this.isSizeFixed) {
|
|
53
66
|
return this._fixSizeUnit(this.size)
|
|
54
67
|
}
|
|
55
68
|
return [this._fixSizeUnit(this.size[0]), this._fixSizeUnit(this.size[this.size.length === 1 ? 0 : 1])]
|
|
56
69
|
},
|
|
57
|
-
// The styles of panel
|
|
58
|
-
panelStyle
|
|
70
|
+
// The styles of panel
|
|
71
|
+
panelStyle() {
|
|
59
72
|
const style = {}
|
|
60
73
|
|
|
61
74
|
// Styles for fixed
|
|
@@ -94,36 +107,7 @@ export default {
|
|
|
94
107
|
}
|
|
95
108
|
return style
|
|
96
109
|
},
|
|
97
|
-
|
|
98
|
-
const style = {}
|
|
99
|
-
if (!this.isAutoSize) {
|
|
100
|
-
return style
|
|
101
|
-
}
|
|
102
|
-
let padding = 0
|
|
103
|
-
|
|
104
|
-
switch (this.dockOn) {
|
|
105
|
-
case 'right':
|
|
106
|
-
case 'left':
|
|
107
|
-
break
|
|
108
|
-
case 'bottom':
|
|
109
|
-
case 'top':
|
|
110
|
-
if (this.showHeader) {
|
|
111
|
-
padding += 48
|
|
112
|
-
}
|
|
113
|
-
if (this.showFooter) {
|
|
114
|
-
padding += 48
|
|
115
|
-
}
|
|
116
|
-
if (this.maxSize) {
|
|
117
|
-
style.maxHeight = `${this.maxSize - padding}px`
|
|
118
|
-
}
|
|
119
|
-
if (this.minSize) {
|
|
120
|
-
style.minHeight = `${this.minSize - padding}px`
|
|
121
|
-
}
|
|
122
|
-
break
|
|
123
|
-
}
|
|
124
|
-
return style
|
|
125
|
-
},
|
|
126
|
-
containerClasses () {
|
|
110
|
+
containerClasses() {
|
|
127
111
|
return {
|
|
128
112
|
'slideout': true,
|
|
129
113
|
[this.customClass || '']: true,
|
|
@@ -140,36 +124,8 @@ export default {
|
|
|
140
124
|
'slideout-is--autosize': this.isAutoSize
|
|
141
125
|
}
|
|
142
126
|
},
|
|
143
|
-
headerStyle () {
|
|
144
|
-
const style = {}
|
|
145
|
-
|
|
146
|
-
// No need to compute the header style while the header slot is specified
|
|
147
|
-
if (this.$slots.header) {
|
|
148
|
-
return style
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
style.paddingRight = `${this.defaultButtonsWidth}px`
|
|
152
|
-
|
|
153
|
-
if (!this.headerButtons) {
|
|
154
|
-
return style
|
|
155
|
-
}
|
|
156
|
-
const btnStyle = window.getComputedStyle(this.headerButtons)
|
|
157
|
-
style.paddingRight = `${this.defaultButtonsWidth + parseInt(btnStyle.width) + 5}px`
|
|
158
|
-
return style
|
|
159
|
-
},
|
|
160
|
-
defaultButtonsWidth () {
|
|
161
|
-
// 20: padding
|
|
162
|
-
let w = 20
|
|
163
|
-
if (this.showClose) {
|
|
164
|
-
w += 32
|
|
165
|
-
}
|
|
166
|
-
if (this.showFillButton) {
|
|
167
|
-
w += 32
|
|
168
|
-
}
|
|
169
|
-
return w
|
|
170
|
-
},
|
|
171
127
|
// If to use fixed position.
|
|
172
|
-
isFixed
|
|
128
|
+
isFixed() {
|
|
173
129
|
// False if target specified,
|
|
174
130
|
// except the parent element is document.body.
|
|
175
131
|
return this.fixed || this.parentElement === document.body || !this.target
|
package/src/components/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import Slideout from './slideout.js'
|
|
2
2
|
|
|
3
|
-
function setDefaultProps
|
|
3
|
+
function setDefaultProps(customize) {
|
|
4
4
|
for (let prop in customize) {
|
|
5
5
|
if (!customize.hasOwnProperty(prop)) {
|
|
6
6
|
continue
|
|
7
7
|
}
|
|
8
8
|
// Parse property name like "abc_xyz" into "abcXyz".
|
|
9
|
-
prop = prop.replace(
|
|
9
|
+
prop = prop.replace(/_[a-z]/g, match => {
|
|
10
10
|
return match[1].toUpperCase()
|
|
11
11
|
})
|
|
12
12
|
if (!Slideout.props.hasOwnProperty(prop)) {
|
|
@@ -21,11 +21,11 @@ function setDefaultProps (customize) {
|
|
|
21
21
|
* @param app
|
|
22
22
|
* @param {Object} defaults The defaults value
|
|
23
23
|
*/
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
setDefaultProps(defaults)
|
|
28
|
-
}
|
|
29
|
-
app.component(Slideout.name, Slideout)
|
|
24
|
+
Slideout.install = function (app, defaults) {
|
|
25
|
+
if (defaults) {
|
|
26
|
+
setDefaultProps(defaults)
|
|
30
27
|
}
|
|
28
|
+
app.component(Slideout.name, Slideout)
|
|
31
29
|
}
|
|
30
|
+
|
|
31
|
+
export default Slideout
|