@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,14 +1,12 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import { MonaCommandMessages } from '@nanahoshi/mona-ui/i18n';
|
|
5
|
-
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { ElementRef, TemplateRef } from "@angular/core";
|
|
3
|
+
import { MonaCommandMessages } from "@nanahoshi/mona-ui/i18n";
|
|
6
4
|
/** What a filter sees of an item. */
|
|
7
5
|
interface CommandFilterItem {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
/** Other words the item should be found by. */
|
|
7
|
+
readonly keywords: readonly string[];
|
|
8
|
+
/** The item's value. */
|
|
9
|
+
readonly value: string;
|
|
12
10
|
}
|
|
13
11
|
/**
|
|
14
12
|
* Decides whether an item stays in the list for a query. It's only called while the query isn't empty.
|
|
@@ -21,233 +19,323 @@ type CommandFilter = (query: string, item: CommandFilterItem) => boolean;
|
|
|
21
19
|
* consumer already narrowed down, such as a server's.
|
|
22
20
|
*/
|
|
23
21
|
type CommandFilterMode = "auto" | "manual";
|
|
24
|
-
|
|
25
22
|
/** Emitted when an item is chosen, with the pointer or with Enter. */
|
|
26
23
|
interface CommandSelectEvent {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
24
|
+
/** The click or key press that chose the item, to tell apart a modified one, such as Ctrl+Enter. */
|
|
25
|
+
readonly originalEvent: KeyboardEvent | MouseEvent;
|
|
26
|
+
/** The value of the chosen item. */
|
|
27
|
+
readonly value: string;
|
|
31
28
|
}
|
|
32
|
-
|
|
33
29
|
/**
|
|
34
30
|
* A searchable list of actions or options, operated from one input. It works inline, in a popover, or in a
|
|
35
31
|
* `mona-command-dialog`. It only runs what the consumer asks for: choosing an item emits an event, and nothing closes
|
|
36
32
|
* or navigates by itself.
|
|
37
33
|
*/
|
|
38
|
-
declare class CommandComponent {
|
|
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
|
-
|
|
34
|
+
export declare class CommandComponent {
|
|
35
|
+
#private;
|
|
36
|
+
protected readonly baseClass: import("@angular/core").Signal<string>;
|
|
37
|
+
/**
|
|
38
|
+
* @description What counts as a match while `filterMode` is `"auto"`.
|
|
39
|
+
* @default defaultCommandFilter
|
|
40
|
+
*/
|
|
41
|
+
readonly filter: import("@angular/core").InputSignal<CommandFilter>;
|
|
42
|
+
/** @description Whether the component filters the items, or the consumer supplies only the matching ones. */
|
|
43
|
+
readonly filterMode: import("@angular/core").InputSignal<CommandFilterMode>;
|
|
44
|
+
/** @description Emits when any item is chosen, with the pointer or with Enter. */
|
|
45
|
+
readonly itemSelect: import("@angular/core").OutputEmitterRef<CommandSelectEvent>;
|
|
46
|
+
/** @description Whether results are on their way. Shows `mona-command-loading` and holds back the empty state. */
|
|
47
|
+
readonly loading: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
48
|
+
/** @description Whether the arrow keys wrap around at the ends of the list. */
|
|
49
|
+
readonly loop: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
50
|
+
/** @description The text in the input. */
|
|
51
|
+
readonly query: import("@angular/core").ModelSignal<string>;
|
|
52
|
+
/** @description The corner radius. */
|
|
53
|
+
readonly rounded: import("@angular/core").InputSignal<"none" | "small" | "medium" | "large" | null | undefined>;
|
|
54
|
+
constructor();
|
|
55
|
+
/** Moves focus to the input. */
|
|
56
|
+
focus(): void;
|
|
57
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CommandComponent, never>;
|
|
58
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CommandComponent, "mona-command", never, {
|
|
59
|
+
"filter": {
|
|
60
|
+
"alias": "filter";
|
|
61
|
+
"required": false;
|
|
62
|
+
"isSignal": true;
|
|
63
|
+
};
|
|
64
|
+
"filterMode": {
|
|
65
|
+
"alias": "filterMode";
|
|
66
|
+
"required": false;
|
|
67
|
+
"isSignal": true;
|
|
68
|
+
};
|
|
69
|
+
"loading": {
|
|
70
|
+
"alias": "loading";
|
|
71
|
+
"required": false;
|
|
72
|
+
"isSignal": true;
|
|
73
|
+
};
|
|
74
|
+
"loop": {
|
|
75
|
+
"alias": "loop";
|
|
76
|
+
"required": false;
|
|
77
|
+
"isSignal": true;
|
|
78
|
+
};
|
|
79
|
+
"query": {
|
|
80
|
+
"alias": "query";
|
|
81
|
+
"required": false;
|
|
82
|
+
"isSignal": true;
|
|
83
|
+
};
|
|
84
|
+
"rounded": {
|
|
85
|
+
"alias": "rounded";
|
|
86
|
+
"required": false;
|
|
87
|
+
"isSignal": true;
|
|
88
|
+
};
|
|
89
|
+
}, {
|
|
90
|
+
"itemSelect": "itemSelect";
|
|
91
|
+
"query": "queryChange";
|
|
92
|
+
}, never, ["*"], true, never>;
|
|
93
|
+
}
|
|
65
94
|
/**
|
|
66
95
|
* A modal for a `mona-command`. It stays near the top of the page instead of centering, so the input doesn't jump as
|
|
67
96
|
* results come and go, and the `mona-command` inside is created each time it opens, so it starts with an empty query.
|
|
68
97
|
*/
|
|
69
|
-
declare class CommandDialogComponent {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
98
|
+
export declare class CommandDialogComponent {
|
|
99
|
+
#private;
|
|
100
|
+
protected readonly content: import("@angular/core").Signal<TemplateRef<any> | undefined>;
|
|
101
|
+
protected readonly messages: import("@angular/core").Signal<import("@nanahoshi/mona-ui/i18n").MonaCommandMessages>;
|
|
102
|
+
protected readonly panel: import("@angular/core").Signal<TemplateRef<void>>;
|
|
103
|
+
protected readonly panelClass: import("@angular/core").Signal<string>;
|
|
104
|
+
/** @description The accessible name of the dialog. */
|
|
105
|
+
readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
106
|
+
/** @description Whether the dialog is open. */
|
|
107
|
+
readonly open: import("@angular/core").ModelSignal<boolean>;
|
|
108
|
+
/**
|
|
109
|
+
* @description A key combination that opens and closes the dialog from anywhere on the page, such as `mod+k`.
|
|
110
|
+
* `mod` is Command on Apple devices and Ctrl elsewhere. Nothing is bound unless this is set.
|
|
111
|
+
*/
|
|
112
|
+
readonly shortcut: import("@angular/core").InputSignal<string | null>;
|
|
113
|
+
/** @description The dialog's width. It never gets wider than the viewport. */
|
|
114
|
+
readonly width: import("@angular/core").InputSignal<string | number>;
|
|
115
|
+
constructor();
|
|
116
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CommandDialogComponent, never>;
|
|
117
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CommandDialogComponent, "mona-command-dialog", never, {
|
|
118
|
+
"ariaLabel": {
|
|
119
|
+
"alias": "aria-label";
|
|
120
|
+
"required": false;
|
|
121
|
+
"isSignal": true;
|
|
122
|
+
};
|
|
123
|
+
"open": {
|
|
124
|
+
"alias": "open";
|
|
125
|
+
"required": false;
|
|
126
|
+
"isSignal": true;
|
|
127
|
+
};
|
|
128
|
+
"shortcut": {
|
|
129
|
+
"alias": "shortcut";
|
|
130
|
+
"required": false;
|
|
131
|
+
"isSignal": true;
|
|
132
|
+
};
|
|
133
|
+
"width": {
|
|
134
|
+
"alias": "width";
|
|
135
|
+
"required": false;
|
|
136
|
+
"isSignal": true;
|
|
137
|
+
};
|
|
138
|
+
}, {
|
|
139
|
+
"open": "openChange";
|
|
140
|
+
}, ["content"], never, true, never>;
|
|
141
|
+
}
|
|
91
142
|
/** Shows while a query has no results. Its content replaces the default message. */
|
|
92
|
-
declare class CommandEmptyComponent {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
143
|
+
export declare class CommandEmptyComponent {
|
|
144
|
+
protected readonly root: CommandComponent;
|
|
145
|
+
protected readonly statusClass: import("@angular/core").Signal<string>;
|
|
146
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CommandEmptyComponent, never>;
|
|
147
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CommandEmptyComponent, "mona-command-empty", never, {}, {}, never, ["*"], true, never>;
|
|
97
148
|
}
|
|
98
|
-
|
|
99
149
|
/** A strip below the list, for key hints or links. */
|
|
100
|
-
declare class CommandFooterComponent {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
150
|
+
export declare class CommandFooterComponent {
|
|
151
|
+
protected readonly hostClass: import("@angular/core").Signal<string>;
|
|
152
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CommandFooterComponent, never>;
|
|
153
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CommandFooterComponent, "mona-command-footer", never, {}, {}, never, ["*"], true, never>;
|
|
104
154
|
}
|
|
105
|
-
|
|
106
155
|
/** A titled set of items. It hides itself while none of its items show. */
|
|
107
|
-
declare class CommandGroupComponent {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
156
|
+
export declare class CommandGroupComponent {
|
|
157
|
+
#private;
|
|
158
|
+
protected readonly headingClass: import("@angular/core").Signal<string>;
|
|
159
|
+
protected readonly headingId: string;
|
|
160
|
+
protected readonly hostClass: import("@angular/core").Signal<string>;
|
|
161
|
+
protected readonly visible: import("@angular/core").Signal<boolean>;
|
|
162
|
+
/** @description The title above the group's items. */
|
|
163
|
+
readonly heading: import("@angular/core").InputSignal<string | undefined>;
|
|
164
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CommandGroupComponent, never>;
|
|
165
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CommandGroupComponent, "mona-command-group", never, {
|
|
166
|
+
"heading": {
|
|
167
|
+
"alias": "heading";
|
|
168
|
+
"required": false;
|
|
169
|
+
"isSignal": true;
|
|
170
|
+
};
|
|
171
|
+
}, {}, never, ["*"], true, never>;
|
|
172
|
+
}
|
|
119
173
|
/** A strip above or below the input, for filters or a title. */
|
|
120
|
-
declare class CommandHeaderComponent {
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
174
|
+
export declare class CommandHeaderComponent {
|
|
175
|
+
protected readonly hostClass: import("@angular/core").Signal<string>;
|
|
176
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CommandHeaderComponent, never>;
|
|
177
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CommandHeaderComponent, "mona-command-header", never, {}, {}, never, ["*"], true, never>;
|
|
124
178
|
}
|
|
125
|
-
|
|
126
179
|
/**
|
|
127
180
|
* The default filter: an item stays when every word of the query appears in its value or keywords, ignoring case and
|
|
128
181
|
* accents.
|
|
129
182
|
*/
|
|
130
|
-
declare const defaultCommandFilter: CommandFilter;
|
|
183
|
+
export declare const defaultCommandFilter: CommandFilter;
|
|
131
184
|
interface CommandTextPart {
|
|
132
|
-
|
|
133
|
-
|
|
185
|
+
readonly match: boolean;
|
|
186
|
+
readonly text: string;
|
|
134
187
|
}
|
|
135
|
-
|
|
136
188
|
/** Shows a text with the parts the query matches marked. Marks the query's words, however the item was matched. */
|
|
137
|
-
declare class CommandHighlightComponent {
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
189
|
+
export declare class CommandHighlightComponent {
|
|
190
|
+
#private;
|
|
191
|
+
protected readonly markClass: import("@angular/core").Signal<string>;
|
|
192
|
+
protected readonly parts: import("@angular/core").Signal<readonly CommandTextPart[]>;
|
|
193
|
+
/** @description The text to show. */
|
|
194
|
+
readonly text: import("@angular/core").InputSignal<string>;
|
|
195
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CommandHighlightComponent, never>;
|
|
196
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CommandHighlightComponent, "mona-command-highlight", never, {
|
|
197
|
+
"text": {
|
|
198
|
+
"alias": "text";
|
|
199
|
+
"required": true;
|
|
200
|
+
"isSignal": true;
|
|
201
|
+
};
|
|
202
|
+
}, {}, never, never, true, never>;
|
|
203
|
+
}
|
|
147
204
|
/**
|
|
148
205
|
* The search field of a `mona-command`. Focus stays here while the arrow keys move through the list, so typing always
|
|
149
206
|
* continues the search.
|
|
150
207
|
*/
|
|
151
|
-
declare class CommandInputComponent {
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
208
|
+
export declare class CommandInputComponent {
|
|
209
|
+
protected readonly field: import("@angular/core").Signal<ElementRef<HTMLInputElement>>;
|
|
210
|
+
protected readonly fieldClass: import("@angular/core").Signal<string>;
|
|
211
|
+
protected readonly hostClass: import("@angular/core").Signal<string>;
|
|
212
|
+
protected readonly iconClass: import("@angular/core").Signal<string>;
|
|
213
|
+
protected readonly root: CommandComponent;
|
|
214
|
+
/** @description The accessible name of the field. */
|
|
215
|
+
readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
216
|
+
/** @description The text shown while the field is empty. */
|
|
217
|
+
readonly placeholder: import("@angular/core").InputSignal<string | undefined>;
|
|
218
|
+
constructor();
|
|
219
|
+
protected onInput(event: Event): void;
|
|
220
|
+
protected onKeydown(event: KeyboardEvent): void;
|
|
221
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CommandInputComponent, never>;
|
|
222
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CommandInputComponent, "mona-command-input", never, {
|
|
223
|
+
"ariaLabel": {
|
|
224
|
+
"alias": "aria-label";
|
|
225
|
+
"required": false;
|
|
226
|
+
"isSignal": true;
|
|
227
|
+
};
|
|
228
|
+
"placeholder": {
|
|
229
|
+
"alias": "placeholder";
|
|
230
|
+
"required": false;
|
|
231
|
+
"isSignal": true;
|
|
232
|
+
};
|
|
233
|
+
}, {}, never, never, true, never>;
|
|
234
|
+
}
|
|
168
235
|
/** One action or option in a `mona-command`. What it shows is its content; what it's found by is its value. */
|
|
169
|
-
declare class CommandItemComponent {
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
236
|
+
export declare class CommandItemComponent {
|
|
237
|
+
#private;
|
|
238
|
+
protected readonly active: import("@angular/core").Signal<boolean>;
|
|
239
|
+
protected readonly hostClass: import("@angular/core").Signal<string>;
|
|
240
|
+
/** @description Whether the item shows but can't be chosen. */
|
|
241
|
+
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
242
|
+
/** @description Emits when this item is chosen, with the pointer or with Enter. */
|
|
243
|
+
readonly itemSelect: import("@angular/core").OutputEmitterRef<CommandSelectEvent>;
|
|
244
|
+
/** @description Other words the item should be found by, such as synonyms. */
|
|
245
|
+
readonly keywords: import("@angular/core").InputSignal<readonly string[]>;
|
|
246
|
+
/** @description What the item is found by, and what the select event carries. */
|
|
247
|
+
readonly value: import("@angular/core").InputSignal<string>;
|
|
248
|
+
constructor();
|
|
249
|
+
protected onClick(event: MouseEvent): void;
|
|
250
|
+
/** Not `mouseenter`: that also fires when the list scrolls under a resting pointer, which would steal the active item. */
|
|
251
|
+
protected onPointerMove(): void;
|
|
252
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CommandItemComponent, never>;
|
|
253
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CommandItemComponent, "mona-command-item", never, {
|
|
254
|
+
"disabled": {
|
|
255
|
+
"alias": "disabled";
|
|
256
|
+
"required": false;
|
|
257
|
+
"isSignal": true;
|
|
258
|
+
};
|
|
259
|
+
"keywords": {
|
|
260
|
+
"alias": "keywords";
|
|
261
|
+
"required": false;
|
|
262
|
+
"isSignal": true;
|
|
263
|
+
};
|
|
264
|
+
"value": {
|
|
265
|
+
"alias": "value";
|
|
266
|
+
"required": true;
|
|
267
|
+
"isSignal": true;
|
|
268
|
+
};
|
|
269
|
+
}, {
|
|
270
|
+
"itemSelect": "itemSelect";
|
|
271
|
+
}, never, ["*"], true, never>;
|
|
272
|
+
}
|
|
189
273
|
/**
|
|
190
274
|
* Holds the items of a `mona-command`, and scrolls them. The empty and loading states sit outside the listbox, which
|
|
191
275
|
* may only contain options and groups.
|
|
192
276
|
*/
|
|
193
|
-
declare class CommandListComponent {
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
277
|
+
export declare class CommandListComponent {
|
|
278
|
+
protected readonly listClass: import("@angular/core").Signal<string>;
|
|
279
|
+
protected readonly root: CommandComponent;
|
|
280
|
+
/** @description The accessible name of the list. */
|
|
281
|
+
readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
282
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CommandListComponent, never>;
|
|
283
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CommandListComponent, "mona-command-list", never, {
|
|
284
|
+
"ariaLabel": {
|
|
285
|
+
"alias": "aria-label";
|
|
286
|
+
"required": false;
|
|
287
|
+
"isSignal": true;
|
|
288
|
+
};
|
|
289
|
+
}, {}, never, ["mona-command-empty, mona-command-loading", "*"], true, never>;
|
|
290
|
+
}
|
|
202
291
|
/** Shows while the `mona-command` is `loading`. Its content replaces the default message. */
|
|
203
|
-
declare class CommandLoadingComponent {
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
292
|
+
export declare class CommandLoadingComponent {
|
|
293
|
+
protected readonly root: CommandComponent;
|
|
294
|
+
protected readonly statusClass: import("@angular/core").Signal<string>;
|
|
295
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CommandLoadingComponent, never>;
|
|
296
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CommandLoadingComponent, "mona-command-loading", never, {}, {}, never, ["*"], true, never>;
|
|
208
297
|
}
|
|
209
|
-
|
|
210
298
|
/**
|
|
211
299
|
* A line between items. It's only visual, because a listbox can't contain a separator role. It hides while the
|
|
212
300
|
* component filters, when it would divide nothing.
|
|
213
301
|
*/
|
|
214
|
-
declare class CommandSeparatorComponent {
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
}
|
|
221
|
-
|
|
302
|
+
export declare class CommandSeparatorComponent {
|
|
303
|
+
#private;
|
|
304
|
+
protected readonly hidden: import("@angular/core").Signal<boolean>;
|
|
305
|
+
protected readonly hostClass: import("@angular/core").Signal<string>;
|
|
306
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CommandSeparatorComponent, never>;
|
|
307
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CommandSeparatorComponent, "mona-command-separator", never, {}, {}, never, never, true, never>;
|
|
308
|
+
}
|
|
222
309
|
interface CommandKey {
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
310
|
+
/** What a screen reader should say. */
|
|
311
|
+
readonly name: string;
|
|
312
|
+
/** What the key looks like on the keyboard. */
|
|
313
|
+
readonly symbol: string;
|
|
227
314
|
}
|
|
228
|
-
|
|
229
315
|
/**
|
|
230
316
|
* Shows an item's shortcut the way the platform writes it. It's only a hint: binding the keys stays with the consumer,
|
|
231
317
|
* who knows what they do.
|
|
232
318
|
*/
|
|
233
|
-
declare class CommandShortcutComponent {
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
319
|
+
export declare class CommandShortcutComponent {
|
|
320
|
+
#private;
|
|
321
|
+
protected readonly hostClass: import("@angular/core").Signal<string>;
|
|
322
|
+
protected readonly keyClass: import("@angular/core").Signal<string>;
|
|
323
|
+
protected readonly parts: import("@angular/core").Signal<readonly CommandKey[]>;
|
|
324
|
+
/** @description The keys, joined with `+`, such as `mod+k`. `mod` is Command on Apple devices and Ctrl elsewhere. */
|
|
325
|
+
readonly keys: import("@angular/core").InputSignal<string>;
|
|
326
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CommandShortcutComponent, never>;
|
|
327
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CommandShortcutComponent, "mona-command-shortcut", never, {
|
|
328
|
+
"keys": {
|
|
329
|
+
"alias": "keys";
|
|
330
|
+
"required": true;
|
|
331
|
+
"isSignal": true;
|
|
332
|
+
};
|
|
333
|
+
}, {}, never, never, true, never>;
|
|
334
|
+
}
|
|
244
335
|
/** Marks the template a `mona-command-dialog` renders while it's open. */
|
|
245
|
-
declare class CommandDialogContentDirective {
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
export { COMMAND_DEFAULT_MESSAGES, CommandComponent, CommandDialogComponent, CommandDialogContentDirective, CommandEmptyComponent, CommandFooterComponent, CommandGroupComponent, CommandHeaderComponent, CommandHighlightComponent, CommandInputComponent, CommandItemComponent, CommandListComponent, CommandLoadingComponent, CommandSeparatorComponent, CommandShortcutComponent, defaultCommandFilter };
|
|
253
|
-
export type { CommandFilter, CommandFilterItem, CommandFilterMode, CommandSelectEvent };
|
|
336
|
+
export declare class CommandDialogContentDirective {
|
|
337
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CommandDialogContentDirective, never>;
|
|
338
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CommandDialogContentDirective, "ng-template[monaCommandDialogContent]", never, {}, {}, never, never, true, never>;
|
|
339
|
+
}
|
|
340
|
+
export declare const COMMAND_DEFAULT_MESSAGES: MonaCommandMessages;
|
|
341
|
+
export type { CommandFilter, CommandFilterItem, CommandFilterMode, CommandSelectEvent };
|