mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 11:16:35 +00:00
Make sure we have no ha-icon
in supervisor (#10176)
This commit is contained in:
parent
fb1deb838c
commit
9e35c1ab68
@ -1,4 +1,5 @@
|
|||||||
import { Layout1d, scroll } from "@lit-labs/virtualizer";
|
import { Layout1d, scroll } from "@lit-labs/virtualizer";
|
||||||
|
import { mdiArrowDown, mdiArrowUp } from "@mdi/js";
|
||||||
import deepClone from "deep-clone-simple";
|
import deepClone from "deep-clone-simple";
|
||||||
import {
|
import {
|
||||||
css,
|
css,
|
||||||
@ -27,7 +28,7 @@ import { nextRender } from "../../common/util/render-status";
|
|||||||
import { haStyleScrollbar } from "../../resources/styles";
|
import { haStyleScrollbar } from "../../resources/styles";
|
||||||
import "../ha-checkbox";
|
import "../ha-checkbox";
|
||||||
import type { HaCheckbox } from "../ha-checkbox";
|
import type { HaCheckbox } from "../ha-checkbox";
|
||||||
import "../ha-icon";
|
import "../ha-svg-icon";
|
||||||
import { filterData, sortData } from "./sort-filter";
|
import { filterData, sortData } from "./sort-filter";
|
||||||
|
|
||||||
declare global {
|
declare global {
|
||||||
@ -311,11 +312,11 @@ export class HaDataTable extends LitElement {
|
|||||||
>
|
>
|
||||||
${column.sortable
|
${column.sortable
|
||||||
? html`
|
? html`
|
||||||
<ha-icon
|
<ha-svg-icon
|
||||||
.icon=${sorted && this._sortDirection === "desc"
|
.path=${sorted && this._sortDirection === "desc"
|
||||||
? "hass:arrow-down"
|
? mdiArrowDown
|
||||||
: "hass:arrow-up"}
|
: mdiArrowUp}
|
||||||
></ha-icon>
|
></ha-svg-icon>
|
||||||
`
|
`
|
||||||
: ""}
|
: ""}
|
||||||
<span>${column.title}</span>
|
<span>${column.title}</span>
|
||||||
@ -863,14 +864,14 @@ export class HaDataTable extends LitElement {
|
|||||||
:host([dir="rtl"]) .mdc-data-table__header-cell > * {
|
:host([dir="rtl"]) .mdc-data-table__header-cell > * {
|
||||||
transition: right 0.2s ease;
|
transition: right 0.2s ease;
|
||||||
}
|
}
|
||||||
.mdc-data-table__header-cell ha-icon {
|
.mdc-data-table__header-cell ha-svg-icon {
|
||||||
top: -3px;
|
top: -3px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
}
|
}
|
||||||
.mdc-data-table__header-cell.not-sorted ha-icon {
|
.mdc-data-table__header-cell.not-sorted ha-svg-icon {
|
||||||
left: -20px;
|
left: -20px;
|
||||||
}
|
}
|
||||||
:host([dir="rtl"]) .mdc-data-table__header-cell.not-sorted ha-icon {
|
:host([dir="rtl"]) .mdc-data-table__header-cell.not-sorted ha-svg-icon {
|
||||||
right: -20px;
|
right: -20px;
|
||||||
}
|
}
|
||||||
.mdc-data-table__header-cell.sortable:not(.not-sorted) span,
|
.mdc-data-table__header-cell.sortable:not(.not-sorted) span,
|
||||||
@ -886,16 +887,16 @@ export class HaDataTable extends LitElement {
|
|||||||
left: auto;
|
left: auto;
|
||||||
right: 24px;
|
right: 24px;
|
||||||
}
|
}
|
||||||
.mdc-data-table__header-cell.sortable:not(.not-sorted) ha-icon,
|
.mdc-data-table__header-cell.sortable:not(.not-sorted) ha-svg-icon,
|
||||||
.mdc-data-table__header-cell.sortable:hover.not-sorted ha-icon {
|
.mdc-data-table__header-cell.sortable:hover.not-sorted ha-svg-icon {
|
||||||
left: 12px;
|
left: 12px;
|
||||||
}
|
}
|
||||||
:host([dir="rtl"])
|
:host([dir="rtl"])
|
||||||
.mdc-data-table__header-cell.sortable:not(.not-sorted)
|
.mdc-data-table__header-cell.sortable:not(.not-sorted)
|
||||||
ha-icon,
|
ha-svg-icon,
|
||||||
:host([dir="rtl"])
|
:host([dir="rtl"])
|
||||||
.mdc-data-table__header-cell.sortable:hover.not-sorted
|
.mdc-data-table__header-cell.sortable:hover.not-sorted
|
||||||
ha-icon {
|
ha-svg-icon {
|
||||||
left: auto;
|
left: auto;
|
||||||
right: 12px;
|
right: 12px;
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,6 @@ import {
|
|||||||
unsafeCSS,
|
unsafeCSS,
|
||||||
} from "lit";
|
} from "lit";
|
||||||
import { customElement, property } from "lit/decorators";
|
import { customElement, property } from "lit/decorators";
|
||||||
import "./ha-icon";
|
|
||||||
|
|
||||||
declare global {
|
declare global {
|
||||||
// for fire event
|
// for fire event
|
||||||
|
@ -4,7 +4,8 @@ import { css, CSSResultGroup, html, TemplateResult } from "lit";
|
|||||||
import { customElement } from "lit/decorators";
|
import { customElement } from "lit/decorators";
|
||||||
import { computeRTLDirection } from "../common/util/compute_rtl";
|
import { computeRTLDirection } from "../common/util/compute_rtl";
|
||||||
import type { HomeAssistant } from "../types";
|
import type { HomeAssistant } from "../types";
|
||||||
import "./ha-icon-button";
|
import "@material/mwc-icon-button/mwc-icon-button";
|
||||||
|
import "./ha-svg-icon";
|
||||||
|
|
||||||
export const createCloseHeading = (
|
export const createCloseHeading = (
|
||||||
hass: HomeAssistant,
|
hass: HomeAssistant,
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
import { mdiMenuDown } from "@mdi/js";
|
||||||
import "@polymer/paper-checkbox/paper-checkbox";
|
import "@polymer/paper-checkbox/paper-checkbox";
|
||||||
import "@polymer/paper-input/paper-input";
|
import "@polymer/paper-input/paper-input";
|
||||||
import "@polymer/paper-item/paper-icon-item";
|
import "@polymer/paper-item/paper-icon-item";
|
||||||
@ -7,7 +8,7 @@ import "@polymer/paper-ripple/paper-ripple";
|
|||||||
import { css, CSSResultGroup, html, LitElement, TemplateResult } from "lit";
|
import { css, CSSResultGroup, html, LitElement, TemplateResult } from "lit";
|
||||||
import { customElement, property, state, query } from "lit/decorators";
|
import { customElement, property, state, query } from "lit/decorators";
|
||||||
import { fireEvent } from "../../common/dom/fire_event";
|
import { fireEvent } from "../../common/dom/fire_event";
|
||||||
import "../ha-icon";
|
import "../ha-svg-icon";
|
||||||
import {
|
import {
|
||||||
HaFormElement,
|
HaFormElement,
|
||||||
HaFormMultiSelectData,
|
HaFormMultiSelectData,
|
||||||
@ -56,11 +57,11 @@ export class HaFormMultiSelect extends LitElement implements HaFormElement {
|
|||||||
input-aria-haspopup="listbox"
|
input-aria-haspopup="listbox"
|
||||||
autocomplete="off"
|
autocomplete="off"
|
||||||
>
|
>
|
||||||
<ha-icon
|
<ha-svg-icon
|
||||||
icon="paper-dropdown-menu:arrow-drop-down"
|
.path=${mdiMenuDown}
|
||||||
suffix
|
suffix
|
||||||
slot="suffix"
|
slot="suffix"
|
||||||
></ha-icon>
|
></ha-svg-icon>
|
||||||
</paper-input>
|
</paper-input>
|
||||||
</div>
|
</div>
|
||||||
<paper-listbox
|
<paper-listbox
|
||||||
|
@ -10,8 +10,6 @@ import {
|
|||||||
state,
|
state,
|
||||||
} from "lit/decorators";
|
} from "lit/decorators";
|
||||||
import { ifDefined } from "lit/directives/if-defined";
|
import { ifDefined } from "lit/directives/if-defined";
|
||||||
import "./ha-icon";
|
|
||||||
import "./ha-svg-icon";
|
|
||||||
|
|
||||||
@customElement("ha-tab")
|
@customElement("ha-tab")
|
||||||
export class HaTab extends LitElement {
|
export class HaTab extends LitElement {
|
||||||
|
@ -10,7 +10,6 @@ import { fireEvent } from "../../common/dom/fire_event";
|
|||||||
import { stringCompare } from "../../common/string/compare";
|
import { stringCompare } from "../../common/string/compare";
|
||||||
import { fetchUsers, User } from "../../data/user";
|
import { fetchUsers, User } from "../../data/user";
|
||||||
import { HomeAssistant } from "../../types";
|
import { HomeAssistant } from "../../types";
|
||||||
import "../ha-icon-button";
|
|
||||||
import "./ha-user-badge";
|
import "./ha-user-badge";
|
||||||
|
|
||||||
class HaUserPicker extends LitElement {
|
class HaUserPicker extends LitElement {
|
||||||
|
@ -279,7 +279,7 @@ export class HaTabsSubpageDataTable extends LitElement {
|
|||||||
margin-left: 4px;
|
margin-left: 4px;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
.active-filters ha-icon {
|
.active-filters ha-svg-icon {
|
||||||
color: var(--primary-color);
|
color: var(--primary-color);
|
||||||
}
|
}
|
||||||
.active-filters mwc-button {
|
.active-filters mwc-button {
|
||||||
|
@ -14,7 +14,6 @@ import { isComponentLoaded } from "../common/config/is_component_loaded";
|
|||||||
import { restoreScroll } from "../common/decorators/restore-scroll";
|
import { restoreScroll } from "../common/decorators/restore-scroll";
|
||||||
import { LocalizeFunc } from "../common/translations/localize";
|
import { LocalizeFunc } from "../common/translations/localize";
|
||||||
import { computeRTL } from "../common/util/compute_rtl";
|
import { computeRTL } from "../common/util/compute_rtl";
|
||||||
import "../components/ha-icon";
|
|
||||||
import "../components/ha-icon-button-arrow-prev";
|
import "../components/ha-icon-button-arrow-prev";
|
||||||
import "../components/ha-menu-button";
|
import "../components/ha-menu-button";
|
||||||
import "../components/ha-svg-icon";
|
import "../components/ha-svg-icon";
|
||||||
@ -28,7 +27,6 @@ export interface PageNavigation {
|
|||||||
name?: string;
|
name?: string;
|
||||||
core?: boolean;
|
core?: boolean;
|
||||||
advancedOnly?: boolean;
|
advancedOnly?: boolean;
|
||||||
icon?: string;
|
|
||||||
iconPath?: string;
|
iconPath?: string;
|
||||||
info?: any;
|
info?: any;
|
||||||
}
|
}
|
||||||
@ -98,7 +96,7 @@ class HassTabsSubpage extends LitElement {
|
|||||||
slot="icon"
|
slot="icon"
|
||||||
.path=${page.iconPath}
|
.path=${page.iconPath}
|
||||||
></ha-svg-icon>`
|
></ha-svg-icon>`
|
||||||
: html`<ha-icon slot="icon" .icon=${page.icon}></ha-icon>`}
|
: ""}
|
||||||
</ha-tab>
|
</ha-tab>
|
||||||
</a>
|
</a>
|
||||||
`
|
`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user