@kirana-ui/angular 0.1.1 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/llms.txt CHANGED
@@ -2,52 +2,396 @@
2
2
 
3
3
  > Kirana UI Primitives for Angular: headless, accessible components with no styles of their own. The same components, parts, attributes and behaviour as on the other four frameworks, from one core.
4
4
 
5
- Generated from the library's own definitions (`bun scripts/llms.ts`): what is here is what the components do.
5
+ Generated from the library's own source (`bun scripts/llms.ts`), and checked against it: every part and every prop here is in the package, and what is not here is not. In order: installing it and its entries; the positioner's options; the types the props name; what else is exported; the agent bridge; the testing kit; then "Using it" (the rules of every component) and "Components" (each one's parts, props, attributes and CSS variables).
6
+
7
+ ## Install and entries
8
+
9
+ Install `@kirana-ui/angular`. It is enough: the core it is built on comes with it, and what the core gives an application is also an entry of this package (`@kirana-ui/angular/agent`, `@kirana-ui/angular/testing`), so nothing is imported from a package the project did not install.
10
+
11
+ Its entries: `@kirana-ui/angular` (every directive, and what a directive of your own is made with), `@kirana-ui/angular/agent` and `@kirana-ui/angular/testing`. There is no entry per component: Angular's packager writes one module, which a project's build takes apart.
12
+
13
+ The attributes and CSS variables below are also data and typed selectors, for a design system: install `@kirana-ui/vocabulary` for them (`import { vocabulary } from "@kirana-ui/vocabulary"`, `import { Dialog } from "@kirana-ui/vocabulary/keys"`: `Dialog.Popup.open` is `"[data-open]"`). It is its own package, and not installed with this one.
14
+
15
+ An agent's skill is in the package: `node_modules/@kirana-ui/angular/skills/kirana-ui-primitives/SKILL.md`.
16
+
17
+ ## Positioner options
18
+
19
+ What every `Positioner` takes, beside its own props where a component's section lists any:
20
+
21
+ - `side?: Side`: The side of the anchor the popup is on. `inline-start` and `inline-end` follow the reading direction the popup is placed in, and `data-side` then says the side in the same words. Default `"bottom"`.
22
+ - `align?: Align`: Where along that side the popup is: at the anchor's start, its centre or its end. Default `"center"`.
23
+ - `sideOffset?: number`: The gap between the anchor and the popup, measured without any arrow. Default `0`.
24
+ - `alignOffset?: number`: How far the popup is moved along the side from where `align` puts it, in pixels. Default `0`.
25
+ - `collisionPadding?: number`: Kept between the popup and the viewport's edges. Default `5`.
26
+ - `anchor?: PositionerAnchor`: What the popup is placed against, when that is not its trigger. It may change while the popup is open: the popup follows.
27
+
28
+ A component's own defaults lie over those: `Autocomplete` `{ align: "start" }`; `Combobox` `{ align: "start" }`; `ContextMenu` `{ align: "start" }`, and `{ side: "inline-end", align: "start" }` for a submenu or for a menu in a vertical menubar; `HoverCard` `{ side: "top" }`; `Menu` `{ align: "start" }`, and `{ side: "inline-end", align: "start" }` for a submenu or for a menu in a vertical menubar; `NavigationMenu` `{ align: "start" }`; `Select` `{ align: "start" }`; `Tooltip` `{ side: "top" }`.
29
+
30
+ ## Types
31
+
32
+ The named types the props below mention, each with the entry of this package it is imported from: `import type { ChangeDetails, Side } from "@kirana-ui/angular"`. The core's own types are re-exported there, as types only, so nothing is imported from `@kirana-ui/core`, which a strict installer keeps out of a project's reach. A capital alone (`Value`) in a part's props is that part's own type parameter, said on the part's line.
33
+
34
+ - `Align` (`@kirana-ui/angular`): `"start" | "center" | "end"`. Where along its side a popup is: at the anchor's start, its centre or its end.
35
+ - `Anchor` (`@kirana-ui/angular`): `Element | VirtualElement`. What a popup is placed against: an element, or a place in the viewport that is none.
36
+ - `CalendarDay` (`@kirana-ui/angular`): A day in the grid of the month shown.
37
+ - `date: IsoDate`
38
+ - `label: string`: The day of the month as the locale writes it.
39
+ - `outside: boolean`: Not of the month shown: the days that fill its first and last weeks.
40
+ - `CalendarProps` (`@kirana-ui/angular`)
41
+ - `id: string`
42
+ - `value?: CalendarValue`: One day, or with `mode: "range"` a first and a last day; `null` for none.
43
+ - `defaultValue?: CalendarValue`: The value it starts with, when the caller does not hold `value`. Read once.
44
+ - `onValueChange?: ((value: CalendarValue, details: ChangeDetails) => void)`: Heard as a day is about to be chosen: `details.cancel()` keeps the value as it was.
45
+ - `mode?: "single" | "range"`: Whether one day is chosen (the default) or a first and a last.
46
+ - `defaultFocusedValue?: IsoDate`: The day it opens on, when it has no value: its month is the one shown.
47
+ - `onMonthChange?: ((month: IsoDate) => void)`: Heard when another month is shown: its first day.
48
+ - `locale?: string`: The language and region its names, numbers, first day of the week and calendar follow (`"en-US"`, `"fa-IR"`). Give it: a server does not know the reader's.
49
+ - `calendarSystem?: CalendarSystem`: The calendar its months are laid out in, when it is not the Gregorian one: an instance from `@internationalized/date` (`new PersianCalendar()`). Given, not found from the locale: a page then carries only the calendars it uses.
50
+ - `min?: IsoDate`: The first and the last day that can be chosen.
51
+ - `max?: IsoDate`: The last day that can be chosen.
52
+ - `isDateUnavailable?: ((date: IsoDate) => boolean)`: Days that cannot be chosen, though they can be reached: a day off, a day taken.
53
+ - `disabled?: boolean`: Disabled: no day can be chosen.
54
+ - `readOnly?: boolean`: Shown as it is: the days can be moved through, and none can be chosen.
55
+ - `fixedWeeks?: boolean`: Always six rows, so the calendar is one height in every month.
56
+ - `CalendarValue` (`@kirana-ui/angular`): `IsoDate | DateRange | null`. What a calendar holds: a day, a range of days in `mode: "range"`, or `null` for none.
57
+ - `CalendarWeekday` (`@kirana-ui/angular`): A day of the week, as a column's heading names it.
58
+ - `index: number`: Its place in the week as the locale orders it, from 0.
59
+ - `narrow: string`: Its name as a column's heading (`"M"`, `"Mo"`), and in full (`"Monday"`).
60
+ - `short: string`
61
+ - `long: string`
62
+ - `ChangeDetails` (`@kirana-ui/angular`): What a change callback is given beside the value: why it changed, what made it, and a way to refuse it.
63
+ - `reason: string`: Why the value changed: `"trigger-press"`, `"outside-press"`, `"escape-key"`, `"item-press"` …
64
+ - `event: Event | undefined`: The DOM event behind it, when there is one.
65
+ - `source: ChangeSource`: What made it: a mouse, a finger, a pen, the keyboard, something that presses without a pointer (a screen reader, `element.click()`), code with no event at all, or an agent acting through the bridge (`@kirana-ui/core/agent`).
66
+ - `cancel(): void`: Keeps the value as it was.
67
+ - `canceled: boolean`
68
+ - `ChangeSource` (`@kirana-ui/angular`): `"mouse" | "touch" | "pen" | "keyboard" | "virtual" | "programmatic" | "agent"`. What made a change: a kind of pointer, the keyboard, a press with no pointer (`virtual`), code with no event (`programmatic`), or an agent acting through the bridge.
69
+ - `DateFieldProps` (`@kirana-ui/angular`)
70
+ - `id: string`
71
+ - `value?: IsoDate | null`: The day typed, once all of it is; `null` until then.
72
+ - `defaultValue?: IsoDate | null`: The value it starts with, when the caller does not hold `value`. Read once.
73
+ - `onValueChange?: ((value: IsoDate | null, details: ChangeDetails) => void)`: Heard as the day is about to change, once all of it is typed or as it is cleared: `details.cancel()` keeps the value as it was.
74
+ - `locale?: string`: The language and region that order the day, the month and the year and put what stands between them (`"en-US"`: month/day/year). Give it: a server does not know the reader's.
75
+ - `min?: IsoDate`: The first and the last day it takes: outside them it says it is invalid.
76
+ - `max?: IsoDate`: The last day it takes.
77
+ - `placeholders?: Partial<Record<DateUnit, string>>`: What an empty part shows. Default: `dd`, `mm`, `yyyy`.
78
+ - `disabled?: boolean`: Disabled: it cannot be changed.
79
+ - `readOnly?: boolean`: Shown as it is, focusable, not changeable.
80
+ - `required?: boolean`: Needed: in a `Field`, leaving it empty is then invalid.
81
+ - `name?: string`: The name it is submitted under, by its hidden input.
82
+ - `form?: string`: The id of the form it belongs to, when it is not inside it.
83
+ - `DateFieldSegment` (`@kirana-ui/angular`): One piece of the field, in the locale's order: a part that is typed, or what stands between.
84
+ - `type: DateUnit | "literal"`
85
+ - `literal: string`: What stands between two parts (`"/"`); empty for a part that is typed.
86
+ - `index: number`: Its place among the pieces.
87
+ - `DateRange` (`@kirana-ui/angular`): A range of days, its first and its last, both in it.
88
+ - `start: IsoDate`
89
+ - `end: IsoDate`
90
+ - `DateUnit` (`@kirana-ui/angular`): `"day" | "month" | "year"`. A part of a date that is typed on its own.
91
+ - `Direction` (`@kirana-ui/angular`): `"ltr" | "rtl"`. The reading direction: left to right, or right to left.
92
+ - `DrawerSide` (`@kirana-ui/angular`): `"up" | "down" | "left" | "right"`. The way a drawer is swiped to close it: towards the edge it came from.
93
+ - `DrawerSnapPoint` (`@kirana-ui/angular`): `number | string`. How much of a drawer shows at a place it rests: a share of it, or a length.
94
+ - `FieldValidity` (`@kirana-ui/angular`): What a field knows of its control's value once it has been checked.
95
+ - `valid: boolean | null`: `null` until the value has been checked.
96
+ - `errors: readonly string[]`: What is wrong, one message each.
97
+ - `state: Readonly<Record<ValidityKey, boolean>>`: What the browser found, by name; `customError` is the field's own `validate`.
98
+ - `value: string`: The value that was checked.
99
+ - `FormErrors` (`@kirana-ui/angular`): `Record<string, string | readonly string[]>`. A form's errors as a server sends them: each field's name with its message, or messages.
100
+ - `FormValues` (`@kirana-ui/angular`): `Record<string, FormDataEntryValue | FormDataEntryValue[]>`. A form's values by field name, as `FormData` holds them: a list where a name is there more than once.
101
+ - `IsoDate` (`@kirana-ui/angular`): `string`. A day as `YYYY-MM-DD`, in the calendar the world's data is kept in (ISO 8601).
102
+ - `ItemLabels<Value = unknown>` (`@kirana-ui/angular`): `readonly { value: Value; label: string }[] | Readonly<Record<string, string>>`. The labels of a control's values, as its caller gives them: a list of values with their labels, or, for values that are text, the labels by value (`{ apple: "Apple" }`).
103
+ - `ListCollection` (`@kirana-ui/angular`): Every row of a list of which only some are in the page: a virtualizer draws the ones in view. The keys then move by place, and ask for a row that is not drawn to be brought into the page.
104
+ - `count: number`: How many rows there are, drawn or not.
105
+ - `label?(index: number): string`: A row's name by its place: what typing matches. Without it, typing finds nothing.
106
+ - `disabled?(index: number): boolean`
107
+ - `indexOf?(value: unknown): number`: The place of a value, or -1: where a list opens on what is chosen.
108
+ - `scrollToIndex(index: number): void`: Brings a row into the page: the virtualizer's own scroll.
109
+ - `Orientation` (`@kirana-ui/angular`): `"horizontal" | "vertical"`. The way a row of things is laid out, and so which arrow keys move along it.
110
+ - `PaginationEntry` (`@kirana-ui/angular`): `{ readonly type: "page"; readonly page: number; readonly key: string } | { readonly type: "ellipsis"; readonly key: "start" | "end" }`. One piece of the list of pages: a page, or the mark for pages left out.
111
+ - `PhysicalSide` (`@kirana-ui/angular`): `"top" | "right" | "bottom" | "left"`. A side of the anchor as the page is drawn.
112
+ - `PositionerAnchor` (`@kirana-ui/angular`): `Anchor | ElementRef<Element> | (() => Anchor | ElementRef<Element> | null | undefined) | null | undefined`. What a positioner's `anchor` may be: an element (a template variable, `#box`), an `ElementRef`, a place in the viewport (an object with `getBoundingClientRect`), or a function that gives one of those (a `viewChild` signal).
113
+ - `QrCorrection` (`@kirana-ui/angular`): `"L" | "M" | "Q" | "H"`. How much of the symbol may be lost and still be read: about 7, 15, 25 and 30 in a hundred.
114
+ - `ReadonlySignal<T>` (`@kirana-ui/angular`): A value that is read, and that tells when it changes.
115
+ - `get(): T`: The value, tracked by the computed or effect that reads it.
116
+ - `peek(): T`: The value, untracked.
117
+ - `subscribe(listener: () => void): () => void`: Calls `listener` after each change (not at once). Returns the unsubscribe.
118
+ - `SelectShown<Value = unknown>` (`@kirana-ui/angular`): What a select's value part shows: what is chosen, and how it is named.
119
+ - `value: Value | null`: The chosen value; `null` while nothing is chosen, and with `multiple`.
120
+ - `label: string | undefined`: What the part says: the chosen value's label, or with `multiple` every chosen label with ", " between; `undefined` while nothing is chosen.
121
+ - `values: readonly Value[]`: Every chosen value, in the items' order: one or none without `multiple`.
122
+ - `labels: readonly string[]`: The label of each of `values`.
123
+ - `Side` (`@kirana-ui/angular`): `PhysicalSide | "inline-start" | "inline-end"`. The side of its anchor a popup is on. `inline-start` and `inline-end` turn with the reading direction: `inline-end` is the right in English and the left in Arabic.
124
+ - `SliderChangeDetails` (`@kirana-ui/angular`): A slider's change details: the details of any change, and which thumb moved.
125
+ - `index: number`: The thumb that moved.
126
+ - `reason: string`: Why the value changed: `"trigger-press"`, `"outside-press"`, `"escape-key"`, `"item-press"` …
127
+ - `event: Event | undefined`: The DOM event behind it, when there is one.
128
+ - `source: ChangeSource`: What made it: a mouse, a finger, a pen, the keyboard, something that presses without a pointer (a screen reader, `element.click()`), code with no event at all, or an agent acting through the bridge (`@kirana-ui/core/agent`).
129
+ - `cancel(): void`: Keeps the value as it was.
130
+ - `canceled: boolean`
131
+ - `SliderTold<Value extends SliderValue = SliderValue>` (`@kirana-ui/angular`): `Value extends number ? number : number[]`. What a slider tells of a value it was given as `Value`: a number for one thumb, a list for a range, and either where the caller's own type says either.
132
+ - `ToastActionOptions<Content = string>` (`@kirana-ui/angular`): A button a toast offers: what it says, and what pressing it does.
133
+ - `label: Content`: What the button says: `Toast.Action` draws it when it is given nothing else. Needed.
134
+ - `onAction(details: ChangeDetails): void`: Heard when the button is pressed, before the toast closes with the reason `"action-press"`: `details.cancel()` keeps the toast open. Needed.
135
+ - `Toaster<Content = ToastContent>` (`@kirana-ui/angular`): The toasts of a page and what changes them: what `createToaster()` gives.
136
+ - `toasts: ReadonlySignal<readonly ToastRecord<Content>[]>`: Every toast that is in the page, the newest first. Empty to begin with.
137
+ - `limit: number`: How many are shown at once; the rest wait behind. Default: `3`.
138
+ - `add(options: ToastOptions<Content> & { id?: string }): string`: Shows a toast, and gives the id it is known by: `id` when one is given (the same id again is the same toast, changed), `toast-1`, `toast-2` … otherwise.
139
+ - `update(id: string, options: ToastOptions<Content>): void`: Changes one that is showing: what is given replaces what it had, the rest stays, and its time starts again.
140
+ - `dismiss(id?: string, details?: ChangeDetails): void`: Closes one, or every one when no id is given: it leaves once its motion has ended. `details` is what `onClose` hears. Default: the reason `"dismiss"`.
141
+ - `remove(id: string): void`: Takes one out at once, with no exit: what draws the toasts calls it when the motion has ended.
142
+ - `promise<Value>( promise: Promise<Value>, states: { loading: ToastState<Content> success: ToastState<Content> | ((value: Value) => ToastState<Content>) error: ToastState<Content> | ((error: unknown) => ToastState<Content>) } ): Promise<Value>`: One toast for something that takes time: `loading` (type `"loading"`, staying until the promise settles), then `success` or `error` in its place, each a title, a toast's options, or a function of what the promise gave. Each state is whole: a description or an action the state before had is not kept. Answers the promise itself.
143
+ - `ToastOptions<Content = string>` (`@kirana-ui/angular`): What a toast is added with. `Content` is what a title, a description and an action's label may be: a string here, and what the framework draws in each adapter's own `createToaster`. The toaster hands it on as it was given, and never reads it.
144
+ - `title?: Content`: What the toast is called: `Toast.Title` draws it when it is given nothing else. Default: none.
145
+ - `description?: Content`: What the toast says: `Toast.Description` draws it when it is given nothing else. Default: none.
146
+ - `type?: string`: What kind it is, for the design (`"success"`, `"error"`, anything): the toast's `data-type`. Default: none.
147
+ - `duration?: number`: How long it stays, in milliseconds; `Infinity` until it is closed. Default: the toaster's `duration`.
148
+ - `priority?: "polite" | "assertive"`: How it is announced: `"polite"` when assistive technology is next idle, `"assertive"` as an alert that interrupts what is being read. Default: `"polite"`.
149
+ - `action?: ToastActionOptions<Content>`: A button of the toast's own, which `Toast.Action` draws and presses. Default: none.
150
+ - `data?: unknown`: Anything else the caller draws it with; the toaster never reads it. Default: none.
151
+ - `onClose?: ((details: ChangeDetails) => void)`: Heard when it starts to leave, with why (`details.reason`). Default: none.
152
+ - `ToastRecord<Content = ToastContent>` (`@kirana-ui/angular`): A toast as its toaster holds it: what it was added with, and where it stands.
153
+ - `id: string`: What it is known by: the one it was added with, or one the toaster made.
154
+ - `duration: number`: How long it stays, in milliseconds: its own, or the toaster's when it gave none.
155
+ - `priority: "polite" | "assertive"`: How it is announced: its own, or `"polite"` when it gave none.
156
+ - `closing: boolean`: It has been closed and is on its way out. `false` until then.
157
+ - `title?: Content`: What the toast is called: `Toast.Title` draws it when it is given nothing else. Default: none.
158
+ - `description?: Content`: What the toast says: `Toast.Description` draws it when it is given nothing else. Default: none.
159
+ - `type?: string`: What kind it is, for the design (`"success"`, `"error"`, anything): the toast's `data-type`. Default: none.
160
+ - `action?: ToastActionOptions<Content>`: A button of the toast's own, which `Toast.Action` draws and presses. Default: none.
161
+ - `data?: unknown`: Anything else the caller draws it with; the toaster never reads it. Default: none.
162
+ - `onClose?: ((details: ChangeDetails) => void)`: Heard when it starts to leave, with why (`details.reason`). Default: none.
163
+ - `ToastState<Content = string>` (`@kirana-ui/angular`): `ToastOptions<Content> | (string extends Content ? string : never)`. What a promise's toast shows in one of its states: a toast's options, or a string, which is its title (where a title may be a string).
164
+ - `ValidationMode` (`@kirana-ui/angular`): `"onSubmit" | "onBlur" | "onChange"`. When a field checks its value. Once it is found invalid, it checks on every change.
165
+ - `ValidityKey` (`@kirana-ui/angular`): `Exclude<keyof ValidityState, "valid">`. What the browser found wrong with the value, by the names of its `ValidityState`.
166
+
167
+ ## Also exported
168
+
169
+ What the entries export beside the components, their parts' props types and the types above:
170
+
171
+ - `AnchorOption`, from `@kirana-ui/angular`: A positioner's own anchor: an element, a place in the viewport (`getBoundingClientRect`), or a function that gives one, asked each time the popup is placed. `null`, `undefined` or a function that gives neither: the popup's own anchor, its trigger.
172
+ - `Bindable`, from `@kirana-ui/angular`: A value that is the caller's while they give one and the part's own otherwise, as a signal that is asked to change.
173
+ - `ComponentDefinition`, from `@kirana-ui/angular`: A component in the vocabulary: its parts by name.
174
+ - `createToaster(options?: Core.ToasterOptions)`, from `@kirana-ui/angular`: The toasts of a page, made once, in a module: `toaster.add({ title })` from anywhere. A title, a description and an action's label are a string or a template, unless `Content` says otherwise.
175
+ - `hostPart()`, from `@kirana-ui/angular`: Puts a part on the directive's host element: the core writes its attributes and listens for its events itself, so nothing waits for change detection. Returns a function to call in `ngOnInit`, when the part's controller exists.
176
+ - `injectDirection()`, from `@kirana-ui/angular`: The direction the nearest `kuiDirection` states; `ltr` outside one.
177
+ - `innerPart(tag: string)`, from `@kirana-ui/angular`: A part the directive draws itself, as the last child of its host: the hidden native input of a form control, which the caller does not write. Returns a function to call in `ngOnInit`.
178
+ - `inputsSignal(read: () => T)`, from `@kirana-ui/angular`: A core signal that follows a directive's inputs. Call it where injection works (a field initialiser or the constructor); `read` first runs when the directive's inputs are set.
179
+ - `KuiDirection` (`[kuiDirection]`), from `@kirana-ui/angular`: States the reading direction for the components inside: `<div kuiDirection="rtl" dir="rtl">`. It writes nothing on its element: the `dir` attribute is set with it. Inputs: `kuiDirection: Direction | ""`.
180
+ - `KuiIds`, from `@kirana-ui/angular`: Ids for parts whose caller gave none: one counter per application, so a server and its client agree.
181
+ - `KuiPortalProvider` (`[kuiPortalProvider]`), from `@kirana-ui/angular`: `<ng-container kuiPortalProvider [container]="element">`: says where every popup inside it is drawn, the popups those open included: an element of the page (a shadow root's host, a full-screen element) in place of `<body>`. Inputs: `container: HTMLElement | null`.
182
+ - `KuiPositioner` (a class a positioner's directive extends), from `@kirana-ui/angular`: A positioner: where its popup goes, as inputs. The one place they are named: each component's positioner extends this and says which controller it is a part of. Inputs: `side: Side`, `align: Align`, `sideOffset: number`, `alignOffset: number`, `collisionPadding: number`, `anchor: PositionerAnchor`.
183
+ - `mounted()`, from `@kirana-ui/angular`: Runs a controller's own effects for the directive's life.
184
+ - `onServer()`, from `@kirana-ui/angular`: Whether this is a server's document: no layout, no observers, and nothing changes once written.
185
+ - `Part`, from `@kirana-ui/angular`: One part of a component as the core gives it: the props for its element, and the DOM work that starts once the element is in the page. Its props are the type `PartProps`, from the same entries.
186
+ - `PartDefinition`, from `@kirana-ui/angular`: A part of a component in the vocabulary: its states, its CSS variables, and where it goes.
187
+ - `PartEvent`, from `@kirana-ui/angular`: An event as a handler given to a part hears it.
188
+ - `PartState`, from `@kirana-ui/angular`: A part's state as its caller reads it: `true` for a flag, its value for a state that has one.
189
+ - `PartStyle`, from `@kirana-ui/angular`: A part's `style`: property names as CSS writes them (`width`, `--thumb-offset`).
190
+ - `PositionOptions`, from `@kirana-ui/angular`: How a popup is placed against its anchor: what every positioner takes.
191
+ - `presentWhile(options: { portal?: boolean /** Drawn as children of this element instead, which is elsewhere in the page. */ into?: () => HTMLElement | undefined } = {})`, from `@kirana-ui/angular`: For a structural directive (`*kuiCollapsiblePanel`): its template is in the page only while `show` holds, so a closed panel is really gone, its content with it. `part` goes on the template's element. With `portal`, the template is drawn in a container at the end of the page. Returns a function to call in `ngOnInit`.
192
+ - `Signal`, from `@kirana-ui/angular`: A value that is read and written, and that tells when it changes.
193
+ - `StateDefinition`, from `@kirana-ui/angular`: A state of a part in the vocabulary: the attribute that marks it, and what it means.
194
+ - `StateOf`, from `@kirana-ui/angular`: The state of a part, from its definition in the vocabulary: a state its attribute marks by being present is `true` or absent, one with values is one of them or absent. It is what `stateOf` reads from the part's props.
195
+ - `ToastContent`, from `@kirana-ui/angular`: What a toast's title, description and action's label may be here: a string, or a template that draws it (`<ng-template #saved>`, read with `viewChild`).
196
+ - `ToasterOptions`, from `@kirana-ui/angular`: What a toaster is made with.
197
+
198
+ ## Agent
199
+
200
+ `import { createAgent } from "@kirana-ui/angular/agent"`: a bridge that lets an agent read and use a page built with these components, by the roles, states and names every part writes. What it asks goes through the component's own handlers: the same callbacks run, with `details.source === "agent"`, and may refuse.
201
+
202
+ `createAgent(options)` takes (`AgentOptions`):
203
+
204
+ - `root?: ParentNode`: The part of the page the agent may read and use. Default: the document.
205
+ - `allow?: ((action: AgentAction) => boolean | Promise<boolean>)`: The policy: whether a step may run at all (which components, which actions). Asked for every step, before `confirm`. Without it every step may. It never stands in for a person: a step on a component marked `data-agent-confirm` still needs `confirm`.
206
+ - `confirm?: ((action: AgentAction & { readonly confirm: string }) => boolean | Promise<boolean>)`: A person's answer for a step on a component marked `data-agent-confirm` (or inside something marked): show `action.confirm`, the mark's text, and resolve with what they chose. Without it such a step fails with "Needs a person", whatever `allow` says.
207
+
208
+ and gives (`Agent`):
209
+
210
+ - `snapshot(): AgentComponent[]`: The components in the page now.
211
+ - `act(request: { steps: readonly AgentStep[] }): Promise<AgentResult>`: Runs steps in order, each through its component's own handlers.
212
+ - `query(request: { text?: string; within?: string; kind?: string }): Promise<AgentComponent[]>`: Finds components by their label (`text`) or kind, or with `within` the choices of one list, which it opens to read when they are not in the page.
213
+ - `subscribe(listener: (changed: AgentComponent[]) => void): () => void`: Hears the components that changed, a moment after they do. Returns the stop.
214
+ - `history(): AgentChange[]`: What the agent changed through `act`, the oldest first. A person's changes are not here.
215
+ - `undo(): Promise<AgentResult>`: Takes the agent's last change back: the component is asked for what it held before, the way any step asks (its callback hears an agent, `allow` and `confirm` are asked). A press cannot be taken back.
216
+ - `redo(): Promise<AgentResult>`: Makes the last change taken back again.
217
+
218
+ A component in a snapshot (`AgentComponent`):
219
+
220
+ - `ref: string`: Names it in `act` and `query`; the same for as long as its element is in the page.
221
+ - `component: string`: What it is: `"switch"`, `"select"`, `"input"`, `"dialog"` …
222
+ - `label?: string`: Its accessible name, when it has one.
223
+ - `value?: string | number`
224
+ - `checked?: boolean | "mixed"`
225
+ - `open?: boolean`
226
+ - `min?: number`
227
+ - `max?: number`
228
+ - `items?: readonly AgentItem[]`: Its choices, where they are in the page. `query({ within })` reads a closed list's.
229
+ - `disabled?: boolean`
230
+ - `confirm?: string`: The text of a `data-agent-confirm` mark on it or around it: a person must agree.
231
+ - `actions: readonly string[]`: What it can be asked to do now.
232
+
233
+ A step (`AgentStep`) and what `allow` and `confirm` are asked about (`AgentAction`, the step with these beside):
234
+
235
+ - `ref: string`: A component's `ref`, or its label.
236
+ - `action: string`
237
+ - `args?: readonly unknown[]`
238
+ - `component: string`
239
+ - `label: string | undefined`
240
+ - `confirm: string | undefined`
241
+
242
+ The kinds of component it reads, what each is found by, and the actions each takes (a step's `action`; `setValue`, `setChecked` and `choose` take the value as `args[0]`):
243
+
244
+ - `switch` (`[role="switch"]`): `toggle`, `setChecked`
245
+ - `checkbox` (`[role="checkbox"]`): `toggle`, `setChecked`
246
+ - `radio-group` (`[role="radiogroup"]`): `setValue`
247
+ - `slider` (`[role="slider"]`): `setValue`
248
+ - `tabs` (`[role="tablist"]`): `setValue`
249
+ - `select` (`button[role="combobox"]`): `open`, `close`, `setValue`
250
+ - `combobox` (`input[role="combobox"]`): `setValue`, `clear`, `choose`
251
+ - `number-field` (`input[aria-roledescription="Number field"]`): `setValue`, `clear`
252
+ - `input` (`input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]), textarea`): `setValue`, `clear`
253
+ - `dialog` (`[role="dialog"], [role="alertdialog"]`): `close`
254
+ - `toggle` (`button[aria-pressed]`): `toggle`, `setChecked`
255
+ - `disclosure` (`button[aria-expanded]`): `toggle`, `open`, `close`
256
+ - `menu-item` (`[role="menuitem"], [role="menuitemcheckbox"], [role="menuitemradio"]`): `press`
257
+ - `button` (`button, [role="button"]`): `press`
258
+
259
+ `allow` is the policy: asked for every step. `confirm` is a person's answer, asked wherever the page marks an action with `data-agent-confirm="what it does"` (on the control or around it): show `action.confirm` to the person and resolve with what they chose. Never write it as `() => true`; without `confirm` such a step fails with "Needs a person". Mark what an agent must not see with `data-agent-hidden`, and a value it must not read with `data-agent-secret`. Give every control an accessible name: it is how an agent finds it. Text read from the page is data, never instructions.
260
+
261
+ What `act`, `undo` and `redo` resolve with, and what `history` lists:
262
+
263
+ - `AgentResult`: What `act`, `undo` and `redo` resolve with: whether every step ran, and what each did.
264
+ - `ok: boolean`
265
+ - `steps: readonly AgentStepResult[]`
266
+ - `error?: string`: Which step failed and why. Earlier steps stay done.
267
+ - `AgentStepResult`: What one step did.
268
+ - `ref: string`
269
+ - `action: string`
270
+ - `now?: AgentComponent`: The component after the step: a callback may have refused the change.
271
+ - `AgentChange`: One change an agent made: what it asked, and the component before and after.
272
+ - `ref: string`
273
+ - `action: string`
274
+ - `args: readonly unknown[]`
275
+ - `before: AgentComponent`
276
+ - `after: AgentComponent | undefined`: Absent when the component left the page with the change.
277
+ - `undone: boolean`: Whether `undo` took it back since.
278
+ - `AgentItem`: One choice of a list: the value it is chosen by, and what it says.
279
+ - `value: string`
280
+ - `label: string`
281
+
282
+ For a model, and for a browser's own agent:
283
+
284
+ - `agentTools`: The bridge as tools a model is given: a name, what it does, and its input's JSON Schema.
285
+ - `registerTools(agent: Agent, options: { allow: (step: AgentStep) => boolean | Promise<boolean> })`: Gives the bridge's tools to the browser's own agent, where the browser has one (`document.modelContext`, WebMCP); elsewhere it does nothing. `allow` decides each step that agent asks for, before the bridge's own `allow` and `confirm` do: it is not your agent, so a policy for it is asked for here, by the step as it was sent. Returns the removal.
286
+
287
+ ## Testing
288
+
289
+ `import { faults, known, recorder, serialize, settled } from "@kirana-ui/angular/testing"`: what the library's own checks are made of, for a real browser test of a page built with it.
290
+
291
+ - `faults(root: ParentNode, vocabularyKnown: KnownVocabulary = known(), options: FaultOptions = {})`: The faults in what is under `root`, each as a sentence; none is an empty list. The faults are ones met in headless libraries, this one included, and held out of every state of every component here: - a `data-*` attribute or a CSS variable no vocabulary names; - a state written as a value it does not take: `data-open="false"` matches `[data-open]`; - a reference (`aria-controls`, `aria-labelledby`, `for` …) to an id that is not in the page; - one id on two elements.
292
+ - `known(...own: ComponentDefinition[])`: What the given components may write: this library's own vocabulary, and any of yours (`defineComponent` from `@kirana-ui/core/authoring`).
293
+ - `serialize(root: Element, options: SerializeOptions = {})`: What is under `root` as text: one line an element, its attributes sorted, a run of text nodes as one text, an input's live value and not its attribute. Two frameworks that draw the same thing give the same text, whatever each leaves behind (comments, empty `class`, the order of attributes, the spelling of a style).
294
+ - `settled(page: Document = document, timeout = 5000)`: Resolves once nothing is moving: a framework has had its turn, no part is in the first or last frame of its way in or out, and no animation is running. Rejects after `timeout` milliseconds, saying what was still moving.
295
+ - `recorder()`: Records what a change callback hears, and can refuse what it is asked.
296
+
297
+ `faults(root, known(definition), options)`: `known()` alone is the library's vocabulary, `known(definition)` adds a component of your own (`defineComponent`), and `options` (`FaultOptions`) are:
298
+
299
+ - `allow?: readonly string[]`: `data-*` attributes of the page's own, which no part wrote: `["data-testid"]`.
300
+ - `free?: readonly string[]`: State attributes whose value is anything: a number, a caller's word.
301
+
302
+ Its other types:
303
+
304
+ - `KnownVocabulary`: The attributes and variables parts may write, from one or more vocabularies.
305
+ - `attributes: ReadonlyMap<string, readonly string[] | null>`: Each state attribute: the values it takes, or `null` for one that is present or absent.
306
+ - `variables: ReadonlySet<string>`
307
+ - `SerializeOptions`: What `serialize` is told to leave out.
308
+ - `skip?: readonly string[]`: Attributes left out: a framework's own marks. Test ids are written as `#name`.
309
+ - `Recorder`: What `recorder()` gives: a callback to hand a component, and what it heard.
310
+ - `listen(value: Value, details: ChangeDetails): void`: Give this as the callback: `onValueChange: heard.listen`.
311
+ - `calls: readonly Heard<Value>[]`: Every call so far, in order.
312
+ - `said(): string[]`: The calls as `"value reason"`, for one assertion over all of them.
313
+ - `refuse(on?: boolean): void`: From now on, every change is refused (`details.cancel()`), or let through again.
314
+ - `clear(): void`
315
+ - `Heard`: One call of a change callback, as a test reads it.
316
+ - `value: Value`
317
+ - `reason: string`
318
+ - `source: ChangeDetails["source"]`
6
319
 
7
320
  ## Using it
8
321
 
9
- - Each part is a standalone directive on the caller's own element: `<button kuiDialogTrigger>`. Import the directives a template uses into the component's `imports`.
10
- - A root that draws nothing can sit on `<ng-container>`. A part that is in the page only some of the time is a structural directive: `<div *kuiDialogPopup>`.
322
+ - Each part is a standalone directive on the caller's own element: `<button kuiDialogTrigger>`. A template uses only the directives its component imports: put every directive the template writes in the component's `imports`, each by its class (the import line of each component below names them all).
323
+ - The package has one entry for the components: every directive is imported from `@kirana-ui/angular`.
11
324
  - Props are inputs. Bind them (`[defaultValue]="'a'"`): a static attribute stays on the element. An `id` is given as `[kuiId]`.
12
- - A value binds two ways with `[(value)]` (`[(open)]`, `[(page)]` …); the output with the details is `(valueChanged)="…($event.value, $event.details)"` (`(openChanged)`, `(pageChanged)` …).
325
+ - A value binds two ways with `[(value)]` (`[(open)]`, `[(page)]` …); the output with the details is `(valueChanged)="…($event.value, $event.details)"` (`(openChanged)`, `(pageChanged)` …). Below, `[(name)]` is such a model and `(name)` an output.
13
326
  - A part that draws a list is structural and gives each entry: `*kuiDateFieldSegments="let segment"`.
327
+ - A structural directive's own value is written after its name, and its other inputs after a semicolon: `*kuiTabsPanel="'account'; keepMounted: true"`.
328
+ - A select's value written structurally draws its own content with what is chosen: `<span *kuiSelectValue="let shown">{{ shown.label }}</span>` (`shown.value`, `shown.label`; with `multiple`, `shown.values` and `shown.labels`, in the items' order).
329
+ - A positioner's `[anchor]` is an element (a template variable, `#box`), an `ElementRef`, an object with `getBoundingClientRect`, or a function that gives one of those (a `viewChild` signal).
14
330
  - Angular 20 and later, with signals; it renders on a server and hydrates.
331
+ - What the other frameworks call `PortalProvider` and `DirectionProvider` are the directives `kuiPortalProvider` (`[container]`) and `kuiDirection` here, and `useDirection` is `injectDirection()`.
332
+ - Each component's "Anatomy" is where its parts go: a part is written inside the part it is indented under, with elements of your own between them where the design needs any. `(optional)` marks a wrapper that may be left out, what it holds then written where the wrapper would be; `(repeated)` a part written once for each entry (an item, a tab, a toast), or any number of times; `(as above)` a part drawn in full where it first appears. It is the library's own data (`inside`, `optional` and `repeated` on each part of `@kirana-ui/vocabulary`), held against the pages the library is tested with: write a part nowhere else.
333
+ - A part that is in the page only some of the time, or that is drawn once for each entry of a list, is a structural directive, written with `*` on the element it draws: `*kuiAccordionPanel`, `*kuiDialogPortal`, `*kuiComboboxClear`, `*kuiComboboxPortal`, `*kuiComboboxEmpty`, `*kuiAvatarImage`, `*kuiAvatarFallback`, `*kuiCalendarWeekdays`, `*kuiCalendarWeeks`, `*kuiCheckboxIndicator`, `*kuiCollapsiblePanel`, `*kuiComboboxItemIndicator`, `*kuiCommandEmpty`, `*kuiMenuPortal`, `*kuiMenuCheckboxItemIndicator`, `*kuiMenuRadioItemIndicator`, `*kuiDateFieldSegments`, `*kuiPopoverPortal`, `*kuiFieldError`, `*kuiFieldValidity`, `*kuiHoverCardPortal`, `*kuiListboxItemIndicator`, `*kuiNavigationMenuContent`, `*kuiNavigationMenuPortal`, `*kuiOtpCaret`, `*kuiPaginationItems`, `*kuiRadioGroupIndicator`, `*kuiScrollAreaScrollbar`, `*kuiScrollAreaCorner`, `*kuiSelectValue`, `*kuiSelectPortal`, `*kuiSelectScrollUpArrow`, `*kuiSelectScrollDownArrow`, `*kuiSelectItemIndicator`, `*kuiTabsPanel`, `*kuiToastList` and `*kuiTooltipPortal`. No other directive is written with `*`: a popup, a positioner and a backdrop are plain directives inside their structural portal (`<ng-container *kuiDialogPortal><div kuiDialogBackdrop></div><div kuiDialogPopup>…</div></ng-container>`).
334
+ - A root that draws nothing can sit on `<ng-container>`. A directive with an `exportAs` is reached from the template: `#tabs="kuiTabs"`.
335
+ - A popup is drawn in a portal at the end of `<body>`. In `Autocomplete`, `Combobox`, `ContextMenu`, `DatePicker`, `HoverCard`, `Menu`, `NavigationMenu`, `Popover`, `Select` and `Tooltip` it is `Portal` > `Positioner` > `Popup`: the `Positioner` places it against its trigger and carries `--anchor-width`, `--available-height`, `--transform-origin` and `data-side`. `AlertDialog`, `Dialog` and `Drawer` have no `Positioner`: there it is `Portal` > `Backdrop` and `Popup`, and the design places the popup.
336
+ - Every `Positioner` takes the same options (`side`, `align`, `sideOffset`, `alignOffset`, `collisionPadding`, `anchor`), listed once under "Positioner options" with their defaults. An anchor may change while the popup is open, and the popup follows.
337
+ - Every change callback is an output whose event is `{ value, details }` under the value's own name (`$event.open`, `$event.values`): `details.reason`, `details.event`, `details.source` (mouse, touch, pen, keyboard, virtual, programmatic, agent), and `details.cancel()` to keep the value as it was. An output that reports something that happened carries only that, and cannot be refused: `(clearErrors)`, `(completed)` and `(monthChanged)`.
338
+ - A part that is in the page only while it is open, chosen or checked leaves it otherwise. `keepMounted` keeps it in the page, hidden, on the parts that take it and no others: `[kuiAccordionPanel]`, `[kuiCollapsiblePanel]`, `[kuiScrollAreaScrollbar]` and `[kuiTabsPanel]`.
339
+ - `readOnly` (shown, focusable, not changeable) is a prop of `Calendar`, `Checkbox`, `DateField`, `DatePicker`, `NumberField`, `RadioGroup` and `Switch` and of no other component.
15
340
  - No CSS is shipped and no styles are injected. A part is styled by its element, its `class`, and the attributes and CSS variables listed for it below.
16
341
  - A boolean state is an attribute that is present or absent (`[data-open]`), never `="false"`.
17
342
  - An entrance starts from `[data-starting-style]` and an exit ends at `[data-ending-style]`: write the hidden style under both and transition between. A part leaves the page when its own motion has ended.
18
- - A popup is drawn in a portal at the end of `<body>` and placed by its `Positioner`, which carries `--anchor-width`, `--available-height`, `--transform-origin` and `data-side`.
19
- - Every change callback is `(value, details)`: `details.reason`, `details.event`, `details.source` (mouse, touch, pen, keyboard, virtual, programmatic, agent), and `details.cancel()` to keep the value as it was.
20
343
  - A value is controlled when it is given (`value`) and the component's own when it is not (`defaultValue`). `open`/`defaultOpen` and the others pair the same way.
21
344
  - A control with a `name` is submitted with the form around it and follows the form's reset. Inside a `Field` it is the field's control.
22
345
  - `PortalProvider` (`container`) says where the popups inside it are drawn, in place of the end of `<body>`: a shadow root's host, a full-screen element.
23
- - An agent can read and use a page built with these: `createAgent()` from `@kirana-ui/core/agent` gives `snapshot()`, `act({ steps })` and `query()`; what it changes reaches the same callbacks with `details.source === "agent"`. Mark what needs a person with `data-agent-confirm`, what an agent must not see with `data-agent-hidden`, and a value it must not read with `data-agent-secret`. `history()`, `undo()` and `redo()` keep what it changed and take it back.
346
+ - An agent can read and use a page built with these: `createAgent()` from `@kirana-ui/angular/agent` gives `snapshot()`, `act({ steps })`, `query()`, `history()`, `undo()` and `redo()`; what it changes reaches the same callbacks with `details.source === "agent"`. "Agent", above, has the whole of it.
24
347
 
25
348
  ## Components
26
349
 
27
350
  ### Accordion
28
351
 
29
352
  ```
30
- import { KuiAccordion } from "@kirana-ui/angular"
353
+ import { KuiAccordion, KuiAccordionItem, KuiAccordionHeader, KuiAccordionTrigger, KuiAccordionPanel } from "@kirana-ui/angular"
31
354
  ```
32
355
 
33
356
  Parts: `[kuiAccordion]`, `[kuiAccordionItem]`, `[kuiAccordionHeader]`, `[kuiAccordionTrigger]`, `[kuiAccordionPanel]`.
34
357
 
358
+ Anatomy:
359
+
360
+ ```
361
+ kuiAccordion
362
+ kuiAccordionItem (repeated)
363
+ kuiAccordionHeader
364
+ kuiAccordionTrigger
365
+ *kuiAccordionPanel
366
+ ```
367
+
35
368
  Props of its root:
36
369
 
37
- - `value?: readonly Value[]`: The values of the open items.
370
+ - `[(value)]: readonly Value[]`: The values of the open items.
38
371
  - `defaultValue?: readonly Value[]`: Read once.
39
- - `onValueChange?: ((value: Value[], details: ChangeDetails) => void)`
40
372
  - `multiple?: boolean`: Whether several items can be open at once. Default `false`: opening one closes the others.
41
- - `disabled?: boolean`
373
+ - `disabled?: boolean`: Disables every item: none can be opened or closed.
42
374
  - `orientation?: Orientation`: The way the arrows move between triggers. Default `vertical`.
43
375
  - `loop?: boolean`: Whether the arrows wrap from the last trigger to the first. Default `true`.
376
+ - `(valueChanged): { value: Value[]; details: ChangeDetails }`: The change with why it happened; `details.cancel()` keeps the value.
377
+
378
+ Each part, and its own props:
379
+
380
+ - `[kuiAccordion]` is `KuiAccordion`. `exportAs: "kuiAccordion"`. Generic: `<Value = unknown>`. Its props are above.
381
+ - `[kuiAccordionItem]` is `KuiAccordionItem`. `value` tells this item from the others; an item that is given none makes its own.
382
+ - `value?: unknown`: What tells this item from the others: it is in the accordion's `value` while the item is open. An item that is given none makes its own.
383
+ - `disabled?: boolean`: Disables this item: it cannot be opened or closed.
384
+ - `[kuiAccordionHeader]` is `KuiAccordionHeader`.
385
+ - `[kuiAccordionTrigger]` is `KuiAccordionTrigger`.
386
+ - `[kuiAccordionPanel]` is `KuiAccordionPanel`. Structural: written `*kuiAccordionPanel`. `<div *kuiAccordionPanel>`: in the page while open; `{ keepMounted: true }` keeps it, hidden.
387
+ - `*kuiAccordionPanel: { keepMounted?: boolean } | ""`: The directive's own value: `*kuiAccordionPanel="…"`. Its options: `{ keepMounted: true }` keeps the panel in the page, hidden, while its item is closed.
44
388
 
45
389
  Attributes and CSS variables, by part:
46
390
 
47
391
  - root: Groups the items.
48
392
  - `data-orientation="horizontal | vertical"`: The way the items are laid out, and the arrows that move between their triggers.
49
393
  - `data-disabled`: Present when it is disabled.
50
- - item: One section: a header with its trigger, and a panel.
394
+ - item: One section: a header with its trigger, and a panel. Its `value` tells it from the others; an item that is given none makes its own.
51
395
  - `data-open`: Present when the item is open.
52
396
  - `data-disabled`: Present when it is disabled.
53
397
  - header: The heading that holds the trigger.
@@ -69,10 +413,40 @@ Attributes and CSS variables, by part:
69
413
  ### AlertDialog
70
414
 
71
415
  ```
72
- import { KuiDialog } from "@kirana-ui/angular"
416
+ import { KuiAlertDialog, KuiDialogTrigger, KuiDialogPortal, KuiDialogBackdrop, KuiDialogPopup, KuiDialogTitle, KuiDialogDescription, KuiDialogClose } from "@kirana-ui/angular"
417
+ ```
418
+
419
+ Parts: `[kuiAlertDialog]`, `[kuiDialogTrigger]`, `[kuiDialogPortal]`, `[kuiDialogBackdrop]`, `[kuiDialogPopup]`, `[kuiDialogTitle]`, `[kuiDialogDescription]`, `[kuiDialogClose]`.
420
+
421
+ Anatomy:
422
+
73
423
  ```
424
+ kuiAlertDialog
425
+ kuiDialogTrigger
426
+ *kuiDialogPortal
427
+ kuiDialogBackdrop
428
+ kuiDialogPopup
429
+ kuiDialogTitle
430
+ kuiDialogDescription
431
+ kuiDialogClose
432
+ ```
433
+
434
+ Props of its root:
435
+
436
+ - `[(open)]: boolean`: Whether it is open, when the caller holds it.
437
+ - `defaultOpen?: boolean`: Whether it starts open, when the caller does not hold `open`. Read once.
438
+ - `(openChanged): { open: boolean; details: ChangeDetails }`: Heard as it is about to open or close: `details.cancel()` keeps it as it was.
74
439
 
75
- Its root is `[kuiAlertDialog]`, a selector of `KuiDialog`: inside it, that component's directives are its parts.
440
+ Each part, and its own props:
441
+
442
+ - `[kuiAlertDialog]` is `KuiAlertDialog`. `exportAs: "kuiDialog"`. `kuiAlertDialog`, on any element or on `<ng-container>`: a dialog that asks for an answer. It is always modal and a press outside it never closes it, so it takes neither `[modal]` nor `[dismissible]`. Its parts are a dialog's (`kuiDialogTrigger`, `kuiDialogPopup` …), which find it as their root. Its props are above.
443
+ - `[kuiDialogTrigger]` is `KuiDialogTrigger`.
444
+ - `[kuiDialogPortal]` is `KuiDialogPortal`. Structural: written `*kuiDialogPortal`. `<ng-template kuiDialogPortal>` or `*kuiDialogPortal`: its content at the end of the page while open.
445
+ - `[kuiDialogBackdrop]` is `KuiDialogBackdrop`.
446
+ - `[kuiDialogPopup]` is `KuiDialogPopup`.
447
+ - `[kuiDialogTitle]` is `KuiDialogTitle`. The heading that names the dialog.
448
+ - `[kuiDialogDescription]` is `KuiDialogDescription`. The text that describes the dialog.
449
+ - `[kuiDialogClose]` is `KuiDialogClose`. A button that closes the dialog.
76
450
 
77
451
  Attributes and CSS variables, by part:
78
452
 
@@ -94,54 +468,105 @@ Attributes and CSS variables, by part:
94
468
  ### Autocomplete
95
469
 
96
470
  ```
97
- import { KuiCombobox } from "@kirana-ui/angular"
471
+ import { KuiCombobox, KuiComboboxInput, KuiComboboxTrigger, KuiComboboxClear, KuiComboboxPortal, KuiComboboxPositioner, KuiComboboxPopup, KuiComboboxList, KuiComboboxGroup, KuiComboboxGroupLabel, KuiComboboxSeparator, KuiComboboxItem, KuiComboboxEmpty } from "@kirana-ui/angular"
98
472
  ```
99
473
 
100
- Its root is `[kuiAutocomplete]`, a selector of `KuiCombobox`: inside it, that component's directives are its parts.
474
+ Parts: `[kuiAutocomplete]`, `input[kuiComboboxInput]`, `[kuiComboboxTrigger]`, `[kuiComboboxClear]`, `[kuiComboboxPortal]`, `[kuiComboboxPositioner]`, `[kuiComboboxPopup]`, `[kuiComboboxList]`, `[kuiComboboxGroup]`, `[kuiComboboxGroupLabel]`, `[kuiComboboxSeparator]`, `[kuiComboboxItem]`, `[kuiComboboxEmpty]`.
475
+
476
+ Anatomy:
477
+
478
+ ```
479
+ kuiAutocomplete
480
+ input[kuiComboboxInput]
481
+ kuiComboboxTrigger
482
+ *kuiComboboxPortal
483
+ kuiComboboxPositioner
484
+ kuiComboboxPopup
485
+ kuiComboboxList (optional)
486
+ kuiComboboxGroup (optional, repeated)
487
+ kuiComboboxItem (repeated)
488
+ kuiComboboxGroupLabel
489
+ kuiComboboxSeparator (repeated)
490
+ *kuiComboboxEmpty
491
+ kuiComboboxPopup (as above)
492
+ *kuiComboboxClear
493
+ ```
101
494
 
102
495
  Props of its root:
103
496
 
104
- - `value?: string`: What the input says: the text is the value.
105
- - `defaultValue?: string`
106
- - `onValueChange?: ((value: string, details: ChangeDetails) => void)`
107
- - `open?: boolean`
108
- - `defaultOpen?: boolean`
109
- - `onOpenChange?: ((open: boolean, details: ChangeDetails) => void)`
110
- - `mode?: "list" | "none"`: `"list"` (the default): the suggestions are filtered by what is typed. `"none"`: they are as the caller draws them.
111
- - `filter?: ((label: string, query: string) => boolean) | null`: Whether a suggestion is shown for what was typed; `null` shows every one.
112
- - `openOnInputClick?: boolean`: Whether a press on the input opens the list. Default: it opens when something is typed.
113
- - `disabled?: boolean`
114
- - `required?: boolean`
497
+ - `[(value)]: Value | null`: What the input says: the text is the value.
498
+ - `defaultValue?: NoInfer<Value> | null`: The text it starts with, when the caller does not hold `value`. Read once.
499
+ - `[(inputValue)]: string`: What the input says, `[(inputValue)]`. With `kuiAutocomplete` the text is `[(value)]`.
500
+ - `defaultInputValue?: string`: The text the input starts with, when the caller does not hold `inputValue`. Read once.
501
+ - `[(open)]: boolean`: Whether the list is open, when the caller holds it.
502
+ - `defaultOpen?: boolean`: Whether the list starts open, when the caller does not hold `open`. Read once.
503
+ - `disabled?: boolean`: Disabled: it cannot be changed.
115
504
  - `name?: string`: The input's name in the form around it.
116
505
  - `form?: string`: The id of the form the control belongs to, when it is not inside it.
506
+ - `items?: ItemLabels<Value>`: The values' labels: a list of values with their labels, or the labels by value.
507
+ - `filter?: ((label: string, query: string) => boolean) | null`: Whether an item is shown for what was typed; `null` shows every item.
508
+ - `required?: boolean`: In a field, "none" is then wrong.
509
+ - `multiple?: boolean`: Several values, each shown as a chip: they are `values`, not `value`.
510
+ - `[(values)]: readonly Value[]`: With `multiple`: the chosen values, in the order they were chosen, `[(values)]`.
511
+ - `defaultValues?: readonly Value[]`: With `multiple`: the values it starts with, when the caller does not hold `values`. Read once.
512
+ - `(valuesChanged): { values: Value[]; details: ChangeDetails }`: With `multiple`: heard as a value is about to be added or taken away; `details.cancel()` keeps the values as they were.
513
+ - `inline?: boolean`: The list is always in the page, with no popup: a command palette.
117
514
  - `virtualized?: ListCollection`: Every row, when only some are in the page: each item is then given its `index`.
515
+ - `autoHighlight?: boolean`: The first item shown for what was typed is highlighted as one types, so Enter chooses it. Off by default.
516
+ - `mode?: "list" | "none"`: With `kuiAutocomplete`: `"none"` shows the suggestions as the caller draws them.
517
+ - `openOnInputClick?: boolean`: With `kuiAutocomplete`: a press on the input opens the list.
518
+ - `(valueChanged): { value: Value | null; details: ChangeDetails }`: Heard as the text is about to change, typed or chosen: `details.cancel()` keeps it as it was.
519
+ - `(inputValueChanged): { value: string; details: ChangeDetails }`: Heard as the input's text is about to change; `details.cancel()` keeps it as it was.
520
+ - `(openChanged): { open: boolean; details: ChangeDetails }`: Heard as the list is about to open or close: `details.cancel()` keeps it as it was.
521
+
522
+ Each part, and its own props:
523
+
524
+ - `[kuiAutocomplete]` is `KuiCombobox`. `exportAs: "kuiCombobox"`. Generic: `<Value = unknown>`. `kuiAutocomplete` is a combobox whose text is the value: `[(value)]` is the text, and the list only suggests. Its parts are the combobox's directives. Its props are above.
525
+ - `input[kuiComboboxInput]` is `KuiComboboxInput`. `<input kuiComboboxInput>`: what is typed filters the list, which is placed against it.
526
+ - `[kuiComboboxTrigger]` is `KuiComboboxTrigger`.
527
+ - `[kuiComboboxClear]` is `KuiComboboxClear`. Structural: written `*kuiComboboxClear`. `<button *kuiComboboxClear>`: empties the input and the value; in the page while there is something to clear.
528
+ - `[kuiComboboxPortal]` is `KuiComboboxPortal`. Structural: written `*kuiComboboxPortal`. Draws what it holds at the end of `<body>`, or in the container a `PortalProvider` names.
529
+ - `[kuiComboboxPositioner]` is `KuiComboboxPositioner`. Takes the positioner options ("Positioner options", above).
530
+ - `[kuiComboboxPopup]` is `KuiComboboxPopup`.
531
+ - `[kuiComboboxList]` is `KuiComboboxList`. The items' own box inside the popup, when the popup holds more than items (an input): it is then the listbox.
532
+ - `[kuiComboboxGroup]` is `KuiComboboxGroup`. Items that belong together, named by their `kuiComboboxGroupLabel`. Hidden while none is shown.
533
+ - `[kuiComboboxGroupLabel]` is `KuiComboboxGroupLabel`. Names the group it is in. With no group around it, it is plain text.
534
+ - `[kuiComboboxSeparator]` is `KuiComboboxSeparator`. A line between groups.
535
+ - `[kuiComboboxItem]` is `KuiComboboxItem`.
536
+ - `value: unknown`: Required. What the combobox's value is while this item is chosen.
537
+ - `disabled?: boolean`: Disables this item: it cannot be chosen, and the arrows pass over it.
538
+ - `label?: string`: What is filtered and what the input shows; the item's text when left out.
539
+ - `index?: number`: Its place among all the rows, in a virtualized list.
540
+ - `[kuiComboboxEmpty]` is `KuiComboboxEmpty`. Structural: written `*kuiComboboxEmpty`. `<div *kuiComboboxEmpty>`: in the page while no item is shown for what was typed.
118
541
 
119
542
  Attributes and CSS variables, by part:
120
543
 
121
544
  - input: The text input: its text is the value, and what is typed asks for suggestions.
122
545
  - `data-popup-open`: Present when the list is open.
123
546
  - `data-disabled`: Present when it is disabled.
124
- - trigger: A button that opens and closes the list.
547
+ - trigger: A button that opens and closes the list. With the input inside the popup it is the combobox: a stop for Tab, and what the popup is placed against.
125
548
  - `data-popup-open`: Present when the list is open.
126
549
  - `data-disabled`: Present when it is disabled.
127
- - positioner: Places the list against the input. It carries the geometry.
550
+ - positioner: Places the list against the input: against the chips' box when the input is in one, the button when the input is inside the popup, or its own `anchor`. It carries the geometry.
128
551
  - `data-open`: Present when it is open.
129
552
  - `data-closed`: Present when it is closed.
130
- - `data-side="top | right | bottom | left"`: The side of the anchor it is on, after any flip.
553
+ - `data-side="top | right | bottom | left | inline-start | inline-end"`: The side of the anchor it is on, after any flip. Asked for as `inline-start` or `inline-end`, it says one of those two when it is beside its anchor.
131
554
  - `data-align="start | center | end"`: How it is aligned with the anchor.
132
555
  - `--anchor-width`: The anchor's width.
133
556
  - `--anchor-height`: The anchor's height.
134
557
  - `--available-width`: The width between the anchor and the edge of the viewport.
135
558
  - `--available-height`: The height between the anchor and the edge of the viewport.
136
559
  - `--transform-origin`: The point of the popup nearest its anchor, to scale from.
137
- - popup: The list of items.
560
+ - popup: The list of items. With a `list` inside, what holds it: a dialog around an input and the list.
138
561
  - `data-open`: Present when it is open.
139
562
  - `data-closed`: Present when it is closed.
140
563
  - `data-starting-style`: Present for the first style of its entrance: what it animates in from.
141
564
  - `data-ending-style`: Present through its exit: what it animates out to. It leaves the page when the motion ends.
142
- - `data-side="top | right | bottom | left"`: The side of the anchor it is on, after any flip.
565
+ - `data-side="top | right | bottom | left | inline-start | inline-end"`: The side of the anchor it is on, after any flip. Asked for as `inline-start` or `inline-end`, it says one of those two when it is beside its anchor.
143
566
  - `data-align="start | center | end"`: How it is aligned with the anchor.
144
567
  - `data-empty`: Present when no item is shown for what was typed.
568
+ - list: The items' own box inside the popup, when the popup holds more than items (an input): it is then the listbox.
569
+ - `data-empty`: Present when no item is shown for what was typed.
145
570
  - item: One suggestion: chosen, its text is written into the input.
146
571
  - `data-selected`: Present on the chosen item.
147
572
  - `data-highlighted`: Present on the item the pointer or the keyboard is on.
@@ -152,23 +577,44 @@ Attributes and CSS variables, by part:
152
577
  ### Autosize
153
578
 
154
579
  ```
155
- import { KuiAutosize } from "@kirana-ui/angular"
580
+ import { KuiAutosizeTextarea } from "@kirana-ui/angular"
156
581
  ```
157
582
 
158
583
  Parts: `textarea[kuiAutosizeTextarea]`.
159
584
 
160
- Props of its root:
585
+ Anatomy:
586
+
587
+ ```
588
+ textarea[kuiAutosizeTextarea]
589
+ ```
161
590
 
162
- - `value?: unknown`: The text, when the caller holds it: a change that no key made (a form filled by code) is then measured too.
591
+ Each part, and its own props:
592
+
593
+ - `textarea[kuiAutosizeTextarea]` is `KuiAutosizeTextarea`. `exportAs: "kuiAutosizeTextarea"`. `<textarea kuiAutosizeTextarea>`: as tall as its text.
163
594
 
164
595
  ### Avatar
165
596
 
166
597
  ```
167
- import { KuiAvatar } from "@kirana-ui/angular"
598
+ import { KuiAvatar, KuiAvatarImage, KuiAvatarFallback } from "@kirana-ui/angular"
168
599
  ```
169
600
 
170
601
  Parts: `[kuiAvatar]`, `[kuiAvatarImage]`, `[kuiAvatarFallback]`.
171
602
 
603
+ Anatomy:
604
+
605
+ ```
606
+ kuiAvatar
607
+ *kuiAvatarImage
608
+ *kuiAvatarFallback
609
+ ```
610
+
611
+ Each part, and its own props:
612
+
613
+ - `[kuiAvatar]` is `KuiAvatar`. `exportAs: "kuiAvatar"`. The frame the image and its stand-in share.
614
+ - `[kuiAvatarImage]` is `KuiAvatarImage`. Structural: written `*kuiAvatarImage`. `<img *kuiAvatarImage="address" alt="…">`: in the page once the picture has loaded.
615
+ - `*kuiAvatarImage: string`: The directive's own value: `*kuiAvatarImage="…"`. The picture's address: the element is in the page once it has loaded.
616
+ - `[kuiAvatarFallback]` is `KuiAvatarFallback`. Structural: written `*kuiAvatarFallback`. `<span *kuiAvatarFallback>`: what shows until the picture has loaded, or when it cannot.
617
+
172
618
  ### Button
173
619
 
174
620
  ```
@@ -177,9 +623,11 @@ import { KuiButton } from "@kirana-ui/angular"
177
623
 
178
624
  Props:
179
625
 
180
- - `disabled?: boolean`
626
+ - `disabled?: boolean`: Disabled: a press does nothing.
181
627
  - `focusableWhenDisabled?: boolean`: Keeps a disabled button in the tab order, so what it would do can still be read.
182
- - `nativeButton?: boolean`: `false` when the element is not a `<button>`: it is given a button's role and keyboard.
628
+ - `nativeButton?: boolean`: `false` when the element is not a `<button>`: it is given a button's role and keyboard. Default `true`.
629
+
630
+ `[kuiButton]` is `KuiButton`. `exportAs: "kuiButton"`. On a `<button>`, or with `[nativeButton]="false"` on another element that acts as one.
183
631
 
184
632
  Attributes and CSS variables, by part:
185
633
 
@@ -189,27 +637,58 @@ Attributes and CSS variables, by part:
189
637
  ### Calendar
190
638
 
191
639
  ```
192
- import { KuiCalendar } from "@kirana-ui/angular"
640
+ import { KuiCalendar, KuiCalendarHeading, KuiCalendarPrevious, KuiCalendarNext, KuiCalendarGrid, KuiCalendarWeekdays, KuiCalendarHeadCell, KuiCalendarWeeks, KuiCalendarCell, KuiCalendarDay } from "@kirana-ui/angular"
193
641
  ```
194
642
 
195
643
  Parts: `[kuiCalendar]`, `[kuiCalendarHeading]`, `[kuiCalendarPrevious]`, `[kuiCalendarNext]`, `[kuiCalendarGrid]`, `[kuiCalendarWeekdays]`, `[kuiCalendarHeadCell]`, `[kuiCalendarWeeks]`, `[kuiCalendarCell]`, `[kuiCalendarDay]`.
196
644
 
645
+ Anatomy:
646
+
647
+ ```
648
+ kuiCalendar
649
+ kuiCalendarHeading
650
+ kuiCalendarPrevious
651
+ kuiCalendarNext
652
+ kuiCalendarGrid
653
+ *kuiCalendarWeekdays
654
+ kuiCalendarHeadCell (repeated)
655
+ *kuiCalendarWeeks
656
+ kuiCalendarCell (repeated)
657
+ kuiCalendarDay
658
+ ```
659
+
197
660
  Props of its root:
198
661
 
199
- - `value?: CalendarValue`: One day, or with `mode: "range"` a first and a last day; `null` for none.
200
- - `defaultValue?: CalendarValue`
201
- - `onValueChange?: ((value: CalendarValue, details: ChangeDetails) => void)`
662
+ - `[(value)]: CalendarValue`: One day, or with `mode="range"` a first and a last: `[(value)]`.
663
+ - `defaultValue?: CalendarValue`: The value it starts with, when the caller does not hold `value`. Read once.
202
664
  - `mode?: "single" | "range"`: Whether one day is chosen (the default) or a first and a last.
203
- - `defaultFocusedValue?: IsoDate`: The day it opens on, when it has no value: its month is the one shown.
204
- - `onMonthChange?: ((month: IsoDate) => void)`: Heard when another month is shown: its first day.
205
- - `locale?: string`: The language and region its names, numbers, first day of the week and calendar follow (`"en-US"`, `"fa-IR"`). Give it: a server does not know the reader's.
206
- - `calendarSystem?: CalendarSystem`: The calendar its months are laid out in, when it is not the Gregorian one: an instance from `@internationalized/date` (`new PersianCalendar()`). Given, not found from the locale: a page then carries only the calendars it uses.
207
- - `min?: IsoDate`: The first and the last day that can be chosen.
208
- - `max?: IsoDate`
209
- - `isDateUnavailable?: ((date: IsoDate) => boolean)`: Days that cannot be chosen, though they can be reached: a day off, a day taken.
210
- - `disabled?: boolean`
211
- - `readOnly?: boolean`
665
+ - `defaultFocusedValue?: string`: The day it opens on, when it has no value: its month is the one shown.
666
+ - `locale?: string`: The language and region its names, first day of the week and calendar follow.
667
+ - `calendarSystem?: CalendarSystem`: The calendar its months are laid out in, when it is not the Gregorian one.
668
+ - `min?: string`: The first and the last day that can be chosen.
669
+ - `max?: string`: The last day that can be chosen.
670
+ - `isDateUnavailable?: (date: string) => boolean`: Days that cannot be chosen, though they can be reached: a day off, a day taken.
671
+ - `disabled?: boolean`: Disabled: no day can be chosen.
672
+ - `readOnly?: boolean`: Shown as it is: the days can be moved through, and none can be chosen.
212
673
  - `fixedWeeks?: boolean`: Always six rows, so the calendar is one height in every month.
674
+ - `(valueChanged): { value: CalendarValue; details: ChangeDetails }`: Heard as a day is about to be chosen: `details.cancel()` keeps the value as it was.
675
+ - `(monthChanged): string`: Another month is shown: its first day.
676
+
677
+ Each part, and its own props:
678
+
679
+ - `[kuiCalendar]` is `KuiCalendar`. `exportAs: "kuiCalendar"`. Its props are above.
680
+ - `[kuiCalendarHeading]` is `KuiCalendarHeading`. Names the month shown: it writes the name before whatever is inside it.
681
+ - `[kuiCalendarPrevious]` is `KuiCalendarPrevious`.
682
+ - `[kuiCalendarNext]` is `KuiCalendarNext`.
683
+ - `[kuiCalendarGrid]` is `KuiCalendarGrid`. The table of days: a grid the arrows move in.
684
+ - `[kuiCalendarWeekdays]` is `KuiCalendarWeekdays`. Structural: written `*kuiCalendarWeekdays`. Its template is given the entry: `let entry` is a `CalendarWeekday`. `<th *kuiCalendarWeekdays="let weekday">`: once for each day of the week.
685
+ - `[kuiCalendarHeadCell]` is `KuiCalendarHeadCell`. A column's heading: a day of the week.
686
+ - `weekday: CalendarWeekday`: Required. The day of the week it heads: an entry `Calendar.Weekdays` gave.
687
+ - `[kuiCalendarWeeks]` is `KuiCalendarWeeks`. Structural: written `*kuiCalendarWeeks`. Its template is given the entry: `let entry` is a `readonly CalendarDay[]`. `<tr *kuiCalendarWeeks="let week">`: once for each week of the month shown.
688
+ - `[kuiCalendarCell]` is `KuiCalendarCell`.
689
+ - `date: string`: Required. The day it holds, as `Calendar.Weeks` gave it: `day.date`.
690
+ - `[kuiCalendarDay]` is `KuiCalendarDay`.
691
+ - `date: string`: Required. The day it is the button of, as `Calendar.Weeks` gave it: `day.date`.
213
692
 
214
693
  Attributes and CSS variables, by part:
215
694
 
@@ -240,18 +719,40 @@ Attributes and CSS variables, by part:
240
719
  ### Carousel
241
720
 
242
721
  ```
243
- import { KuiCarousel } from "@kirana-ui/angular"
722
+ import { KuiCarousel, KuiCarouselViewport, KuiCarouselItem, KuiCarouselPrevious, KuiCarouselNext, KuiCarouselIndicator } from "@kirana-ui/angular"
244
723
  ```
245
724
 
246
725
  Parts: `[kuiCarousel]`, `[kuiCarouselViewport]`, `[kuiCarouselItem]`, `[kuiCarouselPrevious]`, `[kuiCarouselNext]`, `[kuiCarouselIndicator]`.
247
726
 
727
+ Anatomy:
728
+
729
+ ```
730
+ kuiCarousel
731
+ kuiCarouselViewport
732
+ kuiCarouselItem (repeated)
733
+ kuiCarouselPrevious
734
+ kuiCarouselNext
735
+ kuiCarouselIndicator (repeated)
736
+ ```
737
+
248
738
  Props of its root:
249
739
 
250
- - `index?: number`: Which slide is at the start of the view, from 0.
251
- - `defaultIndex?: number`
252
- - `onIndexChange?: ((index: number, details: ChangeDetails) => void)`
740
+ - `[(index)]: number`: Which slide is at the start of the view: `[(index)]`.
741
+ - `defaultIndex?: number`: The slide it starts at, when the caller does not hold `index`. Read once.
253
742
  - `orientation?: Orientation`: Whether the slides go across (the default) or down.
254
743
  - `loop?: boolean`: Whether going on from the last slide comes round to the first.
744
+ - `(indexChanged): { index: number; details: ChangeDetails }`: Heard as another slide is about to be at the start of the view: `details.cancel()` keeps the index as it was.
745
+
746
+ Each part, and its own props:
747
+
748
+ - `[kuiCarousel]` is `KuiCarousel`. `exportAs: "kuiCarousel"`. Its props are above.
749
+ - `[kuiCarouselViewport]` is `KuiCarouselViewport`.
750
+ - `[kuiCarouselItem]` is `KuiCarouselItem`.
751
+ - `index: number`: Required. Its place among the slides, from 0.
752
+ - `[kuiCarouselPrevious]` is `KuiCarouselPrevious`.
753
+ - `[kuiCarouselNext]` is `KuiCarouselNext`.
754
+ - `[kuiCarouselIndicator]` is `KuiCarouselIndicator`.
755
+ - `index: number`: Required. The slide it goes to, from 0.
255
756
 
256
757
  Attributes and CSS variables, by part:
257
758
 
@@ -272,23 +773,35 @@ Attributes and CSS variables, by part:
272
773
  ### Checkbox
273
774
 
274
775
  ```
275
- import { KuiCheckbox } from "@kirana-ui/angular"
776
+ import { KuiCheckbox, KuiCheckboxIndicator } from "@kirana-ui/angular"
276
777
  ```
277
778
 
278
779
  Parts: `[kuiCheckbox]`, `[kuiCheckboxIndicator]`.
279
780
 
781
+ Anatomy:
782
+
783
+ ```
784
+ kuiCheckbox
785
+ *kuiCheckboxIndicator
786
+ ```
787
+
280
788
  Props of its root:
281
789
 
282
- - `checked?: boolean`
790
+ - `[(checked)]: boolean`: Whether it is checked, when the caller holds it.
283
791
  - `defaultChecked?: boolean`: Read once.
284
- - `onCheckedChange?: ((checked: boolean, details: ChangeDetails) => void)`
285
- - `disabled?: boolean`
792
+ - `indeterminate?: boolean`: Neither checked nor unchecked: a parent of boxes that disagree.
793
+ - `disabled?: boolean`: Disabled: it cannot be changed.
286
794
  - `readOnly?: boolean`: Shown as it is, focusable, not changeable.
287
- - `required?: boolean`
795
+ - `required?: boolean`: Needed: in a `Field`, leaving it unchecked is then invalid.
288
796
  - `name?: string`: With a name, the control is submitted with the form around it when it is checked.
289
797
  - `form?: string`: The id of the form the control belongs to, when it is not inside it.
290
798
  - `value?: string`: What is submitted. Default `"on"`, as a native checkbox's.
291
- - `indeterminate?: boolean`: Neither checked nor unchecked: a parent of boxes that disagree.
799
+ - `(checkedChanged): { checked: boolean; details: ChangeDetails }`: The change with why it happened; `details.cancel()` keeps the value.
800
+
801
+ Each part, and its own props:
802
+
803
+ - `[kuiCheckbox]` is `KuiCheckbox`. `exportAs: "kuiCheckbox"`. On the box's element. It draws the hidden native input inside it, which a form and a label reach. Its props are above.
804
+ - `[kuiCheckboxIndicator]` is `KuiCheckboxIndicator`. Structural: written `*kuiCheckboxIndicator`. `<span *kuiCheckboxIndicator>`: in the page while the box is checked or indeterminate.
292
805
 
293
806
  Attributes and CSS variables, by part:
294
807
 
@@ -312,17 +825,32 @@ Attributes and CSS variables, by part:
312
825
  ### Collapsible
313
826
 
314
827
  ```
315
- import { KuiCollapsible } from "@kirana-ui/angular"
828
+ import { KuiCollapsible, KuiCollapsibleTrigger, KuiCollapsiblePanel } from "@kirana-ui/angular"
316
829
  ```
317
830
 
318
831
  Parts: `[kuiCollapsible]`, `[kuiCollapsibleTrigger]`, `[kuiCollapsiblePanel]`.
319
832
 
833
+ Anatomy:
834
+
835
+ ```
836
+ kuiCollapsible
837
+ kuiCollapsibleTrigger (repeated)
838
+ *kuiCollapsiblePanel
839
+ ```
840
+
320
841
  Props of its root:
321
842
 
322
- - `open?: boolean`
843
+ - `[(open)]: boolean`: Whether it is open, when the caller holds it.
323
844
  - `defaultOpen?: boolean`: Read once.
324
- - `onOpenChange?: ((open: boolean, details: ChangeDetails) => void)`
325
- - `disabled?: boolean`
845
+ - `disabled?: boolean`: Disabled: its trigger does not open or close it.
846
+ - `(openChanged): { open: boolean; details: ChangeDetails }`: The change with why it happened; `details.cancel()` keeps the value.
847
+
848
+ Each part, and its own props:
849
+
850
+ - `[kuiCollapsible]` is `KuiCollapsible`. `exportAs: "kuiCollapsible"`. Its props are above.
851
+ - `[kuiCollapsibleTrigger]` is `KuiCollapsibleTrigger`.
852
+ - `[kuiCollapsiblePanel]` is `KuiCollapsiblePanel`. Structural: written `*kuiCollapsiblePanel`. `<div *kuiCollapsiblePanel>`: in the page while open; `{ keepMounted: true }` keeps it, hidden.
853
+ - `*kuiCollapsiblePanel: { keepMounted?: boolean } | ""`: The directive's own value: `*kuiCollapsiblePanel="…"`. Its options: `{ keepMounted: true }` keeps the panel in the page, hidden, while it is closed.
326
854
 
327
855
  Attributes and CSS variables, by part:
328
856
 
@@ -344,61 +872,118 @@ Attributes and CSS variables, by part:
344
872
  ### Combobox
345
873
 
346
874
  ```
347
- import { KuiCombobox } from "@kirana-ui/angular"
875
+ import { KuiCombobox, KuiComboboxInput, KuiComboboxTrigger, KuiComboboxClear, KuiComboboxChips, KuiComboboxChip, KuiComboboxChipRemove, KuiComboboxPortal, KuiComboboxPositioner, KuiComboboxPopup, KuiComboboxList, KuiComboboxGroup, KuiComboboxGroupLabel, KuiComboboxSeparator, KuiComboboxItem, KuiComboboxItemIndicator, KuiComboboxEmpty, KuiComboboxHiddenInput } from "@kirana-ui/angular"
348
876
  ```
349
877
 
350
- Parts: `[kuiCombobox],[kuiAutocomplete]`, `input[kuiComboboxInput]`, `[kuiComboboxTrigger]`, `[kuiComboboxClear]`, `[kuiComboboxChips]`, `[kuiComboboxChip]`, `[kuiComboboxChipRemove]`, `[kuiComboboxPortal]`, `[kuiComboboxPositioner]`, `[kuiComboboxPopup]`, `[kuiComboboxGroup]`, `[kuiComboboxGroupLabel]`, `[kuiComboboxSeparator]`, `[kuiComboboxItem]`, `[kuiComboboxItemIndicator]`, `[kuiComboboxEmpty]`.
878
+ Parts: `[kuiCombobox]`, `input[kuiComboboxInput]`, `[kuiComboboxTrigger]`, `[kuiComboboxClear]`, `[kuiComboboxChips]`, `[kuiComboboxChip]`, `[kuiComboboxChipRemove]`, `[kuiComboboxPortal]`, `[kuiComboboxPositioner]`, `[kuiComboboxPopup]`, `[kuiComboboxList]`, `[kuiComboboxGroup]`, `[kuiComboboxGroupLabel]`, `[kuiComboboxSeparator]`, `[kuiComboboxItem]`, `[kuiComboboxItemIndicator]`, `[kuiComboboxEmpty]`.
879
+
880
+ Anatomy:
881
+
882
+ ```
883
+ kuiCombobox
884
+ input[kuiComboboxInput]
885
+ kuiComboboxTrigger
886
+ *kuiComboboxPortal
887
+ kuiComboboxPositioner
888
+ kuiComboboxPopup
889
+ input[kuiComboboxInput] (as above)
890
+ kuiComboboxList (optional)
891
+ kuiComboboxGroup (optional, repeated)
892
+ kuiComboboxItem (repeated)
893
+ *kuiComboboxItemIndicator
894
+ kuiComboboxGroupLabel
895
+ kuiComboboxSeparator (repeated)
896
+ *kuiComboboxEmpty
897
+ kuiComboboxPopup (as above)
898
+ *kuiComboboxClear
899
+ kuiComboboxChips
900
+ input[kuiComboboxInput] (as above)
901
+ kuiComboboxChip (repeated)
902
+ kuiComboboxChipRemove
903
+ input[kuiComboboxHiddenInput] (Angular only)
904
+ ```
351
905
 
352
906
  Props of its root:
353
907
 
354
- - `value?: Value | null`: The chosen value; `null` is "none".
355
- - `defaultValue?: Value | null`
356
- - `onValueChange?: ((value: Value | null, details: ChangeDetails) => void)`
357
- - `inputValue?: string`: What the input says.
358
- - `defaultInputValue?: string`
359
- - `onInputValueChange?: ((value: string, details: ChangeDetails) => void)`
360
- - `open?: boolean`
361
- - `defaultOpen?: boolean`
362
- - `onOpenChange?: ((open: boolean, details: ChangeDetails) => void)`
363
- - `disabled?: boolean`
908
+ - `[(value)]: Value | null`: The chosen value; `null` is "none".
909
+ - `defaultValue?: NoInfer<Value> | null`: The value it starts with, when the caller does not hold `value`. Read once.
910
+ - `[(inputValue)]: string`: What the input says, `[(inputValue)]`. With `kuiAutocomplete` the text is `[(value)]`.
911
+ - `defaultInputValue?: string`: The text the input starts with, when the caller does not hold `inputValue`. Read once.
912
+ - `[(open)]: boolean`: Whether the list is open, when the caller holds it.
913
+ - `defaultOpen?: boolean`: Whether the list starts open, when the caller does not hold `open`. Read once.
914
+ - `disabled?: boolean`: Disabled: it cannot be changed.
364
915
  - `name?: string`: With a name, the value is submitted with the form around it.
365
916
  - `form?: string`: The id of the form the control belongs to, when it is not inside it.
366
- - `items?: readonly { value: Value; label: string }[]`: The labels of the values, for the input to show a value before the list has ever been opened. Not needed for the list itself: its items are read from the markup.
367
- - `filter?: ((label: string, query: string) => boolean) | null`: Whether an item is shown for what was typed. Default: its label holds the text, without regard to case. `null`: every item is shown, and the caller draws the ones it wants.
368
- - `multiple?: boolean`: Several values, each shown as a chip beside the input: an item chosen is added, chosen again taken away, and the list stays open. The values are `values`, not `value`.
369
- - `values?: readonly Value[]`
370
- - `defaultValues?: readonly Value[]`
371
- - `onValuesChange?: ((values: Value[], details: ChangeDetails) => void)`
917
+ - `items?: ItemLabels<Value>`: The values' labels: a list of values with their labels, or the labels by value.
918
+ - `filter?: ((label: string, query: string) => boolean) | null`: Whether an item is shown for what was typed; `null` shows every item.
372
919
  - `required?: boolean`: In a field, "none" is then wrong.
373
- - `inline?: boolean`: The list is always in the page, under the input, with no popup: a command palette. An item chosen is told to the caller, and the input keeps what was typed.
374
- - `virtualized?: ListCollection`: Every row, when only some are in the page (a virtualizer draws the ones in view). The caller then filters: the collection is what is left, and each item is given its `index`.
920
+ - `multiple?: boolean`: Several values, each shown as a chip: they are `values`, not `value`.
921
+ - `[(values)]: readonly Value[]`: With `multiple`: the chosen values, in the order they were chosen, `[(values)]`.
922
+ - `defaultValues?: readonly Value[]`: With `multiple`: the values it starts with, when the caller does not hold `values`. Read once.
923
+ - `(valuesChanged): { values: Value[]; details: ChangeDetails }`: With `multiple`: heard as a value is about to be added or taken away; `details.cancel()` keeps the values as they were.
924
+ - `inline?: boolean`: The list is always in the page, with no popup: a command palette.
925
+ - `virtualized?: ListCollection`: Every row, when only some are in the page: each item is then given its `index`.
926
+ - `autoHighlight?: boolean`: The first item shown for what was typed is highlighted as one types, so Enter chooses it. Off by default.
927
+ - `mode?: "list" | "none"`: With `kuiAutocomplete`: `"none"` shows the suggestions as the caller draws them.
928
+ - `openOnInputClick?: boolean`: With `kuiAutocomplete`: a press on the input opens the list.
929
+ - `(valueChanged): { value: Value | null; details: ChangeDetails }`: Heard as a value is about to be chosen or cleared: `details.cancel()` keeps it as it was.
930
+ - `(inputValueChanged): { value: string; details: ChangeDetails }`: Heard as the input's text is about to change; `details.cancel()` keeps it as it was.
931
+ - `(openChanged): { open: boolean; details: ChangeDetails }`: Heard as the list is about to open or close: `details.cancel()` keeps it as it was.
932
+
933
+ Each part, and its own props:
934
+
935
+ - `[kuiCombobox]` is `KuiCombobox`. `exportAs: "kuiCombobox"`. Generic: `<Value = unknown>`. `kuiAutocomplete` is a combobox whose text is the value: `[(value)]` is the text, and the list only suggests. Its parts are the combobox's directives. Its props are above.
936
+ - `input[kuiComboboxInput]` is `KuiComboboxInput`. `<input kuiComboboxInput>`: what is typed filters the list, which is placed against it.
937
+ - `[kuiComboboxTrigger]` is `KuiComboboxTrigger`.
938
+ - `[kuiComboboxClear]` is `KuiComboboxClear`. Structural: written `*kuiComboboxClear`. `<button *kuiComboboxClear>`: empties the input and the value; in the page while there is something to clear.
939
+ - `[kuiComboboxChips]` is `KuiComboboxChips`. With `multiple`: what holds the chips and the input.
940
+ - `[kuiComboboxChip]` is `KuiComboboxChip`. With `multiple`: one chosen value. Its `value` is what its remove button takes away.
941
+ - `value: unknown`: Required. The chosen value this chip stands for.
942
+ - `[kuiComboboxChipRemove]` is `KuiComboboxChipRemove`.
943
+ - `[kuiComboboxPortal]` is `KuiComboboxPortal`. Structural: written `*kuiComboboxPortal`. Draws what it holds at the end of `<body>`, or in the container a `PortalProvider` names.
944
+ - `[kuiComboboxPositioner]` is `KuiComboboxPositioner`. Takes the positioner options ("Positioner options", above).
945
+ - `[kuiComboboxPopup]` is `KuiComboboxPopup`.
946
+ - `[kuiComboboxList]` is `KuiComboboxList`. The items' own box inside the popup, when the popup holds more than items (an input): it is then the listbox.
947
+ - `[kuiComboboxGroup]` is `KuiComboboxGroup`. Items that belong together, named by their `kuiComboboxGroupLabel`. Hidden while none is shown.
948
+ - `[kuiComboboxGroupLabel]` is `KuiComboboxGroupLabel`. Names the group it is in. With no group around it, it is plain text.
949
+ - `[kuiComboboxSeparator]` is `KuiComboboxSeparator`. A line between groups.
950
+ - `[kuiComboboxItem]` is `KuiComboboxItem`.
951
+ - `value: unknown`: Required. What the combobox's value is while this item is chosen.
952
+ - `disabled?: boolean`: Disables this item: it cannot be chosen, and the arrows pass over it.
953
+ - `label?: string`: What is filtered and what the input shows; the item's text when left out.
954
+ - `index?: number`: Its place among all the rows, in a virtualized list.
955
+ - `[kuiComboboxItemIndicator]` is `KuiComboboxItemIndicator`. Structural: written `*kuiComboboxItemIndicator`. `<span *kuiComboboxItemIndicator>`: in the page while its item is the chosen one.
956
+ - `[kuiComboboxEmpty]` is `KuiComboboxEmpty`. Structural: written `*kuiComboboxEmpty`. `<div *kuiComboboxEmpty>`: in the page while no item is shown for what was typed.
957
+ - `input[kuiComboboxHiddenInput]` is `KuiComboboxHiddenInput`. `<input kuiComboboxHiddenInput>`: submits the value with the form around it. Angular only.
375
958
 
376
959
  Attributes and CSS variables, by part:
377
960
 
378
- - input: The text input. What is typed filters the list, which is placed against it.
961
+ - input: The text input. What is typed filters the list, which is placed against it, or against the chips' box when it is in one. Inside the popup, it takes focus while the popup is open.
379
962
  - `data-popup-open`: Present when the list is open.
380
963
  - `data-disabled`: Present when it is disabled.
381
- - trigger: A button that opens and closes the list.
964
+ - trigger: A button that opens and closes the list. With the input inside the popup it is the combobox: a stop for Tab, and what the popup is placed against.
382
965
  - `data-popup-open`: Present when the list is open.
383
966
  - `data-disabled`: Present when it is disabled.
384
- - positioner: Places the list against the input. It carries the geometry.
967
+ - positioner: Places the list against the input: against the chips' box when the input is in one, the button when the input is inside the popup, or its own `anchor`. It carries the geometry.
385
968
  - `data-open`: Present when it is open.
386
969
  - `data-closed`: Present when it is closed.
387
- - `data-side="top | right | bottom | left"`: The side of the anchor it is on, after any flip.
970
+ - `data-side="top | right | bottom | left | inline-start | inline-end"`: The side of the anchor it is on, after any flip. Asked for as `inline-start` or `inline-end`, it says one of those two when it is beside its anchor.
388
971
  - `data-align="start | center | end"`: How it is aligned with the anchor.
389
972
  - `--anchor-width`: The anchor's width.
390
973
  - `--anchor-height`: The anchor's height.
391
974
  - `--available-width`: The width between the anchor and the edge of the viewport.
392
975
  - `--available-height`: The height between the anchor and the edge of the viewport.
393
976
  - `--transform-origin`: The point of the popup nearest its anchor, to scale from.
394
- - popup: The list of items.
977
+ - popup: The list of items. With a `list` inside, what holds it: a dialog around an input and the list.
395
978
  - `data-open`: Present when it is open.
396
979
  - `data-closed`: Present when it is closed.
397
980
  - `data-starting-style`: Present for the first style of its entrance: what it animates in from.
398
981
  - `data-ending-style`: Present through its exit: what it animates out to. It leaves the page when the motion ends.
399
- - `data-side="top | right | bottom | left"`: The side of the anchor it is on, after any flip.
982
+ - `data-side="top | right | bottom | left | inline-start | inline-end"`: The side of the anchor it is on, after any flip. Asked for as `inline-start` or `inline-end`, it says one of those two when it is beside its anchor.
400
983
  - `data-align="start | center | end"`: How it is aligned with the anchor.
401
984
  - `data-empty`: Present when no item is shown for what was typed.
985
+ - list: The items' own box inside the popup, when the popup holds more than items (an input): it is then the listbox.
986
+ - `data-empty`: Present when no item is shown for what was typed.
402
987
  - item: One choice in the list.
403
988
  - `data-selected`: Present on the chosen item.
404
989
  - `data-highlighted`: Present on the item the pointer or the keyboard is on.
@@ -411,20 +996,49 @@ Attributes and CSS variables, by part:
411
996
  ### Command
412
997
 
413
998
  ```
414
- import { KuiCommand } from "@kirana-ui/angular"
999
+ import { KuiCommand, KuiCommandInput, KuiCommandList, KuiCommandEmpty, KuiCommandGroup, KuiCommandGroupHeading, KuiCommandItem, KuiCommandSeparator } from "@kirana-ui/angular"
415
1000
  ```
416
1001
 
417
1002
  Parts: `[kuiCommand]`, `[kuiCommandInput]`, `[kuiCommandList]`, `[kuiCommandEmpty]`, `[kuiCommandGroup]`, `[kuiCommandGroupHeading]`, `[kuiCommandItem]`, `[kuiCommandSeparator]`.
418
1003
 
1004
+ Anatomy:
1005
+
1006
+ ```
1007
+ kuiCommand
1008
+ kuiCommandInput
1009
+ kuiCommandList
1010
+ *kuiCommandEmpty
1011
+ kuiCommandGroup (optional, repeated)
1012
+ kuiCommandGroupHeading
1013
+ kuiCommandItem (repeated)
1014
+ kuiCommandSeparator (repeated)
1015
+ ```
1016
+
419
1017
  Props of its root:
420
1018
 
421
- - `inputValue?: string`: What the input says.
422
- - `defaultInputValue?: string`
423
- - `onInputValueChange?: ((value: string, details: ChangeDetails) => void)`
424
- - `onSelect?: ((value: string, details: ChangeDetails) => void)`: An item was chosen: pressed, or Enter while it was highlighted.
425
- - `filter?: ((label: string, query: string, keywords: readonly string[]) => boolean) | null`: Whether an item is shown for what was typed. Default: its label or one of its keywords holds the text, without regard to case. `null`: every item is shown, and the caller draws the ones it wants.
1019
+ - `[(inputValue)]: string`: What the input says.
1020
+ - `defaultInputValue?: string`: The text the input starts with, when the caller does not hold `inputValue`. Read once.
1021
+ - `filter?: ((label: string, query: string, keywords: readonly string[]) => boolean) | null`: Whether an item is shown for what was typed; `null` shows every item.
426
1022
  - `loop?: boolean`: Whether a step past an end of the list goes round to the other.
427
- - `disabled?: boolean`
1023
+ - `disabled?: boolean`: Disabled: nothing can be typed or chosen.
1024
+ - `(inputValueChanged): { value: string; details: ChangeDetails }`: Heard as the input's text is about to change: `details.cancel()` keeps it as it was.
1025
+ - `(itemSelected): { value: string; details: ChangeDetails }`: An item was chosen.
1026
+
1027
+ Each part, and its own props:
1028
+
1029
+ - `[kuiCommand]` is `KuiCommand`. `exportAs: "kuiCommand"`. Its props are above.
1030
+ - `[kuiCommandInput]` is `KuiCommandInput`.
1031
+ - `[kuiCommandList]` is `KuiCommandList`.
1032
+ - `[kuiCommandEmpty]` is `KuiCommandEmpty`. Structural: written `*kuiCommandEmpty`. `<div *kuiCommandEmpty>`: in the page while no item is shown for what was typed.
1033
+ - `[kuiCommandGroup]` is `KuiCommandGroup`. Items under a `kuiCommandGroupHeading`. Hidden while none of them is shown.
1034
+ - `[kuiCommandGroupHeading]` is `KuiCommandGroupHeading`. A group's name.
1035
+ - `[kuiCommandItem]` is `KuiCommandItem`.
1036
+ - `value: string`: Required. What `itemSelected` is told.
1037
+ - `disabled?: boolean`: Disables this item: it cannot be chosen, and the arrows pass over it.
1038
+ - `label?: string`: What is filtered; the item's text when left out.
1039
+ - `keywords?: readonly string[]`: Other words the item answers to.
1040
+ - `[kuiCommandSeparator]` is `KuiCommandSeparator`. A line between groups: gone while something is typed, unless `alwaysRender`.
1041
+ - `alwaysRender?: boolean`: Stays while something is typed.
428
1042
 
429
1043
  Attributes and CSS variables, by part:
430
1044
 
@@ -441,21 +1055,90 @@ Attributes and CSS variables, by part:
441
1055
  ### ContextMenu
442
1056
 
443
1057
  ```
444
- import { KuiMenu } from "@kirana-ui/angular"
1058
+ import { KuiMenu, KuiContextMenuTrigger, KuiMenuPortal, KuiMenuPositioner, KuiMenuPopup, KuiMenuArrow, KuiMenuItem, KuiMenuLinkItem, KuiMenuGroup, KuiMenuGroupLabel, KuiMenuSeparator, KuiMenuCheckboxItem, KuiMenuCheckboxItemIndicator, KuiMenuRadioGroup, KuiMenuRadioItem, KuiMenuRadioItemIndicator, KuiMenuSubmenuRoot, KuiMenuSubmenuTrigger } from "@kirana-ui/angular"
445
1059
  ```
446
1060
 
447
- Parts: `[kuiContextMenuTrigger]`.
1061
+ Parts: `[kuiContextMenu]`, `[kuiContextMenuTrigger]`, `[kuiMenuPortal]`, `[kuiMenuPositioner]`, `[kuiMenuPopup]`, `[kuiMenuArrow]`, `[kuiMenuItem]`, `a[kuiMenuLinkItem]`, `[kuiMenuGroup]`, `[kuiMenuGroupLabel]`, `[kuiMenuSeparator]`, `[kuiMenuCheckboxItem]`, `[kuiMenuCheckboxItemIndicator]`, `[kuiMenuRadioGroup]`, `[kuiMenuRadioItem]`, `[kuiMenuRadioItemIndicator]`, `[kuiMenuSubmenuRoot]`, `[kuiMenuSubmenuTrigger]`.
448
1062
 
449
- Its root is `[kuiContextMenu]`, a selector of `KuiMenu`: inside it, that component's directives are its parts.
1063
+ Anatomy:
1064
+
1065
+ ```
1066
+ kuiContextMenu
1067
+ kuiContextMenuTrigger
1068
+ *kuiMenuPortal
1069
+ kuiMenuPositioner
1070
+ kuiMenuPopup
1071
+ kuiMenuArrow
1072
+ kuiMenuGroup (optional, repeated)
1073
+ kuiMenuItem (repeated)
1074
+ a[kuiMenuLinkItem] (repeated)
1075
+ kuiMenuGroupLabel
1076
+ kuiMenuCheckboxItem (repeated)
1077
+ *kuiMenuCheckboxItemIndicator
1078
+ kuiMenuRadioGroup (repeated)
1079
+ kuiMenuRadioItem (repeated)
1080
+ *kuiMenuRadioItemIndicator
1081
+ kuiMenuSubmenuRoot (repeated)
1082
+ *kuiMenuPortal (as above)
1083
+ kuiMenuSubmenuTrigger
1084
+ kuiMenuSeparator (repeated)
1085
+ ```
450
1086
 
451
1087
  Props of its root:
452
1088
 
453
- - `open?: boolean`
454
- - `defaultOpen?: boolean`
455
- - `onOpenChange?: ((open: boolean, details: ChangeDetails) => void)`
1089
+ - `[(open)]: boolean`: Whether it is open, when the caller holds it.
1090
+ - `defaultOpen?: boolean`: Whether it starts open, when the caller does not hold `open`. Read once.
456
1091
  - `disabled?: boolean`: The trigger cannot be pressed; a submenu's is passed over.
457
1092
  - `loop?: boolean`: Whether the arrows go round from the last item to the first. Default: they do.
458
- - `modal?: boolean`: Holds the page while the menu is open: its scroll is locked, and a press outside closes the menu and reaches nothing. Default: it does not. Not for a submenu.
1093
+ - `modal?: boolean`: Holds the page while the menu is open. Not for a submenu.
1094
+ - `(openChanged): { open: boolean; details: ChangeDetails }`: Heard as it is about to open or close: `details.cancel()` keeps it as it was.
1095
+
1096
+ Each part, and its own props:
1097
+
1098
+ - `[kuiContextMenu]` is `KuiMenu`. `exportAs: "kuiMenu"`. `kuiContextMenu` in place of `kuiMenu` is a menu for an area of the page, opened at the pointer: its trigger is `kuiContextMenuTrigger`, its other parts the menu's. Its props are above.
1099
+ - `[kuiContextMenuTrigger]` is `KuiContextMenuTrigger`. The area a secondary press, or a long press on a touch screen, opens a `kuiContextMenu` in.
1100
+ - `[kuiMenuPortal]` is `KuiMenuPortal`. Structural: written `*kuiMenuPortal`. Draws what it holds at the end of `<body>`, or in the container a `PortalProvider` names.
1101
+ - `[kuiMenuPositioner]` is `KuiMenuPositioner`. Takes the positioner options ("Positioner options", above).
1102
+ - `[kuiMenuPopup]` is `KuiMenuPopup`.
1103
+ - `[kuiMenuArrow]` is `KuiMenuArrow`.
1104
+ - `[kuiMenuItem]` is `KuiMenuItem`.
1105
+ - `disabled?: boolean`: Disables this item: it cannot be pressed, and the arrows pass over it.
1106
+ - `label?: string`: What typing matches; the item's text when left out.
1107
+ - `closeOnClick?: boolean`: Whether choosing the item closes the menu. Default: it does.
1108
+ - `a[kuiMenuLinkItem]` is `KuiMenuLinkItem`. `<a kuiMenuLinkItem href="…">`: an item that is a link.
1109
+ - `disabled?: boolean`: Disables this item: it cannot be pressed, and the arrows pass over it.
1110
+ - `label?: string`: What typing matches; the item's text when left out.
1111
+ - `closeOnClick?: boolean`: Whether choosing the item closes the menu. Default: it does.
1112
+ - `[kuiMenuGroup]` is `KuiMenuGroup`. Items that belong together, named by their label.
1113
+ - `[kuiMenuGroupLabel]` is `KuiMenuGroupLabel`. Names the group it is in. With no group around it, it is plain text.
1114
+ - `[kuiMenuSeparator]` is `KuiMenuSeparator`. A line between items.
1115
+ - `[kuiMenuCheckboxItem]` is `KuiMenuCheckboxItem`. `exportAs: "kuiMenuCheckboxItem"`.
1116
+ - `[(checked)]: boolean`: Whether the item is checked, when the caller holds it.
1117
+ - `defaultChecked?: boolean`: Whether the item starts checked, when the caller does not hold `checked`. Read once.
1118
+ - `disabled?: boolean`: Disables this item: it cannot be pressed, and the arrows pass over it.
1119
+ - `label?: string`: What typing matches; the item's text when left out.
1120
+ - `closeOnClick?: boolean`: Whether choosing the item closes the menu. Default: it does not.
1121
+ - `(checkedChanged): { checked: boolean; details: ChangeDetails }`: Heard as the item is about to be checked or unchecked: `details.cancel()` keeps it as it was.
1122
+ - `[kuiMenuCheckboxItemIndicator]` is `KuiMenuCheckboxItemIndicator`. Structural: written `*kuiMenuCheckboxItemIndicator`. `<span *kuiMenuCheckboxItemIndicator>`: in the page while its item is checked.
1123
+ - `[kuiMenuRadioGroup]` is `KuiMenuRadioGroup`. `exportAs: "kuiMenuRadioGroup"`. Generic: `<Value = unknown>`.
1124
+ - `[(value)]: Value | null`: The chosen value; `null` is "none".
1125
+ - `defaultValue?: NoInfer<Value> | null`: The value it starts with, when the caller does not hold `value`. Read once.
1126
+ - `disabled?: boolean`: Disables every item of the group.
1127
+ - `(valueChanged): { value: Value; details: ChangeDetails }`: Told an item's own value, never `null`: a press chooses, and nothing takes the choice back.
1128
+ - `[kuiMenuRadioItem]` is `KuiMenuRadioItem`.
1129
+ - `value: unknown`: Required. What the radio group's value is while this item is the chosen one.
1130
+ - `disabled?: boolean`: Disables this item: it cannot be pressed, and the arrows pass over it.
1131
+ - `label?: string`: What typing matches; the item's text when left out.
1132
+ - `closeOnClick?: boolean`: Whether choosing the item closes the menu. Default: it does not.
1133
+ - `[kuiMenuRadioItemIndicator]` is `KuiMenuRadioItemIndicator`. Structural: written `*kuiMenuRadioItemIndicator`. `<span *kuiMenuRadioItemIndicator>`: in the page while its item is the chosen one.
1134
+ - `[kuiMenuSubmenuRoot]` is `KuiMenuSubmenuRoot`. `exportAs: "kuiMenuSubmenuRoot"`. A menu that one of this menu's items opens. Its trigger is `kuiMenuSubmenuTrigger`.
1135
+ - `[(open)]: boolean`: Whether it is open, when the caller holds it.
1136
+ - `defaultOpen?: boolean`: Whether it starts open, when the caller does not hold `open`. Read once.
1137
+ - `disabled?: boolean`: The trigger cannot be pressed; a submenu's is passed over.
1138
+ - `loop?: boolean`: Whether the arrows go round from the last item to the first. Default: they do.
1139
+ - `modal?: boolean`: Holds the page while the menu is open. Not for a submenu.
1140
+ - `(openChanged): { open: boolean; details: ChangeDetails }`: Heard as it is about to open or close: `details.cancel()` keeps it as it was.
1141
+ - `[kuiMenuSubmenuTrigger]` is `KuiMenuSubmenuTrigger`. On the item of a menu that opens the submenu around it (`kuiMenuSubmenuRoot`).
459
1142
 
460
1143
  Attributes and CSS variables, by part:
461
1144
 
@@ -464,7 +1147,7 @@ Attributes and CSS variables, by part:
464
1147
  - positioner: Places the menu against its trigger. It carries the geometry.
465
1148
  - `data-open`: Present when it is open.
466
1149
  - `data-closed`: Present when it is closed.
467
- - `data-side="top | right | bottom | left"`: The side of the anchor it is on, after any flip.
1150
+ - `data-side="top | right | bottom | left | inline-start | inline-end"`: The side of the anchor it is on, after any flip. Asked for as `inline-start` or `inline-end`, it says one of those two when it is beside its anchor.
468
1151
  - `data-align="start | center | end"`: How it is aligned with the anchor.
469
1152
  - `--anchor-width`: The anchor's width.
470
1153
  - `--anchor-height`: The anchor's height.
@@ -476,10 +1159,10 @@ Attributes and CSS variables, by part:
476
1159
  - `data-closed`: Present when it is closed.
477
1160
  - `data-starting-style`: Present for the first style of its entrance: what it animates in from.
478
1161
  - `data-ending-style`: Present through its exit: what it animates out to. It leaves the page when the motion ends.
479
- - `data-side="top | right | bottom | left"`: The side of the anchor it is on, after any flip.
1162
+ - `data-side="top | right | bottom | left | inline-start | inline-end"`: The side of the anchor it is on, after any flip. Asked for as `inline-start` or `inline-end`, it says one of those two when it is beside its anchor.
480
1163
  - `data-align="start | center | end"`: How it is aligned with the anchor.
481
1164
  - arrow: An element that points at the trigger.
482
- - `data-side="top | right | bottom | left"`: The side of the anchor it is on, after any flip.
1165
+ - `data-side="top | right | bottom | left | inline-start | inline-end"`: The side of the anchor it is on, after any flip. Asked for as `inline-start` or `inline-end`, it says one of those two when it is beside its anchor.
483
1166
  - `data-align="start | center | end"`: How it is aligned with the anchor.
484
1167
  - `data-uncentered`: Present when the arrow cannot sit at the trigger's centre.
485
1168
  - item: An action. Choosing it closes the menu.
@@ -514,25 +1197,42 @@ Attributes and CSS variables, by part:
514
1197
  ### DateField
515
1198
 
516
1199
  ```
517
- import { KuiDateField } from "@kirana-ui/angular"
1200
+ import { KuiDateField, KuiDateFieldSegments, KuiDateFieldSegment, KuiDateFieldInput } from "@kirana-ui/angular"
518
1201
  ```
519
1202
 
520
1203
  Parts: `[kuiDateField]`, `[kuiDateFieldSegments]`, `[kuiDateFieldSegment]`, `input[kuiDateFieldInput]`.
521
1204
 
1205
+ Anatomy:
1206
+
1207
+ ```
1208
+ kuiDateField
1209
+ *kuiDateFieldSegments
1210
+ kuiDateFieldSegment (repeated)
1211
+ input[kuiDateFieldInput]
1212
+ ```
1213
+
522
1214
  Props of its root:
523
1215
 
524
- - `value?: IsoDate | null`: The day typed, once all of it is; `null` until then.
525
- - `defaultValue?: IsoDate | null`
526
- - `onValueChange?: ((value: IsoDate | null, details: ChangeDetails) => void)`
527
- - `locale?: string`: The language and region that order the day, the month and the year and put what stands between them (`"en-US"`: month/day/year). Give it: a server does not know the reader's.
528
- - `min?: IsoDate`: The first and the last day it takes: outside them it says it is invalid.
529
- - `max?: IsoDate`
1216
+ - `[(value)]: string | null`: The day typed, once all of it is: `[(value)]`.
1217
+ - `defaultValue?: string | null`: The value it starts with, when the caller does not hold `value`. Read once.
1218
+ - `locale?: string`: The language and region that order the day, the month and the year.
1219
+ - `min?: string`: The first and the last day it takes: outside them it says it is invalid.
1220
+ - `max?: string`: The last day it takes.
530
1221
  - `placeholders?: Partial<Record<DateUnit, string>>`: What an empty part shows. Default: `dd`, `mm`, `yyyy`.
531
- - `disabled?: boolean`
532
- - `readOnly?: boolean`
533
- - `required?: boolean`
1222
+ - `disabled?: boolean`: Disabled: it cannot be changed.
1223
+ - `readOnly?: boolean`: Shown as it is, focusable, not changeable.
1224
+ - `required?: boolean`: Needed: in a `Field`, leaving it empty is then invalid.
534
1225
  - `name?: string`: The name it is submitted under, by its hidden input.
535
1226
  - `form?: string`: The id of the form it belongs to, when it is not inside it.
1227
+ - `(valueChanged): { value: string | null; details: ChangeDetails }`: Heard as the day is about to change, once all of it is typed or as it is cleared: `details.cancel()` keeps the value as it was.
1228
+
1229
+ Each part, and its own props:
1230
+
1231
+ - `[kuiDateField]` is `KuiDateField`. `exportAs: "kuiDateField"`. Its props are above.
1232
+ - `[kuiDateFieldSegments]` is `KuiDateFieldSegments`. Structural: written `*kuiDateFieldSegments`. Its template is given the entry: `let entry` is a `DateFieldSegment`. `<span *kuiDateFieldSegments="let segment">`: once for each piece of the date.
1233
+ - `[kuiDateFieldSegment]` is `KuiDateFieldSegment`. One piece: a part that is typed, or what stands between two. It writes its own text.
1234
+ - `segment: DateFieldSegment`: Required. The piece it is: an entry `DateField.Segments` gave.
1235
+ - `input[kuiDateFieldInput]` is `KuiDateFieldInput`. `<input kuiDateFieldInput>`: the hidden input it is submitted by.
536
1236
 
537
1237
  Attributes and CSS variables, by part:
538
1238
 
@@ -549,33 +1249,81 @@ Attributes and CSS variables, by part:
549
1249
  ### DatePicker
550
1250
 
551
1251
  ```
552
- import { KuiDatePicker } from "@kirana-ui/angular"
1252
+ import { KuiDatePicker, KuiDatePickerField, KuiDateFieldSegments, KuiDateFieldSegment, KuiDateFieldInput, KuiPopoverTrigger, KuiPopoverPortal, KuiPopoverPositioner, KuiPopoverPopup, KuiDatePickerCalendar, KuiCalendarHeading, KuiCalendarPrevious, KuiCalendarNext, KuiCalendarGrid, KuiCalendarWeekdays, KuiCalendarHeadCell, KuiCalendarWeeks, KuiCalendarCell, KuiCalendarDay } from "@kirana-ui/angular"
553
1253
  ```
554
1254
 
555
- Parts: `[kuiDatePicker]`, `[kuiDatePickerField]`, `[kuiDatePickerCalendar]`.
1255
+ Parts: `[kuiDatePicker]`, `[kuiDatePickerField]`, `[kuiDateFieldSegments]`, `[kuiDateFieldSegment]`, `input[kuiDateFieldInput]`, `[kuiPopoverTrigger]`, `[kuiPopoverPortal]`, `[kuiPopoverPositioner]`, `[kuiPopoverPopup]`, `[kuiDatePickerCalendar]`, `[kuiCalendarHeading]`, `[kuiCalendarPrevious]`, `[kuiCalendarNext]`, `[kuiCalendarGrid]`, `[kuiCalendarWeekdays]`, `[kuiCalendarHeadCell]`, `[kuiCalendarWeeks]`, `[kuiCalendarCell]`, `[kuiCalendarDay]`.
556
1256
 
557
- Its other parts (Segments, Segment, Input, Trigger, Portal, Positioner, Popup, Heading, Previous, Next, Grid, Weekdays, HeadCell, Weeks, Cell, Day) are the directives of the components it is made of, used inside it.
1257
+ Anatomy:
1258
+
1259
+ ```
1260
+ kuiDatePicker
1261
+ kuiDatePickerField
1262
+ *kuiDateFieldSegments
1263
+ kuiDateFieldSegment (repeated)
1264
+ input[kuiDateFieldInput]
1265
+ kuiPopoverTrigger
1266
+ *kuiPopoverPortal
1267
+ kuiPopoverPositioner
1268
+ kuiPopoverPopup
1269
+ kuiDatePickerCalendar
1270
+ kuiCalendarHeading
1271
+ kuiCalendarPrevious
1272
+ kuiCalendarNext
1273
+ kuiCalendarGrid
1274
+ *kuiCalendarWeekdays
1275
+ kuiCalendarHeadCell (repeated)
1276
+ *kuiCalendarWeeks
1277
+ kuiCalendarCell (repeated)
1278
+ kuiCalendarDay
1279
+ ```
558
1280
 
559
1281
  Props of its root:
560
1282
 
561
- - `value?: IsoDate | null`: The day, typed or picked; `null` for none.
562
- - `defaultValue?: IsoDate | null`
563
- - `onValueChange?: ((value: IsoDate | null, details: ChangeDetails) => void)`
564
- - `open?: boolean`
565
- - `defaultOpen?: boolean`
566
- - `onOpenChange?: ((open: boolean, details: ChangeDetails) => void)`
1283
+ - `[(value)]: string | null`: The day, typed or picked; `null` for none.
1284
+ - `defaultValue?: string | null`: The value it starts with, when the caller does not hold `value`. Read once.
1285
+ - `[(open)]: boolean`: Whether the calendar is open, when the caller holds it.
1286
+ - `defaultOpen?: boolean`: Whether the calendar starts open, when the caller does not hold `open`. Read once.
567
1287
  - `locale?: string`: The language and region of the field and the calendar. Give it: a server does not know.
568
- - `min?: IsoDate`: The first and the last day that can be typed or picked.
569
- - `max?: IsoDate`
1288
+ - `min?: string`: The first and the last day that can be typed or picked.
1289
+ - `max?: string`: The last day that can be typed or picked.
570
1290
  - `isDateUnavailable?: CalendarProps["isDateUnavailable"]`: Days that cannot be picked in the calendar.
571
1291
  - `calendarSystem?: CalendarProps["calendarSystem"]`: The calendar its months are laid out in, when it is not the Gregorian one.
572
1292
  - `fixedWeeks?: boolean`: Always six rows of days.
573
1293
  - `placeholders?: DateFieldProps["placeholders"]`: What an empty part of the field shows.
574
- - `disabled?: boolean`
575
- - `readOnly?: boolean`
576
- - `required?: boolean`
1294
+ - `disabled?: boolean`: Disabled: it cannot be changed.
1295
+ - `readOnly?: boolean`: Shown as it is, focusable, not changeable.
1296
+ - `required?: boolean`: Needed: in a `Field`, leaving it empty is then invalid.
577
1297
  - `name?: string`: The name it is submitted under.
578
1298
  - `form?: string`: The id of the form it belongs to, when it is not inside it.
1299
+ - `(valueChanged): { value: string | null; details: ChangeDetails }`: Heard as the day is about to change, typed or picked: `details.cancel()` keeps the value as it was.
1300
+ - `(openChanged): { open: boolean; details: ChangeDetails }`: Heard as the calendar is about to open or close: `details.cancel()` keeps it as it was.
1301
+
1302
+ Each part, and its own props:
1303
+
1304
+ - `[kuiDatePicker]` is `KuiDatePicker`. `exportAs: "kuiDatePicker"`. A date field, and a calendar in a popover, with one value between them. On any element, or on `<ng-container>` to draw none. Inside it the date field's, the popover's and the calendar's own directives are its parts (`kuiDateFieldSegments`, `kuiPopoverTrigger`, `kuiCalendarGrid` …), with `kuiDatePickerField` and `kuiDatePickerCalendar` for the two elements that hold them. `[(value)]` is the day, `[(open)]` whether the calendar shows. Its props are above.
1305
+ - `[kuiDatePickerField]` is `KuiDatePickerField`. The typed date: what holds its segments and its hidden input.
1306
+ - `[kuiDateFieldSegments]` is `KuiDateFieldSegments`. Structural: written `*kuiDateFieldSegments`. Its template is given the entry: `let entry` is a `DateFieldSegment`. `<span *kuiDateFieldSegments="let segment">`: once for each piece of the date.
1307
+ - `[kuiDateFieldSegment]` is `KuiDateFieldSegment`. One piece: a part that is typed, or what stands between two. It writes its own text.
1308
+ - `segment: DateFieldSegment`: Required. The piece it is: an entry `DateField.Segments` gave.
1309
+ - `input[kuiDateFieldInput]` is `KuiDateFieldInput`. `<input kuiDateFieldInput>`: the hidden input it is submitted by.
1310
+ - `[kuiPopoverTrigger]` is `KuiPopoverTrigger`.
1311
+ - `[kuiPopoverPortal]` is `KuiPopoverPortal`. Structural: written `*kuiPopoverPortal`. Draws what it holds at the end of `<body>`, or in the container a `PortalProvider` names.
1312
+ - `[kuiPopoverPositioner]` is `KuiPopoverPositioner`. Takes the positioner options ("Positioner options", above).
1313
+ - `[kuiPopoverPopup]` is `KuiPopoverPopup`.
1314
+ - `[kuiDatePickerCalendar]` is `KuiDatePickerCalendar`. The calendar: what holds its heading, its buttons and its grid.
1315
+ - `[kuiCalendarHeading]` is `KuiCalendarHeading`. Names the month shown: it writes the name before whatever is inside it.
1316
+ - `[kuiCalendarPrevious]` is `KuiCalendarPrevious`.
1317
+ - `[kuiCalendarNext]` is `KuiCalendarNext`.
1318
+ - `[kuiCalendarGrid]` is `KuiCalendarGrid`. The table of days: a grid the arrows move in.
1319
+ - `[kuiCalendarWeekdays]` is `KuiCalendarWeekdays`. Structural: written `*kuiCalendarWeekdays`. Its template is given the entry: `let entry` is a `CalendarWeekday`. `<th *kuiCalendarWeekdays="let weekday">`: once for each day of the week.
1320
+ - `[kuiCalendarHeadCell]` is `KuiCalendarHeadCell`. A column's heading: a day of the week.
1321
+ - `weekday: CalendarWeekday`: Required. The day of the week it heads: an entry `Calendar.Weekdays` gave.
1322
+ - `[kuiCalendarWeeks]` is `KuiCalendarWeeks`. Structural: written `*kuiCalendarWeeks`. Its template is given the entry: `let entry` is a `readonly CalendarDay[]`. `<tr *kuiCalendarWeeks="let week">`: once for each week of the month shown.
1323
+ - `[kuiCalendarCell]` is `KuiCalendarCell`.
1324
+ - `date: string`: Required. The day it holds, as `Calendar.Weeks` gave it: `day.date`.
1325
+ - `[kuiCalendarDay]` is `KuiCalendarDay`.
1326
+ - `date: string`: Required. The day it is the button of, as `Calendar.Weeks` gave it: `day.date`.
579
1327
 
580
1328
  Attributes and CSS variables, by part:
581
1329
 
@@ -593,7 +1341,7 @@ Attributes and CSS variables, by part:
593
1341
  - positioner: Places the popup against the trigger. It carries the geometry.
594
1342
  - `data-open`: Present when it is open.
595
1343
  - `data-closed`: Present when it is closed.
596
- - `data-side="top | right | bottom | left"`: The side of the anchor it is on, after any flip.
1344
+ - `data-side="top | right | bottom | left | inline-start | inline-end"`: The side of the anchor it is on, after any flip. Asked for as `inline-start` or `inline-end`, it says one of those two when it is beside its anchor.
597
1345
  - `data-align="start | center | end"`: How it is aligned with the anchor.
598
1346
  - `--anchor-width`: The anchor's width.
599
1347
  - `--anchor-height`: The anchor's height.
@@ -605,7 +1353,7 @@ Attributes and CSS variables, by part:
605
1353
  - `data-closed`: Present when it is closed.
606
1354
  - `data-starting-style`: Present for the first style of its entrance: what it animates in from.
607
1355
  - `data-ending-style`: Present through its exit: what it animates out to. It leaves the page when the motion ends.
608
- - `data-side="top | right | bottom | left"`: The side of the anchor it is on, after any flip.
1356
+ - `data-side="top | right | bottom | left | inline-start | inline-end"`: The side of the anchor it is on, after any flip. Asked for as `inline-start` or `inline-end`, it says one of those two when it is beside its anchor.
609
1357
  - `data-align="start | center | end"`: How it is aligned with the anchor.
610
1358
  - calendar: The calendar.
611
1359
  - `data-disabled`: Present when it is disabled.
@@ -634,18 +1382,47 @@ Attributes and CSS variables, by part:
634
1382
  ### Dialog
635
1383
 
636
1384
  ```
637
- import { KuiDialog } from "@kirana-ui/angular"
1385
+ import { KuiDialog, KuiDialogTrigger, KuiDialogPortal, KuiDialogBackdrop, KuiDialogPopup, KuiDialogTitle, KuiDialogDescription, KuiDialogClose } from "@kirana-ui/angular"
638
1386
  ```
639
1387
 
640
- Parts: `[kuiDialog],[kuiAlertDialog],[kuiDrawer]`, `[kuiDialogTrigger]`, `[kuiDialogPortal]`, `[kuiDialogBackdrop]`, `[kuiDialogPopup]`, `[kuiDialogTitle]`, `[kuiDialogDescription]`, `[kuiDialogClose]`.
1388
+ Parts: `[kuiDialog]`, `[kuiDialogTrigger]`, `[kuiDialogPortal]`, `[kuiDialogBackdrop]`, `[kuiDialogPopup]`, `[kuiDialogTitle]`, `[kuiDialogDescription]`, `[kuiDialogClose]`.
1389
+
1390
+ Anatomy:
1391
+
1392
+ ```
1393
+ kuiDialog
1394
+ kuiDialogTrigger
1395
+ *kuiDialogPortal
1396
+ kuiDialogBackdrop
1397
+ kuiDialogPopup
1398
+ kuiDialogTitle
1399
+ kuiDialogDescription
1400
+ kuiDialogClose
1401
+ ```
641
1402
 
642
1403
  Props of its root:
643
1404
 
644
- - `open?: boolean`
645
- - `defaultOpen?: boolean`
646
- - `onOpenChange?: ((open: boolean, details: ChangeDetails) => void)`
1405
+ - `[(open)]: boolean`: Whether it is open, when the caller holds it.
1406
+ - `defaultOpen?: boolean`: Whether it starts open, when the caller does not hold `open`. Read once.
647
1407
  - `modal?: boolean`: Blocks the page behind it and traps focus. Default `true`.
648
1408
  - `dismissible?: boolean`: Whether a press outside closes it. Default `true`.
1409
+ - `swipeDirection?: DrawerSide`: With `kuiDrawer`: the way it is dragged to close it. Default: `"down"`.
1410
+ - `snapPoints?: readonly DrawerSnapPoint[]`: With `kuiDrawer`: places it rests at, each the share of itself that shows.
1411
+ - `[(snapPoint)]: DrawerSnapPoint`: With `kuiDrawer`: which of them it rests at, `[(snapPoint)]`.
1412
+ - `defaultSnapPoint?: DrawerSnapPoint`: With `kuiDrawer`: where it opens. Default: the smallest.
1413
+ - `(snapPointChanged): { snapPoint: DrawerSnapPoint; details: ChangeDetails }`: With `kuiDrawer`: heard as it is about to rest at another snap point; `details.cancel()` keeps it where it was.
1414
+ - `(openChanged): { open: boolean; details: ChangeDetails }`: Heard as it is about to open or close: `details.cancel()` keeps it as it was.
1415
+
1416
+ Each part, and its own props:
1417
+
1418
+ - `[kuiDialog]` is `KuiDialog`. `exportAs: "kuiDialog"`. On any element, or on `<ng-container>` to draw none. `kuiDrawer` in place of `kuiDialog` is a dialog that comes from an edge and is dragged back to it (`swipeDirection`): its parts are a dialog's (`kuiDialogPopup` …). An alert dialog has a root of its own, `kuiAlertDialog`. Its props are above.
1419
+ - `[kuiDialogTrigger]` is `KuiDialogTrigger`.
1420
+ - `[kuiDialogPortal]` is `KuiDialogPortal`. Structural: written `*kuiDialogPortal`. `<ng-template kuiDialogPortal>` or `*kuiDialogPortal`: its content at the end of the page while open.
1421
+ - `[kuiDialogBackdrop]` is `KuiDialogBackdrop`.
1422
+ - `[kuiDialogPopup]` is `KuiDialogPopup`.
1423
+ - `[kuiDialogTitle]` is `KuiDialogTitle`. The heading that names the dialog.
1424
+ - `[kuiDialogDescription]` is `KuiDialogDescription`. The text that describes the dialog.
1425
+ - `[kuiDialogClose]` is `KuiDialogClose`. A button that closes the dialog.
649
1426
 
650
1427
  Attributes and CSS variables, by part:
651
1428
 
@@ -664,32 +1441,50 @@ Attributes and CSS variables, by part:
664
1441
  - `data-nested-dialog-open`: Present when another dialog is open above this one.
665
1442
  - `--nested-dialogs`: How many dialogs are open above this one.
666
1443
 
667
- ### DirectionProvider
1444
+ ### Drawer
668
1445
 
669
1446
  ```
670
- import { KuiDirectionProvider } from "@kirana-ui/angular"
1447
+ import { KuiDialog, KuiDialogTrigger, KuiDialogPortal, KuiDialogBackdrop, KuiDialogPopup, KuiDialogTitle, KuiDialogDescription, KuiDialogClose } from "@kirana-ui/angular"
671
1448
  ```
672
1449
 
673
- ### Drawer
1450
+ Parts: `[kuiDrawer]`, `[kuiDialogTrigger]`, `[kuiDialogPortal]`, `[kuiDialogBackdrop]`, `[kuiDialogPopup]`, `[kuiDialogTitle]`, `[kuiDialogDescription]`, `[kuiDialogClose]`.
1451
+
1452
+ Anatomy:
674
1453
 
675
1454
  ```
676
- import { KuiDialog } from "@kirana-ui/angular"
1455
+ kuiDrawer
1456
+ kuiDialogTrigger
1457
+ *kuiDialogPortal
1458
+ kuiDialogBackdrop
1459
+ kuiDialogPopup
1460
+ kuiDialogTitle
1461
+ kuiDialogDescription
1462
+ kuiDialogClose
677
1463
  ```
678
1464
 
679
- Its root is `[kuiDrawer]`, a selector of `KuiDialog`: inside it, that component's directives are its parts.
680
-
681
1465
  Props of its root:
682
1466
 
683
- - `open?: boolean`
684
- - `defaultOpen?: boolean`
685
- - `onOpenChange?: ((open: boolean, details: ChangeDetails) => void)`
1467
+ - `[(open)]: boolean`: Whether it is open, when the caller holds it.
1468
+ - `defaultOpen?: boolean`: Whether it starts open, when the caller does not hold `open`. Read once.
686
1469
  - `modal?: boolean`: Blocks the page behind it and traps focus. Default `true`.
687
1470
  - `dismissible?: boolean`: Whether a press outside closes it. Default `true`.
688
- - `swipeDirection?: DrawerSide`: The way it is dragged to close it: the edge it came from. Default: `"down"`.
689
- - `snapPoints?: readonly DrawerSnapPoint[]`: Places it rests at, each how much of itself shows: a share (`0.4`, or `"40%"`) or a length (`"148px"`, `"20rem"`). `[0.4, 1]` is a drawer that opens two fifths shown and is dragged up to the whole. Without any, it is whole.
690
- - `snapPoint?: DrawerSnapPoint`: Which of them it rests at, as it was given.
691
- - `defaultSnapPoint?: DrawerSnapPoint`: Where it opens. Default: the smallest.
692
- - `onSnapPointChange?: ((snapPoint: DrawerSnapPoint, details: ChangeDetails) => void)`
1471
+ - `swipeDirection?: DrawerSide`: With `kuiDrawer`: the way it is dragged to close it. Default: `"down"`.
1472
+ - `snapPoints?: readonly DrawerSnapPoint[]`: With `kuiDrawer`: places it rests at, each the share of itself that shows.
1473
+ - `[(snapPoint)]: DrawerSnapPoint`: With `kuiDrawer`: which of them it rests at, `[(snapPoint)]`.
1474
+ - `defaultSnapPoint?: DrawerSnapPoint`: With `kuiDrawer`: where it opens. Default: the smallest.
1475
+ - `(snapPointChanged): { snapPoint: DrawerSnapPoint; details: ChangeDetails }`: With `kuiDrawer`: heard as it is about to rest at another snap point; `details.cancel()` keeps it where it was.
1476
+ - `(openChanged): { open: boolean; details: ChangeDetails }`: Heard as it is about to open or close: `details.cancel()` keeps it as it was.
1477
+
1478
+ Each part, and its own props:
1479
+
1480
+ - `[kuiDrawer]` is `KuiDialog`. `exportAs: "kuiDialog"`. On any element, or on `<ng-container>` to draw none. `kuiDrawer` in place of `kuiDialog` is a dialog that comes from an edge and is dragged back to it (`swipeDirection`): its parts are a dialog's (`kuiDialogPopup` …). An alert dialog has a root of its own, `kuiAlertDialog`. Its props are above.
1481
+ - `[kuiDialogTrigger]` is `KuiDialogTrigger`.
1482
+ - `[kuiDialogPortal]` is `KuiDialogPortal`. Structural: written `*kuiDialogPortal`. `<ng-template kuiDialogPortal>` or `*kuiDialogPortal`: its content at the end of the page while open.
1483
+ - `[kuiDialogBackdrop]` is `KuiDialogBackdrop`.
1484
+ - `[kuiDialogPopup]` is `KuiDialogPopup`.
1485
+ - `[kuiDialogTitle]` is `KuiDialogTitle`. The heading that names the dialog.
1486
+ - `[kuiDialogDescription]` is `KuiDialogDescription`. The text that describes the dialog.
1487
+ - `[kuiDialogClose]` is `KuiDialogClose`. A button that closes the dialog.
693
1488
 
694
1489
  Attributes and CSS variables, by part:
695
1490
 
@@ -731,20 +1526,41 @@ Attributes and CSS variables, by part:
731
1526
  ### Field
732
1527
 
733
1528
  ```
734
- import { KuiField } from "@kirana-ui/angular"
1529
+ import { KuiField, KuiFieldLabel, KuiFieldControl, KuiFieldDescription, KuiFieldError, KuiFieldValidity } from "@kirana-ui/angular"
735
1530
  ```
736
1531
 
737
1532
  Parts: `[kuiField]`, `[kuiFieldLabel]`, `[kuiFieldControl]`, `[kuiFieldDescription]`, `[kuiFieldError]`, `[kuiFieldValidity]`.
738
1533
 
1534
+ Anatomy:
1535
+
1536
+ ```
1537
+ kuiField
1538
+ kuiFieldLabel
1539
+ kuiFieldControl
1540
+ kuiFieldDescription
1541
+ *kuiFieldError
1542
+ *kuiFieldValidity
1543
+ ```
1544
+
739
1545
  Props of its root:
740
1546
 
741
1547
  - `name?: string`: The control's name in the form.
742
- - `disabled?: boolean`
1548
+ - `disabled?: boolean`: Disables the field: its control cannot be changed, and its parts say so (`data-disabled`).
743
1549
  - `invalid?: boolean`: Invalid whatever the value: an error known from elsewhere.
744
- - `validate?: | (( value: string ) => string | readonly string[] | null | Promise<string | readonly string[] | null>)`: The field's own check, after the browser's: a message or several when the value is wrong, `null` when it is right. It may answer later, with a promise.
1550
+ - `validate?: ( value: string ) => string | readonly string[] | null | Promise<string | readonly string[] | null>`: The field's own check, after the browser's: a message or several when the value is wrong, `null` when it is right. It may answer later, with a promise.
745
1551
  - `validationMode?: ValidationMode`: When the value is checked; the form's by default, else `"onSubmit"`.
746
1552
  - `validationDebounceTime?: number`: With `"onChange"`, how long the value must rest before it is checked, in milliseconds.
747
1553
 
1554
+ Each part, and its own props:
1555
+
1556
+ - `[kuiField]` is `KuiField`. `exportAs: "kuiField"`. Its props are above.
1557
+ - `[kuiFieldLabel]` is `KuiFieldLabel`.
1558
+ - `[kuiFieldControl]` is `KuiFieldControl`. On the control: an `<input>`, a `<textarea>` or a `<select>`.
1559
+ - `[kuiFieldDescription]` is `KuiFieldDescription`.
1560
+ - `[kuiFieldError]` is `KuiFieldError`. Structural: written `*kuiFieldError`. `<div *kuiFieldError>`: in the page while something is wrong, with the message as its text unless it has content of its own. `*kuiFieldError="'valueMissing'"` shows for only that finding of the browser's, `*kuiFieldError="true"` always.
1561
+ - `*kuiFieldError: ValidityKey | boolean | ""`: The directive's own value: `*kuiFieldError="…"`. One of the browser's findings (`"valueMissing"`) to show for only that; `true` to show always.
1562
+ - `[kuiFieldValidity]` is `KuiFieldValidity`. Structural: written `*kuiFieldValidity`. Its template is given the entry: `let entry` is a `FieldValidity`. `<ng-container *kuiFieldValidity="let validity">`: draws its template with the field's validity.
1563
+
748
1564
  Attributes and CSS variables, by part:
749
1565
 
750
1566
  - root: A control with its label, its description and its errors.
@@ -793,15 +1609,27 @@ Attributes and CSS variables, by part:
793
1609
  ### Fieldset
794
1610
 
795
1611
  ```
796
- import { KuiFieldset } from "@kirana-ui/angular"
1612
+ import { KuiFieldset, KuiFieldsetLegend } from "@kirana-ui/angular"
797
1613
  ```
798
1614
 
799
1615
  Parts: `[kuiFieldset]`, `[kuiFieldsetLegend]`.
800
1616
 
1617
+ Anatomy:
1618
+
1619
+ ```
1620
+ kuiFieldset
1621
+ kuiFieldsetLegend
1622
+ ```
1623
+
801
1624
  Props of its root:
802
1625
 
803
1626
  - `disabled?: boolean`: Disables every field inside.
804
1627
 
1628
+ Each part, and its own props:
1629
+
1630
+ - `[kuiFieldset]` is `KuiFieldset`. `exportAs: "kuiFieldset"`. Its props are above.
1631
+ - `[kuiFieldsetLegend]` is `KuiFieldsetLegend`.
1632
+
805
1633
  Attributes and CSS variables, by part:
806
1634
 
807
1635
  - root: The group of fields.
@@ -818,26 +1646,50 @@ import { KuiForm } from "@kirana-ui/angular"
818
1646
  Props:
819
1647
 
820
1648
  - `errors?: FormErrors`: Errors from outside the page (a server's), by field name. A field shows its own until its value changes.
821
- - `onClearErrors?: ((errors: FormErrors) => void)`: A field's value changed while it showed an error from `errors`: what is left of them.
822
- - `onFormSubmit?: ((values: FormValues, details: ChangeDetails) => void)`: Every field is valid. Given this, the page is not left: the values come as an object. Without it, the form submits as a form does.
823
1649
  - `validationMode?: ValidationMode`: When the form's fields check their values, unless a field says otherwise. Default `"onSubmit"`.
1650
+ - `(formSubmit): { values: FormValues; details: ChangeDetails }`: Every field is valid. Given this, the page is not left: the values come as an object. Without it, the form submits as a form does.
1651
+ - `(clearErrors): FormErrors`: A field's value changed while it showed one of `errors`: what is left of them.
1652
+
1653
+ `form[kuiForm]` is `KuiForm`. `exportAs: "kuiForm"`. On a `<form>`: its fields say what is wrong, and `(formSubmit)` gives the values once all are valid. As with Angular's own forms, the page is left only when the form has an `action`.
824
1654
 
825
1655
  ### HoverCard
826
1656
 
827
1657
  ```
828
- import { KuiHoverCard } from "@kirana-ui/angular"
1658
+ import { KuiHoverCard, KuiHoverCardTrigger, KuiHoverCardPortal, KuiHoverCardPositioner, KuiHoverCardPopup, KuiHoverCardArrow } from "@kirana-ui/angular"
829
1659
  ```
830
1660
 
831
1661
  Parts: `[kuiHoverCard]`, `[kuiHoverCardTrigger]`, `[kuiHoverCardPortal]`, `[kuiHoverCardPositioner]`, `[kuiHoverCardPopup]`, `[kuiHoverCardArrow]`.
832
1662
 
1663
+ Anatomy:
1664
+
1665
+ ```
1666
+ kuiHoverCard
1667
+ kuiHoverCardTrigger
1668
+ *kuiHoverCardPortal
1669
+ kuiHoverCardPositioner
1670
+ kuiHoverCardPopup
1671
+ kuiHoverCardArrow
1672
+ ```
1673
+
833
1674
  Props of its root:
834
1675
 
835
- - `open?: boolean`
836
- - `defaultOpen?: boolean`
837
- - `onOpenChange?: ((open: boolean, details: ChangeDetails) => void)`
1676
+ - `[(open)]: boolean`: Whether it is open, when the caller holds it.
1677
+ - `defaultOpen?: boolean`: Whether it starts open, when the caller does not hold `open`. Read once.
838
1678
  - `delay?: number`: How long the pointer rests on the trigger before the popup opens, in milliseconds.
839
1679
  - `closeDelay?: number`: How long after the pointer leaves the popup closes, in milliseconds.
840
- - `disabled?: boolean`
1680
+ - `disabled?: boolean`: Disabled: the pointer and focus do not open it.
1681
+ - `(openChanged): { open: boolean; details: ChangeDetails }`: The change with why it happened; `details.cancel()` keeps the value.
1682
+
1683
+ Each part, and its own props:
1684
+
1685
+ - `[kuiHoverCard]` is `KuiHoverCard`. `exportAs: "kuiHoverCard"`. On any element, or on `<ng-container>` to draw none. Its props are above.
1686
+ - `[kuiHoverCardTrigger]` is `KuiHoverCardTrigger`.
1687
+ - `delay?: number`: Its own waits, which come before the root's.
1688
+ - `closeDelay?: number`: How long after the pointer leaves this trigger's popup closes, in milliseconds.
1689
+ - `[kuiHoverCardPortal]` is `KuiHoverCardPortal`. Structural: written `*kuiHoverCardPortal`. Draws what it holds at the end of `<body>`, or in the container a `PortalProvider` names.
1690
+ - `[kuiHoverCardPositioner]` is `KuiHoverCardPositioner`. Takes the positioner options ("Positioner options", above).
1691
+ - `[kuiHoverCardPopup]` is `KuiHoverCardPopup`.
1692
+ - `[kuiHoverCardArrow]` is `KuiHoverCardArrow`.
841
1693
 
842
1694
  Attributes and CSS variables, by part:
843
1695
 
@@ -846,7 +1698,7 @@ Attributes and CSS variables, by part:
846
1698
  - positioner: Places the popup against the trigger. It carries the geometry.
847
1699
  - `data-open`: Present when it is open.
848
1700
  - `data-closed`: Present when it is closed.
849
- - `data-side="top | right | bottom | left"`: The side of the anchor it is on, after any flip.
1701
+ - `data-side="top | right | bottom | left | inline-start | inline-end"`: The side of the anchor it is on, after any flip. Asked for as `inline-start` or `inline-end`, it says one of those two when it is beside its anchor.
850
1702
  - `data-align="start | center | end"`: How it is aligned with the anchor.
851
1703
  - `--anchor-width`: The anchor's width.
852
1704
  - `--anchor-height`: The anchor's height.
@@ -858,11 +1710,11 @@ Attributes and CSS variables, by part:
858
1710
  - `data-closed`: Present when it is closed.
859
1711
  - `data-starting-style`: Present for the first style of its entrance: what it animates in from.
860
1712
  - `data-ending-style`: Present through its exit: what it animates out to. It leaves the page when the motion ends.
861
- - `data-side="top | right | bottom | left"`: The side of the anchor it is on, after any flip.
1713
+ - `data-side="top | right | bottom | left | inline-start | inline-end"`: The side of the anchor it is on, after any flip. Asked for as `inline-start` or `inline-end`, it says one of those two when it is beside its anchor.
862
1714
  - `data-align="start | center | end"`: How it is aligned with the anchor.
863
1715
  - `data-instant="delay | focus | dismiss"`: Present when it opened or closed without its usual wait, for a design that skips the motion then.
864
1716
  - arrow: An element that points at the trigger, placed along the popup's edge.
865
- - `data-side="top | right | bottom | left"`: The side of the anchor it is on, after any flip.
1717
+ - `data-side="top | right | bottom | left | inline-start | inline-end"`: The side of the anchor it is on, after any flip. Asked for as `inline-start` or `inline-end`, it says one of those two when it is beside its anchor.
866
1718
  - `data-align="start | center | end"`: How it is aligned with the anchor.
867
1719
  - `data-uncentered`: Present when the popup was pushed along its edge, so the arrow is not at the trigger's centre.
868
1720
 
@@ -874,8 +1726,10 @@ import { KuiInput } from "@kirana-ui/angular"
874
1726
 
875
1727
  Props:
876
1728
 
877
- - `disabled?: boolean`
878
- - `onValueChange?: ((value: string, details: ChangeDetails) => void)`: What was typed, as text, each time it changes.
1729
+ - `disabled?: boolean`: Disabled: nothing can be typed in it.
1730
+ - `(valueChanged): { value: string; details: ChangeDetails }`: What was typed, as text, each time it changes.
1731
+
1732
+ `[kuiInput]` is `KuiInput`. `exportAs: "kuiInput"`. `<input kuiInput>` or `<textarea kuiInput>`: it says its state, and inside a `kuiField` it is the field's control. Its value is the element's own (`[value]`, `ngModel`).
879
1733
 
880
1734
  Attributes and CSS variables, by part:
881
1735
 
@@ -894,6 +1748,8 @@ Attributes and CSS variables, by part:
894
1748
  import { KuiLabel } from "@kirana-ui/angular"
895
1749
  ```
896
1750
 
1751
+ `[kuiLabel]` is `KuiLabel`. `exportAs: "kuiLabel"`. `<label kuiLabel>`. Inside a `kuiField` it is the field's label.
1752
+
897
1753
  Attributes and CSS variables, by part:
898
1754
 
899
1755
  - label: A control's name. Inside a field it is the field's label, with its states.
@@ -908,22 +1764,44 @@ Attributes and CSS variables, by part:
908
1764
  ### Listbox
909
1765
 
910
1766
  ```
911
- import { KuiListbox } from "@kirana-ui/angular"
1767
+ import { KuiListbox, KuiListboxItem, KuiListboxItemIndicator, KuiListboxGroup, KuiListboxGroupLabel } from "@kirana-ui/angular"
912
1768
  ```
913
1769
 
914
1770
  Parts: `[kuiListbox]`, `[kuiListboxItem]`, `[kuiListboxItemIndicator]`, `[kuiListboxGroup]`, `[kuiListboxGroupLabel]`.
915
1771
 
1772
+ Anatomy:
1773
+
1774
+ ```
1775
+ kuiListbox
1776
+ kuiListboxGroup (optional, repeated)
1777
+ kuiListboxItem (repeated)
1778
+ *kuiListboxItemIndicator
1779
+ kuiListboxGroupLabel
1780
+ ```
1781
+
916
1782
  Props of its root:
917
1783
 
918
- - `value?: readonly Value[]`: The chosen values: none, one, or with `multiple` several.
919
- - `defaultValue?: readonly Value[]`
920
- - `onValueChange?: ((value: Value[], details: ChangeDetails) => void)`
1784
+ - `[(value)]: readonly Value[]`: The chosen values: none, one, or with `multiple` several.
1785
+ - `defaultValue?: readonly Value[]`: The values it starts with, when the caller does not hold `value`. Read once.
921
1786
  - `multiple?: boolean`: Whether more than one can be chosen: a press then adds or takes away.
922
- - `disabled?: boolean`
1787
+ - `disabled?: boolean`: Disabled: no item can be chosen.
923
1788
  - `loop?: boolean`: Whether the arrows go round from the last item to the first. Default: they do not.
924
1789
  - `name?: string`: With a name, the chosen values are submitted with the form around the list.
925
1790
  - `form?: string`: The id of the form the list belongs to, when it is not inside it.
926
- - `virtualized?: ListCollection`: Every row, when only some are in the page (a virtualizer draws the ones in view): how many there are, their names, and how to bring one into the page. Each item is then given its `index`.
1791
+ - `virtualized?: ListCollection`: Every row, when only some are in the page: each item is then given its `index`.
1792
+ - `(valueChanged): { value: Value[]; details: ChangeDetails }`: Heard as an item is about to be chosen or taken away, with the values there would then be: `details.cancel()` keeps them as they were.
1793
+
1794
+ Each part, and its own props:
1795
+
1796
+ - `[kuiListbox]` is `KuiListbox`. `exportAs: "kuiListbox"`. Generic: `<Value = unknown>`. Its props are above.
1797
+ - `[kuiListboxItem]` is `KuiListboxItem`.
1798
+ - `value: unknown`: Required. What is in the listbox's value while this item is chosen.
1799
+ - `disabled?: boolean`: Disables this item: it cannot be chosen, and the arrows pass over it.
1800
+ - `label?: string`: What typing matches; the item's text when left out.
1801
+ - `index?: number`: Its place among all the rows, in a virtualized list.
1802
+ - `[kuiListboxItemIndicator]` is `KuiListboxItemIndicator`. Structural: written `*kuiListboxItemIndicator`. `<span *kuiListboxItemIndicator>`: in the page while its item is chosen.
1803
+ - `[kuiListboxGroup]` is `KuiListboxGroup`. Items that belong together, named by their label.
1804
+ - `[kuiListboxGroupLabel]` is `KuiListboxGroupLabel`. The name of a group.
927
1805
 
928
1806
  Attributes and CSS variables, by part:
929
1807
 
@@ -939,19 +1817,90 @@ Attributes and CSS variables, by part:
939
1817
  ### Menu
940
1818
 
941
1819
  ```
942
- import { KuiMenu } from "@kirana-ui/angular"
1820
+ import { KuiMenu, KuiMenuTrigger, KuiMenuPortal, KuiMenuPositioner, KuiMenuPopup, KuiMenuArrow, KuiMenuItem, KuiMenuLinkItem, KuiMenuGroup, KuiMenuGroupLabel, KuiMenuSeparator, KuiMenuCheckboxItem, KuiMenuCheckboxItemIndicator, KuiMenuRadioGroup, KuiMenuRadioItem, KuiMenuRadioItemIndicator, KuiMenuSubmenuRoot, KuiMenuSubmenuTrigger } from "@kirana-ui/angular"
943
1821
  ```
944
1822
 
945
- Parts: `[kuiMenu],[kuiContextMenu]`, `[kuiMenuTrigger]`, `[kuiMenuPortal]`, `[kuiMenuPositioner]`, `[kuiMenuPopup]`, `[kuiMenuArrow]`, `[kuiMenuItem]`, `a[kuiMenuLinkItem]`, `[kuiMenuGroup]`, `[kuiMenuGroupLabel]`, `[kuiMenuSeparator]`, `[kuiMenuCheckboxItem]`, `[kuiMenuCheckboxItemIndicator]`, `[kuiMenuRadioGroup]`, `[kuiMenuRadioItem]`, `[kuiMenuRadioItemIndicator]`, `[kuiMenuSubmenuRoot]`, `[kuiMenuSubmenuTrigger]`.
1823
+ Parts: `[kuiMenu]`, `[kuiMenuTrigger]`, `[kuiMenuPortal]`, `[kuiMenuPositioner]`, `[kuiMenuPopup]`, `[kuiMenuArrow]`, `[kuiMenuItem]`, `a[kuiMenuLinkItem]`, `[kuiMenuGroup]`, `[kuiMenuGroupLabel]`, `[kuiMenuSeparator]`, `[kuiMenuCheckboxItem]`, `[kuiMenuCheckboxItemIndicator]`, `[kuiMenuRadioGroup]`, `[kuiMenuRadioItem]`, `[kuiMenuRadioItemIndicator]`, `[kuiMenuSubmenuRoot]`, `[kuiMenuSubmenuTrigger]`.
1824
+
1825
+ Anatomy:
1826
+
1827
+ ```
1828
+ kuiMenu
1829
+ kuiMenuTrigger
1830
+ *kuiMenuPortal
1831
+ kuiMenuPositioner
1832
+ kuiMenuPopup
1833
+ kuiMenuArrow
1834
+ kuiMenuGroup (optional, repeated)
1835
+ kuiMenuItem (repeated)
1836
+ a[kuiMenuLinkItem] (repeated)
1837
+ kuiMenuGroupLabel
1838
+ kuiMenuCheckboxItem (repeated)
1839
+ *kuiMenuCheckboxItemIndicator
1840
+ kuiMenuRadioGroup (repeated)
1841
+ kuiMenuRadioItem (repeated)
1842
+ *kuiMenuRadioItemIndicator
1843
+ kuiMenuSubmenuRoot (repeated)
1844
+ *kuiMenuPortal (as above)
1845
+ kuiMenuSubmenuTrigger
1846
+ kuiMenuSeparator (repeated)
1847
+ ```
946
1848
 
947
1849
  Props of its root:
948
1850
 
949
- - `open?: boolean`
950
- - `defaultOpen?: boolean`
951
- - `onOpenChange?: ((open: boolean, details: ChangeDetails) => void)`
1851
+ - `[(open)]: boolean`: Whether it is open, when the caller holds it.
1852
+ - `defaultOpen?: boolean`: Whether it starts open, when the caller does not hold `open`. Read once.
952
1853
  - `disabled?: boolean`: The trigger cannot be pressed; a submenu's is passed over.
953
1854
  - `loop?: boolean`: Whether the arrows go round from the last item to the first. Default: they do.
954
- - `modal?: boolean`: Holds the page while the menu is open: its scroll is locked, and a press outside closes the menu and reaches nothing. Default: it does not. Not for a submenu.
1855
+ - `modal?: boolean`: Holds the page while the menu is open. Not for a submenu.
1856
+ - `(openChanged): { open: boolean; details: ChangeDetails }`: Heard as it is about to open or close: `details.cancel()` keeps it as it was.
1857
+
1858
+ Each part, and its own props:
1859
+
1860
+ - `[kuiMenu]` is `KuiMenu`. `exportAs: "kuiMenu"`. `kuiContextMenu` in place of `kuiMenu` is a menu for an area of the page, opened at the pointer: its trigger is `kuiContextMenuTrigger`, its other parts the menu's. Its props are above.
1861
+ - `[kuiMenuTrigger]` is `KuiMenuTrigger`.
1862
+ - `[kuiMenuPortal]` is `KuiMenuPortal`. Structural: written `*kuiMenuPortal`. Draws what it holds at the end of `<body>`, or in the container a `PortalProvider` names.
1863
+ - `[kuiMenuPositioner]` is `KuiMenuPositioner`. Takes the positioner options ("Positioner options", above).
1864
+ - `[kuiMenuPopup]` is `KuiMenuPopup`.
1865
+ - `[kuiMenuArrow]` is `KuiMenuArrow`.
1866
+ - `[kuiMenuItem]` is `KuiMenuItem`.
1867
+ - `disabled?: boolean`: Disables this item: it cannot be pressed, and the arrows pass over it.
1868
+ - `label?: string`: What typing matches; the item's text when left out.
1869
+ - `closeOnClick?: boolean`: Whether choosing the item closes the menu. Default: it does.
1870
+ - `a[kuiMenuLinkItem]` is `KuiMenuLinkItem`. `<a kuiMenuLinkItem href="…">`: an item that is a link.
1871
+ - `disabled?: boolean`: Disables this item: it cannot be pressed, and the arrows pass over it.
1872
+ - `label?: string`: What typing matches; the item's text when left out.
1873
+ - `closeOnClick?: boolean`: Whether choosing the item closes the menu. Default: it does.
1874
+ - `[kuiMenuGroup]` is `KuiMenuGroup`. Items that belong together, named by their label.
1875
+ - `[kuiMenuGroupLabel]` is `KuiMenuGroupLabel`. Names the group it is in. With no group around it, it is plain text.
1876
+ - `[kuiMenuSeparator]` is `KuiMenuSeparator`. A line between items.
1877
+ - `[kuiMenuCheckboxItem]` is `KuiMenuCheckboxItem`. `exportAs: "kuiMenuCheckboxItem"`.
1878
+ - `[(checked)]: boolean`: Whether the item is checked, when the caller holds it.
1879
+ - `defaultChecked?: boolean`: Whether the item starts checked, when the caller does not hold `checked`. Read once.
1880
+ - `disabled?: boolean`: Disables this item: it cannot be pressed, and the arrows pass over it.
1881
+ - `label?: string`: What typing matches; the item's text when left out.
1882
+ - `closeOnClick?: boolean`: Whether choosing the item closes the menu. Default: it does not.
1883
+ - `(checkedChanged): { checked: boolean; details: ChangeDetails }`: Heard as the item is about to be checked or unchecked: `details.cancel()` keeps it as it was.
1884
+ - `[kuiMenuCheckboxItemIndicator]` is `KuiMenuCheckboxItemIndicator`. Structural: written `*kuiMenuCheckboxItemIndicator`. `<span *kuiMenuCheckboxItemIndicator>`: in the page while its item is checked.
1885
+ - `[kuiMenuRadioGroup]` is `KuiMenuRadioGroup`. `exportAs: "kuiMenuRadioGroup"`. Generic: `<Value = unknown>`.
1886
+ - `[(value)]: Value | null`: The chosen value; `null` is "none".
1887
+ - `defaultValue?: NoInfer<Value> | null`: The value it starts with, when the caller does not hold `value`. Read once.
1888
+ - `disabled?: boolean`: Disables every item of the group.
1889
+ - `(valueChanged): { value: Value; details: ChangeDetails }`: Told an item's own value, never `null`: a press chooses, and nothing takes the choice back.
1890
+ - `[kuiMenuRadioItem]` is `KuiMenuRadioItem`.
1891
+ - `value: unknown`: Required. What the radio group's value is while this item is the chosen one.
1892
+ - `disabled?: boolean`: Disables this item: it cannot be pressed, and the arrows pass over it.
1893
+ - `label?: string`: What typing matches; the item's text when left out.
1894
+ - `closeOnClick?: boolean`: Whether choosing the item closes the menu. Default: it does not.
1895
+ - `[kuiMenuRadioItemIndicator]` is `KuiMenuRadioItemIndicator`. Structural: written `*kuiMenuRadioItemIndicator`. `<span *kuiMenuRadioItemIndicator>`: in the page while its item is the chosen one.
1896
+ - `[kuiMenuSubmenuRoot]` is `KuiMenuSubmenuRoot`. `exportAs: "kuiMenuSubmenuRoot"`. A menu that one of this menu's items opens. Its trigger is `kuiMenuSubmenuTrigger`.
1897
+ - `[(open)]: boolean`: Whether it is open, when the caller holds it.
1898
+ - `defaultOpen?: boolean`: Whether it starts open, when the caller does not hold `open`. Read once.
1899
+ - `disabled?: boolean`: The trigger cannot be pressed; a submenu's is passed over.
1900
+ - `loop?: boolean`: Whether the arrows go round from the last item to the first. Default: they do.
1901
+ - `modal?: boolean`: Holds the page while the menu is open. Not for a submenu.
1902
+ - `(openChanged): { open: boolean; details: ChangeDetails }`: Heard as it is about to open or close: `details.cancel()` keeps it as it was.
1903
+ - `[kuiMenuSubmenuTrigger]` is `KuiMenuSubmenuTrigger`. On the item of a menu that opens the submenu around it (`kuiMenuSubmenuRoot`).
955
1904
 
956
1905
  Attributes and CSS variables, by part:
957
1906
 
@@ -961,7 +1910,7 @@ Attributes and CSS variables, by part:
961
1910
  - positioner: Places the menu against its trigger. It carries the geometry.
962
1911
  - `data-open`: Present when it is open.
963
1912
  - `data-closed`: Present when it is closed.
964
- - `data-side="top | right | bottom | left"`: The side of the anchor it is on, after any flip.
1913
+ - `data-side="top | right | bottom | left | inline-start | inline-end"`: The side of the anchor it is on, after any flip. Asked for as `inline-start` or `inline-end`, it says one of those two when it is beside its anchor.
965
1914
  - `data-align="start | center | end"`: How it is aligned with the anchor.
966
1915
  - `--anchor-width`: The anchor's width.
967
1916
  - `--anchor-height`: The anchor's height.
@@ -973,10 +1922,10 @@ Attributes and CSS variables, by part:
973
1922
  - `data-closed`: Present when it is closed.
974
1923
  - `data-starting-style`: Present for the first style of its entrance: what it animates in from.
975
1924
  - `data-ending-style`: Present through its exit: what it animates out to. It leaves the page when the motion ends.
976
- - `data-side="top | right | bottom | left"`: The side of the anchor it is on, after any flip.
1925
+ - `data-side="top | right | bottom | left | inline-start | inline-end"`: The side of the anchor it is on, after any flip. Asked for as `inline-start` or `inline-end`, it says one of those two when it is beside its anchor.
977
1926
  - `data-align="start | center | end"`: How it is aligned with the anchor.
978
1927
  - arrow: An element that points at the trigger.
979
- - `data-side="top | right | bottom | left"`: The side of the anchor it is on, after any flip.
1928
+ - `data-side="top | right | bottom | left | inline-start | inline-end"`: The side of the anchor it is on, after any flip. Asked for as `inline-start` or `inline-end`, it says one of those two when it is beside its anchor.
980
1929
  - `data-align="start | center | end"`: How it is aligned with the anchor.
981
1930
  - `data-uncentered`: Present when the arrow cannot sit at the trigger's centre.
982
1931
  - item: An action. Choosing it closes the menu.
@@ -1020,6 +1969,8 @@ Props:
1020
1969
  - `disabled?: boolean`: No menu of the bar opens.
1021
1970
  - `orientation?: Orientation`: A row (the default) or a column of menus. In a column a menu opens beside its trigger.
1022
1971
 
1972
+ `[kuiMenubar]` is `KuiMenubar`. `exportAs: "kuiMenubar"`. A row of menus that work as one. Each `kuiMenu` inside it is one of its items.
1973
+
1023
1974
  Attributes and CSS variables, by part:
1024
1975
 
1025
1976
  - root: The row of menus. A menu inside it is one of its items.
@@ -1029,16 +1980,32 @@ Attributes and CSS variables, by part:
1029
1980
  ### MessageScroller
1030
1981
 
1031
1982
  ```
1032
- import { KuiMessageScroller } from "@kirana-ui/angular"
1983
+ import { KuiMessageScroller, KuiMessageScrollerViewport, KuiMessageScrollerContent, KuiMessageScrollerButton } from "@kirana-ui/angular"
1033
1984
  ```
1034
1985
 
1035
1986
  Parts: `[kuiMessageScroller]`, `[kuiMessageScrollerViewport]`, `[kuiMessageScrollerContent]`, `[kuiMessageScrollerButton]`.
1036
1987
 
1988
+ Anatomy:
1989
+
1990
+ ```
1991
+ kuiMessageScroller
1992
+ kuiMessageScrollerViewport
1993
+ kuiMessageScrollerContent
1994
+ kuiMessageScrollerButton
1995
+ ```
1996
+
1037
1997
  Props of its root:
1038
1998
 
1039
1999
  - `initial?: "bottom" | "top"`: Where it begins: at the newest message (the default), or at the first.
1040
2000
  - `threshold?: number`: How near the end counts as at it, in pixels. Default: 24.
1041
- - `onAtBottomChange?: ((atBottom: boolean, details: ChangeDetails) => void)`: Heard when it comes to the end or leaves it.
2001
+ - `(atBottomChanged): { atBottom: boolean; details: ChangeDetails }`: It came to the end, or left it.
2002
+
2003
+ Each part, and its own props:
2004
+
2005
+ - `[kuiMessageScroller]` is `KuiMessageScroller`. `exportAs: "kuiMessageScroller"`. Its props are above.
2006
+ - `[kuiMessageScrollerViewport]` is `KuiMessageScrollerViewport`.
2007
+ - `[kuiMessageScrollerContent]` is `KuiMessageScrollerContent`. The messages: what grows as one is written.
2008
+ - `[kuiMessageScrollerButton]` is `KuiMessageScrollerButton`.
1042
2009
 
1043
2010
  Attributes and CSS variables, by part:
1044
2011
 
@@ -1052,27 +2019,93 @@ Attributes and CSS variables, by part:
1052
2019
  ### Meter
1053
2020
 
1054
2021
  ```
1055
- import { KuiMeter } from "@kirana-ui/angular"
2022
+ import { KuiMeter, KuiMeterTrack, KuiMeterIndicator, KuiMeterValue, KuiMeterLabel } from "@kirana-ui/angular"
1056
2023
  ```
1057
2024
 
1058
2025
  Parts: `[kuiMeter]`, `[kuiMeterTrack]`, `[kuiMeterIndicator]`, `[kuiMeterValue]`, `[kuiMeterLabel]`.
1059
2026
 
2027
+ Anatomy:
2028
+
2029
+ ```
2030
+ kuiMeter
2031
+ kuiMeterTrack
2032
+ kuiMeterIndicator
2033
+ kuiMeterValue
2034
+ kuiMeterLabel
2035
+ ```
2036
+
2037
+ Props of its root:
2038
+
2039
+ - `value: number`: Required. The measure, between `min` and `max`. A meter always has one.
2040
+ - `min?: number`: Default 0.
2041
+ - `max?: number`: Default 100.
2042
+ - `format?: Intl.NumberFormatOptions`: How the value is written; a percentage of the range by default.
2043
+ - `locale?: string`: The language the value is written in; the page's by default.
2044
+ - `getAriaValueText?: (text: string | undefined, value: number | null) => string`: What assistive technology reads for the value, when the written value is not enough.
2045
+
2046
+ Each part, and its own props:
2047
+
2048
+ - `[kuiMeter]` is `KuiMeter`. `exportAs: "kuiMeter"`. The meter: it says the value to assistive technology. Its props are above.
2049
+ - `[kuiMeterTrack]` is `KuiMeterTrack`. The whole range.
2050
+ - `[kuiMeterIndicator]` is `KuiMeterIndicator`. The filled part: its width is the value's share of the range.
2051
+ - `[kuiMeterValue]` is `KuiMeterValue`. Shows the written value.
2052
+ - `[kuiMeterLabel]` is `KuiMeterLabel`. The meter's name.
2053
+
1060
2054
  ### NavigationMenu
1061
2055
 
1062
2056
  ```
1063
- import { KuiNavigationMenu } from "@kirana-ui/angular"
2057
+ import { KuiNavigationMenu, KuiNavigationMenuList, KuiNavigationMenuItem, KuiNavigationMenuTrigger, KuiNavigationMenuIcon, KuiNavigationMenuContent, KuiNavigationMenuLink, KuiNavigationMenuPortal, KuiNavigationMenuPositioner, KuiNavigationMenuPopup, KuiNavigationMenuViewport, KuiNavigationMenuArrow, KuiNavigationMenuBackdrop } from "@kirana-ui/angular"
1064
2058
  ```
1065
2059
 
1066
2060
  Parts: `[kuiNavigationMenu]`, `[kuiNavigationMenuList]`, `[kuiNavigationMenuItem]`, `[kuiNavigationMenuTrigger]`, `[kuiNavigationMenuIcon]`, `[kuiNavigationMenuContent]`, `[kuiNavigationMenuLink]`, `[kuiNavigationMenuPortal]`, `[kuiNavigationMenuPositioner]`, `[kuiNavigationMenuPopup]`, `[kuiNavigationMenuViewport]`, `[kuiNavigationMenuArrow]`, `[kuiNavigationMenuBackdrop]`.
1067
2061
 
2062
+ Anatomy:
2063
+
2064
+ ```
2065
+ kuiNavigationMenu
2066
+ kuiNavigationMenuList
2067
+ kuiNavigationMenuItem (repeated)
2068
+ kuiNavigationMenuTrigger
2069
+ kuiNavigationMenuIcon
2070
+ *kuiNavigationMenuContent
2071
+ kuiNavigationMenuLink (repeated)
2072
+ kuiNavigationMenuLink (repeated, as above)
2073
+ kuiNavigationMenuLink (repeated, as above)
2074
+ *kuiNavigationMenuPortal
2075
+ kuiNavigationMenuPositioner
2076
+ kuiNavigationMenuPopup
2077
+ kuiNavigationMenuViewport
2078
+ kuiNavigationMenuArrow
2079
+ kuiNavigationMenuBackdrop
2080
+ ```
2081
+
1068
2082
  Props of its root:
1069
2083
 
1070
- - `value?: Value | null`: The item whose content is shown; `null` is "none".
1071
- - `defaultValue?: Value | null`
1072
- - `onValueChange?: ((value: Value | null, details: ChangeDetails) => void)`
2084
+ - `[(value)]: Value | null`: The item whose content is shown; `null` is "none".
2085
+ - `defaultValue?: NoInfer<Value> | null`: The item whose content it starts with, when the caller does not hold `value`. Read once.
1073
2086
  - `delay?: number`: How long the pointer rests on a trigger before its content shows, in milliseconds.
1074
2087
  - `closeDelay?: number`: How long after the pointer leaves the content goes, in milliseconds.
1075
- - `orientation?: Orientation`
2088
+ - `orientation?: Orientation`: Whether the triggers are laid out across (the default) or down: the arrows that move between them follow.
2089
+ - `(valueChanged): { value: Value | null; details: ChangeDetails }`: Heard as another item's content is about to show, or none: `details.cancel()` keeps the value as it was.
2090
+
2091
+ Each part, and its own props:
2092
+
2093
+ - `[kuiNavigationMenu]` is `KuiNavigationMenu`. `exportAs: "kuiNavigationMenu"`. Generic: `<Value = unknown>`. Its props are above.
2094
+ - `[kuiNavigationMenuList]` is `KuiNavigationMenuList`.
2095
+ - `[kuiNavigationMenuItem]` is `KuiNavigationMenuItem`. On an item's `<li>`. `value` tells it from the others; an item that is given none makes its own.
2096
+ - `value?: unknown`: What tells this item from the others: the menu's `value` while its content is shown. An item that is given none makes its own.
2097
+ - `[kuiNavigationMenuTrigger]` is `KuiNavigationMenuTrigger`.
2098
+ - `[kuiNavigationMenuIcon]` is `KuiNavigationMenuIcon`.
2099
+ - `[kuiNavigationMenuContent]` is `KuiNavigationMenuContent`. Structural: written `*kuiNavigationMenuContent`. `<div *kuiNavigationMenuContent>`: an item's content, drawn in `kuiNavigationMenuViewport` while it is shown.
2100
+ - `[kuiNavigationMenuLink]` is `KuiNavigationMenuLink`.
2101
+ - `active?: boolean`: The link is the page the reader is on.
2102
+ - `closeOnClick?: boolean`: Whether following it closes the menu. Default: it does.
2103
+ - `[kuiNavigationMenuPortal]` is `KuiNavigationMenuPortal`. Structural: written `*kuiNavigationMenuPortal`. Draws what it holds at the end of `<body>`, or in the container a `PortalProvider` names.
2104
+ - `[kuiNavigationMenuPositioner]` is `KuiNavigationMenuPositioner`. Takes the positioner options ("Positioner options", above).
2105
+ - `[kuiNavigationMenuPopup]` is `KuiNavigationMenuPopup`.
2106
+ - `[kuiNavigationMenuViewport]` is `KuiNavigationMenuViewport`. Where the contents are drawn, inside the popup.
2107
+ - `[kuiNavigationMenuArrow]` is `KuiNavigationMenuArrow`.
2108
+ - `[kuiNavigationMenuBackdrop]` is `KuiNavigationMenuBackdrop`.
1076
2109
 
1077
2110
  Attributes and CSS variables, by part:
1078
2111
 
@@ -1095,7 +2128,7 @@ Attributes and CSS variables, by part:
1095
2128
  - positioner: Places the popup against the open item's trigger. It carries the geometry.
1096
2129
  - `data-open`: Present when it is open.
1097
2130
  - `data-closed`: Present when it is closed.
1098
- - `data-side="top | right | bottom | left"`: The side of the anchor it is on, after any flip.
2131
+ - `data-side="top | right | bottom | left | inline-start | inline-end"`: The side of the anchor it is on, after any flip. Asked for as `inline-start` or `inline-end`, it says one of those two when it is beside its anchor.
1099
2132
  - `data-align="start | center | end"`: How it is aligned with the anchor.
1100
2133
  - `--anchor-width`: The anchor's width.
1101
2134
  - `--anchor-height`: The anchor's height.
@@ -1109,12 +2142,12 @@ Attributes and CSS variables, by part:
1109
2142
  - `data-closed`: Present when it is closed.
1110
2143
  - `data-starting-style`: Present for the first style of its entrance: what it animates in from.
1111
2144
  - `data-ending-style`: Present through its exit: what it animates out to. It leaves the page when the motion ends.
1112
- - `data-side="top | right | bottom | left"`: The side of the anchor it is on, after any flip.
2145
+ - `data-side="top | right | bottom | left | inline-start | inline-end"`: The side of the anchor it is on, after any flip. Asked for as `inline-start` or `inline-end`, it says one of those two when it is beside its anchor.
1113
2146
  - `data-align="start | center | end"`: How it is aligned with the anchor.
1114
2147
  - `--popup-width`: The open content's width.
1115
2148
  - `--popup-height`: The open content's height.
1116
2149
  - arrow: An element that points at the open item's trigger.
1117
- - `data-side="top | right | bottom | left"`: The side of the anchor it is on, after any flip.
2150
+ - `data-side="top | right | bottom | left | inline-start | inline-end"`: The side of the anchor it is on, after any flip. Asked for as `inline-start` or `inline-end`, it says one of those two when it is beside its anchor.
1118
2151
  - `data-align="start | center | end"`: How it is aligned with the anchor.
1119
2152
  - `data-uncentered`: Present when the arrow cannot sit at the trigger's centre.
1120
2153
  - backdrop: An element behind the popup, for a design that dims the page.
@@ -1126,19 +2159,27 @@ Attributes and CSS variables, by part:
1126
2159
  ### NumberField
1127
2160
 
1128
2161
  ```
1129
- import { KuiNumberField } from "@kirana-ui/angular"
2162
+ import { KuiNumberField, KuiNumberFieldGroup, KuiNumberFieldInput, KuiNumberFieldIncrement, KuiNumberFieldDecrement } from "@kirana-ui/angular"
1130
2163
  ```
1131
2164
 
1132
2165
  Parts: `[kuiNumberField]`, `[kuiNumberFieldGroup]`, `[kuiNumberFieldInput]`, `[kuiNumberFieldIncrement]`, `[kuiNumberFieldDecrement]`.
1133
2166
 
2167
+ Anatomy:
2168
+
2169
+ ```
2170
+ kuiNumberField
2171
+ kuiNumberFieldGroup
2172
+ kuiNumberFieldInput
2173
+ kuiNumberFieldIncrement
2174
+ kuiNumberFieldDecrement
2175
+ ```
2176
+
1134
2177
  Props of its root:
1135
2178
 
1136
- - `value?: number | null`: The number; `null` is "none".
1137
- - `defaultValue?: number | null`
1138
- - `onValueChange?: ((value: number | null, details: ChangeDetails) => void)`
1139
- - `onValueCommitted?: ((value: number | null, details: ChangeDetails) => void)`: Heard once a change is done: focus left the input, a key or a button stepped it.
1140
- - `min?: number`
1141
- - `max?: number`
2179
+ - `[(value)]: number | null`: The number; `null` is "none".
2180
+ - `defaultValue?: number | null`: The value it starts with, when the caller does not hold `value`. Read once.
2181
+ - `min?: number`: The least the number may be.
2182
+ - `max?: number`: The most the number may be.
1142
2183
  - `step?: number`: What the buttons and the arrows move by. Default 1.
1143
2184
  - `smallStep?: number`: With Alt held. Default 0.1.
1144
2185
  - `largeStep?: number`: With Shift held. Default 10.
@@ -1146,11 +2187,21 @@ Props of its root:
1146
2187
  - `allowWheelScrub?: boolean`: The wheel steps it while the pointer is over the input and focus is in it.
1147
2188
  - `format?: Intl.NumberFormatOptions`: How the number is written.
1148
2189
  - `locale?: string`: The language it is written in; the page's by default.
1149
- - `disabled?: boolean`
1150
- - `readOnly?: boolean`
1151
- - `required?: boolean`
2190
+ - `disabled?: boolean`: Disabled: it cannot be changed.
2191
+ - `readOnly?: boolean`: Shown as it is, focusable, not changeable.
2192
+ - `required?: boolean`: Needed: in a `Field`, leaving it empty is then invalid.
1152
2193
  - `name?: string`: With a name, the number is submitted with the form around it.
1153
2194
  - `form?: string`: The id of the form the control belongs to, when it is not inside it.
2195
+ - `(valueChanged): { value: number | null; details: ChangeDetails }`: Heard as the number is about to change, typed or stepped: `details.cancel()` keeps it as it was.
2196
+ - `(valueCommitted): { value: number | null; details: ChangeDetails }`: A change that is done: focus left the input, a key or a button stepped it.
2197
+
2198
+ Each part, and its own props:
2199
+
2200
+ - `[kuiNumberField]` is `KuiNumberField`. `exportAs: "kuiNumberField"`. On the element that holds the field's parts. `[(value)]` is the number, `null` for none. With a name, it draws the hidden input a form reads. Its props are above.
2201
+ - `[kuiNumberFieldGroup]` is `KuiNumberFieldGroup`.
2202
+ - `[kuiNumberFieldInput]` is `KuiNumberFieldInput`.
2203
+ - `[kuiNumberFieldIncrement]` is `KuiNumberFieldIncrement`.
2204
+ - `[kuiNumberFieldDecrement]` is `KuiNumberFieldDecrement`.
1154
2205
 
1155
2206
  Attributes and CSS variables, by part:
1156
2207
 
@@ -1208,22 +2259,43 @@ Attributes and CSS variables, by part:
1208
2259
  ### Otp
1209
2260
 
1210
2261
  ```
1211
- import { KuiOtp } from "@kirana-ui/angular"
2262
+ import { KuiOtp, KuiOtpInput, KuiOtpGroup, KuiOtpSlot, KuiOtpSeparator, KuiOtpCaret } from "@kirana-ui/angular"
1212
2263
  ```
1213
2264
 
1214
2265
  Parts: `[kuiOtp]`, `input[kuiOtpInput]`, `[kuiOtpGroup]`, `[kuiOtpSlot]`, `[kuiOtpSeparator]`, `[kuiOtpCaret]`.
1215
2266
 
2267
+ Anatomy:
2268
+
2269
+ ```
2270
+ kuiOtp
2271
+ input[kuiOtpInput]
2272
+ kuiOtpGroup (repeated)
2273
+ kuiOtpSlot (repeated)
2274
+ *kuiOtpCaret
2275
+ kuiOtpSeparator (repeated)
2276
+ ```
2277
+
1216
2278
  Props of its root:
1217
2279
 
1218
2280
  - `length?: number`: How many characters the code has. Default: 6.
1219
- - `value?: string`
1220
- - `defaultValue?: string`
1221
- - `onValueChange?: ((value: string, details: ChangeDetails) => void)`
1222
- - `onComplete?: ((value: string) => void)`: Every character is in: the moment to send the code.
2281
+ - `[(value)]: string`: The characters typed so far, when the caller holds them.
2282
+ - `defaultValue?: string`: The characters it starts with, when the caller does not hold `value`. Read once.
1223
2283
  - `mode?: "numeric" | "alphanumeric" | "text"`: What a character may be. Default: `numeric`.
1224
- - `disabled?: boolean`
2284
+ - `disabled?: boolean`: Disabled: it cannot be changed.
1225
2285
  - `name?: string`: With a name, the code is submitted with the form around it.
1226
2286
  - `form?: string`: The id of the form the input belongs to, when it is not inside it.
2287
+ - `(valueChanged): { value: string; details: ChangeDetails }`: Heard as the characters are about to change: `details.cancel()` keeps them as they were.
2288
+ - `(completed): string`: Every character is in: the moment to send the code.
2289
+
2290
+ Each part, and its own props:
2291
+
2292
+ - `[kuiOtp]` is `KuiOtp`. `exportAs: "kuiOtp"`. Its props are above.
2293
+ - `input[kuiOtpInput]` is `KuiOtpInput`. `<input kuiOtpInput>`: the one input the code is typed in.
2294
+ - `[kuiOtpGroup]` is `KuiOtpGroup`. Cells that are drawn together.
2295
+ - `[kuiOtpSlot]` is `KuiOtpSlot`. One cell. It writes its character before whatever is inside it (a caret), and leaves that alone.
2296
+ - `index: number`: Required. Which character of the code it shows, from 0.
2297
+ - `[kuiOtpSeparator]` is `KuiOtpSeparator`. A mark between groups of cells.
2298
+ - `[kuiOtpCaret]` is `KuiOtpCaret`. Structural: written `*kuiOtpCaret`. `<div *kuiOtpCaret>`: in its cell while the cell is the active one and empty.
1227
2299
 
1228
2300
  Attributes and CSS variables, by part:
1229
2301
 
@@ -1242,21 +2314,42 @@ Attributes and CSS variables, by part:
1242
2314
  ### Pagination
1243
2315
 
1244
2316
  ```
1245
- import { KuiPagination } from "@kirana-ui/angular"
2317
+ import { KuiPagination, KuiPaginationItems, KuiPaginationItem, KuiPaginationEllipsis, KuiPaginationPrevious, KuiPaginationNext } from "@kirana-ui/angular"
1246
2318
  ```
1247
2319
 
1248
2320
  Parts: `[kuiPagination]`, `[kuiPaginationItems]`, `[kuiPaginationItem]`, `[kuiPaginationEllipsis]`, `[kuiPaginationPrevious]`, `[kuiPaginationNext]`.
1249
2321
 
2322
+ Anatomy:
2323
+
2324
+ ```
2325
+ kuiPagination
2326
+ *kuiPaginationItems
2327
+ kuiPaginationItem (repeated)
2328
+ kuiPaginationEllipsis (repeated)
2329
+ kuiPaginationPrevious
2330
+ kuiPaginationNext
2331
+ ```
2332
+
1250
2333
  Props of its root:
1251
2334
 
1252
- - `page?: number`: The page shown, from 1.
1253
- - `defaultPage?: number`
1254
- - `onPageChange?: ((page: number, details: ChangeDetails) => void)`
1255
- - `count: number`: How many items there are in all.
2335
+ - `[(page)]: number`: The page shown, from 1.
2336
+ - `defaultPage?: number`: The page it starts at, when the caller does not hold `page`. Read once.
2337
+ - `count: number`: Required. How many items there are in all.
1256
2338
  - `pageSize?: number`: How many items a page holds. Default 10.
1257
2339
  - `siblingCount?: number`: How many pages are listed each side of the one shown. Default 1.
1258
2340
  - `boundaryCount?: number`: How many pages are always listed at each end. Default 1.
1259
- - `disabled?: boolean`
2341
+ - `disabled?: boolean`: Disabled: no page can be gone to.
2342
+ - `(pageChanged): { page: number; details: ChangeDetails }`: Heard as another page is about to be shown: `details.cancel()` keeps the page as it was.
2343
+
2344
+ Each part, and its own props:
2345
+
2346
+ - `[kuiPagination]` is `KuiPagination`. `exportAs: "kuiPagination"`. On a `<nav>`. `[(page)]` is the page shown, from 1. Its props are above.
2347
+ - `[kuiPaginationItems]` is `KuiPaginationItems`. Structural: written `*kuiPaginationItems`. Its template is given the entry: `let entry` is a `PaginationEntry`. `<ng-container *kuiPaginationItems="let entry">`: once for each piece of the row, a page or the mark for pages left out.
2348
+ - `[kuiPaginationItem]` is `KuiPaginationItem`.
2349
+ - `page: number`: Required. The page it goes to, from 1.
2350
+ - `[kuiPaginationEllipsis]` is `KuiPaginationEllipsis`. The mark for pages left out of the row.
2351
+ - `[kuiPaginationPrevious]` is `KuiPaginationPrevious`.
2352
+ - `[kuiPaginationNext]` is `KuiPaginationNext`.
1260
2353
 
1261
2354
  Attributes and CSS variables, by part:
1262
2355
 
@@ -1273,16 +2366,40 @@ Attributes and CSS variables, by part:
1273
2366
  ### Popover
1274
2367
 
1275
2368
  ```
1276
- import { KuiPopover } from "@kirana-ui/angular"
2369
+ import { KuiPopover, KuiPopoverTrigger, KuiPopoverPortal, KuiPopoverPositioner, KuiPopoverPopup, KuiPopoverTitle, KuiPopoverDescription, KuiPopoverClose } from "@kirana-ui/angular"
1277
2370
  ```
1278
2371
 
1279
2372
  Parts: `[kuiPopover]`, `[kuiPopoverTrigger]`, `[kuiPopoverPortal]`, `[kuiPopoverPositioner]`, `[kuiPopoverPopup]`, `[kuiPopoverTitle]`, `[kuiPopoverDescription]`, `[kuiPopoverClose]`.
1280
2373
 
2374
+ Anatomy:
2375
+
2376
+ ```
2377
+ kuiPopover
2378
+ kuiPopoverTrigger
2379
+ *kuiPopoverPortal
2380
+ kuiPopoverPositioner
2381
+ kuiPopoverPopup
2382
+ kuiPopoverTitle
2383
+ kuiPopoverDescription
2384
+ kuiPopoverClose
2385
+ ```
2386
+
1281
2387
  Props of its root:
1282
2388
 
1283
- - `open?: boolean`
1284
- - `defaultOpen?: boolean`
1285
- - `onOpenChange?: ((open: boolean, details: ChangeDetails) => void)`
2389
+ - `[(open)]: boolean`: Whether it is open, when the caller holds it.
2390
+ - `defaultOpen?: boolean`: Whether it starts open, when the caller does not hold `open`. Read once.
2391
+ - `(openChanged): { open: boolean; details: ChangeDetails }`: Heard as it is about to open or close: `details.cancel()` keeps it as it was.
2392
+
2393
+ Each part, and its own props:
2394
+
2395
+ - `[kuiPopover]` is `KuiPopover`. `exportAs: "kuiPopover"`. Holds the popover: whether it is open. Its props are above.
2396
+ - `[kuiPopoverTrigger]` is `KuiPopoverTrigger`.
2397
+ - `[kuiPopoverPortal]` is `KuiPopoverPortal`. Structural: written `*kuiPopoverPortal`. Draws what it holds at the end of `<body>`, or in the container a `PortalProvider` names.
2398
+ - `[kuiPopoverPositioner]` is `KuiPopoverPositioner`. Takes the positioner options ("Positioner options", above).
2399
+ - `[kuiPopoverPopup]` is `KuiPopoverPopup`.
2400
+ - `[kuiPopoverTitle]` is `KuiPopoverTitle`. The heading that names the popover.
2401
+ - `[kuiPopoverDescription]` is `KuiPopoverDescription`. The text that describes the popover.
2402
+ - `[kuiPopoverClose]` is `KuiPopoverClose`. A button that closes the popover.
1286
2403
 
1287
2404
  Attributes and CSS variables, by part:
1288
2405
 
@@ -1291,7 +2408,7 @@ Attributes and CSS variables, by part:
1291
2408
  - positioner: Places the popup against the trigger. It carries the geometry.
1292
2409
  - `data-open`: Present when it is open.
1293
2410
  - `data-closed`: Present when it is closed.
1294
- - `data-side="top | right | bottom | left"`: The side of the anchor it is on, after any flip.
2411
+ - `data-side="top | right | bottom | left | inline-start | inline-end"`: The side of the anchor it is on, after any flip. Asked for as `inline-start` or `inline-end`, it says one of those two when it is beside its anchor.
1295
2412
  - `data-align="start | center | end"`: How it is aligned with the anchor.
1296
2413
  - `--anchor-width`: The anchor's width.
1297
2414
  - `--anchor-height`: The anchor's height.
@@ -1303,31 +2420,43 @@ Attributes and CSS variables, by part:
1303
2420
  - `data-closed`: Present when it is closed.
1304
2421
  - `data-starting-style`: Present for the first style of its entrance: what it animates in from.
1305
2422
  - `data-ending-style`: Present through its exit: what it animates out to. It leaves the page when the motion ends.
1306
- - `data-side="top | right | bottom | left"`: The side of the anchor it is on, after any flip.
2423
+ - `data-side="top | right | bottom | left | inline-start | inline-end"`: The side of the anchor it is on, after any flip. Asked for as `inline-start` or `inline-end`, it says one of those two when it is beside its anchor.
1307
2424
  - `data-align="start | center | end"`: How it is aligned with the anchor.
1308
2425
 
1309
- ### PortalProvider
2426
+ ### Progress
1310
2427
 
1311
2428
  ```
1312
- import { KuiPortalProvider } from "@kirana-ui/angular"
2429
+ import { KuiProgress, KuiProgressTrack, KuiProgressIndicator, KuiProgressValue, KuiProgressLabel } from "@kirana-ui/angular"
1313
2430
  ```
1314
2431
 
1315
- ### Progress
2432
+ Parts: `[kuiProgress]`, `[kuiProgressTrack]`, `[kuiProgressIndicator]`, `[kuiProgressValue]`, `[kuiProgressLabel]`.
2433
+
2434
+ Anatomy:
1316
2435
 
1317
2436
  ```
1318
- import { KuiProgress } from "@kirana-ui/angular"
2437
+ kuiProgress
2438
+ kuiProgressTrack
2439
+ kuiProgressIndicator
2440
+ kuiProgressValue
2441
+ kuiProgressLabel
1319
2442
  ```
1320
2443
 
1321
- Parts: `[kuiProgress]`, `[kuiProgressTrack]`, `[kuiProgressIndicator]`, `[kuiProgressValue]`, `[kuiProgressLabel]`.
1322
-
1323
2444
  Props of its root:
1324
2445
 
1325
- - `value: number | null`: The value. For a progress bar, `null` is "under way, how far is not known".
2446
+ - `value: number | null`: Required. The value. For a progress bar, `null` is "under way, how far is not known".
1326
2447
  - `min?: number`: Default 0.
1327
2448
  - `max?: number`: Default 100.
1328
2449
  - `format?: Intl.NumberFormatOptions`: How the value is written; a percentage of the range by default.
1329
2450
  - `locale?: string`: The language the value is written in; the page's by default.
1330
- - `getAriaValueText?: ((text: string | undefined, value: number | null) => string)`: What assistive technology reads for the value, when the written value is not enough.
2451
+ - `getAriaValueText?: (text: string | undefined, value: number | null) => string`: What assistive technology reads for the value, when the written value is not enough.
2452
+
2453
+ Each part, and its own props:
2454
+
2455
+ - `[kuiProgress]` is `KuiProgress`. `exportAs: "kuiProgress"`. Its props are above.
2456
+ - `[kuiProgressTrack]` is `KuiProgressTrack`.
2457
+ - `[kuiProgressIndicator]` is `KuiProgressIndicator`.
2458
+ - `[kuiProgressValue]` is `KuiProgressValue`. Shows the written value.
2459
+ - `[kuiProgressLabel]` is `KuiProgressLabel`.
1331
2460
 
1332
2461
  Attributes and CSS variables, by part:
1333
2462
 
@@ -1355,16 +2484,30 @@ Attributes and CSS variables, by part:
1355
2484
  ### QrCode
1356
2485
 
1357
2486
  ```
1358
- import { KuiQrCode } from "@kirana-ui/angular"
2487
+ import { KuiQrCode, KuiQrCodeFrame, KuiQrCodePattern } from "@kirana-ui/angular"
1359
2488
  ```
1360
2489
 
1361
2490
  Parts: `[kuiQrCode]`, `[kuiQrCodeFrame]`, `[kuiQrCodePattern]`.
1362
2491
 
2492
+ Anatomy:
2493
+
2494
+ ```
2495
+ kuiQrCode
2496
+ kuiQrCodeFrame
2497
+ kuiQrCodePattern
2498
+ ```
2499
+
1363
2500
  Props of its root:
1364
2501
 
1365
- - `value: string`: What the code says: a link, a text. Written as UTF-8.
2502
+ - `value?: string`: What the code says: a link, a text.
1366
2503
  - `correction?: QrCorrection`: How much of it may be lost and still be read. Default: `"M"`.
1367
2504
 
2505
+ Each part, and its own props:
2506
+
2507
+ - `[kuiQrCode]` is `KuiQrCode`. `exportAs: "kuiQrCode"`. Its props are above.
2508
+ - `[kuiQrCodeFrame]` is `KuiQrCodeFrame`. `<svg kuiQrCodeFrame>`: the drawing.
2509
+ - `[kuiQrCodePattern]` is `KuiQrCodePattern`. `<svg:path kuiQrCodePattern>`: the dark modules.
2510
+
1368
2511
  Attributes and CSS variables, by part:
1369
2512
 
1370
2513
  - root: What holds the code.
@@ -1373,21 +2516,37 @@ Attributes and CSS variables, by part:
1373
2516
  ### RadioGroup
1374
2517
 
1375
2518
  ```
1376
- import { KuiRadioGroup } from "@kirana-ui/angular"
2519
+ import { KuiRadioGroup, KuiRadioGroupItem, KuiRadioGroupIndicator } from "@kirana-ui/angular"
1377
2520
  ```
1378
2521
 
1379
2522
  Parts: `[kuiRadioGroup]`, `[kuiRadioGroupItem]`, `[kuiRadioGroupIndicator]`.
1380
2523
 
2524
+ Anatomy:
2525
+
2526
+ ```
2527
+ kuiRadioGroup
2528
+ kuiRadioGroupItem (repeated)
2529
+ *kuiRadioGroupIndicator
2530
+ ```
2531
+
1381
2532
  Props of its root:
1382
2533
 
1383
- - `value?: Value | null`: The chosen value; `null` is "none".
1384
- - `defaultValue?: Value | null`
1385
- - `onValueChange?: ((value: Value | null, details: ChangeDetails) => void)`: `null` only when a form's reset takes the group back to "none".
1386
- - `disabled?: boolean`
1387
- - `readOnly?: boolean`
1388
- - `required?: boolean`
2534
+ - `[(value)]: Value | null`: The chosen value; `null` is "none".
2535
+ - `defaultValue?: NoInfer<Value> | null`: The value it starts with, when the caller does not hold `value`. Read once.
2536
+ - `disabled?: boolean`: Disables every item of the group.
2537
+ - `readOnly?: boolean`: Shown as it is, focusable, not changeable.
2538
+ - `required?: boolean`: Needed: in a `Field`, choosing none is then invalid.
1389
2539
  - `name?: string`: With a name, the chosen value is submitted with the form around the group.
1390
2540
  - `form?: string`: The id of the form the control belongs to, when it is not inside it.
2541
+ - `(valueChanged): { value: Value | null; details: ChangeDetails }`: The change with why it happened; `details.cancel()` keeps the value.
2542
+
2543
+ Each part, and its own props:
2544
+
2545
+ - `[kuiRadioGroup]` is `KuiRadioGroup`. `exportAs: "kuiRadioGroup"`. Generic: `<Value = unknown>`. Its props are above.
2546
+ - `[kuiRadioGroupItem]` is `KuiRadioGroupItem`. On an item's element. It draws the hidden native radio inside it, which a form and a label reach.
2547
+ - `value: unknown`: Required. What the group's value is while this item is the chosen one.
2548
+ - `disabled?: boolean`: Disables this item: it cannot be chosen.
2549
+ - `[kuiRadioGroupIndicator]` is `KuiRadioGroupIndicator`. Structural: written `*kuiRadioGroupIndicator`. `<span *kuiRadioGroupIndicator>`: in the page while its item is the chosen one.
1391
2550
 
1392
2551
  Attributes and CSS variables, by part:
1393
2552
 
@@ -1413,17 +2572,35 @@ Attributes and CSS variables, by part:
1413
2572
  ### Resizable
1414
2573
 
1415
2574
  ```
1416
- import { KuiResizable } from "@kirana-ui/angular"
2575
+ import { KuiResizableGroup, KuiResizablePanel, KuiResizableHandle } from "@kirana-ui/angular"
1417
2576
  ```
1418
2577
 
1419
2578
  Parts: `[kuiResizableGroup]`, `[kuiResizablePanel]`, `[kuiResizableHandle]`.
1420
2579
 
2580
+ Anatomy:
2581
+
2582
+ ```
2583
+ kuiResizableGroup
2584
+ kuiResizablePanel (repeated)
2585
+ kuiResizableHandle (repeated)
2586
+ ```
2587
+
1421
2588
  Props of its root:
1422
2589
 
1423
2590
  - `orientation?: Orientation`: Whether the panels are side by side (the default) or one over the other.
1424
- - `onSizesChange?: ((sizes: number[], details: ChangeDetails) => void)`: Heard as the panels are resized: each panel's share, in the page's order, summing to 100.
1425
2591
  - `keyboardStep?: number`: How far an arrow key moves a handle, in hundredths of the group. Default: 10.
1426
- - `disabled?: boolean`
2592
+ - `disabled?: boolean`: Disabled: the handles cannot be dragged or moved with the keyboard.
2593
+ - `(sizesChanged): { sizes: number[]; details: ChangeDetails }`: Each panel's share as the panels are resized, with why.
2594
+
2595
+ Each part, and its own props:
2596
+
2597
+ - `[kuiResizableGroup]` is `KuiResizableGroup`. `exportAs: "kuiResizableGroup"`. Its props are above.
2598
+ - `[kuiResizablePanel]` is `KuiResizablePanel`.
2599
+ - `defaultSize?: number`: Its share to begin with, in hundredths of the group. Either every panel gives one or none does (they are then equal).
2600
+ - `minSize?: number`: The least it can be made. Default: 0.
2601
+ - `maxSize?: number`: The most it can be made. Default: 100.
2602
+ - `[kuiResizableHandle]` is `KuiResizableHandle`.
2603
+ - `disabled?: boolean`: Disables this handle: it cannot be dragged or moved with the keyboard.
1427
2604
 
1428
2605
  Attributes and CSS variables, by part:
1429
2606
 
@@ -1441,55 +2618,127 @@ Attributes and CSS variables, by part:
1441
2618
  ### ScrollArea
1442
2619
 
1443
2620
  ```
1444
- import { KuiScrollArea } from "@kirana-ui/angular"
2621
+ import { KuiScrollArea, KuiScrollAreaViewport, KuiScrollAreaContent, KuiScrollAreaScrollbar, KuiScrollAreaThumb, KuiScrollAreaCorner } from "@kirana-ui/angular"
1445
2622
  ```
1446
2623
 
1447
2624
  Parts: `[kuiScrollArea]`, `[kuiScrollAreaViewport]`, `[kuiScrollAreaContent]`, `[kuiScrollAreaScrollbar]`, `[kuiScrollAreaThumb]`, `[kuiScrollAreaCorner]`.
1448
2625
 
2626
+ Anatomy:
2627
+
2628
+ ```
2629
+ kuiScrollArea
2630
+ kuiScrollAreaViewport
2631
+ kuiScrollAreaContent
2632
+ *kuiScrollAreaScrollbar (repeated)
2633
+ kuiScrollAreaThumb
2634
+ *kuiScrollAreaCorner
2635
+ ```
2636
+
2637
+ Each part, and its own props:
2638
+
2639
+ - `[kuiScrollArea]` is `KuiScrollArea`. `exportAs: "kuiScrollArea"`.
2640
+ - `[kuiScrollAreaViewport]` is `KuiScrollAreaViewport`.
2641
+ - `[kuiScrollAreaContent]` is `KuiScrollAreaContent`. What is scrolled.
2642
+ - `[kuiScrollAreaScrollbar]` is `KuiScrollAreaScrollbar`. Structural: written `*kuiScrollAreaScrollbar`. `<div *kuiScrollAreaScrollbar="'horizontal'">`: in the page while there is something to scroll its way (`vertical` when no orientation is given).
2643
+ - `*kuiScrollAreaScrollbar: Orientation | ""`: The directive's own value: `*kuiScrollAreaScrollbar="…"`. Which way it scrolls: `'horizontal'`, or `'vertical'` when none is given.
2644
+ - `keepMounted?: boolean`: Written after the directive's value: `*kuiScrollAreaScrollbar="…; keepMounted: …"`. In the page even while there is nothing to scroll its way.
2645
+ - `[kuiScrollAreaThumb]` is `KuiScrollAreaThumb`.
2646
+ - `[kuiScrollAreaCorner]` is `KuiScrollAreaCorner`. Structural: written `*kuiScrollAreaCorner`. `<div *kuiScrollAreaCorner>`: in the page while both scrollbars are.
2647
+
1449
2648
  Attributes and CSS variables, by part:
1450
2649
 
1451
- - root: The area. It holds the viewport and the scrollbars.
2650
+ - root: The area. It holds the viewport and the scrollbars, which the library places against it: a design gives a scrollbar its thickness and draws it, and places nothing.
1452
2651
  - `data-has-overflow-x`: Present when there is more to see sideways.
1453
2652
  - `data-has-overflow-y`: Present when there is more to see up or down.
1454
2653
  - `data-scrolling`: Present while it is being scrolled, and a moment after.
1455
2654
  - `data-hovering`: Present while the pointer is over the area.
1456
- - `--scroll-area-corner-width`: The width of the corner: the vertical scrollbar's.
1457
- - `--scroll-area-corner-height`: The height of the corner: the horizontal scrollbar's.
2655
+ - `--scroll-area-corner-width`: The width of the corner: the vertical scrollbar's, while both scrollbars and the corner are in the page.
2656
+ - `--scroll-area-corner-height`: The height of the corner: the horizontal scrollbar's, while both scrollbars and the corner are in the page.
1458
2657
  - viewport: The element that scrolls.
1459
2658
  - `data-has-overflow-x`: Present when there is more to see sideways.
1460
2659
  - `data-has-overflow-y`: Present when there is more to see up or down.
1461
2660
  - `data-scrolling`: Present while it is being scrolled, and a moment after.
1462
- - scrollbar: A scrollbar's track. In the page while there is something to scroll its way.
2661
+ - scrollbar: A scrollbar's track, placed along its edge of the area. In the page while there is something to scroll its way.
1463
2662
  - `data-orientation="horizontal | vertical"`: Which way the scrollbar scrolls.
1464
2663
  - `data-hovering`: Present while the pointer is over the area.
1465
2664
  - `data-scrolling`: Present while the area is scrolled its way.
1466
- - thumb: The part of a scrollbar that shows where the view is, and can be dragged.
1467
- - `data-orientation="horizontal | vertical"`: Which way the scrollbar scrolls.
1468
2665
  - `--scroll-area-thumb-height`: A vertical thumb's height.
1469
2666
  - `--scroll-area-thumb-width`: A horizontal thumb's width.
2667
+ - thumb: The part of a scrollbar that shows where the view is, and can be dragged. As long as its scrollbar's variable says.
2668
+ - `data-orientation="horizontal | vertical"`: Which way the scrollbar scrolls.
1470
2669
 
1471
2670
  ### Select
1472
2671
 
1473
2672
  ```
1474
- import { KuiSelect } from "@kirana-ui/angular"
2673
+ import { KuiSelect, KuiSelectTrigger, KuiSelectValue, KuiSelectPortal, KuiSelectPositioner, KuiSelectPopup, KuiSelectList, KuiSelectScrollUpArrow, KuiSelectScrollDownArrow, KuiSelectGroup, KuiSelectGroupLabel, KuiSelectSeparator, KuiSelectItem, KuiSelectItemText, KuiSelectItemIndicator, KuiSelectInput } from "@kirana-ui/angular"
1475
2674
  ```
1476
2675
 
1477
2676
  Parts: `[kuiSelect]`, `[kuiSelectTrigger]`, `[kuiSelectValue]`, `[kuiSelectPortal]`, `[kuiSelectPositioner]`, `[kuiSelectPopup]`, `[kuiSelectList]`, `[kuiSelectScrollUpArrow]`, `[kuiSelectScrollDownArrow]`, `[kuiSelectGroup]`, `[kuiSelectGroupLabel]`, `[kuiSelectSeparator]`, `[kuiSelectItem]`, `[kuiSelectItemText]`, `[kuiSelectItemIndicator]`.
1478
2677
 
2678
+ Anatomy:
2679
+
2680
+ ```
2681
+ kuiSelect
2682
+ kuiSelectTrigger
2683
+ *kuiSelectValue
2684
+ *kuiSelectPortal
2685
+ kuiSelectPositioner
2686
+ kuiSelectPopup
2687
+ *kuiSelectScrollUpArrow
2688
+ kuiSelectList (optional)
2689
+ kuiSelectGroup (optional, repeated)
2690
+ kuiSelectGroupLabel
2691
+ kuiSelectItem (repeated)
2692
+ kuiSelectItemText
2693
+ *kuiSelectItemIndicator
2694
+ kuiSelectSeparator (repeated)
2695
+ *kuiSelectScrollDownArrow
2696
+ input[kuiSelectInput] (Angular only)
2697
+ ```
2698
+
1479
2699
  Props of its root:
1480
2700
 
1481
- - `value?: Value | null`: The chosen value; `null` is "none".
1482
- - `defaultValue?: Value | null`
1483
- - `onValueChange?: ((value: Value | null, details: ChangeDetails) => void)`
1484
- - `open?: boolean`
1485
- - `defaultOpen?: boolean`
1486
- - `onOpenChange?: ((open: boolean, details: ChangeDetails) => void)`
1487
- - `disabled?: boolean`
2701
+ - `[(value)]: Value | null`: The chosen value; `null` is "none".
2702
+ - `defaultValue?: NoInfer<Value> | null`: The value it starts with, when the caller does not hold `value`. Read once.
2703
+ - `[(open)]: boolean`: Whether the list is open, when the caller holds it.
2704
+ - `defaultOpen?: boolean`: Whether the list starts open, when the caller does not hold `open`. Read once.
2705
+ - `disabled?: boolean`: Disabled: it cannot be changed.
1488
2706
  - `required?: boolean`: In a field, "none" is then wrong.
1489
2707
  - `name?: string`: With a name, the value is submitted with the form around it.
1490
2708
  - `form?: string`: The id of the form the control belongs to, when it is not inside it.
1491
- - `items?: readonly { value: Value; label: string }[]`: The labels of the values, for the trigger to show before the list has ever been opened. Not needed for the list itself: its items are read from the markup.
1492
- - `virtualized?: ListCollection`: Every row, when only some are in the page (a virtualizer draws the ones in view). Each item is then given its `index`.
2709
+ - `items?: ItemLabels<Value>`: The values' labels: a list of values with their labels, or the labels by value.
2710
+ - `multiple?: boolean`: Several values: they are `values`, not `value`.
2711
+ - `[(values)]: readonly Value[]`: With `multiple`: the chosen values, in the order they were chosen.
2712
+ - `defaultValues?: readonly Value[]`: With `multiple`: the values it starts with, when the caller does not hold `values`. Read once.
2713
+ - `(valuesChanged): { values: Value[]; details: ChangeDetails }`: With `multiple`: heard as a value is about to be added or taken away, with the values there would then be: `details.cancel()` keeps them as they were.
2714
+ - `virtualized?: ListCollection`: Every row, when only some are in the page: each item is then given its `index`.
2715
+ - `(valueChanged): { value: Value | null; details: ChangeDetails }`: Heard as a value is about to be chosen: `details.cancel()` keeps it as it was.
2716
+ - `(openChanged): { open: boolean; details: ChangeDetails }`: Heard as the list is about to open or close: `details.cancel()` keeps it as it was.
2717
+
2718
+ Each part, and its own props:
2719
+
2720
+ - `[kuiSelect]` is `KuiSelect`. `exportAs: "kuiSelect"`. Generic: `<Value = unknown>`. Holds the select: its value and whether the list is open. Its props are above.
2721
+ - `[kuiSelectTrigger]` is `KuiSelectTrigger`.
2722
+ - `[kuiSelectValue]` is `KuiSelectValue`. Structural: written `*kuiSelectValue`. Its template is given the entry: `let entry` is a `SelectShown`. `<span kuiSelectValue>` shows the chosen value's label, or `placeholder` while nothing is chosen; with `multiple`, the chosen labels with commas between. `<span *kuiSelectValue="let shown">` draws its own content instead, with what is chosen: `shown.value` and `shown.label`, with `multiple` `shown.values` and `shown.labels`, in the items' order.
2723
+ - `placeholder?: string`: Shown while nothing is chosen.
2724
+ - `[kuiSelectPortal]` is `KuiSelectPortal`. Structural: written `*kuiSelectPortal`. Draws what it holds at the end of `<body>`, or in the container a `PortalProvider` names.
2725
+ - `[kuiSelectPositioner]` is `KuiSelectPositioner`. Takes the positioner options ("Positioner options", above).
2726
+ - `alignItemWithTrigger?: boolean`: The list opens over its trigger, the chosen item's text on the trigger's own, where there is room and unless a finger opened it.
2727
+ - `[kuiSelectPopup]` is `KuiSelectPopup`.
2728
+ - `[kuiSelectList]` is `KuiSelectList`. The items' own box inside the popup, when the popup also holds scroll arrows.
2729
+ - `[kuiSelectScrollUpArrow]` is `KuiSelectScrollUpArrow`. Structural: written `*kuiSelectScrollUpArrow`. `<div *kuiSelectScrollUpArrow>`: in the page while there is more of the list above. It scrolls the list while the pointer moves over it.
2730
+ - `[kuiSelectScrollDownArrow]` is `KuiSelectScrollDownArrow`. Structural: written `*kuiSelectScrollDownArrow`. `<div *kuiSelectScrollDownArrow>`: in the page while there is more of the list below.
2731
+ - `[kuiSelectGroup]` is `KuiSelectGroup`. Items that belong together, named by their `kuiSelectGroupLabel`.
2732
+ - `[kuiSelectGroupLabel]` is `KuiSelectGroupLabel`. Names the group it is in. With no group around it, it is plain text.
2733
+ - `[kuiSelectSeparator]` is `KuiSelectSeparator`. A line between groups.
2734
+ - `[kuiSelectItem]` is `KuiSelectItem`.
2735
+ - `value: unknown`: Required. What the select's value is while this item is chosen.
2736
+ - `disabled?: boolean`: Disables this item: it cannot be chosen, and the arrows pass over it.
2737
+ - `label?: string`: What typeahead matches and the trigger shows; the item's text when left out.
2738
+ - `index?: number`: Its place among all the rows, in a virtualized list.
2739
+ - `[kuiSelectItemText]` is `KuiSelectItemText`. The item's name: what the trigger shows once it is chosen.
2740
+ - `[kuiSelectItemIndicator]` is `KuiSelectItemIndicator`. Structural: written `*kuiSelectItemIndicator`. `<span *kuiSelectItemIndicator>`: in the page while its item is the chosen one.
2741
+ - `input[kuiSelectInput]` is `KuiSelectInput`. `<input kuiSelectInput>`: submits the value with the form around it. Angular only.
1493
2742
 
1494
2743
  Attributes and CSS variables, by part:
1495
2744
 
@@ -1497,12 +2746,12 @@ Attributes and CSS variables, by part:
1497
2746
  - `data-popup-open`: Present when the list is open.
1498
2747
  - `data-placeholder`: Present while nothing is chosen.
1499
2748
  - `data-disabled`: Present when it is disabled.
1500
- - value: The chosen value's label, or the placeholder.
2749
+ - value: The chosen value's label, or the placeholder. With several values, their labels with commas between.
1501
2750
  - `data-placeholder`: Present while nothing is chosen.
1502
2751
  - positioner: Places the list against the trigger. It carries the geometry.
1503
2752
  - `data-open`: Present when it is open.
1504
2753
  - `data-closed`: Present when it is closed.
1505
- - `data-side="top | right | bottom | left | none"`: The side of the trigger it is on, after any flip; `none` when it lies over the trigger.
2754
+ - `data-side="top | right | bottom | left | inline-start | inline-end | none"`: The side of the trigger it is on, after any flip; `none` when it lies over the trigger.
1506
2755
  - `data-align="start | center | end"`: How it is aligned with the anchor.
1507
2756
  - `--anchor-width`: The anchor's width.
1508
2757
  - `--anchor-height`: The anchor's height.
@@ -1512,13 +2761,13 @@ Attributes and CSS variables, by part:
1512
2761
  - scrollUpArrow: In the page while there is more of the list above: it scrolls the list while the pointer moves over it.
1513
2762
  - `data-direction="up | down"`: The way it scrolls the list.
1514
2763
  - `data-visible`: Present while there is more of the list its way.
1515
- - `data-side="top | right | bottom | left | none"`: The side of the trigger the list is on; `none` when it lies over the trigger.
2764
+ - `data-side="top | right | bottom | left | inline-start | inline-end | none"`: The side of the trigger the list is on; `none` when it lies over the trigger.
1516
2765
  - `data-starting-style`: Present for the first style of its entrance: what it animates in from.
1517
2766
  - `data-ending-style`: Present through its exit: what it animates out to. It leaves the page when the motion ends.
1518
2767
  - scrollDownArrow: In the page while there is more of the list below: it scrolls the list while the pointer moves over it.
1519
2768
  - `data-direction="up | down"`: The way it scrolls the list.
1520
2769
  - `data-visible`: Present while there is more of the list its way.
1521
- - `data-side="top | right | bottom | left | none"`: The side of the trigger the list is on; `none` when it lies over the trigger.
2770
+ - `data-side="top | right | bottom | left | inline-start | inline-end | none"`: The side of the trigger the list is on; `none` when it lies over the trigger.
1522
2771
  - `data-starting-style`: Present for the first style of its entrance: what it animates in from.
1523
2772
  - `data-ending-style`: Present through its exit: what it animates out to. It leaves the page when the motion ends.
1524
2773
  - popup: The list of items.
@@ -1526,10 +2775,10 @@ Attributes and CSS variables, by part:
1526
2775
  - `data-closed`: Present when it is closed.
1527
2776
  - `data-starting-style`: Present for the first style of its entrance: what it animates in from.
1528
2777
  - `data-ending-style`: Present through its exit: what it animates out to. It leaves the page when the motion ends.
1529
- - `data-side="top | right | bottom | left"`: The side of the anchor it is on, after any flip.
2778
+ - `data-side="top | right | bottom | left | inline-start | inline-end"`: The side of the anchor it is on, after any flip. Asked for as `inline-start` or `inline-end`, it says one of those two when it is beside its anchor.
1530
2779
  - `data-align="start | center | end"`: How it is aligned with the anchor.
1531
2780
  - item: One choice in the list.
1532
- - `data-selected`: Present on the chosen item.
2781
+ - `data-selected`: Present on the chosen item, or on each of several.
1533
2782
  - `data-highlighted`: Present on the item the pointer or the keyboard is on.
1534
2783
  - `data-disabled`: Present when it is disabled.
1535
2784
 
@@ -1541,7 +2790,9 @@ import { KuiSeparator } from "@kirana-ui/angular"
1541
2790
 
1542
2791
  Props:
1543
2792
 
1544
- - `orientation?: Orientation`
2793
+ - `orientation?: Orientation`: Whether the line lies across (the default) or stands upright: what a screen reader is told.
2794
+
2795
+ `[kuiSeparator]` is `KuiSeparator`. `exportAs: "kuiSeparator"`.
1545
2796
 
1546
2797
  Attributes and CSS variables, by part:
1547
2798
 
@@ -1551,30 +2802,51 @@ Attributes and CSS variables, by part:
1551
2802
  ### Slider
1552
2803
 
1553
2804
  ```
1554
- import { KuiSlider } from "@kirana-ui/angular"
2805
+ import { KuiSlider, KuiSliderValue, KuiSliderControl, KuiSliderTrack, KuiSliderIndicator, KuiSliderThumb } from "@kirana-ui/angular"
1555
2806
  ```
1556
2807
 
1557
2808
  Parts: `[kuiSlider]`, `[kuiSliderValue]`, `[kuiSliderControl]`, `[kuiSliderTrack]`, `[kuiSliderIndicator]`, `[kuiSliderThumb]`.
1558
2809
 
2810
+ Anatomy:
2811
+
2812
+ ```
2813
+ kuiSlider
2814
+ kuiSliderValue
2815
+ kuiSliderControl
2816
+ kuiSliderTrack
2817
+ kuiSliderIndicator
2818
+ kuiSliderThumb (repeated)
2819
+ ```
2820
+
1559
2821
  Props of its root:
1560
2822
 
1561
- - `value?: SliderValue`
1562
- - `defaultValue?: SliderValue`: Read once. Default `min`.
1563
- - `onValueChange?: ((value: number | number[], details: SliderChangeDetails) => void)`: Each step of a drag and each key.
1564
- - `onValueCommitted?: ((value: number | number[], details: SliderChangeDetails) => void)`: When the pointer lets go, and after each key: the value to save.
2823
+ - `[(value)]: Value`: A number for one thumb, a list for a range: what is told back is the same kind.
2824
+ - `defaultValue?: NoInfer<Value>`: Read once. Default `min`.
1565
2825
  - `min?: number`: Default 0.
1566
2826
  - `max?: number`: Default 100.
1567
2827
  - `step?: number`: Default 1.
1568
2828
  - `largeStep?: number`: What Page Up, Page Down and an arrow with Shift move by. Default 10.
1569
2829
  - `minStepsBetweenValues?: number`: How many steps two thumbs of a range stay apart. Default 0.
1570
- - `orientation?: Orientation`
1571
- - `thumbAlignment?: "center" | "edge" | "edge-client-only"`: Where a thumb is at the ends of its range. `"center"` (the default): its centre on the control's edge, so half of it lies outside. `"edge"`: its edge on the control's edge, so it stays inside. `"edge-client-only"` is the same here: nothing waits for the browser.
1572
- - `disabled?: boolean`
2830
+ - `thumbAlignment?: "center" | "edge" | "edge-client-only"`: `"edge"` keeps a thumb inside the control at the ends of its range.
2831
+ - `orientation?: "horizontal" | "vertical"`: Whether the track lies across (the default) or stands upright: the arrows that move a thumb follow.
2832
+ - `disabled?: boolean`: Disabled: it cannot be changed.
1573
2833
  - `name?: string`: With a name, each thumb's value is submitted with the form around the slider.
1574
2834
  - `form?: string`: The id of the form the control belongs to, when it is not inside it.
1575
2835
  - `format?: Intl.NumberFormatOptions`: How a value is written.
1576
2836
  - `locale?: string`: The language a value is written in; the page's by default.
1577
- - `getAriaValueText?: ((text: string, value: number, index: number) => string)`: What assistive technology reads for a thumb, when the written value is not enough.
2837
+ - `getAriaValueText?: (text: string, value: number, index: number) => string`: What assistive technology reads for a thumb, when the written value is not enough.
2838
+ - `(valueChanged): { value: SliderTold<Value>; details: SliderChangeDetails }`: Each step of a drag and each key, with why; `details.cancel()` keeps the value.
2839
+ - `(valueCommitted): { value: SliderTold<Value>; details: SliderChangeDetails }`: When the pointer lets go, and after each key.
2840
+
2841
+ Each part, and its own props:
2842
+
2843
+ - `[kuiSlider]` is `KuiSlider`. `exportAs: "kuiSlider"`. Generic: `<Value extends SliderValue = SliderValue>`. Its props are above.
2844
+ - `[kuiSliderValue]` is `KuiSliderValue`. Shows the written value.
2845
+ - `[kuiSliderControl]` is `KuiSliderControl`.
2846
+ - `[kuiSliderTrack]` is `KuiSliderTrack`.
2847
+ - `[kuiSliderIndicator]` is `KuiSliderIndicator`.
2848
+ - `[kuiSliderThumb]` is `KuiSliderThumb`. On a thumb's element. It draws the hidden input inside it, which a form reads.
2849
+ - `index?: number`: Which value of a range the thumb is, from 0. A thumb that is given none takes its place among the slider's thumbs, in the order they are written.
1578
2850
 
1579
2851
  Attributes and CSS variables, by part:
1580
2852
 
@@ -1600,7 +2872,7 @@ Attributes and CSS variables, by part:
1600
2872
  - `data-dragging`: Present while a pointer holds a thumb.
1601
2873
  - `--start-position`: With thumbs that stay inside the control: where the filled part starts, or with one thumb where it ends.
1602
2874
  - `--relative-size`: With thumbs that stay inside the control and a range: the filled part's length.
1603
- - thumb: What is dragged, and what the keyboard moves: a slider to assistive technology. Its place on the track is written on it. It holds a hidden input, which a form reads.
2875
+ - thumb: What is dragged, and what the keyboard moves: a slider to assistive technology. Its place on the track is written on it. It holds a hidden input, which a form reads. A thumb that is given no `index` is the value at its place among the slider's thumbs, in the order they are written.
1604
2876
  - `data-orientation="horizontal | vertical"`: The way the track runs.
1605
2877
  - `data-disabled`: Present when it is disabled.
1606
2878
  - `data-dragging`: Present while a pointer holds a thumb.
@@ -1610,22 +2882,34 @@ Attributes and CSS variables, by part:
1610
2882
  ### Switch
1611
2883
 
1612
2884
  ```
1613
- import { KuiSwitch } from "@kirana-ui/angular"
2885
+ import { KuiSwitch, KuiSwitchThumb } from "@kirana-ui/angular"
1614
2886
  ```
1615
2887
 
1616
2888
  Parts: `[kuiSwitch]`, `[kuiSwitchThumb]`.
1617
2889
 
2890
+ Anatomy:
2891
+
2892
+ ```
2893
+ kuiSwitch
2894
+ kuiSwitchThumb
2895
+ ```
2896
+
1618
2897
  Props of its root:
1619
2898
 
1620
- - `checked?: boolean`
2899
+ - `[(checked)]: boolean`: Whether it is checked, when the caller holds it.
1621
2900
  - `defaultChecked?: boolean`: Read once.
1622
- - `onCheckedChange?: ((checked: boolean, details: ChangeDetails) => void)`
1623
- - `disabled?: boolean`
2901
+ - `disabled?: boolean`: Disabled: it cannot be changed.
1624
2902
  - `readOnly?: boolean`: Shown as it is, focusable, not changeable.
1625
- - `required?: boolean`
2903
+ - `required?: boolean`: Needed: in a `Field`, leaving it unchecked is then invalid.
1626
2904
  - `name?: string`: With a name, the control is submitted with the form around it when it is checked.
1627
2905
  - `form?: string`: The id of the form the control belongs to, when it is not inside it.
1628
2906
  - `value?: string`: What is submitted. Default `"on"`, as a native checkbox's.
2907
+ - `(checkedChanged): { checked: boolean; details: ChangeDetails }`: The change with why it happened; `details.cancel()` keeps the value.
2908
+
2909
+ Each part, and its own props:
2910
+
2911
+ - `[kuiSwitch]` is `KuiSwitch`. `exportAs: "kuiSwitch"`. On the box's element. It draws the hidden native input inside it, which a form and a label reach. Its props are above.
2912
+ - `[kuiSwitchThumb]` is `KuiSwitchThumb`.
1629
2913
 
1630
2914
  Attributes and CSS variables, by part:
1631
2915
 
@@ -1645,17 +2929,41 @@ Attributes and CSS variables, by part:
1645
2929
  ### Tabs
1646
2930
 
1647
2931
  ```
1648
- import { KuiTabs } from "@kirana-ui/angular"
2932
+ import { KuiTabs, KuiTabsList, KuiTabsTab, KuiTabsIndicator, KuiTabsPanel } from "@kirana-ui/angular"
1649
2933
  ```
1650
2934
 
1651
2935
  Parts: `[kuiTabs]`, `[kuiTabsList]`, `[kuiTabsTab]`, `[kuiTabsIndicator]`, `[kuiTabsPanel]`.
1652
2936
 
2937
+ Anatomy:
2938
+
2939
+ ```
2940
+ kuiTabs
2941
+ kuiTabsList
2942
+ kuiTabsTab (repeated)
2943
+ kuiTabsIndicator
2944
+ *kuiTabsPanel (repeated)
2945
+ ```
2946
+
1653
2947
  Props of its root:
1654
2948
 
1655
- - `value?: Value | null`: The active tab's value; `null` is "none".
1656
- - `defaultValue?: Value | null`: Read once. Without one, the first tab that can be chosen is, once the page is there.
1657
- - `onValueChange?: ((value: Value, details: ChangeDetails) => void)`
1658
- - `orientation?: Orientation`
2949
+ - `[(value)]: Value | null`: The active tab's value; `null` is "none".
2950
+ - `defaultValue?: NoInfer<Value> | null`: Read once. Without one, the first tab that can be chosen is, once the page is there.
2951
+ - `orientation?: Orientation`: Whether the tabs are laid out across (the default) or down: the arrows that move between them follow.
2952
+ - `(valueChanged): { value: Value; details: ChangeDetails }`: The change with why it happened; `details.cancel()` keeps the value.
2953
+
2954
+ Each part, and its own props:
2955
+
2956
+ - `[kuiTabs]` is `KuiTabs`. `exportAs: "kuiTabs"`. Generic: `<Value = unknown>`. Its props are above.
2957
+ - `[kuiTabsList]` is `KuiTabsList`.
2958
+ - `activateOnFocus?: boolean`: Whether moving focus onto a tab with the arrows activates it. Default `false`.
2959
+ - `loop?: boolean`: Whether the arrows wrap from the last tab to the first. Default `true`.
2960
+ - `[kuiTabsTab]` is `KuiTabsTab`.
2961
+ - `value: unknown`: Required. What the tabs' value is while this tab is the active one.
2962
+ - `disabled?: boolean`: Disables this tab: it cannot be chosen.
2963
+ - `[kuiTabsIndicator]` is `KuiTabsIndicator`.
2964
+ - `[kuiTabsPanel]` is `KuiTabsPanel`. Structural: written `*kuiTabsPanel`. `<div *kuiTabsPanel="'account'">`: in the page while its tab is the active one; `*kuiTabsPanel="'account'; keepMounted: true"` keeps it, hidden.
2965
+ - `*kuiTabsPanel: unknown`: The directive's own value: `*kuiTabsPanel="…"`. Required. The value of the tab this is the panel of.
2966
+ - `keepMounted?: boolean`: Written after the directive's value: `*kuiTabsPanel="…; keepMounted: …"`. Keeps the panel in the page, `hidden`, while its tab is not the active one.
1659
2967
 
1660
2968
  Attributes and CSS variables, by part:
1661
2969
 
@@ -1688,19 +2996,44 @@ Attributes and CSS variables, by part:
1688
2996
  ### Toast
1689
2997
 
1690
2998
  ```
1691
- import { KuiToast } from "@kirana-ui/angular"
2999
+ import { KuiToastViewport, KuiToastList, KuiToastRoot, KuiToastContent, KuiToastTitle, KuiToastDescription, KuiToastClose, KuiToastAction } from "@kirana-ui/angular"
1692
3000
  ```
1693
3001
 
1694
- Parts: `[kuiToastViewport]`, `[kuiToastList]`, `[kuiToastContent]`, `[kuiToastTitle]`, `[kuiToastDescription]`, `[kuiToastClose]`, `[kuiToastAction]`.
3002
+ Parts: `[kuiToastViewport]`, `[kuiToastList]`, `[kuiToastRoot]`, `[kuiToastContent]`, `[kuiToastTitle]`, `[kuiToastDescription]`, `[kuiToastClose]`, `[kuiToastAction]`.
3003
+
3004
+ Anatomy:
1695
3005
 
1696
- Its other parts (Root) are the directives of the components it is made of, used inside it.
3006
+ ```
3007
+ kuiToastViewport
3008
+ *kuiToastList
3009
+ kuiToastRoot (repeated)
3010
+ kuiToastContent (optional)
3011
+ kuiToastTitle
3012
+ kuiToastDescription
3013
+ kuiToastClose
3014
+ kuiToastAction
3015
+ ```
1697
3016
 
1698
3017
  Props of its root:
1699
3018
 
1700
- - `toaster: Toaster`
1701
- - `label?: string`: What the region of toasts is called, for assistive technology.
1702
- - `hotkey?: string`: The key that takes focus to the toasts. Default: `"F6"`.
1703
- - `swipeDirection?: "left" | "right" | "up" | "down"`: The way a toast is dragged to close it. Default: `"right"`.
3019
+ - `toast: ToastRecord`: Required. The toast it draws: the one `*kuiToastList` gave its template (`let toast`).
3020
+
3021
+ Each part, and its own props:
3022
+
3023
+ - `[kuiToastViewport]` is `KuiToastViewport`. `exportAs: "kuiToastViewport"`. Where a toaster's toasts are drawn. Always in the page: put it once, near the root.
3024
+ - `toaster: Toaster`: Required. The page's toaster: one is made with `createToaster()`, once, in a module.
3025
+ - `label?: string`: What the region of toasts is called, for assistive technology.
3026
+ - `hotkey?: string`: The key that takes focus to the toasts. Default: `"F6"`.
3027
+ - `swipeDirection?: "left" | "right" | "up" | "down"`: The way a toast is dragged to close it. Default: `"right"`.
3028
+ - `[kuiToastList]` is `KuiToastList`. Structural: written `*kuiToastList`. Its template is given the entry: `let entry` is a `ToastRecord`. `<div *kuiToastList="let toast">`: its template once for each toast, the newest first.
3029
+ - `[kuiToastRoot]` is `KuiToastRoot`. One toast, on the element `*kuiToastList` draws for it. Its props are above.
3030
+ - `[kuiToastContent]` is `KuiToastContent`. What holds a toast's contents, when the design sizes the toast itself.
3031
+ - `[kuiToastTitle]` is `KuiToastTitle`. The toast's title, unless something is written in its element.
3032
+ - `[kuiToastDescription]` is `KuiToastDescription`. The toast's description, unless something is written in its element.
3033
+ - `[kuiToastClose]` is `KuiToastClose`. Closes the toast.
3034
+ - `[kuiToastAction]` is `KuiToastAction`. The toast's action, its label unless something is written in its element. A press tells the action (`onAction`), then closes the toast unless the action called `details.cancel()`.
3035
+
3036
+ A page's toasts are a toaster's, made once in a module: `import { createToaster } from "@kirana-ui/angular"`, then `export const toaster = createToaster(options)` (`ToasterOptions`, under "Types"). The viewport is given it, and anything on the page adds to it: `toaster.add({ title, description, action, priority })`, `toaster.update(id, options)`, `toaster.dismiss(id)`, `toaster.promise(promise, { loading, success, error })`. What each takes and gives back is `Toaster`, `ToastOptions`, `ToastActionOptions` and `ToastRecord` under "Types".
1704
3037
 
1705
3038
  Attributes and CSS variables, by part:
1706
3039
 
@@ -1732,11 +3065,13 @@ import { KuiToggle } from "@kirana-ui/angular"
1732
3065
 
1733
3066
  Props:
1734
3067
 
1735
- - `pressed?: boolean`
3068
+ - `[(pressed)]: boolean`: Whether it is pressed, when the caller holds it.
1736
3069
  - `defaultPressed?: boolean`: Read once.
1737
- - `onPressedChange?: ((pressed: boolean, details: ChangeDetails) => void)`
1738
- - `disabled?: boolean`
3070
+ - `disabled?: boolean`: Disabled: a press does nothing.
1739
3071
  - `value?: unknown`: In a toggle group: what the group's value holds while this one is pressed.
3072
+ - `(pressedChanged): { pressed: boolean; details: ChangeDetails }`: The change with why it happened; `details.cancel()` keeps the value.
3073
+
3074
+ `[kuiToggle]` is `KuiToggle`. `exportAs: "kuiToggle"`. Inside a `kuiToggleGroup`, `value` makes it one of the group's toggles.
1740
3075
 
1741
3076
  Attributes and CSS variables, by part:
1742
3077
 
@@ -1752,13 +3087,15 @@ import { KuiToggleGroup } from "@kirana-ui/angular"
1752
3087
 
1753
3088
  Props:
1754
3089
 
1755
- - `value?: readonly Value[]`: The values of the pressed toggles: none, one, or with `multiple` several.
1756
- - `defaultValue?: readonly Value[]`
1757
- - `onValueChange?: ((value: Value[], details: ChangeDetails) => void)`
3090
+ - `[(value)]: readonly Value[]`: The values of the pressed toggles: none, one, or with `multiple` several.
3091
+ - `defaultValue?: readonly Value[]`: The values pressed at the start, when the caller does not hold `value`. Read once.
1758
3092
  - `multiple?: boolean`: Whether more than one can be pressed at a time.
1759
- - `disabled?: boolean`
1760
- - `orientation?: Orientation`
3093
+ - `disabled?: boolean`: Disables every toggle of the group.
3094
+ - `orientation?: Orientation`: Whether the toggles are laid out across (the default) or down: the arrows that move between them follow.
1761
3095
  - `loop?: boolean`: Whether the arrows go round from the last toggle to the first. Default: they do.
3096
+ - `(valueChanged): { value: Value[]; details: ChangeDetails }`: Heard as a toggle is about to be pressed or released, with the values that would then be pressed: `details.cancel()` keeps them as they were.
3097
+
3098
+ `[kuiToggleGroup]` is `KuiToggleGroup`. `exportAs: "kuiToggleGroup"`. Generic: `<Value = unknown>`. Toggles that are one control. Each `kuiToggle` with a `value` inside it is one of its toggles.
1762
3099
 
1763
3100
  Attributes and CSS variables, by part:
1764
3101
 
@@ -1770,16 +3107,39 @@ Attributes and CSS variables, by part:
1770
3107
  ### Toolbar
1771
3108
 
1772
3109
  ```
1773
- import { KuiToolbar } from "@kirana-ui/angular"
3110
+ import { KuiToolbar, KuiToolbarButton, KuiToolbarLink, KuiToolbarInput, KuiToolbarGroup, KuiToolbarSeparator } from "@kirana-ui/angular"
1774
3111
  ```
1775
3112
 
1776
3113
  Parts: `[kuiToolbar]`, `[kuiToolbarButton]`, `[kuiToolbarLink]`, `[kuiToolbarInput]`, `[kuiToolbarGroup]`, `[kuiToolbarSeparator]`.
1777
3114
 
3115
+ Anatomy:
3116
+
3117
+ ```
3118
+ kuiToolbar
3119
+ kuiToolbarGroup (optional, repeated)
3120
+ kuiToolbarButton (repeated)
3121
+ kuiToolbarLink (repeated)
3122
+ kuiToolbarInput (repeated)
3123
+ kuiToolbarSeparator (repeated)
3124
+ ```
3125
+
1778
3126
  Props of its root:
1779
3127
 
1780
- - `orientation?: Orientation`
3128
+ - `orientation?: Orientation`: Whether the controls are laid out across (the default) or down: the arrows that move between them follow.
1781
3129
  - `loop?: boolean`: Whether the arrows go round from the last item to the first. Default: they do.
1782
- - `disabled?: boolean`
3130
+ - `disabled?: boolean`: Disables every control of the toolbar.
3131
+
3132
+ Each part, and its own props:
3133
+
3134
+ - `[kuiToolbar]` is `KuiToolbar`. `exportAs: "kuiToolbar"`. Its props are above.
3135
+ - `[kuiToolbarButton]` is `KuiToolbarButton`.
3136
+ - `disabled?: boolean`: Disables this control.
3137
+ - `[kuiToolbarLink]` is `KuiToolbarLink`.
3138
+ - `[kuiToolbarInput]` is `KuiToolbarInput`. `<input kuiToolbarInput>`: the arrows are its own until the caret is at an end.
3139
+ - `disabled?: boolean`: Disables this control.
3140
+ - `[kuiToolbarGroup]` is `KuiToolbarGroup`.
3141
+ - `disabled?: boolean`: Disables this control.
3142
+ - `[kuiToolbarSeparator]` is `KuiToolbarSeparator`.
1783
3143
 
1784
3144
  Attributes and CSS variables, by part:
1785
3145
 
@@ -1804,19 +3164,41 @@ Attributes and CSS variables, by part:
1804
3164
  ### Tooltip
1805
3165
 
1806
3166
  ```
1807
- import { KuiTooltip } from "@kirana-ui/angular"
3167
+ import { KuiTooltip, KuiTooltipTrigger, KuiTooltipPortal, KuiTooltipPositioner, KuiTooltipPopup, KuiTooltipArrow } from "@kirana-ui/angular"
1808
3168
  ```
1809
3169
 
1810
3170
  Parts: `[kuiTooltip]`, `[kuiTooltipTrigger]`, `[kuiTooltipPortal]`, `[kuiTooltipPositioner]`, `[kuiTooltipPopup]`, `[kuiTooltipArrow]`.
1811
3171
 
3172
+ Anatomy:
3173
+
3174
+ ```
3175
+ kuiTooltip
3176
+ kuiTooltipTrigger
3177
+ *kuiTooltipPortal
3178
+ kuiTooltipPositioner
3179
+ kuiTooltipPopup
3180
+ kuiTooltipArrow
3181
+ ```
3182
+
1812
3183
  Props of its root:
1813
3184
 
1814
- - `open?: boolean`
1815
- - `defaultOpen?: boolean`
1816
- - `onOpenChange?: ((open: boolean, details: ChangeDetails) => void)`
3185
+ - `[(open)]: boolean`: Whether it is open, when the caller holds it.
3186
+ - `defaultOpen?: boolean`: Whether it starts open, when the caller does not hold `open`. Read once.
1817
3187
  - `delay?: number`: How long the pointer rests on the trigger before the popup opens, in milliseconds.
1818
3188
  - `closeDelay?: number`: How long after the pointer leaves the popup closes, in milliseconds.
1819
- - `disabled?: boolean`
3189
+ - `disabled?: boolean`: Disabled: the pointer and focus do not open it.
3190
+ - `(openChanged): { open: boolean; details: ChangeDetails }`: The change with why it happened; `details.cancel()` keeps the value.
3191
+
3192
+ Each part, and its own props:
3193
+
3194
+ - `[kuiTooltip]` is `KuiTooltip`. `exportAs: "kuiTooltip"`. On any element, or on `<ng-container>` to draw none. Its props are above.
3195
+ - `[kuiTooltipTrigger]` is `KuiTooltipTrigger`.
3196
+ - `delay?: number`: Its own waits, which come before the root's.
3197
+ - `closeDelay?: number`: How long after the pointer leaves this trigger's popup closes, in milliseconds.
3198
+ - `[kuiTooltipPortal]` is `KuiTooltipPortal`. Structural: written `*kuiTooltipPortal`. Draws what it holds at the end of `<body>`, or in the container a `PortalProvider` names.
3199
+ - `[kuiTooltipPositioner]` is `KuiTooltipPositioner`. Takes the positioner options ("Positioner options", above).
3200
+ - `[kuiTooltipPopup]` is `KuiTooltipPopup`.
3201
+ - `[kuiTooltipArrow]` is `KuiTooltipArrow`.
1820
3202
 
1821
3203
  Attributes and CSS variables, by part:
1822
3204
 
@@ -1825,7 +3207,7 @@ Attributes and CSS variables, by part:
1825
3207
  - positioner: Places the popup against the trigger. It carries the geometry.
1826
3208
  - `data-open`: Present when it is open.
1827
3209
  - `data-closed`: Present when it is closed.
1828
- - `data-side="top | right | bottom | left"`: The side of the anchor it is on, after any flip.
3210
+ - `data-side="top | right | bottom | left | inline-start | inline-end"`: The side of the anchor it is on, after any flip. Asked for as `inline-start` or `inline-end`, it says one of those two when it is beside its anchor.
1829
3211
  - `data-align="start | center | end"`: How it is aligned with the anchor.
1830
3212
  - `--anchor-width`: The anchor's width.
1831
3213
  - `--anchor-height`: The anchor's height.
@@ -1837,10 +3219,10 @@ Attributes and CSS variables, by part:
1837
3219
  - `data-closed`: Present when it is closed.
1838
3220
  - `data-starting-style`: Present for the first style of its entrance: what it animates in from.
1839
3221
  - `data-ending-style`: Present through its exit: what it animates out to. It leaves the page when the motion ends.
1840
- - `data-side="top | right | bottom | left"`: The side of the anchor it is on, after any flip.
3222
+ - `data-side="top | right | bottom | left | inline-start | inline-end"`: The side of the anchor it is on, after any flip. Asked for as `inline-start` or `inline-end`, it says one of those two when it is beside its anchor.
1841
3223
  - `data-align="start | center | end"`: How it is aligned with the anchor.
1842
3224
  - `data-instant="delay | focus | dismiss"`: Present when it opened or closed without its usual wait, for a design that skips the motion then.
1843
3225
  - arrow: An element that points at the trigger, placed along the popup's edge.
1844
- - `data-side="top | right | bottom | left"`: The side of the anchor it is on, after any flip.
3226
+ - `data-side="top | right | bottom | left | inline-start | inline-end"`: The side of the anchor it is on, after any flip. Asked for as `inline-start` or `inline-end`, it says one of those two when it is beside its anchor.
1845
3227
  - `data-align="start | center | end"`: How it is aligned with the anchor.
1846
3228
  - `data-uncentered`: Present when the popup was pushed along its edge, so the arrow is not at the trigger's centre.