@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
|
@@ -2,9 +2,15 @@ export declare const MONA_ZH_TW_LOCALE: {
|
|
|
2
2
|
direction: "ltr";
|
|
3
3
|
id: string;
|
|
4
4
|
messages: {
|
|
5
|
+
alert: {
|
|
6
|
+
dismissLabel: (title?: string) => string;
|
|
7
|
+
};
|
|
5
8
|
autoComplete: {
|
|
6
9
|
clear: string;
|
|
7
10
|
};
|
|
11
|
+
avatar: {
|
|
12
|
+
moreLabel: (count: number) => string;
|
|
13
|
+
};
|
|
8
14
|
breadcrumb: {
|
|
9
15
|
breadcrumb: string;
|
|
10
16
|
showFullPath: string;
|
|
@@ -563,6 +569,9 @@ export declare const MONA_ZH_TW_LOCALE: {
|
|
|
563
569
|
set: string;
|
|
564
570
|
timeSelector: string;
|
|
565
571
|
};
|
|
572
|
+
toolbar: {
|
|
573
|
+
moreLabel: string;
|
|
574
|
+
};
|
|
566
575
|
treeView: {
|
|
567
576
|
collapse: string;
|
|
568
577
|
expand: string;
|
|
@@ -65,6 +65,13 @@ export declare class MultiSelectComponent<TData = unknown, TValue = TData> imple
|
|
|
65
65
|
protected readonly tagTemplate: import("@angular/core").Signal<TemplateRef<any> | undefined>;
|
|
66
66
|
protected readonly valueTextMap: import("@angular/core").Signal<import("@mirei/ts-collections").ImmutableDictionary<ListItem<TData>, string>>;
|
|
67
67
|
protected readonly visibleTagCount: import("@angular/core").Signal<number>;
|
|
68
|
+
/**
|
|
69
|
+
* @description Lets people add values that aren't in {@link data}: Enter in the popup's filter box, on text that
|
|
70
|
+
* matches no item, emits {@link valueAdd} with the text, and an item whose text it matches is selected instead.
|
|
71
|
+
* Needs `monaDropDownFilterable`, whose filter box is where the text is typed.
|
|
72
|
+
* @default false
|
|
73
|
+
*/
|
|
74
|
+
readonly allowCustomValue: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
68
75
|
/**
|
|
69
76
|
* @description ID of an element that describes the multi select, such as help text or an error message.
|
|
70
77
|
* @default ""
|
|
@@ -211,6 +218,12 @@ export declare class MultiSelectComponent<TData = unknown, TValue = TData> imple
|
|
|
211
218
|
* @default []
|
|
212
219
|
*/
|
|
213
220
|
readonly value: import("@angular/core").ModelSignal<Iterable<TValue>>;
|
|
221
|
+
/**
|
|
222
|
+
* @description Emitted with the trimmed text when Enter is pressed in the filter box on text that matches no item.
|
|
223
|
+
* Only emitted when {@link allowCustomValue} is true. Add an item for it to {@link data} and to {@link value}; the
|
|
224
|
+
* filter box is cleared for the next one.
|
|
225
|
+
*/
|
|
226
|
+
readonly valueAdd: import("@angular/core").OutputEmitterRef<string>;
|
|
214
227
|
/**
|
|
215
228
|
* @description Sets the value field of the multi select component.
|
|
216
229
|
* It is used for stable item identity, matching externally supplied values, and primitive
|
|
@@ -243,8 +256,15 @@ export declare class MultiSelectComponent<TData = unknown, TValue = TData> imple
|
|
|
243
256
|
protected onSelectedItemGroupRemove(event: Event): void;
|
|
244
257
|
protected onSelectedItemRemove(event: Event, listItem: ListItem<TData>): void;
|
|
245
258
|
protected onValueClear(event: Event): void;
|
|
259
|
+
private addCustomValue;
|
|
246
260
|
private getSelectedControlValues;
|
|
247
261
|
private handleEnterKey;
|
|
262
|
+
/**
|
|
263
|
+
* Enter in the filter box. With custom values, it adds the typed text: the item it names is selected, or `valueAdd`
|
|
264
|
+
* offers it. An item reached with the arrow keys is left to the list, which toggles it. With nothing highlighted,
|
|
265
|
+
* the list would toggle the first selected item, so Enter does nothing then.
|
|
266
|
+
*/
|
|
267
|
+
private handlePopupKeydown;
|
|
248
268
|
private handlePopupPositionUpdate;
|
|
249
269
|
private initialize;
|
|
250
270
|
private setBackspaceKeySubscription;
|
|
@@ -256,8 +276,14 @@ export declare class MultiSelectComponent<TData = unknown, TValue = TData> imple
|
|
|
256
276
|
private synchronizeSelection;
|
|
257
277
|
private toggleHighlightedItem;
|
|
258
278
|
private updateValue;
|
|
279
|
+
private warnIfCustomValueHasNoFilter;
|
|
259
280
|
static ɵfac: i0.ɵɵFactoryDeclaration<MultiSelectComponent<any, any>, never>;
|
|
260
281
|
static ɵcmp: i0.ɵɵComponentDeclaration<MultiSelectComponent<any, any>, "mona-multi-select", never, {
|
|
282
|
+
"allowCustomValue": {
|
|
283
|
+
"alias": "allowCustomValue";
|
|
284
|
+
"required": false;
|
|
285
|
+
"isSignal": true;
|
|
286
|
+
};
|
|
261
287
|
"ariaDescribedBy": {
|
|
262
288
|
"alias": "aria-describedby";
|
|
263
289
|
"required": false;
|
|
@@ -390,6 +416,7 @@ export declare class MultiSelectComponent<TData = unknown, TValue = TData> imple
|
|
|
390
416
|
"opened": "opened";
|
|
391
417
|
"touch": "touch";
|
|
392
418
|
"value": "valueChange";
|
|
419
|
+
"valueAdd": "valueAdd";
|
|
393
420
|
}, ["footerTemplate", "groupHeaderTemplate", "headerTemplate", "itemTemplate", "noDataTemplate", "prefixTemplate", "tagTemplate"], never, true, [{
|
|
394
421
|
directive: typeof i1.DropdownDataHandlerDirective;
|
|
395
422
|
inputs: {};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { ClassInputType } from "@nanahoshi/mona-ui/common";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import { VariantProps } from "class-variance-authority";
|
|
4
|
+
/**
|
|
5
|
+
* A thin line between groups of content, across a column or down a row, with an optional label in its middle. Like an
|
|
6
|
+
* `<hr>`, it's a separator for assistive technology unless it's marked decorative.
|
|
7
|
+
*/
|
|
8
|
+
export declare class SeparatorComponent {
|
|
9
|
+
protected readonly baseClass: import("@angular/core").Signal<string>;
|
|
10
|
+
protected readonly labelled: import("@angular/core").Signal<boolean>;
|
|
11
|
+
protected readonly lineClass = "h-px flex-1 bg-border forced-colors:bg-[CanvasText]";
|
|
12
|
+
/** A label is read as text, which a separator's role would hide, so a labelled line has none. */
|
|
13
|
+
protected readonly role: import("@angular/core").Signal<"separator" | null>;
|
|
14
|
+
/**
|
|
15
|
+
* @description Marks the line as only visual, so assistive technology skips it. Use it where the line repeats a
|
|
16
|
+
* boundary the content already makes, such as between cards.
|
|
17
|
+
* @default false
|
|
18
|
+
*/
|
|
19
|
+
readonly decorative: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
20
|
+
/**
|
|
21
|
+
* @description Text in the middle of a horizontal line, such as "or" between two ways to sign in. It's read as text,
|
|
22
|
+
* and the line stays out of the way, as if it were decorative.
|
|
23
|
+
* @default ""
|
|
24
|
+
*/
|
|
25
|
+
readonly label: import("@angular/core").InputSignal<string>;
|
|
26
|
+
/**
|
|
27
|
+
* @description Whether the line runs across (`horizontal`, between stacked content) or down (`vertical`, between
|
|
28
|
+
* items in a row). A vertical line stretches to the row's height. A labelled line is always horizontal.
|
|
29
|
+
* @default "horizontal"
|
|
30
|
+
*/
|
|
31
|
+
readonly orientation: import("@angular/core").InputSignal<NonNullable<"horizontal" | "vertical" | null | undefined>>;
|
|
32
|
+
/**
|
|
33
|
+
* @description Additional CSS classes merged onto the host element via `tailwind-merge`, such as a margin.
|
|
34
|
+
* @default ""
|
|
35
|
+
*/
|
|
36
|
+
readonly userClass: import("@angular/core").InputSignalWithTransform<string, ClassInputType>;
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SeparatorComponent, never>;
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SeparatorComponent, "mona-separator", never, {
|
|
39
|
+
"decorative": {
|
|
40
|
+
"alias": "decorative";
|
|
41
|
+
"required": false;
|
|
42
|
+
"isSignal": true;
|
|
43
|
+
};
|
|
44
|
+
"label": {
|
|
45
|
+
"alias": "label";
|
|
46
|
+
"required": false;
|
|
47
|
+
"isSignal": true;
|
|
48
|
+
};
|
|
49
|
+
"orientation": {
|
|
50
|
+
"alias": "orientation";
|
|
51
|
+
"required": false;
|
|
52
|
+
"isSignal": true;
|
|
53
|
+
};
|
|
54
|
+
"userClass": {
|
|
55
|
+
"alias": "class";
|
|
56
|
+
"required": false;
|
|
57
|
+
"isSignal": true;
|
|
58
|
+
};
|
|
59
|
+
}, {}, never, never, true, never>;
|
|
60
|
+
}
|
|
61
|
+
declare const separatorThemeVariants: (props?: ({
|
|
62
|
+
labelled?: boolean | null | undefined;
|
|
63
|
+
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
64
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
65
|
+
type SeparatorVariantProps = VariantProps<typeof separatorThemeVariants>;
|
|
66
|
+
export type { SeparatorVariantProps };
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import { MonaToolbarMessages } from "@nanahoshi/mona-ui/i18n";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import { ElementRef } from "@angular/core";
|
|
4
|
+
import { ClassInputType, PreventableEvent } from "@nanahoshi/mona-ui/common";
|
|
5
|
+
import { MenuItem, PopupMenuItemClickEvent } from "@nanahoshi/mona-ui/popup-menu";
|
|
6
|
+
import { VariantProps } from "class-variance-authority";
|
|
7
|
+
export declare const TOOLBAR_DEFAULT_MESSAGES: MonaToolbarMessages;
|
|
8
|
+
/** Whether a toolbar item moves into the More menu when there's no room for it (`auto`) or stays (`never`). */
|
|
9
|
+
type ToolbarItemOverflow = "auto" | "never";
|
|
10
|
+
/**
|
|
11
|
+
* @description Marks a control directly inside `<mona-toolbar>` as one that moves into the toolbar's More menu when
|
|
12
|
+
* there's no room for it, last ones first. In the menu it's an item with the control's text, disabled with it and
|
|
13
|
+
* checked while it's pressed, and choosing it clicks the control.
|
|
14
|
+
*/
|
|
15
|
+
export declare class ToolbarItemDirective {
|
|
16
|
+
#private;
|
|
17
|
+
/** @hidden */
|
|
18
|
+
readonly element: HTMLElement;
|
|
19
|
+
/**
|
|
20
|
+
* Whether the item is in the More menu rather than in the toolbar.
|
|
21
|
+
* @hidden
|
|
22
|
+
*/
|
|
23
|
+
readonly hidden: import("@angular/core").Signal<boolean>;
|
|
24
|
+
/**
|
|
25
|
+
* @description Whether the item can move into the More menu: `auto` when there's no room for it, `never` to keep it in
|
|
26
|
+
* the toolbar, such as a search box.
|
|
27
|
+
* @default "auto"
|
|
28
|
+
*/
|
|
29
|
+
readonly overflow: import("@angular/core").InputSignalWithTransform<ToolbarItemOverflow, "" | ToolbarItemOverflow | null | undefined>;
|
|
30
|
+
/**
|
|
31
|
+
* @description Emitted when the item is chosen from the More menu. Unless it's prevented, the toolbar then clicks the
|
|
32
|
+
* control, which suits a button. Handle it for a control a click doesn't operate, or keep that control in the toolbar
|
|
33
|
+
* with `overflow="never"`.
|
|
34
|
+
*/
|
|
35
|
+
readonly overflowActivate: import("@angular/core").OutputEmitterRef<PreventableEvent<Event>>;
|
|
36
|
+
/**
|
|
37
|
+
* @description The item's text in the More menu. Without it, the menu uses the control's `aria-label`, then its text.
|
|
38
|
+
* @default ""
|
|
39
|
+
*/
|
|
40
|
+
readonly overflowText: import("@angular/core").InputSignal<string>;
|
|
41
|
+
/**
|
|
42
|
+
* Runs the item's action for its menu item: `overflowActivate`, then a click unless that's prevented.
|
|
43
|
+
* @hidden
|
|
44
|
+
*/
|
|
45
|
+
activate(originalEvent?: Event): void;
|
|
46
|
+
/**
|
|
47
|
+
* The item's text in the More menu.
|
|
48
|
+
* @hidden
|
|
49
|
+
*/
|
|
50
|
+
getMenuText(): string;
|
|
51
|
+
/**
|
|
52
|
+
* Whether the control can't be operated, so its menu item can't either.
|
|
53
|
+
* @hidden
|
|
54
|
+
*/
|
|
55
|
+
isDisabled(): boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Whether the item is a divider, which the menu draws as its own.
|
|
58
|
+
* @hidden
|
|
59
|
+
*/
|
|
60
|
+
isSeparator(): boolean;
|
|
61
|
+
/**
|
|
62
|
+
* The control's pressed state, or `null` for a control that isn't a toggle.
|
|
63
|
+
* @hidden
|
|
64
|
+
*/
|
|
65
|
+
pressed(): boolean | null;
|
|
66
|
+
/**
|
|
67
|
+
* Shows or hides the item in the toolbar at once, so the toolbar can measure what fits in the same frame.
|
|
68
|
+
* @hidden
|
|
69
|
+
*/
|
|
70
|
+
setHidden(hidden: boolean): void;
|
|
71
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToolbarItemDirective, never>;
|
|
72
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ToolbarItemDirective, "[monaToolbarItem]", never, {
|
|
73
|
+
"overflow": {
|
|
74
|
+
"alias": "monaToolbarItem";
|
|
75
|
+
"required": false;
|
|
76
|
+
"isSignal": true;
|
|
77
|
+
};
|
|
78
|
+
"overflowText": {
|
|
79
|
+
"alias": "overflowText";
|
|
80
|
+
"required": false;
|
|
81
|
+
"isSignal": true;
|
|
82
|
+
};
|
|
83
|
+
}, {
|
|
84
|
+
"overflowActivate": "overflowActivate";
|
|
85
|
+
}, never, never, true, never>;
|
|
86
|
+
}
|
|
87
|
+
/** What a toolbar does with items that don't fit: moves them into a More menu, or wraps them onto more rows. */
|
|
88
|
+
type ToolbarOverflow = "menu" | "wrap";
|
|
89
|
+
/**
|
|
90
|
+
* A row of controls, such as formatting buttons, that's one Tab stop: the arrow keys move between its controls. Items
|
|
91
|
+
* marked `monaToolbarItem` that don't fit move into a More menu at the end, last ones first, and come back as the row
|
|
92
|
+
* widens.
|
|
93
|
+
*/
|
|
94
|
+
export declare class ToolbarComponent {
|
|
95
|
+
#private;
|
|
96
|
+
protected readonly baseClass: import("@angular/core").Signal<string>;
|
|
97
|
+
protected readonly items: import("@angular/core").Signal<readonly ToolbarItemDirective[]>;
|
|
98
|
+
protected readonly menuId: string;
|
|
99
|
+
/** The More menu, read from the hidden controls each time it opens, so their text and states are current. */
|
|
100
|
+
protected readonly menuItems: import("@angular/core").WritableSignal<MenuItem[]>;
|
|
101
|
+
protected readonly menuOpen: import("@angular/core").WritableSignal<boolean>;
|
|
102
|
+
protected readonly messages: import("@angular/core").Signal<import("@nanahoshi/mona-ui/i18n").MonaToolbarMessages>;
|
|
103
|
+
protected readonly moreButton: import("@angular/core").Signal<ElementRef<HTMLButtonElement> | undefined>;
|
|
104
|
+
protected readonly moreButtonId: string;
|
|
105
|
+
protected readonly rightToLeft: import("@angular/core").WritableSignal<boolean>;
|
|
106
|
+
/**
|
|
107
|
+
* @description Accessible name of the toolbar, such as "Formatting". A toolbar needs a name, from this or
|
|
108
|
+
* `aria-labelledby`, since assistive technology announces it on the way in.
|
|
109
|
+
* @default ""
|
|
110
|
+
*/
|
|
111
|
+
readonly ariaLabel: import("@angular/core").InputSignal<string>;
|
|
112
|
+
/**
|
|
113
|
+
* @description ID of the element whose text names the toolbar, such as a visible heading.
|
|
114
|
+
* @default ""
|
|
115
|
+
*/
|
|
116
|
+
readonly ariaLabelledBy: import("@angular/core").InputSignal<string>;
|
|
117
|
+
/**
|
|
118
|
+
* @description Name of the More button, in place of the localized "More".
|
|
119
|
+
* @default ""
|
|
120
|
+
*/
|
|
121
|
+
readonly moreLabel: import("@angular/core").InputSignal<string>;
|
|
122
|
+
/**
|
|
123
|
+
* @description What happens to items that don't fit: `menu` moves the `monaToolbarItem`s into a More menu at the end,
|
|
124
|
+
* last ones first, and `wrap` puts the controls on more rows.
|
|
125
|
+
* @default "menu"
|
|
126
|
+
*/
|
|
127
|
+
readonly overflow: import("@angular/core").InputSignal<ToolbarOverflow>;
|
|
128
|
+
/**
|
|
129
|
+
* @description The space between controls and the size of the More button. Match it to the controls' size.
|
|
130
|
+
* @default "medium"
|
|
131
|
+
*/
|
|
132
|
+
readonly size: import("@angular/core").InputSignal<NonNullable<"small" | "medium" | "large" | null | undefined>>;
|
|
133
|
+
/**
|
|
134
|
+
* @description Additional CSS classes merged onto the host element via `tailwind-merge`.
|
|
135
|
+
* @default ""
|
|
136
|
+
*/
|
|
137
|
+
readonly userClass: import("@angular/core").InputSignalWithTransform<string, ClassInputType>;
|
|
138
|
+
constructor();
|
|
139
|
+
protected onFocusIn(event: FocusEvent): void;
|
|
140
|
+
protected onKeydown(event: KeyboardEvent): void;
|
|
141
|
+
protected onMenuClick(event: PopupMenuItemClickEvent): void;
|
|
142
|
+
protected onMenuOpen(): void;
|
|
143
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToolbarComponent, never>;
|
|
144
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ToolbarComponent, "mona-toolbar", never, {
|
|
145
|
+
"ariaLabel": {
|
|
146
|
+
"alias": "aria-label";
|
|
147
|
+
"required": false;
|
|
148
|
+
"isSignal": true;
|
|
149
|
+
};
|
|
150
|
+
"ariaLabelledBy": {
|
|
151
|
+
"alias": "aria-labelledby";
|
|
152
|
+
"required": false;
|
|
153
|
+
"isSignal": true;
|
|
154
|
+
};
|
|
155
|
+
"moreLabel": {
|
|
156
|
+
"alias": "moreLabel";
|
|
157
|
+
"required": false;
|
|
158
|
+
"isSignal": true;
|
|
159
|
+
};
|
|
160
|
+
"overflow": {
|
|
161
|
+
"alias": "overflow";
|
|
162
|
+
"required": false;
|
|
163
|
+
"isSignal": true;
|
|
164
|
+
};
|
|
165
|
+
"size": {
|
|
166
|
+
"alias": "size";
|
|
167
|
+
"required": false;
|
|
168
|
+
"isSignal": true;
|
|
169
|
+
};
|
|
170
|
+
"userClass": {
|
|
171
|
+
"alias": "class";
|
|
172
|
+
"required": false;
|
|
173
|
+
"isSignal": true;
|
|
174
|
+
};
|
|
175
|
+
}, {}, ["items"], ["*"], true, never>;
|
|
176
|
+
}
|
|
177
|
+
/** Children keep their width, so what doesn't fit overflows and can be measured, instead of squeezing. */
|
|
178
|
+
declare const toolbarThemeVariants: (props?: ({
|
|
179
|
+
overflow?: "menu" | "wrap" | null | undefined;
|
|
180
|
+
size?: "small" | "medium" | "large" | null | undefined;
|
|
181
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
182
|
+
type ToolbarVariantProps = VariantProps<typeof toolbarThemeVariants>;
|
|
183
|
+
export type { ToolbarItemOverflow, ToolbarOverflow, ToolbarVariantProps };
|