| 1 |
/** |
| 2 |
* @license |
| 3 |
* Copyright 2024 Google LLC |
| 4 |
* SPDX-License-Identifier: BSD-3-Clause |
| 5 |
*/ |
| 6 |
|
| 7 |
import {LitElement, html} from 'lit'; |
| 8 |
import {customElement} from 'lit/decorators.js'; |
| 9 |
import {A, B, C} from './mixins.js'; |
| 10 |
|
| 11 |
// Dummy values passed into mixins |
| 12 |
const x = () => 'x'; |
| 13 |
const y = () => |
| 14 |
class { |
| 15 |
z = 'hi'; |
| 16 |
}; |
| 17 |
const z = () => y(); |
| 18 |
|
| 19 |
@customElement('element-b') |
| 20 |
export class ElementB extends A(x(), B('hi', y(), C(LitElement)), z()) { |
| 21 |
render() { |
| 22 |
return html`<h1>${this.a} ${this.b} ${this.c}</h1>`; |
| 23 |
} |
| 24 |
} |