mirror of
https://github.com/home-assistant/frontend.git
synced 2026-06-03 15:02:01 +00:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 9536b885c0 |
@@ -77,22 +77,9 @@ jobs:
|
||||
env:
|
||||
GITHUB_REF: ${{ github.ref }}
|
||||
run: |
|
||||
# Sleep to give pypi time to populate the new version across mirrors
|
||||
sleep 240
|
||||
version=$(echo "$GITHUB_REF" | awk -F"/" '{print $NF}' )
|
||||
# Wait for the package to become available on PyPI
|
||||
echo "Waiting for home-assistant-frontend==$version to appear on PyPI..."
|
||||
for i in $(seq 1 30); do
|
||||
status=$(curl -s -o /dev/null -w "%{http_code}" "https://pypi.org/pypi/home-assistant-frontend/$version/json")
|
||||
if [ "$status" = "200" ]; then
|
||||
echo "Package is available on PyPI!"
|
||||
break
|
||||
fi
|
||||
if [ "$i" = "30" ]; then
|
||||
echo "Timed out waiting for package to appear on PyPI"
|
||||
exit 1
|
||||
fi
|
||||
echo "Not available yet (HTTP $status), retrying in 30 seconds... ($i/30)"
|
||||
sleep 30
|
||||
done
|
||||
echo "home-assistant-frontend==$version" > ./requirements.txt
|
||||
|
||||
# home-assistant/wheels doesn't support SHA pinning
|
||||
|
||||
@@ -78,13 +78,13 @@ const alerts: {
|
||||
title: "Error with action",
|
||||
description: "This is a test error alert with action",
|
||||
type: "error",
|
||||
actionSlot: html`<ha-button size="small" slot="action">restart</ha-button>`,
|
||||
actionSlot: html`<ha-button size="s" slot="action">restart</ha-button>`,
|
||||
},
|
||||
{
|
||||
title: "Unsaved data",
|
||||
description: "You have unsaved data",
|
||||
type: "warning",
|
||||
actionSlot: html`<ha-button size="small" slot="action">save</ha-button>`,
|
||||
actionSlot: html`<ha-button size="s" slot="action">save</ha-button>`,
|
||||
},
|
||||
{
|
||||
title: "Slotted icon",
|
||||
|
||||
@@ -26,7 +26,7 @@ title: Button
|
||||
filled button
|
||||
</ha-button>
|
||||
|
||||
<ha-button size="small">
|
||||
<ha-button size="s">
|
||||
small
|
||||
</ha-button>
|
||||
</div>
|
||||
@@ -34,7 +34,7 @@ title: Button
|
||||
```html
|
||||
<ha-button> simple button </ha-button>
|
||||
|
||||
<ha-button size="small"> small </ha-button>
|
||||
<ha-button size="s"> small </ha-button>
|
||||
```
|
||||
|
||||
### API
|
||||
@@ -57,7 +57,7 @@ Check the [webawesome documentation](https://webawesome.com/docs/components/butt
|
||||
| ---------- | ---------------------------------------------- | -------- | --------------------------------------------------------------------------------- |
|
||||
| appearance | "accent"/"filled"/"plain" | "accent" | Sets the button appearance. |
|
||||
| variants | "brand"/"danger"/"neutral"/"warning"/"success" | "brand" | Sets the button color variant. "brand" is default. |
|
||||
| size | "small"/"medium"/"large" | "medium" | Sets the button size. |
|
||||
| size | "xs"/"s"/"m"/"l"/"xl" | "m" | Sets the button size. |
|
||||
| loading | Boolean | false | Shows a loading indicator instead of the buttons label and disable buttons click. |
|
||||
| disabled | Boolean | false | Disables the button and prevents user interaction. |
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ export class DemoHaButton extends LitElement {
|
||||
<ha-button
|
||||
.appearance=${appearance}
|
||||
.variant=${variant}
|
||||
size="small"
|
||||
size="s"
|
||||
>
|
||||
${titleCase(`${variant} ${appearance}`)}
|
||||
</ha-button>
|
||||
@@ -100,7 +100,7 @@ export class DemoHaButton extends LitElement {
|
||||
<ha-button
|
||||
.variant=${variant}
|
||||
.appearance=${appearance}
|
||||
size="small"
|
||||
size="s"
|
||||
disabled
|
||||
>
|
||||
${titleCase(`${appearance}`)}
|
||||
|
||||
@@ -17,13 +17,13 @@ subtitle: A slider component for selecting a value from a range.
|
||||
### Example Usage
|
||||
|
||||
<div class="wrapper">
|
||||
<ha-slider size="small" with-markers min="0" max="8" value="4"></ha-slider>
|
||||
<ha-slider size="medium"></ha-slider>
|
||||
<ha-slider size="s" with-markers min="0" max="8" value="4"></ha-slider>
|
||||
<ha-slider size="m"></ha-slider>
|
||||
</div>
|
||||
|
||||
```html
|
||||
<ha-slider size="small" with-markers min="0" max="8" value="4"></ha-slider>
|
||||
<ha-slider size="medium"></ha-slider>
|
||||
<ha-slider size="s" with-markers min="0" max="8" value="4"></ha-slider>
|
||||
<ha-slider size="m"></ha-slider>
|
||||
```
|
||||
|
||||
### API
|
||||
|
||||
@@ -29,7 +29,7 @@ export class DemoHaSlider extends LitElement {
|
||||
></ha-slider>
|
||||
<span>Small</span>
|
||||
<ha-slider
|
||||
size="small"
|
||||
size="s"
|
||||
min="0"
|
||||
max="8"
|
||||
value="4"
|
||||
@@ -37,7 +37,7 @@ export class DemoHaSlider extends LitElement {
|
||||
></ha-slider>
|
||||
<span>Medium</span>
|
||||
<ha-slider
|
||||
size="medium"
|
||||
size="m"
|
||||
min="0"
|
||||
max="8"
|
||||
value="4"
|
||||
|
||||
+1
-1
@@ -180,7 +180,7 @@
|
||||
"jsdom": "29.1.1",
|
||||
"jszip": "3.10.1",
|
||||
"license-checker-rseidelsohn": "5.0.1",
|
||||
"lint-staged": "17.0.7",
|
||||
"lint-staged": "17.0.6",
|
||||
"lit-analyzer": "2.0.3",
|
||||
"lodash.merge": "4.6.2",
|
||||
"lodash.template": "4.18.1",
|
||||
|
||||
@@ -167,7 +167,7 @@ export class StateHistoryCharts extends LitElement {
|
||||
)}`}
|
||||
${this.syncCharts && this._hasZoomedCharts
|
||||
? html`<ha-button
|
||||
size="large"
|
||||
size="l"
|
||||
class="reset-button"
|
||||
@click=${this._handleGlobalZoomReset}
|
||||
>
|
||||
|
||||
@@ -117,7 +117,7 @@ export class HaEntityNamePicker extends LitElement {
|
||||
<div class="header">
|
||||
${this.label ? html`<label>${this.label}</label>` : nothing}
|
||||
<ha-button-toggle-group
|
||||
size="small"
|
||||
size="s"
|
||||
.buttons=${modeButtons}
|
||||
.active=${this._mode}
|
||||
.disabled=${this.disabled}
|
||||
|
||||
@@ -15,7 +15,7 @@ import "./ha-svg-icon";
|
||||
*
|
||||
* @attr {ToggleButton[]} buttons - the button config
|
||||
* @attr {string} active - The value of the currently active button.
|
||||
* @attr {("small"|"medium")} size - The size of the buttons in the group.
|
||||
* @attr {("s"|"m")} size - The size of the buttons in the group.
|
||||
* @attr {("brand"|"neutral"|"success"|"warning"|"danger")} variant - The variant of the buttons in the group.
|
||||
*
|
||||
* @fires value-changed - Dispatched when the active button changes.
|
||||
@@ -26,7 +26,7 @@ export class HaButtonToggleGroup extends LitElement {
|
||||
|
||||
@property() public active?: string;
|
||||
|
||||
@property({ reflect: true }) size: "small" | "medium" = "medium";
|
||||
@property({ reflect: true }) size: "s" | "m" = "m";
|
||||
|
||||
@property({ type: Boolean, reflect: true, attribute: "no-wrap" })
|
||||
public nowrap = false;
|
||||
|
||||
@@ -27,7 +27,7 @@ export type Appearance = "accent" | "filled" | "outlined" | "plain";
|
||||
* @cssprop --ha-button-height - The height of the button.
|
||||
* @cssprop --ha-button-border-radius - The border radius of the button. defaults to `var(--ha-border-radius-pill)`.
|
||||
*
|
||||
* @attr {("small"|"medium"|"large")} size - Sets the button size.
|
||||
* @attr {("xs"|"s"|"m"|"l"|"xl")} size - Sets the button size.
|
||||
* @attr {("brand"|"neutral"|"danger"|"warning"|"success")} variant - Sets the button color variant. "primary" is default.
|
||||
* @attr {("accent"|"filled"|"plain")} appearance - Sets the button appearance.
|
||||
* @attr {boolean} loading - shows a loading indicator instead of the buttons label and disable buttons click.
|
||||
@@ -65,7 +65,7 @@ export class HaButton extends Button {
|
||||
box-shadow: var(--ha-button-box-shadow);
|
||||
}
|
||||
|
||||
:host([size="small"]) .button {
|
||||
:host([size="s"]) .button {
|
||||
--wa-form-control-height: var(
|
||||
--ha-button-height,
|
||||
var(--button-height, 32px)
|
||||
@@ -74,7 +74,7 @@ export class HaButton extends Button {
|
||||
--wa-form-control-padding-inline: var(--ha-space-3);
|
||||
}
|
||||
|
||||
:host([size="large"]) .button {
|
||||
:host([size="l"]) .button {
|
||||
--wa-form-control-height: var(
|
||||
--ha-button-height,
|
||||
var(--button-height, 48px)
|
||||
|
||||
@@ -61,7 +61,7 @@ export class HaDurationInput extends LitElement {
|
||||
${this.allowNegative
|
||||
? html`
|
||||
<ha-button-toggle-group
|
||||
size="small"
|
||||
size="s"
|
||||
.buttons=${[
|
||||
{ label: "+", iconPath: mdiPlusThick, value: "+" },
|
||||
{ label: "-", iconPath: mdiMinusThick, value: "-" },
|
||||
|
||||
@@ -120,7 +120,7 @@ export class HaFileUpload extends LitElement {
|
||||
@dragend=${this._handleDragEnd}
|
||||
>${!this.value
|
||||
? html`<ha-button
|
||||
size="small"
|
||||
size="s"
|
||||
appearance="filled"
|
||||
@click=${this._openFilePicker}
|
||||
>
|
||||
|
||||
@@ -129,7 +129,7 @@ export class HaFormOptionalActions extends LitElement implements HaFormElement {
|
||||
@wa-select=${this._handleAddAction}
|
||||
@closed=${stopPropagation}
|
||||
>
|
||||
<ha-button slot="trigger" appearance="filled" size="small">
|
||||
<ha-button slot="trigger" appearance="filled" size="s">
|
||||
<ha-svg-icon .path=${mdiPlus} slot="start"></ha-svg-icon>
|
||||
${this.localize?.("ui.components.form-optional-actions.add") ||
|
||||
"Add interaction"}
|
||||
|
||||
@@ -174,7 +174,7 @@ export class HaGenericPicker extends PickerMixin(LitElement) {
|
||||
<slot name="field">
|
||||
${this.addButtonLabel && !this.value
|
||||
? html`<ha-button
|
||||
size="small"
|
||||
size="s"
|
||||
appearance="filled"
|
||||
@click=${this.open}
|
||||
.disabled=${this.disabled}
|
||||
|
||||
@@ -171,7 +171,7 @@ export class HaLabelsPicker extends LitElement {
|
||||
: nothing}
|
||||
<ha-button
|
||||
id="picker"
|
||||
size="small"
|
||||
size="s"
|
||||
appearance="filled"
|
||||
@click=${this._openPicker}
|
||||
.disabled=${this.disabled}
|
||||
|
||||
@@ -53,7 +53,7 @@ class HaLawnMowerActionButton extends LitElement {
|
||||
appearance="plain"
|
||||
@click=${this.callService}
|
||||
.service=${action.service}
|
||||
size="small"
|
||||
size="s"
|
||||
>
|
||||
${this.hass.localize(`ui.card.lawn_mower.actions.${action.action}`)}
|
||||
</ha-button>
|
||||
|
||||
@@ -102,7 +102,7 @@ export class HaPictureUpload extends LitElement {
|
||||
<div>
|
||||
<ha-button
|
||||
appearance="plain"
|
||||
size="small"
|
||||
size="s"
|
||||
variant="danger"
|
||||
@click=${this._handleChangeClick}
|
||||
>
|
||||
|
||||
@@ -63,7 +63,7 @@ export class HaChooseSelector extends LitElement {
|
||||
return html`<div class="multi-header">
|
||||
<span>${this.label}${this.required ? "*" : ""}</span>
|
||||
<ha-button-toggle-group
|
||||
size="small"
|
||||
size="s"
|
||||
.buttons=${this._toggleButtons(
|
||||
this.selector.choose.choices,
|
||||
this.selector.choose.translation_key,
|
||||
|
||||
@@ -190,7 +190,7 @@ export class HaMediaSelector extends LitElement {
|
||||
? html`<div>
|
||||
<ha-button
|
||||
appearance="plain"
|
||||
size="small"
|
||||
size="s"
|
||||
variant="danger"
|
||||
@click=${this._clearValue}
|
||||
>
|
||||
|
||||
@@ -307,7 +307,7 @@ export class HaNumericThresholdSelector extends LitElement {
|
||||
>`
|
||||
: nothing}
|
||||
<ha-button-toggle-group
|
||||
size="small"
|
||||
size="s"
|
||||
.buttons=${choiceToggleButtons}
|
||||
.active=${activeChoice}
|
||||
.disabled=${this.disabled}
|
||||
|
||||
@@ -5,7 +5,7 @@ import { mainWindow } from "../common/dom/get_main_window";
|
||||
|
||||
@customElement("ha-slider")
|
||||
export class HaSlider extends Slider {
|
||||
@property({ reflect: true }) size: "small" | "medium" = "small";
|
||||
@property({ reflect: true }) size: "s" | "m" = "s";
|
||||
|
||||
@property({ type: Boolean, attribute: "with-tooltip" }) withTooltip = true;
|
||||
|
||||
@@ -110,12 +110,12 @@ export class HaSlider extends Slider {
|
||||
);
|
||||
}
|
||||
|
||||
:host([size="medium"]) {
|
||||
:host([size="m"]) {
|
||||
--thumb-width: 20px;
|
||||
--thumb-height: 20px;
|
||||
}
|
||||
|
||||
:host([size="small"]) {
|
||||
:host([size="s"]) {
|
||||
--thumb-width: 16px;
|
||||
--thumb-height: 16px;
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ class HaTracePicker extends LitElement {
|
||||
slot="field"
|
||||
appearance="filled"
|
||||
variant="neutral"
|
||||
size="small"
|
||||
size="s"
|
||||
@click=${this._openPicker}
|
||||
>
|
||||
${this._renderTracePickerValue(this.value!)}
|
||||
|
||||
@@ -58,7 +58,7 @@ export class HaVacuumState extends LitElement {
|
||||
return html`
|
||||
<ha-button
|
||||
appearance="plain"
|
||||
size="small"
|
||||
size="s"
|
||||
@click=${this._callService}
|
||||
.disabled=${!interceptable}
|
||||
>
|
||||
|
||||
@@ -99,7 +99,7 @@ export class HaInputCopy extends LitElement {
|
||||
: nothing}
|
||||
</ha-input>
|
||||
</div>
|
||||
<ha-button @click=${this._copy} appearance="plain" size="small">
|
||||
<ha-button @click=${this._copy} appearance="plain" size="s">
|
||||
<ha-svg-icon slot="start" .path=${mdiContentCopy}></ha-svg-icon>
|
||||
${this.label || this._i18n.localize("ui.common.copy")}
|
||||
</ha-button>
|
||||
|
||||
@@ -130,7 +130,7 @@ class HaInputMulti extends LitElement {
|
||||
</ha-sortable>
|
||||
<div class="layout horizontal">
|
||||
<ha-button
|
||||
size="small"
|
||||
size="s"
|
||||
appearance="filled"
|
||||
@click=${this._addItem}
|
||||
.disabled=${this.disabled ||
|
||||
|
||||
@@ -38,7 +38,7 @@ class MediaManageButton extends LitElement {
|
||||
return nothing;
|
||||
}
|
||||
return html`
|
||||
<ha-button appearance="filled" size="small" @click=${this._manage}>
|
||||
<ha-button appearance="filled" size="s" @click=${this._manage}>
|
||||
<ha-svg-icon .path=${mdiFolderEdit} slot="start"></ha-svg-icon>
|
||||
${this.hass.localize(
|
||||
"ui.components.media-browser.file_management.manage"
|
||||
|
||||
@@ -114,7 +114,7 @@ class EntityPreviewRow extends LitElement {
|
||||
|
||||
if (domain === "button") {
|
||||
return html`
|
||||
<ha-button appearance="plain" size="small" .disabled=${disabled}>
|
||||
<ha-button appearance="plain" size="s" .disabled=${disabled}>
|
||||
${this.hass.localize("ui.card.button.press")}
|
||||
</ha-button>
|
||||
`;
|
||||
@@ -237,7 +237,7 @@ class EntityPreviewRow extends LitElement {
|
||||
.disabled=${disabled}
|
||||
class="text-content"
|
||||
appearance="plain"
|
||||
size="small"
|
||||
size="s"
|
||||
>
|
||||
${stateObj.state === "locked"
|
||||
? this.hass!.localize("ui.card.lock.unlock")
|
||||
|
||||
@@ -214,7 +214,7 @@ export class HaMoreInfoViewVacuumCleanAreas extends LitElement {
|
||||
? html`
|
||||
<ha-button
|
||||
appearance="plain"
|
||||
size="small"
|
||||
size="s"
|
||||
@click=${this._openSegmentMapping}
|
||||
>
|
||||
<ha-svg-icon
|
||||
|
||||
@@ -31,7 +31,7 @@ class MoreInfoAutomation extends LitElement {
|
||||
<div class="actions">
|
||||
<ha-button
|
||||
appearance="plain"
|
||||
size="small"
|
||||
size="s"
|
||||
@click=${this._runActions}
|
||||
.disabled=${this.stateObj!.state === UNAVAILABLE}
|
||||
>
|
||||
|
||||
@@ -22,7 +22,7 @@ class MoreInfoCounter extends LitElement {
|
||||
<div class="actions">
|
||||
<ha-button
|
||||
appearance="plain"
|
||||
size="small"
|
||||
size="s"
|
||||
.action=${"increment"}
|
||||
@click=${this._handleActionClick}
|
||||
.disabled=${disabled ||
|
||||
@@ -32,7 +32,7 @@ class MoreInfoCounter extends LitElement {
|
||||
</ha-button>
|
||||
<ha-button
|
||||
appearance="plain"
|
||||
size="small"
|
||||
size="s"
|
||||
.action=${"decrement"}
|
||||
@click=${this._handleActionClick}
|
||||
.disabled=${disabled ||
|
||||
@@ -42,7 +42,7 @@ class MoreInfoCounter extends LitElement {
|
||||
</ha-button>
|
||||
<ha-button
|
||||
appearance="plain"
|
||||
size="small"
|
||||
size="s"
|
||||
.action=${"reset"}
|
||||
@click=${this._handleActionClick}
|
||||
.disabled=${disabled}
|
||||
|
||||
@@ -431,7 +431,7 @@ class MoreInfoMediaPlayer extends LitElement {
|
||||
? html`<ha-button
|
||||
variant="brand"
|
||||
appearance="filled"
|
||||
size="medium"
|
||||
size="m"
|
||||
action=${action}
|
||||
@click=${this._handleClick}
|
||||
class="center-control"
|
||||
|
||||
@@ -39,7 +39,7 @@ class MoreInfoPerson extends LitElement {
|
||||
<div class="actions">
|
||||
<ha-button
|
||||
appearance="plain"
|
||||
size="small"
|
||||
size="s"
|
||||
@click=${this._handleAction}
|
||||
>
|
||||
${this.hass.localize(
|
||||
|
||||
@@ -52,7 +52,7 @@ class MoreInfoSiren extends LitElement {
|
||||
${allowAdvanced
|
||||
? html`<ha-button
|
||||
appearance="plain"
|
||||
size="small"
|
||||
size="s"
|
||||
@click=${this._showAdvancedControlsDialog}
|
||||
>
|
||||
${this.hass.localize("ui.components.siren.advanced_controls")}
|
||||
|
||||
@@ -21,7 +21,7 @@ class MoreInfoTimer extends LitElement {
|
||||
? html`
|
||||
<ha-button
|
||||
appearance="plain"
|
||||
size="small"
|
||||
size="s"
|
||||
.action=${"start"}
|
||||
@click=${this._handleActionClick}
|
||||
>
|
||||
@@ -33,7 +33,7 @@ class MoreInfoTimer extends LitElement {
|
||||
? html`
|
||||
<ha-button
|
||||
appearance="plain"
|
||||
size="small"
|
||||
size="s"
|
||||
.action=${"pause"}
|
||||
@click=${this._handleActionClick}
|
||||
>
|
||||
@@ -45,7 +45,7 @@ class MoreInfoTimer extends LitElement {
|
||||
? html`
|
||||
<ha-button
|
||||
appearance="plain"
|
||||
size="small"
|
||||
size="s"
|
||||
.action=${"cancel"}
|
||||
@click=${this._handleActionClick}
|
||||
>
|
||||
@@ -53,7 +53,7 @@ class MoreInfoTimer extends LitElement {
|
||||
</ha-button>
|
||||
<ha-button
|
||||
appearance="plain"
|
||||
size="small"
|
||||
size="s"
|
||||
.action=${"finish"}
|
||||
@click=${this._handleActionClick}
|
||||
>
|
||||
|
||||
@@ -95,10 +95,7 @@ export class HaVoiceAssistantSetupStepLocal extends LitElement {
|
||||
"ui.panel.config.voice_assistants.satellite_wizard.local.failed_secondary"
|
||||
)}
|
||||
</p>
|
||||
<ha-button
|
||||
appearance="plain"
|
||||
size="small"
|
||||
@click=${this._prevStep}
|
||||
<ha-button appearance="plain" size="s" @click=${this._prevStep}
|
||||
>${this.hass.localize("ui.common.back")}</ha-button
|
||||
>
|
||||
<ha-button
|
||||
@@ -108,7 +105,7 @@ export class HaVoiceAssistantSetupStepLocal extends LitElement {
|
||||
)}
|
||||
target="_blank"
|
||||
rel="noreferrer noopener"
|
||||
size="small"
|
||||
size="s"
|
||||
appearance="plain"
|
||||
>
|
||||
<ha-svg-icon .path=${mdiOpenInNew} slot="start"></ha-svg-icon>
|
||||
@@ -131,10 +128,7 @@ export class HaVoiceAssistantSetupStepLocal extends LitElement {
|
||||
"ui.panel.config.voice_assistants.satellite_wizard.local.not_supported_secondary"
|
||||
)}
|
||||
</p>
|
||||
<ha-button
|
||||
appearance="plain"
|
||||
size="small"
|
||||
@click=${this._prevStep}
|
||||
<ha-button appearance="plain" size="s" @click=${this._prevStep}
|
||||
>${this.hass.localize("ui.common.back")}</ha-button
|
||||
>
|
||||
<ha-button
|
||||
@@ -145,7 +139,7 @@ export class HaVoiceAssistantSetupStepLocal extends LitElement {
|
||||
target="_blank"
|
||||
rel="noreferrer noopener"
|
||||
appearance="plain"
|
||||
size="small"
|
||||
size="s"
|
||||
>
|
||||
<ha-svg-icon .path=${mdiOpenInNew} slot="start"></ha-svg-icon>
|
||||
${this.hass.localize(
|
||||
|
||||
@@ -131,7 +131,7 @@ export class HaVoiceAssistantSetupStepSuccess extends LitElement {
|
||||
></ha-select>
|
||||
<ha-button
|
||||
appearance="plain"
|
||||
size="small"
|
||||
size="s"
|
||||
@click=${this._testWakeWord}
|
||||
>
|
||||
<ha-svg-icon
|
||||
@@ -166,7 +166,7 @@ export class HaVoiceAssistantSetupStepSuccess extends LitElement {
|
||||
</ha-select>
|
||||
<ha-button
|
||||
appearance="plain"
|
||||
size="small"
|
||||
size="s"
|
||||
@click=${this._openPipeline}
|
||||
>
|
||||
<ha-svg-icon slot="start" .path=${mdiCog}></ha-svg-icon>
|
||||
@@ -186,11 +186,7 @@ export class HaVoiceAssistantSetupStepSuccess extends LitElement {
|
||||
@value-changed=${this._voicePicked}
|
||||
@closed=${stopPropagation}
|
||||
></ha-tts-voice-picker>
|
||||
<ha-button
|
||||
appearance="plain"
|
||||
size="small"
|
||||
@click=${this._testTts}
|
||||
>
|
||||
<ha-button appearance="plain" size="s" @click=${this._testTts}>
|
||||
<ha-svg-icon slot="start" .path=${mdiPlay}></ha-svg-icon>
|
||||
${this.hass.localize(
|
||||
"ui.panel.config.voice_assistants.satellite_wizard.success.try_tts"
|
||||
|
||||
@@ -150,7 +150,7 @@ export class HaVoiceAssistantSetupStepWakeWord extends LitElement {
|
||||
? html`<div class="footer centered">
|
||||
<ha-button
|
||||
appearance="plain"
|
||||
size="small"
|
||||
size="s"
|
||||
@click=${this._changeWakeWord}
|
||||
>${this.hass.localize(
|
||||
"ui.panel.config.voice_assistants.satellite_wizard.wake_word.change_wake_word"
|
||||
|
||||
@@ -117,7 +117,7 @@ export class HaVoiceCommandDialog extends LitElement {
|
||||
slot="trigger"
|
||||
appearance="plain"
|
||||
variant="neutral"
|
||||
size="small"
|
||||
size="s"
|
||||
.loading=${!this._pipelines}
|
||||
>
|
||||
${this._pipeline?.name}
|
||||
|
||||
@@ -23,7 +23,7 @@ class HaInitPage extends LitElement {
|
||||
<p class="retry-text">
|
||||
Retrying in ${this._retryInSeconds} seconds...
|
||||
</p>
|
||||
<ha-button size="small" appearance="plain" @click=${this._retry}
|
||||
<ha-button size="s" appearance="plain" @click=${this._retry}
|
||||
>Retry now</ha-button
|
||||
>
|
||||
${location.host.includes("ui.nabu.casa")
|
||||
|
||||
@@ -41,7 +41,7 @@ class HassErrorScreen extends LitElement {
|
||||
<div class="content">
|
||||
<ha-alert alert-type="error">${this.error}</ha-alert>
|
||||
<slot>
|
||||
<ha-button appearance="plain" size="small" @click=${this._handleBack}>
|
||||
<ha-button appearance="plain" size="s" @click=${this._handleBack}>
|
||||
${this.hass?.localize("ui.common.back")}
|
||||
</ha-button>
|
||||
</slot>
|
||||
|
||||
@@ -97,7 +97,7 @@ class NotificationManager extends LitElement {
|
||||
? html`
|
||||
<ha-button
|
||||
appearance="plain"
|
||||
size="small"
|
||||
size="s"
|
||||
slot="action"
|
||||
@click=${this._buttonClicked}
|
||||
>
|
||||
|
||||
@@ -132,7 +132,7 @@ class OnboardingRestoreBackupRestore extends LitElement {
|
||||
href="https://www.home-assistant.io/installation/#advanced-installation-methods"
|
||||
target="_blank"
|
||||
rel="noreferrer noopener"
|
||||
size="small"
|
||||
size="s"
|
||||
>
|
||||
${this.localize(
|
||||
"ui.panel.page-onboarding.restore.ha-cloud.learn_more"
|
||||
|
||||
@@ -147,7 +147,7 @@ export class HAFullCalendar extends LitElement {
|
||||
<div class="navigation">
|
||||
<ha-button
|
||||
appearance="filled"
|
||||
size="small"
|
||||
size="s"
|
||||
class="today"
|
||||
@click=${this._handleToday}
|
||||
>${this.hass.localize(
|
||||
@@ -171,7 +171,7 @@ export class HAFullCalendar extends LitElement {
|
||||
<ha-button-toggle-group
|
||||
.buttons=${viewToggleButtons}
|
||||
.active=${this._activeView}
|
||||
size="small"
|
||||
size="s"
|
||||
no-wrap
|
||||
@value-changed=${this._handleView}
|
||||
></ha-button-toggle-group>
|
||||
@@ -197,7 +197,7 @@ export class HAFullCalendar extends LitElement {
|
||||
<div class="controls buttons">
|
||||
<ha-button
|
||||
appearance="plain"
|
||||
size="small"
|
||||
size="s"
|
||||
class="today"
|
||||
@click=${this._handleToday}
|
||||
>${this.hass.localize(
|
||||
@@ -207,7 +207,7 @@ export class HAFullCalendar extends LitElement {
|
||||
<ha-button-toggle-group
|
||||
.buttons=${viewToggleButtons}
|
||||
.active=${this._activeView}
|
||||
size="small"
|
||||
size="s"
|
||||
no-wrap
|
||||
@value-changed=${this._handleView}
|
||||
></ha-button-toggle-group>
|
||||
@@ -219,7 +219,7 @@ export class HAFullCalendar extends LitElement {
|
||||
|
||||
<div id="calendar"></div>
|
||||
${this.addFab && this._hasMutableCalendars
|
||||
? html`<ha-button size="large" slot="fab" @click=${this._createEvent}>
|
||||
? html`<ha-button size="l" slot="fab" @click=${this._createEvent}>
|
||||
<ha-svg-icon slot="start" .path=${mdiPlus}></ha-svg-icon>
|
||||
${this.hass.localize("ui.components.calendar.event.add")}
|
||||
</ha-button>`
|
||||
|
||||
@@ -175,7 +175,7 @@ export class HaConfigApplicationCredentials extends LitElement {
|
||||
? html`
|
||||
<ha-button
|
||||
appearance="plain"
|
||||
size="small"
|
||||
size="s"
|
||||
@click=${this._deleteSelected}
|
||||
variant="danger"
|
||||
>${this.hass.localize(
|
||||
@@ -199,11 +199,7 @@ export class HaConfigApplicationCredentials extends LitElement {
|
||||
</ha-help-tooltip>
|
||||
`}
|
||||
</div>
|
||||
<ha-button
|
||||
slot="fab"
|
||||
size="large"
|
||||
@click=${this._addApplicationCredential}
|
||||
>
|
||||
<ha-button slot="fab" size="l" @click=${this._addApplicationCredential}>
|
||||
<ha-svg-icon slot="start" .path=${mdiPlus}></ha-svg-icon>
|
||||
${this.hass.localize(
|
||||
"ui.panel.config.application_credentials.picker.add_application_credential"
|
||||
|
||||
@@ -156,7 +156,7 @@ export class HaConfigAppsInstalled extends LitElement {
|
||||
)}
|
||||
</div>
|
||||
|
||||
<ha-button size="large" href="/config/apps/available">
|
||||
<ha-button size="l" href="/config/apps/available">
|
||||
<ha-svg-icon slot="start" .path=${mdiStorePlus}></ha-svg-icon>
|
||||
${this.hass.localize("ui.panel.config.apps.installed.add_app")}
|
||||
</ha-button>
|
||||
@@ -295,7 +295,7 @@ export class HaConfigAppsInstalled extends LitElement {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
ha-button[size="large"] {
|
||||
ha-button[size="l"] {
|
||||
position: fixed;
|
||||
right: calc(var(--ha-space-4) + var(--safe-area-inset-right));
|
||||
bottom: calc(var(--ha-space-4) + var(--safe-area-inset-bottom));
|
||||
|
||||
@@ -116,7 +116,7 @@ export class HaConfigAppsRegistries extends LitElement {
|
||||
id="registry"
|
||||
has-fab
|
||||
></ha-data-table>
|
||||
<ha-button size="large" @click=${this._showAddRegistryDialog}>
|
||||
<ha-button size="l" @click=${this._showAddRegistryDialog}>
|
||||
<ha-svg-icon slot="start" .path=${mdiPlus}></ha-svg-icon>
|
||||
${this.hass.localize("ui.panel.config.apps.registries.add")}
|
||||
</ha-button>
|
||||
@@ -184,7 +184,7 @@ export class HaConfigAppsRegistries extends LitElement {
|
||||
ha-icon-button.delete {
|
||||
color: var(--error-color);
|
||||
}
|
||||
ha-button[size="large"] {
|
||||
ha-button[size="l"] {
|
||||
position: fixed;
|
||||
right: calc(var(--ha-space-4) + var(--safe-area-inset-right));
|
||||
bottom: calc(var(--ha-space-4) + var(--safe-area-inset-bottom));
|
||||
|
||||
@@ -195,7 +195,7 @@ export class HaConfigAppsRepositories extends LitElement {
|
||||
id="slug"
|
||||
has-fab
|
||||
></ha-data-table>
|
||||
<ha-button size="large" @click=${this._showAddRepositoryDialog}>
|
||||
<ha-button size="l" @click=${this._showAddRepositoryDialog}>
|
||||
<ha-svg-icon slot="start" .path=${mdiPlus}></ha-svg-icon>
|
||||
${this.hass.localize("ui.panel.config.apps.repositories.add")}
|
||||
</ha-button>
|
||||
@@ -292,7 +292,7 @@ export class HaConfigAppsRepositories extends LitElement {
|
||||
ha-icon-button.delete {
|
||||
color: var(--error-color);
|
||||
}
|
||||
ha-button[size="large"] {
|
||||
ha-button[size="l"] {
|
||||
position: fixed;
|
||||
right: calc(var(--ha-space-4) + var(--safe-area-inset-right));
|
||||
bottom: calc(var(--ha-space-4) + var(--safe-area-inset-bottom));
|
||||
|
||||
@@ -318,7 +318,7 @@ export class HaConfigAreasDashboard extends LitElement {
|
||||
: nothing}
|
||||
</div>
|
||||
<ha-dropdown slot="fab" @wa-select=${this._handleCreateAction}>
|
||||
<ha-button slot="trigger" id="fab" size="large">
|
||||
<ha-button slot="trigger" id="fab" size="l">
|
||||
<ha-svg-icon slot="start" .path=${mdiPlus}></ha-svg-icon>
|
||||
${this.hass.localize("ui.common.add")}
|
||||
</ha-button>
|
||||
|
||||
@@ -120,7 +120,7 @@ export default class HaAutomationAction extends AutomationSortableListMixin<Acti
|
||||
.disabled=${this.disabled}
|
||||
@click=${this._addActionDialog}
|
||||
.appearance=${this.root ? "accent" : "filled"}
|
||||
.size=${this.root ? "medium" : "small"}
|
||||
.size=${this.root ? "m" : "s"}
|
||||
>
|
||||
<ha-svg-icon .path=${mdiPlus} slot="start"></ha-svg-icon>
|
||||
${this.hass.localize(
|
||||
|
||||
@@ -728,7 +728,7 @@ class DialogAddAutomationElement
|
||||
active-variant="brand"
|
||||
.buttons=${tabButtons}
|
||||
.active=${this._tab}
|
||||
size="small"
|
||||
size="s"
|
||||
full-width
|
||||
@value-changed=${this._switchTab}
|
||||
></ha-button-toggle-group>`
|
||||
|
||||
@@ -35,7 +35,7 @@ export class HaBlueprintAutomationEditor extends HaBlueprintGenericEditor {
|
||||
)}
|
||||
<ha-button
|
||||
appearance="plain"
|
||||
size="small"
|
||||
size="s"
|
||||
slot="action"
|
||||
@click=${this._enable}
|
||||
>
|
||||
@@ -57,7 +57,7 @@ export class HaBlueprintAutomationEditor extends HaBlueprintGenericEditor {
|
||||
|
||||
<ha-button
|
||||
slot="fab"
|
||||
size="large"
|
||||
size="l"
|
||||
class=${this.dirty ? "dirty" : ""}
|
||||
.disabled=${this.saving}
|
||||
@click=${this._saveAutomation}
|
||||
|
||||
@@ -294,7 +294,7 @@ export default class HaAutomationCondition extends AutomationSortableListMixin<C
|
||||
.disabled=${this.disabled}
|
||||
@click=${this._addConditionDialog}
|
||||
.appearance=${this.root ? "accent" : "filled"}
|
||||
.size=${this.root ? "medium" : "small"}
|
||||
.size=${this.root ? "m" : "s"}
|
||||
>
|
||||
<ha-svg-icon .path=${mdiPlus} slot="start"></ha-svg-icon>
|
||||
${this.hass.localize(
|
||||
|
||||
@@ -237,7 +237,7 @@ export class HaAutomationEditor extends AutomationScriptEditorMixin<AutomationCo
|
||||
? html`
|
||||
<ha-button
|
||||
appearance="plain"
|
||||
size="small"
|
||||
size="s"
|
||||
@click=${this._showTrace}
|
||||
slot="toolbar-icon"
|
||||
>
|
||||
@@ -490,7 +490,7 @@ export class HaAutomationEditor extends AutomationScriptEditorMixin<AutomationCo
|
||||
)}
|
||||
<ha-button
|
||||
appearance="filled"
|
||||
size="small"
|
||||
size="s"
|
||||
variant="warning"
|
||||
slot="action"
|
||||
@click=${this._duplicate}
|
||||
@@ -508,7 +508,7 @@ export class HaAutomationEditor extends AutomationScriptEditorMixin<AutomationCo
|
||||
"ui.panel.config.automation.editor.disabled"
|
||||
)}
|
||||
<ha-button
|
||||
size="small"
|
||||
size="s"
|
||||
slot="action"
|
||||
@click=${this._toggle}
|
||||
>
|
||||
@@ -533,7 +533,7 @@ export class HaAutomationEditor extends AutomationScriptEditorMixin<AutomationCo
|
||||
)}
|
||||
<ha-button
|
||||
appearance="filled"
|
||||
size="small"
|
||||
size="s"
|
||||
slot="action"
|
||||
@click=${this._toggle}
|
||||
>
|
||||
@@ -553,7 +553,7 @@ export class HaAutomationEditor extends AutomationScriptEditorMixin<AutomationCo
|
||||
></ha-yaml-editor>
|
||||
<ha-button
|
||||
slot="fab"
|
||||
size="large"
|
||||
size="l"
|
||||
class=${this.dirty ? "dirty" : ""}
|
||||
.disabled=${this.saving}
|
||||
@click=${this._handleSaveAutomation}
|
||||
|
||||
@@ -23,11 +23,7 @@ export class HaAutomationNote extends LitElement {
|
||||
"ui.panel.config.automation.editor.note.label"
|
||||
)}
|
||||
</span>
|
||||
<ha-button
|
||||
@click=${this._handleClick}
|
||||
size="small"
|
||||
appearance="plain"
|
||||
>
|
||||
<ha-button @click=${this._handleClick} size="s" appearance="plain">
|
||||
${this._i18n.localize("ui.common.edit")}
|
||||
</ha-button>
|
||||
</div>
|
||||
|
||||
@@ -695,14 +695,14 @@ class HaAutomationPicker extends SubscribeMixin(LitElement) {
|
||||
target="_blank"
|
||||
appearance="plain"
|
||||
rel="noreferrer"
|
||||
size="small"
|
||||
size="s"
|
||||
>
|
||||
${this.hass.localize("ui.panel.config.common.learn_more")}
|
||||
<ha-svg-icon slot="end" .path=${mdiOpenInNew}> </ha-svg-icon>
|
||||
</ha-button>
|
||||
</div>`
|
||||
: nothing}
|
||||
<ha-button slot="fab" size="large" @click=${this._createNew}>
|
||||
<ha-button slot="fab" size="l" @click=${this._createNew}>
|
||||
<ha-svg-icon slot="start" .path=${mdiPlus}></ha-svg-icon>
|
||||
${this.hass.localize(
|
||||
"ui.panel.config.automation.picker.add_automation"
|
||||
|
||||
@@ -110,7 +110,7 @@ export class HaAutomationTrace extends LitElement {
|
||||
? html`
|
||||
<ha-button
|
||||
appearance="plain"
|
||||
size="small"
|
||||
size="s"
|
||||
class="trace-link"
|
||||
@click=${this._navigateToAutomation}
|
||||
slot="toolbar-icon"
|
||||
|
||||
@@ -114,7 +114,7 @@ export const ManualEditorMixin = <TConfig>(
|
||||
<div class="fab-positioner">
|
||||
<ha-button
|
||||
slot="fab"
|
||||
size="large"
|
||||
size="l"
|
||||
class=${this.dirty ? "dirty" : ""}
|
||||
.disabled=${this.saving}
|
||||
@click=${this.saveConfig}
|
||||
|
||||
@@ -92,7 +92,7 @@ export default class HaAutomationOption extends AutomationSortableListMixin<Opti
|
||||
<div class="buttons">
|
||||
<ha-button
|
||||
appearance="filled"
|
||||
size="small"
|
||||
size="s"
|
||||
.disabled=${this.disabled}
|
||||
@click=${this._addOption}
|
||||
>
|
||||
@@ -104,7 +104,7 @@ export default class HaAutomationOption extends AutomationSortableListMixin<Opti
|
||||
${!this.showDefaultActions
|
||||
? html`<ha-button
|
||||
appearance="plain"
|
||||
size="small"
|
||||
size="s"
|
||||
.disabled=${this.disabled}
|
||||
@click=${this._showDefaultActions}
|
||||
>
|
||||
|
||||
@@ -179,7 +179,7 @@ export default class HaAutomationTrigger extends AutomationSortableListMixin<Tri
|
||||
.disabled=${this.disabled}
|
||||
@click=${this._addTriggerDialog}
|
||||
.appearance=${this.root ? "accent" : "filled"}
|
||||
.size=${this.root ? "medium" : "small"}
|
||||
.size=${this.root ? "m" : "s"}
|
||||
>
|
||||
${this.hass.localize(
|
||||
"ui.panel.config.automation.editor.triggers.add"
|
||||
|
||||
@@ -40,7 +40,7 @@ class HaBackupConfigEncryptionKey extends LitElement {
|
||||
appearance="plain"
|
||||
slot="end"
|
||||
@click=${this._download}
|
||||
size="small"
|
||||
size="s"
|
||||
>
|
||||
<ha-svg-icon .path=${mdiDownload} slot="start"></ha-svg-icon>
|
||||
${this.hass.localize(
|
||||
@@ -63,7 +63,7 @@ class HaBackupConfigEncryptionKey extends LitElement {
|
||||
appearance="plain"
|
||||
slot="end"
|
||||
@click=${this._show}
|
||||
size="small"
|
||||
size="s"
|
||||
>
|
||||
${this.hass.localize(
|
||||
"ui.panel.config.backup.encryption_key.show_encryption_key_action"
|
||||
@@ -84,7 +84,7 @@ class HaBackupConfigEncryptionKey extends LitElement {
|
||||
<ha-button
|
||||
appearance="plain"
|
||||
variant="danger"
|
||||
size="small"
|
||||
size="s"
|
||||
slot="end"
|
||||
@click=${this._change}
|
||||
>
|
||||
@@ -156,7 +156,7 @@ class HaBackupConfigEncryptionKey extends LitElement {
|
||||
ha-list-item-base::part(supporting-text) {
|
||||
white-space: wrap;
|
||||
}
|
||||
ha-button[size="small"] ha-svg-icon {
|
||||
ha-button[size="s"] ha-svg-icon {
|
||||
--mdc-icon-size: 16px;
|
||||
}
|
||||
`;
|
||||
|
||||
@@ -379,7 +379,7 @@ class DialogBackupOnboarding extends LitElement implements HassDialog {
|
||||
)}
|
||||
</span>
|
||||
<ha-button
|
||||
size="small"
|
||||
size="s"
|
||||
appearance="plain"
|
||||
slot="end"
|
||||
@click=${this._downloadKey}
|
||||
|
||||
@@ -146,7 +146,7 @@ class DialogSetBackupEncryptionKey extends LitElement implements HassDialog {
|
||||
)}
|
||||
</span>
|
||||
<ha-button
|
||||
size="small"
|
||||
size="s"
|
||||
appearance="plain"
|
||||
slot="end"
|
||||
@click=${this._download}
|
||||
|
||||
@@ -533,7 +533,7 @@ class HaConfigBackupBackups extends SubscribeMixin(LitElement) {
|
||||
? html`
|
||||
<ha-button
|
||||
slot="fab"
|
||||
size="large"
|
||||
size="l"
|
||||
?disabled=${backupInProgress}
|
||||
@click=${this._newBackup}
|
||||
>
|
||||
|
||||
@@ -161,7 +161,7 @@ class HaConfigBackupDetails extends LitElement {
|
||||
slot="end"
|
||||
rel="noreferrer noopener"
|
||||
appearance="plain"
|
||||
size="small"
|
||||
size="s"
|
||||
>
|
||||
${this.hass.localize(
|
||||
"ui.panel.config.backup.location.encryption.location_encrypted_cloud_learn_more"
|
||||
|
||||
@@ -323,7 +323,7 @@ class HaConfigBackupOverview extends LitElement {
|
||||
|
||||
<ha-button
|
||||
slot="fab"
|
||||
size="large"
|
||||
size="l"
|
||||
.loading=${backupInProgress}
|
||||
@click=${this._newBackup}
|
||||
>
|
||||
|
||||
@@ -289,7 +289,7 @@ class HaConfigBackupSettings extends LitElement {
|
||||
: nothing}
|
||||
<div class="card-actions">
|
||||
<ha-button
|
||||
size="small"
|
||||
size="s"
|
||||
href=${documentationUrl(this.hass, "/integrations/#backup")}
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
@@ -302,7 +302,7 @@ class HaConfigBackupSettings extends LitElement {
|
||||
</ha-button>
|
||||
${supervisor
|
||||
? html`<ha-button
|
||||
size="small"
|
||||
size="s"
|
||||
appearance="plain"
|
||||
href="/config/storage"
|
||||
>
|
||||
@@ -478,7 +478,7 @@ class HaConfigBackupSettings extends LitElement {
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
ha-button[size="small"] ha-svg-icon {
|
||||
ha-button[size="s"] ha-svg-icon {
|
||||
--mdc-icon-size: 16px;
|
||||
}
|
||||
`;
|
||||
|
||||
@@ -174,7 +174,7 @@ class DialogImportBlueprint extends LitElement {
|
||||
)}
|
||||
</p>
|
||||
<ha-button
|
||||
size="small"
|
||||
size="s"
|
||||
appearance="plain"
|
||||
href=${documentationUrl(this.hass, "/get-blueprints")}
|
||||
target="_blank"
|
||||
|
||||
@@ -349,7 +349,7 @@ class HaBlueprintOverview extends LitElement {
|
||||
href=${documentationUrl(this.hass, "/get-blueprints")}
|
||||
target="_blank"
|
||||
rel="noreferrer noopener"
|
||||
size="small"
|
||||
size="s"
|
||||
>
|
||||
${this.hass.localize(
|
||||
"ui.panel.config.blueprint.overview.discover_more"
|
||||
@@ -375,7 +375,7 @@ class HaBlueprintOverview extends LitElement {
|
||||
.path=${mdiHelpCircleOutline}
|
||||
@click=${this._showHelp}
|
||||
></ha-icon-button>
|
||||
<ha-button slot="fab" size="large" @click=${this._addBlueprintClicked}>
|
||||
<ha-button slot="fab" size="l" @click=${this._addBlueprintClicked}>
|
||||
<ha-svg-icon slot="start" .path=${mdiDownload}></ha-svg-icon>
|
||||
${this.hass.localize(
|
||||
"ui.panel.config.blueprint.overview.add_blueprint"
|
||||
|
||||
@@ -187,7 +187,7 @@ export class CloudRemotePref extends LitElement {
|
||||
<ha-button
|
||||
slot="end"
|
||||
appearance="plain"
|
||||
size="small"
|
||||
size="s"
|
||||
@click=${this._openCertInfo}
|
||||
>
|
||||
${this.hass.localize(
|
||||
|
||||
@@ -95,7 +95,7 @@ export class CloudWebhooks extends LitElement {
|
||||
<ha-button
|
||||
slot="end"
|
||||
appearance="plain"
|
||||
size="small"
|
||||
size="s"
|
||||
@click=${this._handleManageButton}
|
||||
>
|
||||
${this.hass!.localize(
|
||||
|
||||
@@ -123,7 +123,7 @@ class ConfigAnalytics extends SubscribeMixin(LitElement) {
|
||||
</div>
|
||||
<div class="card-actions">
|
||||
<ha-button
|
||||
size="small"
|
||||
size="s"
|
||||
appearance="plain"
|
||||
@click=${this._downloadDeviceInfo}
|
||||
>
|
||||
|
||||
@@ -217,7 +217,7 @@ class HaConfigSectionUpdates extends LitElement {
|
||||
? html`
|
||||
<ha-button
|
||||
appearance="plain"
|
||||
size="small"
|
||||
size="s"
|
||||
.group=${group}
|
||||
.disabled=${group.entities.every((entity) =>
|
||||
updateIsInstalling(entity)
|
||||
|
||||
@@ -167,7 +167,7 @@ class HaPanelDevAction extends MatchMinHeightMixin(LitElement) {
|
||||
)}
|
||||
</div>
|
||||
<ha-button-toggle-group
|
||||
size="small"
|
||||
size="s"
|
||||
class="yaml-mode-toggle"
|
||||
.buttons=${modeButtons}
|
||||
.active=${this._yamlMode ? "yaml" : "ui"}
|
||||
|
||||
@@ -274,7 +274,7 @@ class HaPanelDevStatistics extends KeyboardShortcutMixin(LitElement) {
|
||||
@click=${this._fixIssue}
|
||||
.data=${statistic.issues}
|
||||
appearance="plain"
|
||||
size="small"
|
||||
size="s"
|
||||
>
|
||||
${localize(
|
||||
statistic.issues.some((issue) =>
|
||||
|
||||
@@ -519,7 +519,7 @@ export class HaConfigDevicePage extends LitElement {
|
||||
<div class="card-actions" slot="actions">
|
||||
<ha-button
|
||||
variant="warning"
|
||||
size="small"
|
||||
size="s"
|
||||
@click=${this._enableDevice}
|
||||
>
|
||||
${this.hass.localize("ui.common.enable")}
|
||||
|
||||
@@ -811,7 +811,7 @@ export class HaConfigDeviceDashboard extends LitElement {
|
||||
.hass=${this.hass}
|
||||
slot="toolbar-icon"
|
||||
></ha-integration-overflow-menu>
|
||||
<ha-button slot="fab" size="large" @click=${this._addDevice}>
|
||||
<ha-button slot="fab" size="l" @click=${this._addDevice}>
|
||||
<ha-svg-icon slot="start" .path=${mdiPlus}></ha-svg-icon>
|
||||
${this.hass.localize("ui.panel.config.devices.add_device")}
|
||||
</ha-button>
|
||||
|
||||
@@ -140,11 +140,7 @@ export class EnergyBatterySettings extends LitElement {
|
||||
`
|
||||
: ""}
|
||||
<div class="row">
|
||||
<ha-button
|
||||
@click=${this._addSource}
|
||||
appearance="filled"
|
||||
size="small"
|
||||
>
|
||||
<ha-button @click=${this._addSource} appearance="filled" size="s">
|
||||
<ha-svg-icon slot="start" .path=${mdiPlus}></ha-svg-icon>
|
||||
${this.hass.localize(
|
||||
"ui.panel.config.energy.battery.add_battery_system"
|
||||
|
||||
@@ -137,11 +137,7 @@ export class EnergyDeviceSettingsWater extends LitElement {
|
||||
`
|
||||
: ""}
|
||||
<div class="row">
|
||||
<ha-button
|
||||
@click=${this._addDevice}
|
||||
appearance="filled"
|
||||
size="small"
|
||||
>
|
||||
<ha-button @click=${this._addDevice} appearance="filled" size="s">
|
||||
<ha-svg-icon slot="start" .path=${mdiPlus}></ha-svg-icon
|
||||
>${this.hass.localize(
|
||||
"ui.panel.config.energy.device_consumption_water.add_device"
|
||||
|
||||
@@ -135,11 +135,7 @@ export class EnergyDeviceSettings extends LitElement {
|
||||
`
|
||||
: ""}
|
||||
<div class="row">
|
||||
<ha-button
|
||||
@click=${this._addDevice}
|
||||
appearance="filled"
|
||||
size="small"
|
||||
>
|
||||
<ha-button @click=${this._addDevice} appearance="filled" size="s">
|
||||
<ha-svg-icon slot="start" .path=${mdiPlus}></ha-svg-icon
|
||||
>${this.hass.localize(
|
||||
"ui.panel.config.energy.device_consumption.add_device"
|
||||
|
||||
@@ -124,11 +124,7 @@ export class EnergyGasSettings extends LitElement {
|
||||
`
|
||||
: ""}
|
||||
<div class="row">
|
||||
<ha-button
|
||||
@click=${this._addSource}
|
||||
appearance="filled"
|
||||
size="small"
|
||||
>
|
||||
<ha-button @click=${this._addSource} appearance="filled" size="s">
|
||||
<ha-svg-icon slot="start" .path=${mdiPlus}></ha-svg-icon
|
||||
>${this.hass.localize(
|
||||
"ui.panel.config.energy.gas.add_gas_source"
|
||||
|
||||
@@ -164,11 +164,7 @@ export class EnergyGridSettings extends LitElement {
|
||||
`
|
||||
: nothing}
|
||||
<div class="row">
|
||||
<ha-button
|
||||
@click=${this._addSource}
|
||||
appearance="filled"
|
||||
size="small"
|
||||
>
|
||||
<ha-button @click=${this._addSource} appearance="filled" size="s">
|
||||
<ha-svg-icon .path=${mdiPlus} slot="start"></ha-svg-icon>
|
||||
${this.hass.localize(
|
||||
"ui.panel.config.energy.grid.add_connection"
|
||||
@@ -219,7 +215,7 @@ export class EnergyGridSettings extends LitElement {
|
||||
<ha-button
|
||||
@click=${this._addCO2Sensor}
|
||||
appearance="filled"
|
||||
size="small"
|
||||
size="s"
|
||||
>
|
||||
<ha-svg-icon .path=${mdiPlus} slot="start"></ha-svg-icon>
|
||||
${this.hass.localize(
|
||||
|
||||
@@ -138,7 +138,7 @@ export class EnergySolarSettings extends LitElement {
|
||||
<ha-button
|
||||
@click=${this._addSource}
|
||||
appearance="filled"
|
||||
size="small"
|
||||
size="s"
|
||||
>
|
||||
<ha-svg-icon slot="start" .path=${mdiPlus}></ha-svg-icon>
|
||||
${this.hass.localize(
|
||||
|
||||
@@ -123,11 +123,7 @@ export class EnergyWaterSettings extends LitElement {
|
||||
`
|
||||
: ""}
|
||||
<div class="row">
|
||||
<ha-button
|
||||
@click=${this._addSource}
|
||||
appearance="filled"
|
||||
size="small"
|
||||
>
|
||||
<ha-button @click=${this._addSource} appearance="filled" size="s">
|
||||
<ha-svg-icon slot="start" .path=${mdiPlus}></ha-svg-icon
|
||||
>${this.hass.localize(
|
||||
"ui.panel.config.energy.water.add_water_source"
|
||||
|
||||
@@ -227,7 +227,7 @@ export class DialogEnergySolarSettings
|
||||
)}
|
||||
<ha-button
|
||||
appearance="filled"
|
||||
size="small"
|
||||
size="s"
|
||||
@click=${this._addForecast}
|
||||
>
|
||||
<ha-svg-icon .path=${mdiPlus} slot="start"></ha-svg-icon>
|
||||
|
||||
@@ -92,7 +92,7 @@ export class EntityRegistrySettings extends SubscribeMixin(LitElement) {
|
||||
? html`${this.hass!.localize(
|
||||
"ui.dialogs.entity_registry.editor.device_disabled"
|
||||
)}<ha-button
|
||||
size="small"
|
||||
size="s"
|
||||
variant="warning"
|
||||
@click=${this._openDeviceSettings}
|
||||
slot="action"
|
||||
@@ -108,7 +108,7 @@ export class EntityRegistrySettings extends SubscribeMixin(LitElement) {
|
||||
this.entry.disabled_by!
|
||||
)
|
||||
? html`<ha-button
|
||||
size="small"
|
||||
size="s"
|
||||
variant="warning"
|
||||
slot="action"
|
||||
@click=${this._enableEntry}
|
||||
|
||||
@@ -1054,7 +1054,7 @@ export class HaConfigEntities extends LitElement {
|
||||
@expanded-changed=${this._filterExpanded}
|
||||
></ha-filter-voice-assistants>
|
||||
${includeAddDeviceFab
|
||||
? html`<ha-button size="large" @click=${this._addDevice} slot="fab">
|
||||
? html`<ha-button size="l" @click=${this._addDevice} slot="fab">
|
||||
<ha-svg-icon slot="start" .path=${mdiPlus}></ha-svg-icon>
|
||||
${this.hass.localize("ui.panel.config.devices.add_device")}
|
||||
</ha-button>`
|
||||
|
||||
@@ -150,7 +150,7 @@ class HaInputSelectForm extends LitElement {
|
||||
.disabled=${this.disabled}
|
||||
></ha-input>
|
||||
<ha-button
|
||||
size="small"
|
||||
size="s"
|
||||
appearance="filled"
|
||||
@click=${this._addOption}
|
||||
.disabled=${this.disabled}
|
||||
|
||||
@@ -802,7 +802,7 @@ export class HaConfigHelpers extends SubscribeMixin(LitElement) {
|
||||
.hass=${this.hass}
|
||||
slot="toolbar-icon"
|
||||
></ha-integration-overflow-menu>
|
||||
<ha-button slot="fab" size="large" @click=${this._createHelper}>
|
||||
<ha-button slot="fab" size="l" @click=${this._createHelper}>
|
||||
<ha-svg-icon slot="start" .path=${mdiPlus}></ha-svg-icon>
|
||||
${this.hass.localize("ui.panel.config.helpers.picker.create_helper")}
|
||||
</ha-button>
|
||||
|
||||
@@ -670,7 +670,7 @@ class HaConfigIntegrationPage extends SubscribeMixin(LitElement) {
|
||||
"ui.panel.config.integrations.config_entry.debug_logging_enabled"
|
||||
)}
|
||||
<ha-button
|
||||
size="small"
|
||||
size="s"
|
||||
variant="warning"
|
||||
slot="action"
|
||||
@click=${this._handleDisableDebugLogging}
|
||||
@@ -696,7 +696,7 @@ class HaConfigIntegrationPage extends SubscribeMixin(LitElement) {
|
||||
<ha-button
|
||||
slot="end"
|
||||
variant="success"
|
||||
size="small"
|
||||
size="s"
|
||||
.flow=${flow}
|
||||
@click=${this._continueFlow}
|
||||
>
|
||||
|
||||
@@ -557,7 +557,7 @@ class HaConfigIntegrationsDashboard extends KeyboardShortcutMixin(
|
||||
)}
|
||||
<ha-button
|
||||
appearance="plain"
|
||||
size="small"
|
||||
size="s"
|
||||
@click=${this._toggleShowDisabled}
|
||||
>
|
||||
${this.hass.localize(
|
||||
@@ -677,7 +677,7 @@ class HaConfigIntegrationsDashboard extends KeyboardShortcutMixin(
|
||||
<ha-button
|
||||
@click=${this._createFlow}
|
||||
appearance="filled"
|
||||
size="small"
|
||||
size="s"
|
||||
>
|
||||
<ha-svg-icon slot="start" .path=${mdiPlus}></ha-svg-icon>
|
||||
${this.hass.localize(
|
||||
@@ -709,7 +709,7 @@ class HaConfigIntegrationsDashboard extends KeyboardShortcutMixin(
|
||||
<ha-button
|
||||
@click=${this._createFlow}
|
||||
appearance="filled"
|
||||
size="small"
|
||||
size="s"
|
||||
>
|
||||
<ha-svg-icon
|
||||
slot="start"
|
||||
@@ -723,7 +723,7 @@ class HaConfigIntegrationsDashboard extends KeyboardShortcutMixin(
|
||||
`
|
||||
: ""}
|
||||
</div>
|
||||
<ha-button slot="fab" size="large" @click=${this._createFlow}>
|
||||
<ha-button slot="fab" size="l" @click=${this._createFlow}>
|
||||
<ha-svg-icon slot="start" .path=${mdiPlus}></ha-svg-icon>
|
||||
${this.hass.localize("ui.panel.config.integrations.add_integration")}
|
||||
</ha-button>
|
||||
|
||||
@@ -91,7 +91,7 @@ export class MatterConfigDashboard extends LitElement {
|
||||
${this._renderNavigationCard()}
|
||||
</div>
|
||||
|
||||
<ha-button slot="fab" href="/config/matter/add" size="large">
|
||||
<ha-button slot="fab" href="/config/matter/add" size="l">
|
||||
<ha-svg-icon slot="start" .path=${mdiPlus}></ha-svg-icon>
|
||||
${this.hass.localize("ui.panel.config.matter.panel.add_device")}
|
||||
</ha-button>
|
||||
|
||||
@@ -69,7 +69,7 @@ class MatterOptionsPage extends LitElement {
|
||||
<ha-button
|
||||
appearance="plain"
|
||||
slot="end"
|
||||
size="small"
|
||||
size="s"
|
||||
@click=${this._startMobileCommissioning}
|
||||
>
|
||||
${this.hass.localize(
|
||||
@@ -92,7 +92,7 @@ class MatterOptionsPage extends LitElement {
|
||||
<ha-button
|
||||
appearance="plain"
|
||||
slot="end"
|
||||
size="small"
|
||||
size="s"
|
||||
@click=${this._commission}
|
||||
>
|
||||
${this.hass.localize(
|
||||
@@ -114,7 +114,7 @@ class MatterOptionsPage extends LitElement {
|
||||
<ha-button
|
||||
appearance="plain"
|
||||
slot="end"
|
||||
size="small"
|
||||
size="s"
|
||||
@click=${this._acceptSharedDevice}
|
||||
>
|
||||
${this.hass.localize(
|
||||
@@ -136,7 +136,7 @@ class MatterOptionsPage extends LitElement {
|
||||
<ha-button
|
||||
appearance="plain"
|
||||
slot="end"
|
||||
size="small"
|
||||
size="s"
|
||||
@click=${this._setWifi}
|
||||
>
|
||||
${this.hass.localize(
|
||||
@@ -158,7 +158,7 @@ class MatterOptionsPage extends LitElement {
|
||||
<ha-button
|
||||
appearance="plain"
|
||||
slot="end"
|
||||
size="small"
|
||||
size="s"
|
||||
@click=${this._setThread}
|
||||
>
|
||||
${this.hass.localize(
|
||||
|
||||
@@ -101,7 +101,7 @@ class MqttSubscribeCard extends LitElement {
|
||||
</ha-select>
|
||||
<ha-button
|
||||
appearance="plain"
|
||||
size="small"
|
||||
size="s"
|
||||
.disabled=${this._topic === ""}
|
||||
@click=${this._handleSubmit}
|
||||
>
|
||||
|
||||
@@ -125,7 +125,7 @@ export class ThreadConfigPanel extends SubscribeMixin(LitElement) {
|
||||
<ha-svg-icon .path=${mdiDevices}></ha-svg-icon>
|
||||
<ha-button
|
||||
appearance="plain"
|
||||
size="small"
|
||||
size="s"
|
||||
href=${documentationUrl(this.hass, `/integrations/thread`)}
|
||||
target="_blank"
|
||||
>
|
||||
@@ -157,7 +157,7 @@ export class ThreadConfigPanel extends SubscribeMixin(LitElement) {
|
||||
</div>
|
||||
<div class="card-actions">
|
||||
<ha-button
|
||||
size="small"
|
||||
size="s"
|
||||
@click=${this._importExternalThreadCredentials}
|
||||
>
|
||||
${this.hass.localize(
|
||||
@@ -322,7 +322,7 @@ export class ThreadConfigPanel extends SubscribeMixin(LitElement) {
|
||||
)}
|
||||
<ha-button
|
||||
appearance="plain"
|
||||
size="small"
|
||||
size="s"
|
||||
.otbr=${otbrForNetwork}
|
||||
@click=${this._resetBorderRouterEvent}
|
||||
>${this.hass.localize(
|
||||
@@ -334,7 +334,7 @@ export class ThreadConfigPanel extends SubscribeMixin(LitElement) {
|
||||
${network.dataset && !network.dataset.preferred
|
||||
? html`<div class="card-actions">
|
||||
<ha-button
|
||||
size="small"
|
||||
size="s"
|
||||
.datasetId=${network.dataset.dataset_id}
|
||||
@click=${this._setPreferred}
|
||||
>${this.hass.localize(
|
||||
@@ -353,7 +353,7 @@ export class ThreadConfigPanel extends SubscribeMixin(LitElement) {
|
||||
)}
|
||||
</p>
|
||||
<ha-button
|
||||
size="small"
|
||||
size="s"
|
||||
.networkDataset=${network.dataset}
|
||||
@click=${this._sendCredentials}
|
||||
>${this.hass.localize(
|
||||
|
||||
@@ -80,7 +80,7 @@ class ZHAAddDevicesPage extends LitElement {
|
||||
>
|
||||
<ha-button
|
||||
appearance="plain"
|
||||
size="small"
|
||||
size="s"
|
||||
slot="toolbar-icon"
|
||||
@click=${this._toggleLogs}
|
||||
>${this._showLogs ? "Hide logs" : "Show logs"}</ha-button
|
||||
|
||||
@@ -105,7 +105,7 @@ class ZHAConfigDashboard extends LitElement {
|
||||
</div>
|
||||
|
||||
<a href="/config/zha/add" slot="fab">
|
||||
<ha-button size="large">
|
||||
<ha-button size="l">
|
||||
<ha-svg-icon slot="start" .path=${mdiPlus}></ha-svg-icon>
|
||||
${this.hass.localize("ui.panel.config.zha.add_device")}
|
||||
</ha-button>
|
||||
@@ -319,7 +319,7 @@ class ZHAConfigDashboard extends LitElement {
|
||||
<ha-button
|
||||
appearance="plain"
|
||||
slot="end"
|
||||
size="small"
|
||||
size="s"
|
||||
@click=${this._createAndDownloadBackup}
|
||||
>
|
||||
<ha-svg-icon .path=${mdiDownload} slot="start"></ha-svg-icon>
|
||||
@@ -342,7 +342,7 @@ class ZHAConfigDashboard extends LitElement {
|
||||
<ha-button
|
||||
appearance="plain"
|
||||
slot="end"
|
||||
size="small"
|
||||
size="s"
|
||||
@click=${this._openOptionFlow}
|
||||
>
|
||||
${this.hass.localize(
|
||||
@@ -472,7 +472,7 @@ class ZHAConfigDashboard extends LitElement {
|
||||
--md-item-overflow: visible;
|
||||
}
|
||||
|
||||
ha-button[size="small"] ha-svg-icon {
|
||||
ha-button[size="s"] ha-svg-icon {
|
||||
--mdc-icon-size: 16px;
|
||||
}
|
||||
|
||||
|
||||
@@ -119,7 +119,7 @@ export class ZHAGroupsDashboard extends LitElement {
|
||||
clickable
|
||||
has-fab
|
||||
>
|
||||
<ha-button href="/config/zha/group-add" slot="fab" size="large">
|
||||
<ha-button href="/config/zha/group-add" slot="fab" size="l">
|
||||
<ha-svg-icon slot="start" .path=${mdiPlus}></ha-svg-icon>
|
||||
${this.hass!.localize("ui.panel.config.zha.groups.add_group")}
|
||||
</ha-button>
|
||||
|
||||
+4
-4
@@ -145,7 +145,7 @@ class DialogZWaveJSRebuildNetworkRoutes extends DialogMixin<ZWaveJSRebuildNetwor
|
||||
@click=${this._showProgressDetail}
|
||||
appearance="outlined"
|
||||
variant="warning"
|
||||
size="small"
|
||||
size="s"
|
||||
.title=${this._i18n.localize(
|
||||
"ui.panel.config.zwave_js.rebuild_network_routes.progress.in_progress",
|
||||
{ count: this._progress.pending.length }
|
||||
@@ -162,7 +162,7 @@ class DialogZWaveJSRebuildNetworkRoutes extends DialogMixin<ZWaveJSRebuildNetwor
|
||||
@click=${this._showProgressDetail}
|
||||
appearance="outlined"
|
||||
variant="success"
|
||||
size="small"
|
||||
size="s"
|
||||
.title=${this._i18n.localize(
|
||||
"ui.panel.config.zwave_js.rebuild_network_routes.progress.completed",
|
||||
{ count: this._progress.done.length }
|
||||
@@ -181,7 +181,7 @@ class DialogZWaveJSRebuildNetworkRoutes extends DialogMixin<ZWaveJSRebuildNetwor
|
||||
@click=${this._showProgressDetail}
|
||||
appearance="outlined"
|
||||
variant="danger"
|
||||
size="small"
|
||||
size="s"
|
||||
.title=${this._i18n.localize(
|
||||
"ui.panel.config.zwave_js.rebuild_network_routes.progress.failed",
|
||||
{ count: this._progress.failed.length }
|
||||
@@ -200,7 +200,7 @@ class DialogZWaveJSRebuildNetworkRoutes extends DialogMixin<ZWaveJSRebuildNetwor
|
||||
@click=${this._showProgressDetail}
|
||||
appearance="outlined"
|
||||
variant="neutral"
|
||||
size="small"
|
||||
size="s"
|
||||
.title=${this._i18n.localize(
|
||||
"ui.panel.config.zwave_js.rebuild_network_routes.progress.skipped",
|
||||
{ count: this._progress.skipped.length }
|
||||
|
||||
+5
-5
@@ -170,7 +170,7 @@ class ZWaveJSConfigDashboard extends SubscribeMixin(LitElement) {
|
||||
</div>
|
||||
<ha-button
|
||||
slot="fab"
|
||||
size="large"
|
||||
size="l"
|
||||
@click=${this._addNodeClicked}
|
||||
.disabled=${this._status !== "connected" ||
|
||||
(this._network?.controller.inclusion_state !== InclusionState.Idle &&
|
||||
@@ -482,7 +482,7 @@ class ZWaveJSConfigDashboard extends SubscribeMixin(LitElement) {
|
||||
<ha-button
|
||||
appearance="plain"
|
||||
slot="end"
|
||||
size="small"
|
||||
size="s"
|
||||
@click=${this._downloadBackup}
|
||||
>
|
||||
<ha-svg-icon
|
||||
@@ -508,7 +508,7 @@ class ZWaveJSConfigDashboard extends SubscribeMixin(LitElement) {
|
||||
<ha-button
|
||||
appearance="plain"
|
||||
slot="end"
|
||||
size="small"
|
||||
size="s"
|
||||
@click=${this._restoreButtonClick}
|
||||
>
|
||||
${this.hass.localize(
|
||||
@@ -537,7 +537,7 @@ class ZWaveJSConfigDashboard extends SubscribeMixin(LitElement) {
|
||||
<ha-button
|
||||
appearance="plain"
|
||||
slot="end"
|
||||
size="small"
|
||||
size="s"
|
||||
@click=${this._openConfigFlow}
|
||||
>
|
||||
${this.hass.localize(
|
||||
@@ -978,7 +978,7 @@ class ZWaveJSConfigDashboard extends SubscribeMixin(LitElement) {
|
||||
gap: var(--ha-space-4);
|
||||
}
|
||||
|
||||
ha-button[size="small"] ha-svg-icon {
|
||||
ha-button[size="s"] ha-svg-icon {
|
||||
--mdc-icon-size: 16px;
|
||||
}
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user