@nanahoshi/mona-ui 0.24.7 → 0.24.9
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/fesm2022/nanahoshi-mona-ui-auto-complete.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-button-group.mjs +37 -9
- package/fesm2022/nanahoshi-mona-ui-button.mjs +8 -2
- package/fesm2022/nanahoshi-mona-ui-color-gradient.mjs +4 -3
- package/fesm2022/nanahoshi-mona-ui-combo-box.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-contextmenu.mjs +101 -47
- package/fesm2022/nanahoshi-mona-ui-dialog.mjs +339 -101
- package/fesm2022/nanahoshi-mona-ui-dropdown-button.mjs +119 -69
- package/fesm2022/nanahoshi-mona-ui-dropdown-list.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-editor.mjs +2 -2
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-footer-row.component-vXXNWmEN.mjs → nanahoshi-mona-ui-grid-grid-footer-row.component-DhKLnW06.mjs} +2 -2
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-list.component-DDgNmgE0.mjs → nanahoshi-mona-ui-grid-grid-list.component-voGbKOiB.mjs} +4 -4
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-row.component-Dzf6Vbs_.mjs → nanahoshi-mona-ui-grid-grid-row.component-HQ1Kv6R9.mjs} +2 -3
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-virtual-list.component-DAPNqnWV.mjs → nanahoshi-mona-ui-grid-grid-virtual-list.component-PNLJFcuH.mjs} +4 -4
- package/fesm2022/{nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-B9rmDLq8.mjs → nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-BO19AVwC.mjs} +10 -10
- package/fesm2022/nanahoshi-mona-ui-grid.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-i18n-icu.mjs +44 -3
- package/fesm2022/nanahoshi-mona-ui-internal-filter-input.mjs +20 -4
- package/fesm2022/nanahoshi-mona-ui-internal-list.mjs +335 -45
- package/fesm2022/nanahoshi-mona-ui-internal-tree.mjs +565 -197
- package/fesm2022/nanahoshi-mona-ui-internal.mjs +465 -23
- package/fesm2022/nanahoshi-mona-ui-list-box.mjs +598 -208
- package/fesm2022/nanahoshi-mona-ui-list-view.mjs +193 -71
- package/fesm2022/nanahoshi-mona-ui-locales-ar-sa.mjs +29 -3
- package/fesm2022/nanahoshi-mona-ui-locales-de-de.mjs +33 -3
- package/fesm2022/nanahoshi-mona-ui-locales-es-es.mjs +33 -3
- package/fesm2022/nanahoshi-mona-ui-locales-fr-fr.mjs +40 -3
- package/fesm2022/nanahoshi-mona-ui-locales-id-id.mjs +29 -3
- package/fesm2022/nanahoshi-mona-ui-locales-it-it.mjs +33 -3
- package/fesm2022/nanahoshi-mona-ui-locales-ja-jp.mjs +29 -3
- package/fesm2022/nanahoshi-mona-ui-locales-ko-kr.mjs +29 -3
- package/fesm2022/nanahoshi-mona-ui-locales-pt-br.mjs +33 -3
- package/fesm2022/nanahoshi-mona-ui-locales-ru-ru.mjs +49 -3
- package/fesm2022/nanahoshi-mona-ui-locales-tr-tr.mjs +29 -3
- package/fesm2022/nanahoshi-mona-ui-locales-zh-cn.mjs +29 -3
- package/fesm2022/nanahoshi-mona-ui-locales-zh-tw.mjs +29 -3
- package/fesm2022/nanahoshi-mona-ui-menubar.mjs +127 -133
- package/fesm2022/nanahoshi-mona-ui-multi-select.mjs +1 -1
- package/fesm2022/nanahoshi-mona-ui-notification.mjs +473 -240
- package/fesm2022/nanahoshi-mona-ui-popover.mjs +202 -90
- package/fesm2022/nanahoshi-mona-ui-popup-menu.mjs +609 -256
- package/fesm2022/nanahoshi-mona-ui-popup.mjs +2 -0
- package/fesm2022/nanahoshi-mona-ui-sheet.mjs +45 -10
- package/fesm2022/nanahoshi-mona-ui-split-button.mjs +102 -58
- package/fesm2022/nanahoshi-mona-ui-tooltip.mjs +286 -443
- package/fesm2022/nanahoshi-mona-ui-tree-view.mjs +205 -140
- package/fesm2022/nanahoshi-mona-ui-window.mjs +591 -310
- package/i18n/catalogs/en-US.messages.json +32 -6
- package/locales/ar-sa/ar-sa.messages.json +29 -3
- package/locales/de-de/de-de.messages.json +29 -3
- package/locales/es-es/es-es.messages.json +29 -3
- package/locales/fr-fr/fr-fr.messages.json +29 -3
- package/locales/id-id/id-id.messages.json +29 -3
- package/locales/it-it/it-it.messages.json +29 -3
- package/locales/ja-jp/ja-jp.messages.json +29 -3
- package/locales/ko-kr/ko-kr.messages.json +29 -3
- package/locales/pt-br/pt-br.messages.json +29 -3
- package/locales/ru-ru/ru-ru.messages.json +29 -3
- package/locales/tr-tr/tr-tr.messages.json +29 -3
- package/locales/zh-cn/zh-cn.messages.json +29 -3
- package/locales/zh-tw/zh-tw.messages.json +29 -3
- package/package.json +1 -1
- package/types/nanahoshi-mona-ui-button-group.d.ts +13 -3
- package/types/nanahoshi-mona-ui-button.d.ts +20 -3
- package/types/nanahoshi-mona-ui-contextmenu.d.ts +5 -6
- package/types/nanahoshi-mona-ui-dialog.d.ts +131 -20
- package/types/nanahoshi-mona-ui-dropdown-button.d.ts +75 -56
- package/types/nanahoshi-mona-ui-i18n.d.ts +69 -0
- package/types/nanahoshi-mona-ui-internal-filter-input.d.ts +14 -2
- package/types/nanahoshi-mona-ui-internal-list.d.ts +89 -10
- package/types/nanahoshi-mona-ui-internal-tree.d.ts +155 -40
- package/types/nanahoshi-mona-ui-internal.d.ts +128 -16
- package/types/nanahoshi-mona-ui-list-box.d.ts +148 -47
- package/types/nanahoshi-mona-ui-list-view.d.ts +112 -21
- package/types/nanahoshi-mona-ui-locales-ar-sa.d.ts +26 -0
- package/types/nanahoshi-mona-ui-locales-de-de.d.ts +26 -0
- package/types/nanahoshi-mona-ui-locales-es-es.d.ts +26 -0
- package/types/nanahoshi-mona-ui-locales-fr-fr.d.ts +26 -0
- package/types/nanahoshi-mona-ui-locales-id-id.d.ts +26 -0
- package/types/nanahoshi-mona-ui-locales-it-it.d.ts +26 -0
- package/types/nanahoshi-mona-ui-locales-ja-jp.d.ts +26 -0
- package/types/nanahoshi-mona-ui-locales-ko-kr.d.ts +26 -0
- package/types/nanahoshi-mona-ui-locales-pt-br.d.ts +26 -0
- package/types/nanahoshi-mona-ui-locales-ru-ru.d.ts +26 -0
- package/types/nanahoshi-mona-ui-locales-tr-tr.d.ts +26 -0
- package/types/nanahoshi-mona-ui-locales-zh-cn.d.ts +26 -0
- package/types/nanahoshi-mona-ui-locales-zh-tw.d.ts +26 -0
- package/types/nanahoshi-mona-ui-menubar.d.ts +65 -62
- package/types/nanahoshi-mona-ui-notification.d.ts +76 -16
- package/types/nanahoshi-mona-ui-popover.d.ts +44 -17
- package/types/nanahoshi-mona-ui-popup-menu.d.ts +110 -32
- package/types/nanahoshi-mona-ui-popup.d.ts +2 -0
- package/types/nanahoshi-mona-ui-sheet.d.ts +16 -5
- package/types/nanahoshi-mona-ui-split-button.d.ts +29 -7
- package/types/nanahoshi-mona-ui-tooltip.d.ts +43 -20
- package/types/nanahoshi-mona-ui-tree-view.d.ts +84 -40
- package/types/nanahoshi-mona-ui-window.d.ts +103 -14
|
@@ -4,6 +4,7 @@ import * as _nanahoshi_mona_ui_popup_menu from '@nanahoshi/mona-ui/popup-menu';
|
|
|
4
4
|
import { PopupMenuComponent, PopupMenuItemClickEvent, PopupMenuCheckboxItemComponent, PopupMenuOrigin, PopupMenuGroupComponent, PopupMenuItemComponent, PopupMenuRadioGroupComponent, PopupMenuRadioItemComponent, PopupMenuSeparatorComponent, PopupMenuGroupTemplateDirective, PopupMenuTemplateOrigin, 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
|
+
import { ButtonGroupMember, ButtonDirective } from '@nanahoshi/mona-ui/button';
|
|
7
8
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
8
9
|
import { VariantInputs } from '@nanahoshi/mona-ui/internal';
|
|
9
10
|
import { VariantProps } from 'class-variance-authority';
|
|
@@ -16,13 +17,14 @@ declare const splitButtonThemeVariants: (props?: ({
|
|
|
16
17
|
type SplitButtonVariantProps = VariantProps<typeof splitButtonThemeVariants>;
|
|
17
18
|
type SplitButtonVariantInputs = VariantInputs<SplitButtonVariantProps>;
|
|
18
19
|
|
|
19
|
-
declare class SplitButtonComponent implements SplitButtonVariantInputs {
|
|
20
|
+
declare class SplitButtonComponent implements ButtonGroupMember, SplitButtonVariantInputs {
|
|
20
21
|
#private;
|
|
21
22
|
private readonly menuItemComponents;
|
|
22
23
|
protected readonly classes: _angular_core.Signal<string>;
|
|
23
24
|
protected readonly effectiveMenuButtonAriaLabel: _angular_core.Signal<string>;
|
|
24
25
|
protected readonly groupTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
25
26
|
protected readonly iconTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
27
|
+
protected readonly mainButtonId: string;
|
|
26
28
|
protected readonly mainButtonTextTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
27
29
|
protected readonly menuButtonRef: _angular_core.Signal<ElementRef<HTMLButtonElement> | undefined>;
|
|
28
30
|
protected readonly menuButtonTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
@@ -33,11 +35,11 @@ declare class SplitButtonComponent implements SplitButtonVariantInputs {
|
|
|
33
35
|
protected readonly popupMenuRef: _angular_core.Signal<PopupMenuComponent | undefined>;
|
|
34
36
|
protected readonly popupMenuRounded: _angular_core.Signal<"large" | "medium" | "none" | "small" | null | undefined>;
|
|
35
37
|
protected readonly shortcutTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
36
|
-
protected readonly splitButtonAriaLabel: _angular_core.Signal<string>;
|
|
37
38
|
protected readonly textTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
38
39
|
/**
|
|
39
|
-
* @description Accessible name for the main action button.
|
|
40
|
-
*
|
|
40
|
+
* @description Accessible name for the main action button. Leave it empty when the button shows its name as
|
|
41
|
+
* text; set it (or `aria-labelledby`) when it shows only an icon. The pair of buttons is a group named by the
|
|
42
|
+
* main button.
|
|
41
43
|
* @default ""
|
|
42
44
|
*/
|
|
43
45
|
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
@@ -53,10 +55,27 @@ declare class SplitButtonComponent implements SplitButtonVariantInputs {
|
|
|
53
55
|
readonly buttonClick: _angular_core.OutputEmitterRef<MouseEvent>;
|
|
54
56
|
/**
|
|
55
57
|
* @description Renders the component with reduced visual emphasis
|
|
56
|
-
* and removes pointer interaction from both the main button and the menu toggle button.
|
|
58
|
+
* and removes pointer interaction from both the main button and the menu toggle button. Disabling it closes the
|
|
59
|
+
* open menu.
|
|
57
60
|
* @default false
|
|
58
61
|
*/
|
|
59
62
|
readonly disabled: _angular_core.InputSignal<boolean>;
|
|
63
|
+
/**
|
|
64
|
+
* The main and arrow buttons, which join a surrounding `mona-button-group`.
|
|
65
|
+
*/
|
|
66
|
+
readonly groupButtons: _angular_core.Signal<readonly ButtonDirective[]>;
|
|
67
|
+
/**
|
|
68
|
+
* @description Renders the main button as a square for icon-only content, removing horizontal text padding.
|
|
69
|
+
* Set `aria-label` so the main button has a name.
|
|
70
|
+
* @default false
|
|
71
|
+
*/
|
|
72
|
+
readonly iconOnly: _angular_core.InputSignal<boolean>;
|
|
73
|
+
/**
|
|
74
|
+
* @description Shows a loading indicator on the main button and keeps the menu from opening while an operation
|
|
75
|
+
* is in progress. Starting to load closes the open menu.
|
|
76
|
+
* @default false
|
|
77
|
+
*/
|
|
78
|
+
readonly loading: _angular_core.InputSignal<boolean>;
|
|
60
79
|
/**
|
|
61
80
|
* @description Visual style preset applied to the button.
|
|
62
81
|
* @default "default"
|
|
@@ -64,7 +83,8 @@ declare class SplitButtonComponent implements SplitButtonVariantInputs {
|
|
|
64
83
|
readonly look: _angular_core.InputSignal<"default" | "error" | "ghost" | "info" | "outline" | "primary" | "secondary" | "success" | "warning" | null | undefined>;
|
|
65
84
|
/**
|
|
66
85
|
* @description Accessible name for the menu toggle button.
|
|
67
|
-
* If not provided,
|
|
86
|
+
* If not provided, it's the localized "More {text} options", or "Show menu options" when the main button has no
|
|
87
|
+
* `text` or `aria-label`.
|
|
68
88
|
* @default ""
|
|
69
89
|
*/
|
|
70
90
|
readonly menuButtonAriaLabel: _angular_core.InputSignal<string>;
|
|
@@ -100,11 +120,13 @@ declare class SplitButtonComponent implements SplitButtonVariantInputs {
|
|
|
100
120
|
*/
|
|
101
121
|
readonly userClass: _angular_core.InputSignal<string>;
|
|
102
122
|
constructor();
|
|
123
|
+
protected onMainButtonClick(event: MouseEvent): void;
|
|
124
|
+
protected onMainButtonKeydown(event: KeyboardEvent): void;
|
|
103
125
|
protected onMenuClose(): void;
|
|
104
126
|
protected onMenuItemClick(event: PopupMenuItemClickEvent): void;
|
|
105
127
|
protected onMenuOpen(): void;
|
|
106
128
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SplitButtonComponent, never>;
|
|
107
|
-
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; }; "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>;
|
|
129
|
+
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>;
|
|
108
130
|
}
|
|
109
131
|
|
|
110
132
|
declare class SplitButtonCheckboxItemComponent extends PopupMenuCheckboxItemComponent {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import * as _nanahoshi_mona_ui_internal from '@nanahoshi/mona-ui/internal';
|
|
2
|
+
import { VariantInputs, PhysicalOverlaySide, OverlaySide } from '@nanahoshi/mona-ui/internal';
|
|
1
3
|
import * as _angular_core from '@angular/core';
|
|
2
4
|
import { TemplateRef } from '@angular/core';
|
|
3
|
-
import { Position } from '@nanahoshi/mona-ui/common';
|
|
4
5
|
import { PopupAnchor, PopupOffset, ConnectionPoint } from '@nanahoshi/mona-ui/popup';
|
|
5
6
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
6
|
-
import { VariantInputs } from '@nanahoshi/mona-ui/internal';
|
|
7
7
|
import { VariantProps } from 'class-variance-authority';
|
|
8
|
+
import { Position } from '@nanahoshi/mona-ui/common';
|
|
8
9
|
|
|
9
10
|
declare const tooltipBaseThemeVariants: (props?: ({
|
|
10
11
|
rounded?: "full" | "large" | "medium" | "none" | "small" | null | undefined;
|
|
@@ -20,11 +21,12 @@ declare class TooltipComponent implements TooltipVariantInputs {
|
|
|
20
21
|
#private;
|
|
21
22
|
protected readonly arrowClasses: _angular_core.Signal<string>;
|
|
22
23
|
protected readonly baseClasses: _angular_core.Signal<string>;
|
|
23
|
-
protected readonly currentArrowPosition: _angular_core.WritableSignal<
|
|
24
|
+
protected readonly currentArrowPosition: _angular_core.WritableSignal<PhysicalOverlaySide>;
|
|
24
25
|
protected readonly templateRef: _angular_core.Signal<TemplateRef<any>>;
|
|
25
26
|
protected readonly tooltipId: string;
|
|
26
27
|
/**
|
|
27
|
-
* @description Whether the tooltip is disabled. When disabled, the tooltip will not be shown
|
|
28
|
+
* @description Whether the tooltip is disabled. When disabled, the tooltip will not be shown, and an open one
|
|
29
|
+
* closes.
|
|
28
30
|
*/
|
|
29
31
|
readonly disabled: _angular_core.InputSignal<boolean>;
|
|
30
32
|
/**
|
|
@@ -32,13 +34,15 @@ declare class TooltipComponent implements TooltipVariantInputs {
|
|
|
32
34
|
*/
|
|
33
35
|
readonly hidden: _angular_core.OutputEmitterRef<void>;
|
|
34
36
|
/**
|
|
35
|
-
* @description The delay in milliseconds before hiding the tooltip after the
|
|
37
|
+
* @description The delay in milliseconds before hiding the tooltip after the pointer or focus leaves. A pointer
|
|
38
|
+
* that leaves always gets a short grace, so it can move onto the tooltip.
|
|
36
39
|
*/
|
|
37
40
|
readonly hideDelay: _angular_core.InputSignal<number>;
|
|
38
41
|
/**
|
|
39
|
-
* @description The
|
|
42
|
+
* @description The side of the target the tooltip opens on. `left` and `right` are physical; `start` and `end`
|
|
43
|
+
* follow the text direction. It flips to the opposite side when there isn't room.
|
|
40
44
|
*/
|
|
41
|
-
readonly position: _angular_core.InputSignal<
|
|
45
|
+
readonly position: _angular_core.InputSignal<_nanahoshi_mona_ui_internal.OverlaySide>;
|
|
42
46
|
/**
|
|
43
47
|
* @description The border radius of the tooltip.
|
|
44
48
|
*/
|
|
@@ -53,7 +57,8 @@ declare class TooltipComponent implements TooltipVariantInputs {
|
|
|
53
57
|
readonly shown: _angular_core.OutputEmitterRef<void>;
|
|
54
58
|
/**
|
|
55
59
|
* @description The target element(s) to which the tooltip is attached.
|
|
56
|
-
* Can be an Element, ElementRef, or CSS selector string.
|
|
60
|
+
* Can be an Element, ElementRef, or CSS selector string. A selector matches elements anywhere in the document,
|
|
61
|
+
* including ones added later.
|
|
57
62
|
*/
|
|
58
63
|
readonly target: _angular_core.InputSignal<PopupAnchor>;
|
|
59
64
|
constructor();
|
|
@@ -63,36 +68,46 @@ declare class TooltipComponent implements TooltipVariantInputs {
|
|
|
63
68
|
|
|
64
69
|
declare class TooltipDirective implements TooltipVariantInputs {
|
|
65
70
|
#private;
|
|
66
|
-
protected readonly originalTitle: _angular_core.WritableSignal<string>;
|
|
67
71
|
/**
|
|
68
|
-
* @description Whether the tooltip is disabled. When disabled, the tooltip will not be shown
|
|
72
|
+
* @description Whether the tooltip is disabled. When disabled, the tooltip will not be shown, and an open one
|
|
73
|
+
* closes.
|
|
69
74
|
* @default false
|
|
70
75
|
*/
|
|
71
76
|
readonly disabled: _angular_core.InputSignal<boolean>;
|
|
72
77
|
/**
|
|
73
78
|
* @description The filter to select elements that will have tooltips.
|
|
74
|
-
* It can be a CSS selector that matches elements within the host element.
|
|
79
|
+
* It can be a CSS selector that matches elements within the host element, including ones added later.
|
|
75
80
|
* Only applies when `mode` is set to `content`.
|
|
76
81
|
* @default "[title]"
|
|
77
82
|
*/
|
|
78
83
|
readonly filter: _angular_core.InputSignal<string>;
|
|
79
84
|
/**
|
|
80
|
-
* @description
|
|
85
|
+
* @description Emitted when the tooltip popup is hidden.
|
|
86
|
+
*/
|
|
87
|
+
readonly hidden: _angular_core.OutputEmitterRef<void>;
|
|
88
|
+
/**
|
|
89
|
+
* @description The delay in milliseconds before hiding the tooltip after the pointer or focus leaves. A pointer
|
|
90
|
+
* that leaves always gets a short grace, so it can move onto the tooltip.
|
|
81
91
|
* @default 0
|
|
82
92
|
*/
|
|
83
93
|
readonly hideDelay: _angular_core.InputSignal<number>;
|
|
84
94
|
/**
|
|
85
95
|
* @description The mode of the tooltip.
|
|
86
|
-
* "host" mode
|
|
96
|
+
* "host" mode shows the host's tooltip content, or its title attribute.
|
|
87
97
|
* "content" mode uses the title attribute of elements matching the filter.
|
|
88
98
|
* @default "host"
|
|
89
99
|
*/
|
|
90
100
|
readonly mode: _angular_core.InputSignal<"host" | "content">;
|
|
91
101
|
/**
|
|
92
|
-
* @description The
|
|
102
|
+
* @description The tooltip's content in host mode: text, or a template. Without it, the host's `title` is shown.
|
|
103
|
+
*/
|
|
104
|
+
readonly monaTooltip: _angular_core.InputSignal<string | TemplateRef<unknown> | null | undefined>;
|
|
105
|
+
/**
|
|
106
|
+
* @description The side of the target the tooltip opens on. `left` and `right` are physical; `start` and `end`
|
|
107
|
+
* follow the text direction. It flips to the opposite side when there isn't room.
|
|
93
108
|
* @default "top"
|
|
94
109
|
*/
|
|
95
|
-
readonly position: _angular_core.InputSignal<
|
|
110
|
+
readonly position: _angular_core.InputSignal<_nanahoshi_mona_ui_internal.OverlaySide>;
|
|
96
111
|
/**
|
|
97
112
|
* @description The border radius of the tooltip.
|
|
98
113
|
* @default "medium"
|
|
@@ -103,27 +118,35 @@ declare class TooltipDirective implements TooltipVariantInputs {
|
|
|
103
118
|
* @default 0
|
|
104
119
|
*/
|
|
105
120
|
readonly showDelay: _angular_core.InputSignal<number>;
|
|
106
|
-
/**
|
|
107
|
-
* @description Emitted when the tooltip popup is hidden.
|
|
108
|
-
*/
|
|
109
|
-
readonly hidden: _angular_core.OutputEmitterRef<void>;
|
|
110
121
|
/**
|
|
111
122
|
* @description Emitted when the tooltip popup is shown.
|
|
112
123
|
*/
|
|
113
124
|
readonly shown: _angular_core.OutputEmitterRef<void>;
|
|
114
125
|
constructor();
|
|
115
126
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TooltipDirective, never>;
|
|
116
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TooltipDirective, "[monaTooltip]", never, { "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; }; "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>;
|
|
127
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TooltipDirective, "[monaTooltip]", never, { "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>;
|
|
117
128
|
}
|
|
118
129
|
|
|
130
|
+
/**
|
|
131
|
+
* The side of its anchor a tooltip opens on. `left` and `right` are physical in every direction; `start` and `end`
|
|
132
|
+
* follow the text direction.
|
|
133
|
+
*/
|
|
134
|
+
type TooltipPosition = OverlaySide;
|
|
135
|
+
|
|
119
136
|
/**
|
|
120
137
|
* Gets the appropriate offset for a tooltip based on its position.
|
|
121
138
|
* The offset ensures proper spacing between the tooltip and its anchor element.
|
|
139
|
+
* @deprecated No longer used by the tooltip or popover, which keep the gap on the side they flip to and place
|
|
140
|
+
* `left` and `right` physically in RTL. Kept for existing callers.
|
|
122
141
|
*/
|
|
123
142
|
declare function getOffsetForPosition(position: Position, arrowVisible: boolean): PopupOffset;
|
|
143
|
+
/**
|
|
144
|
+
* @deprecated No longer used by the tooltip or popover. Kept for existing callers.
|
|
145
|
+
*/
|
|
124
146
|
declare function getPositionConnectionPoints(position: Position): {
|
|
125
147
|
anchor: ConnectionPoint;
|
|
126
148
|
popup: ConnectionPoint;
|
|
127
149
|
};
|
|
128
150
|
|
|
129
151
|
export { TooltipComponent, TooltipDirective, getOffsetForPosition, getPositionConnectionPoints, tooltipArrowThemeVariants };
|
|
152
|
+
export type { TooltipPosition };
|
|
@@ -1,33 +1,49 @@
|
|
|
1
1
|
import * as _nanahoshi_mona_ui_i18n from '@nanahoshi/mona-ui/i18n';
|
|
2
2
|
import { MonaTreeViewMessages } from '@nanahoshi/mona-ui/i18n';
|
|
3
3
|
import * as _angular_core from '@angular/core';
|
|
4
|
-
import { TemplateRef
|
|
4
|
+
import { TemplateRef } from '@angular/core';
|
|
5
5
|
import { FilterChangeEvent, FilterableOptions } from '@nanahoshi/mona-ui/common';
|
|
6
|
-
import { ITreeView, TreeService, ChildrenSelector, 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, ChildrenSelector, DataStructure, DisableOptions, DraggableOptions, DropPositionChangeEvent, ExpandableOptions, NodeCheckEvent, NodeClickEvent, NodeDragEndEvent, NodeDragEvent, NodeDragStartEvent, NodeDropEvent, NodeItem, NodeKeySelector, NodeMoveSnapshot, SelectableOptions, moveFlatTreeNode, moveTreeNode } from '@nanahoshi/mona-ui/internal/tree';
|
|
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';
|
|
8
8
|
import { Predicate, Selector } from '@mirei/ts-collections';
|
|
9
9
|
|
|
10
|
+
/** The context of a `monaTreeViewNodeTemplate`. */
|
|
10
11
|
interface TreeViewNodeTemplateContext<T> {
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
/** The node's data item (`let-dataItem`). */
|
|
13
|
+
readonly $implicit: T;
|
|
14
|
+
/** The node's element (`let-element="element"`). */
|
|
15
|
+
readonly element: HTMLElement;
|
|
13
16
|
}
|
|
14
17
|
|
|
15
18
|
declare class TreeViewComponent<T> implements ITreeView<T> {
|
|
16
19
|
#private;
|
|
20
|
+
protected readonly empty: _angular_core.Signal<boolean>;
|
|
21
|
+
protected readonly emptyText: _angular_core.Signal<string>;
|
|
22
|
+
/** "Filter {name}", from the tree's `ariaLabel` or else the text of its `ariaLabelledBy` elements. */
|
|
17
23
|
protected readonly filterAriaLabel: _angular_core.Signal<string>;
|
|
18
24
|
protected readonly messages: _angular_core.Signal<_nanahoshi_mona_ui_i18n.MonaTreeViewMessages>;
|
|
19
25
|
protected readonly nodeTemplate: _angular_core.Signal<TemplateRef<TreeViewNodeTemplateContext<T>> | undefined>;
|
|
26
|
+
protected readonly statusId: string;
|
|
27
|
+
protected readonly treeId: string;
|
|
20
28
|
protected readonly treeService: TreeService<T>;
|
|
21
29
|
/**
|
|
22
|
-
* @description Enables CSS transitions when nodes expand or collapse.
|
|
30
|
+
* @description Enables CSS transitions when nodes expand or collapse. Accepts the attribute form
|
|
31
|
+
* (`animate="false"`).
|
|
23
32
|
* @default true
|
|
24
33
|
*/
|
|
25
|
-
readonly animate: _angular_core.
|
|
34
|
+
readonly animate: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
26
35
|
/**
|
|
27
|
-
* @description Accessible name
|
|
36
|
+
* @description Accessible name of the tree. Describe what the tree represents; it also names the filter input
|
|
37
|
+
* ("Filter {name}"). Set this or `ariaLabelledBy`: an unnamed tree logs a warning in development. A plain
|
|
38
|
+
* `aria-label` attribute on `mona-tree-view` doesn't name the tree.
|
|
28
39
|
* @default ""
|
|
29
40
|
*/
|
|
30
41
|
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
42
|
+
/**
|
|
43
|
+
* @description Id of the element that names the tree, as an alternative to `ariaLabel`.
|
|
44
|
+
* @default ""
|
|
45
|
+
*/
|
|
46
|
+
readonly ariaLabelledBy: _angular_core.InputSignal<string>;
|
|
31
47
|
/**
|
|
32
48
|
* @description Emitted when the tree-view loses focus.
|
|
33
49
|
*/
|
|
@@ -37,6 +53,12 @@ declare class TreeViewComponent<T> implements ITreeView<T> {
|
|
|
37
53
|
* @default ""
|
|
38
54
|
*/
|
|
39
55
|
readonly children: _angular_core.InputSignal<ChildrenSelector<T>>;
|
|
56
|
+
/**
|
|
57
|
+
* @description Emitted when the children observable of a node errors. The node is collapsed again and marked
|
|
58
|
+
* as failed (its expander reads "Retry loading {node}"), the failure is announced, and expanding the node
|
|
59
|
+
* retries the load.
|
|
60
|
+
*/
|
|
61
|
+
readonly childrenLoadError: _angular_core.OutputEmitterRef<ChildrenLoadErrorEvent<T>>;
|
|
40
62
|
/**
|
|
41
63
|
* @description Collection of items to render.
|
|
42
64
|
* @default []
|
|
@@ -76,14 +98,20 @@ declare class TreeViewComponent<T> implements ITreeView<T> {
|
|
|
76
98
|
*/
|
|
77
99
|
readonly textField: _angular_core.InputSignal<string | Selector<T, string>>;
|
|
78
100
|
constructor();
|
|
101
|
+
/**
|
|
102
|
+
* Moves a node in the tree's internal structure, without going through `data`.
|
|
103
|
+
* @returns a snapshot for `undoMoveNode`, or `null` when nothing moved: `position` is `"outside"`, a node isn't
|
|
104
|
+
* in the tree, or the move isn't possible (onto the node itself or into its own subtree, inside its own parent or
|
|
105
|
+
* a disabled node).
|
|
106
|
+
*/
|
|
79
107
|
moveNode(source: NodeItem<T>, target: NodeItem<T>, position: DropPosition): NodeMoveSnapshot | null;
|
|
80
108
|
undoMoveNode(snapshot: NodeMoveSnapshot): void;
|
|
81
109
|
protected onFilterChange(event: FilterChangeEvent): void;
|
|
82
110
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TreeViewComponent<any>, never>;
|
|
83
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TreeViewComponent<any>, "mona-tree-view", never, { "animate": { "alias": "animate"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "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"; "focus": "focus"; "nodeClick": "nodeClick"; }, ["nodeTemplate"], never, true, never>;
|
|
111
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TreeViewComponent<any>, "mona-tree-view", never, { "animate": { "alias": "animate"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "ariaLabelledBy"; "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>;
|
|
84
112
|
}
|
|
85
113
|
|
|
86
|
-
declare class TreeViewCheckableDirective<T, K = T>
|
|
114
|
+
declare class TreeViewCheckableDirective<T, K = T> {
|
|
87
115
|
#private;
|
|
88
116
|
/**
|
|
89
117
|
* @description Property name or accessor used to derive a node's check key from its data. Falls back to the node's data when unset.
|
|
@@ -96,7 +124,10 @@ declare class TreeViewCheckableDirective<T, K = T> implements OnInit {
|
|
|
96
124
|
*/
|
|
97
125
|
readonly checkedKeys: _angular_core.InputSignal<Iterable<K>>;
|
|
98
126
|
/**
|
|
99
|
-
* @description Emitted
|
|
127
|
+
* @description Emitted with the checked keys when the user checks or unchecks a node, including the children and
|
|
128
|
+
* parents that check follows (`checkChildren`, `checkParents`). Not emitted for keys set through `checkedKeys`,
|
|
129
|
+
* nor for keys the tree derives on its own: checked parents of checked children set from code, lazily loaded
|
|
130
|
+
* children of a checked node, and ancestors after a drop. Those are reported with the next user change.
|
|
100
131
|
*/
|
|
101
132
|
readonly checkedKeysChange: _angular_core.OutputEmitterRef<K[]>;
|
|
102
133
|
/**
|
|
@@ -109,13 +140,11 @@ declare class TreeViewCheckableDirective<T, K = T> implements OnInit {
|
|
|
109
140
|
*/
|
|
110
141
|
readonly nodeCheck: _angular_core.OutputEmitterRef<NodeCheckEvent<T>>;
|
|
111
142
|
/**
|
|
112
|
-
* @description Configures check mode and whether checking a node also checks its children or parents. Merged over `{ checkChildren: true, checkParents: true, enabled: true, mode: "multiple" }` when applied bare.
|
|
143
|
+
* @description Configures check mode and whether checking a node also checks its children or parents. Merged over `{ checkChildren: true, checkDisabledChildren: false, checkParents: true, childrenOnly: false, enabled: true, mode: "multiple" }` when applied bare.
|
|
113
144
|
* @default ""
|
|
114
145
|
*/
|
|
115
146
|
readonly options: _angular_core.InputSignal<"" | Partial<CheckableOptions>>;
|
|
116
147
|
constructor();
|
|
117
|
-
ngOnInit(): void;
|
|
118
|
-
private setNodeCheckSubscription;
|
|
119
148
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TreeViewCheckableDirective<any, any>, never>;
|
|
120
149
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TreeViewCheckableDirective<any, any>, "mona-tree-view[monaTreeViewCheckable]", ["monaTreeViewCheckable"], { "checkBy": { "alias": "checkBy"; "required": false; "isSignal": true; }; "checkedKeys": { "alias": "checkedKeys"; "required": false; "isSignal": true; }; "hasCheckbox": { "alias": "hasCheckbox"; "required": false; "isSignal": true; }; "options": { "alias": "monaTreeViewCheckable"; "required": false; "isSignal": true; }; }, { "checkedKeysChange": "checkedKeysChange"; "nodeCheck": "nodeCheck"; }, never, never, true, never>;
|
|
121
150
|
}
|
|
@@ -149,7 +178,7 @@ declare class TreeViewDragAndDropDirective<T> {
|
|
|
149
178
|
*/
|
|
150
179
|
readonly nodeDrag: _angular_core.OutputEmitterRef<NodeDragEvent<T>>;
|
|
151
180
|
/**
|
|
152
|
-
* @description Emitted when a node drag ends.
|
|
181
|
+
* @description Emitted when a node drag ends, dropped or not. Not cancelable: the drag is over either way.
|
|
153
182
|
*/
|
|
154
183
|
readonly nodeDragEnd: _angular_core.OutputEmitterRef<NodeDragEndEvent<T>>;
|
|
155
184
|
/**
|
|
@@ -157,7 +186,9 @@ declare class TreeViewDragAndDropDirective<T> {
|
|
|
157
186
|
*/
|
|
158
187
|
readonly nodeDragStart: _angular_core.OutputEmitterRef<NodeDragStartEvent<T>>;
|
|
159
188
|
/**
|
|
160
|
-
* @description Emitted when a node is dropped
|
|
189
|
+
* @description Emitted when a node is dropped on another node, or moved with Ctrl+Shift+Arrow (Cmd+Shift+Arrow on
|
|
190
|
+
* macOS). The tree doesn't move the node: the handler applies the move (with `moveTreeNode`,
|
|
191
|
+
* `moveFlatTreeNode` or `event.treeView.moveNode`). Call `preventDefault()` when the move isn't applied.
|
|
161
192
|
*/
|
|
162
193
|
readonly nodeDrop: _angular_core.OutputEmitterRef<NodeDropEvent<T>>;
|
|
163
194
|
/**
|
|
@@ -166,7 +197,6 @@ declare class TreeViewDragAndDropDirective<T> {
|
|
|
166
197
|
*/
|
|
167
198
|
readonly options: _angular_core.InputSignal<"" | Partial<DraggableOptions>>;
|
|
168
199
|
constructor();
|
|
169
|
-
setSubscriptions(): void;
|
|
170
200
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TreeViewDragAndDropDirective<any>, never>;
|
|
171
201
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TreeViewDragAndDropDirective<any>, "mona-tree-view[monaTreeViewDragAndDrop]", ["monaTreeViewDragAndDrop"], { "options": { "alias": "monaTreeViewDragAndDrop"; "required": false; "isSignal": true; }; }, { "nodeDrag": "nodeDrag"; "nodeDragEnd": "nodeDragEnd"; "nodeDragStart": "nodeDragStart"; "nodeDrop": "nodeDrop"; }, never, never, true, never>;
|
|
172
202
|
}
|
|
@@ -192,7 +222,8 @@ declare class TreeViewExpandableDirective<T, K = T> {
|
|
|
192
222
|
*/
|
|
193
223
|
readonly expandedKeys: _angular_core.InputSignal<Iterable<K>>;
|
|
194
224
|
/**
|
|
195
|
-
* @description Emitted
|
|
225
|
+
* @description Emitted with the expanded keys when the user expands or collapses a node. Not emitted for keys set
|
|
226
|
+
* through `expandedKeys`, nor for the expansion a filter applies (which is undone when the filter is cleared).
|
|
196
227
|
*/
|
|
197
228
|
readonly expandedKeysChange: _angular_core.OutputEmitterRef<K[]>;
|
|
198
229
|
/**
|
|
@@ -201,7 +232,6 @@ declare class TreeViewExpandableDirective<T, K = T> {
|
|
|
201
232
|
*/
|
|
202
233
|
readonly options: _angular_core.InputSignal<"" | Partial<ExpandableOptions>>;
|
|
203
234
|
constructor();
|
|
204
|
-
setSubscriptions(): void;
|
|
205
235
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TreeViewExpandableDirective<any, any>, never>;
|
|
206
236
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TreeViewExpandableDirective<any, any>, "mona-tree-view[monaTreeViewExpandable]", ["monaTreeViewExpandable"], { "expandBy": { "alias": "expandBy"; "required": false; "isSignal": true; }; "expandedKeys": { "alias": "expandedKeys"; "required": false; "isSignal": true; }; "options": { "alias": "monaTreeViewExpandable"; "required": false; "isSignal": true; }; }, { "collapse": "collapse"; "expand": "expand"; "expandedKeysChange": "expandedKeysChange"; }, never, never, true, never>;
|
|
207
237
|
}
|
|
@@ -209,14 +239,16 @@ declare class TreeViewExpandableDirective<T, K = T> {
|
|
|
209
239
|
declare class TreeViewFilterableDirective<T> {
|
|
210
240
|
#private;
|
|
211
241
|
/**
|
|
212
|
-
* @description Current filter text used to narrow the visible nodes.
|
|
242
|
+
* @description Current filter text used to narrow the visible nodes. Two-way bindable (`[(filter)]`); the user's
|
|
243
|
+
* typing updates it, so setting it from code (including back to `""`) always applies.
|
|
213
244
|
* @default ""
|
|
214
245
|
*/
|
|
215
|
-
readonly filter: _angular_core.
|
|
246
|
+
readonly filter: _angular_core.ModelSignal<string>;
|
|
216
247
|
/**
|
|
217
|
-
* @description Emitted when the filter
|
|
248
|
+
* @description Emitted when the user types in the filter input, before the filter applies. Call
|
|
249
|
+
* `preventDefault()` to keep the current filter; otherwise `filterChange` reports the new text.
|
|
218
250
|
*/
|
|
219
|
-
readonly
|
|
251
|
+
readonly filterInput: _angular_core.OutputEmitterRef<FilterChangeEvent>;
|
|
220
252
|
/**
|
|
221
253
|
* @description Placeholder text shown in the filter input.
|
|
222
254
|
* @default ""
|
|
@@ -228,22 +260,38 @@ declare class TreeViewFilterableDirective<T> {
|
|
|
228
260
|
*/
|
|
229
261
|
readonly options: _angular_core.InputSignal<"" | Partial<FilterableOptions>>;
|
|
230
262
|
constructor();
|
|
231
|
-
private setSubscription;
|
|
232
263
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TreeViewFilterableDirective<any>, never>;
|
|
233
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TreeViewFilterableDirective<any>, "mona-tree-view[monaTreeViewFilterable]", ["monaTreeViewFilterable"], { "filter": { "alias": "filter"; "required": false; "isSignal": true; }; "filterPlaceholder": { "alias": "filterPlaceholder"; "required": false; "isSignal": true; }; "options": { "alias": "monaTreeViewFilterable"; "required": false; "isSignal": true; }; }, { "
|
|
264
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TreeViewFilterableDirective<any>, "mona-tree-view[monaTreeViewFilterable]", ["monaTreeViewFilterable"], { "filter": { "alias": "filter"; "required": false; "isSignal": true; }; "filterPlaceholder": { "alias": "filterPlaceholder"; "required": false; "isSignal": true; }; "options": { "alias": "monaTreeViewFilterable"; "required": false; "isSignal": true; }; }, { "filter": "filterChange"; "filterInput": "filterInput"; }, never, never, true, never>;
|
|
234
265
|
}
|
|
235
266
|
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
267
|
+
/**
|
|
268
|
+
* Template for each node's content. The data item is the template's implicit value (`let-dataItem`) and the node's
|
|
269
|
+
* element is `element`. Bind the tree view's data to `monaTreeViewNodeTemplateOf` to type the data item; without it,
|
|
270
|
+
* the data item is `any` in templates.
|
|
271
|
+
*/
|
|
272
|
+
declare class TreeViewNodeTemplateDirective<T = any> {
|
|
273
|
+
/**
|
|
274
|
+
* @description The tree view's data, used only to type the template's data item. Optional.
|
|
275
|
+
* @default null
|
|
276
|
+
*/
|
|
277
|
+
readonly monaTreeViewNodeTemplateOf: _angular_core.InputSignal<Iterable<T> | null | undefined>;
|
|
278
|
+
static ngTemplateContextGuard<T>(_directive: TreeViewNodeTemplateDirective<T>, _context: unknown): _context is TreeViewNodeTemplateContext<T>;
|
|
279
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TreeViewNodeTemplateDirective<any>, never>;
|
|
280
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TreeViewNodeTemplateDirective<any>, "ng-template[monaTreeViewNodeTemplate]", never, { "monaTreeViewNodeTemplateOf": { "alias": "monaTreeViewNodeTemplateOf"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
239
281
|
}
|
|
240
282
|
|
|
241
|
-
declare class TreeViewSelectableDirective<T, K = T>
|
|
283
|
+
declare class TreeViewSelectableDirective<T, K = T> {
|
|
242
284
|
#private;
|
|
243
285
|
/**
|
|
244
|
-
* @description Emitted
|
|
286
|
+
* @description Emitted before the user selects or deselects a node, by click or Enter. Call `preventDefault()`
|
|
287
|
+
* to keep the selection as it is; `selectionChange` follows when it isn't prevented.
|
|
245
288
|
*/
|
|
246
289
|
readonly nodeSelect: _angular_core.OutputEmitterRef<NodeSelectEvent<T>>;
|
|
290
|
+
/**
|
|
291
|
+
* @description Configures selection mode, toggleability, and whether only child nodes are selectable. Merged over `{ childrenOnly: false, enabled: true, mode: "single", toggleable: false }` when applied bare.
|
|
292
|
+
* @default ""
|
|
293
|
+
*/
|
|
294
|
+
readonly options: _angular_core.InputSignal<"" | Partial<SelectableOptions>>;
|
|
247
295
|
/**
|
|
248
296
|
* @description Property name or accessor used to derive a node's selection key from its data. Falls back to the node's data when unset.
|
|
249
297
|
* @default ""
|
|
@@ -255,25 +303,21 @@ declare class TreeViewSelectableDirective<T, K = T> implements OnInit {
|
|
|
255
303
|
*/
|
|
256
304
|
readonly selectedKeys: _angular_core.InputSignal<Iterable<K>>;
|
|
257
305
|
/**
|
|
258
|
-
* @description Emitted
|
|
306
|
+
* @description Emitted with the selected keys when the user selects or deselects a node. Not emitted for keys set
|
|
307
|
+
* through `selectedKeys`.
|
|
259
308
|
*/
|
|
260
309
|
readonly selectedKeysChange: _angular_core.OutputEmitterRef<K[]>;
|
|
261
310
|
/**
|
|
262
|
-
* @description Emitted
|
|
311
|
+
* @description Emitted with the node after the user selects or deselects it (after a `nodeSelect` that wasn't
|
|
312
|
+
* prevented).
|
|
263
313
|
*/
|
|
264
314
|
readonly selectionChange: _angular_core.OutputEmitterRef<NodeItem<T>>;
|
|
265
|
-
/**
|
|
266
|
-
* @description Configures selection mode, toggleability, and whether only child nodes are selectable. Merged over `{ childrenOnly: false, enabled: true, mode: "single", toggleable: false }` when applied bare.
|
|
267
|
-
* @default ""
|
|
268
|
-
*/
|
|
269
|
-
readonly options: _angular_core.InputSignal<"" | Partial<SelectableOptions>>;
|
|
270
315
|
constructor();
|
|
271
|
-
ngOnInit(): void;
|
|
272
|
-
private setNodeSelectSubscription;
|
|
273
316
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TreeViewSelectableDirective<any, any>, never>;
|
|
274
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TreeViewSelectableDirective<any, any>, "mona-tree-view[monaTreeViewSelectable]", ["monaTreeViewSelectable"], { "
|
|
317
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TreeViewSelectableDirective<any, any>, "mona-tree-view[monaTreeViewSelectable]", ["monaTreeViewSelectable"], { "options": { "alias": "monaTreeViewSelectable"; "required": false; "isSignal": true; }; "selectBy": { "alias": "selectBy"; "required": false; "isSignal": true; }; "selectedKeys": { "alias": "selectedKeys"; "required": false; "isSignal": true; }; }, { "nodeSelect": "nodeSelect"; "selectedKeysChange": "selectedKeysChange"; "selectionChange": "selectionChange"; }, never, never, true, never>;
|
|
275
318
|
}
|
|
276
319
|
|
|
277
320
|
declare const TREE_VIEW_DEFAULT_MESSAGES: MonaTreeViewMessages;
|
|
278
321
|
|
|
279
322
|
export { TREE_VIEW_DEFAULT_MESSAGES, TreeViewCheckableDirective, TreeViewComponent, TreeViewDisableDirective, TreeViewDragAndDropDirective, TreeViewExpandableDirective, TreeViewFilterableDirective, TreeViewNodeTemplateDirective, TreeViewSelectableDirective };
|
|
323
|
+
export type { TreeViewNodeTemplateContext };
|