{
"format": 10,
"toolkit": "0.1.0",
"components": [
{
"name": "ControlHints",
"doc": "The shell's control hints: a pill that teaches one of the shell's controls at the moment it is useful, beside where it is done, and goes once the person does it. The shell's top layer, over the whole area it is given; it takes no input.",
"props": [
{
"name": "shows",
"doc": "Whether hints show at all: the person's \"Show control hints\".",
"type": "bool"
},
{
"name": "known",
"doc": "The hints the person has shown they know, by name.",
"type": {
"list": "text"
},
"data": true
},
{
"name": "shown",
"doc": "How often each hint showed, by name.",
"type": {
"map": {
"key": "text",
"value": "int"
}
},
"data": true
},
{
"name": "search_keys",
"doc": "The keys that open search, as the keyboard spells them: what the search hint names.",
"type": {
"list": "text"
}
},
{
"name": "touch",
"doc": "The person points by touch: hints name what a finger does.",
"type": "bool"
},
{
"name": "searching",
"doc": "Search is open: the person found it, and a window opened from it is opened from search.",
"type": "bool"
},
{
"name": "busy",
"doc": "Something has the person's attention (a menu, a sheet, a surface over the windows): no hint begins, and one on screen waits.",
"type": "bool"
},
{
"name": "engaged",
"doc": "The person is in a call or follows someone: no hint begins, and one on screen goes.",
"type": "bool"
},
{
"name": "typing",
"doc": "The person is typing (the device's `input.typing`): no hint begins until they pause.",
"type": "bool"
}
],
"events": [
{
"name": "learn",
"doc": "A hint was learned: carries its name.",
"value": "text"
},
{
"name": "show",
"doc": "A hint began to show: carries its name.",
"value": "text"
},
{
"name": "withdraw",
"doc": "A hint begun never reached the screen, so its showing does not count: carries its name.",
"value": "text"
}
],
"semantics": {
"role": "Label"
}
},
{
"name": "SearchButton",
"doc": "The one search affordance an app puts in its chrome: an icon button that opens the platform search over the whole app, or — given the `item` it shows — over that one resource and what it holds (a book's passages, a notebook's notes). It never draws a field, and a window bar that searches for the window takes its place.",
"props": [
{
"name": "item",
"doc": "The resource the search is scoped to, when it is one: the app's search narrowed to it, as the scope pill beside the query reads. Without one, the search reaches everything the app publishes.",
"type": {
"option": "resource"
},
"data": true
},
{
"name": "label",
"doc": "What the scoped search calls the resource it is narrowed to, in the scope pill: the book's title. The item's own name is read when this is empty.",
"type": {
"option": "text"
},
"data": true
}
],
"semantics": {
"role": "Button"
}
},
{
"name": "ActivityTimeline",
"doc": "The history of a document, grouped: runs of typing fold into one band that opens to its changes, each day's changes sit under the day's heading, and a change's menu offers reverting it.",
"props": [
{
"name": "fill",
"doc": "The pane takes the height its parent gives it and scrolls inside, rather than being as tall as its rows inside another scroll.",
"type": "bool"
},
{
"name": "newest_first",
"doc": "Whether it lists changes newest first.",
"type": "bool"
},
{
"name": "day_headings",
"doc": "Whether the pane shows the calendar's Today/Yesterday/This week headings.",
"type": "bool"
},
{
"name": "people_filters",
"doc": "Whether it offers every person and agent in the history as a filter.",
"type": "bool"
}
],
"parts": [
{
"name": "entries",
"doc": "The changes, oldest first.",
"accepts": {
"component": "ActivityEntry"
},
"many": true,
"default": true
}
],
"events": [
{
"name": "revert",
"doc": "A change was reverted: carries the change it is.",
"value": "resource"
},
{
"name": "open",
"doc": "A change was opened in the app: carries the change it is.",
"value": "resource"
}
],
"semantics": {
"role": "List"
}
},
{
"name": "Autocomplete",
"doc": "A field that suggests completions under it as it is typed into: a search over a site's catalogue, a mention, a command.",
"props": [
{
"name": "placeholder",
"doc": "What to type, shown while it is empty, and what names it to assistive technology.",
"type": {
"option": "text"
}
},
{
"name": "max_visible",
"doc": "How many suggestion rows show before the list scrolls.",
"type": {
"option": "int"
}
},
{
"name": "enabled",
"doc": "Whether it can be typed into now.",
"type": "bool"
},
{
"name": "autofocus",
"doc": "It takes the keyboard as soon as it is in the window, once: a palette that opens to be typed into.",
"type": "bool"
},
{
"name": "open_list",
"doc": "The rows stand open whenever there are any, instead of opening as the person types or walks them: a palette whose empty field already lists everything.",
"type": "bool"
},
{
"name": "tab_groups",
"doc": "Tab and Shift+Tab move the highlight to the next group's first row, instead of completing the field to the highlighted row: a palette whose rows are grouped.",
"type": "bool"
},
{
"name": "filter",
"doc": "The rows narrow to what is typed. Off, the rows are shown as they are offered: a host that already computed them for what is typed, or whose ranking is fuzzier than a substring.",
"type": "bool"
},
{
"name": "kinds",
"doc": "The kinds of result the rows can be narrowed to, in the order their chips stand over them (a kind's name, as the rows are grouped by it). Empty offers no chips.",
"type": {
"list": "text"
}
},
{
"name": "chosen",
"doc": "The kinds whose chips are chosen. Empty narrows nothing.",
"type": {
"list": "text"
}
},
{
"name": "status",
"doc": "A line shown under the field while there are no rows (\"Searching…\", \"Nothing matches\").",
"type": {
"option": "text"
}
}
],
"parts": [
{
"name": "suggestions",
"doc": "The completions to offer, in order.",
"accepts": {
"component": "Suggestion"
},
"many": true,
"default": true
}
],
"events": [
{
"name": "change",
"doc": "The field's text after each edit: what the host reads as the person types. Carries the text alone; taking a row or the text is [`Self::accept`].",
"value": "text"
},
{
"name": "accept",
"doc": "The person took a suggestion, or the text they typed: carries what the field holds now.",
"value": "text"
},
{
"name": "alternate",
"doc": "The person took a row with a modifier held: the row's value, and the way they opened it (`here` for Shift, `beside` for Ctrl, `more` for Alt), as `\"<way>\\t<value>\"`.",
"value": "text"
},
{
"name": "filter_kind",
"doc": "The person pressed the chip of a kind: carries the kind's name.",
"value": "text"
},
{
"name": "adjust",
"doc": "The person stepped the selected row's value: the step (`1` up, `-1` down) and the row's value, as `\"<delta>\\t<value>\"`. Left and Right step a row its host marks adjustable while it is selected.",
"value": "text"
},
{
"name": "cancel",
"doc": "The person dismissed the list, keeping nothing."
}
],
"bindings": [
{
"name": "value",
"doc": "The text typed, and where the edit of it goes.",
"type": "text",
"merge": "splice"
}
],
"semantics": {
"role": "ComboBox",
"label": "placeholder"
}
},
{
"name": "Avatar",
"doc": "Who someone is, at a glance: their picture, or their initials on their own colour.",
"props": [
{
"name": "who",
"doc": "The person or agent it shows.",
"type": {
"option": "actor"
},
"positional": true
},
{
"name": "name",
"doc": "What it is called when it shows no one: a group, a thing.",
"type": {
"option": "text"
}
},
{
"name": "glyph",
"doc": "A glyph instead of initials, on a neutral square: a group, an app.",
"type": {
"option": "icon"
}
},
{
"name": "square",
"doc": "A square rather than a circle: an account or a site, not a person.",
"type": "bool"
},
{
"name": "placeholder",
"doc": "An empty avatar placeholder: a message that continues its author's run lines up under the first one's avatar without repeating it.",
"type": "bool"
},
{
"name": "picture",
"doc": "Where the person's picture is: a content address (`tilo-blob://<hash>`) or a `data:` address a record carries, read as `ui.Image` reads one. The initials show until it is here.",
"type": {
"option": "text"
}
},
{
"name": "colour",
"doc": "The presence colour it wears, `rrggbb`, where the workspace assigned one: the colour the member row carries, which is not always the one its identity derives.",
"type": {
"option": "text"
}
},
{
"name": "status",
"doc": "How they are: `online`, `away`, `busy` or `offline`, drawn as the dot on their face.",
"type": {
"option": "text"
}
},
{
"name": "call",
"doc": "They are in a call now: an arc sweeps round the ring their face wears, or, where motion is reduced, the ring is lit and still.",
"type": "bool"
}
],
"semantics": {
"role": "Image",
"label": "name"
}
},
{
"name": "Backdrop",
"doc": "The shell's wallpaper under everything a view draws: the picture the session handed the host, covering the box, or the shell's gradient where it has no picture.",
"props": [
{
"name": "label",
"doc": "What it shows, for assistive technology; empty reads as nothing.",
"type": {
"option": "text"
},
"data": true
}
],
"semantics": {
"role": "Image",
"label": "label"
}
},
{
"name": "Badge",
"doc": "A small pill on another element: how many new things there are, a dot for something new, a short status (\"Owner\", \"Beta\"), or the mark of unsaved changes.",
"props": [
{
"name": "text",
"doc": "A short status in a word: \"Owner\", \"Beta\".",
"type": {
"option": "text"
},
"positional": true
},
{
"name": "count",
"doc": "How many new things there are, in your colour: nothing at 0, \"99+\" past 99.",
"type": {
"option": "int"
}
},
{
"name": "dot",
"doc": "Something new, without a number: a dot in your colour.",
"type": "bool"
},
{
"name": "modified",
"doc": "Unsaved changes: a dot in the primary ink, which is nobody's and not new.",
"type": "bool"
},
{
"name": "tone",
"doc": "A status the pill means, washed into it.",
"type": {
"option": {
"choice": {
"name": "Tone",
"cases": [
"neutral",
"success",
"warning",
"danger",
"info"
]
}
}
}
},
{
"name": "motion",
"doc": "The pace a changed count plays at: the theme's unless it says otherwise.",
"type": {
"choice": {
"name": "Motion",
"cases": [
"standard",
"brisk",
"calm",
"still"
]
}
}
}
],
"semantics": {
"role": "StaticText",
"label": "text"
}
},
{
"name": "Banner",
"doc": "A message that stays until it is resolved or dismissed: \"You're offline\", \"Storage is almost full\". Shows an optional app name, a title, an optional message, up to two actions and a dismiss button. Its kind sets the icon and colour.",
"props": [
{
"name": "title",
"doc": "What happened, in a short sentence.",
"type": "text",
"required": true,
"positional": true
},
{
"name": "message",
"doc": "What it means or what to do, under the title.",
"type": {
"option": "text"
}
},
{
"name": "source",
"doc": "The app's name, shown above the title.",
"type": {
"option": "text"
}
},
{
"name": "kind",
"doc": "What kind of message it is: `neutral` unless said. A warning or an error is announced at once; the others when assistive technology is idle.",
"type": {
"option": {
"choice": {
"name": "BannerKind",
"cases": [
"neutral",
"info",
"success",
"warning",
"error"
]
}
}
}
},
{
"name": "icon",
"doc": "A glyph instead of the kind's own.",
"type": {
"option": "icon"
}
},
{
"name": "action",
"doc": "The label of its main action, at its trailing edge: \"Retry\".",
"type": {
"option": "text"
}
},
{
"name": "secondary_action",
"doc": "The label of a second action, before the main one: \"Details\".",
"type": {
"option": "text"
}
},
{
"name": "bare",
"doc": "It draws no card of its own: the panel it stands on draws the card, and the banner's words and controls go on that panel's ground (a notification banner in the shell's corner).",
"type": "bool"
}
],
"events": [
{
"name": "act",
"doc": "Its main action was pressed.",
"press": true
},
{
"name": "secondary_act",
"doc": "Its second action was pressed.",
"press": true
},
{
"name": "dismiss",
"doc": "Its dismiss button was pressed: stop showing it. A banner with this has the button, and closes as it is pressed.",
"press": true
}
],
"semantics": {
"role": "Group",
"label": "title"
}
},
{
"name": "Board",
"doc": "Cards in lists, side by side: a kanban board, a pipeline, tasks by status.",
"props": [
{
"name": "name",
"doc": "What the board is, for assistive technology.",
"type": {
"option": "text"
}
}
],
"parts": [
{
"name": "lists",
"doc": "The lists, in order.",
"accepts": {
"component": "BoardList"
},
"many": true,
"default": true
}
],
"semantics": {
"role": "Group",
"label": "name"
}
},
{
"name": "Breadcrumb",
"doc": "Where a page is, as the path to it: each place it is in, a chevron between them, the page itself last.",
"props": [
{
"name": "root_icon",
"doc": "A glyph before the first place: a drive, Home.",
"type": {
"option": "icon"
}
}
],
"parts": [
{
"name": "segments",
"doc": "The places, outermost first; the last is the page itself, which is not pressed.",
"accepts": {
"component": "BreadcrumbSegment"
},
"many": true,
"default": true
}
],
"events": [
{
"name": "edit",
"doc": "The empty space after the last place was pressed: offer the path as a field to type in."
}
],
"semantics": {
"role": "Group"
}
},
{
"name": "Button",
"doc": "A button: pressing it does one thing.",
"props": [
{
"name": "label",
"doc": "What pressing it does, in a word or two.",
"type": "text",
"required": true,
"positional": true
},
{
"name": "accessible_name",
"doc": "How assistive technology names it, where that says more than the label shows: the charge reads \"61%\" beside its charging glyph and is named \"61%, charging\".",
"type": {
"option": "text"
}
},
{
"name": "icon",
"doc": "A glyph before the label, or instead of it when `icon_only`.",
"type": {
"option": "icon"
}
},
{
"name": "icon_only",
"doc": "Show only the icon, the label naming the button to assistive technology.",
"type": "bool"
},
{
"name": "faces",
"doc": "Who is here, as their faces: up to three faces, then a face counting the rest, and nothing else on the button at any width. Each is the member, so their face wears the picture they set.",
"type": {
"list": "actor"
}
},
{
"name": "role",
"doc": "What kind of action it is: `secondary` unless said, `plain` for an icon-only one.",
"type": {
"option": {
"choice": {
"name": "ButtonRole",
"cases": [
"primary",
"secondary",
"destructive",
"plain",
"key",
"bar"
]
}
}
}
},
{
"name": "toggled",
"doc": "A toggle button, and whether it is on: on, it stands on a lift of its ground and is announced as pressed.",
"type": {
"option": "bool"
}
},
{
"name": "size",
"doc": "How prominent it is: `regular` unless said.",
"type": {
"choice": {
"name": "ControlSize",
"cases": [
"small",
"regular",
"large"
]
}
}
},
{
"name": "enabled",
"doc": "Whether it can be pressed now.",
"type": "bool"
},
{
"name": "description",
"doc": "Why it cannot be pressed now, where the label does not say: the requirement an action does not meet.",
"type": {
"option": "text"
}
},
{
"name": "live",
"doc": "What it says is news: a screen reader announces it when it appears or changes, without the person moving focus — `polite` waits for a pause, `assertive` speaks at once.",
"type": {
"option": {
"choice": {
"name": "Politeness",
"cases": [
"polite",
"assertive"
]
}
}
}
},
{
"name": "key",
"doc": "The plain key that presses it while its window has the keyboard (and, on a row's action, while that row is selected), as the app declared it (`key: \"e\"`): the host answers it beside the pressed control's own event. A control of the view's own press shows it beside the label as the keyboard in use spells it; a button for an action keeps its face, its key shown where the action is listed.",
"type": {
"option": "text"
},
"data": true
},
{
"name": "keys",
"doc": "The plain keys that press it while its window has the keyboard, each as the app declared it (`keys: [\"Right\", \"Space\"]`): every one answers the same press. `key` is the one its keys show; a control that names several usually names none.",
"type": {
"list": "text"
},
"data": true
},
{
"name": "count",
"doc": "How many new things wait behind it (unread notifications, new mail), on an icon-only button: a count on its icon's top-trailing corner, as an app icon's does, and nothing at 0.",
"type": {
"option": "int"
}
},
{
"name": "dot",
"doc": "Something new behind it without a number: a dot on its icon's corner.",
"type": "bool"
},
{
"name": "alert",
"doc": "It needs the person: the count or the dot in the warning tone, not in your colour.",
"type": "bool"
},
{
"name": "in_menu",
"doc": "It belongs in its header's menu rather than in the row ([`crate::widget::Button::in_menu`]).",
"type": "bool"
},
{
"name": "group",
"doc": "The run of its owner's actions it stands in (`group: \"Due\"`), as the app names it: the header's menu shows rows of one run together, under the run's own row.",
"type": {
"option": "text"
}
}
],
"events": [
{
"name": "press",
"doc": "It was pressed (a click, Enter or Space, an assistive technology).",
"press": true
}
],
"semantics": {
"role": "Button",
"label": "label"
}
},
{
"name": "CallTile",
"doc": "A person in a call at their camera or screen.",
"props": [
{
"name": "who",
"doc": "The person the tile shows, and their face until their picture arrives.",
"type": {
"option": "actor"
}
},
{
"name": "source",
"doc": "What it shows of them: their camera, or the screen they share.",
"type": {
"option": {
"choice": {
"name": "CallSource",
"cases": [
"camera",
"screen"
]
}
}
}
},
{
"name": "name",
"doc": "What it is called where `who` names nobody the workspace knows (someone a bridge carries in).",
"type": {
"option": "text"
}
},
{
"name": "speaking",
"doc": "They are heard talking now: their face wears the speaking ring.",
"type": "bool"
},
{
"name": "muted",
"doc": "Their microphone is off.",
"type": "bool"
}
],
"semantics": {
"role": "Image",
"label": "name"
}
},
{
"name": "CandlestickChart",
"doc": "A price per period as candles: what rose and fell when. Each period is a candle from its open to its close, its wick reaching the period's high and low; a period that closed above its open is drawn in the theme's success ink, one that closed below it in its danger ink, and a flat one dim. The traded volume stands under the prices when shown.",
"props": [
{
"name": "candles",
"doc": "The periods, oldest first: `.candle(label: \"Monday\", open: 82.0, high: 88.0, low: 80.0, close: 86.0)`.",
"type": {
"list": {
"cases": {
"name": "Candle"
}
}
},
"required": true,
"positional": true
},
{
"name": "title",
"doc": "What it shows, at its head and as assistive technology announces it.",
"type": {
"option": "text"
}
},
{
"name": "volume",
"doc": "The traded volume under the prices; off unless said.",
"type": "bool"
}
],
"semantics": {
"role": "Image",
"label": "title"
}
},
{
"name": "Place",
"doc": "A resource's view on a canvas: the view on the window surface, with a handle shown over its corner on hover and focus that names it, holds its controls and moves it.",
"props": [
{
"name": "name",
"doc": "What the place shows, as its handle names it and assistive technology reads it.",
"type": {
"option": "text"
}
},
{
"name": "carries",
"doc": "The resource the place shows, by its published address: what picking the handle up carries, so letting it go on the canvas moves the place and on a composer attaches it.",
"type": {
"option": "text"
},
"data": true
},
{
"name": "target",
"doc": "The resource the place shows, whose published actions its menu lists, which the host fills as it fills a `ui.MenuButton`'s: a right-click on the place opens them, and typing there filters them as every context menu does (`canvas.md` §1, \"Right-click keeps its menu\"). A right-click on content with a menu of its own (a field, a row) is that content's.",
"type": {
"option": "resource"
}
}
],
"parts": [
{
"name": "controls",
"doc": "The handle's controls after the name: the resource's actions, pin and close.",
"accepts": "view"
},
{
"name": "body",
"doc": "The view the place shows, filling it.",
"accepts": "view",
"default": true
},
{
"name": "items",
"doc": "The place's menu: the commands the host filled from its target.",
"accepts": {
"one_of": [
"MenuItem",
"MenuSeparator"
]
},
"many": true
}
],
"semantics": {
"role": "Group",
"label": "name"
}
},
{
"name": "Card",
"doc": "A summary of one thing on a surface of its own: a dashboard's tile, a resource's preview.",
"props": [
{
"name": "title",
"doc": "What the card stands for, named in its head.",
"type": {
"option": "text"
}
},
{
"name": "accessible_name",
"doc": "What assistive technology calls the card, when its title alone does not say it: the title unless given.",
"type": {
"option": "text"
}
},
{
"name": "count",
"doc": "How many things the card lists, as a count beside its title.",
"type": {
"option": "int"
}
},
{
"name": "item",
"doc": "The resource the card summarizes.",
"type": {
"option": "resource"
},
"positional": true
},
{
"name": "selected",
"doc": "Whether it is the selected one among its peers.",
"type": "bool"
}
],
"parts": [
{
"name": "body",
"doc": "What the card shows, in order.",
"accepts": "view",
"many": true,
"default": true
}
],
"events": [
{
"name": "activate",
"doc": "The card was pressed: open what it stands for.",
"press": true
},
{
"name": "hover",
"doc": "The pointer came over the card: it is the one under it now."
}
],
"semantics": {
"role": "Group",
"label": "title",
"presents": "item"
}
},
{
"name": "CardGrid",
"doc": "Cards in equal, aligned columns: the apps of a store, the devices of a network, the paragraphs of a review.",
"props": [
{
"name": "name",
"doc": "What the grid is, for assistive technology.",
"type": {
"option": "text"
}
},
{
"name": "card_width",
"doc": "How wide a card is at least before the grid drops a column: small, regular or wide objects.",
"type": {
"option": {
"choice": {
"name": "CardWidth",
"cases": [
"compact",
"regular",
"wide"
]
}
}
}
}
],
"parts": [
{
"name": "cards",
"doc": "The cards, in order.",
"accepts": {
"component": "CardGridCard"
},
"many": true,
"default": true
}
],
"events": [
{
"name": "select",
"doc": "The keyboard moved the selection to a card: carries the item it stands for.",
"value": "resource"
},
{
"name": "edit",
"doc": "The edit key was pressed on the selected card: carries the item it stands for.",
"value": "resource"
},
{
"name": "delete",
"doc": "Delete was pressed on the selected card: carries the item it stands for, for the app's destructive action.",
"value": "resource"
}
],
"semantics": {
"role": "List",
"label": "name"
}
},
{
"name": "CartesianPlot",
"doc": "Readings on numeric axes: a trend over time, a relationship between two measures, a comparison. Each series takes the next colour of the theme's palette and is named in a legend; it draws as a line, an area, steps, points, bars or stems.",
"props": [
{
"name": "points",
"doc": "What is measured, each with its readings: `.points(x: [1.0, 2.0], y: [4.0, 6.0], label: \"Latency\")`.",
"type": {
"list": {
"cases": {
"name": "Points"
}
}
},
"required": true,
"positional": true
},
{
"name": "title",
"doc": "What it shows, at its head and as assistive technology announces it.",
"type": {
"option": "text"
}
},
{
"name": "x_title",
"doc": "What the x axis measures, under it (\"Minute\", \"Distance\").",
"type": {
"option": "text"
}
},
{
"name": "y_title",
"doc": "What the y axis measures, beside it (\"Milliseconds\").",
"type": {
"option": "text"
}
}
],
"semantics": {
"role": "Image",
"label": "title"
}
},
{
"name": "BarChart",
"doc": "Bars over named categories: how much there is of each, to compare. Several measured things stand beside each other in a category, stack on each other, or stack as shares of the category's whole; each takes the next colour of the theme's palette and is named in a legend.",
"props": [
{
"name": "bars",
"doc": "What is measured, each with its reading in every category: `.bars(values: done, label: \"Done\")`.",
"type": {
"list": {
"cases": {
"name": "Bars"
}
}
},
"required": true,
"positional": true
},
{
"name": "categories",
"doc": "What each group of bars is of, in order, under it: a week, a team, a stage.",
"type": {
"list": "text"
},
"required": true
},
{
"name": "title",
"doc": "What it shows, at its head and as assistive technology announces it.",
"type": {
"option": "text"
}
},
{
"name": "layout",
"doc": "How several measured things share a category: `grouped` beside each other unless said, `stacked` on each other, `share` stacked as parts of the category's whole, or `waterfall` for the first measured thing's rises and falls, each standing on the one before.",
"type": {
"option": {
"choice": {
"name": "BarLayout",
"cases": [
"grouped",
"stacked",
"share",
"waterfall"
]
}
}
}
},
{
"name": "readings",
"doc": "Each bar's reading written at it.",
"type": "bool"
},
{
"name": "unit",
"doc": "What a reading counts, written after each value a person pointing at a category reads (\"GB\", \"ms\", \"/s\").",
"type": {
"option": "text"
}
}
],
"semantics": {
"role": "Image",
"label": "title"
}
},
{
"name": "ChangeMark",
"doc": "What someone else changed of a resource that the person looking has not seen yet: who, in which task run, and whether they made, changed or removed it.",
"props": [
{
"name": "of",
"doc": "The resource whose changes it marks.",
"type": {
"option": "resource"
},
"positional": true
},
{
"name": "by",
"doc": "Who made the newest change the person has not seen.",
"type": {
"option": "actor"
}
},
{
"name": "by_all",
"doc": "Everyone who made one of the changes the person has not seen, in the order they changed it (its newest change last), each once.",
"type": {
"list": "actor"
}
},
{
"name": "said",
"doc": "What the newest change did, in the words history says it with (\"moved this to\").",
"type": {
"option": "text"
}
},
{
"name": "noun",
"doc": "What one item of it is called, plural (\"tasks\"): the noun a window's count names.",
"type": {
"option": "text"
}
},
{
"name": "noun_one",
"doc": "What one item of it is called, singular (\"task\"): one change names one, so the count and the noun agree in number.",
"type": {
"option": "text"
}
},
{
"name": "run",
"doc": "The task run it was part of, as its task is titled.",
"type": {
"option": "text"
}
},
{
"name": "kind",
"doc": "What they did: `created`, `changed` or `removed`.",
"type": {
"option": "text"
},
"data": true
},
{
"name": "count",
"doc": "How many changes of it the person has not seen.",
"type": "int"
},
{
"name": "window",
"doc": "It marks a window, in its header: it says how many changes and by whom.",
"type": "bool"
},
{
"name": "added",
"doc": "Every change it counts only put items in (`$noun`): what it says is new rather than changed.",
"type": "bool"
},
{
"name": "more",
"doc": "The window's document holds more resources than the mark counted: what it says is a lower bound, and says so.",
"type": "bool"
}
],
"parts": [
{
"name": "content",
"doc": "What a window's mark opens: the views of its catch-up (*Since you looked*), placed by whoever placed the mark.",
"accepts": "view",
"many": true,
"default": true
}
],
"events": [
{
"name": "activate",
"doc": "Activated: show what they did, at the run that did it."
}
],
"semantics": {
"role": "Button",
"label": "run"
}
},
{
"name": "Chart",
"doc": "A titled chart of one or more lines over a shared scale, with a grid and the labels of its scale: a history worth reading closely, where a sparkline only hints at a trend.",
"props": [
{
"name": "series",
"doc": "The lines, each over the ones before it: `.series(values: cpu, label: \"CPU\")`.",
"type": {
"list": {
"cases": {
"name": "Series"
}
}
},
"required": true,
"positional": true
},
{
"name": "title",
"doc": "What it shows, at its head and as assistive technology announces it.",
"type": {
"option": "text"
}
},
{
"name": "max",
"doc": "The top of its scale, which may be more than the readings reach; the highest reading unless said.",
"type": {
"option": "float"
}
},
{
"name": "area",
"doc": "The area under each line washed in its ink.",
"type": "bool"
},
{
"name": "top_label",
"doc": "The label at the top of its scale: \"100%\".",
"type": {
"option": "text"
}
},
{
"name": "bottom_label",
"doc": "The label at the foot of its scale: \"0%\".",
"type": {
"option": "text"
}
},
{
"name": "labels",
"doc": "What each reading is at, oldest first (\"9:51\", \"Monday\"): the position a person pointing at the chart reads the lines at.",
"type": {
"list": "text"
}
},
{
"name": "unit",
"doc": "What a reading counts, written after each value read (\"ms\", \"/s\").",
"type": {
"option": "text"
}
},
{
"name": "height",
"doc": "Its height in logical pixels: 160 unless said.",
"type": {
"option": "float"
}
}
],
"semantics": {
"role": "Image",
"label": "title"
}
},
{
"name": "Sparkline",
"doc": "A tiny trend line, with no axis, grid, title or legend: a recent history inside a table cell or a stat card.",
"props": [
{
"name": "samples",
"doc": "The samples, oldest first.",
"type": {
"list": "float"
},
"required": true,
"positional": true
},
{
"name": "label",
"doc": "What the trend is of, as assistive technology announces it: \"Requests per second\".",
"type": {
"option": "text"
}
},
{
"name": "max",
"doc": "The vertical maximum, which may be more than the samples reach; without one it is the highest sample.",
"type": {
"option": "float"
}
},
{
"name": "filled",
"doc": "The area under the line filled in the same colour, which a sparkline draws unless it is told not to: `true` unless said.",
"type": {
"option": "bool"
}
},
{
"name": "smooth",
"doc": "The line's shape between samples: the smooth curve rather than straight segments.",
"type": "bool"
},
{
"name": "leading_dot",
"doc": "A dot of this radius on the newest sample: the live edge of a streaming series.",
"type": {
"option": "float"
}
},
{
"name": "tone",
"doc": "What its line means, when it means something: a status, a person.",
"type": {
"option": {
"choice": {
"name": "Tone",
"cases": [
"neutral",
"success",
"warning",
"danger",
"info"
]
}
}
}
},
{
"name": "unit",
"doc": "What its readings count, written after them in the hover readout (\"/s\", \"h\").",
"type": {
"option": "text"
}
}
],
"semantics": {
"role": "Image",
"label": "label"
}
},
{
"name": "EmojiPicker",
"doc": "A button that opens the emoji picker beside it; the emoji picked is reported (`on pick(e)`).",
"props": [
{
"name": "label",
"doc": "What the button is called; \"Add reaction\" unless it says.",
"type": {
"option": "text"
}
}
],
"events": [
{
"name": "pick",
"doc": "An emoji was picked: carries it.",
"value": "text"
}
],
"semantics": {
"role": "Button",
"label": "label"
}
},
{
"name": "Quote",
"doc": "A message quoted where another answers it, or in the reply banner over the composer: a rule at its leading edge, who wrote it and the start of what it says.",
"props": [
{
"name": "excerpt",
"doc": "The start of what the quoted message says.",
"type": "text",
"required": true,
"positional": true
},
{
"name": "author",
"doc": "Who wrote it.",
"type": {
"option": "actor"
}
},
{
"name": "caption",
"doc": "What the quote is to the message (`Replying to`), shown before the author.",
"type": {
"option": "text"
}
}
],
"events": [
{
"name": "dismiss",
"doc": "The close button was pressed."
},
{
"name": "activate",
"doc": "The quote was pressed: show the message it quotes, or the run of it it names, where that message stands. Without it the quote is read, not pressed."
}
],
"semantics": {
"role": "Group",
"label": "excerpt"
}
},
{
"name": "Reactions",
"doc": "The reactions on something: a pill per emoji with how many reacted, yours drawn on; pressing one adds or takes back your reaction, and the add button opens the emoji picker for another.",
"props": [
{
"name": "reactions",
"doc": "Who reacted, by emoji: the reactions as the message holds them (`Map<Text, Set<Actor>>`).",
"type": {
"map": {
"key": "text",
"value": {
"set": "actor"
}
}
}
},
{
"name": "emoji",
"doc": "The emoji reacted with, in the order they were first used: the older form, with `by`, read while `reactions` is not given.",
"type": {
"list": "text"
},
"positional": true,
"data": true
},
{
"name": "by",
"doc": "Who reacted with each of `emoji`, in the same order.",
"type": {
"list": {
"list": "actor"
}
}
},
{
"name": "relayed",
"doc": "Who reacted with it somewhere else, under a name of their own (a bridged account), each entry its emoji and that name, a tab between them. They stand on the pill of their emoji, counted with the members' reactions, and read as one more name in its tooltip.",
"type": {
"list": "text"
}
},
{
"name": "can_react",
"doc": "Whether the person may react; they may unless it says not.",
"type": {
"option": "bool"
}
}
],
"events": [
{
"name": "toggle",
"doc": "An emoji was pressed or picked: carries it.",
"value": "text"
},
{
"name": "person",
"doc": "The face of someone who reacted was chosen: carries who they are, for the view to say more of them (their card).",
"value": "actor"
}
],
"semantics": {
"role": "Toolbar"
}
},
{
"name": "Checkbox",
"doc": "A box that is marked or not, bound to what it edits (whether to be told of a reply, which rows a bulk action takes).",
"props": [
{
"name": "label",
"doc": "What it is for, beside the box: the whole row chooses it.",
"type": {
"option": "text"
},
"positional": true
},
{
"name": "indeterminate",
"doc": "Some of what it stands for is chosen: a mixed mark.",
"type": "bool"
},
{
"name": "enabled",
"doc": "Whether it can be chosen now.",
"type": "bool"
},
{
"name": "motion",
"doc": "The pace its mark plays at: the theme's unless it says otherwise.",
"type": {
"choice": {
"name": "Motion",
"cases": [
"standard",
"brisk",
"calm",
"still"
]
}
}
}
],
"events": [
{
"name": "check",
"doc": "It was pressed: what a mark is, in the app's words.",
"press": true
}
],
"bindings": [
{
"name": "value",
"doc": "Whether it is marked, and where a mark made in it goes.",
"type": "bool",
"merge": "register"
}
],
"semantics": {
"role": "Checkbox",
"label": "label"
}
},
{
"name": "Chip",
"doc": "A compact pill for a tag, a filter or a token: what a note is tagged with, a recipient, an applied filter.",
"props": [
{
"name": "label",
"doc": "What it names, in a word or two.",
"type": "text",
"required": true,
"positional": true
},
{
"name": "icon",
"doc": "A glyph before the label, for a chip that names an action rather than a value.",
"type": {
"option": "icon"
}
},
{
"name": "faces",
"doc": "Who it names, as their face before the label: the member, so their face wears the picture they set, as the bar's faces do. The first is the one shown.",
"type": {
"list": "actor"
}
},
{
"name": "tone",
"doc": "The tone the chip reads in: what it names is a status (a priority, a state of an item), and its pill is washed in that tone.",
"type": {
"choice": {
"name": "Tone",
"cases": [
"neutral",
"success",
"warning",
"danger",
"info"
]
}
}
},
{
"name": "selected",
"doc": "Whether the filter it stands for is on; without it the chip is no filter.",
"type": {
"option": "bool"
}
},
{
"name": "enabled",
"doc": "Whether it can be pressed now.",
"type": "bool"
},
{
"name": "description",
"doc": "Why it cannot be pressed now, where the label does not say (an action whose requirement does not hold): spoken as its description beside the name, and shown on hover.",
"type": {
"option": "text"
}
},
{
"name": "live",
"doc": "What it says is news: a screen reader announces it when it appears or changes, without the person moving focus — `polite` waits for a pause, `assertive` speaks at once.",
"type": {
"option": {
"choice": {
"name": "Politeness",
"cases": [
"polite",
"assertive"
]
}
}
}
}
],
"events": [
{
"name": "press",
"doc": "It was pressed: open or apply what it names.",
"press": true
},
{
"name": "remove",
"doc": "Its remove button was pressed: take it away.",
"press": true
}
],
"semantics": {
"role": "Button",
"label": "label"
}
},
{
"name": "ChordChart",
"doc": "How much moves between a set of things: which teams hand work to which, which services call which, which people write to whom. Each thing takes an arc as wide as everything that touches it, a ribbon as wide as its weight joins each pair, and a person pointing at an arc or a ribbon reads what it carries.",
"props": [
{
"name": "nodes",
"doc": "The things it relates, around the ring, in order: `.node(id: \"design\", label: \"Design\")`.",
"type": {
"list": {
"cases": {
"name": "FlowNode"
}
}
},
"required": true,
"positional": true
},
{
"name": "links",
"doc": "How much moves between them, in either direction: `.link(from: \"design\", to: \"engineering\", value: 32.0)`, `from` and `to` naming nodes by their ids.",
"type": {
"list": {
"cases": {
"name": "FlowLink"
}
}
},
"required": true
},
{
"name": "title",
"doc": "What it shows, over it and as assistive technology announces it.",
"type": {
"option": "text"
}
}
],
"semantics": {
"role": "Image",
"label": "title"
}
},
{
"name": "Chrome",
"doc": "A bar or a dock's body: the theme's bar finish behind what the body holds.",
"props": [
{
"name": "name",
"doc": "What the body is, for assistive technology.",
"type": {
"option": "text"
}
},
{
"name": "shape",
"doc": "How the body sits in its edge: edge to edge and square (the default), or an inset, rounded body.",
"type": {
"option": {
"choice": {
"name": "ChromeShape",
"cases": [
"square",
"rounded"
]
}
}
}
},
{
"name": "edge",
"doc": "The screen edge the body stands on.",
"type": {
"option": {
"choice": {
"name": "ChromeEdge",
"cases": [
"top",
"bottom",
"leading",
"trailing"
]
}
}
}
},
{
"name": "material",
"doc": "What the body is made of: the theme's bar body (the default), the theme's glass, or that glass made calm.",
"type": {
"option": {
"choice": {
"name": "ChromeMaterial",
"cases": [
"bar",
"glass",
"calm"
]
}
}
}
}
],
"parts": [
{
"name": "body",
"doc": "What the body holds.",
"accepts": "view",
"default": true
}
],
"semantics": {
"role": "Group",
"label": "name"
}
},
{
"name": "Clock",
"doc": "A wall clock, live: the time of day in `zone` (the person's when it names none), the day there, and how far its clock stands from here.",
"props": [
{
"name": "zone",
"doc": "The IANA zone (`Asia/Tokyo`) to read the clock in; the person's own when it names none.",
"type": {
"option": "text"
}
},
{
"name": "facts",
"doc": "Show the day there and how far its clock stands from here, under the time.",
"type": "bool"
},
{
"name": "role",
"doc": "What the time is, which sets its size and weight: `body` unless said.",
"type": {
"choice": {
"name": "TextRole",
"cases": [
"display",
"large_title",
"title",
"heading",
"subheading",
"body",
"label",
"caption",
"reading",
"code"
]
}
}
},
{
"name": "secondary",
"doc": "In secondary ink, beside the content it is about.",
"type": "bool"
}
],
"semantics": {
"role": "Label",
"label": "zone"
}
},
{
"name": "CodeEditor",
"doc": "Code to read or write, with line numbers and its language's colouring.",
"props": [
{
"name": "placeholder",
"doc": "What to type, shown while it is empty.",
"type": {
"option": "text"
}
},
{
"name": "language",
"doc": "The language it colours (the language's own name, `rust`, `json`); plain text unless said.",
"type": {
"option": {
"choice": {
"name": "Language",
"cases": [
"plain_text",
"rust",
"typst",
"sql",
"json",
"shell",
"git",
"python",
"javascript",
"typescript",
"yaml",
"markdown",
"html",
"css",
"toml",
"dockerfile",
"c",
"cpp",
"go",
"verilog",
"system_verilog",
"tilolang"
]
}
}
}
},
{
"name": "min_lines",
"doc": "The fewest lines it is tall for.",
"type": {
"option": "int"
}
},
{
"name": "max_lines",
"doc": "The most lines it is tall for; past them it scrolls.",
"type": {
"option": "int"
}
},
{
"name": "gutter",
"doc": "The line numbers show.",
"type": "bool"
},
{
"name": "read_only",
"doc": "It is read and copied, never edited.",
"type": "bool"
},
{
"name": "reveal",
"doc": "The place to show, written `line` or `line:column` counted from 1; the same place asked for again needs a count after it (`3:1:2`), so a person's own scrolling is left alone.",
"type": {
"option": "text"
}
},
{
"name": "zoom",
"doc": "How large the code reads, as a factor of its size (`1.25`): the editor's own text zoom, kept by whoever shows it, beside the window's scale rather than instead of it.",
"type": {
"option": "float"
}
}
],
"bindings": [
{
"name": "value",
"doc": "The text it edits.",
"type": "text",
"merge": "splice"
}
],
"semantics": {
"role": "TextInput",
"label": "placeholder"
}
},
{
"name": "ColorPicker",
"doc": "A colour, picked from a saturation and value field, a hue strip, the red, green and blue sliders, or a hex field; a palette of quick picks sits under them when given.",
"props": [
{
"name": "swatches",
"doc": "A palette of quick picks under the sliders.",
"type": {
"list": "text"
},
"data": true
},
{
"name": "columns",
"doc": "How many swatches stand in a row.",
"type": {
"option": "int"
}
},
{
"name": "label",
"doc": "Its spoken name.",
"type": {
"option": "text"
}
}
],
"events": [
{
"name": "change",
"doc": "A colour was picked: carries its hex text.",
"value": "text"
}
],
"bindings": [
{
"name": "value",
"doc": "The colour, as its hex text (\"#3a7bd5\"), and where a picked colour goes.",
"type": "text",
"merge": "register"
}
],
"semantics": {
"role": "Group",
"label": "label"
}
},
{
"name": "ColorSwatchPicker",
"doc": "A grid of swatches, one chosen (a palette of accents): the chosen cell carries the ring.",
"props": [
{
"name": "swatches",
"doc": "The swatches, as hex colours, in order.",
"type": {
"list": "text"
},
"required": true,
"data": true
},
{
"name": "columns",
"doc": "How many stand in a row.",
"type": "int"
},
{
"name": "selected",
"doc": "Which is chosen, counted from 0: none until a person chooses one.",
"type": {
"option": "int"
}
},
{
"name": "label",
"doc": "Its spoken name.",
"type": {
"option": "text"
}
}
],
"events": [
{
"name": "change",
"doc": "A swatch was chosen: carries its index, counted from 0.",
"value": "int"
}
],
"semantics": {
"role": "Group",
"label": "label"
}
},
{
"name": "MenuButton",
"doc": "A button that opens a menu of commands under it: a header's More button, a sort menu.",
"props": [
{
"name": "label",
"doc": "What the menu holds, in a word or two. An icon-only button is still named by it.",
"type": "text",
"required": true,
"positional": true
},
{
"name": "icon",
"doc": "A glyph before the label, or instead of it when `icon_only`.",
"type": {
"option": "icon"
}
},
{
"name": "icon_only",
"doc": "Show only the icon, the label naming the button to assistive technology.",
"type": "bool"
},
{
"name": "faces",
"doc": "Whose menu it is, as their faces in place of the label and icon: the person's own menu on a bar is their face, one person's at an avatar's full size, wearing the picture they set. The label names it to assistive technology.",
"type": {
"list": "actor"
}
},
{
"name": "role",
"doc": "What kind of button it is: `secondary` unless said, `plain` for an icon-only one.",
"type": {
"option": {
"choice": {
"name": "ButtonRole",
"cases": [
"primary",
"secondary",
"destructive",
"plain",
"key",
"bar"
]
}
}
}
},
{
"name": "actions",
"doc": "Actions offered on something (`actions(r)`), each a command after `items`.",
"type": {
"list": "action"
}
},
{
"name": "target",
"doc": "The resource whose published actions this menu lists, which the host fills: a bar that lists the window in front's commands names the window and leaves the commands to it.",
"type": {
"option": "resource"
}
}
],
"parts": [
{
"name": "items",
"doc": "The commands, in order.",
"accepts": {
"one_of": [
"MenuItem",
"MenuSeparator"
]
},
"many": true,
"default": true
}
],
"semantics": {
"role": "Button",
"label": "label"
}
},
{
"name": "SectionDivider",
"doc": "A divider in a conversation: a caption centred in a band, ruled out to both sides, over the row where the part it opens begins — a day of the lines, or the place the reader's unread lines start.",
"props": [
{
"name": "label",
"doc": "What the divider says: the day it opens (\"Today\", \"Sunday\", \"Jun 21\").",
"type": {
"option": "text"
},
"positional": true
},
{
"name": "tone",
"doc": "What it marks, which sets its ink: a day of the conversation unless said, or the accent where the reader's unread lines start.",
"type": {
"choice": {
"name": "DividerTone",
"cases": [
"quiet",
"accent"
]
}
}
}
],
"semantics": {
"role": "Group",
"label": "label"
}
},
{
"name": "ConversationList",
"doc": "A conversation, drawn as every conversation is drawn: each line on its own side, runs of one person's consecutive messages under their name once, a divider where the day changes, and the time and the delivery state under your own.",
"props": [
{
"name": "name",
"doc": "What the conversation is, for assistive technology: \"Conversation with Ada\".",
"type": {
"option": "text"
}
}
],
"parts": [
{
"name": "lines",
"doc": "The lines, oldest first.",
"accepts": {
"component": "ConversationEntry"
},
"many": true,
"default": true
}
],
"semantics": {
"role": "List",
"label": "name"
}
},
{
"name": "Countdown",
"doc": "A countdown, live: the time left until `at` — or, once it has come, the time since it — and, with `total`, a ring of how much of it is left.",
"props": [
{
"name": "at",
"doc": "The moment it counts to: the time left until it, or the time since it once it has come.",
"type": "time",
"required": true,
"positional": true
},
{
"name": "total",
"doc": "How long the whole is, in seconds: a ring drains as it goes. Without it the readout stands alone, as a stopwatch's does.",
"type": {
"option": "float"
}
},
{
"name": "label",
"doc": "What the ring measures, under its readout.",
"type": {
"option": "text"
}
},
{
"name": "size",
"doc": "How large the readout is: `regular` unless said.",
"type": {
"option": {
"choice": {
"name": "ProgressRingSize",
"cases": [
"small",
"regular",
"large"
]
}
}
}
}
],
"semantics": {
"role": "Timer",
"label": "label"
}
},
{
"name": "CurveEditor",
"doc": "A tone curve a person shapes: a box over the whole range each way, the straight line a plain picture takes, and the points that bend it. A press puts a point where it landed or grabs the one it landed on, a drag bends the curve through it, and letting go well outside the box takes an interior point off again. The line is drawn as the grade applies it, so what is shaped is what the picture gets.",
"props": [
{
"name": "points",
"doc": "The points, a flat list of x and y each in `0..=1`, in ascending x. Both ends are kept at x 0 and x 1; an empty list is the straight line.",
"type": {
"list": "float"
}
},
{
"name": "height",
"doc": "How tall the box stands, in logical pixels: 160 unless said.",
"type": "float"
},
{
"name": "label",
"doc": "What the curve is, for assistive technology: \"The red curve\".",
"type": {
"option": "text"
}
}
],
"events": [
{
"name": "change",
"doc": "The points moved: carries them all, a flat list of x and y, each `0..=1`.",
"value": {
"list": "float"
}
}
],
"semantics": {
"role": "Group",
"label": "label"
}
},
{
"name": "DataTable",
"doc": "A table of resources as columns and rows: the attributes of a device, the songs in a library, the rules of a firewall.",
"props": [
{
"name": "name",
"doc": "What the table is, for assistive technology.",
"type": {
"option": "text"
}
},
{
"name": "fill",
"doc": "The table takes the height its parent gives it and scrolls inside itself, rather than being as tall as its rows inside another scroll.",
"type": "bool"
},
{
"name": "reserved",
"doc": "Rows a finger's target tall, rather than a pointer target and a step.",
"type": "bool"
},
{
"name": "selectable",
"doc": "Whether pressing a row picks it.",
"type": "bool"
}
],
"parts": [
{
"name": "columns",
"doc": "The columns, in order.",
"accepts": {
"component": "DataTableColumn"
},
"many": true
},
{
"name": "rows",
"doc": "The rows, in order.",
"accepts": {
"component": "DataTableRow"
},
"many": true,
"default": true
}
],
"events": [
{
"name": "select",
"doc": "A row was selected: carries the resource it shows.",
"value": "resource"
},
{
"name": "activate",
"doc": "A row was activated (a double click, Enter, an assistive technology): carries the resource it shows.",
"value": "resource"
}
],
"state": [
{
"name": "selection",
"doc": "The selected rows, by the resource each stands for.",
"type": {
"option": {
"list": "resource"
}
}
}
],
"semantics": {
"role": "Table",
"label": "name"
}
},
{
"name": "DateField",
"doc": "A day, shown as the person reads a day (with the time it is due at) and picked from a calendar that opens over it.",
"props": [
{
"name": "at",
"doc": "The time of day the day is due at, when its type pairs one with it (`9:00`): what the chip says after the day.",
"type": {
"option": "text"
}
},
{
"name": "label",
"doc": "Its spoken name: what the date is for.",
"type": {
"option": "text"
}
},
{
"name": "optional",
"doc": "The date may be cleared: the calendar offers \"Clear date\".",
"type": "bool"
},
{
"name": "compact",
"doc": "The field stands beside the entry that tells its day (a moment's field, whose hour the entry types): the chip shows the calendar icon alone, opening the calendar and the time.",
"type": "bool"
}
],
"parts": [
{
"name": "time",
"doc": "The control that picks the time of day the day is due at: `ui.TimeField(bind: t.at)`.",
"accepts": "view",
"many": true
}
],
"events": [
{
"name": "change",
"doc": "A day was picked, or the date was cleared: carries the moment, or nothing for a cleared one.",
"value": "time"
}
],
"bindings": [
{
"name": "value",
"doc": "The day, as the moment a component binds (its ISO text), and where a picked day goes.",
"type": "time",
"merge": "register"
}
],
"semantics": {
"role": "ComboBox",
"label": "label"
}
},
{
"name": "DatePicker",
"doc": "A month's calendar: the day chosen is ringed, today marked, and the arrows go between months.",
"props": [
{
"name": "marked",
"doc": "Days that hold something (an event, a note): a dot under the number.",
"type": {
"list": "text"
},
"data": true
},
{
"name": "label",
"doc": "Its spoken name.",
"type": {
"option": "text"
}
}
],
"events": [
{
"name": "change",
"doc": "A day was chosen: carries the moment.",
"value": "time"
}
],
"bindings": [
{
"name": "value",
"doc": "The day chosen, as the moment a component binds (its ISO text), and where choosing one goes.",
"type": "time",
"merge": "register"
}
],
"semantics": {
"role": "Group",
"label": "label"
}
},
{
"name": "DiffGrid",
"doc": "Two texts aligned line by line, as a comparison reads: each side's own line numbers, the changed rows washed, and a strip down the side where the changes stand.",
"props": [
{
"name": "left",
"doc": "The left side's lines, one per aligned row: an empty line where it has none.",
"type": {
"list": "text"
},
"required": true,
"positional": true
},
{
"name": "right",
"doc": "The right side's lines, one per aligned row: an empty line where it has none.",
"type": {
"list": "text"
}
},
{
"name": "kinds",
"doc": "One character per aligned row: `\" \"` where both sides hold the same line, `\"a\"` a line only the right has, `\"r\"` a line only the left has, `\"m\"` a line both have and differ.",
"type": "text"
},
{
"name": "at",
"doc": "The first row of the change the window is at: the grid brings it into view when it changes.",
"type": {
"option": "int"
}
},
{
"name": "side",
"doc": "Which side shows: both side by side, or one of them alone where the window is narrow.",
"type": {
"choice": {
"name": "DiffSide",
"cases": [
"both",
"left",
"right"
]
}
}
},
{
"name": "language",
"doc": "The language the lines are coloured as (the language's own name, `rust`, `json`); plain text unless said.",
"type": {
"option": {
"choice": {
"name": "Language",
"cases": [
"plain_text",
"rust",
"typst",
"sql",
"json",
"shell",
"git",
"python",
"javascript",
"typescript",
"yaml",
"markdown",
"html",
"css",
"toml",
"dockerfile",
"c",
"cpp",
"go",
"verilog",
"system_verilog",
"tilolang"
]
}
}
}
},
{
"name": "label",
"doc": "What the grid shows, as assistive technology announces it: \"a.rs and b.rs, 3 changes\".",
"type": {
"option": "text"
}
}
],
"events": [
{
"name": "press",
"doc": "A row was pressed: carries its place among the aligned rows.",
"value": "int"
},
{
"name": "wheel",
"doc": "The wheel or the scroll bar asked to show other rows: carries the rows the first one moves by, down for a positive number.",
"value": "int"
}
],
"semantics": {
"role": "Table",
"label": "label"
}
},
{
"name": "DisclosureBand",
"doc": "Content a view shows only while something is open, unrolling from its top.",
"parts": [
{
"name": "content",
"doc": "What it shows, in order.",
"accepts": "view",
"many": true,
"default": true
}
],
"semantics": {
"role": "Group"
}
},
{
"name": "DistributionChart",
"doc": "The spread of each measured thing: where its readings centre and how far they run, as a box, a violin or both. Callers give the readings themselves, never quartiles or bins; each series takes the next colour of the theme's palette and is named under the chart.",
"props": [
{
"name": "samples",
"doc": "What was measured, each with the readings taken: `.samples(values: hours, label: \"Before\")`.",
"type": {
"list": {
"cases": {
"name": "Samples"
}
}
},
"required": true,
"positional": true
},
{
"name": "title",
"doc": "What it shows, at its head and as assistive technology announces it.",
"type": {
"option": "text"
}
},
{
"name": "kind",
"doc": "How each distribution is drawn: `box` for its quartiles, `violin` for its shape, `both` for the two together unless said.",
"type": {
"option": {
"choice": {
"name": "DistributionKind",
"cases": [
"box",
"violin",
"both"
]
}
}
}
}
],
"semantics": {
"role": "Image",
"label": "title"
}
},
{
"name": "Docked",
"doc": "Content that fills its column above a bar that stays at the column's foot: a conversation above its composer.",
"parts": [
{
"name": "content",
"doc": "What fills the column; it scrolls itself.",
"accepts": "view",
"default": true
},
{
"name": "foot",
"doc": "The bar at the foot, as tall as it needs.",
"accepts": "view"
}
],
"semantics": {
"role": "Group"
}
},
{
"name": "DragRun",
"doc": "A run of items — a dock's icons, a toolbar's tiles, a row of cards — reordered by dragging one.",
"props": [
{
"name": "name",
"doc": "What the run is, for assistive technology.",
"type": {
"option": "text"
}
},
{
"name": "axis",
"doc": "Whether the items lead to trailing (the default) or run top to bottom.",
"type": {
"option": {
"choice": {
"name": "Axis",
"cases": [
"horizontal",
"vertical"
]
}
}
}
},
{
"name": "distribute",
"doc": "Where the run's packed items sit along it: its leading edge (the default), its centre, its trailing edge, or spread between its ends.",
"type": {
"option": {
"choice": {
"name": "Distribute",
"cases": [
"start",
"center",
"end",
"between"
]
}
}
}
},
{
"name": "align",
"doc": "Where the items pack across the run: centred (the default).",
"type": {
"option": {
"choice": {
"name": "Align",
"cases": [
"start",
"center",
"end",
"stretch"
]
}
}
}
}
],
"parts": [
{
"name": "items",
"doc": "The items, in order.",
"accepts": {
"component": "DragItem"
},
"many": true,
"default": true
},
{
"name": "trailing",
"doc": "What stands beside the items at the run's trailing end and is never moved: a taskbar's time and device status.",
"accepts": "view",
"many": true
}
],
"events": [
{
"name": "drop",
"doc": "An item was let go in a new place: carries the resource it stands for and its place among the run's other items, from 0 — what `items.move(item, to: at)` takes.",
"value": "resource",
"at": "int"
}
],
"semantics": {
"role": "Group",
"label": "name"
}
},
{
"name": "DragSource",
"doc": "A view a person can pick up and drag: to a drop target in the same window (a search hit, a row of a list, a message's attachment), carrying `resource`, or, given `files`, out of the window as a real file drag another app can take. The ghost under the pointer says `title`.\nA press that does not travel is the content's own, so a dragged row still opens when clicked and a dragged chip still presses.",
"props": [
{
"name": "resource",
"doc": "The resource the drag carries, as its published address (`chat.workspace/messages/m1`): what a drop target receives. Empty for a drag of files alone, which leaves the window.",
"type": "text",
"positional": true,
"data": true
},
{
"name": "title",
"doc": "What the drag's ghost says under the pointer, and what assistive technology reads instead of the resource's address.",
"type": {
"option": "text"
}
},
{
"name": "files",
"doc": "The device files the drag offers another app, by path: a press that travels starts the desktop's own drag of them, so a person can drop them into another window. Without them the drag carries its `resource` on this window's drag bus.",
"type": {
"list": "text"
}
}
],
"parts": [
{
"name": "content",
"doc": "What it draws.",
"accepts": "view",
"default": true
}
],
"events": [
{
"name": "activate",
"doc": "It was picked up and let go without travelling: the content's own press did not take it. Reported so a source that wraps something inert still says what happened.",
"press": true
}
],
"semantics": {
"role": "Group",
"label": "title"
}
},
{
"name": "Drawing",
"doc": "Shapes drawn with the design system over a box of their own.",
"props": [
{
"name": "shapes",
"doc": "The shapes, drawn in order, each over the ones before it.",
"type": {
"list": {
"cases": {
"name": "Shape"
}
}
},
"required": true,
"positional": true
},
{
"name": "meaning",
"doc": "What it means, for assistive technology and agents.",
"type": {
"choice": {
"name": "Meaning",
"cases": [
"progress",
"chart",
"picture",
"decoration"
]
}
},
"required": true
},
{
"name": "label",
"doc": "What it shows, as it is announced: \"Disk 60% full\".",
"type": {
"option": "text"
}
},
{
"name": "value",
"doc": "How far it has got, for a progress drawing: a fraction.",
"type": {
"option": "float"
}
},
{
"name": "width",
"doc": "Its width in logical pixels; a square of its height unless said.",
"type": {
"option": "float"
}
},
{
"name": "height",
"doc": "Its height in logical pixels.",
"type": {
"option": "float"
}
},
{
"name": "motion",
"doc": "How its shapes move to a new reading: at the theme's pace unless said, never for someone who asked for reduced motion.",
"type": {
"choice": {
"name": "Motion",
"cases": [
"standard",
"brisk",
"calm",
"still"
]
}
}
},
{
"name": "theme",
"doc": "The theme its shapes are drawn in, by a shipped theme's id or name (`light`, `paper-dark`, `Tilo light`), so a preview draws a theme other than the running one. Nothing, or a name no shipped theme has, draws them in the running theme.",
"type": {
"option": "text"
}
},
{
"name": "enabled",
"doc": "Whether a press on it runs now.",
"type": "bool"
},
{
"name": "description",
"doc": "Why it cannot be pressed now, where the label does not say (an action whose requirement does not hold): spoken as its description beside its name.",
"type": {
"option": "text"
}
}
],
"events": [
{
"name": "press",
"doc": "The person pressed a shape: carries its index in `shapes`.",
"value": "int"
},
{
"name": "hover",
"doc": "The pointer came over a shape, or left them all: carries the index of the shape under it in `shapes`, or none.",
"value": {
"option": "int"
}
},
{
"name": "pointer",
"doc": "The pointer moved over the drawing, at (x, y): fractions of its box, so the place is the one its shapes are placed at.",
"value": "float",
"at": "float"
},
{
"name": "drag_start",
"doc": "A drag began over the drawing, at (x, y) in fractions of its box.",
"value": "float",
"at": "float"
},
{
"name": "drag",
"doc": "The pointer moved while dragging, to (x, y) in fractions of its box.",
"value": "float",
"at": "float"
},
{
"name": "drag_end",
"doc": "A drag ended at (x, y) in fractions of its box.",
"value": "float",
"at": "float"
},
{
"name": "press_at",
"doc": "A pointer went down over the drawing, at (x, y) in fractions of its box: the point a person pressed, for a drawing they set things on.",
"value": {
"list": "float"
}
},
{
"name": "drag_at",
"doc": "The pointer moved over the drawing while pressed, to (x, y) in fractions of its box.",
"value": {
"list": "float"
}
},
{
"name": "release_at",
"doc": "The pointer came up over the drawing, at (x, y) in fractions of its box.",
"value": {
"list": "float"
}
},
{
"name": "wheel",
"doc": "The wheel turned over the drawing: across it and down it, in logical pixels, positive down and to the end.",
"value": "float",
"at": "float"
},
{
"name": "pinch",
"doc": "A pinch over the drawing: the scale factor the fingers ask for, 1 for none.",
"value": "float"
}
],
"semantics": {
"role": "Image",
"label": "label"
}
},
{
"name": "DropTarget",
"doc": "A view that takes what another view dragged to it: a chat composer takes an attachment, a dock takes a resource. A drag over it draws the toolkit's drop line, and letting go inside it reports what the drag carried.\nIt takes a resource dragged out of any [`ui.DragSource`](super::DragSource), a run's item ([`ui.DragItem`](super::DragItem)), and the device files a source of this same window stands for — a file manager's entry let go on a folder's row, even while the desktop carries it. A file dragged in from another application is not taken here, so it is never silently swallowed (`ui.DropZone` and a window's own `drop` are for those).",
"parts": [
{
"name": "content",
"doc": "What it draws.",
"accepts": "view",
"default": true
}
],
"events": [
{
"name": "drop",
"doc": "A resource was dropped on it: carries the resource the drag carried, as its address, and where inside the target it was let go — its x, then its y, in the target's own logical pixels. The view decides what to do with it — a composer attaches it to the draft, a canvas places it where it was dropped, a shell puts what it holds back there.",
"value": "resource",
"at": {
"list": "int"
}
},
{
"name": "drop_files",
"doc": "Device files a source of this window stood for were dropped on it: carries their paths, and where inside the target they were let go, as `drop` says it. A folder's row moves them into its folder.",
"value": {
"list": "text"
},
"at": {
"list": "int"
}
}
],
"semantics": {
"role": "Group"
}
},
{
"name": "DropZone",
"doc": "Where files go: dragged here, or chosen with the button.",
"props": [
{
"name": "title",
"doc": "What the zone takes, in a sentence: \"Drop files to import\".",
"type": "text",
"required": true,
"positional": true
},
{
"name": "message",
"doc": "A line under the title saying what it accepts: \"PNG or JPEG up to 50 MB\".",
"type": {
"option": "text"
}
},
{
"name": "icon",
"doc": "A glyph for what it takes, a download arrow unless said.",
"type": {
"option": "icon"
}
},
{
"name": "action",
"doc": "The label of a button offering the same route without dragging (\"Choose files\").",
"type": {
"option": "text"
}
}
],
"events": [
{
"name": "drop",
"doc": "Files were dropped: each as a `File` — its name, its media type, its size and where its bytes are — kept by the window, which is what an app reads of it.",
"value": {
"list": "file"
}
},
{
"name": "choose",
"doc": "The action's button was pressed: the view asks for the files its own way.",
"press": true
}
],
"semantics": {
"role": "Group",
"label": "title"
}
},
{
"name": "Dropdown",
"doc": "One of a short list, chosen from a field that opens it: a project, a sort order, a unit.",
"props": [
{
"name": "options",
"doc": "What the list offers, in order.",
"type": {
"list": "text"
}
},
{
"name": "values",
"doc": "What each option stands for, in order, when it is not the text shown: the list offers the words, and a choice reaches the bound value as its id. Empty makes each option its own value.",
"type": {
"list": "text"
},
"data": true
},
{
"name": "placeholder",
"doc": "What the field says while nothing is chosen, and what names it to assistive technology.",
"type": {
"option": "text"
}
},
{
"name": "icon",
"doc": "A glyph before the field: the kind of thing chosen.",
"type": {
"option": "icon"
}
},
{
"name": "caption",
"doc": "A caption above the field.",
"type": {
"option": "text"
}
},
{
"name": "size",
"doc": "How large the field is: `regular` unless said.",
"type": {
"choice": {
"name": "ControlSize",
"cases": [
"small",
"regular",
"large"
]
}
}
},
{
"name": "fill",
"doc": "Take the row's width rather than fitting its content.",
"type": "bool"
},
{
"name": "enabled",
"doc": "Whether it can be chosen from now.",
"type": "bool"
}
],
"events": [
{
"name": "change",
"doc": "A choice was made: carries the chosen option's text.",
"value": "text"
}
],
"bindings": [
{
"name": "value",
"doc": "What is chosen, and where a choice goes.",
"type": "text",
"merge": "register"
}
],
"semantics": {
"role": "ComboBox",
"label": "placeholder"
}
},
{
"name": "EditableLabel",
"doc": "A name typed over where it stands: a document's title, a tab's name, a list item's.",
"props": [
{
"name": "role",
"doc": "What it is set in: `body` unless said.",
"type": {
"choice": {
"name": "TextRole",
"cases": [
"display",
"large_title",
"title",
"heading",
"subheading",
"body",
"label",
"caption",
"reading",
"code"
]
}
}
},
{
"name": "placeholder",
"doc": "What it reads, dimmed, while the value is empty: \"Untitled\".",
"type": {
"option": "text"
}
},
{
"name": "edit_on_click",
"doc": "Begin an edit on a press, as a document's title does; else on a double click.",
"type": "bool"
},
{
"name": "clears_on_blank",
"doc": "A blank entry empties the name.",
"type": "bool"
},
{
"name": "fill",
"doc": "It takes the row's width, eliding a long name.",
"type": "bool"
},
{
"name": "label",
"doc": "Its spoken name, for a label no text beside it names.",
"type": {
"option": "text"
}
},
{
"name": "title",
"doc": "The title of the document the window is for, edited in place as its large title.",
"type": "bool"
}
],
"bindings": [
{
"name": "value",
"doc": "The name it shows, and where an edit of it goes.",
"type": "text",
"merge": "register"
}
],
"semantics": {
"role": "TextInput",
"label": "placeholder"
}
},
{
"name": "EmojiPane",
"doc": "The emoji picker as a card a view places: search, groups, tones and recents, writing each pick into the field the person was typing in. It is modal while it is open.",
"props": [
{
"name": "open",
"doc": "Whether it is open; a closed pane paints nothing and takes no input.",
"type": "bool"
},
{
"name": "label",
"doc": "What assistive technology calls it; the picker's own card name unless said.",
"type": {
"option": "text"
}
}
],
"events": [
{
"name": "pick",
"doc": "An emoji was picked: carries it.",
"value": "text"
},
{
"name": "dismiss",
"doc": "It was closed without a pick (Escape, or a press outside it)."
}
],
"semantics": {
"role": "Dialog",
"label": "label"
}
},
{
"name": "EmptyState",
"doc": "What a place says while it holds nothing: a sentence and at most one action.",
"props": [
{
"name": "title",
"doc": "Why it is empty, in one short sentence: \"No notes yet\".",
"type": "text",
"required": true,
"positional": true
},
{
"name": "message",
"doc": "One more sentence under it, when the first does not say enough.",
"type": {
"option": "text"
}
},
{
"name": "icon",
"doc": "A large glyph above the title: the app's, or the kind of thing that would be here.",
"type": {
"option": "icon"
}
},
{
"name": "action",
"doc": "The label of the one action that fills it: \"New note\".",
"type": {
"option": "text"
}
},
{
"name": "inline",
"doc": "Sit within the content, as a list without rows, rather than fill the window.",
"type": "bool"
},
{
"name": "error",
"doc": "Something failed: the glyph takes the danger colour and the message reads as an error.",
"type": "bool"
}
],
"events": [
{
"name": "act",
"doc": "The action was pressed.",
"press": true
}
],
"semantics": {
"role": "Group",
"label": "title"
}
},
{
"name": "EnumField",
"doc": "A value among an enum's cases: the case it holds, as a chip in the case's glyph and tone, opening the cases to pick another.",
"props": [
{
"name": "label",
"doc": "What the field is for (\"Priority\"), as the app named it: what a screen reader hears before the case itself.",
"type": {
"option": "text"
}
}
],
"parts": [
{
"name": "cases",
"doc": "The cases to pick from, in the enum's order.",
"accepts": {
"component": "EnumOption"
},
"many": true,
"default": true
}
],
"bindings": [
{
"name": "value",
"doc": "The case it holds, by the case's name, and where a picked case goes.",
"type": "enum",
"merge": "register"
}
],
"semantics": {
"role": "Button",
"label": "label"
}
},
{
"name": "Fullscreen",
"doc": "A view shown filling the audience's screen while it is presented.",
"props": [
{
"name": "name",
"doc": "What it is, for assistive technology and agents.",
"type": {
"option": "text"
}
},
{
"name": "showing",
"doc": "The view is presented: the window fills the screen until it is not.",
"type": "bool",
"required": true
},
{
"name": "screen",
"doc": "Which screen it fills: the audience's, unless said.",
"type": {
"choice": {
"name": "Screen",
"cases": [
"auto",
"largest",
"primary",
"primary_external"
]
}
}
}
],
"parts": [
{
"name": "body",
"doc": "The view it presents.",
"accepts": "view",
"default": true
}
],
"events": [
{
"name": "exit",
"doc": "The person pressed the way out: the view stops presenting what it shows. The control that reports it, \"Exit full screen\", is drawn while the view is presented; a view leaves it unbound when the system alone ends the presentation."
}
],
"semantics": {
"role": "Group",
"label": "name",
"not_in_gallery": "presenting it fills the audience's screen with the view it shows, over the window the gallery is read in, so a gallery page cannot show it without taking that window over"
}
},
{
"name": "FunnelChart",
"doc": "How many reach each stage of a sequence: the steps of a sign-up, a checkout, a build. Stages narrow as fewer arrive, each with the share of the one before it, or widen as a pyramid; each takes the next colour of the theme's palette.",
"props": [
{
"name": "stages",
"doc": "The stages from the first to the last: `.stage(label: \"Visited\", value: 1200.0)`.",
"type": {
"list": {
"cases": {
"name": "Stages"
}
}
},
"required": true,
"positional": true
},
{
"name": "title",
"doc": "What it shows, at its head and as assistive technology announces it.",
"type": {
"option": "text"
}
},
{
"name": "direction",
"doc": "How the stages stand: `funnel` narrowing by how many reach each unless said, `pyramid` widening.",
"type": {
"option": {
"choice": {
"name": "FunnelDirection",
"cases": [
"funnel",
"pyramid"
]
}
}
}
}
],
"semantics": {
"role": "Image",
"label": "title"
}
},
{
"name": "BarGauge",
"doc": "A labelled level as a bar: a disk's use, a quota, a battery.",
"props": [
{
"name": "value",
"doc": "How full it is, from 0 to 1.",
"type": "float",
"required": true,
"positional": true
},
{
"name": "label",
"doc": "What it measures: \"Storage\", \"Memory\".",
"type": {
"option": "text"
}
},
{
"name": "readout",
"doc": "The reading over the track's end: \"412 GB of 512 GB\".",
"type": {
"option": "text"
}
},
{
"name": "neutral",
"doc": "A share with no status (storage by kind, a quota not yet full): the plain fill, never a status colour.",
"type": "bool"
},
{
"name": "warning",
"doc": "Where the fill turns warning, from 0 to 1: 0.6 unless said.",
"type": {
"option": "float"
}
},
{
"name": "danger",
"doc": "Where the fill turns danger, from 0 to 1: 0.85 unless said.",
"type": {
"option": "float"
}
},
{
"name": "compact",
"doc": "Smaller label and readout, for a dense grid of gauges.",
"type": "bool"
}
],
"semantics": {
"role": "ProgressBar",
"label": "label"
}
},
{
"name": "ProgressRing",
"doc": "How full something is, as a ring: a countdown, a download, the one hero reading of a screen (a speed test).",
"props": [
{
"name": "value",
"doc": "How full it is, from 0 to 1.",
"type": "float",
"required": true,
"positional": true
},
{
"name": "readout",
"doc": "The readout inside the ring: \"42%\", \"23\".",
"type": {
"option": "text"
}
},
{
"name": "caption",
"doc": "What the readout measures, under it: \"seconds\", \"downloaded\".",
"type": {
"option": "text"
}
},
{
"name": "size",
"doc": "How large it is: `regular` unless said, `small` inline beside text without a readout, `large` for the one hero reading of a screen.",
"type": {
"option": {
"choice": {
"name": "ProgressRingSize",
"cases": [
"small",
"regular",
"large"
]
}
}
}
},
{
"name": "tone",
"doc": "A status the fill means: a failed transfer stays danger.",
"type": {
"option": {
"choice": {
"name": "Tone",
"cases": [
"neutral",
"success",
"warning",
"danger",
"info"
]
}
}
}
},
{
"name": "level",
"doc": "A measured level rather than progress: the fill turns warning, then danger, as it fills.",
"type": "bool"
}
],
"semantics": {
"role": "ProgressBar",
"label": "caption"
}
},
{
"name": "GraphCanvas",
"doc": "Nodes that are views of their own, placed where each says (or in rows when none says), and the connections between them drawn under them: a pipeline, a flow, the parts of a system.",
"props": [
{
"name": "title",
"doc": "What the graph is called: shown over it, as every chart's title is, and its name for assistive technology.",
"type": {
"option": "text"
}
},
{
"name": "connections",
"doc": "The connections drawn between nodes: `.connection(from: \"fetch\", to: \"build\")`, each end a node's id or the test id of a control inside one.",
"type": {
"list": {
"cases": {
"name": "Connection"
}
}
}
},
{
"name": "columns",
"doc": "How many nodes stand side by side when the nodes give no places: 3 unless said.",
"type": {
"option": "int"
}
},
{
"name": "column_width",
"doc": "How wide each node is when the nodes give no places, in logical pixels: 200 unless said.",
"type": {
"option": "float"
}
}
],
"parts": [
{
"name": "nodes",
"doc": "The nodes, in order.",
"accepts": {
"component": "GraphNode"
},
"many": true,
"default": true
}
],
"semantics": {
"role": "Group",
"label": "title"
}
},
{
"name": "Heatmap",
"doc": "How a value varies across two axes at once: a week by weekday and hour, a year by month and region. Each cell's colour places it between the lowest and the highest value in the theme's ramp; pointing at it reads its value.",
"props": [
{
"name": "cells",
"doc": "Each cell, by the row and column it lies at: `.cell(row: \"Monday\", column: \"9h\", value: 12.0)`.",
"type": {
"list": {
"cases": {
"name": "Cells"
}
}
},
"required": true,
"positional": true
},
{
"name": "rows",
"doc": "The rows from top to bottom.",
"type": {
"list": "text"
},
"required": true
},
{
"name": "columns",
"doc": "The columns from left to right.",
"type": {
"list": "text"
},
"required": true
},
{
"name": "title",
"doc": "What it shows, at its head and as assistive technology announces it.",
"type": {
"option": "text"
}
}
],
"semantics": {
"role": "Image",
"label": "title"
}
},
{
"name": "HexGrid",
"doc": "Bytes as a dense grid: an offset down the side, hexadecimal pairs and the same bytes as text across, with the cursor, the selection and a search's matches drawn over them.",
"props": [
{
"name": "rows",
"doc": "The rows shown, each its bytes as hexadecimal pairs without spaces (`\"00ff2a\"`).",
"type": {
"list": "text"
},
"required": true,
"positional": true
},
{
"name": "changed",
"doc": "For each row, a `\"0\"` or `\"1\"` for each byte: whether it differs from what the file holds where it was read.",
"type": {
"list": "text"
}
},
{
"name": "total",
"doc": "The rows the file has.",
"type": "int"
},
{
"name": "first",
"doc": "The row `rows` starts at, counted from 0.",
"type": "int"
},
{
"name": "columns",
"doc": "The bytes a row holds: 8 to 64, or 0 for as many as the width holds.",
"type": "int"
},
{
"name": "cursor",
"doc": "The byte the cursor is on.",
"type": {
"option": "int"
}
},
{
"name": "anchor",
"doc": "The other end of the selection: where it is drawn from the cursor.",
"type": {
"option": "int"
}
},
{
"name": "column",
"doc": "The column the keys edit.",
"type": {
"choice": {
"name": "HexColumn",
"cases": [
"hex",
"ascii"
]
}
}
},
{
"name": "matches",
"doc": "The bytes a search found, each as `\"start:end\"`, as one of the grid's own bytes.",
"type": {
"list": "text"
}
},
{
"name": "at_match",
"doc": "The match the cursor is on, by its place in `matches`.",
"type": {
"option": "int"
}
},
{
"name": "label",
"doc": "What the grid shows, as assistive technology announces it: \"bytes.bin, 4096 bytes\".",
"type": {
"option": "text"
}
},
{
"name": "enabled",
"doc": "Whether a press on a byte runs now.",
"type": "bool"
},
{
"name": "description",
"doc": "Why it cannot be pressed now, where the label does not say (an action whose requirement does not hold): spoken as its description beside its name.",
"type": {
"option": "text"
}
}
],
"events": [
{
"name": "press",
"doc": "A byte was pressed: carries its offset, the column pressed, and `\"shift\"` when Shift held, `[\"31\", \"hex\", \"shift\"]`.",
"value": {
"list": "text"
}
},
{
"name": "key",
"doc": "A key was pressed while the grid had the keyboard: carries it as a person's keyboard names it (`\"a\"`, `\"ArrowLeft\"`, `\"Ctrl+S\"`).",
"value": "text"
},
{
"name": "wheel",
"doc": "The wheel or the scroll bar asked to show other rows: carries the rows the first one moves by, down for a positive number.",
"value": "int"
}
],
"semantics": {
"role": "Table",
"label": "label"
}
},
{
"name": "Histogram",
"doc": "Raw observations as a distribution: how many fell in each bin, so a spread is read at a glance. The bars take the theme's first palette colour and the axis is fitted to the data.",
"props": [
{
"name": "samples",
"doc": "The observations, in any order: `samples: [12.0, 18.0, 15.0, 22.0]`.",
"type": {
"list": "float"
},
"required": true,
"positional": true
},
{
"name": "bins",
"doc": "How many bins the range is cut into; twelve unless said.",
"type": {
"option": "int"
}
},
{
"name": "scale",
"doc": "What a bin reads: its `count` unless said, a `probability`, or a `density`.",
"type": {
"option": {
"choice": {
"name": "HistogramScale",
"cases": [
"count",
"probability",
"density"
]
}
}
}
},
{
"name": "title",
"doc": "What it shows, at its head and as assistive technology announces it.",
"type": {
"option": "text"
}
}
],
"semantics": {
"role": "Image",
"label": "title"
}
},
{
"name": "Icon",
"doc": "One glyph from the icon set, in the theme's ink.",
"props": [
{
"name": "icon",
"doc": "The glyph.",
"type": "icon",
"required": true,
"positional": true
},
{
"name": "size",
"doc": "How large it is: `regular` unless said, `small` beside a caption, `large` beside a title.",
"type": {
"option": {
"choice": {
"name": "IconSize",
"cases": [
"small",
"regular",
"large"
]
}
}
}
},
{
"name": "secondary",
"doc": "Recede beside its label, in secondary ink.",
"type": "bool"
},
{
"name": "accent",
"doc": "Take the accent's ink, for the one glyph that marks what is chosen.",
"type": "bool"
},
{
"name": "tone",
"doc": "A status the glyph means, in that status's colour: a passed check, a warning sign.",
"type": {
"option": {
"choice": {
"name": "Tone",
"cases": [
"neutral",
"success",
"warning",
"danger",
"info"
]
}
}
}
},
{
"name": "description",
"doc": "What the glyph means, where it stands without words beside it.",
"type": {
"option": "text"
}
}
],
"semantics": {
"role": "Image"
}
},
{
"name": "Image",
"doc": "A picture: artwork, a photo, a cover, read from its address.",
"props": [
{
"name": "src",
"doc": "Where the picture's bytes are: a content address (`tilo-blob://<hash>`) or a URL.",
"type": "text",
"required": true,
"positional": true,
"data": true
},
{
"name": "alt",
"doc": "What the picture shows, as assistive technology announces it; without one it is decorative.",
"type": {
"option": "text"
},
"required": true
},
{
"name": "fit",
"doc": "How it fills its box: `contain`, `cover` or `fill`.",
"type": {
"option": {
"choice": {
"name": "ImageFit",
"cases": [
"contain",
"cover",
"fill"
]
}
}
}
}
],
"semantics": {
"role": "Image",
"label": "alt"
}
},
{
"name": "ImageCropEditor",
"doc": "A picture with a crop its four corners set (a scanned page, a photo to trim): drag a corner to move it, or an edge's arrow keys, and it reports the crop each time it changes.",
"props": [
{
"name": "image",
"doc": "The picture to crop.",
"type": "picture",
"required": true,
"positional": true
},
{
"name": "left",
"doc": "The left crop edge, from 0 (the picture's left) to 1.",
"type": "float",
"required": true
},
{
"name": "top",
"doc": "The top crop edge, from 0 (the picture's top) to 1.",
"type": "float",
"required": true
},
{
"name": "right",
"doc": "The right crop edge, to 1 at the picture's right.",
"type": "float",
"required": true
},
{
"name": "bottom",
"doc": "The bottom crop edge, to 1 at the picture's bottom.",
"type": "float",
"required": true
},
{
"name": "aspect",
"doc": "The box's shape before the picture is here (its width over its height).",
"type": {
"option": "float"
}
}
],
"events": [
{
"name": "change",
"doc": "The crop changed: carries its edges, left, top, right, bottom, each `0..=1`.",
"value": {
"list": "float"
}
}
],
"semantics": {
"role": "Group"
}
},
{
"name": "ImageViewer",
"doc": "A picture to look at closely: scroll to zoom at the pointer, drag to pan, and a reset to the whole picture.",
"props": [
{
"name": "image",
"doc": "The picture to show.",
"type": "picture",
"required": true,
"positional": true
},
{
"name": "alt",
"doc": "What the picture is, as assistive technology announces it.",
"type": {
"option": "text"
},
"required": true
},
{
"name": "aspect",
"doc": "The box's shape: its width over its height, which it stands at before the picture is here.",
"type": {
"option": "float"
}
},
{
"name": "zoom",
"doc": "How far the picture is zoomed, 1 being the whole picture: what a view's own zoom controls set. The person's scroll and drag change it too, within the picture, and the view keeps the value it shows.",
"type": {
"option": "float"
}
}
],
"semantics": {
"role": "Image",
"label": "alt"
}
},
{
"name": "InputHint",
"doc": "The keys of a shortcut as drawn keycaps, in the person's own keyboard legends.",
"props": [
{
"name": "keys",
"doc": "The keys of the chord, modifiers first: `[\"Ctrl\", \"Shift\", \"P\"]`.",
"type": {
"list": "text"
},
"required": true,
"positional": true
}
],
"semantics": {
"role": "StaticText"
}
},
{
"name": "Labelled",
"doc": "A control a view composed of its own parts (a chooser, a field holding parts of its own), named by the caption the view places beside it: a screen reader and an agent reach it by the words the person reads there. A control that names itself keeps its own name.",
"props": [
{
"name": "label",
"doc": "The caption the view shows beside the control, which names it.",
"type": "text",
"positional": true
},
{
"name": "description",
"doc": "A line that explains the control, read after its name.",
"type": {
"option": "text"
}
}
],
"parts": [
{
"name": "content",
"doc": "The control it names.",
"accepts": "view",
"default": true
}
],
"semantics": {
"role": "Group",
"label": "label"
}
},
{
"name": "LevelMeter",
"doc": "How loud an audio input is right now, as a bar that follows the sound and keeps a falling peak: the component opens the device's meter itself while it runs.",
"props": [
{
"name": "source",
"doc": "The audio device's name, as the sound resource publishes it (the node name).",
"type": "text",
"required": true,
"data": true
},
{
"name": "output",
"doc": "Whether the source is a sink to meter (the volume a speaker plays) rather than a microphone to read.",
"type": "bool"
},
{
"name": "running",
"doc": "Whether the meter is being read now: it opens only while this is true.",
"type": "bool"
},
{
"name": "label",
"doc": "Its spoken name.",
"type": {
"option": "text"
}
}
],
"semantics": {
"role": "ProgressBar",
"label": "label"
}
},
{
"name": "Link",
"doc": "A hyperlink: primary ink with an underline, opening what it names when pressed.",
"props": [
{
"name": "url",
"doc": "The address it opens (usually also what it says).",
"type": "text",
"required": true,
"positional": true,
"data": true
},
{
"name": "label",
"doc": "What it shows, when that is not the address: \"The docs\".",
"type": {
"option": "text"
}
},
{
"name": "item",
"doc": "The resource it goes to: activating it opens the resource.",
"type": {
"option": "resource"
}
},
{
"name": "role",
"doc": "What it is set in: `body` unless said.",
"type": {
"choice": {
"name": "TextRole",
"cases": [
"display",
"large_title",
"title",
"heading",
"subheading",
"body",
"label",
"caption",
"reading",
"code"
]
}
}
}
],
"events": [
{
"name": "activate",
"doc": "It was pressed: what pressing it does, instead of opening its address."
}
],
"semantics": {
"role": "Link",
"label": "label",
"presents": "item"
}
},
{
"name": "ListRow",
"doc": "A row of a list: what an item is, in one line, with the start of its content under it and a quiet fact on its trailing edge.",
"props": [
{
"name": "title",
"doc": "What the item is: its title. A row that names none shows its item's.",
"type": "text",
"positional": true
},
{
"name": "prefix",
"doc": "A quiet word before the title, on the same line and in the weaker ink: where an item came from, what it answers.",
"type": {
"option": "text"
}
},
{
"name": "item",
"doc": "The resource the row shows, which activating the row opens.",
"type": {
"option": "resource"
}
},
{
"name": "edits",
"doc": "The field its title shows, by the address a field bound to it is named by: the item's id and the field's, as an action on it is addressed. An agent's rename there is drawn on the title, as on the field that edits it.",
"type": {
"option": "text"
}
},
{
"name": "secondary",
"doc": "The line under the title: the start of the item's content, the last message.",
"type": {
"option": "text"
}
},
{
"name": "note",
"doc": "A line of the row's own under its text: what waits on the item and is not its content, as a proposal about it reads (\"Suggested: move this to the end\").",
"type": {
"option": "text"
}
},
{
"name": "description",
"doc": "What assistive technology says after the row's name, beyond the lines the row draws: what the row shows of what it names, for a reader who cannot see it. A row that names one says its secondary line here instead, so nothing is said twice.",
"type": {
"option": "text"
}
},
{
"name": "meta",
"doc": "When it happened or is due: the first fact of the row's facts column.",
"type": {
"option": "text"
}
},
{
"name": "meta_tone",
"doc": "The tone the trailing fact reads in, where the item it states has one: a day gone by is overdue.",
"type": {
"choice": {
"name": "Tone",
"cases": [
"neutral",
"success",
"warning",
"danger",
"info"
]
}
}
},
{
"name": "value",
"doc": "The item's figure among its facts, as a setting shows it.",
"type": {
"option": "text"
}
},
{
"name": "badge",
"doc": "A short code in the leading column: a method, a kind.",
"type": {
"option": "text"
}
},
{
"name": "mark",
"doc": "A mark on the row's edge, after every other fact: pinned, starred, an item's priority.",
"type": {
"option": "icon"
}
},
{
"name": "tone",
"doc": "The tone the mark and the row's checkbox ring read in: the item's priority, a theme role rather than a colour.",
"type": {
"choice": {
"name": "Tone",
"cases": [
"neutral",
"success",
"warning",
"danger",
"info"
]
}
}
},
{
"name": "icon",
"doc": "A glyph in the leading column: what kind of item it is.",
"type": {
"option": "icon"
}
},
{
"name": "selected",
"doc": "Whether the row is selected in its list.",
"type": "bool"
},
{
"name": "motion",
"doc": "The pace the row's own motion plays at: its mark coming and going, and the row arriving, leaving and changing places in its list.",
"type": {
"option": {
"choice": {
"name": "Motion",
"cases": [
"standard",
"brisk",
"calm",
"still"
]
}
}
}
},
{
"name": "dense",
"doc": "The row stands dense: one quiet line at the caption's size with the small glyph, as tall as that line and its inset, for a reference under content rather than a list of items.",
"type": "bool"
},
{
"name": "quiet",
"doc": "The row reads as subordinate to the rows around it: its title in the weaker ink, as an outline's quieter branch does.",
"type": "bool"
}
],
"parts": [
{
"name": "avatar",
"doc": "Who the item is: their face among its facts, between when it is due and how far it has got.",
"accepts": {
"component": "Avatar"
}
},
{
"name": "trailing",
"doc": "A control on the trailing edge, which moves under the text when the row is narrow.",
"accepts": "view"
}
],
"events": [
{
"name": "check",
"doc": "The checkbox was pressed: what a check is, in the app's words.",
"press": true
},
{
"name": "activate",
"doc": "The row was activated (a click, Enter, an assistive technology): open what it shows.",
"press": true
}
],
"bindings": [
{
"name": "checkbox",
"doc": "A checkbox in the leading column, bound to whether the item is done.",
"type": "bool",
"merge": "register"
}
],
"semantics": {
"role": "ListItem",
"label": "title",
"presents": "item"
}
},
{
"name": "ControlRow",
"doc": "A selectable row of a short list whose items carry their own controls.",
"props": [
{
"name": "label",
"doc": "Its spoken name.",
"type": {
"option": "text"
}
},
{
"name": "selected",
"doc": "Whether it is the chosen one of its list.",
"type": "bool"
}
],
"parts": [
{
"name": "children",
"doc": "What the row holds, in order: its thumbnail, its name, and the controls its item has.",
"accepts": "view",
"many": true,
"default": true
}
],
"events": [
{
"name": "choose",
"doc": "It was chosen: a press its controls did not take."
}
],
"semantics": {
"role": "ListItem",
"label": "label"
}
},
{
"name": "Map",
"doc": "Places at points on a pannable, zoomable surface, each a view of its own.",
"props": [
{
"name": "name",
"doc": "What the map is, for assistive technology.",
"type": {
"option": "text"
}
},
{
"name": "ground",
"doc": "Whether it is a desktop: the windows it holds stand on the desktop's ground ([`SurfaceLevel::Ground`](crate::widget::primitives::SurfaceLevel)), not on the content colour of the window the map is in.",
"type": "bool"
},
{
"name": "world",
"doc": "Whether it is a map of the world: a pin stands centred on the place it names and keeps the size the view gave it on screen at every zoom, and the camera draws back until the whole world fits.",
"type": "bool"
},
{
"name": "basemap",
"doc": "Where a map of the world's imagery comes from: a tile address with `%z`, `%x` and `%y` standing for the tile's zoom and its column and row (`https://tile.openstreetmap.org/%z/%x/%y.png`). The tiles draw under everything else, scaled with the camera, at the zoom that shows them sharpest; without one the map draws its ground, and a map of the world a faint grid at the places it names. A host serves the pictures (`crate::pictures::set_remote_fetcher`).",
"type": {
"option": "text"
}
},
{
"name": "outline",
"doc": "A rectangle the view points at, in canvas pixels (`x`, `y`, width, height), drawn as the light outline a drag across the canvas draws: the rectangle the person dragged, kept while they say what fills it.",
"type": {
"list": "int"
}
},
{
"name": "hint",
"doc": "What the empty map says once, quietly, at the middle of what it shows: what a person does on it (\"Click anywhere and say what you want\"). Drawn only while it holds no pin, and read to assistive technology as the map's description.",
"type": {
"option": "text"
}
},
{
"name": "latitude",
"doc": "The latitude the map is centred on, with `longitude`: the place at its middle when the view sets it, so a map of places opens on a place. `None` leaves it a canvas.",
"type": {
"option": "float"
}
},
{
"name": "longitude",
"doc": "The longitude the map is centred on, with `latitude`.",
"type": {
"option": "float"
}
},
{
"name": "zoom",
"doc": "The zoom the map opens at, about its centre (`latitude`, `longitude`).",
"type": {
"option": "float"
}
},
{
"name": "enabled",
"doc": "Whether a press on its empty surface runs now.",
"type": "bool"
},
{
"name": "description",
"doc": "Why it cannot be pressed now, where the name does not say (an action whose requirement does not hold): spoken as its description beside its name.",
"type": {
"option": "text"
}
}
],
"parts": [
{
"name": "pins",
"doc": "The pins, in the order the map draws them (the last on top).",
"accepts": {
"component": "MapPin"
},
"many": true,
"default": true
},
{
"name": "tracks",
"doc": "The lines drawn across the map under its markers and pins: a route, the way one leg of a journey goes.",
"accepts": {
"component": "MapTrack"
},
"many": true
},
{
"name": "markers",
"doc": "What stands on the map at a place, drawn as a marker of its own size on screen whatever the zoom: where a search found something, the device's own place. Pointing at one reports it (`marker`); the view opens what it is.",
"accepts": {
"component": "MapMarker"
},
"many": true
}
],
"events": [
{
"name": "drop",
"doc": "A resource was dragged onto the map and let go: carries the resource the drag carried, as its address, and where it was let go — its canvas x, then its canvas y. The view decides what to do with it; the shell's canvas places it there.",
"value": "resource",
"at": {
"list": "int"
}
},
{
"name": "press",
"doc": "The pointer pressed on the map's empty surface — not on a pin — and let go there, having travelled no further than a click: carries the canvas point under the press, its x then its y, kept apart from a drag and a middle drag. What it reports is where the press landed at the camera the map looks with, so the point is right at any pan or zoom; the view decides what stands there (the shell's canvas opens its caret at it).",
"value": {
"list": "int"
}
},
{
"name": "frame",
"doc": "A left drag across the map's empty surface, let go after travelling: carries the dragged rectangle in canvas pixels, its x, its y, its width and its height. The rectangle is drawn as a light outline while the drag lasts (the theme's focus colour, never a colour of its own), and the view lays what it answers into that rectangle.",
"value": {
"list": "int"
}
},
{
"name": "context",
"doc": "The pointer's right button pressed on the map: carries the key of the pin pin_places under it — empty text where the press landed on the map's own empty surface — and the canvas point under the pointer, its x then its y. What the view does with it is its own: the shell's canvas opens the pointed place's menu, or the canvas's own for free space (`canvas.md` §1, §6).",
"value": "text",
"at": {
"list": "int"
}
},
{
"name": "resize",
"doc": "A place's trailing edge, bottom edge or corner was dragged and let go: carries the key of the pin it resized and its new size in canvas pixels, its width then its height. Its corner stays where it stood; the view gives the place that size.",
"value": "text",
"at": {
"list": "int"
}
},
{
"name": "seen",
"doc": "The person pointed on the map's free space (a click, a dragged rectangle, a right press): carries the part of the canvas they see as they point, in canvas pixels, its x, its y, its width and its height. It is reported before the pointing itself (`press`, `frame`, `context`), so what answers it can stand in free room where they look (canvas.md §7, \"Everything stays in view\").",
"value": {
"list": "int"
}
},
{
"name": "drawn",
"doc": "A hugging pin's view came to a height of its own and the pin is laid out at it: carries the pin's key and its drawn height in canvas pixels. Reported once each time that height changes, never every frame, so a view that reads it as free area on the canvas (`canvas.md` §1, §7) learns what the pin takes without a report a frame.",
"value": "text",
"at": {
"list": "int"
}
},
{
"name": "rest",
"doc": "The camera came to rest where the person left it: carries the place at its middle as its latitude then its longitude, the zoom it shows, and what it shows at its edges as its northern, southern, eastern and western degrees, in that order. Reported once each time a pan, pinch, wheel or key move ends, and never for a move the view itself set, so a view that saves what the person sees knows where they are looking.",
"value": {
"list": "float"
}
},
{
"name": "fault",
"doc": "The imagery the map shows cannot be loaded: carries how many of the tiles it shows have failed and how many it shows, so the view can say so in words while nothing draws (offline, or the tile server refusing). Reported when either number changes, and again with nothing failed once imagery loads.",
"value": {
"list": "int"
}
},
{
"name": "at",
"doc": "The pointer pressed the map's empty surface and let go there, a click: carries the place under it, its latitude then its longitude, for a map centred on a place.",
"value": {
"list": "float"
}
},
{
"name": "marker",
"doc": "The pointer pressed a marker and let go there, a click: carries the name the marker was given (`MapMarker`'s `name`), or its key where it has none. The view opens what the marker is; the map reports nothing of its own for that press.",
"value": "text"
}
],
"semantics": {
"role": "Group",
"label": "name"
}
},
{
"name": "MediaCard",
"doc": "One card: the art (a cover, a thumbnail, a photo) with its title and up to two meta lines under it. A view gives it as a grid's item, on its own, or compact in a band (a pill with the art and the title in one row, `compact`).",
"props": [
{
"name": "item",
"doc": "The resource the card stands for: what a press opens. A card a press runs its own event for stands for nothing.",
"type": {
"option": "resource"
},
"positional": true
},
{
"name": "title",
"doc": "What the card is called, under its art. Without one it is art only (a photo).",
"type": {
"option": "text"
}
},
{
"name": "picture",
"doc": "Its art: a picture by its address, loaded as it arrives.",
"type": {
"option": "picture"
}
},
{
"name": "icon",
"doc": "The icon of a kind of thing, on the neutral tile: a podcast, a folder.",
"type": {
"option": "icon"
}
},
{
"name": "meta",
"doc": "One line under the title (an artist, a channel, an author). Give two for two lines.",
"type": {
"list": "text"
}
},
{
"name": "aspect",
"doc": "The shape of its art, `square` unless said.",
"type": {
"option": {
"choice": {
"name": "MediaAspect",
"cases": [
"square",
"wide",
"portrait",
"circle"
]
}
}
}
},
{
"name": "compact",
"doc": "It stands in a band as a pill rather than as a card: a bar control high, its art at the leading edge and its title beside it. A media session's live view gives this so the shell's bar shows what plays in the bar's own band.",
"type": "bool"
},
{
"name": "selected",
"doc": "Whether it is the selected card.",
"type": "bool"
}
],
"events": [
{
"name": "activate",
"doc": "It was pressed: open what it stands for.",
"press": true
}
],
"semantics": {
"role": "ListItem",
"label": "title",
"presents": "item"
}
},
{
"name": "MediaGrid",
"doc": "Cards in a grid: a library, an album's covers, a shelf of books, a set of channels.",
"props": [
{
"name": "size",
"doc": "How large each card is: how wide a column holds.",
"type": {
"option": {
"choice": {
"name": "MediaSize",
"cases": [
"small",
"regular",
"large"
]
}
}
}
},
{
"name": "justified",
"doc": "The cards are photos at their own shape: justified rows that span the width, rather than equal columns.",
"type": "bool"
}
],
"parts": [
{
"name": "items",
"doc": "The cards, in order: given whole, or built by the host as the grid shows them, so a library of ten thousand photographs costs the cards on screen.",
"accepts": {
"component": "MediaCard"
},
"many": true,
"default": true
}
],
"events": [
{
"name": "select",
"doc": "A range of its cards was taken: carries the cards it stood on, each by the item it shows, in the order they stand. A press with shift takes the cards from the one pressed last to the one pressed now; a press held and dragged over the cards takes the ones it sweeps.",
"value": {
"list": "resource"
}
}
],
"semantics": {
"role": "Grid"
}
},
{
"name": "MediaTransport",
"doc": "What is playing and the controls that steer it, as one band: the art and the song, like and lyrics, shuffle, previous, play/pause, next and repeat over the scrubber, the queue and the volume.",
"props": [
{
"name": "title",
"doc": "The song's name, or what the band says with nothing playing.",
"type": "text",
"required": true
},
{
"name": "subtitle",
"doc": "Who it is by, or why it cannot play.",
"type": {
"option": "text"
}
},
{
"name": "error",
"doc": "The subtitle says why it cannot play: it reads as an error.",
"type": "bool"
},
{
"name": "art",
"doc": "Its cover: a picture by its address, loaded as it arrives.",
"type": {
"option": "picture"
}
},
{
"name": "art_name",
"doc": "The name the placeholder cover takes its initials and colour from (the album).",
"type": {
"option": "text"
}
},
{
"name": "opens",
"doc": "What a press on the art opens (\"Open album\", \"Show lyrics\"), as it is announced.",
"type": {
"option": "text"
}
},
{
"name": "playing",
"doc": "Whether it plays.",
"type": "bool"
},
{
"name": "idle",
"doc": "Nothing can play: every control rests disabled.",
"type": "bool"
},
{
"name": "position",
"doc": "Where it is, in seconds.",
"type": {
"option": "float"
}
},
{
"name": "duration",
"doc": "How long it is, in seconds.",
"type": {
"option": "float"
}
},
{
"name": "volume",
"doc": "The volume, `0..=1`; zero is muted.",
"type": {
"option": "float"
}
},
{
"name": "shuffle",
"doc": "Whether shuffle is on. Without it there is no shuffle control.",
"type": {
"option": "bool"
}
},
{
"name": "repeat",
"doc": "What repeat repeats. Without it there is no repeat control.",
"type": {
"option": {
"choice": {
"name": "TransportRepeat",
"cases": [
"off",
"all",
"one"
]
}
}
}
},
{
"name": "liked",
"doc": "Whether what plays is liked. Without it there is no like control.",
"type": {
"option": "bool"
}
},
{
"name": "lyrics",
"doc": "Whether the lyrics show. Without it there is no lyrics control.",
"type": {
"option": "bool"
}
},
{
"name": "queue",
"doc": "Whether the queue shows. Without it there is no queue control.",
"type": {
"option": "bool"
}
},
{
"name": "source",
"doc": "Where the sound plays from: a file's address or a stream's URL the engine fetches. With one the band plays it and its scrubber follows the sound; without one it only shows what the view declares.",
"type": {
"option": "text"
},
"data": true
}
],
"events": [
{
"name": "act_play_pause",
"doc": "The play/pause control was pressed."
},
{
"name": "act_previous",
"doc": "The previous control was pressed."
},
{
"name": "act_next",
"doc": "The next control was pressed."
},
{
"name": "act_shuffle",
"doc": "Shuffle was toggled."
},
{
"name": "act_repeat",
"doc": "Repeat was toggled."
},
{
"name": "act_like",
"doc": "What plays was liked or unliked."
},
{
"name": "act_mute",
"doc": "The band was muted or unmuted."
},
{
"name": "act_seek",
"doc": "The band was moved to a place in the song: carries `0..=1`.",
"value": "float"
},
{
"name": "act_volume",
"doc": "The volume was set: carries `0..=1`.",
"value": "float"
},
{
"name": "act_lyrics",
"doc": "The lyrics were asked for."
},
{
"name": "act_queue",
"doc": "The queue was asked for."
},
{
"name": "ended",
"doc": "What played reached its end: the app moves on to what comes next."
},
{
"name": "progress",
"doc": "Where playback got to while it played, as a share of its length (`0..=1`): reported on the first five-second step, then once per step, and once more when it stops or ends, so a view remembers the place a song was left at even when nobody moved the playhead.",
"value": "float"
},
{
"name": "length",
"doc": "How long the sound runs, in seconds, once the engine has read it: what a song opened from a file is long, which its name does not say.",
"value": "float"
},
{
"name": "fail",
"doc": "The engine could not play the source: carries what it said, and where in the song it stopped, in seconds. A stream a source serves only partway through stops here, and the app asks the source for a fresh address and continues from that place.",
"value": "text",
"at": "float"
}
],
"semantics": {
"role": "Toolbar",
"label": "title"
}
},
{
"name": "Money",
"doc": "An amount of money in millionths of the currency (`$5`, `$0.42`, `$1,250`), as the toolkit writes money: whole amounts without cents, fractional ones with two places, grouped and marked by the person's number style.",
"props": [
{
"name": "micros",
"doc": "The amount, in millionths of the currency.",
"type": "int",
"required": true,
"positional": true
},
{
"name": "role",
"doc": "What the text is, which sets its size and weight: `body` unless said.",
"type": {
"choice": {
"name": "TextRole",
"cases": [
"display",
"large_title",
"title",
"heading",
"subheading",
"body",
"label",
"caption",
"reading",
"code"
]
}
}
},
{
"name": "secondary",
"doc": "Beside the content it is about, in secondary ink: what a turn cost, under its answer.",
"type": "bool"
}
],
"semantics": {
"role": "Label"
}
},
{
"name": "NavList",
"doc": "A sidebar of places whose choice is reported to the app: choosing one shows it.",
"props": [
{
"name": "title",
"doc": "The heading over the places.",
"type": {
"option": "text"
}
},
{
"name": "selected",
"doc": "The key of the place shown now.",
"type": {
"option": "text"
},
"data": true,
"identity": true
},
{
"name": "rail",
"doc": "A compact rail of icons that fits beside the content at every width.",
"type": "bool"
}
],
"parts": [
{
"name": "items",
"doc": "The places, in order, and sections of them under a heading.",
"accepts": {
"one_of": [
"NavItem",
"NavSection"
]
},
"many": true,
"default": true
}
],
"events": [
{
"name": "select",
"doc": "A place was chosen: its key is the value.",
"value": "text"
},
{
"name": "reorder",
"doc": "A place was dropped on another: carries the place's key and the key it was dropped on, in that order. The app moves its own list; the list keeps no order of its own.",
"value": {
"list": "text"
}
}
],
"semantics": {
"role": "Tree",
"label": "title"
}
},
{
"name": "NavShell",
"doc": "A window's shell: a sidebar of places, an overview list, the content and an inspector side by side while they fit, and one at a time with Back when they do not.",
"props": [
{
"name": "content_kind",
"doc": "What the content is, which sets the narrowest it still works at: `page` unless said.",
"type": {
"choice": {
"name": "ContentKind",
"cases": [
"list",
"reading",
"page",
"grid",
"document",
"canvas"
]
}
}
},
{
"name": "title",
"doc": "The content's title, in its header.",
"type": {
"option": "text"
}
},
{
"name": "content_key",
"doc": "What the content shows, as the app names it (the pane in front, the place opened): when it changes, what the content shows fades in where the one before it stood, on the theme's cross-fade. Nothing when the content is not a thing that changes.",
"type": {
"option": "text"
}
},
{
"name": "count",
"doc": "How many things the content lists, beside its title.",
"type": {
"option": "int"
}
},
{
"name": "overview_title",
"doc": "The overview column's title.",
"type": {
"option": "text"
}
},
{
"name": "overview_count",
"doc": "How many things the overview lists, beside its title.",
"type": {
"option": "int"
}
},
{
"name": "sidebar_title",
"doc": "The sidebar's title: what the places are of, the app's root.",
"type": {
"option": "text"
}
},
{
"name": "can_go_back",
"doc": "Whether the content's Back goes back now (a drill-down the app keeps).",
"type": "bool"
},
{
"name": "nothing_listed",
"doc": "Nothing at all to list: what `content` gives is the window's empty state, in place of the overview, the content and the inspector.",
"type": "bool"
},
{
"name": "sidebar_collapse",
"doc": "How the sidebar stands in a window too narrow to dock it: the shell's own rule (`auto`), a drawer over the content (`drawer`), or a screen of the push stack (`screen`).",
"type": {
"choice": {
"name": "SidebarCollapse",
"cases": [
"auto",
"drawer",
"screen"
]
}
}
},
{
"name": "inspector_collapse",
"doc": "How the inspector stands in a window too narrow to dock it: a sheet up from the window's foot (`sheet`, the default) or a drawer in from its trailing edge (`drawer`).",
"type": {
"choice": {
"name": "InspectorCollapse",
"cases": [
"sheet",
"drawer"
]
}
}
},
{
"name": "sidebar_open",
"doc": "Whether the view asks for the sidebar open (`true`) or closed (`false`). Applied when it changes; the person's own toggle stands until the view asks for another state.",
"type": {
"option": "bool"
}
},
{
"name": "inspector_open",
"doc": "Whether the view asks for the inspector open or closed. Applied when it changes; the person's own toggle stands until the view asks for another state.",
"type": {
"option": "bool"
}
}
],
"parts": [
{
"name": "sidebar_actions",
"doc": "The sidebar's controls in its header: the action that makes what it lists (a \"+\"), and where a person's new thing goes.",
"accepts": "view",
"many": true
},
{
"name": "sidebar",
"doc": "The places of the app: a navigation list.",
"accepts": "view"
},
{
"name": "overview",
"doc": "The list the content is chosen from.",
"accepts": "view"
},
{
"name": "content",
"doc": "What the window is for.",
"accepts": "view",
"default": true
},
{
"name": "inspector",
"doc": "Details of what the content shows, beside it.",
"accepts": "view"
},
{
"name": "actions",
"doc": "The content's actions, in its header.",
"accepts": "view",
"many": true
},
{
"name": "band",
"doc": "The band across the window's foot: what plays, and the controls that steer it, under every column. An app that shows a player puts it here, as the native shell did.",
"accepts": "view"
},
{
"name": "overview_actions",
"doc": "The overview's actions, in its header: what the list's owner offers.",
"accepts": "view",
"many": true
}
],
"events": [
{
"name": "back",
"doc": "The content's Back was pressed."
},
{
"name": "search",
"doc": "The text the window's search holds, narrowing what the frame lists as a chosen place does; empty while the search is closed.",
"value": "text"
},
{
"name": "drop",
"doc": "Files were dropped on the window, anywhere no component of its own took them: each as a `File` — its name, its media type, its size and where its bytes are — kept by the window. What an app takes a dropped document with, wherever on it the person lets go.",
"value": {
"list": "file"
}
}
],
"state": [
{
"name": "pane",
"doc": "The column in front of a narrow window.",
"type": {
"option": {
"choice": {
"name": "NavPane",
"cases": [
"sidebar",
"overview",
"content"
]
}
}
}
}
],
"semantics": {
"role": "Window",
"label": "title"
}
},
{
"name": "NumberInput",
"doc": "A number with a step either side (a page size, a margin, a count), set by typing, its steppers and the arrow keys within its range.",
"props": [
{
"name": "label",
"doc": "The number's spoken name, for a field with no label beside it.",
"type": {
"option": "text"
}
},
{
"name": "min",
"doc": "The smallest it may be.",
"type": {
"option": "float"
}
},
{
"name": "max",
"doc": "The largest it may be.",
"type": {
"option": "float"
}
},
{
"name": "step",
"doc": "How much one press of a stepper adds; 1 unless said.",
"type": {
"option": "float"
}
},
{
"name": "precision",
"doc": "Decimal places it shows: 0 unless said, for a whole number.",
"type": {
"option": "int"
}
},
{
"name": "suffix",
"doc": "A unit after the number, shown and not typed: \"px\", \"%\".",
"type": {
"option": "text"
}
},
{
"name": "compact",
"doc": "Smaller, for a toolbar: bare steppers, no field frame.",
"type": "bool"
},
{
"name": "enabled",
"doc": "Whether it can be changed now.",
"type": "bool"
}
],
"bindings": [
{
"name": "value",
"doc": "The value, and where a change of it goes.",
"type": "float",
"merge": "register"
}
],
"semantics": {
"role": "SpinButton",
"label": "label"
}
},
{
"name": "PagePreview",
"doc": "A page's shape in a print queue, a scan or a picker: a sheet with the lines a page has and \"Page n of m\" under it, showing the shape and never the content.",
"props": [
{
"name": "label",
"doc": "What the page is: its file's name, for assistive technology.",
"type": "text",
"required": true,
"positional": true
},
{
"name": "page",
"doc": "Which page this is, counted from 1 (clamped into the count).",
"type": "int",
"required": true
},
{
"name": "page_count",
"doc": "How many pages the document has.",
"type": "int",
"required": true
}
],
"semantics": {
"role": "Image",
"label": "label"
}
},
{
"name": "PageSidebar",
"doc": "A rail of numbered page thumbnails down a document's side; unless read-only, pages are dragged, copied, moved and added.",
"props": [
{
"name": "aspect",
"doc": "A page's height over its width (`1.414` for A4, `792/612` for US Letter).",
"type": "float",
"required": true
},
{
"name": "count",
"doc": "How many pages the document has.",
"type": "int",
"required": true
},
{
"name": "current",
"doc": "Which page is open, counted from 0.",
"type": "int",
"required": true
},
{
"name": "header",
"doc": "The rail's title above the thumbnails; \"Pages\" in the window's language when unset.",
"type": {
"option": "text"
}
},
{
"name": "add",
"doc": "The label of the button that adds a page at the foot (\"Import…\"); without it there is no add button.",
"type": {
"option": "text"
}
},
{
"name": "panel",
"doc": "The rail paints the document's whole side panel; without it it paints only the thumbnails, on the host's background.",
"type": "bool"
},
{
"name": "pictures",
"doc": "Each page's picture, by address, in page order: what its thumbnail shows. A page with no address, or one whose picture is still loading, keeps its placeholder tile.",
"type": {
"list": "text"
}
}
],
"events": [
{
"name": "select",
"doc": "A page was chosen: its index, counted from 0, is the value.",
"value": "int"
},
{
"name": "reorder",
"doc": "A page was moved: its old index, then its place among the others.",
"value": "int",
"at": "int"
},
{
"name": "duplicate",
"doc": "A page was to be copied: its index is the value.",
"value": "int"
},
{
"name": "delete",
"doc": "A page was to be removed: its index is the value.",
"value": "int"
},
{
"name": "add_page",
"doc": "A page was to be added."
}
],
"semantics": {
"role": "List"
}
},
{
"name": "PageSlide",
"doc": "One page of a stack that a view shows in place, the replaced page leaving as it swaps: a panel opening a deeper page, and Back sliding it away.",
"props": [
{
"name": "level",
"doc": "How deep the page is: 0 the first page, 1 the page it opens.",
"type": "int"
}
],
"parts": [
{
"name": "page",
"doc": "The page it shows.",
"accepts": "view",
"default": true
}
],
"semantics": {
"role": "Group"
}
},
{
"name": "PaintSurface",
"doc": "A surface a person paints on: the artwork beneath, the stroke under the hand previewed over it.",
"props": [
{
"name": "picture",
"doc": "The artwork as it stands, its layers composited: the picture under the paint.",
"type": {
"option": "picture"
}
},
{
"name": "width",
"doc": "The artwork's width in its own units.",
"type": "float",
"required": true
},
{
"name": "height",
"doc": "The artwork's height in its own units.",
"type": "float",
"required": true
},
{
"name": "brush",
"doc": "The brush that lays a stroke; the round ink brush when none is named.",
"type": {
"option": "text"
}
},
{
"name": "size",
"doc": "The brush's width in artwork units.",
"type": {
"option": "float"
}
},
{
"name": "colour",
"doc": "The colour a stroke lays, `#rrggbb` or `#rrggbbaa`; ink when none is named.",
"type": {
"option": "text"
}
},
{
"name": "zoom",
"doc": "How far the view is zoomed in; 1 fits the artwork in the surface.",
"type": {
"option": "float"
}
},
{
"name": "pan",
"doc": "The artwork unit at the surface's top left: where the view looks.",
"type": {
"option": {
"list": "float"
}
}
},
{
"name": "overlay",
"doc": "A picture laid over the artwork, such as a comparison's changed region.",
"type": {
"option": "picture"
}
},
{
"name": "overlay_rect",
"doc": "The frame the overlay fills, `[x, y, width, height]` in artwork units; the whole artwork when absent.",
"type": {
"option": {
"list": "float"
}
}
},
{
"name": "overlay_opacity",
"doc": "How strongly the overlay shows over the artwork, 0 to 1 (default 1).",
"type": {
"option": "float"
}
},
{
"name": "label",
"doc": "What it shows, as assistive technology announces it.",
"type": {
"option": "text"
}
}
],
"events": [
{
"name": "stroke_start",
"doc": "A stroke began, at `[x, y, pressure]` in the artwork's units.",
"value": {
"list": "float"
}
},
{
"name": "stroke",
"doc": "A stroke went on, at `[x, y, pressure]` in the artwork's units.",
"value": {
"list": "float"
}
},
{
"name": "stroke_end",
"doc": "A stroke ended where the hand lifted, at `[x, y, pressure]`.",
"value": {
"list": "float"
}
},
{
"name": "hover",
"doc": "The pointer moved over the surface, at `[x, y]` in the artwork's units.",
"value": {
"list": "float"
}
},
{
"name": "wheel",
"doc": "The wheel turned over the surface: `[across, down]` in logical pixels.",
"value": {
"list": "float"
}
},
{
"name": "pinch",
"doc": "A pinch over the surface: the scale factor the fingers ask for, 1 for none.",
"value": "float"
},
{
"name": "panned",
"doc": "A middle-button drag panned the view by `[dx, dy]` artwork units.",
"value": {
"list": "float"
}
}
],
"semantics": {
"role": "Image",
"label": "label"
}
},
{
"name": "PersonField",
"doc": "A form's person, shown as an avatar and name and picked from the workspace's members and agents; \"Me\" is the person the view is shown to, \"No one\" clears it.",
"props": [
{
"name": "people",
"doc": "The people offered after \"Me\" and \"No one\": the workspace's members and agents.",
"type": {
"option": {
"list": "actor"
}
}
},
{
"name": "me",
"doc": "The person the view is shown to: the list's \"Me\".",
"type": {
"option": "actor"
}
}
],
"bindings": [
{
"name": "value",
"doc": "The binding a pick writes: the person picked, empty for nobody.",
"type": "actor",
"merge": "register"
}
],
"semantics": {
"role": "ComboBox"
}
},
{
"name": "PictureChoice",
"doc": "A choice among pictures whose meaning is visual (a text size, a pointer size, a colour filter), each tile showing its picture over its name, the chosen one edged.",
"props": [
{
"name": "selected",
"doc": "Which tile is chosen, counted from 0: none until a person chooses one.",
"type": {
"option": "int"
}
},
{
"name": "label",
"doc": "Its spoken name.",
"type": {
"option": "text"
}
},
{
"name": "enabled",
"doc": "Whether it can be chosen from now.",
"type": "bool"
}
],
"parts": [
{
"name": "options",
"doc": "The tiles, in order.",
"accepts": {
"component": "PictureOption"
},
"many": true,
"default": true
}
],
"events": [
{
"name": "change",
"doc": "A tile was chosen: its index, counted from 0, is the value.",
"value": "int"
}
],
"semantics": {
"role": "Group",
"label": "label"
}
},
{
"name": "PieChart",
"doc": "The parts of one whole as the slices of a pie: how a total divides. Each slice takes the next colour of the theme's palette and is named in a legend with its share.",
"props": [
{
"name": "slices",
"doc": "The parts, in order: `.slice(label: \"Open\", value: 12.0)`.",
"type": {
"list": {
"cases": {
"name": "Slice"
}
}
},
"required": true,
"positional": true
},
{
"name": "title",
"doc": "What it shows, as assistive technology announces it.",
"type": {
"option": "text"
}
},
{
"name": "ring",
"doc": "A ring rather than a full pie, with `total` read at its centre.",
"type": "bool"
},
{
"name": "total",
"doc": "What a ring reads at its centre: the whole, as it reads (\"128 issues\").",
"type": {
"option": "text"
}
},
{
"name": "unit",
"doc": "What a part's value counts, written after it where a person pointing at it reads it (\"GB\", \"h\").",
"type": {
"option": "text"
}
}
],
"semantics": {
"role": "Image",
"label": "title"
}
},
{
"name": "PolarAreaChart",
"doc": "A cycle's magnitudes around a circle: months of the year, hours of the day, weekdays. Every direction takes the same angle and its length carries the value, so seasonal shape is read at a glance; each takes the next colour of the theme's palette.",
"props": [
{
"name": "areas",
"doc": "The directions in order, clockwise from the top: `.area(label: \"January\", value: 12.0)`.",
"type": {
"list": {
"cases": {
"name": "Areas"
}
}
},
"required": true,
"positional": true
},
{
"name": "title",
"doc": "What it shows, at its head and as assistive technology announces it.",
"type": {
"option": "text"
}
}
],
"semantics": {
"role": "Image",
"label": "title"
}
},
{
"name": "BarChip",
"doc": "A bar control for people: their faces, a label and a press, with faces opening who is here and an invite opening the host's invite flow.",
"props": [
{
"name": "name",
"doc": "The chip's name for assistive technology, and its tooltip when it shows only a glyph.",
"type": "text",
"required": true,
"positional": true
},
{
"name": "label",
"doc": "The words beside the faces: \"Editing\", \"Invite\".",
"type": {
"option": "text"
}
},
{
"name": "icon",
"doc": "A glyph before the faces: a watch, an invitation.",
"type": {
"option": "icon"
}
},
{
"name": "trailing",
"doc": "A trailing glyph: the chevron of a chip that opens a panel.",
"type": {
"option": "icon"
}
},
{
"name": "who",
"doc": "Who it shows, in order: their faces, then a count for everyone past them.",
"type": {
"list": "actor"
}
},
{
"name": "open",
"doc": "The chip's panel is open: the chip is lifted as a whole.",
"type": "bool"
},
{
"name": "focused",
"doc": "Keyboard focus; the ring shows only while focus is visible.",
"type": "bool"
},
{
"name": "label_width",
"doc": "The most the label may grow to before it elides.",
"type": {
"option": "float"
}
},
{
"name": "tone",
"doc": "A person whose presence colour washes the chip's body: who the state it says is about.",
"type": {
"option": "actor"
}
},
{
"name": "enabled",
"doc": "Whether it can be pressed now.",
"type": "bool"
},
{
"name": "description",
"doc": "Why it cannot be pressed now, where the name does not say (an action whose requirement does not hold): spoken as its description beside the name, and shown on hover.",
"type": {
"option": "text"
}
}
],
"events": [
{
"name": "press",
"doc": "A press: the chip's action.",
"press": true
}
],
"semantics": {
"role": "Button",
"label": "name"
}
},
{
"name": "DisclosureRow",
"doc": "A row whose body opens under it (a device's details, a run's log, a setting's options), its chevron turning as the rows below move down; a press, Enter or Space opens and closes it.",
"props": [
{
"name": "title",
"doc": "What the row is, on its first line.",
"type": "text",
"required": true,
"positional": true
},
{
"name": "secondary",
"doc": "A line under the title, in secondary ink.",
"type": {
"option": "text"
}
},
{
"name": "side",
"doc": "A quiet line at the far end of the title's line: who did it and when.",
"type": {
"option": "text"
}
},
{
"name": "icon",
"doc": "A glyph before the title: the kind of thing it is.",
"type": {
"option": "icon"
}
},
{
"name": "who",
"doc": "A person before the title, as an avatar: who did the work the row shows.",
"type": {
"option": "actor"
}
},
{
"name": "signal",
"doc": "How strong a radio network's signal is, before the title, for a row that is a network.",
"type": {
"option": {
"choice": {
"name": "SignalLevel",
"cases": [
"unknown",
"weak",
"fair",
"good",
"strong"
]
}
}
}
},
{
"name": "expanded",
"doc": "Whether the row is open; unless given the row keeps it.",
"type": {
"option": "bool"
}
},
{
"name": "dense",
"doc": "One quiet line among content rather than a row of a list: the caption's size and ink, as tall as that line (an answer's steps, folded under it).",
"type": "bool"
},
{
"name": "motion",
"doc": "The pace the body unfolds at, and a view's open or close: the theme's unless said.",
"type": {
"option": {
"choice": {
"name": "Motion",
"cases": [
"standard",
"brisk",
"calm",
"still"
]
}
}
}
}
],
"parts": [
{
"name": "body",
"doc": "What opens under the row, in order.",
"accepts": "view",
"many": true,
"default": true
},
{
"name": "trailing",
"doc": "One control on the row's trailing edge, before the chevron (a device's Connect): it acts without opening the row.",
"accepts": "view"
}
],
"events": [
{
"name": "toggle",
"doc": "The row was opened or closed: whether it is open now is the value.",
"value": "bool"
}
],
"semantics": {
"role": "ListItem",
"label": "title"
}
},
{
"name": "Facts",
"doc": "Facts in one row, each an optional glyph and its text, spaced apart with no separator (\"12 files\", \"3 MB\", \"Edited today\"); when the row is too narrow the least important give way first.",
"parts": [
{
"name": "facts",
"doc": "The facts, in order.",
"accepts": {
"component": "Fact"
},
"many": true,
"default": true
}
],
"semantics": {
"role": "List"
}
},
{
"name": "KeyHints",
"doc": "Shortcuts and what they do, side by side, each hint the drawn keycaps of a chord and its label (\"Enter Save\") in the person's keyboard legends.",
"parts": [
{
"name": "hints",
"doc": "The hints, in order.",
"accepts": {
"component": "KeyHint"
},
"many": true,
"default": true
}
],
"semantics": {
"role": "Group"
}
},
{
"name": "ModalDialog",
"doc": "A question over the window: a dimmed page, a sheet with a title, the content and up to three answers; Escape or the scrim closes it, and Enter fires the main answer, or the safe one when it destroys something.",
"props": [
{
"name": "title",
"doc": "What the question is, as its title (name the action: \"Delete 3 notes?\").",
"type": "text",
"required": true
},
{
"name": "icon",
"doc": "A glyph before the title naming what asks.",
"type": {
"option": "icon"
}
},
{
"name": "description",
"doc": "What assistive technology says after the title.",
"type": {
"option": "text"
}
},
{
"name": "open",
"doc": "Whether it is open; a closed dialog paints nothing and takes no input.",
"type": "bool"
},
{
"name": "primary",
"doc": "The main answer's label (\"Delete\"): the inverted button, and what Enter fires.",
"type": {
"option": "text"
}
},
{
"name": "secondary",
"doc": "The other answer's label, usually Cancel. Escape fires it.",
"type": {
"option": "text"
}
},
{
"name": "tertiary",
"doc": "A third answer's label, set apart (\"Don't save\"); Enter never fires it.",
"type": {
"option": "text"
}
},
{
"name": "destructive",
"doc": "The main answer destroys something: it is a destructive button, and Enter is the safe answer instead.",
"type": "bool"
},
{
"name": "primary_enabled",
"doc": "The main answer cannot be taken yet, so it is disabled.",
"type": "bool"
}
],
"parts": [
{
"name": "body",
"doc": "The view's content, inside the sheet.",
"accepts": "view",
"many": true,
"default": true
}
],
"events": [
{
"name": "act_primary",
"doc": "The main answer was taken."
},
{
"name": "act_secondary",
"doc": "The other answer was taken."
},
{
"name": "act_tertiary",
"doc": "The third answer was taken."
},
{
"name": "dismiss",
"doc": "It was closed (Escape, the scrim, or Cancel): a dialog with this closes as it is."
}
],
"semantics": {
"role": "Dialog",
"label": "title"
}
},
{
"name": "FloatingPanel",
"doc": "A floating panel with a header part, a body and a footer part, which a view rarely places itself: a menu is a `Popover` and a question a `ModalDialog`.",
"props": [
{
"name": "width",
"doc": "A fixed width, in logical pixels (a utility panel).",
"type": {
"option": "float"
}
},
{
"name": "fill_height",
"doc": "Take the height it is offered rather than the height of its content: a panel a surface measured a room for, whose body scrolls inside it when it holds more.",
"type": "bool"
},
{
"name": "fill",
"doc": "Take the width it is offered rather than the width of its content: a card that spans a narrow display.",
"type": "bool"
},
{
"name": "label",
"doc": "What assistive technology calls it; a panel that names none adds no node of its own.",
"type": {
"option": "text"
}
},
{
"name": "description",
"doc": "What assistive technology says after its name.",
"type": {
"option": "text"
}
},
{
"name": "modal",
"doc": "It holds the screen while it shows: what it covers is dimmed, fading with the panel, and it reads as a modal dialog.",
"type": "bool"
},
{
"name": "slide",
"doc": "It arrives from its trailing edge on the panel slide, as a banner rises in the corner.",
"type": "bool"
},
{
"name": "x",
"doc": "Where it stands, from the top-leading corner of what holds it, in logical pixels: its left edge. With `y`, the panel stands there rather than where its siblings put it.",
"type": {
"option": "float"
}
},
{
"name": "y",
"doc": "Its top edge, from the top of what holds it, in logical pixels.",
"type": {
"option": "float"
}
}
],
"parts": [
{
"name": "body",
"doc": "The panel's body.",
"accepts": "view",
"many": true,
"default": true
},
{
"name": "header",
"doc": "Its header, above the body; a field there renders embedded.",
"accepts": "view"
},
{
"name": "footer",
"doc": "Its footer, under the body.",
"accepts": "view"
}
],
"events": [
{
"name": "moved",
"doc": "The person dragged it by its header and let it go: carries where it settled, its left and top edge from the top-leading corner of what holds it, onto an edge it was let go near and inside what holds it. A panel with this moves when its header is dragged.",
"value": {
"list": "int"
}
},
{
"name": "resized",
"doc": "The person drew its trailing edge out or in and let it go: carries the width it rests at, in logical pixels. A panel with this resizes when that edge is dragged, following it.",
"value": "float"
},
{
"name": "dismiss",
"doc": "A press landed off the panel, on nothing of its own: a panel with this is dismissed by it."
}
],
"semantics": {
"role": "Group"
}
},
{
"name": "Popover",
"doc": "A menu or a small form anchored beside its control, with the view's content inside it.",
"props": [
{
"name": "label",
"doc": "Its accessible name (a menu says what it chooses: \"Refresh interval\").",
"type": {
"option": "text"
}
},
{
"name": "open",
"doc": "Whether it is open.",
"type": "bool"
},
{
"name": "side",
"doc": "The side of its anchor it prefers: `below` unless said.",
"type": {
"option": {
"choice": {
"name": "PopoverSide",
"cases": [
"above",
"below",
"left",
"right"
]
}
}
}
},
{
"name": "at",
"doc": "The point it stands at, `[x, y]` from the top-left of where it is declared: where a press raised it (a question an action asks first). Its primary button stands under that point, so pressing again at the same spot takes it.",
"type": {
"option": {
"list": "float"
}
}
}
],
"parts": [
{
"name": "content",
"doc": "Its content.",
"accepts": "view",
"many": true,
"default": true
}
],
"events": [
{
"name": "dismiss",
"doc": "It was closed (Escape, or a press outside it): a popover with this closes as it is."
}
],
"semantics": {
"role": "Group",
"label": "label"
}
},
{
"name": "PopoverButton",
"doc": "A button that opens a popover anchored to itself (a filter's options, a share sheet); a second press, Escape or a press outside closes it.",
"props": [
{
"name": "label",
"doc": "What the button is called, as it is announced.",
"type": "text",
"required": true,
"positional": true
},
{
"name": "icon",
"doc": "A glyph before the label, or instead of it when `icon_only`.",
"type": {
"option": "icon"
}
},
{
"name": "icon_only",
"doc": "The glyph alone, with the label as its tooltip and accessible name.",
"type": "bool"
},
{
"name": "side",
"doc": "The side of the button it opens on: `below` unless said.",
"type": {
"option": {
"choice": {
"name": "PopoverSide",
"cases": [
"above",
"below",
"left",
"right"
]
}
}
}
},
{
"name": "trailing",
"doc": "Whether it opens at the button's trailing edge, not its leading edge.",
"type": "bool"
}
],
"parts": [
{
"name": "content",
"doc": "The popover's content.",
"accepts": "view",
"many": true,
"default": true
}
],
"semantics": {
"role": "Button",
"label": "label"
}
},
{
"name": "TextStack",
"doc": "A title over a secondary line and an optional third (a file's name over its folder, a person over their role), each one line cut short with an ellipsis.",
"props": [
{
"name": "title",
"doc": "The first line, in the body's medium weight.",
"type": "text",
"required": true,
"positional": true
},
{
"name": "secondary",
"doc": "The line under the title, in secondary ink.",
"type": {
"option": "text"
}
},
{
"name": "tertiary",
"doc": "A third line, in tertiary ink.",
"type": {
"option": "text"
}
},
{
"name": "tone",
"doc": "A status the secondary line means, in its colour: \"Failed\" in danger.",
"type": {
"option": {
"choice": {
"name": "Tone",
"cases": [
"neutral",
"success",
"warning",
"danger",
"info"
]
}
}
}
},
{
"name": "dense",
"doc": "A dense row's or a bar's stack: a smaller title.",
"type": "bool"
}
],
"semantics": {
"role": "Group",
"label": "title"
}
},
{
"name": "ProgressBar",
"doc": "How far something is (a transfer, an import, a sync): without a value a segment slides across the track with no known end, and a measured level (a disk, a quota) turns warning then danger as it fills.",
"props": [
{
"name": "value",
"doc": "The share done, from 0 to 1; without it the bar has no known end.",
"type": {
"option": "float"
},
"positional": true
},
{
"name": "label",
"doc": "What is under way (\"Uploading\"), shown over the track; a named bar announces its progress without taking focus.",
"type": {
"option": "text"
}
},
{
"name": "tone",
"doc": "A status the fill means: a failed transfer stays danger.",
"type": {
"option": {
"choice": {
"name": "Tone",
"cases": [
"neutral",
"success",
"warning",
"danger",
"info"
]
}
}
}
},
{
"name": "level",
"doc": "A measured level instead of progress: the fill turns warning, then danger, as it fills.",
"type": "bool"
},
{
"name": "warning",
"doc": "Where a level turns warning, from 0 to 1: 0.6 unless said.",
"type": {
"option": "float"
}
},
{
"name": "danger",
"doc": "Where a level turns danger, from 0 to 1: 0.85 unless said.",
"type": {
"option": "float"
}
}
],
"semantics": {
"role": "ProgressBar",
"label": "label"
}
},
{
"name": "PropertyList",
"doc": "Facts about one thing, a label beside each value: a contact's details, a file's.",
"props": [
{
"name": "striped",
"doc": "Shade every other row, for a long list read across.",
"type": "bool"
}
],
"parts": [
{
"name": "properties",
"doc": "The facts, in order.",
"accepts": {
"component": "Property"
},
"many": true,
"default": true
}
],
"semantics": {
"role": "List"
}
},
{
"name": "QrCode",
"doc": "A QR code of a payload for a phone's camera to read (a pairing handshake, an invite); a private payload is left out of screenshots and screens and never spoken.",
"props": [
{
"name": "payload",
"doc": "What the code carries, as the scanner reads it.",
"type": "text",
"required": true,
"positional": true,
"data": true
},
{
"name": "alt",
"doc": "What scanning it means, as assistive technology announces it: \"QR code\" unless said.",
"type": {
"option": "text"
}
},
{
"name": "secret",
"doc": "The payload is private pairing material: leave the code out of screenshots and recordings, and never speak it.",
"type": "bool"
}
],
"semantics": {
"role": "Image",
"label": "alt"
}
},
{
"name": "RadarChart",
"doc": "Several measures of the same things on axes around a circle, each axis with its own scale: a thing's shape reads at a glance, and several things compare by overlay. Each series takes the next colour of the theme's palette and is named in a legend.",
"props": [
{
"name": "axes",
"doc": "The axes in order, around the circle from the top: `.axis(label: \"Speed\", max: 100.0)`.",
"type": {
"list": {
"cases": {
"name": "Axes"
}
}
},
"required": true,
"positional": true
},
{
"name": "series",
"doc": "Each thing read across the axes: `.series(values: [12.0, 8.0], label: \"This week\")`.",
"type": {
"list": {
"cases": {
"name": "RadarSeries"
}
}
},
"required": true
},
{
"name": "title",
"doc": "What it shows, at its head and as assistive technology announces it.",
"type": {
"option": "text"
}
}
],
"semantics": {
"role": "Image",
"label": "title"
}
},
{
"name": "RadioGroup",
"doc": "A short list of choices, exactly one of which is made, each a radio beside its words: for a choice a person reads before making (how a report is sent, who may open a page). A few short choices that switch a setting at once are a `ToggleGroup`; many are a `Dropdown`. The group is one stop of the keyboard's order, and the arrow keys move the choice along it.",
"props": [
{
"name": "selected",
"doc": "Which choice is made, counted from 0: none until the person makes one.",
"type": {
"option": "int"
}
},
{
"name": "label",
"doc": "Its spoken name: what the choices are of.",
"type": {
"option": "text"
}
},
{
"name": "enabled",
"doc": "Whether any of it can be chosen now.",
"type": "bool"
},
{
"name": "description",
"doc": "Why none of it can be chosen, while none can: its tooltip, and what assistive technology reads.",
"type": {
"option": "text"
}
}
],
"parts": [
{
"name": "options",
"doc": "The choices, in order.",
"accepts": {
"component": "Radio"
},
"many": true,
"default": true
}
],
"events": [
{
"name": "change",
"doc": "A choice was made: carries its index, counted from 0.",
"value": "int"
}
],
"semantics": {
"role": "Group",
"label": "label"
}
},
{
"name": "RangeChart",
"doc": "What takes a span of something, one row each: when things happen on a timeline, a plan's rows and how far each has come, the hours a room is booked, or the moments something happened. Each row is named before its bar and read out with its interval.",
"props": [
{
"name": "ranges",
"doc": "The rows, top to bottom: `.range(label: \"Design review\", start: 2.0, end: 5.0, progress: 0.6)`.",
"type": {
"list": {
"cases": {
"name": "Range"
}
}
},
"required": true,
"positional": true
},
{
"name": "title",
"doc": "What it shows, at its head and as assistive technology announces it.",
"type": {
"option": "text"
}
},
{
"name": "kind",
"doc": "What it shows: `timeline` spans unless said, a `plan` whose rows fill to their progress, `intervals` between numbers, or `milestones` at points.",
"type": {
"option": {
"choice": {
"name": "RangeKind",
"cases": [
"timeline",
"plan",
"intervals",
"milestones"
]
}
}
}
},
{
"name": "axis",
"doc": "What the axis under the rows measures (\"October\", \"Hour\").",
"type": {
"option": "text"
}
},
{
"name": "unit",
"doc": "What an axis value counts, written after it (\"min\", \"°C\").",
"type": {
"option": "text"
}
}
],
"semantics": {
"role": "Image",
"label": "title"
}
},
{
"name": "Time",
"doc": "A moment as how long ago or how far ahead it was (`2 min ago`, `Yesterday`, `in 3 min`) in the person's language and time zone, changing only when its text does.",
"props": [
{
"name": "at",
"doc": "The moment.",
"type": "time",
"required": true,
"positional": true
},
{
"name": "role",
"doc": "What the text is, which sets its size and weight: `body` unless said.",
"type": {
"choice": {
"name": "TextRole",
"cases": [
"display",
"large_title",
"title",
"heading",
"subheading",
"body",
"label",
"caption",
"reading",
"code"
]
}
}
},
{
"name": "secondary",
"doc": "Beside the content it is about, in secondary ink: when a change was made.",
"type": "bool"
},
{
"name": "past",
"doc": "The moment has happened, as a received message or a logged entry: one the reader's clock has not reached reads `just now`, never ahead.",
"type": "bool"
},
{
"name": "clock",
"doc": "Show the time of day in the person's zone (`5:16 AM`), as a transcript shows when a message was sent; the day it falls on is the transcript's divider, never this line.",
"type": "bool"
}
],
"semantics": {
"role": "Label"
}
},
{
"name": "Rule",
"doc": "A horizontal rule of a size the view gives it, its ends ticked: what a view measures (a map's scale bar) rather than a divider that fills its row.",
"props": [
{
"name": "length",
"doc": "How long it draws, in logical pixels. Without one it fills the row it stands in.",
"type": {
"option": "float"
}
},
{
"name": "ticks",
"doc": "A tick stands at each end, as a measurement's ends do.",
"type": "bool"
},
{
"name": "label",
"doc": "What it is, for assistive technology.",
"type": {
"option": "text"
}
}
],
"semantics": {
"role": "Separator",
"label": "label"
}
},
{
"name": "SankeyChart",
"doc": "Where a quantity moves between stages: visits that become trials, hours that become work, money that becomes cost. Each stage is a column of nodes as tall as what passes through them, each link a ribbon as thick as its share, its nodes and links named where they fit; a person pointing at one reads what it carries.",
"props": [
{
"name": "nodes",
"doc": "The stages and sources, in order: `.node(id: \"visits\", label: \"Visits\")`. Its stage is the longest chain of links that leads to it.",
"type": {
"list": {
"cases": {
"name": "FlowNode"
}
}
},
"required": true,
"positional": true
},
{
"name": "links",
"doc": "What moves between them: `.link(from: \"visits\", to: \"signup\", value: 72.0)`, `from` and `to` naming nodes by their ids.",
"type": {
"list": {
"cases": {
"name": "FlowLink"
}
}
},
"required": true
},
{
"name": "title",
"doc": "What it shows, over it and as assistive technology announces it.",
"type": {
"option": "text"
}
}
],
"semantics": {
"role": "Image",
"label": "title"
}
},
{
"name": "Scroll",
"doc": "A body that scrolls under its column's fixed header, showing the part of the content the column fits.",
"props": [
{
"name": "follow_end",
"doc": "Open at the end of the content and stay there while it grows, unless the person scrolled away: a transcript, whose newest line is last.",
"type": "bool"
},
{
"name": "across",
"doc": "Scroll sideways instead: a row wider than its column, such as a board's lists.",
"type": "bool"
},
{
"name": "both",
"doc": "Scroll both ways, for a 2D surface wider and taller than its column (a board of strips); takes precedence over `across`.",
"type": "bool"
},
{
"name": "shows_bar",
"doc": "Show the bar for as long as the content overflows, not only while it is scrolled: a card held to a height whose words go on below it, so the person sees there is more.",
"type": "bool"
},
{
"name": "keep",
"doc": "Keep the descendant that names itself this (`Widget::kept_in_view`) in view when the one that is named changes: the front strip of a row a person pans, brought into view as they move between windows.",
"type": {
"option": "text"
},
"data": true
}
],
"parts": [
{
"name": "content",
"doc": "What scrolls.",
"accepts": "view",
"default": true
}
],
"semantics": {
"role": "ScrollView"
}
},
{
"name": "Section",
"doc": "A group of related content under an optional title (a list's rows, fields, a figure); a collapsible one opens and closes under its title.",
"props": [
{
"name": "title",
"doc": "What the group is about.",
"type": {
"option": "text"
},
"positional": true
},
{
"name": "collapsible",
"doc": "Whether its title opens and closes it.",
"type": "bool"
},
{
"name": "motion",
"doc": "The pace the content arrives and leaves at, and its title's reveal: the theme's unless said.",
"type": {
"option": {
"choice": {
"name": "Motion",
"cases": [
"standard",
"brisk",
"calm",
"still"
]
}
}
}
}
],
"parts": [
{
"name": "content",
"doc": "The content, in order.",
"accepts": "view",
"many": true,
"default": true
}
],
"events": [
{
"name": "toggle",
"doc": "A collapsible section opened or closed: whether it is open now is the value.",
"value": "bool"
}
],
"state": [
{
"name": "expanded",
"doc": "Whether a collapsible section shows what it holds.",
"type": {
"option": "bool"
}
}
],
"semantics": {
"role": "Group",
"label": "title"
}
},
{
"name": "ObjectHeader",
"doc": "The head of a detail view: an avatar or glyph, the thing's name and one caption line under it (\"Ada Lovelace\" over \"ada@example.org\").",
"props": [
{
"name": "title",
"doc": "The thing's name.",
"type": "text",
"required": true,
"positional": true
},
{
"name": "caption",
"doc": "One line under the name: an address, a URL, a kind.",
"type": {
"option": "text"
}
},
{
"name": "who",
"doc": "A person before the name, as their avatar.",
"type": {
"option": "actor"
}
},
{
"name": "icon",
"doc": "A glyph before the name: the kind of thing it is.",
"type": {
"option": "icon"
}
},
{
"name": "square",
"doc": "The avatar is square: an account or a site, not a person.",
"type": "bool"
}
],
"semantics": {
"role": "Group",
"label": "title"
}
},
{
"name": "StatusLine",
"doc": "A status as a sentence: a dot in the status's colour beside a caption (\"Engine running\", \"3 containers stopped\"), for a list's footer or a detail's state; it is never pressed.",
"props": [
{
"name": "text",
"doc": "The sentence: \"Synced 2 minutes ago\".",
"type": "text",
"required": true,
"positional": true
},
{
"name": "status",
"doc": "What state it says: `active` (running, connected, healthy) unless said, `warning` (needs attention soon), `error` (failed or offline unexpectedly), `idle` (present but inactive).",
"type": {
"option": {
"choice": {
"name": "RowStatus",
"cases": [
"active",
"warning",
"error",
"idle"
]
}
}
}
},
{
"name": "who",
"doc": "A person whose presence it says, in their colour, instead of a status.",
"type": {
"option": "actor"
}
}
],
"semantics": {
"role": "StaticText",
"label": "text"
}
},
{
"name": "Sheet",
"doc": "A sheet drawn as a grid: its column and row headers, its cells as they show, the cells the person chose, the cells a search found and a comment's mark in the corner.",
"props": [
{
"name": "name",
"doc": "What the sheet is, for assistive technology.",
"type": {
"option": "text"
}
},
{
"name": "columns",
"doc": "How many columns it shows.",
"type": "int"
},
{
"name": "rows",
"doc": "How many rows it shows.",
"type": "int"
},
{
"name": "column_width",
"doc": "A column's width in pixels where the person did not size it.",
"type": {
"option": "float"
}
},
{
"name": "row_height",
"doc": "A row's height in pixels where the person did not size it.",
"type": {
"option": "float"
}
},
{
"name": "sizes",
"doc": "The columns and rows the person sized.",
"type": {
"list": {
"cases": {
"name": "SheetSize"
}
}
}
},
{
"name": "cells",
"doc": "The cells that show anything; an empty cell takes no room here.",
"type": {
"list": {
"cases": {
"name": "SheetCell"
}
}
}
},
{
"name": "selection",
"doc": "The cells chosen, as `A1` or `A1:B2`.",
"type": {
"option": "text"
}
},
{
"name": "found",
"doc": "The cells the window's search found.",
"type": {
"list": "text"
}
},
{
"name": "commented",
"doc": "The cells a comment is on.",
"type": {
"list": "text"
}
},
{
"name": "answered",
"doc": "The cells a resolved comment is on.",
"type": {
"list": "text"
}
},
{
"name": "peers",
"doc": "Who else is in the sheet, where they are.",
"type": {
"list": {
"cases": {
"name": "SheetPeer"
}
}
}
},
{
"name": "editable",
"doc": "It takes edits; read-only when not.",
"type": "bool"
}
],
"events": [
{
"name": "select",
"doc": "The cells chosen changed: carries them, as `A1` or `A1:B2`.",
"value": "text"
},
{
"name": "edit",
"doc": "Cells were written: carries pairs of reference and input, in order; an empty input clears its cell.",
"value": {
"list": "text"
}
},
{
"name": "resized_column",
"doc": "A column was resized: carries its letter and its new width in pixels.",
"value": {
"list": "text"
}
},
{
"name": "resized_row",
"doc": "A row was resized: carries its number and its new height in pixels.",
"value": {
"list": "text"
}
},
{
"name": "fill",
"doc": "The fill handle was dragged: carries the cells it copies from and the cells it fills.",
"value": {
"list": "text"
}
},
{
"name": "copy",
"doc": "The chosen cells were asked to be copied: carries them as a table, a line per row and a tab between columns. The app's action writes it to the person's clipboard.",
"value": "text"
},
{
"name": "cut",
"doc": "The chosen cells were asked to be cut: carries them as `copy` does, and the app copies them and clears the cells.",
"value": "text"
},
{
"name": "paste",
"doc": "The person asked to paste: the app reads the person's clipboard and writes the cells from the selection's top left."
}
],
"semantics": {
"role": "Table",
"label": "name"
}
},
{
"name": "ShortcutRecorder",
"doc": "A keyboard shortcut as keycaps that are the control: pressing them records a new chord, with a reset while it differs from the default.",
"props": [
{
"name": "default",
"doc": "The chord it started as, which its reset puts back.",
"type": {
"option": "text"
},
"data": true
},
{
"name": "label",
"doc": "Its spoken name: the command the shortcut runs.",
"type": {
"option": "text"
}
}
],
"bindings": [
{
"name": "value",
"doc": "The chord, as its text (\"Ctrl+Shift+K\"), and where a recorded one goes.",
"type": "text",
"merge": "register"
}
],
"semantics": {
"role": "Button",
"label": "label"
}
},
{
"name": "InState",
"doc": "A control as it looks in one state of interaction (hovered, pressed, focused), held still and taking no input: the states of a button or a field side by side, as a style guide or a page of documentation shows them. Disabled, checked, chosen and invalid are the control's own props; this shows what only a pointer or the keyboard otherwise gives it. Assistive technology skips it: the control it shows is a picture of one, not one to use.",
"props": [
{
"name": "state",
"doc": "The state its content is shown in.",
"type": {
"choice": {
"name": "InteractionState",
"cases": [
"rest",
"hovered",
"pressed",
"focused"
]
}
},
"positional": true
}
],
"parts": [
{
"name": "content",
"doc": "The control shown.",
"accepts": "view",
"default": true
}
],
"semantics": {
"role": "Group"
}
},
{
"name": "SignalMeter",
"doc": "How strong a radio signal is (a Wi-Fi network, a mobile network), as four bars one icon square in size, naming itself by its level: \"Strong signal\".",
"props": [
{
"name": "level",
"doc": "How strong the signal is: `unknown` fills no bar.",
"type": {
"choice": {
"name": "SignalLevel",
"cases": [
"unknown",
"weak",
"fair",
"good",
"strong"
]
}
},
"required": true,
"positional": true
}
],
"semantics": {
"role": "Image"
}
},
{
"name": "Skeleton",
"doc": "The shape of content still on its way, drawn where it will be and at its size so nothing moves when it arrives; it never shimmers and says \"Loading\" to assistive technology.",
"props": [
{
"name": "shape",
"doc": "What it previews: `text` unless said.",
"type": {
"option": {
"choice": {
"name": "SkeletonForm",
"cases": [
"text",
"row",
"media",
"chip",
"page",
"block"
]
}
}
},
"positional": true
},
{
"name": "lines",
"doc": "How many lines: of text (3 unless said), or under a row's title (none unless said).",
"type": {
"option": "int"
}
},
{
"name": "leading",
"doc": "What leads a row: a mark, an avatar or a tile.",
"type": {
"option": {
"choice": {
"name": "RowLeadingShape",
"cases": [
"none",
"mark",
"avatar",
"tile"
]
}
}
}
},
{
"name": "aspect",
"doc": "The shape of a media card's art: `square` unless said.",
"type": {
"option": {
"choice": {
"name": "MediaAspect",
"cases": [
"square",
"wide",
"portrait",
"circle"
]
}
}
}
},
{
"name": "height",
"doc": "A block's height in logical pixels.",
"type": {
"option": "float"
}
}
],
"semantics": {
"role": "Generic"
}
},
{
"name": "Slider",
"doc": "A value along a track (a level, a volume, a share), set by dragging the knob or pressing the track and stepped by the arrow keys, finely with Shift.",
"props": [
{
"name": "label",
"doc": "The value's spoken name, for a slider with no label beside it: \"Volume\".",
"type": {
"option": "text"
}
},
{
"name": "min",
"doc": "The lowest value, 0 unless said.",
"type": {
"option": "float"
}
},
{
"name": "max",
"doc": "The highest value, 1 unless said.",
"type": {
"option": "float"
}
},
{
"name": "step",
"doc": "Values snap to multiples of this from the minimum; the arrow keys move one step.",
"type": {
"option": "float"
}
},
{
"name": "stops",
"doc": "The values it stops at, marked along the track: a drag lands on the nearest, the arrow keys go from one to the next (the versions along a history).",
"type": {
"list": "float"
}
},
{
"name": "shows_value",
"doc": "Show the value in words beside the track: \"72%\".",
"type": "bool"
},
{
"name": "enabled",
"doc": "Whether it can be moved now.",
"type": "bool"
}
],
"events": [
{
"name": "change",
"doc": "The person moved it: the value it is at now is the value.",
"value": "float"
}
],
"bindings": [
{
"name": "value",
"doc": "The value, and where a change of it goes.",
"type": "float",
"merge": "register"
}
],
"semantics": {
"role": "Slider",
"label": "label"
}
},
{
"name": "Slideshow",
"doc": "A picture shown large in the window for its time, then the next asked for: a presentation a view opens, with the slide it shows kept by the view.",
"props": [
{
"name": "image",
"doc": "The picture on screen now.",
"type": "picture",
"required": true,
"positional": true
},
{
"name": "alt",
"doc": "What the picture is, as assistive technology announces it.",
"type": {
"option": "text"
},
"required": true
},
{
"name": "seconds",
"doc": "How long it stays before the next is asked for, in seconds.",
"type": {
"option": "float"
}
}
],
"events": [
{
"name": "next",
"doc": "The picture has been shown its time: the view asks for the next."
}
],
"semantics": {
"role": "Image",
"label": "alt"
}
},
{
"name": "Spinner",
"doc": "Something under way whose length is not known, four dots turning and holding still under reduced motion; a progress bar or ring says how far when the share is known.",
"props": [
{
"name": "label",
"doc": "What is under way (\"Loading messages\"), as assistive technology names it.",
"type": {
"option": "text"
},
"positional": true
},
{
"name": "beside",
"doc": "Size it to one line of this text, for a spinner beside a status line; alone at its full size unless said.",
"type": {
"option": {
"choice": {
"name": "TextRole",
"cases": [
"display",
"large_title",
"title",
"heading",
"subheading",
"body",
"label",
"caption",
"reading",
"code"
]
}
}
}
}
],
"semantics": {
"role": "Spinner",
"label": "label"
}
},
{
"name": "Stage",
"doc": "A page of a fixed size, with what stands on it placed in the page's own coordinates.",
"props": [
{
"name": "name",
"doc": "What the stage is, for assistive technology.",
"type": {
"option": "text"
}
},
{
"name": "canvas",
"doc": "The page's own size, its width then its height (a slide is 1280, 720).",
"type": {
"list": "int"
},
"required": true
},
{
"name": "zoom",
"doc": "How many logical pixels one page coordinate takes, as the person chose it: the page is fitted to the stage's box, whole and centred, unless said. The stage's wheel, pinch and keys report the zoom they took (`zoomed`), so a view that keeps it here finds the zoom where the person left it after a rebuild.",
"type": {
"option": "float"
}
},
{
"name": "pan",
"doc": "How far the page is moved from centred, in logical pixels, its x then its y: the stage keeps it within the travel the page's edges allow and reports the pan it took (`panned`).",
"type": {
"option": {
"list": "float"
}
}
},
{
"name": "background",
"doc": "The colour the page itself is painted in, `#rrggbb` or `#rrggbbaa`; none leaves it clear.",
"type": {
"option": "text"
}
},
{
"name": "chosen",
"doc": "The place the view chose, by its item or key: drawn with its frame, so the person sees what they are working on.",
"type": {
"option": "text"
}
},
{
"name": "still",
"doc": "The stage stands the page where the view puts it and takes nothing of its own: the wheel and a pinch do not zoom it, no pan moves it, the keys that walk and move its places do not reach it, and a dragged place does not line up with the page's margins. A stage laid over a page another view draws sets this, so the page under it keeps its own zoom and its own keys and its places move only where the hand puts them.",
"type": "bool"
},
{
"name": "transition",
"doc": "How the stage plays another page swapped for the one it shows: `.cross_fade` keeps the page that was shown laid out while it fades out and fades the new one in over it, for a stage that presents one page at a time. A change of the same page (a moved place, a zoom) is reconciled in place and never swaps.",
"type": {
"option": {
"choice": {
"name": "Transition",
"cases": [
"none",
"cross_fade"
]
}
}
}
},
{
"name": "motion",
"doc": "The pace a page swap plays at: `.standard` (the theme's, and what the stage does anyway), `.brisk`, `.calm`, or `.still`, whose swaps land at once.",
"type": {
"option": {
"choice": {
"name": "Motion",
"cases": [
"standard",
"brisk",
"calm",
"still"
]
}
}
}
}
],
"parts": [
{
"name": "pins",
"doc": "What stands on the page, back to front.",
"accepts": {
"component": "StagePin"
},
"many": true,
"default": true
}
],
"events": [
{
"name": "press",
"doc": "The person pressed the page's own empty surface and let go there, travelling no further than a click: carries the page point, its x then its y.",
"value": {
"list": "int"
}
},
{
"name": "select",
"doc": "The person pressed a place: carries what it stands for and the page point.",
"value": "text",
"at": {
"list": "int"
}
},
{
"name": "moved",
"doc": "The person dragged a place to a new place on the page: carries what it stands for and its new page point. Reported as the hand moves, as one gesture, so everyone looking sees it move and one undo takes the whole move back.",
"value": "text",
"at": {
"list": "int"
}
},
{
"name": "resized",
"doc": "The person dragged a place's trailing edge, bottom edge or corner: carries what it stands for and its new width and height in page coordinates. Its top-leading corner stays.",
"value": "text",
"at": {
"list": "int"
}
},
{
"name": "context",
"doc": "The person pressed a place with the right button: carries what it stands for and the page point.",
"value": "text",
"at": {
"list": "int"
}
},
{
"name": "zoomed",
"doc": "The person zoomed the page, by a wheel with the command modifier, a pinch or a key: carries the zoom they chose, in logical pixels a page coordinate, or 0 for the page fitted whole. A view that keeps it and gives it back as `zoom` finds the zoom where the person left it after a rebuild.",
"value": "float"
},
{
"name": "panned",
"doc": "The person moved the page: carries its new pan, its x then its y in window pixels. A view that keeps it and gives it back as `pan` finds the page where the person left it.",
"value": {
"list": "float"
}
},
{
"name": "open",
"doc": "The person pressed Enter on the chosen place: carries what it stands for. The view opens it — a text box takes the typing.",
"value": "text"
},
{
"name": "delete",
"doc": "The person pressed Delete on the chosen place: carries what it stands for. The view removes it.",
"value": "text"
}
],
"semantics": {
"role": "Group",
"label": "name"
}
},
{
"name": "StatGroup",
"doc": "Stat tiles that reflow by width: one row when they fit, then half per row (2 by 2 for four), then one per row; separated by space, never boxed.",
"parts": [
{
"name": "tiles",
"doc": "The tiles, in order.",
"accepts": {
"component": "StatTile"
},
"many": true,
"default": true
}
],
"semantics": {
"role": "Group"
}
},
{
"name": "StatTile",
"doc": "One number and what it measures (a dashboard's reading, a backup's size), read top to bottom as a label, the value with its unit, a note, its trend and a sparkline; a tile that opens a detail is pressed.",
"props": [
{
"name": "label",
"doc": "What the number measures, in sentence case: \"Active users\".",
"type": "text",
"required": true,
"positional": true
},
{
"name": "value",
"doc": "The number, as it reads: \"1,284\", \"99.9\".",
"type": "text",
"required": true,
"positional": true
},
{
"name": "unit",
"doc": "Its unit, after the value: \"GB\", \"ms\".",
"type": {
"option": "text"
}
},
{
"name": "note",
"doc": "A neutral qualifier read with the value: \"of 2 TB\", \"estimated\".",
"type": {
"option": "text"
}
},
{
"name": "change",
"doc": "How it changed, beside an arrow of its trend: \"12% this week\".",
"type": {
"option": "text"
}
},
{
"name": "trend",
"doc": "Which way it moved: `up` unless said, when it has a change; its tone, not the arrow, says whether that is good.",
"type": {
"option": {
"choice": {
"name": "Trend",
"cases": [
"up",
"down",
"flat"
]
}
}
}
},
{
"name": "tone",
"doc": "The state of what it measures, as a ticker down its leading edge: a failed backup is danger, a healthy tunnel success.",
"type": {
"option": {
"choice": {
"name": "Tone",
"cases": [
"neutral",
"success",
"warning",
"danger",
"info"
]
}
}
}
},
{
"name": "hero",
"doc": "The one hero number of a screen, set large.",
"type": "bool"
},
{
"name": "samples",
"doc": "Its recent readings, oldest first, as a sparkline under it.",
"type": {
"list": "float"
}
},
{
"name": "selected",
"doc": "Whether it is the selected one, when it opens a detail.",
"type": "bool"
}
],
"events": [
{
"name": "activate",
"doc": "The tile was pressed: open its detail."
}
],
"semantics": {
"role": "Group",
"label": "label"
}
},
{
"name": "Stepper",
"doc": "Where a person is in a short sequence: a setup wizard's steps, an import's. Each step is a station with a disc and its name; a done one carries a check and may be gone back to. Too narrow for its stations, it reads \"Step 2 of 4\" over the current step.",
"props": [
{
"name": "steps",
"doc": "The steps, in order.",
"type": {
"list": "text"
},
"required": true
},
{
"name": "current",
"doc": "Which step is current, counted from 0. None before the first step starts: every station waits.",
"type": {
"option": "int"
}
}
],
"events": [
{
"name": "station",
"doc": "The step gone back to: carries its index. Without it, no station takes the pointer.",
"value": "int"
}
],
"semantics": {
"role": "Group"
}
},
{
"name": "StrokePreview",
"doc": "The mark a brush, its size and a pigment will paint, drawn as a sample stroke: a canvas's brush pad shows it before a person touches the canvas, and draws it in again when any of the three changes.",
"props": [
{
"name": "brush",
"doc": "What the brush paints like: `round`, `pen`, `pencil`, `marker`, `airbrush`, `charcoal`, `calligraphy`, `eraser`, `pixel` or `pixel-eraser`; any other name paints like the round brush.",
"type": "text",
"required": true,
"positional": true
},
{
"name": "size",
"doc": "How wide the brush paints, in artwork units: a width past the preview's height is drawn as tall as the preview holds.",
"type": "float"
},
{
"name": "colour",
"doc": "The pigment, as `#rrggbb` or `#rrggbbaa`.",
"type": "text"
},
{
"name": "label",
"doc": "Its spoken name.",
"type": {
"option": "text"
}
}
],
"semantics": {
"role": "Image",
"label": "label"
}
},
{
"name": "SunburstChart",
"doc": "A hierarchy as rings: how a whole divides, and how each part divides, down to the smallest ones. Each ring is a level, a part as wide as its share of the one it belongs to, and each part takes its colour from the theme; a person pointing at one reads its path and its value.",
"props": [
{
"name": "parts",
"doc": "The parts, each naming the part it belongs to: `.part(id: \"build\", parent: \"ci\", label: \"Build\", value: 12.0)`. A part nothing names as its parent stands at the centre ring.",
"type": {
"list": {
"cases": {
"name": "Part"
}
}
},
"required": true,
"positional": true
},
{
"name": "title",
"doc": "What it shows, over it and as assistive technology announces it.",
"type": {
"option": "text"
}
},
{
"name": "total",
"doc": "What the whole is, read at its centre (\"128 hours\").",
"type": {
"option": "text"
}
}
],
"semantics": {
"role": "Image",
"label": "title"
}
},
{
"name": "TabStrip",
"doc": "A frame's tabs, in one row above its content: the shell's tab strip.\nThe chosen tab stands lifted off the strip's ground, and every pill says who is at its resource now. Choosing a pill activates that tab; a pill's close chip closes it; dragging one within the strip reorders it, and letting one go outside the strip hands it to the frame under the pointer.",
"props": [
{
"name": "active",
"doc": "The resource whose tab shows: the tab in front.",
"type": {
"option": "resource"
},
"positional": true
},
{
"name": "focused",
"doc": "Whether this frame has the keyboard: its tab strip says so.",
"type": "bool"
}
],
"parts": [
{
"name": "tabs",
"doc": "The tabs, in order.",
"accepts": {
"component": "TabItem"
},
"many": true,
"default": true
}
],
"events": [
{
"name": "activate",
"doc": "Told a tab was chosen: carries the resource of the pill chosen.",
"value": "resource"
},
{
"name": "close",
"doc": "Told a tab's close chip was pressed: carries that tab's resource.",
"value": "resource"
},
{
"name": "reorder",
"doc": "Told a pill was dropped at a new place in the strip: carries the tab moved and its place among the strip's, from 0.",
"value": "resource",
"at": "int"
},
{
"name": "detach",
"doc": "Told a pill was dragged out of the strip and let go: carries the tab and where it was let go, as [`pack_point`] packs the window's coordinates. The shell puts the tab in the frame there, or makes one.",
"value": "resource",
"at": "int"
}
],
"semantics": {
"role": "TabList"
}
},
{
"name": "Terminal",
"doc": "A terminal's grid: what a running shell printed and the input that reaches it.\nThe window of the app, the grid and the program inside it are one thing: a terminal has no address bar, no search of its own and no chrome — the app's own window bar carries where the session runs, and find over the scrollback is the window's.",
"props": [
{
"name": "session",
"doc": "The session this grid shows, as the app's record names it.",
"type": "text",
"required": true,
"positional": true
},
{
"name": "label",
"doc": "What the grid shows, for assistive technology: \"Terminal, Build\".",
"type": {
"option": "text"
}
},
{
"name": "copy_on_select",
"doc": "Finishing a selection also copies it to the clipboard, not only to the primary selection.",
"type": "bool"
},
{
"name": "bell_flash",
"doc": "Flash the grid when the program rings the bell.",
"type": "bool"
}
],
"events": [
{
"name": "title",
"doc": "The program set the window's title.",
"value": "text"
},
{
"name": "finished",
"doc": "A run the shell marked ended; carries it as JSON.",
"value": "text"
},
{
"name": "exit",
"doc": "The shell ended: carries \"exited\", its status, or why the connection was lost.",
"value": "text"
},
{
"name": "selected",
"doc": "A selection was finished: carries the text it copied.",
"value": "text"
},
{
"name": "rung",
"doc": "The bell rang.",
"value": "text"
}
],
"semantics": {
"role": "Terminal",
"label": "label",
"not_in_gallery": "a terminal shows a shell session the window's host runs, and the gallery's window runs none"
}
},
{
"name": "Text",
"doc": "Words on the page, set in one of the design system's text roles. What it says is content, never looked up as interface copy.",
"props": [
{
"name": "value",
"doc": "What it says.",
"type": "text",
"required": true,
"positional": true
},
{
"name": "role",
"doc": "What the text is, which sets its size, weight and face: `body` unless said.",
"type": {
"choice": {
"name": "TextRole",
"cases": [
"display",
"large_title",
"title",
"heading",
"subheading",
"body",
"label",
"caption",
"reading",
"code"
]
}
}
},
{
"name": "numeric",
"doc": "A number that changes: tabular figures, so it does not jitter as it changes.",
"type": "bool"
},
{
"name": "secondary",
"doc": "What it says stands beside the content it is about, in secondary ink: \"edited\" after a message, \"Pinned\" over it.",
"type": "bool"
},
{
"name": "lines",
"doc": "How many lines it takes: what does not fit is elided at the last of them, so a clamp holds however long the words are. Unset, it wraps to as many lines as its width needs.",
"type": {
"option": "int"
}
},
{
"name": "truncate",
"doc": "It elides at the width it is given rather than wrapping wider, so its box may shrink to nothing and what does not fit ends in an ellipsis: a title in a narrow card.",
"type": "bool"
},
{
"name": "live",
"doc": "What it says is announced when it changes instead of only read on the way past: a line a person is told without looking (a notice passing, a status that moved). `polite` waits for a pause, `assertive` interrupts; unset, it is read without announcing.",
"type": {
"option": {
"choice": {
"name": "Politeness",
"cases": [
"polite",
"assertive"
]
}
}
}
}
],
"semantics": {
"role": "Label",
"label": "value"
}
},
{
"name": "TextInput",
"doc": "A field to type text into, bound to the text it edits. Each edit is spliced into that text, never written over it, so people typing in the same text at once all keep what they typed.",
"props": [
{
"name": "text",
"doc": "Text it shows when it binds nothing: read and copied, never edited (a message body, a log). A field given one is read-only; what it reports of its selection is still [`Self::select`].",
"type": {
"option": "text"
}
},
{
"name": "read_only",
"doc": "Whether it is read and copied but never edited, even when it binds a field: a value shown for reading.",
"type": "bool"
},
{
"name": "placeholder",
"doc": "What to type, shown while it is empty.",
"type": {
"option": "text"
}
},
{
"name": "lines",
"doc": "Area for this many lines: the field wraps and grows with what is typed.",
"type": {
"option": "int"
}
},
{
"name": "title",
"doc": "The title of the document the window is for, edited in place as its large title.",
"type": "bool"
},
{
"name": "enabled",
"doc": "Whether it can be typed into now.",
"type": "bool"
},
{
"name": "autofocus",
"doc": "It is where the person types next (an entry a command just opened): it takes the keyboard as soon as it is in the window, once.",
"type": "bool"
},
{
"name": "changed_by",
"doc": "Someone else changed the text and the person has not seen it yet: hovering the field says who. The app's runtime sets it, from what the field is bound to (task-legibility §3).",
"type": {
"option": "actor"
}
},
{
"name": "previous",
"doc": "What the text was before that change, said when the field is hovered.",
"type": {
"option": "text"
}
},
{
"name": "entry",
"doc": "The entry at the end of a list: what is typed makes an item when Enter or leaving the field commits it, and the field clears; nothing typed leaves nothing (Escape, or leaving it empty). Its own draft, not a record: the item exists once it is committed.",
"type": "bool"
},
{
"name": "key",
"doc": "The plain key that focuses this control while its window has the keyboard, as the app declared it (`key: \"Ctrl+N\"`): a window's primary action brings the person to the list's entry rather than making an empty item. Never drawn here.",
"type": {
"option": "text"
},
"data": true
},
{
"name": "caret",
"doc": "A caret on a surface rather than a field in a form: no well and no fill, only as wide as what it holds, growing as the words are typed. The canvas's caret.",
"type": "bool"
},
{
"name": "secret",
"doc": "A secret: the field masks what it holds, never speaks or shows it in a screenshot, refuses Copy and Cut, and hands its value over only through the action it fires. For an API key or a password, where the app never reads the value back.",
"type": "bool"
}
],
"events": [
{
"name": "submit",
"doc": "Enter was pressed: what was typed is done (a list's entry), carried with it. With it, Enter ends the text rather than breaking its line; Shift+Enter still breaks a wrapping field's line.",
"value": "text"
},
{
"name": "select",
"doc": "The selection settled (a drag let go, a double click, a select all, shift and an arrow key): carries the run selected as `<start>:<end>`, byte offsets into the text, or nothing when the selection collapsed. A read-only field reports it so what reads it — a message answered on just the words someone chose — can act on the run; a field being typed in keeps its selection private.",
"value": "text"
},
{
"name": "cancel",
"doc": "Escape let go of what was being typed: the field clears, and what it stands in goes (a caret on the canvas)."
},
{
"name": "begin",
"doc": "The field's text went from empty to non-empty: the first change, carrying the text it holds now. An entry makes the item it names here, from the first keystroke.",
"value": "text"
},
{
"name": "changed",
"doc": "The text changed as the person typed: carries what the field holds now. Told for every change the person makes (a key, a paste, a cut), never for what the field binds.",
"value": "text"
},
{
"name": "blur",
"doc": "The field lost the keyboard: an entry left empty is taken away by what listens."
}
],
"bindings": [
{
"name": "value",
"doc": "The text it edits.",
"type": "text",
"merge": "splice"
}
],
"semantics": {
"role": "TextInput",
"label": "placeholder"
}
},
{
"name": "TimeField",
"doc": "The time of day a day is due at: the hour and the minute it is due at, with \"Remove time\" beside them, or a quiet \"Add time\" while it has none. It stands in the `time` part of a [`DateField`](crate::widget::DateField), so the day and its time read as one fact.",
"events": [
{
"name": "change",
"doc": "A time was picked or removed: carries the time of day, or nothing for a removed one.",
"value": "time"
}
],
"bindings": [
{
"name": "value",
"doc": "The moment, as a bound field holds it (`09:00`, or the ISO text of an instant), and where a picked time of day goes.",
"type": "time",
"merge": "register"
}
],
"semantics": {
"role": "Group"
}
},
{
"name": "TimePicker",
"doc": "A time of day, as spinners for hours and minutes, and for seconds when the time holds some: the arrows step a spinner and so does the wheel over its cell. It is the time in the person's own zone today.",
"props": [
{
"name": "label",
"doc": "Its spoken name.",
"type": {
"option": "text"
}
},
{
"name": "step",
"doc": "The minutes the wheel and the chevrons step the minute cell by: a quarter hour by default.",
"type": "int"
}
],
"events": [
{
"name": "changed",
"doc": "The time changed: carries the instant, at the time chosen today.",
"value": "time"
}
],
"bindings": [
{
"name": "value",
"doc": "The moment, as the instant a component binds (its ISO text): today at the time chosen. A change sets the time kept in it.",
"type": "time",
"merge": "register"
}
],
"semantics": {
"role": "Group",
"label": "label"
}
},
{
"name": "Timeline",
"doc": "A day, week or month as a time grid: events at their hours laid side by side where they overlap, an all-day lane, the line where now is, and a month of days with what stands on each. Dragging an event moves it, dragging its edge resizes it, and dragging across empty hours makes one that starts and ends where the drag did; each is a typed event, and the grid never changes what it shows.",
"props": [
{
"name": "label",
"doc": "What the grid is, for assistive technology: \"This week\".",
"type": {
"option": "text"
}
},
{
"name": "range",
"doc": "The range shown: the day, the week of a day, or the month of a day.",
"type": {
"choice": {
"name": "TimelineMode",
"cases": [
"day",
"week",
"month"
]
}
}
},
{
"name": "start",
"doc": "The day the period stands in.",
"type": "time",
"required": true
},
{
"name": "slot",
"doc": "The minutes a drag snaps to: a quarter hour by default.",
"type": "int"
},
{
"name": "show_now",
"doc": "Whether the line where now is shows, read from the frame's clock (views cannot read it).",
"type": "bool"
},
{
"name": "zoom",
"doc": "How tall an hour is drawn against its legible minimum: 1 is the minimum, 2 twice it.",
"type": "float"
},
{
"name": "rows",
"doc": "How many all-day rows the lane keeps, whatever the events need.",
"type": "int"
}
],
"parts": [
{
"name": "items",
"doc": "What stands on the grid, in no particular order: each is placed by its own times.",
"accepts": {
"component": "TimelineItem"
},
"many": true,
"default": true
}
],
"events": [
{
"name": "created",
"doc": "Empty hours were dragged across: carries where the new event starts and ends.",
"value": "time",
"at": "time"
},
{
"name": "open_day",
"doc": "A day's head was pressed: carries that day.",
"value": "time"
},
{
"name": "zoomed",
"doc": "The person zoomed the hours: carries the new zoom.",
"value": "float"
}
],
"semantics": {
"role": "Group",
"label": "label"
}
},
{
"name": "Timer",
"doc": "A clock the view holds: `tick` every `every` seconds, or once `after` seconds, counted from when the view first showed it.",
"props": [
{
"name": "every",
"doc": "How many seconds between ticks: it ticks again and again while it is shown; 0 for a timer that ticks once.",
"type": "float"
},
{
"name": "after",
"doc": "How many seconds until its one tick: it ticks once and then rests; 0 for one that ticks again and again.",
"type": "float"
},
{
"name": "restart",
"doc": "What it counts from: whenever this changes, it counts again from now. A field's text here makes a timer `after` a short while tick once the person stops typing, not at every key.",
"type": "text"
}
],
"events": [
{
"name": "tick",
"doc": "Its time came."
}
],
"semantics": {
"role": "Timer",
"not_in_gallery": "it draws nothing: its ticks are what a view does with them"
}
},
{
"name": "Toggle",
"doc": "A switch: the same two states as a checkbox, for a setting that takes effect at once rather than when a form is sent. Its knob slides to the side it turns to.",
"props": [
{
"name": "shown",
"doc": "Whether it is on, for a view that reads the state rather than binding a place of its own: the switch shows it and turns only through its event, so a change from elsewhere shows when the view is drawn again.",
"type": {
"option": "bool"
}
},
{
"name": "label",
"doc": "The setting's name, beside the switch at the row's leading edge: the whole row turns it, and assistive technology reads it with the state.",
"type": {
"option": "text"
},
"positional": true
},
{
"name": "enabled",
"doc": "Whether it can be turned now.",
"type": "bool"
}
],
"events": [
{
"name": "check",
"doc": "It was turned: whether it is on now, in the app's words.",
"value": "bool"
}
],
"bindings": [
{
"name": "value",
"doc": "Whether it is on, and where a turn of it goes.",
"type": "bool",
"merge": "register"
}
],
"semantics": {
"role": "Switch",
"label": "label"
}
},
{
"name": "ToggleGroup",
"doc": "A small set of choices, one of which is made: an alignment, a density, a unit. The chosen one is a thumb lifted off the track.",
"props": [
{
"name": "selected",
"doc": "Which choice is made, counted from 0: none until the person makes one.",
"type": {
"option": "int"
}
},
{
"name": "caption",
"doc": "A label over the strip naming what it chooses between.",
"type": {
"option": "text"
}
},
{
"name": "label",
"doc": "Its spoken name, for a strip its caption does not name.",
"type": {
"option": "text"
}
},
{
"name": "size",
"doc": "How large its segments are: `regular` unless said.",
"type": {
"choice": {
"name": "ControlSize",
"cases": [
"small",
"regular",
"large"
]
}
}
},
{
"name": "fill",
"doc": "Share the row's width equally instead of fitting each label.",
"type": "bool"
},
{
"name": "enabled",
"doc": "Whether it can be chosen from now.",
"type": "bool"
}
],
"parts": [
{
"name": "options",
"doc": "The choices, in order.",
"accepts": {
"component": "Segment"
},
"many": true,
"default": true
}
],
"events": [
{
"name": "change",
"doc": "A choice was made: carries the index of the chosen option, counted from 0.",
"value": "int"
}
],
"semantics": {
"role": "Group",
"label": "caption"
}
},
{
"name": "ViewTabs",
"doc": "Tabs that switch what a window's content shows: a request's Params, Headers and Body, a container's Logs and Stats. Assistive technology meets them as a tab list whose chosen tab is selected, not checked.",
"props": [
{
"name": "selected",
"doc": "Which tab shows, counted from 0.",
"type": {
"option": "int"
}
},
{
"name": "label",
"doc": "Its spoken name for assistive technology.",
"type": {
"option": "text"
}
},
{
"name": "size",
"doc": "How large the tabs are: `regular` unless said.",
"type": {
"choice": {
"name": "ControlSize",
"cases": [
"small",
"regular",
"large"
]
}
}
},
{
"name": "fill",
"doc": "Share the row's width equally instead of fitting each label.",
"type": "bool"
},
{
"name": "enabled",
"doc": "Whether it can be chosen from now.",
"type": "bool"
}
],
"parts": [
{
"name": "tabs",
"doc": "The tabs, in order.",
"accepts": {
"component": "Segment"
},
"many": true,
"default": true
}
],
"events": [
{
"name": "change",
"doc": "Another tab was chosen: carries its index, counted from 0.",
"value": "int"
}
],
"semantics": {
"role": "TabBar",
"label": "label"
}
},
{
"name": "Toolbar",
"doc": "A strip of commands: plain buttons in a row, groups split by hairlines, toggles that stand lifted while on. However narrow the window, every command stays reachable: those that do not fit go to a More menu at the end, the least important first.",
"props": [
{
"name": "vertical",
"doc": "Stand the commands in a column rather than a row.",
"type": "bool"
}
],
"parts": [
{
"name": "items",
"doc": "Its commands, separators and spacers, in order.",
"accepts": {
"one_of": [
"ToolbarButton",
"ToolbarSeparator",
"ToolbarSpacer"
]
},
"many": true,
"default": true
}
],
"semantics": {
"role": "Toolbar"
}
},
{
"name": "TrackTimeline",
"doc": "A time ruler over rows of tracks, with what stands on each track as spans, the markers a person set on the ruler and the playhead: a film's cut, a sound's layers, a show's timing. Dragging a span moves it along its track or onto another, dragging its edge trims it, and both line up with the grid, the other spans' edges, the markers and the playhead; dragging along the ruler moves the playhead. The wheel and a pinch zoom the lane about the pointer and scroll it along the time, and a bar under the tracks shows how much of the cut the lane holds and moves it. Each is a typed event, and the timeline never changes what it shows: the view commits the change, and the span settles into the place the view gives it.",
"props": [
{
"name": "label",
"doc": "What the timeline is, for assistive technology: \"The cut\".",
"type": {
"option": "text"
}
},
{
"name": "span",
"doc": "How many seconds the lane shows across its width: the zoom.",
"type": "float"
},
{
"name": "scroll",
"doc": "The moment the lane's leading edge shows.",
"type": "float"
},
{
"name": "playhead",
"doc": "Where the playhead stands, in seconds.",
"type": "float"
},
{
"name": "length",
"doc": "How long what is on the tracks runs, in seconds: where zooming to fit and the end key go.",
"type": "float"
},
{
"name": "clips",
"doc": "The moments a measurement found a problem at — where the mix went over full scale — marked on the ruler and down the tracks, so the flag stands where it happened.",
"type": {
"list": "float"
}
},
{
"name": "step",
"doc": "The grid a drag lands on, in seconds: one frame (1/30) for a film, nothing for free time.",
"type": "float"
}
],
"parts": [
{
"name": "tracks",
"doc": "The tracks, top to bottom, each with what stands on it.",
"accepts": {
"component": "TimelineTrack"
},
"many": true,
"default": true
},
{
"name": "markers",
"doc": "The moments marked on the ruler.",
"accepts": {
"component": "TimelineMarker"
},
"many": true
}
],
"events": [
{
"name": "scrub",
"doc": "The playhead is being dragged: carries where it is now, as the hand moves.",
"value": "float"
},
{
"name": "seek",
"doc": "The playhead was set down: the ruler pressed, the playhead let go, or a key moved it. Carries where it stands.",
"value": "float"
},
{
"name": "zoomed",
"doc": "The person zoomed: carries how many seconds the lane shows now.",
"value": "float"
},
{
"name": "scrolled",
"doc": "The person scrolled along the time: carries the moment the leading edge shows now.",
"value": "float"
},
{
"name": "press",
"doc": "A track's empty stretch was pressed: carries the moment and the track's key.",
"value": "float",
"at": "text"
}
],
"semantics": {
"role": "Group",
"label": "label"
}
},
{
"name": "TreeView",
"doc": "A tree of nodes: a file explorer, a project's files, the layers of a drawing, a book's pages. Each node is the resource it stands for; opening a branch shows the nodes under it, and selecting or activating a node reports its resource.",
"props": [
{
"name": "name",
"doc": "What the tree is, for assistive technology.",
"type": {
"option": "text"
}
},
{
"name": "fill",
"doc": "The tree takes the height it is given and scrolls inside itself, rather than sizing to the rows inside another scroll. Such a tree is the pane's list, so its rows stand on the pane's content edge (where the pane's header starts its title) with their lift bleeding past it, as every list in a column does — including a phone's window, where the pane is the whole screen and the rows keep the page gutter at its glass.",
"type": "bool"
},
{
"name": "hide_root",
"doc": "The tree's root node — the tree itself, labelled with its `name` — is not a row: the nodes at the top level are, at the first depth. Off, the tree's name stands over them as a row of its own.",
"type": "bool"
},
{
"name": "single_click",
"doc": "A press selects and activates in one, as a navigator sidebar does; a double click activates otherwise.",
"type": "bool"
},
{
"name": "selection_follows_focus",
"doc": "Moving through the rows with the keyboard selects them as it goes.",
"type": "bool"
},
{
"name": "multi_select",
"doc": "Whether several nodes may be selected at once (Ctrl-click, Shift-click).",
"type": "bool"
},
{
"name": "reorder",
"doc": "Rows move: by dragging one onto another (before it, inside it or after it), and by `Tab` and `Shift-Tab` to indent and outdent, `Alt-Up` and `Alt-Down` to reorder among siblings. A move is reported by the node it lands at ([`TreeViewNodeProps::drop`], [`TreeViewNodeProps::into`]) or, at the top level's end, by the tree's [`Self::drop`].",
"type": "bool"
},
{
"name": "tab_indents",
"doc": "`Tab` and `Shift-Tab` indent and outdent the focused row. On by itself with [`Self::reorder`]; off, `Tab` moves the focus on as it otherwise would.",
"type": "bool"
},
{
"name": "motion",
"doc": "The pace its own motion plays at: branches unfolding, rows arriving and leaving. Unset, the theme's.",
"type": {
"option": {
"choice": {
"name": "Motion",
"cases": [
"standard",
"brisk",
"calm",
"still"
]
}
}
}
}
],
"parts": [
{
"name": "nodes",
"doc": "The nodes, in order, parents before their children.",
"accepts": {
"component": "TreeViewNode"
},
"many": true,
"default": true
},
{
"name": "removed",
"doc": "The rows in place of nodes someone else removed that the person has not seen go: they stand after the nodes, struck, each with its mark. The UI host places them.",
"accepts": {
"component": "TreeViewNode"
},
"many": true
}
],
"events": [
{
"name": "select",
"doc": "A node was selected: carries the resource it shows.",
"value": "resource"
},
{
"name": "activate",
"doc": "A node was activated (a double click, Enter, an assistive technology): carries the resource it shows.",
"value": "resource"
},
{
"name": "drop",
"doc": "A row was dropped just before another, or moved there by the keyboard: carries the row that moved and the row it lands before — none for the end of the top level.",
"value": "resource",
"at": {
"option": "resource"
}
},
{
"name": "into",
"doc": "A row was dropped inside another, at the end of its own, or indented there by the keyboard: carries the row that moved and the row it lands inside — none for the end of the top level, which stands inside no row.",
"value": "resource",
"at": {
"option": "resource"
}
},
{
"name": "after",
"doc": "A row was dropped just after another and all that stands under it, or moved there by the keyboard: carries the row that moved and the row it lands after. The view places it past that row's own, which only the view can name: what stands under them are rows the tree may not have built.",
"value": "resource",
"at": "resource"
}
],
"state": [
{
"name": "expanded",
"doc": "The nodes open now, by the resource each stands for. Given, it is where the view says the tree is; without it the tree keeps what a person opened.",
"type": {
"option": {
"list": "resource"
}
}
},
{
"name": "matching",
"doc": "The rows a search found, by the resource each stands for, when the tree shows what the search narrowed it to: the rows the tree shows that are not among them stand for where the found ones are, and read in the quietest ink. None, every row is one the tree shows for itself.",
"type": {
"option": {
"list": "resource"
}
}
},
{
"name": "selection",
"doc": "The nodes selected, by the resource each stands for.",
"type": {
"option": {
"list": "resource"
}
}
}
],
"semantics": {
"role": "Tree",
"label": "name"
}
},
{
"name": "Treemap",
"doc": "A hierarchy as rectangles: each part of the first level a rectangle as large as its share of the whole, its label written on it where it fits, in a colour from the theme. Use it where labels have to be read, rather than followed round a ring.",
"props": [
{
"name": "parts",
"doc": "The parts, each naming the part it belongs to: `.part(id: \"build\", parent: \"ci\", label: \"Build\", value: 12.0)`. A part nothing names as its parent is a rectangle of its own, as large as everything under it.",
"type": {
"list": {
"cases": {
"name": "Part"
}
}
},
"required": true,
"positional": true
},
{
"name": "title",
"doc": "What it shows, over it and as assistive technology announces it.",
"type": {
"option": "text"
}
}
],
"semantics": {
"role": "Image",
"label": "title"
}
},
{
"name": "VideoPlayer",
"doc": "A video with its playback controls over it: play/pause, the scrubber, the volume, mute and fullscreen. The app's player is the one truth; what the person does reaches the view as its events.\nThe video's bytes are a camera, a capture, or the medium it names (a file or a stream), which the toolkit opens on the engine its app hands in.",
"props": [
{
"name": "title",
"doc": "The video's title, for assistive technology.",
"type": {
"option": "text"
}
},
{
"name": "poster",
"doc": "A still shown before the first frame: a picture by its address.",
"type": {
"option": "text"
},
"data": true
},
{
"name": "playing",
"doc": "Whether it plays.",
"type": "bool"
},
{
"name": "position",
"doc": "Where it is, in seconds.",
"type": {
"option": "float"
}
},
{
"name": "duration",
"doc": "How long it is, in seconds.",
"type": {
"option": "float"
}
},
{
"name": "seek_to",
"doc": "Jump here, in seconds: a one-shot control, applied when `seek_to_seq` changes, so a bookmark's jump, a restart or a jump to the end reaches the player once and the resting `position` never fights the `progress` reading.",
"type": {
"option": "float"
}
},
{
"name": "seek_to_seq",
"doc": "Counts the view's jumps: a number it raises each time it asks to jump.",
"type": {
"option": "int"
}
},
{
"name": "source",
"doc": "Where it is stored, as a `file://` address or a URL the engine fetches.",
"type": {
"option": "text"
},
"data": true
},
{
"name": "volume",
"doc": "The volume, `0..=1`.",
"type": {
"option": "float"
}
},
{
"name": "muted",
"doc": "Whether it is muted.",
"type": "bool"
},
{
"name": "rate",
"doc": "The speed it plays at, `0.25..=4`; absent at normal speed.",
"type": {
"option": "float"
}
},
{
"name": "live",
"doc": "Whether the source airs as it plays (an HLS or DASH manifest): the player says where it stands is live and a jump goes to the live edge rather than to a place in a recording.",
"type": "bool"
},
{
"name": "qualities",
"doc": "The qualities it offers to pick from, best first; empty when it has no choice.",
"type": {
"list": "text"
}
},
{
"name": "playing_quality",
"doc": "The quality it plays at, as one of `qualities`; empty takes the first.",
"type": {
"option": "text"
}
},
{
"name": "caption_tracks",
"doc": "The caption tracks it offers, by the language code each is in: the label the menu shows.",
"type": {
"map": {
"key": "text",
"value": "text"
}
}
},
{
"name": "caption_language",
"doc": "The language code of the track whose words are shown; empty turns captions off.",
"type": {
"option": "text"
}
},
{
"name": "captions",
"doc": "The words of the chosen track, as the WebVTT document it is: drawn over the picture as the playhead reaches each cue.",
"type": {
"option": "text"
}
},
{
"name": "repeat",
"doc": "Whether it begins again when it ends.",
"type": "bool"
},
{
"name": "audio_track",
"doc": "The audio track by its index in `audio_tracks`; absent leaves the engine's choice.",
"type": {
"option": "int"
}
},
{
"name": "subtitle_track",
"doc": "The subtitle track by its index in `subtitle_tracks`; `-1` turns subtitles off.",
"type": {
"option": "int"
}
}
],
"events": [
{
"name": "set_playing",
"doc": "Play or pause was pressed: carries `true` when it plays.",
"value": "bool"
},
{
"name": "seek",
"doc": "It was moved to a place in the video: carries `0..=1`.",
"value": "float"
},
{
"name": "set_volume",
"doc": "The volume was set: carries `0..=1`.",
"value": "float"
},
{
"name": "set_rate",
"doc": "A speed was chosen: carries it, as `1.0` is normal.",
"value": "float"
},
{
"name": "select_quality",
"doc": "A quality was chosen: carries its label, one of `qualities`.",
"value": "text"
},
{
"name": "select_captions",
"doc": "A caption track was chosen: carries its language code, empty for off.",
"value": "text"
},
{
"name": "fail",
"doc": "The player could not show its video: carries what the engine said, and where in the video it stopped, in seconds. A stream a source serves only partway through stops here, and the app asks the source for a fresh address and continues from that place.",
"value": "text",
"at": "float"
},
{
"name": "progress",
"doc": "Where playback got to while it played, as a share of its length (`0..=1`): reported on the first frame it plays, then every five seconds, and once more when it stops, so a view remembers the place a video was left at even when nobody moved the playhead.",
"value": "float"
},
{
"name": "length",
"doc": "How long it runs, in seconds, once the engine has read it.",
"value": "float"
},
{
"name": "audio_tracks",
"doc": "The audio tracks' labels, in the order `audio_track` indexes them.",
"value": {
"list": "text"
}
},
{
"name": "subtitle_tracks",
"doc": "The subtitle tracks' labels, in the order `subtitle_track` indexes them.",
"value": {
"list": "text"
}
},
{
"name": "chapters",
"doc": "The chapters' labels, in the order `seek` indexes them.",
"value": {
"list": "text"
}
}
],
"semantics": {
"role": "Group",
"label": "title"
}
},
{
"name": "VirtualList",
"doc": "A long list of rows that costs only the rows on screen: each is built when it scrolls into view. Selection follows the person's choice and is reported with the item it shows; the list is one focus stop.",
"props": [
{
"name": "name",
"doc": "What the list is, for assistive technology.",
"type": {
"option": "text"
}
},
{
"name": "selection_follows_focus",
"doc": "Moving through the rows with the keyboard selects them, as a list whose selection shows beside it does; a click or a tap on a row then activates it, as choosing an entry of an overview does.",
"type": "bool"
},
{
"name": "in_column",
"doc": "The list is a column's whole body: its rows' text starts where the column's header starts its title.",
"type": "bool"
},
{
"name": "narrow",
"doc": "The window is too narrow to hold an item under its row: a row that carries an item opens it in front of the list, where the window's back leads back to the rows, and a row the host held open closes as the window narrows.",
"type": "bool"
},
{
"name": "follow_end",
"doc": "The list is read to its end: it opens at its last row and stays there as rows arrive and settle, unless the person scrolled away ([`VirtualList::following_end`]).",
"type": "bool"
},
{
"name": "page_column",
"doc": "Each row stands in the page column: a section's gap under the row before it, each run one author wrote under that author's name and the time ([`ListItemProps::author`], [`ListItemProps::time`]), and a press that gives a row the keyboard, choosing none.",
"type": "bool"
},
{
"name": "at_measure",
"doc": "The page column's rows keep the readable measure every page sets its blocks on ([`MEASURE_REM`]), centred in the width the list is given. Without it they fill that width, as a conversation's messages do.",
"type": "bool"
},
{
"name": "tail_title",
"doc": "The title over the list's tail group: the rows whose item says it is one of those done with ([`ListItemProps::tail`]) stand after every group, under it, closed until the person opens them. `None` leaves those rows among the others.",
"type": {
"option": "text"
}
},
{
"name": "tree",
"doc": "The rows stand as a tree: each indented under the row of the item it names as its parent ([`ListItemProps::parent`]), with a disclosure on the rows that have subtasks, folding them away. The list works the tree out of the items as it builds their rows.",
"type": "bool"
},
{
"name": "ungrouped_title",
"doc": "The title over the group of rows whose item names no group: a list grouped by a thing some items lack (a day, a place) heads those rows with it, never folding them under the last group that names one. The rows keep the order their list gives.",
"type": {
"option": "text"
}
},
{
"name": "view_title",
"doc": "The title of the view this list stands under, as the view's header reads it, and how many things it counts beside it (`view_count`): a list whose rows all stand in one group heads them with nothing when that heading says what the title already says — the same words, counting the same rows — since the title over the list says it once. The host fills both from the shell of the window the list stands in ([`VirtualList::in_view`]).",
"type": {
"option": "text"
}
},
{
"name": "view_count",
"doc": "How many things the view's title counts beside it (`view_title`).",
"type": {
"option": "int"
}
},
{
"name": "most",
"doc": "As tall as its rows, but no taller than this, in logical pixels, and it scrolls what it does not show: a list in a place that hugs what it holds (a roster in a panel, a picker) whose rows would otherwise make the place as tall as all of them. A list that takes its parent's height already (`in_column`) needs none.",
"type": {
"option": "float"
}
},
{
"name": "multi_select",
"doc": "The list holds more than one selected row: a click with ctrl (or cmd) adds or takes away the row it lands on, one with shift takes the range from the last row chosen, and Escape puts the selection away. Without it a click chooses the one row the window shows.",
"type": "bool"
},
{
"name": "unseen_from",
"doc": "The item where the person looking has seen nothing yet (`first_unseen(c)`): the toolkit's [`SectionDivider`](crate::widget::conversation::SectionDivider) stands over the row that shows it, and while that is above the view a pill at the foot offers the way back to it ([`VirtualList::following_end`]). `None` draws neither.",
"type": {
"option": "resource"
}
},
{
"name": "chosen_values",
"doc": "The rows selected, by the values they stand for (`ListItem.value`): a selection the host keeps for its person, given back whole each time, so a list whose rows come and go (a folder read again, another folder) selects what the host chose and nothing else. Empty selects nothing; none leaves the list's own choice.",
"type": {
"option": {
"list": "text"
}
}
},
{
"name": "reveal",
"doc": "The row the view asks the list to show, by its key: a row below the fold scrolls into view at the list's motion, without taking the keyboard or the selection, as an address book does for the first card under a letter. It moves the list when the key it names changes; a key the list does not hold yet is shown as soon as it does, and one already in view stays where the person scrolled it.",
"type": {
"option": "text"
}
},
{
"name": "motion",
"doc": "The pace its rows arrive, leave and change places at, and the rows it builds move at when they say nothing themselves: the theme's unless it says otherwise.",
"type": {
"option": {
"choice": {
"name": "Motion",
"cases": [
"standard",
"brisk",
"calm",
"still"
]
}
}
}
}
],
"parts": [
{
"name": "rows",
"doc": "The items, in order.",
"accepts": {
"component": "ListItem"
},
"many": true,
"default": true
},
{
"name": "removed",
"doc": "Items someone else removed that the person has not seen go: each a row after the items, its title struck through. The UI host places them.",
"accepts": {
"component": "ListItem"
},
"many": true
}
],
"events": [
{
"name": "revealed",
"doc": "The row the list brought up for `reveal`, once it moved to it: the view takes the ask back on it (`reveal: .none`), so the same row can be asked for again after a person scrolled away.",
"value": "resource"
},
{
"name": "select",
"doc": "A row was selected: carries the item it shows.",
"value": "resource"
},
{
"name": "activate",
"doc": "A row was activated (a click, Enter, an assistive technology): carries the item it shows.",
"value": "resource"
},
{
"name": "edit",
"doc": "The edit key was pressed on the focused row: carries the item it shows, for the app's own edit action.",
"value": "resource"
},
{
"name": "delete",
"doc": "Delete was pressed on the focused row: carries the item it shows, for the app's destructive action.",
"value": "resource"
},
{
"name": "selected",
"doc": "The selection changed: carries the items selected, in the order they stand, and none when the selection was put away."
},
{
"name": "select_value",
"doc": "A row that stands for a value was selected: carries its value.",
"value": "text"
},
{
"name": "selected_values",
"doc": "The selection changed: carries the values of the rows selected that stand for one, in the order they stand.",
"value": {
"list": "text"
}
},
{
"name": "opened",
"doc": "The person opened a row into its item where it stands: carries the item.",
"value": "resource"
},
{
"name": "closed",
"doc": "The row held open closed: pressed again, Escape, a press beside it, or its item left the list."
},
{
"name": "end",
"doc": "The person read the list to its end: the last screen of its rows came into view. It fires once each time they arrive at the end and not while they stay there, so a list that shows one page of a longer thing asks for the page after it once per reading ([`VirtualList::set_on_end_reached`])."
},
{
"name": "reorder",
"doc": "A row was dropped in another place: carries the row's id and the id of the row it was dropped on, in that order. The app moves its own list; the list keeps no order of its own.",
"value": {
"list": "text"
}
}
],
"state": [
{
"name": "selection",
"doc": "The selected rows, by key.",
"type": {
"option": {
"list": "text"
}
}
},
{
"name": "chosen",
"doc": "The items selected, in the order they stand: the selection a host keeps for its person, given back so a list built again shows it as they left it.",
"type": {
"option": {
"list": "resource"
}
}
},
{
"name": "scroll",
"doc": "How far the list is scrolled, in logical pixels.",
"type": {
"option": "float"
}
},
{
"name": "open",
"doc": "The item held open into its document where it stands in the list: its row grows to hold what the item's row gives as its `detail`, and Escape or a press beside it closes it. A host keeps which item is open and gives it back, so a list it builds again shows the item as the person left it.",
"type": {
"option": "resource"
}
}
],
"semantics": {
"role": "List",
"label": "name"
}
},
{
"name": "WebView",
"doc": "A page, live: a browser's content, a help document, a web app embedded in a view. Its address bar, navigation and permission prompts belong to its host: this is the page alone, and the app reports what the page navigated to as its events.",
"props": [
{
"name": "title",
"doc": "What the page is, for assistive technology.",
"type": {
"option": "text"
}
},
{
"name": "uri",
"doc": "The page's address, which it opens at first.",
"type": {
"option": "text"
},
"data": true
},
{
"name": "pip",
"doc": "Whether the page's video floats above the app's window as picture-in-picture: the host shows the picture where the page draws it, and the view puts it back in the page when the app stops asking.",
"type": "bool"
},
{
"name": "surface",
"doc": "Which of the window's pages it shows: the one the person browsed, or the window's second one beside or over it (`panel`: an extension's side panel, a sign-in page). The window holds both engines and hands in the one this names; without it the view shows the page.",
"type": {
"option": "text"
}
}
],
"events": [
{
"name": "navigate",
"doc": "The page navigated (the person followed a link): carries the address.",
"value": "text"
},
{
"name": "fail",
"doc": "The page could not load: carries what the engine said.",
"value": "text"
},
{
"name": "picture_in_picture_closed",
"doc": "The shell returned the picture to the page: the person closed the floated window, or the shell handed it back. The view stops floating when the app stops asking; this is how the app learns the person is done."
}
],
"semantics": {
"role": "Document",
"label": "title"
}
},
{
"name": "WindowFrame",
"doc": "A window on a shell: the window surface with its edge and shadow, holding the window's content and its controls, clipped to its radius.",
"props": [
{
"name": "name",
"doc": "The window's name: what assistive technology reads, and the title of the frame's own bar when the content has no header row to hold the controls.",
"type": {
"option": "text"
},
"data": true
},
{
"name": "glyph",
"doc": "The glyph the frame's own bar shows before the window's name, by its icon name (the app's own, `w.icon`): a window whose content has no header row still says what it shows.",
"type": {
"option": "text"
}
},
{
"name": "focused",
"doc": "Whether it is the window in front, the one the keyboard goes to.",
"type": "bool"
},
{
"name": "lists_actions",
"doc": "The shell lists this window's actions where the person reaches them (the shell bar's window menu): its header's actions that do not fit give way with no API of their own. Without it what does not fit goes behind the header's API.",
"type": "bool"
},
{
"name": "carries",
"doc": "The resource the window's bar carries when a person picks it up, by its published address: a place on the canvas is dragged onto a composer, or back onto the canvas, by its own bar ([`ui.DragSource`](super::drag_source::DragSource), `shell.md` §8.1). Empty leaves the bar no source, as a foreign window's bar has nothing to carry.",
"type": {
"option": "text"
}
},
{
"name": "keep",
"doc": "The name a scroll view around this window keeps in view (`scroll(..., keep:)`): the front strip of a row, which comes into view as the person moves between windows. Unset, the window asks for nothing.",
"type": {
"option": "text"
},
"data": true
},
{
"name": "leaving",
"doc": "Whether the window has just closed: its frame is drawn where it stood and goes back into the control it was asked for from, taking nothing meanwhile. The shell keeps a closed window in its layout reading for its departure and draws it here.",
"type": "bool"
},
{
"name": "control",
"doc": "The control the person pressed for it, in the shell's pixels as `x, y`: the dock icon or the search row a window comes out of and goes back into. Empty for a window a shortcut or an agent asked for, which lands and grows where it stands.",
"type": {
"list": "int"
}
},
{
"name": "enabled",
"doc": "Whether the window's bar takes a press now.",
"type": "bool"
},
{
"name": "description",
"doc": "Why it cannot be pressed now, where the name does not say (an action whose requirement does not hold): spoken as its description beside the name.",
"type": {
"option": "text"
}
}
],
"parts": [
{
"name": "controls",
"doc": "The frame's controls (close, and what else the shell offers on the window), at the trailing end of the window's bar.",
"accepts": "view"
},
{
"name": "tabs",
"doc": "The places the window shows, as its tabs: the bar is theirs while there are any, and the content is the tab in front. Empty for a window of one place, whose bar is the place's own header or the frame's.",
"accepts": "view"
},
{
"name": "body",
"doc": "The window's content, filling the window.",
"accepts": "view",
"default": true
}
],
"events": [
{
"name": "press",
"doc": "A press on the window's bar, where nothing on it took the press: the person reaching for the window, which the shell answers by bringing it forward with the keyboard in it.",
"press": true
}
],
"semantics": {
"role": "Group",
"label": "name"
}
},
{
"name": "WindowPreview",
"doc": "A window's live picture, at the rectangle the preview stands at: the compositor draws the window's own pixels there, so the preview draws nothing and takes no input.",
"props": [
{
"name": "window",
"doc": "The window whose picture shows here: its key in the shell's reading (`Win.key`).",
"type": "text",
"required": true,
"positional": true,
"data": true
}
],
"semantics": {
"role": "Group",
"label": "window",
"not_in_gallery": "a preview draws nothing: the compositor draws the window's own pixels there, and a gallery entry has no window to show"
}
},
{
"name": "WindowWell",
"doc": "A place's window, at the rectangle the well stands at: the app's own window shows there, so the well draws nothing and takes no input.",
"props": [
{
"name": "place",
"doc": "The place whose window shows here: the tab id the shell model gives the window when it maps (shell.md §8).",
"type": "text",
"required": true,
"positional": true,
"data": true
}
],
"semantics": {
"role": "Group",
"label": "place",
"not_in_gallery": "a well draws nothing: the place's own window is composited there, so a gallery window has no well to show"
}
},
{
"name": "BlockEditor",
"doc": "A document: its paragraphs with their formatting, and each reference in it as the reader's own inline view of what it refers to (a person with their name, a channel, a task with its number), resolved under their permissions.",
"props": [
{
"name": "value",
"doc": "Rich text it shows read-only, when it binds nothing.",
"type": {
"option": "rich_text"
},
"positional": true
},
{
"name": "placeholder",
"doc": "What to type, shown while the editor is empty.",
"type": {
"option": "text"
}
},
{
"name": "size",
"doc": "The size the document's body text takes, in points: a slide's text box sets its own, so the words are as large on the slide as its author said. The theme's unless said.",
"type": {
"option": "float"
}
},
{
"name": "colour",
"doc": "The colour the words are painted in, `#rrggbb`: a text box on a deck's own ground keeps that ground's readable ink. The theme's text ink unless said.",
"type": {
"option": "text"
}
},
{
"name": "align",
"doc": "How its paragraphs line up, where no paragraph says: `left`, `center`, `right` or `justify`. Left unless said.",
"type": {
"option": "text"
}
},
{
"name": "focus",
"doc": "The view wants the keyboard in this editor — the box it just made, or the box a person opened — so it takes it as it is built and the caret stands in its words. Nothing is forced while false, and an editor that already holds the keyboard keeps it.",
"type": {
"option": "bool"
}
},
{
"name": "links",
"doc": "The records a `[[` link offers, each as it reads for the person now: choosing one writes a reference to it in the text, which every reader reads as it reads now.",
"type": {
"list": "link"
}
},
{
"name": "commands",
"doc": "The commands the editor's slash menu offers besides the block kinds, by their labels: choosing one reports it as `command`.",
"type": {
"list": "text"
}
},
{
"name": "slash",
"doc": "The commands only an editor can carry out that its slash menu offers besides the block kinds: `image` puts a picture the person chooses in the document, `page` makes a page inside this one, titled with the block's words. A view offers only the ones it answers.",
"type": {
"list": "text"
}
},
{
"name": "page",
"doc": "The paper the document is set on: `A4`, `Letter` or `Legal`. A view that asks for pages has the stack broken into sheets with the margins a printed page keeps, each sheet carrying `header` in its top margin and `footer` and its number in the bottom one.",
"type": {
"option": "text"
}
},
{
"name": "header",
"doc": "Words set in every page's top margin, such as the document's title.",
"type": {
"option": "text"
}
},
{
"name": "footer",
"doc": "Words set in every page's bottom margin, before the page number.",
"type": {
"option": "text"
}
},
{
"name": "margin_top",
"doc": "The page's top margin in points, where the view sets it; an inch otherwise.",
"type": {
"option": "float"
}
},
{
"name": "margin_right",
"doc": "The page's right margin in points, where the view sets it.",
"type": {
"option": "float"
}
},
{
"name": "margin_bottom",
"doc": "The page's bottom margin in points, where the view sets it.",
"type": {
"option": "float"
}
},
{
"name": "margin_left",
"doc": "The page's left margin in points, where the view sets it.",
"type": {
"option": "float"
}
},
{
"name": "zoom",
"doc": "How much larger the document reads than its own size, as a page's zoom field sets it: 1 shows it as it is, 2 twice as large. The pages break again at the zoom.",
"type": {
"option": "float"
}
},
{
"name": "link_to",
"doc": "The record the block named by `link` becomes a link to: the page a view made from it.",
"type": {
"option": "link"
}
}
],
"events": [
{
"name": "open_reference",
"doc": "A reference in the text was activated, carrying the reference.",
"value": "text"
},
{
"name": "links_open",
"doc": "The `[[` link picker opened or closed: what a view answering `links_query` keeps to offer records only while the picker shows them.",
"value": "bool"
},
{
"name": "links_query",
"doc": "The text typed into the open `[[` link picker, each time it changes: a view whose records are a collection asks the store for what it holds of it, and hands back `links` — a page of them, read when the picker shows it rather than on every frame of the document.",
"value": "text"
},
{
"name": "command",
"doc": "A command of `commands` was chosen, carrying its label: the view does what the label says, as it would for a button it placed.",
"value": "text"
},
{
"name": "slash_image",
"doc": "The person chose a picture from the slash menu: the view chooses the file and puts it in the document, as its own Insert image does."
},
{
"name": "slash_page",
"doc": "The person chose a page from the slash menu, in the block the words are: the view makes the page titled with those words, and names it again with `link` once it has.",
"value": "text"
},
{
"name": "changes",
"doc": "The tracked changes the document holds, each time they change: each change's id, and its kind (0 for one that inserted words, 1 for one that deleted them). What a review panel lists so the person takes or rejects one change at a time.",
"value": {
"list": "text"
},
"at": {
"list": "int"
}
},
{
"name": "headings",
"doc": "The document's headings, in the order they stand, each time they change: their words, and how deep each stands (1 for `#`). A heading reads as its words, never as the `#`s a writer typed, so a view draws one as it says.",
"value": {
"list": "text"
},
"at": {
"list": "int"
}
},
{
"name": "selection",
"doc": "The person's selection changed: the block it starts in, by its id, then its start and end within that block, counted in characters. A caret is the same place twice. What a view anchors a comment to: the words the person has selected, where they are, not wherever the document ends.",
"value": "text",
"at": {
"list": "int"
}
},
{
"name": "comment",
"doc": "A press on a comment's marker in the margin: the id of the comment it stands for, which the view opens in the thread it came from.",
"value": "text"
},
{
"name": "image",
"doc": "A picture pasted or dropped into the document, written in at the caret: its name, then the `tilo-blob://` address its bytes were kept at. What an app that names the pictures its document shows — an export writing each beside the note — records of one.",
"value": {
"list": "text"
}
},
{
"name": "page_count",
"doc": "How many sheets the document fills at the width it is laid out at, each time that changes: what a status bar writes as \"Page N of M\". Zero writes on one continuous page.",
"value": "int"
},
{
"name": "page_shown",
"doc": "The sheet the caret stands on, or the sheet the view's top shows where the document has no caret, each time that changes: the \"N\" a status bar writes in \"Page N of M\", one-based. Zero writes on one continuous page.",
"value": "int"
}
],
"bindings": [
{
"name": "rich",
"doc": "The document it edits, as its paragraphs (a `RichText` field).",
"type": "rich_text",
"merge": "rich"
},
{
"name": "markdown",
"doc": "The document it edits, as Markdown (a `Text` field), the same text round-tripped.",
"type": "text",
"merge": "splice"
}
],
"state": [
{
"name": "format",
"doc": "The formatting a view asks for, as a toolbar beside the document asks it: `bold`, `italic`, `underline`, `strike`, `super`, `sub`, `size:<points>`, `font:<sans|serif|mono>`, `color:#rrggbb`, `highlight:#rrggbb`, `align:<left|center|right|justify>`, `before:<points>`, `after:<points>`, `indent:<points>`, `hanging:<points>`, `spacing:<1|1.15|1.5|2>`, `style:<name>`, `changes:accept`, `changes:reject`, `bullets`, `numbers`, `heading:<level>` or `link:<address>`, then a count the view changes each time it asks (`bold:1`, `bold:2`), so the same command asked twice is two commands. A picture the caret is in is set with `picture:<op>`, where the op is `size:up`, `size:down`, `flip:h`, `flip:v`, `crop:in`, `crop:reset`, `place:inline`, `place:free`, `wrap:left`, `wrap:right` or `wrap:none`. Formatting a message is a command of the shared editor's, never a control of the app's own.",
"type": {
"option": "text"
}
},
{
"name": "insert",
"doc": "A picture to write in at the caret, as a view asks after the person chose a file: the address of its content, then a count the view changes every time it asks (`{address}:1`), so the same picture chosen twice is two pictures. A view asks this from its own Insert image, so the picture lands where the person is writing rather than at the end of the document.",
"type": {
"option": "text"
}
},
{
"name": "link",
"doc": "A block to make a link to a record, as a view asks once it made the page a block named: a count the view changes every time it asks (`1`), and the record it becomes a link to (`link_to`), read as its title. The block is the one the editor last reported a chosen page for; it keeps its place, reads as the record wherever it is opened, and a rename shows there.",
"type": {
"option": "text"
}
},
{
"name": "reveal",
"doc": "The heading the document shows, asked by the view that places an outline beside it: the place of the heading among the document's headings (`headings` reports them in that order), then a count the view changes every time it asks (`3:1`), so asking for a heading already shown shows it again. The editor puts the caret at the heading's start and keeps it in view. A block named by its place in the document instead (`¶5:2`, the sixth block from the top, counted from 0) is shown the same way: what the window asks for when a search hit on a paragraph opens the document.",
"type": {
"option": "text"
}
}
],
"semantics": {
"role": "Document"
}
},
{
"name": "Reading",
"doc": "A document read a page at a time: its text set in a reading face, broken into pages the box it is given fits, one page (or a spread, or a column) shown, and the page turned by the reader. The app keeps where the reader is: it says which page shows here, and hears `turned` when the reader moves and `selected` when they mark a passage.",
"props": [
{
"name": "value",
"doc": "The text read: its paragraphs, headings, quotes, lists and section breaks.",
"type": {
"option": "rich_text"
},
"positional": true
},
{
"name": "scale",
"doc": "The text's size as a multiple of the reading base (1.0 unless said), between 0.8 and 2.",
"type": {
"option": "float"
}
},
{
"name": "spacing",
"doc": "The line spacing as a multiple of the face's own (1.2 unless said).",
"type": {
"option": "float"
}
},
{
"name": "justified",
"doc": "Whether paragraphs are justified like a book's or set ragged; ragged unless said.",
"type": "bool"
},
{
"name": "face",
"doc": "The face the body is set in: `serif`, `sans`, `mono`, or a reading face the toolkit ships (`libertinus`, `literata`, `garamond`, `source_serif`). Serif unless said.",
"type": {
"option": "text"
}
},
{
"name": "language",
"doc": "The book's language, for hyphenation in its words.",
"type": {
"option": "text"
}
},
{
"name": "mode",
"doc": "How the text is shown: `paged` a page at a time, `continuous` one column scrolled, or `two_up` two pages side by side.",
"type": {
"option": "text"
}
},
{
"name": "page",
"doc": "The page shown, counted from 0 (a spread, in two pages side by side); a page past the end shows the last.",
"type": {
"option": "int"
}
},
{
"name": "place",
"doc": "How far down the column stands in the continuous mode, `0` its top to `1` its foot.",
"type": {
"option": "float"
}
},
{
"name": "reveal",
"doc": "The block to show, counted from 0: the page it stands on is the page shown. Asking for the same block again after another moved the page shows it again, so a link to a passage lands on it every time.",
"type": {
"option": "int"
}
},
{
"name": "paper",
"doc": "The paper behind the words, as a colour (`#rrggbb`); the theme's content colour unless said.",
"type": {
"option": "text"
}
},
{
"name": "ink",
"doc": "The words' colour, as a colour (`#rrggbb`); the theme's text colour unless said.",
"type": {
"option": "text"
}
},
{
"name": "highlights",
"doc": "The passages the reader marked, drawn under their words: each `block:start:end:colour`, its characters in that block's words and the colour of its band (`#rrggbb`).",
"type": {
"list": "text"
}
}
],
"events": [
{
"name": "pages",
"doc": "How many pages (or spreads) the text has, each time it changes.",
"value": "int"
},
{
"name": "turned",
"doc": "The page the reader turned to, by a key or a press: carries the page, counted from 0, and the block the page begins at.",
"value": "int",
"at": "int"
},
{
"name": "moved",
"doc": "How far down the column the reader scrolled in the continuous mode: carries `0`..`1`.",
"value": "float"
},
{
"name": "selected",
"doc": "The passage the reader selected: carries the block, its first and last character.",
"value": {
"list": "int"
}
},
{
"name": "showing",
"doc": "The first block the page shows, and the character it starts at, each time the page changes: where a bookmark made now is kept.",
"value": {
"list": "int"
}
}
],
"semantics": {
"role": "Document"
}
},
{
"name": "RichInput",
"doc": "A field that types rich text, bound to what it edits: a reference a completion picks is written as a reference, which each reader renders as an inline view of what it names.",
"props": [
{
"name": "placeholder",
"doc": "What to type, shown while it is empty.",
"type": {
"option": "text"
}
},
{
"name": "enabled",
"doc": "Whether it can be typed into now.",
"type": "bool"
},
{
"name": "speakers",
"doc": "The people of the conversation it writes into, newest first, offered first in its `@` drawer; the view gives them from what the conversation has, and the drawer reads nothing else.",
"type": {
"list": "actor"
}
},
{
"name": "people",
"doc": "Who can read what it writes into: whom its `@` drawer offers; with no one, it offers the workspace's roster.",
"type": {
"list": "actor"
}
}
],
"events": [
{
"name": "submit",
"doc": "Enter was pressed: what was written is done (a message is sent); with it, Enter sends and Shift+Enter breaks the line."
}
],
"bindings": [
{
"name": "value",
"doc": "The rich text it edits.",
"type": "rich_text",
"merge": "rich"
}
],
"semantics": {
"role": "TextInput",
"label": "placeholder"
}
},
{
"name": "RichTextLine",
"doc": "One line of text edited in place (a block editor's cell, a composer's message), with its inline marks, reporting the keys that end or break it so a host can split or join lines.",
"props": [
{
"name": "placeholder",
"doc": "What to type, shown while it is empty.",
"type": {
"option": "text"
}
},
{
"name": "role",
"doc": "How the text reads: `body` unless said.",
"type": {
"option": {
"choice": {
"name": "TextRole",
"cases": [
"display",
"large_title",
"title",
"heading",
"subheading",
"body",
"label",
"caption",
"reading",
"code"
]
}
}
}
},
{
"name": "mono",
"doc": "The text is monospace (code).",
"type": "bool"
},
{
"name": "wrap",
"doc": "The line wraps to its width instead of scrolling.",
"type": "bool"
}
],
"events": [
{
"name": "enter",
"doc": "Enter was pressed: the line ends at this byte.",
"value": "int"
},
{
"name": "soft_enter",
"doc": "Shift+Enter was pressed: the line breaks at this byte, a soft break.",
"value": "int"
},
{
"name": "backspace_at_start",
"doc": "Backspace at the start was pressed: the line joins the one before it."
}
],
"bindings": [
{
"name": "value",
"doc": "The text it edits.",
"type": "text",
"merge": "splice"
}
],
"semantics": {
"role": "TextInput",
"label": "placeholder"
}
},
{
"name": "ActivityEntry",
"doc": "One change of a document: what it did, who did it and when.",
"props": [
{
"name": "item",
"doc": "The change it is: its stable key, what reverting or opening it reports, and where its band and selection stand across changes.",
"type": "resource",
"required": true,
"positional": true
},
{
"name": "author",
"doc": "Who made the change.",
"type": {
"option": "actor"
}
},
{
"name": "time",
"doc": "When it was made.",
"type": {
"option": "time"
}
},
{
"name": "summary",
"doc": "What the change did, in a sentence: \"Renamed the card\", \"Moved to Done\".",
"type": "text",
"required": true,
"positional": true
},
{
"name": "kind",
"doc": "What kind of change it is: it draws the row's glyph and says whether it can be reverted.",
"type": {
"option": {
"choice": {
"name": "EntryKind",
"cases": [
"text",
"move",
"details",
"comment",
"delete",
"restore",
"access",
"compaction",
"redaction"
]
}
}
}
},
{
"name": "artifact",
"doc": "What kind of resource it changed.",
"type": {
"option": {
"choice": {
"name": "ActivityArtifact",
"cases": [
"note",
"file",
"cluster",
"kanban",
"chat-log"
]
}
}
}
}
],
"semantics": {
"role": "ListItem",
"label": "summary",
"presents": "item"
}
},
{
"name": "MenuSeparator",
"doc": "A rule between groups of a menu's commands.",
"semantics": {
"role": "Splitter"
}
},
{
"name": "EmojiBar",
"doc": "A row of emoji to react with, at the top of a menu: the ones the person uses most, then a button that opens the emoji picker for any other.",
"props": [
{
"name": "emoji",
"doc": "The emoji offered, in order: the person's most used first.",
"type": {
"list": "text"
},
"required": true,
"positional": true,
"data": true
},
{
"name": "more",
"doc": "A last button opens the emoji picker, for an emoji not offered.",
"type": "bool"
}
],
"events": [
{
"name": "pick",
"doc": "An emoji was picked: carries it.",
"value": "text"
}
],
"semantics": {
"role": "Toolbar"
}
},
{
"name": "ContextMenu",
"doc": "A context menu of the view it stands in: a right-click, the Menu key or a long press opens it. A layout runs the menu a view places in it, anywhere in that layout; a list item runs its row's, wherever the row's layout puts it.",
"parts": [
{
"name": "items",
"doc": "The menu's content, in order: commands, separators and an emoji bar.",
"accepts": {
"one_of": [
"MenuItem",
"MenuSeparator",
"EmojiBar"
]
},
"many": true,
"default": true
}
],
"semantics": {
"role": "Menu",
"attaches": true
}
},
{
"name": "HoverToolbar",
"doc": "Controls shown over the trailing edge of the view they stand in while it is hovered or holds focus: quick reactions, Reply.",
"parts": [
{
"name": "content",
"doc": "The controls, in order: buttons, an emoji picker.",
"accepts": "view",
"many": true,
"default": true
}
],
"semantics": {
"role": "Toolbar",
"attaches": true
}
},
{
"name": "Swipe",
"doc": "What swiping the view it stands in across does: it follows the finger, uncovers the command and runs it when let go past the threshold, or springs back.",
"parts": [
{
"name": "leading",
"doc": "What swiping from the leading edge towards the trailing edge does.",
"accepts": {
"component": "SwipeAction"
}
},
{
"name": "trailing",
"doc": "What swiping from the trailing edge towards the leading edge does.",
"accepts": {
"component": "SwipeAction"
}
}
],
"semantics": {
"role": "Group",
"attaches": true
}
},
{
"name": "Suggestion",
"doc": "One completion an [`Autocomplete`] offers.",
"props": [
{
"name": "value",
"doc": "What taking it puts in the field.",
"type": "text",
"required": true,
"positional": true,
"data": true
},
{
"name": "label",
"doc": "What its row says; the value unless said.",
"type": {
"option": "text"
}
},
{
"name": "header",
"doc": "The row is the heading of the rows under it, never armed or chosen: a group's title.",
"type": "bool"
},
{
"name": "detail",
"doc": "Dim text at its trailing end: a kind, a count.",
"type": {
"option": "text"
}
},
{
"name": "subtitle",
"doc": "A dim line under the label: a page's address under its title.",
"type": {
"option": "text"
}
},
{
"name": "icon",
"doc": "A glyph before it.",
"type": {
"option": "icon"
}
},
{
"name": "who",
"doc": "The person it names, shown as their avatar.",
"type": {
"option": "actor"
}
},
{
"name": "adjustable",
"doc": "Its value can be stepped in place (a level, a volume): Left and Right on the selected row report the step through the field's `adjust`.",
"type": "bool"
}
],
"semantics": {
"role": "ListItem",
"label": "label"
}
},
{
"name": "BoardList",
"doc": "One list of a board: a heading and its cards, in order.",
"props": [
{
"name": "item",
"doc": "The resource the list stands for: a column, a status.",
"type": {
"option": "resource"
},
"positional": true
},
{
"name": "title",
"doc": "What the list is called, as its heading.",
"type": {
"option": "text"
}
},
{
"name": "count",
"doc": "How many cards the list holds, beside its heading.",
"type": {
"option": "int"
}
},
{
"name": "action",
"doc": "The label of the one action that adds to the list, at its foot under the cards: \"New card\".",
"type": {
"option": "text"
}
}
],
"parts": [
{
"name": "cards",
"doc": "The cards, in order.",
"accepts": {
"component": "BoardCard"
},
"many": true,
"default": true
},
{
"name": "foot",
"doc": "What stands at the list's foot, under its cards: the entry that adds to the list.",
"accepts": "view"
}
],
"events": [
{
"name": "act",
"doc": "The list's action was pressed."
},
{
"name": "drop",
"doc": "A card was dropped into the list: carries the card and its place among the list's other cards, from 0.",
"value": "resource",
"at": "int"
}
],
"semantics": {
"role": "Group",
"label": "title",
"presents": "item"
}
},
{
"name": "BoardCard",
"doc": "One card of a list: a summary of the resource it stands for, which a press opens.",
"props": [
{
"name": "item",
"doc": "The resource the card stands for: what a drop carries when it is the card dropped.",
"type": {
"option": "resource"
},
"positional": true
},
{
"name": "selected",
"doc": "Whether it is the selected one.",
"type": "bool"
}
],
"parts": [
{
"name": "menu",
"doc": "The commands of its context menu: a right-click, the Menu key or a long press opens it.",
"accepts": {
"one_of": [
"MenuItem",
"MenuSeparator"
]
},
"many": true
},
{
"name": "body",
"doc": "What the card shows, in order.",
"accepts": "view",
"many": true,
"default": true
}
],
"events": [
{
"name": "activate",
"doc": "The card was pressed: open what it stands for.",
"press": true
},
{
"name": "drop",
"doc": "Another card was dropped just before this one: carries that card.",
"value": "resource"
}
],
"semantics": {
"role": "Generic",
"presents": "item"
}
},
{
"name": "BreadcrumbSegment",
"doc": "One place of a path: what it is called, and going there.",
"props": [
{
"name": "label",
"doc": "What the place is called: \"Documents\".",
"type": "text",
"required": true,
"positional": true
},
{
"name": "item",
"doc": "The resource the place is: going there opens it.",
"type": {
"option": "resource"
}
}
],
"events": [
{
"name": "activate",
"doc": "The place was pressed: go there."
}
],
"semantics": {
"role": "Link",
"label": "label",
"presents": "item"
}
},
{
"name": "CardGridCard",
"doc": "One card of a grid: a summary of the resource it stands for, which a press opens.",
"props": [
{
"name": "item",
"doc": "The resource the card stands for: its stable key, and what pressing it reports.",
"type": "resource",
"required": true,
"positional": true
},
{
"name": "title",
"doc": "What the card is called, in its head; without one the body speaks for it.",
"type": {
"option": "text"
}
},
{
"name": "count",
"doc": "How many things the card lists, as a count beside its title.",
"type": {
"option": "int"
}
},
{
"name": "selected",
"doc": "Whether it is the selected one among its peers.",
"type": "bool"
}
],
"parts": [
{
"name": "body",
"doc": "What the card shows, in order.",
"accepts": "view",
"many": true,
"default": true
}
],
"events": [
{
"name": "activate",
"doc": "The card was pressed: open what it stands for."
}
],
"semantics": {
"role": "ListItem",
"label": "title",
"presents": "item"
}
},
{
"name": "MenuItem",
"doc": "One command of a menu: what it shows, and what choosing it does.",
"props": [
{
"name": "label",
"doc": "What choosing it does, in a word or two.",
"type": "text",
"required": true,
"positional": true
},
{
"name": "icon",
"doc": "A glyph before the label, for recognition; the label stays its name.",
"type": {
"option": "icon"
}
},
{
"name": "sample",
"doc": "The face the label is set in, as a family's name: a font picker sets each row in the family it offers, so a person chooses by reading it. Empty is the interface's own sans.",
"type": {
"option": "text"
}
},
{
"name": "destructive",
"doc": "It takes something away: drawn as destructive, and undone rather than confirmed.",
"type": "bool"
},
{
"name": "checked",
"doc": "Whether it is the one chosen now, in a menu of choices (a sort order).",
"type": {
"option": "bool"
}
},
{
"name": "disabled",
"doc": "It cannot run now (a `require` of its action does not hold). It is listed all the same, drawn as unavailable, and says `description`.",
"type": "bool"
},
{
"name": "description",
"doc": "Why it cannot run now, in the person's words (`require`'s own): read with the row, and kept beside the label so a person sees what it waits on. The name is the one every control gives the reason it cannot be pressed now.",
"type": {
"option": "text"
}
},
{
"name": "group",
"doc": "The run of commands it stands in (`group: \"Due\"`), as the app names it: consecutive rows of one run fold into one row that opens them.",
"type": {
"option": "text"
}
},
{
"name": "key",
"doc": "The plain key that runs it while the window it belongs to has the keyboard, as the app's action declared it (`key: \"e\"`), shown at the row's trailing edge as the keyboard in use spells it.",
"type": {
"option": "text"
},
"data": true
},
{
"name": "separator",
"doc": "A rule between groups of commands, which chooses nothing: a menu's `ui.MenuSeparator`. Its label and the rest say nothing while it is set.",
"type": "bool",
"data": true
},
{
"name": "link",
"doc": "The address it leads to, when it is a way to a page rather than a command: choosing it opens the address as a `ui.Link` does.",
"type": {
"option": "text"
}
}
],
"events": [
{
"name": "choose",
"doc": "It was chosen.",
"press": true
}
],
"semantics": {
"role": "MenuItem",
"label": "label"
}
},
{
"name": "ConversationEntry",
"doc": "One line of a conversation: who said it and when, what it says, and how far on its way it is.",
"props": [
{
"name": "item",
"doc": "The message it stands for: its stable identity, what a caller anchors a scroll to, and what changes follow.",
"type": "resource",
"required": true,
"positional": true
},
{
"name": "author",
"doc": "Who said it, as the person reads names.",
"type": {
"option": "text"
}
},
{
"name": "time",
"doc": "When it was said: a divider marks the first line of each day, and the time shows beside an author's name and under your own line.",
"type": {
"option": "time"
}
},
{
"name": "said",
"doc": "What it says.",
"type": "text",
"required": true,
"positional": true
},
{
"name": "outgoing",
"doc": "Your own line (on the right, with its delivery state under it) rather than the other person's (on the left, under their name).",
"type": "bool"
},
{
"name": "delivery",
"doc": "How far your own line is on its way.",
"type": {
"option": {
"choice": {
"name": "Delivery",
"cases": [
"queued",
"sending",
"submitted",
"sent",
"delivered",
"read",
"failed",
"uncertain"
]
}
}
}
}
],
"semantics": {
"role": "ListItem",
"label": "said",
"presents": "item"
}
},
{
"name": "DataTableColumn",
"doc": "One column of a table: what it is called, how wide it is, and how its cells read.",
"props": [
{
"name": "header",
"doc": "What the column is called, as its header, and the key its cells are held under in a row.",
"type": "text",
"required": true,
"positional": true
},
{
"name": "width",
"doc": "How wide it is: as wide as its content, one share of the spare width, or `pixels` wide.",
"type": {
"option": {
"choice": {
"name": "TableColumnWidth",
"cases": [
"auto",
"flex",
"fixed"
]
}
}
}
},
{
"name": "pixels",
"doc": "Its width in pixels, when `width` is `fixed`.",
"type": {
"option": "float"
}
},
{
"name": "kind",
"doc": "How its cells read: prose unless said.",
"type": {
"option": {
"choice": {
"name": "TextKind",
"cases": [
"prose",
"numeric",
"secret",
"identifier",
"url",
"code"
]
}
}
}
},
{
"name": "lines",
"doc": "How many lines a cell's text wraps to before it is elided; the row grows to hold them.",
"type": {
"option": "int"
}
},
{
"name": "sortable",
"doc": "Whether pressing its header sorts the table by it.",
"type": "bool"
},
{
"name": "priority",
"doc": "Which columns give way first when the table is narrow: `0` never hides, higher numbers hide before lower ones.",
"type": "int"
},
{
"name": "absent",
"doc": "What an empty cell reads as, dimmed.",
"type": {
"option": "text"
}
}
],
"semantics": {
"role": "Cell",
"label": "header"
}
},
{
"name": "DataTableCell",
"doc": "One cell of a row: what its column reads in this row.",
"props": [
{
"name": "column",
"doc": "The header of the column it stands under.",
"type": "text",
"required": true,
"positional": true
},
{
"name": "value",
"doc": "What it reads: absent (dimmed) when not given.",
"type": {
"option": "text"
}
}
],
"semantics": {
"role": "Cell"
}
},
{
"name": "DataTableRow",
"doc": "One row of a table: the resource it stands for, and the cells its columns read in it.",
"props": [
{
"name": "item",
"doc": "The resource the row stands for: its stable key, and what selecting or activating it reports.",
"type": "resource",
"required": true,
"positional": true
}
],
"parts": [
{
"name": "cells",
"doc": "The cells, in the order of the table's columns.",
"accepts": {
"component": "DataTableCell"
},
"many": true,
"default": true
}
],
"semantics": {
"role": "Row",
"presents": "item"
}
},
{
"name": "DragItem",
"doc": "One item of a run: what it stands for, and the view drawn in its part.",
"props": [
{
"name": "item",
"doc": "The resource the item stands for: what a drop carries, and what a drag out of the run reports.",
"type": {
"option": "resource"
},
"positional": true
},
{
"name": "title",
"doc": "What the item is called, for its ghost and for assistive technology.",
"type": "text",
"required": true
},
{
"name": "group",
"doc": "The part of the run it belongs to: a bar's leading group, its centre, its trailing group, or the gap between two groups.",
"type": {
"option": {
"choice": {
"name": "RunGroup",
"cases": [
"leading",
"center",
"trailing",
"space"
]
}
}
}
}
],
"parts": [
{
"name": "body",
"doc": "What it shows.",
"accepts": "view",
"many": true,
"default": true
}
],
"events": [
{
"name": "activate",
"doc": "It was pressed and let go without moving: open what it stands for."
}
],
"semantics": {
"role": "ListItem",
"label": "title"
}
},
{
"name": "EnumOption",
"doc": "One case an [`EnumField`] offers: its name, what it reads as, and how it reads.",
"props": [
{
"name": "name",
"doc": "The case's own name, as the app declares it: what an edit writes back, never read out.",
"type": "text",
"required": true,
"data": true
},
{
"name": "label",
"doc": "What the case reads as, in a word or two: \"High\".",
"type": "text",
"required": true,
"positional": true
},
{
"name": "icon",
"doc": "The glyph the case names, when it names one.",
"type": {
"option": "icon"
}
},
{
"name": "tone",
"doc": "The tone the case reads in: what the chip is washed in.",
"type": {
"choice": {
"name": "Tone",
"cases": [
"neutral",
"success",
"warning",
"danger",
"info"
]
}
}
}
],
"semantics": {
"role": "MenuItem",
"label": "label",
"not_in_gallery": "a field takes its cases from the enum it is bound to, so no view writes one: the gallery's EnumField shows them"
}
},
{
"name": "GraphNode",
"doc": "One node of a graph: its id, which connections name, where it stands (in logical pixels from the graph's corner), and the view it is.",
"props": [
{
"name": "id",
"doc": "What connections call it: a name for the view to refer to, never shown or translated.",
"type": "text",
"required": true,
"positional": true,
"data": true
},
{
"name": "x",
"doc": "How far from the graph's leading edge it stands; with `y`, a place of its own.",
"type": {
"option": "float"
}
},
{
"name": "y",
"doc": "How far from the graph's top it stands.",
"type": {
"option": "float"
}
},
{
"name": "width",
"doc": "How wide it is: 200 unless said.",
"type": {
"option": "float"
}
}
],
"parts": [
{
"name": "content",
"doc": "What the node shows.",
"accepts": "view",
"default": true
}
],
"semantics": {
"role": "Group"
}
},
{
"name": "SwipeAction",
"doc": "What swiping a row across does: one command on its item, uncovered under the row as it moves.",
"props": [
{
"name": "label",
"doc": "What it does, in a word or two.",
"type": "text",
"required": true,
"positional": true
},
{
"name": "icon",
"doc": "The glyph the swipe uncovers: a bin for a destructive command and a check for another, unless said.",
"type": {
"option": "icon"
}
},
{
"name": "destructive",
"doc": "It takes something away: drawn as destructive, and undone rather than confirmed.",
"type": "bool"
}
],
"events": [
{
"name": "swipe",
"doc": "The swipe completed."
}
],
"semantics": {
"role": "Button",
"label": "label"
}
},
{
"name": "MapPin",
"doc": "One pin of a map, as an instance gives it: its key, its place and the view it shows.",
"props": [
{
"name": "name",
"doc": "What it is, for assistive technology.",
"type": {
"option": "text"
}
},
{
"name": "x",
"doc": "The canvas point of its top-leading corner, in canvas pixels.",
"type": {
"option": "int"
}
},
{
"name": "y",
"doc": "The canvas y of its top-leading corner, in canvas pixels.",
"type": {
"option": "int"
}
},
{
"name": "latitude",
"doc": "The latitude of the place the pin stands on, with `longitude`: the map projects it onto the canvas, so a pin stands on its place at every zoom. Given, `x` and `y` are not read.",
"type": {
"option": "float"
}
},
{
"name": "longitude",
"doc": "The longitude of the place the pin stands on.",
"type": {
"option": "float"
}
},
{
"name": "width",
"doc": "How wide it stands, in canvas pixels.",
"type": {
"option": "int"
}
},
{
"name": "height",
"doc": "How tall it stands, in canvas pixels; without it, as tall as its view asks.",
"type": {
"option": "int"
}
},
{
"name": "band",
"doc": "Whether its view keeps a place's handle band over its top edge ([`crate::widget::canvas_place::PLACE_BAND`]): the pin stands that much higher, so the view's own top is at `y`.",
"type": "bool"
},
{
"name": "hug",
"doc": "`height` is the most it takes: its view hugs what it holds up to it (an answer in the rectangle it was asked in), rather than filling it.",
"type": "bool"
},
{
"name": "grows",
"doc": "It is an answer: arriving, it grows out of where the person last pointed on the map (the caret or the rectangle it answers), rather than fading in where it stands. The pointing itself (a caret) leaves it unset and stands at once.",
"type": "bool"
},
{
"name": "leaving",
"doc": "The place's window is on its way out: the pin stands where it last did and its view plays the departure, while the pin itself takes nothing — no press points at the place, no edge sizes it, and a press on it is the canvas's nowhere, never a caret under it.",
"type": "bool"
},
{
"name": "item",
"doc": "What the pin stands for, as the view names it: what pointing at the pin (`context`) and sizing it (`resize`) report. Without it, the pin's key.",
"type": {
"option": "text"
},
"data": true
}
],
"parts": [
{
"name": "body",
"doc": "What it shows.",
"accepts": "view",
"many": true,
"default": true
}
],
"semantics": {
"role": "Group",
"label": "name"
}
},
{
"name": "MapTrack",
"doc": "A line across a map of the world: a route, one leg of a journey, the way a walk goes.",
"props": [
{
"name": "name",
"doc": "What it is, for assistive technology.",
"type": {
"option": "text"
}
},
{
"name": "points",
"doc": "The places it runs through, in degrees: each place's latitude then its longitude, in turn (`[52.52, 13.40, 52.53, 13.41]`).",
"type": {
"list": "float"
},
"required": true
},
{
"name": "tone",
"doc": "What it says of itself, as the theme's ink: a route the person is taking, a way they walk, a public transport leg, or a quiet line.",
"type": {
"option": {
"choice": {
"name": "MapTrackTone",
"cases": [
"route",
"walk",
"transit",
"quiet"
]
}
}
}
},
{
"name": "width",
"doc": "How thick it draws on screen, in logical pixels; without it, one line of the theme.",
"type": {
"option": "float"
}
},
{
"name": "dashed",
"doc": "Whether it draws as a dashed line: a walk, a way that is not the route itself.",
"type": "bool"
}
],
"semantics": {
"role": "Image",
"label": "name"
}
},
{
"name": "MapMarker",
"doc": "One marker on a map of the world: a place a view names, drawn at its size on screen whatever the zoom, standing on the place it names.",
"props": [
{
"name": "name",
"doc": "What it stands for: a place's name, read to assistive technology and on pointing.",
"type": {
"option": "text"
}
},
{
"name": "latitude",
"doc": "The latitude of the place it stands on.",
"type": "float",
"required": true
},
{
"name": "longitude",
"doc": "The longitude of the place it stands on.",
"type": "float",
"required": true
},
{
"name": "kind",
"doc": "What it is, which its shape and ink say.",
"type": {
"option": {
"choice": {
"name": "MapMarkerKind",
"cases": [
"landmark",
"cafe",
"restaurant",
"bar",
"museum",
"park",
"transit",
"hotel",
"shop",
"hospital",
"other",
"current",
"start",
"end",
"poi"
]
}
}
}
},
{
"name": "selected",
"doc": "Whether it is the one the person chose: drawn a size larger, with a ring.",
"type": "bool"
},
{
"name": "presence",
"doc": "Who else is at the place now: a member's or an agent's lens on it (`lenses(place)`), whose face docks on the marker as a list row wears the member at its item. The map draws them in the presence of the window it is in, and shows none for this person's own views.",
"type": {
"option": "actor"
}
},
{
"name": "label",
"doc": "Whether its name stands beside it, on a plate over the map: a place's name, as a map names the places it shows. A label that would cover another is left out, so a dense quarter keeps its markers legible.",
"type": "bool"
}
],
"semantics": {
"role": "Image",
"label": "name"
}
},
{
"name": "NavSection",
"doc": "A group of places under a heading (a category of channels, a folder of notebooks); a collapsible one folds away.",
"props": [
{
"name": "title",
"doc": "The heading over the places.",
"type": "text",
"required": true,
"positional": true
},
{
"name": "collapsible",
"doc": "Whether its heading folds it away.",
"type": "bool"
},
{
"name": "item",
"doc": "The resource the group is, when it is one (a category of channels): the group is kept by it rather than by where it stands, so a fold the person made stays with the group when it is renamed or moved among the others.",
"type": {
"option": "resource"
}
},
{
"name": "add",
"doc": "The action that makes another place in the group (\"New project\"), drawn at the end of the heading.",
"type": {
"option": "action"
}
}
],
"parts": [
{
"name": "menu",
"doc": "The group's own menu (a right click on its heading, the Menu key, a long press): what is done to the group itself (renaming it, moving it, removing it), as the places under it carry theirs. A group whose view places none offers none.",
"accepts": {
"one_of": [
"MenuItem",
"MenuSeparator",
"EmojiBar"
]
},
"many": true
},
{
"name": "items",
"doc": "The places, in order.",
"accepts": {
"component": "NavItem"
},
"many": true,
"default": true
}
],
"semantics": {
"role": "Group",
"label": "title"
}
},
{
"name": "NavItem",
"doc": "One place in a navigation list.",
"props": [
{
"name": "key",
"doc": "What names the place across changes, and what its selection reports.",
"type": "text",
"required": true,
"positional": true,
"data": true,
"identity": true
},
{
"name": "label",
"doc": "What the place is called.",
"type": "text",
"required": true,
"positional": true
},
{
"name": "icon",
"doc": "Its glyph.",
"type": {
"option": "icon"
}
},
{
"name": "secondary",
"doc": "A quieter line under the name: what the place holds as it stands (the line half-written in its draft, where a conversation last left off).",
"type": {
"option": "text"
}
},
{
"name": "count",
"doc": "How many things it has: a quiet count in tertiary ink.",
"type": {
"option": "int"
}
},
{
"name": "live",
"doc": "How many things wait for attention (unread, mentions): the list's one filled badge in the person's colour, nothing at zero.",
"type": {
"option": "int"
}
},
{
"name": "unread",
"doc": "Something new waits behind the place: its label stands out at rest.",
"type": "bool"
},
{
"name": "mentions",
"doc": "How many things behind the place name the person: more specific than the unread count, it replaces the badge while there are any.",
"type": {
"option": "int"
}
},
{
"name": "item",
"doc": "The resource the place shows, when it is one (a channel): the host says in `live` how much of it is unseen, and the label lifts while anything is.",
"type": {
"option": "resource"
}
},
{
"name": "person",
"doc": "The person the place shows, when it is one (a direct conversation): their avatar and presence ring in the icon's place.",
"type": {
"option": "actor"
}
},
{
"name": "speaking",
"doc": "The person the place shows is talking now (in a call): their face rings as they are heard.",
"type": "bool"
},
{
"name": "parent",
"doc": "The place this one stands under, by its key: the rows of a list that nests its places (an outline of headings) fold under the one they name, a level in, and stand open. A key that names no place of the list leaves the place at its own level, as a row whose parent is gone does.",
"type": {
"option": "text"
}
}
],
"parts": [
{
"name": "menu",
"doc": "The place's own menu (a right click, the Menu key, a long press): what is done to the place itself, in the order the view writes it. A place whose view places none offers none — unless the host gives the list a menu of its own, which then answers every row.",
"accepts": {
"one_of": [
"MenuItem",
"MenuSeparator",
"EmojiBar"
]
},
"many": true
}
],
"events": [
{
"name": "select",
"doc": "The place was chosen: what choosing it does, beside the list's `select`.",
"press": true
}
],
"semantics": {
"role": "TreeItem",
"label": "label"
}
},
{
"name": "PictureOption",
"doc": "One tile of a [`PictureChoice`]: its picture and its name.",
"props": [
{
"name": "label",
"doc": "What the tile says under its picture, and its spoken name.",
"type": "text",
"required": true,
"positional": true
},
{
"name": "picture",
"doc": "What the tile shows: a sample of the setting from the theme.",
"type": {
"choice": {
"name": "PictureKind",
"cases": [
"text_size_small",
"text_size_regular",
"text_size_large",
"pointer_small",
"pointer_regular",
"pointer_large",
"colour_filter_none",
"colour_filter_grayscale",
"colour_filter_inverted",
"colour_filter_grayscale_inverted",
"touchpad_press",
"touchpad_corner_press",
"touchpad_two_finger_press",
"touchpad_two_finger_scroll",
"touchpad_edge_scroll",
"scroll_direction_natural",
"scroll_direction_reverse",
"density_compact",
"density_regular",
"density_comfortable",
"warmth_warm",
"warmth_neutral",
"warmth_cool",
"banner_title",
"banner_message"
]
}
},
"required": true
}
],
"semantics": {
"role": "RadioButton",
"label": "label"
}
},
{
"name": "Fact",
"doc": "One fact of a row: its text, and a glyph before it.",
"props": [
{
"name": "text",
"doc": "The fact, in a few words: \"3 MB\", or the value of the field it names.",
"type": "text",
"required": true,
"positional": true
},
{
"name": "label",
"doc": "What the value is, for a fact that is one field of a thing (`Goal`, `Due`): the label reads dim before the value.",
"type": {
"option": "text"
}
},
{
"name": "icon",
"doc": "A glyph before it, from the icon set.",
"type": {
"option": "icon"
}
},
{
"name": "priority",
"doc": "How long it stays where the row is narrow: a higher one stays longer, and of equal ones the last gives way first.",
"type": "int"
}
],
"semantics": {
"role": "ListItem",
"label": "text"
}
},
{
"name": "KeyHint",
"doc": "One hint of a strip: the keys of a chord and what pressing them does.",
"props": [
{
"name": "keys",
"doc": "The keys of the chord, modifiers first: `[\"Ctrl\", \"S\"]`.",
"type": {
"list": "text"
},
"required": true,
"positional": true
},
{
"name": "label",
"doc": "What pressing them does, in a word or two: \"Save\".",
"type": "text",
"required": true,
"positional": true
}
],
"semantics": {
"role": "StaticText",
"label": "label"
}
},
{
"name": "Property",
"doc": "One fact of a property list: what it is, and its value.",
"props": [
{
"name": "label",
"doc": "What the fact is: \"Due\", \"Owner\".",
"type": "text",
"required": true,
"positional": true
},
{
"name": "value",
"doc": "The fact.",
"type": "text",
"required": true,
"positional": true
},
{
"name": "copyable",
"doc": "A trailing action that copies the value.",
"type": "bool"
}
],
"semantics": {
"role": "ListItem",
"label": "label"
}
},
{
"name": "Radio",
"doc": "One choice of a [`RadioGroup`]: what it says, and a line under that saying what it means.",
"props": [
{
"name": "label",
"doc": "What it says, beside its radio: the whole row chooses it.",
"type": "text",
"required": true,
"positional": true
},
{
"name": "detail",
"doc": "A line under it in smaller words: what choosing it means.",
"type": {
"option": "text"
}
},
{
"name": "enabled",
"doc": "Whether it can be chosen now.",
"type": "bool"
},
{
"name": "description",
"doc": "Why it cannot be chosen, while it cannot: its tooltip, and what assistive technology reads.",
"type": {
"option": "text"
}
}
],
"semantics": {
"role": "RadioButton",
"label": "label"
}
},
{
"name": "StagePin",
"doc": "What stands on the page: a text box, a shape, a picture — each a view of its own, at a place in the page's coordinates.",
"props": [
{
"name": "name",
"doc": "What it is, for assistive technology.",
"type": {
"option": "text"
}
},
{
"name": "x",
"doc": "The page point of its top-leading corner.",
"type": {
"option": "int"
}
},
{
"name": "y",
"doc": "The page's y of its top-leading corner.",
"type": {
"option": "int"
}
},
{
"name": "width",
"doc": "How wide it stands, in page coordinates.",
"type": {
"option": "int"
}
},
{
"name": "height",
"doc": "How tall it stands, in page coordinates.",
"type": {
"option": "int"
}
},
{
"name": "moves",
"doc": "The person drags it to move it: a press that travels moves the place with the hand, and a press that stays is the place's own (a text box puts the caret where it was clicked).",
"type": "bool"
},
{
"name": "item",
"doc": "What the place stands for, as the view names it: what choosing it, moving it, sizing it and pressing it with the right button report. Without it, the place's key.",
"type": {
"option": "text"
},
"data": true
}
],
"parts": [
{
"name": "menu",
"doc": "What the place offers on its context menu: a right press, the Menu key, a long press of a finger, or assistive technology opens it, and the place is chosen first. Its commands run as the view bound them (`on choose`), one undo step each.",
"accepts": {
"one_of": [
"MenuItem",
"MenuSeparator",
"EmojiBar"
]
},
"many": true
},
{
"name": "body",
"doc": "What it shows.",
"accepts": "view",
"many": true,
"default": true
}
],
"semantics": {
"role": "Group",
"label": "name"
}
},
{
"name": "TabItem",
"doc": "One tab of a frame: the resource it shows, and what its pill says.",
"props": [
{
"name": "item",
"doc": "The resource the tab shows: what choosing the pill reports, and which tab its close chip closes.",
"type": {
"option": "resource"
},
"positional": true
},
{
"name": "title",
"doc": "What the pill says, from the resource's title.",
"type": {
"option": "text"
}
},
{
"name": "name",
"doc": "What the tab itself is called, where the pill says its window's name instead: a window named for its title and app (`Groceries — Notes`) whose tab is the one showing `Groceries`. A reader hears the pill as its title, and a caller finds this tab here by its own name.",
"type": {
"option": "text"
}
},
{
"name": "icon",
"doc": "A glyph before the title, from the resource's type.",
"type": {
"option": "icon"
}
},
{
"name": "attention",
"doc": "The frame is waiting for the person on this tab: a dot at the pill's trailing edge.",
"type": "bool"
},
{
"name": "modified",
"doc": "Its content has unsaved changes: the close chip stands as the mark.",
"type": "bool"
},
{
"name": "busy",
"doc": "The content is loading: the pill's leading glyph turns.",
"type": "bool"
}
],
"parts": [
{
"name": "presence",
"doc": "Who else has this resource open now, drawn on the pill: their faces, from the resource's lenses.",
"accepts": {
"component": "TabFace"
},
"many": true,
"default": true
}
],
"semantics": {
"role": "Tab",
"label": "title"
}
},
{
"name": "TabFace",
"doc": "One face on a tab: who is at the tab's resource now.\nThe strip draws their initials in their presence colour, the same faces a window bar's pills carry, so a person sees at a glance who else is in a frame with them.",
"props": [
{
"name": "who",
"doc": "Who it is: a person or an agent.",
"type": {
"option": "actor"
},
"positional": true
},
{
"name": "name",
"doc": "What the workspace calls them, when it differs from their name here.",
"type": {
"option": "text"
}
}
],
"semantics": {
"role": "Image",
"label": "name"
}
},
{
"name": "TimelineItem",
"doc": "One thing on the grid: a meeting in its hours, or something that takes whole days.",
"props": [
{
"name": "item",
"doc": "The resource it stands for: what a press, a move or a resize carries back.",
"type": {
"option": "resource"
},
"positional": true
},
{
"name": "title",
"doc": "What it is called.",
"type": {
"option": "text"
}
},
{
"name": "start",
"doc": "The moment it starts: its day, and the time of day it is at.",
"type": "time",
"required": true
},
{
"name": "end",
"doc": "The moment it ends; a day's end for something that takes whole days.",
"type": {
"option": "time"
}
},
{
"name": "all_day",
"doc": "Whether it takes the whole day, or the days between its start and end.",
"type": "bool"
},
{
"name": "location",
"doc": "Where it happens.",
"type": {
"option": "text"
}
},
{
"name": "tone",
"doc": "The colour it picks from the theme's series.",
"type": {
"choice": {
"name": "TimelineTone",
"cases": [
"first",
"second",
"third",
"fourth",
"fifth",
"sixth",
"seventh",
"eighth",
"neutral"
]
}
}
},
{
"name": "stack",
"doc": "Which column it takes among the events it overlaps, from 1; 0 lays it out by itself.",
"type": "int"
}
],
"events": [
{
"name": "pressed",
"doc": "It was pressed: carries the resource it stands for.",
"value": "resource"
},
{
"name": "moved",
"doc": "It was dragged: carries it and the moment it now starts at, its length unchanged.",
"value": "resource",
"at": "time"
},
{
"name": "resized",
"doc": "Its edge was dragged: carries it and the moment it now ends at.",
"value": "resource",
"at": "time"
}
],
"semantics": {
"role": "ListItem",
"presents": "item"
}
},
{
"name": "Segment",
"doc": "One choice of a [`ToggleGroup`] or a [`ViewTabs`]: what it says, and how it shows.",
"props": [
{
"name": "label",
"doc": "What it says.",
"type": "text",
"required": true,
"positional": true
},
{
"name": "short",
"doc": "What it shows when its full label does not fit its share: \"Mon\" for \"Monday\".",
"type": {
"option": "text"
}
},
{
"name": "icon",
"doc": "A glyph: before the label on a tab ([`ViewTabs`]), and instead of it on any other strip, named by the label either way.",
"type": {
"option": "icon"
}
},
{
"name": "hint",
"doc": "Its keyboard shortcut, named in its tooltip: \"B\", \"Shift+R\".",
"type": {
"option": "text"
}
},
{
"name": "key",
"doc": "The key that chooses it while the strip's window has the keyboard, as the app declared it (`key: \"Ctrl+1\"`): the host answers it as a press on the choice.",
"type": {
"option": "text"
},
"data": true
},
{
"name": "enabled",
"doc": "Whether it can be chosen now.",
"type": "bool"
},
{
"name": "description",
"doc": "Why it cannot be chosen now, where the label does not say (an action whose requirement does not hold): spoken as its description beside the name, and shown on hover.",
"type": {
"option": "text"
}
},
{
"name": "chosen",
"doc": "Whether it is the choice the strip shows as made: what a setting holds, where the strip's choices run their own actions and hold no index of their own.",
"type": "bool"
}
],
"events": [
{
"name": "press",
"doc": "It was pressed: what a choice runs when each choice is a setting's own action at its case. A strip whose choices say this one shows what they say and never chooses for them.",
"press": true
}
],
"semantics": {
"role": "RadioButton",
"label": "label"
}
},
{
"name": "ToolbarButton",
"doc": "One command of a toolbar: pressing it does one thing, or opens its menu.",
"props": [
{
"name": "label",
"doc": "What it does, in a word or two. A command with a glyph shows only the glyph, the label naming it to assistive technology, in its tooltip and in the More menu.",
"type": "text",
"required": true,
"positional": true
},
{
"name": "icon",
"doc": "A glyph instead of the label.",
"type": {
"option": "icon"
}
},
{
"name": "toggled",
"doc": "A command that is on or off (bold, a panel shown), and whether it is on: on, it stands lifted, and it is a checked row in the More menu.",
"type": {
"option": "bool"
}
},
{
"name": "enabled",
"doc": "Whether it can be pressed now. A command with nothing to do never can.",
"type": "bool"
},
{
"name": "description",
"doc": "Why it cannot be pressed now, where the label does not say (an action whose requirement does not hold): spoken as its description beside the name, shown on hover, and carried by its row in the More menu.",
"type": {
"option": "text"
}
},
{
"name": "dot",
"doc": "A dot at its corner: something new behind it.",
"type": "bool"
},
{
"name": "priority",
"doc": "How long it stays in the row where the window is narrow: higher stays longer, and of equal ones the last goes to the More menu first.",
"type": "int"
},
{
"name": "joined",
"doc": "It goes with the command before it (zoom out, zoom in): the two go to the More menu together, never one alone.",
"type": "bool"
}
],
"parts": [
{
"name": "menu",
"doc": "The commands of a menu it opens instead of doing one thing: Sort, Insert, View.",
"accepts": {
"one_of": [
"MenuItem",
"MenuSeparator"
]
},
"many": true
}
],
"events": [
{
"name": "press",
"doc": "It was pressed (a click, Enter or Space, the More menu, an assistive technology).",
"press": true
}
],
"semantics": {
"role": "Button",
"label": "label"
}
},
{
"name": "ToolbarSeparator",
"doc": "A hairline between groups of a toolbar's commands. It never stands at the start or the end of what is shown.",
"semantics": {
"role": "Separator"
}
},
{
"name": "ToolbarSpacer",
"doc": "The width left in a toolbar, between the commands before it and those after it, which it pushes to the far end.",
"semantics": {
"role": "Generic"
}
},
{
"name": "TimelineTrack",
"doc": "One row of the timeline: its name in the header and the spans on it. A toggle for muting, soloing or locking it shows in the header when the view handles that toggle's event; a locked track's spans hold still.",
"props": [
{
"name": "item",
"doc": "What the track stands for, as the view names it: what a span moved onto it reports. Without it, the track's key.",
"type": {
"option": "text"
},
"data": true
},
{
"name": "label",
"doc": "What the track is called: \"V1\", \"Music\".",
"type": {
"option": "text"
}
},
{
"name": "muted",
"doc": "Whether it is muted: its spans are drawn faded.",
"type": "bool"
},
{
"name": "solo",
"doc": "Whether it plays alone.",
"type": "bool"
},
{
"name": "locked",
"doc": "Whether it is locked: its spans cannot be dragged, and nothing can be dragged onto it.",
"type": "bool"
}
],
"parts": [
{
"name": "spans",
"doc": "What stands on the track, in any order.",
"accepts": {
"component": "TimelineSpan"
},
"many": true,
"default": true
}
],
"events": [
{
"name": "toggled_mute",
"doc": "The mute toggle was pressed: carries whether the track is to be muted.",
"value": "bool"
},
{
"name": "toggled_solo",
"doc": "The solo toggle was pressed: carries whether the track is to play alone.",
"value": "bool"
},
{
"name": "toggled_lock",
"doc": "The lock toggle was pressed: carries whether the track is to be locked.",
"value": "bool"
}
],
"semantics": {
"role": "Group",
"label": "label"
}
},
{
"name": "TimelineSpan",
"doc": "One thing standing on a track for a stretch of time: a clip, a sound, a title. It shows its name, its colour, a strip of its frames and the shape of its sound when the view gives them.",
"props": [
{
"name": "item",
"doc": "What the span stands for, as the view names it: what its press reports. Without it, the span's key.",
"type": {
"option": "text"
},
"data": true
},
{
"name": "label",
"doc": "What it is called.",
"type": {
"option": "text"
}
},
{
"name": "start",
"doc": "When it starts, in seconds.",
"type": "float",
"required": true
},
{
"name": "length",
"doc": "How long it lasts, in seconds.",
"type": "float",
"required": true
},
{
"name": "tone",
"doc": "The colour it takes from the theme.",
"type": {
"choice": {
"name": "Ink",
"cases": [
"accent",
"ink",
"muted",
"track",
"success",
"warning",
"danger",
"info",
"base",
"surface",
"sidebar"
]
}
}
},
{
"name": "selected",
"doc": "Whether it is among what the person chose: drawn raised and outlined.",
"type": "bool"
},
{
"name": "frames",
"doc": "Pictures of its frames, by address, laid edge to edge across it.",
"type": {
"list": "text"
}
},
{
"name": "peaks",
"doc": "Its loudness, one peak from 0 to 1 each equal stretch, drawn as its waveform.",
"type": {
"list": "float"
}
},
{
"name": "keys",
"doc": "Moments inside it that are marked, in seconds from its start: its keyframes.",
"type": {
"list": "float"
}
},
{
"name": "lead_in",
"doc": "How long the transition into it lasts, in seconds from its start.",
"type": "float"
}
],
"events": [
{
"name": "pressed",
"doc": "It was pressed, by the pointer or by Enter or Space with it focused: carries its place among its track's spans, which a view reads as a `host.Press` with the modifier keys held.",
"value": "int"
},
{
"name": "moved",
"doc": "It was dragged along its track or onto another: carries the moment it starts at now and what the track it stands on stands for.",
"value": "float",
"at": "text"
},
{
"name": "trimmed",
"doc": "Its leading or trailing edge was dragged: carries the moment it starts at now and how long it lasts.",
"value": "float",
"at": "float"
}
],
"semantics": {
"role": "ListItem",
"label": "label"
}
},
{
"name": "TimelineMarker",
"doc": "A moment marked on the ruler: a flag with its name, which a person drags along the time.",
"props": [
{
"name": "label",
"doc": "What it is called.",
"type": {
"option": "text"
}
},
{
"name": "at",
"doc": "The moment it marks, in seconds.",
"type": "float",
"required": true
},
{
"name": "tone",
"doc": "The colour it takes from the theme.",
"type": {
"choice": {
"name": "Ink",
"cases": [
"accent",
"ink",
"muted",
"track",
"success",
"warning",
"danger",
"info",
"base",
"surface",
"sidebar"
]
}
}
}
],
"events": [
{
"name": "pressed",
"doc": "It was pressed."
},
{
"name": "moved",
"doc": "It was dragged along the ruler: carries the moment it marks now.",
"value": "float"
}
],
"semantics": {
"role": "Button",
"label": "label"
}
},
{
"name": "TreeViewRow",
"doc": "What one row of a tree shows besides its label: a leading glyph, the tone its title reads in, trailing text and what assistive technology says of it.",
"props": [
{
"name": "icon",
"doc": "A leading glyph: the kind of thing it is. Beside a checkbox it stands after the box, so a checked-off task still says what it is.",
"type": {
"option": "icon"
}
},
{
"name": "tone",
"doc": "The tone its label reads in.",
"type": {
"option": {
"choice": {
"name": "TreeTone",
"cases": [
"primary",
"secondary"
]
}
}
}
},
{
"name": "secondary",
"doc": "Dim text after the label: what the row belongs to (a project, a folder).",
"type": {
"option": "text"
}
},
{
"name": "trailing",
"doc": "Trailing text: a count, a kind, a size.",
"type": {
"option": "text"
}
},
{
"name": "checkbox",
"doc": "A checkbox at the start of the row: a task's done state, a selection. A press on it asks the node's [`TreeViewNodeProps::check`] instead of selecting the row.",
"type": {
"option": "bool"
}
},
{
"name": "description",
"doc": "What assistive technology says of the row after its label (\"Folder\", \"View\").",
"type": {
"option": "text"
}
}
],
"semantics": {
"role": "Generic"
}
},
{
"name": "TreeViewNode",
"doc": "One node of a tree: its label, the resource it stands for, and where it stands.",
"props": [
{
"name": "item",
"doc": "The resource the node stands for: its stable key, what selecting or activating it reports, and what its children name as their parent.",
"type": "resource",
"required": true,
"positional": true
},
{
"name": "label",
"doc": "What the row is called.",
"type": "text",
"required": true,
"positional": true
},
{
"name": "parent",
"doc": "The resource of the node it stands under; without one it is a top-level node.",
"type": {
"option": "resource"
}
},
{
"name": "presence",
"doc": "Who else is at the item now (a member's or an agent's lens on it), shown on the row as a list row shows it ([`crate::widget::ListItemProps::presence`]).",
"type": {
"option": "actor"
}
},
{
"name": "removed",
"doc": "The item was removed and the person has not seen it go: the row stands in for it, its title struck through, at the row's own height. The UI host places such rows.",
"type": "bool"
},
{
"name": "depth",
"doc": "How deep it stands, when the view says it: 0 at the top level. Given, the tree indents the row by it rather than by the rows over it, so a row whose parent stands off screen keeps its place, and a tree whose rows the host renders as it shows them indents rows it never built.",
"type": {
"option": "int"
}
},
{
"name": "above",
"doc": "The node the view shows just over this one under the same parent: the place the actions offered on it take when one reads a place (`above`). None for a first child.",
"type": {
"option": "resource"
}
},
{
"name": "branch",
"doc": "Whether it opens to show the nodes under it. A node with children says so unless it says otherwise.",
"type": "bool"
},
{
"name": "navigates",
"doc": "Whether activating the row opens the item it stands for in the window's own page, as a list's row does. `Some(false)` where the window draws the open item itself — a tree beside its page — and answers the activation: the row reports its events and opens nothing of the host's own, so the page the tree shows is the only one.",
"type": {
"option": "bool"
}
},
{
"name": "progress",
"doc": "How far the branch got (\"1/3\"), which the owner counts of its own children: the same count names a list row and an outline node, so both say one thing, folded or open.",
"type": {
"option": "text"
}
},
{
"name": "selected",
"doc": "Whether it is the selected node.",
"type": "bool"
}
],
"parts": [
{
"name": "row",
"doc": "What the row shows besides its label.",
"accepts": {
"component": "TreeViewRow"
}
},
{
"name": "menu",
"doc": "The commands of its context menu: a right-click, the Menu key or a long press opens it, so every action a row has stays reachable without a drag.",
"accepts": {
"one_of": [
"MenuItem",
"MenuSeparator"
]
},
"many": true
},
{
"name": "toolbar",
"doc": "The controls the row shows over its trailing corner while it is hovered or holds focus: the quick action of the thing it stands for (a note's \"+\", a folder's), without opening a menu. A node that gives none shows no hover toolbar.",
"accepts": {
"component": "Button"
},
"many": true
},
{
"name": "change",
"doc": "What someone else changed of the row's resource that the person has not seen yet: the row shows it, in their colour, on its trailing edge. The UI host places it (task-legibility §3).",
"accepts": {
"component": "ChangeMark"
}
}
],
"events": [
{
"name": "check",
"doc": "This node's checkbox was pressed: the owner toggles what the box stands for."
}
],
"semantics": {
"role": "TreeItem",
"label": "label",
"presents": "item"
}
},
{
"name": "ListItem",
"doc": "One item of a virtual list: the resource its row shows, the row, and what the row offers on the item.",
"props": [
{
"name": "item",
"doc": "The resource the row shows: what selecting or activating the row reports.",
"type": {
"option": "resource"
}
},
{
"name": "value",
"doc": "What the row stands for when it shows no resource of the workspace (a path on this device): what the list's `select_value` and `selected_values` report of it, and what its `chosen_values` names it by. Activating such a row (a double click, Enter, an assistive technology) runs its own row's `activate`, since the row knows what it is and the list does not.",
"type": {
"option": "text"
}
},
{
"name": "presence",
"doc": "Who else is at the item now (a member's or an agent's lens on it), shown on the row.",
"type": {
"option": "actor"
}
},
{
"name": "author",
"doc": "Who wrote it, in a transcript: the list shows their avatar, their name and the time over each run of their consecutive messages, so the row holds only what they wrote.",
"type": {
"option": "actor"
}
},
{
"name": "time",
"doc": "When it was written, in a transcript: the time beside its author's name, and a divider over the first message of each day.",
"type": {
"option": "time"
}
},
{
"name": "read_by",
"doc": "Who else has read to it (`seen_by(c, m)`), in a transcript: their faces, small, once, on the line where their reading ends — each of them shows on no other line, and the author never beside their own words.",
"type": {
"list": "actor"
}
},
{
"name": "offers_menu",
"doc": "The item offers a menu the row does not carry: opening the row's menu asks for the row again with it ([`RowSource::ask_menu`]), and the menu opens when it comes.",
"type": "bool"
},
{
"name": "keys",
"doc": "The keys the item's actions answer to (\"Ctrl+Enter\"): a press of one while the list holds the keyboard on the row reports `shortcut` with it, whether or not the row carries its menu, and whether the row is one list row or a view of any kind.",
"type": {
"list": "text"
}
},
{
"name": "group",
"doc": "The group the row is in, as the platform reads it over the group's first row: a day for a date. Rows of one group stand together under its heading, in the order they come.",
"type": {
"option": "text"
}
},
{
"name": "group_done",
"doc": "The group's day is the day the item was done on, not the day it is due: it reads as the day it happened (`Yesterday`, `Sunday`, `Jun 21`), never as a day gone by, and in no tone of its own.",
"type": "bool"
},
{
"name": "group_tone",
"doc": "How the group's heading and its count read: left to the platform, it reads the tone the date the heading holds asks for (a day gone by is overdue), unless the view names one.",
"type": {
"option": {
"choice": {
"name": "Tone",
"cases": [
"neutral",
"success",
"warning",
"danger",
"info"
]
}
}
}
},
{
"name": "tail",
"doc": "The row is one of the items done with: they stand after every group, under the list's tail title, closed until the person opens them.",
"type": "bool"
},
{
"name": "done",
"doc": "The item is one the person has finished with — its box checked off — though its row may still stand in the list until they leave the place: its title reads struck through, as a checked-off row's does, and a heading counts what is left to do, so it does not count this row ([`crate::widget::heading_count`]).",
"type": "bool"
},
{
"name": "above",
"doc": "The item the view shows just over this one in its group: the place the actions offered on the row take when one reads a place (`above`). None for the first of a group.",
"type": {
"option": "resource"
}
},
{
"name": "removed",
"doc": "The item was removed and the person has not seen it go: the row stands in for it, its title struck through, at the row's own height. The UI host places such rows.",
"type": "bool"
},
{
"name": "parent",
"doc": "The item this one is a subtask of: in a tree list (`tree`) the row stands indented under that item's row, with a disclosure that folds it away.",
"type": {
"option": "resource"
}
},
{
"name": "parent_title",
"doc": "The title of the item it is under, for the row to say where it belongs while that item is no row of the list.",
"type": {
"option": "text"
}
},
{
"name": "progress",
"doc": "Its open subtasks of all of them, on the row's trailing edge: \"1/3\".",
"type": {
"option": "text"
}
},
{
"name": "opens",
"doc": "The row opens into a document of its own where it stands: what its view gives as `detail` comes once it stands open. The list's rows offer to open when this says so, whether or not one carries its document yet.",
"type": "bool"
}
],
"parts": [
{
"name": "menu",
"doc": "What the item offers on its context menu (a right-click, the Menu key or a long press opens it, and selects the row unless the row opens where it stands): each of its allowed actions, after the menu the row's view placed (`attached`) and without those that menu placed already, so every action stays reachable.",
"accepts": {
"one_of": [
"MenuItem",
"MenuSeparator",
"EmojiBar"
]
},
"many": true
},
{
"name": "swipe",
"doc": "What swiping the row from its trailing edge does, unless its view says (`attached`).",
"accepts": {
"component": "SwipeAction"
}
},
{
"name": "attached",
"doc": "What the row's view attached to it (`ui.ContextMenu`, `ui.HoverToolbar`, `ui.Swipe` anywhere in the row's view): its own menu, first in the row's menu; a toolbar shown while the row is hovered or holds focus; a swipe either way.",
"accepts": {
"one_of": [
"ContextMenu",
"HoverToolbar",
"Swipe"
]
},
"many": true
},
{
"name": "change",
"doc": "What someone else changed of the item that the person has not seen yet: the row shows it, in their colour, on its trailing edge. The UI host places it (task-legibility §3).",
"accepts": {
"component": "ChangeMark"
}
},
{
"name": "row",
"doc": "The row: a `ui.ListRow`, or any view.",
"accepts": "view",
"default": true
},
{
"name": "detail",
"doc": "The item's document, shown in the row's place while the row stands open into it: a row with a document opens where it stands in the list when it is chosen, and the list's own motion grows the row to hold it. The document opens with the item's own leading control and title, in the row's column — the row becomes the item, its title written once — and what the item holds follows under them.",
"accepts": "view",
"when_open": true
}
],
"events": [
{
"name": "shortcut",
"doc": "A key of `keys` was pressed on the row: carries it.",
"value": "text"
}
],
"semantics": {
"role": "ListItem",
"presents": "item"
}
}
],
"enums": [
{
"name": "Shape",
"doc": "One shape of a drawing, in fractions of its box.",
"cases": [
{
"name": "rect",
"doc": "A rectangle, rounded by `round` (a fraction of its shorter side).",
"fields": [
{
"name": "x",
"ty": "float"
},
{
"name": "y",
"ty": "float"
},
{
"name": "w",
"ty": "float"
},
{
"name": "h",
"ty": "float"
},
{
"name": "round",
"ty": "float",
"default": {
"float": 0.0
}
},
{
"name": "fill",
"ty": {
"option": {
"choice": {
"name": "Ink",
"cases": [
"accent",
"ink",
"muted",
"track",
"success",
"warning",
"danger",
"info",
"base",
"surface",
"sidebar"
]
}
}
},
"default": "none"
},
{
"name": "stroke",
"ty": {
"option": {
"choice": {
"name": "Ink",
"cases": [
"accent",
"ink",
"muted",
"track",
"success",
"warning",
"danger",
"info",
"base",
"surface",
"sidebar"
]
}
}
},
"default": "none"
},
{
"name": "weight",
"ty": {
"choice": {
"name": "Weight",
"cases": [
"hairline",
"regular",
"strong"
]
}
},
"default": {
"choice": "regular"
},
"doc": "How heavy its line is."
}
]
},
{
"name": "ellipse",
"doc": "An ellipse around (cx, cy).",
"fields": [
{
"name": "cx",
"ty": "float"
},
{
"name": "cy",
"ty": "float"
},
{
"name": "rx",
"ty": "float"
},
{
"name": "ry",
"ty": "float"
},
{
"name": "fill",
"ty": {
"option": {
"choice": {
"name": "Ink",
"cases": [
"accent",
"ink",
"muted",
"track",
"success",
"warning",
"danger",
"info",
"base",
"surface",
"sidebar"
]
}
}
},
"default": "none"
},
{
"name": "stroke",
"ty": {
"option": {
"choice": {
"name": "Ink",
"cases": [
"accent",
"ink",
"muted",
"track",
"success",
"warning",
"danger",
"info",
"base",
"surface",
"sidebar"
]
}
}
},
"default": "none"
},
{
"name": "weight",
"ty": {
"choice": {
"name": "Weight",
"cases": [
"hairline",
"regular",
"strong"
]
}
},
"default": {
"choice": "regular"
},
"doc": "How heavy its line is."
}
]
},
{
"name": "arc",
"doc": "An arc around (cx, cy), from `from` to `to` in fractions of a turn from the top.",
"fields": [
{
"name": "cx",
"ty": "float"
},
{
"name": "cy",
"ty": "float"
},
{
"name": "radius",
"ty": "float"
},
{
"name": "from",
"ty": "float"
},
{
"name": "to",
"ty": "float"
},
{
"name": "stroke",
"ty": {
"choice": {
"name": "Ink",
"cases": [
"accent",
"ink",
"muted",
"track",
"success",
"warning",
"danger",
"info",
"base",
"surface",
"sidebar"
]
}
}
},
{
"name": "weight",
"ty": {
"choice": {
"name": "Weight",
"cases": [
"hairline",
"regular",
"strong"
]
}
},
"default": {
"choice": "regular"
},
"doc": "How heavy its line is."
}
]
},
{
"name": "line",
"doc": "A line from (x1, y1) to (x2, y2).",
"fields": [
{
"name": "x1",
"ty": "float"
},
{
"name": "y1",
"ty": "float"
},
{
"name": "x2",
"ty": "float"
},
{
"name": "y2",
"ty": "float"
},
{
"name": "stroke",
"ty": {
"choice": {
"name": "Ink",
"cases": [
"accent",
"ink",
"muted",
"track",
"success",
"warning",
"danger",
"info",
"base",
"surface",
"sidebar"
]
}
}
},
{
"name": "weight",
"ty": {
"choice": {
"name": "Weight",
"cases": [
"hairline",
"regular",
"strong"
]
}
},
"default": {
"choice": "regular"
},
"doc": "How heavy its line is."
}
]
},
{
"name": "path",
"doc": "A path through `points`, x and y in turn.",
"fields": [
{
"name": "points",
"ty": {
"list": "float"
}
},
{
"name": "smooth",
"ty": "bool",
"default": {
"bool": false
},
"doc": "A smooth curve rather than straight segments."
},
{
"name": "closed",
"ty": "bool",
"default": {
"bool": false
},
"doc": "Back to its first point."
},
{
"name": "fill",
"ty": {
"option": {
"choice": {
"name": "Ink",
"cases": [
"accent",
"ink",
"muted",
"track",
"success",
"warning",
"danger",
"info",
"base",
"surface",
"sidebar"
]
}
}
},
"default": "none"
},
{
"name": "stroke",
"ty": {
"option": {
"choice": {
"name": "Ink",
"cases": [
"accent",
"ink",
"muted",
"track",
"success",
"warning",
"danger",
"info",
"base",
"surface",
"sidebar"
]
}
}
},
"default": "none"
},
{
"name": "weight",
"ty": {
"choice": {
"name": "Weight",
"cases": [
"hairline",
"regular",
"strong"
]
}
},
"default": {
"choice": "regular"
},
"doc": "How heavy its line is."
},
{
"name": "wash",
"ty": "bool",
"default": {
"bool": false
},
"doc": "Its fill fading out downward, down to the drawing's foot when it is open."
},
{
"name": "shade",
"ty": {
"option": "float"
},
"default": "none",
"doc": "How much of the fill's light reaches it, `1` the ink itself and `0` black: a filled cell of a surface shades by the angle it turns to the light."
}
]
},
{
"name": "mesh",
"doc": "A surface of cells, nine numbers each: four corners, x and y in turn, then how much of the fill's light reaches the cell, `1` the ink itself and `0` black. Cells are drawn in the order they are given, so a nearer fold covers the one behind it.",
"fields": [
{
"name": "cells",
"ty": {
"list": "float"
},
"doc": "The cells' numbers, nine to a cell."
},
{
"name": "fill",
"ty": {
"choice": {
"name": "Ink",
"cases": [
"accent",
"ink",
"muted",
"track",
"success",
"warning",
"danger",
"info",
"base",
"surface",
"sidebar"
]
}
}
}
]
},
{
"name": "text",
"doc": "A text at (x, y), set in one of the theme's type roles.",
"fields": [
{
"name": "x",
"ty": "float"
},
{
"name": "y",
"ty": "float"
},
{
"name": "text",
"ty": "text"
},
{
"name": "role",
"ty": {
"choice": {
"name": "TextRole",
"cases": [
"display",
"large_title",
"title",
"heading",
"subheading",
"body",
"label",
"caption",
"reading",
"code"
]
}
},
"default": {
"choice": "body"
},
"doc": "Its type role: the theme's size and face for it."
},
{
"name": "ink",
"ty": {
"choice": {
"name": "Ink",
"cases": [
"accent",
"ink",
"muted",
"track",
"success",
"warning",
"danger",
"info",
"base",
"surface",
"sidebar"
]
}
},
"default": {
"choice": "ink"
}
},
{
"name": "anchor",
"ty": {
"choice": {
"name": "Anchor",
"cases": [
"start",
"middle",
"end"
]
}
},
"default": {
"choice": "middle"
},
"doc": "Which side of it stands at (x, y)."
},
{
"name": "strong",
"ty": "bool",
"default": {
"bool": false
},
"doc": "Set heavier than its role."
}
]
},
{
"name": "area",
"doc": "A box filled in a colour of its own (`#rrggbb` or `#rrggbbaa`), not the theme's.",
"fields": [
{
"name": "x",
"ty": "float"
},
{
"name": "y",
"ty": "float"
},
{
"name": "w",
"ty": "float"
},
{
"name": "h",
"ty": "float"
},
{
"name": "round",
"ty": "float",
"default": {
"float": 0.0
}
},
{
"name": "colour",
"ty": "text",
"doc": "Its fill, `#rrggbb` or `#rrggbbaa`."
},
{
"name": "stroke_colour",
"ty": "text",
"default": {
"text": ""
},
"doc": "Its outline, `#rrggbb`; none unless said."
},
{
"name": "stroke_width",
"ty": "float",
"default": {
"float": 0.0
},
"doc": "Its outline's width, a fraction of the box's shorter side."
}
]
},
{
"name": "oval",
"doc": "An ellipse filled and outlined in colours of its own, not the theme's.",
"fields": [
{
"name": "cx",
"ty": "float"
},
{
"name": "cy",
"ty": "float"
},
{
"name": "rx",
"ty": "float"
},
{
"name": "ry",
"ty": "float"
},
{
"name": "colour",
"ty": "text",
"doc": "Its fill, `#rrggbb` or `#rrggbbaa`."
},
{
"name": "stroke_colour",
"ty": "text",
"default": {
"text": ""
},
"doc": "Its outline, `#rrggbb`; none unless said."
},
{
"name": "stroke_width",
"ty": "float",
"default": {
"float": 0.0
},
"doc": "Its outline's width, a fraction of the box's shorter side."
}
]
},
{
"name": "stroke",
"doc": "A line through `points` in a colour of its own, not the theme's.",
"fields": [
{
"name": "points",
"ty": {
"list": "float"
}
},
{
"name": "colour",
"ty": "text",
"doc": "Its line, `#rrggbb` or `#rrggbbaa`."
},
{
"name": "width",
"ty": "float",
"doc": "The line's width, a fraction of the box's shorter side."
}
]
},
{
"name": "picture",
"doc": "A picture covering (x, y, w, h), its bytes at the content address `src` in the device's store.",
"fields": [
{
"name": "x",
"ty": "float",
"doc": "Its left edge, a fraction of the box."
},
{
"name": "y",
"ty": "float",
"doc": "Its top edge, a fraction of the box."
},
{
"name": "w",
"ty": "float",
"doc": "Its width, a fraction of the box."
},
{
"name": "h",
"ty": "float",
"doc": "Its height, a fraction of the box."
},
{
"name": "src",
"ty": "text",
"doc": "Where its bytes are: a content address (`tilo-blob://…`)."
}
]
},
{
"name": "label",
"doc": "A text at (x, y) in a colour and size of its own, not the theme's.",
"fields": [
{
"name": "x",
"ty": "float"
},
{
"name": "y",
"ty": "float"
},
{
"name": "text",
"ty": "text"
},
{
"name": "colour",
"ty": "text",
"doc": "Its words, `#rrggbb` or `#rrggbbaa`."
},
{
"name": "size",
"ty": "float",
"doc": "Its height, a fraction of the box's height."
},
{
"name": "anchor",
"ty": {
"choice": {
"name": "Anchor",
"cases": [
"start",
"middle",
"end"
]
}
},
"default": {
"choice": "middle"
},
"doc": "Which side of it stands at (x, y)."
},
{
"name": "strong",
"ty": "bool",
"default": {
"bool": false
},
"doc": "Set heavier than its size alone."
},
{
"name": "italic",
"ty": "bool",
"default": {
"bool": false
},
"doc": "Set in italics."
},
{
"name": "wrap",
"ty": "float",
"default": {
"float": 0.0
},
"doc": "A width to break its lines within, a fraction of the box's; one line unless said."
}
]
}
]
},
{
"name": "Series",
"doc": "One line of a chart: its readings, oldest first.",
"cases": [
{
"name": "series",
"doc": "A line through `values`, named `label` in the chart's legend.",
"fields": [
{
"name": "values",
"ty": {
"list": "float"
},
"doc": "The readings, oldest first."
},
{
"name": "label",
"ty": "text",
"default": {
"text": ""
},
"doc": "What it is of, in the legend."
},
{
"name": "ink",
"ty": {
"choice": {
"name": "Ink",
"cases": [
"accent",
"ink",
"muted",
"track",
"success",
"warning",
"danger",
"info",
"base",
"surface",
"sidebar"
]
}
},
"default": {
"choice": "accent"
},
"doc": "The theme's ink it is drawn in."
}
]
}
]
},
{
"name": "Connection",
"doc": "One connection of a graph, between two of its nodes.",
"cases": [
{
"name": "connection",
"doc": "From the node (or a control in one) named `from` to the one named `to`.",
"fields": [
{
"name": "from",
"ty": "text",
"doc": "Where it starts."
},
{
"name": "to",
"ty": "text",
"doc": "Where it ends."
}
]
}
]
},
{
"name": "Bars",
"doc": "The bars of one measured thing: its reading in each category.",
"cases": [
{
"name": "bars",
"doc": "A bar in each category for `values`, named `label` in the chart's legend.",
"fields": [
{
"name": "values",
"ty": {
"list": "float"
},
"doc": "The readings, one for each category, in the categories' order."
},
{
"name": "label",
"ty": "text",
"default": {
"text": ""
},
"doc": "What is measured, in the legend."
}
]
}
]
},
{
"name": "Slice",
"doc": "One part of the whole a pie shows.",
"cases": [
{
"name": "slice",
"doc": "A slice as large as `value` is of the sum, named `label` in the legend.",
"fields": [
{
"name": "label",
"ty": "text",
"doc": "What the part is of."
},
{
"name": "value",
"ty": "float",
"doc": "How much of it there is; nothing below zero is drawn."
}
]
}
]
},
{
"name": "Samples",
"doc": "One measured thing's observations, from which its spread is calculated.",
"cases": [
{
"name": "samples",
"doc": "Every reading taken of `label`, in any order.",
"fields": [
{
"name": "values",
"ty": {
"list": "float"
},
"doc": "The observations, one reading each."
},
{
"name": "label",
"ty": "text",
"default": {
"text": ""
},
"doc": "What was measured."
}
]
}
]
},
{
"name": "Areas",
"doc": "One direction of a cycle, and its magnitude.",
"cases": [
{
"name": "area",
"doc": "A sector as long as `value` is of the largest, named `label`.",
"fields": [
{
"name": "label",
"ty": "text",
"doc": "Which direction it is."
},
{
"name": "value",
"ty": "float",
"doc": "Its magnitude; nothing below zero is drawn."
}
]
}
]
},
{
"name": "Axes",
"doc": "One measure a radar shows, with its own scale.",
"cases": [
{
"name": "axis",
"doc": "An axis named `label`, whose rim stands at `max`.",
"fields": [
{
"name": "label",
"ty": "text",
"doc": "What it measures."
},
{
"name": "max",
"ty": "float",
"doc": "The reading that reaches the axis' rim; readings past it stop there."
}
]
}
]
},
{
"name": "RadarSeries",
"doc": "One thing read across a radar's axes.",
"cases": [
{
"name": "series",
"doc": "A shape through `values`, one per axis in the axes' order, named `label` in the legend.",
"fields": [
{
"name": "values",
"ty": {
"list": "float"
},
"doc": "The readings, one for each axis, in the axes' order."
},
{
"name": "label",
"ty": "text",
"default": {
"text": ""
},
"doc": "What it is of, in the legend."
}
]
}
]
},
{
"name": "Stages",
"doc": "One stage of a sequence, and how many reach it.",
"cases": [
{
"name": "stage",
"doc": "A stage as wide as `value` is of the widest, named `label`.",
"fields": [
{
"name": "label",
"ty": "text",
"doc": "What the stage is."
},
{
"name": "value",
"ty": "float",
"doc": "How many reach it; nothing at or below zero is drawn."
}
]
}
]
},
{
"name": "SheetCell",
"doc": "One cell of a sheet as it shows: its reference, the text it shows and how it reads.",
"cases": [
{
"name": "cell",
"doc": "A cell at its A1 reference, showing `text`.",
"fields": [
{
"name": "cell",
"ty": "text",
"doc": "Its A1 reference, such as `A1`."
},
{
"name": "text",
"ty": "text",
"default": {
"text": ""
},
"doc": "What it shows, already through its format."
},
{
"name": "kind",
"ty": {
"choice": {
"name": "SheetCellKind",
"cases": [
"text",
"number",
"bool",
"error"
]
}
},
"default": {
"choice": "text"
},
"doc": "How it reads: a number sits at its right edge and a word at its left."
},
{
"name": "bold",
"ty": "bool",
"default": {
"bool": false
},
"doc": "Set heavier than its neighbours."
}
]
}
]
},
{
"name": "SheetPeer",
"doc": "Another person at work in the sheet: the cells they chose and who they are.",
"cases": [
{
"name": "peer",
"doc": "A person's selection, drawn in their colour.",
"fields": [
{
"name": "area",
"ty": "text",
"doc": "Their selection, as `A1` or `A1:B2`."
},
{
"name": "who",
"ty": "actor",
"doc": "Whose selection it is."
}
]
}
]
},
{
"name": "SheetSize",
"doc": "A column's width or a row's height, as the person set it.",
"cases": [
{
"name": "column",
"doc": "A column made wider or narrower than the rest.",
"fields": [
{
"name": "column",
"ty": "text",
"doc": "Its letter, such as `A`."
},
{
"name": "width",
"ty": "float",
"doc": "Its width in pixels."
}
]
},
{
"name": "row",
"doc": "A row made taller or shorter than the rest.",
"fields": [
{
"name": "row",
"ty": "float",
"doc": "Its number, counting from 1."
},
{
"name": "height",
"ty": "float",
"doc": "Its height in pixels."
}
]
}
]
},
{
"name": "Cells",
"doc": "One cell of a matrix, at the crossing of a row and a column.",
"cases": [
{
"name": "cell",
"doc": "The value at `row` and `column`, coloured by where it stands among all cells.",
"fields": [
{
"name": "row",
"ty": "text",
"doc": "Which row, by the name the rows give it."
},
{
"name": "column",
"ty": "text",
"doc": "Which column, by the name the columns give it."
},
{
"name": "value",
"ty": "float",
"doc": "What was measured there; a cell no number reaches stays empty."
}
]
}
]
},
{
"name": "Part",
"doc": "One part of a hierarchy: what it is, the part it belongs to, and how much of the whole it is.",
"cases": [
{
"name": "part",
"doc": "A part called `label`, under the part called `parent`, worth `value`.",
"fields": [
{
"name": "id",
"ty": "text",
"default": {
"text": ""
},
"doc": "What its own parts call it as their parent; its label unless said."
},
{
"name": "parent",
"ty": "text",
"default": {
"text": ""
},
"doc": "The id of the part it belongs to; nothing when it stands at the top level."
},
{
"name": "label",
"ty": "text",
"doc": "What it is called, on the chart and in its readout."
},
{
"name": "value",
"ty": "float",
"doc": "How much of the whole it is; a part with parts of its own is as large as everything under it."
}
]
}
]
},
{
"name": "FlowNode",
"doc": "One node of a flow or a web of relationships: a stage, a team, a source.",
"cases": [
{
"name": "node",
"doc": "A node named `label`, called `id` by the links that start or end at it.",
"fields": [
{
"name": "id",
"ty": "text",
"default": {
"text": ""
},
"doc": "What the links call it; its label unless said."
},
{
"name": "label",
"ty": "text",
"doc": "What it is called."
}
]
}
]
},
{
"name": "FlowLink",
"doc": "One weighted link of a graph: how much moves or crosses between two nodes.",
"cases": [
{
"name": "link",
"doc": "From the node called `from` to the node called `to`, worth `value`.",
"fields": [
{
"name": "from",
"ty": "text",
"doc": "The id of the node it starts at."
},
{
"name": "to",
"ty": "text",
"doc": "The id of the node it ends at."
},
{
"name": "value",
"ty": "float",
"doc": "How much moves between them; nothing at or below zero is drawn."
}
]
}
]
},
{
"name": "Points",
"doc": "One series of a plot: its readings at each x, and how they are drawn.",
"cases": [
{
"name": "points",
"doc": "A series through the reading at each x, named `label` in the legend.",
"fields": [
{
"name": "x",
"ty": {
"list": "float"
},
"doc": "Where each reading stands on the x axis, in order."
},
{
"name": "y",
"ty": {
"list": "float"
},
"doc": "The reading at each x, in the same order."
},
{
"name": "label",
"ty": "text",
"default": {
"text": ""
},
"doc": "What is measured, in the legend."
},
{
"name": "kind",
"ty": {
"choice": {
"name": "Curve",
"cases": [
"line",
"smooth",
"step",
"area",
"smooth_area",
"step_area",
"scatter",
"bubble",
"bar",
"lollipop"
]
}
},
"default": {
"choice": "line"
},
"doc": "How the readings are drawn: a line unless said."
},
{
"name": "marker",
"ty": {
"choice": {
"name": "Marker",
"cases": [
"circle",
"square",
"diamond"
]
}
},
"default": {
"choice": "circle"
},
"doc": "The shape of the dot at each point, where the kind draws one."
}
]
}
]
},
{
"name": "Candle",
"doc": "One period of a price: its open, high, low and close.",
"cases": [
{
"name": "candle",
"doc": "A period named `label`, from `open` through `high` and `low` to `close`.",
"fields": [
{
"name": "label",
"ty": "text",
"doc": "Which period it is: a day, a week, a session."
},
{
"name": "open",
"ty": "float",
"doc": "The price it opened at."
},
{
"name": "high",
"ty": "float",
"doc": "The highest price in it; never below the open or the close."
},
{
"name": "low",
"ty": "float",
"doc": "The lowest price in it; never above the open or the close."
},
{
"name": "close",
"ty": "float",
"doc": "The price it closed at."
},
{
"name": "volume",
"ty": "float",
"default": {
"float": 0.0
},
"doc": "How much was traded in it, drawn under the prices when the chart shows volume."
}
]
}
]
},
{
"name": "Range",
"doc": "One row of a range chart: what takes the span, from where to where.",
"cases": [
{
"name": "range",
"doc": "What `label` is from `start` to `end`; a single point when the two are the same.",
"fields": [
{
"name": "label",
"ty": "text",
"doc": "What takes the span."
},
{
"name": "start",
"ty": "float",
"doc": "Where the span begins."
},
{
"name": "end",
"ty": "float",
"doc": "Where the span ends; the same as `start` draws a milestone."
},
{
"name": "progress",
"ty": {
"option": "float"
},
"default": "none",
"doc": "How far it has come, from zero to one, filled in the bar by the `plan` kind."
}
]
}
]
}
],
"icons": [
"a-arrow-down",
"a-arrow-up",
"a-large-small",
"accessibility",
"activity",
"airplay",
"alarm-clock",
"align-center-horizontal",
"align-center-vertical",
"align-center",
"align-end-horizontal",
"align-end-vertical",
"align-horizontal-distribute-center",
"align-justify",
"align-left",
"align-right",
"align-start-horizontal",
"align-start-vertical",
"align-vertical-distribute-center",
"app-window",
"archive",
"arrow-big-up",
"arrow-down-left",
"arrow-down-right",
"arrow-down-to-line",
"arrow-down-wide-narrow",
"arrow-down",
"arrow-left",
"arrow-right",
"arrow-up-down",
"arrow-up-from-line",
"arrow-up-left",
"arrow-up-right",
"arrow-up",
"at-sign",
"award",
"badge-check",
"ban",
"bar-chart",
"baseline",
"battery-charging",
"battery",
"bed-double",
"beer",
"bell-off",
"bell-ring",
"bell",
"bluetooth-off",
"bluetooth",
"bold",
"book-open",
"bookmark-plus",
"bookmark",
"bot",
"box",
"brain",
"briefcase",
"bring-to-front",
"brush",
"building-2",
"bus",
"calendar-days",
"calendar-plus",
"calendar",
"camera-off",
"camera",
"captions",
"car",
"cast",
"chart-pie",
"check",
"chevron-down",
"chevron-left",
"chevron-right",
"chevron-up",
"chevrons-left",
"chevrons-right",
"chevrons-up-down",
"circle-alert",
"circle-check",
"circle-dashed",
"circle-dot",
"circle-help",
"circle-minus",
"circle-pause",
"circle-play",
"circle-plus",
"circle-stop",
"circle-user",
"circle-x",
"circle",
"clipboard-check",
"clipboard-paste",
"clipboard",
"clock",
"cloud-download",
"cloud-off",
"cloud-rain",
"cloud-snow",
"cloud-sun",
"cloud-upload",
"cloud",
"code",
"coffee",
"columns-2",
"command",
"compass",
"contact",
"contrast",
"copy",
"corner-down-left",
"corner-up-left",
"corner-up-right",
"cpu",
"credit-card",
"crop",
"database",
"delete",
"disc-3",
"discord",
"download",
"droplet",
"ellipsis-vertical",
"ellipsis",
"eraser",
"ethernet-port",
"expand",
"external-link",
"eye-off",
"eye",
"fast-forward",
"file-archive",
"file-audio",
"file-code",
"file-image",
"file-plus",
"file-search",
"file-text",
"file-video",
"file",
"film",
"fingerprint",
"flag",
"flame",
"folder-open",
"folder-plus",
"folder",
"forward",
"fullscreen",
"funnel",
"gallery-horizontal",
"gallery-vertical-end",
"gamepad-2",
"gauge",
"gift",
"git-branch",
"git-commit-horizontal",
"git-pull-request",
"globe",
"grip-horizontal",
"grip-vertical",
"hammer",
"hand",
"hard-drive",
"hash",
"heading-1",
"heading-2",
"headphone-off",
"headphones",
"heart-filled",
"heart-off",
"heart",
"highlighter",
"history",
"home",
"hospital",
"hourglass",
"id-card",
"image-plus",
"image",
"inbox",
"indent-decrease",
"indent-increase",
"info",
"italic",
"kanban",
"key",
"keyboard",
"landmark",
"languages",
"laptop",
"lasso",
"layers",
"layout-dashboard",
"layout-grid",
"leaf",
"library",
"lightbulb-off",
"lightbulb",
"link-2",
"link",
"list-checks",
"list-filter",
"list-music",
"list-ordered",
"list-plus",
"list-tree",
"list-video",
"list",
"loader-circle",
"locate-fixed",
"lock-open",
"lock",
"log-in",
"log-out",
"mail-open",
"mail",
"map-pin",
"map",
"maximize-2",
"maximize",
"menu",
"message-circle",
"message-square-plus",
"message-square",
"messages-square",
"mic-off",
"mic",
"minimize-2",
"minimize",
"minus",
"monitor-smartphone",
"monitor",
"moon",
"more-horizontal",
"mouse-pointer-2",
"mouse",
"move",
"music",
"navigation",
"newspaper",
"notebook",
"package",
"paint-bucket",
"palette",
"panel-bottom",
"panel-left",
"panel-right",
"panel-top",
"paperclip",
"pause",
"paw-print",
"pen-tool",
"pencil",
"phone-call",
"phone-off",
"phone",
"picture-in-picture-2",
"pin-off",
"pin",
"pipette",
"plane",
"play",
"plug",
"plus",
"power",
"printer",
"puzzle",
"qr-code",
"quote",
"radio",
"receipt",
"redo-2",
"refresh-ccw",
"refresh",
"repeat-1",
"repeat",
"reply-all",
"reply",
"rewind",
"rotate-ccw",
"rotate-cw",
"route",
"rss",
"ruler",
"save",
"scan-line",
"scissors",
"screen-share",
"sd-card",
"search-x",
"search",
"send-to-back",
"send",
"server",
"settings-2",
"settings",
"share-2",
"share",
"shield-alert",
"shield-check",
"shield",
"shopping-bag",
"shopping-cart",
"shrink",
"shuffle",
"signal",
"skip-back",
"skip-forward",
"slash",
"sliders-horizontal",
"smartphone",
"smile-plus",
"smile",
"snowflake",
"sparkles",
"speaker",
"spell-check",
"square-dashed",
"square-pen",
"square-terminal",
"square",
"squares-exclude",
"squares-intersect",
"squares-subtract",
"squares-unite",
"star-off",
"star",
"sticky-note",
"store",
"strikethrough",
"subscript",
"sun",
"superscript",
"switch-camera",
"table",
"tablet",
"tag",
"terminal",
"text-cursor",
"thermometer",
"thumbs-down",
"thumbs-up",
"tilo",
"timer",
"toggle-left",
"toggle-right",
"train-front",
"trash-2",
"trash",
"trees",
"trending-down",
"trending-up",
"triangle-alert",
"trophy",
"truck",
"tv",
"type",
"umbrella",
"underline",
"undo-2",
"unlink",
"upload",
"usb",
"user-check",
"user-cog",
"user-minus",
"user-plus",
"user-x",
"user",
"users",
"utensils",
"video-off",
"video",
"volume-1",
"volume-2",
"volume-x",
"wallet",
"wand-sparkles",
"wifi-off",
"wifi",
"wind",
"wrap-text",
"wrench",
"x",
"zap",
"zoom-in",
"zoom-out"
]
}