@flowfuse/node-red-dashboard 1.30.2-d87fd21-202601161340.0 → 1.30.2
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/dist/apple-touch-icon.png +0 -0
- package/dist/assets/_basePickBy-FqRZvdub.js +1 -0
- package/dist/assets/_baseUniq-DiFk0efX.js +1 -0
- package/dist/assets/architectureDiagram-VXUJARFQ-jAqyWwtR.js +36 -0
- package/dist/assets/blockDiagram-VD42YOAC-CKJM_wgX.js +122 -0
- package/dist/assets/c4Diagram-YG6GDRKO-CxvH_CnU.js +10 -0
- package/dist/assets/chunk-4BX2VUAB-DIDmWMKO.js +1 -0
- package/dist/assets/chunk-55IACEB6-Df5y1Lp_.js +1 -0
- package/dist/assets/chunk-B4BG7PRW-CO-AHyum.js +165 -0
- package/dist/assets/chunk-DI55MBZ5-BybdrWiR.js +220 -0
- package/dist/assets/chunk-FMBD7UC4-X9A-MON_.js +15 -0
- package/dist/assets/chunk-QN33PNHL-Cu4PVK5_.js +1 -0
- package/dist/assets/chunk-QZHKN3VN-Dc9O1mlv.js +1 -0
- package/dist/assets/chunk-TZMSLE5B-BONSH9X8.js +1 -0
- package/dist/assets/classDiagram-2ON5EDUG-Cxnli4ed.js +1 -0
- package/dist/assets/classDiagram-v2-WZHVMYZB-Cxnli4ed.js +1 -0
- package/dist/assets/clone-B9AAPnxW.js +1 -0
- package/dist/assets/cose-bilkent-S5V4N54A-DLVc0vYA.js +1 -0
- package/dist/assets/cytoscape.esm-EolcthU4.js +16 -0
- package/dist/assets/dagre-6UL2VRFP-BUmOTBjK.js +4 -0
- package/dist/assets/diagram-PSM6KHXK-DDqf8b18.js +24 -0
- package/dist/assets/diagram-QEK2KX5R-p3AlQ66r.js +43 -0
- package/dist/assets/diagram-S2PKOQOG-CGFyLHgt.js +24 -0
- package/dist/assets/disconnected-BuxohaUu.png +0 -0
- package/dist/assets/echarts-B5dUVA7m.js +73 -0
- package/dist/assets/erDiagram-Q2GNP2WA-Bt9WYEVl.js +60 -0
- package/dist/assets/flowDiagram-NV44I4VS-C5THihSS.js +162 -0
- package/dist/assets/ganttDiagram-JELNMOA3-DAkh2oA5.js +267 -0
- package/dist/assets/gitGraphDiagram-NY62KEGX-CHv2T5DP.js +65 -0
- package/dist/assets/graph-BUdFdnDY.js +1 -0
- package/dist/assets/index-B1862Wtn.js +121 -0
- package/dist/assets/index-BKldaNxV.css +13 -0
- package/dist/assets/infoDiagram-WHAUD3N6-D3Iff__M.js +2 -0
- package/dist/assets/journeyDiagram-XKPGCS4Q-Dma7uvIP.js +139 -0
- package/dist/assets/kanban-definition-3W4ZIXB7-D56zGc6I.js +89 -0
- package/dist/assets/katex-ChWnQ-fc.js +261 -0
- package/dist/assets/layout-CX2674-m.js +1 -0
- package/dist/assets/logo-DIAzbBuw.png +0 -0
- package/dist/assets/materialdesignicons-webfont-B7mPwVP_.ttf +0 -0
- package/dist/assets/materialdesignicons-webfont-CSr8KVlo.eot +0 -0
- package/dist/assets/materialdesignicons-webfont-Dp5v-WZN.woff2 +0 -0
- package/dist/assets/materialdesignicons-webfont-PXm3-2wK.woff +0 -0
- package/dist/assets/mermaid-4yaRk5L6.js +256 -0
- package/dist/assets/mindmap-definition-VGOIOE7T-M2wzuJex.js +68 -0
- package/dist/assets/pieDiagram-ADFJNKIX-CS__cEty.js +30 -0
- package/dist/assets/quadrantDiagram-AYHSOK5B-Cq8EFFXy.js +7 -0
- package/dist/assets/requirementDiagram-UZGBJVZJ-DJ7dPR9-.js +64 -0
- package/dist/assets/sankeyDiagram-TZEHDZUN-Bv2bFVOF.js +10 -0
- package/dist/assets/sequenceDiagram-WL72ISMW-CNC5hfHr.js +145 -0
- package/dist/assets/stateDiagram-FKZM4ZOC-DPogLVYr.js +1 -0
- package/dist/assets/stateDiagram-v2-4FDKWEC3-DYEZ0q8X.js +1 -0
- package/dist/assets/timeline-definition-IT6M3QCI-DtZbKxJ6.js +61 -0
- package/dist/assets/treemap-KMMF4GRG--xu3S5FE.js +128 -0
- package/dist/assets/vue-vendor-0dSdYzIF.js +49 -0
- package/dist/assets/workbox-window.prod.es5-BIl4cyR9.js +2 -0
- package/dist/assets/xychartDiagram-PRI3JC2R-HntCx39-.js +7 -0
- package/dist/favicon.ico +0 -0
- package/dist/favicon.svg +482 -0
- package/dist/index.html +24 -0
- package/dist/logo-512x512.png +0 -0
- package/dist/logo.svg +482 -0
- package/dist/maskable-icon-512x512.png +0 -0
- package/dist/pwa-192x192.png +0 -0
- package/dist/pwa-512x512.png +0 -0
- package/dist/pwa-64x64.png +0 -0
- package/dist/sw.js +2 -0
- package/nodes/widgets/locales/de/ui_audio.json +3 -1
- package/nodes/widgets/locales/de/ui_number_input.json +2 -0
- package/nodes/widgets/locales/en-US/ui_audio.json +3 -1
- package/nodes/widgets/locales/en-US/ui_number_input.json +2 -0
- package/nodes/widgets/ui_audio.html +15 -1
- package/nodes/widgets/ui_audio.js +4 -3
- package/nodes/widgets/ui_button.js +1 -2
- package/nodes/widgets/ui_number_input.html +23 -1
- package/nodes/widgets/ui_number_input.js +9 -0
- package/nodes/widgets/ui_table.js +12 -13
- package/package.json +5 -2
|
@@ -58,7 +58,7 @@ module.exports = function (RED) {
|
|
|
58
58
|
payloadType = 'str'
|
|
59
59
|
}
|
|
60
60
|
} else if (payloadType === 'date') {
|
|
61
|
-
payload =
|
|
61
|
+
payload = RED.util.evaluateNodeProperty(payload, payloadType, node)
|
|
62
62
|
} else if (payloadType === 'num') {
|
|
63
63
|
payload = Number(payload)
|
|
64
64
|
} else {
|
|
@@ -74,7 +74,6 @@ module.exports = function (RED) {
|
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
msg.payload = payload
|
|
77
|
-
|
|
78
77
|
const updates = msg.ui_update
|
|
79
78
|
|
|
80
79
|
if (updates) {
|
|
@@ -36,7 +36,14 @@
|
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
tooltip: { value: '' },
|
|
39
|
+
delay: {
|
|
40
|
+
value: 300,
|
|
41
|
+
validate: function (v) {
|
|
42
|
+
return $('#node-input-sendOnDelay').is(':checked') ? (RED.validators.number()(v) && v >= 0) : true
|
|
43
|
+
}
|
|
44
|
+
},
|
|
39
45
|
passthru: { value: true },
|
|
46
|
+
sendOnDelay: { value: false },
|
|
40
47
|
sendOnBlur: { value: true },
|
|
41
48
|
sendOnEnter: { value: true },
|
|
42
49
|
className: { value: '' },
|
|
@@ -102,6 +109,13 @@
|
|
|
102
109
|
$('#node-input-sendOnClear').prop('checked', false)
|
|
103
110
|
}
|
|
104
111
|
|
|
112
|
+
// Handle in-place upgrade: existing nodes should maintain current behavior
|
|
113
|
+
if (this.delay === undefined) {
|
|
114
|
+
// Set delay to 0 and enable sendOnDelay for upgraded nodes
|
|
115
|
+
$('#node-input-delay').val('0')
|
|
116
|
+
$('#node-input-sendOnDelay').prop('checked', true)
|
|
117
|
+
}
|
|
118
|
+
|
|
105
119
|
if (!this.iconPosition) {
|
|
106
120
|
$('#node-input-iconPosition').val('left')
|
|
107
121
|
}
|
|
@@ -217,9 +231,17 @@
|
|
|
217
231
|
<div class="form-row">
|
|
218
232
|
<label style="width:auto" for="node-input-payload"><i class="fa fa-clock-o"></i> <span data-i18n="ui-number-input.label.sendMessageOn"></span></label>
|
|
219
233
|
</div>
|
|
234
|
+
<div class="form-row form-row-flex" style="padding-left: 25px; align-items: center;">
|
|
235
|
+
<input type="checkbox" checked id="node-input-sendOnDelay" style="display:inline-block; width:auto; vertical-align:top;">
|
|
236
|
+
<label style="width:auto" for="node-input-sendOnDelay"> <span data-i18n="ui-number-input.label.delay"></span></label>
|
|
237
|
+
<div id="node-input-delay-box">
|
|
238
|
+
<input type="text" style="width:58px" id="node-input-delay">
|
|
239
|
+
<label for="node-input-delay"><span data-i18n="ui-number-input.label.delayUnit"></span></label>
|
|
240
|
+
</div>
|
|
241
|
+
</div>
|
|
220
242
|
<div class="form-row" style="padding-left: 25px;">
|
|
221
243
|
<input type="checkbox" checked id="node-input-sendOnBlur" style="display:inline-block; width:auto; vertical-align:top;">
|
|
222
|
-
<label style="width:auto" for="node-input-sendOnBlur" data-i18n="ui-number-input.label.focusLeave"></label>
|
|
244
|
+
<label style="width:auto" for="node-input-sendOnBlur"> <span data-i18n="ui-number-input.label.focusLeave"></span></label>
|
|
223
245
|
</div>
|
|
224
246
|
<div id="node-input-container-sendOnEnter" class="form-row" style="padding-left: 25px;">
|
|
225
247
|
<input type="checkbox" checked id="node-input-sendOnEnter" style="display:inline-block; width:auto; vertical-align:top;">
|
|
@@ -6,6 +6,15 @@ module.exports = function (RED) {
|
|
|
6
6
|
function NumberInputNode (config) {
|
|
7
7
|
const node = this
|
|
8
8
|
|
|
9
|
+
// Handle in-place upgrade: set defaults for existing nodes
|
|
10
|
+
if (config.delay === undefined) {
|
|
11
|
+
config.delay = 0
|
|
12
|
+
config.sendOnDelay = true
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
// Ensure delay is a valid number >= 0
|
|
16
|
+
config.delay = Math.max(0, parseInt(config.delay, 10) || 0)
|
|
17
|
+
|
|
9
18
|
// create node in Node-RED
|
|
10
19
|
RED.nodes.createNode(this, config)
|
|
11
20
|
|
|
@@ -9,25 +9,24 @@ module.exports = function (RED) {
|
|
|
9
9
|
|
|
10
10
|
// which group are we rendering this widget
|
|
11
11
|
const group = RED.nodes.getNode(config.group)
|
|
12
|
-
const base = group
|
|
13
|
-
|
|
14
|
-
config.maxrows
|
|
12
|
+
const base = group?.getBase() // Used for datastore
|
|
13
|
+
config.maxrows = typeof config.maxrows === 'number' ? config.maxrows : parseInt(config.maxrows)
|
|
14
|
+
if (isNaN(config.maxrows) || config.maxrows < 0) {
|
|
15
|
+
config.maxrows = 0
|
|
16
|
+
}
|
|
15
17
|
|
|
16
|
-
if (config.columns) {
|
|
17
|
-
config.columns.
|
|
18
|
+
if (config.columns && Array.isArray(config.columns)) {
|
|
19
|
+
config.columns.forEach((col) => {
|
|
18
20
|
// map older data where 'label' was used.
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
key: col.key,
|
|
22
|
-
keyType: col.keyType || 'key',
|
|
23
|
-
type: col.type,
|
|
24
|
-
width: col.width,
|
|
25
|
-
align: col.align
|
|
21
|
+
if (typeof col.label !== 'undefined' && (typeof col.title === 'undefined' || col.title === '')) {
|
|
22
|
+
col.title = col.label
|
|
26
23
|
}
|
|
27
24
|
})
|
|
25
|
+
} else {
|
|
26
|
+
config.columns = undefined
|
|
28
27
|
}
|
|
29
28
|
|
|
30
|
-
if (
|
|
29
|
+
if (['append', 'replace'].indexOf(config.action) === -1) {
|
|
31
30
|
config.action = 'append'
|
|
32
31
|
}
|
|
33
32
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowfuse/node-red-dashboard",
|
|
3
|
-
"version": "1.30.2
|
|
3
|
+
"version": "1.30.2",
|
|
4
4
|
"description": "FlowFuse Dashboard - A collection of Node-RED nodes that provide functionality to build your own UI applications (inc. forms, buttons, charts).",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"node-red"
|
|
@@ -53,6 +53,8 @@
|
|
|
53
53
|
"lint:package": "sort-package-json --check 'package.json'",
|
|
54
54
|
"lint:package:fix": "sort-package-json 'package.json'",
|
|
55
55
|
"test": "mocha \"test/**/*.spec.js\"",
|
|
56
|
+
"test:cov": "npx nyc mocha \"test/**/*.spec.js\" && npx nyc report --reporter=html",
|
|
57
|
+
"test:cov:view": "npx open-cli coverage/index.html",
|
|
56
58
|
"test:debug": "mocha --inspect=9226 \"test/**/*.spec.js\"",
|
|
57
59
|
"watch": "npm-run-all --parallel watch:dashboard watch:node-red",
|
|
58
60
|
"watch:dashboard": "npm run dev",
|
|
@@ -165,6 +167,7 @@
|
|
|
165
167
|
},
|
|
166
168
|
"esbuild": ">=0.25.0",
|
|
167
169
|
"cross-spawn": "~7.0.5",
|
|
168
|
-
"js-yaml": ">=4.1.1"
|
|
170
|
+
"js-yaml": ">=4.1.1",
|
|
171
|
+
"tar": ">=7.5.4"
|
|
169
172
|
}
|
|
170
173
|
}
|