@nanahoshi/mona-ui 0.25.1 → 0.26.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/README.md +2 -0
- package/command/package.json +4 -0
- package/docs/auto-complete.md +733 -0
- package/docs/avatar.md +220 -0
- package/docs/breadcrumb.md +320 -0
- package/docs/button-group.md +392 -0
- package/docs/button.md +256 -0
- package/docs/calendar.md +515 -0
- package/docs/card.md +292 -0
- package/docs/chart.md +4058 -0
- package/docs/checkbox.md +374 -0
- package/docs/chip.md +339 -0
- package/docs/circular-progress-bar.md +287 -0
- package/docs/collapsible.md +308 -0
- package/docs/color-gradient.md +336 -0
- package/docs/color-palette.md +317 -0
- package/docs/color-picker.md +387 -0
- package/docs/combo-box.md +764 -0
- package/docs/command.md +582 -0
- package/docs/contextmenu.md +530 -0
- package/docs/date-picker.md +251 -0
- package/docs/datetime-picker.md +284 -0
- package/docs/decimal-textbox.md +260 -0
- package/docs/dialog.md +822 -0
- package/docs/dropdown-button.md +507 -0
- package/docs/dropdown-list.md +779 -0
- package/docs/editor.md +374 -0
- package/docs/expansion-panel.md +348 -0
- package/docs/fieldset.md +217 -0
- package/docs/forms.md +162 -0
- package/docs/grid.md +2053 -0
- package/docs/input.md +197 -0
- package/docs/installation.md +54 -0
- package/docs/introduction.md +46 -0
- package/docs/label.md +340 -0
- package/docs/list-box.md +637 -0
- package/docs/list-view.md +584 -0
- package/docs/menubar.md +559 -0
- package/docs/multi-select.md +765 -0
- package/docs/notification.md +460 -0
- package/docs/numeric-textbox.md +301 -0
- package/docs/otp-input.md +539 -0
- package/docs/pager.md +513 -0
- package/docs/placeholder.md +176 -0
- package/docs/popover.md +423 -0
- package/docs/popup-menu.md +658 -0
- package/docs/popup.md +617 -0
- package/docs/progress-bar.md +368 -0
- package/docs/radio-button.md +451 -0
- package/docs/range-slider.md +367 -0
- package/docs/rating.md +518 -0
- package/docs/scroll-view.md +375 -0
- package/docs/segmented.md +434 -0
- package/docs/sheet.md +348 -0
- package/docs/sidebar.md +1126 -0
- package/docs/skeleton.md +181 -0
- package/docs/slider.md +423 -0
- package/docs/spinner.md +370 -0
- package/docs/split-button.md +522 -0
- package/docs/splitter.md +342 -0
- package/docs/stepper.md +539 -0
- package/docs/switch.md +340 -0
- package/docs/tabs.md +542 -0
- package/docs/textarea.md +196 -0
- package/docs/textbox.md +332 -0
- package/docs/theming.md +403 -0
- package/docs/time-picker.md +254 -0
- package/docs/tooltip-directive.md +340 -0
- package/docs/tooltip.md +321 -0
- package/docs/tree-view.md +1018 -0
- package/docs/window.md +663 -0
- package/fesm2022/nanahoshi-mona-ui-auto-complete.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-breadcrumb.mjs +8 -0
- package/fesm2022/nanahoshi-mona-ui-button.mjs +12 -0
- package/fesm2022/nanahoshi-mona-ui-calendar.mjs +5 -2
- package/fesm2022/nanahoshi-mona-ui-chart.mjs +86 -0
- package/fesm2022/nanahoshi-mona-ui-check-box.mjs +4 -0
- package/fesm2022/nanahoshi-mona-ui-circular-progress-bar.mjs +4 -0
- package/fesm2022/nanahoshi-mona-ui-collapsible.mjs +16 -2
- package/fesm2022/nanahoshi-mona-ui-combo-box.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-command.mjs +924 -0
- package/fesm2022/nanahoshi-mona-ui-common.mjs +4 -0
- package/fesm2022/nanahoshi-mona-ui-contextmenu.mjs +10 -6
- package/fesm2022/nanahoshi-mona-ui-date-picker.mjs +2 -1
- package/fesm2022/nanahoshi-mona-ui-datetime-picker.mjs +2 -1
- package/fesm2022/nanahoshi-mona-ui-dialog.mjs +9 -5
- package/fesm2022/nanahoshi-mona-ui-dropdown-button.mjs +9 -5
- package/fesm2022/nanahoshi-mona-ui-dropdowns.mjs +55 -1
- package/fesm2022/nanahoshi-mona-ui-editor.mjs +3 -2
- package/fesm2022/nanahoshi-mona-ui-expansion-panel.mjs +13 -0
- package/fesm2022/nanahoshi-mona-ui-fieldset.mjs +5 -0
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-footer-row.component-2tVhD2hK.mjs → nanahoshi-mona-ui-grid-grid-footer-row.component-DjNnVxHE.mjs} +2 -2
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-list.component-BAN70Wcn.mjs → nanahoshi-mona-ui-grid-grid-list.component-ihQIKeP-.mjs} +5 -5
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-row.component-C_kCaA5b.mjs → nanahoshi-mona-ui-grid-grid-row.component-BpnybNcs.mjs} +18 -35
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-virtual-list.component-BsNfrAHz.mjs → nanahoshi-mona-ui-grid-grid-virtual-list.component-CYlgfc7c.mjs} +5 -5
- package/fesm2022/{nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-CEfVa7eo.mjs → nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-LCzfCYd3.mjs} +4653 -4529
- package/fesm2022/nanahoshi-mona-ui-grid.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-i18n-icu.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-internal-list.mjs +1 -0
- package/fesm2022/nanahoshi-mona-ui-internal-popup-menu.mjs +168 -0
- package/fesm2022/nanahoshi-mona-ui-internal-tree.mjs +19 -1
- package/fesm2022/nanahoshi-mona-ui-list-box.mjs +14 -0
- package/fesm2022/nanahoshi-mona-ui-list-view.mjs +32 -0
- package/fesm2022/nanahoshi-mona-ui-locales-ar-sa.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-locales-de-de.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-locales-es-es.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-locales-fr-fr.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-locales-id-id.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-locales-it-it.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-locales-ja-jp.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-locales-ko-kr.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-locales-pt-br.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-locales-ru-ru.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-locales-tr-tr.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-locales-zh-cn.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-locales-zh-tw.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-menubar.mjs +15 -8
- package/fesm2022/nanahoshi-mona-ui-multi-select.mjs +8 -5
- package/fesm2022/nanahoshi-mona-ui-notification.mjs +9 -0
- package/fesm2022/nanahoshi-mona-ui-numeric-text-box.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-otp-input.mjs +5 -0
- package/fesm2022/nanahoshi-mona-ui-pager.mjs +2 -1
- package/fesm2022/nanahoshi-mona-ui-popover.mjs +14 -6
- package/fesm2022/nanahoshi-mona-ui-popup-menu.mjs +48 -183
- package/fesm2022/nanahoshi-mona-ui-popup.mjs +16 -0
- package/fesm2022/nanahoshi-mona-ui-progress-bar.mjs +4 -0
- package/fesm2022/nanahoshi-mona-ui-rating.mjs +2 -0
- package/fesm2022/nanahoshi-mona-ui-segmented.mjs +1 -0
- package/fesm2022/nanahoshi-mona-ui-sheet.mjs +5 -5
- package/fesm2022/nanahoshi-mona-ui-sidebar.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-slider.mjs +7 -2
- package/fesm2022/nanahoshi-mona-ui-split-button.mjs +9 -6
- package/fesm2022/nanahoshi-mona-ui-stepper.mjs +18 -21
- package/fesm2022/nanahoshi-mona-ui-tabs.mjs +11 -8
- package/fesm2022/nanahoshi-mona-ui-text-box.mjs +9 -1
- package/fesm2022/nanahoshi-mona-ui-time-picker.mjs +2 -1
- package/fesm2022/nanahoshi-mona-ui-tooltip.mjs +16 -5
- package/fesm2022/nanahoshi-mona-ui-tree-view.mjs +13 -11
- package/fesm2022/nanahoshi-mona-ui-window.mjs +12 -5
- package/i18n/catalogs/en-US.messages.json +10 -0
- package/internal/popup-menu/package.json +4 -0
- package/llms.txt +123 -0
- package/locales/ar-sa/ar-sa.messages.json +10 -0
- package/locales/de-de/de-de.messages.json +10 -0
- package/locales/es-es/es-es.messages.json +10 -0
- package/locales/fr-fr/fr-fr.messages.json +10 -0
- package/locales/id-id/id-id.messages.json +10 -0
- package/locales/it-it/it-it.messages.json +10 -0
- package/locales/ja-jp/ja-jp.messages.json +10 -0
- package/locales/ko-kr/ko-kr.messages.json +10 -0
- package/locales/pt-br/pt-br.messages.json +10 -0
- package/locales/ru-ru/ru-ru.messages.json +10 -0
- package/locales/tr-tr/tr-tr.messages.json +10 -0
- package/locales/zh-cn/zh-cn.messages.json +10 -0
- package/locales/zh-tw/zh-tw.messages.json +10 -0
- package/package.json +9 -1
- package/types/nanahoshi-mona-ui-auto-complete.d.ts +1 -1
- package/types/nanahoshi-mona-ui-breadcrumb.d.ts +8 -0
- package/types/nanahoshi-mona-ui-button.d.ts +12 -0
- package/types/nanahoshi-mona-ui-calendar.d.ts +3 -0
- package/types/nanahoshi-mona-ui-chart.d.ts +200 -0
- package/types/nanahoshi-mona-ui-check-box.d.ts +4 -0
- package/types/nanahoshi-mona-ui-circular-progress-bar.d.ts +4 -0
- package/types/nanahoshi-mona-ui-collapsible.d.ts +10 -0
- package/types/nanahoshi-mona-ui-combo-box.d.ts +1 -1
- package/types/nanahoshi-mona-ui-command.d.ts +253 -0
- package/types/nanahoshi-mona-ui-common.d.ts +17 -1
- package/types/nanahoshi-mona-ui-contextmenu.d.ts +5 -2
- package/types/nanahoshi-mona-ui-date-picker.d.ts +2 -1
- package/types/nanahoshi-mona-ui-datetime-picker.d.ts +2 -1
- package/types/nanahoshi-mona-ui-dialog.d.ts +58 -1
- package/types/nanahoshi-mona-ui-dropdown-button.d.ts +7 -3
- package/types/nanahoshi-mona-ui-dropdowns.d.ts +55 -1
- package/types/nanahoshi-mona-ui-editor.d.ts +31 -0
- package/types/nanahoshi-mona-ui-expansion-panel.d.ts +13 -0
- package/types/nanahoshi-mona-ui-fieldset.d.ts +5 -0
- package/types/nanahoshi-mona-ui-grid.d.ts +162 -35
- package/types/nanahoshi-mona-ui-i18n.d.ts +144 -1
- package/types/nanahoshi-mona-ui-internal-list.d.ts +16 -1
- package/types/nanahoshi-mona-ui-internal-popup-menu.d.ts +165 -0
- package/types/nanahoshi-mona-ui-internal-tree.d.ts +21 -2
- package/types/nanahoshi-mona-ui-internal.d.ts +4 -5
- package/types/nanahoshi-mona-ui-label.d.ts +1 -0
- package/types/nanahoshi-mona-ui-list-box.d.ts +27 -4
- package/types/nanahoshi-mona-ui-list-view.d.ts +34 -1
- package/types/nanahoshi-mona-ui-list.d.ts +1 -1
- package/types/nanahoshi-mona-ui-locales-ar-sa.d.ts +10 -0
- package/types/nanahoshi-mona-ui-locales-de-de.d.ts +10 -0
- package/types/nanahoshi-mona-ui-locales-es-es.d.ts +10 -0
- package/types/nanahoshi-mona-ui-locales-fr-fr.d.ts +10 -0
- package/types/nanahoshi-mona-ui-locales-id-id.d.ts +10 -0
- package/types/nanahoshi-mona-ui-locales-it-it.d.ts +10 -0
- package/types/nanahoshi-mona-ui-locales-ja-jp.d.ts +10 -0
- package/types/nanahoshi-mona-ui-locales-ko-kr.d.ts +10 -0
- package/types/nanahoshi-mona-ui-locales-pt-br.d.ts +10 -0
- package/types/nanahoshi-mona-ui-locales-ru-ru.d.ts +10 -0
- package/types/nanahoshi-mona-ui-locales-tr-tr.d.ts +10 -0
- package/types/nanahoshi-mona-ui-locales-zh-cn.d.ts +10 -0
- package/types/nanahoshi-mona-ui-locales-zh-tw.d.ts +10 -0
- package/types/nanahoshi-mona-ui-menubar.d.ts +10 -3
- package/types/nanahoshi-mona-ui-multi-select.d.ts +3 -3
- package/types/nanahoshi-mona-ui-notification.d.ts +9 -0
- package/types/nanahoshi-mona-ui-numeric-text-box.d.ts +1 -1
- package/types/nanahoshi-mona-ui-otp-input.d.ts +1 -0
- package/types/nanahoshi-mona-ui-pager.d.ts +5 -1
- package/types/nanahoshi-mona-ui-popover.d.ts +9 -1
- package/types/nanahoshi-mona-ui-popup-menu.d.ts +48 -161
- package/types/nanahoshi-mona-ui-popup.d.ts +16 -0
- package/types/nanahoshi-mona-ui-progress-bar.d.ts +4 -0
- package/types/nanahoshi-mona-ui-rating.d.ts +2 -0
- package/types/nanahoshi-mona-ui-segmented.d.ts +1 -0
- package/types/nanahoshi-mona-ui-sheet.d.ts +1 -1
- package/types/nanahoshi-mona-ui-slider.d.ts +2 -0
- package/types/nanahoshi-mona-ui-spinner.d.ts +7 -0
- package/types/nanahoshi-mona-ui-split-button.d.ts +7 -4
- package/types/nanahoshi-mona-ui-stepper.d.ts +11 -2
- package/types/nanahoshi-mona-ui-tabs.d.ts +4 -1
- package/types/nanahoshi-mona-ui-text-box.d.ts +9 -1
- package/types/nanahoshi-mona-ui-time-picker.d.ts +2 -1
- package/types/nanahoshi-mona-ui-tooltip.d.ts +10 -2
- package/types/nanahoshi-mona-ui-tree-view.d.ts +6 -5
- package/types/nanahoshi-mona-ui-window.d.ts +66 -1
|
@@ -62,24 +62,43 @@ interface NodeItem<T> {
|
|
|
62
62
|
uid: string;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
+
/**
|
|
66
|
+
* A node of a tree, wrapping its data item. Read `data`, `uid` and `nodeItem`; the tree keeps the rest, and writing to it
|
|
67
|
+
* would put the node out of step with the tree.
|
|
68
|
+
*/
|
|
65
69
|
declare class TreeNode<T> {
|
|
70
|
+
/** @hidden Whether the node is checked. The tree keeps it in step with the checked keys. */
|
|
66
71
|
readonly checked: _angular_core.WritableSignal<boolean>;
|
|
72
|
+
/** @hidden The node's child nodes, in display order. */
|
|
67
73
|
readonly children: _angular_core.WritableSignal<ImmutableSet<TreeNode<T>>>;
|
|
74
|
+
/** The data item this node was created from. */
|
|
68
75
|
readonly data: T;
|
|
69
|
-
/** Whether the last load of this node's children from an asynchronous children selector failed. */
|
|
76
|
+
/** @hidden Whether the last load of this node's children from an asynchronous children selector failed. */
|
|
70
77
|
readonly loadFailed: _angular_core.WritableSignal<boolean>;
|
|
78
|
+
/** @hidden Whether the node's children are being loaded from an asynchronous children selector. */
|
|
71
79
|
readonly loading: _angular_core.WritableSignal<boolean>;
|
|
80
|
+
/** A unique id generated for the node when it is created. */
|
|
72
81
|
readonly uid: string;
|
|
73
82
|
/**
|
|
74
83
|
* Whether children from an asynchronous children selector have been loaded. Loaded children are cached,
|
|
75
84
|
* so collapsing and re-expanding the node does not request them again.
|
|
85
|
+
* @hidden
|
|
76
86
|
*/
|
|
77
87
|
childrenLoaded: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* The node's position in the tree as dot-separated zero-based indices from the root, such as `"0.2.1"` for
|
|
90
|
+
* the second child of the third child of the first root node.
|
|
91
|
+
* @hidden
|
|
92
|
+
*/
|
|
78
93
|
index: string;
|
|
94
|
+
/** @hidden The node's parent node, or `null` for a root node. */
|
|
79
95
|
parent: TreeNode<T> | null;
|
|
80
96
|
constructor(data: T);
|
|
97
|
+
/** @hidden Copies the node and its children. */
|
|
81
98
|
clone(): TreeNode<T>;
|
|
99
|
+
/** @hidden Whether the node sits anywhere below `node`. */
|
|
82
100
|
isDescendantOf(node: TreeNode<T>): boolean;
|
|
101
|
+
/** A plain snapshot of the node (its data, uid and whether it has children), as the tree view's events carry it. */
|
|
83
102
|
get nodeItem(): NodeItem<T>;
|
|
84
103
|
}
|
|
85
104
|
|
|
@@ -554,4 +573,4 @@ declare function moveFlatTreeNode<T extends object>(treeData: Iterable<T>, event
|
|
|
554
573
|
declare function moveTreeNode<T extends object>(treeData: Iterable<T>, event: NodeDropEvent<T>, idKey: keyof T, childrenKey: keyof T): T[];
|
|
555
574
|
|
|
556
575
|
export { InternalNodeDragEvent, NodeCheckEvent, NodeClickEvent, NodeDragEndEvent, NodeDragEvent, NodeDragStartEvent, NodeDropEvent, NodeDropEventSansTree, NodeEvent, NodeSelectEvent, TREE_DEFAULT_MESSAGES, TreeComponent, TreeNode, TreeNodeTemplateDirective, TreeService, moveFlatTreeNode, moveTreeNode };
|
|
557
|
-
export type { CheckableOptions, ChildrenLoadErrorEvent, ChildrenSelector, DataStructure, DisableOptions, DraggableOptions, DropPosition, DropPositionChangeEvent, ExpandableOptions, ITreeView, NodeDropEventArgs, NodeDropEventArgsSansTree, NodeDropOriginalEvent, NodeItem, NodeKeySelector, NodeMoveSnapshot, SelectableOptions, TreeKeyboardMove, TreeKeyboardMoveDirection, TreeNodeCheckEvent, TreeNodeExpandEvent, TreeNodeSelectEvent };
|
|
576
|
+
export type { CheckableOptions, ChildrenLoadErrorEvent, ChildrenSelector, DataStructure, DisableOptions, DraggableOptions, DropPosition, DropPositionChangeEvent, ExpandableOptions, ITreeView, MultipleSelectionConfig, NodeDropEventArgs, NodeDropEventArgsSansTree, NodeDropOriginalEvent, NodeItem, NodeKeySelector, NodeMoveSnapshot, SelectableOptions, SingleSelectionConfig, TreeKeyboardMove, TreeKeyboardMoveDirection, TreeNodeCheckEvent, TreeNodeExpandEvent, TreeNodeSelectEvent };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { InjectionToken, Signal, ElementRef, DestroyRef } from '@angular/core';
|
|
3
|
+
import { AttributeConfig, Action } from '@nanahoshi/mona-ui/common';
|
|
4
|
+
export { Action, AttributeConfig } from '@nanahoshi/mona-ui/common';
|
|
3
5
|
import { OverlayRef, ConnectionPositionPair } from '@angular/cdk/overlay';
|
|
4
6
|
import { Observable } from 'rxjs';
|
|
5
7
|
|
|
6
|
-
type AttributeConfig = Record<string, unknown>;
|
|
7
|
-
|
|
8
8
|
declare class AttributeBinderDirective {
|
|
9
9
|
#private;
|
|
10
10
|
readonly attributes: i0.InputSignal<AttributeConfig>;
|
|
@@ -82,8 +82,6 @@ declare const formatAlpha: (alpha: number) => number;
|
|
|
82
82
|
*/
|
|
83
83
|
declare const rgba2hsva: (r: number | null, g: number | null, b: number | null, a: number | null) => HSVA;
|
|
84
84
|
|
|
85
|
-
type Action<P = void, R = void> = (arg: P) => R;
|
|
86
|
-
|
|
87
85
|
/**
|
|
88
86
|
* Adds `id` to an id-list attribute such as `aria-describedby`, keeping the ids already there.
|
|
89
87
|
*/
|
|
@@ -315,6 +313,7 @@ declare const onDisconnect: (element: Element, callback: () => void) => (() => v
|
|
|
315
313
|
* The side of its anchor a tooltip or popover opens on. `left` and `right` are physical in every direction; `start`
|
|
316
314
|
* and `end` follow the text direction.
|
|
317
315
|
*/
|
|
316
|
+
/** A side of the anchor. `start` and `end` follow the direction. */
|
|
318
317
|
type OverlaySide = "bottom" | "end" | "left" | "right" | "start" | "top";
|
|
319
318
|
/** A side resolved against the text direction. */
|
|
320
319
|
type PhysicalOverlaySide = "bottom" | "left" | "right" | "top";
|
|
@@ -379,4 +378,4 @@ declare const TYPEAHEAD_RESET_DELAY = 200;
|
|
|
379
378
|
declare const setupTypeahead: (typeaheadKey$: Observable<string>) => Observable<string>;
|
|
380
379
|
|
|
381
380
|
export { AttributeBinderDirective, HOVER_GRACE, HoverIntent, MONA_FIELDSET_DISABLED, MONA_LABEL, NavigationKeys, RovingToolbar, TYPEAHEAD_RESET_DELAY, addAriaReference, colorKey, createElementControlId, focusCanReturn, focusElement, formatAlpha, hex2rgba, hsla2hsva, hsva2rgba, inertOutside, injectEffectiveDisabled, injectLabelAssociation, injectLabelledByText, isNavigationKey, isTypeaheadKey, isValidHex, listenForHover, navigationKeysList, onDisconnect, overlaySidePositions, parseColor, positionGlobalOverlay, removeAriaReference, resolveOverlaySide, restoreOverlayScroll, rgba2hex, rgba2hsla, rgba2hsva, rxFromResize, rxTimeout, setupTypeahead, sideOfPosition, themeControlBackdropClasses, themeControlSurfaceClasses, themeOverlayBackdropClasses, themeOverlaySurfaceClasses, themeRaisedBackdropClasses, themeRaisedSurfaceClasses, themeSelectionBarClasses, themeSelectionBorderClasses, toCssValue };
|
|
382
|
-
export type {
|
|
381
|
+
export type { Channel, ColorScheme, GlobalOverlayPosition, HSL, HSLA, HSV, HSVA, HSVChannel, HoverIntentConfig, HoverSource, InertOutsideOptions, LabelAssociation, LabelAssociationOptions, MonaLabelContext, MonaLabelledControl, OverlaySide, PhysicalOverlaySide, RGB, RGBA, RGBAChannel, RGBChannel, TypeaheadModifiers, VariantInputs };
|
|
@@ -5,6 +5,7 @@ import * as _nanahoshi_mona_ui_i18n from '@nanahoshi/mona-ui/i18n';
|
|
|
5
5
|
interface LabelFocusable {
|
|
6
6
|
/** Runs instead of `focus()` on a click, for a control a native label would activate. */
|
|
7
7
|
activateFromLabel?(): void;
|
|
8
|
+
/** Moves focus to the control. The label calls it on a click when the control has no `activateFromLabel`. */
|
|
8
9
|
focus(options?: FocusOptions): void;
|
|
9
10
|
/** Receives the id of the label's text, so the control can use it for `aria-labelledby`. */
|
|
10
11
|
setLabelledBy?(id: string | null): void;
|
|
@@ -12,7 +12,12 @@ import { VariantInputs } from '@nanahoshi/mona-ui/internal';
|
|
|
12
12
|
import { VariantProps } from 'class-variance-authority';
|
|
13
13
|
|
|
14
14
|
interface ToolbarOptions {
|
|
15
|
+
/** Which toolbar buttons to show. They appear in a fixed order. */
|
|
15
16
|
actions: ToolbarAction[];
|
|
17
|
+
/**
|
|
18
|
+
* Which side of the list the toolbar renders on; `"right"` and `"left"` are the inline end and start, so they swap
|
|
19
|
+
* in RTL.
|
|
20
|
+
*/
|
|
16
21
|
position: Position;
|
|
17
22
|
}
|
|
18
23
|
type ToolbarAction = "clear" | "moveDown" | "moveUp" | "remove" | "transferAllFrom" | "transferAllTo" | "transferFrom" | "transferTo";
|
|
@@ -20,39 +25,56 @@ type ToolbarAction = "clear" | "moveDown" | "moveUp" | "remove" | "transferAllFr
|
|
|
20
25
|
declare class ListBoxMoveEvent<T = any> extends PreventableEvent {
|
|
21
26
|
#private;
|
|
22
27
|
constructor(action: Extract<ToolbarAction, "moveDown" | "moveUp">, selectedItems: Iterable<T>, selectedIndices: Iterable<number>, oldIndex: number, newIndex: number, originalEvent?: Event);
|
|
28
|
+
/** Discriminant matching the `ListBoxActionEvent` union. */
|
|
23
29
|
get action(): Extract<ToolbarAction, "moveDown" | "moveUp">;
|
|
30
|
+
/** For Move Up, the index above the first selected item; for Move Down, the index below the last one. */
|
|
24
31
|
get newIndex(): number;
|
|
32
|
+
/** The index of the first selected item (in list order) before the move. */
|
|
25
33
|
get oldIndex(): number;
|
|
34
|
+
/** Indices of all selected items before the move, ascending. */
|
|
26
35
|
get selectedIndices(): number[];
|
|
36
|
+
/** The items that were selected when the move was requested. */
|
|
27
37
|
get selectedItems(): T[];
|
|
28
38
|
}
|
|
29
39
|
|
|
30
40
|
declare class ListBoxRemoveEvent<T = any> extends PreventableEvent {
|
|
31
41
|
#private;
|
|
32
42
|
constructor(selectedItems: Iterable<T>, originalEvent?: Event);
|
|
43
|
+
/** Discriminant matching the `ListBoxActionEvent` union. */
|
|
33
44
|
get action(): Extract<ToolbarAction, "remove">;
|
|
45
|
+
/** The items that were selected when Remove was clicked. */
|
|
34
46
|
get selectedItems(): T[];
|
|
35
47
|
}
|
|
36
48
|
|
|
37
|
-
|
|
49
|
+
/** The toolbar actions that move items between list boxes. */
|
|
50
|
+
type ListBoxTransferAction = Extract<ToolbarAction, "transferAllFrom" | "transferAllTo" | "transferFrom" | "transferTo">;
|
|
38
51
|
declare class ListBoxTransferEvent<T = any> extends PreventableEvent {
|
|
39
52
|
#private;
|
|
40
|
-
constructor(action:
|
|
41
|
-
|
|
53
|
+
constructor(action: ListBoxTransferAction, selectedItems: Iterable<T>, originalEvent?: Event);
|
|
54
|
+
/** Discriminant matching the `ListBoxActionEvent` union. */
|
|
55
|
+
get action(): ListBoxTransferAction;
|
|
56
|
+
/**
|
|
57
|
+
* The items to transfer, in list order: the source's selection, or all of the source's items for the "All"
|
|
58
|
+
* variants. See Which list box's `actionClick` fires.
|
|
59
|
+
*/
|
|
42
60
|
get selectedItems(): T[];
|
|
43
61
|
}
|
|
44
62
|
|
|
45
63
|
declare class ListBoxClearEvent<T = any> extends PreventableEvent {
|
|
46
64
|
#private;
|
|
47
65
|
constructor(selectedItems: Iterable<T>, originalEvent?: Event);
|
|
66
|
+
/** Discriminant matching the `ListBoxActionEvent` union. */
|
|
48
67
|
get action(): Extract<ToolbarAction, "clear">;
|
|
68
|
+
/** The items that were selected when Clear Selection was clicked. */
|
|
49
69
|
get selectedItems(): T[];
|
|
50
70
|
}
|
|
51
71
|
|
|
52
72
|
type ListBoxActionEvent<T = any> = ListBoxClearEvent<T> | ListBoxMoveEvent<T> | ListBoxRemoveEvent<T> | ListBoxTransferEvent<T>;
|
|
53
73
|
|
|
54
74
|
interface ListBoxSelectionEvent<T = any> {
|
|
75
|
+
/** Items that were deselected (read-only). */
|
|
55
76
|
readonly deselectedItems: T[];
|
|
77
|
+
/** Items that are now selected (read-only). */
|
|
56
78
|
readonly selectedItems: T[];
|
|
57
79
|
}
|
|
58
80
|
|
|
@@ -301,6 +323,7 @@ declare class ListBoxHeaderTemplateDirective {
|
|
|
301
323
|
* The context of a `monaListBoxItemTemplate`: the data item, as `let-item`.
|
|
302
324
|
*/
|
|
303
325
|
interface ListBoxItemTemplateContext<T = unknown> {
|
|
326
|
+
/** The raw data item being rendered. */
|
|
304
327
|
readonly $implicit: T;
|
|
305
328
|
}
|
|
306
329
|
|
|
@@ -327,4 +350,4 @@ declare class ListBoxNoDataTemplateDirective {
|
|
|
327
350
|
declare const LIST_BOX_DEFAULT_MESSAGES: MonaListBoxMessages;
|
|
328
351
|
|
|
329
352
|
export { LIST_BOX_DEFAULT_MESSAGES, ListBoxClearEvent, ListBoxComponent, ListBoxFooterTemplateDirective, ListBoxHeaderTemplateDirective, ListBoxItemTemplateDirective, ListBoxMoveEvent, ListBoxNoDataTemplateDirective, ListBoxRemoveEvent, ListBoxTransferEvent };
|
|
330
|
-
export type { ListBoxActionEvent, ListBoxItemTemplateContext, ListBoxSelectionEvent, ToolbarAction, ToolbarOptions };
|
|
353
|
+
export type { ListBoxActionEvent, ListBoxItemTemplateContext, ListBoxSelectionEvent, ListBoxTransferAction, ToolbarAction, ToolbarOptions };
|
|
@@ -3,7 +3,7 @@ import * as _angular_core from '@angular/core';
|
|
|
3
3
|
import { TemplateRef } from '@angular/core';
|
|
4
4
|
import { ImmutableList, Predicate } from '@mirei/ts-collections';
|
|
5
5
|
import { ListService, ListKeySelector, ListItem, GroupableOptions, NavigableOptions, PagerSettings, SelectableOptions } from '@nanahoshi/mona-ui/internal/list';
|
|
6
|
-
export { GroupableOptions, NavigableOptions, PagerSettings, SelectableOptions } from '@nanahoshi/mona-ui/internal/list';
|
|
6
|
+
export { GroupableOptions, NavigableOptions, NavigationMode, OrderByOptions, PagerSettings, SelectableOptions } from '@nanahoshi/mona-ui/internal/list';
|
|
7
7
|
import { PageChangeEvent, PageSizeChangeEvent } from '@nanahoshi/mona-ui/pager';
|
|
8
8
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
9
9
|
import { VariantInputs } from '@nanahoshi/mona-ui/internal';
|
|
@@ -179,7 +179,12 @@ declare class ListViewGroupHeaderTemplateDirective {
|
|
|
179
179
|
|
|
180
180
|
declare class ListViewGroupableDirective<T, K = T> {
|
|
181
181
|
#private;
|
|
182
|
+
/** @description Property name or accessor used to derive the group key from a data item. */
|
|
182
183
|
readonly groupBy: _angular_core.InputSignal<ListKeySelector<T, K> | undefined>;
|
|
184
|
+
/**
|
|
185
|
+
* @description Enables grouping. An empty string enables grouping with default settings; pass an object to
|
|
186
|
+
* configure `headerOrder`, `headerText`, `orderBy`, and `orderByDirection`.
|
|
187
|
+
*/
|
|
183
188
|
readonly options: _angular_core.InputSignal<"" | GroupableOptions<T, K>>;
|
|
184
189
|
constructor();
|
|
185
190
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ListViewGroupableDirective<any, any>, never>;
|
|
@@ -193,6 +198,7 @@ declare class ListViewHeaderTemplateDirective {
|
|
|
193
198
|
|
|
194
199
|
/** The context of a `monaListViewItemTemplate`: the data item, as `let-item`. */
|
|
195
200
|
interface ListViewItemTemplateContext<T = unknown> {
|
|
201
|
+
/** The data item (`let-item`), or the group's value (`let-group`). */
|
|
196
202
|
readonly $implicit: T;
|
|
197
203
|
}
|
|
198
204
|
|
|
@@ -213,6 +219,10 @@ declare class ListViewItemTemplateDirective<T = any> {
|
|
|
213
219
|
|
|
214
220
|
declare class ListViewNavigableDirective<T> {
|
|
215
221
|
#private;
|
|
222
|
+
/**
|
|
223
|
+
* @description Configures keyboard navigation, which is on without the directive. An empty string keeps the
|
|
224
|
+
* defaults (`enabled: true`, `mode: "select"`, `wrap: false`); pass an object to override any field.
|
|
225
|
+
*/
|
|
216
226
|
readonly options: _angular_core.InputSignal<"" | Partial<NavigableOptions>>;
|
|
217
227
|
constructor();
|
|
218
228
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ListViewNavigableDirective<any>, never>;
|
|
@@ -226,6 +236,12 @@ declare class ListViewNoDataTemplateDirective {
|
|
|
226
236
|
|
|
227
237
|
declare class ListViewPageableDirective {
|
|
228
238
|
#private;
|
|
239
|
+
/**
|
|
240
|
+
* @description Enables pagination. An empty string enables pagination with default settings (`type: "numeric"`,
|
|
241
|
+
* `previousNext: true`, `pageSize: 10`, `pageSizeValues: [5, 10, 20, 25, 50, 100]`, `visiblePages: 5`); pass an
|
|
242
|
+
* object to override any field. Has no visible effect while `monaListViewVirtualScroll` is enabled — see Pagination
|
|
243
|
+
* and virtualization don't combine.
|
|
244
|
+
*/
|
|
229
245
|
readonly options: _angular_core.InputSignal<"" | Partial<PagerSettings>>;
|
|
230
246
|
/**
|
|
231
247
|
* @description The current page. Supports two-way binding via `[(page)]`; updates when the user navigates the pager and can be set to navigate programmatically.
|
|
@@ -253,9 +269,22 @@ declare class ListViewPageableDirective {
|
|
|
253
269
|
|
|
254
270
|
declare class ListViewSelectableDirective<T, K = unknown> {
|
|
255
271
|
#private;
|
|
272
|
+
/**
|
|
273
|
+
* @description Enables selection. An empty string enables single selection with default settings; pass an object to
|
|
274
|
+
* configure `mode` (`"single"` or `"multiple"`), `toggleable`, and `checkboxes`.
|
|
275
|
+
*/
|
|
256
276
|
readonly options: _angular_core.InputSignal<"" | Partial<SelectableOptions>>;
|
|
277
|
+
/**
|
|
278
|
+
* @description Property name or accessor used to derive the selection key from a data item. When omitted, the data
|
|
279
|
+
* item itself is used as the key.
|
|
280
|
+
*/
|
|
257
281
|
readonly selectBy: _angular_core.InputSignal<ListKeySelector<T, K> | undefined>;
|
|
282
|
+
/** @description The selection, expressed as keys rather than items. Bind `[(selectedKeys)]` to keep it in sync. */
|
|
258
283
|
readonly selectedKeys: _angular_core.InputSignal<Iterable<K>>;
|
|
284
|
+
/**
|
|
285
|
+
* @description Emitted with the selected keys when the user selects or deselects an item. Not emitted for keys set
|
|
286
|
+
* through `selectedKeys`.
|
|
287
|
+
*/
|
|
259
288
|
readonly selectedKeysChange: _angular_core.OutputEmitterRef<K[]>;
|
|
260
289
|
constructor();
|
|
261
290
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ListViewSelectableDirective<any, any>, never>;
|
|
@@ -264,6 +293,10 @@ declare class ListViewSelectableDirective<T, K = unknown> {
|
|
|
264
293
|
|
|
265
294
|
declare class ListViewVirtualScrollDirective<T> {
|
|
266
295
|
#private;
|
|
296
|
+
/**
|
|
297
|
+
* @description Enables virtual scrolling. `height` is the fixed row height, in pixels, used to measure the
|
|
298
|
+
* viewport; when omitted, a `28`px row height is assumed.
|
|
299
|
+
*/
|
|
267
300
|
readonly options: _angular_core.InputSignal<VirtualScrollOptions>;
|
|
268
301
|
constructor();
|
|
269
302
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ListViewVirtualScrollDirective<any>, never>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { GroupableOptions, LIST_DEFAULT_MESSAGES, ListKeySelector, ListSizeInputType, SelectableOptions, SelectionChangeEvent } from '@nanahoshi/mona-ui/internal/list';
|
|
1
|
+
export { GroupableOptions, LIST_DEFAULT_MESSAGES, ListItem, ListKeySelector, ListSizeInputType, ListSizeType, NavigationMode, OrderByOptions, SelectableOptions, SelectionChangeEvent } from '@nanahoshi/mona-ui/internal/list';
|
|
@@ -160,6 +160,15 @@ declare const MONA_AR_SA_LOCALE: {
|
|
|
160
160
|
comboBox: {
|
|
161
161
|
clear: string;
|
|
162
162
|
};
|
|
163
|
+
command: {
|
|
164
|
+
dialogLabel: string;
|
|
165
|
+
inputLabel: string;
|
|
166
|
+
listLabel: string;
|
|
167
|
+
loading: string;
|
|
168
|
+
noResults: string;
|
|
169
|
+
placeholder: string;
|
|
170
|
+
resultsAvailable: (count: number) => string;
|
|
171
|
+
};
|
|
163
172
|
datePicker: {
|
|
164
173
|
datePicker: string;
|
|
165
174
|
openCalendar: string;
|
|
@@ -314,6 +323,7 @@ declare const MONA_AR_SA_LOCALE: {
|
|
|
314
323
|
filterOperator: (column: string, operator: string) => string;
|
|
315
324
|
filterPlaceholder: string;
|
|
316
325
|
group: string;
|
|
326
|
+
groupOptions: (column: string) => string;
|
|
317
327
|
loading: string;
|
|
318
328
|
modified: string;
|
|
319
329
|
moveAsNext: string;
|
|
@@ -160,6 +160,15 @@ declare const MONA_DE_DE_LOCALE: {
|
|
|
160
160
|
comboBox: {
|
|
161
161
|
clear: string;
|
|
162
162
|
};
|
|
163
|
+
command: {
|
|
164
|
+
dialogLabel: string;
|
|
165
|
+
inputLabel: string;
|
|
166
|
+
listLabel: string;
|
|
167
|
+
loading: string;
|
|
168
|
+
noResults: string;
|
|
169
|
+
placeholder: string;
|
|
170
|
+
resultsAvailable: (count: number) => string;
|
|
171
|
+
};
|
|
163
172
|
datePicker: {
|
|
164
173
|
datePicker: string;
|
|
165
174
|
openCalendar: string;
|
|
@@ -314,6 +323,7 @@ declare const MONA_DE_DE_LOCALE: {
|
|
|
314
323
|
filterOperator: (column: string, operator: string) => string;
|
|
315
324
|
filterPlaceholder: string;
|
|
316
325
|
group: string;
|
|
326
|
+
groupOptions: (column: string) => string;
|
|
317
327
|
loading: string;
|
|
318
328
|
modified: string;
|
|
319
329
|
moveAsNext: string;
|
|
@@ -160,6 +160,15 @@ declare const MONA_ES_ES_LOCALE: {
|
|
|
160
160
|
comboBox: {
|
|
161
161
|
clear: string;
|
|
162
162
|
};
|
|
163
|
+
command: {
|
|
164
|
+
dialogLabel: string;
|
|
165
|
+
inputLabel: string;
|
|
166
|
+
listLabel: string;
|
|
167
|
+
loading: string;
|
|
168
|
+
noResults: string;
|
|
169
|
+
placeholder: string;
|
|
170
|
+
resultsAvailable: (count: number) => string;
|
|
171
|
+
};
|
|
163
172
|
datePicker: {
|
|
164
173
|
datePicker: string;
|
|
165
174
|
openCalendar: string;
|
|
@@ -314,6 +323,7 @@ declare const MONA_ES_ES_LOCALE: {
|
|
|
314
323
|
filterOperator: (column: string, operator: string) => string;
|
|
315
324
|
filterPlaceholder: string;
|
|
316
325
|
group: string;
|
|
326
|
+
groupOptions: (column: string) => string;
|
|
317
327
|
loading: string;
|
|
318
328
|
modified: string;
|
|
319
329
|
moveAsNext: string;
|
|
@@ -160,6 +160,15 @@ declare const MONA_FR_FR_LOCALE: {
|
|
|
160
160
|
comboBox: {
|
|
161
161
|
clear: string;
|
|
162
162
|
};
|
|
163
|
+
command: {
|
|
164
|
+
dialogLabel: string;
|
|
165
|
+
inputLabel: string;
|
|
166
|
+
listLabel: string;
|
|
167
|
+
loading: string;
|
|
168
|
+
noResults: string;
|
|
169
|
+
placeholder: string;
|
|
170
|
+
resultsAvailable: (count: number) => string;
|
|
171
|
+
};
|
|
163
172
|
datePicker: {
|
|
164
173
|
datePicker: string;
|
|
165
174
|
openCalendar: string;
|
|
@@ -314,6 +323,7 @@ declare const MONA_FR_FR_LOCALE: {
|
|
|
314
323
|
filterOperator: (column: string, operator: string) => string;
|
|
315
324
|
filterPlaceholder: string;
|
|
316
325
|
group: string;
|
|
326
|
+
groupOptions: (column: string) => string;
|
|
317
327
|
loading: string;
|
|
318
328
|
modified: string;
|
|
319
329
|
moveAsNext: string;
|
|
@@ -160,6 +160,15 @@ declare const MONA_ID_ID_LOCALE: {
|
|
|
160
160
|
comboBox: {
|
|
161
161
|
clear: string;
|
|
162
162
|
};
|
|
163
|
+
command: {
|
|
164
|
+
dialogLabel: string;
|
|
165
|
+
inputLabel: string;
|
|
166
|
+
listLabel: string;
|
|
167
|
+
loading: string;
|
|
168
|
+
noResults: string;
|
|
169
|
+
placeholder: string;
|
|
170
|
+
resultsAvailable: (count: number) => string;
|
|
171
|
+
};
|
|
163
172
|
datePicker: {
|
|
164
173
|
datePicker: string;
|
|
165
174
|
openCalendar: string;
|
|
@@ -314,6 +323,7 @@ declare const MONA_ID_ID_LOCALE: {
|
|
|
314
323
|
filterOperator: (column: string, operator: string) => string;
|
|
315
324
|
filterPlaceholder: string;
|
|
316
325
|
group: string;
|
|
326
|
+
groupOptions: (column: string) => string;
|
|
317
327
|
loading: string;
|
|
318
328
|
modified: string;
|
|
319
329
|
moveAsNext: string;
|
|
@@ -160,6 +160,15 @@ declare const MONA_IT_IT_LOCALE: {
|
|
|
160
160
|
comboBox: {
|
|
161
161
|
clear: string;
|
|
162
162
|
};
|
|
163
|
+
command: {
|
|
164
|
+
dialogLabel: string;
|
|
165
|
+
inputLabel: string;
|
|
166
|
+
listLabel: string;
|
|
167
|
+
loading: string;
|
|
168
|
+
noResults: string;
|
|
169
|
+
placeholder: string;
|
|
170
|
+
resultsAvailable: (count: number) => string;
|
|
171
|
+
};
|
|
163
172
|
datePicker: {
|
|
164
173
|
datePicker: string;
|
|
165
174
|
openCalendar: string;
|
|
@@ -314,6 +323,7 @@ declare const MONA_IT_IT_LOCALE: {
|
|
|
314
323
|
filterOperator: (column: string, operator: string) => string;
|
|
315
324
|
filterPlaceholder: string;
|
|
316
325
|
group: string;
|
|
326
|
+
groupOptions: (column: string) => string;
|
|
317
327
|
loading: string;
|
|
318
328
|
modified: string;
|
|
319
329
|
moveAsNext: string;
|
|
@@ -160,6 +160,15 @@ declare const MONA_JA_JP_LOCALE: {
|
|
|
160
160
|
comboBox: {
|
|
161
161
|
clear: string;
|
|
162
162
|
};
|
|
163
|
+
command: {
|
|
164
|
+
dialogLabel: string;
|
|
165
|
+
inputLabel: string;
|
|
166
|
+
listLabel: string;
|
|
167
|
+
loading: string;
|
|
168
|
+
noResults: string;
|
|
169
|
+
placeholder: string;
|
|
170
|
+
resultsAvailable: (count: number) => string;
|
|
171
|
+
};
|
|
163
172
|
datePicker: {
|
|
164
173
|
datePicker: string;
|
|
165
174
|
openCalendar: string;
|
|
@@ -314,6 +323,7 @@ declare const MONA_JA_JP_LOCALE: {
|
|
|
314
323
|
filterOperator: (column: string, operator: string) => string;
|
|
315
324
|
filterPlaceholder: string;
|
|
316
325
|
group: string;
|
|
326
|
+
groupOptions: (column: string) => string;
|
|
317
327
|
loading: string;
|
|
318
328
|
modified: string;
|
|
319
329
|
moveAsNext: string;
|
|
@@ -160,6 +160,15 @@ declare const MONA_KO_KR_LOCALE: {
|
|
|
160
160
|
comboBox: {
|
|
161
161
|
clear: string;
|
|
162
162
|
};
|
|
163
|
+
command: {
|
|
164
|
+
dialogLabel: string;
|
|
165
|
+
inputLabel: string;
|
|
166
|
+
listLabel: string;
|
|
167
|
+
loading: string;
|
|
168
|
+
noResults: string;
|
|
169
|
+
placeholder: string;
|
|
170
|
+
resultsAvailable: (count: number) => string;
|
|
171
|
+
};
|
|
163
172
|
datePicker: {
|
|
164
173
|
datePicker: string;
|
|
165
174
|
openCalendar: string;
|
|
@@ -314,6 +323,7 @@ declare const MONA_KO_KR_LOCALE: {
|
|
|
314
323
|
filterOperator: (column: string, operator: string) => string;
|
|
315
324
|
filterPlaceholder: string;
|
|
316
325
|
group: string;
|
|
326
|
+
groupOptions: (column: string) => string;
|
|
317
327
|
loading: string;
|
|
318
328
|
modified: string;
|
|
319
329
|
moveAsNext: string;
|
|
@@ -160,6 +160,15 @@ declare const MONA_PT_BR_LOCALE: {
|
|
|
160
160
|
comboBox: {
|
|
161
161
|
clear: string;
|
|
162
162
|
};
|
|
163
|
+
command: {
|
|
164
|
+
dialogLabel: string;
|
|
165
|
+
inputLabel: string;
|
|
166
|
+
listLabel: string;
|
|
167
|
+
loading: string;
|
|
168
|
+
noResults: string;
|
|
169
|
+
placeholder: string;
|
|
170
|
+
resultsAvailable: (count: number) => string;
|
|
171
|
+
};
|
|
163
172
|
datePicker: {
|
|
164
173
|
datePicker: string;
|
|
165
174
|
openCalendar: string;
|
|
@@ -314,6 +323,7 @@ declare const MONA_PT_BR_LOCALE: {
|
|
|
314
323
|
filterOperator: (column: string, operator: string) => string;
|
|
315
324
|
filterPlaceholder: string;
|
|
316
325
|
group: string;
|
|
326
|
+
groupOptions: (column: string) => string;
|
|
317
327
|
loading: string;
|
|
318
328
|
modified: string;
|
|
319
329
|
moveAsNext: string;
|
|
@@ -160,6 +160,15 @@ declare const MONA_RU_RU_LOCALE: {
|
|
|
160
160
|
comboBox: {
|
|
161
161
|
clear: string;
|
|
162
162
|
};
|
|
163
|
+
command: {
|
|
164
|
+
dialogLabel: string;
|
|
165
|
+
inputLabel: string;
|
|
166
|
+
listLabel: string;
|
|
167
|
+
loading: string;
|
|
168
|
+
noResults: string;
|
|
169
|
+
placeholder: string;
|
|
170
|
+
resultsAvailable: (count: number) => string;
|
|
171
|
+
};
|
|
163
172
|
datePicker: {
|
|
164
173
|
datePicker: string;
|
|
165
174
|
openCalendar: string;
|
|
@@ -314,6 +323,7 @@ declare const MONA_RU_RU_LOCALE: {
|
|
|
314
323
|
filterOperator: (column: string, operator: string) => string;
|
|
315
324
|
filterPlaceholder: string;
|
|
316
325
|
group: string;
|
|
326
|
+
groupOptions: (column: string) => string;
|
|
317
327
|
loading: string;
|
|
318
328
|
modified: string;
|
|
319
329
|
moveAsNext: string;
|
|
@@ -160,6 +160,15 @@ declare const MONA_TR_TR_LOCALE: {
|
|
|
160
160
|
comboBox: {
|
|
161
161
|
clear: string;
|
|
162
162
|
};
|
|
163
|
+
command: {
|
|
164
|
+
dialogLabel: string;
|
|
165
|
+
inputLabel: string;
|
|
166
|
+
listLabel: string;
|
|
167
|
+
loading: string;
|
|
168
|
+
noResults: string;
|
|
169
|
+
placeholder: string;
|
|
170
|
+
resultsAvailable: (count: number) => string;
|
|
171
|
+
};
|
|
163
172
|
datePicker: {
|
|
164
173
|
datePicker: string;
|
|
165
174
|
openCalendar: string;
|
|
@@ -314,6 +323,7 @@ declare const MONA_TR_TR_LOCALE: {
|
|
|
314
323
|
filterOperator: (column: string, operator: string) => string;
|
|
315
324
|
filterPlaceholder: string;
|
|
316
325
|
group: string;
|
|
326
|
+
groupOptions: (column: string) => string;
|
|
317
327
|
loading: string;
|
|
318
328
|
modified: string;
|
|
319
329
|
moveAsNext: string;
|
|
@@ -160,6 +160,15 @@ declare const MONA_ZH_CN_LOCALE: {
|
|
|
160
160
|
comboBox: {
|
|
161
161
|
clear: string;
|
|
162
162
|
};
|
|
163
|
+
command: {
|
|
164
|
+
dialogLabel: string;
|
|
165
|
+
inputLabel: string;
|
|
166
|
+
listLabel: string;
|
|
167
|
+
loading: string;
|
|
168
|
+
noResults: string;
|
|
169
|
+
placeholder: string;
|
|
170
|
+
resultsAvailable: (count: number) => string;
|
|
171
|
+
};
|
|
163
172
|
datePicker: {
|
|
164
173
|
datePicker: string;
|
|
165
174
|
openCalendar: string;
|
|
@@ -314,6 +323,7 @@ declare const MONA_ZH_CN_LOCALE: {
|
|
|
314
323
|
filterOperator: (column: string, operator: string) => string;
|
|
315
324
|
filterPlaceholder: string;
|
|
316
325
|
group: string;
|
|
326
|
+
groupOptions: (column: string) => string;
|
|
317
327
|
loading: string;
|
|
318
328
|
modified: string;
|
|
319
329
|
moveAsNext: string;
|
|
@@ -160,6 +160,15 @@ declare const MONA_ZH_TW_LOCALE: {
|
|
|
160
160
|
comboBox: {
|
|
161
161
|
clear: string;
|
|
162
162
|
};
|
|
163
|
+
command: {
|
|
164
|
+
dialogLabel: string;
|
|
165
|
+
inputLabel: string;
|
|
166
|
+
listLabel: string;
|
|
167
|
+
loading: string;
|
|
168
|
+
noResults: string;
|
|
169
|
+
placeholder: string;
|
|
170
|
+
resultsAvailable: (count: number) => string;
|
|
171
|
+
};
|
|
163
172
|
datePicker: {
|
|
164
173
|
datePicker: string;
|
|
165
174
|
openCalendar: string;
|
|
@@ -314,6 +323,7 @@ declare const MONA_ZH_TW_LOCALE: {
|
|
|
314
323
|
filterOperator: (column: string, operator: string) => string;
|
|
315
324
|
filterPlaceholder: string;
|
|
316
325
|
group: string;
|
|
326
|
+
groupOptions: (column: string) => string;
|
|
317
327
|
loading: string;
|
|
318
328
|
modified: string;
|
|
319
329
|
moveAsNext: string;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as _nanahoshi_mona_ui_popup_menu from '@nanahoshi/mona-ui/popup-menu';
|
|
2
|
-
import { PopupMenuItemClickEvent, MenuItem, PopupMenuComponent, PopupMenuCheckboxItemComponent,
|
|
2
|
+
import { PopupMenuItemClickEvent, MenuItem, PopupMenuComponent, PopupMenuCheckboxItemComponent, PopupMenuGroupComponent, PopupMenuItemComponent, PopupMenuRadioGroupComponent, PopupMenuRadioItemComponent, PopupMenuSeparatorComponent, PopupMenuNavigationEvent, PopupMenuGroupTemplateDirective, PopupMenuIconTemplateDirective, PopupMenuShortcutTemplateDirective, PopupMenuTextTemplateDirective } from '@nanahoshi/mona-ui/popup-menu';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
4
|
import { TemplateRef } from '@angular/core';
|
|
5
|
+
import { PopupMenuOrigin, PopupMenuTemplateOrigin } from '@nanahoshi/mona-ui/internal/popup-menu';
|
|
5
6
|
import { Subject } from 'rxjs';
|
|
6
7
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
7
8
|
import { VariantInputs } from '@nanahoshi/mona-ui/internal';
|
|
@@ -9,6 +10,10 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
9
10
|
|
|
10
11
|
type MenuItemClickEvent = PopupMenuItemClickEvent;
|
|
11
12
|
|
|
13
|
+
/**
|
|
14
|
+
* A top-level menu. Its `text` is displayed on the menubar; its projected items (or `items` input) become the popup
|
|
15
|
+
* content.
|
|
16
|
+
*/
|
|
12
17
|
declare class MenuComponent {
|
|
13
18
|
private readonly menuItemComponents;
|
|
14
19
|
/**
|
|
@@ -69,6 +74,7 @@ declare class MenuRadioItemComponent extends PopupMenuRadioItemComponent {
|
|
|
69
74
|
static ɵcmp: i0.ɵɵComponentDeclaration<MenuRadioItemComponent, "mona-menu-radio-item", never, {}, {}, never, never, true, never>;
|
|
70
75
|
}
|
|
71
76
|
|
|
77
|
+
/** Renders a horizontal visual divider between items. */
|
|
72
78
|
declare class MenuSeparatorComponent extends PopupMenuSeparatorComponent {
|
|
73
79
|
readonly origin = PopupMenuOrigin.MenubarMenu;
|
|
74
80
|
static ɵfac: i0.ɵɵFactoryDeclaration<MenuSeparatorComponent, never>;
|
|
@@ -113,7 +119,7 @@ declare class MenubarComponent implements MenubarVariantInput {
|
|
|
113
119
|
/**
|
|
114
120
|
* @description ARIA labelledby for the menubar.
|
|
115
121
|
*/
|
|
116
|
-
readonly
|
|
122
|
+
readonly ariaLabelledBy: i0.InputSignal<string>;
|
|
117
123
|
/**
|
|
118
124
|
* @description Sets the disabled state of menubar.
|
|
119
125
|
*/
|
|
@@ -160,9 +166,10 @@ declare class MenubarComponent implements MenubarVariantInput {
|
|
|
160
166
|
private setSubscriptions;
|
|
161
167
|
private updateCurrentMenuData;
|
|
162
168
|
static ɵfac: i0.ɵɵFactoryDeclaration<MenubarComponent, never>;
|
|
163
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MenubarComponent, "mona-menubar", never, { "ariaLabel": { "alias": "
|
|
169
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MenubarComponent, "mona-menubar", never, { "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "userClasses": { "alias": "class"; "required": false; "isSignal": true; }; }, { "menuItemClick": "menuItemClick"; }, ["groupTemplate", "iconTemplate", "menuItemIconTemplate", "menuItemShortcutTemplate", "menuItemTextTemplate", "menuList", "textTemplate"], never, true, never>;
|
|
164
170
|
}
|
|
165
171
|
|
|
172
|
+
/** Customizes a group header's content. */
|
|
166
173
|
declare class MenuGroupTemplateDirective extends PopupMenuGroupTemplateDirective {
|
|
167
174
|
readonly origin = PopupMenuTemplateOrigin.MenubarMenu;
|
|
168
175
|
static ɵfac: i0.ɵɵFactoryDeclaration<MenuGroupTemplateDirective, never>;
|