@matter-server/dashboard 0.2.2 → 0.2.4-alpha.0-20260116-d0b21f3
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/pages/cluster-commands/base-cluster-commands.d.ts +25 -0
- package/dist/esm/pages/cluster-commands/base-cluster-commands.d.ts.map +1 -0
- package/dist/esm/pages/cluster-commands/base-cluster-commands.js +129 -0
- package/dist/esm/pages/cluster-commands/base-cluster-commands.js.map +6 -0
- package/dist/esm/pages/cluster-commands/clusters/level-control-commands.d.ts +29 -0
- package/dist/esm/pages/cluster-commands/clusters/level-control-commands.d.ts.map +1 -0
- package/dist/esm/pages/cluster-commands/clusters/level-control-commands.js +125 -0
- package/dist/esm/pages/cluster-commands/clusters/level-control-commands.js.map +6 -0
- package/dist/esm/pages/cluster-commands/clusters/on-off-commands.d.ts +25 -0
- package/dist/esm/pages/cluster-commands/clusters/on-off-commands.d.ts.map +1 -0
- package/dist/esm/pages/cluster-commands/clusters/on-off-commands.js +52 -0
- package/dist/esm/pages/cluster-commands/clusters/on-off-commands.js.map +6 -0
- package/dist/esm/pages/cluster-commands/index.d.ts +14 -0
- package/dist/esm/pages/cluster-commands/index.d.ts.map +1 -0
- package/dist/esm/pages/cluster-commands/index.js +16 -0
- package/dist/esm/pages/cluster-commands/index.js.map +6 -0
- package/dist/esm/pages/cluster-commands/registry.d.ts +24 -0
- package/dist/esm/pages/cluster-commands/registry.d.ts.map +1 -0
- package/dist/esm/pages/cluster-commands/registry.js +21 -0
- package/dist/esm/pages/cluster-commands/registry.js.map +6 -0
- package/dist/esm/pages/matter-cluster-view.d.ts +2 -0
- package/dist/esm/pages/matter-cluster-view.d.ts.map +1 -1
- package/dist/esm/pages/matter-cluster-view.js +32 -1
- package/dist/esm/pages/matter-cluster-view.js.map +1 -1
- package/dist/web/js/{commission-node-dialog-BJsfA4IV.js → commission-node-dialog-B6EYNztD.js} +5 -5
- package/dist/web/js/{commission-node-existing-CzRtUgBm.js → commission-node-existing-CKKStTjd.js} +4 -4
- package/dist/web/js/{commission-node-thread-FcLFz84I.js → commission-node-thread-D_Hgo4-b.js} +4 -4
- package/dist/web/js/{commission-node-wifi-C8iGfy7c.js → commission-node-wifi-DQrWnfn9.js} +4 -4
- package/dist/web/js/{dialog-box-DN32sjfR.js → dialog-box-9i64nfcC.js} +2 -2
- package/dist/web/js/{fire_event-BlsbXpOL.js → fire_event-CGgNDbLy.js} +1 -1
- package/dist/web/js/main.js +1 -1
- package/dist/web/js/{matter-dashboard-app-5UjO1Ik8.js → matter-dashboard-app-DD29PeTW.js} +415 -80
- package/dist/web/js/{node-binding-dialog-2yitVn0R.js → node-binding-dialog-DnO2DL_u.js} +3 -3
- package/dist/web/js/{outlined-text-field-BMLYwwlc.js → outlined-text-field-tv3ZtxuK.js} +2 -2
- package/dist/web/js/{prevent_default-BsT53c0u.js → prevent_default-C72e35wq.js} +1 -1
- package/package.json +3 -3
- package/src/pages/cluster-commands/base-cluster-commands.ts +122 -0
- package/src/pages/cluster-commands/clusters/level-control-commands.ts +130 -0
- package/src/pages/cluster-commands/clusters/on-off-commands.ts +57 -0
- package/src/pages/cluster-commands/index.ts +20 -0
- package/src/pages/cluster-commands/registry.ts +40 -0
- package/src/pages/matter-cluster-view.ts +41 -1
|
@@ -95,7 +95,7 @@ let s$3 = class s {
|
|
|
95
95
|
* Copyright 2021 Google LLC
|
|
96
96
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
97
97
|
*/
|
|
98
|
-
let e$
|
|
98
|
+
let e$b = class e extends Event {
|
|
99
99
|
constructor(t, s) {
|
|
100
100
|
super("context-provider", {
|
|
101
101
|
bubbles: true,
|
|
@@ -124,7 +124,7 @@ let i$7 = class i extends s$3 {
|
|
|
124
124
|
this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
|
|
125
125
|
}
|
|
126
126
|
hostConnected() {
|
|
127
|
-
this.host.dispatchEvent(new e$
|
|
127
|
+
this.host.dispatchEvent(new e$b(this.context, this.host));
|
|
128
128
|
}
|
|
129
129
|
};
|
|
130
130
|
|
|
@@ -133,7 +133,7 @@ let i$7 = class i extends s$3 {
|
|
|
133
133
|
* Copyright 2017 Google LLC
|
|
134
134
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
135
135
|
*/
|
|
136
|
-
function e$
|
|
136
|
+
function e$a({
|
|
137
137
|
context: e
|
|
138
138
|
}) {
|
|
139
139
|
return (n, i) => {
|
|
@@ -222,9 +222,9 @@ function c$3({
|
|
|
222
222
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
223
223
|
*/
|
|
224
224
|
const t$3 = globalThis,
|
|
225
|
-
e$
|
|
225
|
+
e$9 = t$3.ShadowRoot && (void 0 === t$3.ShadyCSS || t$3.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype,
|
|
226
226
|
s$2 = Symbol(),
|
|
227
|
-
o$
|
|
227
|
+
o$7 = new WeakMap();
|
|
228
228
|
let n$4 = class n {
|
|
229
229
|
constructor(t, e, o) {
|
|
230
230
|
if (this._$cssResult$ = true, o !== s$2) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
@@ -233,9 +233,9 @@ let n$4 = class n {
|
|
|
233
233
|
get styleSheet() {
|
|
234
234
|
let t = this.o;
|
|
235
235
|
const s = this.t;
|
|
236
|
-
if (e$
|
|
236
|
+
if (e$9 && void 0 === t) {
|
|
237
237
|
const e = void 0 !== s && 1 === s.length;
|
|
238
|
-
e && (t = o$
|
|
238
|
+
e && (t = o$7.get(s)), void 0 === t && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), e && o$7.set(s, t));
|
|
239
239
|
}
|
|
240
240
|
return t;
|
|
241
241
|
}
|
|
@@ -253,13 +253,13 @@ const r$5 = t => new n$4("string" == typeof t ? t : t + "", void 0, s$2),
|
|
|
253
253
|
return new n$4(o, t, s$2);
|
|
254
254
|
},
|
|
255
255
|
S$1 = (s, o) => {
|
|
256
|
-
if (e$
|
|
256
|
+
if (e$9) s.adoptedStyleSheets = o.map(t => t instanceof CSSStyleSheet ? t : t.styleSheet);else for (const e of o) {
|
|
257
257
|
const o = document.createElement("style"),
|
|
258
258
|
n = t$3.litNonce;
|
|
259
259
|
void 0 !== n && o.setAttribute("nonce", n), o.textContent = e.cssText, s.appendChild(o);
|
|
260
260
|
}
|
|
261
261
|
},
|
|
262
|
-
c$2 = e$
|
|
262
|
+
c$2 = e$9 ? t => t : t => t instanceof CSSStyleSheet ? (t => {
|
|
263
263
|
let e = "";
|
|
264
264
|
for (const s of t.cssRules) e += s.cssText;
|
|
265
265
|
return r$5(e);
|
|
@@ -272,10 +272,10 @@ const r$5 = t => new n$4("string" == typeof t ? t : t + "", void 0, s$2),
|
|
|
272
272
|
*/
|
|
273
273
|
const {
|
|
274
274
|
is: i$5,
|
|
275
|
-
defineProperty: e$
|
|
275
|
+
defineProperty: e$8,
|
|
276
276
|
getOwnPropertyDescriptor: h$1,
|
|
277
277
|
getOwnPropertyNames: r$4,
|
|
278
|
-
getOwnPropertySymbols: o$
|
|
278
|
+
getOwnPropertySymbols: o$6,
|
|
279
279
|
getPrototypeOf: n$3
|
|
280
280
|
} = Object,
|
|
281
281
|
a$2 = globalThis,
|
|
@@ -336,7 +336,7 @@ let y$1 = class y extends HTMLElement {
|
|
|
336
336
|
if (s.state && (s.attribute = false), this._$Ei(), this.prototype.hasOwnProperty(t) && ((s = Object.create(s)).wrapped = true), this.elementProperties.set(t, s), !s.noAccessor) {
|
|
337
337
|
const i = Symbol(),
|
|
338
338
|
h = this.getPropertyDescriptor(t, i, s);
|
|
339
|
-
void 0 !== h && e$
|
|
339
|
+
void 0 !== h && e$8(this.prototype, t, h);
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
static getPropertyDescriptor(t, s, i) {
|
|
@@ -373,7 +373,7 @@ let y$1 = class y extends HTMLElement {
|
|
|
373
373
|
if (this.hasOwnProperty(d$1("finalized"))) return;
|
|
374
374
|
if (this.finalized = true, this._$Ei(), this.hasOwnProperty(d$1("properties"))) {
|
|
375
375
|
const t = this.properties,
|
|
376
|
-
s = [...r$4(t), ...o$
|
|
376
|
+
s = [...r$4(t), ...o$6(t)];
|
|
377
377
|
for (const i of s) this.createProperty(i, t[i]);
|
|
378
378
|
}
|
|
379
379
|
const t = this[Symbol.metadata];
|
|
@@ -564,12 +564,12 @@ y$1.elementStyles = [], y$1.shadowRootOptions = {
|
|
|
564
564
|
const t$2 = globalThis,
|
|
565
565
|
i$4 = t => t,
|
|
566
566
|
s$1 = t$2.trustedTypes,
|
|
567
|
-
e$
|
|
567
|
+
e$7 = s$1 ? s$1.createPolicy("lit-html", {
|
|
568
568
|
createHTML: t => t
|
|
569
569
|
}) : void 0,
|
|
570
570
|
h = "$lit$",
|
|
571
|
-
o$
|
|
572
|
-
n$2 = "?" + o$
|
|
571
|
+
o$5 = `lit$${Math.random().toFixed(9).slice(2)}$`,
|
|
572
|
+
n$2 = "?" + o$5,
|
|
573
573
|
r$3 = `<${n$2}>`,
|
|
574
574
|
l$1 = document,
|
|
575
575
|
c = () => l$1.createComment(""),
|
|
@@ -597,7 +597,7 @@ const t$2 = globalThis,
|
|
|
597
597
|
P = l$1.createTreeWalker(l$1, 129);
|
|
598
598
|
function V(t, i) {
|
|
599
599
|
if (!u$1(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
600
|
-
return void 0 !== e$
|
|
600
|
+
return void 0 !== e$7 ? e$7.createHTML(i) : i;
|
|
601
601
|
}
|
|
602
602
|
const N = (t, i) => {
|
|
603
603
|
const s = t.length - 1,
|
|
@@ -613,7 +613,7 @@ const N = (t, i) => {
|
|
|
613
613
|
f = 0;
|
|
614
614
|
for (; f < s.length && (c.lastIndex = f, u = c.exec(s), null !== u);) f = c.lastIndex, c === v ? "!--" === u[1] ? c = _ : void 0 !== u[1] ? c = m : void 0 !== u[2] ? (y.test(u[2]) && (n = RegExp("</" + u[2], "g")), c = p) : void 0 !== u[3] && (c = p) : c === p ? ">" === u[0] ? (c = n ?? v, d = -1) : void 0 === u[1] ? d = -2 : (d = c.lastIndex - u[2].length, a = u[1], c = void 0 === u[3] ? p : '"' === u[3] ? $ : g) : c === $ || c === g ? c = p : c === _ || c === m ? c = v : (c = p, n = void 0);
|
|
615
615
|
const x = c === p && t[i + 1].startsWith("/>") ? " " : "";
|
|
616
|
-
l += c === v ? s + r$3 : d >= 0 ? (e.push(a), s.slice(0, d) + h + s.slice(d) + o$
|
|
616
|
+
l += c === v ? s + r$3 : d >= 0 ? (e.push(a), s.slice(0, d) + h + s.slice(d) + o$5 + x) : s + o$5 + (-2 === d ? i : x);
|
|
617
617
|
}
|
|
618
618
|
return [V(t, l + (t[s] || "<?>") + (2 === i ? "</svg>" : 3 === i ? "</math>" : "")), e];
|
|
619
619
|
};
|
|
@@ -637,7 +637,7 @@ class S {
|
|
|
637
637
|
if (1 === r.nodeType) {
|
|
638
638
|
if (r.hasAttributes()) for (const t of r.getAttributeNames()) if (t.endsWith(h)) {
|
|
639
639
|
const i = v[a++],
|
|
640
|
-
s = r.getAttribute(t).split(o$
|
|
640
|
+
s = r.getAttribute(t).split(o$5),
|
|
641
641
|
e = /([.?@])?(.*)/.exec(i);
|
|
642
642
|
d.push({
|
|
643
643
|
type: 1,
|
|
@@ -646,12 +646,12 @@ class S {
|
|
|
646
646
|
strings: s,
|
|
647
647
|
ctor: "." === e[1] ? I : "?" === e[1] ? L : "@" === e[1] ? z : H
|
|
648
648
|
}), r.removeAttribute(t);
|
|
649
|
-
} else t.startsWith(o$
|
|
649
|
+
} else t.startsWith(o$5) && (d.push({
|
|
650
650
|
type: 6,
|
|
651
651
|
index: l
|
|
652
652
|
}), r.removeAttribute(t));
|
|
653
653
|
if (y.test(r.tagName)) {
|
|
654
|
-
const t = r.textContent.split(o$
|
|
654
|
+
const t = r.textContent.split(o$5),
|
|
655
655
|
i = t.length - 1;
|
|
656
656
|
if (i > 0) {
|
|
657
657
|
r.textContent = s$1 ? s$1.emptyScript : "";
|
|
@@ -667,10 +667,10 @@ class S {
|
|
|
667
667
|
index: l
|
|
668
668
|
});else {
|
|
669
669
|
let t = -1;
|
|
670
|
-
for (; -1 !== (t = r.data.indexOf(o$
|
|
670
|
+
for (; -1 !== (t = r.data.indexOf(o$5, t + 1));) d.push({
|
|
671
671
|
type: 7,
|
|
672
672
|
index: l
|
|
673
|
-
}), t += o$
|
|
673
|
+
}), t += o$5.length - 1;
|
|
674
674
|
}
|
|
675
675
|
l++;
|
|
676
676
|
}
|
|
@@ -910,8 +910,8 @@ let i$3 = class i extends y$1 {
|
|
|
910
910
|
i$3._$litElement$ = true, i$3["finalized"] = true, (_s$litElementHydrateS = s.litElementHydrateSupport) === null || _s$litElementHydrateS === void 0 ? void 0 : _s$litElementHydrateS.call(s, {
|
|
911
911
|
LitElement: i$3
|
|
912
912
|
});
|
|
913
|
-
const o$
|
|
914
|
-
o$
|
|
913
|
+
const o$4 = s.litElementPolyfillSupport;
|
|
914
|
+
o$4 === null || o$4 === void 0 || o$4({
|
|
915
915
|
LitElement: i$3
|
|
916
916
|
});
|
|
917
917
|
(s.litElementVersions ?? (s.litElementVersions = [])).push("4.2.2");
|
|
@@ -932,14 +932,14 @@ const t$1 = t => (e, o) => {
|
|
|
932
932
|
* Copyright 2017 Google LLC
|
|
933
933
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
934
934
|
*/
|
|
935
|
-
const o$
|
|
935
|
+
const o$3 = {
|
|
936
936
|
attribute: true,
|
|
937
937
|
type: String,
|
|
938
938
|
converter: u$2,
|
|
939
939
|
reflect: false,
|
|
940
940
|
hasChanged: f$1
|
|
941
941
|
},
|
|
942
|
-
r$2 = (t = o$
|
|
942
|
+
r$2 = (t = o$3, e, r) => {
|
|
943
943
|
const {
|
|
944
944
|
kind: n,
|
|
945
945
|
metadata: i
|
|
@@ -995,20 +995,20 @@ function r$1(r) {
|
|
|
995
995
|
* Copyright 2017 Google LLC
|
|
996
996
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
997
997
|
*/
|
|
998
|
-
const e$
|
|
998
|
+
const e$6 = (e, t, c) => (c.configurable = true, c.enumerable = true, Reflect.decorate && "object" != typeof t && Object.defineProperty(e, t, c), c);
|
|
999
999
|
|
|
1000
1000
|
/**
|
|
1001
1001
|
* @license
|
|
1002
1002
|
* Copyright 2017 Google LLC
|
|
1003
1003
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1004
1004
|
*/
|
|
1005
|
-
function e$
|
|
1005
|
+
function e$5(e, r) {
|
|
1006
1006
|
return (n, s, i) => {
|
|
1007
1007
|
const o = t => {
|
|
1008
1008
|
var _t$renderRoot;
|
|
1009
1009
|
return ((_t$renderRoot = t.renderRoot) === null || _t$renderRoot === void 0 ? void 0 : _t$renderRoot.querySelector(e)) ?? null;
|
|
1010
1010
|
};
|
|
1011
|
-
return e$
|
|
1011
|
+
return e$6(n, s, {
|
|
1012
1012
|
get() {
|
|
1013
1013
|
return o(this);
|
|
1014
1014
|
}
|
|
@@ -1021,11 +1021,11 @@ function e$4(e, r) {
|
|
|
1021
1021
|
* Copyright 2017 Google LLC
|
|
1022
1022
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1023
1023
|
*/
|
|
1024
|
-
let e$
|
|
1024
|
+
let e$4;
|
|
1025
1025
|
function r(r) {
|
|
1026
|
-
return (n, o) => e$
|
|
1026
|
+
return (n, o) => e$6(n, o, {
|
|
1027
1027
|
get() {
|
|
1028
|
-
return (this.renderRoot ?? e$
|
|
1028
|
+
return (this.renderRoot ?? e$4 ?? (e$4 = document.createDocumentFragment())).querySelectorAll(r);
|
|
1029
1029
|
}
|
|
1030
1030
|
});
|
|
1031
1031
|
}
|
|
@@ -1035,14 +1035,14 @@ function r(r) {
|
|
|
1035
1035
|
* Copyright 2021 Google LLC
|
|
1036
1036
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1037
1037
|
*/
|
|
1038
|
-
function o$
|
|
1038
|
+
function o$2(o) {
|
|
1039
1039
|
return (e, n) => {
|
|
1040
1040
|
const {
|
|
1041
1041
|
slot: r,
|
|
1042
1042
|
selector: s
|
|
1043
1043
|
} = o ?? {},
|
|
1044
1044
|
c = "slot" + (r ? `[name=${r}]` : ":not([name])");
|
|
1045
|
-
return e$
|
|
1045
|
+
return e$6(e, n, {
|
|
1046
1046
|
get() {
|
|
1047
1047
|
var _this$renderRoot;
|
|
1048
1048
|
const t = (_this$renderRoot = this.renderRoot) === null || _this$renderRoot === void 0 ? void 0 : _this$renderRoot.querySelector(c),
|
|
@@ -1413,9 +1413,10 @@ MdFocusRing = __decorate([t$1('md-focus-ring')], MdFocusRing);
|
|
|
1413
1413
|
*/
|
|
1414
1414
|
const t = {
|
|
1415
1415
|
ATTRIBUTE: 1,
|
|
1416
|
+
CHILD: 2,
|
|
1416
1417
|
PROPERTY: 3,
|
|
1417
1418
|
BOOLEAN_ATTRIBUTE: 4},
|
|
1418
|
-
e$
|
|
1419
|
+
e$3 = t => (...e) => ({
|
|
1419
1420
|
_$litDirective$: t,
|
|
1420
1421
|
values: e
|
|
1421
1422
|
});
|
|
@@ -1440,7 +1441,7 @@ let i$2 = class i {
|
|
|
1440
1441
|
* Copyright 2018 Google LLC
|
|
1441
1442
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1442
1443
|
*/
|
|
1443
|
-
const e$
|
|
1444
|
+
const e$2 = e$3(class extends i$2 {
|
|
1444
1445
|
constructor(t$1) {
|
|
1445
1446
|
var _t$strings;
|
|
1446
1447
|
if (super(t$1), t$1.type !== t.ATTRIBUTE || "class" !== t$1.name || ((_t$strings = t$1.strings) === null || _t$strings === void 0 ? void 0 : _t$strings.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
|
@@ -1604,7 +1605,7 @@ class Ripple extends i$3 {
|
|
|
1604
1605
|
'hovered': this.hovered,
|
|
1605
1606
|
'pressed': this.pressed
|
|
1606
1607
|
};
|
|
1607
|
-
return b`<div class="surface ${e$
|
|
1608
|
+
return b`<div class="surface ${e$2(classes)}"></div>`;
|
|
1608
1609
|
}
|
|
1609
1610
|
update(changedProps) {
|
|
1610
1611
|
if (changedProps.has('disabled') && this.disabled) {
|
|
@@ -1893,7 +1894,7 @@ __decorate([n$1({
|
|
|
1893
1894
|
})], Ripple.prototype, "disabled", void 0);
|
|
1894
1895
|
__decorate([r$1()], Ripple.prototype, "hovered", void 0);
|
|
1895
1896
|
__decorate([r$1()], Ripple.prototype, "pressed", void 0);
|
|
1896
|
-
__decorate([e$
|
|
1897
|
+
__decorate([e$5('.surface')], Ripple.prototype, "mdRoot", void 0);
|
|
1897
1898
|
|
|
1898
1899
|
/**
|
|
1899
1900
|
* @license
|
|
@@ -1932,7 +1933,7 @@ MdRipple = __decorate([t$1('md-ripple')], MdRipple);
|
|
|
1932
1933
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1933
1934
|
*/
|
|
1934
1935
|
const a = Symbol.for(""),
|
|
1935
|
-
o = t => {
|
|
1936
|
+
o$1 = t => {
|
|
1936
1937
|
if ((t === null || t === void 0 ? void 0 : t.r) === a) return t === null || t === void 0 ? void 0 : t._$litStatic$;
|
|
1937
1938
|
},
|
|
1938
1939
|
i$1 = (t, ...r) => ({
|
|
@@ -1952,7 +1953,7 @@ const a = Symbol.for(""),
|
|
|
1952
1953
|
$ = 0,
|
|
1953
1954
|
f = false;
|
|
1954
1955
|
for (; $ < a;) {
|
|
1955
|
-
for (c = r[$]; $ < a && void 0 !== (i = e[$], s = o(i));) c += s + r[++$], f = true;
|
|
1956
|
+
for (c = r[$]; $ < a && void 0 !== (i = e[$], s = o$1(i));) c += s + r[++$], f = true;
|
|
1956
1957
|
$ !== a && u.push(i), n.push(c), $++;
|
|
1957
1958
|
}
|
|
1958
1959
|
if ($ === a && n.push(r[a]), f) {
|
|
@@ -2420,7 +2421,7 @@ class IconButton extends iconButtonBaseClass {
|
|
|
2420
2421
|
ariaLabelValue = hasToggledAriaLabel && this.selected ? this.ariaLabelSelected : ariaLabel;
|
|
2421
2422
|
}
|
|
2422
2423
|
return u`<${tag}
|
|
2423
|
-
class="icon-button ${e$
|
|
2424
|
+
class="icon-button ${e$2(this.getRenderClasses())}"
|
|
2424
2425
|
id="button"
|
|
2425
2426
|
aria-label="${ariaLabelValue || A}"
|
|
2426
2427
|
aria-haspopup="${!this.href && ariaHasPopup || A}"
|
|
@@ -3070,7 +3071,7 @@ class List extends i$3 {
|
|
|
3070
3071
|
return this.listController.activatePreviousItem();
|
|
3071
3072
|
}
|
|
3072
3073
|
}
|
|
3073
|
-
__decorate([o$
|
|
3074
|
+
__decorate([o$2({
|
|
3074
3075
|
flatten: true
|
|
3075
3076
|
})], List.prototype, "slotItems", void 0);
|
|
3076
3077
|
|
|
@@ -3357,7 +3358,7 @@ class ListItemEl extends listItemBaseClass {
|
|
|
3357
3358
|
aria-checked=${this.ariaChecked || A}
|
|
3358
3359
|
aria-expanded=${this.ariaExpanded || A}
|
|
3359
3360
|
aria-haspopup=${this.ariaHasPopup || A}
|
|
3360
|
-
class="list-item ${e$
|
|
3361
|
+
class="list-item ${e$2(this.getRenderClasses())}"
|
|
3361
3362
|
href=${this.href || A}
|
|
3362
3363
|
target=${target}
|
|
3363
3364
|
@focus=${this.onFocus}
|
|
@@ -3455,7 +3456,7 @@ __decorate([n$1({
|
|
|
3455
3456
|
})], ListItemEl.prototype, "isListItem", void 0);
|
|
3456
3457
|
__decorate([n$1()], ListItemEl.prototype, "href", void 0);
|
|
3457
3458
|
__decorate([n$1()], ListItemEl.prototype, "target", void 0);
|
|
3458
|
-
__decorate([e$
|
|
3459
|
+
__decorate([e$5('.list-item')], ListItemEl.prototype, "listItemRoot", void 0);
|
|
3459
3460
|
|
|
3460
3461
|
/**
|
|
3461
3462
|
* @license
|
|
@@ -3513,6 +3514,32 @@ let MdListItem = class MdListItem extends ListItemEl {};
|
|
|
3513
3514
|
MdListItem.styles = [styles$6];
|
|
3514
3515
|
MdListItem = __decorate([t$1('md-list-item')], MdListItem);
|
|
3515
3516
|
|
|
3517
|
+
/**
|
|
3518
|
+
* @license
|
|
3519
|
+
* Copyright 2017 Google LLC
|
|
3520
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
3521
|
+
*/
|
|
3522
|
+
let e$1 = class e extends i$2 {
|
|
3523
|
+
constructor(i) {
|
|
3524
|
+
if (super(i), this.it = A, i.type !== t.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
3525
|
+
}
|
|
3526
|
+
render(r) {
|
|
3527
|
+
if (r === A || null == r) return this._t = void 0, this.it = r;
|
|
3528
|
+
if (r === E) return r;
|
|
3529
|
+
if ("string" != typeof r) throw Error(this.constructor.directiveName + "() called with a non-string value");
|
|
3530
|
+
if (r === this.it) return this._t;
|
|
3531
|
+
this.it = r;
|
|
3532
|
+
const s = [r];
|
|
3533
|
+
return s.raw = s, this._t = {
|
|
3534
|
+
_$litType$: this.constructor.resultType,
|
|
3535
|
+
strings: s,
|
|
3536
|
+
values: []
|
|
3537
|
+
};
|
|
3538
|
+
}
|
|
3539
|
+
};
|
|
3540
|
+
e$1.directiveName = "unsafeHTML", e$1.resultType = 1;
|
|
3541
|
+
const o = e$3(e$1);
|
|
3542
|
+
|
|
3516
3543
|
const device_types = {
|
|
3517
3544
|
"10": {
|
|
3518
3545
|
"id": 10,
|
|
@@ -14444,7 +14471,7 @@ const clusters = {
|
|
|
14444
14471
|
* SPDX-License-Identifier: Apache-2.0
|
|
14445
14472
|
*/
|
|
14446
14473
|
const showDialogBox = async (type, dialogParams) => {
|
|
14447
|
-
await import('./dialog-box-
|
|
14474
|
+
await import('./dialog-box-9i64nfcC.js');
|
|
14448
14475
|
return new Promise(resolve => {
|
|
14449
14476
|
const dialog = document.createElement("dialox-box");
|
|
14450
14477
|
dialog.params = dialogParams;
|
|
@@ -14456,12 +14483,12 @@ const showDialogBox = async (type, dialogParams) => {
|
|
|
14456
14483
|
const showAlertDialog = dialogParams => showDialogBox("alert", dialogParams);
|
|
14457
14484
|
const showPromptDialog = dialogParams => showDialogBox("prompt", dialogParams);
|
|
14458
14485
|
|
|
14459
|
-
var __defProp$
|
|
14460
|
-
var __getOwnPropDesc$
|
|
14461
|
-
var __decorateClass$
|
|
14462
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
14486
|
+
var __defProp$9 = Object.defineProperty;
|
|
14487
|
+
var __getOwnPropDesc$b = Object.getOwnPropertyDescriptor;
|
|
14488
|
+
var __decorateClass$c = (decorators, target, key, kind) => {
|
|
14489
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$b(target, key) : target;
|
|
14463
14490
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
14464
|
-
if (kind && result) __defProp$
|
|
14491
|
+
if (kind && result) __defProp$9(target, key, result);
|
|
14465
14492
|
return result;
|
|
14466
14493
|
};
|
|
14467
14494
|
let HaSvgIcon = class extends i$3 {
|
|
@@ -14508,10 +14535,10 @@ let HaSvgIcon = class extends i$3 {
|
|
|
14508
14535
|
`;
|
|
14509
14536
|
}
|
|
14510
14537
|
};
|
|
14511
|
-
__decorateClass$
|
|
14512
|
-
__decorateClass$
|
|
14513
|
-
__decorateClass$
|
|
14514
|
-
HaSvgIcon = __decorateClass$
|
|
14538
|
+
__decorateClass$c([n$1()], HaSvgIcon.prototype, "path", 2);
|
|
14539
|
+
__decorateClass$c([n$1()], HaSvgIcon.prototype, "secondaryPath", 2);
|
|
14540
|
+
__decorateClass$c([n$1()], HaSvgIcon.prototype, "viewBox", 2);
|
|
14541
|
+
HaSvgIcon = __decorateClass$c([t$1("ha-svg-icon")], HaSvgIcon);
|
|
14515
14542
|
|
|
14516
14543
|
/**
|
|
14517
14544
|
* @license
|
|
@@ -14866,8 +14893,8 @@ __decorate([n$1()], Button.prototype, "type", void 0);
|
|
|
14866
14893
|
__decorate([n$1({
|
|
14867
14894
|
reflect: true
|
|
14868
14895
|
})], Button.prototype, "value", void 0);
|
|
14869
|
-
__decorate([e$
|
|
14870
|
-
__decorate([o$
|
|
14896
|
+
__decorate([e$5('.button')], Button.prototype, "buttonElement", void 0);
|
|
14897
|
+
__decorate([o$2({
|
|
14871
14898
|
slot: 'icon',
|
|
14872
14899
|
flatten: true
|
|
14873
14900
|
})], Button.prototype, "assignedIcons", void 0);
|
|
@@ -15054,7 +15081,7 @@ var mdiArrowLeft="M20,11V13H8L13.5,18.5L12.08,19.92L4.16,12L12.08,4.08L13.5,5.5L
|
|
|
15054
15081
|
*/
|
|
15055
15082
|
const showNodeBindingDialog = async (client, node, endpoint) => {
|
|
15056
15083
|
var _document$querySelect;
|
|
15057
|
-
await import('./node-binding-dialog-
|
|
15084
|
+
await import('./node-binding-dialog-DnO2DL_u.js');
|
|
15058
15085
|
const dialog = document.createElement("node-binding-dialog");
|
|
15059
15086
|
dialog.client = client;
|
|
15060
15087
|
dialog.node = node;
|
|
@@ -15068,7 +15095,7 @@ const showNodeBindingDialog = async (client, node, endpoint) => {
|
|
|
15068
15095
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
15069
15096
|
*/
|
|
15070
15097
|
const e = {},
|
|
15071
|
-
i = e$
|
|
15098
|
+
i = e$3(class extends i$2 {
|
|
15072
15099
|
constructor() {
|
|
15073
15100
|
super(...arguments), this.ot = e;
|
|
15074
15101
|
}
|
|
@@ -15083,12 +15110,12 @@ const e = {},
|
|
|
15083
15110
|
}
|
|
15084
15111
|
});
|
|
15085
15112
|
|
|
15086
|
-
var __defProp$
|
|
15087
|
-
var __getOwnPropDesc$
|
|
15088
|
-
var __decorateClass$
|
|
15089
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
15113
|
+
var __defProp$8 = Object.defineProperty;
|
|
15114
|
+
var __getOwnPropDesc$a = Object.getOwnPropertyDescriptor;
|
|
15115
|
+
var __decorateClass$b = (decorators, target, key, kind) => {
|
|
15116
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$a(target, key) : target;
|
|
15090
15117
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
15091
|
-
if (kind && result) __defProp$
|
|
15118
|
+
if (kind && result) __defProp$8(target, key, result);
|
|
15092
15119
|
return result;
|
|
15093
15120
|
};
|
|
15094
15121
|
function getUniqueClusters(node, endpoint) {
|
|
@@ -15201,9 +15228,9 @@ MatterEndpointView.styles = i$6`
|
|
|
15201
15228
|
font-size: 0.8em;
|
|
15202
15229
|
}
|
|
15203
15230
|
`;
|
|
15204
|
-
__decorateClass$
|
|
15205
|
-
__decorateClass$
|
|
15206
|
-
MatterEndpointView = __decorateClass$
|
|
15231
|
+
__decorateClass$b([n$1()], MatterEndpointView.prototype, "node", 2);
|
|
15232
|
+
__decorateClass$b([n$1()], MatterEndpointView.prototype, "endpoint", 2);
|
|
15233
|
+
MatterEndpointView = __decorateClass$b([t$1("matter-endpoint-view")], MatterEndpointView);
|
|
15207
15234
|
|
|
15208
15235
|
/**
|
|
15209
15236
|
* @license
|
|
@@ -15212,12 +15239,12 @@ MatterEndpointView = __decorateClass$8([t$1("matter-endpoint-view")], MatterEndp
|
|
|
15212
15239
|
*/
|
|
15213
15240
|
const bindingContext = n$5("binding");
|
|
15214
15241
|
|
|
15215
|
-
var __defProp$
|
|
15216
|
-
var __getOwnPropDesc$
|
|
15217
|
-
var __decorateClass$
|
|
15218
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
15242
|
+
var __defProp$7 = Object.defineProperty;
|
|
15243
|
+
var __getOwnPropDesc$9 = Object.getOwnPropertyDescriptor;
|
|
15244
|
+
var __decorateClass$a = (decorators, target, key, kind) => {
|
|
15245
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$9(target, key) : target;
|
|
15219
15246
|
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
15220
|
-
if (kind && result) __defProp$
|
|
15247
|
+
if (kind && result) __defProp$7(target, key, result);
|
|
15221
15248
|
return result;
|
|
15222
15249
|
};
|
|
15223
15250
|
function getNodeDeviceTypes(node) {
|
|
@@ -15413,14 +15440,291 @@ NodeDetails.styles = i$6`
|
|
|
15413
15440
|
font-size: 0.8em;
|
|
15414
15441
|
}
|
|
15415
15442
|
`;
|
|
15416
|
-
__decorateClass$
|
|
15417
|
-
__decorateClass$
|
|
15418
|
-
__decorateClass$
|
|
15443
|
+
__decorateClass$a([n$1()], NodeDetails.prototype, "node", 2);
|
|
15444
|
+
__decorateClass$a([r$1()], NodeDetails.prototype, "_updateInitiated", 2);
|
|
15445
|
+
__decorateClass$a([c$3({
|
|
15419
15446
|
context: bindingContext
|
|
15420
15447
|
}), n$1({
|
|
15421
15448
|
attribute: false
|
|
15422
15449
|
})], NodeDetails.prototype, "endpoint", 2);
|
|
15423
|
-
NodeDetails = __decorateClass$
|
|
15450
|
+
NodeDetails = __decorateClass$a([t$1("node-details")], NodeDetails);
|
|
15451
|
+
|
|
15452
|
+
/**
|
|
15453
|
+
* @license
|
|
15454
|
+
* Copyright 2025-2026 Open Home Foundation
|
|
15455
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
15456
|
+
*/
|
|
15457
|
+
const clusterCommandRegistry = /* @__PURE__ */new Map();
|
|
15458
|
+
function registerClusterCommands(clusterId, tagName) {
|
|
15459
|
+
clusterCommandRegistry.set(clusterId, tagName);
|
|
15460
|
+
}
|
|
15461
|
+
function getClusterCommandsTag(clusterId) {
|
|
15462
|
+
return clusterCommandRegistry.get(clusterId);
|
|
15463
|
+
}
|
|
15464
|
+
|
|
15465
|
+
var _staticBlock;
|
|
15466
|
+
var __defProp$6 = Object.defineProperty;
|
|
15467
|
+
var __decorateClass$9 = (decorators, target, key, kind) => {
|
|
15468
|
+
var result = void 0 ;
|
|
15469
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (decorator(target, key, result) ) || result;
|
|
15470
|
+
if (result) __defProp$6(target, key, result);
|
|
15471
|
+
return result;
|
|
15472
|
+
};
|
|
15473
|
+
class BaseClusterCommands extends i$3 {
|
|
15474
|
+
/**
|
|
15475
|
+
* Send a command to the device.
|
|
15476
|
+
* @param command - The command name (PascalCase, e.g., "On", "Off", "MoveToLevel")
|
|
15477
|
+
* @param payload - Optional command payload
|
|
15478
|
+
*/
|
|
15479
|
+
async sendCommand(command, payload) {
|
|
15480
|
+
try {
|
|
15481
|
+
await this.client.deviceCommand(this.node.node_id, this.endpoint, this.cluster, command, payload ?? {});
|
|
15482
|
+
} catch (error) {
|
|
15483
|
+
console.error(`Failed to send command ${command}:`, error);
|
|
15484
|
+
}
|
|
15485
|
+
}
|
|
15486
|
+
static #_ = _staticBlock = () => this.styles = i$6`
|
|
15487
|
+
:host {
|
|
15488
|
+
display: block;
|
|
15489
|
+
}
|
|
15490
|
+
|
|
15491
|
+
details.command-panel {
|
|
15492
|
+
background-color: var(--md-sys-color-surface-container);
|
|
15493
|
+
border-radius: 12px;
|
|
15494
|
+
overflow: hidden;
|
|
15495
|
+
}
|
|
15496
|
+
|
|
15497
|
+
details.command-panel summary {
|
|
15498
|
+
padding: 16px;
|
|
15499
|
+
font-weight: 500;
|
|
15500
|
+
color: var(--md-sys-color-on-surface);
|
|
15501
|
+
cursor: pointer;
|
|
15502
|
+
user-select: none;
|
|
15503
|
+
display: flex;
|
|
15504
|
+
align-items: center;
|
|
15505
|
+
gap: 8px;
|
|
15506
|
+
}
|
|
15507
|
+
|
|
15508
|
+
details.command-panel summary:hover {
|
|
15509
|
+
background-color: var(--md-sys-color-surface-container-high);
|
|
15510
|
+
}
|
|
15511
|
+
|
|
15512
|
+
details.command-panel summary::before {
|
|
15513
|
+
content: "▶";
|
|
15514
|
+
font-size: 12px;
|
|
15515
|
+
transition: transform 0.2s ease;
|
|
15516
|
+
}
|
|
15517
|
+
|
|
15518
|
+
details.command-panel[open] summary::before {
|
|
15519
|
+
transform: rotate(90deg);
|
|
15520
|
+
}
|
|
15521
|
+
|
|
15522
|
+
details.command-panel summary::-webkit-details-marker {
|
|
15523
|
+
display: none;
|
|
15524
|
+
}
|
|
15525
|
+
|
|
15526
|
+
.command-content {
|
|
15527
|
+
padding: 0 16px 16px 16px;
|
|
15528
|
+
}
|
|
15529
|
+
|
|
15530
|
+
.command-row {
|
|
15531
|
+
display: flex;
|
|
15532
|
+
align-items: center;
|
|
15533
|
+
gap: 12px;
|
|
15534
|
+
flex-wrap: wrap;
|
|
15535
|
+
}
|
|
15536
|
+
|
|
15537
|
+
.command-row label {
|
|
15538
|
+
font-size: 14px;
|
|
15539
|
+
color: var(--md-sys-color-on-surface-variant);
|
|
15540
|
+
display: flex;
|
|
15541
|
+
align-items: center;
|
|
15542
|
+
gap: 4px;
|
|
15543
|
+
}
|
|
15544
|
+
|
|
15545
|
+
.command-row input[type="number"] {
|
|
15546
|
+
width: 70px;
|
|
15547
|
+
padding: 8px;
|
|
15548
|
+
border: 1px solid var(--md-sys-color-outline);
|
|
15549
|
+
border-radius: 4px;
|
|
15550
|
+
background: var(--md-sys-color-surface);
|
|
15551
|
+
color: var(--md-sys-color-on-surface);
|
|
15552
|
+
}
|
|
15553
|
+
|
|
15554
|
+
.command-row input[type="checkbox"] {
|
|
15555
|
+
width: 16px;
|
|
15556
|
+
height: 16px;
|
|
15557
|
+
margin: 0;
|
|
15558
|
+
}
|
|
15559
|
+
|
|
15560
|
+
md-filled-button,
|
|
15561
|
+
md-outlined-button {
|
|
15562
|
+
--md-filled-button-container-height: 36px;
|
|
15563
|
+
--md-outlined-button-container-height: 36px;
|
|
15564
|
+
}
|
|
15565
|
+
`;
|
|
15566
|
+
}
|
|
15567
|
+
_staticBlock();
|
|
15568
|
+
__decorateClass$9([n$1({
|
|
15569
|
+
attribute: false
|
|
15570
|
+
})], BaseClusterCommands.prototype, "client");
|
|
15571
|
+
__decorateClass$9([n$1({
|
|
15572
|
+
attribute: false
|
|
15573
|
+
})], BaseClusterCommands.prototype, "node");
|
|
15574
|
+
__decorateClass$9([n$1({
|
|
15575
|
+
type: Number
|
|
15576
|
+
})], BaseClusterCommands.prototype, "endpoint");
|
|
15577
|
+
__decorateClass$9([n$1({
|
|
15578
|
+
type: Number
|
|
15579
|
+
})], BaseClusterCommands.prototype, "cluster");
|
|
15580
|
+
|
|
15581
|
+
var __defProp$5 = Object.defineProperty;
|
|
15582
|
+
var __getOwnPropDesc$8 = Object.getOwnPropertyDescriptor;
|
|
15583
|
+
var __decorateClass$8 = (decorators, target, key, kind) => {
|
|
15584
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$8(target, key) : target;
|
|
15585
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
15586
|
+
if (kind && result) __defProp$5(target, key, result);
|
|
15587
|
+
return result;
|
|
15588
|
+
};
|
|
15589
|
+
const CLUSTER_ID$1 = 8;
|
|
15590
|
+
let LevelControlClusterCommands = class extends BaseClusterCommands {
|
|
15591
|
+
constructor() {
|
|
15592
|
+
super(...arguments);
|
|
15593
|
+
this._targetLevel = 128;
|
|
15594
|
+
this._transitionTime = 0;
|
|
15595
|
+
this._executeIfOff = false;
|
|
15596
|
+
}
|
|
15597
|
+
render() {
|
|
15598
|
+
return b`
|
|
15599
|
+
<details class="command-panel">
|
|
15600
|
+
<summary>Level Control Commands</summary>
|
|
15601
|
+
<div class="command-content">
|
|
15602
|
+
<div class="command-row">
|
|
15603
|
+
<label for="targetLevel">Level:</label>
|
|
15604
|
+
<input
|
|
15605
|
+
id="targetLevel"
|
|
15606
|
+
type="number"
|
|
15607
|
+
min="1"
|
|
15608
|
+
max="254"
|
|
15609
|
+
.value=${String(this._targetLevel)}
|
|
15610
|
+
@input=${this._handleTargetLevelChange}
|
|
15611
|
+
/>
|
|
15612
|
+
<label for="transitionTime">Transition (0.1s):</label>
|
|
15613
|
+
<input
|
|
15614
|
+
id="transitionTime"
|
|
15615
|
+
type="number"
|
|
15616
|
+
min="0"
|
|
15617
|
+
max="65535"
|
|
15618
|
+
.value=${String(this._transitionTime)}
|
|
15619
|
+
@input=${this._handleTransitionTimeChange}
|
|
15620
|
+
/>
|
|
15621
|
+
<label for="executeIfOff">
|
|
15622
|
+
<input
|
|
15623
|
+
id="executeIfOff"
|
|
15624
|
+
type="checkbox"
|
|
15625
|
+
.checked=${this._executeIfOff}
|
|
15626
|
+
@change=${this._handleExecuteIfOffChange}
|
|
15627
|
+
/>
|
|
15628
|
+
Execute if Off
|
|
15629
|
+
</label>
|
|
15630
|
+
<md-outlined-button @click=${this._handleMoveToLevel}>MoveToLevel</md-outlined-button>
|
|
15631
|
+
<md-outlined-button @click=${this._handleMoveToLevelWithOnOff}
|
|
15632
|
+
>MoveToLevelWithOnOff</md-outlined-button
|
|
15633
|
+
>
|
|
15634
|
+
</div>
|
|
15635
|
+
</div>
|
|
15636
|
+
</details>
|
|
15637
|
+
`;
|
|
15638
|
+
}
|
|
15639
|
+
_handleTargetLevelChange(e) {
|
|
15640
|
+
const input = e.target;
|
|
15641
|
+
let value = parseInt(input.value, 10);
|
|
15642
|
+
if (isNaN(value)) value = 1;
|
|
15643
|
+
if (value < 1) value = 1;
|
|
15644
|
+
if (value > 254) value = 254;
|
|
15645
|
+
this._targetLevel = value;
|
|
15646
|
+
}
|
|
15647
|
+
_handleTransitionTimeChange(e) {
|
|
15648
|
+
const input = e.target;
|
|
15649
|
+
let value = parseInt(input.value, 10);
|
|
15650
|
+
if (isNaN(value)) value = 0;
|
|
15651
|
+
if (value < 0) value = 0;
|
|
15652
|
+
if (value > 65535) value = 65535;
|
|
15653
|
+
this._transitionTime = value;
|
|
15654
|
+
}
|
|
15655
|
+
_handleExecuteIfOffChange(e) {
|
|
15656
|
+
const input = e.target;
|
|
15657
|
+
this._executeIfOff = input.checked;
|
|
15658
|
+
}
|
|
15659
|
+
async _handleMoveToLevel() {
|
|
15660
|
+
const optionsMask = this._executeIfOff ? {
|
|
15661
|
+
executeIfOff: true
|
|
15662
|
+
} : {};
|
|
15663
|
+
const optionsOverride = this._executeIfOff ? {
|
|
15664
|
+
executeIfOff: true
|
|
15665
|
+
} : {};
|
|
15666
|
+
await this.sendCommand("MoveToLevel", {
|
|
15667
|
+
level: this._targetLevel,
|
|
15668
|
+
transitionTime: this._transitionTime,
|
|
15669
|
+
optionsMask,
|
|
15670
|
+
optionsOverride
|
|
15671
|
+
});
|
|
15672
|
+
}
|
|
15673
|
+
async _handleMoveToLevelWithOnOff() {
|
|
15674
|
+
const optionsMask = this._executeIfOff ? {
|
|
15675
|
+
executeIfOff: true
|
|
15676
|
+
} : {};
|
|
15677
|
+
const optionsOverride = this._executeIfOff ? {
|
|
15678
|
+
executeIfOff: true
|
|
15679
|
+
} : {};
|
|
15680
|
+
await this.sendCommand("MoveToLevelWithOnOff", {
|
|
15681
|
+
level: this._targetLevel,
|
|
15682
|
+
transitionTime: this._transitionTime,
|
|
15683
|
+
optionsMask,
|
|
15684
|
+
optionsOverride
|
|
15685
|
+
});
|
|
15686
|
+
}
|
|
15687
|
+
};
|
|
15688
|
+
__decorateClass$8([r$1()], LevelControlClusterCommands.prototype, "_targetLevel", 2);
|
|
15689
|
+
__decorateClass$8([r$1()], LevelControlClusterCommands.prototype, "_transitionTime", 2);
|
|
15690
|
+
__decorateClass$8([r$1()], LevelControlClusterCommands.prototype, "_executeIfOff", 2);
|
|
15691
|
+
LevelControlClusterCommands = __decorateClass$8([t$1("level-control-cluster-commands")], LevelControlClusterCommands);
|
|
15692
|
+
registerClusterCommands(CLUSTER_ID$1, "level-control-cluster-commands");
|
|
15693
|
+
|
|
15694
|
+
var __getOwnPropDesc$7 = Object.getOwnPropertyDescriptor;
|
|
15695
|
+
var __decorateClass$7 = (decorators, target, key, kind) => {
|
|
15696
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$7(target, key) : target;
|
|
15697
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--) if (decorator = decorators[i]) result = (decorator(result)) || result;
|
|
15698
|
+
return result;
|
|
15699
|
+
};
|
|
15700
|
+
const CLUSTER_ID = 6;
|
|
15701
|
+
let OnOffClusterCommands = class extends BaseClusterCommands {
|
|
15702
|
+
render() {
|
|
15703
|
+
return b`
|
|
15704
|
+
<details class="command-panel">
|
|
15705
|
+
<summary>OnOff Commands</summary>
|
|
15706
|
+
<div class="command-content">
|
|
15707
|
+
<div class="command-row">
|
|
15708
|
+
<md-outlined-button @click=${this._handleOn}>On</md-outlined-button>
|
|
15709
|
+
<md-outlined-button @click=${this._handleOff}>Off</md-outlined-button>
|
|
15710
|
+
<md-outlined-button @click=${this._handleToggle}>Toggle</md-outlined-button>
|
|
15711
|
+
</div>
|
|
15712
|
+
</div>
|
|
15713
|
+
</details>
|
|
15714
|
+
`;
|
|
15715
|
+
}
|
|
15716
|
+
async _handleOn() {
|
|
15717
|
+
await this.sendCommand("On");
|
|
15718
|
+
}
|
|
15719
|
+
async _handleOff() {
|
|
15720
|
+
await this.sendCommand("Off");
|
|
15721
|
+
}
|
|
15722
|
+
async _handleToggle() {
|
|
15723
|
+
await this.sendCommand("Toggle");
|
|
15724
|
+
}
|
|
15725
|
+
};
|
|
15726
|
+
OnOffClusterCommands = __decorateClass$7([t$1("on-off-cluster-commands")], OnOffClusterCommands);
|
|
15727
|
+
registerClusterCommands(CLUSTER_ID, "on-off-cluster-commands");
|
|
15424
15728
|
|
|
15425
15729
|
var __defProp$4 = Object.defineProperty;
|
|
15426
15730
|
var __getOwnPropDesc$6 = Object.getOwnPropertyDescriptor;
|
|
@@ -15431,7 +15735,7 @@ var __decorateClass$6 = (decorators, target, key, kind) => {
|
|
|
15431
15735
|
return result;
|
|
15432
15736
|
};
|
|
15433
15737
|
function clusterAttributes(attributes, endpoint, cluster) {
|
|
15434
|
-
return Object.keys(attributes).filter(key => key.startsWith(`${endpoint}/${cluster}
|
|
15738
|
+
return Object.keys(attributes).filter(key => key.startsWith(`${endpoint}/${cluster}/`)).map(key => {
|
|
15435
15739
|
const attributeKey = Number(key.split("/")[2]);
|
|
15436
15740
|
return {
|
|
15437
15741
|
key: attributeKey,
|
|
@@ -15460,6 +15764,9 @@ let MatterClusterView = class extends i$3 {
|
|
|
15460
15764
|
<node-details .node=${this.node} .client=${this.client}></node-details>
|
|
15461
15765
|
</div>
|
|
15462
15766
|
|
|
15767
|
+
<!-- Cluster commands section (if available for this cluster) -->
|
|
15768
|
+
${this._renderClusterCommands()}
|
|
15769
|
+
|
|
15463
15770
|
<!-- Cluster attributes listing -->
|
|
15464
15771
|
<div class="container">
|
|
15465
15772
|
<md-list>
|
|
@@ -15506,6 +15813,34 @@ let MatterClusterView = class extends i$3 {
|
|
|
15506
15813
|
text: toBigIntAwareJson(value)
|
|
15507
15814
|
});
|
|
15508
15815
|
}
|
|
15816
|
+
_renderClusterCommands() {
|
|
15817
|
+
var _this$node;
|
|
15818
|
+
if (this.cluster === void 0) return b``;
|
|
15819
|
+
if (!((_this$node = this.node) !== null && _this$node !== void 0 && _this$node.available)) return b``;
|
|
15820
|
+
const tagName = getClusterCommandsTag(this.cluster);
|
|
15821
|
+
if (!tagName) return b``;
|
|
15822
|
+
const componentHtml = `<${tagName}></${tagName}>`;
|
|
15823
|
+
const element = o(componentHtml);
|
|
15824
|
+
return b`
|
|
15825
|
+
<div class="container">
|
|
15826
|
+
<div id="cluster-commands-container">${element}</div>
|
|
15827
|
+
</div>
|
|
15828
|
+
`;
|
|
15829
|
+
}
|
|
15830
|
+
updated(changedProperties) {
|
|
15831
|
+
var _this$shadowRoot;
|
|
15832
|
+
super.updated(changedProperties);
|
|
15833
|
+
const container = (_this$shadowRoot = this.shadowRoot) === null || _this$shadowRoot === void 0 ? void 0 : _this$shadowRoot.getElementById("cluster-commands-container");
|
|
15834
|
+
if (container) {
|
|
15835
|
+
const commandsElement = container.firstElementChild;
|
|
15836
|
+
if (commandsElement && this.node && this.client) {
|
|
15837
|
+
commandsElement.client = this.client;
|
|
15838
|
+
commandsElement.node = this.node;
|
|
15839
|
+
commandsElement.endpoint = this.endpoint;
|
|
15840
|
+
commandsElement.cluster = this.cluster;
|
|
15841
|
+
}
|
|
15842
|
+
}
|
|
15843
|
+
}
|
|
15509
15844
|
_goBack() {
|
|
15510
15845
|
history.back();
|
|
15511
15846
|
}
|
|
@@ -15548,7 +15883,7 @@ MatterClusterView.styles = i$6`
|
|
|
15548
15883
|
}
|
|
15549
15884
|
`;
|
|
15550
15885
|
__decorateClass$6([n$1()], MatterClusterView.prototype, "node", 2);
|
|
15551
|
-
__decorateClass$6([e$
|
|
15886
|
+
__decorateClass$6([e$a({
|
|
15552
15887
|
context: bindingContext
|
|
15553
15888
|
}), n$1()], MatterClusterView.prototype, "endpoint", 2);
|
|
15554
15889
|
__decorateClass$6([n$1()], MatterClusterView.prototype, "cluster", 2);
|
|
@@ -15760,7 +16095,7 @@ DashboardFooter = __decorateClass$3([t$1("dashboard-footer")], DashboardFooter);
|
|
|
15760
16095
|
*/
|
|
15761
16096
|
const showCommissionNodeDialog = async client => {
|
|
15762
16097
|
var _document$querySelect;
|
|
15763
|
-
await import('./commission-node-dialog-
|
|
16098
|
+
await import('./commission-node-dialog-B6EYNztD.js');
|
|
15764
16099
|
const dialog = document.createElement("commission-node-dialog");
|
|
15765
16100
|
dialog.client = client;
|
|
15766
16101
|
(_document$querySelect = document.querySelector("matter-dashboard-app")) === null || _document$querySelect === void 0 || _document$querySelect.renderRoot.appendChild(dialog);
|
|
@@ -16065,4 +16400,4 @@ var matterDashboardApp = /*#__PURE__*/Object.freeze({
|
|
|
16065
16400
|
__proto__: null
|
|
16066
16401
|
});
|
|
16067
16402
|
|
|
16068
|
-
export { A, D, EASING as E, __decorate as _, i$6 as a, b, c$3 as c, clientContext as d, e$
|
|
16403
|
+
export { A, D, EASING as E, __decorate as _, i$6 as a, b, c$3 as c, clientContext as d, e$5 as e, e$2 as f, e$3 as g, i$2 as h, i$3 as i, t as j, E as k, internals as l, mixinDelegatesAria as m, n$1 as n, o$2 as o, mixinElementInternals as p, i$1 as q, r$1 as r, matterDashboardApp as s, t$1 as t, u };
|