mirror of
https://github.com/Matysh/houseplan-card
synced 2026-10-02 21:01:21 +00:00
fix: сохранить клавиатурную подсказку (#565)
Issue: #565 User-Visible: yes
This commit is contained in:
committed by
claude[bot]
parent
c23c7927de
commit
dded4fbd5c
@@ -1,311 +1,311 @@
|
||||
{
|
||||
"schema": 1,
|
||||
"fingerprint": "668466a273bc161fb0232215df40fd095aa162047e9b574518867c8554a75991",
|
||||
"fingerprint": "872076741677c95a78bbd45aa6a6eefb714f591bdaa16fff0cc5f3bf977e63b5",
|
||||
"entry": "houseplan-card.js",
|
||||
"panelEntry": "houseplan-panel.js",
|
||||
"initialViewFiles": [
|
||||
"houseplan-assets/houseplan-card-chP6NBhK.js",
|
||||
"houseplan-assets/houseplan-card-NzYP5Jm2.js",
|
||||
"houseplan-card.js"
|
||||
],
|
||||
"initialViewGzipBytes": 290252,
|
||||
"initialViewGzipBytes": 290269,
|
||||
"initialPanelFiles": [
|
||||
"houseplan-assets/houseplan-card-chP6NBhK.js",
|
||||
"houseplan-assets/houseplan-card-NzYP5Jm2.js",
|
||||
"houseplan-panel.js"
|
||||
],
|
||||
"initialPanelGzipBytes": 291775,
|
||||
"initialPanelGzipBytes": 291792,
|
||||
"initialPanelOnlyFiles": [
|
||||
"houseplan-panel.js"
|
||||
],
|
||||
"initialPanelOnlyGzipBytes": 2329,
|
||||
"initialPanelOnlyGzipBytes": 2326,
|
||||
"lazyFiles": [
|
||||
"houseplan-assets/backdrop-pick-CvrPdUHE.js",
|
||||
"houseplan-assets/de-C6YxCDZc.js",
|
||||
"houseplan-assets/editor-EFCjKUy0.js",
|
||||
"houseplan-assets/fr-BKJEc804.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-BLtR621S.js",
|
||||
"houseplan-assets/guard-BMBlK50U.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-FHl9qBUM.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-DqKk60fa.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-DknAaLQb.js",
|
||||
"houseplan-assets/iso-scene-render-BfcWAjpL.js",
|
||||
"houseplan-assets/live-interaction-runtime-C65e5HA-.js",
|
||||
"houseplan-assets/pdf-export-DOIJatzy.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-D2ugQG3G.js",
|
||||
"houseplan-assets/zigbee-topology-E9um8AjR.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-CgRErW8m.js"
|
||||
"houseplan-assets/backdrop-pick-B9Pg_H3G.js",
|
||||
"houseplan-assets/de-Dt-zRmhX.js",
|
||||
"houseplan-assets/editor-D2p_-RnD.js",
|
||||
"houseplan-assets/fr-BRk2IEO8.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-DJ48UIFN.js",
|
||||
"houseplan-assets/guard-JshI3Lhp.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-rFPiRjPW.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-D9DACIGp.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-CI6k6rk-.js",
|
||||
"houseplan-assets/iso-scene-render-DYujIy04.js",
|
||||
"houseplan-assets/live-interaction-runtime-F2M4YAVj.js",
|
||||
"houseplan-assets/pdf-export-BuP_QUBU.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-DcW95Urk.js",
|
||||
"houseplan-assets/zigbee-topology-Cy3WZyQ_.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-C9Ha_xER.js"
|
||||
],
|
||||
"lazyGzipBytes": 418572,
|
||||
"lazyGzipBytes": 418599,
|
||||
"lazyEditorFiles": [
|
||||
"houseplan-assets/backdrop-pick-CvrPdUHE.js",
|
||||
"houseplan-assets/editor-EFCjKUy0.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-BLtR621S.js",
|
||||
"houseplan-assets/guard-BMBlK50U.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-FHl9qBUM.js",
|
||||
"houseplan-assets/zigbee-topology-E9um8AjR.js"
|
||||
"houseplan-assets/backdrop-pick-B9Pg_H3G.js",
|
||||
"houseplan-assets/editor-D2p_-RnD.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-DJ48UIFN.js",
|
||||
"houseplan-assets/guard-JshI3Lhp.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-rFPiRjPW.js",
|
||||
"houseplan-assets/zigbee-topology-Cy3WZyQ_.js"
|
||||
],
|
||||
"lazyEditorGzipBytes": 205056,
|
||||
"lazyEditorGzipBytes": 205055,
|
||||
"lazyOnboardingFiles": [
|
||||
"houseplan-assets/backdrop-pick-CvrPdUHE.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-DqKk60fa.js"
|
||||
"houseplan-assets/backdrop-pick-B9Pg_H3G.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-D9DACIGp.js"
|
||||
],
|
||||
"lazyOnboardingGzipBytes": 13919,
|
||||
"lazyLocaleFiles": [
|
||||
"houseplan-assets/de-C6YxCDZc.js",
|
||||
"houseplan-assets/fr-BKJEc804.js"
|
||||
"houseplan-assets/de-Dt-zRmhX.js",
|
||||
"houseplan-assets/fr-BRk2IEO8.js"
|
||||
],
|
||||
"lazyLocaleGzipBytes": 54867,
|
||||
"lazyLocaleGzipBytes": 54845,
|
||||
"lazyIsometricFiles": [
|
||||
"houseplan-assets/guard-BMBlK50U.js",
|
||||
"houseplan-assets/iso-scene-render-BfcWAjpL.js"
|
||||
"houseplan-assets/guard-JshI3Lhp.js",
|
||||
"houseplan-assets/iso-scene-render-DYujIy04.js"
|
||||
],
|
||||
"lazyIsometricGzipBytes": 13459,
|
||||
"lazyIsometricGzipBytes": 13453,
|
||||
"lazyFurnitureArtFiles": [
|
||||
"houseplan-assets/furniture-plan-art.generated-BLtR621S.js"
|
||||
"houseplan-assets/furniture-plan-art.generated-DJ48UIFN.js"
|
||||
],
|
||||
"lazyFurnitureArtGzipBytes": 10249,
|
||||
"lazyFurnitureArtGzipBytes": 10255,
|
||||
"lazyPdfFiles": [
|
||||
"houseplan-assets/furniture-plan-art.generated-BLtR621S.js",
|
||||
"houseplan-assets/pdf-export-DOIJatzy.js"
|
||||
"houseplan-assets/furniture-plan-art.generated-DJ48UIFN.js",
|
||||
"houseplan-assets/pdf-export-BuP_QUBU.js"
|
||||
],
|
||||
"lazyPdfGzipBytes": 120121,
|
||||
"lazyPdfGzipBytes": 120129,
|
||||
"files": [
|
||||
{
|
||||
"path": "houseplan-assets/backdrop-pick-CvrPdUHE.js",
|
||||
"sha256": "f18c266ff57ede82c32fb37d78aa58ae990db5d0e0220d1f4331c1e21c674b1d",
|
||||
"path": "houseplan-assets/backdrop-pick-B9Pg_H3G.js",
|
||||
"sha256": "2d203b196cf03fabfb9bb7aa220a616028833ee997615cbf5077d8ae7a40a5b4",
|
||||
"rawBytes": 19956,
|
||||
"gzipBytes": 6880,
|
||||
"gzipBytes": 6881,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-chP6NBhK.js"
|
||||
"houseplan-assets/houseplan-card-NzYP5Jm2.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/de-C6YxCDZc.js",
|
||||
"sha256": "b3dde2c9526d2f3e9ca2583dfc90dba106c4493b7d24574b826031dd8f04c63e",
|
||||
"path": "houseplan-assets/de-Dt-zRmhX.js",
|
||||
"sha256": "04dbeda01d01120de05cb7ceabe8597b2143aefcf61bfb17a204fbd3b449089a",
|
||||
"rawBytes": 91437,
|
||||
"gzipBytes": 27718,
|
||||
"gzipBytes": 27709,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/editor-EFCjKUy0.js",
|
||||
"sha256": "851fa5b9cd7084225fa06cf167d3329e802dca2ba32e773486aeb9e16c73629a",
|
||||
"path": "houseplan-assets/editor-D2p_-RnD.js",
|
||||
"sha256": "8b8751474b15b2001765bae0f5a0acc46833b0d80edaf8d3c4a8a3355239e4d2",
|
||||
"rawBytes": 3832,
|
||||
"gzipBytes": 1586,
|
||||
"gzipBytes": 1584,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-chP6NBhK.js"
|
||||
"houseplan-assets/houseplan-card-NzYP5Jm2.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/fr-BKJEc804.js",
|
||||
"sha256": "ad81af3ad6d911bf4d8a2ea7a739a6fd89427d7e496e36e0c24bf979ff42ba19",
|
||||
"path": "houseplan-assets/fr-BRk2IEO8.js",
|
||||
"sha256": "6f0625e4d3e8ab672710050ced9ae287f0a44af9e8a710f062a9619798ec1988",
|
||||
"rawBytes": 93701,
|
||||
"gzipBytes": 27149,
|
||||
"gzipBytes": 27136,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/furniture-plan-art.generated-BLtR621S.js",
|
||||
"sha256": "c24257131a7fadad206c7acbdeae3d39bf8f57efc107b409848d40eed36fb128",
|
||||
"path": "houseplan-assets/furniture-plan-art.generated-DJ48UIFN.js",
|
||||
"sha256": "01c4624eda127bc762fce2aa12fa0989873648a504d198c9d34b76ae37bec44d",
|
||||
"rawBytes": 33655,
|
||||
"gzipBytes": 10249,
|
||||
"gzipBytes": 10255,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/guard-BMBlK50U.js",
|
||||
"sha256": "0e82964c9e805ff5dd1ae2000363aaab638b03da9561ea9d7fcb22e0b070b924",
|
||||
"path": "houseplan-assets/guard-JshI3Lhp.js",
|
||||
"sha256": "34bd1f95ed78a91bc2176c6883eabecc0d89b727e1d3696107ffbeb867d446ac",
|
||||
"rawBytes": 518,
|
||||
"gzipBytes": 370,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-chP6NBhK.js"
|
||||
"houseplan-assets/houseplan-card-NzYP5Jm2.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/houseplan-card-chP6NBhK.js",
|
||||
"sha256": "8a88d86c85a97ad97d0abd3858211b5f6d5d168ec6eff566036b96197e2d42dc",
|
||||
"rawBytes": 1031082,
|
||||
"gzipBytes": 289446,
|
||||
"path": "houseplan-assets/houseplan-card-NzYP5Jm2.js",
|
||||
"sha256": "c236766293f16b46dcb42e90ced1f9e107028808587d5a19d07b84891de3f8d2",
|
||||
"rawBytes": 1031164,
|
||||
"gzipBytes": 289466,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": [
|
||||
"houseplan-assets/de-C6YxCDZc.js",
|
||||
"houseplan-assets/editor-EFCjKUy0.js",
|
||||
"houseplan-assets/fr-BKJEc804.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-BLtR621S.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-FHl9qBUM.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-DqKk60fa.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-DknAaLQb.js",
|
||||
"houseplan-assets/iso-scene-render-BfcWAjpL.js",
|
||||
"houseplan-assets/live-interaction-runtime-C65e5HA-.js",
|
||||
"houseplan-assets/pdf-export-DOIJatzy.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-D2ugQG3G.js"
|
||||
"houseplan-assets/de-Dt-zRmhX.js",
|
||||
"houseplan-assets/editor-D2p_-RnD.js",
|
||||
"houseplan-assets/fr-BRk2IEO8.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-DJ48UIFN.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-rFPiRjPW.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-D9DACIGp.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-CI6k6rk-.js",
|
||||
"houseplan-assets/iso-scene-render-DYujIy04.js",
|
||||
"houseplan-assets/live-interaction-runtime-F2M4YAVj.js",
|
||||
"houseplan-assets/pdf-export-BuP_QUBU.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-DcW95Urk.js"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/houseplan-editor-runtime-FHl9qBUM.js",
|
||||
"sha256": "20f076f7ec4c6c7bfb1e71c50a0db309ab3f368274fc4e0e716d67082da8ef50",
|
||||
"path": "houseplan-assets/houseplan-editor-runtime-rFPiRjPW.js",
|
||||
"sha256": "d17d03703a030219b723d9c29e50c04515284c397f3c2a4e500dbf98144e149e",
|
||||
"rawBytes": 668940,
|
||||
"gzipBytes": 178538,
|
||||
"gzipBytes": 178535,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/backdrop-pick-CvrPdUHE.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-BLtR621S.js",
|
||||
"houseplan-assets/guard-BMBlK50U.js",
|
||||
"houseplan-assets/houseplan-card-chP6NBhK.js",
|
||||
"houseplan-assets/zigbee-topology-E9um8AjR.js"
|
||||
"houseplan-assets/backdrop-pick-B9Pg_H3G.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-DJ48UIFN.js",
|
||||
"houseplan-assets/guard-JshI3Lhp.js",
|
||||
"houseplan-assets/houseplan-card-NzYP5Jm2.js",
|
||||
"houseplan-assets/zigbee-topology-Cy3WZyQ_.js"
|
||||
],
|
||||
"dynamicImports": [
|
||||
"houseplan-assets/zigbee-topology-runtime-CgRErW8m.js"
|
||||
"houseplan-assets/zigbee-topology-runtime-C9Ha_xER.js"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/houseplan-onboarding-runtime-DqKk60fa.js",
|
||||
"sha256": "a8a4541a25b9600440dbff0cd88f7946b1e1a9b69757a5d7326a6007da76d84f",
|
||||
"path": "houseplan-assets/houseplan-onboarding-runtime-D9DACIGp.js",
|
||||
"sha256": "b15071f2dada1c45f2750faf63e3dca632cb48c9f8b8420660eb802e5278cfdb",
|
||||
"rawBytes": 28287,
|
||||
"gzipBytes": 7039,
|
||||
"gzipBytes": 7038,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/backdrop-pick-CvrPdUHE.js",
|
||||
"houseplan-assets/houseplan-card-chP6NBhK.js"
|
||||
"houseplan-assets/backdrop-pick-B9Pg_H3G.js",
|
||||
"houseplan-assets/houseplan-card-NzYP5Jm2.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/hp-zigbee-topology-overlay-DknAaLQb.js",
|
||||
"sha256": "77885083e418a824e4329f888ca7a9cc6f987f78188c72969578a510ecec7363",
|
||||
"path": "houseplan-assets/hp-zigbee-topology-overlay-CI6k6rk-.js",
|
||||
"sha256": "6a088a1e5b0ee7446da4d90af50b0e5e4a01873e0dbfd0dcbd104483d2141c52",
|
||||
"rawBytes": 10756,
|
||||
"gzipBytes": 3683,
|
||||
"gzipBytes": 3684,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-chP6NBhK.js",
|
||||
"houseplan-assets/zigbee-topology-E9um8AjR.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-CgRErW8m.js"
|
||||
"houseplan-assets/houseplan-card-NzYP5Jm2.js",
|
||||
"houseplan-assets/zigbee-topology-Cy3WZyQ_.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-C9Ha_xER.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/iso-scene-render-BfcWAjpL.js",
|
||||
"sha256": "7191548d53d1b65cb9cd63b2972c04f5b612e7bed59ccd8fe8d5b759c39376bf",
|
||||
"path": "houseplan-assets/iso-scene-render-DYujIy04.js",
|
||||
"sha256": "4b43e9012bd547f7b5766bc6e7f4707b9d58d553e4c8a017b298ae977d917fa6",
|
||||
"rawBytes": 38562,
|
||||
"gzipBytes": 13089,
|
||||
"gzipBytes": 13083,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/guard-BMBlK50U.js",
|
||||
"houseplan-assets/houseplan-card-chP6NBhK.js"
|
||||
"houseplan-assets/guard-JshI3Lhp.js",
|
||||
"houseplan-assets/houseplan-card-NzYP5Jm2.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/live-interaction-runtime-C65e5HA-.js",
|
||||
"sha256": "fd554312270581fb71bf0d854bb28b0e3c09248cf90330fc3506f4f076d050a2",
|
||||
"rawBytes": 7884,
|
||||
"gzipBytes": 3112,
|
||||
"path": "houseplan-assets/live-interaction-runtime-F2M4YAVj.js",
|
||||
"sha256": "0fa030ae07bb5fcb3d8b5a5c5058ed13fbe95917bea3899539a9ad40f2eb75f9",
|
||||
"rawBytes": 8018,
|
||||
"gzipBytes": 3167,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-chP6NBhK.js"
|
||||
"houseplan-assets/houseplan-card-NzYP5Jm2.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/pdf-export-DOIJatzy.js",
|
||||
"sha256": "0946991958e9bcadbed2df522562f1fb1128d1ba6512c56188bdf1266dda7163",
|
||||
"path": "houseplan-assets/pdf-export-BuP_QUBU.js",
|
||||
"sha256": "dacfd6006cedeb095940b759e30f7813f54de6ef24100d2c388f64262c08bd5e",
|
||||
"rawBytes": 236244,
|
||||
"gzipBytes": 109872,
|
||||
"gzipBytes": 109874,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/furniture-plan-art.generated-BLtR621S.js",
|
||||
"houseplan-assets/houseplan-card-chP6NBhK.js"
|
||||
"houseplan-assets/furniture-plan-art.generated-DJ48UIFN.js",
|
||||
"houseplan-assets/houseplan-card-NzYP5Jm2.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/summary-panel-editor-B0Pr-g7s.js",
|
||||
"sha256": "7c7ebb5493f4a0c39be7ecb29fd1377fb1fa74ec376701fc434f65d2d30e26f3",
|
||||
"path": "houseplan-assets/summary-panel-editor-HEZMbuqG.js",
|
||||
"sha256": "2dd3a65da05139342dc8d1b99bce18e4d9e306adf41d5a929770032a205cb7da",
|
||||
"rawBytes": 14824,
|
||||
"gzipBytes": 3404,
|
||||
"gzipBytes": 3401,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-chP6NBhK.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-D2ugQG3G.js"
|
||||
"houseplan-assets/houseplan-card-NzYP5Jm2.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-DcW95Urk.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/summary-panel-metrics-DT6qsOpv.js",
|
||||
"sha256": "461a5d15b503e863b8385cf8279bf0f0e16cc704335c440a984468c91f3ac54e",
|
||||
"path": "houseplan-assets/summary-panel-metrics-DG14yqMW.js",
|
||||
"sha256": "457ba5e75153796317e043bae602582c628353cfc57f6ba81c7721eeab59993e",
|
||||
"rawBytes": 2610,
|
||||
"gzipBytes": 1309,
|
||||
"gzipBytes": 1305,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-chP6NBhK.js"
|
||||
"houseplan-assets/houseplan-card-NzYP5Jm2.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/summary-panel-runtime-loaded-D2ugQG3G.js",
|
||||
"sha256": "91fb3818a781de5d386bb652592b927a8f5b3c4e11362c8555d00db7f99f2c04",
|
||||
"path": "houseplan-assets/summary-panel-runtime-loaded-DcW95Urk.js",
|
||||
"sha256": "d3e34121553c7f24ccfc423f2268d4532e2d864f59a6f227530f1371a85e8992",
|
||||
"rawBytes": 73366,
|
||||
"gzipBytes": 20088,
|
||||
"gzipBytes": 20089,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-chP6NBhK.js"
|
||||
"houseplan-assets/houseplan-card-NzYP5Jm2.js"
|
||||
],
|
||||
"dynamicImports": [
|
||||
"houseplan-assets/summary-panel-editor-B0Pr-g7s.js",
|
||||
"houseplan-assets/summary-panel-metrics-DT6qsOpv.js"
|
||||
"houseplan-assets/summary-panel-editor-HEZMbuqG.js",
|
||||
"houseplan-assets/summary-panel-metrics-DG14yqMW.js"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/zigbee-topology-E9um8AjR.js",
|
||||
"sha256": "332d01ce8e41dbac9af4fa798bf3a806ea2de52412ae26c58f47eb3054701f26",
|
||||
"path": "houseplan-assets/zigbee-topology-Cy3WZyQ_.js",
|
||||
"sha256": "9298d7c7907f7fcf3baa0eb6682e1e37bb46866c0b6b8d31b1108a00ad92bf5b",
|
||||
"rawBytes": 18961,
|
||||
"gzipBytes": 7433,
|
||||
"gzipBytes": 7430,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-chP6NBhK.js"
|
||||
"houseplan-assets/houseplan-card-NzYP5Jm2.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/zigbee-topology-runtime-CgRErW8m.js",
|
||||
"sha256": "da42a4df320003f9ca4dc732069d7e1ca47402e0cc222d8227b786a52285f6e8",
|
||||
"path": "houseplan-assets/zigbee-topology-runtime-C9Ha_xER.js",
|
||||
"sha256": "b0e9d308dc87cf596ce64189c3e88d510600bde67eb4b60c3d1cd4d7e5d456a2",
|
||||
"rawBytes": 3941,
|
||||
"gzipBytes": 1766,
|
||||
"gzipBytes": 1764,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-chP6NBhK.js",
|
||||
"houseplan-assets/zigbee-topology-E9um8AjR.js"
|
||||
"houseplan-assets/houseplan-card-NzYP5Jm2.js",
|
||||
"houseplan-assets/zigbee-topology-Cy3WZyQ_.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-card.js",
|
||||
"sha256": "08dec1f8e4ef7c1624f10d49df909dce2c6c3037bbf462f233e627bc7ba2ff95",
|
||||
"sha256": "8ca1d7e313a763b3fd24c0aa02ba0d9427cc0263a56d527d974cf9d6adcfb76b",
|
||||
"rawBytes": 1205,
|
||||
"gzipBytes": 806,
|
||||
"gzipBytes": 803,
|
||||
"isEntry": true,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-chP6NBhK.js"
|
||||
"houseplan-assets/houseplan-card-NzYP5Jm2.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-panel.js",
|
||||
"sha256": "6531186ab5b9e0b0833275a9887db0f4574aedd2fe466a0af87c90c4f63e94f0",
|
||||
"sha256": "625c0fb3d5a2779710adf03ee199905d6439a4e5375535f5a278afb180f58c04",
|
||||
"rawBytes": 6165,
|
||||
"gzipBytes": 2329,
|
||||
"gzipBytes": 2326,
|
||||
"isEntry": true,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-chP6NBhK.js"
|
||||
"houseplan-assets/houseplan-card-NzYP5Jm2.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
}
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+5
-5
@@ -1,14 +1,14 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="668466a273bc161fb0232215df40fd095aa162047e9b574518867c8554a75991";import{m as e,l as o,t,e3 as s,A as a,e4 as i,e5 as l,e6 as n,dU as r,b as c}from"./houseplan-card-chP6NBhK.js";class h extends e{constructor(){super(...arguments),this._spaces=null,this._spacesLoading=!1,this._spacesAuthoritative=!1}setConfig(e){this._config=e}async _loadSpaces(){if(!this._spaces&&!this._spacesLoading&&this.hass){this._spacesLoading=!0;try{const e=await this.hass.callWS({type:"houseplan/config/get"});this._spaces=(e?.config?.spaces||[]).map(e=>({value:e.id,label:e.title||e.id})),this._spacesAuthoritative=!0}catch{this._spaces=[],this._spacesAuthoritative=!1}finally{this._spacesLoading=!1}}}get _lang(){return o(this.hass,this._config?.language)}get _floorToken(){const e=this._config?.floor;return"number"==typeof e?`__houseplan_yaml_floor_index__:${String(e)}`:null}get _formData(){const e={...this._config},o=this._floorToken;return o?e.floor=o:Object.prototype.hasOwnProperty.call(e,"floor")||(e.floor=""),e}get _schema(){const e=this._spaces||[],o=this._lang,a=[{value:"",label:t(o,"editor.floor_none")}],i=this._floorToken;i&&a.push({value:i,label:t(o,"editor.floor_index",{index:String(this._config?.floor)})});const l="string"==typeof this._config?.floor?this._config.floor:"";l&&!e.some(e=>e.value===l)&&a.push({value:l,label:l}),a.push(...e);const n="string"==typeof this._config?.default_floor?this._config.default_floor:"",r=[...e];return n&&!e.some(e=>e.value===n)&&r.unshift({value:n,label:n}),[{name:"title",selector:{text:{}}},{name:"floor",selector:{select:{mode:"dropdown",options:a}}},e.length?{name:"default_floor",selector:{select:{mode:"dropdown",options:r}}}:{name:"default_floor",selector:{text:{}}},{name:"language",selector:{select:{mode:"dropdown",options:s(t(o,"editor.lang_auto"),this._config?.language)}}},{name:"icon_size",selector:{number:{min:1,max:6,step:.1,mode:"box"}}},{name:"show_temperature",selector:{boolean:{}}},{name:"live_states",selector:{boolean:{}}},{name:"show_signal",selector:{boolean:{}}},{name:"kiosk",selector:{boolean:{}}},{name:"cycle",selector:{number:{min:0,max:3600,step:5,mode:"box"}}}]}render(){if(!this.hass||!this._config)return a;const e=i(this,l,o(this.hass,this._config.language));if("cold"===e)return n();if("warm"===e)return r;this._loadSpaces();const s=this._lang,h={title:t(s,"editor.title"),floor:t(s,"editor.floor"),default_floor:t(s,"editor.default_floor"),language:t(s,"editor.language"),icon_size:t(s,"editor.icon_size"),show_temperature:t(s,"editor.show_temperature"),live_states:t(s,"editor.live_states"),show_signal:t(s,"editor.show_signal"),kiosk:t(s,"editor.kiosk"),cycle:t(s,"editor.cycle")},f=this._schema,_=function(e,o,t){if(!t||null===o)return null;const s="string"==typeof e?.default_floor?e.default_floor:"";return!s||o.some(e=>e.value===s)?null:s}(this._config,this._spaces,this._spacesAuthoritative),d=e=>c`<ha-form
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="872076741677c95a78bbd45aa6a6eefb714f591bdaa16fff0cc5f3bf977e63b5";import{m as e,l as o,t,e3 as s,A as a,e4 as i,e5 as l,e6 as n,dU as r,b as c}from"./houseplan-card-NzYP5Jm2.js";class f extends e{constructor(){super(...arguments),this._spaces=null,this._spacesLoading=!1,this._spacesAuthoritative=!1}setConfig(e){this._config=e}async _loadSpaces(){if(!this._spaces&&!this._spacesLoading&&this.hass){this._spacesLoading=!0;try{const e=await this.hass.callWS({type:"houseplan/config/get"});this._spaces=(e?.config?.spaces||[]).map(e=>({value:e.id,label:e.title||e.id})),this._spacesAuthoritative=!0}catch{this._spaces=[],this._spacesAuthoritative=!1}finally{this._spacesLoading=!1}}}get _lang(){return o(this.hass,this._config?.language)}get _floorToken(){const e=this._config?.floor;return"number"==typeof e?`__houseplan_yaml_floor_index__:${String(e)}`:null}get _formData(){const e={...this._config},o=this._floorToken;return o?e.floor=o:Object.prototype.hasOwnProperty.call(e,"floor")||(e.floor=""),e}get _schema(){const e=this._spaces||[],o=this._lang,a=[{value:"",label:t(o,"editor.floor_none")}],i=this._floorToken;i&&a.push({value:i,label:t(o,"editor.floor_index",{index:String(this._config?.floor)})});const l="string"==typeof this._config?.floor?this._config.floor:"";l&&!e.some(e=>e.value===l)&&a.push({value:l,label:l}),a.push(...e);const n="string"==typeof this._config?.default_floor?this._config.default_floor:"",r=[...e];return n&&!e.some(e=>e.value===n)&&r.unshift({value:n,label:n}),[{name:"title",selector:{text:{}}},{name:"floor",selector:{select:{mode:"dropdown",options:a}}},e.length?{name:"default_floor",selector:{select:{mode:"dropdown",options:r}}}:{name:"default_floor",selector:{text:{}}},{name:"language",selector:{select:{mode:"dropdown",options:s(t(o,"editor.lang_auto"),this._config?.language)}}},{name:"icon_size",selector:{number:{min:1,max:6,step:.1,mode:"box"}}},{name:"show_temperature",selector:{boolean:{}}},{name:"live_states",selector:{boolean:{}}},{name:"show_signal",selector:{boolean:{}}},{name:"kiosk",selector:{boolean:{}}},{name:"cycle",selector:{number:{min:0,max:3600,step:5,mode:"box"}}}]}render(){if(!this.hass||!this._config)return a;const e=i(this,l,o(this.hass,this._config.language));if("cold"===e)return n();if("warm"===e)return r;this._loadSpaces();const s=this._lang,f={title:t(s,"editor.title"),floor:t(s,"editor.floor"),default_floor:t(s,"editor.default_floor"),language:t(s,"editor.language"),icon_size:t(s,"editor.icon_size"),show_temperature:t(s,"editor.show_temperature"),live_states:t(s,"editor.live_states"),show_signal:t(s,"editor.show_signal"),kiosk:t(s,"editor.kiosk"),cycle:t(s,"editor.cycle")},h=this._schema,_=function(e,o,t){if(!t||null===o)return null;const s="string"==typeof e?.default_floor?e.default_floor:"";return!s||o.some(e=>e.value===s)?null:s}(this._config,this._spaces,this._spacesAuthoritative),d=e=>c`<ha-form
|
||||
.hass=${this.hass}
|
||||
.data=${this._formData}
|
||||
.schema=${e}
|
||||
.computeLabel=${e=>h[e.name]||e.name}
|
||||
.computeLabel=${e=>f[e.name]||e.name}
|
||||
@value-changed=${this._valueChanged}
|
||||
></ha-form>`;return c`
|
||||
${d(f.slice(0,3))}
|
||||
${d(h.slice(0,3))}
|
||||
${_?c`<div class="default-floor-error" role="alert"
|
||||
style="color:var(--error-color,#db4437);margin:-4px 0 12px;overflow-wrap:anywhere">
|
||||
${t(s,"editor.default_floor_missing",{id:_})}
|
||||
</div>`:a}
|
||||
${d(f.slice(3))}
|
||||
`}_valueChanged(e){const o={...this._config,...e.detail.value};""===o.floor?delete o.floor:o.floor===this._floorToken&&(o.floor=this._config?.floor);const t=new Event("config-changed",{bubbles:!0,composed:!0});t.detail={config:o},this.dispatchEvent(t)}}h.properties={hass:{attribute:!1},_config:{state:!0},_spaces:{state:!0}},customElements.get("houseplan-card-editor")||customElements.define("houseplan-card-editor",h);
|
||||
${d(h.slice(3))}
|
||||
`}_valueChanged(e){const o={...this._config,...e.detail.value};""===o.floor?delete o.floor:o.floor===this._floorToken&&(o.floor=this._config?.floor);const t=new Event("config-changed",{bubbles:!0,composed:!0});t.detail={config:o},this.dispatchEvent(t)}}f.properties={hass:{attribute:!1},_config:{state:!0},_spaces:{state:!0}},customElements.get("houseplan-card-editor")||customElements.define("houseplan-card-editor",f);
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="668466a273bc161fb0232215df40fd095aa162047e9b574518867c8554a75991";import{dS as r,dT as t,dU as s}from"./houseplan-card-chP6NBhK.js";const e={},a=r(class extends t{constructor(){super(...arguments),this.ot=e}render(r,t){return t()}update(r,[t,e]){if(Array.isArray(t)){if(Array.isArray(this.ot)&&this.ot.length===t.length&&t.every((r,t)=>r===this.ot[t]))return s}else if(this.ot===t)return s;return this.ot=Array.isArray(t)?Array.from(t):t,this.render(t,e)}});export{a as i};
|
||||
@@ -0,0 +1 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="872076741677c95a78bbd45aa6a6eefb714f591bdaa16fff0cc5f3bf977e63b5";import{dS as r,dT as t,dU as e}from"./houseplan-card-NzYP5Jm2.js";const s={},a=r(class extends t{constructor(){super(...arguments),this.ot=s}render(r,t){return t()}update(r,[t,s]){if(Array.isArray(t)){if(Array.isArray(this.ot)&&this.ot.length===t.length&&t.every((r,t)=>r===this.ot[t]))return e}else if(this.ot===t)return e;return this.ot=Array.isArray(t)?Array.from(t):t,this.render(t,s)}});export{a as i};
|
||||
+6
-6
File diff suppressed because one or more lines are too long
+3
-3
File diff suppressed because one or more lines are too long
+4
-4
@@ -1,4 +1,4 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="668466a273bc161fb0232215df40fd095aa162047e9b574518867c8554a75991";import{l as t,b0 as s,A as e,t as a,b as o,cj as l,ck as i,cl as h,cm as c,aZ as n,cn as r,cs as p,co as d,cp as _,cq as u,cr as g,ct as m,cu as b,dp as $,dq as v,dr as f,aY as y,a_ as w,ds as D}from"./houseplan-card-chP6NBhK.js";import{c as k,e as S,r as C,a as M}from"./backdrop-pick-CvrPdUHE.js";const F=1e3,x=t=>{if(!t.trim())return null;const s=Number(t.replace(",","."));return Number.isFinite(s)?s:null},T="668466a273bc161fb0232215df40fd095aa162047e9b574518867c8554a75991";class L{constructor(t){this.host=t,this._toggleServerPlans=async()=>{const t=this.host._spaceDialog;if(t)if(t.pickSaved)this.host._spaceDialog={...t,pickSaved:!1};else{this.host._spaceDialog={...t,pickSaved:!0,savedBusy:!0};try{const t=await this.host.hass.callWS({type:"houseplan/plans/list"}),s=this.host._spaceDialog;s&&(this.host._spaceDialog={...s,saved:t?.plans||[],savedBusy:!1})}catch(t){const s=this.host._spaceDialog;s&&(this.host._spaceDialog={...s,saved:[],savedBusy:!1}),this.host._showToast(this.host._t("toast.plans_list_failed",{err:this.host._errText(t)}))}}}}_help(l){const i=`${l}.aria`,h=t(this.host.hass,this.host._config?.language);return s(h,l)&&s(h,i)?o`<hp-help data-help-key=${l}
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="872076741677c95a78bbd45aa6a6eefb714f591bdaa16fff0cc5f3bf977e63b5";import{l as t,b0 as s,A as e,t as a,b as o,cj as l,ck as i,cl as h,cm as c,aZ as n,cn as r,cs as p,co as d,cp as _,cq as u,cr as g,ct as m,cu as b,dp as $,dq as f,dr as v,aY as y,a_ as w,ds as D}from"./houseplan-card-NzYP5Jm2.js";import{c as k,e as S,r as C,a as M}from"./backdrop-pick-B9Pg_H3G.js";const F=1e3,x=t=>{if(!t.trim())return null;const s=Number(t.replace(",","."));return Number.isFinite(s)?s:null},T="872076741677c95a78bbd45aa6a6eefb714f591bdaa16fff0cc5f3bf977e63b5";class L{constructor(t){this.host=t,this._toggleServerPlans=async()=>{const t=this.host._spaceDialog;if(t)if(t.pickSaved)this.host._spaceDialog={...t,pickSaved:!1};else{this.host._spaceDialog={...t,pickSaved:!0,savedBusy:!0};try{const t=await this.host.hass.callWS({type:"houseplan/plans/list"}),s=this.host._spaceDialog;s&&(this.host._spaceDialog={...s,saved:t?.plans||[],savedBusy:!1})}catch(t){const s=this.host._spaceDialog;s&&(this.host._spaceDialog={...s,saved:[],savedBusy:!1}),this.host._showToast(this.host._t("toast.plans_list_failed",{err:this.host._errText(t)}))}}}}_help(l){const i=`${l}.aria`,h=t(this.host.hass,this.host._config?.language);return s(h,l)&&s(h,i)?o`<hp-help data-help-key=${l}
|
||||
.text=${a(h,l)} .ariaLabel=${a(h,i)}></hp-help>`:e}_openSpaceDialog(t,s){if(!this.host._serverStorage||!this.host._serverCfg)return void this.host._showToast(this.host._t("toast.integration_missing"));if("edit"===t){const e=this.host._serverCfg.spaces.find(t=>t.id===s);if(!e)return;const a=l(e),o=e.settings?.custom_fill&&"object"==typeof e.settings.custom_fill?i(e.settings.custom_fill):null,p="none"===a.fill?{...o||h,a:0}:o;return void(this.host._spaceDialog={mode:t,spaceId:s,title:e.title,planUrl:e.plan_url||null,planFile:null,source:e.plan_url?"file":"draw",showBorders:a.showBorders,showNames:a.showNames,zeroWallStyle:r(e),displayTouched:!0,hideDecor:a.hideDecor,hideOpenings:a.hideOpenings,roomColor:a.color,roomOpacity:a.opacity,fillMode:"none"===a.fill?"custom":a.fill,customFill:p,glowEnabled:a.glow,bgColor:a.bgColor,bgMode:"static"===e.settings?.bg_mode||"daynight"===e.settings?.bg_mode?e.settings.bg_mode:null,northDeg:n({},e.settings),sunRays:"boolean"==typeof e.settings?.sun_rays?e.settings.sun_rays:null,tempMin:a.tempMin,tempMax:a.tempMax,showLqi:a.showLqi??this.host._config?.show_signal??!0,cardFontScale:a.cardFontScale,labelTemp:a.labelTemp,labelHum:a.labelHum,labelLqi:a.labelLqi,labelLight:a.labelLight,cellCm:Number(e.cell_cm)>0?Number(e.cell_cm):5,cellCmInput:c(Number(e.cell_cm)>0?Number(e.cell_cm):5,this.host._imperial),cellCmTouched:!1,busy:!1})}const e=p(this.host._imperial);this.host._spaceDialog={mode:t,title:"",planUrl:null,planFile:null,...m(),hideDecor:!1,hideOpenings:!1,zeroWallStyle:"dashed",roomColor:g,roomOpacity:u,fillMode:"custom",customFill:{...h,a:0},glowEnabled:!0,bgColor:null,bgMode:"daynight",northDeg:null,sunRays:null,tempMin:_,tempMax:d,showLqi:this.host._config?.show_signal??!0,cardFontScale:1,labelTemp:!1,labelHum:!1,labelLqi:!1,labelLight:!1,cellCm:e,cellCmInput:c(e,this.host._imperial),cellCmTouched:!1,busy:!1}}async _pickPlanFile(t){const s=t.target,e=s.files?.[0];if(!e||!this.host._spaceDialog)return;s.value="";const a=await k(e);if("reject"===a.kind)return void this.host._showToast(this.host._t("toast.plan_formats"));if("guard"===a.kind)return void(this.host._backdropGuard=a.state);const o=await S(e,a.ext,e.name);this.host._spaceDialog&&(this.host._spaceDialog={...this.host._spaceDialog,planFile:o})}_renderBackdropGuard(){return C(this.host,t=>{this.host._spaceDialog&&(this.host._spaceDialog={...this.host._spaceDialog,planFile:t})},()=>{this.host._backdropGuard=null},this.host.hass)??e}_useServerPlan(t){const s=this.host._spaceDialog;s&&(this.host._spaceDialog={...s,planUrl:t,planFile:null,pickSaved:!1,savedAspect:void 0},this.host._aspectJob=this._readPlanAspect(t))}async _readPlanAspect(t){for(let s=0;s<40;s++){const s=this.host._display(t);if(s){const e=await new Promise(t=>{const e=new Image;e.onload=()=>t(e.naturalWidth&&e.naturalHeight?e.naturalWidth/e.naturalHeight:0),e.onerror=()=>t(0),e.src=s}),a=this.host._spaceDialog;return a&&a.planUrl===t&&Number.isFinite(e)&&e>0?(this.host._spaceDialog={...a,savedAspect:e},e):0}if(await new Promise(t=>setTimeout(t,150)),this.host._spaceDialog?.planUrl!==t)return 0}return 0}async _deleteServerPlan(t){const s=this.host._spaceDialog,e=s?.saved?.find(s=>s.name===t);if(!s||!e||e.used_by.length||e.url===s.planUrl)return;const a=await this.host._confirmDanger({key:"delete-plan",kind:"destructive",title:this.host._t("confirm.delete_plan_title"),message:this.host._t("confirm.delete_plan_body"),objectName:t,confirmLabel:this.host._t("btn.delete"),cancelLabel:this.host._t("btn.cancel")}),o=this.host._spaceDialog,l=o?.saved?.find(s=>s.name===t);if(a&&o&&l&&l.url===e.url&&l.modified===e.modified&&!l.used_by.length&&l.url!==o.planUrl)try{await this.host.hass.callWS({type:"houseplan/plans/delete",name:t});const s=this.host._spaceDialog;s?.saved&&(this.host._spaceDialog={...s,saved:s.saved.filter(s=>s.name!==t)})}catch(t){this.host._showToast(this.host._t("toast.plan_delete_failed",{err:this.host._errText(t)}))}}_renderServerPlans(t){if(t.savedBusy)return o`<div class="savedplans muted">${this.host._t("space.loading")}</div>`;const s=t.saved||[];if(!s.length)return o`<div class="savedplans muted">${this.host._t("space.no_saved")}</div>`;return o`<div class="savedplans">
|
||||
${s.map(s=>{return o`
|
||||
<div class="savedplan ${s.url===t.planUrl?"cur":""}">
|
||||
@@ -85,13 +85,13 @@ globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="668466a273bc161fb0232215df40fd095aa1
|
||||
max=${c(F,this.host._imperial)}
|
||||
step="0.1"
|
||||
.value=${t.cellCmInput??c(t.cellCm,this.host._imperial)}
|
||||
@input=${s=>{const e=s.target.value,a=x(e),o=null==a?null:v(a,this.host._imperial);this.host._spaceDialog={...t,cellCmInput:e,cellCmTouched:!0,cellCm:null!=o&&o>0?Math.max(.1,Math.min(F,o)):t.cellCm}}} />
|
||||
@input=${s=>{const e=s.target.value,a=x(e),o=null==a?null:f(a,this.host._imperial);this.host._spaceDialog={...t,cellCmInput:e,cellCmTouched:!0,cellCm:null!=o&&o>0?Math.max(.1,Math.min(F,o)):t.cellCm}}} />
|
||||
<span class="opl">${this.host._t(this.host._imperial?"space.scale_unit_imperial":"space.scale_unit")}</span>
|
||||
</div>
|
||||
|
||||
<label class="dispsection">${this.host._t("space.display_section")}</label>
|
||||
<label class="srcrow">
|
||||
${this._boolInput(t.showBorders,s=>{this.host._spaceDialog=f(t,"showBorders",s)})}
|
||||
${this._boolInput(t.showBorders,s=>{this.host._spaceDialog=v(t,"showBorders",s)})}
|
||||
<span>${this.host._t("space.show_borders")}</span>
|
||||
</label>
|
||||
<div class="helpfieldlabel">
|
||||
@@ -107,7 +107,7 @@ globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="668466a273bc161fb0232215df40fd095aa1
|
||||
</option>
|
||||
</select>
|
||||
<label class="srcrow">
|
||||
${this._boolInput(t.showNames,s=>{this.host._spaceDialog=f(t,"showNames",s)})}
|
||||
${this._boolInput(t.showNames,s=>{this.host._spaceDialog=v(t,"showNames",s)})}
|
||||
<span>${this.host._t("space.show_names")}</span>
|
||||
</label>
|
||||
<label class="srcrow">
|
||||
+2
-2
File diff suppressed because one or more lines are too long
+8
-8
File diff suppressed because one or more lines are too long
-1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
+2
-2
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,4 +1,4 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="668466a273bc161fb0232215df40fd095aa162047e9b574518867c8554a75991";import{b as a,A as e}from"./houseplan-card-chP6NBhK.js";import{s,n as t,a as l,m as r,b as o,c as i,d as u}from"./summary-panel-runtime-loaded-D2ugQG3G.js";const m=m=>{const{host:c,dialog:d,problems:n,t:b}=m,y=n.find(a=>"error"===a.kind),$=d.localShow!==d.baseLocalShow||!d.localOnly&&!s(t(d.draft),d.base),p=$&&!d.busy&&!y,v=a=>n.find(e=>e.path===a),h=a=>a?b(`summary.problem.${a.code}`):"",k=()=>m.close(),g=a`<label class="summary-switch" for="summary-local-show">
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="872076741677c95a78bbd45aa6a6eefb714f591bdaa16fff0cc5f3bf977e63b5";import{b as a,A as e}from"./houseplan-card-NzYP5Jm2.js";import{s,n as t,a as l,m as r,b as o,c as i,d as u}from"./summary-panel-runtime-loaded-DcW95Urk.js";const m=m=>{const{host:c,dialog:d,problems:n,t:b}=m,y=n.find(a=>"error"===a.kind),$=d.localShow!==d.baseLocalShow||!d.localOnly&&!s(t(d.draft),d.base),p=$&&!d.busy&&!y,v=a=>n.find(e=>e.path===a),h=a=>a?b(`summary.problem.${a.code}`):"",k=()=>m.close(),g=a`<label class="summary-switch" for="summary-local-show">
|
||||
<span class="summary-switch-caption"><strong>${b("summary.show_local")}</strong>
|
||||
<small id="summary-local-show-hint">${b("summary.show_local_hint")}</small></span>
|
||||
<input id="summary-local-show" data-summary-local-show type="checkbox"
|
||||
+1
@@ -0,0 +1 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="872076741677c95a78bbd45aa6a6eefb714f591bdaa16fff0cc5f3bf977e63b5";import{e9 as e,L as t,a2 as n,J as i,an as o,N as r,bo as a,bn as s,a1 as c,a0 as l,ax as u,ea as d,eb as f,bq as m,ec as g}from"./houseplan-card-NzYP5Jm2.js";function v(e){if(!e.registry.authoritative)return null;const t=new Set,n=u(e.markers);for(const i of Object.values(e.registry.devices||{}))i?.id&&"service"!==i.entry_type&&!n.devices.has(i.id)&&i.area_id&&e.areaToSpace[i.area_id]&&t.add(i.id);for(const i of e.markers||[]){if(i.removed||"virtual"===i.binding)continue;const o=String(i.binding||"").indexOf(":");if(o<1)continue;const r=i.binding.slice(0,o),a=i.binding.slice(o+1),s="device"===r?e.registry.devices?.[a]:null,c="entity"===r?e.registry.entities?.[a]:null,l="device"===r?a:c?.device_id,u="device"===r?s?.area_id:c?.area_id||l&&e.registry.devices?.[l]?.area_id,d="string"==typeof i.room_id&&i.room_id.length>0&&null===i.area?"":i.area||u||"",f=d&&e.areaToSpace[d]||i.space||e.firstSpaceId;l&&e.registry.devices?.[l]&&e.spaceIds.has(f)&&(!n.devices.has(l)||"entity"===r&&n.liveEntities.has(a))&&t.add(l)}return t}function y(e,t){return e?.length?t?.length?g(e,t):e:t}function _(e,t){const n=c(e.rooms,t.walls,t.openCuts,[],i,t.cellCm,o,r);return{roomGeom:"ok"===n.status||"degraded-extra"===n.status?n.roomGeom:void 0,multiWallNodes:l(e.rooms,t.walls,t.openCuts,i,t.cellCm,o,r)}}function*b(c,l,u=_){try{let d=0;for(const f of l){const l=c.spaces.find(e=>String(e?.id)===f.id);if(!l)continue;const m=e(l,f),g=u(f,m);let v=null;for(const e of f.rooms){if(!e.id)continue;const s=t(e);if(!s)continue;const c=n(f.rooms,e.id,m.walls,m.openCuts,i,m.cellCm,o,r,g.roomGeom,g.multiWallNodes)||s;v=y(v,a(c,m.physicalBodies)),yield}const _=m.cellCm/o;d+=s(v)*_*_/1e4}return d}catch{return null}}function h(e,t,n=_){const i=b(e,t,n);let o=i.next();for(;!o.done;)o=i.next();return o.value}function p(e,t,n,i){if("system"!==e.type)return null;if("device_count"===e.key)return null===t.deviceCount?null:String(t.deviceCount);if("total_area"===e.key)return null===t.areaM2?null:m(t.areaM2,"mi"===n?.config?.unit_system?.length);try{return new Intl.DateTimeFormat(i||void 0,{dateStyle:"short",timeStyle:"short",timeZone:n?.config?.time_zone||void 0}).format(t.now)}catch{return t.now.toLocaleString()}}function S(e,t){const n=e?.states?.[t];if(!n)return null;const i=d(e,t);return i?f(i,String(n.attributes?.unit_of_measurement||"")):null}export{b as cleanFloorAreaSteps,v as representedHaDeviceIds,_ as spaceWallGeometry,S as summaryEntityValue,p as summarySystemValue,h as totalCleanFloorAreaM2};
|
||||
-1
@@ -1 +0,0 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="668466a273bc161fb0232215df40fd095aa162047e9b574518867c8554a75991";import{e9 as e,L as t,a2 as n,J as i,an as o,N as r,bo as s,bn as a,a1 as l,a0 as c,ax as u,ea as d,eb as f,bq as m,ec as g}from"./houseplan-card-chP6NBhK.js";function v(e){if(!e.registry.authoritative)return null;const t=new Set,n=u(e.markers);for(const i of Object.values(e.registry.devices||{}))i?.id&&"service"!==i.entry_type&&!n.devices.has(i.id)&&i.area_id&&e.areaToSpace[i.area_id]&&t.add(i.id);for(const i of e.markers||[]){if(i.removed||"virtual"===i.binding)continue;const o=String(i.binding||"").indexOf(":");if(o<1)continue;const r=i.binding.slice(0,o),s=i.binding.slice(o+1),a="device"===r?e.registry.devices?.[s]:null,l="entity"===r?e.registry.entities?.[s]:null,c="device"===r?s:l?.device_id,u="device"===r?a?.area_id:l?.area_id||c&&e.registry.devices?.[c]?.area_id,d="string"==typeof i.room_id&&i.room_id.length>0&&null===i.area?"":i.area||u||"",f=d&&e.areaToSpace[d]||i.space||e.firstSpaceId;c&&e.registry.devices?.[c]&&e.spaceIds.has(f)&&(!n.devices.has(c)||"entity"===r&&n.liveEntities.has(s))&&t.add(c)}return t}function y(e,t){return e?.length?t?.length?g(e,t):e:t}function _(e,t){const n=l(e.rooms,t.walls,t.openCuts,[],i,t.cellCm,o,r);return{roomGeom:"ok"===n.status||"degraded-extra"===n.status?n.roomGeom:void 0,multiWallNodes:c(e.rooms,t.walls,t.openCuts,i,t.cellCm,o,r)}}function*h(l,c,u=_){try{let d=0;for(const f of c){const c=l.spaces.find(e=>String(e?.id)===f.id);if(!c)continue;const m=e(c,f),g=u(f,m);let v=null;for(const e of f.rooms){if(!e.id)continue;const a=t(e);if(!a)continue;const l=n(f.rooms,e.id,m.walls,m.openCuts,i,m.cellCm,o,r,g.roomGeom,g.multiWallNodes)||a;v=y(v,s(l,m.physicalBodies)),yield}const _=m.cellCm/o;d+=a(v)*_*_/1e4}return d}catch{return null}}function p(e,t,n=_){const i=h(e,t,n);let o=i.next();for(;!o.done;)o=i.next();return o.value}function b(e,t,n,i){if("system"!==e.type)return null;if("device_count"===e.key)return null===t.deviceCount?null:String(t.deviceCount);if("total_area"===e.key)return null===t.areaM2?null:m(t.areaM2,"mi"===n?.config?.unit_system?.length);try{return new Intl.DateTimeFormat(i||void 0,{dateStyle:"short",timeStyle:"short",timeZone:n?.config?.time_zone||void 0}).format(t.now)}catch{return t.now.toLocaleString()}}function S(e,t){const n=e?.states?.[t];if(!n)return null;const i=d(e,t);return i?f(i,String(n.attributes?.unit_of_measurement||"")):null}export{h as cleanFloorAreaSteps,v as representedHaDeviceIds,_ as spaceWallGeometry,S as summaryEntityValue,b as summarySystemValue,p as totalCleanFloorAreaM2};
|
||||
+2
-2
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -1 +1 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="668466a273bc161fb0232215df40fd095aa162047e9b574518867c8554a75991";import{n as t,b as n}from"./zigbee-topology-E9um8AjR.js";import{B as e}from"./houseplan-card-chP6NBhK.js";const o=new WeakMap;function i(t){const n=function(t){const n=t?.connection||t;return!n||"object"!=typeof n&&"function"!=typeof n?null:n}(t);if(!n)return null;let e=o.get(n);return e||(e={revision:0,topologies:[],states:{},listeners:new Set,inflight:new Map},o.set(n,e)),e}function r(t,n,e){t.states={...t.states,[n]:e},function(t){t.revision++;for(const n of t.listeners)n()}(t)}function s(t){const n=t?.code;if("permission"===n||"unsupported"===n||"timeout"===n||"invalid_topic"===n||"invalid_payload"===n)return n;const e=String(t?.message||"").toLowerCase();return e.includes("unauthor")||e.includes("permission")?"permission":e.includes("unknown_command")||e.includes("not found")?"unsupported":"provider"}function a(t){return Object.assign(new Error(t),{code:t})}function c(t,n,e){const o=t.inflight.get(n);if(o)return o;r(t,n,{phase:"loading"});const i=e().then(n=>{if(!n.nodes.length&&n.warnings.some(t=>"invalid_payload"===t.code))throw a("invalid_payload");!function(t,n){t.topologies=[...t.topologies.filter(t=>!(t.provider===n.provider&&t.instanceId===n.instanceId)),n],r(t,"zha"===n.provider?"zha":`z2m:${n.instanceId}`,{phase:"ready",obtainedAt:n.obtainedAt,partial:n.warnings.length>0})}(t,n)}).catch(e=>{r(t,n,{phase:"error",error:s(e)})}).finally(()=>t.inflight.delete(n));return t.inflight.set(n,i),i}function l(t){const n=i(t);return n?{revision:n.revision,topologies:n.topologies,states:n.states}:{revision:0,topologies:[],states:{}}}function u(t,n){const e=i(t);return e?(e.listeners.add(n),()=>e.listeners.delete(n)):()=>{}}function p(t){if(!0!==t?.user?.is_admin)throw a("permission")}function f(n){const e=i(n);return e?c(e,"zha",async()=>{if(p(n),"function"!=typeof n?.callWS)throw a("unsupported");return t(await n.callWS({type:"zha/devices"}))}):Promise.resolve()}function d(t){return null!==t&&"object"==typeof t?t:null}function h(t){const n=d(t),e=n?.payload??t;if("string"!=typeof e)return e;try{return JSON.parse(e)}catch{return null}}async function g(t,n){let e;try{return await Promise.race([t,new Promise((t,o)=>{e=globalThis.setTimeout(()=>o(a("timeout")),Math.max(1,n))})])}finally{void 0!==e&&globalThis.clearTimeout(e)}}function m(t,o,r=15e4){const s=i(t);if(!s)return Promise.resolve();const l=e(o);return c(s,`z2m:${l||String(o)}`,async()=>{if(p(t),!l)throw a("invalid_topic");const e=t.connection,o=e?.subscribeMessage;if("function"!=typeof o||"function"!=typeof t?.callService)throw a("unsupported");const i=function(){const t=globalThis.crypto;return"function"==typeof t?.randomUUID?`houseplan-${t.randomUUID()}`:`houseplan-${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}(),s=Date.now()+Math.max(1,r);let c=!1,u=null,f=null,m=null;const y=new Promise(t=>{u=t}),w=new Promise((t,n)=>{f=t,m=n}),b=[];try{const r=await o.call(e,t=>{!0===d(t)?.retain&&h(t)&&u?.()},{type:"mqtt/subscribe",topic:`${l}/bridge/info`});"function"==typeof r&&b.push(r);const p=await o.call(e,t=>{if(!0===d(t)?.retain)return;const n=h(t);null!==n?n&&function(t){const n=d(t),e=n?.transaction??d(n?.data)?.transaction;return"string"==typeof e||"number"==typeof e?String(e):null}(n)===i&&f?.(n):c&&m?.(a("invalid_payload"))},{type:"mqtt/subscribe",topic:`${l}/bridge/response/networkmap`});"function"==typeof p&&b.push(p),await g(y,Math.min(4e3,Math.max(1,s-Date.now()))),c=!0,await t.callService("mqtt","publish",{topic:`${l}/bridge/request/networkmap`,payload:JSON.stringify({type:"raw",routes:!1,transaction:i}),qos:0,retain:!1});const v=await g(w,s-Date.now()),_=d(v)?.status;if(_&&"ok"!==_)throw a("provider");return n(v,l)}finally{for(const t of b)try{t()}catch{}}})}export{f as readZhaTopology,m as refreshZ2mTopology,u as subscribeZigbeeTopology,l as zigbeeTopologyRuntimeSnapshot};
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="872076741677c95a78bbd45aa6a6eefb714f591bdaa16fff0cc5f3bf977e63b5";import{n as t,b as n}from"./zigbee-topology-Cy3WZyQ_.js";import{B as e}from"./houseplan-card-NzYP5Jm2.js";const o=new WeakMap;function i(t){const n=function(t){const n=t?.connection||t;return!n||"object"!=typeof n&&"function"!=typeof n?null:n}(t);if(!n)return null;let e=o.get(n);return e||(e={revision:0,topologies:[],states:{},listeners:new Set,inflight:new Map},o.set(n,e)),e}function r(t,n,e){t.states={...t.states,[n]:e},function(t){t.revision++;for(const n of t.listeners)n()}(t)}function s(t){const n=t?.code;if("permission"===n||"unsupported"===n||"timeout"===n||"invalid_topic"===n||"invalid_payload"===n)return n;const e=String(t?.message||"").toLowerCase();return e.includes("unauthor")||e.includes("permission")?"permission":e.includes("unknown_command")||e.includes("not found")?"unsupported":"provider"}function a(t){return Object.assign(new Error(t),{code:t})}function c(t,n,e){const o=t.inflight.get(n);if(o)return o;r(t,n,{phase:"loading"});const i=e().then(n=>{if(!n.nodes.length&&n.warnings.some(t=>"invalid_payload"===t.code))throw a("invalid_payload");!function(t,n){t.topologies=[...t.topologies.filter(t=>!(t.provider===n.provider&&t.instanceId===n.instanceId)),n],r(t,"zha"===n.provider?"zha":`z2m:${n.instanceId}`,{phase:"ready",obtainedAt:n.obtainedAt,partial:n.warnings.length>0})}(t,n)}).catch(e=>{r(t,n,{phase:"error",error:s(e)})}).finally(()=>t.inflight.delete(n));return t.inflight.set(n,i),i}function l(t){const n=i(t);return n?{revision:n.revision,topologies:n.topologies,states:n.states}:{revision:0,topologies:[],states:{}}}function u(t,n){const e=i(t);return e?(e.listeners.add(n),()=>e.listeners.delete(n)):()=>{}}function f(t){if(!0!==t?.user?.is_admin)throw a("permission")}function p(n){const e=i(n);return e?c(e,"zha",async()=>{if(f(n),"function"!=typeof n?.callWS)throw a("unsupported");return t(await n.callWS({type:"zha/devices"}))}):Promise.resolve()}function d(t){return null!==t&&"object"==typeof t?t:null}function h(t){const n=d(t),e=n?.payload??t;if("string"!=typeof e)return e;try{return JSON.parse(e)}catch{return null}}async function g(t,n){let e;try{return await Promise.race([t,new Promise((t,o)=>{e=globalThis.setTimeout(()=>o(a("timeout")),Math.max(1,n))})])}finally{void 0!==e&&globalThis.clearTimeout(e)}}function m(t,o,r=15e4){const s=i(t);if(!s)return Promise.resolve();const l=e(o);return c(s,`z2m:${l||String(o)}`,async()=>{if(f(t),!l)throw a("invalid_topic");const e=t.connection,o=e?.subscribeMessage;if("function"!=typeof o||"function"!=typeof t?.callService)throw a("unsupported");const i=function(){const t=globalThis.crypto;return"function"==typeof t?.randomUUID?`houseplan-${t.randomUUID()}`:`houseplan-${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}(),s=Date.now()+Math.max(1,r);let c=!1,u=null,p=null,m=null;const y=new Promise(t=>{u=t}),w=new Promise((t,n)=>{p=t,m=n}),b=[];try{const r=await o.call(e,t=>{!0===d(t)?.retain&&h(t)&&u?.()},{type:"mqtt/subscribe",topic:`${l}/bridge/info`});"function"==typeof r&&b.push(r);const f=await o.call(e,t=>{if(!0===d(t)?.retain)return;const n=h(t);null!==n?n&&function(t){const n=d(t),e=n?.transaction??d(n?.data)?.transaction;return"string"==typeof e||"number"==typeof e?String(e):null}(n)===i&&p?.(n):c&&m?.(a("invalid_payload"))},{type:"mqtt/subscribe",topic:`${l}/bridge/response/networkmap`});"function"==typeof f&&b.push(f),await g(y,Math.min(4e3,Math.max(1,s-Date.now()))),c=!0,await t.callService("mqtt","publish",{topic:`${l}/bridge/request/networkmap`,payload:JSON.stringify({type:"raw",routes:!1,transaction:i}),qos:0,retain:!1});const v=await g(w,s-Date.now()),_=d(v)?.status;if(_&&"ok"!==_)throw a("provider");return n(v,l)}finally{for(const t of b)try{t()}catch{}}})}export{p as readZhaTopology,m as refreshZ2mTopology,u as subscribeZigbeeTopology,l as zigbeeTopologyRuntimeSnapshot};
|
||||
@@ -1 +1 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="668466a273bc161fb0232215df40fd095aa162047e9b574518867c8554a75991";try{await import("./houseplan-assets/houseplan-card-chP6NBhK.js")}catch(e){if(!customElements.get("houseplan-card")){const l=String(navigator.language||"en").toLowerCase();const m=l.startsWith("ru")?"House Plan обновился — перезагрузите страницу (Ctrl+F5).":l.startsWith("de")?"House Plan wurde aktualisiert — bitte laden Sie die Seite neu (Strg+F5).":l.startsWith("fr")?"House Plan a été mis à jour — veuillez recharger la page (Ctrl+F5).":"House Plan was updated — please reload the page (Ctrl+F5).";customElements.define("houseplan-card",class extends HTMLElement{setConfig(){}getCardSize(){return 1}connectedCallback(){this.style.cssText="display:block;box-sizing:border-box;padding:16px;border:1px solid var(--divider-color,#e0e0e0);border-radius:var(--ha-card-border-radius,12px);background:var(--card-background-color,#fff);color:var(--primary-text-color,#212121);font:14px/1.4 var(--paper-font-body1_-_font-family,sans-serif)";this.textContent=m}})}console.error("[houseplan] stale houseplan-card.js: the implementation chunk is unavailable",e)}
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="872076741677c95a78bbd45aa6a6eefb714f591bdaa16fff0cc5f3bf977e63b5";try{await import("./houseplan-assets/houseplan-card-NzYP5Jm2.js")}catch(e){if(!customElements.get("houseplan-card")){const l=String(navigator.language||"en").toLowerCase();const m=l.startsWith("ru")?"House Plan обновился — перезагрузите страницу (Ctrl+F5).":l.startsWith("de")?"House Plan wurde aktualisiert — bitte laden Sie die Seite neu (Strg+F5).":l.startsWith("fr")?"House Plan a été mis à jour — veuillez recharger la page (Ctrl+F5).":"House Plan was updated — please reload the page (Ctrl+F5).";customElements.define("houseplan-card",class extends HTMLElement{setConfig(){}getCardSize(){return 1}connectedCallback(){this.style.cssText="display:block;box-sizing:border-box;padding:16px;border:1px solid var(--divider-color,#e0e0e0);border-radius:var(--ha-card-border-radius,12px);background:var(--card-background-color,#fff);color:var(--primary-text-color,#212121);font:14px/1.4 var(--paper-font-body1_-_font-family,sans-serif)";this.textContent=m}})}console.error("[houseplan] stale houseplan-card.js: the implementation chunk is unavailable",e)}
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -172,6 +172,56 @@ check('j4.focus_tooltip_is_anchored_in_viewport',
|
||||
j4.focusTooltip.source === 'focus' && j4.focusTooltip.inViewport, true);
|
||||
check('j4.enter_calls_service', j4.calls.length > 0, true);
|
||||
|
||||
const j4DualInput = await page.evaluate((focusId) => {
|
||||
const card = window.__card;
|
||||
const root = card.renderRoot;
|
||||
const tip = root.querySelector('[data-hp-live-tip]');
|
||||
const focusText = tip?.textContent?.trim() || '';
|
||||
const room = root.querySelector('[data-hp="room"]');
|
||||
const roomBox = room?.getBoundingClientRect();
|
||||
room?.dispatchEvent(new PointerEvent('pointermove', {
|
||||
bubbles: true, composed: true, pointerType: 'mouse',
|
||||
clientX: roomBox?.left || 0, clientY: roomBox?.top || 0,
|
||||
}));
|
||||
const afterRoom = {
|
||||
source: card._tip?.source || null,
|
||||
deviceId: card._tip?.deviceId || null,
|
||||
text: tip?.textContent?.trim() || '',
|
||||
};
|
||||
const other = [...root.querySelectorAll('[data-hp="device"]')]
|
||||
.find((marker) => marker.dataset.id !== focusId);
|
||||
const otherBox = other?.getBoundingClientRect();
|
||||
const otherName = card._devices.find((device) => device.id === other?.dataset.id)?.name || '';
|
||||
other?.dispatchEvent(new PointerEvent('pointerover', {
|
||||
bubbles: true, composed: true, pointerType: 'mouse',
|
||||
clientX: (otherBox?.left || 0) + (otherBox?.width || 0) / 2,
|
||||
clientY: (otherBox?.top || 0) + (otherBox?.height || 0) / 2,
|
||||
}));
|
||||
const afterDevice = {
|
||||
source: card._tip?.source || null,
|
||||
title: tip?.querySelector('b')?.textContent?.trim() || '',
|
||||
expectedTitle: otherName,
|
||||
};
|
||||
other?.dispatchEvent(new PointerEvent('pointerleave', {
|
||||
bubbles: false, composed: true, pointerType: 'mouse',
|
||||
clientX: otherBox?.right || 0, clientY: otherBox?.bottom || 0,
|
||||
}));
|
||||
const restored = {
|
||||
source: card._tip?.source || null,
|
||||
deviceId: card._tip?.deviceId || null,
|
||||
text: tip?.textContent?.trim() || '',
|
||||
};
|
||||
return { focusText, afterRoom, afterDevice, restored };
|
||||
}, tabStops.id);
|
||||
out.j4_dual_input = j4DualInput;
|
||||
check('j4.room_hover_does_not_replace_keyboard_tooltip', j4DualInput.afterRoom,
|
||||
{ source: 'focus', deviceId: tabStops.id, text: j4DualInput.focusText });
|
||||
check('j4.other_device_keeps_ordinary_pointer_hover',
|
||||
j4DualInput.afterDevice.source === 'pointer'
|
||||
&& j4DualInput.afterDevice.title === j4DualInput.afterDevice.expectedTitle, true);
|
||||
check('j4.pointer_leave_restores_keyboard_tooltip', j4DualInput.restored,
|
||||
{ source: 'focus', deviceId: tabStops.id, text: j4DualInput.focusText });
|
||||
|
||||
await page.keyboard.press('Tab');
|
||||
const j4Next = await page.evaluate(() => {
|
||||
const card = window.__card;
|
||||
|
||||
Vendored
+142
-142
@@ -1,311 +1,311 @@
|
||||
{
|
||||
"schema": 1,
|
||||
"fingerprint": "668466a273bc161fb0232215df40fd095aa162047e9b574518867c8554a75991",
|
||||
"fingerprint": "872076741677c95a78bbd45aa6a6eefb714f591bdaa16fff0cc5f3bf977e63b5",
|
||||
"entry": "houseplan-card.js",
|
||||
"panelEntry": "houseplan-panel.js",
|
||||
"initialViewFiles": [
|
||||
"houseplan-assets/houseplan-card-chP6NBhK.js",
|
||||
"houseplan-assets/houseplan-card-NzYP5Jm2.js",
|
||||
"houseplan-card.js"
|
||||
],
|
||||
"initialViewGzipBytes": 290252,
|
||||
"initialViewGzipBytes": 290269,
|
||||
"initialPanelFiles": [
|
||||
"houseplan-assets/houseplan-card-chP6NBhK.js",
|
||||
"houseplan-assets/houseplan-card-NzYP5Jm2.js",
|
||||
"houseplan-panel.js"
|
||||
],
|
||||
"initialPanelGzipBytes": 291775,
|
||||
"initialPanelGzipBytes": 291792,
|
||||
"initialPanelOnlyFiles": [
|
||||
"houseplan-panel.js"
|
||||
],
|
||||
"initialPanelOnlyGzipBytes": 2329,
|
||||
"initialPanelOnlyGzipBytes": 2326,
|
||||
"lazyFiles": [
|
||||
"houseplan-assets/backdrop-pick-CvrPdUHE.js",
|
||||
"houseplan-assets/de-C6YxCDZc.js",
|
||||
"houseplan-assets/editor-EFCjKUy0.js",
|
||||
"houseplan-assets/fr-BKJEc804.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-BLtR621S.js",
|
||||
"houseplan-assets/guard-BMBlK50U.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-FHl9qBUM.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-DqKk60fa.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-DknAaLQb.js",
|
||||
"houseplan-assets/iso-scene-render-BfcWAjpL.js",
|
||||
"houseplan-assets/live-interaction-runtime-C65e5HA-.js",
|
||||
"houseplan-assets/pdf-export-DOIJatzy.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-D2ugQG3G.js",
|
||||
"houseplan-assets/zigbee-topology-E9um8AjR.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-CgRErW8m.js"
|
||||
"houseplan-assets/backdrop-pick-B9Pg_H3G.js",
|
||||
"houseplan-assets/de-Dt-zRmhX.js",
|
||||
"houseplan-assets/editor-D2p_-RnD.js",
|
||||
"houseplan-assets/fr-BRk2IEO8.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-DJ48UIFN.js",
|
||||
"houseplan-assets/guard-JshI3Lhp.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-rFPiRjPW.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-D9DACIGp.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-CI6k6rk-.js",
|
||||
"houseplan-assets/iso-scene-render-DYujIy04.js",
|
||||
"houseplan-assets/live-interaction-runtime-F2M4YAVj.js",
|
||||
"houseplan-assets/pdf-export-BuP_QUBU.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-DcW95Urk.js",
|
||||
"houseplan-assets/zigbee-topology-Cy3WZyQ_.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-C9Ha_xER.js"
|
||||
],
|
||||
"lazyGzipBytes": 418572,
|
||||
"lazyGzipBytes": 418599,
|
||||
"lazyEditorFiles": [
|
||||
"houseplan-assets/backdrop-pick-CvrPdUHE.js",
|
||||
"houseplan-assets/editor-EFCjKUy0.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-BLtR621S.js",
|
||||
"houseplan-assets/guard-BMBlK50U.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-FHl9qBUM.js",
|
||||
"houseplan-assets/zigbee-topology-E9um8AjR.js"
|
||||
"houseplan-assets/backdrop-pick-B9Pg_H3G.js",
|
||||
"houseplan-assets/editor-D2p_-RnD.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-DJ48UIFN.js",
|
||||
"houseplan-assets/guard-JshI3Lhp.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-rFPiRjPW.js",
|
||||
"houseplan-assets/zigbee-topology-Cy3WZyQ_.js"
|
||||
],
|
||||
"lazyEditorGzipBytes": 205056,
|
||||
"lazyEditorGzipBytes": 205055,
|
||||
"lazyOnboardingFiles": [
|
||||
"houseplan-assets/backdrop-pick-CvrPdUHE.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-DqKk60fa.js"
|
||||
"houseplan-assets/backdrop-pick-B9Pg_H3G.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-D9DACIGp.js"
|
||||
],
|
||||
"lazyOnboardingGzipBytes": 13919,
|
||||
"lazyLocaleFiles": [
|
||||
"houseplan-assets/de-C6YxCDZc.js",
|
||||
"houseplan-assets/fr-BKJEc804.js"
|
||||
"houseplan-assets/de-Dt-zRmhX.js",
|
||||
"houseplan-assets/fr-BRk2IEO8.js"
|
||||
],
|
||||
"lazyLocaleGzipBytes": 54867,
|
||||
"lazyLocaleGzipBytes": 54845,
|
||||
"lazyIsometricFiles": [
|
||||
"houseplan-assets/guard-BMBlK50U.js",
|
||||
"houseplan-assets/iso-scene-render-BfcWAjpL.js"
|
||||
"houseplan-assets/guard-JshI3Lhp.js",
|
||||
"houseplan-assets/iso-scene-render-DYujIy04.js"
|
||||
],
|
||||
"lazyIsometricGzipBytes": 13459,
|
||||
"lazyIsometricGzipBytes": 13453,
|
||||
"lazyFurnitureArtFiles": [
|
||||
"houseplan-assets/furniture-plan-art.generated-BLtR621S.js"
|
||||
"houseplan-assets/furniture-plan-art.generated-DJ48UIFN.js"
|
||||
],
|
||||
"lazyFurnitureArtGzipBytes": 10249,
|
||||
"lazyFurnitureArtGzipBytes": 10255,
|
||||
"lazyPdfFiles": [
|
||||
"houseplan-assets/furniture-plan-art.generated-BLtR621S.js",
|
||||
"houseplan-assets/pdf-export-DOIJatzy.js"
|
||||
"houseplan-assets/furniture-plan-art.generated-DJ48UIFN.js",
|
||||
"houseplan-assets/pdf-export-BuP_QUBU.js"
|
||||
],
|
||||
"lazyPdfGzipBytes": 120121,
|
||||
"lazyPdfGzipBytes": 120129,
|
||||
"files": [
|
||||
{
|
||||
"path": "houseplan-assets/backdrop-pick-CvrPdUHE.js",
|
||||
"sha256": "f18c266ff57ede82c32fb37d78aa58ae990db5d0e0220d1f4331c1e21c674b1d",
|
||||
"path": "houseplan-assets/backdrop-pick-B9Pg_H3G.js",
|
||||
"sha256": "2d203b196cf03fabfb9bb7aa220a616028833ee997615cbf5077d8ae7a40a5b4",
|
||||
"rawBytes": 19956,
|
||||
"gzipBytes": 6880,
|
||||
"gzipBytes": 6881,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-chP6NBhK.js"
|
||||
"houseplan-assets/houseplan-card-NzYP5Jm2.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/de-C6YxCDZc.js",
|
||||
"sha256": "b3dde2c9526d2f3e9ca2583dfc90dba106c4493b7d24574b826031dd8f04c63e",
|
||||
"path": "houseplan-assets/de-Dt-zRmhX.js",
|
||||
"sha256": "04dbeda01d01120de05cb7ceabe8597b2143aefcf61bfb17a204fbd3b449089a",
|
||||
"rawBytes": 91437,
|
||||
"gzipBytes": 27718,
|
||||
"gzipBytes": 27709,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/editor-EFCjKUy0.js",
|
||||
"sha256": "851fa5b9cd7084225fa06cf167d3329e802dca2ba32e773486aeb9e16c73629a",
|
||||
"path": "houseplan-assets/editor-D2p_-RnD.js",
|
||||
"sha256": "8b8751474b15b2001765bae0f5a0acc46833b0d80edaf8d3c4a8a3355239e4d2",
|
||||
"rawBytes": 3832,
|
||||
"gzipBytes": 1586,
|
||||
"gzipBytes": 1584,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-chP6NBhK.js"
|
||||
"houseplan-assets/houseplan-card-NzYP5Jm2.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/fr-BKJEc804.js",
|
||||
"sha256": "ad81af3ad6d911bf4d8a2ea7a739a6fd89427d7e496e36e0c24bf979ff42ba19",
|
||||
"path": "houseplan-assets/fr-BRk2IEO8.js",
|
||||
"sha256": "6f0625e4d3e8ab672710050ced9ae287f0a44af9e8a710f062a9619798ec1988",
|
||||
"rawBytes": 93701,
|
||||
"gzipBytes": 27149,
|
||||
"gzipBytes": 27136,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/furniture-plan-art.generated-BLtR621S.js",
|
||||
"sha256": "c24257131a7fadad206c7acbdeae3d39bf8f57efc107b409848d40eed36fb128",
|
||||
"path": "houseplan-assets/furniture-plan-art.generated-DJ48UIFN.js",
|
||||
"sha256": "01c4624eda127bc762fce2aa12fa0989873648a504d198c9d34b76ae37bec44d",
|
||||
"rawBytes": 33655,
|
||||
"gzipBytes": 10249,
|
||||
"gzipBytes": 10255,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/guard-BMBlK50U.js",
|
||||
"sha256": "0e82964c9e805ff5dd1ae2000363aaab638b03da9561ea9d7fcb22e0b070b924",
|
||||
"path": "houseplan-assets/guard-JshI3Lhp.js",
|
||||
"sha256": "34bd1f95ed78a91bc2176c6883eabecc0d89b727e1d3696107ffbeb867d446ac",
|
||||
"rawBytes": 518,
|
||||
"gzipBytes": 370,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-chP6NBhK.js"
|
||||
"houseplan-assets/houseplan-card-NzYP5Jm2.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/houseplan-card-chP6NBhK.js",
|
||||
"sha256": "8a88d86c85a97ad97d0abd3858211b5f6d5d168ec6eff566036b96197e2d42dc",
|
||||
"rawBytes": 1031082,
|
||||
"gzipBytes": 289446,
|
||||
"path": "houseplan-assets/houseplan-card-NzYP5Jm2.js",
|
||||
"sha256": "c236766293f16b46dcb42e90ced1f9e107028808587d5a19d07b84891de3f8d2",
|
||||
"rawBytes": 1031164,
|
||||
"gzipBytes": 289466,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": [
|
||||
"houseplan-assets/de-C6YxCDZc.js",
|
||||
"houseplan-assets/editor-EFCjKUy0.js",
|
||||
"houseplan-assets/fr-BKJEc804.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-BLtR621S.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-FHl9qBUM.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-DqKk60fa.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-DknAaLQb.js",
|
||||
"houseplan-assets/iso-scene-render-BfcWAjpL.js",
|
||||
"houseplan-assets/live-interaction-runtime-C65e5HA-.js",
|
||||
"houseplan-assets/pdf-export-DOIJatzy.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-D2ugQG3G.js"
|
||||
"houseplan-assets/de-Dt-zRmhX.js",
|
||||
"houseplan-assets/editor-D2p_-RnD.js",
|
||||
"houseplan-assets/fr-BRk2IEO8.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-DJ48UIFN.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-rFPiRjPW.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-D9DACIGp.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-CI6k6rk-.js",
|
||||
"houseplan-assets/iso-scene-render-DYujIy04.js",
|
||||
"houseplan-assets/live-interaction-runtime-F2M4YAVj.js",
|
||||
"houseplan-assets/pdf-export-BuP_QUBU.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-DcW95Urk.js"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/houseplan-editor-runtime-FHl9qBUM.js",
|
||||
"sha256": "20f076f7ec4c6c7bfb1e71c50a0db309ab3f368274fc4e0e716d67082da8ef50",
|
||||
"path": "houseplan-assets/houseplan-editor-runtime-rFPiRjPW.js",
|
||||
"sha256": "d17d03703a030219b723d9c29e50c04515284c397f3c2a4e500dbf98144e149e",
|
||||
"rawBytes": 668940,
|
||||
"gzipBytes": 178538,
|
||||
"gzipBytes": 178535,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/backdrop-pick-CvrPdUHE.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-BLtR621S.js",
|
||||
"houseplan-assets/guard-BMBlK50U.js",
|
||||
"houseplan-assets/houseplan-card-chP6NBhK.js",
|
||||
"houseplan-assets/zigbee-topology-E9um8AjR.js"
|
||||
"houseplan-assets/backdrop-pick-B9Pg_H3G.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-DJ48UIFN.js",
|
||||
"houseplan-assets/guard-JshI3Lhp.js",
|
||||
"houseplan-assets/houseplan-card-NzYP5Jm2.js",
|
||||
"houseplan-assets/zigbee-topology-Cy3WZyQ_.js"
|
||||
],
|
||||
"dynamicImports": [
|
||||
"houseplan-assets/zigbee-topology-runtime-CgRErW8m.js"
|
||||
"houseplan-assets/zigbee-topology-runtime-C9Ha_xER.js"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/houseplan-onboarding-runtime-DqKk60fa.js",
|
||||
"sha256": "a8a4541a25b9600440dbff0cd88f7946b1e1a9b69757a5d7326a6007da76d84f",
|
||||
"path": "houseplan-assets/houseplan-onboarding-runtime-D9DACIGp.js",
|
||||
"sha256": "b15071f2dada1c45f2750faf63e3dca632cb48c9f8b8420660eb802e5278cfdb",
|
||||
"rawBytes": 28287,
|
||||
"gzipBytes": 7039,
|
||||
"gzipBytes": 7038,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/backdrop-pick-CvrPdUHE.js",
|
||||
"houseplan-assets/houseplan-card-chP6NBhK.js"
|
||||
"houseplan-assets/backdrop-pick-B9Pg_H3G.js",
|
||||
"houseplan-assets/houseplan-card-NzYP5Jm2.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/hp-zigbee-topology-overlay-DknAaLQb.js",
|
||||
"sha256": "77885083e418a824e4329f888ca7a9cc6f987f78188c72969578a510ecec7363",
|
||||
"path": "houseplan-assets/hp-zigbee-topology-overlay-CI6k6rk-.js",
|
||||
"sha256": "6a088a1e5b0ee7446da4d90af50b0e5e4a01873e0dbfd0dcbd104483d2141c52",
|
||||
"rawBytes": 10756,
|
||||
"gzipBytes": 3683,
|
||||
"gzipBytes": 3684,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-chP6NBhK.js",
|
||||
"houseplan-assets/zigbee-topology-E9um8AjR.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-CgRErW8m.js"
|
||||
"houseplan-assets/houseplan-card-NzYP5Jm2.js",
|
||||
"houseplan-assets/zigbee-topology-Cy3WZyQ_.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-C9Ha_xER.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/iso-scene-render-BfcWAjpL.js",
|
||||
"sha256": "7191548d53d1b65cb9cd63b2972c04f5b612e7bed59ccd8fe8d5b759c39376bf",
|
||||
"path": "houseplan-assets/iso-scene-render-DYujIy04.js",
|
||||
"sha256": "4b43e9012bd547f7b5766bc6e7f4707b9d58d553e4c8a017b298ae977d917fa6",
|
||||
"rawBytes": 38562,
|
||||
"gzipBytes": 13089,
|
||||
"gzipBytes": 13083,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/guard-BMBlK50U.js",
|
||||
"houseplan-assets/houseplan-card-chP6NBhK.js"
|
||||
"houseplan-assets/guard-JshI3Lhp.js",
|
||||
"houseplan-assets/houseplan-card-NzYP5Jm2.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/live-interaction-runtime-C65e5HA-.js",
|
||||
"sha256": "fd554312270581fb71bf0d854bb28b0e3c09248cf90330fc3506f4f076d050a2",
|
||||
"rawBytes": 7884,
|
||||
"gzipBytes": 3112,
|
||||
"path": "houseplan-assets/live-interaction-runtime-F2M4YAVj.js",
|
||||
"sha256": "0fa030ae07bb5fcb3d8b5a5c5058ed13fbe95917bea3899539a9ad40f2eb75f9",
|
||||
"rawBytes": 8018,
|
||||
"gzipBytes": 3167,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-chP6NBhK.js"
|
||||
"houseplan-assets/houseplan-card-NzYP5Jm2.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/pdf-export-DOIJatzy.js",
|
||||
"sha256": "0946991958e9bcadbed2df522562f1fb1128d1ba6512c56188bdf1266dda7163",
|
||||
"path": "houseplan-assets/pdf-export-BuP_QUBU.js",
|
||||
"sha256": "dacfd6006cedeb095940b759e30f7813f54de6ef24100d2c388f64262c08bd5e",
|
||||
"rawBytes": 236244,
|
||||
"gzipBytes": 109872,
|
||||
"gzipBytes": 109874,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/furniture-plan-art.generated-BLtR621S.js",
|
||||
"houseplan-assets/houseplan-card-chP6NBhK.js"
|
||||
"houseplan-assets/furniture-plan-art.generated-DJ48UIFN.js",
|
||||
"houseplan-assets/houseplan-card-NzYP5Jm2.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/summary-panel-editor-B0Pr-g7s.js",
|
||||
"sha256": "7c7ebb5493f4a0c39be7ecb29fd1377fb1fa74ec376701fc434f65d2d30e26f3",
|
||||
"path": "houseplan-assets/summary-panel-editor-HEZMbuqG.js",
|
||||
"sha256": "2dd3a65da05139342dc8d1b99bce18e4d9e306adf41d5a929770032a205cb7da",
|
||||
"rawBytes": 14824,
|
||||
"gzipBytes": 3404,
|
||||
"gzipBytes": 3401,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-chP6NBhK.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-D2ugQG3G.js"
|
||||
"houseplan-assets/houseplan-card-NzYP5Jm2.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-DcW95Urk.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/summary-panel-metrics-DT6qsOpv.js",
|
||||
"sha256": "461a5d15b503e863b8385cf8279bf0f0e16cc704335c440a984468c91f3ac54e",
|
||||
"path": "houseplan-assets/summary-panel-metrics-DG14yqMW.js",
|
||||
"sha256": "457ba5e75153796317e043bae602582c628353cfc57f6ba81c7721eeab59993e",
|
||||
"rawBytes": 2610,
|
||||
"gzipBytes": 1309,
|
||||
"gzipBytes": 1305,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-chP6NBhK.js"
|
||||
"houseplan-assets/houseplan-card-NzYP5Jm2.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/summary-panel-runtime-loaded-D2ugQG3G.js",
|
||||
"sha256": "91fb3818a781de5d386bb652592b927a8f5b3c4e11362c8555d00db7f99f2c04",
|
||||
"path": "houseplan-assets/summary-panel-runtime-loaded-DcW95Urk.js",
|
||||
"sha256": "d3e34121553c7f24ccfc423f2268d4532e2d864f59a6f227530f1371a85e8992",
|
||||
"rawBytes": 73366,
|
||||
"gzipBytes": 20088,
|
||||
"gzipBytes": 20089,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-chP6NBhK.js"
|
||||
"houseplan-assets/houseplan-card-NzYP5Jm2.js"
|
||||
],
|
||||
"dynamicImports": [
|
||||
"houseplan-assets/summary-panel-editor-B0Pr-g7s.js",
|
||||
"houseplan-assets/summary-panel-metrics-DT6qsOpv.js"
|
||||
"houseplan-assets/summary-panel-editor-HEZMbuqG.js",
|
||||
"houseplan-assets/summary-panel-metrics-DG14yqMW.js"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/zigbee-topology-E9um8AjR.js",
|
||||
"sha256": "332d01ce8e41dbac9af4fa798bf3a806ea2de52412ae26c58f47eb3054701f26",
|
||||
"path": "houseplan-assets/zigbee-topology-Cy3WZyQ_.js",
|
||||
"sha256": "9298d7c7907f7fcf3baa0eb6682e1e37bb46866c0b6b8d31b1108a00ad92bf5b",
|
||||
"rawBytes": 18961,
|
||||
"gzipBytes": 7433,
|
||||
"gzipBytes": 7430,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-chP6NBhK.js"
|
||||
"houseplan-assets/houseplan-card-NzYP5Jm2.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/zigbee-topology-runtime-CgRErW8m.js",
|
||||
"sha256": "da42a4df320003f9ca4dc732069d7e1ca47402e0cc222d8227b786a52285f6e8",
|
||||
"path": "houseplan-assets/zigbee-topology-runtime-C9Ha_xER.js",
|
||||
"sha256": "b0e9d308dc87cf596ce64189c3e88d510600bde67eb4b60c3d1cd4d7e5d456a2",
|
||||
"rawBytes": 3941,
|
||||
"gzipBytes": 1766,
|
||||
"gzipBytes": 1764,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-chP6NBhK.js",
|
||||
"houseplan-assets/zigbee-topology-E9um8AjR.js"
|
||||
"houseplan-assets/houseplan-card-NzYP5Jm2.js",
|
||||
"houseplan-assets/zigbee-topology-Cy3WZyQ_.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-card.js",
|
||||
"sha256": "08dec1f8e4ef7c1624f10d49df909dce2c6c3037bbf462f233e627bc7ba2ff95",
|
||||
"sha256": "8ca1d7e313a763b3fd24c0aa02ba0d9427cc0263a56d527d974cf9d6adcfb76b",
|
||||
"rawBytes": 1205,
|
||||
"gzipBytes": 806,
|
||||
"gzipBytes": 803,
|
||||
"isEntry": true,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-chP6NBhK.js"
|
||||
"houseplan-assets/houseplan-card-NzYP5Jm2.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-panel.js",
|
||||
"sha256": "6531186ab5b9e0b0833275a9887db0f4574aedd2fe466a0af87c90c4f63e94f0",
|
||||
"sha256": "625c0fb3d5a2779710adf03ee199905d6439a4e5375535f5a278afb180f58c04",
|
||||
"rawBytes": 6165,
|
||||
"gzipBytes": 2329,
|
||||
"gzipBytes": 2326,
|
||||
"isEntry": true,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-chP6NBhK.js"
|
||||
"houseplan-assets/houseplan-card-NzYP5Jm2.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
}
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+5
-5
@@ -1,14 +1,14 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="668466a273bc161fb0232215df40fd095aa162047e9b574518867c8554a75991";import{m as e,l as o,t,e3 as s,A as a,e4 as i,e5 as l,e6 as n,dU as r,b as c}from"./houseplan-card-chP6NBhK.js";class h extends e{constructor(){super(...arguments),this._spaces=null,this._spacesLoading=!1,this._spacesAuthoritative=!1}setConfig(e){this._config=e}async _loadSpaces(){if(!this._spaces&&!this._spacesLoading&&this.hass){this._spacesLoading=!0;try{const e=await this.hass.callWS({type:"houseplan/config/get"});this._spaces=(e?.config?.spaces||[]).map(e=>({value:e.id,label:e.title||e.id})),this._spacesAuthoritative=!0}catch{this._spaces=[],this._spacesAuthoritative=!1}finally{this._spacesLoading=!1}}}get _lang(){return o(this.hass,this._config?.language)}get _floorToken(){const e=this._config?.floor;return"number"==typeof e?`__houseplan_yaml_floor_index__:${String(e)}`:null}get _formData(){const e={...this._config},o=this._floorToken;return o?e.floor=o:Object.prototype.hasOwnProperty.call(e,"floor")||(e.floor=""),e}get _schema(){const e=this._spaces||[],o=this._lang,a=[{value:"",label:t(o,"editor.floor_none")}],i=this._floorToken;i&&a.push({value:i,label:t(o,"editor.floor_index",{index:String(this._config?.floor)})});const l="string"==typeof this._config?.floor?this._config.floor:"";l&&!e.some(e=>e.value===l)&&a.push({value:l,label:l}),a.push(...e);const n="string"==typeof this._config?.default_floor?this._config.default_floor:"",r=[...e];return n&&!e.some(e=>e.value===n)&&r.unshift({value:n,label:n}),[{name:"title",selector:{text:{}}},{name:"floor",selector:{select:{mode:"dropdown",options:a}}},e.length?{name:"default_floor",selector:{select:{mode:"dropdown",options:r}}}:{name:"default_floor",selector:{text:{}}},{name:"language",selector:{select:{mode:"dropdown",options:s(t(o,"editor.lang_auto"),this._config?.language)}}},{name:"icon_size",selector:{number:{min:1,max:6,step:.1,mode:"box"}}},{name:"show_temperature",selector:{boolean:{}}},{name:"live_states",selector:{boolean:{}}},{name:"show_signal",selector:{boolean:{}}},{name:"kiosk",selector:{boolean:{}}},{name:"cycle",selector:{number:{min:0,max:3600,step:5,mode:"box"}}}]}render(){if(!this.hass||!this._config)return a;const e=i(this,l,o(this.hass,this._config.language));if("cold"===e)return n();if("warm"===e)return r;this._loadSpaces();const s=this._lang,h={title:t(s,"editor.title"),floor:t(s,"editor.floor"),default_floor:t(s,"editor.default_floor"),language:t(s,"editor.language"),icon_size:t(s,"editor.icon_size"),show_temperature:t(s,"editor.show_temperature"),live_states:t(s,"editor.live_states"),show_signal:t(s,"editor.show_signal"),kiosk:t(s,"editor.kiosk"),cycle:t(s,"editor.cycle")},f=this._schema,_=function(e,o,t){if(!t||null===o)return null;const s="string"==typeof e?.default_floor?e.default_floor:"";return!s||o.some(e=>e.value===s)?null:s}(this._config,this._spaces,this._spacesAuthoritative),d=e=>c`<ha-form
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="872076741677c95a78bbd45aa6a6eefb714f591bdaa16fff0cc5f3bf977e63b5";import{m as e,l as o,t,e3 as s,A as a,e4 as i,e5 as l,e6 as n,dU as r,b as c}from"./houseplan-card-NzYP5Jm2.js";class f extends e{constructor(){super(...arguments),this._spaces=null,this._spacesLoading=!1,this._spacesAuthoritative=!1}setConfig(e){this._config=e}async _loadSpaces(){if(!this._spaces&&!this._spacesLoading&&this.hass){this._spacesLoading=!0;try{const e=await this.hass.callWS({type:"houseplan/config/get"});this._spaces=(e?.config?.spaces||[]).map(e=>({value:e.id,label:e.title||e.id})),this._spacesAuthoritative=!0}catch{this._spaces=[],this._spacesAuthoritative=!1}finally{this._spacesLoading=!1}}}get _lang(){return o(this.hass,this._config?.language)}get _floorToken(){const e=this._config?.floor;return"number"==typeof e?`__houseplan_yaml_floor_index__:${String(e)}`:null}get _formData(){const e={...this._config},o=this._floorToken;return o?e.floor=o:Object.prototype.hasOwnProperty.call(e,"floor")||(e.floor=""),e}get _schema(){const e=this._spaces||[],o=this._lang,a=[{value:"",label:t(o,"editor.floor_none")}],i=this._floorToken;i&&a.push({value:i,label:t(o,"editor.floor_index",{index:String(this._config?.floor)})});const l="string"==typeof this._config?.floor?this._config.floor:"";l&&!e.some(e=>e.value===l)&&a.push({value:l,label:l}),a.push(...e);const n="string"==typeof this._config?.default_floor?this._config.default_floor:"",r=[...e];return n&&!e.some(e=>e.value===n)&&r.unshift({value:n,label:n}),[{name:"title",selector:{text:{}}},{name:"floor",selector:{select:{mode:"dropdown",options:a}}},e.length?{name:"default_floor",selector:{select:{mode:"dropdown",options:r}}}:{name:"default_floor",selector:{text:{}}},{name:"language",selector:{select:{mode:"dropdown",options:s(t(o,"editor.lang_auto"),this._config?.language)}}},{name:"icon_size",selector:{number:{min:1,max:6,step:.1,mode:"box"}}},{name:"show_temperature",selector:{boolean:{}}},{name:"live_states",selector:{boolean:{}}},{name:"show_signal",selector:{boolean:{}}},{name:"kiosk",selector:{boolean:{}}},{name:"cycle",selector:{number:{min:0,max:3600,step:5,mode:"box"}}}]}render(){if(!this.hass||!this._config)return a;const e=i(this,l,o(this.hass,this._config.language));if("cold"===e)return n();if("warm"===e)return r;this._loadSpaces();const s=this._lang,f={title:t(s,"editor.title"),floor:t(s,"editor.floor"),default_floor:t(s,"editor.default_floor"),language:t(s,"editor.language"),icon_size:t(s,"editor.icon_size"),show_temperature:t(s,"editor.show_temperature"),live_states:t(s,"editor.live_states"),show_signal:t(s,"editor.show_signal"),kiosk:t(s,"editor.kiosk"),cycle:t(s,"editor.cycle")},h=this._schema,_=function(e,o,t){if(!t||null===o)return null;const s="string"==typeof e?.default_floor?e.default_floor:"";return!s||o.some(e=>e.value===s)?null:s}(this._config,this._spaces,this._spacesAuthoritative),d=e=>c`<ha-form
|
||||
.hass=${this.hass}
|
||||
.data=${this._formData}
|
||||
.schema=${e}
|
||||
.computeLabel=${e=>h[e.name]||e.name}
|
||||
.computeLabel=${e=>f[e.name]||e.name}
|
||||
@value-changed=${this._valueChanged}
|
||||
></ha-form>`;return c`
|
||||
${d(f.slice(0,3))}
|
||||
${d(h.slice(0,3))}
|
||||
${_?c`<div class="default-floor-error" role="alert"
|
||||
style="color:var(--error-color,#db4437);margin:-4px 0 12px;overflow-wrap:anywhere">
|
||||
${t(s,"editor.default_floor_missing",{id:_})}
|
||||
</div>`:a}
|
||||
${d(f.slice(3))}
|
||||
`}_valueChanged(e){const o={...this._config,...e.detail.value};""===o.floor?delete o.floor:o.floor===this._floorToken&&(o.floor=this._config?.floor);const t=new Event("config-changed",{bubbles:!0,composed:!0});t.detail={config:o},this.dispatchEvent(t)}}h.properties={hass:{attribute:!1},_config:{state:!0},_spaces:{state:!0}},customElements.get("houseplan-card-editor")||customElements.define("houseplan-card-editor",h);
|
||||
${d(h.slice(3))}
|
||||
`}_valueChanged(e){const o={...this._config,...e.detail.value};""===o.floor?delete o.floor:o.floor===this._floorToken&&(o.floor=this._config?.floor);const t=new Event("config-changed",{bubbles:!0,composed:!0});t.detail={config:o},this.dispatchEvent(t)}}f.properties={hass:{attribute:!1},_config:{state:!0},_spaces:{state:!0}},customElements.get("houseplan-card-editor")||customElements.define("houseplan-card-editor",f);
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
-1
@@ -1 +0,0 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="668466a273bc161fb0232215df40fd095aa162047e9b574518867c8554a75991";import{dS as r,dT as t,dU as s}from"./houseplan-card-chP6NBhK.js";const e={},a=r(class extends t{constructor(){super(...arguments),this.ot=e}render(r,t){return t()}update(r,[t,e]){if(Array.isArray(t)){if(Array.isArray(this.ot)&&this.ot.length===t.length&&t.every((r,t)=>r===this.ot[t]))return s}else if(this.ot===t)return s;return this.ot=Array.isArray(t)?Array.from(t):t,this.render(t,e)}});export{a as i};
|
||||
+1
@@ -0,0 +1 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="872076741677c95a78bbd45aa6a6eefb714f591bdaa16fff0cc5f3bf977e63b5";import{dS as r,dT as t,dU as e}from"./houseplan-card-NzYP5Jm2.js";const s={},a=r(class extends t{constructor(){super(...arguments),this.ot=s}render(r,t){return t()}update(r,[t,s]){if(Array.isArray(t)){if(Array.isArray(this.ot)&&this.ot.length===t.length&&t.every((r,t)=>r===this.ot[t]))return e}else if(this.ot===t)return e;return this.ot=Array.isArray(t)?Array.from(t):t,this.render(t,s)}});export{a as i};
|
||||
Vendored
+6
-6
File diff suppressed because one or more lines are too long
+3
-3
File diff suppressed because one or more lines are too long
+4
-4
@@ -1,4 +1,4 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="668466a273bc161fb0232215df40fd095aa162047e9b574518867c8554a75991";import{l as t,b0 as s,A as e,t as a,b as o,cj as l,ck as i,cl as h,cm as c,aZ as n,cn as r,cs as p,co as d,cp as _,cq as u,cr as g,ct as m,cu as b,dp as $,dq as v,dr as f,aY as y,a_ as w,ds as D}from"./houseplan-card-chP6NBhK.js";import{c as k,e as S,r as C,a as M}from"./backdrop-pick-CvrPdUHE.js";const F=1e3,x=t=>{if(!t.trim())return null;const s=Number(t.replace(",","."));return Number.isFinite(s)?s:null},T="668466a273bc161fb0232215df40fd095aa162047e9b574518867c8554a75991";class L{constructor(t){this.host=t,this._toggleServerPlans=async()=>{const t=this.host._spaceDialog;if(t)if(t.pickSaved)this.host._spaceDialog={...t,pickSaved:!1};else{this.host._spaceDialog={...t,pickSaved:!0,savedBusy:!0};try{const t=await this.host.hass.callWS({type:"houseplan/plans/list"}),s=this.host._spaceDialog;s&&(this.host._spaceDialog={...s,saved:t?.plans||[],savedBusy:!1})}catch(t){const s=this.host._spaceDialog;s&&(this.host._spaceDialog={...s,saved:[],savedBusy:!1}),this.host._showToast(this.host._t("toast.plans_list_failed",{err:this.host._errText(t)}))}}}}_help(l){const i=`${l}.aria`,h=t(this.host.hass,this.host._config?.language);return s(h,l)&&s(h,i)?o`<hp-help data-help-key=${l}
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="872076741677c95a78bbd45aa6a6eefb714f591bdaa16fff0cc5f3bf977e63b5";import{l as t,b0 as s,A as e,t as a,b as o,cj as l,ck as i,cl as h,cm as c,aZ as n,cn as r,cs as p,co as d,cp as _,cq as u,cr as g,ct as m,cu as b,dp as $,dq as f,dr as v,aY as y,a_ as w,ds as D}from"./houseplan-card-NzYP5Jm2.js";import{c as k,e as S,r as C,a as M}from"./backdrop-pick-B9Pg_H3G.js";const F=1e3,x=t=>{if(!t.trim())return null;const s=Number(t.replace(",","."));return Number.isFinite(s)?s:null},T="872076741677c95a78bbd45aa6a6eefb714f591bdaa16fff0cc5f3bf977e63b5";class L{constructor(t){this.host=t,this._toggleServerPlans=async()=>{const t=this.host._spaceDialog;if(t)if(t.pickSaved)this.host._spaceDialog={...t,pickSaved:!1};else{this.host._spaceDialog={...t,pickSaved:!0,savedBusy:!0};try{const t=await this.host.hass.callWS({type:"houseplan/plans/list"}),s=this.host._spaceDialog;s&&(this.host._spaceDialog={...s,saved:t?.plans||[],savedBusy:!1})}catch(t){const s=this.host._spaceDialog;s&&(this.host._spaceDialog={...s,saved:[],savedBusy:!1}),this.host._showToast(this.host._t("toast.plans_list_failed",{err:this.host._errText(t)}))}}}}_help(l){const i=`${l}.aria`,h=t(this.host.hass,this.host._config?.language);return s(h,l)&&s(h,i)?o`<hp-help data-help-key=${l}
|
||||
.text=${a(h,l)} .ariaLabel=${a(h,i)}></hp-help>`:e}_openSpaceDialog(t,s){if(!this.host._serverStorage||!this.host._serverCfg)return void this.host._showToast(this.host._t("toast.integration_missing"));if("edit"===t){const e=this.host._serverCfg.spaces.find(t=>t.id===s);if(!e)return;const a=l(e),o=e.settings?.custom_fill&&"object"==typeof e.settings.custom_fill?i(e.settings.custom_fill):null,p="none"===a.fill?{...o||h,a:0}:o;return void(this.host._spaceDialog={mode:t,spaceId:s,title:e.title,planUrl:e.plan_url||null,planFile:null,source:e.plan_url?"file":"draw",showBorders:a.showBorders,showNames:a.showNames,zeroWallStyle:r(e),displayTouched:!0,hideDecor:a.hideDecor,hideOpenings:a.hideOpenings,roomColor:a.color,roomOpacity:a.opacity,fillMode:"none"===a.fill?"custom":a.fill,customFill:p,glowEnabled:a.glow,bgColor:a.bgColor,bgMode:"static"===e.settings?.bg_mode||"daynight"===e.settings?.bg_mode?e.settings.bg_mode:null,northDeg:n({},e.settings),sunRays:"boolean"==typeof e.settings?.sun_rays?e.settings.sun_rays:null,tempMin:a.tempMin,tempMax:a.tempMax,showLqi:a.showLqi??this.host._config?.show_signal??!0,cardFontScale:a.cardFontScale,labelTemp:a.labelTemp,labelHum:a.labelHum,labelLqi:a.labelLqi,labelLight:a.labelLight,cellCm:Number(e.cell_cm)>0?Number(e.cell_cm):5,cellCmInput:c(Number(e.cell_cm)>0?Number(e.cell_cm):5,this.host._imperial),cellCmTouched:!1,busy:!1})}const e=p(this.host._imperial);this.host._spaceDialog={mode:t,title:"",planUrl:null,planFile:null,...m(),hideDecor:!1,hideOpenings:!1,zeroWallStyle:"dashed",roomColor:g,roomOpacity:u,fillMode:"custom",customFill:{...h,a:0},glowEnabled:!0,bgColor:null,bgMode:"daynight",northDeg:null,sunRays:null,tempMin:_,tempMax:d,showLqi:this.host._config?.show_signal??!0,cardFontScale:1,labelTemp:!1,labelHum:!1,labelLqi:!1,labelLight:!1,cellCm:e,cellCmInput:c(e,this.host._imperial),cellCmTouched:!1,busy:!1}}async _pickPlanFile(t){const s=t.target,e=s.files?.[0];if(!e||!this.host._spaceDialog)return;s.value="";const a=await k(e);if("reject"===a.kind)return void this.host._showToast(this.host._t("toast.plan_formats"));if("guard"===a.kind)return void(this.host._backdropGuard=a.state);const o=await S(e,a.ext,e.name);this.host._spaceDialog&&(this.host._spaceDialog={...this.host._spaceDialog,planFile:o})}_renderBackdropGuard(){return C(this.host,t=>{this.host._spaceDialog&&(this.host._spaceDialog={...this.host._spaceDialog,planFile:t})},()=>{this.host._backdropGuard=null},this.host.hass)??e}_useServerPlan(t){const s=this.host._spaceDialog;s&&(this.host._spaceDialog={...s,planUrl:t,planFile:null,pickSaved:!1,savedAspect:void 0},this.host._aspectJob=this._readPlanAspect(t))}async _readPlanAspect(t){for(let s=0;s<40;s++){const s=this.host._display(t);if(s){const e=await new Promise(t=>{const e=new Image;e.onload=()=>t(e.naturalWidth&&e.naturalHeight?e.naturalWidth/e.naturalHeight:0),e.onerror=()=>t(0),e.src=s}),a=this.host._spaceDialog;return a&&a.planUrl===t&&Number.isFinite(e)&&e>0?(this.host._spaceDialog={...a,savedAspect:e},e):0}if(await new Promise(t=>setTimeout(t,150)),this.host._spaceDialog?.planUrl!==t)return 0}return 0}async _deleteServerPlan(t){const s=this.host._spaceDialog,e=s?.saved?.find(s=>s.name===t);if(!s||!e||e.used_by.length||e.url===s.planUrl)return;const a=await this.host._confirmDanger({key:"delete-plan",kind:"destructive",title:this.host._t("confirm.delete_plan_title"),message:this.host._t("confirm.delete_plan_body"),objectName:t,confirmLabel:this.host._t("btn.delete"),cancelLabel:this.host._t("btn.cancel")}),o=this.host._spaceDialog,l=o?.saved?.find(s=>s.name===t);if(a&&o&&l&&l.url===e.url&&l.modified===e.modified&&!l.used_by.length&&l.url!==o.planUrl)try{await this.host.hass.callWS({type:"houseplan/plans/delete",name:t});const s=this.host._spaceDialog;s?.saved&&(this.host._spaceDialog={...s,saved:s.saved.filter(s=>s.name!==t)})}catch(t){this.host._showToast(this.host._t("toast.plan_delete_failed",{err:this.host._errText(t)}))}}_renderServerPlans(t){if(t.savedBusy)return o`<div class="savedplans muted">${this.host._t("space.loading")}</div>`;const s=t.saved||[];if(!s.length)return o`<div class="savedplans muted">${this.host._t("space.no_saved")}</div>`;return o`<div class="savedplans">
|
||||
${s.map(s=>{return o`
|
||||
<div class="savedplan ${s.url===t.planUrl?"cur":""}">
|
||||
@@ -85,13 +85,13 @@ globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="668466a273bc161fb0232215df40fd095aa1
|
||||
max=${c(F,this.host._imperial)}
|
||||
step="0.1"
|
||||
.value=${t.cellCmInput??c(t.cellCm,this.host._imperial)}
|
||||
@input=${s=>{const e=s.target.value,a=x(e),o=null==a?null:v(a,this.host._imperial);this.host._spaceDialog={...t,cellCmInput:e,cellCmTouched:!0,cellCm:null!=o&&o>0?Math.max(.1,Math.min(F,o)):t.cellCm}}} />
|
||||
@input=${s=>{const e=s.target.value,a=x(e),o=null==a?null:f(a,this.host._imperial);this.host._spaceDialog={...t,cellCmInput:e,cellCmTouched:!0,cellCm:null!=o&&o>0?Math.max(.1,Math.min(F,o)):t.cellCm}}} />
|
||||
<span class="opl">${this.host._t(this.host._imperial?"space.scale_unit_imperial":"space.scale_unit")}</span>
|
||||
</div>
|
||||
|
||||
<label class="dispsection">${this.host._t("space.display_section")}</label>
|
||||
<label class="srcrow">
|
||||
${this._boolInput(t.showBorders,s=>{this.host._spaceDialog=f(t,"showBorders",s)})}
|
||||
${this._boolInput(t.showBorders,s=>{this.host._spaceDialog=v(t,"showBorders",s)})}
|
||||
<span>${this.host._t("space.show_borders")}</span>
|
||||
</label>
|
||||
<div class="helpfieldlabel">
|
||||
@@ -107,7 +107,7 @@ globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="668466a273bc161fb0232215df40fd095aa1
|
||||
</option>
|
||||
</select>
|
||||
<label class="srcrow">
|
||||
${this._boolInput(t.showNames,s=>{this.host._spaceDialog=f(t,"showNames",s)})}
|
||||
${this._boolInput(t.showNames,s=>{this.host._spaceDialog=v(t,"showNames",s)})}
|
||||
<span>${this.host._t("space.show_names")}</span>
|
||||
</label>
|
||||
<label class="srcrow">
|
||||
+2
-2
File diff suppressed because one or more lines are too long
+8
-8
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Vendored
+2
-2
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,4 +1,4 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="668466a273bc161fb0232215df40fd095aa162047e9b574518867c8554a75991";import{b as a,A as e}from"./houseplan-card-chP6NBhK.js";import{s,n as t,a as l,m as r,b as o,c as i,d as u}from"./summary-panel-runtime-loaded-D2ugQG3G.js";const m=m=>{const{host:c,dialog:d,problems:n,t:b}=m,y=n.find(a=>"error"===a.kind),$=d.localShow!==d.baseLocalShow||!d.localOnly&&!s(t(d.draft),d.base),p=$&&!d.busy&&!y,v=a=>n.find(e=>e.path===a),h=a=>a?b(`summary.problem.${a.code}`):"",k=()=>m.close(),g=a`<label class="summary-switch" for="summary-local-show">
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="872076741677c95a78bbd45aa6a6eefb714f591bdaa16fff0cc5f3bf977e63b5";import{b as a,A as e}from"./houseplan-card-NzYP5Jm2.js";import{s,n as t,a as l,m as r,b as o,c as i,d as u}from"./summary-panel-runtime-loaded-DcW95Urk.js";const m=m=>{const{host:c,dialog:d,problems:n,t:b}=m,y=n.find(a=>"error"===a.kind),$=d.localShow!==d.baseLocalShow||!d.localOnly&&!s(t(d.draft),d.base),p=$&&!d.busy&&!y,v=a=>n.find(e=>e.path===a),h=a=>a?b(`summary.problem.${a.code}`):"",k=()=>m.close(),g=a`<label class="summary-switch" for="summary-local-show">
|
||||
<span class="summary-switch-caption"><strong>${b("summary.show_local")}</strong>
|
||||
<small id="summary-local-show-hint">${b("summary.show_local_hint")}</small></span>
|
||||
<input id="summary-local-show" data-summary-local-show type="checkbox"
|
||||
@@ -0,0 +1 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="872076741677c95a78bbd45aa6a6eefb714f591bdaa16fff0cc5f3bf977e63b5";import{e9 as e,L as t,a2 as n,J as i,an as o,N as r,bo as a,bn as s,a1 as c,a0 as l,ax as u,ea as d,eb as f,bq as m,ec as g}from"./houseplan-card-NzYP5Jm2.js";function v(e){if(!e.registry.authoritative)return null;const t=new Set,n=u(e.markers);for(const i of Object.values(e.registry.devices||{}))i?.id&&"service"!==i.entry_type&&!n.devices.has(i.id)&&i.area_id&&e.areaToSpace[i.area_id]&&t.add(i.id);for(const i of e.markers||[]){if(i.removed||"virtual"===i.binding)continue;const o=String(i.binding||"").indexOf(":");if(o<1)continue;const r=i.binding.slice(0,o),a=i.binding.slice(o+1),s="device"===r?e.registry.devices?.[a]:null,c="entity"===r?e.registry.entities?.[a]:null,l="device"===r?a:c?.device_id,u="device"===r?s?.area_id:c?.area_id||l&&e.registry.devices?.[l]?.area_id,d="string"==typeof i.room_id&&i.room_id.length>0&&null===i.area?"":i.area||u||"",f=d&&e.areaToSpace[d]||i.space||e.firstSpaceId;l&&e.registry.devices?.[l]&&e.spaceIds.has(f)&&(!n.devices.has(l)||"entity"===r&&n.liveEntities.has(a))&&t.add(l)}return t}function y(e,t){return e?.length?t?.length?g(e,t):e:t}function _(e,t){const n=c(e.rooms,t.walls,t.openCuts,[],i,t.cellCm,o,r);return{roomGeom:"ok"===n.status||"degraded-extra"===n.status?n.roomGeom:void 0,multiWallNodes:l(e.rooms,t.walls,t.openCuts,i,t.cellCm,o,r)}}function*b(c,l,u=_){try{let d=0;for(const f of l){const l=c.spaces.find(e=>String(e?.id)===f.id);if(!l)continue;const m=e(l,f),g=u(f,m);let v=null;for(const e of f.rooms){if(!e.id)continue;const s=t(e);if(!s)continue;const c=n(f.rooms,e.id,m.walls,m.openCuts,i,m.cellCm,o,r,g.roomGeom,g.multiWallNodes)||s;v=y(v,a(c,m.physicalBodies)),yield}const _=m.cellCm/o;d+=s(v)*_*_/1e4}return d}catch{return null}}function h(e,t,n=_){const i=b(e,t,n);let o=i.next();for(;!o.done;)o=i.next();return o.value}function p(e,t,n,i){if("system"!==e.type)return null;if("device_count"===e.key)return null===t.deviceCount?null:String(t.deviceCount);if("total_area"===e.key)return null===t.areaM2?null:m(t.areaM2,"mi"===n?.config?.unit_system?.length);try{return new Intl.DateTimeFormat(i||void 0,{dateStyle:"short",timeStyle:"short",timeZone:n?.config?.time_zone||void 0}).format(t.now)}catch{return t.now.toLocaleString()}}function S(e,t){const n=e?.states?.[t];if(!n)return null;const i=d(e,t);return i?f(i,String(n.attributes?.unit_of_measurement||"")):null}export{b as cleanFloorAreaSteps,v as representedHaDeviceIds,_ as spaceWallGeometry,S as summaryEntityValue,p as summarySystemValue,h as totalCleanFloorAreaM2};
|
||||
@@ -1 +0,0 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="668466a273bc161fb0232215df40fd095aa162047e9b574518867c8554a75991";import{e9 as e,L as t,a2 as n,J as i,an as o,N as r,bo as s,bn as a,a1 as l,a0 as c,ax as u,ea as d,eb as f,bq as m,ec as g}from"./houseplan-card-chP6NBhK.js";function v(e){if(!e.registry.authoritative)return null;const t=new Set,n=u(e.markers);for(const i of Object.values(e.registry.devices||{}))i?.id&&"service"!==i.entry_type&&!n.devices.has(i.id)&&i.area_id&&e.areaToSpace[i.area_id]&&t.add(i.id);for(const i of e.markers||[]){if(i.removed||"virtual"===i.binding)continue;const o=String(i.binding||"").indexOf(":");if(o<1)continue;const r=i.binding.slice(0,o),s=i.binding.slice(o+1),a="device"===r?e.registry.devices?.[s]:null,l="entity"===r?e.registry.entities?.[s]:null,c="device"===r?s:l?.device_id,u="device"===r?a?.area_id:l?.area_id||c&&e.registry.devices?.[c]?.area_id,d="string"==typeof i.room_id&&i.room_id.length>0&&null===i.area?"":i.area||u||"",f=d&&e.areaToSpace[d]||i.space||e.firstSpaceId;c&&e.registry.devices?.[c]&&e.spaceIds.has(f)&&(!n.devices.has(c)||"entity"===r&&n.liveEntities.has(s))&&t.add(c)}return t}function y(e,t){return e?.length?t?.length?g(e,t):e:t}function _(e,t){const n=l(e.rooms,t.walls,t.openCuts,[],i,t.cellCm,o,r);return{roomGeom:"ok"===n.status||"degraded-extra"===n.status?n.roomGeom:void 0,multiWallNodes:c(e.rooms,t.walls,t.openCuts,i,t.cellCm,o,r)}}function*h(l,c,u=_){try{let d=0;for(const f of c){const c=l.spaces.find(e=>String(e?.id)===f.id);if(!c)continue;const m=e(c,f),g=u(f,m);let v=null;for(const e of f.rooms){if(!e.id)continue;const a=t(e);if(!a)continue;const l=n(f.rooms,e.id,m.walls,m.openCuts,i,m.cellCm,o,r,g.roomGeom,g.multiWallNodes)||a;v=y(v,s(l,m.physicalBodies)),yield}const _=m.cellCm/o;d+=a(v)*_*_/1e4}return d}catch{return null}}function p(e,t,n=_){const i=h(e,t,n);let o=i.next();for(;!o.done;)o=i.next();return o.value}function b(e,t,n,i){if("system"!==e.type)return null;if("device_count"===e.key)return null===t.deviceCount?null:String(t.deviceCount);if("total_area"===e.key)return null===t.areaM2?null:m(t.areaM2,"mi"===n?.config?.unit_system?.length);try{return new Intl.DateTimeFormat(i||void 0,{dateStyle:"short",timeStyle:"short",timeZone:n?.config?.time_zone||void 0}).format(t.now)}catch{return t.now.toLocaleString()}}function S(e,t){const n=e?.states?.[t];if(!n)return null;const i=d(e,t);return i?f(i,String(n.attributes?.unit_of_measurement||"")):null}export{h as cleanFloorAreaSteps,v as representedHaDeviceIds,_ as spaceWallGeometry,S as summaryEntityValue,b as summarySystemValue,p as totalCleanFloorAreaM2};
|
||||
+2
-2
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -1 +1 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="668466a273bc161fb0232215df40fd095aa162047e9b574518867c8554a75991";import{n as t,b as n}from"./zigbee-topology-E9um8AjR.js";import{B as e}from"./houseplan-card-chP6NBhK.js";const o=new WeakMap;function i(t){const n=function(t){const n=t?.connection||t;return!n||"object"!=typeof n&&"function"!=typeof n?null:n}(t);if(!n)return null;let e=o.get(n);return e||(e={revision:0,topologies:[],states:{},listeners:new Set,inflight:new Map},o.set(n,e)),e}function r(t,n,e){t.states={...t.states,[n]:e},function(t){t.revision++;for(const n of t.listeners)n()}(t)}function s(t){const n=t?.code;if("permission"===n||"unsupported"===n||"timeout"===n||"invalid_topic"===n||"invalid_payload"===n)return n;const e=String(t?.message||"").toLowerCase();return e.includes("unauthor")||e.includes("permission")?"permission":e.includes("unknown_command")||e.includes("not found")?"unsupported":"provider"}function a(t){return Object.assign(new Error(t),{code:t})}function c(t,n,e){const o=t.inflight.get(n);if(o)return o;r(t,n,{phase:"loading"});const i=e().then(n=>{if(!n.nodes.length&&n.warnings.some(t=>"invalid_payload"===t.code))throw a("invalid_payload");!function(t,n){t.topologies=[...t.topologies.filter(t=>!(t.provider===n.provider&&t.instanceId===n.instanceId)),n],r(t,"zha"===n.provider?"zha":`z2m:${n.instanceId}`,{phase:"ready",obtainedAt:n.obtainedAt,partial:n.warnings.length>0})}(t,n)}).catch(e=>{r(t,n,{phase:"error",error:s(e)})}).finally(()=>t.inflight.delete(n));return t.inflight.set(n,i),i}function l(t){const n=i(t);return n?{revision:n.revision,topologies:n.topologies,states:n.states}:{revision:0,topologies:[],states:{}}}function u(t,n){const e=i(t);return e?(e.listeners.add(n),()=>e.listeners.delete(n)):()=>{}}function p(t){if(!0!==t?.user?.is_admin)throw a("permission")}function f(n){const e=i(n);return e?c(e,"zha",async()=>{if(p(n),"function"!=typeof n?.callWS)throw a("unsupported");return t(await n.callWS({type:"zha/devices"}))}):Promise.resolve()}function d(t){return null!==t&&"object"==typeof t?t:null}function h(t){const n=d(t),e=n?.payload??t;if("string"!=typeof e)return e;try{return JSON.parse(e)}catch{return null}}async function g(t,n){let e;try{return await Promise.race([t,new Promise((t,o)=>{e=globalThis.setTimeout(()=>o(a("timeout")),Math.max(1,n))})])}finally{void 0!==e&&globalThis.clearTimeout(e)}}function m(t,o,r=15e4){const s=i(t);if(!s)return Promise.resolve();const l=e(o);return c(s,`z2m:${l||String(o)}`,async()=>{if(p(t),!l)throw a("invalid_topic");const e=t.connection,o=e?.subscribeMessage;if("function"!=typeof o||"function"!=typeof t?.callService)throw a("unsupported");const i=function(){const t=globalThis.crypto;return"function"==typeof t?.randomUUID?`houseplan-${t.randomUUID()}`:`houseplan-${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}(),s=Date.now()+Math.max(1,r);let c=!1,u=null,f=null,m=null;const y=new Promise(t=>{u=t}),w=new Promise((t,n)=>{f=t,m=n}),b=[];try{const r=await o.call(e,t=>{!0===d(t)?.retain&&h(t)&&u?.()},{type:"mqtt/subscribe",topic:`${l}/bridge/info`});"function"==typeof r&&b.push(r);const p=await o.call(e,t=>{if(!0===d(t)?.retain)return;const n=h(t);null!==n?n&&function(t){const n=d(t),e=n?.transaction??d(n?.data)?.transaction;return"string"==typeof e||"number"==typeof e?String(e):null}(n)===i&&f?.(n):c&&m?.(a("invalid_payload"))},{type:"mqtt/subscribe",topic:`${l}/bridge/response/networkmap`});"function"==typeof p&&b.push(p),await g(y,Math.min(4e3,Math.max(1,s-Date.now()))),c=!0,await t.callService("mqtt","publish",{topic:`${l}/bridge/request/networkmap`,payload:JSON.stringify({type:"raw",routes:!1,transaction:i}),qos:0,retain:!1});const v=await g(w,s-Date.now()),_=d(v)?.status;if(_&&"ok"!==_)throw a("provider");return n(v,l)}finally{for(const t of b)try{t()}catch{}}})}export{f as readZhaTopology,m as refreshZ2mTopology,u as subscribeZigbeeTopology,l as zigbeeTopologyRuntimeSnapshot};
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="872076741677c95a78bbd45aa6a6eefb714f591bdaa16fff0cc5f3bf977e63b5";import{n as t,b as n}from"./zigbee-topology-Cy3WZyQ_.js";import{B as e}from"./houseplan-card-NzYP5Jm2.js";const o=new WeakMap;function i(t){const n=function(t){const n=t?.connection||t;return!n||"object"!=typeof n&&"function"!=typeof n?null:n}(t);if(!n)return null;let e=o.get(n);return e||(e={revision:0,topologies:[],states:{},listeners:new Set,inflight:new Map},o.set(n,e)),e}function r(t,n,e){t.states={...t.states,[n]:e},function(t){t.revision++;for(const n of t.listeners)n()}(t)}function s(t){const n=t?.code;if("permission"===n||"unsupported"===n||"timeout"===n||"invalid_topic"===n||"invalid_payload"===n)return n;const e=String(t?.message||"").toLowerCase();return e.includes("unauthor")||e.includes("permission")?"permission":e.includes("unknown_command")||e.includes("not found")?"unsupported":"provider"}function a(t){return Object.assign(new Error(t),{code:t})}function c(t,n,e){const o=t.inflight.get(n);if(o)return o;r(t,n,{phase:"loading"});const i=e().then(n=>{if(!n.nodes.length&&n.warnings.some(t=>"invalid_payload"===t.code))throw a("invalid_payload");!function(t,n){t.topologies=[...t.topologies.filter(t=>!(t.provider===n.provider&&t.instanceId===n.instanceId)),n],r(t,"zha"===n.provider?"zha":`z2m:${n.instanceId}`,{phase:"ready",obtainedAt:n.obtainedAt,partial:n.warnings.length>0})}(t,n)}).catch(e=>{r(t,n,{phase:"error",error:s(e)})}).finally(()=>t.inflight.delete(n));return t.inflight.set(n,i),i}function l(t){const n=i(t);return n?{revision:n.revision,topologies:n.topologies,states:n.states}:{revision:0,topologies:[],states:{}}}function u(t,n){const e=i(t);return e?(e.listeners.add(n),()=>e.listeners.delete(n)):()=>{}}function f(t){if(!0!==t?.user?.is_admin)throw a("permission")}function p(n){const e=i(n);return e?c(e,"zha",async()=>{if(f(n),"function"!=typeof n?.callWS)throw a("unsupported");return t(await n.callWS({type:"zha/devices"}))}):Promise.resolve()}function d(t){return null!==t&&"object"==typeof t?t:null}function h(t){const n=d(t),e=n?.payload??t;if("string"!=typeof e)return e;try{return JSON.parse(e)}catch{return null}}async function g(t,n){let e;try{return await Promise.race([t,new Promise((t,o)=>{e=globalThis.setTimeout(()=>o(a("timeout")),Math.max(1,n))})])}finally{void 0!==e&&globalThis.clearTimeout(e)}}function m(t,o,r=15e4){const s=i(t);if(!s)return Promise.resolve();const l=e(o);return c(s,`z2m:${l||String(o)}`,async()=>{if(f(t),!l)throw a("invalid_topic");const e=t.connection,o=e?.subscribeMessage;if("function"!=typeof o||"function"!=typeof t?.callService)throw a("unsupported");const i=function(){const t=globalThis.crypto;return"function"==typeof t?.randomUUID?`houseplan-${t.randomUUID()}`:`houseplan-${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}(),s=Date.now()+Math.max(1,r);let c=!1,u=null,p=null,m=null;const y=new Promise(t=>{u=t}),w=new Promise((t,n)=>{p=t,m=n}),b=[];try{const r=await o.call(e,t=>{!0===d(t)?.retain&&h(t)&&u?.()},{type:"mqtt/subscribe",topic:`${l}/bridge/info`});"function"==typeof r&&b.push(r);const f=await o.call(e,t=>{if(!0===d(t)?.retain)return;const n=h(t);null!==n?n&&function(t){const n=d(t),e=n?.transaction??d(n?.data)?.transaction;return"string"==typeof e||"number"==typeof e?String(e):null}(n)===i&&p?.(n):c&&m?.(a("invalid_payload"))},{type:"mqtt/subscribe",topic:`${l}/bridge/response/networkmap`});"function"==typeof f&&b.push(f),await g(y,Math.min(4e3,Math.max(1,s-Date.now()))),c=!0,await t.callService("mqtt","publish",{topic:`${l}/bridge/request/networkmap`,payload:JSON.stringify({type:"raw",routes:!1,transaction:i}),qos:0,retain:!1});const v=await g(w,s-Date.now()),_=d(v)?.status;if(_&&"ok"!==_)throw a("provider");return n(v,l)}finally{for(const t of b)try{t()}catch{}}})}export{p as readZhaTopology,m as refreshZ2mTopology,u as subscribeZigbeeTopology,l as zigbeeTopologyRuntimeSnapshot};
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="668466a273bc161fb0232215df40fd095aa162047e9b574518867c8554a75991";try{await import("./houseplan-assets/houseplan-card-chP6NBhK.js")}catch(e){if(!customElements.get("houseplan-card")){const l=String(navigator.language||"en").toLowerCase();const m=l.startsWith("ru")?"House Plan обновился — перезагрузите страницу (Ctrl+F5).":l.startsWith("de")?"House Plan wurde aktualisiert — bitte laden Sie die Seite neu (Strg+F5).":l.startsWith("fr")?"House Plan a été mis à jour — veuillez recharger la page (Ctrl+F5).":"House Plan was updated — please reload the page (Ctrl+F5).";customElements.define("houseplan-card",class extends HTMLElement{setConfig(){}getCardSize(){return 1}connectedCallback(){this.style.cssText="display:block;box-sizing:border-box;padding:16px;border:1px solid var(--divider-color,#e0e0e0);border-radius:var(--ha-card-border-radius,12px);background:var(--card-background-color,#fff);color:var(--primary-text-color,#212121);font:14px/1.4 var(--paper-font-body1_-_font-family,sans-serif)";this.textContent=m}})}console.error("[houseplan] stale houseplan-card.js: the implementation chunk is unavailable",e)}
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="872076741677c95a78bbd45aa6a6eefb714f591bdaa16fff0cc5f3bf977e63b5";try{await import("./houseplan-assets/houseplan-card-NzYP5Jm2.js")}catch(e){if(!customElements.get("houseplan-card")){const l=String(navigator.language||"en").toLowerCase();const m=l.startsWith("ru")?"House Plan обновился — перезагрузите страницу (Ctrl+F5).":l.startsWith("de")?"House Plan wurde aktualisiert — bitte laden Sie die Seite neu (Strg+F5).":l.startsWith("fr")?"House Plan a été mis à jour — veuillez recharger la page (Ctrl+F5).":"House Plan was updated — please reload the page (Ctrl+F5).";customElements.define("houseplan-card",class extends HTMLElement{setConfig(){}getCardSize(){return 1}connectedCallback(){this.style.cssText="display:block;box-sizing:border-box;padding:16px;border:1px solid var(--divider-color,#e0e0e0);border-radius:var(--ha-card-border-radius,12px);background:var(--card-background-color,#fff);color:var(--primary-text-color,#212121);font:14px/1.4 var(--paper-font-body1_-_font-family,sans-serif)";this.textContent=m}})}console.error("[houseplan] stale houseplan-card.js: the implementation chunk is unavailable",e)}
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+3
-1
@@ -5,7 +5,9 @@
|
||||
- Space navigation now exposes the current space to assistive technology, an
|
||||
alarm is no longer repeated in a device's accessible name, and keyboard
|
||||
focus opens the same device tooltip as mouse hover. Room-label colours and
|
||||
the touch/pen behaviour are unchanged
|
||||
the touch/pen behaviour are unchanged. Room hover no longer replaces a
|
||||
keyboard tooltip; hovering another device temporarily shows that device and
|
||||
restores the focused one when the pointer leaves
|
||||
([#565](https://github.com/Matysh/houseplan-card/issues/565)).
|
||||
|
||||
- Closely placed device markers no longer steal one another's hover, click,
|
||||
|
||||
@@ -11,7 +11,10 @@
|
||||
- Навигация по пространствам теперь сообщает вспомогательным технологиям
|
||||
текущее пространство, тревога больше не повторяется в доступном имени
|
||||
устройства, а клавиатурный фокус открывает ту же подсказку устройства, что и
|
||||
наведение мыши. Цвета подписей комнат и поведение touch/pen не изменились
|
||||
наведение мыши. Цвета подписей комнат и поведение touch/pen не изменились.
|
||||
Наведение на комнату не заменяет клавиатурную подсказку; наведение на другое
|
||||
устройство временно показывает его и возвращает сфокусированное устройство
|
||||
после ухода указателя
|
||||
([#565](https://github.com/Matysh/houseplan-card/issues/565)).
|
||||
|
||||
- Близко размещённые значки устройств больше не перехватывают друг у друга
|
||||
|
||||
+6
-1
@@ -4180,10 +4180,15 @@ require hands on real hardware — they remain for the human pass.
|
||||
- [ ] `demo/smoke_household_journeys.mjs` проверяет именованную навигацию и
|
||||
единственный `aria-current="page"`, реальный Tab-focus tooltip, переход к
|
||||
следующему устройству, blur-cleanup и попадание подсказки в viewport.
|
||||
Комбинированный mouse+keyboard сценарий доказывает, что комната не
|
||||
заменяет focus-tooltip, другое устройство сохраняет обычный hover, а
|
||||
pointerleave восстанавливает подсказку всё ещё сфокусированного устройства.
|
||||
- [ ] `demo/smoke_space_card.mjs` считает сегменты тревоги в доступном имени
|
||||
статической карточки и не добавляет ей интерактивность.
|
||||
- [ ] Мутанты `view-current-space-aria-removed`,
|
||||
`device-accessible-label-dedup-removed`,
|
||||
`device-focus-tooltip-handler-removed` и
|
||||
`device-focus-tooltip-blur-cleanup-removed` обязаны покраснеть на своих
|
||||
`device-focus-tooltip-blur-cleanup-removed`, а также мутанты раунда r2
|
||||
`device-focus-tooltip-room-hover-overwrites` и
|
||||
`device-pointer-leave-clears-focus-fallback` обязаны покраснеть на своих
|
||||
заявленных гардах.
|
||||
|
||||
+4
-2
@@ -85,8 +85,10 @@ clears it on touch/pen and on mode, space or lifecycle boundaries, and restores
|
||||
it when a real mouse is used again. Keyboard focus, selection and semantic
|
||||
device state do not depend on that gate. Visible keyboard focus on a View device
|
||||
opens the same marker-anchored tooltip as mouse hover; it moves with Tab focus
|
||||
and closes at the usual focus, mode, space and lifecycle boundaries. Touch and
|
||||
pen do not open it. A device action that actually dispatches
|
||||
and closes at the usual focus, mode, space and lifecycle boundaries. Room hover
|
||||
does not replace it; ordinary mouse hover on another device may show that
|
||||
device temporarily, then pointerleave restores the still-focused device.
|
||||
Touch and pen do not open it. A device action that actually dispatches
|
||||
briefly scales its painted shell to 95% and back over 200 ms; informational,
|
||||
editor and no-op paths do not imitate a successful action.
|
||||
|
||||
|
||||
@@ -150,6 +150,28 @@ const MUTANT_DEFINITIONS = [
|
||||
replace: ' private _hideDeviceFocusTip(deviceId: string): void { void deviceId; }',
|
||||
}],
|
||||
},
|
||||
{
|
||||
id: 'device-focus-tooltip-room-hover-overwrites',
|
||||
guard: 'node demo/smoke_household_journeys.mjs',
|
||||
because: '#565 AC6/r1 M1: moving a mouse over the room must not erase a keyboard-owned '
|
||||
+ 'device tooltip while focus remains on that device',
|
||||
patches: [{
|
||||
file: 'src/houseplan-card.ts',
|
||||
find: " if (room && this._liveRt?.deviceFocusActive()) return;",
|
||||
replace: ' void this._liveRt; // mutant: room hover overwrites the focus tooltip',
|
||||
}],
|
||||
},
|
||||
{
|
||||
id: 'device-pointer-leave-clears-focus-fallback',
|
||||
guard: 'node demo/smoke_household_journeys.mjs',
|
||||
because: '#565 AC6/r1 M1: pointerleave after a temporary device hover must restore the '
|
||||
+ 'still-focused keyboard tooltip instead of falling through to the destructive fallback',
|
||||
patches: [{
|
||||
file: 'src/houseplan-card.ts',
|
||||
find: ' private _clearPointerHover(): void { this._liveRt ? this._liveRt.pointerLeave() : this._clearTransientHover(); }',
|
||||
replace: ' private _clearPointerHover(): void { this._liveRt?.pointerLeave() ?? this._clearTransientHover(); }',
|
||||
}],
|
||||
},
|
||||
{
|
||||
id: 'invariants-blame-every-stale-position',
|
||||
guard: 'node --test --test-name-pattern="#566" test/model-invariants.test.mjs',
|
||||
|
||||
@@ -5744,10 +5744,8 @@ export class HouseplanCard extends LitElement {
|
||||
if (this._liveRt) this._liveRt.deviceFocusTip(target, d);
|
||||
else void this._ensureLiveRuntime().then(() => this._liveRt?.deviceFocusTip(target, d));
|
||||
}
|
||||
|
||||
private _hideDeviceFocusTip(deviceId: string): void { this._liveRt?.deviceBlur(deviceId); }
|
||||
|
||||
private _clearPointerHover(): void { this._liveRt?.pointerLeave() ?? this._clearTransientHover(); }
|
||||
private _clearPointerHover(): void { this._liveRt ? this._liveRt.pointerLeave() : this._clearTransientHover(); }
|
||||
|
||||
/** Right click in VIEW mode always opens HA's more-info (owner's decision). */
|
||||
private _ctxDevice(ev: MouseEvent, d: DevItem): void {
|
||||
@@ -7303,6 +7301,7 @@ export class HouseplanCard extends LitElement {
|
||||
/** Remove visual state that can only be owned by a live mouse hover. */
|
||||
private _clearTransientHover(suspend = false): void {
|
||||
if (suspend) this._pointerModality.suspend();
|
||||
this._liveRt?.clearDeviceFocus();
|
||||
this._deviceHits.hover(this.renderRoot, null);
|
||||
if (this._tip) this._tip = null;
|
||||
if (this._hoverRoom) this._hoverRoom = null;
|
||||
@@ -7432,6 +7431,7 @@ export class HouseplanCard extends LitElement {
|
||||
this._notePointer(ev);
|
||||
if (!this._pointerModality.hoverEnabled) return;
|
||||
if (this._drag || this._deviceDrag) return;
|
||||
if (room && this._liveRt?.deviceFocusActive()) return;
|
||||
this._tip = { x: ev.clientX, y: ev.clientY, title, meta, lqi, temp, hum, room, source: 'pointer' };
|
||||
this._syncLiveHover();
|
||||
}
|
||||
|
||||
+16
-8
@@ -45,6 +45,7 @@ interface DeviceTipHost extends LiveHoverHost {
|
||||
}
|
||||
|
||||
const states = new WeakMap<object, HoverState>();
|
||||
const focusTips = new WeakMap<object, LiveTip>();
|
||||
|
||||
const deviceTipContent = (host: DeviceTipHost, device: DevItem): { title: string; meta: string } => {
|
||||
const showLqi = host._spaceDisplayForRender().showLqi ?? host._config?.show_signal ?? true;
|
||||
@@ -67,7 +68,6 @@ export function showDevicePointerTip(value: object, event: PointerEvent, device:
|
||||
host._deviceHits.hover(host.renderRoot, null);
|
||||
return;
|
||||
}
|
||||
if (host._tip?.source === 'focus') return;
|
||||
const tip = deviceTipContent(host, device);
|
||||
host._deviceHits.hover(host.renderRoot, device.id);
|
||||
host._showTip(event, tip.title, tip.meta);
|
||||
@@ -78,37 +78,45 @@ export function showDeviceFocusTip(value: object, target: HTMLElement | null, de
|
||||
if (host._mode !== 'view' || host._drag || host._deviceDrag
|
||||
|| !target?.matches(':focus-visible')) return;
|
||||
const rect = target.getBoundingClientRect();
|
||||
host._tip = {
|
||||
const tip: LiveTip = {
|
||||
x: rect.right, y: rect.top, ...deviceTipContent(host, device),
|
||||
source: 'focus', deviceId: device.id,
|
||||
};
|
||||
focusTips.set(value, tip);
|
||||
host._tip = tip;
|
||||
syncHouseplanHover(host);
|
||||
}
|
||||
|
||||
export function hideDeviceFocusTip(value: object, deviceId: string): void {
|
||||
const host = value as DeviceTipHost;
|
||||
if (host._tip?.source !== 'focus' || host._tip.deviceId !== deviceId) return;
|
||||
host._tip = null;
|
||||
if (focusTips.get(value)?.deviceId !== deviceId) return;
|
||||
focusTips.delete(value);
|
||||
if (host._tip?.source === 'focus') host._tip = null;
|
||||
syncHouseplanHover(host);
|
||||
}
|
||||
|
||||
export function clearPointerHover(value: object): void {
|
||||
const host = value as DeviceTipHost;
|
||||
host._deviceHits.hover(host.renderRoot, null);
|
||||
if (host._tip?.source !== 'focus') host._tip = null;
|
||||
host._tip = focusTips.get(value) || null;
|
||||
host._hoverRoom = null;
|
||||
syncHouseplanHover(host);
|
||||
}
|
||||
|
||||
export function reconcileDeviceFocusTip(value: object): void {
|
||||
const host = value as DeviceTipHost;
|
||||
if (host._tip?.source !== 'focus') return;
|
||||
const tip = focusTips.get(value);
|
||||
if (!tip) return;
|
||||
const marker = [...host.renderRoot.querySelectorAll<HTMLElement>('[data-hp="device"]')]
|
||||
.find((node) => node.dataset.id === host._tip?.deviceId);
|
||||
.find((node) => node.dataset.id === tip.deviceId);
|
||||
if (marker?.matches(':focus-visible')) return;
|
||||
host._tip = null;
|
||||
focusTips.delete(value);
|
||||
if (host._tip?.source === 'focus') host._tip = null;
|
||||
}
|
||||
|
||||
export const deviceFocusTipActive = (value: object): boolean => focusTips.has(value);
|
||||
export const clearDeviceFocusTip = (value: object): void => { focusTips.delete(value); };
|
||||
|
||||
const appendMeta = (tip: HTMLElement, label: string, value?: string, color?: string): void => {
|
||||
if (!value) return;
|
||||
const row = document.createElement('span');
|
||||
|
||||
@@ -2,8 +2,9 @@ import {
|
||||
commitHouseplanViewport, disposeHouseplanViewport, scheduleHouseplanViewport,
|
||||
} from './live-viewport';
|
||||
import {
|
||||
clearPointerHover, hideDeviceFocusTip, reconcileDeviceFocusTip, resetHouseplanHover,
|
||||
showDeviceFocusTip, showDevicePointerTip, syncHouseplanHover,
|
||||
clearDeviceFocusTip, clearPointerHover, deviceFocusTipActive, hideDeviceFocusTip,
|
||||
reconcileDeviceFocusTip, resetHouseplanHover, showDeviceFocusTip, showDevicePointerTip,
|
||||
syncHouseplanHover,
|
||||
} from './live-hover';
|
||||
import {
|
||||
classifyHassRenderChange, type HassRenderDependencies, type HassRenderSnapshot,
|
||||
@@ -65,6 +66,8 @@ export class LiveRuntime {
|
||||
}
|
||||
public deviceBlur(deviceId: string): void { hideDeviceFocusTip(this.host, deviceId); }
|
||||
public pointerLeave(): void { clearPointerHover(this.host); }
|
||||
public deviceFocusActive(): boolean { return deviceFocusTipActive(this.host); }
|
||||
public clearDeviceFocus(): void { clearDeviceFocusTip(this.host); }
|
||||
public active(): boolean {
|
||||
const host = this.host as LiveRuntimeHost;
|
||||
return host._pointers.size > 0 || host._cameraTransition.active || !!host._deviceDrag
|
||||
@@ -80,6 +83,7 @@ export class LiveRuntime {
|
||||
}
|
||||
public dispose(): void {
|
||||
disposeHouseplanViewport(this.host);
|
||||
clearDeviceFocusTip(this.host);
|
||||
resetHouseplanHover(this.host);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user