@exhaustive-ui/core 3.0.0-alpha.0 → 3.0.0-alpha.1
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/fesm2022/exhaustive-ui-core-accordion.mjs +51 -78
- package/fesm2022/exhaustive-ui-core-accordion.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-animateonscroll.mjs +72 -73
- package/fesm2022/exhaustive-ui-core-animateonscroll.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-api.mjs +6 -13
- package/fesm2022/exhaustive-ui-core-api.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-autocomplete.mjs +485 -683
- package/fesm2022/exhaustive-ui-core-autocomplete.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-autofocus.mjs +21 -31
- package/fesm2022/exhaustive-ui-core-autofocus.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-avatar.mjs +47 -63
- package/fesm2022/exhaustive-ui-core-avatar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-badge.mjs +88 -115
- package/fesm2022/exhaustive-ui-core-badge.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-blockui.mjs +58 -91
- package/fesm2022/exhaustive-ui-core-blockui.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-breadcrumb.mjs +155 -169
- package/fesm2022/exhaustive-ui-core-breadcrumb.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-button.mjs +280 -385
- package/fesm2022/exhaustive-ui-core-button.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-carousel.mjs +379 -451
- package/fesm2022/exhaustive-ui-core-carousel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-cascadeselect.mjs +388 -507
- package/fesm2022/exhaustive-ui-core-cascadeselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-chart.mjs +75 -91
- package/fesm2022/exhaustive-ui-core-chart.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-checkbox.mjs +109 -160
- package/fesm2022/exhaustive-ui-core-checkbox.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-chip.mjs +98 -137
- package/fesm2022/exhaustive-ui-core-chip.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-colorpicker.mjs +123 -190
- package/fesm2022/exhaustive-ui-core-colorpicker.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-confirmdialog.mjs +157 -332
- package/fesm2022/exhaustive-ui-core-confirmdialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-confirmpopup.mjs +187 -210
- package/fesm2022/exhaustive-ui-core-confirmpopup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-contextmenu.mjs +315 -361
- package/fesm2022/exhaustive-ui-core-contextmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dataview.mjs +225 -272
- package/fesm2022/exhaustive-ui-core-dataview.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-datepicker.mjs +1012 -1157
- package/fesm2022/exhaustive-ui-core-datepicker.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dialog.mjs +370 -507
- package/fesm2022/exhaustive-ui-core-dialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dock.mjs +87 -115
- package/fesm2022/exhaustive-ui-core-dock.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dragdrop.mjs +98 -105
- package/fesm2022/exhaustive-ui-core-dragdrop.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-drawer.mjs +174 -235
- package/fesm2022/exhaustive-ui-core-drawer.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs +42 -280
- package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-editor.mjs +109 -121
- package/fesm2022/exhaustive-ui-core-editor.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-fieldset.mjs +90 -132
- package/fesm2022/exhaustive-ui-core-fieldset.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-fileupload.mjs +486 -541
- package/fesm2022/exhaustive-ui-core-fileupload.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-floatlabel.mjs +13 -16
- package/fesm2022/exhaustive-ui-core-floatlabel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-focustrap.mjs +44 -40
- package/fesm2022/exhaustive-ui-core-focustrap.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-galleria.mjs +642 -853
- package/fesm2022/exhaustive-ui-core-galleria.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-iconfield.mjs +15 -27
- package/fesm2022/exhaustive-ui-core-iconfield.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-baseicon.mjs +8 -13
- package/fesm2022/exhaustive-ui-core-icons-baseicon.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-image.mjs +209 -251
- package/fesm2022/exhaustive-ui-core-image.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-imagecompare.mjs +39 -48
- package/fesm2022/exhaustive-ui-core-imagecompare.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inplace.mjs +64 -98
- package/fesm2022/exhaustive-ui-core-inplace.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputgroup.mjs +10 -20
- package/fesm2022/exhaustive-ui-core-inputgroup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputgroupaddon.mjs +15 -24
- package/fesm2022/exhaustive-ui-core-inputgroupaddon.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputicon.mjs +11 -22
- package/fesm2022/exhaustive-ui-core-inputicon.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputmask.mjs +423 -392
- package/fesm2022/exhaustive-ui-core-inputmask.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputnumber.mjs +397 -469
- package/fesm2022/exhaustive-ui-core-inputnumber.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputotp.mjs +75 -95
- package/fesm2022/exhaustive-ui-core-inputotp.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputtext.mjs +27 -36
- package/fesm2022/exhaustive-ui-core-inputtext.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-keyfilter.mjs +29 -46
- package/fesm2022/exhaustive-ui-core-keyfilter.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-knob.mjs +140 -187
- package/fesm2022/exhaustive-ui-core-knob.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-listbox.mjs +365 -546
- package/fesm2022/exhaustive-ui-core-listbox.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-megamenu.mjs +320 -371
- package/fesm2022/exhaustive-ui-core-megamenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-menu.mjs +298 -348
- package/fesm2022/exhaustive-ui-core-menu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-menubar.mjs +277 -372
- package/fesm2022/exhaustive-ui-core-menubar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-metergroup.mjs +138 -166
- package/fesm2022/exhaustive-ui-core-metergroup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-multiselect.mjs +647 -835
- package/fesm2022/exhaustive-ui-core-multiselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-orderlist.mjs +337 -409
- package/fesm2022/exhaustive-ui-core-orderlist.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-organizationchart.mjs +114 -175
- package/fesm2022/exhaustive-ui-core-organizationchart.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-overlaybadge.mjs +22 -47
- package/fesm2022/exhaustive-ui-core-overlaybadge.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-paginator.mjs +232 -320
- package/fesm2022/exhaustive-ui-core-paginator.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-panel.mjs +114 -174
- package/fesm2022/exhaustive-ui-core-panel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-panelmenu.mjs +171 -282
- package/fesm2022/exhaustive-ui-core-panelmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-password.mjs +317 -377
- package/fesm2022/exhaustive-ui-core-password.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-picklist.mjs +557 -655
- package/fesm2022/exhaustive-ui-core-picklist.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-popover.mjs +154 -181
- package/fesm2022/exhaustive-ui-core-popover.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-rating.mjs +87 -119
- package/fesm2022/exhaustive-ui-core-rating.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-scroller.mjs +465 -596
- package/fesm2022/exhaustive-ui-core-scroller.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-scrollpanel.mjs +147 -155
- package/fesm2022/exhaustive-ui-core-scrollpanel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-scrolltop.mjs +81 -115
- package/fesm2022/exhaustive-ui-core-scrolltop.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-select.mjs +581 -784
- package/fesm2022/exhaustive-ui-core-select.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-selectbutton.mjs +84 -120
- package/fesm2022/exhaustive-ui-core-selectbutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-slider.mjs +322 -352
- package/fesm2022/exhaustive-ui-core-slider.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-speeddial.mjs +209 -268
- package/fesm2022/exhaustive-ui-core-speeddial.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-splitbutton.mjs +153 -249
- package/fesm2022/exhaustive-ui-core-splitbutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-splitter.mjs +221 -237
- package/fesm2022/exhaustive-ui-core-splitter.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-steps.mjs +56 -72
- package/fesm2022/exhaustive-ui-core-steps.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-styleclass.mjs +145 -146
- package/fesm2022/exhaustive-ui-core-styleclass.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-table.mjs +2213 -2543
- package/fesm2022/exhaustive-ui-core-table.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-terminal.mjs +50 -67
- package/fesm2022/exhaustive-ui-core-terminal.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-textarea.mjs +23 -36
- package/fesm2022/exhaustive-ui-core-textarea.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tieredmenu.mjs +318 -394
- package/fesm2022/exhaustive-ui-core-tieredmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-timeline.mjs +56 -74
- package/fesm2022/exhaustive-ui-core-timeline.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-togglebutton.mjs +86 -129
- package/fesm2022/exhaustive-ui-core-togglebutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-toggleswitch.mjs +57 -94
- package/fesm2022/exhaustive-ui-core-toggleswitch.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-toolbar.mjs +36 -55
- package/fesm2022/exhaustive-ui-core-toolbar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tooltip.mjs +264 -343
- package/fesm2022/exhaustive-ui-core-tooltip.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tree.mjs +508 -639
- package/fesm2022/exhaustive-ui-core-tree.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-treeselect.mjs +327 -421
- package/fesm2022/exhaustive-ui-core-treeselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-treetable.mjs +1267 -1473
- package/fesm2022/exhaustive-ui-core-treetable.mjs.map +1 -1
- package/package.json +5 -5
- package/schematics/migrations/remove-dead-inputs/migration.js +213 -7
- package/schematics/migrations/renamed-inputs/migration.js +97 -0
- package/schematics/migrations/styleclass-to-class/migration.js +92 -1
- package/schematics/migrations.json +7 -2
- package/schematics/utils/removed-inputs.js +0 -0
- package/schematics/utils/renamed-inputs.js +175 -0
- package/schematics/utils/styleclass.js +24 -8
- package/schematics/utils/versions.json +8 -8
- package/types/exhaustive-ui-core-accordion.d.ts +8 -24
- package/types/exhaustive-ui-core-animateonscroll.d.ts +19 -21
- package/types/exhaustive-ui-core-api.d.ts +2 -3
- package/types/exhaustive-ui-core-autocomplete.d.ts +103 -176
- package/types/exhaustive-ui-core-autofocus.d.ts +4 -7
- package/types/exhaustive-ui-core-avatar.d.ts +18 -25
- package/types/exhaustive-ui-core-badge.d.ts +13 -27
- package/types/exhaustive-ui-core-blockui.d.ts +18 -30
- package/types/exhaustive-ui-core-breadcrumb.d.ts +21 -22
- package/types/exhaustive-ui-core-button.d.ts +57 -89
- package/types/exhaustive-ui-core-carousel.d.ts +56 -82
- package/types/exhaustive-ui-core-cascadeselect.d.ts +77 -111
- package/types/exhaustive-ui-core-chart.d.ts +21 -29
- package/types/exhaustive-ui-core-checkbox.d.ts +25 -39
- package/types/exhaustive-ui-core-chip.d.ts +31 -38
- package/types/exhaustive-ui-core-colorpicker.d.ts +23 -57
- package/types/exhaustive-ui-core-confirmdialog.d.ts +39 -109
- package/types/exhaustive-ui-core-confirmpopup.d.ts +24 -43
- package/types/exhaustive-ui-core-contextmenu.d.ts +54 -71
- package/types/exhaustive-ui-core-dataview.d.ts +42 -65
- package/types/exhaustive-ui-core-datepicker.d.ts +109 -191
- package/types/exhaustive-ui-core-dialog.d.ts +73 -123
- package/types/exhaustive-ui-core-dock.d.ts +16 -25
- package/types/exhaustive-ui-core-dragdrop.d.ts +32 -36
- package/types/exhaustive-ui-core-drawer.d.ts +32 -64
- package/types/exhaustive-ui-core-dynamicdialog.d.ts +9 -54
- package/types/exhaustive-ui-core-editor.d.ts +15 -25
- package/types/exhaustive-ui-core-fieldset.d.ts +15 -35
- package/types/exhaustive-ui-core-fileupload.d.ts +69 -95
- package/types/exhaustive-ui-core-floatlabel.d.ts +4 -6
- package/types/exhaustive-ui-core-focustrap.d.ts +5 -10
- package/types/exhaustive-ui-core-galleria.d.ts +124 -194
- package/types/exhaustive-ui-core-iconfield.d.ts +5 -13
- package/types/exhaustive-ui-core-icons-baseicon.d.ts +4 -5
- package/types/exhaustive-ui-core-image.d.ts +35 -68
- package/types/exhaustive-ui-core-imagecompare.d.ts +19 -20
- package/types/exhaustive-ui-core-inplace.d.ts +30 -42
- package/types/exhaustive-ui-core-inputgroup.d.ts +2 -9
- package/types/exhaustive-ui-core-inputgroupaddon.d.ts +6 -10
- package/types/exhaustive-ui-core-inputicon.d.ts +4 -11
- package/types/exhaustive-ui-core-inputmask.d.ts +53 -66
- package/types/exhaustive-ui-core-inputnumber.d.ts +62 -84
- package/types/exhaustive-ui-core-inputotp.d.ts +16 -20
- package/types/exhaustive-ui-core-inputtext.d.ts +5 -8
- package/types/exhaustive-ui-core-keyfilter.d.ts +11 -15
- package/types/exhaustive-ui-core-knob.d.ts +45 -60
- package/types/exhaustive-ui-core-listbox.d.ts +90 -126
- package/types/exhaustive-ui-core-megamenu.d.ts +45 -66
- package/types/exhaustive-ui-core-menu.d.ts +33 -53
- package/types/exhaustive-ui-core-menubar.d.ts +38 -85
- package/types/exhaustive-ui-core-metergroup.d.ts +39 -48
- package/types/exhaustive-ui-core-multiselect.d.ts +166 -219
- package/types/exhaustive-ui-core-orderlist.d.ts +58 -81
- package/types/exhaustive-ui-core-organizationchart.d.ts +32 -67
- package/types/exhaustive-ui-core-overlaybadge.d.ts +10 -20
- package/types/exhaustive-ui-core-paginator.d.ts +41 -69
- package/types/exhaustive-ui-core-panel.d.ts +18 -45
- package/types/exhaustive-ui-core-panelmenu.d.ts +31 -76
- package/types/exhaustive-ui-core-password.d.ts +56 -93
- package/types/exhaustive-ui-core-picklist.d.ts +107 -121
- package/types/exhaustive-ui-core-popover.d.ts +23 -47
- package/types/exhaustive-ui-core-rating.d.ts +18 -26
- package/types/exhaustive-ui-core-scroller.d.ts +90 -120
- package/types/exhaustive-ui-core-scrollpanel.d.ts +35 -46
- package/types/exhaustive-ui-core-scrolltop.d.ts +28 -45
- package/types/exhaustive-ui-core-select.d.ts +137 -188
- package/types/exhaustive-ui-core-selectbutton.d.ts +35 -44
- package/types/exhaustive-ui-core-slider.d.ts +52 -67
- package/types/exhaustive-ui-core-speeddial.d.ts +40 -56
- package/types/exhaustive-ui-core-splitbutton.d.ts +31 -71
- package/types/exhaustive-ui-core-splitter.d.ts +47 -59
- package/types/exhaustive-ui-core-steps.d.ts +24 -31
- package/types/exhaustive-ui-core-styleclass.d.ts +27 -33
- package/types/exhaustive-ui-core-table.d.ts +349 -453
- package/types/exhaustive-ui-core-terminal.d.ts +10 -22
- package/types/exhaustive-ui-core-textarea.d.ts +7 -10
- package/types/exhaustive-ui-core-tieredmenu.d.ts +49 -84
- package/types/exhaustive-ui-core-timeline.d.ts +20 -28
- package/types/exhaustive-ui-core-togglebutton.d.ts +32 -48
- package/types/exhaustive-ui-core-toggleswitch.d.ts +26 -37
- package/types/exhaustive-ui-core-toolbar.d.ts +17 -25
- package/types/exhaustive-ui-core-tooltip.d.ts +53 -88
- package/types/exhaustive-ui-core-tree.d.ts +82 -119
- package/types/exhaustive-ui-core-treeselect.d.ts +63 -92
- package/types/exhaustive-ui-core-treetable.d.ts +203 -280
- package/types/exhaustive-ui-core-types-chip.d.ts +1 -1
|
@@ -4,10 +4,11 @@ import { moveItemInArray, DragDropModule, CDK_DRAG_CONFIG } from '@angular/cdk/d
|
|
|
4
4
|
import * as i2 from '@angular/common';
|
|
5
5
|
import { CommonModule } from '@angular/common';
|
|
6
6
|
import * as i0 from '@angular/core';
|
|
7
|
-
import { Injectable, InjectionToken, forwardRef, inject,
|
|
7
|
+
import { Injectable, InjectionToken, forwardRef, inject, input, afterEveryRender, booleanAttribute, numberAttribute, computed, output, viewChild, contentChild, contentChildren, linkedSignal, signal, HostListener, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
|
8
|
+
import { toSignal } from '@angular/core/rxjs-interop';
|
|
8
9
|
import * as i3 from '@angular/forms';
|
|
9
10
|
import { NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
|
|
10
|
-
import {
|
|
11
|
+
import { uuid, isNotEmpty, equals, focus, getFirstFocusableElement, isEmpty, isPrintableCharacter, resolveFieldData, findSingle, findLastIndex, isFunction } from '@exhaustive-ui/utils';
|
|
11
12
|
import { FilterService, Header, Footer, PrimeTemplate, SharedModule } from '@exhaustive-ui/core/api';
|
|
12
13
|
import { PARENT_INSTANCE } from '@exhaustive-ui/core/basecomponent';
|
|
13
14
|
import { BaseEditableHolder } from '@exhaustive-ui/core/baseeditableholder';
|
|
@@ -66,7 +67,7 @@ const classes = {
|
|
|
66
67
|
root: ({ instance }) => [
|
|
67
68
|
'p-listbox p-component',
|
|
68
69
|
{
|
|
69
|
-
'p-listbox-striped': instance.striped,
|
|
70
|
+
'p-listbox-striped': instance.striped(),
|
|
70
71
|
'p-disabled': instance.$disabled(),
|
|
71
72
|
'p-invalid': instance.invalid(),
|
|
72
73
|
'p-listbox-fluid': instance.fluid(),
|
|
@@ -81,7 +82,7 @@ const classes = {
|
|
|
81
82
|
option: ({ instance, option, i, scrollerOptions }) => [
|
|
82
83
|
'p-listbox-option',
|
|
83
84
|
{
|
|
84
|
-
'p-listbox-option-selected': instance.isSelected(option) && instance.highlightOnSelect,
|
|
85
|
+
'p-listbox-option-selected': instance.isSelected(option) && instance.highlightOnSelect(),
|
|
85
86
|
'p-focus': instance.focusedOptionIndex() === instance.getOptionIndex(i, scrollerOptions),
|
|
86
87
|
'p-disabled': instance.isOptionDisabled(option)
|
|
87
88
|
}
|
|
@@ -166,279 +167,288 @@ const LISTBOX_VALUE_ACCESSOR = {
|
|
|
166
167
|
class Listbox extends BaseEditableHolder {
|
|
167
168
|
filterService = inject(FilterService);
|
|
168
169
|
componentName = 'Listbox';
|
|
169
|
-
hostName = ''
|
|
170
|
+
hostName = input('', /* @ts-ignore */
|
|
171
|
+
...(ngDevMode ? [{ debugName: "hostName" }] : /* istanbul ignore next */ []));
|
|
170
172
|
bindDirectiveInstance = inject(Bind, { self: true });
|
|
171
173
|
$pcListbox = inject(LISTBOX_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;
|
|
172
|
-
|
|
173
|
-
|
|
174
|
+
constructor() {
|
|
175
|
+
super();
|
|
176
|
+
afterEveryRender(() => this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root'])));
|
|
174
177
|
}
|
|
175
178
|
/**
|
|
176
179
|
* Unique identifier of the component.
|
|
177
180
|
* @group Props
|
|
178
181
|
*/
|
|
179
|
-
id
|
|
182
|
+
id = input(/* @ts-ignore */
|
|
183
|
+
...(ngDevMode ? [undefined, { debugName: "id" }] : /* istanbul ignore next */ []));
|
|
180
184
|
/**
|
|
181
185
|
* Text to display when the search is active. Defaults to global value in i18n translation configuration.
|
|
182
186
|
* @group Props
|
|
183
187
|
* @defaultValue '{0} results are available'
|
|
184
188
|
*/
|
|
185
|
-
searchMessage
|
|
189
|
+
searchMessage = input(/* @ts-ignore */
|
|
190
|
+
...(ngDevMode ? [undefined, { debugName: "searchMessage" }] : /* istanbul ignore next */ []));
|
|
186
191
|
/**
|
|
187
192
|
* Text to display when filtering does not return any results. Defaults to global value in i18n translation configuration.
|
|
188
193
|
* @group Props
|
|
189
194
|
* @defaultValue 'No selected item'
|
|
190
195
|
*/
|
|
191
|
-
emptySelectionMessage
|
|
196
|
+
emptySelectionMessage = input(/* @ts-ignore */
|
|
197
|
+
...(ngDevMode ? [undefined, { debugName: "emptySelectionMessage" }] : /* istanbul ignore next */ []));
|
|
192
198
|
/**
|
|
193
199
|
* Text to be displayed in hidden accessible field when options are selected. Defaults to global value in i18n translation configuration.
|
|
194
200
|
* @group Props
|
|
195
201
|
* @defaultValue '{0} items selected'
|
|
196
202
|
*/
|
|
197
|
-
selectionMessage
|
|
203
|
+
selectionMessage = input(/* @ts-ignore */
|
|
204
|
+
...(ngDevMode ? [undefined, { debugName: "selectionMessage" }] : /* istanbul ignore next */ []));
|
|
198
205
|
/**
|
|
199
206
|
* Whether to focus on the first visible or selected element when the overlay panel is shown.
|
|
200
207
|
* @group Props
|
|
201
208
|
*/
|
|
202
|
-
autoOptionFocus = true;
|
|
209
|
+
autoOptionFocus = input(true, { ...(ngDevMode ? { debugName: "autoOptionFocus" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
203
210
|
/**
|
|
204
211
|
* Defines a string that labels the input for accessibility.
|
|
205
212
|
* @group Props
|
|
206
213
|
*/
|
|
207
|
-
ariaLabel
|
|
214
|
+
ariaLabel = input(/* @ts-ignore */
|
|
215
|
+
...(ngDevMode ? [undefined, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
208
216
|
/**
|
|
209
217
|
* When enabled, the focused option is selected.
|
|
210
218
|
* @group Props
|
|
211
219
|
*/
|
|
212
|
-
selectOnFocus;
|
|
220
|
+
selectOnFocus = input(undefined, { ...(ngDevMode ? { debugName: "selectOnFocus" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
213
221
|
/**
|
|
214
222
|
* Locale to use in searching. The default locale is the host environment's current locale.
|
|
215
223
|
* @group Props
|
|
216
224
|
*/
|
|
217
|
-
searchLocale;
|
|
225
|
+
searchLocale = input(undefined, { ...(ngDevMode ? { debugName: "searchLocale" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
218
226
|
/**
|
|
219
227
|
* When enabled, the hovered option will be focused.
|
|
220
228
|
* @group Props
|
|
221
229
|
*/
|
|
222
|
-
focusOnHover = true;
|
|
230
|
+
focusOnHover = input(true, { ...(ngDevMode ? { debugName: "focusOnHover" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
223
231
|
/**
|
|
224
232
|
* Text to display when filtering.
|
|
225
233
|
* @group Props
|
|
226
234
|
*/
|
|
227
|
-
filterMessage
|
|
235
|
+
filterMessage = input(/* @ts-ignore */
|
|
236
|
+
...(ngDevMode ? [undefined, { debugName: "filterMessage" }] : /* istanbul ignore next */ []));
|
|
228
237
|
/**
|
|
229
238
|
* Fields used when filtering the options, defaults to optionLabel.
|
|
230
239
|
* @group Props
|
|
231
240
|
*/
|
|
232
|
-
filterFields
|
|
241
|
+
filterFields = input(/* @ts-ignore */
|
|
242
|
+
...(ngDevMode ? [undefined, { debugName: "filterFields" }] : /* istanbul ignore next */ []));
|
|
233
243
|
/**
|
|
234
244
|
* Defines if data is loaded and interacted with in lazy manner.
|
|
235
245
|
* @group Props
|
|
236
246
|
*/
|
|
237
|
-
lazy = false;
|
|
247
|
+
lazy = input(false, { ...(ngDevMode ? { debugName: "lazy" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
238
248
|
/**
|
|
239
249
|
* Whether the data should be loaded on demand during scroll.
|
|
240
250
|
* @group Props
|
|
241
251
|
*/
|
|
242
|
-
virtualScroll;
|
|
252
|
+
virtualScroll = input(undefined, { ...(ngDevMode ? { debugName: "virtualScroll" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
243
253
|
/**
|
|
244
254
|
* Height of an item in the list for VirtualScrolling.
|
|
245
255
|
* @group Props
|
|
246
256
|
*/
|
|
247
|
-
virtualScrollItemSize;
|
|
257
|
+
virtualScrollItemSize = input(undefined, { ...(ngDevMode ? { debugName: "virtualScrollItemSize" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
248
258
|
/**
|
|
249
259
|
* Whether to use the scroller feature. The properties of scroller component can be used like an object in it.
|
|
250
260
|
* @group Props
|
|
251
261
|
*/
|
|
252
|
-
virtualScrollOptions
|
|
262
|
+
virtualScrollOptions = input(/* @ts-ignore */
|
|
263
|
+
...(ngDevMode ? [undefined, { debugName: "virtualScrollOptions" }] : /* istanbul ignore next */ []));
|
|
253
264
|
/**
|
|
254
265
|
* Height of the viewport in pixels, a scrollbar is defined if height of list exceeds this value.
|
|
255
266
|
* @group Props
|
|
256
267
|
*/
|
|
257
|
-
scrollHeight = '14rem'
|
|
268
|
+
scrollHeight = input('14rem', /* @ts-ignore */
|
|
269
|
+
...(ngDevMode ? [{ debugName: "scrollHeight" }] : /* istanbul ignore next */ []));
|
|
258
270
|
/**
|
|
259
271
|
* Index of the element in tabbing order.
|
|
260
272
|
* @group Props
|
|
261
273
|
*/
|
|
262
|
-
tabindex = 0;
|
|
274
|
+
tabindex = input(0, { ...(ngDevMode ? { debugName: "tabindex" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
263
275
|
/**
|
|
264
276
|
* When specified, allows selecting multiple values.
|
|
265
277
|
* @group Props
|
|
266
278
|
*/
|
|
267
|
-
multiple;
|
|
268
|
-
/**
|
|
269
|
-
* Style class of the container.
|
|
270
|
-
* @deprecated since v20.0.0, use `class` instead.
|
|
271
|
-
* @group Props
|
|
272
|
-
*/
|
|
273
|
-
styleClass;
|
|
279
|
+
multiple = input(undefined, { ...(ngDevMode ? { debugName: "multiple" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
274
280
|
/**
|
|
275
281
|
* Inline style of the list element.
|
|
276
282
|
* @group Props
|
|
277
283
|
*/
|
|
278
|
-
listStyle
|
|
284
|
+
listStyle = input(/* @ts-ignore */
|
|
285
|
+
...(ngDevMode ? [undefined, { debugName: "listStyle" }] : /* istanbul ignore next */ []));
|
|
279
286
|
/**
|
|
280
287
|
* Style class of the list element.
|
|
281
288
|
* @group Props
|
|
282
289
|
*/
|
|
283
|
-
listStyleClass
|
|
290
|
+
listStyleClass = input(/* @ts-ignore */
|
|
291
|
+
...(ngDevMode ? [undefined, { debugName: "listStyleClass" }] : /* istanbul ignore next */ []));
|
|
284
292
|
/**
|
|
285
293
|
* When present, it specifies that the element value cannot be changed.
|
|
286
294
|
* @group Props
|
|
287
295
|
*/
|
|
288
|
-
readonly;
|
|
296
|
+
readonly = input(undefined, { ...(ngDevMode ? { debugName: "readonly" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
289
297
|
/**
|
|
290
298
|
* When specified, allows selecting items with checkboxes.
|
|
291
299
|
* @group Props
|
|
292
300
|
*/
|
|
293
|
-
checkbox = false;
|
|
301
|
+
checkbox = input(false, { ...(ngDevMode ? { debugName: "checkbox" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
294
302
|
/**
|
|
295
303
|
* When specified, displays a filter input at header.
|
|
296
304
|
* @group Props
|
|
297
305
|
*/
|
|
298
|
-
filter = false;
|
|
306
|
+
filter = input(false, { ...(ngDevMode ? { debugName: "filter" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
299
307
|
/**
|
|
300
308
|
* When filtering is enabled, filterBy decides which field or fields (comma separated) to search against.
|
|
301
309
|
* @group Props
|
|
302
310
|
*/
|
|
303
|
-
filterBy
|
|
311
|
+
filterBy = input(/* @ts-ignore */
|
|
312
|
+
...(ngDevMode ? [undefined, { debugName: "filterBy" }] : /* istanbul ignore next */ []));
|
|
304
313
|
/**
|
|
305
314
|
* Defines how the items are filtered.
|
|
306
315
|
* @group Props
|
|
307
316
|
*/
|
|
308
|
-
filterMatchMode = 'contains'
|
|
317
|
+
filterMatchMode = input('contains', /* @ts-ignore */
|
|
318
|
+
...(ngDevMode ? [{ debugName: "filterMatchMode" }] : /* istanbul ignore next */ []));
|
|
309
319
|
/**
|
|
310
320
|
* Locale to use in filtering. The default locale is the host environment's current locale.
|
|
311
321
|
* @group Props
|
|
312
322
|
*/
|
|
313
|
-
filterLocale
|
|
323
|
+
filterLocale = input(/* @ts-ignore */
|
|
324
|
+
...(ngDevMode ? [undefined, { debugName: "filterLocale" }] : /* istanbul ignore next */ []));
|
|
314
325
|
/**
|
|
315
326
|
* Defines how multiple items can be selected, when true metaKey needs to be pressed to select or unselect an item and when set to false selection of each item can be toggled individually. On touch enabled devices, metaKeySelection is turned off automatically.
|
|
316
327
|
* @group Props
|
|
317
328
|
*/
|
|
318
|
-
metaKeySelection = false;
|
|
329
|
+
metaKeySelection = input(false, { ...(ngDevMode ? { debugName: "metaKeySelection" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
319
330
|
/**
|
|
320
331
|
* A property to uniquely identify a value in options.
|
|
321
332
|
* @group Props
|
|
322
333
|
*/
|
|
323
|
-
dataKey
|
|
334
|
+
dataKey = input(/* @ts-ignore */
|
|
335
|
+
...(ngDevMode ? [undefined, { debugName: "dataKey" }] : /* istanbul ignore next */ []));
|
|
324
336
|
/**
|
|
325
337
|
* Whether header checkbox is shown in multiple mode.
|
|
326
338
|
* @group Props
|
|
327
339
|
*/
|
|
328
|
-
showToggleAll = true;
|
|
340
|
+
showToggleAll = input(true, { ...(ngDevMode ? { debugName: "showToggleAll" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
329
341
|
/**
|
|
330
342
|
* Name of the label field of an option.
|
|
331
343
|
* @group Props
|
|
332
344
|
*/
|
|
333
|
-
optionLabel
|
|
345
|
+
optionLabel = input(/* @ts-ignore */
|
|
346
|
+
...(ngDevMode ? [undefined, { debugName: "optionLabel" }] : /* istanbul ignore next */ []));
|
|
334
347
|
/**
|
|
335
348
|
* Name of the value field of an option.
|
|
336
349
|
* @group Props
|
|
337
350
|
*/
|
|
338
|
-
optionValue
|
|
351
|
+
optionValue = input(/* @ts-ignore */
|
|
352
|
+
...(ngDevMode ? [undefined, { debugName: "optionValue" }] : /* istanbul ignore next */ []));
|
|
339
353
|
/**
|
|
340
354
|
* Name of the options field of an option group.
|
|
341
355
|
* @group Props
|
|
342
356
|
*/
|
|
343
|
-
optionGroupChildren = 'items'
|
|
357
|
+
optionGroupChildren = input('items', /* @ts-ignore */
|
|
358
|
+
...(ngDevMode ? [{ debugName: "optionGroupChildren" }] : /* istanbul ignore next */ []));
|
|
344
359
|
/**
|
|
345
360
|
* Name of the label field of an option group.
|
|
346
361
|
* @group Props
|
|
347
362
|
*/
|
|
348
|
-
optionGroupLabel = 'label'
|
|
363
|
+
optionGroupLabel = input('label', /* @ts-ignore */
|
|
364
|
+
...(ngDevMode ? [{ debugName: "optionGroupLabel" }] : /* istanbul ignore next */ []));
|
|
349
365
|
/**
|
|
350
366
|
* Name of the disabled field of an option or function to determine disabled state.
|
|
351
367
|
* @group Props
|
|
352
368
|
*/
|
|
353
|
-
optionDisabled
|
|
369
|
+
optionDisabled = input(/* @ts-ignore */
|
|
370
|
+
...(ngDevMode ? [undefined, { debugName: "optionDisabled" }] : /* istanbul ignore next */ []));
|
|
354
371
|
/**
|
|
355
372
|
* Defines a string that labels the filter input.
|
|
356
373
|
* @group Props
|
|
357
374
|
*/
|
|
358
|
-
ariaFilterLabel
|
|
375
|
+
ariaFilterLabel = input(/* @ts-ignore */
|
|
376
|
+
...(ngDevMode ? [undefined, { debugName: "ariaFilterLabel" }] : /* istanbul ignore next */ []));
|
|
359
377
|
/**
|
|
360
378
|
* Defines placeholder of the filter input.
|
|
361
379
|
* @group Props
|
|
362
380
|
*/
|
|
363
|
-
filterPlaceHolder
|
|
381
|
+
filterPlaceHolder = input(/* @ts-ignore */
|
|
382
|
+
...(ngDevMode ? [undefined, { debugName: "filterPlaceHolder" }] : /* istanbul ignore next */ []));
|
|
364
383
|
/**
|
|
365
384
|
* Text to display when filtering does not return any results.
|
|
366
385
|
* @group Props
|
|
367
386
|
*/
|
|
368
|
-
emptyFilterMessage
|
|
387
|
+
emptyFilterMessage = input(/* @ts-ignore */
|
|
388
|
+
...(ngDevMode ? [undefined, { debugName: "emptyFilterMessage" }] : /* istanbul ignore next */ []));
|
|
369
389
|
/**
|
|
370
390
|
* Text to display when there is no data. Defaults to global value in i18n translation configuration.
|
|
371
391
|
* @group Props
|
|
372
392
|
*/
|
|
373
|
-
emptyMessage
|
|
393
|
+
emptyMessage = input(/* @ts-ignore */
|
|
394
|
+
...(ngDevMode ? [undefined, { debugName: "emptyMessage" }] : /* istanbul ignore next */ []));
|
|
374
395
|
/**
|
|
375
396
|
* Whether to display options as grouped when nested options are provided.
|
|
376
397
|
* @group Props
|
|
377
398
|
*/
|
|
378
|
-
group;
|
|
399
|
+
group = input(undefined, { ...(ngDevMode ? { debugName: "group" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
379
400
|
/**
|
|
380
401
|
* An array of selectitems to display as the available options.
|
|
381
402
|
* @group Props
|
|
382
403
|
*/
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
}
|
|
386
|
-
set options(val) {
|
|
387
|
-
this._options.set(val);
|
|
388
|
-
}
|
|
404
|
+
options = input(/* @ts-ignore */
|
|
405
|
+
...(ngDevMode ? [undefined, { debugName: "options" }] : /* istanbul ignore next */ []));
|
|
389
406
|
/**
|
|
390
407
|
* When specified, filter displays with this value.
|
|
391
408
|
* @group Props
|
|
392
409
|
*/
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
}
|
|
396
|
-
set filterValue(val) {
|
|
397
|
-
this._filterValue.set(val);
|
|
398
|
-
}
|
|
410
|
+
filterValue = input(/* @ts-ignore */
|
|
411
|
+
...(ngDevMode ? [undefined, { debugName: "filterValue" }] : /* istanbul ignore next */ []));
|
|
399
412
|
/**
|
|
400
413
|
* Whether all data is selected.
|
|
401
414
|
* @group Props
|
|
402
415
|
*/
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
}
|
|
406
|
-
set selectAll(value) {
|
|
407
|
-
this._selectAll = value;
|
|
408
|
-
}
|
|
416
|
+
selectAll = input(null, /* @ts-ignore */
|
|
417
|
+
...(ngDevMode ? [{ debugName: "selectAll" }] : /* istanbul ignore next */ []));
|
|
409
418
|
/**
|
|
410
419
|
* Whether to displays rows with alternating colors.
|
|
411
420
|
* @group Props
|
|
412
421
|
* @defaultValue false
|
|
413
422
|
*/
|
|
414
|
-
striped = false;
|
|
423
|
+
striped = input(false, { ...(ngDevMode ? { debugName: "striped" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
415
424
|
/**
|
|
416
425
|
* Whether the selected option will be add highlight class.
|
|
417
426
|
* @group Props
|
|
418
427
|
* @defaultValue true
|
|
419
428
|
*/
|
|
420
|
-
highlightOnSelect = true;
|
|
429
|
+
highlightOnSelect = input(true, { ...(ngDevMode ? { debugName: "highlightOnSelect" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
421
430
|
/**
|
|
422
431
|
* Whether the selected option will be shown with a check mark.
|
|
423
432
|
* @group Props
|
|
424
433
|
* @defaultValue false
|
|
425
434
|
*/
|
|
426
|
-
checkmark = false;
|
|
435
|
+
checkmark = input(false, { ...(ngDevMode ? { debugName: "checkmark" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
427
436
|
/**
|
|
428
437
|
* Whether to enable dragdrop based reordering.
|
|
429
438
|
* @group Props
|
|
430
439
|
*/
|
|
431
|
-
dragdrop = false;
|
|
440
|
+
dragdrop = input(false, { ...(ngDevMode ? { debugName: "dragdrop" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
432
441
|
/**
|
|
433
442
|
* Array to use for CDK drop list data binding. When not provided, uses options array.
|
|
434
443
|
* @group Props
|
|
435
444
|
*/
|
|
436
|
-
dropListData
|
|
445
|
+
dropListData = input(/* @ts-ignore */
|
|
446
|
+
...(ngDevMode ? [undefined, { debugName: "dropListData" }] : /* istanbul ignore next */ []));
|
|
437
447
|
/**
|
|
438
448
|
* Computed property for stable CDK drop list data reference
|
|
439
449
|
*/
|
|
440
450
|
cdkDropData = computed(() => {
|
|
441
|
-
return this.dropListData || this._options();
|
|
451
|
+
return this.dropListData() || this._options();
|
|
442
452
|
}, /* @ts-ignore */
|
|
443
453
|
...(ngDevMode ? [{ debugName: "cdkDropData" }] : /* istanbul ignore next */ []));
|
|
444
454
|
/**
|
|
@@ -590,70 +600,80 @@ class Listbox extends BaseEditableHolder {
|
|
|
590
600
|
loaderTemplate = contentChild('loader', { ...(ngDevMode ? { debugName: "loaderTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
591
601
|
templates = contentChildren(PrimeTemplate, /* @ts-ignore */
|
|
592
602
|
...(ngDevMode ? [{ debugName: "templates" }] : /* istanbul ignore next */ []));
|
|
593
|
-
_itemTemplate
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
603
|
+
_itemTemplate = computed(() => this.templates()
|
|
604
|
+
.filter((item) => !['group', 'header', 'filter', 'footer', 'empty', 'emptyfilter', 'filtericon', 'checkicon', 'checkmark', 'loader'].includes(item.getType()))
|
|
605
|
+
.at(-1)?.template, /* @ts-ignore */
|
|
606
|
+
...(ngDevMode ? [{ debugName: "_itemTemplate" }] : /* istanbul ignore next */ []));
|
|
607
|
+
_groupTemplate = computed(() => this.findTemplate('group'), /* @ts-ignore */
|
|
608
|
+
...(ngDevMode ? [{ debugName: "_groupTemplate" }] : /* istanbul ignore next */ []));
|
|
609
|
+
_headerTemplate = computed(() => this.findTemplate('header'), /* @ts-ignore */
|
|
610
|
+
...(ngDevMode ? [{ debugName: "_headerTemplate" }] : /* istanbul ignore next */ []));
|
|
611
|
+
_filterTemplate = computed(() => this.findTemplate('filter'), /* @ts-ignore */
|
|
612
|
+
...(ngDevMode ? [{ debugName: "_filterTemplate" }] : /* istanbul ignore next */ []));
|
|
613
|
+
_footerTemplate = computed(() => this.findTemplate('footer'), /* @ts-ignore */
|
|
614
|
+
...(ngDevMode ? [{ debugName: "_footerTemplate" }] : /* istanbul ignore next */ []));
|
|
615
|
+
_emptyFilterTemplate = computed(() => this.findTemplate('emptyfilter'), /* @ts-ignore */
|
|
616
|
+
...(ngDevMode ? [{ debugName: "_emptyFilterTemplate" }] : /* istanbul ignore next */ []));
|
|
617
|
+
_emptyTemplate = computed(() => this.findTemplate('empty'), /* @ts-ignore */
|
|
618
|
+
...(ngDevMode ? [{ debugName: "_emptyTemplate" }] : /* istanbul ignore next */ []));
|
|
619
|
+
_filterIconTemplate = computed(() => this.findTemplate('filtericon'), /* @ts-ignore */
|
|
620
|
+
...(ngDevMode ? [{ debugName: "_filterIconTemplate" }] : /* istanbul ignore next */ []));
|
|
621
|
+
_checkIconTemplate = computed(() => this.findTemplate('checkicon'), /* @ts-ignore */
|
|
622
|
+
...(ngDevMode ? [{ debugName: "_checkIconTemplate" }] : /* istanbul ignore next */ []));
|
|
623
|
+
_checkmarkTemplate = computed(() => this.findTemplate('checkmark'), /* @ts-ignore */
|
|
624
|
+
...(ngDevMode ? [{ debugName: "_checkmarkTemplate" }] : /* istanbul ignore next */ []));
|
|
625
|
+
_loaderTemplate = computed(() => this.findTemplate('loader'), /* @ts-ignore */
|
|
626
|
+
...(ngDevMode ? [{ debugName: "_loaderTemplate" }] : /* istanbul ignore next */ []));
|
|
627
|
+
_filterValue = linkedSignal(() => this.filterValue() ?? null, /* @ts-ignore */
|
|
605
628
|
...(ngDevMode ? [{ debugName: "_filterValue" }] : /* istanbul ignore next */ []));
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
629
|
+
filterOptions = computed(() => this.filterBy()
|
|
630
|
+
? {
|
|
631
|
+
filter: (value) => this.onFilterChange(value),
|
|
632
|
+
reset: () => this.resetFilter()
|
|
633
|
+
}
|
|
634
|
+
: undefined, /* @ts-ignore */
|
|
635
|
+
...(ngDevMode ? [{ debugName: "filterOptions" }] : /* istanbul ignore next */ []));
|
|
636
|
+
value = signal(undefined, /* @ts-ignore */
|
|
637
|
+
...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
638
|
+
optionTouched = signal(undefined, /* @ts-ignore */
|
|
639
|
+
...(ngDevMode ? [{ debugName: "optionTouched" }] : /* istanbul ignore next */ []));
|
|
640
|
+
translation = toSignal(this.config.translationObserver, { initialValue: this.config.translation });
|
|
641
|
+
focused = signal(undefined, /* @ts-ignore */
|
|
642
|
+
...(ngDevMode ? [{ debugName: "focused" }] : /* istanbul ignore next */ []));
|
|
643
|
+
scrollerTabIndex = signal('0', /* @ts-ignore */
|
|
644
|
+
...(ngDevMode ? [{ debugName: "scrollerTabIndex" }] : /* istanbul ignore next */ []));
|
|
616
645
|
_componentStyle = inject(ListBoxStyle);
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
}
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
}
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
}
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
}
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
}
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
}
|
|
647
|
-
|
|
648
|
-
return this.filterBy?.split(',') || this.filterFields || [this.optionLabel];
|
|
649
|
-
}
|
|
650
|
-
get toggleAllAriaLabel() {
|
|
651
|
-
return this.config.translation.aria ? this.config.translation.aria[this.allSelected() ? 'selectAll' : 'unselectAll'] : undefined;
|
|
652
|
-
}
|
|
653
|
-
searchValue;
|
|
654
|
-
searchTimeout;
|
|
655
|
-
_selectAll = null;
|
|
656
|
-
_options = signal(null, /* @ts-ignore */
|
|
646
|
+
_id = computed(() => this.id() || uuid('pn_id_'), /* @ts-ignore */
|
|
647
|
+
...(ngDevMode ? [{ debugName: "_id" }] : /* istanbul ignore next */ []));
|
|
648
|
+
focusedOptionId = computed(() => (this.focusedOptionIndex() !== -1 ? `${this._id()}_${this.focusedOptionIndex()}` : null), /* @ts-ignore */
|
|
649
|
+
...(ngDevMode ? [{ debugName: "focusedOptionId" }] : /* istanbul ignore next */ []));
|
|
650
|
+
filterResultMessageText = computed(() => (isNotEmpty(this.visibleOptions()) ? this.filterMessageText().replaceAll('{0}', this.visibleOptions().length) : this.emptyFilterMessageText()), /* @ts-ignore */
|
|
651
|
+
...(ngDevMode ? [{ debugName: "filterResultMessageText" }] : /* istanbul ignore next */ []));
|
|
652
|
+
filterMessageText = computed(() => this.filterMessage() || this.translation().searchMessage || '', /* @ts-ignore */
|
|
653
|
+
...(ngDevMode ? [{ debugName: "filterMessageText" }] : /* istanbul ignore next */ []));
|
|
654
|
+
searchMessageText = computed(() => this.searchMessage() || this.translation().searchMessage || '', /* @ts-ignore */
|
|
655
|
+
...(ngDevMode ? [{ debugName: "searchMessageText" }] : /* istanbul ignore next */ []));
|
|
656
|
+
emptyFilterMessageText = computed(() => this.emptyFilterMessage() || this.translation().emptySearchMessage || this.translation().emptyFilterMessage || '', /* @ts-ignore */
|
|
657
|
+
...(ngDevMode ? [{ debugName: "emptyFilterMessageText" }] : /* istanbul ignore next */ []));
|
|
658
|
+
selectionMessageText = computed(() => this.selectionMessage() || this.translation().selectionMessage || '', /* @ts-ignore */
|
|
659
|
+
...(ngDevMode ? [{ debugName: "selectionMessageText" }] : /* istanbul ignore next */ []));
|
|
660
|
+
emptySelectionMessageText = computed(() => this.emptySelectionMessage() || this.translation().emptySelectionMessage || '', /* @ts-ignore */
|
|
661
|
+
...(ngDevMode ? [{ debugName: "emptySelectionMessageText" }] : /* istanbul ignore next */ []));
|
|
662
|
+
selectedMessageText = computed(() => (this.hasSelectedOption() ? this.selectionMessageText().replaceAll('{0}', this.multiple() ? this.modelValue().length : '1') : this.emptySelectionMessageText()), /* @ts-ignore */
|
|
663
|
+
...(ngDevMode ? [{ debugName: "selectedMessageText" }] : /* istanbul ignore next */ []));
|
|
664
|
+
ariaSetSize = computed(() => this.visibleOptions().filter((option) => !this.isOptionGroup(option)).length, /* @ts-ignore */
|
|
665
|
+
...(ngDevMode ? [{ debugName: "ariaSetSize" }] : /* istanbul ignore next */ []));
|
|
666
|
+
virtualScrollerDisabled = computed(() => !this.virtualScroll(), /* @ts-ignore */
|
|
667
|
+
...(ngDevMode ? [{ debugName: "virtualScrollerDisabled" }] : /* istanbul ignore next */ []));
|
|
668
|
+
searchFields = computed(() => this.filterBy()?.split(',') || this.filterFields() || [this.optionLabel()], /* @ts-ignore */
|
|
669
|
+
...(ngDevMode ? [{ debugName: "searchFields" }] : /* istanbul ignore next */ []));
|
|
670
|
+
toggleAllAriaLabel = computed(() => (this.translation().aria ? this.translation().aria[this.allSelected() ? 'selectAll' : 'unselectAll'] : undefined), /* @ts-ignore */
|
|
671
|
+
...(ngDevMode ? [{ debugName: "toggleAllAriaLabel" }] : /* istanbul ignore next */ []));
|
|
672
|
+
searchValue = signal(undefined, /* @ts-ignore */
|
|
673
|
+
...(ngDevMode ? [{ debugName: "searchValue" }] : /* istanbul ignore next */ []));
|
|
674
|
+
searchTimeout = signal(undefined, /* @ts-ignore */
|
|
675
|
+
...(ngDevMode ? [{ debugName: "searchTimeout" }] : /* istanbul ignore next */ []));
|
|
676
|
+
_options = linkedSignal(() => this.options() ?? null, /* @ts-ignore */
|
|
657
677
|
...(ngDevMode ? [{ debugName: "_options" }] : /* istanbul ignore next */ []));
|
|
658
678
|
startRangeIndex = signal(-1, /* @ts-ignore */
|
|
659
679
|
...(ngDevMode ? [{ debugName: "startRangeIndex" }] : /* istanbul ignore next */ []));
|
|
@@ -665,64 +685,17 @@ class Listbox extends BaseEditableHolder {
|
|
|
665
685
|
this.onFocusout(event);
|
|
666
686
|
}
|
|
667
687
|
visibleOptions = computed(() => {
|
|
668
|
-
const options = this.group ? this.flatOptions(this._options()) : this._options() || [];
|
|
669
|
-
return this._filterValue() ? this.filterService.filter(options, this.searchFields, this._filterValue(), this.filterMatchMode, this.filterLocale) : options;
|
|
688
|
+
const options = this.group() ? this.flatOptions(this._options()) : this._options() || [];
|
|
689
|
+
return this._filterValue() ? this.filterService.filter(options, this.searchFields(), this._filterValue(), this.filterMatchMode(), this.filterLocale()) : options;
|
|
670
690
|
}, /* @ts-ignore */
|
|
671
691
|
...(ngDevMode ? [{ debugName: "visibleOptions" }] : /* istanbul ignore next */ []));
|
|
672
692
|
onInit() {
|
|
673
|
-
this.id = this.id || uuid('pn_id_');
|
|
674
|
-
this.translationSubscription = this.config.translationObserver.subscribe(() => {
|
|
675
|
-
this.cd.markForCheck();
|
|
676
|
-
});
|
|
677
693
|
this.autoUpdateModel();
|
|
678
|
-
if (this.filterBy) {
|
|
679
|
-
this.filterOptions = {
|
|
680
|
-
filter: (value) => this.onFilterChange(value),
|
|
681
|
-
reset: () => this.resetFilter()
|
|
682
|
-
};
|
|
683
|
-
}
|
|
684
694
|
}
|
|
685
|
-
|
|
686
|
-
this.templates()
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
this._itemTemplate = item.template;
|
|
690
|
-
break;
|
|
691
|
-
case 'group':
|
|
692
|
-
this._groupTemplate = item.template;
|
|
693
|
-
break;
|
|
694
|
-
case 'header':
|
|
695
|
-
this._headerTemplate = item.template;
|
|
696
|
-
break;
|
|
697
|
-
case 'filter':
|
|
698
|
-
this._filterTemplate = item.template;
|
|
699
|
-
break;
|
|
700
|
-
case 'footer':
|
|
701
|
-
this._footerTemplate = item.template;
|
|
702
|
-
break;
|
|
703
|
-
case 'empty':
|
|
704
|
-
this._emptyTemplate = item.template;
|
|
705
|
-
break;
|
|
706
|
-
case 'emptyfilter':
|
|
707
|
-
this._emptyFilterTemplate = item.template;
|
|
708
|
-
break;
|
|
709
|
-
case 'filtericon':
|
|
710
|
-
this._filterIconTemplate = item.template;
|
|
711
|
-
break;
|
|
712
|
-
case 'checkicon':
|
|
713
|
-
this._checkIconTemplate = item.template;
|
|
714
|
-
break;
|
|
715
|
-
case 'checkmark':
|
|
716
|
-
this._checkmarkTemplate = item.template;
|
|
717
|
-
break;
|
|
718
|
-
case 'loader':
|
|
719
|
-
this._loaderTemplate = item.template;
|
|
720
|
-
break;
|
|
721
|
-
default:
|
|
722
|
-
this._itemTemplate = item.template;
|
|
723
|
-
break;
|
|
724
|
-
}
|
|
725
|
-
});
|
|
695
|
+
findTemplate(type) {
|
|
696
|
+
return this.templates()
|
|
697
|
+
.filter((item) => item.getType() === type)
|
|
698
|
+
.at(-1)?.template;
|
|
726
699
|
}
|
|
727
700
|
flatOptions(options) {
|
|
728
701
|
return (options || []).reduce((result, option, index) => {
|
|
@@ -733,7 +706,7 @@ class Listbox extends BaseEditableHolder {
|
|
|
733
706
|
}, []);
|
|
734
707
|
}
|
|
735
708
|
autoUpdateModel() {
|
|
736
|
-
if (this.selectOnFocus && this.autoOptionFocus && !this.hasSelectedOption() && !this.multiple) {
|
|
709
|
+
if (this.selectOnFocus() && this.autoOptionFocus() && !this.hasSelectedOption() && !this.multiple()) {
|
|
737
710
|
const focusedOptionIndex = this.findFirstFocusedOptionIndex();
|
|
738
711
|
this.focusedOptionIndex.set(focusedOptionIndex);
|
|
739
712
|
this.onOptionSelect(null, this.visibleOptions()[this.focusedOptionIndex()]);
|
|
@@ -744,27 +717,27 @@ class Listbox extends BaseEditableHolder {
|
|
|
744
717
|
* @group Method
|
|
745
718
|
*/
|
|
746
719
|
updateModel(value, event) {
|
|
747
|
-
this.value
|
|
720
|
+
this.value.set(value);
|
|
748
721
|
this.writeModelValue(value);
|
|
749
722
|
this.onModelChange(value);
|
|
750
|
-
this.onChange.emit({ originalEvent: event, value: this.value });
|
|
723
|
+
this.onChange.emit({ originalEvent: event, value: this.value() });
|
|
751
724
|
}
|
|
752
725
|
removeOption(option) {
|
|
753
726
|
return this.modelValue().filter((val) => !equals(val, this.getOptionValue(option), this.equalityKey() || ''));
|
|
754
727
|
}
|
|
755
728
|
onOptionSelect(event, option, index = -1) {
|
|
756
|
-
if (this.$disabled() || this.isOptionDisabled(option) || this.readonly) {
|
|
729
|
+
if (this.$disabled() || this.isOptionDisabled(option) || this.readonly()) {
|
|
757
730
|
return;
|
|
758
731
|
}
|
|
759
|
-
event && this.onClick.emit({ originalEvent: event, option, value: this.value });
|
|
760
|
-
this.multiple ? this.onOptionSelectMultiple(event, option) : this.onOptionSelectSingle(event, option);
|
|
761
|
-
this.optionTouched
|
|
732
|
+
event && this.onClick.emit({ originalEvent: event, option, value: this.value() });
|
|
733
|
+
this.multiple() ? this.onOptionSelectMultiple(event, option) : this.onOptionSelectSingle(event, option);
|
|
734
|
+
this.optionTouched.set(false);
|
|
762
735
|
index !== -1 && this.focusedOptionIndex.set(index);
|
|
763
736
|
}
|
|
764
737
|
onOptionSelectMultiple(event, option) {
|
|
765
738
|
let selected = this.isSelected(option);
|
|
766
739
|
let value = [];
|
|
767
|
-
let metaSelection = this.optionTouched ? false : this.metaKeySelection;
|
|
740
|
+
let metaSelection = this.optionTouched() ? false : this.metaKeySelection();
|
|
768
741
|
if (metaSelection) {
|
|
769
742
|
let metaKey = event.metaKey || event.ctrlKey;
|
|
770
743
|
if (selected) {
|
|
@@ -784,7 +757,7 @@ class Listbox extends BaseEditableHolder {
|
|
|
784
757
|
let selected = this.isSelected(option);
|
|
785
758
|
let valueChanged = false;
|
|
786
759
|
let value = null;
|
|
787
|
-
let metaSelection = this.optionTouched ? false : this.metaKeySelection;
|
|
760
|
+
let metaSelection = this.optionTouched() ? false : this.metaKeySelection();
|
|
788
761
|
if (metaSelection) {
|
|
789
762
|
let metaKey = event.metaKey || event.ctrlKey;
|
|
790
763
|
if (selected) {
|
|
@@ -820,11 +793,11 @@ class Listbox extends BaseEditableHolder {
|
|
|
820
793
|
}
|
|
821
794
|
}
|
|
822
795
|
onToggleAll(event) {
|
|
823
|
-
if (this.$disabled() || this.readonly) {
|
|
796
|
+
if (this.$disabled() || this.readonly()) {
|
|
824
797
|
return;
|
|
825
798
|
}
|
|
826
799
|
focus(this.headerCheckboxViewChild()?.nativeElement);
|
|
827
|
-
if (this.selectAll !== null) {
|
|
800
|
+
if (this.selectAll() !== null) {
|
|
828
801
|
this.onSelectAllChange.emit({
|
|
829
802
|
originalEvent: event,
|
|
830
803
|
checked: !this.allSelected()
|
|
@@ -837,34 +810,33 @@ class Listbox extends BaseEditableHolder {
|
|
|
837
810
|
.filter((option) => this.isValidOption(option))
|
|
838
811
|
.map((option) => this.getOptionValue(option));
|
|
839
812
|
this.updateModel(value, event);
|
|
840
|
-
this.onChange.emit({ originalEvent: event, value: this.value });
|
|
813
|
+
this.onChange.emit({ originalEvent: event, value: this.value() });
|
|
841
814
|
}
|
|
842
815
|
}
|
|
843
|
-
allSelected()
|
|
844
|
-
|
|
845
|
-
}
|
|
816
|
+
allSelected = computed(() => (this.selectAll() !== null ? this.selectAll() : isNotEmpty(this.visibleOptions()) && this.visibleOptions().every((option) => this.isOptionGroup(option) || this.isOptionDisabled(option) || this.isSelected(option))), /* @ts-ignore */
|
|
817
|
+
...(ngDevMode ? [{ debugName: "allSelected" }] : /* istanbul ignore next */ []));
|
|
846
818
|
onOptionTouchEnd() {
|
|
847
819
|
if (this.$disabled()) {
|
|
848
820
|
return;
|
|
849
821
|
}
|
|
850
|
-
this.optionTouched
|
|
822
|
+
this.optionTouched.set(true);
|
|
851
823
|
}
|
|
852
824
|
onOptionMouseDown(event, index) {
|
|
853
825
|
this.changeFocusedOptionIndex(event, index);
|
|
854
826
|
}
|
|
855
827
|
onOptionMouseEnter(event, index) {
|
|
856
|
-
if (this.focusOnHover && this.focused) {
|
|
828
|
+
if (this.focusOnHover() && this.focused()) {
|
|
857
829
|
this.changeFocusedOptionIndex(event, index);
|
|
858
830
|
}
|
|
859
831
|
}
|
|
860
832
|
onOptionDoubleClick(event, option) {
|
|
861
|
-
if (this.$disabled() || this.isOptionDisabled(option) || this.readonly) {
|
|
833
|
+
if (this.$disabled() || this.isOptionDisabled(option) || this.readonly()) {
|
|
862
834
|
return;
|
|
863
835
|
}
|
|
864
836
|
this.onDblClick.emit({
|
|
865
837
|
originalEvent: event,
|
|
866
838
|
option: option,
|
|
867
|
-
value: this.value
|
|
839
|
+
value: this.value()
|
|
868
840
|
});
|
|
869
841
|
}
|
|
870
842
|
onFirstHiddenFocus(event) {
|
|
@@ -892,54 +864,31 @@ class Listbox extends BaseEditableHolder {
|
|
|
892
864
|
const firstHiddenFocusableElement = this.firstHiddenFocusableElement();
|
|
893
865
|
if (!this.el.nativeElement.contains(event.relatedTarget)) {
|
|
894
866
|
firstHiddenFocusableElement.nativeElement.tabIndex = lastHiddenFocusableElement.nativeElement.tabIndex = undefined;
|
|
895
|
-
this.scrollerTabIndex
|
|
867
|
+
this.scrollerTabIndex.set('0');
|
|
896
868
|
}
|
|
897
869
|
}
|
|
898
870
|
onListFocus(event) {
|
|
899
|
-
this.focused
|
|
900
|
-
const focusedOptionIndex = this.focusedOptionIndex() !== -1 ? this.focusedOptionIndex() : this.autoOptionFocus ? this.findFirstFocusedOptionIndex() : this.findSelectedOptionIndex();
|
|
871
|
+
this.focused.set(true);
|
|
872
|
+
const focusedOptionIndex = this.focusedOptionIndex() !== -1 ? this.focusedOptionIndex() : this.autoOptionFocus() ? this.findFirstFocusedOptionIndex() : this.findSelectedOptionIndex();
|
|
901
873
|
this.focusedOptionIndex.set(focusedOptionIndex);
|
|
902
874
|
this.scrollInView(focusedOptionIndex);
|
|
903
875
|
this.onFocus.emit(event);
|
|
904
|
-
this.scrollerTabIndex
|
|
876
|
+
this.scrollerTabIndex.set('-1');
|
|
905
877
|
}
|
|
906
878
|
onListBlur(event) {
|
|
907
|
-
this.focused
|
|
879
|
+
this.focused.set(false);
|
|
908
880
|
this.focusedOptionIndex.set(-1);
|
|
909
881
|
this.startRangeIndex.set(-1);
|
|
910
|
-
this.searchValue
|
|
882
|
+
this.searchValue.set('');
|
|
911
883
|
this.onBlur.emit(event);
|
|
912
884
|
}
|
|
913
|
-
onHeaderCheckboxKeyDown(event) {
|
|
914
|
-
if (this.$disabled()) {
|
|
915
|
-
event.preventDefault();
|
|
916
|
-
return;
|
|
917
|
-
}
|
|
918
|
-
switch (event.code) {
|
|
919
|
-
case 'Space':
|
|
920
|
-
this.onToggleAll(event);
|
|
921
|
-
break;
|
|
922
|
-
case 'Enter':
|
|
923
|
-
this.onToggleAll(event);
|
|
924
|
-
break;
|
|
925
|
-
case 'Tab':
|
|
926
|
-
this.onHeaderCheckboxTabKeyDown(event);
|
|
927
|
-
break;
|
|
928
|
-
default:
|
|
929
|
-
break;
|
|
930
|
-
}
|
|
931
|
-
}
|
|
932
|
-
onHeaderCheckboxTabKeyDown(event) {
|
|
933
|
-
focus(this.listViewChild()?.nativeElement);
|
|
934
|
-
event.preventDefault();
|
|
935
|
-
}
|
|
936
885
|
onFilterChange(event) {
|
|
937
886
|
let value = event.target.value?.trim();
|
|
938
887
|
this._filterValue.set(value);
|
|
939
888
|
this.focusedOptionIndex.set(-1);
|
|
940
889
|
this.startRangeIndex.set(-1);
|
|
941
890
|
this.onFilter.emit({ originalEvent: event, filter: this._filterValue() });
|
|
942
|
-
!this.virtualScrollerDisabled && this.scroller()?.scrollToIndex(0);
|
|
891
|
+
!this.virtualScrollerDisabled() && this.scroller()?.scrollToIndex(0);
|
|
943
892
|
}
|
|
944
893
|
onFilterBlur(event) {
|
|
945
894
|
this.focusedOptionIndex.set(-1);
|
|
@@ -979,7 +928,7 @@ class Listbox extends BaseEditableHolder {
|
|
|
979
928
|
this.onShiftKey();
|
|
980
929
|
break;
|
|
981
930
|
default:
|
|
982
|
-
if (this.multiple && event.code === 'KeyA' && metaKey) {
|
|
931
|
+
if (this.multiple() && event.code === 'KeyA' && metaKey) {
|
|
983
932
|
const value = this.visibleOptions()
|
|
984
933
|
.filter((option) => this.isValidOption(option))
|
|
985
934
|
.map((option) => this.getOptionValue(option));
|
|
@@ -1025,7 +974,7 @@ class Listbox extends BaseEditableHolder {
|
|
|
1025
974
|
}
|
|
1026
975
|
onArrowDownKey(event) {
|
|
1027
976
|
const optionIndex = this.focusedOptionIndex() !== -1 ? this.findNextOptionIndex(this.focusedOptionIndex()) : this.findFirstFocusedOptionIndex();
|
|
1028
|
-
if (this.multiple && event.shiftKey) {
|
|
977
|
+
if (this.multiple() && event.shiftKey) {
|
|
1029
978
|
this.onOptionSelectRange(event, this.startRangeIndex(), optionIndex);
|
|
1030
979
|
}
|
|
1031
980
|
this.changeFocusedOptionIndex(event, optionIndex);
|
|
@@ -1033,7 +982,7 @@ class Listbox extends BaseEditableHolder {
|
|
|
1033
982
|
}
|
|
1034
983
|
onArrowUpKey(event) {
|
|
1035
984
|
const optionIndex = this.focusedOptionIndex() !== -1 ? this.findPrevOptionIndex(this.focusedOptionIndex()) : this.findLastFocusedOptionIndex();
|
|
1036
|
-
if (this.multiple && event.shiftKey) {
|
|
985
|
+
if (this.multiple() && event.shiftKey) {
|
|
1037
986
|
this.onOptionSelectRange(event, optionIndex, this.startRangeIndex());
|
|
1038
987
|
}
|
|
1039
988
|
this.changeFocusedOptionIndex(event, optionIndex);
|
|
@@ -1050,7 +999,7 @@ class Listbox extends BaseEditableHolder {
|
|
|
1050
999
|
else {
|
|
1051
1000
|
let metaKey = event.metaKey || event.ctrlKey;
|
|
1052
1001
|
let optionIndex = this.findFirstOptionIndex();
|
|
1053
|
-
if (this.multiple && event.shiftKey && metaKey) {
|
|
1002
|
+
if (this.multiple() && event.shiftKey && metaKey) {
|
|
1054
1003
|
this.onOptionSelectRange(event, optionIndex, this.startRangeIndex());
|
|
1055
1004
|
}
|
|
1056
1005
|
this.changeFocusedOptionIndex(event, optionIndex);
|
|
@@ -1067,7 +1016,7 @@ class Listbox extends BaseEditableHolder {
|
|
|
1067
1016
|
else {
|
|
1068
1017
|
let metaKey = event.metaKey || event.ctrlKey;
|
|
1069
1018
|
let optionIndex = this.findLastOptionIndex();
|
|
1070
|
-
if (this.multiple && event.shiftKey && metaKey) {
|
|
1019
|
+
if (this.multiple() && event.shiftKey && metaKey) {
|
|
1071
1020
|
this.onOptionSelectRange(event, this.startRangeIndex(), optionIndex);
|
|
1072
1021
|
}
|
|
1073
1022
|
this.changeFocusedOptionIndex(event, optionIndex);
|
|
@@ -1084,7 +1033,7 @@ class Listbox extends BaseEditableHolder {
|
|
|
1084
1033
|
}
|
|
1085
1034
|
onEnterKey(event) {
|
|
1086
1035
|
if (this.focusedOptionIndex() !== -1) {
|
|
1087
|
-
if (this.multiple && event.shiftKey)
|
|
1036
|
+
if (this.multiple() && event.shiftKey)
|
|
1088
1037
|
this.onOptionSelectRange(event, this.focusedOptionIndex());
|
|
1089
1038
|
else
|
|
1090
1039
|
this.onOptionSelect(event, this.visibleOptions()[this.focusedOptionIndex()]);
|
|
@@ -1099,22 +1048,22 @@ class Listbox extends BaseEditableHolder {
|
|
|
1099
1048
|
this.startRangeIndex.set(focusedOptionIndex);
|
|
1100
1049
|
}
|
|
1101
1050
|
getOptionGroupChildren(optionGroup) {
|
|
1102
|
-
return this.optionGroupChildren ? resolveFieldData(optionGroup, this.optionGroupChildren) : optionGroup.items;
|
|
1051
|
+
return this.optionGroupChildren() ? resolveFieldData(optionGroup, this.optionGroupChildren()) : optionGroup.items;
|
|
1103
1052
|
}
|
|
1104
1053
|
getOptionGroupLabel(optionGroup) {
|
|
1105
|
-
return this.optionGroupLabel ? resolveFieldData(optionGroup, this.optionGroupLabel) : optionGroup && optionGroup.label !== undefined ? optionGroup.label : optionGroup;
|
|
1054
|
+
return this.optionGroupLabel() ? resolveFieldData(optionGroup, this.optionGroupLabel()) : optionGroup && optionGroup.label !== undefined ? optionGroup.label : optionGroup;
|
|
1106
1055
|
}
|
|
1107
1056
|
getOptionLabel(option) {
|
|
1108
|
-
return this.optionLabel ? resolveFieldData(option, this.optionLabel) : option.label != undefined ? option.label : option;
|
|
1057
|
+
return this.optionLabel() ? resolveFieldData(option, this.optionLabel()) : option.label != undefined ? option.label : option;
|
|
1109
1058
|
}
|
|
1110
1059
|
getOptionIndex(index, scrollerOptions) {
|
|
1111
|
-
return this.virtualScrollerDisabled ? index : scrollerOptions && scrollerOptions.getItemOptions(index)['index'];
|
|
1060
|
+
return this.virtualScrollerDisabled() ? index : scrollerOptions && scrollerOptions.getItemOptions(index)['index'];
|
|
1112
1061
|
}
|
|
1113
1062
|
getOptionValue(option) {
|
|
1114
|
-
return this.optionValue ? resolveFieldData(option, this.optionValue) : !this.optionLabel && option && option.value !== undefined ? option.value : option;
|
|
1063
|
+
return this.optionValue() ? resolveFieldData(option, this.optionValue()) : !this.optionLabel() && option && option.value !== undefined ? option.value : option;
|
|
1115
1064
|
}
|
|
1116
1065
|
getAriaPosInset(index) {
|
|
1117
|
-
return ((this.optionGroupLabel
|
|
1066
|
+
return ((this.optionGroupLabel()
|
|
1118
1067
|
? index -
|
|
1119
1068
|
this.visibleOptions()
|
|
1120
1069
|
.slice(0, index)
|
|
@@ -1130,23 +1079,22 @@ class Listbox extends BaseEditableHolder {
|
|
|
1130
1079
|
}
|
|
1131
1080
|
});
|
|
1132
1081
|
}
|
|
1133
|
-
hasSelectedOption()
|
|
1134
|
-
|
|
1135
|
-
}
|
|
1082
|
+
hasSelectedOption = computed(() => isNotEmpty(this.modelValue()), /* @ts-ignore */
|
|
1083
|
+
...(ngDevMode ? [{ debugName: "hasSelectedOption" }] : /* istanbul ignore next */ []));
|
|
1136
1084
|
isOptionGroup(option) {
|
|
1137
|
-
return this.optionGroupLabel && option.optionGroup && option.group;
|
|
1085
|
+
return this.optionGroupLabel() && option.optionGroup && option.group;
|
|
1138
1086
|
}
|
|
1139
1087
|
changeFocusedOptionIndex(event, index) {
|
|
1140
1088
|
if (this.focusedOptionIndex() !== index) {
|
|
1141
1089
|
this.focusedOptionIndex.set(index);
|
|
1142
1090
|
this.scrollInView();
|
|
1143
|
-
if (this.selectOnFocus && !this.multiple) {
|
|
1091
|
+
if (this.selectOnFocus() && !this.multiple()) {
|
|
1144
1092
|
this.onOptionSelect(event, this.visibleOptions()[index]);
|
|
1145
1093
|
}
|
|
1146
1094
|
}
|
|
1147
1095
|
}
|
|
1148
1096
|
searchOptions(event, char) {
|
|
1149
|
-
this.searchValue
|
|
1097
|
+
this.searchValue.set((this.searchValue() || '') + char);
|
|
1150
1098
|
let optionIndex = -1;
|
|
1151
1099
|
let matched = false;
|
|
1152
1100
|
if (this.focusedOptionIndex() !== -1) {
|
|
@@ -1172,26 +1120,26 @@ class Listbox extends BaseEditableHolder {
|
|
|
1172
1120
|
if (optionIndex !== -1) {
|
|
1173
1121
|
this.changeFocusedOptionIndex(event, optionIndex);
|
|
1174
1122
|
}
|
|
1175
|
-
if (this.searchTimeout) {
|
|
1176
|
-
clearTimeout(this.searchTimeout);
|
|
1123
|
+
if (this.searchTimeout()) {
|
|
1124
|
+
clearTimeout(this.searchTimeout());
|
|
1177
1125
|
}
|
|
1178
|
-
this.searchTimeout
|
|
1179
|
-
this.searchValue
|
|
1180
|
-
this.searchTimeout
|
|
1181
|
-
}, 500);
|
|
1126
|
+
this.searchTimeout.set(setTimeout(() => {
|
|
1127
|
+
this.searchValue.set('');
|
|
1128
|
+
this.searchTimeout.set(null);
|
|
1129
|
+
}, 500));
|
|
1182
1130
|
return matched;
|
|
1183
1131
|
}
|
|
1184
1132
|
isOptionMatched(option) {
|
|
1185
|
-
return this.isValidOption(option) && this.getOptionLabel(option)?.toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue?.toLocaleLowerCase(this.filterLocale));
|
|
1133
|
+
return this.isValidOption(option) && this.getOptionLabel(option)?.toLocaleLowerCase(this.filterLocale()).startsWith(this.searchValue()?.toLocaleLowerCase(this.filterLocale()));
|
|
1186
1134
|
}
|
|
1187
1135
|
scrollInView(index = -1) {
|
|
1188
|
-
const id = index !== -1 ? `${this.
|
|
1136
|
+
const id = index !== -1 ? `${this._id()}_${index}` : this.focusedOptionId();
|
|
1189
1137
|
const element = findSingle(this.listViewChild()?.nativeElement, `li[id="${id}"]`);
|
|
1190
1138
|
if (element) {
|
|
1191
1139
|
element.scrollIntoView && element.scrollIntoView({ block: 'nearest', inline: 'nearest' });
|
|
1192
1140
|
}
|
|
1193
|
-
else if (!this.virtualScrollerDisabled) {
|
|
1194
|
-
this.virtualScroll && this.scroller()?.scrollToIndex(index !== -1 ? index : this.focusedOptionIndex());
|
|
1141
|
+
else if (!this.virtualScrollerDisabled()) {
|
|
1142
|
+
this.virtualScroll() && this.scroller()?.scrollToIndex(index !== -1 ? index : this.focusedOptionIndex());
|
|
1195
1143
|
}
|
|
1196
1144
|
}
|
|
1197
1145
|
findFirstOptionIndex() {
|
|
@@ -1240,7 +1188,7 @@ class Listbox extends BaseEditableHolder {
|
|
|
1240
1188
|
}
|
|
1241
1189
|
findSelectedOptionIndex() {
|
|
1242
1190
|
if (this.$filled()) {
|
|
1243
|
-
if (this.multiple) {
|
|
1191
|
+
if (this.multiple()) {
|
|
1244
1192
|
for (let index = this.modelValue().length - 1; index >= 0; index--) {
|
|
1245
1193
|
const value = this.modelValue()[index];
|
|
1246
1194
|
const matchedOptionIndex = this.visibleOptions().findIndex((option) => this.isValidSelectedOption(option) && this.isEquals(value, this.getOptionValue(option)));
|
|
@@ -1268,24 +1216,24 @@ class Listbox extends BaseEditableHolder {
|
|
|
1268
1216
|
}
|
|
1269
1217
|
return matchedOptionIndex > -1 ? matchedOptionIndex : index;
|
|
1270
1218
|
}
|
|
1271
|
-
equalityKey()
|
|
1272
|
-
|
|
1273
|
-
}
|
|
1219
|
+
equalityKey = computed(() => (this.optionValue() ? null : this.dataKey()), /* @ts-ignore */
|
|
1220
|
+
...(ngDevMode ? [{ debugName: "equalityKey" }] : /* istanbul ignore next */ []));
|
|
1274
1221
|
isValidSelectedOption(option) {
|
|
1275
1222
|
return this.isValidOption(option) && this.isSelected(option);
|
|
1276
1223
|
}
|
|
1277
1224
|
isOptionDisabled(option) {
|
|
1278
|
-
|
|
1279
|
-
|
|
1225
|
+
const optionDisabled = this.optionDisabled();
|
|
1226
|
+
if (isFunction(optionDisabled)) {
|
|
1227
|
+
return optionDisabled(option);
|
|
1280
1228
|
}
|
|
1281
|
-
return
|
|
1229
|
+
return optionDisabled ? resolveFieldData(option, optionDisabled) : false;
|
|
1282
1230
|
}
|
|
1283
1231
|
isEquals(value1, value2) {
|
|
1284
1232
|
return equals(value1, value2, this.equalityKey() || '');
|
|
1285
1233
|
}
|
|
1286
1234
|
isSelected(option) {
|
|
1287
1235
|
const optionValue = this.getOptionValue(option);
|
|
1288
|
-
if (this.multiple)
|
|
1236
|
+
if (this.multiple())
|
|
1289
1237
|
return (this.modelValue() || []).some((value) => this.isEquals(value, optionValue));
|
|
1290
1238
|
else
|
|
1291
1239
|
return this.isEquals(this.modelValue(), optionValue);
|
|
@@ -1293,12 +1241,10 @@ class Listbox extends BaseEditableHolder {
|
|
|
1293
1241
|
isValidOption(option) {
|
|
1294
1242
|
return option && !(this.isOptionDisabled(option) || this.isOptionGroup(option));
|
|
1295
1243
|
}
|
|
1296
|
-
isEmpty()
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
return this._filterValue() && (this._filterValue()?.trim().length || 0) > 0;
|
|
1301
|
-
}
|
|
1244
|
+
isEmpty = computed(() => !this._options()?.length || !this.visibleOptions()?.length, /* @ts-ignore */
|
|
1245
|
+
...(ngDevMode ? [{ debugName: "isEmpty" }] : /* istanbul ignore next */ []));
|
|
1246
|
+
hasFilter = computed(() => this._filterValue() && (this._filterValue()?.trim().length || 0) > 0, /* @ts-ignore */
|
|
1247
|
+
...(ngDevMode ? [{ debugName: "hasFilter" }] : /* istanbul ignore next */ []));
|
|
1302
1248
|
resetFilter() {
|
|
1303
1249
|
const filterViewChild = this.filterViewChild();
|
|
1304
1250
|
if (filterViewChild && filterViewChild.nativeElement) {
|
|
@@ -1318,7 +1264,7 @@ class Listbox extends BaseEditableHolder {
|
|
|
1318
1264
|
this.isDragging.set(false);
|
|
1319
1265
|
if (event) {
|
|
1320
1266
|
// If dragdrop is enabled and same container (reordering), automatically handle reordering
|
|
1321
|
-
if (this.dragdrop && event.previousContainer === event.container) {
|
|
1267
|
+
if (this.dragdrop() && event.previousContainer === event.container) {
|
|
1322
1268
|
const currentOptions = [...this._options()];
|
|
1323
1269
|
moveItemInArray(currentOptions, event.previousIndex, event.currentIndex);
|
|
1324
1270
|
this._options.set(currentOptions);
|
|
@@ -1328,19 +1274,16 @@ class Listbox extends BaseEditableHolder {
|
|
|
1328
1274
|
this.writeModelValue(this.modelValue());
|
|
1329
1275
|
this.onModelChange(this.modelValue());
|
|
1330
1276
|
}
|
|
1331
|
-
// Mark for change detection
|
|
1332
|
-
this.cd.markForCheck();
|
|
1333
1277
|
}
|
|
1334
1278
|
// Always emit the event for custom handling
|
|
1335
1279
|
this.onDrop.emit(event);
|
|
1336
1280
|
}
|
|
1337
1281
|
}
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
}
|
|
1282
|
+
containerDataP = computed(() => this.cn({
|
|
1283
|
+
invalid: this.invalid(),
|
|
1284
|
+
disabled: this.$disabled()
|
|
1285
|
+
}), /* @ts-ignore */
|
|
1286
|
+
...(ngDevMode ? [{ debugName: "containerDataP" }] : /* istanbul ignore next */ []));
|
|
1344
1287
|
/**
|
|
1345
1288
|
* @override
|
|
1346
1289
|
*
|
|
@@ -1348,17 +1291,11 @@ class Listbox extends BaseEditableHolder {
|
|
|
1348
1291
|
* Writes the value to the control.
|
|
1349
1292
|
*/
|
|
1350
1293
|
writeControlValue(value, setModelValue) {
|
|
1351
|
-
this.value
|
|
1352
|
-
setModelValue(this.value);
|
|
1353
|
-
this.cd.markForCheck();
|
|
1354
|
-
}
|
|
1355
|
-
onDestroy() {
|
|
1356
|
-
if (this.translationSubscription) {
|
|
1357
|
-
this.translationSubscription.unsubscribe();
|
|
1358
|
-
}
|
|
1294
|
+
this.value.set(value);
|
|
1295
|
+
setModelValue(this.value());
|
|
1359
1296
|
}
|
|
1360
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: Listbox, deps:
|
|
1361
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: Listbox, isStandalone: true, selector: "p-listbox, p-listBox, p-list-box", inputs: { hostName: { classPropertyName: "hostName", publicName: "hostName", isSignal:
|
|
1297
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: Listbox, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1298
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: Listbox, isStandalone: true, selector: "p-listbox, p-listBox, p-list-box", inputs: { hostName: { classPropertyName: "hostName", publicName: "hostName", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, searchMessage: { classPropertyName: "searchMessage", publicName: "searchMessage", isSignal: true, isRequired: false, transformFunction: null }, emptySelectionMessage: { classPropertyName: "emptySelectionMessage", publicName: "emptySelectionMessage", isSignal: true, isRequired: false, transformFunction: null }, selectionMessage: { classPropertyName: "selectionMessage", publicName: "selectionMessage", isSignal: true, isRequired: false, transformFunction: null }, autoOptionFocus: { classPropertyName: "autoOptionFocus", publicName: "autoOptionFocus", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, selectOnFocus: { classPropertyName: "selectOnFocus", publicName: "selectOnFocus", isSignal: true, isRequired: false, transformFunction: null }, searchLocale: { classPropertyName: "searchLocale", publicName: "searchLocale", isSignal: true, isRequired: false, transformFunction: null }, focusOnHover: { classPropertyName: "focusOnHover", publicName: "focusOnHover", isSignal: true, isRequired: false, transformFunction: null }, filterMessage: { classPropertyName: "filterMessage", publicName: "filterMessage", isSignal: true, isRequired: false, transformFunction: null }, filterFields: { classPropertyName: "filterFields", publicName: "filterFields", isSignal: true, isRequired: false, transformFunction: null }, lazy: { classPropertyName: "lazy", publicName: "lazy", isSignal: true, isRequired: false, transformFunction: null }, virtualScroll: { classPropertyName: "virtualScroll", publicName: "virtualScroll", isSignal: true, isRequired: false, transformFunction: null }, virtualScrollItemSize: { classPropertyName: "virtualScrollItemSize", publicName: "virtualScrollItemSize", isSignal: true, isRequired: false, transformFunction: null }, virtualScrollOptions: { classPropertyName: "virtualScrollOptions", publicName: "virtualScrollOptions", isSignal: true, isRequired: false, transformFunction: null }, scrollHeight: { classPropertyName: "scrollHeight", publicName: "scrollHeight", isSignal: true, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, listStyle: { classPropertyName: "listStyle", publicName: "listStyle", isSignal: true, isRequired: false, transformFunction: null }, listStyleClass: { classPropertyName: "listStyleClass", publicName: "listStyleClass", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, checkbox: { classPropertyName: "checkbox", publicName: "checkbox", isSignal: true, isRequired: false, transformFunction: null }, filter: { classPropertyName: "filter", publicName: "filter", isSignal: true, isRequired: false, transformFunction: null }, filterBy: { classPropertyName: "filterBy", publicName: "filterBy", isSignal: true, isRequired: false, transformFunction: null }, filterMatchMode: { classPropertyName: "filterMatchMode", publicName: "filterMatchMode", isSignal: true, isRequired: false, transformFunction: null }, filterLocale: { classPropertyName: "filterLocale", publicName: "filterLocale", isSignal: true, isRequired: false, transformFunction: null }, metaKeySelection: { classPropertyName: "metaKeySelection", publicName: "metaKeySelection", isSignal: true, isRequired: false, transformFunction: null }, dataKey: { classPropertyName: "dataKey", publicName: "dataKey", isSignal: true, isRequired: false, transformFunction: null }, showToggleAll: { classPropertyName: "showToggleAll", publicName: "showToggleAll", isSignal: true, isRequired: false, transformFunction: null }, optionLabel: { classPropertyName: "optionLabel", publicName: "optionLabel", isSignal: true, isRequired: false, transformFunction: null }, optionValue: { classPropertyName: "optionValue", publicName: "optionValue", isSignal: true, isRequired: false, transformFunction: null }, optionGroupChildren: { classPropertyName: "optionGroupChildren", publicName: "optionGroupChildren", isSignal: true, isRequired: false, transformFunction: null }, optionGroupLabel: { classPropertyName: "optionGroupLabel", publicName: "optionGroupLabel", isSignal: true, isRequired: false, transformFunction: null }, optionDisabled: { classPropertyName: "optionDisabled", publicName: "optionDisabled", isSignal: true, isRequired: false, transformFunction: null }, ariaFilterLabel: { classPropertyName: "ariaFilterLabel", publicName: "ariaFilterLabel", isSignal: true, isRequired: false, transformFunction: null }, filterPlaceHolder: { classPropertyName: "filterPlaceHolder", publicName: "filterPlaceHolder", isSignal: true, isRequired: false, transformFunction: null }, emptyFilterMessage: { classPropertyName: "emptyFilterMessage", publicName: "emptyFilterMessage", isSignal: true, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null }, group: { classPropertyName: "group", publicName: "group", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, filterValue: { classPropertyName: "filterValue", publicName: "filterValue", isSignal: true, isRequired: false, transformFunction: null }, selectAll: { classPropertyName: "selectAll", publicName: "selectAll", isSignal: true, isRequired: false, transformFunction: null }, striped: { classPropertyName: "striped", publicName: "striped", isSignal: true, isRequired: false, transformFunction: null }, highlightOnSelect: { classPropertyName: "highlightOnSelect", publicName: "highlightOnSelect", isSignal: true, isRequired: false, transformFunction: null }, checkmark: { classPropertyName: "checkmark", publicName: "checkmark", isSignal: true, isRequired: false, transformFunction: null }, dragdrop: { classPropertyName: "dragdrop", publicName: "dragdrop", isSignal: true, isRequired: false, transformFunction: null }, dropListData: { classPropertyName: "dropListData", publicName: "dropListData", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onChange: "onChange", onClick: "onClick", onDblClick: "onDblClick", onFilter: "onFilter", onFocus: "onFocus", onBlur: "onBlur", onSelectAllChange: "onSelectAllChange", onLazyLoad: "onLazyLoad", onDrop: "onDrop" }, host: { listeners: { "focusout": "onHostFocusOut($event)" }, properties: { "attr.id": "_id()", "class": "cx('root')", "attr.data-p": "containerDataP()" } }, providers: [
|
|
1362
1299
|
LISTBOX_VALUE_ACCESSOR,
|
|
1363
1300
|
ListBoxStyle,
|
|
1364
1301
|
{
|
|
@@ -1374,21 +1311,21 @@ class Listbox extends BaseEditableHolder {
|
|
|
1374
1311
|
#firstHiddenFocusableElement
|
|
1375
1312
|
role="presentation"
|
|
1376
1313
|
class="p-hidden-accessible p-hidden-focusable"
|
|
1377
|
-
[tabindex]="!$disabled() ? tabindex : -1"
|
|
1314
|
+
[tabindex]="!$disabled() ? tabindex() : -1"
|
|
1378
1315
|
(focus)="onFirstHiddenFocus($event)"
|
|
1379
1316
|
[attr.data-p-hidden-focusable]="true"
|
|
1380
1317
|
[pBind]="ptm('hiddenFirstFocusableElement')"
|
|
1381
1318
|
>
|
|
1382
1319
|
</span>
|
|
1383
|
-
<div [class]="cx('header')" *ngIf="headerFacet() || headerTemplate() || _headerTemplate" [pBind]="ptm('header')">
|
|
1320
|
+
<div [class]="cx('header')" *ngIf="headerFacet() || headerTemplate() || _headerTemplate()" [pBind]="ptm('header')">
|
|
1384
1321
|
<ng-content select="p-header"></ng-content>
|
|
1385
|
-
<ng-container *ngTemplateOutlet="headerTemplate() || _headerTemplate; context: { $implicit: modelValue(), options: visibleOptions() }"></ng-container>
|
|
1322
|
+
<ng-container *ngTemplateOutlet="headerTemplate() || _headerTemplate(); context: { $implicit: modelValue(), options: visibleOptions() }"></ng-container>
|
|
1386
1323
|
</div>
|
|
1387
|
-
<div [class]="cx('header')" *ngIf="(checkbox && multiple && showToggleAll) || filter" [pBind]="ptm('header')">
|
|
1324
|
+
<div [class]="cx('header')" *ngIf="(checkbox() && multiple() && showToggleAll()) || filter()" [pBind]="ptm('header')">
|
|
1388
1325
|
<p-checkbox
|
|
1389
1326
|
#headerchkbox
|
|
1390
1327
|
(onChange)="onToggleAll($event)"
|
|
1391
|
-
*ngIf="checkbox && multiple && showToggleAll"
|
|
1328
|
+
*ngIf="checkbox() && multiple() && showToggleAll()"
|
|
1392
1329
|
[class]="cx('optionCheckIcon')"
|
|
1393
1330
|
[ngModel]="allSelected()"
|
|
1394
1331
|
[ngModelOptions]="{ standalone: true }"
|
|
@@ -1396,21 +1333,21 @@ class Listbox extends BaseEditableHolder {
|
|
|
1396
1333
|
[tabindex]="-1"
|
|
1397
1334
|
[variant]="config.inputStyle() === 'filled' || config.inputVariant() === 'filled' ? 'filled' : 'outlined'"
|
|
1398
1335
|
[binary]="true"
|
|
1399
|
-
[attr.aria-label]="toggleAllAriaLabel"
|
|
1336
|
+
[attr.aria-label]="toggleAllAriaLabel()"
|
|
1400
1337
|
[pt]="ptm('pcCheckbox')"
|
|
1401
1338
|
[unstyled]="unstyled()"
|
|
1402
1339
|
>
|
|
1403
|
-
<ng-container *ngIf="checkIconTemplate() || _checkIconTemplate">
|
|
1340
|
+
<ng-container *ngIf="checkIconTemplate() || _checkIconTemplate()">
|
|
1404
1341
|
<ng-template #icon>
|
|
1405
|
-
<ng-template *ngTemplateOutlet="checkIconTemplate() || _checkIconTemplate; context: { $implicit: allSelected() }"></ng-template>
|
|
1342
|
+
<ng-template *ngTemplateOutlet="checkIconTemplate() || _checkIconTemplate(); context: { $implicit: allSelected() }"></ng-template>
|
|
1406
1343
|
</ng-template>
|
|
1407
1344
|
</ng-container>
|
|
1408
1345
|
</p-checkbox>
|
|
1409
|
-
<ng-container *ngIf="filterTemplate() || _filterTemplate; else builtInFilterElement">
|
|
1410
|
-
<ng-container *ngTemplateOutlet="filterTemplate() || _filterTemplate; context: { options: filterOptions }"></ng-container>
|
|
1346
|
+
<ng-container *ngIf="filterTemplate() || _filterTemplate(); else builtInFilterElement">
|
|
1347
|
+
<ng-container *ngTemplateOutlet="filterTemplate() || _filterTemplate(); context: { options: filterOptions() }"></ng-container>
|
|
1411
1348
|
</ng-container>
|
|
1412
1349
|
<ng-template #builtInFilterElement>
|
|
1413
|
-
@if (filter) {
|
|
1350
|
+
@if (filter()) {
|
|
1414
1351
|
<p-iconfield [pt]="ptm('pcFilterContainer')" hostName="listbox" [unstyled]="unstyled()">
|
|
1415
1352
|
<input
|
|
1416
1353
|
#filterInput
|
|
@@ -1420,11 +1357,11 @@ class Listbox extends BaseEditableHolder {
|
|
|
1420
1357
|
role="searchbox"
|
|
1421
1358
|
[value]="_filterValue() || ''"
|
|
1422
1359
|
[attr.disabled]="$disabled() ? '' : undefined"
|
|
1423
|
-
[attr.aria-owns]="
|
|
1424
|
-
[attr.aria-activedescendant]="focusedOptionId"
|
|
1425
|
-
[attr.placeholder]="filterPlaceHolder"
|
|
1426
|
-
[attr.aria-label]="ariaFilterLabel"
|
|
1427
|
-
[attr.tabindex]="!$disabled() && !focused ? tabindex : -1"
|
|
1360
|
+
[attr.aria-owns]="_id() + '_list'"
|
|
1361
|
+
[attr.aria-activedescendant]="focusedOptionId()"
|
|
1362
|
+
[attr.placeholder]="filterPlaceHolder()"
|
|
1363
|
+
[attr.aria-label]="ariaFilterLabel()"
|
|
1364
|
+
[attr.tabindex]="!$disabled() && !focused() ? tabindex() : -1"
|
|
1428
1365
|
(input)="onFilterChange($event)"
|
|
1429
1366
|
(keydown)="onFilterKeyDown($event)"
|
|
1430
1367
|
(blur)="onFilterBlur($event)"
|
|
@@ -1433,23 +1370,23 @@ class Listbox extends BaseEditableHolder {
|
|
|
1433
1370
|
hostName="listbox"
|
|
1434
1371
|
/>
|
|
1435
1372
|
<p-inputicon [pt]="ptm('pcFilterIconContainer')" [unstyled]="unstyled()">
|
|
1436
|
-
<svg data-p-icon="search" *ngIf="!filterIconTemplate() && !_filterIconTemplate" [attr.aria-hidden]="true" [pBind]="ptm('filterIcon')" />
|
|
1437
|
-
<span *ngIf="filterIconTemplate() || _filterIconTemplate" [attr.aria-hidden]="true">
|
|
1438
|
-
<ng-template *ngTemplateOutlet="filterIconTemplate() || _filterIconTemplate"></ng-template>
|
|
1373
|
+
<svg data-p-icon="search" *ngIf="!filterIconTemplate() && !_filterIconTemplate()" [attr.aria-hidden]="true" [pBind]="ptm('filterIcon')" />
|
|
1374
|
+
<span *ngIf="filterIconTemplate() || _filterIconTemplate()" [attr.aria-hidden]="true">
|
|
1375
|
+
<ng-template *ngTemplateOutlet="filterIconTemplate() || _filterIconTemplate()"></ng-template>
|
|
1439
1376
|
</span>
|
|
1440
1377
|
</p-inputicon>
|
|
1441
1378
|
</p-iconfield>
|
|
1442
1379
|
}
|
|
1443
1380
|
<span role="status" [pBind]="ptm('hiddenFilterResult')" [attr.aria-live]="'polite'" class="p-hidden-accessible" [attr.data-p-hidden-accessible]="true">
|
|
1444
|
-
{{ filterResultMessageText }}
|
|
1381
|
+
{{ filterResultMessageText() }}
|
|
1445
1382
|
</span>
|
|
1446
1383
|
</ng-template>
|
|
1447
1384
|
</div>
|
|
1448
1385
|
<div
|
|
1449
1386
|
#container
|
|
1450
|
-
[class]="cn(cx('listContainer'), listStyleClass)"
|
|
1451
|
-
[ngStyle]="listStyle"
|
|
1452
|
-
[style.max-height]="virtualScroll ? 'auto' : scrollHeight || 'auto'"
|
|
1387
|
+
[class]="cn(cx('listContainer'), listStyleClass())"
|
|
1388
|
+
[ngStyle]="listStyle()"
|
|
1389
|
+
[style.max-height]="virtualScroll() ? 'auto' : scrollHeight() || 'auto'"
|
|
1453
1390
|
cdkDropList
|
|
1454
1391
|
[cdkDropListData]="cdkDropData()"
|
|
1455
1392
|
(cdkDropListDropped)="drop($event)"
|
|
@@ -1459,18 +1396,18 @@ class Listbox extends BaseEditableHolder {
|
|
|
1459
1396
|
>
|
|
1460
1397
|
@if (hasFilter() && isEmpty()) {
|
|
1461
1398
|
<div [class]="cx('emptyMessage')" [pBind]="ptm('emptyMessage')">
|
|
1462
|
-
@if (!emptyFilterTemplate() && !_emptyFilterTemplate && !_emptyTemplate && !emptyTemplate()) {
|
|
1463
|
-
{{ emptyFilterMessageText }}
|
|
1399
|
+
@if (!emptyFilterTemplate() && !_emptyFilterTemplate() && !_emptyTemplate() && !emptyTemplate()) {
|
|
1400
|
+
{{ emptyFilterMessageText() }}
|
|
1464
1401
|
} @else {
|
|
1465
|
-
<ng-container #emptyFilter *ngTemplateOutlet="emptyFilterTemplate() || _emptyFilterTemplate || _emptyTemplate || emptyTemplate()"></ng-container>
|
|
1402
|
+
<ng-container #emptyFilter *ngTemplateOutlet="emptyFilterTemplate() || _emptyFilterTemplate() || _emptyTemplate() || emptyTemplate()"></ng-container>
|
|
1466
1403
|
}
|
|
1467
1404
|
</div>
|
|
1468
1405
|
} @else if (!hasFilter() && isEmpty()) {
|
|
1469
1406
|
<div [class]="cx('emptyMessage')" [pBind]="ptm('emptyMessage')">
|
|
1470
|
-
@if (!emptyTemplate() && !_emptyTemplate) {
|
|
1471
|
-
{{ emptyMessage }}
|
|
1407
|
+
@if (!emptyTemplate() && !_emptyTemplate()) {
|
|
1408
|
+
{{ emptyMessage() }}
|
|
1472
1409
|
} @else {
|
|
1473
|
-
<ng-container #empty *ngTemplateOutlet="emptyTemplate() || _emptyTemplate"></ng-container>
|
|
1410
|
+
<ng-container #empty *ngTemplateOutlet="emptyTemplate() || _emptyTemplate()"></ng-container>
|
|
1474
1411
|
}
|
|
1475
1412
|
</div>
|
|
1476
1413
|
} @else {
|
|
@@ -1478,41 +1415,41 @@ class Listbox extends BaseEditableHolder {
|
|
|
1478
1415
|
[pt]="ptm('virtualScroller')"
|
|
1479
1416
|
hostName="listbox"
|
|
1480
1417
|
#scroller
|
|
1481
|
-
*ngIf="virtualScroll"
|
|
1418
|
+
*ngIf="virtualScroll()"
|
|
1482
1419
|
[items]="visibleOptions()"
|
|
1483
|
-
[style]="{ height: scrollHeight }"
|
|
1484
|
-
[itemSize]="virtualScrollItemSize"
|
|
1420
|
+
[style]="{ height: scrollHeight() }"
|
|
1421
|
+
[itemSize]="virtualScrollItemSize()"
|
|
1485
1422
|
[autoSize]="true"
|
|
1486
|
-
[lazy]="lazy"
|
|
1487
|
-
[options]="virtualScrollOptions"
|
|
1423
|
+
[lazy]="lazy()"
|
|
1424
|
+
[options]="virtualScrollOptions()"
|
|
1488
1425
|
(onLazyLoad)="onLazyLoad.emit($event)"
|
|
1489
|
-
[tabindex]="scrollerTabIndex"
|
|
1426
|
+
[tabindex]="scrollerTabIndex()"
|
|
1490
1427
|
>
|
|
1491
1428
|
<ng-template #content let-items let-scrollerOptions="options">
|
|
1492
1429
|
<ng-container *ngTemplateOutlet="buildInItems; context: { $implicit: items, options: scrollerOptions }"></ng-container>
|
|
1493
1430
|
</ng-template>
|
|
1494
|
-
@if (loaderTemplate() || _loaderTemplate) {
|
|
1431
|
+
@if (loaderTemplate() || _loaderTemplate()) {
|
|
1495
1432
|
<ng-template #loader let-scrollerOptions="options">
|
|
1496
|
-
<ng-container *ngTemplateOutlet="loaderTemplate() || _loaderTemplate; context: { options: scrollerOptions }"></ng-container>
|
|
1433
|
+
<ng-container *ngTemplateOutlet="loaderTemplate() || _loaderTemplate(); context: { options: scrollerOptions }"></ng-container>
|
|
1497
1434
|
</ng-template>
|
|
1498
1435
|
}
|
|
1499
1436
|
</p-scroller>
|
|
1500
|
-
<ng-container *ngIf="!virtualScroll">
|
|
1437
|
+
<ng-container *ngIf="!virtualScroll()">
|
|
1501
1438
|
<ng-container *ngTemplateOutlet="buildInItems; context: { $implicit: visibleOptions(), options: {} }"></ng-container>
|
|
1502
1439
|
</ng-container>
|
|
1503
1440
|
|
|
1504
1441
|
<ng-template #buildInItems let-items let-scrollerOptions="options">
|
|
1505
1442
|
<ul
|
|
1506
1443
|
#list
|
|
1507
|
-
[id]="
|
|
1444
|
+
[id]="_id() + '_list'"
|
|
1508
1445
|
[class]="cx('list')"
|
|
1509
1446
|
role="listbox"
|
|
1510
1447
|
[tabindex]="-1"
|
|
1511
1448
|
[attr.aria-multiselectable]="true"
|
|
1512
1449
|
[ngClass]="scrollerOptions.contentStyleClass"
|
|
1513
1450
|
[style]="scrollerOptions.contentStyle"
|
|
1514
|
-
[attr.aria-activedescendant]="focused ? focusedOptionId : undefined"
|
|
1515
|
-
[attr.aria-label]="ariaLabel"
|
|
1451
|
+
[attr.aria-activedescendant]="focused() ? focusedOptionId() : undefined"
|
|
1452
|
+
[attr.aria-label]="ariaLabel()"
|
|
1516
1453
|
[attr.aria-disabled]="$disabled()"
|
|
1517
1454
|
(focus)="onListFocus($event)"
|
|
1518
1455
|
(blur)="onListBlur($event)"
|
|
@@ -1522,19 +1459,19 @@ class Listbox extends BaseEditableHolder {
|
|
|
1522
1459
|
<ng-template ngFor let-option [ngForOf]="items" let-i="index">
|
|
1523
1460
|
<ng-container *ngIf="isOptionGroup(option)">
|
|
1524
1461
|
<li
|
|
1525
|
-
[attr.id]="
|
|
1462
|
+
[attr.id]="_id() + '_' + getOptionIndex(i, scrollerOptions)"
|
|
1526
1463
|
[class]="cx('optionGroup')"
|
|
1527
1464
|
[pBind]="getPTOptions(option.optionGroup, scrollerOptions, i, 'optionGroup')"
|
|
1528
1465
|
[ngStyle]="{ height: scrollerOptions.itemSize + 'px' }"
|
|
1529
1466
|
role="option"
|
|
1530
1467
|
cdkDrag
|
|
1531
1468
|
[cdkDragData]="option"
|
|
1532
|
-
[cdkDragDisabled]="!dragdrop"
|
|
1469
|
+
[cdkDragDisabled]="!dragdrop()"
|
|
1533
1470
|
(cdkDragStarted)="isDragging.set(true)"
|
|
1534
1471
|
(cdkDragEnded)="isDragging.set(false)"
|
|
1535
1472
|
>
|
|
1536
|
-
<span *ngIf="!groupTemplate() && !_groupTemplate">{{ getOptionGroupLabel(option.optionGroup) }}</span>
|
|
1537
|
-
<ng-container *ngTemplateOutlet="groupTemplate() || _groupTemplate; context: { $implicit: option.optionGroup }"></ng-container>
|
|
1473
|
+
<span *ngIf="!groupTemplate() && !_groupTemplate()">{{ getOptionGroupLabel(option.optionGroup) }}</span>
|
|
1474
|
+
<ng-container *ngTemplateOutlet="groupTemplate() || _groupTemplate(); context: { $implicit: option.optionGroup }"></ng-container>
|
|
1538
1475
|
</li>
|
|
1539
1476
|
</ng-container>
|
|
1540
1477
|
<ng-container *ngIf="!isOptionGroup(option)">
|
|
@@ -1542,12 +1479,12 @@ class Listbox extends BaseEditableHolder {
|
|
|
1542
1479
|
pRipple
|
|
1543
1480
|
[class]="cx('option', { option, i, scrollerOptions })"
|
|
1544
1481
|
role="option"
|
|
1545
|
-
[attr.id]="
|
|
1482
|
+
[attr.id]="_id() + '_' + getOptionIndex(i, scrollerOptions)"
|
|
1546
1483
|
[ngStyle]="{ height: scrollerOptions.itemSize + 'px' }"
|
|
1547
1484
|
[attr.aria-label]="getOptionLabel(option)"
|
|
1548
1485
|
[attr.aria-selected]="isSelected(option)"
|
|
1549
1486
|
[attr.aria-disabled]="isOptionDisabled(option)"
|
|
1550
|
-
[attr.aria-setsize]="ariaSetSize"
|
|
1487
|
+
[attr.aria-setsize]="ariaSetSize()"
|
|
1551
1488
|
[attr.ariaPosInset]="getAriaPosInset(getOptionIndex(i, scrollerOptions))"
|
|
1552
1489
|
[attr.data-p-selected]="isSelected(option)"
|
|
1553
1490
|
[attr.data-p-focused]="focusedOptionIndex() === getOptionIndex(i, scrollerOptions)"
|
|
@@ -1560,12 +1497,12 @@ class Listbox extends BaseEditableHolder {
|
|
|
1560
1497
|
(touchend)="onOptionTouchEnd()"
|
|
1561
1498
|
cdkDrag
|
|
1562
1499
|
[cdkDragData]="option"
|
|
1563
|
-
[cdkDragDisabled]="!dragdrop"
|
|
1500
|
+
[cdkDragDisabled]="!dragdrop()"
|
|
1564
1501
|
(cdkDragStarted)="isDragging.set(true)"
|
|
1565
1502
|
(cdkDragEnded)="isDragging.set(false)"
|
|
1566
1503
|
>
|
|
1567
1504
|
<p-checkbox
|
|
1568
|
-
*ngIf="checkbox && multiple"
|
|
1505
|
+
*ngIf="checkbox() && multiple()"
|
|
1569
1506
|
[class]="cx('optionCheckIcon')"
|
|
1570
1507
|
[ngModel]="isSelected(option)"
|
|
1571
1508
|
[ngModelOptions]="{ standalone: true }"
|
|
@@ -1578,23 +1515,23 @@ class Listbox extends BaseEditableHolder {
|
|
|
1578
1515
|
hostName="listbox"
|
|
1579
1516
|
[unstyled]="unstyled()"
|
|
1580
1517
|
>
|
|
1581
|
-
<ng-container *ngIf="checkIconTemplate() || _checkIconTemplate">
|
|
1518
|
+
<ng-container *ngIf="checkIconTemplate() || _checkIconTemplate()">
|
|
1582
1519
|
<ng-template #icon>
|
|
1583
|
-
<ng-template *ngTemplateOutlet="checkIconTemplate() || _checkIconTemplate; context: { $implicit: isSelected(option) }"></ng-template>
|
|
1520
|
+
<ng-template *ngTemplateOutlet="checkIconTemplate() || _checkIconTemplate(); context: { $implicit: isSelected(option) }"></ng-template>
|
|
1584
1521
|
</ng-template>
|
|
1585
1522
|
</ng-container>
|
|
1586
1523
|
</p-checkbox>
|
|
1587
|
-
<ng-container *ngIf="checkmark">
|
|
1588
|
-
<ng-container *ngIf="!checkmarkTemplate() && !_checkmarkTemplate">
|
|
1524
|
+
<ng-container *ngIf="checkmark()">
|
|
1525
|
+
<ng-container *ngIf="!checkmarkTemplate() && !_checkmarkTemplate()">
|
|
1589
1526
|
<svg data-p-icon="blank" *ngIf="!isSelected(option)" [class]="cx('optionBlankIcon')" [pBind]="ptm('optionBlankIcon')" />
|
|
1590
1527
|
<svg data-p-icon="check" *ngIf="isSelected(option)" [class]="cx('optionCheckIcon')" [pBind]="ptm('optionCheckIcon')" />
|
|
1591
1528
|
</ng-container>
|
|
1592
|
-
<ng-container *ngTemplateOutlet="checkmarkTemplate() || _checkmarkTemplate; context: { implicit: isSelected(option) }"></ng-container>
|
|
1529
|
+
<ng-container *ngTemplateOutlet="checkmarkTemplate() || _checkmarkTemplate(); context: { implicit: isSelected(option) }"></ng-container>
|
|
1593
1530
|
</ng-container>
|
|
1594
|
-
<span *ngIf="!itemTemplate() && !_itemTemplate">{{ getOptionLabel(option) }}</span>
|
|
1531
|
+
<span *ngIf="!itemTemplate() && !_itemTemplate()">{{ getOptionLabel(option) }}</span>
|
|
1595
1532
|
<ng-container
|
|
1596
1533
|
*ngTemplateOutlet="
|
|
1597
|
-
itemTemplate() || _itemTemplate;
|
|
1534
|
+
itemTemplate() || _itemTemplate();
|
|
1598
1535
|
context: {
|
|
1599
1536
|
$implicit: option,
|
|
1600
1537
|
index: getOptionIndex(i, scrollerOptions),
|
|
@@ -1610,54 +1547,53 @@ class Listbox extends BaseEditableHolder {
|
|
|
1610
1547
|
</ng-template>
|
|
1611
1548
|
}
|
|
1612
1549
|
</div>
|
|
1613
|
-
<div *ngIf="footerFacet() || footerTemplate() || _footerTemplate">
|
|
1550
|
+
<div *ngIf="footerFacet() || footerTemplate() || _footerTemplate()">
|
|
1614
1551
|
<ng-content select="p-footer"></ng-content>
|
|
1615
|
-
<ng-container *ngTemplateOutlet="footerTemplate() || _footerTemplate; context: { $implicit: modelValue(), options: visibleOptions() }"></ng-container>
|
|
1552
|
+
<ng-container *ngTemplateOutlet="footerTemplate() || _footerTemplate(); context: { $implicit: modelValue(), options: visibleOptions() }"></ng-container>
|
|
1616
1553
|
</div>
|
|
1617
1554
|
<span *ngIf="isEmpty()" role="status" aria-live="polite" class="p-hidden-accessible" [pBind]="ptm('hiddenEmptyMessage')">
|
|
1618
|
-
{{ emptyMessage }}
|
|
1555
|
+
{{ emptyMessage() }}
|
|
1619
1556
|
</span>
|
|
1620
1557
|
<span role="status" aria-live="polite" class="p-hidden-accessible" [pBind]="ptm('hiddenSelectedMessage')">
|
|
1621
|
-
{{ selectedMessageText }}
|
|
1558
|
+
{{ selectedMessageText() }}
|
|
1622
1559
|
</span>
|
|
1623
1560
|
<span
|
|
1624
1561
|
#lastHiddenFocusableElement
|
|
1625
1562
|
role="presentation"
|
|
1626
1563
|
class="p-hidden-accessible p-hidden-focusable"
|
|
1627
|
-
[tabindex]="!$disabled() ? tabindex : -1"
|
|
1564
|
+
[tabindex]="!$disabled() ? tabindex() : -1"
|
|
1628
1565
|
(focus)="onLastHiddenFocus($event)"
|
|
1629
1566
|
[attr.data-p-hidden-focusable]="true"
|
|
1630
1567
|
[pBind]="ptm('hiddenLastFocusableEl')"
|
|
1631
1568
|
>
|
|
1632
1569
|
</span>
|
|
1633
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: Ripple, selector: "[pRipple]" }, { kind: "component", type: Scroller, selector: "p-scroller, p-virtualscroller, p-virtual-scroller, p-virtualScroller", inputs: ["hostName", "id", "style", "styleClass", "tabindex", "items", "itemSize", "scrollHeight", "scrollWidth", "orientation", "step", "delay", "resizeDelay", "appendOnly", "inline", "lazy", "disabled", "loaderDisabled", "columns", "showSpacer", "showLoader", "numToleratedItems", "loading", "autoSize", "trackBy", "options"], outputs: ["onLazyLoad", "onScroll", "onScrollIndexChange"] }, { kind: "component", type: InputIcon, selector: "p-inputicon, p-inputIcon", inputs: ["hostName"
|
|
1570
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: Ripple, selector: "[pRipple]" }, { kind: "component", type: Scroller, selector: "p-scroller, p-virtualscroller, p-virtual-scroller, p-virtualScroller", inputs: ["hostName", "id", "style", "styleClass", "tabindex", "items", "itemSize", "scrollHeight", "scrollWidth", "orientation", "step", "delay", "resizeDelay", "appendOnly", "inline", "lazy", "disabled", "loaderDisabled", "columns", "showSpacer", "showLoader", "numToleratedItems", "loading", "autoSize", "trackBy", "options"], outputs: ["onLazyLoad", "onScroll", "onScrollIndexChange"] }, { kind: "component", type: InputIcon, selector: "p-inputicon, p-inputIcon", inputs: ["hostName"] }, { kind: "component", type: SearchIcon, selector: "[data-p-icon=\"search\"]" }, { kind: "component", type: Checkbox, selector: "p-checkbox, p-checkBox, p-check-box", inputs: ["hostName", "value", "binary", "ariaLabelledBy", "ariaLabel", "tabindex", "inputId", "inputStyle", "inputClass", "indeterminate", "formControl", "checkboxIcon", "readonly", "autofocus", "trueValue", "falseValue", "variant", "size"], outputs: ["onChange", "onFocus", "onBlur"] }, { kind: "component", type: CheckIcon, selector: "[data-p-icon=\"check\"]" }, { kind: "component", type: IconField, selector: "p-iconfield, p-iconField, p-icon-field", inputs: ["hostName", "iconPosition"] }, { kind: "directive", type: InputText, selector: "[pInputText]", inputs: ["hostName", "ptInputText", "pInputTextPT", "pInputTextUnstyled", "pSize", "variant", "fluid", "invalid"] }, { kind: "component", type: BlankIcon, selector: "[data-p-icon=\"blank\"]" }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: SharedModule }, { kind: "ngmodule", type: DragDropModule }, { kind: "directive", type: i4.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer", "cdkDropListHasAnchor"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i4.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "ngmodule", type: BindModule }, { kind: "directive", type: i1.Bind, selector: "[pBind]", inputs: ["pBind"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1634
1571
|
}
|
|
1635
1572
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: Listbox, decorators: [{
|
|
1636
1573
|
type: Component,
|
|
1637
1574
|
args: [{
|
|
1638
1575
|
selector: 'p-listbox, p-listBox, p-list-box',
|
|
1639
|
-
standalone: true,
|
|
1640
1576
|
imports: [CommonModule, Ripple, Scroller, InputIcon, SearchIcon, Checkbox, CheckIcon, IconField, InputText, BlankIcon, FormsModule, SharedModule, DragDropModule, BindModule],
|
|
1641
1577
|
template: `
|
|
1642
1578
|
<span
|
|
1643
1579
|
#firstHiddenFocusableElement
|
|
1644
1580
|
role="presentation"
|
|
1645
1581
|
class="p-hidden-accessible p-hidden-focusable"
|
|
1646
|
-
[tabindex]="!$disabled() ? tabindex : -1"
|
|
1582
|
+
[tabindex]="!$disabled() ? tabindex() : -1"
|
|
1647
1583
|
(focus)="onFirstHiddenFocus($event)"
|
|
1648
1584
|
[attr.data-p-hidden-focusable]="true"
|
|
1649
1585
|
[pBind]="ptm('hiddenFirstFocusableElement')"
|
|
1650
1586
|
>
|
|
1651
1587
|
</span>
|
|
1652
|
-
<div [class]="cx('header')" *ngIf="headerFacet() || headerTemplate() || _headerTemplate" [pBind]="ptm('header')">
|
|
1588
|
+
<div [class]="cx('header')" *ngIf="headerFacet() || headerTemplate() || _headerTemplate()" [pBind]="ptm('header')">
|
|
1653
1589
|
<ng-content select="p-header"></ng-content>
|
|
1654
|
-
<ng-container *ngTemplateOutlet="headerTemplate() || _headerTemplate; context: { $implicit: modelValue(), options: visibleOptions() }"></ng-container>
|
|
1590
|
+
<ng-container *ngTemplateOutlet="headerTemplate() || _headerTemplate(); context: { $implicit: modelValue(), options: visibleOptions() }"></ng-container>
|
|
1655
1591
|
</div>
|
|
1656
|
-
<div [class]="cx('header')" *ngIf="(checkbox && multiple && showToggleAll) || filter" [pBind]="ptm('header')">
|
|
1592
|
+
<div [class]="cx('header')" *ngIf="(checkbox() && multiple() && showToggleAll()) || filter()" [pBind]="ptm('header')">
|
|
1657
1593
|
<p-checkbox
|
|
1658
1594
|
#headerchkbox
|
|
1659
1595
|
(onChange)="onToggleAll($event)"
|
|
1660
|
-
*ngIf="checkbox && multiple && showToggleAll"
|
|
1596
|
+
*ngIf="checkbox() && multiple() && showToggleAll()"
|
|
1661
1597
|
[class]="cx('optionCheckIcon')"
|
|
1662
1598
|
[ngModel]="allSelected()"
|
|
1663
1599
|
[ngModelOptions]="{ standalone: true }"
|
|
@@ -1665,21 +1601,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
1665
1601
|
[tabindex]="-1"
|
|
1666
1602
|
[variant]="config.inputStyle() === 'filled' || config.inputVariant() === 'filled' ? 'filled' : 'outlined'"
|
|
1667
1603
|
[binary]="true"
|
|
1668
|
-
[attr.aria-label]="toggleAllAriaLabel"
|
|
1604
|
+
[attr.aria-label]="toggleAllAriaLabel()"
|
|
1669
1605
|
[pt]="ptm('pcCheckbox')"
|
|
1670
1606
|
[unstyled]="unstyled()"
|
|
1671
1607
|
>
|
|
1672
|
-
<ng-container *ngIf="checkIconTemplate() || _checkIconTemplate">
|
|
1608
|
+
<ng-container *ngIf="checkIconTemplate() || _checkIconTemplate()">
|
|
1673
1609
|
<ng-template #icon>
|
|
1674
|
-
<ng-template *ngTemplateOutlet="checkIconTemplate() || _checkIconTemplate; context: { $implicit: allSelected() }"></ng-template>
|
|
1610
|
+
<ng-template *ngTemplateOutlet="checkIconTemplate() || _checkIconTemplate(); context: { $implicit: allSelected() }"></ng-template>
|
|
1675
1611
|
</ng-template>
|
|
1676
1612
|
</ng-container>
|
|
1677
1613
|
</p-checkbox>
|
|
1678
|
-
<ng-container *ngIf="filterTemplate() || _filterTemplate; else builtInFilterElement">
|
|
1679
|
-
<ng-container *ngTemplateOutlet="filterTemplate() || _filterTemplate; context: { options: filterOptions }"></ng-container>
|
|
1614
|
+
<ng-container *ngIf="filterTemplate() || _filterTemplate(); else builtInFilterElement">
|
|
1615
|
+
<ng-container *ngTemplateOutlet="filterTemplate() || _filterTemplate(); context: { options: filterOptions() }"></ng-container>
|
|
1680
1616
|
</ng-container>
|
|
1681
1617
|
<ng-template #builtInFilterElement>
|
|
1682
|
-
@if (filter) {
|
|
1618
|
+
@if (filter()) {
|
|
1683
1619
|
<p-iconfield [pt]="ptm('pcFilterContainer')" hostName="listbox" [unstyled]="unstyled()">
|
|
1684
1620
|
<input
|
|
1685
1621
|
#filterInput
|
|
@@ -1689,11 +1625,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
1689
1625
|
role="searchbox"
|
|
1690
1626
|
[value]="_filterValue() || ''"
|
|
1691
1627
|
[attr.disabled]="$disabled() ? '' : undefined"
|
|
1692
|
-
[attr.aria-owns]="
|
|
1693
|
-
[attr.aria-activedescendant]="focusedOptionId"
|
|
1694
|
-
[attr.placeholder]="filterPlaceHolder"
|
|
1695
|
-
[attr.aria-label]="ariaFilterLabel"
|
|
1696
|
-
[attr.tabindex]="!$disabled() && !focused ? tabindex : -1"
|
|
1628
|
+
[attr.aria-owns]="_id() + '_list'"
|
|
1629
|
+
[attr.aria-activedescendant]="focusedOptionId()"
|
|
1630
|
+
[attr.placeholder]="filterPlaceHolder()"
|
|
1631
|
+
[attr.aria-label]="ariaFilterLabel()"
|
|
1632
|
+
[attr.tabindex]="!$disabled() && !focused() ? tabindex() : -1"
|
|
1697
1633
|
(input)="onFilterChange($event)"
|
|
1698
1634
|
(keydown)="onFilterKeyDown($event)"
|
|
1699
1635
|
(blur)="onFilterBlur($event)"
|
|
@@ -1702,23 +1638,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
1702
1638
|
hostName="listbox"
|
|
1703
1639
|
/>
|
|
1704
1640
|
<p-inputicon [pt]="ptm('pcFilterIconContainer')" [unstyled]="unstyled()">
|
|
1705
|
-
<svg data-p-icon="search" *ngIf="!filterIconTemplate() && !_filterIconTemplate" [attr.aria-hidden]="true" [pBind]="ptm('filterIcon')" />
|
|
1706
|
-
<span *ngIf="filterIconTemplate() || _filterIconTemplate" [attr.aria-hidden]="true">
|
|
1707
|
-
<ng-template *ngTemplateOutlet="filterIconTemplate() || _filterIconTemplate"></ng-template>
|
|
1641
|
+
<svg data-p-icon="search" *ngIf="!filterIconTemplate() && !_filterIconTemplate()" [attr.aria-hidden]="true" [pBind]="ptm('filterIcon')" />
|
|
1642
|
+
<span *ngIf="filterIconTemplate() || _filterIconTemplate()" [attr.aria-hidden]="true">
|
|
1643
|
+
<ng-template *ngTemplateOutlet="filterIconTemplate() || _filterIconTemplate()"></ng-template>
|
|
1708
1644
|
</span>
|
|
1709
1645
|
</p-inputicon>
|
|
1710
1646
|
</p-iconfield>
|
|
1711
1647
|
}
|
|
1712
1648
|
<span role="status" [pBind]="ptm('hiddenFilterResult')" [attr.aria-live]="'polite'" class="p-hidden-accessible" [attr.data-p-hidden-accessible]="true">
|
|
1713
|
-
{{ filterResultMessageText }}
|
|
1649
|
+
{{ filterResultMessageText() }}
|
|
1714
1650
|
</span>
|
|
1715
1651
|
</ng-template>
|
|
1716
1652
|
</div>
|
|
1717
1653
|
<div
|
|
1718
1654
|
#container
|
|
1719
|
-
[class]="cn(cx('listContainer'), listStyleClass)"
|
|
1720
|
-
[ngStyle]="listStyle"
|
|
1721
|
-
[style.max-height]="virtualScroll ? 'auto' : scrollHeight || 'auto'"
|
|
1655
|
+
[class]="cn(cx('listContainer'), listStyleClass())"
|
|
1656
|
+
[ngStyle]="listStyle()"
|
|
1657
|
+
[style.max-height]="virtualScroll() ? 'auto' : scrollHeight() || 'auto'"
|
|
1722
1658
|
cdkDropList
|
|
1723
1659
|
[cdkDropListData]="cdkDropData()"
|
|
1724
1660
|
(cdkDropListDropped)="drop($event)"
|
|
@@ -1728,18 +1664,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
1728
1664
|
>
|
|
1729
1665
|
@if (hasFilter() && isEmpty()) {
|
|
1730
1666
|
<div [class]="cx('emptyMessage')" [pBind]="ptm('emptyMessage')">
|
|
1731
|
-
@if (!emptyFilterTemplate() && !_emptyFilterTemplate && !_emptyTemplate && !emptyTemplate()) {
|
|
1732
|
-
{{ emptyFilterMessageText }}
|
|
1667
|
+
@if (!emptyFilterTemplate() && !_emptyFilterTemplate() && !_emptyTemplate() && !emptyTemplate()) {
|
|
1668
|
+
{{ emptyFilterMessageText() }}
|
|
1733
1669
|
} @else {
|
|
1734
|
-
<ng-container #emptyFilter *ngTemplateOutlet="emptyFilterTemplate() || _emptyFilterTemplate || _emptyTemplate || emptyTemplate()"></ng-container>
|
|
1670
|
+
<ng-container #emptyFilter *ngTemplateOutlet="emptyFilterTemplate() || _emptyFilterTemplate() || _emptyTemplate() || emptyTemplate()"></ng-container>
|
|
1735
1671
|
}
|
|
1736
1672
|
</div>
|
|
1737
1673
|
} @else if (!hasFilter() && isEmpty()) {
|
|
1738
1674
|
<div [class]="cx('emptyMessage')" [pBind]="ptm('emptyMessage')">
|
|
1739
|
-
@if (!emptyTemplate() && !_emptyTemplate) {
|
|
1740
|
-
{{ emptyMessage }}
|
|
1675
|
+
@if (!emptyTemplate() && !_emptyTemplate()) {
|
|
1676
|
+
{{ emptyMessage() }}
|
|
1741
1677
|
} @else {
|
|
1742
|
-
<ng-container #empty *ngTemplateOutlet="emptyTemplate() || _emptyTemplate"></ng-container>
|
|
1678
|
+
<ng-container #empty *ngTemplateOutlet="emptyTemplate() || _emptyTemplate()"></ng-container>
|
|
1743
1679
|
}
|
|
1744
1680
|
</div>
|
|
1745
1681
|
} @else {
|
|
@@ -1747,41 +1683,41 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
1747
1683
|
[pt]="ptm('virtualScroller')"
|
|
1748
1684
|
hostName="listbox"
|
|
1749
1685
|
#scroller
|
|
1750
|
-
*ngIf="virtualScroll"
|
|
1686
|
+
*ngIf="virtualScroll()"
|
|
1751
1687
|
[items]="visibleOptions()"
|
|
1752
|
-
[style]="{ height: scrollHeight }"
|
|
1753
|
-
[itemSize]="virtualScrollItemSize"
|
|
1688
|
+
[style]="{ height: scrollHeight() }"
|
|
1689
|
+
[itemSize]="virtualScrollItemSize()"
|
|
1754
1690
|
[autoSize]="true"
|
|
1755
|
-
[lazy]="lazy"
|
|
1756
|
-
[options]="virtualScrollOptions"
|
|
1691
|
+
[lazy]="lazy()"
|
|
1692
|
+
[options]="virtualScrollOptions()"
|
|
1757
1693
|
(onLazyLoad)="onLazyLoad.emit($event)"
|
|
1758
|
-
[tabindex]="scrollerTabIndex"
|
|
1694
|
+
[tabindex]="scrollerTabIndex()"
|
|
1759
1695
|
>
|
|
1760
1696
|
<ng-template #content let-items let-scrollerOptions="options">
|
|
1761
1697
|
<ng-container *ngTemplateOutlet="buildInItems; context: { $implicit: items, options: scrollerOptions }"></ng-container>
|
|
1762
1698
|
</ng-template>
|
|
1763
|
-
@if (loaderTemplate() || _loaderTemplate) {
|
|
1699
|
+
@if (loaderTemplate() || _loaderTemplate()) {
|
|
1764
1700
|
<ng-template #loader let-scrollerOptions="options">
|
|
1765
|
-
<ng-container *ngTemplateOutlet="loaderTemplate() || _loaderTemplate; context: { options: scrollerOptions }"></ng-container>
|
|
1701
|
+
<ng-container *ngTemplateOutlet="loaderTemplate() || _loaderTemplate(); context: { options: scrollerOptions }"></ng-container>
|
|
1766
1702
|
</ng-template>
|
|
1767
1703
|
}
|
|
1768
1704
|
</p-scroller>
|
|
1769
|
-
<ng-container *ngIf="!virtualScroll">
|
|
1705
|
+
<ng-container *ngIf="!virtualScroll()">
|
|
1770
1706
|
<ng-container *ngTemplateOutlet="buildInItems; context: { $implicit: visibleOptions(), options: {} }"></ng-container>
|
|
1771
1707
|
</ng-container>
|
|
1772
1708
|
|
|
1773
1709
|
<ng-template #buildInItems let-items let-scrollerOptions="options">
|
|
1774
1710
|
<ul
|
|
1775
1711
|
#list
|
|
1776
|
-
[id]="
|
|
1712
|
+
[id]="_id() + '_list'"
|
|
1777
1713
|
[class]="cx('list')"
|
|
1778
1714
|
role="listbox"
|
|
1779
1715
|
[tabindex]="-1"
|
|
1780
1716
|
[attr.aria-multiselectable]="true"
|
|
1781
1717
|
[ngClass]="scrollerOptions.contentStyleClass"
|
|
1782
1718
|
[style]="scrollerOptions.contentStyle"
|
|
1783
|
-
[attr.aria-activedescendant]="focused ? focusedOptionId : undefined"
|
|
1784
|
-
[attr.aria-label]="ariaLabel"
|
|
1719
|
+
[attr.aria-activedescendant]="focused() ? focusedOptionId() : undefined"
|
|
1720
|
+
[attr.aria-label]="ariaLabel()"
|
|
1785
1721
|
[attr.aria-disabled]="$disabled()"
|
|
1786
1722
|
(focus)="onListFocus($event)"
|
|
1787
1723
|
(blur)="onListBlur($event)"
|
|
@@ -1791,19 +1727,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
1791
1727
|
<ng-template ngFor let-option [ngForOf]="items" let-i="index">
|
|
1792
1728
|
<ng-container *ngIf="isOptionGroup(option)">
|
|
1793
1729
|
<li
|
|
1794
|
-
[attr.id]="
|
|
1730
|
+
[attr.id]="_id() + '_' + getOptionIndex(i, scrollerOptions)"
|
|
1795
1731
|
[class]="cx('optionGroup')"
|
|
1796
1732
|
[pBind]="getPTOptions(option.optionGroup, scrollerOptions, i, 'optionGroup')"
|
|
1797
1733
|
[ngStyle]="{ height: scrollerOptions.itemSize + 'px' }"
|
|
1798
1734
|
role="option"
|
|
1799
1735
|
cdkDrag
|
|
1800
1736
|
[cdkDragData]="option"
|
|
1801
|
-
[cdkDragDisabled]="!dragdrop"
|
|
1737
|
+
[cdkDragDisabled]="!dragdrop()"
|
|
1802
1738
|
(cdkDragStarted)="isDragging.set(true)"
|
|
1803
1739
|
(cdkDragEnded)="isDragging.set(false)"
|
|
1804
1740
|
>
|
|
1805
|
-
<span *ngIf="!groupTemplate() && !_groupTemplate">{{ getOptionGroupLabel(option.optionGroup) }}</span>
|
|
1806
|
-
<ng-container *ngTemplateOutlet="groupTemplate() || _groupTemplate; context: { $implicit: option.optionGroup }"></ng-container>
|
|
1741
|
+
<span *ngIf="!groupTemplate() && !_groupTemplate()">{{ getOptionGroupLabel(option.optionGroup) }}</span>
|
|
1742
|
+
<ng-container *ngTemplateOutlet="groupTemplate() || _groupTemplate(); context: { $implicit: option.optionGroup }"></ng-container>
|
|
1807
1743
|
</li>
|
|
1808
1744
|
</ng-container>
|
|
1809
1745
|
<ng-container *ngIf="!isOptionGroup(option)">
|
|
@@ -1811,12 +1747,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
1811
1747
|
pRipple
|
|
1812
1748
|
[class]="cx('option', { option, i, scrollerOptions })"
|
|
1813
1749
|
role="option"
|
|
1814
|
-
[attr.id]="
|
|
1750
|
+
[attr.id]="_id() + '_' + getOptionIndex(i, scrollerOptions)"
|
|
1815
1751
|
[ngStyle]="{ height: scrollerOptions.itemSize + 'px' }"
|
|
1816
1752
|
[attr.aria-label]="getOptionLabel(option)"
|
|
1817
1753
|
[attr.aria-selected]="isSelected(option)"
|
|
1818
1754
|
[attr.aria-disabled]="isOptionDisabled(option)"
|
|
1819
|
-
[attr.aria-setsize]="ariaSetSize"
|
|
1755
|
+
[attr.aria-setsize]="ariaSetSize()"
|
|
1820
1756
|
[attr.ariaPosInset]="getAriaPosInset(getOptionIndex(i, scrollerOptions))"
|
|
1821
1757
|
[attr.data-p-selected]="isSelected(option)"
|
|
1822
1758
|
[attr.data-p-focused]="focusedOptionIndex() === getOptionIndex(i, scrollerOptions)"
|
|
@@ -1829,12 +1765,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
1829
1765
|
(touchend)="onOptionTouchEnd()"
|
|
1830
1766
|
cdkDrag
|
|
1831
1767
|
[cdkDragData]="option"
|
|
1832
|
-
[cdkDragDisabled]="!dragdrop"
|
|
1768
|
+
[cdkDragDisabled]="!dragdrop()"
|
|
1833
1769
|
(cdkDragStarted)="isDragging.set(true)"
|
|
1834
1770
|
(cdkDragEnded)="isDragging.set(false)"
|
|
1835
1771
|
>
|
|
1836
1772
|
<p-checkbox
|
|
1837
|
-
*ngIf="checkbox && multiple"
|
|
1773
|
+
*ngIf="checkbox() && multiple()"
|
|
1838
1774
|
[class]="cx('optionCheckIcon')"
|
|
1839
1775
|
[ngModel]="isSelected(option)"
|
|
1840
1776
|
[ngModelOptions]="{ standalone: true }"
|
|
@@ -1847,23 +1783,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
1847
1783
|
hostName="listbox"
|
|
1848
1784
|
[unstyled]="unstyled()"
|
|
1849
1785
|
>
|
|
1850
|
-
<ng-container *ngIf="checkIconTemplate() || _checkIconTemplate">
|
|
1786
|
+
<ng-container *ngIf="checkIconTemplate() || _checkIconTemplate()">
|
|
1851
1787
|
<ng-template #icon>
|
|
1852
|
-
<ng-template *ngTemplateOutlet="checkIconTemplate() || _checkIconTemplate; context: { $implicit: isSelected(option) }"></ng-template>
|
|
1788
|
+
<ng-template *ngTemplateOutlet="checkIconTemplate() || _checkIconTemplate(); context: { $implicit: isSelected(option) }"></ng-template>
|
|
1853
1789
|
</ng-template>
|
|
1854
1790
|
</ng-container>
|
|
1855
1791
|
</p-checkbox>
|
|
1856
|
-
<ng-container *ngIf="checkmark">
|
|
1857
|
-
<ng-container *ngIf="!checkmarkTemplate() && !_checkmarkTemplate">
|
|
1792
|
+
<ng-container *ngIf="checkmark()">
|
|
1793
|
+
<ng-container *ngIf="!checkmarkTemplate() && !_checkmarkTemplate()">
|
|
1858
1794
|
<svg data-p-icon="blank" *ngIf="!isSelected(option)" [class]="cx('optionBlankIcon')" [pBind]="ptm('optionBlankIcon')" />
|
|
1859
1795
|
<svg data-p-icon="check" *ngIf="isSelected(option)" [class]="cx('optionCheckIcon')" [pBind]="ptm('optionCheckIcon')" />
|
|
1860
1796
|
</ng-container>
|
|
1861
|
-
<ng-container *ngTemplateOutlet="checkmarkTemplate() || _checkmarkTemplate; context: { implicit: isSelected(option) }"></ng-container>
|
|
1797
|
+
<ng-container *ngTemplateOutlet="checkmarkTemplate() || _checkmarkTemplate(); context: { implicit: isSelected(option) }"></ng-container>
|
|
1862
1798
|
</ng-container>
|
|
1863
|
-
<span *ngIf="!itemTemplate() && !_itemTemplate">{{ getOptionLabel(option) }}</span>
|
|
1799
|
+
<span *ngIf="!itemTemplate() && !_itemTemplate()">{{ getOptionLabel(option) }}</span>
|
|
1864
1800
|
<ng-container
|
|
1865
1801
|
*ngTemplateOutlet="
|
|
1866
|
-
itemTemplate() || _itemTemplate;
|
|
1802
|
+
itemTemplate() || _itemTemplate();
|
|
1867
1803
|
context: {
|
|
1868
1804
|
$implicit: option,
|
|
1869
1805
|
index: getOptionIndex(i, scrollerOptions),
|
|
@@ -1879,21 +1815,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
1879
1815
|
</ng-template>
|
|
1880
1816
|
}
|
|
1881
1817
|
</div>
|
|
1882
|
-
<div *ngIf="footerFacet() || footerTemplate() || _footerTemplate">
|
|
1818
|
+
<div *ngIf="footerFacet() || footerTemplate() || _footerTemplate()">
|
|
1883
1819
|
<ng-content select="p-footer"></ng-content>
|
|
1884
|
-
<ng-container *ngTemplateOutlet="footerTemplate() || _footerTemplate; context: { $implicit: modelValue(), options: visibleOptions() }"></ng-container>
|
|
1820
|
+
<ng-container *ngTemplateOutlet="footerTemplate() || _footerTemplate(); context: { $implicit: modelValue(), options: visibleOptions() }"></ng-container>
|
|
1885
1821
|
</div>
|
|
1886
1822
|
<span *ngIf="isEmpty()" role="status" aria-live="polite" class="p-hidden-accessible" [pBind]="ptm('hiddenEmptyMessage')">
|
|
1887
|
-
{{ emptyMessage }}
|
|
1823
|
+
{{ emptyMessage() }}
|
|
1888
1824
|
</span>
|
|
1889
1825
|
<span role="status" aria-live="polite" class="p-hidden-accessible" [pBind]="ptm('hiddenSelectedMessage')">
|
|
1890
|
-
{{ selectedMessageText }}
|
|
1826
|
+
{{ selectedMessageText() }}
|
|
1891
1827
|
</span>
|
|
1892
1828
|
<span
|
|
1893
1829
|
#lastHiddenFocusableElement
|
|
1894
1830
|
role="presentation"
|
|
1895
1831
|
class="p-hidden-accessible p-hidden-focusable"
|
|
1896
|
-
[tabindex]="!$disabled() ? tabindex : -1"
|
|
1832
|
+
[tabindex]="!$disabled() ? tabindex() : -1"
|
|
1897
1833
|
(focus)="onLastHiddenFocus($event)"
|
|
1898
1834
|
[attr.data-p-hidden-focusable]="true"
|
|
1899
1835
|
[pBind]="ptm('hiddenLastFocusableEl')"
|
|
@@ -1915,130 +1851,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
1915
1851
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1916
1852
|
encapsulation: ViewEncapsulation.None,
|
|
1917
1853
|
host: {
|
|
1918
|
-
'[attr.id]': '
|
|
1919
|
-
'[class]': "
|
|
1920
|
-
'[attr.data-p]': 'containerDataP'
|
|
1854
|
+
'[attr.id]': '_id()',
|
|
1855
|
+
'[class]': "cx('root')",
|
|
1856
|
+
'[attr.data-p]': 'containerDataP()'
|
|
1921
1857
|
},
|
|
1922
1858
|
hostDirectives: [Bind]
|
|
1923
1859
|
}]
|
|
1924
|
-
}], propDecorators: { hostName: [{
|
|
1925
|
-
type: Input
|
|
1926
|
-
}], id: [{
|
|
1927
|
-
type: Input
|
|
1928
|
-
}], searchMessage: [{
|
|
1929
|
-
type: Input
|
|
1930
|
-
}], emptySelectionMessage: [{
|
|
1931
|
-
type: Input
|
|
1932
|
-
}], selectionMessage: [{
|
|
1933
|
-
type: Input
|
|
1934
|
-
}], autoOptionFocus: [{
|
|
1935
|
-
type: Input,
|
|
1936
|
-
args: [{ transform: booleanAttribute }]
|
|
1937
|
-
}], ariaLabel: [{
|
|
1938
|
-
type: Input
|
|
1939
|
-
}], selectOnFocus: [{
|
|
1940
|
-
type: Input,
|
|
1941
|
-
args: [{ transform: booleanAttribute }]
|
|
1942
|
-
}], searchLocale: [{
|
|
1943
|
-
type: Input,
|
|
1944
|
-
args: [{ transform: booleanAttribute }]
|
|
1945
|
-
}], focusOnHover: [{
|
|
1946
|
-
type: Input,
|
|
1947
|
-
args: [{ transform: booleanAttribute }]
|
|
1948
|
-
}], filterMessage: [{
|
|
1949
|
-
type: Input
|
|
1950
|
-
}], filterFields: [{
|
|
1951
|
-
type: Input
|
|
1952
|
-
}], lazy: [{
|
|
1953
|
-
type: Input,
|
|
1954
|
-
args: [{ transform: booleanAttribute }]
|
|
1955
|
-
}], virtualScroll: [{
|
|
1956
|
-
type: Input,
|
|
1957
|
-
args: [{ transform: booleanAttribute }]
|
|
1958
|
-
}], virtualScrollItemSize: [{
|
|
1959
|
-
type: Input,
|
|
1960
|
-
args: [{ transform: numberAttribute }]
|
|
1961
|
-
}], virtualScrollOptions: [{
|
|
1962
|
-
type: Input
|
|
1963
|
-
}], scrollHeight: [{
|
|
1964
|
-
type: Input
|
|
1965
|
-
}], tabindex: [{
|
|
1966
|
-
type: Input,
|
|
1967
|
-
args: [{ transform: numberAttribute }]
|
|
1968
|
-
}], multiple: [{
|
|
1969
|
-
type: Input,
|
|
1970
|
-
args: [{ transform: booleanAttribute }]
|
|
1971
|
-
}], styleClass: [{
|
|
1972
|
-
type: Input
|
|
1973
|
-
}], listStyle: [{
|
|
1974
|
-
type: Input
|
|
1975
|
-
}], listStyleClass: [{
|
|
1976
|
-
type: Input
|
|
1977
|
-
}], readonly: [{
|
|
1978
|
-
type: Input,
|
|
1979
|
-
args: [{ transform: booleanAttribute }]
|
|
1980
|
-
}], checkbox: [{
|
|
1981
|
-
type: Input,
|
|
1982
|
-
args: [{ transform: booleanAttribute }]
|
|
1983
|
-
}], filter: [{
|
|
1984
|
-
type: Input,
|
|
1985
|
-
args: [{ transform: booleanAttribute }]
|
|
1986
|
-
}], filterBy: [{
|
|
1987
|
-
type: Input
|
|
1988
|
-
}], filterMatchMode: [{
|
|
1989
|
-
type: Input
|
|
1990
|
-
}], filterLocale: [{
|
|
1991
|
-
type: Input
|
|
1992
|
-
}], metaKeySelection: [{
|
|
1993
|
-
type: Input,
|
|
1994
|
-
args: [{ transform: booleanAttribute }]
|
|
1995
|
-
}], dataKey: [{
|
|
1996
|
-
type: Input
|
|
1997
|
-
}], showToggleAll: [{
|
|
1998
|
-
type: Input,
|
|
1999
|
-
args: [{ transform: booleanAttribute }]
|
|
2000
|
-
}], optionLabel: [{
|
|
2001
|
-
type: Input
|
|
2002
|
-
}], optionValue: [{
|
|
2003
|
-
type: Input
|
|
2004
|
-
}], optionGroupChildren: [{
|
|
2005
|
-
type: Input
|
|
2006
|
-
}], optionGroupLabel: [{
|
|
2007
|
-
type: Input
|
|
2008
|
-
}], optionDisabled: [{
|
|
2009
|
-
type: Input
|
|
2010
|
-
}], ariaFilterLabel: [{
|
|
2011
|
-
type: Input
|
|
2012
|
-
}], filterPlaceHolder: [{
|
|
2013
|
-
type: Input
|
|
2014
|
-
}], emptyFilterMessage: [{
|
|
2015
|
-
type: Input
|
|
2016
|
-
}], emptyMessage: [{
|
|
2017
|
-
type: Input
|
|
2018
|
-
}], group: [{
|
|
2019
|
-
type: Input,
|
|
2020
|
-
args: [{ transform: booleanAttribute }]
|
|
2021
|
-
}], options: [{
|
|
2022
|
-
type: Input
|
|
2023
|
-
}], filterValue: [{
|
|
2024
|
-
type: Input
|
|
2025
|
-
}], selectAll: [{
|
|
2026
|
-
type: Input
|
|
2027
|
-
}], striped: [{
|
|
2028
|
-
type: Input,
|
|
2029
|
-
args: [{ transform: booleanAttribute }]
|
|
2030
|
-
}], highlightOnSelect: [{
|
|
2031
|
-
type: Input,
|
|
2032
|
-
args: [{ transform: booleanAttribute }]
|
|
2033
|
-
}], checkmark: [{
|
|
2034
|
-
type: Input,
|
|
2035
|
-
args: [{ transform: booleanAttribute }]
|
|
2036
|
-
}], dragdrop: [{
|
|
2037
|
-
type: Input,
|
|
2038
|
-
args: [{ transform: booleanAttribute }]
|
|
2039
|
-
}], dropListData: [{
|
|
2040
|
-
type: Input
|
|
2041
|
-
}], fluid: [{ type: i0.Input, args: [{ isSignal: true, alias: "fluid", required: false }] }], onChange: [{ type: i0.Output, args: ["onChange"] }], onClick: [{ type: i0.Output, args: ["onClick"] }], onDblClick: [{ type: i0.Output, args: ["onDblClick"] }], onFilter: [{ type: i0.Output, args: ["onFilter"] }], onFocus: [{ type: i0.Output, args: ["onFocus"] }], onBlur: [{ type: i0.Output, args: ["onBlur"] }], onSelectAllChange: [{ type: i0.Output, args: ["onSelectAllChange"] }], onLazyLoad: [{ type: i0.Output, args: ["onLazyLoad"] }], onDrop: [{ type: i0.Output, args: ["onDrop"] }], headerCheckboxViewChild: [{ type: i0.ViewChild, args: ['headerchkbox', { isSignal: true }] }], filterViewChild: [{ type: i0.ViewChild, args: ['filterInput', { isSignal: true }] }], lastHiddenFocusableElement: [{ type: i0.ViewChild, args: ['lastHiddenFocusableElement', { isSignal: true }] }], firstHiddenFocusableElement: [{ type: i0.ViewChild, args: ['firstHiddenFocusableElement', { isSignal: true }] }], scroller: [{ type: i0.ViewChild, args: ['scroller', { isSignal: true }] }], listViewChild: [{ type: i0.ViewChild, args: ['list', { isSignal: true }] }], headerFacet: [{ type: i0.ContentChild, args: [i0.forwardRef(() => Header), { isSignal: true }] }], footerFacet: [{ type: i0.ContentChild, args: [i0.forwardRef(() => Footer), { isSignal: true }] }], itemTemplate: [{ type: i0.ContentChild, args: ['item', { ...{ descendants: false }, isSignal: true }] }], groupTemplate: [{ type: i0.ContentChild, args: ['group', { ...{ descendants: false }, isSignal: true }] }], headerTemplate: [{ type: i0.ContentChild, args: ['header', { ...{ descendants: false }, isSignal: true }] }], filterTemplate: [{ type: i0.ContentChild, args: ['filter', { ...{ descendants: false }, isSignal: true }] }], footerTemplate: [{ type: i0.ContentChild, args: ['footer', { ...{ descendants: false }, isSignal: true }] }], emptyFilterTemplate: [{ type: i0.ContentChild, args: ['emptyfilter', { ...{ descendants: false }, isSignal: true }] }], emptyTemplate: [{ type: i0.ContentChild, args: ['empty', { ...{ descendants: false }, isSignal: true }] }], filterIconTemplate: [{ type: i0.ContentChild, args: ['filtericon', { ...{ descendants: false }, isSignal: true }] }], checkIconTemplate: [{ type: i0.ContentChild, args: ['checkicon', { ...{ descendants: false }, isSignal: true }] }], checkmarkTemplate: [{ type: i0.ContentChild, args: ['checkmark', { ...{ descendants: false }, isSignal: true }] }], loaderTemplate: [{ type: i0.ContentChild, args: ['loader', { ...{ descendants: false }, isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }], onHostFocusOut: [{
|
|
1860
|
+
}], ctorParameters: () => [], propDecorators: { hostName: [{ type: i0.Input, args: [{ isSignal: true, alias: "hostName", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], searchMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchMessage", required: false }] }], emptySelectionMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptySelectionMessage", required: false }] }], selectionMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectionMessage", required: false }] }], autoOptionFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoOptionFocus", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], selectOnFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectOnFocus", required: false }] }], searchLocale: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchLocale", required: false }] }], focusOnHover: [{ type: i0.Input, args: [{ isSignal: true, alias: "focusOnHover", required: false }] }], filterMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterMessage", required: false }] }], filterFields: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterFields", required: false }] }], lazy: [{ type: i0.Input, args: [{ isSignal: true, alias: "lazy", required: false }] }], virtualScroll: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualScroll", required: false }] }], virtualScrollItemSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualScrollItemSize", required: false }] }], virtualScrollOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualScrollOptions", required: false }] }], scrollHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollHeight", required: false }] }], tabindex: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabindex", required: false }] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], listStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "listStyle", required: false }] }], listStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "listStyleClass", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], checkbox: [{ type: i0.Input, args: [{ isSignal: true, alias: "checkbox", required: false }] }], filter: [{ type: i0.Input, args: [{ isSignal: true, alias: "filter", required: false }] }], filterBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterBy", required: false }] }], filterMatchMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterMatchMode", required: false }] }], filterLocale: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterLocale", required: false }] }], metaKeySelection: [{ type: i0.Input, args: [{ isSignal: true, alias: "metaKeySelection", required: false }] }], dataKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataKey", required: false }] }], showToggleAll: [{ type: i0.Input, args: [{ isSignal: true, alias: "showToggleAll", required: false }] }], optionLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionLabel", required: false }] }], optionValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionValue", required: false }] }], optionGroupChildren: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionGroupChildren", required: false }] }], optionGroupLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionGroupLabel", required: false }] }], optionDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionDisabled", required: false }] }], ariaFilterLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaFilterLabel", required: false }] }], filterPlaceHolder: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterPlaceHolder", required: false }] }], emptyFilterMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyFilterMessage", required: false }] }], emptyMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyMessage", required: false }] }], group: [{ type: i0.Input, args: [{ isSignal: true, alias: "group", required: false }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], filterValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterValue", required: false }] }], selectAll: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectAll", required: false }] }], striped: [{ type: i0.Input, args: [{ isSignal: true, alias: "striped", required: false }] }], highlightOnSelect: [{ type: i0.Input, args: [{ isSignal: true, alias: "highlightOnSelect", required: false }] }], checkmark: [{ type: i0.Input, args: [{ isSignal: true, alias: "checkmark", required: false }] }], dragdrop: [{ type: i0.Input, args: [{ isSignal: true, alias: "dragdrop", required: false }] }], dropListData: [{ type: i0.Input, args: [{ isSignal: true, alias: "dropListData", required: false }] }], fluid: [{ type: i0.Input, args: [{ isSignal: true, alias: "fluid", required: false }] }], onChange: [{ type: i0.Output, args: ["onChange"] }], onClick: [{ type: i0.Output, args: ["onClick"] }], onDblClick: [{ type: i0.Output, args: ["onDblClick"] }], onFilter: [{ type: i0.Output, args: ["onFilter"] }], onFocus: [{ type: i0.Output, args: ["onFocus"] }], onBlur: [{ type: i0.Output, args: ["onBlur"] }], onSelectAllChange: [{ type: i0.Output, args: ["onSelectAllChange"] }], onLazyLoad: [{ type: i0.Output, args: ["onLazyLoad"] }], onDrop: [{ type: i0.Output, args: ["onDrop"] }], headerCheckboxViewChild: [{ type: i0.ViewChild, args: ['headerchkbox', { isSignal: true }] }], filterViewChild: [{ type: i0.ViewChild, args: ['filterInput', { isSignal: true }] }], lastHiddenFocusableElement: [{ type: i0.ViewChild, args: ['lastHiddenFocusableElement', { isSignal: true }] }], firstHiddenFocusableElement: [{ type: i0.ViewChild, args: ['firstHiddenFocusableElement', { isSignal: true }] }], scroller: [{ type: i0.ViewChild, args: ['scroller', { isSignal: true }] }], listViewChild: [{ type: i0.ViewChild, args: ['list', { isSignal: true }] }], headerFacet: [{ type: i0.ContentChild, args: [i0.forwardRef(() => Header), { isSignal: true }] }], footerFacet: [{ type: i0.ContentChild, args: [i0.forwardRef(() => Footer), { isSignal: true }] }], itemTemplate: [{ type: i0.ContentChild, args: ['item', { ...{ descendants: false }, isSignal: true }] }], groupTemplate: [{ type: i0.ContentChild, args: ['group', { ...{ descendants: false }, isSignal: true }] }], headerTemplate: [{ type: i0.ContentChild, args: ['header', { ...{ descendants: false }, isSignal: true }] }], filterTemplate: [{ type: i0.ContentChild, args: ['filter', { ...{ descendants: false }, isSignal: true }] }], footerTemplate: [{ type: i0.ContentChild, args: ['footer', { ...{ descendants: false }, isSignal: true }] }], emptyFilterTemplate: [{ type: i0.ContentChild, args: ['emptyfilter', { ...{ descendants: false }, isSignal: true }] }], emptyTemplate: [{ type: i0.ContentChild, args: ['empty', { ...{ descendants: false }, isSignal: true }] }], filterIconTemplate: [{ type: i0.ContentChild, args: ['filtericon', { ...{ descendants: false }, isSignal: true }] }], checkIconTemplate: [{ type: i0.ContentChild, args: ['checkicon', { ...{ descendants: false }, isSignal: true }] }], checkmarkTemplate: [{ type: i0.ContentChild, args: ['checkmark', { ...{ descendants: false }, isSignal: true }] }], loaderTemplate: [{ type: i0.ContentChild, args: ['loader', { ...{ descendants: false }, isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }], onHostFocusOut: [{
|
|
2042
1861
|
type: HostListener,
|
|
2043
1862
|
args: ['focusout', ['$event']]
|
|
2044
1863
|
}] } });
|