@nanahoshi/mona-ui 0.27.0 → 0.27.2
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/docs/api/auto-complete.md +67 -0
- package/docs/api/avatar.md +31 -0
- package/docs/api/breadcrumb.md +74 -0
- package/docs/api/button-group.md +71 -0
- package/docs/api/button.md +84 -0
- package/docs/api/calendar.md +123 -0
- package/docs/api/card.md +97 -0
- package/docs/api/chart.md +4380 -0
- package/docs/api/check-box.md +70 -0
- package/docs/api/chip.md +55 -0
- package/docs/api/circular-progress-bar.md +71 -0
- package/docs/api/collapsible.md +71 -0
- package/docs/api/color-gradient.md +54 -0
- package/docs/api/color-palette.md +52 -0
- package/docs/api/color-picker.md +89 -0
- package/docs/api/combo-box.md +69 -0
- package/docs/api/command.md +282 -0
- package/docs/api/common.md +599 -0
- package/docs/api/contextmenu.md +239 -0
- package/docs/api/date-input.md +119 -0
- package/docs/api/date-picker.md +67 -0
- package/docs/api/datetime-picker.md +72 -0
- package/docs/api/dialog.md +291 -0
- package/docs/api/dropdown-button.md +248 -0
- package/docs/api/dropdown-list.md +72 -0
- package/docs/api/dropdowns.md +172 -0
- package/docs/api/editor.md +117 -0
- package/docs/api/expansion-panel.md +85 -0
- package/docs/api/fieldset.md +33 -0
- package/docs/api/filter.md +116 -0
- package/docs/api/grid.md +1445 -0
- package/docs/api/i18n.md +1699 -0
- package/docs/api/label.md +58 -0
- package/docs/api/list-box.md +301 -0
- package/docs/api/list-view.md +294 -0
- package/docs/api/list.md +119 -0
- package/docs/api/locales.md +134 -0
- package/docs/api/menubar.md +275 -0
- package/docs/api/multi-select.md +92 -0
- package/docs/api/notification.md +164 -0
- package/docs/api/numeric-text-box.md +130 -0
- package/docs/api/otp-input.md +100 -0
- package/docs/api/pager.md +371 -0
- package/docs/api/placeholder.md +18 -0
- package/docs/api/popover.md +170 -0
- package/docs/api/popup-menu.md +328 -0
- package/docs/api/popup.md +299 -0
- package/docs/api/progress-bar.md +79 -0
- package/docs/api/query.md +367 -0
- package/docs/api/radio-button.md +113 -0
- package/docs/api/rating.md +187 -0
- package/docs/api/scroll-view.md +93 -0
- package/docs/api/segmented.md +114 -0
- package/docs/api/sheet.md +65 -0
- package/docs/api/sidebar.md +583 -0
- package/docs/api/skeleton.md +26 -0
- package/docs/api/slider.md +173 -0
- package/docs/api/spinner.md +132 -0
- package/docs/api/split-button.md +261 -0
- package/docs/api/splitter.md +57 -0
- package/docs/api/stepper.md +148 -0
- package/docs/api/switch.md +78 -0
- package/docs/api/tabs.md +139 -0
- package/docs/api/text-area.md +20 -0
- package/docs/api/text-box.md +106 -0
- package/docs/api/theme.md +627 -0
- package/docs/api/time-picker.md +69 -0
- package/docs/api/time-selector.md +54 -0
- package/docs/api/tooltip.md +112 -0
- package/docs/api/tree-view.md +631 -0
- package/docs/api/window.md +245 -0
- package/docs/auto-complete.md +28 -329
- package/docs/avatar.md +4 -24
- package/docs/breadcrumb.md +10 -65
- package/docs/button-group.md +7 -60
- package/docs/button.md +8 -67
- package/docs/calendar.md +16 -121
- package/docs/card.md +16 -79
- package/docs/chart-bar.md +16 -234
- package/docs/chart-financial.md +10 -121
- package/docs/chart-funnel.md +13 -176
- package/docs/chart-heatmap.md +15 -131
- package/docs/chart-line-area.md +12 -137
- package/docs/chart-pie.md +17 -221
- package/docs/chart-radar.md +13 -129
- package/docs/chart-radial.md +13 -211
- package/docs/chart-scatter.md +6 -74
- package/docs/chart-treemap.md +14 -196
- package/docs/chart.md +154 -1892
- package/docs/checkbox.md +5 -61
- package/docs/chip.md +7 -42
- package/docs/circular-progress-bar.md +9 -61
- package/docs/collapsible.md +5 -87
- package/docs/color-gradient.md +8 -81
- package/docs/color-palette.md +7 -69
- package/docs/color-picker.md +9 -105
- package/docs/combo-box.md +28 -331
- package/docs/command.md +25 -236
- package/docs/contextmenu.md +15 -140
- package/docs/date-picker.md +7 -110
- package/docs/datetime-picker.md +7 -129
- package/docs/decimal-textbox.md +6 -69
- package/docs/dialog.md +23 -263
- package/docs/dropdown-button.md +15 -146
- package/docs/dropdown-list.md +29 -332
- package/docs/editor.md +8 -164
- package/docs/expansion-panel.md +7 -69
- package/docs/fieldset.md +5 -24
- package/docs/grid-columns.md +12 -92
- package/docs/grid-editing.md +29 -291
- package/docs/grid-grouping.md +11 -50
- package/docs/grid-rows.md +10 -74
- package/docs/grid-selection.md +7 -36
- package/docs/grid-server.md +8 -293
- package/docs/grid-sorting-filtering.md +10 -333
- package/docs/grid-state-export.md +17 -228
- package/docs/grid.md +23 -216
- package/docs/input.md +7 -19
- package/docs/label.md +8 -39
- package/docs/list-box.md +21 -253
- package/docs/list-view.md +25 -232
- package/docs/menubar.md +21 -167
- package/docs/multi-select.md +31 -350
- package/docs/notification.md +17 -116
- package/docs/numeric-textbox.md +9 -78
- package/docs/otp-input.md +9 -95
- package/docs/pager.md +19 -239
- package/docs/placeholder.md +5 -18
- package/docs/popover.md +13 -123
- package/docs/popup-menu.md +22 -243
- package/docs/popup.md +24 -248
- package/docs/progress-bar.md +10 -75
- package/docs/radio-button.md +8 -96
- package/docs/range-slider.md +9 -82
- package/docs/rating.md +15 -163
- package/docs/scroll-view.md +9 -86
- package/docs/segmented.md +8 -90
- package/docs/sheet.md +10 -74
- package/docs/sidebar-menus.md +413 -0
- package/docs/sidebar-state.md +401 -0
- package/docs/sidebar.md +32 -876
- package/docs/skeleton.md +5 -26
- package/docs/slider.md +9 -97
- package/docs/spinner.md +15 -95
- package/docs/split-button.md +21 -166
- package/docs/splitter.md +9 -56
- package/docs/stepper.md +13 -127
- package/docs/switch.md +8 -58
- package/docs/tabs.md +13 -111
- package/docs/textarea.md +4 -13
- package/docs/textbox.md +10 -77
- package/docs/time-picker.md +7 -112
- package/docs/tooltip-directive.md +12 -96
- package/docs/tooltip.md +12 -96
- package/docs/tree-view.md +42 -495
- package/docs/window.md +19 -230
- package/fesm2022/nanahoshi-mona-ui-collapsible.mjs +1 -0
- package/fesm2022/nanahoshi-mona-ui-common.mjs +3 -0
- package/fesm2022/nanahoshi-mona-ui-date-input.mjs +13 -1
- package/fesm2022/nanahoshi-mona-ui-dropdowns.mjs +5 -0
- package/fesm2022/nanahoshi-mona-ui-i18n.mjs +9 -0
- package/llms.txt +76 -0
- package/package.json +1 -1
- package/types/nanahoshi-mona-ui-collapsible.d.ts +2 -0
- package/types/nanahoshi-mona-ui-common.d.ts +6 -0
- package/types/nanahoshi-mona-ui-date-input.d.ts +18 -1
- package/types/nanahoshi-mona-ui-dropdowns.d.ts +6 -0
- package/types/nanahoshi-mona-ui-i18n.d.ts +12 -0
package/docs/segmented.md
CHANGED
|
@@ -336,99 +336,17 @@ Native radio behavior applies. Arrow keys move the selection within the group, a
|
|
|
336
336
|
|
|
337
337
|
## API
|
|
338
338
|
|
|
339
|
-
Everything below is imported from `@nanahoshi/mona-ui/segmented`.
|
|
340
|
-
|
|
341
|
-
### `SegmentedComponent`
|
|
342
|
-
|
|
343
|
-
**Selector:** `mona-segmented`
|
|
344
|
-
**Type parameters:** `T extends SegmentedValue = SegmentedValue`
|
|
345
|
-
**Implements:** `FormValueControl<T \| null>`
|
|
346
|
-
|
|
347
|
-
#### Inputs
|
|
348
|
-
|
|
349
|
-
| Name | Type | Default | Description |
|
|
350
|
-
| --- | --- | --- | --- |
|
|
351
|
-
| `alignment` | `"center" \| "end" \| "start" \| "stretch"` | `"stretch"` | Controls the alignment of the items inside the segmented component. |
|
|
352
|
-
| `animate` | `boolean` | `true` | Controls whether the selection indicator animates between selected options. When false, selection changes are applied immediately without transition. |
|
|
353
|
-
| `aria-label` | `string \| null` | `null` | Accessible name for the radio group. Provide either `aria-label` or `aria-labelledby`. |
|
|
354
|
-
| `aria-labelledby` | `string \| null` | `null` | ID of an external element that provides the accessible name for the radio group. |
|
|
355
|
-
| `class` | `string` | `""` | Additional CSS classes merged onto the host element via `tailwind-merge`. |
|
|
356
|
-
| `disabled` | `boolean` | `false` | Disables every option in the group and prevents value changes. |
|
|
357
|
-
| `invalid` | `boolean` | `false` | Marks the component as invalid. Error styling requires both `invalid` and `touched` to be `true`. When bound to a signal form field via `[formField]`, this is written by the signal forms `FormField` directive. |
|
|
358
|
-
| `name` | `string` | `""` | The name of the radios, for a native `<form>`. Generated when empty, so two groups don't interfere. When bound to a signal form field via `[formField]`, this is written by the `FormField` directive. |
|
|
359
|
-
| `options` (required) | `readonly SegmentedOption<T>[]` | — | The list of selectable options. Exactly one option is selected at a time. |
|
|
360
|
-
| `readonly` | `boolean` | `false` | Prevents value changes while the control stays focusable and readable. When bound to a signal form field via `[formField]`, this is written by the `FormField` directive. |
|
|
361
|
-
| `required` | `boolean` | `false` | Marks the group as required, as `aria-required`. When bound to a signal form field via `[formField]`, this is written by the `FormField` directive. |
|
|
362
|
-
| `rounded` | `"full" \| "large" \| "medium" \| "none" \| "small"` | `"medium"` | Border-radius preset applied to the segmented container and its options. |
|
|
363
|
-
| `size` | `"large" \| "medium" \| "small"` | `"medium"` | Size preset controlling the height, horizontal padding, text size, and spacing of each option. |
|
|
364
|
-
| `touched` | `boolean` | `false` | Marks the component as touched. When bound to a signal form field via `[formField]`, this is written by the signal forms `FormField` directive. |
|
|
365
|
-
| `value` (two-way) | `T \| null` | `null` | The currently selected value. When it matches no current option, no option is checked. A `null` value is allowed initially but cannot be restored through segmented interaction. |
|
|
366
|
-
|
|
367
|
-
#### Outputs
|
|
368
|
-
|
|
369
|
-
| Name | Type | Description |
|
|
370
|
-
| --- | --- | --- |
|
|
371
|
-
| `touch` | `void` | Emitted when the selected value changes or focus leaves the group. |
|
|
372
|
-
| `valueChange` | `T \| null` | Emitted when `value` changes. |
|
|
373
|
-
|
|
374
|
-
#### Methods
|
|
375
|
-
|
|
376
|
-
| Signature | Description |
|
|
377
|
-
| --- | --- |
|
|
378
|
-
| `focus(options?: FocusOptions): void` | Moves focus to the selected option, or the first enabled one. |
|
|
379
|
-
|
|
380
|
-
### `SegmentedItemTemplateDirective`
|
|
381
|
-
|
|
382
|
-
Renders the visual content of every segmented option. Overrides the default label
|
|
383
|
-
text of each option. Bind the options, as `[monaSegmentedItemTemplate]="options"`, to type `let-option` from them.
|
|
339
|
+
Everything below is imported from `@nanahoshi/mona-ui/segmented`. Each name links to its reference page, with every input, output, property and method.
|
|
384
340
|
|
|
385
|
-
|
|
386
|
-
**Type parameters:** `T extends SegmentedValue = SegmentedValue`
|
|
387
|
-
|
|
388
|
-
#### Inputs
|
|
389
|
-
|
|
390
|
-
| Name | Type | Default | Description |
|
|
391
|
-
| --- | --- | --- | --- |
|
|
392
|
-
| `monaSegmentedItemTemplate` | `readonly SegmentedOption<T>[] \| "" \| undefined` | `undefined` | The options, to type `let-option` from them. It changes nothing else. |
|
|
393
|
-
|
|
394
|
-
#### Template context
|
|
395
|
-
|
|
396
|
-
| Name | Type | Description |
|
|
341
|
+
| Name | Kind | Description |
|
|
397
342
|
| --- | --- | --- |
|
|
398
|
-
|
|
|
399
|
-
| `
|
|
400
|
-
| `index` | `number` | Zero-based option index. |
|
|
401
|
-
| `option` | `SegmentedOption<T>` | The option rendered by this item. |
|
|
402
|
-
| `selected` | `boolean` | Whether this option is currently selected. |
|
|
343
|
+
| [`SegmentedComponent`](api/segmented.md#segmentedcomponent) | Component | |
|
|
344
|
+
| [`SegmentedItemTemplateDirective`](api/segmented.md#segmenteditemtemplatedirective) | Directive | Renders the visual content of every segmented option. |
|
|
403
345
|
|
|
404
346
|
### Types
|
|
405
347
|
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
Rendering context passed to the segmented item template.
|
|
409
|
-
|
|
410
|
-
**Type parameters:** `T extends SegmentedValue = SegmentedValue`
|
|
411
|
-
|
|
412
|
-
| Name | Type | Description |
|
|
348
|
+
| Type | Kind | Description |
|
|
413
349
|
| --- | --- | --- |
|
|
414
|
-
|
|
|
415
|
-
| `
|
|
416
|
-
| `
|
|
417
|
-
| `option` (read-only) | `SegmentedOption<T>` | The option rendered by this item. |
|
|
418
|
-
| `selected` (read-only) | `boolean` | Whether this option is currently selected. |
|
|
419
|
-
|
|
420
|
-
#### `SegmentedOption`
|
|
421
|
-
|
|
422
|
-
**Type parameters:** `T extends SegmentedValue = SegmentedValue`
|
|
423
|
-
|
|
424
|
-
| Name | Type |
|
|
425
|
-
| --- | --- |
|
|
426
|
-
| `disabled?` (read-only) | `boolean` |
|
|
427
|
-
| `label` (read-only) | `string` |
|
|
428
|
-
| `value` (read-only) | `T` |
|
|
429
|
-
|
|
430
|
-
#### `SegmentedValue`
|
|
431
|
-
|
|
432
|
-
```typescript
|
|
433
|
-
type SegmentedValue = string | number;
|
|
434
|
-
```
|
|
350
|
+
| [`SegmentedItemTemplateContext`](api/segmented.md#segmenteditemtemplatecontext) | Interface | Rendering context passed to the segmented item template. |
|
|
351
|
+
| [`SegmentedOption`](api/segmented.md#segmentedoption) | Interface | |
|
|
352
|
+
| [`SegmentedValue`](api/segmented.md#segmentedvalue) | Type alias | |
|
package/docs/sheet.md
CHANGED
|
@@ -267,82 +267,18 @@ Sheet content must have either a `title` or an `aria-label` so that the modal ha
|
|
|
267
267
|
|
|
268
268
|
## API
|
|
269
269
|
|
|
270
|
-
Everything below is imported from `@nanahoshi/mona-ui/sheet`.
|
|
270
|
+
Everything below is imported from `@nanahoshi/mona-ui/sheet`. Each name links to its reference page, with every input, output, property and method.
|
|
271
271
|
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
**Selector:** `mona-sheet`
|
|
275
|
-
|
|
276
|
-
#### Inputs
|
|
277
|
-
|
|
278
|
-
| Name | Type | Default | Description |
|
|
279
|
-
| --- | --- | --- | --- |
|
|
280
|
-
| `aria-label` | `string \| undefined` | `undefined` | Accessible name used when no visible title is provided. |
|
|
281
|
-
| `class` | `ClassInputType` | `undefined` | Additional CSS classes merged onto the sheet panel via `tailwind-merge`. |
|
|
282
|
-
| `closable` | `boolean` | `true` | Whether the close button is displayed. |
|
|
283
|
-
| `closeOnBackdropClick` | `boolean` | `true` | Whether clicking the backdrop requests that the sheet close. |
|
|
284
|
-
| `closeOnEscape` | `boolean` | `true` | Whether pressing Escape requests that the sheet close. |
|
|
285
|
-
| `description` | `string` | — | Supporting text displayed below the title. |
|
|
286
|
-
| `height` | `number \| string` | — | Explicit sheet height. Numbers are interpreted as pixels. |
|
|
287
|
-
| `messages` | `Partial<SheetMessages>` | — | Internationalization message overrides for accessible labels. |
|
|
288
|
-
| `side` | `SheetSide` | `"right"` | Edge of the viewport from which the sheet opens. `left` and `right` are physical; `start` and `end` follow the direction (`start` is the left edge in LTR and the right edge in RTL). The edge is fixed once the sheet opens. |
|
|
289
|
-
| `title` | `string` | — | Title displayed in the sheet header and used as its accessible name. |
|
|
290
|
-
| `width` | `number \| string` | — | Explicit sheet width. Numbers are interpreted as pixels. |
|
|
291
|
-
|
|
292
|
-
#### Outputs
|
|
293
|
-
|
|
294
|
-
| Name | Type | Description |
|
|
295
|
-
| --- | --- | --- |
|
|
296
|
-
| `close` | `PopupCloseEvent<unknown>` | Emitted before the sheet closes. Call preventDefault() to keep it open. |
|
|
297
|
-
| `closed` | `void` | Emitted after the leave animation completes and the popup is disposed. |
|
|
298
|
-
|
|
299
|
-
### Types
|
|
300
|
-
|
|
301
|
-
#### `SHEET_DEFAULT_MESSAGES`
|
|
302
|
-
|
|
303
|
-
```typescript
|
|
304
|
-
const SHEET_DEFAULT_MESSAGES: MonaSheetMessages;
|
|
305
|
-
```
|
|
306
|
-
|
|
307
|
-
#### `SheetPhysicalSide`
|
|
308
|
-
|
|
309
|
-
A side resolved to a physical edge.
|
|
310
|
-
|
|
311
|
-
```typescript
|
|
312
|
-
type SheetPhysicalSide = "bottom" | "left" | "right" | "top";
|
|
313
|
-
```
|
|
314
|
-
|
|
315
|
-
#### `SheetSide`
|
|
316
|
-
|
|
317
|
-
Edge the sheet opens from. `left` and `right` are physical, whatever the direction; `start` and `end` follow it
|
|
318
|
-
(`start` is the left edge in LTR and the right edge in RTL).
|
|
319
|
-
|
|
320
|
-
```typescript
|
|
321
|
-
type SheetSide = "bottom" | "end" | "left" | "right" | "start" | "top";
|
|
322
|
-
```
|
|
323
|
-
|
|
324
|
-
#### `ClassInputType`
|
|
325
|
-
|
|
326
|
-
From `@nanahoshi/mona-ui/common`.
|
|
327
|
-
|
|
328
|
-
```typescript
|
|
329
|
-
type ClassInputType = string | string[] | Record<string, unknown> | null | undefined;
|
|
330
|
-
```
|
|
331
|
-
|
|
332
|
-
#### `MonaSheetMessages`
|
|
333
|
-
|
|
334
|
-
From `@nanahoshi/mona-ui/i18n`.
|
|
335
|
-
|
|
336
|
-
| Name | Type |
|
|
272
|
+
| Name | Kind |
|
|
337
273
|
| --- | --- |
|
|
338
|
-
| `
|
|
339
|
-
|
|
340
|
-
#### `SheetMessages`
|
|
274
|
+
| [`SheetComponent`](api/sheet.md#sheetcomponent) | Component |
|
|
341
275
|
|
|
342
|
-
|
|
276
|
+
### Types
|
|
343
277
|
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
278
|
+
| Type | Kind | Description |
|
|
279
|
+
| --- | --- | --- |
|
|
280
|
+
| [`SHEET_DEFAULT_MESSAGES`](api/sheet.md#sheet-default-messages) | Constant | |
|
|
281
|
+
| [`SheetPhysicalSide`](api/sheet.md#sheetphysicalside) | Type alias | A side resolved to a physical edge. |
|
|
282
|
+
| [`SheetSide`](api/sheet.md#sheetside) | Type alias | Edge the sheet opens from. |
|
|
347
283
|
|
|
348
|
-
**
|
|
284
|
+
**Related types:** [`ClassInputType`](api/common.md#classinputtype), [`MonaSheetMessages`](api/i18n.md#monasheetmessages), [`PopupCloseEvent`](api/popup.md#popupcloseevent), [`SheetMessages`](api/i18n.md#sheetmessages)
|
|
@@ -0,0 +1,413 @@
|
|
|
1
|
+
# Sidebar Menus
|
|
2
|
+
|
|
3
|
+
> Groups, menus, rows, submenus, badges, actions and loading rows inside a sidebar.
|
|
4
|
+
|
|
5
|
+
Entry point: `@nanahoshi/mona-ui/sidebar`
|
|
6
|
+
|
|
7
|
+
**Selectors:** `[monaSidebarGroup]`, `ul[monaSidebarMenu]`, `li[monaSidebarMenuItem]`, `a[monaSidebarMenuButton]`, `button[monaSidebarMenuButton]`, `mona-sidebar-menu-skeleton`, and the parts below
|
|
8
|
+
|
|
9
|
+
What goes inside a [sidebar](sidebar.md): titled groups, lists of rows, and what a row can carry — a badge, a trailing action, a submenu. Every part is a directive on your own element, and each one knows what to do on the icon rail, where only the row's icon is left.
|
|
10
|
+
|
|
11
|
+
## Overview
|
|
12
|
+
|
|
13
|
+
A sidebar's content is groups of rows. Every part below is a directive on your own element, apart from the skeleton, and none of them are required.
|
|
14
|
+
|
|
15
|
+
| Part | Host | Purpose |
|
|
16
|
+
| --- | --- | --- |
|
|
17
|
+
| `[monaSidebarGroup]` | any | A titled section; stack as many as you need |
|
|
18
|
+
| `[monaSidebarGroupHeader]` | any | The row holding a group's label and action; collapses away on the rail |
|
|
19
|
+
| `[monaSidebarGroupLabel]` | any | The group's name, which the group is labelled by; fades out on the rail |
|
|
20
|
+
| `[monaSidebarGroupAction]` | `button` | A control in the group header's corner; needs an `aria-label` |
|
|
21
|
+
| `[monaSidebarGroupContent]` | any | The group's body, wrapping its menu |
|
|
22
|
+
| `[monaSidebarMenu]` | `ul` | A list of rows |
|
|
23
|
+
| `[monaSidebarMenuItem]` | `li` | One row; owns the highlight and `active` |
|
|
24
|
+
| `[monaSidebarMenuButton]` | `a` / `button` | The row's control; takes `tooltip`, `size`, `disabled`, `closeOnSelect` |
|
|
25
|
+
| `[monaSidebarMenuAction]` | `button` | A trailing control inside the row; needs an `aria-label` |
|
|
26
|
+
| `[monaSidebarMenuBadge]` | any | A trailing count or status; stands down on the rail |
|
|
27
|
+
| `[monaSidebarMenuSub]` | `ul` | An indented submenu inside a collapsible item |
|
|
28
|
+
| `[monaSidebarInput]` | `input` | A text input sized for the sidebar; stands down on the rail |
|
|
29
|
+
| `mona-sidebar-menu-skeleton` | element | A loading placeholder row |
|
|
30
|
+
|
|
31
|
+
The panel around them, its regions and its look are on the [Sidebar](sidebar.md) page.
|
|
32
|
+
|
|
33
|
+
## Import & Quick Start
|
|
34
|
+
|
|
35
|
+
```typescript
|
|
36
|
+
import {
|
|
37
|
+
SidebarGroupContentDirective,
|
|
38
|
+
SidebarGroupDirective,
|
|
39
|
+
SidebarGroupHeaderDirective,
|
|
40
|
+
SidebarGroupLabelDirective,
|
|
41
|
+
SidebarMenuBadgeDirective,
|
|
42
|
+
SidebarMenuButtonDirective,
|
|
43
|
+
SidebarMenuDirective,
|
|
44
|
+
SidebarMenuItemDirective
|
|
45
|
+
} from "@nanahoshi/mona-ui/sidebar";
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
A row is an item plus a control, and optionally something trailing:
|
|
49
|
+
|
|
50
|
+
```html
|
|
51
|
+
<div monaSidebarGroup>
|
|
52
|
+
<div monaSidebarGroupHeader>
|
|
53
|
+
<span monaSidebarGroupLabel>Mail</span>
|
|
54
|
+
</div>
|
|
55
|
+
<div monaSidebarGroupContent>
|
|
56
|
+
<ul monaSidebarMenu>
|
|
57
|
+
<li monaSidebarMenuItem [active]="isCurrent()">
|
|
58
|
+
<a monaSidebarMenuButton routerLink="/inbox" tooltip="Inbox">
|
|
59
|
+
<svg lucideInbox [size]="16"></svg>
|
|
60
|
+
<span>Inbox</span>
|
|
61
|
+
</a>
|
|
62
|
+
<span monaSidebarMenuBadge>12</span>
|
|
63
|
+
</li>
|
|
64
|
+
</ul>
|
|
65
|
+
</div>
|
|
66
|
+
</div>
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
## Examples
|
|
70
|
+
|
|
71
|
+
### Badges, actions and loading rows
|
|
72
|
+
|
|
73
|
+
A group action in the header, a badge and an overflow action on a row, a disabled row, and a group still loading.
|
|
74
|
+
|
|
75
|
+
`rows-example.component.ts`
|
|
76
|
+
|
|
77
|
+
```typescript
|
|
78
|
+
import { Component, signal } from "@angular/core";
|
|
79
|
+
import {
|
|
80
|
+
LucideArchive,
|
|
81
|
+
LucideCirclePlus,
|
|
82
|
+
LucideEllipsis,
|
|
83
|
+
LucideInbox,
|
|
84
|
+
LucidePanelLeft,
|
|
85
|
+
LucideSend,
|
|
86
|
+
LucideTrash2
|
|
87
|
+
} from "@lucide/angular";
|
|
88
|
+
import { ButtonDirective } from "@nanahoshi/mona-ui/button";
|
|
89
|
+
import { PopupMenuComponent, PopupMenuItemComponent } from "@nanahoshi/mona-ui/popup-menu";
|
|
90
|
+
import {
|
|
91
|
+
SidebarComponent,
|
|
92
|
+
SidebarContentDirective,
|
|
93
|
+
SidebarGroupActionDirective,
|
|
94
|
+
SidebarGroupContentDirective,
|
|
95
|
+
SidebarGroupDirective,
|
|
96
|
+
SidebarGroupHeaderDirective,
|
|
97
|
+
SidebarGroupLabelDirective,
|
|
98
|
+
SidebarInsetDirective,
|
|
99
|
+
SidebarLayoutComponent,
|
|
100
|
+
SidebarMenuActionDirective,
|
|
101
|
+
SidebarMenuBadgeDirective,
|
|
102
|
+
SidebarMenuButtonDirective,
|
|
103
|
+
SidebarMenuDirective,
|
|
104
|
+
SidebarMenuItemDirective,
|
|
105
|
+
SidebarMenuSkeletonComponent,
|
|
106
|
+
SidebarTriggerDirective
|
|
107
|
+
} from "@nanahoshi/mona-ui/sidebar";
|
|
108
|
+
|
|
109
|
+
@Component({
|
|
110
|
+
selector: "app-sidebar-menus-rows-example",
|
|
111
|
+
imports: [
|
|
112
|
+
ButtonDirective,
|
|
113
|
+
LucideArchive,
|
|
114
|
+
LucideCirclePlus,
|
|
115
|
+
LucideEllipsis,
|
|
116
|
+
LucideInbox,
|
|
117
|
+
LucidePanelLeft,
|
|
118
|
+
LucideSend,
|
|
119
|
+
LucideTrash2,
|
|
120
|
+
PopupMenuComponent,
|
|
121
|
+
PopupMenuItemComponent,
|
|
122
|
+
SidebarComponent,
|
|
123
|
+
SidebarContentDirective,
|
|
124
|
+
SidebarGroupActionDirective,
|
|
125
|
+
SidebarGroupContentDirective,
|
|
126
|
+
SidebarGroupDirective,
|
|
127
|
+
SidebarGroupHeaderDirective,
|
|
128
|
+
SidebarGroupLabelDirective,
|
|
129
|
+
SidebarInsetDirective,
|
|
130
|
+
SidebarLayoutComponent,
|
|
131
|
+
SidebarMenuActionDirective,
|
|
132
|
+
SidebarMenuBadgeDirective,
|
|
133
|
+
SidebarMenuButtonDirective,
|
|
134
|
+
SidebarMenuDirective,
|
|
135
|
+
SidebarMenuItemDirective,
|
|
136
|
+
SidebarMenuSkeletonComponent,
|
|
137
|
+
SidebarTriggerDirective
|
|
138
|
+
],
|
|
139
|
+
templateUrl: "./rows-example.component.html"
|
|
140
|
+
})
|
|
141
|
+
export class SidebarMenusRowsExampleComponent {
|
|
142
|
+
protected readonly current = signal("Inbox");
|
|
143
|
+
protected readonly labelWidths = ["70%", "45%", "60%"];
|
|
144
|
+
|
|
145
|
+
/** Stands in for the router, so the example stays on this page. */
|
|
146
|
+
protected open(event: Event, label: string): void {
|
|
147
|
+
event.preventDefault();
|
|
148
|
+
this.current.set(label);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
`rows-example.component.html`
|
|
154
|
+
|
|
155
|
+
```html
|
|
156
|
+
<mona-sidebar-layout class="h-96 border border-border" modalScope="layout">
|
|
157
|
+
<mona-sidebar collapsible="icon">
|
|
158
|
+
<nav monaSidebarContent aria-label="Mail">
|
|
159
|
+
<div monaSidebarGroup>
|
|
160
|
+
<div monaSidebarGroupHeader>
|
|
161
|
+
<div monaSidebarGroupLabel>Mail</div>
|
|
162
|
+
<button monaSidebarGroupAction aria-label="New folder" type="button">
|
|
163
|
+
<svg lucideCirclePlus aria-hidden="true" [size]="14"></svg>
|
|
164
|
+
</button>
|
|
165
|
+
</div>
|
|
166
|
+
<div monaSidebarGroupContent>
|
|
167
|
+
<ul monaSidebarMenu>
|
|
168
|
+
<li monaSidebarMenuItem [active]="current() === 'Inbox'">
|
|
169
|
+
<a monaSidebarMenuButton href="/mail/inbox" tooltip="Inbox" (click)="open($event, 'Inbox')">
|
|
170
|
+
<svg lucideInbox aria-hidden="true" [size]="16"></svg>
|
|
171
|
+
<span>Inbox</span>
|
|
172
|
+
</a>
|
|
173
|
+
<span monaSidebarMenuBadge>12</span>
|
|
174
|
+
<button #inboxActions monaSidebarMenuAction aria-label="Inbox actions" type="button">
|
|
175
|
+
<svg lucideEllipsis aria-hidden="true" [size]="14"></svg>
|
|
176
|
+
</button>
|
|
177
|
+
<mona-popup-menu [target]="inboxActions">
|
|
178
|
+
<mona-popup-menu-item label="Mark all as read"></mona-popup-menu-item>
|
|
179
|
+
<mona-popup-menu-item label="Rename"></mona-popup-menu-item>
|
|
180
|
+
</mona-popup-menu>
|
|
181
|
+
</li>
|
|
182
|
+
<li monaSidebarMenuItem [active]="current() === 'Sent'">
|
|
183
|
+
<a monaSidebarMenuButton href="/mail/sent" tooltip="Sent" (click)="open($event, 'Sent')">
|
|
184
|
+
<svg lucideSend aria-hidden="true" [size]="16"></svg>
|
|
185
|
+
<span>Sent</span>
|
|
186
|
+
</a>
|
|
187
|
+
</li>
|
|
188
|
+
<li monaSidebarMenuItem>
|
|
189
|
+
<a monaSidebarMenuButton href="/mail/archive" tooltip="Archive" [disabled]="true">
|
|
190
|
+
<svg lucideArchive aria-hidden="true" [size]="16"></svg>
|
|
191
|
+
<span>Archive</span>
|
|
192
|
+
</a>
|
|
193
|
+
</li>
|
|
194
|
+
<li monaSidebarMenuItem [active]="current() === 'Trash'">
|
|
195
|
+
<a monaSidebarMenuButton href="/mail/trash" tooltip="Trash" (click)="open($event, 'Trash')">
|
|
196
|
+
<svg lucideTrash2 aria-hidden="true" [size]="16"></svg>
|
|
197
|
+
<span>Trash</span>
|
|
198
|
+
</a>
|
|
199
|
+
</li>
|
|
200
|
+
</ul>
|
|
201
|
+
</div>
|
|
202
|
+
</div>
|
|
203
|
+
<div monaSidebarGroup>
|
|
204
|
+
<div monaSidebarGroupHeader>
|
|
205
|
+
<div monaSidebarGroupLabel>Labels</div>
|
|
206
|
+
</div>
|
|
207
|
+
<div monaSidebarGroupContent aria-busy="true">
|
|
208
|
+
<ul monaSidebarMenu>
|
|
209
|
+
@for (width of labelWidths; track $index) {
|
|
210
|
+
<li monaSidebarMenuItem>
|
|
211
|
+
<mona-sidebar-menu-skeleton [labelWidth]="width"></mona-sidebar-menu-skeleton>
|
|
212
|
+
</li>
|
|
213
|
+
}
|
|
214
|
+
</ul>
|
|
215
|
+
</div>
|
|
216
|
+
</div>
|
|
217
|
+
</nav>
|
|
218
|
+
</mona-sidebar>
|
|
219
|
+
|
|
220
|
+
<div class="gap-2 p-4" monaSidebarInset>
|
|
221
|
+
<button monaButton monaSidebarTrigger aria-label="Toggle sidebar" look="ghost" type="button" [iconOnly]="true">
|
|
222
|
+
<svg lucidePanelLeft aria-hidden="true" [size]="16"></svg>
|
|
223
|
+
</button>
|
|
224
|
+
<p class="text-sm">Showing {{ current() }}</p>
|
|
225
|
+
</div>
|
|
226
|
+
</mona-sidebar-layout>
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
### With a submenu
|
|
230
|
+
|
|
231
|
+
A submenu is a `monaCollapsible` item whose content is a `monaSidebarMenuSub` list.
|
|
232
|
+
|
|
233
|
+
`submenus-example.component.ts`
|
|
234
|
+
|
|
235
|
+
```typescript
|
|
236
|
+
import { Component } from "@angular/core";
|
|
237
|
+
import { LucideBookOpen, LucideChevronRight, LucideFolder, LucidePanelLeft } from "@lucide/angular";
|
|
238
|
+
import { ButtonDirective } from "@nanahoshi/mona-ui/button";
|
|
239
|
+
import {
|
|
240
|
+
CollapsibleContentDirective,
|
|
241
|
+
CollapsibleDirective,
|
|
242
|
+
CollapsibleTriggerDirective
|
|
243
|
+
} from "@nanahoshi/mona-ui/collapsible";
|
|
244
|
+
import {
|
|
245
|
+
SidebarComponent,
|
|
246
|
+
SidebarContentDirective,
|
|
247
|
+
SidebarInsetDirective,
|
|
248
|
+
SidebarLayoutComponent,
|
|
249
|
+
SidebarMenuButtonDirective,
|
|
250
|
+
SidebarMenuDirective,
|
|
251
|
+
SidebarMenuItemDirective,
|
|
252
|
+
SidebarMenuSubDirective,
|
|
253
|
+
SidebarTriggerDirective
|
|
254
|
+
} from "@nanahoshi/mona-ui/sidebar";
|
|
255
|
+
|
|
256
|
+
@Component({
|
|
257
|
+
selector: "app-sidebar-menus-submenus-example",
|
|
258
|
+
imports: [
|
|
259
|
+
ButtonDirective,
|
|
260
|
+
CollapsibleContentDirective,
|
|
261
|
+
CollapsibleDirective,
|
|
262
|
+
CollapsibleTriggerDirective,
|
|
263
|
+
LucideBookOpen,
|
|
264
|
+
LucideChevronRight,
|
|
265
|
+
LucideFolder,
|
|
266
|
+
LucidePanelLeft,
|
|
267
|
+
SidebarComponent,
|
|
268
|
+
SidebarContentDirective,
|
|
269
|
+
SidebarInsetDirective,
|
|
270
|
+
SidebarLayoutComponent,
|
|
271
|
+
SidebarMenuButtonDirective,
|
|
272
|
+
SidebarMenuDirective,
|
|
273
|
+
SidebarMenuItemDirective,
|
|
274
|
+
SidebarMenuSubDirective,
|
|
275
|
+
SidebarTriggerDirective
|
|
276
|
+
],
|
|
277
|
+
templateUrl: "./submenus-example.component.html"
|
|
278
|
+
})
|
|
279
|
+
export class SidebarMenusSubmenusExampleComponent {
|
|
280
|
+
protected readonly pages = ["Button", "Card", "Tabs"];
|
|
281
|
+
}
|
|
282
|
+
```
|
|
283
|
+
|
|
284
|
+
`submenus-example.component.html`
|
|
285
|
+
|
|
286
|
+
```html
|
|
287
|
+
<mona-sidebar-layout class="h-80 border border-border" modalScope="layout">
|
|
288
|
+
<mona-sidebar collapsible="icon">
|
|
289
|
+
<nav monaSidebarContent aria-label="Documentation">
|
|
290
|
+
<ul monaSidebarMenu>
|
|
291
|
+
<li monaSidebarMenuItem>
|
|
292
|
+
<a monaSidebarMenuButton href="/docs" tooltip="Introduction" (click)="$event.preventDefault()">
|
|
293
|
+
<svg lucideBookOpen aria-hidden="true" [size]="16"></svg>
|
|
294
|
+
<span>Introduction</span>
|
|
295
|
+
</a>
|
|
296
|
+
</li>
|
|
297
|
+
<li #components="monaCollapsible" monaCollapsible monaSidebarMenuItem [expanded]="true">
|
|
298
|
+
<button monaCollapsibleTrigger monaSidebarMenuButton tooltip="Components" type="button">
|
|
299
|
+
<svg lucideFolder aria-hidden="true" [size]="16"></svg>
|
|
300
|
+
<span>Components</span>
|
|
301
|
+
<svg
|
|
302
|
+
class="ms-auto transition-transform"
|
|
303
|
+
lucideChevronRight
|
|
304
|
+
aria-hidden="true"
|
|
305
|
+
[size]="16"
|
|
306
|
+
[style.rotate]="components.expanded() ? '90deg' : '0deg'"></svg>
|
|
307
|
+
</button>
|
|
308
|
+
<ul monaCollapsibleContent monaSidebarMenuSub>
|
|
309
|
+
@for (page of pages; track page) {
|
|
310
|
+
<li monaSidebarMenuItem>
|
|
311
|
+
<a monaSidebarMenuButton href="/docs" (click)="$event.preventDefault()">{{ page }}</a>
|
|
312
|
+
</li>
|
|
313
|
+
}
|
|
314
|
+
</ul>
|
|
315
|
+
</li>
|
|
316
|
+
</ul>
|
|
317
|
+
</nav>
|
|
318
|
+
</mona-sidebar>
|
|
319
|
+
|
|
320
|
+
<div class="p-4" monaSidebarInset>
|
|
321
|
+
<button monaButton monaSidebarTrigger aria-label="Toggle sidebar" look="ghost" type="button" [iconOnly]="true">
|
|
322
|
+
<svg lucidePanelLeft aria-hidden="true" [size]="16"></svg>
|
|
323
|
+
</button>
|
|
324
|
+
</div>
|
|
325
|
+
</mona-sidebar-layout>
|
|
326
|
+
```
|
|
327
|
+
|
|
328
|
+
## Behavior
|
|
329
|
+
|
|
330
|
+
### Rows
|
|
331
|
+
|
|
332
|
+
`active` goes on the **item**, which owns the row's highlight, so a badge or a trailing action stays inside one continuous highlight. The row's control picks up `aria-current="page"` from it.
|
|
333
|
+
|
|
334
|
+
`size="large"` is for a row that opens with something avatar sized, such as a profile row in the footer. The icon rail lets it fill the square edge to edge instead of insetting and clipping it, and the row is taller while the sidebar is expanded.
|
|
335
|
+
|
|
336
|
+
`disabled` suppresses the row's activation, including a `routerLink` and any `click` handler on it. A disabled `button` gets the native `disabled` attribute. A disabled anchor gives up its `href`, and keeps a tab stop and `aria-disabled` so it is still announced.
|
|
337
|
+
|
|
338
|
+
### Closing the drawer
|
|
339
|
+
|
|
340
|
+
On a compact viewport the sidebar is a drawer that covers the page, so activating a row closes it: the destination is underneath. Opt out with `[closeOnSelect]="false"` on a row that doesn't navigate. A row that opens a submenu leaves the drawer open without that binding.
|
|
341
|
+
|
|
342
|
+
### Submenus
|
|
343
|
+
|
|
344
|
+
A submenu is an ordinary `monaCollapsible` on an ordinary item — the sidebar adds no disclosure of its own. Apply `monaCollapsible` to the item, `monaCollapsibleTrigger` to its control, and `monaCollapsibleContent` to a `monaSidebarMenuSub` list, as in the [With a submenu](#with-a-submenu) example.
|
|
345
|
+
|
|
346
|
+
Nesting is not limited to one level: a `monaSidebarMenuSub` can hold another collapsible item, as deep as the navigation needs. Each level is a disclosure in its own right, with its own trigger and its own open state.
|
|
347
|
+
|
|
348
|
+
### On the icon rail
|
|
349
|
+
|
|
350
|
+
With `collapsible="icon"` a collapsed sidebar keeps only each row's leading visual, in a square:
|
|
351
|
+
|
|
352
|
+
- Labels are clipped, and each row's `tooltip` names it instead.
|
|
353
|
+
- Group headers collapse away, and group labels fade out.
|
|
354
|
+
- Badges, trailing actions, group actions and `monaSidebarInput` stand down.
|
|
355
|
+
- A skeleton row clips its label bar, as the real labels are.
|
|
356
|
+
|
|
357
|
+
A submenu cannot render in a rail one icon wide, and there's no flyout. While on the rail every item keeps its disclosure closed, at every depth, so each trigger's `aria-expanded` stays truthful and the content stays `inert`. Activating a submenu's row on the rail expands the sidebar and opens that submenu, so its pages can always be reached. A row with no submenu leaves the rail as it is. Whatever was open before collapsing is restored when the sidebar expands again — level by level, so a submenu that was closed stays closed.
|
|
358
|
+
|
|
359
|
+
### Loading rows
|
|
360
|
+
|
|
361
|
+
`mona-sidebar-menu-skeleton` goes in an item in place of the row's control, laid out exactly like a real row, so the two animate as one. Vary `labelWidth` across a list so the placeholder doesn't look like a rigid grid, and set `[showIcon]="false"` for rows that have no icon.
|
|
362
|
+
|
|
363
|
+
The skeleton is hidden from assistive technology. Mark what's loading on its container instead, with `aria-busy="true"`, and remove it when the rows arrive.
|
|
364
|
+
|
|
365
|
+
## Accessibility
|
|
366
|
+
|
|
367
|
+
### Use anchors for destinations
|
|
368
|
+
|
|
369
|
+
`monaSidebarMenuButton` applies to both `a` and `button`. Use an anchor for anything that navigates:
|
|
370
|
+
|
|
371
|
+
```html
|
|
372
|
+
<a monaSidebarMenuButton routerLink="/billing" tooltip="Billing">…</a>
|
|
373
|
+
```
|
|
374
|
+
|
|
375
|
+
A button cannot be opened in a new tab, middle-clicked, previewed in the status bar, or followed when JavaScript fails. Reserve `button` for actions — a disclosure trigger, a sign-out.
|
|
376
|
+
|
|
377
|
+
### Label the icon rail
|
|
378
|
+
|
|
379
|
+
While collapsed to icons the labels are clipped away. Set `tooltip` on every row, and the row shows it as a tooltip on hover and on keyboard focus, on the rail only. Keep a label inside the row as well: that's its accessible name, in both states.
|
|
380
|
+
|
|
381
|
+
`mona-sidebar` shows these itself, and they open toward the content. There's nothing to import, and it isn't a `title`: the browser adds no tooltip of its own, and a `monaTooltip` in `content` mode around the sidebar doesn't pick the row up. A `title` you put on a row yourself stays there, so use one or the other.
|
|
382
|
+
|
|
383
|
+
### Name the icon-only controls
|
|
384
|
+
|
|
385
|
+
`monaSidebarGroupAction` and `monaSidebarMenuAction` hold only an icon, so each needs an `aria-label` that says what it acts on, such as "Inbox actions" rather than "More".
|
|
386
|
+
|
|
387
|
+
## API
|
|
388
|
+
|
|
389
|
+
Everything below is imported from `@nanahoshi/mona-ui/sidebar`. Each name links to its reference page, with every input, output, property and method.
|
|
390
|
+
|
|
391
|
+
| Name | Kind | Description |
|
|
392
|
+
| --- | --- | --- |
|
|
393
|
+
| [`SidebarMenuSkeletonComponent`](api/sidebar.md#sidebarmenuskeletoncomponent) | Component | A loading placeholder shaped like a menu item. |
|
|
394
|
+
| [`SidebarMenuButtonDirective`](api/sidebar.md#sidebarmenubuttondirective) | Directive | A row in a sidebar menu. |
|
|
395
|
+
| [`SidebarMenuItemDirective`](api/sidebar.md#sidebarmenuitemdirective) | Directive | |
|
|
396
|
+
| [`SidebarMenuBadgeDirective`](api/sidebar.md#sidebarmenubadgedirective) | Directive | A trailing count or status badge on a menu item. |
|
|
397
|
+
| [`SidebarMenuDirective`](api/sidebar.md#sidebarmenudirective) | Directive | |
|
|
398
|
+
| [`SidebarMenuSubDirective`](api/sidebar.md#sidebarmenusubdirective) | Directive | An indented submenu inside a `monaSidebarMenuItem` that is also a `monaCollapsible`. |
|
|
399
|
+
| [`SidebarGroupActionDirective`](api/sidebar.md#sidebargroupactiondirective) | Directive | A control in the corner of a group header — an add or overflow button. |
|
|
400
|
+
| [`SidebarGroupContentDirective`](api/sidebar.md#sidebargroupcontentdirective) | Directive | The body of a `monaSidebarGroup`, below its header. |
|
|
401
|
+
| [`SidebarGroupDirective`](api/sidebar.md#sidebargroupdirective) | Directive | A titled section of the sidebar, grouping a label and its menu. |
|
|
402
|
+
| [`SidebarGroupHeaderDirective`](api/sidebar.md#sidebargroupheaderdirective) | Directive | The row above a group's content, holding its label and any group action. |
|
|
403
|
+
| [`SidebarGroupLabelDirective`](api/sidebar.md#sidebargrouplabeldirective) | Directive | The name of a group, which the enclosing `monaSidebarGroup` is labelled by. |
|
|
404
|
+
| [`SidebarInputDirective`](api/sidebar.md#sidebarinputdirective) | Directive | A text input sized for the sidebar, composing `monaTextBox`. |
|
|
405
|
+
| [`SidebarMenuActionDirective`](api/sidebar.md#sidebarmenuactiondirective) | Directive | A trailing control on a menu item — an overflow menu, a pin. |
|
|
406
|
+
|
|
407
|
+
### Types
|
|
408
|
+
|
|
409
|
+
| Type | Kind | Description |
|
|
410
|
+
| --- | --- | --- |
|
|
411
|
+
| [`SidebarMenuButtonSize`](api/sidebar.md#sidebarmenubuttonsize) | Type alias | How much room the button's leading visual needs. |
|
|
412
|
+
|
|
413
|
+
**Related types:** [`ClassInputType`](api/common.md#classinputtype)
|