@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,543 +1,989 @@
|
|
|
1
|
-
import { NgTemplateOutlet } from
|
|
2
|
-
import * as i0 from
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { createElementControlId } from
|
|
7
|
-
import { any } from
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
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
|
-
|
|
1
|
+
import { NgTemplateOutlet } from "@angular/common";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import { Component, DOCUMENT, Directive, ElementRef, TemplateRef, afterRenderEffect, computed, contentChild, contentChildren, effect, forwardRef, inject, input, output, signal, untracked, viewChild } from "@angular/core";
|
|
4
|
+
import { PopupMenuCheckboxItemComponent, PopupMenuComponent, PopupMenuGroupComponent, PopupMenuGroupTemplateDirective, PopupMenuIconTemplateDirective, PopupMenuItemComponent, PopupMenuRadioGroupComponent, PopupMenuRadioItemComponent, PopupMenuSeparatorComponent, PopupMenuShortcutTemplateDirective, PopupMenuTextTemplateDirective } from "@nanahoshi/mona-ui/popup-menu";
|
|
5
|
+
import { PopupMenuGroupTemplateToken, PopupMenuIconTemplateToken, PopupMenuItemType, PopupMenuOrigin, PopupMenuRadioItemToken, PopupMenuShortcutTemplateToken, PopupMenuTemplateOrigin, PopupMenuTemplateType, PopupMenuTextTemplateToken, PopupMenuToken, ensurePopupComponentTypes, ensurePopupTemplateTypes } from "@nanahoshi/mona-ui/internal/popup-menu";
|
|
6
|
+
import { createElementControlId } from "@nanahoshi/mona-ui/internal";
|
|
7
|
+
import { any } from "@mirei/ts-collections";
|
|
8
|
+
var ContextMenuGroupTemplateDirective = class ContextMenuGroupTemplateDirective extends PopupMenuGroupTemplateDirective {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
this.origin = PopupMenuTemplateOrigin.ContextMenu;
|
|
12
|
+
}
|
|
13
|
+
static {
|
|
14
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
15
|
+
minVersion: "12.0.0",
|
|
16
|
+
version: "22.2.6",
|
|
17
|
+
ngImport: i0,
|
|
18
|
+
type: ContextMenuGroupTemplateDirective,
|
|
19
|
+
deps: null,
|
|
20
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
static {
|
|
24
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
25
|
+
minVersion: "14.0.0",
|
|
26
|
+
version: "22.2.6",
|
|
27
|
+
type: ContextMenuGroupTemplateDirective,
|
|
28
|
+
isStandalone: true,
|
|
29
|
+
selector: "ng-template[monaContextMenuGroupTemplate]",
|
|
30
|
+
providers: [{
|
|
31
|
+
provide: PopupMenuGroupTemplateToken,
|
|
32
|
+
useExisting: forwardRef(() => ContextMenuGroupTemplateDirective)
|
|
33
|
+
}],
|
|
34
|
+
usesInheritance: true,
|
|
35
|
+
ngImport: i0
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
40
|
+
minVersion: "12.0.0",
|
|
41
|
+
version: "22.2.6",
|
|
42
|
+
ngImport: i0,
|
|
43
|
+
type: ContextMenuGroupTemplateDirective,
|
|
44
|
+
decorators: [{
|
|
45
|
+
type: Directive,
|
|
46
|
+
args: [{
|
|
47
|
+
selector: "ng-template[monaContextMenuGroupTemplate]",
|
|
48
|
+
providers: [{
|
|
49
|
+
provide: PopupMenuGroupTemplateToken,
|
|
50
|
+
useExisting: forwardRef(() => ContextMenuGroupTemplateDirective)
|
|
51
|
+
}]
|
|
52
|
+
}]
|
|
53
|
+
}]
|
|
54
|
+
});
|
|
55
|
+
var ContextMenuIconTemplateDirective = class ContextMenuIconTemplateDirective extends PopupMenuIconTemplateDirective {
|
|
56
|
+
constructor() {
|
|
57
|
+
super(...arguments);
|
|
58
|
+
this.origin = PopupMenuTemplateOrigin.ContextMenu;
|
|
59
|
+
}
|
|
60
|
+
static {
|
|
61
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
62
|
+
minVersion: "12.0.0",
|
|
63
|
+
version: "22.2.6",
|
|
64
|
+
ngImport: i0,
|
|
65
|
+
type: ContextMenuIconTemplateDirective,
|
|
66
|
+
deps: null,
|
|
67
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
static {
|
|
71
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
72
|
+
minVersion: "14.0.0",
|
|
73
|
+
version: "22.2.6",
|
|
74
|
+
type: ContextMenuIconTemplateDirective,
|
|
75
|
+
isStandalone: true,
|
|
76
|
+
selector: "ng-template[monaContextMenuIconTemplate]",
|
|
77
|
+
providers: [{
|
|
78
|
+
provide: PopupMenuIconTemplateToken,
|
|
79
|
+
useExisting: forwardRef(() => ContextMenuIconTemplateDirective)
|
|
80
|
+
}],
|
|
81
|
+
usesInheritance: true,
|
|
82
|
+
ngImport: i0
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
87
|
+
minVersion: "12.0.0",
|
|
88
|
+
version: "22.2.6",
|
|
89
|
+
ngImport: i0,
|
|
90
|
+
type: ContextMenuIconTemplateDirective,
|
|
91
|
+
decorators: [{
|
|
92
|
+
type: Directive,
|
|
93
|
+
args: [{
|
|
94
|
+
selector: "ng-template[monaContextMenuIconTemplate]",
|
|
95
|
+
providers: [{
|
|
96
|
+
provide: PopupMenuIconTemplateToken,
|
|
97
|
+
useExisting: forwardRef(() => ContextMenuIconTemplateDirective)
|
|
98
|
+
}]
|
|
99
|
+
}]
|
|
100
|
+
}]
|
|
101
|
+
});
|
|
102
|
+
var ContextMenuShortcutTemplateDirective = class ContextMenuShortcutTemplateDirective extends PopupMenuShortcutTemplateDirective {
|
|
103
|
+
constructor() {
|
|
104
|
+
super(...arguments);
|
|
105
|
+
this.origin = PopupMenuTemplateOrigin.ContextMenu;
|
|
106
|
+
}
|
|
107
|
+
static {
|
|
108
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
109
|
+
minVersion: "12.0.0",
|
|
110
|
+
version: "22.2.6",
|
|
111
|
+
ngImport: i0,
|
|
112
|
+
type: ContextMenuShortcutTemplateDirective,
|
|
113
|
+
deps: null,
|
|
114
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
static {
|
|
118
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
119
|
+
minVersion: "14.0.0",
|
|
120
|
+
version: "22.2.6",
|
|
121
|
+
type: ContextMenuShortcutTemplateDirective,
|
|
122
|
+
isStandalone: true,
|
|
123
|
+
selector: "ng-template[monaContextMenuShortcutTemplate]",
|
|
124
|
+
providers: [{
|
|
125
|
+
provide: PopupMenuShortcutTemplateToken,
|
|
126
|
+
useExisting: forwardRef(() => ContextMenuShortcutTemplateDirective)
|
|
127
|
+
}],
|
|
128
|
+
usesInheritance: true,
|
|
129
|
+
ngImport: i0
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
};
|
|
133
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
134
|
+
minVersion: "12.0.0",
|
|
135
|
+
version: "22.2.6",
|
|
136
|
+
ngImport: i0,
|
|
137
|
+
type: ContextMenuShortcutTemplateDirective,
|
|
138
|
+
decorators: [{
|
|
139
|
+
type: Directive,
|
|
140
|
+
args: [{
|
|
141
|
+
selector: "ng-template[monaContextMenuShortcutTemplate]",
|
|
142
|
+
providers: [{
|
|
143
|
+
provide: PopupMenuShortcutTemplateToken,
|
|
144
|
+
useExisting: forwardRef(() => ContextMenuShortcutTemplateDirective)
|
|
145
|
+
}]
|
|
146
|
+
}]
|
|
147
|
+
}]
|
|
148
|
+
});
|
|
149
|
+
var ContextMenuTextTemplateDirective = class ContextMenuTextTemplateDirective extends PopupMenuTextTemplateDirective {
|
|
150
|
+
constructor() {
|
|
151
|
+
super(...arguments);
|
|
152
|
+
this.origin = PopupMenuTemplateOrigin.ContextMenu;
|
|
153
|
+
}
|
|
154
|
+
static {
|
|
155
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
156
|
+
minVersion: "12.0.0",
|
|
157
|
+
version: "22.2.6",
|
|
158
|
+
ngImport: i0,
|
|
159
|
+
type: ContextMenuTextTemplateDirective,
|
|
160
|
+
deps: null,
|
|
161
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
static {
|
|
165
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
166
|
+
minVersion: "14.0.0",
|
|
167
|
+
version: "22.2.6",
|
|
168
|
+
type: ContextMenuTextTemplateDirective,
|
|
169
|
+
isStandalone: true,
|
|
170
|
+
selector: "ng-template[monaContextMenuTextTemplate]",
|
|
171
|
+
providers: [{
|
|
172
|
+
provide: PopupMenuTextTemplateToken,
|
|
173
|
+
useExisting: forwardRef(() => ContextMenuTextTemplateDirective)
|
|
174
|
+
}],
|
|
175
|
+
usesInheritance: true,
|
|
176
|
+
ngImport: i0
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
};
|
|
180
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
181
|
+
minVersion: "12.0.0",
|
|
182
|
+
version: "22.2.6",
|
|
183
|
+
ngImport: i0,
|
|
184
|
+
type: ContextMenuTextTemplateDirective,
|
|
185
|
+
decorators: [{
|
|
186
|
+
type: Directive,
|
|
187
|
+
args: [{
|
|
188
|
+
selector: "ng-template[monaContextMenuTextTemplate]",
|
|
189
|
+
providers: [{
|
|
190
|
+
provide: PopupMenuTextTemplateToken,
|
|
191
|
+
useExisting: forwardRef(() => ContextMenuTextTemplateDirective)
|
|
192
|
+
}]
|
|
193
|
+
}]
|
|
194
|
+
}]
|
|
195
|
+
});
|
|
114
196
|
const componentTypeMap = {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
197
|
+
[PopupMenuItemType.CheckboxMenuItem]: "mona-contextmenu-checkbox-item",
|
|
198
|
+
[PopupMenuItemType.MenuGroup]: "mona-contextmenu-group",
|
|
199
|
+
[PopupMenuItemType.MenuItem]: "mona-contextmenu-item",
|
|
200
|
+
[PopupMenuItemType.RadioGroup]: "mona-contextmenu-radio-group",
|
|
201
|
+
[PopupMenuItemType.RadioItem]: "mona-contextmenu-radio-item",
|
|
202
|
+
[PopupMenuItemType.Separator]: "mona-contextmenu-separator"
|
|
121
203
|
};
|
|
122
204
|
const templateTypeMap = {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
205
|
+
[PopupMenuTemplateType.Group]: "monaContextMenuGroupTemplate",
|
|
206
|
+
[PopupMenuTemplateType.Icon]: "monaContextMenuIconTemplate",
|
|
207
|
+
[PopupMenuTemplateType.Shortcut]: "monaContextMenuShortcutTemplate",
|
|
208
|
+
[PopupMenuTemplateType.Text]: "monaContextMenuTextTemplate"
|
|
127
209
|
};
|
|
128
210
|
const ensureContextMenuComponentTypes = (components) => {
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
211
|
+
ensurePopupComponentTypes({
|
|
212
|
+
components,
|
|
213
|
+
componentTypeMap,
|
|
214
|
+
origin: PopupMenuOrigin.ContextMenu,
|
|
215
|
+
prefix: "mona-contextmenu"
|
|
216
|
+
});
|
|
135
217
|
};
|
|
136
218
|
const ensureContextMenuTemplateTypes = (templates) => {
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
219
|
+
ensurePopupTemplateTypes({
|
|
220
|
+
templates,
|
|
221
|
+
templateTypeMap,
|
|
222
|
+
origin: PopupMenuTemplateOrigin.ContextMenu,
|
|
223
|
+
prefix: "mona-contextmenu"
|
|
224
|
+
});
|
|
143
225
|
};
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
226
|
+
const POPUP_ROLES = /* @__PURE__ */ new Set([
|
|
227
|
+
"button",
|
|
228
|
+
"gridcell",
|
|
229
|
+
"link",
|
|
230
|
+
"menuitem",
|
|
231
|
+
"tab",
|
|
232
|
+
"treeitem"
|
|
233
|
+
]);
|
|
234
|
+
const MANAGED_ATTRIBUTES = [
|
|
235
|
+
"aria-controls",
|
|
236
|
+
"aria-expanded",
|
|
237
|
+
"aria-haspopup"
|
|
238
|
+
];
|
|
152
239
|
const roleOf = (element) => {
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
return "button";
|
|
165
|
-
}
|
|
166
|
-
return null;
|
|
240
|
+
const explicit = element.getAttribute("role")?.trim().split(/\s+/)[0];
|
|
241
|
+
if (explicit) return explicit;
|
|
242
|
+
if (element instanceof HTMLButtonElement) return "button";
|
|
243
|
+
if (element instanceof HTMLAnchorElement && element.hasAttribute("href")) return "link";
|
|
244
|
+
if (element instanceof HTMLInputElement && [
|
|
245
|
+
"button",
|
|
246
|
+
"image",
|
|
247
|
+
"reset",
|
|
248
|
+
"submit"
|
|
249
|
+
].includes(element.type)) return "button";
|
|
250
|
+
return null;
|
|
167
251
|
};
|
|
168
|
-
class ContextMenuComponent {
|
|
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
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
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
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
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
|
-
|
|
252
|
+
var ContextMenuComponent = class ContextMenuComponent {
|
|
253
|
+
#ariaTarget;
|
|
254
|
+
#document;
|
|
255
|
+
#isMenuOpen;
|
|
256
|
+
constructor() {
|
|
257
|
+
this.#ariaTarget = signal(null, ...ngDevMode ? [{ debugName: "#ariaTarget" }] : /* istanbul ignore next */ []);
|
|
258
|
+
this.#document = inject(DOCUMENT);
|
|
259
|
+
this.#isMenuOpen = signal(false, ...ngDevMode ? [{ debugName: "#isMenuOpen" }] : /* istanbul ignore next */ []);
|
|
260
|
+
this.menuItemComponents = contentChildren(PopupMenuToken, {
|
|
261
|
+
...ngDevMode ? { debugName: "menuItemComponents" } : /* istanbul ignore next */ {},
|
|
262
|
+
descendants: false
|
|
263
|
+
});
|
|
264
|
+
this.groupTemplate = contentChild(ContextMenuGroupTemplateDirective, {
|
|
265
|
+
...ngDevMode ? { debugName: "groupTemplate" } : /* istanbul ignore next */ {},
|
|
266
|
+
read: TemplateRef,
|
|
267
|
+
descendants: false
|
|
268
|
+
});
|
|
269
|
+
this.iconTemplate = contentChild(ContextMenuIconTemplateDirective, {
|
|
270
|
+
...ngDevMode ? { debugName: "iconTemplate" } : /* istanbul ignore next */ {},
|
|
271
|
+
read: TemplateRef,
|
|
272
|
+
descendants: false
|
|
273
|
+
});
|
|
274
|
+
this.menuId = createElementControlId();
|
|
275
|
+
this.menuItems = computed(() => {
|
|
276
|
+
if (any(this.items())) return this.items();
|
|
277
|
+
return this.menuItemComponents().map((item) => item.getPopupMenuItem()).flatMap((i) => i);
|
|
278
|
+
}, ...ngDevMode ? [{ debugName: "menuItems" }] : /* istanbul ignore next */ []);
|
|
279
|
+
this.popupMenuRef = viewChild("popupMenu", ...ngDevMode ? [{ debugName: "popupMenuRef" }] : /* istanbul ignore next */ []);
|
|
280
|
+
this.shortcutTemplate = contentChild(ContextMenuShortcutTemplateDirective, {
|
|
281
|
+
...ngDevMode ? { debugName: "shortcutTemplate" } : /* istanbul ignore next */ {},
|
|
282
|
+
read: TemplateRef,
|
|
283
|
+
descendants: false
|
|
284
|
+
});
|
|
285
|
+
this.textTemplate = contentChild(ContextMenuTextTemplateDirective, {
|
|
286
|
+
...ngDevMode ? { debugName: "textTemplate" } : /* istanbul ignore next */ {},
|
|
287
|
+
read: TemplateRef,
|
|
288
|
+
descendants: false
|
|
289
|
+
});
|
|
290
|
+
this.ariaLabel = input("", {
|
|
291
|
+
...ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {},
|
|
292
|
+
alias: "aria-label"
|
|
293
|
+
});
|
|
294
|
+
this.items = input([], ...ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []);
|
|
295
|
+
this.menuClick = output();
|
|
296
|
+
this.minWidth = input(...ngDevMode ? [void 0, { debugName: "minWidth" }] : /* istanbul ignore next */ []);
|
|
297
|
+
this.rounded = input("medium", ...ngDevMode ? [{ debugName: "rounded" }] : /* istanbul ignore next */ []);
|
|
298
|
+
this.size = input("medium", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
299
|
+
this.target = input.required(...ngDevMode ? [{ debugName: "target" }] : /* istanbul ignore next */ []);
|
|
300
|
+
this.width = input(...ngDevMode ? [void 0, { debugName: "width" }] : /* istanbul ignore next */ []);
|
|
301
|
+
effect(() => ensureContextMenuComponentTypes(this.menuItemComponents()));
|
|
302
|
+
afterRenderEffect((onCleanup) => {
|
|
303
|
+
const target = this.target();
|
|
304
|
+
const element = target instanceof ElementRef ? target.nativeElement : target;
|
|
305
|
+
if (!element) return;
|
|
306
|
+
onCleanup(untracked(() => this.#attachTo(element)));
|
|
307
|
+
});
|
|
308
|
+
effect(() => {
|
|
309
|
+
const element = this.#ariaTarget();
|
|
310
|
+
const open = this.#isMenuOpen();
|
|
311
|
+
if (!element) return;
|
|
312
|
+
element.setAttribute("aria-expanded", String(open));
|
|
313
|
+
if (open) element.setAttribute("aria-controls", this.menuId);
|
|
314
|
+
else element.removeAttribute("aria-controls");
|
|
315
|
+
});
|
|
316
|
+
effect((onCleanup) => {
|
|
317
|
+
const view = this.#document.defaultView;
|
|
318
|
+
if (!this.#isMenuOpen() || !view) return;
|
|
319
|
+
const close = () => this.popupMenuRef()?.closeMenu();
|
|
320
|
+
view.addEventListener("blur", close);
|
|
321
|
+
onCleanup(() => view.removeEventListener("blur", close));
|
|
322
|
+
});
|
|
323
|
+
}
|
|
324
|
+
onMenuClose() {
|
|
325
|
+
this.#isMenuOpen.set(false);
|
|
326
|
+
}
|
|
327
|
+
onMenuOpen() {
|
|
328
|
+
this.#isMenuOpen.set(true);
|
|
329
|
+
}
|
|
330
|
+
#attachTo(element) {
|
|
331
|
+
const onKeydown = (event) => {
|
|
332
|
+
if (event.key === "ContextMenu" || event.key === "F10" && event.shiftKey) {
|
|
333
|
+
event.preventDefault();
|
|
334
|
+
this.openMenuViaKeyboard();
|
|
335
|
+
}
|
|
336
|
+
};
|
|
337
|
+
element.addEventListener("keydown", onKeydown);
|
|
338
|
+
const role = roleOf(element);
|
|
339
|
+
const managed = role !== null && POPUP_ROLES.has(role);
|
|
340
|
+
const previous = MANAGED_ATTRIBUTES.map((name) => [name, element.getAttribute(name)]);
|
|
341
|
+
if (managed) {
|
|
342
|
+
element.setAttribute("aria-haspopup", "menu");
|
|
343
|
+
this.#ariaTarget.set(element);
|
|
344
|
+
}
|
|
345
|
+
return () => {
|
|
346
|
+
element.removeEventListener("keydown", onKeydown);
|
|
347
|
+
if (managed) {
|
|
348
|
+
this.#ariaTarget.set(null);
|
|
349
|
+
for (const [name, value] of previous) if (value === null) element.removeAttribute(name);
|
|
350
|
+
else element.setAttribute(name, value);
|
|
351
|
+
}
|
|
352
|
+
};
|
|
353
|
+
}
|
|
354
|
+
openMenuViaKeyboard() {
|
|
355
|
+
const popupMenu = this.popupMenuRef();
|
|
356
|
+
if (popupMenu && !this.#isMenuOpen()) popupMenu.openMenuViaKeyboard(true);
|
|
357
|
+
}
|
|
358
|
+
static {
|
|
359
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
360
|
+
minVersion: "12.0.0",
|
|
361
|
+
version: "22.2.6",
|
|
362
|
+
ngImport: i0,
|
|
363
|
+
type: ContextMenuComponent,
|
|
364
|
+
deps: [],
|
|
365
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
366
|
+
});
|
|
367
|
+
}
|
|
368
|
+
static {
|
|
369
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
370
|
+
minVersion: "17.0.0",
|
|
371
|
+
version: "22.2.6",
|
|
372
|
+
type: ContextMenuComponent,
|
|
373
|
+
isStandalone: true,
|
|
374
|
+
selector: "mona-contextmenu",
|
|
375
|
+
inputs: {
|
|
376
|
+
ariaLabel: {
|
|
377
|
+
classPropertyName: "ariaLabel",
|
|
378
|
+
publicName: "aria-label",
|
|
379
|
+
isSignal: true,
|
|
380
|
+
isRequired: false,
|
|
381
|
+
transformFunction: null
|
|
382
|
+
},
|
|
383
|
+
items: {
|
|
384
|
+
classPropertyName: "items",
|
|
385
|
+
publicName: "items",
|
|
386
|
+
isSignal: true,
|
|
387
|
+
isRequired: false,
|
|
388
|
+
transformFunction: null
|
|
389
|
+
},
|
|
390
|
+
minWidth: {
|
|
391
|
+
classPropertyName: "minWidth",
|
|
392
|
+
publicName: "minWidth",
|
|
393
|
+
isSignal: true,
|
|
394
|
+
isRequired: false,
|
|
395
|
+
transformFunction: null
|
|
396
|
+
},
|
|
397
|
+
rounded: {
|
|
398
|
+
classPropertyName: "rounded",
|
|
399
|
+
publicName: "rounded",
|
|
400
|
+
isSignal: true,
|
|
401
|
+
isRequired: false,
|
|
402
|
+
transformFunction: null
|
|
403
|
+
},
|
|
404
|
+
size: {
|
|
405
|
+
classPropertyName: "size",
|
|
406
|
+
publicName: "size",
|
|
407
|
+
isSignal: true,
|
|
408
|
+
isRequired: false,
|
|
409
|
+
transformFunction: null
|
|
410
|
+
},
|
|
411
|
+
target: {
|
|
412
|
+
classPropertyName: "target",
|
|
413
|
+
publicName: "target",
|
|
414
|
+
isSignal: true,
|
|
415
|
+
isRequired: true,
|
|
416
|
+
transformFunction: null
|
|
417
|
+
},
|
|
418
|
+
width: {
|
|
419
|
+
classPropertyName: "width",
|
|
420
|
+
publicName: "width",
|
|
421
|
+
isSignal: true,
|
|
422
|
+
isRequired: false,
|
|
423
|
+
transformFunction: null
|
|
424
|
+
}
|
|
425
|
+
},
|
|
426
|
+
outputs: { menuClick: "menuClick" },
|
|
427
|
+
host: { properties: { "attr.aria-label": "null" } },
|
|
428
|
+
queries: [
|
|
429
|
+
{
|
|
430
|
+
propertyName: "menuItemComponents",
|
|
431
|
+
predicate: PopupMenuToken,
|
|
432
|
+
isSignal: true
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
propertyName: "groupTemplate",
|
|
436
|
+
first: true,
|
|
437
|
+
predicate: ContextMenuGroupTemplateDirective,
|
|
438
|
+
read: TemplateRef,
|
|
439
|
+
isSignal: true
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
propertyName: "iconTemplate",
|
|
443
|
+
first: true,
|
|
444
|
+
predicate: ContextMenuIconTemplateDirective,
|
|
445
|
+
read: TemplateRef,
|
|
446
|
+
isSignal: true
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
propertyName: "shortcutTemplate",
|
|
450
|
+
first: true,
|
|
451
|
+
predicate: ContextMenuShortcutTemplateDirective,
|
|
452
|
+
read: TemplateRef,
|
|
453
|
+
isSignal: true
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
propertyName: "textTemplate",
|
|
457
|
+
first: true,
|
|
458
|
+
predicate: ContextMenuTextTemplateDirective,
|
|
459
|
+
read: TemplateRef,
|
|
460
|
+
isSignal: true
|
|
461
|
+
}
|
|
462
|
+
],
|
|
463
|
+
viewQueries: [{
|
|
464
|
+
propertyName: "popupMenuRef",
|
|
465
|
+
first: true,
|
|
466
|
+
predicate: ["popupMenu"],
|
|
467
|
+
descendants: true,
|
|
468
|
+
isSignal: true
|
|
469
|
+
}],
|
|
470
|
+
ngImport: i0,
|
|
471
|
+
template: "<mona-popup-menu\n [target]=\"target()\"\n [aria-label]=\"ariaLabel()\"\n [trigger]=\"'contextmenu'\"\n [items]=\"menuItems()\"\n [minWidth]=\"minWidth()\"\n [width]=\"width()\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [openAtPointer]=\"true\"\n (menuClick)=\"menuClick.emit($event)\"\n (open)=\"onMenuOpen()\"\n (close)=\"onMenuClose()\"\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 (iconTemplate()) {\n <ng-template monaPopupMenuIconTemplate let-item>\n <ng-container\n [ngTemplateOutlet]=\"iconTemplate()\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-container>\n </ng-template>\n }\n @if (shortcutTemplate()) {\n <ng-template monaPopupMenuShortcutTemplate let-item>\n <ng-container\n [ngTemplateOutlet]=\"shortcutTemplate()\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-container>\n </ng-template>\n }\n @if (textTemplate()) {\n <ng-template monaPopupMenuTextTemplate let-item>\n <ng-container\n [ngTemplateOutlet]=\"textTemplate()\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-container>\n </ng-template>\n }\n</mona-popup-menu>\n",
|
|
472
|
+
dependencies: [
|
|
473
|
+
{
|
|
474
|
+
kind: "component",
|
|
475
|
+
type: PopupMenuComponent,
|
|
476
|
+
selector: "mona-popup-menu",
|
|
477
|
+
inputs: [
|
|
478
|
+
"anchor",
|
|
479
|
+
"anchorConnectionPoint",
|
|
480
|
+
"aria-label",
|
|
481
|
+
"aria-labelledby",
|
|
482
|
+
"items",
|
|
483
|
+
"id",
|
|
484
|
+
"minWidth",
|
|
485
|
+
"offset",
|
|
486
|
+
"openAtPointer",
|
|
487
|
+
"popupConnectionPoint",
|
|
488
|
+
"rounded",
|
|
489
|
+
"size",
|
|
490
|
+
"target",
|
|
491
|
+
"trigger",
|
|
492
|
+
"class",
|
|
493
|
+
"width"
|
|
494
|
+
],
|
|
495
|
+
outputs: [
|
|
496
|
+
"close",
|
|
497
|
+
"menuClick",
|
|
498
|
+
"navigate",
|
|
499
|
+
"open"
|
|
500
|
+
]
|
|
501
|
+
},
|
|
502
|
+
{
|
|
503
|
+
kind: "directive",
|
|
504
|
+
type: PopupMenuTextTemplateDirective,
|
|
505
|
+
selector: "ng-template[monaPopupMenuTextTemplate]"
|
|
506
|
+
},
|
|
507
|
+
{
|
|
508
|
+
kind: "directive",
|
|
509
|
+
type: NgTemplateOutlet,
|
|
510
|
+
selector: "[ngTemplateOutlet]",
|
|
511
|
+
inputs: [
|
|
512
|
+
"ngTemplateOutletContext",
|
|
513
|
+
"ngTemplateOutlet",
|
|
514
|
+
"ngTemplateOutletInjector"
|
|
515
|
+
]
|
|
516
|
+
},
|
|
517
|
+
{
|
|
518
|
+
kind: "directive",
|
|
519
|
+
type: PopupMenuIconTemplateDirective,
|
|
520
|
+
selector: "ng-template[monaPopupMenuIconTemplate]"
|
|
521
|
+
},
|
|
522
|
+
{
|
|
523
|
+
kind: "directive",
|
|
524
|
+
type: PopupMenuShortcutTemplateDirective,
|
|
525
|
+
selector: "ng-template[monaPopupMenuShortcutTemplate]"
|
|
526
|
+
},
|
|
527
|
+
{
|
|
528
|
+
kind: "directive",
|
|
529
|
+
type: PopupMenuGroupTemplateDirective,
|
|
530
|
+
selector: "ng-template[monaPopupMenuGroupTemplate]"
|
|
531
|
+
}
|
|
532
|
+
]
|
|
533
|
+
});
|
|
534
|
+
}
|
|
535
|
+
};
|
|
536
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
537
|
+
minVersion: "12.0.0",
|
|
538
|
+
version: "22.2.6",
|
|
539
|
+
ngImport: i0,
|
|
540
|
+
type: ContextMenuComponent,
|
|
541
|
+
decorators: [{
|
|
542
|
+
type: Component,
|
|
543
|
+
args: [{
|
|
544
|
+
selector: "mona-contextmenu",
|
|
545
|
+
imports: [
|
|
546
|
+
PopupMenuComponent,
|
|
547
|
+
PopupMenuTextTemplateDirective,
|
|
548
|
+
NgTemplateOutlet,
|
|
549
|
+
PopupMenuIconTemplateDirective,
|
|
550
|
+
PopupMenuShortcutTemplateDirective,
|
|
551
|
+
PopupMenuGroupTemplateDirective
|
|
552
|
+
],
|
|
553
|
+
host: { "[attr.aria-label]": "null" },
|
|
554
|
+
template: "<mona-popup-menu\n [target]=\"target()\"\n [aria-label]=\"ariaLabel()\"\n [trigger]=\"'contextmenu'\"\n [items]=\"menuItems()\"\n [minWidth]=\"minWidth()\"\n [width]=\"width()\"\n [rounded]=\"rounded()\"\n [size]=\"size()\"\n [openAtPointer]=\"true\"\n (menuClick)=\"menuClick.emit($event)\"\n (open)=\"onMenuOpen()\"\n (close)=\"onMenuClose()\"\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 (iconTemplate()) {\n <ng-template monaPopupMenuIconTemplate let-item>\n <ng-container\n [ngTemplateOutlet]=\"iconTemplate()\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-container>\n </ng-template>\n }\n @if (shortcutTemplate()) {\n <ng-template monaPopupMenuShortcutTemplate let-item>\n <ng-container\n [ngTemplateOutlet]=\"shortcutTemplate()\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-container>\n </ng-template>\n }\n @if (textTemplate()) {\n <ng-template monaPopupMenuTextTemplate let-item>\n <ng-container\n [ngTemplateOutlet]=\"textTemplate()\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-container>\n </ng-template>\n }\n</mona-popup-menu>\n"
|
|
555
|
+
}]
|
|
556
|
+
}],
|
|
557
|
+
ctorParameters: () => [],
|
|
558
|
+
propDecorators: {
|
|
559
|
+
menuItemComponents: [{
|
|
560
|
+
type: i0.ContentChildren,
|
|
561
|
+
args: [i0.forwardRef(() => PopupMenuToken), {
|
|
562
|
+
descendants: false,
|
|
563
|
+
isSignal: true
|
|
564
|
+
}]
|
|
565
|
+
}],
|
|
566
|
+
groupTemplate: [{
|
|
567
|
+
type: i0.ContentChild,
|
|
568
|
+
args: [i0.forwardRef(() => ContextMenuGroupTemplateDirective), {
|
|
569
|
+
read: TemplateRef,
|
|
570
|
+
descendants: false,
|
|
571
|
+
isSignal: true
|
|
572
|
+
}]
|
|
573
|
+
}],
|
|
574
|
+
iconTemplate: [{
|
|
575
|
+
type: i0.ContentChild,
|
|
576
|
+
args: [i0.forwardRef(() => ContextMenuIconTemplateDirective), {
|
|
577
|
+
read: TemplateRef,
|
|
578
|
+
descendants: false,
|
|
579
|
+
isSignal: true
|
|
580
|
+
}]
|
|
581
|
+
}],
|
|
582
|
+
popupMenuRef: [{
|
|
583
|
+
type: i0.ViewChild,
|
|
584
|
+
args: ["popupMenu", { isSignal: true }]
|
|
585
|
+
}],
|
|
586
|
+
shortcutTemplate: [{
|
|
587
|
+
type: i0.ContentChild,
|
|
588
|
+
args: [i0.forwardRef(() => ContextMenuShortcutTemplateDirective), {
|
|
589
|
+
read: TemplateRef,
|
|
590
|
+
descendants: false,
|
|
591
|
+
isSignal: true
|
|
592
|
+
}]
|
|
593
|
+
}],
|
|
594
|
+
textTemplate: [{
|
|
595
|
+
type: i0.ContentChild,
|
|
596
|
+
args: [i0.forwardRef(() => ContextMenuTextTemplateDirective), {
|
|
597
|
+
read: TemplateRef,
|
|
598
|
+
descendants: false,
|
|
599
|
+
isSignal: true
|
|
600
|
+
}]
|
|
601
|
+
}],
|
|
602
|
+
ariaLabel: [{
|
|
603
|
+
type: i0.Input,
|
|
604
|
+
args: [{
|
|
605
|
+
isSignal: true,
|
|
606
|
+
alias: "aria-label",
|
|
607
|
+
required: false
|
|
608
|
+
}]
|
|
609
|
+
}],
|
|
610
|
+
items: [{
|
|
611
|
+
type: i0.Input,
|
|
612
|
+
args: [{
|
|
613
|
+
isSignal: true,
|
|
614
|
+
alias: "items",
|
|
615
|
+
required: false
|
|
616
|
+
}]
|
|
617
|
+
}],
|
|
618
|
+
menuClick: [{
|
|
619
|
+
type: i0.Output,
|
|
620
|
+
args: ["menuClick"]
|
|
621
|
+
}],
|
|
622
|
+
minWidth: [{
|
|
623
|
+
type: i0.Input,
|
|
624
|
+
args: [{
|
|
625
|
+
isSignal: true,
|
|
626
|
+
alias: "minWidth",
|
|
627
|
+
required: false
|
|
628
|
+
}]
|
|
629
|
+
}],
|
|
630
|
+
rounded: [{
|
|
631
|
+
type: i0.Input,
|
|
632
|
+
args: [{
|
|
633
|
+
isSignal: true,
|
|
634
|
+
alias: "rounded",
|
|
635
|
+
required: false
|
|
636
|
+
}]
|
|
637
|
+
}],
|
|
638
|
+
size: [{
|
|
639
|
+
type: i0.Input,
|
|
640
|
+
args: [{
|
|
641
|
+
isSignal: true,
|
|
642
|
+
alias: "size",
|
|
643
|
+
required: false
|
|
644
|
+
}]
|
|
645
|
+
}],
|
|
646
|
+
target: [{
|
|
647
|
+
type: i0.Input,
|
|
648
|
+
args: [{
|
|
649
|
+
isSignal: true,
|
|
650
|
+
alias: "target",
|
|
651
|
+
required: true
|
|
652
|
+
}]
|
|
653
|
+
}],
|
|
654
|
+
width: [{
|
|
655
|
+
type: i0.Input,
|
|
656
|
+
args: [{
|
|
657
|
+
isSignal: true,
|
|
658
|
+
alias: "width",
|
|
659
|
+
required: false
|
|
660
|
+
}]
|
|
661
|
+
}]
|
|
662
|
+
}
|
|
663
|
+
});
|
|
664
|
+
var ContextMenuGroupComponent = class ContextMenuGroupComponent extends PopupMenuGroupComponent {
|
|
665
|
+
constructor() {
|
|
666
|
+
super();
|
|
667
|
+
this.origin = PopupMenuOrigin.ContextMenu;
|
|
668
|
+
effect(() => ensureContextMenuComponentTypes(this.items()));
|
|
669
|
+
effect(() => ensureContextMenuTemplateTypes([this.groupTemplateConfig()].filter((t) => t !== void 0)));
|
|
670
|
+
}
|
|
671
|
+
static {
|
|
672
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
673
|
+
minVersion: "12.0.0",
|
|
674
|
+
version: "22.2.6",
|
|
675
|
+
ngImport: i0,
|
|
676
|
+
type: ContextMenuGroupComponent,
|
|
677
|
+
deps: [],
|
|
678
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
679
|
+
});
|
|
680
|
+
}
|
|
681
|
+
static {
|
|
682
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
683
|
+
minVersion: "14.0.0",
|
|
684
|
+
version: "22.2.6",
|
|
685
|
+
type: ContextMenuGroupComponent,
|
|
686
|
+
isStandalone: true,
|
|
687
|
+
selector: "mona-contextmenu-group",
|
|
688
|
+
providers: [{
|
|
689
|
+
provide: PopupMenuToken,
|
|
690
|
+
useExisting: forwardRef(() => ContextMenuGroupComponent)
|
|
691
|
+
}],
|
|
692
|
+
usesInheritance: true,
|
|
693
|
+
ngImport: i0,
|
|
694
|
+
template: "",
|
|
695
|
+
isInline: true
|
|
696
|
+
});
|
|
697
|
+
}
|
|
698
|
+
};
|
|
699
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
700
|
+
minVersion: "12.0.0",
|
|
701
|
+
version: "22.2.6",
|
|
702
|
+
ngImport: i0,
|
|
703
|
+
type: ContextMenuGroupComponent,
|
|
704
|
+
decorators: [{
|
|
705
|
+
type: Component,
|
|
706
|
+
args: [{
|
|
707
|
+
selector: "mona-contextmenu-group",
|
|
708
|
+
template: "",
|
|
709
|
+
providers: [{
|
|
710
|
+
provide: PopupMenuToken,
|
|
711
|
+
useExisting: forwardRef(() => ContextMenuGroupComponent)
|
|
712
|
+
}]
|
|
713
|
+
}]
|
|
714
|
+
}],
|
|
715
|
+
ctorParameters: () => []
|
|
716
|
+
});
|
|
717
|
+
var ContextMenuCheckboxItemComponent = class ContextMenuCheckboxItemComponent extends PopupMenuCheckboxItemComponent {
|
|
718
|
+
constructor() {
|
|
719
|
+
super();
|
|
720
|
+
this.origin = PopupMenuOrigin.ContextMenu;
|
|
721
|
+
effect(() => ensureContextMenuTemplateTypes([this.shortcutTemplateConfig(), this.textTemplateConfig()].filter((t) => t !== void 0)));
|
|
722
|
+
}
|
|
723
|
+
static {
|
|
724
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
725
|
+
minVersion: "12.0.0",
|
|
726
|
+
version: "22.2.6",
|
|
727
|
+
ngImport: i0,
|
|
728
|
+
type: ContextMenuCheckboxItemComponent,
|
|
729
|
+
deps: [],
|
|
730
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
731
|
+
});
|
|
732
|
+
}
|
|
733
|
+
static {
|
|
734
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
735
|
+
minVersion: "14.0.0",
|
|
736
|
+
version: "22.2.6",
|
|
737
|
+
type: ContextMenuCheckboxItemComponent,
|
|
738
|
+
isStandalone: true,
|
|
739
|
+
selector: "mona-contextmenu-checkbox-item",
|
|
740
|
+
providers: [{
|
|
741
|
+
provide: PopupMenuToken,
|
|
742
|
+
useExisting: forwardRef(() => ContextMenuCheckboxItemComponent)
|
|
743
|
+
}],
|
|
744
|
+
usesInheritance: true,
|
|
745
|
+
ngImport: i0,
|
|
746
|
+
template: "",
|
|
747
|
+
isInline: true
|
|
748
|
+
});
|
|
749
|
+
}
|
|
750
|
+
};
|
|
751
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
752
|
+
minVersion: "12.0.0",
|
|
753
|
+
version: "22.2.6",
|
|
754
|
+
ngImport: i0,
|
|
755
|
+
type: ContextMenuCheckboxItemComponent,
|
|
756
|
+
decorators: [{
|
|
757
|
+
type: Component,
|
|
758
|
+
args: [{
|
|
759
|
+
selector: "mona-contextmenu-checkbox-item",
|
|
760
|
+
template: "",
|
|
761
|
+
providers: [{
|
|
762
|
+
provide: PopupMenuToken,
|
|
763
|
+
useExisting: forwardRef(() => ContextMenuCheckboxItemComponent)
|
|
764
|
+
}]
|
|
765
|
+
}]
|
|
766
|
+
}],
|
|
767
|
+
ctorParameters: () => []
|
|
768
|
+
});
|
|
769
|
+
var ContextMenuItemComponent = class ContextMenuItemComponent extends PopupMenuItemComponent {
|
|
770
|
+
constructor() {
|
|
771
|
+
super();
|
|
772
|
+
this.origin = PopupMenuOrigin.ContextMenu;
|
|
773
|
+
effect(() => ensureContextMenuComponentTypes(this.items()));
|
|
774
|
+
effect(() => ensureContextMenuTemplateTypes([
|
|
775
|
+
this.iconTemplateConfig(),
|
|
776
|
+
this.shortcutTemplateConfig(),
|
|
777
|
+
this.textTemplateConfig()
|
|
778
|
+
].filter((t) => t !== void 0)));
|
|
779
|
+
}
|
|
780
|
+
static {
|
|
781
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
782
|
+
minVersion: "12.0.0",
|
|
783
|
+
version: "22.2.6",
|
|
784
|
+
ngImport: i0,
|
|
785
|
+
type: ContextMenuItemComponent,
|
|
786
|
+
deps: [],
|
|
787
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
788
|
+
});
|
|
789
|
+
}
|
|
790
|
+
static {
|
|
791
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
792
|
+
minVersion: "14.0.0",
|
|
793
|
+
version: "22.2.6",
|
|
794
|
+
type: ContextMenuItemComponent,
|
|
795
|
+
isStandalone: true,
|
|
796
|
+
selector: "mona-contextmenu-item",
|
|
797
|
+
providers: [{
|
|
798
|
+
provide: PopupMenuToken,
|
|
799
|
+
useExisting: forwardRef(() => ContextMenuItemComponent)
|
|
800
|
+
}],
|
|
801
|
+
usesInheritance: true,
|
|
802
|
+
ngImport: i0,
|
|
803
|
+
template: ``,
|
|
804
|
+
isInline: true
|
|
805
|
+
});
|
|
806
|
+
}
|
|
807
|
+
};
|
|
808
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
809
|
+
minVersion: "12.0.0",
|
|
810
|
+
version: "22.2.6",
|
|
811
|
+
ngImport: i0,
|
|
812
|
+
type: ContextMenuItemComponent,
|
|
813
|
+
decorators: [{
|
|
814
|
+
type: Component,
|
|
815
|
+
args: [{
|
|
816
|
+
selector: "mona-contextmenu-item",
|
|
817
|
+
template: ``,
|
|
818
|
+
providers: [{
|
|
819
|
+
provide: PopupMenuToken,
|
|
820
|
+
useExisting: forwardRef(() => ContextMenuItemComponent)
|
|
821
|
+
}]
|
|
822
|
+
}]
|
|
823
|
+
}],
|
|
824
|
+
ctorParameters: () => []
|
|
825
|
+
});
|
|
826
|
+
var ContextMenuRadioGroupComponent = class ContextMenuRadioGroupComponent extends PopupMenuRadioGroupComponent {
|
|
827
|
+
constructor() {
|
|
828
|
+
super();
|
|
829
|
+
this.origin = PopupMenuOrigin.ContextMenu;
|
|
830
|
+
effect(() => ensureContextMenuComponentTypes(this.items()));
|
|
831
|
+
effect(() => ensureContextMenuTemplateTypes([this.groupTemplateConfig()].filter((t) => t !== void 0)));
|
|
832
|
+
}
|
|
833
|
+
static {
|
|
834
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
835
|
+
minVersion: "12.0.0",
|
|
836
|
+
version: "22.2.6",
|
|
837
|
+
ngImport: i0,
|
|
838
|
+
type: ContextMenuRadioGroupComponent,
|
|
839
|
+
deps: [],
|
|
840
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
841
|
+
});
|
|
842
|
+
}
|
|
843
|
+
static {
|
|
844
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
845
|
+
minVersion: "14.0.0",
|
|
846
|
+
version: "22.2.6",
|
|
847
|
+
type: ContextMenuRadioGroupComponent,
|
|
848
|
+
isStandalone: true,
|
|
849
|
+
selector: "mona-contextmenu-radio-group",
|
|
850
|
+
providers: [{
|
|
851
|
+
provide: PopupMenuToken,
|
|
852
|
+
useExisting: forwardRef(() => ContextMenuRadioGroupComponent)
|
|
853
|
+
}],
|
|
854
|
+
usesInheritance: true,
|
|
855
|
+
ngImport: i0,
|
|
856
|
+
template: "",
|
|
857
|
+
isInline: true
|
|
858
|
+
});
|
|
859
|
+
}
|
|
860
|
+
};
|
|
861
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
862
|
+
minVersion: "12.0.0",
|
|
863
|
+
version: "22.2.6",
|
|
864
|
+
ngImport: i0,
|
|
865
|
+
type: ContextMenuRadioGroupComponent,
|
|
866
|
+
decorators: [{
|
|
867
|
+
type: Component,
|
|
868
|
+
args: [{
|
|
869
|
+
selector: "mona-contextmenu-radio-group",
|
|
870
|
+
template: "",
|
|
871
|
+
providers: [{
|
|
872
|
+
provide: PopupMenuToken,
|
|
873
|
+
useExisting: forwardRef(() => ContextMenuRadioGroupComponent)
|
|
874
|
+
}]
|
|
875
|
+
}]
|
|
876
|
+
}],
|
|
877
|
+
ctorParameters: () => []
|
|
878
|
+
});
|
|
879
|
+
var ContextMenuRadioItemComponent = class ContextMenuRadioItemComponent extends PopupMenuRadioItemComponent {
|
|
880
|
+
constructor() {
|
|
881
|
+
super();
|
|
882
|
+
this.origin = PopupMenuOrigin.ContextMenu;
|
|
883
|
+
effect(() => ensureContextMenuTemplateTypes([this.shortcutTemplateConfig(), this.textTemplateConfig()].filter((t) => t !== void 0)));
|
|
884
|
+
}
|
|
885
|
+
static {
|
|
886
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
887
|
+
minVersion: "12.0.0",
|
|
888
|
+
version: "22.2.6",
|
|
889
|
+
ngImport: i0,
|
|
890
|
+
type: ContextMenuRadioItemComponent,
|
|
891
|
+
deps: [],
|
|
892
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
893
|
+
});
|
|
894
|
+
}
|
|
895
|
+
static {
|
|
896
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
897
|
+
minVersion: "14.0.0",
|
|
898
|
+
version: "22.2.6",
|
|
899
|
+
type: ContextMenuRadioItemComponent,
|
|
900
|
+
isStandalone: true,
|
|
901
|
+
selector: "mona-contextmenu-radio-item",
|
|
902
|
+
providers: [{
|
|
903
|
+
provide: PopupMenuToken,
|
|
904
|
+
useExisting: forwardRef(() => ContextMenuRadioItemComponent)
|
|
905
|
+
}, {
|
|
906
|
+
provide: PopupMenuRadioItemToken,
|
|
907
|
+
useExisting: forwardRef(() => ContextMenuRadioItemComponent)
|
|
908
|
+
}],
|
|
909
|
+
usesInheritance: true,
|
|
910
|
+
ngImport: i0,
|
|
911
|
+
template: "",
|
|
912
|
+
isInline: true
|
|
913
|
+
});
|
|
914
|
+
}
|
|
915
|
+
};
|
|
916
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
917
|
+
minVersion: "12.0.0",
|
|
918
|
+
version: "22.2.6",
|
|
919
|
+
ngImport: i0,
|
|
920
|
+
type: ContextMenuRadioItemComponent,
|
|
921
|
+
decorators: [{
|
|
922
|
+
type: Component,
|
|
923
|
+
args: [{
|
|
924
|
+
selector: "mona-contextmenu-radio-item",
|
|
925
|
+
template: "",
|
|
926
|
+
providers: [{
|
|
927
|
+
provide: PopupMenuToken,
|
|
928
|
+
useExisting: forwardRef(() => ContextMenuRadioItemComponent)
|
|
929
|
+
}, {
|
|
930
|
+
provide: PopupMenuRadioItemToken,
|
|
931
|
+
useExisting: forwardRef(() => ContextMenuRadioItemComponent)
|
|
932
|
+
}]
|
|
933
|
+
}]
|
|
934
|
+
}],
|
|
935
|
+
ctorParameters: () => []
|
|
936
|
+
});
|
|
937
|
+
var ContextMenuSeparatorComponent = class ContextMenuSeparatorComponent extends PopupMenuSeparatorComponent {
|
|
938
|
+
constructor() {
|
|
939
|
+
super(...arguments);
|
|
940
|
+
this.origin = PopupMenuOrigin.ContextMenu;
|
|
941
|
+
}
|
|
942
|
+
static {
|
|
943
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
944
|
+
minVersion: "12.0.0",
|
|
945
|
+
version: "22.2.6",
|
|
946
|
+
ngImport: i0,
|
|
947
|
+
type: ContextMenuSeparatorComponent,
|
|
948
|
+
deps: null,
|
|
949
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
950
|
+
});
|
|
951
|
+
}
|
|
952
|
+
static {
|
|
953
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
954
|
+
minVersion: "14.0.0",
|
|
955
|
+
version: "22.2.6",
|
|
956
|
+
type: ContextMenuSeparatorComponent,
|
|
957
|
+
isStandalone: true,
|
|
958
|
+
selector: "mona-contextmenu-separator",
|
|
959
|
+
providers: [{
|
|
960
|
+
provide: PopupMenuToken,
|
|
961
|
+
useExisting: forwardRef(() => ContextMenuSeparatorComponent)
|
|
962
|
+
}],
|
|
963
|
+
usesInheritance: true,
|
|
964
|
+
ngImport: i0,
|
|
965
|
+
template: "",
|
|
966
|
+
isInline: true
|
|
967
|
+
});
|
|
968
|
+
}
|
|
969
|
+
};
|
|
970
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
971
|
+
minVersion: "12.0.0",
|
|
972
|
+
version: "22.2.6",
|
|
973
|
+
ngImport: i0,
|
|
974
|
+
type: ContextMenuSeparatorComponent,
|
|
975
|
+
decorators: [{
|
|
976
|
+
type: Component,
|
|
977
|
+
args: [{
|
|
978
|
+
selector: "mona-contextmenu-separator",
|
|
979
|
+
template: "",
|
|
980
|
+
providers: [{
|
|
981
|
+
provide: PopupMenuToken,
|
|
982
|
+
useExisting: forwardRef(() => ContextMenuSeparatorComponent)
|
|
983
|
+
}]
|
|
984
|
+
}]
|
|
985
|
+
}]
|
|
986
|
+
});
|
|
542
987
|
export { ContextMenuCheckboxItemComponent, ContextMenuComponent, ContextMenuGroupComponent, ContextMenuGroupTemplateDirective, ContextMenuIconTemplateDirective, ContextMenuItemComponent, ContextMenuRadioGroupComponent, ContextMenuRadioItemComponent, ContextMenuSeparatorComponent, ContextMenuShortcutTemplateDirective, ContextMenuTextTemplateDirective };
|
|
543
|
-
|
|
988
|
+
|
|
989
|
+
//# sourceMappingURL=nanahoshi-mona-ui-contextmenu.mjs.map
|