mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-15 21:36:36 +00:00
dot notation for path property of ha-svg-icon (#7197)
This commit is contained in:
parent
3940606167
commit
5971aee02e
@ -105,7 +105,7 @@ class HassioAddonStore extends LitElement {
|
|||||||
@action=${this._handleAction}
|
@action=${this._handleAction}
|
||||||
>
|
>
|
||||||
<mwc-icon-button slot="trigger" alt="menu">
|
<mwc-icon-button slot="trigger" alt="menu">
|
||||||
<ha-svg-icon path=${mdiDotsVertical}></ha-svg-icon>
|
<ha-svg-icon .path=${mdiDotsVertical}></ha-svg-icon>
|
||||||
</mwc-icon-button>
|
</mwc-icon-button>
|
||||||
<mwc-list-item>
|
<mwc-list-item>
|
||||||
Repositories
|
Repositories
|
||||||
|
@ -69,7 +69,7 @@ const STAGE_ICON = {
|
|||||||
const PERMIS_DESC = {
|
const PERMIS_DESC = {
|
||||||
stage: {
|
stage: {
|
||||||
title: "Add-on Stage",
|
title: "Add-on Stage",
|
||||||
description: `Add-ons can have one of three stages:\n\n<ha-svg-icon path='${STAGE_ICON.stable}'></ha-svg-icon> **Stable**: These are add-ons ready to be used in production.\n\n<ha-svg-icon path='${STAGE_ICON.experimental}'></ha-svg-icon> **Experimental**: These may contain bugs, and may be unfinished.\n\n<ha-svg-icon path='${STAGE_ICON.deprecated}'></ha-svg-icon> **Deprecated**: These add-ons will no longer receive any updates.`,
|
description: `Add-ons can have one of three stages:\n\n<ha-svg-icon .path='${STAGE_ICON.stable}'></ha-svg-icon> **Stable**: These are add-ons ready to be used in production.\n\n<ha-svg-icon .path='${STAGE_ICON.experimental}'></ha-svg-icon> **Experimental**: These may contain bugs, and may be unfinished.\n\n<ha-svg-icon .path='${STAGE_ICON.deprecated}'></ha-svg-icon> **Deprecated**: These add-ons will no longer receive any updates.`,
|
||||||
},
|
},
|
||||||
rating: {
|
rating: {
|
||||||
title: "Add-on Security Rating",
|
title: "Add-on Security Rating",
|
||||||
@ -202,14 +202,14 @@ class HassioAddonInfo extends LitElement {
|
|||||||
<ha-svg-icon
|
<ha-svg-icon
|
||||||
title="Add-on is running"
|
title="Add-on is running"
|
||||||
class="running"
|
class="running"
|
||||||
path=${mdiCircle}
|
.path=${mdiCircle}
|
||||||
></ha-svg-icon>
|
></ha-svg-icon>
|
||||||
`
|
`
|
||||||
: html`
|
: html`
|
||||||
<ha-svg-icon
|
<ha-svg-icon
|
||||||
title="Add-on is stopped"
|
title="Add-on is stopped"
|
||||||
class="stopped"
|
class="stopped"
|
||||||
path=${mdiCircle}
|
.path=${mdiCircle}
|
||||||
></ha-svg-icon>
|
></ha-svg-icon>
|
||||||
`}
|
`}
|
||||||
`
|
`
|
||||||
@ -283,7 +283,7 @@ class HassioAddonInfo extends LitElement {
|
|||||||
label="host"
|
label="host"
|
||||||
description=""
|
description=""
|
||||||
>
|
>
|
||||||
<ha-svg-icon path=${mdiNetwork}></ha-svg-icon>
|
<ha-svg-icon .path=${mdiNetwork}></ha-svg-icon>
|
||||||
</ha-label-badge>
|
</ha-label-badge>
|
||||||
`
|
`
|
||||||
: ""}
|
: ""}
|
||||||
@ -295,7 +295,7 @@ class HassioAddonInfo extends LitElement {
|
|||||||
label="hardware"
|
label="hardware"
|
||||||
description=""
|
description=""
|
||||||
>
|
>
|
||||||
<ha-svg-icon path=${mdiChip}></ha-svg-icon>
|
<ha-svg-icon .path=${mdiChip}></ha-svg-icon>
|
||||||
</ha-label-badge>
|
</ha-label-badge>
|
||||||
`
|
`
|
||||||
: ""}
|
: ""}
|
||||||
@ -307,7 +307,7 @@ class HassioAddonInfo extends LitElement {
|
|||||||
label="hass"
|
label="hass"
|
||||||
description=""
|
description=""
|
||||||
>
|
>
|
||||||
<ha-svg-icon path=${mdiHomeAssistant}></ha-svg-icon>
|
<ha-svg-icon .path=${mdiHomeAssistant}></ha-svg-icon>
|
||||||
</ha-label-badge>
|
</ha-label-badge>
|
||||||
`
|
`
|
||||||
: ""}
|
: ""}
|
||||||
@ -319,7 +319,7 @@ class HassioAddonInfo extends LitElement {
|
|||||||
label="hassio"
|
label="hassio"
|
||||||
.description=${this.addon.hassio_role}
|
.description=${this.addon.hassio_role}
|
||||||
>
|
>
|
||||||
<ha-svg-icon path=${mdiHomeAssistant}></ha-svg-icon>
|
<ha-svg-icon .path=${mdiHomeAssistant}></ha-svg-icon>
|
||||||
</ha-label-badge>
|
</ha-label-badge>
|
||||||
`
|
`
|
||||||
: ""}
|
: ""}
|
||||||
@ -331,7 +331,7 @@ class HassioAddonInfo extends LitElement {
|
|||||||
label="docker"
|
label="docker"
|
||||||
description=""
|
description=""
|
||||||
>
|
>
|
||||||
<ha-svg-icon path=${mdiDocker}></ha-svg-icon>
|
<ha-svg-icon .path=${mdiDocker}></ha-svg-icon>
|
||||||
</ha-label-badge>
|
</ha-label-badge>
|
||||||
`
|
`
|
||||||
: ""}
|
: ""}
|
||||||
@ -343,7 +343,7 @@ class HassioAddonInfo extends LitElement {
|
|||||||
label="host pid"
|
label="host pid"
|
||||||
description=""
|
description=""
|
||||||
>
|
>
|
||||||
<ha-svg-icon path=${mdiPound}></ha-svg-icon>
|
<ha-svg-icon .path=${mdiPound}></ha-svg-icon>
|
||||||
</ha-label-badge>
|
</ha-label-badge>
|
||||||
`
|
`
|
||||||
: ""}
|
: ""}
|
||||||
@ -356,7 +356,7 @@ class HassioAddonInfo extends LitElement {
|
|||||||
label="apparmor"
|
label="apparmor"
|
||||||
description=""
|
description=""
|
||||||
>
|
>
|
||||||
<ha-svg-icon path=${mdiShield}></ha-svg-icon>
|
<ha-svg-icon .path=${mdiShield}></ha-svg-icon>
|
||||||
</ha-label-badge>
|
</ha-label-badge>
|
||||||
`
|
`
|
||||||
: ""}
|
: ""}
|
||||||
@ -368,7 +368,7 @@ class HassioAddonInfo extends LitElement {
|
|||||||
label="auth"
|
label="auth"
|
||||||
description=""
|
description=""
|
||||||
>
|
>
|
||||||
<ha-svg-icon path=${mdiKey}></ha-svg-icon>
|
<ha-svg-icon .path=${mdiKey}></ha-svg-icon>
|
||||||
</ha-label-badge>
|
</ha-label-badge>
|
||||||
`
|
`
|
||||||
: ""}
|
: ""}
|
||||||
@ -381,7 +381,7 @@ class HassioAddonInfo extends LitElement {
|
|||||||
description=""
|
description=""
|
||||||
>
|
>
|
||||||
<ha-svg-icon
|
<ha-svg-icon
|
||||||
path=${mdiCursorDefaultClickOutline}
|
.path=${mdiCursorDefaultClickOutline}
|
||||||
></ha-svg-icon>
|
></ha-svg-icon>
|
||||||
</ha-label-badge>
|
</ha-label-badge>
|
||||||
`
|
`
|
||||||
|
@ -91,7 +91,7 @@ class HassioRepositoriesDialog extends LitElement {
|
|||||||
title="Remove"
|
title="Remove"
|
||||||
@click=${this._removeRepository}
|
@click=${this._removeRepository}
|
||||||
>
|
>
|
||||||
<ha-svg-icon path=${mdiDelete}></ha-svg-icon>
|
<ha-svg-icon .path=${mdiDelete}></ha-svg-icon>
|
||||||
</mwc-icon-button>
|
</mwc-icon-button>
|
||||||
</paper-item>
|
</paper-item>
|
||||||
`;
|
`;
|
||||||
|
@ -196,7 +196,7 @@ class HassioSnapshotDialog extends LitElement {
|
|||||||
@click=${this._downloadClicked}
|
@click=${this._downloadClicked}
|
||||||
slot="primaryAction"
|
slot="primaryAction"
|
||||||
>
|
>
|
||||||
<ha-svg-icon path=${mdiDownload} class="icon"></ha-svg-icon>
|
<ha-svg-icon .path=${mdiDownload} class="icon"></ha-svg-icon>
|
||||||
Download Snapshot
|
Download Snapshot
|
||||||
</mwc-button>`
|
</mwc-button>`
|
||||||
: ""}
|
: ""}
|
||||||
@ -205,7 +205,7 @@ class HassioSnapshotDialog extends LitElement {
|
|||||||
@click=${this._partialRestoreClicked}
|
@click=${this._partialRestoreClicked}
|
||||||
slot="secondaryAction"
|
slot="secondaryAction"
|
||||||
>
|
>
|
||||||
<ha-svg-icon path=${mdiHistory} class="icon"></ha-svg-icon>
|
<ha-svg-icon .path=${mdiHistory} class="icon"></ha-svg-icon>
|
||||||
Restore Selected
|
Restore Selected
|
||||||
</mwc-button>
|
</mwc-button>
|
||||||
${this._snapshot.type === "full"
|
${this._snapshot.type === "full"
|
||||||
@ -214,7 +214,7 @@ class HassioSnapshotDialog extends LitElement {
|
|||||||
@click=${this._fullRestoreClicked}
|
@click=${this._fullRestoreClicked}
|
||||||
slot="secondaryAction"
|
slot="secondaryAction"
|
||||||
>
|
>
|
||||||
<ha-svg-icon path=${mdiHistory} class="icon"></ha-svg-icon>
|
<ha-svg-icon .path=${mdiHistory} class="icon"></ha-svg-icon>
|
||||||
Wipe & restore
|
Wipe & restore
|
||||||
</mwc-button>
|
</mwc-button>
|
||||||
`
|
`
|
||||||
@ -224,7 +224,10 @@ class HassioSnapshotDialog extends LitElement {
|
|||||||
@click=${this._deleteClicked}
|
@click=${this._deleteClicked}
|
||||||
slot="secondaryAction"
|
slot="secondaryAction"
|
||||||
>
|
>
|
||||||
<ha-svg-icon path=${mdiDelete} class="icon warning"></ha-svg-icon>
|
<ha-svg-icon
|
||||||
|
.path=${mdiDelete}
|
||||||
|
class="icon warning"
|
||||||
|
></ha-svg-icon>
|
||||||
<span class="warning">Delete Snapshot</span>
|
<span class="warning">Delete Snapshot</span>
|
||||||
</mwc-button>`
|
</mwc-button>`
|
||||||
: ""}
|
: ""}
|
||||||
|
@ -57,7 +57,7 @@ class HassioIngressView extends LitElement {
|
|||||||
aria-label=${this.hass.localize("ui.sidebar.sidebar_toggle")}
|
aria-label=${this.hass.localize("ui.sidebar.sidebar_toggle")}
|
||||||
@click=${this._toggleMenu}
|
@click=${this._toggleMenu}
|
||||||
>
|
>
|
||||||
<ha-svg-icon path=${mdiMenu}></ha-svg-icon>
|
<ha-svg-icon .path=${mdiMenu}></ha-svg-icon>
|
||||||
</mwc-icon-button>
|
</mwc-icon-button>
|
||||||
<div class="main-title">${this._addon.name}</div>
|
<div class="main-title">${this._addon.name}</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -117,7 +117,7 @@ class HassioSnapshots extends LitElement {
|
|||||||
@action=${this._handleAction}
|
@action=${this._handleAction}
|
||||||
>
|
>
|
||||||
<mwc-icon-button slot="trigger" alt="menu">
|
<mwc-icon-button slot="trigger" alt="menu">
|
||||||
<ha-svg-icon path=${mdiDotsVertical}></ha-svg-icon>
|
<ha-svg-icon .path=${mdiDotsVertical}></ha-svg-icon>
|
||||||
</mwc-icon-button>
|
</mwc-icon-button>
|
||||||
<mwc-list-item>
|
<mwc-list-item>
|
||||||
Reload
|
Reload
|
||||||
|
@ -52,7 +52,7 @@ class SearchInput extends LitElement {
|
|||||||
.noLabelFloat=${this.noLabelFloat}
|
.noLabelFloat=${this.noLabelFloat}
|
||||||
>
|
>
|
||||||
<ha-svg-icon
|
<ha-svg-icon
|
||||||
path=${mdiMagnify}
|
.path=${mdiMagnify}
|
||||||
slot="prefix"
|
slot="prefix"
|
||||||
class="prefix"
|
class="prefix"
|
||||||
></ha-svg-icon>
|
></ha-svg-icon>
|
||||||
@ -65,7 +65,7 @@ class SearchInput extends LitElement {
|
|||||||
alt="Clear"
|
alt="Clear"
|
||||||
title="Clear"
|
title="Clear"
|
||||||
>
|
>
|
||||||
<ha-svg-icon path=${mdiClose}></ha-svg-icon>
|
<ha-svg-icon .path=${mdiClose}></ha-svg-icon>
|
||||||
</mwc-icon-button>
|
</mwc-icon-button>
|
||||||
`}
|
`}
|
||||||
</paper-input>
|
</paper-input>
|
||||||
|
@ -60,7 +60,7 @@ export class HaDateRangePicker extends LitElement {
|
|||||||
?ranges=${this.ranges !== undefined}
|
?ranges=${this.ranges !== undefined}
|
||||||
>
|
>
|
||||||
<div slot="input" class="date-range-inputs">
|
<div slot="input" class="date-range-inputs">
|
||||||
<ha-svg-icon path=${mdiCalendar}></ha-svg-icon>
|
<ha-svg-icon .path=${mdiCalendar}></ha-svg-icon>
|
||||||
<paper-input
|
<paper-input
|
||||||
.value=${formatDateTime(this.startDate, this.hass.language)}
|
.value=${formatDateTime(this.startDate, this.hass.language)}
|
||||||
.label=${this.hass.localize(
|
.label=${this.hass.localize(
|
||||||
|
@ -17,7 +17,7 @@ export const createCloseHeading = (hass: HomeAssistant, title: string) => html`
|
|||||||
class="header_button"
|
class="header_button"
|
||||||
dir=${computeRTLDirection(hass)}
|
dir=${computeRTLDirection(hass)}
|
||||||
>
|
>
|
||||||
<ha-svg-icon path=${mdiClose}></ha-svg-icon>
|
<ha-svg-icon .path=${mdiClose}></ha-svg-icon>
|
||||||
</mwc-icon-button>
|
</mwc-icon-button>
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
@ -62,7 +62,7 @@ class HaMenuButton extends LitElement {
|
|||||||
aria-label=${this.hass.localize("ui.sidebar.sidebar_toggle")}
|
aria-label=${this.hass.localize("ui.sidebar.sidebar_toggle")}
|
||||||
@click=${this._toggleMenu}
|
@click=${this._toggleMenu}
|
||||||
>
|
>
|
||||||
<ha-svg-icon path=${mdiMenu}></ha-svg-icon>
|
<ha-svg-icon .path=${mdiMenu}></ha-svg-icon>
|
||||||
</mwc-icon-button>
|
</mwc-icon-button>
|
||||||
${hasNotifications ? html` <div class="dot"></div> ` : ""}
|
${hasNotifications ? html` <div class="dot"></div> ` : ""}
|
||||||
`;
|
`;
|
||||||
|
@ -130,7 +130,7 @@ export class HaConfigAreasDashboard extends LitElement {
|
|||||||
)}"
|
)}"
|
||||||
@click=${this._createArea}
|
@click=${this._createArea}
|
||||||
>
|
>
|
||||||
<ha-svg-icon slot="icon" path=${mdiPlus}></ha-svg-icon>
|
<ha-svg-icon slot="icon" .path=${mdiPlus}></ha-svg-icon>
|
||||||
</mwc-fab>
|
</mwc-fab>
|
||||||
</hass-tabs-subpage-data-table>
|
</hass-tabs-subpage-data-table>
|
||||||
`;
|
`;
|
||||||
|
@ -133,7 +133,7 @@ export default class HaAutomationActionRow extends LitElement {
|
|||||||
)}
|
)}
|
||||||
@click=${this._moveUp}
|
@click=${this._moveUp}
|
||||||
>
|
>
|
||||||
<ha-svg-icon path=${mdiArrowUp}></ha-svg-icon>
|
<ha-svg-icon .path=${mdiArrowUp}></ha-svg-icon>
|
||||||
</mwc-icon-button>
|
</mwc-icon-button>
|
||||||
`
|
`
|
||||||
: ""}
|
: ""}
|
||||||
@ -148,7 +148,7 @@ export default class HaAutomationActionRow extends LitElement {
|
|||||||
)}
|
)}
|
||||||
@click=${this._moveDown}
|
@click=${this._moveDown}
|
||||||
>
|
>
|
||||||
<ha-svg-icon path=${mdiArrowDown}></ha-svg-icon>
|
<ha-svg-icon .path=${mdiArrowDown}></ha-svg-icon>
|
||||||
</mwc-icon-button>
|
</mwc-icon-button>
|
||||||
`
|
`
|
||||||
: ""}
|
: ""}
|
||||||
@ -157,7 +157,7 @@ export default class HaAutomationActionRow extends LitElement {
|
|||||||
slot="trigger"
|
slot="trigger"
|
||||||
.title=${this.hass.localize("ui.common.menu")}
|
.title=${this.hass.localize("ui.common.menu")}
|
||||||
.label=${this.hass.localize("ui.common.overflow_menu")}
|
.label=${this.hass.localize("ui.common.overflow_menu")}
|
||||||
><ha-svg-icon path=${mdiDotsVertical}></ha-svg-icon>
|
><ha-svg-icon .path=${mdiDotsVertical}></ha-svg-icon>
|
||||||
</mwc-icon-button>
|
</mwc-icon-button>
|
||||||
<mwc-list-item .disabled=${!this._uiModeAvailable}>
|
<mwc-list-item .disabled=${!this._uiModeAvailable}>
|
||||||
${yamlMode
|
${yamlMode
|
||||||
|
@ -40,7 +40,7 @@ export class HaChooseAction extends LitElement implements ActionElement {
|
|||||||
"ui.panel.config.automation.editor.actions.type.choose.remove_option"
|
"ui.panel.config.automation.editor.actions.type.choose.remove_option"
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<ha-svg-icon path=${mdiDelete}></ha-svg-icon>
|
<ha-svg-icon .path=${mdiDelete}></ha-svg-icon>
|
||||||
</mwc-icon-button>
|
</mwc-icon-button>
|
||||||
<div class="card-content">
|
<div class="card-content">
|
||||||
<h2>
|
<h2>
|
||||||
|
@ -71,7 +71,7 @@ export default class HaAutomationConditionRow extends LitElement {
|
|||||||
.title=${this.hass.localize("ui.common.menu")}
|
.title=${this.hass.localize("ui.common.menu")}
|
||||||
.label=${this.hass.localize("ui.common.overflow_menu")}
|
.label=${this.hass.localize("ui.common.overflow_menu")}
|
||||||
slot="trigger"
|
slot="trigger"
|
||||||
><ha-svg-icon path=${mdiDotsVertical}></ha-svg-icon
|
><ha-svg-icon .path=${mdiDotsVertical}></ha-svg-icon
|
||||||
></mwc-icon-button>
|
></mwc-icon-button>
|
||||||
<mwc-list-item>
|
<mwc-list-item>
|
||||||
${this._yamlMode
|
${this._yamlMode
|
||||||
|
@ -342,7 +342,7 @@ export class HaAutomationEditor extends LitElement {
|
|||||||
.title=${this.hass.localize("ui.panel.config.automation.editor.save")}
|
.title=${this.hass.localize("ui.panel.config.automation.editor.save")}
|
||||||
@click=${this._saveAutomation}
|
@click=${this._saveAutomation}
|
||||||
>
|
>
|
||||||
<ha-svg-icon slot="icon" path=${mdiContentSave}></ha-svg-icon>
|
<ha-svg-icon slot="icon" .path=${mdiContentSave}></ha-svg-icon>
|
||||||
</mwc-fab>
|
</mwc-fab>
|
||||||
</hass-tabs-subpage>
|
</hass-tabs-subpage>
|
||||||
`;
|
`;
|
||||||
|
@ -176,7 +176,7 @@ class HaAutomationPicker extends LitElement {
|
|||||||
)}
|
)}
|
||||||
@click=${this._createNew}
|
@click=${this._createNew}
|
||||||
>
|
>
|
||||||
<ha-svg-icon slot="icon" path=${mdiPlus}></ha-svg-icon>
|
<ha-svg-icon slot="icon" .path=${mdiPlus}></ha-svg-icon>
|
||||||
</mwc-fab>
|
</mwc-fab>
|
||||||
</hass-tabs-subpage-data-table>
|
</hass-tabs-subpage-data-table>
|
||||||
`;
|
`;
|
||||||
|
@ -102,7 +102,7 @@ export default class HaAutomationTriggerRow extends LitElement {
|
|||||||
slot="trigger"
|
slot="trigger"
|
||||||
.title=${this.hass.localize("ui.common.menu")}
|
.title=${this.hass.localize("ui.common.menu")}
|
||||||
.label=${this.hass.localize("ui.common.overflow_menu")}
|
.label=${this.hass.localize("ui.common.overflow_menu")}
|
||||||
><ha-svg-icon path=${mdiDotsVertical}></ha-svg-icon
|
><ha-svg-icon .path=${mdiDotsVertical}></ha-svg-icon
|
||||||
></mwc-icon-button>
|
></mwc-icon-button>
|
||||||
<mwc-list-item .disabled=${selected === -1}>
|
<mwc-list-item .disabled=${selected === -1}>
|
||||||
${yamlMode
|
${yamlMode
|
||||||
|
@ -463,7 +463,7 @@ export class HaConfigEntities extends SubscribeMixin(LitElement) {
|
|||||||
"ui.panel.config.entities.picker.filter.filter"
|
"ui.panel.config.entities.picker.filter.filter"
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<ha-svg-icon path=${mdiFilterVariant}></ha-svg-icon>
|
<ha-svg-icon .path=${mdiFilterVariant}></ha-svg-icon>
|
||||||
</mwc-icon-button>
|
</mwc-icon-button>
|
||||||
<mwc-list-item
|
<mwc-list-item
|
||||||
@request-selected="${this._showDisabledChanged}"
|
@request-selected="${this._showDisabledChanged}"
|
||||||
|
@ -164,7 +164,7 @@ export class HaConfigHelpers extends LitElement {
|
|||||||
)}"
|
)}"
|
||||||
@click=${this._createHelpler}
|
@click=${this._createHelpler}
|
||||||
>
|
>
|
||||||
<ha-svg-icon slot="icon" path=${mdiPlus}></ha-svg-icon>
|
<ha-svg-icon slot="icon" .path=${mdiPlus}></ha-svg-icon>
|
||||||
</mwc-fab>
|
</mwc-fab>
|
||||||
</hass-tabs-subpage-data-table>
|
</hass-tabs-subpage-data-table>
|
||||||
`;
|
`;
|
||||||
|
@ -287,7 +287,7 @@ class HaConfigIntegrations extends SubscribeMixin(LitElement) {
|
|||||||
.label=${this.hass.localize("ui.common.overflow_menu")}
|
.label=${this.hass.localize("ui.common.overflow_menu")}
|
||||||
slot="trigger"
|
slot="trigger"
|
||||||
>
|
>
|
||||||
<ha-svg-icon path=${mdiDotsVertical}></ha-svg-icon>
|
<ha-svg-icon .path=${mdiDotsVertical}></ha-svg-icon>
|
||||||
</mwc-icon-button>
|
</mwc-icon-button>
|
||||||
<mwc-list-item>
|
<mwc-list-item>
|
||||||
${this.hass.localize(
|
${this.hass.localize(
|
||||||
@ -480,7 +480,7 @@ class HaConfigIntegrations extends SubscribeMixin(LitElement) {
|
|||||||
title=${this.hass.localize("ui.panel.config.integrations.new")}
|
title=${this.hass.localize("ui.panel.config.integrations.new")}
|
||||||
@click=${this._createFlow}
|
@click=${this._createFlow}
|
||||||
>
|
>
|
||||||
<ha-svg-icon slot="icon" path=${mdiPlus}></ha-svg-icon>
|
<ha-svg-icon slot="icon" .path=${mdiPlus}></ha-svg-icon>
|
||||||
</mwc-fab>
|
</mwc-fab>
|
||||||
</hass-tabs-subpage>
|
</hass-tabs-subpage>
|
||||||
`;
|
`;
|
||||||
|
@ -249,7 +249,7 @@ export class HaIntegrationCard extends LitElement {
|
|||||||
.label=${this.hass.localize("ui.common.overflow_menu")}
|
.label=${this.hass.localize("ui.common.overflow_menu")}
|
||||||
slot="trigger"
|
slot="trigger"
|
||||||
>
|
>
|
||||||
<ha-svg-icon path=${mdiDotsVertical}></ha-svg-icon>
|
<ha-svg-icon .path=${mdiDotsVertical}></ha-svg-icon>
|
||||||
</mwc-icon-button>
|
</mwc-icon-button>
|
||||||
<mwc-list-item @request-selected="${this._handleSystemOptions}">
|
<mwc-list-item @request-selected="${this._handleSystemOptions}">
|
||||||
${this.hass.localize(
|
${this.hass.localize(
|
||||||
|
@ -87,7 +87,7 @@ class ZHAConfigDashboard extends LitElement {
|
|||||||
title=${this.hass.localize("ui.panel.config.zha.add_device")}
|
title=${this.hass.localize("ui.panel.config.zha.add_device")}
|
||||||
?rtl=${computeRTL(this.hass)}
|
?rtl=${computeRTL(this.hass)}
|
||||||
>
|
>
|
||||||
<ha-svg-icon slot="icon" path=${mdiPlus}></ha-svg-icon>
|
<ha-svg-icon slot="icon" .path=${mdiPlus}></ha-svg-icon>
|
||||||
</mwc-fab>
|
</mwc-fab>
|
||||||
</a>
|
</a>
|
||||||
</hass-tabs-subpage>
|
</hass-tabs-subpage>
|
||||||
|
@ -129,7 +129,7 @@ export class ZHAGroupsDashboard extends LitElement {
|
|||||||
<mwc-fab
|
<mwc-fab
|
||||||
title=${this.hass!.localize("ui.panel.config.zha.groups.add_group")}
|
title=${this.hass!.localize("ui.panel.config.zha.groups.add_group")}
|
||||||
>
|
>
|
||||||
<ha-svg-icon slot="icon" path=${mdiPlus}></ha-svg-icon>
|
<ha-svg-icon slot="icon" .path=${mdiPlus}></ha-svg-icon>
|
||||||
</mwc-fab>
|
</mwc-fab>
|
||||||
</a>
|
</a>
|
||||||
</hass-tabs-subpage-data-table>
|
</hass-tabs-subpage-data-table>
|
||||||
|
@ -229,7 +229,7 @@ export class HaConfigLovelaceDashboards extends LitElement {
|
|||||||
)}"
|
)}"
|
||||||
@click=${this._addDashboard}
|
@click=${this._addDashboard}
|
||||||
>
|
>
|
||||||
<ha-svg-icon slot="icon" path=${mdiPlus}></ha-svg-icon>
|
<ha-svg-icon slot="icon" .path=${mdiPlus}></ha-svg-icon>
|
||||||
</mwc-fab>
|
</mwc-fab>
|
||||||
</hass-tabs-subpage-data-table>
|
</hass-tabs-subpage-data-table>
|
||||||
`;
|
`;
|
||||||
|
@ -109,7 +109,7 @@ export class HaConfigLovelaceRescources extends LitElement {
|
|||||||
)}
|
)}
|
||||||
@click=${this._addResource}
|
@click=${this._addResource}
|
||||||
>
|
>
|
||||||
<ha-svg-icon slot="icon" path=${mdiPlus}></ha-svg-icon>
|
<ha-svg-icon slot="icon" .path=${mdiPlus}></ha-svg-icon>
|
||||||
</mwc-fab>
|
</mwc-fab>
|
||||||
</hass-tabs-subpage-data-table>
|
</hass-tabs-subpage-data-table>
|
||||||
`;
|
`;
|
||||||
|
@ -136,7 +136,7 @@ class HaConfigPerson extends LitElement {
|
|||||||
title="${hass.localize("ui.panel.config.person.add_person")}"
|
title="${hass.localize("ui.panel.config.person.add_person")}"
|
||||||
@click=${this._createPerson}
|
@click=${this._createPerson}
|
||||||
>
|
>
|
||||||
<ha-svg-icon slot="icon" path=${mdiPlus}></ha-svg-icon>
|
<ha-svg-icon slot="icon" .path=${mdiPlus}></ha-svg-icon>
|
||||||
</mwc-fab>
|
</mwc-fab>
|
||||||
</hass-tabs-subpage>
|
</hass-tabs-subpage>
|
||||||
`;
|
`;
|
||||||
|
@ -158,7 +158,7 @@ class HaSceneDashboard extends LitElement {
|
|||||||
"ui.panel.config.scene.picker.add_scene"
|
"ui.panel.config.scene.picker.add_scene"
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<ha-svg-icon slot="icon" path=${mdiPlus}></ha-svg-icon>
|
<ha-svg-icon slot="icon" .path=${mdiPlus}></ha-svg-icon>
|
||||||
</mwc-fab>
|
</mwc-fab>
|
||||||
</a>
|
</a>
|
||||||
</hass-tabs-subpage-data-table>
|
</hass-tabs-subpage-data-table>
|
||||||
|
@ -405,7 +405,7 @@ export class HaSceneEditor extends SubscribeMixin(LitElement) {
|
|||||||
@click=${this._saveScene}
|
@click=${this._saveScene}
|
||||||
class=${classMap({ dirty: this._dirty })}
|
class=${classMap({ dirty: this._dirty })}
|
||||||
>
|
>
|
||||||
<ha-svg-icon slot="icon" path=${mdiContentSave}></ha-svg-icon>
|
<ha-svg-icon slot="icon" .path=${mdiContentSave}></ha-svg-icon>
|
||||||
</mwc-fab>
|
</mwc-fab>
|
||||||
</hass-tabs-subpage>
|
</hass-tabs-subpage>
|
||||||
`;
|
`;
|
||||||
|
@ -260,7 +260,7 @@ export class HaScriptEditor extends LitElement {
|
|||||||
dirty: this._dirty,
|
dirty: this._dirty,
|
||||||
})}
|
})}
|
||||||
>
|
>
|
||||||
<ha-svg-icon slot="icon" path=${mdiContentSave}></ha-svg-icon>
|
<ha-svg-icon slot="icon" .path=${mdiContentSave}></ha-svg-icon>
|
||||||
</mwc-fab>
|
</mwc-fab>
|
||||||
</hass-tabs-subpage>
|
</hass-tabs-subpage>
|
||||||
`;
|
`;
|
||||||
|
@ -155,7 +155,7 @@ class HaScriptPicker extends LitElement {
|
|||||||
)}"
|
)}"
|
||||||
?rtl=${computeRTL(this.hass)}
|
?rtl=${computeRTL(this.hass)}
|
||||||
>
|
>
|
||||||
<ha-svg-icon slot="icon" path=${mdiPlus}></ha-svg-icon>
|
<ha-svg-icon slot="icon" .path=${mdiPlus}></ha-svg-icon>
|
||||||
</mwc-fab>
|
</mwc-fab>
|
||||||
</a>
|
</a>
|
||||||
</hass-tabs-subpage-data-table>
|
</hass-tabs-subpage-data-table>
|
||||||
|
@ -198,7 +198,7 @@ export class HaConfigTags extends SubscribeMixin(LitElement) {
|
|||||||
title=${this.hass.localize("ui.panel.config.tags.add_tag")}
|
title=${this.hass.localize("ui.panel.config.tags.add_tag")}
|
||||||
@click=${this._addTag}
|
@click=${this._addTag}
|
||||||
>
|
>
|
||||||
<ha-svg-icon slot="icon" path=${mdiPlus}></ha-svg-icon>
|
<ha-svg-icon slot="icon" .path=${mdiPlus}></ha-svg-icon>
|
||||||
</mwc-fab>
|
</mwc-fab>
|
||||||
</hass-tabs-subpage-data-table>
|
</hass-tabs-subpage-data-table>
|
||||||
`;
|
`;
|
||||||
|
@ -102,7 +102,7 @@ export class HaConfigUsers extends LitElement {
|
|||||||
.title=${this.hass.localize("ui.panel.config.users.picker.add_user")}
|
.title=${this.hass.localize("ui.panel.config.users.picker.add_user")}
|
||||||
@click=${this._addUser}
|
@click=${this._addUser}
|
||||||
>
|
>
|
||||||
<ha-svg-icon slot="icon" path=${mdiPlus}></ha-svg-icon>
|
<ha-svg-icon slot="icon" .path=${mdiPlus}></ha-svg-icon>
|
||||||
</mwc-fab>
|
</mwc-fab>
|
||||||
</hass-tabs-subpage-data-table>
|
</hass-tabs-subpage-data-table>
|
||||||
`;
|
`;
|
||||||
|
@ -260,7 +260,7 @@ export class HaConfigZone extends SubscribeMixin(LitElement) {
|
|||||||
title=${hass.localize("ui.panel.config.zone.add_zone")}
|
title=${hass.localize("ui.panel.config.zone.add_zone")}
|
||||||
@click=${this._createZone}
|
@click=${this._createZone}
|
||||||
>
|
>
|
||||||
<ha-svg-icon slot="icon" path=${mdiPlus}></ha-svg-icon>
|
<ha-svg-icon slot="icon" .path=${mdiPlus}></ha-svg-icon>
|
||||||
</mwc-fab>
|
</mwc-fab>
|
||||||
</hass-tabs-subpage>
|
</hass-tabs-subpage>
|
||||||
`;
|
`;
|
||||||
|
@ -86,7 +86,7 @@ export class HaPanelLogbook extends LitElement {
|
|||||||
@click=${this._refreshLogbook}
|
@click=${this._refreshLogbook}
|
||||||
.disabled=${this._isLoading}
|
.disabled=${this._isLoading}
|
||||||
>
|
>
|
||||||
<ha-svg-icon path=${mdiRefresh}></ha-svg-icon>
|
<ha-svg-icon .path=${mdiRefresh}></ha-svg-icon>
|
||||||
</mwc-icon-button>
|
</mwc-icon-button>
|
||||||
</app-toolbar>
|
</app-toolbar>
|
||||||
</app-header>
|
</app-header>
|
||||||
|
@ -58,14 +58,14 @@ export class HuiCardOptions extends LitElement {
|
|||||||
.length ===
|
.length ===
|
||||||
this.path![1] + 1}
|
this.path![1] + 1}
|
||||||
>
|
>
|
||||||
<ha-svg-icon path=${mdiArrowDown}></ha-svg-icon>
|
<ha-svg-icon .path=${mdiArrowDown}></ha-svg-icon>
|
||||||
</mwc-icon-button>
|
</mwc-icon-button>
|
||||||
<mwc-icon-button
|
<mwc-icon-button
|
||||||
title="Move card up"
|
title="Move card up"
|
||||||
class="move-arrow"
|
class="move-arrow"
|
||||||
@click=${this._cardUp}
|
@click=${this._cardUp}
|
||||||
?disabled=${this.path![1] === 0}
|
?disabled=${this.path![1] === 0}
|
||||||
><ha-svg-icon path=${mdiArrowUp}></ha-svg-icon
|
><ha-svg-icon .path=${mdiArrowUp}></ha-svg-icon
|
||||||
></mwc-icon-button>
|
></mwc-icon-button>
|
||||||
<ha-button-menu corner="BOTTOM_START" @action=${this._handleAction}>
|
<ha-button-menu corner="BOTTOM_START" @action=${this._handleAction}>
|
||||||
<mwc-icon-button
|
<mwc-icon-button
|
||||||
@ -77,7 +77,7 @@ export class HuiCardOptions extends LitElement {
|
|||||||
"ui.panel.lovelace.editor.edit_card.options"
|
"ui.panel.lovelace.editor.edit_card.options"
|
||||||
)}"
|
)}"
|
||||||
>
|
>
|
||||||
<ha-svg-icon path=${mdiDotsVertical}></ha-svg-icon>
|
<ha-svg-icon .path=${mdiDotsVertical}></ha-svg-icon>
|
||||||
</mwc-icon-button>
|
</mwc-icon-button>
|
||||||
|
|
||||||
<mwc-list-item>
|
<mwc-list-item>
|
||||||
|
@ -174,7 +174,7 @@ export class HuiDialogEditCard extends LitElement implements HassDialog {
|
|||||||
dir=${computeRTLDirection(this.hass)}
|
dir=${computeRTLDirection(this.hass)}
|
||||||
>
|
>
|
||||||
<mwc-icon-button>
|
<mwc-icon-button>
|
||||||
<ha-svg-icon path=${mdiHelpCircle}></ha-svg-icon>
|
<ha-svg-icon .path=${mdiHelpCircle}></ha-svg-icon>
|
||||||
</mwc-icon-button>
|
</mwc-icon-button>
|
||||||
</a>
|
</a>
|
||||||
`
|
`
|
||||||
|
@ -74,7 +74,7 @@ export class HuiSaveConfig extends LitElement implements HassDialog {
|
|||||||
dir=${computeRTLDirection(this.hass!)}
|
dir=${computeRTLDirection(this.hass!)}
|
||||||
>
|
>
|
||||||
<mwc-icon-button>
|
<mwc-icon-button>
|
||||||
<ha-svg-icon path=${mdiHelpCircle}></ha-svg-icon>
|
<ha-svg-icon .path=${mdiHelpCircle}></ha-svg-icon>
|
||||||
</mwc-icon-button>
|
</mwc-icon-button>
|
||||||
</a>`}
|
</a>`}
|
||||||
>
|
>
|
||||||
|
@ -112,7 +112,7 @@ export class HuiUnusedEntities extends LitElement {
|
|||||||
.label=${this.hass.localize("ui.panel.lovelace.editor.edit_card.add")}
|
.label=${this.hass.localize("ui.panel.lovelace.editor.edit_card.add")}
|
||||||
@click=${this._addToLovelaceView}
|
@click=${this._addToLovelaceView}
|
||||||
>
|
>
|
||||||
<ha-svg-icon slot="icon" path=${mdiPlus}></ha-svg-icon>
|
<ha-svg-icon slot="icon" .path=${mdiPlus}></ha-svg-icon>
|
||||||
</mwc-fab>
|
</mwc-fab>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
|
@ -115,7 +115,7 @@ class HUIRoot extends LitElement {
|
|||||||
)}"
|
)}"
|
||||||
@click="${this._editModeDisable}"
|
@click="${this._editModeDisable}"
|
||||||
>
|
>
|
||||||
<ha-svg-icon path=${mdiClose}></ha-svg-icon>
|
<ha-svg-icon .path=${mdiClose}></ha-svg-icon>
|
||||||
</mwc-icon-button>
|
</mwc-icon-button>
|
||||||
<div main-title>
|
<div main-title>
|
||||||
${this.config.title ||
|
${this.config.title ||
|
||||||
@ -130,7 +130,7 @@ class HUIRoot extends LitElement {
|
|||||||
class="edit-icon"
|
class="edit-icon"
|
||||||
@click="${this._editLovelace}"
|
@click="${this._editLovelace}"
|
||||||
>
|
>
|
||||||
<ha-svg-icon path=${mdiPencil}></ha-svg-icon>
|
<ha-svg-icon .path=${mdiPencil}></ha-svg-icon>
|
||||||
</mwc-icon-button>
|
</mwc-icon-button>
|
||||||
</div>
|
</div>
|
||||||
<a
|
<a
|
||||||
@ -144,7 +144,7 @@ class HUIRoot extends LitElement {
|
|||||||
"ui.panel.lovelace.menu.help"
|
"ui.panel.lovelace.menu.help"
|
||||||
)}"
|
)}"
|
||||||
>
|
>
|
||||||
<ha-svg-icon path=${mdiHelpCircle}></ha-svg-icon>
|
<ha-svg-icon .path=${mdiHelpCircle}></ha-svg-icon>
|
||||||
</mwc-icon-button>
|
</mwc-icon-button>
|
||||||
</a>
|
</a>
|
||||||
<ha-button-menu corner="BOTTOM_START">
|
<ha-button-menu corner="BOTTOM_START">
|
||||||
@ -157,7 +157,7 @@ class HUIRoot extends LitElement {
|
|||||||
"ui.panel.lovelace.editor.menu.open"
|
"ui.panel.lovelace.editor.menu.open"
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<ha-svg-icon path=${mdiDotsVertical}></ha-svg-icon>
|
<ha-svg-icon .path=${mdiDotsVertical}></ha-svg-icon>
|
||||||
</mwc-icon-button>
|
</mwc-icon-button>
|
||||||
${__DEMO__ /* No unused entities available in the demo */
|
${__DEMO__ /* No unused entities available in the demo */
|
||||||
? ""
|
? ""
|
||||||
@ -194,7 +194,7 @@ class HUIRoot extends LitElement {
|
|||||||
label="Start conversation"
|
label="Start conversation"
|
||||||
@click=${this._showVoiceCommandDialog}
|
@click=${this._showVoiceCommandDialog}
|
||||||
>
|
>
|
||||||
<ha-svg-icon path=${mdiMicrophone}></ha-svg-icon>
|
<ha-svg-icon .path=${mdiMicrophone}></ha-svg-icon>
|
||||||
</mwc-icon-button>
|
</mwc-icon-button>
|
||||||
`
|
`
|
||||||
: ""}
|
: ""}
|
||||||
@ -208,7 +208,7 @@ class HUIRoot extends LitElement {
|
|||||||
"ui.panel.lovelace.editor.menu.open"
|
"ui.panel.lovelace.editor.menu.open"
|
||||||
)}"
|
)}"
|
||||||
>
|
>
|
||||||
<ha-svg-icon path=${mdiDotsVertical}></ha-svg-icon>
|
<ha-svg-icon .path=${mdiDotsVertical}></ha-svg-icon>
|
||||||
</mwc-icon-button>
|
</mwc-icon-button>
|
||||||
${this._yamlMode
|
${this._yamlMode
|
||||||
? html`
|
? html`
|
||||||
@ -332,7 +332,7 @@ class HUIRoot extends LitElement {
|
|||||||
"ui.panel.lovelace.editor.edit_view.edit"
|
"ui.panel.lovelace.editor.edit_view.edit"
|
||||||
)}"
|
)}"
|
||||||
class="edit-icon view"
|
class="edit-icon view"
|
||||||
path=${mdiPencil}
|
.path=${mdiPencil}
|
||||||
@click="${this._editView}"
|
@click="${this._editView}"
|
||||||
></ha-svg-icon>
|
></ha-svg-icon>
|
||||||
<ha-icon-button-arrow-next
|
<ha-icon-button-arrow-next
|
||||||
@ -359,7 +359,7 @@ class HUIRoot extends LitElement {
|
|||||||
"ui.panel.lovelace.editor.edit_view.add"
|
"ui.panel.lovelace.editor.edit_view.add"
|
||||||
)}"
|
)}"
|
||||||
>
|
>
|
||||||
<ha-svg-icon path=${mdiPlus}></ha-svg-icon>
|
<ha-svg-icon .path=${mdiPlus}></ha-svg-icon>
|
||||||
</mwc-icon-button>
|
</mwc-icon-button>
|
||||||
`
|
`
|
||||||
: ""}
|
: ""}
|
||||||
|
@ -90,7 +90,7 @@ export class MasonryView extends LitElement implements LovelaceViewElement {
|
|||||||
rtl: computeRTL(this.hass!),
|
rtl: computeRTL(this.hass!),
|
||||||
})}
|
})}
|
||||||
>
|
>
|
||||||
<ha-svg-icon slot="icon" path=${mdiPlus}></ha-svg-icon>
|
<ha-svg-icon slot="icon" .path=${mdiPlus}></ha-svg-icon>
|
||||||
</mwc-fab>
|
</mwc-fab>
|
||||||
`
|
`
|
||||||
: ""}
|
: ""}
|
||||||
|
@ -82,7 +82,7 @@ export class PanelView extends LitElement implements LovelaceViewElement {
|
|||||||
rtl: computeRTL(this.hass!),
|
rtl: computeRTL(this.hass!),
|
||||||
})}
|
})}
|
||||||
>
|
>
|
||||||
<ha-svg-icon slot="icon" path=${mdiPlus}></ha-svg-icon>
|
<ha-svg-icon slot="icon" .path=${mdiPlus}></ha-svg-icon>
|
||||||
</mwc-fab>
|
</mwc-fab>
|
||||||
`
|
`
|
||||||
: ""}
|
: ""}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user