diff --git a/src/common/search/search-input.ts b/src/common/search/search-input.ts index 0b819496f2..1d52dbcde6 100644 --- a/src/common/search/search-input.ts +++ b/src/common/search/search-input.ts @@ -26,6 +26,9 @@ class SearchInput extends LitElement { @property({ type: Boolean }) public autofocus = false; + @property({ type: String }) + public label?: string; + public focus() { this.shadowRoot!.querySelector("paper-input")!.focus(); } @@ -43,7 +46,7 @@ class SearchInput extends LitElement {
${this.activeFilters ? html`
@@ -172,6 +175,9 @@ export class HaTabsSubpageDataTable extends LitElement { no-label-float no-underline @value-changed=${this._handleSearchChange} + .label=${this.hass.localize( + "ui.components.data-table.search" + )} > ${this.activeFilters diff --git a/src/panels/config/entities/ha-config-entities.ts b/src/panels/config/entities/ha-config-entities.ts index e43f2ab103..c833a96faa 100644 --- a/src/panels/config/entities/ha-config-entities.ts +++ b/src/panels/config/entities/ha-config-entities.ts @@ -422,6 +422,9 @@ export class HaConfigEntities extends SubscribeMixin(LitElement) { no-underline @value-changed=${this._handleSearchChange} .filter=${this._filter} + .label=${this.hass.localize( + "ui.panel.config.entities.picker.search" + )} >${activeFilters ? html`
diff --git a/src/panels/config/helpers/ha-config-helpers.ts b/src/panels/config/helpers/ha-config-helpers.ts index aa9418b709..113f7d0655 100644 --- a/src/panels/config/helpers/ha-config-helpers.ts +++ b/src/panels/config/helpers/ha-config-helpers.ts @@ -155,6 +155,9 @@ export class HaConfigHelpers extends LitElement { .data=${this._getItems(this._stateItems)} @row-click=${this._openEditDialog} hasFab + .noDataText=${this.hass.localize( + "ui.panel.config.helpers.picker.no_helpers" + )} >
@@ -293,6 +296,9 @@ class HaConfigIntegrations extends SubscribeMixin(LitElement) { no-underline .filter=${this._filter} @value-changed=${this._handleSearchChange} + .label=${this.hass.localize( + "ui.panel.config.integrations.search" + )} >
` diff --git a/src/panels/lovelace/editor/card-editor/hui-card-picker.ts b/src/panels/lovelace/editor/card-editor/hui-card-picker.ts index c9b7b8b963..ab87b56caa 100644 --- a/src/panels/lovelace/editor/card-editor/hui-card-picker.ts +++ b/src/panels/lovelace/editor/card-editor/hui-card-picker.ts @@ -97,6 +97,9 @@ export class HuiCardPicker extends LitElement { .filter=${this._filter} no-label-float @value-changed=${this._handleSearchChange} + .label=${this.hass.localize( + "ui.panel.lovelace.editor.card.generic.search" + )} >