You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

1 lines
46 KiB

{"version":3,"sources":["progress.js"],"names":["$","window","document","undefined","Math","self","Function","fn","progress","parameters","returnedValue","$allModules","this","moduleSelector","selector","time","Date","getTime","performance","query","arguments","methodInvoked","queryArguments","slice","call","each","transitionEnd","module","settings","isPlainObject","extend","className","metadata","namespace","error","eventNamespace","moduleNamespace","$module","$bar","find","bar","$progress","$label","label","element","instance","data","animating","initialize","debug","set","duration","transitionEvent","read","instantiate","verbose","destroy","clearInterval","interval","remove","state","removeData","reset","nextValue","update","complete","percent","progressPoll","total","value","bind","callback","get","one","event","clearTimeout","failSafeTimer","setTimeout","triggerHandler","failSafeDelay","timer","increment","incrementValue","maxValue","startValue","newValue","has","randomValue","normalizedValue","decrement","decrementValue","text","templateText","displayPercent","left","replace","updateInterval","floor","random","max","min","numericValue","transition","createElement","transitions","OTransition","MozTransition","WebkitTransition","style","barWidth","width","totalWidth","minDisplay","parseInt","css","precision","round","create","toNextValue","is","success","warning","hasClass","active","visible","removeClass","tooHigh","tooLow","attr","transition-duration","limitValues","labelInterval","labels","onChange","animationCallback","setInterval","isInDOM","contains","documentElement","framerate","barLabel","autoSuccess","ratio","showActivity","addClass","onLabelUpdate","onActive","onSuccess","onWarning","onError","totalValue","percentComplete","nonNumeric","setting","name","internal","silent","log","prototype","console","info","apply","message","currentTime","executionTime","previousTime","push","Name","Arguments","Element","Execution Time","display","title","totalTime","index","group","table","length","groupCollapsed","groupEnd","invoke","passedArguments","context","maxDepth","found","response","object","split","depth","camelCaseValue","charAt","toUpperCase","method","isFunction","isArray","regExp","variable","jQuery"],"mappings":";;;;;;;;;CAUC,SAAWA,EAAGC,EAAQC,EAAUC,GAEjC,YAEAF,GAA2B,mBAAVA,IAAyBA,EAAOG,MAAQA,KACrDH,EACgB,mBAARI,OAAuBA,KAAKD,MAAQA,KAC1CC,KACAC,SAAS,gBAIc,oBAAVL,IAAyBA,EAAOG,M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EACjBwB,UAAkB,IAAO,GAEzBzE,SAAiB,EACjBE,OAAiB,EACjBC,OAAiB,EAGjBU,cAAgB,IAEhBkE,cAAgB,SAASrF,EAAO+B,EAAMtB,EAAOD,GAC3C,MAAOuB,IAET0C,SAAgB,SAASnE,EAASG,EAAOD,KACzC+E,UAAgB,SAAS/E,KACzB8E,SAAgB,SAAS7E,EAAOD,KAChCiF,QAAgB,SAAShF,EAAOD,KAChCgF,UAAgB,SAAS/E,EAAOD,KAEhClC,OACE8J,OAAa,wCACbxC,WAAa,gCACb1B,QAAa,gCACbC,OAAa,+BAGfoE,QACEC,SAAU,qBAGZpK,UACEkC,QAAU,UACVE,MAAU,QACVC,MAAU,SAGZvD,UACE0B,IAAW,SACXG,MAAW,WACXnC,SAAW,oBAGbmF,MACEgC,QAAU,EACVzF,OAAU,EACVsF,SAAU,EACVC,SAAU,EACVvD,QAAU,aACV4E,MAAU,sBAGZ/G,WACE4F,OAAU,SACVzF,MAAU,QACVsF,QAAU,UACVC,QAAU,aAMV4E,OAAQpM,OAAQC","file":"progress.min.js","sourcesContent":["/*!\n * # Semantic UI 2.2.6 - Progress\n * http://github.com/semantic-org/semantic-ui/\n *\n *\n * Released under the MIT license\n * http://opensource.org/licenses/MIT\n *\n */\n\n;(function ($, window, document, undefined) {\n\n\"use strict\";\n\nwindow = (typeof window != 'undefined' && window.Math == Math)\n ? window\n : (typeof self != 'undefined' && self.Math == Math)\n ? self\n : Function('return this')()\n;\n\nvar\n global = (typeof window != 'undefined' && window.Math == Math)\n ? window\n : (typeof self != 'undefined' && self.Math == Math)\n ? self\n : Function('return this')()\n;\n\n$.fn.progress = function(parameters) {\n var\n $allModules = $(this),\n\n moduleSelector = $allModules.selector || '',\n\n time = new Date().getTime(),\n performance = [],\n\n query = arguments[0],\n methodInvoked = (typeof query == 'string'),\n queryArguments = [].slice.call(arguments, 1),\n\n returnedValue\n ;\n\n $allModules\n .each(function() {\n var\n settings = ( $.isPlainObject(parameters) )\n ? $.extend(true, {}, $.fn.progress.settings, parameters)\n : $.extend({}, $.fn.progress.settings),\n\n className = settings.className,\n metadata = settings.metadata,\n namespace = settings.namespace,\n selector = settings.selector,\n error = settings.error,\n\n eventNamespace = '.' + namespace,\n moduleNamespace = 'module-' + namespace,\n\n $module = $(this),\n $bar = $(this).find(selector.bar),\n $progress = $(this).find(selector.progress),\n $label = $(this).find(selector.label),\n\n element = this,\n instance = $module.data(moduleNamespace),\n\n animating = false,\n transitionEnd,\n module\n ;\n\n module = {\n\n initialize: function() {\n module.debug('Initializing progress bar', settings);\n\n module.set.duration();\n module.set.transitionEvent();\n\n module.read.metadata();\n module.read.settings();\n\n module.instantiate();\n },\n\n instantiate: function() {\n module.verbose('Storing instance of progress', module);\n instance = module;\n $module\n .data(moduleNamespace, module)\n ;\n },\n destroy: function() {\n module.verbose('Destroying previous progress for', $module);\n clearInterval(instance.interval);\n module.remove.state();\n $module.removeData(moduleNamespace);\n instance = undefined;\n },\n\n reset: function() {\n module.remove.nextValue();\n module.update.progress(0);\n },\n\n complete: function() {\n if(module.percent === undefined || module.percent < 100) {\n module.remove.progressPoll();\n module.set.percent(100);\n }\n },\n\n read: {\n metadata: function() {\n var\n data = {\n percent : $module.data(metadata.percent),\n total : $module.data(metadata.total),\n value : $module.data(metadata.value)\n }\n ;\n if(data.percent) {\n module.debug('Current percent value set from metadata', data.percent);\n module.set.percent(data.percent);\n }\n if(data.total) {\n module.debug('Total value set from metadata', data.total);\n module.set.total(data.total);\n }\n if(data.value) {\n module.debug('Current value set from metadata', data.value);\n module.set.value(data.value);\n module.set.progress(data.value);\n }\n },\n settings: function() {\n if(settings.total !== false) {\n module.debug('Current total set in settings', settings.total);\n module.set.total(settings.total);\n }\n if(settings.value !== false) {\n module.debug('Current value set in settings', settings.value);\n module.set.value(settings.value);\n module.set.progress(module.value);\n }\n if(settings.percent !== false) {\n module.debug('Current percent set in settings', settings.percent);\n module.set.percent(settings.percent);\n }\n }\n },\n\n bind: {\n transitionEnd: function(callback) {\n var\n transitionEnd = module.get.transitionEnd()\n ;\n $bar\n .one(transitionEnd + eventNamespace, function(event) {\n clearTimeout(module.failSafeTimer);\n callback.call(this, event);\n })\n ;\n module.failSafeTimer = setTimeout(function() {\n $bar.triggerHandler(transitionEnd);\n }, settings.duration + settings.failSafeDelay);\n module.verbose('Adding fail safe timer', module.timer);\n }\n },\n\n increment: function(incrementValue) {\n var\n maxValue,\n startValue,\n newValue\n ;\n if( module.has.total() ) {\n startValue = module.get.value();\n incrementValue = incrementValue || 1;\n newValue = startValue + incrementValue;\n }\n else {\n startValue = module.get.percent();\n incrementValue = incrementValue || module.get.randomValue();\n\n newValue = startValue + incrementValue;\n maxValue = 100;\n module.debug('Incrementing percentage by', startValue, newValue);\n }\n newValue = module.get.normalizedValue(newValue);\n module.set.progress(newValue);\n },\n decrement: function(decrementValue) {\n var\n total = module.get.total(),\n startValue,\n newValue\n ;\n if(total) {\n startValue = module.get.value();\n decrementValue = decrementValue || 1;\n newValue = startValue - decrementValue;\n module.debug('Decrementing value by', decrementValue, startValue);\n }\n else {\n startValue = module.get.percent();\n decrementValue = decrementValue || module.get.randomValue();\n newValue = startValue - decrementValue;\n module.debug('Decrementing percentage by', decrementValue, startValue);\n }\n newValue = module.get.normalizedValue(newValue);\n module.set.progress(newValue);\n },\n\n has: {\n progressPoll: function() {\n return module.progressPoll;\n },\n total: function() {\n return (module.get.total() !== false);\n }\n },\n\n get: {\n text: function(templateText) {\n var\n value = module.value || 0,\n total = module.total || 0,\n percent = (animating)\n ? module.get.displayPercent()\n : module.percent || 0,\n left = (module.total > 0)\n ? (total - value)\n : (100 - percent)\n ;\n templateText = templateText || '';\n templateText = templateText\n .replace('{value}', value)\n .replace('{total}', total)\n .replace('{left}', left)\n .replace('{percent}', percent)\n ;\n module.verbose('Adding variables to progress bar text', templateText);\n return templateText;\n },\n\n normalizedValue: function(value) {\n if(value < 0) {\n module.debug('Value cannot decrement below 0');\n return 0;\n }\n if(module.has.total()) {\n if(value > module.total) {\n module.debug('Value cannot increment above total', module.total);\n return module.total;\n }\n }\n else if(value > 100 ) {\n module.debug('Value cannot increment above 100 percent');\n return 100;\n }\n return value;\n },\n\n updateInterval: function() {\n if(settings.updateInterval == 'auto') {\n return settings.duration;\n }\n return settings.updateInterval;\n },\n\n randomValue: function() {\n module.debug('Generating random increment percentage');\n return Math.floor((Math.random() * settings.random.max) + settings.random.min);\n },\n\n numericValue: function(value) {\n return (typeof value === 'string')\n ? (value.replace(/[^\\d.]/g, '') !== '')\n ? +(value.replace(/[^\\d.]/g, ''))\n : false\n : value\n ;\n },\n\n transitionEnd: function() {\n var\n element = document.createElement('element'),\n transitions = {\n 'transition' :'transitionend',\n 'OTransition' :'oTransitionEnd',\n 'MozTransition' :'transitionend',\n 'WebkitTransition' :'webkitTransitionEnd'\n },\n transition\n ;\n for(transition in transitions){\n if( element.style[transition] !== undefined ){\n return transitions[transition];\n }\n }\n },\n\n // gets current displayed percentage (if animating values this is the intermediary value)\n displayPercent: function() {\n var\n barWidth = $bar.width(),\n totalWidth = $module.width(),\n minDisplay = parseInt($bar.css('min-width'), 10),\n displayPercent = (barWidth > minDisplay)\n ? (barWidth / totalWidth * 100)\n : module.percent\n ;\n return (settings.precision > 0)\n ? Math.round(displayPercent * (10 * settings.precision)) / (10 * settings.precision)\n : Math.round(displayPercent)\n ;\n },\n\n percent: function() {\n return module.percent || 0;\n },\n value: function() {\n return module.nextValue || module.value || 0;\n },\n total: function() {\n return module.total || false;\n }\n },\n\n create: {\n progressPoll: function() {\n module.progressPoll = setTimeout(function() {\n module.update.toNextValue();\n module.remove.progressPoll();\n }, module.get.updateInterval());\n },\n },\n\n is: {\n complete: function() {\n return module.is.success() || module.is.warning() || module.is.error();\n },\n success: function() {\n return $module.hasClass(className.success);\n },\n warning: function() {\n return $module.hasClass(className.warning);\n },\n error: function() {\n return $module.hasClass(className.error);\n },\n active: function() {\n return $module.hasClass(className.active);\n },\n visible: function() {\n return $module.is(':visible');\n }\n },\n\n remove: {\n progressPoll: function() {\n module.verbose('Removing progress poll timer');\n if(module.progressPoll) {\n clearTimeout(module.progressPoll);\n delete module.progressPoll;\n }\n },\n nextValue: function() {\n module.verbose('Removing progress value stored for next update');\n delete module.nextValue;\n },\n state: function() {\n module.verbose('Removing stored state');\n delete module.total;\n delete module.percent;\n delete module.value;\n },\n active: function() {\n module.verbose('Removing active state');\n $module.removeClass(className.active);\n },\n success: function() {\n module.verbose('Removing success state');\n $module.removeClass(className.success);\n },\n warning: function() {\n module.verbose('Removing warning state');\n $module.removeClass(className.warning);\n },\n error: function() {\n module.verbose('Removing error state');\n $module.removeClass(className.error);\n }\n },\n\n set: {\n barWidth: function(value) {\n if(value > 100) {\n module.error(error.tooHigh, value);\n }\n else if (value < 0) {\n module.error(error.tooLow, value);\n }\n else {\n $bar\n .css('width', value + '%')\n ;\n $module\n .attr('data-percent', parseInt(value, 10))\n ;\n }\n },\n duration: function(duration) {\n duration = duration || settings.duration;\n duration = (typeof duration == 'number')\n ? duration + 'ms'\n : duration\n ;\n module.verbose('Setting progress bar transition duration', duration);\n $bar\n .css({\n 'transition-duration': duration\n })\n ;\n },\n percent: function(percent) {\n percent = (typeof percent == 'string')\n ? +(percent.replace('%', ''))\n : percent\n ;\n // round display percentage\n percent = (settings.precision > 0)\n ? Math.round(percent * (10 * settings.precision)) / (10 * settings.precision)\n : Math.round(percent)\n ;\n module.percent = percent;\n if( !module.has.total() ) {\n module.value = (settings.precision > 0)\n ? Math.round( (percent / 100) * module.total * (10 * settings.precision)) / (10 * settings.precision)\n : Math.round( (percent / 100) * module.total * 10) / 10\n ;\n if(settings.limitValues) {\n module.value = (module.value > 100)\n ? 100\n : (module.value < 0)\n ? 0\n : module.value\n ;\n }\n }\n module.set.barWidth(percent);\n module.set.labelInterval();\n module.set.labels();\n settings.onChange.call(element, percent, module.value, module.total);\n },\n labelInterval: function() {\n var\n animationCallback = function() {\n module.verbose('Bar finished animating, removing continuous label updates');\n clearInterval(module.interval);\n animating = false;\n module.set.labels();\n }\n ;\n clearInterval(module.interval);\n module.bind.transitionEnd(animationCallback);\n animating = true;\n module.interval = setInterval(function() {\n var\n isInDOM = $.contains(document.documentElement, element)\n ;\n if(!isInDOM) {\n clearInterval(module.interval);\n animating = false;\n }\n module.set.labels();\n }, settings.framerate);\n },\n labels: function() {\n module.verbose('Setting both bar progress and outer label text');\n module.set.barLabel();\n module.set.state();\n },\n label: function(text) {\n text = text || '';\n if(text) {\n text = module.get.text(text);\n module.verbose('Setting label to text', text);\n $label.text(text);\n }\n },\n state: function(percent) {\n percent = (percent !== undefined)\n ? percent\n : module.percent\n ;\n if(percent === 100) {\n if(settings.autoSuccess && !(module.is.warning() || module.is.error() || module.is.success())) {\n module.set.success();\n module.debug('Automatically triggering success at 100%');\n }\n else {\n module.verbose('Reached 100% removing active state');\n module.remove.active();\n module.remove.progressPoll();\n }\n }\n else if(percent > 0) {\n module.verbose('Adjusting active progress bar label', percent);\n module.set.active();\n }\n else {\n module.remove.active();\n module.set.label(settings.text.active);\n }\n },\n barLabel: function(text) {\n if(text !== undefined) {\n $progress.text( module.get.text(text) );\n }\n else if(settings.label == 'ratio' && module.total) {\n module.verbose('Adding ratio to bar label');\n $progress.text( module.get.text(settings.text.ratio) );\n }\n else if(settings.label == 'percent') {\n module.verbose('Adding percentage to bar label');\n $progress.text( module.get.text(settings.text.percent) );\n }\n },\n active: function(text) {\n text = text || settings.text.active;\n module.debug('Setting active state');\n if(settings.showActivity && !module.is.active() ) {\n $module.addClass(className.active);\n }\n module.remove.warning();\n module.remove.error();\n module.remove.success();\n text = settings.onLabelUpdate('active', text, module.value, module.total);\n if(text) {\n module.set.label(text);\n }\n module.bind.transitionEnd(function() {\n settings.onActive.call(element, module.value, module.total);\n });\n },\n success : function(text) {\n text = text || settings.text.success || settings.text.active;\n module.debug('Setting success state');\n $module.addClass(className.success);\n module.remove.active();\n module.remove.warning();\n module.remove.error();\n module.complete();\n if(settings.text.success) {\n text = settings.onLabelUpdate('success', text, module.value, module.total);\n module.set.label(text);\n }\n else {\n text = settings.onLabelUpdate('active', text, module.value, module.total);\n module.set.label(text);\n }\n module.bind.transitionEnd(function() {\n settings.onSuccess.call(element, module.total);\n });\n },\n warning : function(text) {\n text = text || settings.text.warning;\n module.debug('Setting warning state');\n $module.addClass(className.warning);\n module.remove.active();\n module.remove.success();\n module.remove.error();\n module.complete();\n text = settings.onLabelUpdate('warning', text, module.value, module.total);\n if(text) {\n module.set.label(text);\n }\n module.bind.transitionEnd(function() {\n settings.onWarning.call(element, module.value, module.total);\n });\n },\n error : function(text) {\n text = text || settings.text.error;\n module.debug('Setting error state');\n $module.addClass(className.error);\n module.remove.active();\n module.remove.success();\n module.remove.warning();\n module.complete();\n text = settings.onLabelUpdate('error', text, module.value, module.total);\n if(text) {\n module.set.label(text);\n }\n module.bind.transitionEnd(function() {\n settings.onError.call(element, module.value, module.total);\n });\n },\n transitionEvent: function() {\n transitionEnd = module.get.transitionEnd();\n },\n total: function(totalValue) {\n module.total = totalValue;\n },\n value: function(value) {\n module.value = value;\n },\n progress: function(value) {\n if(!module.has.progressPoll()) {\n module.debug('First update in progress update interval, immediately updating', value);\n module.update.progress(value);\n module.create.progressPoll();\n }\n else {\n module.debug('Updated within interval, setting next update to use new value', value);\n module.set.nextValue(value);\n }\n },\n nextValue: function(value) {\n module.nextValue = value;\n }\n },\n\n update: {\n toNextValue: function() {\n var\n nextValue = module.nextValue\n ;\n if(nextValue) {\n module.debug('Update interval complete using last updated value', nextValue);\n module.update.progress(nextValue);\n module.remove.nextValue();\n }\n },\n progress: function(value) {\n var\n percentComplete\n ;\n value = module.get.numericValue(value);\n if(value === false) {\n module.error(error.nonNumeric, value);\n }\n value = module.get.normalizedValue(value);\n if( module.has.total() ) {\n module.set.value(value);\n percentComplete = (value / module.total) * 100;\n module.debug('Calculating percent complete from total', percentComplete);\n module.set.percent( percentComplete );\n }\n else {\n percentComplete = value;\n module.debug('Setting value to exact percentage value', percentComplete);\n module.set.percent( percentComplete );\n }\n }\n },\n\n setting: function(name, value) {\n module.debug('Changing setting', name, value);\n if( $.isPlainObject(name) ) {\n $.extend(true, settings, name);\n }\n else if(value !== undefined) {\n if($.isPlainObject(settings[name])) {\n $.extend(true, settings[name], value);\n }\n else {\n settings[name] = value;\n }\n }\n else {\n return settings[name];\n }\n },\n internal: function(name, value) {\n if( $.isPlainObject(name) ) {\n $.extend(true, module, name);\n }\n else if(value !== undefined) {\n module[name] = value;\n }\n else {\n return module[name];\n }\n },\n debug: function() {\n if(!settings.silent && settings.debug) {\n if(settings.performance) {\n module.performance.log(arguments);\n }\n else {\n module.debug = Function.prototype.bind.call(console.info, console, settings.name + ':');\n module.debug.apply(console, arguments);\n }\n }\n },\n verbose: function() {\n if(!settings.silent && settings.verbose && settings.debug) {\n if(settings.performance) {\n module.performance.log(arguments);\n }\n else {\n module.verbose = Function.prototype.bind.call(console.info, console, settings.name + ':');\n module.verbose.apply(console, arguments);\n }\n }\n },\n error: function() {\n if(!settings.silent) {\n module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');\n module.error.apply(console, arguments);\n }\n },\n performance: {\n log: function(message) {\n var\n currentTime,\n executionTime,\n previousTime\n ;\n if(settings.performance) {\n currentTime = new Date().getTime();\n previousTime = time || currentTime;\n executionTime = currentTime - previousTime;\n time = currentTime;\n performance.push({\n 'Name' : message[0],\n 'Arguments' : [].slice.call(message, 1) || '',\n 'Element' : element,\n 'Execution Time' : executionTime\n });\n }\n clearTimeout(module.performance.timer);\n module.performance.timer = setTimeout(module.performance.display, 500);\n },\n display: function() {\n var\n title = settings.name + ':',\n totalTime = 0\n ;\n time = false;\n clearTimeout(module.performance.timer);\n $.each(performance, function(index, data) {\n totalTime += data['Execution Time'];\n });\n title += ' ' + totalTime + 'ms';\n if(moduleSelector) {\n title += ' \\'' + moduleSelector + '\\'';\n }\n if( (console.group !== undefined || console.table !== undefined) && performance.length > 0) {\n console.groupCollapsed(title);\n if(console.table) {\n console.table(performance);\n }\n else {\n $.each(performance, function(index, data) {\n console.log(data['Name'] + ': ' + data['Execution Time']+'ms');\n });\n }\n console.groupEnd();\n }\n performance = [];\n }\n },\n invoke: function(query, passedArguments, context) {\n var\n object = instance,\n maxDepth,\n found,\n response\n ;\n passedArguments = passedArguments || queryArguments;\n context = element || context;\n if(typeof query == 'string' && object !== undefined) {\n query = query.split(/[\\. ]/);\n maxDepth = query.length - 1;\n $.each(query, function(depth, value) {\n var camelCaseValue = (depth != maxDepth)\n ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)\n : query\n ;\n if( $.isPlainObject( object[camelCaseValue] ) && (depth != maxDepth) ) {\n object = object[camelCaseValue];\n }\n else if( object[camelCaseValue] !== undefined ) {\n found = object[camelCaseValue];\n return false;\n }\n else if( $.isPlainObject( object[value] ) && (depth != maxDepth) ) {\n object = object[value];\n }\n else if( object[value] !== undefined ) {\n found = object[value];\n return false;\n }\n else {\n module.error(error.method, query);\n return false;\n }\n });\n }\n if ( $.isFunction( found ) ) {\n response = found.apply(context, passedArguments);\n }\n else if(found !== undefined) {\n response = found;\n }\n if($.isArray(returnedValue)) {\n returnedValue.push(response);\n }\n else if(returnedValue !== undefined) {\n returnedValue = [returnedValue, response];\n }\n else if(response !== undefined) {\n returnedValue = response;\n }\n return found;\n }\n };\n\n if(methodInvoked) {\n if(instance === undefined) {\n module.initialize();\n }\n module.invoke(query);\n }\n else {\n if(instance !== undefined) {\n instance.invoke('destroy');\n }\n module.initialize();\n }\n })\n ;\n\n return (returnedValue !== undefined)\n ? returnedValue\n : this\n ;\n};\n\n$.fn.progress.settings = {\n\n name : 'Progress',\n namespace : 'progress',\n\n silent : false,\n debug : false,\n verbose : false,\n performance : true,\n\n random : {\n min : 2,\n max : 5\n },\n\n duration : 300,\n\n updateInterval : 'auto',\n\n autoSuccess : true,\n showActivity : true,\n limitValues : true,\n\n label : 'percent',\n precision : 0,\n framerate : (1000 / 30), /// 30 fps\n\n percent : false,\n total : false,\n value : false,\n\n // delay in ms for fail safe animation callback\n failSafeDelay : 100,\n\n onLabelUpdate : function(state, text, value, total){\n return text;\n },\n onChange : function(percent, value, total){},\n onSuccess : function(total){},\n onActive : function(value, total){},\n onError : function(value, total){},\n onWarning : function(value, total){},\n\n error : {\n method : 'The method you called is not defined.',\n nonNumeric : 'Progress value is non numeric',\n tooHigh : 'Value specified is above 100%',\n tooLow : 'Value specified is below 0%'\n },\n\n regExp: {\n variable: /\\{\\$*[A-z0-9]+\\}/g\n },\n\n metadata: {\n percent : 'percent',\n total : 'total',\n value : 'value'\n },\n\n selector : {\n bar : '> .bar',\n label : '> .label',\n progress : '.bar > .progress'\n },\n\n text : {\n active : false,\n error : false,\n success : false,\n warning : false,\n percent : '{percent}%',\n ratio : '{value} of {total}'\n },\n\n className : {\n active : 'active',\n error : 'error',\n success : 'success',\n warning : 'warning'\n }\n\n};\n\n\n})( jQuery, window, document );\n"]}