// Theme API 2 (modding API version 2, table of contracts version 1). Generated from crates/modding and // crates/themes (the embedded contracts.json); do not edit. // Regenerate with `cargo run -p modding --example write_sdk`. // // A theme says which version of this contract it was written for with `"themeApi": 2` in its theme.json (absent: 1). A theme that declares an older // version keeps loading; the templates of what a later version added are refused for it, with a notice. Added in theme API 2 (`"themeApi": 2`): // screen.chat, screen.clan, screen.download, screen.help, screen.lobby, screen.mods, screen.profile, screen.replay, screen.result, screen.settings, screen.skins, screen.title, screen.tournaments, catalog.card, download.card, library.chartRow, player.card. // // Ambient declarations of a theme's `theme.ts`: `defineTheme` and the builders (`box`, `row`, `text`, `bind`, `on`, ...). // They are also the members of the typed context `c` of each template: `defineTheme` hands every template the // context of its own screen or contract (`c.bind("path")`, `c.on.press("output")`, `c.slot("name")`). // A script that declares a top-level name of its own (`const box = ...`) adds `export {}` to be a module. declare const themeBrand: unique symbol; declare const themeType: unique symbol; declare const themeEvent: unique symbol; declare const themeStructure: unique symbol; /** A node of a template: what `row`, `text`, `button`, `slot`, ... return. */ interface ThemeNode { readonly [themeBrand]: "node"; } /** What a node shows or an output receives, read by the page at render time: `bind("path")`, `t("key")`, `fmt.rate("path")`. */ interface ThemeValue { readonly [themeBrand]: "value"; readonly [themeType]?: T; } /** A condition made of `field("path")`: `field("pauses.total").gt(0)`. Combine with `and`, `or` and `not`. */ interface ThemeCond { readonly [themeBrand]: "cond"; and(...others: ThemeCond[]): ThemeCond; or(...others: ThemeCond[]): ThemeCond; not(): ThemeCond; } /** What a control does: `on.press("confirm")`, `on.change("rating.pick")`, `on.pick("sort.set")`. */ interface ThemeEvent { readonly [themeBrand]: "event"; readonly [themeEvent]?: K; } /** The data a path leads to is an object or a list: only `field(path).truthy()` and `.falsy()` read it. */ interface ThemeStructure { readonly [themeStructure]: true; } /** A string, a number, a boolean (all literal), a value of the data, or a list of those (written one after the other). */ type ThemeText = string | number | boolean | ThemeValue | readonly ThemeText[]; /** An argument of an output: a literal of its type or a value of the data. */ type ThemeArg = T | ThemeValue; /** A child: a node, or a list of children; `null`, `undefined` and `false` leave a place empty (`cond && node`). */ type ThemeChild = ThemeNode | null | undefined | false | readonly ThemeChild[]; /** A step of the spacing scale (`--pv-s0` to `--pv-s10`). */ type ThemeStep = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10"; type ThemeContainerTag = "div" | "section" | "header" | "footer" | "nav" | "aside" | "main" | "article" | "ul" | "li"; type ThemeTextTag = "span" | "p" | "h1" | "h2" | "h3" | "strong" | "em" | "label" | "small"; /** What the builders are typed with: the parts, host classes and CSS variables, outputs, slots of a screen or contract. */ interface ThemeTarget { parts: string; hostClasses: string; cssVars: string; outputs: { [name: string]: readonly unknown[] }; slots: string; contracts: string; } /** The typed paths of an input and the lists an `each` loops over, each with the scope of its item. */ interface ThemeScope { paths: { [path: string]: unknown }; lists: { [path: string]: ThemeScope }; } interface ThemeAnyTarget extends ThemeTarget { contracts: ThemeContractName; } interface ThemeAnyScope extends ThemeScope { paths: { [path: string]: any }; lists: { [path: string]: ThemeAnyScope }; } /** Paths whose data is text, a number or a boolean: what `bind` reads. */ type ThemeBindable = { [P in keyof S["paths"] & string]: S["paths"][P] extends string | number | boolean ? P : never; }[keyof S["paths"] & string]; type ThemeNumeric = { [P in keyof S["paths"] & string]: S["paths"][P] extends number ? P : never; }[keyof S["paths"] & string]; /** Where a contract can be mounted from: the item of a list (`entries[]`), or the item of the enclosing `each` (`""`). */ type ThemeFrom = keyof S["paths"] & string | keyof S["lists"] & string | `${keyof S["lists"] & string}[]`; interface ThemeTruthField { /** The data is present (an object, a non-empty list or text, a number other than 0, true). */ truthy(): ThemeCond; falsy(): ThemeCond; } interface ThemeEqField extends ThemeTruthField { eq(value: T): ThemeCond; ne(value: T): ThemeCond; in(values: readonly T[]): ThemeCond; } interface ThemeNumberField extends ThemeEqField { gt(value: number): ThemeCond; ge(value: number): ThemeCond; lt(value: number): ThemeCond; le(value: number): ThemeCond; } interface ThemeAnyField extends ThemeNumberField { eq(value: string | number | boolean): ThemeCond; ne(value: string | number | boolean): ThemeCond; in(values: readonly (string | number)[]): ThemeCond; } /** The comparisons that fit the type of a path. */ type ThemeFieldOf = 0 extends 1 & T ? ThemeAnyField : [T] extends [number] ? ThemeNumberField : [T] extends [string | boolean] ? ThemeEqField : ThemeTruthField; type ThemeArgs = { [K in keyof A]: ThemeArg }; /** The arguments written before the payload a toggle or dropdown appends. */ type ThemeLead = number extends A["length"] ? A : A extends readonly [...infer L extends unknown[], unknown] ? L : []; interface ThemeOn { /** The button is pressed (click, Enter, Space): calls the output with these arguments. */ press(output: O, ...args: ThemeArgs): ThemeEvent<"press">; /** The toggle changes: calls the output with these arguments, then the new state (a boolean). */ change(output: O, ...args: ThemeArgs>): ThemeEvent<"change">; /** An option of the dropdown is picked: calls the output with these arguments, then the option's value (a string). */ pick(output: O, ...args: ThemeArgs>): ThemeEvent<"pick">; } interface ThemeFmt { /** A playback rate: `1.25` (no `x`). */ rate(path: ThemeNumeric, digits?: 0 | 1 | 2 | 3 | 4 | 5 | 6): ThemeValue; /** A compact count, floored: `12k`, `1.9k`. */ count(path: ThemeNumeric, digits?: 0 | 1 | 2 | 3 | 4 | 5 | 6): ThemeValue; /** A number that is ALREADY a percentage (97.4 gives `97.40%`); 2 digits by default. */ percent(path: ThemeNumeric, digits?: 0 | 1 | 2 | 3 | 4 | 5 | 6): ThemeValue; /** A duration in SECONDS as `m:ss` (or `h:mm:ss`). */ duration(path: ThemeNumeric, digits?: 0 | 1 | 2 | 3 | 4 | 5 | 6): ThemeValue; /** A number with a fixed count of decimals (`toFixed(digits)`, 2 by default). */ fixed(path: ThemeNumeric, digits?: 0 | 1 | 2 | 3 | 4 | 5 | 6): ThemeValue; } /** Attributes every node takes. */ interface ThemeAttrs { /** Classes: the theme's own (selectors of its `theme.css`) or host classes of the screen or contract. */ class?: T["hostClasses"] | (string & {}) | readonly (T["hostClasses"] | (string & {}))[]; /** Classes present while a condition holds: `{ selected: field("selected").truthy() }`. */ classWhen?: { readonly [name: string]: ThemeCond } | readonly { class: string; if: ThemeCond }[]; /** `data-part` of an element of the contract. */ part?: T["parts"]; role?: ThemeRole; aria?: { busy?: ThemeText; live?: "polite" | "assertive" | "off"; label?: ThemeText; pressed?: ThemeText; expanded?: ThemeText; current?: ThemeText; describedby?: ThemeText; }; hidden?: ThemeCond; inert?: ThemeCond; /** `data-` attributes: `true` gives `data-name=""`, `false` leaves the attribute out. */ data?: { readonly [name: string]: ThemeText }; /** Custom properties: the CSS variables of the screen or `--tpl-*`. */ vars?: { readonly [K in T["cssVars"] | `--tpl-${string}`]?: ThemeText }; } /** Attributes of the nodes that lay their children out. */ interface ThemeLayout extends ThemeAttrs { gap?: ThemeStep; pad?: ThemeStep; align?: "start" | "center" | "end" | "stretch" | "baseline"; justify?: "start" | "center" | "end" | "between" | "around" | "evenly"; wrap?: boolean; /** `flex-grow`, 0 to 12. */ grow?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12; /** The node can take keyboard focus (a container that acts as a control). */ focusable?: boolean; } interface ThemeContainerAttrs extends ThemeLayout { as?: ThemeContainerTag; } /** The builders of a template, typed for a target (outputs, slots, parts) and a scope (the paths of its input). */ interface ThemeBuilders { /** A block. */ box(...children: ThemeChild[]): ThemeNode; box(attrs: ThemeContainerAttrs, ...children: ThemeChild[]): ThemeNode; /** Children side by side. */ row(...children: ThemeChild[]): ThemeNode; row(attrs: ThemeContainerAttrs, ...children: ThemeChild[]): ThemeNode; /** Children one under the other. */ column(...children: ThemeChild[]): ThemeNode; column(attrs: ThemeContainerAttrs, ...children: ThemeChild[]): ThemeNode; /** Children on top of each other. */ stack(...children: ThemeChild[]): ThemeNode; stack(attrs: ThemeContainerAttrs, ...children: ThemeChild[]): ThemeNode; /** A grid; tracks are `auto`, `1fr`, `120px`, `50%`, `minmax(0,1fr)`. */ grid(...children: ThemeChild[]): ThemeNode; grid(attrs: ThemeLayout & { columns?: readonly string[]; rows?: readonly string[] }, ...children: ThemeChild[]): ThemeNode; /** A scrolling area. */ scroll(...children: ThemeChild[]): ThemeNode; scroll(attrs: ThemeLayout & { axis?: "y" | "x" | "both" }, ...children: ThemeChild[]): ThemeNode; /** Empty room that grows, or a fixed `size`. */ spacer(attrs?: ThemeAttrs & { size?: ThemeStep }): ThemeNode; /** Text: a literal, `bind("path")`, `t("key")`, `fmt.rate("path")` or a list of those. `tween: true` (a `fmt` value only) counts the number up or down to its new value instead of jumping, and puts `data-changed="up"` or `"down"` on the element for 700 ms after each change (what a `theme.css` animation hangs on); under reduced motion the number jumps and the mark is still set. `letters: true` makes each letter its own element (`[data-letter]`, `--i` its position from 0, `--n` on the text the number of letters): a `theme.css` staggers an animation along the word with `animation-delay: calc(var(--i) * 40ms)`. `scramble: true` shows random characters that settle on the new text, left to right, in 400 ms each time the value changes (never the first value, never under reduced motion); both carry `data-changed` for 700 ms after a change. Neither goes with `tween`. */ text(value: ThemeText, attrs?: ThemeAttrs & { as?: ThemeTextTag; tween?: boolean; letters?: boolean; scramble?: boolean }): ThemeNode; /** A lucide icon: its name, or `bind("path")` of a text field that holds one (`mod.bind("icon")`: the mod's own icon). */ icon(name: ThemeIcon | ThemeValue, attrs?: ThemeAttrs & { size?: number }): ThemeNode; /** An image of the theme (`"images/x.png"`) or the picture found at a path of the data (`bind("path")`). */ image(src: string | ThemeValue, attrs: ThemeAttrs & { alt: ThemeText; fit?: "cover" | "contain" }): ThemeNode; /** A button; its `on` is `on.press("output")`. */ button( attrs: ThemeAttrs & { variant?: "primary" | "plain" | "quiet"; label?: ThemeText; disabled?: ThemeCond; pressed?: ThemeCond; describedBy?: T["parts"]; on: ThemeEvent<"press">; }, ...children: ThemeChild[] ): ThemeNode; /** A switch; its `on` is `on.change("output")`. */ toggle(attrs: ThemeAttrs & { label: ThemeText; checked: ThemeCond; on: ThemeEvent<"change"> }): ThemeNode; /** A gauge. */ meter(attrs: ThemeAttrs & { value: ThemeText; min?: number; max?: number; label: ThemeText }): ThemeNode; /** A drop-down list of the `{ value, label, group, detail }` options found at the path `options`; its `on` is `on.pick("output")`. */ dropdown( attrs: ThemeAttrs & { label: ThemeText; ariaLabel?: ThemeText; value: ThemeText; options: keyof S["paths"] & string | keyof S["lists"] & string; displayValue?: ThemeText; on: ThemeEvent<"pick">; }, ): ThemeNode; /** A named place of the screen (a screen template) or of the contract (a component template). */ slot(name: T["slots"]): ThemeNode; /** Mounts a contract with the data found at `from`: it renders with its own template, wherever you put it. */ slot(contract: T["contracts"], options: { from: ThemeFrom }): ThemeNode; /** Repeats what `build` returns for every element of a list; `item` reads the element (`item.bind("name")`). */ each( of: L, build: (item: ThemeBuilders) => ThemeNode | readonly ThemeNode[], options?: { as?: string; key?: keyof S["lists"][L]["paths"] & string }, ): ThemeNode; /** Shows `then` while the condition holds, `otherwise` else. */ when(test: ThemeCond, then: ThemeNode | readonly ThemeNode[], otherwise?: ThemeNode | readonly ThemeNode[]): ThemeNode; /** A group of tabs: the game draws its tab bar (one tab per item, `label` names the bar) and shows the chosen tab's nodes; a group of one tab draws no bar. Put `slot("visualizer")` alone in it to keep the preview on screen, or beside `slot("leaderboardPanel")` to switch between them. `collapsible: true` adds a fold button: folded, the group shows that button alone and carries `data-collapsed` (the preview in it stops; the Visualize key unfolds it). */ tabs(attrs: ThemeAttrs & { label: ThemeText; collapsible?: boolean }, items: readonly { label: ThemeText; icon?: ThemeIcon; children: ThemeNode | readonly ThemeNode[] }[]): ThemeNode; /** The data at a path of the input (`""` is the item of an `each`). */ bind

>(path: P): ThemeValue; /** A field of the input, to compare: `field("pauses.total").gt(0)`. */ field

