extra-map-card 1.6.2 → 1.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/emc-entity-editor.d.ts +1 -1
- package/dist/constants/map-schema.d.ts +130 -79
- package/dist/extra-map-card-bundle.js +46 -40
- package/dist/extra-map-card.d.ts +10 -1
- package/dist/extra-map-editor.d.ts +3 -1
- package/dist/index.js +46 -40
- package/dist/types/config.d.ts +1 -0
- package/dist/types/ha-frontend/common/datetime/format_date.d.ts +12 -0
- package/dist/types/ha-frontend/common/datetime/format_date_time.d.ts +9 -0
- package/dist/types/ha-frontend/common/datetime/format_time.d.ts +6 -0
- package/dist/types/ha-frontend/common/datetime/resolve-time-zone.d.ts +3 -0
- package/dist/types/ha-frontend/common/datetime/seconds_to_duration.d.ts +1 -0
- package/dist/types/ha-frontend/common/datetime/use_am_pm.d.ts +2 -0
- package/dist/types/ha-frontend/common/entity/compute_domain.d.ts +1 -0
- package/dist/types/ha-frontend/common/entity/compute_state_domain.d.ts +2 -0
- package/dist/types/ha-frontend/common/translations/localize.d.ts +1 -0
- package/dist/types/ha-frontend/data/{frontend-local-data.d.ts → translation.d.ts} +10 -0
- package/dist/types/ha-frontend/data/ws-templates.d.ts +1 -0
- package/dist/types/ha-frontend/home-assistant.d.ts +1 -1
- package/dist/types/ha-frontend/lovelace/lovelace.d.ts +11 -23
- package/dist/types/index.d.ts +4 -1
- package/dist/utilities/find-entities.d.ts +1 -1
- package/package.json +7 -5
package/dist/extra-map-card.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { HomeAssistant, LovelaceCard, LovelaceCardEditor, LovelaceGridOptions } from '@types';
|
|
2
2
|
import { LitElement, TemplateResult, nothing, PropertyValues } from 'lit';
|
|
3
3
|
import { ExtraMapCardConfig } from 'types/config';
|
|
4
|
-
import { EmcMap } from './components/emc-map';
|
|
5
4
|
import './components/emc-map';
|
|
6
5
|
import './components/emc-sub-entity-editor';
|
|
7
6
|
import './components/emc-entity-editor';
|
|
7
|
+
import { EmcMap } from './components/emc-map';
|
|
8
8
|
export declare class ExtraMapCard extends LitElement implements LovelaceCard {
|
|
9
9
|
static getConfigElement(): Promise<LovelaceCardEditor>;
|
|
10
10
|
hass: HomeAssistant;
|
|
@@ -15,10 +15,14 @@ export declare class ExtraMapCard extends LitElement implements LovelaceCard {
|
|
|
15
15
|
private _colorDict;
|
|
16
16
|
private _colorIndex;
|
|
17
17
|
private _zoom;
|
|
18
|
+
_hoursToShow: number;
|
|
18
19
|
private _subscribed?;
|
|
20
|
+
private _templateResults;
|
|
21
|
+
private _unsubRenderTemplates;
|
|
19
22
|
private _stateHistory?;
|
|
20
23
|
private _error?;
|
|
21
24
|
_mapTiler?: EmcMap;
|
|
25
|
+
constructor();
|
|
22
26
|
private _getAllEntities;
|
|
23
27
|
static getStubConfig(hass: HomeAssistant, entities: string[], entitiesFallback: string[]): ExtraMapCardConfig;
|
|
24
28
|
setConfig(config: ExtraMapCardConfig): void;
|
|
@@ -29,6 +33,11 @@ export declare class ExtraMapCard extends LitElement implements LovelaceCard {
|
|
|
29
33
|
protected willUpdate(changedProps: PropertyValues): void;
|
|
30
34
|
connectedCallback(): void;
|
|
31
35
|
disconnectedCallback(): void;
|
|
36
|
+
private _trySubscribeTemplates;
|
|
37
|
+
private _subscribeTemplateKey;
|
|
38
|
+
private _tryDisconnect;
|
|
39
|
+
private _tryDisconnectKey;
|
|
40
|
+
private _getValue;
|
|
32
41
|
private _subscribeHistory;
|
|
33
42
|
private _unsubscribeHistory;
|
|
34
43
|
protected updated(changedProps: PropertyValues): void;
|
|
@@ -6,6 +6,7 @@ import './components/emc-sub-entity-editor';
|
|
|
6
6
|
import './components/emc-entity-editor';
|
|
7
7
|
export declare class ExtraMapEditor extends LitElement implements LovelaceCardEditor {
|
|
8
8
|
hass?: HomeAssistant;
|
|
9
|
+
noTitle: boolean;
|
|
9
10
|
private _config?;
|
|
10
11
|
private _configEntities?;
|
|
11
12
|
private _subEntityEditorConfig?;
|
|
@@ -14,8 +15,9 @@ export declare class ExtraMapEditor extends LitElement implements LovelaceCardEd
|
|
|
14
15
|
connectedCallback(): void;
|
|
15
16
|
disconnectedCallback(): void;
|
|
16
17
|
setConfig(config: ExtraMapCardConfig): void;
|
|
17
|
-
protected render():
|
|
18
|
+
protected render(): import("lit-html").TemplateResult<1> | typeof nothing;
|
|
18
19
|
private _computeLabelCallback;
|
|
20
|
+
private computeHelper;
|
|
19
21
|
private _valueChanged;
|
|
20
22
|
private _entitiesValueChanged;
|
|
21
23
|
private _editDetailEntity;
|