mirror of
https://github.com/home-assistant/frontend.git
synced 2026-02-09 01:38:14 +00:00
Compare commits
1 Commits
dev
...
migrate-di
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7a5cafa1fb |
@@ -18,7 +18,7 @@ The Home Assistant interface is based on Material Design. It's a design system c
|
||||
|
||||
We want to make it as easy for designers to contribute as it is for developers. There’s a lot a designer can contribute to:
|
||||
|
||||
- Meet us at <a href="https://www.home-assistant.io/join-chat-design" rel="noopener noreferrer" target="_blank">Discord #designers channel</a>. If you can't see the channel, make sure you set the correct role in Channels & Roles.
|
||||
- Meet us at <a href="https://www.home-assistant.io/join-chat" rel="noopener noreferrer" target="_blank">devs_ux Discord</a>. Feel free to share your designs, user test or strategic ideas.
|
||||
- Start designing with our <a href="https://www.figma.com/community/file/967153512097289521/Home-Assistant-DesignKit" rel="noopener noreferrer" target="_blank">Figma DesignKit</a>.
|
||||
- Find the latest UX <a href="https://github.com/home-assistant/frontend/discussions?discussions_q=label%3Aux" rel="noopener noreferrer" target="_blank">discussions</a> and <a href="https://github.com/home-assistant/frontend/labels/ux" rel="noopener noreferrer" target="_blank">issues</a> on GitHub. Everyone can start a new issue or discussion!
|
||||
|
||||
|
||||
@@ -132,7 +132,7 @@
|
||||
"stacktrace-js": "2.0.2",
|
||||
"superstruct": "2.0.2",
|
||||
"tinykeys": "3.0.0",
|
||||
"ua-parser-js": "2.0.9",
|
||||
"ua-parser-js": "2.0.8",
|
||||
"vue": "2.7.16",
|
||||
"vue2-daterange-picker": "0.6.8",
|
||||
"weekstart": "2.0.0",
|
||||
@@ -154,8 +154,8 @@
|
||||
"@octokit/auth-oauth-device": "8.0.3",
|
||||
"@octokit/plugin-retry": "8.0.3",
|
||||
"@octokit/rest": "22.0.1",
|
||||
"@rsdoctor/rspack-plugin": "1.5.2",
|
||||
"@rspack/core": "1.7.5",
|
||||
"@rsdoctor/rspack-plugin": "1.5.1",
|
||||
"@rspack/core": "1.7.4",
|
||||
"@rspack/dev-server": "1.2.1",
|
||||
"@types/babel__plugin-transform-runtime": "7.9.5",
|
||||
"@types/chromecast-caf-receiver": "6.0.25",
|
||||
@@ -191,7 +191,7 @@
|
||||
"eslint-plugin-wc": "3.0.2",
|
||||
"fancy-log": "2.0.0",
|
||||
"fs-extra": "11.3.3",
|
||||
"glob": "13.0.1",
|
||||
"glob": "13.0.0",
|
||||
"gulp": "5.0.1",
|
||||
"gulp-brotli": "3.0.0",
|
||||
"gulp-json-transform": "0.5.0",
|
||||
|
||||
@@ -24,8 +24,6 @@ import "../ha-icon-button";
|
||||
import "./hat-logbook-note";
|
||||
import type { NodeInfo } from "./hat-script-graph";
|
||||
import { traceTabStyles } from "./trace-tab-styles";
|
||||
import type { Trigger } from "../../data/automation";
|
||||
import { migrateAutomationTrigger } from "../../data/automation";
|
||||
|
||||
const TRACE_PATH_TABS = [
|
||||
"step_config",
|
||||
@@ -168,9 +166,7 @@ export class HaTracePathDetails extends LitElement {
|
||||
: selectedType === "trigger"
|
||||
? html`<h2>
|
||||
${describeTrigger(
|
||||
migrateAutomationTrigger({
|
||||
...currentDetail,
|
||||
}) as Trigger,
|
||||
currentDetail,
|
||||
this.hass,
|
||||
this._entityReg
|
||||
)}
|
||||
|
||||
@@ -74,8 +74,6 @@ export class HAFullCalendar extends LitElement {
|
||||
|
||||
@property({ type: Boolean, reflect: true }) public narrow = false;
|
||||
|
||||
@property({ attribute: "add-fab", type: Boolean }) public addFab = false;
|
||||
|
||||
@property({ attribute: false }) public events: CalendarEvent[] = [];
|
||||
|
||||
@property({ attribute: false }) public calendars: CalendarData[] = [];
|
||||
@@ -210,7 +208,7 @@ export class HAFullCalendar extends LitElement {
|
||||
: ""}
|
||||
|
||||
<div id="calendar"></div>
|
||||
${this.addFab && this._hasMutableCalendars
|
||||
${this._hasMutableCalendars
|
||||
? html`<ha-fab
|
||||
slot="fab"
|
||||
.label=${this.hass.localize("ui.components.calendar.event.add")}
|
||||
|
||||
@@ -193,7 +193,6 @@ class PanelCalendar extends SubscribeMixin(LitElement) {
|
||||
</ha-list-item>`
|
||||
: nothing}
|
||||
<ha-full-calendar
|
||||
add-fab
|
||||
.events=${this._events}
|
||||
.calendars=${this._calendars}
|
||||
.narrow=${this.narrow}
|
||||
|
||||
@@ -71,7 +71,6 @@ class HaConfigSectionAnalytics extends LitElement {
|
||||
display: block;
|
||||
max-width: 600px;
|
||||
margin: 0 auto;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
`;
|
||||
}
|
||||
|
||||
@@ -5,8 +5,7 @@ import { customElement, property, state } from "lit/decorators";
|
||||
import { fireEvent } from "../../../../common/dom/fire_event";
|
||||
import "../../../../components/ha-alert";
|
||||
import "../../../../components/ha-button";
|
||||
import "../../../../components/ha-dialog-footer";
|
||||
import "../../../../components/ha-wa-dialog";
|
||||
import { createCloseHeading } from "../../../../components/ha-dialog";
|
||||
import type { HassDialog } from "../../../../dialogs/make-dialog-manager";
|
||||
import { haStyleDialog } from "../../../../resources/styles";
|
||||
import type { HomeAssistant } from "../../../../types";
|
||||
@@ -22,21 +21,14 @@ export class DialogJoinBeta
|
||||
|
||||
@state() private _dialogParams?: JoinBetaDialogParams;
|
||||
|
||||
@state() private _open = false;
|
||||
|
||||
public showDialog(dialogParams: JoinBetaDialogParams): void {
|
||||
this._dialogParams = dialogParams;
|
||||
this._open = true;
|
||||
}
|
||||
|
||||
public closeDialog() {
|
||||
this._open = false;
|
||||
return true;
|
||||
}
|
||||
|
||||
private _dialogClosed() {
|
||||
this._dialogParams = undefined;
|
||||
fireEvent(this, "dialog-closed", { dialog: this.localName });
|
||||
return true;
|
||||
}
|
||||
|
||||
protected render() {
|
||||
@@ -45,11 +37,13 @@ export class DialogJoinBeta
|
||||
}
|
||||
|
||||
return html`
|
||||
<ha-wa-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${this.hass.localize("ui.dialogs.join_beta_channel.title")}
|
||||
@closed=${this._dialogClosed}
|
||||
<ha-dialog
|
||||
open
|
||||
@closed=${this.closeDialog}
|
||||
.heading=${createCloseHeading(
|
||||
this.hass,
|
||||
this.hass.localize("ui.dialogs.join_beta_channel.title")
|
||||
)}
|
||||
>
|
||||
<ha-alert alert-type="warning">
|
||||
${this.hass.localize("ui.dialogs.join_beta_channel.backup")}
|
||||
@@ -73,19 +67,17 @@ export class DialogJoinBeta
|
||||
)}
|
||||
<ha-svg-icon .path=${mdiOpenInNew}></ha-svg-icon>
|
||||
</a>
|
||||
<ha-dialog-footer slot="footer">
|
||||
<ha-button
|
||||
slot="secondaryAction"
|
||||
appearance="plain"
|
||||
@click=${this._cancel}
|
||||
>
|
||||
${this.hass.localize("ui.common.cancel")}
|
||||
</ha-button>
|
||||
<ha-button slot="primaryAction" @click=${this._join}>
|
||||
${this.hass.localize("ui.dialogs.join_beta_channel.join")}
|
||||
</ha-button>
|
||||
</ha-dialog-footer>
|
||||
</ha-wa-dialog>
|
||||
<ha-button
|
||||
appearance="plain"
|
||||
slot="primaryAction"
|
||||
@click=${this._cancel}
|
||||
>
|
||||
${this.hass.localize("ui.common.cancel")}
|
||||
</ha-button>
|
||||
<ha-button slot="primaryAction" @click=${this._join}>
|
||||
${this.hass.localize("ui.dialogs.join_beta_channel.join")}
|
||||
</ha-button>
|
||||
</ha-dialog>
|
||||
`;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
import { mdiBatteryHigh } from "@mdi/js";
|
||||
import type { CSSResultGroup } from "lit";
|
||||
import { css, html, LitElement, nothing } from "lit";
|
||||
import { customElement, property, state } from "lit/decorators";
|
||||
import { fireEvent } from "../../../../common/dom/fire_event";
|
||||
import "../../../../components/entity/ha-statistic-picker";
|
||||
import "../../../../components/ha-dialog";
|
||||
import "../../../../components/ha-button";
|
||||
import "../../../../components/ha-dialog-footer";
|
||||
import "../../../../components/ha-formfield";
|
||||
import "../../../../components/ha-radio";
|
||||
import "../../../../components/ha-wa-dialog";
|
||||
import type { HaRadio } from "../../../../components/ha-radio";
|
||||
import type {
|
||||
BatterySourceTypeEnergyPreference,
|
||||
@@ -37,6 +37,8 @@ export class DialogEnergyBatterySettings
|
||||
|
||||
@state() private _params?: EnergySettingsBatteryDialogParams;
|
||||
|
||||
@state() private _open = false;
|
||||
|
||||
@state() private _source?: BatterySourceTypeEnergyPreference;
|
||||
|
||||
@state() private _powerType: PowerType = "none";
|
||||
@@ -129,9 +131,16 @@ export class DialogEnergyBatterySettings
|
||||
this._excludeListPower = powerIds.filter(
|
||||
(id) => !currentPowerIds.includes(id)
|
||||
);
|
||||
|
||||
this._open = true;
|
||||
}
|
||||
|
||||
public closeDialog() {
|
||||
this._open = false;
|
||||
return true;
|
||||
}
|
||||
|
||||
private _dialogClosed() {
|
||||
this._params = undefined;
|
||||
this._source = undefined;
|
||||
this._powerType = "none";
|
||||
@@ -140,7 +149,6 @@ export class DialogEnergyBatterySettings
|
||||
this._excludeList = undefined;
|
||||
this._excludeListPower = undefined;
|
||||
fireEvent(this, "dialog-closed", { dialog: this.localName });
|
||||
return true;
|
||||
}
|
||||
|
||||
protected render() {
|
||||
@@ -149,14 +157,13 @@ export class DialogEnergyBatterySettings
|
||||
}
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
open
|
||||
.heading=${html`<ha-svg-icon
|
||||
.path=${mdiBatteryHigh}
|
||||
style="--mdc-icon-size: 32px;"
|
||||
></ha-svg-icon>
|
||||
${this.hass.localize("ui.panel.config.energy.battery.dialog.header")}`}
|
||||
@closed=${this.closeDialog}
|
||||
<ha-wa-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${this.hass.localize(
|
||||
"ui.panel.config.energy.battery.dialog.header"
|
||||
)}
|
||||
@closed=${this._dialogClosed}
|
||||
>
|
||||
${this._error ? html`<p class="error">${this._error}</p>` : nothing}
|
||||
|
||||
@@ -177,7 +184,7 @@ export class DialogEnergyBatterySettings
|
||||
"ui.panel.config.energy.battery.dialog.energy_helper_into",
|
||||
{ unit: this._energy_units?.join(", ") || "" }
|
||||
)}
|
||||
dialogInitialFocus
|
||||
autofocus
|
||||
></ha-statistic-picker>
|
||||
|
||||
<ha-statistic-picker
|
||||
@@ -320,21 +327,23 @@ export class DialogEnergyBatterySettings
|
||||
`
|
||||
: nothing}
|
||||
|
||||
<ha-button
|
||||
appearance="plain"
|
||||
@click=${this.closeDialog}
|
||||
slot="primaryAction"
|
||||
>
|
||||
${this.hass.localize("ui.common.cancel")}
|
||||
</ha-button>
|
||||
<ha-button
|
||||
@click=${this._save}
|
||||
.disabled=${!this._isValid()}
|
||||
slot="primaryAction"
|
||||
>
|
||||
${this.hass.localize("ui.common.save")}
|
||||
</ha-button>
|
||||
</ha-dialog>
|
||||
<ha-dialog-footer slot="footer">
|
||||
<ha-button
|
||||
appearance="plain"
|
||||
@click=${this.closeDialog}
|
||||
slot="secondaryAction"
|
||||
>
|
||||
${this.hass.localize("ui.common.cancel")}
|
||||
</ha-button>
|
||||
<ha-button
|
||||
@click=${this._save}
|
||||
.disabled=${!this._isValid()}
|
||||
slot="primaryAction"
|
||||
>
|
||||
${this.hass.localize("ui.common.save")}
|
||||
</ha-button>
|
||||
</ha-dialog-footer>
|
||||
</ha-wa-dialog>
|
||||
`;
|
||||
}
|
||||
|
||||
@@ -427,9 +436,6 @@ export class DialogEnergyBatterySettings
|
||||
haStyle,
|
||||
haStyleDialog,
|
||||
css`
|
||||
ha-dialog {
|
||||
--mdc-dialog-max-width: 430px;
|
||||
}
|
||||
ha-statistic-picker {
|
||||
display: block;
|
||||
margin-bottom: var(--ha-space-4);
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import { mdiWater } from "@mdi/js";
|
||||
import type { CSSResultGroup } from "lit";
|
||||
import { css, html, LitElement, nothing } from "lit";
|
||||
import { customElement, property, state } from "lit/decorators";
|
||||
@@ -6,9 +5,10 @@ import { fireEvent } from "../../../../common/dom/fire_event";
|
||||
import "../../../../components/entity/ha-entity-picker";
|
||||
import "../../../../components/entity/ha-statistic-picker";
|
||||
import "../../../../components/ha-button";
|
||||
import "../../../../components/ha-dialog";
|
||||
import "../../../../components/ha-dialog-footer";
|
||||
import "../../../../components/ha-radio";
|
||||
import "../../../../components/ha-select";
|
||||
import "../../../../components/ha-wa-dialog";
|
||||
import type { HaSelectSelectEvent } from "../../../../components/ha-select";
|
||||
import type { DeviceConsumptionEnergyPreference } from "../../../../data/energy";
|
||||
import { energyStatisticHelpUrl } from "../../../../data/energy";
|
||||
@@ -30,6 +30,8 @@ export class DialogEnergyDeviceSettingsWater
|
||||
|
||||
@state() private _params?: EnergySettingsDeviceWaterDialogParams;
|
||||
|
||||
@state() private _open = false;
|
||||
|
||||
@state() private _device?: DeviceConsumptionEnergyPreference;
|
||||
|
||||
@state() private _volume_units?: string[];
|
||||
@@ -52,6 +54,8 @@ export class DialogEnergyDeviceSettingsWater
|
||||
this._excludeList = this._params.device_consumptions
|
||||
.map((entry) => entry.stat_consumption)
|
||||
.filter((id) => id !== this._device?.stat_consumption);
|
||||
|
||||
this._open = true;
|
||||
}
|
||||
|
||||
private _computePossibleParents() {
|
||||
@@ -79,12 +83,16 @@ export class DialogEnergyDeviceSettingsWater
|
||||
}
|
||||
|
||||
public closeDialog() {
|
||||
this._open = false;
|
||||
return true;
|
||||
}
|
||||
|
||||
private _dialogClosed() {
|
||||
this._params = undefined;
|
||||
this._device = undefined;
|
||||
this._error = undefined;
|
||||
this._excludeList = undefined;
|
||||
fireEvent(this, "dialog-closed", { dialog: this.localName });
|
||||
return true;
|
||||
}
|
||||
|
||||
protected render() {
|
||||
@@ -116,16 +124,13 @@ export class DialogEnergyDeviceSettingsWater
|
||||
}));
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
open
|
||||
.heading=${html`<ha-svg-icon
|
||||
.path=${mdiWater}
|
||||
style="--mdc-icon-size: 32px;"
|
||||
></ha-svg-icon>
|
||||
${this.hass.localize(
|
||||
"ui.panel.config.energy.device_consumption_water.dialog.header"
|
||||
)}`}
|
||||
@closed=${this.closeDialog}
|
||||
<ha-wa-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${this.hass.localize(
|
||||
"ui.panel.config.energy.device_consumption_water.dialog.header"
|
||||
)}
|
||||
@closed=${this._dialogClosed}
|
||||
>
|
||||
${this._error ? html`<p class="error">${this._error}</p>` : ""}
|
||||
<div>
|
||||
@@ -145,7 +150,7 @@ export class DialogEnergyDeviceSettingsWater
|
||||
)}
|
||||
.excludeStatistics=${this._excludeList}
|
||||
@value-changed=${this._statisticChanged}
|
||||
dialogInitialFocus
|
||||
autofocus
|
||||
></ha-statistic-picker>
|
||||
|
||||
<ha-textfield
|
||||
@@ -181,21 +186,23 @@ export class DialogEnergyDeviceSettingsWater
|
||||
>
|
||||
</ha-select>
|
||||
|
||||
<ha-button
|
||||
appearance="plain"
|
||||
@click=${this.closeDialog}
|
||||
slot="primaryAction"
|
||||
>
|
||||
${this.hass.localize("ui.common.cancel")}
|
||||
</ha-button>
|
||||
<ha-button
|
||||
@click=${this._save}
|
||||
.disabled=${!this._device}
|
||||
slot="primaryAction"
|
||||
>
|
||||
${this.hass.localize("ui.common.save")}
|
||||
</ha-button>
|
||||
</ha-dialog>
|
||||
<ha-dialog-footer slot="footer">
|
||||
<ha-button
|
||||
appearance="plain"
|
||||
@click=${this.closeDialog}
|
||||
slot="secondaryAction"
|
||||
>
|
||||
${this.hass.localize("ui.common.cancel")}
|
||||
</ha-button>
|
||||
<ha-button
|
||||
@click=${this._save}
|
||||
.disabled=${!this._device}
|
||||
slot="primaryAction"
|
||||
>
|
||||
${this.hass.localize("ui.common.save")}
|
||||
</ha-button>
|
||||
</ha-dialog-footer>
|
||||
</ha-wa-dialog>
|
||||
`;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import { mdiDevices } from "@mdi/js";
|
||||
import type { CSSResultGroup } from "lit";
|
||||
import { css, html, LitElement, nothing } from "lit";
|
||||
import { customElement, property, state } from "lit/decorators";
|
||||
@@ -6,9 +5,10 @@ import { fireEvent } from "../../../../common/dom/fire_event";
|
||||
import "../../../../components/entity/ha-entity-picker";
|
||||
import "../../../../components/entity/ha-statistic-picker";
|
||||
import "../../../../components/ha-button";
|
||||
import "../../../../components/ha-dialog";
|
||||
import "../../../../components/ha-dialog-footer";
|
||||
import "../../../../components/ha-radio";
|
||||
import "../../../../components/ha-select";
|
||||
import "../../../../components/ha-wa-dialog";
|
||||
import type {
|
||||
HaSelectOption,
|
||||
HaSelectSelectEvent,
|
||||
@@ -34,6 +34,8 @@ export class DialogEnergyDeviceSettings
|
||||
|
||||
@state() private _params?: EnergySettingsDeviceDialogParams;
|
||||
|
||||
@state() private _open = false;
|
||||
|
||||
@state() private _device?: DeviceConsumptionEnergyPreference;
|
||||
|
||||
@state() private _energy_units?: string[];
|
||||
@@ -66,6 +68,8 @@ export class DialogEnergyDeviceSettings
|
||||
this._excludeListPower = this._params.device_consumptions
|
||||
.map((entry) => entry.stat_rate)
|
||||
.filter((id) => id && id !== this._device?.stat_rate) as string[];
|
||||
|
||||
this._open = true;
|
||||
}
|
||||
|
||||
private _computePossibleParents() {
|
||||
@@ -93,12 +97,16 @@ export class DialogEnergyDeviceSettings
|
||||
}
|
||||
|
||||
public closeDialog() {
|
||||
this._open = false;
|
||||
return true;
|
||||
}
|
||||
|
||||
private _dialogClosed() {
|
||||
this._params = undefined;
|
||||
this._device = undefined;
|
||||
this._error = undefined;
|
||||
this._excludeList = undefined;
|
||||
fireEvent(this, "dialog-closed", { dialog: this.localName });
|
||||
return true;
|
||||
}
|
||||
|
||||
protected render() {
|
||||
@@ -129,16 +137,13 @@ export class DialogEnergyDeviceSettings
|
||||
];
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
open
|
||||
.heading=${html`<ha-svg-icon
|
||||
.path=${mdiDevices}
|
||||
style="--mdc-icon-size: 32px;"
|
||||
></ha-svg-icon>
|
||||
${this.hass.localize(
|
||||
"ui.panel.config.energy.device_consumption.dialog.header"
|
||||
)}`}
|
||||
@closed=${this.closeDialog}
|
||||
<ha-wa-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${this.hass.localize(
|
||||
"ui.panel.config.energy.device_consumption.dialog.header"
|
||||
)}
|
||||
@closed=${this._dialogClosed}
|
||||
>
|
||||
${this._error ? html`<p class="error">${this._error}</p>` : ""}
|
||||
|
||||
@@ -156,7 +161,7 @@ export class DialogEnergyDeviceSettings
|
||||
"ui.panel.config.energy.device_consumption.dialog.selected_stat_intro",
|
||||
{ unit: this._energy_units?.join(", ") || "" }
|
||||
)}
|
||||
dialogInitialFocus
|
||||
autofocus
|
||||
></ha-statistic-picker>
|
||||
|
||||
<ha-statistic-picker
|
||||
@@ -207,21 +212,23 @@ export class DialogEnergyDeviceSettings
|
||||
>
|
||||
</ha-select>
|
||||
|
||||
<ha-button
|
||||
appearance="plain"
|
||||
@click=${this.closeDialog}
|
||||
slot="primaryAction"
|
||||
>
|
||||
${this.hass.localize("ui.common.cancel")}
|
||||
</ha-button>
|
||||
<ha-button
|
||||
@click=${this._save}
|
||||
.disabled=${!this._device}
|
||||
slot="primaryAction"
|
||||
>
|
||||
${this.hass.localize("ui.common.save")}
|
||||
</ha-button>
|
||||
</ha-dialog>
|
||||
<ha-dialog-footer slot="footer">
|
||||
<ha-button
|
||||
appearance="plain"
|
||||
@click=${this.closeDialog}
|
||||
slot="secondaryAction"
|
||||
>
|
||||
${this.hass.localize("ui.common.cancel")}
|
||||
</ha-button>
|
||||
<ha-button
|
||||
@click=${this._save}
|
||||
.disabled=${!this._device}
|
||||
slot="primaryAction"
|
||||
>
|
||||
${this.hass.localize("ui.common.save")}
|
||||
</ha-button>
|
||||
</ha-dialog-footer>
|
||||
</ha-wa-dialog>
|
||||
`;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
import { mdiFire } from "@mdi/js";
|
||||
import type { CSSResultGroup } from "lit";
|
||||
import { css, html, LitElement, nothing } from "lit";
|
||||
import { customElement, property, state } from "lit/decorators";
|
||||
import { fireEvent } from "../../../../common/dom/fire_event";
|
||||
import "../../../../components/entity/ha-entity-picker";
|
||||
import "../../../../components/entity/ha-statistic-picker";
|
||||
import "../../../../components/ha-dialog";
|
||||
import "../../../../components/ha-dialog-footer";
|
||||
import "../../../../components/ha-formfield";
|
||||
import "../../../../components/ha-radio";
|
||||
import "../../../../components/ha-button";
|
||||
import "../../../../components/ha-markdown";
|
||||
import "../../../../components/ha-wa-dialog";
|
||||
import type { HaRadio } from "../../../../components/ha-radio";
|
||||
import "../../../../components/ha-textfield";
|
||||
import type { GasSourceTypeEnergyPreference } from "../../../../data/energy";
|
||||
@@ -40,6 +40,8 @@ export class DialogEnergyGasSettings
|
||||
|
||||
@state() private _params?: EnergySettingsGasDialogParams;
|
||||
|
||||
@state() private _open = false;
|
||||
|
||||
@state() private _source?: GasSourceTypeEnergyPreference;
|
||||
|
||||
@state() private _costs?: "no-costs" | "number" | "entity" | "statistic";
|
||||
@@ -82,16 +84,22 @@ export class DialogEnergyGasSettings
|
||||
this._excludeList = this._params.gas_sources
|
||||
.map((entry) => entry.stat_energy_from)
|
||||
.filter((id) => id !== this._source?.stat_energy_from);
|
||||
|
||||
this._open = true;
|
||||
}
|
||||
|
||||
public closeDialog() {
|
||||
this._open = false;
|
||||
return true;
|
||||
}
|
||||
|
||||
private _dialogClosed() {
|
||||
this._params = undefined;
|
||||
this._source = undefined;
|
||||
this._pickedDisplayUnit = undefined;
|
||||
this._error = undefined;
|
||||
this._excludeList = undefined;
|
||||
fireEvent(this, "dialog-closed", { dialog: this.localName });
|
||||
return true;
|
||||
}
|
||||
|
||||
protected render() {
|
||||
@@ -124,14 +132,13 @@ export class DialogEnergyGasSettings
|
||||
isExternalStatistic(this._source.stat_energy_from);
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
open
|
||||
.heading=${html`<ha-svg-icon
|
||||
.path=${mdiFire}
|
||||
style="--mdc-icon-size: 32px;"
|
||||
></ha-svg-icon>
|
||||
${this.hass.localize("ui.panel.config.energy.gas.dialog.header")}`}
|
||||
@closed=${this.closeDialog}
|
||||
<ha-wa-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${this.hass.localize(
|
||||
"ui.panel.config.energy.gas.dialog.header"
|
||||
)}
|
||||
@closed=${this._dialogClosed}
|
||||
>
|
||||
${this._error ? html`<p class="error">${this._error}</p>` : ""}
|
||||
<div>
|
||||
@@ -161,7 +168,7 @@ export class DialogEnergyGasSettings
|
||||
)}
|
||||
.excludeStatistics=${this._excludeList}
|
||||
@value-changed=${this._statisticChanged}
|
||||
dialogInitialFocus
|
||||
autofocus
|
||||
></ha-statistic-picker>
|
||||
|
||||
<p>
|
||||
@@ -281,21 +288,23 @@ export class DialogEnergyGasSettings
|
||||
</ha-textfield>`
|
||||
: ""}
|
||||
|
||||
<ha-button
|
||||
appearance="plain"
|
||||
@click=${this.closeDialog}
|
||||
slot="primaryAction"
|
||||
>
|
||||
${this.hass.localize("ui.common.cancel")}
|
||||
</ha-button>
|
||||
<ha-button
|
||||
@click=${this._save}
|
||||
.disabled=${!this._source.stat_energy_from}
|
||||
slot="primaryAction"
|
||||
>
|
||||
${this.hass.localize("ui.common.save")}
|
||||
</ha-button>
|
||||
</ha-dialog>
|
||||
<ha-dialog-footer slot="footer">
|
||||
<ha-button
|
||||
appearance="plain"
|
||||
@click=${this.closeDialog}
|
||||
slot="secondaryAction"
|
||||
>
|
||||
${this.hass.localize("ui.common.cancel")}
|
||||
</ha-button>
|
||||
<ha-button
|
||||
@click=${this._save}
|
||||
.disabled=${!this._source.stat_energy_from}
|
||||
slot="primaryAction"
|
||||
>
|
||||
${this.hass.localize("ui.common.save")}
|
||||
</ha-button>
|
||||
</ha-dialog-footer>
|
||||
</ha-wa-dialog>
|
||||
`;
|
||||
}
|
||||
|
||||
@@ -370,9 +379,6 @@ export class DialogEnergyGasSettings
|
||||
haStyle,
|
||||
haStyleDialog,
|
||||
css`
|
||||
ha-dialog {
|
||||
--mdc-dialog-max-width: 430px;
|
||||
}
|
||||
ha-formfield {
|
||||
display: block;
|
||||
}
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
import { mdiTransmissionTower } from "@mdi/js";
|
||||
import type { CSSResultGroup } from "lit";
|
||||
import { css, html, LitElement, nothing } from "lit";
|
||||
import { customElement, property, state } from "lit/decorators";
|
||||
import { fireEvent } from "../../../../common/dom/fire_event";
|
||||
import "../../../../components/entity/ha-entity-picker";
|
||||
import "../../../../components/entity/ha-statistic-picker";
|
||||
import "../../../../components/ha-dialog";
|
||||
import "../../../../components/ha-button";
|
||||
import "../../../../components/ha-dialog-footer";
|
||||
import "../../../../components/ha-formfield";
|
||||
import "../../../../components/ha-radio";
|
||||
import "../../../../components/ha-markdown";
|
||||
import "../../../../components/ha-wa-dialog";
|
||||
import type { HaRadio } from "../../../../components/ha-radio";
|
||||
import type {
|
||||
FlowFromGridSourceEnergyPreference,
|
||||
@@ -38,6 +38,8 @@ export class DialogEnergyGridFlowSettings
|
||||
|
||||
@state() private _params?: EnergySettingsGridFlowDialogParams;
|
||||
|
||||
@state() private _open = false;
|
||||
|
||||
@state() private _source?:
|
||||
| FlowFromGridSourceEnergyPreference
|
||||
| FlowToGridSourceEnergyPreference;
|
||||
@@ -88,15 +90,21 @@ export class DialogEnergyGridFlowSettings
|
||||
(entry) => entry.stat_energy_to
|
||||
) || []),
|
||||
].filter((id) => id !== initialSourceId);
|
||||
|
||||
this._open = true;
|
||||
}
|
||||
|
||||
public closeDialog() {
|
||||
this._open = false;
|
||||
return true;
|
||||
}
|
||||
|
||||
private _dialogClosed() {
|
||||
this._params = undefined;
|
||||
this._source = undefined;
|
||||
this._error = undefined;
|
||||
this._excludeList = undefined;
|
||||
fireEvent(this, "dialog-closed", { dialog: this.localName });
|
||||
return true;
|
||||
}
|
||||
|
||||
protected render() {
|
||||
@@ -121,16 +129,13 @@ export class DialogEnergyGridFlowSettings
|
||||
);
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
open
|
||||
.heading=${html`<ha-svg-icon
|
||||
.path=${mdiTransmissionTower}
|
||||
style="--mdc-icon-size: 32px;"
|
||||
></ha-svg-icon
|
||||
>${this.hass.localize(
|
||||
`ui.panel.config.energy.grid.flow_dialog.${this._params.direction}.header`
|
||||
)}`}
|
||||
@closed=${this.closeDialog}
|
||||
<ha-wa-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${this.hass.localize(
|
||||
`ui.panel.config.energy.grid.flow_dialog.${this._params.direction}.header`
|
||||
)}
|
||||
@closed=${this._dialogClosed}
|
||||
>
|
||||
${this._error ? html`<p class="error">${this._error}</p>` : ""}
|
||||
<p>
|
||||
@@ -157,7 +162,7 @@ export class DialogEnergyGridFlowSettings
|
||||
`ui.panel.config.energy.grid.flow_dialog.${this._params.direction}.entity_para`,
|
||||
{ unit: this._energy_units?.join(", ") || "" }
|
||||
)}
|
||||
dialogInitialFocus
|
||||
autofocus
|
||||
></ha-statistic-picker>
|
||||
|
||||
<p>
|
||||
@@ -265,25 +270,27 @@ export class DialogEnergyGridFlowSettings
|
||||
</ha-textfield>`
|
||||
: ""}
|
||||
|
||||
<ha-button
|
||||
appearance="plain"
|
||||
@click=${this.closeDialog}
|
||||
slot="primaryAction"
|
||||
>
|
||||
${this.hass.localize("ui.common.cancel")}
|
||||
</ha-button>
|
||||
<ha-button
|
||||
@click=${this._save}
|
||||
.disabled=${!this._source[
|
||||
this._params!.direction === "from"
|
||||
? "stat_energy_from"
|
||||
: "stat_energy_to"
|
||||
]}
|
||||
slot="primaryAction"
|
||||
>
|
||||
${this.hass.localize("ui.common.save")}
|
||||
</ha-button>
|
||||
</ha-dialog>
|
||||
<ha-dialog-footer slot="footer">
|
||||
<ha-button
|
||||
appearance="plain"
|
||||
@click=${this.closeDialog}
|
||||
slot="secondaryAction"
|
||||
>
|
||||
${this.hass.localize("ui.common.cancel")}
|
||||
</ha-button>
|
||||
<ha-button
|
||||
@click=${this._save}
|
||||
.disabled=${!this._source[
|
||||
this._params!.direction === "from"
|
||||
? "stat_energy_from"
|
||||
: "stat_energy_to"
|
||||
]}
|
||||
slot="primaryAction"
|
||||
>
|
||||
${this.hass.localize("ui.common.save")}
|
||||
</ha-button>
|
||||
</ha-dialog-footer>
|
||||
</ha-wa-dialog>
|
||||
`;
|
||||
}
|
||||
|
||||
@@ -359,9 +366,6 @@ export class DialogEnergyGridFlowSettings
|
||||
return [
|
||||
haStyleDialog,
|
||||
css`
|
||||
ha-dialog {
|
||||
--mdc-dialog-max-width: 430px;
|
||||
}
|
||||
ha-statistic-picker {
|
||||
display: block;
|
||||
margin: var(--ha-space-4) 0;
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
import { mdiTransmissionTower } from "@mdi/js";
|
||||
import type { CSSResultGroup } from "lit";
|
||||
import { css, html, LitElement, nothing } from "lit";
|
||||
import { customElement, property, state } from "lit/decorators";
|
||||
import { fireEvent } from "../../../../common/dom/fire_event";
|
||||
import "../../../../components/entity/ha-statistic-picker";
|
||||
import "../../../../components/ha-dialog";
|
||||
import "../../../../components/ha-button";
|
||||
import "../../../../components/ha-dialog-footer";
|
||||
import "../../../../components/ha-formfield";
|
||||
import "../../../../components/ha-radio";
|
||||
import "../../../../components/ha-wa-dialog";
|
||||
import type { HaRadio } from "../../../../components/ha-radio";
|
||||
import type {
|
||||
GridPowerSourceInput,
|
||||
@@ -33,6 +33,8 @@ export class DialogEnergyGridPowerSettings
|
||||
|
||||
@state() private _params?: EnergySettingsGridPowerDialogParams;
|
||||
|
||||
@state() private _open = false;
|
||||
|
||||
@state() private _sensorType: SensorType = "standard";
|
||||
|
||||
@state() private _powerConfig: PowerConfig = {};
|
||||
@@ -100,16 +102,22 @@ export class DialogEnergyGridPowerSettings
|
||||
this._excludeListPower = excludeIds.filter(
|
||||
(id) => !currentIds.includes(id)
|
||||
);
|
||||
|
||||
this._open = true;
|
||||
}
|
||||
|
||||
public closeDialog() {
|
||||
this._open = false;
|
||||
return true;
|
||||
}
|
||||
|
||||
private _dialogClosed() {
|
||||
this._params = undefined;
|
||||
this._powerConfig = {};
|
||||
this._sensorType = "standard";
|
||||
this._error = undefined;
|
||||
this._excludeListPower = undefined;
|
||||
fireEvent(this, "dialog-closed", { dialog: this.localName });
|
||||
return true;
|
||||
}
|
||||
|
||||
protected render() {
|
||||
@@ -118,16 +126,13 @@ export class DialogEnergyGridPowerSettings
|
||||
}
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
open
|
||||
.heading=${html`<ha-svg-icon
|
||||
.path=${mdiTransmissionTower}
|
||||
style="--mdc-icon-size: 32px;"
|
||||
></ha-svg-icon
|
||||
>${this.hass.localize(
|
||||
"ui.panel.config.energy.grid.power_dialog.header"
|
||||
)}`}
|
||||
@closed=${this.closeDialog}
|
||||
<ha-wa-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${this.hass.localize(
|
||||
"ui.panel.config.energy.grid.power_dialog.header"
|
||||
)}
|
||||
@closed=${this._dialogClosed}
|
||||
>
|
||||
${this._error ? html`<p class="error">${this._error}</p>` : nothing}
|
||||
|
||||
@@ -190,7 +195,7 @@ export class DialogEnergyGridPowerSettings
|
||||
"ui.panel.config.energy.grid.power_dialog.power_helper",
|
||||
{ unit: this._power_units?.join(", ") || "" }
|
||||
)}
|
||||
dialogInitialFocus
|
||||
autofocus
|
||||
></ha-statistic-picker>
|
||||
`
|
||||
: nothing}
|
||||
@@ -209,7 +214,7 @@ export class DialogEnergyGridPowerSettings
|
||||
.helper=${this.hass.localize(
|
||||
"ui.panel.config.energy.grid.power_dialog.type_inverted_description"
|
||||
)}
|
||||
dialogInitialFocus
|
||||
autofocus
|
||||
></ha-statistic-picker>
|
||||
`
|
||||
: nothing}
|
||||
@@ -228,7 +233,7 @@ export class DialogEnergyGridPowerSettings
|
||||
this._powerConfig.stat_rate_to,
|
||||
].filter((id): id is string => Boolean(id))}
|
||||
@value-changed=${this._fromStatisticChanged}
|
||||
dialogInitialFocus
|
||||
autofocus
|
||||
></ha-statistic-picker>
|
||||
<ha-statistic-picker
|
||||
.hass=${this.hass}
|
||||
@@ -247,21 +252,23 @@ export class DialogEnergyGridPowerSettings
|
||||
`
|
||||
: nothing}
|
||||
|
||||
<ha-button
|
||||
appearance="plain"
|
||||
@click=${this.closeDialog}
|
||||
slot="primaryAction"
|
||||
>
|
||||
${this.hass.localize("ui.common.cancel")}
|
||||
</ha-button>
|
||||
<ha-button
|
||||
@click=${this._save}
|
||||
.disabled=${!this._isValid()}
|
||||
slot="primaryAction"
|
||||
>
|
||||
${this.hass.localize("ui.common.save")}
|
||||
</ha-button>
|
||||
</ha-dialog>
|
||||
<ha-dialog-footer slot="footer">
|
||||
<ha-button
|
||||
appearance="plain"
|
||||
@click=${this.closeDialog}
|
||||
slot="secondaryAction"
|
||||
>
|
||||
${this.hass.localize("ui.common.cancel")}
|
||||
</ha-button>
|
||||
<ha-button
|
||||
@click=${this._save}
|
||||
.disabled=${!this._isValid()}
|
||||
slot="primaryAction"
|
||||
>
|
||||
${this.hass.localize("ui.common.save")}
|
||||
</ha-button>
|
||||
</ha-dialog-footer>
|
||||
</ha-wa-dialog>
|
||||
`;
|
||||
}
|
||||
|
||||
@@ -329,9 +336,6 @@ export class DialogEnergyGridPowerSettings
|
||||
return [
|
||||
haStyleDialog,
|
||||
css`
|
||||
ha-dialog {
|
||||
--mdc-dialog-max-width: 430px;
|
||||
}
|
||||
ha-formfield {
|
||||
display: block;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { mdiPlus, mdiSolarPower } from "@mdi/js";
|
||||
import { mdiPlus } from "@mdi/js";
|
||||
import type { CSSResultGroup } from "lit";
|
||||
import { css, html, LitElement, nothing } from "lit";
|
||||
import { customElement, property, state } from "lit/decorators";
|
||||
@@ -6,11 +6,12 @@ import { fireEvent } from "../../../../common/dom/fire_event";
|
||||
import "../../../../components/entity/ha-statistic-picker";
|
||||
import "../../../../components/ha-checkbox";
|
||||
import type { HaCheckbox } from "../../../../components/ha-checkbox";
|
||||
import "../../../../components/ha-dialog";
|
||||
import "../../../../components/ha-formfield";
|
||||
import "../../../../components/ha-button";
|
||||
import "../../../../components/ha-dialog-footer";
|
||||
import "../../../../components/ha-radio";
|
||||
import "../../../../components/ha-svg-icon";
|
||||
import "../../../../components/ha-wa-dialog";
|
||||
import type { HaRadio } from "../../../../components/ha-radio";
|
||||
import type { ConfigEntry } from "../../../../data/config_entries";
|
||||
import { getConfigEntries } from "../../../../data/config_entries";
|
||||
@@ -39,6 +40,8 @@ export class DialogEnergySolarSettings
|
||||
|
||||
@state() private _params?: EnergySettingsSolarDialogParams;
|
||||
|
||||
@state() private _open = false;
|
||||
|
||||
@state() private _source?: SolarSourceTypeEnergyPreference;
|
||||
|
||||
@state() private _configEntries?: ConfigEntry[];
|
||||
@@ -76,15 +79,21 @@ export class DialogEnergySolarSettings
|
||||
this._excludeListPower = this._params.solar_sources
|
||||
.map((entry) => entry.stat_rate)
|
||||
.filter((id) => id && id !== this._source?.stat_rate) as string[];
|
||||
|
||||
this._open = true;
|
||||
}
|
||||
|
||||
public closeDialog() {
|
||||
this._open = false;
|
||||
return true;
|
||||
}
|
||||
|
||||
private _dialogClosed() {
|
||||
this._params = undefined;
|
||||
this._source = undefined;
|
||||
this._error = undefined;
|
||||
this._excludeList = undefined;
|
||||
fireEvent(this, "dialog-closed", { dialog: this.localName });
|
||||
return true;
|
||||
}
|
||||
|
||||
protected render() {
|
||||
@@ -93,14 +102,13 @@ export class DialogEnergySolarSettings
|
||||
}
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
open
|
||||
.heading=${html`<ha-svg-icon
|
||||
.path=${mdiSolarPower}
|
||||
style="--mdc-icon-size: 32px;"
|
||||
></ha-svg-icon>
|
||||
${this.hass.localize("ui.panel.config.energy.solar.dialog.header")}`}
|
||||
@closed=${this.closeDialog}
|
||||
<ha-wa-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${this.hass.localize(
|
||||
"ui.panel.config.energy.solar.dialog.header"
|
||||
)}
|
||||
@closed=${this._dialogClosed}
|
||||
>
|
||||
${this._error ? html`<p class="error">${this._error}</p>` : ""}
|
||||
|
||||
@@ -118,7 +126,7 @@ export class DialogEnergySolarSettings
|
||||
"ui.panel.config.energy.solar.dialog.entity_para",
|
||||
{ unit: this._energy_units?.join(", ") || "" }
|
||||
)}
|
||||
dialogInitialFocus
|
||||
autofocus
|
||||
></ha-statistic-picker>
|
||||
|
||||
<ha-statistic-picker
|
||||
@@ -215,21 +223,23 @@ export class DialogEnergySolarSettings
|
||||
</div>`
|
||||
: ""}
|
||||
|
||||
<ha-button
|
||||
appearance="plain"
|
||||
@click=${this.closeDialog}
|
||||
slot="secondaryAction"
|
||||
>
|
||||
${this.hass.localize("ui.common.cancel")}
|
||||
</ha-button>
|
||||
<ha-button
|
||||
@click=${this._save}
|
||||
.disabled=${!this._source.stat_energy_from}
|
||||
slot="primaryAction"
|
||||
>
|
||||
${this.hass.localize("ui.common.save")}
|
||||
</ha-button>
|
||||
</ha-dialog>
|
||||
<ha-dialog-footer slot="footer">
|
||||
<ha-button
|
||||
appearance="plain"
|
||||
@click=${this.closeDialog}
|
||||
slot="secondaryAction"
|
||||
>
|
||||
${this.hass.localize("ui.common.cancel")}
|
||||
</ha-button>
|
||||
<ha-button
|
||||
@click=${this._save}
|
||||
.disabled=${!this._source.stat_energy_from}
|
||||
slot="primaryAction"
|
||||
>
|
||||
${this.hass.localize("ui.common.save")}
|
||||
</ha-button>
|
||||
</ha-dialog-footer>
|
||||
</ha-wa-dialog>
|
||||
`;
|
||||
}
|
||||
|
||||
@@ -310,9 +320,6 @@ export class DialogEnergySolarSettings
|
||||
haStyle,
|
||||
haStyleDialog,
|
||||
css`
|
||||
ha-dialog {
|
||||
--mdc-dialog-max-width: 430px;
|
||||
}
|
||||
ha-statistic-picker {
|
||||
display: block;
|
||||
margin-bottom: var(--ha-space-4);
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
import { mdiWater } from "@mdi/js";
|
||||
import type { CSSResultGroup } from "lit";
|
||||
import { css, html, LitElement, nothing } from "lit";
|
||||
import { customElement, property, state } from "lit/decorators";
|
||||
import { fireEvent } from "../../../../common/dom/fire_event";
|
||||
import "../../../../components/entity/ha-entity-picker";
|
||||
import "../../../../components/entity/ha-statistic-picker";
|
||||
import "../../../../components/ha-dialog";
|
||||
import "../../../../components/ha-button";
|
||||
import "../../../../components/ha-dialog-footer";
|
||||
import "../../../../components/ha-formfield";
|
||||
import "../../../../components/ha-radio";
|
||||
import "../../../../components/ha-markdown";
|
||||
import "../../../../components/ha-wa-dialog";
|
||||
import type { HaRadio } from "../../../../components/ha-radio";
|
||||
import "../../../../components/ha-textfield";
|
||||
import type { WaterSourceTypeEnergyPreference } from "../../../../data/energy";
|
||||
@@ -33,6 +33,8 @@ export class DialogEnergyWaterSettings
|
||||
|
||||
@state() private _params?: EnergySettingsWaterDialogParams;
|
||||
|
||||
@state() private _open = false;
|
||||
|
||||
@state() private _source?: WaterSourceTypeEnergyPreference;
|
||||
|
||||
@state() private _costs?: "no-costs" | "number" | "entity" | "statistic";
|
||||
@@ -63,15 +65,21 @@ export class DialogEnergyWaterSettings
|
||||
this._excludeList = this._params.water_sources
|
||||
.map((entry) => entry.stat_energy_from)
|
||||
.filter((id) => id !== this._source?.stat_energy_from);
|
||||
|
||||
this._open = true;
|
||||
}
|
||||
|
||||
public closeDialog() {
|
||||
this._open = false;
|
||||
return true;
|
||||
}
|
||||
|
||||
private _dialogClosed() {
|
||||
this._params = undefined;
|
||||
this._source = undefined;
|
||||
this._error = undefined;
|
||||
this._excludeList = undefined;
|
||||
fireEvent(this, "dialog-closed", { dialog: this.localName });
|
||||
return true;
|
||||
}
|
||||
|
||||
protected render() {
|
||||
@@ -90,14 +98,13 @@ export class DialogEnergyWaterSettings
|
||||
isExternalStatistic(this._source.stat_energy_from);
|
||||
|
||||
return html`
|
||||
<ha-dialog
|
||||
open
|
||||
.heading=${html`<ha-svg-icon
|
||||
.path=${mdiWater}
|
||||
style="--mdc-icon-size: 32px;"
|
||||
></ha-svg-icon>
|
||||
${this.hass.localize("ui.panel.config.energy.water.dialog.header")}`}
|
||||
@closed=${this.closeDialog}
|
||||
<ha-wa-dialog
|
||||
.hass=${this.hass}
|
||||
.open=${this._open}
|
||||
header-title=${this.hass.localize(
|
||||
"ui.panel.config.energy.water.dialog.header"
|
||||
)}
|
||||
@closed=${this._dialogClosed}
|
||||
>
|
||||
${this._error ? html`<p class="error">${this._error}</p>` : ""}
|
||||
<div>
|
||||
@@ -125,7 +132,7 @@ export class DialogEnergyWaterSettings
|
||||
)}
|
||||
.excludeStatistics=${this._excludeList}
|
||||
@value-changed=${this._statisticChanged}
|
||||
dialogInitialFocus
|
||||
autofocus
|
||||
></ha-statistic-picker>
|
||||
|
||||
<p>
|
||||
@@ -227,21 +234,23 @@ export class DialogEnergyWaterSettings
|
||||
</ha-textfield>`
|
||||
: ""}
|
||||
|
||||
<ha-button
|
||||
appearance="plain"
|
||||
@click=${this.closeDialog}
|
||||
slot="primaryAction"
|
||||
>
|
||||
${this.hass.localize("ui.common.cancel")}
|
||||
</ha-button>
|
||||
<ha-button
|
||||
@click=${this._save}
|
||||
.disabled=${!this._source.stat_energy_from}
|
||||
slot="primaryAction"
|
||||
>
|
||||
${this.hass.localize("ui.common.save")}
|
||||
</ha-button>
|
||||
</ha-dialog>
|
||||
<ha-dialog-footer slot="footer">
|
||||
<ha-button
|
||||
appearance="plain"
|
||||
@click=${this.closeDialog}
|
||||
slot="secondaryAction"
|
||||
>
|
||||
${this.hass.localize("ui.common.cancel")}
|
||||
</ha-button>
|
||||
<ha-button
|
||||
@click=${this._save}
|
||||
.disabled=${!this._source.stat_energy_from}
|
||||
slot="primaryAction"
|
||||
>
|
||||
${this.hass.localize("ui.common.save")}
|
||||
</ha-button>
|
||||
</ha-dialog-footer>
|
||||
</ha-wa-dialog>
|
||||
`;
|
||||
}
|
||||
|
||||
@@ -310,9 +319,6 @@ export class DialogEnergyWaterSettings
|
||||
haStyle,
|
||||
haStyleDialog,
|
||||
css`
|
||||
ha-dialog {
|
||||
--mdc-dialog-max-width: 430px;
|
||||
}
|
||||
ha-formfield {
|
||||
display: block;
|
||||
}
|
||||
|
||||
@@ -32,7 +32,6 @@ export function getAssistantsTableColumn<T>(
|
||||
supportedEntities[vaId].includes(entry.entity_id);
|
||||
const manual = entry.manAssistants?.includes(vaId);
|
||||
return getAssistantsTableColumnIcon(
|
||||
entry.entity_id,
|
||||
entry.assistants.includes(vaId),
|
||||
vaId,
|
||||
hass,
|
||||
@@ -46,7 +45,6 @@ export function getAssistantsTableColumn<T>(
|
||||
}
|
||||
|
||||
export const getAssistantsTableColumnIcon = (
|
||||
id: string,
|
||||
show: boolean,
|
||||
vaId: string,
|
||||
hass: HomeAssistant,
|
||||
@@ -59,7 +57,6 @@ export const getAssistantsTableColumnIcon = (
|
||||
);
|
||||
return show
|
||||
? html`<voice-assistants-expose-assistant-icon
|
||||
.id=${id}
|
||||
.assistant=${vaId}
|
||||
.hass=${hass}
|
||||
.manual=${manual ?? false}
|
||||
|
||||
@@ -2,7 +2,6 @@ import { mdiAlertCircle } from "@mdi/js";
|
||||
import { css, html, LitElement, nothing } from "lit";
|
||||
import { customElement, property } from "lit/decorators";
|
||||
import { styleMap } from "lit/directives/style-map";
|
||||
import { slugify } from "../../../../common/string/slugify";
|
||||
import { voiceAssistants } from "../../../../data/expose";
|
||||
import type { HomeAssistant } from "../../../../types";
|
||||
import "../../../../components/ha-svg-icon";
|
||||
@@ -24,9 +23,8 @@ export class VoiceAssistantExposeAssistantIcon extends LitElement {
|
||||
|
||||
render() {
|
||||
if (!this.assistant || !voiceAssistants[this.assistant]) return nothing;
|
||||
const id = slugify(this.id) + "-" + this.assistant;
|
||||
return html`
|
||||
<div class="container" id=${id}>
|
||||
<div class="container" id="container">
|
||||
<voice-assistant-brand-icon
|
||||
style=${styleMap({
|
||||
filter: this.manual ? "grayscale(100%)" : undefined,
|
||||
@@ -45,7 +43,7 @@ export class VoiceAssistantExposeAssistantIcon extends LitElement {
|
||||
: nothing}
|
||||
</div>
|
||||
<ha-tooltip
|
||||
for=${id}
|
||||
for="container"
|
||||
placement="left"
|
||||
.disabled=${!this.unsupported && !this.manual}
|
||||
>
|
||||
|
||||
@@ -157,7 +157,7 @@ class HuiWaterSankeyCard
|
||||
}
|
||||
|
||||
nodes.push({
|
||||
id: `source-${source.stat_energy_from}`,
|
||||
id: source.stat_energy_from,
|
||||
label: getStatisticLabel(
|
||||
this.hass,
|
||||
source.stat_energy_from,
|
||||
@@ -169,7 +169,7 @@ class HuiWaterSankeyCard
|
||||
});
|
||||
|
||||
links.push({
|
||||
source: `source-${source.stat_energy_from}`,
|
||||
source: source.stat_energy_from,
|
||||
target: "home",
|
||||
value,
|
||||
});
|
||||
|
||||
230
yarn.lock
230
yarn.lock
@@ -2007,12 +2007,12 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@isaacs/brace-expansion@npm:^5.0.1":
|
||||
version: 5.0.1
|
||||
resolution: "@isaacs/brace-expansion@npm:5.0.1"
|
||||
"@isaacs/brace-expansion@npm:^5.0.0":
|
||||
version: 5.0.0
|
||||
resolution: "@isaacs/brace-expansion@npm:5.0.0"
|
||||
dependencies:
|
||||
"@isaacs/balanced-match": "npm:^4.0.1"
|
||||
checksum: 10/aec226065bc4285436a27379e08cc35bf94ef59f5098ac1c026495c9ba4ab33d851964082d3648d56d63eb90f2642867bd15a3e1b810b98beb1a8c14efce6a94
|
||||
checksum: 10/cf3b7f206aff12128214a1df764ac8cdbc517c110db85249b945282407e3dfc5c6e66286383a7c9391a059fc8e6e6a8ca82262fc9d2590bd615376141fbebd2d
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -3897,22 +3897,22 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@rsdoctor/client@npm:1.5.2":
|
||||
version: 1.5.2
|
||||
resolution: "@rsdoctor/client@npm:1.5.2"
|
||||
checksum: 10/fb5188a19109294e529c5dedb79fbeda36d03df5dc567583196b68b0baecad0c67bd278f1f3fd915a6fe44870a6d184076a8de38aa717f378765cc41e8d83eac
|
||||
"@rsdoctor/client@npm:1.5.1":
|
||||
version: 1.5.1
|
||||
resolution: "@rsdoctor/client@npm:1.5.1"
|
||||
checksum: 10/9361628cae4fc39f3289ded76496b27c6a69806a8b52e33e9c74c5a86338c67ff89206ecdad205ad97209744fe0656caeb4f42f82d4d4858e2fd8a0da2f60eff
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@rsdoctor/core@npm:1.5.2":
|
||||
version: 1.5.2
|
||||
resolution: "@rsdoctor/core@npm:1.5.2"
|
||||
"@rsdoctor/core@npm:1.5.1":
|
||||
version: 1.5.1
|
||||
resolution: "@rsdoctor/core@npm:1.5.1"
|
||||
dependencies:
|
||||
"@rsbuild/plugin-check-syntax": "npm:1.6.1"
|
||||
"@rsdoctor/graph": "npm:1.5.2"
|
||||
"@rsdoctor/sdk": "npm:1.5.2"
|
||||
"@rsdoctor/types": "npm:1.5.2"
|
||||
"@rsdoctor/utils": "npm:1.5.2"
|
||||
"@rsdoctor/graph": "npm:1.5.1"
|
||||
"@rsdoctor/sdk": "npm:1.5.1"
|
||||
"@rsdoctor/types": "npm:1.5.1"
|
||||
"@rsdoctor/utils": "npm:1.5.1"
|
||||
browserslist-load-config: "npm:^1.0.1"
|
||||
enhanced-resolve: "npm:5.12.0"
|
||||
es-toolkit: "npm:^1.43.0"
|
||||
@@ -3920,59 +3920,59 @@ __metadata:
|
||||
fs-extra: "npm:^11.1.1"
|
||||
semver: "npm:^7.7.3"
|
||||
source-map: "npm:^0.7.6"
|
||||
checksum: 10/2752ec40b9988f4fcc41cf01612d617e5fa75b68798937c2c71d09488a69b907f3787a2c039c39b32671fb4407bc8577bca71b877c5ef31c4fc1c5674ab9fea2
|
||||
checksum: 10/42ffd8b551fe7be1ac016f4b82ab14092b420a401308dc5cfe8eb6690ef449905980fc6069d8943601356013e51dda8884dd5e89f913ce39e4f670e1c59838e5
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@rsdoctor/graph@npm:1.5.2":
|
||||
version: 1.5.2
|
||||
resolution: "@rsdoctor/graph@npm:1.5.2"
|
||||
"@rsdoctor/graph@npm:1.5.1":
|
||||
version: 1.5.1
|
||||
resolution: "@rsdoctor/graph@npm:1.5.1"
|
||||
dependencies:
|
||||
"@rsdoctor/types": "npm:1.5.2"
|
||||
"@rsdoctor/utils": "npm:1.5.2"
|
||||
"@rsdoctor/types": "npm:1.5.1"
|
||||
"@rsdoctor/utils": "npm:1.5.1"
|
||||
es-toolkit: "npm:^1.43.0"
|
||||
path-browserify: "npm:1.0.1"
|
||||
source-map: "npm:^0.7.6"
|
||||
checksum: 10/3cab17675b9a959f5476d15d87d59b700bcf711a8fcfe6b42bbd44d92ff5c6bb85b0c75c16d6eeb8777330f2e38546dd5b6f740f824529bf1fb017149110c513
|
||||
checksum: 10/36012c7184235615bd943ab9ca3d11ca9f6fc72ea2a25ad17e840bb6e6c8d26e581b7b2d14d1cbc98686f390165992ab8a59d10c7615b1ebd8748f6572dee490
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@rsdoctor/rspack-plugin@npm:1.5.2":
|
||||
version: 1.5.2
|
||||
resolution: "@rsdoctor/rspack-plugin@npm:1.5.2"
|
||||
"@rsdoctor/rspack-plugin@npm:1.5.1":
|
||||
version: 1.5.1
|
||||
resolution: "@rsdoctor/rspack-plugin@npm:1.5.1"
|
||||
dependencies:
|
||||
"@rsdoctor/core": "npm:1.5.2"
|
||||
"@rsdoctor/graph": "npm:1.5.2"
|
||||
"@rsdoctor/sdk": "npm:1.5.2"
|
||||
"@rsdoctor/types": "npm:1.5.2"
|
||||
"@rsdoctor/utils": "npm:1.5.2"
|
||||
"@rsdoctor/core": "npm:1.5.1"
|
||||
"@rsdoctor/graph": "npm:1.5.1"
|
||||
"@rsdoctor/sdk": "npm:1.5.1"
|
||||
"@rsdoctor/types": "npm:1.5.1"
|
||||
"@rsdoctor/utils": "npm:1.5.1"
|
||||
peerDependencies:
|
||||
"@rspack/core": "*"
|
||||
peerDependenciesMeta:
|
||||
"@rspack/core":
|
||||
optional: true
|
||||
checksum: 10/4316c649c0c55cb3836ad5ff44f5c5975cc1e94af43973d08e2d9a88304f4558825e8297c0c82efbe4be74303a354294b195af8a7c479707d70c81dde3f413b9
|
||||
checksum: 10/4fba835686403d5977874354a569e1dbe6600a133b3044b0e54f964c52d3a463898289f4c69f9f7879b1975fe96d9ff9c43c0956061963be394b2d75499324b4
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@rsdoctor/sdk@npm:1.5.2":
|
||||
version: 1.5.2
|
||||
resolution: "@rsdoctor/sdk@npm:1.5.2"
|
||||
"@rsdoctor/sdk@npm:1.5.1":
|
||||
version: 1.5.1
|
||||
resolution: "@rsdoctor/sdk@npm:1.5.1"
|
||||
dependencies:
|
||||
"@rsdoctor/client": "npm:1.5.2"
|
||||
"@rsdoctor/graph": "npm:1.5.2"
|
||||
"@rsdoctor/types": "npm:1.5.2"
|
||||
"@rsdoctor/utils": "npm:1.5.2"
|
||||
"@rsdoctor/client": "npm:1.5.1"
|
||||
"@rsdoctor/graph": "npm:1.5.1"
|
||||
"@rsdoctor/types": "npm:1.5.1"
|
||||
"@rsdoctor/utils": "npm:1.5.1"
|
||||
safer-buffer: "npm:2.1.2"
|
||||
socket.io: "npm:4.8.1"
|
||||
tapable: "npm:2.2.3"
|
||||
checksum: 10/c9e0ff49a72ae9ac3fe735cb913876e8fee0e70bb4075fa9bd4813d51a5c6b10235908428e5595af32985c6bf12db5bdf9f5a3fc41978c0aceabd96d185d0111
|
||||
checksum: 10/d14be0a86dbf4b445b0d3494a3e7da80993b2e6cab56a43b08bd10e63cea4bf5008707eaa4e2f1363ab26953ddf844192ae3eb57105277222187b8f010e2ee9a
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@rsdoctor/types@npm:1.5.2":
|
||||
version: 1.5.2
|
||||
resolution: "@rsdoctor/types@npm:1.5.2"
|
||||
"@rsdoctor/types@npm:1.5.1":
|
||||
version: 1.5.1
|
||||
resolution: "@rsdoctor/types@npm:1.5.1"
|
||||
dependencies:
|
||||
"@types/connect": "npm:3.4.38"
|
||||
"@types/estree": "npm:1.0.5"
|
||||
@@ -3986,16 +3986,16 @@ __metadata:
|
||||
optional: true
|
||||
webpack:
|
||||
optional: true
|
||||
checksum: 10/d669ebd62c65b2c34b5d97178cb6bb3f8e96434b406171960da255ef056e5d8f611966726b1c3462f1d3c30c6939d6dde69591104f7e83a44bbc153c78f4f40a
|
||||
checksum: 10/a369904094bb7e62ee50c97ae132742d1b7bdd46e96fb4212dfad685322f71b969102267e45183d768d864e55bbdf0ec6850b834b81bdac572a4c1aefa53dfae
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@rsdoctor/utils@npm:1.5.2":
|
||||
version: 1.5.2
|
||||
resolution: "@rsdoctor/utils@npm:1.5.2"
|
||||
"@rsdoctor/utils@npm:1.5.1":
|
||||
version: 1.5.1
|
||||
resolution: "@rsdoctor/utils@npm:1.5.1"
|
||||
dependencies:
|
||||
"@babel/code-frame": "npm:7.26.2"
|
||||
"@rsdoctor/types": "npm:1.5.2"
|
||||
"@rsdoctor/types": "npm:1.5.1"
|
||||
"@types/estree": "npm:1.0.5"
|
||||
acorn: "npm:^8.10.0"
|
||||
acorn-import-attributes: "npm:^1.9.5"
|
||||
@@ -4009,96 +4009,96 @@ __metadata:
|
||||
picocolors: "npm:^1.1.1"
|
||||
rslog: "npm:^1.2.11"
|
||||
strip-ansi: "npm:^6.0.1"
|
||||
checksum: 10/77eb5830affa65dde1ddd69e6b8994776927c892ef569d19166579e64e6a95b391d04fb69ba70a6872a24acfd3a31c67049023c958a410a317bbf22f0907bc5a
|
||||
checksum: 10/a877b463cc7b600c0f82dad4592980017d050ddc5a0965ac22c075d10a0bcf109e51856b2f71b475f2ea46f403d93fdbd461f63a330752da9b6535470de19ce8
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@rspack/binding-darwin-arm64@npm:1.7.5":
|
||||
version: 1.7.5
|
||||
resolution: "@rspack/binding-darwin-arm64@npm:1.7.5"
|
||||
"@rspack/binding-darwin-arm64@npm:1.7.4":
|
||||
version: 1.7.4
|
||||
resolution: "@rspack/binding-darwin-arm64@npm:1.7.4"
|
||||
conditions: os=darwin & cpu=arm64
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@rspack/binding-darwin-x64@npm:1.7.5":
|
||||
version: 1.7.5
|
||||
resolution: "@rspack/binding-darwin-x64@npm:1.7.5"
|
||||
"@rspack/binding-darwin-x64@npm:1.7.4":
|
||||
version: 1.7.4
|
||||
resolution: "@rspack/binding-darwin-x64@npm:1.7.4"
|
||||
conditions: os=darwin & cpu=x64
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@rspack/binding-linux-arm64-gnu@npm:1.7.5":
|
||||
version: 1.7.5
|
||||
resolution: "@rspack/binding-linux-arm64-gnu@npm:1.7.5"
|
||||
"@rspack/binding-linux-arm64-gnu@npm:1.7.4":
|
||||
version: 1.7.4
|
||||
resolution: "@rspack/binding-linux-arm64-gnu@npm:1.7.4"
|
||||
conditions: os=linux & cpu=arm64 & libc=glibc
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@rspack/binding-linux-arm64-musl@npm:1.7.5":
|
||||
version: 1.7.5
|
||||
resolution: "@rspack/binding-linux-arm64-musl@npm:1.7.5"
|
||||
"@rspack/binding-linux-arm64-musl@npm:1.7.4":
|
||||
version: 1.7.4
|
||||
resolution: "@rspack/binding-linux-arm64-musl@npm:1.7.4"
|
||||
conditions: os=linux & cpu=arm64 & libc=musl
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@rspack/binding-linux-x64-gnu@npm:1.7.5":
|
||||
version: 1.7.5
|
||||
resolution: "@rspack/binding-linux-x64-gnu@npm:1.7.5"
|
||||
"@rspack/binding-linux-x64-gnu@npm:1.7.4":
|
||||
version: 1.7.4
|
||||
resolution: "@rspack/binding-linux-x64-gnu@npm:1.7.4"
|
||||
conditions: os=linux & cpu=x64 & libc=glibc
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@rspack/binding-linux-x64-musl@npm:1.7.5":
|
||||
version: 1.7.5
|
||||
resolution: "@rspack/binding-linux-x64-musl@npm:1.7.5"
|
||||
"@rspack/binding-linux-x64-musl@npm:1.7.4":
|
||||
version: 1.7.4
|
||||
resolution: "@rspack/binding-linux-x64-musl@npm:1.7.4"
|
||||
conditions: os=linux & cpu=x64 & libc=musl
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@rspack/binding-wasm32-wasi@npm:1.7.5":
|
||||
version: 1.7.5
|
||||
resolution: "@rspack/binding-wasm32-wasi@npm:1.7.5"
|
||||
"@rspack/binding-wasm32-wasi@npm:1.7.4":
|
||||
version: 1.7.4
|
||||
resolution: "@rspack/binding-wasm32-wasi@npm:1.7.4"
|
||||
dependencies:
|
||||
"@napi-rs/wasm-runtime": "npm:1.0.7"
|
||||
conditions: cpu=wasm32
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@rspack/binding-win32-arm64-msvc@npm:1.7.5":
|
||||
version: 1.7.5
|
||||
resolution: "@rspack/binding-win32-arm64-msvc@npm:1.7.5"
|
||||
"@rspack/binding-win32-arm64-msvc@npm:1.7.4":
|
||||
version: 1.7.4
|
||||
resolution: "@rspack/binding-win32-arm64-msvc@npm:1.7.4"
|
||||
conditions: os=win32 & cpu=arm64
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@rspack/binding-win32-ia32-msvc@npm:1.7.5":
|
||||
version: 1.7.5
|
||||
resolution: "@rspack/binding-win32-ia32-msvc@npm:1.7.5"
|
||||
"@rspack/binding-win32-ia32-msvc@npm:1.7.4":
|
||||
version: 1.7.4
|
||||
resolution: "@rspack/binding-win32-ia32-msvc@npm:1.7.4"
|
||||
conditions: os=win32 & cpu=ia32
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@rspack/binding-win32-x64-msvc@npm:1.7.5":
|
||||
version: 1.7.5
|
||||
resolution: "@rspack/binding-win32-x64-msvc@npm:1.7.5"
|
||||
"@rspack/binding-win32-x64-msvc@npm:1.7.4":
|
||||
version: 1.7.4
|
||||
resolution: "@rspack/binding-win32-x64-msvc@npm:1.7.4"
|
||||
conditions: os=win32 & cpu=x64
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@rspack/binding@npm:1.7.5":
|
||||
version: 1.7.5
|
||||
resolution: "@rspack/binding@npm:1.7.5"
|
||||
"@rspack/binding@npm:1.7.4":
|
||||
version: 1.7.4
|
||||
resolution: "@rspack/binding@npm:1.7.4"
|
||||
dependencies:
|
||||
"@rspack/binding-darwin-arm64": "npm:1.7.5"
|
||||
"@rspack/binding-darwin-x64": "npm:1.7.5"
|
||||
"@rspack/binding-linux-arm64-gnu": "npm:1.7.5"
|
||||
"@rspack/binding-linux-arm64-musl": "npm:1.7.5"
|
||||
"@rspack/binding-linux-x64-gnu": "npm:1.7.5"
|
||||
"@rspack/binding-linux-x64-musl": "npm:1.7.5"
|
||||
"@rspack/binding-wasm32-wasi": "npm:1.7.5"
|
||||
"@rspack/binding-win32-arm64-msvc": "npm:1.7.5"
|
||||
"@rspack/binding-win32-ia32-msvc": "npm:1.7.5"
|
||||
"@rspack/binding-win32-x64-msvc": "npm:1.7.5"
|
||||
"@rspack/binding-darwin-arm64": "npm:1.7.4"
|
||||
"@rspack/binding-darwin-x64": "npm:1.7.4"
|
||||
"@rspack/binding-linux-arm64-gnu": "npm:1.7.4"
|
||||
"@rspack/binding-linux-arm64-musl": "npm:1.7.4"
|
||||
"@rspack/binding-linux-x64-gnu": "npm:1.7.4"
|
||||
"@rspack/binding-linux-x64-musl": "npm:1.7.4"
|
||||
"@rspack/binding-wasm32-wasi": "npm:1.7.4"
|
||||
"@rspack/binding-win32-arm64-msvc": "npm:1.7.4"
|
||||
"@rspack/binding-win32-ia32-msvc": "npm:1.7.4"
|
||||
"@rspack/binding-win32-x64-msvc": "npm:1.7.4"
|
||||
dependenciesMeta:
|
||||
"@rspack/binding-darwin-arm64":
|
||||
optional: true
|
||||
@@ -4120,23 +4120,23 @@ __metadata:
|
||||
optional: true
|
||||
"@rspack/binding-win32-x64-msvc":
|
||||
optional: true
|
||||
checksum: 10/3e66805d4dae5f2051f10c5a9126e5bf25926d2a6ccb1c794af2aa49c15e4fdcb9e362bd015a9afef1e788a3272dfe7a28a3c866713badda34579896d736ed4f
|
||||
checksum: 10/0d082e962980ace986c546ac359e7d4b5fada21ce38980db792c70ef97257841257b64a0b65c5d3c2e2660d58ab05b1d7302defc752f325c616507f5837fb98d
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@rspack/core@npm:1.7.5":
|
||||
version: 1.7.5
|
||||
resolution: "@rspack/core@npm:1.7.5"
|
||||
"@rspack/core@npm:1.7.4":
|
||||
version: 1.7.4
|
||||
resolution: "@rspack/core@npm:1.7.4"
|
||||
dependencies:
|
||||
"@module-federation/runtime-tools": "npm:0.22.0"
|
||||
"@rspack/binding": "npm:1.7.5"
|
||||
"@rspack/binding": "npm:1.7.4"
|
||||
"@rspack/lite-tapable": "npm:1.1.0"
|
||||
peerDependencies:
|
||||
"@swc/helpers": ">=0.5.1"
|
||||
peerDependenciesMeta:
|
||||
"@swc/helpers":
|
||||
optional: true
|
||||
checksum: 10/c17d93ef1e7e0728b74bf527150642d9bf072cabb63964ebd32c82da94d6d2f9eac7ff2cc13031bbd376c0c03710899f549e61d2bcfc0a6638a9f3bc8620b7ce
|
||||
checksum: 10/ecce39e64993ba9f5792c737b6d61960946c59399254f5903651a53b6e61761f8bc2a20dfdf81b1b819e1b0f1e26257456d902244485fd035e5a585b5a28a623
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -8754,14 +8754,14 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"glob@npm:13.0.1, glob@npm:^13.0.0":
|
||||
version: 13.0.1
|
||||
resolution: "glob@npm:13.0.1"
|
||||
"glob@npm:13.0.0, glob@npm:^13.0.0":
|
||||
version: 13.0.0
|
||||
resolution: "glob@npm:13.0.0"
|
||||
dependencies:
|
||||
minimatch: "npm:^10.1.2"
|
||||
minimatch: "npm:^10.1.1"
|
||||
minipass: "npm:^7.1.2"
|
||||
path-scurry: "npm:^2.0.0"
|
||||
checksum: 10/465e8cc269ab88d7415a3906cdc0f4543a2ae54df99207204af5bc28a944396d8d893822f546a8056a78ec714e608ab4f3502532c4d6b9cc5e113adf0fe5109e
|
||||
checksum: 10/de390721d29ee1c9ea41e40ec2aa0de2cabafa68022e237dc4297665a5e4d650776f2573191984ea1640aba1bf0ea34eddef2d8cbfbfc2ad24b5fb0af41d8846
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -9119,8 +9119,8 @@ __metadata:
|
||||
"@octokit/plugin-retry": "npm:8.0.3"
|
||||
"@octokit/rest": "npm:22.0.1"
|
||||
"@replit/codemirror-indentation-markers": "npm:6.5.3"
|
||||
"@rsdoctor/rspack-plugin": "npm:1.5.2"
|
||||
"@rspack/core": "npm:1.7.5"
|
||||
"@rsdoctor/rspack-plugin": "npm:1.5.1"
|
||||
"@rspack/core": "npm:1.7.4"
|
||||
"@rspack/dev-server": "npm:1.2.1"
|
||||
"@swc/helpers": "npm:0.5.18"
|
||||
"@thomasloven/round-slider": "npm:0.6.0"
|
||||
@@ -9178,7 +9178,7 @@ __metadata:
|
||||
fancy-log: "npm:2.0.0"
|
||||
fs-extra: "npm:11.3.3"
|
||||
fuse.js: "npm:7.1.0"
|
||||
glob: "npm:13.0.1"
|
||||
glob: "npm:13.0.0"
|
||||
google-timezones-json: "npm:1.2.0"
|
||||
gulp: "npm:5.0.1"
|
||||
gulp-brotli: "npm:3.0.0"
|
||||
@@ -9228,7 +9228,7 @@ __metadata:
|
||||
ts-lit-plugin: "npm:2.0.2"
|
||||
typescript: "npm:5.9.3"
|
||||
typescript-eslint: "npm:8.54.0"
|
||||
ua-parser-js: "npm:2.0.9"
|
||||
ua-parser-js: "npm:2.0.8"
|
||||
vite-tsconfig-paths: "npm:6.0.5"
|
||||
vitest: "npm:4.0.18"
|
||||
vue: "npm:2.7.16"
|
||||
@@ -10973,12 +10973,12 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"minimatch@npm:^10.1.2":
|
||||
version: 10.1.2
|
||||
resolution: "minimatch@npm:10.1.2"
|
||||
"minimatch@npm:^10.1.1":
|
||||
version: 10.1.1
|
||||
resolution: "minimatch@npm:10.1.1"
|
||||
dependencies:
|
||||
"@isaacs/brace-expansion": "npm:^5.0.1"
|
||||
checksum: 10/6f0ef975463739207144e411bdd54f7205ce38770b162fa3bc4c9be4987a16cb20d0962a82f26c2372598cfba90faa97b327239d303b529b774f17681c163b46
|
||||
"@isaacs/brace-expansion": "npm:^5.0.0"
|
||||
checksum: 10/110f38921ea527022e90f7a5f43721838ac740d0a0c26881c03b57c261354fb9a0430e40b2c56dfcea2ef3c773768f27210d1106f1f2be19cde3eea93f26f45e
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
@@ -14155,16 +14155,16 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"ua-parser-js@npm:2.0.9":
|
||||
version: 2.0.9
|
||||
resolution: "ua-parser-js@npm:2.0.9"
|
||||
"ua-parser-js@npm:2.0.8":
|
||||
version: 2.0.8
|
||||
resolution: "ua-parser-js@npm:2.0.8"
|
||||
dependencies:
|
||||
detect-europe-js: "npm:^0.1.2"
|
||||
is-standalone-pwa: "npm:^0.1.1"
|
||||
ua-is-frozen: "npm:^0.1.2"
|
||||
bin:
|
||||
ua-parser-js: script/cli.js
|
||||
checksum: 10/63e3404e16ade8a7d1b45bf2a871410193ab63620ab02ffa5308a507a984d2698bd74651ce260ac3e0cb9f8df89c71fa55a6beefbe269c12849c6d6cf0974407
|
||||
checksum: 10/862ad2e3b083d8ffbb325d6e7c78924aa86f751829301173457afdf44ff911c95c5478d8a1bd31cf80555dd6aae946b3194d20615a91550794f20dad7ac998b5
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
|
||||
Reference in New Issue
Block a user