@nanahoshi/mona-ui 0.27.2 → 0.28.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/docs/api/chart.md +2 -2
- package/docs/api/popup.md +1 -1
- package/docs/api/theme.md +2 -2
- package/docs/chart.md +14 -0
- package/docs/editor.md +2 -0
- package/docs/installation.md +147 -15
- package/docs/introduction.md +37 -15
- package/docs/theming-built-in-themes.md +67 -0
- package/docs/theming-custom-colors.md +274 -0
- package/docs/theming-custom-themes.md +168 -0
- package/docs/theming.md +164 -248
- package/fesm2022/nanahoshi-mona-ui-auto-complete.mjs +1089 -603
- package/fesm2022/nanahoshi-mona-ui-avatar.mjs +369 -184
- package/fesm2022/nanahoshi-mona-ui-breadcrumb.mjs +658 -371
- package/fesm2022/nanahoshi-mona-ui-button-group.mjs +513 -359
- package/fesm2022/nanahoshi-mona-ui-button.mjs +622 -517
- package/fesm2022/nanahoshi-mona-ui-calendar.mjs +2070 -1573
- package/fesm2022/nanahoshi-mona-ui-card.mjs +620 -316
- package/fesm2022/nanahoshi-mona-ui-chart.mjs +61151 -64921
- package/fesm2022/nanahoshi-mona-ui-check-box.mjs +646 -317
- package/fesm2022/nanahoshi-mona-ui-chip.mjs +737 -516
- package/fesm2022/nanahoshi-mona-ui-circular-progress-bar.mjs +441 -242
- package/fesm2022/nanahoshi-mona-ui-collapsible.mjs +443 -390
- package/fesm2022/nanahoshi-mona-ui-color-gradient.mjs +1138 -814
- package/fesm2022/nanahoshi-mona-ui-color-palette.mjs +1114 -959
- package/fesm2022/nanahoshi-mona-ui-color-picker.mjs +858 -504
- package/fesm2022/nanahoshi-mona-ui-combo-box.mjs +1181 -742
- package/fesm2022/nanahoshi-mona-ui-command.mjs +1454 -853
- package/fesm2022/nanahoshi-mona-ui-common.mjs +569 -743
- package/fesm2022/nanahoshi-mona-ui-contextmenu.mjs +978 -532
- package/fesm2022/nanahoshi-mona-ui-date-input.mjs +283 -266
- package/fesm2022/nanahoshi-mona-ui-date-picker.mjs +973 -451
- package/fesm2022/nanahoshi-mona-ui-datetime-picker.mjs +1203 -658
- package/fesm2022/nanahoshi-mona-ui-dialog.mjs +1415 -936
- package/fesm2022/nanahoshi-mona-ui-dropdown-button.mjs +1165 -568
- package/fesm2022/nanahoshi-mona-ui-dropdown-list.mjs +1142 -677
- package/fesm2022/nanahoshi-mona-ui-dropdowns.mjs +1018 -734
- package/fesm2022/nanahoshi-mona-ui-editor.mjs +3589 -2122
- package/fesm2022/nanahoshi-mona-ui-expansion-panel.mjs +577 -359
- package/fesm2022/nanahoshi-mona-ui-fieldset.mjs +311 -151
- package/fesm2022/nanahoshi-mona-ui-filter.mjs +1086 -718
- package/fesm2022/nanahoshi-mona-ui-grid-grid-colgroup.component-NhONCVIX.mjs +77 -0
- package/fesm2022/nanahoshi-mona-ui-grid-grid-footer-row.component-Djv8ZnT5.mjs +480 -0
- package/fesm2022/nanahoshi-mona-ui-grid-grid-list.component-WbXAzGCa.mjs +470 -0
- package/fesm2022/nanahoshi-mona-ui-grid-grid-row.component-DkWTD3pN.mjs +2115 -0
- package/fesm2022/nanahoshi-mona-ui-grid-grid-virtual-list.component-DAHqTwBJ.mjs +330 -0
- package/fesm2022/nanahoshi-mona-ui-grid-grid.styles-BmLU-3zP.mjs +3766 -0
- package/fesm2022/nanahoshi-mona-ui-grid.mjs +5418 -2
- package/fesm2022/nanahoshi-mona-ui-i18n-icu.mjs +1379 -1079
- package/fesm2022/nanahoshi-mona-ui-i18n.mjs +4451 -5077
- package/fesm2022/nanahoshi-mona-ui-internal-filter-input.mjs +344 -143
- package/fesm2022/nanahoshi-mona-ui-internal-indicator-icon.mjs +257 -127
- package/fesm2022/nanahoshi-mona-ui-internal-list.mjs +2080 -1829
- package/fesm2022/nanahoshi-mona-ui-internal-popup-menu.mjs +103 -141
- package/fesm2022/nanahoshi-mona-ui-internal-tree.mjs +2498 -2706
- package/fesm2022/nanahoshi-mona-ui-internal.mjs +722 -1007
- package/fesm2022/nanahoshi-mona-ui-label.mjs +313 -202
- package/fesm2022/nanahoshi-mona-ui-list-box.mjs +1308 -1009
- package/fesm2022/nanahoshi-mona-ui-list-view.mjs +1411 -677
- package/fesm2022/nanahoshi-mona-ui-list.mjs +1 -6
- package/fesm2022/nanahoshi-mona-ui-locales-ar-sa.mjs +556 -577
- package/fesm2022/nanahoshi-mona-ui-locales-de-de.mjs +530 -573
- package/fesm2022/nanahoshi-mona-ui-locales-es-es.mjs +530 -573
- package/fesm2022/nanahoshi-mona-ui-locales-fr-fr.mjs +533 -576
- package/fesm2022/nanahoshi-mona-ui-locales-id-id.mjs +520 -555
- package/fesm2022/nanahoshi-mona-ui-locales-it-it.mjs +530 -571
- package/fesm2022/nanahoshi-mona-ui-locales-ja-jp.mjs +520 -555
- package/fesm2022/nanahoshi-mona-ui-locales-ko-kr.mjs +520 -555
- package/fesm2022/nanahoshi-mona-ui-locales-pt-br.mjs +530 -571
- package/fesm2022/nanahoshi-mona-ui-locales-ru-ru.mjs +576 -591
- package/fesm2022/nanahoshi-mona-ui-locales-tr-tr.mjs +530 -565
- package/fesm2022/nanahoshi-mona-ui-locales-zh-cn.mjs +520 -555
- package/fesm2022/nanahoshi-mona-ui-locales-zh-tw.mjs +520 -555
- package/fesm2022/nanahoshi-mona-ui-locales.mjs +59 -77
- package/fesm2022/nanahoshi-mona-ui-menubar.mjs +1411 -829
- package/fesm2022/nanahoshi-mona-ui-multi-select.mjs +1326 -702
- package/fesm2022/nanahoshi-mona-ui-notification.mjs +763 -675
- package/fesm2022/nanahoshi-mona-ui-numeric-text-box.mjs +1306 -826
- package/fesm2022/nanahoshi-mona-ui-otp-input.mjs +1122 -897
- package/fesm2022/nanahoshi-mona-ui-pager.mjs +1110 -651
- package/fesm2022/nanahoshi-mona-ui-placeholder.mjs +95 -53
- package/fesm2022/nanahoshi-mona-ui-popover.mjs +559 -397
- package/fesm2022/nanahoshi-mona-ui-popup-menu.mjs +2323 -1694
- package/fesm2022/nanahoshi-mona-ui-popup.mjs +1657 -1455
- package/fesm2022/nanahoshi-mona-ui-progress-bar.mjs +441 -267
- package/fesm2022/nanahoshi-mona-ui-query.mjs +211 -340
- package/fesm2022/nanahoshi-mona-ui-radio-button.mjs +1017 -548
- package/fesm2022/nanahoshi-mona-ui-rating.mjs +874 -624
- package/fesm2022/nanahoshi-mona-ui-scroll-view.mjs +1130 -917
- package/fesm2022/nanahoshi-mona-ui-segmented.mjs +705 -455
- package/fesm2022/nanahoshi-mona-ui-sheet.mjs +461 -283
- package/fesm2022/nanahoshi-mona-ui-sidebar.mjs +2791 -2449
- package/fesm2022/nanahoshi-mona-ui-skeleton.mjs +145 -90
- package/fesm2022/nanahoshi-mona-ui-slider.mjs +1563 -1103
- package/fesm2022/nanahoshi-mona-ui-spinner.mjs +738 -673
- package/fesm2022/nanahoshi-mona-ui-split-button.mjs +1287 -647
- package/fesm2022/nanahoshi-mona-ui-splitter.mjs +1313 -909
- package/fesm2022/nanahoshi-mona-ui-stepper.mjs +761 -540
- package/fesm2022/nanahoshi-mona-ui-switch.mjs +611 -280
- package/fesm2022/nanahoshi-mona-ui-tabs.mjs +1393 -841
- package/fesm2022/nanahoshi-mona-ui-text-area.mjs +142 -73
- package/fesm2022/nanahoshi-mona-ui-text-box.mjs +876 -374
- package/fesm2022/nanahoshi-mona-ui-theme.mjs +1465 -1449
- package/fesm2022/nanahoshi-mona-ui-time-picker.mjs +897 -443
- package/fesm2022/nanahoshi-mona-ui-time-selector.mjs +1100 -703
- package/fesm2022/nanahoshi-mona-ui-tooltip.mjs +789 -538
- package/fesm2022/nanahoshi-mona-ui-tree-view.mjs +1361 -805
- package/fesm2022/nanahoshi-mona-ui-window.mjs +2145 -1531
- package/fesm2022/nanahoshi-mona-ui.mjs +1 -8
- package/llms.txt +6 -2
- package/package.json +62 -23
- package/types/nanahoshi-mona-ui-auto-complete.d.ts +367 -233
- package/types/nanahoshi-mona-ui-avatar.d.ts +722 -649
- package/types/nanahoshi-mona-ui-breadcrumb.d.ts +134 -103
- package/types/nanahoshi-mona-ui-button-group.d.ts +213 -152
- package/types/nanahoshi-mona-ui-button.d.ts +227 -166
- package/types/nanahoshi-mona-ui-calendar.d.ts +324 -259
- package/types/nanahoshi-mona-ui-card.d.ts +125 -111
- package/types/nanahoshi-mona-ui-chart.d.ts +10483 -7326
- package/types/nanahoshi-mona-ui-check-box.d.ts +293 -180
- package/types/nanahoshi-mona-ui-chip.d.ts +208 -141
- package/types/nanahoshi-mona-ui-circular-progress-bar.d.ts +194 -133
- package/types/nanahoshi-mona-ui-collapsible.d.ts +103 -87
- package/types/nanahoshi-mona-ui-color-gradient.d.ts +281 -213
- package/types/nanahoshi-mona-ui-color-palette.d.ts +201 -138
- package/types/nanahoshi-mona-ui-color-picker.d.ts +283 -194
- package/types/nanahoshi-mona-ui-combo-box.d.ts +401 -262
- package/types/nanahoshi-mona-ui-command.d.ts +279 -191
- package/types/nanahoshi-mona-ui-common.d.ts +354 -385
- package/types/nanahoshi-mona-ui-contextmenu.d.ts +142 -117
- package/types/nanahoshi-mona-ui-date-input.d.ts +79 -96
- package/types/nanahoshi-mona-ui-date-picker.d.ts +338 -208
- package/types/nanahoshi-mona-ui-datetime-picker.d.ts +413 -259
- package/types/nanahoshi-mona-ui-dialog.d.ts +470 -381
- package/types/nanahoshi-mona-ui-dropdown-button.d.ts +216 -168
- package/types/nanahoshi-mona-ui-dropdown-list.d.ts +369 -243
- package/types/nanahoshi-mona-ui-dropdowns.d.ts +231 -217
- package/types/nanahoshi-mona-ui-editor.d.ts +302 -235
- package/types/nanahoshi-mona-ui-expansion-panel.d.ts +140 -109
- package/types/nanahoshi-mona-ui-fieldset.d.ts +98 -68
- package/types/nanahoshi-mona-ui-filter.d.ts +150 -124
- package/types/nanahoshi-mona-ui-grid.d.ts +1956 -1678
- package/types/nanahoshi-mona-ui-i18n-icu.d.ts +25 -34
- package/types/nanahoshi-mona-ui-i18n.d.ts +987 -1052
- package/types/nanahoshi-mona-ui-internal-filter-input.d.ts +118 -71
- package/types/nanahoshi-mona-ui-internal-indicator-icon.d.ts +56 -27
- package/types/nanahoshi-mona-ui-internal-list.d.ts +474 -408
- package/types/nanahoshi-mona-ui-internal-popup-menu.d.ts +143 -150
- package/types/nanahoshi-mona-ui-internal-tree.d.ts +493 -506
- package/types/nanahoshi-mona-ui-internal.d.ts +195 -213
- package/types/nanahoshi-mona-ui-label.d.ts +108 -78
- package/types/nanahoshi-mona-ui-list-box.d.ts +392 -322
- package/types/nanahoshi-mona-ui-list-view.d.ts +423 -282
- package/types/nanahoshi-mona-ui-list.d.ts +2 -1
- package/types/nanahoshi-mona-ui-locales-ar-sa.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-de-de.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-es-es.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-fr-fr.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-id-id.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-it-it.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-ja-jp.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-ko-kr.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-pt-br.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-ru-ru.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-tr-tr.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-zh-cn.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-zh-tw.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales.d.ts +17 -19
- package/types/nanahoshi-mona-ui-menubar.d.ts +210 -181
- package/types/nanahoshi-mona-ui-multi-select.d.ts +416 -276
- package/types/nanahoshi-mona-ui-notification.d.ts +140 -151
- package/types/nanahoshi-mona-ui-numeric-text-box.d.ts +407 -270
- package/types/nanahoshi-mona-ui-otp-input.d.ts +364 -241
- package/types/nanahoshi-mona-ui-pager.d.ts +379 -301
- package/types/nanahoshi-mona-ui-placeholder.d.ts +35 -28
- package/types/nanahoshi-mona-ui-popover.d.ts +176 -134
- package/types/nanahoshi-mona-ui-popup-menu.d.ts +488 -344
- package/types/nanahoshi-mona-ui-popup.d.ts +698 -560
- package/types/nanahoshi-mona-ui-progress-bar.d.ts +197 -137
- package/types/nanahoshi-mona-ui-query.d.ts +82 -88
- package/types/nanahoshi-mona-ui-radio-button.d.ts +434 -269
- package/types/nanahoshi-mona-ui-rating.d.ts +348 -254
- package/types/nanahoshi-mona-ui-scroll-view.d.ts +244 -172
- package/types/nanahoshi-mona-ui-segmented.d.ts +250 -175
- package/types/nanahoshi-mona-ui-sheet.d.ts +115 -63
- package/types/nanahoshi-mona-ui-sidebar.d.ts +653 -493
- package/types/nanahoshi-mona-ui-skeleton.d.ts +55 -39
- package/types/nanahoshi-mona-ui-slider.d.ts +503 -354
- package/types/nanahoshi-mona-ui-spinner.d.ts +125 -112
- package/types/nanahoshi-mona-ui-split-button.d.ts +241 -196
- package/types/nanahoshi-mona-ui-splitter.d.ts +124 -78
- package/types/nanahoshi-mona-ui-stepper.d.ts +206 -181
- package/types/nanahoshi-mona-ui-switch.d.ts +197 -131
- package/types/nanahoshi-mona-ui-tabs.d.ts +349 -248
- package/types/nanahoshi-mona-ui-text-area.d.ts +52 -36
- package/types/nanahoshi-mona-ui-text-box.d.ts +349 -218
- package/types/nanahoshi-mona-ui-theme.d.ts +415 -408
- package/types/nanahoshi-mona-ui-time-picker.d.ts +357 -217
- package/types/nanahoshi-mona-ui-time-selector.d.ts +255 -170
- package/types/nanahoshi-mona-ui-tooltip.d.ts +222 -144
- package/types/nanahoshi-mona-ui-tree-view.d.ts +466 -308
- package/types/nanahoshi-mona-ui-window.d.ts +494 -399
- package/types/nanahoshi-mona-ui.d.ts +1 -2
- package/fesm2022/nanahoshi-mona-ui-grid-grid-footer-row.component-DjNnVxHE.mjs +0 -181
- package/fesm2022/nanahoshi-mona-ui-grid-grid-list.component-ihQIKeP-.mjs +0 -208
- package/fesm2022/nanahoshi-mona-ui-grid-grid-row.component-BpnybNcs.mjs +0 -1082
- package/fesm2022/nanahoshi-mona-ui-grid-grid-virtual-list.component-CYlgfc7c.mjs +0 -186
- package/fesm2022/nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-LCzfCYd3.mjs +0 -7568
|
@@ -1,43 +1,38 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import { VariantProps } from 'class-variance-authority';
|
|
10
|
-
import { VariantInputs } from '@nanahoshi/mona-ui/internal';
|
|
11
|
-
|
|
1
|
+
import { MenuItem, MenuItem as MenuItem$1, PopupMenuConfig, PopupMenuItem, PopupMenuItem as PopupMenuItem$1, PopupMenuItemClickEvent, PopupMenuItemClickEvent as PopupMenuItemClickEvent$1, PopupMenuItemType, PopupMenuOrigin, PopupMenuTemplateOrigin, PopupMenuTemplateType, PopupTemplateConfig } from "@nanahoshi/mona-ui/internal/popup-menu";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import { ElementRef, OnInit, TemplateRef } from "@angular/core";
|
|
4
|
+
import { ClassInputType, PreventableEvent } from "@nanahoshi/mona-ui/common";
|
|
5
|
+
import { ConnectionPoint, PopupCloseEvent, PopupOffset } from "@nanahoshi/mona-ui/popup";
|
|
6
|
+
import "rxjs";
|
|
7
|
+
import { VariantProps } from "class-variance-authority";
|
|
8
|
+
import { VariantInputs } from "@nanahoshi/mona-ui/internal";
|
|
12
9
|
/** A run of consecutive menu items that share a group key. */
|
|
13
10
|
interface PopupMenuItemGroup {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
11
|
+
readonly items: readonly PopupMenuItem$1[];
|
|
12
|
+
readonly key: string | symbol;
|
|
13
|
+
/** The id of the group's title element, when it has a title. */
|
|
14
|
+
readonly labelId: string;
|
|
15
|
+
/** The group's title: a string key, or a symbol key's description. Empty for ungrouped items. */
|
|
16
|
+
readonly title: string;
|
|
20
17
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
constructor(originalEvent?: PopupCloseEvent);
|
|
18
|
+
export declare class PopupMenuCloseEvent extends PreventableEvent {
|
|
19
|
+
constructor(originalEvent?: PopupCloseEvent);
|
|
24
20
|
}
|
|
25
|
-
|
|
26
21
|
declare const popupMenuBaseThemeVariants: (props?: ({
|
|
27
|
-
|
|
28
|
-
} &
|
|
22
|
+
rounded?: "small" | "medium" | "large" | "none" | null | undefined;
|
|
23
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
29
24
|
declare const popupMenuContainerThemeVariants: (props?: ({
|
|
30
|
-
|
|
31
|
-
} &
|
|
25
|
+
rounded?: "small" | "medium" | "large" | "none" | null | undefined;
|
|
26
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
32
27
|
declare const popupMenuGroupHeaderThemeVariants: (props?: ({
|
|
33
|
-
|
|
34
|
-
} &
|
|
35
|
-
declare const popupMenuIconContainerThemeVariants: (props?:
|
|
28
|
+
size?: "small" | "medium" | "large" | null | undefined;
|
|
29
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
30
|
+
declare const popupMenuIconContainerThemeVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
36
31
|
declare const popupMenuItemThemeVariants: (props?: ({
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
} &
|
|
40
|
-
declare const popupMenuLinkThemeVariants: (props?:
|
|
32
|
+
rounded?: "small" | "medium" | "large" | "none" | null | undefined;
|
|
33
|
+
size?: "small" | "medium" | "large" | null | undefined;
|
|
34
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
35
|
+
declare const popupMenuLinkThemeVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
41
36
|
type PopupMenuBaseVariantProps = VariantProps<typeof popupMenuBaseThemeVariants>;
|
|
42
37
|
type PopupMenuContainerVariantProps = VariantProps<typeof popupMenuContainerThemeVariants>;
|
|
43
38
|
type PopupMenuGroupHeaderVariantProps = VariantProps<typeof popupMenuGroupHeaderThemeVariants>;
|
|
@@ -46,333 +41,482 @@ type PopupMenuItemVariantProps = VariantProps<typeof popupMenuItemThemeVariants>
|
|
|
46
41
|
type PopupMenuLinkVariantProps = VariantProps<typeof popupMenuLinkThemeVariants>;
|
|
47
42
|
type PopupMenuVariantProps = PopupMenuBaseVariantProps & PopupMenuContainerVariantProps & PopupMenuGroupHeaderVariantProps & PopupMenuIconContainerVariantProps & PopupMenuItemVariantProps & PopupMenuLinkVariantProps;
|
|
48
43
|
type PopupMenuVariantInput = VariantInputs<PopupMenuVariantProps>;
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
level: number;
|
|
44
|
+
export interface PopupMenuNavigationEvent {
|
|
45
|
+
direction: "up" | "down" | "left" | "right";
|
|
46
|
+
item: PopupMenuItem$1 | null;
|
|
47
|
+
level: number;
|
|
54
48
|
}
|
|
55
|
-
|
|
56
49
|
/** The item a menu opened from the keyboard highlights first. */
|
|
57
50
|
type PopupMenuInitialFocus = "first" | "last";
|
|
58
|
-
|
|
59
51
|
/**
|
|
60
52
|
* What opens a popup menu: a click on the target, a right-click on it, or `"none"` to open it only through
|
|
61
53
|
* `openMenu()`.
|
|
62
54
|
*/
|
|
63
|
-
type PopupMenuTrigger = "click" | "contextmenu" | "none";
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
55
|
+
export type PopupMenuTrigger = "click" | "contextmenu" | "none";
|
|
56
|
+
export declare class PopupMenuComponent implements PopupMenuVariantInput {
|
|
57
|
+
#private;
|
|
58
|
+
private readonly groupTemplateConfig;
|
|
59
|
+
private readonly iconTemplateConfig;
|
|
60
|
+
private readonly nestedComponents;
|
|
61
|
+
private readonly shortcutTemplateConfig;
|
|
62
|
+
private readonly textTemplateConfig;
|
|
63
|
+
protected readonly menuItems: import("@angular/core").Signal<PopupMenuItemGroup[]>;
|
|
64
|
+
/**
|
|
65
|
+
* @description The element to position the menu against, when it isn't the `target`.
|
|
66
|
+
* Ignored when `openAtPointer` is set.
|
|
67
|
+
*/
|
|
68
|
+
readonly anchor: import("@angular/core").InputSignal<Element | ElementRef<HTMLElement> | undefined>;
|
|
69
|
+
/**
|
|
70
|
+
* @description The point on the anchor that the menu attaches to.
|
|
71
|
+
* Ignored when `openAtPointer` is set.
|
|
72
|
+
*/
|
|
73
|
+
readonly anchorConnectionPoint: import("@angular/core").InputSignal<ConnectionPoint | null | undefined>;
|
|
74
|
+
/**
|
|
75
|
+
* @description The accessible name of the root menu. Takes precedence over `aria-labelledby`.
|
|
76
|
+
*/
|
|
77
|
+
readonly ariaLabel: import("@angular/core").InputSignal<string>;
|
|
78
|
+
/**
|
|
79
|
+
* @description The ids of the elements that name the root menu. When neither this nor `aria-label` is set, the
|
|
80
|
+
* menu is named by the target element if it has an id.
|
|
81
|
+
*/
|
|
82
|
+
readonly ariaLabelledBy: import("@angular/core").InputSignal<string>;
|
|
83
|
+
/**
|
|
84
|
+
* @description The event that is emitted when the popup menu is closed.
|
|
85
|
+
*/
|
|
86
|
+
readonly close: import("@angular/core").OutputEmitterRef<PopupMenuCloseEvent>;
|
|
87
|
+
/**
|
|
88
|
+
* @description The items to render in the popup menu.
|
|
89
|
+
* If provided, it will override the menu items defined by projected menu item components.
|
|
90
|
+
*/
|
|
91
|
+
readonly items: import("@angular/core").InputSignal<Iterable<PopupMenuItem$1 | MenuItem$1>>;
|
|
92
|
+
/**
|
|
93
|
+
* @description The event that is emitted when a menu item is clicked.
|
|
94
|
+
*/
|
|
95
|
+
readonly menuClick: import("@angular/core").OutputEmitterRef<PopupMenuItemClickEvent$1>;
|
|
96
|
+
/**
|
|
97
|
+
* @description The id of the popup menu's root element.
|
|
98
|
+
*/
|
|
99
|
+
readonly menuId: import("@angular/core").InputSignal<string>;
|
|
100
|
+
/**
|
|
101
|
+
* @description Sets the minimum width of the popup menu.
|
|
102
|
+
* This will be applied to the root menu and all submenus.
|
|
103
|
+
*/
|
|
104
|
+
readonly minWidth: import("@angular/core").InputSignal<string | number | undefined>;
|
|
105
|
+
/**
|
|
106
|
+
* @description Emitted when an arrow key moves through the menu, or tries to leave it.
|
|
107
|
+
*/
|
|
108
|
+
readonly navigate: import("@angular/core").OutputEmitterRef<PopupMenuNavigationEvent>;
|
|
109
|
+
/**
|
|
110
|
+
* @description The distance between the menu and its anchor.
|
|
111
|
+
*/
|
|
112
|
+
readonly offset: import("@angular/core").InputSignal<PopupOffset | undefined>;
|
|
113
|
+
/**
|
|
114
|
+
* @description The event that is emitted when the popup menu is opened.
|
|
115
|
+
*/
|
|
116
|
+
readonly open: import("@angular/core").OutputEmitterRef<void>;
|
|
117
|
+
/**
|
|
118
|
+
* @description Opens the menu where the pointer is, instead of against the `anchor` or `target`. Opened from the
|
|
119
|
+
* keyboard, it opens at the center of the target.
|
|
120
|
+
*/
|
|
121
|
+
readonly openAtPointer: import("@angular/core").InputSignal<boolean>;
|
|
122
|
+
/**
|
|
123
|
+
* @description The point on the menu that attaches to the anchor.
|
|
124
|
+
* Ignored when `openAtPointer` is set.
|
|
125
|
+
*/
|
|
126
|
+
readonly popupConnectionPoint: import("@angular/core").InputSignal<ConnectionPoint | null | undefined>;
|
|
127
|
+
/**
|
|
128
|
+
* @description Sets the border radius of the popup menu.
|
|
129
|
+
* This will be applied to the root menu and all submenus.
|
|
130
|
+
*/
|
|
131
|
+
readonly rounded: import("@angular/core").InputSignal<"small" | "medium" | "large" | "none" | null | undefined>;
|
|
132
|
+
/**
|
|
133
|
+
* @description Sets the size of the popup menu.
|
|
134
|
+
* This will be applied to the root menu and all submenus.
|
|
135
|
+
*/
|
|
136
|
+
readonly size: import("@angular/core").InputSignal<"small" | "medium" | "large" | null | undefined>;
|
|
137
|
+
/**
|
|
138
|
+
* @description The element that opens the menu. The menu is positioned against it unless `anchor` is set.
|
|
139
|
+
*/
|
|
140
|
+
readonly target: import("@angular/core").InputSignal<Element | ElementRef<HTMLElement>>;
|
|
141
|
+
/**
|
|
142
|
+
* @description What opens the menu: a click on the target, a right-click on it, or `"none"` to open it only
|
|
143
|
+
* through `openMenu()`.
|
|
144
|
+
*/
|
|
145
|
+
readonly trigger: import("@angular/core").InputSignal<PopupMenuTrigger>;
|
|
146
|
+
/**
|
|
147
|
+
* @description Extra classes for the menu's popup.
|
|
148
|
+
*/
|
|
149
|
+
readonly userClass: import("@angular/core").InputSignalWithTransform<string | undefined, ClassInputType>;
|
|
150
|
+
/**
|
|
151
|
+
* @description Sets the width of the popup menu.
|
|
152
|
+
* This will be applied to the root menu and all submenus.
|
|
153
|
+
*/
|
|
154
|
+
readonly width: import("@angular/core").InputSignal<string | number | undefined>;
|
|
155
|
+
constructor();
|
|
156
|
+
/**
|
|
157
|
+
* @description Keeps focus where it is when the open menu closes, instead of returning it to the element that
|
|
158
|
+
* had it before the menu opened. Used when another menu takes over, as in a menubar.
|
|
159
|
+
*/
|
|
160
|
+
clearFocusRestoration(): void;
|
|
161
|
+
/**
|
|
162
|
+
* @description Closes the menu. Focus returns to the element that had it before the menu opened, unless focus
|
|
163
|
+
* has already moved elsewhere.
|
|
164
|
+
*/
|
|
165
|
+
closeMenu(): void;
|
|
166
|
+
/**
|
|
167
|
+
* @description Opens the menu, as if the target had been clicked.
|
|
168
|
+
* @param viaContextMenuKey Whether the menu opens from the ContextMenu key or Shift+F10.
|
|
169
|
+
*/
|
|
170
|
+
openMenu(viaContextMenuKey?: boolean): void;
|
|
171
|
+
/**
|
|
172
|
+
* @description Opens the menu as the keyboard does, with its first (or last) item highlighted.
|
|
173
|
+
* @param viaContextMenuKey Whether the menu opens from the ContextMenu key or Shift+F10.
|
|
174
|
+
* @param focus The item to highlight: "first" (ArrowDown, Enter, Space) or "last" (ArrowUp).
|
|
175
|
+
*/
|
|
176
|
+
openMenuViaKeyboard(viaContextMenuKey?: boolean, focus?: PopupMenuInitialFocus): void;
|
|
177
|
+
/**
|
|
178
|
+
* @deprecated Focus now returns to the element that had it before the menu opened after every close.
|
|
179
|
+
*/
|
|
180
|
+
setRestoreFocusForKeyboard(): void;
|
|
181
|
+
private closeFromList;
|
|
182
|
+
private createMenu;
|
|
183
|
+
private getPopupAnchor;
|
|
184
|
+
private openFor;
|
|
185
|
+
private restoreFocus;
|
|
186
|
+
private setMenuItemClickSubscription;
|
|
187
|
+
private setNavigationSubscription;
|
|
188
|
+
private setTriggerSubscription;
|
|
189
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PopupMenuComponent, never>;
|
|
190
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PopupMenuComponent, "mona-popup-menu", never, {
|
|
191
|
+
"anchor": {
|
|
192
|
+
"alias": "anchor";
|
|
193
|
+
"required": false;
|
|
194
|
+
"isSignal": true;
|
|
195
|
+
};
|
|
196
|
+
"anchorConnectionPoint": {
|
|
197
|
+
"alias": "anchorConnectionPoint";
|
|
198
|
+
"required": false;
|
|
199
|
+
"isSignal": true;
|
|
200
|
+
};
|
|
201
|
+
"ariaLabel": {
|
|
202
|
+
"alias": "aria-label";
|
|
203
|
+
"required": false;
|
|
204
|
+
"isSignal": true;
|
|
205
|
+
};
|
|
206
|
+
"ariaLabelledBy": {
|
|
207
|
+
"alias": "aria-labelledby";
|
|
208
|
+
"required": false;
|
|
209
|
+
"isSignal": true;
|
|
210
|
+
};
|
|
211
|
+
"items": {
|
|
212
|
+
"alias": "items";
|
|
213
|
+
"required": false;
|
|
214
|
+
"isSignal": true;
|
|
215
|
+
};
|
|
216
|
+
"menuId": {
|
|
217
|
+
"alias": "id";
|
|
218
|
+
"required": false;
|
|
219
|
+
"isSignal": true;
|
|
220
|
+
};
|
|
221
|
+
"minWidth": {
|
|
222
|
+
"alias": "minWidth";
|
|
223
|
+
"required": false;
|
|
224
|
+
"isSignal": true;
|
|
225
|
+
};
|
|
226
|
+
"offset": {
|
|
227
|
+
"alias": "offset";
|
|
228
|
+
"required": false;
|
|
229
|
+
"isSignal": true;
|
|
230
|
+
};
|
|
231
|
+
"openAtPointer": {
|
|
232
|
+
"alias": "openAtPointer";
|
|
233
|
+
"required": false;
|
|
234
|
+
"isSignal": true;
|
|
235
|
+
};
|
|
236
|
+
"popupConnectionPoint": {
|
|
237
|
+
"alias": "popupConnectionPoint";
|
|
238
|
+
"required": false;
|
|
239
|
+
"isSignal": true;
|
|
240
|
+
};
|
|
241
|
+
"rounded": {
|
|
242
|
+
"alias": "rounded";
|
|
243
|
+
"required": false;
|
|
244
|
+
"isSignal": true;
|
|
245
|
+
};
|
|
246
|
+
"size": {
|
|
247
|
+
"alias": "size";
|
|
248
|
+
"required": false;
|
|
249
|
+
"isSignal": true;
|
|
250
|
+
};
|
|
251
|
+
"target": {
|
|
252
|
+
"alias": "target";
|
|
253
|
+
"required": true;
|
|
254
|
+
"isSignal": true;
|
|
255
|
+
};
|
|
256
|
+
"trigger": {
|
|
257
|
+
"alias": "trigger";
|
|
258
|
+
"required": false;
|
|
259
|
+
"isSignal": true;
|
|
260
|
+
};
|
|
261
|
+
"userClass": {
|
|
262
|
+
"alias": "class";
|
|
263
|
+
"required": false;
|
|
264
|
+
"isSignal": true;
|
|
265
|
+
};
|
|
266
|
+
"width": {
|
|
267
|
+
"alias": "width";
|
|
268
|
+
"required": false;
|
|
269
|
+
"isSignal": true;
|
|
270
|
+
};
|
|
271
|
+
}, {
|
|
272
|
+
"close": "close";
|
|
273
|
+
"menuClick": "menuClick";
|
|
274
|
+
"navigate": "navigate";
|
|
275
|
+
"open": "open";
|
|
276
|
+
}, ["groupTemplateConfig", "iconTemplateConfig", "nestedComponents", "shortcutTemplateConfig", "textTemplateConfig"], never, true, never>;
|
|
200
277
|
}
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
278
|
+
export declare class PopupMenuCheckboxItemComponent implements PopupMenuConfig, OnInit {
|
|
279
|
+
#private;
|
|
280
|
+
protected readonly shortcutTemplateConfig: import("@angular/core").Signal<import("@nanahoshi/mona-ui/internal/popup-menu").PopupTemplateConfig | undefined>;
|
|
281
|
+
protected readonly textTemplateConfig: import("@angular/core").Signal<import("@nanahoshi/mona-ui/internal/popup-menu").PopupTemplateConfig | undefined>;
|
|
282
|
+
/**
|
|
283
|
+
* @description The checked state of the menu item. Activating the item toggles it (unless its `menuClick` is
|
|
284
|
+
* prevented) and emits `checkedChange`, so it works with or without a two-way binding.
|
|
285
|
+
*/
|
|
286
|
+
readonly checked: import("@angular/core").ModelSignal<boolean>;
|
|
287
|
+
/**
|
|
288
|
+
* @description Sets the disabled state of the menu item.
|
|
289
|
+
*/
|
|
290
|
+
readonly disabled: import("@angular/core").InputSignal<boolean>;
|
|
291
|
+
/**
|
|
292
|
+
* @description The text of the menu item.
|
|
293
|
+
*/
|
|
294
|
+
readonly label: import("@angular/core").InputSignal<string>;
|
|
295
|
+
/**
|
|
296
|
+
* @description The click event of the menu item.
|
|
297
|
+
* Emits when the menu item is selected by keyboard or mouse.
|
|
298
|
+
*/
|
|
299
|
+
readonly menuClick: import("@angular/core").OutputEmitterRef<PopupMenuItemClickEvent$1>;
|
|
300
|
+
readonly origin: PopupMenuOrigin;
|
|
301
|
+
readonly type = PopupMenuItemType.CheckboxMenuItem;
|
|
302
|
+
/**
|
|
303
|
+
* @description A value that identifies the item. It's the `value` of the item's `menuClick` events.
|
|
304
|
+
*/
|
|
305
|
+
readonly value: import("@angular/core").InputSignal<unknown>;
|
|
306
|
+
getPopupMenuItem(): PopupMenuItem$1[];
|
|
307
|
+
ngOnInit(): void;
|
|
308
|
+
private setSubscriptions;
|
|
309
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PopupMenuCheckboxItemComponent, never>;
|
|
310
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PopupMenuCheckboxItemComponent, "mona-popup-menu-checkbox-item", never, {
|
|
311
|
+
"checked": {
|
|
312
|
+
"alias": "checked";
|
|
313
|
+
"required": false;
|
|
314
|
+
"isSignal": true;
|
|
315
|
+
};
|
|
316
|
+
"disabled": {
|
|
317
|
+
"alias": "disabled";
|
|
318
|
+
"required": false;
|
|
319
|
+
"isSignal": true;
|
|
320
|
+
};
|
|
321
|
+
"label": {
|
|
322
|
+
"alias": "label";
|
|
323
|
+
"required": false;
|
|
324
|
+
"isSignal": true;
|
|
325
|
+
};
|
|
326
|
+
"value": {
|
|
327
|
+
"alias": "value";
|
|
328
|
+
"required": false;
|
|
329
|
+
"isSignal": true;
|
|
330
|
+
};
|
|
331
|
+
}, {
|
|
332
|
+
"checked": "checkedChange";
|
|
333
|
+
"menuClick": "menuClick";
|
|
334
|
+
}, ["shortcutTemplateConfig", "textTemplateConfig"], never, true, never>;
|
|
235
335
|
}
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
336
|
+
export declare class PopupMenuItemComponent implements PopupMenuConfig, OnInit {
|
|
337
|
+
#private;
|
|
338
|
+
protected readonly iconTemplateConfig: import("@angular/core").Signal<import("@nanahoshi/mona-ui/internal/popup-menu").PopupTemplateConfig | undefined>;
|
|
339
|
+
protected readonly items: import("@angular/core").Signal<readonly PopupMenuConfig[]>;
|
|
340
|
+
protected readonly shortcutTemplateConfig: import("@angular/core").Signal<import("@nanahoshi/mona-ui/internal/popup-menu").PopupTemplateConfig | undefined>;
|
|
341
|
+
protected readonly textTemplateConfig: import("@angular/core").Signal<import("@nanahoshi/mona-ui/internal/popup-menu").PopupTemplateConfig | undefined>;
|
|
342
|
+
/**
|
|
343
|
+
* @description Sets the disabled state of the menu item.
|
|
344
|
+
*/
|
|
345
|
+
readonly disabled: import("@angular/core").InputSignal<boolean>;
|
|
346
|
+
/**
|
|
347
|
+
* @description The text of the menu item.
|
|
348
|
+
*/
|
|
349
|
+
readonly label: import("@angular/core").InputSignal<string>;
|
|
350
|
+
/**
|
|
351
|
+
* @description The click event of the menu item.
|
|
352
|
+
* Emits when the menu item is selected by keyboard or mouse.
|
|
353
|
+
*/
|
|
354
|
+
readonly menuClick: import("@angular/core").OutputEmitterRef<PopupMenuItemClickEvent$1>;
|
|
355
|
+
readonly origin: PopupMenuOrigin;
|
|
356
|
+
readonly type: PopupMenuItemType;
|
|
357
|
+
/**
|
|
358
|
+
* @description A value that identifies the item. It's the `value` of the item's `menuClick` events, so
|
|
359
|
+
* handlers don't depend on the label's text.
|
|
360
|
+
*/
|
|
361
|
+
readonly value: import("@angular/core").InputSignal<unknown>;
|
|
362
|
+
getPopupMenuItem(): PopupMenuItem$1[];
|
|
363
|
+
ngOnInit(): void;
|
|
364
|
+
private setSubscriptions;
|
|
365
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PopupMenuItemComponent, never>;
|
|
366
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PopupMenuItemComponent, "mona-popup-menu-item", never, {
|
|
367
|
+
"disabled": {
|
|
368
|
+
"alias": "disabled";
|
|
369
|
+
"required": false;
|
|
370
|
+
"isSignal": true;
|
|
371
|
+
};
|
|
372
|
+
"label": {
|
|
373
|
+
"alias": "label";
|
|
374
|
+
"required": false;
|
|
375
|
+
"isSignal": true;
|
|
376
|
+
};
|
|
377
|
+
"value": {
|
|
378
|
+
"alias": "value";
|
|
379
|
+
"required": false;
|
|
380
|
+
"isSignal": true;
|
|
381
|
+
};
|
|
382
|
+
}, {
|
|
383
|
+
"menuClick": "menuClick";
|
|
384
|
+
}, ["iconTemplateConfig", "items", "shortcutTemplateConfig", "textTemplateConfig"], never, true, never>;
|
|
268
385
|
}
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
386
|
+
export declare class PopupMenuGroupComponent implements PopupMenuConfig {
|
|
387
|
+
#private;
|
|
388
|
+
protected readonly groupTemplateConfig: import("@angular/core").Signal<import("@nanahoshi/mona-ui/internal/popup-menu").PopupTemplateConfig | undefined>;
|
|
389
|
+
protected readonly items: import("@angular/core").Signal<readonly PopupMenuConfig[]>;
|
|
390
|
+
readonly origin: PopupMenuOrigin;
|
|
391
|
+
/**
|
|
392
|
+
* @description Sets the title of the menu group.
|
|
393
|
+
*/
|
|
394
|
+
readonly title: import("@angular/core").InputSignal<string | undefined>;
|
|
395
|
+
readonly type = PopupMenuItemType.MenuGroup;
|
|
396
|
+
getPopupMenuItem(): PopupMenuItem$1[];
|
|
397
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PopupMenuGroupComponent, never>;
|
|
398
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PopupMenuGroupComponent, "mona-popup-menu-group", never, {
|
|
399
|
+
"title": {
|
|
400
|
+
"alias": "title";
|
|
401
|
+
"required": false;
|
|
402
|
+
"isSignal": true;
|
|
403
|
+
};
|
|
404
|
+
}, {}, ["groupTemplateConfig", "items"], never, true, never>;
|
|
283
405
|
}
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
406
|
+
export declare class PopupMenuRadioGroupComponent implements PopupMenuConfig, OnInit {
|
|
407
|
+
#private;
|
|
408
|
+
protected readonly groupTemplateConfig: import("@angular/core").Signal<import("@nanahoshi/mona-ui/internal/popup-menu").PopupTemplateConfig | undefined>;
|
|
409
|
+
protected readonly items: import("@angular/core").Signal<readonly PopupMenuConfig[]>;
|
|
410
|
+
readonly origin: PopupMenuOrigin;
|
|
411
|
+
/**
|
|
412
|
+
* @description The title of the radio group.
|
|
413
|
+
*/
|
|
414
|
+
readonly title: import("@angular/core").InputSignal<string>;
|
|
415
|
+
readonly type = PopupMenuItemType.RadioGroup;
|
|
416
|
+
/**
|
|
417
|
+
* @description The value of the selected radio item.
|
|
418
|
+
*/
|
|
419
|
+
readonly value: import("@angular/core").ModelSignal<string>;
|
|
420
|
+
getPopupMenuItem(): PopupMenuItem$1[];
|
|
421
|
+
ngOnInit(): void;
|
|
422
|
+
private setSubscription;
|
|
423
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PopupMenuRadioGroupComponent, never>;
|
|
424
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PopupMenuRadioGroupComponent, "mona-popup-menu-radio-group", never, {
|
|
425
|
+
"title": {
|
|
426
|
+
"alias": "title";
|
|
427
|
+
"required": false;
|
|
428
|
+
"isSignal": true;
|
|
429
|
+
};
|
|
430
|
+
"value": {
|
|
431
|
+
"alias": "value";
|
|
432
|
+
"required": false;
|
|
433
|
+
"isSignal": true;
|
|
434
|
+
};
|
|
435
|
+
}, {
|
|
436
|
+
"value": "valueChange";
|
|
437
|
+
}, ["groupTemplateConfig", "items"], never, true, never>;
|
|
304
438
|
}
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
439
|
+
export declare class PopupMenuRadioItemComponent implements PopupMenuConfig, OnInit {
|
|
440
|
+
#private;
|
|
441
|
+
protected readonly shortcutTemplateConfig: import("@angular/core").Signal<import("@nanahoshi/mona-ui/internal/popup-menu").PopupTemplateConfig | undefined>;
|
|
442
|
+
protected readonly textTemplateConfig: import("@angular/core").Signal<import("@nanahoshi/mona-ui/internal/popup-menu").PopupTemplateConfig | undefined>;
|
|
443
|
+
/**
|
|
444
|
+
* @description Sets the disabled state of the menu item.
|
|
445
|
+
*/
|
|
446
|
+
readonly disabled: import("@angular/core").InputSignal<boolean>;
|
|
447
|
+
/**
|
|
448
|
+
* @description The text of the menu item.
|
|
449
|
+
*/
|
|
450
|
+
readonly label: import("@angular/core").InputSignal<string>;
|
|
451
|
+
/**
|
|
452
|
+
* @description The click event of the menu item.
|
|
453
|
+
* Emits when the menu item is selected by keyboard or mouse, before the radio group selects it. Preventing it
|
|
454
|
+
* keeps the group's value and the menu open.
|
|
455
|
+
*/
|
|
456
|
+
readonly menuClick: import("@angular/core").OutputEmitterRef<PopupMenuItemClickEvent$1>;
|
|
457
|
+
readonly origin: PopupMenuOrigin;
|
|
458
|
+
readonly type = PopupMenuItemType.RadioItem;
|
|
459
|
+
/**
|
|
460
|
+
* @description The value of the radio item.
|
|
461
|
+
*/
|
|
462
|
+
readonly value: import("@angular/core").InputSignal<string>;
|
|
463
|
+
getPopupMenuItem(): PopupMenuItem$1[];
|
|
464
|
+
ngOnInit(): void;
|
|
465
|
+
private setSubscription;
|
|
466
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PopupMenuRadioItemComponent, never>;
|
|
467
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PopupMenuRadioItemComponent, "mona-popup-menu-radio-item", never, {
|
|
468
|
+
"disabled": {
|
|
469
|
+
"alias": "disabled";
|
|
470
|
+
"required": false;
|
|
471
|
+
"isSignal": true;
|
|
472
|
+
};
|
|
473
|
+
"label": {
|
|
474
|
+
"alias": "label";
|
|
475
|
+
"required": false;
|
|
476
|
+
"isSignal": true;
|
|
477
|
+
};
|
|
478
|
+
"value": {
|
|
479
|
+
"alias": "value";
|
|
480
|
+
"required": true;
|
|
481
|
+
"isSignal": true;
|
|
482
|
+
};
|
|
483
|
+
}, {
|
|
484
|
+
"menuClick": "menuClick";
|
|
485
|
+
}, ["shortcutTemplateConfig", "textTemplateConfig"], never, true, never>;
|
|
335
486
|
}
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PopupMenuSeparatorComponent, "mona-popup-menu-separator", never, {}, {}, never, never, true, never>;
|
|
487
|
+
export declare class PopupMenuSeparatorComponent implements PopupMenuConfig {
|
|
488
|
+
readonly origin: PopupMenuOrigin;
|
|
489
|
+
readonly type = PopupMenuItemType.Separator;
|
|
490
|
+
getPopupMenuItem(): PopupMenuItem$1[];
|
|
491
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PopupMenuSeparatorComponent, never>;
|
|
492
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PopupMenuSeparatorComponent, "mona-popup-menu-separator", never, {}, {}, never, never, true, never>;
|
|
343
493
|
}
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<PopupMenuGroupTemplateDirective, "ng-template[monaPopupMenuGroupTemplate]", never, {}, {}, never, never, true, never>;
|
|
494
|
+
export declare class PopupMenuGroupTemplateDirective implements PopupTemplateConfig {
|
|
495
|
+
readonly origin: PopupMenuTemplateOrigin;
|
|
496
|
+
readonly template: TemplateRef<any>;
|
|
497
|
+
readonly type = PopupMenuTemplateType.Group;
|
|
498
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PopupMenuGroupTemplateDirective, never>;
|
|
499
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PopupMenuGroupTemplateDirective, "ng-template[monaPopupMenuGroupTemplate]", never, {}, {}, never, never, true, never>;
|
|
351
500
|
}
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<PopupMenuIconTemplateDirective, "ng-template[monaPopupMenuIconTemplate]", never, {}, {}, never, never, true, never>;
|
|
501
|
+
export declare class PopupMenuIconTemplateDirective implements PopupTemplateConfig {
|
|
502
|
+
readonly origin: PopupMenuTemplateOrigin;
|
|
503
|
+
readonly template: TemplateRef<any>;
|
|
504
|
+
readonly type: PopupMenuTemplateType;
|
|
505
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PopupMenuIconTemplateDirective, never>;
|
|
506
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PopupMenuIconTemplateDirective, "ng-template[monaPopupMenuIconTemplate]", never, {}, {}, never, never, true, never>;
|
|
359
507
|
}
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<PopupMenuShortcutTemplateDirective, "ng-template[monaPopupMenuShortcutTemplate]", never, {}, {}, never, never, true, never>;
|
|
508
|
+
export declare class PopupMenuShortcutTemplateDirective implements PopupTemplateConfig {
|
|
509
|
+
readonly origin: PopupMenuTemplateOrigin;
|
|
510
|
+
readonly template: TemplateRef<any>;
|
|
511
|
+
readonly type: PopupMenuTemplateType;
|
|
512
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PopupMenuShortcutTemplateDirective, never>;
|
|
513
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PopupMenuShortcutTemplateDirective, "ng-template[monaPopupMenuShortcutTemplate]", never, {}, {}, never, never, true, never>;
|
|
367
514
|
}
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<PopupMenuTextTemplateDirective, "ng-template[monaPopupMenuTextTemplate]", never, {}, {}, never, never, true, never>;
|
|
515
|
+
export declare class PopupMenuTextTemplateDirective implements PopupTemplateConfig {
|
|
516
|
+
readonly origin: PopupMenuTemplateOrigin;
|
|
517
|
+
readonly template: TemplateRef<any>;
|
|
518
|
+
readonly type: PopupMenuTemplateType;
|
|
519
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PopupMenuTextTemplateDirective, never>;
|
|
520
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PopupMenuTextTemplateDirective, "ng-template[monaPopupMenuTextTemplate]", never, {}, {}, never, never, true, never>;
|
|
375
521
|
}
|
|
376
|
-
|
|
377
|
-
export { PopupMenuCheckboxItemComponent, PopupMenuCloseEvent, PopupMenuComponent, PopupMenuGroupComponent, PopupMenuGroupTemplateDirective, PopupMenuIconTemplateDirective, PopupMenuItemComponent, PopupMenuRadioGroupComponent, PopupMenuRadioItemComponent, PopupMenuSeparatorComponent, PopupMenuShortcutTemplateDirective, PopupMenuTextTemplateDirective };
|
|
378
|
-
export type { PopupMenuInitialFocus, PopupMenuNavigationEvent, PopupMenuTrigger, PopupMenuVariantInput, PopupMenuVariantProps };
|
|
522
|
+
export { type MenuItem, type PopupMenuInitialFocus, type PopupMenuItem, PopupMenuItemClickEvent, type PopupMenuVariantInput, type PopupMenuVariantProps };
|