Compare commits

..

5 Commits

Author SHA1 Message Date
Aidan Timson
3c980e5b11 Add sizing 2025-10-09 14:00:43 +01:00
Aidan Timson
6571d0e75f Dont show when nothing is selected 2025-10-09 12:46:36 +01:00
Aidan Timson
1a3034c9db Remove var 2025-10-09 12:43:34 +01:00
Aidan Timson
2ad9583c2e Remove proportional, add disclaimer 2025-10-09 12:43:02 +01:00
Aidan Timson
acd530cbc0 Estimate backup size 2025-10-09 12:40:13 +01:00
39 changed files with 654 additions and 718 deletions

View File

@@ -36,14 +36,14 @@ jobs:
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@f443b600d91635bebf5b0d9ebc620189c0d6fba5 # v4.30.8
uses: github/codeql-action/init@64d10c13136e1c5bce3e5fbde8d4906eeaafc885 # v3.30.6
with:
languages: ${{ matrix.language }}
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@f443b600d91635bebf5b0d9ebc620189c0d6fba5 # v4.30.8
uses: github/codeql-action/autobuild@64d10c13136e1c5bce3e5fbde8d4906eeaafc885 # v3.30.6
# Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
@@ -57,4 +57,4 @@ jobs:
# make release
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@f443b600d91635bebf5b0d9ebc620189c0d6fba5 # v4.30.8
uses: github/codeql-action/analyze@64d10c13136e1c5bce3e5fbde8d4906eeaafc885 # v3.30.6

View File

