@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,13 +1,14 @@
|
|
|
1
1
|
import * as _nanahoshi_mona_ui_i18n from '@nanahoshi/mona-ui/i18n';
|
|
2
2
|
import { MonaSplitButtonMessages } from '@nanahoshi/mona-ui/i18n';
|
|
3
3
|
import * as _nanahoshi_mona_ui_popup_menu from '@nanahoshi/mona-ui/popup-menu';
|
|
4
|
-
import { PopupMenuComponent, PopupMenuItemClickEvent, PopupMenuCheckboxItemComponent,
|
|
4
|
+
import { PopupMenuComponent, PopupMenuItemClickEvent, PopupMenuCheckboxItemComponent, PopupMenuGroupComponent, PopupMenuItemComponent, PopupMenuRadioGroupComponent, PopupMenuRadioItemComponent, PopupMenuSeparatorComponent, PopupMenuGroupTemplateDirective, PopupMenuIconTemplateDirective, PopupMenuShortcutTemplateDirective, PopupMenuTextTemplateDirective } from '@nanahoshi/mona-ui/popup-menu';
|
|
5
5
|
import * as _angular_core from '@angular/core';
|
|
6
6
|
import { TemplateRef, ElementRef } from '@angular/core';
|
|
7
7
|
import { ButtonGroupMember, ButtonDirective } from '@nanahoshi/mona-ui/button';
|
|
8
8
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
9
9
|
import { VariantInputs } from '@nanahoshi/mona-ui/internal';
|
|
10
10
|
import { VariantProps } from 'class-variance-authority';
|
|
11
|
+
import { PopupMenuOrigin, PopupMenuTemplateOrigin } from '@nanahoshi/mona-ui/internal/popup-menu';
|
|
11
12
|
|
|
12
13
|
declare const splitButtonThemeVariants: (props?: ({
|
|
13
14
|
look?: "default" | "error" | "ghost" | "info" | "outline" | "primary" | "secondary" | "success" | "warning" | null | undefined;
|
|
@@ -26,6 +27,8 @@ declare class SplitButtonComponent implements ButtonGroupMember, SplitButtonVari
|
|
|
26
27
|
protected readonly iconTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
27
28
|
protected readonly mainButtonId: string;
|
|
28
29
|
protected readonly mainButtonTextTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
30
|
+
/** The menu is named by the element it opens from, through this id. */
|
|
31
|
+
protected readonly menuButtonId: string;
|
|
29
32
|
protected readonly menuButtonRef: _angular_core.Signal<ElementRef<HTMLButtonElement> | undefined>;
|
|
30
33
|
protected readonly menuButtonTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
31
34
|
protected readonly menuId: string;
|
|
@@ -45,10 +48,10 @@ declare class SplitButtonComponent implements ButtonGroupMember, SplitButtonVari
|
|
|
45
48
|
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
46
49
|
/**
|
|
47
50
|
* @description ID of an external element that provides the accessible name for the main action button.
|
|
48
|
-
* Takes precedence over `
|
|
51
|
+
* Takes precedence over `aria-label` when both are set.
|
|
49
52
|
* @default ""
|
|
50
53
|
*/
|
|
51
|
-
readonly
|
|
54
|
+
readonly ariaLabelledBy: _angular_core.InputSignal<string>;
|
|
52
55
|
/**
|
|
53
56
|
* @description Emitted when the main action button is clicked.
|
|
54
57
|
*/
|
|
@@ -126,7 +129,7 @@ declare class SplitButtonComponent implements ButtonGroupMember, SplitButtonVari
|
|
|
126
129
|
protected onMenuItemClick(event: PopupMenuItemClickEvent): void;
|
|
127
130
|
protected onMenuOpen(): void;
|
|
128
131
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SplitButtonComponent, never>;
|
|
129
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SplitButtonComponent, "mona-split-button", never, { "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "
|
|
132
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SplitButtonComponent, "mona-split-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; }; "menuButtonAriaLabel": { "alias": "menuButtonAriaLabel"; "required": false; "isSignal": true; }; "popupWidth": { "alias": "popupWidth"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "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; }; }, { "buttonClick": "buttonClick"; "menuItemClick": "menuItemClick"; }, ["menuItemComponents", "groupTemplate", "iconTemplate", "mainButtonTextTemplate", "menuButtonTemplate", "shortcutTemplate", "textTemplate"], never, true, never>;
|
|
130
133
|
}
|
|
131
134
|
|
|
132
135
|
declare class SplitButtonCheckboxItemComponent extends PopupMenuCheckboxItemComponent {
|
|
@@ -97,6 +97,7 @@ declare class StepperStepTemplateDirective {
|
|
|
97
97
|
declare const stepperBaseThemeVariants: (props?: ({
|
|
98
98
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
99
99
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
100
|
+
/** The list is in the flow, so the stepper's box holds the indicators and labels. The track is drawn behind it. */
|
|
100
101
|
declare const stepperStepListThemeVariants: (props?: ({
|
|
101
102
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
102
103
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
@@ -108,6 +109,7 @@ declare const stepperStepIndicatorThemeVariants: (props?: ({
|
|
|
108
109
|
state?: "completed" | "current" | "disabled" | "upcoming" | null | undefined;
|
|
109
110
|
rounded?: "small" | "medium" | "large" | "full" | "none" | null | undefined;
|
|
110
111
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
112
|
+
/** Placed by the component, from the first indicator's centre to the last one's. */
|
|
111
113
|
declare const stepperTrackThemeVariants: (props?: ({
|
|
112
114
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
113
115
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
@@ -157,8 +159,15 @@ declare class StepperComponent implements StepperVariantInput {
|
|
|
157
159
|
}>;
|
|
158
160
|
protected readonly trackLineClass: Signal<string>;
|
|
159
161
|
protected readonly trackStyles: Signal<{
|
|
160
|
-
|
|
161
|
-
|
|
162
|
+
insetInlineEnd: string;
|
|
163
|
+
insetInlineStart: string;
|
|
164
|
+
top: string;
|
|
165
|
+
bottom?: undefined;
|
|
166
|
+
} | {
|
|
167
|
+
bottom: string;
|
|
168
|
+
insetInlineStart: string;
|
|
169
|
+
top: string;
|
|
170
|
+
insetInlineEnd?: undefined;
|
|
162
171
|
}>;
|
|
163
172
|
protected readonly viewSteps: Signal<_mirei_ts_collections.ImmutableSet<StepItem<unknown>>>;
|
|
164
173
|
/**
|
|
@@ -11,13 +11,16 @@ import { MonaTabsMessages } from '@nanahoshi/mona-ui/i18n';
|
|
|
11
11
|
declare class TabCloseEvent extends PreventableEvent {
|
|
12
12
|
#private;
|
|
13
13
|
constructor(index: number, selected: boolean, originalEvent?: Event);
|
|
14
|
+
/** Index of the tab a close was requested for. */
|
|
14
15
|
get index(): number;
|
|
16
|
+
/** Whether the tab a close was requested for was the selected tab. */
|
|
15
17
|
get selected(): boolean;
|
|
16
18
|
}
|
|
17
19
|
|
|
18
20
|
declare class TabSelectEvent extends PreventableEvent {
|
|
19
21
|
#private;
|
|
20
22
|
constructor(index: number, originalEvent?: Event);
|
|
23
|
+
/** Index of the tab being selected. */
|
|
21
24
|
get index(): number;
|
|
22
25
|
}
|
|
23
26
|
|
|
@@ -157,7 +160,7 @@ declare class TabListComponent implements TabListVariantInput {
|
|
|
157
160
|
private tabFromEvent;
|
|
158
161
|
private updateScrollVisibility;
|
|
159
162
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TabListComponent, never>;
|
|
160
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TabListComponent, "mona-tab-list", never, { "ariaLabel": { "alias": "
|
|
163
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TabListComponent, "mona-tab-list", never, { "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; "closable": { "alias": "closable"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": true; "isSignal": true; }; "selectedTabId": { "alias": "selectedTabId"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": true; "isSignal": true; }; "tabList": { "alias": "tabList"; "required": true; "isSignal": true; }; }, { "selectedTabId": "selectedTabIdChange"; "tabClose": "tabClose"; "tabSelect": "tabSelect"; }, never, never, true, never>;
|
|
161
164
|
}
|
|
162
165
|
|
|
163
166
|
declare class TabComponent {
|
|
@@ -39,7 +39,7 @@ declare class TextBoxComponent implements TextBoxVariantInput, FormValueControl<
|
|
|
39
39
|
readonly ariaDescribedBy: _angular_core.InputSignal<string>;
|
|
40
40
|
/**
|
|
41
41
|
* @description Accessible name of the inner input. Prefer a visible label, linked through {@link inputId} or
|
|
42
|
-
*
|
|
42
|
+
* `aria-labelledby`; the placeholder is not a label.
|
|
43
43
|
* @default ""
|
|
44
44
|
*/
|
|
45
45
|
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
@@ -211,11 +211,19 @@ declare class TextBoxDirective implements InputVariantInput {
|
|
|
211
211
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TextBoxDirective, "input[monaTextBox]", never, { "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "touched": { "alias": "touched"; "required": false; "isSignal": true; }; "userClass": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
212
212
|
}
|
|
213
213
|
|
|
214
|
+
/**
|
|
215
|
+
* Marks an `<ng-template>` as a prefix slot. The template is rendered inside the container's left side. Multiple prefix
|
|
216
|
+
* templates are supported and render in source order.
|
|
217
|
+
*/
|
|
214
218
|
declare class TextBoxPrefixTemplateDirective {
|
|
215
219
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TextBoxPrefixTemplateDirective, never>;
|
|
216
220
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TextBoxPrefixTemplateDirective, "ng-template[monaTextBoxPrefixTemplate]", never, {}, {}, never, never, true, never>;
|
|
217
221
|
}
|
|
218
222
|
|
|
223
|
+
/**
|
|
224
|
+
* Marks an `<ng-template>` as a suffix slot. The template is rendered inside the container's right side, after the
|
|
225
|
+
* optional clear button. Multiple suffix templates are supported and render in source order.
|
|
226
|
+
*/
|
|
219
227
|
declare class TextBoxSuffixTemplateDirective {
|
|
220
228
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TextBoxSuffixTemplateDirective, never>;
|
|
221
229
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TextBoxSuffixTemplateDirective, "ng-template[monaTextBoxSuffixTemplate]", never, {}, {}, never, never, true, never>;
|
|
@@ -44,7 +44,7 @@ declare class TimePickerComponent implements FormValueControl<Date | null>, Time
|
|
|
44
44
|
readonly ariaDescribedBy: _angular_core.InputSignal<string>;
|
|
45
45
|
/**
|
|
46
46
|
* @description Accessible name of the input. Prefer a visible label, linked through {@link inputId} or
|
|
47
|
-
*
|
|
47
|
+
* `aria-labelledby`; the placeholder is not a label.
|
|
48
48
|
* @default ""
|
|
49
49
|
*/
|
|
50
50
|
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
@@ -189,6 +189,7 @@ declare class TimePickerComponent implements FormValueControl<Date | null>, Time
|
|
|
189
189
|
* @default false
|
|
190
190
|
*/
|
|
191
191
|
readonly touched: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
192
|
+
/** @description Extra classes for the input's container. */
|
|
192
193
|
readonly userClass: _angular_core.InputSignal<string>;
|
|
193
194
|
/**
|
|
194
195
|
* @description Two-way bindable current time value. Typed text is written on Enter and when the input loses
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as _nanahoshi_mona_ui_internal from '@nanahoshi/mona-ui/internal';
|
|
2
2
|
import { VariantInputs, PhysicalOverlaySide, OverlaySide } from '@nanahoshi/mona-ui/internal';
|
|
3
|
+
export { OverlaySide } from '@nanahoshi/mona-ui/internal';
|
|
3
4
|
import * as _angular_core from '@angular/core';
|
|
4
5
|
import { TemplateRef } from '@angular/core';
|
|
5
6
|
import { PopupAnchor, PopupOffset, ConnectionPoint } from '@nanahoshi/mona-ui/popup';
|
|
@@ -76,7 +77,8 @@ declare class TooltipDirective implements TooltipVariantInputs {
|
|
|
76
77
|
readonly contentOf: _angular_core.InputSignal<((element: HTMLElement) => string) | null>;
|
|
77
78
|
/**
|
|
78
79
|
* @description Whether the tooltip is disabled. When disabled, the tooltip will not be shown, and an open one
|
|
79
|
-
* closes.
|
|
80
|
+
* closes. On a button or another control, `[disabled]` also reaches the control, so use {@link tooltipDisabled}
|
|
81
|
+
* there.
|
|
80
82
|
* @default false
|
|
81
83
|
*/
|
|
82
84
|
readonly disabled: _angular_core.InputSignal<boolean>;
|
|
@@ -128,9 +130,15 @@ declare class TooltipDirective implements TooltipVariantInputs {
|
|
|
128
130
|
* @description Emitted when the tooltip popup is shown.
|
|
129
131
|
*/
|
|
130
132
|
readonly shown: _angular_core.OutputEmitterRef<void>;
|
|
133
|
+
/**
|
|
134
|
+
* @description Disables only the tooltip, like {@link disabled}, on an element whose own `disabled` would take the
|
|
135
|
+
* same binding, such as a `monaButton` or a native control.
|
|
136
|
+
* @default false
|
|
137
|
+
*/
|
|
138
|
+
readonly tooltipDisabled: _angular_core.InputSignal<boolean>;
|
|
131
139
|
constructor();
|
|
132
140
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TooltipDirective, never>;
|
|
133
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TooltipDirective, "[monaTooltip]", never, { "contentOf": { "alias": "contentOf"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "filter": { "alias": "filter"; "required": false; "isSignal": true; }; "hideDelay": { "alias": "hideDelay"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "monaTooltip": { "alias": "monaTooltip"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; "rounded": { "alias": "tooltipRounded"; "required": false; "isSignal": true; }; "showDelay": { "alias": "showDelay"; "required": false; "isSignal": true; }; }, { "hidden": "hidden"; "shown": "shown"; }, never, never, true, never>;
|
|
141
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TooltipDirective, "[monaTooltip]", never, { "contentOf": { "alias": "contentOf"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "filter": { "alias": "filter"; "required": false; "isSignal": true; }; "hideDelay": { "alias": "hideDelay"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "monaTooltip": { "alias": "monaTooltip"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; "rounded": { "alias": "tooltipRounded"; "required": false; "isSignal": true; }; "showDelay": { "alias": "showDelay"; "required": false; "isSignal": true; }; "tooltipDisabled": { "alias": "tooltipDisabled"; "required": false; "isSignal": true; }; }, { "hidden": "hidden"; "shown": "shown"; }, never, never, true, never>;
|
|
134
142
|
}
|
|
135
143
|
|
|
136
144
|
/**
|
|
@@ -4,7 +4,7 @@ import * as _angular_core from '@angular/core';
|
|
|
4
4
|
import { TemplateRef } from '@angular/core';
|
|
5
5
|
import { FilterChangeEvent, FilterableOptions } from '@nanahoshi/mona-ui/common';
|
|
6
6
|
import { ITreeView, TreeService, ChildrenSelector, ChildrenLoadErrorEvent, DataStructure, NodeClickEvent, NodeItem, DropPosition, NodeMoveSnapshot, NodeKeySelector, NodeCheckEvent, CheckableOptions, DisableOptions, NodeDragEvent, NodeDragEndEvent, NodeDragStartEvent, NodeDropEvent, DraggableOptions, ExpandableOptions, NodeSelectEvent, SelectableOptions } from '@nanahoshi/mona-ui/internal/tree';
|
|
7
|
-
export { CheckableOptions, ChildrenLoadErrorEvent, ChildrenSelector, DataStructure, DisableOptions, DraggableOptions, DropPosition, DropPositionChangeEvent, ExpandableOptions, ITreeView, NodeCheckEvent, NodeClickEvent, NodeDragEndEvent, NodeDragEvent, NodeDragStartEvent, NodeDropEvent, NodeDropOriginalEvent, NodeItem, NodeKeySelector, NodeMoveSnapshot, NodeSelectEvent, SelectableOptions, moveFlatTreeNode, moveTreeNode } from '@nanahoshi/mona-ui/internal/tree';
|
|
7
|
+
export { CheckableOptions, ChildrenLoadErrorEvent, ChildrenSelector, DataStructure, DisableOptions, DraggableOptions, DropPosition, DropPositionChangeEvent, ExpandableOptions, ITreeView, MultipleSelectionConfig, NodeCheckEvent, NodeClickEvent, NodeDragEndEvent, NodeDragEvent, NodeDragStartEvent, NodeDropEvent, NodeDropOriginalEvent, NodeItem, NodeKeySelector, NodeMoveSnapshot, NodeSelectEvent, SelectableOptions, SingleSelectionConfig, TreeNode, moveFlatTreeNode, moveTreeNode } from '@nanahoshi/mona-ui/internal/tree';
|
|
8
8
|
import { Predicate, Selector } from '@mirei/ts-collections';
|
|
9
9
|
|
|
10
10
|
/** The context of a `monaTreeViewNodeTemplate`. */
|
|
@@ -19,7 +19,7 @@ declare class TreeViewComponent<T> implements ITreeView<T> {
|
|
|
19
19
|
#private;
|
|
20
20
|
protected readonly empty: _angular_core.Signal<boolean>;
|
|
21
21
|
protected readonly emptyText: _angular_core.Signal<string>;
|
|
22
|
-
/** "Filter {name}", from the tree's `
|
|
22
|
+
/** "Filter {name}", from the tree's `aria-label` or else the text of its `aria-labelledby` elements. */
|
|
23
23
|
protected readonly filterAriaLabel: _angular_core.Signal<string>;
|
|
24
24
|
protected readonly messages: _angular_core.Signal<_nanahoshi_mona_ui_i18n.MonaTreeViewMessages>;
|
|
25
25
|
protected readonly nodeTemplate: _angular_core.Signal<TemplateRef<TreeViewNodeTemplateContext<T>> | undefined>;
|
|
@@ -34,13 +34,13 @@ declare class TreeViewComponent<T> implements ITreeView<T> {
|
|
|
34
34
|
readonly animate: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
35
35
|
/**
|
|
36
36
|
* @description Accessible name of the tree. Describe what the tree represents; it also names the filter input
|
|
37
|
-
* ("Filter {name}"). Set this or `
|
|
37
|
+
* ("Filter {name}"). Set this or `aria-labelledby`: an unnamed tree logs a warning in development. A plain
|
|
38
38
|
* `aria-label` attribute on `mona-tree-view` doesn't name the tree.
|
|
39
39
|
* @default ""
|
|
40
40
|
*/
|
|
41
41
|
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
42
42
|
/**
|
|
43
|
-
* @description Id of the element that names the tree, as an alternative to `
|
|
43
|
+
* @description Id of the element that names the tree, as an alternative to `aria-label`.
|
|
44
44
|
* @default ""
|
|
45
45
|
*/
|
|
46
46
|
readonly ariaLabelledBy: _angular_core.InputSignal<string>;
|
|
@@ -105,10 +105,11 @@ declare class TreeViewComponent<T> implements ITreeView<T> {
|
|
|
105
105
|
* a disabled node).
|
|
106
106
|
*/
|
|
107
107
|
moveNode(source: NodeItem<T>, target: NodeItem<T>, position: DropPosition): NodeMoveSnapshot | null;
|
|
108
|
+
/** Reverts a move previously performed by `moveNode`. */
|
|
108
109
|
undoMoveNode(snapshot: NodeMoveSnapshot): void;
|
|
109
110
|
protected onFilterChange(event: FilterChangeEvent): void;
|
|
110
111
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TreeViewComponent<any>, never>;
|
|
111
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TreeViewComponent<any>, "mona-tree-view", never, { "animate": { "alias": "animate"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "
|
|
112
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TreeViewComponent<any>, "mona-tree-view", never, { "animate": { "alias": "animate"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; "children": { "alias": "children"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "hasChildren": { "alias": "hasChildren"; "required": false; "isSignal": true; }; "idField": { "alias": "idField"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "parentIdField": { "alias": "parentIdField"; "required": false; "isSignal": true; }; "textField": { "alias": "textField"; "required": false; "isSignal": true; }; }, { "blur": "blur"; "childrenLoadError": "childrenLoadError"; "focus": "focus"; "nodeClick": "nodeClick"; }, ["nodeTemplate"], never, true, never>;
|
|
112
113
|
}
|
|
113
114
|
|
|
114
115
|
declare class TreeViewCheckableDirective<T, K = T> {
|
|
@@ -165,6 +165,7 @@ declare class WindowComponent implements WindowVariantInput {
|
|
|
165
165
|
*/
|
|
166
166
|
readonly width: _angular_core.ModelSignal<number | undefined>;
|
|
167
167
|
constructor();
|
|
168
|
+
/** Closes the window. */
|
|
168
169
|
closeWindow(): void;
|
|
169
170
|
/**
|
|
170
171
|
* Moves the window, in pixels. An axis that isn't given keeps its place.
|
|
@@ -186,7 +187,7 @@ declare class WindowComponent implements WindowVariantInput {
|
|
|
186
187
|
height?: number;
|
|
187
188
|
}): void;
|
|
188
189
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WindowComponent, never>;
|
|
189
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<WindowComponent, "mona-window", never, { "ariaLabel": { "alias": "
|
|
190
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<WindowComponent, "mona-window", never, { "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "closable": { "alias": "closable"; "required": false; "isSignal": true; }; "closeOnEscape": { "alias": "closeOnEscape"; "required": false; "isSignal": true; }; "draggable": { "alias": "draggable"; "required": false; "isSignal": true; }; "focusedElement": { "alias": "focusedElement"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "left": { "alias": "left"; "required": false; "isSignal": true; }; "look": { "alias": "look"; "required": false; "isSignal": true; }; "maxHeight": { "alias": "maxHeight"; "required": false; "isSignal": true; }; "maxWidth": { "alias": "maxWidth"; "required": false; "isSignal": true; }; "maximizable": { "alias": "maximizable"; "required": false; "isSignal": true; }; "messages": { "alias": "messages"; "required": false; "isSignal": true; }; "minHeight": { "alias": "minHeight"; "required": false; "isSignal": true; }; "minWidth": { "alias": "minWidth"; "required": false; "isSignal": true; }; "minimizable": { "alias": "minimizable"; "required": false; "isSignal": true; }; "modal": { "alias": "modal"; "required": false; "isSignal": true; }; "resizable": { "alias": "resizable"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "top": { "alias": "top"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; }, { "close": "close"; "closed": "closed"; "dragEnd": "dragEnd"; "dragStart": "dragStart"; "height": "heightChange"; "left": "leftChange"; "top": "topChange"; "width": "widthChange"; }, ["actionTemplate", "contentTemplate", "footerTemplate", "titleTemplate"], ["*"], true, never>;
|
|
190
191
|
}
|
|
191
192
|
|
|
192
193
|
declare class WindowActionTemplateDirective {
|
|
@@ -276,6 +277,7 @@ declare class WindowRef<R = unknown> implements WindowRefParams<R> {
|
|
|
276
277
|
* @param result the value `closed$` reports
|
|
277
278
|
*/
|
|
278
279
|
close(result?: R): void;
|
|
280
|
+
/** Closes the window after the given delay, in milliseconds. */
|
|
279
281
|
closeWithDelay(delay: number, result?: R): void;
|
|
280
282
|
/**
|
|
281
283
|
* Moves the window, in pixels from the viewport's top-left corner. An axis that isn't given keeps its place.
|
|
@@ -302,6 +304,7 @@ declare class WindowRef<R = unknown> implements WindowRefParams<R> {
|
|
|
302
304
|
* Emits how the window closed, once it has closed, then completes. Replays to late subscribers.
|
|
303
305
|
*/
|
|
304
306
|
get closed$(): Observable<WindowResult<R>>;
|
|
307
|
+
/** The hosted component, when `content` is a component rather than a `TemplateRef`. */
|
|
305
308
|
get component(): ComponentRef<unknown> | null;
|
|
306
309
|
/** Emits while the window is dragged. Completes when it closes. */
|
|
307
310
|
get drag$(): Observable<MoveEvent>;
|
|
@@ -309,15 +312,20 @@ declare class WindowRef<R = unknown> implements WindowRefParams<R> {
|
|
|
309
312
|
get dragEnd$(): Observable<void>;
|
|
310
313
|
/** Emits when a drag starts. Completes when the window closes. */
|
|
311
314
|
get dragStart$(): Observable<void>;
|
|
315
|
+
/** The window's overlay element. */
|
|
312
316
|
get element(): HTMLElement;
|
|
317
|
+
/** The window's current rendered height, in pixels. */
|
|
313
318
|
get height(): number;
|
|
319
|
+
/** The underlying `PopupRef`, for advanced overlay access. */
|
|
314
320
|
get popupRef(): PopupRef;
|
|
315
321
|
/** Emits while the window is resized by the user. Completes when it closes. */
|
|
316
322
|
get resize$(): Observable<ResizeEvent>;
|
|
323
|
+
/** The window's current rendered width, in pixels. */
|
|
317
324
|
get width(): number;
|
|
318
325
|
}
|
|
319
326
|
|
|
320
327
|
interface WindowActionTemplateContext {
|
|
328
|
+
/** The window's own `WindowRef`, exposed to a `monaWindowActionTemplate` via `let-windowRef`. */
|
|
321
329
|
$implicit: WindowRef;
|
|
322
330
|
}
|
|
323
331
|
|
|
@@ -325,42 +333,99 @@ interface WindowActionTemplateContext {
|
|
|
325
333
|
* @typeParam D the type of `data`
|
|
326
334
|
*/
|
|
327
335
|
interface WindowSettings<D = unknown> {
|
|
336
|
+
/** Template rendered next to the minimize/maximize/close buttons. */
|
|
328
337
|
actionTemplate?: TemplateRef<WindowActionTemplateContext>;
|
|
329
338
|
/** Accessible name for a window without a `title`. */
|
|
330
339
|
ariaLabel?: string;
|
|
340
|
+
/**
|
|
341
|
+
* Whether the title bar shows a close button.
|
|
342
|
+
* @default true
|
|
343
|
+
*/
|
|
331
344
|
closable?: boolean;
|
|
345
|
+
/**
|
|
346
|
+
* Whether pressing Escape closes the window.
|
|
347
|
+
* @default true
|
|
348
|
+
*/
|
|
332
349
|
closeOnEscape?: boolean;
|
|
350
|
+
/** The window's content — a template reference or a component class. */
|
|
333
351
|
content?: TemplateRef<unknown> | Type<unknown>;
|
|
334
352
|
/**
|
|
335
353
|
* Data for the content: a component injects it with `WINDOW_DATA`, a template gets it as its implicit context
|
|
336
354
|
* (`let-data`).
|
|
337
355
|
*/
|
|
338
356
|
data?: D;
|
|
357
|
+
/**
|
|
358
|
+
* Whether the user can move the window by its title bar. Unlike the `WindowComponent` input, this defaults to
|
|
359
|
+
* `false`.
|
|
360
|
+
* @default false
|
|
361
|
+
*/
|
|
339
362
|
draggable?: boolean;
|
|
363
|
+
/**
|
|
364
|
+
* The element that receives focus when the window opens: an element, an element reference, or a CSS selector
|
|
365
|
+
* matched inside the window.
|
|
366
|
+
*/
|
|
340
367
|
focusedElement?: HTMLElement | ElementRef<HTMLElement> | string | null;
|
|
368
|
+
/** Template rendered in the window's footer area. */
|
|
341
369
|
footerTemplate?: TemplateRef<unknown>;
|
|
370
|
+
/** Height in pixels. When omitted, the window fits its content. */
|
|
342
371
|
height?: number;
|
|
343
372
|
/**
|
|
344
373
|
* Parent injector for the window's content. Pass the opener's injector so a component given as `content` can
|
|
345
374
|
* inject what the opener provides. Default: the root injector.
|
|
346
375
|
*/
|
|
347
376
|
injector?: Injector;
|
|
377
|
+
/** Distance from the viewport's left edge in pixels. When omitted, the window is centered horizontally. */
|
|
348
378
|
left?: number;
|
|
379
|
+
/**
|
|
380
|
+
* The title bar's color scheme.
|
|
381
|
+
* @default "default"
|
|
382
|
+
*/
|
|
349
383
|
look?: WindowVariantProps["look"];
|
|
384
|
+
/** Maximum height in pixels, also the limit for resizing. When omitted, the viewport's height is the limit. */
|
|
350
385
|
maxHeight?: number;
|
|
386
|
+
/** Maximum width in pixels, also the limit for resizing. When omitted, the viewport's width is the limit. */
|
|
351
387
|
maxWidth?: number;
|
|
388
|
+
/**
|
|
389
|
+
* Whether the title bar shows a maximize button.
|
|
390
|
+
* @default true
|
|
391
|
+
*/
|
|
352
392
|
maximizable?: boolean;
|
|
393
|
+
/** Overrides for the window's messages, such as the title bar button labels. */
|
|
353
394
|
messages?: Partial<WindowMessages>;
|
|
395
|
+
/** Minimum height in pixels. Resizing stops at it, or at 50 pixels when omitted. */
|
|
354
396
|
minHeight?: number;
|
|
397
|
+
/** Minimum width in pixels. Resizing stops at it, or at 50 pixels when omitted. */
|
|
355
398
|
minWidth?: number;
|
|
399
|
+
/**
|
|
400
|
+
* Whether the title bar shows a minimize button.
|
|
401
|
+
* @default true
|
|
402
|
+
*/
|
|
356
403
|
minimizable?: boolean;
|
|
404
|
+
/**
|
|
405
|
+
* Whether the window is modal: a backdrop, `aria-modal="true"`, focus kept inside, page scroll locked, and the
|
|
406
|
+
* rest of the page inert.
|
|
407
|
+
* @default false
|
|
408
|
+
*/
|
|
357
409
|
modal?: boolean;
|
|
410
|
+
/** Return `true` to cancel a close. See `preventClose` is service-only. */
|
|
358
411
|
preventClose?: Action<PopupCloseEvent, boolean>;
|
|
412
|
+
/**
|
|
413
|
+
* Whether the user can resize the window by its edges and corners, or from the title bar with the keyboard.
|
|
414
|
+
* @default false
|
|
415
|
+
*/
|
|
359
416
|
resizable?: boolean;
|
|
417
|
+
/**
|
|
418
|
+
* Border-radius preset for the window.
|
|
419
|
+
* @default "medium"
|
|
420
|
+
*/
|
|
360
421
|
rounded?: WindowVariantProps["rounded"];
|
|
422
|
+
/** The window's title — a plain string or a template reference. */
|
|
361
423
|
title?: string | TemplateRef<unknown>;
|
|
424
|
+
/** Distance from the viewport's top edge in pixels. When omitted, the window is centered vertically. */
|
|
362
425
|
top?: number;
|
|
426
|
+
/** Width in pixels. When omitted, the window fits its content. */
|
|
363
427
|
width?: number;
|
|
428
|
+
/** Class(es) applied to the window's overlay element. */
|
|
364
429
|
windowClass?: string | string[];
|
|
365
430
|
}
|
|
366
431
|
|