vue2-timepicker
Advanced tools
Comparing version 0.2.1 to 0.2.2-rc.0
@@ -5,2 +5,12 @@ # CHANGELOG | ||
## v 0.2.2 | ||
### Fixes | ||
Fixes `v-model` watcher for cases like changing the input value programmatically (non-user behavior). | ||
### Improvements | ||
Added `displayTime` in the return data of `@change` event. | ||
## v 0.2.1 | ||
@@ -10,12 +20,12 @@ | ||
- New `input-class` support. The custom input class will be assigned to the `<input type="text">` within the component. ([#57](https://github.com/phoenixwong/vue2-timepicker/issues/57)) | ||
- Add support to `placeholder`, just like other regular form elements ([#55](https://github.com/phoenixwong/vue2-timepicker/issues/55)) | ||
- New `input-class` support. The custom input class will be assigned to the `<input type="text">` within the component. (Thanks to @marufmax) | ||
- Add support to `placeholder`, just like other regular form elements | ||
### Improvements | ||
Refined `@click.stop` logic ([#38](https://github.com/phoenixwong/vue2-timepicker/issues/38)) | ||
Refined `@click.stop` logic | ||
### Fixes | ||
Fixes possible loader issue in some Webpack configs ([#68](https://github.com/phoenixwong/vue2-timepicker/issues/68), Thanks to @RaphaelJ) | ||
Fixes possible loader issue in some Webpack configs (Thanks to @RaphaelJ) | ||
@@ -22,0 +32,0 @@ ## v 0.2.0 |
@@ -1,2 +0,2 @@ | ||
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["VueTimepicker"]=e():t["VueTimepicker"]=e()})("undefined"!==typeof self?self:this,function(){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")}({"01f9":function(t,e,n){"use strict";var r=n("2d00"),i=n("5ca1"),o=n("2aba"),s=n("32e9"),a=n("84f2"),c=n("41a0"),u=n("7f20"),f=n("38fd"),l=n("2b4c")("iterator"),p=!([].keys&&"next"in[].keys()),h="@@iterator",d="keys",m="values",v=function(){return this};t.exports=function(t,e,n,g,y,b,x){c(n,e,g);var S,w,T,O=function(t){if(!p&&t in C)return C[t];switch(t){case d:return function(){return new n(this,t)};case m:return function(){return new n(this,t)}}return function(){return new n(this,t)}},_=e+" Iterator",I=y==m,E=!1,C=t.prototype,k=C[l]||C[h]||y&&C[y],R=k||O(y),N=y?I?O("entries"):R:void 0,A="Array"==e&&C.entries||k;if(A&&(T=f(A.call(new t)),T!==Object.prototype&&T.next&&(u(T,_,!0),r||"function"==typeof T[l]||s(T,l,v))),I&&k&&k.name!==m&&(E=!0,R=function(){return k.call(this)}),r&&!x||!p&&!E&&C[l]||s(C,l,R),a[e]=R,a[_]=v,y)if(S={values:I?R:O(m),keys:b?R:O(d),entries:N},x)for(w in S)w in C||o(C,w,S[w]);else i(i.P+i.F*(p||E),e,S);return S}},"02f4":function(t,e,n){var r=n("4588"),i=n("be13");t.exports=function(t){return function(e,n){var o,s,a=String(i(e)),c=r(n),u=a.length;return c<0||c>=u?t?"":void 0:(o=a.charCodeAt(c),o<55296||o>56319||c+1===u||(s=a.charCodeAt(c+1))<56320||s>57343?t?a.charAt(c):o:t?a.slice(c,c+2):s-56320+(o-55296<<10)+65536)}}},"0390":function(t,e,n){"use strict";var r=n("02f4")(!0);t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},"0bfb":function(t,e,n){"use strict";var r=n("cb7c");t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},"0d58":function(t,e,n){var r=n("ce10"),i=n("e11e");t.exports=Object.keys||function(t){return r(t,i)}},"11e9":function(t,e,n){var r=n("52a7"),i=n("4630"),o=n("6821"),s=n("6a99"),a=n("69a8"),c=n("c69a"),u=Object.getOwnPropertyDescriptor;e.f=n("9e1e")?u:function(t,e){if(t=o(t),e=s(e,!0),c)try{return u(t,e)}catch(n){}if(a(t,e))return i(!r.f.call(t,e),t[e])}},1495:function(t,e,n){var r=n("86cc"),i=n("cb7c"),o=n("0d58");t.exports=n("9e1e")?Object.defineProperties:function(t,e){i(t);var n,s=o(e),a=s.length,c=0;while(a>c)r.f(t,n=s[c++],e[n]);return t}},"214f":function(t,e,n){"use strict";n("b0c5");var r=n("2aba"),i=n("32e9"),o=n("79e5"),s=n("be13"),a=n("2b4c"),c=n("520a"),u=a("species"),f=!o(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),l=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){var p=a(t),h=!o(function(){var e={};return e[p]=function(){return 7},7!=""[t](e)}),d=h?!o(function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[u]=function(){return n}),n[p](""),!e}):void 0;if(!h||!d||"replace"===t&&!f||"split"===t&&!l){var m=/./[p],v=n(s,p,""[t],function(t,e,n,r,i){return e.exec===c?h&&!i?{done:!0,value:m.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),g=v[0],y=v[1];r(String.prototype,t,g),i(RegExp.prototype,p,2==e?function(t,e){return y.call(t,this,e)}:function(t){return y.call(t,this)})}}},"230e":function(t,e,n){var r=n("d3f4"),i=n("7726").document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},"23c6":function(t,e,n){var r=n("2d95"),i=n("2b4c")("toStringTag"),o="Arguments"==r(function(){return arguments}()),s=function(t,e){try{return t[e]}catch(n){}};t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=s(e=Object(t),i))?n:o?r(e):"Object"==(a=r(e))&&"function"==typeof e.callee?"Arguments":a}},2621:function(t,e){e.f=Object.getOwnPropertySymbols},"2aba":function(t,e,n){var r=n("7726"),i=n("32e9"),o=n("69a8"),s=n("ca5a")("src"),a=n("fa5b"),c="toString",u=(""+a).split(c);n("8378").inspectSource=function(t){return a.call(t)},(t.exports=function(t,e,n,a){var c="function"==typeof n;c&&(o(n,"name")||i(n,"name",e)),t[e]!==n&&(c&&(o(n,s)||i(n,s,t[e]?""+t[e]:u.join(String(e)))),t===r?t[e]=n:a?t[e]?t[e]=n:i(t,e,n):(delete t[e],i(t,e,n)))})(Function.prototype,c,function(){return"function"==typeof this&&this[s]||a.call(this)})},"2aeb":function(t,e,n){var r=n("cb7c"),i=n("1495"),o=n("e11e"),s=n("613b")("IE_PROTO"),a=function(){},c="prototype",u=function(){var t,e=n("230e")("iframe"),r=o.length,i="<",s=">";e.style.display="none",n("fab2").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(i+"script"+s+"document.F=Object"+i+"/script"+s),t.close(),u=t.F;while(r--)delete u[c][o[r]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(a[c]=r(t),n=new a,a[c]=null,n[s]=t):n=u(),void 0===e?n:i(n,e)}},"2b4c":function(t,e,n){var r=n("5537")("wks"),i=n("ca5a"),o=n("7726").Symbol,s="function"==typeof o,a=t.exports=function(t){return r[t]||(r[t]=s&&o[t]||(s?o:i)("Symbol."+t))};a.store=r},"2d00":function(t,e){t.exports=!1},"2d95":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"2f21":function(t,e,n){"use strict";var r=n("79e5");t.exports=function(t,e){return!!t&&r(function(){e?t.call(null,function(){},1):t.call(null)})}},"32e9":function(t,e,n){var r=n("86cc"),i=n("4630");t.exports=n("9e1e")?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},"38fd":function(t,e,n){var r=n("69a8"),i=n("4bf8"),o=n("613b")("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},"3b2b":function(t,e,n){var r=n("7726"),i=n("5dbc"),o=n("86cc").f,s=n("9093").f,a=n("aae3"),c=n("0bfb"),u=r.RegExp,f=u,l=u.prototype,p=/a/g,h=/a/g,d=new u(p)!==p;if(n("9e1e")&&(!d||n("79e5")(function(){return h[n("2b4c")("match")]=!1,u(p)!=p||u(h)==h||"/a/i"!=u(p,"i")}))){u=function(t,e){var n=this instanceof u,r=a(t),o=void 0===e;return!n&&r&&t.constructor===u&&o?t:i(d?new f(r&&!o?t.source:t,e):f((r=t instanceof u)?t.source:t,r&&o?c.call(t):e),n?this:l,u)};for(var m=function(t){t in u||o(u,t,{configurable:!0,get:function(){return f[t]},set:function(e){f[t]=e}})},v=s(f),g=0;v.length>g;)m(v[g++]);l.constructor=u,u.prototype=l,n("2aba")(r,"RegExp",u)}n("7a56")("RegExp")},"41a0":function(t,e,n){"use strict";var r=n("2aeb"),i=n("4630"),o=n("7f20"),s={};n("32e9")(s,n("2b4c")("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(s,{next:i(1,n)}),o(t,e+" Iterator")}},"456d":function(t,e,n){var r=n("4bf8"),i=n("0d58");n("5eda")("keys",function(){return function(t){return i(r(t))}})},4588:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},4917:function(t,e,n){"use strict";var r=n("cb7c"),i=n("9def"),o=n("0390"),s=n("5f1b");n("214f")("match",1,function(t,e,n,a){return[function(n){var r=t(this),i=void 0==n?void 0:n[e];return void 0!==i?i.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=a(n,t,this);if(e.done)return e.value;var c=r(t),u=String(this);if(!c.global)return s(c,u);var f=c.unicode;c.lastIndex=0;var l,p=[],h=0;while(null!==(l=s(c,u))){var d=String(l[0]);p[h]=d,""===d&&(c.lastIndex=o(u,i(c.lastIndex),f)),h++}return 0===h?null:p}]})},"4bf8":function(t,e,n){var r=n("be13");t.exports=function(t){return Object(r(t))}},"520a":function(t,e,n){"use strict";var r=n("0bfb"),i=RegExp.prototype.exec,o=String.prototype.replace,s=i,a="lastIndex",c=function(){var t=/a/,e=/b*/g;return i.call(t,"a"),i.call(e,"a"),0!==t[a]||0!==e[a]}(),u=void 0!==/()??/.exec("")[1],f=c||u;f&&(s=function(t){var e,n,s,f,l=this;return u&&(n=new RegExp("^"+l.source+"$(?!\\s)",r.call(l))),c&&(e=l[a]),s=i.call(l,t),c&&s&&(l[a]=l.global?s.index+s[0].length:e),u&&s&&s.length>1&&o.call(s[0],n,function(){for(f=1;f<arguments.length-2;f++)void 0===arguments[f]&&(s[f]=void 0)}),s}),t.exports=s},"52a7":function(t,e){e.f={}.propertyIsEnumerable},5537:function(t,e,n){var r=n("8378"),i=n("7726"),o="__core-js_shared__",s=i[o]||(i[o]={});(t.exports=function(t,e){return s[t]||(s[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"55dd":function(t,e,n){"use strict";var r=n("5ca1"),i=n("d8e8"),o=n("4bf8"),s=n("79e5"),a=[].sort,c=[1,2,3];r(r.P+r.F*(s(function(){c.sort(void 0)})||!s(function(){c.sort(null)})||!n("2f21")(a)),"Array",{sort:function(t){return void 0===t?a.call(o(this)):a.call(o(this),i(t))}})},"5ca1":function(t,e,n){var r=n("7726"),i=n("8378"),o=n("32e9"),s=n("2aba"),a=n("9b43"),c="prototype",u=function(t,e,n){var f,l,p,h,d=t&u.F,m=t&u.G,v=t&u.S,g=t&u.P,y=t&u.B,b=m?r:v?r[e]||(r[e]={}):(r[e]||{})[c],x=m?i:i[e]||(i[e]={}),S=x[c]||(x[c]={});for(f in m&&(n=e),n)l=!d&&b&&void 0!==b[f],p=(l?b:n)[f],h=y&&l?a(p,r):g&&"function"==typeof p?a(Function.call,p):p,b&&s(b,f,p,t&u.U),x[f]!=p&&o(x,f,h),g&&S[f]!=p&&(S[f]=p)};r.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},"5dbc":function(t,e,n){var r=n("d3f4"),i=n("8b97").set;t.exports=function(t,e,n){var o,s=e.constructor;return s!==n&&"function"==typeof s&&(o=s.prototype)!==n.prototype&&r(o)&&i&&i(t,o),t}},"5eda":function(t,e,n){var r=n("5ca1"),i=n("8378"),o=n("79e5");t.exports=function(t,e){var n=(i.Object||{})[t]||Object[t],s={};s[t]=e(n),r(r.S+r.F*o(function(){n(1)}),"Object",s)}},"5f1b":function(t,e,n){"use strict";var r=n("23c6"),i=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"===typeof n){var o=n.call(t,e);if("object"!==typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(t))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(t,e)}},"613b":function(t,e,n){var r=n("5537")("keys"),i=n("ca5a");t.exports=function(t){return r[t]||(r[t]=i(t))}},"626a":function(t,e,n){var r=n("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},6821:function(t,e,n){var r=n("626a"),i=n("be13");t.exports=function(t){return r(i(t))}},"69a8":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"6a99":function(t,e,n){var r=n("d3f4");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")}},7333:function(t,e,n){"use strict";var r=n("9e1e"),i=n("0d58"),o=n("2621"),s=n("52a7"),a=n("4bf8"),c=n("626a"),u=Object.assign;t.exports=!u||n("79e5")(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=u({},t)[n]||Object.keys(u({},e)).join("")!=r})?function(t,e){var n=a(t),u=arguments.length,f=1,l=o.f,p=s.f;while(u>f){var h,d=c(arguments[f++]),m=l?i(d).concat(l(d)):i(d),v=m.length,g=0;while(v>g)h=m[g++],r&&!p.call(d,h)||(n[h]=d[h])}return n}:u},7726:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(t,e,n){var r=n("4588"),i=Math.max,o=Math.min;t.exports=function(t,e){return t=r(t),t<0?i(t+e,0):o(t,e)}},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"7a56":function(t,e,n){"use strict";var r=n("7726"),i=n("86cc"),o=n("9e1e"),s=n("2b4c")("species");t.exports=function(t){var e=r[t];o&&e&&!e[s]&&i.f(e,s,{configurable:!0,get:function(){return this}})}},"7f20":function(t,e,n){var r=n("86cc").f,i=n("69a8"),o=n("2b4c")("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},8378:function(t,e){var n=t.exports={version:"2.6.9"};"number"==typeof __e&&(__e=n)},"84f2":function(t,e){t.exports={}},"86cc":function(t,e,n){var r=n("cb7c"),i=n("c69a"),o=n("6a99"),s=Object.defineProperty;e.f=n("9e1e")?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return s(t,e,n)}catch(a){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},"8b97":function(t,e,n){var r=n("d3f4"),i=n("cb7c"),o=function(t,e){if(i(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{r=n("9b43")(Function.call,n("11e9").f(Object.prototype,"__proto__").set,2),r(t,[]),e=!(t instanceof Array)}catch(i){e=!0}return function(t,n){return o(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:o}},9093:function(t,e,n){var r=n("ce10"),i=n("e11e").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},"9b43":function(t,e,n){var r=n("d8e8");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},"9c6c":function(t,e,n){var r=n("2b4c")("unscopables"),i=Array.prototype;void 0==i[r]&&n("32e9")(i,r,{}),t.exports=function(t){i[r][t]=!0}},"9def":function(t,e,n){var r=n("4588"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},"9e1e":function(t,e,n){t.exports=!n("79e5")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},a481:function(t,e,n){"use strict";var r=n("cb7c"),i=n("4bf8"),o=n("9def"),s=n("4588"),a=n("0390"),c=n("5f1b"),u=Math.max,f=Math.min,l=Math.floor,p=/\$([$&`']|\d\d?|<[^>]*>)/g,h=/\$([$&`']|\d\d?)/g,d=function(t){return void 0===t?t:String(t)};n("214f")("replace",2,function(t,e,n,m){return[function(r,i){var o=t(this),s=void 0==r?void 0:r[e];return void 0!==s?s.call(r,o,i):n.call(String(o),r,i)},function(t,e){var i=m(n,t,this,e);if(i.done)return i.value;var l=r(t),p=String(this),h="function"===typeof e;h||(e=String(e));var g=l.global;if(g){var y=l.unicode;l.lastIndex=0}var b=[];while(1){var x=c(l,p);if(null===x)break;if(b.push(x),!g)break;var S=String(x[0]);""===S&&(l.lastIndex=a(p,o(l.lastIndex),y))}for(var w="",T=0,O=0;O<b.length;O++){x=b[O];for(var _=String(x[0]),I=u(f(s(x.index),p.length),0),E=[],C=1;C<x.length;C++)E.push(d(x[C]));var k=x.groups;if(h){var R=[_].concat(E,I,p);void 0!==k&&R.push(k);var N=String(e.apply(void 0,R))}else N=v(_,p,I,E,k,e);I>=T&&(w+=p.slice(T,I)+N,T=I+_.length)}return w+p.slice(T)}];function v(t,e,r,o,s,a){var c=r+t.length,u=o.length,f=h;return void 0!==s&&(s=i(s),f=p),n.call(a,f,function(n,i){var a;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(c);case"<":a=s[i.slice(1,-1)];break;default:var f=+i;if(0===f)return n;if(f>u){var p=l(f/10);return 0===p?n:p<=u?void 0===o[p-1]?i.charAt(1):o[p-1]+i.charAt(1):n}a=o[f-1]}return void 0===a?"":a})}})},aa77:function(t,e,n){var r=n("5ca1"),i=n("be13"),o=n("79e5"),s=n("fdef"),a="["+s+"]",c=" ",u=RegExp("^"+a+a+"*"),f=RegExp(a+a+"*$"),l=function(t,e,n){var i={},a=o(function(){return!!s[t]()||c[t]()!=c}),u=i[t]=a?e(p):s[t];n&&(i[n]=u),r(r.P+r.F*a,"String",i)},p=l.trim=function(t,e){return t=String(i(t)),1&e&&(t=t.replace(u,"")),2&e&&(t=t.replace(f,"")),t};t.exports=l},aab0:function(t,e,n){"use strict";var r=n("bfaf"),i=n.n(r);i.a},aae3:function(t,e,n){var r=n("d3f4"),i=n("2d95"),o=n("2b4c")("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},ac6a:function(t,e,n){for(var r=n("cadf"),i=n("0d58"),o=n("2aba"),s=n("7726"),a=n("32e9"),c=n("84f2"),u=n("2b4c"),f=u("iterator"),l=u("toStringTag"),p=c.Array,h={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},d=i(h),m=0;m<d.length;m++){var v,g=d[m],y=h[g],b=s[g],x=b&&b.prototype;if(x&&(x[f]||a(x,f,p),x[l]||a(x,l,g),c[g]=p,y))for(v in r)x[v]||o(x,v,r[v],!0)}},b0c5:function(t,e,n){"use strict";var r=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},be13:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},bfaf:function(t,e,n){},c366:function(t,e,n){var r=n("6821"),i=n("9def"),o=n("77f1");t.exports=function(t){return function(e,n,s){var a,c=r(e),u=i(c.length),f=o(s,u);if(t&&n!=n){while(u>f)if(a=c[f++],a!=a)return!0}else for(;u>f;f++)if((t||f in c)&&c[f]===n)return t||f||0;return!t&&-1}}},c5f6:function(t,e,n){"use strict";var r=n("7726"),i=n("69a8"),o=n("2d95"),s=n("5dbc"),a=n("6a99"),c=n("79e5"),u=n("9093").f,f=n("11e9").f,l=n("86cc").f,p=n("aa77").trim,h="Number",d=r[h],m=d,v=d.prototype,g=o(n("2aeb")(v))==h,y="trim"in String.prototype,b=function(t){var e=a(t,!1);if("string"==typeof e&&e.length>2){e=y?e.trim():p(e,3);var n,r,i,o=e.charCodeAt(0);if(43===o||45===o){if(n=e.charCodeAt(2),88===n||120===n)return NaN}else if(48===o){switch(e.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+e}for(var s,c=e.slice(2),u=0,f=c.length;u<f;u++)if(s=c.charCodeAt(u),s<48||s>i)return NaN;return parseInt(c,r)}}return+e};if(!d(" 0o1")||!d("0b1")||d("+0x1")){d=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof d&&(g?c(function(){v.valueOf.call(n)}):o(n)!=h)?s(new m(b(e)),n,d):b(e)};for(var x,S=n("9e1e")?u(m):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;S.length>w;w++)i(m,x=S[w])&&!i(d,x)&&l(d,x,f(m,x));d.prototype=v,v.constructor=d,n("2aba")(r,h,d)}},c69a:function(t,e,n){t.exports=!n("9e1e")&&!n("79e5")(function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a})},ca5a:function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},cadf:function(t,e,n){"use strict";var r=n("9c6c"),i=n("d53b"),o=n("84f2"),s=n("6821");t.exports=n("01f9")(Array,"Array",function(t,e){this._t=s(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},cb7c:function(t,e,n){var r=n("d3f4");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},ce10:function(t,e,n){var r=n("69a8"),i=n("6821"),o=n("c366")(!1),s=n("613b")("IE_PROTO");t.exports=function(t,e){var n,a=i(t),c=0,u=[];for(n in a)n!=s&&r(a,n)&&u.push(n);while(e.length>c)r(a,n=e[c++])&&(~o(u,n)||u.push(n));return u}},d3f4:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},d53b:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},e11e:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},f6fd:function(t,e){(function(t){var e="currentScript",n=t.getElementsByTagName("script");e in t||Object.defineProperty(t,e,{get:function(){try{throw new Error}catch(r){var t,e=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(r.stack)||[!1])[1];for(t in n)if(n[t].src==e||"interactive"==n[t].readyState)return n[t];return null}}})})(document)},f751:function(t,e,n){var r=n("5ca1");r(r.S+r.F,"Object",{assign:n("7333")})},fa5b:function(t,e,n){t.exports=n("5537")("native-function-to-string",Function.toString)},fab2:function(t,e,n){var r=n("7726").document;t.exports=r&&r.documentElement},fb15:function(t,e,n){"use strict";var r;(n.r(e),"undefined"!==typeof window)&&(n("f6fd"),(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^\/]+\.js(\?.*)?$/))&&(n.p=r[1]));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{staticClass:"vue__time-picker time-picker"},[n("input",{staticClass:"display-time",class:[t.inputClass,{disabled:t.disabled}],attrs:{type:"text",id:t.id,name:t.name,placeholder:t.placeholder||t.formatString,disabled:t.disabled,readonly:""},domProps:{value:t.inputIsEmpty?null:t.displayTime},on:{click:t.toggleDropdown}}),!t.showDropdown&&t.showClearBtn?n("span",{staticClass:"clear-btn",on:{click:t.clearTime}},[t._v("×")]):t._e(),t.showDropdown?n("div",{staticClass:"time-picker-overlay",on:{click:t.toggleDropdown}}):t._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:t.showDropdown,expression:"showDropdown"}],staticClass:"dropdown",on:{click:function(t){t.stopPropagation()}}},[n("div",{staticClass:"select-list"},[n("ul",{staticClass:"hours"},[n("li",{staticClass:"hint",domProps:{textContent:t._s(t.hourType)}}),t._l(t.hours,function(e,r){return[!t.opts.hideDisabledHours||t.opts.hideDisabledHours&&!t.isDisabledHour(e)?n("li",{key:r,class:{active:t.hour===e},attrs:{disabled:t.isDisabledHour(e)},domProps:{textContent:t._s(e)},on:{click:function(n){return t.select("hour",e)}}}):t._e()]})],2),n("ul",{staticClass:"minutes"},[n("li",{staticClass:"hint",domProps:{textContent:t._s(t.minuteType)}}),t._l(t.minutes,function(e,r){return n("li",{key:r,class:{active:t.minute===e},domProps:{textContent:t._s(e)},on:{click:function(n){return t.select("minute",e)}}})})],2),t.secondType?n("ul",{staticClass:"seconds"},[n("li",{staticClass:"hint",domProps:{textContent:t._s(t.secondType)}}),t._l(t.seconds,function(e,r){return n("li",{key:r,class:{active:t.second===e},domProps:{textContent:t._s(e)},on:{click:function(n){return t.select("second",e)}}})})],2):t._e(),t.apmType?n("ul",{staticClass:"apms"},[n("li",{staticClass:"hint",domProps:{textContent:t._s(t.apmType)}}),t._l(t.apms,function(e,r){return[!t.opts.hideDisabledHours||t.opts.hideDisabledHours&&t.has[e.toLowerCase()]?n("li",{key:r,class:{active:t.apm===e},attrs:{disabled:!t.has[e.toLowerCase()]},domProps:{textContent:t._s(e)},on:{click:function(n){return t.select("apm",e)}}}):t._e()]})],2):t._e()])])])},o=[],s=(n("4917"),n("cadf"),n("456d"),n("55dd"),n("ac6a"),n("3b2b"),n("a481"),n("f751"),n("c5f6"),{HOUR_TOKENS:["HH","H","hh","h","kk","k"],MINUTE_TOKENS:["mm","m"],SECOND_TOKENS:["ss","s"],APM_TOKENS:["A","a"]}),a={format:"HH:mm",hideClearButton:!1,minuteInterval:1,secondInterval:1,hourRange:null,hideDisabledHours:!1},c={name:"VueTimepicker",props:{value:{type:Object,default:function(){}},id:{type:String},name:{type:String},disabled:{type:Boolean,default:!1},format:{type:String},hideClearButton:{type:Boolean,default:!1},minuteInterval:{type:[Number,String]},secondInterval:{type:[Number,String]},hourRange:{type:Array},hideDisabledHours:{type:Boolean,default:!1},inputClass:{type:String},placeholder:{type:String}},data:function(){return{timeValue:{},hours:[],minutes:[],seconds:[],apms:[],showDropdown:!1,hourType:"HH",minuteType:"mm",secondType:"",apmType:"",hour:"",minute:"",second:"",apm:"",fullValues:void 0}},computed:{opts:function(){var t=Object.assign({},a);return this.format&&this.format.length&&(t.format=String(this.format)),this.hideClearButton&&(t.hideClearButton=!0),this.isNumber(this.minuteInterval)&&(t.minuteInterval=+this.minuteInterval),(!t.minuteInterval||t.minuteInterval<1||t.minuteInterval>60)&&(0===t.minuteInterval?t.minuteInterval=60:(t.minuteInterval>60?window.console.warn("'minute-interval' should be less than 60. Current value is ".concat(this.minuteInterval)):t.minuteInterval<1&&window.console.warn("'minute-interval' should be NO less than 1. Current value is ".concat(this.minuteInterval)),t.minuteInterval=1)),this.isNumber(this.secondInterval)&&(t.secondInterval=+this.secondInterval),(!t.secondInterval||t.secondInterval<1||t.secondInterval>60)&&(0===t.secondInterval?t.secondInterval=60:(t.secondInterval>60?window.console.warn("'second-interval' should be less than 60. Current value is ".concat(this.secondInterval)):t.secondInterval<1&&window.console.warn("'second-interval' should be NO less than 1. Current value is ".concat(this.secondInterval)),t.secondInterval=1)),this.hourRange&&Array.isArray(this.hourRange)&&(t.hourRange=JSON.parse(JSON.stringify(this.hourRange))),this.hideDisabledHours&&(t.hideDisabledHours=!0),t},formatString:function(){return this.opts.format||a.format},displayTime:function(){var t=String(this.formatString);return this.hour&&(t=t.replace(new RegExp(this.hourType,"g"),this.hour)),this.minute&&(t=t.replace(new RegExp(this.minuteType,"g"),this.minute)),this.second&&this.secondType&&(t=t.replace(new RegExp(this.secondType,"g"),this.second)),this.apm&&this.apmType&&(t=t.replace(new RegExp(this.apmType,"g"),this.apm)),t},inputIsEmpty:function(){return this.formatString===this.displayTime},showClearBtn:function(){return!this.hideClearButton&&!this.disabled&&!!(this.hour&&""!==this.hour||this.minute&&""!==this.minute)},baseOn12Hours:function(){return"h"===this.hourType||"hh"===this.hourType},hourRangeIn24HrFormat:function(){var t=this;if(this.opts.hourRange&&this.opts.hourRange.length){var e=[];return this.opts.hourRange.forEach(function(n){if(n instanceof Array){n.length>2&&window.console.warn("Nested array within `hour-range` must contain no more than two items. Only the first two items of",n,"will be taking into account.");var r=n[0],i=n[1]||n[0];t.is12hRange(r)&&(r=t.translate12hRange(r)),t.is12hRange(i)&&(i=t.translate12hRange(i));for(var o=+r;o<=+i;o++)-1===e.indexOf(o)&&e.push(o)}else t.is12hRange(n)&&(n=t.translate12hRange(n)),-1===e.indexOf(n)&&e.push(n)}),e.sort(function(t,e){return t-e}),e}return!(!this.opts.hourRange||this.opts.hourRange.length)&&(window.console.log("NOTICE: The `hour-range` array is empty (length === 0)"),[])},restrictedHourRange:function(){if(!this.hourRangeIn24HrFormat)return!1;if(this.baseOn12Hours){var t=this.hourRangeIn24HrFormat.map(function(t){return 12===t?"12p":24===t?"12a":t>12?t%12+"p":t+"a"});return t}return this.hourRangeIn24HrFormat},has:function(){var t={am:!0,pm:!0};if(this.hourRangeIn24HrFormat&&this.hourRangeIn24HrFormat.length){var e=[].concat([],this.hourRangeIn24HrFormat);t.am=e.some(this.hasAm),t.pm=e.some(this.hasPm)}return t}},watch:{"opts.format":function(t){this.renderFormat(t)},"opts.minuteInterval":function(t){this.renderList("minute",t)},"opts.secondInterval":function(t){this.renderList("second",t)},value:function(){this.readValues()},displayTime:function(){this.fillValues()},disabled:function(t){t&&this.showDropdown&&(this.showDropdown=!1)}},methods:{formatValue:function(t,e){switch(t){case"H":case"m":case"s":return String(e);case"HH":case"mm":case"ss":return e<10?"0".concat(e):String(e);case"h":return 0===e?"12":String(e);case"k":return String(e+1);case"hh":return 0===e?"12":e<10?"0".concat(e):String(e);case"kk":return e+1<10?"0".concat(e+1):String(e+1);default:return""}},checkAcceptingType:function(t,e,n){if(!t||!e||!e.length)return"";for(var r=0;r<t.length;r++)if(e.indexOf(t[r])>-1)return t[r];return n||""},renderFormat:function(t){var e=this;t=t||this.opts.format||a.format,this.hourType=this.checkAcceptingType(s.HOUR_TOKENS,t,"HH"),this.minuteType=this.checkAcceptingType(s.MINUTE_TOKENS,t,"mm"),this.secondType=this.checkAcceptingType(s.SECOND_TOKENS,t),this.apmType=this.checkAcceptingType(s.APM_TOKENS,t),this.renderHoursList(),this.renderList("minute"),this.secondType&&this.renderList("second"),this.apmType&&this.renderApmList(),this.$nextTick(function(){e.readValues()})},renderHoursList:function(){for(var t=this.baseOn12Hours?12:24,e=[],n=0;n<t;n++)e.push(this.formatValue(this.hourType,n));this.hours=e},renderList:function(t,e){if("second"===t)e=e||this.opts.secondInterval||a.secondInterval;else{if("minute"!==t)return;e=e||this.opts.minuteInterval||a.minuteInterval}for(var n=[],r=0;r<60;r+=e)"minute"===t?n.push(this.formatValue(this.minuteType,r)):n.push(this.formatValue(this.secondType,r));"minute"===t?this.minutes=n:this.seconds=n},renderApmList:function(){var t=[];this.apmType&&(t="A"===this.apmType?["AM","PM"]:["am","pm"]),this.apms=t},readValues:function(){var t=JSON.parse(JSON.stringify(this.value||{})),e=Object.keys(t);0===e.length?(t[this.hourType]="",t[this.minuteType]="",this.secondType&&(t[this.secondType]=""),this.apmType&&(t[this.apmType]="")):(e.indexOf(this.hourType)>-1&&(this.hour=t[this.hourType]),e.indexOf(this.minuteType)>-1&&(this.minute=t[this.minuteType]),e.indexOf(this.secondType)>-1?this.second=t[this.secondType]:this.second=0,e.indexOf(this.apmType)>-1&&(this.apm=t[this.apmType])),this.timeValue=t},fillValues:function(){var t=this,e={},n=this.hour,r=this.hourType,i=n||0===n?Number(n):"",o=!(!this.baseOn12Hours||!this.apm)&&String(this.apm).toLowerCase();if(s.HOUR_TOKENS.forEach(function(s){var a,c;if(s!==r)switch(s){case"H":case"HH":if(!String(i).length)return void(e[s]="");a=t.baseOn12Hours?"pm"===o?i<12?i+12:i:i%12:i%24,e[s]="HH"===s&&a<10?"0".concat(a):String(a);break;case"k":case"kk":if(!String(i).length)return void(e[s]="");a=t.baseOn12Hours?"pm"===o?i<12?i+12:i:12===i?24:i:0===i?24:i,e[s]="kk"===s&&a<10?"0".concat(a):String(a);break;case"h":case"hh":if(o)a=i,c=o||"am";else{if(!String(i).length)return e[s]="",e.a="",void(e.A="");i>11?(c="pm",a=12===i?12:i%12):(c=t.baseOn12Hours?"":"am",a=i%12===0?12:i)}e[s]="hh"===s&&a<10?"0".concat(a):String(a),e.a=c,e.A=c.toUpperCase();break}else e[s]=n}),this.minute||0===this.minute){var a=Number(this.minute);e.m=String(a),e.mm=a<10?"0".concat(a):String(a)}else e.m="",e.mm="";if(this.second||0===this.second){var c=Number(this.second);e.s=String(c),e.ss=c<10?"0".concat(c):String(c)}else e.s="",e.ss="";this.fullValues=e,this.updateTimeValue(e)},updateTimeValue:function(t){if(t){var e=Object.assign({},t),n=JSON.parse(JSON.stringify(this.timeValue||{})),r={};Object.keys(n).forEach(function(t){r[t]=e[t]||""}),this.$emit("input",JSON.parse(JSON.stringify(r))),this.$emit("change",{data:t})}},is12hRange:function(t){return/^\d{1,2}(a|p|A|P)$/.test(t)},translate12hRange:function(t){var e=t.match(/^(\d{1,2})(a|p|A|P)$/);return 12===+e[1]?+e[1]+("p"===e[2].toLowerCase()?0:12):+e[1]+("p"===e[2].toLowerCase()?12:0)},hasAm:function(t){return t<12||24===t},hasPm:function(t){return t>=12&&t<24},isDisabledHour:function(t){if(this.restrictedHourRange){if(this.baseOn12Hours){if(this.apm&&this.apm.length){var e="am"===this.apm.toLowerCase()?"a":"p";return-1===this.restrictedHourRange.indexOf("".concat(+t).concat(e))}return!1}return-1===this.restrictedHourRange.indexOf(+t)}return!1},forceApmSelection:function(){this.apm&&this.apm.length||(this.has.am?this.apm="A"===this.apmType?"AM":"am":this.has.pm&&(this.apm="A"===this.apmType?"PM":"pm"))},emptyApmSelection:function(){""===this.hour&&""===this.minute&&""===this.second&&(this.apm="")},isNumber:function(t){return!isNaN(parseFloat(t))&&isFinite(t)},toggleDropdown:function(){this.disabled||(this.showDropdown=!this.showDropdown,this.showDropdown?this.$emit("open"):this.$emit("close"),this.restrictedHourRange&&this.baseOn12Hours&&(this.showDropdown?this.forceApmSelection():this.emptyApmSelection()))},select:function(t,e){if("hour"===t){if(this.isDisabledHour(e))return;this.hour=e}else if("minute"===t)this.minute=e;else if("second"===t)this.second=e;else if("apm"===t){if(!this.has[e.toLowerCase()])return;this.apm=e}},clearTime:function(){this.disabled||(this.hour="",this.minute="",this.second="",this.apm="")}},mounted:function(){this.renderFormat()}},u=c;n("aab0");function f(t,e,n,r,i,o,s,a){var c,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),s?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},u._ssrRegister=c):i&&(c=a?function(){i.call(this,this.$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var f=u.render;u.render=function(t,e){return c.call(e),f(t,e)}}else{var l=u.beforeCreate;u.beforeCreate=l?[].concat(l,c):[c]}return{exports:t,options:u}}var l=f(u,i,o,!1,null,null,null),p=l.exports,h=p;e["default"]=h},fdef:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"}})}); | ||
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["VueTimepicker"]=e():t["VueTimepicker"]=e()})("undefined"!==typeof self?self:this,function(){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")}({"01f9":function(t,e,n){"use strict";var r=n("2d00"),i=n("5ca1"),o=n("2aba"),s=n("32e9"),a=n("84f2"),c=n("41a0"),u=n("7f20"),f=n("38fd"),l=n("2b4c")("iterator"),p=!([].keys&&"next"in[].keys()),h="@@iterator",d="keys",m="values",v=function(){return this};t.exports=function(t,e,n,g,y,b,x){c(n,e,g);var S,w,T,O=function(t){if(!p&&t in C)return C[t];switch(t){case d:return function(){return new n(this,t)};case m:return function(){return new n(this,t)}}return function(){return new n(this,t)}},_=e+" Iterator",I=y==m,E=!1,C=t.prototype,k=C[l]||C[h]||y&&C[y],R=k||O(y),N=y?I?O("entries"):R:void 0,A="Array"==e&&C.entries||k;if(A&&(T=f(A.call(new t)),T!==Object.prototype&&T.next&&(u(T,_,!0),r||"function"==typeof T[l]||s(T,l,v))),I&&k&&k.name!==m&&(E=!0,R=function(){return k.call(this)}),r&&!x||!p&&!E&&C[l]||s(C,l,R),a[e]=R,a[_]=v,y)if(S={values:I?R:O(m),keys:b?R:O(d),entries:N},x)for(w in S)w in C||o(C,w,S[w]);else i(i.P+i.F*(p||E),e,S);return S}},"02f4":function(t,e,n){var r=n("4588"),i=n("be13");t.exports=function(t){return function(e,n){var o,s,a=String(i(e)),c=r(n),u=a.length;return c<0||c>=u?t?"":void 0:(o=a.charCodeAt(c),o<55296||o>56319||c+1===u||(s=a.charCodeAt(c+1))<56320||s>57343?t?a.charAt(c):o:t?a.slice(c,c+2):s-56320+(o-55296<<10)+65536)}}},"0390":function(t,e,n){"use strict";var r=n("02f4")(!0);t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},"0bfb":function(t,e,n){"use strict";var r=n("cb7c");t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},"0d58":function(t,e,n){var r=n("ce10"),i=n("e11e");t.exports=Object.keys||function(t){return r(t,i)}},"11e9":function(t,e,n){var r=n("52a7"),i=n("4630"),o=n("6821"),s=n("6a99"),a=n("69a8"),c=n("c69a"),u=Object.getOwnPropertyDescriptor;e.f=n("9e1e")?u:function(t,e){if(t=o(t),e=s(e,!0),c)try{return u(t,e)}catch(n){}if(a(t,e))return i(!r.f.call(t,e),t[e])}},1495:function(t,e,n){var r=n("86cc"),i=n("cb7c"),o=n("0d58");t.exports=n("9e1e")?Object.defineProperties:function(t,e){i(t);var n,s=o(e),a=s.length,c=0;while(a>c)r.f(t,n=s[c++],e[n]);return t}},"214f":function(t,e,n){"use strict";n("b0c5");var r=n("2aba"),i=n("32e9"),o=n("79e5"),s=n("be13"),a=n("2b4c"),c=n("520a"),u=a("species"),f=!o(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),l=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){var p=a(t),h=!o(function(){var e={};return e[p]=function(){return 7},7!=""[t](e)}),d=h?!o(function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[u]=function(){return n}),n[p](""),!e}):void 0;if(!h||!d||"replace"===t&&!f||"split"===t&&!l){var m=/./[p],v=n(s,p,""[t],function(t,e,n,r,i){return e.exec===c?h&&!i?{done:!0,value:m.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),g=v[0],y=v[1];r(String.prototype,t,g),i(RegExp.prototype,p,2==e?function(t,e){return y.call(t,this,e)}:function(t){return y.call(t,this)})}}},"230e":function(t,e,n){var r=n("d3f4"),i=n("7726").document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},"23c6":function(t,e,n){var r=n("2d95"),i=n("2b4c")("toStringTag"),o="Arguments"==r(function(){return arguments}()),s=function(t,e){try{return t[e]}catch(n){}};t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=s(e=Object(t),i))?n:o?r(e):"Object"==(a=r(e))&&"function"==typeof e.callee?"Arguments":a}},2621:function(t,e){e.f=Object.getOwnPropertySymbols},"2aba":function(t,e,n){var r=n("7726"),i=n("32e9"),o=n("69a8"),s=n("ca5a")("src"),a=n("fa5b"),c="toString",u=(""+a).split(c);n("8378").inspectSource=function(t){return a.call(t)},(t.exports=function(t,e,n,a){var c="function"==typeof n;c&&(o(n,"name")||i(n,"name",e)),t[e]!==n&&(c&&(o(n,s)||i(n,s,t[e]?""+t[e]:u.join(String(e)))),t===r?t[e]=n:a?t[e]?t[e]=n:i(t,e,n):(delete t[e],i(t,e,n)))})(Function.prototype,c,function(){return"function"==typeof this&&this[s]||a.call(this)})},"2aeb":function(t,e,n){var r=n("cb7c"),i=n("1495"),o=n("e11e"),s=n("613b")("IE_PROTO"),a=function(){},c="prototype",u=function(){var t,e=n("230e")("iframe"),r=o.length,i="<",s=">";e.style.display="none",n("fab2").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(i+"script"+s+"document.F=Object"+i+"/script"+s),t.close(),u=t.F;while(r--)delete u[c][o[r]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(a[c]=r(t),n=new a,a[c]=null,n[s]=t):n=u(),void 0===e?n:i(n,e)}},"2b4c":function(t,e,n){var r=n("5537")("wks"),i=n("ca5a"),o=n("7726").Symbol,s="function"==typeof o,a=t.exports=function(t){return r[t]||(r[t]=s&&o[t]||(s?o:i)("Symbol."+t))};a.store=r},"2d00":function(t,e){t.exports=!1},"2d95":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"2f21":function(t,e,n){"use strict";var r=n("79e5");t.exports=function(t,e){return!!t&&r(function(){e?t.call(null,function(){},1):t.call(null)})}},"32e9":function(t,e,n){var r=n("86cc"),i=n("4630");t.exports=n("9e1e")?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},"38fd":function(t,e,n){var r=n("69a8"),i=n("4bf8"),o=n("613b")("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},"3b2b":function(t,e,n){var r=n("7726"),i=n("5dbc"),o=n("86cc").f,s=n("9093").f,a=n("aae3"),c=n("0bfb"),u=r.RegExp,f=u,l=u.prototype,p=/a/g,h=/a/g,d=new u(p)!==p;if(n("9e1e")&&(!d||n("79e5")(function(){return h[n("2b4c")("match")]=!1,u(p)!=p||u(h)==h||"/a/i"!=u(p,"i")}))){u=function(t,e){var n=this instanceof u,r=a(t),o=void 0===e;return!n&&r&&t.constructor===u&&o?t:i(d?new f(r&&!o?t.source:t,e):f((r=t instanceof u)?t.source:t,r&&o?c.call(t):e),n?this:l,u)};for(var m=function(t){t in u||o(u,t,{configurable:!0,get:function(){return f[t]},set:function(e){f[t]=e}})},v=s(f),g=0;v.length>g;)m(v[g++]);l.constructor=u,u.prototype=l,n("2aba")(r,"RegExp",u)}n("7a56")("RegExp")},"41a0":function(t,e,n){"use strict";var r=n("2aeb"),i=n("4630"),o=n("7f20"),s={};n("32e9")(s,n("2b4c")("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(s,{next:i(1,n)}),o(t,e+" Iterator")}},"456d":function(t,e,n){var r=n("4bf8"),i=n("0d58");n("5eda")("keys",function(){return function(t){return i(r(t))}})},4588:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},4917:function(t,e,n){"use strict";var r=n("cb7c"),i=n("9def"),o=n("0390"),s=n("5f1b");n("214f")("match",1,function(t,e,n,a){return[function(n){var r=t(this),i=void 0==n?void 0:n[e];return void 0!==i?i.call(n,r):new RegExp(n)[e](String(r))},function(t){var e=a(n,t,this);if(e.done)return e.value;var c=r(t),u=String(this);if(!c.global)return s(c,u);var f=c.unicode;c.lastIndex=0;var l,p=[],h=0;while(null!==(l=s(c,u))){var d=String(l[0]);p[h]=d,""===d&&(c.lastIndex=o(u,i(c.lastIndex),f)),h++}return 0===h?null:p}]})},"4bf8":function(t,e,n){var r=n("be13");t.exports=function(t){return Object(r(t))}},"520a":function(t,e,n){"use strict";var r=n("0bfb"),i=RegExp.prototype.exec,o=String.prototype.replace,s=i,a="lastIndex",c=function(){var t=/a/,e=/b*/g;return i.call(t,"a"),i.call(e,"a"),0!==t[a]||0!==e[a]}(),u=void 0!==/()??/.exec("")[1],f=c||u;f&&(s=function(t){var e,n,s,f,l=this;return u&&(n=new RegExp("^"+l.source+"$(?!\\s)",r.call(l))),c&&(e=l[a]),s=i.call(l,t),c&&s&&(l[a]=l.global?s.index+s[0].length:e),u&&s&&s.length>1&&o.call(s[0],n,function(){for(f=1;f<arguments.length-2;f++)void 0===arguments[f]&&(s[f]=void 0)}),s}),t.exports=s},"52a7":function(t,e){e.f={}.propertyIsEnumerable},5537:function(t,e,n){var r=n("8378"),i=n("7726"),o="__core-js_shared__",s=i[o]||(i[o]={});(t.exports=function(t,e){return s[t]||(s[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"55dd":function(t,e,n){"use strict";var r=n("5ca1"),i=n("d8e8"),o=n("4bf8"),s=n("79e5"),a=[].sort,c=[1,2,3];r(r.P+r.F*(s(function(){c.sort(void 0)})||!s(function(){c.sort(null)})||!n("2f21")(a)),"Array",{sort:function(t){return void 0===t?a.call(o(this)):a.call(o(this),i(t))}})},"5ca1":function(t,e,n){var r=n("7726"),i=n("8378"),o=n("32e9"),s=n("2aba"),a=n("9b43"),c="prototype",u=function(t,e,n){var f,l,p,h,d=t&u.F,m=t&u.G,v=t&u.S,g=t&u.P,y=t&u.B,b=m?r:v?r[e]||(r[e]={}):(r[e]||{})[c],x=m?i:i[e]||(i[e]={}),S=x[c]||(x[c]={});for(f in m&&(n=e),n)l=!d&&b&&void 0!==b[f],p=(l?b:n)[f],h=y&&l?a(p,r):g&&"function"==typeof p?a(Function.call,p):p,b&&s(b,f,p,t&u.U),x[f]!=p&&o(x,f,h),g&&S[f]!=p&&(S[f]=p)};r.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},"5dbc":function(t,e,n){var r=n("d3f4"),i=n("8b97").set;t.exports=function(t,e,n){var o,s=e.constructor;return s!==n&&"function"==typeof s&&(o=s.prototype)!==n.prototype&&r(o)&&i&&i(t,o),t}},"5eda":function(t,e,n){var r=n("5ca1"),i=n("8378"),o=n("79e5");t.exports=function(t,e){var n=(i.Object||{})[t]||Object[t],s={};s[t]=e(n),r(r.S+r.F*o(function(){n(1)}),"Object",s)}},"5f1b":function(t,e,n){"use strict";var r=n("23c6"),i=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"===typeof n){var o=n.call(t,e);if("object"!==typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(t))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(t,e)}},"613b":function(t,e,n){var r=n("5537")("keys"),i=n("ca5a");t.exports=function(t){return r[t]||(r[t]=i(t))}},"626a":function(t,e,n){var r=n("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},6821:function(t,e,n){var r=n("626a"),i=n("be13");t.exports=function(t){return r(i(t))}},"69a8":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"6a99":function(t,e,n){var r=n("d3f4");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")}},7333:function(t,e,n){"use strict";var r=n("9e1e"),i=n("0d58"),o=n("2621"),s=n("52a7"),a=n("4bf8"),c=n("626a"),u=Object.assign;t.exports=!u||n("79e5")(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=u({},t)[n]||Object.keys(u({},e)).join("")!=r})?function(t,e){var n=a(t),u=arguments.length,f=1,l=o.f,p=s.f;while(u>f){var h,d=c(arguments[f++]),m=l?i(d).concat(l(d)):i(d),v=m.length,g=0;while(v>g)h=m[g++],r&&!p.call(d,h)||(n[h]=d[h])}return n}:u},7726:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(t,e,n){var r=n("4588"),i=Math.max,o=Math.min;t.exports=function(t,e){return t=r(t),t<0?i(t+e,0):o(t,e)}},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"7a56":function(t,e,n){"use strict";var r=n("7726"),i=n("86cc"),o=n("9e1e"),s=n("2b4c")("species");t.exports=function(t){var e=r[t];o&&e&&!e[s]&&i.f(e,s,{configurable:!0,get:function(){return this}})}},"7f20":function(t,e,n){var r=n("86cc").f,i=n("69a8"),o=n("2b4c")("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},8378:function(t,e){var n=t.exports={version:"2.6.9"};"number"==typeof __e&&(__e=n)},"84f2":function(t,e){t.exports={}},"86cc":function(t,e,n){var r=n("cb7c"),i=n("c69a"),o=n("6a99"),s=Object.defineProperty;e.f=n("9e1e")?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return s(t,e,n)}catch(a){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},"8b97":function(t,e,n){var r=n("d3f4"),i=n("cb7c"),o=function(t,e){if(i(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{r=n("9b43")(Function.call,n("11e9").f(Object.prototype,"__proto__").set,2),r(t,[]),e=!(t instanceof Array)}catch(i){e=!0}return function(t,n){return o(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:o}},9093:function(t,e,n){var r=n("ce10"),i=n("e11e").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},"9b43":function(t,e,n){var r=n("d8e8");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},"9c6c":function(t,e,n){var r=n("2b4c")("unscopables"),i=Array.prototype;void 0==i[r]&&n("32e9")(i,r,{}),t.exports=function(t){i[r][t]=!0}},"9def":function(t,e,n){var r=n("4588"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},"9e1e":function(t,e,n){t.exports=!n("79e5")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},a481:function(t,e,n){"use strict";var r=n("cb7c"),i=n("4bf8"),o=n("9def"),s=n("4588"),a=n("0390"),c=n("5f1b"),u=Math.max,f=Math.min,l=Math.floor,p=/\$([$&`']|\d\d?|<[^>]*>)/g,h=/\$([$&`']|\d\d?)/g,d=function(t){return void 0===t?t:String(t)};n("214f")("replace",2,function(t,e,n,m){return[function(r,i){var o=t(this),s=void 0==r?void 0:r[e];return void 0!==s?s.call(r,o,i):n.call(String(o),r,i)},function(t,e){var i=m(n,t,this,e);if(i.done)return i.value;var l=r(t),p=String(this),h="function"===typeof e;h||(e=String(e));var g=l.global;if(g){var y=l.unicode;l.lastIndex=0}var b=[];while(1){var x=c(l,p);if(null===x)break;if(b.push(x),!g)break;var S=String(x[0]);""===S&&(l.lastIndex=a(p,o(l.lastIndex),y))}for(var w="",T=0,O=0;O<b.length;O++){x=b[O];for(var _=String(x[0]),I=u(f(s(x.index),p.length),0),E=[],C=1;C<x.length;C++)E.push(d(x[C]));var k=x.groups;if(h){var R=[_].concat(E,I,p);void 0!==k&&R.push(k);var N=String(e.apply(void 0,R))}else N=v(_,p,I,E,k,e);I>=T&&(w+=p.slice(T,I)+N,T=I+_.length)}return w+p.slice(T)}];function v(t,e,r,o,s,a){var c=r+t.length,u=o.length,f=h;return void 0!==s&&(s=i(s),f=p),n.call(a,f,function(n,i){var a;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(c);case"<":a=s[i.slice(1,-1)];break;default:var f=+i;if(0===f)return n;if(f>u){var p=l(f/10);return 0===p?n:p<=u?void 0===o[p-1]?i.charAt(1):o[p-1]+i.charAt(1):n}a=o[f-1]}return void 0===a?"":a})}})},aa77:function(t,e,n){var r=n("5ca1"),i=n("be13"),o=n("79e5"),s=n("fdef"),a="["+s+"]",c=" ",u=RegExp("^"+a+a+"*"),f=RegExp(a+a+"*$"),l=function(t,e,n){var i={},a=o(function(){return!!s[t]()||c[t]()!=c}),u=i[t]=a?e(p):s[t];n&&(i[n]=u),r(r.P+r.F*a,"String",i)},p=l.trim=function(t,e){return t=String(i(t)),1&e&&(t=t.replace(u,"")),2&e&&(t=t.replace(f,"")),t};t.exports=l},aab0:function(t,e,n){"use strict";var r=n("bfaf"),i=n.n(r);i.a},aae3:function(t,e,n){var r=n("d3f4"),i=n("2d95"),o=n("2b4c")("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},ac6a:function(t,e,n){for(var r=n("cadf"),i=n("0d58"),o=n("2aba"),s=n("7726"),a=n("32e9"),c=n("84f2"),u=n("2b4c"),f=u("iterator"),l=u("toStringTag"),p=c.Array,h={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},d=i(h),m=0;m<d.length;m++){var v,g=d[m],y=h[g],b=s[g],x=b&&b.prototype;if(x&&(x[f]||a(x,f,p),x[l]||a(x,l,g),c[g]=p,y))for(v in r)x[v]||o(x,v,r[v],!0)}},b0c5:function(t,e,n){"use strict";var r=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},be13:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},bfaf:function(t,e,n){},c366:function(t,e,n){var r=n("6821"),i=n("9def"),o=n("77f1");t.exports=function(t){return function(e,n,s){var a,c=r(e),u=i(c.length),f=o(s,u);if(t&&n!=n){while(u>f)if(a=c[f++],a!=a)return!0}else for(;u>f;f++)if((t||f in c)&&c[f]===n)return t||f||0;return!t&&-1}}},c5f6:function(t,e,n){"use strict";var r=n("7726"),i=n("69a8"),o=n("2d95"),s=n("5dbc"),a=n("6a99"),c=n("79e5"),u=n("9093").f,f=n("11e9").f,l=n("86cc").f,p=n("aa77").trim,h="Number",d=r[h],m=d,v=d.prototype,g=o(n("2aeb")(v))==h,y="trim"in String.prototype,b=function(t){var e=a(t,!1);if("string"==typeof e&&e.length>2){e=y?e.trim():p(e,3);var n,r,i,o=e.charCodeAt(0);if(43===o||45===o){if(n=e.charCodeAt(2),88===n||120===n)return NaN}else if(48===o){switch(e.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+e}for(var s,c=e.slice(2),u=0,f=c.length;u<f;u++)if(s=c.charCodeAt(u),s<48||s>i)return NaN;return parseInt(c,r)}}return+e};if(!d(" 0o1")||!d("0b1")||d("+0x1")){d=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof d&&(g?c(function(){v.valueOf.call(n)}):o(n)!=h)?s(new m(b(e)),n,d):b(e)};for(var x,S=n("9e1e")?u(m):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;S.length>w;w++)i(m,x=S[w])&&!i(d,x)&&l(d,x,f(m,x));d.prototype=v,v.constructor=d,n("2aba")(r,h,d)}},c69a:function(t,e,n){t.exports=!n("9e1e")&&!n("79e5")(function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a})},ca5a:function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},cadf:function(t,e,n){"use strict";var r=n("9c6c"),i=n("d53b"),o=n("84f2"),s=n("6821");t.exports=n("01f9")(Array,"Array",function(t,e){this._t=s(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},cb7c:function(t,e,n){var r=n("d3f4");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},ce10:function(t,e,n){var r=n("69a8"),i=n("6821"),o=n("c366")(!1),s=n("613b")("IE_PROTO");t.exports=function(t,e){var n,a=i(t),c=0,u=[];for(n in a)n!=s&&r(a,n)&&u.push(n);while(e.length>c)r(a,n=e[c++])&&(~o(u,n)||u.push(n));return u}},d3f4:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},d53b:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},e11e:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},f6fd:function(t,e){(function(t){var e="currentScript",n=t.getElementsByTagName("script");e in t||Object.defineProperty(t,e,{get:function(){try{throw new Error}catch(r){var t,e=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(r.stack)||[!1])[1];for(t in n)if(n[t].src==e||"interactive"==n[t].readyState)return n[t];return null}}})})(document)},f751:function(t,e,n){var r=n("5ca1");r(r.S+r.F,"Object",{assign:n("7333")})},fa5b:function(t,e,n){t.exports=n("5537")("native-function-to-string",Function.toString)},fab2:function(t,e,n){var r=n("7726").document;t.exports=r&&r.documentElement},fb15:function(t,e,n){"use strict";var r;(n.r(e),"undefined"!==typeof window)&&(n("f6fd"),(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^\/]+\.js(\?.*)?$/))&&(n.p=r[1]));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{staticClass:"vue__time-picker time-picker"},[n("input",{staticClass:"display-time",class:[t.inputClass,{disabled:t.disabled}],attrs:{type:"text",id:t.id,name:t.name,placeholder:t.placeholder||t.formatString,disabled:t.disabled,readonly:""},domProps:{value:t.inputIsEmpty?null:t.displayTime},on:{click:t.toggleDropdown}}),!t.showDropdown&&t.showClearBtn?n("span",{staticClass:"clear-btn",on:{click:t.clearTime}},[t._v("×")]):t._e(),t.showDropdown?n("div",{staticClass:"time-picker-overlay",on:{click:t.toggleDropdown}}):t._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:t.showDropdown,expression:"showDropdown"}],staticClass:"dropdown",on:{click:function(t){t.stopPropagation()}}},[n("div",{staticClass:"select-list"},[n("ul",{staticClass:"hours"},[n("li",{staticClass:"hint",domProps:{textContent:t._s(t.hourType)}}),t._l(t.hours,function(e,r){return[!t.opts.hideDisabledHours||t.opts.hideDisabledHours&&!t.isDisabledHour(e)?n("li",{key:r,class:{active:t.hour===e},attrs:{disabled:t.isDisabledHour(e)},domProps:{textContent:t._s(e)},on:{click:function(n){return t.select("hour",e)}}}):t._e()]})],2),n("ul",{staticClass:"minutes"},[n("li",{staticClass:"hint",domProps:{textContent:t._s(t.minuteType)}}),t._l(t.minutes,function(e,r){return n("li",{key:r,class:{active:t.minute===e},domProps:{textContent:t._s(e)},on:{click:function(n){return t.select("minute",e)}}})})],2),t.secondType?n("ul",{staticClass:"seconds"},[n("li",{staticClass:"hint",domProps:{textContent:t._s(t.secondType)}}),t._l(t.seconds,function(e,r){return n("li",{key:r,class:{active:t.second===e},domProps:{textContent:t._s(e)},on:{click:function(n){return t.select("second",e)}}})})],2):t._e(),t.apmType?n("ul",{staticClass:"apms"},[n("li",{staticClass:"hint",domProps:{textContent:t._s(t.apmType)}}),t._l(t.apms,function(e,r){return[!t.opts.hideDisabledHours||t.opts.hideDisabledHours&&t.has[e.toLowerCase()]?n("li",{key:r,class:{active:t.apm===e},attrs:{disabled:!t.has[e.toLowerCase()]},domProps:{textContent:t._s(e)},on:{click:function(n){return t.select("apm",e)}}}):t._e()]})],2):t._e()])])])},o=[],s=(n("4917"),n("cadf"),n("456d"),n("55dd"),n("ac6a"),n("3b2b"),n("a481"),n("f751"),n("c5f6"),{HOUR_TOKENS:["HH","H","hh","h","kk","k"],MINUTE_TOKENS:["mm","m"],SECOND_TOKENS:["ss","s"],APM_TOKENS:["A","a"]}),a={format:"HH:mm",hideClearButton:!1,minuteInterval:1,secondInterval:1,hourRange:null,hideDisabledHours:!1},c={name:"VueTimepicker",props:{value:{type:Object,default:function(){}},id:{type:String},name:{type:String},disabled:{type:Boolean,default:!1},format:{type:String},hideClearButton:{type:Boolean,default:!1},minuteInterval:{type:[Number,String]},secondInterval:{type:[Number,String]},hourRange:{type:Array},hideDisabledHours:{type:Boolean,default:!1},inputClass:{type:String},placeholder:{type:String}},data:function(){return{timeValue:{},hours:[],minutes:[],seconds:[],apms:[],showDropdown:!1,hourType:"HH",minuteType:"mm",secondType:"",apmType:"",hour:"",minute:"",second:"",apm:"",fullValues:void 0}},computed:{opts:function(){var t=Object.assign({},a);return this.format&&this.format.length&&(t.format=String(this.format)),this.hideClearButton&&(t.hideClearButton=!0),this.isNumber(this.minuteInterval)&&(t.minuteInterval=+this.minuteInterval),(!t.minuteInterval||t.minuteInterval<1||t.minuteInterval>60)&&(0===t.minuteInterval?t.minuteInterval=60:(t.minuteInterval>60?window.console.warn("'minute-interval' should be less than 60. Current value is ".concat(this.minuteInterval)):t.minuteInterval<1&&window.console.warn("'minute-interval' should be NO less than 1. Current value is ".concat(this.minuteInterval)),t.minuteInterval=1)),this.isNumber(this.secondInterval)&&(t.secondInterval=+this.secondInterval),(!t.secondInterval||t.secondInterval<1||t.secondInterval>60)&&(0===t.secondInterval?t.secondInterval=60:(t.secondInterval>60?window.console.warn("'second-interval' should be less than 60. Current value is ".concat(this.secondInterval)):t.secondInterval<1&&window.console.warn("'second-interval' should be NO less than 1. Current value is ".concat(this.secondInterval)),t.secondInterval=1)),this.hourRange&&Array.isArray(this.hourRange)&&(t.hourRange=JSON.parse(JSON.stringify(this.hourRange))),this.hideDisabledHours&&(t.hideDisabledHours=!0),t},formatString:function(){return this.opts.format||a.format},displayTime:function(){var t=String(this.formatString);return this.hour&&(t=t.replace(new RegExp(this.hourType,"g"),this.hour)),this.minute&&(t=t.replace(new RegExp(this.minuteType,"g"),this.minute)),this.second&&this.secondType&&(t=t.replace(new RegExp(this.secondType,"g"),this.second)),this.apm&&this.apmType&&(t=t.replace(new RegExp(this.apmType,"g"),this.apm)),t},inputIsEmpty:function(){return this.formatString===this.displayTime},showClearBtn:function(){return!this.hideClearButton&&!this.disabled&&!!(this.hour&&""!==this.hour||this.minute&&""!==this.minute)},baseOn12Hours:function(){return"h"===this.hourType||"hh"===this.hourType},hourRangeIn24HrFormat:function(){var t=this;if(this.opts.hourRange&&this.opts.hourRange.length){var e=[];return this.opts.hourRange.forEach(function(n){if(n instanceof Array){n.length>2&&window.console.warn("Nested array within `hour-range` must contain no more than two items. Only the first two items of",n,"will be taking into account.");var r=n[0],i=n[1]||n[0];t.is12hRange(r)&&(r=t.translate12hRange(r)),t.is12hRange(i)&&(i=t.translate12hRange(i));for(var o=+r;o<=+i;o++)-1===e.indexOf(o)&&e.push(o)}else t.is12hRange(n)&&(n=t.translate12hRange(n)),-1===e.indexOf(n)&&e.push(n)}),e.sort(function(t,e){return t-e}),e}return!(!this.opts.hourRange||this.opts.hourRange.length)&&(window.console.log("NOTICE: The `hour-range` array is empty (length === 0)"),[])},restrictedHourRange:function(){if(!this.hourRangeIn24HrFormat)return!1;if(this.baseOn12Hours){var t=this.hourRangeIn24HrFormat.map(function(t){return 12===t?"12p":24===t?"12a":t>12?t%12+"p":t+"a"});return t}return this.hourRangeIn24HrFormat},has:function(){var t={am:!0,pm:!0};if(this.hourRangeIn24HrFormat&&this.hourRangeIn24HrFormat.length){var e=[].concat([],this.hourRangeIn24HrFormat);t.am=e.some(this.hasAm),t.pm=e.some(this.hasPm)}return t}},watch:{"opts.format":function(t){this.renderFormat(t)},"opts.minuteInterval":function(t){this.renderList("minute",t)},"opts.secondInterval":function(t){this.renderList("second",t)},value:{deep:!0,handler:function(){this.readValues()}},displayTime:function(){this.fillValues()},disabled:function(t){t&&this.showDropdown&&(this.showDropdown=!1)}},methods:{formatValue:function(t,e){switch(t){case"H":case"m":case"s":return String(e);case"HH":case"mm":case"ss":return e<10?"0".concat(e):String(e);case"h":return 0===e?"12":String(e);case"k":return String(e+1);case"hh":return 0===e?"12":e<10?"0".concat(e):String(e);case"kk":return e+1<10?"0".concat(e+1):String(e+1);default:return""}},checkAcceptingType:function(t,e,n){if(!t||!e||!e.length)return"";for(var r=0;r<t.length;r++)if(e.indexOf(t[r])>-1)return t[r];return n||""},renderFormat:function(t){var e=this;t=t||this.opts.format||a.format,this.hourType=this.checkAcceptingType(s.HOUR_TOKENS,t,"HH"),this.minuteType=this.checkAcceptingType(s.MINUTE_TOKENS,t,"mm"),this.secondType=this.checkAcceptingType(s.SECOND_TOKENS,t),this.apmType=this.checkAcceptingType(s.APM_TOKENS,t),this.renderHoursList(),this.renderList("minute"),this.secondType&&this.renderList("second"),this.apmType&&this.renderApmList(),this.$nextTick(function(){e.readValues()})},renderHoursList:function(){for(var t=this.baseOn12Hours?12:24,e=[],n=0;n<t;n++)e.push(this.formatValue(this.hourType,n));this.hours=e},renderList:function(t,e){if("second"===t)e=e||this.opts.secondInterval||a.secondInterval;else{if("minute"!==t)return;e=e||this.opts.minuteInterval||a.minuteInterval}for(var n=[],r=0;r<60;r+=e)"minute"===t?n.push(this.formatValue(this.minuteType,r)):n.push(this.formatValue(this.secondType,r));"minute"===t?this.minutes=n:this.seconds=n},renderApmList:function(){var t=[];this.apmType&&(t="A"===this.apmType?["AM","PM"]:["am","pm"]),this.apms=t},readValues:function(){var t=JSON.parse(JSON.stringify(this.value||{})),e=Object.keys(t);0===e.length?(t[this.hourType]="",t[this.minuteType]="",this.secondType&&(t[this.secondType]=""),this.apmType&&(t[this.apmType]="")):(e.indexOf(this.hourType)>-1&&(this.hour=t[this.hourType]),e.indexOf(this.minuteType)>-1&&(this.minute=t[this.minuteType]),e.indexOf(this.secondType)>-1?this.second=t[this.secondType]:this.second=0,e.indexOf(this.apmType)>-1&&(this.apm=t[this.apmType])),this.timeValue=t},fillValues:function(){var t=this,e={},n=this.hour,r=this.hourType,i=n||0===n?Number(n):"",o=!(!this.baseOn12Hours||!this.apm)&&String(this.apm).toLowerCase();if(s.HOUR_TOKENS.forEach(function(s){var a,c;if(s!==r)switch(s){case"H":case"HH":if(!String(i).length)return void(e[s]="");a=t.baseOn12Hours?"pm"===o?i<12?i+12:i:i%12:i%24,e[s]="HH"===s&&a<10?"0".concat(a):String(a);break;case"k":case"kk":if(!String(i).length)return void(e[s]="");a=t.baseOn12Hours?"pm"===o?i<12?i+12:i:12===i?24:i:0===i?24:i,e[s]="kk"===s&&a<10?"0".concat(a):String(a);break;case"h":case"hh":if(o)a=i,c=o||"am";else{if(!String(i).length)return e[s]="",e.a="",void(e.A="");i>11?(c="pm",a=12===i?12:i%12):(c=t.baseOn12Hours?"":"am",a=i%12===0?12:i)}e[s]="hh"===s&&a<10?"0".concat(a):String(a),e.a=c,e.A=c.toUpperCase();break}else e[s]=n}),this.minute||0===this.minute){var a=Number(this.minute);e.m=String(a),e.mm=a<10?"0".concat(a):String(a)}else e.m="",e.mm="";if(this.second||0===this.second){var c=Number(this.second);e.s=String(c),e.ss=c<10?"0".concat(c):String(c)}else e.s="",e.ss="";this.fullValues=e,this.updateTimeValue(e)},updateTimeValue:function(t){if(t){var e=Object.assign({},t),n=JSON.parse(JSON.stringify(this.timeValue||{})),r={};Object.keys(n).forEach(function(t){r[t]=e[t]||""}),this.$emit("input",JSON.parse(JSON.stringify(r))),this.$emit("change",{data:t,displayTime:String(this.displayTime)})}},is12hRange:function(t){return/^\d{1,2}(a|p|A|P)$/.test(t)},translate12hRange:function(t){var e=t.match(/^(\d{1,2})(a|p|A|P)$/);return 12===+e[1]?+e[1]+("p"===e[2].toLowerCase()?0:12):+e[1]+("p"===e[2].toLowerCase()?12:0)},hasAm:function(t){return t<12||24===t},hasPm:function(t){return t>=12&&t<24},isDisabledHour:function(t){if(this.restrictedHourRange){if(this.baseOn12Hours){if(this.apm&&this.apm.length){var e="am"===this.apm.toLowerCase()?"a":"p";return-1===this.restrictedHourRange.indexOf("".concat(+t).concat(e))}return!1}return-1===this.restrictedHourRange.indexOf(+t)}return!1},forceApmSelection:function(){this.apm&&this.apm.length||(this.has.am?this.apm="A"===this.apmType?"AM":"am":this.has.pm&&(this.apm="A"===this.apmType?"PM":"pm"))},emptyApmSelection:function(){""===this.hour&&""===this.minute&&""===this.second&&(this.apm="")},isNumber:function(t){return!isNaN(parseFloat(t))&&isFinite(t)},toggleDropdown:function(){this.disabled||(this.showDropdown=!this.showDropdown,this.showDropdown?this.$emit("open"):this.$emit("close"),this.restrictedHourRange&&this.baseOn12Hours&&(this.showDropdown?this.forceApmSelection():this.emptyApmSelection()))},select:function(t,e){if("hour"===t){if(this.isDisabledHour(e))return;this.hour=e}else if("minute"===t)this.minute=e;else if("second"===t)this.second=e;else if("apm"===t){if(!this.has[e.toLowerCase()])return;this.apm=e}},clearTime:function(){this.disabled||(this.hour="",this.minute="",this.second="",this.apm="")}},mounted:function(){this.renderFormat()}},u=c;n("aab0");function f(t,e,n,r,i,o,s,a){var c,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),s?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},u._ssrRegister=c):i&&(c=a?function(){i.call(this,this.$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var f=u.render;u.render=function(t,e){return c.call(e),f(t,e)}}else{var l=u.beforeCreate;u.beforeCreate=l?[].concat(l,c):[c]}return{exports:t,options:u}}var l=f(u,i,o,!1,null,null,null),p=l.exports,h=p;e["default"]=h},fdef:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"}})}); | ||
//# sourceMappingURL=VueTimepicker.umd.min.js.map |
@@ -0,1 +1,6 @@ | ||
# Table of Contents | ||
- [Migrating from Vue 1.x vue-timepicker](https://github.com/phoenixwong/vue2-timepicker/blob/master/MIGRATION.md#migrating-from-vue-1x-vue-timepicker) | ||
- [Migrating from Bower to Yarn or NPM](https://github.com/phoenixwong/vue2-timepicker/blob/master/MIGRATION.md#migrating-from-bower-to-yarn-or-npm) | ||
# Migrating from Vue 1.x vue-timepicker | ||
@@ -123,1 +128,9 @@ | ||
There will be **no** standalone ES5 script in the 2.x version. | ||
--- | ||
# Migrating from Bower to Yarn or NPM | ||
Because [Bower](https://bower.io/) itself stopped maintaining since 2017, VueTimepicker drops support for Bower from version `0.2.0+`. | ||
Please check Bower's official guidelines for [How to migrate away from Bower?](https://bower.io/blog/2017/how-to-migrate-away-from-bower/) |
{ | ||
"name": "vue2-timepicker", | ||
"version": "0.2.1", | ||
"version": "0.2.2-rc.0", | ||
"description": "A dropdown time picker (hour|minute|second) for Vue 2.x, with flexible time format support", | ||
@@ -11,4 +11,9 @@ "scripts": { | ||
}, | ||
"main": "src/index.js", | ||
"main": "dist/VueTimepicker.umd.js", | ||
"module": "dist/VueTimepicker.common.js", | ||
"unpkg": "dist/VueTimepicker.umd.min.js", | ||
"css": "dist/VueTimepicker.css", | ||
"browser": { | ||
"./sfc": "src/vue-timepicker.vue" | ||
}, | ||
"repository": { | ||
@@ -45,3 +50,2 @@ "type": "git", | ||
"*.json", | ||
"*.js", | ||
"*.md" | ||
@@ -48,0 +52,0 @@ ], |
119
README.md
@@ -1,3 +0,8 @@ | ||
# Vue2 Time Picker ![GitHub package.json version](https://img.shields.io/github/package-json/v/phoenixwong/vue2-timepicker?color=success&style=flat-square) ![npm](https://img.shields.io/npm/v/vue2-timepicker?style=flat-square) ![GitHub release](https://img.shields.io/github/release/phoenixwong/vue2-timepicker?label=github&style=flat-square) | ||
# Vue2 Timepicker | ||
![GitHub version](https://img.shields.io/github/package-json/v/phoenixwong/vue2-timepicker?color=success&style=flat-square) | ||
![npm version](https://img.shields.io/npm/v/vue2-timepicker?style=flat-square) | ||
![GitHub release](https://img.shields.io/github/release/phoenixwong/vue2-timepicker?label=github&style=flat-square) | ||
![npm downloads](https://img.shields.io/npm/dm/vue2-timepicker?style=flat-square) | ||
--- | ||
@@ -17,12 +22,14 @@ | ||
Migrating from the Vue 1.x version? Please check [MIGRATION.md](https://github.com/phoenixwong/vue2-timepicker/blob/master/MIGRATION.md) for basic guidelines. | ||
Please check [MIGRATION.md](https://github.com/phoenixwong/vue2-timepicker/blob/master/MIGRATION.md) for basic guidelines if you are about to: | ||
- Migrate from the Vue 1.x version **[vue-time-picker](https://github.com/phoenixwong/vue-timepicker)** | ||
- Migrate from Bower to Yarn or NPM (Vue2 Timepicker `v0.1.x` -> `v0.2.x+`) | ||
## Dependencies | ||
[Vue.js](http://vuejs.org/) v2.6.5+ | ||
[Vue.js](http://vuejs.org/) ![npm peer dependency version](https://img.shields.io/npm/dependency-version/vue2-timepicker/peer/vue?style=flat-square) | ||
## Installation | ||
Through YARN or NPM | ||
```bash | ||
@@ -36,16 +43,29 @@ yarn add vue2-timepicker | ||
> NOTE: We stop Bower support from `0.2.0+`, please check [MIGRATION.md](https://github.com/phoenixwong/vue2-timepicker/blob/master/MIGRATION.md#migrating-from-bower-to-yarn-or-npm) for migration guidelines. | ||
## Get Started | ||
**Step 1:** Import VueTimepicker | ||
### **Step 1:** Import VueTimepicker | ||
**A:** Include the single file component (Recommended) | ||
**Option A:** Import component JS and CSS | ||
```javascript | ||
// Import the *.vue file (CSS included) | ||
// Main JS (in UMD format) | ||
import VueTimepicker from 'vue2-timepicker' | ||
// CSS | ||
import 'vue2-timepicker/dist/VueTimepicker.css' | ||
``` | ||
or, **B:** Include distribution files base on your needs | ||
**Option B:** Import the single file component for SSR Usage | ||
```javascript | ||
// Import the *.vue file (CSS included) | ||
// Note the `/sfc` suffix here | ||
import VueTimepicker from 'vue2-timepicker/sfc' | ||
``` | ||
**Option C:** Choose any bundle version base on your needs | ||
```javascript | ||
// JAVASCRIPT | ||
@@ -61,5 +81,8 @@ // - commonJS | ||
import 'vue2-timepicker/dist/VueTimepicker.css' | ||
// *.vue (with CSS) | ||
import VueTimepicker from 'vue2-timepicker/src/vue-timepicker.vue' | ||
``` | ||
**Step 2**: Include VueTimepicker in your component | ||
### **Step 2**: Include VueTimepicker in your component | ||
@@ -73,4 +96,6 @@ ```javascript | ||
**Step 3**: Then, you can introduce the `vue-timepicker` tag anywhere you like in your component's template | ||
### **Step 3**: Introduce `vue-timepicker` in template | ||
Then, you can introduce the `vue-timepicker` tag anywhere you like in your component's template | ||
```html | ||
@@ -80,5 +105,5 @@ <vue-timepicker></vue-timepicker> | ||
## Usage | ||
## Basic Usage | ||
### Basic Usage | ||
### Base | ||
@@ -199,3 +224,3 @@ ```html | ||
console.log(eventData) | ||
// -> {data: {HH:..., mm:... }} | ||
// -> {data: {HH:..., mm:... }, displayTime: HH:mm} | ||
} | ||
@@ -206,3 +231,3 @@ | ||
console.log(eventData) | ||
// -> {data: {HH:..., mm:... }} | ||
// -> {data: {HH:..., mm:... }, displayTime: HH:mm} | ||
console.log(yourArg1) | ||
@@ -222,14 +247,18 @@ // -> 'foo' | ||
{ | ||
HH: "14", | ||
H: "14", | ||
hh: "14", | ||
a: "am", | ||
A: "AM", | ||
h: "14", | ||
kk: "14", | ||
k: "14", | ||
m: "30", | ||
mm: "30", | ||
s: "15", | ||
ss: "15" | ||
data: { | ||
HH: "14", | ||
H: "14", | ||
hh: "14", | ||
a: "am", | ||
A: "AM", | ||
h: "14", | ||
kk: "14", | ||
k: "14", | ||
m: "30", | ||
mm: "30", | ||
s: "15", | ||
ss: "15" | ||
}, | ||
// extra `displayTime` added since v0.2.2 | ||
displayTime: '14:30:15' | ||
} | ||
@@ -250,2 +279,4 @@ ``` | ||
## Advance Usage | ||
### Define Hour Range | ||
@@ -308,3 +339,3 @@ | ||
**`id` and `name`** | ||
### Input `id` And `name` | ||
@@ -319,3 +350,3 @@ ```html | ||
**`placeholder`** | ||
### Input `placeholder` | ||
@@ -338,3 +369,3 @@ When `placeholder` is not set, your defined format string will be used. | ||
**The `input-class`** | ||
### The `input-class` | ||
@@ -344,6 +375,6 @@ The `input-class` will also be assigned to text input in the component | ||
```html | ||
<!-- Set `input-class` --> | ||
<!-- Set `input-class` in Vue template --> | ||
<vue-timepicker input-class="my-awesome-picker"></vue-timepicker> | ||
<!-- html result --> | ||
<!-- HTML result --> | ||
<span class="vue__time-picker time-picker"> | ||
@@ -372,2 +403,4 @@ <input class="display-time my-awesome-picker" type="text" readonly="readonly"> | ||
```html | ||
<p>Dropdown Status: I'm {{dropdownStatus}}!</p> | ||
<vue-timepicker @open="dropdownStatus = 'opened'" @close="dropdownStatus = 'closed'"></vue-timepicker> | ||
@@ -378,26 +411,10 @@ ``` | ||
Please feel free to fork and help developing. | ||
Please feel free to fork and help developing. Check [CONTRIBUTING.md](https://github.com/phoenixwong/vue2-timepicker/blob/master/CONTRIBUTING.md) for more details. | ||
```bash | ||
# Install dependencies | ||
yarn install | ||
# Init development dependencies | ||
yarn dev:init | ||
# Start developing. Serve with hot reload at localhost:8080 | ||
yarn dev | ||
``` | ||
For detailed explanation on how things work, checkout the [Vue Cli Guide](https://cli.vuejs.org/guide/). | ||
> NOTE: Start from `^0.2.0`, we develop Demo pages with [**Yarn**]( | ||
https://yarnpkg.com/), [**Pug**](https://pugjs.org/), and [**Stylus**](http://stylus-lang.com/) | ||
## Change Log | ||
Detail changes for each release are documented in [CHANGELOG.md](https://github.com/phoenixwong/vue2-timepicker/blob/master/CHANGELOG.md) | ||
Detail changes of each release are documented in [CHANGELOG.md](https://github.com/phoenixwong/vue2-timepicker/blob/master/CHANGELOG.md) | ||
## License | ||
[MIT](http://opensource.org/licenses/MIT) | ||
[MIT](https://github.com/phoenixwong/vue2-timepicker/blob/master/LICENSE.md) |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
606540
16
4805
406