@nanahoshi/mona-ui 0.27.2 → 0.29.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/locales.md +8 -0
- 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 +2071 -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-pl-pl.mjs +599 -0
- 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 +61 -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 +7 -3
- package/locales/pl-pl/package.json +4 -0
- package/locales/pl-pl/pl-pl.messages.json +536 -0
- package/package.json +66 -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-pl-pl.d.ts +540 -0
- 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 +18 -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,438 +1,803 @@
|
|
|
1
|
-
import * as i0 from
|
|
2
|
-
import {
|
|
3
|
-
import { any, zip } from
|
|
4
|
-
import { createElementControlId, themeOverlaySurfaceClasses } from
|
|
5
|
-
import {
|
|
6
|
-
import { PopupMenuCheckboxItemComponent, PopupMenuGroupComponent, PopupMenuItemComponent, PopupMenuRadioGroupComponent, PopupMenuRadioItemComponent, PopupMenuSeparatorComponent,
|
|
7
|
-
import { NgTemplateOutlet } from
|
|
8
|
-
import { takeUntilDestroyed } from
|
|
9
|
-
import { injectComponentDirection } from
|
|
10
|
-
import { Subject, tap } from
|
|
11
|
-
import { twMerge } from
|
|
12
|
-
import { cva } from
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { Component, DOCUMENT, DestroyRef, Directive, ElementRef, TemplateRef, afterNextRender, computed, contentChild, contentChildren, effect, forwardRef, inject, input, output, signal, untracked, viewChildren } from "@angular/core";
|
|
3
|
+
import { any, zip } from "@mirei/ts-collections";
|
|
4
|
+
import { createElementControlId, themeOverlaySurfaceClasses } from "@nanahoshi/mona-ui/internal";
|
|
5
|
+
import { PopupMenuGroupTemplateToken, PopupMenuIconTemplateToken, PopupMenuItemType, PopupMenuOrigin, PopupMenuRadioItemToken, PopupMenuShortcutTemplateToken, PopupMenuTemplateOrigin, PopupMenuTemplateType, PopupMenuTextTemplateToken, PopupMenuToken, ensurePopupComponentTypes, ensurePopupTemplateTypes, preparePopupMenuItems } from "@nanahoshi/mona-ui/internal/popup-menu";
|
|
6
|
+
import { PopupMenuCheckboxItemComponent, PopupMenuComponent, PopupMenuGroupComponent, PopupMenuGroupTemplateDirective, PopupMenuIconTemplateDirective, PopupMenuItemComponent, PopupMenuRadioGroupComponent, PopupMenuRadioItemComponent, PopupMenuSeparatorComponent, PopupMenuShortcutTemplateDirective, PopupMenuTextTemplateDirective } from "@nanahoshi/mona-ui/popup-menu";
|
|
7
|
+
import { NgTemplateOutlet } from "@angular/common";
|
|
8
|
+
import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
|
|
9
|
+
import { injectComponentDirection } from "@nanahoshi/mona-ui/i18n";
|
|
10
|
+
import { Subject, tap } from "rxjs";
|
|
11
|
+
import { twMerge } from "tailwind-merge";
|
|
12
|
+
import { cva } from "class-variance-authority";
|
|
13
|
+
var MenuIconTemplateDirective = class MenuIconTemplateDirective {
|
|
14
|
+
static {
|
|
15
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
16
|
+
minVersion: "12.0.0",
|
|
17
|
+
version: "22.2.6",
|
|
18
|
+
ngImport: i0,
|
|
19
|
+
type: MenuIconTemplateDirective,
|
|
20
|
+
deps: [],
|
|
21
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
static {
|
|
25
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
26
|
+
minVersion: "14.0.0",
|
|
27
|
+
version: "22.2.6",
|
|
28
|
+
type: MenuIconTemplateDirective,
|
|
29
|
+
isStandalone: true,
|
|
30
|
+
selector: "ng-template[monaMenuIconTemplate]",
|
|
31
|
+
ngImport: i0
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
36
|
+
minVersion: "12.0.0",
|
|
37
|
+
version: "22.2.6",
|
|
38
|
+
ngImport: i0,
|
|
39
|
+
type: MenuIconTemplateDirective,
|
|
40
|
+
decorators: [{
|
|
41
|
+
type: Directive,
|
|
42
|
+
args: [{ selector: "ng-template[monaMenuIconTemplate]" }]
|
|
43
|
+
}]
|
|
44
|
+
});
|
|
45
|
+
var MenuTextTemplateDirective = class MenuTextTemplateDirective {
|
|
46
|
+
static {
|
|
47
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
48
|
+
minVersion: "12.0.0",
|
|
49
|
+
version: "22.2.6",
|
|
50
|
+
ngImport: i0,
|
|
51
|
+
type: MenuTextTemplateDirective,
|
|
52
|
+
deps: [],
|
|
53
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
static {
|
|
57
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
58
|
+
minVersion: "14.0.0",
|
|
59
|
+
version: "22.2.6",
|
|
60
|
+
type: MenuTextTemplateDirective,
|
|
61
|
+
isStandalone: true,
|
|
62
|
+
selector: "ng-template[monaMenuTextTemplate]",
|
|
63
|
+
ngImport: i0
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
68
|
+
minVersion: "12.0.0",
|
|
69
|
+
version: "22.2.6",
|
|
70
|
+
ngImport: i0,
|
|
71
|
+
type: MenuTextTemplateDirective,
|
|
72
|
+
decorators: [{
|
|
73
|
+
type: Directive,
|
|
74
|
+
args: [{ selector: "ng-template[monaMenuTextTemplate]" }]
|
|
75
|
+
}]
|
|
76
|
+
});
|
|
36
77
|
const componentTypeMap = {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
78
|
+
[PopupMenuItemType.CheckboxMenuItem]: "mona-menu-checkbox-item",
|
|
79
|
+
[PopupMenuItemType.MenuGroup]: "mona-menu-group",
|
|
80
|
+
[PopupMenuItemType.MenuItem]: "mona-menu-item",
|
|
81
|
+
[PopupMenuItemType.RadioGroup]: "mona-menu-radio-group",
|
|
82
|
+
[PopupMenuItemType.RadioItem]: "mona-menu-radio-item",
|
|
83
|
+
[PopupMenuItemType.Separator]: "mona-menu-separator"
|
|
43
84
|
};
|
|
44
85
|
const templateTypeMap = {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
86
|
+
[PopupMenuTemplateType.Group]: "monaMenubarMenuGroupTemplate",
|
|
87
|
+
[PopupMenuTemplateType.Icon]: "monaMenubarMenuItemIconTemplate",
|
|
88
|
+
[PopupMenuTemplateType.Shortcut]: "monaMenubarMenuItemShortcutTemplate",
|
|
89
|
+
[PopupMenuTemplateType.Text]: "monaMenubarMenuItemTextTemplate"
|
|
49
90
|
};
|
|
50
91
|
const ensureMenubarComponentTypes = (components) => {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
92
|
+
ensurePopupComponentTypes({
|
|
93
|
+
components,
|
|
94
|
+
componentTypeMap,
|
|
95
|
+
origin: PopupMenuOrigin.MenubarMenu,
|
|
96
|
+
prefix: "mona-menu"
|
|
97
|
+
});
|
|
57
98
|
};
|
|
58
99
|
const ensureMenubarTemplateTypes = (templates) => {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
100
|
+
ensurePopupTemplateTypes({
|
|
101
|
+
templates,
|
|
102
|
+
templateTypeMap,
|
|
103
|
+
origin: PopupMenuTemplateOrigin.MenubarMenu,
|
|
104
|
+
prefix: "mona-menu"
|
|
105
|
+
});
|
|
65
106
|
};
|
|
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
|
-
|
|
200
|
-
|
|
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
|
-
|
|
235
|
-
|
|
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
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
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
|
-
|
|
335
|
-
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
107
|
+
var MenuComponent = class MenuComponent {
|
|
108
|
+
constructor() {
|
|
109
|
+
this.menuItemComponents = contentChildren(PopupMenuToken, {
|
|
110
|
+
...ngDevMode ? { debugName: "menuItemComponents" } : /* istanbul ignore next */ {},
|
|
111
|
+
descendants: false
|
|
112
|
+
});
|
|
113
|
+
this.disabled = input(false, ...ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []);
|
|
114
|
+
this.iconTemplate = contentChild(MenuIconTemplateDirective, {
|
|
115
|
+
...ngDevMode ? { debugName: "iconTemplate" } : /* istanbul ignore next */ {},
|
|
116
|
+
read: TemplateRef
|
|
117
|
+
});
|
|
118
|
+
this.items = input([], ...ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []);
|
|
119
|
+
this.menuItems = computed(() => {
|
|
120
|
+
if (any(this.items())) return preparePopupMenuItems(this.items());
|
|
121
|
+
return this.menuItemComponents().map((item) => item.getPopupMenuItem()).flatMap((i) => i);
|
|
122
|
+
}, ...ngDevMode ? [{ debugName: "menuItems" }] : /* istanbul ignore next */ []);
|
|
123
|
+
this.text = input("", ...ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []);
|
|
124
|
+
this.textTemplate = contentChild(MenuTextTemplateDirective, {
|
|
125
|
+
...ngDevMode ? { debugName: "textTemplate" } : /* istanbul ignore next */ {},
|
|
126
|
+
read: TemplateRef
|
|
127
|
+
});
|
|
128
|
+
this.uid = createElementControlId();
|
|
129
|
+
this.popupMenu = null;
|
|
130
|
+
effect(() => ensureMenubarComponentTypes(this.menuItemComponents()));
|
|
131
|
+
}
|
|
132
|
+
static {
|
|
133
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
134
|
+
minVersion: "12.0.0",
|
|
135
|
+
version: "22.2.6",
|
|
136
|
+
ngImport: i0,
|
|
137
|
+
type: MenuComponent,
|
|
138
|
+
deps: [],
|
|
139
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
static {
|
|
143
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
144
|
+
minVersion: "17.2.0",
|
|
145
|
+
version: "22.2.6",
|
|
146
|
+
type: MenuComponent,
|
|
147
|
+
isStandalone: true,
|
|
148
|
+
selector: "mona-menu",
|
|
149
|
+
inputs: {
|
|
150
|
+
disabled: {
|
|
151
|
+
classPropertyName: "disabled",
|
|
152
|
+
publicName: "disabled",
|
|
153
|
+
isSignal: true,
|
|
154
|
+
isRequired: false,
|
|
155
|
+
transformFunction: null
|
|
156
|
+
},
|
|
157
|
+
items: {
|
|
158
|
+
classPropertyName: "items",
|
|
159
|
+
publicName: "items",
|
|
160
|
+
isSignal: true,
|
|
161
|
+
isRequired: false,
|
|
162
|
+
transformFunction: null
|
|
163
|
+
},
|
|
164
|
+
text: {
|
|
165
|
+
classPropertyName: "text",
|
|
166
|
+
publicName: "text",
|
|
167
|
+
isSignal: true,
|
|
168
|
+
isRequired: false,
|
|
169
|
+
transformFunction: null
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
queries: [
|
|
173
|
+
{
|
|
174
|
+
propertyName: "menuItemComponents",
|
|
175
|
+
predicate: PopupMenuToken,
|
|
176
|
+
isSignal: true
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
propertyName: "iconTemplate",
|
|
180
|
+
first: true,
|
|
181
|
+
predicate: MenuIconTemplateDirective,
|
|
182
|
+
descendants: true,
|
|
183
|
+
read: TemplateRef,
|
|
184
|
+
isSignal: true
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
propertyName: "textTemplate",
|
|
188
|
+
first: true,
|
|
189
|
+
predicate: MenuTextTemplateDirective,
|
|
190
|
+
descendants: true,
|
|
191
|
+
read: TemplateRef,
|
|
192
|
+
isSignal: true
|
|
193
|
+
}
|
|
194
|
+
],
|
|
195
|
+
ngImport: i0,
|
|
196
|
+
template: "",
|
|
197
|
+
isInline: true
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
};
|
|
201
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
202
|
+
minVersion: "12.0.0",
|
|
203
|
+
version: "22.2.6",
|
|
204
|
+
ngImport: i0,
|
|
205
|
+
type: MenuComponent,
|
|
206
|
+
decorators: [{
|
|
207
|
+
type: Component,
|
|
208
|
+
args: [{
|
|
209
|
+
selector: "mona-menu",
|
|
210
|
+
template: ""
|
|
211
|
+
}]
|
|
212
|
+
}],
|
|
213
|
+
ctorParameters: () => [],
|
|
214
|
+
propDecorators: {
|
|
215
|
+
menuItemComponents: [{
|
|
216
|
+
type: i0.ContentChildren,
|
|
217
|
+
args: [i0.forwardRef(() => PopupMenuToken), {
|
|
218
|
+
descendants: false,
|
|
219
|
+
isSignal: true
|
|
220
|
+
}]
|
|
221
|
+
}],
|
|
222
|
+
disabled: [{
|
|
223
|
+
type: i0.Input,
|
|
224
|
+
args: [{
|
|
225
|
+
isSignal: true,
|
|
226
|
+
alias: "disabled",
|
|
227
|
+
required: false
|
|
228
|
+
}]
|
|
229
|
+
}],
|
|
230
|
+
iconTemplate: [{
|
|
231
|
+
type: i0.ContentChild,
|
|
232
|
+
args: [i0.forwardRef(() => MenuIconTemplateDirective), {
|
|
233
|
+
read: TemplateRef,
|
|
234
|
+
isSignal: true
|
|
235
|
+
}]
|
|
236
|
+
}],
|
|
237
|
+
items: [{
|
|
238
|
+
type: i0.Input,
|
|
239
|
+
args: [{
|
|
240
|
+
isSignal: true,
|
|
241
|
+
alias: "items",
|
|
242
|
+
required: false
|
|
243
|
+
}]
|
|
244
|
+
}],
|
|
245
|
+
text: [{
|
|
246
|
+
type: i0.Input,
|
|
247
|
+
args: [{
|
|
248
|
+
isSignal: true,
|
|
249
|
+
alias: "text",
|
|
250
|
+
required: false
|
|
251
|
+
}]
|
|
252
|
+
}],
|
|
253
|
+
textTemplate: [{
|
|
254
|
+
type: i0.ContentChild,
|
|
255
|
+
args: [i0.forwardRef(() => MenuTextTemplateDirective), {
|
|
256
|
+
read: TemplateRef,
|
|
257
|
+
isSignal: true
|
|
258
|
+
}]
|
|
259
|
+
}]
|
|
260
|
+
}
|
|
261
|
+
});
|
|
262
|
+
var MenuCheckboxItemComponent = class MenuCheckboxItemComponent extends PopupMenuCheckboxItemComponent {
|
|
263
|
+
constructor() {
|
|
264
|
+
super();
|
|
265
|
+
this.origin = PopupMenuOrigin.MenubarMenu;
|
|
266
|
+
effect(() => ensureMenubarTemplateTypes([this.shortcutTemplateConfig(), this.textTemplateConfig()].filter((t) => t !== void 0)));
|
|
267
|
+
}
|
|
268
|
+
static {
|
|
269
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
270
|
+
minVersion: "12.0.0",
|
|
271
|
+
version: "22.2.6",
|
|
272
|
+
ngImport: i0,
|
|
273
|
+
type: MenuCheckboxItemComponent,
|
|
274
|
+
deps: [],
|
|
275
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
276
|
+
});
|
|
277
|
+
}
|
|
278
|
+
static {
|
|
279
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
280
|
+
minVersion: "14.0.0",
|
|
281
|
+
version: "22.2.6",
|
|
282
|
+
type: MenuCheckboxItemComponent,
|
|
283
|
+
isStandalone: true,
|
|
284
|
+
selector: "mona-menu-checkbox-item",
|
|
285
|
+
providers: [{
|
|
286
|
+
provide: PopupMenuToken,
|
|
287
|
+
useExisting: forwardRef(() => MenuCheckboxItemComponent)
|
|
288
|
+
}],
|
|
289
|
+
usesInheritance: true,
|
|
290
|
+
ngImport: i0,
|
|
291
|
+
template: "",
|
|
292
|
+
isInline: true
|
|
293
|
+
});
|
|
294
|
+
}
|
|
295
|
+
};
|
|
296
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
297
|
+
minVersion: "12.0.0",
|
|
298
|
+
version: "22.2.6",
|
|
299
|
+
ngImport: i0,
|
|
300
|
+
type: MenuCheckboxItemComponent,
|
|
301
|
+
decorators: [{
|
|
302
|
+
type: Component,
|
|
303
|
+
args: [{
|
|
304
|
+
selector: "mona-menu-checkbox-item",
|
|
305
|
+
template: "",
|
|
306
|
+
providers: [{
|
|
307
|
+
provide: PopupMenuToken,
|
|
308
|
+
useExisting: forwardRef(() => MenuCheckboxItemComponent)
|
|
309
|
+
}]
|
|
310
|
+
}]
|
|
311
|
+
}],
|
|
312
|
+
ctorParameters: () => []
|
|
313
|
+
});
|
|
314
|
+
var MenuGroupComponent = class MenuGroupComponent extends PopupMenuGroupComponent {
|
|
315
|
+
constructor() {
|
|
316
|
+
super();
|
|
317
|
+
this.origin = PopupMenuOrigin.MenubarMenu;
|
|
318
|
+
effect(() => ensureMenubarComponentTypes(this.items()));
|
|
319
|
+
effect(() => ensureMenubarTemplateTypes([this.groupTemplateConfig()].filter((t) => t !== void 0)));
|
|
320
|
+
}
|
|
321
|
+
static {
|
|
322
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
323
|
+
minVersion: "12.0.0",
|
|
324
|
+
version: "22.2.6",
|
|
325
|
+
ngImport: i0,
|
|
326
|
+
type: MenuGroupComponent,
|
|
327
|
+
deps: [],
|
|
328
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
329
|
+
});
|
|
330
|
+
}
|
|
331
|
+
static {
|
|
332
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
333
|
+
minVersion: "14.0.0",
|
|
334
|
+
version: "22.2.6",
|
|
335
|
+
type: MenuGroupComponent,
|
|
336
|
+
isStandalone: true,
|
|
337
|
+
selector: "mona-menu-group",
|
|
338
|
+
providers: [{
|
|
339
|
+
provide: PopupMenuToken,
|
|
340
|
+
useExisting: forwardRef(() => MenuGroupComponent)
|
|
341
|
+
}],
|
|
342
|
+
usesInheritance: true,
|
|
343
|
+
ngImport: i0,
|
|
344
|
+
template: "",
|
|
345
|
+
isInline: true
|
|
346
|
+
});
|
|
347
|
+
}
|
|
348
|
+
};
|
|
349
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
350
|
+
minVersion: "12.0.0",
|
|
351
|
+
version: "22.2.6",
|
|
352
|
+
ngImport: i0,
|
|
353
|
+
type: MenuGroupComponent,
|
|
354
|
+
decorators: [{
|
|
355
|
+
type: Component,
|
|
356
|
+
args: [{
|
|
357
|
+
selector: "mona-menu-group",
|
|
358
|
+
template: "",
|
|
359
|
+
providers: [{
|
|
360
|
+
provide: PopupMenuToken,
|
|
361
|
+
useExisting: forwardRef(() => MenuGroupComponent)
|
|
362
|
+
}]
|
|
363
|
+
}]
|
|
364
|
+
}],
|
|
365
|
+
ctorParameters: () => []
|
|
366
|
+
});
|
|
367
|
+
var MenuItemComponent = class MenuItemComponent extends PopupMenuItemComponent {
|
|
368
|
+
constructor() {
|
|
369
|
+
super();
|
|
370
|
+
this.origin = PopupMenuOrigin.MenubarMenu;
|
|
371
|
+
effect(() => ensureMenubarComponentTypes(this.items()));
|
|
372
|
+
effect(() => ensureMenubarTemplateTypes([
|
|
373
|
+
this.iconTemplateConfig(),
|
|
374
|
+
this.shortcutTemplateConfig(),
|
|
375
|
+
this.textTemplateConfig()
|
|
376
|
+
].filter((t) => t !== void 0)));
|
|
377
|
+
}
|
|
378
|
+
static {
|
|
379
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
380
|
+
minVersion: "12.0.0",
|
|
381
|
+
version: "22.2.6",
|
|
382
|
+
ngImport: i0,
|
|
383
|
+
type: MenuItemComponent,
|
|
384
|
+
deps: [],
|
|
385
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
386
|
+
});
|
|
387
|
+
}
|
|
388
|
+
static {
|
|
389
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
390
|
+
minVersion: "14.0.0",
|
|
391
|
+
version: "22.2.6",
|
|
392
|
+
type: MenuItemComponent,
|
|
393
|
+
isStandalone: true,
|
|
394
|
+
selector: "mona-menu-item",
|
|
395
|
+
providers: [{
|
|
396
|
+
provide: PopupMenuToken,
|
|
397
|
+
useExisting: forwardRef(() => MenuItemComponent)
|
|
398
|
+
}],
|
|
399
|
+
usesInheritance: true,
|
|
400
|
+
ngImport: i0,
|
|
401
|
+
template: "",
|
|
402
|
+
isInline: true
|
|
403
|
+
});
|
|
404
|
+
}
|
|
405
|
+
};
|
|
406
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
407
|
+
minVersion: "12.0.0",
|
|
408
|
+
version: "22.2.6",
|
|
409
|
+
ngImport: i0,
|
|
410
|
+
type: MenuItemComponent,
|
|
411
|
+
decorators: [{
|
|
412
|
+
type: Component,
|
|
413
|
+
args: [{
|
|
414
|
+
selector: "mona-menu-item",
|
|
415
|
+
template: "",
|
|
416
|
+
providers: [{
|
|
417
|
+
provide: PopupMenuToken,
|
|
418
|
+
useExisting: forwardRef(() => MenuItemComponent)
|
|
419
|
+
}]
|
|
420
|
+
}]
|
|
421
|
+
}],
|
|
422
|
+
ctorParameters: () => []
|
|
423
|
+
});
|
|
424
|
+
var MenuRadioGroupComponent = class MenuRadioGroupComponent extends PopupMenuRadioGroupComponent {
|
|
425
|
+
constructor() {
|
|
426
|
+
super();
|
|
427
|
+
this.origin = PopupMenuOrigin.MenubarMenu;
|
|
428
|
+
effect(() => ensureMenubarComponentTypes(this.items()));
|
|
429
|
+
effect(() => ensureMenubarTemplateTypes([this.groupTemplateConfig()].filter((t) => t !== void 0)));
|
|
430
|
+
}
|
|
431
|
+
static {
|
|
432
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
433
|
+
minVersion: "12.0.0",
|
|
434
|
+
version: "22.2.6",
|
|
435
|
+
ngImport: i0,
|
|
436
|
+
type: MenuRadioGroupComponent,
|
|
437
|
+
deps: [],
|
|
438
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
439
|
+
});
|
|
440
|
+
}
|
|
441
|
+
static {
|
|
442
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
443
|
+
minVersion: "14.0.0",
|
|
444
|
+
version: "22.2.6",
|
|
445
|
+
type: MenuRadioGroupComponent,
|
|
446
|
+
isStandalone: true,
|
|
447
|
+
selector: "mona-menu-radio-group",
|
|
448
|
+
providers: [{
|
|
449
|
+
provide: PopupMenuToken,
|
|
450
|
+
useExisting: forwardRef(() => MenuRadioGroupComponent)
|
|
451
|
+
}],
|
|
452
|
+
usesInheritance: true,
|
|
453
|
+
ngImport: i0,
|
|
454
|
+
template: "",
|
|
455
|
+
isInline: true
|
|
456
|
+
});
|
|
457
|
+
}
|
|
458
|
+
};
|
|
459
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
460
|
+
minVersion: "12.0.0",
|
|
461
|
+
version: "22.2.6",
|
|
462
|
+
ngImport: i0,
|
|
463
|
+
type: MenuRadioGroupComponent,
|
|
464
|
+
decorators: [{
|
|
465
|
+
type: Component,
|
|
466
|
+
args: [{
|
|
467
|
+
selector: "mona-menu-radio-group",
|
|
468
|
+
template: "",
|
|
469
|
+
providers: [{
|
|
470
|
+
provide: PopupMenuToken,
|
|
471
|
+
useExisting: forwardRef(() => MenuRadioGroupComponent)
|
|
472
|
+
}]
|
|
473
|
+
}]
|
|
474
|
+
}],
|
|
475
|
+
ctorParameters: () => []
|
|
476
|
+
});
|
|
477
|
+
var MenuRadioItemComponent = class MenuRadioItemComponent extends PopupMenuRadioItemComponent {
|
|
478
|
+
constructor() {
|
|
479
|
+
super();
|
|
480
|
+
this.origin = PopupMenuOrigin.MenubarMenu;
|
|
481
|
+
effect(() => ensureMenubarTemplateTypes([this.shortcutTemplateConfig(), this.textTemplateConfig()].filter((t) => t !== void 0)));
|
|
482
|
+
}
|
|
483
|
+
static {
|
|
484
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
485
|
+
minVersion: "12.0.0",
|
|
486
|
+
version: "22.2.6",
|
|
487
|
+
ngImport: i0,
|
|
488
|
+
type: MenuRadioItemComponent,
|
|
489
|
+
deps: [],
|
|
490
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
491
|
+
});
|
|
492
|
+
}
|
|
493
|
+
static {
|
|
494
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
495
|
+
minVersion: "14.0.0",
|
|
496
|
+
version: "22.2.6",
|
|
497
|
+
type: MenuRadioItemComponent,
|
|
498
|
+
isStandalone: true,
|
|
499
|
+
selector: "mona-menu-radio-item",
|
|
500
|
+
providers: [{
|
|
501
|
+
provide: PopupMenuToken,
|
|
502
|
+
useExisting: forwardRef(() => MenuRadioItemComponent)
|
|
503
|
+
}, {
|
|
504
|
+
provide: PopupMenuRadioItemToken,
|
|
505
|
+
useExisting: forwardRef(() => MenuRadioItemComponent)
|
|
506
|
+
}],
|
|
507
|
+
usesInheritance: true,
|
|
508
|
+
ngImport: i0,
|
|
509
|
+
template: "",
|
|
510
|
+
isInline: true
|
|
511
|
+
});
|
|
512
|
+
}
|
|
513
|
+
};
|
|
514
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
515
|
+
minVersion: "12.0.0",
|
|
516
|
+
version: "22.2.6",
|
|
517
|
+
ngImport: i0,
|
|
518
|
+
type: MenuRadioItemComponent,
|
|
519
|
+
decorators: [{
|
|
520
|
+
type: Component,
|
|
521
|
+
args: [{
|
|
522
|
+
selector: "mona-menu-radio-item",
|
|
523
|
+
template: "",
|
|
524
|
+
providers: [{
|
|
525
|
+
provide: PopupMenuToken,
|
|
526
|
+
useExisting: forwardRef(() => MenuRadioItemComponent)
|
|
527
|
+
}, {
|
|
528
|
+
provide: PopupMenuRadioItemToken,
|
|
529
|
+
useExisting: forwardRef(() => MenuRadioItemComponent)
|
|
530
|
+
}]
|
|
531
|
+
}]
|
|
532
|
+
}],
|
|
533
|
+
ctorParameters: () => []
|
|
534
|
+
});
|
|
535
|
+
var MenuSeparatorComponent = class MenuSeparatorComponent extends PopupMenuSeparatorComponent {
|
|
536
|
+
constructor() {
|
|
537
|
+
super(...arguments);
|
|
538
|
+
this.origin = PopupMenuOrigin.MenubarMenu;
|
|
539
|
+
}
|
|
540
|
+
static {
|
|
541
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
542
|
+
minVersion: "12.0.0",
|
|
543
|
+
version: "22.2.6",
|
|
544
|
+
ngImport: i0,
|
|
545
|
+
type: MenuSeparatorComponent,
|
|
546
|
+
deps: null,
|
|
547
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
548
|
+
});
|
|
549
|
+
}
|
|
550
|
+
static {
|
|
551
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
552
|
+
minVersion: "14.0.0",
|
|
553
|
+
version: "22.2.6",
|
|
554
|
+
type: MenuSeparatorComponent,
|
|
555
|
+
isStandalone: true,
|
|
556
|
+
selector: "mona-menu-separator",
|
|
557
|
+
providers: [{
|
|
558
|
+
provide: PopupMenuToken,
|
|
559
|
+
useExisting: forwardRef(() => MenuSeparatorComponent)
|
|
560
|
+
}],
|
|
561
|
+
usesInheritance: true,
|
|
562
|
+
ngImport: i0,
|
|
563
|
+
template: "",
|
|
564
|
+
isInline: true
|
|
565
|
+
});
|
|
566
|
+
}
|
|
567
|
+
};
|
|
568
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
569
|
+
minVersion: "12.0.0",
|
|
570
|
+
version: "22.2.6",
|
|
571
|
+
ngImport: i0,
|
|
572
|
+
type: MenuSeparatorComponent,
|
|
573
|
+
decorators: [{
|
|
574
|
+
type: Component,
|
|
575
|
+
args: [{
|
|
576
|
+
selector: "mona-menu-separator",
|
|
577
|
+
template: "",
|
|
578
|
+
providers: [{
|
|
579
|
+
provide: PopupMenuToken,
|
|
580
|
+
useExisting: forwardRef(() => MenuSeparatorComponent)
|
|
581
|
+
}]
|
|
582
|
+
}]
|
|
583
|
+
}]
|
|
584
|
+
});
|
|
585
|
+
var MenuGroupTemplateDirective = class MenuGroupTemplateDirective extends PopupMenuGroupTemplateDirective {
|
|
586
|
+
constructor() {
|
|
587
|
+
super(...arguments);
|
|
588
|
+
this.origin = PopupMenuTemplateOrigin.MenubarMenu;
|
|
589
|
+
}
|
|
590
|
+
static {
|
|
591
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
592
|
+
minVersion: "12.0.0",
|
|
593
|
+
version: "22.2.6",
|
|
594
|
+
ngImport: i0,
|
|
595
|
+
type: MenuGroupTemplateDirective,
|
|
596
|
+
deps: null,
|
|
597
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
598
|
+
});
|
|
599
|
+
}
|
|
600
|
+
static {
|
|
601
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
602
|
+
minVersion: "14.0.0",
|
|
603
|
+
version: "22.2.6",
|
|
604
|
+
type: MenuGroupTemplateDirective,
|
|
605
|
+
isStandalone: true,
|
|
606
|
+
selector: "ng-template[monaMenuGroupTemplate]",
|
|
607
|
+
providers: [{
|
|
608
|
+
provide: PopupMenuGroupTemplateToken,
|
|
609
|
+
useExisting: forwardRef(() => MenuGroupTemplateDirective)
|
|
610
|
+
}],
|
|
611
|
+
usesInheritance: true,
|
|
612
|
+
ngImport: i0
|
|
613
|
+
});
|
|
614
|
+
}
|
|
615
|
+
};
|
|
616
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
617
|
+
minVersion: "12.0.0",
|
|
618
|
+
version: "22.2.6",
|
|
619
|
+
ngImport: i0,
|
|
620
|
+
type: MenuGroupTemplateDirective,
|
|
621
|
+
decorators: [{
|
|
622
|
+
type: Directive,
|
|
623
|
+
args: [{
|
|
624
|
+
selector: "ng-template[monaMenuGroupTemplate]",
|
|
625
|
+
providers: [{
|
|
626
|
+
provide: PopupMenuGroupTemplateToken,
|
|
627
|
+
useExisting: forwardRef(() => MenuGroupTemplateDirective)
|
|
628
|
+
}]
|
|
629
|
+
}]
|
|
630
|
+
}]
|
|
631
|
+
});
|
|
632
|
+
var MenuItemIconTemplateDirective = class MenuItemIconTemplateDirective extends PopupMenuIconTemplateDirective {
|
|
633
|
+
constructor() {
|
|
634
|
+
super(...arguments);
|
|
635
|
+
this.origin = PopupMenuTemplateOrigin.MenubarMenu;
|
|
636
|
+
}
|
|
637
|
+
static {
|
|
638
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
639
|
+
minVersion: "12.0.0",
|
|
640
|
+
version: "22.2.6",
|
|
641
|
+
ngImport: i0,
|
|
642
|
+
type: MenuItemIconTemplateDirective,
|
|
643
|
+
deps: null,
|
|
644
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
645
|
+
});
|
|
646
|
+
}
|
|
647
|
+
static {
|
|
648
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
649
|
+
minVersion: "14.0.0",
|
|
650
|
+
version: "22.2.6",
|
|
651
|
+
type: MenuItemIconTemplateDirective,
|
|
652
|
+
isStandalone: true,
|
|
653
|
+
selector: "ng-template[monaMenuItemIconTemplate]",
|
|
654
|
+
providers: [{
|
|
655
|
+
provide: PopupMenuIconTemplateToken,
|
|
656
|
+
useExisting: forwardRef(() => MenuItemIconTemplateDirective)
|
|
657
|
+
}],
|
|
658
|
+
usesInheritance: true,
|
|
659
|
+
ngImport: i0
|
|
660
|
+
});
|
|
661
|
+
}
|
|
662
|
+
};
|
|
663
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
664
|
+
minVersion: "12.0.0",
|
|
665
|
+
version: "22.2.6",
|
|
666
|
+
ngImport: i0,
|
|
667
|
+
type: MenuItemIconTemplateDirective,
|
|
668
|
+
decorators: [{
|
|
669
|
+
type: Directive,
|
|
670
|
+
args: [{
|
|
671
|
+
selector: "ng-template[monaMenuItemIconTemplate]",
|
|
672
|
+
providers: [{
|
|
673
|
+
provide: PopupMenuIconTemplateToken,
|
|
674
|
+
useExisting: forwardRef(() => MenuItemIconTemplateDirective)
|
|
675
|
+
}]
|
|
676
|
+
}]
|
|
677
|
+
}]
|
|
678
|
+
});
|
|
679
|
+
var MenuItemShortcutTemplateDirective = class MenuItemShortcutTemplateDirective extends PopupMenuShortcutTemplateDirective {
|
|
680
|
+
constructor() {
|
|
681
|
+
super(...arguments);
|
|
682
|
+
this.origin = PopupMenuTemplateOrigin.MenubarMenu;
|
|
683
|
+
}
|
|
684
|
+
static {
|
|
685
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
686
|
+
minVersion: "12.0.0",
|
|
687
|
+
version: "22.2.6",
|
|
688
|
+
ngImport: i0,
|
|
689
|
+
type: MenuItemShortcutTemplateDirective,
|
|
690
|
+
deps: null,
|
|
691
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
692
|
+
});
|
|
693
|
+
}
|
|
694
|
+
static {
|
|
695
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
696
|
+
minVersion: "14.0.0",
|
|
697
|
+
version: "22.2.6",
|
|
698
|
+
type: MenuItemShortcutTemplateDirective,
|
|
699
|
+
isStandalone: true,
|
|
700
|
+
selector: "ng-template[monaMenuItemShortcutTemplate]",
|
|
701
|
+
providers: [{
|
|
702
|
+
provide: PopupMenuShortcutTemplateToken,
|
|
703
|
+
useExisting: forwardRef(() => MenuItemShortcutTemplateDirective)
|
|
704
|
+
}],
|
|
705
|
+
usesInheritance: true,
|
|
706
|
+
ngImport: i0
|
|
707
|
+
});
|
|
708
|
+
}
|
|
709
|
+
};
|
|
710
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
711
|
+
minVersion: "12.0.0",
|
|
712
|
+
version: "22.2.6",
|
|
713
|
+
ngImport: i0,
|
|
714
|
+
type: MenuItemShortcutTemplateDirective,
|
|
715
|
+
decorators: [{
|
|
716
|
+
type: Directive,
|
|
717
|
+
args: [{
|
|
718
|
+
selector: "ng-template[monaMenuItemShortcutTemplate]",
|
|
719
|
+
providers: [{
|
|
720
|
+
provide: PopupMenuShortcutTemplateToken,
|
|
721
|
+
useExisting: forwardRef(() => MenuItemShortcutTemplateDirective)
|
|
722
|
+
}]
|
|
723
|
+
}]
|
|
724
|
+
}]
|
|
725
|
+
});
|
|
726
|
+
var MenuItemTextTemplateDirective = class MenuItemTextTemplateDirective extends PopupMenuTextTemplateDirective {
|
|
727
|
+
constructor() {
|
|
728
|
+
super(...arguments);
|
|
729
|
+
this.origin = PopupMenuTemplateOrigin.MenubarMenu;
|
|
730
|
+
}
|
|
731
|
+
static {
|
|
732
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
733
|
+
minVersion: "12.0.0",
|
|
734
|
+
version: "22.2.6",
|
|
735
|
+
ngImport: i0,
|
|
736
|
+
type: MenuItemTextTemplateDirective,
|
|
737
|
+
deps: null,
|
|
738
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
739
|
+
});
|
|
740
|
+
}
|
|
741
|
+
static {
|
|
742
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
743
|
+
minVersion: "14.0.0",
|
|
744
|
+
version: "22.2.6",
|
|
745
|
+
type: MenuItemTextTemplateDirective,
|
|
746
|
+
isStandalone: true,
|
|
747
|
+
selector: "ng-template[monaMenuItemTextTemplate]",
|
|
748
|
+
providers: [{
|
|
749
|
+
provide: PopupMenuTextTemplateToken,
|
|
750
|
+
useExisting: forwardRef(() => MenuItemTextTemplateDirective)
|
|
751
|
+
}],
|
|
752
|
+
usesInheritance: true,
|
|
753
|
+
ngImport: i0
|
|
754
|
+
});
|
|
755
|
+
}
|
|
756
|
+
};
|
|
757
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
758
|
+
minVersion: "12.0.0",
|
|
759
|
+
version: "22.2.6",
|
|
760
|
+
ngImport: i0,
|
|
761
|
+
type: MenuItemTextTemplateDirective,
|
|
762
|
+
decorators: [{
|
|
763
|
+
type: Directive,
|
|
764
|
+
args: [{
|
|
765
|
+
selector: "ng-template[monaMenuItemTextTemplate]",
|
|
766
|
+
providers: [{
|
|
767
|
+
provide: PopupMenuTextTemplateToken,
|
|
768
|
+
useExisting: forwardRef(() => MenuItemTextTemplateDirective)
|
|
769
|
+
}]
|
|
770
|
+
}]
|
|
771
|
+
}]
|
|
772
|
+
});
|
|
773
|
+
cva(`
|
|
403
774
|
w-full gap-4 overflow-hidden
|
|
404
775
|
${themeOverlaySurfaceClasses} text-foreground
|
|
405
776
|
border border-border shadow-(--shadow-overlay)
|
|
406
|
-
`, {
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
});
|
|
431
|
-
const menuItemIconThemeVariants = cva(`absolute start-2 flex h-3.5 w-3.5 items-center justify-center`);
|
|
432
|
-
const menuItemLinkThemeVariants = cva(`flex h-3.5 w-3.5 items-center justify-center`);
|
|
433
|
-
const menuItemShortcutThemeVariants = cva(`flex flex-1 items-center justify-end text-xs text-muted-foreground`);
|
|
434
|
-
const menuItemTextThemeVariants = cva(`flex flex-1 items-center justify-start gap-2`);
|
|
435
|
-
const menuItemThemeVariants = cva(`
|
|
777
|
+
`, { variants: {
|
|
778
|
+
rounded: {
|
|
779
|
+
small: "rounded-sm",
|
|
780
|
+
medium: "rounded-md",
|
|
781
|
+
large: "rounded-lg",
|
|
782
|
+
none: "rounded-none"
|
|
783
|
+
},
|
|
784
|
+
size: {
|
|
785
|
+
small: "px-1 py-0.5",
|
|
786
|
+
medium: "px-1.5 py-1",
|
|
787
|
+
large: "px-2 py-1.5"
|
|
788
|
+
}
|
|
789
|
+
} });
|
|
790
|
+
cva(`-mx-0.5 my-1 h-px bg-border-subtle`);
|
|
791
|
+
cva(`inline-flex w-full select-none px-2 py-1 font-bold text-muted-foreground`, { variants: { size: {
|
|
792
|
+
small: "text-xs",
|
|
793
|
+
medium: "text-sm",
|
|
794
|
+
large: "text-base"
|
|
795
|
+
} } });
|
|
796
|
+
cva(`absolute start-2 flex h-3.5 w-3.5 items-center justify-center`);
|
|
797
|
+
cva(`flex h-3.5 w-3.5 items-center justify-center`);
|
|
798
|
+
cva(`flex flex-1 items-center justify-end text-xs text-muted-foreground`);
|
|
799
|
+
cva(`flex flex-1 items-center justify-start gap-2`);
|
|
800
|
+
cva(`
|
|
436
801
|
relative flex cursor-default select-none items-center gap-4 px-2 py-1.5
|
|
437
802
|
text-foreground outline-none focus-visible:outline-hidden
|
|
438
803
|
hover:bg-[var(--mona-menu-item-hover-background,var(--color-hover))] hover:text-foreground
|
|
@@ -442,15 +807,11 @@ const menuItemThemeVariants = cva(`
|
|
|
442
807
|
data-[disabled='true']:text-disabled-foreground
|
|
443
808
|
data-[focused]:bg-[var(--mona-menu-item-hover-background,var(--color-hover))]
|
|
444
809
|
data-[focused]:text-foreground
|
|
445
|
-
`, {
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
large: "px-3 py-2 text-base"
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
});
|
|
810
|
+
`, { variants: { size: {
|
|
811
|
+
small: "px-2 py-1 text-xs",
|
|
812
|
+
medium: "px-2 py-1.5 text-sm",
|
|
813
|
+
large: "px-3 py-2 text-base"
|
|
814
|
+
} } });
|
|
454
815
|
const menubarBaseThemeVariants = cva(`
|
|
455
816
|
flex items-center justify-center gap-1 overflow-hidden
|
|
456
817
|
bg-(--mona-menubar-background)
|
|
@@ -461,21 +822,19 @@ const menubarBaseThemeVariants = cva(`
|
|
|
461
822
|
border border-border-subtle shadow-(--mona-menubar-shadow)
|
|
462
823
|
data-[disabled='true']:pointer-events-none data-[disabled='true']:cursor-not-allowed
|
|
463
824
|
data-[disabled='true']:text-disabled-foreground data-[disabled='true']:opacity-50
|
|
464
|
-
`, {
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
}
|
|
478
|
-
});
|
|
825
|
+
`, { variants: {
|
|
826
|
+
rounded: {
|
|
827
|
+
small: "rounded-sm",
|
|
828
|
+
medium: "rounded-md",
|
|
829
|
+
large: "rounded-lg",
|
|
830
|
+
none: "rounded-none"
|
|
831
|
+
},
|
|
832
|
+
size: {
|
|
833
|
+
small: "h-8 text-xs",
|
|
834
|
+
medium: "h-10 text-sm",
|
|
835
|
+
large: "h-12 text-base"
|
|
836
|
+
}
|
|
837
|
+
} });
|
|
479
838
|
const menubarListItemThemeVariants = cva(`
|
|
480
839
|
flex h-full items-center justify-center px-2 py-1.5
|
|
481
840
|
cursor-pointer text-foreground outline-none focus-visible:outline-hidden
|
|
@@ -486,389 +845,612 @@ const menubarListItemThemeVariants = cva(`
|
|
|
486
845
|
data-[disabled='true']:text-disabled-foreground
|
|
487
846
|
data-[active='true']:bg-[var(--mona-menu-item-hover-background,var(--color-selected))]
|
|
488
847
|
data-[active='true']:text-[var(--mona-menu-item-hover-foreground,var(--color-selected-foreground))]
|
|
489
|
-
`, {
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
none: "rounded-none"
|
|
496
|
-
}
|
|
497
|
-
}
|
|
498
|
-
});
|
|
848
|
+
`, { variants: { rounded: {
|
|
849
|
+
small: "rounded-sm",
|
|
850
|
+
medium: "rounded-md",
|
|
851
|
+
large: "rounded-lg",
|
|
852
|
+
none: "rounded-none"
|
|
853
|
+
} } });
|
|
499
854
|
const menubarListThemeVariants = cva(`
|
|
500
855
|
flex h-full w-full list-none items-center p-1
|
|
501
856
|
select-none
|
|
502
857
|
`);
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
858
|
+
var MenubarComponent = class MenubarComponent {
|
|
859
|
+
#destroyRef;
|
|
860
|
+
#direction;
|
|
861
|
+
#document;
|
|
862
|
+
#hostElementRef;
|
|
863
|
+
constructor() {
|
|
864
|
+
this.#destroyRef = inject(DestroyRef);
|
|
865
|
+
this.#direction = injectComponentDirection();
|
|
866
|
+
this.#document = inject(DOCUMENT);
|
|
867
|
+
this.#hostElementRef = inject(ElementRef);
|
|
868
|
+
this.activeIndex = signal(0, ...ngDevMode ? [{ debugName: "activeIndex" }] : /* istanbul ignore next */ []);
|
|
869
|
+
this.baseClasses = computed(() => {
|
|
870
|
+
const rounded = this.rounded();
|
|
871
|
+
const size = this.size();
|
|
872
|
+
const userClasses = this.userClasses();
|
|
873
|
+
const variants = menubarBaseThemeVariants({
|
|
874
|
+
rounded,
|
|
875
|
+
size
|
|
876
|
+
});
|
|
877
|
+
return twMerge(variants, userClasses);
|
|
878
|
+
}, ...ngDevMode ? [{ debugName: "baseClasses" }] : /* istanbul ignore next */ []);
|
|
879
|
+
this.currentPopupMenu = signal(null, ...ngDevMode ? [{ debugName: "currentPopupMenu" }] : /* istanbul ignore next */ []);
|
|
880
|
+
this.groupTemplate = contentChild(MenuGroupTemplateDirective, {
|
|
881
|
+
...ngDevMode ? { debugName: "groupTemplate" } : /* istanbul ignore next */ {},
|
|
882
|
+
read: TemplateRef,
|
|
883
|
+
descendants: false
|
|
884
|
+
});
|
|
885
|
+
this.iconTemplate = contentChild(MenuIconTemplateDirective, {
|
|
886
|
+
...ngDevMode ? { debugName: "iconTemplate" } : /* istanbul ignore next */ {},
|
|
887
|
+
read: TemplateRef,
|
|
888
|
+
descendants: false
|
|
889
|
+
});
|
|
890
|
+
this.isRtl = computed(() => this.#direction() === "rtl", ...ngDevMode ? [{ debugName: "isRtl" }] : /* istanbul ignore next */ []);
|
|
891
|
+
this.listClasses = computed(() => {
|
|
892
|
+
return menubarListThemeVariants();
|
|
893
|
+
}, ...ngDevMode ? [{ debugName: "listClasses" }] : /* istanbul ignore next */ []);
|
|
894
|
+
this.listItemClasses = computed(() => {
|
|
895
|
+
const rounded = this.rounded();
|
|
896
|
+
return menubarListItemThemeVariants({ rounded });
|
|
897
|
+
}, ...ngDevMode ? [{ debugName: "listItemClasses" }] : /* istanbul ignore next */ []);
|
|
898
|
+
this.menuItemIconTemplate = contentChild(MenuItemIconTemplateDirective, {
|
|
899
|
+
...ngDevMode ? { debugName: "menuItemIconTemplate" } : /* istanbul ignore next */ {},
|
|
900
|
+
read: TemplateRef,
|
|
901
|
+
descendants: false
|
|
902
|
+
});
|
|
903
|
+
this.menuItemShortcutTemplate = contentChild(MenuItemShortcutTemplateDirective, {
|
|
904
|
+
...ngDevMode ? { debugName: "menuItemShortcutTemplate" } : /* istanbul ignore next */ {},
|
|
905
|
+
read: TemplateRef,
|
|
906
|
+
descendants: false
|
|
907
|
+
});
|
|
908
|
+
this.menuItemTextTemplate = contentChild(MenuItemTextTemplateDirective, {
|
|
909
|
+
...ngDevMode ? { debugName: "menuItemTextTemplate" } : /* istanbul ignore next */ {},
|
|
910
|
+
read: TemplateRef,
|
|
911
|
+
descendants: false
|
|
912
|
+
});
|
|
913
|
+
this.menuList = contentChildren(MenuComponent, ...ngDevMode ? [{ debugName: "menuList" }] : /* istanbul ignore next */ []);
|
|
914
|
+
this.navigate$ = new Subject();
|
|
915
|
+
this.popupMenuComponents = viewChildren(PopupMenuComponent, ...ngDevMode ? [{ debugName: "popupMenuComponents" }] : /* istanbul ignore next */ []);
|
|
916
|
+
this.textTemplate = contentChild(MenuTextTemplateDirective, {
|
|
917
|
+
...ngDevMode ? { debugName: "textTemplate" } : /* istanbul ignore next */ {},
|
|
918
|
+
read: TemplateRef,
|
|
919
|
+
descendants: false
|
|
920
|
+
});
|
|
921
|
+
this.ariaLabel = input("", {
|
|
922
|
+
...ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {},
|
|
923
|
+
alias: "aria-label"
|
|
924
|
+
});
|
|
925
|
+
this.ariaLabelledBy = input("", {
|
|
926
|
+
...ngDevMode ? { debugName: "ariaLabelledBy" } : /* istanbul ignore next */ {},
|
|
927
|
+
alias: "aria-labelledby"
|
|
928
|
+
});
|
|
929
|
+
this.disabled = input(false, ...ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []);
|
|
930
|
+
this.menuItemClick = output();
|
|
931
|
+
this.rounded = input("medium", ...ngDevMode ? [{ debugName: "rounded" }] : /* istanbul ignore next */ []);
|
|
932
|
+
this.size = input("medium", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
933
|
+
this.userClasses = input("", {
|
|
934
|
+
...ngDevMode ? { debugName: "userClasses" } : /* istanbul ignore next */ {},
|
|
935
|
+
alias: "class"
|
|
936
|
+
});
|
|
937
|
+
effect(() => {
|
|
938
|
+
const popupMenuComponents = this.popupMenuComponents();
|
|
939
|
+
untracked(() => {
|
|
940
|
+
zip(this.menuList(), popupMenuComponents).forEach(([menu, popupMenu]) => {
|
|
941
|
+
menu.popupMenu = popupMenu;
|
|
942
|
+
});
|
|
943
|
+
});
|
|
944
|
+
});
|
|
945
|
+
effect(() => {
|
|
946
|
+
this.menuList();
|
|
947
|
+
untracked(() => {
|
|
948
|
+
this.currentPopupMenu()?.closeMenu();
|
|
949
|
+
this.currentPopupMenu.set(null);
|
|
950
|
+
});
|
|
951
|
+
});
|
|
952
|
+
effect(() => {
|
|
953
|
+
const menuList = this.menuList();
|
|
954
|
+
untracked(() => {
|
|
955
|
+
if (this.activeIndex() >= menuList.length) this.activeIndex.set(0);
|
|
956
|
+
});
|
|
957
|
+
});
|
|
958
|
+
afterNextRender({ read: () => this.setSubscriptions() });
|
|
959
|
+
}
|
|
960
|
+
onMenuClick(event, item) {
|
|
961
|
+
if (this.disabled() || item.disabled()) {
|
|
962
|
+
event.preventDefault();
|
|
963
|
+
event.stopImmediatePropagation();
|
|
964
|
+
}
|
|
965
|
+
}
|
|
966
|
+
onMenuFocus(index) {
|
|
967
|
+
this.activeIndex.set(index);
|
|
968
|
+
}
|
|
969
|
+
onMenuItemClick(event) {
|
|
970
|
+
this.menuItemClick.emit(event);
|
|
971
|
+
}
|
|
972
|
+
onMenuKeyDown(event, item, popupMenu) {
|
|
973
|
+
if (this.disabled()) return;
|
|
974
|
+
const isRtl = this.isRtl();
|
|
975
|
+
const nextMenuKey = isRtl ? "ArrowLeft" : "ArrowRight";
|
|
976
|
+
const prevMenuKey = isRtl ? "ArrowRight" : "ArrowLeft";
|
|
977
|
+
const canOpen = !!popupMenu && !item.disabled() && item.menuItems().length > 0;
|
|
978
|
+
switch (event.key) {
|
|
979
|
+
case "Enter":
|
|
980
|
+
case " ":
|
|
981
|
+
event.preventDefault();
|
|
982
|
+
if (canOpen) popupMenu.openMenuViaKeyboard();
|
|
983
|
+
break;
|
|
984
|
+
case nextMenuKey:
|
|
985
|
+
event.preventDefault();
|
|
986
|
+
this.moveToNextMenu();
|
|
987
|
+
break;
|
|
988
|
+
case prevMenuKey:
|
|
989
|
+
event.preventDefault();
|
|
990
|
+
this.moveToPreviousMenu();
|
|
991
|
+
break;
|
|
992
|
+
case "ArrowDown":
|
|
993
|
+
event.preventDefault();
|
|
994
|
+
if (canOpen && !this.currentPopupMenu()) popupMenu.openMenuViaKeyboard();
|
|
995
|
+
break;
|
|
996
|
+
case "ArrowUp":
|
|
997
|
+
event.preventDefault();
|
|
998
|
+
if (canOpen && !this.currentPopupMenu()) popupMenu.openMenuViaKeyboard(false, "last");
|
|
999
|
+
break;
|
|
1000
|
+
case "Home":
|
|
1001
|
+
event.preventDefault();
|
|
1002
|
+
this.moveToFirstMenu();
|
|
1003
|
+
break;
|
|
1004
|
+
case "End":
|
|
1005
|
+
event.preventDefault();
|
|
1006
|
+
this.moveToLastMenu();
|
|
1007
|
+
break;
|
|
1008
|
+
case "Escape":
|
|
1009
|
+
event.preventDefault();
|
|
1010
|
+
this.closeCurrentMenu();
|
|
1011
|
+
break;
|
|
1012
|
+
default: if (event.key.length === 1 && event.key.trim() && !event.altKey && !event.ctrlKey && !event.metaKey) this.moveToMenuStartingWith(event.key);
|
|
1013
|
+
}
|
|
1014
|
+
}
|
|
1015
|
+
onMenuPointerEnter(item, popupMenu) {
|
|
1016
|
+
const current = this.currentPopupMenu();
|
|
1017
|
+
if (this.disabled() || current === popupMenu || !current) return;
|
|
1018
|
+
current.clearFocusRestoration();
|
|
1019
|
+
current.closeMenu();
|
|
1020
|
+
this.currentPopupMenu.set(null);
|
|
1021
|
+
if (!item.disabled() && item.menuItems().length > 0) {
|
|
1022
|
+
this.currentPopupMenu.set(popupMenu);
|
|
1023
|
+
popupMenu.openMenu(false);
|
|
1024
|
+
}
|
|
1025
|
+
}
|
|
1026
|
+
onPopupMenuClose() {
|
|
1027
|
+
this.currentPopupMenu.set(null);
|
|
1028
|
+
}
|
|
1029
|
+
onPopupMenuOpen(popupMenu) {
|
|
1030
|
+
if (this.currentPopupMenu() === popupMenu) return;
|
|
1031
|
+
this.currentPopupMenu.set(popupMenu);
|
|
1032
|
+
}
|
|
1033
|
+
closeCurrentMenu() {
|
|
1034
|
+
if (this.currentPopupMenu()) this.currentPopupMenu()?.closeMenu();
|
|
1035
|
+
}
|
|
1036
|
+
findCurrentMenuIndex() {
|
|
1037
|
+
let currentIndex = this.menuList().findIndex((n) => n.popupMenu === this.currentPopupMenu());
|
|
1038
|
+
if (currentIndex < 0) {
|
|
1039
|
+
const focusedElement = this.#document.activeElement;
|
|
1040
|
+
if (focusedElement && focusedElement.hasAttribute("data-mid")) {
|
|
1041
|
+
const uid = focusedElement.getAttribute("data-mid");
|
|
1042
|
+
currentIndex = this.menuList().findIndex((m) => m.uid === uid);
|
|
1043
|
+
}
|
|
1044
|
+
}
|
|
1045
|
+
return currentIndex >= 0 ? currentIndex : null;
|
|
1046
|
+
}
|
|
1047
|
+
findMenuElementByUid(uid) {
|
|
1048
|
+
if (this.menuList().findIndex((m) => m.uid === uid) < 0) return null;
|
|
1049
|
+
return this.#hostElementRef.nativeElement.querySelector(`li[data-mid="${uid}"]`);
|
|
1050
|
+
}
|
|
1051
|
+
findNextMenuIndex() {
|
|
1052
|
+
const menuList = this.menuList();
|
|
1053
|
+
if (menuList.length === 0) return -1;
|
|
1054
|
+
const currentIndex = this.findCurrentMenuIndex();
|
|
1055
|
+
return currentIndex == null ? 0 : (currentIndex + 1) % menuList.length;
|
|
1056
|
+
}
|
|
1057
|
+
findPreviousMenuIndex() {
|
|
1058
|
+
const menuList = this.menuList();
|
|
1059
|
+
if (menuList.length === 0) return -1;
|
|
1060
|
+
const currentIndex = this.findCurrentMenuIndex();
|
|
1061
|
+
return currentIndex == null ? menuList.length - 1 : (currentIndex - 1 + menuList.length) % menuList.length;
|
|
1062
|
+
}
|
|
1063
|
+
focusMenuAt(index) {
|
|
1064
|
+
const menu = this.menuList()[index];
|
|
1065
|
+
if (menu) {
|
|
1066
|
+
this.activeIndex.set(index);
|
|
1067
|
+
this.findMenuElementByUid(menu.uid)?.focus();
|
|
1068
|
+
}
|
|
1069
|
+
}
|
|
1070
|
+
moveToFirstMenu() {
|
|
1071
|
+
if (this.menuList().length > 0) this.focusMenuAt(0);
|
|
1072
|
+
}
|
|
1073
|
+
moveToLastMenu() {
|
|
1074
|
+
const length = this.menuList().length;
|
|
1075
|
+
if (length > 0) this.focusMenuAt(length - 1);
|
|
1076
|
+
}
|
|
1077
|
+
moveToMenuStartingWith(character) {
|
|
1078
|
+
const menuList = this.menuList();
|
|
1079
|
+
const currentIndex = this.findCurrentMenuIndex() ?? -1;
|
|
1080
|
+
const key = character.toLocaleLowerCase();
|
|
1081
|
+
for (let offset = 1; offset <= menuList.length; offset++) {
|
|
1082
|
+
const index = (currentIndex + offset) % menuList.length;
|
|
1083
|
+
if (menuList[index].text().trim().toLocaleLowerCase().startsWith(key)) {
|
|
1084
|
+
this.focusMenuAt(index);
|
|
1085
|
+
return;
|
|
1086
|
+
}
|
|
1087
|
+
}
|
|
1088
|
+
}
|
|
1089
|
+
moveToNextMenu() {
|
|
1090
|
+
const index = this.findNextMenuIndex();
|
|
1091
|
+
if (index >= 0) this.focusMenuAt(index);
|
|
1092
|
+
}
|
|
1093
|
+
moveToPreviousMenu() {
|
|
1094
|
+
const index = this.findPreviousMenuIndex();
|
|
1095
|
+
if (index >= 0) this.focusMenuAt(index);
|
|
1096
|
+
}
|
|
1097
|
+
setNavigationSubscription() {
|
|
1098
|
+
this.navigate$.pipe(takeUntilDestroyed(this.#destroyRef), tap((event) => {
|
|
1099
|
+
const isRtl = this.isRtl();
|
|
1100
|
+
const nextDir = isRtl ? "left" : "right";
|
|
1101
|
+
const prevDir = isRtl ? "right" : "left";
|
|
1102
|
+
if (event.direction === nextDir && (event.level === 0 || !event.item)) {
|
|
1103
|
+
const index = this.findNextMenuIndex();
|
|
1104
|
+
if (index >= 0) this.updateCurrentMenuData(index);
|
|
1105
|
+
} else if (event.direction === prevDir && event.level === 0 && !event.item) {
|
|
1106
|
+
const index = this.findPreviousMenuIndex();
|
|
1107
|
+
if (index >= 0) this.updateCurrentMenuData(index);
|
|
1108
|
+
}
|
|
1109
|
+
})).subscribe();
|
|
1110
|
+
}
|
|
1111
|
+
setSubscriptions() {
|
|
1112
|
+
this.setNavigationSubscription();
|
|
1113
|
+
}
|
|
1114
|
+
updateCurrentMenuData(index) {
|
|
1115
|
+
const menu = this.menuList()[index];
|
|
1116
|
+
this.currentPopupMenu()?.clearFocusRestoration();
|
|
1117
|
+
this.currentPopupMenu()?.closeMenu();
|
|
1118
|
+
this.currentPopupMenu.set(null);
|
|
1119
|
+
this.activeIndex.set(index);
|
|
1120
|
+
if (menu.disabled() || menu.menuItems().length === 0 || !menu.popupMenu) {
|
|
1121
|
+
this.findMenuElementByUid(menu.uid)?.focus();
|
|
1122
|
+
return;
|
|
1123
|
+
}
|
|
1124
|
+
this.currentPopupMenu.set(menu.popupMenu);
|
|
1125
|
+
menu.popupMenu.openMenuViaKeyboard();
|
|
1126
|
+
}
|
|
1127
|
+
static {
|
|
1128
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
1129
|
+
minVersion: "12.0.0",
|
|
1130
|
+
version: "22.2.6",
|
|
1131
|
+
ngImport: i0,
|
|
1132
|
+
type: MenubarComponent,
|
|
1133
|
+
deps: [],
|
|
1134
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
1135
|
+
});
|
|
1136
|
+
}
|
|
1137
|
+
static {
|
|
1138
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
1139
|
+
minVersion: "17.0.0",
|
|
1140
|
+
version: "22.2.6",
|
|
1141
|
+
type: MenubarComponent,
|
|
1142
|
+
isStandalone: true,
|
|
1143
|
+
selector: "mona-menubar",
|
|
1144
|
+
inputs: {
|
|
1145
|
+
ariaLabel: {
|
|
1146
|
+
classPropertyName: "ariaLabel",
|
|
1147
|
+
publicName: "aria-label",
|
|
1148
|
+
isSignal: true,
|
|
1149
|
+
isRequired: false,
|
|
1150
|
+
transformFunction: null
|
|
1151
|
+
},
|
|
1152
|
+
ariaLabelledBy: {
|
|
1153
|
+
classPropertyName: "ariaLabelledBy",
|
|
1154
|
+
publicName: "aria-labelledby",
|
|
1155
|
+
isSignal: true,
|
|
1156
|
+
isRequired: false,
|
|
1157
|
+
transformFunction: null
|
|
1158
|
+
},
|
|
1159
|
+
disabled: {
|
|
1160
|
+
classPropertyName: "disabled",
|
|
1161
|
+
publicName: "disabled",
|
|
1162
|
+
isSignal: true,
|
|
1163
|
+
isRequired: false,
|
|
1164
|
+
transformFunction: null
|
|
1165
|
+
},
|
|
1166
|
+
rounded: {
|
|
1167
|
+
classPropertyName: "rounded",
|
|
1168
|
+
publicName: "rounded",
|
|
1169
|
+
isSignal: true,
|
|
1170
|
+
isRequired: false,
|
|
1171
|
+
transformFunction: null
|
|
1172
|
+
},
|
|
1173
|
+
size: {
|
|
1174
|
+
classPropertyName: "size",
|
|
1175
|
+
publicName: "size",
|
|
1176
|
+
isSignal: true,
|
|
1177
|
+
isRequired: false,
|
|
1178
|
+
transformFunction: null
|
|
1179
|
+
},
|
|
1180
|
+
userClasses: {
|
|
1181
|
+
classPropertyName: "userClasses",
|
|
1182
|
+
publicName: "class",
|
|
1183
|
+
isSignal: true,
|
|
1184
|
+
isRequired: false,
|
|
1185
|
+
transformFunction: null
|
|
1186
|
+
}
|
|
1187
|
+
},
|
|
1188
|
+
outputs: { menuItemClick: "menuItemClick" },
|
|
1189
|
+
host: { properties: {
|
|
1190
|
+
"attr.aria-label": "null",
|
|
1191
|
+
"attr.aria-labelledby": "null",
|
|
1192
|
+
"class": "baseClasses()",
|
|
1193
|
+
"attr.data-disabled": "disabled()"
|
|
1194
|
+
} },
|
|
1195
|
+
queries: [
|
|
1196
|
+
{
|
|
1197
|
+
propertyName: "groupTemplate",
|
|
1198
|
+
first: true,
|
|
1199
|
+
predicate: MenuGroupTemplateDirective,
|
|
1200
|
+
read: TemplateRef,
|
|
1201
|
+
isSignal: true
|
|
1202
|
+
},
|
|
1203
|
+
{
|
|
1204
|
+
propertyName: "iconTemplate",
|
|
1205
|
+
first: true,
|
|
1206
|
+
predicate: MenuIconTemplateDirective,
|
|
1207
|
+
read: TemplateRef,
|
|
1208
|
+
isSignal: true
|
|
1209
|
+
},
|
|
1210
|
+
{
|
|
1211
|
+
propertyName: "menuItemIconTemplate",
|
|
1212
|
+
first: true,
|
|
1213
|
+
predicate: MenuItemIconTemplateDirective,
|
|
1214
|
+
read: TemplateRef,
|
|
1215
|
+
isSignal: true
|
|
1216
|
+
},
|
|
1217
|
+
{
|
|
1218
|
+
propertyName: "menuItemShortcutTemplate",
|
|
1219
|
+
first: true,
|
|
1220
|
+
predicate: MenuItemShortcutTemplateDirective,
|
|
1221
|
+
read: TemplateRef,
|
|
1222
|
+
isSignal: true
|
|
1223
|
+
},
|
|
1224
|
+
{
|
|
1225
|
+
propertyName: "menuItemTextTemplate",
|
|
1226
|
+
first: true,
|
|
1227
|
+
predicate: MenuItemTextTemplateDirective,
|
|
1228
|
+
read: TemplateRef,
|
|
1229
|
+
isSignal: true
|
|
1230
|
+
},
|
|
1231
|
+
{
|
|
1232
|
+
propertyName: "menuList",
|
|
1233
|
+
predicate: MenuComponent,
|
|
1234
|
+
isSignal: true
|
|
1235
|
+
},
|
|
1236
|
+
{
|
|
1237
|
+
propertyName: "textTemplate",
|
|
1238
|
+
first: true,
|
|
1239
|
+
predicate: MenuTextTemplateDirective,
|
|
1240
|
+
read: TemplateRef,
|
|
1241
|
+
isSignal: true
|
|
1242
|
+
}
|
|
1243
|
+
],
|
|
1244
|
+
viewQueries: [{
|
|
1245
|
+
propertyName: "popupMenuComponents",
|
|
1246
|
+
predicate: PopupMenuComponent,
|
|
1247
|
+
descendants: true,
|
|
1248
|
+
isSignal: true
|
|
1249
|
+
}],
|
|
1250
|
+
ngImport: i0,
|
|
1251
|
+
template: "<ul\n [class]=\"listClasses()\"\n role=\"menubar\"\n [attr.aria-disabled]=\"disabled()\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\">\n @for (item of menuList(); track item; let i = $index) {\n @let menuIconTemplate = item.iconTemplate() ?? iconTemplate() ?? null;\n @let menuTextTemplate = item.textTemplate() ?? textTemplate() ?? null;\n @let menuId = item.uid + \"-menu\";\n @let hasItems = item.menuItems().length > 0;\n @let isOpen = currentPopupMenu() !== null && currentPopupMenu() === item.popupMenu;\n <li\n [class]=\"listItemClasses()\"\n [attr.data-disabled]=\"disabled() || item.disabled()\"\n [attr.data-active]=\"isOpen\"\n [attr.data-mid]=\"item.uid\"\n [id]=\"item.uid + '-item'\"\n [attr.tabindex]=\"disabled() ? -1 : i === activeIndex() ? 0 : -1\"\n [attr.role]=\"'menuitem'\"\n [attr.aria-haspopup]=\"hasItems ? 'menu' : null\"\n [attr.aria-expanded]=\"hasItems ? (isOpen ? 'true' : 'false') : null\"\n [attr.aria-controls]=\"isOpen ? menuId : null\"\n [attr.aria-disabled]=\"disabled() || item.disabled()\"\n (pointerenter)=\"onMenuPointerEnter(item, popupMenu)\"\n (keydown)=\"onMenuKeyDown($event, item, popupMenu)\"\n (click)=\"onMenuClick($event, item)\"\n (focus)=\"onMenuFocus(i)\"\n #listItemElement>\n @if (menuIconTemplate) {\n <ng-container\n [ngTemplateOutlet]=\"menuIconTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: item.text(), items: item.menuItems() }\"></ng-container>\n }\n @if (!menuTextTemplate) {\n <span>{{ item.text() }}</span>\n } @else {\n <ng-container\n [ngTemplateOutlet]=\"menuTextTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: item.text(), items: item.menuItems() }\">\n </ng-container>\n }\n <mona-popup-menu\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [target]=\"listItemElement\"\n [anchorConnectionPoint]=\"'bottomleft'\"\n [popupConnectionPoint]=\"'topleft'\"\n (menuClick)=\"onMenuItemClick($event)\"\n (navigate)=\"navigate$.next($event)\"\n [trigger]=\"hasItems && !item.disabled() && !disabled() ? 'click' : 'none'\"\n [offset]=\"{ horizontal: 0, vertical: 2 }\"\n (close)=\"onPopupMenuClose()\"\n (open)=\"onPopupMenuOpen(popupMenu)\"\n [items]=\"item.menuItems()\"\n [id]=\"menuId\"\n #popupMenu>\n @if (groupTemplate()) {\n <ng-template monaPopupMenuGroupTemplate let-group>\n <ng-container\n [ngTemplateOutlet]=\"groupTemplate()\"\n [ngTemplateOutletContext]=\"{ $implicit: group }\"></ng-container>\n </ng-template>\n }\n @if (menuItemIconTemplate()) {\n <ng-template monaPopupMenuIconTemplate let-item>\n <ng-container\n [ngTemplateOutlet]=\"menuItemIconTemplate()\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-container>\n </ng-template>\n }\n @if (menuItemShortcutTemplate()) {\n <ng-template monaPopupMenuShortcutTemplate let-item>\n <ng-container\n [ngTemplateOutlet]=\"menuItemShortcutTemplate()\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-container>\n </ng-template>\n }\n @if (menuItemTextTemplate()) {\n <ng-template monaPopupMenuTextTemplate let-item>\n <ng-container\n [ngTemplateOutlet]=\"menuItemTextTemplate()\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-container>\n </ng-template>\n }\n </mona-popup-menu>\n </li>\n }\n</ul>\n",
|
|
1252
|
+
dependencies: [
|
|
1253
|
+
{
|
|
1254
|
+
kind: "directive",
|
|
1255
|
+
type: NgTemplateOutlet,
|
|
1256
|
+
selector: "[ngTemplateOutlet]",
|
|
1257
|
+
inputs: [
|
|
1258
|
+
"ngTemplateOutletContext",
|
|
1259
|
+
"ngTemplateOutlet",
|
|
1260
|
+
"ngTemplateOutletInjector"
|
|
1261
|
+
]
|
|
1262
|
+
},
|
|
1263
|
+
{
|
|
1264
|
+
kind: "component",
|
|
1265
|
+
type: PopupMenuComponent,
|
|
1266
|
+
selector: "mona-popup-menu",
|
|
1267
|
+
inputs: [
|
|
1268
|
+
"anchor",
|
|
1269
|
+
"anchorConnectionPoint",
|
|
1270
|
+
"aria-label",
|
|
1271
|
+
"aria-labelledby",
|
|
1272
|
+
"items",
|
|
1273
|
+
"id",
|
|
1274
|
+
"minWidth",
|
|
1275
|
+
"offset",
|
|
1276
|
+
"openAtPointer",
|
|
1277
|
+
"popupConnectionPoint",
|
|
1278
|
+
"rounded",
|
|
1279
|
+
"size",
|
|
1280
|
+
"target",
|
|
1281
|
+
"trigger",
|
|
1282
|
+
"class",
|
|
1283
|
+
"width"
|
|
1284
|
+
],
|
|
1285
|
+
outputs: [
|
|
1286
|
+
"close",
|
|
1287
|
+
"menuClick",
|
|
1288
|
+
"navigate",
|
|
1289
|
+
"open"
|
|
1290
|
+
]
|
|
1291
|
+
},
|
|
1292
|
+
{
|
|
1293
|
+
kind: "directive",
|
|
1294
|
+
type: PopupMenuTextTemplateDirective,
|
|
1295
|
+
selector: "ng-template[monaPopupMenuTextTemplate]"
|
|
1296
|
+
},
|
|
1297
|
+
{
|
|
1298
|
+
kind: "directive",
|
|
1299
|
+
type: PopupMenuIconTemplateDirective,
|
|
1300
|
+
selector: "ng-template[monaPopupMenuIconTemplate]"
|
|
1301
|
+
},
|
|
1302
|
+
{
|
|
1303
|
+
kind: "directive",
|
|
1304
|
+
type: PopupMenuShortcutTemplateDirective,
|
|
1305
|
+
selector: "ng-template[monaPopupMenuShortcutTemplate]"
|
|
1306
|
+
},
|
|
1307
|
+
{
|
|
1308
|
+
kind: "directive",
|
|
1309
|
+
type: PopupMenuGroupTemplateDirective,
|
|
1310
|
+
selector: "ng-template[monaPopupMenuGroupTemplate]"
|
|
1311
|
+
}
|
|
1312
|
+
]
|
|
1313
|
+
});
|
|
1314
|
+
}
|
|
1315
|
+
};
|
|
1316
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
1317
|
+
minVersion: "12.0.0",
|
|
1318
|
+
version: "22.2.6",
|
|
1319
|
+
ngImport: i0,
|
|
1320
|
+
type: MenubarComponent,
|
|
1321
|
+
decorators: [{
|
|
1322
|
+
type: Component,
|
|
1323
|
+
args: [{
|
|
1324
|
+
selector: "mona-menubar",
|
|
1325
|
+
imports: [
|
|
1326
|
+
NgTemplateOutlet,
|
|
1327
|
+
PopupMenuComponent,
|
|
1328
|
+
PopupMenuTextTemplateDirective,
|
|
1329
|
+
PopupMenuIconTemplateDirective,
|
|
1330
|
+
PopupMenuShortcutTemplateDirective,
|
|
1331
|
+
PopupMenuGroupTemplateDirective
|
|
1332
|
+
],
|
|
1333
|
+
host: {
|
|
1334
|
+
"[attr.aria-label]": "null",
|
|
1335
|
+
"[attr.aria-labelledby]": "null",
|
|
1336
|
+
"[class]": "baseClasses()",
|
|
1337
|
+
"[attr.data-disabled]": "disabled()"
|
|
1338
|
+
},
|
|
1339
|
+
template: "<ul\n [class]=\"listClasses()\"\n role=\"menubar\"\n [attr.aria-disabled]=\"disabled()\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\">\n @for (item of menuList(); track item; let i = $index) {\n @let menuIconTemplate = item.iconTemplate() ?? iconTemplate() ?? null;\n @let menuTextTemplate = item.textTemplate() ?? textTemplate() ?? null;\n @let menuId = item.uid + \"-menu\";\n @let hasItems = item.menuItems().length > 0;\n @let isOpen = currentPopupMenu() !== null && currentPopupMenu() === item.popupMenu;\n <li\n [class]=\"listItemClasses()\"\n [attr.data-disabled]=\"disabled() || item.disabled()\"\n [attr.data-active]=\"isOpen\"\n [attr.data-mid]=\"item.uid\"\n [id]=\"item.uid + '-item'\"\n [attr.tabindex]=\"disabled() ? -1 : i === activeIndex() ? 0 : -1\"\n [attr.role]=\"'menuitem'\"\n [attr.aria-haspopup]=\"hasItems ? 'menu' : null\"\n [attr.aria-expanded]=\"hasItems ? (isOpen ? 'true' : 'false') : null\"\n [attr.aria-controls]=\"isOpen ? menuId : null\"\n [attr.aria-disabled]=\"disabled() || item.disabled()\"\n (pointerenter)=\"onMenuPointerEnter(item, popupMenu)\"\n (keydown)=\"onMenuKeyDown($event, item, popupMenu)\"\n (click)=\"onMenuClick($event, item)\"\n (focus)=\"onMenuFocus(i)\"\n #listItemElement>\n @if (menuIconTemplate) {\n <ng-container\n [ngTemplateOutlet]=\"menuIconTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: item.text(), items: item.menuItems() }\"></ng-container>\n }\n @if (!menuTextTemplate) {\n <span>{{ item.text() }}</span>\n } @else {\n <ng-container\n [ngTemplateOutlet]=\"menuTextTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: item.text(), items: item.menuItems() }\">\n </ng-container>\n }\n <mona-popup-menu\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [target]=\"listItemElement\"\n [anchorConnectionPoint]=\"'bottomleft'\"\n [popupConnectionPoint]=\"'topleft'\"\n (menuClick)=\"onMenuItemClick($event)\"\n (navigate)=\"navigate$.next($event)\"\n [trigger]=\"hasItems && !item.disabled() && !disabled() ? 'click' : 'none'\"\n [offset]=\"{ horizontal: 0, vertical: 2 }\"\n (close)=\"onPopupMenuClose()\"\n (open)=\"onPopupMenuOpen(popupMenu)\"\n [items]=\"item.menuItems()\"\n [id]=\"menuId\"\n #popupMenu>\n @if (groupTemplate()) {\n <ng-template monaPopupMenuGroupTemplate let-group>\n <ng-container\n [ngTemplateOutlet]=\"groupTemplate()\"\n [ngTemplateOutletContext]=\"{ $implicit: group }\"></ng-container>\n </ng-template>\n }\n @if (menuItemIconTemplate()) {\n <ng-template monaPopupMenuIconTemplate let-item>\n <ng-container\n [ngTemplateOutlet]=\"menuItemIconTemplate()\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-container>\n </ng-template>\n }\n @if (menuItemShortcutTemplate()) {\n <ng-template monaPopupMenuShortcutTemplate let-item>\n <ng-container\n [ngTemplateOutlet]=\"menuItemShortcutTemplate()\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-container>\n </ng-template>\n }\n @if (menuItemTextTemplate()) {\n <ng-template monaPopupMenuTextTemplate let-item>\n <ng-container\n [ngTemplateOutlet]=\"menuItemTextTemplate()\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-container>\n </ng-template>\n }\n </mona-popup-menu>\n </li>\n }\n</ul>\n"
|
|
1340
|
+
}]
|
|
1341
|
+
}],
|
|
1342
|
+
ctorParameters: () => [],
|
|
1343
|
+
propDecorators: {
|
|
1344
|
+
groupTemplate: [{
|
|
1345
|
+
type: i0.ContentChild,
|
|
1346
|
+
args: [i0.forwardRef(() => MenuGroupTemplateDirective), {
|
|
1347
|
+
read: TemplateRef,
|
|
1348
|
+
descendants: false,
|
|
1349
|
+
isSignal: true
|
|
1350
|
+
}]
|
|
1351
|
+
}],
|
|
1352
|
+
iconTemplate: [{
|
|
1353
|
+
type: i0.ContentChild,
|
|
1354
|
+
args: [i0.forwardRef(() => MenuIconTemplateDirective), {
|
|
1355
|
+
read: TemplateRef,
|
|
1356
|
+
descendants: false,
|
|
1357
|
+
isSignal: true
|
|
1358
|
+
}]
|
|
1359
|
+
}],
|
|
1360
|
+
menuItemIconTemplate: [{
|
|
1361
|
+
type: i0.ContentChild,
|
|
1362
|
+
args: [i0.forwardRef(() => MenuItemIconTemplateDirective), {
|
|
1363
|
+
read: TemplateRef,
|
|
1364
|
+
descendants: false,
|
|
1365
|
+
isSignal: true
|
|
1366
|
+
}]
|
|
1367
|
+
}],
|
|
1368
|
+
menuItemShortcutTemplate: [{
|
|
1369
|
+
type: i0.ContentChild,
|
|
1370
|
+
args: [i0.forwardRef(() => MenuItemShortcutTemplateDirective), {
|
|
1371
|
+
read: TemplateRef,
|
|
1372
|
+
descendants: false,
|
|
1373
|
+
isSignal: true
|
|
1374
|
+
}]
|
|
1375
|
+
}],
|
|
1376
|
+
menuItemTextTemplate: [{
|
|
1377
|
+
type: i0.ContentChild,
|
|
1378
|
+
args: [i0.forwardRef(() => MenuItemTextTemplateDirective), {
|
|
1379
|
+
read: TemplateRef,
|
|
1380
|
+
descendants: false,
|
|
1381
|
+
isSignal: true
|
|
1382
|
+
}]
|
|
1383
|
+
}],
|
|
1384
|
+
menuList: [{
|
|
1385
|
+
type: i0.ContentChildren,
|
|
1386
|
+
args: [i0.forwardRef(() => MenuComponent), { isSignal: true }]
|
|
1387
|
+
}],
|
|
1388
|
+
popupMenuComponents: [{
|
|
1389
|
+
type: i0.ViewChildren,
|
|
1390
|
+
args: [i0.forwardRef(() => PopupMenuComponent), { isSignal: true }]
|
|
1391
|
+
}],
|
|
1392
|
+
textTemplate: [{
|
|
1393
|
+
type: i0.ContentChild,
|
|
1394
|
+
args: [i0.forwardRef(() => MenuTextTemplateDirective), {
|
|
1395
|
+
read: TemplateRef,
|
|
1396
|
+
descendants: false,
|
|
1397
|
+
isSignal: true
|
|
1398
|
+
}]
|
|
1399
|
+
}],
|
|
1400
|
+
ariaLabel: [{
|
|
1401
|
+
type: i0.Input,
|
|
1402
|
+
args: [{
|
|
1403
|
+
isSignal: true,
|
|
1404
|
+
alias: "aria-label",
|
|
1405
|
+
required: false
|
|
1406
|
+
}]
|
|
1407
|
+
}],
|
|
1408
|
+
ariaLabelledBy: [{
|
|
1409
|
+
type: i0.Input,
|
|
1410
|
+
args: [{
|
|
1411
|
+
isSignal: true,
|
|
1412
|
+
alias: "aria-labelledby",
|
|
1413
|
+
required: false
|
|
1414
|
+
}]
|
|
1415
|
+
}],
|
|
1416
|
+
disabled: [{
|
|
1417
|
+
type: i0.Input,
|
|
1418
|
+
args: [{
|
|
1419
|
+
isSignal: true,
|
|
1420
|
+
alias: "disabled",
|
|
1421
|
+
required: false
|
|
1422
|
+
}]
|
|
1423
|
+
}],
|
|
1424
|
+
menuItemClick: [{
|
|
1425
|
+
type: i0.Output,
|
|
1426
|
+
args: ["menuItemClick"]
|
|
1427
|
+
}],
|
|
1428
|
+
rounded: [{
|
|
1429
|
+
type: i0.Input,
|
|
1430
|
+
args: [{
|
|
1431
|
+
isSignal: true,
|
|
1432
|
+
alias: "rounded",
|
|
1433
|
+
required: false
|
|
1434
|
+
}]
|
|
1435
|
+
}],
|
|
1436
|
+
size: [{
|
|
1437
|
+
type: i0.Input,
|
|
1438
|
+
args: [{
|
|
1439
|
+
isSignal: true,
|
|
1440
|
+
alias: "size",
|
|
1441
|
+
required: false
|
|
1442
|
+
}]
|
|
1443
|
+
}],
|
|
1444
|
+
userClasses: [{
|
|
1445
|
+
type: i0.Input,
|
|
1446
|
+
args: [{
|
|
1447
|
+
isSignal: true,
|
|
1448
|
+
alias: "class",
|
|
1449
|
+
required: false
|
|
1450
|
+
}]
|
|
1451
|
+
}]
|
|
1452
|
+
}
|
|
1453
|
+
});
|
|
873
1454
|
export { MenuCheckboxItemComponent, MenuComponent, MenuGroupComponent, MenuGroupTemplateDirective, MenuIconTemplateDirective, MenuItemComponent, MenuItemIconTemplateDirective, MenuItemShortcutTemplateDirective, MenuItemTextTemplateDirective, MenuRadioGroupComponent, MenuRadioItemComponent, MenuSeparatorComponent, MenuTextTemplateDirective, MenubarComponent };
|
|
874
|
-
|
|
1455
|
+
|
|
1456
|
+
//# sourceMappingURL=nanahoshi-mona-ui-menubar.mjs.map
|