mirror of
https://github.com/Matysh/houseplan-card
synced 2026-09-29 03:09:36 +00:00
Print the plan a third larger and drop the numbered dimension column
The A4 export spent a whole step of the scale series on the "Internal dimensions" column beside the drawing: a ten-metre house printed 1:100 landscape on a quarter of the sheet while the same plan fits 1:75 upright. The column bought little — "R1" takes as much room beside the wall as "2.31m" does — and it was read separately from the drawing. The column is gone. A value with no free lane beside its own wall is simply not printed; the rectangular rule became the general one. In-plan type drops to three quarters of its former size (dimensions 5.25 pt, areas 6 pt, names 6.75/5.25 pt) so the larger drawing is not crowded by labels that do not scale with it. On the owner's file the sheet goes from 1:100 landscape to 1:75 upright and prints 37 values inside the plan against 35 before; the cost is about seven short values (0.41-1.13 m) that no longer appear anywhere. Issue: #530 User-Visible: yes
This commit is contained in:
Vendored
+143
-143
@@ -1,309 +1,309 @@
|
||||
{
|
||||
"schema": 1,
|
||||
"fingerprint": "b47c3e03a9479551812b6a9233e3795cc51fb519726920a5969b4c9233f92370",
|
||||
"fingerprint": "dc3d46c4e6364ac253af4a77471ef78d9e3660ff8ef53d71db496f0d1810b107",
|
||||
"entry": "houseplan-card.js",
|
||||
"panelEntry": "houseplan-panel.js",
|
||||
"initialViewFiles": [
|
||||
"houseplan-assets/houseplan-card-YE40fvv1.js",
|
||||
"houseplan-assets/houseplan-card-DF8Mj-Od.js",
|
||||
"houseplan-card.js"
|
||||
],
|
||||
"initialViewGzipBytes": 287286,
|
||||
"initialViewGzipBytes": 287241,
|
||||
"initialPanelFiles": [
|
||||
"houseplan-assets/houseplan-card-YE40fvv1.js",
|
||||
"houseplan-assets/houseplan-card-DF8Mj-Od.js",
|
||||
"houseplan-card.js",
|
||||
"houseplan-panel.js"
|
||||
],
|
||||
"initialPanelGzipBytes": 289591,
|
||||
"initialPanelGzipBytes": 289545,
|
||||
"initialPanelOnlyFiles": [
|
||||
"houseplan-panel.js"
|
||||
],
|
||||
"initialPanelOnlyGzipBytes": 2305,
|
||||
"initialPanelOnlyGzipBytes": 2304,
|
||||
"lazyFiles": [
|
||||
"houseplan-assets/backdrop-pick-Ckp0PBXt.js",
|
||||
"houseplan-assets/de-CnYAlOUu.js",
|
||||
"houseplan-assets/editor-CKnGJ6qy.js",
|
||||
"houseplan-assets/fr-DekBkhqC.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-DWczm8-2.js",
|
||||
"houseplan-assets/guard-BoWMUZ7o.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-CPpqpKvW.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-BIx15-gw.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-N-ZFSZfG.js",
|
||||
"houseplan-assets/iso-scene-render-DGlrwMHW.js",
|
||||
"houseplan-assets/live-interaction-runtime-D0PZDT7G.js",
|
||||
"houseplan-assets/pdf-export-Dr1KIZgo.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-BBEDkGjk.js",
|
||||
"houseplan-assets/zigbee-topology-DhleVwin.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-bVchrMyY.js"
|
||||
"houseplan-assets/backdrop-pick-jRfJBpDz.js",
|
||||
"houseplan-assets/de-cwWSC38d.js",
|
||||
"houseplan-assets/editor-CdilYg-2.js",
|
||||
"houseplan-assets/fr-DpLRD5ZJ.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-DOAYp75t.js",
|
||||
"houseplan-assets/guard-ChAVvf3A.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-BwzlCNdo.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-OTfIw5Do.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-1bV83N8J.js",
|
||||
"houseplan-assets/iso-scene-render-CXjkRuN6.js",
|
||||
"houseplan-assets/live-interaction-runtime-CGyDX19g.js",
|
||||
"houseplan-assets/pdf-export-qJyoAuRD.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-Cs0xkIiB.js",
|
||||
"houseplan-assets/zigbee-topology-CH5b9l1A.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-DrmUGxsz.js"
|
||||
],
|
||||
"lazyGzipBytes": 417337,
|
||||
"lazyGzipBytes": 417110,
|
||||
"lazyEditorFiles": [
|
||||
"houseplan-assets/backdrop-pick-Ckp0PBXt.js",
|
||||
"houseplan-assets/editor-CKnGJ6qy.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-DWczm8-2.js",
|
||||
"houseplan-assets/guard-BoWMUZ7o.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-CPpqpKvW.js",
|
||||
"houseplan-assets/zigbee-topology-DhleVwin.js"
|
||||
"houseplan-assets/backdrop-pick-jRfJBpDz.js",
|
||||
"houseplan-assets/editor-CdilYg-2.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-DOAYp75t.js",
|
||||
"houseplan-assets/guard-ChAVvf3A.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-BwzlCNdo.js",
|
||||
"houseplan-assets/zigbee-topology-CH5b9l1A.js"
|
||||
],
|
||||
"lazyEditorGzipBytes": 204994,
|
||||
"lazyEditorGzipBytes": 205000,
|
||||
"lazyOnboardingFiles": [
|
||||
"houseplan-assets/backdrop-pick-Ckp0PBXt.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-BIx15-gw.js"
|
||||
"houseplan-assets/backdrop-pick-jRfJBpDz.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-OTfIw5Do.js"
|
||||
],
|
||||
"lazyOnboardingGzipBytes": 13914,
|
||||
"lazyOnboardingGzipBytes": 13915,
|
||||
"lazyLocaleFiles": [
|
||||
"houseplan-assets/de-CnYAlOUu.js",
|
||||
"houseplan-assets/fr-DekBkhqC.js"
|
||||
"houseplan-assets/de-cwWSC38d.js",
|
||||
"houseplan-assets/fr-DpLRD5ZJ.js"
|
||||
],
|
||||
"lazyLocaleGzipBytes": 54852,
|
||||
"lazyLocaleGzipBytes": 54820,
|
||||
"lazyIsometricFiles": [
|
||||
"houseplan-assets/guard-BoWMUZ7o.js",
|
||||
"houseplan-assets/iso-scene-render-DGlrwMHW.js"
|
||||
"houseplan-assets/guard-ChAVvf3A.js",
|
||||
"houseplan-assets/iso-scene-render-CXjkRuN6.js"
|
||||
],
|
||||
"lazyIsometricGzipBytes": 13458,
|
||||
"lazyIsometricGzipBytes": 13455,
|
||||
"lazyFurnitureArtFiles": [
|
||||
"houseplan-assets/furniture-plan-art.generated-DWczm8-2.js"
|
||||
"houseplan-assets/furniture-plan-art.generated-DOAYp75t.js"
|
||||
],
|
||||
"lazyFurnitureArtGzipBytes": 10247,
|
||||
"lazyFurnitureArtGzipBytes": 10253,
|
||||
"lazyPdfFiles": [
|
||||
"houseplan-assets/furniture-plan-art.generated-DWczm8-2.js",
|
||||
"houseplan-assets/pdf-export-Dr1KIZgo.js"
|
||||
"houseplan-assets/furniture-plan-art.generated-DOAYp75t.js",
|
||||
"houseplan-assets/pdf-export-qJyoAuRD.js"
|
||||
],
|
||||
"lazyPdfGzipBytes": 120314,
|
||||
"lazyPdfGzipBytes": 120125,
|
||||
"files": [
|
||||
{
|
||||
"path": "houseplan-assets/backdrop-pick-Ckp0PBXt.js",
|
||||
"sha256": "b1a9233561db70f6399c08a2e6a391afa6980c89c961e8d2f9982a375c4a4749",
|
||||
"path": "houseplan-assets/backdrop-pick-jRfJBpDz.js",
|
||||
"sha256": "0920505d6936c25d9b1e855f6f97778eab38bb191d230e9f23f26b9c922f89c5",
|
||||
"rawBytes": 19956,
|
||||
"gzipBytes": 6877,
|
||||
"gzipBytes": 6878,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-YE40fvv1.js"
|
||||
"houseplan-assets/houseplan-card-DF8Mj-Od.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/de-CnYAlOUu.js",
|
||||
"sha256": "685f3edc7c69a9f047c8472cad2742e48227b7f1212fae3b0a479139f9025f52",
|
||||
"rawBytes": 91441,
|
||||
"gzipBytes": 27711,
|
||||
"path": "houseplan-assets/de-cwWSC38d.js",
|
||||
"sha256": "273cd45433438c14675025af049809c925ef6a4dee13780ba3ec31580a453a6e",
|
||||
"rawBytes": 91402,
|
||||
"gzipBytes": 27693,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/editor-CKnGJ6qy.js",
|
||||
"sha256": "6335c4ff1d16aaab3cbf37d38047df98f8ba8a4bfaf05ed65bd6e3302225948e",
|
||||
"path": "houseplan-assets/editor-CdilYg-2.js",
|
||||
"sha256": "724e252db5081acc189e30a27943f0abbd601f9ed06e41b04072aab0874a5688",
|
||||
"rawBytes": 3832,
|
||||
"gzipBytes": 1584,
|
||||
"gzipBytes": 1583,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-YE40fvv1.js"
|
||||
"houseplan-assets/houseplan-card-DF8Mj-Od.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/fr-DekBkhqC.js",
|
||||
"sha256": "d181c40de4b3c024c5b115c68fed72201158d61d76aa8433f7d2a48046a74fab",
|
||||
"rawBytes": 93719,
|
||||
"gzipBytes": 27141,
|
||||
"path": "houseplan-assets/fr-DpLRD5ZJ.js",
|
||||
"sha256": "33cc1d30734061641af6518b083ddb79a3f04ac07433fe93fff2356947200ee8",
|
||||
"rawBytes": 93667,
|
||||
"gzipBytes": 27127,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/furniture-plan-art.generated-DWczm8-2.js",
|
||||
"sha256": "d28de97f41aef1723b16776bd70c6e544ea8fb7e450f4312a5e3c1e0b76d9549",
|
||||
"path": "houseplan-assets/furniture-plan-art.generated-DOAYp75t.js",
|
||||
"sha256": "346770d51fc4efead7d9339ca606192f9e30b4f5a9698002ff9d9efec15b49de",
|
||||
"rawBytes": 33655,
|
||||
"gzipBytes": 10247,
|
||||
"gzipBytes": 10253,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/guard-BoWMUZ7o.js",
|
||||
"sha256": "8c235d61f8a60a7c61755803dce89ee19ecca88f71f1050478b81eb7d3583c2c",
|
||||
"path": "houseplan-assets/guard-ChAVvf3A.js",
|
||||
"sha256": "57d2fa403c66d1edf3b6743d832dde7ae333551837f16316ab4463cf2b7af020",
|
||||
"rawBytes": 518,
|
||||
"gzipBytes": 370,
|
||||
"gzipBytes": 369,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-YE40fvv1.js"
|
||||
"houseplan-assets/houseplan-card-DF8Mj-Od.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/houseplan-card-YE40fvv1.js",
|
||||
"sha256": "89d4ca76ea7489c16f2e3998e9f5d0bed7231798c6c2053dd4bbec923149900c",
|
||||
"rawBytes": 1021115,
|
||||
"gzipBytes": 286482,
|
||||
"path": "houseplan-assets/houseplan-card-DF8Mj-Od.js",
|
||||
"sha256": "b2a11c2828db3ea84c251720cfe9ea074bdcae1a1f42c9c72b17aee108d7467a",
|
||||
"rawBytes": 1021003,
|
||||
"gzipBytes": 286438,
|
||||
"isEntry": false,
|
||||
"imports": [],
|
||||
"dynamicImports": [
|
||||
"houseplan-assets/de-CnYAlOUu.js",
|
||||
"houseplan-assets/editor-CKnGJ6qy.js",
|
||||
"houseplan-assets/fr-DekBkhqC.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-DWczm8-2.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-CPpqpKvW.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-BIx15-gw.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-N-ZFSZfG.js",
|
||||
"houseplan-assets/iso-scene-render-DGlrwMHW.js",
|
||||
"houseplan-assets/live-interaction-runtime-D0PZDT7G.js",
|
||||
"houseplan-assets/pdf-export-Dr1KIZgo.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-BBEDkGjk.js"
|
||||
"houseplan-assets/de-cwWSC38d.js",
|
||||
"houseplan-assets/editor-CdilYg-2.js",
|
||||
"houseplan-assets/fr-DpLRD5ZJ.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-DOAYp75t.js",
|
||||
"houseplan-assets/houseplan-editor-runtime-BwzlCNdo.js",
|
||||
"houseplan-assets/houseplan-onboarding-runtime-OTfIw5Do.js",
|
||||
"houseplan-assets/hp-zigbee-topology-overlay-1bV83N8J.js",
|
||||
"houseplan-assets/iso-scene-render-CXjkRuN6.js",
|
||||
"houseplan-assets/live-interaction-runtime-CGyDX19g.js",
|
||||
"houseplan-assets/pdf-export-qJyoAuRD.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-Cs0xkIiB.js"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/houseplan-editor-runtime-CPpqpKvW.js",
|
||||
"sha256": "aaf5ada4dd6cae4a5a877beaec32c3165d41ac3597ff4a1e35f518a75bdf3971",
|
||||
"path": "houseplan-assets/houseplan-editor-runtime-BwzlCNdo.js",
|
||||
"sha256": "4da817faff017fc175cd0feca6e6fd64a17226d8ff671ab5bd081af0bdad8d0e",
|
||||
"rawBytes": 668820,
|
||||
"gzipBytes": 178485,
|
||||
"gzipBytes": 178488,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/backdrop-pick-Ckp0PBXt.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-DWczm8-2.js",
|
||||
"houseplan-assets/guard-BoWMUZ7o.js",
|
||||
"houseplan-assets/houseplan-card-YE40fvv1.js",
|
||||
"houseplan-assets/zigbee-topology-DhleVwin.js"
|
||||
"houseplan-assets/backdrop-pick-jRfJBpDz.js",
|
||||
"houseplan-assets/furniture-plan-art.generated-DOAYp75t.js",
|
||||
"houseplan-assets/guard-ChAVvf3A.js",
|
||||
"houseplan-assets/houseplan-card-DF8Mj-Od.js",
|
||||
"houseplan-assets/zigbee-topology-CH5b9l1A.js"
|
||||
],
|
||||
"dynamicImports": [
|
||||
"houseplan-assets/zigbee-topology-runtime-bVchrMyY.js"
|
||||
"houseplan-assets/zigbee-topology-runtime-DrmUGxsz.js"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/houseplan-onboarding-runtime-BIx15-gw.js",
|
||||
"sha256": "16ca98715f00e0c4662e24be4f59e7791a3f4c00c0ba59354a3d21e3d5f64b8b",
|
||||
"path": "houseplan-assets/houseplan-onboarding-runtime-OTfIw5Do.js",
|
||||
"sha256": "a991f58b9fadbc55f7e09276e30b411dea21040fc40df9a413b8c4cfc6a4da61",
|
||||
"rawBytes": 28287,
|
||||
"gzipBytes": 7037,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/backdrop-pick-Ckp0PBXt.js",
|
||||
"houseplan-assets/houseplan-card-YE40fvv1.js"
|
||||
"houseplan-assets/backdrop-pick-jRfJBpDz.js",
|
||||
"houseplan-assets/houseplan-card-DF8Mj-Od.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/hp-zigbee-topology-overlay-N-ZFSZfG.js",
|
||||
"sha256": "705c06c803cadc056973c1b08a96412df9ecc3fe697db4aa3c509a827b19603c",
|
||||
"path": "houseplan-assets/hp-zigbee-topology-overlay-1bV83N8J.js",
|
||||
"sha256": "7aba6a22de9ad467bd98c412e035c1027def20ffe4d5b70362dd9589274b3da3",
|
||||
"rawBytes": 10756,
|
||||
"gzipBytes": 3680,
|
||||
"gzipBytes": 3678,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-YE40fvv1.js",
|
||||
"houseplan-assets/zigbee-topology-DhleVwin.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-bVchrMyY.js"
|
||||
"houseplan-assets/houseplan-card-DF8Mj-Od.js",
|
||||
"houseplan-assets/zigbee-topology-CH5b9l1A.js",
|
||||
"houseplan-assets/zigbee-topology-runtime-DrmUGxsz.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/iso-scene-render-DGlrwMHW.js",
|
||||
"sha256": "beb35b52723c808284409243cbab0d632237e417c46e2004ff8d24a0799425d4",
|
||||
"path": "houseplan-assets/iso-scene-render-CXjkRuN6.js",
|
||||
"sha256": "d9bf9afaafff8a84a567cc2cedc54bc10e361667045eb4a52bb7657a14160c04",
|
||||
"rawBytes": 38562,
|
||||
"gzipBytes": 13088,
|
||||
"gzipBytes": 13086,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/guard-BoWMUZ7o.js",
|
||||
"houseplan-assets/houseplan-card-YE40fvv1.js"
|
||||
"houseplan-assets/guard-ChAVvf3A.js",
|
||||
"houseplan-assets/houseplan-card-DF8Mj-Od.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/live-interaction-runtime-D0PZDT7G.js",
|
||||
"sha256": "cafdf2fd4e2e89d856e6ec63dfed48bb0249beade2aa02e945a1b1b26d395c9f",
|
||||
"path": "houseplan-assets/live-interaction-runtime-CGyDX19g.js",
|
||||
"sha256": "3893e23f442accc1a607078ea28e2fb6d13ebe50b39aac881b263c1072c3321f",
|
||||
"rawBytes": 5196,
|
||||
"gzipBytes": 2128,
|
||||
"gzipBytes": 2127,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-YE40fvv1.js"
|
||||
"houseplan-assets/houseplan-card-DF8Mj-Od.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/pdf-export-Dr1KIZgo.js",
|
||||
"sha256": "bc24430312d0d50c76ff98d640824b292f75af4975897fa2bae629f5ff3d9a0c",
|
||||
"rawBytes": 236841,
|
||||
"gzipBytes": 110067,
|
||||
"path": "houseplan-assets/pdf-export-qJyoAuRD.js",
|
||||
"sha256": "2a5211916a2dd2652d3a799e247861dd1bf84a3d5dd512ebf34528121326bb14",
|
||||
"rawBytes": 236244,
|
||||
"gzipBytes": 109872,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/furniture-plan-art.generated-DWczm8-2.js",
|
||||
"houseplan-assets/houseplan-card-YE40fvv1.js"
|
||||
"houseplan-assets/furniture-plan-art.generated-DOAYp75t.js",
|
||||
"houseplan-assets/houseplan-card-DF8Mj-Od.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/summary-panel-editor-DmZWqUNj.js",
|
||||
"sha256": "d5d61589700ea081e17abc1012844554559824bb71354107d33c7a3b13b783ea",
|
||||
"path": "houseplan-assets/summary-panel-editor-CCrVe0Yx.js",
|
||||
"sha256": "1ce82a9d68856d90ad216d1bb645c1a73cc65d34587708545c46b5c5d846310e",
|
||||
"rawBytes": 14824,
|
||||
"gzipBytes": 3401,
|
||||
"gzipBytes": 3399,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-YE40fvv1.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-BBEDkGjk.js"
|
||||
"houseplan-assets/houseplan-card-DF8Mj-Od.js",
|
||||
"houseplan-assets/summary-panel-runtime-loaded-Cs0xkIiB.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/summary-panel-metrics-CvLZwEaV.js",
|
||||
"sha256": "6bd34a1d64a276b98a517bee18a257e198eb37fcf37825d0d996d2f61633ed25",
|
||||
"path": "houseplan-assets/summary-panel-metrics-D2ssEwCx.js",
|
||||
"sha256": "c195b285ca92a0719c8ffb595bcebb6b121b1d381046e93bc439cdbf41da047c",
|
||||
"rawBytes": 2610,
|
||||
"gzipBytes": 1307,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-YE40fvv1.js"
|
||||
"houseplan-assets/houseplan-card-DF8Mj-Od.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/summary-panel-runtime-loaded-BBEDkGjk.js",
|
||||
"sha256": "4111782c8085e0fcaf30af0a2737b961ae5a1438911257c74864e45f1161a596",
|
||||
"path": "houseplan-assets/summary-panel-runtime-loaded-Cs0xkIiB.js",
|
||||
"sha256": "67566157d8b006ed2f35492be4bcbf1362205bc16494beeeeaa091e5a9d5cc26",
|
||||
"rawBytes": 72272,
|
||||
"gzipBytes": 19729,
|
||||
"gzipBytes": 19726,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-YE40fvv1.js"
|
||||
"houseplan-assets/houseplan-card-DF8Mj-Od.js"
|
||||
],
|
||||
"dynamicImports": [
|
||||
"houseplan-assets/summary-panel-editor-DmZWqUNj.js",
|
||||
"houseplan-assets/summary-panel-metrics-CvLZwEaV.js"
|
||||
"houseplan-assets/summary-panel-editor-CCrVe0Yx.js",
|
||||
"houseplan-assets/summary-panel-metrics-D2ssEwCx.js"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/zigbee-topology-DhleVwin.js",
|
||||
"sha256": "617b14dcb28fa2185d49bf8d4abd51d0d236f1b577a04433262524f503a6c7af",
|
||||
"path": "houseplan-assets/zigbee-topology-CH5b9l1A.js",
|
||||
"sha256": "6a4e32d412357d46a72ce1b934f4f5cc130417a8251f02d66c57e9a1d5fbb8f0",
|
||||
"rawBytes": 18961,
|
||||
"gzipBytes": 7431,
|
||||
"gzipBytes": 7429,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-YE40fvv1.js"
|
||||
"houseplan-assets/houseplan-card-DF8Mj-Od.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-assets/zigbee-topology-runtime-bVchrMyY.js",
|
||||
"sha256": "9727aad6aca6b1159a1b370307d710e04ada6c8800e0d808e4553dff845709cd",
|
||||
"path": "houseplan-assets/zigbee-topology-runtime-DrmUGxsz.js",
|
||||
"sha256": "d08662fff08c9c6ecab062495c78e03cf8bdfa382fd3b31b9138c0bceed79877",
|
||||
"rawBytes": 3941,
|
||||
"gzipBytes": 1762,
|
||||
"gzipBytes": 1764,
|
||||
"isEntry": false,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-YE40fvv1.js",
|
||||
"houseplan-assets/zigbee-topology-DhleVwin.js"
|
||||
"houseplan-assets/houseplan-card-DF8Mj-Od.js",
|
||||
"houseplan-assets/zigbee-topology-CH5b9l1A.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-card.js",
|
||||
"sha256": "dff0b2054b275eb9d9e82b84c35046f6c389fb3c7b2d7e4ef3d72d31db0d8185",
|
||||
"sha256": "bc25da552f24a3a6eedd8acd6b6944e5d8180e09c5fbe05147739adb916a4df5",
|
||||
"rawBytes": 1205,
|
||||
"gzipBytes": 804,
|
||||
"gzipBytes": 803,
|
||||
"isEntry": true,
|
||||
"imports": [
|
||||
"houseplan-assets/houseplan-card-YE40fvv1.js"
|
||||
"houseplan-assets/houseplan-card-DF8Mj-Od.js"
|
||||
],
|
||||
"dynamicImports": []
|
||||
},
|
||||
{
|
||||
"path": "houseplan-panel.js",
|
||||
"sha256": "24b396cbddac1463f3b733db803911389ae87ea4b5a2d5cb7c840aeff18649ae",
|
||||
"sha256": "2facc12aa8ae8e379b8ed19ea113933f74bf71760b1476348b9b01404995a8fe",
|
||||
"rawBytes": 6124,
|
||||
"gzipBytes": 2305,
|
||||
"gzipBytes": 2304,
|
||||
"isEntry": true,
|
||||
"imports": [
|
||||
"houseplan-card.js"
|
||||
|
||||
Vendored
+6
-6
File diff suppressed because one or more lines are too long
Vendored
-1
File diff suppressed because one or more lines are too long
Vendored
+1
File diff suppressed because one or more lines are too long
+5
-5
@@ -1,14 +1,14 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="b47c3e03a9479551812b6a9233e3795cc51fb519726920a5969b4c9233f92370";import{m as e,l as o,t,e3 as s,A as a,e4 as i,e5 as l,e6 as n,dU as r,b as c}from"./houseplan-card-YE40fvv1.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),u=e=>c`<ha-form
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="dc3d46c4e6364ac253af4a77471ef78d9e3660ff8ef53d71db496f0d1810b107";import{m as e,l as o,t,e3 as s,A as a,e4 as i,e5 as l,e6 as n,dU as r,b as c}from"./houseplan-card-DF8Mj-Od.js";class f extends e{constructor(){super(...arguments),this._spaces=null,this._spacesLoading=!1,this._spacesAuthoritative=!1}setConfig(e){this._config=e}async _loadSpaces(){if(!this._spaces&&!this._spacesLoading&&this.hass){this._spacesLoading=!0;try{const e=await this.hass.callWS({type:"houseplan/config/get"});this._spaces=(e?.config?.spaces||[]).map(e=>({value:e.id,label:e.title||e.id})),this._spacesAuthoritative=!0}catch{this._spaces=[],this._spacesAuthoritative=!1}finally{this._spacesLoading=!1}}}get _lang(){return o(this.hass,this._config?.language)}get _floorToken(){const e=this._config?.floor;return"number"==typeof e?`__houseplan_yaml_floor_index__:${String(e)}`:null}get _formData(){const e={...this._config},o=this._floorToken;return o?e.floor=o:Object.prototype.hasOwnProperty.call(e,"floor")||(e.floor=""),e}get _schema(){const e=this._spaces||[],o=this._lang,a=[{value:"",label:t(o,"editor.floor_none")}],i=this._floorToken;i&&a.push({value:i,label:t(o,"editor.floor_index",{index:String(this._config?.floor)})});const l="string"==typeof this._config?.floor?this._config.floor:"";l&&!e.some(e=>e.value===l)&&a.push({value:l,label:l}),a.push(...e);const n="string"==typeof this._config?.default_floor?this._config.default_floor:"",r=[...e];return n&&!e.some(e=>e.value===n)&&r.unshift({value:n,label:n}),[{name:"title",selector:{text:{}}},{name:"floor",selector:{select:{mode:"dropdown",options:a}}},e.length?{name:"default_floor",selector:{select:{mode:"dropdown",options:r}}}:{name:"default_floor",selector:{text:{}}},{name:"language",selector:{select:{mode:"dropdown",options:s(t(o,"editor.lang_auto"),this._config?.language)}}},{name:"icon_size",selector:{number:{min:1,max:6,step:.1,mode:"box"}}},{name:"show_temperature",selector:{boolean:{}}},{name:"live_states",selector:{boolean:{}}},{name:"show_signal",selector:{boolean:{}}},{name:"kiosk",selector:{boolean:{}}},{name:"cycle",selector:{number:{min:0,max:3600,step:5,mode:"box"}}}]}render(){if(!this.hass||!this._config)return a;const e=i(this,l,o(this.hass,this._config.language));if("cold"===e)return n();if("warm"===e)return r;this._loadSpaces();const s=this._lang,f={title:t(s,"editor.title"),floor:t(s,"editor.floor"),default_floor:t(s,"editor.default_floor"),language:t(s,"editor.language"),icon_size:t(s,"editor.icon_size"),show_temperature:t(s,"editor.show_temperature"),live_states:t(s,"editor.live_states"),show_signal:t(s,"editor.show_signal"),kiosk:t(s,"editor.kiosk"),cycle:t(s,"editor.cycle")},h=this._schema,_=function(e,o,t){if(!t||null===o)return null;const s="string"==typeof e?.default_floor?e.default_floor:"";return!s||o.some(e=>e.value===s)?null:s}(this._config,this._spaces,this._spacesAuthoritative),d=e=>c`<ha-form
|
||||
.hass=${this.hass}
|
||||
.data=${this._formData}
|
||||
.schema=${e}
|
||||
.computeLabel=${e=>h[e.name]||e.name}
|
||||
.computeLabel=${e=>f[e.name]||e.name}
|
||||
@value-changed=${this._valueChanged}
|
||||
></ha-form>`;return c`
|
||||
${u(f.slice(0,3))}
|
||||
${d(h.slice(0,3))}
|
||||
${_?c`<div class="default-floor-error" role="alert"
|
||||
style="color:var(--error-color,#db4437);margin:-4px 0 12px;overflow-wrap:anywhere">
|
||||
${t(s,"editor.default_floor_missing",{id:_})}
|
||||
</div>`:a}
|
||||
${u(f.slice(3))}
|
||||
`}_valueChanged(e){const o={...this._config,...e.detail.value};""===o.floor?delete o.floor:o.floor===this._floorToken&&(o.floor=this._config?.floor);const t=new Event("config-changed",{bubbles:!0,composed:!0});t.detail={config:o},this.dispatchEvent(t)}}h.properties={hass:{attribute:!1},_config:{state:!0},_spaces:{state:!0}},customElements.get("houseplan-card-editor")||customElements.define("houseplan-card-editor",h);
|
||||
${d(h.slice(3))}
|
||||
`}_valueChanged(e){const o={...this._config,...e.detail.value};""===o.floor?delete o.floor:o.floor===this._floorToken&&(o.floor=this._config?.floor);const t=new Event("config-changed",{bubbles:!0,composed:!0});t.detail={config:o},this.dispatchEvent(t)}}f.properties={hass:{attribute:!1},_config:{state:!0},_spaces:{state:!0}},customElements.get("houseplan-card-editor")||customElements.define("houseplan-card-editor",f);
|
||||
Vendored
-1
File diff suppressed because one or more lines are too long
Vendored
+1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
-1
@@ -1 +0,0 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="b47c3e03a9479551812b6a9233e3795cc51fb519726920a5969b4c9233f92370";import{dS as r,dT as t,dU as s}from"./houseplan-card-YE40fvv1.js";const e={},a=r(class extends t{constructor(){super(...arguments),this.ot=e}render(r,t){return t()}update(r,[t,e]){if(Array.isArray(t)){if(Array.isArray(this.ot)&&this.ot.length===t.length&&t.every((r,t)=>r===this.ot[t]))return s}else if(this.ot===t)return s;return this.ot=Array.isArray(t)?Array.from(t):t,this.render(t,e)}});export{a as i};
|
||||
+1
@@ -0,0 +1 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="dc3d46c4e6364ac253af4a77471ef78d9e3660ff8ef53d71db496f0d1810b107";import{dS as r,dT as t,dU as e}from"./houseplan-card-DF8Mj-Od.js";const s={},a=r(class extends t{constructor(){super(...arguments),this.ot=s}render(r,t){return t()}update(r,[t,s]){if(Array.isArray(t)){if(Array.isArray(this.ot)&&this.ot.length===t.length&&t.every((r,t)=>r===this.ot[t]))return e}else if(this.ot===t)return e;return this.ot=Array.isArray(t)?Array.from(t):t,this.render(t,s)}});export{a as i};
|
||||
Vendored
+5
-5
File diff suppressed because one or more lines are too long
+3
-3
File diff suppressed because one or more lines are too long
+4
-4
@@ -1,4 +1,4 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="b47c3e03a9479551812b6a9233e3795cc51fb519726920a5969b4c9233f92370";import{l as t,b0 as s,A as e,t as a,b as o,cj as l,ck as i,cl as h,cm as c,aZ as n,cn as r,cs as p,co as d,cp as _,cq as u,cr as g,ct as m,cu as b,dp as $,dq as v,dr as f,aY as y,a_ as w,ds as D}from"./houseplan-card-YE40fvv1.js";import{c as k,e as S,r as C,a as M}from"./backdrop-pick-Ckp0PBXt.js";const F=1e3,x=t=>{if(!t.trim())return null;const s=Number(t.replace(",","."));return Number.isFinite(s)?s:null},T="b47c3e03a9479551812b6a9233e3795cc51fb519726920a5969b4c9233f92370";class L{constructor(t){this.host=t,this._toggleServerPlans=async()=>{const t=this.host._spaceDialog;if(t)if(t.pickSaved)this.host._spaceDialog={...t,pickSaved:!1};else{this.host._spaceDialog={...t,pickSaved:!0,savedBusy:!0};try{const t=await this.host.hass.callWS({type:"houseplan/plans/list"}),s=this.host._spaceDialog;s&&(this.host._spaceDialog={...s,saved:t?.plans||[],savedBusy:!1})}catch(t){const s=this.host._spaceDialog;s&&(this.host._spaceDialog={...s,saved:[],savedBusy:!1}),this.host._showToast(this.host._t("toast.plans_list_failed",{err:this.host._errText(t)}))}}}}_help(l){const i=`${l}.aria`,h=t(this.host.hass,this.host._config?.language);return s(h,l)&&s(h,i)?o`<hp-help data-help-key=${l}
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="dc3d46c4e6364ac253af4a77471ef78d9e3660ff8ef53d71db496f0d1810b107";import{l as t,b0 as s,A as e,t as a,b as o,cj as l,ck as i,cl as h,cm as c,aZ as n,cn as r,cs as p,co as d,cp as _,cq as u,cr as g,ct as m,cu as b,dp as $,dq as f,dr as v,aY as y,a_ as w,ds as D}from"./houseplan-card-DF8Mj-Od.js";import{c as k,e as S,r as C,a as M}from"./backdrop-pick-jRfJBpDz.js";const F=1e3,x=t=>{if(!t.trim())return null;const s=Number(t.replace(",","."));return Number.isFinite(s)?s:null},T="dc3d46c4e6364ac253af4a77471ef78d9e3660ff8ef53d71db496f0d1810b107";class L{constructor(t){this.host=t,this._toggleServerPlans=async()=>{const t=this.host._spaceDialog;if(t)if(t.pickSaved)this.host._spaceDialog={...t,pickSaved:!1};else{this.host._spaceDialog={...t,pickSaved:!0,savedBusy:!0};try{const t=await this.host.hass.callWS({type:"houseplan/plans/list"}),s=this.host._spaceDialog;s&&(this.host._spaceDialog={...s,saved:t?.plans||[],savedBusy:!1})}catch(t){const s=this.host._spaceDialog;s&&(this.host._spaceDialog={...s,saved:[],savedBusy:!1}),this.host._showToast(this.host._t("toast.plans_list_failed",{err:this.host._errText(t)}))}}}}_help(l){const i=`${l}.aria`,h=t(this.host.hass,this.host._config?.language);return s(h,l)&&s(h,i)?o`<hp-help data-help-key=${l}
|
||||
.text=${a(h,l)} .ariaLabel=${a(h,i)}></hp-help>`:e}_openSpaceDialog(t,s){if(!this.host._serverStorage||!this.host._serverCfg)return void this.host._showToast(this.host._t("toast.integration_missing"));if("edit"===t){const e=this.host._serverCfg.spaces.find(t=>t.id===s);if(!e)return;const a=l(e),o=e.settings?.custom_fill&&"object"==typeof e.settings.custom_fill?i(e.settings.custom_fill):null,p="none"===a.fill?{...o||h,a:0}:o;return void(this.host._spaceDialog={mode:t,spaceId:s,title:e.title,planUrl:e.plan_url||null,planFile:null,source:e.plan_url?"file":"draw",showBorders:a.showBorders,showNames:a.showNames,zeroWallStyle:r(e),displayTouched:!0,hideDecor:a.hideDecor,hideOpenings:a.hideOpenings,roomColor:a.color,roomOpacity:a.opacity,fillMode:"none"===a.fill?"custom":a.fill,customFill:p,glowEnabled:a.glow,bgColor:a.bgColor,bgMode:"static"===e.settings?.bg_mode||"daynight"===e.settings?.bg_mode?e.settings.bg_mode:null,northDeg:n({},e.settings),sunRays:"boolean"==typeof e.settings?.sun_rays?e.settings.sun_rays:null,tempMin:a.tempMin,tempMax:a.tempMax,showLqi:a.showLqi??this.host._config?.show_signal??!0,cardFontScale:a.cardFontScale,labelTemp:a.labelTemp,labelHum:a.labelHum,labelLqi:a.labelLqi,labelLight:a.labelLight,cellCm:Number(e.cell_cm)>0?Number(e.cell_cm):5,cellCmInput:c(Number(e.cell_cm)>0?Number(e.cell_cm):5,this.host._imperial),cellCmTouched:!1,busy:!1})}const e=p(this.host._imperial);this.host._spaceDialog={mode:t,title:"",planUrl:null,planFile:null,...m(),hideDecor:!1,hideOpenings:!1,zeroWallStyle:"dashed",roomColor:g,roomOpacity:u,fillMode:"custom",customFill:{...h,a:0},glowEnabled:!0,bgColor:null,bgMode:"daynight",northDeg:null,sunRays:null,tempMin:_,tempMax:d,showLqi:this.host._config?.show_signal??!0,cardFontScale:1,labelTemp:!1,labelHum:!1,labelLqi:!1,labelLight:!1,cellCm:e,cellCmInput:c(e,this.host._imperial),cellCmTouched:!1,busy:!1}}async _pickPlanFile(t){const s=t.target,e=s.files?.[0];if(!e||!this.host._spaceDialog)return;s.value="";const a=await k(e);if("reject"===a.kind)return void this.host._showToast(this.host._t("toast.plan_formats"));if("guard"===a.kind)return void(this.host._backdropGuard=a.state);const o=await S(e,a.ext,e.name);this.host._spaceDialog&&(this.host._spaceDialog={...this.host._spaceDialog,planFile:o})}_renderBackdropGuard(){return C(this.host,t=>{this.host._spaceDialog&&(this.host._spaceDialog={...this.host._spaceDialog,planFile:t})},()=>{this.host._backdropGuard=null},this.host.hass)??e}_useServerPlan(t){const s=this.host._spaceDialog;s&&(this.host._spaceDialog={...s,planUrl:t,planFile:null,pickSaved:!1,savedAspect:void 0},this.host._aspectJob=this._readPlanAspect(t))}async _readPlanAspect(t){for(let s=0;s<40;s++){const s=this.host._display(t);if(s){const e=await new Promise(t=>{const e=new Image;e.onload=()=>t(e.naturalWidth&&e.naturalHeight?e.naturalWidth/e.naturalHeight:0),e.onerror=()=>t(0),e.src=s}),a=this.host._spaceDialog;return a&&a.planUrl===t&&Number.isFinite(e)&&e>0?(this.host._spaceDialog={...a,savedAspect:e},e):0}if(await new Promise(t=>setTimeout(t,150)),this.host._spaceDialog?.planUrl!==t)return 0}return 0}async _deleteServerPlan(t){const s=this.host._spaceDialog,e=s?.saved?.find(s=>s.name===t);if(!s||!e||e.used_by.length||e.url===s.planUrl)return;const a=await this.host._confirmDanger({key:"delete-plan",kind:"destructive",title:this.host._t("confirm.delete_plan_title"),message:this.host._t("confirm.delete_plan_body"),objectName:t,confirmLabel:this.host._t("btn.delete"),cancelLabel:this.host._t("btn.cancel")}),o=this.host._spaceDialog,l=o?.saved?.find(s=>s.name===t);if(a&&o&&l&&l.url===e.url&&l.modified===e.modified&&!l.used_by.length&&l.url!==o.planUrl)try{await this.host.hass.callWS({type:"houseplan/plans/delete",name:t});const s=this.host._spaceDialog;s?.saved&&(this.host._spaceDialog={...s,saved:s.saved.filter(s=>s.name!==t)})}catch(t){this.host._showToast(this.host._t("toast.plan_delete_failed",{err:this.host._errText(t)}))}}_renderServerPlans(t){if(t.savedBusy)return o`<div class="savedplans muted">${this.host._t("space.loading")}</div>`;const s=t.saved||[];if(!s.length)return o`<div class="savedplans muted">${this.host._t("space.no_saved")}</div>`;return o`<div class="savedplans">
|
||||
${s.map(s=>{return o`
|
||||
<div class="savedplan ${s.url===t.planUrl?"cur":""}">
|
||||
@@ -85,13 +85,13 @@ globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="b47c3e03a9479551812b6a9233e3795cc51f
|
||||
max=${c(F,this.host._imperial)}
|
||||
step="0.1"
|
||||
.value=${t.cellCmInput??c(t.cellCm,this.host._imperial)}
|
||||
@input=${s=>{const e=s.target.value,a=x(e),o=null==a?null:v(a,this.host._imperial);this.host._spaceDialog={...t,cellCmInput:e,cellCmTouched:!0,cellCm:null!=o&&o>0?Math.max(.1,Math.min(F,o)):t.cellCm}}} />
|
||||
@input=${s=>{const e=s.target.value,a=x(e),o=null==a?null:f(a,this.host._imperial);this.host._spaceDialog={...t,cellCmInput:e,cellCmTouched:!0,cellCm:null!=o&&o>0?Math.max(.1,Math.min(F,o)):t.cellCm}}} />
|
||||
<span class="opl">${this.host._t(this.host._imperial?"space.scale_unit_imperial":"space.scale_unit")}</span>
|
||||
</div>
|
||||
|
||||
<label class="dispsection">${this.host._t("space.display_section")}</label>
|
||||
<label class="srcrow">
|
||||
${this._boolInput(t.showBorders,s=>{this.host._spaceDialog=f(t,"showBorders",s)})}
|
||||
${this._boolInput(t.showBorders,s=>{this.host._spaceDialog=v(t,"showBorders",s)})}
|
||||
<span>${this.host._t("space.show_borders")}</span>
|
||||
</label>
|
||||
<div class="helpfieldlabel">
|
||||
@@ -107,7 +107,7 @@ globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="b47c3e03a9479551812b6a9233e3795cc51f
|
||||
</option>
|
||||
</select>
|
||||
<label class="srcrow">
|
||||
${this._boolInput(t.showNames,s=>{this.host._spaceDialog=f(t,"showNames",s)})}
|
||||
${this._boolInput(t.showNames,s=>{this.host._spaceDialog=v(t,"showNames",s)})}
|
||||
<span>${this.host._t("space.show_names")}</span>
|
||||
</label>
|
||||
<label class="srcrow">
|
||||
+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
-24
File diff suppressed because one or more lines are too long
+24
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,4 +1,4 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="b47c3e03a9479551812b6a9233e3795cc51fb519726920a5969b4c9233f92370";import{b as a,A as e}from"./houseplan-card-YE40fvv1.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-BBEDkGjk.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__="dc3d46c4e6364ac253af4a77471ef78d9e3660ff8ef53d71db496f0d1810b107";import{b as a,A as e}from"./houseplan-card-DF8Mj-Od.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-Cs0xkIiB.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__="b47c3e03a9479551812b6a9233e3795cc51fb519726920a5969b4c9233f92370";import{e9 as e,L as t,a2 as n,J as i,an as o,N as r,bo as s,bn as a,a1 as c,a0 as l,ax as u,ea as d,eb as f,bq as m,ec as g}from"./houseplan-card-YE40fvv1.js";function v(e){if(!e.registry.authoritative)return null;const t=new Set,n=u(e.markers);for(const i of Object.values(e.registry.devices||{}))i?.id&&"service"!==i.entry_type&&!n.devices.has(i.id)&&i.area_id&&e.areaToSpace[i.area_id]&&t.add(i.id);for(const i of e.markers||[]){if(i.removed||"virtual"===i.binding)continue;const o=String(i.binding||"").indexOf(":");if(o<1)continue;const r=i.binding.slice(0,o),s=i.binding.slice(o+1),a="device"===r?e.registry.devices?.[s]:null,c="entity"===r?e.registry.entities?.[s]:null,l="device"===r?s:c?.device_id,u="device"===r?a?.area_id:c?.area_id||l&&e.registry.devices?.[l]?.area_id,d="string"==typeof i.room_id&&i.room_id.length>0&&null===i.area?"":i.area||u||"",f=d&&e.areaToSpace[d]||i.space||e.firstSpaceId;l&&e.registry.devices?.[l]&&e.spaceIds.has(f)&&(!n.devices.has(l)||"entity"===r&&n.liveEntities.has(s))&&t.add(l)}return t}function y(e,t){return e?.length?t?.length?g(e,t):e:t}function _(e,t){const n=c(e.rooms,t.walls,t.openCuts,[],i,t.cellCm,o,r);return{roomGeom:"ok"===n.status||"degraded-extra"===n.status?n.roomGeom:void 0,multiWallNodes:l(e.rooms,t.walls,t.openCuts,i,t.cellCm,o,r)}}function*h(c,l,u=_){try{let d=0;for(const f of l){const l=c.spaces.find(e=>String(e?.id)===f.id);if(!l)continue;const m=e(l,f),g=u(f,m);let v=null;for(const e of f.rooms){if(!e.id)continue;const a=t(e);if(!a)continue;const c=n(f.rooms,e.id,m.walls,m.openCuts,i,m.cellCm,o,r,g.roomGeom,g.multiWallNodes)||a;v=y(v,s(c,m.physicalBodies)),yield}const _=m.cellCm/o;d+=a(v)*_*_/1e4}return d}catch{return null}}function p(e,t,n=_){const i=h(e,t,n);let o=i.next();for(;!o.done;)o=i.next();return o.value}function b(e,t,n,i){if("system"!==e.type)return null;if("device_count"===e.key)return null===t.deviceCount?null:String(t.deviceCount);if("total_area"===e.key)return null===t.areaM2?null:m(t.areaM2,"mi"===n?.config?.unit_system?.length);try{return new Intl.DateTimeFormat(i||void 0,{dateStyle:"short",timeStyle:"short",timeZone:n?.config?.time_zone||void 0}).format(t.now)}catch{return t.now.toLocaleString()}}function S(e,t){const n=e?.states?.[t];if(!n)return null;const i=d(e,t);return i?f(i,String(n.attributes?.unit_of_measurement||"")):null}export{h as cleanFloorAreaSteps,v as representedHaDeviceIds,_ as spaceWallGeometry,S as summaryEntityValue,b as summarySystemValue,p as totalCleanFloorAreaM2};
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="dc3d46c4e6364ac253af4a77471ef78d9e3660ff8ef53d71db496f0d1810b107";import{e9 as e,L as t,a2 as n,J as i,an as o,N as r,bo as s,bn as a,a1 as c,a0 as l,ax as d,ea as u,eb as f,bq as m,ec as g}from"./houseplan-card-DF8Mj-Od.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,c="entity"===r?e.registry.entities?.[s]:null,l="device"===r?s:c?.device_id,d="device"===r?a?.area_id:c?.area_id||l&&e.registry.devices?.[l]?.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;l&&e.registry.devices?.[l]&&e.spaceIds.has(f)&&(!n.devices.has(l)||"entity"===r&&n.liveEntities.has(s))&&t.add(l)}return t}function y(e,t){return e?.length?t?.length?g(e,t):e:t}function _(e,t){const n=c(e.rooms,t.walls,t.openCuts,[],i,t.cellCm,o,r);return{roomGeom:"ok"===n.status||"degraded-extra"===n.status?n.roomGeom:void 0,multiWallNodes:l(e.rooms,t.walls,t.openCuts,i,t.cellCm,o,r)}}function*h(c,l,d=_){try{let u=0;for(const f of l){const l=c.spaces.find(e=>String(e?.id)===f.id);if(!l)continue;const m=e(l,f),g=d(f,m);let v=null;for(const e of f.rooms){if(!e.id)continue;const a=t(e);if(!a)continue;const c=n(f.rooms,e.id,m.walls,m.openCuts,i,m.cellCm,o,r,g.roomGeom,g.multiWallNodes)||a;v=y(v,s(c,m.physicalBodies)),yield}const _=m.cellCm/o;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__="b47c3e03a9479551812b6a9233e3795cc51fb519726920a5969b4c9233f92370";import{n as t,b as n}from"./zigbee-topology-DhleVwin.js";import{B as e}from"./houseplan-card-YE40fvv1.js";const o=new WeakMap;function i(t){const n=function(t){const n=t?.connection||t;return!n||"object"!=typeof n&&"function"!=typeof n?null:n}(t);if(!n)return null;let e=o.get(n);return e||(e={revision:0,topologies:[],states:{},listeners:new Set,inflight:new Map},o.set(n,e)),e}function r(t,n,e){t.states={...t.states,[n]:e},function(t){t.revision++;for(const n of t.listeners)n()}(t)}function s(t){const n=t?.code;if("permission"===n||"unsupported"===n||"timeout"===n||"invalid_topic"===n||"invalid_payload"===n)return n;const e=String(t?.message||"").toLowerCase();return e.includes("unauthor")||e.includes("permission")?"permission":e.includes("unknown_command")||e.includes("not found")?"unsupported":"provider"}function a(t){return Object.assign(new Error(t),{code:t})}function c(t,n,e){const o=t.inflight.get(n);if(o)return o;r(t,n,{phase:"loading"});const i=e().then(n=>{if(!n.nodes.length&&n.warnings.some(t=>"invalid_payload"===t.code))throw a("invalid_payload");!function(t,n){t.topologies=[...t.topologies.filter(t=>!(t.provider===n.provider&&t.instanceId===n.instanceId)),n],r(t,"zha"===n.provider?"zha":`z2m:${n.instanceId}`,{phase:"ready",obtainedAt:n.obtainedAt,partial:n.warnings.length>0})}(t,n)}).catch(e=>{r(t,n,{phase:"error",error:s(e)})}).finally(()=>t.inflight.delete(n));return t.inflight.set(n,i),i}function l(t){const n=i(t);return n?{revision:n.revision,topologies:n.topologies,states:n.states}:{revision:0,topologies:[],states:{}}}function u(t,n){const e=i(t);return e?(e.listeners.add(n),()=>e.listeners.delete(n)):()=>{}}function p(t){if(!0!==t?.user?.is_admin)throw a("permission")}function f(n){const e=i(n);return e?c(e,"zha",async()=>{if(p(n),"function"!=typeof n?.callWS)throw a("unsupported");return t(await n.callWS({type:"zha/devices"}))}):Promise.resolve()}function d(t){return null!==t&&"object"==typeof t?t:null}function h(t){const n=d(t),e=n?.payload??t;if("string"!=typeof e)return e;try{return JSON.parse(e)}catch{return null}}async function g(t,n){let e;try{return await Promise.race([t,new Promise((t,o)=>{e=globalThis.setTimeout(()=>o(a("timeout")),Math.max(1,n))})])}finally{void 0!==e&&globalThis.clearTimeout(e)}}function m(t,o,r=15e4){const s=i(t);if(!s)return Promise.resolve();const l=e(o);return c(s,`z2m:${l||String(o)}`,async()=>{if(p(t),!l)throw a("invalid_topic");const e=t.connection,o=e?.subscribeMessage;if("function"!=typeof o||"function"!=typeof t?.callService)throw a("unsupported");const i=function(){const t=globalThis.crypto;return"function"==typeof t?.randomUUID?`houseplan-${t.randomUUID()}`:`houseplan-${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}(),s=Date.now()+Math.max(1,r);let c=!1,u=null,f=null,m=null;const y=new Promise(t=>{u=t}),w=new Promise((t,n)=>{f=t,m=n}),b=[];try{const r=await o.call(e,t=>{!0===d(t)?.retain&&h(t)&&u?.()},{type:"mqtt/subscribe",topic:`${l}/bridge/info`});"function"==typeof r&&b.push(r);const p=await o.call(e,t=>{if(!0===d(t)?.retain)return;const n=h(t);null!==n?n&&function(t){const n=d(t),e=n?.transaction??d(n?.data)?.transaction;return"string"==typeof e||"number"==typeof e?String(e):null}(n)===i&&f?.(n):c&&m?.(a("invalid_payload"))},{type:"mqtt/subscribe",topic:`${l}/bridge/response/networkmap`});"function"==typeof p&&b.push(p),await g(y,Math.min(4e3,Math.max(1,s-Date.now()))),c=!0,await t.callService("mqtt","publish",{topic:`${l}/bridge/request/networkmap`,payload:JSON.stringify({type:"raw",routes:!1,transaction:i}),qos:0,retain:!1});const v=await g(w,s-Date.now()),_=d(v)?.status;if(_&&"ok"!==_)throw a("provider");return n(v,l)}finally{for(const t of b)try{t()}catch{}}})}export{f as readZhaTopology,m as refreshZ2mTopology,u as subscribeZigbeeTopology,l as zigbeeTopologyRuntimeSnapshot};
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="dc3d46c4e6364ac253af4a77471ef78d9e3660ff8ef53d71db496f0d1810b107";import{n as t,b as n}from"./zigbee-topology-CH5b9l1A.js";import{B as e}from"./houseplan-card-DF8Mj-Od.js";const o=new WeakMap;function i(t){const n=function(t){const n=t?.connection||t;return!n||"object"!=typeof n&&"function"!=typeof n?null:n}(t);if(!n)return null;let e=o.get(n);return e||(e={revision:0,topologies:[],states:{},listeners:new Set,inflight:new Map},o.set(n,e)),e}function r(t,n,e){t.states={...t.states,[n]:e},function(t){t.revision++;for(const n of t.listeners)n()}(t)}function s(t){const n=t?.code;if("permission"===n||"unsupported"===n||"timeout"===n||"invalid_topic"===n||"invalid_payload"===n)return n;const e=String(t?.message||"").toLowerCase();return e.includes("unauthor")||e.includes("permission")?"permission":e.includes("unknown_command")||e.includes("not found")?"unsupported":"provider"}function a(t){return Object.assign(new Error(t),{code:t})}function c(t,n,e){const o=t.inflight.get(n);if(o)return o;r(t,n,{phase:"loading"});const i=e().then(n=>{if(!n.nodes.length&&n.warnings.some(t=>"invalid_payload"===t.code))throw a("invalid_payload");!function(t,n){t.topologies=[...t.topologies.filter(t=>!(t.provider===n.provider&&t.instanceId===n.instanceId)),n],r(t,"zha"===n.provider?"zha":`z2m:${n.instanceId}`,{phase:"ready",obtainedAt:n.obtainedAt,partial:n.warnings.length>0})}(t,n)}).catch(e=>{r(t,n,{phase:"error",error:s(e)})}).finally(()=>t.inflight.delete(n));return t.inflight.set(n,i),i}function l(t){const n=i(t);return n?{revision:n.revision,topologies:n.topologies,states:n.states}:{revision:0,topologies:[],states:{}}}function u(t,n){const e=i(t);return e?(e.listeners.add(n),()=>e.listeners.delete(n)):()=>{}}function f(t){if(!0!==t?.user?.is_admin)throw a("permission")}function p(n){const e=i(n);return e?c(e,"zha",async()=>{if(f(n),"function"!=typeof n?.callWS)throw a("unsupported");return t(await n.callWS({type:"zha/devices"}))}):Promise.resolve()}function d(t){return null!==t&&"object"==typeof t?t:null}function h(t){const n=d(t),e=n?.payload??t;if("string"!=typeof e)return e;try{return JSON.parse(e)}catch{return null}}async function g(t,n){let e;try{return await Promise.race([t,new Promise((t,o)=>{e=globalThis.setTimeout(()=>o(a("timeout")),Math.max(1,n))})])}finally{void 0!==e&&globalThis.clearTimeout(e)}}function m(t,o,r=15e4){const s=i(t);if(!s)return Promise.resolve();const l=e(o);return c(s,`z2m:${l||String(o)}`,async()=>{if(f(t),!l)throw a("invalid_topic");const e=t.connection,o=e?.subscribeMessage;if("function"!=typeof o||"function"!=typeof t?.callService)throw a("unsupported");const i=function(){const t=globalThis.crypto;return"function"==typeof t?.randomUUID?`houseplan-${t.randomUUID()}`:`houseplan-${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}`}(),s=Date.now()+Math.max(1,r);let c=!1,u=null,p=null,m=null;const y=new Promise(t=>{u=t}),w=new Promise((t,n)=>{p=t,m=n}),b=[];try{const r=await o.call(e,t=>{!0===d(t)?.retain&&h(t)&&u?.()},{type:"mqtt/subscribe",topic:`${l}/bridge/info`});"function"==typeof r&&b.push(r);const f=await o.call(e,t=>{if(!0===d(t)?.retain)return;const n=h(t);null!==n?n&&function(t){const n=d(t),e=n?.transaction??d(n?.data)?.transaction;return"string"==typeof e||"number"==typeof e?String(e):null}(n)===i&&p?.(n):c&&m?.(a("invalid_payload"))},{type:"mqtt/subscribe",topic:`${l}/bridge/response/networkmap`});"function"==typeof f&&b.push(f),await g(y,Math.min(4e3,Math.max(1,s-Date.now()))),c=!0,await t.callService("mqtt","publish",{topic:`${l}/bridge/request/networkmap`,payload:JSON.stringify({type:"raw",routes:!1,transaction:i}),qos:0,retain:!1});const v=await g(w,s-Date.now()),_=d(v)?.status;if(_&&"ok"!==_)throw a("provider");return n(v,l)}finally{for(const t of b)try{t()}catch{}}})}export{p as readZhaTopology,m as refreshZ2mTopology,u as subscribeZigbeeTopology,l as zigbeeTopologyRuntimeSnapshot};
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
globalThis.__HOUSEPLAN_BUILD_FINGERPRINT__="b47c3e03a9479551812b6a9233e3795cc51fb519726920a5969b4c9233f92370";try{await import("./houseplan-assets/houseplan-card-YE40fvv1.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__="dc3d46c4e6364ac253af4a77471ef78d9e3660ff8ef53d71db496f0d1810b107";try{await import("./houseplan-assets/houseplan-card-DF8Mj-Od.js")}catch(e){if(!customElements.get("houseplan-card")){const l=String(navigator.language||"en").toLowerCase();const m=l.startsWith("ru")?"House Plan обновился — перезагрузите страницу (Ctrl+F5).":l.startsWith("de")?"House Plan wurde aktualisiert — bitte laden Sie die Seite neu (Strg+F5).":l.startsWith("fr")?"House Plan a été mis à jour — veuillez recharger la page (Ctrl+F5).":"House Plan was updated — please reload the page (Ctrl+F5).";customElements.define("houseplan-card",class extends HTMLElement{setConfig(){}getCardSize(){return 1}connectedCallback(){this.style.cssText="display:block;box-sizing:border-box;padding:16px;border:1px solid var(--divider-color,#e0e0e0);border-radius:var(--ha-card-border-radius,12px);background:var(--card-background-color,#fff);color:var(--primary-text-color,#212121);font:14px/1.4 var(--paper-font-body1_-_font-family,sans-serif)";this.textContent=m}})}console.error("[houseplan] stale houseplan-card.js: the implementation chunk is unavailable",e)}
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user