ux-datagrid-gridLogger.min.js |
|
! ux-angularjs-datagrid v.1.4.11 (c) 2016, Obogo https://github.com/obogo/ux-angularjs-datagrid License: MIT. |
(function (exports, global) {
if (typeof define === "function" && define.amd) {
define(exports);
} else if (typeof module !== "undefined" && module.exports) {
module.exports = exports;
} else {
global.ux = exports;
}
!function(a,b){"function"==typeof define&&define.amd?define(a):"undefined"!=typeof module&&module.exports?module.exports=a:b.ux=a,angular.module("ux").factory("gridLogger",function(){function b(b,c){var d=a.util.array.toArray(b);return c&&d.splice(0,c),d}var c={LOG:1,INFO:2,WARN:3,ERROR:4},d=["log","info","warn","error"],e={black:["color:#000000","color:#000000","color:#000000","color:#000000"],light:["color:#DDDDDD","color:#BBBBBB","color:#999999;font-style:italic;font-weight:bold;","color:#FF0000;font-weight:bold;"],grey:["color:#999999","color:#666666","color:#333333;font-style:italic;font-weight:bold;","color:#FF0000;font-weight:bold;"],red:["color:#CD9B9B","color:#CD5C5C","color:#CC3232;font-style:italic;font-weight:bold;","color:#FF0000;font-weight:bold;"],green:["color:#ACCA8F","color:#78AB46","color:#45B000;font-style:italic;font-weight:bold;","color:#FF0000;font-weight:bold;"],teal:["color:#B4CDCD;","color:#79CDCD;","color:#37B6CE;font-style:italic;font-weight:bold;","color:#FF0000;font-weight:bold;"],blue:["color:#B9D3EE;","color:#75A1D0;","color:#0276FD;font-style:italic;font-weight:bold;","color:#FF0000;font-weight:bold;"],purple:["color:#BDA0CB","color:#9B30FF","color:#7D26CD;font-style:italic;font-weight:bold;","color:#FF0000;font-weight:bold;"],orange:["color:#EDCB62","color:#FFAA00","color:#FF8800;font-style:italic;font-weight:bold;","color:#FF0000;font-weight:bold;"],redOrange:["color:#FF7640","color:#FF4900","color:#BF5930;font-style:italic;font-weight:bold;","color:#FF0000;font-weight:bold;"]};return["inst","$rootScope",function(f,g){function h(a){m(c.LOG,arguments)}function i(a){m(c.INFO,arguments)}function j(a){m(c.WARN,arguments)}function k(a){m(c.ERROR,arguments)}function l(a,b){if(f.options.debug){if(f.options.debug.all&&f.options.debug.all>a||0===f.options.debug[b])return!1;if(a>=f.options.debug.all)return!0;if(f.options.debug[b]>=a)return!0}return!1}function m(a,c){var e,f=a-1;l(a,c[1])&&(e=b(arguments[1],1),window.console&&console[d[f]]&&Function.prototype.apply.call(console[d[f]],console,n.format(e,a)))}var n={};n.log=h,n.info=i,n.warn=j,n.error=k,n.format=function(a,b){for(var c=a.shift(),d=a.shift()||"grey",g=0,h=a[0].length,i="",j=a[0].charAt(g);h>g&&(" "===j||" "===j);)i+=j,g+=1,j=a[0].charAt(g);return a[0]=a[0].substr(i.length,a[0].length),a[0]=i+"%c"+c+"["+f.scope.$id+"]::"+a[0],a.splice(1,0,(e[d]||d)[b-1]),a},n.destroy=function(){n=null,g=null},f.unwatchers.push(g.$on(a.datagrid.events.LOG,h)),f.unwatchers.push(g.$on(a.datagrid.events.INFO,i)),f.unwatchers.push(g.$on(a.datagrid.events.WARN,j)),f.unwatchers.push(g.$on(a.datagrid.events.ERROR,k)),f.logger=n}]})}(this.ux=this.ux||{},function(){return this}());
|
¶ sourceMappingURL=ux-datagrid-gridLogger.min.js.map |
}(this.ux = this.ux || {}, function() {return this;}()));
|