@agorapulse/ui-components 22.7.1-beta.1 → 22.7.3
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/agorapulse-ui-components-22.7.3.tgz +0 -0
- package/fesm2022/agorapulse-ui-components-button.mjs +2 -2
- package/fesm2022/agorapulse-ui-components-button.mjs.map +1 -1
- package/fesm2022/agorapulse-ui-components-i18n.mjs +0 -7
- package/fesm2022/agorapulse-ui-components-i18n.mjs.map +1 -1
- package/fesm2022/agorapulse-ui-components-selection-dropdown.mjs +56 -65
- package/fesm2022/agorapulse-ui-components-selection-dropdown.mjs.map +1 -1
- package/package.json +1 -1
- package/types/agorapulse-ui-components-i18n.d.ts +0 -7
- package/types/agorapulse-ui-components-selection-dropdown.d.ts +35 -44
- package/agorapulse-ui-components-22.7.1-beta.1.tgz +0 -0
|
@@ -3,7 +3,6 @@ import { inject, ElementRef, input, HostListener, Directive, viewChild, viewChil
|
|
|
3
3
|
import { CheckboxComponent } from '@agorapulse/ui-components/checkbox';
|
|
4
4
|
import { DropdownOptionDirective } from '@agorapulse/ui-components/dropdown-base';
|
|
5
5
|
import { DropdownPanelComponent, DropdownContentDirective } from '@agorapulse/ui-components/dropdown-panel';
|
|
6
|
-
import { injectTranslate, injectResolveTexts } from '@agorapulse/ui-components/i18n';
|
|
7
6
|
import { InputSearchComponent } from '@agorapulse/ui-components/input-search';
|
|
8
7
|
import { UI_COMPONENTS_SYMBOLS } from '@agorapulse/ui-components/providers';
|
|
9
8
|
import { DropdownItemMultipleOneLineComponent, DropdownItemSingleOneLineComponent } from '@agorapulse/ui-components/select';
|
|
@@ -71,33 +70,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
|
|
|
71
70
|
|
|
72
71
|
/** The only keys a search field hands to the list: Home and End belong to the caret, not the options. */
|
|
73
72
|
const NAVIGATION_FROM_SEARCH = new Set(['ArrowUp', 'ArrowDown']);
|
|
74
|
-
const ITEM_ROLES = {
|
|
75
|
-
label: null,
|
|
76
|
-
disabledTooltip: null,
|
|
77
|
-
badge: null,
|
|
78
|
-
symbolTooltip: null,
|
|
79
|
-
group: null,
|
|
80
|
-
};
|
|
81
|
-
const ROLES = {
|
|
82
|
-
title: null,
|
|
83
|
-
ariaLabel: null,
|
|
84
|
-
headerButton: null,
|
|
85
|
-
footerButton: null,
|
|
86
|
-
searchPlaceholder: 'ui-components.search.placeholder',
|
|
87
|
-
noResults: 'ui-components.search.no-results',
|
|
88
|
-
selectedSection: 'ui-components.selection.selected-section',
|
|
89
|
-
optionsSection: 'ui-components.selection.options-section',
|
|
90
|
-
selectAll: 'ui-components.selection.select-all',
|
|
91
|
-
};
|
|
92
73
|
/**
|
|
93
74
|
* Rebuilds items into one ordered list: standalone items and groups appear in the order their first
|
|
94
75
|
* item is encountered; later items of an already-seen group join that existing group entry.
|
|
95
76
|
*/
|
|
96
|
-
function inEncounterOrder(items
|
|
77
|
+
function inEncounterOrder(items) {
|
|
97
78
|
const entries = [];
|
|
98
79
|
const groupsByLabel = new Map();
|
|
99
80
|
for (const item of items) {
|
|
100
|
-
const label =
|
|
81
|
+
const label = item.groupLabel;
|
|
101
82
|
if (!label) {
|
|
102
83
|
entries.push({ kind: 'item', item });
|
|
103
84
|
continue;
|
|
@@ -128,14 +109,16 @@ class SelectionDropdownComponent {
|
|
|
128
109
|
activeIndex = signal(-1, /* @ts-ignore */
|
|
129
110
|
...(ngDevMode ? [{ debugName: "activeIndex" }] : /* istanbul ignore next */ []));
|
|
130
111
|
injector = inject(Injector);
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
112
|
+
/** Names the dialog. Falls back to the visible title, then to a generic label rather than none. */
|
|
113
|
+
ariaLabel = input(/* @ts-ignore */
|
|
114
|
+
...(ngDevMode ? [undefined, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
115
|
+
/** Names the listbox holding what is already selected. */
|
|
116
|
+
selectedSectionText = input('Selected', /* @ts-ignore */
|
|
117
|
+
...(ngDevMode ? [{ debugName: "selectedSectionText" }] : /* istanbul ignore next */ []));
|
|
118
|
+
/** Names a listbox of ungrouped options when the dropdown has no title. */
|
|
119
|
+
optionsSectionText = input('Options', /* @ts-ignore */
|
|
120
|
+
...(ngDevMode ? [{ debugName: "optionsSectionText" }] : /* istanbul ignore next */ []));
|
|
121
|
+
panelLabel = computed(() => this.ariaLabel() ?? this.title() ?? 'Selection', /* @ts-ignore */
|
|
139
122
|
...(ngDevMode ? [{ debugName: "panelLabel" }] : /* istanbul ignore next */ []));
|
|
140
123
|
listboxId = `ap-selection-dropdown-list-${SelectionDropdownComponent.nextId++}`;
|
|
141
124
|
keyManager = null;
|
|
@@ -157,15 +140,39 @@ class SelectionDropdownComponent {
|
|
|
157
140
|
/** Shows the search field. Ignored in `multiple` mode, which always searches. */
|
|
158
141
|
searchEnabled = input(false, /* @ts-ignore */
|
|
159
142
|
...(ngDevMode ? [{ debugName: "searchEnabled" }] : /* istanbul ignore next */ []));
|
|
143
|
+
/** Title to display in the header */
|
|
144
|
+
title = input(/* @ts-ignore */
|
|
145
|
+
...(ngDevMode ? [undefined, { debugName: "title" }] : /* istanbul ignore next */ []));
|
|
146
|
+
/** Text for the footer button */
|
|
147
|
+
footerButtonText = input(/* @ts-ignore */
|
|
148
|
+
...(ngDevMode ? [undefined, { debugName: "footerButtonText" }] : /* istanbul ignore next */ []));
|
|
160
149
|
/** Symbol ID for the footer button */
|
|
161
150
|
footerButtonSymbolId = input(/* @ts-ignore */
|
|
162
151
|
...(ngDevMode ? [undefined, { debugName: "footerButtonSymbolId" }] : /* istanbul ignore next */ []));
|
|
152
|
+
/** Text for the header button */
|
|
153
|
+
headerButtonText = input(/* @ts-ignore */
|
|
154
|
+
...(ngDevMode ? [undefined, { debugName: "headerButtonText" }] : /* istanbul ignore next */ []));
|
|
163
155
|
/** Symbol ID for the header button */
|
|
164
156
|
headerButtonSymbolId = input(/* @ts-ignore */
|
|
165
157
|
...(ngDevMode ? [undefined, { debugName: "headerButtonSymbolId" }] : /* istanbul ignore next */ []));
|
|
166
158
|
/** Adds a "Select all" row above the options, acting on every visible option across groups. Multiple mode only. */
|
|
167
159
|
selectAllEnabled = input(false, /* @ts-ignore */
|
|
168
160
|
...(ngDevMode ? [{ debugName: "selectAllEnabled" }] : /* istanbul ignore next */ []));
|
|
161
|
+
/** Label of the "Select all" row */
|
|
162
|
+
selectAllText = input('Select all', /* @ts-ignore */
|
|
163
|
+
...(ngDevMode ? [{ debugName: "selectAllText" }] : /* istanbul ignore next */ []));
|
|
164
|
+
/** Count after the "Select all" label. `{selected}` and `{total}` are replaced; empty hides it. */
|
|
165
|
+
selectAllCountText = input('({selected} of {total})', /* @ts-ignore */
|
|
166
|
+
...(ngDevMode ? [{ debugName: "selectAllCountText" }] : /* istanbul ignore next */ []));
|
|
167
|
+
/** Placeholder text for the search input */
|
|
168
|
+
searchPlaceholderText = input('Search', /* @ts-ignore */
|
|
169
|
+
...(ngDevMode ? [{ debugName: "searchPlaceholderText" }] : /* istanbul ignore next */ []));
|
|
170
|
+
/** Text to display when no search results are found */
|
|
171
|
+
noSearchResultsText = input('No results found', /* @ts-ignore */
|
|
172
|
+
...(ngDevMode ? [{ debugName: "noSearchResultsText" }] : /* istanbul ignore next */ []));
|
|
173
|
+
/** Announced once a search settles. `{count}` is replaced by how many options matched. */
|
|
174
|
+
searchResultsText = input('{count} results', /* @ts-ignore */
|
|
175
|
+
...(ngDevMode ? [{ debugName: "searchResultsText" }] : /* istanbul ignore next */ []));
|
|
169
176
|
/** Whether to show a backdrop that closes the dropdown when clicked */
|
|
170
177
|
showBackdrop = input(true, /* @ts-ignore */
|
|
171
178
|
...(ngDevMode ? [{ debugName: "showBackdrop" }] : /* istanbul ignore next */ []));
|
|
@@ -230,29 +237,16 @@ class SelectionDropdownComponent {
|
|
|
230
237
|
/** Always true in `multiple` mode, leaving that layout untouched; only `single` collapses the header. */
|
|
231
238
|
searchVisible = computed(() => !this.isSingleSelect() || this.searchEnabled(), /* @ts-ignore */
|
|
232
239
|
...(ngDevMode ? [{ debugName: "searchVisible" }] : /* istanbul ignore next */ []));
|
|
233
|
-
headerTopVisible = computed(() => !this.isSingleSelect() || !!this.
|
|
240
|
+
headerTopVisible = computed(() => !this.isSingleSelect() || !!this.title() || !!this.headerButtonText(), /* @ts-ignore */
|
|
234
241
|
...(ngDevMode ? [{ debugName: "headerTopVisible" }] : /* istanbul ignore next */ []));
|
|
235
242
|
headerVisible = computed(() => this.headerTopVisible() || this.searchVisible(), /* @ts-ignore */
|
|
236
243
|
...(ngDevMode ? [{ debugName: "headerVisible" }] : /* istanbul ignore next */ []));
|
|
237
244
|
internalItems = linkedSignal(() => this.items(), /* @ts-ignore */
|
|
238
245
|
...(ngDevMode ? [{ debugName: "internalItems" }] : /* istanbul ignore next */ []));
|
|
239
|
-
itemTexts = computed(() => new Map(this.internalItems().map(item => {
|
|
240
|
-
const texts = this.resolveTexts(item.i18n, ITEM_ROLES);
|
|
241
|
-
return [item.htmlId, { ...texts, label: texts.label ?? '' }];
|
|
242
|
-
})), /* @ts-ignore */
|
|
243
|
-
...(ngDevMode ? [{ debugName: "itemTexts" }] : /* istanbul ignore next */ []));
|
|
244
246
|
filteredItems = signal([], /* @ts-ignore */
|
|
245
247
|
...(ngDevMode ? [{ debugName: "filteredItems" }] : /* istanbul ignore next */ []));
|
|
246
|
-
searchResultCount = signal(null, /* @ts-ignore */
|
|
247
|
-
...(ngDevMode ? [{ debugName: "searchResultCount" }] : /* istanbul ignore next */ []));
|
|
248
248
|
/** What the live region holds. Empty outside a search: the list is on screen, unchanged. */
|
|
249
|
-
resultsAnnouncement =
|
|
250
|
-
const count = this.searchResultCount();
|
|
251
|
-
if (count === null) {
|
|
252
|
-
return '';
|
|
253
|
-
}
|
|
254
|
-
return count === 0 ? this.texts().noResults : this.t(this.i18n().results ?? 'ui-components.search.results', { count });
|
|
255
|
-
}, /* @ts-ignore */
|
|
249
|
+
resultsAnnouncement = signal('', /* @ts-ignore */
|
|
256
250
|
...(ngDevMode ? [{ debugName: "resultsAnnouncement" }] : /* istanbul ignore next */ []));
|
|
257
251
|
initiallySelectedItems = signal([], /* @ts-ignore */
|
|
258
252
|
...(ngDevMode ? [{ debugName: "initiallySelectedItems" }] : /* istanbul ignore next */ []));
|
|
@@ -268,10 +262,10 @@ class SelectionDropdownComponent {
|
|
|
268
262
|
}, /* @ts-ignore */
|
|
269
263
|
...(ngDevMode ? [{ debugName: "unselectedItems" }] : /* istanbul ignore next */ []));
|
|
270
264
|
/** Multiple mode's unselected zone, grouped. */
|
|
271
|
-
displayEntries = computed(() => inEncounterOrder(this.unselectedItems()
|
|
265
|
+
displayEntries = computed(() => inEncounterOrder(this.unselectedItems()), /* @ts-ignore */
|
|
272
266
|
...(ngDevMode ? [{ debugName: "displayEntries" }] : /* istanbul ignore next */ []));
|
|
273
267
|
/** Single mode has no selected zone: the picked option stays in its group. */
|
|
274
|
-
singleEntries = computed(() => inEncounterOrder(this.filteredItems()
|
|
268
|
+
singleEntries = computed(() => inEncounterOrder(this.filteredItems()), /* @ts-ignore */
|
|
275
269
|
...(ngDevMode ? [{ debugName: "singleEntries" }] : /* istanbul ignore next */ []));
|
|
276
270
|
/**
|
|
277
271
|
* A listbox owns only options, so a group's checkbox cannot sit inside one: each group gets its own
|
|
@@ -303,7 +297,7 @@ class SelectionDropdownComponent {
|
|
|
303
297
|
continue;
|
|
304
298
|
}
|
|
305
299
|
const groupLabel = entry.label;
|
|
306
|
-
const groupItems = this.filteredItems().filter(item =>
|
|
300
|
+
const groupItems = this.filteredItems().filter(item => item.groupLabel === groupLabel);
|
|
307
301
|
// Selection is counted across all members: a disabled item can still be selected, and
|
|
308
302
|
// excluding it would wrongly drop the group to "unselected" despite a live selection.
|
|
309
303
|
const hasSelection = groupItems.some(item => item.selected);
|
|
@@ -330,11 +324,10 @@ class SelectionDropdownComponent {
|
|
|
330
324
|
...(ngDevMode ? [{ debugName: "selectAllVisible" }] : /* istanbul ignore next */ []));
|
|
331
325
|
selectAllLabel = computed(() => {
|
|
332
326
|
const targets = this.selectAllTargets();
|
|
333
|
-
const count = this.
|
|
334
|
-
selected
|
|
335
|
-
total
|
|
336
|
-
});
|
|
337
|
-
return count ? `${this.texts().selectAll} ${count}` : this.texts().selectAll;
|
|
327
|
+
const count = this.selectAllCountText()
|
|
328
|
+
.replace('{selected}', String(targets.filter(item => item.selected).length))
|
|
329
|
+
.replace('{total}', String(targets.length));
|
|
330
|
+
return count ? `${this.selectAllText()} ${count}` : this.selectAllText();
|
|
338
331
|
}, /* @ts-ignore */
|
|
339
332
|
...(ngDevMode ? [{ debugName: "selectAllLabel" }] : /* istanbul ignore next */ []));
|
|
340
333
|
selectAllState = computed(() => {
|
|
@@ -531,7 +524,7 @@ class SelectionDropdownComponent {
|
|
|
531
524
|
/** Handles group toggle events, selecting/deselecting all items within the group */
|
|
532
525
|
onGroupToggle(groupLabel, checked) {
|
|
533
526
|
const updatedItems = this.internalItems().map(item => {
|
|
534
|
-
if (
|
|
527
|
+
if (item.groupLabel === groupLabel && !item.disabled && !item.isFeatureLocked) {
|
|
535
528
|
return { ...item, selected: checked, indeterminate: false };
|
|
536
529
|
}
|
|
537
530
|
return item;
|
|
@@ -550,13 +543,6 @@ class SelectionDropdownComponent {
|
|
|
550
543
|
this.filteredItems.update(items => items.map(resolve));
|
|
551
544
|
this.selectionChange.emit(updatedItems);
|
|
552
545
|
}
|
|
553
|
-
/** The item's texts resolved in the current language. */
|
|
554
|
-
textsOf(item) {
|
|
555
|
-
return this.itemTexts().get(item.htmlId) ?? { label: '' };
|
|
556
|
-
}
|
|
557
|
-
groupOf(item) {
|
|
558
|
-
return this.textsOf(item).group;
|
|
559
|
-
}
|
|
560
546
|
/** Stable track key for a render entry (item or group). */
|
|
561
547
|
entryKey(entry) {
|
|
562
548
|
return entry.kind === 'item' ? `item:${entry.item.htmlId}` : `group:${entry.label}`;
|
|
@@ -566,7 +552,12 @@ class SelectionDropdownComponent {
|
|
|
566
552
|
* so there is no new focus to read either. Announced after the debounce, once the count is final.
|
|
567
553
|
*/
|
|
568
554
|
announceResults(term) {
|
|
569
|
-
|
|
555
|
+
if (!term) {
|
|
556
|
+
this.resultsAnnouncement.set('');
|
|
557
|
+
return;
|
|
558
|
+
}
|
|
559
|
+
const count = this.filteredItems().length;
|
|
560
|
+
this.resultsAnnouncement.set(count === 0 ? this.noSearchResultsText() : this.searchResultsText().replace('{count}', String(count)));
|
|
570
561
|
}
|
|
571
562
|
/** Updates the filtered items based on search term */
|
|
572
563
|
updateFilteredItems(searchTerm, items) {
|
|
@@ -574,11 +565,11 @@ class SelectionDropdownComponent {
|
|
|
574
565
|
this.filteredItems.set(items);
|
|
575
566
|
return;
|
|
576
567
|
}
|
|
577
|
-
const filtered = items.filter(item =>
|
|
568
|
+
const filtered = items.filter(item => item.text.toLowerCase().includes(searchTerm));
|
|
578
569
|
this.filteredItems.set(filtered);
|
|
579
570
|
}
|
|
580
571
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: SelectionDropdownComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
581
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: SelectionDropdownComponent, isStandalone: true, selector: "ap-selection-dropdown", inputs: { i18n: { classPropertyName: "i18n", publicName: "i18n", isSignal: true, isRequired: false, transformFunction: null }, headerButtonId: { classPropertyName: "headerButtonId", publicName: "headerButtonId", isSignal: true, isRequired: false, transformFunction: null }, footerButtonId: { classPropertyName: "footerButtonId", publicName: "footerButtonId", isSignal: true, isRequired: false, transformFunction: null }, items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, selectionMode: { classPropertyName: "selectionMode", publicName: "selectionMode", isSignal: true, isRequired: false, transformFunction: null }, searchEnabled: { classPropertyName: "searchEnabled", publicName: "searchEnabled", isSignal: true, isRequired: false, transformFunction: null }, footerButtonSymbolId: { classPropertyName: "footerButtonSymbolId", publicName: "footerButtonSymbolId", isSignal: true, isRequired: false, transformFunction: null }, headerButtonSymbolId: { classPropertyName: "headerButtonSymbolId", publicName: "headerButtonSymbolId", isSignal: true, isRequired: false, transformFunction: null }, selectAllEnabled: { classPropertyName: "selectAllEnabled", publicName: "selectAllEnabled", isSignal: true, isRequired: false, transformFunction: null }, showBackdrop: { classPropertyName: "showBackdrop", publicName: "showBackdrop", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, placement: { classPropertyName: "placement", publicName: "placement", isSignal: true, isRequired: false, transformFunction: null }, panelWidth: { classPropertyName: "panelWidth", publicName: "panelWidth", isSignal: true, isRequired: false, transformFunction: null }, searchTerm: { classPropertyName: "searchTerm", publicName: "searchTerm", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { opened: "opened", closed: "closed", selectionChange: "selectionChange", footerButtonClick: "footerButtonClick", headerButtonClick: "headerButtonClick", searchInputChange: "searchInputChange", searchTerm: "searchTermChange" }, queries: [{ propertyName: "trigger", first: true, predicate: ["trigger"], descendants: true, isSignal: true }], viewQueries: [{ propertyName: "panel", first: true, predicate: DropdownPanelComponent, descendants: true, isSignal: true }, { propertyName: "options", predicate: DropdownOptionDirective, descendants: true, isSignal: true }, { propertyName: "inputSearchComponent", first: true, predicate: ["inputSearchElement"], descendants: true, isSignal: true }], ngImport: i0, template: "<ap-dropdown-panel\n [placement]=\"placement()\"\n [showBackdrop]=\"showBackdrop()\"\n (closed)=\"onPanelClosed()\">\n <!-- `dialog`, not a combobox: a combobox must close when focus leaves it, and this panel holds a\n search field, a header, a footer and group checkboxes beside its lists \u2014 closing on Tab left\n every one of them unreachable. -->\n <div\n *apDropdownContent\n class=\"ap-selection-dropdown__content\"\n role=\"dialog\"\n tabindex=\"-1\"\n [attr.aria-label]=\"panelLabel()\"\n (keydown)=\"onOptionsKeyDown($event)\"\n [class.ap-selection-dropdown__content--single]=\"isSingleSelect()\"\n [style.width]=\"panelWidth()\">\n <!-- Header -->\n @if (headerVisible()) {\n <div\n class=\"ap-selection-dropdown__header\"\n [class.ap-selection-dropdown__header--select-all]=\"selectAllVisible()\">\n @if (headerTopVisible()) {\n <div class=\"ap-selection-dropdown__header-top\">\n @if (texts().title) {\n <h3 class=\"ap-selection-dropdown__title\">\n {{ texts().title }}\n </h3>\n }\n @if (texts().headerButton) {\n <button\n type=\"button\"\n class=\"ap-link standalone\"\n [id]=\"headerButtonId()\"\n (click)=\"onHeaderButtonClick()\">\n <ap-symbol [symbolId]=\"headerButtonSymbolId()\" />\n {{ texts().headerButton }}\n </button>\n }\n </div>\n }\n @if (searchVisible()) {\n <ap-input-search\n #inputSearchElement\n [placeholder]=\"texts().searchPlaceholder\"\n [clearable]=\"true\"\n [ariaControls]=\"listboxId\"\n [ariaActiveDescendant]=\"activeDescendantId()\"\n [ngModel]=\"searchTerm()\"\n (blur)=\"onSearchBlur()\"\n (ngModelChange)=\"onSearchTermChange($event)\" />\n }\n @if (selectAllVisible()) {\n <div class=\"ap-selection-dropdown__select-all\">\n <ap-checkbox\n class=\"centered\"\n name=\"ap-selection-dropdown-select-all\"\n [checked]=\"selectAllState() === 'selected'\"\n [indeterminate]=\"selectAllState() === 'partial'\"\n (change)=\"onSelectAllToggle($event)\">\n {{ selectAllLabel() }}\n </ap-checkbox>\n </div>\n }\n </div>\n }\n\n <!-- Selection dropdown items -->\n <div\n class=\"ap-selection-dropdown__items\"\n [id]=\"listboxId\"\n [attr.role]=\"isSingleSelect() ? 'listbox' : null\"\n [attr.aria-label]=\"isSingleSelect() ? (texts().title ?? null) : null\">\n @if (filteredItems().length === 0 && searchTerm()) {\n <div class=\"ap-selection-dropdown__no-results\">\n {{ texts().noResults }}\n </div>\n } @else if (isSingleSelect()) {\n <!-- One listbox: a group holds only options and its presentational header (WAI-ARIA APG grouped listbox). -->\n @for (entry of singleEntries(); track entry.kind === 'group' ? 'group:' + entry.label : entry.item.htmlId) {\n @if (entry.kind === 'group') {\n <div\n role=\"group\"\n class=\"ap-selection-dropdown__group\"\n [attr.aria-labelledby]=\"groupHeaderId($index)\">\n <div\n role=\"presentation\"\n class=\"ap-selection-dropdown__group-title\"\n [id]=\"groupHeaderId($index)\">\n {{ entry.label }}\n </div>\n @for (item of entry.items; track item.htmlId) {\n <ng-container *ngTemplateOutlet=\"singleOption; context: { $implicit: item }\" />\n }\n </div>\n } @else {\n <ng-container *ngTemplateOutlet=\"singleOption; context: { $implicit: entry.item }\" />\n }\n }\n\n <ng-template\n #singleOption\n let-item>\n <button\n type=\"button\"\n role=\"option\"\n class=\"ap-selection-dropdown__option\"\n [id]=\"optionId(item)\"\n [apDropdownOption]=\"textsOf(item).label\"\n [apDropdownOptionDisabled]=\"!!(item.disabled || item.isFeatureLocked)\"\n [tabindex]=\"optionTabIndex(tabbableOption(item))\"\n [attr.aria-selected]=\"item.selected\"\n [attr.aria-disabled]=\"item.disabled || item.isFeatureLocked\"\n [attr.data-track]=\"item.dataTrack\"\n [apTooltip]=\"item.disabled ? (textsOf(item).disabledTooltip ?? null) : null\"\n apTooltipPosition=\"right\"\n (click)=\"onItemToggle(item)\">\n <ap-dropdown-item-single-one-line\n [text]=\"textsOf(item).label\"\n [selected]=\"item.selected\"\n [disabled]=\"item.disabled || false\"\n [avatarUrl]=\"item.avatarUrl\"\n [symbolId]=\"item.symbolId\"\n [badgeText]=\"textsOf(item).badge\"\n [isFeatureLocked]=\"item.isFeatureLocked || false\"\n [roundedAvatar]=\"!!item.roundedAvatar\"\n [network]=\"item.network\"\n [standaloneModeEnabled]=\"true\" />\n </button>\n </ng-template>\n } @else {\n <!-- A listbox owns only options, so each section is its own, and a group's checkbox sits beside it. -->\n @if (selectedItems().length > 0) {\n <div\n role=\"listbox\"\n aria-multiselectable=\"true\"\n class=\"ap-selection-dropdown__selected-section\"\n [attr.aria-label]=\"texts().selectedSection\">\n @for (item of selectedItems(); track item.htmlId) {\n @let grouped = false;\n <button\n type=\"button\"\n role=\"option\"\n class=\"ap-selection-dropdown__item-button\"\n [id]=\"optionId(item)\"\n [tabindex]=\"optionTabIndex(tabbableOption(item))\"\n [apDropdownOption]=\"textsOf(item).label\"\n [apDropdownOptionDisabled]=\"!!(item.disabled || item.isFeatureLocked)\"\n [attr.aria-selected]=\"item.selected\"\n [class.ap-selection-dropdown__item-button--disabled]=\"item.disabled || item.isFeatureLocked\"\n [apTooltip]=\"textsOf(item).disabledTooltip\"\n (click)=\"onItemToggle(item)\">\n <ap-dropdown-item-multiple-one-line\n presentational\n class=\"ap-selection-dropdown__item\"\n [class.ap-selection-dropdown__item--grouped]=\"grouped\"\n [text]=\"textsOf(item).label\"\n [selected]=\"item.selected\"\n [indeterminate]=\"item.indeterminate ?? false\"\n [htmlId]=\"item.htmlId\"\n [disabled]=\"item.disabled || false\"\n [avatarUrl]=\"item.avatarUrl\"\n [symbolId]=\"item.symbolId\"\n [badgeText]=\"textsOf(item).badge\"\n [isFeatureLocked]=\"item.isFeatureLocked || false\"\n [roundedAvatar]=\"!!item.roundedAvatar\"\n [network]=\"item.network\"\n [symbolColor]=\"item.symbolColor\"\n [symbolTooltipText]=\"textsOf(item).symbolTooltip\" />\n </button>\n }\n </div>\n }\n\n <!-- Unselected zone: items & groups in first-encounter order -->\n @for (run of displayRuns(); track runKey(run)) {\n @if (run.kind === 'items') {\n <div\n role=\"listbox\"\n aria-multiselectable=\"true\"\n [attr.aria-label]=\"texts().title ?? texts().optionsSection\">\n @for (item of run.items; track item.htmlId) {\n @let grouped = false;\n <button\n type=\"button\"\n role=\"option\"\n class=\"ap-selection-dropdown__item-button\"\n [id]=\"optionId(item)\"\n [tabindex]=\"optionTabIndex(tabbableOption(item))\"\n [apDropdownOption]=\"textsOf(item).label\"\n [apDropdownOptionDisabled]=\"!!(item.disabled || item.isFeatureLocked)\"\n [attr.aria-selected]=\"item.selected\"\n [class.ap-selection-dropdown__item-button--disabled]=\"item.disabled || item.isFeatureLocked\"\n [apTooltip]=\"textsOf(item).disabledTooltip\"\n (click)=\"onItemToggle(item)\">\n <ap-dropdown-item-multiple-one-line\n presentational\n class=\"ap-selection-dropdown__item\"\n [class.ap-selection-dropdown__item--grouped]=\"grouped\"\n [text]=\"textsOf(item).label\"\n [selected]=\"item.selected\"\n [indeterminate]=\"item.indeterminate ?? false\"\n [htmlId]=\"item.htmlId\"\n [disabled]=\"item.disabled || false\"\n [avatarUrl]=\"item.avatarUrl\"\n [symbolId]=\"item.symbolId\"\n [badgeText]=\"textsOf(item).badge\"\n [isFeatureLocked]=\"item.isFeatureLocked || false\"\n [roundedAvatar]=\"!!item.roundedAvatar\"\n [network]=\"item.network\"\n [symbolColor]=\"item.symbolColor\"\n [symbolTooltipText]=\"textsOf(item).symbolTooltip\" />\n </button>\n }\n </div>\n } @else {\n <div class=\"ap-selection-dropdown__group\">\n <!-- Group header with checkbox -->\n <div class=\"ap-selection-dropdown__group-header\">\n <div class=\"ap-selection-dropdown__group-label\">\n <ap-checkbox\n class=\"centered\"\n [name]=\"run.label\"\n [checked]=\"groupSelectionStates()[run.label] === 'selected'\"\n [indeterminate]=\"groupSelectionStates()[run.label] === 'partial'\"\n (change)=\"onGroupToggle(run.label, $event)\">\n {{ run.label }}\n </ap-checkbox>\n </div>\n </div>\n\n <div\n role=\"listbox\"\n aria-multiselectable=\"true\"\n [attr.aria-label]=\"run.label\">\n @for (item of run.items; track item.htmlId) {\n @let grouped = true;\n <button\n type=\"button\"\n role=\"option\"\n class=\"ap-selection-dropdown__item-button\"\n [id]=\"optionId(item)\"\n [tabindex]=\"optionTabIndex(tabbableOption(item))\"\n [apDropdownOption]=\"textsOf(item).label\"\n [apDropdownOptionDisabled]=\"!!(item.disabled || item.isFeatureLocked)\"\n [attr.aria-selected]=\"item.selected\"\n [class.ap-selection-dropdown__item-button--disabled]=\"item.disabled || item.isFeatureLocked\"\n [apTooltip]=\"textsOf(item).disabledTooltip\"\n (click)=\"onItemToggle(item)\">\n <ap-dropdown-item-multiple-one-line\n presentational\n class=\"ap-selection-dropdown__item\"\n [class.ap-selection-dropdown__item--grouped]=\"grouped\"\n [text]=\"textsOf(item).label\"\n [selected]=\"item.selected\"\n [indeterminate]=\"item.indeterminate ?? false\"\n [htmlId]=\"item.htmlId\"\n [disabled]=\"item.disabled || false\"\n [avatarUrl]=\"item.avatarUrl\"\n [symbolId]=\"item.symbolId\"\n [badgeText]=\"textsOf(item).badge\"\n [isFeatureLocked]=\"item.isFeatureLocked || false\"\n [roundedAvatar]=\"!!item.roundedAvatar\"\n [network]=\"item.network\"\n [symbolColor]=\"item.symbolColor\"\n [symbolTooltipText]=\"textsOf(item).symbolTooltip\" />\n </button>\n }\n </div>\n </div>\n }\n }\n }\n </div>\n\n <div\n class=\"ap-selection-dropdown__status\"\n role=\"status\"\n aria-atomic=\"true\">\n {{ resultsAnnouncement() }}\n </div>\n\n <!-- Footer -->\n @if (texts().footerButton) {\n <div class=\"ap-selection-dropdown__footer\">\n <button\n type=\"button\"\n class=\"ap-link standalone\"\n [id]=\"footerButtonId()\"\n (click)=\"onFooterButtonClick()\">\n <ap-symbol [symbolId]=\"footerButtonSymbolId()\" />\n {{ texts().footerButton }}\n </button>\n </div>\n }\n </div>\n</ap-dropdown-panel>\n", styles: [":host{display:none}.ap-selection-dropdown__content{border-radius:inherit;overflow:hidden;z-index:1000;width:370px;display:flex;flex-direction:column;max-height:min(400px,var(--ap-floating-available-height, 100vh))}.ap-selection-dropdown__content--single{width:auto;min-width:160px}.ap-selection-dropdown__option{display:block;width:100%;padding:0;border:none;background:none;font:inherit;text-align:inherit}.ap-selection-dropdown__item-button{display:block;width:100%;padding:0;margin:0;border:none;background:transparent;text-align:left;cursor:pointer;outline:none}.ap-selection-dropdown__item-button:hover,.ap-selection-dropdown__item-button.ap-dropdown-option--active{background-color:var(--ref-color-electric-blue-10)}.ap-selection-dropdown__item-button:active{background-color:var(--ref-color-electric-blue-20)}.ap-selection-dropdown__item-button:focus{outline:none}.ap-selection-dropdown__item-button:focus-visible{outline:none}.ap-selection-dropdown__item-button.ap-selection-dropdown__item-button--disabled{pointer-events:none}.ap-selection-dropdown__item{display:flex;align-items:center;width:100%;min-height:40px;padding:var(--ref-spacing-xxs) var(--ref-spacing-sm);background:transparent;cursor:pointer;font-family:Averta}.ap-selection-dropdown__group-header{display:flex;align-items:center;padding:var(--ref-spacing-xxs) var(--ref-spacing-sm);border-top:1px solid var(--ref-color-grey-10);background:var(--ref-color-grey-bg)}.ap-selection-dropdown__group-title{padding:var(--comp-select-group-padding-vertical) var(--ref-spacing-sm);border-top:1px solid var(--comp-select-group-border-top-color);background:var(--comp-select-group-background-color);font-family:var(--comp-select-group-text-font-family);font-size:var(--comp-select-group-text-size);font-weight:var(--comp-select-group-text-font-weight);line-height:var(--comp-select-group-text-line-height);color:var(--comp-select-group-text-color)}.ap-selection-dropdown__group-label{display:flex;align-items:center;flex:1;font-weight:700;color:var(--ref-color-grey-100)}.ap-selection-dropdown__group-label ap-checkbox{--comp-forms-label-font-weight: 700}.ap-selection-dropdown__header{border-bottom:1px solid var(--ref-color-grey-10);flex-shrink:0;display:flex;flex-direction:column}.ap-selection-dropdown__header .ap-selection-dropdown__header-top{display:flex;align-items:center;justify-content:space-between;padding:var(--ref-spacing-xs) var(--ref-spacing-sm)}.ap-selection-dropdown__header .ap-selection-dropdown__title{margin:0;font-size:var(--ref-font-size-md);font-weight:var(--ref-font-weight-bold);color:var(--ref-color-grey-100);flex:1}.ap-selection-dropdown__header ap-input-search{width:100%;padding:0 var(--ref-spacing-xxs) var(--ref-spacing-xxs)}.ap-selection-dropdown__header.ap-selection-dropdown__header--select-all ap-input-search{padding-bottom:0}.ap-selection-dropdown__header .ap-selection-dropdown__select-all{display:flex;align-items:center;height:var(--comp-select-one-line-height);padding:0 var(--ref-spacing-sm)}.ap-selection-dropdown__header .ap-selection-dropdown__select-all ap-checkbox{--comp-forms-label-font-weight: var(--ref-font-weight-bold)}.ap-selection-dropdown__items{padding:var(--ref-spacing-xxs) 0;flex:1;overflow-y:auto;min-height:0}.ap-selection-dropdown__no-results{padding:var(--ref-spacing-xxs) var(--ref-spacing-sm);color:var(--ref-color-grey-80);font-size:var(--ref-font-size-sm);font-style:italic}.ap-selection-dropdown__footer{height:40px;padding:var(--ref-spacing-xs) var(--ref-spacing-sm);border-top:1px solid var(--ref-color-grey-10);flex-shrink:0;display:flex;align-items:center;justify-content:flex-start}.ap-selection-dropdown__selected-section{margin-bottom:var(--ref-spacing-xxs);border-bottom:1px solid var(--ref-color-grey-10);padding-bottom:var(--ref-spacing-xxs)}.ap-selection-dropdown__selected-section ::ng-deep ap-checkbox{--comp-forms-label-font-weight: 700}.ap-selection-dropdown__status{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}\n"], dependencies: [{ kind: "component", type: CheckboxComponent, selector: "ap-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "disabled", "indeterminate", "checked", "fullyControlled", "presentational", "required", "name"], outputs: ["change"] }, { kind: "directive", type: DropdownContentDirective, selector: "ng-template[apDropdownContent]" }, { kind: "directive", type: DropdownOptionDirective, selector: "[apDropdownOption]", inputs: ["apDropdownOption", "apDropdownOptionDisabled"] }, { kind: "component", type: DropdownItemMultipleOneLineComponent, selector: "ap-dropdown-item-multiple-one-line", inputs: ["text", "selected", "indeterminate", "htmlId", "disabled", "avatarUrl", "symbolId", "disabledTooltip", "badgeText", "dividerEnabled", "presentational", "onlyEnabled", "onlyText", "isFeatureLocked", "roundedAvatar", "network", "symbolColor", "symbolTooltipText"], outputs: ["selectOnly", "lockedFeatureClicked"] }, { kind: "component", type: DropdownItemSingleOneLineComponent, selector: "ap-dropdown-item-single-one-line", inputs: ["text", "selected", "disabled", "avatarUrl", "showAvatarInitials", "symbolId", "disabledTooltip", "badgeText", "dividerEnabled", "network", "roundedAvatar", "isFeatureLocked", "standaloneModeEnabled"], outputs: ["lockedFeatureClicked"] }, { kind: "component", type: DropdownPanelComponent, selector: "ap-dropdown-panel", inputs: ["placement", "showBackdrop", "panelClass", "canDismiss"], outputs: ["opened", "closed"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: InputSearchComponent, selector: "ap-input-search", inputs: ["id", "placeholder", "clearable", "ariaControls", "ariaActiveDescendant"], outputs: ["focus", "blur", "keyup"] }, { kind: "component", type: SymbolComponent, selector: "ap-symbol", inputs: ["symbolId", "color", "size"], outputs: ["sizeChange"] }, { kind: "directive", type: TooltipDirective, selector: "[apTooltip]", inputs: ["apTooltip", "apTooltipPosition", "apTooltipShowDelay", "apTooltipHideDelay", "apTooltipDuration", "apTooltipDisabled", "apTooltipTruncatedTextOnly", "apTooltipTemplateContext", "apTooltipVirtualScrollElement", "apTooltipTrigger", "apTooltipArrow", "apTooltipAnchor", "apTooltipType", "apTooltipPresentationContext", "apTooltipListItems", "apTooltipShowAvatarCaption"], exportAs: ["apTooltip"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
572
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: SelectionDropdownComponent, isStandalone: true, selector: "ap-selection-dropdown", inputs: { ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, selectedSectionText: { classPropertyName: "selectedSectionText", publicName: "selectedSectionText", isSignal: true, isRequired: false, transformFunction: null }, optionsSectionText: { classPropertyName: "optionsSectionText", publicName: "optionsSectionText", isSignal: true, isRequired: false, transformFunction: null }, headerButtonId: { classPropertyName: "headerButtonId", publicName: "headerButtonId", isSignal: true, isRequired: false, transformFunction: null }, footerButtonId: { classPropertyName: "footerButtonId", publicName: "footerButtonId", isSignal: true, isRequired: false, transformFunction: null }, items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, selectionMode: { classPropertyName: "selectionMode", publicName: "selectionMode", isSignal: true, isRequired: false, transformFunction: null }, searchEnabled: { classPropertyName: "searchEnabled", publicName: "searchEnabled", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, footerButtonText: { classPropertyName: "footerButtonText", publicName: "footerButtonText", isSignal: true, isRequired: false, transformFunction: null }, footerButtonSymbolId: { classPropertyName: "footerButtonSymbolId", publicName: "footerButtonSymbolId", isSignal: true, isRequired: false, transformFunction: null }, headerButtonText: { classPropertyName: "headerButtonText", publicName: "headerButtonText", isSignal: true, isRequired: false, transformFunction: null }, headerButtonSymbolId: { classPropertyName: "headerButtonSymbolId", publicName: "headerButtonSymbolId", isSignal: true, isRequired: false, transformFunction: null }, selectAllEnabled: { classPropertyName: "selectAllEnabled", publicName: "selectAllEnabled", isSignal: true, isRequired: false, transformFunction: null }, selectAllText: { classPropertyName: "selectAllText", publicName: "selectAllText", isSignal: true, isRequired: false, transformFunction: null }, selectAllCountText: { classPropertyName: "selectAllCountText", publicName: "selectAllCountText", isSignal: true, isRequired: false, transformFunction: null }, searchPlaceholderText: { classPropertyName: "searchPlaceholderText", publicName: "searchPlaceholderText", isSignal: true, isRequired: false, transformFunction: null }, noSearchResultsText: { classPropertyName: "noSearchResultsText", publicName: "noSearchResultsText", isSignal: true, isRequired: false, transformFunction: null }, searchResultsText: { classPropertyName: "searchResultsText", publicName: "searchResultsText", isSignal: true, isRequired: false, transformFunction: null }, showBackdrop: { classPropertyName: "showBackdrop", publicName: "showBackdrop", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, placement: { classPropertyName: "placement", publicName: "placement", isSignal: true, isRequired: false, transformFunction: null }, panelWidth: { classPropertyName: "panelWidth", publicName: "panelWidth", isSignal: true, isRequired: false, transformFunction: null }, searchTerm: { classPropertyName: "searchTerm", publicName: "searchTerm", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { opened: "opened", closed: "closed", selectionChange: "selectionChange", footerButtonClick: "footerButtonClick", headerButtonClick: "headerButtonClick", searchInputChange: "searchInputChange", searchTerm: "searchTermChange" }, queries: [{ propertyName: "trigger", first: true, predicate: ["trigger"], descendants: true, isSignal: true }], viewQueries: [{ propertyName: "panel", first: true, predicate: DropdownPanelComponent, descendants: true, isSignal: true }, { propertyName: "options", predicate: DropdownOptionDirective, descendants: true, isSignal: true }, { propertyName: "inputSearchComponent", first: true, predicate: ["inputSearchElement"], descendants: true, isSignal: true }], ngImport: i0, template: "<ap-dropdown-panel\n [placement]=\"placement()\"\n [showBackdrop]=\"showBackdrop()\"\n (closed)=\"onPanelClosed()\">\n <!-- `dialog`, not a combobox: a combobox must close when focus leaves it, and this panel holds a\n search field, a header, a footer and group checkboxes beside its lists \u2014 closing on Tab left\n every one of them unreachable. -->\n <div\n *apDropdownContent\n class=\"ap-selection-dropdown__content\"\n role=\"dialog\"\n tabindex=\"-1\"\n [attr.aria-label]=\"panelLabel()\"\n (keydown)=\"onOptionsKeyDown($event)\"\n [class.ap-selection-dropdown__content--single]=\"isSingleSelect()\"\n [style.width]=\"panelWidth()\">\n <!-- Header -->\n @if (headerVisible()) {\n <div\n class=\"ap-selection-dropdown__header\"\n [class.ap-selection-dropdown__header--select-all]=\"selectAllVisible()\">\n @if (headerTopVisible()) {\n <div class=\"ap-selection-dropdown__header-top\">\n @if (title()) {\n <h3 class=\"ap-selection-dropdown__title\">\n {{ title() }}\n </h3>\n }\n @if (headerButtonText()) {\n <button\n type=\"button\"\n class=\"ap-link standalone\"\n [id]=\"headerButtonId()\"\n (click)=\"onHeaderButtonClick()\">\n <ap-symbol [symbolId]=\"headerButtonSymbolId()\" />\n {{ headerButtonText() }}\n </button>\n }\n </div>\n }\n @if (searchVisible()) {\n <ap-input-search\n #inputSearchElement\n [placeholder]=\"searchPlaceholderText()\"\n [clearable]=\"true\"\n [ariaControls]=\"listboxId\"\n [ariaActiveDescendant]=\"activeDescendantId()\"\n [ngModel]=\"searchTerm()\"\n (blur)=\"onSearchBlur()\"\n (ngModelChange)=\"onSearchTermChange($event)\" />\n }\n @if (selectAllVisible()) {\n <div class=\"ap-selection-dropdown__select-all\">\n <ap-checkbox\n class=\"centered\"\n name=\"ap-selection-dropdown-select-all\"\n [checked]=\"selectAllState() === 'selected'\"\n [indeterminate]=\"selectAllState() === 'partial'\"\n (change)=\"onSelectAllToggle($event)\">\n {{ selectAllLabel() }}\n </ap-checkbox>\n </div>\n }\n </div>\n }\n\n <!-- Selection dropdown items -->\n <div\n class=\"ap-selection-dropdown__items\"\n [id]=\"listboxId\"\n [attr.role]=\"isSingleSelect() ? 'listbox' : null\"\n [attr.aria-label]=\"isSingleSelect() ? (title() ?? null) : null\">\n @if (filteredItems().length === 0 && searchTerm()) {\n <div class=\"ap-selection-dropdown__no-results\">\n {{ noSearchResultsText() }}\n </div>\n } @else if (isSingleSelect()) {\n <!-- One listbox: a group holds only options and its presentational header (WAI-ARIA APG grouped listbox). -->\n @for (entry of singleEntries(); track entry.kind === 'group' ? 'group:' + entry.label : entry.item.htmlId) {\n @if (entry.kind === 'group') {\n <div\n role=\"group\"\n class=\"ap-selection-dropdown__group\"\n [attr.aria-labelledby]=\"groupHeaderId($index)\">\n <div\n role=\"presentation\"\n class=\"ap-selection-dropdown__group-title\"\n [id]=\"groupHeaderId($index)\">\n {{ entry.label }}\n </div>\n @for (item of entry.items; track item.htmlId) {\n <ng-container *ngTemplateOutlet=\"singleOption; context: { $implicit: item }\" />\n }\n </div>\n } @else {\n <ng-container *ngTemplateOutlet=\"singleOption; context: { $implicit: entry.item }\" />\n }\n }\n\n <ng-template\n #singleOption\n let-item>\n <button\n type=\"button\"\n role=\"option\"\n class=\"ap-selection-dropdown__option\"\n [id]=\"optionId(item)\"\n [apDropdownOption]=\"item.text\"\n [apDropdownOptionDisabled]=\"!!(item.disabled || item.isFeatureLocked)\"\n [tabindex]=\"optionTabIndex(tabbableOption(item))\"\n [attr.aria-selected]=\"item.selected\"\n [attr.aria-disabled]=\"item.disabled || item.isFeatureLocked\"\n [attr.data-track]=\"item.dataTrack\"\n [apTooltip]=\"item.disabled ? (item.disabledTooltip ?? null) : null\"\n apTooltipPosition=\"right\"\n (click)=\"onItemToggle(item)\">\n <ap-dropdown-item-single-one-line\n [text]=\"item.text\"\n [selected]=\"item.selected\"\n [disabled]=\"item.disabled || false\"\n [avatarUrl]=\"item.avatarUrl\"\n [symbolId]=\"item.symbolId\"\n [badgeText]=\"item.badgeText\"\n [isFeatureLocked]=\"item.isFeatureLocked || false\"\n [roundedAvatar]=\"!!item.roundedAvatar\"\n [network]=\"item.network\"\n [standaloneModeEnabled]=\"true\" />\n </button>\n </ng-template>\n } @else {\n <!-- A listbox owns only options, so each section is its own, and a group's checkbox sits beside it. -->\n @if (selectedItems().length > 0) {\n <div\n role=\"listbox\"\n aria-multiselectable=\"true\"\n class=\"ap-selection-dropdown__selected-section\"\n [attr.aria-label]=\"selectedSectionText()\">\n @for (item of selectedItems(); track item.htmlId) {\n @let grouped = false;\n <button\n type=\"button\"\n role=\"option\"\n class=\"ap-selection-dropdown__item-button\"\n [id]=\"optionId(item)\"\n [tabindex]=\"optionTabIndex(tabbableOption(item))\"\n [apDropdownOption]=\"item.text\"\n [apDropdownOptionDisabled]=\"!!(item.disabled || item.isFeatureLocked)\"\n [attr.aria-selected]=\"item.selected\"\n [class.ap-selection-dropdown__item-button--disabled]=\"item.disabled || item.isFeatureLocked\"\n [apTooltip]=\"item.disabledTooltip\"\n (click)=\"onItemToggle(item)\">\n <ap-dropdown-item-multiple-one-line\n presentational\n class=\"ap-selection-dropdown__item\"\n [class.ap-selection-dropdown__item--grouped]=\"grouped\"\n [text]=\"item.text\"\n [selected]=\"item.selected\"\n [indeterminate]=\"item.indeterminate ?? false\"\n [htmlId]=\"item.htmlId\"\n [disabled]=\"item.disabled || false\"\n [avatarUrl]=\"item.avatarUrl\"\n [symbolId]=\"item.symbolId\"\n [badgeText]=\"item.badgeText\"\n [isFeatureLocked]=\"item.isFeatureLocked || false\"\n [roundedAvatar]=\"!!item.roundedAvatar\"\n [network]=\"item.network\"\n [symbolColor]=\"item.symbolColor\"\n [symbolTooltipText]=\"item.symbolTooltipText\" />\n </button>\n }\n </div>\n }\n\n <!-- Unselected zone: items & groups in first-encounter order -->\n @for (run of displayRuns(); track runKey(run)) {\n @if (run.kind === 'items') {\n <div\n role=\"listbox\"\n aria-multiselectable=\"true\"\n [attr.aria-label]=\"title() ?? optionsSectionText()\">\n @for (item of run.items; track item.htmlId) {\n @let grouped = false;\n <button\n type=\"button\"\n role=\"option\"\n class=\"ap-selection-dropdown__item-button\"\n [id]=\"optionId(item)\"\n [tabindex]=\"optionTabIndex(tabbableOption(item))\"\n [apDropdownOption]=\"item.text\"\n [apDropdownOptionDisabled]=\"!!(item.disabled || item.isFeatureLocked)\"\n [attr.aria-selected]=\"item.selected\"\n [class.ap-selection-dropdown__item-button--disabled]=\"item.disabled || item.isFeatureLocked\"\n [apTooltip]=\"item.disabledTooltip\"\n (click)=\"onItemToggle(item)\">\n <ap-dropdown-item-multiple-one-line\n presentational\n class=\"ap-selection-dropdown__item\"\n [class.ap-selection-dropdown__item--grouped]=\"grouped\"\n [text]=\"item.text\"\n [selected]=\"item.selected\"\n [indeterminate]=\"item.indeterminate ?? false\"\n [htmlId]=\"item.htmlId\"\n [disabled]=\"item.disabled || false\"\n [avatarUrl]=\"item.avatarUrl\"\n [symbolId]=\"item.symbolId\"\n [badgeText]=\"item.badgeText\"\n [isFeatureLocked]=\"item.isFeatureLocked || false\"\n [roundedAvatar]=\"!!item.roundedAvatar\"\n [network]=\"item.network\"\n [symbolColor]=\"item.symbolColor\"\n [symbolTooltipText]=\"item.symbolTooltipText\" />\n </button>\n }\n </div>\n } @else {\n <div class=\"ap-selection-dropdown__group\">\n <!-- Group header with checkbox -->\n <div class=\"ap-selection-dropdown__group-header\">\n <div class=\"ap-selection-dropdown__group-label\">\n <ap-checkbox\n class=\"centered\"\n [name]=\"run.label\"\n [checked]=\"groupSelectionStates()[run.label] === 'selected'\"\n [indeterminate]=\"groupSelectionStates()[run.label] === 'partial'\"\n (change)=\"onGroupToggle(run.label, $event)\">\n {{ run.label }}\n </ap-checkbox>\n </div>\n </div>\n\n <div\n role=\"listbox\"\n aria-multiselectable=\"true\"\n [attr.aria-label]=\"run.label\">\n @for (item of run.items; track item.htmlId) {\n @let grouped = true;\n <button\n type=\"button\"\n role=\"option\"\n class=\"ap-selection-dropdown__item-button\"\n [id]=\"optionId(item)\"\n [tabindex]=\"optionTabIndex(tabbableOption(item))\"\n [apDropdownOption]=\"item.text\"\n [apDropdownOptionDisabled]=\"!!(item.disabled || item.isFeatureLocked)\"\n [attr.aria-selected]=\"item.selected\"\n [class.ap-selection-dropdown__item-button--disabled]=\"item.disabled || item.isFeatureLocked\"\n [apTooltip]=\"item.disabledTooltip\"\n (click)=\"onItemToggle(item)\">\n <ap-dropdown-item-multiple-one-line\n presentational\n class=\"ap-selection-dropdown__item\"\n [class.ap-selection-dropdown__item--grouped]=\"grouped\"\n [text]=\"item.text\"\n [selected]=\"item.selected\"\n [indeterminate]=\"item.indeterminate ?? false\"\n [htmlId]=\"item.htmlId\"\n [disabled]=\"item.disabled || false\"\n [avatarUrl]=\"item.avatarUrl\"\n [symbolId]=\"item.symbolId\"\n [badgeText]=\"item.badgeText\"\n [isFeatureLocked]=\"item.isFeatureLocked || false\"\n [roundedAvatar]=\"!!item.roundedAvatar\"\n [network]=\"item.network\"\n [symbolColor]=\"item.symbolColor\"\n [symbolTooltipText]=\"item.symbolTooltipText\" />\n </button>\n }\n </div>\n </div>\n }\n }\n }\n </div>\n\n <div\n class=\"ap-selection-dropdown__status\"\n role=\"status\"\n aria-atomic=\"true\">\n {{ resultsAnnouncement() }}\n </div>\n\n <!-- Footer -->\n @if (footerButtonText()) {\n <div class=\"ap-selection-dropdown__footer\">\n <button\n type=\"button\"\n class=\"ap-link standalone\"\n [id]=\"footerButtonId()\"\n (click)=\"onFooterButtonClick()\">\n <ap-symbol [symbolId]=\"footerButtonSymbolId()\" />\n {{ footerButtonText() }}\n </button>\n </div>\n }\n </div>\n</ap-dropdown-panel>\n", styles: [":host{display:none}.ap-selection-dropdown__content{border-radius:inherit;overflow:hidden;z-index:1000;width:370px;display:flex;flex-direction:column;max-height:min(400px,var(--ap-floating-available-height, 100vh))}.ap-selection-dropdown__content--single{width:auto;min-width:160px}.ap-selection-dropdown__option{display:block;width:100%;padding:0;border:none;background:none;font:inherit;text-align:inherit}.ap-selection-dropdown__item-button{display:block;width:100%;padding:0;margin:0;border:none;background:transparent;text-align:left;cursor:pointer;outline:none}.ap-selection-dropdown__item-button:hover,.ap-selection-dropdown__item-button.ap-dropdown-option--active{background-color:var(--ref-color-electric-blue-10)}.ap-selection-dropdown__item-button:active{background-color:var(--ref-color-electric-blue-20)}.ap-selection-dropdown__item-button:focus{outline:none}.ap-selection-dropdown__item-button:focus-visible{outline:none}.ap-selection-dropdown__item-button.ap-selection-dropdown__item-button--disabled{pointer-events:none}.ap-selection-dropdown__item{display:flex;align-items:center;width:100%;min-height:40px;padding:var(--ref-spacing-xxs) var(--ref-spacing-sm);background:transparent;cursor:pointer;font-family:Averta}.ap-selection-dropdown__group-header{display:flex;align-items:center;padding:var(--ref-spacing-xxs) var(--ref-spacing-sm);border-top:1px solid var(--ref-color-grey-10);background:var(--ref-color-grey-bg)}.ap-selection-dropdown__group-title{padding:var(--comp-select-group-padding-vertical) var(--ref-spacing-sm);border-top:1px solid var(--comp-select-group-border-top-color);background:var(--comp-select-group-background-color);font-family:var(--comp-select-group-text-font-family);font-size:var(--comp-select-group-text-size);font-weight:var(--comp-select-group-text-font-weight);line-height:var(--comp-select-group-text-line-height);color:var(--comp-select-group-text-color)}.ap-selection-dropdown__group-label{display:flex;align-items:center;flex:1;font-weight:700;color:var(--ref-color-grey-100)}.ap-selection-dropdown__group-label ap-checkbox{--comp-forms-label-font-weight: 700}.ap-selection-dropdown__header{border-bottom:1px solid var(--ref-color-grey-10);flex-shrink:0;display:flex;flex-direction:column}.ap-selection-dropdown__header .ap-selection-dropdown__header-top{display:flex;align-items:center;justify-content:space-between;padding:var(--ref-spacing-xs) var(--ref-spacing-sm)}.ap-selection-dropdown__header .ap-selection-dropdown__title{margin:0;font-size:var(--ref-font-size-md);font-weight:var(--ref-font-weight-bold);color:var(--ref-color-grey-100);flex:1}.ap-selection-dropdown__header ap-input-search{width:100%;padding:0 var(--ref-spacing-xxs) var(--ref-spacing-xxs)}.ap-selection-dropdown__header.ap-selection-dropdown__header--select-all ap-input-search{padding-bottom:0}.ap-selection-dropdown__header .ap-selection-dropdown__select-all{display:flex;align-items:center;height:var(--comp-select-one-line-height);padding:0 var(--ref-spacing-sm)}.ap-selection-dropdown__header .ap-selection-dropdown__select-all ap-checkbox{--comp-forms-label-font-weight: var(--ref-font-weight-bold)}.ap-selection-dropdown__items{padding:var(--ref-spacing-xxs) 0;flex:1;overflow-y:auto;min-height:0}.ap-selection-dropdown__no-results{padding:var(--ref-spacing-xxs) var(--ref-spacing-sm);color:var(--ref-color-grey-80);font-size:var(--ref-font-size-sm);font-style:italic}.ap-selection-dropdown__footer{height:40px;padding:var(--ref-spacing-xs) var(--ref-spacing-sm);border-top:1px solid var(--ref-color-grey-10);flex-shrink:0;display:flex;align-items:center;justify-content:flex-start}.ap-selection-dropdown__selected-section{margin-bottom:var(--ref-spacing-xxs);border-bottom:1px solid var(--ref-color-grey-10);padding-bottom:var(--ref-spacing-xxs)}.ap-selection-dropdown__selected-section ::ng-deep ap-checkbox{--comp-forms-label-font-weight: 700}.ap-selection-dropdown__status{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}\n"], dependencies: [{ kind: "component", type: CheckboxComponent, selector: "ap-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "disabled", "indeterminate", "checked", "fullyControlled", "presentational", "required", "name"], outputs: ["change"] }, { kind: "directive", type: DropdownContentDirective, selector: "ng-template[apDropdownContent]" }, { kind: "directive", type: DropdownOptionDirective, selector: "[apDropdownOption]", inputs: ["apDropdownOption", "apDropdownOptionDisabled"] }, { kind: "component", type: DropdownItemMultipleOneLineComponent, selector: "ap-dropdown-item-multiple-one-line", inputs: ["text", "selected", "indeterminate", "htmlId", "disabled", "avatarUrl", "symbolId", "disabledTooltip", "badgeText", "dividerEnabled", "presentational", "onlyEnabled", "onlyText", "isFeatureLocked", "roundedAvatar", "network", "symbolColor", "symbolTooltipText"], outputs: ["selectOnly", "lockedFeatureClicked"] }, { kind: "component", type: DropdownItemSingleOneLineComponent, selector: "ap-dropdown-item-single-one-line", inputs: ["text", "selected", "disabled", "avatarUrl", "showAvatarInitials", "symbolId", "disabledTooltip", "badgeText", "dividerEnabled", "network", "roundedAvatar", "isFeatureLocked", "standaloneModeEnabled"], outputs: ["lockedFeatureClicked"] }, { kind: "component", type: DropdownPanelComponent, selector: "ap-dropdown-panel", inputs: ["placement", "showBackdrop", "panelClass", "canDismiss"], outputs: ["opened", "closed"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: InputSearchComponent, selector: "ap-input-search", inputs: ["id", "placeholder", "clearable", "ariaControls", "ariaActiveDescendant"], outputs: ["focus", "blur", "keyup"] }, { kind: "component", type: SymbolComponent, selector: "ap-symbol", inputs: ["symbolId", "color", "size"], outputs: ["sizeChange"] }, { kind: "directive", type: TooltipDirective, selector: "[apTooltip]", inputs: ["apTooltip", "apTooltipPosition", "apTooltipShowDelay", "apTooltipHideDelay", "apTooltipDuration", "apTooltipDisabled", "apTooltipTruncatedTextOnly", "apTooltipTemplateContext", "apTooltipVirtualScrollElement", "apTooltipTrigger", "apTooltipArrow", "apTooltipAnchor", "apTooltipType", "apTooltipPresentationContext", "apTooltipListItems", "apTooltipShowAvatarCaption"], exportAs: ["apTooltip"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
582
573
|
}
|
|
583
574
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: SelectionDropdownComponent, decorators: [{
|
|
584
575
|
type: Component,
|
|
@@ -594,8 +585,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
|
|
|
594
585
|
InputSearchComponent,
|
|
595
586
|
SymbolComponent,
|
|
596
587
|
TooltipDirective,
|
|
597
|
-
], template: "<ap-dropdown-panel\n [placement]=\"placement()\"\n [showBackdrop]=\"showBackdrop()\"\n (closed)=\"onPanelClosed()\">\n <!-- `dialog`, not a combobox: a combobox must close when focus leaves it, and this panel holds a\n search field, a header, a footer and group checkboxes beside its lists \u2014 closing on Tab left\n every one of them unreachable. -->\n <div\n *apDropdownContent\n class=\"ap-selection-dropdown__content\"\n role=\"dialog\"\n tabindex=\"-1\"\n [attr.aria-label]=\"panelLabel()\"\n (keydown)=\"onOptionsKeyDown($event)\"\n [class.ap-selection-dropdown__content--single]=\"isSingleSelect()\"\n [style.width]=\"panelWidth()\">\n <!-- Header -->\n @if (headerVisible()) {\n <div\n class=\"ap-selection-dropdown__header\"\n [class.ap-selection-dropdown__header--select-all]=\"selectAllVisible()\">\n @if (headerTopVisible()) {\n <div class=\"ap-selection-dropdown__header-top\">\n @if (texts().title) {\n <h3 class=\"ap-selection-dropdown__title\">\n {{ texts().title }}\n </h3>\n }\n @if (texts().headerButton) {\n <button\n type=\"button\"\n class=\"ap-link standalone\"\n [id]=\"headerButtonId()\"\n (click)=\"onHeaderButtonClick()\">\n <ap-symbol [symbolId]=\"headerButtonSymbolId()\" />\n {{ texts().headerButton }}\n </button>\n }\n </div>\n }\n @if (searchVisible()) {\n <ap-input-search\n #inputSearchElement\n [placeholder]=\"texts().searchPlaceholder\"\n [clearable]=\"true\"\n [ariaControls]=\"listboxId\"\n [ariaActiveDescendant]=\"activeDescendantId()\"\n [ngModel]=\"searchTerm()\"\n (blur)=\"onSearchBlur()\"\n (ngModelChange)=\"onSearchTermChange($event)\" />\n }\n @if (selectAllVisible()) {\n <div class=\"ap-selection-dropdown__select-all\">\n <ap-checkbox\n class=\"centered\"\n name=\"ap-selection-dropdown-select-all\"\n [checked]=\"selectAllState() === 'selected'\"\n [indeterminate]=\"selectAllState() === 'partial'\"\n (change)=\"onSelectAllToggle($event)\">\n {{ selectAllLabel() }}\n </ap-checkbox>\n </div>\n }\n </div>\n }\n\n <!-- Selection dropdown items -->\n <div\n class=\"ap-selection-dropdown__items\"\n [id]=\"listboxId\"\n [attr.role]=\"isSingleSelect() ? 'listbox' : null\"\n [attr.aria-label]=\"isSingleSelect() ? (texts().title ?? null) : null\">\n @if (filteredItems().length === 0 && searchTerm()) {\n <div class=\"ap-selection-dropdown__no-results\">\n {{ texts().noResults }}\n </div>\n } @else if (isSingleSelect()) {\n <!-- One listbox: a group holds only options and its presentational header (WAI-ARIA APG grouped listbox). -->\n @for (entry of singleEntries(); track entry.kind === 'group' ? 'group:' + entry.label : entry.item.htmlId) {\n @if (entry.kind === 'group') {\n <div\n role=\"group\"\n class=\"ap-selection-dropdown__group\"\n [attr.aria-labelledby]=\"groupHeaderId($index)\">\n <div\n role=\"presentation\"\n class=\"ap-selection-dropdown__group-title\"\n [id]=\"groupHeaderId($index)\">\n {{ entry.label }}\n </div>\n @for (item of entry.items; track item.htmlId) {\n <ng-container *ngTemplateOutlet=\"singleOption; context: { $implicit: item }\" />\n }\n </div>\n } @else {\n <ng-container *ngTemplateOutlet=\"singleOption; context: { $implicit: entry.item }\" />\n }\n }\n\n <ng-template\n #singleOption\n let-item>\n <button\n type=\"button\"\n role=\"option\"\n class=\"ap-selection-dropdown__option\"\n [id]=\"optionId(item)\"\n [apDropdownOption]=\"textsOf(item).label\"\n [apDropdownOptionDisabled]=\"!!(item.disabled || item.isFeatureLocked)\"\n [tabindex]=\"optionTabIndex(tabbableOption(item))\"\n [attr.aria-selected]=\"item.selected\"\n [attr.aria-disabled]=\"item.disabled || item.isFeatureLocked\"\n [attr.data-track]=\"item.dataTrack\"\n [apTooltip]=\"item.disabled ? (textsOf(item).disabledTooltip ?? null) : null\"\n apTooltipPosition=\"right\"\n (click)=\"onItemToggle(item)\">\n <ap-dropdown-item-single-one-line\n [text]=\"textsOf(item).label\"\n [selected]=\"item.selected\"\n [disabled]=\"item.disabled || false\"\n [avatarUrl]=\"item.avatarUrl\"\n [symbolId]=\"item.symbolId\"\n [badgeText]=\"textsOf(item).badge\"\n [isFeatureLocked]=\"item.isFeatureLocked || false\"\n [roundedAvatar]=\"!!item.roundedAvatar\"\n [network]=\"item.network\"\n [standaloneModeEnabled]=\"true\" />\n </button>\n </ng-template>\n } @else {\n <!-- A listbox owns only options, so each section is its own, and a group's checkbox sits beside it. -->\n @if (selectedItems().length > 0) {\n <div\n role=\"listbox\"\n aria-multiselectable=\"true\"\n class=\"ap-selection-dropdown__selected-section\"\n [attr.aria-label]=\"texts().selectedSection\">\n @for (item of selectedItems(); track item.htmlId) {\n @let grouped = false;\n <button\n type=\"button\"\n role=\"option\"\n class=\"ap-selection-dropdown__item-button\"\n [id]=\"optionId(item)\"\n [tabindex]=\"optionTabIndex(tabbableOption(item))\"\n [apDropdownOption]=\"textsOf(item).label\"\n [apDropdownOptionDisabled]=\"!!(item.disabled || item.isFeatureLocked)\"\n [attr.aria-selected]=\"item.selected\"\n [class.ap-selection-dropdown__item-button--disabled]=\"item.disabled || item.isFeatureLocked\"\n [apTooltip]=\"textsOf(item).disabledTooltip\"\n (click)=\"onItemToggle(item)\">\n <ap-dropdown-item-multiple-one-line\n presentational\n class=\"ap-selection-dropdown__item\"\n [class.ap-selection-dropdown__item--grouped]=\"grouped\"\n [text]=\"textsOf(item).label\"\n [selected]=\"item.selected\"\n [indeterminate]=\"item.indeterminate ?? false\"\n [htmlId]=\"item.htmlId\"\n [disabled]=\"item.disabled || false\"\n [avatarUrl]=\"item.avatarUrl\"\n [symbolId]=\"item.symbolId\"\n [badgeText]=\"textsOf(item).badge\"\n [isFeatureLocked]=\"item.isFeatureLocked || false\"\n [roundedAvatar]=\"!!item.roundedAvatar\"\n [network]=\"item.network\"\n [symbolColor]=\"item.symbolColor\"\n [symbolTooltipText]=\"textsOf(item).symbolTooltip\" />\n </button>\n }\n </div>\n }\n\n <!-- Unselected zone: items & groups in first-encounter order -->\n @for (run of displayRuns(); track runKey(run)) {\n @if (run.kind === 'items') {\n <div\n role=\"listbox\"\n aria-multiselectable=\"true\"\n [attr.aria-label]=\"texts().title ?? texts().optionsSection\">\n @for (item of run.items; track item.htmlId) {\n @let grouped = false;\n <button\n type=\"button\"\n role=\"option\"\n class=\"ap-selection-dropdown__item-button\"\n [id]=\"optionId(item)\"\n [tabindex]=\"optionTabIndex(tabbableOption(item))\"\n [apDropdownOption]=\"textsOf(item).label\"\n [apDropdownOptionDisabled]=\"!!(item.disabled || item.isFeatureLocked)\"\n [attr.aria-selected]=\"item.selected\"\n [class.ap-selection-dropdown__item-button--disabled]=\"item.disabled || item.isFeatureLocked\"\n [apTooltip]=\"textsOf(item).disabledTooltip\"\n (click)=\"onItemToggle(item)\">\n <ap-dropdown-item-multiple-one-line\n presentational\n class=\"ap-selection-dropdown__item\"\n [class.ap-selection-dropdown__item--grouped]=\"grouped\"\n [text]=\"textsOf(item).label\"\n [selected]=\"item.selected\"\n [indeterminate]=\"item.indeterminate ?? false\"\n [htmlId]=\"item.htmlId\"\n [disabled]=\"item.disabled || false\"\n [avatarUrl]=\"item.avatarUrl\"\n [symbolId]=\"item.symbolId\"\n [badgeText]=\"textsOf(item).badge\"\n [isFeatureLocked]=\"item.isFeatureLocked || false\"\n [roundedAvatar]=\"!!item.roundedAvatar\"\n [network]=\"item.network\"\n [symbolColor]=\"item.symbolColor\"\n [symbolTooltipText]=\"textsOf(item).symbolTooltip\" />\n </button>\n }\n </div>\n } @else {\n <div class=\"ap-selection-dropdown__group\">\n <!-- Group header with checkbox -->\n <div class=\"ap-selection-dropdown__group-header\">\n <div class=\"ap-selection-dropdown__group-label\">\n <ap-checkbox\n class=\"centered\"\n [name]=\"run.label\"\n [checked]=\"groupSelectionStates()[run.label] === 'selected'\"\n [indeterminate]=\"groupSelectionStates()[run.label] === 'partial'\"\n (change)=\"onGroupToggle(run.label, $event)\">\n {{ run.label }}\n </ap-checkbox>\n </div>\n </div>\n\n <div\n role=\"listbox\"\n aria-multiselectable=\"true\"\n [attr.aria-label]=\"run.label\">\n @for (item of run.items; track item.htmlId) {\n @let grouped = true;\n <button\n type=\"button\"\n role=\"option\"\n class=\"ap-selection-dropdown__item-button\"\n [id]=\"optionId(item)\"\n [tabindex]=\"optionTabIndex(tabbableOption(item))\"\n [apDropdownOption]=\"textsOf(item).label\"\n [apDropdownOptionDisabled]=\"!!(item.disabled || item.isFeatureLocked)\"\n [attr.aria-selected]=\"item.selected\"\n [class.ap-selection-dropdown__item-button--disabled]=\"item.disabled || item.isFeatureLocked\"\n [apTooltip]=\"textsOf(item).disabledTooltip\"\n (click)=\"onItemToggle(item)\">\n <ap-dropdown-item-multiple-one-line\n presentational\n class=\"ap-selection-dropdown__item\"\n [class.ap-selection-dropdown__item--grouped]=\"grouped\"\n [text]=\"textsOf(item).label\"\n [selected]=\"item.selected\"\n [indeterminate]=\"item.indeterminate ?? false\"\n [htmlId]=\"item.htmlId\"\n [disabled]=\"item.disabled || false\"\n [avatarUrl]=\"item.avatarUrl\"\n [symbolId]=\"item.symbolId\"\n [badgeText]=\"textsOf(item).badge\"\n [isFeatureLocked]=\"item.isFeatureLocked || false\"\n [roundedAvatar]=\"!!item.roundedAvatar\"\n [network]=\"item.network\"\n [symbolColor]=\"item.symbolColor\"\n [symbolTooltipText]=\"textsOf(item).symbolTooltip\" />\n </button>\n }\n </div>\n </div>\n }\n }\n }\n </div>\n\n <div\n class=\"ap-selection-dropdown__status\"\n role=\"status\"\n aria-atomic=\"true\">\n {{ resultsAnnouncement() }}\n </div>\n\n <!-- Footer -->\n @if (texts().footerButton) {\n <div class=\"ap-selection-dropdown__footer\">\n <button\n type=\"button\"\n class=\"ap-link standalone\"\n [id]=\"footerButtonId()\"\n (click)=\"onFooterButtonClick()\">\n <ap-symbol [symbolId]=\"footerButtonSymbolId()\" />\n {{ texts().footerButton }}\n </button>\n </div>\n }\n </div>\n</ap-dropdown-panel>\n", styles: [":host{display:none}.ap-selection-dropdown__content{border-radius:inherit;overflow:hidden;z-index:1000;width:370px;display:flex;flex-direction:column;max-height:min(400px,var(--ap-floating-available-height, 100vh))}.ap-selection-dropdown__content--single{width:auto;min-width:160px}.ap-selection-dropdown__option{display:block;width:100%;padding:0;border:none;background:none;font:inherit;text-align:inherit}.ap-selection-dropdown__item-button{display:block;width:100%;padding:0;margin:0;border:none;background:transparent;text-align:left;cursor:pointer;outline:none}.ap-selection-dropdown__item-button:hover,.ap-selection-dropdown__item-button.ap-dropdown-option--active{background-color:var(--ref-color-electric-blue-10)}.ap-selection-dropdown__item-button:active{background-color:var(--ref-color-electric-blue-20)}.ap-selection-dropdown__item-button:focus{outline:none}.ap-selection-dropdown__item-button:focus-visible{outline:none}.ap-selection-dropdown__item-button.ap-selection-dropdown__item-button--disabled{pointer-events:none}.ap-selection-dropdown__item{display:flex;align-items:center;width:100%;min-height:40px;padding:var(--ref-spacing-xxs) var(--ref-spacing-sm);background:transparent;cursor:pointer;font-family:Averta}.ap-selection-dropdown__group-header{display:flex;align-items:center;padding:var(--ref-spacing-xxs) var(--ref-spacing-sm);border-top:1px solid var(--ref-color-grey-10);background:var(--ref-color-grey-bg)}.ap-selection-dropdown__group-title{padding:var(--comp-select-group-padding-vertical) var(--ref-spacing-sm);border-top:1px solid var(--comp-select-group-border-top-color);background:var(--comp-select-group-background-color);font-family:var(--comp-select-group-text-font-family);font-size:var(--comp-select-group-text-size);font-weight:var(--comp-select-group-text-font-weight);line-height:var(--comp-select-group-text-line-height);color:var(--comp-select-group-text-color)}.ap-selection-dropdown__group-label{display:flex;align-items:center;flex:1;font-weight:700;color:var(--ref-color-grey-100)}.ap-selection-dropdown__group-label ap-checkbox{--comp-forms-label-font-weight: 700}.ap-selection-dropdown__header{border-bottom:1px solid var(--ref-color-grey-10);flex-shrink:0;display:flex;flex-direction:column}.ap-selection-dropdown__header .ap-selection-dropdown__header-top{display:flex;align-items:center;justify-content:space-between;padding:var(--ref-spacing-xs) var(--ref-spacing-sm)}.ap-selection-dropdown__header .ap-selection-dropdown__title{margin:0;font-size:var(--ref-font-size-md);font-weight:var(--ref-font-weight-bold);color:var(--ref-color-grey-100);flex:1}.ap-selection-dropdown__header ap-input-search{width:100%;padding:0 var(--ref-spacing-xxs) var(--ref-spacing-xxs)}.ap-selection-dropdown__header.ap-selection-dropdown__header--select-all ap-input-search{padding-bottom:0}.ap-selection-dropdown__header .ap-selection-dropdown__select-all{display:flex;align-items:center;height:var(--comp-select-one-line-height);padding:0 var(--ref-spacing-sm)}.ap-selection-dropdown__header .ap-selection-dropdown__select-all ap-checkbox{--comp-forms-label-font-weight: var(--ref-font-weight-bold)}.ap-selection-dropdown__items{padding:var(--ref-spacing-xxs) 0;flex:1;overflow-y:auto;min-height:0}.ap-selection-dropdown__no-results{padding:var(--ref-spacing-xxs) var(--ref-spacing-sm);color:var(--ref-color-grey-80);font-size:var(--ref-font-size-sm);font-style:italic}.ap-selection-dropdown__footer{height:40px;padding:var(--ref-spacing-xs) var(--ref-spacing-sm);border-top:1px solid var(--ref-color-grey-10);flex-shrink:0;display:flex;align-items:center;justify-content:flex-start}.ap-selection-dropdown__selected-section{margin-bottom:var(--ref-spacing-xxs);border-bottom:1px solid var(--ref-color-grey-10);padding-bottom:var(--ref-spacing-xxs)}.ap-selection-dropdown__selected-section ::ng-deep ap-checkbox{--comp-forms-label-font-weight: 700}.ap-selection-dropdown__status{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}\n"] }]
|
|
598
|
-
}], ctorParameters: () => [], propDecorators: { panel: [{ type: i0.ViewChild, args: [i0.forwardRef(() => DropdownPanelComponent), { isSignal: true }] }], options: [{ type: i0.ViewChildren, args: [i0.forwardRef(() => DropdownOptionDirective), { isSignal: true }] }],
|
|
588
|
+
], template: "<ap-dropdown-panel\n [placement]=\"placement()\"\n [showBackdrop]=\"showBackdrop()\"\n (closed)=\"onPanelClosed()\">\n <!-- `dialog`, not a combobox: a combobox must close when focus leaves it, and this panel holds a\n search field, a header, a footer and group checkboxes beside its lists \u2014 closing on Tab left\n every one of them unreachable. -->\n <div\n *apDropdownContent\n class=\"ap-selection-dropdown__content\"\n role=\"dialog\"\n tabindex=\"-1\"\n [attr.aria-label]=\"panelLabel()\"\n (keydown)=\"onOptionsKeyDown($event)\"\n [class.ap-selection-dropdown__content--single]=\"isSingleSelect()\"\n [style.width]=\"panelWidth()\">\n <!-- Header -->\n @if (headerVisible()) {\n <div\n class=\"ap-selection-dropdown__header\"\n [class.ap-selection-dropdown__header--select-all]=\"selectAllVisible()\">\n @if (headerTopVisible()) {\n <div class=\"ap-selection-dropdown__header-top\">\n @if (title()) {\n <h3 class=\"ap-selection-dropdown__title\">\n {{ title() }}\n </h3>\n }\n @if (headerButtonText()) {\n <button\n type=\"button\"\n class=\"ap-link standalone\"\n [id]=\"headerButtonId()\"\n (click)=\"onHeaderButtonClick()\">\n <ap-symbol [symbolId]=\"headerButtonSymbolId()\" />\n {{ headerButtonText() }}\n </button>\n }\n </div>\n }\n @if (searchVisible()) {\n <ap-input-search\n #inputSearchElement\n [placeholder]=\"searchPlaceholderText()\"\n [clearable]=\"true\"\n [ariaControls]=\"listboxId\"\n [ariaActiveDescendant]=\"activeDescendantId()\"\n [ngModel]=\"searchTerm()\"\n (blur)=\"onSearchBlur()\"\n (ngModelChange)=\"onSearchTermChange($event)\" />\n }\n @if (selectAllVisible()) {\n <div class=\"ap-selection-dropdown__select-all\">\n <ap-checkbox\n class=\"centered\"\n name=\"ap-selection-dropdown-select-all\"\n [checked]=\"selectAllState() === 'selected'\"\n [indeterminate]=\"selectAllState() === 'partial'\"\n (change)=\"onSelectAllToggle($event)\">\n {{ selectAllLabel() }}\n </ap-checkbox>\n </div>\n }\n </div>\n }\n\n <!-- Selection dropdown items -->\n <div\n class=\"ap-selection-dropdown__items\"\n [id]=\"listboxId\"\n [attr.role]=\"isSingleSelect() ? 'listbox' : null\"\n [attr.aria-label]=\"isSingleSelect() ? (title() ?? null) : null\">\n @if (filteredItems().length === 0 && searchTerm()) {\n <div class=\"ap-selection-dropdown__no-results\">\n {{ noSearchResultsText() }}\n </div>\n } @else if (isSingleSelect()) {\n <!-- One listbox: a group holds only options and its presentational header (WAI-ARIA APG grouped listbox). -->\n @for (entry of singleEntries(); track entry.kind === 'group' ? 'group:' + entry.label : entry.item.htmlId) {\n @if (entry.kind === 'group') {\n <div\n role=\"group\"\n class=\"ap-selection-dropdown__group\"\n [attr.aria-labelledby]=\"groupHeaderId($index)\">\n <div\n role=\"presentation\"\n class=\"ap-selection-dropdown__group-title\"\n [id]=\"groupHeaderId($index)\">\n {{ entry.label }}\n </div>\n @for (item of entry.items; track item.htmlId) {\n <ng-container *ngTemplateOutlet=\"singleOption; context: { $implicit: item }\" />\n }\n </div>\n } @else {\n <ng-container *ngTemplateOutlet=\"singleOption; context: { $implicit: entry.item }\" />\n }\n }\n\n <ng-template\n #singleOption\n let-item>\n <button\n type=\"button\"\n role=\"option\"\n class=\"ap-selection-dropdown__option\"\n [id]=\"optionId(item)\"\n [apDropdownOption]=\"item.text\"\n [apDropdownOptionDisabled]=\"!!(item.disabled || item.isFeatureLocked)\"\n [tabindex]=\"optionTabIndex(tabbableOption(item))\"\n [attr.aria-selected]=\"item.selected\"\n [attr.aria-disabled]=\"item.disabled || item.isFeatureLocked\"\n [attr.data-track]=\"item.dataTrack\"\n [apTooltip]=\"item.disabled ? (item.disabledTooltip ?? null) : null\"\n apTooltipPosition=\"right\"\n (click)=\"onItemToggle(item)\">\n <ap-dropdown-item-single-one-line\n [text]=\"item.text\"\n [selected]=\"item.selected\"\n [disabled]=\"item.disabled || false\"\n [avatarUrl]=\"item.avatarUrl\"\n [symbolId]=\"item.symbolId\"\n [badgeText]=\"item.badgeText\"\n [isFeatureLocked]=\"item.isFeatureLocked || false\"\n [roundedAvatar]=\"!!item.roundedAvatar\"\n [network]=\"item.network\"\n [standaloneModeEnabled]=\"true\" />\n </button>\n </ng-template>\n } @else {\n <!-- A listbox owns only options, so each section is its own, and a group's checkbox sits beside it. -->\n @if (selectedItems().length > 0) {\n <div\n role=\"listbox\"\n aria-multiselectable=\"true\"\n class=\"ap-selection-dropdown__selected-section\"\n [attr.aria-label]=\"selectedSectionText()\">\n @for (item of selectedItems(); track item.htmlId) {\n @let grouped = false;\n <button\n type=\"button\"\n role=\"option\"\n class=\"ap-selection-dropdown__item-button\"\n [id]=\"optionId(item)\"\n [tabindex]=\"optionTabIndex(tabbableOption(item))\"\n [apDropdownOption]=\"item.text\"\n [apDropdownOptionDisabled]=\"!!(item.disabled || item.isFeatureLocked)\"\n [attr.aria-selected]=\"item.selected\"\n [class.ap-selection-dropdown__item-button--disabled]=\"item.disabled || item.isFeatureLocked\"\n [apTooltip]=\"item.disabledTooltip\"\n (click)=\"onItemToggle(item)\">\n <ap-dropdown-item-multiple-one-line\n presentational\n class=\"ap-selection-dropdown__item\"\n [class.ap-selection-dropdown__item--grouped]=\"grouped\"\n [text]=\"item.text\"\n [selected]=\"item.selected\"\n [indeterminate]=\"item.indeterminate ?? false\"\n [htmlId]=\"item.htmlId\"\n [disabled]=\"item.disabled || false\"\n [avatarUrl]=\"item.avatarUrl\"\n [symbolId]=\"item.symbolId\"\n [badgeText]=\"item.badgeText\"\n [isFeatureLocked]=\"item.isFeatureLocked || false\"\n [roundedAvatar]=\"!!item.roundedAvatar\"\n [network]=\"item.network\"\n [symbolColor]=\"item.symbolColor\"\n [symbolTooltipText]=\"item.symbolTooltipText\" />\n </button>\n }\n </div>\n }\n\n <!-- Unselected zone: items & groups in first-encounter order -->\n @for (run of displayRuns(); track runKey(run)) {\n @if (run.kind === 'items') {\n <div\n role=\"listbox\"\n aria-multiselectable=\"true\"\n [attr.aria-label]=\"title() ?? optionsSectionText()\">\n @for (item of run.items; track item.htmlId) {\n @let grouped = false;\n <button\n type=\"button\"\n role=\"option\"\n class=\"ap-selection-dropdown__item-button\"\n [id]=\"optionId(item)\"\n [tabindex]=\"optionTabIndex(tabbableOption(item))\"\n [apDropdownOption]=\"item.text\"\n [apDropdownOptionDisabled]=\"!!(item.disabled || item.isFeatureLocked)\"\n [attr.aria-selected]=\"item.selected\"\n [class.ap-selection-dropdown__item-button--disabled]=\"item.disabled || item.isFeatureLocked\"\n [apTooltip]=\"item.disabledTooltip\"\n (click)=\"onItemToggle(item)\">\n <ap-dropdown-item-multiple-one-line\n presentational\n class=\"ap-selection-dropdown__item\"\n [class.ap-selection-dropdown__item--grouped]=\"grouped\"\n [text]=\"item.text\"\n [selected]=\"item.selected\"\n [indeterminate]=\"item.indeterminate ?? false\"\n [htmlId]=\"item.htmlId\"\n [disabled]=\"item.disabled || false\"\n [avatarUrl]=\"item.avatarUrl\"\n [symbolId]=\"item.symbolId\"\n [badgeText]=\"item.badgeText\"\n [isFeatureLocked]=\"item.isFeatureLocked || false\"\n [roundedAvatar]=\"!!item.roundedAvatar\"\n [network]=\"item.network\"\n [symbolColor]=\"item.symbolColor\"\n [symbolTooltipText]=\"item.symbolTooltipText\" />\n </button>\n }\n </div>\n } @else {\n <div class=\"ap-selection-dropdown__group\">\n <!-- Group header with checkbox -->\n <div class=\"ap-selection-dropdown__group-header\">\n <div class=\"ap-selection-dropdown__group-label\">\n <ap-checkbox\n class=\"centered\"\n [name]=\"run.label\"\n [checked]=\"groupSelectionStates()[run.label] === 'selected'\"\n [indeterminate]=\"groupSelectionStates()[run.label] === 'partial'\"\n (change)=\"onGroupToggle(run.label, $event)\">\n {{ run.label }}\n </ap-checkbox>\n </div>\n </div>\n\n <div\n role=\"listbox\"\n aria-multiselectable=\"true\"\n [attr.aria-label]=\"run.label\">\n @for (item of run.items; track item.htmlId) {\n @let grouped = true;\n <button\n type=\"button\"\n role=\"option\"\n class=\"ap-selection-dropdown__item-button\"\n [id]=\"optionId(item)\"\n [tabindex]=\"optionTabIndex(tabbableOption(item))\"\n [apDropdownOption]=\"item.text\"\n [apDropdownOptionDisabled]=\"!!(item.disabled || item.isFeatureLocked)\"\n [attr.aria-selected]=\"item.selected\"\n [class.ap-selection-dropdown__item-button--disabled]=\"item.disabled || item.isFeatureLocked\"\n [apTooltip]=\"item.disabledTooltip\"\n (click)=\"onItemToggle(item)\">\n <ap-dropdown-item-multiple-one-line\n presentational\n class=\"ap-selection-dropdown__item\"\n [class.ap-selection-dropdown__item--grouped]=\"grouped\"\n [text]=\"item.text\"\n [selected]=\"item.selected\"\n [indeterminate]=\"item.indeterminate ?? false\"\n [htmlId]=\"item.htmlId\"\n [disabled]=\"item.disabled || false\"\n [avatarUrl]=\"item.avatarUrl\"\n [symbolId]=\"item.symbolId\"\n [badgeText]=\"item.badgeText\"\n [isFeatureLocked]=\"item.isFeatureLocked || false\"\n [roundedAvatar]=\"!!item.roundedAvatar\"\n [network]=\"item.network\"\n [symbolColor]=\"item.symbolColor\"\n [symbolTooltipText]=\"item.symbolTooltipText\" />\n </button>\n }\n </div>\n </div>\n }\n }\n }\n </div>\n\n <div\n class=\"ap-selection-dropdown__status\"\n role=\"status\"\n aria-atomic=\"true\">\n {{ resultsAnnouncement() }}\n </div>\n\n <!-- Footer -->\n @if (footerButtonText()) {\n <div class=\"ap-selection-dropdown__footer\">\n <button\n type=\"button\"\n class=\"ap-link standalone\"\n [id]=\"footerButtonId()\"\n (click)=\"onFooterButtonClick()\">\n <ap-symbol [symbolId]=\"footerButtonSymbolId()\" />\n {{ footerButtonText() }}\n </button>\n </div>\n }\n </div>\n</ap-dropdown-panel>\n", styles: [":host{display:none}.ap-selection-dropdown__content{border-radius:inherit;overflow:hidden;z-index:1000;width:370px;display:flex;flex-direction:column;max-height:min(400px,var(--ap-floating-available-height, 100vh))}.ap-selection-dropdown__content--single{width:auto;min-width:160px}.ap-selection-dropdown__option{display:block;width:100%;padding:0;border:none;background:none;font:inherit;text-align:inherit}.ap-selection-dropdown__item-button{display:block;width:100%;padding:0;margin:0;border:none;background:transparent;text-align:left;cursor:pointer;outline:none}.ap-selection-dropdown__item-button:hover,.ap-selection-dropdown__item-button.ap-dropdown-option--active{background-color:var(--ref-color-electric-blue-10)}.ap-selection-dropdown__item-button:active{background-color:var(--ref-color-electric-blue-20)}.ap-selection-dropdown__item-button:focus{outline:none}.ap-selection-dropdown__item-button:focus-visible{outline:none}.ap-selection-dropdown__item-button.ap-selection-dropdown__item-button--disabled{pointer-events:none}.ap-selection-dropdown__item{display:flex;align-items:center;width:100%;min-height:40px;padding:var(--ref-spacing-xxs) var(--ref-spacing-sm);background:transparent;cursor:pointer;font-family:Averta}.ap-selection-dropdown__group-header{display:flex;align-items:center;padding:var(--ref-spacing-xxs) var(--ref-spacing-sm);border-top:1px solid var(--ref-color-grey-10);background:var(--ref-color-grey-bg)}.ap-selection-dropdown__group-title{padding:var(--comp-select-group-padding-vertical) var(--ref-spacing-sm);border-top:1px solid var(--comp-select-group-border-top-color);background:var(--comp-select-group-background-color);font-family:var(--comp-select-group-text-font-family);font-size:var(--comp-select-group-text-size);font-weight:var(--comp-select-group-text-font-weight);line-height:var(--comp-select-group-text-line-height);color:var(--comp-select-group-text-color)}.ap-selection-dropdown__group-label{display:flex;align-items:center;flex:1;font-weight:700;color:var(--ref-color-grey-100)}.ap-selection-dropdown__group-label ap-checkbox{--comp-forms-label-font-weight: 700}.ap-selection-dropdown__header{border-bottom:1px solid var(--ref-color-grey-10);flex-shrink:0;display:flex;flex-direction:column}.ap-selection-dropdown__header .ap-selection-dropdown__header-top{display:flex;align-items:center;justify-content:space-between;padding:var(--ref-spacing-xs) var(--ref-spacing-sm)}.ap-selection-dropdown__header .ap-selection-dropdown__title{margin:0;font-size:var(--ref-font-size-md);font-weight:var(--ref-font-weight-bold);color:var(--ref-color-grey-100);flex:1}.ap-selection-dropdown__header ap-input-search{width:100%;padding:0 var(--ref-spacing-xxs) var(--ref-spacing-xxs)}.ap-selection-dropdown__header.ap-selection-dropdown__header--select-all ap-input-search{padding-bottom:0}.ap-selection-dropdown__header .ap-selection-dropdown__select-all{display:flex;align-items:center;height:var(--comp-select-one-line-height);padding:0 var(--ref-spacing-sm)}.ap-selection-dropdown__header .ap-selection-dropdown__select-all ap-checkbox{--comp-forms-label-font-weight: var(--ref-font-weight-bold)}.ap-selection-dropdown__items{padding:var(--ref-spacing-xxs) 0;flex:1;overflow-y:auto;min-height:0}.ap-selection-dropdown__no-results{padding:var(--ref-spacing-xxs) var(--ref-spacing-sm);color:var(--ref-color-grey-80);font-size:var(--ref-font-size-sm);font-style:italic}.ap-selection-dropdown__footer{height:40px;padding:var(--ref-spacing-xs) var(--ref-spacing-sm);border-top:1px solid var(--ref-color-grey-10);flex-shrink:0;display:flex;align-items:center;justify-content:flex-start}.ap-selection-dropdown__selected-section{margin-bottom:var(--ref-spacing-xxs);border-bottom:1px solid var(--ref-color-grey-10);padding-bottom:var(--ref-spacing-xxs)}.ap-selection-dropdown__selected-section ::ng-deep ap-checkbox{--comp-forms-label-font-weight: 700}.ap-selection-dropdown__status{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}\n"] }]
|
|
589
|
+
}], ctorParameters: () => [], propDecorators: { panel: [{ type: i0.ViewChild, args: [i0.forwardRef(() => DropdownPanelComponent), { isSignal: true }] }], options: [{ type: i0.ViewChildren, args: [i0.forwardRef(() => DropdownOptionDirective), { isSignal: true }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], selectedSectionText: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedSectionText", required: false }] }], optionsSectionText: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionsSectionText", required: false }] }], trigger: [{ type: i0.ContentChild, args: ['trigger', { isSignal: true }] }], headerButtonId: [{ type: i0.Input, args: [{ isSignal: true, alias: "headerButtonId", required: false }] }], footerButtonId: [{ type: i0.Input, args: [{ isSignal: true, alias: "footerButtonId", required: false }] }], items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], selectionMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectionMode", required: false }] }], searchEnabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchEnabled", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], footerButtonText: [{ type: i0.Input, args: [{ isSignal: true, alias: "footerButtonText", required: false }] }], footerButtonSymbolId: [{ type: i0.Input, args: [{ isSignal: true, alias: "footerButtonSymbolId", required: false }] }], headerButtonText: [{ type: i0.Input, args: [{ isSignal: true, alias: "headerButtonText", required: false }] }], headerButtonSymbolId: [{ type: i0.Input, args: [{ isSignal: true, alias: "headerButtonSymbolId", required: false }] }], selectAllEnabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectAllEnabled", required: false }] }], selectAllText: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectAllText", required: false }] }], selectAllCountText: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectAllCountText", required: false }] }], searchPlaceholderText: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchPlaceholderText", required: false }] }], noSearchResultsText: [{ type: i0.Input, args: [{ isSignal: true, alias: "noSearchResultsText", required: false }] }], searchResultsText: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchResultsText", required: false }] }], showBackdrop: [{ type: i0.Input, args: [{ isSignal: true, alias: "showBackdrop", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], placement: [{ type: i0.Input, args: [{ isSignal: true, alias: "placement", required: false }] }], panelWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelWidth", required: false }] }], opened: [{ type: i0.Output, args: ["opened"] }], closed: [{ type: i0.Output, args: ["closed"] }], selectionChange: [{ type: i0.Output, args: ["selectionChange"] }], footerButtonClick: [{ type: i0.Output, args: ["footerButtonClick"] }], headerButtonClick: [{ type: i0.Output, args: ["headerButtonClick"] }], searchInputChange: [{ type: i0.Output, args: ["searchInputChange"] }], searchTerm: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchTerm", required: false }] }, { type: i0.Output, args: ["searchTermChange"] }], inputSearchComponent: [{ type: i0.ViewChild, args: ['inputSearchElement', { isSignal: true }] }] } });
|
|
599
590
|
|
|
600
591
|
/**
|
|
601
592
|
* Generated bundle index. Do not edit.
|