diff --git a/bower.json b/bower.json index f0aca7d96b..615eac02b1 100644 --- a/bower.json +++ b/bower.json @@ -21,7 +21,8 @@ "polymer": "Polymer/polymer#~1.8.0", "vaadin-combo-box": "vaadin/vaadin-combo-box#~1.1.5", "paper-slider": "1.0.13", - "leaflet": "^1.0.2" + "leaflet": "^1.0.2", + "polymer-sortablejs": "^0.1.3" }, "resolutions": { "paper-slider": "1.0.13" diff --git a/panels/config/group/ha-config-section-group.html b/panels/config/group/ha-config-section-group.html new file mode 100644 index 0000000000..b83f74fea9 --- /dev/null +++ b/panels/config/group/ha-config-section-group.html @@ -0,0 +1,85 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/panels/config/group/ha-form-group.html b/panels/config/group/ha-form-group.html new file mode 100644 index 0000000000..0e98e1d7c8 --- /dev/null +++ b/panels/config/group/ha-form-group.html @@ -0,0 +1,196 @@ + + + + + + + + + + + + + + + + + + diff --git a/panels/config/ha-config-section.html b/panels/config/ha-config-section.html index 38223e2a02..e8d7b8244f 100644 --- a/panels/config/ha-config-section.html +++ b/panels/config/ha-config-section.html @@ -31,7 +31,7 @@ margin-top: -24px; } - .panel ::slotted(paper-card) { + .panel ::slotted(*) { margin-top: 24px; display: block; } diff --git a/panels/config/ha-entity-config.html b/panels/config/ha-entity-config.html index 4ffe874e6b..b658f914cd 100644 --- a/panels/config/ha-entity-config.html +++ b/panels/config/ha-entity-config.html @@ -7,7 +7,7 @@ .device-picker { @apply(--layout-horizontal); - padding-bottom: 32px; + padding-bottom: 24px; } .form-placeholder { @@ -19,12 +19,17 @@ [hidden]: { display: none; } + + .card-actions { + @apply(--layout-horizontal); + @apply(--layout-justified); + }
@@ -61,6 +66,13 @@ on-tap='saveEntity' disabled='[[computeShowPlaceholder(formState)]]' >SAVE +
@@ -77,11 +89,21 @@ Polymer({ observer: 'hassChanged', }, + label: { + type: String, + value: 'Device', + }, + entities: { type: Array, observer: 'entitiesChanged', }, + allowDelete: { + type: Boolean, + value: false, + }, + selectedEntity: { type: Number, value: -1, diff --git a/panels/config/ha-form-style.html b/panels/config/ha-form-style.html index 6754b1db9d..b4bf334aed 100644 --- a/panels/config/ha-form-style.html +++ b/panels/config/ha-form-style.html @@ -4,7 +4,7 @@ .form-group { @apply(--layout-horizontal); @apply(--layout-center); - padding: 4px 16px; + padding: 8px 16px; } .form-group label { @@ -14,6 +14,15 @@ .form-group .form-control { @apply(--layout-flex-1); } + + .form-group.vertical { + @apply(--layout-vertical); + @apply(--layout-start); + } + + paper-dropdown-menu.form-control { + margin: -9px 0; + } diff --git a/panels/config/ha-panel-config.html b/panels/config/ha-panel-config.html index aa149ecd48..be37fc10f9 100644 --- a/panels/config/ha-panel-config.html +++ b/panels/config/ha-panel-config.html @@ -5,6 +5,7 @@ + @@ -38,6 +39,11 @@
+ +