@nanahoshi/mona-ui 0.33.0 → 0.35.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/alert/package.json +4 -0
- package/badge/package.json +4 -0
- package/docs/alert.md +219 -0
- package/docs/api/alert.md +78 -0
- package/docs/api/avatar.md +25 -0
- package/docs/api/badge.md +24 -0
- package/docs/api/common.md +2 -2
- package/docs/api/grid.md +46 -13
- package/docs/api/i18n.md +45 -0
- package/docs/api/locales.md +14 -14
- package/docs/api/multi-select.md +2 -0
- package/docs/api/separator.md +23 -0
- package/docs/api/toolbar.md +81 -0
- package/docs/avatar.md +108 -6
- package/docs/badge.md +181 -0
- package/docs/grid-columns.md +121 -17
- package/docs/grid-state-export.md +24 -7
- package/docs/grid.md +1 -1
- package/docs/multi-select.md +54 -0
- package/docs/separator.md +147 -0
- package/docs/sidebar-menus.md +1 -1
- package/docs/toolbar.md +327 -0
- package/fesm2022/nanahoshi-mona-ui-alert.mjs +422 -0
- package/fesm2022/nanahoshi-mona-ui-avatar.mjs +182 -3
- package/fesm2022/nanahoshi-mona-ui-badge.mjs +273 -0
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-colgroup.component-C62HvK-w.mjs → nanahoshi-mona-ui-grid-grid-colgroup.component-Lv3GunpV.mjs} +2 -2
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-footer-row.component-BpsJwMkQ.mjs → nanahoshi-mona-ui-grid-grid-footer-row.component-BYH9XbCV.mjs} +8 -3
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-list.component-BVpGUjA7.mjs → nanahoshi-mona-ui-grid-grid-list.component-S2iCn8TV.mjs} +10 -6
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-row.component-D0T8kfdm.mjs → nanahoshi-mona-ui-grid-grid-row.component-BUJvgihp.mjs} +21 -6
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-virtual-list.component-5D2BjGx4.mjs → nanahoshi-mona-ui-grid-grid-virtual-list.component-Wndy-_Bt.mjs} +5 -5
- package/fesm2022/{nanahoshi-mona-ui-grid-grid.styles-62LTuPhD.mjs → nanahoshi-mona-ui-grid-grid.styles-aPD3c2A6.mjs} +228 -16
- package/fesm2022/nanahoshi-mona-ui-grid.mjs +422 -29
- package/fesm2022/nanahoshi-mona-ui-i18n-icu.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-locales-ar-sa.mjs +3 -0
- package/fesm2022/nanahoshi-mona-ui-locales-de-de.mjs +3 -0
- package/fesm2022/nanahoshi-mona-ui-locales-es-es.mjs +3 -0
- package/fesm2022/nanahoshi-mona-ui-locales-fr-fr.mjs +3 -0
- package/fesm2022/nanahoshi-mona-ui-locales-id-id.mjs +3 -0
- package/fesm2022/nanahoshi-mona-ui-locales-it-it.mjs +3 -0
- package/fesm2022/nanahoshi-mona-ui-locales-ja-jp.mjs +3 -0
- package/fesm2022/nanahoshi-mona-ui-locales-ko-kr.mjs +3 -0
- package/fesm2022/nanahoshi-mona-ui-locales-pl-pl.mjs +3 -0
- package/fesm2022/nanahoshi-mona-ui-locales-pt-br.mjs +3 -0
- package/fesm2022/nanahoshi-mona-ui-locales-ru-ru.mjs +3 -0
- package/fesm2022/nanahoshi-mona-ui-locales-tr-tr.mjs +3 -0
- package/fesm2022/nanahoshi-mona-ui-locales-zh-cn.mjs +3 -0
- package/fesm2022/nanahoshi-mona-ui-locales-zh-tw.mjs +3 -0
- package/fesm2022/nanahoshi-mona-ui-multi-select.mjs +83 -2
- package/fesm2022/nanahoshi-mona-ui-separator.mjs +165 -0
- package/fesm2022/nanahoshi-mona-ui-sidebar.mjs +3 -3
- package/fesm2022/nanahoshi-mona-ui-toolbar.mjs +536 -0
- package/i18n/catalogs/en-US.messages.json +9 -0
- package/llms.txt +14 -6
- package/locales/ar-sa/ar-sa.messages.json +9 -0
- package/locales/de-de/de-de.messages.json +9 -0
- package/locales/es-es/es-es.messages.json +9 -0
- package/locales/fr-fr/fr-fr.messages.json +9 -0
- package/locales/id-id/id-id.messages.json +9 -0
- package/locales/it-it/it-it.messages.json +9 -0
- package/locales/ja-jp/ja-jp.messages.json +9 -0
- package/locales/ko-kr/ko-kr.messages.json +9 -0
- package/locales/pl-pl/pl-pl.messages.json +9 -0
- package/locales/pt-br/pt-br.messages.json +9 -0
- package/locales/ru-ru/ru-ru.messages.json +9 -0
- package/locales/tr-tr/tr-tr.messages.json +9 -0
- package/locales/zh-cn/zh-cn.messages.json +9 -0
- package/locales/zh-tw/zh-tw.messages.json +9 -0
- package/package.json +17 -1
- package/separator/package.json +4 -0
- package/toolbar/package.json +4 -0
- package/types/nanahoshi-mona-ui-alert.d.ts +144 -0
- package/types/nanahoshi-mona-ui-avatar.d.ts +66 -0
- package/types/nanahoshi-mona-ui-badge.d.ts +82 -0
- package/types/nanahoshi-mona-ui-grid.d.ts +142 -64
- package/types/nanahoshi-mona-ui-i18n.d.ts +24 -0
- package/types/nanahoshi-mona-ui-locales-ar-sa.d.ts +9 -0
- package/types/nanahoshi-mona-ui-locales-de-de.d.ts +9 -0
- package/types/nanahoshi-mona-ui-locales-es-es.d.ts +9 -0
- package/types/nanahoshi-mona-ui-locales-fr-fr.d.ts +9 -0
- package/types/nanahoshi-mona-ui-locales-id-id.d.ts +9 -0
- package/types/nanahoshi-mona-ui-locales-it-it.d.ts +9 -0
- package/types/nanahoshi-mona-ui-locales-ja-jp.d.ts +9 -0
- package/types/nanahoshi-mona-ui-locales-ko-kr.d.ts +9 -0
- package/types/nanahoshi-mona-ui-locales-pl-pl.d.ts +9 -0
- package/types/nanahoshi-mona-ui-locales-pt-br.d.ts +9 -0
- package/types/nanahoshi-mona-ui-locales-ru-ru.d.ts +9 -0
- package/types/nanahoshi-mona-ui-locales-tr-tr.d.ts +9 -0
- package/types/nanahoshi-mona-ui-locales-zh-cn.d.ts +9 -0
- package/types/nanahoshi-mona-ui-locales-zh-tw.d.ts +9 -0
- package/types/nanahoshi-mona-ui-multi-select.d.ts +27 -0
- package/types/nanahoshi-mona-ui-separator.d.ts +66 -0
- package/types/nanahoshi-mona-ui-toolbar.d.ts +183 -0
package/docs/alert.md
ADDED
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
# Alert
|
|
2
|
+
|
|
3
|
+
> A message that stays on the page, tinted for what it means, with optional actions and dismissal.
|
|
4
|
+
|
|
5
|
+
Entry point: `@nanahoshi/mona-ui/alert`
|
|
6
|
+
|
|
7
|
+
**Selector:** `mona-alert`
|
|
8
|
+
|
|
9
|
+
`AlertComponent` shows a message that stays on the page, such as a failed payment above a form or a maintenance notice above a dashboard, tinted and marked with an icon for what it means, with an optional title, actions and dismiss button.
|
|
10
|
+
|
|
11
|
+
## Overview
|
|
12
|
+
|
|
13
|
+
Use an alert for a message that belongs to a place on the page and stays there until it's no longer true or someone dismisses it. It can be part of the page from the start, such as a notice, or appear because of something the user did, such as a save that failed.
|
|
14
|
+
|
|
15
|
+
**Use an alert when you need to:**
|
|
16
|
+
|
|
17
|
+
- Explain why a form didn't submit, with a way to try again
|
|
18
|
+
- Warn about something that affects the page, such as a plan running out of storage
|
|
19
|
+
- Confirm that a long task finished, where the result is shown
|
|
20
|
+
|
|
21
|
+
**Use something else when:**
|
|
22
|
+
|
|
23
|
+
- The message is brief and not tied to a place: use a [Notification](notification.md), which comes and goes on its own
|
|
24
|
+
- The user has to decide before carrying on: use a [Dialog](dialog.md)
|
|
25
|
+
- The message is about one field: use the [Form Field](form-field.md)'s error, next to the field
|
|
26
|
+
- It's a short status beside something: use a [Badge](badge.md)
|
|
27
|
+
|
|
28
|
+
## Import & Quick Start
|
|
29
|
+
|
|
30
|
+
```typescript
|
|
31
|
+
import { AlertComponent } from "@nanahoshi/mona-ui/alert";
|
|
32
|
+
// Only for a row of buttons below the text:
|
|
33
|
+
import { AlertActionsDirective } from "@nanahoshi/mona-ui/alert";
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
```html
|
|
37
|
+
<mona-alert look="warning" title="Storage almost full">
|
|
38
|
+
You've used 92% of your plan.
|
|
39
|
+
</mona-alert>
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Anatomy
|
|
43
|
+
|
|
44
|
+
| Part | How to set it |
|
|
45
|
+
|------|---------------|
|
|
46
|
+
| Icon | Set by `look`. Replace it with `<ng-template monaAlertIconTemplate>`, or leave it out with `[showIcon]="false"`. |
|
|
47
|
+
| Title | `title`, in bold above the text. |
|
|
48
|
+
| Text | The alert's content. |
|
|
49
|
+
| Actions | An element marked `monaAlertActions`, such as a `div` of buttons. It's placed below the text, wherever it is in the content. |
|
|
50
|
+
| Dismiss button | `dismissible`, in the corner. It emits `dismiss`. |
|
|
51
|
+
|
|
52
|
+
## Examples
|
|
53
|
+
|
|
54
|
+
### Looks
|
|
55
|
+
|
|
56
|
+
`looks-example.component.ts`
|
|
57
|
+
|
|
58
|
+
```typescript
|
|
59
|
+
import { Component } from "@angular/core";
|
|
60
|
+
import { AlertComponent } from "@nanahoshi/mona-ui/alert";
|
|
61
|
+
|
|
62
|
+
@Component({
|
|
63
|
+
selector: "app-alert-looks-example",
|
|
64
|
+
imports: [AlertComponent],
|
|
65
|
+
templateUrl: "./looks-example.component.html"
|
|
66
|
+
})
|
|
67
|
+
export class AlertLooksExampleComponent {}
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
`looks-example.component.html`
|
|
71
|
+
|
|
72
|
+
```html
|
|
73
|
+
<div class="flex max-w-xl flex-col gap-3">
|
|
74
|
+
<mona-alert look="info" title="Scheduled maintenance">
|
|
75
|
+
The dashboard is read-only on Sunday from 02:00 to 04:00 UTC.
|
|
76
|
+
</mona-alert>
|
|
77
|
+
<mona-alert look="success" title="Backup complete">All 1,204 files were copied to the archive.</mona-alert>
|
|
78
|
+
<mona-alert look="warning" title="Storage almost full">
|
|
79
|
+
You've used 92% of your plan. Older builds are deleted first when it runs out.
|
|
80
|
+
</mona-alert>
|
|
81
|
+
<mona-alert look="error" title="Payment failed">Your card was declined. Update it to keep your plan.</mona-alert>
|
|
82
|
+
<mona-alert look="neutral">Prices exclude VAT, which is added at checkout.</mona-alert>
|
|
83
|
+
</div>
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
### A form that failed to save
|
|
87
|
+
|
|
88
|
+
The alert appears when saving fails, and `announce="assertive"` reads its title and text at once, so a screen reader user hears why nothing changed. Both its buttons go away with it, so each one moves focus to the Save button first: Try again before it hides the alert, and the dismiss handler after.
|
|
89
|
+
|
|
90
|
+
`form-error-example.component.ts`
|
|
91
|
+
|
|
92
|
+
```typescript
|
|
93
|
+
import { Component, type ElementRef, signal, viewChild } from "@angular/core";
|
|
94
|
+
import { AlertActionsDirective, AlertComponent } from "@nanahoshi/mona-ui/alert";
|
|
95
|
+
import { ButtonDirective } from "@nanahoshi/mona-ui/button";
|
|
96
|
+
import { TextBoxDirective } from "@nanahoshi/mona-ui/text-box";
|
|
97
|
+
|
|
98
|
+
@Component({
|
|
99
|
+
selector: "app-alert-form-error-example",
|
|
100
|
+
imports: [AlertActionsDirective, AlertComponent, ButtonDirective, TextBoxDirective],
|
|
101
|
+
templateUrl: "./form-error-example.component.html"
|
|
102
|
+
})
|
|
103
|
+
export class AlertFormErrorExampleComponent {
|
|
104
|
+
protected readonly failed = signal(false);
|
|
105
|
+
protected readonly saveButton = viewChild.required<ElementRef<HTMLButtonElement>>("saveButton");
|
|
106
|
+
protected readonly saving = signal(false);
|
|
107
|
+
|
|
108
|
+
protected dismiss(): void {
|
|
109
|
+
this.failed.set(false);
|
|
110
|
+
// The dismiss button goes with the alert, so focus moves to where the user carries on.
|
|
111
|
+
this.saveButton().nativeElement.focus();
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
protected retry(): void {
|
|
115
|
+
// The alert, and the button that was pressed, go away while it saves again.
|
|
116
|
+
this.saveButton().nativeElement.focus();
|
|
117
|
+
this.save();
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
protected submit(event: Event): void {
|
|
121
|
+
event.preventDefault();
|
|
122
|
+
this.save();
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
private save(): void {
|
|
126
|
+
this.failed.set(false);
|
|
127
|
+
this.saving.set(true);
|
|
128
|
+
// Stands in for a request that fails.
|
|
129
|
+
setTimeout(() => {
|
|
130
|
+
this.saving.set(false);
|
|
131
|
+
this.failed.set(true);
|
|
132
|
+
}, 800);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
`form-error-example.component.html`
|
|
138
|
+
|
|
139
|
+
```html
|
|
140
|
+
<form class="flex max-w-md flex-col gap-4" (submit)="submit($event)">
|
|
141
|
+
@if (failed()) {
|
|
142
|
+
<mona-alert
|
|
143
|
+
look="error"
|
|
144
|
+
title="Changes not saved"
|
|
145
|
+
announce="assertive"
|
|
146
|
+
[dismissible]="true"
|
|
147
|
+
(dismiss)="dismiss()">
|
|
148
|
+
The server didn't respond. Your changes are still here.
|
|
149
|
+
<div monaAlertActions>
|
|
150
|
+
<button monaButton type="button" size="small" look="error" (click)="retry()">Try again</button>
|
|
151
|
+
</div>
|
|
152
|
+
</mona-alert>
|
|
153
|
+
}
|
|
154
|
+
<label class="flex flex-col gap-1 text-sm font-medium">
|
|
155
|
+
Display name
|
|
156
|
+
<input monaTextBox type="text" value="Jane Smith" />
|
|
157
|
+
</label>
|
|
158
|
+
<div>
|
|
159
|
+
<button #saveButton monaButton type="submit" look="primary" [loading]="saving()">Save</button>
|
|
160
|
+
</div>
|
|
161
|
+
</form>
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
## Appearance & Styling
|
|
165
|
+
|
|
166
|
+
| `look` | Means | Icon |
|
|
167
|
+
|-----------|-----------------------------------------|----------------|
|
|
168
|
+
| `info` | Something to know (default) | Info |
|
|
169
|
+
| `success` | Something finished as hoped | Circle check |
|
|
170
|
+
| `warning` | Something may go wrong | Triangle alert |
|
|
171
|
+
| `error` | Something went wrong | Circle X |
|
|
172
|
+
| `neutral` | A note with no urgency | Info |
|
|
173
|
+
|
|
174
|
+
Each look uses the theme's subtle tint, the text color paired with it at 4.5:1 or more, and a border at 3:1 or more against the tint. The alert fills its container's width; set a `max-w-*` class on it, or on its container, to keep lines short.
|
|
175
|
+
|
|
176
|
+
Classes passed via `class` are merged with the alert's own through `tailwind-merge`, so `class="p-3"` replaces its padding.
|
|
177
|
+
|
|
178
|
+
## Behavior
|
|
179
|
+
|
|
180
|
+
### Announcing
|
|
181
|
+
|
|
182
|
+
`announce` reads the title and text aloud once, after the alert first renders: `assertive` interrupts what's being read, and `polite` waits. The actions aren't read. Use it for an alert that appears because of something the user did. An alert that's part of the page when it loads shouldn't announce itself, and keeps the default, `off`. Changing the text later isn't announced; show a new alert, or announce the change yourself.
|
|
183
|
+
|
|
184
|
+
### Dismissing
|
|
185
|
+
|
|
186
|
+
`dismissible` adds a dismiss button that emits `dismiss`. The alert doesn't hide itself: remove it in your handler, for example with `@if`, and decide whether it stays dismissed.
|
|
187
|
+
|
|
188
|
+
## Accessibility
|
|
189
|
+
|
|
190
|
+
The alert adds no role. It reads in place, as part of the page, and `announce` is what makes a new one heard, through a live region the page already has, which screen readers announce more reliably than one that appears with its content.
|
|
191
|
+
|
|
192
|
+
- **Say what it means in words.** The tint and the icon back the text up; the icon is hidden from assistive technology. A title such as "Payment failed" does this well.
|
|
193
|
+
- **Move focus when it goes.** The dismiss button, and any action that hides the alert, are removed with it, and focus would fall back to the top of the page. Move it to where the user carries on, as the form example does.
|
|
194
|
+
- **Name the dismiss button.** It's named "Dismiss" followed by the title, such as "Dismiss, Payment failed", in the current locale. `dismissLabel` replaces "Dismiss".
|
|
195
|
+
- **Keep headings out.** The title isn't a heading, so it doesn't add to the page outline. Put a heading in the content if the alert starts a section.
|
|
196
|
+
|
|
197
|
+
| Key | Action |
|
|
198
|
+
|-----|--------|
|
|
199
|
+
| `Tab` | Reaches the actions and the dismiss button, in that order |
|
|
200
|
+
| `Enter`, `Space` | Activates the focused button |
|
|
201
|
+
|
|
202
|
+
## API
|
|
203
|
+
|
|
204
|
+
Everything below is imported from `@nanahoshi/mona-ui/alert`. Each name links to its reference page, with every input, output, property and method.
|
|
205
|
+
|
|
206
|
+
| Name | Kind | Description |
|
|
207
|
+
| --- | --- | --- |
|
|
208
|
+
| [`AlertComponent`](api/alert.md#alertcomponent) | Component | A message that stays on the page, such as a failed payment above a form or a notice above a table, tinted by what it means and marked with an icon. |
|
|
209
|
+
| [`AlertActionsDirective`](api/alert.md#alertactionsdirective) | Directive | Marks an element inside `<mona-alert>` as its row of actions, such as a Retry button. |
|
|
210
|
+
| [`AlertIconTemplateDirective`](api/alert.md#alerticontemplatedirective) | Directive | Apply to an `<ng-template>` directly inside `<mona-alert>` to draw the alert's icon in place of the one its look shows. |
|
|
211
|
+
|
|
212
|
+
### Types
|
|
213
|
+
|
|
214
|
+
| Type | Kind | Description |
|
|
215
|
+
| --- | --- | --- |
|
|
216
|
+
| [`ALERT_DEFAULT_MESSAGES`](api/alert.md#alert-default-messages) | Constant | |
|
|
217
|
+
| [`AlertAnnouncement`](api/alert.md#alertannouncement) | Type alias | How an alert is read aloud when it's shown: not at all, after what's being read, or at once. |
|
|
218
|
+
|
|
219
|
+
**Related types:** [`ClassInputType`](api/common.md#classinputtype), [`MonaAlertMessages`](api/i18n.md#monaalertmessages)
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# `@nanahoshi/mona-ui/alert`
|
|
2
|
+
|
|
3
|
+
Everything `@nanahoshi/mona-ui/alert` exports.
|
|
4
|
+
|
|
5
|
+
**Guides:** [Alert](../alert.md)
|
|
6
|
+
|
|
7
|
+
## `AlertComponent`
|
|
8
|
+
|
|
9
|
+
Component.
|
|
10
|
+
|
|
11
|
+
A message that stays on the page, such as a failed payment above a form or a notice above a table, tinted by what it
|
|
12
|
+
means and marked with an icon. It can have a title, actions and a dismiss button, and it can be announced when it's
|
|
13
|
+
shown.
|
|
14
|
+
|
|
15
|
+
**Selector:** `mona-alert`
|
|
16
|
+
|
|
17
|
+
### Inputs
|
|
18
|
+
|
|
19
|
+
| Name | Type | Default | Description |
|
|
20
|
+
| --- | --- | --- | --- |
|
|
21
|
+
| `announce` | `AlertAnnouncement` | `"off"` | Reads the alert's title and text aloud once, when the alert is shown. Use it for an alert that appears because of something the user did, such as a failed save: `assertive` interrupts, for something that needs attention now, and `polite` waits for a pause. Leave it `off` for an alert that's part of the page when it loads. |
|
|
22
|
+
| `class` | `ClassInputType` | `""` | Additional CSS classes merged onto the host element via `tailwind-merge`. |
|
|
23
|
+
| `dismissible` | `boolean` | `false` | Shows a button in the alert's corner that emits `dismiss`. |
|
|
24
|
+
| `dismissLabel` | `string` | `""` | Name of the dismiss button, in place of the localized "Dismiss", followed by the title when there is one. |
|
|
25
|
+
| `look` | `"error" \| "info" \| "neutral" \| "success" \| "warning"` | `"info"` | What the alert means, which sets its tint, border and icon. Say it in the text too, since color and shape alone don't reach everyone. |
|
|
26
|
+
| `showIcon` | `boolean` | `true` | Shows the look's icon before the text. A `monaAlertIconTemplate` replaces the icon. |
|
|
27
|
+
| `title` | `string` | `""` | A short heading above the text, in bold. It also names the dismiss button. |
|
|
28
|
+
|
|
29
|
+
### Outputs
|
|
30
|
+
|
|
31
|
+
| Name | Type | Description |
|
|
32
|
+
| --- | --- | --- |
|
|
33
|
+
| `dismiss` | `Event` | Emitted when the dismiss button is activated, with the click event. The alert doesn't hide itself: remove it in your handler, and move focus to where the user can carry on, since the button goes with it. |
|
|
34
|
+
|
|
35
|
+
## `AlertActionsDirective`
|
|
36
|
+
|
|
37
|
+
Directive.
|
|
38
|
+
|
|
39
|
+
Marks an element inside `<mona-alert>` as its row of actions, such as a Retry button. The alert places it
|
|
40
|
+
below its text, and it lays out its buttons in a wrapping row.
|
|
41
|
+
|
|
42
|
+
**Selector:** `[monaAlertActions]`
|
|
43
|
+
|
|
44
|
+
### Inputs
|
|
45
|
+
|
|
46
|
+
| Name | Type | Default | Description |
|
|
47
|
+
| --- | --- | --- | --- |
|
|
48
|
+
| `class` | `ClassInputType` | `""` | Additional CSS classes merged onto the host element via `tailwind-merge`. |
|
|
49
|
+
|
|
50
|
+
## `AlertIconTemplateDirective`
|
|
51
|
+
|
|
52
|
+
Directive.
|
|
53
|
+
|
|
54
|
+
Apply to an `<ng-template>` directly inside `<mona-alert>` to draw the alert's icon in place of the one
|
|
55
|
+
its look shows. The template receives no context, and what it renders is hidden from assistive technology, like the
|
|
56
|
+
default icon.
|
|
57
|
+
|
|
58
|
+
**Selector:** `ng-template[monaAlertIconTemplate]`
|
|
59
|
+
|
|
60
|
+
## `ALERT_DEFAULT_MESSAGES`
|
|
61
|
+
|
|
62
|
+
Constant.
|
|
63
|
+
|
|
64
|
+
```typescript
|
|
65
|
+
const ALERT_DEFAULT_MESSAGES: MonaAlertMessages;
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## `AlertAnnouncement`
|
|
69
|
+
|
|
70
|
+
Type alias.
|
|
71
|
+
|
|
72
|
+
How an alert is read aloud when it's shown: not at all, after what's being read, or at once.
|
|
73
|
+
|
|
74
|
+
```typescript
|
|
75
|
+
type AlertAnnouncement = "assertive" | "off" | "polite";
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
**Used by:** [`AlertComponent`](alert.md#alertcomponent)
|
package/docs/api/avatar.md
CHANGED
|
@@ -29,3 +29,28 @@ Component.
|
|
|
29
29
|
| `labelFontSize` | `string` | `"1rem"` | Font size of the label text. Ignored in image mode. |
|
|
30
30
|
| `labelFontWeight` | `string` | `"700"` | Font weight of the label text. Ignored in image mode. |
|
|
31
31
|
| `width` | `string \| number` | `"64px"` | Width of the host element. A string is used as-is; a number is converted to `px`. |
|
|
32
|
+
|
|
33
|
+
## `AvatarGroupComponent`
|
|
34
|
+
|
|
35
|
+
Component.
|
|
36
|
+
|
|
37
|
+
Stacks `mona-avatar`s in an overlapping row, such as the members of a project. Past `max`, the rest collapse into one
|
|
38
|
+
item that counts them, as in "+3".
|
|
39
|
+
|
|
40
|
+
**Selector:** `mona-avatar-group`
|
|
41
|
+
|
|
42
|
+
### Inputs
|
|
43
|
+
|
|
44
|
+
| Name | Type | Default | Description |
|
|
45
|
+
| --- | --- | --- | --- |
|
|
46
|
+
| `aria-label` | `string` | `""` | Accessible name of the group, such as "Project members". The group is read as one, with each avatar's name inside it. |
|
|
47
|
+
| `class` | `ClassInputType` | `""` | Additional CSS classes merged onto the host element via `tailwind-merge`. |
|
|
48
|
+
| `max` | `string \| number \| null \| undefined` | `null` | How many avatars to show. The rest collapse into one item that counts them, named such as "3 more". Without it, every avatar shows. |
|
|
49
|
+
|
|
50
|
+
## `AVATAR_DEFAULT_MESSAGES`
|
|
51
|
+
|
|
52
|
+
Constant.
|
|
53
|
+
|
|
54
|
+
```typescript
|
|
55
|
+
const AVATAR_DEFAULT_MESSAGES: MonaAvatarMessages;
|
|
56
|
+
```
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# `@nanahoshi/mona-ui/badge`
|
|
2
|
+
|
|
3
|
+
Everything `@nanahoshi/mona-ui/badge` exports.
|
|
4
|
+
|
|
5
|
+
**Guides:** [Badge](../badge.md)
|
|
6
|
+
|
|
7
|
+
## `BadgeDirective`
|
|
8
|
+
|
|
9
|
+
Directive.
|
|
10
|
+
|
|
11
|
+
A short count or status, such as `12` or `Draft`, drawn as a small filled or outlined label. It adds no role, so its text
|
|
12
|
+
reads as part of what's around it.
|
|
13
|
+
|
|
14
|
+
**Selector:** `[monaBadge]`
|
|
15
|
+
|
|
16
|
+
### Inputs
|
|
17
|
+
|
|
18
|
+
| Name | Type | Default | Description |
|
|
19
|
+
| --- | --- | --- | --- |
|
|
20
|
+
| `class` | `ClassInputType` | `""` | Additional CSS classes merged onto the host element via `tailwind-merge`. |
|
|
21
|
+
| `fill` | `"outline" \| "solid" \| "subtle"` | `"solid"` | How the badge is drawn: `solid` fills it with the look's color, `subtle` with a light tint of it, and `outline` draws only its border. |
|
|
22
|
+
| `look` | `"error" \| "info" \| "primary" \| "secondary" \| "success" \| "warning"` | `"secondary"` | The badge's color role. Pick it for what the badge means, such as `error` for a failed state, and say that in its text too, since color alone doesn't reach everyone. |
|
|
23
|
+
| `rounded` | `"full" \| "large" \| "medium" \| "none" \| "small"` | `"medium"` | Border-radius preset. `full` makes a pill, and a round dot for a single digit. |
|
|
24
|
+
| `size` | `"large" \| "medium" \| "small"` | `"medium"` | Size preset controlling the badge's height, padding, text and icon size. |
|
package/docs/api/common.md
CHANGED
|
@@ -101,7 +101,7 @@ Class.
|
|
|
101
101
|
| `isDefaultPrevented(): boolean` | Whether `preventDefault()` was called. |
|
|
102
102
|
| `preventDefault(): void` | Cancels what the event announces, such as opening or closing a popup, or closing a dialog. |
|
|
103
103
|
|
|
104
|
-
**Used by:** [`AutoCompleteComponent`](auto-complete.md#autocompletecomponent), [`CellEditEvent`](grid.md#celleditevent), [`ColumnReorderEvent`](grid.md#columnreorderevent), [`ColumnSortEvent`](grid.md#columnsortevent), [`ComboBoxComponent`](combo-box.md#comboboxcomponent), [`DatePickerComponent`](date-picker.md#datepickercomponent), [`DateRangePickerComponent`](date-range-picker.md#daterangepickercomponent), [`DateTimePickerComponent`](datetime-picker.md#datetimepickercomponent), [`DialogActionEvent`](dialog.md#dialogactionevent), [`DropdownListComponent`](dropdown-list.md#dropdownlistcomponent), [`FilterChangeEvent`](common.md#filterchangeevent), [`GridAddEvent`](grid.md#gridaddevent), [`GridCancelEvent`](grid.md#gridcancelevent), [`GridEditEvent`](grid.md#grideditevent), [`GridRemoveEvent`](grid.md#gridremoveevent), [`GridSaveEvent`](grid.md#gridsaveevent), [`ListBoxClearEvent`](list-box.md#listboxclearevent), [`ListBoxMoveEvent`](list-box.md#listboxmoveevent), [`ListBoxRemoveEvent`](list-box.md#listboxremoveevent), [`ListBoxTransferEvent`](list-box.md#listboxtransferevent), [`MultiSelectComponent`](multi-select.md#multiselectcomponent), [`NodeCheckEvent`](tree-view.md#nodecheckevent), [`NodeClickEvent`](tree-view.md#nodeclickevent), [`NodeSelectEvent`](tree-view.md#nodeselectevent), [`PageSizeChangeEvent`](pager.md#pagesizechangeevent), [`PopoverHideEvent`](popover.md#popoverhideevent), [`PopoverShowEvent`](popover.md#popovershowevent), [`PopupCloseEvent`](popup.md#popupcloseevent), [`PopupMenuCloseEvent`](popup-menu.md#popupmenucloseevent), [`PopupMenuItemClickEvent`](popup-menu.md#popupmenuitemclickevent), [`RowEditEvent`](grid.md#roweditevent), [`RowReorderEvent`](grid.md#rowreorderevent), [`StepSelectEvent`](stepper.md#stepselectevent), [`TabCloseEvent`](tabs.md#tabcloseevent), [`TabSelectEvent`](tabs.md#tabselectevent), [`TimePickerComponent`](time-picker.md#timepickercomponent)
|
|
104
|
+
**Used by:** [`AutoCompleteComponent`](auto-complete.md#autocompletecomponent), [`CellEditEvent`](grid.md#celleditevent), [`ColumnReorderEvent`](grid.md#columnreorderevent), [`ColumnSortEvent`](grid.md#columnsortevent), [`ComboBoxComponent`](combo-box.md#comboboxcomponent), [`DatePickerComponent`](date-picker.md#datepickercomponent), [`DateRangePickerComponent`](date-range-picker.md#daterangepickercomponent), [`DateTimePickerComponent`](datetime-picker.md#datetimepickercomponent), [`DialogActionEvent`](dialog.md#dialogactionevent), [`DropdownListComponent`](dropdown-list.md#dropdownlistcomponent), [`FilterChangeEvent`](common.md#filterchangeevent), [`GridAddEvent`](grid.md#gridaddevent), [`GridCancelEvent`](grid.md#gridcancelevent), [`GridEditEvent`](grid.md#grideditevent), [`GridRemoveEvent`](grid.md#gridremoveevent), [`GridSaveEvent`](grid.md#gridsaveevent), [`ListBoxClearEvent`](list-box.md#listboxclearevent), [`ListBoxMoveEvent`](list-box.md#listboxmoveevent), [`ListBoxRemoveEvent`](list-box.md#listboxremoveevent), [`ListBoxTransferEvent`](list-box.md#listboxtransferevent), [`MultiSelectComponent`](multi-select.md#multiselectcomponent), [`NodeCheckEvent`](tree-view.md#nodecheckevent), [`NodeClickEvent`](tree-view.md#nodeclickevent), [`NodeSelectEvent`](tree-view.md#nodeselectevent), [`PageSizeChangeEvent`](pager.md#pagesizechangeevent), [`PopoverHideEvent`](popover.md#popoverhideevent), [`PopoverShowEvent`](popover.md#popovershowevent), [`PopupCloseEvent`](popup.md#popupcloseevent), [`PopupMenuCloseEvent`](popup-menu.md#popupmenucloseevent), [`PopupMenuItemClickEvent`](popup-menu.md#popupmenuitemclickevent), [`RowEditEvent`](grid.md#roweditevent), [`RowReorderEvent`](grid.md#rowreorderevent), [`StepSelectEvent`](stepper.md#stepselectevent), [`TabCloseEvent`](tabs.md#tabcloseevent), [`TabSelectEvent`](tabs.md#tabselectevent), [`TimePickerComponent`](time-picker.md#timepickercomponent), [`ToolbarItemDirective`](toolbar.md#toolbaritemdirective)
|
|
105
105
|
|
|
106
106
|
## `FilterChangeEvent`
|
|
107
107
|
|
|
@@ -493,7 +493,7 @@ Type alias.
|
|
|
493
493
|
type ClassInputType = string | string[] | Record<string, unknown> | null | undefined;
|
|
494
494
|
```
|
|
495
495
|
|
|
496
|
-
**Used by:** [`CardFooterComponent`](card.md#cardfootercomponent), [`CardHeaderComponent`](card.md#cardheadercomponent), [`classInputToClass`](common.md#classinputtoclass), [`PlaceholderComponent`](placeholder.md#placeholdercomponent), [`PopupMenuComponent`](popup-menu.md#popupmenucomponent), [`SheetComponent`](sheet.md#sheetcomponent), [`SidebarComponent`](sidebar.md#sidebarcomponent), [`SidebarFooterDirective`](sidebar.md#sidebarfooterdirective), [`SidebarHeaderDirective`](sidebar.md#sidebarheaderdirective), [`SidebarInsetDirective`](sidebar.md#sidebarinsetdirective), [`SidebarLayoutComponent`](sidebar.md#sidebarlayoutcomponent), [`SidebarMenuBadgeDirective`](sidebar.md#sidebarmenubadgedirective), [`SidebarMenuButtonDirective`](sidebar.md#sidebarmenubuttondirective), [`SidebarMenuDirective`](sidebar.md#sidebarmenudirective), [`SidebarMenuItemDirective`](sidebar.md#sidebarmenuitemdirective), [`SidebarMenuSubDirective`](sidebar.md#sidebarmenusubdirective), [`SidebarSeparatorDirective`](sidebar.md#sidebarseparatordirective), [`SkeletonComponent`](skeleton.md#skeletoncomponent), [`SpinnerComponent`](spinner.md#spinnercomponent)
|
|
496
|
+
**Used by:** [`AlertActionsDirective`](alert.md#alertactionsdirective), [`AlertComponent`](alert.md#alertcomponent), [`AvatarGroupComponent`](avatar.md#avatargroupcomponent), [`BadgeDirective`](badge.md#badgedirective), [`CardFooterComponent`](card.md#cardfootercomponent), [`CardHeaderComponent`](card.md#cardheadercomponent), [`classInputToClass`](common.md#classinputtoclass), [`PlaceholderComponent`](placeholder.md#placeholdercomponent), [`PopupMenuComponent`](popup-menu.md#popupmenucomponent), [`SeparatorComponent`](separator.md#separatorcomponent), [`SheetComponent`](sheet.md#sheetcomponent), [`SidebarComponent`](sidebar.md#sidebarcomponent), [`SidebarFooterDirective`](sidebar.md#sidebarfooterdirective), [`SidebarHeaderDirective`](sidebar.md#sidebarheaderdirective), [`SidebarInsetDirective`](sidebar.md#sidebarinsetdirective), [`SidebarLayoutComponent`](sidebar.md#sidebarlayoutcomponent), [`SidebarMenuBadgeDirective`](sidebar.md#sidebarmenubadgedirective), [`SidebarMenuButtonDirective`](sidebar.md#sidebarmenubuttondirective), [`SidebarMenuDirective`](sidebar.md#sidebarmenudirective), [`SidebarMenuItemDirective`](sidebar.md#sidebarmenuitemdirective), [`SidebarMenuSubDirective`](sidebar.md#sidebarmenusubdirective), [`SidebarSeparatorDirective`](sidebar.md#sidebarseparatordirective), [`SkeletonComponent`](skeleton.md#skeletoncomponent), [`SpinnerComponent`](spinner.md#spinnercomponent), [`ToolbarComponent`](toolbar.md#toolbarcomponent)
|
|
497
497
|
|
|
498
498
|
## `ColorOutputFormat`
|
|
499
499
|
|
package/docs/api/grid.md
CHANGED
|
@@ -85,6 +85,21 @@ Component.
|
|
|
85
85
|
| `title` | `string \| null` | `null` | The title displayed in the command column header. Without one, the localized `commandColumnTitle` message ("Commands"). |
|
|
86
86
|
| `width` | `number \| null` | `160` | The fixed width of this command column in pixels. |
|
|
87
87
|
|
|
88
|
+
## `GridColumnGroupComponent`
|
|
89
|
+
|
|
90
|
+
Component.
|
|
91
|
+
|
|
92
|
+
Puts a header over the `mona-grid-column`s and `mona-grid-command-column`s inside it. Groups nest: each level adds a
|
|
93
|
+
header row above the column headers.
|
|
94
|
+
|
|
95
|
+
**Selector:** `mona-grid-column-group`
|
|
96
|
+
|
|
97
|
+
### Inputs
|
|
98
|
+
|
|
99
|
+
| Name | Type | Default | Description |
|
|
100
|
+
| --- | --- | --- | --- |
|
|
101
|
+
| `title` | `string` | `""` | The text shown in the group's header, which also names it for assistive technologies. |
|
|
102
|
+
|
|
88
103
|
## `GridEditableDirective`
|
|
89
104
|
|
|
90
105
|
Directive.
|
|
@@ -223,6 +238,20 @@ Directive.
|
|
|
223
238
|
| --- | --- | --- |
|
|
224
239
|
| `scrollEnd` | `void` | Emitted when the scroll position reaches the configured threshold from the bottom of the virtualized list. |
|
|
225
240
|
|
|
241
|
+
## `GridExportDirective`
|
|
242
|
+
|
|
243
|
+
Directive.
|
|
244
|
+
|
|
245
|
+
**Selector:** `mona-grid[monaGridExport]`
|
|
246
|
+
**Exported as:** `monaGridExport`
|
|
247
|
+
|
|
248
|
+
### Methods
|
|
249
|
+
|
|
250
|
+
| Signature | Description |
|
|
251
|
+
| --- | --- |
|
|
252
|
+
| `exportCsv(filename?: string): void` | Exports the visible columns of the current view as CSV (only the loaded page with server binding). |
|
|
253
|
+
| `exportExcel(filename?: string): Promise<void>` | Exports the same rows and columns as `exportCsv` as an Excel workbook (`.xlsx`), with column groups as merged header cells and values that keep their types. Resolves once the download has started. |
|
|
254
|
+
|
|
226
255
|
## `GridFilterableDirective`
|
|
227
256
|
|
|
228
257
|
Directive.
|
|
@@ -327,19 +356,6 @@ Directive.
|
|
|
327
356
|
| --- | --- | --- | --- |
|
|
328
357
|
| `monaGridEditCommand` | `Row \| null` | `null` | The row the button puts into row edit mode when clicked, usually the command template's `row`. Does nothing while `null` or when the grid isn't in row edit mode. |
|
|
329
358
|
|
|
330
|
-
## `GridExportDirective`
|
|
331
|
-
|
|
332
|
-
Directive.
|
|
333
|
-
|
|
334
|
-
**Selector:** `mona-grid[monaGridExport]`
|
|
335
|
-
**Exported as:** `monaGridExport`
|
|
336
|
-
|
|
337
|
-
### Methods
|
|
338
|
-
|
|
339
|
-
| Signature | Description |
|
|
340
|
-
| --- | --- |
|
|
341
|
-
| `exportCsv(filename?: string): void` | Exports the visible columns of the current view as CSV (only the loaded page with server binding). |
|
|
342
|
-
|
|
343
359
|
## `GridRemoveCommandDirective`
|
|
344
360
|
|
|
345
361
|
Directive.
|
|
@@ -823,6 +839,7 @@ grid scrolls horizontally.
|
|
|
823
839
|
| `footerTemplate` (read-only) | `TemplateRef<unknown> \| null` | The column's `monaGridFooterTemplate`, which renders its footer cell, or `null`. |
|
|
824
840
|
| `format` (read-only) | `ColumnFormat \| null` | How cell values are formatted for display, or `null` to show them as they are. |
|
|
825
841
|
| `groupFooterTemplate` (read-only) | `TemplateRef<unknown> \| null` | The column's `monaGridGroupFooterTemplate`, which renders its cell in group footer rows, or `null`. |
|
|
842
|
+
| `groups?` (read-only) | `readonly ColumnGroup[]` | The `mona-grid-column-group`s the column sits in, outermost first. Left out, or empty, when it isn't in a group. |
|
|
826
843
|
| `headerTemplate` (read-only) | `TemplateRef<unknown> \| null` | The column's `monaGridHeaderTemplate`, which replaces the whole header content and receives the column, or `null`. |
|
|
827
844
|
| `hidden` (read-only) | `boolean` | The column's `hidden` input as set. |
|
|
828
845
|
| `id` (read-only) | `string` | A unique id generated for the column. |
|
|
@@ -861,6 +878,7 @@ Interface.
|
|
|
861
878
|
| `footerTemplate` (read-only) | `TemplateRef<unknown> \| null` | The column's `monaGridFooterTemplate`, which renders its footer cell, or `null`. |
|
|
862
879
|
| `format` (read-only) | `ColumnFormat \| null` | How cell values are formatted for display, or `null` to show them as they are. |
|
|
863
880
|
| `groupFooterTemplate` (read-only) | `TemplateRef<unknown> \| null` | The column's `monaGridGroupFooterTemplate`, which renders its cell in group footer rows, or `null`. |
|
|
881
|
+
| `groups?` (read-only) | `readonly ColumnGroup[]` | The `mona-grid-column-group`s the column sits in, outermost first. Left out, or empty, when it isn't in a group. |
|
|
864
882
|
| `headerTemplate` (read-only) | `TemplateRef<unknown> \| null` | The column's `monaGridHeaderTemplate`, which replaces the whole header content and receives the column, or `null`. |
|
|
865
883
|
| `hidden` (read-only) | `boolean` | The column's `hidden` input as set. |
|
|
866
884
|
| `id` (read-only) | `string` | A unique id generated for the column. |
|
|
@@ -879,6 +897,21 @@ Interface.
|
|
|
879
897
|
|
|
880
898
|
**Used by:** [`Column`](grid.md#column)
|
|
881
899
|
|
|
900
|
+
## `ColumnGroup`
|
|
901
|
+
|
|
902
|
+
Interface.
|
|
903
|
+
|
|
904
|
+
A `mona-grid-column-group`: a header over the columns inside it.
|
|
905
|
+
|
|
906
|
+
### Properties
|
|
907
|
+
|
|
908
|
+
| Name | Type | Description |
|
|
909
|
+
| --- | --- | --- |
|
|
910
|
+
| `id` (read-only) | `string` | A unique id generated for the group. |
|
|
911
|
+
| `title` (read-only) | `string` | The text shown in the group's header. |
|
|
912
|
+
|
|
913
|
+
**Used by:** [`ColumnConfig`](grid.md#columnconfig)
|
|
914
|
+
|
|
882
915
|
## `ColumnResizeEvent`
|
|
883
916
|
|
|
884
917
|
Interface.
|
package/docs/api/i18n.md
CHANGED
|
@@ -646,6 +646,34 @@ validator's own `message` wins over these.
|
|
|
646
646
|
|
|
647
647
|
**Used by:** [`MonaLocaleMessages`](i18n.md#monalocalemessages)
|
|
648
648
|
|
|
649
|
+
## `MonaAlertMessages`
|
|
650
|
+
|
|
651
|
+
Interface.
|
|
652
|
+
|
|
653
|
+
The alert's dismiss button.
|
|
654
|
+
|
|
655
|
+
### Methods
|
|
656
|
+
|
|
657
|
+
| Signature | Description |
|
|
658
|
+
| --- | --- |
|
|
659
|
+
| `dismissLabel(title?: string): string` | Name of the button that dismisses the alert, with the alert's title when it has one. |
|
|
660
|
+
|
|
661
|
+
**Used by:** [`ALERT_DEFAULT_MESSAGES`](alert.md#alert-default-messages), [`MonaLocaleMessages`](i18n.md#monalocalemessages)
|
|
662
|
+
|
|
663
|
+
## `MonaAvatarMessages`
|
|
664
|
+
|
|
665
|
+
Interface.
|
|
666
|
+
|
|
667
|
+
The avatar group's count of the avatars it doesn't show.
|
|
668
|
+
|
|
669
|
+
### Methods
|
|
670
|
+
|
|
671
|
+
| Signature | Description |
|
|
672
|
+
| --- | --- |
|
|
673
|
+
| `moreLabel(count: number): string` | Name of the item that stands for the avatars past `max`, such as "3 more". It shows the count as "+3". |
|
|
674
|
+
|
|
675
|
+
**Used by:** [`AVATAR_DEFAULT_MESSAGES`](avatar.md#avatar-default-messages), [`MonaLocaleMessages`](i18n.md#monalocalemessages)
|
|
676
|
+
|
|
649
677
|
## `MonaChipMessages`
|
|
650
678
|
|
|
651
679
|
Interface.
|
|
@@ -1262,7 +1290,9 @@ Interface.
|
|
|
1262
1290
|
|
|
1263
1291
|
| Name | Type |
|
|
1264
1292
|
| --- | --- |
|
|
1293
|
+
| `alert` | `MonaAlertMessages` |
|
|
1265
1294
|
| `autoComplete` | `MonaAutoCompleteMessages` |
|
|
1295
|
+
| `avatar` | `MonaAvatarMessages` |
|
|
1266
1296
|
| `breadcrumb` | `MonaBreadcrumbMessages` |
|
|
1267
1297
|
| `buttonGroup` | `MonaButtonGroupMessages` |
|
|
1268
1298
|
| `calendar` | `MonaCalendarMessages` |
|
|
@@ -1308,6 +1338,7 @@ Interface.
|
|
|
1308
1338
|
| `textBox` | `MonaTextBoxMessages` |
|
|
1309
1339
|
| `timePicker` | `MonaTimePickerMessages` |
|
|
1310
1340
|
| `timeSelector` | `MonaTimeSelectorMessages` |
|
|
1341
|
+
| `toolbar` | `MonaToolbarMessages` |
|
|
1311
1342
|
| `treeView` | `MonaTreeViewMessages` |
|
|
1312
1343
|
| `window` | `MonaWindowMessages` |
|
|
1313
1344
|
|
|
@@ -1585,6 +1616,20 @@ Interface.
|
|
|
1585
1616
|
|
|
1586
1617
|
**Used by:** [`MonaLocaleMessages`](i18n.md#monalocalemessages), [`TIME_SELECTOR_DEFAULT_MESSAGES`](time-selector.md#time-selector-default-messages), [`TimeSelectorMessages`](i18n.md#timeselectormessages)
|
|
1587
1618
|
|
|
1619
|
+
## `MonaToolbarMessages`
|
|
1620
|
+
|
|
1621
|
+
Interface.
|
|
1622
|
+
|
|
1623
|
+
The toolbar's overflow menu.
|
|
1624
|
+
|
|
1625
|
+
### Properties
|
|
1626
|
+
|
|
1627
|
+
| Name | Type | Description |
|
|
1628
|
+
| --- | --- | --- |
|
|
1629
|
+
| `moreLabel` (read-only) | `string` | Name of the button that opens the menu of the items that don't fit. |
|
|
1630
|
+
|
|
1631
|
+
**Used by:** [`MonaLocaleMessages`](i18n.md#monalocalemessages), [`TOOLBAR_DEFAULT_MESSAGES`](toolbar.md#toolbar-default-messages)
|
|
1632
|
+
|
|
1588
1633
|
## `MonaWindowMessages`
|
|
1589
1634
|
|
|
1590
1635
|
Interface.
|