@@ -55,7 +55,7 @@ jobs:
script/release
- name: Upload release assets
uses: softprops/action-gh-release@6da8fa9354ddfdc4aeace5fc48d7f679b5214090 # v2.4.1
uses: softprops/action-gh-release@62c96d0c4e8a889135c1f3a25910db8dbe0e85f7 # v2.3.4
with:
files: |
dist/*.whl
@@ -108,7 +108,7 @@ jobs:
- name: Tar folder
run: tar -czf landing-page/home_assistant_frontend_landingpage-${{ github.event.release.tag_name }}.tar.gz -C landing-page/dist .
- name: Upload release asset
uses: softprops/action-gh-release@6da8fa9354ddfdc4aeace5fc48d7f679b5214090 # v2.4.1
uses: softprops/action-gh-release@62c96d0c4e8a889135c1f3a25910db8dbe0e85f7 # v2.3.4
with:
files: landing-page/home_assistant_frontend_landingpage-${{ github.event.release.tag_name }}.tar.gz
@@ -137,6 +137,6 @@ jobs:
- name: Tar folder
run: tar -czf hassio/home_assistant_frontend_supervisor-${{ github.event.release.tag_name }}.tar.gz -C hassio/build .
- name: Upload release asset
uses: softprops/action-gh-release@6da8fa9354ddfdc4aeace5fc48d7f679b5214090 # v2.4.1
uses: softprops/action-gh-release@62c96d0c4e8a889135c1f3a25910db8dbe0e85f7 # v2.3.4
with:
files: hassio/home_assistant_frontend_supervisor-${{ github.event.release.tag_name }}.tar.gz

View File

@@ -34,25 +34,25 @@
"@codemirror/legacy-modes": "6.5.2",
"@codemirror/search": "6.5.11",
"@codemirror/state": "6.5.2",
"@codemirror/view": "6.38.5",
"@codemirror/view": "6.38.4",
"@date-fns/tz": "1.4.1",
"@egjs/hammerjs": "2.0.17",
"@formatjs/intl-datetimeformat": "6.18.2",
"@formatjs/intl-displaynames": "6.8.13",
"@formatjs/intl-durationformat": "0.7.6",
"@formatjs/intl-datetimeformat": "6.18.1",
"@formatjs/intl-displaynames": "6.8.12",
"@formatjs/intl-durationformat": "0.7.5",
"@formatjs/intl-getcanonicallocales": "2.5.6",
"@formatjs/intl-listformat": "7.7.13",
"@formatjs/intl-locale": "4.2.13",
"@formatjs/intl-numberformat": "8.15.6",
"@formatjs/intl-pluralrules": "5.4.6",
"@formatjs/intl-relativetimeformat": "11.4.13",
"@formatjs/intl-listformat": "7.7.12",
"@formatjs/intl-locale": "4.2.12",
"@formatjs/intl-numberformat": "8.15.5",
"@formatjs/intl-pluralrules": "5.4.5",
"@formatjs/intl-relativetimeformat": "11.4.12",
"@fullcalendar/core": "6.1.19",
"@fullcalendar/daygrid": "6.1.19",
"@fullcalendar/interaction": "6.1.19",
"@fullcalendar/list": "6.1.19",
"@fullcalendar/luxon3": "6.1.19",
"@fullcalendar/timegrid": "6.1.19",
"@home-assistant/webawesome": "3.0.0-beta.6.ha.4",
"@home-assistant/webawesome": "3.0.0-beta.6.ha.1",
"@lezer/highlight": "1.2.1",
"@lit-labs/motion": "1.0.9",
"@lit-labs/observers": "2.0.6",
@@ -99,7 +99,7 @@
"barcode-detector": "3.0.6",
"color-name": "2.0.2",
"comlink": "4.4.2",
"core-js": "3.46.0",
"core-js": "3.45.1",
"cropperjs": "1.6.2",
"culori": "4.0.2",
"date-fns": "4.1.0",
@@ -114,7 +114,7 @@
"hls.js": "1.6.13",
"home-assistant-js-websocket": "9.5.0",
"idb-keyval": "6.2.2",
"intl-messageformat": "10.7.18",
"intl-messageformat": "10.7.17",
"js-yaml": "4.1.0",
"leaflet": "1.9.4",
"leaflet-draw": "patch:leaflet-draw@npm%3A1.0.4#./.yarn/patches/leaflet-draw-npm-1.0.4-0ca0ebcf65.patch",
@@ -122,7 +122,7 @@
"lit": "3.3.1",
"lit-html": "3.3.1",
"luxon": "3.7.2",
"marked": "16.4.0",
"marked": "16.3.0",
"memoize-one": "6.0.0",
"node-vibrant": "4.0.3",
"object-hash": "3.0.0",
@@ -135,7 +135,7 @@
"stacktrace-js": "2.0.2",
"superstruct": "2.0.2",
"tinykeys": "3.0.0",
"ua-parser-js": "2.0.6",
"ua-parser-js": "2.0.5",
"vue": "2.7.16",
"vue2-daterange-picker": "0.6.8",
"weekstart": "2.0.0",
@@ -152,7 +152,7 @@
"@babel/helper-define-polyfill-provider": "0.6.5",
"@babel/plugin-transform-runtime": "7.28.3",
"@babel/preset-env": "7.28.3",
"@bundle-stats/plugin-webpack-filter": "4.21.5",
"@bundle-stats/plugin-webpack-filter": "4.21.4",
"@lokalise/node-api": "15.3.0",
"@octokit/auth-oauth-device": "8.0.2",
"@octokit/plugin-retry": "8.0.2",
@@ -217,7 +217,7 @@
"terser-webpack-plugin": "5.3.14",
"ts-lit-plugin": "2.0.2",
"typescript": "5.9.3",
"typescript-eslint": "8.46.0",
"typescript-eslint": "8.45.0",
"vite-tsconfig-paths": "5.1.4",
"vitest": "3.2.4",
"webpack-stats-plugin": "1.1.3",

View File

@@ -9,7 +9,7 @@
":semanticCommitsDisabled",
"group:monorepos",
"group:recommended",
"security:minimumReleaseAgeNpm"
"npm:unpublishSafe"
],
"enabledManagers": ["npm", "nvm"],
"postUpdateOptions": ["yarnDedupeHighest"],

View File

@@ -1,8 +0,0 @@
import xss from "xss";
export const filterXSS = (html: string) =>
xss(html, {
whiteList: {},
stripIgnoreTag: true,
stripIgnoreTagBody: true,
});

View File

@@ -27,7 +27,6 @@ import type { HomeAssistant } from "../../types";
import { isMac } from "../../util/is_mac";
import "../chips/ha-assist-chip";
import "../ha-icon-button";
import { filterXSS } from "../../common/util/xss";
import { formatTimeLabel } from "./axis-label";
import { downSampleLineData } from "./down-sample";
@@ -812,8 +811,7 @@ export class HaChartBase extends LitElement {
};
}
}
const name = filterXSS(String(s.name ?? s.id ?? ""));
return { ...s, name, data };
return { ...s, data };
});
return series as ECOption["series"];
}

View File

@@ -9,7 +9,6 @@ import { ResizeController } from "@lit-labs/observers/resize-controller";
import type { HomeAssistant } from "../../types";
import type { ECOption } from "../../resources/echarts";
import { measureTextWidth } from "../../util/text";
import { filterXSS } from "../../common/util/xss";
import "./ha-chart-base";
import { NODE_SIZE } from "../trace/hat-graph-const";
import "../ha-alert";
@@ -93,12 +92,12 @@ export class HaSankeyChart extends LitElement {
: data.value;
if (data.id) {
const node = this.data.nodes.find((n) => n.id === data.id);
return `${params.marker} ${filterXSS(node?.label ?? data.id)}<br>${value}`;
return `${params.marker} ${node?.label ?? data.id}<br>${value}`;
}
if (data.source && data.target) {
const source = this.data.nodes.find((n) => n.id === data.source);
const target = this.data.nodes.find((n) => n.id === data.target);
return `${filterXSS(source?.label ?? data.source)}${filterXSS(target?.label ?? data.target)}<br>${value}`;
return `${source?.label ?? data.source}${target?.label ?? data.target}<br>${value}`;
}
return null;
};

View File

@@ -40,6 +40,7 @@ export class HaDialogHeader extends LitElement {
css`
:host {
display: block;
min-height: 48px;
}
:host([show-border]) {
border-bottom: 1px solid

View File

@@ -39,15 +39,6 @@ export class HaPictureUpload extends LitElement {
@property({ type: Boolean, attribute: "select-media" }) public selectMedia =
false;
// This property is set when this component is used inside a media selector.
// When set, it returns selected media or uploaded files as MediaSelectorValue
// When unset, it only allows selecting images from image-upload, and returns
// selected or uploaded images as a string starting with /api/...
@property({ type: Boolean, attribute: "full-media" }) public fullMedia =
false;
@property({ attribute: false }) public contentIdHelper?: string;
@property({ attribute: false }) public cropOptions?: CropOptions;
@property({ type: Boolean }) public original = false;
@@ -173,33 +164,12 @@ export class HaPictureUpload extends LitElement {
this._uploading = true;
try {
const media = await createImage(this.hass, file);
if (this.fullMedia) {
const item = {
media_content_id: `${MEDIA_PREFIX}/${media.id}`,
media_content_type: media.content_type,
title: media.name,
media_class: "image" as const,
can_play: true,
can_expand: false,
can_search: false,
thumbnail: generateImageThumbnailUrl(media.id, 256),
} as const;
const navigateIds = [
{},
{ media_content_type: "app", media_content_id: MEDIA_PREFIX },
];
fireEvent(this, "media-picked", {
item,
navigateIds,
});
} else {
this.value = generateImageThumbnailUrl(
media.id,
this.size,
this.original
);
fireEvent(this, "change");
}
this.value = generateImageThumbnailUrl(
media.id,
this.size,
this.original
);
fireEvent(this, "change");
} catch (err: any) {
showAlertDialog(this, {
text: err.toString(),
@@ -213,24 +183,15 @@ export class HaPictureUpload extends LitElement {
showMediaBrowserDialog(this, {
action: "pick",
entityId: "browser",
accept: ["image/*"],
navigateIds: this.fullMedia
? undefined
: [
{ media_content_id: undefined, media_content_type: undefined },
{
media_content_id: MEDIA_PREFIX,
media_content_type: "app",
},
],
minimumNavigateLevel: this.fullMedia ? undefined : 2,
hideContentType: true,
contentIdHelper: this.contentIdHelper,
navigateIds: [
{ media_content_id: undefined, media_content_type: undefined },
{
media_content_id: MEDIA_PREFIX,
media_content_type: "app",
},
],
minimumNavigateLevel: 2,
mediaPickedCallback: async (pickedMedia: MediaPickedEvent) => {
if (this.fullMedia) {
fireEvent(this, "media-picked", pickedMedia);
return;
}
const mediaId = getIdFromUrl(pickedMedia.item.media_content_id);
if (mediaId) {
if (this.crop) {

View File

@@ -220,7 +220,7 @@ export class HaResizableBottomSheet extends LitElement {
min-height: var(--min-height, 30dvh);
background-color: var(
--ha-bottom-sheet-surface-background,
var(--ha-color-surface-default)
var(--ha-dialog-surface-background, var(--mdc-theme-surface, #fff)),
);
display: flex;
flex-direction: column;

View File

@@ -19,7 +19,6 @@ import "../ha-form/ha-form";
import type { SchemaUnion } from "../ha-form/types";
import { showMediaBrowserDialog } from "../media-player/show-media-browser-dialog";
import { ensureArray } from "../../common/array/ensure-array";
import "../ha-picture-upload";
const MANUAL_SCHEMA = [
{ name: "media_content_id", required: false, selector: { text: {} } },
@@ -106,17 +105,6 @@ export class HaMediaSelector extends LitElement {
(stateObj &&
supportsFeature(stateObj, MediaPlayerEntityFeature.BROWSE_MEDIA));
if (this.selector.media?.image_upload && !this.value) {
return html`<ha-picture-upload
.hass=${this.hass}
.value=${null}
.contentIdHelper=${this.selector.media?.content_id_helper}
select-media
full-media
@media-picked=${this._pictureUploadMediaPicked}
></ha-picture-upload>`;
}
return html`
${this._hasAccept ||
(this._contextEntities && this._contextEntities.length <= 1)
@@ -154,7 +142,8 @@ export class HaMediaSelector extends LitElement {
.computeHelper=${this._computeHelperCallback}
></ha-form>
`
: html`<ha-card
: html`
<ha-card
outlined
tabindex="0"
role="button"
@@ -214,20 +203,7 @@ export class HaMediaSelector extends LitElement {
</div>
</div>
</ha-card>
${this.selector.media?.clearable
? html`<div>
<ha-button
appearance="plain"
size="small"
variant="danger"
@click=${this._clearValue}
>
${this.hass.localize(
"ui.components.picture-upload.clear_picture"
)}
</ha-button>
</div>`
: nothing}`}
`}
`;
}
@@ -272,8 +248,6 @@ export class HaMediaSelector extends LitElement {
accept: this.selector.media?.accept,
defaultId: this.value?.media_content_id,
defaultType: this.value?.media_content_type,
hideContentType: this.selector.media?.hide_content_type,
contentIdHelper: this.selector.media?.content_id_helper,
mediaPickedCallback: (pickedMedia: MediaPickedEvent) => {
fireEvent(this, "value-changed", {
value: {
@@ -315,31 +289,6 @@ export class HaMediaSelector extends LitElement {
}
}
private _pictureUploadMediaPicked(ev) {
const pickedMedia = ev.detail as MediaPickedEvent;
fireEvent(this, "value-changed", {
value: {
...this.value,
media_content_id: pickedMedia.item.media_content_id,
media_content_type: pickedMedia.item.media_content_type,
metadata: {
title: pickedMedia.item.title,
thumbnail: pickedMedia.item.thumbnail,
media_class: pickedMedia.item.media_class,
children_media_class: pickedMedia.item.children_media_class,
navigateIds: pickedMedia.navigateIds?.map((id) => ({
media_content_type: id.media_content_type,
media_content_id: id.media_content_id,
})),
},
},
});
}
private _clearValue() {
fireEvent(this, "value-changed", { value: undefined });
}
static styles = css`
ha-entity-picker {
display: block;

View File

@@ -857,7 +857,7 @@ class HaSidebar extends SubscribeMixin(LitElement) {
justify-content: center;
align-items: center;
min-width: 8px;
border-radius: var(--ha-border-radius-xl);
border-radius: var(--ha-border-radius-md);
font-weight: var(--ha-font-weight-normal);
line-height: normal;
background-color: var(--accent-color);

View File

@@ -167,8 +167,6 @@ class DialogMediaPlayerBrowse extends LitElement {
.accept=${this._params.accept}
.defaultId=${this._params.defaultId}
.defaultType=${this._params.defaultType}
.hideContentType=${this._params.hideContentType}
.contentIdHelper=${this._params.contentIdHelper}
@close-dialog=${this.closeDialog}
@media-picked=${this._mediaPicked}
@media-browsed=${this._mediaBrowsed}

View File

@@ -19,12 +19,8 @@ class BrowseMediaManual extends LitElement {
@property({ attribute: false }) public item!: MediaPlayerItemId;
@property({ attribute: false }) public hideContentType = false;
@property({ attribute: false }) public contentIdHelper?: string;
private _schema = memoizeOne(
(hideContentType: boolean) =>
() =>
[
{
name: "media_content_id",
@@ -33,17 +29,13 @@ class BrowseMediaManual extends LitElement {
text: {},
},
},
...(hideContentType
? []
: [
{
name: "media_content_type",
required: false,
selector: {
text: {},
},
},
]),
{
name: "media_content_type",
required: false,
selector: {
text: {},
},
},
] as const
);
@@ -53,7 +45,7 @@ class BrowseMediaManual extends LitElement {
<div class="card-content">
<ha-form
.hass=${this.hass}
.schema=${this._schema(this.hideContentType)}
.schema=${this._schema()}
.data=${this.item}
.computeLabel=${this._computeLabel}
.computeHelper=${this._computeHelper}
@@ -77,35 +69,13 @@ class BrowseMediaManual extends LitElement {
private _computeLabel = (
entry: SchemaUnion<ReturnType<typeof this._schema>>
): string => {
switch (entry.name) {
case "media_content_id":
case "media_content_type":
return this.hass.localize(
`ui.components.selectors.media.${entry.name}`
);
}
return entry.name;
};
): string =>
this.hass.localize(`ui.components.selectors.media.${entry.name}`);
private _computeHelper = (
entry: SchemaUnion<ReturnType<typeof this._schema>>
): string => {
switch (entry.name) {
case "media_content_id":
return (
this.contentIdHelper ||
this.hass.localize(
`ui.components.selectors.media.${entry.name}_detail`
)
);
case "media_content_type":
return this.hass.localize(
`ui.components.selectors.media.${entry.name}_detail`
);
}
return "";
};
): string =>
this.hass.localize(`ui.components.selectors.media.${entry.name}_detail`);
private _mediaPicked() {
fireEvent(this, "manual-media-picked", {

View File

@@ -76,8 +76,8 @@ declare global {
}
export interface MediaPlayerItemId {
media_content_id?: string | undefined;
media_content_type?: string | undefined;
media_content_id: string | undefined;
media_content_type: string | undefined;
}
const MANUAL_ITEM: MediaPlayerItem = {
@@ -113,10 +113,6 @@ export class HaMediaPlayerBrowse extends LitElement {
@property({ attribute: false }) public defaultType?: string;
@property({ attribute: false }) public hideContentType = false;
@property({ attribute: false }) public contentIdHelper?: string;
// @todo Consider reworking to eliminate need for attribute since it is manipulated internally
@property({ type: Boolean, reflect: true }) public narrow = false;
@@ -525,8 +521,6 @@ export class HaMediaPlayerBrowse extends LitElement {
media_content_type: this.defaultType || "",
}}
.hass=${this.hass}
.hideContentType=${this.hideContentType}
.contentIdHelper=${this.contentIdHelper}
@manual-media-picked=${this._manualPicked}
></ha-browse-media-manual>`
: isTTSMediaSource(currentItem.media_content_id)

View File

@@ -14,8 +14,6 @@ export interface MediaPlayerBrowseDialogParams {
accept?: string[];
defaultId?: string;
defaultType?: string;
hideContentType?: boolean;
contentIdHelper?: string;
}
export const showMediaBrowserDialog = (

View File

@@ -95,9 +95,7 @@ export interface StatisticsValidationResultUnitsChanged {
data: {
statistic_id: string;
state_unit: string;
state_unit_class: string | null;
metadata_unit: string;
metadata_unit_class: string | null;
supported_unit: string;
};
}
@@ -233,14 +231,12 @@ export const validateStatistics = (hass: HomeAssistant) =>
export const updateStatisticsMetadata = (
hass: HomeAssistant,
statistic_id: string,
unit_of_measurement: string | null,
unit_class: string | null
unit_of_measurement: string | null
) =>
hass.callWS<undefined>({
type: "recorder/update_statistics_metadata",
statistic_id,
unit_of_measurement,
unit_class,
});
export const clearStatistics = (hass: HomeAssistant, statistic_ids: string[]) =>

View File

@@ -312,10 +312,6 @@ export interface LocationSelectorValue {
export interface MediaSelector {
media: {
accept?: string[];
image_upload?: boolean;
clearable?: boolean;
hide_content_type?: boolean;
content_id_helper?: string;
} | null;
}

View File

@@ -167,12 +167,15 @@ class MoreInfoMediaPlayer extends LitElement {
}
return html`<ha-md-button-menu positioning="popover">
<ha-icon-button
<ha-button
slot="trigger"
.title=${this.hass.localize(`ui.card.media_player.source`)}
.path=${mdiLoginVariant}
appearance="plain"
variant="neutral"
size="small"
title=${this.hass.localize(`ui.card.media_player.source`)}
>
</ha-icon-button>
<ha-svg-icon .path=${mdiLoginVariant}></ha-svg-icon>
</ha-button>
${this.stateObj.attributes.source_list!.map(
(source) =>
html`<ha-md-menu-item
@@ -200,12 +203,15 @@ class MoreInfoMediaPlayer extends LitElement {
}
return html`<ha-md-button-menu positioning="popover">
<ha-icon-button
<ha-button
slot="trigger"
.title=${this.hass.localize(`ui.card.media_player.sound_mode`)}
.path=${mdiMusicNoteEighth}
appearance="plain"
variant="neutral"
size="small"
title=${this.hass.localize(`ui.card.media_player.sound_mode`)}
>
</ha-icon-button>
<ha-svg-icon .path=${mdiMusicNoteEighth}></ha-svg-icon>
</ha-button>
${this.stateObj.attributes.sound_mode_list!.map(
(soundMode) =>
html`<ha-md-menu-item
@@ -231,17 +237,21 @@ class MoreInfoMediaPlayer extends LitElement {
const groupMembers = this.stateObj.attributes.group_members;
const hasMultipleMembers = groupMembers && groupMembers?.length > 1;
return html`<ha-icon-button
return html`<ha-button
class="grouping"
@click=${this._showGroupMediaPlayers}
.title=${this.hass.localize("ui.card.media_player.join")}
appearance="plain"
variant="neutral"
size="small"
title=${this.hass.localize("ui.card.media_player.join")}
>
<div class="grouping">
<div>
<ha-svg-icon .path=${mdiSpeakerMultiple}></ha-svg-icon>
${hasMultipleMembers
? html`<span class="badge">${groupMembers?.length || 4}</span>`
? html`<span class="badge"> ${groupMembers?.length || 4} </span>`
: nothing}
</div>
</ha-icon-button>`;
</ha-button>`;
}
protected _renderEmptyCover(title: string, icon?: string) {
@@ -404,39 +414,48 @@ class MoreInfoMediaPlayer extends LitElement {
${!isUnavailableState(stateObj.state) &&
supportsFeature(stateObj, MediaPlayerEntityFeature.BROWSE_MEDIA)
? html`
<ha-icon-button
<ha-button
@click=${this._showBrowseMedia}
.title=${this.hass.localize(
appearance="plain"
variant="neutral"
size="small"
title=${this.hass.localize(
"ui.card.media_player.browse_media"
)}
.path=${mdiPlayBoxMultiple}
>
</ha-icon-button>
<ha-svg-icon .path=${mdiPlayBoxMultiple}></ha-svg-icon>
</ha-button>
`
: nothing}
${this._renderGrouping()} ${this._renderSourceControl()}
${this._renderSoundMode()}
${turnOn
? html`<ha-icon-button
? html`<ha-button
action=${turnOn.action}
@click=${this._handleClick}
.title=${this.hass.localize(
appearance="plain"
variant="neutral"
size="small"
title=${this.hass.localize(
`ui.card.media_player.${turnOn.action}`
)}
.path=${turnOn.icon}
>
</ha-icon-button>`
<ha-svg-icon .path=${turnOn.icon}></ha-svg-icon>
</ha-button>`
: nothing}
${turnOff
? html`<ha-icon-button
? html`<ha-button
action=${turnOff.action}
@click=${this._handleClick}
.title=${this.hass.localize(
appearance="plain"
variant="neutral"
size="small"
title=${this.hass.localize(
`ui.card.media_player.${turnOff.action}`
)}
.path=${turnOff.icon}
>
</ha-icon-button>`
<ha-svg-icon .path=${turnOff.icon}></ha-svg-icon>
</ha-button>`
: nothing}
</div>
</div>
@@ -560,7 +579,7 @@ class MoreInfoMediaPlayer extends LitElement {
font-size: var(--ha-font-size-xs);
background-color: var(--primary-color);
padding: 0 4px;
color: var(--text-primary-color);
color: var(--primary-text-color);
}
.position-bar {
@@ -597,15 +616,15 @@ class MoreInfoMediaPlayer extends LitElement {
justify-content: space-around;
}
.controls-row ha-icon-button {
color: var(--secondary-text-color);
.controls-row ha-button {
width: 32px;
}
.controls-row ha-svg-icon {
color: var(--ha-color-on-neutral-quiet);
}
.grouping {
.grouping::part(label) {
position: relative;
}

View File

@@ -15,6 +15,7 @@ import type { PropertyValues } from "lit";
import { LitElement, css, html, nothing } from "lit";
import { customElement, property, state } from "lit/decorators";
import { cache } from "lit/directives/cache";
import { join } from "lit/directives/join";
import { keyed } from "lit/directives/keyed";
import { dynamicElement } from "../../common/dom/dynamic-element-directive";
import { fireEvent } from "../../common/dom/fire_event";
@@ -32,7 +33,6 @@ import {
} from "../../common/entity/context/get_entity_context";
import { shouldHandleRequestSelectedEvent } from "../../common/mwc/handle-request-selected-event";
import { navigate } from "../../common/navigate";
import { computeRTL } from "../../common/util/compute_rtl";
import "../../components/ha-button-menu";
import "../../components/ha-dialog";
import "../../components/ha-dialog-header";
@@ -361,8 +361,6 @@ export class MoreInfoDialog extends LitElement {
);
const title = this._childView?.viewTitle || breadcrumb.pop() || entityId;
const isRTL = computeRTL(this.hass);
return html`
<ha-dialog
open
@@ -396,13 +394,17 @@ export class MoreInfoDialog extends LitElement {
${breadcrumb.length > 0
? !__DEMO__ && isAdmin
? html`
<button class="breadcrumb" @click=${this._breadcrumbClick}>
${breadcrumb.join(isRTL ? " ◂ " : " ▸ ")}
<button
class="breadcrumb"
@click=${this._breadcrumbClick}
aria-label=${breadcrumb.join(" > ")}
>
${join(breadcrumb, html`<ha-icon-next></ha-icon-next>`)}
</button>
`
: html`
<p class="breadcrumb">
${breadcrumb.join(isRTL ? " ◂ " : " ▸ ")}
${join(breadcrumb, html`<ha-icon-next></ha-icon-next>`)}
</p>
`
: nothing}

View File

@@ -302,8 +302,6 @@ export default class HaAutomationSidebar extends LitElement {
--ha-bottom-sheet-border-style: solid;
--ha-bottom-sheet-border-color: var(--primary-color);
margin-top: var(--safe-area-inset-top);
--ha-bottom-sheet-surface-background: var(--card-background-color);
}
@media all and (max-width: 870px) {

View File

@@ -11,6 +11,7 @@ import { customElement, property, state } from "lit/decorators";
import memoizeOne from "memoize-one";
import { isComponentLoaded } from "../../../../../common/config/is_component_loaded";
import { fireEvent } from "../../../../../common/dom/fire_event";
import "../../../../../components/ha-alert";
import "../../../../../components/ha-button";
import "../../../../../components/ha-expansion-panel";
import "../../../../../components/ha-md-list";
@@ -18,10 +19,14 @@ import "../../../../../components/ha-md-list-item";
import "../../../../../components/ha-md-select";
import type { HaMdSelect } from "../../../../../components/ha-md-select";
import "../../../../../components/ha-md-select-option";
import "../../../../../components/ha-spinner";
import "../../../../../components/ha-switch";
import type { HaSwitch } from "../../../../../components/ha-switch";
import { fetchHassioAddonsInfo } from "../../../../../data/hassio/addon";
import type { HostDisksUsage } from "../../../../../data/hassio/host";
import { fetchHostDisksUsage } from "../../../../../data/hassio/host";
import type { HomeAssistant } from "../../../../../types";
import { bytesToString } from "../../../../../util/bytes-to-string";
import "../ha-backup-addons-picker";
import type { BackupAddonItem } from "../ha-backup-addons-picker";
import { getRecorderInfo } from "../../../../../data/recorder";
@@ -78,11 +83,14 @@ class HaBackupConfigData extends LitElement {
@state() private _showDbOption = true;
@state() private _storageInfo?: HostDisksUsage | null;
protected firstUpdated(changedProperties: PropertyValues): void {
super.firstUpdated(changedProperties);
this._checkDbOption();
if (isComponentLoaded(this.hass, "hassio")) {
this._fetchAddons();
this._fetchStorageInfo();
}
}
@@ -114,10 +122,63 @@ class HaBackupConfigData extends LitElement {
}
}
private async _fetchStorageInfo() {
try {
this._storageInfo = await fetchHostDisksUsage(this.hass);
} catch (_err: any) {
this._storageInfo = null;
}
}
private _hasLocalAddons(addons: BackupAddonItem[]): boolean {
return addons.some((addon) => addon.slug === "local");
}
private _estimateBackupSize(data: FormData): {
uncompressedBytes: number;
compressedBytes: number;
addonsNotAccurate: boolean;
} | null {
if (!this._storageInfo?.children) {
return null;
}
let totalBytes = 0;
const segments: Record<string, number> = {};
this._storageInfo.children.forEach((child) => {
segments[child.id] = child.used_bytes;
});
if (data.homeassistant) {
totalBytes += segments.homeassistant ?? 0;
}
if (data.media) {
totalBytes += segments.media ?? 0;
}
if (data.share) {
totalBytes += segments.share ?? 0;
}
if (
data.addons_mode === "all" ||
(data.addons_mode === "custom" && data.addons.length > 0)
) {
// It would be better if we could receive individual addon sizes in the WS request instead
totalBytes += (segments.addons_data ?? 0) + (segments.addons_config ?? 0);
}
return {
uncompressedBytes: totalBytes,
// Estimate compressed size (40% reduction typical for gzip)
compressedBytes: Math.round(totalBytes * 0.6),
addonsNotAccurate:
data.addons_mode === "custom" &&
data.addons.length > 0 &&
data.addons.length !== this._addons.length,
};
}
private _getData = memoizeOne(
(value: BackupConfigData | undefined, showAddon: boolean): FormData => {
if (!value) {
@@ -171,6 +232,7 @@ class HaBackupConfigData extends LitElement {
const isHassio = isComponentLoaded(this.hass, "hassio");
return html`
${this._renderSizeEstimate()}
<ha-md-list>
<ha-md-list-item>
<ha-svg-icon slot="start" .path=${mdiCog}></ha-svg-icon>
@@ -381,7 +443,79 @@ class HaBackupConfigData extends LitElement {
});
}
private _renderSizeEstimate() {
if (!isComponentLoaded(this.hass, "hassio")) {
return nothing;
}
const data = this._getData(this.value, this._showAddons);
if (
!(
data.homeassistant ||
data.database ||
data.media ||
data.share ||
data.local_addons ||
data.addons_mode === "all" ||
(data.addons_mode === "custom" && data.addons.length > 0)
)
) {
return nothing;
}
if (this._storageInfo === undefined) {
return html`
<ha-alert alert-type="info">
<ha-spinner slot="icon"></ha-spinner>
${this.hass.localize(
"ui.panel.config.backup.data.estimated_size_loading"
)}</ha-alert
>
`;
}
if (!this._storageInfo || !this._storageInfo.children) {
return nothing;
}
const result = this._estimateBackupSize(data);
if (result === null) {
return nothing;
}
const { uncompressedBytes, compressedBytes, addonsNotAccurate } = result;
return html`
<ha-alert alert-type="info">
${this.hass.localize("ui.panel.config.backup.data.estimated_size", {
uncompressed: bytesToString(uncompressedBytes),
compressed: bytesToString(compressedBytes),
})}
<br />
<span style="font-size: 0.9em; opacity: 0.8;">
${this.hass.localize(
"ui.panel.config.backup.data.estimated_size_disclaimer"
)}
${addonsNotAccurate
? html`<br />${this.hass.localize(
"ui.panel.config.backup.data.estimated_size_disclaimer_addons_custom"
)}`
: nothing}
</span>
</ha-alert>
`;
}
static styles = css`
ha-alert {
display: block;
margin-top: var(--ha-space-2);
--ha-alert-icon-size: 24px;
}
ha-alert ha-spinner {
--ha-spinner-size: 24px;
}
ha-md-list {
background: none;
--md-list-item-leading-space: 0;

View File

@@ -1,7 +1,7 @@
import { mdiClose } from "@mdi/js";
import type { CSSResultGroup, PropertyValues } from "lit";
import { css, html, LitElement, nothing } from "lit";
import { customElement, property, state } from "lit/decorators";
import { customElement, property, query, state } from "lit/decorators";
import { isComponentLoaded } from "../../../../common/config/is_component_loaded";
import { fireEvent } from "../../../../common/dom/fire_event";
import "../../../../components/ha-alert";
@@ -9,9 +9,9 @@ import "../../../../components/ha-button";
import "../../../../components/ha-dialog-header";
import "../../../../components/ha-expansion-panel";
import "../../../../components/ha-icon-button";
import "../../../../components/ha-dialog-footer";
import "../../../../components/ha-icon-button-prev";
import "../../../../components/ha-wa-dialog";
import "../../../../components/ha-md-dialog";
import type { HaMdDialog } from "../../../../components/ha-md-dialog";
import "../../../../components/ha-md-list";
import "../../../../components/ha-md-list-item";
import "../../../../components/ha-md-select";
@@ -73,13 +73,12 @@ class DialogGenerateBackup extends LitElement implements HassDialog {
@state() private _formData?: FormData;
@state() private _open = false;
@query("ha-md-dialog") private _dialog?: HaMdDialog;
public showDialog(_params: GenerateBackupDialogParams): void {
this._step = STEPS[0];
this._formData = INITIAL_DATA;
this._params = _params;
this._open = true;
this._fetchAgents();
this._fetchBackupConfig();
@@ -89,7 +88,6 @@ class DialogGenerateBackup extends LitElement implements HassDialog {
if (this._params!.cancel) {
this._params!.cancel();
}
this._open = false;
this._step = undefined;
this._formData = undefined;
this._agents = [];
@@ -116,7 +114,7 @@ class DialogGenerateBackup extends LitElement implements HassDialog {
}
public closeDialog() {
this._open = false;
this._dialog?.close();
return true;
}
@@ -181,19 +179,15 @@ class DialogGenerateBackup extends LitElement implements HassDialog {
const selectedAgents = this._formData.agent_ids;
return html`
<ha-wa-dialog
.hass=${this.hass}
.open=${this._open}
@closed=${this._dialogClosed}
>
<ha-dialog-header slot="header">
<ha-md-dialog open disable-cancel-action @closed=${this._dialogClosed}>
<ha-dialog-header slot="headline">
${isFirstStep
? html`
<ha-icon-button
slot="navigationIcon"
data-dialog="close"
.label=${this.hass.localize("ui.common.close")}
.path=${mdiClose}
@click=${this.closeDialog}
></ha-icon-button>
`
: html`
@@ -204,17 +198,13 @@ class DialogGenerateBackup extends LitElement implements HassDialog {
`}
<span slot="title" .title=${dialogTitle}> ${dialogTitle} </span>
</ha-dialog-header>
<div class="content">
<div slot="content" class="content">
${this._step === "data" ? this._renderData() : this._renderSync()}
</div>
<ha-dialog-footer slot="footer">
<div slot="actions">
${isFirstStep
? html`
<ha-button
slot="secondaryAction"
@click=${this.closeDialog}
appearance="plain"
>
<ha-button @click=${this.closeDialog} appearance="plain">
${this.hass.localize("ui.common.cancel")}
</ha-button>
`
@@ -222,7 +212,6 @@ class DialogGenerateBackup extends LitElement implements HassDialog {
${isLastStep
? html`
<ha-button
slot="primaryAction"
@click=${this._submit}
.disabled=${this._formData.agents_mode === "custom" &&
!selectedAgents.length}
@@ -234,15 +223,14 @@ class DialogGenerateBackup extends LitElement implements HassDialog {
`
: html`
<ha-button
slot="primaryAction"
@click=${this._nextStep}
.disabled=${this._step === "data" && this._noDataSelected}
>
${this.hass.localize("ui.common.next")}
</ha-button>
`}
</ha-dialog-footer>
</ha-wa-dialog>
</div>
</ha-md-dialog>
`;
}
@@ -448,8 +436,9 @@ class DialogGenerateBackup extends LitElement implements HassDialog {
haStyle,
haStyleDialog,
css`
ha-wa-dialog {
ha-md-dialog {
--dialog-content-padding: 24px;
max-height: calc(100vh - 48px);
}
ha-md-list {
background: none;

View File

@@ -1,11 +1,14 @@
import { mdiCalendarSync, mdiGestureTap } from "@mdi/js";
import { mdiCalendarSync, mdiClose, mdiGestureTap } from "@mdi/js";
import type { CSSResultGroup } from "lit";
import { LitElement, css, html, nothing } from "lit";
import { customElement, property, state } from "lit/decorators";
import { customElement, property, query, state } from "lit/decorators";
import { fireEvent } from "../../../../common/dom/fire_event";
import "../../../../components/ha-dialog-header";
import "../../../../components/ha-icon-button";
import "../../../../components/ha-icon-next";
import "../../../../components/ha-md-dialog";
import type { HaMdDialog } from "../../../../components/ha-md-dialog";
import "../../../../components/ha-md-list";
import "../../../../components/ha-wa-dialog";
import "../../../../components/ha-md-list-item";
import "../../../../components/ha-svg-icon";
import type { HassDialog } from "../../../../dialogs/make-dialog-manager";
@@ -21,80 +24,92 @@ class DialogNewBackup extends LitElement implements HassDialog {
@state() private _params?: NewBackupDialogParams;
@query("ha-md-dialog") private _dialog?: HaMdDialog;
public showDialog(params: NewBackupDialogParams): void {
this._opened = true;
this._params = params;
}
public closeDialog() {
this._opened = false;
this._dialog?.close();
return true;
}
private _dialogClosed() {
if (this._params?.cancel) {
this._params.cancel();
if (this._params!.cancel) {
this._params!.cancel();
}
if (this._opened) {
fireEvent(this, "dialog-closed", { dialog: this.localName });
}
this._opened = false;
this._params = undefined;
fireEvent(this, "dialog-closed", { dialog: this.localName });
}
protected render() {
if (!this._params) {
if (!this._opened || !this._params) {
return nothing;
}
return html`
<ha-wa-dialog
.hass=${this.hass}
.open=${this._opened}
header-title=${this.hass.localize(
"ui.panel.config.backup.dialogs.new.title"
)}
@closed=${this._dialogClosed}
>
<ha-md-list
innerRole="listbox"
itemRoles="option"
.innerAriaLabel=${this.hass.localize(
"ui.panel.config.backup.dialogs.new.options"
)}
rootTabbable
>
<ha-md-list-item
@click=${this._automatic}
type="button"
.disabled=${!this._params.config.create_backup.password}
<ha-md-dialog open @closed=${this._dialogClosed}>
<ha-dialog-header slot="headline">
<ha-icon-button
slot="navigationIcon"
@click=${this.closeDialog}
.label=${this.hass.localize("ui.common.close")}
.path=${mdiClose}
></ha-icon-button>
<span slot="title">
${this.hass.localize("ui.panel.config.backup.dialogs.new.title")}
</span>
</ha-dialog-header>
<div slot="content">
<ha-md-list
innerRole="listbox"
itemRoles="option"
.innerAriaLabel=${this.hass.localize(
"ui.panel.config.backup.dialogs.new.options"
)}
rootTabbable
dialogInitialFocus
>
<ha-svg-icon slot="start" .path=${mdiCalendarSync}></ha-svg-icon>
<span slot="headline">
${this.hass.localize(
"ui.panel.config.backup.dialogs.new.automatic.title"
)}
</span>
<span slot="supporting-text">
${this.hass.localize(
"ui.panel.config.backup.dialogs.new.automatic.description"
)}
</span>
<ha-icon-next slot="end"></ha-icon-next>
</ha-md-list-item>
<ha-md-list-item @click=${this._manual} type="button">
<ha-svg-icon slot="start" .path=${mdiGestureTap}></ha-svg-icon>
<span slot="headline">
${this.hass.localize(
"ui.panel.config.backup.dialogs.new.manual.title"
)}
</span>
<span slot="supporting-text">
${this.hass.localize(
"ui.panel.config.backup.dialogs.new.manual.description"
)}
</span>
<ha-icon-next slot="end"></ha-icon-next>
</ha-md-list-item>
</ha-md-list>
</ha-wa-dialog>
<ha-md-list-item
@click=${this._automatic}
type="button"
.disabled=${!this._params.config.create_backup.password}
>
<ha-svg-icon slot="start" .path=${mdiCalendarSync}></ha-svg-icon>
<span slot="headline">
${this.hass.localize(
"ui.panel.config.backup.dialogs.new.automatic.title"
)}
</span>
<span slot="supporting-text">
${this.hass.localize(
"ui.panel.config.backup.dialogs.new.automatic.description"
)}
</span>
<ha-icon-next slot="end"></ha-icon-next>
</ha-md-list-item>
<ha-md-list-item @click=${this._manual} type="button">
<ha-svg-icon slot="start" .path=${mdiGestureTap}></ha-svg-icon>
<span slot="headline">
${this.hass.localize(
"ui.panel.config.backup.dialogs.new.manual.title"
)}
</span>
<span slot="supporting-text">
${this.hass.localize(
"ui.panel.config.backup.dialogs.new.manual.description"
)}
</span>
<ha-icon-next slot="end"></ha-icon-next>
</ha-md-list-item>
</ha-md-list>
</div>
</ha-md-dialog>
`;
}
@@ -113,13 +128,24 @@ class DialogNewBackup extends LitElement implements HassDialog {
haStyle,
haStyleDialog,
css`
ha-wa-dialog {
ha-md-dialog {
--dialog-content-padding: 0;
max-width: 500px;
}
@media all and (max-width: 450px), all and (max-height: 500px) {
ha-md-dialog {
max-width: none;
}
div[slot="content"] {
margin-top: 0;
}
}
ha-md-list {
background: none;
}
ha-md-list-item {
}
ha-icon-next {
width: 24px;
}

View File

@@ -128,10 +128,11 @@ class ZHAAddDevicesPage extends LitElement {
this.hass,
"/integrations/zha#adding-devices"
)}
>${this.hass.localize(
"ui.panel.config.zha.add_device_page.pairing_mode_link"
)}</a
>
${this.hass.localize(
"ui.panel.config.zha.add_device_page.pairing_mode_link"
)}
</a>
`,
}
)}

View File

@@ -110,7 +110,7 @@ class MoveDatadiskDialog extends LitElement {
>
${this._moving
? html`
<ha-spinner aria-label="Moving" size="large"></ha-spinner>
<ha-spinner aria-label="Moving" size="large"> </ha-spinner>
<p class="progress-text">
${this.hass.localize(
"ui.panel.config.storage.datadisk.moving_desc"
@@ -206,7 +206,8 @@ class MoveDatadiskDialog extends LitElement {
}
ha-spinner {
display: block;
margin: 32px auto;
margin: 32px;
text-align: center;
}
.progress-text {

View File

@@ -139,8 +139,7 @@ export class DialogStatisticsFixUnitsChanged extends LitElement {
await updateStatisticsMetadata(
this.hass,
this._params!.issue.data.statistic_id,
this._params!.issue.data.state_unit,
this._params!.issue.data.state_unit_class
this._params!.issue.data.state_unit
);
}
this._params?.fixedCallback!();

View File

@@ -27,7 +27,6 @@ import {
} from "../../../../../common/datetime/format_date";
import { formatTime } from "../../../../../common/datetime/format_time";
import type { ECOption } from "../../../../../resources/echarts";
import { filterXSS } from "../../../../../common/util/xss";
export function getSuggestedMax(dayDifference: number, end: Date): number {
let suggestedMax = new Date(end);
@@ -202,7 +201,7 @@ function formatTooltip(
countNegative++;
}
}
return `${param.marker} ${filterXSS(param.seriesName!)}: ${value} ${unit}`;
return `${param.marker} ${param.seriesName}: ${value} ${unit}`;
})
.filter(Boolean);
let footer = "";

View File

@@ -6,7 +6,6 @@ import { classMap } from "lit/directives/class-map";
import memoizeOne from "memoize-one";
import type { BarSeriesOption } from "echarts/charts";
import type { ECElementEvent } from "echarts/types/dist/shared";
import { filterXSS } from "../../../../common/util/xss";
import { getGraphColorByIndex } from "../../../../common/color/colors";
import { formatNumber } from "../../../../common/number/format_number";
import "../../../../components/chart/ha-chart-base";
@@ -97,8 +96,9 @@ export class HuiEnergyDevicesGraphCard
}
private _renderTooltip(params: any) {
const deviceName = filterXSS(this._getDeviceName(params.value[1]));
const title = `<h4 style="text-align: center; margin: 0;">${deviceName}</h4>`;
const title = `<h4 style="text-align: center; margin: 0;">${this._getDeviceName(
params.value[1]
)}</h4>`;
const value = `${formatNumber(
params.value[0] as number,
this.hass.locale,

View File

@@ -93,21 +93,17 @@ export class HuiPictureCard extends LitElement implements LovelaceCard {
changedProps.has("_config") &&
changedProps.get("_config")?.image !== this._config?.image;
const image =
(typeof this._config?.image === "object" &&
this._config.image.media_content_id) ||
(this._config.image as string | undefined);
if (
(firstHass || imageChanged) &&
typeof image === "string" &&
isMediaSourceContentId(image)
typeof this._config?.image === "string" &&
isMediaSourceContentId(this._config.image)
) {
this._resolvedImage = undefined;
resolveMediaSource(this.hass, image).then((result) => {
resolveMediaSource(this.hass, this._config?.image).then((result) => {
this._resolvedImage = result.url;
});
} else if (imageChanged) {
this._resolvedImage = image;
this._resolvedImage = this._config?.image;
}
}

View File

@@ -29,7 +29,6 @@ import type {
import type { LovelaceHeaderFooterConfig } from "../header-footer/types";
import type { LovelaceHeadingBadgeConfig } from "../heading-badges/types";
import type { HomeSummary } from "../strategies/home/helpers/home-summaries";
import type { MediaSelectorValue } from "../../../data/selector";
export type AlarmPanelCardConfigState =
| "arm_away"
@@ -442,7 +441,7 @@ export interface StatisticCardConfig extends LovelaceCardConfig {
}
export interface PictureCardConfig extends LovelaceCardConfig {
image?: string | MediaSelectorValue;
image?: string;
image_entity?: string;
tap_action?: ActionConfig;
hold_action?: ActionConfig;

View File

@@ -1,8 +1,7 @@
import { mdiGestureTap } from "@mdi/js";
import { html, LitElement, nothing } from "lit";
import { customElement, property, state } from "lit/decorators";
import { assert, assign, object, optional, string, union } from "superstruct";
import memoizeOne from "memoize-one";
import { assert, assign, object, optional, string } from "superstruct";
import { fireEvent } from "../../../../common/dom/fire_event";
import type { SchemaUnion } from "../../../../components/ha-form/types";
import "../../../../components/ha-theme-picker";
@@ -12,12 +11,11 @@ import "../../components/hui-action-editor";
import type { LovelaceCardEditor } from "../../types";
import { actionConfigStruct } from "../structs/action-struct";
import { baseLovelaceCardConfig } from "../structs/base-card-struct";
import type { LocalizeFunc } from "../../../../common/translations/localize";
const cardConfigStruct = assign(
baseLovelaceCardConfig,
object({
image: optional(union([string(), object()])),
image: optional(string()),
image_entity: optional(string()),
tap_action: optional(actionConfigStruct),
hold_action: optional(actionConfigStruct),
@@ -27,6 +25,47 @@ const cardConfigStruct = assign(
})
);
const SCHEMA = [
{ name: "image", selector: { image: {} } },
{
name: "image_entity",
selector: { entity: { domain: ["image", "person"] } },
},
{ name: "alt_text", selector: { text: {} } },
{ name: "theme", selector: { theme: {} } },
{
name: "interactions",
type: "expandable",
flatten: true,
iconPath: mdiGestureTap,
schema: [
{
name: "tap_action",
selector: {
ui_action: {
default_action: "more-info",
},
},
},
{
name: "",
type: "optional_actions",
flatten: true,
schema: (["hold_action", "double_tap_action"] as const).map(
(action) => ({
name: action,
selector: {
ui_action: {
default_action: "none" as const,
},
},
})
),
},
],
},
] as const;
@customElement("hui-picture-card-editor")
export class HuiPictureCardEditor
extends LitElement
@@ -36,63 +75,6 @@ export class HuiPictureCardEditor
@state() private _config?: PictureCardConfig;
private _schema = memoizeOne(
(localize: LocalizeFunc) =>
[
{
name: "image",
selector: {
media: {
accept: ["image/*"] as string[],
clearable: true,
image_upload: true,
hide_content_type: true,
content_id_helper: localize(
"ui.panel.lovelace.editor.card.picture.content_id_helper"
),
},
},
},
{
name: "image_entity",
selector: { entity: { domain: ["image", "person"] } },
},
{ name: "alt_text", selector: { text: {} } },
{ name: "theme", selector: { theme: {} } },
{
name: "interactions",
type: "expandable",
flatten: true,
iconPath: mdiGestureTap,
schema: [
{
name: "tap_action",
selector: {
ui_action: {
default_action: "more-info",
},
},
},
{
name: "",
type: "optional_actions",
flatten: true,
schema: (["hold_action", "double_tap_action"] as const).map(
(action) => ({
name: action,
selector: {
ui_action: {
default_action: "none" as const,
},
},
})
),
},
],
},
] as const
);
public setConfig(config: PictureCardConfig): void {
assert(config, cardConfigStruct);
this._config = config;
@@ -106,28 +88,19 @@ export class HuiPictureCardEditor
return html`
<ha-form
.hass=${this.hass}
.data=${this._processData(this._config)}
.schema=${this._schema(this.hass.localize)}
.data=${this._config}
.schema=${SCHEMA}
.computeLabel=${this._computeLabelCallback}
@value-changed=${this._valueChanged}
></ha-form>
`;
}
private _processData = memoizeOne((config: PictureCardConfig) => ({
...config,
...(typeof config.image === "string"
? { image: { media_content_id: config.image } }
: {}),
}));
private _valueChanged(ev: CustomEvent): void {
fireEvent(this, "config-changed", { config: ev.detail.value });
}
private _computeLabelCallback = (
schema: SchemaUnion<ReturnType<typeof this._schema>>
) => {
private _computeLabelCallback = (schema: SchemaUnion<typeof SCHEMA>) => {
switch (schema.name) {
case "theme":
return `${this.hass!.localize(

View File

@@ -4,8 +4,8 @@ import { property, query, state } from "lit/decorators";
import { cache } from "lit/directives/cache";
import type { HASSDomEvent } from "../../../common/dom/fire_event";
import { fireEvent } from "../../../common/dom/fire_event";
import { handleStructError } from "../../../common/structs/handle-errors";
import { debounce } from "../../../common/util/debounce";
import { handleStructError } from "../../../common/structs/handle-errors";
import { deepEqual } from "../../../common/util/deep-equal";
import "../../../components/ha-alert";
import "../../../components/ha-spinner";
@@ -57,6 +57,8 @@ export abstract class HuiElementEditor<
@property({ attribute: false }) public context?: C;
@property({ attribute: false }) public schema?;
@state() private _config?: T;
@state() private _configElement?: LovelaceGenericElementEditor;
@@ -312,6 +314,9 @@ export abstract class HuiElementEditor<
if (this._configElement && changedProperties.has("context")) {
this._configElement.context = this.context;
}
if (this._configElement && changedProperties.has("schema")) {
this._configElement.schema = this.schema;
}
}
private _handleUIConfigChanged(ev: UIConfigChangedEvent<T>) {
@@ -399,6 +404,7 @@ export abstract class HuiElementEditor<
configElement.lovelace = this.lovelace;
}
configElement.context = this.context;
configElement.schema = this.schema;
configElement.addEventListener("config-changed", (ev) =>
this._handleUIConfigChanged(ev as UIConfigChangedEvent<T>)
);

View File

@@ -1,19 +0,0 @@
import { customElement, property } from "lit/decorators";
import type { HaFormSchema } from "../../../components/ha-form/types";
import type { LovelaceConfigForm } from "../types";
import { HuiElementEditor } from "./hui-element-editor";
@customElement("hui-form-element-editor")
export class HuiFormElementEditor extends HuiElementEditor {
@property({ attribute: false }) public schema!: HaFormSchema[];
protected async getConfigForm(): Promise<LovelaceConfigForm | undefined> {
return { schema: this.schema };
}
}
declare global {
interface HTMLElementTagNameMap {
"hui-form-element-editor": HuiFormElementEditor;
}
}

View File

@@ -12,7 +12,6 @@ import "./feature-editor/hui-card-feature-element-editor";
import "./header-footer-editor/hui-header-footer-element-editor";
import "./heading-badge-editor/hui-heading-badge-element-editor";
import type { HuiElementEditor } from "./hui-element-editor";
import "./hui-form-element-editor";
import "./picture-element-editor/hui-picture-element-element-editor";
import type { GUIModeChangedEvent, SubElementEditorConfig } from "./types";
@@ -84,18 +83,6 @@ export class HuiSubElementEditor extends LitElement {
private _renderEditor() {
const type = this.config.type;
if (this.schema) {
return html`
<hui-form-element-editor
class="editor"
.hass=${this.hass}
.value=${this.config.elementConfig}
.schema=${this.schema}
.context=${this.config.context}
@config-changed=${this._handleConfigChanged}
></hui-form-element-editor>
`;
}
switch (type) {
case "row":
return html`
@@ -104,6 +91,7 @@ export class HuiSubElementEditor extends LitElement {
.hass=${this.hass}
.value=${this.config.elementConfig}
.context=${this.config.context}
.schema=${this.schema}
@config-changed=${this._handleConfigChanged}
@GUImode-changed=${this._handleGUIModeChanged}
></hui-row-element-editor>

View File

@@ -4,7 +4,6 @@ import { isComponentLoaded } from "../../../../common/config/is_component_loaded
import { generateEntityFilter } from "../../../../common/entity/entity_filter";
import type { AreaRegistryEntry } from "../../../../data/area_registry";
import { getEnergyPreferences } from "../../../../data/energy";
import type { LovelaceCardConfig } from "../../../../data/lovelace/config/card";
import type {
LovelaceSectionConfig,
LovelaceSectionRawConfig,
@@ -16,11 +15,11 @@ import type {
AreaCardConfig,
HomeSummaryCard,
MarkdownCardConfig,
TileCardConfig,
WeatherForecastCardConfig,
} from "../../cards/types";
import { getAreas, getFloors } from "../areas/helpers/areas-strategy-helper";
import { getAreas } from "../areas/helpers/areas-strategy-helper";
import type { CommonControlSectionStrategyConfig } from "../usage_prediction/common-controls-section-strategy";
import { getHomeStructure } from "./helpers/home-structure";
export interface HomeMainViewStrategyConfig {
type: "home-main";
@@ -60,67 +59,25 @@ export class HomeMainViewStrategy extends ReactiveElement {
hass: HomeAssistant
): Promise<LovelaceViewConfig> {
const areas = getAreas(hass.areas);
const floors = getFloors(hass.floors);
const home = getHomeStructure(floors, areas);
const floorCount = home.floors.length + (home.areas.length ? 1 : 0);
const areasSection: LovelaceSectionConfig = {
type: "grid",
column_span: 2,
cards: [
{
type: "heading",
heading_style: "title",
heading: hass.localize("ui.panel.lovelace.strategy.home.areas"),
},
...areas.map<AreaCardConfig>((area) =>
computeAreaCard(area.area_id, hass)
),
],
};
// Allow between 2 and 3 columns (the max should be set to define the width of the header)
const maxColumns = 2;
const floorsSections: LovelaceSectionConfig[] = [];
for (const floorStructure of home.floors) {
const floorId = floorStructure.id;
const areaIds = floorStructure.areas;
const floor = hass.floors[floorId];
const cards: LovelaceCardConfig[] = [];
for (const areaId of areaIds) {
cards.push(computeAreaCard(areaId, hass));
}
if (cards.length) {
floorsSections.push({
type: "grid",
column_span: maxColumns,
cards: [
{
type: "heading",
heading:
floorCount > 1
? floor.name
: hass.localize("ui.panel.lovelace.strategy.home.areas"),
heading_style: "title",
},
...cards,
],
});
}
}
if (home.areas.length) {
const cards: LovelaceCardConfig[] = [];
for (const areaId of home.areas) {
cards.push(computeAreaCard(areaId, hass));
}
floorsSections.push({
type: "grid",
column_span: maxColumns,
cards: [
{
type: "heading",
heading:
floorCount > 1
? hass.localize("ui.panel.lovelace.strategy.home.other_areas")
: hass.localize("ui.panel.lovelace.strategy.home.areas"),
heading_style: "title",
},
...cards,
],
});
}
const favoriteSection: LovelaceSectionConfig = {
type: "grid",
column_span: maxColumns,
@@ -130,14 +87,31 @@ export class HomeMainViewStrategy extends ReactiveElement {
const favoriteEntities = (config.favorite_entities || []).filter(
(entityId) => hass.states[entityId] !== undefined
);
const maxCommonControls = Math.max(8, favoriteEntities.length);
if (favoriteEntities.length > 0) {
favoriteSection.cards!.push(
{
type: "heading",
heading: "",
heading_style: "subtitle",
},
...favoriteEntities.map(
(entityId) =>
({
type: "tile",
entity: entityId,
show_entity_picture: true,
}) as TileCardConfig
)
);
}
const commonControlsSection = {
strategy: {
type: "common-controls",
title: hass.localize("ui.panel.lovelace.strategy.home.common_controls"),
limit: maxCommonControls,
include_entities: favoriteEntities,
limit: 4,
exclude_entities: favoriteEntities,
hide_empty: true,
} satisfies CommonControlSectionStrategyConfig,
column_span: maxColumns,
@@ -260,7 +234,7 @@ export class HomeMainViewStrategy extends ReactiveElement {
favoriteSection.cards && favoriteSection,
commonControlsSection,
summarySection,
...floorsSections,
areasSection,
widgetSection.cards && widgetSection,
] satisfies (LovelaceSectionRawConfig | undefined)[]
).filter(Boolean) as LovelaceSectionRawConfig[];

View File

@@ -14,7 +14,6 @@ export interface CommonControlSectionStrategyConfig {
icon?: string;
limit?: number;
exclude_entities?: string[];
include_entities?: string[];
hide_empty?: boolean;
}
@@ -53,23 +52,12 @@ export class CommonControlsSectionStrategy extends ReactiveElement {
(entity) => entity in hass.states
);
if (config.exclude_entities?.length) {
if (config.exclude_entities) {
predictedEntities = predictedEntities.filter(
(entity) => !config.exclude_entities!.includes(entity)
);
}
if (config.include_entities?.length) {
// Remove included entities from predicted list to avoid duplicates
predictedEntities = predictedEntities.filter(
(entity) => !config.include_entities!.includes(entity)
);
// Add included entities to the start of the list
predictedEntities.unshift(
...config.include_entities!.filter((entity) => entity in hass.states)
);
}
const limit = config.limit ?? DEFAULT_LIMIT;
predictedEntities = predictedEntities.slice(0, limit);

View File

@@ -2674,7 +2674,11 @@
"addons_description": "Select what add-ons you want to include.",
"addons_all": "All",
"addons_none": "None",
"addons_custom": "Custom"
"addons_custom": "Custom",
"estimated_size": "Estimated backup size: {uncompressed} ({compressed} compressed)",
"estimated_size_disclaimer": "This is an approximation based on current storage usage. The actual backup size will vary.",
"estimated_size_disclaimer_addons_custom": "This estimate includes all add-ons, and not individual add-on sizes.",
"estimated_size_loading": "Loading size estimate..."
},
"data_picker": {
"settings": "Settings",
@@ -7880,8 +7884,7 @@
},
"picture": {
"name": "Picture",
"description": "The Picture card allows you to set an image to use for navigation to various paths in your interface or to perform an action.",
"content_id_helper": "Enter a media_source id or a URL for the image to be displayed."
"description": "The Picture card allows you to set an image to use for navigation to various paths in your interface or to perform an action."
},
"picture-elements": {
"name": "Picture elements",
@@ -7936,7 +7939,7 @@
"hide_completed": "Hide completed items",
"hide_create": "Hide 'Add item' field",
"hide_section_headers": "Hide section headers",
"hide_section_headers_helper": "Removes the 'Active' and 'Completed' section headers and their overflow menus.",
"hide_section_headers_helper": "Removes the 'Active' and 'Completed' sections with the overflow menus.",
"display_order": "Display order",
"item_tap_action": "Item tap behavior",
"actions": {

366
yarn.lock
View File

@@ -1206,14 +1206,14 @@ __metadata:
languageName: node
linkType: hard
"@bundle-stats/plugin-webpack-filter@npm:4.21.5":
version: 4.21.5
resolution: "@bundle-stats/plugin-webpack-filter@npm:4.21.5"
"@bundle-stats/plugin-webpack-filter@npm:4.21.4":
version: 4.21.4
resolution: "@bundle-stats/plugin-webpack-filter@npm:4.21.4"
dependencies:
tslib: "npm:2.8.1"
peerDependencies:
core-js: ^3.0.0
checksum: 10/a24e4fb0efdd671e8d21116045a22500494198feb451981d40db732cd890b90b7bad9a9f1d7909c8db9a1069f4c6226ae35939b4d865be437ea8e19b989ebcf1
checksum: 10/67e589755ce6702c92db3e9ca6158d0cbdce5a0c1d92508fae61c0424720121e81c6884efd86392f4906db871e4ba6f97111a55976571cdb79720a47149c027b
languageName: node
linkType: hard
@@ -1284,15 +1284,15 @@ __metadata:
languageName: node
linkType: hard
"@codemirror/view@npm:6.38.5, @codemirror/view@npm:^6.0.0, @codemirror/view@npm:^6.17.0, @codemirror/view@npm:^6.23.0, @codemirror/view@npm:^6.27.0":
version: 6.38.5
resolution: "@codemirror/view@npm:6.38.5"
"@codemirror/view@npm:6.38.4, @codemirror/view@npm:^6.0.0, @codemirror/view@npm:^6.17.0, @codemirror/view@npm:^6.23.0, @codemirror/view@npm:^6.27.0":
version: 6.38.4
resolution: "@codemirror/view@npm:6.38.4"
dependencies:
"@codemirror/state": "npm:^6.5.0"
crelt: "npm:^1.0.6"
style-mod: "npm:^4.1.0"
w3c-keyname: "npm:^2.2.4"
checksum: 10/2335b593770042eb3adfe369073432b07cd2d15f1e230ae4dc7be7a7b8edd74e57c13e59b92a11e7e5d59ae030aabf7f55478dfec1cf2a2fe3a1ef3f091676a4
checksum: 10/86b3894e9e7c2113aabb1db8684d0520378339c194fa56a688fc26cd7d40336bb9df1f5f19f68309d95f14b80ecf0b70c0ffe5e43f2ec11c4bab18f2d5ee4494
languageName: node
linkType: hard
@@ -1698,15 +1698,15 @@ __metadata:
languageName: node
linkType: hard
"@formatjs/ecma402-abstract@npm:2.3.6":
version: 2.3.6
resolution: "@formatjs/ecma402-abstract@npm:2.3.6"
"@formatjs/ecma402-abstract@npm:2.3.5":
version: 2.3.5
resolution: "@formatjs/ecma402-abstract@npm:2.3.5"
dependencies:
"@formatjs/fast-memoize": "npm:2.2.7"
"@formatjs/intl-localematcher": "npm:0.6.2"
decimal.js: "npm:^10.4.3"
tslib: "npm:^2.8.0"
checksum: 10/30b1b5cd6b62ba46245f934429936592df5500bc1b089dc92dd49c826757b873dd92c305dcfe370701e4df6b057bf007782113abb9b65db550d73be4961718bc
checksum: 10/254651057170836237dc4f0fbb372157f97133c4dcee414007e0cdb5b589baf0546c2f6337d117b988ee0a4f0a4d8247780aaa9e96b410c568495f162c40dc50
languageName: node
linkType: hard
@@ -1719,68 +1719,68 @@ __metadata:
languageName: node
linkType: hard
"@formatjs/icu-messageformat-parser@npm:2.11.4":
version: 2.11.4
resolution: "@formatjs/icu-messageformat-parser@npm:2.11.4"
"@formatjs/icu-messageformat-parser@npm:2.11.3":
version: 2.11.3
resolution: "@formatjs/icu-messageformat-parser@npm:2.11.3"
dependencies:
"@formatjs/ecma402-abstract": "npm:2.3.6"
"@formatjs/icu-skeleton-parser": "npm:1.8.16"
"@formatjs/ecma402-abstract": "npm:2.3.5"
"@formatjs/icu-skeleton-parser": "npm:1.8.15"
tslib: "npm:^2.8.0"
checksum: 10/2acb100c06c2ade666d72787fb9f9795b1ace41e8e73bfadc2b1a7b8562e81f655e484f0f33d8c39473aa17bf0ad96fb2228871806a9b3dc4f5f876754a0de3a
checksum: 10/339f5ff5ea7417e2db7f01bd41340f78fd5a8e56a66e723272d21ce7ab4b265dcb45748cdca76eac7137e2b5e6767986812b471e011b4602cf7afbc6da57fb98
languageName: node
linkType: hard
"@formatjs/icu-skeleton-parser@npm:1.8.16":
version: 1.8.16
resolution: "@formatjs/icu-skeleton-parser@npm:1.8.16"
"@formatjs/icu-skeleton-parser@npm:1.8.15":
version: 1.8.15
resolution: "@formatjs/icu-skeleton-parser@npm:1.8.15"
dependencies:
"@formatjs/ecma402-abstract": "npm:2.3.6"
"@formatjs/ecma402-abstract": "npm:2.3.5"
tslib: "npm:^2.8.0"
checksum: 10/428001e5bed81889b276a2356a1393157af91dc59220b765a1a132f6407ac5832b7ac6ae9737674ac38e44035295c0c1c310b2630f383f2b5779ea90bf2849e6
checksum: 10/19825abc1a5eef0288456c08420d06f3da8256fbe81db0b9ead48cacc94954d748c8068988e26d184d38fca2e50c191ecda5a10ff3935529c3134b8d80db0538
languageName: node
linkType: hard
"@formatjs/intl-datetimeformat@npm:6.18.2":
version: 6.18.2
resolution: "@formatjs/intl-datetimeformat@npm:6.18.2"
"@formatjs/intl-datetimeformat@npm:6.18.1":
version: 6.18.1
resolution: "@formatjs/intl-datetimeformat@npm:6.18.1"
dependencies:
"@formatjs/ecma402-abstract": "npm:2.3.6"
"@formatjs/ecma402-abstract": "npm:2.3.5"
"@formatjs/intl-localematcher": "npm:0.6.2"
decimal.js: "npm:^10.4.3"
tslib: "npm:^2.8.0"
checksum: 10/e6f80d0eb2049564502370839697a18858268a0dff8d199b1908137c4a229b1303131c12b8b8a8e8e259a1feba26dbc25b003b150adabea10d1c43f68086efbe
checksum: 10/66938778ecf37472a7e2f1d9349b0ac249fcbd5d684ae5614dea07287876182429980ba2fe3671224f981065baf017ac955f4b3c1f3c924c89bf2ec82dd1acd8
languageName: node
linkType: hard
"@formatjs/intl-displaynames@npm:6.8.13":
version: 6.8.13
resolution: "@formatjs/intl-displaynames@npm:6.8.13"
"@formatjs/intl-displaynames@npm:6.8.12":
version: 6.8.12
resolution: "@formatjs/intl-displaynames@npm:6.8.12"
dependencies:
"@formatjs/ecma402-abstract": "npm:2.3.6"
"@formatjs/ecma402-abstract": "npm:2.3.5"
"@formatjs/intl-localematcher": "npm:0.6.2"
tslib: "npm:^2.8.0"
checksum: 10/adefd25fa42266c7bc33dd3cd50f3681bdce51d18b32a03c98f8ad7587dfd8b9291345e185a4b16f31f4eee10fc799fd1b6361bdfd3a2c9fe127744e1e0f3b07
checksum: 10/7de27ef7e8cde2febce84d5443f00b70062cbd0c3f1039ce8ed1caacb15c4c7a36da16295f26657d59aa4663141a04d7b1083bfd1eea6a4e8ad9dc6093a2c886
languageName: node
linkType: hard
"@formatjs/intl-durationformat@npm:0.7.6":
version: 0.7.6
resolution: "@formatjs/intl-durationformat@npm:0.7.6"
"@formatjs/intl-durationformat@npm:0.7.5":
version: 0.7.5
resolution: "@formatjs/intl-durationformat@npm:0.7.5"
dependencies:
"@formatjs/ecma402-abstract": "npm:2.3.6"
"@formatjs/ecma402-abstract": "npm:2.3.5"
"@formatjs/intl-localematcher": "npm:0.6.2"
tslib: "npm:^2.8.0"
checksum: 10/442236ba85bcd9cb7296c43a708271fa09f110b1ca9d5899066d00812fc2965eaeaec6b5240be421b80daba62860352131088449ba0fcd2061f671cec6240f0b
checksum: 10/4dc81b112fed25dc8da0a16ddeff033b7c763bf9a1cfd7b1b25c1216f7f147eb67a47059a3cf95b4d4ade150c54a813542b84e69298905a4bc22548d74bf8567
languageName: node
linkType: hard
"@formatjs/intl-enumerator@npm:1.8.12":
version: 1.8.12
resolution: "@formatjs/intl-enumerator@npm:1.8.12"
"@formatjs/intl-enumerator@npm:1.8.11":
version: 1.8.11
resolution: "@formatjs/intl-enumerator@npm:1.8.11"
dependencies:
"@formatjs/ecma402-abstract": "npm:2.3.6"
"@formatjs/ecma402-abstract": "npm:2.3.5"
tslib: "npm:^2.8.0"
checksum: 10/8dfd7ca5383b4dca530e1df5118a72f71347f4e0daa6131b82dbf7e860a8b96bec0fed43bfa6f6e650e55fa50fcd3e9e3a5253515131b578539d8eaa84630927
checksum: 10/8646a517cd4160c1ceff888ec8fdf652caa3d375fa41231e829c13bc7be0cd156c9642e339b75e9cfa8ef60ae8140c766f9055318c62f1c1d9345f25cdb7f426
languageName: node
linkType: hard
@@ -1793,26 +1793,26 @@ __metadata:
languageName: node
linkType: hard
"@formatjs/intl-listformat@npm:7.7.13":
version: 7.7.13
resolution: "@formatjs/intl-listformat@npm:7.7.13"
"@formatjs/intl-listformat@npm:7.7.12":
version: 7.7.12
resolution: "@formatjs/intl-listformat@npm:7.7.12"
dependencies:
"@formatjs/ecma402-abstract": "npm:2.3.6"
"@formatjs/ecma402-abstract": "npm:2.3.5"
"@formatjs/intl-localematcher": "npm:0.6.2"
tslib: "npm:^2.8.0"
checksum: 10/476d7cffb64eb996a888b1865aa237f04088de60fa7c65b6d073bca8a3c0f4304040ef12f16eafaf6587895976b773607296951afa7f119447d8f9b2c40daa55
checksum: 10/eee910e83ad28b3b3c24ab6e155720187ae5b5ac936ffa2c8ec6cc8c392c194fd5c79a166290da1c6de8dc1857e3d9d11241029832ec88f7a85cce1821b7f067
languageName: node
linkType: hard
"@formatjs/intl-locale@npm:4.2.13":
version: 4.2.13
resolution: "@formatjs/intl-locale@npm:4.2.13"
"@formatjs/intl-locale@npm:4.2.12":
version: 4.2.12
resolution: "@formatjs/intl-locale@npm:4.2.12"
dependencies:
"@formatjs/ecma402-abstract": "npm:2.3.6"
"@formatjs/intl-enumerator": "npm:1.8.12"
"@formatjs/ecma402-abstract": "npm:2.3.5"
"@formatjs/intl-enumerator": "npm:1.8.11"
"@formatjs/intl-getcanonicallocales": "npm:2.5.6"
tslib: "npm:^2.8.0"
checksum: 10/865615561b4bad8b8d7d93539cae7eb3ed2d46b6156486ef3ccb1b8f9f46f075c7cf2f6e5325aba1cf07150e19280858dff7dfd86d530fbf45fd31ea4fabf8d4
checksum: 10/42111a3002a5a2076b3eb012073230f69c62355dc03647bc17f4d0805f39c7e720e2281b359277d020fef623944a5bcc1ddc3dae9a3af74886d876147680147d
languageName: node
linkType: hard
@@ -1825,38 +1825,38 @@ __metadata:
languageName: node
linkType: hard
"@formatjs/intl-numberformat@npm:8.15.6":
version: 8.15.6
resolution: "@formatjs/intl-numberformat@npm:8.15.6"
"@formatjs/intl-numberformat@npm:8.15.5":
version: 8.15.5
resolution: "@formatjs/intl-numberformat@npm:8.15.5"
dependencies:
"@formatjs/ecma402-abstract": "npm:2.3.6"
"@formatjs/ecma402-abstract": "npm:2.3.5"
"@formatjs/intl-localematcher": "npm:0.6.2"
decimal.js: "npm:^10.4.3"
tslib: "npm:^2.8.0"
checksum: 10/674c5fefa0b14fcd7c58d0c0e592b4887dc2563fa5a11d80a0a82328ac12b2bb82b9a5367fa0a4d80060d61d15a1821bca7085e20cad09aa93b87edb3cff68ea
checksum: 10/3440371a43c54cdd2aa3714cb518ad22e491dd19fbc0c046e712dde078d3f6ed709474376863d64d2bddb506957d1cf265d440f6723b88211044a7b56186e550
languageName: node
linkType: hard
"@formatjs/intl-pluralrules@npm:5.4.6":
version: 5.4.6
resolution: "@formatjs/intl-pluralrules@npm:5.4.6"
"@formatjs/intl-pluralrules@npm:5.4.5":
version: 5.4.5
resolution: "@formatjs/intl-pluralrules@npm:5.4.5"
dependencies:
"@formatjs/ecma402-abstract": "npm:2.3.6"
"@formatjs/ecma402-abstract": "npm:2.3.5"
"@formatjs/intl-localematcher": "npm:0.6.2"
decimal.js: "npm:^10.4.3"
tslib: "npm:^2.8.0"
checksum: 10/88aa244e69ccfdf459899f5fa3c64df345f451ef91ce1188eab35b7e37daa225d22120f64be633f2cd8b826ea705d19831915118f555f2d17611ee842a9a86dc
checksum: 10/00f650891893b743d126dd2bf0d17c1b16a8c9e0e0dd94cd0895e66cb556246116263e9603204e1991924814d0ed3a3503765914aff08181d5e4435dfc5e547c
languageName: node
linkType: hard
"@formatjs/intl-relativetimeformat@npm:11.4.13":
version: 11.4.13
resolution: "@formatjs/intl-relativetimeformat@npm:11.4.13"
"@formatjs/intl-relativetimeformat@npm:11.4.12":
version: 11.4.12
resolution: "@formatjs/intl-relativetimeformat@npm:11.4.12"
dependencies:
"@formatjs/ecma402-abstract": "npm:2.3.6"
"@formatjs/ecma402-abstract": "npm:2.3.5"
"@formatjs/intl-localematcher": "npm:0.6.2"
tslib: "npm:^2.8.0"
checksum: 10/c2058d5f29a13aa216d317d309a6ffd7d203f0fe11696b7bd524e17ac3cc22ae50ad56a26dbf18125e4c115a3e75f01e6cf2134a83df6c7916ae6d3fb21a1e9b
checksum: 10/f6adca59738cb7f58d2ea985558d8fc45e567406de6fb6e67894afe790e2a9fa1a19d34853afc36805fa4a3d638e29c62d6c6ba3ec2a85628c240081dcdfebc1
languageName: node
linkType: hard
@@ -1942,9 +1942,9 @@ __metadata:
languageName: node
linkType: hard
"@home-assistant/webawesome@npm:3.0.0-beta.6.ha.4":
version: 3.0.0-beta.6.ha.4
resolution: "@home-assistant/webawesome@npm:3.0.0-beta.6.ha.4"
"@home-assistant/webawesome@npm:3.0.0-beta.6.ha.1":
version: 3.0.0-beta.6.ha.1
resolution: "@home-assistant/webawesome@npm:3.0.0-beta.6.ha.1"
dependencies:
"@ctrl/tinycolor": "npm:4.1.0"
"@floating-ui/dom": "npm:^1.6.13"
@@ -1955,7 +1955,7 @@ __metadata:
lit: "npm:^3.2.1"
nanoid: "npm:^5.1.5"
qr-creator: "npm:^1.0.0"
checksum: 10/d9072b321126ef458468ed2cf040e0b04cb2aff73336c6e742c0cfb25d9fb674b7672e7c9abcf5bcb0aa0b2fe953c20186f0910f485024c827bfe4cf399f10a4
checksum: 10/c9510e0c65b682c3868b5cbbf046f62aea30e3c5d969128d9032e0d89a8943faa4c9d78c3500446ec04cffeb0ab1939b870b60d454db657faed2aa0ac6026a3e
languageName: node
linkType: hard
@@ -4945,106 +4945,106 @@ __metadata:
languageName: node
linkType: hard
"@typescript-eslint/eslint-plugin@npm:8.46.0":
version: 8.46.0
resolution: "@typescript-eslint/eslint-plugin@npm:8.46.0"
"@typescript-eslint/eslint-plugin@npm:8.45.0":
version: 8.45.0
resolution: "@typescript-eslint/eslint-plugin@npm:8.45.0"
dependencies:
"@eslint-community/regexpp": "npm:^4.10.0"
"@typescript-eslint/scope-manager": "npm:8.46.0"
"@typescript-eslint/type-utils": "npm:8.46.0"
"@typescript-eslint/utils": "npm:8.46.0"
"@typescript-eslint/visitor-keys": "npm:8.46.0"
"@typescript-eslint/scope-manager": "npm:8.45.0"
"@typescript-eslint/type-utils": "npm:8.45.0"
"@typescript-eslint/utils": "npm:8.45.0"
"@typescript-eslint/visitor-keys": "npm:8.45.0"
graphemer: "npm:^1.4.0"
ignore: "npm:^7.0.0"
natural-compare: "npm:^1.4.0"
ts-api-utils: "npm:^2.1.0"
peerDependencies:
"@typescript-eslint/parser": ^8.46.0
"@typescript-eslint/parser": ^8.45.0
eslint: ^8.57.0 || ^9.0.0
typescript: ">=4.8.4 <6.0.0"
checksum: 10/415afd894a5fec9cfe2c327c8b26377045979cc6bdf720aeecb32af335b9e6865c70fa6a355dd16f52a36dc38f50755df3eb1466d5822c53c80465ff824c9881
checksum: 10/6d31dbd3354028b4a010af0ea2614a171b11616e6f20d36d74529b8888681ae8d15e1269122b8a8d5fae117bdd66dac4a38cfc99dc2a0ee33bd22c10075f63e4
languageName: node
linkType: hard
"@typescript-eslint/parser@npm:8.46.0":
version: 8.46.0
resolution: "@typescript-eslint/parser@npm:8.46.0"
"@typescript-eslint/parser@npm:8.45.0":
version: 8.45.0
resolution: "@typescript-eslint/parser@npm:8.45.0"
dependencies:
"@typescript-eslint/scope-manager": "npm:8.46.0"
"@typescript-eslint/types": "npm:8.46.0"
"@typescript-eslint/typescript-estree": "npm:8.46.0"
"@typescript-eslint/visitor-keys": "npm:8.46.0"
"@typescript-eslint/scope-manager": "npm:8.45.0"
"@typescript-eslint/types": "npm:8.45.0"
"@typescript-eslint/typescript-estree": "npm:8.45.0"
"@typescript-eslint/visitor-keys": "npm:8.45.0"
debug: "npm:^4.3.4"
peerDependencies:
eslint: ^8.57.0 || ^9.0.0
typescript: ">=4.8.4 <6.0.0"
checksum: 10/6838fde776fd2b2932b259a20cc89b517e0c94a2cfa363a5e8531095c23fb35d8f803196f6594026d0510bf2a8ec003c67181bb2c407904685a64c97602da65f
checksum: 10/4f8b7c73ae3b53c2adc4e981ac2ca90839a118947635481b45d29423d39b7b73cde2b185ad1084c9e19c3239444bf1be81f40b861176eec4540cb46848731991
languageName: node
linkType: hard
"@typescript-eslint/project-service@npm:8.46.0":
version: 8.46.0
resolution: "@typescript-eslint/project-service@npm:8.46.0"
"@typescript-eslint/project-service@npm:8.45.0":
version: 8.45.0
resolution: "@typescript-eslint/project-service@npm:8.45.0"
dependencies:
"@typescript-eslint/tsconfig-utils": "npm:^8.46.0"
"@typescript-eslint/types": "npm:^8.46.0"
"@typescript-eslint/tsconfig-utils": "npm:^8.45.0"
"@typescript-eslint/types": "npm:^8.45.0"
debug: "npm:^4.3.4"
peerDependencies:
typescript: ">=4.8.4 <6.0.0"
checksum: 10/de11af23ae6b82769b667e8d6e81d47ce039c7817465b99c1e29c8fbcac58af898bebe70368a274cd7b3c7232354134d53ceba0415b8d7e18317037bc4a4a2f7
checksum: 10/919c8260dae79eaec79de84a5ae66fbb09c2ab7aca8c3b7785cb011582a2864c8091e64c84013b05bce812e522fbc4a5ae1c68f86404e078fc84da0fe80247ce
languageName: node
linkType: hard
"@typescript-eslint/scope-manager@npm:8.46.0":
version: 8.46.0
resolution: "@typescript-eslint/scope-manager@npm:8.46.0"
"@typescript-eslint/scope-manager@npm:8.45.0":
version: 8.45.0
resolution: "@typescript-eslint/scope-manager@npm:8.45.0"
dependencies:
"@typescript-eslint/types": "npm:8.46.0"
"@typescript-eslint/visitor-keys": "npm:8.46.0"
checksum: 10/ed85abd08c0edf088b1b11757c658acf593cf84051bddde651304a609d3a6cd9e331149e88653676606a565c3f92c191d4af049f540f6e3bb692a4f38305fd71
"@typescript-eslint/types": "npm:8.45.0"
"@typescript-eslint/visitor-keys": "npm:8.45.0"
checksum: 10/e45d63a0109eca00f6b431d87e73eacfa03b1795905f123e9144bcacb5abb83888167d1849317c6f90ba1f3553196b2eab13e5e7cdd1050d7a84eaadb65ba801
languageName: node
linkType: hard
"@typescript-eslint/tsconfig-utils@npm:8.46.0, @typescript-eslint/tsconfig-utils@npm:^8.46.0":
version: 8.46.0
resolution: "@typescript-eslint/tsconfig-utils@npm:8.46.0"
"@typescript-eslint/tsconfig-utils@npm:8.45.0, @typescript-eslint/tsconfig-utils@npm:^8.45.0":
version: 8.45.0
resolution: "@typescript-eslint/tsconfig-utils@npm:8.45.0"
peerDependencies:
typescript: ">=4.8.4 <6.0.0"
checksum: 10/e78a66a854322423aca835070c5ee9489975c4d80d2f8ffe9cf4d6e3f67a1646ddc05b086f7156599c90ad521670ca572a4315f2b49a5922c33d6e49723558e4
checksum: 10/91696bbc34758749d3647236986bf418bacdc0de0e27c2d39cd7c2408c404c35ed18c47c2a55aea0bb9525cc7eb656586359c4e651144603f3438ce93fe80081
languageName: node
linkType: hard
"@typescript-eslint/type-utils@npm:8.46.0":
version: 8.46.0
resolution: "@typescript-eslint/type-utils@npm:8.46.0"
"@typescript-eslint/type-utils@npm:8.45.0":
version: 8.45.0
resolution: "@typescript-eslint/type-utils@npm:8.45.0"
dependencies:
"@typescript-eslint/types": "npm:8.46.0"
"@typescript-eslint/typescript-estree": "npm:8.46.0"
"@typescript-eslint/utils": "npm:8.46.0"
"@typescript-eslint/types": "npm:8.45.0"
"@typescript-eslint/typescript-estree": "npm:8.45.0"
"@typescript-eslint/utils": "npm:8.45.0"
debug: "npm:^4.3.4"
ts-api-utils: "npm:^2.1.0"
peerDependencies:
eslint: ^8.57.0 || ^9.0.0
typescript: ">=4.8.4 <6.0.0"
checksum: 10/5405b71b91d02ed4eac1028fc156c053953403b9f48393d92340b15a8b05bee5bf1281324c6283ac31a0e03cc1a19baf94768cb3fd70b4621f8c07a4243837db
checksum: 10/81017b3f4780a65a4e4268ab208f1cb8891c1ced9ade23d8eb4575b18aeb99fe59a0d0ddbb4eea9c086567a1b4515d3466e850d4c81ec0d2d88658c43877a6cf
languageName: node
linkType: hard
"@typescript-eslint/types@npm:8.46.0, @typescript-eslint/types@npm:^8.46.0":
version: 8.46.0
resolution: "@typescript-eslint/types@npm:8.46.0"
checksum: 10/0118b0dd592bf4beaf41e8c6be812980dd0adea44d48c90d8b0272777b58d4cfd6326b8bc363efa3c640be476a6bf3632aee2d97052d5e34071e6576b9c28264
"@typescript-eslint/types@npm:8.45.0, @typescript-eslint/types@npm:^8.45.0":
version: 8.45.0
resolution: "@typescript-eslint/types@npm:8.45.0"
checksum: 10/889ded2b9bf376c876611b2a37f89051fdc8ec501314a4b97832caefa4305bffc4b752548941ce2e7f9659a81336d096d439d4c2ed236c99fefdf60b715593dd
languageName: node
linkType: hard
"@typescript-eslint/typescript-estree@npm:8.46.0":
version: 8.46.0
resolution: "@typescript-eslint/typescript-estree@npm:8.46.0"
"@typescript-eslint/typescript-estree@npm:8.45.0":
version: 8.45.0
resolution: "@typescript-eslint/typescript-estree@npm:8.45.0"
dependencies:
"@typescript-eslint/project-service": "npm:8.46.0"
"@typescript-eslint/tsconfig-utils": "npm:8.46.0"
"@typescript-eslint/types": "npm:8.46.0"
"@typescript-eslint/visitor-keys": "npm:8.46.0"
"@typescript-eslint/project-service": "npm:8.45.0"
"@typescript-eslint/tsconfig-utils": "npm:8.45.0"
"@typescript-eslint/types": "npm:8.45.0"
"@typescript-eslint/visitor-keys": "npm:8.45.0"
debug: "npm:^4.3.4"
fast-glob: "npm:^3.3.2"
is-glob: "npm:^4.0.3"
@@ -5053,32 +5053,32 @@ __metadata:
ts-api-utils: "npm:^2.1.0"
peerDependencies:
typescript: ">=4.8.4 <6.0.0"
checksum: 10/61053bd0c35a1fe5c82aef00cb70dbe0878ab28e55550cc1e2d6e7d4a0520c81947eb7505227c85a742a93db905d7e7376aed7d958dc257507b9bdda1daf0b00
checksum: 10/2fb4e63ad6128afbada8eabaabfe7d5a8f1a1f387bb13d7d3209103493ba974b518bf47b17e9a853beba10ec81efd5582ebf628c2eb77a924cf67d4d85466e5e
languageName: node
linkType: hard
"@typescript-eslint/utils@npm:8.46.0":
version: 8.46.0
resolution: "@typescript-eslint/utils@npm:8.46.0"
"@typescript-eslint/utils@npm:8.45.0":
version: 8.45.0
resolution: "@typescript-eslint/utils@npm:8.45.0"
dependencies:
"@eslint-community/eslint-utils": "npm:^4.7.0"
"@typescript-eslint/scope-manager": "npm:8.46.0"
"@typescript-eslint/types": "npm:8.46.0"
"@typescript-eslint/typescript-estree": "npm:8.46.0"
"@typescript-eslint/scope-manager": "npm:8.45.0"
"@typescript-eslint/types": "npm:8.45.0"
"@typescript-eslint/typescript-estree": "npm:8.45.0"
peerDependencies:
eslint: ^8.57.0 || ^9.0.0
typescript: ">=4.8.4 <6.0.0"
checksum: 10/4e0da60de389799afdd36249fd4bcf9e085a4d6f119e241e436a701b45cdf10becc3f1e3cdef29ebbf147a81f40d9a4800d428cb4a66799d3e4aa80b879c9ee2
checksum: 10/9e675a0da4434bd434901f9ba3e1e91d4d7ad542d7fcf8c23534a67f2f9039a569da20929e67a6562e3a263be226ad424cd0c1ac80f7828f4285f7f34e361926
languageName: node
linkType: hard
"@typescript-eslint/visitor-keys@npm:8.46.0":
version: 8.46.0
resolution: "@typescript-eslint/visitor-keys@npm:8.46.0"
"@typescript-eslint/visitor-keys@npm:8.45.0":
version: 8.45.0
resolution: "@typescript-eslint/visitor-keys@npm:8.45.0"
dependencies:
"@typescript-eslint/types": "npm:8.46.0"
"@typescript-eslint/types": "npm:8.45.0"
eslint-visitor-keys: "npm:^4.2.1"
checksum: 10/37e6145b6a5e960c59777d7fc86f722ff696e76c627106ac4577b945ca35744a5f96525d77bde50fe8c328503e9392e21e3adb7cf9899ae0efc054d63f4c3916
checksum: 10/8ae7e19c69c1f67fa8f952c18a09ad42a8cba492545d6e1dca6750e760893773f69ec6b1a96d0997e833c82aecc5ff7fb9546c5abd6c4427d91206670cf8ff37
languageName: node
linkType: hard
@@ -6925,10 +6925,10 @@ __metadata:
languageName: node
linkType: hard
"core-js@npm:3.46.0":
version: 3.46.0
resolution: "core-js@npm:3.46.0"
checksum: 10/82993ca487c6cbbf8bbf00e45eeb9705eb63dc2f9c90d7f35696733efbc3f4b52426e1f8dbef0f0b68ea16caa21e4f44cc5490e08120e1cad4a72b031ed8adaa
"core-js@npm:3.45.1":
version: 3.45.1
resolution: "core-js@npm:3.45.1"
checksum: 10/b9dca79b1af8bb4f0d4af0752ea98d694fe157abaf55513fd4084df32dfd4398f0fc57898b32cdb643c1cecb87b9231c2a2ce535797c80ae328eac6d6078ee61
languageName: node
linkType: hard
@@ -9182,32 +9182,32 @@ __metadata:
"@babel/preset-env": "npm:7.28.3"
"@babel/runtime": "npm:7.28.4"
"@braintree/sanitize-url": "npm:7.1.1"
"@bundle-stats/plugin-webpack-filter": "npm:4.21.5"
"@bundle-stats/plugin-webpack-filter": "npm:4.21.4"
"@codemirror/autocomplete": "npm:6.19.0"
"@codemirror/commands": "npm:6.9.0"
"@codemirror/language": "npm:6.11.3"
"@codemirror/legacy-modes": "npm:6.5.2"
"@codemirror/search": "npm:6.5.11"
"@codemirror/state": "npm:6.5.2"
"@codemirror/view": "npm:6.38.5"
"@codemirror/view": "npm:6.38.4"
"@date-fns/tz": "npm:1.4.1"
"@egjs/hammerjs": "npm:2.0.17"
"@formatjs/intl-datetimeformat": "npm:6.18.2"
"@formatjs/intl-displaynames": "npm:6.8.13"
"@formatjs/intl-durationformat": "npm:0.7.6"
"@formatjs/intl-datetimeformat": "npm:6.18.1"
"@formatjs/intl-displaynames": "npm:6.8.12"
"@formatjs/intl-durationformat": "npm:0.7.5"
"@formatjs/intl-getcanonicallocales": "npm:2.5.6"
"@formatjs/intl-listformat": "npm:7.7.13"
"@formatjs/intl-locale": "npm:4.2.13"
"@formatjs/intl-numberformat": "npm:8.15.6"
"@formatjs/intl-pluralrules": "npm:5.4.6"
"@formatjs/intl-relativetimeformat": "npm:11.4.13"
"@formatjs/intl-listformat": "npm:7.7.12"
"@formatjs/intl-locale": "npm:4.2.12"
"@formatjs/intl-numberformat": "npm:8.15.5"
"@formatjs/intl-pluralrules": "npm:5.4.5"
"@formatjs/intl-relativetimeformat": "npm:11.4.12"
"@fullcalendar/core": "npm:6.1.19"
"@fullcalendar/daygrid": "npm:6.1.19"
"@fullcalendar/interaction": "npm:6.1.19"
"@fullcalendar/list": "npm:6.1.19"
"@fullcalendar/luxon3": "npm:6.1.19"
"@fullcalendar/timegrid": "npm:6.1.19"
"@home-assistant/webawesome": "npm:3.0.0-beta.6.ha.4"
"@home-assistant/webawesome": "npm:3.0.0-beta.6.ha.1"
"@lezer/highlight": "npm:1.2.1"
"@lit-labs/motion": "npm:1.0.9"
"@lit-labs/observers": "npm:2.0.6"
@@ -9283,7 +9283,7 @@ __metadata:
browserslist-useragent-regexp: "npm:4.1.3"
color-name: "npm:2.0.2"
comlink: "npm:4.4.2"
core-js: "npm:3.46.0"
core-js: "npm:3.45.1"
cropperjs: "npm:1.6.2"
culori: "npm:4.0.2"
date-fns: "npm:4.1.0"
@@ -9317,7 +9317,7 @@ __metadata:
html-minifier-terser: "npm:7.2.0"
husky: "npm:9.1.7"
idb-keyval: "npm:6.2.2"
intl-messageformat: "npm:10.7.18"
intl-messageformat: "npm:10.7.17"
js-yaml: "npm:4.1.0"
jsdom: "npm:27.0.0"
jszip: "npm:3.10.1"
@@ -9332,7 +9332,7 @@ __metadata:
lodash.template: "npm:4.5.0"
luxon: "npm:3.7.2"
map-stream: "npm:0.0.7"
marked: "npm:16.4.0"
marked: "npm:16.3.0"
memoize-one: "npm:6.0.0"
node-vibrant: "npm:4.0.3"
object-hash: "npm:3.0.0"
@@ -9354,8 +9354,8 @@ __metadata:
tinykeys: "npm:3.0.0"
ts-lit-plugin: "npm:2.0.2"
typescript: "npm:5.9.3"
typescript-eslint: "npm:8.46.0"
ua-parser-js: "npm:2.0.6"
typescript-eslint: "npm:8.45.0"
ua-parser-js: "npm:2.0.5"
vite-tsconfig-paths: "npm:5.1.4"
vitest: "npm:3.2.4"
vue: "npm:2.7.16"
@@ -9712,15 +9712,15 @@ __metadata:
languageName: node
linkType: hard
"intl-messageformat@npm:10.7.18":
version: 10.7.18
resolution: "intl-messageformat@npm:10.7.18"
"intl-messageformat@npm:10.7.17":
version: 10.7.17
resolution: "intl-messageformat@npm:10.7.17"
dependencies:
"@formatjs/ecma402-abstract": "npm:2.3.6"
"@formatjs/ecma402-abstract": "npm:2.3.5"
"@formatjs/fast-memoize": "npm:2.2.7"
"@formatjs/icu-messageformat-parser": "npm:2.11.4"
"@formatjs/icu-messageformat-parser": "npm:2.11.3"
tslib: "npm:^2.8.0"
checksum: 10/96650d673912763d21bbfa14b50749b992d45f1901092a020e3155961e3c70f4644dd1731c3ecb1207a1eb94d84bedf4c34b1ac8127c29ad6b015b6a2a4045cb
checksum: 10/4f8c30c998bfc14eb64894414b94a8923045ab31d7bbf0978dab6621c644d451ff5c533c04ce8128163b74dd6d59061ec1ef3acb1cbab3302d31cbdb21947620
languageName: node
linkType: hard
@@ -10974,12 +10974,12 @@ __metadata:
languageName: node
linkType: hard
"marked@npm:16.4.0":
version: 16.4.0
resolution: "marked@npm:16.4.0"
"marked@npm:16.3.0":
version: 16.3.0
resolution: "marked@npm:16.3.0"
bin:
marked: bin/marked.js
checksum: 10/5174b345ccc61e2030c2eb8abb3e5cbebeb6697a6d2b609f64ffa2ff6e482f5f1e1fda1912db19c747f43971b1fa54ae53c1ab1ce5d2f58566d6db4bc3016833
checksum: 10/60497834b9acfb3b3994222509d359ecb9a197c885dfeb77e2050a287cd2f4ab19f00d5597172b47f9e0c54d9e1e13d8b2dd73322b7838599e1f16d1d6283f5b
languageName: node
linkType: hard
@@ -14317,18 +14317,18 @@ __metadata:
languageName: node
linkType: hard
"typescript-eslint@npm:8.46.0":
version: 8.46.0
resolution: "typescript-eslint@npm:8.46.0"
"typescript-eslint@npm:8.45.0":
version: 8.45.0
resolution: "typescript-eslint@npm:8.45.0"
dependencies:
"@typescript-eslint/eslint-plugin": "npm:8.46.0"
"@typescript-eslint/parser": "npm:8.46.0"
"@typescript-eslint/typescript-estree": "npm:8.46.0"
"@typescript-eslint/utils": "npm:8.46.0"
"@typescript-eslint/eslint-plugin": "npm:8.45.0"
"@typescript-eslint/parser": "npm:8.45.0"
"@typescript-eslint/typescript-estree": "npm:8.45.0"
"@typescript-eslint/utils": "npm:8.45.0"
peerDependencies:
eslint: ^8.57.0 || ^9.0.0
typescript: ">=4.8.4 <6.0.0"
checksum: 10/fd74aab1d21d661299a64107236b5c3515d6d955eb1764b56c5c9505b8cef5f2600e8290d251f1379138333573df94a1fe1fd7fef23952b5ab9f12ff2b774f92
checksum: 10/1c17ebb5bcbea418c8f372d71b5c2df8c9b8c6897d1bda8196ea17bac8fabeffe1814bc4f7a28d40f404fb811c97fcda0d69c4375b4f010d9bf44d19d8401706
languageName: node
linkType: hard
@@ -14379,16 +14379,17 @@ __metadata:
languageName: node
linkType: hard
"ua-parser-js@npm:2.0.6":
version: 2.0.6
resolution: "ua-parser-js@npm:2.0.6"
"ua-parser-js@npm:2.0.5":
version: 2.0.5
resolution: "ua-parser-js@npm:2.0.5"
dependencies:
detect-europe-js: "npm:^0.1.2"
is-standalone-pwa: "npm:^0.1.1"
ua-is-frozen: "npm:^0.1.2"
undici: "npm:^7.12.0"
bin:
ua-parser-js: script/cli.js
checksum: 10/b0049d3b272979049c7df6af2ec2ce032e4351316b10c33699f6e3f0bec701336f67530cc3ccb363c554b1bb5047b75d2f46575699afacd6e541762ca3861f4d
checksum: 10/e946cb1c85bfcd0f2d30c7d5e1b605e340bb458432e7e87fc4aa1b2f90117e4220521d4e0bc7dd8c2a5cadd0935dedb5ac434b70efdc0007221288c1d98b3cd5
languageName: node
linkType: hard
@@ -14451,6 +14452,13 @@ __metadata:
languageName: node
linkType: hard
"undici@npm:^7.12.0":
version: 7.16.0
resolution: "undici@npm:7.16.0"
checksum: 10/2bb71672b23d3dc0f56f1b7fb6c936e4487a350db46eaafc03f2f9107f99cdf8e51ecdd32e589e2381ef47a64b6369cfb31f328b2c3ea663023aa47bc5258b9e
languageName: node
linkType: hard
"unicode-canonical-property-names-ecmascript@npm:^2.0.0":
version: 2.0.1
resolution: "unicode-canonical-property-names-ecmascript@npm:2.0.1"