Fix gallery element definitions (#9046)

This commit is contained in:
Paulus Schoutsen 2021-04-29 16:10:29 -07:00 committed by GitHub
parent acd335e249
commit a288fd370f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
19 changed files with 97 additions and 21 deletions

View File

@ -93,4 +93,8 @@ class DemoAlarmPanelEntity extends LitElement {
} }
} }
customElements.define("demo-hui-alarm-panel-card", DemoAlarmPanelEntity); declare global {
interface HTMLElementTagNameMap {
"demo-hui-alarm-panel-card": DemoAlarmPanelEntity;
}
}

View File

@ -75,4 +75,8 @@ class DemoConditional extends LitElement {
} }
} }
customElements.define("demo-hui-conditional-card", DemoConditional); declare global {
interface HTMLElementTagNameMap {
"demo-hui-conditional-card": DemoConditional;
}
}

View File

@ -239,4 +239,8 @@ class DemoEntities extends LitElement {
} }
} }
customElements.define("demo-hui-entities-card", DemoEntities); declare global {
interface HTMLElementTagNameMap {
"demo-hui-entities-card": DemoEntities;
}
}

View File

@ -91,4 +91,8 @@ class DemoButtonEntity extends LitElement {
} }
} }
customElements.define("demo-hui-entity-button-card", DemoButtonEntity); declare global {
interface HTMLElementTagNameMap {
"demo-hui-entity-button-card": DemoButtonEntity;
}
}

View File

@ -132,4 +132,8 @@ class DemoEntityFilter extends LitElement {
} }
} }
customElements.define("demo-hui-entity-filter-card", DemoEntityFilter); declare global {
interface HTMLElementTagNameMap {
"demo-hui-entity-filter-card": DemoEntityFilter;
}
}

View File

@ -129,4 +129,8 @@ class DemoGaugeEntity extends LitElement {
} }
} }
customElements.define("demo-hui-gauge-card", DemoGaugeEntity); declare global {
interface HTMLElementTagNameMap {
"demo-hui-gauge-card": DemoGaugeEntity;
}
}

View File

@ -186,7 +186,7 @@ const CONFIGS = [
name: name:
- light.kitchen_lights - light.kitchen_lights
- entity: lock.kitchen_door - entity: lock.kitchen_door
name: name:
- light.ceiling_lights - light.ceiling_lights
`, `,
}, },
@ -194,7 +194,7 @@ const CONFIGS = [
heading: "Custom tap action", heading: "Custom tap action",
config: ` config: `
- type: glance - type: glance
columns: 4 columns: 4
entities: entities:
- entity: lock.kitchen_door - entity: lock.kitchen_door
name: Custom name: Custom
@ -232,4 +232,8 @@ class DemoGlanceEntity extends LitElement {
} }
} }
customElements.define("demo-hui-glance-card", DemoGlanceEntity); declare global {
interface HTMLElementTagNameMap {
"demo-hui-glance-card": DemoGlanceEntity;
}
}

View File

@ -42,4 +42,8 @@ class DemoIframe extends LitElement {
} }
} }
customElements.define("demo-hui-iframe-card", DemoIframe); declare global {
interface HTMLElementTagNameMap {
"demo-hui-iframe-card": DemoIframe;
}
}

View File

@ -85,4 +85,8 @@ class DemoLightEntity extends LitElement {
} }
} }
customElements.define("demo-hui-light-card", DemoLightEntity); declare global {
interface HTMLElementTagNameMap {
"demo-hui-light-card": DemoLightEntity;
}
}

View File

@ -183,4 +183,8 @@ class DemoMap extends LitElement {
} }
} }
customElements.define("demo-hui-map-card", DemoMap); declare global {
interface HTMLElementTagNameMap {
"demo-hui-map-card": DemoMap;
}
}

View File

@ -276,4 +276,8 @@ class DemoMarkdown extends LitElement {
} }
} }
customElements.define("demo-hui-markdown-card", DemoMarkdown); declare global {
interface HTMLElementTagNameMap {
"demo-hui-markdown-card": DemoMarkdown;
}
}

View File

@ -180,4 +180,8 @@ class DemoHuiMediaControlCard extends LitElement {
} }
} }
customElements.define("demo-hui-media-control-card", DemoHuiMediaControlCard); declare global {
interface HTMLElementTagNameMap {
"demo-hui-media-control-card": DemoHuiMediaControlCard;
}
}

View File

@ -77,4 +77,8 @@ class DemoHuiMediaPlayerRow extends LitElement {
} }
} }
customElements.define("demo-hui-media-player-row", DemoHuiMediaPlayerRow); declare global {
interface HTMLElementTagNameMap {
"demo-hui-media-player-row": DemoHuiMediaPlayerRow;
}
}

View File

@ -147,4 +147,8 @@ class DemoPictureElements extends LitElement {
} }
} }
customElements.define("demo-hui-picture-elements-card", DemoPictureElements); declare global {
interface HTMLElementTagNameMap {
"demo-hui-picture-elements-card": DemoPictureElements;
}
}

View File

@ -102,4 +102,8 @@ class DemoPictureEntity extends LitElement {
} }
} }
customElements.define("demo-hui-picture-entity-card", DemoPictureEntity); declare global {
interface HTMLElementTagNameMap {
"demo-hui-picture-entity-card": DemoPictureEntity;
}
}

View File

@ -143,4 +143,8 @@ class DemoPictureGlance extends LitElement {
} }
} }
customElements.define("demo-hui-picture-glance-card", DemoPictureGlance); declare global {
interface HTMLElementTagNameMap {
"demo-hui-picture-glance-card": DemoPictureGlance;
}
}

View File

@ -52,4 +52,8 @@ export class DemoPlantEntity extends LitElement {
} }
} }
customElements.define("demo-hui-plant-card", DemoPlantEntity); declare global {
interface HTMLElementTagNameMap {
"demo-hui-plant-card": DemoPlantEntity;
}
}

View File

@ -48,4 +48,8 @@ class DemoShoppingListEntity extends LitElement {
} }
} }
customElements.define("demo-hui-shopping-list-card", DemoShoppingListEntity); declare global {
interface HTMLElementTagNameMap {
"demo-hui-shopping-list-card": DemoShoppingListEntity;
}
}

View File

@ -96,4 +96,8 @@ class DemoThermostatEntity extends LitElement {
} }
} }
customElements.define("demo-hui-thermostat-card", DemoThermostatEntity); declare global {
interface HTMLElementTagNameMap {
"demo-hui-thermostat-card": DemoThermostatEntity;
}
}