@5minds/node-red-dashboard-2-processcube-usertask-table
Advanced tools
Comparing version 1.0.4 to 1.0.5
{ | ||
"name": "@5minds/node-red-dashboard-2-processcube-usertask-table", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "A ui component for showing UserTasks in a table", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -1,2 +0,2 @@ | ||
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode("h1[data-v-38441452]{margin-bottom:10px}h2[data-v-38441452]{margin-top:1.5rem;margin-bottom:.75rem}h3[data-v-38441452]{margin-top:1rem}p[data-v-38441452]{margin-bottom:5px}ul li[data-v-38441452]{list-style-type:circle;list-style-position:inside;margin-left:15px}pre[data-v-38441452]{padding:12px;margin:12px;background-color:#eee}code[data-v-38441452]{font-size:.825rem;color:#ae0000}input[data-v-38441452]{padding:12px;margin:12px;background-color:#eee}.task-div[data-v-38441452]{padding:8px;margin:16px;border:solid;border-radius:4px;border-color:#303030}.action-button-container[data-v-38441452]{width:100%;display:flex}")),document.head.appendChild(t)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})(); | ||
(function(i,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("vuex"),require("vue")):typeof define=="function"&&define.amd?define(["exports","vuex","vue"],s):(i=typeof globalThis<"u"?globalThis:i||self,s(i["usertask-table"]={},i.vuex,i.Vue))})(this,function(i,s,t){"use strict";const m=(e,o)=>{const n=e.__vccOpts||e;for(const[l,a]of o)n[l]=a;return n},f={name:"UserTaskTable",inject:["$socket"],props:{id:{type:String,required:!0},props:{type:Object,default:()=>({})},state:{type:Object,default:()=>({enabled:!1,visible:!1})}},data(){return{actions:[],tasks:[],headers:[]}},computed:{...s.mapState("data",["messages"])},mounted(){this.$socket.on("widget-load:"+this.id,e=>{this.initialize(e),this.$store.commit("data/bind",{widgetId:this.id,msg:e})}),this.$socket.on("msg-input:"+this.id,e=>{this.$store.commit("data/bind",{widgetId:this.id,msg:e})}),this.$socket.emit("widget-load",this.id)},unmounted(){var e,o;(e=this.$socket)==null||e.off("widget-load"+this.id),(o=this.$socket)==null||o.off("msg-input:"+this.id)},methods:{send(e,o){let n=[];n[o]=e,this.$socket.emit("widget-action",this.id,n)},actionFn(e,o){this.send({payload:o},this.actions.findIndex(n=>n.label===e.label))},initialize(e){this.tasks=e.payload.userTasks,this.actions=this.props.options,this.headers=this.props.columns.map(o=>({title:o.label,key:o.value})),this.headers.push({title:"Action",align:"center",key:"actions"})},conditionCheck(e,o){if(e=="")return!0;try{return new Function("task",`return ${e}`)(o)}catch(n){return console.error("Error evaluating condition:",n),!1}}}};function _(e,o,n,l,a,r){const u=t.resolveComponent("v-toolbar-title"),b=t.resolveComponent("v-toolbar"),d=t.resolveComponent("v-btn"),p=t.resolveComponent("v-container"),x=t.resolveComponent("v-data-table");return t.openBlock(),t.createBlock(x,{headers:a.headers,items:a.tasks,class:"full-width-table"},{top:t.withCtx(()=>[t.createVNode(b,null,{default:t.withCtx(()=>[t.createVNode(u,null,{default:t.withCtx(()=>[t.createTextVNode("UserTasks")]),_:1})]),_:1})]),"item.actions":t.withCtx(({item:h})=>[t.createVNode(p,{class:"action-button-container"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.actions,(c,C)=>(t.openBlock(),t.createBlock(p,{style:{padding:"0px",display:"inline",width:"fit-content",margin:"0px"}},{default:t.withCtx(()=>[r.conditionCheck(c.condition,h)?(t.openBlock(),t.createBlock(d,{style:{margin:"0px 2px"},key:C,size:"small",onClick:y=>r.actionFn(c,h)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(c.label),1)]),_:2},1032,["onClick"])):t.createCommentVNode("",!0)]),_:2},1024))),256))]),_:2},1024)]),"no-data":t.withCtx(()=>[t.createVNode(d,{color:"primary",onClick:r.initialize},{default:t.withCtx(()=>[t.createTextVNode(" Reload ")]),_:1},8,["onClick"])]),_:1},8,["headers","items"])}const k=m(f,[["render",_],["__scopeId","data-v-38441452"]]);i.UserTaskTable=k,Object.defineProperty(i,Symbol.toStringTag,{value:"Module"})}); | ||
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("h1[data-v-1781db1e]{margin-bottom:10px}h2[data-v-1781db1e]{margin-top:1.5rem;margin-bottom:.75rem}h3[data-v-1781db1e]{margin-top:1rem}p[data-v-1781db1e]{margin-bottom:5px}ul li[data-v-1781db1e]{list-style-type:circle;list-style-position:inside;margin-left:15px}pre[data-v-1781db1e]{padding:12px;margin:12px;background-color:#eee}code[data-v-1781db1e]{font-size:.825rem;color:#ae0000}input[data-v-1781db1e]{padding:12px;margin:12px;background-color:#eee}.task-div[data-v-1781db1e]{padding:8px;margin:16px;border:solid;border-radius:4px;border-color:#303030}.action-button-container[data-v-1781db1e]{width:100%;display:flex}")),document.head.appendChild(e)}}catch(d){console.error("vite-plugin-css-injected-by-js",d)}})(); | ||
(function(i,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("vuex"),require("vue")):typeof define=="function"&&define.amd?define(["exports","vuex","vue"],s):(i=typeof globalThis<"u"?globalThis:i||self,s(i["usertask-table"]={},i.vuex,i.Vue))})(this,function(i,s,t){"use strict";const m=(e,o)=>{const n=e.__vccOpts||e;for(const[l,a]of o)n[l]=a;return n},f={name:"UserTaskTable",inject:["$socket"],props:{id:{type:String,required:!0},props:{type:Object,default:()=>({})},state:{type:Object,default:()=>({enabled:!1,visible:!1})}},data(){return{actions:[],tasks:[],headers:[]}},computed:{...s.mapState("data",["messages"])},mounted(){this.$socket.on("widget-load:"+this.id,e=>{this.initialize(e),this.$store.commit("data/bind",{widgetId:this.id,msg:e})}),this.$socket.on("msg-input:"+this.id,e=>{this.$store.commit("data/bind",{widgetId:this.id,msg:e})}),this.$socket.emit("widget-load",this.id)},unmounted(){var e,o;(e=this.$socket)==null||e.off("widget-load"+this.id),(o=this.$socket)==null||o.off("msg-input:"+this.id)},methods:{send(e,o){let n=[];n[o]=e,this.$socket.emit("widget-action",this.id,n)},actionFn(e,o){this.send({payload:o},this.actions.findIndex(n=>n.label===e.label))},initialize(e){this.tasks=e.payload.userTasks,this.actions=this.props.options,this.headers=this.props.columns.map(o=>({title:o.label,key:o.value})),this.headers.push({title:"Action",align:"center",key:"actions"})},conditionCheck(e,o){if(e=="")return!0;try{return new Function("row",`return ${e}`)(o)}catch(n){return console.error("Error evaluating condition:",n),!1}}}};function _(e,o,n,l,a,r){const u=t.resolveComponent("v-toolbar-title"),b=t.resolveComponent("v-toolbar"),d=t.resolveComponent("v-btn"),p=t.resolveComponent("v-container"),x=t.resolveComponent("v-data-table");return t.openBlock(),t.createBlock(x,{headers:a.headers,items:a.tasks,class:"full-width-table"},{top:t.withCtx(()=>[t.createVNode(b,null,{default:t.withCtx(()=>[t.createVNode(u,null,{default:t.withCtx(()=>[t.createTextVNode("UserTasks")]),_:1})]),_:1})]),"item.actions":t.withCtx(({item:h})=>[t.createVNode(p,{class:"action-button-container"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.actions,(c,C)=>(t.openBlock(),t.createBlock(p,{style:{padding:"0px",display:"inline",width:"fit-content",margin:"0px"}},{default:t.withCtx(()=>[r.conditionCheck(c.condition,h)?(t.openBlock(),t.createBlock(d,{style:{margin:"0px 2px"},key:C,size:"small",onClick:w=>r.actionFn(c,h)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(c.label),1)]),_:2},1032,["onClick"])):t.createCommentVNode("",!0)]),_:2},1024))),256))]),_:2},1024)]),"no-data":t.withCtx(()=>[t.createVNode(d,{color:"primary",onClick:r.initialize},{default:t.withCtx(()=>[t.createTextVNode(" Reload ")]),_:1},8,["onClick"])]),_:1},8,["headers","items"])}const k=m(f,[["render",_],["__scopeId","data-v-1781db1e"]]);i.UserTaskTable=k,Object.defineProperty(i,Symbol.toStringTag,{value:"Module"})}); |
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
35766