primeng 19.0.5 → 19.0.7
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/badge/badge.d.ts +2 -2
- package/base/style/basestyle.d.ts +4 -6
- package/config/primeng.d.ts +3 -0
- package/dataview/dataview.interface.d.ts +9 -19
- package/datepicker/datepicker.d.ts +1 -0
- package/datepicker/style/datepickerstyle.d.ts +1 -0
- package/dragdrop/dragdrop.d.ts +3 -2
- package/dynamicdialog/dynamicdialog-config.d.ts +1 -1
- package/dynamicdialog/dynamicdialog.d.ts +2 -1
- package/fesm2022/primeng-accordion.mjs +347 -560
- package/fesm2022/primeng-accordion.mjs.map +1 -1
- package/fesm2022/primeng-animateonscroll.mjs +37 -40
- package/fesm2022/primeng-animateonscroll.mjs.map +1 -1
- package/fesm2022/primeng-api.mjs +79 -89
- package/fesm2022/primeng-api.mjs.map +1 -1
- package/fesm2022/primeng-autocomplete.mjs +507 -788
- package/fesm2022/primeng-autocomplete.mjs.map +1 -1
- package/fesm2022/primeng-autofocus.mjs +26 -27
- package/fesm2022/primeng-autofocus.mjs.map +1 -1
- package/fesm2022/primeng-avatar.mjs +72 -120
- package/fesm2022/primeng-avatar.mjs.map +1 -1
- package/fesm2022/primeng-avatargroup.mjs +44 -54
- package/fesm2022/primeng-avatargroup.mjs.map +1 -1
- package/fesm2022/primeng-badge.mjs +62 -71
- package/fesm2022/primeng-badge.mjs.map +1 -1
- package/fesm2022/primeng-base.mjs +14 -8
- package/fesm2022/primeng-base.mjs.map +1 -1
- package/fesm2022/primeng-basecomponent.mjs +17 -17
- package/fesm2022/primeng-basecomponent.mjs.map +1 -1
- package/fesm2022/primeng-blockui.mjs +66 -87
- package/fesm2022/primeng-blockui.mjs.map +1 -1
- package/fesm2022/primeng-breadcrumb.mjs +175 -386
- package/fesm2022/primeng-breadcrumb.mjs.map +1 -1
- package/fesm2022/primeng-button.mjs +223 -328
- package/fesm2022/primeng-button.mjs.map +1 -1
- package/fesm2022/primeng-buttongroup.mjs +36 -40
- package/fesm2022/primeng-buttongroup.mjs.map +1 -1
- package/fesm2022/primeng-calendar.mjs +727 -1127
- package/fesm2022/primeng-calendar.mjs.map +1 -1
- package/fesm2022/primeng-card.mjs +89 -193
- package/fesm2022/primeng-card.mjs.map +1 -1
- package/fesm2022/primeng-carousel.mjs +227 -410
- package/fesm2022/primeng-carousel.mjs.map +1 -1
- package/fesm2022/primeng-cascadeselect.mjs +393 -577
- package/fesm2022/primeng-cascadeselect.mjs.map +1 -1
- package/fesm2022/primeng-chart.mjs +57 -63
- package/fesm2022/primeng-chart.mjs.map +1 -1
- package/fesm2022/primeng-checkbox.mjs +133 -185
- package/fesm2022/primeng-checkbox.mjs.map +1 -1
- package/fesm2022/primeng-chip.mjs +92 -188
- package/fesm2022/primeng-chip.mjs.map +1 -1
- package/fesm2022/primeng-colorpicker.mjs +142 -167
- package/fesm2022/primeng-colorpicker.mjs.map +1 -1
- package/fesm2022/primeng-config.mjs +18 -16
- package/fesm2022/primeng-config.mjs.map +1 -1
- package/fesm2022/primeng-confirmdialog.mjs +220 -347
- package/fesm2022/primeng-confirmdialog.mjs.map +1 -1
- package/fesm2022/primeng-confirmpopup.mjs +161 -251
- package/fesm2022/primeng-confirmpopup.mjs.map +1 -1
- package/fesm2022/primeng-contextmenu.mjs +336 -450
- package/fesm2022/primeng-contextmenu.mjs.map +1 -1
- package/fesm2022/primeng-dataview.mjs +249 -352
- package/fesm2022/primeng-dataview.mjs.map +1 -1
- package/fesm2022/primeng-datepicker.mjs +751 -1144
- package/fesm2022/primeng-datepicker.mjs.map +1 -1
- package/fesm2022/primeng-defer.mjs +25 -31
- package/fesm2022/primeng-defer.mjs.map +1 -1
- package/fesm2022/primeng-dialog.mjs +277 -478
- package/fesm2022/primeng-dialog.mjs.map +1 -1
- package/fesm2022/primeng-divider.mjs +68 -77
- package/fesm2022/primeng-divider.mjs.map +1 -1
- package/fesm2022/primeng-dock.mjs +138 -167
- package/fesm2022/primeng-dock.mjs.map +1 -1
- package/fesm2022/primeng-dragdrop.mjs +85 -79
- package/fesm2022/primeng-dragdrop.mjs.map +1 -1
- package/fesm2022/primeng-drawer.mjs +172 -269
- package/fesm2022/primeng-drawer.mjs.map +1 -1
- package/fesm2022/primeng-dropdown.mjs +531 -869
- package/fesm2022/primeng-dropdown.mjs.map +1 -1
- package/fesm2022/primeng-dynamicdialog.mjs +163 -304
- package/fesm2022/primeng-dynamicdialog.mjs.map +1 -1
- package/fesm2022/primeng-editor.mjs +118 -156
- package/fesm2022/primeng-editor.mjs.map +1 -1
- package/fesm2022/primeng-fieldset.mjs +153 -247
- package/fesm2022/primeng-fieldset.mjs.map +1 -1
- package/fesm2022/primeng-fileupload.mjs +370 -690
- package/fesm2022/primeng-fileupload.mjs.map +1 -1
- package/fesm2022/primeng-floatlabel.mjs +38 -46
- package/fesm2022/primeng-floatlabel.mjs.map +1 -1
- package/fesm2022/primeng-fluid.mjs +33 -41
- package/fesm2022/primeng-fluid.mjs.map +1 -1
- package/fesm2022/primeng-focustrap.mjs +23 -24
- package/fesm2022/primeng-focustrap.mjs.map +1 -1
- package/fesm2022/primeng-galleria.mjs +529 -761
- package/fesm2022/primeng-galleria.mjs.map +1 -1
- package/fesm2022/primeng-iconfield.mjs +42 -51
- package/fesm2022/primeng-iconfield.mjs.map +1 -1
- package/fesm2022/primeng-icons-angledoubledown.mjs +19 -19
- package/fesm2022/primeng-icons-angledoubledown.mjs.map +1 -1
- package/fesm2022/primeng-icons-angledoubleleft.mjs +19 -19
- package/fesm2022/primeng-icons-angledoubleleft.mjs.map +1 -1
- package/fesm2022/primeng-icons-angledoubleright.mjs +19 -19
- package/fesm2022/primeng-icons-angledoubleright.mjs.map +1 -1
- package/fesm2022/primeng-icons-angledoubleup.mjs +19 -19
- package/fesm2022/primeng-icons-angledoubleup.mjs.map +1 -1
- package/fesm2022/primeng-icons-angledown.mjs +17 -19
- package/fesm2022/primeng-icons-angledown.mjs.map +1 -1
- package/fesm2022/primeng-icons-angleleft.mjs +17 -19
- package/fesm2022/primeng-icons-angleleft.mjs.map +1 -1
- package/fesm2022/primeng-icons-angleright.mjs +17 -19
- package/fesm2022/primeng-icons-angleright.mjs.map +1 -1
- package/fesm2022/primeng-icons-angleup.mjs +17 -19
- package/fesm2022/primeng-icons-angleup.mjs.map +1 -1
- package/fesm2022/primeng-icons-arrowdown.mjs +26 -26
- package/fesm2022/primeng-icons-arrowdown.mjs.map +1 -1
- package/fesm2022/primeng-icons-arrowdownleft.mjs +17 -19
- package/fesm2022/primeng-icons-arrowdownleft.mjs.map +1 -1
- package/fesm2022/primeng-icons-arrowdownright.mjs +17 -19
- package/fesm2022/primeng-icons-arrowdownright.mjs.map +1 -1
- package/fesm2022/primeng-icons-arrowleft.mjs +26 -26
- package/fesm2022/primeng-icons-arrowleft.mjs.map +1 -1
- package/fesm2022/primeng-icons-arrowright.mjs +19 -19
- package/fesm2022/primeng-icons-arrowright.mjs.map +1 -1
- package/fesm2022/primeng-icons-arrowup.mjs +26 -26
- package/fesm2022/primeng-icons-arrowup.mjs.map +1 -1
- package/fesm2022/primeng-icons-ban.mjs +24 -26
- package/fesm2022/primeng-icons-ban.mjs.map +1 -1
- package/fesm2022/primeng-icons-bars.mjs +19 -19
- package/fesm2022/primeng-icons-bars.mjs.map +1 -1
- package/fesm2022/primeng-icons-baseicon.mjs +28 -33
- package/fesm2022/primeng-icons-baseicon.mjs.map +1 -1
- package/fesm2022/primeng-icons-blank.mjs +14 -16
- package/fesm2022/primeng-icons-blank.mjs.map +1 -1
- package/fesm2022/primeng-icons-calendar.mjs +17 -19
- package/fesm2022/primeng-icons-calendar.mjs.map +1 -1
- package/fesm2022/primeng-icons-caretleft.mjs +17 -19
- package/fesm2022/primeng-icons-caretleft.mjs.map +1 -1
- package/fesm2022/primeng-icons-caretright.mjs +17 -19
- package/fesm2022/primeng-icons-caretright.mjs.map +1 -1
- package/fesm2022/primeng-icons-check.mjs +17 -19
- package/fesm2022/primeng-icons-check.mjs.map +1 -1
- package/fesm2022/primeng-icons-chevrondown.mjs +17 -19
- package/fesm2022/primeng-icons-chevrondown.mjs.map +1 -1
- package/fesm2022/primeng-icons-chevronleft.mjs +17 -19
- package/fesm2022/primeng-icons-chevronleft.mjs.map +1 -1
- package/fesm2022/primeng-icons-chevronright.mjs +17 -19
- package/fesm2022/primeng-icons-chevronright.mjs.map +1 -1
- package/fesm2022/primeng-icons-chevronup.mjs +17 -19
- package/fesm2022/primeng-icons-chevronup.mjs.map +1 -1
- package/fesm2022/primeng-icons-exclamationtriangle.mjs +32 -26
- package/fesm2022/primeng-icons-exclamationtriangle.mjs.map +1 -1
- package/fesm2022/primeng-icons-eye.mjs +19 -19
- package/fesm2022/primeng-icons-eye.mjs.map +1 -1
- package/fesm2022/primeng-icons-eyeslash.mjs +26 -26
- package/fesm2022/primeng-icons-eyeslash.mjs.map +1 -1
- package/fesm2022/primeng-icons-filter.mjs +24 -26
- package/fesm2022/primeng-icons-filter.mjs.map +1 -1
- package/fesm2022/primeng-icons-filterslash.mjs +26 -26
- package/fesm2022/primeng-icons-filterslash.mjs.map +1 -1
- package/fesm2022/primeng-icons-home.mjs +26 -26
- package/fesm2022/primeng-icons-home.mjs.map +1 -1
- package/fesm2022/primeng-icons-infocircle.mjs +26 -26
- package/fesm2022/primeng-icons-infocircle.mjs.map +1 -1
- package/fesm2022/primeng-icons-minus.mjs +17 -19
- package/fesm2022/primeng-icons-minus.mjs.map +1 -1
- package/fesm2022/primeng-icons-pencil.mjs +24 -26
- package/fesm2022/primeng-icons-pencil.mjs.map +1 -1
- package/fesm2022/primeng-icons-plus.mjs +24 -26
- package/fesm2022/primeng-icons-plus.mjs.map +1 -1
- package/fesm2022/primeng-icons-refresh.mjs +26 -26
- package/fesm2022/primeng-icons-refresh.mjs.map +1 -1
- package/fesm2022/primeng-icons-search.mjs +26 -26
- package/fesm2022/primeng-icons-search.mjs.map +1 -1
- package/fesm2022/primeng-icons-searchminus.mjs +26 -26
- package/fesm2022/primeng-icons-searchminus.mjs.map +1 -1
- package/fesm2022/primeng-icons-searchplus.mjs +26 -26
- package/fesm2022/primeng-icons-searchplus.mjs.map +1 -1
- package/fesm2022/primeng-icons-sortalt.mjs +30 -26
- package/fesm2022/primeng-icons-sortalt.mjs.map +1 -1
- package/fesm2022/primeng-icons-sortamountdown.mjs +24 -26
- package/fesm2022/primeng-icons-sortamountdown.mjs.map +1 -1
- package/fesm2022/primeng-icons-sortamountupalt.mjs +24 -26
- package/fesm2022/primeng-icons-sortamountupalt.mjs.map +1 -1
- package/fesm2022/primeng-icons-spinner.mjs +24 -26
- package/fesm2022/primeng-icons-spinner.mjs.map +1 -1
- package/fesm2022/primeng-icons-star.mjs +24 -26
- package/fesm2022/primeng-icons-star.mjs.map +1 -1
- package/fesm2022/primeng-icons-starfill.mjs +24 -26
- package/fesm2022/primeng-icons-starfill.mjs.map +1 -1
- package/fesm2022/primeng-icons-thlarge.mjs +26 -26
- package/fesm2022/primeng-icons-thlarge.mjs.map +1 -1
- package/fesm2022/primeng-icons-times.mjs +17 -19
- package/fesm2022/primeng-icons-times.mjs.map +1 -1
- package/fesm2022/primeng-icons-timescircle.mjs +26 -26
- package/fesm2022/primeng-icons-timescircle.mjs.map +1 -1
- package/fesm2022/primeng-icons-trash.mjs +26 -26
- package/fesm2022/primeng-icons-trash.mjs.map +1 -1
- package/fesm2022/primeng-icons-undo.mjs +26 -26
- package/fesm2022/primeng-icons-undo.mjs.map +1 -1
- package/fesm2022/primeng-icons-upload.mjs +26 -26
- package/fesm2022/primeng-icons-upload.mjs.map +1 -1
- package/fesm2022/primeng-icons-windowmaximize.mjs +26 -26
- package/fesm2022/primeng-icons-windowmaximize.mjs.map +1 -1
- package/fesm2022/primeng-icons-windowminimize.mjs +26 -26
- package/fesm2022/primeng-icons-windowminimize.mjs.map +1 -1
- package/fesm2022/primeng-iftalabel.mjs +32 -38
- package/fesm2022/primeng-iftalabel.mjs.map +1 -1
- package/fesm2022/primeng-image.mjs +189 -370
- package/fesm2022/primeng-image.mjs.map +1 -1
- package/fesm2022/primeng-imagecompare.mjs +57 -86
- package/fesm2022/primeng-imagecompare.mjs.map +1 -1
- package/fesm2022/primeng-inplace.mjs +108 -206
- package/fesm2022/primeng-inplace.mjs.map +1 -1
- package/fesm2022/primeng-inputgroup.mjs +40 -50
- package/fesm2022/primeng-inputgroup.mjs.map +1 -1
- package/fesm2022/primeng-inputgroupaddon.mjs +40 -51
- package/fesm2022/primeng-inputgroupaddon.mjs.map +1 -1
- package/fesm2022/primeng-inputicon.mjs +39 -48
- package/fesm2022/primeng-inputicon.mjs.map +1 -1
- package/fesm2022/primeng-inputmask.mjs +157 -182
- package/fesm2022/primeng-inputmask.mjs.map +1 -1
- package/fesm2022/primeng-inputnumber.mjs +303 -420
- package/fesm2022/primeng-inputnumber.mjs.map +1 -1
- package/fesm2022/primeng-inputotp.mjs +99 -123
- package/fesm2022/primeng-inputotp.mjs.map +1 -1
- package/fesm2022/primeng-inputswitch.mjs +87 -92
- package/fesm2022/primeng-inputswitch.mjs.map +1 -1
- package/fesm2022/primeng-inputtext.mjs +56 -57
- package/fesm2022/primeng-inputtext.mjs.map +1 -1
- package/fesm2022/primeng-inputtextarea.mjs +51 -56
- package/fesm2022/primeng-inputtextarea.mjs.map +1 -1
- package/fesm2022/primeng-keyfilter.mjs +44 -47
- package/fesm2022/primeng-keyfilter.mjs.map +1 -1
- package/fesm2022/primeng-knob.mjs +105 -111
- package/fesm2022/primeng-knob.mjs.map +1 -1
- package/fesm2022/primeng-listbox.mjs +511 -791
- package/fesm2022/primeng-listbox.mjs.map +1 -1
- package/fesm2022/primeng-megamenu.mjs +377 -611
- package/fesm2022/primeng-megamenu.mjs.map +1 -1
- package/fesm2022/primeng-menu.mjs +291 -473
- package/fesm2022/primeng-menu.mjs.map +1 -1
- package/fesm2022/primeng-menubar.mjs +357 -549
- package/fesm2022/primeng-menubar.mjs.map +1 -1
- package/fesm2022/primeng-message.mjs +160 -244
- package/fesm2022/primeng-message.mjs.map +1 -1
- package/fesm2022/primeng-messages.mjs +162 -278
- package/fesm2022/primeng-messages.mjs.map +1 -1
- package/fesm2022/primeng-metergroup.mjs +135 -264
- package/fesm2022/primeng-metergroup.mjs.map +1 -1
- package/fesm2022/primeng-multiselect.mjs +660 -1135
- package/fesm2022/primeng-multiselect.mjs.map +1 -1
- package/fesm2022/primeng-orderlist.mjs +228 -330
- package/fesm2022/primeng-orderlist.mjs.map +1 -1
- package/fesm2022/primeng-organizationchart.mjs +161 -311
- package/fesm2022/primeng-organizationchart.mjs.map +1 -1
- package/fesm2022/primeng-overlay.mjs +135 -147
- package/fesm2022/primeng-overlay.mjs.map +1 -1
- package/fesm2022/primeng-overlaybadge.mjs +50 -58
- package/fesm2022/primeng-overlaybadge.mjs.map +1 -1
- package/fesm2022/primeng-overlaypanel.mjs +134 -154
- package/fesm2022/primeng-overlaypanel.mjs.map +1 -1
- package/fesm2022/primeng-paginator.mjs +212 -447
- package/fesm2022/primeng-paginator.mjs.map +1 -1
- package/fesm2022/primeng-panel.mjs +219 -317
- package/fesm2022/primeng-panel.mjs.map +1 -1
- package/fesm2022/primeng-panelmenu.mjs +439 -783
- package/fesm2022/primeng-panelmenu.mjs.map +1 -1
- package/fesm2022/primeng-password.mjs +271 -410
- package/fesm2022/primeng-password.mjs.map +1 -1
- package/fesm2022/primeng-picklist.mjs +564 -856
- package/fesm2022/primeng-picklist.mjs.map +1 -1
- package/fesm2022/primeng-popover.mjs +129 -148
- package/fesm2022/primeng-popover.mjs.map +1 -1
- package/fesm2022/primeng-progressbar.mjs +81 -121
- package/fesm2022/primeng-progressbar.mjs.map +1 -1
- package/fesm2022/primeng-progressspinner.mjs +48 -58
- package/fesm2022/primeng-progressspinner.mjs.map +1 -1
- package/fesm2022/primeng-radiobutton.mjs +117 -108
- package/fesm2022/primeng-radiobutton.mjs.map +1 -1
- package/fesm2022/primeng-rating.mjs +134 -218
- package/fesm2022/primeng-rating.mjs.map +1 -1
- package/fesm2022/primeng-ripple.mjs +28 -29
- package/fesm2022/primeng-ripple.mjs.map +1 -1
- package/fesm2022/primeng-scroller.mjs +167 -295
- package/fesm2022/primeng-scroller.mjs.map +1 -1
- package/fesm2022/primeng-scrollpanel.mjs +96 -116
- package/fesm2022/primeng-scrollpanel.mjs.map +1 -1
- package/fesm2022/primeng-scrolltop.mjs +106 -150
- package/fesm2022/primeng-scrolltop.mjs.map +1 -1
- package/fesm2022/primeng-select.mjs +581 -957
- package/fesm2022/primeng-select.mjs.map +1 -1
- package/fesm2022/primeng-selectbutton.mjs +106 -133
- package/fesm2022/primeng-selectbutton.mjs.map +1 -1
- package/fesm2022/primeng-sidebar.mjs +151 -239
- package/fesm2022/primeng-sidebar.mjs.map +1 -1
- package/fesm2022/primeng-skeleton.mjs +46 -54
- package/fesm2022/primeng-skeleton.mjs.map +1 -1
- package/fesm2022/primeng-slider.mjs +186 -182
- package/fesm2022/primeng-slider.mjs.map +1 -1
- package/fesm2022/primeng-speeddial.mjs +192 -254
- package/fesm2022/primeng-speeddial.mjs.map +1 -1
- package/fesm2022/primeng-splitbutton.mjs +211 -231
- package/fesm2022/primeng-splitbutton.mjs.map +1 -1
- package/fesm2022/primeng-splitter.mjs +126 -159
- package/fesm2022/primeng-splitter.mjs.map +1 -1
- package/fesm2022/primeng-stepper.mjs +235 -341
- package/fesm2022/primeng-stepper.mjs.map +1 -1
- package/fesm2022/primeng-steps.mjs +117 -170
- package/fesm2022/primeng-steps.mjs.map +1 -1
- package/fesm2022/primeng-styleclass.mjs +50 -53
- package/fesm2022/primeng-styleclass.mjs.map +1 -1
- package/fesm2022/primeng-table.mjs +1869 -2628
- package/fesm2022/primeng-table.mjs.map +1 -1
- package/fesm2022/primeng-tabmenu.mjs +173 -319
- package/fesm2022/primeng-tabmenu.mjs.map +1 -1
- package/fesm2022/primeng-tabs.mjs +193 -308
- package/fesm2022/primeng-tabs.mjs.map +1 -1
- package/fesm2022/primeng-tabview.mjs +263 -435
- package/fesm2022/primeng-tabview.mjs.map +1 -1
- package/fesm2022/primeng-tag.mjs +63 -110
- package/fesm2022/primeng-tag.mjs.map +1 -1
- package/fesm2022/primeng-terminal.mjs +60 -104
- package/fesm2022/primeng-terminal.mjs.map +1 -1
- package/fesm2022/primeng-textarea.mjs +59 -64
- package/fesm2022/primeng-textarea.mjs.map +1 -1
- package/fesm2022/primeng-tieredmenu.mjs +338 -457
- package/fesm2022/primeng-tieredmenu.mjs.map +1 -1
- package/fesm2022/primeng-timeline.mjs +90 -156
- package/fesm2022/primeng-timeline.mjs.map +1 -1
- package/fesm2022/primeng-toast.mjs +260 -365
- package/fesm2022/primeng-toast.mjs.map +1 -1
- package/fesm2022/primeng-togglebutton.mjs +117 -150
- package/fesm2022/primeng-togglebutton.mjs.map +1 -1
- package/fesm2022/primeng-toggleswitch.mjs +98 -121
- package/fesm2022/primeng-toggleswitch.mjs.map +1 -1
- package/fesm2022/primeng-toolbar.mjs +62 -121
- package/fesm2022/primeng-toolbar.mjs.map +1 -1
- package/fesm2022/primeng-tooltip.mjs +74 -75
- package/fesm2022/primeng-tooltip.mjs.map +1 -1
- package/fesm2022/primeng-tree.mjs +455 -729
- package/fesm2022/primeng-tree.mjs.map +1 -1
- package/fesm2022/primeng-treeselect.mjs +344 -533
- package/fesm2022/primeng-treeselect.mjs.map +1 -1
- package/fesm2022/primeng-treetable.mjs +1027 -1584
- package/fesm2022/primeng-treetable.mjs.map +1 -1
- package/fesm2022/primeng-usestyle.mjs +6 -6
- package/fesm2022/primeng-usestyle.mjs.map +1 -1
- package/fesm2022/primeng-utils.mjs +3 -1
- package/fesm2022/primeng-utils.mjs.map +1 -1
- package/listbox/listbox.d.ts +17 -3
- package/message/message.d.ts +1 -0
- package/overlaybadge/overlaybadge.d.ts +1 -1
- package/package.json +189 -190
- package/password/password.d.ts +8 -1
- package/password/style/passwordstyle.d.ts +1 -0
- package/picklist/picklist.d.ts +11 -1
- package/stepper/stepper.d.ts +2 -1
- package/table/table.d.ts +1 -1
- package/table/table.interface.d.ts +2 -2
- package/tabs/tablist.d.ts +1 -1
- package/toast/toast.d.ts +1 -1
- package/tree/tree.d.ts +10 -2
- package/tree/tree.interface.d.ts +8 -0
- package/utils/zindexutils.d.ts +2 -0
@@ -1,12 +1,14 @@
|
|
1
|
+
import * as i4 from '@angular/cdk/drag-drop';
|
2
|
+
import { DragDropModule, CDK_DRAG_CONFIG } from '@angular/cdk/drag-drop';
|
1
3
|
import * as i2 from '@angular/common';
|
2
4
|
import { CommonModule } from '@angular/common';
|
3
5
|
import * as i0 from '@angular/core';
|
4
|
-
import { Injectable, forwardRef, EventEmitter, signal, inject, computed, booleanAttribute, numberAttribute,
|
6
|
+
import { Injectable, forwardRef, EventEmitter, signal, inject, computed, booleanAttribute, numberAttribute, ContentChildren, ContentChild, ViewChild, Output, Input, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
5
7
|
import * as i3 from '@angular/forms';
|
6
8
|
import { NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
|
7
|
-
import { isNotEmpty, uuid, equals, focus, getFirstFocusableElement, isEmpty, isPrintableCharacter, resolveFieldData, findSingle, findLastIndex } from '@primeuix/utils';
|
9
|
+
import { isNotEmpty, uuid, equals, focus, getFirstFocusableElement, isEmpty, isPrintableCharacter, resolveFieldData, findSingle, findLastIndex, isFunction } from '@primeuix/utils';
|
8
10
|
import * as i1 from 'primeng/api';
|
9
|
-
import { Header, Footer, PrimeTemplate
|
11
|
+
import { SharedModule, Header, Footer, PrimeTemplate } from 'primeng/api';
|
10
12
|
import { BaseComponent } from 'primeng/basecomponent';
|
11
13
|
import { Checkbox } from 'primeng/checkbox';
|
12
14
|
import { IconField } from 'primeng/iconfield';
|
@@ -92,6 +94,10 @@ const theme = ({ dt }) => `
|
|
92
94
|
box-shadow ${dt('listbox.transition.duration')}, outline-color ${dt('listbox.transition.duration')};
|
93
95
|
}
|
94
96
|
|
97
|
+
.p-listbox-option:not(.cdk-drag-disabled) {
|
98
|
+
cursor: move;
|
99
|
+
}
|
100
|
+
|
95
101
|
.p-listbox-striped li:nth-child(even of .p-listbox-option) {
|
96
102
|
background: ${dt('listbox.option.striped.background')};
|
97
103
|
}
|
@@ -171,12 +177,12 @@ class ListBoxStyle extends BaseStyle {
|
|
171
177
|
name = 'listbox';
|
172
178
|
theme = theme;
|
173
179
|
classes = classes;
|
174
|
-
static ɵfac =
|
175
|
-
static ɵprov =
|
180
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: ListBoxStyle, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
181
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: ListBoxStyle });
|
176
182
|
}
|
177
|
-
(
|
178
|
-
|
179
|
-
|
183
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: ListBoxStyle, decorators: [{
|
184
|
+
type: Injectable
|
185
|
+
}] });
|
180
186
|
/**
|
181
187
|
*
|
182
188
|
* ListBox is used to select one or more values from a list of items.
|
@@ -230,449 +236,6 @@ var ListboxClasses;
|
|
230
236
|
ListboxClasses["emptyMessage"] = "p-listbox-empty-message";
|
231
237
|
})(ListboxClasses || (ListboxClasses = {}));
|
232
238
|
|
233
|
-
const _c0 = ["item"];
|
234
|
-
const _c1 = ["group"];
|
235
|
-
const _c2 = ["header"];
|
236
|
-
const _c3 = ["filter"];
|
237
|
-
const _c4 = ["footer"];
|
238
|
-
const _c5 = ["emptyfilter"];
|
239
|
-
const _c6 = ["empty"];
|
240
|
-
const _c7 = ["filtericon"];
|
241
|
-
const _c8 = ["checkicon"];
|
242
|
-
const _c9 = ["checkmark"];
|
243
|
-
const _c10 = ["loader"];
|
244
|
-
const _c11 = ["headerchkbox"];
|
245
|
-
const _c12 = ["lastHiddenFocusableElement"];
|
246
|
-
const _c13 = ["firstHiddenFocusableElement"];
|
247
|
-
const _c14 = ["scroller"];
|
248
|
-
const _c15 = ["list"];
|
249
|
-
const _c16 = ["container"];
|
250
|
-
const _c17 = [[["p-header"]], [["p-footer"]]];
|
251
|
-
const _c18 = ["p-header", "p-footer"];
|
252
|
-
const _c19 = (a0, a1) => ({ $implicit: a0, options: a1 });
|
253
|
-
const _c20 = a0 => ({ "p-checkbox-disabled": a0 });
|
254
|
-
const _c21 = a0 => ({ $implicit: a0 });
|
255
|
-
const _c22 = a0 => ({ options: a0 });
|
256
|
-
const _c23 = a0 => ({ height: a0 });
|
257
|
-
const _c24 = () => ({});
|
258
|
-
const _c25 = (a0, a1, a2) => ({ "p-listbox-option-selected": a0, "p-focus": a1, "p-disabled": a2 });
|
259
|
-
const _c26 = (a0, a1, a2) => ({ $implicit: a0, index: a1, selected: a2 });
|
260
|
-
const _c27 = a0 => ({ implicit: a0 });
|
261
|
-
function Listbox_div_3_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
262
|
-
i0.ɵɵelementContainer(0);
|
263
|
-
} }
|
264
|
-
function Listbox_div_3_Template(rf, ctx) { if (rf & 1) {
|
265
|
-
i0.ɵɵelementStart(0, "div", 23);
|
266
|
-
i0.ɵɵprojection(1);
|
267
|
-
i0.ɵɵtemplate(2, Listbox_div_3_ng_container_2_Template, 1, 0, "ng-container", 24);
|
268
|
-
i0.ɵɵelementEnd();
|
269
|
-
} if (rf & 2) {
|
270
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
271
|
-
i0.ɵɵadvance(2);
|
272
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.headerTemplate || ctx_r1._headerTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c19, ctx_r1.modelValue(), ctx_r1.visibleOptions()));
|
273
|
-
} }
|
274
|
-
function Listbox_div_4_div_1_p_checkbox_4_ng_container_1_ng_template_1_0_ng_template_0_Template(rf, ctx) { }
|
275
|
-
function Listbox_div_4_div_1_p_checkbox_4_ng_container_1_ng_template_1_0_Template(rf, ctx) { if (rf & 1) {
|
276
|
-
i0.ɵɵtemplate(0, Listbox_div_4_div_1_p_checkbox_4_ng_container_1_ng_template_1_0_ng_template_0_Template, 0, 0, "ng-template");
|
277
|
-
} }
|
278
|
-
function Listbox_div_4_div_1_p_checkbox_4_ng_container_1_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
279
|
-
i0.ɵɵtemplate(0, Listbox_div_4_div_1_p_checkbox_4_ng_container_1_ng_template_1_0_Template, 1, 0, null, 24);
|
280
|
-
} if (rf & 2) {
|
281
|
-
const ctx_r1 = i0.ɵɵnextContext(5);
|
282
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.checkIconTemplate || ctx_r1._checkIconTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c21, ctx_r1.allSelected()));
|
283
|
-
} }
|
284
|
-
function Listbox_div_4_div_1_p_checkbox_4_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
285
|
-
i0.ɵɵelementContainerStart(0);
|
286
|
-
i0.ɵɵtemplate(1, Listbox_div_4_div_1_p_checkbox_4_ng_container_1_ng_template_1_Template, 1, 4, "ng-template", null, 6, i0.ɵɵtemplateRefExtractor);
|
287
|
-
i0.ɵɵelementContainerEnd();
|
288
|
-
} }
|
289
|
-
function Listbox_div_4_div_1_p_checkbox_4_Template(rf, ctx) { if (rf & 1) {
|
290
|
-
i0.ɵɵelementStart(0, "p-checkbox", 31);
|
291
|
-
i0.ɵɵtemplate(1, Listbox_div_4_div_1_p_checkbox_4_ng_container_1_Template, 3, 0, "ng-container", 19);
|
292
|
-
i0.ɵɵelementEnd();
|
293
|
-
} if (rf & 2) {
|
294
|
-
const ctx_r1 = i0.ɵɵnextContext(3);
|
295
|
-
i0.ɵɵproperty("ngModel", ctx_r1.allSelected())("disabled", ctx_r1.disabled)("tabindex", -1)("variant", ctx_r1.config.inputStyle() === "filled" ? "filled" : "outlined" || ctx_r1.config.inputVariant() === "filled" ? "filled" : "outlined")("binary", true);
|
296
|
-
i0.ɵɵadvance();
|
297
|
-
i0.ɵɵproperty("ngIf", ctx_r1.checkIconTemplate || ctx_r1._checkIconTemplate);
|
298
|
-
} }
|
299
|
-
function Listbox_div_4_div_1_Template(rf, ctx) { if (rf & 1) {
|
300
|
-
const _r3 = i0.ɵɵgetCurrentView();
|
301
|
-
i0.ɵɵelementStart(0, "div", 27);
|
302
|
-
i0.ɵɵlistener("click", function Listbox_div_4_div_1_Template_div_click_0_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onToggleAll($event)); })("keydown", function Listbox_div_4_div_1_Template_div_keydown_0_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onHeaderCheckboxKeyDown($event)); });
|
303
|
-
i0.ɵɵelementStart(1, "div", 28)(2, "input", 29, 5);
|
304
|
-
i0.ɵɵlistener("focus", function Listbox_div_4_div_1_Template_input_focus_2_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onHeaderCheckboxFocus($event)); })("blur", function Listbox_div_4_div_1_Template_input_blur_2_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onHeaderCheckboxBlur()); });
|
305
|
-
i0.ɵɵelementEnd()();
|
306
|
-
i0.ɵɵtemplate(4, Listbox_div_4_div_1_p_checkbox_4_Template, 2, 6, "p-checkbox", 30);
|
307
|
-
i0.ɵɵelementEnd();
|
308
|
-
} if (rf & 2) {
|
309
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
310
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c20, ctx_r1.disabled));
|
311
|
-
i0.ɵɵadvance();
|
312
|
-
i0.ɵɵattribute("data-p-hidden-accessible", true);
|
313
|
-
i0.ɵɵadvance();
|
314
|
-
i0.ɵɵproperty("disabled", ctx_r1.disabled);
|
315
|
-
i0.ɵɵattribute("checked", ctx_r1.allSelected())("aria-label", ctx_r1.toggleAllAriaLabel);
|
316
|
-
i0.ɵɵadvance(2);
|
317
|
-
i0.ɵɵproperty("ngIf", ctx_r1.checkbox && ctx_r1.multiple);
|
318
|
-
} }
|
319
|
-
function Listbox_div_4_ng_container_2_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
320
|
-
i0.ɵɵelementContainer(0);
|
321
|
-
} }
|
322
|
-
function Listbox_div_4_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
323
|
-
i0.ɵɵelementContainerStart(0);
|
324
|
-
i0.ɵɵtemplate(1, Listbox_div_4_ng_container_2_ng_container_1_Template, 1, 0, "ng-container", 24);
|
325
|
-
i0.ɵɵelementContainerEnd();
|
326
|
-
} if (rf & 2) {
|
327
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
328
|
-
i0.ɵɵadvance();
|
329
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.filterTemplate || ctx_r1._filterTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c22, ctx_r1.filterOptions));
|
330
|
-
} }
|
331
|
-
function Listbox_div_4_ng_template_3_div_0_SearchIcon_5_Template(rf, ctx) { if (rf & 1) {
|
332
|
-
i0.ɵɵelement(0, "SearchIcon", 38);
|
333
|
-
} if (rf & 2) {
|
334
|
-
i0.ɵɵproperty("styleClass", "p-listbox-filter-icon");
|
335
|
-
i0.ɵɵattribute("aria-hidden", true);
|
336
|
-
} }
|
337
|
-
function Listbox_div_4_ng_template_3_div_0_span_6_1_ng_template_0_Template(rf, ctx) { }
|
338
|
-
function Listbox_div_4_ng_template_3_div_0_span_6_1_Template(rf, ctx) { if (rf & 1) {
|
339
|
-
i0.ɵɵtemplate(0, Listbox_div_4_ng_template_3_div_0_span_6_1_ng_template_0_Template, 0, 0, "ng-template");
|
340
|
-
} }
|
341
|
-
function Listbox_div_4_ng_template_3_div_0_span_6_Template(rf, ctx) { if (rf & 1) {
|
342
|
-
i0.ɵɵelementStart(0, "span", 39);
|
343
|
-
i0.ɵɵtemplate(1, Listbox_div_4_ng_template_3_div_0_span_6_1_Template, 1, 0, null, 40);
|
344
|
-
i0.ɵɵelementEnd();
|
345
|
-
} if (rf & 2) {
|
346
|
-
const ctx_r1 = i0.ɵɵnextContext(4);
|
347
|
-
i0.ɵɵattribute("aria-hidden", true);
|
348
|
-
i0.ɵɵadvance();
|
349
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.filterIconTemplate || ctx_r1._filterIconTemplate);
|
350
|
-
} }
|
351
|
-
function Listbox_div_4_ng_template_3_div_0_Template(rf, ctx) { if (rf & 1) {
|
352
|
-
const _r4 = i0.ɵɵgetCurrentView();
|
353
|
-
i0.ɵɵelementStart(0, "div", 34)(1, "p-iconfield")(2, "input", 35, 7);
|
354
|
-
i0.ɵɵlistener("input", function Listbox_div_4_ng_template_3_div_0_Template_input_input_2_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.onFilterChange($event)); })("keydown", function Listbox_div_4_ng_template_3_div_0_Template_input_keydown_2_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.onFilterKeyDown($event)); })("focus", function Listbox_div_4_ng_template_3_div_0_Template_input_focus_2_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.onFilterFocus($event)); })("blur", function Listbox_div_4_ng_template_3_div_0_Template_input_blur_2_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.onFilterBlur($event)); });
|
355
|
-
i0.ɵɵelementEnd();
|
356
|
-
i0.ɵɵelementStart(4, "p-inputicon");
|
357
|
-
i0.ɵɵtemplate(5, Listbox_div_4_ng_template_3_div_0_SearchIcon_5_Template, 1, 2, "SearchIcon", 36)(6, Listbox_div_4_ng_template_3_div_0_span_6_Template, 2, 2, "span", 37);
|
358
|
-
i0.ɵɵelementEnd()()();
|
359
|
-
} if (rf & 2) {
|
360
|
-
const ctx_r1 = i0.ɵɵnextContext(3);
|
361
|
-
i0.ɵɵadvance(2);
|
362
|
-
i0.ɵɵproperty("value", ctx_r1._filterValue() || "")("disabled", ctx_r1.disabled)("tabindex", !ctx_r1.disabled && !ctx_r1.focused ? ctx_r1.tabindex : -1);
|
363
|
-
i0.ɵɵattribute("aria-owns", ctx_r1.id + "_list")("aria-activedescendant", ctx_r1.focusedOptionId)("placeholder", ctx_r1.filterPlaceHolder)("aria-label", ctx_r1.ariaFilterLabel);
|
364
|
-
i0.ɵɵadvance(3);
|
365
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.filterIconTemplate && !ctx_r1._filterIconTemplate);
|
366
|
-
i0.ɵɵadvance();
|
367
|
-
i0.ɵɵproperty("ngIf", ctx_r1.filterIconTemplate || ctx_r1._filterIconTemplate);
|
368
|
-
} }
|
369
|
-
function Listbox_div_4_ng_template_3_Template(rf, ctx) { if (rf & 1) {
|
370
|
-
i0.ɵɵtemplate(0, Listbox_div_4_ng_template_3_div_0_Template, 7, 9, "div", 32);
|
371
|
-
i0.ɵɵelementStart(1, "span", 33);
|
372
|
-
i0.ɵɵtext(2);
|
373
|
-
i0.ɵɵelementEnd();
|
374
|
-
} if (rf & 2) {
|
375
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
376
|
-
i0.ɵɵproperty("ngIf", ctx_r1.filter);
|
377
|
-
i0.ɵɵadvance();
|
378
|
-
i0.ɵɵattribute("data-p-hidden-accessible", true);
|
379
|
-
i0.ɵɵadvance();
|
380
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r1.filterResultMessageText, " ");
|
381
|
-
} }
|
382
|
-
function Listbox_div_4_Template(rf, ctx) { if (rf & 1) {
|
383
|
-
i0.ɵɵelementStart(0, "div", 23);
|
384
|
-
i0.ɵɵtemplate(1, Listbox_div_4_div_1_Template, 5, 8, "div", 25)(2, Listbox_div_4_ng_container_2_Template, 2, 4, "ng-container", 26)(3, Listbox_div_4_ng_template_3_Template, 3, 3, "ng-template", null, 4, i0.ɵɵtemplateRefExtractor);
|
385
|
-
i0.ɵɵelementEnd();
|
386
|
-
} if (rf & 2) {
|
387
|
-
const builtInFilterElement_r5 = i0.ɵɵreference(4);
|
388
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
389
|
-
i0.ɵɵadvance();
|
390
|
-
i0.ɵɵproperty("ngIf", ctx_r1.checkbox && ctx_r1.multiple && ctx_r1.showToggleAll);
|
391
|
-
i0.ɵɵadvance();
|
392
|
-
i0.ɵɵproperty("ngIf", ctx_r1.filterTemplate || ctx_r1._filterTemplate)("ngIfElse", builtInFilterElement_r5);
|
393
|
-
} }
|
394
|
-
function Listbox_p_scroller_7_ng_template_2_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
395
|
-
i0.ɵɵelementContainer(0);
|
396
|
-
} }
|
397
|
-
function Listbox_p_scroller_7_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
398
|
-
i0.ɵɵtemplate(0, Listbox_p_scroller_7_ng_template_2_ng_container_0_Template, 1, 0, "ng-container", 24);
|
399
|
-
} if (rf & 2) {
|
400
|
-
const items_r7 = ctx.$implicit;
|
401
|
-
const scrollerOptions_r8 = ctx.options;
|
402
|
-
i0.ɵɵnextContext(2);
|
403
|
-
const buildInItems_r9 = i0.ɵɵreference(10);
|
404
|
-
i0.ɵɵproperty("ngTemplateOutlet", buildInItems_r9)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c19, items_r7, scrollerOptions_r8));
|
405
|
-
} }
|
406
|
-
function Listbox_p_scroller_7_Conditional_4_ng_template_0_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
407
|
-
i0.ɵɵelementContainer(0);
|
408
|
-
} }
|
409
|
-
function Listbox_p_scroller_7_Conditional_4_ng_template_0_Template(rf, ctx) { if (rf & 1) {
|
410
|
-
i0.ɵɵtemplate(0, Listbox_p_scroller_7_Conditional_4_ng_template_0_ng_container_0_Template, 1, 0, "ng-container", 24);
|
411
|
-
} if (rf & 2) {
|
412
|
-
const scrollerOptions_r10 = ctx.options;
|
413
|
-
const ctx_r1 = i0.ɵɵnextContext(3);
|
414
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.loaderTemplate || ctx_r1._loaderTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c22, scrollerOptions_r10));
|
415
|
-
} }
|
416
|
-
function Listbox_p_scroller_7_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
417
|
-
i0.ɵɵtemplate(0, Listbox_p_scroller_7_Conditional_4_ng_template_0_Template, 1, 4, "ng-template", null, 10, i0.ɵɵtemplateRefExtractor);
|
418
|
-
} }
|
419
|
-
function Listbox_p_scroller_7_Template(rf, ctx) { if (rf & 1) {
|
420
|
-
const _r6 = i0.ɵɵgetCurrentView();
|
421
|
-
i0.ɵɵelementStart(0, "p-scroller", 41, 8);
|
422
|
-
i0.ɵɵlistener("onLazyLoad", function Listbox_p_scroller_7_Template_p_scroller_onLazyLoad_0_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onLazyLoad.emit($event)); });
|
423
|
-
i0.ɵɵtemplate(2, Listbox_p_scroller_7_ng_template_2_Template, 1, 5, "ng-template", null, 9, i0.ɵɵtemplateRefExtractor)(4, Listbox_p_scroller_7_Conditional_4_Template, 2, 0);
|
424
|
-
i0.ɵɵelementEnd();
|
425
|
-
} if (rf & 2) {
|
426
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
427
|
-
i0.ɵɵstyleMap(i0.ɵɵpureFunction1(9, _c23, ctx_r1.scrollHeight));
|
428
|
-
i0.ɵɵproperty("items", ctx_r1.visibleOptions())("itemSize", ctx_r1.virtualScrollItemSize)("autoSize", true)("lazy", ctx_r1.lazy)("options", ctx_r1.virtualScrollOptions)("tabindex", ctx_r1.scrollerTabIndex);
|
429
|
-
i0.ɵɵadvance(4);
|
430
|
-
i0.ɵɵconditional(ctx_r1.loaderTemplate || ctx_r1._loaderTemplate ? 4 : -1);
|
431
|
-
} }
|
432
|
-
function Listbox_ng_container_8_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
433
|
-
i0.ɵɵelementContainer(0);
|
434
|
-
} }
|
435
|
-
function Listbox_ng_container_8_Template(rf, ctx) { if (rf & 1) {
|
436
|
-
i0.ɵɵelementContainerStart(0);
|
437
|
-
i0.ɵɵtemplate(1, Listbox_ng_container_8_ng_container_1_Template, 1, 0, "ng-container", 24);
|
438
|
-
i0.ɵɵelementContainerEnd();
|
439
|
-
} if (rf & 2) {
|
440
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
441
|
-
const buildInItems_r9 = i0.ɵɵreference(10);
|
442
|
-
i0.ɵɵadvance();
|
443
|
-
i0.ɵɵproperty("ngTemplateOutlet", buildInItems_r9)("ngTemplateOutletContext", i0.ɵɵpureFunction2(3, _c19, ctx_r1.visibleOptions(), i0.ɵɵpureFunction0(2, _c24)));
|
444
|
-
} }
|
445
|
-
function Listbox_ng_template_9_ng_template_2_ng_container_0_span_2_Template(rf, ctx) { if (rf & 1) {
|
446
|
-
i0.ɵɵelementStart(0, "span");
|
447
|
-
i0.ɵɵtext(1);
|
448
|
-
i0.ɵɵelementEnd();
|
449
|
-
} if (rf & 2) {
|
450
|
-
const option_r12 = i0.ɵɵnextContext(2).$implicit;
|
451
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
452
|
-
i0.ɵɵadvance();
|
453
|
-
i0.ɵɵtextInterpolate(ctx_r1.getOptionGroupLabel(option_r12.optionGroup));
|
454
|
-
} }
|
455
|
-
function Listbox_ng_template_9_ng_template_2_ng_container_0_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
456
|
-
i0.ɵɵelementContainer(0);
|
457
|
-
} }
|
458
|
-
function Listbox_ng_template_9_ng_template_2_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
459
|
-
i0.ɵɵelementContainerStart(0);
|
460
|
-
i0.ɵɵelementStart(1, "li", 45);
|
461
|
-
i0.ɵɵtemplate(2, Listbox_ng_template_9_ng_template_2_ng_container_0_span_2_Template, 2, 1, "span", 19)(3, Listbox_ng_template_9_ng_template_2_ng_container_0_ng_container_3_Template, 1, 0, "ng-container", 24);
|
462
|
-
i0.ɵɵelementEnd();
|
463
|
-
i0.ɵɵelementContainerEnd();
|
464
|
-
} if (rf & 2) {
|
465
|
-
const ctx_r12 = i0.ɵɵnextContext();
|
466
|
-
const option_r12 = ctx_r12.$implicit;
|
467
|
-
const i_r14 = ctx_r12.index;
|
468
|
-
const scrollerOptions_r15 = i0.ɵɵnextContext().options;
|
469
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
470
|
-
i0.ɵɵadvance();
|
471
|
-
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(5, _c23, scrollerOptions_r15.itemSize + "px"));
|
472
|
-
i0.ɵɵattribute("id", ctx_r1.id + "_" + ctx_r1.getOptionIndex(i_r14, scrollerOptions_r15));
|
473
|
-
i0.ɵɵadvance();
|
474
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.groupTemplate && !ctx_r1._groupTemplate);
|
475
|
-
i0.ɵɵadvance();
|
476
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.groupTemplate || ctx_r1._groupTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(7, _c21, option_r12.optionGroup));
|
477
|
-
} }
|
478
|
-
function Listbox_ng_template_9_ng_template_2_ng_container_1_p_checkbox_2_ng_container_1_ng_template_1_0_ng_template_0_Template(rf, ctx) { }
|
479
|
-
function Listbox_ng_template_9_ng_template_2_ng_container_1_p_checkbox_2_ng_container_1_ng_template_1_0_Template(rf, ctx) { if (rf & 1) {
|
480
|
-
i0.ɵɵtemplate(0, Listbox_ng_template_9_ng_template_2_ng_container_1_p_checkbox_2_ng_container_1_ng_template_1_0_ng_template_0_Template, 0, 0, "ng-template");
|
481
|
-
} }
|
482
|
-
function Listbox_ng_template_9_ng_template_2_ng_container_1_p_checkbox_2_ng_container_1_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
483
|
-
i0.ɵɵtemplate(0, Listbox_ng_template_9_ng_template_2_ng_container_1_p_checkbox_2_ng_container_1_ng_template_1_0_Template, 1, 0, null, 24);
|
484
|
-
} if (rf & 2) {
|
485
|
-
const option_r12 = i0.ɵɵnextContext(4).$implicit;
|
486
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
487
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.checkIconTemplate || ctx_r1._checkIconTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c21, ctx_r1.isSelected(option_r12)));
|
488
|
-
} }
|
489
|
-
function Listbox_ng_template_9_ng_template_2_ng_container_1_p_checkbox_2_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
490
|
-
i0.ɵɵelementContainerStart(0);
|
491
|
-
i0.ɵɵtemplate(1, Listbox_ng_template_9_ng_template_2_ng_container_1_p_checkbox_2_ng_container_1_ng_template_1_Template, 1, 4, "ng-template", null, 6, i0.ɵɵtemplateRefExtractor);
|
492
|
-
i0.ɵɵelementContainerEnd();
|
493
|
-
} }
|
494
|
-
function Listbox_ng_template_9_ng_template_2_ng_container_1_p_checkbox_2_Template(rf, ctx) { if (rf & 1) {
|
495
|
-
i0.ɵɵelementStart(0, "p-checkbox", 48);
|
496
|
-
i0.ɵɵtemplate(1, Listbox_ng_template_9_ng_template_2_ng_container_1_p_checkbox_2_ng_container_1_Template, 3, 0, "ng-container", 19);
|
497
|
-
i0.ɵɵelementEnd();
|
498
|
-
} if (rf & 2) {
|
499
|
-
const option_r12 = i0.ɵɵnextContext(2).$implicit;
|
500
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
501
|
-
i0.ɵɵproperty("ngModel", ctx_r1.isSelected(option_r12))("readonly", true)("disabled", ctx_r1.disabled || ctx_r1.isOptionDisabled(option_r12))("tabindex", -1)("variant", ctx_r1.config.inputStyle() === "filled" ? "filled" : "outlined" || ctx_r1.config.inputVariant() === "filled" ? "filled" : "outlined")("binary", true);
|
502
|
-
i0.ɵɵadvance();
|
503
|
-
i0.ɵɵproperty("ngIf", ctx_r1.checkIconTemplate || ctx_r1._checkIconTemplate);
|
504
|
-
} }
|
505
|
-
function Listbox_ng_template_9_ng_template_2_ng_container_1_ng_container_3_ng_container_1_BlankIcon_1_Template(rf, ctx) { if (rf & 1) {
|
506
|
-
i0.ɵɵelement(0, "BlankIcon", 50);
|
507
|
-
} }
|
508
|
-
function Listbox_ng_template_9_ng_template_2_ng_container_1_ng_container_3_ng_container_1_CheckIcon_2_Template(rf, ctx) { if (rf & 1) {
|
509
|
-
i0.ɵɵelement(0, "CheckIcon", 50);
|
510
|
-
} }
|
511
|
-
function Listbox_ng_template_9_ng_template_2_ng_container_1_ng_container_3_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
512
|
-
i0.ɵɵelementContainerStart(0);
|
513
|
-
i0.ɵɵtemplate(1, Listbox_ng_template_9_ng_template_2_ng_container_1_ng_container_3_ng_container_1_BlankIcon_1_Template, 1, 0, "BlankIcon", 49)(2, Listbox_ng_template_9_ng_template_2_ng_container_1_ng_container_3_ng_container_1_CheckIcon_2_Template, 1, 0, "CheckIcon", 49);
|
514
|
-
i0.ɵɵelementContainerEnd();
|
515
|
-
} if (rf & 2) {
|
516
|
-
const option_r12 = i0.ɵɵnextContext(3).$implicit;
|
517
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
518
|
-
i0.ɵɵadvance();
|
519
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.isSelected(option_r12));
|
520
|
-
i0.ɵɵadvance();
|
521
|
-
i0.ɵɵproperty("ngIf", ctx_r1.isSelected(option_r12));
|
522
|
-
} }
|
523
|
-
function Listbox_ng_template_9_ng_template_2_ng_container_1_ng_container_3_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
524
|
-
i0.ɵɵelementContainer(0);
|
525
|
-
} }
|
526
|
-
function Listbox_ng_template_9_ng_template_2_ng_container_1_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
527
|
-
i0.ɵɵelementContainerStart(0);
|
528
|
-
i0.ɵɵtemplate(1, Listbox_ng_template_9_ng_template_2_ng_container_1_ng_container_3_ng_container_1_Template, 3, 2, "ng-container", 19)(2, Listbox_ng_template_9_ng_template_2_ng_container_1_ng_container_3_ng_container_2_Template, 1, 0, "ng-container", 24);
|
529
|
-
i0.ɵɵelementContainerEnd();
|
530
|
-
} if (rf & 2) {
|
531
|
-
const option_r12 = i0.ɵɵnextContext(2).$implicit;
|
532
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
533
|
-
i0.ɵɵadvance();
|
534
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.checkmarkTemplate && !ctx_r1._checkmarkTemplate);
|
535
|
-
i0.ɵɵadvance();
|
536
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.checkmarkTemplate || ctx_r1._checkmarkTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(3, _c27, ctx_r1.isSelected(option_r12)));
|
537
|
-
} }
|
538
|
-
function Listbox_ng_template_9_ng_template_2_ng_container_1_span_4_Template(rf, ctx) { if (rf & 1) {
|
539
|
-
i0.ɵɵelementStart(0, "span");
|
540
|
-
i0.ɵɵtext(1);
|
541
|
-
i0.ɵɵelementEnd();
|
542
|
-
} if (rf & 2) {
|
543
|
-
const option_r12 = i0.ɵɵnextContext(2).$implicit;
|
544
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
545
|
-
i0.ɵɵadvance();
|
546
|
-
i0.ɵɵtextInterpolate(ctx_r1.getOptionLabel(option_r12));
|
547
|
-
} }
|
548
|
-
function Listbox_ng_template_9_ng_template_2_ng_container_1_ng_container_5_Template(rf, ctx) { if (rf & 1) {
|
549
|
-
i0.ɵɵelementContainer(0);
|
550
|
-
} }
|
551
|
-
function Listbox_ng_template_9_ng_template_2_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
552
|
-
const _r16 = i0.ɵɵgetCurrentView();
|
553
|
-
i0.ɵɵelementContainerStart(0);
|
554
|
-
i0.ɵɵelementStart(1, "li", 46);
|
555
|
-
i0.ɵɵlistener("click", function Listbox_ng_template_9_ng_template_2_ng_container_1_Template_li_click_1_listener($event) { i0.ɵɵrestoreView(_r16); const ctx_r12 = i0.ɵɵnextContext(); const option_r12 = ctx_r12.$implicit; const i_r14 = ctx_r12.index; const scrollerOptions_r15 = i0.ɵɵnextContext().options; const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onOptionSelect($event, option_r12, ctx_r1.getOptionIndex(i_r14, scrollerOptions_r15))); })("dblclick", function Listbox_ng_template_9_ng_template_2_ng_container_1_Template_li_dblclick_1_listener($event) { i0.ɵɵrestoreView(_r16); const option_r12 = i0.ɵɵnextContext().$implicit; const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onOptionDoubleClick($event, option_r12)); })("mousedown", function Listbox_ng_template_9_ng_template_2_ng_container_1_Template_li_mousedown_1_listener($event) { i0.ɵɵrestoreView(_r16); const i_r14 = i0.ɵɵnextContext().index; const scrollerOptions_r15 = i0.ɵɵnextContext().options; const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onOptionMouseDown($event, ctx_r1.getOptionIndex(i_r14, scrollerOptions_r15))); })("mouseenter", function Listbox_ng_template_9_ng_template_2_ng_container_1_Template_li_mouseenter_1_listener($event) { i0.ɵɵrestoreView(_r16); const i_r14 = i0.ɵɵnextContext().index; const scrollerOptions_r15 = i0.ɵɵnextContext().options; const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onOptionMouseEnter($event, ctx_r1.getOptionIndex(i_r14, scrollerOptions_r15))); })("touchend", function Listbox_ng_template_9_ng_template_2_ng_container_1_Template_li_touchend_1_listener() { i0.ɵɵrestoreView(_r16); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.onOptionTouchEnd()); });
|
556
|
-
i0.ɵɵtemplate(2, Listbox_ng_template_9_ng_template_2_ng_container_1_p_checkbox_2_Template, 2, 7, "p-checkbox", 47)(3, Listbox_ng_template_9_ng_template_2_ng_container_1_ng_container_3_Template, 3, 5, "ng-container", 19)(4, Listbox_ng_template_9_ng_template_2_ng_container_1_span_4_Template, 2, 1, "span", 19)(5, Listbox_ng_template_9_ng_template_2_ng_container_1_ng_container_5_Template, 1, 0, "ng-container", 24);
|
557
|
-
i0.ɵɵelementEnd();
|
558
|
-
i0.ɵɵelementContainerEnd();
|
559
|
-
} if (rf & 2) {
|
560
|
-
const ctx_r12 = i0.ɵɵnextContext();
|
561
|
-
const option_r12 = ctx_r12.$implicit;
|
562
|
-
const i_r14 = ctx_r12.index;
|
563
|
-
const scrollerOptions_r15 = i0.ɵɵnextContext().options;
|
564
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
565
|
-
i0.ɵɵadvance();
|
566
|
-
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(13, _c23, scrollerOptions_r15.itemSize + "px"))("ngClass", i0.ɵɵpureFunction3(15, _c25, ctx_r1.isSelected(option_r12) && ctx_r1.highlightOnSelect, ctx_r1.focusedOptionIndex() === ctx_r1.getOptionIndex(i_r14, scrollerOptions_r15), ctx_r1.isOptionDisabled(option_r12)));
|
567
|
-
i0.ɵɵattribute("id", ctx_r1.id + "_" + ctx_r1.getOptionIndex(i_r14, scrollerOptions_r15))("aria-label", ctx_r1.getOptionLabel(option_r12))("aria-selected", ctx_r1.isSelected(option_r12))("aria-disabled", ctx_r1.isOptionDisabled(option_r12))("aria-setsize", ctx_r1.ariaSetSize)("ariaPosInset", ctx_r1.getAriaPosInset(ctx_r1.getOptionIndex(i_r14, scrollerOptions_r15)));
|
568
|
-
i0.ɵɵadvance();
|
569
|
-
i0.ɵɵproperty("ngIf", ctx_r1.checkbox && ctx_r1.multiple);
|
570
|
-
i0.ɵɵadvance();
|
571
|
-
i0.ɵɵproperty("ngIf", ctx_r1.checkmark);
|
572
|
-
i0.ɵɵadvance();
|
573
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.itemTemplate && !ctx_r1._itemTemplate);
|
574
|
-
i0.ɵɵadvance();
|
575
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.itemTemplate || ctx_r1._itemTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction3(19, _c26, option_r12, ctx_r1.getOptionIndex(i_r14, scrollerOptions_r15), ctx_r1.isSelected(option_r12)));
|
576
|
-
} }
|
577
|
-
function Listbox_ng_template_9_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
578
|
-
i0.ɵɵtemplate(0, Listbox_ng_template_9_ng_template_2_ng_container_0_Template, 4, 9, "ng-container", 19)(1, Listbox_ng_template_9_ng_template_2_ng_container_1_Template, 6, 23, "ng-container", 19);
|
579
|
-
} if (rf & 2) {
|
580
|
-
const option_r12 = ctx.$implicit;
|
581
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
582
|
-
i0.ɵɵproperty("ngIf", ctx_r1.isOptionGroup(option_r12));
|
583
|
-
i0.ɵɵadvance();
|
584
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.isOptionGroup(option_r12));
|
585
|
-
} }
|
586
|
-
function Listbox_ng_template_9_li_3_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
587
|
-
i0.ɵɵtext(0);
|
588
|
-
} if (rf & 2) {
|
589
|
-
const ctx_r1 = i0.ɵɵnextContext(3);
|
590
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r1.emptyFilterMessageText, " ");
|
591
|
-
} }
|
592
|
-
function Listbox_ng_template_9_li_3_Conditional_2_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
593
|
-
i0.ɵɵelementContainer(0, null, 12);
|
594
|
-
} }
|
595
|
-
function Listbox_ng_template_9_li_3_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
596
|
-
i0.ɵɵtemplate(0, Listbox_ng_template_9_li_3_Conditional_2_ng_container_0_Template, 2, 0, "ng-container", 40);
|
597
|
-
} if (rf & 2) {
|
598
|
-
const ctx_r1 = i0.ɵɵnextContext(3);
|
599
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.emptyFilterTemplate || ctx_r1._emptyFilterTemplate || ctx_r1._emptyTemplate || ctx_r1.emptyTemplate);
|
600
|
-
} }
|
601
|
-
function Listbox_ng_template_9_li_3_Template(rf, ctx) { if (rf & 1) {
|
602
|
-
i0.ɵɵelementStart(0, "li", 51);
|
603
|
-
i0.ɵɵtemplate(1, Listbox_ng_template_9_li_3_Conditional_1_Template, 1, 1)(2, Listbox_ng_template_9_li_3_Conditional_2_Template, 1, 1, "ng-container");
|
604
|
-
i0.ɵɵelementEnd();
|
605
|
-
} if (rf & 2) {
|
606
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
607
|
-
i0.ɵɵadvance();
|
608
|
-
i0.ɵɵconditional(!ctx_r1.emptyFilterTemplate && !ctx_r1._emptyFilterTemplate && !ctx_r1._emptyTemplate && !ctx_r1.emptyTemplate ? 1 : 2);
|
609
|
-
} }
|
610
|
-
function Listbox_ng_template_9_li_4_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
611
|
-
i0.ɵɵtext(0);
|
612
|
-
} if (rf & 2) {
|
613
|
-
const ctx_r1 = i0.ɵɵnextContext(3);
|
614
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r1.emptyMessage, " ");
|
615
|
-
} }
|
616
|
-
function Listbox_ng_template_9_li_4_Conditional_2_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
617
|
-
i0.ɵɵelementContainer(0, null, 13);
|
618
|
-
} }
|
619
|
-
function Listbox_ng_template_9_li_4_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
620
|
-
i0.ɵɵtemplate(0, Listbox_ng_template_9_li_4_Conditional_2_ng_container_0_Template, 2, 0, "ng-container", 40);
|
621
|
-
} if (rf & 2) {
|
622
|
-
const ctx_r1 = i0.ɵɵnextContext(3);
|
623
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.emptyTemplate || ctx_r1._emptyTemplate);
|
624
|
-
} }
|
625
|
-
function Listbox_ng_template_9_li_4_Template(rf, ctx) { if (rf & 1) {
|
626
|
-
i0.ɵɵelementStart(0, "li", 51);
|
627
|
-
i0.ɵɵtemplate(1, Listbox_ng_template_9_li_4_Conditional_1_Template, 1, 1)(2, Listbox_ng_template_9_li_4_Conditional_2_Template, 1, 1, "ng-container");
|
628
|
-
i0.ɵɵelementEnd();
|
629
|
-
} if (rf & 2) {
|
630
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
631
|
-
i0.ɵɵadvance();
|
632
|
-
i0.ɵɵconditional(!ctx_r1.emptyTemplate && !ctx_r1._emptyTemplate ? 1 : 2);
|
633
|
-
} }
|
634
|
-
function Listbox_ng_template_9_Template(rf, ctx) { if (rf & 1) {
|
635
|
-
const _r11 = i0.ɵɵgetCurrentView();
|
636
|
-
i0.ɵɵelementStart(0, "ul", 42, 11);
|
637
|
-
i0.ɵɵlistener("focus", function Listbox_ng_template_9_Template_ul_focus_0_listener($event) { i0.ɵɵrestoreView(_r11); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onListFocus($event)); })("blur", function Listbox_ng_template_9_Template_ul_blur_0_listener($event) { i0.ɵɵrestoreView(_r11); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onListBlur($event)); })("keydown", function Listbox_ng_template_9_Template_ul_keydown_0_listener($event) { i0.ɵɵrestoreView(_r11); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onListKeyDown($event)); });
|
638
|
-
i0.ɵɵtemplate(2, Listbox_ng_template_9_ng_template_2_Template, 2, 2, "ng-template", 43)(3, Listbox_ng_template_9_li_3_Template, 3, 1, "li", 44)(4, Listbox_ng_template_9_li_4_Template, 3, 1, "li", 44);
|
639
|
-
i0.ɵɵelementEnd();
|
640
|
-
} if (rf & 2) {
|
641
|
-
const items_r17 = ctx.$implicit;
|
642
|
-
const scrollerOptions_r15 = ctx.options;
|
643
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
644
|
-
i0.ɵɵstyleMap(scrollerOptions_r15.contentStyle);
|
645
|
-
i0.ɵɵproperty("tabindex", -1)("ngClass", scrollerOptions_r15.contentStyleClass);
|
646
|
-
i0.ɵɵattribute("aria-multiselectable", true)("aria-activedescendant", ctx_r1.focused ? ctx_r1.focusedOptionId : undefined)("aria-label", ctx_r1.ariaLabel)("aria-disabled", ctx_r1.disabled);
|
647
|
-
i0.ɵɵadvance(2);
|
648
|
-
i0.ɵɵproperty("ngForOf", items_r17);
|
649
|
-
i0.ɵɵadvance();
|
650
|
-
i0.ɵɵproperty("ngIf", ctx_r1.hasFilter() && ctx_r1.isEmpty());
|
651
|
-
i0.ɵɵadvance();
|
652
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.hasFilter() && ctx_r1.isEmpty());
|
653
|
-
} }
|
654
|
-
function Listbox_div_11_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
655
|
-
i0.ɵɵelementContainer(0);
|
656
|
-
} }
|
657
|
-
function Listbox_div_11_Template(rf, ctx) { if (rf & 1) {
|
658
|
-
i0.ɵɵelementStart(0, "div", 52);
|
659
|
-
i0.ɵɵprojection(1, 1);
|
660
|
-
i0.ɵɵtemplate(2, Listbox_div_11_ng_container_2_Template, 1, 0, "ng-container", 24);
|
661
|
-
i0.ɵɵelementEnd();
|
662
|
-
} if (rf & 2) {
|
663
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
664
|
-
i0.ɵɵadvance(2);
|
665
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.footerTemplate || ctx_r1._footerTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c19, ctx_r1.modelValue(), ctx_r1.visibleOptions()));
|
666
|
-
} }
|
667
|
-
function Listbox_span_12_Template(rf, ctx) { if (rf & 1) {
|
668
|
-
i0.ɵɵelementStart(0, "span", 22);
|
669
|
-
i0.ɵɵtext(1);
|
670
|
-
i0.ɵɵelementEnd();
|
671
|
-
} if (rf & 2) {
|
672
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
673
|
-
i0.ɵɵadvance();
|
674
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r1.emptyMessage, " ");
|
675
|
-
} }
|
676
239
|
const LISTBOX_VALUE_ACCESSOR = {
|
677
240
|
provide: NG_VALUE_ACCESSOR,
|
678
241
|
useExisting: forwardRef(() => Listbox),
|
@@ -868,7 +431,7 @@ class Listbox extends BaseComponent {
|
|
868
431
|
*/
|
869
432
|
optionGroupLabel = 'label';
|
870
433
|
/**
|
871
|
-
* Name of the disabled field of an option.
|
434
|
+
* Name of the disabled field of an option or function to determine disabled state.
|
872
435
|
* @group Props
|
873
436
|
*/
|
874
437
|
optionDisabled;
|
@@ -945,6 +508,11 @@ class Listbox extends BaseComponent {
|
|
945
508
|
* @defaultValue false
|
946
509
|
*/
|
947
510
|
checkmark = false;
|
511
|
+
/**
|
512
|
+
* Whether to enable dragdrop based reordering.
|
513
|
+
* @group Props
|
514
|
+
*/
|
515
|
+
dragdrop = false;
|
948
516
|
/**
|
949
517
|
* Callback to invoke on value change.
|
950
518
|
* @param {ListboxChangeEvent} event - Custom change event.
|
@@ -993,6 +561,12 @@ class Listbox extends BaseComponent {
|
|
993
561
|
* @group Emits
|
994
562
|
*/
|
995
563
|
onLazyLoad = new EventEmitter();
|
564
|
+
/**
|
565
|
+
* Emits on item is dropped.
|
566
|
+
* @param {CdkDragDrop<string[]>} event - Scroller lazy load event.
|
567
|
+
* @group Emits
|
568
|
+
*/
|
569
|
+
onDrop = new EventEmitter();
|
996
570
|
headerCheckboxViewChild;
|
997
571
|
filterViewChild;
|
998
572
|
lastHiddenFocusableElement;
|
@@ -1745,6 +1319,9 @@ class Listbox extends BaseComponent {
|
|
1745
1319
|
return this.isValidOption(option) && this.isSelected(option);
|
1746
1320
|
}
|
1747
1321
|
isOptionDisabled(option) {
|
1322
|
+
if (isFunction(this.optionDisabled)) {
|
1323
|
+
return this.optionDisabled(option);
|
1324
|
+
}
|
1748
1325
|
return this.optionDisabled ? resolveFieldData(option, this.optionDisabled) : false;
|
1749
1326
|
}
|
1750
1327
|
isSelected(option) {
|
@@ -1769,129 +1346,30 @@ class Listbox extends BaseComponent {
|
|
1769
1346
|
}
|
1770
1347
|
this._filterValue.set(null);
|
1771
1348
|
}
|
1349
|
+
drop(event) {
|
1350
|
+
if (event) {
|
1351
|
+
this.onDrop.emit(event);
|
1352
|
+
}
|
1353
|
+
}
|
1772
1354
|
ngOnDestroy() {
|
1773
1355
|
if (this.translationSubscription) {
|
1774
1356
|
this.translationSubscription.unsubscribe();
|
1775
1357
|
}
|
1776
1358
|
super.ngOnDestroy();
|
1777
1359
|
}
|
1778
|
-
static ɵfac =
|
1779
|
-
static ɵcmp =
|
1780
|
-
|
1781
|
-
|
1782
|
-
|
1783
|
-
|
1784
|
-
|
1785
|
-
|
1786
|
-
|
1787
|
-
|
1788
|
-
|
1789
|
-
i0.ɵɵcontentQuery(dirIndex, _c7, 4);
|
1790
|
-
i0.ɵɵcontentQuery(dirIndex, _c8, 4);
|
1791
|
-
i0.ɵɵcontentQuery(dirIndex, _c9, 4);
|
1792
|
-
i0.ɵɵcontentQuery(dirIndex, _c10, 4);
|
1793
|
-
i0.ɵɵcontentQuery(dirIndex, PrimeTemplate, 4);
|
1794
|
-
} if (rf & 2) {
|
1795
|
-
let _t;
|
1796
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.headerFacet = _t.first);
|
1797
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.footerFacet = _t.first);
|
1798
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.itemTemplate = _t.first);
|
1799
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.groupTemplate = _t.first);
|
1800
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.headerTemplate = _t.first);
|
1801
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.filterTemplate = _t.first);
|
1802
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.footerTemplate = _t.first);
|
1803
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.emptyFilterTemplate = _t.first);
|
1804
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.emptyTemplate = _t.first);
|
1805
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.filterIconTemplate = _t.first);
|
1806
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.checkIconTemplate = _t.first);
|
1807
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.checkmarkTemplate = _t.first);
|
1808
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.loaderTemplate = _t.first);
|
1809
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.templates = _t);
|
1810
|
-
} }, viewQuery: function Listbox_Query(rf, ctx) { if (rf & 1) {
|
1811
|
-
i0.ɵɵviewQuery(_c11, 5);
|
1812
|
-
i0.ɵɵviewQuery(_c3, 5);
|
1813
|
-
i0.ɵɵviewQuery(_c12, 5);
|
1814
|
-
i0.ɵɵviewQuery(_c13, 5);
|
1815
|
-
i0.ɵɵviewQuery(_c14, 5);
|
1816
|
-
i0.ɵɵviewQuery(_c15, 5);
|
1817
|
-
i0.ɵɵviewQuery(_c16, 5);
|
1818
|
-
} if (rf & 2) {
|
1819
|
-
let _t;
|
1820
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.headerCheckboxViewChild = _t.first);
|
1821
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.filterViewChild = _t.first);
|
1822
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.lastHiddenFocusableElement = _t.first);
|
1823
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.firstHiddenFocusableElement = _t.first);
|
1824
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.scroller = _t.first);
|
1825
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.listViewChild = _t.first);
|
1826
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.containerViewChild = _t.first);
|
1827
|
-
} }, inputs: { id: "id", searchMessage: "searchMessage", emptySelectionMessage: "emptySelectionMessage", selectionMessage: "selectionMessage", autoOptionFocus: [2, "autoOptionFocus", "autoOptionFocus", booleanAttribute], ariaLabel: "ariaLabel", selectOnFocus: [2, "selectOnFocus", "selectOnFocus", booleanAttribute], searchLocale: [2, "searchLocale", "searchLocale", booleanAttribute], focusOnHover: [2, "focusOnHover", "focusOnHover", booleanAttribute], filterMessage: "filterMessage", filterFields: "filterFields", lazy: [2, "lazy", "lazy", booleanAttribute], virtualScroll: [2, "virtualScroll", "virtualScroll", booleanAttribute], virtualScrollItemSize: [2, "virtualScrollItemSize", "virtualScrollItemSize", numberAttribute], virtualScrollOptions: "virtualScrollOptions", scrollHeight: "scrollHeight", tabindex: [2, "tabindex", "tabindex", numberAttribute], multiple: [2, "multiple", "multiple", booleanAttribute], style: "style", styleClass: "styleClass", listStyle: "listStyle", listStyleClass: "listStyleClass", readonly: [2, "readonly", "readonly", booleanAttribute], disabled: [2, "disabled", "disabled", booleanAttribute], checkbox: [2, "checkbox", "checkbox", booleanAttribute], filter: [2, "filter", "filter", booleanAttribute], filterBy: "filterBy", filterMatchMode: "filterMatchMode", filterLocale: "filterLocale", metaKeySelection: [2, "metaKeySelection", "metaKeySelection", booleanAttribute], dataKey: "dataKey", showToggleAll: [2, "showToggleAll", "showToggleAll", booleanAttribute], optionLabel: "optionLabel", optionValue: "optionValue", optionGroupChildren: "optionGroupChildren", optionGroupLabel: "optionGroupLabel", optionDisabled: "optionDisabled", ariaFilterLabel: "ariaFilterLabel", filterPlaceHolder: "filterPlaceHolder", emptyFilterMessage: "emptyFilterMessage", emptyMessage: "emptyMessage", group: [2, "group", "group", booleanAttribute], options: "options", filterValue: "filterValue", selectAll: "selectAll", striped: [2, "striped", "striped", booleanAttribute], highlightOnSelect: [2, "highlightOnSelect", "highlightOnSelect", booleanAttribute], checkmark: [2, "checkmark", "checkmark", booleanAttribute] }, outputs: { onChange: "onChange", onClick: "onClick", onDblClick: "onDblClick", onFilter: "onFilter", onFocus: "onFocus", onBlur: "onBlur", onSelectAllChange: "onSelectAllChange", onLazyLoad: "onLazyLoad" }, features: [i0.ɵɵProvidersFeature([LISTBOX_VALUE_ACCESSOR, ListBoxStyle]), i0.ɵɵInputTransformsFeature, i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c18, decls: 17, vars: 25, consts: [["firstHiddenFocusableElement", ""], ["container", ""], ["buildInItems", ""], ["lastHiddenFocusableElement", ""], ["builtInFilterElement", ""], ["headerchkbox", ""], ["icon", ""], ["filterInput", ""], ["scroller", ""], ["content", ""], ["loader", ""], ["list", ""], ["emptyFilter", ""], ["empty", ""], [3, "focusout", "ngClass", "ngStyle"], ["role", "presentation", 1, "p-hidden-accessible", "p-hidden-focusable", 3, "focus", "tabindex"], ["class", "p-listbox-header", 4, "ngIf"], [3, "ngClass", "ngStyle"], [3, "items", "style", "itemSize", "autoSize", "lazy", "options", "tabindex", "onLazyLoad", 4, "ngIf"], [4, "ngIf"], ["class", "p-listbox-footer", 4, "ngIf"], ["role", "status", "aria-live", "polite", "class", "p-hidden-accessible", 4, "ngIf"], ["role", "status", "aria-live", "polite", 1, "p-hidden-accessible"], [1, "p-listbox-header"], [4, "ngTemplateOutlet", "ngTemplateOutletContext"], ["class", "p-checkbox p-component", 3, "ngClass", "click", "keydown", 4, "ngIf"], [4, "ngIf", "ngIfElse"], [1, "p-checkbox", "p-component", 3, "click", "keydown", "ngClass"], [1, "p-hidden-accessible"], ["type", "checkbox", "readonly", "readonly", 3, "focus", "blur", "disabled"], ["styleClass", "p-listbox-option-check-icon", 3, "ngModel", "disabled", "tabindex", "variant", "binary", 4, "ngIf"], ["styleClass", "p-listbox-option-check-icon", 3, "ngModel", "disabled", "tabindex", "variant", "binary"], ["class", "p-listbox-filter-container", 4, "ngIf"], ["role", "status", "attr.aria-live", "polite", 1, "p-hidden-accessible"], [1, "p-listbox-filter-container"], ["pInputText", "", "type", "text", "role", "searchbox", 1, "p-listbox-filter", 3, "input", "keydown", "focus", "blur", "value", "disabled", "tabindex"], [3, "styleClass", 4, "ngIf"], ["class", "p-listbox-filter-icon", 4, "ngIf"], [3, "styleClass"], [1, "p-listbox-filter-icon"], [4, "ngTemplateOutlet"], [3, "onLazyLoad", "items", "itemSize", "autoSize", "lazy", "options", "tabindex"], ["role", "listbox", 1, "p-listbox-list", 3, "focus", "blur", "keydown", "tabindex", "ngClass"], ["ngFor", "", 3, "ngForOf"], ["class", "p-listbox-empty-message", "role", "option", 4, "ngIf"], ["role", "option", 1, "p-listbox-option-group", 3, "ngStyle"], ["pRipple", "", "role", "option", 1, "p-listbox-option", 3, "click", "dblclick", "mousedown", "mouseenter", "touchend", "ngStyle", "ngClass"], ["styleClass", "p-listbox-option-check-icon", 3, "ngModel", "readonly", "disabled", "tabindex", "variant", "binary", 4, "ngIf"], ["styleClass", "p-listbox-option-check-icon", 3, "ngModel", "readonly", "disabled", "tabindex", "variant", "binary"], ["styleClass", "p-listbox-option-check-icon", 4, "ngIf"], ["styleClass", "p-listbox-option-check-icon"], ["role", "option", 1, "p-listbox-empty-message"], [1, "p-listbox-footer"]], template: function Listbox_Template(rf, ctx) { if (rf & 1) {
|
1828
|
-
const _r1 = i0.ɵɵgetCurrentView();
|
1829
|
-
i0.ɵɵprojectionDef(_c17);
|
1830
|
-
i0.ɵɵelementStart(0, "div", 14);
|
1831
|
-
i0.ɵɵlistener("focusout", function Listbox_Template_div_focusout_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onFocusout($event)); });
|
1832
|
-
i0.ɵɵelementStart(1, "span", 15, 0);
|
1833
|
-
i0.ɵɵlistener("focus", function Listbox_Template_span_focus_1_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onFirstHiddenFocus($event)); });
|
1834
|
-
i0.ɵɵelementEnd();
|
1835
|
-
i0.ɵɵtemplate(3, Listbox_div_3_Template, 3, 5, "div", 16)(4, Listbox_div_4_Template, 5, 3, "div", 16);
|
1836
|
-
i0.ɵɵelementStart(5, "div", 17, 1);
|
1837
|
-
i0.ɵɵtemplate(7, Listbox_p_scroller_7_Template, 5, 11, "p-scroller", 18)(8, Listbox_ng_container_8_Template, 2, 6, "ng-container", 19)(9, Listbox_ng_template_9_Template, 5, 11, "ng-template", null, 2, i0.ɵɵtemplateRefExtractor);
|
1838
|
-
i0.ɵɵelementEnd();
|
1839
|
-
i0.ɵɵtemplate(11, Listbox_div_11_Template, 3, 5, "div", 20)(12, Listbox_span_12_Template, 2, 1, "span", 21);
|
1840
|
-
i0.ɵɵelementStart(13, "span", 22);
|
1841
|
-
i0.ɵɵtext(14);
|
1842
|
-
i0.ɵɵelementEnd();
|
1843
|
-
i0.ɵɵelementStart(15, "span", 15, 3);
|
1844
|
-
i0.ɵɵlistener("focus", function Listbox_Template_span_focus_15_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onLastHiddenFocus($event)); });
|
1845
|
-
i0.ɵɵelementEnd()();
|
1846
|
-
} if (rf & 2) {
|
1847
|
-
i0.ɵɵclassMap(ctx.styleClass);
|
1848
|
-
i0.ɵɵproperty("ngClass", ctx.containerClass)("ngStyle", ctx.style);
|
1849
|
-
i0.ɵɵattribute("id", ctx.id);
|
1850
|
-
i0.ɵɵadvance();
|
1851
|
-
i0.ɵɵproperty("tabindex", !ctx.disabled ? ctx.tabindex : -1);
|
1852
|
-
i0.ɵɵattribute("aria-hidden", true)("data-p-hidden-focusable", true);
|
1853
|
-
i0.ɵɵadvance(2);
|
1854
|
-
i0.ɵɵproperty("ngIf", ctx.headerFacet || ctx.headerTemplate || ctx._headerTemplate);
|
1855
|
-
i0.ɵɵadvance();
|
1856
|
-
i0.ɵɵproperty("ngIf", ctx.checkbox && ctx.multiple && ctx.showToggleAll || ctx.filter);
|
1857
|
-
i0.ɵɵadvance();
|
1858
|
-
i0.ɵɵclassMap(ctx.listStyleClass);
|
1859
|
-
i0.ɵɵstyleProp("max-height", ctx.virtualScroll ? "auto" : ctx.scrollHeight || "auto");
|
1860
|
-
i0.ɵɵproperty("ngClass", "p-listbox-list-container")("ngStyle", ctx.listStyle);
|
1861
|
-
i0.ɵɵattribute("tabindex", !ctx.disabled && "0");
|
1862
|
-
i0.ɵɵadvance(2);
|
1863
|
-
i0.ɵɵproperty("ngIf", ctx.virtualScroll);
|
1864
|
-
i0.ɵɵadvance();
|
1865
|
-
i0.ɵɵproperty("ngIf", !ctx.virtualScroll);
|
1866
|
-
i0.ɵɵadvance(3);
|
1867
|
-
i0.ɵɵproperty("ngIf", ctx.footerFacet || ctx.footerTemplate || ctx._footerTemplate);
|
1868
|
-
i0.ɵɵadvance();
|
1869
|
-
i0.ɵɵproperty("ngIf", ctx.isEmpty());
|
1870
|
-
i0.ɵɵadvance(2);
|
1871
|
-
i0.ɵɵtextInterpolate1(" ", ctx.selectedMessageText, " ");
|
1872
|
-
i0.ɵɵadvance();
|
1873
|
-
i0.ɵɵproperty("tabindex", !ctx.disabled ? ctx.tabindex : -1);
|
1874
|
-
i0.ɵɵattribute("aria-hidden", true)("data-p-hidden-focusable", true);
|
1875
|
-
} }, dependencies: [CommonModule, i2.NgClass, i2.NgForOf, i2.NgIf, i2.NgTemplateOutlet, i2.NgStyle, Ripple, Scroller, InputIcon, SearchIcon, Checkbox, CheckIcon, IconField, InputText, BlankIcon, FormsModule, i3.NgControlStatus, i3.NgModel, SharedModule], encapsulation: 2, changeDetection: 0 });
|
1876
|
-
}
|
1877
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(Listbox, [{
|
1878
|
-
type: Component,
|
1879
|
-
args: [{
|
1880
|
-
selector: 'p-listbox, p-listBox, p-list-box',
|
1881
|
-
standalone: true,
|
1882
|
-
imports: [CommonModule, Ripple, Scroller, InputIcon, SearchIcon, Checkbox, CheckIcon, IconField, InputText, BlankIcon, FormsModule, SharedModule],
|
1883
|
-
template: `
|
1360
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: Listbox, deps: [{ token: i1.FilterService }], target: i0.ɵɵFactoryTarget.Component });
|
1361
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.7", type: Listbox, isStandalone: true, selector: "p-listbox, p-listBox, p-list-box", inputs: { id: "id", searchMessage: "searchMessage", emptySelectionMessage: "emptySelectionMessage", selectionMessage: "selectionMessage", autoOptionFocus: ["autoOptionFocus", "autoOptionFocus", booleanAttribute], ariaLabel: "ariaLabel", selectOnFocus: ["selectOnFocus", "selectOnFocus", booleanAttribute], searchLocale: ["searchLocale", "searchLocale", booleanAttribute], focusOnHover: ["focusOnHover", "focusOnHover", booleanAttribute], filterMessage: "filterMessage", filterFields: "filterFields", lazy: ["lazy", "lazy", booleanAttribute], virtualScroll: ["virtualScroll", "virtualScroll", booleanAttribute], virtualScrollItemSize: ["virtualScrollItemSize", "virtualScrollItemSize", numberAttribute], virtualScrollOptions: "virtualScrollOptions", scrollHeight: "scrollHeight", tabindex: ["tabindex", "tabindex", numberAttribute], multiple: ["multiple", "multiple", booleanAttribute], style: "style", styleClass: "styleClass", listStyle: "listStyle", listStyleClass: "listStyleClass", readonly: ["readonly", "readonly", booleanAttribute], disabled: ["disabled", "disabled", booleanAttribute], checkbox: ["checkbox", "checkbox", booleanAttribute], filter: ["filter", "filter", booleanAttribute], filterBy: "filterBy", filterMatchMode: "filterMatchMode", filterLocale: "filterLocale", metaKeySelection: ["metaKeySelection", "metaKeySelection", booleanAttribute], dataKey: "dataKey", showToggleAll: ["showToggleAll", "showToggleAll", booleanAttribute], optionLabel: "optionLabel", optionValue: "optionValue", optionGroupChildren: "optionGroupChildren", optionGroupLabel: "optionGroupLabel", optionDisabled: "optionDisabled", ariaFilterLabel: "ariaFilterLabel", filterPlaceHolder: "filterPlaceHolder", emptyFilterMessage: "emptyFilterMessage", emptyMessage: "emptyMessage", group: ["group", "group", booleanAttribute], options: "options", filterValue: "filterValue", selectAll: "selectAll", striped: ["striped", "striped", booleanAttribute], highlightOnSelect: ["highlightOnSelect", "highlightOnSelect", booleanAttribute], checkmark: ["checkmark", "checkmark", booleanAttribute], dragdrop: ["dragdrop", "dragdrop", booleanAttribute] }, outputs: { onChange: "onChange", onClick: "onClick", onDblClick: "onDblClick", onFilter: "onFilter", onFocus: "onFocus", onBlur: "onBlur", onSelectAllChange: "onSelectAllChange", onLazyLoad: "onLazyLoad", onDrop: "onDrop" }, providers: [
|
1362
|
+
LISTBOX_VALUE_ACCESSOR,
|
1363
|
+
ListBoxStyle,
|
1364
|
+
{
|
1365
|
+
provide: CDK_DRAG_CONFIG,
|
1366
|
+
useValue: {
|
1367
|
+
zIndex: 1200
|
1368
|
+
}
|
1369
|
+
}
|
1370
|
+
], queries: [{ propertyName: "headerFacet", first: true, predicate: Header, descendants: true }, { propertyName: "footerFacet", first: true, predicate: Footer, descendants: true }, { propertyName: "itemTemplate", first: true, predicate: ["item"] }, { propertyName: "groupTemplate", first: true, predicate: ["group"] }, { propertyName: "headerTemplate", first: true, predicate: ["header"] }, { propertyName: "filterTemplate", first: true, predicate: ["filter"] }, { propertyName: "footerTemplate", first: true, predicate: ["footer"] }, { propertyName: "emptyFilterTemplate", first: true, predicate: ["emptyfilter"] }, { propertyName: "emptyTemplate", first: true, predicate: ["empty"] }, { propertyName: "filterIconTemplate", first: true, predicate: ["filtericon"] }, { propertyName: "checkIconTemplate", first: true, predicate: ["checkicon"] }, { propertyName: "checkmarkTemplate", first: true, predicate: ["checkmark"] }, { propertyName: "loaderTemplate", first: true, predicate: ["loader"] }, { propertyName: "templates", predicate: PrimeTemplate }], viewQueries: [{ propertyName: "headerCheckboxViewChild", first: true, predicate: ["headerchkbox"], descendants: true }, { propertyName: "filterViewChild", first: true, predicate: ["filter"], descendants: true }, { propertyName: "lastHiddenFocusableElement", first: true, predicate: ["lastHiddenFocusableElement"], descendants: true }, { propertyName: "firstHiddenFocusableElement", first: true, predicate: ["firstHiddenFocusableElement"], descendants: true }, { propertyName: "scroller", first: true, predicate: ["scroller"], descendants: true }, { propertyName: "listViewChild", first: true, predicate: ["list"], descendants: true }, { propertyName: "containerViewChild", first: true, predicate: ["container"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
1884
1371
|
<div [attr.id]="id" [ngClass]="containerClass" [ngStyle]="style" [class]="styleClass" (focusout)="onFocusout($event)">
|
1885
|
-
<span
|
1886
|
-
#firstHiddenFocusableElement
|
1887
|
-
role="presentation"
|
1888
|
-
[attr.aria-hidden]="true"
|
1889
|
-
class="p-hidden-accessible p-hidden-focusable"
|
1890
|
-
[tabindex]="!disabled ? tabindex : -1"
|
1891
|
-
(focus)="onFirstHiddenFocus($event)"
|
1892
|
-
[attr.data-p-hidden-focusable]="true"
|
1893
|
-
>
|
1894
|
-
</span>
|
1372
|
+
<span #firstHiddenFocusableElement role="presentation" class="p-hidden-accessible p-hidden-focusable" [tabindex]="!disabled ? tabindex : -1" (focus)="onFirstHiddenFocus($event)" [attr.data-p-hidden-focusable]="true"> </span>
|
1895
1373
|
<div class="p-listbox-header" *ngIf="headerFacet || headerTemplate || _headerTemplate">
|
1896
1374
|
<ng-content select="p-header"></ng-content>
|
1897
1375
|
<ng-container *ngTemplateOutlet="headerTemplate || _headerTemplate; context: { $implicit: modelValue(), options: visibleOptions() }"></ng-container>
|
@@ -1907,7 +1385,7 @@ class Listbox extends BaseComponent {
|
|
1907
1385
|
[ngModel]="allSelected()"
|
1908
1386
|
[disabled]="disabled"
|
1909
1387
|
[tabindex]="-1"
|
1910
|
-
[variant]="config.inputStyle() === 'filled'
|
1388
|
+
[variant]="config.inputStyle() === 'filled' || config.inputVariant() === 'filled' ? 'filled' : 'outlined'"
|
1911
1389
|
[binary]="true"
|
1912
1390
|
>
|
1913
1391
|
<ng-container *ngIf="checkIconTemplate || _checkIconTemplate">
|
@@ -1995,10 +1473,21 @@ class Listbox extends BaseComponent {
|
|
1995
1473
|
(focus)="onListFocus($event)"
|
1996
1474
|
(blur)="onListBlur($event)"
|
1997
1475
|
(keydown)="onListKeyDown($event)"
|
1476
|
+
cdkDropList
|
1477
|
+
[cdkDropListData]="items"
|
1478
|
+
(cdkDropListDropped)="drop($event)"
|
1998
1479
|
>
|
1999
1480
|
<ng-template ngFor let-option [ngForOf]="items" let-i="index">
|
2000
1481
|
<ng-container *ngIf="isOptionGroup(option)">
|
2001
|
-
<li
|
1482
|
+
<li
|
1483
|
+
[attr.id]="id + '_' + getOptionIndex(i, scrollerOptions)"
|
1484
|
+
class="p-listbox-option-group"
|
1485
|
+
[ngStyle]="{ height: scrollerOptions.itemSize + 'px' }"
|
1486
|
+
role="option"
|
1487
|
+
cdkDrag
|
1488
|
+
[cdkDragData]="option"
|
1489
|
+
[cdkDragDisabled]="!dragdrop"
|
1490
|
+
>
|
2002
1491
|
<span *ngIf="!groupTemplate && !_groupTemplate">{{ getOptionGroupLabel(option.optionGroup) }}</span>
|
2003
1492
|
<ng-container *ngTemplateOutlet="groupTemplate || _groupTemplate; context: { $implicit: option.optionGroup }"></ng-container>
|
2004
1493
|
</li>
|
@@ -2025,6 +1514,9 @@ class Listbox extends BaseComponent {
|
|
2025
1514
|
(mousedown)="onOptionMouseDown($event, getOptionIndex(i, scrollerOptions))"
|
2026
1515
|
(mouseenter)="onOptionMouseEnter($event, getOptionIndex(i, scrollerOptions))"
|
2027
1516
|
(touchend)="onOptionTouchEnd()"
|
1517
|
+
cdkDrag
|
1518
|
+
[cdkDragData]="option"
|
1519
|
+
[cdkDragDisabled]="!dragdrop"
|
2028
1520
|
>
|
2029
1521
|
<p-checkbox
|
2030
1522
|
*ngIf="checkbox && multiple"
|
@@ -2033,7 +1525,7 @@ class Listbox extends BaseComponent {
|
|
2033
1525
|
[readonly]="true"
|
2034
1526
|
[disabled]="disabled || isOptionDisabled(option)"
|
2035
1527
|
[tabindex]="-1"
|
2036
|
-
[variant]="config.inputStyle() === 'filled'
|
1528
|
+
[variant]="config.inputStyle() === 'filled' || config.inputVariant() === 'filled' ? 'filled' : 'outlined'"
|
2037
1529
|
[binary]="true"
|
2038
1530
|
>
|
2039
1531
|
<ng-container *ngIf="checkIconTemplate || _checkIconTemplate">
|
@@ -2090,231 +1582,459 @@ class Listbox extends BaseComponent {
|
|
2090
1582
|
<span role="status" aria-live="polite" class="p-hidden-accessible">
|
2091
1583
|
{{ selectedMessageText }}
|
2092
1584
|
</span>
|
2093
|
-
<span
|
2094
|
-
|
2095
|
-
|
2096
|
-
|
2097
|
-
|
2098
|
-
|
2099
|
-
|
2100
|
-
|
2101
|
-
|
1585
|
+
<span #lastHiddenFocusableElement role="presentation" class="p-hidden-accessible p-hidden-focusable" [tabindex]="!disabled ? tabindex : -1" (focus)="onLastHiddenFocus($event)" [attr.data-p-hidden-focusable]="true"> </span>
|
1586
|
+
</div>
|
1587
|
+
`, 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: ["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: ["styleClass"] }, { kind: "component", type: SearchIcon, selector: "SearchIcon" }, { kind: "component", type: Checkbox, selector: "p-checkbox, p-checkBox, p-check-box", inputs: ["value", "name", "disabled", "binary", "ariaLabelledBy", "ariaLabel", "tabindex", "inputId", "style", "inputStyle", "styleClass", "inputClass", "indeterminate", "size", "formControl", "checkboxIcon", "readonly", "required", "autofocus", "trueValue", "falseValue", "variant"], outputs: ["onChange", "onFocus", "onBlur"] }, { kind: "component", type: CheckIcon, selector: "CheckIcon" }, { kind: "component", type: IconField, selector: "p-iconfield, p-iconField, p-icon-field", inputs: ["iconPosition", "styleClass"] }, { kind: "directive", type: InputText, selector: "[pInputText]", inputs: ["variant", "fluid", "pSize"] }, { kind: "component", type: BlankIcon, selector: "BlankIcon" }, { 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"], 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"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
1588
|
+
}
|
1589
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: Listbox, decorators: [{
|
1590
|
+
type: Component,
|
1591
|
+
args: [{
|
1592
|
+
selector: 'p-listbox, p-listBox, p-list-box',
|
1593
|
+
standalone: true,
|
1594
|
+
imports: [CommonModule, Ripple, Scroller, InputIcon, SearchIcon, Checkbox, CheckIcon, IconField, InputText, BlankIcon, FormsModule, SharedModule, DragDropModule],
|
1595
|
+
template: `
|
1596
|
+
<div [attr.id]="id" [ngClass]="containerClass" [ngStyle]="style" [class]="styleClass" (focusout)="onFocusout($event)">
|
1597
|
+
<span #firstHiddenFocusableElement role="presentation" class="p-hidden-accessible p-hidden-focusable" [tabindex]="!disabled ? tabindex : -1" (focus)="onFirstHiddenFocus($event)" [attr.data-p-hidden-focusable]="true"> </span>
|
1598
|
+
<div class="p-listbox-header" *ngIf="headerFacet || headerTemplate || _headerTemplate">
|
1599
|
+
<ng-content select="p-header"></ng-content>
|
1600
|
+
<ng-container *ngTemplateOutlet="headerTemplate || _headerTemplate; context: { $implicit: modelValue(), options: visibleOptions() }"></ng-container>
|
1601
|
+
</div>
|
1602
|
+
<div class="p-listbox-header" *ngIf="(checkbox && multiple && showToggleAll) || filter">
|
1603
|
+
<div *ngIf="checkbox && multiple && showToggleAll" class="p-checkbox p-component" [ngClass]="{ 'p-checkbox-disabled': disabled }" (click)="onToggleAll($event)" (keydown)="onHeaderCheckboxKeyDown($event)">
|
1604
|
+
<div class="p-hidden-accessible" [attr.data-p-hidden-accessible]="true">
|
1605
|
+
<input #headerchkbox type="checkbox" readonly="readonly" [attr.checked]="allSelected()" [disabled]="disabled" (focus)="onHeaderCheckboxFocus($event)" (blur)="onHeaderCheckboxBlur()" [attr.aria-label]="toggleAllAriaLabel" />
|
1606
|
+
</div>
|
1607
|
+
<p-checkbox
|
1608
|
+
*ngIf="checkbox && multiple"
|
1609
|
+
styleClass="p-listbox-option-check-icon"
|
1610
|
+
[ngModel]="allSelected()"
|
1611
|
+
[disabled]="disabled"
|
1612
|
+
[tabindex]="-1"
|
1613
|
+
[variant]="config.inputStyle() === 'filled' || config.inputVariant() === 'filled' ? 'filled' : 'outlined'"
|
1614
|
+
[binary]="true"
|
1615
|
+
>
|
1616
|
+
<ng-container *ngIf="checkIconTemplate || _checkIconTemplate">
|
1617
|
+
<ng-template #icon>
|
1618
|
+
<ng-template *ngTemplateOutlet="checkIconTemplate || _checkIconTemplate; context: { $implicit: allSelected() }"></ng-template>
|
1619
|
+
</ng-template>
|
1620
|
+
</ng-container>
|
1621
|
+
</p-checkbox>
|
1622
|
+
</div>
|
1623
|
+
<ng-container *ngIf="filterTemplate || _filterTemplate; else builtInFilterElement">
|
1624
|
+
<ng-container *ngTemplateOutlet="filterTemplate || _filterTemplate; context: { options: filterOptions }"></ng-container>
|
1625
|
+
</ng-container>
|
1626
|
+
<ng-template #builtInFilterElement>
|
1627
|
+
<div class="p-listbox-filter-container" *ngIf="filter">
|
1628
|
+
<p-iconfield>
|
1629
|
+
<input
|
1630
|
+
#filterInput
|
1631
|
+
pInputText
|
1632
|
+
type="text"
|
1633
|
+
class="p-listbox-filter"
|
1634
|
+
role="searchbox"
|
1635
|
+
[value]="_filterValue() || ''"
|
1636
|
+
[disabled]="disabled"
|
1637
|
+
[attr.aria-owns]="id + '_list'"
|
1638
|
+
[attr.aria-activedescendant]="focusedOptionId"
|
1639
|
+
[attr.placeholder]="filterPlaceHolder"
|
1640
|
+
[attr.aria-label]="ariaFilterLabel"
|
1641
|
+
[tabindex]="!disabled && !focused ? tabindex : -1"
|
1642
|
+
(input)="onFilterChange($event)"
|
1643
|
+
(keydown)="onFilterKeyDown($event)"
|
1644
|
+
(focus)="onFilterFocus($event)"
|
1645
|
+
(blur)="onFilterBlur($event)"
|
1646
|
+
/>
|
1647
|
+
<p-inputicon>
|
1648
|
+
<SearchIcon *ngIf="!filterIconTemplate && !_filterIconTemplate" [styleClass]="'p-listbox-filter-icon'" [attr.aria-hidden]="true" />
|
1649
|
+
<span *ngIf="filterIconTemplate || _filterIconTemplate" class="p-listbox-filter-icon" [attr.aria-hidden]="true">
|
1650
|
+
<ng-template *ngTemplateOutlet="filterIconTemplate || _filterIconTemplate"></ng-template>
|
1651
|
+
</span>
|
1652
|
+
</p-inputicon>
|
1653
|
+
</p-iconfield>
|
1654
|
+
</div>
|
1655
|
+
<span role="status" attr.aria-live="polite" class="p-hidden-accessible" [attr.data-p-hidden-accessible]="true">
|
1656
|
+
{{ filterResultMessageText }}
|
1657
|
+
</span>
|
1658
|
+
</ng-template>
|
1659
|
+
</div>
|
1660
|
+
<div [ngClass]="'p-listbox-list-container'" #container [ngStyle]="listStyle" [class]="listStyleClass" [style.max-height]="virtualScroll ? 'auto' : scrollHeight || 'auto'" [attr.tabindex]="!disabled && '0'">
|
1661
|
+
<p-scroller
|
1662
|
+
#scroller
|
1663
|
+
*ngIf="virtualScroll"
|
1664
|
+
[items]="visibleOptions()"
|
1665
|
+
[style]="{ height: scrollHeight }"
|
1666
|
+
[itemSize]="virtualScrollItemSize"
|
1667
|
+
[autoSize]="true"
|
1668
|
+
[lazy]="lazy"
|
1669
|
+
[options]="virtualScrollOptions"
|
1670
|
+
(onLazyLoad)="onLazyLoad.emit($event)"
|
1671
|
+
[tabindex]="scrollerTabIndex"
|
1672
|
+
>
|
1673
|
+
<ng-template #content let-items let-scrollerOptions="options">
|
1674
|
+
<ng-container *ngTemplateOutlet="buildInItems; context: { $implicit: items, options: scrollerOptions }"></ng-container>
|
1675
|
+
</ng-template>
|
1676
|
+
@if (loaderTemplate || _loaderTemplate) {
|
1677
|
+
<ng-template #loader let-scrollerOptions="options">
|
1678
|
+
<ng-container *ngTemplateOutlet="loaderTemplate || _loaderTemplate; context: { options: scrollerOptions }"></ng-container>
|
1679
|
+
</ng-template>
|
1680
|
+
}
|
1681
|
+
</p-scroller>
|
1682
|
+
<ng-container *ngIf="!virtualScroll">
|
1683
|
+
<ng-container *ngTemplateOutlet="buildInItems; context: { $implicit: visibleOptions(), options: {} }"></ng-container>
|
1684
|
+
</ng-container>
|
1685
|
+
|
1686
|
+
<ng-template #buildInItems let-items let-scrollerOptions="options">
|
1687
|
+
<ul
|
1688
|
+
#list
|
1689
|
+
class="p-listbox-list"
|
1690
|
+
role="listbox"
|
1691
|
+
[tabindex]="-1"
|
1692
|
+
[attr.aria-multiselectable]="true"
|
1693
|
+
[ngClass]="scrollerOptions.contentStyleClass"
|
1694
|
+
[style]="scrollerOptions.contentStyle"
|
1695
|
+
[attr.aria-activedescendant]="focused ? focusedOptionId : undefined"
|
1696
|
+
[attr.aria-label]="ariaLabel"
|
1697
|
+
[attr.aria-disabled]="disabled"
|
1698
|
+
(focus)="onListFocus($event)"
|
1699
|
+
(blur)="onListBlur($event)"
|
1700
|
+
(keydown)="onListKeyDown($event)"
|
1701
|
+
cdkDropList
|
1702
|
+
[cdkDropListData]="items"
|
1703
|
+
(cdkDropListDropped)="drop($event)"
|
1704
|
+
>
|
1705
|
+
<ng-template ngFor let-option [ngForOf]="items" let-i="index">
|
1706
|
+
<ng-container *ngIf="isOptionGroup(option)">
|
1707
|
+
<li
|
1708
|
+
[attr.id]="id + '_' + getOptionIndex(i, scrollerOptions)"
|
1709
|
+
class="p-listbox-option-group"
|
1710
|
+
[ngStyle]="{ height: scrollerOptions.itemSize + 'px' }"
|
1711
|
+
role="option"
|
1712
|
+
cdkDrag
|
1713
|
+
[cdkDragData]="option"
|
1714
|
+
[cdkDragDisabled]="!dragdrop"
|
1715
|
+
>
|
1716
|
+
<span *ngIf="!groupTemplate && !_groupTemplate">{{ getOptionGroupLabel(option.optionGroup) }}</span>
|
1717
|
+
<ng-container *ngTemplateOutlet="groupTemplate || _groupTemplate; context: { $implicit: option.optionGroup }"></ng-container>
|
1718
|
+
</li>
|
1719
|
+
</ng-container>
|
1720
|
+
<ng-container *ngIf="!isOptionGroup(option)">
|
1721
|
+
<li
|
1722
|
+
pRipple
|
1723
|
+
class="p-listbox-option"
|
1724
|
+
role="option"
|
1725
|
+
[attr.id]="id + '_' + getOptionIndex(i, scrollerOptions)"
|
1726
|
+
[ngStyle]="{ height: scrollerOptions.itemSize + 'px' }"
|
1727
|
+
[ngClass]="{
|
1728
|
+
'p-listbox-option-selected': isSelected(option) && highlightOnSelect,
|
1729
|
+
'p-focus': focusedOptionIndex() === getOptionIndex(i, scrollerOptions),
|
1730
|
+
'p-disabled': isOptionDisabled(option)
|
1731
|
+
}"
|
1732
|
+
[attr.aria-label]="getOptionLabel(option)"
|
1733
|
+
[attr.aria-selected]="isSelected(option)"
|
1734
|
+
[attr.aria-disabled]="isOptionDisabled(option)"
|
1735
|
+
[attr.aria-setsize]="ariaSetSize"
|
1736
|
+
[attr.ariaPosInset]="getAriaPosInset(getOptionIndex(i, scrollerOptions))"
|
1737
|
+
(click)="onOptionSelect($event, option, getOptionIndex(i, scrollerOptions))"
|
1738
|
+
(dblclick)="onOptionDoubleClick($event, option)"
|
1739
|
+
(mousedown)="onOptionMouseDown($event, getOptionIndex(i, scrollerOptions))"
|
1740
|
+
(mouseenter)="onOptionMouseEnter($event, getOptionIndex(i, scrollerOptions))"
|
1741
|
+
(touchend)="onOptionTouchEnd()"
|
1742
|
+
cdkDrag
|
1743
|
+
[cdkDragData]="option"
|
1744
|
+
[cdkDragDisabled]="!dragdrop"
|
1745
|
+
>
|
1746
|
+
<p-checkbox
|
1747
|
+
*ngIf="checkbox && multiple"
|
1748
|
+
styleClass="p-listbox-option-check-icon"
|
1749
|
+
[ngModel]="isSelected(option)"
|
1750
|
+
[readonly]="true"
|
1751
|
+
[disabled]="disabled || isOptionDisabled(option)"
|
1752
|
+
[tabindex]="-1"
|
1753
|
+
[variant]="config.inputStyle() === 'filled' || config.inputVariant() === 'filled' ? 'filled' : 'outlined'"
|
1754
|
+
[binary]="true"
|
1755
|
+
>
|
1756
|
+
<ng-container *ngIf="checkIconTemplate || _checkIconTemplate">
|
1757
|
+
<ng-template #icon>
|
1758
|
+
<ng-template *ngTemplateOutlet="checkIconTemplate || _checkIconTemplate; context: { $implicit: isSelected(option) }"></ng-template>
|
1759
|
+
</ng-template>
|
1760
|
+
</ng-container>
|
1761
|
+
</p-checkbox>
|
1762
|
+
<ng-container *ngIf="checkmark">
|
1763
|
+
<ng-container *ngIf="!checkmarkTemplate && !_checkmarkTemplate">
|
1764
|
+
<BlankIcon *ngIf="!isSelected(option)" styleClass="p-listbox-option-check-icon" />
|
1765
|
+
<CheckIcon *ngIf="isSelected(option)" styleClass="p-listbox-option-check-icon" />
|
1766
|
+
</ng-container>
|
1767
|
+
<ng-container *ngTemplateOutlet="checkmarkTemplate || _checkmarkTemplate; context: { implicit: isSelected(option) }"></ng-container>
|
1768
|
+
</ng-container>
|
1769
|
+
<span *ngIf="!itemTemplate && !_itemTemplate">{{ getOptionLabel(option) }}</span>
|
1770
|
+
<ng-container
|
1771
|
+
*ngTemplateOutlet="
|
1772
|
+
itemTemplate || _itemTemplate;
|
1773
|
+
context: {
|
1774
|
+
$implicit: option,
|
1775
|
+
index: getOptionIndex(i, scrollerOptions),
|
1776
|
+
selected: isSelected(option)
|
1777
|
+
}
|
1778
|
+
"
|
1779
|
+
></ng-container>
|
1780
|
+
</li>
|
1781
|
+
</ng-container>
|
1782
|
+
</ng-template>
|
1783
|
+
<li *ngIf="hasFilter() && isEmpty()" class="p-listbox-empty-message" role="option">
|
1784
|
+
@if (!emptyFilterTemplate && !_emptyFilterTemplate && !_emptyTemplate && !emptyTemplate) {
|
1785
|
+
{{ emptyFilterMessageText }}
|
1786
|
+
} @else {
|
1787
|
+
<ng-container #emptyFilter *ngTemplateOutlet="emptyFilterTemplate || _emptyFilterTemplate || _emptyTemplate || emptyTemplate"></ng-container>
|
1788
|
+
}
|
1789
|
+
</li>
|
1790
|
+
<li *ngIf="!hasFilter() && isEmpty()" class="p-listbox-empty-message" role="option">
|
1791
|
+
@if (!emptyTemplate && !_emptyTemplate) {
|
1792
|
+
{{ emptyMessage }}
|
1793
|
+
} @else {
|
1794
|
+
<ng-container #empty *ngTemplateOutlet="emptyTemplate || _emptyTemplate"></ng-container>
|
1795
|
+
}
|
1796
|
+
</li>
|
1797
|
+
</ul>
|
1798
|
+
</ng-template>
|
1799
|
+
</div>
|
1800
|
+
<div class="p-listbox-footer" *ngIf="footerFacet || footerTemplate || _footerTemplate">
|
1801
|
+
<ng-content select="p-footer"></ng-content>
|
1802
|
+
<ng-container *ngTemplateOutlet="footerTemplate || _footerTemplate; context: { $implicit: modelValue(), options: visibleOptions() }"></ng-container>
|
1803
|
+
</div>
|
1804
|
+
<span *ngIf="isEmpty()" role="status" aria-live="polite" class="p-hidden-accessible">
|
1805
|
+
{{ emptyMessage }}
|
1806
|
+
</span>
|
1807
|
+
<span role="status" aria-live="polite" class="p-hidden-accessible">
|
1808
|
+
{{ selectedMessageText }}
|
2102
1809
|
</span>
|
1810
|
+
<span #lastHiddenFocusableElement role="presentation" class="p-hidden-accessible p-hidden-focusable" [tabindex]="!disabled ? tabindex : -1" (focus)="onLastHiddenFocus($event)" [attr.data-p-hidden-focusable]="true"> </span>
|
2103
1811
|
</div>
|
2104
1812
|
`,
|
2105
|
-
|
2106
|
-
|
2107
|
-
|
2108
|
-
|
2109
|
-
|
2110
|
-
|
2111
|
-
|
2112
|
-
|
2113
|
-
|
2114
|
-
|
2115
|
-
|
2116
|
-
|
2117
|
-
|
2118
|
-
|
2119
|
-
|
2120
|
-
|
2121
|
-
|
2122
|
-
|
2123
|
-
|
2124
|
-
|
2125
|
-
|
2126
|
-
|
2127
|
-
|
2128
|
-
|
2129
|
-
|
2130
|
-
|
2131
|
-
|
2132
|
-
|
2133
|
-
|
2134
|
-
|
2135
|
-
|
2136
|
-
|
2137
|
-
|
2138
|
-
|
2139
|
-
|
2140
|
-
|
2141
|
-
|
2142
|
-
|
2143
|
-
|
2144
|
-
|
2145
|
-
|
2146
|
-
|
2147
|
-
|
2148
|
-
|
2149
|
-
|
2150
|
-
|
2151
|
-
|
2152
|
-
|
2153
|
-
|
2154
|
-
|
2155
|
-
|
2156
|
-
|
2157
|
-
|
2158
|
-
|
2159
|
-
|
2160
|
-
|
2161
|
-
|
2162
|
-
|
2163
|
-
|
2164
|
-
|
2165
|
-
|
2166
|
-
|
2167
|
-
|
2168
|
-
|
2169
|
-
|
2170
|
-
|
2171
|
-
|
2172
|
-
|
2173
|
-
|
2174
|
-
|
2175
|
-
|
2176
|
-
|
2177
|
-
|
2178
|
-
|
2179
|
-
|
2180
|
-
|
2181
|
-
|
2182
|
-
|
2183
|
-
|
2184
|
-
|
2185
|
-
|
2186
|
-
|
2187
|
-
|
2188
|
-
|
2189
|
-
|
2190
|
-
|
2191
|
-
|
2192
|
-
|
2193
|
-
|
2194
|
-
|
2195
|
-
|
2196
|
-
|
2197
|
-
|
2198
|
-
|
2199
|
-
|
2200
|
-
|
2201
|
-
|
2202
|
-
|
2203
|
-
|
2204
|
-
|
2205
|
-
|
2206
|
-
|
2207
|
-
|
2208
|
-
|
2209
|
-
|
2210
|
-
|
2211
|
-
|
2212
|
-
|
2213
|
-
|
2214
|
-
|
2215
|
-
|
2216
|
-
|
2217
|
-
|
2218
|
-
|
2219
|
-
|
2220
|
-
|
2221
|
-
|
2222
|
-
|
2223
|
-
|
2224
|
-
|
2225
|
-
|
2226
|
-
|
2227
|
-
|
2228
|
-
|
2229
|
-
|
2230
|
-
|
2231
|
-
|
2232
|
-
|
2233
|
-
|
2234
|
-
|
2235
|
-
|
2236
|
-
|
2237
|
-
|
2238
|
-
|
2239
|
-
|
2240
|
-
|
2241
|
-
|
2242
|
-
|
2243
|
-
|
2244
|
-
|
2245
|
-
|
2246
|
-
|
2247
|
-
|
2248
|
-
|
2249
|
-
|
2250
|
-
|
2251
|
-
|
2252
|
-
|
2253
|
-
|
2254
|
-
|
2255
|
-
|
2256
|
-
|
2257
|
-
|
2258
|
-
|
2259
|
-
|
2260
|
-
|
2261
|
-
|
2262
|
-
|
2263
|
-
|
2264
|
-
|
2265
|
-
|
2266
|
-
|
2267
|
-
|
2268
|
-
|
2269
|
-
|
2270
|
-
|
2271
|
-
|
2272
|
-
|
2273
|
-
|
2274
|
-
|
2275
|
-
|
2276
|
-
|
2277
|
-
|
2278
|
-
|
2279
|
-
|
2280
|
-
|
2281
|
-
|
2282
|
-
|
2283
|
-
|
2284
|
-
|
2285
|
-
|
2286
|
-
|
2287
|
-
|
2288
|
-
|
2289
|
-
|
2290
|
-
|
2291
|
-
|
2292
|
-
|
2293
|
-
|
2294
|
-
|
2295
|
-
|
2296
|
-
|
2297
|
-
|
2298
|
-
|
2299
|
-
|
2300
|
-
|
2301
|
-
|
2302
|
-
|
2303
|
-
|
2304
|
-
|
1813
|
+
providers: [
|
1814
|
+
LISTBOX_VALUE_ACCESSOR,
|
1815
|
+
ListBoxStyle,
|
1816
|
+
{
|
1817
|
+
provide: CDK_DRAG_CONFIG,
|
1818
|
+
useValue: {
|
1819
|
+
zIndex: 1200
|
1820
|
+
}
|
1821
|
+
}
|
1822
|
+
],
|
1823
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
1824
|
+
encapsulation: ViewEncapsulation.None
|
1825
|
+
}]
|
1826
|
+
}], ctorParameters: () => [{ type: i1.FilterService }], propDecorators: { id: [{
|
1827
|
+
type: Input
|
1828
|
+
}], searchMessage: [{
|
1829
|
+
type: Input
|
1830
|
+
}], emptySelectionMessage: [{
|
1831
|
+
type: Input
|
1832
|
+
}], selectionMessage: [{
|
1833
|
+
type: Input
|
1834
|
+
}], autoOptionFocus: [{
|
1835
|
+
type: Input,
|
1836
|
+
args: [{ transform: booleanAttribute }]
|
1837
|
+
}], ariaLabel: [{
|
1838
|
+
type: Input
|
1839
|
+
}], selectOnFocus: [{
|
1840
|
+
type: Input,
|
1841
|
+
args: [{ transform: booleanAttribute }]
|
1842
|
+
}], searchLocale: [{
|
1843
|
+
type: Input,
|
1844
|
+
args: [{ transform: booleanAttribute }]
|
1845
|
+
}], focusOnHover: [{
|
1846
|
+
type: Input,
|
1847
|
+
args: [{ transform: booleanAttribute }]
|
1848
|
+
}], filterMessage: [{
|
1849
|
+
type: Input
|
1850
|
+
}], filterFields: [{
|
1851
|
+
type: Input
|
1852
|
+
}], lazy: [{
|
1853
|
+
type: Input,
|
1854
|
+
args: [{ transform: booleanAttribute }]
|
1855
|
+
}], virtualScroll: [{
|
1856
|
+
type: Input,
|
1857
|
+
args: [{ transform: booleanAttribute }]
|
1858
|
+
}], virtualScrollItemSize: [{
|
1859
|
+
type: Input,
|
1860
|
+
args: [{ transform: numberAttribute }]
|
1861
|
+
}], virtualScrollOptions: [{
|
1862
|
+
type: Input
|
1863
|
+
}], scrollHeight: [{
|
1864
|
+
type: Input
|
1865
|
+
}], tabindex: [{
|
1866
|
+
type: Input,
|
1867
|
+
args: [{ transform: numberAttribute }]
|
1868
|
+
}], multiple: [{
|
1869
|
+
type: Input,
|
1870
|
+
args: [{ transform: booleanAttribute }]
|
1871
|
+
}], style: [{
|
1872
|
+
type: Input
|
1873
|
+
}], styleClass: [{
|
1874
|
+
type: Input
|
1875
|
+
}], listStyle: [{
|
1876
|
+
type: Input
|
1877
|
+
}], listStyleClass: [{
|
1878
|
+
type: Input
|
1879
|
+
}], readonly: [{
|
1880
|
+
type: Input,
|
1881
|
+
args: [{ transform: booleanAttribute }]
|
1882
|
+
}], disabled: [{
|
1883
|
+
type: Input,
|
1884
|
+
args: [{ transform: booleanAttribute }]
|
1885
|
+
}], checkbox: [{
|
1886
|
+
type: Input,
|
1887
|
+
args: [{ transform: booleanAttribute }]
|
1888
|
+
}], filter: [{
|
1889
|
+
type: Input,
|
1890
|
+
args: [{ transform: booleanAttribute }]
|
1891
|
+
}], filterBy: [{
|
1892
|
+
type: Input
|
1893
|
+
}], filterMatchMode: [{
|
1894
|
+
type: Input
|
1895
|
+
}], filterLocale: [{
|
1896
|
+
type: Input
|
1897
|
+
}], metaKeySelection: [{
|
1898
|
+
type: Input,
|
1899
|
+
args: [{ transform: booleanAttribute }]
|
1900
|
+
}], dataKey: [{
|
1901
|
+
type: Input
|
1902
|
+
}], showToggleAll: [{
|
1903
|
+
type: Input,
|
1904
|
+
args: [{ transform: booleanAttribute }]
|
1905
|
+
}], optionLabel: [{
|
1906
|
+
type: Input
|
1907
|
+
}], optionValue: [{
|
1908
|
+
type: Input
|
1909
|
+
}], optionGroupChildren: [{
|
1910
|
+
type: Input
|
1911
|
+
}], optionGroupLabel: [{
|
1912
|
+
type: Input
|
1913
|
+
}], optionDisabled: [{
|
1914
|
+
type: Input
|
1915
|
+
}], ariaFilterLabel: [{
|
1916
|
+
type: Input
|
1917
|
+
}], filterPlaceHolder: [{
|
1918
|
+
type: Input
|
1919
|
+
}], emptyFilterMessage: [{
|
1920
|
+
type: Input
|
1921
|
+
}], emptyMessage: [{
|
1922
|
+
type: Input
|
1923
|
+
}], group: [{
|
1924
|
+
type: Input,
|
1925
|
+
args: [{ transform: booleanAttribute }]
|
1926
|
+
}], options: [{
|
1927
|
+
type: Input
|
1928
|
+
}], filterValue: [{
|
1929
|
+
type: Input
|
1930
|
+
}], selectAll: [{
|
1931
|
+
type: Input
|
1932
|
+
}], striped: [{
|
1933
|
+
type: Input,
|
1934
|
+
args: [{ transform: booleanAttribute }]
|
1935
|
+
}], highlightOnSelect: [{
|
1936
|
+
type: Input,
|
1937
|
+
args: [{ transform: booleanAttribute }]
|
1938
|
+
}], checkmark: [{
|
1939
|
+
type: Input,
|
1940
|
+
args: [{ transform: booleanAttribute }]
|
1941
|
+
}], dragdrop: [{
|
1942
|
+
type: Input,
|
1943
|
+
args: [{ transform: booleanAttribute }]
|
1944
|
+
}], onChange: [{
|
1945
|
+
type: Output
|
1946
|
+
}], onClick: [{
|
1947
|
+
type: Output
|
1948
|
+
}], onDblClick: [{
|
1949
|
+
type: Output
|
1950
|
+
}], onFilter: [{
|
1951
|
+
type: Output
|
1952
|
+
}], onFocus: [{
|
1953
|
+
type: Output
|
1954
|
+
}], onBlur: [{
|
1955
|
+
type: Output
|
1956
|
+
}], onSelectAllChange: [{
|
1957
|
+
type: Output
|
1958
|
+
}], onLazyLoad: [{
|
1959
|
+
type: Output
|
1960
|
+
}], onDrop: [{
|
1961
|
+
type: Output
|
1962
|
+
}], headerCheckboxViewChild: [{
|
1963
|
+
type: ViewChild,
|
1964
|
+
args: ['headerchkbox']
|
1965
|
+
}], filterViewChild: [{
|
1966
|
+
type: ViewChild,
|
1967
|
+
args: ['filter']
|
1968
|
+
}], lastHiddenFocusableElement: [{
|
1969
|
+
type: ViewChild,
|
1970
|
+
args: ['lastHiddenFocusableElement']
|
1971
|
+
}], firstHiddenFocusableElement: [{
|
1972
|
+
type: ViewChild,
|
1973
|
+
args: ['firstHiddenFocusableElement']
|
1974
|
+
}], scroller: [{
|
1975
|
+
type: ViewChild,
|
1976
|
+
args: ['scroller']
|
1977
|
+
}], listViewChild: [{
|
1978
|
+
type: ViewChild,
|
1979
|
+
args: ['list']
|
1980
|
+
}], containerViewChild: [{
|
1981
|
+
type: ViewChild,
|
1982
|
+
args: ['container']
|
1983
|
+
}], headerFacet: [{
|
1984
|
+
type: ContentChild,
|
1985
|
+
args: [Header]
|
1986
|
+
}], footerFacet: [{
|
1987
|
+
type: ContentChild,
|
1988
|
+
args: [Footer]
|
1989
|
+
}], itemTemplate: [{
|
1990
|
+
type: ContentChild,
|
1991
|
+
args: ['item', { descendants: false }]
|
1992
|
+
}], groupTemplate: [{
|
1993
|
+
type: ContentChild,
|
1994
|
+
args: ['group', { descendants: false }]
|
1995
|
+
}], headerTemplate: [{
|
1996
|
+
type: ContentChild,
|
1997
|
+
args: ['header', { descendants: false }]
|
1998
|
+
}], filterTemplate: [{
|
1999
|
+
type: ContentChild,
|
2000
|
+
args: ['filter', { descendants: false }]
|
2001
|
+
}], footerTemplate: [{
|
2002
|
+
type: ContentChild,
|
2003
|
+
args: ['footer', { descendants: false }]
|
2004
|
+
}], emptyFilterTemplate: [{
|
2005
|
+
type: ContentChild,
|
2006
|
+
args: ['emptyfilter', { descendants: false }]
|
2007
|
+
}], emptyTemplate: [{
|
2008
|
+
type: ContentChild,
|
2009
|
+
args: ['empty', { descendants: false }]
|
2010
|
+
}], filterIconTemplate: [{
|
2011
|
+
type: ContentChild,
|
2012
|
+
args: ['filtericon', { descendants: false }]
|
2013
|
+
}], checkIconTemplate: [{
|
2014
|
+
type: ContentChild,
|
2015
|
+
args: ['checkicon', { descendants: false }]
|
2016
|
+
}], checkmarkTemplate: [{
|
2017
|
+
type: ContentChild,
|
2018
|
+
args: ['checkmark', { descendants: false }]
|
2019
|
+
}], loaderTemplate: [{
|
2020
|
+
type: ContentChild,
|
2021
|
+
args: ['loader', { descendants: false }]
|
2022
|
+
}], templates: [{
|
2023
|
+
type: ContentChildren,
|
2024
|
+
args: [PrimeTemplate]
|
2025
|
+
}] } });
|
2305
2026
|
class ListboxModule {
|
2306
|
-
static ɵfac =
|
2307
|
-
static ɵmod =
|
2308
|
-
static ɵinj =
|
2027
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: ListboxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
2028
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.7", ngImport: i0, type: ListboxModule, imports: [Listbox, SharedModule], exports: [Listbox, SharedModule] });
|
2029
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: ListboxModule, imports: [Listbox, SharedModule, SharedModule] });
|
2309
2030
|
}
|
2310
|
-
(
|
2311
|
-
|
2312
|
-
|
2313
|
-
|
2314
|
-
|
2315
|
-
|
2316
|
-
|
2317
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(ListboxModule, { imports: [Listbox, SharedModule], exports: [Listbox, SharedModule] }); })();
|
2031
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: ListboxModule, decorators: [{
|
2032
|
+
type: NgModule,
|
2033
|
+
args: [{
|
2034
|
+
imports: [Listbox, SharedModule],
|
2035
|
+
exports: [Listbox, SharedModule]
|
2036
|
+
}]
|
2037
|
+
}] });
|
2318
2038
|
|
2319
2039
|
/**
|
2320
2040
|
* Generated bundle index. Do not edit.
|