@nanahoshi/mona-ui 0.25.1 → 0.26.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/chart/README.md +2 -2
- package/command/package.json +4 -0
- package/docs/auto-complete.md +733 -0
- package/docs/avatar.md +220 -0
- package/docs/breadcrumb.md +320 -0
- package/docs/button-group.md +392 -0
- package/docs/button.md +256 -0
- package/docs/calendar.md +515 -0
- package/docs/card.md +292 -0
- package/docs/chart-bar.md +714 -0
- package/docs/chart-financial.md +567 -0
- package/docs/chart-funnel.md +546 -0
- package/docs/chart-heatmap.md +535 -0
- package/docs/chart-line-area.md +462 -0
- package/docs/chart-pie.md +645 -0
- package/docs/chart-radar.md +518 -0
- package/docs/chart-radial.md +658 -0
- package/docs/chart-scatter.md +479 -0
- package/docs/chart-treemap.md +651 -0
- package/docs/chart.md +2465 -0
- package/docs/checkbox.md +374 -0
- package/docs/chip.md +339 -0
- package/docs/circular-progress-bar.md +287 -0
- package/docs/collapsible.md +308 -0
- package/docs/color-gradient.md +336 -0
- package/docs/color-palette.md +317 -0
- package/docs/color-picker.md +387 -0
- package/docs/combo-box.md +764 -0
- package/docs/command.md +582 -0
- package/docs/contextmenu.md +530 -0
- package/docs/date-picker.md +251 -0
- package/docs/datetime-picker.md +284 -0
- package/docs/decimal-textbox.md +260 -0
- package/docs/dialog.md +822 -0
- package/docs/dropdown-button.md +507 -0
- package/docs/dropdown-list.md +779 -0
- package/docs/editor.md +374 -0
- package/docs/expansion-panel.md +348 -0
- package/docs/fieldset.md +217 -0
- package/docs/forms.md +162 -0
- package/docs/grid.md +2053 -0
- package/docs/input.md +197 -0
- package/docs/installation.md +54 -0
- package/docs/introduction.md +46 -0
- package/docs/label.md +340 -0
- package/docs/list-box.md +637 -0
- package/docs/list-view.md +584 -0
- package/docs/menubar.md +559 -0
- package/docs/multi-select.md +765 -0
- package/docs/notification.md +460 -0
- package/docs/numeric-textbox.md +301 -0
- package/docs/otp-input.md +539 -0
- package/docs/pager.md +513 -0
- package/docs/placeholder.md +176 -0
- package/docs/popover.md +423 -0
- package/docs/popup-menu.md +658 -0
- package/docs/popup.md +617 -0
- package/docs/progress-bar.md +368 -0
- package/docs/radio-button.md +451 -0
- package/docs/range-slider.md +367 -0
- package/docs/rating.md +518 -0
- package/docs/scroll-view.md +375 -0
- package/docs/segmented.md +434 -0
- package/docs/sheet.md +348 -0
- package/docs/sidebar.md +1126 -0
- package/docs/skeleton.md +181 -0
- package/docs/slider.md +423 -0
- package/docs/spinner.md +370 -0
- package/docs/split-button.md +522 -0
- package/docs/splitter.md +342 -0
- package/docs/stepper.md +539 -0
- package/docs/switch.md +340 -0
- package/docs/tabs.md +542 -0
- package/docs/textarea.md +196 -0
- package/docs/textbox.md +332 -0
- package/docs/theming.md +403 -0
- package/docs/time-picker.md +254 -0
- package/docs/tooltip-directive.md +340 -0
- package/docs/tooltip.md +321 -0
- package/docs/tree-view.md +1018 -0
- package/docs/window.md +663 -0
- package/fesm2022/nanahoshi-mona-ui-auto-complete.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-breadcrumb.mjs +8 -0
- package/fesm2022/nanahoshi-mona-ui-button.mjs +12 -0
- package/fesm2022/nanahoshi-mona-ui-calendar.mjs +5 -2
- package/fesm2022/nanahoshi-mona-ui-chart.mjs +212 -66
- package/fesm2022/nanahoshi-mona-ui-check-box.mjs +4 -0
- package/fesm2022/nanahoshi-mona-ui-circular-progress-bar.mjs +4 -0
- package/fesm2022/nanahoshi-mona-ui-collapsible.mjs +16 -2
- package/fesm2022/nanahoshi-mona-ui-combo-box.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-command.mjs +924 -0
- package/fesm2022/nanahoshi-mona-ui-common.mjs +4 -0
- package/fesm2022/nanahoshi-mona-ui-contextmenu.mjs +10 -6
- package/fesm2022/nanahoshi-mona-ui-date-picker.mjs +2 -1
- package/fesm2022/nanahoshi-mona-ui-datetime-picker.mjs +2 -1
- package/fesm2022/nanahoshi-mona-ui-dialog.mjs +9 -5
- package/fesm2022/nanahoshi-mona-ui-dropdown-button.mjs +9 -5
- package/fesm2022/nanahoshi-mona-ui-dropdowns.mjs +55 -1
- package/fesm2022/nanahoshi-mona-ui-editor.mjs +3 -2
- package/fesm2022/nanahoshi-mona-ui-expansion-panel.mjs +13 -0
- package/fesm2022/nanahoshi-mona-ui-fieldset.mjs +5 -0
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-footer-row.component-2tVhD2hK.mjs → nanahoshi-mona-ui-grid-grid-footer-row.component-DjNnVxHE.mjs} +2 -2
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-list.component-BAN70Wcn.mjs → nanahoshi-mona-ui-grid-grid-list.component-ihQIKeP-.mjs} +5 -5
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-row.component-C_kCaA5b.mjs → nanahoshi-mona-ui-grid-grid-row.component-BpnybNcs.mjs} +18 -35
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-virtual-list.component-BsNfrAHz.mjs → nanahoshi-mona-ui-grid-grid-virtual-list.component-CYlgfc7c.mjs} +5 -5
- package/fesm2022/{nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-CEfVa7eo.mjs → nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-LCzfCYd3.mjs} +4653 -4529
- package/fesm2022/nanahoshi-mona-ui-grid.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-i18n-icu.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-internal-list.mjs +1 -0
- package/fesm2022/nanahoshi-mona-ui-internal-popup-menu.mjs +168 -0
- package/fesm2022/nanahoshi-mona-ui-internal-tree.mjs +19 -1
- package/fesm2022/nanahoshi-mona-ui-list-box.mjs +14 -0
- package/fesm2022/nanahoshi-mona-ui-list-view.mjs +32 -0
- package/fesm2022/nanahoshi-mona-ui-locales-ar-sa.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-locales-de-de.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-locales-es-es.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-locales-fr-fr.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-locales-id-id.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-locales-it-it.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-locales-ja-jp.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-locales-ko-kr.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-locales-pt-br.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-locales-ru-ru.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-locales-tr-tr.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-locales-zh-cn.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-locales-zh-tw.mjs +10 -0
- package/fesm2022/nanahoshi-mona-ui-menubar.mjs +15 -8
- package/fesm2022/nanahoshi-mona-ui-multi-select.mjs +8 -5
- package/fesm2022/nanahoshi-mona-ui-notification.mjs +9 -0
- package/fesm2022/nanahoshi-mona-ui-numeric-text-box.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-otp-input.mjs +5 -0
- package/fesm2022/nanahoshi-mona-ui-pager.mjs +2 -1
- package/fesm2022/nanahoshi-mona-ui-popover.mjs +14 -6
- package/fesm2022/nanahoshi-mona-ui-popup-menu.mjs +48 -183
- package/fesm2022/nanahoshi-mona-ui-popup.mjs +16 -0
- package/fesm2022/nanahoshi-mona-ui-progress-bar.mjs +4 -0
- package/fesm2022/nanahoshi-mona-ui-rating.mjs +2 -0
- package/fesm2022/nanahoshi-mona-ui-segmented.mjs +1 -0
- package/fesm2022/nanahoshi-mona-ui-sheet.mjs +5 -5
- package/fesm2022/nanahoshi-mona-ui-sidebar.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-slider.mjs +7 -2
- package/fesm2022/nanahoshi-mona-ui-split-button.mjs +9 -6
- package/fesm2022/nanahoshi-mona-ui-stepper.mjs +18 -21
- package/fesm2022/nanahoshi-mona-ui-tabs.mjs +11 -8
- package/fesm2022/nanahoshi-mona-ui-text-box.mjs +9 -1
- package/fesm2022/nanahoshi-mona-ui-time-picker.mjs +2 -1
- package/fesm2022/nanahoshi-mona-ui-tooltip.mjs +16 -5
- package/fesm2022/nanahoshi-mona-ui-tree-view.mjs +13 -11
- package/fesm2022/nanahoshi-mona-ui-window.mjs +12 -5
- package/i18n/catalogs/en-US.messages.json +10 -0
- package/internal/popup-menu/package.json +4 -0
- package/llms.txt +133 -0
- package/locales/ar-sa/ar-sa.messages.json +10 -0
- package/locales/de-de/de-de.messages.json +10 -0
- package/locales/es-es/es-es.messages.json +10 -0
- package/locales/fr-fr/fr-fr.messages.json +10 -0
- package/locales/id-id/id-id.messages.json +10 -0
- package/locales/it-it/it-it.messages.json +10 -0
- package/locales/ja-jp/ja-jp.messages.json +10 -0
- package/locales/ko-kr/ko-kr.messages.json +10 -0
- package/locales/pt-br/pt-br.messages.json +10 -0
- package/locales/ru-ru/ru-ru.messages.json +10 -0
- package/locales/tr-tr/tr-tr.messages.json +10 -0
- package/locales/zh-cn/zh-cn.messages.json +10 -0
- package/locales/zh-tw/zh-tw.messages.json +10 -0
- package/package.json +9 -1
- package/types/nanahoshi-mona-ui-auto-complete.d.ts +1 -1
- package/types/nanahoshi-mona-ui-breadcrumb.d.ts +8 -0
- package/types/nanahoshi-mona-ui-button.d.ts +12 -0
- package/types/nanahoshi-mona-ui-calendar.d.ts +3 -0
- package/types/nanahoshi-mona-ui-chart.d.ts +250 -20
- package/types/nanahoshi-mona-ui-check-box.d.ts +4 -0
- package/types/nanahoshi-mona-ui-circular-progress-bar.d.ts +4 -0
- package/types/nanahoshi-mona-ui-collapsible.d.ts +10 -0
- package/types/nanahoshi-mona-ui-combo-box.d.ts +1 -1
- package/types/nanahoshi-mona-ui-command.d.ts +253 -0
- package/types/nanahoshi-mona-ui-common.d.ts +17 -1
- package/types/nanahoshi-mona-ui-contextmenu.d.ts +5 -2
- package/types/nanahoshi-mona-ui-date-picker.d.ts +2 -1
- package/types/nanahoshi-mona-ui-datetime-picker.d.ts +2 -1
- package/types/nanahoshi-mona-ui-dialog.d.ts +58 -1
- package/types/nanahoshi-mona-ui-dropdown-button.d.ts +7 -3
- package/types/nanahoshi-mona-ui-dropdowns.d.ts +55 -1
- package/types/nanahoshi-mona-ui-editor.d.ts +31 -0
- package/types/nanahoshi-mona-ui-expansion-panel.d.ts +13 -0
- package/types/nanahoshi-mona-ui-fieldset.d.ts +5 -0
- package/types/nanahoshi-mona-ui-grid.d.ts +162 -35
- package/types/nanahoshi-mona-ui-i18n.d.ts +144 -1
- package/types/nanahoshi-mona-ui-internal-list.d.ts +16 -1
- package/types/nanahoshi-mona-ui-internal-popup-menu.d.ts +165 -0
- package/types/nanahoshi-mona-ui-internal-tree.d.ts +21 -2
- package/types/nanahoshi-mona-ui-internal.d.ts +4 -5
- package/types/nanahoshi-mona-ui-label.d.ts +1 -0
- package/types/nanahoshi-mona-ui-list-box.d.ts +27 -4
- package/types/nanahoshi-mona-ui-list-view.d.ts +34 -1
- package/types/nanahoshi-mona-ui-list.d.ts +1 -1
- package/types/nanahoshi-mona-ui-locales-ar-sa.d.ts +10 -0
- package/types/nanahoshi-mona-ui-locales-de-de.d.ts +10 -0
- package/types/nanahoshi-mona-ui-locales-es-es.d.ts +10 -0
- package/types/nanahoshi-mona-ui-locales-fr-fr.d.ts +10 -0
- package/types/nanahoshi-mona-ui-locales-id-id.d.ts +10 -0
- package/types/nanahoshi-mona-ui-locales-it-it.d.ts +10 -0
- package/types/nanahoshi-mona-ui-locales-ja-jp.d.ts +10 -0
- package/types/nanahoshi-mona-ui-locales-ko-kr.d.ts +10 -0
- package/types/nanahoshi-mona-ui-locales-pt-br.d.ts +10 -0
- package/types/nanahoshi-mona-ui-locales-ru-ru.d.ts +10 -0
- package/types/nanahoshi-mona-ui-locales-tr-tr.d.ts +10 -0
- package/types/nanahoshi-mona-ui-locales-zh-cn.d.ts +10 -0
- package/types/nanahoshi-mona-ui-locales-zh-tw.d.ts +10 -0
- package/types/nanahoshi-mona-ui-menubar.d.ts +10 -3
- package/types/nanahoshi-mona-ui-multi-select.d.ts +3 -3
- package/types/nanahoshi-mona-ui-notification.d.ts +9 -0
- package/types/nanahoshi-mona-ui-numeric-text-box.d.ts +1 -1
- package/types/nanahoshi-mona-ui-otp-input.d.ts +1 -0
- package/types/nanahoshi-mona-ui-pager.d.ts +5 -1
- package/types/nanahoshi-mona-ui-popover.d.ts +9 -1
- package/types/nanahoshi-mona-ui-popup-menu.d.ts +48 -161
- package/types/nanahoshi-mona-ui-popup.d.ts +16 -0
- package/types/nanahoshi-mona-ui-progress-bar.d.ts +4 -0
- package/types/nanahoshi-mona-ui-rating.d.ts +2 -0
- package/types/nanahoshi-mona-ui-segmented.d.ts +1 -0
- package/types/nanahoshi-mona-ui-sheet.d.ts +1 -1
- package/types/nanahoshi-mona-ui-slider.d.ts +2 -0
- package/types/nanahoshi-mona-ui-spinner.d.ts +7 -0
- package/types/nanahoshi-mona-ui-split-button.d.ts +7 -4
- package/types/nanahoshi-mona-ui-stepper.d.ts +11 -2
- package/types/nanahoshi-mona-ui-tabs.d.ts +4 -1
- package/types/nanahoshi-mona-ui-text-box.d.ts +9 -1
- package/types/nanahoshi-mona-ui-time-picker.d.ts +2 -1
- package/types/nanahoshi-mona-ui-tooltip.d.ts +10 -2
- package/types/nanahoshi-mona-ui-tree-view.d.ts +6 -5
- package/types/nanahoshi-mona-ui-window.d.ts +66 -1
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import * as _nanahoshi_mona_ui_popup_menu from '@nanahoshi/mona-ui/popup-menu';
|
|
2
|
-
import { PopupMenuComponent, PopupMenuItemClickEvent, PopupMenuCheckboxItemComponent,
|
|
2
|
+
import { PopupMenuComponent, PopupMenuItemClickEvent, PopupMenuCheckboxItemComponent, PopupMenuGroupComponent, PopupMenuItemComponent, PopupMenuRadioGroupComponent, PopupMenuRadioItemComponent, PopupMenuSeparatorComponent, PopupMenuGroupTemplateDirective, PopupMenuIconTemplateDirective, PopupMenuShortcutTemplateDirective, PopupMenuTextTemplateDirective } from '@nanahoshi/mona-ui/popup-menu';
|
|
3
3
|
import * as _angular_core from '@angular/core';
|
|
4
4
|
import { ElementRef, TemplateRef } from '@angular/core';
|
|
5
5
|
import { ButtonVariantsInput, ButtonGroupMember, ButtonDirective } from '@nanahoshi/mona-ui/button';
|
|
6
|
+
import { PopupMenuOrigin, PopupMenuTemplateOrigin } from '@nanahoshi/mona-ui/internal/popup-menu';
|
|
6
7
|
|
|
7
8
|
type DropdownButtonVariantInputs = Omit<ButtonVariantsInput, "selected">;
|
|
8
9
|
|
|
9
10
|
declare class DropdownButtonComponent implements ButtonGroupMember, DropdownButtonVariantInputs {
|
|
10
11
|
#private;
|
|
11
12
|
private readonly menuItemComponents;
|
|
13
|
+
/** The menu is named by the element it opens from, through this id. */
|
|
14
|
+
protected readonly buttonId: string;
|
|
12
15
|
protected readonly buttonRef: _angular_core.Signal<ElementRef<HTMLButtonElement> | undefined>;
|
|
13
16
|
protected readonly groupTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
14
17
|
protected readonly isMenuOpen: _angular_core.WritableSignal<boolean>;
|
|
@@ -32,7 +35,7 @@ declare class DropdownButtonComponent implements ButtonGroupMember, DropdownButt
|
|
|
32
35
|
* Takes precedence over `aria-label` when both are set.
|
|
33
36
|
* @default ""
|
|
34
37
|
*/
|
|
35
|
-
readonly
|
|
38
|
+
readonly ariaLabelledBy: _angular_core.InputSignal<string>;
|
|
36
39
|
/**
|
|
37
40
|
* @description Renders the button with reduced visual emphasis and removes pointer interaction. Disabling the
|
|
38
41
|
* button closes its open menu.
|
|
@@ -102,7 +105,7 @@ declare class DropdownButtonComponent implements ButtonGroupMember, DropdownButt
|
|
|
102
105
|
protected onMenuItemClick(event: PopupMenuItemClickEvent): void;
|
|
103
106
|
protected onMenuOpen(): void;
|
|
104
107
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DropdownButtonComponent, never>;
|
|
105
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DropdownButtonComponent, "mona-dropdown-button", never, { "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "
|
|
108
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DropdownButtonComponent, "mona-dropdown-button", never, { "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "iconOnly": { "alias": "iconOnly"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "look": { "alias": "look"; "required": false; "isSignal": true; }; "popupWidth": { "alias": "popupWidth"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "showArrow": { "alias": "showArrow"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, { "menuItemClick": "menuItemClick"; }, ["menuItemComponents", "groupTemplate", "menuItemIconTemplate", "menuItemShortcutTemplate", "menuItemTextTemplate", "textTemplate"], never, true, never>;
|
|
106
109
|
}
|
|
107
110
|
|
|
108
111
|
declare class DropdownButtonCheckboxItemComponent extends PopupMenuCheckboxItemComponent {
|
|
@@ -140,6 +143,7 @@ declare class DropdownButtonRadioItemComponent extends PopupMenuRadioItemCompone
|
|
|
140
143
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DropdownButtonRadioItemComponent, "mona-dropdown-button-radio-item", never, {}, {}, never, never, true, never>;
|
|
141
144
|
}
|
|
142
145
|
|
|
146
|
+
/** Renders a horizontal visual divider between sections. */
|
|
143
147
|
declare class DropdownButtonSeparatorComponent extends PopupMenuSeparatorComponent {
|
|
144
148
|
readonly origin = PopupMenuOrigin.DropdownButton;
|
|
145
149
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DropdownButtonSeparatorComponent, never>;
|
|
@@ -41,9 +41,21 @@ declare const DROPDOWN_POPUP_INPUT_TOKEN: InjectionToken<DropdownPopupInput>;
|
|
|
41
41
|
|
|
42
42
|
declare class DropdownFilterableDirective {
|
|
43
43
|
#private;
|
|
44
|
+
/** @description Current filter text used to narrow the visible options. */
|
|
44
45
|
readonly filter: i0.InputSignal<string>;
|
|
46
|
+
/** @description Emitted when the filter value changes. Cancelable. */
|
|
45
47
|
readonly filterChange: i0.OutputEmitterRef<FilterChangeEvent>;
|
|
48
|
+
/**
|
|
49
|
+
* @description Placeholder text in the popup's filter row. Auto Complete has no filter row, since its own input is
|
|
50
|
+
* the filter, so it ignores this.
|
|
51
|
+
* @default ""
|
|
52
|
+
*/
|
|
46
53
|
readonly filterPlaceholder: i0.InputSignal<string>;
|
|
54
|
+
/**
|
|
55
|
+
* @description Filter operator, case sensitivity, and debounce delay. An empty string enables filtering with
|
|
56
|
+
* default settings (`operator: "contains"`, `caseSensitive: false`, `debounce: 0`); pass an object to override any
|
|
57
|
+
* field.
|
|
58
|
+
*/
|
|
47
59
|
readonly options: i0.InputSignal<"" | Partial<FilterableOptions>>;
|
|
48
60
|
constructor();
|
|
49
61
|
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownFilterableDirective, never>;
|
|
@@ -62,7 +74,12 @@ declare class DropdownGroupHeaderTemplateDirective {
|
|
|
62
74
|
|
|
63
75
|
declare class DropdownGroupableDirective<TData> {
|
|
64
76
|
#private;
|
|
77
|
+
/** @description Property name, or accessor, used to derive an option's group. */
|
|
65
78
|
readonly groupBy: i0.InputSignal<string | Selector<TData, unknown> | null | undefined>;
|
|
79
|
+
/**
|
|
80
|
+
* @description Group header order, and optional per-group item ordering. An empty string enables grouping with
|
|
81
|
+
* default settings (`headerOrder: "asc"`); pass an object to override any field.
|
|
82
|
+
*/
|
|
66
83
|
readonly options: i0.InputSignal<"" | GroupableOptions<TData, unknown>>;
|
|
67
84
|
constructor();
|
|
68
85
|
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownGroupableDirective<any>, never>;
|
|
@@ -86,6 +103,10 @@ declare class DropdownNoDataTemplateDirective {
|
|
|
86
103
|
|
|
87
104
|
declare class DropdownVirtualScrollDirective {
|
|
88
105
|
#private;
|
|
106
|
+
/**
|
|
107
|
+
* @description Whether virtual scrolling is enabled and the pixel height of a single option row. An empty string
|
|
108
|
+
* enables virtual scrolling with default settings (`height: 28`); pass an object to override either field.
|
|
109
|
+
*/
|
|
89
110
|
readonly options: i0.InputSignal<"" | Partial<VirtualScrollOptions>>;
|
|
90
111
|
constructor();
|
|
91
112
|
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownVirtualScrollDirective, never>;
|
|
@@ -152,8 +173,21 @@ declare class DropdownSuffixTemplateDirective {
|
|
|
152
173
|
static ɵdir: i0.ɵɵDirectiveDeclaration<DropdownSuffixTemplateDirective, "ng-template[monaDropdownSuffixTemplate]", never, {}, {}, never, never, true, never>;
|
|
153
174
|
}
|
|
154
175
|
|
|
176
|
+
/**
|
|
177
|
+
* @hidden
|
|
178
|
+
* The state one dropdown shares with its popup handlers and live region. Each dropdown provides its own; the date and
|
|
179
|
+
* time pickers use it too, which is why it is exported. Applications don't need it.
|
|
180
|
+
*/
|
|
155
181
|
declare class DropdownService {
|
|
182
|
+
/**
|
|
183
|
+
* Every key the dropdown's host receives (outside IME composition), before the dropdown handles it. Call
|
|
184
|
+
* `preventDefault()` on the event to skip the built-in handling.
|
|
185
|
+
*/
|
|
156
186
|
readonly beforeKeydown$: Subject<PreventableEvent<KeyboardEvent>>;
|
|
187
|
+
/**
|
|
188
|
+
* ArrowDown or ArrowUp on the host, before the dropdown opens, closes or moves through the list. Call
|
|
189
|
+
* `preventDefault()` on the event to skip the built-in handling.
|
|
190
|
+
*/
|
|
157
191
|
readonly beforeNavigate$: Subject<PreventableEvent<KeyboardEvent>>;
|
|
158
192
|
/**
|
|
159
193
|
* Set when the popup finishes closing: whether focus may return to the dropdown. It is `false` when the user
|
|
@@ -161,15 +195,35 @@ declare class DropdownService {
|
|
|
161
195
|
* Tab. Read it from `popupCloseComplete$` before calling `focus()`.
|
|
162
196
|
*/
|
|
163
197
|
readonly focusCanReturn: i0.WritableSignal<boolean>;
|
|
198
|
+
/**
|
|
199
|
+
* Keys the dropdown has no built-in handling for, and Enter before it toggles the popup. Calling `preventDefault()`
|
|
200
|
+
* on an Enter key stops the toggle.
|
|
201
|
+
*/
|
|
164
202
|
readonly keydown$: Subject<KeyboardEvent>;
|
|
203
|
+
/**
|
|
204
|
+
* Emits when the popup has closed and its leave animation has finished, with the close event. By then
|
|
205
|
+
* `popupRef` is `null` and {@link focusCanReturn} is set.
|
|
206
|
+
*/
|
|
165
207
|
readonly popupCloseComplete$: Subject<PopupCloseEvent<unknown>>;
|
|
208
|
+
/** Emits when the popup's close sequence starts, before its leave animation, with the close event. */
|
|
166
209
|
readonly popupCloseStart$: Subject<PopupCloseEvent<unknown>>;
|
|
210
|
+
/** Emits on the next task after the popup is created, together with the host's `opened` event. */
|
|
167
211
|
readonly popupOpenComplete$: Subject<void>;
|
|
212
|
+
/** The open popup, or `null` while it is closed. */
|
|
168
213
|
readonly popupRef: i0.WritableSignal<PopupRef | null>;
|
|
214
|
+
/** The template rendered as the popup's content. Each dropdown component sets it to its own popup template. */
|
|
169
215
|
readonly popupTemplate: i0.WritableSignal<TemplateRef<unknown> | null>;
|
|
216
|
+
/**
|
|
217
|
+
* Whether focus returns to the dropdown when the popup closes, passed to the popup as its `restoreFocus` setting.
|
|
218
|
+
* The auto-complete sets it to `false`.
|
|
219
|
+
*/
|
|
170
220
|
readonly restoreFocus: i0.WritableSignal<boolean | "auto">;
|
|
171
|
-
|
|
221
|
+
/**
|
|
222
|
+
* Opens the popup with the given settings when it is closed. Does nothing while the host is disabled or read-only,
|
|
223
|
+
* or when the `open` event is prevented.
|
|
224
|
+
*/
|
|
172
225
|
readonly triggerPopupOpen$: Subject<Partial<PopupSettings<unknown, void>>>;
|
|
226
|
+
/** Closes the popup when it is open, and otherwise opens it as {@link triggerPopupOpen$} does. */
|
|
173
227
|
readonly triggerPopupToggle$: Subject<Partial<PopupSettings<unknown, void>>>;
|
|
174
228
|
static getDefaultPositions(): ConnectionPositionPair[];
|
|
175
229
|
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownService, never>;
|
|
@@ -8,39 +8,69 @@ import { ImmutableSet } from '@mirei/ts-collections';
|
|
|
8
8
|
import { EditorState } from '@tiptap/pm/state';
|
|
9
9
|
import { Subject } from 'rxjs';
|
|
10
10
|
|
|
11
|
+
/** The content of the editor after a user change, emitted by `EditorComponent.update`. */
|
|
11
12
|
interface ContentChangeEvent {
|
|
13
|
+
/** The content as HTML, the same as the editor's `html` property. */
|
|
12
14
|
html: string;
|
|
15
|
+
/** The content as a `JSONContent` document, the same as the editor's `json` property. */
|
|
13
16
|
json: JSONContent;
|
|
14
17
|
}
|
|
15
18
|
|
|
19
|
+
/**
|
|
20
|
+
* The features of an editor. Every feature is on unless it is set to `false`. Turning one off removes its toolbar
|
|
21
|
+
* control, and the editor no longer keeps that kind of content.
|
|
22
|
+
*/
|
|
16
23
|
interface EditorSettings {
|
|
24
|
+
/** Whether the toolbar shows the text alignment buttons and the editor keeps paragraph and heading alignment. */
|
|
17
25
|
alignment: boolean;
|
|
26
|
+
/** Whether the toolbar shows the block quote button and the editor keeps block quotes. */
|
|
18
27
|
blockquote: boolean;
|
|
28
|
+
/** Whether the toolbar shows the bold button and the editor keeps bold text. */
|
|
19
29
|
bold: boolean;
|
|
30
|
+
/** Whether the toolbar shows the code block button and the editor keeps code blocks and inline code. */
|
|
20
31
|
code: boolean;
|
|
32
|
+
/** Whether the toolbar shows the text color picker and the editor keeps text colors. */
|
|
21
33
|
fontColor: boolean;
|
|
34
|
+
/** Whether the toolbar shows the font family dropdown and the editor keeps font families. */
|
|
22
35
|
fontFamily: boolean;
|
|
36
|
+
/** Whether the toolbar shows the highlight color picker and the editor keeps highlighted text. */
|
|
23
37
|
fontHighlight: boolean;
|
|
38
|
+
/** The fonts the font family dropdown offers, as CSS font family names. Empty keeps the default list. */
|
|
24
39
|
fontList: Iterable<string>;
|
|
40
|
+
/** Whether the toolbar shows the font size dropdown and the editor keeps font sizes. */
|
|
25
41
|
fontSize: boolean;
|
|
26
42
|
/**
|
|
27
43
|
* The font sizes the font size dropdown offers, as CSS lengths (`"14px"`, `"1.25rem"`). Empty keeps the
|
|
28
44
|
* default list.
|
|
29
45
|
*/
|
|
30
46
|
fontSizeList: Iterable<string>;
|
|
47
|
+
/** Whether the toolbar shows the format dropdown and the editor keeps headings. */
|
|
31
48
|
headings: boolean;
|
|
49
|
+
/** Whether the toolbar shows the undo and redo buttons and the editor keeps an undo history. */
|
|
32
50
|
history: boolean;
|
|
51
|
+
/** Whether the toolbar shows the horizontal line button and the editor keeps horizontal lines. */
|
|
33
52
|
horizontalRule: boolean;
|
|
53
|
+
/** Whether the toolbar shows the insert image button and the editor keeps images. */
|
|
34
54
|
image: boolean;
|
|
55
|
+
/** Whether the toolbar shows the indent and outdent buttons and the editor keeps indentation. */
|
|
35
56
|
indent: boolean;
|
|
57
|
+
/** Whether the toolbar shows the italic button and the editor keeps italic text. */
|
|
36
58
|
italic: boolean;
|
|
59
|
+
/** Whether the toolbar shows the link buttons and the editor keeps links, turning typed URLs into links. */
|
|
37
60
|
link: boolean;
|
|
61
|
+
/** Whether the toolbar shows the numbered and bulleted list buttons and the editor keeps those lists. */
|
|
38
62
|
list: boolean;
|
|
63
|
+
/** Whether the toolbar shows the strikethrough button and the editor keeps struck-through text. */
|
|
39
64
|
strikethrough: boolean;
|
|
65
|
+
/** Whether the toolbar shows the subscript button and the editor keeps subscript text. */
|
|
40
66
|
subscript: boolean;
|
|
67
|
+
/** Whether the toolbar shows the superscript button and the editor keeps superscript text. */
|
|
41
68
|
superscript: boolean;
|
|
69
|
+
/** Whether the toolbar shows the table buttons and the editor keeps tables. */
|
|
42
70
|
table: boolean;
|
|
71
|
+
/** Whether the toolbar shows the task list button and the editor keeps task lists. */
|
|
43
72
|
taskList: boolean;
|
|
73
|
+
/** Whether the toolbar shows the underline button and the editor keeps underlined text. */
|
|
44
74
|
underline: boolean;
|
|
45
75
|
}
|
|
46
76
|
|
|
@@ -182,6 +212,7 @@ declare class EditorComponent implements FormValueControl<string> {
|
|
|
182
212
|
* outside.
|
|
183
213
|
*/
|
|
184
214
|
readonly update: _angular_core.OutputEmitterRef<ContentChangeEvent>;
|
|
215
|
+
/** @description CSS classes applied to the host element. */
|
|
185
216
|
readonly userClass: _angular_core.InputSignal<string>;
|
|
186
217
|
/**
|
|
187
218
|
* @description The content of the editor as HTML. An empty editor has the value `""`. Use `[(value)]`, or
|
|
@@ -108,27 +108,40 @@ declare class ExpansionPanelComponent implements ExpansionPanelVariantInput, Col
|
|
|
108
108
|
*/
|
|
109
109
|
readonly userClass: _angular_core.InputSignal<string>;
|
|
110
110
|
constructor();
|
|
111
|
+
/** Collapses the panel, even when `disabled`. */
|
|
111
112
|
collapse(): void;
|
|
113
|
+
/** Expands the panel, even when `disabled`. */
|
|
112
114
|
expand(): void;
|
|
113
115
|
/**
|
|
114
116
|
* Moves focus to the panel's header button.
|
|
115
117
|
*/
|
|
116
118
|
focus(): void;
|
|
119
|
+
/** Toggles the panel, unless it's `disabled`. */
|
|
117
120
|
toggle(): void;
|
|
118
121
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ExpansionPanelComponent, never>;
|
|
119
122
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ExpansionPanelComponent, "mona-expansion-panel", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "expanded": { "alias": "expanded"; "required": false; "isSignal": true; }; "headingLevel": { "alias": "headingLevel"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, { "expanded": "expandedChange"; }, ["actionsTemplateList", "iconTemplate", "titleTemplate"], ["*"], true, never>;
|
|
120
123
|
}
|
|
121
124
|
|
|
125
|
+
/**
|
|
126
|
+
* Injects content beside the header's button, between the title and the toggle icon. Its controls are the application's
|
|
127
|
+
* own: their clicks and keys don't reach the button, and they need their own accessible names. The template has no
|
|
128
|
+
* context variables.
|
|
129
|
+
*/
|
|
122
130
|
declare class ExpansionPanelActionsTemplateDirective {
|
|
123
131
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ExpansionPanelActionsTemplateDirective, never>;
|
|
124
132
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ExpansionPanelActionsTemplateDirective, "ng-template[monaExpansionPanelActionsTemplate]", never, {}, {}, never, never, true, never>;
|
|
125
133
|
}
|
|
126
134
|
|
|
135
|
+
/** Replaces the default plus/minus toggle icon. */
|
|
127
136
|
declare class ExpansionPanelIconTemplateDirective {
|
|
128
137
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ExpansionPanelIconTemplateDirective, never>;
|
|
129
138
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ExpansionPanelIconTemplateDirective, "ng-template[monaExpansionPanelIconTemplate]", never, {}, {}, never, never, true, never>;
|
|
130
139
|
}
|
|
131
140
|
|
|
141
|
+
/**
|
|
142
|
+
* Replaces the string `title` in the header's button with projected content. It can't hold controls, since it's inside
|
|
143
|
+
* a button. The template has no context variables.
|
|
144
|
+
*/
|
|
132
145
|
declare class ExpansionPanelTitleTemplateDirective {
|
|
133
146
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ExpansionPanelTitleTemplateDirective, never>;
|
|
134
147
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ExpansionPanelTitleTemplateDirective, "ng-template[monaExpansionPanelTitleTemplate]", never, {}, {}, never, never, true, never>;
|
|
@@ -4,6 +4,11 @@ import * as class_variance_authority_types from 'class-variance-authority/types'
|
|
|
4
4
|
import { VariantInputs } from '@nanahoshi/mona-ui/internal';
|
|
5
5
|
import { VariantProps } from 'class-variance-authority';
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* Replaces the string `legend` with projected content inside the `<legend>` element. When this template is present, no
|
|
9
|
+
* default legend styling is applied — the consumer is responsible for all visual treatment. The template has no context
|
|
10
|
+
* variables.
|
|
11
|
+
*/
|
|
7
12
|
declare class FieldsetLegendTemplateDirective {
|
|
8
13
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FieldsetLegendTemplateDirective, never>;
|
|
9
14
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<FieldsetLegendTemplateDirective, "ng-template[monaFieldsetLegendTemplate]", never, {}, {}, never, never, true, never>;
|