extra-map-card 1.2.13 → 1.3.0
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 +35 -0
- package/dist/components/emc-sub-entity-editor.d.ts +27 -0
- package/dist/extra-map-card-bundle.js +189 -20
- package/dist/extra-map-editor.d.ts +11 -2
- package/dist/index.d.ts +2 -0
- package/dist/index.js +189 -20
- package/dist/types/config.d.ts +9 -0
- package/package.json +3 -2
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ExtraMapCardConfig, HomeAssistant, LovelaceCardEditor, MapEntityConfig } from '@types';
|
|
2
2
|
import { LitElement, nothing } from 'lit';
|
|
3
|
+
import './components/emc-sub-entity-editor';
|
|
4
|
+
import './components/emc-entity-editor';
|
|
3
5
|
export interface EntitiesEditorEvent extends CustomEvent {
|
|
4
6
|
detail: {
|
|
5
|
-
entities?:
|
|
7
|
+
entities?: MapEntityConfig[];
|
|
6
8
|
item?: any;
|
|
7
9
|
};
|
|
8
10
|
target: EventTarget | null;
|
|
@@ -11,6 +13,7 @@ export declare class ExtraMapEditor extends LitElement implements LovelaceCardEd
|
|
|
11
13
|
hass?: HomeAssistant;
|
|
12
14
|
private _config?;
|
|
13
15
|
private _configEntities?;
|
|
16
|
+
private _subEntityEditorConfig?;
|
|
14
17
|
connectedCallback(): void;
|
|
15
18
|
disconnectedCallback(): void;
|
|
16
19
|
setConfig(config: ExtraMapCardConfig): void;
|
|
@@ -18,10 +21,16 @@ export declare class ExtraMapEditor extends LitElement implements LovelaceCardEd
|
|
|
18
21
|
private _computeLabelCallback;
|
|
19
22
|
private _valueChanged;
|
|
20
23
|
private _entitiesValueChanged;
|
|
24
|
+
private _editDetailEntity;
|
|
25
|
+
private _goBack;
|
|
26
|
+
private _handleSubEntityConfigChanged;
|
|
21
27
|
static get styles(): import("lit").CSSResult;
|
|
22
28
|
}
|
|
23
29
|
declare global {
|
|
24
30
|
interface HTMLElementTagNameMap {
|
|
25
31
|
'extra-map-editor': ExtraMapEditor;
|
|
26
32
|
}
|
|
33
|
+
interface Window {
|
|
34
|
+
ExtraMapEditor: ExtraMapEditor;
|
|
35
|
+
}
|
|
27
36
|
}
|
package/dist/index.d.ts
CHANGED