import { LitElement, html, css, nothing } from 'lit'; import { customElement, property } from 'lit/decorators.js'; import '@awesome.me/webawesome/dist/components/icon/icon.js'; /** * Library status for an entity (artist, album, or track). * * - `in-library`: the entity is already in the user's local library. * - `partial`: some of it is here and the rest is known to be missing * — an album whose files declare twelve tracks where nine are held. * Only ever correct when that total is *known*; see `owned` / * `expected` below. * - `queued`: the entity has been handed off to a download client but * hasn't arrived yet. Reserved for future download-client plumbing. * - `not-in-library` (default): the entity is not owned and has not * been requested. */ export type LibraryStatus = | 'in-library' | 'partial' | 'queued' | 'not-in-library'; /** * Tri-state library status indicator: a small circular badge embedded * in track rows, album cards, and artist cards. * * **It is a badge, not a control.** It was a `