node-red-contrib-knx-ultimate 2.1.59 → 2.1.60

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/CHANGELOG.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  # CHANGELOG
8
8
  <p>
9
- <b>Version 2.1.59</b> - October 2023<br/>
9
+ <b>Version 2.1.60</b> - October 2023<br/>
10
10
  - HUE Light: NEW color picker. A Color picker is shown in the right TABS of node-red, as soon as you open the light node. You can choose the color you want, and paste the RGB color into the HUE light node.<br/>
11
11
  - HUE Light: the color getter is now not shown, whenever you select a grouped light. You can use the color picker instead.<br/>
12
12
  </p>
@@ -192,12 +192,12 @@
192
192
 
193
193
  // Copy to clipboard button
194
194
  $("#copyTextButton").on("click", function () {
195
- let text = $("#resultRGB").val();
196
- try {
197
- navigator.clipboard.writeText(text);
198
-
199
- } catch (err) {
200
- }
195
+ var copyText = document.getElementById("resultRGB");
196
+ // Select the text field
197
+ copyText.select();
198
+ copyText.setSelectionRange(0, 99999); // For mobile devices
199
+ // Copy the text inside the text field
200
+ navigator.clipboard.writeText(copyText.value);
201
201
  });
202
202
  // ####################################
203
203
 
@@ -401,6 +401,14 @@
401
401
  $('#divColorsAtSwitchOn').hide()
402
402
  $('#divColorCycle').hide()
403
403
  }
404
+ // Check if grouped, to hide/show the "Get current" buttons
405
+ if (element.deviceObject.type === "grouped_light") {
406
+ $("#getHueColorButton").hide();
407
+ $("#getColorAtSwitchOnNightTime").hide();
408
+ }else{
409
+ $("#getHueColorButton").show();
410
+ $("#getColorAtSwitchOnNightTime").show();
411
+ }
404
412
  return
405
413
  }
406
414
  });
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "engines": {
4
4
  "node": ">=16.0.0"
5
5
  },
6
- "version": "2.1.59",
6
+ "version": "2.1.60",
7
7
  "description": "Control your KNX intallation via Node-Red! Single Node KNX IN/OUT with optional ETS group address importer. Easy to use and highly configurable. With integrated Philips HUE devices handling.",
8
8
  "dependencies": {
9
9
  "binary-parser": "2.2.1",