@5minds/node-red-dashboard-2-processcube-dynamic-table 2.0.3 → 2.0.4
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/nodes/dynamic-table.html +392 -369
- package/nodes/dynamic-table.js +11 -1
- package/package.json +89 -88
- package/resources/ui-dynamic-table.umd.js +22 -19
- package/ui/components/UIDynamicTable.vue +428 -50
package/nodes/dynamic-table.js
CHANGED
|
@@ -14,7 +14,17 @@ module.exports = function (RED) {
|
|
|
14
14
|
beforeSend: function (msg) {
|
|
15
15
|
if (Array.isArray(msg)) return msg;
|
|
16
16
|
msg.payload = RED.util.evaluateNodeProperty(config.data, config.data_type, node, msg);
|
|
17
|
-
|
|
17
|
+
|
|
18
|
+
// Pass JSONata expressions to frontend for per-row evaluation
|
|
19
|
+
if (config.options && Array.isArray(config.options)) {
|
|
20
|
+
msg._jsonataLabels = {};
|
|
21
|
+
config.options.forEach((option, index) => {
|
|
22
|
+
if (option.label_type === 'jsonata' && option.label) {
|
|
23
|
+
msg._jsonataLabels[index] = option.label;
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
|
|
18
28
|
return msg;
|
|
19
29
|
},
|
|
20
30
|
onInput: function (msg, send, done) {
|
package/package.json
CHANGED
|
@@ -1,94 +1,95 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
},
|
|
15
|
-
"license": "Apache-2.0",
|
|
16
|
-
"author": {
|
|
17
|
-
"name": "Martin Moellenbeck",
|
|
18
|
-
"url": "https://github.com/moellenbeck"
|
|
19
|
-
},
|
|
20
|
-
"contributors": [
|
|
21
|
-
{
|
|
22
|
-
"name": "Luis Thieme",
|
|
23
|
-
"url": "https://github.com/luisthieme"
|
|
24
|
-
}
|
|
25
|
-
],
|
|
26
|
-
"maintainers": [
|
|
27
|
-
{
|
|
28
|
-
"name": "Martin Moellenbeck",
|
|
29
|
-
"email": "martin.moellenbeck@5minds.de"
|
|
2
|
+
"name": "@5minds/node-red-dashboard-2-processcube-dynamic-table",
|
|
3
|
+
"version": "2.0.4",
|
|
4
|
+
"description": "A ui component for showing dynamic Data with actions in a table",
|
|
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/node-red-dashboard-2-processcube-dynamic-table.git"
|
|
30
14
|
},
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
15
|
+
"license": "Apache-2.0",
|
|
16
|
+
"author": {
|
|
17
|
+
"name": "Martin Moellenbeck",
|
|
18
|
+
"url": "https://github.com/moellenbeck"
|
|
34
19
|
},
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
"
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
"
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
"
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
"
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
20
|
+
"contributors": [
|
|
21
|
+
{
|
|
22
|
+
"name": "Luis Thieme",
|
|
23
|
+
"url": "https://github.com/luisthieme"
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"maintainers": [
|
|
27
|
+
{
|
|
28
|
+
"name": "Martin Moellenbeck",
|
|
29
|
+
"email": "martin.moellenbeck@5minds.de"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"name": "Luis Thieme",
|
|
33
|
+
"email": "luis.thieme@5minds.de"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"name": "Jeremy Hill",
|
|
37
|
+
"email": "jeremy.hill@5minds.de"
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
"exports": {
|
|
41
|
+
"require": "./resources/ui-dynamic-table.umd.js"
|
|
42
|
+
},
|
|
43
|
+
"files": [
|
|
44
|
+
"dist/*",
|
|
45
|
+
"nodes/*",
|
|
46
|
+
"ui/*",
|
|
47
|
+
"resources/*"
|
|
48
|
+
],
|
|
49
|
+
"scripts": {
|
|
50
|
+
"build": "vite build",
|
|
51
|
+
"build:dev": "NODE_ENV=development vite build",
|
|
52
|
+
"dev": "NODE_ENV=development vite build --watch",
|
|
53
|
+
"dev:prod": "vite build --watch",
|
|
54
|
+
"lint": "npm run lint:js && npm run lint:package",
|
|
55
|
+
"lint:fix": "npm run lint:js:fix && npm run lint:package:fix",
|
|
56
|
+
"lint:js": "eslint --ext .js,.vue,.cjs,.mjs .",
|
|
57
|
+
"lint:js:fix": "yarn lint:js --fix",
|
|
58
|
+
"lint:package": "sort-package-json --check 'package.json'",
|
|
59
|
+
"lint:package:fix": "sort-package-json 'package.json'"
|
|
60
|
+
},
|
|
61
|
+
"dependencies": {
|
|
62
|
+
"jsonata": "^2.1.0",
|
|
63
|
+
"vue": "^3.3.8",
|
|
64
|
+
"vuex": "^4.1.0"
|
|
65
|
+
},
|
|
66
|
+
"devDependencies": {
|
|
67
|
+
"@vitejs/plugin-vue": "^4.5.0",
|
|
68
|
+
"eslint": "^8.53.0",
|
|
69
|
+
"eslint-config-standard": "^17.1.0",
|
|
70
|
+
"eslint-plugin-import": "^2.29.0",
|
|
71
|
+
"eslint-plugin-n": "^16.3.1",
|
|
72
|
+
"eslint-plugin-vue": "^9.18.1",
|
|
73
|
+
"vite": "^5.3.2",
|
|
74
|
+
"vite-plugin-css-injected-by-js": "^3.3.0"
|
|
75
|
+
},
|
|
76
|
+
"engines": {
|
|
77
|
+
"node": ">=14"
|
|
78
|
+
},
|
|
79
|
+
"node-red": {
|
|
80
|
+
"version": ">=3.0.0",
|
|
81
|
+
"nodes": {
|
|
82
|
+
"ui-dynamic-table": "nodes/dynamic-table.js"
|
|
83
|
+
},
|
|
84
|
+
"examples": "examples"
|
|
82
85
|
},
|
|
83
|
-
"
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
}
|
|
86
|
+
"node-red-dashboard-2": {
|
|
87
|
+
"version": "1.0.0",
|
|
88
|
+
"widgets": {
|
|
89
|
+
"ui-dynamic-table": {
|
|
90
|
+
"output": "ui-dynamic-table.umd.js",
|
|
91
|
+
"component": "UIDynamicTable"
|
|
92
|
+
}
|
|
93
|
+
}
|
|
92
94
|
}
|
|
93
|
-
}
|
|
94
95
|
}
|