Merge branch 'dev'

This commit is contained in:
Bram Kragten 2024-06-10 19:50:24 +02:00
commit 4a8bb5034d
9 changed files with 786 additions and 765 deletions

View File

@ -25,15 +25,15 @@
"license": "Apache-2.0", "license": "Apache-2.0",
"type": "module", "type": "module",
"dependencies": { "dependencies": {
"@babel/runtime": "7.24.6", "@babel/runtime": "7.24.7",
"@braintree/sanitize-url": "7.0.2", "@braintree/sanitize-url": "7.0.2",
"@codemirror/autocomplete": "6.16.2", "@codemirror/autocomplete": "6.16.2",
"@codemirror/commands": "6.5.0", "@codemirror/commands": "6.6.0",
"@codemirror/language": "6.10.1", "@codemirror/language": "6.10.2",
"@codemirror/legacy-modes": "6.4.0", "@codemirror/legacy-modes": "6.4.0",
"@codemirror/search": "6.5.6", "@codemirror/search": "6.5.6",
"@codemirror/state": "6.4.1", "@codemirror/state": "6.4.1",
"@codemirror/view": "6.26.3", "@codemirror/view": "6.27.0",
"@egjs/hammerjs": "2.0.17", "@egjs/hammerjs": "2.0.17",
"@formatjs/intl-datetimeformat": "6.12.5", "@formatjs/intl-datetimeformat": "6.12.5",
"@formatjs/intl-displaynames": "6.6.8", "@formatjs/intl-displaynames": "6.6.8",
@ -43,17 +43,17 @@
"@formatjs/intl-numberformat": "8.10.3", "@formatjs/intl-numberformat": "8.10.3",
"@formatjs/intl-pluralrules": "5.2.14", "@formatjs/intl-pluralrules": "5.2.14",
"@formatjs/intl-relativetimeformat": "11.2.14", "@formatjs/intl-relativetimeformat": "11.2.14",
"@fullcalendar/core": "6.1.13", "@fullcalendar/core": "6.1.11",
"@fullcalendar/daygrid": "6.1.13", "@fullcalendar/daygrid": "6.1.11",
"@fullcalendar/interaction": "6.1.13", "@fullcalendar/interaction": "6.1.11",
"@fullcalendar/list": "6.1.13", "@fullcalendar/list": "6.1.11",
"@fullcalendar/luxon3": "6.1.13", "@fullcalendar/luxon3": "6.1.11",
"@fullcalendar/timegrid": "6.1.13", "@fullcalendar/timegrid": "6.1.11",
"@lezer/highlight": "1.2.0", "@lezer/highlight": "1.2.0",
"@lit-labs/context": "0.4.1", "@lit-labs/context": "0.4.1",
"@lit-labs/motion": "1.0.7", "@lit-labs/motion": "1.0.7",
"@lit-labs/observers": "2.0.2", "@lit-labs/observers": "2.0.2",
"@lit-labs/virtualizer": "2.0.12", "@lit-labs/virtualizer": "2.0.13",
"@lrnwebcomponents/simple-tooltip": "8.0.2", "@lrnwebcomponents/simple-tooltip": "8.0.2",
"@material/chips": "=14.0.0-canary.53b3cad2f.0", "@material/chips": "=14.0.0-canary.53b3cad2f.0",
"@material/data-table": "=14.0.0-canary.53b3cad2f.0", "@material/data-table": "=14.0.0-canary.53b3cad2f.0",
@ -149,12 +149,12 @@
"xss": "1.0.15" "xss": "1.0.15"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "7.24.6", "@babel/core": "7.24.7",
"@babel/helper-define-polyfill-provider": "0.6.2", "@babel/helper-define-polyfill-provider": "0.6.2",
"@babel/plugin-proposal-decorators": "7.24.6", "@babel/plugin-proposal-decorators": "7.24.7",
"@babel/plugin-transform-runtime": "7.24.6", "@babel/plugin-transform-runtime": "7.24.7",
"@babel/preset-env": "7.24.6", "@babel/preset-env": "7.24.7",
"@babel/preset-typescript": "7.24.6", "@babel/preset-typescript": "7.24.7",
"@bundle-stats/plugin-webpack-filter": "4.13.2", "@bundle-stats/plugin-webpack-filter": "4.13.2",
"@koa/cors": "5.0.0", "@koa/cors": "5.0.0",
"@lokalise/node-api": "12.5.0", "@lokalise/node-api": "12.5.0",
@ -166,7 +166,7 @@
"@rollup/plugin-commonjs": "25.0.8", "@rollup/plugin-commonjs": "25.0.8",
"@rollup/plugin-json": "6.1.0", "@rollup/plugin-json": "6.1.0",
"@rollup/plugin-node-resolve": "15.2.3", "@rollup/plugin-node-resolve": "15.2.3",
"@rollup/plugin-replace": "5.0.5", "@rollup/plugin-replace": "5.0.7",
"@types/babel__plugin-transform-runtime": "7.9.5", "@types/babel__plugin-transform-runtime": "7.9.5",
"@types/chromecast-caf-receiver": "6.0.14", "@types/chromecast-caf-receiver": "6.0.14",
"@types/chromecast-caf-sender": "1.0.10", "@types/chromecast-caf-sender": "1.0.10",
@ -185,8 +185,8 @@
"@types/tar": "6.1.13", "@types/tar": "6.1.13",
"@types/ua-parser-js": "0.7.39", "@types/ua-parser-js": "0.7.39",
"@types/webspeechapi": "0.0.29", "@types/webspeechapi": "0.0.29",
"@typescript-eslint/eslint-plugin": "7.11.0", "@typescript-eslint/eslint-plugin": "7.12.0",
"@typescript-eslint/parser": "7.11.0", "@typescript-eslint/parser": "7.12.0",
"@web/dev-server": "0.1.38", "@web/dev-server": "0.1.38",
"@web/dev-server-rollup": "0.4.1", "@web/dev-server-rollup": "0.4.1",
"babel-loader": "9.1.3", "babel-loader": "9.1.3",
@ -224,7 +224,7 @@
"object-hash": "3.0.0", "object-hash": "3.0.0",
"open": "10.1.0", "open": "10.1.0",
"pinst": "3.0.0", "pinst": "3.0.0",
"prettier": "3.3.0", "prettier": "3.3.1",
"rollup": "2.79.1", "rollup": "2.79.1",
"rollup-plugin-string": "3.0.0", "rollup-plugin-string": "3.0.0",
"rollup-plugin-terser": "7.0.2", "rollup-plugin-terser": "7.0.2",
@ -253,6 +253,7 @@
"lit": "2.8.0", "lit": "2.8.0",
"clean-css": "5.3.3", "clean-css": "5.3.3",
"@lit/reactive-element": "1.6.3", "@lit/reactive-element": "1.6.3",
"@fullcalendar/daygrid": "6.1.11",
"sortablejs@1.15.2": "patch:sortablejs@npm%3A1.15.2#~/.yarn/patches/sortablejs-npm-1.15.2-73347ae85a.patch", "sortablejs@1.15.2": "patch:sortablejs@npm%3A1.15.2#~/.yarn/patches/sortablejs-npm-1.15.2-73347ae85a.patch",
"leaflet-draw@1.0.4": "patch:leaflet-draw@npm%3A1.0.4#./.yarn/patches/leaflet-draw-npm-1.0.4-0ca0ebcf65.patch" "leaflet-draw@1.0.4": "patch:leaflet-draw@npm%3A1.0.4#./.yarn/patches/leaflet-draw-npm-1.0.4-0ca0ebcf65.patch"
}, },

View File

@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project] [project]
name = "home-assistant-frontend" name = "home-assistant-frontend"
version = "20240605.0" version = "20240610.0"
license = {text = "Apache-2.0"} license = {text = "Apache-2.0"}
description = "The Home Assistant frontend" description = "The Home Assistant frontend"
readme = "README.md" readme = "README.md"

View File

@ -64,6 +64,12 @@ const SELECTOR_SCHEMAS = {
selector: { boolean: {} }, selector: { boolean: {} },
}, },
] as const, ] as const,
floor: [
{
name: "multiple",
selector: { boolean: {} },
},
] as const,
icon: [] as const, icon: [] as const,
location: [] as const, location: [] as const,
media: [] as const, media: [] as const,

View File

@ -901,7 +901,7 @@ const tryDescribeCondition = (
) )
: undefined; : undefined;
if (condition.above && condition.below) { if (condition.above !== undefined && condition.below !== undefined) {
return hass.localize( return hass.localize(
`${conditionsTranslationBaseKey}.numeric_state.description.above-below`, `${conditionsTranslationBaseKey}.numeric_state.description.above-below`,
{ {
@ -912,7 +912,7 @@ const tryDescribeCondition = (
} }
); );
} }
if (condition.above) { if (condition.above !== undefined) {
return hass.localize( return hass.localize(
`${conditionsTranslationBaseKey}.numeric_state.description.above`, `${conditionsTranslationBaseKey}.numeric_state.description.above`,
{ {
@ -922,7 +922,7 @@ const tryDescribeCondition = (
} }
); );
} }
if (condition.below) { if (condition.below !== undefined) {
return hass.localize( return hass.localize(
`${conditionsTranslationBaseKey}.numeric_state.description.below`, `${conditionsTranslationBaseKey}.numeric_state.description.below`,
{ {

View File

@ -596,6 +596,9 @@ export default class HaAutomationTriggerRow extends LitElement {
private _showTriggeredInfo() { private _showTriggeredInfo() {
showAlertDialog(this, { showAlertDialog(this, {
title: this.hass.localize(
"ui.panel.config.automation.editor.triggers.triggering_event_detail"
),
text: html` text: html`
<ha-yaml-editor <ha-yaml-editor
readOnly readOnly

View File

@ -26,6 +26,7 @@ import { repeat } from "lit/directives/repeat";
import memoizeOne from "memoize-one"; import memoizeOne from "memoize-one";
import { applyThemesOnElement } from "../../../common/dom/apply_themes_on_element"; import { applyThemesOnElement } from "../../../common/dom/apply_themes_on_element";
import { supportsFeature } from "../../../common/entity/supports-feature"; import { supportsFeature } from "../../../common/entity/supports-feature";
import { stopPropagation } from "../../../common/dom/stop_propagation";
import "../../../components/ha-card"; import "../../../components/ha-card";
import "../../../components/ha-check-list-item"; import "../../../components/ha-check-list-item";
import "../../../components/ha-checkbox"; import "../../../components/ha-checkbox";
@ -243,7 +244,7 @@ export class HuiTodoListCard extends LitElement implements LovelaceCard {
${this.todoListSupportsFeature( ${this.todoListSupportsFeature(
TodoListEntityFeature.MOVE_TODO_ITEM TodoListEntityFeature.MOVE_TODO_ITEM
) )
? html`<ha-button-menu> ? html`<ha-button-menu @closed=${stopPropagation}>
<ha-icon-button <ha-icon-button
slot="trigger" slot="trigger"
.path=${mdiDotsVertical} .path=${mdiDotsVertical}
@ -287,7 +288,7 @@ export class HuiTodoListCard extends LitElement implements LovelaceCard {
${this.todoListSupportsFeature( ${this.todoListSupportsFeature(
TodoListEntityFeature.DELETE_TODO_ITEM TodoListEntityFeature.DELETE_TODO_ITEM
) )
? html`<ha-button-menu> ? html`<ha-button-menu @closed=${stopPropagation}>
<ha-icon-button <ha-icon-button
slot="trigger" slot="trigger"
.path=${mdiDotsVertical} .path=${mdiDotsVertical}

View File

@ -205,7 +205,7 @@ export class HuiDialogEditSection
: nothing} : nothing}
</ha-dialog-header> </ha-dialog-header>
${content} ${content}
<ha-button slot="secondaryAction"> <ha-button slot="secondaryAction" @click=${this._cancel}>
${this.hass!.localize("ui.common.cancel")} ${this.hass!.localize("ui.common.cancel")}
</ha-button> </ha-button>

View File

@ -401,6 +401,7 @@
"device": "Device", "device": "Device",
"duration": "Duration", "duration": "Duration",
"entity": "Entity", "entity": "Entity",
"floor": "[%key:ui::components::floor-picker::floor%]",
"icon": "Icon", "icon": "Icon",
"location": "Location", "location": "Location",
"media": "Media", "media": "Media",
@ -2832,6 +2833,7 @@
"unsupported_platform": "No visual editor support for platform: {platform}", "unsupported_platform": "No visual editor support for platform: {platform}",
"type_select": "Trigger type", "type_select": "Trigger type",
"unknown_trigger": "[%key:ui::panel::config::devices::automation::triggers::unknown_trigger%]", "unknown_trigger": "[%key:ui::panel::config::devices::automation::triggers::unknown_trigger%]",
"triggering_event_detail": "Triggering event detail",
"groups": { "groups": {
"entity": { "entity": {
"label": "Entity", "label": "Entity",

1484
yarn.lock

File diff suppressed because it is too large Load Diff