@nanahoshi/mona-ui 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -0
- package/fesm2022/nanahoshi-mona-ui-auto-complete.mjs +590 -0
- package/fesm2022/nanahoshi-mona-ui-avatar.mjs +168 -0
- package/fesm2022/nanahoshi-mona-ui-breadcrumb.mjs +220 -0
- package/fesm2022/nanahoshi-mona-ui-button-group.mjs +225 -0
- package/fesm2022/nanahoshi-mona-ui-button.mjs +497 -0
- package/fesm2022/nanahoshi-mona-ui-calendar.mjs +1569 -0
- package/fesm2022/nanahoshi-mona-ui-check-box.mjs +339 -0
- package/fesm2022/nanahoshi-mona-ui-chip.mjs +453 -0
- package/fesm2022/nanahoshi-mona-ui-circular-progress-bar.mjs +200 -0
- package/fesm2022/nanahoshi-mona-ui-color-gradient.mjs +853 -0
- package/fesm2022/nanahoshi-mona-ui-color-palette.mjs +923 -0
- package/fesm2022/nanahoshi-mona-ui-color-picker.mjs +495 -0
- package/fesm2022/nanahoshi-mona-ui-combo-box.mjs +686 -0
- package/fesm2022/nanahoshi-mona-ui-common.mjs +642 -0
- package/fesm2022/nanahoshi-mona-ui-contextmenu.mjs +485 -0
- package/fesm2022/nanahoshi-mona-ui-date-input.mjs +132 -0
- package/fesm2022/nanahoshi-mona-ui-date-picker.mjs +460 -0
- package/fesm2022/nanahoshi-mona-ui-datetime-picker.mjs +659 -0
- package/fesm2022/nanahoshi-mona-ui-dialog.mjs +828 -0
- package/fesm2022/nanahoshi-mona-ui-dropdown-button.mjs +523 -0
- package/fesm2022/nanahoshi-mona-ui-dropdown-list.mjs +615 -0
- package/fesm2022/nanahoshi-mona-ui-dropdowns.mjs +701 -0
- package/fesm2022/nanahoshi-mona-ui-editor.mjs +1400 -0
- package/fesm2022/nanahoshi-mona-ui-expansion-panel.mjs +245 -0
- package/fesm2022/nanahoshi-mona-ui-fieldset.mjs +170 -0
- package/fesm2022/nanahoshi-mona-ui-filter.mjs +680 -0
- package/fesm2022/nanahoshi-mona-ui-grid-grid-footer-cell.component-B9SQH5N-.mjs +105 -0
- package/fesm2022/nanahoshi-mona-ui-grid-grid-footer-table-cell.directive-DlLwcCFT.mjs +42 -0
- package/fesm2022/nanahoshi-mona-ui-grid-grid-list.component-Dgea-O0X.mjs +130 -0
- package/fesm2022/nanahoshi-mona-ui-grid-grid-toggle.component-DIUutx9s.mjs +773 -0
- package/fesm2022/nanahoshi-mona-ui-grid-grid-virtual-list.component-DRHycGIh.mjs +240 -0
- package/fesm2022/nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-C3eZIaJK.mjs +5374 -0
- package/fesm2022/nanahoshi-mona-ui-grid.mjs +2 -0
- package/fesm2022/nanahoshi-mona-ui-internal-filter-input.mjs +87 -0
- package/fesm2022/nanahoshi-mona-ui-internal-indicator-icon.mjs +154 -0
- package/fesm2022/nanahoshi-mona-ui-internal-list.mjs +1356 -0
- package/fesm2022/nanahoshi-mona-ui-internal-tree.mjs +2263 -0
- package/fesm2022/nanahoshi-mona-ui-internal.mjs +379 -0
- package/fesm2022/nanahoshi-mona-ui-list-box.mjs +630 -0
- package/fesm2022/nanahoshi-mona-ui-list-view.mjs +527 -0
- package/fesm2022/nanahoshi-mona-ui-list.mjs +4 -0
- package/fesm2022/nanahoshi-mona-ui-menubar.mjs +966 -0
- package/fesm2022/nanahoshi-mona-ui-multi-select.mjs +641 -0
- package/fesm2022/nanahoshi-mona-ui-notification.mjs +536 -0
- package/fesm2022/nanahoshi-mona-ui-numeric-text-box.mjs +597 -0
- package/fesm2022/nanahoshi-mona-ui-pager.mjs +790 -0
- package/fesm2022/nanahoshi-mona-ui-placeholder.mjs +83 -0
- package/fesm2022/nanahoshi-mona-ui-popover.mjs +325 -0
- package/fesm2022/nanahoshi-mona-ui-popup-menu.mjs +1559 -0
- package/fesm2022/nanahoshi-mona-ui-popup.mjs +1321 -0
- package/fesm2022/nanahoshi-mona-ui-progress-bar.mjs +294 -0
- package/fesm2022/nanahoshi-mona-ui-query.mjs +175 -0
- package/fesm2022/nanahoshi-mona-ui-radio-button.mjs +339 -0
- package/fesm2022/nanahoshi-mona-ui-scroll-view.mjs +565 -0
- package/fesm2022/nanahoshi-mona-ui-slider.mjs +1049 -0
- package/fesm2022/nanahoshi-mona-ui-split-button.mjs +636 -0
- package/fesm2022/nanahoshi-mona-ui-splitter.mjs +843 -0
- package/fesm2022/nanahoshi-mona-ui-stepper.mjs +537 -0
- package/fesm2022/nanahoshi-mona-ui-switch.mjs +308 -0
- package/fesm2022/nanahoshi-mona-ui-tabs.mjs +664 -0
- package/fesm2022/nanahoshi-mona-ui-text-area.mjs +111 -0
- package/fesm2022/nanahoshi-mona-ui-text-box.mjs +369 -0
- package/fesm2022/nanahoshi-mona-ui-theme.mjs +314 -0
- package/fesm2022/nanahoshi-mona-ui-time-picker.mjs +450 -0
- package/fesm2022/nanahoshi-mona-ui-time-selector.mjs +723 -0
- package/fesm2022/nanahoshi-mona-ui-tooltip.mjs +716 -0
- package/fesm2022/nanahoshi-mona-ui-tree-view.mjs +733 -0
- package/fesm2022/nanahoshi-mona-ui-window.mjs +1329 -0
- package/fesm2022/nanahoshi-mona-ui.mjs +9 -0
- package/package.json +289 -0
- package/types/nanahoshi-mona-ui-auto-complete.d.ts +223 -0
- package/types/nanahoshi-mona-ui-avatar.d.ts +642 -0
- package/types/nanahoshi-mona-ui-breadcrumb.d.ts +70 -0
- package/types/nanahoshi-mona-ui-button-group.d.ts +77 -0
- package/types/nanahoshi-mona-ui-button.d.ts +111 -0
- package/types/nanahoshi-mona-ui-calendar.d.ts +262 -0
- package/types/nanahoshi-mona-ui-check-box.d.ts +133 -0
- package/types/nanahoshi-mona-ui-chip.d.ts +130 -0
- package/types/nanahoshi-mona-ui-circular-progress-bar.d.ts +113 -0
- package/types/nanahoshi-mona-ui-color-gradient.d.ts +201 -0
- package/types/nanahoshi-mona-ui-color-palette.d.ts +102 -0
- package/types/nanahoshi-mona-ui-color-picker.d.ts +156 -0
- package/types/nanahoshi-mona-ui-combo-box.d.ts +232 -0
- package/types/nanahoshi-mona-ui-common.d.ts +386 -0
- package/types/nanahoshi-mona-ui-contextmenu.d.ts +129 -0
- package/types/nanahoshi-mona-ui-date-input.d.ts +60 -0
- package/types/nanahoshi-mona-ui-date-picker.d.ts +177 -0
- package/types/nanahoshi-mona-ui-datetime-picker.d.ts +199 -0
- package/types/nanahoshi-mona-ui-dialog.d.ts +261 -0
- package/types/nanahoshi-mona-ui-dropdown-button.d.ts +159 -0
- package/types/nanahoshi-mona-ui-dropdown-list.d.ts +219 -0
- package/types/nanahoshi-mona-ui-dropdowns.d.ts +176 -0
- package/types/nanahoshi-mona-ui-editor.d.ts +113 -0
- package/types/nanahoshi-mona-ui-expansion-panel.d.ts +87 -0
- package/types/nanahoshi-mona-ui-fieldset.d.ts +68 -0
- package/types/nanahoshi-mona-ui-filter.d.ts +115 -0
- package/types/nanahoshi-mona-ui-grid.d.ts +1114 -0
- package/types/nanahoshi-mona-ui-internal-filter-input.d.ts +25 -0
- package/types/nanahoshi-mona-ui-internal-indicator-icon.d.ts +28 -0
- package/types/nanahoshi-mona-ui-internal-list.d.ts +269 -0
- package/types/nanahoshi-mona-ui-internal-tree.d.ts +391 -0
- package/types/nanahoshi-mona-ui-internal.d.ts +136 -0
- package/types/nanahoshi-mona-ui-list-box.d.ts +225 -0
- package/types/nanahoshi-mona-ui-list-view.d.ts +188 -0
- package/types/nanahoshi-mona-ui-list.d.ts +1 -0
- package/types/nanahoshi-mona-ui-menubar.d.ts +198 -0
- package/types/nanahoshi-mona-ui-multi-select.d.ts +247 -0
- package/types/nanahoshi-mona-ui-notification.d.ts +106 -0
- package/types/nanahoshi-mona-ui-numeric-text-box.d.ts +161 -0
- package/types/nanahoshi-mona-ui-pager.d.ts +238 -0
- package/types/nanahoshi-mona-ui-placeholder.d.ts +35 -0
- package/types/nanahoshi-mona-ui-popover.d.ts +130 -0
- package/types/nanahoshi-mona-ui-popup-menu.d.ts +412 -0
- package/types/nanahoshi-mona-ui-popup.d.ts +485 -0
- package/types/nanahoshi-mona-ui-progress-bar.d.ts +139 -0
- package/types/nanahoshi-mona-ui-query.d.ts +89 -0
- package/types/nanahoshi-mona-ui-radio-button.d.ts +128 -0
- package/types/nanahoshi-mona-ui-scroll-view.d.ts +166 -0
- package/types/nanahoshi-mona-ui-slider.d.ts +305 -0
- package/types/nanahoshi-mona-ui-split-button.d.ts +182 -0
- package/types/nanahoshi-mona-ui-splitter.d.ts +70 -0
- package/types/nanahoshi-mona-ui-stepper.d.ts +173 -0
- package/types/nanahoshi-mona-ui-switch.d.ts +125 -0
- package/types/nanahoshi-mona-ui-tabs.d.ts +158 -0
- package/types/nanahoshi-mona-ui-text-area.d.ts +42 -0
- package/types/nanahoshi-mona-ui-text-box.d.ts +164 -0
- package/types/nanahoshi-mona-ui-theme.d.ts +23 -0
- package/types/nanahoshi-mona-ui-time-picker.d.ts +184 -0
- package/types/nanahoshi-mona-ui-time-selector.d.ts +143 -0
- package/types/nanahoshi-mona-ui-tooltip.d.ts +130 -0
- package/types/nanahoshi-mona-ui-tree-view.d.ts +274 -0
- package/types/nanahoshi-mona-ui-window.d.ts +295 -0
- package/types/nanahoshi-mona-ui.d.ts +2 -0
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { TemplateRef, OnInit } from '@angular/core';
|
|
3
|
+
import { FilterChangeEvent, FilterableOptions } from '@nanahoshi/mona-ui/common';
|
|
4
|
+
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';
|
|
5
|
+
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 { Predicate, Selector } from '@mirei/ts-collections';
|
|
7
|
+
|
|
8
|
+
interface TreeViewNodeTemplateContext<T> {
|
|
9
|
+
$implicit: T;
|
|
10
|
+
element: HTMLElement;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
declare class TreeViewComponent<T> implements ITreeView<T> {
|
|
14
|
+
#private;
|
|
15
|
+
protected readonly nodeTemplate: _angular_core.Signal<TemplateRef<TreeViewNodeTemplateContext<T>> | undefined>;
|
|
16
|
+
protected readonly treeService: TreeService<T>;
|
|
17
|
+
protected readonly filterAriaLabel: _angular_core.Signal<string>;
|
|
18
|
+
/**
|
|
19
|
+
* @description Enables CSS transitions when nodes expand or collapse.
|
|
20
|
+
* @default true
|
|
21
|
+
*/
|
|
22
|
+
readonly animate: _angular_core.InputSignal<boolean>;
|
|
23
|
+
/**
|
|
24
|
+
* @description Accessible name for the tree. Describe what the tree represents. When empty, assistive technology announces the role without a label.
|
|
25
|
+
* @default ""
|
|
26
|
+
*/
|
|
27
|
+
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
28
|
+
/**
|
|
29
|
+
* @description Property name or accessor used to derive a node's children from a data item. Accepts a property name, a function returning the children, or a function returning an observable of the children.
|
|
30
|
+
* @default ""
|
|
31
|
+
*/
|
|
32
|
+
readonly children: _angular_core.InputSignal<ChildrenSelector<T>>;
|
|
33
|
+
/**
|
|
34
|
+
* @description Collection of items to render.
|
|
35
|
+
* @default []
|
|
36
|
+
*/
|
|
37
|
+
readonly data: _angular_core.InputSignal<Iterable<T>>;
|
|
38
|
+
/**
|
|
39
|
+
* @description Predicate that determines whether a node has children. Required when the children selector returns an observable.
|
|
40
|
+
* @default null
|
|
41
|
+
*/
|
|
42
|
+
readonly hasChildren: _angular_core.InputSignal<Predicate<T> | null>;
|
|
43
|
+
/**
|
|
44
|
+
* @description Property name that holds a node's unique identifier. Required when `mode` is set to `"flat"`.
|
|
45
|
+
* @default ""
|
|
46
|
+
*/
|
|
47
|
+
readonly idField: _angular_core.InputSignal<string>;
|
|
48
|
+
/**
|
|
49
|
+
* @description Shape of the source data: `"hierarchical"` for nested items via `children`, or `"flat"` for a flat list linked by `idField` and `parentIdField`.
|
|
50
|
+
* @default "hierarchical"
|
|
51
|
+
*/
|
|
52
|
+
readonly mode: _angular_core.InputSignal<DataStructure>;
|
|
53
|
+
/**
|
|
54
|
+
* @description Emitted when the tree-view loses focus.
|
|
55
|
+
*/
|
|
56
|
+
readonly blur: _angular_core.OutputEmitterRef<FocusEvent>;
|
|
57
|
+
/**
|
|
58
|
+
* @description Emitted when the tree-view gains focus.
|
|
59
|
+
*/
|
|
60
|
+
readonly focus: _angular_core.OutputEmitterRef<FocusEvent>;
|
|
61
|
+
/**
|
|
62
|
+
* @description Emitted when a node is clicked.
|
|
63
|
+
*/
|
|
64
|
+
readonly nodeClick: _angular_core.OutputEmitterRef<NodeClickEvent<T>>;
|
|
65
|
+
/**
|
|
66
|
+
* @description Property name that holds a node's parent identifier. Required when `mode` is set to `"flat"`.
|
|
67
|
+
* @default ""
|
|
68
|
+
*/
|
|
69
|
+
readonly parentIdField: _angular_core.InputSignal<string>;
|
|
70
|
+
/**
|
|
71
|
+
* @description Property name or accessor used to derive the display text from a data item.
|
|
72
|
+
* @default ""
|
|
73
|
+
*/
|
|
74
|
+
readonly textField: _angular_core.InputSignal<string | Selector<T, string>>;
|
|
75
|
+
constructor();
|
|
76
|
+
moveNode(source: NodeItem<T>, target: NodeItem<T>, position: DropPosition): NodeMoveSnapshot | null;
|
|
77
|
+
undoMoveNode(snapshot: NodeMoveSnapshot): void;
|
|
78
|
+
protected onFilterChange(event: FilterChangeEvent): void;
|
|
79
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TreeViewComponent<any>, never>;
|
|
80
|
+
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>;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
declare class TreeViewCheckableDirective<T, K = T> implements OnInit {
|
|
84
|
+
#private;
|
|
85
|
+
/**
|
|
86
|
+
* @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.
|
|
87
|
+
* @default ""
|
|
88
|
+
*/
|
|
89
|
+
readonly checkBy: _angular_core.InputSignal<NodeKeySelector<T, K> | undefined>;
|
|
90
|
+
/**
|
|
91
|
+
* @description Keys of the currently checked nodes.
|
|
92
|
+
* @default []
|
|
93
|
+
*/
|
|
94
|
+
readonly checkedKeys: _angular_core.InputSignal<Iterable<K>>;
|
|
95
|
+
/**
|
|
96
|
+
* @description Emitted when the checked keys change.
|
|
97
|
+
*/
|
|
98
|
+
readonly checkedKeysChange: _angular_core.OutputEmitterRef<K[]>;
|
|
99
|
+
/**
|
|
100
|
+
* @description Predicate that determines whether a node displays a checkbox. When unset, every node displays a checkbox.
|
|
101
|
+
* @default null
|
|
102
|
+
*/
|
|
103
|
+
readonly hasCheckbox: _angular_core.InputSignal<((data: T, uid: string) => boolean) | null>;
|
|
104
|
+
/**
|
|
105
|
+
* @description Emitted when a node is checked or unchecked.
|
|
106
|
+
*/
|
|
107
|
+
readonly nodeCheck: _angular_core.OutputEmitterRef<NodeCheckEvent<T>>;
|
|
108
|
+
/**
|
|
109
|
+
* @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.
|
|
110
|
+
* @default ""
|
|
111
|
+
*/
|
|
112
|
+
readonly options: _angular_core.InputSignal<"" | Partial<CheckableOptions>>;
|
|
113
|
+
constructor();
|
|
114
|
+
ngOnInit(): void;
|
|
115
|
+
private setNodeCheckSubscription;
|
|
116
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TreeViewCheckableDirective<any, any>, never>;
|
|
117
|
+
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>;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
declare class TreeViewDisableDirective<T, K = T> {
|
|
121
|
+
#private;
|
|
122
|
+
/**
|
|
123
|
+
* @description Property name or accessor used to derive a node's disable key from its data. Falls back to the node's data when unset.
|
|
124
|
+
* @default ""
|
|
125
|
+
*/
|
|
126
|
+
readonly disableBy: _angular_core.InputSignal<NodeKeySelector<T, K> | undefined>;
|
|
127
|
+
/**
|
|
128
|
+
* @description Keys of the currently disabled nodes.
|
|
129
|
+
* @default []
|
|
130
|
+
*/
|
|
131
|
+
readonly disabledKeys: _angular_core.InputSignal<Iterable<K>>;
|
|
132
|
+
/**
|
|
133
|
+
* @description Configures whether disabling a node also disables its children. Merged over `{ disableChildren: true, enabled: true }` when applied bare.
|
|
134
|
+
* @default ""
|
|
135
|
+
*/
|
|
136
|
+
readonly options: _angular_core.InputSignal<"" | Partial<DisableOptions>>;
|
|
137
|
+
constructor();
|
|
138
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TreeViewDisableDirective<any, any>, never>;
|
|
139
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TreeViewDisableDirective<any, any>, "mona-tree-view[monaTreeViewDisable]", ["monaTreeViewDisable"], { "disableBy": { "alias": "disableBy"; "required": false; "isSignal": true; }; "disabledKeys": { "alias": "disabledKeys"; "required": false; "isSignal": true; }; "options": { "alias": "monaTreeViewDisable"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
declare class TreeViewDragAndDropDirective<T> {
|
|
143
|
+
#private;
|
|
144
|
+
/**
|
|
145
|
+
* @description Emitted while a node is being dragged.
|
|
146
|
+
*/
|
|
147
|
+
readonly nodeDrag: _angular_core.OutputEmitterRef<NodeDragEvent<T>>;
|
|
148
|
+
/**
|
|
149
|
+
* @description Emitted when a node drag ends.
|
|
150
|
+
*/
|
|
151
|
+
readonly nodeDragEnd: _angular_core.OutputEmitterRef<NodeDragEndEvent<T>>;
|
|
152
|
+
/**
|
|
153
|
+
* @description Emitted when a node drag starts.
|
|
154
|
+
*/
|
|
155
|
+
readonly nodeDragStart: _angular_core.OutputEmitterRef<NodeDragStartEvent<T>>;
|
|
156
|
+
/**
|
|
157
|
+
* @description Emitted when a node is dropped.
|
|
158
|
+
*/
|
|
159
|
+
readonly nodeDrop: _angular_core.OutputEmitterRef<NodeDropEvent<T>>;
|
|
160
|
+
/**
|
|
161
|
+
* @description Configures whether dragging nodes to reorder or reparent them is enabled. Merged over `{ enabled: true }` when applied bare.
|
|
162
|
+
* @default ""
|
|
163
|
+
*/
|
|
164
|
+
readonly options: _angular_core.InputSignal<"" | Partial<DraggableOptions>>;
|
|
165
|
+
constructor();
|
|
166
|
+
setSubscriptions(): void;
|
|
167
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TreeViewDragAndDropDirective<any>, never>;
|
|
168
|
+
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>;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
declare class TreeViewExpandableDirective<T, K = T> {
|
|
172
|
+
#private;
|
|
173
|
+
/**
|
|
174
|
+
* @description Emitted when a node is collapsed.
|
|
175
|
+
*/
|
|
176
|
+
readonly collapse: _angular_core.OutputEmitterRef<NodeItem<T>>;
|
|
177
|
+
/**
|
|
178
|
+
* @description Emitted when a node is expanded.
|
|
179
|
+
*/
|
|
180
|
+
readonly expand: _angular_core.OutputEmitterRef<NodeItem<T>>;
|
|
181
|
+
/**
|
|
182
|
+
* @description Property name or accessor used to derive a node's expand key from its data. Falls back to the node's data when unset.
|
|
183
|
+
* @default ""
|
|
184
|
+
*/
|
|
185
|
+
readonly expandBy: _angular_core.InputSignal<NodeKeySelector<T, K> | undefined>;
|
|
186
|
+
/**
|
|
187
|
+
* @description Keys of the currently expanded nodes.
|
|
188
|
+
* @default []
|
|
189
|
+
*/
|
|
190
|
+
readonly expandedKeys: _angular_core.InputSignal<Iterable<K>>;
|
|
191
|
+
/**
|
|
192
|
+
* @description Emitted when the expanded keys change.
|
|
193
|
+
*/
|
|
194
|
+
readonly expandedKeysChange: _angular_core.OutputEmitterRef<K[]>;
|
|
195
|
+
/**
|
|
196
|
+
* @description Configures whether expanding and collapsing nodes is enabled. Merged over `{ enabled: true }` when applied bare.
|
|
197
|
+
* @default ""
|
|
198
|
+
*/
|
|
199
|
+
readonly options: _angular_core.InputSignal<"" | Partial<ExpandableOptions>>;
|
|
200
|
+
constructor();
|
|
201
|
+
setSubscriptions(): void;
|
|
202
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TreeViewExpandableDirective<any, any>, never>;
|
|
203
|
+
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>;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
declare class TreeViewFilterableDirective<T> {
|
|
207
|
+
#private;
|
|
208
|
+
/**
|
|
209
|
+
* @description Current filter text used to narrow the visible nodes.
|
|
210
|
+
* @default ""
|
|
211
|
+
*/
|
|
212
|
+
readonly filter: _angular_core.InputSignal<string>;
|
|
213
|
+
/**
|
|
214
|
+
* @description Emitted when the filter value changes.
|
|
215
|
+
*/
|
|
216
|
+
readonly filterChange: _angular_core.OutputEmitterRef<FilterChangeEvent>;
|
|
217
|
+
/**
|
|
218
|
+
* @description Placeholder text shown in the filter input.
|
|
219
|
+
* @default ""
|
|
220
|
+
*/
|
|
221
|
+
readonly filterPlaceholder: _angular_core.InputSignal<string>;
|
|
222
|
+
/**
|
|
223
|
+
* @description Configures the filter operator, case sensitivity, and debounce delay. Merged over `{ enabled: true, operator: "contains", caseSensitive: false, debounce: 0 }` when applied bare.
|
|
224
|
+
* @default ""
|
|
225
|
+
*/
|
|
226
|
+
readonly options: _angular_core.InputSignal<"" | Partial<FilterableOptions>>;
|
|
227
|
+
constructor();
|
|
228
|
+
private setSubscription;
|
|
229
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TreeViewFilterableDirective<any>, never>;
|
|
230
|
+
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; }; }, { "filterChange": "filterChange"; }, never, never, true, never>;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
declare class TreeViewNodeTemplateDirective {
|
|
234
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TreeViewNodeTemplateDirective, never>;
|
|
235
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TreeViewNodeTemplateDirective, "ng-template[monaTreeViewNodeTemplate]", never, {}, {}, never, never, true, never>;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
declare class TreeViewSelectableDirective<T, K = T> implements OnInit {
|
|
239
|
+
#private;
|
|
240
|
+
/**
|
|
241
|
+
* @description Emitted when a node is selected or deselected.
|
|
242
|
+
*/
|
|
243
|
+
readonly nodeSelect: _angular_core.OutputEmitterRef<NodeSelectEvent<T>>;
|
|
244
|
+
/**
|
|
245
|
+
* @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.
|
|
246
|
+
* @default ""
|
|
247
|
+
*/
|
|
248
|
+
readonly selectBy: _angular_core.InputSignal<NodeKeySelector<T, K> | undefined>;
|
|
249
|
+
/**
|
|
250
|
+
* @description Keys of the currently selected nodes.
|
|
251
|
+
* @default []
|
|
252
|
+
*/
|
|
253
|
+
readonly selectedKeys: _angular_core.InputSignal<Iterable<K>>;
|
|
254
|
+
/**
|
|
255
|
+
* @description Emitted when the selected keys change.
|
|
256
|
+
*/
|
|
257
|
+
readonly selectedKeysChange: _angular_core.OutputEmitterRef<K[]>;
|
|
258
|
+
/**
|
|
259
|
+
* @description Emitted when the selection changes.
|
|
260
|
+
*/
|
|
261
|
+
readonly selectionChange: _angular_core.OutputEmitterRef<NodeItem<T>>;
|
|
262
|
+
/**
|
|
263
|
+
* @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.
|
|
264
|
+
* @default ""
|
|
265
|
+
*/
|
|
266
|
+
readonly options: _angular_core.InputSignal<"" | Partial<SelectableOptions>>;
|
|
267
|
+
constructor();
|
|
268
|
+
ngOnInit(): void;
|
|
269
|
+
private setNodeSelectSubscription;
|
|
270
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TreeViewSelectableDirective<any, any>, never>;
|
|
271
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TreeViewSelectableDirective<any, any>, "mona-tree-view[monaTreeViewSelectable]", ["monaTreeViewSelectable"], { "selectBy": { "alias": "selectBy"; "required": false; "isSignal": true; }; "selectedKeys": { "alias": "selectedKeys"; "required": false; "isSignal": true; }; "options": { "alias": "monaTreeViewSelectable"; "required": false; "isSignal": true; }; }, { "nodeSelect": "nodeSelect"; "selectedKeysChange": "selectedKeysChange"; "selectionChange": "selectionChange"; }, never, never, true, never>;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
export { TreeViewCheckableDirective, TreeViewComponent, TreeViewDisableDirective, TreeViewDragAndDropDirective, TreeViewExpandableDirective, TreeViewFilterableDirective, TreeViewNodeTemplateDirective, TreeViewSelectableDirective };
|
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { ElementRef, ComponentRef, TemplateRef, Type } from '@angular/core';
|
|
3
|
+
import { PopupCloseEvent, PopupRef } from '@nanahoshi/mona-ui/popup';
|
|
4
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
5
|
+
import { VariantInputs, Action } from '@nanahoshi/mona-ui/internal';
|
|
6
|
+
import { ThemeStyle } from '@nanahoshi/mona-ui/theme';
|
|
7
|
+
import { VariantProps } from 'class-variance-authority';
|
|
8
|
+
import { Observable } from 'rxjs';
|
|
9
|
+
|
|
10
|
+
declare const windowBaseThemeVariants: (theme: ThemeStyle) => (props?: ({
|
|
11
|
+
rounded?: "none" | "small" | "medium" | "large" | null | undefined;
|
|
12
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
13
|
+
declare const windowContentContainerThemeVariants: (theme: ThemeStyle) => (props?: ({
|
|
14
|
+
rounded?: "none" | "small" | "medium" | "large" | null | undefined;
|
|
15
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
16
|
+
declare const windowContentThemeVariants: (theme: ThemeStyle) => (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
17
|
+
declare const windowResizerThemeVariants: (theme: ThemeStyle) => (props?: ({
|
|
18
|
+
position?: "north" | "south" | "east" | "west" | "northeast" | "northwest" | "southeast" | "southwest" | null | undefined;
|
|
19
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
20
|
+
declare const windowTitleBarActionThemeVariants: (theme: ThemeStyle) => (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
21
|
+
declare const windowTitleBarThemeVariants: (theme: ThemeStyle) => (props?: ({
|
|
22
|
+
look?: "default" | "primary" | null | undefined;
|
|
23
|
+
rounded?: "none" | "small" | "medium" | "large" | null | undefined;
|
|
24
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
25
|
+
declare const windowTitleContainerThemeVariants: (theme: ThemeStyle) => (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
26
|
+
declare const windowTitleThemeVariants: (theme: ThemeStyle) => (props?: ({
|
|
27
|
+
look?: "default" | "primary" | null | undefined;
|
|
28
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
29
|
+
type WindowBaseVariantProps = VariantProps<ReturnType<typeof windowBaseThemeVariants>>;
|
|
30
|
+
type WindowBaseVariantInput = VariantInputs<WindowBaseVariantProps>;
|
|
31
|
+
type WindowContentContainerVariantProps = VariantProps<ReturnType<typeof windowContentContainerThemeVariants>>;
|
|
32
|
+
type WindowContentContainerVariantInput = VariantInputs<WindowContentContainerVariantProps>;
|
|
33
|
+
type WindowContentVariantProps = VariantProps<ReturnType<typeof windowContentThemeVariants>>;
|
|
34
|
+
type WindowResizerVariantProps = VariantProps<ReturnType<typeof windowResizerThemeVariants>>;
|
|
35
|
+
type WindowResizerVariantInput = VariantInputs<WindowResizerVariantProps>;
|
|
36
|
+
type WindowTitleBarActionVariantProps = VariantProps<ReturnType<typeof windowTitleBarActionThemeVariants>>;
|
|
37
|
+
type WindowTitleBarActionVariantInput = VariantInputs<WindowTitleBarActionVariantProps>;
|
|
38
|
+
type WindowTitleBarVariantProps = VariantProps<ReturnType<typeof windowTitleBarThemeVariants>>;
|
|
39
|
+
type WindowTitleBarVariantInput = VariantInputs<WindowTitleBarVariantProps>;
|
|
40
|
+
type WindowTitleContainerVariantProps = VariantProps<ReturnType<typeof windowTitleContainerThemeVariants>>;
|
|
41
|
+
type WindowTitleContainerVariantInput = VariantInputs<WindowTitleContainerVariantProps>;
|
|
42
|
+
type WindowTitleVariantProps = VariantProps<ReturnType<typeof windowTitleThemeVariants>>;
|
|
43
|
+
type WindowTitleVariantInput = VariantInputs<WindowTitleVariantProps>;
|
|
44
|
+
type WindowVariantProps = WindowBaseVariantProps & WindowContentContainerVariantProps & WindowContentVariantProps & WindowResizerVariantProps & WindowTitleBarActionVariantProps & WindowTitleBarVariantProps & WindowTitleContainerVariantProps & WindowTitleVariantProps;
|
|
45
|
+
type WindowVariantInput = WindowBaseVariantInput & WindowContentContainerVariantInput & Omit<WindowResizerVariantInput, "position"> & WindowTitleBarVariantInput & WindowTitleContainerVariantInput & WindowTitleBarActionVariantInput & WindowTitleVariantInput;
|
|
46
|
+
|
|
47
|
+
declare class WindowComponent implements WindowVariantInput {
|
|
48
|
+
#private;
|
|
49
|
+
private readonly actionTemplate;
|
|
50
|
+
private readonly contentTemplate;
|
|
51
|
+
private readonly footerTemplate;
|
|
52
|
+
private readonly titleTemplate;
|
|
53
|
+
/**
|
|
54
|
+
* @description Sets the visibility of the close button in the window header.
|
|
55
|
+
* @default true
|
|
56
|
+
*/
|
|
57
|
+
readonly closable: _angular_core.InputSignal<boolean>;
|
|
58
|
+
/**
|
|
59
|
+
* @description Emits when the window is about to be closed.
|
|
60
|
+
*/
|
|
61
|
+
readonly close: _angular_core.OutputEmitterRef<PopupCloseEvent<unknown>>;
|
|
62
|
+
/**
|
|
63
|
+
* @description Emitted after the window has fully closed (post-animation). Preventing this event has no effect.
|
|
64
|
+
*/
|
|
65
|
+
readonly closed: _angular_core.OutputEmitterRef<void>;
|
|
66
|
+
/**
|
|
67
|
+
* @description Sets whether the window should close when the escape key is pressed.
|
|
68
|
+
* @default true
|
|
69
|
+
*/
|
|
70
|
+
readonly closeOnEscape: _angular_core.InputSignal<boolean>;
|
|
71
|
+
/**
|
|
72
|
+
* @description Emits when the window dragging ends.
|
|
73
|
+
*/
|
|
74
|
+
readonly dragEnd: _angular_core.OutputEmitterRef<void>;
|
|
75
|
+
/**
|
|
76
|
+
* @description Emits when the window dragging starts.
|
|
77
|
+
*/
|
|
78
|
+
readonly dragStart: _angular_core.OutputEmitterRef<void>;
|
|
79
|
+
/**
|
|
80
|
+
* @description Sets whether the window can be dragged by the user.
|
|
81
|
+
* @default true
|
|
82
|
+
*/
|
|
83
|
+
readonly draggable: _angular_core.InputSignal<boolean>;
|
|
84
|
+
/**
|
|
85
|
+
* @description Sets the element that should receive focus when the window is opened.
|
|
86
|
+
* Accepts an element reference or a query selector string.
|
|
87
|
+
*/
|
|
88
|
+
readonly focusedElement: _angular_core.InputSignal<string | HTMLElement | ElementRef<HTMLElement> | null | undefined>;
|
|
89
|
+
/**
|
|
90
|
+
* @description Sets the height of the window.
|
|
91
|
+
*/
|
|
92
|
+
readonly height: _angular_core.ModelSignal<number | undefined>;
|
|
93
|
+
/**
|
|
94
|
+
* @description Sets the left position of the window.
|
|
95
|
+
*/
|
|
96
|
+
readonly left: _angular_core.ModelSignal<number | undefined>;
|
|
97
|
+
/**
|
|
98
|
+
* @description Sets the look of the window.
|
|
99
|
+
* @default "default"
|
|
100
|
+
*/
|
|
101
|
+
readonly look: _angular_core.InputSignal<"default" | "primary" | null | undefined>;
|
|
102
|
+
/**
|
|
103
|
+
* @description Sets the maximum height of the window.
|
|
104
|
+
*/
|
|
105
|
+
readonly maxHeight: _angular_core.InputSignal<number | undefined>;
|
|
106
|
+
/**
|
|
107
|
+
* @description Sets the maximum width of the window.
|
|
108
|
+
*/
|
|
109
|
+
readonly maxWidth: _angular_core.InputSignal<number | undefined>;
|
|
110
|
+
/**
|
|
111
|
+
* @description Sets whether the user can maximize the window.
|
|
112
|
+
* @default true
|
|
113
|
+
*/
|
|
114
|
+
readonly maximizable: _angular_core.InputSignal<boolean | undefined>;
|
|
115
|
+
/**
|
|
116
|
+
* @description Sets the minimum height of the window.
|
|
117
|
+
*/
|
|
118
|
+
readonly minHeight: _angular_core.InputSignal<number | undefined>;
|
|
119
|
+
/**
|
|
120
|
+
* @description Sets the minimum width of the window.
|
|
121
|
+
*/
|
|
122
|
+
readonly minWidth: _angular_core.InputSignal<number | undefined>;
|
|
123
|
+
/**
|
|
124
|
+
* @description Sets whether the user can minimize the window.
|
|
125
|
+
* @default true
|
|
126
|
+
*/
|
|
127
|
+
readonly minimizable: _angular_core.InputSignal<boolean | undefined>;
|
|
128
|
+
/**
|
|
129
|
+
* @description Sets whether the window should have an overlay behind it.
|
|
130
|
+
* @default false
|
|
131
|
+
*/
|
|
132
|
+
readonly modal: _angular_core.InputSignal<boolean | undefined>;
|
|
133
|
+
/**
|
|
134
|
+
* @description Sets whether the user can resize the window.
|
|
135
|
+
* @default false
|
|
136
|
+
*/
|
|
137
|
+
readonly resizable: _angular_core.InputSignal<boolean | undefined>;
|
|
138
|
+
/**
|
|
139
|
+
* @description Sets the border radius of the window.
|
|
140
|
+
* @default "medium"
|
|
141
|
+
*/
|
|
142
|
+
readonly rounded: _angular_core.InputSignal<"none" | "small" | "medium" | "large" | null | undefined>;
|
|
143
|
+
/**
|
|
144
|
+
* @description Sets the title of the window.
|
|
145
|
+
*/
|
|
146
|
+
readonly title: _angular_core.InputSignal<string | undefined>;
|
|
147
|
+
/**
|
|
148
|
+
* @description Sets the top position of the window.
|
|
149
|
+
*/
|
|
150
|
+
readonly top: _angular_core.ModelSignal<number | undefined>;
|
|
151
|
+
/**
|
|
152
|
+
* @description Sets the width of the window.
|
|
153
|
+
*/
|
|
154
|
+
readonly width: _angular_core.ModelSignal<number | undefined>;
|
|
155
|
+
constructor();
|
|
156
|
+
closeWindow(): void;
|
|
157
|
+
move(position: {
|
|
158
|
+
top?: number;
|
|
159
|
+
left?: number;
|
|
160
|
+
}): void;
|
|
161
|
+
openWindow(): void;
|
|
162
|
+
resize(dimensions: {
|
|
163
|
+
width?: number;
|
|
164
|
+
height?: number;
|
|
165
|
+
}): void;
|
|
166
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WindowComponent, never>;
|
|
167
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<WindowComponent, "mona-window", never, { "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; }; "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"], never, true, never>;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
declare class WindowActionTemplateDirective {
|
|
171
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WindowActionTemplateDirective, never>;
|
|
172
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<WindowActionTemplateDirective, "ng-template[monaWindowActionTemplate]", never, {}, {}, never, never, true, never>;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
declare class WindowContentTemplateDirective {
|
|
176
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WindowContentTemplateDirective, never>;
|
|
177
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<WindowContentTemplateDirective, "ng-template[monaWindowContentTemplate]", never, {}, {}, never, never, true, never>;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
declare class WindowFooterTemplateDirective {
|
|
181
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WindowFooterTemplateDirective, never>;
|
|
182
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<WindowFooterTemplateDirective, "ng-template[monaWindowFooterTemplate]", never, {}, {}, never, never, true, never>;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
declare class WindowTitleTemplateDirective {
|
|
186
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WindowTitleTemplateDirective, never>;
|
|
187
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<WindowTitleTemplateDirective, "ng-template[monaWindowTitleTemplate]", never, {}, {}, never, never, true, never>;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
interface MoveEvent {
|
|
191
|
+
left: number;
|
|
192
|
+
top: number;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
interface ResizeEvent {
|
|
196
|
+
left: number;
|
|
197
|
+
height: number;
|
|
198
|
+
top: number;
|
|
199
|
+
width: number;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
interface WindowRefParams<R = unknown> {
|
|
203
|
+
close: (result?: R) => void;
|
|
204
|
+
center: () => void;
|
|
205
|
+
closeWithDelay: (delay: number, result?: R) => void;
|
|
206
|
+
move: (params: {
|
|
207
|
+
top?: number;
|
|
208
|
+
left?: number;
|
|
209
|
+
}) => void;
|
|
210
|
+
resize: (params: {
|
|
211
|
+
width?: number;
|
|
212
|
+
height?: number;
|
|
213
|
+
center?: boolean;
|
|
214
|
+
}) => void;
|
|
215
|
+
get close$(): Observable<PopupCloseEvent<R>>;
|
|
216
|
+
get closed$(): Observable<void>;
|
|
217
|
+
get component(): ComponentRef<unknown> | null;
|
|
218
|
+
get drag$(): Observable<MoveEvent>;
|
|
219
|
+
get dragEnd$(): Observable<void>;
|
|
220
|
+
get dragStart$(): Observable<void>;
|
|
221
|
+
get element(): HTMLElement;
|
|
222
|
+
get height(): number;
|
|
223
|
+
get popupRef(): PopupRef;
|
|
224
|
+
get resize$(): Observable<ResizeEvent>;
|
|
225
|
+
get width(): number;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
declare class WindowRef<R = unknown> implements WindowRefParams<R> {
|
|
229
|
+
#private;
|
|
230
|
+
constructor(options: WindowRefParams<R>);
|
|
231
|
+
center(): void;
|
|
232
|
+
close(result?: R): void;
|
|
233
|
+
closeWithDelay(delay: number, result?: R): void;
|
|
234
|
+
move(params: {
|
|
235
|
+
top?: number;
|
|
236
|
+
left?: number;
|
|
237
|
+
}): void;
|
|
238
|
+
resize(params: {
|
|
239
|
+
width?: number;
|
|
240
|
+
height?: number;
|
|
241
|
+
center?: boolean;
|
|
242
|
+
}): void;
|
|
243
|
+
get close$(): Observable<PopupCloseEvent<R>>;
|
|
244
|
+
get closed$(): Observable<void>;
|
|
245
|
+
get component(): ComponentRef<unknown> | null;
|
|
246
|
+
get drag$(): Observable<MoveEvent>;
|
|
247
|
+
get dragEnd$(): Observable<void>;
|
|
248
|
+
get dragStart$(): Observable<void>;
|
|
249
|
+
get element(): HTMLElement;
|
|
250
|
+
get height(): number;
|
|
251
|
+
get popupRef(): PopupRef;
|
|
252
|
+
get resize$(): Observable<ResizeEvent>;
|
|
253
|
+
get width(): number;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
interface WindowActionTemplateContext {
|
|
257
|
+
$implicit: WindowRef;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
interface WindowSettings {
|
|
261
|
+
actionTemplate?: TemplateRef<WindowActionTemplateContext>;
|
|
262
|
+
closable?: boolean;
|
|
263
|
+
closeOnEscape?: boolean;
|
|
264
|
+
content?: TemplateRef<unknown> | Type<unknown>;
|
|
265
|
+
draggable?: boolean;
|
|
266
|
+
focusedElement?: HTMLElement | ElementRef<HTMLElement> | string | null;
|
|
267
|
+
footerTemplate?: TemplateRef<unknown>;
|
|
268
|
+
height?: number;
|
|
269
|
+
left?: number;
|
|
270
|
+
look?: WindowVariantProps["look"];
|
|
271
|
+
maxHeight?: number;
|
|
272
|
+
maxWidth?: number;
|
|
273
|
+
maximizable?: boolean;
|
|
274
|
+
minHeight?: number;
|
|
275
|
+
minWidth?: number;
|
|
276
|
+
minimizable?: boolean;
|
|
277
|
+
modal?: boolean;
|
|
278
|
+
preventClose?: Action<PopupCloseEvent, boolean>;
|
|
279
|
+
resizable?: boolean;
|
|
280
|
+
rounded: WindowVariantProps["rounded"];
|
|
281
|
+
title?: string | TemplateRef<unknown>;
|
|
282
|
+
top?: number;
|
|
283
|
+
width?: number;
|
|
284
|
+
windowClass?: string | string[];
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
declare class WindowService {
|
|
288
|
+
#private;
|
|
289
|
+
open(settings: WindowSettings): WindowRef;
|
|
290
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WindowService, never>;
|
|
291
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<WindowService>;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
export { WindowActionTemplateDirective, WindowComponent, WindowContentTemplateDirective, WindowFooterTemplateDirective, WindowRef, WindowService, WindowTitleTemplateDirective };
|
|
295
|
+
export type { MoveEvent, ResizeEvent, WindowActionTemplateContext, WindowSettings, WindowVariantProps };
|