@node-red/editor-client 4.0.0 → 4.0.1

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.
@@ -27,7 +27,8 @@
27
27
  "lock": "固定",
28
28
  "unlock": "固定を解除",
29
29
  "locked": "固定済み",
30
- "unlocked": "固定なし"
30
+ "unlocked": "固定なし",
31
+ "format": "形式"
31
32
  },
32
33
  "type": {
33
34
  "string": "文字列",
@@ -281,8 +282,8 @@
281
282
  "selected": "選択したフロー",
282
283
  "current": "現在のタブ",
283
284
  "all": "全てのタブ",
284
- "compact": "インデントのないJSONフォーマット",
285
- "formatted": "インデント付きのJSONフォーマット",
285
+ "compact": "インデントなし",
286
+ "formatted": "インデント付き",
286
287
  "copy": "書き出し",
287
288
  "export": "ライブラリに書き出し",
288
289
  "exportAs": "書き出し先",
@@ -923,6 +924,8 @@
923
924
  }
924
925
  },
925
926
  "typedInput": {
927
+ "selected": "__count__個を選択",
928
+ "selected_plural": "__count__個を選択",
926
929
  "type": {
927
930
  "str": "文字列",
928
931
  "num": "数値",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@node-red/editor-client",
3
- "version": "4.0.0",
3
+ "version": "4.0.1",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
package/public/red/about CHANGED
@@ -1,3 +1,23 @@
1
+ #### 4.0.1: Maintenance Release
2
+
3
+ Editor
4
+
5
+ - Ensure subflow instance credential property values are extracted (#4802) @knolleary
6
+ - Use `_ADD_` value for both `add new...` and `none` options (#4800) @GogoVega
7
+ - Fix the config node select value assignment (#4788) @GogoVega
8
+ - Add tooltip for number of subflow instance on info tab (#4786) @kazuhitoyokoi
9
+ - Add Japanese translations for v4.0.0 (#4785) @kazuhitoyokoi
10
+
11
+ Runtime
12
+
13
+ - Ensure group nodes are properly exported in /flow api (#4803) @knolleary
14
+
15
+ Nodes
16
+
17
+ - Joins: make using msg.parts optional in join node (#4796) @dceejay
18
+ - HTTP Request: UI proxy should setup agents for both http_proxy and https_proxy (#4794) @Steve-Mcl
19
+ - HTTP Request: Remove default user agent (#4791) @Steve-Mcl
20
+
1
21
  #### 4.0.0: Milestone Release
2
22
 
3
23
  This marks the next major release of Node-RED. The following changes represent
package/public/red/red.js CHANGED
@@ -31825,7 +31825,7 @@ RED.sidebar.info = (function() {
31825
31825
  evt.stopPropagation();
31826
31826
  RED.search.show("type:subflow:"+n.id);
31827
31827
  })
31828
- // RED.popover.tooltip(userCountBadge,function() { return RED._('editor.nodesUse',{count:n.users.length})});
31828
+ RED.popover.tooltip(subflowInstanceBadge,function() { return RED._('subflow.subflowInstances',{count:n.instances.length})});
31829
31829
  }
31830
31830
  if (n._def.category === "config" && n.type !== "group") {
31831
31831
  var userCountBadge = $('<button type="button" class="red-ui-info-outline-item-control-users red-ui-button red-ui-button-small"><i class="fa fa-toggle-right"></i></button>').text(n.users.length).appendTo(controls).on("click",function(evt) {
@@ -35603,11 +35603,8 @@ RED.editor = (function() {
35603
35603
  if (selectedOpt?.data('env')) {
35604
35604
  disableButton(addButton, true);
35605
35605
  disableButton(editButton, true);
35606
- // disable the edit button if no options available
35607
- } else if (optionsLength === 1 && selectedOpt.val() === "_ADD_") {
35608
- disableButton(addButton, false);
35609
- disableButton(editButton, true);
35610
- } else if (selectedOpt.val() === "") {
35606
+ // disable the edit button if no options available or 'none' selected
35607
+ } else if (optionsLength === 1 || selectedOpt.val() === "_ADD_") {
35611
35608
  disableButton(addButton, false);
35612
35609
  disableButton(editButton, true);
35613
35610
  } else {
@@ -35616,14 +35613,9 @@ RED.editor = (function() {
35616
35613
  }
35617
35614
  });
35618
35615
 
35619
- var label = "";
35620
- var configNode = RED.nodes.node(nodeValue);
35621
-
35622
- if (configNode) {
35623
- label = RED.utils.getNodeLabel(configNode, configNode.id);
35624
- }
35625
-
35626
- input.val(label);
35616
+ // If the value is "", 'add new...' option if no config node available or 'none' option
35617
+ // Otherwise, it's a config node
35618
+ select.val(nodeValue || '_ADD_');
35627
35619
  }
35628
35620
 
35629
35621
  /**
@@ -36124,9 +36116,11 @@ RED.editor = (function() {
36124
36116
  }
36125
36117
 
36126
36118
  if (!configNodes.length) {
36119
+ // Add 'add new...' option
36127
36120
  select.append('<option value="_ADD_" selected>' + RED._("editor.addNewType", { type: label }) + '</option>');
36128
36121
  } else {
36129
- select.append('<option value="">' + RED._("editor.inputs.none") + '</option>');
36122
+ // Add 'none' option
36123
+ select.append('<option value="_ADD_">' + RED._("editor.inputs.none") + '</option>');
36130
36124
  }
36131
36125
 
36132
36126
  window.setTimeout(function() { select.trigger("change");},50);
@@ -48882,7 +48876,7 @@ RED.subflow = (function() {
48882
48876
  input.val(val.value);
48883
48877
  break;
48884
48878
  case "cred":
48885
- input = $('<input type="password">').css('width','70%').appendTo(row);
48879
+ input = $('<input type="password">').css('width','70%').attr('id', elId).appendTo(row);
48886
48880
  if (node.credentials) {
48887
48881
  if (node.credentials[tenv.name]) {
48888
48882
  input.val(node.credentials[tenv.name]);
@@ -49128,7 +49122,7 @@ RED.subflow = (function() {
49128
49122
  }
49129
49123
  break;
49130
49124
  case "cred":
49131
- item.value = input.val();
49125
+ item.value = input.typedInput('value');
49132
49126
  item.type = 'cred';
49133
49127
  break;
49134
49128
  case "spinner":