(t,o,n,i)
| 3 | |
| 4 | },{"./inputmask":4,"./inputmask.date.extensions":2,"./inputmask.dependencyLib":3}],2:[function(require,module,exports){ |
| 5 | "use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function factory(e){var t=e.dependencyLib,r={d:["[1-9]|[12][0-9]|3[01]",Date.prototype.setDate,"day",Date.prototype.getDate],dd:["0[1-9]|[12][0-9]|3[01]",Date.prototype.setDate,"day",function(){return i(Date.prototype.getDate.call(this),2)}],ddd:[""],dddd:[""],m:["[1-9]|1[012]",Date.prototype.setMonth,"month",function(){return Date.prototype.getMonth.call(this)+1}],mm:["0[1-9]|1[012]",Date.prototype.setMonth,"month",function(){return i(Date.prototype.getMonth.call(this)+1,2)}],mmm:[""],mmmm:[""],yy:["[0-9]{2}",Date.prototype.setFullYear,"year",function(){return i(Date.prototype.getFullYear.call(this),2)}],yyyy:["[0-9]{4}",Date.prototype.setFullYear,"year",function(){return i(Date.prototype.getFullYear.call(this),4)}],h:["[1-9]|1[0-2]",Date.prototype.setHours,"hours",Date.prototype.getHours],hh:["0[1-9]|1[0-2]",Date.prototype.setHours,"hours",function(){return i(Date.prototype.getHours.call(this),2)}],hhh:["[0-9]+",Date.prototype.setHours,"hours",Date.prototype.getHours],H:["1?[0-9]|2[0-3]",Date.prototype.setHours,"hours",Date.prototype.getHours],HH:["[01][0-9]|2[0-3]",Date.prototype.setHours,"hours",function(){return i(Date.prototype.getHours.call(this),2)}],HHH:["[0-9]+",Date.prototype.setHours,"hours",Date.prototype.getHours],M:["[1-5]?[0-9]",Date.prototype.setMinutes,"minutes",Date.prototype.getMinutes],MM:["[0-5][0-9]",Date.prototype.setMinutes,"minutes",function(){return i(Date.prototype.getMinutes.call(this),2)}],s:["[1-5]?[0-9]",Date.prototype.setSeconds,"seconds",Date.prototype.getSeconds],ss:["[0-5][0-9]",Date.prototype.setSeconds,"seconds",function(){return i(Date.prototype.getSeconds.call(this),2)}],l:["[0-9]{3}",Date.prototype.setMilliseconds,"milliseconds",function(){return i(Date.prototype.getMilliseconds.call(this),3)}],L:["[0-9]{2}",Date.prototype.setMilliseconds,"milliseconds",function(){return i(Date.prototype.getMilliseconds.call(this),2)}],t:["[ap]"],tt:["[ap]m"],T:["[AP]"],TT:["[AP]M"],Z:[""],o:[""],S:[""]},o={isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};function a(e){if(!e.tokenizer){var t=[];for(var o in r)-1===t.indexOf(o[0])&&t.push(o[0]);e.tokenizer="("+t.join("+|")+")+?|.",e.tokenizer=new RegExp(e.tokenizer,"g")}return e.tokenizer}function n(t,o,n,i){for(var s,u="";s=a(n).exec(t);){if(void 0===o)if(r[s[0]])u+="("+r[s[0]][0]+")";else switch(s[0]){case"[":u+="(";break;case"]":u+=")?";break;default:u+=e.escapeRegex(s[0])}else if(r[s[0]])if(!0!==i&&r[s[0]][3])u+=r[s[0]][3].call(o.date);else r[s[0]][2]?u+=o["raw"+r[s[0]][2]]:u+=s[0];else u+=s[0]}return u}function i(e,t){for(e=String(e),t=t||2;e.length<t;)e="0"+e;return e}function s(e,t,o){var n,i,s,u={date:new Date(1,0,1)},l=e;function p(e){var t=e.replace(/[^0-9]/g,"0");if(t!=e){var r=e.replace(/[^0-9]/g,""),a=(o.min&&o.min[n]||e).toString(),i=(o.max&&o.max[n]||e).toString();t=r+(r<a.slice(0,r.length)?a.slice(r.length):r>i.slice(0,r.length)?i.slice(r.length):t.toString().slice(r.length))}return t}function y(e,t,r){e[n]=p(t),e["raw"+n]=t,void 0!==s&&s.call(e.date,"month"==n?parseInt(e[n])-1:e[n])}if("string"==typeof l){for(;i=a(o).exec(t);){var c=l.slice(0,i[0].length);r.hasOwnProperty(i[0])&&(r[i[0]][0],n=r[i[0]][2],s=r[i[0]][1],y(u,c)),l=l.slice(c.length)}return u}if(l&&"object"===_typeof(l)&&l.hasOwnProperty("date"))return l}function u(e){var t=e.inputmask;e.inputmask.remove(),e.addEventListener("input",function r(){0==e.value.length&&(e.removeEventListener("input",r),t.mask(e))})}return e.extendAliases({datetime:{mask:function(e){return r.S=e.i18n.ordinalSuffix.join("|"),e.inputFormat=o[e.inputFormat]||e.inputFormat,e.displayFormat=o[e.displayFormat]||e.displayFormat||e.inputFormat,e.outputFormat=o[e.outputFormat]||e.outputFormat||e.inputFormat,e.placeholder=""!==e.placeholder?e.placeholder:e.inputFormat.replace(/[\[\]]/,""),e.regex=n(e.inputFormat,void 0,e),null},placeholder:"",inputFormat:"isoDateTime",displayFormat:void 0,outputFormat:void 0,min:null,max:null,i18n:{dayNames:["Mon","Tue","Wed","Thu","Fri","Sat","Sun","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],ordinalSuffix:["st","nd","rd","th"]},postValidation:function(e,t,r,o,a){o.min=s(o.min,o.inputFormat,o),o.max=s(o.max,o.inputFormat,o);var i=r,u=s(e.join(""),o.inputFormat,o);if(i&&u.date.getTime()==u.date.getTime()){var l=(i=function(e,t){return(!isFinite(e.rawday)||"29"==e.day&&!isFinite(e.rawyear)||e.year.length<4||new Date(e.date.getFullYear(),isFinite(e.rawmonth)?e.month:e.date.getMonth()+1,0).getDate()>=e.day)&&t}(u,i))&&function(e,t){var r=!0;if(!e.rawyear||!e.rawmonth||!e.rawday)return!1;if(t.min){if(e.rawyear){var o=e.rawyear.replace(/[^0-9]/g,"");r=t.min.year.substr(0,o.length)<=o}e.year===e.rawyear&&t.min.date.getTime()==t.min.date.getTime()&&(r=t.min.date.getTime()<=e.date.getTime())}return r&&t.max&&t.max.date.getTime()==t.max.date.getTime()&&(r=t.max.date.getTime()>=e.date.getTime()),r}(u,o);if(t&&l&&r.pos!==t)return{buffer:n(o.inputFormat,u,o),refreshFromBuffer:{start:t,end:r.pos}}}var p=e.length,y=a.tests[p];if(!y)return i;var c=y.map(function(e){return e.match}).filter(function(e){return/^[-\/]$/.test(e.def)});if(1===c.length){var d=c[0].def;return{buffer:e.concat([d]),refreshFromBuffer:{start:t,end:e.length+1}}}return i},onKeyDown:function(r,o,n,s,l,p){var y=this;if(r.ctrlKey&&r.keyCode===e.keyCode.RIGHT){for(var c,d=new Date,m="";c=a(s).exec(s.inputFormat);)"d"===c[0].charAt(0)?m+=i(d.getDate(),c[0].length):"m"===c[0].charAt(0)?m+=i(d.getMonth()+1,c[0].length):"yyyy"===c[0]?m+=d.getFullYear().toString():"y"===c[0].charAt(0)&&(m+=i(d.getYear(),c[0].length));y.inputmask._valueSet(m),t(y).trigger("setvalue")}var f=p.begin,h=p.end;if(r.keyCode===e.keyCode.BACKSPACE||r.keyCode===e.keyCode.DELETE||(r.metaKey||r.ctrlKey)&&r.keyCode==="X".charCodeAt(0)){var g=y.value.length,D=y.selectionStart!=g&&y.selectionEnd!=g;if(g>0&&D){u(y);var v=h-f;if(r.keyCode===e.keyCode.BACKSPACE){var F=0==v?f-1:f;y.value=l.slice(0,F)+l.slice(h),y.setSelectionRange(F,F)}else if(r.keyCode===e.keyCode.DELETE){var M=0==v?h+1:h;y.value=l.slice(0,f)+l.slice(M),y.setSelectionRange(f,f)}}}else if(p.begin!=p.end){if((r.metaKey||r.ctrlKey)&&r.keyCode==="V".charCodeAt(0))return void u(y);if(r.metaKey||r.ctrlKey)return;var S=String.fromCharCode(r.keyCode),T=r.shiftKey?S.toLocaleUpperCase():S.toLocaleLowerCase();/\s/.test(T)||(u(y),setTimeout(function(){y.value=l.slice(0,f)+T+l.slice(h),y.setSelectionRange(f+1,f+1)},0))}},onUnMask:function(e,t,r){return n(r.outputFormat,s(e,r.inputFormat,r),r,!0)},casing:function(e,t,r,o){return 0==t.nativeDef.indexOf("[ap]")?e.toLowerCase():0==t.nativeDef.indexOf("[AP]")?e.toUpperCase():e},insertMode:!1,shiftPositions:!1}}),e}Object.defineProperty(exports,"__esModule",{value:!0}),exports.factory=factory; |
| 6 | |
| 7 | },{}],3:[function(require,module,exports){ |
| 8 | "use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function factory(e,t){function n(e){return null!=e&&e===e.window}function o(t){return t instanceof e.Element}function i(n){return n instanceof i?n:this instanceof i?void(null!=n&&n!==e&&(this[0]=n.nodeName?n:void 0!==n[0]&&n[0].nodeName?n[0]:t.querySelector(n),void 0!==this[0]&&null!==this[0]&&(this[0].eventRegistry=this[0].eventRegistry||{}))):new i(n)}return i.prototype={on:function(e,t){if(o(this[0]))for(var n=function(e,n){r.addEventListener?r.addEventListener(e,t,!1):r.attachEvent&&r.attachEvent("on"+e,t),i[e]=i[e]||{},i[e][n]=i[e][n]||[],i[e][n].push(t)},i=this[0].eventRegistry,r=this[0],a=e.split(" "),l=0;l<a.length;l++){var f=a[l].split(".");n(f[0],f[1]||"global")}return this},off:function(e,t){if(o(this[0]))for(var n=function(e,t,n){if(e in r==!0)if(a.removeEventListener?a.removeEventListener(e,n,!1):a.detachEvent&&a.detachEvent("on"+e,n),"global"===t)for(var o in r[e])r[e][o].splice(r[e][o].indexOf(n),1);else r[e][t].splice(r[e][t].indexOf(n),1)},i=function(e,n){var o,i,a=[];if(e.length>0)if(void 0===t)for(o=0,i=r[e][n].length;o<i;o++)a.push({ev:e,namespace:n&&n.length>0?n:"global",handler:r[e][n][o]});else a.push({ev:e,namespace:n&&n.length>0?n:"global",handler:t});else if(n.length>0)for(var l in r)for(var f in r[l])if(f===n)if(void 0===t)for(o=0,i=r[l][f].length;o<i;o++)a.push({ev:l,namespace:f,handler:r[l][f][o]});else a.push({ev:l,namespace:f,handler:t});return a},r=this[0].eventRegistry,a=this[0],l=e.split(" "),f=0;f<l.length;f++)for(var s=l[f].split("."),c=i(s[0],s[1]),u=0,v=c.length;u<v;u++)n(c[u].ev,c[u].namespace,c[u].handler);return this},trigger:function(e){if(o(this[0]))for(var n=this[0].eventRegistry,r=this[0],a="string"==typeof e?e.split(" "):[e.type],l=0;l<a.length;l++){var f=a[l].split("."),s=f[0],c=f[1]||"global";if(void 0!==t&&"global"===c){var u,v,p={bubbles:!0,cancelable:!0,detail:arguments[1]};if(t.createEvent){try{u=["change","input","click"].indexOf(s)>-1?new Event(s,p):new CustomEvent(s,p)}catch(e){(u=t.createEvent("CustomEvent")).initCustomEvent(s,p.bubbles,p.cancelable,p.detail)}e.type&&i.extend(u,e),r.dispatchEvent(u)}else(u=t.createEventObject()).eventType=s,u.detail=arguments[1],e.type&&i.extend(u,e),r.fireEvent("on"+u.eventType,u)}else if(void 0!==n[s])if(arguments[0]=arguments[0].type?arguments[0]:i.Event(arguments[0]),"global"===c)for(var y in n[s])for(v=0;v<n[s][y].length;v++)n[s][y][v].apply(r,arguments);else for(v=0;v<n[s][c].length;v++)n[s][c][v].apply(r,arguments)}return this}},i.isFunction=function(e){return"function"==typeof e},i.noop=function(){},i.isArray=Array.isArray,i.inArray=function(e,t,n){return null==t?-1:function(e,t){for(var n=0,o=e.length;n<o;n++)if(e[n]===t)return n;return-1}(t,e)},i.valHooks=void 0,i.isPlainObject=function(e){return"object"===_typeof(e)&&!e.nodeType&&!n(e)&&!(e.constructor&&!Object.hasOwnProperty.call(e.constructor.prototype,"isPrototypeOf"))},i.extend=function(){var e,t,n,o,r,a,l=arguments[0]||{},f=1,s=arguments.length,c=!1;for("boolean"==typeof l&&(c=l,l=arguments[f]||{},f++),"object"===_typeof(l)||i.isFunction(l)||(l={}),f===s&&(l=this,f--);f<s;f++)if(null!=(e=arguments[f]))for(t in e)n=l[t],l!==(o=e[t])&&(c&&o&&(i.isPlainObject(o)||(r=i.isArray(o)))?(r?(r=!1,a=n&&i.isArray(n)?n:[]):a=n&&i.isPlainObject(n)?n:{},l[t]=i.extend(c,a,o)):void 0!==o&&(l[t]=o));return l},i.each=function(e,t){var o=0;if(function(e){var t="length"in e&&e.length,o=_typeof(e);return"function"!==o&&!n(e)&&(!(1!==e.nodeType||!t)||"array"===o||0===t||"number"==typeof t&&t>0&&t-1 in e)}(e))for(var i=e.length;o<i&&!1!==t.call(e[o],o,e[o]);o++);else for(o in e)if(!1===t.call(e[o],o,e[o]))break;return e},i.data=function(e,t,n){if(void 0===n)return e.__data?e.__data[t]:null;e.__data=e.__data||{},e.__data[t]=n},"function"==typeof e.CustomEvent?i.Event=e.CustomEvent:(i.Event=function(e,n){n=n||{bubbles:!1,cancelable:!1,detail:void 0};var o=t.createEvent("CustomEvent");return o.initCustomEvent(e,n.bubbles,n.cancelable,n.detail),o},i.Event.prototype=e.Event.prototype),i}Object.defineProperty(exports,"__esModule",{value:!0}),exports.factory=factory; |
no test coverage detected