Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@5minds/node-red-dashboard-2-processcube-usertask-table

Package Overview
Dependencies
Maintainers
27
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@5minds/node-red-dashboard-2-processcube-usertask-table - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

2

package.json
{
"name": "@5minds/node-red-dashboard-2-processcube-usertask-table",
"version": "1.0.3",
"version": "1.0.4",
"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 a=document.createElement("style");a.appendChild(document.createTextNode("h1[data-v-b87c608a]{margin-bottom:10px}h2[data-v-b87c608a]{margin-top:1.5rem;margin-bottom:.75rem}h3[data-v-b87c608a]{margin-top:1rem}p[data-v-b87c608a]{margin-bottom:5px}ul li[data-v-b87c608a]{list-style-type:circle;list-style-position:inside;margin-left:15px}pre[data-v-b87c608a]{padding:12px;margin:12px;background-color:#eee}code[data-v-b87c608a]{font-size:.825rem;color:#ae0000}input[data-v-b87c608a]{padding:12px;margin:12px;background-color:#eee}.task-div[data-v-b87c608a]{padding:8px;margin:16px;border:solid;border-radius:4px;border-color:#303030}.action-button-container[data-v-b87c608a]{width:100%;display:flex;gap:4px;justify-content:center}")),document.head.appendChild(a)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
(function(s,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("vuex"),require("vue")):typeof define=="function"&&define.amd?define(["exports","vuex","vue"],n):(s=typeof globalThis<"u"?globalThis:s||self,n(s["usertask-table"]={},s.vuex,s.Vue))})(this,function(s,n,t){"use strict";const p=(e,o)=>{const i=e.__vccOpts||e;for(const[c,a]of o)i[c]=a;return i},h={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:{...n.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 i=[];i[o]=e,this.$socket.emit("widget-action",this.id,i)},actionFn(e,o){this.send({payload:o},this.actions.findIndex(i=>i.value===e.value))},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"})}}};function m(e,o,i,c,a,r){const f=t.resolveComponent("v-toolbar-title"),k=t.resolveComponent("v-toolbar"),d=t.resolveComponent("v-btn"),b=t.resolveComponent("v-container"),u=t.resolveComponent("v-data-table");return t.openBlock(),t.createBlock(u,{headers:a.headers,items:a.tasks,class:"full-width-table"},{top:t.withCtx(()=>[t.createVNode(k,null,{default:t.withCtx(()=>[t.createVNode(f,null,{default:t.withCtx(()=>[t.createTextVNode("UserTasks")]),_:1})]),_:1})]),"item.actions":t.withCtx(({item:x})=>[t.createVNode(b,{class:"action-button-container"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.actions,(l,C)=>(t.openBlock(),t.createBlock(d,{key:C,size:"small",onClick:w=>r.actionFn(l,x)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(l.label),1)]),_:2},1032,["onClick"]))),128))]),_: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 _=p(h,[["render",m],["__scopeId","data-v-b87c608a"]]);s.UserTaskTable=_,Object.defineProperty(s,Symbol.toStringTag,{value:"Module"})});
(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"})});

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc