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