node-red-contrib-knx-ultimate 4.3.2 → 4.3.3

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,6 +6,11 @@
6
6
 
7
7
  # CHANGELOG
8
8
 
9
+ **Version 4.3.3** - April 2026<br/>
10
+
11
+ - UI: in the **KNX Function helper**, the **Search GA** field is now always visible; if the ETS CSV is not imported, the field is disabled and shows `To enable the search, IMPORT THE ETS FILE`.<br/>
12
+ - In the KNX DEVICE NODE, added the "toggle with status" function snippet.<br/>
13
+
9
14
  **Version 4.3.2** - April 2026<br/>
10
15
 
11
16
  - Docs/help/wiki: updated **KNX AI** help HTML and wiki pages in all supported languages (EN/IT/DE/FR/ES/zh-CN) to reflect the latest LLM/Ollama UX changes.<br/>
@@ -516,6 +516,27 @@
516
516
  insertTextIntoEditor(editor, sanitizedValue);
517
517
  });
518
518
 
519
+ const $knxFunctionHelperInput = $("#node-input-knxFunctionHelperGAList");
520
+ const $knxFunctionHelperInsertButton = $("#btn-insert-knxFunctionGA");
521
+ let knxFunctionHelperDefaultPlaceholder = $knxFunctionHelperInput.attr('placeholder') || '';
522
+ if (!knxFunctionHelperDefaultPlaceholder) {
523
+ try {
524
+ knxFunctionHelperDefaultPlaceholder = RED._("node-red-contrib-knx-ultimate/knxUltimate:knxUltimate.placeholder.search") || '';
525
+ } catch (error) { }
526
+ }
527
+ const knxFunctionHelperNoEtsPlaceholder = 'To enable the search, IMPORT THE ETS FILE';
528
+ const refreshKnxFunctionHelperState = (hasEtsCsv) => {
529
+ $("#divknxFunctionHelperGAList").show();
530
+ $knxFunctionHelperInput.prop('disabled', !hasEtsCsv);
531
+ $knxFunctionHelperInsertButton.prop('disabled', !hasEtsCsv);
532
+ if (hasEtsCsv) {
533
+ $knxFunctionHelperInput.attr('placeholder', knxFunctionHelperDefaultPlaceholder);
534
+ } else {
535
+ $knxFunctionHelperInput.val('');
536
+ $knxFunctionHelperInput.attr('placeholder', knxFunctionHelperNoEtsPlaceholder);
537
+ }
538
+ };
539
+
519
540
  const configureSnippetPicker = (snippets, inputSelector, datalistSelector, applySnippet) => {
520
541
  const inputEl = $(inputSelector)
521
542
  const datalistEl = $(datalistSelector)
@@ -628,15 +649,13 @@
628
649
  try {
629
650
  if (typeof oNodeServer.csv !== "undefined" && oNodeServer.csv !== "") {
630
651
  $("#isETSFileLoaded").val("si");
631
- $("#divknxFunctionHelperGAList").show();
632
652
  } else {
633
653
  $("#isETSFileLoaded").val("no");
634
- $("#divknxFunctionHelperGAList").hide();
635
654
  }
636
655
  } catch (error) {
637
656
  $("#isETSFileLoaded").val("no");
638
- $("#divknxFunctionHelperGAList").hide();
639
657
  }
658
+ refreshKnxFunctionHelperState($("#isETSFileLoaded").val() === "si");
640
659
  if (oNodeServer.knxSecureSelected) {
641
660
  $("#divknxsecure").show();
642
661
  } else {