@matter-server/dashboard 1.5.4 → 1.5.6-alpha.0-20261026-4d929bb
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/dist/esm/client/models/descriptions.js +1 -1
- package/dist/esm/pages/matter-dashboard-app.d.ts.map +1 -1
- package/dist/esm/pages/matter-dashboard-app.js +8 -6
- package/dist/esm/pages/matter-dashboard-app.js.map +1 -1
- package/dist/web/js/{attribute-write-dialog-C-KBqyuJ.js → attribute-write-dialog-CdEF4YF3.js} +1 -1
- package/dist/web/js/{command-invoke-dialog-C4HMf49Q.js → command-invoke-dialog-0MsF2mpO.js} +1 -1
- package/dist/web/js/{commission-node-dialog-Driu7kGn.js → commission-node-dialog-DBN_qYau.js} +5 -5
- package/dist/web/js/{commission-node-existing-Dth2CY1e.js → commission-node-existing-DZOn3tX9.js} +1 -1
- package/dist/web/js/{commission-node-thread-CnixX2gX.js → commission-node-thread-Dt9JExPB.js} +1 -1
- package/dist/web/js/{commission-node-wifi-8im5zNEv.js → commission-node-wifi-BR6mzH1A.js} +1 -1
- package/dist/web/js/{dialog-box-Daj8_--D.js → dialog-box-CJ_v212y.js} +1 -1
- package/dist/web/js/{fabric-label-dialog-Bk6lPNvk.js → fabric-label-dialog-nbNQUgYh.js} +1 -1
- package/dist/web/js/main.js +2 -1
- package/dist/web/js/{matter-dashboard-app-BdO9wWRC.js → matter-dashboard-app-BDwjmGoN.js} +18 -16
- package/dist/web/js/{node-acl-add-dialog-OeLLubXq.js → node-acl-add-dialog-WBX1J0wO.js} +1 -1
- package/dist/web/js/{node-binding-dialog-DQ9R0KrP.js → node-binding-dialog-BHEbREQx.js} +1 -1
- package/dist/web/js/{node-label-dialog-IVEQrmsg.js → node-label-dialog-C_R7XUkv.js} +1 -1
- package/dist/web/js/{settings-dialog-gcsO83Jl.js → settings-dialog-DIuaswpJ.js} +1 -1
- package/package.json +3 -3
- package/src/client/models/descriptions.ts +1 -1
- package/src/pages/matter-dashboard-app.ts +9 -6
|
@@ -18602,7 +18602,7 @@ const clusters = {
|
|
|
18602
18602
|
},
|
|
18603
18603
|
"291503119": {
|
|
18604
18604
|
"id": 291503119,
|
|
18605
|
-
"label": "
|
|
18605
|
+
"label": "AqaraLedStripCluster",
|
|
18606
18606
|
"attributes": {
|
|
18607
18607
|
"19": {
|
|
18608
18608
|
"id": 19,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"matter-dashboard-app.d.ts","sourceRoot":"","sources":["../../../src/pages/matter-dashboard-app.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,YAAY,EAAe,MAAM,0BAA0B,CAAC;AAErE,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAa,MAAM,KAAK,CAAC;AAG9D,OAAO,2BAA2B,CAAC;AAEnC,OAAO,qBAAqB,CAAC;AAE7B,OAAO,uBAAuB,CAAC;AAC/B,OAAO,wBAAwB,CAAC;AAChC,OAAO,uBAAuB,CAAC;AAC/B,OAAO,oBAAoB,CAAC;AAC5B,OAAO,sBAAsB,CAAC;AAG9B,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,sBAAsB,EAAE,kBAAkB,CAAC;KAC9C;CACJ;AAED,cACM,kBAAmB,SAAQ,UAAU;IAC9B,OAAO,CAAC,MAAM,CAGrB;IAEO,OAAO,CAAC,WAAW,CAAuB;IAEnD,gFAAgF;IACvE,OAAO,CAAC,sBAAsB,CAAuB;IAEvD,MAAM,EAAG,YAAY,CAAC;IAG7B,OAAO,CAAC,MAAM,CAAuE;IAE5E,OAAO,CAAC,KAAK,CAAK;IAE3B,oGAAoG;IACpG,OAAO,CAAC,YAAY,CAAS;IAE7B,OAAO,CAAC,cAAc,CAAyD;IAC/E,OAAO,CAAC,YAAY,CAAwE;IAE5F,iFAAiF;IACjF,OAAO,CAAC,YAAY,CAAC,CAAa;IAElC,UAAmB,YAAY,CAAC,kBAAkB,EAAE,gBAAgB,CAA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,gBAAgB;IAWf,MAAM,yCA+Fd;IAED,OAAgB,MAAM,0BAwDpB;CACL"}
|
|
@@ -43,12 +43,13 @@ let MatterDashboardApp = class extends LitElement {
|
|
|
43
43
|
this.tickProvider = new ContextProvider(this, { context: tickContext, initialValue: 0 });
|
|
44
44
|
this._reconnect = () => {
|
|
45
45
|
this._state = "connecting";
|
|
46
|
-
this._connect();
|
|
46
|
+
this._connect("error");
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
49
|
firstUpdated(_changedProperties) {
|
|
50
50
|
super.firstUpdated(_changedProperties);
|
|
51
|
-
this.
|
|
51
|
+
this._setupEventListeners();
|
|
52
|
+
this._connect("error");
|
|
52
53
|
this._updateRoute = () => {
|
|
53
54
|
const hash = location.hash.substring(1);
|
|
54
55
|
const pathParts = hash.split("/");
|
|
@@ -84,16 +85,15 @@ let MatterDashboardApp = class extends LitElement {
|
|
|
84
85
|
window.addEventListener("hashchange", this._updateRoute);
|
|
85
86
|
this._updateRoute();
|
|
86
87
|
}
|
|
87
|
-
_connect() {
|
|
88
|
+
_connect(failureState) {
|
|
88
89
|
this.client.startListening().then(
|
|
89
90
|
() => {
|
|
90
91
|
this.clientProvider.setValue(this.client);
|
|
91
92
|
this.tickProvider.setValue(++this._tick);
|
|
92
93
|
this._state = "connected";
|
|
93
|
-
this._setupEventListeners();
|
|
94
94
|
},
|
|
95
95
|
(_err) => {
|
|
96
|
-
this._state =
|
|
96
|
+
this._state = failureState;
|
|
97
97
|
}
|
|
98
98
|
);
|
|
99
99
|
}
|
|
@@ -111,7 +111,9 @@ let MatterDashboardApp = class extends LitElement {
|
|
|
111
111
|
this.tickProvider.setValue(++this._tick);
|
|
112
112
|
});
|
|
113
113
|
this.client.addEventListener("connection_lost", () => {
|
|
114
|
-
this._state
|
|
114
|
+
if (this._state !== "connected") return;
|
|
115
|
+
this._state = "connecting";
|
|
116
|
+
this._connect("disconnected");
|
|
115
117
|
});
|
|
116
118
|
}
|
|
117
119
|
/**
|
|
@@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.js → attribute-write-dialog-CdEF4YF3.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i, n, r, e, b as i$1, u as requireAttributeWriteSuccess, A, v as formatHex, d as b, h as handleAsync, g as t } from './matter-dashboard-app-
|
|
1
|
+
import { i, n, r, e, b as i$1, u as requireAttributeWriteSuccess, A, v as formatHex, d as b, h as handleAsync, g as t } from './matter-dashboard-app-BDwjmGoN.js';
|
|
2
2
|
import { t as toBigIntAwareJson } from './main.js';
|
|
3
3
|
import { p as preventDefault } from './prevent_default-D-ohDGsN.js';
|
|
4
4
|
import { p as parseJsonPayload } from './parse-json-payload-DU9TWKdu.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i, n, r, e, b as i$1, A, v as formatHex, d as b, h as handleAsync, g as t } from './matter-dashboard-app-
|
|
1
|
+
import { i, n, r, e, b as i$1, A, v as formatHex, d as b, h as handleAsync, g as t } from './matter-dashboard-app-BDwjmGoN.js';
|
|
2
2
|
import { t as toBigIntAwareJson } from './main.js';
|
|
3
3
|
import { p as preventDefault } from './prevent_default-D-ohDGsN.js';
|
|
4
4
|
import { p as parseJsonPayload, i as isPlainObject } from './parse-json-payload-DU9TWKdu.js';
|
package/dist/web/js/{commission-node-dialog-Driu7kGn.js → commission-node-dialog-DBN_qYau.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r, c, a as clientContext, t as tickContext, g as t, b as i, d as b } from './matter-dashboard-app-
|
|
1
|
+
import { r, c, a as clientContext, t as tickContext, g as t, b as i, d as b } from './matter-dashboard-app-BDwjmGoN.js';
|
|
2
2
|
import { p as preventDefault } from './prevent_default-D-ohDGsN.js';
|
|
3
3
|
import './main.js';
|
|
4
4
|
|
|
@@ -52,18 +52,18 @@ let ComissionNodeDialog = class extends i {
|
|
|
52
52
|
if (!this.client.serverInfo.bluetooth_enabled) {
|
|
53
53
|
return;
|
|
54
54
|
}
|
|
55
|
-
import('./commission-node-wifi-
|
|
55
|
+
import('./commission-node-wifi-BR6mzH1A.js');
|
|
56
56
|
this._mode = "wifi";
|
|
57
57
|
}
|
|
58
58
|
_commissionThread() {
|
|
59
59
|
if (!this.client.serverInfo.bluetooth_enabled) {
|
|
60
60
|
return;
|
|
61
61
|
}
|
|
62
|
-
import('./commission-node-thread-
|
|
62
|
+
import('./commission-node-thread-Dt9JExPB.js');
|
|
63
63
|
this._mode = "thread";
|
|
64
64
|
}
|
|
65
65
|
_commissionExisting() {
|
|
66
|
-
import('./commission-node-existing-
|
|
66
|
+
import('./commission-node-existing-DZOn3tX9.js');
|
|
67
67
|
this._mode = "existing";
|
|
68
68
|
}
|
|
69
69
|
_nodeCommissioned(ev) {
|
|
@@ -71,7 +71,7 @@ let ComissionNodeDialog = class extends i {
|
|
|
71
71
|
this._close();
|
|
72
72
|
}
|
|
73
73
|
_requestSettings() {
|
|
74
|
-
import('./matter-dashboard-app-
|
|
74
|
+
import('./matter-dashboard-app-BDwjmGoN.js').then(function (n) { return n.N; }).then(({
|
|
75
75
|
showSettingsDialog
|
|
76
76
|
}) => {
|
|
77
77
|
showSettingsDialog("network-credentials");
|
package/dist/web/js/{commission-node-existing-Dth2CY1e.js → commission-node-existing-DZOn3tX9.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r, c, a as clientContext, n, e, g as t, b as i, A, h as handleAsync, d as b, s as showAlertDialog } from './matter-dashboard-app-
|
|
1
|
+
import { r, c, a as clientContext, n, e, g as t, b as i, A, h as handleAsync, d as b, s as showAlertDialog } from './matter-dashboard-app-BDwjmGoN.js';
|
|
2
2
|
import { f as fireEvent } from './fire_event-CJVsUQ4T.js';
|
|
3
3
|
import './main.js';
|
|
4
4
|
|
package/dist/web/js/{commission-node-thread-CnixX2gX.js → commission-node-thread-Dt9JExPB.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i, c, a as clientContext, n, r, e, b as i$1, A, h as handleAsync, d as b, q as mdiAccessPoint, s as showAlertDialog, g as t } from './matter-dashboard-app-
|
|
1
|
+
import { i, c, a as clientContext, n, r, e, b as i$1, A, h as handleAsync, d as b, q as mdiAccessPoint, s as showAlertDialog, g as t } from './matter-dashboard-app-BDwjmGoN.js';
|
|
2
2
|
import { f as fireEvent } from './fire_event-CJVsUQ4T.js';
|
|
3
3
|
import './main.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i, c, a as clientContext, n, r, e, b as i$1, A, h as handleAsync, d as b, m as mdiWifi, s as showAlertDialog, g as t } from './matter-dashboard-app-
|
|
1
|
+
import { i, c, a as clientContext, n, r, e, b as i$1, A, h as handleAsync, d as b, m as mdiWifi, s as showAlertDialog, g as t } from './matter-dashboard-app-BDwjmGoN.js';
|
|
2
2
|
import { f as fireEvent } from './fire_event-CJVsUQ4T.js';
|
|
3
3
|
import './main.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r, n, g as t, b as i, d as b, s as showAlertDialog } from './matter-dashboard-app-
|
|
1
|
+
import { r, n, g as t, b as i, d as b, s as showAlertDialog } from './matter-dashboard-app-BDwjmGoN.js';
|
|
2
2
|
import { p as preventDefault } from './prevent_default-D-ohDGsN.js';
|
|
3
3
|
import './main.js';
|
|
4
4
|
|
package/dist/web/js/main.js
CHANGED
|
@@ -252,6 +252,7 @@ class Connection {
|
|
|
252
252
|
this.logger.info("WebSocket Closed");
|
|
253
253
|
this.socket = void 0;
|
|
254
254
|
this.serverInfo = void 0;
|
|
255
|
+
reject(new Error("WebSocket closed before the server info arrived"));
|
|
255
256
|
onConnectionLost();
|
|
256
257
|
};
|
|
257
258
|
this.socket.onerror = error => {
|
|
@@ -1368,7 +1369,7 @@ const ThemeService = new ThemeServiceImpl();
|
|
|
1368
1369
|
* SPDX-License-Identifier: Apache-2.0
|
|
1369
1370
|
*/
|
|
1370
1371
|
async function main() {
|
|
1371
|
-
import('./matter-dashboard-app-
|
|
1372
|
+
import('./matter-dashboard-app-BDwjmGoN.js').then(function (n) { return n.O; });
|
|
1372
1373
|
let url = "";
|
|
1373
1374
|
const isProductionServer = window.__MATTERJS_PRODUCTION_MODE__ === true || location.origin.includes(":5580") || location.href.includes("hassio_ingress") || location.href.includes("/api/ingress/");
|
|
1374
1375
|
if (!isProductionServer) {
|
|
@@ -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-
|
|
4876
|
+
await import('./settings-dialog-DIuaswpJ.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);
|
|
@@ -23950,7 +23950,7 @@ const clusters = {
|
|
|
23950
23950
|
},
|
|
23951
23951
|
"291503119": {
|
|
23952
23952
|
"id": 291503119,
|
|
23953
|
-
"label": "
|
|
23953
|
+
"label": "AqaraLedStripCluster",
|
|
23954
23954
|
"attributes": {
|
|
23955
23955
|
"19": {
|
|
23956
23956
|
"id": 19,
|
|
@@ -26670,7 +26670,7 @@ const semantic_tag_namespaces = {
|
|
|
26670
26670
|
* SPDX-License-Identifier: Apache-2.0
|
|
26671
26671
|
*/
|
|
26672
26672
|
const showDialogBox = async (type, dialogParams) => {
|
|
26673
|
-
await import('./dialog-box-
|
|
26673
|
+
await import('./dialog-box-CJ_v212y.js');
|
|
26674
26674
|
return new Promise(resolve => {
|
|
26675
26675
|
const dialog = document.createElement("dialog-box");
|
|
26676
26676
|
dialog.params = dialogParams;
|
|
@@ -26688,7 +26688,7 @@ const showPromptDialog = dialogParams => showDialogBox("prompt", dialogParams);
|
|
|
26688
26688
|
* SPDX-License-Identifier: Apache-2.0
|
|
26689
26689
|
*/
|
|
26690
26690
|
const showAttributeWriteDialog = async options => {
|
|
26691
|
-
await import('./attribute-write-dialog-
|
|
26691
|
+
await import('./attribute-write-dialog-CdEF4YF3.js');
|
|
26692
26692
|
const dialog = document.createElement("attribute-write-dialog");
|
|
26693
26693
|
dialog.client = options.client;
|
|
26694
26694
|
dialog.nodeId = options.nodeId;
|
|
@@ -26706,7 +26706,7 @@ const showAttributeWriteDialog = async options => {
|
|
|
26706
26706
|
* SPDX-License-Identifier: Apache-2.0
|
|
26707
26707
|
*/
|
|
26708
26708
|
const showCommandInvokeDialog = async options => {
|
|
26709
|
-
await import('./command-invoke-dialog-
|
|
26709
|
+
await import('./command-invoke-dialog-0MsF2mpO.js');
|
|
26710
26710
|
const dialog = document.createElement("command-invoke-dialog");
|
|
26711
26711
|
dialog.client = options.client;
|
|
26712
26712
|
dialog.nodeId = options.nodeId;
|
|
@@ -27180,7 +27180,7 @@ MdTextButton = __decorate([t$1('md-text-button')], MdTextButton);
|
|
|
27180
27180
|
* SPDX-License-Identifier: Apache-2.0
|
|
27181
27181
|
*/
|
|
27182
27182
|
const showNodeLabelDialog = async (client, node) => {
|
|
27183
|
-
await import('./node-label-dialog-
|
|
27183
|
+
await import('./node-label-dialog-C_R7XUkv.js');
|
|
27184
27184
|
const dialog = document.createElement("node-label-dialog");
|
|
27185
27185
|
dialog.client = client;
|
|
27186
27186
|
dialog.node = node;
|
|
@@ -36418,7 +36418,7 @@ async function downgradeToOperate(client, nodeId, keys) {
|
|
|
36418
36418
|
* SPDX-License-Identifier: Apache-2.0
|
|
36419
36419
|
*/
|
|
36420
36420
|
const showNodeAclAddDialog = async node => {
|
|
36421
|
-
await import('./node-acl-add-dialog-
|
|
36421
|
+
await import('./node-acl-add-dialog-WBX1J0wO.js');
|
|
36422
36422
|
const dialog = document.createElement("node-acl-add-dialog");
|
|
36423
36423
|
dialog.node = node;
|
|
36424
36424
|
document.querySelector("matter-dashboard-app")?.renderRoot.appendChild(dialog);
|
|
@@ -38753,7 +38753,7 @@ async function deleteBinding(client, sourceNode, sourceEndpoint, target) {
|
|
|
38753
38753
|
* SPDX-License-Identifier: Apache-2.0
|
|
38754
38754
|
*/
|
|
38755
38755
|
const showNodeBindingDialog = async (node, endpoint) => {
|
|
38756
|
-
await import('./node-binding-dialog-
|
|
38756
|
+
await import('./node-binding-dialog-BHEbREQx.js');
|
|
38757
38757
|
const dialog = document.createElement("node-binding-dialog");
|
|
38758
38758
|
dialog.node = node;
|
|
38759
38759
|
dialog.endpoint = endpoint;
|
|
@@ -64599,7 +64599,7 @@ MatterNodeView = __decorateClass$3([t$1("matter-node-view")], MatterNodeView);
|
|
|
64599
64599
|
* SPDX-License-Identifier: Apache-2.0
|
|
64600
64600
|
*/
|
|
64601
64601
|
const showCommissionNodeDialog = async () => {
|
|
64602
|
-
await import('./commission-node-dialog-
|
|
64602
|
+
await import('./commission-node-dialog-DBN_qYau.js');
|
|
64603
64603
|
const dialog = document.createElement("commission-node-dialog");
|
|
64604
64604
|
document.querySelector("matter-dashboard-app")?.renderRoot.appendChild(dialog);
|
|
64605
64605
|
};
|
|
@@ -64610,7 +64610,7 @@ const showCommissionNodeDialog = async () => {
|
|
|
64610
64610
|
* SPDX-License-Identifier: Apache-2.0
|
|
64611
64611
|
*/
|
|
64612
64612
|
const showFabricLabelDialog = async (client, currentLabel, onSaved) => {
|
|
64613
|
-
await import('./fabric-label-dialog-
|
|
64613
|
+
await import('./fabric-label-dialog-nbNQUgYh.js');
|
|
64614
64614
|
const dialog = document.createElement("fabric-label-dialog");
|
|
64615
64615
|
dialog.client = client;
|
|
64616
64616
|
dialog.currentLabel = currentLabel;
|
|
@@ -65007,12 +65007,13 @@ let MatterDashboardApp = class extends i$4 {
|
|
|
65007
65007
|
});
|
|
65008
65008
|
this._reconnect = () => {
|
|
65009
65009
|
this._state = "connecting";
|
|
65010
|
-
this._connect();
|
|
65010
|
+
this._connect("error");
|
|
65011
65011
|
};
|
|
65012
65012
|
}
|
|
65013
65013
|
firstUpdated(_changedProperties) {
|
|
65014
65014
|
super.firstUpdated(_changedProperties);
|
|
65015
|
-
this.
|
|
65015
|
+
this._setupEventListeners();
|
|
65016
|
+
this._connect("error");
|
|
65016
65017
|
this._updateRoute = () => {
|
|
65017
65018
|
const hash = location.hash.substring(1);
|
|
65018
65019
|
const pathParts = hash.split("/");
|
|
@@ -65051,14 +65052,13 @@ let MatterDashboardApp = class extends i$4 {
|
|
|
65051
65052
|
window.addEventListener("hashchange", this._updateRoute);
|
|
65052
65053
|
this._updateRoute();
|
|
65053
65054
|
}
|
|
65054
|
-
_connect() {
|
|
65055
|
+
_connect(failureState) {
|
|
65055
65056
|
this.client.startListening().then(() => {
|
|
65056
65057
|
this.clientProvider.setValue(this.client);
|
|
65057
65058
|
this.tickProvider.setValue(++this._tick);
|
|
65058
65059
|
this._state = "connected";
|
|
65059
|
-
this._setupEventListeners();
|
|
65060
65060
|
}, _err => {
|
|
65061
|
-
this._state =
|
|
65061
|
+
this._state = failureState;
|
|
65062
65062
|
});
|
|
65063
65063
|
}
|
|
65064
65064
|
_setupEventListeners() {
|
|
@@ -65075,7 +65075,9 @@ let MatterDashboardApp = class extends i$4 {
|
|
|
65075
65075
|
this.tickProvider.setValue(++this._tick);
|
|
65076
65076
|
});
|
|
65077
65077
|
this.client.addEventListener("connection_lost", () => {
|
|
65078
|
-
this._state
|
|
65078
|
+
if (this._state !== "connected") return;
|
|
65079
|
+
this._state = "connecting";
|
|
65080
|
+
this._connect("disconnected");
|
|
65079
65081
|
});
|
|
65080
65082
|
}
|
|
65081
65083
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i, c, a as clientContext, n, r, b as i$1, P as Privilege, x as nodeIdKey, y as aclCapacity, s as showAlertDialog, z as targetServerClusters, B as clusters, C as AuthMode, E as addAclEntry, F as PRIVILEGE_NAMES, d as b, G as mdiClose, H as getDeviceName, h as handleAsync, g as t } from './matter-dashboard-app-
|
|
1
|
+
import { i, c, a as clientContext, n, r, b as i$1, P as Privilege, x as nodeIdKey, y as aclCapacity, s as showAlertDialog, z as targetServerClusters, B as clusters, C as AuthMode, E as addAclEntry, F as PRIVILEGE_NAMES, d as b, G as mdiClose, H as getDeviceName, h as handleAsync, g as t } from './matter-dashboard-app-BDwjmGoN.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, x as nodeIdKey, B as clusters, s as showAlertDialog, I as targetAclCapacityForBinding, J as addBinding, K as bindableClusters, A, d as b, H as getDeviceName, L as getEndpointDeviceTypes, h as handleAsync, g as t } from './matter-dashboard-app-
|
|
1
|
+
import { i, c, a as clientContext, n, r, b as i$1, x as nodeIdKey, B as clusters, s as showAlertDialog, I as targetAclCapacityForBinding, J as addBinding, K as bindableClusters, A, d as b, H as getDeviceName, L as getEndpointDeviceTypes, h as handleAsync, g as t } from './matter-dashboard-app-BDwjmGoN.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, d as b, w as writeNodeLabel, s as showAlertDialog } from './matter-dashboard-app-
|
|
1
|
+
import { r, n, g as t, b as i, M as MAX_NODE_LABEL_LENGTH, d as b, w as writeNodeLabel, s as showAlertDialog } from './matter-dashboard-app-BDwjmGoN.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, 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 } from './matter-dashboard-app-
|
|
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 } from './matter-dashboard-app-BDwjmGoN.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.
|
|
3
|
+
"version": "1.5.6-alpha.0-20261026-4d929bb",
|
|
4
4
|
"description": "Dashboard for OHF Matter Server",
|
|
5
5
|
"homepage": "https://github.com/matter-js/matterjs-server",
|
|
6
6
|
"bugs": {
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@lit/context": "^1.1.6",
|
|
36
36
|
"@material/web": "^2.5.0",
|
|
37
|
-
"@matter-server/custom-clusters": "1.5.
|
|
38
|
-
"@matter-server/ws-client": "1.5.
|
|
37
|
+
"@matter-server/custom-clusters": "1.5.6-alpha.0-20261026-4d929bb",
|
|
38
|
+
"@matter-server/ws-client": "1.5.6-alpha.0-20261026-4d929bb",
|
|
39
39
|
"@mdi/js": "^7.4.47",
|
|
40
40
|
"lit": "^3.3.3",
|
|
41
41
|
"qrcode-generator": "^2.0.4",
|
|
@@ -18653,7 +18653,7 @@ export const clusters: Record<number, ClusterDescription> = {
|
|
|
18653
18653
|
},
|
|
18654
18654
|
"291503119": {
|
|
18655
18655
|
"id": 291503119,
|
|
18656
|
-
"label": "
|
|
18656
|
+
"label": "AqaraLedStripCluster",
|
|
18657
18657
|
"attributes": {
|
|
18658
18658
|
"19": {
|
|
18659
18659
|
"id": 19,
|
|
@@ -57,7 +57,8 @@ class MatterDashboardApp extends LitElement {
|
|
|
57
57
|
|
|
58
58
|
protected override firstUpdated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void {
|
|
59
59
|
super.firstUpdated(_changedProperties);
|
|
60
|
-
this.
|
|
60
|
+
this._setupEventListeners();
|
|
61
|
+
this._connect("error");
|
|
61
62
|
|
|
62
63
|
// Handle history changes
|
|
63
64
|
this._updateRoute = () => {
|
|
@@ -109,17 +110,16 @@ class MatterDashboardApp extends LitElement {
|
|
|
109
110
|
this._updateRoute();
|
|
110
111
|
}
|
|
111
112
|
|
|
112
|
-
private _connect() {
|
|
113
|
+
private _connect(failureState: "error" | "disconnected") {
|
|
113
114
|
this.client.startListening().then(
|
|
114
115
|
() => {
|
|
115
116
|
// Publish context before flipping state so the connected render sees a defined client.
|
|
116
117
|
this.clientProvider.setValue(this.client);
|
|
117
118
|
this.tickProvider.setValue(++this._tick);
|
|
118
119
|
this._state = "connected";
|
|
119
|
-
this._setupEventListeners();
|
|
120
120
|
},
|
|
121
121
|
(_err: MatterError) => {
|
|
122
|
-
this._state =
|
|
122
|
+
this._state = failureState;
|
|
123
123
|
},
|
|
124
124
|
);
|
|
125
125
|
}
|
|
@@ -139,14 +139,17 @@ class MatterDashboardApp extends LitElement {
|
|
|
139
139
|
this.client.addEventListener("server_info_updated", () => {
|
|
140
140
|
this.tickProvider.setValue(++this._tick);
|
|
141
141
|
});
|
|
142
|
+
// One automatic attempt per lost connection; a failed attempt also fires connection_lost, which the state check ignores.
|
|
142
143
|
this.client.addEventListener("connection_lost", () => {
|
|
143
|
-
this._state
|
|
144
|
+
if (this._state !== "connected") return;
|
|
145
|
+
this._state = "connecting";
|
|
146
|
+
this._connect("disconnected");
|
|
144
147
|
});
|
|
145
148
|
}
|
|
146
149
|
|
|
147
150
|
private _reconnect = () => {
|
|
148
151
|
this._state = "connecting";
|
|
149
|
-
this._connect();
|
|
152
|
+
this._connect("error");
|
|
150
153
|
};
|
|
151
154
|
|
|
152
155
|
/**
|