@5minds/node-red-dashboard-2-processcube-dynamic-list 1.0.0-master-23dd92-m848h39y → 7.6.0-develop-51b534-mjy56xgr
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +78 -77
- package/resources/ui-dynamic-list.umd.js +1 -1
package/package.json
CHANGED
|
@@ -1,79 +1,80 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
],
|
|
26
|
-
"exports": {
|
|
27
|
-
"require": "./resources/ui-dynamic-list.umd.js"
|
|
28
|
-
},
|
|
29
|
-
"files": [
|
|
30
|
-
"dist/*",
|
|
31
|
-
"nodes/*",
|
|
32
|
-
"ui/*",
|
|
33
|
-
"resources/*"
|
|
34
|
-
],
|
|
35
|
-
"scripts": {
|
|
36
|
-
"build": "vite build",
|
|
37
|
-
"build:dev": "NODE_ENV=development vite build",
|
|
38
|
-
"dev": "NODE_ENV=development vite build --watch",
|
|
39
|
-
"dev:prod": "vite build --watch",
|
|
40
|
-
"lint": "npm run lint:js && npm run lint:package",
|
|
41
|
-
"lint:fix": "npm run lint:js:fix && npm run lint:package:fix",
|
|
42
|
-
"lint:js": "eslint --ext .js,.vue,.cjs,.mjs .",
|
|
43
|
-
"lint:js:fix": "yarn lint:js --fix",
|
|
44
|
-
"lint:package": "sort-package-json --check 'package.json'",
|
|
45
|
-
"lint:package:fix": "sort-package-json 'package.json'"
|
|
46
|
-
},
|
|
47
|
-
"dependencies": {
|
|
48
|
-
"vue": "^3.3.8",
|
|
49
|
-
"vuex": "^4.1.0"
|
|
50
|
-
},
|
|
51
|
-
"devDependencies": {
|
|
52
|
-
"@vitejs/plugin-vue": "^4.5.0",
|
|
53
|
-
"eslint": "^8.53.0",
|
|
54
|
-
"eslint-config-standard": "^17.1.0",
|
|
55
|
-
"eslint-plugin-import": "^2.29.0",
|
|
56
|
-
"eslint-plugin-n": "^16.3.1",
|
|
57
|
-
"eslint-plugin-vue": "^9.18.1",
|
|
58
|
-
"vite": "^5.3.2",
|
|
59
|
-
"vite-plugin-css-injected-by-js": "^3.3.0"
|
|
60
|
-
},
|
|
61
|
-
"engines": {
|
|
62
|
-
"node": ">=14"
|
|
63
|
-
},
|
|
64
|
-
"node-red": {
|
|
65
|
-
"version": ">=3.0.0",
|
|
66
|
-
"nodes": {
|
|
67
|
-
"ui-dynamic-list": "nodes/ui-dynamic-list.js"
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
"node-red-dashboard-2": {
|
|
71
|
-
"version": "1.0.0",
|
|
72
|
-
"widgets": {
|
|
73
|
-
"ui-dynamic-list": {
|
|
74
|
-
"output": "ui-dynamic-list.umd.js",
|
|
75
|
-
"component": "UIDynamicList"
|
|
76
|
-
}
|
|
77
|
-
}
|
|
2
|
+
"name": "@5minds/node-red-dashboard-2-processcube-dynamic-list",
|
|
3
|
+
"version": "7.6.0-develop-51b534-mjy56xgr",
|
|
4
|
+
"description": "A ui component for showing progress bars tracking a process",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"processcube",
|
|
7
|
+
"usertask",
|
|
8
|
+
"node-red",
|
|
9
|
+
"node-red-dashboard-2"
|
|
10
|
+
],
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "https://github.com/5minds/ProcessCube.LowCode.git",
|
|
14
|
+
"directory": "packages/node-red-dashboard-2-processcube-dynamic-list"
|
|
15
|
+
},
|
|
16
|
+
"license": "Apache-2.0",
|
|
17
|
+
"author": {
|
|
18
|
+
"name": "Martin Moellenbeck",
|
|
19
|
+
"url": "https://github.com/moellenbeck"
|
|
20
|
+
},
|
|
21
|
+
"contributors": [
|
|
22
|
+
{
|
|
23
|
+
"name": "Niclas Podzierski",
|
|
24
|
+
"url": "https://github.com/niclaspodzierski"
|
|
78
25
|
}
|
|
79
|
-
|
|
26
|
+
],
|
|
27
|
+
"exports": {
|
|
28
|
+
"require": "./resources/ui-dynamic-list.umd.js"
|
|
29
|
+
},
|
|
30
|
+
"files": [
|
|
31
|
+
"dist/*",
|
|
32
|
+
"nodes/*",
|
|
33
|
+
"ui/*",
|
|
34
|
+
"resources/*"
|
|
35
|
+
],
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"vue": "^3.3.8",
|
|
38
|
+
"vuex": "^4.1.0"
|
|
39
|
+
},
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"@vitejs/plugin-vue": "^4.5.0",
|
|
42
|
+
"eslint": "^8.53.0",
|
|
43
|
+
"eslint-config-standard": "^17.1.0",
|
|
44
|
+
"eslint-plugin-import": "^2.29.0",
|
|
45
|
+
"eslint-plugin-n": "^16.3.1",
|
|
46
|
+
"eslint-plugin-vue": "^9.18.1",
|
|
47
|
+
"vite": "^5.3.2",
|
|
48
|
+
"vite-plugin-css-injected-by-js": "^3.3.0"
|
|
49
|
+
},
|
|
50
|
+
"engines": {
|
|
51
|
+
"node": ">=14"
|
|
52
|
+
},
|
|
53
|
+
"node-red": {
|
|
54
|
+
"version": ">=3.0.0",
|
|
55
|
+
"nodes": {
|
|
56
|
+
"ui-dynamic-list": "nodes/ui-dynamic-list.js"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"node-red-dashboard-2": {
|
|
60
|
+
"version": "1.0.0",
|
|
61
|
+
"widgets": {
|
|
62
|
+
"ui-dynamic-list": {
|
|
63
|
+
"output": "ui-dynamic-list.umd.js",
|
|
64
|
+
"component": "UIDynamicList"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"scripts": {
|
|
69
|
+
"build": "vite build",
|
|
70
|
+
"build:dev": "NODE_ENV=development vite build",
|
|
71
|
+
"dev": "NODE_ENV=development vite build --watch",
|
|
72
|
+
"dev:prod": "vite build --watch",
|
|
73
|
+
"lint": "npm run lint:js && npm run lint:package",
|
|
74
|
+
"lint:fix": "npm run lint:js:fix && npm run lint:package:fix",
|
|
75
|
+
"lint:js": "eslint --ext .js,.vue,.cjs,.mjs .",
|
|
76
|
+
"lint:js:fix": "yarn lint:js --fix",
|
|
77
|
+
"lint:package": "sort-package-json --check 'package.json'",
|
|
78
|
+
"lint:package:fix": "sort-package-json 'package.json'"
|
|
79
|
+
}
|
|
80
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode(".list-entry[data-v-a51b547e]{background:#fff;display:flex;justify-content:space-between;padding:16px;margin-bottom:24px;border-radius:8px;box-shadow:0 0 8px #bababa;transition:box-shadow .25s ease;align-items:center}.list-entry-hoverable[data-v-a51b547e]{cursor:pointer}.list-entry-hoverable[data-v-a51b547e]:hover{box-shadow:0 0 32px #bababa;transition:box-shadow .5s ease}.list-entry_left[data-v-a51b547e]{display:flex;align-items:center;gap:24px}.list-entry_left-progress[data-v-a51b547e]{font-size:24px;font-weight:400;color:#405fa5}.list-entry_left-texts[data-v-a51b547e]{display:flex;flex-direction:column;gap:4px;justify-content:center}.list-entry_left-title[data-v-a51b547e]{display:flex;gap:8px;align-items:center}.list-entry_left-title-text[data-v-a51b547e]{font-size:18px;font-weight:400}.list-entry_left-title-state[data-v-a51b547e]{font-size:12px;color:#fff;font-weight:700;padding:4px 8px;border-radius:8px;border:2px solid transparent}.list-entry_left-details[data-v-a51b547e]{font-size:18px;color:#7a7a99;font-weight:400}.list-entry_right[data-v-a51b547e]{display:flex;align-self:center;flex-direction:column;align-items:end;gap:4px}.list-entry_right-assignee[data-v-a51b547e]{font-size:18px;font-weight:400}.list-entry_right-actions[data-v-a51b547e]{display:flex;gap:8px}.list-entry_right-action[data-v-a51b547e]{cursor:pointer;padding:4px;opacity:.6}.list-entry_right-action[data-v-a51b547e]:hover{opacity:1}")),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
|
-
(function(n,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(n=typeof globalThis<"u"?globalThis:n||self,t(n["ui-dynamic-list"]={},n.Vue))})(this,function(n,t){"use strict";const
|
|
2
|
+
(function(n,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(n=typeof globalThis<"u"?globalThis:n||self,t(n["ui-dynamic-list"]={},n.Vue))})(this,function(n,t){"use strict";const C=(e,s)=>{const i=e.__vccOpts||e;for(const[c,l]of s)i[c]=l;return i},m={name:"UIDynamicList",inject:["$socket"],props:{id:{type:String,required:!0},props:{type:Object,default:()=>({})},state:{type:Object,default:()=>({enabled:!0,visible:!0})}},computed:{},data(){return{actions:[],entries:[],itemHoverEffect:!0}},mounted(){this.$socket.on("widget-load:"+this.id,e=>{var s,i;this.actions=((s=this.props)==null?void 0:s.actions)??[],this.entries=(e==null?void 0:e.payload)??[],this.itemHoverEffect=((i=this.props)==null?void 0:i.itemHoverEffect)??!0}),this.$socket.on("msg-input:"+this.id,e=>{this.entries=e.payload??[]}),this.$socket.emit("widget-load",this.id)},unmounted(){var e,s;(e=this.$socket)==null||e.off("widget-load"+this.id),(s=this.$socket)==null||s.off("msg-input:"+this.id)},methods:{send(e,s){const i=[];i[s]={payload:e},this.$socket.emit("widget-action",this.id,i)},entryClicked(e){this.send(e,0)},actionClicked(e,s,i){i.stopPropagation();const c=this.actions.findIndex(l=>l.id===e.id);c>-1&&this.send(s,c+1)}}},h=["onClick"],k={class:"list-entry_left"},_={key:0,class:"list-entry_left-progress"},f={key:0,width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},g={key:1,width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y={class:"list-entry_left-texts"},B={class:"list-entry_left-title"},E={class:"list-entry_left-title-text"},w={key:0,class:"list-entry_left-details"},x={class:"list-entry_right"},V={class:"list-entry_right-actions"},b=["onClick","src"],N={key:0,class:"list-entry_right-assignee"};function L(e,s,i,c,l,a){return t.openBlock(),t.createElementBlock("div",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.entries,o=>{var d,p;return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["list-entry",{"list-entry-hoverable":l.itemHoverEffect}]),onClick:r=>a.entryClicked(o)},[t.createElementVNode("div",k,[((d=o.progress)==null?void 0:d.type)==="percentage"?(t.openBlock(),t.createElementBlock("span",_,t.toDisplayString(o.progress.value)+" %",1)):((p=o.progress)==null?void 0:p.type)==="boolean"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[o.progress.value===100?(t.openBlock(),t.createElementBlock("svg",f,[...s[0]||(s[0]=[t.createElementVNode("path",{d:"M12.04 20.44L21.91 10.57L19.95 8.61L12.04 16.52L8.05 12.53L6.09 14.49L12.04 20.44ZM14 28C12.0633 28 10.2433 27.6325 8.54 26.8975C6.83667 26.1625 5.355 25.165 4.095 23.905C2.835 22.645 1.8375 21.1633 1.1025 19.46C0.3675 17.7567 0 15.9367 0 14C0 12.0633 0.3675 10.2433 1.1025 8.54C1.8375 6.83667 2.835 5.355 4.095 4.095C5.355 2.835 6.83667 1.8375 8.54 1.1025C10.2433 0.3675 12.0633 0 14 0C15.9367 0 17.7567 0.3675 19.46 1.1025C21.1633 1.8375 22.645 2.835 23.905 4.095C25.165 5.355 26.1625 6.83667 26.8975 8.54C27.6325 10.2433 28 12.0633 28 14C28 15.9367 27.6325 17.7567 26.8975 19.46C26.1625 21.1633 25.165 22.645 23.905 23.905C22.645 25.165 21.1633 26.1625 19.46 26.8975C17.7567 27.6325 15.9367 28 14 28Z",fill:"#405FA5"},null,-1)])])):(t.openBlock(),t.createElementBlock("svg",g,[...s[1]||(s[1]=[t.createElementVNode("path",{d:"M14 28C12.0633 28 10.2433 27.6325 8.54 26.8975C6.83667 26.1625 5.355 25.165 4.095 23.905C2.835 22.645 1.8375 21.1633 1.1025 19.46C0.3675 17.7567 0 15.9367 0 14C0 12.0633 0.3675 10.2433 1.1025 8.54C1.8375 6.83667 2.835 5.355 4.095 4.095C5.355 2.835 6.83667 1.8375 8.54 1.1025C10.2433 0.3675 12.0633 0 14 0C15.9367 0 17.7567 0.3675 19.46 1.1025C21.1633 1.8375 22.645 2.835 23.905 4.095C25.165 5.355 26.1625 6.83667 26.8975 8.54C27.6325 10.2433 28 12.0633 28 14C28 15.9367 27.6325 17.7567 26.8975 19.46C26.1625 21.1633 25.165 22.645 23.905 23.905C22.645 25.165 21.1633 26.1625 19.46 26.8975C17.7567 27.6325 15.9367 28 14 28ZM14 25.2C17.1267 25.2 19.775 24.115 21.945 21.945C24.115 19.775 25.2 17.1267 25.2 14C25.2 10.8733 24.115 8.225 21.945 6.055C19.775 3.885 17.1267 2.8 14 2.8C10.8733 2.8 8.225 3.885 6.055 6.055C3.885 8.225 2.8 10.8733 2.8 14C2.8 17.1267 3.885 19.775 6.055 21.945C8.225 24.115 10.8733 25.2 14 25.2Z",fill:"black"},null,-1)])]))],64)):t.createCommentVNode("",!0),t.createElementVNode("div",y,[t.createElementVNode("div",B,[t.createElementVNode("span",E,t.toDisplayString(o.title),1),o.state?(t.openBlock(),t.createElementBlock("span",{key:0,class:"list-entry_left-title-state",style:t.normalizeStyle({backgroundColor:o.state.backgroundColor})},t.toDisplayString(o.state.text),5)):t.createCommentVNode("",!0)]),o.details?(t.openBlock(),t.createElementBlock("span",w,t.toDisplayString(o.details),1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",x,[t.createElementVNode("div",V,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.actions,r=>(t.openBlock(),t.createElementBlock("img",{onClick:D=>a.actionClicked(r,o,D),class:"list-entry_right-action",src:r.icon},null,8,b))),256))]),o.assignee?(t.openBlock(),t.createElementBlock("span",N,t.toDisplayString(o.assignee),1)):t.createCommentVNode("",!0)])],10,h)}),256))])}const S=C(m,[["render",L],["__scopeId","data-v-a51b547e"]]);n.UIDynamicList=S,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})});
|