@matter-server/dashboard 1.5.6-alpha.0-20261114-ddb31cd → 1.6.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.
Files changed (84) hide show
  1. package/dist/esm/components/chip-list.d.ts +15 -0
  2. package/dist/esm/components/chip-list.d.ts.map +1 -0
  3. package/dist/esm/components/chip-list.js +20 -0
  4. package/dist/esm/components/chip-list.js.map +6 -0
  5. package/dist/esm/components/dialogs/fabric-label-dialog/fabric-label-dialog.d.ts.map +1 -1
  6. package/dist/esm/components/dialogs/fabric-label-dialog/fabric-label-dialog.js +11 -5
  7. package/dist/esm/components/dialogs/fabric-label-dialog/fabric-label-dialog.js.map +1 -1
  8. package/dist/esm/components/dialogs/node-label-dialog/node-label-dialog.d.ts.map +1 -1
  9. package/dist/esm/components/dialogs/node-label-dialog/node-label-dialog.js +2 -3
  10. package/dist/esm/components/dialogs/node-label-dialog/node-label-dialog.js.map +1 -1
  11. package/dist/esm/components/semantic-tag-chips.d.ts +1 -2
  12. package/dist/esm/components/semantic-tag-chips.d.ts.map +1 -1
  13. package/dist/esm/components/semantic-tag-chips.js +2 -10
  14. package/dist/esm/components/semantic-tag-chips.js.map +1 -1
  15. package/dist/esm/pages/cluster-commands/clusters/avsum-commands.d.ts.map +1 -1
  16. package/dist/esm/pages/cluster-commands/clusters/avsum-commands.js +4 -3
  17. package/dist/esm/pages/cluster-commands/clusters/avsum-commands.js.map +1 -1
  18. package/dist/esm/pages/cluster-commands/clusters/basic-information-commands.d.ts.map +1 -1
  19. package/dist/esm/pages/cluster-commands/clusters/basic-information-commands.js +2 -3
  20. package/dist/esm/pages/cluster-commands/clusters/basic-information-commands.js.map +1 -1
  21. package/dist/esm/pages/cluster-commands/clusters/zone-management-commands.d.ts.map +1 -1
  22. package/dist/esm/pages/cluster-commands/clusters/zone-management-commands.js +0 -1
  23. package/dist/esm/pages/cluster-commands/clusters/zone-management-commands.js.map +1 -1
  24. package/dist/esm/pages/matter-cluster-view.d.ts +1 -0
  25. package/dist/esm/pages/matter-cluster-view.d.ts.map +1 -1
  26. package/dist/esm/pages/matter-cluster-view.js +27 -1
  27. package/dist/esm/pages/matter-cluster-view.js.map +1 -1
  28. package/dist/esm/util/avsum.d.ts +7 -0
  29. package/dist/esm/util/avsum.d.ts.map +1 -1
  30. package/dist/esm/util/avsum.js +5 -0
  31. package/dist/esm/util/avsum.js.map +1 -1
  32. package/dist/esm/util/chip-text.d.ts +14 -0
  33. package/dist/esm/util/chip-text.d.ts.map +1 -0
  34. package/dist/esm/util/chip-text.js +16 -0
  35. package/dist/esm/util/chip-text.js.map +6 -0
  36. package/dist/esm/util/endpoint-label.d.ts.map +1 -1
  37. package/dist/esm/util/endpoint-label.js +8 -9
  38. package/dist/esm/util/endpoint-label.js.map +1 -1
  39. package/dist/esm/util/label-length.d.ts +11 -0
  40. package/dist/esm/util/label-length.d.ts.map +1 -0
  41. package/dist/esm/util/label-length.js +14 -0
  42. package/dist/esm/util/label-length.js.map +6 -0
  43. package/dist/esm/util/label-list.d.ts +33 -0
  44. package/dist/esm/util/label-list.d.ts.map +1 -0
  45. package/dist/esm/util/label-list.js +47 -0
  46. package/dist/esm/util/label-list.js.map +6 -0
  47. package/dist/esm/util/node-label.d.ts +3 -2
  48. package/dist/esm/util/node-label.d.ts.map +1 -1
  49. package/dist/esm/util/node-label.js +7 -3
  50. package/dist/esm/util/node-label.js.map +1 -1
  51. package/dist/esm/util/semantic-tags.d.ts +2 -5
  52. package/dist/esm/util/semantic-tags.d.ts.map +1 -1
  53. package/dist/esm/util/semantic-tags.js +2 -5
  54. package/dist/esm/util/semantic-tags.js.map +1 -1
  55. package/dist/web/js/{attribute-write-dialog-ShbilQzq.js → attribute-write-dialog-C5H1hYCh.js} +1 -1
  56. package/dist/web/js/{command-invoke-dialog-D6uUqzX3.js → command-invoke-dialog-DlbPP_Wu.js} +1 -1
  57. package/dist/web/js/{commission-node-dialog-CJ6aw9lk.js → commission-node-dialog-WFZcwSgL.js} +5 -5
  58. package/dist/web/js/{commission-node-existing-DE8IZQ5s.js → commission-node-existing-B-8_PJXh.js} +1 -1
  59. package/dist/web/js/{commission-node-thread-BuurVjpm.js → commission-node-thread-BMAaHRE7.js} +1 -1
  60. package/dist/web/js/{commission-node-wifi-DE-FUW4S.js → commission-node-wifi-KDjCP9BF.js} +1 -1
  61. package/dist/web/js/{dialog-box-DT5swFpZ.js → dialog-box-BL3Mqpl4.js} +1 -1
  62. package/dist/web/js/{fabric-label-dialog-dzunWV5m.js → fabric-label-dialog-CdYSfT08.js} +14 -6
  63. package/dist/web/js/main.js +3 -2
  64. package/dist/web/js/{matter-dashboard-app-B-zK5IW3.js → matter-dashboard-app-SgzIBXor.js} +137 -45
  65. package/dist/web/js/{node-acl-add-dialog-CcTsEhnc.js → node-acl-add-dialog-CMQZ5D8d.js} +1 -1
  66. package/dist/web/js/{node-binding-dialog-BbIqj67g.js → node-binding-dialog-CLh7bcJz.js} +1 -1
  67. package/dist/web/js/{node-label-dialog-CjXZbpK7.js → node-label-dialog-T264l0uQ.js} +2 -3
  68. package/dist/web/js/{settings-dialog-DUKiCCKZ.js → settings-dialog-DdsjlFA9.js} +1 -1
  69. package/package.json +4 -4
  70. package/src/components/chip-list.ts +26 -0
  71. package/src/components/dialogs/fabric-label-dialog/fabric-label-dialog.ts +11 -5
  72. package/src/components/dialogs/node-label-dialog/node-label-dialog.ts +2 -3
  73. package/src/components/semantic-tag-chips.ts +4 -12
  74. package/src/pages/cluster-commands/clusters/avsum-commands.ts +4 -3
  75. package/src/pages/cluster-commands/clusters/basic-information-commands.ts +2 -3
  76. package/src/pages/cluster-commands/clusters/zone-management-commands.ts +0 -1
  77. package/src/pages/matter-cluster-view.ts +35 -1
  78. package/src/util/avsum.ts +11 -0
  79. package/src/util/chip-text.ts +23 -0
  80. package/src/util/endpoint-label.ts +12 -19
  81. package/src/util/label-length.ts +15 -0
  82. package/src/util/label-list.ts +64 -0
  83. package/src/util/node-label.ts +8 -3
  84. package/src/util/semantic-tags.ts +3 -12
