@kirana-ui/angular 0.1.0 → 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 ADDED
@@ -0,0 +1,3228 @@
1
+ # @kirana-ui/angular
2
+
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
+
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"]`
319
+
320
+ ## Using it
321
+
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`.
324
+ - Props are inputs. Bind them (`[defaultValue]="'a'"`): a static attribute stays on the element. An `id` is given as `[kuiId]`.
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.
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).
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.
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.
341
+ - A boolean state is an attribute that is present or absent (`[data-open]`), never `="false"`.
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.
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.
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.
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.
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.
347
+
348
+ ## Components
349
+
350
+ ### Accordion
351
+
352
+ ```
353
+ import { KuiAccordion, KuiAccordionItem, KuiAccordionHeader, KuiAccordionTrigger, KuiAccordionPanel } from "@kirana-ui/angular"
354
+ ```
355
+
356
+ Parts: `[kuiAccordion]`, `[kuiAccordionItem]`, `[kuiAccordionHeader]`, `[kuiAccordionTrigger]`, `[kuiAccordionPanel]`.
357
+
358
+ Anatomy:
359
+
360
+ ```
361
+ kuiAccordion
362
+ kuiAccordionItem (repeated)
363
+ kuiAccordionHeader
364
+ kuiAccordionTrigger
365
+ *kuiAccordionPanel
366
+ ```
367
+
368
+ Props of its root:
369
+
370
+ - `[(value)]: readonly Value[]`: The values of the open items.
371
+ - `defaultValue?: readonly Value[]`: Read once.
372
+ - `multiple?: boolean`: Whether several items can be open at once. Default `false`: opening one closes the others.
373
+ - `disabled?: boolean`: Disables every item: none can be opened or closed.
374
+ - `orientation?: Orientation`: The way the arrows move between triggers. Default `vertical`.
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.
388
+
389
+ Attributes and CSS variables, by part:
390
+
391
+ - root: Groups the items.
392
+ - `data-orientation="horizontal | vertical"`: The way the items are laid out, and the arrows that move between their triggers.
393
+ - `data-disabled`: Present when it is disabled.
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.
395
+ - `data-open`: Present when the item is open.
396
+ - `data-disabled`: Present when it is disabled.
397
+ - header: The heading that holds the trigger.
398
+ - `data-open`: Present when the item is open.
399
+ - `data-disabled`: Present when it is disabled.
400
+ - trigger: The button that opens and closes the item's panel.
401
+ - `data-panel-open`: Present when the item's panel is open.
402
+ - `data-disabled`: Present when it is disabled.
403
+ - panel: The item's content. In the page while open, and through its exit's motion.
404
+ - `data-open`: Present when it is open.
405
+ - `data-closed`: Present when it is closed.
406
+ - `data-starting-style`: Present for the first style of its entrance: what it animates in from.
407
+ - `data-ending-style`: Present through its exit: what it animates out to. It leaves the page when the motion ends.
408
+ - `data-disabled`: Present when it is disabled.
409
+ - `data-orientation="horizontal | vertical"`: The way the items are laid out, and the arrows that move between their triggers.
410
+ - `--accordion-panel-height`: The panel's content height while it opens or closes, `auto` once it is open.
411
+ - `--accordion-panel-width`: The panel's content width while it opens or closes, `auto` once it is open.
412
+
413
+ ### AlertDialog
414
+
415
+ ```
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
+
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.
439
+
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.
450
+
451
+ Attributes and CSS variables, by part:
452
+
453
+ - trigger: The button that opens the dialog.
454
+ - `data-popup-open`: Present when the dialog is open.
455
+ - backdrop: The layer over the page behind the dialog.
456
+ - `data-open`: Present when it is open.
457
+ - `data-closed`: Present when it is closed.
458
+ - `data-starting-style`: Present for the first style of its entrance: what it animates in from.
459
+ - `data-ending-style`: Present through its exit: what it animates out to. It leaves the page when the motion ends.
460
+ - popup: The dialog itself.
461
+ - `data-open`: Present when it is open.
462
+ - `data-closed`: Present when it is closed.
463
+ - `data-starting-style`: Present for the first style of its entrance: what it animates in from.
464
+ - `data-ending-style`: Present through its exit: what it animates out to. It leaves the page when the motion ends.
465
+ - `data-nested-dialog-open`: Present when another dialog is open above this one.
466
+ - `--nested-dialogs`: How many dialogs are open above this one.
467
+
468
+ ### Autocomplete
469
+
470
+ ```
471
+ import { KuiCombobox, KuiComboboxInput, KuiComboboxTrigger, KuiComboboxClear, KuiComboboxPortal, KuiComboboxPositioner, KuiComboboxPopup, KuiComboboxList, KuiComboboxGroup, KuiComboboxGroupLabel, KuiComboboxSeparator, KuiComboboxItem, KuiComboboxEmpty } from "@kirana-ui/angular"
472
+ ```
473
+
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
+ ```
494
+
495
+ Props of its root:
496
+
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.
504
+ - `name?: string`: The input's name in the form around it.
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.
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.
541
+
542
+ Attributes and CSS variables, by part:
543
+
544
+ - input: The text input: its text is the value, and what is typed asks for suggestions.
545
+ - `data-popup-open`: Present when the list is open.
546
+ - `data-disabled`: Present when it is disabled.
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.
548
+ - `data-popup-open`: Present when the list is open.
549
+ - `data-disabled`: Present when it is disabled.
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.
551
+ - `data-open`: Present when it is open.
552
+ - `data-closed`: Present when it is closed.
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.
554
+ - `data-align="start | center | end"`: How it is aligned with the anchor.
555
+ - `--anchor-width`: The anchor's width.
556
+ - `--anchor-height`: The anchor's height.
557
+ - `--available-width`: The width between the anchor and the edge of the viewport.
558
+ - `--available-height`: The height between the anchor and the edge of the viewport.
559
+ - `--transform-origin`: The point of the popup nearest its anchor, to scale from.
560
+ - popup: The list of items. With a `list` inside, what holds it: a dialog around an input and the list.
561
+ - `data-open`: Present when it is open.
562
+ - `data-closed`: Present when it is closed.
563
+ - `data-starting-style`: Present for the first style of its entrance: what it animates in from.
564
+ - `data-ending-style`: Present through its exit: what it animates out to. It leaves the page when the motion ends.
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.
566
+ - `data-align="start | center | end"`: How it is aligned with the anchor.
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.
570
+ - item: One suggestion: chosen, its text is written into the input.
571
+ - `data-selected`: Present on the chosen item.
572
+ - `data-highlighted`: Present on the item the pointer or the keyboard is on.
573
+ - `data-disabled`: Present when it is disabled.
574
+ - clear: A button that empties the input and the value.
575
+ - `data-disabled`: Present when it is disabled.
576
+
577
+ ### Autosize
578
+
579
+ ```
580
+ import { KuiAutosizeTextarea } from "@kirana-ui/angular"
581
+ ```
582
+
583
+ Parts: `textarea[kuiAutosizeTextarea]`.
584
+
585
+ Anatomy:
586
+
587
+ ```
588
+ textarea[kuiAutosizeTextarea]
589
+ ```
590
+
591
+ Each part, and its own props:
592
+
593
+ - `textarea[kuiAutosizeTextarea]` is `KuiAutosizeTextarea`. `exportAs: "kuiAutosizeTextarea"`. `<textarea kuiAutosizeTextarea>`: as tall as its text.
594
+
595
+ ### Avatar
596
+
597
+ ```
598
+ import { KuiAvatar, KuiAvatarImage, KuiAvatarFallback } from "@kirana-ui/angular"
599
+ ```
600
+
601
+ Parts: `[kuiAvatar]`, `[kuiAvatarImage]`, `[kuiAvatarFallback]`.
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
+
618
+ ### Button
619
+
620
+ ```
621
+ import { KuiButton } from "@kirana-ui/angular"
622
+ ```
623
+
624
+ Props:
625
+
626
+ - `disabled?: boolean`: Disabled: a press does nothing.
627
+ - `focusableWhenDisabled?: boolean`: Keeps a disabled button in the tab order, so what it would do can still be read.
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.
631
+
632
+ Attributes and CSS variables, by part:
633
+
634
+ - root: The button.
635
+ - `data-disabled`: Present when it is disabled.
636
+
637
+ ### Calendar
638
+
639
+ ```
640
+ import { KuiCalendar, KuiCalendarHeading, KuiCalendarPrevious, KuiCalendarNext, KuiCalendarGrid, KuiCalendarWeekdays, KuiCalendarHeadCell, KuiCalendarWeeks, KuiCalendarCell, KuiCalendarDay } from "@kirana-ui/angular"
641
+ ```
642
+
643
+ Parts: `[kuiCalendar]`, `[kuiCalendarHeading]`, `[kuiCalendarPrevious]`, `[kuiCalendarNext]`, `[kuiCalendarGrid]`, `[kuiCalendarWeekdays]`, `[kuiCalendarHeadCell]`, `[kuiCalendarWeeks]`, `[kuiCalendarCell]`, `[kuiCalendarDay]`.
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
+
660
+ Props of its root:
661
+
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.
664
+ - `mode?: "single" | "range"`: Whether one day is chosen (the default) or a first and a last.
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.
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`.
692
+
693
+ Attributes and CSS variables, by part:
694
+
695
+ - root: The calendar.
696
+ - `data-disabled`: Present when it is disabled.
697
+ - `data-readonly`: Present when its value cannot be changed.
698
+ - previous: Shows the month before.
699
+ - `data-disabled`: Present when it is disabled.
700
+ - next: Shows the month after.
701
+ - `data-disabled`: Present when it is disabled.
702
+ - cell: A day's cell.
703
+ - `data-selected`: Present on a chosen day, and on every day of a chosen range.
704
+ - `data-today`: Present on today.
705
+ - `data-outside-month`: Present on the days of the month before and after that fill the first and last weeks.
706
+ - `data-disabled`: Present when it is disabled.
707
+ - `data-unavailable`: Present on a day that cannot be chosen.
708
+ - `data-range-start`: Present on the first day of a range.
709
+ - `data-range-end`: Present on the last day of a range.
710
+ - day: The button for a day.
711
+ - `data-selected`: Present on a chosen day, and on every day of a chosen range.
712
+ - `data-today`: Present on today.
713
+ - `data-outside-month`: Present on the days of the month before and after that fill the first and last weeks.
714
+ - `data-disabled`: Present when it is disabled.
715
+ - `data-unavailable`: Present on a day that cannot be chosen.
716
+ - `data-range-start`: Present on the first day of a range.
717
+ - `data-range-end`: Present on the last day of a range.
718
+
719
+ ### Carousel
720
+
721
+ ```
722
+ import { KuiCarousel, KuiCarouselViewport, KuiCarouselItem, KuiCarouselPrevious, KuiCarouselNext, KuiCarouselIndicator } from "@kirana-ui/angular"
723
+ ```
724
+
725
+ Parts: `[kuiCarousel]`, `[kuiCarouselViewport]`, `[kuiCarouselItem]`, `[kuiCarouselPrevious]`, `[kuiCarouselNext]`, `[kuiCarouselIndicator]`.
726
+
727
+ Anatomy:
728
+
729
+ ```
730
+ kuiCarousel
731
+ kuiCarouselViewport
732
+ kuiCarouselItem (repeated)
733
+ kuiCarouselPrevious
734
+ kuiCarouselNext
735
+ kuiCarouselIndicator (repeated)
736
+ ```
737
+
738
+ Props of its root:
739
+
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.
742
+ - `orientation?: Orientation`: Whether the slides go across (the default) or down.
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.
756
+
757
+ Attributes and CSS variables, by part:
758
+
759
+ - root: The carousel: a region, named by the caller.
760
+ - `data-orientation="horizontal | vertical"`: Whether the slides go across or down.
761
+ - viewport: What scrolls. The slides are its children; the design snaps them (`scroll-snap-type`) and says whether a step glides (`scroll-behavior`).
762
+ - `data-orientation="horizontal | vertical"`: Whether the slides go across or down.
763
+ - item: One slide.
764
+ - `data-orientation="horizontal | vertical"`: Whether the slides go across or down.
765
+ - `data-current`: Present on the slide the view is at, and on its button.
766
+ - previous: Goes back a slide.
767
+ - `data-disabled`: Present when it is disabled.
768
+ - next: Goes on a slide.
769
+ - `data-disabled`: Present when it is disabled.
770
+ - indicator: A button for one slide.
771
+ - `data-current`: Present on the slide the view is at, and on its button.
772
+
773
+ ### Checkbox
774
+
775
+ ```
776
+ import { KuiCheckbox, KuiCheckboxIndicator } from "@kirana-ui/angular"
777
+ ```
778
+
779
+ Parts: `[kuiCheckbox]`, `[kuiCheckboxIndicator]`.
780
+
781
+ Anatomy:
782
+
783
+ ```
784
+ kuiCheckbox
785
+ *kuiCheckboxIndicator
786
+ ```
787
+
788
+ Props of its root:
789
+
790
+ - `[(checked)]: boolean`: Whether it is checked, when the caller holds it.
791
+ - `defaultChecked?: boolean`: Read once.
792
+ - `indeterminate?: boolean`: Neither checked nor unchecked: a parent of boxes that disagree.
793
+ - `disabled?: boolean`: Disabled: it cannot be changed.
794
+ - `readOnly?: boolean`: Shown as it is, focusable, not changeable.
795
+ - `required?: boolean`: Needed: in a `Field`, leaving it unchecked is then invalid.
796
+ - `name?: string`: With a name, the control is submitted with the form around it when it is checked.
797
+ - `form?: string`: The id of the form the control belongs to, when it is not inside it.
798
+ - `value?: string`: What is submitted. Default `"on"`, as a native checkbox's.
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.
805
+
806
+ Attributes and CSS variables, by part:
807
+
808
+ - root: The box. It holds a hidden native checkbox, which a form and a label reach.
809
+ - `data-checked`: Present when it is checked.
810
+ - `data-unchecked`: Present when it is not checked.
811
+ - `data-indeterminate`: Present when it is neither checked nor unchecked.
812
+ - `data-disabled`: Present when it is disabled.
813
+ - `data-readonly`: Present when it can be read but not changed.
814
+ - `data-required`: Present when the form needs it.
815
+ - indicator: The mark. In the page while the box is checked or indeterminate.
816
+ - `data-checked`: Present when it is checked.
817
+ - `data-unchecked`: Present when it is not checked.
818
+ - `data-indeterminate`: Present when it is neither checked nor unchecked.
819
+ - `data-disabled`: Present when it is disabled.
820
+ - `data-readonly`: Present when it can be read but not changed.
821
+ - `data-required`: Present when the form needs it.
822
+ - `data-starting-style`: Present for the first style of its entrance: what it animates in from.
823
+ - `data-ending-style`: Present through its exit: what it animates out to. It leaves the page when the motion ends.
824
+
825
+ ### Collapsible
826
+
827
+ ```
828
+ import { KuiCollapsible, KuiCollapsibleTrigger, KuiCollapsiblePanel } from "@kirana-ui/angular"
829
+ ```
830
+
831
+ Parts: `[kuiCollapsible]`, `[kuiCollapsibleTrigger]`, `[kuiCollapsiblePanel]`.
832
+
833
+ Anatomy:
834
+
835
+ ```
836
+ kuiCollapsible
837
+ kuiCollapsibleTrigger (repeated)
838
+ *kuiCollapsiblePanel
839
+ ```
840
+
841
+ Props of its root:
842
+
843
+ - `[(open)]: boolean`: Whether it is open, when the caller holds it.
844
+ - `defaultOpen?: boolean`: Read once.
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.
854
+
855
+ Attributes and CSS variables, by part:
856
+
857
+ - root: Groups the trigger and the panel.
858
+ - `data-open`: Present when it is open.
859
+ - `data-closed`: Present when it is closed.
860
+ - `data-disabled`: Present when it is disabled.
861
+ - trigger: The button that opens and closes the panel.
862
+ - `data-panel-open`: Present when the panel is open.
863
+ - `data-disabled`: Present when it is disabled.
864
+ - panel: The content. In the page while open, and through its exit's motion.
865
+ - `data-open`: Present when it is open.
866
+ - `data-closed`: Present when it is closed.
867
+ - `data-starting-style`: Present for the first style of its entrance: what it animates in from.
868
+ - `data-ending-style`: Present through its exit: what it animates out to. It leaves the page when the motion ends.
869
+ - `--collapsible-panel-height`: The panel's content height while it opens or closes, `auto` once it is open.
870
+ - `--collapsible-panel-width`: The panel's content width while it opens or closes, `auto` once it is open.
871
+
872
+ ### Combobox
873
+
874
+ ```
875
+ import { KuiCombobox, KuiComboboxInput, KuiComboboxTrigger, KuiComboboxClear, KuiComboboxChips, KuiComboboxChip, KuiComboboxChipRemove, KuiComboboxPortal, KuiComboboxPositioner, KuiComboboxPopup, KuiComboboxList, KuiComboboxGroup, KuiComboboxGroupLabel, KuiComboboxSeparator, KuiComboboxItem, KuiComboboxItemIndicator, KuiComboboxEmpty, KuiComboboxHiddenInput } from "@kirana-ui/angular"
876
+ ```
877
+
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
+ ```
905
+
906
+ Props of its root:
907
+
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.
915
+ - `name?: string`: With a name, the value is submitted with the form around it.
916
+ - `form?: string`: The id of the form the control belongs to, when it is not inside it.
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.
919
+ - `required?: boolean`: In a field, "none" is then wrong.
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.
958
+
959
+ Attributes and CSS variables, by part:
960
+
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.
962
+ - `data-popup-open`: Present when the list is open.
963
+ - `data-disabled`: Present when it is disabled.
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.
965
+ - `data-popup-open`: Present when the list is open.
966
+ - `data-disabled`: Present when it is disabled.
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.
968
+ - `data-open`: Present when it is open.
969
+ - `data-closed`: Present when it is closed.
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.
971
+ - `data-align="start | center | end"`: How it is aligned with the anchor.
972
+ - `--anchor-width`: The anchor's width.
973
+ - `--anchor-height`: The anchor's height.
974
+ - `--available-width`: The width between the anchor and the edge of the viewport.
975
+ - `--available-height`: The height between the anchor and the edge of the viewport.
976
+ - `--transform-origin`: The point of the popup nearest its anchor, to scale from.
977
+ - popup: The list of items. With a `list` inside, what holds it: a dialog around an input and the list.
978
+ - `data-open`: Present when it is open.
979
+ - `data-closed`: Present when it is closed.
980
+ - `data-starting-style`: Present for the first style of its entrance: what it animates in from.
981
+ - `data-ending-style`: Present through its exit: what it animates out to. It leaves the page when the motion ends.
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.
983
+ - `data-align="start | center | end"`: How it is aligned with the anchor.
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.
987
+ - item: One choice in the list.
988
+ - `data-selected`: Present on the chosen item.
989
+ - `data-highlighted`: Present on the item the pointer or the keyboard is on.
990
+ - `data-disabled`: Present when it is disabled.
991
+ - clear: A button that empties the input and the value.
992
+ - `data-disabled`: Present when it is disabled.
993
+ - chipRemove: A chip's button that takes its value away.
994
+ - `data-disabled`: Present when it is disabled.
995
+
996
+ ### Command
997
+
998
+ ```
999
+ import { KuiCommand, KuiCommandInput, KuiCommandList, KuiCommandEmpty, KuiCommandGroup, KuiCommandGroupHeading, KuiCommandItem, KuiCommandSeparator } from "@kirana-ui/angular"
1000
+ ```
1001
+
1002
+ Parts: `[kuiCommand]`, `[kuiCommandInput]`, `[kuiCommandList]`, `[kuiCommandEmpty]`, `[kuiCommandGroup]`, `[kuiCommandGroupHeading]`, `[kuiCommandItem]`, `[kuiCommandSeparator]`.
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
+
1017
+ Props of its root:
1018
+
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.
1022
+ - `loop?: boolean`: Whether a step past an end of the list goes round to the other.
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.
1042
+
1043
+ Attributes and CSS variables, by part:
1044
+
1045
+ - root: A list of commands with the input that filters it.
1046
+ - `data-disabled`: Present when it is disabled.
1047
+ - input: The text input. What is typed filters the list; focus stays in it.
1048
+ - `data-disabled`: Present when it is disabled.
1049
+ - list: The commands.
1050
+ - `data-empty`: Present when no item is shown for what was typed.
1051
+ - item: One command.
1052
+ - `data-highlighted`: Present on the item the pointer or the keyboard is on.
1053
+ - `data-disabled`: Present when it is disabled.
1054
+
1055
+ ### ContextMenu
1056
+
1057
+ ```
1058
+ import { KuiMenu, KuiContextMenuTrigger, KuiMenuPortal, KuiMenuPositioner, KuiMenuPopup, KuiMenuArrow, KuiMenuItem, KuiMenuLinkItem, KuiMenuGroup, KuiMenuGroupLabel, KuiMenuSeparator, KuiMenuCheckboxItem, KuiMenuCheckboxItemIndicator, KuiMenuRadioGroup, KuiMenuRadioItem, KuiMenuRadioItemIndicator, KuiMenuSubmenuRoot, KuiMenuSubmenuTrigger } from "@kirana-ui/angular"
1059
+ ```
1060
+
1061
+ Parts: `[kuiContextMenu]`, `[kuiContextMenuTrigger]`, `[kuiMenuPortal]`, `[kuiMenuPositioner]`, `[kuiMenuPopup]`, `[kuiMenuArrow]`, `[kuiMenuItem]`, `a[kuiMenuLinkItem]`, `[kuiMenuGroup]`, `[kuiMenuGroupLabel]`, `[kuiMenuSeparator]`, `[kuiMenuCheckboxItem]`, `[kuiMenuCheckboxItemIndicator]`, `[kuiMenuRadioGroup]`, `[kuiMenuRadioItem]`, `[kuiMenuRadioItemIndicator]`, `[kuiMenuSubmenuRoot]`, `[kuiMenuSubmenuTrigger]`.
1062
+
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
+ ```
1086
+
1087
+ Props of its root:
1088
+
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.
1091
+ - `disabled?: boolean`: The trigger cannot be pressed; a submenu's is passed over.
1092
+ - `loop?: boolean`: Whether the arrows go round from the last item to the first. Default: they do.
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`).
1142
+
1143
+ Attributes and CSS variables, by part:
1144
+
1145
+ - trigger: The area a secondary press, or a long press on a touch screen, opens the menu in.
1146
+ - `data-popup-open`: Present when the menu is open.
1147
+ - positioner: Places the menu against its trigger. It carries the geometry.
1148
+ - `data-open`: Present when it is open.
1149
+ - `data-closed`: Present when it is closed.
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.
1151
+ - `data-align="start | center | end"`: How it is aligned with the anchor.
1152
+ - `--anchor-width`: The anchor's width.
1153
+ - `--anchor-height`: The anchor's height.
1154
+ - `--available-width`: The width between the anchor and the edge of the viewport.
1155
+ - `--available-height`: The height between the anchor and the edge of the viewport.
1156
+ - `--transform-origin`: The point of the popup nearest its anchor, to scale from.
1157
+ - popup: The menu itself: the list of items.
1158
+ - `data-open`: Present when it is open.
1159
+ - `data-closed`: Present when it is closed.
1160
+ - `data-starting-style`: Present for the first style of its entrance: what it animates in from.
1161
+ - `data-ending-style`: Present through its exit: what it animates out to. It leaves the page when the motion ends.
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.
1163
+ - `data-align="start | center | end"`: How it is aligned with the anchor.
1164
+ - arrow: An element that points at the trigger.
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.
1166
+ - `data-align="start | center | end"`: How it is aligned with the anchor.
1167
+ - `data-uncentered`: Present when the arrow cannot sit at the trigger's centre.
1168
+ - item: An action. Choosing it closes the menu.
1169
+ - `data-highlighted`: Present on the item the pointer or the keyboard is on.
1170
+ - `data-disabled`: Present when it is disabled.
1171
+ - linkItem: An item that is a link. Choosing it follows the link and closes the menu.
1172
+ - `data-highlighted`: Present on the item the pointer or the keyboard is on.
1173
+ - `data-disabled`: Present when it is disabled.
1174
+ - checkboxItem: An item that is checked or not. Choosing it leaves the menu open.
1175
+ - `data-checked`: Present when it is checked.
1176
+ - `data-unchecked`: Present when it is not checked.
1177
+ - `data-highlighted`: Present on the item the pointer or the keyboard is on.
1178
+ - `data-disabled`: Present when it is disabled.
1179
+ - checkboxItemIndicator: A mark a checkbox item shows while it is checked.
1180
+ - `data-checked`: Present when it is checked.
1181
+ - `data-unchecked`: Present when it is not checked.
1182
+ - radioGroup: Radio items of which one is chosen.
1183
+ - `data-disabled`: Present when it is disabled.
1184
+ - radioItem: One choice of a radio group. Choosing it leaves the menu open.
1185
+ - `data-checked`: Present when it is checked.
1186
+ - `data-unchecked`: Present when it is not checked.
1187
+ - `data-highlighted`: Present on the item the pointer or the keyboard is on.
1188
+ - `data-disabled`: Present when it is disabled.
1189
+ - radioItemIndicator: A mark a radio item shows while it is the chosen one.
1190
+ - `data-checked`: Present when it is checked.
1191
+ - `data-unchecked`: Present when it is not checked.
1192
+ - submenuTrigger: An item that opens a menu beside it.
1193
+ - `data-popup-open`: Present when its menu is open.
1194
+ - `data-highlighted`: Present on the item the pointer or the keyboard is on.
1195
+ - `data-disabled`: Present when it is disabled.
1196
+
1197
+ ### DateField
1198
+
1199
+ ```
1200
+ import { KuiDateField, KuiDateFieldSegments, KuiDateFieldSegment, KuiDateFieldInput } from "@kirana-ui/angular"
1201
+ ```
1202
+
1203
+ Parts: `[kuiDateField]`, `[kuiDateFieldSegments]`, `[kuiDateFieldSegment]`, `input[kuiDateFieldInput]`.
1204
+
1205
+ Anatomy:
1206
+
1207
+ ```
1208
+ kuiDateField
1209
+ *kuiDateFieldSegments
1210
+ kuiDateFieldSegment (repeated)
1211
+ input[kuiDateFieldInput]
1212
+ ```
1213
+
1214
+ Props of its root:
1215
+
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.
1221
+ - `placeholders?: Partial<Record<DateUnit, string>>`: What an empty part shows. Default: `dd`, `mm`, `yyyy`.
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.
1225
+ - `name?: string`: The name it is submitted under, by its hidden input.
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.
1236
+
1237
+ Attributes and CSS variables, by part:
1238
+
1239
+ - root: The field: a group of the date's parts.
1240
+ - `data-disabled`: Present when it is disabled.
1241
+ - `data-readonly`: Present when its value cannot be changed.
1242
+ - `data-invalid`: Present when the date is outside what it takes, or is asked for and half typed.
1243
+ - segment: One piece of the date: a part that is typed, or what stands between two.
1244
+ - `data-segment="day | month | year | literal"`: Which piece it is.
1245
+ - `data-placeholder`: Present on a part that is empty.
1246
+ - `data-disabled`: Present when it is disabled.
1247
+ - `data-invalid`: Present when the date is outside what it takes, or is asked for and half typed.
1248
+
1249
+ ### DatePicker
1250
+
1251
+ ```
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"
1253
+ ```
1254
+
1255
+ Parts: `[kuiDatePicker]`, `[kuiDatePickerField]`, `[kuiDateFieldSegments]`, `[kuiDateFieldSegment]`, `input[kuiDateFieldInput]`, `[kuiPopoverTrigger]`, `[kuiPopoverPortal]`, `[kuiPopoverPositioner]`, `[kuiPopoverPopup]`, `[kuiDatePickerCalendar]`, `[kuiCalendarHeading]`, `[kuiCalendarPrevious]`, `[kuiCalendarNext]`, `[kuiCalendarGrid]`, `[kuiCalendarWeekdays]`, `[kuiCalendarHeadCell]`, `[kuiCalendarWeeks]`, `[kuiCalendarCell]`, `[kuiCalendarDay]`.
1256
+
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
+ ```
1280
+
1281
+ Props of its root:
1282
+
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.
1287
+ - `locale?: string`: The language and region of the field and the calendar. Give it: a server does not know.
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.
1290
+ - `isDateUnavailable?: CalendarProps["isDateUnavailable"]`: Days that cannot be picked in the calendar.
1291
+ - `calendarSystem?: CalendarProps["calendarSystem"]`: The calendar its months are laid out in, when it is not the Gregorian one.
1292
+ - `fixedWeeks?: boolean`: Always six rows of days.
1293
+ - `placeholders?: DateFieldProps["placeholders"]`: What an empty part of the field shows.
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.
1297
+ - `name?: string`: The name it is submitted under.
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`.
1327
+
1328
+ Attributes and CSS variables, by part:
1329
+
1330
+ - field: The field: a group of the date's parts.
1331
+ - `data-disabled`: Present when it is disabled.
1332
+ - `data-readonly`: Present when its value cannot be changed.
1333
+ - `data-invalid`: Present when the date is outside what it takes, or is asked for and half typed.
1334
+ - segment: One piece of the date: a part that is typed, or what stands between two.
1335
+ - `data-segment="day | month | year | literal"`: Which piece it is.
1336
+ - `data-placeholder`: Present on a part that is empty.
1337
+ - `data-disabled`: Present when it is disabled.
1338
+ - `data-invalid`: Present when the date is outside what it takes, or is asked for and half typed.
1339
+ - trigger: The button that opens the popover, and what it is placed against.
1340
+ - `data-popup-open`: Present when the popover is open.
1341
+ - positioner: Places the popup against the trigger. It carries the geometry.
1342
+ - `data-open`: Present when it is open.
1343
+ - `data-closed`: Present when it is closed.
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.
1345
+ - `data-align="start | center | end"`: How it is aligned with the anchor.
1346
+ - `--anchor-width`: The anchor's width.
1347
+ - `--anchor-height`: The anchor's height.
1348
+ - `--available-width`: The width between the anchor and the edge of the viewport.
1349
+ - `--available-height`: The height between the anchor and the edge of the viewport.
1350
+ - `--transform-origin`: The point of the popup nearest its anchor, to scale from.
1351
+ - popup: The popover itself.
1352
+ - `data-open`: Present when it is open.
1353
+ - `data-closed`: Present when it is closed.
1354
+ - `data-starting-style`: Present for the first style of its entrance: what it animates in from.
1355
+ - `data-ending-style`: Present through its exit: what it animates out to. It leaves the page when the motion ends.
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.
1357
+ - `data-align="start | center | end"`: How it is aligned with the anchor.
1358
+ - calendar: The calendar.
1359
+ - `data-disabled`: Present when it is disabled.
1360
+ - `data-readonly`: Present when its value cannot be changed.
1361
+ - previous: Shows the month before.
1362
+ - `data-disabled`: Present when it is disabled.
1363
+ - next: Shows the month after.
1364
+ - `data-disabled`: Present when it is disabled.
1365
+ - cell: A day's cell.
1366
+ - `data-selected`: Present on a chosen day, and on every day of a chosen range.
1367
+ - `data-today`: Present on today.
1368
+ - `data-outside-month`: Present on the days of the month before and after that fill the first and last weeks.
1369
+ - `data-disabled`: Present when it is disabled.
1370
+ - `data-unavailable`: Present on a day that cannot be chosen.
1371
+ - `data-range-start`: Present on the first day of a range.
1372
+ - `data-range-end`: Present on the last day of a range.
1373
+ - day: The button for a day.
1374
+ - `data-selected`: Present on a chosen day, and on every day of a chosen range.
1375
+ - `data-today`: Present on today.
1376
+ - `data-outside-month`: Present on the days of the month before and after that fill the first and last weeks.
1377
+ - `data-disabled`: Present when it is disabled.
1378
+ - `data-unavailable`: Present on a day that cannot be chosen.
1379
+ - `data-range-start`: Present on the first day of a range.
1380
+ - `data-range-end`: Present on the last day of a range.
1381
+
1382
+ ### Dialog
1383
+
1384
+ ```
1385
+ import { KuiDialog, KuiDialogTrigger, KuiDialogPortal, KuiDialogBackdrop, KuiDialogPopup, KuiDialogTitle, KuiDialogDescription, KuiDialogClose } from "@kirana-ui/angular"
1386
+ ```
1387
+
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
+ ```
1402
+
1403
+ Props of its root:
1404
+
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.
1407
+ - `modal?: boolean`: Blocks the page behind it and traps focus. Default `true`.
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.
1426
+
1427
+ Attributes and CSS variables, by part:
1428
+
1429
+ - trigger: The button that opens the dialog.
1430
+ - `data-popup-open`: Present when the dialog is open.
1431
+ - backdrop: The layer over the page behind the dialog.
1432
+ - `data-open`: Present when it is open.
1433
+ - `data-closed`: Present when it is closed.
1434
+ - `data-starting-style`: Present for the first style of its entrance: what it animates in from.
1435
+ - `data-ending-style`: Present through its exit: what it animates out to. It leaves the page when the motion ends.
1436
+ - popup: The dialog itself.
1437
+ - `data-open`: Present when it is open.
1438
+ - `data-closed`: Present when it is closed.
1439
+ - `data-starting-style`: Present for the first style of its entrance: what it animates in from.
1440
+ - `data-ending-style`: Present through its exit: what it animates out to. It leaves the page when the motion ends.
1441
+ - `data-nested-dialog-open`: Present when another dialog is open above this one.
1442
+ - `--nested-dialogs`: How many dialogs are open above this one.
1443
+
1444
+ ### Drawer
1445
+
1446
+ ```
1447
+ import { KuiDialog, KuiDialogTrigger, KuiDialogPortal, KuiDialogBackdrop, KuiDialogPopup, KuiDialogTitle, KuiDialogDescription, KuiDialogClose } from "@kirana-ui/angular"
1448
+ ```
1449
+
1450
+ Parts: `[kuiDrawer]`, `[kuiDialogTrigger]`, `[kuiDialogPortal]`, `[kuiDialogBackdrop]`, `[kuiDialogPopup]`, `[kuiDialogTitle]`, `[kuiDialogDescription]`, `[kuiDialogClose]`.
1451
+
1452
+ Anatomy:
1453
+
1454
+ ```
1455
+ kuiDrawer
1456
+ kuiDialogTrigger
1457
+ *kuiDialogPortal
1458
+ kuiDialogBackdrop
1459
+ kuiDialogPopup
1460
+ kuiDialogTitle
1461
+ kuiDialogDescription
1462
+ kuiDialogClose
1463
+ ```
1464
+
1465
+ Props of its root:
1466
+
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.
1469
+ - `modal?: boolean`: Blocks the page behind it and traps focus. Default `true`.
1470
+ - `dismissible?: boolean`: Whether a press outside closes it. Default `true`.
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.
1488
+
1489
+ Attributes and CSS variables, by part:
1490
+
1491
+ - trigger: The button that opens the dialog.
1492
+ - `data-popup-open`: Present when the dialog is open.
1493
+ - backdrop: The layer over the page behind the dialog.
1494
+ - `data-open`: Present when it is open.
1495
+ - `data-closed`: Present when it is closed.
1496
+ - `data-starting-style`: Present for the first style of its entrance: what it animates in from.
1497
+ - `data-ending-style`: Present through its exit: what it animates out to. It leaves the page when the motion ends.
1498
+ - `data-swiping`: Present while the drawer is dragged.
1499
+ - `--drawer-swipe-movement-x`: How far it has been dragged across.
1500
+ - `--drawer-swipe-movement-y`: How far it has been dragged up or down.
1501
+ - `--drawer-swipe-progress`: How far it has been dragged, of its own size: 0 to 1.
1502
+ - `--drawer-snap-point-offset`: How far from whole it rests, towards the edge it closes at: 0px at its largest snap point.
1503
+ - popup: The drawer. A design moves it by what it says of the drag, and gives it `touch-action: none` where a finger drags it.
1504
+ - `data-open`: Present when it is open.
1505
+ - `data-closed`: Present when it is closed.
1506
+ - `data-starting-style`: Present for the first style of its entrance: what it animates in from.
1507
+ - `data-ending-style`: Present through its exit: what it animates out to. It leaves the page when the motion ends.
1508
+ - `data-nested-dialog-open`: Present when another dialog is open above this one.
1509
+ - `data-swiping`: Present while the drawer is dragged.
1510
+ - `data-swipe-direction="up | down | left | right"`: The way it is dragged to close it.
1511
+ - `data-swipe-dismiss`: Present once a drag has closed it.
1512
+ - `data-expanded`: Present while it rests whole, of several snap points.
1513
+ - `data-nested-drawer-open`: Present while another drawer is open over it.
1514
+ - `data-nested-drawer-swiping`: Present while a drawer over it is dragged.
1515
+ - `--nested-dialogs`: How many dialogs are open above this one.
1516
+ - `--drawer-swipe-movement-x`: How far it has been dragged across.
1517
+ - `--drawer-swipe-movement-y`: How far it has been dragged up or down.
1518
+ - `--drawer-swipe-progress`: How far it has been dragged, of its own size: 0 to 1.
1519
+ - `--drawer-snap-point-offset`: How far from whole it rests, towards the edge it closes at: 0px at its largest snap point.
1520
+ - `--drawer-height`: Its height.
1521
+ - `--nested-drawers`: How many drawers are open over it.
1522
+ - `--drawer-frontmost-height`: The height of the drawer in front of every other, while this one is open.
1523
+ - `--drawer-swipe-strength`: Once let go: 0.1 to 1, the share of the design's own time it should take to come to rest. A drawer thrown hard arrives sooner.
1524
+ - `--drawer-width`: Its width.
1525
+
1526
+ ### Field
1527
+
1528
+ ```
1529
+ import { KuiField, KuiFieldLabel, KuiFieldControl, KuiFieldDescription, KuiFieldError, KuiFieldValidity } from "@kirana-ui/angular"
1530
+ ```
1531
+
1532
+ Parts: `[kuiField]`, `[kuiFieldLabel]`, `[kuiFieldControl]`, `[kuiFieldDescription]`, `[kuiFieldError]`, `[kuiFieldValidity]`.
1533
+
1534
+ Anatomy:
1535
+
1536
+ ```
1537
+ kuiField
1538
+ kuiFieldLabel
1539
+ kuiFieldControl
1540
+ kuiFieldDescription
1541
+ *kuiFieldError
1542
+ *kuiFieldValidity
1543
+ ```
1544
+
1545
+ Props of its root:
1546
+
1547
+ - `name?: string`: The control's name in the form.
1548
+ - `disabled?: boolean`: Disables the field: its control cannot be changed, and its parts say so (`data-disabled`).
1549
+ - `invalid?: boolean`: Invalid whatever the value: an error known from elsewhere.
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.
1551
+ - `validationMode?: ValidationMode`: When the value is checked; the form's by default, else `"onSubmit"`.
1552
+ - `validationDebounceTime?: number`: With `"onChange"`, how long the value must rest before it is checked, in milliseconds.
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
+
1564
+ Attributes and CSS variables, by part:
1565
+
1566
+ - root: A control with its label, its description and its errors.
1567
+ - `data-disabled`: Present when it is disabled.
1568
+ - `data-touched`: Present once focus has left the control.
1569
+ - `data-dirty`: Present while the value is not the one it started with.
1570
+ - `data-filled`: Present while the control has a value.
1571
+ - `data-focused`: Present while the control has focus.
1572
+ - `data-valid`: Present once the value has been checked and found right.
1573
+ - `data-invalid`: Present while the value is wrong.
1574
+ - label: The control's name: a press on it reaches the control.
1575
+ - `data-disabled`: Present when it is disabled.
1576
+ - `data-touched`: Present once focus has left the control.
1577
+ - `data-dirty`: Present while the value is not the one it started with.
1578
+ - `data-filled`: Present while the control has a value.
1579
+ - `data-focused`: Present while the control has focus.
1580
+ - `data-valid`: Present once the value has been checked and found right.
1581
+ - `data-invalid`: Present while the value is wrong.
1582
+ - control: The control: an input, a textarea or a select.
1583
+ - `data-disabled`: Present when it is disabled.
1584
+ - `data-touched`: Present once focus has left the control.
1585
+ - `data-dirty`: Present while the value is not the one it started with.
1586
+ - `data-filled`: Present while the control has a value.
1587
+ - `data-focused`: Present while the control has focus.
1588
+ - `data-valid`: Present once the value has been checked and found right.
1589
+ - `data-invalid`: Present while the value is wrong.
1590
+ - description: More about the control, said after its name.
1591
+ - `data-disabled`: Present when it is disabled.
1592
+ - `data-touched`: Present once focus has left the control.
1593
+ - `data-dirty`: Present while the value is not the one it started with.
1594
+ - `data-filled`: Present while the control has a value.
1595
+ - `data-focused`: Present while the control has focus.
1596
+ - `data-valid`: Present once the value has been checked and found right.
1597
+ - `data-invalid`: Present while the value is wrong.
1598
+ - error: What is wrong with the value. In the page while it applies.
1599
+ - `data-disabled`: Present when it is disabled.
1600
+ - `data-touched`: Present once focus has left the control.
1601
+ - `data-dirty`: Present while the value is not the one it started with.
1602
+ - `data-filled`: Present while the control has a value.
1603
+ - `data-focused`: Present while the control has focus.
1604
+ - `data-valid`: Present once the value has been checked and found right.
1605
+ - `data-invalid`: Present while the value is wrong.
1606
+ - `data-starting-style`: Present for the first style of its entrance: what it animates in from.
1607
+ - `data-ending-style`: Present through its exit: what it animates out to. It leaves the page when the motion ends.
1608
+
1609
+ ### Fieldset
1610
+
1611
+ ```
1612
+ import { KuiFieldset, KuiFieldsetLegend } from "@kirana-ui/angular"
1613
+ ```
1614
+
1615
+ Parts: `[kuiFieldset]`, `[kuiFieldsetLegend]`.
1616
+
1617
+ Anatomy:
1618
+
1619
+ ```
1620
+ kuiFieldset
1621
+ kuiFieldsetLegend
1622
+ ```
1623
+
1624
+ Props of its root:
1625
+
1626
+ - `disabled?: boolean`: Disables every field inside.
1627
+
1628
+ Each part, and its own props:
1629
+
1630
+ - `[kuiFieldset]` is `KuiFieldset`. `exportAs: "kuiFieldset"`. Its props are above.
1631
+ - `[kuiFieldsetLegend]` is `KuiFieldsetLegend`.
1632
+
1633
+ Attributes and CSS variables, by part:
1634
+
1635
+ - root: The group of fields.
1636
+ - `data-disabled`: Present when it is disabled.
1637
+ - legend: The group's name.
1638
+ - `data-disabled`: Present when it is disabled.
1639
+
1640
+ ### Form
1641
+
1642
+ ```
1643
+ import { KuiForm } from "@kirana-ui/angular"
1644
+ ```
1645
+
1646
+ Props:
1647
+
1648
+ - `errors?: FormErrors`: Errors from outside the page (a server's), by field name. A field shows its own until its value changes.
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`.
1654
+
1655
+ ### HoverCard
1656
+
1657
+ ```
1658
+ import { KuiHoverCard, KuiHoverCardTrigger, KuiHoverCardPortal, KuiHoverCardPositioner, KuiHoverCardPopup, KuiHoverCardArrow } from "@kirana-ui/angular"
1659
+ ```
1660
+
1661
+ Parts: `[kuiHoverCard]`, `[kuiHoverCardTrigger]`, `[kuiHoverCardPortal]`, `[kuiHoverCardPositioner]`, `[kuiHoverCardPopup]`, `[kuiHoverCardArrow]`.
1662
+
1663
+ Anatomy:
1664
+
1665
+ ```
1666
+ kuiHoverCard
1667
+ kuiHoverCardTrigger
1668
+ *kuiHoverCardPortal
1669
+ kuiHoverCardPositioner
1670
+ kuiHoverCardPopup
1671
+ kuiHoverCardArrow
1672
+ ```
1673
+
1674
+ Props of its root:
1675
+
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.
1678
+ - `delay?: number`: How long the pointer rests on the trigger before the popup opens, in milliseconds.
1679
+ - `closeDelay?: number`: How long after the pointer leaves the popup closes, in milliseconds.
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`.
1693
+
1694
+ Attributes and CSS variables, by part:
1695
+
1696
+ - trigger: The link the card previews.
1697
+ - `data-popup-open`: Present when the card is open.
1698
+ - positioner: Places the popup against the trigger. It carries the geometry.
1699
+ - `data-open`: Present when it is open.
1700
+ - `data-closed`: Present when it is closed.
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.
1702
+ - `data-align="start | center | end"`: How it is aligned with the anchor.
1703
+ - `--anchor-width`: The anchor's width.
1704
+ - `--anchor-height`: The anchor's height.
1705
+ - `--available-width`: The width between the anchor and the edge of the viewport.
1706
+ - `--available-height`: The height between the anchor and the edge of the viewport.
1707
+ - `--transform-origin`: The point of the popup nearest its anchor, to scale from.
1708
+ - popup: The card itself.
1709
+ - `data-open`: Present when it is open.
1710
+ - `data-closed`: Present when it is closed.
1711
+ - `data-starting-style`: Present for the first style of its entrance: what it animates in from.
1712
+ - `data-ending-style`: Present through its exit: what it animates out to. It leaves the page when the motion ends.
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.
1714
+ - `data-align="start | center | end"`: How it is aligned with the anchor.
1715
+ - `data-instant="delay | focus | dismiss"`: Present when it opened or closed without its usual wait, for a design that skips the motion then.
1716
+ - arrow: An element that points at the trigger, placed along the popup's edge.
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.
1718
+ - `data-align="start | center | end"`: How it is aligned with the anchor.
1719
+ - `data-uncentered`: Present when the popup was pushed along its edge, so the arrow is not at the trigger's centre.
1720
+
1721
+ ### Input
1722
+
1723
+ ```
1724
+ import { KuiInput } from "@kirana-ui/angular"
1725
+ ```
1726
+
1727
+ Props:
1728
+
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`).
1733
+
1734
+ Attributes and CSS variables, by part:
1735
+
1736
+ - input: A text input. Inside a field it is the field's control.
1737
+ - `data-disabled`: Present when it is disabled.
1738
+ - `data-touched`: Present once focus has left the input.
1739
+ - `data-dirty`: Present while the value is not the one it started with.
1740
+ - `data-filled`: Present while the input has a value.
1741
+ - `data-focused`: Present while the input has focus.
1742
+ - `data-valid`: In a field: present once the value was checked and found right.
1743
+ - `data-invalid`: In a field: present while the value is wrong.
1744
+
1745
+ ### Label
1746
+
1747
+ ```
1748
+ import { KuiLabel } from "@kirana-ui/angular"
1749
+ ```
1750
+
1751
+ `[kuiLabel]` is `KuiLabel`. `exportAs: "kuiLabel"`. `<label kuiLabel>`. Inside a `kuiField` it is the field's label.
1752
+
1753
+ Attributes and CSS variables, by part:
1754
+
1755
+ - label: A control's name. Inside a field it is the field's label, with its states.
1756
+ - `data-disabled`: Present when it is disabled.
1757
+ - `data-touched`: Present once focus has left the control.
1758
+ - `data-dirty`: Present while the value is not the one it started with.
1759
+ - `data-filled`: Present while the control has a value.
1760
+ - `data-focused`: Present while the control has focus.
1761
+ - `data-valid`: Present once the value has been checked and found right.
1762
+ - `data-invalid`: Present while the value is wrong.
1763
+
1764
+ ### Listbox
1765
+
1766
+ ```
1767
+ import { KuiListbox, KuiListboxItem, KuiListboxItemIndicator, KuiListboxGroup, KuiListboxGroupLabel } from "@kirana-ui/angular"
1768
+ ```
1769
+
1770
+ Parts: `[kuiListbox]`, `[kuiListboxItem]`, `[kuiListboxItemIndicator]`, `[kuiListboxGroup]`, `[kuiListboxGroupLabel]`.
1771
+
1772
+ Anatomy:
1773
+
1774
+ ```
1775
+ kuiListbox
1776
+ kuiListboxGroup (optional, repeated)
1777
+ kuiListboxItem (repeated)
1778
+ *kuiListboxItemIndicator
1779
+ kuiListboxGroupLabel
1780
+ ```
1781
+
1782
+ Props of its root:
1783
+
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.
1786
+ - `multiple?: boolean`: Whether more than one can be chosen: a press then adds or takes away.
1787
+ - `disabled?: boolean`: Disabled: no item can be chosen.
1788
+ - `loop?: boolean`: Whether the arrows go round from the last item to the first. Default: they do not.
1789
+ - `name?: string`: With a name, the chosen values are submitted with the form around the list.
1790
+ - `form?: string`: The id of the form the list belongs to, when it is not inside it.
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.
1805
+
1806
+ Attributes and CSS variables, by part:
1807
+
1808
+ - root: The list. It is one stop for Tab.
1809
+ - `data-disabled`: Present when it is disabled.
1810
+ - item: One choice in the list.
1811
+ - `data-selected`: Present on a chosen item.
1812
+ - `data-highlighted`: Present on the item the keyboard is on.
1813
+ - `data-disabled`: Present when it is disabled.
1814
+ - itemIndicator: A mark an item shows while it is chosen.
1815
+ - `data-selected`: Present on a chosen item.
1816
+
1817
+ ### Menu
1818
+
1819
+ ```
1820
+ import { KuiMenu, KuiMenuTrigger, KuiMenuPortal, KuiMenuPositioner, KuiMenuPopup, KuiMenuArrow, KuiMenuItem, KuiMenuLinkItem, KuiMenuGroup, KuiMenuGroupLabel, KuiMenuSeparator, KuiMenuCheckboxItem, KuiMenuCheckboxItemIndicator, KuiMenuRadioGroup, KuiMenuRadioItem, KuiMenuRadioItemIndicator, KuiMenuSubmenuRoot, KuiMenuSubmenuTrigger } from "@kirana-ui/angular"
1821
+ ```
1822
+
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
+ ```
1848
+
1849
+ Props of its root:
1850
+
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.
1853
+ - `disabled?: boolean`: The trigger cannot be pressed; a submenu's is passed over.
1854
+ - `loop?: boolean`: Whether the arrows go round from the last item to the first. Default: they do.
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`).
1904
+
1905
+ Attributes and CSS variables, by part:
1906
+
1907
+ - trigger: The button that opens the menu, and what it is placed against.
1908
+ - `data-popup-open`: Present when the menu is open.
1909
+ - `data-disabled`: Present when it is disabled.
1910
+ - positioner: Places the menu against its trigger. It carries the geometry.
1911
+ - `data-open`: Present when it is open.
1912
+ - `data-closed`: Present when it is closed.
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.
1914
+ - `data-align="start | center | end"`: How it is aligned with the anchor.
1915
+ - `--anchor-width`: The anchor's width.
1916
+ - `--anchor-height`: The anchor's height.
1917
+ - `--available-width`: The width between the anchor and the edge of the viewport.
1918
+ - `--available-height`: The height between the anchor and the edge of the viewport.
1919
+ - `--transform-origin`: The point of the popup nearest its anchor, to scale from.
1920
+ - popup: The menu itself: the list of items.
1921
+ - `data-open`: Present when it is open.
1922
+ - `data-closed`: Present when it is closed.
1923
+ - `data-starting-style`: Present for the first style of its entrance: what it animates in from.
1924
+ - `data-ending-style`: Present through its exit: what it animates out to. It leaves the page when the motion ends.
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.
1926
+ - `data-align="start | center | end"`: How it is aligned with the anchor.
1927
+ - arrow: An element that points at the trigger.
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.
1929
+ - `data-align="start | center | end"`: How it is aligned with the anchor.
1930
+ - `data-uncentered`: Present when the arrow cannot sit at the trigger's centre.
1931
+ - item: An action. Choosing it closes the menu.
1932
+ - `data-highlighted`: Present on the item the pointer or the keyboard is on.
1933
+ - `data-disabled`: Present when it is disabled.
1934
+ - linkItem: An item that is a link. Choosing it follows the link and closes the menu.
1935
+ - `data-highlighted`: Present on the item the pointer or the keyboard is on.
1936
+ - `data-disabled`: Present when it is disabled.
1937
+ - checkboxItem: An item that is checked or not. Choosing it leaves the menu open.
1938
+ - `data-checked`: Present when it is checked.
1939
+ - `data-unchecked`: Present when it is not checked.
1940
+ - `data-highlighted`: Present on the item the pointer or the keyboard is on.
1941
+ - `data-disabled`: Present when it is disabled.
1942
+ - checkboxItemIndicator: A mark a checkbox item shows while it is checked.
1943
+ - `data-checked`: Present when it is checked.
1944
+ - `data-unchecked`: Present when it is not checked.
1945
+ - radioGroup: Radio items of which one is chosen.
1946
+ - `data-disabled`: Present when it is disabled.
1947
+ - radioItem: One choice of a radio group. Choosing it leaves the menu open.
1948
+ - `data-checked`: Present when it is checked.
1949
+ - `data-unchecked`: Present when it is not checked.
1950
+ - `data-highlighted`: Present on the item the pointer or the keyboard is on.
1951
+ - `data-disabled`: Present when it is disabled.
1952
+ - radioItemIndicator: A mark a radio item shows while it is the chosen one.
1953
+ - `data-checked`: Present when it is checked.
1954
+ - `data-unchecked`: Present when it is not checked.
1955
+ - submenuTrigger: An item that opens a menu beside it.
1956
+ - `data-popup-open`: Present when its menu is open.
1957
+ - `data-highlighted`: Present on the item the pointer or the keyboard is on.
1958
+ - `data-disabled`: Present when it is disabled.
1959
+
1960
+ ### Menubar
1961
+
1962
+ ```
1963
+ import { KuiMenubar } from "@kirana-ui/angular"
1964
+ ```
1965
+
1966
+ Props:
1967
+
1968
+ - `loop?: boolean`: Whether the arrows go round from the last menu to the first. Default: they do.
1969
+ - `disabled?: boolean`: No menu of the bar opens.
1970
+ - `orientation?: Orientation`: A row (the default) or a column of menus. In a column a menu opens beside its trigger.
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
+
1974
+ Attributes and CSS variables, by part:
1975
+
1976
+ - root: The row of menus. A menu inside it is one of its items.
1977
+ - `data-disabled`: Present when it is disabled.
1978
+ - `data-orientation="horizontal | vertical"`: Whether its menus are in a row or a column.
1979
+
1980
+ ### MessageScroller
1981
+
1982
+ ```
1983
+ import { KuiMessageScroller, KuiMessageScrollerViewport, KuiMessageScrollerContent, KuiMessageScrollerButton } from "@kirana-ui/angular"
1984
+ ```
1985
+
1986
+ Parts: `[kuiMessageScroller]`, `[kuiMessageScrollerViewport]`, `[kuiMessageScrollerContent]`, `[kuiMessageScrollerButton]`.
1987
+
1988
+ Anatomy:
1989
+
1990
+ ```
1991
+ kuiMessageScroller
1992
+ kuiMessageScrollerViewport
1993
+ kuiMessageScrollerContent
1994
+ kuiMessageScrollerButton
1995
+ ```
1996
+
1997
+ Props of its root:
1998
+
1999
+ - `initial?: "bottom" | "top"`: Where it begins: at the newest message (the default), or at the first.
2000
+ - `threshold?: number`: How near the end counts as at it, in pixels. Default: 24.
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`.
2009
+
2010
+ Attributes and CSS variables, by part:
2011
+
2012
+ - root: What holds the conversation and its button.
2013
+ - `data-at-bottom`: Present while the newest message is in view.
2014
+ - viewport: What scrolls: a log, reached by the keyboard.
2015
+ - `data-at-bottom`: Present while the newest message is in view.
2016
+ - button: Goes to the newest message. Inert while that is in view.
2017
+ - `data-at-bottom`: Present while the newest message is in view.
2018
+
2019
+ ### Meter
2020
+
2021
+ ```
2022
+ import { KuiMeter, KuiMeterTrack, KuiMeterIndicator, KuiMeterValue, KuiMeterLabel } from "@kirana-ui/angular"
2023
+ ```
2024
+
2025
+ Parts: `[kuiMeter]`, `[kuiMeterTrack]`, `[kuiMeterIndicator]`, `[kuiMeterValue]`, `[kuiMeterLabel]`.
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
+
2054
+ ### NavigationMenu
2055
+
2056
+ ```
2057
+ import { KuiNavigationMenu, KuiNavigationMenuList, KuiNavigationMenuItem, KuiNavigationMenuTrigger, KuiNavigationMenuIcon, KuiNavigationMenuContent, KuiNavigationMenuLink, KuiNavigationMenuPortal, KuiNavigationMenuPositioner, KuiNavigationMenuPopup, KuiNavigationMenuViewport, KuiNavigationMenuArrow, KuiNavigationMenuBackdrop } from "@kirana-ui/angular"
2058
+ ```
2059
+
2060
+ Parts: `[kuiNavigationMenu]`, `[kuiNavigationMenuList]`, `[kuiNavigationMenuItem]`, `[kuiNavigationMenuTrigger]`, `[kuiNavigationMenuIcon]`, `[kuiNavigationMenuContent]`, `[kuiNavigationMenuLink]`, `[kuiNavigationMenuPortal]`, `[kuiNavigationMenuPositioner]`, `[kuiNavigationMenuPopup]`, `[kuiNavigationMenuViewport]`, `[kuiNavigationMenuArrow]`, `[kuiNavigationMenuBackdrop]`.
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
+
2082
+ Props of its root:
2083
+
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.
2086
+ - `delay?: number`: How long the pointer rests on a trigger before its content shows, in milliseconds.
2087
+ - `closeDelay?: number`: How long after the pointer leaves the content goes, in milliseconds.
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`.
2109
+
2110
+ Attributes and CSS variables, by part:
2111
+
2112
+ - root: The navigation.
2113
+ - `data-orientation="horizontal | vertical"`: Whether the list is a row or a column.
2114
+ - list: The row of items.
2115
+ - `data-orientation="horizontal | vertical"`: Whether the list is a row or a column.
2116
+ - trigger: The button that shows an item's content.
2117
+ - `data-popup-open`: Present while the item's content is shown.
2118
+ - icon: A mark on a trigger that shows whether its content is open.
2119
+ - `data-popup-open`: Present while the item's content is shown.
2120
+ - content: What an item shows. It is drawn in the viewport every item shares.
2121
+ - `data-open`: Present when it is open.
2122
+ - `data-closed`: Present when it is closed.
2123
+ - `data-starting-style`: Present for the first style of its entrance: what it animates in from.
2124
+ - `data-ending-style`: Present through its exit: what it animates out to. It leaves the page when the motion ends.
2125
+ - `data-activation-direction="left | right"`: Which way it came from: the item before it, or after.
2126
+ - link: A link, in the list or in an item's content.
2127
+ - `data-active`: Present on the link of the page the reader is on.
2128
+ - positioner: Places the popup against the open item's trigger. It carries the geometry.
2129
+ - `data-open`: Present when it is open.
2130
+ - `data-closed`: Present when it is closed.
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.
2132
+ - `data-align="start | center | end"`: How it is aligned with the anchor.
2133
+ - `--anchor-width`: The anchor's width.
2134
+ - `--anchor-height`: The anchor's height.
2135
+ - `--available-width`: The width between the anchor and the edge of the viewport.
2136
+ - `--available-height`: The height between the anchor and the edge of the viewport.
2137
+ - `--transform-origin`: The point of the popup nearest its anchor, to scale from.
2138
+ - `--positioner-width`: The open content's width.
2139
+ - `--positioner-height`: The open content's height.
2140
+ - popup: The panel every item's content is shown in.
2141
+ - `data-open`: Present when it is open.
2142
+ - `data-closed`: Present when it is closed.
2143
+ - `data-starting-style`: Present for the first style of its entrance: what it animates in from.
2144
+ - `data-ending-style`: Present through its exit: what it animates out to. It leaves the page when the motion ends.
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.
2146
+ - `data-align="start | center | end"`: How it is aligned with the anchor.
2147
+ - `--popup-width`: The open content's width.
2148
+ - `--popup-height`: The open content's height.
2149
+ - arrow: An element that points at the open item's trigger.
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.
2151
+ - `data-align="start | center | end"`: How it is aligned with the anchor.
2152
+ - `data-uncentered`: Present when the arrow cannot sit at the trigger's centre.
2153
+ - backdrop: An element behind the popup, for a design that dims the page.
2154
+ - `data-open`: Present when it is open.
2155
+ - `data-closed`: Present when it is closed.
2156
+ - `data-starting-style`: Present for the first style of its entrance: what it animates in from.
2157
+ - `data-ending-style`: Present through its exit: what it animates out to. It leaves the page when the motion ends.
2158
+
2159
+ ### NumberField
2160
+
2161
+ ```
2162
+ import { KuiNumberField, KuiNumberFieldGroup, KuiNumberFieldInput, KuiNumberFieldIncrement, KuiNumberFieldDecrement } from "@kirana-ui/angular"
2163
+ ```
2164
+
2165
+ Parts: `[kuiNumberField]`, `[kuiNumberFieldGroup]`, `[kuiNumberFieldInput]`, `[kuiNumberFieldIncrement]`, `[kuiNumberFieldDecrement]`.
2166
+
2167
+ Anatomy:
2168
+
2169
+ ```
2170
+ kuiNumberField
2171
+ kuiNumberFieldGroup
2172
+ kuiNumberFieldInput
2173
+ kuiNumberFieldIncrement
2174
+ kuiNumberFieldDecrement
2175
+ ```
2176
+
2177
+ Props of its root:
2178
+
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.
2183
+ - `step?: number`: What the buttons and the arrows move by. Default 1.
2184
+ - `smallStep?: number`: With Alt held. Default 0.1.
2185
+ - `largeStep?: number`: With Shift held. Default 10.
2186
+ - `snapOnStep?: boolean`: A step lands on a multiple of the step, counted from `min`.
2187
+ - `allowWheelScrub?: boolean`: The wheel steps it while the pointer is over the input and focus is in it.
2188
+ - `format?: Intl.NumberFormatOptions`: How the number is written.
2189
+ - `locale?: string`: The language it is written in; the page's by default.
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.
2193
+ - `name?: string`: With a name, the number is submitted with the form around it.
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`.
2205
+
2206
+ Attributes and CSS variables, by part:
2207
+
2208
+ - root: Groups the number field's parts.
2209
+ - `data-disabled`: Present when it is disabled.
2210
+ - `data-readonly`: Present when the number cannot be changed.
2211
+ - `data-required`: Present when a number must be given.
2212
+ - `data-touched`: Present once focus has left the input.
2213
+ - `data-dirty`: Present while the number is not the one it started with.
2214
+ - `data-filled`: Present while there is a number.
2215
+ - `data-focused`: Present while the input has focus.
2216
+ - `data-valid`: In a field: present once the number was checked and found right.
2217
+ - `data-invalid`: In a field: present while the number is wrong.
2218
+ - group: What holds the input and its buttons, as one control.
2219
+ - `data-disabled`: Present when it is disabled.
2220
+ - `data-readonly`: Present when the number cannot be changed.
2221
+ - `data-required`: Present when a number must be given.
2222
+ - `data-touched`: Present once focus has left the input.
2223
+ - `data-dirty`: Present while the number is not the one it started with.
2224
+ - `data-filled`: Present while there is a number.
2225
+ - `data-focused`: Present while the input has focus.
2226
+ - `data-valid`: In a field: present once the number was checked and found right.
2227
+ - `data-invalid`: In a field: present while the number is wrong.
2228
+ - input: The text input: it takes what its locale writes a number with.
2229
+ - `data-disabled`: Present when it is disabled.
2230
+ - `data-readonly`: Present when the number cannot be changed.
2231
+ - `data-required`: Present when a number must be given.
2232
+ - `data-touched`: Present once focus has left the input.
2233
+ - `data-dirty`: Present while the number is not the one it started with.
2234
+ - `data-filled`: Present while there is a number.
2235
+ - `data-focused`: Present while the input has focus.
2236
+ - `data-valid`: In a field: present once the number was checked and found right.
2237
+ - `data-invalid`: In a field: present while the number is wrong.
2238
+ - increment: A button that steps the number up. Held, it goes on.
2239
+ - `data-disabled`: Present when it is disabled.
2240
+ - `data-readonly`: Present when the number cannot be changed.
2241
+ - `data-required`: Present when a number must be given.
2242
+ - `data-touched`: Present once focus has left the input.
2243
+ - `data-dirty`: Present while the number is not the one it started with.
2244
+ - `data-filled`: Present while there is a number.
2245
+ - `data-focused`: Present while the input has focus.
2246
+ - `data-valid`: In a field: present once the number was checked and found right.
2247
+ - `data-invalid`: In a field: present while the number is wrong.
2248
+ - decrement: A button that steps the number down. Held, it goes on.
2249
+ - `data-disabled`: Present when it is disabled.
2250
+ - `data-readonly`: Present when the number cannot be changed.
2251
+ - `data-required`: Present when a number must be given.
2252
+ - `data-touched`: Present once focus has left the input.
2253
+ - `data-dirty`: Present while the number is not the one it started with.
2254
+ - `data-filled`: Present while there is a number.
2255
+ - `data-focused`: Present while the input has focus.
2256
+ - `data-valid`: In a field: present once the number was checked and found right.
2257
+ - `data-invalid`: In a field: present while the number is wrong.
2258
+
2259
+ ### Otp
2260
+
2261
+ ```
2262
+ import { KuiOtp, KuiOtpInput, KuiOtpGroup, KuiOtpSlot, KuiOtpSeparator, KuiOtpCaret } from "@kirana-ui/angular"
2263
+ ```
2264
+
2265
+ Parts: `[kuiOtp]`, `input[kuiOtpInput]`, `[kuiOtpGroup]`, `[kuiOtpSlot]`, `[kuiOtpSeparator]`, `[kuiOtpCaret]`.
2266
+
2267
+ Anatomy:
2268
+
2269
+ ```
2270
+ kuiOtp
2271
+ input[kuiOtpInput]
2272
+ kuiOtpGroup (repeated)
2273
+ kuiOtpSlot (repeated)
2274
+ *kuiOtpCaret
2275
+ kuiOtpSeparator (repeated)
2276
+ ```
2277
+
2278
+ Props of its root:
2279
+
2280
+ - `length?: number`: How many characters the code has. Default: 6.
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.
2283
+ - `mode?: "numeric" | "alphanumeric" | "text"`: What a character may be. Default: `numeric`.
2284
+ - `disabled?: boolean`: Disabled: it cannot be changed.
2285
+ - `name?: string`: With a name, the code is submitted with the form around it.
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.
2299
+
2300
+ Attributes and CSS variables, by part:
2301
+
2302
+ - root: The code: the input and its cells.
2303
+ - `data-disabled`: Present when it is disabled.
2304
+ - `data-focused`: Present while the input has focus.
2305
+ - `data-complete`: Present when every character is in.
2306
+ - input: The one input the code is typed in. A design lays it over the cells, unseen.
2307
+ - `data-disabled`: Present when it is disabled.
2308
+ - slot: One cell of the code.
2309
+ - `data-index`: The cell's place, from 0.
2310
+ - `data-active`: Present on the cell the next character goes in, or that is selected.
2311
+ - `data-filled`: Present when the cell has its character.
2312
+ - `data-disabled`: Present when it is disabled.
2313
+
2314
+ ### Pagination
2315
+
2316
+ ```
2317
+ import { KuiPagination, KuiPaginationItems, KuiPaginationItem, KuiPaginationEllipsis, KuiPaginationPrevious, KuiPaginationNext } from "@kirana-ui/angular"
2318
+ ```
2319
+
2320
+ Parts: `[kuiPagination]`, `[kuiPaginationItems]`, `[kuiPaginationItem]`, `[kuiPaginationEllipsis]`, `[kuiPaginationPrevious]`, `[kuiPaginationNext]`.
2321
+
2322
+ Anatomy:
2323
+
2324
+ ```
2325
+ kuiPagination
2326
+ *kuiPaginationItems
2327
+ kuiPaginationItem (repeated)
2328
+ kuiPaginationEllipsis (repeated)
2329
+ kuiPaginationPrevious
2330
+ kuiPaginationNext
2331
+ ```
2332
+
2333
+ Props of its root:
2334
+
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.
2338
+ - `pageSize?: number`: How many items a page holds. Default 10.
2339
+ - `siblingCount?: number`: How many pages are listed each side of the one shown. Default 1.
2340
+ - `boundaryCount?: number`: How many pages are always listed at each end. Default 1.
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`.
2353
+
2354
+ Attributes and CSS variables, by part:
2355
+
2356
+ - root: The pages of a list, as a navigation.
2357
+ - `data-disabled`: Present when it is disabled.
2358
+ - item: A page: pressed, it is the one shown.
2359
+ - `data-selected`: Present on the page that is shown.
2360
+ - `data-disabled`: Present when it is disabled.
2361
+ - previous: Goes to the page before.
2362
+ - `data-disabled`: Present when it is disabled.
2363
+ - next: Goes to the page after.
2364
+ - `data-disabled`: Present when it is disabled.
2365
+
2366
+ ### Popover
2367
+
2368
+ ```
2369
+ import { KuiPopover, KuiPopoverTrigger, KuiPopoverPortal, KuiPopoverPositioner, KuiPopoverPopup, KuiPopoverTitle, KuiPopoverDescription, KuiPopoverClose } from "@kirana-ui/angular"
2370
+ ```
2371
+
2372
+ Parts: `[kuiPopover]`, `[kuiPopoverTrigger]`, `[kuiPopoverPortal]`, `[kuiPopoverPositioner]`, `[kuiPopoverPopup]`, `[kuiPopoverTitle]`, `[kuiPopoverDescription]`, `[kuiPopoverClose]`.
2373
+
2374
+ Anatomy:
2375
+
2376
+ ```
2377
+ kuiPopover
2378
+ kuiPopoverTrigger
2379
+ *kuiPopoverPortal
2380
+ kuiPopoverPositioner
2381
+ kuiPopoverPopup
2382
+ kuiPopoverTitle
2383
+ kuiPopoverDescription
2384
+ kuiPopoverClose
2385
+ ```
2386
+
2387
+ Props of its root:
2388
+
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.
2403
+
2404
+ Attributes and CSS variables, by part:
2405
+
2406
+ - trigger: The button that opens the popover, and what it is placed against.
2407
+ - `data-popup-open`: Present when the popover is open.
2408
+ - positioner: Places the popup against the trigger. It carries the geometry.
2409
+ - `data-open`: Present when it is open.
2410
+ - `data-closed`: Present when it is closed.
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.
2412
+ - `data-align="start | center | end"`: How it is aligned with the anchor.
2413
+ - `--anchor-width`: The anchor's width.
2414
+ - `--anchor-height`: The anchor's height.
2415
+ - `--available-width`: The width between the anchor and the edge of the viewport.
2416
+ - `--available-height`: The height between the anchor and the edge of the viewport.
2417
+ - `--transform-origin`: The point of the popup nearest its anchor, to scale from.
2418
+ - popup: The popover itself.
2419
+ - `data-open`: Present when it is open.
2420
+ - `data-closed`: Present when it is closed.
2421
+ - `data-starting-style`: Present for the first style of its entrance: what it animates in from.
2422
+ - `data-ending-style`: Present through its exit: what it animates out to. It leaves the page when the motion ends.
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.
2424
+ - `data-align="start | center | end"`: How it is aligned with the anchor.
2425
+
2426
+ ### Progress
2427
+
2428
+ ```
2429
+ import { KuiProgress, KuiProgressTrack, KuiProgressIndicator, KuiProgressValue, KuiProgressLabel } from "@kirana-ui/angular"
2430
+ ```
2431
+
2432
+ Parts: `[kuiProgress]`, `[kuiProgressTrack]`, `[kuiProgressIndicator]`, `[kuiProgressValue]`, `[kuiProgressLabel]`.
2433
+
2434
+ Anatomy:
2435
+
2436
+ ```
2437
+ kuiProgress
2438
+ kuiProgressTrack
2439
+ kuiProgressIndicator
2440
+ kuiProgressValue
2441
+ kuiProgressLabel
2442
+ ```
2443
+
2444
+ Props of its root:
2445
+
2446
+ - `value: number | null`: Required. The value. For a progress bar, `null` is "under way, how far is not known".
2447
+ - `min?: number`: Default 0.
2448
+ - `max?: number`: Default 100.
2449
+ - `format?: Intl.NumberFormatOptions`: How the value is written; a percentage of the range by default.
2450
+ - `locale?: string`: The language the value is written in; the page's by default.
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`.
2460
+
2461
+ Attributes and CSS variables, by part:
2462
+
2463
+ - root: The progress bar: it says the value to assistive technology.
2464
+ - `data-progressing`: Present while the task is under way.
2465
+ - `data-complete`: Present once the value has reached the end of the range.
2466
+ - `data-indeterminate`: Present while how far the task has come is not known.
2467
+ - track: The whole range.
2468
+ - `data-progressing`: Present while the task is under way.
2469
+ - `data-complete`: Present once the value has reached the end of the range.
2470
+ - `data-indeterminate`: Present while how far the task has come is not known.
2471
+ - indicator: The filled part: its width is the value's share of the range.
2472
+ - `data-progressing`: Present while the task is under way.
2473
+ - `data-complete`: Present once the value has reached the end of the range.
2474
+ - `data-indeterminate`: Present while how far the task has come is not known.
2475
+ - value: The value, written.
2476
+ - `data-progressing`: Present while the task is under way.
2477
+ - `data-complete`: Present once the value has reached the end of the range.
2478
+ - `data-indeterminate`: Present while how far the task has come is not known.
2479
+ - label: The bar's name.
2480
+ - `data-progressing`: Present while the task is under way.
2481
+ - `data-complete`: Present once the value has reached the end of the range.
2482
+ - `data-indeterminate`: Present while how far the task has come is not known.
2483
+
2484
+ ### QrCode
2485
+
2486
+ ```
2487
+ import { KuiQrCode, KuiQrCodeFrame, KuiQrCodePattern } from "@kirana-ui/angular"
2488
+ ```
2489
+
2490
+ Parts: `[kuiQrCode]`, `[kuiQrCodeFrame]`, `[kuiQrCodePattern]`.
2491
+
2492
+ Anatomy:
2493
+
2494
+ ```
2495
+ kuiQrCode
2496
+ kuiQrCodeFrame
2497
+ kuiQrCodePattern
2498
+ ```
2499
+
2500
+ Props of its root:
2501
+
2502
+ - `value?: string`: What the code says: a link, a text.
2503
+ - `correction?: QrCorrection`: How much of it may be lost and still be read. Default: `"M"`.
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
+
2511
+ Attributes and CSS variables, by part:
2512
+
2513
+ - root: What holds the code.
2514
+ - `data-invalid`: Present when the value is longer than a code holds.
2515
+
2516
+ ### RadioGroup
2517
+
2518
+ ```
2519
+ import { KuiRadioGroup, KuiRadioGroupItem, KuiRadioGroupIndicator } from "@kirana-ui/angular"
2520
+ ```
2521
+
2522
+ Parts: `[kuiRadioGroup]`, `[kuiRadioGroupItem]`, `[kuiRadioGroupIndicator]`.
2523
+
2524
+ Anatomy:
2525
+
2526
+ ```
2527
+ kuiRadioGroup
2528
+ kuiRadioGroupItem (repeated)
2529
+ *kuiRadioGroupIndicator
2530
+ ```
2531
+
2532
+ Props of its root:
2533
+
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.
2539
+ - `name?: string`: With a name, the chosen value is submitted with the form around the group.
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.
2550
+
2551
+ Attributes and CSS variables, by part:
2552
+
2553
+ - root: Groups the items: one of them is chosen at most.
2554
+ - `data-disabled`: Present when it is disabled.
2555
+ - `data-readonly`: Present when it can be read but not changed.
2556
+ - `data-required`: Present when the form needs it.
2557
+ - item: One choice. It holds a hidden native radio, which a form and a label reach.
2558
+ - `data-checked`: Present when it is checked.
2559
+ - `data-unchecked`: Present when it is not checked.
2560
+ - `data-disabled`: Present when it is disabled.
2561
+ - `data-readonly`: Present when it can be read but not changed.
2562
+ - `data-required`: Present when the form needs it.
2563
+ - indicator: The mark. In the page while its item is the chosen one.
2564
+ - `data-checked`: Present when it is checked.
2565
+ - `data-unchecked`: Present when it is not checked.
2566
+ - `data-disabled`: Present when it is disabled.
2567
+ - `data-readonly`: Present when it can be read but not changed.
2568
+ - `data-required`: Present when the form needs it.
2569
+ - `data-starting-style`: Present for the first style of its entrance: what it animates in from.
2570
+ - `data-ending-style`: Present through its exit: what it animates out to. It leaves the page when the motion ends.
2571
+
2572
+ ### Resizable
2573
+
2574
+ ```
2575
+ import { KuiResizableGroup, KuiResizablePanel, KuiResizableHandle } from "@kirana-ui/angular"
2576
+ ```
2577
+
2578
+ Parts: `[kuiResizableGroup]`, `[kuiResizablePanel]`, `[kuiResizableHandle]`.
2579
+
2580
+ Anatomy:
2581
+
2582
+ ```
2583
+ kuiResizableGroup
2584
+ kuiResizablePanel (repeated)
2585
+ kuiResizableHandle (repeated)
2586
+ ```
2587
+
2588
+ Props of its root:
2589
+
2590
+ - `orientation?: Orientation`: Whether the panels are side by side (the default) or one over the other.
2591
+ - `keyboardStep?: number`: How far an arrow key moves a handle, in hundredths of the group. Default: 10.
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.
2604
+
2605
+ Attributes and CSS variables, by part:
2606
+
2607
+ - group: The panels and the bars between them. A design lays it out as a flex box.
2608
+ - `data-orientation="horizontal | vertical"`: Whether the panels are side by side or one over the other.
2609
+ - `data-disabled`: Present when it is disabled.
2610
+ - panel: One panel. It carries its share of the group.
2611
+ - `data-orientation="horizontal | vertical"`: Whether the panels are side by side or one over the other.
2612
+ - `--panel-size`: The panel's share, in hundredths of the group.
2613
+ - handle: The bar between two panels: dragged, or moved with the arrows.
2614
+ - `data-orientation="horizontal | vertical"`: Whether the panels are side by side or one over the other.
2615
+ - `data-dragging`: Present while the bar is dragged.
2616
+ - `data-disabled`: Present when it is disabled.
2617
+
2618
+ ### ScrollArea
2619
+
2620
+ ```
2621
+ import { KuiScrollArea, KuiScrollAreaViewport, KuiScrollAreaContent, KuiScrollAreaScrollbar, KuiScrollAreaThumb, KuiScrollAreaCorner } from "@kirana-ui/angular"
2622
+ ```
2623
+
2624
+ Parts: `[kuiScrollArea]`, `[kuiScrollAreaViewport]`, `[kuiScrollAreaContent]`, `[kuiScrollAreaScrollbar]`, `[kuiScrollAreaThumb]`, `[kuiScrollAreaCorner]`.
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
+
2648
+ Attributes and CSS variables, by part:
2649
+
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.
2651
+ - `data-has-overflow-x`: Present when there is more to see sideways.
2652
+ - `data-has-overflow-y`: Present when there is more to see up or down.
2653
+ - `data-scrolling`: Present while it is being scrolled, and a moment after.
2654
+ - `data-hovering`: Present while the pointer is over the area.
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.
2657
+ - viewport: The element that scrolls.
2658
+ - `data-has-overflow-x`: Present when there is more to see sideways.
2659
+ - `data-has-overflow-y`: Present when there is more to see up or down.
2660
+ - `data-scrolling`: Present while it is being scrolled, and a moment after.
2661
+ - scrollbar: A scrollbar's track, placed along its edge of the area. In the page while there is something to scroll its way.
2662
+ - `data-orientation="horizontal | vertical"`: Which way the scrollbar scrolls.
2663
+ - `data-hovering`: Present while the pointer is over the area.
2664
+ - `data-scrolling`: Present while the area is scrolled its way.
2665
+ - `--scroll-area-thumb-height`: A vertical thumb's height.
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.
2669
+
2670
+ ### Select
2671
+
2672
+ ```
2673
+ import { KuiSelect, KuiSelectTrigger, KuiSelectValue, KuiSelectPortal, KuiSelectPositioner, KuiSelectPopup, KuiSelectList, KuiSelectScrollUpArrow, KuiSelectScrollDownArrow, KuiSelectGroup, KuiSelectGroupLabel, KuiSelectSeparator, KuiSelectItem, KuiSelectItemText, KuiSelectItemIndicator, KuiSelectInput } from "@kirana-ui/angular"
2674
+ ```
2675
+
2676
+ Parts: `[kuiSelect]`, `[kuiSelectTrigger]`, `[kuiSelectValue]`, `[kuiSelectPortal]`, `[kuiSelectPositioner]`, `[kuiSelectPopup]`, `[kuiSelectList]`, `[kuiSelectScrollUpArrow]`, `[kuiSelectScrollDownArrow]`, `[kuiSelectGroup]`, `[kuiSelectGroupLabel]`, `[kuiSelectSeparator]`, `[kuiSelectItem]`, `[kuiSelectItemText]`, `[kuiSelectItemIndicator]`.
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
+
2699
+ Props of its root:
2700
+
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.
2706
+ - `required?: boolean`: In a field, "none" is then wrong.
2707
+ - `name?: string`: With a name, the value is submitted with the form around it.
2708
+ - `form?: string`: The id of the form the control belongs to, when it is not inside it.
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.
2742
+
2743
+ Attributes and CSS variables, by part:
2744
+
2745
+ - trigger: The button that shows the value and opens the list.
2746
+ - `data-popup-open`: Present when the list is open.
2747
+ - `data-placeholder`: Present while nothing is chosen.
2748
+ - `data-disabled`: Present when it is disabled.
2749
+ - value: The chosen value's label, or the placeholder. With several values, their labels with commas between.
2750
+ - `data-placeholder`: Present while nothing is chosen.
2751
+ - positioner: Places the list against the trigger. It carries the geometry.
2752
+ - `data-open`: Present when it is open.
2753
+ - `data-closed`: Present when it is closed.
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.
2755
+ - `data-align="start | center | end"`: How it is aligned with the anchor.
2756
+ - `--anchor-width`: The anchor's width.
2757
+ - `--anchor-height`: The anchor's height.
2758
+ - `--available-width`: The width between the anchor and the edge of the viewport.
2759
+ - `--available-height`: The height between the anchor and the edge of the viewport.
2760
+ - `--transform-origin`: The point of the popup nearest its anchor, to scale from.
2761
+ - scrollUpArrow: In the page while there is more of the list above: it scrolls the list while the pointer moves over it.
2762
+ - `data-direction="up | down"`: The way it scrolls the list.
2763
+ - `data-visible`: Present while there is more of the list its way.
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.
2765
+ - `data-starting-style`: Present for the first style of its entrance: what it animates in from.
2766
+ - `data-ending-style`: Present through its exit: what it animates out to. It leaves the page when the motion ends.
2767
+ - scrollDownArrow: In the page while there is more of the list below: it scrolls the list while the pointer moves over it.
2768
+ - `data-direction="up | down"`: The way it scrolls the list.
2769
+ - `data-visible`: Present while there is more of the list its way.
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.
2771
+ - `data-starting-style`: Present for the first style of its entrance: what it animates in from.
2772
+ - `data-ending-style`: Present through its exit: what it animates out to. It leaves the page when the motion ends.
2773
+ - popup: The list of items.
2774
+ - `data-open`: Present when it is open.
2775
+ - `data-closed`: Present when it is closed.
2776
+ - `data-starting-style`: Present for the first style of its entrance: what it animates in from.
2777
+ - `data-ending-style`: Present through its exit: what it animates out to. It leaves the page when the motion ends.
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.
2779
+ - `data-align="start | center | end"`: How it is aligned with the anchor.
2780
+ - item: One choice in the list.
2781
+ - `data-selected`: Present on the chosen item, or on each of several.
2782
+ - `data-highlighted`: Present on the item the pointer or the keyboard is on.
2783
+ - `data-disabled`: Present when it is disabled.
2784
+
2785
+ ### Separator
2786
+
2787
+ ```
2788
+ import { KuiSeparator } from "@kirana-ui/angular"
2789
+ ```
2790
+
2791
+ Props:
2792
+
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"`.
2796
+
2797
+ Attributes and CSS variables, by part:
2798
+
2799
+ - root: The line.
2800
+ - `data-orientation="horizontal | vertical"`: The way the line runs.
2801
+
2802
+ ### Slider
2803
+
2804
+ ```
2805
+ import { KuiSlider, KuiSliderValue, KuiSliderControl, KuiSliderTrack, KuiSliderIndicator, KuiSliderThumb } from "@kirana-ui/angular"
2806
+ ```
2807
+
2808
+ Parts: `[kuiSlider]`, `[kuiSliderValue]`, `[kuiSliderControl]`, `[kuiSliderTrack]`, `[kuiSliderIndicator]`, `[kuiSliderThumb]`.
2809
+
2810
+ Anatomy:
2811
+
2812
+ ```
2813
+ kuiSlider
2814
+ kuiSliderValue
2815
+ kuiSliderControl
2816
+ kuiSliderTrack
2817
+ kuiSliderIndicator
2818
+ kuiSliderThumb (repeated)
2819
+ ```
2820
+
2821
+ Props of its root:
2822
+
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`.
2825
+ - `min?: number`: Default 0.
2826
+ - `max?: number`: Default 100.
2827
+ - `step?: number`: Default 1.
2828
+ - `largeStep?: number`: What Page Up, Page Down and an arrow with Shift move by. Default 10.
2829
+ - `minStepsBetweenValues?: number`: How many steps two thumbs of a range stay apart. Default 0.
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.
2833
+ - `name?: string`: With a name, each thumb's value is submitted with the form around the slider.
2834
+ - `form?: string`: The id of the form the control belongs to, when it is not inside it.
2835
+ - `format?: Intl.NumberFormatOptions`: How a value is written.
2836
+ - `locale?: string`: The language a value is written in; the page's by default.
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.
2850
+
2851
+ Attributes and CSS variables, by part:
2852
+
2853
+ - root: Groups the slider's parts.
2854
+ - `data-orientation="horizontal | vertical"`: The way the track runs.
2855
+ - `data-disabled`: Present when it is disabled.
2856
+ - `data-dragging`: Present while a pointer holds a thumb.
2857
+ - value: The value, written.
2858
+ - `data-orientation="horizontal | vertical"`: The way the track runs.
2859
+ - `data-disabled`: Present when it is disabled.
2860
+ - `data-dragging`: Present while a pointer holds a thumb.
2861
+ - control: What a pointer presses and drags on. It holds the track and the thumbs.
2862
+ - `data-orientation="horizontal | vertical"`: The way the track runs.
2863
+ - `data-disabled`: Present when it is disabled.
2864
+ - `data-dragging`: Present while a pointer holds a thumb.
2865
+ - track: The whole range.
2866
+ - `data-orientation="horizontal | vertical"`: The way the track runs.
2867
+ - `data-disabled`: Present when it is disabled.
2868
+ - `data-dragging`: Present while a pointer holds a thumb.
2869
+ - indicator: The filled part: up to the thumb, or from the first thumb to the last. Its place and length are written on it.
2870
+ - `data-orientation="horizontal | vertical"`: The way the track runs.
2871
+ - `data-disabled`: Present when it is disabled.
2872
+ - `data-dragging`: Present while a pointer holds a thumb.
2873
+ - `--start-position`: With thumbs that stay inside the control: where the filled part starts, or with one thumb where it ends.
2874
+ - `--relative-size`: With thumbs that stay inside the control and a range: the filled part's length.
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.
2876
+ - `data-orientation="horizontal | vertical"`: The way the track runs.
2877
+ - `data-disabled`: Present when it is disabled.
2878
+ - `data-dragging`: Present while a pointer holds a thumb.
2879
+ - `data-index`: Which thumb it is, from 0.
2880
+ - `--position`: With thumbs that stay inside the control: where the thumb's centre is.
2881
+
2882
+ ### Switch
2883
+
2884
+ ```
2885
+ import { KuiSwitch, KuiSwitchThumb } from "@kirana-ui/angular"
2886
+ ```
2887
+
2888
+ Parts: `[kuiSwitch]`, `[kuiSwitchThumb]`.
2889
+
2890
+ Anatomy:
2891
+
2892
+ ```
2893
+ kuiSwitch
2894
+ kuiSwitchThumb
2895
+ ```
2896
+
2897
+ Props of its root:
2898
+
2899
+ - `[(checked)]: boolean`: Whether it is checked, when the caller holds it.
2900
+ - `defaultChecked?: boolean`: Read once.
2901
+ - `disabled?: boolean`: Disabled: it cannot be changed.
2902
+ - `readOnly?: boolean`: Shown as it is, focusable, not changeable.
2903
+ - `required?: boolean`: Needed: in a `Field`, leaving it unchecked is then invalid.
2904
+ - `name?: string`: With a name, the control is submitted with the form around it when it is checked.
2905
+ - `form?: string`: The id of the form the control belongs to, when it is not inside it.
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`.
2913
+
2914
+ Attributes and CSS variables, by part:
2915
+
2916
+ - root: The track. It holds a hidden native checkbox, which a form and a label reach.
2917
+ - `data-checked`: Present when it is checked.
2918
+ - `data-unchecked`: Present when it is not checked.
2919
+ - `data-disabled`: Present when it is disabled.
2920
+ - `data-readonly`: Present when it can be read but not changed.
2921
+ - `data-required`: Present when the form needs it.
2922
+ - thumb: The knob that moves along the track.
2923
+ - `data-checked`: Present when it is checked.
2924
+ - `data-unchecked`: Present when it is not checked.
2925
+ - `data-disabled`: Present when it is disabled.
2926
+ - `data-readonly`: Present when it can be read but not changed.
2927
+ - `data-required`: Present when the form needs it.
2928
+
2929
+ ### Tabs
2930
+
2931
+ ```
2932
+ import { KuiTabs, KuiTabsList, KuiTabsTab, KuiTabsIndicator, KuiTabsPanel } from "@kirana-ui/angular"
2933
+ ```
2934
+
2935
+ Parts: `[kuiTabs]`, `[kuiTabsList]`, `[kuiTabsTab]`, `[kuiTabsIndicator]`, `[kuiTabsPanel]`.
2936
+
2937
+ Anatomy:
2938
+
2939
+ ```
2940
+ kuiTabs
2941
+ kuiTabsList
2942
+ kuiTabsTab (repeated)
2943
+ kuiTabsIndicator
2944
+ *kuiTabsPanel (repeated)
2945
+ ```
2946
+
2947
+ Props of its root:
2948
+
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.
2967
+
2968
+ Attributes and CSS variables, by part:
2969
+
2970
+ - root: Groups the tabs and their panels.
2971
+ - `data-orientation="horizontal | vertical"`: The way the tabs are laid out.
2972
+ - `data-activation-direction="left | right | up | down | none"`: Where the newly active tab is from the one before, for a panel or a mark that slides.
2973
+ - list: The row of tabs. The arrows move between them.
2974
+ - `data-orientation="horizontal | vertical"`: The way the tabs are laid out.
2975
+ - `data-activation-direction="left | right | up | down | none"`: Where the newly active tab is from the one before, for a panel or a mark that slides.
2976
+ - tab: A button that shows its panel.
2977
+ - `data-active`: Present on the tab whose panel is shown.
2978
+ - `data-disabled`: Present when it is disabled.
2979
+ - `data-orientation="horizontal | vertical"`: The way the tabs are laid out.
2980
+ - indicator: A mark for the active tab: it carries that tab's position and size.
2981
+ - `data-orientation="horizontal | vertical"`: The way the tabs are laid out.
2982
+ - `data-activation-direction="left | right | up | down | none"`: Where the newly active tab is from the one before, for a panel or a mark that slides.
2983
+ - `--active-tab-left`: The active tab's distance from the list's left edge.
2984
+ - `--active-tab-right`: The active tab's distance from the list's right edge.
2985
+ - `--active-tab-top`: The active tab's distance from the list's top edge.
2986
+ - `--active-tab-bottom`: The active tab's distance from the list's bottom edge.
2987
+ - `--active-tab-width`: The active tab's width.
2988
+ - `--active-tab-height`: The active tab's height.
2989
+ - panel: A tab's content. In the page while its tab is active, and through its exit.
2990
+ - `data-hidden`: Present while its tab is not the active one.
2991
+ - `data-orientation="horizontal | vertical"`: The way the tabs are laid out.
2992
+ - `data-activation-direction="left | right | up | down | none"`: Where the newly active tab is from the one before, for a panel or a mark that slides.
2993
+ - `data-starting-style`: Present for the first style of its entrance: what it animates in from.
2994
+ - `data-ending-style`: Present through its exit: what it animates out to. It leaves the page when the motion ends.
2995
+
2996
+ ### Toast
2997
+
2998
+ ```
2999
+ import { KuiToastViewport, KuiToastList, KuiToastRoot, KuiToastContent, KuiToastTitle, KuiToastDescription, KuiToastClose, KuiToastAction } from "@kirana-ui/angular"
3000
+ ```
3001
+
3002
+ Parts: `[kuiToastViewport]`, `[kuiToastList]`, `[kuiToastRoot]`, `[kuiToastContent]`, `[kuiToastTitle]`, `[kuiToastDescription]`, `[kuiToastClose]`, `[kuiToastAction]`.
3003
+
3004
+ Anatomy:
3005
+
3006
+ ```
3007
+ kuiToastViewport
3008
+ *kuiToastList
3009
+ kuiToastRoot (repeated)
3010
+ kuiToastContent (optional)
3011
+ kuiToastTitle
3012
+ kuiToastDescription
3013
+ kuiToastClose
3014
+ kuiToastAction
3015
+ ```
3016
+
3017
+ Props of its root:
3018
+
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".
3037
+
3038
+ Attributes and CSS variables, by part:
3039
+
3040
+ - viewport: Where the toasts are drawn: a region that is always in the page.
3041
+ - `data-expanded`: Present while the pointer or focus is on the stack: the toasts are spread out, and wait.
3042
+ - `--toast-frontmost-height`: The height of the newest toast.
3043
+ - root: One toast.
3044
+ - `data-starting-style`: Present for the first style of its entrance: what it animates in from.
3045
+ - `data-ending-style`: Present through its exit: what it animates out to. It leaves the page when the motion ends.
3046
+ - `data-expanded`: Present while the pointer or focus is on the stack: the toasts are spread out, and wait.
3047
+ - `data-type`: The kind the toast was added as.
3048
+ - `data-limited`: Present on a toast behind as many as are shown at once.
3049
+ - `data-swiping`: Present while the toast is dragged.
3050
+ - `data-swipe-direction="left | right | up | down"`: The way the toast was dragged out, once it has been.
3051
+ - `--toast-index`: Its place in the stack: 0 for the newest.
3052
+ - `--toast-height`: Its height.
3053
+ - `--toast-offset-y`: The height of the toasts in front of it.
3054
+ - `--toast-swipe-movement-x`: How far it has been dragged across.
3055
+ - `--toast-swipe-movement-y`: How far it has been dragged up or down.
3056
+ - content: What holds a toast's contents, when the design sizes the toast itself.
3057
+ - `data-behind`: Present on a toast that is behind the newest.
3058
+ - `data-expanded`: Present while the pointer or focus is on the stack: the toasts are spread out, and wait.
3059
+
3060
+ ### Toggle
3061
+
3062
+ ```
3063
+ import { KuiToggle } from "@kirana-ui/angular"
3064
+ ```
3065
+
3066
+ Props:
3067
+
3068
+ - `[(pressed)]: boolean`: Whether it is pressed, when the caller holds it.
3069
+ - `defaultPressed?: boolean`: Read once.
3070
+ - `disabled?: boolean`: Disabled: a press does nothing.
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.
3075
+
3076
+ Attributes and CSS variables, by part:
3077
+
3078
+ - root: The button. It stays pressed until it is pressed again.
3079
+ - `data-pressed`: Present while it is pressed.
3080
+ - `data-disabled`: Present when it is disabled.
3081
+
3082
+ ### ToggleGroup
3083
+
3084
+ ```
3085
+ import { KuiToggleGroup } from "@kirana-ui/angular"
3086
+ ```
3087
+
3088
+ Props:
3089
+
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.
3092
+ - `multiple?: boolean`: Whether more than one can be pressed at a time.
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.
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.
3099
+
3100
+ Attributes and CSS variables, by part:
3101
+
3102
+ - root: The group. A toggle inside it with a `value` is one of its toggles.
3103
+ - `data-orientation="horizontal | vertical"`: Whether its toggles are in a row or a column.
3104
+ - `data-multiple`: Present when several can be pressed at a time.
3105
+ - `data-disabled`: Present when it is disabled.
3106
+
3107
+ ### Toolbar
3108
+
3109
+ ```
3110
+ import { KuiToolbar, KuiToolbarButton, KuiToolbarLink, KuiToolbarInput, KuiToolbarGroup, KuiToolbarSeparator } from "@kirana-ui/angular"
3111
+ ```
3112
+
3113
+ Parts: `[kuiToolbar]`, `[kuiToolbarButton]`, `[kuiToolbarLink]`, `[kuiToolbarInput]`, `[kuiToolbarGroup]`, `[kuiToolbarSeparator]`.
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
+
3126
+ Props of its root:
3127
+
3128
+ - `orientation?: Orientation`: Whether the controls are laid out across (the default) or down: the arrows that move between them follow.
3129
+ - `loop?: boolean`: Whether the arrows go round from the last item to the first. Default: they do.
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`.
3143
+
3144
+ Attributes and CSS variables, by part:
3145
+
3146
+ - root: The toolbar. It is one stop for Tab.
3147
+ - `data-orientation="horizontal | vertical"`: Whether the toolbar is a row or a column.
3148
+ - `data-disabled`: Present when it is disabled.
3149
+ - button: A button of the toolbar.
3150
+ - `data-orientation="horizontal | vertical"`: Whether the toolbar is a row or a column.
3151
+ - `data-disabled`: Present when it is disabled.
3152
+ - link: A link of the toolbar.
3153
+ - `data-orientation="horizontal | vertical"`: Whether the toolbar is a row or a column.
3154
+ - `data-disabled`: Present when it is disabled.
3155
+ - input: A text input of the toolbar. The arrows are its own until the caret is at an end.
3156
+ - `data-orientation="horizontal | vertical"`: Whether the toolbar is a row or a column.
3157
+ - `data-disabled`: Present when it is disabled.
3158
+ - group: Items that belong together.
3159
+ - `data-orientation="horizontal | vertical"`: Whether the toolbar is a row or a column.
3160
+ - `data-disabled`: Present when it is disabled.
3161
+ - separator: A line between items, across the toolbar.
3162
+ - `data-orientation="horizontal | vertical"`: Whether the toolbar is a row or a column.
3163
+
3164
+ ### Tooltip
3165
+
3166
+ ```
3167
+ import { KuiTooltip, KuiTooltipTrigger, KuiTooltipPortal, KuiTooltipPositioner, KuiTooltipPopup, KuiTooltipArrow } from "@kirana-ui/angular"
3168
+ ```
3169
+
3170
+ Parts: `[kuiTooltip]`, `[kuiTooltipTrigger]`, `[kuiTooltipPortal]`, `[kuiTooltipPositioner]`, `[kuiTooltipPopup]`, `[kuiTooltipArrow]`.
3171
+
3172
+ Anatomy:
3173
+
3174
+ ```
3175
+ kuiTooltip
3176
+ kuiTooltipTrigger
3177
+ *kuiTooltipPortal
3178
+ kuiTooltipPositioner
3179
+ kuiTooltipPopup
3180
+ kuiTooltipArrow
3181
+ ```
3182
+
3183
+ Props of its root:
3184
+
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.
3187
+ - `delay?: number`: How long the pointer rests on the trigger before the popup opens, in milliseconds.
3188
+ - `closeDelay?: number`: How long after the pointer leaves the popup closes, in milliseconds.
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`.
3202
+
3203
+ Attributes and CSS variables, by part:
3204
+
3205
+ - trigger: The element the tooltip describes.
3206
+ - `data-popup-open`: Present when the tooltip is open.
3207
+ - positioner: Places the popup against the trigger. It carries the geometry.
3208
+ - `data-open`: Present when it is open.
3209
+ - `data-closed`: Present when it is closed.
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.
3211
+ - `data-align="start | center | end"`: How it is aligned with the anchor.
3212
+ - `--anchor-width`: The anchor's width.
3213
+ - `--anchor-height`: The anchor's height.
3214
+ - `--available-width`: The width between the anchor and the edge of the viewport.
3215
+ - `--available-height`: The height between the anchor and the edge of the viewport.
3216
+ - `--transform-origin`: The point of the popup nearest its anchor, to scale from.
3217
+ - popup: The tooltip itself.
3218
+ - `data-open`: Present when it is open.
3219
+ - `data-closed`: Present when it is closed.
3220
+ - `data-starting-style`: Present for the first style of its entrance: what it animates in from.
3221
+ - `data-ending-style`: Present through its exit: what it animates out to. It leaves the page when the motion ends.
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.
3223
+ - `data-align="start | center | end"`: How it is aligned with the anchor.
3224
+ - `data-instant="delay | focus | dismiss"`: Present when it opened or closed without its usual wait, for a design that skips the motion then.
3225
+ - arrow: An element that points at the trigger, placed along the popup's edge.
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.
3227
+ - `data-align="start | center | end"`: How it is aligned with the anchor.
3228
+ - `data-uncentered`: Present when the popup was pushed along its edge, so the arrow is not at the trigger's centre.