mirror of
https://github.com/Matysh/houseplan-card
synced 2026-09-29 03:09:36 +00:00
Tell the host when the version notice goes away with the element
The controller dropped its banner on disconnect without asking the host to repaint. Lit renders neither on disconnect nor on reconnect, so the markup produced before the detach outlived it: the notice stayed on screen while the controller no longer owned one, and it left only when some unrelated update happened to run. Correctness rested on a coincidence. Measured on the built module with a counter: the sequence mismatch -> disconnect -> versions agree -> connect asked for exactly one repaint, the one that showed the notice. It now asks for two, and the second is the one that takes the notice away. Nothing else about the teardown changes. The field is still cleared because a detached element cannot deliver animationend, reconnect still rebuilds the notice from the retained input, and a disconnect with no notice still asks for nothing. Issue: #536 User-Visible: no
This commit is contained in:
Vendored
+142
-142
@@ -1,311 +1,311 @@
|
||||
{
|
||||
"schema": 1,
|
||||
"fingerprint": "ab84dc912c690000c169eba16f8de2feb1fc172c63f2fec8b67ba334e28c17ea",
|
||||
"fingerprint": "d7a38cd5f4809a942720bb9c568487f3cac52b8c8b804a00fa9a38d56b02b0b0",
|
||||
"entry": "houseplan-card.js",
|
||||
"panelEntry": "houseplan-panel.js",
|
||||
"initialViewFiles": [
|
||||
"houseplan-assets/houseplan-card-B09T8YNT.js",
|
||||
"houseplan-assets/houseplan-card-kxu4PK0e.js",
|
||||
"houseplan-card.js"
|
||||
],
|
||||
"initialViewGzipBytes": 287294,
|
||||
"initialViewGzipBytes": 287309,
|
||||
"initialPanelFiles": [
|
||||
"houseplan-assets/houseplan-card-B09T8YNT.js",
|
||||
"houseplan-assets/houseplan-card-kxu4PK0e.js",
|
||||
"houseplan-panel.js"
|
||||
],
|
||||
"initialPanelGzipBytes": 288817,
|
||||
"initialPanelGzipBytes": 288832,
|
||||
"initialPanelOnlyFiles": [
|
||||
"houseplan-panel.js"
|
||||
],
|
||||
"initialPanelOnlyGzipBytes": 2325,
|
||||
"initialPanelOnlyGzipBytes": 2326,
|
||||
"lazyFiles": [
|
||||
"houseplan-assets/backdrop-pick--4n9QFge.js",
|
||||
"houseplan-assets/de-DiFGrQON.js",
|
||||
"houseplan-assets/editor-D46Ajihz.js",
|
||||
"houseplan-assets/fr-BXJn18nF.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-COBYld8q.js",
|
||||
"houseplan-assets/guard-DwIRJJyZ.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-pgqGXcak.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-UuGxE25a.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-DPYjcKVV.js",
|
||||
"houseplan-assets/iso-scene-render-DBYA81Vc.js",
|
||||
"houseplan-assets/live-interaction-runtime-BLb_XJmB.js",
|
||||
"houseplan-assets/pdf-export-Ca0WGQHB.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-C7pAhi8T.js",
|
||||
"houseplan-assets/zigbee-topology-D4VIWdkh.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-BHqwDU75.js"
|
||||
"houseplan-assets/backdrop-pick-asz5q_OU.js",
|
||||
"houseplan-assets/de-CTRMxnqa.js",
|
||||
"houseplan-assets/editor-C4D4NL2W.js",
|
||||
"houseplan-assets/fr-BlK161My.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-Co1oFVBb.js",
|
||||
"houseplan-assets/guard-B4LMSU6J.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-C0L0xpVR.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-Bu2ebkJb.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-B-pc_DQw.js",
|
||||
"houseplan-assets/iso-scene-render-CeiPinyk.js",
|
||||
"houseplan-assets/live-interaction-runtime-D3AdWQzC.js",
|
||||
"houseplan-assets/pdf-export-_bO9a48Z.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-_3sR_2sH.js",
|
||||
"houseplan-assets/zigbee-topology-BIfw_L0a.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-CWPOu5RF.js"
|
||||
],
|
||||
"lazyGzipBytes": 417390,
|
||||
"lazyGzipBytes": 417421,
|
||||
"lazyEditorFiles": [
|
||||
"houseplan-assets/backdrop-pick--4n9QFge.js",
|
||||
"houseplan-assets/editor-D46Ajihz.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-COBYld8q.js",
|
||||
"houseplan-assets/guard-DwIRJJyZ.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-pgqGXcak.js",
|
||||
"houseplan-assets/zigbee-topology-D4VIWdkh.js"
|
||||
"houseplan-assets/backdrop-pick-asz5q_OU.js",
|
||||
"houseplan-assets/editor-C4D4NL2W.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-Co1oFVBb.js",
|
||||
"houseplan-assets/guard-B4LMSU6J.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-C0L0xpVR.js",
|
||||
"houseplan-assets/zigbee-topology-BIfw_L0a.js"
|
||||
],
|
||||
"lazyEditorGzipBytes": 204992,
|
||||
"lazyEditorGzipBytes": 205001,
|
||||
"lazyOnboardingFiles": [
|
||||
"houseplan-assets/backdrop-pick--4n9QFge.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-UuGxE25a.js"
|
||||
"houseplan-assets/backdrop-pick-asz5q_OU.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-Bu2ebkJb.js"
|
||||
],
|
||||
"lazyOnboardingGzipBytes": 13912,
|
||||
"lazyOnboardingGzipBytes": 13914,
|
||||
"lazyLocaleFiles": [
|
||||
"houseplan-assets/de-DiFGrQON.js",
|
||||
"houseplan-assets/fr-BXJn18nF.js"
|
||||
"houseplan-assets/de-CTRMxnqa.js",
|
||||
"houseplan-assets/fr-BlK161My.js"
|
||||
],
|
||||
"lazyLocaleGzipBytes": 54808,
|
||||
"lazyLocaleGzipBytes": 54819,
|
||||
"lazyIsometricFiles": [
|
||||
"houseplan-assets/guard-DwIRJJyZ.js",
|
||||
"houseplan-assets/iso-scene-render-DBYA81Vc.js"
|
||||
"houseplan-assets/guard-B4LMSU6J.js",
|
||||
"houseplan-assets/iso-scene-render-CeiPinyk.js"
|
||||
],
|
||||
"lazyIsometricGzipBytes": 13455,
|
||||
"lazyIsometricGzipBytes": 13458,
|
||||
"lazyFurnitureArtFiles": [
|
||||
"houseplan-assets/furniture-plan-art.generated-COBYld8q.js"
|
||||
"houseplan-assets/furniture-plan-art.generated-Co1oFVBb.js"
|
||||
],
|
||||
"lazyFurnitureArtGzipBytes": 10255,
|
||||
"lazyFurnitureArtGzipBytes": 10253,
|
||||
"lazyPdfFiles": [
|
||||
"houseplan-assets/furniture-plan-art.generated-COBYld8q.js",
|
||||
"houseplan-assets/pdf-export-Ca0WGQHB.js"
|
||||
"houseplan-assets/furniture-plan-art.generated-Co1oFVBb.js",
|
||||
"houseplan-assets/pdf-export-_bO9a48Z.js"
|
||||
],
|
||||
"lazyPdfGzipBytes": 120126,
|
||||
"lazyPdfGzipBytes": 120125,
|
||||
"files": [
|
||||
{
|
||||
"path": "houseplan-assets/backdrop-pick--4n9QFge.js",
|
||||
"sha256": "eb6936e5dda4354bb02ddaa5cdf8653b1a598aff5969127412fe9eff4e3eb7c6",
|
||||
"path": "houseplan-assets/backdrop-pick-asz5q_OU.js",
|
||||
"sha256": "ab05be070ca4533911d1d59e4e486c8ec3f27402a3203aa6bf0adb52337e79e8",
|
||||
"rawBytes": 19956,
|
||||
"gzipBytes": 6878,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-B09T8YNT.js"
|
||||
"houseplan-assets/houseplan-card-kxu4PK0e.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/de-DiFGrQON.js",
|
||||
"sha256": "e57cc99c8f3bc496041e27d138e79622dff12e8f4ff17f34bcf38b3f81cb4f7d",
|
||||
"path": "houseplan-assets/de-CTRMxnqa.js",
|
||||
"sha256": "aee191277d6ac672b534df85aeab802fb8c3ed2d62e60c77c468e89ac54c3158",
|
||||
"rawBytes": 91402,
|
||||
"gzipBytes": 27689,
|
||||
"gzipBytes": 27693,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/editor-D46Ajihz.js",
|
||||
"sha256": "d3fc69c216fe7e6a5c98ea3f13fbeeb79f2a8285f83342670ab45f0a48acd832",
|
||||
"path": "houseplan-assets/editor-C4D4NL2W.js",
|
||||
"sha256": "d25d626bd42a4c029b0984a5eb8a3642359a48f6d5522a0f5f8779fdc4421179",
|
||||
"rawBytes": 3832,
|
||||
"gzipBytes": 1583,
|
||||
"gzipBytes": 1585,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-B09T8YNT.js"
|
||||
"houseplan-assets/houseplan-card-kxu4PK0e.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/fr-BXJn18nF.js",
|
||||
"sha256": "573e6635db59cf686737e4f82685a0b6d9515d985817873b35004e3455b939b8",
|
||||
"path": "houseplan-assets/fr-BlK161My.js",
|
||||
"sha256": "960c9a7a904c131feeedbf508d30ac6741090c3c1497c997c0be5684f8bb8c40",
|
||||
"rawBytes": 93667,
|
||||
"gzipBytes": 27119,
|
||||
"gzipBytes": 27126,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/furniture-plan-art.generated-COBYld8q.js",
|
||||
"sha256": "80902ecbc07d842314877d00f4b221ce5bbb2fbc47b0f516f63e08db49f8dcf8",
|
||||
"path": "houseplan-assets/furniture-plan-art.generated-Co1oFVBb.js",
|
||||
"sha256": "ab5ff3c3e382ef0d41196c1d311dff2bbcc90667364ca55079c20c2b512ff0d5",
|
||||
"rawBytes": 33655,
|
||||
"gzipBytes": 10255,
|
||||
"gzipBytes": 10253,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/guard-DwIRJJyZ.js",
|
||||
"sha256": "1c964e4857ba2ead0749183010c13ed28e4ac4505e6900047f7621902ef10f59",
|
||||
"path": "houseplan-assets/guard-B4LMSU6J.js",
|
||||
"sha256": "768897ac5bdd21d64027b74563aab5e15f1cf26054a2d6600e1fd704105eb801",
|
||||
"rawBytes": 518,
|
||||
"gzipBytes": 371,
|
||||
"gzipBytes": 372,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-B09T8YNT.js"
|
||||
"houseplan-assets/houseplan-card-kxu4PK0e.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/houseplan-card-B09T8YNT.js",
|
||||
"sha256": "c52e2373ab0b70ff05445a9de6d776211163f92e54b5a15ae9df050043df9236",
|
||||
"rawBytes": 1021194,
|
||||
"gzipBytes": 286492,
|
||||
"path": "houseplan-assets/houseplan-card-kxu4PK0e.js",
|
||||
"sha256": "fef5ddebd1c9e17bdf475d2eda28d6f53663bbb8f0fbab1d3327f817e1e5957a",
|
||||
"rawBytes": 1021215,
|
||||
"gzipBytes": 286506,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": [
|
||||
"houseplan-assets/de-DiFGrQON.js",
|
||||
"houseplan-assets/editor-D46Ajihz.js",
|
||||
"houseplan-assets/fr-BXJn18nF.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-COBYld8q.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-pgqGXcak.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-UuGxE25a.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-DPYjcKVV.js",
|
||||
"houseplan-assets/iso-scene-render-DBYA81Vc.js",
|
||||
"houseplan-assets/live-interaction-runtime-BLb_XJmB.js",
|
||||
"houseplan-assets/pdf-export-Ca0WGQHB.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-C7pAhi8T.js"
|
||||
"houseplan-assets/de-CTRMxnqa.js",
|
||||
"houseplan-assets/editor-C4D4NL2W.js",
|
||||
"houseplan-assets/fr-BlK161My.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-Co1oFVBb.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-C0L0xpVR.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-Bu2ebkJb.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-B-pc_DQw.js",
|
||||
"houseplan-assets/iso-scene-render-CeiPinyk.js",
|
||||
"houseplan-assets/live-interaction-runtime-D3AdWQzC.js",
|
||||
"houseplan-assets/pdf-export-_bO9a48Z.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-_3sR_2sH.js"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/houseplan-editor-runtime-pgqGXcak.js",
|
||||
"sha256": "4b8bef53881c6f01e94194a0134504fda6f1dc3f0d2175210aeb499553526f57",
|
||||
"path": "houseplan-assets/houseplan-editor-runtime-C0L0xpVR.js",
|
||||
"sha256": "95e727ba027f7c639e47e6900c0cd347c1f829515304adfaaff7ee3189a81915",
|
||||
"rawBytes": 668813,
|
||||
"gzipBytes": 178481,
|
||||
"gzipBytes": 178483,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/backdrop-pick--4n9QFge.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-COBYld8q.js",
|
||||
"houseplan-assets/guard-DwIRJJyZ.js",
|
||||
"houseplan-assets/houseplan-card-B09T8YNT.js",
|
||||
"houseplan-assets/zigbee-topology-D4VIWdkh.js"
|
||||
"houseplan-assets/backdrop-pick-asz5q_OU.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-Co1oFVBb.js",
|
||||
"houseplan-assets/guard-B4LMSU6J.js",
|
||||
"houseplan-assets/houseplan-card-kxu4PK0e.js",
|
||||
"houseplan-assets/zigbee-topology-BIfw_L0a.js"
|
||||
],
|
||||
"dynamicImports": [
|
||||
"houseplan-assets/zigbee-topology-runtime-BHqwDU75.js"
|
||||
"houseplan-assets/zigbee-topology-runtime-CWPOu5RF.js"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/houseplan-onboarding-runtime-UuGxE25a.js",
|
||||
"sha256": "a8c54de977b2b335efbd40b6872f4710dc3148eb96b66f3075f5d718dda87f60",
|
||||
"path": "houseplan-assets/houseplan-onboarding-runtime-Bu2ebkJb.js",
|
||||
"sha256": "553134e94ec66e0c00941a3537ec0e574e843ced1eb7013d5e7116604f8365ba",
|
||||
"rawBytes": 28287,
|
||||
"gzipBytes": 7034,
|
||||
"gzipBytes": 7036,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/backdrop-pick--4n9QFge.js",
|
||||
"houseplan-assets/houseplan-card-B09T8YNT.js"
|
||||
"houseplan-assets/backdrop-pick-asz5q_OU.js",
|
||||
"houseplan-assets/houseplan-card-kxu4PK0e.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/hp-zigbee-topology-overlay-DPYjcKVV.js",
|
||||
"sha256": "811ebeb8391aa43db6756babfa87d547a90163b1d0345c5368acb12c6f7d8334",
|
||||
"path": "houseplan-assets/hp-zigbee-topology-overlay-B-pc_DQw.js",
|
||||
"sha256": "6a636f03fe51a95eceaea915e18bd4714119a93f6c8c7d81b7285fcc31344744",
|
||||
"rawBytes": 10756,
|
||||
"gzipBytes": 3681,
|
||||
"gzipBytes": 3682,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-B09T8YNT.js",
|
||||
"houseplan-assets/zigbee-topology-D4VIWdkh.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-BHqwDU75.js"
|
||||
"houseplan-assets/houseplan-card-kxu4PK0e.js",
|
||||
"houseplan-assets/zigbee-topology-BIfw_L0a.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-CWPOu5RF.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/iso-scene-render-DBYA81Vc.js",
|
||||
"sha256": "07a629e72908be61340d5fce76ada6464046cf75683ffd2174dbabd535c872b2",
|
||||
"path": "houseplan-assets/iso-scene-render-CeiPinyk.js",
|
||||
"sha256": "5f5f10d84d9fc3183cff6a9de22dd3c8deb10a480f2f2835dd9b43e16e29cdae",
|
||||
"rawBytes": 38562,
|
||||
"gzipBytes": 13084,
|
||||
"gzipBytes": 13086,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/guard-DwIRJJyZ.js",
|
||||
"houseplan-assets/houseplan-card-B09T8YNT.js"
|
||||
"houseplan-assets/guard-B4LMSU6J.js",
|
||||
"houseplan-assets/houseplan-card-kxu4PK0e.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/live-interaction-runtime-BLb_XJmB.js",
|
||||
"sha256": "d365630ffaf9aa3f8a8cbd9b708b6b6f427c3112dad9fe728c4bde2b920f7ebc",
|
||||
"path": "houseplan-assets/live-interaction-runtime-D3AdWQzC.js",
|
||||
"sha256": "0b9a21deeede84cdc27ecf3ec5449e8fb3d296339315b8c1c6a8655a7b87afa7",
|
||||
"rawBytes": 6032,
|
||||
"gzipBytes": 2430,
|
||||
"gzipBytes": 2433,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-B09T8YNT.js"
|
||||
"houseplan-assets/houseplan-card-kxu4PK0e.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/pdf-export-Ca0WGQHB.js",
|
||||
"sha256": "48d9902909acd6109e290dc05b62c9d3185d26e30c9e1db0e69551dc422e1009",
|
||||
"path": "houseplan-assets/pdf-export-_bO9a48Z.js",
|
||||
"sha256": "505e1f6d21fb7d66a48c66044f4668485deea1fab8ce892e1e70ebb26bfb479e",
|
||||
"rawBytes": 236244,
|
||||
"gzipBytes": 109871,
|
||||
"gzipBytes": 109872,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/furniture-plan-art.generated-COBYld8q.js",
|
||||
"houseplan-assets/houseplan-card-B09T8YNT.js"
|
||||
"houseplan-assets/furniture-plan-art.generated-Co1oFVBb.js",
|
||||
"houseplan-assets/houseplan-card-kxu4PK0e.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/summary-panel-editor-B3GZK-GA.js",
|
||||
"sha256": "b28b9fa8f5025272c4758676db5bc08522e5931b82348bc18c5e4e0eb9ea05af",
|
||||
"path": "houseplan-assets/summary-panel-editor-2CUB_hEH.js",
|
||||
"sha256": "da64b8059c7796d8c719ddf71b7cf0f438e36d7c105bd5882ca1e91b4e84c324",
|
||||
"rawBytes": 14824,
|
||||
"gzipBytes": 3397,
|
||||
"gzipBytes": 3398,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-B09T8YNT.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-C7pAhi8T.js"
|
||||
"houseplan-assets/houseplan-card-kxu4PK0e.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-_3sR_2sH.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/summary-panel-metrics-B7jA9PIm.js",
|
||||
"sha256": "363474ae985b90710ad42398539b20ff5f85dfee48c27a0c1618f0bc939953c2",
|
||||
"path": "houseplan-assets/summary-panel-metrics-LZqdk4ee.js",
|
||||
"sha256": "e0c27424d773e4259390ee65bca1cd3582a99509c073340ffaf2111bb4ecad67",
|
||||
"rawBytes": 2610,
|
||||
"gzipBytes": 1302,
|
||||
"gzipBytes": 1306,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-B09T8YNT.js"
|
||||
"houseplan-assets/houseplan-card-kxu4PK0e.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/summary-panel-runtime-loaded-C7pAhi8T.js",
|
||||
"sha256": "a88aea8dc4124c422f064ed1414c7ae8a6b6af2977f55b955df1d50d6eb03a3b",
|
||||
"path": "houseplan-assets/summary-panel-runtime-loaded-_3sR_2sH.js",
|
||||
"sha256": "ccd4ee51c257ced6a3c09e4205e2c310f479f101c37fc32f672021cb932a82b3",
|
||||
"rawBytes": 72272,
|
||||
"gzipBytes": 19727,
|
||||
"gzipBytes": 19728,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-B09T8YNT.js"
|
||||
"houseplan-assets/houseplan-card-kxu4PK0e.js"
|
||||
],
|
||||
"dynamicImports": [
|
||||
"houseplan-assets/summary-panel-editor-B3GZK-GA.js",
|
||||
"houseplan-assets/summary-panel-metrics-B7jA9PIm.js"
|
||||
"houseplan-assets/summary-panel-editor-2CUB_hEH.js",
|
||||
"houseplan-assets/summary-panel-metrics-LZqdk4ee.js"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/zigbee-topology-D4VIWdkh.js",
|
||||
"sha256": "0f40c8f9dc90a943bcf69ed4999993463664524925cc9790037382f1074af50c",
|
||||
"path": "houseplan-assets/zigbee-topology-BIfw_L0a.js",
|
||||
"sha256": "2b4144291f42cf49b717ff2ff5995e4158a9f4da4152e4b812428ecebf8f13ec",
|
||||
"rawBytes": 18961,
|
||||
"gzipBytes": 7424,
|
||||
"gzipBytes": 7430,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-B09T8YNT.js"
|
||||
"houseplan-assets/houseplan-card-kxu4PK0e.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/zigbee-topology-runtime-BHqwDU75.js",
|
||||
"sha256": "2541168baac4c043cfdb0ff1c74c48accab55d0247a03dfffc2366672853f198",
|
||||
"path": "houseplan-assets/zigbee-topology-runtime-CWPOu5RF.js",
|
||||
"sha256": "8acee9a0016ee1cd15f30a3f72de93b5af9fd5966b81a126db332315af775df0",
|
||||
"rawBytes": 3941,
|
||||
"gzipBytes": 1763,
|
||||
"gzipBytes": 1764,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-B09T8YNT.js",
|
||||
"houseplan-assets/zigbee-topology-D4VIWdkh.js"
|
||||
"houseplan-assets/houseplan-card-kxu4PK0e.js",
|
||||
"houseplan-assets/zigbee-topology-BIfw_L0a.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-card.js",
|
||||
"sha256": "d764b4fb5de015997572d217a035baec7358aecf9b99fb7645e566563ca2d822",
|
||||
"sha256": "834f5758f9e122a890a25e8a717c95b66f5ea92c109dd59e0a3efb4587441065",
|
||||
"rawBytes": 1205,
|
||||
"gzipBytes": 802,
|
||||
"gzipBytes": 803,
|
||||
"isEntry": true,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-B09T8YNT.js"
|
||||
"houseplan-assets/houseplan-card-kxu4PK0e.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-panel.js",
|
||||
"sha256": "82c481493d3045cd4288b9a8db297974129e4d11190af410e61a2cc233987c3d",
|
||||
"sha256": "742aff52d46d65daebc3b794c374fad49badc9d21c606cadfa7b5fa9771f6002",
|
||||
"rawBytes": 6165,
|
||||
"gzipBytes": 2325,
|
||||
"gzipBytes": 2326,
|
||||
"isEntry": true,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-B09T8YNT.js"
|
||||
"houseplan-assets/houseplan-card-kxu4PK0e.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
+1
-1
@@ -1,4 +1,4 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="ab84dc912c690000c169eba16f8de2feb1fc172c63f2fec8b67ba334e28c17ea";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-B09T8YNT.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__="d7a38cd5f4809a942720bb9c568487f3cac52b8c8b804a00fa9a38d56b02b0b0";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-kxu4PK0e.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
|
||||
.hass=${this.hass}
|
||||
.data=${this._formData}
|
||||
.schema=${e}
|
||||
+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 +1 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="d7a38cd5f4809a942720bb9c568487f3cac52b8c8b804a00fa9a38d56b02b0b0";import{dS as r,dT as t,dU as s}from"./houseplan-card-kxu4PK0e.js";const a={},e=r(class extends t{constructor(){super(...arguments),this.ot=a}render(r,t){return t()}update(r,[t,a]){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,a)}});export{e as i};
|
||||
-1
@@ -1 +0,0 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="ab84dc912c690000c169eba16f8de2feb1fc172c63f2fec8b67ba334e28c17ea";import{dS as r,dT as e,dU as t}from"./houseplan-card-B09T8YNT.js";const s={},a=r(class extends e{constructor(){super(...arguments),this.ot=s}render(r,e){return e()}update(r,[e,s]){if(Array.isArray(e)){if(Array.isArray(this.ot)&&this.ot.length===e.length&&e.every((r,e)=>r===this.ot[e]))return t}else if(this.ot===e)return t;return this.ot=Array.isArray(e)?Array.from(e):e,this.render(e,s)}});export{a as i};
|
||||
Vendored
+5
-5
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__="ab84dc912c690000c169eba16f8de2feb1fc172c63f2fec8b67ba334e28c17ea";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-B09T8YNT.js";import{c as k,e as S,r as C,a as M}from"./backdrop-pick--4n9QFge.js";const F=1e3,x=t=>{if(!t.trim())return null;const s=Number(t.replace(",","."));return Number.isFinite(s)?s:null},T="ab84dc912c690000c169eba16f8de2feb1fc172c63f2fec8b67ba334e28c17ea";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__="d7a38cd5f4809a942720bb9c568487f3cac52b8c8b804a00fa9a38d56b02b0b0";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-kxu4PK0e.js";import{c as k,e as S,r as C,a as M}from"./backdrop-pick-asz5q_OU.js";const F=1e3,x=t=>{if(!t.trim())return null;const s=Number(t.replace(",","."));return Number.isFinite(s)?s:null},T="d7a38cd5f4809a942720bb9c568487f3cac52b8c8b804a00fa9a38d56b02b0b0";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__="ab84dc912c690000c169eba16f8de2feb1fc
|
||||
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: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}}} />
|
||||
@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}}} />
|
||||
<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=v(t,"showBorders",s)})}
|
||||
${this._boolInput(t.showBorders,s=>{this.host._spaceDialog=f(t,"showBorders",s)})}
|
||||
<span>${this.host._t("space.show_borders")}</span>
|
||||
</label>
|
||||
<div class="helpfieldlabel">
|
||||
@@ -107,7 +107,7 @@ globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="ab84dc912c690000c169eba16f8de2feb1fc
|
||||
</option>
|
||||
</select>
|
||||
<label class="srcrow">
|
||||
${this._boolInput(t.showNames,s=>{this.host._spaceDialog=v(t,"showNames",s)})}
|
||||
${this._boolInput(t.showNames,s=>{this.host._spaceDialog=f(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
+33
-33
File diff suppressed because one or more lines are too long
+1
-1
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__="ab84dc912c690000c169eba16f8de2feb1fc172c63f2fec8b67ba334e28c17ea";import{b as a,A as e}from"./houseplan-card-B09T8YNT.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-C7pAhi8T.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__="d7a38cd5f4809a942720bb9c568487f3cac52b8c8b804a00fa9a38d56b02b0b0";import{b as a,A as e}from"./houseplan-card-kxu4PK0e.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-_3sR_2sH.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
-1
@@ -1 +1 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="ab84dc912c690000c169eba16f8de2feb1fc172c63f2fec8b67ba334e28c17ea";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 c,a0 as l,ax as u,ea as d,eb as f,bq as m,ec as g}from"./houseplan-card-B09T8YNT.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,c="entity"===r?e.registry.entities?.[s]:null,l="device"===r?s:c?.device_id,u="device"===r?a?.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(s))&&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 a=t(e);if(!a)continue;const c=n(f.rooms,e.id,m.walls,m.openCuts,i,m.cellCm,o,r,g.roomGeom,g.multiWallNodes)||a;v=y(v,s(c,m.physicalBodies)),yield}const _=m.cellCm/o;d+=a(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};
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="d7a38cd5f4809a942720bb9c568487f3cac52b8c8b804a00fa9a38d56b02b0b0";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-kxu4PK0e.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};
|
||||
+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 +0,0 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="ab84dc912c690000c169eba16f8de2feb1fc172c63f2fec8b67ba334e28c17ea";import{n as t,b as n}from"./zigbee-topology-D4VIWdkh.js";import{B as e}from"./houseplan-card-B09T8YNT.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};
|
||||
@@ -0,0 +1 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="d7a38cd5f4809a942720bb9c568487f3cac52b8c8b804a00fa9a38d56b02b0b0";import{n as t,b as n}from"./zigbee-topology-BIfw_L0a.js";import{B as o}from"./houseplan-card-kxu4PK0e.js";const e=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 o=e.get(n);return o||(o={revision:0,topologies:[],states:{},listeners:new Set,inflight:new Map},e.set(n,o)),o}function r(t,n,o){t.states={...t.states,[n]:o},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 o=String(t?.message||"").toLowerCase();return o.includes("unauthor")||o.includes("permission")?"permission":o.includes("unknown_command")||o.includes("not found")?"unsupported":"provider"}function a(t){return Object.assign(new Error(t),{code:t})}function c(t,n,o){const e=t.inflight.get(n);if(e)return e;r(t,n,{phase:"loading"});const i=o().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(o=>{r(t,n,{phase:"error",error:s(o)})}).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 o=i(t);return o?(o.listeners.add(n),()=>o.listeners.delete(n)):()=>{}}function p(t){if(!0!==t?.user?.is_admin)throw a("permission")}function f(n){const o=i(n);return o?c(o,"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),o=n?.payload??t;if("string"!=typeof o)return o;try{return JSON.parse(o)}catch{return null}}async function g(t,n){let o;try{return await Promise.race([t,new Promise((t,e)=>{o=globalThis.setTimeout(()=>e(a("timeout")),Math.max(1,n))})])}finally{void 0!==o&&globalThis.clearTimeout(o)}}function m(t,e,r=15e4){const s=i(t);if(!s)return Promise.resolve();const l=o(e);return c(s,`z2m:${l||String(e)}`,async()=>{if(p(t),!l)throw a("invalid_topic");const o=t.connection,e=o?.subscribeMessage;if("function"!=typeof e||"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 e.call(o,t=>{!0===d(t)?.retain&&h(t)&&u?.()},{type:"mqtt/subscribe",topic:`${l}/bridge/info`});"function"==typeof r&&b.push(r);const p=await e.call(o,t=>{if(!0===d(t)?.retain)return;const n=h(t);null!==n?n&&function(t){const n=d(t),o=n?.transaction??d(n?.data)?.transaction;return"string"==typeof o||"number"==typeof o?String(o):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};
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="ab84dc912c690000c169eba16f8de2feb1fc172c63f2fec8b67ba334e28c17ea";try{await import("./houseplan-assets/houseplan-card-B09T8YNT.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__="d7a38cd5f4809a942720bb9c568487f3cac52b8c8b804a00fa9a38d56b02b0b0";try{await import("./houseplan-assets/houseplan-card-kxu4PK0e.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
Reference in New Issue
Block a user