@@ -4873,7 +4873,7 @@ MdListItem = __decorate([t$1('md-list-item')], MdListItem);
4873
4873
  * SPDX-License-Identifier: Apache-2.0
4874
4874
  */
4875
4875
  const showSettingsDialog = async section => {
4876
- await import('./settings-dialog-DUKiCCKZ.js');
4876
+ await import('./settings-dialog-DdsjlFA9.js');
4877
4877
  const dialog = document.createElement("settings-dialog");
4878
4878
  if (section) dialog.scrollToSection = section;
4879
4879
  document.querySelector("matter-dashboard-app")?.renderRoot.appendChild(dialog);
@@ -26943,13 +26943,31 @@ const semantic_tag_namespaces = {
26943
26943
  }
26944
26944
  };
26945
26945
 
26946
+ /**
26947
+ * @license
26948
+ * Copyright 2026 Open Home Foundation
26949
+ * SPDX-License-Identifier: Apache-2.0
26950
+ */
26951
+ function renderChipList(chips, listClass = "") {
26952
+ if (chips.length === 0) return A;
26953
+ return b`
26954
+ <ul class="chip-list ${listClass}" role="list">
26955
+ ${chips.map(({
26956
+ text,
26957
+ title,
26958
+ erroneous
26959
+ }) => b`<li class=${erroneous ? "chip chip-error" : "chip"} title=${title}>${text}</li>`)}
26960
+ </ul>
26961
+ `;
26962
+ }
26963
+
26946
26964
  /**
26947
26965
  * @license
26948
26966
  * Copyright 2025-2026 Open Home Foundation
26949
26967
  * SPDX-License-Identifier: Apache-2.0
26950
26968
  */
