@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.
Files changed (103) hide show
  1. package/docs/api/common.md +1 -1
  2. package/docs/api/date-picker.md +2 -0
  3. package/docs/api/date-range-picker.md +2 -0
  4. package/docs/api/datetime-picker.md +2 -0
  5. package/docs/api/dropdown-list.md +2 -0
  6. package/docs/api/dropdown-tree.md +81 -0
  7. package/docs/api/dropdowns.md +34 -8
  8. package/docs/api/i18n.md +33 -4
  9. package/docs/api/list.md +1 -1
  10. package/docs/api/locales.md +14 -14
  11. package/docs/api/multi-select-tree.md +75 -0
  12. package/docs/api/multi-select.md +3 -1
  13. package/docs/api/popup.md +1 -1
  14. package/docs/api/time-picker.md +2 -0
  15. package/docs/api/tree-view.md +2 -2
  16. package/docs/auto-complete.md +2 -0
  17. package/docs/combo-box.md +2 -0
  18. package/docs/date-picker.md +5 -1
  19. package/docs/date-range-picker.md +5 -1
  20. package/docs/datetime-picker.md +5 -1
  21. package/docs/dropdown-list.md +52 -0
  22. package/docs/dropdown-tree.md +427 -0
  23. package/docs/multi-select-tree.md +353 -0
  24. package/docs/multi-select.md +6 -0
  25. package/docs/time-picker.md +5 -1
  26. package/dropdown-tree/package.json +4 -0
  27. package/fesm2022/nanahoshi-mona-ui-calendar.mjs +2 -2
  28. package/fesm2022/nanahoshi-mona-ui-date-picker.mjs +36 -2
  29. package/fesm2022/nanahoshi-mona-ui-date-range-picker.mjs +37 -3
  30. package/fesm2022/nanahoshi-mona-ui-datetime-picker.mjs +52 -5
  31. package/fesm2022/nanahoshi-mona-ui-dropdown-list.mjs +40 -5
  32. package/fesm2022/nanahoshi-mona-ui-dropdown-tree.mjs +1061 -0
  33. package/fesm2022/nanahoshi-mona-ui-dropdowns.mjs +730 -60
  34. package/fesm2022/nanahoshi-mona-ui-editor.mjs +8 -2
  35. package/fesm2022/nanahoshi-mona-ui-filter.mjs +4 -0
  36. package/fesm2022/{nanahoshi-mona-ui-grid-grid-list.component-S2iCn8TV.mjs → nanahoshi-mona-ui-grid-grid-list.component-BoSXXLKQ.mjs} +2 -2
  37. package/fesm2022/{nanahoshi-mona-ui-grid-grid-row.component-BUJvgihp.mjs → nanahoshi-mona-ui-grid-grid-row.component-Df2gfS0X.mjs} +3 -1
  38. 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
  39. package/fesm2022/nanahoshi-mona-ui-grid.mjs +8 -4
  40. package/fesm2022/nanahoshi-mona-ui-i18n-icu.mjs +13 -0
  41. package/fesm2022/nanahoshi-mona-ui-internal-tree.mjs +80 -37
  42. package/fesm2022/nanahoshi-mona-ui-locales-ar-sa.mjs +7 -0
  43. package/fesm2022/nanahoshi-mona-ui-locales-de-de.mjs +7 -0
  44. package/fesm2022/nanahoshi-mona-ui-locales-es-es.mjs +7 -0
  45. package/fesm2022/nanahoshi-mona-ui-locales-fr-fr.mjs +7 -0
  46. package/fesm2022/nanahoshi-mona-ui-locales-id-id.mjs +7 -0
  47. package/fesm2022/nanahoshi-mona-ui-locales-it-it.mjs +7 -0
  48. package/fesm2022/nanahoshi-mona-ui-locales-ja-jp.mjs +7 -0
  49. package/fesm2022/nanahoshi-mona-ui-locales-ko-kr.mjs +7 -0
  50. package/fesm2022/nanahoshi-mona-ui-locales-pl-pl.mjs +17 -0
  51. package/fesm2022/nanahoshi-mona-ui-locales-pt-br.mjs +7 -0
  52. package/fesm2022/nanahoshi-mona-ui-locales-ru-ru.mjs +17 -0
  53. package/fesm2022/nanahoshi-mona-ui-locales-tr-tr.mjs +7 -0
  54. package/fesm2022/nanahoshi-mona-ui-locales-zh-cn.mjs +7 -0
  55. package/fesm2022/nanahoshi-mona-ui-locales-zh-tw.mjs +7 -0
  56. package/fesm2022/nanahoshi-mona-ui-multi-select-tree.mjs +1179 -0
  57. package/fesm2022/nanahoshi-mona-ui-multi-select.mjs +42 -7
  58. package/fesm2022/nanahoshi-mona-ui-pager.mjs +3 -1
  59. package/fesm2022/nanahoshi-mona-ui-time-picker.mjs +39 -4
  60. package/fesm2022/nanahoshi-mona-ui-tree-view.mjs +2 -1
  61. package/i18n/catalogs/en-US.messages.json +9 -0
  62. package/llms.txt +6 -2
  63. package/locales/ar-sa/ar-sa.messages.json +9 -0
  64. package/locales/de-de/de-de.messages.json +9 -0
  65. package/locales/es-es/es-es.messages.json +9 -0
  66. package/locales/fr-fr/fr-fr.messages.json +9 -0
  67. package/locales/id-id/id-id.messages.json +9 -0
  68. package/locales/it-it/it-it.messages.json +9 -0
  69. package/locales/ja-jp/ja-jp.messages.json +9 -0
  70. package/locales/ko-kr/ko-kr.messages.json +9 -0
  71. package/locales/pl-pl/pl-pl.messages.json +9 -0
  72. package/locales/pt-br/pt-br.messages.json +9 -0
  73. package/locales/ru-ru/ru-ru.messages.json +9 -0
  74. package/locales/tr-tr/tr-tr.messages.json +9 -0
  75. package/locales/zh-cn/zh-cn.messages.json +9 -0
  76. package/locales/zh-tw/zh-tw.messages.json +9 -0
  77. package/multi-select-tree/package.json +4 -0
  78. package/package.json +9 -1
  79. package/types/nanahoshi-mona-ui-date-picker.d.ts +25 -1
  80. package/types/nanahoshi-mona-ui-date-range-picker.d.ts +26 -1
  81. package/types/nanahoshi-mona-ui-datetime-picker.d.ts +34 -1
  82. package/types/nanahoshi-mona-ui-dropdown-list.d.ts +33 -5
  83. package/types/nanahoshi-mona-ui-dropdown-tree.d.ts +414 -0
  84. package/types/nanahoshi-mona-ui-dropdowns.d.ts +218 -9
  85. package/types/nanahoshi-mona-ui-i18n.d.ts +12 -0
  86. package/types/nanahoshi-mona-ui-internal-tree.d.ts +36 -0
  87. package/types/nanahoshi-mona-ui-locales-ar-sa.d.ts +9 -0
  88. package/types/nanahoshi-mona-ui-locales-de-de.d.ts +9 -0
  89. package/types/nanahoshi-mona-ui-locales-es-es.d.ts +9 -0
  90. package/types/nanahoshi-mona-ui-locales-fr-fr.d.ts +9 -0
  91. package/types/nanahoshi-mona-ui-locales-id-id.d.ts +9 -0
  92. package/types/nanahoshi-mona-ui-locales-it-it.d.ts +9 -0
  93. package/types/nanahoshi-mona-ui-locales-ja-jp.d.ts +9 -0
  94. package/types/nanahoshi-mona-ui-locales-ko-kr.d.ts +9 -0
  95. package/types/nanahoshi-mona-ui-locales-pl-pl.d.ts +9 -0
  96. package/types/nanahoshi-mona-ui-locales-pt-br.d.ts +9 -0
  97. package/types/nanahoshi-mona-ui-locales-ru-ru.d.ts +9 -0
  98. package/types/nanahoshi-mona-ui-locales-tr-tr.d.ts +9 -0
  99. package/types/nanahoshi-mona-ui-locales-zh-cn.d.ts +9 -0
  100. package/types/nanahoshi-mona-ui-locales-zh-tw.d.ts +9 -0
  101. package/types/nanahoshi-mona-ui-multi-select-tree.d.ts +456 -0
  102. package/types/nanahoshi-mona-ui-multi-select.d.ts +43 -7
  103. package/types/nanahoshi-mona-ui-time-picker.d.ts +29 -2
