@nanahoshi/mona-ui 0.37.0 → 0.39.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/api/common.md +1 -1
- package/docs/api/date-picker.md +2 -0
- package/docs/api/date-range-picker.md +2 -0
- package/docs/api/datetime-picker.md +2 -0
- package/docs/api/dropdown-list.md +2 -0
- package/docs/api/dropdown-tree.md +81 -0
- package/docs/api/dropdowns.md +34 -8
- package/docs/api/i18n.md +33 -4
- package/docs/api/list.md +1 -1
- package/docs/api/locales.md +14 -14
- package/docs/api/multi-select-tree.md +75 -0
- package/docs/api/multi-select.md +3 -1
- package/docs/api/popup.md +1 -1
- package/docs/api/time-picker.md +2 -0
- package/docs/api/tree-view.md +2 -2
- package/docs/auto-complete.md +2 -0
- package/docs/combo-box.md +2 -0
- package/docs/date-picker.md +5 -1
- package/docs/date-range-picker.md +5 -1
- package/docs/datetime-picker.md +5 -1
- package/docs/dropdown-list.md +52 -0
- package/docs/dropdown-tree.md +427 -0
- package/docs/multi-select-tree.md +353 -0
- package/docs/multi-select.md +6 -0
- package/docs/time-picker.md +5 -1
- package/dropdown-tree/package.json +4 -0
- package/fesm2022/nanahoshi-mona-ui-calendar.mjs +2 -2
- package/fesm2022/nanahoshi-mona-ui-date-picker.mjs +36 -2
- package/fesm2022/nanahoshi-mona-ui-date-range-picker.mjs +37 -3
- package/fesm2022/nanahoshi-mona-ui-datetime-picker.mjs +52 -5
- package/fesm2022/nanahoshi-mona-ui-dropdown-list.mjs +40 -5
- package/fesm2022/nanahoshi-mona-ui-dropdown-tree.mjs +1061 -0
- package/fesm2022/nanahoshi-mona-ui-dropdowns.mjs +730 -60
- package/fesm2022/nanahoshi-mona-ui-editor.mjs +8 -2
- package/fesm2022/nanahoshi-mona-ui-filter.mjs +4 -0
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-list.component-S2iCn8TV.mjs → nanahoshi-mona-ui-grid-grid-list.component-BoSXXLKQ.mjs} +2 -2
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-row.component-BUJvgihp.mjs → nanahoshi-mona-ui-grid-grid-row.component-Df2gfS0X.mjs} +3 -1
- package/fesm2022/{nanahoshi-mona-ui-grid-grid-virtual-list.component-Wndy-_Bt.mjs → nanahoshi-mona-ui-grid-grid-virtual-list.component-xjrcCXXF.mjs} +2 -2
- package/fesm2022/nanahoshi-mona-ui-grid.mjs +8 -4
- package/fesm2022/nanahoshi-mona-ui-i18n-icu.mjs +13 -0
- package/fesm2022/nanahoshi-mona-ui-internal-tree.mjs +80 -37
- package/fesm2022/nanahoshi-mona-ui-locales-ar-sa.mjs +7 -0
- package/fesm2022/nanahoshi-mona-ui-locales-de-de.mjs +7 -0
- package/fesm2022/nanahoshi-mona-ui-locales-es-es.mjs +7 -0
- package/fesm2022/nanahoshi-mona-ui-locales-fr-fr.mjs +7 -0
- package/fesm2022/nanahoshi-mona-ui-locales-id-id.mjs +7 -0
- package/fesm2022/nanahoshi-mona-ui-locales-it-it.mjs +7 -0
- package/fesm2022/nanahoshi-mona-ui-locales-ja-jp.mjs +7 -0
- package/fesm2022/nanahoshi-mona-ui-locales-ko-kr.mjs +7 -0
- package/fesm2022/nanahoshi-mona-ui-locales-pl-pl.mjs +17 -0
- package/fesm2022/nanahoshi-mona-ui-locales-pt-br.mjs +7 -0
- package/fesm2022/nanahoshi-mona-ui-locales-ru-ru.mjs +17 -0
- package/fesm2022/nanahoshi-mona-ui-locales-tr-tr.mjs +7 -0
- package/fesm2022/nanahoshi-mona-ui-locales-zh-cn.mjs +7 -0
- package/fesm2022/nanahoshi-mona-ui-locales-zh-tw.mjs +7 -0
- package/fesm2022/nanahoshi-mona-ui-multi-select-tree.mjs +1179 -0
- package/fesm2022/nanahoshi-mona-ui-multi-select.mjs +42 -7
- package/fesm2022/nanahoshi-mona-ui-pager.mjs +3 -1
- package/fesm2022/nanahoshi-mona-ui-time-picker.mjs +39 -4
- package/fesm2022/nanahoshi-mona-ui-tree-view.mjs +2 -1
- package/i18n/catalogs/en-US.messages.json +9 -0
- package/llms.txt +6 -2
- package/locales/ar-sa/ar-sa.messages.json +9 -0
- package/locales/de-de/de-de.messages.json +9 -0
- package/locales/es-es/es-es.messages.json +9 -0
- package/locales/fr-fr/fr-fr.messages.json +9 -0
- package/locales/id-id/id-id.messages.json +9 -0
- package/locales/it-it/it-it.messages.json +9 -0
- package/locales/ja-jp/ja-jp.messages.json +9 -0
- package/locales/ko-kr/ko-kr.messages.json +9 -0
- package/locales/pl-pl/pl-pl.messages.json +9 -0
- package/locales/pt-br/pt-br.messages.json +9 -0
- package/locales/ru-ru/ru-ru.messages.json +9 -0
- package/locales/tr-tr/tr-tr.messages.json +9 -0
- package/locales/zh-cn/zh-cn.messages.json +9 -0
- package/locales/zh-tw/zh-tw.messages.json +9 -0
- package/multi-select-tree/package.json +4 -0
- package/package.json +9 -1
- package/types/nanahoshi-mona-ui-date-picker.d.ts +25 -1
- package/types/nanahoshi-mona-ui-date-range-picker.d.ts +26 -1
- package/types/nanahoshi-mona-ui-datetime-picker.d.ts +34 -1
- package/types/nanahoshi-mona-ui-dropdown-list.d.ts +33 -5
- package/types/nanahoshi-mona-ui-dropdown-tree.d.ts +414 -0
- package/types/nanahoshi-mona-ui-dropdowns.d.ts +218 -9
- package/types/nanahoshi-mona-ui-i18n.d.ts +12 -0
- package/types/nanahoshi-mona-ui-internal-tree.d.ts +36 -0
- package/types/nanahoshi-mona-ui-locales-ar-sa.d.ts +9 -0
- package/types/nanahoshi-mona-ui-locales-de-de.d.ts +9 -0
- package/types/nanahoshi-mona-ui-locales-es-es.d.ts +9 -0
- package/types/nanahoshi-mona-ui-locales-fr-fr.d.ts +9 -0
- package/types/nanahoshi-mona-ui-locales-id-id.d.ts +9 -0
- package/types/nanahoshi-mona-ui-locales-it-it.d.ts +9 -0
- package/types/nanahoshi-mona-ui-locales-ja-jp.d.ts +9 -0
- package/types/nanahoshi-mona-ui-locales-ko-kr.d.ts +9 -0
- package/types/nanahoshi-mona-ui-locales-pl-pl.d.ts +9 -0
- package/types/nanahoshi-mona-ui-locales-pt-br.d.ts +9 -0
- package/types/nanahoshi-mona-ui-locales-ru-ru.d.ts +9 -0
- package/types/nanahoshi-mona-ui-locales-tr-tr.d.ts +9 -0
- package/types/nanahoshi-mona-ui-locales-zh-cn.d.ts +9 -0
- package/types/nanahoshi-mona-ui-locales-zh-tw.d.ts +9 -0
- package/types/nanahoshi-mona-ui-multi-select-tree.d.ts +456 -0
- package/types/nanahoshi-mona-ui-multi-select.d.ts +43 -7
- package/types/nanahoshi-mona-ui-time-picker.d.ts +29 -2
|
@@ -0,0 +1,414 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { TemplateRef } from "@angular/core";
|
|
3
|
+
import { FormValueControl } from "@angular/forms/signals";
|
|
4
|
+
import { Predicate } from "@mirei/ts-collections";
|
|
5
|
+
import { PreventableEvent } from "@nanahoshi/mona-ui/common";
|
|
6
|
+
import { DropDownListVariantInput } from "@nanahoshi/mona-ui/dropdown-list";
|
|
7
|
+
import * as i1 from "@nanahoshi/mona-ui/dropdowns";
|
|
8
|
+
import { AdaptiveMode, DropdownFieldPredicateType, DropdownFieldSelectorType, DropdownPopupInput } from "@nanahoshi/mona-ui/dropdowns";
|
|
9
|
+
import { ListSizeInputType } from "@nanahoshi/mona-ui/internal/list";
|
|
10
|
+
import { ChildrenSelector, DataStructure, TreeNode } from "@nanahoshi/mona-ui/internal/tree";
|
|
11
|
+
import { PopupCloseEvent } from "@nanahoshi/mona-ui/popup";
|
|
12
|
+
import { MonaDropdownTreeMessages } from "@nanahoshi/mona-ui/i18n";
|
|
13
|
+
export declare class DropdownTreeComponent<TData = unknown, TValue = TData> implements FormValueControl<TValue | null>, DropDownListVariantInput, DropdownPopupInput {
|
|
14
|
+
#private;
|
|
15
|
+
/** While the popup is open and the field has focus (no filter box), the active node of the popup's tree. */
|
|
16
|
+
protected readonly activeDescendant: import("@angular/core").Signal<string | null>;
|
|
17
|
+
protected readonly affixClass: import("@angular/core").Signal<string>;
|
|
18
|
+
protected readonly baseClass: import("@angular/core").Signal<string>;
|
|
19
|
+
protected readonly clearButtonVisible: import("@angular/core").Signal<boolean>;
|
|
20
|
+
protected readonly describedBy: import("@angular/core").Signal<string | null>;
|
|
21
|
+
protected readonly effectiveAriaLabel: import("@angular/core").Signal<string>;
|
|
22
|
+
protected readonly effectiveDisabled: import("@angular/core").Signal<boolean>;
|
|
23
|
+
protected readonly expanded: import("@angular/core").Signal<boolean>;
|
|
24
|
+
protected readonly footerTemplate: import("@angular/core").Signal<TemplateRef<any> | undefined>;
|
|
25
|
+
protected readonly headerTemplate: import("@angular/core").Signal<TemplateRef<any> | undefined>;
|
|
26
|
+
protected readonly invalidState: import("@angular/core").Signal<boolean>;
|
|
27
|
+
protected readonly itemTemplate: import("@angular/core").Signal<TemplateRef<any> | undefined>;
|
|
28
|
+
protected readonly labelledBy: import("@angular/core").Signal<string | null>;
|
|
29
|
+
protected readonly messages: import("@angular/core").Signal<import("@nanahoshi/mona-ui/i18n").MonaDropdownTreeMessages>;
|
|
30
|
+
protected readonly noDataTemplate: import("@angular/core").Signal<TemplateRef<any> | undefined>;
|
|
31
|
+
/** The field's name, which names the popup's tree and its filter box. */
|
|
32
|
+
protected readonly popupAriaLabel: import("@angular/core").Signal<string>;
|
|
33
|
+
/** The popup's size: large in a bottom sheet, for touch. */
|
|
34
|
+
protected readonly popupSize: import("@angular/core").Signal<"small" | "medium" | "large">;
|
|
35
|
+
protected readonly popupSurfaceClass: import("@angular/core").Signal<string>;
|
|
36
|
+
protected readonly popupTemplate: import("@angular/core").Signal<TemplateRef<unknown>>;
|
|
37
|
+
protected readonly prefixTemplate: import("@angular/core").Signal<TemplateRef<any> | undefined>;
|
|
38
|
+
/** The selected item: the selected node's, or the value itself while its node isn't loaded (object values only). */
|
|
39
|
+
protected readonly selectedDataItem: import("@angular/core").Signal<TData | null>;
|
|
40
|
+
protected readonly selectedNode: import("@angular/core").Signal<TreeNode<TData> | null>;
|
|
41
|
+
protected readonly sheet: import("@angular/core").Signal<boolean>;
|
|
42
|
+
protected readonly treeId: string;
|
|
43
|
+
protected readonly valueContainerClass: import("@angular/core").Signal<string>;
|
|
44
|
+
protected readonly valueTemplate: import("@angular/core").Signal<TemplateRef<any> | undefined>;
|
|
45
|
+
protected readonly valueText: import("@angular/core").Signal<string>;
|
|
46
|
+
/**
|
|
47
|
+
* @description Opens the popup as a sheet along the bottom of the screen on a small screen (narrower than 640
|
|
48
|
+
* pixels) with `"auto"`, so it's easy to reach with a thumb. With `"none"`, it always opens under the field.
|
|
49
|
+
* @default "none"
|
|
50
|
+
*/
|
|
51
|
+
readonly adaptiveMode: import("@angular/core").InputSignal<AdaptiveMode>;
|
|
52
|
+
/**
|
|
53
|
+
* @description Title of the bottom sheet the popup opens as with `adaptiveMode="auto"`. When empty, the sheet
|
|
54
|
+
* shows the field's name.
|
|
55
|
+
* @default ""
|
|
56
|
+
*/
|
|
57
|
+
readonly adaptiveTitle: import("@angular/core").InputSignal<string>;
|
|
58
|
+
/**
|
|
59
|
+
* @description ID of an element that describes the dropdown tree, such as help text or an error message.
|
|
60
|
+
* @default ""
|
|
61
|
+
*/
|
|
62
|
+
readonly ariaDescribedBy: import("@angular/core").InputSignal<string>;
|
|
63
|
+
/**
|
|
64
|
+
* @description Accessible name of the dropdown tree. Describe what it represents. When empty, falls back to the
|
|
65
|
+
* placeholder text.
|
|
66
|
+
* @default ""
|
|
67
|
+
*/
|
|
68
|
+
readonly ariaLabel: import("@angular/core").InputSignal<string>;
|
|
69
|
+
/**
|
|
70
|
+
* @description ID of an external element that provides the accessible name of the dropdown tree.
|
|
71
|
+
* @default ""
|
|
72
|
+
*/
|
|
73
|
+
readonly ariaLabelledBy: import("@angular/core").InputSignal<string>;
|
|
74
|
+
/**
|
|
75
|
+
* @description Property name or accessor that gives a node's children, for `mode="hierarchical"`. An accessor
|
|
76
|
+
* may return an observable, which loads the children when the node is first opened; set `hasChildren` with it.
|
|
77
|
+
* @default ""
|
|
78
|
+
*/
|
|
79
|
+
readonly children: import("@angular/core").InputSignal<ChildrenSelector<TData>>;
|
|
80
|
+
/**
|
|
81
|
+
* @description Emitted when the popup is about to close. This event is preventable.
|
|
82
|
+
*/
|
|
83
|
+
readonly close: import("@angular/core").OutputEmitterRef<PopupCloseEvent<unknown>>;
|
|
84
|
+
/**
|
|
85
|
+
* @description Emitted after the popup closes.
|
|
86
|
+
*/
|
|
87
|
+
readonly closed: import("@angular/core").OutputEmitterRef<void>;
|
|
88
|
+
/**
|
|
89
|
+
* @description The items of the tree: its root items for `mode="hierarchical"`, or every item for `mode="flat"`.
|
|
90
|
+
* @default []
|
|
91
|
+
*/
|
|
92
|
+
readonly data: import("@angular/core").InputSignal<Iterable<TData>>;
|
|
93
|
+
/**
|
|
94
|
+
* @description Renders the component with reduced visual emphasis and removes pointer interaction.
|
|
95
|
+
* @default false
|
|
96
|
+
*/
|
|
97
|
+
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
98
|
+
/**
|
|
99
|
+
* @description Whether an item has children, before they load. Needed when `children` returns an observable.
|
|
100
|
+
* @default null
|
|
101
|
+
*/
|
|
102
|
+
readonly hasChildren: import("@angular/core").InputSignal<Predicate<TData> | null>;
|
|
103
|
+
/**
|
|
104
|
+
* @description Property name that holds an item's unique id, for `mode="flat"`.
|
|
105
|
+
* @default ""
|
|
106
|
+
*/
|
|
107
|
+
readonly idField: import("@angular/core").InputSignal<string>;
|
|
108
|
+
/**
|
|
109
|
+
* @description Marks the field as invalid. Set automatically by the `FormField` directive when bound via `[formField]`.
|
|
110
|
+
* @default false
|
|
111
|
+
*/
|
|
112
|
+
readonly invalid: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
113
|
+
/**
|
|
114
|
+
* @description Predicate or field name that tells whether an item is disabled. A disabled item can't be selected
|
|
115
|
+
* or opened, and neither can its children.
|
|
116
|
+
* @default undefined
|
|
117
|
+
*/
|
|
118
|
+
readonly itemDisabled: import("@angular/core").InputSignal<DropdownFieldPredicateType<TData>>;
|
|
119
|
+
/**
|
|
120
|
+
* @description Shows a loading indicator, in place of the clear button, and marks the field busy. It doesn't
|
|
121
|
+
* block interaction: the field stays usable while data loads.
|
|
122
|
+
* @default false
|
|
123
|
+
*/
|
|
124
|
+
readonly loading: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
125
|
+
/**
|
|
126
|
+
* @description Shape of `data`: `"hierarchical"` for items that hold their children (see `children`), or
|
|
127
|
+
* `"flat"` for one list linked by `idField` and `parentIdField`.
|
|
128
|
+
* @default "hierarchical"
|
|
129
|
+
*/
|
|
130
|
+
readonly mode: import("@angular/core").InputSignal<DataStructure>;
|
|
131
|
+
/**
|
|
132
|
+
* @description Emitted when the popup is about to open. This event is preventable.
|
|
133
|
+
*/
|
|
134
|
+
readonly open: import("@angular/core").OutputEmitterRef<PreventableEvent<Event>>;
|
|
135
|
+
/**
|
|
136
|
+
* @description Emitted after the popup opens.
|
|
137
|
+
*/
|
|
138
|
+
readonly opened: import("@angular/core").OutputEmitterRef<void>;
|
|
139
|
+
/**
|
|
140
|
+
* @description Property name that holds an item's parent id, for `mode="flat"`. Items without one are roots.
|
|
141
|
+
* @default ""
|
|
142
|
+
*/
|
|
143
|
+
readonly parentIdField: import("@angular/core").InputSignal<string>;
|
|
144
|
+
/**
|
|
145
|
+
* @description Placeholder text shown when no value is selected. It also names the dropdown tree when neither
|
|
146
|
+
* `aria-label` nor `aria-labelledby` is set.
|
|
147
|
+
* @default ""
|
|
148
|
+
*/
|
|
149
|
+
readonly placeholder: import("@angular/core").InputSignal<string>;
|
|
150
|
+
/**
|
|
151
|
+
* @description Additional CSS classes applied to the popup element.
|
|
152
|
+
* @default ""
|
|
153
|
+
*/
|
|
154
|
+
readonly popupClass: import("@angular/core").InputSignal<string>;
|
|
155
|
+
/**
|
|
156
|
+
* @description Maximum height of the popup, in pixels or as a CSS length. Shorter trees shrink to fit. When
|
|
157
|
+
* unset, the popup is at most 200 pixels tall.
|
|
158
|
+
* @default null
|
|
159
|
+
*/
|
|
160
|
+
readonly popupHeight: import("@angular/core").InputSignal<ListSizeInputType>;
|
|
161
|
+
/**
|
|
162
|
+
* @description Width of the popup element. When unset, the popup is as wide as the field.
|
|
163
|
+
* @default null
|
|
164
|
+
*/
|
|
165
|
+
readonly popupWidth: import("@angular/core").InputSignal<ListSizeInputType>;
|
|
166
|
+
/**
|
|
167
|
+
* @description Prevents value changes while preserving the component's visual state.
|
|
168
|
+
* @default false
|
|
169
|
+
*/
|
|
170
|
+
readonly readonly: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
171
|
+
/**
|
|
172
|
+
* @description Marks the field as required for form validation.
|
|
173
|
+
* @default false
|
|
174
|
+
*/
|
|
175
|
+
readonly required: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
176
|
+
/**
|
|
177
|
+
* @description Border-radius preset applied to the component.
|
|
178
|
+
* @default "medium"
|
|
179
|
+
*/
|
|
180
|
+
readonly rounded: import("@angular/core").InputSignal<"none" | "small" | "medium" | "large" | "full" | null | undefined>;
|
|
181
|
+
/**
|
|
182
|
+
* @description Shows a clear button that resets the selected value when clicked.
|
|
183
|
+
* @default false
|
|
184
|
+
*/
|
|
185
|
+
readonly showClearButton: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
186
|
+
/**
|
|
187
|
+
* @description Size preset controlling the component's dimensions.
|
|
188
|
+
* @default "medium"
|
|
189
|
+
*/
|
|
190
|
+
readonly size: import("@angular/core").InputSignal<"small" | "medium" | "large" | null | undefined>;
|
|
191
|
+
/**
|
|
192
|
+
* @description Property name or accessor that gives an item's text. When unset, the item itself is the text.
|
|
193
|
+
* @default undefined
|
|
194
|
+
*/
|
|
195
|
+
readonly textField: import("@angular/core").InputSignal<DropdownFieldSelectorType<TData, string>>;
|
|
196
|
+
/**
|
|
197
|
+
* @description Emitted when focus leaves the dropdown tree. Moving between it, its clear button and its popup
|
|
198
|
+
* doesn't count. The `FormField` directive listens to this to mark the field as touched.
|
|
199
|
+
*/
|
|
200
|
+
readonly touch: import("@angular/core").OutputEmitterRef<void>;
|
|
201
|
+
/**
|
|
202
|
+
* @description Marks the control as touched. Set automatically by the `FormField` directive when bound via `[formField]`.
|
|
203
|
+
* @default false
|
|
204
|
+
*/
|
|
205
|
+
readonly touched: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
206
|
+
/**
|
|
207
|
+
* @description Additional CSS classes merged onto the host element via `tailwind-merge`.
|
|
208
|
+
* @default ""
|
|
209
|
+
*/
|
|
210
|
+
readonly userClass: import("@angular/core").InputSignal<string>;
|
|
211
|
+
/**
|
|
212
|
+
* @description The selected item, two-way bindable and compatible with Signal Forms via `[formField]`. It's the
|
|
213
|
+
* data item, or with {@link valuePrimitive}, the value {@link valueField} gives for it. `null` means nothing is
|
|
214
|
+
* selected.
|
|
215
|
+
* @default null
|
|
216
|
+
*/
|
|
217
|
+
readonly value: import("@angular/core").ModelSignal<TValue | null>;
|
|
218
|
+
/**
|
|
219
|
+
* @description Property name or accessor that gives an item's value: what identifies the item, matches a value
|
|
220
|
+
* set from code to its node, and is the value with {@link valuePrimitive}. When unset, the item itself is the
|
|
221
|
+
* value. It should be a stable, unique scalar.
|
|
222
|
+
* @default undefined
|
|
223
|
+
*/
|
|
224
|
+
readonly valueField: import("@angular/core").InputSignal<DropdownFieldSelectorType<TData, unknown>>;
|
|
225
|
+
/**
|
|
226
|
+
* @description Whether the value is what {@link valueField} gives for the selected item (`true`), or the item
|
|
227
|
+
* itself (`false`).
|
|
228
|
+
* @default false
|
|
229
|
+
*/
|
|
230
|
+
readonly valuePrimitive: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
231
|
+
constructor();
|
|
232
|
+
/**
|
|
233
|
+
* @description Moves focus to the dropdown tree.
|
|
234
|
+
* @param options Passed to `HTMLElement.focus()`, for example `{ preventScroll: true }`.
|
|
235
|
+
*/
|
|
236
|
+
focus(options?: FocusOptions): void;
|
|
237
|
+
protected onFocusOut(event: FocusEvent): void;
|
|
238
|
+
protected onValueClear(event: MouseEvent | KeyboardEvent): void;
|
|
239
|
+
private getControlValue;
|
|
240
|
+
/** Selects a node, unless it's disabled, and closes the popup. */
|
|
241
|
+
private selectNode;
|
|
242
|
+
private setSubscriptions;
|
|
243
|
+
private updateValue;
|
|
244
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownTreeComponent<any, any>, never>;
|
|
245
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DropdownTreeComponent<any, any>, "mona-dropdown-tree", never, {
|
|
246
|
+
"adaptiveMode": {
|
|
247
|
+
"alias": "adaptiveMode";
|
|
248
|
+
"required": false;
|
|
249
|
+
"isSignal": true;
|
|
250
|
+
};
|
|
251
|
+
"adaptiveTitle": {
|
|
252
|
+
"alias": "adaptiveTitle";
|
|
253
|
+
"required": false;
|
|
254
|
+
"isSignal": true;
|
|
255
|
+
};
|
|
256
|
+
"ariaDescribedBy": {
|
|
257
|
+
"alias": "aria-describedby";
|
|
258
|
+
"required": false;
|
|
259
|
+
"isSignal": true;
|
|
260
|
+
};
|
|
261
|
+
"ariaLabel": {
|
|
262
|
+
"alias": "aria-label";
|
|
263
|
+
"required": false;
|
|
264
|
+
"isSignal": true;
|
|
265
|
+
};
|
|
266
|
+
"ariaLabelledBy": {
|
|
267
|
+
"alias": "aria-labelledby";
|
|
268
|
+
"required": false;
|
|
269
|
+
"isSignal": true;
|
|
270
|
+
};
|
|
271
|
+
"children": {
|
|
272
|
+
"alias": "children";
|
|
273
|
+
"required": false;
|
|
274
|
+
"isSignal": true;
|
|
275
|
+
};
|
|
276
|
+
"data": {
|
|
277
|
+
"alias": "data";
|
|
278
|
+
"required": false;
|
|
279
|
+
"isSignal": true;
|
|
280
|
+
};
|
|
281
|
+
"disabled": {
|
|
282
|
+
"alias": "disabled";
|
|
283
|
+
"required": false;
|
|
284
|
+
"isSignal": true;
|
|
285
|
+
};
|
|
286
|
+
"hasChildren": {
|
|
287
|
+
"alias": "hasChildren";
|
|
288
|
+
"required": false;
|
|
289
|
+
"isSignal": true;
|
|
290
|
+
};
|
|
291
|
+
"idField": {
|
|
292
|
+
"alias": "idField";
|
|
293
|
+
"required": false;
|
|
294
|
+
"isSignal": true;
|
|
295
|
+
};
|
|
296
|
+
"invalid": {
|
|
297
|
+
"alias": "invalid";
|
|
298
|
+
"required": false;
|
|
299
|
+
"isSignal": true;
|
|
300
|
+
};
|
|
301
|
+
"itemDisabled": {
|
|
302
|
+
"alias": "itemDisabled";
|
|
303
|
+
"required": false;
|
|
304
|
+
"isSignal": true;
|
|
305
|
+
};
|
|
306
|
+
"loading": {
|
|
307
|
+
"alias": "loading";
|
|
308
|
+
"required": false;
|
|
309
|
+
"isSignal": true;
|
|
310
|
+
};
|
|
311
|
+
"mode": {
|
|
312
|
+
"alias": "mode";
|
|
313
|
+
"required": false;
|
|
314
|
+
"isSignal": true;
|
|
315
|
+
};
|
|
316
|
+
"parentIdField": {
|
|
317
|
+
"alias": "parentIdField";
|
|
318
|
+
"required": false;
|
|
319
|
+
"isSignal": true;
|
|
320
|
+
};
|
|
321
|
+
"placeholder": {
|
|
322
|
+
"alias": "placeholder";
|
|
323
|
+
"required": false;
|
|
324
|
+
"isSignal": true;
|
|
325
|
+
};
|
|
326
|
+
"popupClass": {
|
|
327
|
+
"alias": "popupClass";
|
|
328
|
+
"required": false;
|
|
329
|
+
"isSignal": true;
|
|
330
|
+
};
|
|
331
|
+
"popupHeight": {
|
|
332
|
+
"alias": "popupHeight";
|
|
333
|
+
"required": false;
|
|
334
|
+
"isSignal": true;
|
|
335
|
+
};
|
|
336
|
+
"popupWidth": {
|
|
337
|
+
"alias": "popupWidth";
|
|
338
|
+
"required": false;
|
|
339
|
+
"isSignal": true;
|
|
340
|
+
};
|
|
341
|
+
"readonly": {
|
|
342
|
+
"alias": "readonly";
|
|
343
|
+
"required": false;
|
|
344
|
+
"isSignal": true;
|
|
345
|
+
};
|
|
346
|
+
"required": {
|
|
347
|
+
"alias": "required";
|
|
348
|
+
"required": false;
|
|
349
|
+
"isSignal": true;
|
|
350
|
+
};
|
|
351
|
+
"rounded": {
|
|
352
|
+
"alias": "rounded";
|
|
353
|
+
"required": false;
|
|
354
|
+
"isSignal": true;
|
|
355
|
+
};
|
|
356
|
+
"showClearButton": {
|
|
357
|
+
"alias": "showClearButton";
|
|
358
|
+
"required": false;
|
|
359
|
+
"isSignal": true;
|
|
360
|
+
};
|
|
361
|
+
"size": {
|
|
362
|
+
"alias": "size";
|
|
363
|
+
"required": false;
|
|
364
|
+
"isSignal": true;
|
|
365
|
+
};
|
|
366
|
+
"textField": {
|
|
367
|
+
"alias": "textField";
|
|
368
|
+
"required": false;
|
|
369
|
+
"isSignal": true;
|
|
370
|
+
};
|
|
371
|
+
"touched": {
|
|
372
|
+
"alias": "touched";
|
|
373
|
+
"required": false;
|
|
374
|
+
"isSignal": true;
|
|
375
|
+
};
|
|
376
|
+
"userClass": {
|
|
377
|
+
"alias": "class";
|
|
378
|
+
"required": false;
|
|
379
|
+
"isSignal": true;
|
|
380
|
+
};
|
|
381
|
+
"value": {
|
|
382
|
+
"alias": "value";
|
|
383
|
+
"required": false;
|
|
384
|
+
"isSignal": true;
|
|
385
|
+
};
|
|
386
|
+
"valueField": {
|
|
387
|
+
"alias": "valueField";
|
|
388
|
+
"required": false;
|
|
389
|
+
"isSignal": true;
|
|
390
|
+
};
|
|
391
|
+
"valuePrimitive": {
|
|
392
|
+
"alias": "valuePrimitive";
|
|
393
|
+
"required": false;
|
|
394
|
+
"isSignal": true;
|
|
395
|
+
};
|
|
396
|
+
}, {
|
|
397
|
+
"close": "close";
|
|
398
|
+
"closed": "closed";
|
|
399
|
+
"open": "open";
|
|
400
|
+
"opened": "opened";
|
|
401
|
+
"touch": "touch";
|
|
402
|
+
"value": "valueChange";
|
|
403
|
+
}, ["footerTemplate", "headerTemplate", "itemTemplate", "noDataTemplate", "prefixTemplate", "valueTemplate"], never, true, [{
|
|
404
|
+
directive: typeof i1.DropdownTreePopupHandlerDirective;
|
|
405
|
+
inputs: {};
|
|
406
|
+
outputs: {};
|
|
407
|
+
}]>;
|
|
408
|
+
}
|
|
409
|
+
/** Renders the selected item in the field. Its context's `$implicit` is the item, or `null` with nothing selected. */
|
|
410
|
+
export declare class DropdownTreeValueTemplateDirective {
|
|
411
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownTreeValueTemplateDirective, never>;
|
|
412
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DropdownTreeValueTemplateDirective, "ng-template[monaDropDownTreeValueTemplate]", never, {}, {}, never, never, true, never>;
|
|
413
|
+
}
|
|
414
|
+
export declare const DROPDOWN_TREE_DEFAULT_MESSAGES: MonaDropdownTreeMessages;
|