26951
26969
  const showDialogBox = async (type, dialogParams) => {
26952
- await import('./dialog-box-DT5swFpZ.js');
26970
+ await import('./dialog-box-BL3Mqpl4.js');
26953
26971
  return new Promise(resolve => {
26954
26972
  const dialog = document.createElement("dialog-box");
26955
26973
  dialog.params = dialogParams;
@@ -26967,7 +26985,7 @@ const showPromptDialog = dialogParams => showDialogBox("prompt", dialogParams);
26967
26985
  * SPDX-License-Identifier: Apache-2.0
26968
26986
  */
26969
26987
  const showAttributeWriteDialog = async options => {
26970
- await import('./attribute-write-dialog-ShbilQzq.js');
26988
+ await import('./attribute-write-dialog-C5H1hYCh.js');
26971
26989
  const dialog = document.createElement("attribute-write-dialog");
26972
26990
  dialog.client = options.client;
26973
26991
  dialog.nodeId = options.nodeId;
@@ -26985,7 +27003,7 @@ const showAttributeWriteDialog = async options => {
26985
27003
  * SPDX-License-Identifier: Apache-2.0
26986
27004
  */
26987
27005
  const showCommandInvokeDialog = async options => {
26988
- await import('./command-invoke-dialog-D6uUqzX3.js');
27006
+ await import('./command-invoke-dialog-DlbPP_Wu.js');
26989
27007
  const dialog = document.createElement("command-invoke-dialog");
26990
27008
  dialog.client = options.client;
26991
27009
  dialog.nodeId = options.nodeId;
@@ -27152,6 +27170,22 @@ function isProtectedAdmin(entry, controllerNodeId) {
27152
27170
  return entry.privilege === 5 /* Administer */ && entry.authMode === 2 /* Case */ && subjectsInclude(entry, controllerNodeId);
27153
27171
  }
27154
27172
 
27173
+ /**
27174
+ * @license
27175
+ * Copyright 2026 Open Home Foundation
27176
+ * SPDX-License-Identifier: Apache-2.0
27177
+ */
27178
+ const RAW_ENTRY_TEXT_MAX = 60;
27179
+ function describeRawEntry(raw, structName) {
27180
+ const json = raw === void 0 ? "undefined" : toBigIntAwareJson(raw);
27181
+ const text = json.length > RAW_ENTRY_TEXT_MAX ? `${json.slice(0, RAW_ENTRY_TEXT_MAX - 1)}\u2026` : json;
27182
+ return {
27183
+ text,
27184
+ title: `Invalid ${structName}: ${json}`,
27185
+ erroneous: true
27186
+ };
27187
+ }
27188
+
27155
27189
  /**
27156
27190
  * @license
27157
27191
  * Copyright 2025-2026 Open Home Foundation
@@ -27233,19 +27267,12 @@ function decodeSemanticTagList(value) {
27233
27267
  function getEndpointSemanticTags(node, endpoint) {
27234
27268
  return decodeSemanticTagList(node.attributes[`${endpoint}/${DESCRIPTOR_CLUSTER_ID$1}/${TAG_LIST_ATTR}`]) ?? [];
27235
27269
  }
27236
- const RAW_ENTRY_TEXT_MAX = 60;
27237
27270
  function describeSemanticTagListEntry(entry) {
27238
27271
  if (entry.kind === "tag") return {
27239
27272
  ...describeSemanticTag(entry.semtag),
27240
27273
  erroneous: false
27241
27274
  };
27242
- const raw = entry.raw === void 0 ? "undefined" : toBigIntAwareJson(entry.raw);
27243
- const text = raw.length > RAW_ENTRY_TEXT_MAX ? `${raw.slice(0, RAW_ENTRY_TEXT_MAX - 1)}\u2026` : raw;
27244
- return {
27245
- text,
27246
- title: `Not a SemanticTagStruct: ${raw}`,
27247
- erroneous: true
27248
- };
27275
+ return describeRawEntry(entry.raw, "SemanticTagStruct");
27249
27276
  }
27250
27277
  function describeSemanticTag(semtag) {
27251
27278
  const {
@@ -27279,19 +27306,7 @@ function describeSemanticTag(semtag) {
27279
27306
  * SPDX-License-Identifier: Apache-2.0
27280
27307
  */
27281
27308
  function renderSemanticTagChips(entries, listClass = "") {
27282
- if (entries.length === 0) return A;
27283
- return b`
27284
- <ul class="chip-list ${listClass}" role="list">
27285
- ${entries.map(entry => {
27286
- const {
27287
- text,
27288
- title,
27289
- erroneous
27290
- } = describeSemanticTagListEntry(entry);
27291
- return b`<li class=${erroneous ? "chip chip-error" : "chip"} title=${title}>${text}</li>`;
27292
- })}
27293
- </ul>
27294
- `;
27309
+ return renderChipList(entries.map(describeSemanticTagListEntry), listClass);
27295
27310
  }
27296
27311
 
27297
27312
  /**
@@ -27459,7 +27474,7 @@ MdTextButton = __decorate([t$1('md-text-button')], MdTextButton);
27459
27474
  * SPDX-License-Identifier: Apache-2.0
27460
27475
  */
27461
27476
  const showNodeLabelDialog = async (client, node) => {
27462
- await import('./node-label-dialog-CjXZbpK7.js');
27477
+ await import('./node-label-dialog-T264l0uQ.js');
27463
27478
  const dialog = document.createElement("node-label-dialog");
27464
27479
  dialog.client = client;
27465
27480
  dialog.node = node;
@@ -31827,6 +31842,17 @@ function pickArray(obj, key) {
31827
31842
  return Array.isArray(v) ? v : [];
31828
31843
  }
31829
31844
 
31845
+ /**
31846
+ * @license
31847
+ * Copyright 2026 Open Home Foundation
31848
+ * SPDX-License-Identifier: Apache-2.0
31849
+ */
31850
+ function labelLengthError(label, maxBytes) {
31851
+ const bytes = new TextEncoder().encode(label).length;
31852
+ if (bytes <= maxBytes) return void 0;
31853
+ return `The label is ${bytes} bytes long, the maximum is ${maxBytes}; accented and non-Latin characters take more than one byte.`;
31854
+ }
31855
+
31830
31856
  /**
31831
31857
  * @license
31832
31858
  * Copyright 2025-2026 Open Home Foundation
@@ -31962,7 +31988,10 @@ async function moveToPreset(client, nodeId, endpoint, presetId) {
31962
31988
  presetID: presetId
31963
31989
  });
31964
31990
  }
31991
+ const PRESET_NAME_MAX_BYTES = 32;
31965
31992
  async function savePreset(client, nodeId, endpoint, name, presetId) {
31993
+ const lengthError = labelLengthError(name, PRESET_NAME_MAX_BYTES);
31994
+ if (lengthError !== void 0) throw new Error(lengthError);
31966
31995
  const payload = {
31967
31996
  name
31968
31997
  };
@@ -36512,11 +36541,59 @@ function computeActiveClusterFeatures(featureMapValue, knownFeatures) {
36512
36541
  * Copyright 2026 Open Home Foundation
36513
36542
  * SPDX-License-Identifier: Apache-2.0
36514
36543
  */
36515
- const BRIDGED_DEVICE_BASIC_INFORMATION_CLUSTER_ID = 57;
36516
- const BRIDGED_NODE_LABEL_ATTRIBUTE_ID = 5;
36517
36544
  const FIXED_LABEL_CLUSTER_ID = 64;
36518
36545
  const USER_LABEL_CLUSTER_ID = 65;
36519
- const LABEL_LIST_ATTRIBUTE_ID = 0;
36546
+ const LABEL_LIST_ATTR = 0;
36547
+ const LABEL_STRUCT_LABEL_TAG = 0;
36548
+ const LABEL_STRUCT_VALUE_TAG = 1;
36549
+ function labelField(raw) {
36550
+ return typeof raw === "string" && !raw.includes("\0") ? raw : void 0;
36551
+ }
36552
+ function decodeLabelListItem(entry) {
36553
+ const label = labelField(tagField(entry, LABEL_STRUCT_LABEL_TAG));
36554
+ const value = labelField(tagField(entry, LABEL_STRUCT_VALUE_TAG));
36555
+ return label === void 0 || value === void 0 ? void 0 : {
36556
+ label,
36557
+ value
36558
+ };
36559
+ }
36560
+ function decodeLabelList(value) {
36561
+ if (value === void 0 || value === null) return void 0;
36562
+ if (typeof value !== "object") return [{
36563
+ kind: "raw",
36564
+ raw: value
36565
+ }];
36566
+ return attributeArray(value).map(entry => {
36567
+ const item = decodeLabelListItem(entry);
36568
+ return item === void 0 ? {
36569
+ kind: "raw",
36570
+ raw: entry
36571
+ } : {
36572
+ kind: "label",
36573
+ item
36574
+ };
36575
+ });
36576
+ }
36577
+ function describeLabelListEntry(entry) {
36578
+ if (entry.kind === "raw") return describeRawEntry(entry.raw, "LabelStruct");
36579
+ const label = entry.item.label.trim();
36580
+ const value = entry.item.value.trim();
36581
+ const text = label !== "" && value !== "" ? `${label}: ${value}` : label || value || "(empty label)";
36582
+ const title = `Label ${JSON.stringify(entry.item.label)} = ${JSON.stringify(entry.item.value)}`;
36583
+ return {
36584
+ text,
36585
+ title,
36586
+ erroneous: false
36587
+ };
36588
+ }
36589
+
36590
+ /**
36591
+ * @license
36592
+ * Copyright 2026 Open Home Foundation
36593
+ * SPDX-License-Identifier: Apache-2.0
36594
+ */
36595
+ const BRIDGED_DEVICE_BASIC_INFORMATION_CLUSTER_ID = 57;
36596
+ const BRIDGED_NODE_LABEL_ATTRIBUTE_ID = 5;
36520
36597
  const MAX_LABEL_ENTRIES = 3;
36521
36598
  const MAX_LABEL_LENGTH = 60;
36522
36599
  function labelText(value) {
@@ -36524,7 +36601,7 @@ function labelText(value) {
36524
36601
  return text === void 0 || text.includes("\0") ? void 0 : text;
36525
36602
  }
36526
36603
  function decodeLabelListValues(raw) {
36527
- return attributeArray(raw).map(entry => labelText(tagField(entry, 1))).filter(value => value !== void 0);
36604
+ return attributeArray(raw).map(entry => labelText(tagField(entry, LABEL_STRUCT_VALUE_TAG))).filter(value => value !== void 0);
36528
36605
  }
36529
36606
  function joinLabels(values) {
36530
36607
  if (values.length === 0) return void 0;
@@ -36534,7 +36611,7 @@ function joinLabels(values) {
36534
36611
  function getEndpointLabel(node, endpoint) {
36535
36612
  const bridgedNodeLabel = labelText(node.attributes[`${endpoint}/${BRIDGED_DEVICE_BASIC_INFORMATION_CLUSTER_ID}/${BRIDGED_NODE_LABEL_ATTRIBUTE_ID}`]);
36536
36613
  if (bridgedNodeLabel !== void 0) return joinLabels([bridgedNodeLabel]);
36537
- return joinLabels(decodeLabelListValues(node.attributes[`${endpoint}/${USER_LABEL_CLUSTER_ID}/${LABEL_LIST_ATTRIBUTE_ID}`])) ?? joinLabels(decodeLabelListValues(node.attributes[`${endpoint}/${FIXED_LABEL_CLUSTER_ID}/${LABEL_LIST_ATTRIBUTE_ID}`]));
36614
+ return joinLabels(decodeLabelListValues(node.attributes[`${endpoint}/${USER_LABEL_CLUSTER_ID}/${LABEL_LIST_ATTR}`])) ?? joinLabels(decodeLabelListValues(node.attributes[`${endpoint}/${FIXED_LABEL_CLUSTER_ID}/${LABEL_LIST_ATTR}`]));
36538
36615
  }
36539
36616
 
36540
36617
  /**
@@ -36861,7 +36938,7 @@ async function downgradeToOperate(client, nodeId, keys) {
36861
36938
  * SPDX-License-Identifier: Apache-2.0
36862
36939
  */
36863
36940
  const showNodeAclAddDialog = async node => {
36864
- await import('./node-acl-add-dialog-CcTsEhnc.js');
36941
+ await import('./node-acl-add-dialog-CMQZ5D8d.js');
36865
36942
  const dialog = document.createElement("node-acl-add-dialog");
36866
36943
  dialog.node = node;
36867
36944
  document.querySelector("matter-dashboard-app")?.renderRoot.appendChild(dialog);
@@ -38058,10 +38135,10 @@ let AvsumClusterCommands = class extends BaseClusterCommands {
38058
38135
  async _renamePreset(presetId, currentName) {
38059
38136
  const node = this.node;
38060
38137
  const endpoint = this.endpoint;
38061
- const next = window.prompt("New name (max 32 chars)", currentName);
38138
+ const next = window.prompt(`New name (max ${PRESET_NAME_MAX_BYTES} bytes)`, currentName);
38062
38139
  if (typeof next !== "string" || !next.trim()) return;
38063
38140
  try {
38064
- await savePreset(this.client, node.node_id, endpoint, next.trim().slice(0, 32), presetId);
38141
+ await savePreset(this.client, node.node_id, endpoint, next.trim(), presetId);
38065
38142
  } catch (err) {
38066
38143
  if (this.isSameContext(node, endpoint)) {
38067
38144
  showAlertDialog({
@@ -38095,7 +38172,7 @@ let AvsumClusterCommands = class extends BaseClusterCommands {
38095
38172
  if (!this.node) return;
38096
38173
  const node = this.node;
38097
38174
  const endpoint = this.endpoint;
38098
- const name = this._newPresetName.trim().slice(0, 32);
38175
+ const name = this._newPresetName.trim();
38099
38176
  if (!name) return;
38100
38177
  try {
38101
38178
  await savePreset(this.client, node.node_id, endpoint, name);
@@ -39254,10 +39331,13 @@ MdOutlinedTextField = __decorate([t$1('md-outlined-text-field')], MdOutlinedText
39254
39331
  */
39255
39332
  const NODE_LABEL_CLUSTER_ID = 40;
39256
39333
  const NODE_LABEL_ATTRIBUTE_ID = 5;
39257
- const MAX_NODE_LABEL_LENGTH = 32;
39334
+ const NODE_LABEL_MAX_BYTES = 32;
39258
39335
  const NODE_LABEL_ATTRIBUTE_PATH = `0/${NODE_LABEL_CLUSTER_ID}/${NODE_LABEL_ATTRIBUTE_ID}`;
39259
39336
  async function writeNodeLabel(client, node, label) {
39260
- requireAttributeWriteSuccess(await client.writeAttribute(node.node_id, NODE_LABEL_ATTRIBUTE_PATH, label.trim()), "Writing the node label failed");
39337
+ const trimmed = label.trim();
39338
+ const lengthError = labelLengthError(trimmed, NODE_LABEL_MAX_BYTES);
39339
+ if (lengthError !== void 0) throw new Error(lengthError);
39340
+ requireAttributeWriteSuccess(await client.writeAttribute(node.node_id, NODE_LABEL_ATTRIBUTE_PATH, trimmed), "Writing the node label failed");
39261
39341
  }
39262
39342
 
39263
39343
  /**
@@ -39322,9 +39402,8 @@ let BasicInformationClusterCommands = class extends BaseClusterCommands {
39322
39402
  .value=${this._nodeLabel}
39323
39403
  @input=${this._handleInput}
39324
39404
  @keydown=${onEnter(handleAsync(() => this._handleSave()))}
39325
- maxlength=${MAX_NODE_LABEL_LENGTH}
39326
39405
  ?disabled=${!this._isNodeAvailable || this._saving}
39327
- supporting-text="Max ${MAX_NODE_LABEL_LENGTH} characters"
39406
+ supporting-text="Max ${NODE_LABEL_MAX_BYTES} bytes"
39328
39407
  ></md-outlined-text-field>
39329
39408
  <md-filled-button
39330
39409
  @click=${handleAsync(() => this._handleSave())}
@@ -39556,7 +39635,7 @@ async function deleteBinding(client, sourceNode, sourceEndpoint, target) {
39556
39635
  * SPDX-License-Identifier: Apache-2.0
39557
39636
  */
39558
39637
  const showNodeBindingDialog = async (node, endpoint) => {
39559
- await import('./node-binding-dialog-BbIqj67g.js');
39638
+ await import('./node-binding-dialog-CLh7bcJz.js');
39560
39639
  const dialog = document.createElement("node-binding-dialog");
39561
39640
  dialog.node = node;
39562
39641
  dialog.endpoint = endpoint;
@@ -52504,7 +52583,6 @@ let ZoneManagementClusterCommands = class extends BaseClusterCommands {
52504
52583
  <div class="zone-form-header">${target.create ? "New zone" : `Edit zone ${target.zoneId}`}</div>
52505
52584
  <md-outlined-text-field
52506
52585
  label="Name"
52507
- maxlength="32"
52508
52586
  .value=${this._zoneForm.name}
52509
52587
  @input=${e => this._setZoneField("name", e)}
52510
52588
  ></md-outlined-text-field>
@@ -53061,7 +53139,7 @@ let MatterClusterView = class extends i$4 {
53061
53139
  }
53062
53140
  _renderClusterInfoPanel() {
53063
53141
  const sections = new Array();
53064
- for (const section of [this._renderFeaturesSection(), this._renderTagListSection()]) {
53142
+ for (const section of [this._renderFeaturesSection(), this._renderTagListSection(), this._renderLabelListSection()]) {
53065
53143
  if (section !== void 0) sections.push(section);
53066
53144
  }
53067
53145
  if (sections.length === 0) return A;
@@ -53106,6 +53184,20 @@ let MatterClusterView = class extends i$4 {
53106
53184
  </div>
53107
53185
  `;
53108
53186
  }
53187
+ _renderLabelListSection() {
53188
+ if (this.cluster !== USER_LABEL_CLUSTER_ID && this.cluster !== FIXED_LABEL_CLUSTER_ID) return void 0;
53189
+ if (!this.node) return void 0;
53190
+ const value = this.node.attributes[`${this.endpoint}/${this.cluster}/${LABEL_LIST_ATTR}`];
53191
+ const labelList = decodeLabelList(value);
53192
+ if (labelList === void 0) return void 0;
53193
+ const title = this.cluster === USER_LABEL_CLUSTER_ID ? "User Labels (LabelList)" : "Fixed Labels (LabelList)";
53194
+ return b`
53195
+ <div class="info-section">
53196
+ <div class="info-section-header">${title}</div>
53197
+ ${labelList.length === 0 ? b`<p class="empty">No labels</p>` : renderChipList(labelList.map(describeLabelListEntry))}
53198
+ </div>
53199
+ `;
53200
+ }
53109
53201
  async _showAttributeValue(value) {
53110
53202
  showAlertDialog({
53111
53203
  title: "Attribute value",
@@ -67160,7 +67252,7 @@ MatterNodeView = __decorateClass$3([t$1("matter-node-view")], MatterNodeView);
67160
67252
  * SPDX-License-Identifier: Apache-2.0
67161
67253
  */
67162
67254
  const showCommissionNodeDialog = async () => {
67163
- await import('./commission-node-dialog-CJ6aw9lk.js');
67255
+ await import('./commission-node-dialog-WFZcwSgL.js');
67164
67256
  const dialog = document.createElement("commission-node-dialog");
67165
67257
  document.querySelector("matter-dashboard-app")?.renderRoot.appendChild(dialog);
67166
67258
  };
@@ -67171,7 +67263,7 @@ const showCommissionNodeDialog = async () => {
67171
67263
  * SPDX-License-Identifier: Apache-2.0
67172
67264
  */
67173
67265
  const showFabricLabelDialog = async (client, currentLabel, onSaved) => {
67174
- await import('./fabric-label-dialog-dzunWV5m.js');
67266
+ await import('./fabric-label-dialog-CdYSfT08.js');
67175
67267
  const dialog = document.createElement("fabric-label-dialog");
67176
67268
  dialog.client = client;
67177
67269
  dialog.currentLabel = currentLabel;
@@ -67817,4 +67909,4 @@ var matterDashboardApp = /*#__PURE__*/Object.freeze({
67817
67909
  __proto__: null
67818
67910
  });
67819
67911
 
67820
- export { A, targetServerClusters as B, clusters as C, DevModeService as D, AuthMode as E, addAclEntry as F, PRIVILEGE_NAMES as G, mdiClose as H, getDeviceName as I, targetAclCapacityForBinding as J, addBinding as K, bindableClusters as L, MAX_NODE_LABEL_LENGTH as M, getEndpointDeviceTypes as N, showSettingsDialog$1 as O, Privilege as P, matterDashboardApp as Q, clientContext as a, i$4 as b, c$5 as c, b as d, e$6 as e, fireAndForget as f, t$1 as g, handleAsync as h, i$7 as i, mdiPlus as j, mdiPencil as k, mdiDelete as l, mdiWifi as m, n$5 as n, mdiEyeOff as o, mdiEye as p, mdiAccessPoint as q, r$3 as r, showAlertDialog as s, tickContext as t, onEnter as u, requireAttributeWriteSuccess as v, formatHex as w, writeNodeLabel as x, nodeIdKey as y, aclCapacity as z };
67912
+ export { A, targetServerClusters as B, clusters as C, DevModeService as D, AuthMode as E, addAclEntry as F, PRIVILEGE_NAMES as G, mdiClose as H, getDeviceName as I, targetAclCapacityForBinding as J, addBinding as K, bindableClusters as L, getEndpointDeviceTypes as M, NODE_LABEL_MAX_BYTES as N, labelLengthError as O, Privilege as P, showSettingsDialog$1 as Q, matterDashboardApp as R, clientContext as a, i$4 as b, c$5 as c, b as d, e$6 as e, fireAndForget as f, t$1 as g, handleAsync as h, i$7 as i, mdiPlus as j, mdiPencil as k, mdiDelete as l, mdiWifi as m, n$5 as n, mdiEyeOff as o, mdiEye as p, mdiAccessPoint as q, r$3 as r, showAlertDialog as s, tickContext as t, onEnter as u, requireAttributeWriteSuccess as v, formatHex as w, writeNodeLabel as x, nodeIdKey as y, aclCapacity as z };
@@ -1,4 +1,4 @@
1
- import { i, c, a as clientContext, n, r, b as i$1, P as Privilege, y as nodeIdKey, z as aclCapacity, s as showAlertDialog, B as targetServerClusters, C as clusters, E as AuthMode, F as addAclEntry, G as PRIVILEGE_NAMES, d as b, H as mdiClose, I as getDeviceName, u as onEnter, h as handleAsync, g as t } from './matter-dashboard-app-B-zK5IW3.js';
1
+ import { i, c, a as clientContext, n, r, b as i$1, P as Privilege, y as nodeIdKey, z as aclCapacity, s as showAlertDialog, B as targetServerClusters, C as clusters, E as AuthMode, F as addAclEntry, G as PRIVILEGE_NAMES, d as b, H as mdiClose, I as getDeviceName, u as onEnter, h as handleAsync, g as t } from './matter-dashboard-app-SgzIBXor.js';
2
2
  import { p as preventDefault } from './prevent_default-D-ohDGsN.js';
3
3
  import './main.js';
4
4
 
@@ -1,4 +1,4 @@
1
- import { i, c, a as clientContext, n, r, b as i$1, y as nodeIdKey, C as clusters, s as showAlertDialog, J as targetAclCapacityForBinding, K as addBinding, L as bindableClusters, A, d as b, I as getDeviceName, N as getEndpointDeviceTypes, h as handleAsync, g as t } from './matter-dashboard-app-B-zK5IW3.js';
1
+ import { i, c, a as clientContext, n, r, b as i$1, y as nodeIdKey, C as clusters, s as showAlertDialog, J as targetAclCapacityForBinding, K as addBinding, L as bindableClusters, A, d as b, I as getDeviceName, M as getEndpointDeviceTypes, h as handleAsync, g as t } from './matter-dashboard-app-SgzIBXor.js';
2
2
  import { p as preventDefault } from './prevent_default-D-ohDGsN.js';
3
3
  import './main.js';
4
4
 
@@ -1,4 +1,4 @@
1
- import { r, n, g as t, b as i, M as MAX_NODE_LABEL_LENGTH, u as onEnter, h as handleAsync, d as b, x as writeNodeLabel, s as showAlertDialog } from './matter-dashboard-app-B-zK5IW3.js';
1
+ import { r, n, g as t, b as i, N as NODE_LABEL_MAX_BYTES, u as onEnter, h as handleAsync, d as b, x as writeNodeLabel, s as showAlertDialog } from './matter-dashboard-app-SgzIBXor.js';
2
2
  import { p as preventDefault } from './prevent_default-D-ohDGsN.js';
3
3
  import './main.js';
4
4
 
@@ -29,9 +29,8 @@ let NodeLabelDialog = class extends i {
29
29
  .value=${this._nodeLabel}
30
30
  @input=${this._handleInput}
31
31
  @keydown=${onEnter(handleAsync(() => this._save()))}
32
- maxlength=${MAX_NODE_LABEL_LENGTH}
33
32
  ?disabled=${this._saving}
34
- supporting-text="Max ${MAX_NODE_LABEL_LENGTH} characters"
33
+ supporting-text="Max ${NODE_LABEL_MAX_BYTES} bytes"
35
34
  style="width: 100%; margin-top: 8px;"
36
35
  ></md-outlined-text-field>
37
36
  </div>
@@ -1,4 +1,4 @@
1
- import { i, c, a as clientContext, t as tickContext, r, e, b as i$1, f as fireAndForget, s as showAlertDialog, d as b, A, h as handleAsync, g as t, n, D as DevModeService, m as mdiWifi, j as mdiPlus, k as mdiPencil, l as mdiDelete, o as mdiEyeOff, p as mdiEye, q as mdiAccessPoint, u as onEnter } from './matter-dashboard-app-B-zK5IW3.js';
1
+ import { i, c, a as clientContext, t as tickContext, r, e, b as i$1, f as fireAndForget, s as showAlertDialog, d as b, A, h as handleAsync, g as t, n, D as DevModeService, m as mdiWifi, j as mdiPlus, k as mdiPencil, l as mdiDelete, o as mdiEyeOff, p as mdiEye, q as mdiAccessPoint, u as onEnter } from './matter-dashboard-app-SgzIBXor.js';
2
2
  import { p as preventDefault } from './prevent_default-D-ohDGsN.js';
3
3
  import './main.js';
4
4
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@matter-server/dashboard",
3
- "version": "1.5.6-alpha.0-20261114-ddb31cd",
3
+ "version": "1.6.0",
4
4
  "description": "Dashboard for OHF Matter Server",
5
5
  "homepage": "https://github.com/matter-js/matterjs-server",
6
6
  "bugs": {
@@ -35,9 +35,9 @@
35
35
  "@babel/preset-env": "^8.0.7",
36
36
  "@lit/context": "^1.1.6",
37
37
  "@material/web": "^2.5.0",
38
- "@matter-server/custom-clusters": "1.5.6-alpha.0-20261114-ddb31cd",
39
- "@matter-server/ws-client": "1.5.6-alpha.0-20261114-ddb31cd",
40
- "@matter/main": "0.18.1-alpha.0-20261112-1f3a0999c",
38
+ "@matter-server/custom-clusters": "1.6.0",
39
+ "@matter-server/ws-client": "1.6.0",
40
+ "@matter/main": "0.18.1-alpha.0-20261114-e4326a175",
41
41
  "@mdi/js": "^7.4.47",
42
42
  "@rollup/plugin-babel": "^7.1.0",
43
43
  "@rollup/plugin-commonjs": "^29.0.3",
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2026 Open Home Foundation
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+
7
+ import { html, nothing, type TemplateResult } from "lit";
8
+ import type { ChipText } from "../util/chip-text.js";
9
+
10
+ /**
11
+ * Chip list for a decoded list attribute; erroneous chips get the error style.
12
+ *
13
+ * @param chips - an empty list renders nothing
14
+ * @param listClass - extra classes for the `<ul>`, e.g. `endpoint-tags chip-compact`
15
+ */
16
+ export function renderChipList(chips: ChipText[], listClass = ""): TemplateResult | typeof nothing {
17
+ if (chips.length === 0) return nothing;
18
+ return html`
19
+ <ul class="chip-list ${listClass}" role="list">
20
+ ${chips.map(
21
+ ({ text, title, erroneous }) =>
22
+ html`<li class=${erroneous ? "chip chip-error" : "chip"} title=${title}>${text}</li>`,
23
+ )}
24
+ </ul>
25
+ `;
26
+ }
@@ -13,11 +13,12 @@ import type { MatterClient } from "@matter-server/ws-client";
13
13
  import { html, LitElement } from "lit";
14
14
  import { customElement, property, state } from "lit/decorators.js";
15
15
  import { handleAsync } from "../../../util/async-handler.js";
16
+ import { labelLengthError } from "../../../util/label-length.js";
16
17
  import { onEnter } from "../../../util/on-enter.js";
17
18
  import { preventDefault } from "../../../util/prevent_default.js";
18
19
  import { showAlertDialog } from "../../dialog-box/show-dialog-box.js";
19
20
 
20
- const MAX_FABRIC_LABEL_LENGTH = 32;
21
+ const FABRIC_LABEL_MAX_BYTES = 32;
21
22
 
22
23
  @customElement("fabric-label-dialog")
23
24
  export class FabricLabelDialog extends LitElement {
@@ -50,9 +51,8 @@ export class FabricLabelDialog extends LitElement {
50
51
  .value=${this._fabricLabel}
51
52
  @input=${this._handleInput}
52
53
  @keydown=${onEnter(handleAsync(() => this._save()))}
53
- maxlength=${MAX_FABRIC_LABEL_LENGTH}
54
54
  ?disabled=${this._saving}
55
- supporting-text="Max ${MAX_FABRIC_LABEL_LENGTH} characters. Applies to the whole fabric."
55
+ supporting-text="Max ${FABRIC_LABEL_MAX_BYTES} bytes. Applies to the whole fabric."
56
56
  style="width: 100%; margin-top: 8px;"
57
57
  ></md-outlined-text-field>
58
58
  </div>
@@ -82,12 +82,18 @@ export class FabricLabelDialog extends LitElement {
82
82
  if (this._saving) {
83
83
  return;
84
84
  }
85
+ const label = this._fabricLabel.trim();
86
+ const lengthError = labelLengthError(label, FABRIC_LABEL_MAX_BYTES);
87
+ if (lengthError !== undefined) {
88
+ showAlertDialog({ title: "Failed to set fabric label", text: lengthError });
89
+ return;
90
+ }
85
91
  this._saving = true;
86
92
  try {
87
- await this.client.setDefaultFabricLabel(this._fabricLabel);
93
+ await this.client.setDefaultFabricLabel(label);
88
94
  // The server may silently ignore the change (CLI pin, or another connection owns the label),
89
95
  // so read it back and confirm it took before reporting success.
90
- const expected = (this._fabricLabel.trim() || "HomeAssistant").substring(0, MAX_FABRIC_LABEL_LENGTH);
96
+ const expected = label || "HomeAssistant";
91
97
  const current = await this.client.getFabricLabel();
92
98
  if (current !== expected) {
93
99
  this._saving = false;
@@ -12,7 +12,7 @@ import type { MatterClient, MatterNode } from "@matter-server/ws-client";
12
12
  import { html, LitElement } from "lit";
13
13
  import { customElement, property, state } from "lit/decorators.js";
14
14
  import { handleAsync } from "../../../util/async-handler.js";
15
- import { MAX_NODE_LABEL_LENGTH, writeNodeLabel } from "../../../util/node-label.js";
15
+ import { NODE_LABEL_MAX_BYTES, writeNodeLabel } from "../../../util/node-label.js";
16
16
  import { onEnter } from "../../../util/on-enter.js";
17
17
  import { preventDefault } from "../../../util/prevent_default.js";
18
18
  import { showAlertDialog } from "../../dialog-box/show-dialog-box.js";
@@ -45,9 +45,8 @@ export class NodeLabelDialog extends LitElement {
45
45
  .value=${this._nodeLabel}
46
46
  @input=${this._handleInput}
47
47
  @keydown=${onEnter(handleAsync(() => this._save()))}
48
- maxlength=${MAX_NODE_LABEL_LENGTH}
49
48
  ?disabled=${this._saving}
50
- supporting-text="Max ${MAX_NODE_LABEL_LENGTH} characters"
49
+ supporting-text="Max ${NODE_LABEL_MAX_BYTES} bytes"
51
50
  style="width: 100%; margin-top: 8px;"
52
51
  ></md-outlined-text-field>
53
52
  </div>
@@ -4,12 +4,12 @@
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
6
 
7
- import { html, nothing, type TemplateResult } from "lit";
7
+ import { nothing, type TemplateResult } from "lit";
8
8
  import { describeSemanticTagListEntry, type SemanticTagListEntry } from "../util/semantic-tags.js";
9
+ import { renderChipList } from "./chip-list.js";
9
10
 
10
11
  /**
11
- * Chip list for a Descriptor TagList. Every renderer must keep the decoder's `erroneous` flag
12
- * visible, so malformed entries cannot pass for valid tags in one view and not another.
12
+ * Chip list for a list of semantic tags, such as the Descriptor TagList.
13
13
  *
14
14
  * @param entries - decoded TagList entries; an empty list renders nothing
15
15
  * @param listClass - extra classes for the `<ul>`, e.g. `endpoint-tags chip-compact`
@@ -18,13 +18,5 @@ export function renderSemanticTagChips(
18
18
  entries: SemanticTagListEntry[],
19
19
  listClass = "",
20
20
  ): TemplateResult | typeof nothing {
21
- if (entries.length === 0) return nothing;
22
- return html`
23
- <ul class="chip-list ${listClass}" role="list">
24
- ${entries.map(entry => {
25
- const { text, title, erroneous } = describeSemanticTagListEntry(entry);
26
- return html`<li class=${erroneous ? "chip chip-error" : "chip"} title=${title}>${text}</li>`;
27
- })}
28
- </ul>
29
- `;
21
+ return renderChipList(entries.map(describeSemanticTagListEntry), listClass);
30
22
  }
@@ -27,6 +27,7 @@ import {
27
27
  AVSUM_CLUSTER_ID,
28
28
  clampMptzDelta,
29
29
  moveToPreset,
30
+ PRESET_NAME_MAX_BYTES,
30
31
  readDptzStreams,
31
32
  readFeatures,
32
33
  readMovementState,
@@ -375,10 +376,10 @@ class AvsumClusterCommands extends BaseClusterCommands {
375
376
  private async _renamePreset(presetId: number, currentName: string) {
376
377
  const node = this.node;
377
378
  const endpoint = this.endpoint;
378
- const next = window.prompt("New name (max 32 chars)", currentName);
379
+ const next = window.prompt(`New name (max ${PRESET_NAME_MAX_BYTES} bytes)`, currentName);
379
380
  if (typeof next !== "string" || !next.trim()) return;
380
381
  try {
381
- await savePreset(this.client, node.node_id, endpoint, next.trim().slice(0, 32), presetId);
382
+ await savePreset(this.client, node.node_id, endpoint, next.trim(), presetId);
382
383
  } catch (err) {
383
384
  if (this.isSameContext(node, endpoint)) {
384
385
  showAlertDialog({ title: "Rename failed", text: err instanceof Error ? err.message : String(err) });
@@ -408,7 +409,7 @@ class AvsumClusterCommands extends BaseClusterCommands {
408
409
  if (!this.node) return;
409
410
  const node = this.node;
410
411
  const endpoint = this.endpoint;
411
- const name = this._newPresetName.trim().slice(0, 32);
412
+ const name = this._newPresetName.trim();
412
413
  if (!name) return;
413
414
  try {
414
415
  await savePreset(this.client, node.node_id, endpoint, name);
@@ -11,7 +11,7 @@ import { customElement, state } from "lit/decorators.js";
11
11
  import { showAlertDialog } from "../../../components/dialog-box/show-dialog-box.js";
12
12
  import { handleAsync } from "../../../util/async-handler.js";
13
13
  import { errorText } from "../../../util/error-text.js";
14
- import { MAX_NODE_LABEL_LENGTH, NODE_LABEL_CLUSTER_ID, writeNodeLabel } from "../../../util/node-label.js";
14
+ import { NODE_LABEL_MAX_BYTES, NODE_LABEL_CLUSTER_ID, writeNodeLabel } from "../../../util/node-label.js";
15
15
  import { onEnter } from "../../../util/on-enter.js";
16
16
  import { BaseClusterCommands } from "../base-cluster-commands.js";
17
17
  import { registerClusterCommands } from "../registry.js";
@@ -69,9 +69,8 @@ export class BasicInformationClusterCommands extends BaseClusterCommands {
69
69
  .value=${this._nodeLabel}
70
70
  @input=${this._handleInput}
71
71
  @keydown=${onEnter(handleAsync(() => this._handleSave()))}
72
- maxlength=${MAX_NODE_LABEL_LENGTH}
73
72
  ?disabled=${!this._isNodeAvailable || this._saving}
74
- supporting-text="Max ${MAX_NODE_LABEL_LENGTH} characters"
73
+ supporting-text="Max ${NODE_LABEL_MAX_BYTES} bytes"
75
74
  ></md-outlined-text-field>
76
75
  <md-filled-button
77
76
  @click=${handleAsync(() => this._handleSave())}
@@ -393,7 +393,6 @@ export class ZoneManagementClusterCommands extends BaseClusterCommands {
393
393
  <div class="zone-form-header">${target.create ? "New zone" : `Edit zone ${target.zoneId}`}</div>
394
394
  <md-outlined-text-field
395
395
  label="Name"
396
- maxlength="32"
397
396
  .value=${this._zoneForm.name}
398
397
  @input=${(e: Event) => this._setZoneField("name", e)}
399
398
  ></md-outlined-text-field>