@@ -0,0 +1,1061 @@
1
+ import { NgTemplateOutlet } from "@angular/common";
2
+ import * as i0 from "@angular/core";
3
+ import { Component, DestroyRef, Directive, ElementRef, TemplateRef, afterNextRender, booleanAttribute, computed, contentChild, effect, forwardRef, inject, input, model, output, untracked, viewChild } from "@angular/core";
4
+ import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
5
+ import { dropdownListAffixContainerThemeVariants, dropdownListInputThemeVariants, dropdownListValueContainerThemeVariants } from "@nanahoshi/mona-ui/dropdown-list";
6
+ import * as i1 from "@nanahoshi/mona-ui/dropdowns";
7
+ import { DROPDOWN_POPUP_INPUT_TOKEN, DropdownFooterTemplateDirective, DropdownHeaderTemplateDirective, DropdownItemTemplateDirective, DropdownNoDataTemplateDirective, DropdownPrefixTemplateDirective, DropdownService, DropdownTreePopupComponent, DropdownTreePopupHandlerDirective, dropdownPopupThemeVariants, dropdownSheetSurfaceClasses, readDropdownField } from "@nanahoshi/mona-ui/dropdowns";
8
+ import { MonaI18nService } from "@nanahoshi/mona-ui/i18n";
9
+ import { FIELD_ASSOCIATION_BOUNDARY, createElementControlId, injectEffectiveDisabled, injectLabelAssociation, injectLabelledByText } from "@nanahoshi/mona-ui/internal";
10
+ import { IndicatorIconComponent } from "@nanahoshi/mona-ui/internal/indicator-icon";
11
+ import { TreeService } from "@nanahoshi/mona-ui/internal/tree";
12
+ import { filter } from "rxjs";
13
+ import { twMerge } from "tailwind-merge";
14
+ var DropdownTreeValueTemplateDirective = class DropdownTreeValueTemplateDirective {
15
+ static {
16
+ this.ɵfac = i0.ɵɵngDeclareFactory({
17
+ minVersion: "12.0.0",
18
+ version: "22.2.6",
19
+ ngImport: i0,
20
+ type: DropdownTreeValueTemplateDirective,
21
+ deps: [],
22
+ target: i0.ɵɵFactoryTarget.Directive
23
+ });
24
+ }
25
+ static {
26
+ this.ɵdir = i0.ɵɵngDeclareDirective({
27
+ minVersion: "14.0.0",
28
+ version: "22.2.6",
29
+ type: DropdownTreeValueTemplateDirective,
30
+ isStandalone: true,
31
+ selector: "ng-template[monaDropDownTreeValueTemplate]",
32
+ ngImport: i0
33
+ });
34
+ }
35
+ };
36
+ i0.ɵɵngDeclareClassMetadata({
37
+ minVersion: "12.0.0",
38
+ version: "22.2.6",
39
+ ngImport: i0,
40
+ type: DropdownTreeValueTemplateDirective,
41
+ decorators: [{
42
+ type: Directive,
43
+ args: [{ selector: "ng-template[monaDropDownTreeValueTemplate]" }]
44
+ }]
45
+ });
46
+ const DROPDOWN_TREE_DEFAULT_MESSAGES = { clear: "Clear" };
47
+ var DropdownTreeComponent = class DropdownTreeComponent {
48
+ #destroyRef;
49
+ #dropdownService;
50
+ #hostElementRef;
51
+ #i18n;
52
+ #label;
53
+ #labelledByText;
54
+ #treeService;
55
+ constructor() {
56
+ this.#destroyRef = inject(DestroyRef);
57
+ this.#dropdownService = inject(DropdownService);
58
+ this.#hostElementRef = inject(ElementRef);
59
+ this.#i18n = inject(MonaI18nService);
60
+ this.#label = injectLabelAssociation({
61
+ activate: () => this.focus(),
62
+ ariaDescribedBy: () => this.ariaDescribedBy(),
63
+ ariaLabel: () => this.ariaLabel(),
64
+ ariaLabelledBy: () => this.ariaLabelledBy(),
65
+ focus: () => this.focus()
66
+ });
67
+ this.#labelledByText = injectLabelledByText(() => this.#label.labelledBy() ?? "");
68
+ this.#treeService = inject(TreeService);
69
+ this.activeDescendant = computed(() => {
70
+ const node = this.#treeService.navigatedNode();
71
+ if (!this.expanded() || node === null || this.#treeService.filterableOptions().enabled) return null;
72
+ return this.#treeService.getNodeElementId(node.uid);
73
+ }, ...ngDevMode ? [{ debugName: "activeDescendant" }] : /* istanbul ignore next */ []);
74
+ this.affixClass = computed(() => dropdownListAffixContainerThemeVariants(), ...ngDevMode ? [{ debugName: "affixClass" }] : /* istanbul ignore next */ []);
75
+ this.baseClass = computed(() => {
76
+ const classes = dropdownListInputThemeVariants({
77
+ disabled: this.effectiveDisabled(),
78
+ expanded: this.expanded(),
79
+ hasPrefix: this.prefixTemplate() != null,
80
+ invalid: this.invalidState(),
81
+ rounded: this.rounded(),
82
+ size: this.size()
83
+ });
84
+ return twMerge(classes, this.userClass());
85
+ }, ...ngDevMode ? [{ debugName: "baseClass" }] : /* istanbul ignore next */ []);
86
+ this.clearButtonVisible = computed(() => this.showClearButton() && this.value() != null && !this.loading() && !this.effectiveDisabled() && !this.readonly(), ...ngDevMode ? [{ debugName: "clearButtonVisible" }] : /* istanbul ignore next */ []);
87
+ this.describedBy = this.#label.describedBy;
88
+ this.effectiveAriaLabel = computed(() => this.ariaLabel() || (this.labelledBy() ? "" : this.placeholder()), ...ngDevMode ? [{ debugName: "effectiveAriaLabel" }] : /* istanbul ignore next */ []);
89
+ this.effectiveDisabled = injectEffectiveDisabled(() => this.disabled());
90
+ this.expanded = computed(() => this.#dropdownService.popupRef() !== null, ...ngDevMode ? [{ debugName: "expanded" }] : /* istanbul ignore next */ []);
91
+ this.footerTemplate = contentChild(DropdownFooterTemplateDirective, {
92
+ ...ngDevMode ? { debugName: "footerTemplate" } : /* istanbul ignore next */ {},
93
+ read: TemplateRef
94
+ });
95
+ this.headerTemplate = contentChild(DropdownHeaderTemplateDirective, {
96
+ ...ngDevMode ? { debugName: "headerTemplate" } : /* istanbul ignore next */ {},
97
+ read: TemplateRef
98
+ });
99
+ this.invalidState = computed(() => this.touched() && (this.invalid() || this.required() && this.value() == null), ...ngDevMode ? [{ debugName: "invalidState" }] : /* istanbul ignore next */ []);
100
+ this.itemTemplate = contentChild(DropdownItemTemplateDirective, {
101
+ ...ngDevMode ? { debugName: "itemTemplate" } : /* istanbul ignore next */ {},
102
+ read: TemplateRef
103
+ });
104
+ this.labelledBy = this.#label.labelledBy;
105
+ this.messages = this.#i18n.componentMessages("dropdownTree", DROPDOWN_TREE_DEFAULT_MESSAGES);
106
+ this.noDataTemplate = contentChild(DropdownNoDataTemplateDirective, {
107
+ ...ngDevMode ? { debugName: "noDataTemplate" } : /* istanbul ignore next */ {},
108
+ read: TemplateRef
109
+ });
110
+ this.popupAriaLabel = computed(() => this.ariaLabel() || this.#labelledByText() || this.placeholder(), ...ngDevMode ? [{ debugName: "popupAriaLabel" }] : /* istanbul ignore next */ []);
111
+ this.popupSize = computed(() => this.sheet() ? "large" : this.size() ?? "medium", ...ngDevMode ? [{ debugName: "popupSize" }] : /* istanbul ignore next */ []);
112
+ this.popupSurfaceClass = computed(() => {
113
+ const variantClass = dropdownPopupThemeVariants({
114
+ rounded: this.rounded(),
115
+ size: this.size()
116
+ });
117
+ const heightClass = this.popupHeight() ? "max-h-none" : "";
118
+ const sheetClass = this.sheet() ? dropdownSheetSurfaceClasses : "";
119
+ return twMerge(variantClass, "flex flex-col overflow-hidden", heightClass, sheetClass, this.popupClass());
120
+ }, ...ngDevMode ? [{ debugName: "popupSurfaceClass" }] : /* istanbul ignore next */ []);
121
+ this.popupTemplate = viewChild.required("popupTemplate", ...ngDevMode ? [{ debugName: "popupTemplate" }] : /* istanbul ignore next */ []);
122
+ this.prefixTemplate = contentChild(DropdownPrefixTemplateDirective, {
123
+ ...ngDevMode ? { debugName: "prefixTemplate" } : /* istanbul ignore next */ {},
124
+ read: TemplateRef
125
+ });
126
+ this.selectedDataItem = computed(() => {
127
+ const node = this.selectedNode();
128
+ if (node) return node.data;
129
+ const value = this.value();
130
+ return value != null && !this.valuePrimitive() ? value : null;
131
+ }, ...ngDevMode ? [{ debugName: "selectedDataItem" }] : /* istanbul ignore next */ []);
132
+ this.selectedNode = computed(() => this.#treeService.selectedNodes().firstOrDefault() ?? null, ...ngDevMode ? [{ debugName: "selectedNode" }] : /* istanbul ignore next */ []);
133
+ this.sheet = this.#dropdownService.sheet.asReadonly();
134
+ this.treeId = createElementControlId();
135
+ this.valueContainerClass = computed(() => dropdownListValueContainerThemeVariants({ hasTemplate: this.valueTemplate() != null }), ...ngDevMode ? [{ debugName: "valueContainerClass" }] : /* istanbul ignore next */ []);
136
+ this.valueTemplate = contentChild(DropdownTreeValueTemplateDirective, {
137
+ ...ngDevMode ? { debugName: "valueTemplate" } : /* istanbul ignore next */ {},
138
+ read: TemplateRef
139
+ });
140
+ this.valueText = computed(() => {
141
+ const node = this.selectedNode();
142
+ if (node) return this.#treeService.getNodeText(node);
143
+ const item = this.selectedDataItem();
144
+ if (item == null) return "";
145
+ const text = readDropdownField(item, this.textField());
146
+ return text == null ? "" : String(text);
147
+ }, ...ngDevMode ? [{ debugName: "valueText" }] : /* istanbul ignore next */ []);
148
+ this.adaptiveMode = input("none", ...ngDevMode ? [{ debugName: "adaptiveMode" }] : /* istanbul ignore next */ []);
149
+ this.adaptiveTitle = input("", ...ngDevMode ? [{ debugName: "adaptiveTitle" }] : /* istanbul ignore next */ []);
150
+ this.ariaDescribedBy = input("", {
151
+ ...ngDevMode ? { debugName: "ariaDescribedBy" } : /* istanbul ignore next */ {},
152
+ alias: "aria-describedby"
153
+ });
154
+ this.ariaLabel = input("", {
155
+ ...ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {},
156
+ alias: "aria-label"
157
+ });
158
+ this.ariaLabelledBy = input("", {
159
+ ...ngDevMode ? { debugName: "ariaLabelledBy" } : /* istanbul ignore next */ {},
160
+ alias: "aria-labelledby"
161
+ });
162
+ this.children = input("", ...ngDevMode ? [{ debugName: "children" }] : /* istanbul ignore next */ []);
163
+ this.close = output();
164
+ this.closed = output();
165
+ this.data = input([], ...ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []);
166
+ this.disabled = input(false, {
167
+ ...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
168
+ transform: booleanAttribute
169
+ });
170
+ this.hasChildren = input(null, ...ngDevMode ? [{ debugName: "hasChildren" }] : /* istanbul ignore next */ []);
171
+ this.idField = input("", ...ngDevMode ? [{ debugName: "idField" }] : /* istanbul ignore next */ []);
172
+ this.invalid = input(false, {
173
+ ...ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {},
174
+ transform: booleanAttribute
175
+ });
176
+ this.itemDisabled = input(...ngDevMode ? [void 0, { debugName: "itemDisabled" }] : /* istanbul ignore next */ []);
177
+ this.loading = input(false, {
178
+ ...ngDevMode ? { debugName: "loading" } : /* istanbul ignore next */ {},
179
+ transform: booleanAttribute
180
+ });
181
+ this.mode = input("hierarchical", ...ngDevMode ? [{ debugName: "mode" }] : /* istanbul ignore next */ []);
182
+ this.open = output();
183
+ this.opened = output();
184
+ this.parentIdField = input("", ...ngDevMode ? [{ debugName: "parentIdField" }] : /* istanbul ignore next */ []);
185
+ this.placeholder = input("", ...ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []);
186
+ this.popupClass = input("", ...ngDevMode ? [{ debugName: "popupClass" }] : /* istanbul ignore next */ []);
187
+ this.popupHeight = input(null, ...ngDevMode ? [{ debugName: "popupHeight" }] : /* istanbul ignore next */ []);
188
+ this.popupWidth = input(null, ...ngDevMode ? [{ debugName: "popupWidth" }] : /* istanbul ignore next */ []);
189
+ this.readonly = input(false, {
190
+ ...ngDevMode ? { debugName: "readonly" } : /* istanbul ignore next */ {},
191
+ transform: booleanAttribute
192
+ });
193
+ this.required = input(false, {
194
+ ...ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {},
195
+ transform: booleanAttribute
196
+ });
197
+ this.rounded = input("medium", ...ngDevMode ? [{ debugName: "rounded" }] : /* istanbul ignore next */ []);
198
+ this.showClearButton = input(false, {
199
+ ...ngDevMode ? { debugName: "showClearButton" } : /* istanbul ignore next */ {},
200
+ transform: booleanAttribute
201
+ });
202
+ this.size = input("medium", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
203
+ this.textField = input(...ngDevMode ? [void 0, { debugName: "textField" }] : /* istanbul ignore next */ []);
204
+ this.touch = output();
205
+ this.touched = input(false, {
206
+ ...ngDevMode ? { debugName: "touched" } : /* istanbul ignore next */ {},
207
+ transform: booleanAttribute
208
+ });
209
+ this.userClass = input("", {
210
+ ...ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {},
211
+ alias: "class"
212
+ });
213
+ this.value = model(null, ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
214
+ this.valueField = input(...ngDevMode ? [void 0, { debugName: "valueField" }] : /* istanbul ignore next */ []);
215
+ this.valuePrimitive = input(false, {
216
+ ...ngDevMode ? { debugName: "valuePrimitive" } : /* istanbul ignore next */ {},
217
+ transform: booleanAttribute
218
+ });
219
+ const treeService = this.#treeService;
220
+ treeService.setSelectableOptions({
221
+ childrenOnly: false,
222
+ enabled: true,
223
+ mode: "single",
224
+ toggleable: false
225
+ });
226
+ treeService.setExpandableOptions({ enabled: true });
227
+ effect(() => {
228
+ const textField = this.textField();
229
+ untracked(() => treeService.setTextField(textField ?? ""));
230
+ });
231
+ effect(() => {
232
+ const mode = this.mode();
233
+ const children = this.children();
234
+ const hasChildren = this.hasChildren();
235
+ const idField = this.idField();
236
+ const parentIdField = this.parentIdField();
237
+ const data = this.data();
238
+ untracked(() => {
239
+ if (mode === "flat") {
240
+ treeService.setFlatIdField(idField);
241
+ treeService.setFlatParentIdField(parentIdField);
242
+ } else {
243
+ treeService.setChildrenSelector(children);
244
+ treeService.setHasChildrenPredicate(hasChildren);
245
+ }
246
+ treeService.setDataStructure(mode);
247
+ treeService.setData(data);
248
+ });
249
+ });
250
+ effect(() => {
251
+ const itemDisabled = this.itemDisabled();
252
+ untracked(() => {
253
+ treeService.setDisableBy(itemDisabled ? (item) => Boolean(readDropdownField(item, itemDisabled)) : null);
254
+ treeService.setDisableOptions({
255
+ disableChildren: true,
256
+ enabled: itemDisabled != null
257
+ });
258
+ treeService.setDisabledKeys(itemDisabled ? [true] : []);
259
+ });
260
+ });
261
+ effect(() => {
262
+ const value = this.value();
263
+ const valueField = this.valueField();
264
+ const valuePrimitive = this.valuePrimitive();
265
+ untracked(() => {
266
+ treeService.setSelectBy(valueField ?? null);
267
+ if (value == null) treeService.setSelectedKeys([]);
268
+ else if (valuePrimitive) treeService.setSelectedKeys([value]);
269
+ else treeService.setSelectedDataItems([value]);
270
+ });
271
+ });
272
+ effect(() => {
273
+ const popupTemplate = this.popupTemplate();
274
+ untracked(() => this.#dropdownService.popupTemplate.set(popupTemplate));
275
+ });
276
+ treeService.nodeClick$.pipe(takeUntilDestroyed()).subscribe((event) => {
277
+ event.preventDefault();
278
+ const node = treeService.getNodeByUid(event.nodeItem.uid);
279
+ if (node) this.selectNode(node);
280
+ });
281
+ afterNextRender({ read: () => this.setSubscriptions() });
282
+ }
283
+ focus(options) {
284
+ this.#hostElementRef.nativeElement.focus(options);
285
+ }
286
+ onFocusOut(event) {
287
+ if (this.#destroyRef.destroyed) return;
288
+ const nextTarget = event.relatedTarget;
289
+ if (nextTarget instanceof Node) {
290
+ const popupElement = this.#dropdownService.popupRef()?.overlayRef.overlayElement;
291
+ if (this.#hostElementRef.nativeElement.contains(nextTarget) || popupElement?.contains(nextTarget)) return;
292
+ }
293
+ this.touch.emit();
294
+ }
295
+ onValueClear(event) {
296
+ if (this.effectiveDisabled() || this.readonly() || event instanceof KeyboardEvent && event.key !== "Enter" && event.key !== " ") return;
297
+ event.stopImmediatePropagation();
298
+ event.preventDefault();
299
+ this.updateValue(null);
300
+ this.focus();
301
+ }
302
+ getControlValue(dataItem) {
303
+ return this.valuePrimitive() ? readDropdownField(dataItem, this.valueField()) : dataItem;
304
+ }
305
+ selectNode(node) {
306
+ if (this.#treeService.isDisabled(node)) return;
307
+ this.#treeService.navigatedNode.set(node);
308
+ this.updateValue(this.getControlValue(node.data));
309
+ this.#dropdownService.popupRef()?.close();
310
+ }
311
+ setSubscriptions() {
312
+ this.#dropdownService.keydown$.pipe(takeUntilDestroyed(this.#destroyRef), filter((event) => (event.key === "Enter" || event.key === " ") && this.expanded())).subscribe(() => {
313
+ const node = this.#treeService.navigatedNode();
314
+ if (node) this.selectNode(node);
315
+ });
316
+ this.#dropdownService.popupCloseComplete$.pipe(takeUntilDestroyed(this.#destroyRef)).subscribe(() => {
317
+ if (this.#dropdownService.focusCanReturn()) window.setTimeout(() => this.focus());
318
+ else if (!this.#destroyRef.destroyed) this.touch.emit();
319
+ });
320
+ }
321
+ updateValue(value) {
322
+ if (this.value() !== value) this.value.set(value);
323
+ }
324
+ static {
325
+ this.ɵfac = i0.ɵɵngDeclareFactory({
326
+ minVersion: "12.0.0",
327
+ version: "22.2.6",
328
+ ngImport: i0,
329
+ type: DropdownTreeComponent,
330
+ deps: [],
331
+ target: i0.ɵɵFactoryTarget.Component
332
+ });
333
+ }
334
+ static {
335
+ this.ɵcmp = i0.ɵɵngDeclareComponent({
336
+ minVersion: "17.0.0",
337
+ version: "22.2.6",
338
+ type: DropdownTreeComponent,
339
+ isStandalone: true,
340
+ selector: "mona-dropdown-tree",
341
+ inputs: {
342
+ adaptiveMode: {
343
+ classPropertyName: "adaptiveMode",
344
+ publicName: "adaptiveMode",
345
+ isSignal: true,
346
+ isRequired: false,
347
+ transformFunction: null
348
+ },
349
+ adaptiveTitle: {
350
+ classPropertyName: "adaptiveTitle",
351
+ publicName: "adaptiveTitle",
352
+ isSignal: true,
353
+ isRequired: false,
354
+ transformFunction: null
355
+ },
356
+ ariaDescribedBy: {
357
+ classPropertyName: "ariaDescribedBy",
358
+ publicName: "aria-describedby",
359
+ isSignal: true,
360
+ isRequired: false,
361
+ transformFunction: null
362
+ },
363
+ ariaLabel: {
364
+ classPropertyName: "ariaLabel",
365
+ publicName: "aria-label",
366
+ isSignal: true,
367
+ isRequired: false,
368
+ transformFunction: null
369
+ },
370
+ ariaLabelledBy: {
371
+ classPropertyName: "ariaLabelledBy",
372
+ publicName: "aria-labelledby",
373
+ isSignal: true,
374
+ isRequired: false,
375
+ transformFunction: null
376
+ },
377
+ children: {
378
+ classPropertyName: "children",
379
+ publicName: "children",
380
+ isSignal: true,
381
+ isRequired: false,
382
+ transformFunction: null
383
+ },
384
+ data: {
385
+ classPropertyName: "data",
386
+ publicName: "data",
387
+ isSignal: true,
388
+ isRequired: false,
389
+ transformFunction: null
390
+ },
391
+ disabled: {
392
+ classPropertyName: "disabled",
393
+ publicName: "disabled",
394
+ isSignal: true,
395
+ isRequired: false,
396
+ transformFunction: null
397
+ },
398
+ hasChildren: {
399
+ classPropertyName: "hasChildren",
400
+ publicName: "hasChildren",
401
+ isSignal: true,
402
+ isRequired: false,
403
+ transformFunction: null
404
+ },
405
+ idField: {
406
+ classPropertyName: "idField",
407
+ publicName: "idField",
408
+ isSignal: true,
409
+ isRequired: false,
410
+ transformFunction: null
411
+ },
412
+ invalid: {
413
+ classPropertyName: "invalid",
414
+ publicName: "invalid",
415
+ isSignal: true,
416
+ isRequired: false,
417
+ transformFunction: null
418
+ },
419
+ itemDisabled: {
420
+ classPropertyName: "itemDisabled",
421
+ publicName: "itemDisabled",
422
+ isSignal: true,
423
+ isRequired: false,
424
+ transformFunction: null
425
+ },
426
+ loading: {
427
+ classPropertyName: "loading",
428
+ publicName: "loading",
429
+ isSignal: true,
430
+ isRequired: false,
431
+ transformFunction: null
432
+ },
433
+ mode: {
434
+ classPropertyName: "mode",
435
+ publicName: "mode",
436
+ isSignal: true,
437
+ isRequired: false,
438
+ transformFunction: null
439
+ },
440
+ parentIdField: {
441
+ classPropertyName: "parentIdField",
442
+ publicName: "parentIdField",
443
+ isSignal: true,
444
+ isRequired: false,
445
+ transformFunction: null
446
+ },
447
+ placeholder: {
448
+ classPropertyName: "placeholder",
449
+ publicName: "placeholder",
450
+ isSignal: true,
451
+ isRequired: false,
452
+ transformFunction: null
453
+ },
454
+ popupClass: {
455
+ classPropertyName: "popupClass",
456
+ publicName: "popupClass",
457
+ isSignal: true,
458
+ isRequired: false,
459
+ transformFunction: null
460
+ },
461
+ popupHeight: {
462
+ classPropertyName: "popupHeight",
463
+ publicName: "popupHeight",
464
+ isSignal: true,
465
+ isRequired: false,
466
+ transformFunction: null
467
+ },
468
+ popupWidth: {
469
+ classPropertyName: "popupWidth",
470
+ publicName: "popupWidth",
471
+ isSignal: true,
472
+ isRequired: false,
473
+ transformFunction: null
474
+ },
475
+ readonly: {
476
+ classPropertyName: "readonly",
477
+ publicName: "readonly",
478
+ isSignal: true,
479
+ isRequired: false,
480
+ transformFunction: null
481
+ },
482
+ required: {
483
+ classPropertyName: "required",
484
+ publicName: "required",
485
+ isSignal: true,
486
+ isRequired: false,
487
+ transformFunction: null
488
+ },
489
+ rounded: {
490
+ classPropertyName: "rounded",
491
+ publicName: "rounded",
492
+ isSignal: true,
493
+ isRequired: false,
494
+ transformFunction: null
495
+ },
496
+ showClearButton: {
497
+ classPropertyName: "showClearButton",
498
+ publicName: "showClearButton",
499
+ isSignal: true,
500
+ isRequired: false,
501
+ transformFunction: null
502
+ },
503
+ size: {
504
+ classPropertyName: "size",
505
+ publicName: "size",
506
+ isSignal: true,
507
+ isRequired: false,
508
+ transformFunction: null
509
+ },
510
+ textField: {
511
+ classPropertyName: "textField",
512
+ publicName: "textField",
513
+ isSignal: true,
514
+ isRequired: false,
515
+ transformFunction: null
516
+ },
517
+ touched: {
518
+ classPropertyName: "touched",
519
+ publicName: "touched",
520
+ isSignal: true,
521
+ isRequired: false,
522
+ transformFunction: null
523
+ },
524
+ userClass: {
525
+ classPropertyName: "userClass",
526
+ publicName: "class",
527
+ isSignal: true,
528
+ isRequired: false,
529
+ transformFunction: null
530
+ },
531
+ value: {
532
+ classPropertyName: "value",
533
+ publicName: "value",
534
+ isSignal: true,
535
+ isRequired: false,
536
+ transformFunction: null
537
+ },
538
+ valueField: {
539
+ classPropertyName: "valueField",
540
+ publicName: "valueField",
541
+ isSignal: true,
542
+ isRequired: false,
543
+ transformFunction: null
544
+ },
545
+ valuePrimitive: {
546
+ classPropertyName: "valuePrimitive",
547
+ publicName: "valuePrimitive",
548
+ isSignal: true,
549
+ isRequired: false,
550
+ transformFunction: null
551
+ }
552
+ },
553
+ outputs: {
554
+ close: "close",
555
+ closed: "closed",
556
+ open: "open",
557
+ opened: "opened",
558
+ touch: "touch",
559
+ value: "valueChange"
560
+ },
561
+ host: {
562
+ listeners: { "focusout": "onFocusOut($event)" },
563
+ properties: {
564
+ "attr.aria-activedescendant": "activeDescendant()",
565
+ "attr.aria-busy": "loading() ? 'true' : undefined",
566
+ "attr.aria-controls": "treeId",
567
+ "attr.aria-describedby": "describedBy()",
568
+ "attr.aria-disabled": "effectiveDisabled() ? true : undefined",
569
+ "attr.aria-expanded": "expanded()",
570
+ "attr.aria-haspopup": "'tree'",
571
+ "attr.aria-invalid": "invalidState() ? true : undefined",
572
+ "attr.aria-label": "effectiveAriaLabel() || null",
573
+ "attr.aria-labelledby": "labelledBy()",
574
+ "attr.aria-readonly": "readonly() ? true : undefined",
575
+ "attr.aria-required": "required() ? true : undefined",
576
+ "attr.data-disabled": "effectiveDisabled() || null",
577
+ "attr.data-invalid": "invalidState() || null",
578
+ "attr.data-readonly": "readonly() || null",
579
+ "attr.role": "'combobox'",
580
+ "attr.tabindex": "effectiveDisabled() ? null : 0",
581
+ "class": "baseClass()"
582
+ }
583
+ },
584
+ providers: [
585
+ DropdownService,
586
+ TreeService,
587
+ {
588
+ provide: DROPDOWN_POPUP_INPUT_TOKEN,
589
+ useExisting: forwardRef(() => DropdownTreeComponent)
590
+ }
591
+ ],
592
+ queries: [
593
+ {
594
+ propertyName: "footerTemplate",
595
+ first: true,
596
+ predicate: DropdownFooterTemplateDirective,
597
+ descendants: true,
598
+ read: TemplateRef,
599
+ isSignal: true
600
+ },
601
+ {
602
+ propertyName: "headerTemplate",
603
+ first: true,
604
+ predicate: DropdownHeaderTemplateDirective,
605
+ descendants: true,
606
+ read: TemplateRef,
607
+ isSignal: true
608
+ },
609
+ {
610
+ propertyName: "itemTemplate",
611
+ first: true,
612
+ predicate: DropdownItemTemplateDirective,
613
+ descendants: true,
614
+ read: TemplateRef,
615
+ isSignal: true
616
+ },
617
+ {
618
+ propertyName: "noDataTemplate",
619
+ first: true,
620
+ predicate: DropdownNoDataTemplateDirective,
621
+ descendants: true,
622
+ read: TemplateRef,
623
+ isSignal: true
624
+ },
625
+ {
626
+ propertyName: "prefixTemplate",
627
+ first: true,
628
+ predicate: DropdownPrefixTemplateDirective,
629
+ descendants: true,
630
+ read: TemplateRef,
631
+ isSignal: true
632
+ },
633
+ {
634
+ propertyName: "valueTemplate",
635
+ first: true,
636
+ predicate: DropdownTreeValueTemplateDirective,
637
+ descendants: true,
638
+ read: TemplateRef,
639
+ isSignal: true
640
+ }
641
+ ],
642
+ viewQueries: [{
643
+ propertyName: "popupTemplate",
644
+ first: true,
645
+ predicate: ["popupTemplate"],
646
+ descendants: true,
647
+ isSignal: true
648
+ }],
649
+ hostDirectives: [{ directive: i1.DropdownTreePopupHandlerDirective }],
650
+ ngImport: i0,
651
+ template: "@if (prefixTemplate()) {\n <span [class]=\"affixClass()\">\n <ng-container [ngTemplateOutlet]=\"prefixTemplate()\"></ng-container>\n </span>\n}\n\n<span [class]=\"valueContainerClass()\">\n @if (!valueTemplate()) {\n <span>\n @if (selectedDataItem() !== null) {\n <span>{{ valueText() }}</span>\n } @else {\n <span>{{ placeholder() }}</span>\n }\n </span>\n } @else {\n <ng-container\n [ngTemplateOutlet]=\"valueTemplate()\"\n [ngTemplateOutletContext]=\"{ $implicit: selectedDataItem() }\"></ng-container>\n }\n</span>\n\n@if (clearButtonVisible()) {\n <mona-indicator-icon\n preset=\"clear\"\n [interactive]=\"true\"\n [label]=\"messages().clear\"\n (activate)=\"onValueClear($event)\"></mona-indicator-icon>\n}\n\n@if (loading()) {\n <mona-indicator-icon preset=\"loading\" [size]=\"12\"></mona-indicator-icon>\n}\n\n<mona-indicator-icon preset=\"dropdown\" [size]=\"18\"></mona-indicator-icon>\n\n<ng-template #popupTemplate>\n <mona-dropdown-tree-popup\n [treeId]=\"treeId\"\n [ariaLabel]=\"popupAriaLabel()\"\n [ariaLabelledBy]=\"labelledBy() ?? ''\"\n [popupClass]=\"popupSurfaceClass()\"\n [size]=\"popupSize()\"\n [headerTemplate]=\"headerTemplate()\"\n [footerTemplate]=\"footerTemplate()\"\n [itemTemplate]=\"itemTemplate()\"\n [noDataTemplate]=\"noDataTemplate()\"></mona-dropdown-tree-popup>\n</ng-template>\n",
652
+ dependencies: [
653
+ {
654
+ kind: "component",
655
+ type: DropdownTreePopupComponent,
656
+ selector: "mona-dropdown-tree-popup",
657
+ inputs: [
658
+ "ariaLabel",
659
+ "ariaLabelledBy",
660
+ "footerTemplate",
661
+ "headerTemplate",
662
+ "itemTemplate",
663
+ "noDataTemplate",
664
+ "popupClass",
665
+ "size",
666
+ "treeId"
667
+ ]
668
+ },
669
+ {
670
+ kind: "component",
671
+ type: IndicatorIconComponent,
672
+ selector: "mona-indicator-icon",
673
+ inputs: [
674
+ "icon",
675
+ "interactive",
676
+ "label",
677
+ "preset",
678
+ "size",
679
+ "class"
680
+ ],
681
+ outputs: ["activate"]
682
+ },
683
+ {
684
+ kind: "directive",
685
+ type: NgTemplateOutlet,
686
+ selector: "[ngTemplateOutlet]",
687
+ inputs: [
688
+ "ngTemplateOutletContext",
689
+ "ngTemplateOutlet",
690
+ "ngTemplateOutletInjector"
691
+ ]
692
+ }
693
+ ],
694
+ viewProviders: [...FIELD_ASSOCIATION_BOUNDARY]
695
+ });
696
+ }
697
+ };
698
+ i0.ɵɵngDeclareClassMetadata({
699
+ minVersion: "12.0.0",
700
+ version: "22.2.6",
701
+ ngImport: i0,
702
+ type: DropdownTreeComponent,
703
+ decorators: [{
704
+ type: Component,
705
+ args: [{
706
+ selector: "mona-dropdown-tree",
707
+ hostDirectives: [DropdownTreePopupHandlerDirective],
708
+ providers: [
709
+ DropdownService,
710
+ TreeService,
711
+ {
712
+ provide: DROPDOWN_POPUP_INPUT_TOKEN,
713
+ useExisting: forwardRef(() => DropdownTreeComponent)
714
+ }
715
+ ],
716
+ imports: [
717
+ DropdownTreePopupComponent,
718
+ IndicatorIconComponent,
719
+ NgTemplateOutlet
720
+ ],
721
+ viewProviders: [...FIELD_ASSOCIATION_BOUNDARY],
722
+ host: {
723
+ "[attr.aria-activedescendant]": "activeDescendant()",
724
+ "[attr.aria-busy]": "loading() ? 'true' : undefined",
725
+ "[attr.aria-controls]": "treeId",
726
+ "[attr.aria-describedby]": "describedBy()",
727
+ "[attr.aria-disabled]": "effectiveDisabled() ? true : undefined",
728
+ "[attr.aria-expanded]": "expanded()",
729
+ "[attr.aria-haspopup]": "'tree'",
730
+ "[attr.aria-invalid]": "invalidState() ? true : undefined",
731
+ "[attr.aria-label]": "effectiveAriaLabel() || null",
732
+ "[attr.aria-labelledby]": "labelledBy()",
733
+ "[attr.aria-readonly]": "readonly() ? true : undefined",
734
+ "[attr.aria-required]": "required() ? true : undefined",
735
+ "[attr.data-disabled]": "effectiveDisabled() || null",
736
+ "[attr.data-invalid]": "invalidState() || null",
737
+ "[attr.data-readonly]": "readonly() || null",
738
+ "[attr.role]": "'combobox'",
739
+ "[attr.tabindex]": "effectiveDisabled() ? null : 0",
740
+ "[class]": "baseClass()",
741
+ "(focusout)": "onFocusOut($event)"
742
+ },
743
+ template: "@if (prefixTemplate()) {\n <span [class]=\"affixClass()\">\n <ng-container [ngTemplateOutlet]=\"prefixTemplate()\"></ng-container>\n </span>\n}\n\n<span [class]=\"valueContainerClass()\">\n @if (!valueTemplate()) {\n <span>\n @if (selectedDataItem() !== null) {\n <span>{{ valueText() }}</span>\n } @else {\n <span>{{ placeholder() }}</span>\n }\n </span>\n } @else {\n <ng-container\n [ngTemplateOutlet]=\"valueTemplate()\"\n [ngTemplateOutletContext]=\"{ $implicit: selectedDataItem() }\"></ng-container>\n }\n</span>\n\n@if (clearButtonVisible()) {\n <mona-indicator-icon\n preset=\"clear\"\n [interactive]=\"true\"\n [label]=\"messages().clear\"\n (activate)=\"onValueClear($event)\"></mona-indicator-icon>\n}\n\n@if (loading()) {\n <mona-indicator-icon preset=\"loading\" [size]=\"12\"></mona-indicator-icon>\n}\n\n<mona-indicator-icon preset=\"dropdown\" [size]=\"18\"></mona-indicator-icon>\n\n<ng-template #popupTemplate>\n <mona-dropdown-tree-popup\n [treeId]=\"treeId\"\n [ariaLabel]=\"popupAriaLabel()\"\n [ariaLabelledBy]=\"labelledBy() ?? ''\"\n [popupClass]=\"popupSurfaceClass()\"\n [size]=\"popupSize()\"\n [headerTemplate]=\"headerTemplate()\"\n [footerTemplate]=\"footerTemplate()\"\n [itemTemplate]=\"itemTemplate()\"\n [noDataTemplate]=\"noDataTemplate()\"></mona-dropdown-tree-popup>\n</ng-template>\n"
744
+ }]
745
+ }],
746
+ ctorParameters: () => [],
747
+ propDecorators: {
748
+ footerTemplate: [{
749
+ type: i0.ContentChild,
750
+ args: [i0.forwardRef(() => DropdownFooterTemplateDirective), {
751
+ read: TemplateRef,
752
+ isSignal: true
753
+ }]
754
+ }],
755
+ headerTemplate: [{
756
+ type: i0.ContentChild,
757
+ args: [i0.forwardRef(() => DropdownHeaderTemplateDirective), {
758
+ read: TemplateRef,
759
+ isSignal: true
760
+ }]
761
+ }],
762
+ itemTemplate: [{
763
+ type: i0.ContentChild,
764
+ args: [i0.forwardRef(() => DropdownItemTemplateDirective), {
765
+ read: TemplateRef,
766
+ isSignal: true
767
+ }]
768
+ }],
769
+ noDataTemplate: [{
770
+ type: i0.ContentChild,
771
+ args: [i0.forwardRef(() => DropdownNoDataTemplateDirective), {
772
+ read: TemplateRef,
773
+ isSignal: true
774
+ }]
775
+ }],
776
+ popupTemplate: [{
777
+ type: i0.ViewChild,
778
+ args: ["popupTemplate", { isSignal: true }]
779
+ }],
780
+ prefixTemplate: [{
781
+ type: i0.ContentChild,
782
+ args: [i0.forwardRef(() => DropdownPrefixTemplateDirective), {
783
+ read: TemplateRef,
784
+ isSignal: true
785
+ }]
786
+ }],
787
+ valueTemplate: [{
788
+ type: i0.ContentChild,
789
+ args: [i0.forwardRef(() => DropdownTreeValueTemplateDirective), {
790
+ read: TemplateRef,
791
+ isSignal: true
792
+ }]
793
+ }],
794
+ adaptiveMode: [{
795
+ type: i0.Input,
796
+ args: [{
797
+ isSignal: true,
798
+ alias: "adaptiveMode",
799
+ required: false
800
+ }]
801
+ }],
802
+ adaptiveTitle: [{
803
+ type: i0.Input,
804
+ args: [{
805
+ isSignal: true,
806
+ alias: "adaptiveTitle",
807
+ required: false
808
+ }]
809
+ }],
810
+ ariaDescribedBy: [{
811
+ type: i0.Input,
812
+ args: [{
813
+ isSignal: true,
814
+ alias: "aria-describedby",
815
+ required: false
816
+ }]
817
+ }],
818
+ ariaLabel: [{
819
+ type: i0.Input,
820
+ args: [{
821
+ isSignal: true,
822
+ alias: "aria-label",
823
+ required: false
824
+ }]
825
+ }],
826
+ ariaLabelledBy: [{
827
+ type: i0.Input,
828
+ args: [{
829
+ isSignal: true,
830
+ alias: "aria-labelledby",
831
+ required: false
832
+ }]
833
+ }],
834
+ children: [{
835
+ type: i0.Input,
836
+ args: [{
837
+ isSignal: true,
838
+ alias: "children",
839
+ required: false
840
+ }]
841
+ }],
842
+ close: [{
843
+ type: i0.Output,
844
+ args: ["close"]
845
+ }],
846
+ closed: [{
847
+ type: i0.Output,
848
+ args: ["closed"]
849
+ }],
850
+ data: [{
851
+ type: i0.Input,
852
+ args: [{
853
+ isSignal: true,
854
+ alias: "data",
855
+ required: false
856
+ }]
857
+ }],
858
+ disabled: [{
859
+ type: i0.Input,
860
+ args: [{
861
+ isSignal: true,
862
+ alias: "disabled",
863
+ required: false
864
+ }]
865
+ }],
866
+ hasChildren: [{
867
+ type: i0.Input,
868
+ args: [{
869
+ isSignal: true,
870
+ alias: "hasChildren",
871
+ required: false
872
+ }]
873
+ }],
874
+ idField: [{
875
+ type: i0.Input,
876
+ args: [{
877
+ isSignal: true,
878
+ alias: "idField",
879
+ required: false
880
+ }]
881
+ }],
882
+ invalid: [{
883
+ type: i0.Input,
884
+ args: [{
885
+ isSignal: true,
886
+ alias: "invalid",
887
+ required: false
888
+ }]
889
+ }],
890
+ itemDisabled: [{
891
+ type: i0.Input,
892
+ args: [{
893
+ isSignal: true,
894
+ alias: "itemDisabled",
895
+ required: false
896
+ }]
897
+ }],
898
+ loading: [{
899
+ type: i0.Input,
900
+ args: [{
901
+ isSignal: true,
902
+ alias: "loading",
903
+ required: false
904
+ }]
905
+ }],
906
+ mode: [{
907
+ type: i0.Input,
908
+ args: [{
909
+ isSignal: true,
910
+ alias: "mode",
911
+ required: false
912
+ }]
913
+ }],
914
+ open: [{
915
+ type: i0.Output,
916
+ args: ["open"]
917
+ }],
918
+ opened: [{
919
+ type: i0.Output,
920
+ args: ["opened"]
921
+ }],
922
+ parentIdField: [{
923
+ type: i0.Input,
924
+ args: [{
925
+ isSignal: true,
926
+ alias: "parentIdField",
927
+ required: false
928
+ }]
929
+ }],
930
+ placeholder: [{
931
+ type: i0.Input,
932
+ args: [{
933
+ isSignal: true,
934
+ alias: "placeholder",
935
+ required: false
936
+ }]
937
+ }],
938
+ popupClass: [{
939
+ type: i0.Input,
940
+ args: [{
941
+ isSignal: true,
942
+ alias: "popupClass",
943
+ required: false
944
+ }]
945
+ }],
946
+ popupHeight: [{
947
+ type: i0.Input,
948
+ args: [{
949
+ isSignal: true,
950
+ alias: "popupHeight",
951
+ required: false
952
+ }]
953
+ }],
954
+ popupWidth: [{
955
+ type: i0.Input,
956
+ args: [{
957
+ isSignal: true,
958
+ alias: "popupWidth",
959
+ required: false
960
+ }]
961
+ }],
962
+ readonly: [{
963
+ type: i0.Input,
964
+ args: [{
965
+ isSignal: true,
966
+ alias: "readonly",
967
+ required: false
968
+ }]
969
+ }],
970
+ required: [{
971
+ type: i0.Input,
972
+ args: [{
973
+ isSignal: true,
974
+ alias: "required",
975
+ required: false
976
+ }]
977
+ }],
978
+ rounded: [{
979
+ type: i0.Input,
980
+ args: [{
981
+ isSignal: true,
982
+ alias: "rounded",
983
+ required: false
984
+ }]
985
+ }],
986
+ showClearButton: [{
987
+ type: i0.Input,
988
+ args: [{
989
+ isSignal: true,
990
+ alias: "showClearButton",
991
+ required: false
992
+ }]
993
+ }],
994
+ size: [{
995
+ type: i0.Input,
996
+ args: [{
997
+ isSignal: true,
998
+ alias: "size",
999
+ required: false
1000
+ }]
1001
+ }],
1002
+ textField: [{
1003
+ type: i0.Input,
1004
+ args: [{
1005
+ isSignal: true,
1006
+ alias: "textField",
1007
+ required: false
1008
+ }]
1009
+ }],
1010
+ touch: [{
1011
+ type: i0.Output,
1012
+ args: ["touch"]
1013
+ }],
1014
+ touched: [{
1015
+ type: i0.Input,
1016
+ args: [{
1017
+ isSignal: true,
1018
+ alias: "touched",
1019
+ required: false
1020
+ }]
1021
+ }],
1022
+ userClass: [{
1023
+ type: i0.Input,
1024
+ args: [{
1025
+ isSignal: true,
1026
+ alias: "class",
1027
+ required: false
1028
+ }]
1029
+ }],
1030
+ value: [{
1031
+ type: i0.Input,
1032
+ args: [{
1033
+ isSignal: true,
1034
+ alias: "value",
1035
+ required: false
1036
+ }]
1037
+ }, {
1038
+ type: i0.Output,
1039
+ args: ["valueChange"]
1040
+ }],
1041
+ valueField: [{
1042
+ type: i0.Input,
1043
+ args: [{
1044
+ isSignal: true,
1045
+ alias: "valueField",
1046
+ required: false
1047
+ }]
1048
+ }],
1049
+ valuePrimitive: [{
1050
+ type: i0.Input,
1051
+ args: [{
1052
+ isSignal: true,
1053
+ alias: "valuePrimitive",
1054
+ required: false
1055
+ }]
1056
+ }]
1057
+ }
1058
+ });
1059
+ export { DROPDOWN_TREE_DEFAULT_MESSAGES, DropdownTreeComponent, DropdownTreeValueTemplateDirective };
1060
+
1061
+ //# sourceMappingURL=nanahoshi-mona-ui-dropdown-tree.mjs.map