iobroker.javascript 8.7.7 → 8.8.0
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/README.md +4 -4
- package/admin/asset-manifest.json +5 -5
- package/admin/custom/customComponents.js +1 -1
- package/admin/custom/customComponents.js.map +1 -1
- package/admin/custom/static/js/{main.c5430a4c.js → main.2777482b.js} +2 -2
- package/admin/custom/static/js/{main.c5430a4c.js.map → main.2777482b.js.map} +1 -1
- package/admin/custom/static/js/{vendors-node_modules_leaflet_dist_leaflet_css-node_modules_iobroker_json-config_build_index_j-7fd384.a73f1f18.chunk.js → vendors-node_modules_leaflet_dist_leaflet_css-node_modules_iobroker_json-config_build_index_j-7fd384.9905725e.chunk.js} +7 -7
- package/admin/google-blockly/own/blocks_sendto.js +4 -6
- package/admin/static/js/253.22103681.chunk.js +2 -0
- package/admin/static/js/253.22103681.chunk.js.map +1 -0
- package/admin/static/js/{253.e26d7376.chunk.js → 253.2e3257d9.chunk.js} +2 -2
- package/admin/static/js/{253.e26d7376.chunk.js.map → 253.2e3257d9.chunk.js.map} +1 -1
- package/admin/static/js/{main.95b47fd0.js → main.4b1da50f.js} +2 -2
- package/admin/static/js/{main.6ad9d3fc.js.map → main.4b1da50f.js.map} +1 -1
- package/admin/static/js/{main.6ad9d3fc.js → main.a0dad369.js} +2 -2
- package/admin/static/js/{main.95b47fd0.js.map → main.a0dad369.js.map} +1 -1
- package/admin/static/js/main.d79356b6.js +2 -0
- package/admin/static/js/main.d79356b6.js.map +1 -0
- package/admin/tab.html +1 -1
- package/docs/en/javascript.md +36 -9
- package/io-package.json +113 -16
- package/lib/javascript.d.ts +7 -0
- package/lib/sandbox.js +7 -0
- package/package.json +1 -1
|
@@ -140,7 +140,7 @@ Blockly.Blocks['sendto_custom'] = {
|
|
|
140
140
|
mutationToDom: function () {
|
|
141
141
|
const container = document.createElement('mutation');
|
|
142
142
|
|
|
143
|
-
container.setAttribute('items', this.attributes_.join(','));
|
|
143
|
+
container.setAttribute('items', this.attributes_.map(a => encodeURIComponent(a)).join(','));
|
|
144
144
|
|
|
145
145
|
return container;
|
|
146
146
|
},
|
|
@@ -153,10 +153,8 @@ Blockly.Blocks['sendto_custom'] = {
|
|
|
153
153
|
this.attributes_ = [];
|
|
154
154
|
|
|
155
155
|
const names = xmlElement.getAttribute('items');
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
this.attributes_.push(name);
|
|
159
|
-
}
|
|
156
|
+
for (const name of names.split(',')) {
|
|
157
|
+
this.attributes_.push(decodeURIComponent(name));
|
|
160
158
|
}
|
|
161
159
|
|
|
162
160
|
this.itemCount_ = this.attributes_.length;
|
|
@@ -251,7 +249,7 @@ Blockly.Blocks['sendto_custom'] = {
|
|
|
251
249
|
if (!input) {
|
|
252
250
|
input = this.appendValueInput('ARG' + i).setAlign(Blockly.ALIGN_RIGHT);
|
|
253
251
|
input.appendField(this.attributes_[i]);
|
|
254
|
-
} else {
|
|
252
|
+
} else if (input.fieldRow.length >= 1) {
|
|
255
253
|
input.fieldRow[0].setValue(this.attributes_[i]);
|
|
256
254
|
}
|
|
257
255
|
|