2 lines
29 KiB
JavaScript
2 lines
29 KiB
JavaScript
|
function _typeof(obj){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj)}define("tpl!taoTaskQueue/component/listing/tpl/element",["handlebars"],function(hb){return hb.template(function(Handlebars,depth0,helpers,partials,data){this.compilerInfo=[4,">= 1.0.0"],helpers=this.merge(helpers,Handlebars.helpers),data=data||{};var stack1,helper,options,buffer="",escapeExpression=this.escapeExpression,helperMissing=helpers.helperMissing;return buffer+="<div class=\"task-element ",(helper=helpers.status)?stack1=helper.call(depth0,{hash:{},data:data}):(helper=depth0&&depth0.status,stack1="function"===_typeof(helper)?helper.call(depth0,{hash:{},data:data}):helper),buffer+=escapeExpression(stack1)+"\">\n <div class=\"container-icon\">\n <div class=\"shape\">\n <span class=\"",(helper=helpers.icon)?stack1=helper.call(depth0,{hash:{},data:data}):(helper=depth0&&depth0.icon,stack1="function"===_typeof(helper)?helper.call(depth0,{hash:{},data:data}):helper),buffer+=escapeExpression(stack1)+"\"/>\n </div>\n </div>\n <div class=\"container-text\">\n <div class=\"label\">",(helper=helpers.taskLabel)?stack1=helper.call(depth0,{hash:{},data:data}):(helper=depth0&&depth0.taskLabel,stack1="function"===_typeof(helper)?helper.call(depth0,{hash:{},data:data}):helper),buffer+=escapeExpression(stack1)+"</div>\n <div class=\"time\">",(helper=helpers.time)?stack1=helper.call(depth0,{hash:{},data:data}):(helper=depth0&&depth0.time,stack1="function"===_typeof(helper)?helper.call(depth0,{hash:{},data:data}):helper),buffer+=escapeExpression(stack1)+"</div>\n </div>\n <div class=\"action-group action-top\">\n <span data-role=\"remove\" class=\"icon-result-nok\" title=\""+escapeExpression((helper=helpers.__||depth0&&depth0.__,options={hash:{},data:data},helper?helper.call(depth0,"remove",options):helperMissing.call(depth0,"__","remove",options)))+"\"/>\n </div>\n <div class=\"action-group action-bottom\">\n <span data-role=\"notify\" class=\"icon-preview\" title=\""+escapeExpression((helper=helpers.__||depth0&&depth0.__,options={hash:{},data:data},helper?helper.call(depth0,"notify me when done",options):helperMissing.call(depth0,"__","notify me when done",options)))+"\"/>\n <span data-role=\"download\" class=\"icon-download\" title=\""+escapeExpression((helper=helpers.__||depth0&&depth0.__,options={hash:{},data:data},helper?helper.call(depth0,"download",options):helperMissing.call(depth0,"__","download",options)))+"\"/>\n <span data-role=\"redirect\" class=\"icon-external\" title=\""+escapeExpression((helper=helpers.__||depth0&&depth0.__,options={hash:{},data:data},helper?helper.call(depth0,"go to resource",options):helperMissing.call(depth0,"__","go to resource",options)))+"\"/>\n <span data-role=\"report\" class=\"icon-document\" title=\""+escapeExpression((helper=helpers.__||depth0&&depth0.__,options={hash:{},data:data},helper?helper.call(depth0,"see report",options):helperMissing.call(depth0,"__","see report",options)))+"\"/>\n </div>\n</div>",buffer})}),define("css!taoTaskQueue/component/listing/css/element",[],function(){}),define("taoTaskQueue/component/listing/element",["jquery","lodash","i18n","moment","ui/component","ui/hider","tpl!taoTaskQueue/component/listing/tpl/element","css!taoTaskQueue/component/listing/css/element"],function($,_,__,moment,component,hider,elementTpl){'use strict';var _defaults={},_allowedStatus=["in_progress","failed","completed"],_categoryMap={import:"import",export:"export",delivery_comp:"delivery",transfer:"connect",create:"magicwand",update:"edit",delete:"bin"},_statusIcon={in_progress:"property-advanced",completed:"result-ok",failed:"result-nok"},getLabelString=function(data){return data.taskLabel},getFormattedTime=function(from,elapsed){return moment.unix(from).from(moment.unix(parseInt(from,10)+parseInt(el
|
||
|
//# sourceMappingURL=taoTaskQueue.min.js.map
|