@nanahoshi/mona-ui 0.27.1 → 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 +20 -155
- package/docs/sidebar-state.md +16 -134
- package/docs/sidebar.md +18 -218
- 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 +74 -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/progress-bar.md
CHANGED
|
@@ -285,84 +285,19 @@ Consumer responsibilities:
|
|
|
285
285
|
|
|
286
286
|
## API
|
|
287
287
|
|
|
288
|
-
Everything below is imported from `@nanahoshi/mona-ui/progress-bar`.
|
|
288
|
+
Everything below is imported from `@nanahoshi/mona-ui/progress-bar`. Each name links to its reference page, with every input, output, property and method.
|
|
289
289
|
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
#### Inputs
|
|
295
|
-
|
|
296
|
-
| Name | Type | Default | Description |
|
|
297
|
-
| --- | --- | --- | --- |
|
|
298
|
-
| `animate` | `boolean` | `true` | Enables CSS transitions on fill and color changes. Set to `false` when updating `value` at high frequency (e.g., a real-time byte counter). |
|
|
299
|
-
| `aria-label` | `string` | `""` | Accessible label for the progress bar host element. Use to describe what is being measured (e.g., "Upload progress"). When empty, falls back to the localized "Progress". An `aria-labelledby` on the host takes precedence over both. |
|
|
300
|
-
| `aria-valuetext` | `string` | `""` | Overrides the numeric aria-valuenow announcement for assistive technology. Particularly useful in indeterminate mode — set to a localized string such as "Loading" so screen readers announce state rather than silence. When empty, assistive technology falls back to the numeric value. |
|
|
301
|
-
| `class` | `string` | `""` | Additional CSS classes merged onto the host element via `tailwind-merge`. |
|
|
302
|
-
| `color` | `string \| Action<number, string>` | `""` | Fill color of the progress track. Pass a CSS color string, or a function that receives the current percentage (0–100) and returns a color string. When empty, falls back to the primary theme color. |
|
|
303
|
-
| `disabled` | `boolean` | `false` | Renders the bar with reduced visual emphasis and removes pointer interaction. `color` doesn't apply while disabled. |
|
|
304
|
-
| `indeterminate` | `boolean` | `false` | Switches to indeterminate mode: plays a looping animation and hides the label. ARIA value attributes are removed. |
|
|
305
|
-
| `labelPosition` | `LabelPosition` | `"center"` | Horizontal alignment of the label within the bar. |
|
|
306
|
-
| `labelStyles` | `Partial<CSSStyleDeclaration>` | `{}` | Inline styles applied to the default label span. Has no effect when a custom `monaProgressBarLabelTemplate` is provided. |
|
|
307
|
-
| `labelVisible` | `boolean` | `true` | Controls label visibility in determinate mode. Has no effect in indeterminate mode — the label is always hidden there. |
|
|
308
|
-
| `max` | `number` | `100` | Upper bound of the value range. Must be greater than `min`; otherwise the bar reports no values and a warning is logged in development. |
|
|
309
|
-
| `min` | `number` | `0` | Lower bound of the value range. |
|
|
310
|
-
| `rounded` | `"full" \| "large" \| "medium" \| "none" \| "small"` | `"medium"` | Border-radius preset applied to the bar. |
|
|
311
|
-
| `value` | `number` | `0` | Current progress value within `[min, max]`. Values outside the range are clamped, for the bar and for `aria-valuenow`; non-finite values count as `min`. |
|
|
312
|
-
|
|
313
|
-
### `ProgressBarLabelTemplateDirective`
|
|
314
|
-
|
|
315
|
-
Structural template directive that replaces the default percentage label. The template is hidden when `indeterminate`
|
|
316
|
-
is `true`.
|
|
317
|
-
|
|
318
|
-
**Selector:** `ng-template[monaProgressBarLabelTemplate]`
|
|
319
|
-
|
|
320
|
-
#### Template context
|
|
321
|
-
|
|
322
|
-
| Name | Type |
|
|
323
|
-
| --- | --- |
|
|
324
|
-
| `$implicit` | `number` |
|
|
325
|
-
| `max` | `number` |
|
|
326
|
-
| `min` | `number` |
|
|
327
|
-
| `percent` | `number` |
|
|
290
|
+
| Name | Kind | Description |
|
|
291
|
+
| --- | --- | --- |
|
|
292
|
+
| [`ProgressBarComponent`](api/progress-bar.md#progressbarcomponent) | Component | |
|
|
293
|
+
| [`ProgressBarLabelTemplateDirective`](api/progress-bar.md#progressbarlabeltemplatedirective) | Directive | Structural template directive that replaces the default percentage label. |
|
|
328
294
|
|
|
329
295
|
### Types
|
|
330
296
|
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
```typescript
|
|
334
|
-
const PROGRESS_BAR_DEFAULT_MESSAGES: MonaProgressBarMessages;
|
|
335
|
-
```
|
|
336
|
-
|
|
337
|
-
#### `LabelTemplateContext`
|
|
338
|
-
|
|
339
|
-
| Name | Type |
|
|
297
|
+
| Type | Kind |
|
|
340
298
|
| --- | --- |
|
|
341
|
-
|
|
|
342
|
-
| `
|
|
343
|
-
| `
|
|
344
|
-
| `percent` | `number` |
|
|
345
|
-
|
|
346
|
-
#### `LabelPosition`
|
|
347
|
-
|
|
348
|
-
```typescript
|
|
349
|
-
type LabelPosition = "start" | "center" | "end";
|
|
350
|
-
```
|
|
351
|
-
|
|
352
|
-
#### `Action`
|
|
353
|
-
|
|
354
|
-
From `@nanahoshi/mona-ui/common`.
|
|
299
|
+
| [`PROGRESS_BAR_DEFAULT_MESSAGES`](api/progress-bar.md#progress-bar-default-messages) | Constant |
|
|
300
|
+
| [`LabelTemplateContext`](api/progress-bar.md#labeltemplatecontext) | Interface |
|
|
301
|
+
| [`LabelPosition`](api/progress-bar.md#labelposition) | Type alias |
|
|
355
302
|
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
```typescript
|
|
359
|
-
type Action<P = void, R = void> = (arg: P) => R;
|
|
360
|
-
```
|
|
361
|
-
|
|
362
|
-
#### `MonaProgressBarMessages`
|
|
363
|
-
|
|
364
|
-
From `@nanahoshi/mona-ui/i18n`.
|
|
365
|
-
|
|
366
|
-
| Name | Type |
|
|
367
|
-
| --- | --- |
|
|
368
|
-
| `label` (read-only) | `string` |
|
|
303
|
+
**Related types:** [`Action`](api/common.md#action), [`MonaProgressBarMessages`](api/i18n.md#monaprogressbarmessages)
|
package/docs/radio-button.md
CHANGED
|
@@ -348,104 +348,16 @@ The keyboard is the browser's native radio behavior. Radio buttons that share a
|
|
|
348
348
|
|
|
349
349
|
## API
|
|
350
350
|
|
|
351
|
-
Everything below is imported from `@nanahoshi/mona-ui/radio-button`.
|
|
351
|
+
Everything below is imported from `@nanahoshi/mona-ui/radio-button`. Each name links to its reference page, with every input, output, property and method.
|
|
352
352
|
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
**Selector:** `mona-radio-button`
|
|
356
|
-
**Type parameters:** `T = unknown`
|
|
357
|
-
**Implements:** `FormValueControl<T>`
|
|
358
|
-
|
|
359
|
-
#### Inputs
|
|
360
|
-
|
|
361
|
-
| Name | Type | Default | Description |
|
|
362
|
-
| --- | --- | --- | --- |
|
|
363
|
-
| `aria-describedby` | `string` | `""` | Id of an element that describes the radio button, such as an error message. |
|
|
364
|
-
| `aria-label` | `string` | `""` | Accessible name of the radio button when it has no visible label. |
|
|
365
|
-
| `aria-labelledby` | `string` | `""` | Id of the element that labels the radio button. |
|
|
366
|
-
| `class` | `string` | `""` | Additional CSS classes merged onto the label container element via `tailwind-merge`. |
|
|
367
|
-
| `disabled` | `boolean` | `false` | Sets the disabled state of the radio button. |
|
|
368
|
-
| `inputId` | `string` | `generated` | Id of the native radio input. Point a `<label for>` at it to label the radio button from outside. A unique id is generated when it isn't set. |
|
|
369
|
-
| `invalid` | `boolean` | `false` | Marks the radio button as invalid. When bound to a signal form field via `[formField]`, this is written by the `FormField` directive. |
|
|
370
|
-
| `label` | `string` | `""` | Text label displayed alongside the radio button. When provided, takes precedence over projected content. When empty, projected content inside `<mona-radio-button>` is used. When both are absent, name the radio button with `aria-label` or `aria-labelledby`. |
|
|
371
|
-
| `labelPosition` | `"before" \| "after"` | `"after"` | Position of the label relative to the radio button circle. |
|
|
372
|
-
| `labelSize` | `"large" \| "medium" \| "small"` | `"medium"` | Font size applied to the label text. |
|
|
373
|
-
| `name` | `string` | `""` | HTML `name` attribute forwarded to the native input. Radio buttons that share the same `name` form a mutually exclusive group in the browser. |
|
|
374
|
-
| `radioValue` | `T` | `undefined` | The identity value of this radio button within a group. Compared against `value()` to determine whether this button is selected. When this button is chosen, its `radioValue` is written to the form as the new group value. A radio button without one can't be selected. |
|
|
375
|
-
| `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. |
|
|
376
|
-
| `required` | `boolean` | `false` | Marks the radio button as required, as the native `required` attribute. When bound to a signal form field via `[formField]`, this is written by the `FormField` directive. |
|
|
377
|
-
| `rounded` | `"full" \| "large" \| "medium" \| "none" \| "small"` | `"full"` | Sets the border radius of the radio button circle and indicator. |
|
|
378
|
-
| `touched` | `boolean` | `false` | Marks the radio button as touched. Error styling requires both `invalid` and `touched` to be `true`. When bound to a signal form field via `[formField]`, this is written by the `FormField` directive. |
|
|
379
|
-
| `value` (two-way) | `T` | `undefined` | The currently selected value of a group of radio buttons that aren't in a `mona-radio-group`. When bound to a signal form field via `[formField]`, the `FormField` directive keeps it in sync. |
|
|
380
|
-
|
|
381
|
-
#### Outputs
|
|
382
|
-
|
|
383
|
-
| Name | Type | Description |
|
|
384
|
-
| --- | --- | --- |
|
|
385
|
-
| `inputBlur` | `FocusEvent` | Emits when the input loses focus. |
|
|
386
|
-
| `inputClick` | `MouseEvent` | Emits when the input is clicked. |
|
|
387
|
-
| `inputFocus` | `FocusEvent` | Emits when the input receives focus. |
|
|
388
|
-
| `touch` | `void` | Emits when the radio button loses focus or is selected. |
|
|
389
|
-
| `valueChange` | `T` | Emitted when `value` changes. |
|
|
390
|
-
|
|
391
|
-
#### Methods
|
|
392
|
-
|
|
393
|
-
| Signature | Description |
|
|
394
|
-
| --- | --- |
|
|
395
|
-
| `focus(options?: FocusOptions): void` | Moves focus to the native radio input. |
|
|
396
|
-
|
|
397
|
-
### `RadioGroupComponent`
|
|
398
|
-
|
|
399
|
-
**Selector:** `mona-radio-group`
|
|
400
|
-
**Type parameters:** `T = unknown`
|
|
401
|
-
**Implements:** `FormValueControl<T>`
|
|
402
|
-
|
|
403
|
-
#### Inputs
|
|
404
|
-
|
|
405
|
-
| Name | Type | Default | Description |
|
|
406
|
-
| --- | --- | --- | --- |
|
|
407
|
-
| `aria-describedby` | `string` | `""` | Id of an element that describes the group, such as an error message. |
|
|
408
|
-
| `aria-label` | `string` | `""` | Accessible name of the group. A group needs a name from this, `aria-labelledby` or a `mona-label`. |
|
|
409
|
-
| `aria-labelledby` | `string` | `""` | Id of the element that labels the group. |
|
|
410
|
-
| `class` | `string` | `""` | Additional CSS classes merged onto the group via `tailwind-merge`. |
|
|
411
|
-
| `disabled` | `boolean` | `false` | Disables every radio button in the group. When bound to a signal form field via `[formField]`, this is written by the `FormField` directive. |
|
|
412
|
-
| `invalid` | `boolean` | `false` | Marks the group as invalid. It shows once `touched` is also true. When bound to a signal form field via `[formField]`, this is written by the `FormField` directive. |
|
|
413
|
-
| `name` | `string` | `""` | The native `name` shared by the radio buttons in the group. A unique name is generated when it isn't set. When bound to a signal form field via `[formField]`, this is written by the `FormField` directive. |
|
|
414
|
-
| `orientation` | `"horizontal" \| "vertical"` | `"vertical"` | The direction the radio buttons are laid out and announced in. |
|
|
415
|
-
| `readonly` | `boolean` | `false` | Prevents value changes while the radio buttons stay focusable and readable. When bound to a signal form field via `[formField]`, this is written by the `FormField` directive. |
|
|
416
|
-
| `required` | `boolean` | `false` | Marks the group as required. When bound to a signal form field via `[formField]`, this is written by the `FormField` directive. |
|
|
417
|
-
| `touched` | `boolean` | `false` | Marks the group as touched. Error styling needs both `invalid` and `touched`. When bound to a signal form field via `[formField]`, this is written by the `FormField` directive. |
|
|
418
|
-
| `value` (two-way) | `T` | `undefined` | The `radioValue` of the selected radio button. |
|
|
419
|
-
|
|
420
|
-
#### Outputs
|
|
421
|
-
|
|
422
|
-
| Name | Type | Description |
|
|
423
|
-
| --- | --- | --- |
|
|
424
|
-
| `touch` | `void` | Emits when a radio button is selected and when focus leaves the group. |
|
|
425
|
-
| `valueChange` | `T` | Emitted when `value` changes. |
|
|
426
|
-
|
|
427
|
-
#### Methods
|
|
428
|
-
|
|
429
|
-
| Signature | Description |
|
|
353
|
+
| Name | Kind |
|
|
430
354
|
| --- | --- |
|
|
431
|
-
| `
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
**Selector:** `input[type='radio'][monaRadioButton]`
|
|
436
|
-
|
|
437
|
-
#### Inputs
|
|
438
|
-
|
|
439
|
-
| Name | Type | Default | Description |
|
|
440
|
-
| --- | --- | --- | --- |
|
|
441
|
-
| `invalid` | `boolean` | `false` | Marks the radio button as invalid, triggering error border and ring styling. |
|
|
442
|
-
| `rounded` | `RadioButtonDirectiveProps["rounded"]` | `"full"` | Sets the border radius of the radio button. |
|
|
443
|
-
| `touched` | `boolean` | `false` | Marks the radio button as touched. Error styling is only shown when both `invalid` and `touched` are `true`. |
|
|
355
|
+
| [`RadioButtonComponent`](api/radio-button.md#radiobuttoncomponent) | Component |
|
|
356
|
+
| [`RadioGroupComponent`](api/radio-button.md#radiogroupcomponent) | Component |
|
|
357
|
+
| [`RadioButtonDirective`](api/radio-button.md#radiobuttondirective) | Directive |
|
|
444
358
|
|
|
445
359
|
### Types
|
|
446
360
|
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
type RadioButtonDirectiveProps = VariantProps<typeof radioButtonDirectiveThemeVariants>;
|
|
451
|
-
```
|
|
361
|
+
| Type | Kind |
|
|
362
|
+
| --- | --- |
|
|
363
|
+
| [`RadioButtonDirectiveProps`](api/radio-button.md#radiobuttondirectiveprops) | Type alias |
|
package/docs/range-slider.md
CHANGED
|
@@ -277,91 +277,18 @@ In RTL, `ArrowLeft` increases and `ArrowRight` decreases.
|
|
|
277
277
|
|
|
278
278
|
## API
|
|
279
279
|
|
|
280
|
-
Everything below is imported from `@nanahoshi/mona-ui/slider`.
|
|
281
|
-
|
|
282
|
-
### `RangeSliderComponent`
|
|
283
|
-
|
|
284
|
-
**Selector:** `mona-range-slider`
|
|
285
|
-
**Implements:** `FormValueControl<[number, number]>`
|
|
286
|
-
|
|
287
|
-
#### Inputs
|
|
288
|
-
|
|
289
|
-
| Name | Type | Default | Description |
|
|
290
|
-
| --- | --- | --- | --- |
|
|
291
|
-
| `aria-describedby` | `string \| null` | `null` | Id of an element that describes the control, such as an error message. On a range slider it describes each handle. |
|
|
292
|
-
| `aria-label` | `string \| null` | `null` | Accessible name of the control. On a range slider it names the group holding both handles. |
|
|
293
|
-
| `aria-label-end` | `string \| null` | `null` | Accessible name for the upper-value (secondary) handle. |
|
|
294
|
-
| `aria-label-start` | `string \| null` | `null` | Accessible name for the lower-value (primary) handle. |
|
|
295
|
-
| `aria-labelledby` | `string \| null` | `null` | Id of the element that labels the control. On a range slider each handle reads it before its own name. |
|
|
296
|
-
| `ariaValueText` | `((value: number) => string) \| null` | `null` | Human-readable override for the `aria-valuenow` announcement. Pass a function that receives the current value and returns the string to announce. |
|
|
297
|
-
| `disabled` | `boolean` | `false` | Renders the component with reduced visual emphasis and removes pointer interaction. |
|
|
298
|
-
| `handleClasses` | `string \| string[]` | `[]` | Additional CSS classes to apply to the slider handle. |
|
|
299
|
-
| `handleStyles` | `Partial<CSSStyleDeclaration>` | `{}` | Additional inline styles to apply to the slider handle. |
|
|
300
|
-
| `invalid` | `boolean` | `false` | Marks the control as invalid for form validation purposes, reflecting `aria-invalid` on the handle element once the control is touched. |
|
|
301
|
-
| `labelPosition` | `SliderLabelPosition` | `"after"` | Position of the label relative to the component. |
|
|
302
|
-
| `labelStep` | `number` | `1` | Controls which tick labels are shown — only every n<sup>th</sup> label is rendered. |
|
|
303
|
-
| `largeTickStep` | `number \| null` | `null` | Controls which ticks render at large size — only every n<sup>th</sup> tick is enlarged. Pass `null` to disable large ticks. |
|
|
304
|
-
| `maxValue` | `number` | `10` | Upper bound of the value range. Must be greater than `minValue`. |
|
|
305
|
-
| `minValue` | `number` | `0` | Lower bound of the value range. |
|
|
306
|
-
| `orientation` | `Orientation` | `"horizontal"` | Layout orientation of the component. |
|
|
307
|
-
| `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. |
|
|
308
|
-
| `rounded` | `"full" \| "large" \| "medium" \| "none" \| "small"` | `"full"` | Border-radius preset applied to the slider handle. |
|
|
309
|
-
| `selectionBackground` | `string \| Partial<CSSStyleDeclaration> \| null` | `null` | Background color of the filled selection area between the minimum and the current value. Accepts a CSS color string or a `CSSStyleDeclaration` partial. |
|
|
310
|
-
| `shiftMultiplier` | `number` | `10` | Multiplier applied to the step when the user holds Shift while pressing an arrow key. |
|
|
311
|
-
| `showLabels` | `boolean` | `false` | Displays value labels alongside tick marks. Only takes effect when `showTicks` is `true`. |
|
|
312
|
-
| `showTicks` | `boolean` | `false` | Displays tick marks at each step position along the track. |
|
|
313
|
-
| `smallTickStep` | `number` | `1` | Controls how many ticks are visible — only every n<sup>th</sup> tick is rendered. |
|
|
314
|
-
| `step` | `number` | `1` | Distance between the values the control can take. `maxValue` can always be reached, even when it isn't a whole number of steps from `minValue`. |
|
|
315
|
-
| `touched` | `boolean` | `false` | Marks the slider as touched. Error styling requires both `invalid` and `touched` to be `true`. When bound to a signal form field via `[formField]`, this is written by the `FormField` directive. |
|
|
316
|
-
| `trackBackground` | `string \| Partial<CSSStyleDeclaration> \| null` | `null` | Background color of the unfilled track portion. Accepts a CSS color string or a `CSSStyleDeclaration` partial. |
|
|
317
|
-
| `trackSize` | `string \| number` | `undefined` | Width (vertical orientation) or height (horizontal orientation) of the track. Accepts a pixel number or any CSS length string. |
|
|
318
|
-
| `value` (two-way) | `[number, number]` | `[0, 10]` | Selected range as `[minimum, maximum]`. A value out of range, off the step grid or unsorted is shown at the nearest valid values, and the model keeps its own until the user changes it. A development warning reports it. |
|
|
319
|
-
|
|
320
|
-
#### Outputs
|
|
321
|
-
|
|
322
|
-
| Name | Type | Description |
|
|
323
|
-
| --- | --- | --- |
|
|
324
|
-
| `touch` | `void` | Emitted when a handle loses focus. A click on the track moves focus to the handle first. |
|
|
325
|
-
| `valueChange` | `[number, number]` | Emitted when `value` changes. |
|
|
326
|
-
|
|
327
|
-
#### Methods
|
|
328
|
-
|
|
329
|
-
| Signature | Description |
|
|
330
|
-
| --- | --- |
|
|
331
|
-
| `focus(options?: FocusOptions): void` | Moves focus to the lower handle. Does nothing while disabled. |
|
|
332
|
-
|
|
333
|
-
### `SliderHandleTemplateDirective`
|
|
334
|
-
|
|
335
|
-
**Selector:** `ng-template[monaSliderHandleTemplate]`
|
|
336
|
-
|
|
337
|
-
#### Template context
|
|
338
|
-
|
|
339
|
-
| Name | Type |
|
|
340
|
-
| --- | --- |
|
|
341
|
-
| `$implicit` | `number` |
|
|
342
|
-
|
|
343
|
-
### `SliderTickValueTemplateDirective`
|
|
344
|
-
|
|
345
|
-
**Selector:** `ng-template[monaSliderTickValueTemplate]`
|
|
346
|
-
|
|
347
|
-
#### Template context
|
|
280
|
+
Everything below is imported from `@nanahoshi/mona-ui/slider`. Each name links to its reference page, with every input, output, property and method.
|
|
348
281
|
|
|
349
|
-
| Name |
|
|
282
|
+
| Name | Kind |
|
|
350
283
|
| --- | --- |
|
|
351
|
-
|
|
|
284
|
+
| [`RangeSliderComponent`](api/slider.md#rangeslidercomponent) | Component |
|
|
285
|
+
| [`SliderHandleTemplateDirective`](api/slider.md#sliderhandletemplatedirective) | Directive |
|
|
286
|
+
| [`SliderTickValueTemplateDirective`](api/slider.md#slidertickvaluetemplatedirective) | Directive |
|
|
352
287
|
|
|
353
288
|
### Types
|
|
354
289
|
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
type SliderLabelPosition = "before" | "after";
|
|
359
|
-
```
|
|
360
|
-
|
|
361
|
-
#### `Orientation`
|
|
362
|
-
|
|
363
|
-
From `@nanahoshi/mona-ui/common`.
|
|
290
|
+
| Type | Kind |
|
|
291
|
+
| --- | --- |
|
|
292
|
+
| [`SliderLabelPosition`](api/slider.md#sliderlabelposition) | Type alias |
|
|
364
293
|
|
|
365
|
-
|
|
366
|
-
type Orientation = "horizontal" | "vertical";
|
|
367
|
-
```
|
|
294
|
+
**Related types:** [`Orientation`](api/common.md#orientation)
|
package/docs/rating.md
CHANGED
|
@@ -347,172 +347,24 @@ In RTL, `ArrowLeft` increases and `ArrowRight` decreases. Handled keys call `pre
|
|
|
347
347
|
|
|
348
348
|
## API
|
|
349
349
|
|
|
350
|
-
Everything below is imported from `@nanahoshi/mona-ui/rating`.
|
|
351
|
-
|
|
352
|
-
### `RatingComponent`
|
|
353
|
-
|
|
354
|
-
**Selector:** `mona-rating`
|
|
355
|
-
**Implements:** `FormValueControl<number>`
|
|
356
|
-
|
|
357
|
-
#### Inputs
|
|
358
|
-
|
|
359
|
-
| Name | Type | Default | Description |
|
|
360
|
-
| --- | --- | --- | --- |
|
|
361
|
-
| `aria-describedby` | `string \| null` | `null` | Associates help text or an error description with the focusable rating control. |
|
|
362
|
-
| `aria-label` | `string \| null` | `null` | Explicit accessible name for the rating control. Provide `aria-label`, `aria-labelledby`, or `label` so assistive technology can announce the control. |
|
|
363
|
-
| `aria-labelledby` | `string \| null` | `null` | IDs of external elements providing the accessible name for the rating control. |
|
|
364
|
-
| `ariaValueText` | `((value: number, maximum: number) => string) \| null` | `null` | Custom screen-reader value announcement. Receives the normalized value and the item count and returns the string to expose through `aria-valuetext`. |
|
|
365
|
-
| `class` | `string` | `""` | Additional CSS classes merged onto the host element via `tailwind-merge`. |
|
|
366
|
-
| `clearable` | `boolean` | `false` | Lets a click on the current value clear the rating, so pointer and touch users can undo one. The keyboard can always clear it with Home. |
|
|
367
|
-
| `color` | `string \| null` | `undefined` | CSS color for selected and hovered rating visuals. Empty, `null`, and `undefined` values use the primary theme color. |
|
|
368
|
-
| `disabled` | `boolean` | `false` | Disables pointer and keyboard interaction and removes the control from the tab sequence. When bound to a signal form field via `[formField]`, this is written by the signal forms `Field` directive. |
|
|
369
|
-
| `icon` | `RatingIconName` | `"star"` | Built-in icon used for the default rating visuals. Choose `star`, `heart`, `circle`, `diamond`, or `flame`; use item templates to supply a custom icon. |
|
|
370
|
-
| `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 `Field` directive. |
|
|
371
|
-
| `itemsCount` | `number` | `5` | Number of rating items. Fractional values are floored and values below one are raised to one. |
|
|
372
|
-
| `label` | `string \| null` | `null` | Optional visible label rendered before or after the rating items. When no explicit `aria-label` or `aria-labelledby` is supplied, the label provides the accessible name. |
|
|
373
|
-
| `labelPosition` | `RatingLabelPosition` | `"after"` | Places the visible label before or after the item group. |
|
|
374
|
-
| `precision` | `RatingPrecision` | `"item"` | Selection granularity of the rating. |
|
|
375
|
-
| `readonly` | `boolean` | `false` | Prevents value changes while preserving focusability and normal visual emphasis. |
|
|
376
|
-
| `required` | `boolean` | `false` | Shows the invalid state while the rating is `0` and the control is touched. The `required` rule of signal forms doesn't treat `0` as empty, so it won't fail the form by itself: use `min(path, 1)` to reject an unrated value. When bound to a signal form field via `[formField]`, this is written by the `FormField` directive. |
|
|
377
|
-
| `selection` | `RatingSelectionMode` | `"continuous"` | Controls cumulative or single-item filling. |
|
|
378
|
-
| `size` | `"large" \| "medium" \| "small"` | `"medium"` | Size preset controlling the icon dimensions, item hitboxes, spacing, and label typography. |
|
|
379
|
-
| `tabindex` | `string \| number` | `0` | Tab index applied to the focusable rating control when not disabled. Accepts a numeric string and converts it to a number. |
|
|
380
|
-
| `touched` | `boolean` | `false` | Marks the component as touched. When bound to a signal form field via `[formField]`, this is written by the signal forms `Field` directive. |
|
|
381
|
-
| `value` (two-way) | `number` | `0` | Current rating value. `0` represents an unrated state. Values are normalized for rendering but are not rewritten until the user interacts with the component. |
|
|
382
|
-
|
|
383
|
-
#### Outputs
|
|
384
|
-
|
|
385
|
-
| Name | Type | Description |
|
|
386
|
-
| --- | --- | --- |
|
|
387
|
-
| `touch` | `void` | Emitted when the control loses focus or a pointer commits a rating, marking the field as touched. |
|
|
388
|
-
| `valueChange` | `number` | Emitted when `value` changes. |
|
|
389
|
-
|
|
390
|
-
#### Methods
|
|
391
|
-
|
|
392
|
-
| Signature | Description |
|
|
393
|
-
| --- | --- |
|
|
394
|
-
| `blur(): void` | Blurs the inner slider control if focused. |
|
|
395
|
-
| `focus(options?: FocusOptions): void` | Focuses the inner slider control. Does nothing while disabled. |
|
|
396
|
-
|
|
397
|
-
### `RatingHoveredItemTemplateDirective`
|
|
398
|
-
|
|
399
|
-
Renders the pointer-preview visual for rating items. Overrides the default preset
|
|
400
|
-
overlay whenever the visible state comes from pointer preview.
|
|
401
|
-
|
|
402
|
-
**Selector:** `ng-template[monaRatingHoveredItemTemplate]`
|
|
403
|
-
|
|
404
|
-
#### Template context
|
|
405
|
-
|
|
406
|
-
| Name | Type | Description |
|
|
407
|
-
| --- | --- | --- |
|
|
408
|
-
| `$implicit` | `number` | Zero-based item index. |
|
|
409
|
-
| `fill` | `number` | Visible fill amount between 0 and 1. |
|
|
410
|
-
| `hovered` | `boolean` | Whether the visible state comes from pointer preview. |
|
|
411
|
-
| `index` | `number` | Zero-based item index. |
|
|
412
|
-
| `itemValue` | `number` | One-based value represented by this item. |
|
|
413
|
-
| `selected` | `boolean` | Whether the visible state comes from the committed value. |
|
|
414
|
-
|
|
415
|
-
### `RatingItemTemplateDirective`
|
|
416
|
-
|
|
417
|
-
Renders the default (unselected) visual for every rating item. Overrides the
|
|
418
|
-
default preset icon for the base layer of each item.
|
|
419
|
-
|
|
420
|
-
**Selector:** `ng-template[monaRatingItemTemplate]`
|
|
421
|
-
|
|
422
|
-
#### Template context
|
|
350
|
+
Everything below is imported from `@nanahoshi/mona-ui/rating`. Each name links to its reference page, with every input, output, property and method.
|
|
423
351
|
|
|
424
|
-
| Name |
|
|
352
|
+
| Name | Kind | Description |
|
|
425
353
|
| --- | --- | --- |
|
|
426
|
-
|
|
|
427
|
-
| `
|
|
428
|
-
| `
|
|
429
|
-
| `
|
|
430
|
-
| `itemValue` | `number` | One-based value represented by this item. |
|
|
431
|
-
| `selected` | `boolean` | Whether the visible state comes from the committed value. |
|
|
432
|
-
|
|
433
|
-
### `RatingSelectedItemTemplateDirective`
|
|
434
|
-
|
|
435
|
-
Renders the committed selected visual for rating items. Overrides the default
|
|
436
|
-
preset overlay whenever the visible state comes from the committed value.
|
|
437
|
-
|
|
438
|
-
**Selector:** `ng-template[monaRatingSelectedItemTemplate]`
|
|
439
|
-
|
|
440
|
-
#### Template context
|
|
441
|
-
|
|
442
|
-
| Name | Type | Description |
|
|
443
|
-
| --- | --- | --- |
|
|
444
|
-
| `$implicit` | `number` | Zero-based item index. |
|
|
445
|
-
| `fill` | `number` | Visible fill amount between 0 and 1. |
|
|
446
|
-
| `hovered` | `boolean` | Whether the visible state comes from pointer preview. |
|
|
447
|
-
| `index` | `number` | Zero-based item index. |
|
|
448
|
-
| `itemValue` | `number` | One-based value represented by this item. |
|
|
449
|
-
| `selected` | `boolean` | Whether the visible state comes from the committed value. |
|
|
354
|
+
| [`RatingComponent`](api/rating.md#ratingcomponent) | Component | |
|
|
355
|
+
| [`RatingHoveredItemTemplateDirective`](api/rating.md#ratinghovereditemtemplatedirective) | Directive | Renders the pointer-preview visual for rating items. |
|
|
356
|
+
| [`RatingItemTemplateDirective`](api/rating.md#ratingitemtemplatedirective) | Directive | Renders the default (unselected) visual for every rating item. |
|
|
357
|
+
| [`RatingSelectedItemTemplateDirective`](api/rating.md#ratingselecteditemtemplatedirective) | Directive | Renders the committed selected visual for rating items. |
|
|
450
358
|
|
|
451
359
|
### Types
|
|
452
360
|
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
```typescript
|
|
456
|
-
const RATING_DEFAULT_MESSAGES: MonaRatingMessages;
|
|
457
|
-
```
|
|
458
|
-
|
|
459
|
-
#### `RatingItemTemplateContext`
|
|
460
|
-
|
|
461
|
-
Rendering context passed to the default, selected, and hovered item templates.
|
|
462
|
-
|
|
463
|
-
| Name | Type | Description |
|
|
361
|
+
| Type | Kind | Description |
|
|
464
362
|
| --- | --- | --- |
|
|
465
|
-
|
|
|
466
|
-
| `
|
|
467
|
-
| `
|
|
468
|
-
| `
|
|
469
|
-
| `
|
|
470
|
-
| `
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
Built-in icon names available for the default rating visuals.
|
|
475
|
-
|
|
476
|
-
```typescript
|
|
477
|
-
type RatingIconName = "circle" | "diamond" | "flame" | "heart" | "star";
|
|
478
|
-
```
|
|
479
|
-
|
|
480
|
-
#### `RatingLabelPosition`
|
|
481
|
-
|
|
482
|
-
Position of the visible label relative to the rating items.
|
|
483
|
-
|
|
484
|
-
```typescript
|
|
485
|
-
type RatingLabelPosition = "before" | "after";
|
|
486
|
-
```
|
|
487
|
-
|
|
488
|
-
#### `RatingPrecision`
|
|
489
|
-
|
|
490
|
-
Selection granularity of the rating. `"item"` selects whole items, `"half"` selects
|
|
491
|
-
half-item increments.
|
|
492
|
-
|
|
493
|
-
```typescript
|
|
494
|
-
type RatingPrecision = "item" | "half";
|
|
495
|
-
```
|
|
496
|
-
|
|
497
|
-
#### `RatingSelectionMode`
|
|
498
|
-
|
|
499
|
-
How the selected value is visualized across the items. `"continuous"` fills every
|
|
500
|
-
item up to the selected value, `"single"` fills only the item representing the selected value.
|
|
501
|
-
|
|
502
|
-
```typescript
|
|
503
|
-
type RatingSelectionMode = "continuous" | "single";
|
|
504
|
-
```
|
|
505
|
-
|
|
506
|
-
#### `MonaRatingMessages`
|
|
507
|
-
|
|
508
|
-
From `@nanahoshi/mona-ui/i18n`.
|
|
509
|
-
|
|
510
|
-
| Name | Type |
|
|
511
|
-
| --- | --- |
|
|
512
|
-
| `notRated` (read-only) | `string` |
|
|
513
|
-
|
|
514
|
-
**Methods**
|
|
515
|
-
|
|
516
|
-
| Signature |
|
|
517
|
-
| --- |
|
|
518
|
-
| `valueText(value: number, max: number): string` |
|
|
363
|
+
| [`RATING_DEFAULT_MESSAGES`](api/rating.md#rating-default-messages) | Constant | |
|
|
364
|
+
| [`RatingItemTemplateContext`](api/rating.md#ratingitemtemplatecontext) | Interface | Rendering context passed to the default, selected, and hovered item templates. |
|
|
365
|
+
| [`RatingIconName`](api/rating.md#ratingiconname) | Type alias | Built-in icon names available for the default rating visuals. |
|
|
366
|
+
| [`RatingLabelPosition`](api/rating.md#ratinglabelposition) | Type alias | Position of the visible label relative to the rating items. |
|
|
367
|
+
| [`RatingPrecision`](api/rating.md#ratingprecision) | Type alias | Selection granularity of the rating. |
|
|
368
|
+
| [`RatingSelectionMode`](api/rating.md#ratingselectionmode) | Type alias | How the selected value is visualized across the items. |
|
|
369
|
+
|
|
370
|
+
**Related types:** [`MonaRatingMessages`](api/i18n.md#monaratingmessages)
|
package/docs/scroll-view.md
CHANGED
|
@@ -280,96 +280,19 @@ Keys work when focus is on the host, an arrow or a pager control. The host recei
|
|
|
280
280
|
|
|
281
281
|
## API
|
|
282
282
|
|
|
283
|
-
Everything below is imported from `@nanahoshi/mona-ui/scroll-view`.
|
|
283
|
+
Everything below is imported from `@nanahoshi/mona-ui/scroll-view`. Each name links to its reference page, with every input, output, property and method.
|
|
284
284
|
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
**Selector:** `mona-scroll-view`
|
|
288
|
-
|
|
289
|
-
#### Inputs
|
|
290
|
-
|
|
291
|
-
| Name | Type | Default | Description |
|
|
292
|
-
| --- | --- | --- | --- |
|
|
293
|
-
| `animate` | `boolean \| number` | `true` | Sets whether page transitions are animated. Pass a boolean for default duration (500ms) or a number for custom duration in milliseconds. |
|
|
294
|
-
| `aria-label` | `string` | `""` | Accessible name of the carousel, saying what it shows. Use this or `aria-labelledby`; with neither, the host is a plain group and a warning is logged in development. |
|
|
295
|
-
| `aria-labelledby` | `string` | `""` | The id of the element that names the carousel. |
|
|
296
|
-
| `arrows` | `boolean` | `false` | Shows the previous and next arrows. A swipe is a gesture, so give pointer users arrows or a pager too. |
|
|
297
|
-
| `class` | `string` | `""` | Sets custom CSS classes on the component host element. Merged with base classes via tailwind-merge. |
|
|
298
|
-
| `data` | `Iterable<unknown>` | `[]` | Sets the data of the scroll view. |
|
|
299
|
-
| `height` (required) | `string \| number` | — | Sets the height of the scroll view. This property is required. |
|
|
300
|
-
| `index` (two-way) | `number` | `0` | Sets the active page of the scroll view. |
|
|
301
|
-
| `infinite` | `boolean` | `false` | Sets whether the scroll view is infinite. |
|
|
302
|
-
| `pageable` | `boolean` | `false` | Shows the pager. A swipe is a gesture, so give pointer users arrows or a pager too. |
|
|
303
|
-
| `pagerBlur` | `number` | `3` | Sets the background blur of the pager in pixels. It doesn't apply with `pagerOverlay` set to `"none"`. |
|
|
304
|
-
| `pagerOverlay` | `PagerOverlay` | `"dark"` | Sets the color of the pager. |
|
|
305
|
-
| `pagerRounded` | `"full" \| "large" \| "medium" \| "none" \| "small"` | `"medium"` | Sets the border radius of the pager items. |
|
|
306
|
-
| `rounded` | `"large" \| "medium" \| "none" \| "small"` | `"medium"` | Sets the border radius of the scroll view. |
|
|
307
|
-
| `width` (required) | `string \| number` | — | Sets the width of the scroll view. |
|
|
308
|
-
|
|
309
|
-
#### Outputs
|
|
310
|
-
|
|
311
|
-
| Name | Type | Description |
|
|
285
|
+
| Name | Kind | Description |
|
|
312
286
|
| --- | --- | --- |
|
|
313
|
-
| `
|
|
314
|
-
|
|
315
|
-
### `ScrollViewSlideDirective`
|
|
316
|
-
|
|
317
|
-
Marks the template that renders each slide. Bind `[monaScrollViewSlide]` to the same data as the scroll
|
|
318
|
-
view, and `let-item` takes its type from it.
|
|
319
|
-
|
|
320
|
-
**Selector:** `ng-template[monaScrollViewSlide]`
|
|
321
|
-
**Type parameters:** `T = unknown`
|
|
322
|
-
|
|
323
|
-
#### Inputs
|
|
324
|
-
|
|
325
|
-
| Name | Type | Default | Description |
|
|
326
|
-
| --- | --- | --- | --- |
|
|
327
|
-
| `monaScrollViewSlide` | `Iterable<T> \| ""` | `""` | The scroll view's data, bound only so that `let-item` takes its type from it. Leave it empty for `unknown`. |
|
|
328
|
-
|
|
329
|
-
#### Template context
|
|
330
|
-
|
|
331
|
-
| Name | Type |
|
|
332
|
-
| --- | --- |
|
|
333
|
-
| `$implicit` | `T` |
|
|
334
|
-
| `height` | `number` |
|
|
335
|
-
| `width` | `number` |
|
|
287
|
+
| [`ScrollViewComponent`](api/scroll-view.md#scrollviewcomponent) | Component | |
|
|
288
|
+
| [`ScrollViewSlideDirective`](api/scroll-view.md#scrollviewslidedirective) | Directive | Marks the template that renders each slide. |
|
|
336
289
|
|
|
337
290
|
### Types
|
|
338
291
|
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
```typescript
|
|
342
|
-
const SCROLL_VIEW_DEFAULT_MESSAGES: MonaScrollViewMessages;
|
|
343
|
-
```
|
|
344
|
-
|
|
345
|
-
#### `ScrollViewSlideContext`
|
|
346
|
-
|
|
347
|
-
**Type parameters:** `T = unknown`
|
|
348
|
-
|
|
349
|
-
| Name | Type |
|
|
292
|
+
| Type | Kind |
|
|
350
293
|
| --- | --- |
|
|
351
|
-
|
|
|
352
|
-
| `
|
|
353
|
-
| `
|
|
354
|
-
|
|
355
|
-
#### `PagerOverlay`
|
|
294
|
+
| [`SCROLL_VIEW_DEFAULT_MESSAGES`](api/scroll-view.md#scroll-view-default-messages) | Constant |
|
|
295
|
+
| [`ScrollViewSlideContext`](api/scroll-view.md#scrollviewslidecontext) | Interface |
|
|
296
|
+
| [`PagerOverlay`](api/scroll-view.md#pageroverlay) | Type alias |
|
|
356
297
|
|
|
357
|
-
|
|
358
|
-
type PagerOverlay = "dark" | "light" | "none";
|
|
359
|
-
```
|
|
360
|
-
|
|
361
|
-
#### `MonaScrollViewMessages`
|
|
362
|
-
|
|
363
|
-
From `@nanahoshi/mona-ui/i18n`.
|
|
364
|
-
|
|
365
|
-
| Name | Type |
|
|
366
|
-
| --- | --- |
|
|
367
|
-
| `carousel` (read-only) | `string` |
|
|
368
|
-
| `nextPage` (read-only) | `string` |
|
|
369
|
-
| `page` (read-only) | `(current: number) => string` |
|
|
370
|
-
| `pageOf` (read-only) | `(current: number, total: number) => string` |
|
|
371
|
-
| `pages` (read-only) | `string` |
|
|
372
|
-
| `previousPage` (read-only) | `string` |
|
|
373
|
-
| `scrollPagerNext` (read-only) | `string` |
|
|
374
|
-
| `scrollPagerPrevious` (read-only) | `string` |
|
|
375
|
-
| `slide` (read-only) | `string` |
|
|
298
|
+
**Related types:** [`MonaScrollViewMessages`](api/i18n.md#monascrollviewmessages)
|