(path: P): ThemeFieldOf; readonly on: ThemeOn; /** A translated text; `args` fill its placeholders. */ t(key: string, args?: { readonly [name: string]: ThemeText }): ThemeValue; readonly fmt: ThemeFmt; } /** The icons of `icon(name)` and of tabs: every lucide name (lucide.dev/icons). */ type ThemeIcon = "a-arrow-down" | "a-arrow-up" | "a-large-small" | "accessibility" | "activity" | "air-vent" | "airplay" | "alarm-clock" | "alarm-clock-check" | "alarm-clock-minus" | "alarm-clock-off" | "alarm-clock-plus" | "alarm-smoke" | "album" | "align-center-horizontal" | "align-center-vertical" | "align-end-horizontal" | "align-end-vertical" | "align-horizontal-distribute-center" | "align-horizontal-distribute-end" | "align-horizontal-distribute-start" | "align-horizontal-justify-center" | "align-horizontal-justify-end" | "align-horizontal-justify-start" | "align-horizontal-space-around" | "align-horizontal-space-between" | "align-start-horizontal" | "align-start-vertical" | "align-vertical-distribute-center" | "align-vertical-distribute-end" | "align-vertical-distribute-start" | "align-vertical-justify-center" | "align-vertical-justify-end" | "align-vertical-justify-start" | "align-vertical-space-around" | "align-vertical-space-between" | "ambulance" | "ampersand" | "ampersands" | "amphora" | "anchor" | "angry" | "annoyed" | "antenna" | "anvil" | "aperture" | "app-window" | "app-window-mac" | "apple" | "archive" | "archive-restore" | "archive-x" | "armchair" | "arrow-big-down" | "arrow-big-down-dash" | "arrow-big-left" | "arrow-big-left-dash" | "arrow-big-right" | "arrow-big-right-dash" | "arrow-big-up" | "arrow-big-up-dash" | "arrow-down" | "arrow-down-0-1" | "arrow-down-1-0" | "arrow-down-a-z" | "arrow-down-from-line" | "arrow-down-left" | "arrow-down-narrow-wide" | "arrow-down-right" | "arrow-down-to-dot" | "arrow-down-to-line" | "arrow-down-up" | "arrow-down-wide-narrow" | "arrow-down-z-a" | "arrow-left" | "arrow-left-from-line" | "arrow-left-right" | "arrow-left-to-line" | "arrow-right" | "arrow-right-from-line" | "arrow-right-left" | "arrow-right-to-line" | "arrow-up" | "arrow-up-0-1" | "arrow-up-1-0" | "arrow-up-a-z" | "arrow-up-down" | "arrow-up-from-dot" | "arrow-up-from-line" | "arrow-up-left" | "arrow-up-narrow-wide" | "arrow-up-right" | "arrow-up-to-line" | "arrow-up-wide-narrow" | "arrow-up-z-a" | "arrows-up-from-line" | "asterisk" | "at-sign" | "atom" | "audio-lines" | "audio-waveform" | "award" | "axe" | "axis-3d" | "baby" | "backpack" | "badge" | "badge-alert" | "badge-cent" | "badge-check" | "badge-dollar-sign" | "badge-euro" | "badge-indian-rupee" | "badge-info" | "badge-japanese-yen" | "badge-minus" | "badge-percent" | "badge-plus" | "badge-pound-sterling" | "badge-question-mark" | "badge-russian-ruble" | "badge-swiss-franc" | "badge-turkish-lira" | "badge-x" | "baggage-claim" | "balloon" | "ban" | "banana" | "bandage" | "banknote" | "banknote-arrow-down" | "banknote-arrow-up" | "banknote-x" | "barcode" | "barrel" | "baseline" | "bath" | "battery" | "battery-charging" | "battery-full" | "battery-low" | "battery-medium" | "battery-plus" | "battery-warning" | "beaker" | "bean" | "bean-off" | "bed" | "bed-double" | "bed-single" | "beef" | "beer" | "beer-off" | "bell" | "bell-dot" | "bell-electric" | "bell-minus" | "bell-off" | "bell-plus" | "bell-ring" | "between-horizontal-end" | "between-horizontal-start" | "between-vertical-end" | "between-vertical-start" | "biceps-flexed" | "bike" | "binary" | "binoculars" | "biohazard" | "bird" | "birdhouse" | "bitcoin" | "blend" | "blinds" | "blocks" | "bluetooth" | "bluetooth-connected" | "bluetooth-off" | "bluetooth-searching" | "bold" | "bolt" | "bomb" | "bone" | "book" | "book-a" | "book-alert" | "book-audio" | "book-check" | "book-copy" | "book-dashed" | "book-down" | "book-headphones" | "book-heart" | "book-image" | "book-key" | "book-lock" | "book-marked" | "book-minus" | "book-open" | "book-open-check" | "book-open-text" | "book-plus" | "book-search" | "book-text" | "book-type" | "book-up" | "book-up-2" | "book-user" | "book-x" | "bookmark" | "bookmark-check" | "bookmark-minus" | "bookmark-plus" | "bookmark-x" | "boom-box" | "bot" | "bot-message-square" | "bot-off" | "bottle-wine" | "bow-arrow" | "box" | "boxes" | "braces" | "brackets" | "brain" | "brain-circuit" | "brain-cog" | "brick-wall" | "brick-wall-fire" | "brick-wall-shield" | "briefcase" | "briefcase-business" | "briefcase-conveyor-belt" | "briefcase-medical" | "bring-to-front" | "brush" | "brush-cleaning" | "bubbles" | "bug" | "bug-off" | "bug-play" | "building" | "building-2" | "bus" | "bus-front" | "cable" | "cable-car" | "cake" | "cake-slice" | "calculator" | "calendar" | "calendar-1" | "calendar-arrow-down" | "calendar-arrow-up" | "calendar-check" | "calendar-check-2" | "calendar-clock" | "calendar-cog" | "calendar-days" | "calendar-fold" | "calendar-heart" | "calendar-minus" | "calendar-minus-2" | "calendar-off" | "calendar-plus" | "calendar-plus-2" | "calendar-range" | "calendar-search" | "calendar-sync" | "calendar-x" | "calendar-x-2" | "calendars" | "camera" | "camera-off" | "candy" | "candy-cane" | "candy-off" | "cannabis" | "cannabis-off" | "captions" | "captions-off" | "car" | "car-front" | "car-taxi-front" | "caravan" | "card-sim" | "carrot" | "case-lower" | "case-sensitive" | "case-upper" | "cassette-tape" | "cast" | "castle" | "cat" | "cctv" | "cctv-off" | "chart-area" | "chart-bar" | "chart-bar-big" | "chart-bar-decreasing" | "chart-bar-increasing" | "chart-bar-stacked" | "chart-candlestick" | "chart-column" | "chart-column-big" | "chart-column-decreasing" | "chart-column-increasing" | "chart-column-stacked" | "chart-gantt" | "chart-line" | "chart-network" | "chart-no-axes-column" | "chart-no-axes-column-decreasing" | "chart-no-axes-column-increasing" | "chart-no-axes-combined" | "chart-no-axes-gantt" | "chart-pie" | "chart-scatter" | "chart-spline" | "check" | "check-check" | "check-line" | "chef-hat" | "cherry" | "chess-bishop" | "chess-king" | "chess-knight" | "chess-pawn" | "chess-queen" | "chess-rook" | "chevron-down" | "chevron-first" | "chevron-last" | "chevron-left" | "chevron-right" | "chevron-up" | "chevrons-down" | "chevrons-down-up" | "chevrons-left" | "chevrons-left-right" | "chevrons-left-right-ellipsis" | "chevrons-right" | "chevrons-right-left" | "chevrons-up" | "chevrons-up-down" | "church" | "cigarette" | "cigarette-off" | "circle" | "circle-alert" | "circle-arrow-down" | "circle-arrow-left" | "circle-arrow-out-down-left" | "circle-arrow-out-down-right" | "circle-arrow-out-up-left" | "circle-arrow-out-up-right" | "circle-arrow-right" | "circle-arrow-up" | "circle-check" | "circle-check-big" | "circle-chevron-down" | "circle-chevron-left" | "circle-chevron-right" | "circle-chevron-up" | "circle-dashed" | "circle-divide" | "circle-dollar-sign" | "circle-dot" | "circle-dot-dashed" | "circle-ellipsis" | "circle-equal" | "circle-fading-arrow-up" | "circle-fading-plus" | "circle-gauge" | "circle-minus" | "circle-off" | "circle-parking" | "circle-parking-off" | "circle-pause" | "circle-percent" | "circle-pile" | "circle-play" | "circle-plus" | "circle-pound-sterling" | "circle-power" | "circle-question-mark" | "circle-slash" | "circle-slash-2" | "circle-small" | "circle-star" | "circle-stop" | "circle-user" | "circle-user-round" | "circle-x" | "circuit-board" | "citrus" | "clapperboard" | "clipboard" | "clipboard-check" | "clipboard-clock" | "clipboard-copy" | "clipboard-list" | "clipboard-minus" | "clipboard-paste" | "clipboard-pen" | "clipboard-pen-line" | "clipboard-plus" | "clipboard-type" | "clipboard-x" | "clock" | "clock-1" | "clock-10" | "clock-11" | "clock-12" | "clock-2" | "clock-3" | "clock-4" | "clock-5" | "clock-6" | "clock-7" | "clock-8" | "clock-9" | "clock-alert" | "clock-arrow-down" | "clock-arrow-up" | "clock-check" | "clock-fading" | "clock-plus" | "closed-caption" | "cloud" | "cloud-alert" | "cloud-backup" | "cloud-check" | "cloud-cog" | "cloud-download" | "cloud-drizzle" | "cloud-fog" | "cloud-hail" | "cloud-lightning" | "cloud-moon" | "cloud-moon-rain" | "cloud-off" | "cloud-rain" | "cloud-rain-wind" | "cloud-snow" | "cloud-sun" | "cloud-sun-rain" | "cloud-sync" | "cloud-upload" | "cloudy" | "clover" | "club" | "code" | "code-xml" | "coffee" | "cog" | "coins" | "columns-2" | "columns-3" | "columns-3-cog" | "columns-4" | "combine" | "command" | "compass" | "component" | "computer" | "concierge-bell" | "cone" | "construction" | "contact" | "contact-round" | "container" | "contrast" | "cookie" | "cooking-pot" | "copy" | "copy-check" | "copy-minus" | "copy-plus" | "copy-slash" | "copy-x" | "copyleft" | "copyright" | "corner-down-left" | "corner-down-right" | "corner-left-down" | "corner-left-up" | "corner-right-down" | "corner-right-up" | "corner-up-left" | "corner-up-right" | "cpu" | "creative-commons" | "credit-card" | "croissant" | "crop" | "cross" | "crosshair" | "crown" | "cuboid" | "cup-soda" | "currency" | "cylinder" | "dam" | "database" | "database-backup" | "database-search" | "database-zap" | "decimals-arrow-left" | "decimals-arrow-right" | "delete" | "dessert" | "diameter" | "diamond" | "diamond-minus" | "diamond-percent" | "diamond-plus" | "dice-1" | "dice-2" | "dice-3" | "dice-4" | "dice-5" | "dice-6" | "dices" | "diff" | "disc" | "disc-2" | "disc-3" | "disc-album" | "divide" | "dna" | "dna-off" | "dock" | "dog" | "dollar-sign" | "donut" | "door-closed" | "door-closed-locked" | "door-open" | "dot" | "download" | "drafting-compass" | "drama" | "drill" | "drone" | "droplet" | "droplet-off" | "droplets" | "drum" | "drumstick" | "dumbbell" | "ear" | "ear-off" | "earth" | "earth-lock" | "eclipse" | "egg" | "egg-fried" | "egg-off" | "ellipse" | "ellipsis" | "ellipsis-vertical" | "equal" | "equal-approximately" | "equal-not" | "eraser" | "ethernet-port" | "euro" | "ev-charger" | "expand" | "external-link" | "eye" | "eye-closed" | "eye-off" | "factory" | "fan" | "fast-forward" | "feather" | "fence" | "ferris-wheel" | "file" | "file-archive" | "file-axis-3d" | "file-badge" | "file-box" | "file-braces" | "file-braces-corner" | "file-chart-column" | "file-chart-column-increasing" | "file-chart-line" | "file-chart-pie" | "file-check" | "file-check-corner" | "file-clock" | "file-code" | "file-code-corner" | "file-cog" | "file-diff" | "file-digit" | "file-down" | "file-exclamation-point" | "file-headphone" | "file-heart" | "file-image" | "file-input" | "file-key" | "file-lock" | "file-minus" | "file-minus-corner" | "file-music" | "file-output" | "file-pen" | "file-pen-line" | "file-play" | "file-plus" | "file-plus-corner" | "file-question-mark" | "file-scan" | "file-search" | "file-search-corner" | "file-signal" | "file-sliders" | "file-spreadsheet" | "file-stack" | "file-symlink" | "file-terminal" | "file-text" | "file-type" | "file-type-corner" | "file-up" | "file-user" | "file-video-camera" | "file-volume" | "file-x" | "file-x-corner" | "files" | "film" | "fingerprint-pattern" | "fire-extinguisher" | "fish" | "fish-off" | "fish-symbol" | "fishing-hook" | "fishing-rod" | "flag" | "flag-off" | "flag-triangle-left" | "flag-triangle-right" | "flame" | "flame-kindling" | "flashlight" | "flashlight-off" | "flask-conical" | "flask-conical-off" | "flask-round" | "flip-horizontal-2" | "flip-vertical-2" | "flower" | "flower-2" | "focus" | "fold-horizontal" | "fold-vertical" | "folder" | "folder-archive" | "folder-check" | "folder-clock" | "folder-closed" | "folder-code" | "folder-cog" | "folder-dot" | "folder-down" | "folder-git" | "folder-git-2" | "folder-heart" | "folder-input" | "folder-kanban" | "folder-key" | "folder-lock" | "folder-minus" | "folder-open" | "folder-open-dot" | "folder-output" | "folder-pen" | "folder-plus" | "folder-root" | "folder-search" | "folder-search-2" | "folder-symlink" | "folder-sync" | "folder-tree" | "folder-up" | "folder-x" | "folders" | "footprints" | "forklift" | "form" | "forward" | "frame" | "frown" | "fuel" | "fullscreen" | "funnel" | "funnel-plus" | "funnel-x" | "gallery-horizontal" | "gallery-horizontal-end" | "gallery-thumbnails" | "gallery-vertical" | "gallery-vertical-end" | "gamepad" | "gamepad-2" | "gamepad-directional" | "gauge" | "gavel" | "gem" | "georgian-lari" | "ghost" | "gift" | "git-branch" | "git-branch-minus" | "git-branch-plus" | "git-commit-horizontal" | "git-commit-vertical" | "git-compare" | "git-compare-arrows" | "git-fork" | "git-graph" | "git-merge" | "git-merge-conflict" | "git-pull-request" | "git-pull-request-arrow" | "git-pull-request-closed" | "git-pull-request-create" | "git-pull-request-create-arrow" | "git-pull-request-draft" | "glass-water" | "glasses" | "globe" | "globe-lock" | "globe-off" | "globe-x" | "goal" | "gpu" | "graduation-cap" | "grape" | "grid-2x2" | "grid-2x2-check" | "grid-2x2-plus" | "grid-2x2-x" | "grid-3x2" | "grid-3x3" | "grip" | "grip-horizontal" | "grip-vertical" | "group" | "guitar" | "ham" | "hamburger" | "hammer" | "hand" | "hand-coins" | "hand-fist" | "hand-grab" | "hand-heart" | "hand-helping" | "hand-metal" | "hand-platter" | "handbag" | "handshake" | "hard-drive" | "hard-drive-download" | "hard-drive-upload" | "hard-hat" | "hash" | "hat-glasses" | "haze" | "hd" | "hdmi-port" | "heading" | "heading-1" | "heading-2" | "heading-3" | "heading-4" | "heading-5" | "heading-6" | "headphone-off" | "headphones" | "headset" | "heart" | "heart-crack" | "heart-handshake" | "heart-minus" | "heart-off" | "heart-plus" | "heart-pulse" | "heater" | "helicopter" | "hexagon" | "highlighter" | "history" | "hop" | "hop-off" | "hospital" | "hotel" | "hourglass" | "house" | "house-heart" | "house-plug" | "house-plus" | "house-wifi" | "ice-cream-bowl" | "ice-cream-cone" | "id-card" | "id-card-lanyard" | "image" | "image-down" | "image-minus" | "image-off" | "image-play" | "image-plus" | "image-up" | "image-upscale" | "images" | "import" | "inbox" | "indian-rupee" | "infinity" | "info" | "inspection-panel" | "italic" | "iteration-ccw" | "iteration-cw" | "japanese-yen" | "joystick" | "kanban" | "kayak" | "key" | "key-round" | "key-square" | "keyboard" | "keyboard-music" | "keyboard-off" | "lamp" | "lamp-ceiling" | "lamp-desk" | "lamp-floor" | "lamp-wall-down" | "lamp-wall-up" | "land-plot" | "landmark" | "languages" | "laptop" | "laptop-minimal" | "laptop-minimal-check" | "lasso" | "lasso-select" | "laugh" | "layers" | "layers-2" | "layers-plus" | "layout-dashboard" | "layout-grid" | "layout-list" | "layout-panel-left" | "layout-panel-top" | "layout-template" | "leaf" | "leafy-green" | "lectern" | "lens-concave" | "lens-convex" | "library" | "library-big" | "life-buoy" | "ligature" | "lightbulb" | "lightbulb-off" | "line-dot-right-horizontal" | "line-squiggle" | "link" | "link-2" | "link-2-off" | "list" | "list-check" | "list-checks" | "list-chevrons-down-up" | "list-chevrons-up-down" | "list-collapse" | "list-end" | "list-filter" | "list-filter-plus" | "list-indent-decrease" | "list-indent-increase" | "list-minus" | "list-music" | "list-ordered" | "list-plus" | "list-restart" | "list-start" | "list-todo" | "list-tree" | "list-video" | "list-x" | "loader" | "loader-circle" | "loader-pinwheel" | "locate" | "locate-fixed" | "locate-off" | "lock" | "lock-keyhole" | "lock-keyhole-open" | "lock-open" | "log-in" | "log-out" | "logs" | "lollipop" | "luggage" | "magnet" | "mail" | "mail-check" | "mail-minus" | "mail-open" | "mail-plus" | "mail-question-mark" | "mail-search" | "mail-warning" | "mail-x" | "mailbox" | "mails" | "map" | "map-minus" | "map-pin" | "map-pin-check" | "map-pin-check-inside" | "map-pin-house" | "map-pin-minus" | "map-pin-minus-inside" | "map-pin-off" | "map-pin-pen" | "map-pin-plus" | "map-pin-plus-inside" | "map-pin-x" | "map-pin-x-inside" | "map-pinned" | "map-plus" | "mars" | "mars-stroke" | "martini" | "maximize" | "maximize-2" | "medal" | "megaphone" | "megaphone-off" | "meh" | "memory-stick" | "menu" | "merge" | "message-circle" | "message-circle-check" | "message-circle-code" | "message-circle-dashed" | "message-circle-heart" | "message-circle-more" | "message-circle-off" | "message-circle-plus" | "message-circle-question-mark" | "message-circle-reply" | "message-circle-warning" | "message-circle-x" | "message-square" | "message-square-check" | "message-square-code" | "message-square-dashed" | "message-square-diff" | "message-square-dot" | "message-square-heart" | "message-square-lock" | "message-square-more" | "message-square-off" | "message-square-plus" | "message-square-quote" | "message-square-reply" | "message-square-share" | "message-square-text" | "message-square-warning" | "message-square-x" | "messages-square" | "metronome" | "mic" | "mic-off" | "mic-vocal" | "microchip" | "microscope" | "microwave" | "milestone" | "milk" | "milk-off" | "minimize" | "minimize-2" | "minus" | "mirror-rectangular" | "mirror-round" | "monitor" | "monitor-check" | "monitor-cloud" | "monitor-cog" | "monitor-dot" | "monitor-down" | "monitor-off" | "monitor-pause" | "monitor-play" | "monitor-smartphone" | "monitor-speaker" | "monitor-stop" | "monitor-up" | "monitor-x" | "moon" | "moon-star" | "motorbike" | "mountain" | "mountain-snow" | "mouse" | "mouse-left" | "mouse-off" | "mouse-pointer" | "mouse-pointer-2" | "mouse-pointer-2-off" | "mouse-pointer-ban" | "mouse-pointer-click" | "mouse-right" | "move" | "move-3d" | "move-diagonal" | "move-diagonal-2" | "move-down" | "move-down-left" | "move-down-right" | "move-horizontal" | "move-left" | "move-right" | "move-up" | "move-up-left" | "move-up-right" | "move-vertical" | "music" | "music-2" | "music-3" | "music-4" | "navigation" | "navigation-2" | "navigation-2-off" | "navigation-off" | "network" | "newspaper" | "nfc" | "non-binary" | "notebook" | "notebook-pen" | "notebook-tabs" | "notebook-text" | "notepad-text" | "notepad-text-dashed" | "nut" | "nut-off" | "octagon" | "octagon-alert" | "octagon-minus" | "octagon-pause" | "octagon-x" | "omega" | "option" | "orbit" | "origami" | "package" | "package-2" | "package-check" | "package-minus" | "package-open" | "package-plus" | "package-search" | "package-x" | "paint-bucket" | "paint-roller" | "paintbrush" | "paintbrush-vertical" | "palette" | "panda" | "panel-bottom" | "panel-bottom-close" | "panel-bottom-dashed" | "panel-bottom-open" | "panel-left" | "panel-left-close" | "panel-left-dashed" | "panel-left-open" | "panel-left-right-dashed" | "panel-right" | "panel-right-close" | "panel-right-dashed" | "panel-right-open" | "panel-top" | "panel-top-bottom-dashed" | "panel-top-close" | "panel-top-dashed" | "panel-top-open" | "panels-left-bottom" | "panels-right-bottom" | "panels-top-left" | "paperclip" | "parentheses" | "parking-meter" | "party-popper" | "pause" | "paw-print" | "pc-case" | "pen" | "pen-line" | "pen-off" | "pen-tool" | "pencil" | "pencil-line" | "pencil-off" | "pencil-ruler" | "pentagon" | "percent" | "person-standing" | "philippine-peso" | "phone" | "phone-call" | "phone-forwarded" | "phone-incoming" | "phone-missed" | "phone-off" | "phone-outgoing" | "pi" | "piano" | "pickaxe" | "picture-in-picture" | "picture-in-picture-2" | "piggy-bank" | "pilcrow" | "pilcrow-left" | "pilcrow-right" | "pill" | "pill-bottle" | "pin" | "pin-off" | "pipette" | "pizza" | "plane" | "plane-landing" | "plane-takeoff" | "play" | "plug" | "plug-2" | "plug-zap" | "plus" | "pocket-knife" | "podcast" | "pointer" | "pointer-off" | "popcorn" | "popsicle" | "pound-sterling" | "power" | "power-off" | "presentation" | "printer" | "printer-check" | "printer-x" | "projector" | "proportions" | "puzzle" | "pyramid" | "qr-code" | "quote" | "rabbit" | "radar" | "radiation" | "radical" | "radio" | "radio-receiver" | "radio-tower" | "radius" | "rainbow" | "rat" | "ratio" | "receipt" | "receipt-cent" | "receipt-euro" | "receipt-indian-rupee" | "receipt-japanese-yen" | "receipt-pound-sterling" | "receipt-russian-ruble" | "receipt-swiss-franc" | "receipt-text" | "receipt-turkish-lira" | "rectangle-circle" | "rectangle-ellipsis" | "rectangle-goggles" | "rectangle-horizontal" | "rectangle-vertical" | "recycle" | "redo" | "redo-2" | "redo-dot" | "refresh-ccw" | "refresh-ccw-dot" | "refresh-cw" | "refresh-cw-off" | "refrigerator" | "regex" | "remove-formatting" | "repeat" | "repeat-1" | "repeat-2" | "replace" | "replace-all" | "reply" | "reply-all" | "rewind" | "ribbon" | "rocket" | "rocking-chair" | "roller-coaster" | "rose" | "rotate-3d" | "rotate-ccw" | "rotate-ccw-key" | "rotate-ccw-square" | "rotate-cw" | "rotate-cw-square" | "route" | "route-off" | "router" | "rows-2" | "rows-3" | "rows-4" | "rss" | "ruler" | "ruler-dimension-line" | "russian-ruble" | "sailboat" | "salad" | "sandwich" | "satellite" | "satellite-dish" | "saudi-riyal" | "save" | "save-all" | "save-off" | "scale" | "scale-3d" | "scaling" | "scan" | "scan-barcode" | "scan-eye" | "scan-face" | "scan-heart" | "scan-line" | "scan-qr-code" | "scan-search" | "scan-text" | "school" | "scissors" | "scissors-line-dashed" | "scooter" | "screen-share" | "screen-share-off" | "scroll" | "scroll-text" | "search" | "search-alert" | "search-check" | "search-code" | "search-slash" | "search-x" | "section" | "send" | "send-horizontal" | "send-to-back" | "separator-horizontal" | "separator-vertical" | "server" | "server-cog" | "server-crash" | "server-off" | "settings" | "settings-2" | "shapes" | "share" | "share-2" | "sheet" | "shell" | "shelving-unit" | "shield" | "shield-alert" | "shield-ban" | "shield-check" | "shield-ellipsis" | "shield-half" | "shield-minus" | "shield-off" | "shield-plus" | "shield-question-mark" | "shield-user" | "shield-x" | "ship" | "ship-wheel" | "shirt" | "shopping-bag" | "shopping-basket" | "shopping-cart" | "shovel" | "shower-head" | "shredder" | "shrimp" | "shrink" | "shrub" | "shuffle" | "sigma" | "signal" | "signal-high" | "signal-low" | "signal-medium" | "signal-zero" | "signature" | "signpost" | "signpost-big" | "siren" | "skip-back" | "skip-forward" | "skull" | "slash" | "slice" | "sliders-horizontal" | "sliders-vertical" | "smartphone" | "smartphone-charging" | "smartphone-nfc" | "smile" | "smile-plus" | "snail" | "snowflake" | "soap-dispenser-droplet" | "sofa" | "solar-panel" | "soup" | "space" | "spade" | "sparkle" | "sparkles" | "speaker" | "speech" | "spell-check" | "spell-check-2" | "spline" | "spline-pointer" | "split" | "spool" | "spotlight" | "spray-can" | "sprout" | "square" | "square-activity" | "square-arrow-down" | "square-arrow-down-left" | "square-arrow-down-right" | "square-arrow-left" | "square-arrow-out-down-left" | "square-arrow-out-down-right" | "square-arrow-out-up-left" | "square-arrow-out-up-right" | "square-arrow-right" | "square-arrow-right-enter" | "square-arrow-right-exit" | "square-arrow-up" | "square-arrow-up-left" | "square-arrow-up-right" | "square-asterisk" | "square-bottom-dashed-scissors" | "square-centerline-dashed-horizontal" | "square-centerline-dashed-vertical" | "square-chart-gantt" | "square-check" | "square-check-big" | "square-chevron-down" | "square-chevron-left" | "square-chevron-right" | "square-chevron-up" | "square-code" | "square-dashed" | "square-dashed-bottom" | "square-dashed-bottom-code" | "square-dashed-kanban" | "square-dashed-mouse-pointer" | "square-dashed-top-solid" | "square-divide" | "square-dot" | "square-equal" | "square-function" | "square-kanban" | "square-library" | "square-m" | "square-menu" | "square-minus" | "square-mouse-pointer" | "square-parking" | "square-parking-off" | "square-pause" | "square-pen" | "square-percent" | "square-pi" | "square-pilcrow" | "square-play" | "square-plus" | "square-power" | "square-radical" | "square-round-corner" | "square-scissors" | "square-sigma" | "square-slash" | "square-split-horizontal" | "square-split-vertical" | "square-square" | "square-stack" | "square-star" | "square-stop" | "square-terminal" | "square-user" | "square-user-round" | "square-x" | "squares-exclude" | "squares-intersect" | "squares-subtract" | "squares-unite" | "squircle" | "squircle-dashed" | "squirrel" | "stamp" | "star" | "star-half" | "star-off" | "step-back" | "step-forward" | "stethoscope" | "sticker" | "sticky-note" | "stone" | "store" | "stretch-horizontal" | "stretch-vertical" | "strikethrough" | "subscript" | "sun" | "sun-dim" | "sun-medium" | "sun-moon" | "sun-snow" | "sunrise" | "sunset" | "superscript" | "swatch-book" | "swiss-franc" | "switch-camera" | "sword" | "swords" | "syringe" | "table" | "table-2" | "table-cells-merge" | "table-cells-split" | "table-columns-split" | "table-of-contents" | "table-properties" | "table-rows-split" | "tablet" | "tablet-smartphone" | "tablets" | "tag" | "tags" | "tally-1" | "tally-2" | "tally-3" | "tally-4" | "tally-5" | "tangent" | "target" | "telescope" | "tent" | "tent-tree" | "terminal" | "test-tube" | "test-tube-diagonal" | "test-tubes" | "text-align-center" | "text-align-end" | "text-align-justify" | "text-align-start" | "text-cursor" | "text-cursor-input" | "text-initial" | "text-quote" | "text-search" | "text-select" | "text-wrap" | "theater" | "thermometer" | "thermometer-snowflake" | "thermometer-sun" | "thumbs-down" | "thumbs-up" | "ticket" | "ticket-check" | "ticket-minus" | "ticket-percent" | "ticket-plus" | "ticket-slash" | "ticket-x" | "tickets" | "tickets-plane" | "timer" | "timer-off" | "timer-reset" | "toggle-left" | "toggle-right" | "toilet" | "tool-case" | "toolbox" | "tornado" | "torus" | "touchpad" | "touchpad-off" | "towel-rack" | "tower-control" | "toy-brick" | "tractor" | "traffic-cone" | "train-front" | "train-front-tunnel" | "train-track" | "tram-front" | "transgender" | "trash" | "trash-2" | "tree-deciduous" | "tree-palm" | "tree-pine" | "trees" | "trending-down" | "trending-up" | "trending-up-down" | "triangle" | "triangle-alert" | "triangle-dashed" | "triangle-right" | "trophy" | "truck" | "truck-electric" | "turkish-lira" | "turntable" | "turtle" | "tv" | "tv-minimal" | "tv-minimal-play" | "type" | "type-outline" | "umbrella" | "umbrella-off" | "underline" | "undo" | "undo-2" | "undo-dot" | "unfold-horizontal" | "unfold-vertical" | "ungroup" | "university" | "unlink" | "unlink-2" | "unplug" | "upload" | "usb" | "user" | "user-check" | "user-cog" | "user-key" | "user-lock" | "user-minus" | "user-pen" | "user-plus" | "user-round" | "user-round-check" | "user-round-cog" | "user-round-key" | "user-round-minus" | "user-round-pen" | "user-round-plus" | "user-round-search" | "user-round-x" | "user-search" | "user-star" | "user-x" | "users" | "users-round" | "utensils" | "utensils-crossed" | "utility-pole" | "van" | "variable" | "vault" | "vector-square" | "vegan" | "venetian-mask" | "venus" | "venus-and-mars" | "vibrate" | "vibrate-off" | "video" | "video-off" | "videotape" | "view" | "voicemail" | "volleyball" | "volume" | "volume-1" | "volume-2" | "volume-off" | "volume-x" | "vote" | "wallet" | "wallet-cards" | "wallet-minimal" | "wallpaper" | "wand" | "wand-sparkles" | "warehouse" | "washing-machine" | "watch" | "waves" | "waves-arrow-down" | "waves-arrow-up" | "waves-ladder" | "waypoints" | "webcam" | "webhook" | "webhook-off" | "weight" | "weight-tilde" | "wheat" | "wheat-off" | "whole-word" | "wifi" | "wifi-cog" | "wifi-high" | "wifi-low" | "wifi-off" | "wifi-pen" | "wifi-sync" | "wifi-zero" | "wind" | "wind-arrow-down" | "wine" | "wine-off" | "workflow" | "worm" | "wrench" | "x" | "x-line-top" | "zap" | "zap-off" | "zodiac-aquarius" | "zodiac-aries" | "zodiac-cancer" | "zodiac-capricorn" | "zodiac-gemini" | "zodiac-leo" | "zodiac-libra" | "zodiac-ophiuchus" | "zodiac-pisces" | "zodiac-sagittarius" | "zodiac-scorpio" | "zodiac-taurus" | "zodiac-virgo" | "zoom-in" | "zoom-out"; /** The roles of a node's `role`. */ type ThemeRole = "group" | "region" | "toolbar" | "tablist" | "tabpanel" | "status" | "search" | "list" | "listitem" | "navigation" | "none" | "presentation" | "img"; /** The contracts of the table: what `slot(contract, { from })` mounts and what `components` of `defineTheme` names. */ type ThemeContractName = "catalog.card" | "download.card" | "leaderboard.card" | "library.chartRow" | "library.footer" | "library.search" | "library.setCard" | "library.toolbar" | "lobby.draft" | "maps.toPlay" | "player.card" | "rate.control" | "selected.header" | "selected.tabs"; // ---- generated from the table of contracts ---- /** screen.chat: Chat sheet. The chat over a page: the tabs of its channels, the players' panel toggle, the close button and the pane of the channel shown (its lines, its composer, or why the chat cannot be used). The sheet's root (fixed over the window, hidden when closed, the focus it takes and gives back, its keys) stays the... */ interface ThemeTarget_screen_chat { parts: never; /** * Classes of the game's stylesheet this template may use (the others are the theme's own): * - `card`: The sheet's plate: a column with the sheet's padding, over an opaque base. * - `bar`: The row of tabs and buttons. * - `push`: An empty item that takes the free width of a row: what follows it is pushed to the end. * - `panes`: The column that holds the channels' panes and takes what is left of the sheet. * - `pv-plate`: The design system's plate (use with `pv-plate--lg`, and `data-tone` `raised` or `data-edge` `accent`). * - `pv-plate--lg`: The large plate: the shape of a panel (`--pv-clip-lg`). */ hostClasses: "card" | "bar" | "push" | "panes" | "pv-plate" | "pv-plate--lg"; cssVars: never; outputs: { /** Shows a channel (what a click on its tab does). An unknown id does nothing. */ "channel.select": [channel: string]; /** Shows or hides the players' band. */ "users.toggle": []; /** Closes the sheet and gives the focus back to what had it. */ "close": []; }; /** * The places of the screen: a template must place every required one, anywhere. * - `tabs` (required): The channel tabs: a tab list with arrows, an unread count on each tab, a close button on a private conversation (Delete closes it too). * - `users` (required): The button that shows or hides the players' band (pressed while it shows); nothing while the chat cannot be used. * - `close` (required): The button that closes the sheet. * - `panes` (required): One pane per channel, the one shown visible: the lines (with their time, speaker, links and system lines), the composer with its command list, or the reason the chat cannot be used with its action. */ slots: "tabs" | "users" | "close" | "panes"; contracts: ThemeContractName; } /** screen.clan: Clan. The player's clan and the clans' ranking: the way back, the title and the connection chips, what could not be read (with a retry), the clan's header and facts, its members, and the chat or the ranking beside them. The screen's host builds every place from the stores and mounts it where the template ... */ interface ThemeTarget_screen_clan { parts: never; /** * Classes of the game's stylesheet this template may use (the others are the theme's own): * - `clan`: The page's root: a column with the page's padding that fills the window. * - `pv-screen`: A screen root (page padding and entrance). * - `pv-ui`: The design system's plates and buttons under the root, in Classic too. * - `pv-plate`: The design system's plate (use with `pv-plate--lg`, and `data-tone` or `data-edge` `accent`). * - `pv-plate--lg`: The large plate: the shape of a panel (`--pv-clip-lg`). * - `page-head`: The header row (back, title, chips) that wraps when the window is narrow. * - `label-line`: The row of the title and its help bubble. * - `push`: An empty item that takes the free width of a row: what follows it is pushed to the end. * - `body`: The page under the header: a column that fills the free height. * - `cols`: The clan column and the side column side by side (stacked under 1100px). * - `left`: The clan column: a scrolling column. * - `right`: The side column: the tabs and their panel. * - `band`: The clan's header plate: a column (the title line, then the facts). * - `title-line`: The row of the tag, the clan's name, its place, "you lead" and the manage button. * - `place`: The clan's place as a bordered figure (`data-top` in the first ten). * - `lead-badge`: The "You lead this clan" pill. * - `note`: A line of the page's own words in the muted text (while the clan is read). */ hostClasses: "clan" | "pv-screen" | "pv-ui" | "pv-plate" | "pv-plate--lg" | "page-head" | "label-line" | "push" | "body" | "cols" | "left" | "right" | "band" | "title-line" | "place" | "lead-badge" | "note"; cssVars: never; outputs: { /** Leaves the page for the song selection (what the back arrow does). */ "back": []; /** Opens the site's clan page in the browser: the place to create, invite, lead or leave a clan (what "Manage" and the invitation do). */ "site.open": []; /** Reads the clan, its ranking page and the clan channel again (what Retry does). */ "refresh": []; /** Opens Settings → Online (what the offline notice's button does). */ "settings.open": []; /** Shows the clan's chat or the ranking (`chat` or `ranking`). An unknown side shows the chat. */ "side.select": [side: string]; /** Sorts the ranking by `total`, `average` or `members` and goes to its first page. An unknown sort sorts by total. */ "ranking.sort": [sort: string]; /** Shows the page of the ranking that starts at this offset (a multiple of 50: the pager's previous and next); the sort is kept. */ "ranking.page": [offset: number]; }; /** * The places of the screen: a template must place every required one, anywhere. * - `back` (required): The back arrow: it leads to the song selection. * - `title` (required): The page's heading (`h1`) with the help bubble that says the game only reads a clan. * - `online` (required): The online chip (the account's connection) and the chat button. * - `gate` (required): The notice of offline mode ("Clans need the server") with its button to Settings → Online; nothing otherwise. * - `failed` (required): The line that says what could not be read, with its Retry button; nothing when everything was read. * - `tag`: The clan's tag `[TAG]` in the game's own style, with the clan's name as its tooltip and accessible name; nothing without a clan. * - `manage` (required): The "Manage on the site" button: it opens the site's clan page in the browser (the game never creates, invites, leads or leaves a clan); nothing without a clan. * - `facts`: The clan's four figures as a list of terms (members of the limit, online, total and average performance); nothing without a clan. A template that writes its own figures from `clan` leaves it out. * - `members` (required): The members as a grid of cards, the leader first, then the ones online: the picture, the name (a button with the player's menu), the crown, "you", the flag, the title, whether the member is online with their performance, and the site's rank; nothing without a clan. * - `none` (required): What the page says when the account is in no clan, with the button that opens the site's clan page; nothing otherwise. * - `tabs` (required): The two tabs of the side (Chat, Ranking): a segmented control with arrows. * - `chat` (required): The clan's chat (the chat's own pane, lines and composer) or the line that says there is none; drawn on the `chat` side only. * - `ranking` (required): The ranking of the clans: its sort, the count, the table with the player's own clan marked, and the pager; drawn on the `ranking` side only. */ slots: "back" | "title" | "online" | "gate" | "failed" | "tag" | "manage" | "facts" | "members" | "none" | "tabs" | "chat" | "ranking"; contracts: ThemeContractName; } /** screen.download: Download. Find maps (and skins, mods, playlists) and put them in the library: a row of sources, a search with its filters, the results, and the queue of downloads beside them. The screen's host builds every place from the stores and mounts it where the template says; the template only decides WHERE things go ... */ interface ThemeTarget_screen_download { parts: never; /** * Classes of the game's stylesheet this template may use (the others are the theme's own): * - `download`: The page's root: a column with the page's padding. * - `pv-screen`: A screen root (page padding and entrance). * - `top`: The header row (title, sources, choices) with a hairline under it. * - `body`: The browse area and the queue side by side (a narrower queue column; the choices `data-layout-*` do not touch it). * - `panel`: The column of the browse area: search, notices and results one under the other. * - `previewing`: Added to `body` while the map preview runs in the queue's place (the queue column gets wider). */ hostClasses: "download" | "pv-screen" | "top" | "body" | "panel" | "previewing"; cssVars: never; outputs: { /** Shows a source: `prism`, `osu`, `quaver`, `etterna` or a mod's `mod:/`. An unknown tab shows Prism. */ "tab.select": [tab: string]; /** Reads a map link from the clipboard and starts its download (what the "Paste a link" button does). */ "link.paste": []; /** Puts the focus in the search bar of the list shown. */ "search.focus": []; /** Removes the finished downloads from the queue. */ "queue.clear": []; }; /** * The places of the screen: a template must place every required one, anywhere. * - `title` (required): The page's heading (`h1`). * - `sources` (required): The row of sources (Prism, osu!, Quaver, Etterna) and the menu of the sources mods added: a tab list with arrows. * - `choices` (required): What belongs to the open source: Prism's sections (Maps, Skins, Mods, Playlists), the folder the downloads go to, the mirror menu of osu!. It can be empty. * - `search` (required): The search bar (with its paste-a-link button and the backend mark) and the filters under it. Drawn in the `results` mode only. * - `notices` (required): The login a source asks for (Quaver's account, a mod's token) and the note of a mod's source. Drawn in the `results` mode, only when there is something to say. * - `results` (required): The scrolling list of cards (`download.card`), the errors of a download that did not start and the status line (loading, end of the list, load more). Drawn in the `results` mode only. * - `catalog` (required): Prism's own listing: its index of maps (search, filters, weekly challenge, cards) or the catalogue of skins, mods and playlists. Drawn in the `prism` and `catalog` modes only. * - `queue` (required): The queue of downloads, with its clear button; the map preview takes its place while it runs. */ slots: "title" | "sources" | "choices" | "search" | "notices" | "results" | "catalog" | "queue"; contracts: ThemeContractName; } /** screen.help: Help. Read how the game works: a search over every topic, the topic list, and the topics' sections (the player's current keys, then a few short texts). The screen's host builds every place from the stores and the catalogs and mounts it where the template says; the template only decides WHERE things go and... */ interface ThemeTarget_screen_help { parts: never; /** * Classes of the game's stylesheet this template may use (the others are the theme's own): * - `help-page`: The page's root: a column with the page's padding. * - `pv-screen`: A screen root (page padding and entrance). * - `pv-ui`: The design system's plates and buttons under the root, in Classic too. * - `page-head`: The header row (back, title, search) that wraps when the window is narrow. * - `push`: An empty item that takes the free width of a row: what follows it is pushed to the end. * - `body`: The topic list and the content side by side (a narrow column and a wide one); stacked under 820px. */ hostClasses: "help-page" | "pv-screen" | "pv-ui" | "page-head" | "push" | "body"; cssVars: never; outputs: { /** Leaves the page for the one Help was opened from (what the back arrow does). */ "back": []; /** Scrolls the content to a topic's section and gives its heading the focus (what a click on its entry in the list does). An unknown id does nothing. */ "topic.jump": [id: string]; /** Puts the focus in the search field. */ "search.focus": []; /** Empties the search and lists every topic again. */ "search.clear": []; }; /** * The places of the screen: a template must place every required one, anywhere. * - `back` (required): The back arrow: it leads to the page Help was opened from. * - `title` (required): The page's heading (`h1`). * - `search` (required): The search field over every topic (the rules of the Settings search: case and accents ignored, every word found, any order). * - `topics` (required): The topic list: a navigation with one button per topic, Up and Down, Home and End; a click scrolls to the section and gives its heading the focus. It follows the scroll (`aria-current` and `data-active` mark the topic at the top). * - `content` (required): The scrolling region (a focusable region, so the keyboard scrolls it): one section per topic with its title, the player's keys and its texts, the words the search found marked; or the line that says nothing matched. */ slots: "back" | "title" | "search" | "topics" | "content"; contracts: ThemeContractName; } /** screen.library: Map selection. Pick what to play: search and browse the library on one side, the selected map (its figures, tabs and the Play strip) on the other. The screen's host builds the input of every contract slot from the stores (`null` while a slot is not shown: the heading of an empty library has no tabs, no panels and ... */ interface ThemeTarget_screen_library { parts: never; /** * Classes of the game's stylesheet this template may use (the others are the theme's own): * - `song-select`: The two-column screen (the choices `data-layout-*` place the columns). * - `pv-screen`: A screen root (page padding and entrance). The root of this screen also carries `data-mod-` for every modifier that is on and `data-changed` while `selection.changed`. * - `map-browser`: The library column. * - `browser-body`: The area under the toolbar that holds the lists (positioned: the playlists and the visualizer cover it). * - `browser-list`: The maps search and list. * - `covered`: Added to `browser-list` while the playlists or the visualizer cover it (the list stays mounted, hidden). * - `browser-playlists`: The playlists panel laid over the maps list. * - `selected-map`: The selection column. * - `selected-body`: The selection column's scrolling body (heading, figures, tabs, panels). * - `no-selection`: The invitation shown when nothing is selected. */ hostClasses: "song-select" | "pv-screen" | "map-browser" | "browser-body" | "browser-list" | "covered" | "browser-playlists" | "selected-map" | "selected-body" | "no-selection"; /** * CSS variables the game sets on the screen, which a `vars` attribute may also set: * - `--selection-color`: The accent of the selection, for the wash behind the screen. * - `--difficulty-color`: The accent of the selected difficulty (or playlist). * - `--row-distance`: On each row of the maps list (a set card, a difficulty row, the face of `library.setCard` and `library.chartRow` reads it): the number of rows between the row and the one the list centres its curve on, negative above it. The centre is the selected difficulty, else the selected set, else the row in t... */ cssVars: "--selection-color" | "--difficulty-color" | "--row-distance"; outputs: { /** Opens or closes the menu drawer (what Escape does): the way out of the screen for a theme that draws its own "menu" button. */ "drawer.toggle": []; /** Opens a random map of the current result (what the toolbar's Random does): the list scrolls to it, opens it and selects one of its difficulties. Never a play. */ "random": []; /** Opens the Mods tab of the selected map (or playlist). */ "mods.open": []; /** Opens the settings (the page the menu drawer's Settings entry opens). */ "settings.open": []; /** Switches a gameplay modifier on or off for the next plays (what its tile in the Mods tab does); switching one on switches off those it conflicts with. A toggle appends the new state: `on.change("mod.set", item.bind("key"))`. */ "mod.set": [key: string, on: boolean]; /** Asks for a playback rate (what the rate control does): the action moves it into the range and onto the grid of the open tab. */ "rate.set": [value: number]; /** Switches every gameplay modifier off (their parameters are kept). */ "mods.reset": []; /** Moves the preview (music and playfield) to a fraction of the map, 0 to 1: a step of `preview.steps` gives its `at`. Nothing happens while the preview is not shown. */ "preview.seek": [at: number]; /** Pauses or resumes the preview. */ "preview.toggle": []; }; /** * The places of the screen: a template must place every required one, anywhere. * - `toolbar` (mounts library.toolbar): The view switch, Random, the "…" menu, the online side and Visualize. Classic draws its original bar. A template that wants those pieces in different places places `views`, `online` and `visualize` instead (never both: the bar would be drawn twice). * - `views`: A piece of the toolbar, placed alone: the Maps | Playlists switch with its counts, Random and the "…" menu of the rare actions (add or refresh folders, new or imported playlists). * - `online`: A piece of the toolbar, placed alone: the online status (account, connection), the chat button and the multiplayer button. * - `visualize`: A piece of the toolbar, placed alone: the Visualize button (pressed while the visualizer is open). * - `intent` (required): The bar that tells the selection has another purpose now (the lobby's map is being picked) and lets it be dropped. * - `search` (required) (mounts library.search): The maps list's search: text, filters, grouping and sort (nothing while the maps to play show: their filters are in the `list` slot). A template that wants the field and the tools in different places places `searchField` and `searchTools` instead (both, and never with `search`). * - `searchField`: A piece of the maps search, placed alone: the text field with its recent searches, the filter chips and the lines that say a filter cannot apply. It takes the focus when the screen opens, as the whole search does. * - `searchTools`: A piece of the maps search, placed alone: Group (and fold all), Sort with its direction, the duplicates review and the "+ Filter" button with its window. * - `list` (required): The maps list: sets and their difficulties (their rows are drawn by the `library.setCard` and `library.chartRow` contracts). While `browser.view` is `mapsToPlay` it is the maps to play instead: their filters and their list (the `maps.toPlay` contract), so every template shows them where it shows the... * - `playlistSearch` (required) (mounts library.search): The playlists list's search: text and sort (shown over the playlists). * - `playlists` (required): The playlists list and its notices (shown while the playlists view is on). * - `visualizer` (required): The map visualizer. Shown over the list while `visualizerOpen` (the Visualize button) it is the panel it always was; placed where it is always drawn (outside such a `when`, or as a tab of a `tabs` group) it plays the selected map whenever it is on screen, follows the selection and never holds the li... * - `header` (required) (mounts selected.header): Title, difficulty, rating and figures; the invitation when nothing is selected. * - `tabs` (required) (mounts selected.tabs): The tabs of the map or the playlist. A panel the template places on its own (`infoPanel`, `leaderboardPanel`…) has no tab here. * - `panels` (required): The panel of every tab (Info, Leaderboard, Mods, Training, History, Editor, mods' tabs); the rate control, the score cards and the graphs are in them. A panel the template places on its own is not drawn here. * - `infoPanel`: One panel placed on its own, always shown: the Info tab of the selected map (analysis, density band, rate advice). It leaves `tabs` and `panels`. Its blocks carry `data-part` (in `panels` too): `analysis-radar`, `analysis-bars`, `analysis-metrics`, `analysis-timeline`, `analysis-text`, `analysis-pla... * - `leaderboardPanel`: One panel placed on its own, always shown: the Leaderboard tab of the selected map (local and online boards, score cards). It leaves `tabs` and `panels`. * - `modsPanel`: One panel placed on its own, always shown: the Mods tab of the selected map (rate, gameplay mods). It leaves `tabs` and `panels`. * - `trainingPanel`: One panel placed on its own, always shown: the Training tab of the selected map. It leaves `tabs` and `panels`. * - `historyPanel`: One panel placed on its own, always shown: the History tab of the selected map. It leaves `tabs` and `panels`. * - `mapsPanel`: One panel placed on its own, always shown: the Maps tab (maps to play). It leaves `tabs` and `panels`. * - `editorPanel`: One panel placed on its own, always shown: the Editor tab of the selected map. It leaves `tabs` and `panels`. * - `footer` (required) (mounts library.footer): Rating, judgement and Play; its `confirm` output must be bound to a button. */ slots: "toolbar" | "views" | "online" | "visualize" | "intent" | "search" | "searchField" | "searchTools" | "list" | "playlistSearch" | "playlists" | "visualizer" | "header" | "tabs" | "panels" | "infoPanel" | "leaderboardPanel" | "modsPanel" | "trainingPanel" | "historyPanel" | "mapsPanel" | "editorPanel" | "footer"; contracts: ThemeContractName; } /** screen.lobby: Multiplayer lobby. The room of a multiplayer lobby: its name and join code with the switches that open it and rotate its host, the players with their cards, the map the lobby plays (a card that leads to the song list, with its facts), the files members shared, the lobby's chat (or the player's mods) and the bar with L... */ interface ThemeTarget_screen_lobby { parts: never; /** * Classes of the game's stylesheet this template may use (the others are the theme's own): * - `room`: The room's root: a column that fills the page under its header. * - `band`: The header plate: the title, the code and the switches in a row that wraps. * - `grid`: The players column and the map column side by side (stacked under 1000px). * - `people`: The column of the players' panel and the files panel. * - `players-panel`: The plate of the players: heading, HUD gap and the scrolling roster. * - `side`: The column of the map card and the chat panel. * - `actions`: The bottom bar: leave and spectate at the start, ready at the end. * - `push`: An empty item that takes the free width of a row: what follows it is pushed to the end. * - `pv-plate`: The design system's plate (use with `pv-plate--lg` or `pv-plate--md`, and `data-tone` `raised` or `data-edge` `accent`). * - `pv-plate--lg`: The large plate: the shape of a panel (`--pv-clip-lg`). * - `pv-plate--md`: The medium plate: the shape of a button (`--pv-clip-md`). */ hostClasses: "room" | "band" | "grid" | "people" | "players-panel" | "side" | "actions" | "push" | "pv-plate" | "pv-plate--lg" | "pv-plate--md"; cssVars: never; outputs: { /** Leaves the lobby (what the Leave button does). */ "leave": []; /** Says whether the player is ready (a spectator cannot be). */ "ready.set": [ready: boolean]; /** Watches the round instead of playing it, or plays again. */ "spectate.set": [spectate: boolean]; /** Copies the join code to the clipboard. */ "code.copy": []; /** Opens the song list on the lobby's map: the host picks one there, a member finds it there. */ "map.open": []; }; /** * The places of the screen: a template must place every required one, anywhere. * - `title` (required): The lobby's name (`h2`) with its pills (open, rotating host, round started). * - `code` (required): The join code with its hide and copy buttons. * - `switches` (required): The "open lobby" switch (the host only, before the round) and the "rotate the host" switch (the host's to change), each with its help bubble: two labelled switches, side by side. * - `notice` (required): The line that tells a member who joined mid-round they wait for the next one; nothing when it does not apply. * - `playersHead`: The "Players" heading with the count and, once the round started, whether the results are in. Drawn by the host: a template that prefers its own heading writes it from `players`. * - `compare` (required): The "Gap to" menu that chooses the player the in-play gap is read against; nothing for a spectator, a member who waits, or with no rival. * - `roster` (required): The list of players (a `player.card` each, in the lobby's order or, once the round started, by accuracy), the faded cards of the members who just left and the replay button of each card whose replay the lobby holds. It scrolls. * - `files` (required): The shared files panel: the files members shared (share and download buttons) and the replays to watch. * - `map` (required): The map card: a big button that leads to the song list (the host picks there, a member finds it there) with the map's picture, title, artist, rate, judgement, density graph and facts, the download of a file the lobby shares and the preview button. With no map it says so ("No map chosen yet"). * - `panel` (required): The Chat and Mods tabs and the one panel they open: the lobby's chat (lines, composer) or the player's own modifiers. * - `draft` (mounts lobby.draft): The pick & ban draft of the lobby (`lobby.draft`): the host of a friendly lobby starts one, the captains ban and pick there. A template that leaves it out gets it drawn by the host after its room, so the draft stays reachable. Nothing when the server has no draft (no `lobby-draft` feature) or the lo... * - `leave` (required): The Leave button. * - `spectate` (required): The "Watch instead of playing" switch; nothing once the round started. * - `ready` (required): The Ready button (pressed once the player is ready, disabled for a spectator); nothing once the round started. */ slots: "title" | "code" | "switches" | "notice" | "playersHead" | "compare" | "roster" | "files" | "map" | "panel" | "draft" | "leave" | "spectate" | "ready"; contracts: ThemeContractName; } /** screen.mods: Mods. See and manage the mods the game loaded: the page's title with its install, open-folder and reload buttons, the folder they are read from, one card per mod (its state, its enable switch, its permissions with the switches that grant them, Export and Uninstall with its question), the interfaces instal... */ interface ThemeTarget_screen_mods { parts: never; /** * Classes of the game's stylesheet this template may use (the others are the theme's own): * - `mods-page`: The page's root: a column, 1100px at most, centred. * - `settings-heading`: The title row of a page (the heading and what sits beside it). */ hostClasses: "mods-page" | "settings-heading"; cssVars: never; outputs: { /** Asks for a `.pvmod` file to install (what the Install button does). */ "mod.install": []; /** Opens the mods folder in the system's file manager. */ "mods.folder": []; /** Reads the mods folder again. */ "mods.reload": []; /** Opens the Skins page, where the interface is chosen. */ "skins.open": []; }; /** * The places of the screen: a template must place every required one, anywhere. * - `title` (required): The page's heading (`h1`) with the help bubble that says a `.pvmod` file can be dropped on the window. * - `actions` (required): The Install, Open folder and Reload buttons. * - `folder` (required): The line that names the folder the mods are read from. * - `list` (required): The mods' cards (a list with one tab stop and Up and Down between the switches): name, version, author, state, the enable switch, Export and Uninstall, the description, the homepage as plain text, the permissions with the switches the player grants them with, the reason a mod did not start and the q... * - `interfaces`: The installed interfaces as chips (picture, name, version, author) with the button that leads to the Skins page where one is worn. * - `messages` (required): The "Messages" heading and the log: what the mod loader and the mods wrote, newest at the bottom (a `log` region that follows the newest message). */ slots: "title" | "actions" | "folder" | "list" | "interfaces" | "messages"; contracts: ThemeContractName; } /** screen.profile: Profile. The player's local profile: the header (name, rating, accuracy, play time, the medals the player pinned, the trackers, the judgement and rating pickers), the loading bar while the plays are rejudged, the tabs, and the tab shown. The screen's host builds every place from the stores and mounts it wher... */ interface ThemeTarget_screen_profile { parts: never; /** * Classes of the game's stylesheet this template may use (the others are the theme's own): * - `profile`: The page's root: a column with the page's padding that fills the window. * - `pv-screen`: A screen root (page padding and entrance). * - `pv-ui`: The design system's plates and buttons under the root, in Classic too. * - `pv-plate`: The design system's plate (use with `pv-plate--lg` or `pv-plate--md`, and `data-tone` `base`, `raised` or `accent`, or `data-edge` `accent`). * - `pv-plate--lg`: The large plate: the shape of a panel (`--pv-clip-lg`). * - `pv-plate--md`: The medium plate: the shape of a button (`--pv-clip-md`). * - `identity-band`: The header plate: a row (avatar, name, medals, figures, pickers) that grows as wide as the page. * - `wraps`: Added to the header while pinned medals or a third tracker fill it: the row wraps and the pickers go to the end. * - `identity`: The name column of the header: a block that takes the free width. * - `name-line`: The row of the name and the account badge. * - `figures`: The row of the rating, the accuracy and the trackers, pushed to the end of the header. * - `section-bar`: The row that holds the tab list. * - `status`: A line of the page's own words (no host, no play yet) in the page's muted text. */ hostClasses: "profile" | "pv-screen" | "pv-ui" | "pv-plate" | "pv-plate--lg" | "pv-plate--md" | "identity-band" | "wraps" | "identity" | "name-line" | "figures" | "section-bar" | "status"; cssVars: never; outputs: { /** Shows a tab: `overview`, `plays`, `analysis`, `sessions`, `achievements` or `goals`. An unknown tab does nothing. */ "tab.select": [tab: string]; /** Shows the plays tab on a filter: `best`, `recent`, `pinned` or `left` (what "See all" of the overview's lists does). An unknown filter shows the best plays. */ "plays.open": [view: string]; /** Rejudges the plays again under the current judgement and calculator (what changing either picker does). */ "refresh": []; }; /** * The places of the screen: a template must place every required one, anywhere. * - `avatar`: The player's tile: the first letter of the name on an accent plate. Decorative (hidden from screen readers), so a template may leave it out. * - `title` (required): The page's heading (`h1`): the player's name (the profile is local). * - `account` (required): The online account badge (the account's name, a "no connection" icon when offline) with its tooltip; nothing when the player is not logged in. * - `badges` (required): The medals the player pinned (a group of the achievements' badges, each with its tooltip); nothing when none is pinned. * - `rating` (required): The overall rating as a figure that counts up in place (Performance in pp, or Overall for a rating that is not a sum); nothing before any rated play. Large (`data-size="xl"`). * - `accuracy` (required): The accuracy of the top 20 plays as a figure that counts up in place; nothing without one. * - `trackers` (required): The stat trackers the player chose (up to three: the plays and the play time when none is chosen) and the small button that picks them. * - `choices` (required): The judgement picker and the performance calculator picker the profile is evaluated under: changing either rejudges the plays. * - `loading` (required): The bar (a progress bar with "Evaluating done / total") while the plays are rejudged; nothing otherwise. * - `tabs` (required): The tab list (Overview, Plays, Analysis, Sessions, Achievements, Goals): a roving-focus tab list with arrows, Home and End; the panel is its tab panel. Nothing when the page has no profile to show. * - `panel` (required): The tab shown, as one focusable tab panel (`data-section` names the tab): the radar with the objectives and two short lists of plays; the filtered plays; the calendar and the sessions; the error map; the achievements; or the goals and the progress. Nothing when the page has no profile to show. */ slots: "avatar" | "title" | "account" | "badges" | "rating" | "accuracy" | "trackers" | "choices" | "loading" | "tabs" | "panel"; contracts: ThemeContractName; } /** screen.replay: Score analysis. The analysis of one recorded score, and the result screen a finished play opens: the map, the player and the score's figures (accuracy, performance, best combo, pauses, the map's difficulty at the rate played, the mean offset), the list of every judgement with its count, the three graphs (hit timing... */ interface ThemeTarget_screen_replay { parts: never; /** * Classes of the game's stylesheet this template may use (the others are the theme's own): * - `replay-page`: The page's root: a column that fills the window, with the page's padding. Keep it, with `data-block: 'replay'`, on the root of a template that wants the host's own sizes. * - `pv-screen`: A screen root (page padding and entrance). * - `page-header`: The header row: the way back, the title and the pickers and actions pushed to the end. * - `replay-controls`: The pickers and the actions in a row that wraps, pushed to the end of the header. * - `replay-actions`: The actions on the score (compare, watch, side by side, export, share, train) as one group. * - `replay-scroll`: The box that holds the page's content (it scrolls under 800px). * - `replay-content`: The centred column of the content: the banner, the comparison and the analysis. * - `replay-layout`: The score overview and the graphs side by side. * - `score-overview`: The score's column: the player, the figures and the judgement list. * - `pv-plate`: The design system's plate (use with `pv-plate--lg`, and `data-edge` `accent`). * - `pv-plate--lg`: The large plate: the shape of a panel (`--pv-clip-lg`). */ hostClasses: "replay-page" | "pv-screen" | "page-header" | "replay-controls" | "replay-actions" | "replay-scroll" | "replay-content" | "replay-layout" | "score-overview" | "pv-plate" | "pv-plate--lg"; /** * CSS variables the game sets on the screen, which a `vars` attribute may also set: * - `--map-color`: The colour of the difficulty on the chosen rating: the host paints the difficulty's name with it, and a template may do the same (`vars: { '--map-color': c.bind('map.color') }` on its root). */ cssVars: "--map-color"; outputs: { /** Leaves the page for the song list (what the arrow does and Escape does). */ "back": []; /** Watches the replay in the game (what the Watch replay button does); refused while another one is being watched. */ "watch": []; /** Watches the score beside the reference play on one clock (what the Watch side by side button does); the host refuses a reference of another rate or other chart modifiers. */ "watch.sideBySide": []; /** Shares the replay (what the Share button does). */ "share": [replayId: string]; /** Chooses the play to compare the score with (a `replayId` of `comparison.references`). */ "compare.pick": [replayId: string]; /** Clears the chosen reference: the best earlier play is shown again. */ "compare.clear": []; }; /** * The places of the screen: a template must place every required one, anywhere. * - `back` (required): The arrow that leaves the page for the song list (the selection and the leaderboard's pages are kept). * - `title` (required): The heading (`h1`, the page's accessible name and the first place of the focus) with, beside it, the mark of the development host and the "updating" status of a recalculation. * - `judgement` (required): The judgement picker: a menu of the judgements the figures and the graphs are evaluated under, with its quick panel of windows. * - `performance` (required): The performance picker: a menu of the calculators the performance is computed with. * - `rating` (required): The difficulty picker: a menu of the calculators the map's difficulty is read with. * - `compare` (required): The "Compare score" menu: the other plays of the chart, one to choose as the reference, and the button that clears the choice. Its panel opens under the button. * - `watch` (required): The Watch replay button: runs the recorded presses through the game at the recorded rate (never creates a score). * - `sideBySide` (required): The Watch side by side button: the score and the reference beside each other on one clock; off while no compatible reference is chosen, and its tooltip says why. * - `export` (required): The Export video button and the panel it opens (resolution, quality, encoder, a clip). * - `share` (required): The Share button: copies the replay to a file or a link. * - `train` (required): The worst-section button: puts the passage the play lost the most in training at the recorded rate (a menu when several passages tie). * - `standings` (required): The standings of a lobby round (every player's score, the gap to yours, the winner); nothing for a score that is not a lobby's. * - `notices` (required): The lines that tell what is happening: a failed update, no weak passage found, "watching, press Escape to return", a refusal or an error of a replay. Nothing when there is nothing to say. * - `transport` (required): The transport of a replay being watched (play and pause, seek, speed); nothing when no replay runs. * - `banner`: The map's strip: its picture, the artist, the title and the difficulty, the key count, the recorded rate and the chart modifiers, the mapper. Drawn by the host: a template that prefers its own banner writes it from `map`. * - `comparison` (required): The line about the reference play: its player, the "new record" mark, the gaps (accuracy, combo, misses, rating, performance) that count up and down in place, or "first play of this chart", or the error of the comparison. It may be empty. * - `player` (required): The player's name (`h2`) with the mark of a received replay, and the date of the play. * - `stats` (required): The score's figures (`dl`): accuracy, performance, best combo, pauses, the map's difficulty at the rate played, the mean offset. Each figure counts up or down in place when the judgement changes and carries its own `data-part` (`accuracy`, `performance`, `combo`, `pauses`, `difficulty`, `offset`). * - `tiers` (required): The judgement list: one row per judgement, Miss included, with the player's own symbol, the count (a counter), the share of notes as a bar, the ratios of the first two hit tiers and the total. It has its own bounded scrolling when there are many. * - `graphs` (required): The analysis: the tabs (Hit timing, Hit-offset distribution, Progression), the zoom, the inspection of one hit, the key highlights, the long-note analysis and the comparison curves. Nothing in it is a template's to redraw. * - `status` (required): What the page says while there is no analysis to show: reading the score, the error that stopped it, "no analysis". Nothing once the score is there (place it where `status` is not `ready`). */ slots: "back" | "title" | "judgement" | "performance" | "rating" | "compare" | "watch" | "sideBySide" | "export" | "share" | "train" | "standings" | "notices" | "transport" | "banner" | "comparison" | "player" | "stats" | "tiers" | "graphs" | "status"; contracts: ThemeContractName; } /** screen.result: Result. What the last play came to: the accuracy, the best combo and how many hits each judgement got, with a mark when the play was aborted, was an Auto play or does not count for the rankings. The host builds the heading with its marks, the list of judgement counts (a tier's symbol is the player's own, an... */ interface ThemeTarget_screen_result { parts: never; /** * Classes of the game's stylesheet this template may use (the others are the theme's own): * - `results`: The summary's own box: fixed over the foot of the window (left, right and bottom insets), a row with the heading pushed to the left, a plate under the interface themes. A stylesheet cannot make a box fixed, so a template keeps this class on its root and moves or reshapes the box with a class of its ... */ hostClasses: "results"; cssVars: never; outputs: { /** Removes the summary now (what the close button does). */ "dismiss": []; }; /** * The places of the screen: a template must place every required one, anywhere. * - `title` (required): The heading (`h2`): "Result" or "Aborted", followed by the marks of an Auto play and of a play that does not count for the rankings. It is the summary's name for assistive technology (the summary is a polite live region). * - `tiers` (required): The list of judgement counts: one entry per judgement with its count, its colour swatch and its symbol (the player's own symbol, else the judgement's name). * - `close` (required): The close button: it removes the summary at once (what the ten-second expiry does later). */ slots: "title" | "tiers" | "close"; contracts: ThemeContractName; } /** screen.settings: Settings. Change how the game plays, looks and sounds: seven categories (rail), a search over every setting, the open category's sections (panel) with its live summary. The screen's host builds every place from the stores and the settings and mounts it where the template says; the template only decides WHERE ... */ interface ThemeTarget_screen_settings { parts: never; /** * Classes of the game's stylesheet this template may use (the others are the theme's own): * - `settings-page`: The window's content: a column that clips what overflows. * - `settings-top`: The header row (title, search, buttons) with a hairline under it. * - `settings-top-actions`: The group of the header's buttons, pushed to the right. * - `settings-layout`: The rail and the panel side by side (the choices `data-layout-settings` place them); stacked under 700px. */ hostClasses: "settings-page" | "settings-top" | "settings-top-actions" | "settings-layout"; cssVars: never; outputs: { /** Closes the settings (what Escape and the Close button do). */ "close": []; /** Opens a category (what a click on its tab does: the search is emptied and the panel scrolls to the top). An unknown id does nothing. */ "category.select": [id: string]; /** Puts the focus in the search field (what `/` does). */ "search.focus": []; /** Empties the search and shows the open category again. */ "search.clear": []; }; /** * The places of the screen: a template must place every required one, anywhere. * - `title` (required): The window's heading (`h1`): it names the dialog for assistive technology. * - `search` (required): The search field over every setting (`/` and Ctrl+F reach it from anywhere in the window). * - `actions` (required): Export and import of the settings, and "Restore defaults" for all of them (it asks first). * - `close` (required): The Close button. * - `notices` (required): What the game has to say over the settings (updates…), the notice of an export or an import and the review of an imported file. Position the review (`[data-part='review']`) with the notice box if the layout moves it. * - `rail` (required): The category list: the tab list with arrows, Home and End, the count of changed settings and the pin menu; the choice `--pv-layout-settings` (side, top, index, rail) shapes it. * - `panel` (required): The scrolling panel: the open category's heading with its reset button and live summary, then its sections; or the rows a search found. It is the `tabpanel` of the rail. * - `hints`: The keyboard hints (search, category, page, Escape): decoration, hidden from assistive technology. */ slots: "title" | "search" | "actions" | "close" | "notices" | "rail" | "panel" | "hints"; contracts: ThemeContractName; } /** screen.skins: Skins. Choose the menus' interface (a carousel of the installed themes) and the skin the plays run: the page's title, the notices of a skin import or a configuration review, the interface picker, and the skins' section (its search and Actions menu, one card per skin with its Use, Customize, export, reset a... */ interface ThemeTarget_screen_skins { parts: never; /** * Classes of the game's stylesheet this template may use (the others are the theme's own): * - `skins-page`: The page's root: a scrolling column, 1100px at most, centred. * - `settings-heading`: The title row of a page (the heading and what sits beside it). * - `skins-section`: The skins' section: its header, the cards and the problems, with the section's bottom margin. */ hostClasses: "skins-page" | "settings-heading" | "skins-section"; cssVars: never; outputs: { /** Wears an interface (what a click on its card does); an id of no installed theme falls back to the first one the game lists. */ "interface.use": [id: string]; /** Runs a skin from the next map launch on (what Use does). */ "skin.use": [id: string]; /** Opens the editor on the skin in use (what Customize does). */ "skin.customize": []; /** Asks for a skin file to import (the Actions menu's Import). */ "skins.import": []; /** Opens the skins folder in the system's file manager. */ "skins.folder": []; /** Reads the skins folder again. */ "skins.reload": []; }; /** * The places of the screen: a template must place every required one, anywhere. * - `title` (required): The page's heading (`h1`). * - `notices` (required): The review of a configuration the player imported and the progress of a skin import (what was read, with its Edit and Dismiss buttons); nothing when there is none. * - `interfaces` (required): The interface picker: a search, the arrows and the Actions menu (open the themes folder, reload) over a carousel of one card per theme with its picture, name, description and author (arrows, Home and End, drag, the wheel); choosing a card applies the theme at once. The ONE place a template cannot lo... * - `skinsHead` (required): The skins' section header: its title with its help, the search (from eight skins) and the Actions menu (convert a skin, per-key-count skins, import, open the folder, reload). * - `skins` (required): One card per skin: preview, name, version, author, "in use" and key-count badges, the customization line, the reset and remove questions, the problems of the skin, and its buttons (Customize, Use, export, the configuration's export and import, remove, reset). Or the line that says there is no skin o... * - `problems` (required): The problems the skins folder reported; nothing when there are none. */ slots: "title" | "notices" | "interfaces" | "skinsHead" | "skins" | "problems"; contracts: ThemeContractName; } /** screen.title: Title. The screen the game opens on, once at each launch: the logo, the name, the cue to press a key, the band that moves with the music, the version, and the map of the library that plays. Any key, click or touch enters the game whatever the template draws (the host owns the window, the keys and the music... */ interface ThemeTarget_screen_title { parts: never; /** * Classes of the game's stylesheet this template may use (the others are the theme's own): * - `title-center`: The default middle column: the logo, the name and the cue centred, a little above the middle. * - `title-foot`: The default foot: a strip along the bottom edge that holds the band, with the version over it. * - `title-glow`: The soft light that breathes behind the middle. */ hostClasses: "title-center" | "title-foot" | "title-glow"; /** * CSS variables the game sets on the screen, which a `vars` attribute may also set: * - `--beat`: The music's bass, 0 to 1: quick to rise, slow to fall (0 under reduced motion). */ cssVars: "--beat"; outputs: { /** Enters the game now (what any key, click or touch does). */ "enter": []; }; /** * The places of the screen: a template must place every required one, anywhere. * - `logo`: The game's mark with its halo, which breathes and swells on the bass (`--beat`). * - `name` (required): The game's name (`h1`): the screen's heading for assistive technology. * - `press` (required): The cue that says how to enter ("press any key"): a player must always be told. * - `band`: The spectrum band: bars that follow the music (a calm wave while none plays), drawn by the host in a canvas that fills the box it is given. * - `version`: The game's version in a small plate. * - `nowPlaying`: The map that plays: its artist and title in one line, nothing while none is drawn. */ slots: "logo" | "name" | "press" | "band" | "version" | "nowPlaying"; contracts: ThemeContractName; } /** screen.tournaments: Tournaments. The tournaments of the site: the list (filtered by status), one tournament with its facts, its entries and its bracket or standings, one match with its games, and the player's own entries with the next match and its countdown. The host reads the site; the game only reads it, and sends the four actio... */ interface ThemeTarget_screen_tournaments { parts: never; /** * Classes of the game's stylesheet this template may use (the others are the theme's own): * - `tournaments`: The page's root: a column with the page's padding that fills the window. * - `pv-screen`: A screen root (page padding and entrance). * - `pv-ui`: The design system's plates and buttons under the root, in Classic too. * - `pv-plate`: The design system's plate (use with `pv-plate--lg`, and `data-tone` or `data-edge` `accent`). * - `page-head`: The header row (back, title, chips) that wraps when the window is narrow. * - `label-line`: The row of the title and its help bubble. * - `push`: An empty item that takes the free width of a row: what follows it is pushed to the end. * - `body`: The page under the header: a column that fills the free height. * - `bar`: A row of tabs and filters, wrapping when narrow. * - `cards`: A grid of cards (the list, the entries, my entries). * - `card`: One tournament, entry or match card (a plate). * - `facts`: A list of terms (the tournament's facts). * - `bracket-scroll`: The scrolling area of the bracket: the columns side by side, scrolling sideways. * - `bracket-col`: One column of the bracket: the round's name and its match cards. * - `mark`: A small status mark (`data-state`: registration, running, finished, cancelled, ...). * - `note`: A line of the page's own words in the muted text. * - `pager`: The previous and next buttons and the page number of a list. * - `countdown`: The countdown to the next match, tabular figures. */ hostClasses: "tournaments" | "pv-screen" | "pv-ui" | "pv-plate" | "page-head" | "label-line" | "push" | "body" | "bar" | "cards" | "card" | "facts" | "bracket-scroll" | "bracket-col" | "mark" | "note" | "pager" | "countdown"; cssVars: never; outputs: { /** Leaves the page for the song selection (what the back arrow does on the list). */ "back": []; /** Goes back one level: from a match to its tournament, from a tournament to the list. */ "nav.up": []; /** Reads the page again (what Retry does): the list or the tournament, its matches and the player's entries. */ "refresh": []; /** Opens Settings → Online (what the offline notice's button does). */ "settings.open": []; /** Shows `list` or `mine`. An unknown view shows the list. */ "view.select": [view: string]; /** Filters the list by `all`, `registration`, `running` or `finished`. An unknown filter shows all. */ "filter.select": [filter: string]; /** Shows the page of the list that starts at this offset (a multiple of the page size); the filter is kept. */ "page.select": [offset: number]; /** Opens a tournament: its facts, entries, bracket or standings. */ "tournament.open": [slug: string]; /** Opens one match of the tournament shown: its sides and games. */ "match.open": [matchId: string]; /** Registers the player in the tournament shown (a team name is asked for a team tournament). */ "register": [teamName: string | null]; /** Joins a team with its join code (the code the captain shows, never kept after). */ "join.team": [code: string]; /** Withdraws the player's entry from the tournament shown. */ "withdraw": []; /** Removes a member from the captain's team in the tournament shown. */ "member.remove": [userId: string]; /** Takes a seat in a session of the qualifier of the tournament shown (a team: its captain seats it). */ "session.take": [sessionId: string]; /** Joins the lobby of the qualifier session the server invited the player to (the invitation the notice card also offers). */ "session.join": []; /** Gives a seat of a qualifier session back, with its attempt. */ "session.leave": [sessionId: string]; }; /** * The places of the screen: a template must place every required one, anywhere. * - `back` (required): The back arrow: from a match to its tournament, from a tournament to the list, from the list to the song selection. * - `title` (required): The page's heading (`h1`) with the help bubble that says the game reads the site and sends only four actions. * - `online` (required): The online chip (the account's connection) and the chat button. * - `gate` (required): The notice of offline mode with its button to Settings → Online; nothing otherwise. * - `failed` (required): The line that says what could not be read, with its Retry button; nothing when everything was read. * - `notice` (required): The line that says what the last action did (registered, withdrawn, member removed); nothing otherwise. * - `tabs` (required): The two tabs of the page (All tournaments, My entries). * - `filters` (required): The status filter of the list (all, registration, running, finished) as a segmented control. * - `list` (required): The tournaments as cards (name, format, mode, status, entries, the date that matters) and the pager; or the line that there is none. * - `detail` (required): The tournament's header: name, status, format, mode, metric, dates, entries count and its actions (register, withdraw, join a team with a code). * - `qualifier`: The qualifier played in lobbies at fixed sessions: its rules, the attempts left and each session with its seats; the player takes a seat, gives it back, or joins the lobby the server opened. Nothing for another tournament. Added in THEME_API 2. * - `entries` (required): The entries: seed, name, state and members, the captain marked and the player's own entry marked; a captain can remove a member. * - `bracket` (required): The bracket as columns of match cards; the columns scroll sideways inside the bracket only. Nothing for a qualifier. * - `standings` (required): The ranking of a qualifier or a Swiss tournament: rank, name, points, then the map by map scores (a qualifier) or the tiebreaks (a Swiss tournament); nothing when the tournament has no standings. * - `match` (required): One match: the sides, the round, the schedule, the referee, the forfeit, and the games with their maps and scores. * - `mine` (required): The player's entries as cards: the state, the next match with its countdown, the join code of a captain's own team. */ slots: "back" | "title" | "online" | "gate" | "failed" | "notice" | "tabs" | "filters" | "list" | "detail" | "qualifier" | "entries" | "bracket" | "standings" | "match" | "mine"; contracts: ThemeContractName; } /** catalog.card: Catalogue entry. One skin, mod or playlist of Prism's catalogue, with the action that installs it. The card is a list item the page provides (`ul.cards`); its state says what the action beside it offers (install, update, cancel, installed), which is what a template must keep. A FACE: the host draws the card's own root, keyboard, menus and actions, this template draws what is inside it (no button, toggle, dropdown or contract; no output to call). */ interface ThemeTarget_catalog_card { /** * The elements of the default renderer, which `part` marks: * - `cover` (img): The first screenshot. * - `install` (button): The Install or Update button. * - `cancel` (button): The Cancel button of a running download. * - `installed` (img): The check mark of an installed entry. */ parts: "cover" | "install" | "cancel" | "installed"; hostClasses: never; cssVars: never; outputs: {}; /** * The game's own widgets a face places: * - `permissions`: The permissions a mod asks for, each with its badge and what it means in plain words (or "asks for nothing"): a face may place it; the install confirmation lists them again, so a face that leaves it out hides nothing a player must see. * - `progress`: The progress and the result of an install (percentage, "installing", done with the buttons that follow, failed with its reason): the host draws it under the card itself (a face cannot place it). * - `below`: The question a mod's install asks before it starts (what it can do, its hash, Install and Cancel): the host draws it under the card itself (a face cannot place it). */ slots: "permissions" | "progress" | "below"; contracts: ThemeContractName; } /** download.card: Download result. One result of the Download page: a set of osu!, Quaver, a mod's source or Prism's index, or an Etterna pack, with the action that downloads it. The card is a list item the page provides (`ul.cards`); its state says what the action beside it offers (download, wait, progress, installed, retry), which ... A FACE: the host draws the card's own root, keyboard, menus and actions, this template draws what is inside it (no button, toggle, dropdown or contract; no output to call). */ interface ThemeTarget_download_card { /** * The elements of the default renderer, which `part` marks: * - `toggle` (button): The pack's main control: opens or closes its songs. * - `download` (button): The download button. * - `retry` (button): Starts the failed download again. * - `lock` (button): The lock of a source that needs a login: opens the settings. * - `installed` (img): The check mark of an installed result. * - `queued` (img): The clock of a queued download. * - `progress` (text): The percentage of a running download. * - `reason` (status): Why the download failed. * - `preview` (button): The Preview button of a Prism result. */ parts: "toggle" | "download" | "retry" | "lock" | "installed" | "queued" | "progress" | "reason" | "preview"; hostClasses: never; cssVars: never; outputs: {}; /** * The game's own widgets a face places: * - `contents`: The songs of an open Etterna pack: the host draws them under the card itself (a face cannot place them). */ slots: "contents"; contracts: ThemeContractName; } /** leaderboard.card: Leaderboard card. One score of the chart's leaderboard: rank, player, the rate it was played at, accuracy, the tiers and the combo, with the buttons beside it (ghost, share, watch, report). A list card sits in a list item the screen provides; the player's own play is drawn alone under the list. Not contracted yet and... A FACE: the host draws the card's own root, keyboard, menus and actions, this template draws what is inside it (no button, toggle, dropdown or contract; no output to call). */ interface ThemeTarget_leaderboard_card { /** * The elements of the default renderer, which `part` marks: * - `open` (button): The card itself, when the play has a replay to open (a local play, or an online play that has one). * - `rank` (text): The rank. * - `name` (text): The player's name, or the unknown player text. * - `rate` (text): The playback rate the play was made at. * - `mods` (text): The chart modifiers of the play (a local play that recorded some). * - `combo` (text): The best combo. * - `misses` (text): The notes missed, when the card has no tier counts. * - `accuracy` (text): The accuracy. * - `performance` (text): The performance value, or why there is none. * - `date` (time): When the play was made. * - `ghost` (button): The ghost toggle: pressed when the play is the ghost. * - `share` (button): Shares the replay. * - `watch` (button): Opens the replay of an online play. * - `retry` (button): Asks again for a replay that could not be downloaded. * - `loading` (img): The replay is downloading. * - `report` (button): Reports a play of the online board to the staff (another player's play, signed in and online). */ parts: "open" | "rank" | "name" | "rate" | "mods" | "combo" | "misses" | "accuracy" | "performance" | "date" | "ghost" | "share" | "watch" | "retry" | "loading" | "report"; hostClasses: never; cssVars: never; outputs: {}; /** * The game's own widgets a face places: * - `tiers`: The count of every tier of the judgement (the game's own widget; nothing when the counts do not name the tiers). * - `pauses`: The pauses of the play (the game's own chip, with its tooltip; nothing when none). */ slots: "tiers" | "pauses"; contracts: ThemeContractName; } /** library.chartRow: Difficulty row. One difficulty of the open set in the song list (or one map of an open playlist): its layout, name, the marks it carries (missing file, silent, note, goals), why it is listed, its main pattern, its rating and that rating as ten stars. The list owns the row it sits in and the context menus; this cont... A FACE: the host draws the card's own root, keyboard, menus and actions, this template draws what is inside it (no button, toggle, dropdown or contract; no output to call). */ interface ThemeTarget_library_chartRow { /** * The elements of the default renderer, which `part` marks: * - `keys` (text): The layout. * - `name` (text): The difficulty name, then its marks (missing file, silent, note, goals). * - `rate` (text): The rate a playlist plays the map at. * - `similar` (text): Why a "Similar maps" list shows the chart. * - `rateOf` (text): The proven rate copy label. * - `pattern` (text): The main pattern capsule. * - `rating` (text): The rating figure and its unit. * - `plays` (text): The own plays count. */ parts: "keys" | "name" | "rate" | "similar" | "rateOf" | "pattern" | "rating" | "plays"; hostClasses: never; cssVars: never; outputs: {}; /** * The game's own widgets a face places: * - `goal`: The goal mark of the chart (drawn when a goal is open or reached; nothing otherwise): the game's own widget, with its tooltip. * - `missing`: The warning mark of a chart that lacks its audio or its picture (nothing when nothing is missing): the game's own widget, with its tooltip. */ slots: "goal" | "missing"; contracts: ThemeContractName; } /** library.footer: Footer of the selection. The rating and judgement dropdowns and the main button under the selected map (Play, Train or Choose) or the selected playlist (Play as playlist, Marathon). The reason a button is off is always readable, and the dropdowns stay usable. Not contracted yet and still bound to their stores inside the def... */ interface ThemeTarget_library_footer { /** * The elements of the default renderer, which `part` marks: * - `rating` (button): The rating dropdown's trigger. * - `judgement` (button): The judgement dropdown's trigger. * - `refusal` (alert): The line that says no judgement can be used. * - `play` (button): The main button of a map. * - `unranked` (none): The room of the "unranked" mark (empty when the chart is ranked or unknown). * - `reason` (none): The visually hidden line that says why a button is off; the button is described by it. * - `start` (button): Plays the selected playlist map after map. * - `marathon` (button): Plays the selected playlist as one marathon. */ parts: "rating" | "judgement" | "refusal" | "play" | "unranked" | "reason" | "start" | "marathon"; hostClasses: never; cssVars: never; outputs: { /** Chooses the rating the game reads charts with. */ "rating.pick": [value: string]; /** Chooses the judgement of the next plays: a set (`set:`) or a custom preset (`custom:`). */ "judgement.pick": [value: string]; /** Opens the Judgement page of the Settings. */ "judgement.settings": []; /** The main button of a map: plays it, trains the section (Training tab) or picks it as the lobby's map, as `chart.confirm` decides (it is also what Enter does on the page). REQUIRED: a template of the contract must bind it to a control. */ "confirm": []; /** Plays the playlist map after map. */ "playlist.start": [playlistId: number]; /** Plays the playlist as one marathon map. */ "marathon.start": [playlistId: number]; }; slots: never; contracts: ThemeContractName; } /** library.search: Song search bar. The field where the list is searched, with what narrows it (filter chips, grouping, sort) and the popover of recent searches. The same bar serves the playlists list (`mode` playlists), where only the text and the sort apply (the host searches the playlists' names and maps). Not contracted yet and st... */ interface ThemeTarget_library_search { /** * The elements of the default renderer, which `part` marks: * - `bar` (none): The plate under the field and the tools (a theme that draws its own field clears it: `--plate: transparent`). * - `field` (combobox): The search text; ArrowDown opens the recent searches. * - `clear` (button): Empties the text (shown while there is some). * - `history` (region): The recent searches popover (open on demand). * - `sort` (button): The sort choice. * - `direction` (button): Ascending or descending. * - `group` (button): The grouping choice (maps only). * - `filters` (group): The active filter chips (present while there are some). * - `status` (status): The line that says a filter cannot apply now. * - `syntax` (status): The line that previews a criterion being typed, or says a word shaped like one is not recognised. * - `error` (alert): The line that says the last filter was refused. */ parts: "bar" | "field" | "clear" | "history" | "sort" | "direction" | "group" | "filters" | "status" | "syntax" | "error"; /** * Classes of the game's stylesheet this template may use (the others are the theme's own): * - `library-search`: The bar's root (placed with its margins by the game). * - `search-bar`: The plate under the field and the tools. * - `filter-chips`: The row of filter chips. * - `bar-menu`: A group of the tools row (grouping, sort, duplicates, filter). * - `pv-plate`: A plate of the design system. */ hostClasses: "library-search" | "search-bar" | "filter-chips" | "bar-menu" | "pv-plate"; cssVars: never; outputs: { /** The text changed (every keystroke), or was emptied. In `playlists` mode it is the playlists' own filter. */ "query.set": [text: string]; /** The field lost the focus, or Enter: the composed search is kept in the history and the closed criteria become chips. Maps only. */ "query.commit": [text: string]; /** Another sort key (the playlists' own sort in `playlists` mode). */ "sort.set": [key: string]; /** Ascending or descending. */ "sort.toggleDirection": []; /** Another grouping. */ "group.set": [key: string]; /** Folds every group. */ "group.collapseAll": []; /** Opens every group. */ "group.expandAll": []; /** Draws the random order again (sort "random"). */ "reshuffle": []; /** Opens the filters window on a criterion (the chip was clicked). The host gives it: the window is its own. */ "filter.edit": [key: string]; /** Removes a filter chip. */ "filter.remove": [key: string]; /** Applies a recent search again. */ "history.restore": [id: string]; /** Pins or unpins a recent search. */ "history.pin": [id: string]; /** Forgets one recent search. */ "history.remove": [id: string]; /** Forgets every recent search that is not pinned. */ "history.clear": []; /** Stops recording the searches. */ "history.pause": []; /** Records the searches again. */ "history.resume": []; /** Starts or stops the review of the duplicates. */ "duplicates.review": []; /** Shows the duplicate of the selected map in the list. */ "duplicates.reveal": []; }; /** * Places the screen fills in this contract's template: * - `filterWindow`: The "Filter" button and its window (`FilterWindow`, not contracted yet); the host sets the window's criterion when `filter.edit` is asked. Maps only. */ slots: "filterWindow"; contracts: ThemeContractName; } /** library.setCard: Set card. One beatmapset (or playlist) of the song list: artwork, title, artist, a line of facts, the layouts, the rating and a strip of difficulty chips. The list owns the row it sits in, the "+N" popover and the context menus; this contract only draws the card and asks. `MissingMark` and `GoalMark` are moun... A FACE: the host draws the card's own root, keyboard, menus and actions, this template draws what is inside it (no button, toggle, dropdown or contract; no output to call). */ interface ThemeTarget_library_setCard { /** * The elements of the default renderer, which `part` marks: * - `art` (presentation): The set's picture, or the playlist's mosaic, behind the text. * - `title` (text): The song title. * - `artist` (text): The artist (a filter on Ctrl+click, except on a playlist card). * - `meta` (text): The line of facts: why it is listed, NEW, the mapper, the difficulty count, the marks, the plays. * - `creator` (text): The mapper's name inside the line of facts (a filter on Ctrl+click, except on a playlist card). * - `keys` (text): The layouts, after the goal mark when there is one. * - `rating` (text): The rating range. * - `strip` (presentation): The chips of the difficulties (hidden from assistive technology: the count is in the meta line). * - `more` (img): The "+N" badge of the difficulties the strip has no room for; hovering it opens the full list. */ parts: "art" | "title" | "artist" | "meta" | "creator" | "keys" | "rating" | "strip" | "more"; hostClasses: never; cssVars: never; outputs: {}; /** * The game's own widgets a face places: * - `goal`: The goal mark of the set (drawn when some goal is open or reached; nothing otherwise), or in Maps to play the chart's kind badge (comfort, push, stretch, each its colour): the game's own widgets, with their tooltip. * - `missing`: The warning mark of a set that lacks audio or a background (nothing when nothing is missing): the game's own widget, with its tooltip. */ slots: "goal" | "missing"; contracts: ThemeContractName; } /** library.toolbar: Song list toolbar. What the player does around the list: switch between the maps, the playlists and the maps to play, draw a random map, open the rare actions (folders, playlists), reach the online side and the map visualizer. Slant and Cabinet draw the view switch and one "…" menu for the rare actions (the screen ope... */ interface ThemeTarget_library_toolbar { /** * The elements of the default renderer, which `part` marks: * - `views` (radiogroup): The maps / playlists / maps to play switch (Slant and Cabinet). * - `playlists` (radio): The playlists choice: a segment of the switch (Slant and Cabinet) or the toggle (Classic). * - `mapsToPlay` (radio): The maps to play choice: a segment of the switch (Slant and Cabinet) or a toggle (Classic). * - `random` (button): The random map. * - `menu` (button): The menu of the rare actions (Slant and Cabinet). * - `action` (button): One of the rare actions laid out as a button (Classic). * - `multiplayer` (button): The multiplayer page. * - `visualize` (button): The visualizer toggle (pressed while it is open). */ parts: "views" | "playlists" | "mapsToPlay" | "random" | "menu" | "action" | "multiplayer" | "visualize"; /** * Classes of the game's stylesheet this template may use (the others are the theme's own): * - `library-toolbar`: The bar's root. * - `bar`: The bar of Slant and Cabinet (one text style, side groups). * - `bar-side`: One side of the bar: the view and its tools, or the online side and Visualize. * - `online`: The frame of the online side (status, chat, multiplayer). * - `viz`: The Visualize button (its word is always shown while the bar is wide enough). * - `viz-label`: The word of the Visualize button. * - `tb-label`: A button's word in Classic's bar (hidden when the bar is narrow). * - `active`: A pressed toggle of Classic's bar. */ hostClasses: "library-toolbar" | "bar" | "bar-side" | "online" | "viz" | "viz-label" | "tb-label" | "active"; cssVars: never; outputs: { /** Shows the maps, the playlists or the maps to play. Opening the playlists hands the keyboard to their panel (arrows walk, Enter plays). REQUIRED: a template of the contract must bind it to a control. */ "view.set": [view: "maps" | "playlists" | "mapsToPlay"]; /** Selects a random map. */ "random": []; /** Plays the built-in demo map. The default renderer has no button for it any more; a template may draw one. */ "demo": []; /** Opens or closes the map visualizer. */ "visualize": []; /** Opens the multiplayer page. */ "multiplayer": []; /** Opens the menu of the rare actions under the button; the point is where its top left corner goes. The screen gives it. */ "menu.open": [x: number, y: number]; /** Runs one action of that menu (`add`, `refresh`, `new`, `import` or `paste`, the `id` of `menu`). */ "menu.run": [id: string]; }; /** * Places the screen fills in this contract's template: * - `online`: The online status chip and the chat button (not contracted yet); the multiplayer button is the renderer's own, placed after them. */ slots: "online"; contracts: ThemeContractName; } /** lobby.draft: Lobby draft. The pick & ban panel of a friendly lobby. The host sets the draft up (best of, bans per side, first side, pick rule, turn timer and the pool staged from the library), then the captains of the two sides ban and pick the maps in turn; the panel shows the pool (banned maps crossed out, picked and playe... */ interface ThemeTarget_lobby_draft { /** * The elements of the default renderer, which `part` marks: * - `heading` (heading): The panel's title. * - `denial` (status): The reason of the last refused action, in words. * - `problem` (status): What the setup form lacks to start, in words. * - `start` (button): Starts the draft from the setup form. * - `poolAdd` (button): Stages the library's selected chart in the pool. * - `poolRemove` (button): Takes a map out of the staged pool. * - `pool` (list): The staged pool, or the maps of the running draft. * - `map` (listitem): A map card of the pool: its cover, title, artist and difficulty, slot, rate and state. * - `ban` (button): Bans a map: the button on its open card (the captain on turn only). * - `pick` (button): Picks a map: the button on its open card (the captain on turn only). * - `turn` (status): Whose turn it is to ban or pick, with the countdown. * - `score` (status): The series score. * - `forfeit` (button): Forfeits the draft for a side (the host only). * - `abort` (button): Aborts the draft (the host only). */ parts: "heading" | "denial" | "problem" | "start" | "poolAdd" | "poolRemove" | "pool" | "map" | "ban" | "pick" | "turn" | "score" | "forfeit" | "abort"; hostClasses: never; cssVars: never; outputs: { /** Starts the draft from the setup form: the best of, the bans per side, the first side, the pick rule and the turn timer in seconds (0 for none). The sides are the lobby's players. */ "start": [bestOf: number, bansPerSide: number, first: "a" | "b", pickRule: "alternate" | "loser_picks", turnSecs: number]; /** Bans a map of the pool, by its slot (the captain on turn). */ "ban": [slot: string]; /** Picks a map of the pool, by its slot (the captain on turn). */ "pick": [slot: string]; /** Forfeits the draft for a side (the host). */ "forfeit": [side: "a" | "b"]; /** Aborts the draft (the host). */ "abort": []; /** Stages the library's selected chart in the pool (the host). */ "pool.add": []; /** Takes a map out of the staged pool, by its slot (the host). */ "pool.remove": [slot: string]; }; slots: never; contracts: ThemeContractName; } /** maps.toPlay: Maps to play. Charts of the player's own library to push next: near their level, in their strong patterns, at a suggested rate, with the expected Prism accuracy. Filtered by key count and pattern; going to a map selects it and sets the suggested rate. */ interface ThemeTarget_maps_toPlay { /** * The elements of the default renderer, which `part` marks: * - `heading` (heading): The title of the panel. * - `keys` (group): The key count filter. * - `key` (button): One key count (repeats). * - `patterns` (group): The pattern filter. * - `pattern` (button): One pattern, the first being "Strongest" (repeats). * - `list` (list): The charts. * - `entry` (listitem): One chart (repeats). * - `goTo` (button): Goes to a chart: the row is the button (repeats). * - `message` (status): What the panel says when there is no list. * - `retry` (button): Asks again. */ parts: "heading" | "keys" | "key" | "patterns" | "pattern" | "list" | "entry" | "goTo" | "message" | "retry"; hostClasses: never; cssVars: never; outputs: { /** Goes to the map: selects it in the library and sets the suggested rate (the title is what the list searches for). REQUIRED: a template of the contract must bind it to a control. */ "goTo": [index: number, title: string, rate: number]; /** Shows the list for another key count. */ "filter.keys": [keys: number]; /** Shows the list for one pattern; the empty text is the player's strongest ones. */ "filter.pattern": [pattern: string]; /** Asks the host for the list again. */ "retry": []; }; slots: never; contracts: ThemeContractName; } /** player.card: Player card. One player: a member of the multiplayer lobby (before the round, or while it runs) or a connected player of the chat's players' panel. The card is a list item the host provides (the lobby's list of members, the panel's grid); its state says which of the three it is. The game keeps the item, the play... A FACE: the host draws the card's own root, keyboard, menus and actions, this template draws what is inside it (no button, toggle, dropdown or contract; no output to call). */ interface ThemeTarget_player_card { /** * The elements of the default renderer, which `part` marks: * - `avatar` (img): The tile of the picture and the initial. * - `name` (text): The player's name. * - `rank` (text): The site's rank. * - `status` (text): The status of the player in the panel. * - `ready` (status): Whether the member is ready. * - `accuracy` (text): The accuracy of the round. * - `watch` (button): The button over the card that opens the member's replay. */ parts: "avatar" | "name" | "rank" | "status" | "ready" | "accuracy" | "watch"; hostClasses: never; cssVars: never; outputs: {}; /** * The game's own widgets a face places: * - `avatar`: The profile picture, to lay over the tile that holds the initial (the tile is `position: relative; overflow: hidden`; nothing when the player has no picture). * - `playerName`: The player's name: a button in the players' panel (a left click runs the chat's primary action, a right click opens the menu), the plain name in the lobby. * - `clan`: The clan tag `[TAG]` (nothing without a clan). * - `friend`: The friend mark: a heart and its word, a second heart when mutual (nothing for the account itself or a player who is not a friend). * - `flag`: The flag of the player's country as a picture with its name (nothing without a country). * - `title`: The equipped title in the site's style (nothing without one). * - `rank`: The site's rank as a chip with its tooltip (nothing without a rank). * - `marks`: The lobby's pills: host, spectator, waiting for the next round, has or lacks the map, "you" (nothing in the players' panel). * - `status`: The players' panel's status: the mark and its words, with the full text as a tooltip (nothing in the lobby). * - `tiers`: The count of every tier of the judgement under a finished play's accuracy (the game's own widget; nothing when the counts do not name the tiers). */ slots: "avatar" | "playerName" | "clan" | "friend" | "flag" | "title" | "rank" | "marks" | "status" | "tiers"; contracts: ThemeContractName; } /** rate.control: Rate control. The playback rate of the selected chart: a typed value between − and +, a slider over a ruler, the quarter rates as marks a click asks for, and a reset to 1. */ interface ThemeTarget_rate_control { /** * The elements of the default renderer, which `part` marks: * - `heading` (heading): The title of the control. * - `value` (spinbutton): The field where a rate is typed; the arrows step it. * - `decrease` (button): One step down. * - `increase` (button): One step up. * - `slider` (slider): The rate on its range. * - `reset` (button): Back to 1. * - `mark` (button): A rate marked under the slider (its ends and every quarter between): a click asks for it. Out of the Tab order: the slider walks every rate (repeats). */ parts: "heading" | "value" | "decrease" | "increase" | "slider" | "reset" | "mark"; hostClasses: never; cssVars: never; outputs: { /** Asks for a rate. The action moves it into the range and onto the grid of the open tab. REQUIRED: a template of the contract must bind it to a control. */ "set": [value: number]; }; /** * Places the screen fills in this contract's template: * - `aside`: What sits beside the title (the Mods tab shows the chart's rating at this rate there). */ slots: "aside"; contracts: ThemeContractName; } /** selected.header: Selected map heading. Who and what is selected: the song and its difficulty, the rating on the chosen scale, and the duration, BPM, notes and holds (for a playlist: its length, maps count, peak rating and notes). With a map it also holds the line that says why the rate is unavailable. When nothing is selected it is the i... */ interface ThemeTarget_selected_header { /** * The elements of the default renderer, which `part` marks: * - `heading` (none): The plate that holds the title, the artist, the difficulty and the rating (a theme that draws its own heading folds it). * - `title` (heading): The song title, the playlist name or the invitation (level 1). * - `artist` (text): The artist (a filter on Ctrl+click). * - `difficulty` (text): The difficulty name, its key count and the mapper. * - `rating` (group): The rating on the chosen scale. * - `stats` (none): The duration, BPM, notes and holds plates, each with an icon before its label (not under Classic). * - `rateCopy` (button): Go to the base map of a rate copy. * - `rateStatus` (status): The line that says the rate cannot be used, or the one it falls back to. * - `addFolders` (button): Adds a songs folder (the empty library's invitation). */ parts: "heading" | "title" | "artist" | "difficulty" | "rating" | "stats" | "rateCopy" | "rateStatus" | "addFolders"; /** * Classes of the game's stylesheet this template may use (the others are the theme's own): * - `song-heading`: The identity plate: artist, title, difficulty and rating (a `header`). * - `pv-plate`: A plate of the design system. * - `pv-plate--lg`: The large plate (the heading). * - `pv-plate--sm`: The small plate (a stat). * - `pv-stat`: A label over a value. * - `artist`: The artist line (the accent label of the heading). * - `difficulty-name`: The difficulty line: badge, name, mapper. * - `name-filter`: An artist or mapper name that is a button (Ctrl/Cmd + click filters). * - `rate-copy`: The line of a rate copy with its go-to button. * - `main-rating`: The rating figure, the loudest number of the heading. * - `rating-value`: The rating's number (keeps room for five characters). * - `favourite-mark`: The small filled star after the title of a favourite. * - `map-metrics`: The row of four stat plates. * - `map-stat`: One stat plate. * - `rate-status`: The rate line (a fixed-height status). * - `no-selection`: The invitation block. */ hostClasses: "song-heading" | "pv-plate" | "pv-plate--lg" | "pv-plate--sm" | "pv-stat" | "artist" | "difficulty-name" | "name-filter" | "rate-copy" | "main-rating" | "rating-value" | "favourite-mark" | "map-metrics" | "map-stat" | "rate-status" | "no-selection"; cssVars: never; outputs: { /** Ctrl/Cmd + click on the artist or the mapper filters the list on that name. */ "name.filter": [key: "host/artist" | "host/creator", name: string]; /** Goes to the base map of a rate copy. */ "rateCopy.go": [index: number, title: string]; /** Adds a songs folder (the empty state's button; without it an empty library is a dead end). REQUIRED: a template of the contract must bind it to a control. */ "folders.add": []; }; slots: never; contracts: ThemeContractName; } /** selected.tabs: Selected map tabs. What the player can look at or set for the selected map, one tab at a time. The panel of each tab is placed by the screen (`controls` is the id of the panel a tab shows). */ interface ThemeTarget_selected_tabs { /** * The elements of the default renderer, which `part` marks: * - `tablist` (tablist): The row (or rail) of tabs. * - `tab` (tab): One tab (repeats). The tab shown carries `data-selected` (and `aria-selected="true"`): a theme's `theme.css` reaches it with `[data-part="tab"][data-selected]`. * - `actions` (none): The map's "…" actions after the tabs (a flex row holding the button and the goal pin; nothing for a playlist). * - `more` (button): The "…" button that opens the map's menu. * - `moreLabel` (none): The word of that button ("More"): hidden while the bar is narrow, so a theme that draws the button as a row of a rail shows it. */ parts: "tablist" | "tab" | "actions" | "more" | "moreLabel"; /** * Classes of the game's stylesheet this template may use (the others are the theme's own): * - `chart-bar`: The bar of tabs (and the actions at its end): the layouts place it by this class; it is the container the actions' labels fold by. */ hostClasses: "chart-bar"; cssVars: never; outputs: { /** Shows another tab of the map. REQUIRED: a template of the contract must bind it to a control. */ "select": [id: string]; /** Shows another tab of the playlist. */ "playlist.select": [id: string]; }; /** * Places the screen fills in this contract's template: * - `actions`: The "…" actions of the map at the end of the tabs (`MapActions`, not contracted yet and still bound to its stores; none for a playlist). */ slots: "actions"; contracts: ThemeContractName; } interface ThemeScope_screen_chat { paths: { "channels": ThemeStructure; "active": string; "gate": "ready" | "login" | "offline" | "server" | "unsupported"; "usersShown": boolean; "unread": number; }; lists: { "channels": ThemeScope_screen_chat_1; }; } interface ThemeScope_screen_chat_1 { paths: { "id": string; "label": string; "unread": number; "direct": boolean; "clan": boolean; "selected": boolean; }; lists: {}; } interface ThemeScope_screen_clan { paths: { "gate": "page" | "offline-note" | "login"; "mine": "loading" | "none" | "clan"; "side": "chat" | "ranking"; "failure": ThemeStructure; "failure.text": string; "clan": ThemeStructure; "clan.name": string; "clan.tag": string; "clan.rank": number; "clan.top": boolean; "clan.leader": boolean; "clan.members": number; "clan.memberLimit": number; "clan.online": number; "clan.totalPp": string; "clan.averagePp": string; "ranking": ThemeStructure; "ranking.sort": "total" | "average" | "members"; "ranking.loaded": boolean; "ranking.empty": boolean; "ranking.loading": boolean; "ranking.total": number; "ranking.entries": number; "ranking.page": number; "ranking.pages": number; "chat": ThemeStructure; "chat.available": boolean; }; lists: {}; } interface ThemeScope_screen_download { paths: { "tab": string; "mode": "results" | "prism" | "catalog"; "section": string; "previewing": boolean; "results": ThemeStructure; "results.count": number; "results.loading": boolean; "results.failed": boolean; "queue": ThemeStructure; "queue.total": number; "queue.active": number; "queue.finished": number; "folder": string; }; lists: {}; } interface ThemeScope_screen_help { paths: { "topics": ThemeStructure; "total": number; "search": ThemeStructure; "search.active": boolean; "search.query": string; "search.found": number; }; lists: { "topics": ThemeScope_screen_help_1; }; } interface ThemeScope_screen_help_1 { paths: { "id": string; "title": string; "current": boolean; }; lists: {}; } interface ThemeScope_screen_library { paths: { "selection": ThemeStructure; "selection.state": "map" | "playlist" | "pick" | "empty"; "selection.shown": boolean; "selection.color": string; "selection.busy": boolean; "selection.entering": boolean; "selection.changed": boolean; "selection.tab": string; "browser": ThemeStructure; "browser.view": "maps" | "playlists" | "mapsToPlay"; "browser.covered": boolean; "browser.visualizer": boolean; "browser.color": string; "map": ThemeStructure; "map.artist": string; "map.title": string; "map.difficulty": string; "map.keysText": string; "map.keys": number; "map.creator": string; "map.background": string; "map.rating": ThemeStructure; "map.rating.value": number; "map.rating.text": string; "map.rating.unit": string; "map.rating.label": string; "map.rate": number; "map.duration": ThemeStructure; "map.duration.text": string; "map.duration.seconds": number; "map.bpm": string; "map.bpmValue": number; "map.notes": string; "map.holds": string; "map.holdShare": number; "map.nps": ThemeStructure; "map.nps.average": string; "map.nps.peak": string; "map.nps.averageValue": number; "map.nps.peakValue": number; "map.skillsets": ThemeStructure; "map.patterns": ThemeStructure; "map.equalizer": ThemeStructure; "map.listening": boolean; "map.fresh": boolean; "map.difficultyCount": number; "map.record": ThemeStructure; "map.record.plays": number; "map.record.bestAccuracy": number; "map.record.bestPerformance": string; "map.record.lastPlayed": string; "map.record.top": ThemeStructure; "map.record.top.accuracy": number; "map.record.top.performance": string; "map.record.top.combo": number; "map.record.top.misses": number; "map.record.top.rate": number; "map.record.top.rateText": string; "map.record.top.date": string; "mods": ThemeStructure; "modsOn": number; "preview": ThemeStructure; "preview.shown": boolean; "preview.playing": boolean; "preview.position": number; "preview.duration": number; "preview.progress": number; "preview.positionText": string; "preview.durationText": string; "preview.steps": ThemeStructure; "online": ThemeStructure; "online.state": "offline" | "signedOut" | "connecting" | "online"; "online.name": string; "online.avatar": string; "online.players": number; "online.friendsOnline": number; "online.friends": ThemeStructure; "online.unread": number; "rateControl": ThemeStructure; "rateControl.state": "ready" | "atDefault" | "atMin" | "atMax"; "rateControl.value": number; "rateControl.text": string; "rateControl.min": number; "rateControl.max": number; "rateControl.minText": string; "rateControl.maxText": string; "rateControl.step": number; "rateControl.typed": number; "rateControl.steps": ThemeStructure; "rateControl.steps.down": number; "rateControl.steps.up": number; "keys": ThemeStructure; "keys.play": string; "keys.menu": string; "keys.up": string; "keys.down": string; "keys.previousSet": string; "keys.nextSet": string; "keys.random": string; "keys.palette": string; "keys.visualize": string; "keys.chat": string; }; lists: { "map.skillsets": ThemeScope_screen_library_1; "map.patterns": ThemeScope_screen_library_2; "map.equalizer": ThemeScope_screen_library_3; "mods": ThemeScope_screen_library_4; "preview.steps": ThemeScope_screen_library_5; "online.friends": ThemeScope_screen_library_6; }; } interface ThemeScope_screen_library_1 { paths: { "label": string; "short": string; "display": string; "hue": string; "level": number; }; lists: {}; } interface ThemeScope_screen_library_2 { paths: { "label": string; "short": string; "display": string; "hue": string; "level": number; "rank": number; "position": number; }; lists: {}; } interface ThemeScope_screen_library_3 { paths: { "i": number; "level": number; "live": number; }; lists: {}; } interface ThemeScope_screen_library_4 { paths: { "key": string; "id": string; "name": string; "short": string; "description": string; "group": string; "groupLabel": string; "icon": string; "enabled": boolean; "conflicts": ThemeStructure; }; lists: { "conflicts": ThemeScope_screen_library_4_7; }; } interface ThemeScope_screen_library_4_7 { paths: { "": string; }; lists: {}; } interface ThemeScope_screen_library_5 { paths: { "i": number; "at": number; "level": number; "passed": boolean; }; lists: {}; } interface ThemeScope_screen_library_6 { paths: { "name": string; "avatar": string; "status": "online" | "inLobby" | "playing"; }; lists: {}; } interface ThemeScope_screen_lobby { paths: { "lobby": ThemeStructure; "lobby.name": string; "lobby.code": string; "lobby.codeHidden": boolean; "lobby.open": boolean; "lobby.hostRotation": boolean; "lobby.started": boolean; "self": ThemeStructure; "self.host": boolean; "self.ready": boolean; "self.spectating": boolean; "self.waiting": boolean; "players": ThemeStructure; "players.count": number; "players.rivals": number; "players.results": number; "map": ThemeStructure; "map.chosen": boolean; "map.title": string; "map.artist": string; "map.rate": number; "map.shared": boolean; "files": ThemeStructure; "files.count": number; "files.replays": number; "draft": ThemeStructure; "draft.active": boolean; }; lists: {}; } interface ThemeScope_screen_mods { paths: { "mods": ThemeStructure; "mods.count": number; "mods.active": number; "mods.disabled": number; "mods.failed": number; "folder": string; "interfaces": number; "messages": number; }; lists: {}; } interface ThemeScope_screen_profile { paths: { "state": "pending" | "unavailable" | "empty" | "ready"; "sessionOpen": boolean; "tab": string; "tabs": ThemeStructure; "view": "best" | "recent" | "pinned" | "left"; "player": ThemeStructure; "player.name": string; "player.initial": string; "player.charts": number; "player.plays": number; "player.playTime": string; "account": ThemeStructure; "account.name": string; "account.offline": boolean; "rating": ThemeStructure; "rating.value": number; "rating.unit": string; "rating.digits": number; "rating.performance": boolean; "accuracy": number; "skillsets": ThemeStructure; "crowded": boolean; "loading": ThemeStructure; "loading.active": boolean; "loading.done": number; "loading.total": number; "loading.progress": number; }; lists: { "tabs": ThemeScope_screen_profile_1; "skillsets": ThemeScope_screen_profile_2; }; } interface ThemeScope_screen_profile_1 { paths: { "id": string; "label": string; "count": number; "selected": boolean; }; lists: {}; } interface ThemeScope_screen_profile_2 { paths: { "name": string; "value": number; "text": string; "color": string; "share": number; "main": boolean; }; lists: {}; } interface ThemeScope_screen_replay { paths: { "status": "loading" | "ready" | "error" | "unavailable"; "loading": boolean; "mock": boolean; "lobby": boolean; "playback": "stopped" | "loading" | "playing"; "map": ThemeStructure; "map.title": string; "map.artist": string; "map.difficulty": string; "map.keys": string; "map.creator": string; "map.picture": string; "map.color": string; "map.rate": string; "map.mods": string; "score": ThemeStructure; "score.replayId": string; "score.player": string; "score.received": boolean; "score.playedAt": string; "score.accuracy": number; "score.maxCombo": number; "score.misses": number; "score.ranked": boolean; "score.pauses": number; "score.performance": number; "score.performanceUnit": string; "score.rating": number; "score.ratingUnit": string; "score.ratingName": string; "score.meanOffsetMs": number; "judgement": string; "tiers": ThemeStructure; "comparison": ThemeStructure; "comparison.shown": boolean; "comparison.chosen": boolean; "comparison.player": string; "comparison.rate": string; "comparison.newRecord": boolean; "comparison.firstPlay": boolean; "comparison.failed": boolean; "comparison.references": ThemeStructure; }; lists: { "tiers": ThemeScope_screen_replay_1; "comparison.references": ThemeScope_screen_replay_2; }; } interface ThemeScope_screen_replay_1 { paths: { "id": string; "name": string; "color": string; "count": number; "share": number; }; lists: {}; } interface ThemeScope_screen_replay_2 { paths: { "replayId": string; "player": string; "rate": string; "mods": string; "accuracy": number; "maxCombo": number; "picked": boolean; }; lists: {}; } interface ThemeScope_screen_result { paths: { "aborted": boolean; "auto": boolean; "ranked": boolean; "judgement": string; "accuracy": number; "maxCombo": number; "clear": "aborted" | "perfect" | "fullCombo" | "clear"; "newBest": boolean; "hits": number; "misses": number; "tiers": ThemeStructure; }; lists: { "tiers": ThemeScope_screen_result_1; }; } interface ThemeScope_screen_result_1 { paths: { "id": string; "name": string; "color": string; "count": number; }; lists: {}; } interface ThemeScope_screen_settings { paths: { "category": ThemeStructure; "category.id": "gameplay" | "controls" | "audio" | "display" | "library" | "online" | "system"; "category.label": string; "category.blurb": string; "category.changed": number; "category.index": number; "category.hasSummary": boolean; "categories": ThemeStructure; "search": ThemeStructure; "search.active": boolean; "search.query": string; "search.found": number; "changed": number; }; lists: { "categories": ThemeScope_screen_settings_1; }; } interface ThemeScope_screen_settings_1 { paths: { "id": "gameplay" | "controls" | "audio" | "display" | "library" | "online" | "system"; "label": string; "blurb": string; "changed": number; "selected": boolean; }; lists: {}; } interface ThemeScope_screen_skins { paths: { "interfaces": ThemeStructure; "interfaces.count": number; "interfaces.current": string; "interfaces.currentName": string; "skins": ThemeStructure; "skins.count": number; "skins.shown": number; "skins.selected": string; "skins.searching": boolean; "skins.importers": number; "problems": number; }; lists: {}; } interface ThemeScope_screen_title { paths: { "version": string; "leaving": boolean; "nowPlaying": ThemeStructure; "nowPlaying.known": boolean; "nowPlaying.title": string; "nowPlaying.artist": string; }; lists: {}; } interface ThemeScope_screen_tournaments { paths: { "gate": "page" | "offline-note" | "login"; "view": "list" | "detail" | "match" | "mine"; "filter": "all" | "registration" | "running" | "finished"; "loading": boolean; "failure": ThemeStructure; "failure.text": string; "notice": ThemeStructure; "notice.text": string; "list": ThemeStructure; "list.total": number; "list.page": number; "list.pages": number; "list.empty": boolean; "list.items": ThemeStructure; "tournament": ThemeStructure; "tournament.slug": string; "tournament.name": string; "tournament.description": string; "tournament.format": string; "tournament.status": "draft" | "registration" | "seeding" | "running" | "finished" | "cancelled"; "tournament.statusText": string; "tournament.mode": string; "tournament.metric": string; "tournament.bestOf": number; "tournament.entries": number; "tournament.maxEntries": number; "tournament.registration": string; "tournament.starts": string; "tournament.entered": boolean; "tournament.canRegister": boolean; "tournament.canWithdraw": boolean; "tournament.entriesList": ThemeStructure; "tournament.bracket": ThemeStructure; "tournament.standings": ThemeStructure; "tournament.forfeitAfterMin": number; "tournament.pool": ThemeStructure; "tournament.qualifier": ThemeStructure; "tournament.qualifier.rules": string; "tournament.qualifier.phaseText": string; "tournament.qualifier.attempts": string; "tournament.qualifier.sessions": ThemeStructure; "game": ThemeStructure; "game.id": string; "game.round": string; "game.bestOf": number; "game.sides": ThemeStructure; "game.games": ThemeStructure; "mine": ThemeStructure; }; lists: { "list.items": ThemeScope_screen_tournaments_1; "tournament.entriesList": ThemeScope_screen_tournaments_2; "tournament.bracket": ThemeScope_screen_tournaments_3; "tournament.standings": ThemeScope_screen_tournaments_4; "tournament.pool": ThemeScope_screen_tournaments_5; "tournament.qualifier.sessions": ThemeScope_screen_tournaments_6; "game.sides": ThemeScope_screen_tournaments_7; "game.games": ThemeScope_screen_tournaments_8; "mine": ThemeScope_screen_tournaments_9; }; } interface ThemeScope_screen_tournaments_1 { paths: { "slug": string; "name": string; "format": string; "status": "draft" | "registration" | "seeding" | "running" | "finished" | "cancelled"; "statusText": string; "mode": string; "entries": number; "maxEntries": number; "when": string; "winner": string; }; lists: {}; } interface ThemeScope_screen_tournaments_2 { paths: { "id": string; "seed": string; "name": string; "status": string; "members": ThemeStructure; }; lists: { "members": ThemeScope_screen_tournaments_2_10; }; } interface ThemeScope_screen_tournaments_2_10 { paths: { "userId": string; "username": string; "captain": boolean; "self": boolean; }; lists: {}; } interface ThemeScope_screen_tournaments_3 { paths: { "bracket": "winners" | "losers" | "grand_final"; "name": string; "matches": ThemeStructure; }; lists: { "matches": ThemeScope_screen_tournaments_3_11; }; } interface ThemeScope_screen_tournaments_3_11 { paths: { "id": string; "round": string; "state": "pending" | "ready" | "running" | "done" | "void"; "bestOf": number; "sides": ThemeStructure; "when": string; "referee": string; "forfeit": string; }; lists: { "sides": ThemeScope_screen_tournaments_3_11_12; }; } interface ThemeScope_screen_tournaments_3_11_12 { paths: { "name": string; "score": string; "winner": boolean; "seed": string; }; lists: {}; } interface ThemeScope_screen_tournaments_4 { paths: { "rank": number; "name": string; "points": string; "maps": ThemeStructure; "tiebreaks": ThemeStructure; }; lists: { "maps": ThemeScope_screen_tournaments_4_13; "tiebreaks": ThemeScope_screen_tournaments_4_14; }; } interface ThemeScope_screen_tournaments_4_13 { paths: { "slot": string; "value": string; }; lists: {}; } interface ThemeScope_screen_tournaments_4_14 { paths: { "label": string; "value": string; }; lists: {}; } interface ThemeScope_screen_tournaments_5 { paths: { "slot": string; "tag": string; "tiebreaker": boolean; "playbackRate": string; "map": string; }; lists: {}; } interface ThemeScope_screen_tournaments_6 { paths: { "id": string; "n": number; "when": string; "countdown": string; "seats": string; "state": "scheduled" | "frozen" | "open" | "running" | "closed" | "cancelled"; "stateText": string; "seat": ThemeStructure; "seat.state": "subscribed" | "played" | "no_show" | "withdrawn"; "seat.text": string; "canTake": boolean; "canLeave": boolean; "playable": boolean; "joinable": boolean; }; lists: {}; } interface ThemeScope_screen_tournaments_7 { paths: { "name": string; "score": string; "winner": boolean; "seed": string; }; lists: {}; } interface ThemeScope_screen_tournaments_8 { paths: { "number": number; "map": string; "playbackRate": string; "pickedBy": string; "winner": number; "scores": ThemeStructure; }; lists: { "scores": ThemeScope_screen_tournaments_8_15; }; } interface ThemeScope_screen_tournaments_8_15 { paths: { "side": number; "value": string; }; lists: {}; } interface ThemeScope_screen_tournaments_9 { paths: { "slug": string; "name": string; "status": string; "entryStatus": "registered" | "incomplete" | "disqualified" | "withdrawn"; "entryText": string; "nextMatch": ThemeStructure; "nextMatch.id": string; "nextMatch.opponent": string; "nextMatch.when": string; "nextMatch.countdown": string; "joinCode": string; "qualifier": ThemeStructure; "qualifier.attempts": string; "qualifier.next": ThemeStructure; "qualifier.next.session": string; "qualifier.next.when": string; "qualifier.next.countdown": string; "qualifier.next.playable": boolean; "qualifier.next.joinable": boolean; }; lists: {}; } interface ThemeScope_catalog_card { paths: { "state": "available" | "update" | "installed" | "downloading" | "installing"; "kind": "skin" | "mod" | "playlist"; "id": string; "name": string; "versionText": string; "byText": string; "size": string; "hash": string; "description": string; "tags": ThemeStructure; "cover": string; "shots": ThemeStructure; "permissions": ThemeStructure; "badge": string; "from": string; "disabled": boolean; "percent": number; }; lists: { "tags": ThemeScope_catalog_card_1; "shots": ThemeScope_catalog_card_2; "permissions": ThemeScope_catalog_card_3; }; } interface ThemeScope_catalog_card_1 { paths: { "": string; }; lists: {}; } interface ThemeScope_catalog_card_2 { paths: { "url": string; "alt": string; }; lists: {}; } interface ThemeScope_catalog_card_3 { paths: { "": string; }; lists: {}; } interface ThemeScope_download_card { paths: { "state": "idle" | "locked" | "unavailable" | "queued" | "active" | "failed" | "installed"; "shape": "set" | "pack"; "kind": "osu" | "quaver" | "etterna" | "mod"; "id": number; "title": string; "edge": string; "set": ThemeStructure; "set.artist": string; "set.creator": string; "set.creatorText": string; "set.cover": string; "set.badges": ThemeStructure; "set.keySummary": string; "set.difficulties": ThemeStructure; "set.more": number; "set.bpm": string; "set.plays": string; "set.longNotes": string; "set.extra": ThemeStructure; "set.extra.tags": ThemeStructure; "set.extra.size": string; "set.extra.details": ThemeStructure; "pack": ThemeStructure; "pack.cover": string; "pack.nsfw": boolean; "pack.songs": string; "pack.size": string; "pack.plays": string; "pack.tags": string; "pack.skills": ThemeStructure; "pack.open": boolean; "progress": number; "reason": ThemeStructure; "reason.text": string; "reason.detail": string; "reason.message": string; "startDisabled": boolean; "actions": ThemeStructure; "previewable": boolean; "redownload": boolean; "lock": "quaver" | "mod"; "phase": "downloading" | "extracting"; "percent": number; "jobId": number; }; lists: { "set.badges": ThemeScope_download_card_1; "set.difficulties": ThemeScope_download_card_2; "set.extra.tags": ThemeScope_download_card_3; "set.extra.details": ThemeScope_download_card_4; "pack.skills": ThemeScope_download_card_5; "actions": ThemeScope_download_card_6; }; } interface ThemeScope_download_card_1 { paths: { "": string; }; lists: {}; } interface ThemeScope_download_card_2 { paths: { "keysText": string; "keys": number; "rating": string; "color": string; "title": string; "skills": ThemeStructure; }; lists: { "skills": ThemeScope_download_card_2_7; }; } interface ThemeScope_download_card_2_7 { paths: { "badge": string; "color": string; }; lists: {}; } interface ThemeScope_download_card_3 { paths: { "": string; }; lists: {}; } interface ThemeScope_download_card_4 { paths: { "label": string; "value": string; }; lists: {}; } interface ThemeScope_download_card_5 { paths: { "key": string; "label": string; "value": string; "color": string; "main": boolean; }; lists: {}; } interface ThemeScope_download_card_6 { paths: { "id": string; "label": string; }; lists: {}; } interface ThemeScope_leaderboard_card { paths: { "state": "local" | "localGhost" | "online" | "onlineGhost" | "onlineLoading" | "onlineFailed" | "onlineStatic" | "own"; "rank": number; "podium": "gold" | "silver" | "bronze"; "player": ThemeStructure; "player.name": string; "player.label": string; "badges": ThemeStructure; "badges.received": boolean; "badges.mirror": boolean; "badges.osuImport": boolean; "badges.unranked": boolean; "rate": ThemeStructure; "rate.value": number; "rate.text": string; "mods": string; "pauses": unknown; "combo": number; "misses": number; "tiers": ThemeStructure; "accuracy": ThemeStructure; "accuracy.value": number; "accuracy.text": string; "performance": ThemeStructure; "performance.text": string; "performance.unavailable": boolean; "nonstandard": boolean; "date": ThemeStructure; "date.ms": number; "date.iso": string; "date.text": string; "report": ThemeStructure; "report.scoreId": number; "report.player": string; "report.label": string; "replayId": string | number; "ghost": ThemeStructure; "ghost.id": string; "ghost.chosen": boolean; "ghost.disabled": boolean; "ghost.title": string; "watchLabel": string; }; lists: { "tiers": ThemeScope_leaderboard_card_1; }; } interface ThemeScope_leaderboard_card_1 { paths: { "name": string; "color": string; "gradient": ThemeStructure; "symbol": unknown; "count": number; }; lists: { "gradient": ThemeScope_leaderboard_card_1_2; }; } interface ThemeScope_leaderboard_card_1_2 { paths: { "": string; }; lists: {}; } interface ThemeScope_library_chartRow { paths: { "state": "normal" | "selected" | "playlist"; "position": number; "difficulty": number; "path": string; "variant": number; "selected": boolean; "themed": boolean; "name": string; "keysText": string; "color": string; "missing": "audio" | "background" | "both"; "noAudio": boolean; "noted": boolean; "goal": "open" | "reached"; "rate": ThemeStructure; "rate.text": string; "rate.title": string; "similar": ThemeStructure; "similar.text": string; "similar.title": string; "rateOf": ThemeStructure; "rateOf.label": string; "rateOf.help": string; "pattern": ThemeStructure; "pattern.short": string; "pattern.color": string; "pattern.names": string; "rating": string; "ratingUnit": string; "stars": ThemeStructure; "plays": ThemeStructure; "plays.text": string; "plays.title": string; }; lists: { "stars": ThemeScope_library_chartRow_1; }; } interface ThemeScope_library_chartRow_1 { paths: { "lit": boolean; }; lists: {}; } interface ThemeScope_library_footer { paths: { "state": "mapReady" | "mapBlocked" | "mapRefused" | "mapNoPlay" | "playlistReady" | "playlistBlocked"; "rating": ThemeStructure; "rating.value": string; "rating.options": ThemeStructure; "judgement": ThemeStructure; "judgement.value": string; "judgement.label": string; "judgement.ariaLabel": string; "judgement.options": ThemeStructure; "refusal": string; "play": ThemeStructure; "play.label": string; "play.intent": "play" | "train" | "pick-lobby-map"; "unrankedSlot": boolean; "unranked": boolean; "reason": ThemeStructure; "reason.kind": "lobby" | "loading" | "section" | "staircase" | "busy" | "empty" | "running"; "reason.text": string; "playlistId": number; }; lists: { "rating.options": ThemeScope_library_footer_1; "judgement.options": ThemeScope_library_footer_2; }; } interface ThemeScope_library_footer_1 { paths: { "value": string; "label": string; "group": string; "detail": string; }; lists: {}; } interface ThemeScope_library_footer_2 { paths: { "value": string; "label": string; "group": string; "detail": string; }; lists: {}; } interface ThemeScope_library_search { paths: { "state": "ready" | "filtered" | "blocked" | "invalid"; "mode": "maps" | "playlists"; "query": string; "sort": ThemeStructure; "sort.value": string; "sort.label": string; "sort.options": ThemeStructure; "sort.descending": boolean; "sort.active": boolean; "sort.caption": string; "sort.directionLabel": string; "group": ThemeStructure; "group.value": string; "group.label": string; "group.options": ThemeStructure; "group.grouped": boolean; "group.allFolded": boolean; "group.canFoldAll": boolean; "group.caption": string; "filters": ThemeStructure; "fieldKeys": ThemeStructure; "history": ThemeStructure; "history.enabled": boolean; "history.entries": ThemeStructure; "reviewing": boolean; "syntax": ThemeStructure; "syntax.pending": string; "syntax.unrecognised": string; "status": string; "error": string; }; lists: { "sort.options": ThemeScope_library_search_1; "group.options": ThemeScope_library_search_2; "filters": ThemeScope_library_search_3; "fieldKeys": ThemeScope_library_search_4; "history.entries": ThemeScope_library_search_5; }; } interface ThemeScope_library_search_1 { paths: { "value": string; "label": string; "group": string; }; lists: {}; } interface ThemeScope_library_search_2 { paths: { "value": string; "label": string; "group": string; }; lists: {}; } interface ThemeScope_library_search_3 { paths: { "key": string; "label": string; "value": string; "tip": string; "removeLabel": string; "unavailable": boolean; }; lists: {}; } interface ThemeScope_library_search_4 { paths: { "": string; }; lists: {}; } interface ThemeScope_library_search_5 { paths: { "id": string; "query": string; "label": string; "pinned": boolean; }; lists: {}; } interface ThemeScope_library_setCard { paths: { "state": "collapsed" | "selected" | "expanded" | "playlist" | "loading"; "position": number; "id": string; "selected": boolean; "expanded": boolean; "themed": boolean; "title": string; "artist": string; "creator": ThemeStructure; "creator.name": string; "creator.text": string; "color": string; "thumbnail": string; "mosaic": ThemeStructure; "similar": ThemeStructure; "similar.text": string; "similar.title": string; "newText": string; "countText": string; "missing": "audio" | "background" | "both"; "noted": boolean; "plays": ThemeStructure; "plays.text": string; "plays.title": string; "keysText": string; "goal": "open" | "reached"; "advice": ThemeStructure; "advice.kind": "comfort" | "push" | "stretch"; "advice.text": string; "rating": ThemeStructure; "rating.text": string; "rating.range": string; "rating.unit": string; "strip": ThemeStructure; "strip.tier": "dot" | "rating" | "full" | "pattern"; "strip.chipWidth": number; "strip.gap": number; "strip.maxWidth": number; "strip.minWidth": number; "strip.chips": ThemeStructure; "strip.more": ThemeStructure; "strip.more.count": number; "strip.more.label": string; "playlistId": number; }; lists: { "mosaic": ThemeScope_library_setCard_1; "strip.chips": ThemeScope_library_setCard_2; }; } interface ThemeScope_library_setCard_1 { paths: { "": string; }; lists: {}; } interface ThemeScope_library_setCard_2 { paths: { "key": number; "color": string; "keysText": string; "short": string; "pattern": ThemeStructure; "pattern.short": string; "pattern.color": string; }; lists: {}; } interface ThemeScope_library_toolbar { paths: { "state": "maps" | "mapsBusy" | "mapsEmpty" | "playlists" | "mapsToPlay"; "views": ThemeStructure; "visualizer": ThemeStructure; "visualizer.open": boolean; "visualizer.available": boolean; "visualizer.label": string; "visualizer.iconOnly": boolean; "menu": ThemeStructure; "menuOpen": boolean; "locked": boolean; }; lists: { "views": ThemeScope_library_toolbar_1; "menu": ThemeScope_library_toolbar_2; }; } interface ThemeScope_library_toolbar_1 { paths: { "value": "maps" | "playlists" | "mapsToPlay"; "label": string; "count": number; "countText": string; "exact": string; "disabled": boolean; }; lists: {}; } interface ThemeScope_library_toolbar_2 { paths: { "id": string; "label": string; "unavailable": string; }; lists: {}; } interface ThemeScope_lobby_draft { paths: { "state": "setup" | "banning" | "picking" | "playing" | "finished"; "host": boolean; "denial": "not_in_lobby" | "not_host" | "not_captain" | "not_your_turn" | "wrong_phase" | "bad_config" | "bad_sides" | "unknown_map" | "map_taken" | "map_reserved" | "not_members" | "started" | "draft_active" | "no_draft" | "feature_unavailable" | "unknown"; "poolLimit": number; "pool": ThemeStructure; "candidate": ThemeStructure; "candidate.title": string; "candidate.artist": string; "candidate.rateText": string; "candidate.inPool": boolean; "sides": ThemeStructure; "sides.a": ThemeStructure; "sides.b": ThemeStructure; "series": ThemeStructure; "series.bestOf": number; "series.a": number; "series.b": number; "sides.a.captain": string; "sides.a.members": ThemeStructure; "sides.a.mine": boolean; "sides.b.captain": string; "sides.b.members": ThemeStructure; "sides.b.mine": boolean; "bansPerSide": number; "pickRule": "alternate" | "loser_picks" | "unknown"; "maps": ThemeStructure; "turn": ThemeStructure; "turn.side": "a" | "b"; "turn.kind": "ban" | "pick"; "turn.mine": boolean; "turn.secondsLeft": number; "game": ThemeStructure; "game.number": number; "game.slot": string; "game.title": string; "winner": "a" | "b"; "reason": "won" | "forfeit" | "aborted" | "unknown"; }; lists: { "pool": ThemeScope_lobby_draft_1; "sides.a": ThemeScope_lobby_draft_2; "sides.b": ThemeScope_lobby_draft_3; "sides.a.members": ThemeScope_lobby_draft_4; "sides.b.members": ThemeScope_lobby_draft_5; "maps": ThemeScope_lobby_draft_6; }; } interface ThemeScope_lobby_draft_1 { paths: { "slot": string; "title": string; "artist": string; "art": string; "difficulty": string; "rateText": string; "noteHash": string; "playbackRate": number; "judgement": string; }; lists: {}; } interface ThemeScope_lobby_draft_2 { paths: { "": string; }; lists: {}; } interface ThemeScope_lobby_draft_3 { paths: { "": string; }; lists: {}; } interface ThemeScope_lobby_draft_4 { paths: { "": string; }; lists: {}; } interface ThemeScope_lobby_draft_5 { paths: { "": string; }; lists: {}; } interface ThemeScope_lobby_draft_6 { paths: { "slot": string; "title": string; "artist": string; "art": string; "difficulty": string; "rateText": string; "status": "open" | "banned" | "picked" | "played"; "by": "a" | "b"; "winner": "a" | "b"; "game": number; "auto": boolean; "current": boolean; "tiebreaker": boolean; }; lists: {}; } interface ThemeScope_maps_toPlay { paths: { "state": "loading" | "ready" | "notEnough" | "noLevel" | "empty" | "unavailable" | "retry"; "keys": number; "keyOptions": ThemeStructure; "pattern": string; "patterns": ThemeStructure; "ratingName": string; "entries": ThemeStructure; "have": number; "need": number; "reason": "judgement" | "noRating" | "busy" | "failed"; }; lists: { "keyOptions": ThemeScope_maps_toPlay_1; "patterns": ThemeScope_maps_toPlay_2; "entries": ThemeScope_maps_toPlay_3; }; } interface ThemeScope_maps_toPlay_1 { paths: { "value": number; "label": string; "active": boolean; }; lists: {}; } interface ThemeScope_maps_toPlay_2 { paths: { "id": string; "label": string; "color": string; "plays": number; "levelText": string; "listed": boolean; "active": boolean; }; lists: {}; } interface ThemeScope_maps_toPlay_3 { paths: { "id": string; "index": number; "title": string; "artist": string; "difficulty": string; "keys": number; "pattern": string; "patternColor": string; "kind": "comfort" | "push" | "stretch"; "rate": number; "rateText": string; "ratingText": string; "ratingAtRateText": string; "expectedText": string; "bandText": string; "current": boolean; }; lists: {}; } interface ThemeScope_player_card { paths: { "state": "lobby" | "round" | "user"; "userId": string; "name": string; "initial": string; "channel": string; "self": boolean; "index": number; "tone": number; "place": number; "picture": boolean; "host": boolean; "spectator": boolean; "waiting": boolean; "hasMap": boolean; "rank": ThemeStructure; "rank.value": number; "rank.text": string; "rank.top": boolean; "rank.label": string; "rank.tip": string; "country": string; "title": ThemeStructure; "title.name": string; "title.style": string; "title.colour": string; "clan": ThemeStructure; "clan.tag": string; "clan.name": string; "friend": ThemeStructure; "friend.mutual": boolean; "watchable": boolean; "side": "a" | "b"; "strip": boolean; "ready": boolean; "last": ThemeStructure; "last.accuracy": string; "last.detail": string; "last.tiers": ThemeStructure; "standing": ThemeStructure; "standing.kind": "result" | "live"; "standing.figures": ThemeStructure; "standing.figures.accuracy": string; "standing.figures.detail": string; "standing.figures.tiers": ThemeStructure; "note": "noScore" | "waiting" | "spectating" | "none"; "status": "online" | "inLobby" | "playing"; "statusText": string; }; lists: { "last.tiers": ThemeScope_player_card_1; "standing.figures.tiers": ThemeScope_player_card_2; }; } interface ThemeScope_player_card_1 { paths: { "name": string; "color": string; "gradient": ThemeStructure; "symbol": unknown; "count": number; }; lists: { "gradient": ThemeScope_player_card_1_3; }; } interface ThemeScope_player_card_1_3 { paths: { "": string; }; lists: {}; } interface ThemeScope_player_card_2 { paths: { "name": string; "color": string; "gradient": ThemeStructure; "symbol": unknown; "count": number; }; lists: { "gradient": ThemeScope_player_card_2_4; }; } interface ThemeScope_player_card_2_4 { paths: { "": string; }; lists: {}; } interface ThemeScope_rate_control { paths: { "state": "ready" | "atDefault" | "atMin" | "atMax"; "value": number; "text": string; "min": number; "max": number; "minText": string; "maxText": string; "step": number; "typed": number; "steps": ThemeStructure; "steps.down": number; "steps.up": number; }; lists: {}; } interface ThemeScope_selected_header { paths: { "state": "map" | "rateCopy" | "playlist" | "pick" | "empty" | "emptyBusy"; "color": string; "artist": string; "title": string; "difficulty": string; "keysText": string; "creator": string; "favourite": boolean; "missing": ThemeStructure; "missing.kind": "audio" | "background" | "both"; "missing.chart": string; "rating": ThemeStructure; "rating.value": number; "rating.unit": string; "rating.label": string; "rating.title": string; "stats": ThemeStructure; "rateStatus": ThemeStructure; "rateStatus.error": string; "rateStatus.unavailable": string; "rateStatus.previous": string; "rateCopy": ThemeStructure; "rateCopy.label": string; "rateCopy.help": string; "rateCopy.baseIndex": number; "rateCopy.baseTitle": string; "name": string; "countText": string; "missingText": string; }; lists: { "stats": ThemeScope_selected_header_1; }; } interface ThemeScope_selected_header_1 { paths: { "label": string; "text": string; "numbers": ThemeStructure; "clock": boolean; "icon": "clock" | "activity" | "music" | "rectangle-vertical" | "library" | "zap"; }; lists: { "numbers": ThemeScope_selected_header_1_2; }; } interface ThemeScope_selected_header_1_2 { paths: { "": number; }; lists: {}; } interface ThemeScope_selected_tabs { paths: { "state": "chart" | "playlist"; "active": string; "vertical": boolean; "tabs": ThemeStructure; }; lists: { "tabs": ThemeScope_selected_tabs_1; }; } interface ThemeScope_selected_tabs_1 { paths: { "id": string; "label": string; "icon": string; "dirty": boolean; "controls": string; }; lists: {}; } /** The screens and contracts of the table with the target and scope of their context. */ interface ThemeTargets { "screen.chat": { target: ThemeTarget_screen_chat; scope: ThemeScope_screen_chat }; "screen.clan": { target: ThemeTarget_screen_clan; scope: ThemeScope_screen_clan }; "screen.download": { target: ThemeTarget_screen_download; scope: ThemeScope_screen_download }; "screen.help": { target: ThemeTarget_screen_help; scope: ThemeScope_screen_help }; "screen.library": { target: ThemeTarget_screen_library; scope: ThemeScope_screen_library }; "screen.lobby": { target: ThemeTarget_screen_lobby; scope: ThemeScope_screen_lobby }; "screen.mods": { target: ThemeTarget_screen_mods; scope: ThemeScope_screen_mods }; "screen.profile": { target: ThemeTarget_screen_profile; scope: ThemeScope_screen_profile }; "screen.replay": { target: ThemeTarget_screen_replay; scope: ThemeScope_screen_replay }; "screen.result": { target: ThemeTarget_screen_result; scope: ThemeScope_screen_result }; "screen.settings": { target: ThemeTarget_screen_settings; scope: ThemeScope_screen_settings }; "screen.skins": { target: ThemeTarget_screen_skins; scope: ThemeScope_screen_skins }; "screen.title": { target: ThemeTarget_screen_title; scope: ThemeScope_screen_title }; "screen.tournaments": { target: ThemeTarget_screen_tournaments; scope: ThemeScope_screen_tournaments }; "catalog.card": { target: ThemeTarget_catalog_card; scope: ThemeScope_catalog_card }; "download.card": { target: ThemeTarget_download_card; scope: ThemeScope_download_card }; "leaderboard.card": { target: ThemeTarget_leaderboard_card; scope: ThemeScope_leaderboard_card }; "library.chartRow": { target: ThemeTarget_library_chartRow; scope: ThemeScope_library_chartRow }; "library.footer": { target: ThemeTarget_library_footer; scope: ThemeScope_library_footer }; "library.search": { target: ThemeTarget_library_search; scope: ThemeScope_library_search }; "library.setCard": { target: ThemeTarget_library_setCard; scope: ThemeScope_library_setCard }; "library.toolbar": { target: ThemeTarget_library_toolbar; scope: ThemeScope_library_toolbar }; "lobby.draft": { target: ThemeTarget_lobby_draft; scope: ThemeScope_lobby_draft }; "maps.toPlay": { target: ThemeTarget_maps_toPlay; scope: ThemeScope_maps_toPlay }; "player.card": { target: ThemeTarget_player_card; scope: ThemeScope_player_card }; "rate.control": { target: ThemeTarget_rate_control; scope: ThemeScope_rate_control }; "selected.header": { target: ThemeTarget_selected_header; scope: ThemeScope_selected_header }; "selected.tabs": { target: ThemeTarget_selected_tabs; scope: ThemeScope_selected_tabs }; } /** The typed builders of one screen or contract: `c` of a template, `item` of an `each`. */ type ThemeContext = ThemeBuilders; /** What `theme.ts` declares: the templates of the screens and of the contracts, each built once from its typed context. */ interface ThemeDefinition { /** Screen templates, by screen name without `screen.` (`library`). */ screens?: { /** Chat sheet */ "chat"?: (c: ThemeContext<"screen.chat">) => ThemeNode; /** Clan */ "clan"?: (c: ThemeContext<"screen.clan">) => ThemeNode; /** Download */ "download"?: (c: ThemeContext<"screen.download">) => ThemeNode; /** Help */ "help"?: (c: ThemeContext<"screen.help">) => ThemeNode; /** Map selection */ "library"?: (c: ThemeContext<"screen.library">) => ThemeNode; /** Multiplayer lobby */ "lobby"?: (c: ThemeContext<"screen.lobby">) => ThemeNode; /** Mods */ "mods"?: (c: ThemeContext<"screen.mods">) => ThemeNode; /** Profile */ "profile"?: (c: ThemeContext<"screen.profile">) => ThemeNode; /** Score analysis */ "replay"?: (c: ThemeContext<"screen.replay">) => ThemeNode; /** Result */ "result"?: (c: ThemeContext<"screen.result">) => ThemeNode; /** Settings */ "settings"?: (c: ThemeContext<"screen.settings">) => ThemeNode; /** Skins */ "skins"?: (c: ThemeContext<"screen.skins">) => ThemeNode; /** Title */ "title"?: (c: ThemeContext<"screen.title">) => ThemeNode; /** Tournaments */ "tournaments"?: (c: ThemeContext<"screen.tournaments">) => ThemeNode; }; /** Component templates, by contract name (`library.footer`). */ components?: { /** Catalogue entry */ "catalog.card"?: (c: ThemeContext<"catalog.card">) => ThemeNode; /** Download result */ "download.card"?: (c: ThemeContext<"download.card">) => ThemeNode; /** Leaderboard card */ "leaderboard.card"?: (c: ThemeContext<"leaderboard.card">) => ThemeNode; /** Difficulty row */ "library.chartRow"?: (c: ThemeContext<"library.chartRow">) => ThemeNode; /** Footer of the selection */ "library.footer"?: (c: ThemeContext<"library.footer">) => ThemeNode; /** Song search bar */ "library.search"?: (c: ThemeContext<"library.search">) => ThemeNode; /** Set card */ "library.setCard"?: (c: ThemeContext<"library.setCard">) => ThemeNode; /** Song list toolbar */ "library.toolbar"?: (c: ThemeContext<"library.toolbar">) => ThemeNode; /** Lobby draft */ "lobby.draft"?: (c: ThemeContext<"lobby.draft">) => ThemeNode; /** Maps to play */ "maps.toPlay"?: (c: ThemeContext<"maps.toPlay">) => ThemeNode; /** Player card */ "player.card"?: (c: ThemeContext<"player.card">) => ThemeNode; /** Rate control */ "rate.control"?: (c: ThemeContext<"rate.control">) => ThemeNode; /** Selected map heading */ "selected.header"?: (c: ThemeContext<"selected.header">) => ThemeNode; /** Selected map tabs */ "selected.tabs"?: (c: ThemeContext<"selected.tabs">) => ThemeNode; }; } /** Declares the templates of the theme. Call it once, at the top level of `theme.ts`. */ declare function defineTheme(theme: ThemeDefinition): void; // ---- the builders as untyped globals ---- declare const box: ThemeBuilders["box"]; declare const row: ThemeBuilders["row"]; declare const column: ThemeBuilders["column"]; declare const grid: ThemeBuilders["grid"]; declare const stack: ThemeBuilders["stack"]; declare const scroll: ThemeBuilders["scroll"]; declare const spacer: ThemeBuilders["spacer"]; declare const text: ThemeBuilders["text"]; declare const icon: ThemeBuilders["icon"]; declare const image: ThemeBuilders["image"]; declare const button: ThemeBuilders["button"]; declare const toggle: ThemeBuilders["toggle"]; declare const meter: ThemeBuilders["meter"]; declare const dropdown: ThemeBuilders["dropdown"]; declare const slot: ThemeBuilders["slot"]; declare const each: ThemeBuilders["each"]; declare const when: ThemeBuilders["when"]; declare const t: ThemeBuilders["t"]; declare const fmt: ThemeBuilders["fmt"]; declare const bind: ThemeBuilders["bind"]; declare const on: ThemeBuilders["on"];