mirror of
				https://github.com/home-assistant/frontend.git
				synced 2025-10-25 03:29:41 +00:00 
			
		
		
		
	Compare commits
	
		
			1 Commits
		
	
	
		
			20250827.0
			...
			add-import
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|   | f995d8d525 | 
| @@ -69,7 +69,7 @@ | |||||||
|     "import/extensions": [ |     "import/extensions": [ | ||||||
|       2, |       2, | ||||||
|       "ignorePackages", |       "ignorePackages", | ||||||
|       { "ts": "never", "js": "never" } |       { "ts": "ignorePackages", "js": "ignorePackages" } | ||||||
|     ], |     ], | ||||||
|     "no-restricted-syntax": ["error", "LabeledStatement", "WithStatement"], |     "no-restricted-syntax": ["error", "LabeledStatement", "WithStatement"], | ||||||
|     "object-curly-newline": 0, |     "object-curly-newline": 0, | ||||||
|   | |||||||
| @@ -24,6 +24,7 @@ const options = ({ latestBuild }) => ({ | |||||||
|   ], |   ], | ||||||
| }); | }); | ||||||
|  |  | ||||||
|  | module.exports.options = options; | ||||||
| module.exports.babelLoaderConfig = ({ latestBuild }) => { | module.exports.babelLoaderConfig = ({ latestBuild }) => { | ||||||
|   if (latestBuild === undefined) { |   if (latestBuild === undefined) { | ||||||
|     throw Error("latestBuild not defined for babel loader config"); |     throw Error("latestBuild not defined for babel loader config"); | ||||||
|   | |||||||
| @@ -1,5 +1,5 @@ | |||||||
| import "@polymer/paper-item/paper-item"; | import "@polymer/paper-item/paper-item.js"; | ||||||
| import "@polymer/paper-item/paper-item-body"; | import "@polymer/paper-item/paper-item-body.js"; | ||||||
| import { html, LitElement, property } from "lit-element"; | import { html, LitElement, property } from "lit-element"; | ||||||
| import { fireEvent } from "../common/dom/fire_event"; | import { fireEvent } from "../common/dom/fire_event"; | ||||||
| import "../components/ha-icon-next"; | import "../components/ha-icon-next"; | ||||||
|   | |||||||
| @@ -1,7 +1,7 @@ | |||||||
| import "@polymer/paper-card/paper-card"; | import "@polymer/paper-card"; | ||||||
| import { html } from "@polymer/polymer/lib/utils/html-tag"; | import { html } from "@polymer/polymer/lib/utils/html-tag.js"; | ||||||
| /* eslint-plugin-disable lit */ | /* eslint-plugin-disable lit */ | ||||||
| import { PolymerElement } from "@polymer/polymer/polymer-element"; | import { PolymerElement } from "@polymer/polymer/polymer-element.js"; | ||||||
| import { computeStateName } from "../common/entity/compute_state_name"; | import { computeStateName } from "../common/entity/compute_state_name"; | ||||||
| import "../components/state-history-charts"; | import "../components/state-history-charts"; | ||||||
| import "../data/ha-state-history-data"; | import "../data/ha-state-history-data"; | ||||||
|   | |||||||
| @@ -1,5 +1,5 @@ | |||||||
| import "../../components/ha-icon-button"; | import "../../components/ha-icon-button"; | ||||||
| import "@polymer/paper-input/paper-input"; | import "@polymer/paper-input/paper-input.js"; | ||||||
| import { | import { | ||||||
|   css, |   css, | ||||||
|   CSSResult, |   CSSResult, | ||||||
| @@ -8,7 +8,7 @@ import { | |||||||
|   property, |   property, | ||||||
| } from "lit-element"; | } from "lit-element"; | ||||||
| import { html, TemplateResult } from "lit-html"; | import { html, TemplateResult } from "lit-html"; | ||||||
| import { classMap } from "lit-html/directives/class-map"; | import { classMap } from "lit-html/directives/class-map.js"; | ||||||
| import "../../components/ha-icon"; | import "../../components/ha-icon"; | ||||||
| import { fireEvent } from "../dom/fire_event"; | import { fireEvent } from "../dom/fire_event"; | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| import { html } from "@polymer/polymer/lib/utils/html-tag"; | import { html } from "@polymer/polymer/lib/utils/html-tag.js"; | ||||||
| /* eslint-plugin-disable lit */ | /* eslint-plugin-disable lit */ | ||||||
| import { PolymerElement } from "@polymer/polymer/polymer-element"; | import { PolymerElement } from "@polymer/polymer/polymer-element.js"; | ||||||
| import { showConfirmationDialog } from "../../dialogs/generic/show-dialog-box"; | import { showConfirmationDialog } from "../../dialogs/generic/show-dialog-box"; | ||||||
| import { EventsMixin } from "../../mixins/events-mixin"; | import { EventsMixin } from "../../mixins/events-mixin"; | ||||||
| import "./ha-progress-button"; | import "./ha-progress-button"; | ||||||
|   | |||||||
| @@ -1,8 +1,8 @@ | |||||||
| import "@material/mwc-button"; | import "@material/mwc-button"; | ||||||
| import "@polymer/paper-spinner/paper-spinner"; | import "@polymer/paper-spinner/paper-spinner.js"; | ||||||
| import { html } from "@polymer/polymer/lib/utils/html-tag"; | import { html } from "@polymer/polymer/lib/utils/html-tag.js"; | ||||||
| /* eslint-plugin-disable lit */ | /* eslint-plugin-disable lit */ | ||||||
| import { PolymerElement } from "@polymer/polymer/polymer-element"; | import { PolymerElement } from "@polymer/polymer/polymer-element.js"; | ||||||
|  |  | ||||||
| class HaProgressButton extends PolymerElement { | class HaProgressButton extends PolymerElement { | ||||||
|   static get template() { |   static get template() { | ||||||
|   | |||||||
| @@ -10,9 +10,9 @@ import { | |||||||
|   query, |   query, | ||||||
|   TemplateResult, |   TemplateResult, | ||||||
| } from "lit-element"; | } from "lit-element"; | ||||||
| import { classMap } from "lit-html/directives/class-map"; | import { classMap } from "lit-html/directives/class-map.js"; | ||||||
| import { ifDefined } from "lit-html/directives/if-defined"; | import { ifDefined } from "lit-html/directives/if-defined.js"; | ||||||
| import { styleMap } from "lit-html/directives/style-map"; | import { styleMap } from "lit-html/directives/style-map.js"; | ||||||
| import { scroll } from "lit-virtualizer"; | import { scroll } from "lit-virtualizer"; | ||||||
| // @ts-ignore | // @ts-ignore | ||||||
| // eslint-disable-next-line import/no-webpack-loader-syntax | // eslint-disable-next-line import/no-webpack-loader-syntax | ||||||
|   | |||||||
| @@ -1,10 +1,10 @@ | |||||||
| import "@material/mwc-button/mwc-button"; | import "@material/mwc-button"; | ||||||
| import "../ha-icon-button"; | import "../ha-icon-button"; | ||||||
| import "@polymer/paper-input/paper-input"; | import "@polymer/paper-input/paper-input.js"; | ||||||
| import "@polymer/paper-item/paper-item"; | import "@polymer/paper-item/paper-item.js"; | ||||||
| import "@polymer/paper-item/paper-item-body"; | import "@polymer/paper-item/paper-item-body.js"; | ||||||
| import "@polymer/paper-listbox/paper-listbox"; | import "@polymer/paper-listbox"; | ||||||
| import "@vaadin/vaadin-combo-box/theme/material/vaadin-combo-box-light"; | import "@vaadin/vaadin-combo-box/theme/material/vaadin-combo-box-light.js"; | ||||||
| import { UnsubscribeFunc } from "home-assistant-js-websocket"; | import { UnsubscribeFunc } from "home-assistant-js-websocket"; | ||||||
| import { | import { | ||||||
|   css, |   css, | ||||||
|   | |||||||
| @@ -1,7 +1,7 @@ | |||||||
| import "@polymer/paper-input/paper-input"; | import "@polymer/paper-input/paper-input.js"; | ||||||
| import "@polymer/paper-item/paper-item"; | import "@polymer/paper-item/paper-item.js"; | ||||||
| import "@polymer/paper-item/paper-item-body"; | import "@polymer/paper-item/paper-item-body.js"; | ||||||
| import "@polymer/paper-listbox/paper-listbox"; | import "@polymer/paper-listbox"; | ||||||
| import { | import { | ||||||
|   css, |   css, | ||||||
|   CSSResult, |   CSSResult, | ||||||
|   | |||||||
| @@ -1,9 +1,9 @@ | |||||||
| import "../ha-icon-button"; | import "../ha-icon-button"; | ||||||
| import "@polymer/paper-input/paper-input"; | import "@polymer/paper-input/paper-input.js"; | ||||||
| import "@polymer/paper-item/paper-item"; | import "@polymer/paper-item/paper-item.js"; | ||||||
| import "@polymer/paper-item/paper-item-body"; | import "@polymer/paper-item/paper-item-body.js"; | ||||||
| import "@polymer/paper-listbox/paper-listbox"; | import "@polymer/paper-listbox"; | ||||||
| import "@vaadin/vaadin-combo-box/theme/material/vaadin-combo-box-light"; | import "@vaadin/vaadin-combo-box/theme/material/vaadin-combo-box-light.js"; | ||||||
| import { UnsubscribeFunc } from "home-assistant-js-websocket"; | import { UnsubscribeFunc } from "home-assistant-js-websocket"; | ||||||
| import { | import { | ||||||
|   css, |   css, | ||||||
|   | |||||||
| @@ -11,8 +11,8 @@ found at http://polymer.github.io/PATENTS.txt | |||||||
| /* | /* | ||||||
|   Fixes issue with not using shadow dom properly in iron-overlay-behavior/icon-focusables-helper.js |   Fixes issue with not using shadow dom properly in iron-overlay-behavior/icon-focusables-helper.js | ||||||
| */ | */ | ||||||
| import { IronFocusablesHelper } from "@polymer/iron-overlay-behavior/iron-focusables-helper"; | import { IronFocusablesHelper } from "@polymer/iron-overlay-behavior/iron-focusables-helper.js"; | ||||||
| import { dom } from "@polymer/polymer/lib/legacy/polymer.dom"; | import { dom } from "@polymer/polymer/lib/legacy/polymer.dom.js"; | ||||||
|  |  | ||||||
| export const HaIronFocusablesHelper = { | export const HaIronFocusablesHelper = { | ||||||
|   /** |   /** | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| import "@polymer/paper-dialog/paper-dialog"; | import "@polymer/paper-dialog"; | ||||||
| import type { PaperDialogElement } from "@polymer/paper-dialog/paper-dialog"; | import type { PaperDialogElement } from "@polymer/paper-dialog"; | ||||||
| import { mixinBehaviors } from "@polymer/polymer/lib/legacy/class"; | import { mixinBehaviors } from "@polymer/polymer/lib/legacy/class.js"; | ||||||
| import type { Constructor } from "../../types"; | import type { Constructor } from "../../types"; | ||||||
| import { HaIronFocusablesHelper } from "./ha-iron-focusables-helper"; | import { HaIronFocusablesHelper } from "./ha-iron-focusables-helper"; | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,11 +1,11 @@ | |||||||
| /* eslint-plugin-disable lit */ | /* eslint-plugin-disable lit */ | ||||||
| import { IronResizableBehavior } from "@polymer/iron-resizable-behavior/iron-resizable-behavior"; | import { IronResizableBehavior } from "@polymer/iron-resizable-behavior"; | ||||||
| import "../ha-icon-button"; | import "../ha-icon-button"; | ||||||
| import { mixinBehaviors } from "@polymer/polymer/lib/legacy/class"; | import { mixinBehaviors } from "@polymer/polymer/lib/legacy/class.js"; | ||||||
| import { timeOut } from "@polymer/polymer/lib/utils/async"; | import { timeOut } from "@polymer/polymer/lib/utils/async.js"; | ||||||
| import { Debouncer } from "@polymer/polymer/lib/utils/debounce"; | import { Debouncer } from "@polymer/polymer/lib/utils/debounce.js"; | ||||||
| import { html } from "@polymer/polymer/lib/utils/html-tag"; | import { html } from "@polymer/polymer/lib/utils/html-tag.js"; | ||||||
| import { PolymerElement } from "@polymer/polymer/polymer-element"; | import { PolymerElement } from "@polymer/polymer/polymer-element.js"; | ||||||
| import { formatTime } from "../../common/datetime/format_time"; | import { formatTime } from "../../common/datetime/format_time"; | ||||||
|  |  | ||||||
| // eslint-disable-next-line no-unused-vars | // eslint-disable-next-line no-unused-vars | ||||||
|   | |||||||
| @@ -1,8 +1,8 @@ | |||||||
| import "../ha-icon-button"; | import "../ha-icon-button"; | ||||||
| import "@polymer/paper-input/paper-input"; | import "@polymer/paper-input/paper-input.js"; | ||||||
| import "@polymer/paper-item/paper-icon-item"; | import "@polymer/paper-item/paper-icon-item.js"; | ||||||
| import "@polymer/paper-item/paper-item-body"; | import "@polymer/paper-item/paper-item-body.js"; | ||||||
| import "@vaadin/vaadin-combo-box/theme/material/vaadin-combo-box-light"; | import "@vaadin/vaadin-combo-box/theme/material/vaadin-combo-box-light.js"; | ||||||
| import { HassEntity } from "home-assistant-js-websocket"; | import { HassEntity } from "home-assistant-js-websocket"; | ||||||
| import { | import { | ||||||
|   css, |   css, | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| import { html } from "@polymer/polymer/lib/utils/html-tag"; | import { html } from "@polymer/polymer/lib/utils/html-tag.js"; | ||||||
| /* eslint-plugin-disable lit */ | /* eslint-plugin-disable lit */ | ||||||
| import { PolymerElement } from "@polymer/polymer/polymer-element"; | import { PolymerElement } from "@polymer/polymer/polymer-element.js"; | ||||||
| import { stateIcon } from "../../common/entity/state_icon"; | import { stateIcon } from "../../common/entity/state_icon"; | ||||||
| import "../ha-icon"; | import "../ha-icon"; | ||||||
|  |  | ||||||
|   | |||||||
| @@ -9,7 +9,7 @@ import { | |||||||
|   PropertyValues, |   PropertyValues, | ||||||
|   TemplateResult, |   TemplateResult, | ||||||
| } from "lit-element"; | } from "lit-element"; | ||||||
| import { classMap } from "lit-html/directives/class-map"; | import { classMap } from "lit-html/directives/class-map.js"; | ||||||
| import secondsToDuration from "../../common/datetime/seconds_to_duration"; | import secondsToDuration from "../../common/datetime/seconds_to_duration"; | ||||||
| import { computeStateDisplay } from "../../common/entity/compute_state_display"; | import { computeStateDisplay } from "../../common/entity/compute_state_display"; | ||||||
| import { computeStateDomain } from "../../common/entity/compute_state_domain"; | import { computeStateDomain } from "../../common/entity/compute_state_domain"; | ||||||
|   | |||||||
| @@ -9,7 +9,7 @@ import { | |||||||
|   query, |   query, | ||||||
|   TemplateResult, |   TemplateResult, | ||||||
| } from "lit-element"; | } from "lit-element"; | ||||||
| import { ifDefined } from "lit-html/directives/if-defined"; | import { ifDefined } from "lit-html/directives/if-defined.js"; | ||||||
| import { computeActiveState } from "../../common/entity/compute_active_state"; | import { computeActiveState } from "../../common/entity/compute_active_state"; | ||||||
| import { computeStateDomain } from "../../common/entity/compute_state_domain"; | import { computeStateDomain } from "../../common/entity/compute_state_domain"; | ||||||
| import { stateIcon } from "../../common/entity/state_icon"; | import { stateIcon } from "../../common/entity/state_icon"; | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| import { html } from "@polymer/polymer/lib/utils/html-tag"; | import { html } from "@polymer/polymer/lib/utils/html-tag.js"; | ||||||
| /* eslint-plugin-disable lit */ | /* eslint-plugin-disable lit */ | ||||||
| import { PolymerElement } from "@polymer/polymer/polymer-element"; | import { PolymerElement } from "@polymer/polymer/polymer-element.js"; | ||||||
| import { computeStateName } from "../../common/entity/compute_state_name"; | import { computeStateName } from "../../common/entity/compute_state_name"; | ||||||
| import { computeRTL } from "../../common/util/compute_rtl"; | import { computeRTL } from "../../common/util/compute_rtl"; | ||||||
| import "../ha-relative-time"; | import "../ha-relative-time"; | ||||||
|   | |||||||
| @@ -1,9 +1,9 @@ | |||||||
| import "./ha-icon-button"; | import "./ha-icon-button"; | ||||||
| import "@polymer/paper-input/paper-input"; | import "@polymer/paper-input/paper-input.js"; | ||||||
| import "@polymer/paper-item/paper-item"; | import "@polymer/paper-item/paper-item.js"; | ||||||
| import "@polymer/paper-item/paper-item-body"; | import "@polymer/paper-item/paper-item-body.js"; | ||||||
| import "@polymer/paper-listbox/paper-listbox"; | import "@polymer/paper-listbox"; | ||||||
| import "@vaadin/vaadin-combo-box/theme/material/vaadin-combo-box-light"; | import "@vaadin/vaadin-combo-box/theme/material/vaadin-combo-box-light.js"; | ||||||
| import { UnsubscribeFunc } from "home-assistant-js-websocket"; | import { UnsubscribeFunc } from "home-assistant-js-websocket"; | ||||||
| import { | import { | ||||||
|   css, |   css, | ||||||
|   | |||||||
| @@ -8,7 +8,7 @@ import { | |||||||
|   property, |   property, | ||||||
|   TemplateResult, |   TemplateResult, | ||||||
| } from "lit-element"; | } from "lit-element"; | ||||||
| import { until } from "lit-html/directives/until"; | import { until } from "lit-html/directives/until.js"; | ||||||
| import hassAttributeUtil from "../util/hass-attributes-util"; | import hassAttributeUtil from "../util/hass-attributes-util"; | ||||||
|  |  | ||||||
| let jsYamlPromise: Promise<typeof import("js-yaml")>; | let jsYamlPromise: Promise<typeof import("js-yaml")>; | ||||||
|   | |||||||
| @@ -9,7 +9,7 @@ import { | |||||||
| } from "lit-element"; | } from "lit-element"; | ||||||
| import "@material/mwc-button"; | import "@material/mwc-button"; | ||||||
| import "@material/mwc-menu"; | import "@material/mwc-menu"; | ||||||
| import "@material/mwc-list/mwc-list-item"; | import "@material/mwc-list/mwc-list-item.js"; | ||||||
| import type { Menu } from "@material/mwc-menu"; | import type { Menu } from "@material/mwc-menu"; | ||||||
|  |  | ||||||
| import { haStyle } from "../resources/styles"; | import { haStyle } from "../resources/styles"; | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| import "@material/mwc-checkbox"; | import "@material/mwc-checkbox"; | ||||||
| import type { Checkbox } from "@material/mwc-checkbox"; | import type { Checkbox } from "@material/mwc-checkbox"; | ||||||
| import { style } from "@material/mwc-checkbox/mwc-checkbox-css"; | import { style } from "@material/mwc-checkbox/mwc-checkbox-css.js"; | ||||||
| import { css, CSSResult, customElement } from "lit-element"; | import { css, CSSResult, customElement } from "lit-element"; | ||||||
| import type { Constructor } from "../types"; | import type { Constructor } from "../types"; | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| // @ts-ignore | // @ts-ignore | ||||||
| import chipStyles from "@material/chips/dist/mdc.chips.min.css"; | import chipStyles from "@material/chips/dist/mdc.chips.min.css"; | ||||||
| import { ripple } from "@material/mwc-ripple/ripple-directive"; | import { ripple } from "@material/mwc-ripple/ripple-directive.js"; | ||||||
| import { | import { | ||||||
|   css, |   css, | ||||||
|   CSSResult, |   CSSResult, | ||||||
|   | |||||||
| @@ -1,8 +1,8 @@ | |||||||
| import "@polymer/iron-flex-layout/iron-flex-layout-classes"; | import "@polymer/iron-flex-layout/iron-flex-layout-classes.js"; | ||||||
| import "./ha-icon-button"; | import "./ha-icon-button"; | ||||||
| import { html } from "@polymer/polymer/lib/utils/html-tag"; | import { html } from "@polymer/polymer/lib/utils/html-tag.js"; | ||||||
| /* eslint-plugin-disable lit */ | /* eslint-plugin-disable lit */ | ||||||
| import { PolymerElement } from "@polymer/polymer/polymer-element"; | import { PolymerElement } from "@polymer/polymer/polymer-element.js"; | ||||||
| import { EventsMixin } from "../mixins/events-mixin"; | import { EventsMixin } from "../mixins/events-mixin"; | ||||||
|  |  | ||||||
| /* | /* | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| import { html } from "@polymer/polymer/lib/utils/html-tag"; | import { html } from "@polymer/polymer/lib/utils/html-tag.js"; | ||||||
| /* eslint-plugin-disable lit */ | /* eslint-plugin-disable lit */ | ||||||
| import { PolymerElement } from "@polymer/polymer/polymer-element"; | import { PolymerElement } from "@polymer/polymer/polymer-element.js"; | ||||||
| import { CLIMATE_PRESET_NONE } from "../data/climate"; | import { CLIMATE_PRESET_NONE } from "../data/climate"; | ||||||
| import LocalizeMixin from "../mixins/localize-mixin"; | import LocalizeMixin from "../mixins/localize-mixin"; | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| import { html } from "@polymer/polymer/lib/utils/html-tag"; | import { html } from "@polymer/polymer/lib/utils/html-tag.js"; | ||||||
| /* eslint-plugin-disable lit */ | /* eslint-plugin-disable lit */ | ||||||
| import { PolymerElement } from "@polymer/polymer/polymer-element"; | import { PolymerElement } from "@polymer/polymer/polymer-element.js"; | ||||||
| import { EventsMixin } from "../mixins/events-mixin"; | import { EventsMixin } from "../mixins/events-mixin"; | ||||||
|  |  | ||||||
| /** | /** | ||||||
|   | |||||||
| @@ -1,10 +1,10 @@ | |||||||
| import "./ha-icon-button"; | import "./ha-icon-button"; | ||||||
| import "@polymer/paper-input/paper-input"; | import "@polymer/paper-input/paper-input.js"; | ||||||
| import "@polymer/paper-item/paper-item"; | import "@polymer/paper-item/paper-item.js"; | ||||||
| import { html } from "@polymer/polymer/lib/utils/html-tag"; | import { html } from "@polymer/polymer/lib/utils/html-tag.js"; | ||||||
| /* eslint-plugin-disable lit */ | /* eslint-plugin-disable lit */ | ||||||
| import { PolymerElement } from "@polymer/polymer/polymer-element"; | import { PolymerElement } from "@polymer/polymer/polymer-element.js"; | ||||||
| import "@vaadin/vaadin-combo-box/theme/material/vaadin-combo-box-light"; | import "@vaadin/vaadin-combo-box/theme/material/vaadin-combo-box-light.js"; | ||||||
| import { EventsMixin } from "../mixins/events-mixin"; | import { EventsMixin } from "../mixins/events-mixin"; | ||||||
|  |  | ||||||
| class HaComboBox extends EventsMixin(PolymerElement) { | class HaComboBox extends EventsMixin(PolymerElement) { | ||||||
|   | |||||||
| @@ -1,7 +1,7 @@ | |||||||
| import "./ha-icon-button"; | import "./ha-icon-button"; | ||||||
| import { html } from "@polymer/polymer/lib/utils/html-tag"; | import { html } from "@polymer/polymer/lib/utils/html-tag.js"; | ||||||
| /* eslint-plugin-disable lit */ | /* eslint-plugin-disable lit */ | ||||||
| import { PolymerElement } from "@polymer/polymer/polymer-element"; | import { PolymerElement } from "@polymer/polymer/polymer-element.js"; | ||||||
| import { UNAVAILABLE } from "../data/entity"; | import { UNAVAILABLE } from "../data/entity"; | ||||||
| import CoverEntity from "../util/cover-model"; | import CoverEntity from "../util/cover-model"; | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,8 +1,8 @@ | |||||||
| import "@polymer/iron-flex-layout/iron-flex-layout-classes"; | import "@polymer/iron-flex-layout/iron-flex-layout-classes.js"; | ||||||
| import "./ha-icon-button"; | import "./ha-icon-button"; | ||||||
| import { html } from "@polymer/polymer/lib/utils/html-tag"; | import { html } from "@polymer/polymer/lib/utils/html-tag.js"; | ||||||
| /* eslint-plugin-disable lit */ | /* eslint-plugin-disable lit */ | ||||||
| import { PolymerElement } from "@polymer/polymer/polymer-element"; | import { PolymerElement } from "@polymer/polymer/polymer-element.js"; | ||||||
| import { UNAVAILABLE } from "../data/entity"; | import { UNAVAILABLE } from "../data/entity"; | ||||||
| import CoverEntity from "../util/cover-model"; | import CoverEntity from "../util/cover-model"; | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,5 +1,5 @@ | |||||||
| import "@polymer/paper-input/paper-input"; | import "@polymer/paper-input/paper-input.js"; | ||||||
| import type { PaperInputElement } from "@polymer/paper-input/paper-input"; | import type { PaperInputElement } from "@polymer/paper-input/paper-input.js"; | ||||||
| import { | import { | ||||||
|   css, |   css, | ||||||
|   customElement, |   customElement, | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| import { html } from "@polymer/polymer/lib/utils/html-tag"; | import { html } from "@polymer/polymer/lib/utils/html-tag.js"; | ||||||
| /* eslint-plugin-disable lit */ | /* eslint-plugin-disable lit */ | ||||||
| import { PolymerElement } from "@polymer/polymer/polymer-element"; | import { PolymerElement } from "@polymer/polymer/polymer-element.js"; | ||||||
| import "./ha-label-badge"; | import "./ha-label-badge"; | ||||||
|  |  | ||||||
| class HaDemoBadge extends PolymerElement { | class HaDemoBadge extends PolymerElement { | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| import "@material/mwc-dialog"; | import "@material/mwc-dialog"; | ||||||
| import type { Dialog } from "@material/mwc-dialog"; | import type { Dialog } from "@material/mwc-dialog"; | ||||||
| import { style } from "@material/mwc-dialog/mwc-dialog-css"; | import { style } from "@material/mwc-dialog/mwc-dialog-css.js"; | ||||||
| import "./ha-icon-button"; | import "./ha-icon-button"; | ||||||
| import { css, CSSResult, customElement, html } from "lit-element"; | import { css, CSSResult, customElement, html } from "lit-element"; | ||||||
| import type { Constructor, HomeAssistant } from "../types"; | import type { Constructor, HomeAssistant } from "../types"; | ||||||
|   | |||||||
| @@ -1,8 +1,8 @@ | |||||||
| import "@material/mwc-fab"; | import "@material/mwc-fab"; | ||||||
| import type { Fab } from "@material/mwc-fab"; | import type { Fab } from "@material/mwc-fab"; | ||||||
| import { ripple } from "@material/mwc-ripple/ripple-directive"; | import { ripple } from "@material/mwc-ripple/ripple-directive.js"; | ||||||
| import { customElement, html, TemplateResult } from "lit-element"; | import { customElement, html, TemplateResult } from "lit-element"; | ||||||
| import { classMap } from "lit-html/directives/class-map"; | import { classMap } from "lit-html/directives/class-map.js"; | ||||||
| import type { Constructor } from "../types"; | import type { Constructor } from "../types"; | ||||||
| import "./ha-icon"; | import "./ha-icon"; | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,5 +1,5 @@ | |||||||
| import "@polymer/paper-checkbox/paper-checkbox"; | import "@polymer/paper-checkbox"; | ||||||
| import type { PaperCheckboxElement } from "@polymer/paper-checkbox/paper-checkbox"; | import type { PaperCheckboxElement } from "@polymer/paper-checkbox"; | ||||||
| import { | import { | ||||||
|   css, |   css, | ||||||
|   CSSResult, |   CSSResult, | ||||||
|   | |||||||
| @@ -1,5 +1,5 @@ | |||||||
| import "@polymer/paper-input/paper-input"; | import "@polymer/paper-input/paper-input.js"; | ||||||
| import type { PaperInputElement } from "@polymer/paper-input/paper-input"; | import type { PaperInputElement } from "@polymer/paper-input/paper-input.js"; | ||||||
| import { | import { | ||||||
|   customElement, |   customElement, | ||||||
|   html, |   html, | ||||||
|   | |||||||
| @@ -1,7 +1,7 @@ | |||||||
| import "@polymer/paper-input/paper-input"; | import "@polymer/paper-input/paper-input.js"; | ||||||
| import type { PaperInputElement } from "@polymer/paper-input/paper-input"; | import type { PaperInputElement } from "@polymer/paper-input/paper-input.js"; | ||||||
| import "@polymer/paper-slider/paper-slider"; | import "@polymer/paper-slider"; | ||||||
| import type { PaperSliderElement } from "@polymer/paper-slider/paper-slider"; | import type { PaperSliderElement } from "@polymer/paper-slider"; | ||||||
| import { | import { | ||||||
|   css, |   css, | ||||||
|   CSSResult, |   CSSResult, | ||||||
|   | |||||||
| @@ -1,9 +1,9 @@ | |||||||
| import "@polymer/paper-checkbox/paper-checkbox"; | import "@polymer/paper-checkbox"; | ||||||
| import "@polymer/paper-input/paper-input"; | import "@polymer/paper-input/paper-input.js"; | ||||||
| import "@polymer/paper-item/paper-icon-item"; | import "@polymer/paper-item/paper-icon-item.js"; | ||||||
| import "@polymer/paper-listbox/paper-listbox"; | import "@polymer/paper-listbox"; | ||||||
| import "@polymer/paper-menu-button/paper-menu-button"; | import "@polymer/paper-menu-button"; | ||||||
| import "@polymer/paper-ripple/paper-ripple"; | import "@polymer/paper-ripple"; | ||||||
| import { | import { | ||||||
|   css, |   css, | ||||||
|   CSSResult, |   CSSResult, | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| import "@polymer/paper-dropdown-menu/paper-dropdown-menu"; | import "@polymer/paper-dropdown-menu/paper-dropdown-menu.js"; | ||||||
| import "@polymer/paper-item/paper-item"; | import "@polymer/paper-item/paper-item.js"; | ||||||
| import "@polymer/paper-listbox/paper-listbox"; | import "@polymer/paper-listbox"; | ||||||
| import { | import { | ||||||
|   css, |   css, | ||||||
|   CSSResult, |   CSSResult, | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| import "../ha-icon-button"; | import "../ha-icon-button"; | ||||||
| import "@polymer/paper-input/paper-input"; | import "@polymer/paper-input/paper-input.js"; | ||||||
| import type { PaperInputElement } from "@polymer/paper-input/paper-input"; | import type { PaperInputElement } from "@polymer/paper-input/paper-input.js"; | ||||||
| import { | import { | ||||||
|   customElement, |   customElement, | ||||||
|   html, |   html, | ||||||
|   | |||||||
| @@ -1,4 +1,4 @@ | |||||||
| import "@polymer/paper-input/paper-input"; | import "@polymer/paper-input/paper-input.js"; | ||||||
| import { | import { | ||||||
|   css, |   css, | ||||||
|   customElement, |   customElement, | ||||||
|   | |||||||
| @@ -1,4 +1,4 @@ | |||||||
| import "@polymer/iron-icon/iron-icon"; | import "@polymer/iron-icon"; | ||||||
| import { get, set, clear, Store } from "idb-keyval"; | import { get, set, clear, Store } from "idb-keyval"; | ||||||
| import { | import { | ||||||
|   customElement, |   customElement, | ||||||
|   | |||||||
| @@ -7,7 +7,7 @@ import { | |||||||
|   PropertyValues, |   PropertyValues, | ||||||
|   TemplateResult, |   TemplateResult, | ||||||
| } from "lit-element"; | } from "lit-element"; | ||||||
| import { classMap } from "lit-html/directives/class-map"; | import { classMap } from "lit-html/directives/class-map.js"; | ||||||
| import "./ha-icon"; | import "./ha-icon"; | ||||||
|  |  | ||||||
| class HaLabelBadge extends LitElement { | class HaLabelBadge extends LitElement { | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| import { html } from "@polymer/polymer/lib/utils/html-tag"; | import { html } from "@polymer/polymer/lib/utils/html-tag.js"; | ||||||
| /* eslint-plugin-disable lit */ | /* eslint-plugin-disable lit */ | ||||||
| import { PolymerElement } from "@polymer/polymer/polymer-element"; | import { PolymerElement } from "@polymer/polymer/polymer-element.js"; | ||||||
| import "./ha-icon"; | import "./ha-icon"; | ||||||
| import "./ha-paper-slider"; | import "./ha-paper-slider"; | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,4 +1,4 @@ | |||||||
| import "@polymer/paper-dropdown-menu/paper-dropdown-menu"; | import "@polymer/paper-dropdown-menu/paper-dropdown-menu.js"; | ||||||
| import { PolymerElement } from "@polymer/polymer"; | import { PolymerElement } from "@polymer/polymer"; | ||||||
| import { Constructor } from "../types"; | import { Constructor } from "../types"; | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,4 +1,4 @@ | |||||||
| import "@polymer/paper-slider/paper-slider"; | import "@polymer/paper-slider"; | ||||||
|  |  | ||||||
| /** | /** | ||||||
|  * @polymer |  * @polymer | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| import { html } from "@polymer/polymer/lib/utils/html-tag"; | import { html } from "@polymer/polymer/lib/utils/html-tag.js"; | ||||||
| /* eslint-plugin-disable lit */ | /* eslint-plugin-disable lit */ | ||||||
| import { PolymerElement } from "@polymer/polymer/polymer-element"; | import { PolymerElement } from "@polymer/polymer/polymer-element.js"; | ||||||
| import { getAppKey } from "../data/notify_html5"; | import { getAppKey } from "../data/notify_html5"; | ||||||
| import { EventsMixin } from "../mixins/events-mixin"; | import { EventsMixin } from "../mixins/events-mixin"; | ||||||
| import "./ha-switch"; | import "./ha-switch"; | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| import { dom } from "@polymer/polymer/lib/legacy/polymer.dom"; | import { dom } from "@polymer/polymer/lib/legacy/polymer.dom.js"; | ||||||
| /* eslint-plugin-disable lit */ | /* eslint-plugin-disable lit */ | ||||||
| import { PolymerElement } from "@polymer/polymer/polymer-element"; | import { PolymerElement } from "@polymer/polymer/polymer-element.js"; | ||||||
| import relativeTime from "../common/datetime/relative_time"; | import relativeTime from "../common/datetime/relative_time"; | ||||||
| import LocalizeMixin from "../mixins/localize-mixin"; | import LocalizeMixin from "../mixins/localize-mixin"; | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| import { html } from "@polymer/polymer/lib/utils/html-tag"; | import { html } from "@polymer/polymer/lib/utils/html-tag.js"; | ||||||
| /* eslint-plugin-disable lit */ | /* eslint-plugin-disable lit */ | ||||||
| import { PolymerElement } from "@polymer/polymer/polymer-element"; | import { PolymerElement } from "@polymer/polymer/polymer-element.js"; | ||||||
|  |  | ||||||
| class HaServiceDescription extends PolymerElement { | class HaServiceDescription extends PolymerElement { | ||||||
|   static get template() { |   static get template() { | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| import { html } from "@polymer/polymer/lib/utils/html-tag"; | import { html } from "@polymer/polymer/lib/utils/html-tag.js"; | ||||||
| /* eslint-plugin-disable lit */ | /* eslint-plugin-disable lit */ | ||||||
| import { PolymerElement } from "@polymer/polymer/polymer-element"; | import { PolymerElement } from "@polymer/polymer/polymer-element.js"; | ||||||
| import LocalizeMixin from "../mixins/localize-mixin"; | import LocalizeMixin from "../mixins/localize-mixin"; | ||||||
| import "./ha-combo-box"; | import "./ha-combo-box"; | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,10 +1,10 @@ | |||||||
| import { mdiBell, mdiCellphoneSettingsVariant } from "@mdi/js"; | import { mdiBell, mdiCellphoneSettingsVariant } from "@mdi/js"; | ||||||
| import "@polymer/app-layout/app-toolbar/app-toolbar"; | import "@polymer/app-layout/app-toolbar/app-toolbar.js"; | ||||||
| import "./ha-icon-button"; | import "./ha-icon-button"; | ||||||
| import "@polymer/paper-item/paper-icon-item"; | import "@polymer/paper-item/paper-icon-item.js"; | ||||||
| import type { PaperIconItemElement } from "@polymer/paper-item/paper-icon-item"; | import type { PaperIconItemElement } from "@polymer/paper-item/paper-icon-item.js"; | ||||||
| import "@polymer/paper-item/paper-item"; | import "@polymer/paper-item/paper-item.js"; | ||||||
| import "@polymer/paper-listbox/paper-listbox"; | import "@polymer/paper-listbox"; | ||||||
| import { | import { | ||||||
|   css, |   css, | ||||||
|   CSSResult, |   CSSResult, | ||||||
| @@ -14,7 +14,7 @@ import { | |||||||
|   property, |   property, | ||||||
|   PropertyValues, |   PropertyValues, | ||||||
| } from "lit-element"; | } from "lit-element"; | ||||||
| import { classMap } from "lit-html/directives/class-map"; | import { classMap } from "lit-html/directives/class-map.js"; | ||||||
| import { fireEvent } from "../common/dom/fire_event"; | import { fireEvent } from "../common/dom/fire_event"; | ||||||
| import { computeDomain } from "../common/entity/compute_domain"; | import { computeDomain } from "../common/entity/compute_domain"; | ||||||
| import { compare } from "../common/string/compare"; | import { compare } from "../common/string/compare"; | ||||||
|   | |||||||
| @@ -1,7 +1,7 @@ | |||||||
| import { ripple } from "@material/mwc-ripple/ripple-directive"; | import { ripple } from "@material/mwc-ripple/ripple-directive.js"; | ||||||
| import "@material/mwc-switch"; | import "@material/mwc-switch"; | ||||||
| import type { Switch } from "@material/mwc-switch"; | import type { Switch } from "@material/mwc-switch"; | ||||||
| import { style } from "@material/mwc-switch/mwc-switch-css"; | import { style } from "@material/mwc-switch/mwc-switch-css.js"; | ||||||
| import { | import { | ||||||
|   css, |   css, | ||||||
|   CSSResult, |   CSSResult, | ||||||
|   | |||||||
| @@ -9,10 +9,10 @@ paper-textarea issue: https://github.com/PolymerElements/paper-input/issues/556 | |||||||
| WebKit issue: https://bugs.webkit.org/show_bug.cgi?id=174629 | WebKit issue: https://bugs.webkit.org/show_bug.cgi?id=174629 | ||||||
| */ | */ | ||||||
|  |  | ||||||
| import "@polymer/paper-input/paper-textarea"; | import "@polymer/paper-input/paper-textarea.js"; | ||||||
| import { html } from "@polymer/polymer/lib/utils/html-tag"; | import { html } from "@polymer/polymer/lib/utils/html-tag.js"; | ||||||
| /* eslint-plugin-disable lit */ | /* eslint-plugin-disable lit */ | ||||||
| import { PolymerElement } from "@polymer/polymer/polymer-element"; | import { PolymerElement } from "@polymer/polymer/polymer-element.js"; | ||||||
|  |  | ||||||
| class HaTextarea extends PolymerElement { | class HaTextarea extends PolymerElement { | ||||||
|   static get template() { |   static get template() { | ||||||
|   | |||||||
| @@ -1,5 +1,5 @@ | |||||||
| import "@polymer/paper-toast/paper-toast"; | import "@polymer/paper-toast"; | ||||||
| import type { PaperToastElement } from "@polymer/paper-toast/paper-toast"; | import type { PaperToastElement } from "@polymer/paper-toast"; | ||||||
| import type { Constructor } from "../types"; | import type { Constructor } from "../types"; | ||||||
|  |  | ||||||
| const PaperToast = customElements.get("paper-toast") as Constructor< | const PaperToast = customElements.get("paper-toast") as Constructor< | ||||||
|   | |||||||
| @@ -1,7 +1,7 @@ | |||||||
| import "@material/mwc-button"; | import "@material/mwc-button"; | ||||||
| import { html } from "@polymer/polymer/lib/utils/html-tag"; | import { html } from "@polymer/polymer/lib/utils/html-tag.js"; | ||||||
| /* eslint-plugin-disable lit */ | /* eslint-plugin-disable lit */ | ||||||
| import { PolymerElement } from "@polymer/polymer/polymer-element"; | import { PolymerElement } from "@polymer/polymer/polymer-element.js"; | ||||||
| import LocalizeMixin from "../mixins/localize-mixin"; | import LocalizeMixin from "../mixins/localize-mixin"; | ||||||
|  |  | ||||||
| const STATES_INTERCEPTABLE = { | const STATES_INTERCEPTABLE = { | ||||||
|   | |||||||
| @@ -1,8 +1,8 @@ | |||||||
| import "@polymer/iron-flex-layout/iron-flex-layout-classes"; | import "@polymer/iron-flex-layout/iron-flex-layout-classes.js"; | ||||||
| import "./ha-icon-button"; | import "./ha-icon-button"; | ||||||
| import { html } from "@polymer/polymer/lib/utils/html-tag"; | import { html } from "@polymer/polymer/lib/utils/html-tag.js"; | ||||||
| /* eslint-plugin-disable lit */ | /* eslint-plugin-disable lit */ | ||||||
| import { PolymerElement } from "@polymer/polymer/polymer-element"; | import { PolymerElement } from "@polymer/polymer/polymer-element.js"; | ||||||
| import { EventsMixin } from "../mixins/events-mixin"; | import { EventsMixin } from "../mixins/events-mixin"; | ||||||
|  |  | ||||||
| /* | /* | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| import { html } from "@polymer/polymer/lib/utils/html-tag"; | import { html } from "@polymer/polymer/lib/utils/html-tag.js"; | ||||||
| /* eslint-plugin-disable lit */ | /* eslint-plugin-disable lit */ | ||||||
| import { PolymerElement } from "@polymer/polymer/polymer-element"; | import { PolymerElement } from "@polymer/polymer/polymer-element.js"; | ||||||
| import { computeStateDisplay } from "../common/entity/compute_state_display"; | import { computeStateDisplay } from "../common/entity/compute_state_display"; | ||||||
| import LocalizeMixin from "../mixins/localize-mixin"; | import LocalizeMixin from "../mixins/localize-mixin"; | ||||||
|  |  | ||||||
|   | |||||||
| @@ -16,13 +16,13 @@ Custom property | Description | Default | |||||||
| `--paper-time-input-cotnainer` | Mixin applied to the inputs | `{}` | `--paper-time-input-cotnainer` | Mixin applied to the inputs | `{}` | ||||||
| `--paper-time-dropdown-input-cotnainer` | Mixin applied to the dropdown input | `{}` | `--paper-time-dropdown-input-cotnainer` | Mixin applied to the dropdown input | `{}` | ||||||
| */ | */ | ||||||
| import "@polymer/paper-dropdown-menu/paper-dropdown-menu"; | import "@polymer/paper-dropdown-menu/paper-dropdown-menu.js"; | ||||||
| import "@polymer/paper-input/paper-input"; | import "@polymer/paper-input/paper-input.js"; | ||||||
| import "@polymer/paper-item/paper-item"; | import "@polymer/paper-item/paper-item.js"; | ||||||
| import "@polymer/paper-listbox/paper-listbox"; | import "@polymer/paper-listbox"; | ||||||
| import { html } from "@polymer/polymer/lib/utils/html-tag"; | import { html } from "@polymer/polymer/lib/utils/html-tag.js"; | ||||||
| /* eslint-plugin-disable lit */ | /* eslint-plugin-disable lit */ | ||||||
| import { PolymerElement } from "@polymer/polymer/polymer-element"; | import { PolymerElement } from "@polymer/polymer/polymer-element.js"; | ||||||
|  |  | ||||||
| export class PaperTimeInput extends PolymerElement { | export class PaperTimeInput extends PolymerElement { | ||||||
|   static get template() { |   static get template() { | ||||||
|   | |||||||
| @@ -1,7 +1,7 @@ | |||||||
| import "@polymer/polymer/lib/utils/debounce"; | import "@polymer/polymer/lib/utils/debounce.js"; | ||||||
| import { html } from "@polymer/polymer/lib/utils/html-tag"; | import { html } from "@polymer/polymer/lib/utils/html-tag.js"; | ||||||
| /* eslint-plugin-disable lit */ | /* eslint-plugin-disable lit */ | ||||||
| import { PolymerElement } from "@polymer/polymer/polymer-element"; | import { PolymerElement } from "@polymer/polymer/polymer-element.js"; | ||||||
| import { formatDateTimeWithSeconds } from "../common/datetime/format_date_time"; | import { formatDateTimeWithSeconds } from "../common/datetime/format_date_time"; | ||||||
| import LocalizeMixin from "../mixins/localize-mixin"; | import LocalizeMixin from "../mixins/localize-mixin"; | ||||||
| import "./entity/ha-chart-base"; | import "./entity/ha-chart-base"; | ||||||
|   | |||||||
| @@ -1,7 +1,7 @@ | |||||||
| import "@polymer/polymer/lib/utils/debounce"; | import "@polymer/polymer/lib/utils/debounce.js"; | ||||||
| import { html } from "@polymer/polymer/lib/utils/html-tag"; | import { html } from "@polymer/polymer/lib/utils/html-tag.js"; | ||||||
| /* eslint-plugin-disable lit */ | /* eslint-plugin-disable lit */ | ||||||
| import { PolymerElement } from "@polymer/polymer/polymer-element"; | import { PolymerElement } from "@polymer/polymer/polymer-element.js"; | ||||||
| import { formatDateTimeWithSeconds } from "../common/datetime/format_date_time"; | import { formatDateTimeWithSeconds } from "../common/datetime/format_date_time"; | ||||||
| import { computeRTL } from "../common/util/compute_rtl"; | import { computeRTL } from "../common/util/compute_rtl"; | ||||||
| import LocalizeMixin from "../mixins/localize-mixin"; | import LocalizeMixin from "../mixins/localize-mixin"; | ||||||
|   | |||||||
| @@ -1,7 +1,7 @@ | |||||||
| import "@polymer/paper-spinner/paper-spinner"; | import "@polymer/paper-spinner/paper-spinner.js"; | ||||||
| import { html } from "@polymer/polymer/lib/utils/html-tag"; | import { html } from "@polymer/polymer/lib/utils/html-tag.js"; | ||||||
| /* eslint-plugin-disable lit */ | /* eslint-plugin-disable lit */ | ||||||
| import { PolymerElement } from "@polymer/polymer/polymer-element"; | import { PolymerElement } from "@polymer/polymer/polymer-element.js"; | ||||||
| import LocalizeMixin from "../mixins/localize-mixin"; | import LocalizeMixin from "../mixins/localize-mixin"; | ||||||
| import "./state-history-chart-line"; | import "./state-history-chart-line"; | ||||||
| import "./state-history-chart-timeline"; | import "./state-history-chart-timeline"; | ||||||
|   | |||||||
| @@ -1,9 +1,9 @@ | |||||||
| import "@polymer/paper-dropdown-menu/paper-dropdown-menu-light"; | import "@polymer/paper-dropdown-menu/paper-dropdown-menu-light.js"; | ||||||
| import "../ha-icon-button"; | import "../ha-icon-button"; | ||||||
| import "@polymer/paper-input/paper-input"; | import "@polymer/paper-input/paper-input.js"; | ||||||
| import "@polymer/paper-item/paper-icon-item"; | import "@polymer/paper-item/paper-icon-item.js"; | ||||||
| import "@polymer/paper-item/paper-item-body"; | import "@polymer/paper-item/paper-item-body.js"; | ||||||
| import "@polymer/paper-listbox/paper-listbox"; | import "@polymer/paper-listbox"; | ||||||
| import { | import { | ||||||
|   css, |   css, | ||||||
|   CSSResult, |   CSSResult, | ||||||
|   | |||||||
| @@ -4,7 +4,7 @@ import { | |||||||
|   getCollection, |   getCollection, | ||||||
|   UnsubscribeFunc, |   UnsubscribeFunc, | ||||||
| } from "home-assistant-js-websocket"; | } from "home-assistant-js-websocket"; | ||||||
| import { Store } from "home-assistant-js-websocket/dist/store"; | import { Store } from "home-assistant-js-websocket/dist/store.js"; | ||||||
|  |  | ||||||
| interface OptimisticCollection<T> extends Collection<T> { | interface OptimisticCollection<T> extends Collection<T> { | ||||||
|   save(data: T): Promise<unknown>; |   save(data: T): Promise<unknown>; | ||||||
|   | |||||||
| @@ -1,7 +1,7 @@ | |||||||
| import { timeOut } from "@polymer/polymer/lib/utils/async"; | import { timeOut } from "@polymer/polymer/lib/utils/async.js"; | ||||||
| import { Debouncer } from "@polymer/polymer/lib/utils/debounce"; | import { Debouncer } from "@polymer/polymer/lib/utils/debounce.js"; | ||||||
| /* eslint-plugin-disable lit */ | /* eslint-plugin-disable lit */ | ||||||
| import { PolymerElement } from "@polymer/polymer/polymer-element"; | import { PolymerElement } from "@polymer/polymer/polymer-element.js"; | ||||||
| import LocalizeMixin from "../mixins/localize-mixin"; | import LocalizeMixin from "../mixins/localize-mixin"; | ||||||
| import { getRecent, getRecentWithCache } from "./cached-history"; | import { getRecent, getRecentWithCache } from "./cached-history"; | ||||||
| import { computeHistory, fetchDate } from "./history"; | import { computeHistory, fetchDate } from "./history"; | ||||||
|   | |||||||
| @@ -1,5 +1,5 @@ | |||||||
| import "@polymer/paper-dialog-scrollable/paper-dialog-scrollable"; | import "@polymer/paper-dialog-scrollable"; | ||||||
| import "@polymer/paper-input/paper-input"; | import "@polymer/paper-input/paper-input.js"; | ||||||
| import { | import { | ||||||
|   css, |   css, | ||||||
|   CSSResult, |   CSSResult, | ||||||
|   | |||||||
| @@ -1,8 +1,8 @@ | |||||||
| import "@material/mwc-button"; | import "@material/mwc-button"; | ||||||
| import "@polymer/paper-dialog-scrollable/paper-dialog-scrollable"; | import "@polymer/paper-dialog-scrollable"; | ||||||
| import "../../components/ha-icon-button"; | import "../../components/ha-icon-button"; | ||||||
| import "@polymer/paper-spinner/paper-spinner"; | import "@polymer/paper-spinner/paper-spinner.js"; | ||||||
| import "@polymer/paper-tooltip/paper-tooltip"; | import "@polymer/paper-tooltip"; | ||||||
| import type { UnsubscribeFunc } from "home-assistant-js-websocket"; | import type { UnsubscribeFunc } from "home-assistant-js-websocket"; | ||||||
| import { | import { | ||||||
|   css, |   css, | ||||||
|   | |||||||
| @@ -1,7 +1,7 @@ | |||||||
| import "@material/mwc-button"; | import "@material/mwc-button"; | ||||||
| import "@polymer/paper-dropdown-menu/paper-dropdown-menu-light"; | import "@polymer/paper-dropdown-menu/paper-dropdown-menu-light.js"; | ||||||
| import "@polymer/paper-item/paper-item"; | import "@polymer/paper-item/paper-item.js"; | ||||||
| import "@polymer/paper-listbox/paper-listbox"; | import "@polymer/paper-listbox"; | ||||||
| import { | import { | ||||||
|   css, |   css, | ||||||
|   CSSResultArray, |   CSSResultArray, | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| import "@material/mwc-button"; | import "@material/mwc-button"; | ||||||
| import "@polymer/paper-spinner/paper-spinner"; | import "@polymer/paper-spinner/paper-spinner.js"; | ||||||
| import "@polymer/paper-tooltip/paper-tooltip"; | import "@polymer/paper-tooltip"; | ||||||
| import { | import { | ||||||
|   css, |   css, | ||||||
|   CSSResultArray, |   CSSResultArray, | ||||||
|   | |||||||
| @@ -1,4 +1,4 @@ | |||||||
| import "@polymer/paper-spinner/paper-spinner-lite"; | import "@polymer/paper-spinner/paper-spinner-lite.js"; | ||||||
| import { | import { | ||||||
|   css, |   css, | ||||||
|   CSSResult, |   CSSResult, | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| import "@polymer/paper-item/paper-icon-item"; | import "@polymer/paper-item/paper-icon-item.js"; | ||||||
| import "@polymer/paper-item/paper-item-body"; | import "@polymer/paper-item/paper-item-body.js"; | ||||||
| import "@polymer/paper-spinner/paper-spinner-lite"; | import "@polymer/paper-spinner/paper-spinner-lite.js"; | ||||||
| import * as Fuse from "fuse.js"; | import * as Fuse from "fuse.js"; | ||||||
| import { | import { | ||||||
|   css, |   css, | ||||||
| @@ -11,8 +11,8 @@ import { | |||||||
|   property, |   property, | ||||||
|   TemplateResult, |   TemplateResult, | ||||||
| } from "lit-element"; | } from "lit-element"; | ||||||
| import { classMap } from "lit-html/directives/class-map"; | import { classMap } from "lit-html/directives/class-map.js"; | ||||||
| import { styleMap } from "lit-html/directives/style-map"; | import { styleMap } from "lit-html/directives/style-map.js"; | ||||||
| import memoizeOne from "memoize-one"; | import memoizeOne from "memoize-one"; | ||||||
| import { fireEvent } from "../../common/dom/fire_event"; | import { fireEvent } from "../../common/dom/fire_event"; | ||||||
| import "../../common/search/search-input"; | import "../../common/search/search-input"; | ||||||
|   | |||||||
| @@ -1,9 +1,9 @@ | |||||||
| import "@material/mwc-button/mwc-button"; | import "@material/mwc-button"; | ||||||
| import "@polymer/paper-dialog-scrollable/paper-dialog-scrollable"; | import "@polymer/paper-dialog-scrollable"; | ||||||
| import "@polymer/paper-dropdown-menu/paper-dropdown-menu"; | import "@polymer/paper-dropdown-menu/paper-dropdown-menu.js"; | ||||||
| import "@polymer/paper-input/paper-input"; | import "@polymer/paper-input/paper-input.js"; | ||||||
| import "@polymer/paper-item/paper-item"; | import "@polymer/paper-item/paper-item.js"; | ||||||
| import "@polymer/paper-listbox/paper-listbox"; | import "@polymer/paper-listbox"; | ||||||
| import { | import { | ||||||
|   css, |   css, | ||||||
|   CSSResult, |   CSSResult, | ||||||
|   | |||||||
| @@ -1,4 +1,4 @@ | |||||||
| import "@material/mwc-button/mwc-button"; | import "@material/mwc-button"; | ||||||
| import { | import { | ||||||
|   css, |   css, | ||||||
|   CSSResultArray, |   CSSResultArray, | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| import "@material/mwc-button/mwc-button"; | import "@material/mwc-button"; | ||||||
| import "@polymer/paper-dialog-scrollable/paper-dialog-scrollable"; | import "@polymer/paper-dialog-scrollable"; | ||||||
| import "@polymer/paper-input/paper-input"; | import "@polymer/paper-input/paper-input.js"; | ||||||
| import { | import { | ||||||
|   css, |   css, | ||||||
|   CSSResult, |   CSSResult, | ||||||
| @@ -10,7 +10,7 @@ import { | |||||||
|   property, |   property, | ||||||
|   TemplateResult, |   TemplateResult, | ||||||
| } from "lit-element"; | } from "lit-element"; | ||||||
| import { classMap } from "lit-html/directives/class-map"; | import { classMap } from "lit-html/directives/class-map.js"; | ||||||
| import "../../components/dialog/ha-paper-dialog"; | import "../../components/dialog/ha-paper-dialog"; | ||||||
| import "../../components/ha-switch"; | import "../../components/ha-switch"; | ||||||
| import { PolymerChangedEvent } from "../../polymer-types"; | import { PolymerChangedEvent } from "../../polymer-types"; | ||||||
|   | |||||||
| @@ -1,8 +1,8 @@ | |||||||
| import "@polymer/paper-dialog-behavior/paper-dialog-shared-styles"; | import "@polymer/paper-dialog-behavior/paper-dialog-shared-styles.js"; | ||||||
| import "@polymer/paper-dialog-scrollable/paper-dialog-scrollable"; | import "@polymer/paper-dialog-scrollable"; | ||||||
| import { html } from "@polymer/polymer/lib/utils/html-tag"; | import { html } from "@polymer/polymer/lib/utils/html-tag.js"; | ||||||
| /* eslint-plugin-disable lit */ | /* eslint-plugin-disable lit */ | ||||||
| import { PolymerElement } from "@polymer/polymer/polymer-element"; | import { PolymerElement } from "@polymer/polymer/polymer-element.js"; | ||||||
| import { computeStateDomain } from "../common/entity/compute_state_domain"; | import { computeStateDomain } from "../common/entity/compute_state_domain"; | ||||||
| import DialogMixin from "../mixins/dialog-mixin"; | import DialogMixin from "../mixins/dialog-mixin"; | ||||||
| import "../resources/ha-style"; | import "../resources/ha-style"; | ||||||
|   | |||||||
| @@ -1,7 +1,7 @@ | |||||||
| import "@polymer/paper-card/paper-card"; | import "@polymer/paper-card"; | ||||||
| import { html } from "@polymer/polymer/lib/utils/html-tag"; | import { html } from "@polymer/polymer/lib/utils/html-tag.js"; | ||||||
| /* eslint-plugin-disable lit */ | /* eslint-plugin-disable lit */ | ||||||
| import { PolymerElement } from "@polymer/polymer/polymer-element"; | import { PolymerElement } from "@polymer/polymer/polymer-element.js"; | ||||||
| import { enableWrite } from "../common/auth/token_storage"; | import { enableWrite } from "../common/auth/token_storage"; | ||||||
| import LocalizeMixin from "../mixins/localize-mixin"; | import LocalizeMixin from "../mixins/localize-mixin"; | ||||||
| import "../resources/ha-style"; | import "../resources/ha-style"; | ||||||
|   | |||||||
| @@ -1,9 +1,9 @@ | |||||||
| import "@material/mwc-button"; | import "@material/mwc-button"; | ||||||
| import "@polymer/iron-flex-layout/iron-flex-layout-classes"; | import "@polymer/iron-flex-layout/iron-flex-layout-classes.js"; | ||||||
| import "@polymer/paper-input/paper-input"; | import "@polymer/paper-input/paper-input.js"; | ||||||
| import { html } from "@polymer/polymer/lib/utils/html-tag"; | import { html } from "@polymer/polymer/lib/utils/html-tag.js"; | ||||||
| /* eslint-plugin-disable lit */ | /* eslint-plugin-disable lit */ | ||||||
| import { PolymerElement } from "@polymer/polymer/polymer-element"; | import { PolymerElement } from "@polymer/polymer/polymer-element.js"; | ||||||
| import { fireEvent } from "../../../common/dom/fire_event"; | import { fireEvent } from "../../../common/dom/fire_event"; | ||||||
| import LocalizeMixin from "../../../mixins/localize-mixin"; | import LocalizeMixin from "../../../mixins/localize-mixin"; | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,5 +1,5 @@ | |||||||
| import "@polymer/paper-checkbox/paper-checkbox"; | import "@polymer/paper-checkbox"; | ||||||
| import type { PaperCheckboxElement } from "@polymer/paper-checkbox/paper-checkbox"; | import type { PaperCheckboxElement } from "@polymer/paper-checkbox"; | ||||||
| import { | import { | ||||||
|   css, |   css, | ||||||
|   CSSResult, |   CSSResult, | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| import "@polymer/iron-flex-layout/iron-flex-layout-classes"; | import "@polymer/iron-flex-layout/iron-flex-layout-classes.js"; | ||||||
| import "@polymer/paper-item/paper-item"; | import "@polymer/paper-item/paper-item.js"; | ||||||
| import "@polymer/paper-listbox/paper-listbox"; | import "@polymer/paper-listbox"; | ||||||
| import { | import { | ||||||
|   css, |   css, | ||||||
|   CSSResult, |   CSSResult, | ||||||
| @@ -10,7 +10,7 @@ import { | |||||||
|   PropertyValues, |   PropertyValues, | ||||||
|   TemplateResult, |   TemplateResult, | ||||||
| } from "lit-element"; | } from "lit-element"; | ||||||
| import { classMap } from "lit-html/directives/class-map"; | import { classMap } from "lit-html/directives/class-map.js"; | ||||||
| import { fireEvent } from "../../../common/dom/fire_event"; | import { fireEvent } from "../../../common/dom/fire_event"; | ||||||
| import { supportsFeature } from "../../../common/entity/supports-feature"; | import { supportsFeature } from "../../../common/entity/supports-feature"; | ||||||
| import { computeRTLDirection } from "../../../common/util/compute_rtl"; | import { computeRTLDirection } from "../../../common/util/compute_rtl"; | ||||||
|   | |||||||
| @@ -1,11 +1,11 @@ | |||||||
| import "@material/mwc-button"; | import "@material/mwc-button"; | ||||||
| import "@polymer/iron-flex-layout/iron-flex-layout-classes"; | import "@polymer/iron-flex-layout/iron-flex-layout-classes.js"; | ||||||
| import "@polymer/iron-input/iron-input"; | import "@polymer/iron-input"; | ||||||
| import "@polymer/paper-input/paper-input"; | import "@polymer/paper-input/paper-input.js"; | ||||||
| import "@polymer/paper-spinner/paper-spinner"; | import "@polymer/paper-spinner/paper-spinner.js"; | ||||||
| import { html } from "@polymer/polymer/lib/utils/html-tag"; | import { html } from "@polymer/polymer/lib/utils/html-tag.js"; | ||||||
| /* eslint-plugin-disable lit */ | /* eslint-plugin-disable lit */ | ||||||
| import { PolymerElement } from "@polymer/polymer/polymer-element"; | import { PolymerElement } from "@polymer/polymer/polymer-element.js"; | ||||||
| import "../../../components/ha-markdown"; | import "../../../components/ha-markdown"; | ||||||
|  |  | ||||||
| class MoreInfoConfigurator extends PolymerElement { | class MoreInfoConfigurator extends PolymerElement { | ||||||
|   | |||||||
| @@ -1,7 +1,7 @@ | |||||||
| import "@polymer/iron-flex-layout/iron-flex-layout-classes"; | import "@polymer/iron-flex-layout/iron-flex-layout-classes.js"; | ||||||
| import { html } from "@polymer/polymer/lib/utils/html-tag"; | import { html } from "@polymer/polymer/lib/utils/html-tag.js"; | ||||||
| /* eslint-plugin-disable lit */ | /* eslint-plugin-disable lit */ | ||||||
| import { PolymerElement } from "@polymer/polymer/polymer-element"; | import { PolymerElement } from "@polymer/polymer/polymer-element.js"; | ||||||
| import { attributeClassNames } from "../../../common/entity/attribute_class_names"; | import { attributeClassNames } from "../../../common/entity/attribute_class_names"; | ||||||
| import { featureClassNames } from "../../../common/entity/feature_class_names"; | import { featureClassNames } from "../../../common/entity/feature_class_names"; | ||||||
| import "../../../components/ha-cover-tilt-controls"; | import "../../../components/ha-cover-tilt-controls"; | ||||||
|   | |||||||
| @@ -1,10 +1,10 @@ | |||||||
| import "@polymer/iron-flex-layout/iron-flex-layout-classes"; | import "@polymer/iron-flex-layout/iron-flex-layout-classes.js"; | ||||||
| import "../../../components/ha-icon-button"; | import "../../../components/ha-icon-button"; | ||||||
| import "@polymer/paper-item/paper-item"; | import "@polymer/paper-item/paper-item.js"; | ||||||
| import "@polymer/paper-listbox/paper-listbox"; | import "@polymer/paper-listbox"; | ||||||
| import { html } from "@polymer/polymer/lib/utils/html-tag"; | import { html } from "@polymer/polymer/lib/utils/html-tag.js"; | ||||||
| /* eslint-plugin-disable lit */ | /* eslint-plugin-disable lit */ | ||||||
| import { PolymerElement } from "@polymer/polymer/polymer-element"; | import { PolymerElement } from "@polymer/polymer/polymer-element.js"; | ||||||
| import { attributeClassNames } from "../../../common/entity/attribute_class_names"; | import { attributeClassNames } from "../../../common/entity/attribute_class_names"; | ||||||
| import "../../../components/ha-attributes"; | import "../../../components/ha-attributes"; | ||||||
| import "../../../components/ha-paper-dropdown-menu"; | import "../../../components/ha-paper-dropdown-menu"; | ||||||
|   | |||||||
| @@ -1,7 +1,7 @@ | |||||||
| import { dom } from "@polymer/polymer/lib/legacy/polymer.dom"; | import { dom } from "@polymer/polymer/lib/legacy/polymer.dom.js"; | ||||||
| import { html } from "@polymer/polymer/lib/utils/html-tag"; | import { html } from "@polymer/polymer/lib/utils/html-tag.js"; | ||||||
| /* eslint-plugin-disable lit */ | /* eslint-plugin-disable lit */ | ||||||
| import { PolymerElement } from "@polymer/polymer/polymer-element"; | import { PolymerElement } from "@polymer/polymer/polymer-element.js"; | ||||||
| import dynamicContentUpdater from "../../../common/dom/dynamic_content_updater"; | import dynamicContentUpdater from "../../../common/dom/dynamic_content_updater"; | ||||||
| import { computeStateDomain } from "../../../common/entity/compute_state_domain"; | import { computeStateDomain } from "../../../common/entity/compute_state_domain"; | ||||||
| import "../../../state-summary/state-card-content"; | import "../../../state-summary/state-card-content"; | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| import { html } from "@polymer/polymer/lib/utils/html-tag"; | import { html } from "@polymer/polymer/lib/utils/html-tag.js"; | ||||||
| /* eslint-plugin-disable lit */ | /* eslint-plugin-disable lit */ | ||||||
| import { PolymerElement } from "@polymer/polymer/polymer-element"; | import { PolymerElement } from "@polymer/polymer/polymer-element.js"; | ||||||
| import "../../../cards/ha-history_graph-card"; | import "../../../cards/ha-history_graph-card"; | ||||||
| import "../../../components/ha-attributes"; | import "../../../components/ha-attributes"; | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,9 +1,9 @@ | |||||||
| import "@polymer/iron-flex-layout/iron-flex-layout-classes"; | import "@polymer/iron-flex-layout/iron-flex-layout-classes.js"; | ||||||
| import "@polymer/paper-input/paper-input"; | import "@polymer/paper-input/paper-input.js"; | ||||||
| import { html } from "@polymer/polymer/lib/utils/html-tag"; | import { html } from "@polymer/polymer/lib/utils/html-tag.js"; | ||||||
| /* eslint-plugin-disable lit */ | /* eslint-plugin-disable lit */ | ||||||
| import { PolymerElement } from "@polymer/polymer/polymer-element"; | import { PolymerElement } from "@polymer/polymer/polymer-element.js"; | ||||||
| import "@vaadin/vaadin-date-picker/theme/material/vaadin-date-picker"; | import "@vaadin/vaadin-date-picker/theme/material/vaadin-date-picker.js"; | ||||||
| import { attributeClassNames } from "../../../common/entity/attribute_class_names"; | import { attributeClassNames } from "../../../common/entity/attribute_class_names"; | ||||||
| import "../../../components/ha-relative-time"; | import "../../../components/ha-relative-time"; | ||||||
| import "../../../components/paper-time-input"; | import "../../../components/paper-time-input"; | ||||||
|   | |||||||
| @@ -1,9 +1,9 @@ | |||||||
| import "@polymer/iron-flex-layout/iron-flex-layout-classes"; | import "@polymer/iron-flex-layout/iron-flex-layout-classes.js"; | ||||||
| import "@polymer/paper-item/paper-item"; | import "@polymer/paper-item/paper-item.js"; | ||||||
| import "@polymer/paper-listbox/paper-listbox"; | import "@polymer/paper-listbox"; | ||||||
| import { html } from "@polymer/polymer/lib/utils/html-tag"; | import { html } from "@polymer/polymer/lib/utils/html-tag.js"; | ||||||
| /* eslint-plugin-disable lit */ | /* eslint-plugin-disable lit */ | ||||||
| import { PolymerElement } from "@polymer/polymer/polymer-element"; | import { PolymerElement } from "@polymer/polymer/polymer-element.js"; | ||||||
| import { featureClassNames } from "../../../common/entity/feature_class_names"; | import { featureClassNames } from "../../../common/entity/feature_class_names"; | ||||||
| import "../../../components/ha-attributes"; | import "../../../components/ha-attributes"; | ||||||
| import "../../../components/ha-color-picker"; | import "../../../components/ha-color-picker"; | ||||||
|   | |||||||
| @@ -1,8 +1,8 @@ | |||||||
| import "@material/mwc-button"; | import "@material/mwc-button"; | ||||||
| import "@polymer/paper-input/paper-input"; | import "@polymer/paper-input/paper-input.js"; | ||||||
| import { html } from "@polymer/polymer/lib/utils/html-tag"; | import { html } from "@polymer/polymer/lib/utils/html-tag.js"; | ||||||
| /* eslint-plugin-disable lit */ | /* eslint-plugin-disable lit */ | ||||||
| import { PolymerElement } from "@polymer/polymer/polymer-element"; | import { PolymerElement } from "@polymer/polymer/polymer-element.js"; | ||||||
| import "../../../components/ha-attributes"; | import "../../../components/ha-attributes"; | ||||||
| import LocalizeMixin from "../../../mixins/localize-mixin"; | import LocalizeMixin from "../../../mixins/localize-mixin"; | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,10 +1,10 @@ | |||||||
| import "@polymer/iron-flex-layout/iron-flex-layout-classes"; | import "@polymer/iron-flex-layout/iron-flex-layout-classes.js"; | ||||||
| import "../../../components/ha-icon-button"; | import "../../../components/ha-icon-button"; | ||||||
| import "@polymer/paper-item/paper-item"; | import "@polymer/paper-item/paper-item.js"; | ||||||
| import "@polymer/paper-listbox/paper-listbox"; | import "@polymer/paper-listbox"; | ||||||
| import { html } from "@polymer/polymer/lib/utils/html-tag"; | import { html } from "@polymer/polymer/lib/utils/html-tag.js"; | ||||||
| /* eslint-plugin-disable lit */ | /* eslint-plugin-disable lit */ | ||||||
| import { PolymerElement } from "@polymer/polymer/polymer-element"; | import { PolymerElement } from "@polymer/polymer/polymer-element.js"; | ||||||
| import { isComponentLoaded } from "../../../common/config/is_component_loaded"; | import { isComponentLoaded } from "../../../common/config/is_component_loaded"; | ||||||
| import { attributeClassNames } from "../../../common/entity/attribute_class_names"; | import { attributeClassNames } from "../../../common/entity/attribute_class_names"; | ||||||
| import { computeRTLDirection } from "../../../common/util/compute_rtl"; | import { computeRTLDirection } from "../../../common/util/compute_rtl"; | ||||||
|   | |||||||
| @@ -1,7 +1,7 @@ | |||||||
| import "../../../components/ha-icon-button"; | import "../../../components/ha-icon-button"; | ||||||
| import "../../../components/ha-icon"; | import "../../../components/ha-icon"; | ||||||
| import "@polymer/paper-item/paper-item"; | import "@polymer/paper-item/paper-item.js"; | ||||||
| import "@polymer/paper-listbox/paper-listbox"; | import "@polymer/paper-listbox"; | ||||||
| import { | import { | ||||||
|   css, |   css, | ||||||
|   CSSResult, |   CSSResult, | ||||||
|   | |||||||
| @@ -1,11 +1,11 @@ | |||||||
| import "@polymer/iron-flex-layout/iron-flex-layout-classes"; | import "@polymer/iron-flex-layout/iron-flex-layout-classes.js"; | ||||||
| import "@polymer/paper-item/paper-item"; | import "@polymer/paper-item/paper-item.js"; | ||||||
| import "@polymer/paper-listbox/paper-listbox"; | import "@polymer/paper-listbox"; | ||||||
| import { timeOut } from "@polymer/polymer/lib/utils/async"; | import { timeOut } from "@polymer/polymer/lib/utils/async.js"; | ||||||
| import { Debouncer } from "@polymer/polymer/lib/utils/debounce"; | import { Debouncer } from "@polymer/polymer/lib/utils/debounce.js"; | ||||||
| import { html } from "@polymer/polymer/lib/utils/html-tag"; | import { html } from "@polymer/polymer/lib/utils/html-tag.js"; | ||||||
| /* eslint-plugin-disable lit */ | /* eslint-plugin-disable lit */ | ||||||
| import { PolymerElement } from "@polymer/polymer/polymer-element"; | import { PolymerElement } from "@polymer/polymer/polymer-element.js"; | ||||||
| import { featureClassNames } from "../../../common/entity/feature_class_names"; | import { featureClassNames } from "../../../common/entity/feature_class_names"; | ||||||
| import { supportsFeature } from "../../../common/entity/supports-feature"; | import { supportsFeature } from "../../../common/entity/supports-feature"; | ||||||
| import "../../../components/ha-paper-dropdown-menu"; | import "../../../components/ha-paper-dropdown-menu"; | ||||||
|   | |||||||
| @@ -1,10 +1,10 @@ | |||||||
| import "@material/mwc-button"; | import "@material/mwc-button"; | ||||||
| import "@polymer/app-layout/app-toolbar/app-toolbar"; | import "@polymer/app-layout/app-toolbar/app-toolbar.js"; | ||||||
| import "@polymer/paper-dialog-scrollable/paper-dialog-scrollable"; | import "@polymer/paper-dialog-scrollable"; | ||||||
| import "../../components/ha-icon-button"; | import "../../components/ha-icon-button"; | ||||||
| import { html } from "@polymer/polymer/lib/utils/html-tag"; | import { html } from "@polymer/polymer/lib/utils/html-tag.js"; | ||||||
| /* eslint-plugin-disable lit */ | /* eslint-plugin-disable lit */ | ||||||
| import { PolymerElement } from "@polymer/polymer/polymer-element"; | import { PolymerElement } from "@polymer/polymer/polymer-element.js"; | ||||||
| import { isComponentLoaded } from "../../common/config/is_component_loaded"; | import { isComponentLoaded } from "../../common/config/is_component_loaded"; | ||||||
| import { DOMAINS_MORE_INFO_NO_HISTORY } from "../../common/const"; | import { DOMAINS_MORE_INFO_NO_HISTORY } from "../../common/const"; | ||||||
| import { computeStateDomain } from "../../common/entity/compute_state_domain"; | import { computeStateDomain } from "../../common/entity/compute_state_domain"; | ||||||
|   | |||||||
| @@ -1,4 +1,4 @@ | |||||||
| import "@material/mwc-button/mwc-button"; | import "@material/mwc-button"; | ||||||
| import { | import { | ||||||
|   css, |   css, | ||||||
|   CSSResult, |   CSSResult, | ||||||
|   | |||||||
| @@ -8,7 +8,7 @@ import { | |||||||
|   property, |   property, | ||||||
|   TemplateResult, |   TemplateResult, | ||||||
| } from "lit-element"; | } from "lit-element"; | ||||||
| import { classMap } from "lit-html/directives/class-map"; | import { classMap } from "lit-html/directives/class-map.js"; | ||||||
|  |  | ||||||
| @customElement("mqtt-discovery-payload") | @customElement("mqtt-discovery-payload") | ||||||
| class MQTTDiscoveryPayload extends LitElement { | class MQTTDiscoveryPayload extends LitElement { | ||||||
|   | |||||||
| @@ -8,7 +8,7 @@ import { | |||||||
|   property, |   property, | ||||||
|   TemplateResult, |   TemplateResult, | ||||||
| } from "lit-element"; | } from "lit-element"; | ||||||
| import { classMap } from "lit-html/directives/class-map"; | import { classMap } from "lit-html/directives/class-map.js"; | ||||||
| import { formatTimeWithSeconds } from "../../common/datetime/format_time"; | import { formatTimeWithSeconds } from "../../common/datetime/format_time"; | ||||||
| import { HomeAssistant } from "../../types"; | import { HomeAssistant } from "../../types"; | ||||||
| import { MQTTMessage } from "../../data/mqtt"; | import { MQTTMessage } from "../../data/mqtt"; | ||||||
|   | |||||||
| @@ -1,9 +1,9 @@ | |||||||
| import "@material/mwc-button"; | import "@material/mwc-button"; | ||||||
| import "@polymer/app-layout/app-drawer/app-drawer"; | import "@polymer/app-layout/app-drawer/app-drawer.js"; | ||||||
| import "@polymer/app-layout/app-toolbar/app-toolbar"; | import "@polymer/app-layout/app-toolbar/app-toolbar.js"; | ||||||
| import { html } from "@polymer/polymer/lib/utils/html-tag"; | import { html } from "@polymer/polymer/lib/utils/html-tag.js"; | ||||||
| /* eslint-plugin-disable lit */ | /* eslint-plugin-disable lit */ | ||||||
| import { PolymerElement } from "@polymer/polymer/polymer-element"; | import { PolymerElement } from "@polymer/polymer/polymer-element.js"; | ||||||
| import { computeDomain } from "../../common/entity/compute_domain"; | import { computeDomain } from "../../common/entity/compute_domain"; | ||||||
| import "../../components/ha-icon-button-prev"; | import "../../components/ha-icon-button-prev"; | ||||||
| import { subscribeNotifications } from "../../data/persistent_notification"; | import { subscribeNotifications } from "../../data/persistent_notification"; | ||||||
|   | |||||||
| @@ -1,5 +1,5 @@ | |||||||
| import "@material/mwc-button"; | import "@material/mwc-button"; | ||||||
| import "@polymer/paper-tooltip/paper-tooltip"; | import "@polymer/paper-tooltip"; | ||||||
| import { | import { | ||||||
|   css, |   css, | ||||||
|   CSSResult, |   CSSResult, | ||||||
|   | |||||||
| @@ -1,8 +1,8 @@ | |||||||
| import "@polymer/paper-dialog-scrollable/paper-dialog-scrollable"; | import "@polymer/paper-dialog-scrollable"; | ||||||
| import type { PaperDialogScrollableElement } from "@polymer/paper-dialog-scrollable/paper-dialog-scrollable"; | import type { PaperDialogScrollableElement } from "@polymer/paper-dialog-scrollable"; | ||||||
| import "../../components/ha-icon-button"; | import "../../components/ha-icon-button"; | ||||||
| import "@polymer/paper-input/paper-input"; | import "@polymer/paper-input/paper-input.js"; | ||||||
| import type { PaperInputElement } from "@polymer/paper-input/paper-input"; | import type { PaperInputElement } from "@polymer/paper-input/paper-input.js"; | ||||||
| import { | import { | ||||||
|   css, |   css, | ||||||
|   CSSResult, |   CSSResult, | ||||||
| @@ -14,7 +14,7 @@ import { | |||||||
|   query, |   query, | ||||||
|   TemplateResult, |   TemplateResult, | ||||||
| } from "lit-element"; | } from "lit-element"; | ||||||
| import { classMap } from "lit-html/directives/class-map"; | import { classMap } from "lit-html/directives/class-map.js"; | ||||||
| import { fireEvent } from "../../common/dom/fire_event"; | import { fireEvent } from "../../common/dom/fire_event"; | ||||||
| import { SpeechRecognition } from "../../common/dom/speech-recognition"; | import { SpeechRecognition } from "../../common/dom/speech-recognition"; | ||||||
| import { uid } from "../../common/util/uid"; | import { uid } from "../../common/util/uid"; | ||||||
|   | |||||||
| @@ -1,4 +1,4 @@ | |||||||
| import "@polymer/paper-dialog-scrollable/paper-dialog-scrollable"; | import "@polymer/paper-dialog-scrollable"; | ||||||
| import { | import { | ||||||
|   css, |   css, | ||||||
|   CSSResult, |   CSSResult, | ||||||
|   | |||||||
| @@ -1,7 +1,7 @@ | |||||||
| // Load polyfill first so HTML imports start resolving | // Load polyfill first so HTML imports start resolving | ||||||
| /* eslint-disable import/first */ | /* eslint-disable import/first */ | ||||||
| import "@polymer/paper-styles/typography"; | import "@polymer/paper-styles/typography.js"; | ||||||
| import { setPassiveTouchGestures } from "@polymer/polymer/lib/utils/settings"; | import { setPassiveTouchGestures } from "@polymer/polymer/lib/utils/settings.js"; | ||||||
| import "../layouts/home-assistant"; | import "../layouts/home-assistant"; | ||||||
| import "../resources/html-import/polyfill"; | import "../resources/html-import/polyfill"; | ||||||
| import "../resources/roboto"; | import "../resources/roboto"; | ||||||
|   | |||||||
| @@ -1,5 +1,5 @@ | |||||||
| import "@polymer/polymer/lib/elements/dom-if"; | import "@polymer/polymer/lib/elements/dom-if.js"; | ||||||
| import "@polymer/polymer/lib/elements/dom-repeat"; | import "@polymer/polymer/lib/elements/dom-repeat.js"; | ||||||
| import "../auth/ha-authorize"; | import "../auth/ha-authorize"; | ||||||
| import "../resources/ha-style"; | import "../resources/ha-style"; | ||||||
| import "../resources/roboto"; | import "../resources/roboto"; | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| import objAssign from "es6-object-assign"; | import objAssign from "es6-object-assign"; | ||||||
| import "mdn-polyfills/Array.prototype.includes"; | import "mdn-polyfills/Array.prototype.includes"; | ||||||
| import "regenerator-runtime/runtime"; | import "regenerator-runtime"; | ||||||
| import "unfetch/polyfill"; | import "unfetch/polyfill"; | ||||||
|  |  | ||||||
| objAssign.polyfill(); | objAssign.polyfill(); | ||||||
|   | |||||||
Some files were not shown because too many files have changed in this diff Show More
		Reference in New Issue
	
	Block a user