Skip to content

Commit

Permalink
Rename shopping-list-card to todo-list-card (#18378)
Browse files Browse the repository at this point in the history
  • Loading branch information
bramkragten authored Oct 24, 2023
1 parent b12e498 commit 8efc081
Show file tree
Hide file tree
Showing 12 changed files with 578 additions and 549 deletions.
3 changes: 2 additions & 1 deletion demo/src/configs/teachingbirds/lovelace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,8 @@ export const demoLovelaceTeachingbirds: DemoConfig["lovelace"] = () => ({
state_filter: ["on"],
},
{
type: "shopping-list",
type: "todo-list",
entity: "todo.shopping_list",
},
{
entities: [
Expand Down
3 changes: 0 additions & 3 deletions gallery/src/pages/lovelace/shopping-list-card.markdown

This file was deleted.

3 changes: 3 additions & 0 deletions gallery/src/pages/lovelace/todo-list-card.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
title: Todo List Card
---
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,22 @@ const CONFIGS = [
{
heading: "List example",
config: `
- type: shopping-list
- type: todo-list
entity: todo.shopping_list
`,
},
{
heading: "List with title example",
config: `
- type: shopping-list
- type: todo-list
title: Shopping List
entity: todo.read_only
`,
},
];

@customElement("demo-lovelace-shopping-list-card")
class DemoShoppingListEntity extends LitElement {
@customElement("demo-lovelace-todo-list-card")
class DemoTodoListEntity extends LitElement {
@query("#demos") private _demoRoot!: HTMLElement;

protected render(): TemplateResult {
Expand All @@ -54,6 +54,6 @@ class DemoShoppingListEntity extends LitElement {

declare global {
interface HTMLElementTagNameMap {
"demo-lovelace-shopping-list-card": DemoShoppingListEntity;
"demo-lovelace-todo-list-card": DemoTodoListEntity;
}
}
Loading

0 comments on commit 8efc081

Please sign in to comment.