mirror of
https://github.com/Matysh/houseplan-card
synced 2026-09-29 03:09:36 +00:00
test(dialogs): свидетель AC3 — конфиг после правки через UI побайтово равен конфигу пути состояния (#600)
demo/smoke_dialog_config_parity.mjs: для каждого из четырёх диалогов одни и те же правки делаются дважды — контролами набора с нажатием Save и прямой записью в черновик с вызовом save-метода (путь прежних обработчиков и существующих смоков); JSON.stringify(_serverCfg) совпадает побайтово, и оба отличаются от исходного конфига. Заодно числовое поле размера шрифта карточек в «Пространстве» получило id (space-card-font) — подпись for раньше указывала в пустоту. Issue: #600 User-Visible: no
This commit is contained in:
@@ -1,312 +1,312 @@
|
||||
{
|
||||
"schema": 1,
|
||||
"fingerprint": "f0197c844f570e569dd29e057d2fb536e376cdbc937540025ef9ad0582596a32",
|
||||
"fingerprint": "8709935061feeb249124456f030f1896d23f2dab2d516112438258f3414728ea",
|
||||
"entry": "houseplan-card.js",
|
||||
"panelEntry": "houseplan-panel.js",
|
||||
"initialViewFiles": [
|
||||
"houseplan-assets/houseplan-card-DQ-f8iag.js",
|
||||
"houseplan-assets/houseplan-card-BFoRQ37T.js",
|
||||
"houseplan-card.js"
|
||||
],
|
||||
"initialViewGzipBytes": 289853,
|
||||
"initialViewGzipBytes": 289855,
|
||||
"initialPanelFiles": [
|
||||
"houseplan-assets/houseplan-card-DQ-f8iag.js",
|
||||
"houseplan-assets/houseplan-card-BFoRQ37T.js",
|
||||
"houseplan-panel.js"
|
||||
],
|
||||
"initialPanelGzipBytes": 291376,
|
||||
"initialPanelGzipBytes": 291378,
|
||||
"initialPanelOnlyFiles": [
|
||||
"houseplan-panel.js"
|
||||
],
|
||||
"initialPanelOnlyGzipBytes": 2327,
|
||||
"initialPanelOnlyGzipBytes": 2329,
|
||||
"lazyFiles": [
|
||||
"houseplan-assets/backdrop-pick-B7vYKXC6.js",
|
||||
"houseplan-assets/de-BmOu9BjZ.js",
|
||||
"houseplan-assets/editor-Dv6a9bZA.js",
|
||||
"houseplan-assets/form-kit.styles-H3_5tau5.js",
|
||||
"houseplan-assets/fr-CrjOPoOt.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-BtCCINPK.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-f6__iDbP.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-Dubv_WiO.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-oXNqPfb7.js",
|
||||
"houseplan-assets/iso-scene-render-Dl-bb0I1.js",
|
||||
"houseplan-assets/live-interaction-runtime-CZrM4ltk.js",
|
||||
"houseplan-assets/pdf-export-CKchojXx.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-CNFVmY5j.js",
|
||||
"houseplan-assets/zigbee-topology-B9uKm6nO.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-BSSaTbtg.js"
|
||||
"houseplan-assets/backdrop-pick-CP3QXHX8.js",
|
||||
"houseplan-assets/de-CYIvGSeh.js",
|
||||
"houseplan-assets/editor-ChOU0OWs.js",
|
||||
"houseplan-assets/form-kit.styles-C72G_DR7.js",
|
||||
"houseplan-assets/fr-B3ENjkek.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-BkioCT-s.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-CrbIMKPJ.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-APP-vRxu.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-CRnD4UCJ.js",
|
||||
"houseplan-assets/iso-scene-render-Dvuggyn7.js",
|
||||
"houseplan-assets/live-interaction-runtime-qCxhzKxB.js",
|
||||
"houseplan-assets/pdf-export-p8LcY_0k.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-DoMZCfzL.js",
|
||||
"houseplan-assets/zigbee-topology-DjaCFgDx.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-g1K5jnto.js"
|
||||
],
|
||||
"lazyGzipBytes": 459721,
|
||||
"lazyGzipBytes": 459748,
|
||||
"lazyEditorFiles": [
|
||||
"houseplan-assets/backdrop-pick-B7vYKXC6.js",
|
||||
"houseplan-assets/editor-Dv6a9bZA.js",
|
||||
"houseplan-assets/form-kit.styles-H3_5tau5.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-BtCCINPK.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-f6__iDbP.js",
|
||||
"houseplan-assets/zigbee-topology-B9uKm6nO.js"
|
||||
"houseplan-assets/backdrop-pick-CP3QXHX8.js",
|
||||
"houseplan-assets/editor-ChOU0OWs.js",
|
||||
"houseplan-assets/form-kit.styles-C72G_DR7.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-BkioCT-s.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-CrbIMKPJ.js",
|
||||
"houseplan-assets/zigbee-topology-DjaCFgDx.js"
|
||||
],
|
||||
"lazyEditorGzipBytes": 243149,
|
||||
"lazyEditorGzipBytes": 243159,
|
||||
"lazyOnboardingFiles": [
|
||||
"houseplan-assets/backdrop-pick-B7vYKXC6.js",
|
||||
"houseplan-assets/form-kit.styles-H3_5tau5.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-Dubv_WiO.js"
|
||||
"houseplan-assets/backdrop-pick-CP3QXHX8.js",
|
||||
"houseplan-assets/form-kit.styles-C72G_DR7.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-APP-vRxu.js"
|
||||
],
|
||||
"lazyOnboardingGzipBytes": 33653,
|
||||
"lazyOnboardingGzipBytes": 33662,
|
||||
"lazyLocaleFiles": [
|
||||
"houseplan-assets/de-BmOu9BjZ.js",
|
||||
"houseplan-assets/fr-CrjOPoOt.js"
|
||||
"houseplan-assets/de-CYIvGSeh.js",
|
||||
"houseplan-assets/fr-B3ENjkek.js"
|
||||
],
|
||||
"lazyLocaleGzipBytes": 55391,
|
||||
"lazyLocaleGzipBytes": 55398,
|
||||
"lazyIsometricFiles": [
|
||||
"houseplan-assets/iso-scene-render-Dl-bb0I1.js"
|
||||
"houseplan-assets/iso-scene-render-Dvuggyn7.js"
|
||||
],
|
||||
"lazyIsometricGzipBytes": 17646,
|
||||
"lazyIsometricGzipBytes": 17645,
|
||||
"lazyFurnitureArtFiles": [
|
||||
"houseplan-assets/furniture-plan-art.generated-BtCCINPK.js"
|
||||
"houseplan-assets/furniture-plan-art.generated-BkioCT-s.js"
|
||||
],
|
||||
"lazyFurnitureArtGzipBytes": 16941,
|
||||
"lazyFurnitureArtGzipBytes": 16937,
|
||||
"lazyPdfFiles": [
|
||||
"houseplan-assets/furniture-plan-art.generated-BtCCINPK.js",
|
||||
"houseplan-assets/pdf-export-CKchojXx.js"
|
||||
"houseplan-assets/furniture-plan-art.generated-BkioCT-s.js",
|
||||
"houseplan-assets/pdf-export-p8LcY_0k.js"
|
||||
],
|
||||
"lazyPdfGzipBytes": 126815,
|
||||
"lazyPdfGzipBytes": 126811,
|
||||
"files": [
|
||||
{
|
||||
"path": "houseplan-assets/backdrop-pick-B7vYKXC6.js",
|
||||
"sha256": "a9db54a993239a648689429705bc551cddd573a55233f43a7b234f5fc29880fd",
|
||||
"rawBytes": 74746,
|
||||
"gzipBytes": 24114,
|
||||
"path": "houseplan-assets/backdrop-pick-CP3QXHX8.js",
|
||||
"sha256": "2df667466117f6b4739dfb0c014be1f8c6f8a04052341165331f16cdbdb7e40f",
|
||||
"rawBytes": 74764,
|
||||
"gzipBytes": 24120,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/form-kit.styles-H3_5tau5.js",
|
||||
"houseplan-assets/houseplan-card-DQ-f8iag.js"
|
||||
"houseplan-assets/form-kit.styles-C72G_DR7.js",
|
||||
"houseplan-assets/houseplan-card-BFoRQ37T.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/de-BmOu9BjZ.js",
|
||||
"sha256": "5cd1f14013b525a71579f63181d0137c09fca3b43db4c3b383df0a95a43f245f",
|
||||
"path": "houseplan-assets/de-CYIvGSeh.js",
|
||||
"sha256": "c680bf3116cb468d7722afe44fa54ec1e98d61809fcf7bfeb645d3a4bb43d6ca",
|
||||
"rawBytes": 92513,
|
||||
"gzipBytes": 27937,
|
||||
"gzipBytes": 27941,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/editor-Dv6a9bZA.js",
|
||||
"sha256": "05ee138dc5edbbb7569ffc8b51c11b74c0f50b2d45059903ddd5d8db0981d3b9",
|
||||
"path": "houseplan-assets/editor-ChOU0OWs.js",
|
||||
"sha256": "7d2cb1efdeb67becfb0bf2c532e1993469fce4b540c688ceb9b1f3d9cfbd306b",
|
||||
"rawBytes": 3833,
|
||||
"gzipBytes": 1585,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-DQ-f8iag.js"
|
||||
"houseplan-assets/houseplan-card-BFoRQ37T.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/form-kit.styles-H3_5tau5.js",
|
||||
"sha256": "2c56be2b554188668a545604b39deab838f76a56aaec46d787f7c02a56d9114b",
|
||||
"path": "houseplan-assets/form-kit.styles-C72G_DR7.js",
|
||||
"sha256": "7c3ab450080c56c2e81adfb880a780b80f5b24b636d83ed608372c1276edd615",
|
||||
"rawBytes": 23495,
|
||||
"gzipBytes": 4706,
|
||||
"gzipBytes": 4707,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/fr-CrjOPoOt.js",
|
||||
"sha256": "cb5e502f640d87ecbd21f604c83956e2f99d464d7c484a3189638713794f2d45",
|
||||
"path": "houseplan-assets/fr-B3ENjkek.js",
|
||||
"sha256": "182b6ef58a19fe3299ddcea38abc0b58926c2142fa32a18840fc445b7ba9beb7",
|
||||
"rawBytes": 94824,
|
||||
"gzipBytes": 27454,
|
||||
"gzipBytes": 27457,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/furniture-plan-art.generated-BtCCINPK.js",
|
||||
"sha256": "94664ba81e04d68825731c6724543c77603b863dfaff6b805c69770a7db423f0",
|
||||
"path": "houseplan-assets/furniture-plan-art.generated-BkioCT-s.js",
|
||||
"sha256": "6b57797406757b1a9ed05af64faea3ec0b916acbbfa35878376b31e916cf25b8",
|
||||
"rawBytes": 52033,
|
||||
"gzipBytes": 16941,
|
||||
"gzipBytes": 16937,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/houseplan-card-DQ-f8iag.js",
|
||||
"sha256": "789277efcf2efc947d567079a5cc32da91510b2b1d640d72cd3949d04de3abfd",
|
||||
"path": "houseplan-assets/houseplan-card-BFoRQ37T.js",
|
||||
"sha256": "5e301696dd4f2b314b6a54db2d7a9b27c7d4853086214cc5716e3c48b441e0d4",
|
||||
"rawBytes": 1027208,
|
||||
"gzipBytes": 289049,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": [
|
||||
"houseplan-assets/de-BmOu9BjZ.js",
|
||||
"houseplan-assets/editor-Dv6a9bZA.js",
|
||||
"houseplan-assets/fr-CrjOPoOt.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-BtCCINPK.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-f6__iDbP.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-Dubv_WiO.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-oXNqPfb7.js",
|
||||
"houseplan-assets/iso-scene-render-Dl-bb0I1.js",
|
||||
"houseplan-assets/live-interaction-runtime-CZrM4ltk.js",
|
||||
"houseplan-assets/pdf-export-CKchojXx.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-CNFVmY5j.js"
|
||||
"houseplan-assets/de-CYIvGSeh.js",
|
||||
"houseplan-assets/editor-ChOU0OWs.js",
|
||||
"houseplan-assets/fr-B3ENjkek.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-BkioCT-s.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-CrbIMKPJ.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-APP-vRxu.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-CRnD4UCJ.js",
|
||||
"houseplan-assets/iso-scene-render-Dvuggyn7.js",
|
||||
"houseplan-assets/live-interaction-runtime-qCxhzKxB.js",
|
||||
"houseplan-assets/pdf-export-p8LcY_0k.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-DoMZCfzL.js"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/houseplan-editor-runtime-f6__iDbP.js",
|
||||
"sha256": "9692552c939862a370ff4408d1d3ba9071156bb95338a23a53ed1a7693abff7a",
|
||||
"path": "houseplan-assets/houseplan-editor-runtime-CrbIMKPJ.js",
|
||||
"sha256": "da236f9e9fc65ae513fe117b544f049d4985a3b8edc6816c3de5f1707267fcb6",
|
||||
"rawBytes": 677617,
|
||||
"gzipBytes": 188373,
|
||||
"gzipBytes": 188376,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/backdrop-pick-B7vYKXC6.js",
|
||||
"houseplan-assets/form-kit.styles-H3_5tau5.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-BtCCINPK.js",
|
||||
"houseplan-assets/houseplan-card-DQ-f8iag.js",
|
||||
"houseplan-assets/zigbee-topology-B9uKm6nO.js"
|
||||
"houseplan-assets/backdrop-pick-CP3QXHX8.js",
|
||||
"houseplan-assets/form-kit.styles-C72G_DR7.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-BkioCT-s.js",
|
||||
"houseplan-assets/houseplan-card-BFoRQ37T.js",
|
||||
"houseplan-assets/zigbee-topology-DjaCFgDx.js"
|
||||
],
|
||||
"dynamicImports": [
|
||||
"houseplan-assets/zigbee-topology-runtime-BSSaTbtg.js"
|
||||
"houseplan-assets/zigbee-topology-runtime-g1K5jnto.js"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/houseplan-onboarding-runtime-Dubv_WiO.js",
|
||||
"sha256": "61521cca8c2dca87976a89a52846a1f67dcae4a4edd3db03d07994558390f7a4",
|
||||
"path": "houseplan-assets/houseplan-onboarding-runtime-APP-vRxu.js",
|
||||
"sha256": "187dd35ff1095fad4f94c1f87445cff05417651d904f631e9ed00503da7b85ef",
|
||||
"rawBytes": 15667,
|
||||
"gzipBytes": 4833,
|
||||
"gzipBytes": 4835,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/backdrop-pick-B7vYKXC6.js",
|
||||
"houseplan-assets/form-kit.styles-H3_5tau5.js",
|
||||
"houseplan-assets/houseplan-card-DQ-f8iag.js"
|
||||
"houseplan-assets/backdrop-pick-CP3QXHX8.js",
|
||||
"houseplan-assets/form-kit.styles-C72G_DR7.js",
|
||||
"houseplan-assets/houseplan-card-BFoRQ37T.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/hp-zigbee-topology-overlay-oXNqPfb7.js",
|
||||
"sha256": "33e81d929be152c92eea13ec8f0189ee2f1887dfc082280269989d75c65affbc",
|
||||
"path": "houseplan-assets/hp-zigbee-topology-overlay-CRnD4UCJ.js",
|
||||
"sha256": "1a6b8f6517309e4be645c3119cdfb9512644298d4b7a5b855323a3326d75d5fc",
|
||||
"rawBytes": 10759,
|
||||
"gzipBytes": 3685,
|
||||
"gzipBytes": 3688,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-DQ-f8iag.js",
|
||||
"houseplan-assets/zigbee-topology-B9uKm6nO.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-BSSaTbtg.js"
|
||||
"houseplan-assets/houseplan-card-BFoRQ37T.js",
|
||||
"houseplan-assets/zigbee-topology-DjaCFgDx.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-g1K5jnto.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/iso-scene-render-Dl-bb0I1.js",
|
||||
"sha256": "7847344015d8476b82db958aff0984992ea8753bf7c6129cabe6cad0a31e99a4",
|
||||
"path": "houseplan-assets/iso-scene-render-Dvuggyn7.js",
|
||||
"sha256": "34b73bee880d05afc2090a92751e7c2926cf955f5f7c1a16c8e518cf15d4a170",
|
||||
"rawBytes": 51983,
|
||||
"gzipBytes": 17646,
|
||||
"gzipBytes": 17645,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-DQ-f8iag.js"
|
||||
"houseplan-assets/houseplan-card-BFoRQ37T.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/live-interaction-runtime-CZrM4ltk.js",
|
||||
"sha256": "62f19f36970a3d816fd41f5f5403926f37229fa2a43a0abdafaafc0b28e50c78",
|
||||
"path": "houseplan-assets/live-interaction-runtime-qCxhzKxB.js",
|
||||
"sha256": "0717812ff181966f68b1c9e9fc4b15f8a8e842d6a7038b1b0f2d155dde5c50f4",
|
||||
"rawBytes": 8216,
|
||||
"gzipBytes": 3210,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-DQ-f8iag.js"
|
||||
"houseplan-assets/houseplan-card-BFoRQ37T.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/pdf-export-CKchojXx.js",
|
||||
"sha256": "6014bfc6798f8bd7b79d1a73036360c5c297ac00142d20bfbcc759cdde35a188",
|
||||
"path": "houseplan-assets/pdf-export-p8LcY_0k.js",
|
||||
"sha256": "2d42e31a027fc7e22a0eb1535c4166747b571ae56d340eef894843126618df3c",
|
||||
"rawBytes": 236247,
|
||||
"gzipBytes": 109874,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/furniture-plan-art.generated-BtCCINPK.js",
|
||||
"houseplan-assets/houseplan-card-DQ-f8iag.js"
|
||||
"houseplan-assets/furniture-plan-art.generated-BkioCT-s.js",
|
||||
"houseplan-assets/houseplan-card-BFoRQ37T.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/summary-panel-editor-B2A2srlr.js",
|
||||
"sha256": "6b986ef96de6b8132105e5ef5572e3f538c1ffd871a9f15a384ab96a09a57f10",
|
||||
"path": "houseplan-assets/summary-panel-editor-ExLIonEe.js",
|
||||
"sha256": "a912dbd815ac16a0eec0303796968ed88f74f6c07ac6741f950a76ae8011df0f",
|
||||
"rawBytes": 14862,
|
||||
"gzipBytes": 3426,
|
||||
"gzipBytes": 3429,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/form-kit.styles-H3_5tau5.js",
|
||||
"houseplan-assets/houseplan-card-DQ-f8iag.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-CNFVmY5j.js"
|
||||
"houseplan-assets/form-kit.styles-C72G_DR7.js",
|
||||
"houseplan-assets/houseplan-card-BFoRQ37T.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-DoMZCfzL.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/summary-panel-metrics-CVwO00Ld.js",
|
||||
"sha256": "67ed2a156d44671e25fb58b07b7f277e7ad78637c68bf488a1093ce938158692",
|
||||
"path": "houseplan-assets/summary-panel-metrics-CmThtVNL.js",
|
||||
"sha256": "af36cfcb9585e9680b343191bf10b14c19037ffdf4253e2a033cd1ecf2548e4b",
|
||||
"rawBytes": 2611,
|
||||
"gzipBytes": 1310,
|
||||
"gzipBytes": 1312,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-DQ-f8iag.js"
|
||||
"houseplan-assets/houseplan-card-BFoRQ37T.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/summary-panel-runtime-loaded-CNFVmY5j.js",
|
||||
"sha256": "bfc04f79b55a2e68bc4ac63c67f0a819a97c3a6843b925ef04849480d04ae030",
|
||||
"path": "houseplan-assets/summary-panel-runtime-loaded-DoMZCfzL.js",
|
||||
"sha256": "a12730747e86f60c24882530a108eaf3b62dbb9b86d6137fe0a6b6860e4dbf4f",
|
||||
"rawBytes": 72733,
|
||||
"gzipBytes": 20169,
|
||||
"gzipBytes": 20172,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/form-kit.styles-H3_5tau5.js",
|
||||
"houseplan-assets/houseplan-card-DQ-f8iag.js"
|
||||
"houseplan-assets/form-kit.styles-C72G_DR7.js",
|
||||
"houseplan-assets/houseplan-card-BFoRQ37T.js"
|
||||
],
|
||||
"dynamicImports": [
|
||||
"houseplan-assets/summary-panel-editor-B2A2srlr.js",
|
||||
"houseplan-assets/summary-panel-metrics-CVwO00Ld.js"
|
||||
"houseplan-assets/summary-panel-editor-ExLIonEe.js",
|
||||
"houseplan-assets/summary-panel-metrics-CmThtVNL.js"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/zigbee-topology-B9uKm6nO.js",
|
||||
"sha256": "d0a5cdd1ca75d4cbb2acb8f5b43c60826d49d242adbb112f1a85712b234da853",
|
||||
"path": "houseplan-assets/zigbee-topology-DjaCFgDx.js",
|
||||
"sha256": "2ec980a5b900f748a21333e9f6ef24374f3ee76a2d51087ebe6c3e07e6518a84",
|
||||
"rawBytes": 18962,
|
||||
"gzipBytes": 7430,
|
||||
"gzipBytes": 7434,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-DQ-f8iag.js"
|
||||
"houseplan-assets/houseplan-card-BFoRQ37T.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/zigbee-topology-runtime-BSSaTbtg.js",
|
||||
"sha256": "d90faed7e27ac88f36d55b100ec5cb38e0ce4d74e8ff5cb9953b20c96d61c596",
|
||||
"path": "houseplan-assets/zigbee-topology-runtime-g1K5jnto.js",
|
||||
"sha256": "193033082562387fbb15d13b70ab7b724594157dfe9e521dca15fa5dfcc0baf4",
|
||||
"rawBytes": 3942,
|
||||
"gzipBytes": 1764,
|
||||
"gzipBytes": 1767,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-DQ-f8iag.js",
|
||||
"houseplan-assets/zigbee-topology-B9uKm6nO.js"
|
||||
"houseplan-assets/houseplan-card-BFoRQ37T.js",
|
||||
"houseplan-assets/zigbee-topology-DjaCFgDx.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-card.js",
|
||||
"sha256": "10e93444aa9961ab3d21bdb38d862c0da31cd08330ffaf867cb478c0fd878241",
|
||||
"sha256": "348f41dc485816c7b1d34cdf96d7d1e06033c9cad899d777034df945cfab1abe",
|
||||
"rawBytes": 1205,
|
||||
"gzipBytes": 804,
|
||||
"gzipBytes": 806,
|
||||
"isEntry": true,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-DQ-f8iag.js"
|
||||
"houseplan-assets/houseplan-card-BFoRQ37T.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-panel.js",
|
||||
"sha256": "4503957c0a80246cde7d6fa5b23d9d506c510332310a7b2eecb43fef5986cc1d",
|
||||
"sha256": "7a5c296f6cc90fe5d7f5f731634e56ab192541447ac6fd2be2acc6696c94cc07",
|
||||
"rawBytes": 6165,
|
||||
"gzipBytes": 2327,
|
||||
"gzipBytes": 2329,
|
||||
"isEntry": true,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-DQ-f8iag.js"
|
||||
"houseplan-assets/houseplan-card-BFoRQ37T.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
}
|
||||
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="f0197c844f570e569dd29e057d2fb536e376cdbc937540025ef9ad0582596a32";import{A as e,c as a,s as t,l as i,cG as n,d as s,dC as r,dD as o,cF as l,dE as c,cL as d,cK as p,dF as h,bn as u,bm as m,bo as _,ar as g,ay as b,az as f,dG as v}from"./houseplan-card-DQ-f8iag.js";import{c as w,f as y,C as k}from"./form-kit.styles-H3_5tau5.js";const $=w+y(k,{withSwitch:!1}),x=new WeakSet;let S=null;function M(e){const a=e.renderRoot;if(!a||x.has(a))return;const t=a.ownerDocument??globalThis.document,i=t?.defaultView?.CSSStyleSheet;if(i&&"adoptedStyleSheets"in a)return S||(S=new i,S.replaceSync($)),a.adoptedStyleSheets=[...a.adoptedStyleSheets,S],void x.add(a);if(a.querySelector("style[data-hp-form-kit]"))return void x.add(a);const n=t.createElement("style");n.dataset.hpFormKit="true",n.textContent=$,a.appendChild(n),x.add(a)}function C({title:t,help:i,body:n,id:s}){return a`<section class="hpf-card" data-card=${s??e}>
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="8709935061feeb249124456f030f1896d23f2dab2d516112438258f3414728ea";import{A as e,c as a,s as t,l as i,cG as n,d as s,dC as r,dD as o,cF as l,dE as c,cL as d,cK as p,dF as h,bn as u,bm as m,bo as _,ar as g,ay as b,az as f,dG as v}from"./houseplan-card-BFoRQ37T.js";import{c as w,f as y,C as k}from"./form-kit.styles-C72G_DR7.js";const $=w+y(k,{withSwitch:!1}),x=new WeakSet;let S=null;function M(e){const a=e.renderRoot;if(!a||x.has(a))return;const t=a.ownerDocument??globalThis.document,i=t?.defaultView?.CSSStyleSheet;if(i&&"adoptedStyleSheets"in a)return S||(S=new i,S.replaceSync($)),a.adoptedStyleSheets=[...a.adoptedStyleSheets,S],void x.add(a);if(a.querySelector("style[data-hp-form-kit]"))return void x.add(a);const n=t.createElement("style");n.dataset.hpFormKit="true",n.textContent=$,a.appendChild(n),x.add(a)}function C({title:t,help:i,body:n,id:s}){return a`<section class="hpf-card" data-card=${s??e}>
|
||||
${t?a`<div class="hpf-head"><h3>${t}</h3>${i??e}</div>`:e}
|
||||
<div class="hpf-body">${n}</div>
|
||||
</section>`}function z({title:t,help:i}){return a`<div class="hpf-sub"><h4>${t}</h4>${i??e}</div>`}function L({label:t,htmlFor:i,help:n,control:s,hint:r,error:o}){return a`<div class="hpf-field">
|
||||
@@ -182,7 +182,7 @@ globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="f0197c844f570e569dd29e057d2fb536e376
|
||||
<span class="hpf-label hpf-labelrow"><label for=${n("card-font")}>${r("space.card_font")}</label>${l("space.card_font.help")}</span>
|
||||
${W(o("btn.reset_100"),()=>le(t,{...i,cardFontScale:1}),{disabled:100===d})}
|
||||
</div>
|
||||
${N({min:50,max:300,value:d,unit:"%",ariaLabel:r("space.card_font"),slider:t.rangeInput(50,300,5,d,e=>le(t,{...i,cardFontScale:e/100}),!1,r("space.card_font")),onInput:e=>le(t,{...i,cardFontScale:e/100})})}
|
||||
${N({id:n("card-font"),min:50,max:300,value:d,unit:"%",ariaLabel:r("space.card_font"),slider:t.rangeInput(50,300,5,d,e=>le(t,{...i,cardFontScale:e/100}),!1,r("space.card_font")),onInput:e=>le(t,{...i,cardFontScale:e/100})})}
|
||||
${O("50%","300%")}
|
||||
<p class="hpf-hint">${o("space.card_font_hint")}</p>
|
||||
</div>
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,4 +1,4 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="f0197c844f570e569dd29e057d2fb536e376cdbc937540025ef9ad0582596a32";import{az as e,l as o,aC as t,e7 as s,A as a,e8 as i,e9 as l,ea as n,E as r,c}from"./houseplan-card-DQ-f8iag.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__="8709935061feeb249124456f030f1896d23f2dab2d516112438258f3414728ea";import{az as e,l as o,aC as t,e7 as s,A as a,e8 as i,e9 as l,ea as n,E as r,c}from"./houseplan-card-BFoRQ37T.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
-1
File diff suppressed because one or more lines are too long
+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
+1
-1
@@ -1,4 +1,4 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="f0197c844f570e569dd29e057d2fb536e376cdbc937540025ef9ad0582596a32";import{l as t,bq as s,A as e,aC as o,c as a,h as i,cE as l,cF as h,cG as n,bn as r,cH as c,cM as p,cI as d,cJ as _,cK as u,cL as g,cN as m,cO as f}from"./houseplan-card-DQ-f8iag.js";import{D as b,C as v,E as y,G as w,H as D,I as $,J as S,v as C}from"./backdrop-pick-B7vYKXC6.js";import"./form-kit.styles-H3_5tau5.js";const k="f0197c844f570e569dd29e057d2fb536e376cdbc937540025ef9ad0582596a32";class F{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(i){const l=`${i}.aria`,h=t(this.host.hass,this.host._config?.language);return s(h,i)&&s(h,l)?a`<hp-help data-help-key=${i}
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="8709935061feeb249124456f030f1896d23f2dab2d516112438258f3414728ea";import{l as t,bq as s,A as e,aC as o,c as a,h as i,cE as l,cF as h,cG as n,bn as r,cH as c,cM as p,cI as d,cJ as _,cK as u,cL as g,cN as m,cO as f}from"./houseplan-card-BFoRQ37T.js";import{D as b,C as v,E as y,G as w,H as D,I as $,J as S,v as C}from"./backdrop-pick-CP3QXHX8.js";import"./form-kit.styles-C72G_DR7.js";const k="8709935061feeb249124456f030f1896d23f2dab2d516112438258f3414728ea";class F{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(i){const l=`${i}.aria`,h=t(this.host.hass,this.host._config?.language);return s(h,i)&&s(h,l)?a`<hp-help data-help-key=${i}
|
||||
.text=${o(h,i)} .ariaLabel=${o(h,l)}></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 o=i(e),a=e.settings?.custom_fill&&"object"==typeof e.settings.custom_fill?l(e.settings.custom_fill):null,p="none"===o.fill?{...a||h,a:0}:a;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:o.showBorders,showNames:o.showNames,zeroWallStyle:c(e),displayTouched:!0,hideDecor:o.hideDecor,hideOpenings:o.hideOpenings,roomColor:o.color,roomOpacity:o.opacity,fillMode:"none"===o.fill?"custom":o.fill,customFill:p,glowEnabled:o.glow,bgColor:o.bgColor,bgMode:"static"===e.settings?.bg_mode||"daynight"===e.settings?.bg_mode?e.settings.bg_mode:null,northDeg:r({},e.settings),sunRays:"boolean"==typeof e.settings?.sun_rays?e.settings.sun_rays:null,tempMin:o.tempMin,tempMax:o.tempMax,showLqi:o.showLqi??this.host._config?.show_signal??!0,cardFontScale:o.cardFontScale,labelTemp:o.labelTemp,labelHum:o.labelHum,labelLqi:o.labelLqi,labelLight:o.labelLight,cellCm:Number(e.cell_cm)>0?Number(e.cell_cm):5,cellCmInput:n(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:n(e,this.host._imperial),cellCmTouched:!1,busy:!1},b(this.host,this.host._spaceDialog)}async _pickPlanFile(t){const s=t.target,e=s.files?.[0];if(!e||!this.host._spaceDialog)return;s.value="";const o=await v(e);if("reject"===o.kind)return void this.host._showToast(this.host._t("toast.plan_formats"));if("guard"===o.kind)return void(this.host._backdropGuard=o.state);const a=await y(e,o.ext,e.name);this.host._spaceDialog&&(this.host._spaceDialog={...this.host._spaceDialog,planFile:a})}_renderBackdropGuard(){return w(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}),o=this.host._spaceDialog;return o&&o.planUrl===t&&Number.isFinite(e)&&e>0?(this.host._spaceDialog={...o,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 o=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")}),a=this.host._spaceDialog,i=a?.saved?.find(s=>s.name===t);if(o&&a&&i&&i.url===e.url&&i.modified===e.modified&&!i.used_by.length&&i.url!==a.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 a`<div class="savedplans muted">${this.host._t("space.loading")}</div>`;const s=t.saved||[];if(!s.length)return a`<div class="savedplans muted">${this.host._t("space.no_saved")}</div>`;return a`<div class="savedplans">
|
||||
${s.map(s=>{return a`
|
||||
<div class="savedplan ${s.url===t.planUrl?"cur":""}">
|
||||
+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
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__="f0197c844f570e569dd29e057d2fb536e376cdbc937540025ef9ad0582596a32";import{c as a,A as e}from"./houseplan-card-DQ-f8iag.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-CNFVmY5j.js";import"./form-kit.styles-H3_5tau5.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__="8709935061feeb249124456f030f1896d23f2dab2d516112438258f3414728ea";import{c as a,A as e}from"./houseplan-card-BFoRQ37T.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-DoMZCfzL.js";import"./form-kit.styles-C72G_DR7.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__="f0197c844f570e569dd29e057d2fb536e376cdbc937540025ef9ad0582596a32";import{ed as e,K as t,aX as n,I as i,ab as o,a9 as r,bO as s,bN as a,aW as l,aV as c,aY as d,ee as u,ef as f,bQ as m,eg as g}from"./houseplan-card-DQ-f8iag.js";function v(e){if(!e.registry.authoritative)return null;const t=new Set,n=d(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,d="device"===r?a?.area_id:l?.area_id||c&&e.registry.devices?.[c]?.area_id,u="string"==typeof i.room_id&&i.room_id.length>0&&null===i.area?"":i.area||d||"",f=u&&e.areaToSpace[u]||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,d=_){try{let u=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=d(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;u+=a(v)*_*_/1e4}return u}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=u(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};
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="8709935061feeb249124456f030f1896d23f2dab2d516112438258f3414728ea";import{ed as e,K as t,aX as n,I as i,ab as o,a9 as r,bO as s,bN as a,aW as l,aV as c,aY as d,ee as u,ef as f,bQ as m,eg as g}from"./houseplan-card-BFoRQ37T.js";function v(e){if(!e.registry.authoritative)return null;const t=new Set,n=d(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,d="device"===r?a?.area_id:l?.area_id||c&&e.registry.devices?.[c]?.area_id,u="string"==typeof i.room_id&&i.room_id.length>0&&null===i.area?"":i.area||d||"",f=u&&e.areaToSpace[u]||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,d=_){try{let u=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=d(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;u+=a(v)*_*_/1e4}return u}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=u(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__="f0197c844f570e569dd29e057d2fb536e376cdbc937540025ef9ad0582596a32";import{n as t,b as n}from"./zigbee-topology-B9uKm6nO.js";import{aI as e}from"./houseplan-card-DQ-f8iag.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 m(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 g(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,g=null;const y=new Promise(t=>{u=t}),w=new Promise((t,n)=>{p=t,g=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&&g?.(a("invalid_payload"))},{type:"mqtt/subscribe",topic:`${l}/bridge/response/networkmap`});"function"==typeof f&&b.push(f),await m(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 m(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,g as refreshZ2mTopology,u as subscribeZigbeeTopology,l as zigbeeTopologyRuntimeSnapshot};
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="8709935061feeb249124456f030f1896d23f2dab2d516112438258f3414728ea";import{n as t,b as n}from"./zigbee-topology-DjaCFgDx.js";import{aI as e}from"./houseplan-card-BFoRQ37T.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 m(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 g(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,g=null;const y=new Promise(t=>{u=t}),w=new Promise((t,n)=>{p=t,g=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&&g?.(a("invalid_payload"))},{type:"mqtt/subscribe",topic:`${l}/bridge/response/networkmap`});"function"==typeof f&&b.push(f),await m(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 m(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,g as refreshZ2mTopology,u as subscribeZigbeeTopology,l as zigbeeTopologyRuntimeSnapshot};
|
||||
@@ -1 +1 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="f0197c844f570e569dd29e057d2fb536e376cdbc937540025ef9ad0582596a32";try{await import("./houseplan-assets/houseplan-card-DQ-f8iag.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__="8709935061feeb249124456f030f1896d23f2dab2d516112438258f3414728ea";try{await import("./houseplan-assets/houseplan-card-BFoRQ37T.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
@@ -0,0 +1,131 @@
|
||||
// #600 AC3/К1: сохранённый конфиг после правки через НОВЫЙ UI побайтово
|
||||
// совпадает с конфигом после тех же правок, записанных прямо в состояние
|
||||
// черновика (путь, которым пользовались прежние обработчики и существующие
|
||||
// смоки). Четыре диалога, по одному сценарию правок на каждый; сравнивается
|
||||
// JSON.stringify(_serverCfg) целиком, а не отдельные ключи — сосед, в который
|
||||
// утёк контрол, покраснеет здесь, даже если никто не догадался его проверить.
|
||||
import { launch, checkAll, finish } from './serve.mjs';
|
||||
|
||||
const { page, browser } = await launch({ width: 1280, height: 900 });
|
||||
|
||||
const out = await page.evaluate(async () => {
|
||||
const o = {};
|
||||
const c = window.__card;
|
||||
const sr = () => c.shadowRoot || c.renderRoot;
|
||||
const upd = async () => { c.requestUpdate(); await c.updateComplete; await new Promise((r) => setTimeout(r, 30)); };
|
||||
const settle = async () => { for (let i = 0; i < 6; i++) { await c.updateComplete; await new Promise((r) => setTimeout(r, 40)); } };
|
||||
const q = (kind, sel) => sr().querySelector(`hp-dialog[data-kind="${kind}"]`)?.querySelector(sel);
|
||||
const qa = (kind, sel) => [...(sr().querySelector(`hp-dialog[data-kind="${kind}"]`)?.querySelectorAll(sel) || [])];
|
||||
const input = (el, value) => { el.value = value; el.dispatchEvent(new Event('input', { bubbles: true })); };
|
||||
const change = (el, value) => { if (value !== undefined) el.value = value; el.dispatchEvent(new Event('change', { bubbles: true })); };
|
||||
const radio = (kind, name, value) => { const r = qa(kind, `input[name="${name}"]`).find((x) => x.value === value); r.checked = true; change(r); };
|
||||
const saveViaUi = async (kind) => { q(kind, '.dialog-action-commit [data-hp="dialog-confirm"]').click(); await settle(); };
|
||||
const snapshot = () => JSON.stringify(c._serverCfg);
|
||||
const cfg0 = JSON.parse(JSON.stringify(c._serverCfg));
|
||||
const reset = async () => {
|
||||
c._settingsDialog = null; c._spaceDialog = null; c._markerDialog = null; if (c._roomDialog) c._roomDialogCancel();
|
||||
c._serverCfg = JSON.parse(JSON.stringify(cfg0)); c._cfgEpoch++; c._modelCache = null;
|
||||
c._regSignature = ''; c._maybeRebuildDevices?.(); await upd();
|
||||
};
|
||||
const spId = c._space;
|
||||
const pair = async (name, ui, state) => {
|
||||
await reset(); await ui(); const a = snapshot();
|
||||
await reset(); await state(); const b = snapshot();
|
||||
o[`${name}_uiChangedConfig`] = a !== JSON.stringify(cfg0);
|
||||
o[`${name}_uiEqualsStatePath`] = a === b;
|
||||
if (a !== b) o[`${name}_diff`] = [a.length, b.length, [...a].findIndex((ch, i) => ch !== b[i])];
|
||||
};
|
||||
|
||||
// --- Space -----------------------------------------------------------------
|
||||
await pair('space',
|
||||
async () => {
|
||||
c._setMode('view'); c._openSpaceDialog('edit', spId); await upd();
|
||||
q('space', '#space-show-borders').click(); await upd();
|
||||
radio('space', 'space-fill-mode', 'temp'); await upd();
|
||||
input(q('space', '#space-temp-max'), '27'); await upd();
|
||||
change(q('space', '#space-north-mode'), 'custom'); await upd();
|
||||
input(q('space', '#space-north-deg'), '90'); await upd();
|
||||
input(q('space', '#space-card-font'), '150'); await upd();
|
||||
await saveViaUi('space');
|
||||
},
|
||||
async () => {
|
||||
c._setMode('view'); c._openSpaceDialog('edit', spId); await upd();
|
||||
const d = c._spaceDialog;
|
||||
c._spaceDialog = { ...d, showBorders: !d.showBorders, fillMode: 'temp', tempMax: 27, northMode: 'custom', northDeg: 90, cardFontScale: 1.5 };
|
||||
await upd(); await c._saveSpaceDialog(); await settle();
|
||||
});
|
||||
|
||||
// --- General ---------------------------------------------------------------
|
||||
await pair('general',
|
||||
async () => {
|
||||
c._openSettingsDialog(); await upd();
|
||||
q('settings', '#gs-room-tooltip').click(); await upd();
|
||||
input(qa('settings', '.hpf-card[data-card="fills"] .hpf-colortile')[0].querySelector('.hpf-colortile-meta input'), '33'); await upd();
|
||||
input(q('settings', '#gs-glow-radius'), '4.5'); await upd();
|
||||
radio('settings', 'gs-bg-mode', 'daynight'); await upd();
|
||||
input(q('settings', '#gs-north'), '45'); await upd();
|
||||
await saveViaUi('settings');
|
||||
},
|
||||
async () => {
|
||||
c._openSettingsDialog(); await upd();
|
||||
const d = c._settingsDialog;
|
||||
c._settingsDialog = { ...d, showRoomTooltip: !d.showRoomTooltip, glowRadius: 4.5, bgMode: 'daynight', northDeg: 45,
|
||||
colors: { ...d.colors, light_on: { c: d.colors.light_on.c, a: 0.33 } } };
|
||||
await upd(); await c._saveSettingsDialog(); await settle();
|
||||
});
|
||||
|
||||
// --- Room ------------------------------------------------------------------
|
||||
const roomId = cfg0.spaces.find((s) => s.id === spId).rooms[0].id;
|
||||
await pair('room',
|
||||
async () => {
|
||||
c._setMode('plan'); await upd();
|
||||
c._openRoomEdit(c._curSpaceCfg.rooms.find((r) => r.id === roomId)); await upd();
|
||||
input(q('room', '#room-name'), 'Parity room'); await upd();
|
||||
q('room', '#room-fill-inherit').click(); await upd();
|
||||
radio('room', 'rfill', 'temp'); await upd();
|
||||
input(q('room', '#room-temp-min'), '19'); await upd();
|
||||
input(q('room', '#room-name-scale'), '150'); await upd();
|
||||
await saveViaUi('room');
|
||||
},
|
||||
async () => {
|
||||
c._setMode('plan'); await upd();
|
||||
c._openRoomEdit(c._curSpaceCfg.rooms.find((r) => r.id === roomId)); await upd();
|
||||
c._nameSel = 'Parity room'; c._roomFill = 'temp'; c._roomTempMin = '19'; c._roomNameScale = 1.5;
|
||||
await upd(); c._saveRoomEdit(); await settle();
|
||||
});
|
||||
|
||||
// --- Device ----------------------------------------------------------------
|
||||
const lampId = (c._devices.find((d) => d.id === 'd_light1') || c._devices.find((d) => d.bindingKind === 'device')).id;
|
||||
const lamp = () => c._devices.find((d) => d.id === lampId);
|
||||
await pair('device',
|
||||
async () => {
|
||||
c._setMode('devices'); await upd();
|
||||
c._openMarkerDialog(lamp()); await upd();
|
||||
input(q('marker', '#marker-name'), 'Parity lamp'); await upd();
|
||||
change(q('marker', '#marker-tap-action'), 'toggle'); await upd();
|
||||
q('marker', '#marker-tap-confirm').click(); await upd();
|
||||
radio('marker', 'marker-light-role', 'always'); await upd();
|
||||
radio('marker', 'marker-glow-mode', 'fixed'); await upd();
|
||||
input(q('marker', '#marker-glow-brightness'), '42'); await upd();
|
||||
input(q('marker', '#marker-glow-radius'), '2.5'); await upd();
|
||||
input(q('marker', '#marker-model'), 'M-600'); await upd();
|
||||
input(q('marker', '#marker-angle'), '35'); await upd();
|
||||
await saveViaUi('marker');
|
||||
},
|
||||
async () => {
|
||||
c._setMode('devices'); await upd();
|
||||
c._openMarkerDialog(lamp()); await upd();
|
||||
c._markerDialog = { ...c._markerDialog, name: 'Parity lamp', tapAction: 'toggle', tapActionTouched: true, tapConfirm: true, model: 'M-600', angle: 35 };
|
||||
await upd();
|
||||
c._setMarkerLightRole('always'); await upd();
|
||||
c._setMarkerGlowMode('fixed'); await upd();
|
||||
c._markerDialog = { ...c._markerDialog, glowBrightness: 42, glowBrightnessDrafted: true, glowTouched: true, glowRadius: '2.5' };
|
||||
await upd(); await c._saveMarker(); await settle();
|
||||
});
|
||||
|
||||
await reset();
|
||||
return o;
|
||||
});
|
||||
|
||||
checkAll(Object.fromEntries(Object.entries(out).filter(([k]) => !k.endsWith('_diff'))));
|
||||
await finish(browser, out);
|
||||
Vendored
+141
-141
@@ -1,312 +1,312 @@
|
||||
{
|
||||
"schema": 1,
|
||||
"fingerprint": "f0197c844f570e569dd29e057d2fb536e376cdbc937540025ef9ad0582596a32",
|
||||
"fingerprint": "8709935061feeb249124456f030f1896d23f2dab2d516112438258f3414728ea",
|
||||
"entry": "houseplan-card.js",
|
||||
"panelEntry": "houseplan-panel.js",
|
||||
"initialViewFiles": [
|
||||
"houseplan-assets/houseplan-card-DQ-f8iag.js",
|
||||
"houseplan-assets/houseplan-card-BFoRQ37T.js",
|
||||
"houseplan-card.js"
|
||||
],
|
||||
"initialViewGzipBytes": 289853,
|
||||
"initialViewGzipBytes": 289855,
|
||||
"initialPanelFiles": [
|
||||
"houseplan-assets/houseplan-card-DQ-f8iag.js",
|
||||
"houseplan-assets/houseplan-card-BFoRQ37T.js",
|
||||
"houseplan-panel.js"
|
||||
],
|
||||
"initialPanelGzipBytes": 291376,
|
||||
"initialPanelGzipBytes": 291378,
|
||||
"initialPanelOnlyFiles": [
|
||||
"houseplan-panel.js"
|
||||
],
|
||||
"initialPanelOnlyGzipBytes": 2327,
|
||||
"initialPanelOnlyGzipBytes": 2329,
|
||||
"lazyFiles": [
|
||||
"houseplan-assets/backdrop-pick-B7vYKXC6.js",
|
||||
"houseplan-assets/de-BmOu9BjZ.js",
|
||||
"houseplan-assets/editor-Dv6a9bZA.js",
|
||||
"houseplan-assets/form-kit.styles-H3_5tau5.js",
|
||||
"houseplan-assets/fr-CrjOPoOt.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-BtCCINPK.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-f6__iDbP.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-Dubv_WiO.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-oXNqPfb7.js",
|
||||
"houseplan-assets/iso-scene-render-Dl-bb0I1.js",
|
||||
"houseplan-assets/live-interaction-runtime-CZrM4ltk.js",
|
||||
"houseplan-assets/pdf-export-CKchojXx.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-CNFVmY5j.js",
|
||||
"houseplan-assets/zigbee-topology-B9uKm6nO.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-BSSaTbtg.js"
|
||||
"houseplan-assets/backdrop-pick-CP3QXHX8.js",
|
||||
"houseplan-assets/de-CYIvGSeh.js",
|
||||
"houseplan-assets/editor-ChOU0OWs.js",
|
||||
"houseplan-assets/form-kit.styles-C72G_DR7.js",
|
||||
"houseplan-assets/fr-B3ENjkek.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-BkioCT-s.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-CrbIMKPJ.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-APP-vRxu.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-CRnD4UCJ.js",
|
||||
"houseplan-assets/iso-scene-render-Dvuggyn7.js",
|
||||
"houseplan-assets/live-interaction-runtime-qCxhzKxB.js",
|
||||
"houseplan-assets/pdf-export-p8LcY_0k.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-DoMZCfzL.js",
|
||||
"houseplan-assets/zigbee-topology-DjaCFgDx.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-g1K5jnto.js"
|
||||
],
|
||||
"lazyGzipBytes": 459721,
|
||||
"lazyGzipBytes": 459748,
|
||||
"lazyEditorFiles": [
|
||||
"houseplan-assets/backdrop-pick-B7vYKXC6.js",
|
||||
"houseplan-assets/editor-Dv6a9bZA.js",
|
||||
"houseplan-assets/form-kit.styles-H3_5tau5.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-BtCCINPK.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-f6__iDbP.js",
|
||||
"houseplan-assets/zigbee-topology-B9uKm6nO.js"
|
||||
"houseplan-assets/backdrop-pick-CP3QXHX8.js",
|
||||
"houseplan-assets/editor-ChOU0OWs.js",
|
||||
"houseplan-assets/form-kit.styles-C72G_DR7.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-BkioCT-s.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-CrbIMKPJ.js",
|
||||
"houseplan-assets/zigbee-topology-DjaCFgDx.js"
|
||||
],
|
||||
"lazyEditorGzipBytes": 243149,
|
||||
"lazyEditorGzipBytes": 243159,
|
||||
"lazyOnboardingFiles": [
|
||||
"houseplan-assets/backdrop-pick-B7vYKXC6.js",
|
||||
"houseplan-assets/form-kit.styles-H3_5tau5.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-Dubv_WiO.js"
|
||||
"houseplan-assets/backdrop-pick-CP3QXHX8.js",
|
||||
"houseplan-assets/form-kit.styles-C72G_DR7.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-APP-vRxu.js"
|
||||
],
|
||||
"lazyOnboardingGzipBytes": 33653,
|
||||
"lazyOnboardingGzipBytes": 33662,
|
||||
"lazyLocaleFiles": [
|
||||
"houseplan-assets/de-BmOu9BjZ.js",
|
||||
"houseplan-assets/fr-CrjOPoOt.js"
|
||||
"houseplan-assets/de-CYIvGSeh.js",
|
||||
"houseplan-assets/fr-B3ENjkek.js"
|
||||
],
|
||||
"lazyLocaleGzipBytes": 55391,
|
||||
"lazyLocaleGzipBytes": 55398,
|
||||
"lazyIsometricFiles": [
|
||||
"houseplan-assets/iso-scene-render-Dl-bb0I1.js"
|
||||
"houseplan-assets/iso-scene-render-Dvuggyn7.js"
|
||||
],
|
||||
"lazyIsometricGzipBytes": 17646,
|
||||
"lazyIsometricGzipBytes": 17645,
|
||||
"lazyFurnitureArtFiles": [
|
||||
"houseplan-assets/furniture-plan-art.generated-BtCCINPK.js"
|
||||
"houseplan-assets/furniture-plan-art.generated-BkioCT-s.js"
|
||||
],
|
||||
"lazyFurnitureArtGzipBytes": 16941,
|
||||
"lazyFurnitureArtGzipBytes": 16937,
|
||||
"lazyPdfFiles": [
|
||||
"houseplan-assets/furniture-plan-art.generated-BtCCINPK.js",
|
||||
"houseplan-assets/pdf-export-CKchojXx.js"
|
||||
"houseplan-assets/furniture-plan-art.generated-BkioCT-s.js",
|
||||
"houseplan-assets/pdf-export-p8LcY_0k.js"
|
||||
],
|
||||
"lazyPdfGzipBytes": 126815,
|
||||
"lazyPdfGzipBytes": 126811,
|
||||
"files": [
|
||||
{
|
||||
"path": "houseplan-assets/backdrop-pick-B7vYKXC6.js",
|
||||
"sha256": "a9db54a993239a648689429705bc551cddd573a55233f43a7b234f5fc29880fd",
|
||||
"rawBytes": 74746,
|
||||
"gzipBytes": 24114,
|
||||
"path": "houseplan-assets/backdrop-pick-CP3QXHX8.js",
|
||||
"sha256": "2df667466117f6b4739dfb0c014be1f8c6f8a04052341165331f16cdbdb7e40f",
|
||||
"rawBytes": 74764,
|
||||
"gzipBytes": 24120,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/form-kit.styles-H3_5tau5.js",
|
||||
"houseplan-assets/houseplan-card-DQ-f8iag.js"
|
||||
"houseplan-assets/form-kit.styles-C72G_DR7.js",
|
||||
"houseplan-assets/houseplan-card-BFoRQ37T.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/de-BmOu9BjZ.js",
|
||||
"sha256": "5cd1f14013b525a71579f63181d0137c09fca3b43db4c3b383df0a95a43f245f",
|
||||
"path": "houseplan-assets/de-CYIvGSeh.js",
|
||||
"sha256": "c680bf3116cb468d7722afe44fa54ec1e98d61809fcf7bfeb645d3a4bb43d6ca",
|
||||
"rawBytes": 92513,
|
||||
"gzipBytes": 27937,
|
||||
"gzipBytes": 27941,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/editor-Dv6a9bZA.js",
|
||||
"sha256": "05ee138dc5edbbb7569ffc8b51c11b74c0f50b2d45059903ddd5d8db0981d3b9",
|
||||
"path": "houseplan-assets/editor-ChOU0OWs.js",
|
||||
"sha256": "7d2cb1efdeb67becfb0bf2c532e1993469fce4b540c688ceb9b1f3d9cfbd306b",
|
||||
"rawBytes": 3833,
|
||||
"gzipBytes": 1585,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-DQ-f8iag.js"
|
||||
"houseplan-assets/houseplan-card-BFoRQ37T.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/form-kit.styles-H3_5tau5.js",
|
||||
"sha256": "2c56be2b554188668a545604b39deab838f76a56aaec46d787f7c02a56d9114b",
|
||||
"path": "houseplan-assets/form-kit.styles-C72G_DR7.js",
|
||||
"sha256": "7c3ab450080c56c2e81adfb880a780b80f5b24b636d83ed608372c1276edd615",
|
||||
"rawBytes": 23495,
|
||||
"gzipBytes": 4706,
|
||||
"gzipBytes": 4707,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/fr-CrjOPoOt.js",
|
||||
"sha256": "cb5e502f640d87ecbd21f604c83956e2f99d464d7c484a3189638713794f2d45",
|
||||
"path": "houseplan-assets/fr-B3ENjkek.js",
|
||||
"sha256": "182b6ef58a19fe3299ddcea38abc0b58926c2142fa32a18840fc445b7ba9beb7",
|
||||
"rawBytes": 94824,
|
||||
"gzipBytes": 27454,
|
||||
"gzipBytes": 27457,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/furniture-plan-art.generated-BtCCINPK.js",
|
||||
"sha256": "94664ba81e04d68825731c6724543c77603b863dfaff6b805c69770a7db423f0",
|
||||
"path": "houseplan-assets/furniture-plan-art.generated-BkioCT-s.js",
|
||||
"sha256": "6b57797406757b1a9ed05af64faea3ec0b916acbbfa35878376b31e916cf25b8",
|
||||
"rawBytes": 52033,
|
||||
"gzipBytes": 16941,
|
||||
"gzipBytes": 16937,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/houseplan-card-DQ-f8iag.js",
|
||||
"sha256": "789277efcf2efc947d567079a5cc32da91510b2b1d640d72cd3949d04de3abfd",
|
||||
"path": "houseplan-assets/houseplan-card-BFoRQ37T.js",
|
||||
"sha256": "5e301696dd4f2b314b6a54db2d7a9b27c7d4853086214cc5716e3c48b441e0d4",
|
||||
"rawBytes": 1027208,
|
||||
"gzipBytes": 289049,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": [
|
||||
"houseplan-assets/de-BmOu9BjZ.js",
|
||||
"houseplan-assets/editor-Dv6a9bZA.js",
|
||||
"houseplan-assets/fr-CrjOPoOt.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-BtCCINPK.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-f6__iDbP.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-Dubv_WiO.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-oXNqPfb7.js",
|
||||
"houseplan-assets/iso-scene-render-Dl-bb0I1.js",
|
||||
"houseplan-assets/live-interaction-runtime-CZrM4ltk.js",
|
||||
"houseplan-assets/pdf-export-CKchojXx.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-CNFVmY5j.js"
|
||||
"houseplan-assets/de-CYIvGSeh.js",
|
||||
"houseplan-assets/editor-ChOU0OWs.js",
|
||||
"houseplan-assets/fr-B3ENjkek.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-BkioCT-s.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-CrbIMKPJ.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-APP-vRxu.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-CRnD4UCJ.js",
|
||||
"houseplan-assets/iso-scene-render-Dvuggyn7.js",
|
||||
"houseplan-assets/live-interaction-runtime-qCxhzKxB.js",
|
||||
"houseplan-assets/pdf-export-p8LcY_0k.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-DoMZCfzL.js"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/houseplan-editor-runtime-f6__iDbP.js",
|
||||
"sha256": "9692552c939862a370ff4408d1d3ba9071156bb95338a23a53ed1a7693abff7a",
|
||||
"path": "houseplan-assets/houseplan-editor-runtime-CrbIMKPJ.js",
|
||||
"sha256": "da236f9e9fc65ae513fe117b544f049d4985a3b8edc6816c3de5f1707267fcb6",
|
||||
"rawBytes": 677617,
|
||||
"gzipBytes": 188373,
|
||||
"gzipBytes": 188376,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/backdrop-pick-B7vYKXC6.js",
|
||||
"houseplan-assets/form-kit.styles-H3_5tau5.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-BtCCINPK.js",
|
||||
"houseplan-assets/houseplan-card-DQ-f8iag.js",
|
||||
"houseplan-assets/zigbee-topology-B9uKm6nO.js"
|
||||
"houseplan-assets/backdrop-pick-CP3QXHX8.js",
|
||||
"houseplan-assets/form-kit.styles-C72G_DR7.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-BkioCT-s.js",
|
||||
"houseplan-assets/houseplan-card-BFoRQ37T.js",
|
||||
"houseplan-assets/zigbee-topology-DjaCFgDx.js"
|
||||
],
|
||||
"dynamicImports": [
|
||||
"houseplan-assets/zigbee-topology-runtime-BSSaTbtg.js"
|
||||
"houseplan-assets/zigbee-topology-runtime-g1K5jnto.js"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/houseplan-onboarding-runtime-Dubv_WiO.js",
|
||||
"sha256": "61521cca8c2dca87976a89a52846a1f67dcae4a4edd3db03d07994558390f7a4",
|
||||
"path": "houseplan-assets/houseplan-onboarding-runtime-APP-vRxu.js",
|
||||
"sha256": "187dd35ff1095fad4f94c1f87445cff05417651d904f631e9ed00503da7b85ef",
|
||||
"rawBytes": 15667,
|
||||
"gzipBytes": 4833,
|
||||
"gzipBytes": 4835,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/backdrop-pick-B7vYKXC6.js",
|
||||
"houseplan-assets/form-kit.styles-H3_5tau5.js",
|
||||
"houseplan-assets/houseplan-card-DQ-f8iag.js"
|
||||
"houseplan-assets/backdrop-pick-CP3QXHX8.js",
|
||||
"houseplan-assets/form-kit.styles-C72G_DR7.js",
|
||||
"houseplan-assets/houseplan-card-BFoRQ37T.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/hp-zigbee-topology-overlay-oXNqPfb7.js",
|
||||
"sha256": "33e81d929be152c92eea13ec8f0189ee2f1887dfc082280269989d75c65affbc",
|
||||
"path": "houseplan-assets/hp-zigbee-topology-overlay-CRnD4UCJ.js",
|
||||
"sha256": "1a6b8f6517309e4be645c3119cdfb9512644298d4b7a5b855323a3326d75d5fc",
|
||||
"rawBytes": 10759,
|
||||
"gzipBytes": 3685,
|
||||
"gzipBytes": 3688,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-DQ-f8iag.js",
|
||||
"houseplan-assets/zigbee-topology-B9uKm6nO.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-BSSaTbtg.js"
|
||||
"houseplan-assets/houseplan-card-BFoRQ37T.js",
|
||||
"houseplan-assets/zigbee-topology-DjaCFgDx.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-g1K5jnto.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/iso-scene-render-Dl-bb0I1.js",
|
||||
"sha256": "7847344015d8476b82db958aff0984992ea8753bf7c6129cabe6cad0a31e99a4",
|
||||
"path": "houseplan-assets/iso-scene-render-Dvuggyn7.js",
|
||||
"sha256": "34b73bee880d05afc2090a92751e7c2926cf955f5f7c1a16c8e518cf15d4a170",
|
||||
"rawBytes": 51983,
|
||||
"gzipBytes": 17646,
|
||||
"gzipBytes": 17645,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-DQ-f8iag.js"
|
||||
"houseplan-assets/houseplan-card-BFoRQ37T.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/live-interaction-runtime-CZrM4ltk.js",
|
||||
"sha256": "62f19f36970a3d816fd41f5f5403926f37229fa2a43a0abdafaafc0b28e50c78",
|
||||
"path": "houseplan-assets/live-interaction-runtime-qCxhzKxB.js",
|
||||
"sha256": "0717812ff181966f68b1c9e9fc4b15f8a8e842d6a7038b1b0f2d155dde5c50f4",
|
||||
"rawBytes": 8216,
|
||||
"gzipBytes": 3210,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-DQ-f8iag.js"
|
||||
"houseplan-assets/houseplan-card-BFoRQ37T.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/pdf-export-CKchojXx.js",
|
||||
"sha256": "6014bfc6798f8bd7b79d1a73036360c5c297ac00142d20bfbcc759cdde35a188",
|
||||
"path": "houseplan-assets/pdf-export-p8LcY_0k.js",
|
||||
"sha256": "2d42e31a027fc7e22a0eb1535c4166747b571ae56d340eef894843126618df3c",
|
||||
"rawBytes": 236247,
|
||||
"gzipBytes": 109874,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/furniture-plan-art.generated-BtCCINPK.js",
|
||||
"houseplan-assets/houseplan-card-DQ-f8iag.js"
|
||||
"houseplan-assets/furniture-plan-art.generated-BkioCT-s.js",
|
||||
"houseplan-assets/houseplan-card-BFoRQ37T.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/summary-panel-editor-B2A2srlr.js",
|
||||
"sha256": "6b986ef96de6b8132105e5ef5572e3f538c1ffd871a9f15a384ab96a09a57f10",
|
||||
"path": "houseplan-assets/summary-panel-editor-ExLIonEe.js",
|
||||
"sha256": "a912dbd815ac16a0eec0303796968ed88f74f6c07ac6741f950a76ae8011df0f",
|
||||
"rawBytes": 14862,
|
||||
"gzipBytes": 3426,
|
||||
"gzipBytes": 3429,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/form-kit.styles-H3_5tau5.js",
|
||||
"houseplan-assets/houseplan-card-DQ-f8iag.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-CNFVmY5j.js"
|
||||
"houseplan-assets/form-kit.styles-C72G_DR7.js",
|
||||
"houseplan-assets/houseplan-card-BFoRQ37T.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-DoMZCfzL.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/summary-panel-metrics-CVwO00Ld.js",
|
||||
"sha256": "67ed2a156d44671e25fb58b07b7f277e7ad78637c68bf488a1093ce938158692",
|
||||
"path": "houseplan-assets/summary-panel-metrics-CmThtVNL.js",
|
||||
"sha256": "af36cfcb9585e9680b343191bf10b14c19037ffdf4253e2a033cd1ecf2548e4b",
|
||||
"rawBytes": 2611,
|
||||
"gzipBytes": 1310,
|
||||
"gzipBytes": 1312,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-DQ-f8iag.js"
|
||||
"houseplan-assets/houseplan-card-BFoRQ37T.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/summary-panel-runtime-loaded-CNFVmY5j.js",
|
||||
"sha256": "bfc04f79b55a2e68bc4ac63c67f0a819a97c3a6843b925ef04849480d04ae030",
|
||||
"path": "houseplan-assets/summary-panel-runtime-loaded-DoMZCfzL.js",
|
||||
"sha256": "a12730747e86f60c24882530a108eaf3b62dbb9b86d6137fe0a6b6860e4dbf4f",
|
||||
"rawBytes": 72733,
|
||||
"gzipBytes": 20169,
|
||||
"gzipBytes": 20172,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/form-kit.styles-H3_5tau5.js",
|
||||
"houseplan-assets/houseplan-card-DQ-f8iag.js"
|
||||
"houseplan-assets/form-kit.styles-C72G_DR7.js",
|
||||
"houseplan-assets/houseplan-card-BFoRQ37T.js"
|
||||
],
|
||||
"dynamicImports": [
|
||||
"houseplan-assets/summary-panel-editor-B2A2srlr.js",
|
||||
"houseplan-assets/summary-panel-metrics-CVwO00Ld.js"
|
||||
"houseplan-assets/summary-panel-editor-ExLIonEe.js",
|
||||
"houseplan-assets/summary-panel-metrics-CmThtVNL.js"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/zigbee-topology-B9uKm6nO.js",
|
||||
"sha256": "d0a5cdd1ca75d4cbb2acb8f5b43c60826d49d242adbb112f1a85712b234da853",
|
||||
"path": "houseplan-assets/zigbee-topology-DjaCFgDx.js",
|
||||
"sha256": "2ec980a5b900f748a21333e9f6ef24374f3ee76a2d51087ebe6c3e07e6518a84",
|
||||
"rawBytes": 18962,
|
||||
"gzipBytes": 7430,
|
||||
"gzipBytes": 7434,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-DQ-f8iag.js"
|
||||
"houseplan-assets/houseplan-card-BFoRQ37T.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/zigbee-topology-runtime-BSSaTbtg.js",
|
||||
"sha256": "d90faed7e27ac88f36d55b100ec5cb38e0ce4d74e8ff5cb9953b20c96d61c596",
|
||||
"path": "houseplan-assets/zigbee-topology-runtime-g1K5jnto.js",
|
||||
"sha256": "193033082562387fbb15d13b70ab7b724594157dfe9e521dca15fa5dfcc0baf4",
|
||||
"rawBytes": 3942,
|
||||
"gzipBytes": 1764,
|
||||
"gzipBytes": 1767,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-DQ-f8iag.js",
|
||||
"houseplan-assets/zigbee-topology-B9uKm6nO.js"
|
||||
"houseplan-assets/houseplan-card-BFoRQ37T.js",
|
||||
"houseplan-assets/zigbee-topology-DjaCFgDx.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-card.js",
|
||||
"sha256": "10e93444aa9961ab3d21bdb38d862c0da31cd08330ffaf867cb478c0fd878241",
|
||||
"sha256": "348f41dc485816c7b1d34cdf96d7d1e06033c9cad899d777034df945cfab1abe",
|
||||
"rawBytes": 1205,
|
||||
"gzipBytes": 804,
|
||||
"gzipBytes": 806,
|
||||
"isEntry": true,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-DQ-f8iag.js"
|
||||
"houseplan-assets/houseplan-card-BFoRQ37T.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-panel.js",
|
||||
"sha256": "4503957c0a80246cde7d6fa5b23d9d506c510332310a7b2eecb43fef5986cc1d",
|
||||
"sha256": "7a5c296f6cc90fe5d7f5f731634e56ab192541447ac6fd2be2acc6696c94cc07",
|
||||
"rawBytes": 6165,
|
||||
"gzipBytes": 2327,
|
||||
"gzipBytes": 2329,
|
||||
"isEntry": true,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-DQ-f8iag.js"
|
||||
"houseplan-assets/houseplan-card-BFoRQ37T.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
}
|
||||
|
||||
Vendored
+2
-2
@@ -1,4 +1,4 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="f0197c844f570e569dd29e057d2fb536e376cdbc937540025ef9ad0582596a32";import{A as e,c as a,s as t,l as i,cG as n,d as s,dC as r,dD as o,cF as l,dE as c,cL as d,cK as p,dF as h,bn as u,bm as m,bo as _,ar as g,ay as b,az as f,dG as v}from"./houseplan-card-DQ-f8iag.js";import{c as w,f as y,C as k}from"./form-kit.styles-H3_5tau5.js";const $=w+y(k,{withSwitch:!1}),x=new WeakSet;let S=null;function M(e){const a=e.renderRoot;if(!a||x.has(a))return;const t=a.ownerDocument??globalThis.document,i=t?.defaultView?.CSSStyleSheet;if(i&&"adoptedStyleSheets"in a)return S||(S=new i,S.replaceSync($)),a.adoptedStyleSheets=[...a.adoptedStyleSheets,S],void x.add(a);if(a.querySelector("style[data-hp-form-kit]"))return void x.add(a);const n=t.createElement("style");n.dataset.hpFormKit="true",n.textContent=$,a.appendChild(n),x.add(a)}function C({title:t,help:i,body:n,id:s}){return a`<section class="hpf-card" data-card=${s??e}>
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="8709935061feeb249124456f030f1896d23f2dab2d516112438258f3414728ea";import{A as e,c as a,s as t,l as i,cG as n,d as s,dC as r,dD as o,cF as l,dE as c,cL as d,cK as p,dF as h,bn as u,bm as m,bo as _,ar as g,ay as b,az as f,dG as v}from"./houseplan-card-BFoRQ37T.js";import{c as w,f as y,C as k}from"./form-kit.styles-C72G_DR7.js";const $=w+y(k,{withSwitch:!1}),x=new WeakSet;let S=null;function M(e){const a=e.renderRoot;if(!a||x.has(a))return;const t=a.ownerDocument??globalThis.document,i=t?.defaultView?.CSSStyleSheet;if(i&&"adoptedStyleSheets"in a)return S||(S=new i,S.replaceSync($)),a.adoptedStyleSheets=[...a.adoptedStyleSheets,S],void x.add(a);if(a.querySelector("style[data-hp-form-kit]"))return void x.add(a);const n=t.createElement("style");n.dataset.hpFormKit="true",n.textContent=$,a.appendChild(n),x.add(a)}function C({title:t,help:i,body:n,id:s}){return a`<section class="hpf-card" data-card=${s??e}>
|
||||
${t?a`<div class="hpf-head"><h3>${t}</h3>${i??e}</div>`:e}
|
||||
<div class="hpf-body">${n}</div>
|
||||
</section>`}function z({title:t,help:i}){return a`<div class="hpf-sub"><h4>${t}</h4>${i??e}</div>`}function L({label:t,htmlFor:i,help:n,control:s,hint:r,error:o}){return a`<div class="hpf-field">
|
||||
@@ -182,7 +182,7 @@ globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="f0197c844f570e569dd29e057d2fb536e376
|
||||
<span class="hpf-label hpf-labelrow"><label for=${n("card-font")}>${r("space.card_font")}</label>${l("space.card_font.help")}</span>
|
||||
${W(o("btn.reset_100"),()=>le(t,{...i,cardFontScale:1}),{disabled:100===d})}
|
||||
</div>
|
||||
${N({min:50,max:300,value:d,unit:"%",ariaLabel:r("space.card_font"),slider:t.rangeInput(50,300,5,d,e=>le(t,{...i,cardFontScale:e/100}),!1,r("space.card_font")),onInput:e=>le(t,{...i,cardFontScale:e/100})})}
|
||||
${N({id:n("card-font"),min:50,max:300,value:d,unit:"%",ariaLabel:r("space.card_font"),slider:t.rangeInput(50,300,5,d,e=>le(t,{...i,cardFontScale:e/100}),!1,r("space.card_font")),onInput:e=>le(t,{...i,cardFontScale:e/100})})}
|
||||
${O("50%","300%")}
|
||||
<p class="hpf-hint">${o("space.card_font_hint")}</p>
|
||||
</div>
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,4 +1,4 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="f0197c844f570e569dd29e057d2fb536e376cdbc937540025ef9ad0582596a32";import{az as e,l as o,aC as t,e7 as s,A as a,e8 as i,e9 as l,ea as n,E as r,c}from"./houseplan-card-DQ-f8iag.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__="8709935061feeb249124456f030f1896d23f2dab2d516112438258f3414728ea";import{az as e,l as o,aC as t,e7 as s,A as a,e8 as i,e9 as l,ea as n,E as r,c}from"./houseplan-card-BFoRQ37T.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
-1
File diff suppressed because one or more lines are too long
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
+1
-1
@@ -1,4 +1,4 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="f0197c844f570e569dd29e057d2fb536e376cdbc937540025ef9ad0582596a32";import{l as t,bq as s,A as e,aC as o,c as a,h as i,cE as l,cF as h,cG as n,bn as r,cH as c,cM as p,cI as d,cJ as _,cK as u,cL as g,cN as m,cO as f}from"./houseplan-card-DQ-f8iag.js";import{D as b,C as v,E as y,G as w,H as D,I as $,J as S,v as C}from"./backdrop-pick-B7vYKXC6.js";import"./form-kit.styles-H3_5tau5.js";const k="f0197c844f570e569dd29e057d2fb536e376cdbc937540025ef9ad0582596a32";class F{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(i){const l=`${i}.aria`,h=t(this.host.hass,this.host._config?.language);return s(h,i)&&s(h,l)?a`<hp-help data-help-key=${i}
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="8709935061feeb249124456f030f1896d23f2dab2d516112438258f3414728ea";import{l as t,bq as s,A as e,aC as o,c as a,h as i,cE as l,cF as h,cG as n,bn as r,cH as c,cM as p,cI as d,cJ as _,cK as u,cL as g,cN as m,cO as f}from"./houseplan-card-BFoRQ37T.js";import{D as b,C as v,E as y,G as w,H as D,I as $,J as S,v as C}from"./backdrop-pick-CP3QXHX8.js";import"./form-kit.styles-C72G_DR7.js";const k="8709935061feeb249124456f030f1896d23f2dab2d516112438258f3414728ea";class F{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(i){const l=`${i}.aria`,h=t(this.host.hass,this.host._config?.language);return s(h,i)&&s(h,l)?a`<hp-help data-help-key=${i}
|
||||
.text=${o(h,i)} .ariaLabel=${o(h,l)}></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 o=i(e),a=e.settings?.custom_fill&&"object"==typeof e.settings.custom_fill?l(e.settings.custom_fill):null,p="none"===o.fill?{...a||h,a:0}:a;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:o.showBorders,showNames:o.showNames,zeroWallStyle:c(e),displayTouched:!0,hideDecor:o.hideDecor,hideOpenings:o.hideOpenings,roomColor:o.color,roomOpacity:o.opacity,fillMode:"none"===o.fill?"custom":o.fill,customFill:p,glowEnabled:o.glow,bgColor:o.bgColor,bgMode:"static"===e.settings?.bg_mode||"daynight"===e.settings?.bg_mode?e.settings.bg_mode:null,northDeg:r({},e.settings),sunRays:"boolean"==typeof e.settings?.sun_rays?e.settings.sun_rays:null,tempMin:o.tempMin,tempMax:o.tempMax,showLqi:o.showLqi??this.host._config?.show_signal??!0,cardFontScale:o.cardFontScale,labelTemp:o.labelTemp,labelHum:o.labelHum,labelLqi:o.labelLqi,labelLight:o.labelLight,cellCm:Number(e.cell_cm)>0?Number(e.cell_cm):5,cellCmInput:n(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:n(e,this.host._imperial),cellCmTouched:!1,busy:!1},b(this.host,this.host._spaceDialog)}async _pickPlanFile(t){const s=t.target,e=s.files?.[0];if(!e||!this.host._spaceDialog)return;s.value="";const o=await v(e);if("reject"===o.kind)return void this.host._showToast(this.host._t("toast.plan_formats"));if("guard"===o.kind)return void(this.host._backdropGuard=o.state);const a=await y(e,o.ext,e.name);this.host._spaceDialog&&(this.host._spaceDialog={...this.host._spaceDialog,planFile:a})}_renderBackdropGuard(){return w(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}),o=this.host._spaceDialog;return o&&o.planUrl===t&&Number.isFinite(e)&&e>0?(this.host._spaceDialog={...o,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 o=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")}),a=this.host._spaceDialog,i=a?.saved?.find(s=>s.name===t);if(o&&a&&i&&i.url===e.url&&i.modified===e.modified&&!i.used_by.length&&i.url!==a.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 a`<div class="savedplans muted">${this.host._t("space.loading")}</div>`;const s=t.saved||[];if(!s.length)return a`<div class="savedplans muted">${this.host._t("space.no_saved")}</div>`;return a`<div class="savedplans">
|
||||
${s.map(s=>{return a`
|
||||
<div class="savedplan ${s.url===t.planUrl?"cur":""}">
|
||||
+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
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__="f0197c844f570e569dd29e057d2fb536e376cdbc937540025ef9ad0582596a32";import{c as a,A as e}from"./houseplan-card-DQ-f8iag.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-CNFVmY5j.js";import"./form-kit.styles-H3_5tau5.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__="8709935061feeb249124456f030f1896d23f2dab2d516112438258f3414728ea";import{c as a,A as e}from"./houseplan-card-BFoRQ37T.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-DoMZCfzL.js";import"./form-kit.styles-C72G_DR7.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__="f0197c844f570e569dd29e057d2fb536e376cdbc937540025ef9ad0582596a32";import{ed as e,K as t,aX as n,I as i,ab as o,a9 as r,bO as s,bN as a,aW as l,aV as c,aY as d,ee as u,ef as f,bQ as m,eg as g}from"./houseplan-card-DQ-f8iag.js";function v(e){if(!e.registry.authoritative)return null;const t=new Set,n=d(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,d="device"===r?a?.area_id:l?.area_id||c&&e.registry.devices?.[c]?.area_id,u="string"==typeof i.room_id&&i.room_id.length>0&&null===i.area?"":i.area||d||"",f=u&&e.areaToSpace[u]||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,d=_){try{let u=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=d(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;u+=a(v)*_*_/1e4}return u}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=u(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};
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="8709935061feeb249124456f030f1896d23f2dab2d516112438258f3414728ea";import{ed as e,K as t,aX as n,I as i,ab as o,a9 as r,bO as s,bN as a,aW as l,aV as c,aY as d,ee as u,ef as f,bQ as m,eg as g}from"./houseplan-card-BFoRQ37T.js";function v(e){if(!e.registry.authoritative)return null;const t=new Set,n=d(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,d="device"===r?a?.area_id:l?.area_id||c&&e.registry.devices?.[c]?.area_id,u="string"==typeof i.room_id&&i.room_id.length>0&&null===i.area?"":i.area||d||"",f=u&&e.areaToSpace[u]||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,d=_){try{let u=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=d(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;u+=a(v)*_*_/1e4}return u}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=u(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__="f0197c844f570e569dd29e057d2fb536e376cdbc937540025ef9ad0582596a32";import{n as t,b as n}from"./zigbee-topology-B9uKm6nO.js";import{aI as e}from"./houseplan-card-DQ-f8iag.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 m(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 g(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,g=null;const y=new Promise(t=>{u=t}),w=new Promise((t,n)=>{p=t,g=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&&g?.(a("invalid_payload"))},{type:"mqtt/subscribe",topic:`${l}/bridge/response/networkmap`});"function"==typeof f&&b.push(f),await m(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 m(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,g as refreshZ2mTopology,u as subscribeZigbeeTopology,l as zigbeeTopologyRuntimeSnapshot};
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="8709935061feeb249124456f030f1896d23f2dab2d516112438258f3414728ea";import{n as t,b as n}from"./zigbee-topology-DjaCFgDx.js";import{aI as e}from"./houseplan-card-BFoRQ37T.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 m(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 g(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,g=null;const y=new Promise(t=>{u=t}),w=new Promise((t,n)=>{p=t,g=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&&g?.(a("invalid_payload"))},{type:"mqtt/subscribe",topic:`${l}/bridge/response/networkmap`});"function"==typeof f&&b.push(f),await m(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 m(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,g as refreshZ2mTopology,u as subscribeZigbeeTopology,l as zigbeeTopologyRuntimeSnapshot};
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="f0197c844f570e569dd29e057d2fb536e376cdbc937540025ef9ad0582596a32";try{await import("./houseplan-assets/houseplan-card-DQ-f8iag.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__="8709935061feeb249124456f030f1896d23f2dab2d516112438258f3414728ea";try{await import("./houseplan-assets/houseplan-card-BFoRQ37T.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
@@ -423,7 +423,7 @@ function renderRoomCards(port: SpaceFormPort, d: SpaceDialogState, id: (n: strin
|
||||
${textLink(st('btn.reset_100'), () => set(port, { ...d, cardFontScale: 1 }), { disabled: pct === 100 })}
|
||||
</div>
|
||||
${rangeLine({
|
||||
min: 50, max: 300, step: 5, value: pct, unit: '%', ariaLabel: t('space.card_font'),
|
||||
id: id('card-font'), min: 50, max: 300, step: 5, value: pct, unit: '%', ariaLabel: t('space.card_font'),
|
||||
slider: port.rangeInput(50, 300, 5, pct, (n) => set(port, { ...d, cardFontScale: n / 100 }), false, t('space.card_font')),
|
||||
onInput: (n) => set(port, { ...d, cardFontScale: n / 100 }),
|
||||
})}
|
||||
|
||||
Reference in New Issue
Block a user