From a629f013007cb3a9ac2f3fea19b875ef0a98de8f Mon Sep 17 00:00:00 2001 From: karwosts <32912880+karwosts@users.noreply.github.com> Date: Wed, 29 May 2024 06:44:11 -0700 Subject: [PATCH] Collapsible blueprint input sections (#19946) * Deduplicate blueprint editor code * Collapsible blueprint sections * add description * renamed collapsed * unused import * unused import * Don't allow collapsing sections with required * Update to new schema --- src/components/ha-expansion-panel.ts | 18 ++- src/data/blueprint.ts | 10 +- .../blueprint/blueprint-generic-editor.ts | 150 +++++++++++++----- 3 files changed, 134 insertions(+), 44 deletions(-) diff --git a/src/components/ha-expansion-panel.ts b/src/components/ha-expansion-panel.ts index 5f82762fa3..47c108e5bd 100644 --- a/src/components/ha-expansion-panel.ts +++ b/src/components/ha-expansion-panel.ts @@ -21,6 +21,8 @@ export class HaExpansionPanel extends LitElement { @property({ type: Boolean, reflect: true }) leftChevron = false; + @property({ type: Boolean, reflect: true }) noCollapse = false; + @property() header?: string; @property() secondary?: string; @@ -34,16 +36,17 @@ export class HaExpansionPanel extends LitElement {