primeng 19.0.6 → 19.0.8
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/accordion/accordion.d.ts +1 -1
- package/basecomponent/basecomponent.d.ts +1 -0
- package/confirmdialog/confirmdialog.d.ts +2 -1
- package/dataview/dataview.interface.d.ts +9 -19
- package/dragdrop/dragdrop.d.ts +3 -2
- package/dynamicdialog/dynamicdialog.d.ts +1 -1
- package/fesm2022/primeng-accordion.mjs +358 -561
- 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 +505 -786
- 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 +70 -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 +6 -6
- package/fesm2022/primeng-base.mjs.map +1 -1
- package/fesm2022/primeng-basecomponent.mjs +19 -16
- 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 +88 -192
- package/fesm2022/primeng-card.mjs.map +1 -1
- package/fesm2022/primeng-carousel.mjs +218 -405
- package/fesm2022/primeng-carousel.mjs.map +1 -1
- package/fesm2022/primeng-cascadeselect.mjs +392 -576
- 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 +131 -183
- 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 +12 -12
- package/fesm2022/primeng-config.mjs.map +1 -1
- package/fesm2022/primeng-confirmdialog.mjs +232 -350
- 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 +740 -1136
- 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 +171 -268
- package/fesm2022/primeng-drawer.mjs.map +1 -1
- package/fesm2022/primeng-dropdown.mjs +529 -867
- package/fesm2022/primeng-dropdown.mjs.map +1 -1
- package/fesm2022/primeng-dynamicdialog.mjs +152 -301
- 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 -687
- 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 +34 -40
- 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 +156 -181
- package/fesm2022/primeng-inputmask.mjs.map +1 -1
- package/fesm2022/primeng-inputnumber.mjs +299 -416
- package/fesm2022/primeng-inputnumber.mjs.map +1 -1
- package/fesm2022/primeng-inputotp.mjs +97 -121
- 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 +51 -57
- package/fesm2022/primeng-inputtext.mjs.map +1 -1
- package/fesm2022/primeng-inputtextarea.mjs +50 -55
- 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 +473 -790
- 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 +289 -460
- 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 +158 -244
- package/fesm2022/primeng-message.mjs.map +1 -1
- package/fesm2022/primeng-messages.mjs +163 -279
- 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 +687 -1162
- 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 +138 -156
- 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 +268 -408
- package/fesm2022/primeng-password.mjs.map +1 -1
- package/fesm2022/primeng-picklist.mjs +560 -856
- package/fesm2022/primeng-picklist.mjs.map +1 -1
- package/fesm2022/primeng-popover.mjs +133 -150
- package/fesm2022/primeng-popover.mjs.map +1 -1
- package/fesm2022/primeng-progressbar.mjs +83 -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 +115 -106
- package/fesm2022/primeng-radiobutton.mjs.map +1 -1
- package/fesm2022/primeng-rating.mjs +120 -208
- 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 +580 -955
- 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 +227 -342
- 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 +1808 -2584
- 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 +185 -300
- 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 +56 -61
- 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 +251 -358
- package/fesm2022/primeng-toast.mjs.map +1 -1
- package/fesm2022/primeng-togglebutton.mjs +113 -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 +73 -74
- package/fesm2022/primeng-tooltip.mjs.map +1 -1
- package/fesm2022/primeng-tree.mjs +441 -730
- package/fesm2022/primeng-tree.mjs.map +1 -1
- package/fesm2022/primeng-treeselect.mjs +342 -531
- package/fesm2022/primeng-treeselect.mjs.map +1 -1
- package/fesm2022/primeng-treetable.mjs +1026 -1583
- package/fesm2022/primeng-treetable.mjs.map +1 -1
- package/fesm2022/primeng-usestyle.mjs +6 -6
- package/fesm2022/primeng-usestyle.mjs.map +1 -1
- package/listbox/listbox.d.ts +2 -2
- package/multiselect/multiselect.d.ts +4 -2
- package/package.json +139 -140
- package/password/password.d.ts +7 -1
- package/picklist/picklist.d.ts +11 -1
@@ -1,10 +1,10 @@
|
|
1
1
|
import * as i1 from '@angular/common';
|
2
2
|
import { CommonModule } from '@angular/common';
|
3
3
|
import * as i0 from '@angular/core';
|
4
|
-
import { Injectable, forwardRef, EventEmitter, booleanAttribute, numberAttribute,
|
4
|
+
import { Injectable, forwardRef, EventEmitter, booleanAttribute, numberAttribute, Output, Input, ViewEncapsulation, Component, inject, signal, computed, effect, HostBinding, ContentChildren, ContentChild, ViewChild, ChangeDetectionStrategy, NgModule } from '@angular/core';
|
5
5
|
import * as i2 from '@angular/forms';
|
6
6
|
import { NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
|
7
|
-
import { deepEquals, isNotEmpty, isArray,
|
7
|
+
import { deepEquals, isNotEmpty, isArray, uuid, equals, focus, findLastIndex, resolveFieldData, isPrintableCharacter, getFirstFocusableElement, getLastFocusableElement, findSingle, unblockBodyScroll, hasClass, isHidden, getFocusableElements } from '@primeuix/utils';
|
8
8
|
import * as i3 from 'primeng/api';
|
9
9
|
import { SharedModule, TranslationKeys, Footer, Header, PrimeTemplate } from 'primeng/api';
|
10
10
|
import { AutoFocus } from 'primeng/autofocus';
|
@@ -21,6 +21,7 @@ import { Ripple } from 'primeng/ripple';
|
|
21
21
|
import { Scroller } from 'primeng/scroller';
|
22
22
|
import { Tooltip } from 'primeng/tooltip';
|
23
23
|
import { BaseStyle } from 'primeng/base';
|
24
|
+
import { ObjectUtils } from 'primeng/utils';
|
24
25
|
|
25
26
|
const theme = ({ dt }) => `
|
26
27
|
.p-multiselect {
|
@@ -301,12 +302,12 @@ class MultiSelectStyle extends BaseStyle {
|
|
301
302
|
theme = theme;
|
302
303
|
classes = classes;
|
303
304
|
inlineStyles = inlineStyles;
|
304
|
-
static ɵfac =
|
305
|
-
static ɵprov =
|
305
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: MultiSelectStyle, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
306
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: MultiSelectStyle });
|
306
307
|
}
|
307
|
-
(
|
308
|
-
|
309
|
-
|
308
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: MultiSelectStyle, decorators: [{
|
309
|
+
type: Injectable
|
310
|
+
}] });
|
310
311
|
/**
|
311
312
|
*
|
312
313
|
* MultiSelect is used to select multiple items from a collection.
|
@@ -392,641 +393,6 @@ var MultiSelectClasses;
|
|
392
393
|
MultiSelectClasses["emptyMessage"] = "p-multiselect-empty-message";
|
393
394
|
})(MultiSelectClasses || (MultiSelectClasses = {}));
|
394
395
|
|
395
|
-
const _c0 = a0 => ({ height: a0 });
|
396
|
-
const _c1 = (a0, a1) => ({ "p-multiselect-option": true, "p-disabled": a0, "p-focus": a1 });
|
397
|
-
const _c2 = a0 => ({ $implicit: a0 });
|
398
|
-
const _c3 = (a0, a1) => ({ checked: a0, class: a1 });
|
399
|
-
function MultiSelectItem_ng_container_2_ng_template_1_0_ng_template_0_Template(rf, ctx) { }
|
400
|
-
function MultiSelectItem_ng_container_2_ng_template_1_0_Template(rf, ctx) { if (rf & 1) {
|
401
|
-
i0.ɵɵtemplate(0, MultiSelectItem_ng_container_2_ng_template_1_0_ng_template_0_Template, 0, 0, "ng-template");
|
402
|
-
} }
|
403
|
-
function MultiSelectItem_ng_container_2_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
404
|
-
i0.ɵɵtemplate(0, MultiSelectItem_ng_container_2_ng_template_1_0_Template, 1, 0, null, 4);
|
405
|
-
} if (rf & 2) {
|
406
|
-
const klass_r1 = ctx.class;
|
407
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
408
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.itemCheckboxIconTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c3, ctx_r1.selected, klass_r1));
|
409
|
-
} }
|
410
|
-
function MultiSelectItem_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
411
|
-
i0.ɵɵelementContainerStart(0);
|
412
|
-
i0.ɵɵtemplate(1, MultiSelectItem_ng_container_2_ng_template_1_Template, 1, 5, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
413
|
-
i0.ɵɵelementContainerEnd();
|
414
|
-
} }
|
415
|
-
function MultiSelectItem_span_3_Template(rf, ctx) { if (rf & 1) {
|
416
|
-
i0.ɵɵelementStart(0, "span");
|
417
|
-
i0.ɵɵtext(1);
|
418
|
-
i0.ɵɵelementEnd();
|
419
|
-
} if (rf & 2) {
|
420
|
-
let tmp_1_0;
|
421
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
422
|
-
i0.ɵɵadvance();
|
423
|
-
i0.ɵɵtextInterpolate((tmp_1_0 = ctx_r1.label) !== null && tmp_1_0 !== undefined ? tmp_1_0 : "empty");
|
424
|
-
} }
|
425
|
-
function MultiSelectItem_ng_container_4_Template(rf, ctx) { if (rf & 1) {
|
426
|
-
i0.ɵɵelementContainer(0);
|
427
|
-
} }
|
428
|
-
const _c4 = ["item"];
|
429
|
-
const _c5 = ["group"];
|
430
|
-
const _c6 = ["loader"];
|
431
|
-
const _c7 = ["header"];
|
432
|
-
const _c8 = ["filter"];
|
433
|
-
const _c9 = ["footer"];
|
434
|
-
const _c10 = ["emptyfilter"];
|
435
|
-
const _c11 = ["empty"];
|
436
|
-
const _c12 = ["selecteditems"];
|
437
|
-
const _c13 = ["checkicon"];
|
438
|
-
const _c14 = ["loadingicon"];
|
439
|
-
const _c15 = ["filtericon"];
|
440
|
-
const _c16 = ["removetokenicon"];
|
441
|
-
const _c17 = ["chipicon"];
|
442
|
-
const _c18 = ["clearicon"];
|
443
|
-
const _c19 = ["dropdownicon"];
|
444
|
-
const _c20 = ["itemcheckboxicon"];
|
445
|
-
const _c21 = ["headercheckboxicon"];
|
446
|
-
const _c22 = ["overlay"];
|
447
|
-
const _c23 = ["filterInput"];
|
448
|
-
const _c24 = ["focusInput"];
|
449
|
-
const _c25 = ["items"];
|
450
|
-
const _c26 = ["scroller"];
|
451
|
-
const _c27 = ["lastHiddenFocusableEl"];
|
452
|
-
const _c28 = ["firstHiddenFocusableEl"];
|
453
|
-
const _c29 = ["headerCheckbox"];
|
454
|
-
const _c30 = [[["p-header"]], [["p-footer"]]];
|
455
|
-
const _c31 = ["p-header", "p-footer"];
|
456
|
-
const _c32 = () => ({ class: "p-multiselect-chip-icon" });
|
457
|
-
const _c33 = (a0, a1) => ({ $implicit: a0, removeChip: a1 });
|
458
|
-
const _c34 = a0 => ({ options: a0 });
|
459
|
-
const _c35 = (a0, a1, a2) => ({ checked: a0, partialSelected: a1, class: a2 });
|
460
|
-
const _c36 = (a0, a1) => ({ $implicit: a0, options: a1 });
|
461
|
-
const _c37 = () => ({});
|
462
|
-
function MultiSelect_ng_container_5_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
463
|
-
i0.ɵɵelementContainerStart(0);
|
464
|
-
i0.ɵɵtext(1);
|
465
|
-
i0.ɵɵelementContainerEnd();
|
466
|
-
} if (rf & 2) {
|
467
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
468
|
-
i0.ɵɵadvance();
|
469
|
-
i0.ɵɵtextInterpolate(ctx_r1.label() || "empty");
|
470
|
-
} }
|
471
|
-
function MultiSelect_ng_container_5_ng_container_2_div_1_ng_container_3_ng_template_1_ng_container_0_span_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
472
|
-
i0.ɵɵelementContainer(0);
|
473
|
-
} }
|
474
|
-
function MultiSelect_ng_container_5_ng_container_2_div_1_ng_container_3_ng_template_1_ng_container_0_span_1_Template(rf, ctx) { if (rf & 1) {
|
475
|
-
const _r5 = i0.ɵɵgetCurrentView();
|
476
|
-
i0.ɵɵelementStart(0, "span", 28);
|
477
|
-
i0.ɵɵlistener("click", function MultiSelect_ng_container_5_ng_container_2_div_1_ng_container_3_ng_template_1_ng_container_0_span_1_Template_span_click_0_listener($event) { i0.ɵɵrestoreView(_r5); const item_r4 = i0.ɵɵnextContext(4).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.removeOption(item_r4, $event)); });
|
478
|
-
i0.ɵɵtemplate(1, MultiSelect_ng_container_5_ng_container_2_div_1_ng_container_3_ng_template_1_ng_container_0_span_1_ng_container_1_Template, 1, 0, "ng-container", 29);
|
479
|
-
i0.ɵɵelementEnd();
|
480
|
-
} if (rf & 2) {
|
481
|
-
const ctx_r1 = i0.ɵɵnextContext(7);
|
482
|
-
i0.ɵɵattribute("data-pc-section", "clearicon")("aria-hidden", true);
|
483
|
-
i0.ɵɵadvance();
|
484
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.chipIconTemplate || ctx_r1._chipIconTemplate || ctx_r1.removeTokenIconTemplate || ctx_r1._removeTokenIconTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction0(4, _c32));
|
485
|
-
} }
|
486
|
-
function MultiSelect_ng_container_5_ng_container_2_div_1_ng_container_3_ng_template_1_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
487
|
-
i0.ɵɵelementContainerStart(0);
|
488
|
-
i0.ɵɵtemplate(1, MultiSelect_ng_container_5_ng_container_2_div_1_ng_container_3_ng_template_1_ng_container_0_span_1_Template, 2, 5, "span", 27);
|
489
|
-
i0.ɵɵelementContainerEnd();
|
490
|
-
} if (rf & 2) {
|
491
|
-
const ctx_r1 = i0.ɵɵnextContext(6);
|
492
|
-
i0.ɵɵadvance();
|
493
|
-
i0.ɵɵproperty("ngIf", ctx_r1.chipIconTemplate || ctx_r1._chipIconTemplate || ctx_r1.removeTokenIconTemplate || ctx_r1._removeTokenIconTemplate);
|
494
|
-
} }
|
495
|
-
function MultiSelect_ng_container_5_ng_container_2_div_1_ng_container_3_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
496
|
-
i0.ɵɵtemplate(0, MultiSelect_ng_container_5_ng_container_2_div_1_ng_container_3_ng_template_1_ng_container_0_Template, 2, 1, "ng-container", 20);
|
497
|
-
} if (rf & 2) {
|
498
|
-
const ctx_r1 = i0.ɵɵnextContext(5);
|
499
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.disabled);
|
500
|
-
} }
|
501
|
-
function MultiSelect_ng_container_5_ng_container_2_div_1_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
502
|
-
i0.ɵɵelementContainerStart(0);
|
503
|
-
i0.ɵɵtemplate(1, MultiSelect_ng_container_5_ng_container_2_div_1_ng_container_3_ng_template_1_Template, 1, 1, "ng-template", null, 5, i0.ɵɵtemplateRefExtractor);
|
504
|
-
i0.ɵɵelementContainerEnd();
|
505
|
-
} }
|
506
|
-
function MultiSelect_ng_container_5_ng_container_2_div_1_Template(rf, ctx) { if (rf & 1) {
|
507
|
-
const _r3 = i0.ɵɵgetCurrentView();
|
508
|
-
i0.ɵɵelementStart(0, "div", 25, 4)(2, "p-chip", 26);
|
509
|
-
i0.ɵɵlistener("onRemove", function MultiSelect_ng_container_5_ng_container_2_div_1_Template_p_chip_onRemove_2_listener($event) { const item_r4 = i0.ɵɵrestoreView(_r3).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.removeOption(item_r4, $event)); });
|
510
|
-
i0.ɵɵtemplate(3, MultiSelect_ng_container_5_ng_container_2_div_1_ng_container_3_Template, 3, 0, "ng-container", 20);
|
511
|
-
i0.ɵɵelementEnd()();
|
512
|
-
} if (rf & 2) {
|
513
|
-
const item_r4 = ctx.$implicit;
|
514
|
-
const ctx_r1 = i0.ɵɵnextContext(3);
|
515
|
-
i0.ɵɵadvance(2);
|
516
|
-
i0.ɵɵproperty("label", ctx_r1.getLabelByValue(item_r4))("removable", true)("removeIcon", ctx_r1.chipIcon);
|
517
|
-
i0.ɵɵadvance();
|
518
|
-
i0.ɵɵproperty("ngIf", ctx_r1.chipIconTemplate || ctx_r1._chipIconTemplate || ctx_r1.removeTokenIconTemplate || ctx_r1._removeTokenIconTemplate);
|
519
|
-
} }
|
520
|
-
function MultiSelect_ng_container_5_ng_container_2_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
521
|
-
i0.ɵɵelementContainerStart(0);
|
522
|
-
i0.ɵɵtext(1);
|
523
|
-
i0.ɵɵelementContainerEnd();
|
524
|
-
} if (rf & 2) {
|
525
|
-
const ctx_r1 = i0.ɵɵnextContext(3);
|
526
|
-
i0.ɵɵadvance();
|
527
|
-
i0.ɵɵtextInterpolate(ctx_r1.placeholder() || ctx_r1.defaultLabel || "empty");
|
528
|
-
} }
|
529
|
-
function MultiSelect_ng_container_5_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
530
|
-
i0.ɵɵelementContainerStart(0);
|
531
|
-
i0.ɵɵtemplate(1, MultiSelect_ng_container_5_ng_container_2_div_1_Template, 4, 4, "div", 24)(2, MultiSelect_ng_container_5_ng_container_2_ng_container_2_Template, 2, 1, "ng-container", 20);
|
532
|
-
i0.ɵɵelementContainerEnd();
|
533
|
-
} if (rf & 2) {
|
534
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
535
|
-
i0.ɵɵadvance();
|
536
|
-
i0.ɵɵproperty("ngForOf", ctx_r1.chipSelectedItems());
|
537
|
-
i0.ɵɵadvance();
|
538
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.modelValue() || ctx_r1.modelValue().length === 0);
|
539
|
-
} }
|
540
|
-
function MultiSelect_ng_container_5_Template(rf, ctx) { if (rf & 1) {
|
541
|
-
i0.ɵɵelementContainerStart(0);
|
542
|
-
i0.ɵɵtemplate(1, MultiSelect_ng_container_5_ng_container_1_Template, 2, 1, "ng-container", 20)(2, MultiSelect_ng_container_5_ng_container_2_Template, 3, 2, "ng-container", 20);
|
543
|
-
i0.ɵɵelementContainerEnd();
|
544
|
-
} if (rf & 2) {
|
545
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
546
|
-
i0.ɵɵadvance();
|
547
|
-
i0.ɵɵproperty("ngIf", ctx_r1.display === "comma");
|
548
|
-
i0.ɵɵadvance();
|
549
|
-
i0.ɵɵproperty("ngIf", ctx_r1.display === "chip");
|
550
|
-
} }
|
551
|
-
function MultiSelect_ng_container_6_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
552
|
-
i0.ɵɵelementContainer(0);
|
553
|
-
} }
|
554
|
-
function MultiSelect_ng_container_6_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
555
|
-
i0.ɵɵelementContainerStart(0);
|
556
|
-
i0.ɵɵtext(1);
|
557
|
-
i0.ɵɵelementContainerEnd();
|
558
|
-
} if (rf & 2) {
|
559
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
560
|
-
i0.ɵɵadvance();
|
561
|
-
i0.ɵɵtextInterpolate(ctx_r1.placeholder() || ctx_r1.defaultLabel || "empty");
|
562
|
-
} }
|
563
|
-
function MultiSelect_ng_container_6_Template(rf, ctx) { if (rf & 1) {
|
564
|
-
i0.ɵɵelementContainerStart(0);
|
565
|
-
i0.ɵɵtemplate(1, MultiSelect_ng_container_6_ng_container_1_Template, 1, 0, "ng-container", 29)(2, MultiSelect_ng_container_6_ng_container_2_Template, 2, 1, "ng-container", 20);
|
566
|
-
i0.ɵɵelementContainerEnd();
|
567
|
-
} if (rf & 2) {
|
568
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
569
|
-
i0.ɵɵadvance();
|
570
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.selectedItemsTemplate || ctx_r1._selectedItemsTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction2(3, _c33, ctx_r1.selectedOptions, ctx_r1.removeOption.bind(ctx_r1)));
|
571
|
-
i0.ɵɵadvance();
|
572
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.modelValue() || ctx_r1.modelValue().length === 0);
|
573
|
-
} }
|
574
|
-
function MultiSelect_ng_container_7_TimesIcon_1_Template(rf, ctx) { if (rf & 1) {
|
575
|
-
const _r6 = i0.ɵɵgetCurrentView();
|
576
|
-
i0.ɵɵelementStart(0, "TimesIcon", 31);
|
577
|
-
i0.ɵɵlistener("click", function MultiSelect_ng_container_7_TimesIcon_1_Template_TimesIcon_click_0_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.clear($event)); });
|
578
|
-
i0.ɵɵelementEnd();
|
579
|
-
} if (rf & 2) {
|
580
|
-
i0.ɵɵattribute("data-pc-section", "clearicon")("aria-hidden", true);
|
581
|
-
} }
|
582
|
-
function MultiSelect_ng_container_7_span_2_1_ng_template_0_Template(rf, ctx) { }
|
583
|
-
function MultiSelect_ng_container_7_span_2_1_Template(rf, ctx) { if (rf & 1) {
|
584
|
-
i0.ɵɵtemplate(0, MultiSelect_ng_container_7_span_2_1_ng_template_0_Template, 0, 0, "ng-template");
|
585
|
-
} }
|
586
|
-
function MultiSelect_ng_container_7_span_2_Template(rf, ctx) { if (rf & 1) {
|
587
|
-
const _r7 = i0.ɵɵgetCurrentView();
|
588
|
-
i0.ɵɵelementStart(0, "span", 31);
|
589
|
-
i0.ɵɵlistener("click", function MultiSelect_ng_container_7_span_2_Template_span_click_0_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.clear($event)); });
|
590
|
-
i0.ɵɵtemplate(1, MultiSelect_ng_container_7_span_2_1_Template, 1, 0, null, 32);
|
591
|
-
i0.ɵɵelementEnd();
|
592
|
-
} if (rf & 2) {
|
593
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
594
|
-
i0.ɵɵattribute("data-pc-section", "clearicon")("aria-hidden", true);
|
595
|
-
i0.ɵɵadvance();
|
596
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.clearIconTemplate || ctx_r1._clearIconTemplate);
|
597
|
-
} }
|
598
|
-
function MultiSelect_ng_container_7_Template(rf, ctx) { if (rf & 1) {
|
599
|
-
i0.ɵɵelementContainerStart(0);
|
600
|
-
i0.ɵɵtemplate(1, MultiSelect_ng_container_7_TimesIcon_1_Template, 1, 2, "TimesIcon", 30)(2, MultiSelect_ng_container_7_span_2_Template, 2, 3, "span", 30);
|
601
|
-
i0.ɵɵelementContainerEnd();
|
602
|
-
} if (rf & 2) {
|
603
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
604
|
-
i0.ɵɵadvance();
|
605
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.clearIconTemplate && !ctx_r1._clearIconTemplate);
|
606
|
-
i0.ɵɵadvance();
|
607
|
-
i0.ɵɵproperty("ngIf", ctx_r1.clearIconTemplate || ctx_r1._clearIconTemplate);
|
608
|
-
} }
|
609
|
-
function MultiSelect_ng_container_9_ng_container_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
610
|
-
i0.ɵɵelementContainer(0);
|
611
|
-
} }
|
612
|
-
function MultiSelect_ng_container_9_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
613
|
-
i0.ɵɵelementContainerStart(0);
|
614
|
-
i0.ɵɵtemplate(1, MultiSelect_ng_container_9_ng_container_1_ng_container_1_Template, 1, 0, "ng-container", 32);
|
615
|
-
i0.ɵɵelementContainerEnd();
|
616
|
-
} if (rf & 2) {
|
617
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
618
|
-
i0.ɵɵadvance();
|
619
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.loadingIconTemplate || ctx_r1._loadingIconTemplate);
|
620
|
-
} }
|
621
|
-
function MultiSelect_ng_container_9_ng_container_2_span_1_Template(rf, ctx) { if (rf & 1) {
|
622
|
-
i0.ɵɵelement(0, "span", 35);
|
623
|
-
} if (rf & 2) {
|
624
|
-
const ctx_r1 = i0.ɵɵnextContext(3);
|
625
|
-
i0.ɵɵproperty("ngClass", "p-multiselect-loading-icon pi-spin " + ctx_r1.loadingIcon);
|
626
|
-
} }
|
627
|
-
function MultiSelect_ng_container_9_ng_container_2_span_2_Template(rf, ctx) { if (rf & 1) {
|
628
|
-
i0.ɵɵelement(0, "span", 36);
|
629
|
-
} if (rf & 2) {
|
630
|
-
i0.ɵɵclassMap("p-multiselect-loading-icon pi pi-spinner pi-spin");
|
631
|
-
} }
|
632
|
-
function MultiSelect_ng_container_9_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
633
|
-
i0.ɵɵelementContainerStart(0);
|
634
|
-
i0.ɵɵtemplate(1, MultiSelect_ng_container_9_ng_container_2_span_1_Template, 1, 1, "span", 33)(2, MultiSelect_ng_container_9_ng_container_2_span_2_Template, 1, 2, "span", 34);
|
635
|
-
i0.ɵɵelementContainerEnd();
|
636
|
-
} if (rf & 2) {
|
637
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
638
|
-
i0.ɵɵadvance();
|
639
|
-
i0.ɵɵproperty("ngIf", ctx_r1.loadingIcon);
|
640
|
-
i0.ɵɵadvance();
|
641
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.loadingIcon);
|
642
|
-
} }
|
643
|
-
function MultiSelect_ng_container_9_Template(rf, ctx) { if (rf & 1) {
|
644
|
-
i0.ɵɵelementContainerStart(0);
|
645
|
-
i0.ɵɵtemplate(1, MultiSelect_ng_container_9_ng_container_1_Template, 2, 1, "ng-container", 20)(2, MultiSelect_ng_container_9_ng_container_2_Template, 3, 2, "ng-container", 20);
|
646
|
-
i0.ɵɵelementContainerEnd();
|
647
|
-
} if (rf & 2) {
|
648
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
649
|
-
i0.ɵɵadvance();
|
650
|
-
i0.ɵɵproperty("ngIf", ctx_r1.loadingIconTemplate || ctx_r1._loadingIconTemplate);
|
651
|
-
i0.ɵɵadvance();
|
652
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.loadingIconTemplate && !ctx_r1._loadingIconTemplate);
|
653
|
-
} }
|
654
|
-
function MultiSelect_ng_template_10_ng_container_0_span_1_Template(rf, ctx) { if (rf & 1) {
|
655
|
-
i0.ɵɵelement(0, "span", 40);
|
656
|
-
} if (rf & 2) {
|
657
|
-
const ctx_r1 = i0.ɵɵnextContext(3);
|
658
|
-
i0.ɵɵproperty("ngClass", ctx_r1.dropdownIcon);
|
659
|
-
i0.ɵɵattribute("data-pc-section", "triggericon")("aria-hidden", true);
|
660
|
-
} }
|
661
|
-
function MultiSelect_ng_template_10_ng_container_0_ChevronDownIcon_2_Template(rf, ctx) { if (rf & 1) {
|
662
|
-
i0.ɵɵelement(0, "ChevronDownIcon", 41);
|
663
|
-
} if (rf & 2) {
|
664
|
-
i0.ɵɵproperty("styleClass", "p-multiselect-dropdown-icon");
|
665
|
-
i0.ɵɵattribute("data-pc-section", "triggericon")("aria-hidden", true);
|
666
|
-
} }
|
667
|
-
function MultiSelect_ng_template_10_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
668
|
-
i0.ɵɵelementContainerStart(0);
|
669
|
-
i0.ɵɵtemplate(1, MultiSelect_ng_template_10_ng_container_0_span_1_Template, 1, 3, "span", 38)(2, MultiSelect_ng_template_10_ng_container_0_ChevronDownIcon_2_Template, 1, 3, "ChevronDownIcon", 39);
|
670
|
-
i0.ɵɵelementContainerEnd();
|
671
|
-
} if (rf & 2) {
|
672
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
673
|
-
i0.ɵɵadvance();
|
674
|
-
i0.ɵɵproperty("ngIf", ctx_r1.dropdownIcon);
|
675
|
-
i0.ɵɵadvance();
|
676
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.dropdownIcon);
|
677
|
-
} }
|
678
|
-
function MultiSelect_ng_template_10_span_1_1_ng_template_0_Template(rf, ctx) { }
|
679
|
-
function MultiSelect_ng_template_10_span_1_1_Template(rf, ctx) { if (rf & 1) {
|
680
|
-
i0.ɵɵtemplate(0, MultiSelect_ng_template_10_span_1_1_ng_template_0_Template, 0, 0, "ng-template");
|
681
|
-
} }
|
682
|
-
function MultiSelect_ng_template_10_span_1_Template(rf, ctx) { if (rf & 1) {
|
683
|
-
i0.ɵɵelementStart(0, "span", 42);
|
684
|
-
i0.ɵɵtemplate(1, MultiSelect_ng_template_10_span_1_1_Template, 1, 0, null, 32);
|
685
|
-
i0.ɵɵelementEnd();
|
686
|
-
} if (rf & 2) {
|
687
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
688
|
-
i0.ɵɵattribute("data-pc-section", "triggericon")("aria-hidden", true);
|
689
|
-
i0.ɵɵadvance();
|
690
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.dropdownIconTemplate || ctx_r1._dropdownIconTemplate);
|
691
|
-
} }
|
692
|
-
function MultiSelect_ng_template_10_Template(rf, ctx) { if (rf & 1) {
|
693
|
-
i0.ɵɵtemplate(0, MultiSelect_ng_template_10_ng_container_0_Template, 3, 2, "ng-container", 20)(1, MultiSelect_ng_template_10_span_1_Template, 2, 3, "span", 37);
|
694
|
-
} if (rf & 2) {
|
695
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
696
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.dropdownIconTemplate && !ctx_r1._dropdownIconTemplate);
|
697
|
-
i0.ɵɵadvance();
|
698
|
-
i0.ɵɵproperty("ngIf", ctx_r1.dropdownIconTemplate || ctx_r1._dropdownIconTemplate);
|
699
|
-
} }
|
700
|
-
function MultiSelect_ng_template_14_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
701
|
-
i0.ɵɵelementContainer(0);
|
702
|
-
} }
|
703
|
-
function MultiSelect_ng_template_14_div_4_ng_container_2_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
704
|
-
i0.ɵɵelementContainer(0);
|
705
|
-
} }
|
706
|
-
function MultiSelect_ng_template_14_div_4_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
707
|
-
i0.ɵɵelementContainerStart(0);
|
708
|
-
i0.ɵɵtemplate(1, MultiSelect_ng_template_14_div_4_ng_container_2_ng_container_1_Template, 1, 0, "ng-container", 29);
|
709
|
-
i0.ɵɵelementContainerEnd();
|
710
|
-
} if (rf & 2) {
|
711
|
-
const ctx_r1 = i0.ɵɵnextContext(3);
|
712
|
-
i0.ɵɵadvance();
|
713
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.filterTemplate || ctx_r1._filterTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c34, ctx_r1.filterOptions));
|
714
|
-
} }
|
715
|
-
function MultiSelect_ng_template_14_div_4_ng_template_3_p_checkbox_0_ng_template_2_CheckIcon_0_Template(rf, ctx) { if (rf & 1) {
|
716
|
-
i0.ɵɵelement(0, "CheckIcon", 41);
|
717
|
-
} if (rf & 2) {
|
718
|
-
const klass_r10 = i0.ɵɵnextContext().class;
|
719
|
-
i0.ɵɵproperty("styleClass", klass_r10);
|
720
|
-
i0.ɵɵattribute("data-pc-section", "icon");
|
721
|
-
} }
|
722
|
-
function MultiSelect_ng_template_14_div_4_ng_template_3_p_checkbox_0_ng_template_2_1_ng_template_0_Template(rf, ctx) { }
|
723
|
-
function MultiSelect_ng_template_14_div_4_ng_template_3_p_checkbox_0_ng_template_2_1_Template(rf, ctx) { if (rf & 1) {
|
724
|
-
i0.ɵɵtemplate(0, MultiSelect_ng_template_14_div_4_ng_template_3_p_checkbox_0_ng_template_2_1_ng_template_0_Template, 0, 0, "ng-template");
|
725
|
-
} }
|
726
|
-
function MultiSelect_ng_template_14_div_4_ng_template_3_p_checkbox_0_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
727
|
-
i0.ɵɵtemplate(0, MultiSelect_ng_template_14_div_4_ng_template_3_p_checkbox_0_ng_template_2_CheckIcon_0_Template, 1, 2, "CheckIcon", 39)(1, MultiSelect_ng_template_14_div_4_ng_template_3_p_checkbox_0_ng_template_2_1_Template, 1, 0, null, 29);
|
728
|
-
} if (rf & 2) {
|
729
|
-
const klass_r10 = ctx.class;
|
730
|
-
const ctx_r1 = i0.ɵɵnextContext(5);
|
731
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.headerCheckboxIconTemplate && !ctx_r1._headerCheckboxIconTemplate && ctx_r1.allSelected());
|
732
|
-
i0.ɵɵadvance();
|
733
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.headerCheckboxIconTemplate || ctx_r1._headerCheckboxIconTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction3(3, _c35, ctx_r1.allSelected(), ctx_r1.partialSelected(), klass_r10));
|
734
|
-
} }
|
735
|
-
function MultiSelect_ng_template_14_div_4_ng_template_3_p_checkbox_0_Template(rf, ctx) { if (rf & 1) {
|
736
|
-
const _r9 = i0.ɵɵgetCurrentView();
|
737
|
-
i0.ɵɵelementStart(0, "p-checkbox", 51, 10);
|
738
|
-
i0.ɵɵlistener("onChange", function MultiSelect_ng_template_14_div_4_ng_template_3_p_checkbox_0_Template_p_checkbox_onChange_0_listener($event) { i0.ɵɵrestoreView(_r9); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.onToggleAll($event)); });
|
739
|
-
i0.ɵɵtemplate(2, MultiSelect_ng_template_14_div_4_ng_template_3_p_checkbox_0_ng_template_2_Template, 2, 7, "ng-template", null, 11, i0.ɵɵtemplateRefExtractor);
|
740
|
-
i0.ɵɵelementEnd();
|
741
|
-
} if (rf & 2) {
|
742
|
-
const ctx_r1 = i0.ɵɵnextContext(4);
|
743
|
-
i0.ɵɵproperty("ngModel", ctx_r1.allSelected())("ariaLabel", ctx_r1.toggleAllAriaLabel)("binary", true)("variant", ctx_r1.variant)("disabled", ctx_r1.disabled);
|
744
|
-
} }
|
745
|
-
function MultiSelect_ng_template_14_div_4_ng_template_3_div_1_SearchIcon_5_Template(rf, ctx) { if (rf & 1) {
|
746
|
-
i0.ɵɵelement(0, "SearchIcon", 41);
|
747
|
-
} if (rf & 2) {
|
748
|
-
i0.ɵɵproperty("styleClass", "p-multiselect-filter-icon");
|
749
|
-
} }
|
750
|
-
function MultiSelect_ng_template_14_div_4_ng_template_3_div_1_span_6_1_ng_template_0_Template(rf, ctx) { }
|
751
|
-
function MultiSelect_ng_template_14_div_4_ng_template_3_div_1_span_6_1_Template(rf, ctx) { if (rf & 1) {
|
752
|
-
i0.ɵɵtemplate(0, MultiSelect_ng_template_14_div_4_ng_template_3_div_1_span_6_1_ng_template_0_Template, 0, 0, "ng-template");
|
753
|
-
} }
|
754
|
-
function MultiSelect_ng_template_14_div_4_ng_template_3_div_1_span_6_Template(rf, ctx) { if (rf & 1) {
|
755
|
-
i0.ɵɵelementStart(0, "span", 55);
|
756
|
-
i0.ɵɵtemplate(1, MultiSelect_ng_template_14_div_4_ng_template_3_div_1_span_6_1_Template, 1, 0, null, 32);
|
757
|
-
i0.ɵɵelementEnd();
|
758
|
-
} if (rf & 2) {
|
759
|
-
const ctx_r1 = i0.ɵɵnextContext(5);
|
760
|
-
i0.ɵɵadvance();
|
761
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.filterIconTemplate || ctx_r1._filterIconTemplate);
|
762
|
-
} }
|
763
|
-
function MultiSelect_ng_template_14_div_4_ng_template_3_div_1_Template(rf, ctx) { if (rf & 1) {
|
764
|
-
const _r11 = i0.ɵɵgetCurrentView();
|
765
|
-
i0.ɵɵelementStart(0, "div", 52)(1, "p-iconfield")(2, "input", 53, 12);
|
766
|
-
i0.ɵɵlistener("input", function MultiSelect_ng_template_14_div_4_ng_template_3_div_1_Template_input_input_2_listener($event) { i0.ɵɵrestoreView(_r11); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.onFilterInputChange($event)); })("keydown", function MultiSelect_ng_template_14_div_4_ng_template_3_div_1_Template_input_keydown_2_listener($event) { i0.ɵɵrestoreView(_r11); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.onFilterKeyDown($event)); })("click", function MultiSelect_ng_template_14_div_4_ng_template_3_div_1_Template_input_click_2_listener($event) { i0.ɵɵrestoreView(_r11); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.onInputClick($event)); })("blur", function MultiSelect_ng_template_14_div_4_ng_template_3_div_1_Template_input_blur_2_listener($event) { i0.ɵɵrestoreView(_r11); const ctx_r1 = i0.ɵɵnextContext(4); return i0.ɵɵresetView(ctx_r1.onFilterBlur($event)); });
|
767
|
-
i0.ɵɵelementEnd();
|
768
|
-
i0.ɵɵelementStart(4, "p-inputicon");
|
769
|
-
i0.ɵɵtemplate(5, MultiSelect_ng_template_14_div_4_ng_template_3_div_1_SearchIcon_5_Template, 1, 1, "SearchIcon", 39)(6, MultiSelect_ng_template_14_div_4_ng_template_3_div_1_span_6_Template, 2, 1, "span", 54);
|
770
|
-
i0.ɵɵelementEnd()()();
|
771
|
-
} if (rf & 2) {
|
772
|
-
const ctx_r1 = i0.ɵɵnextContext(4);
|
773
|
-
i0.ɵɵadvance(2);
|
774
|
-
i0.ɵɵproperty("variant", ctx_r1.variant)("value", ctx_r1._filterValue() || "")("disabled", ctx_r1.disabled);
|
775
|
-
i0.ɵɵattribute("autocomplete", ctx_r1.autocomplete)("aria-owns", ctx_r1.id + "_list")("aria-activedescendant", ctx_r1.focusedOptionId)("placeholder", ctx_r1.filterPlaceHolder)("aria-label", ctx_r1.ariaFilterLabel);
|
776
|
-
i0.ɵɵadvance(3);
|
777
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.filterIconTemplate && !ctx_r1._filterIconTemplate);
|
778
|
-
i0.ɵɵadvance();
|
779
|
-
i0.ɵɵproperty("ngIf", ctx_r1.filterIconTemplate || ctx_r1._filterIconTemplate);
|
780
|
-
} }
|
781
|
-
function MultiSelect_ng_template_14_div_4_ng_template_3_Template(rf, ctx) { if (rf & 1) {
|
782
|
-
i0.ɵɵtemplate(0, MultiSelect_ng_template_14_div_4_ng_template_3_p_checkbox_0_Template, 4, 5, "p-checkbox", 49)(1, MultiSelect_ng_template_14_div_4_ng_template_3_div_1_Template, 7, 10, "div", 50);
|
783
|
-
} if (rf & 2) {
|
784
|
-
const ctx_r1 = i0.ɵɵnextContext(3);
|
785
|
-
i0.ɵɵproperty("ngIf", ctx_r1.showToggleAll && !ctx_r1.selectionLimit);
|
786
|
-
i0.ɵɵadvance();
|
787
|
-
i0.ɵɵproperty("ngIf", ctx_r1.filter);
|
788
|
-
} }
|
789
|
-
function MultiSelect_ng_template_14_div_4_Template(rf, ctx) { if (rf & 1) {
|
790
|
-
i0.ɵɵelementStart(0, "div", 48);
|
791
|
-
i0.ɵɵprojection(1);
|
792
|
-
i0.ɵɵtemplate(2, MultiSelect_ng_template_14_div_4_ng_container_2_Template, 2, 4, "ng-container", 22)(3, MultiSelect_ng_template_14_div_4_ng_template_3_Template, 2, 2, "ng-template", null, 9, i0.ɵɵtemplateRefExtractor);
|
793
|
-
i0.ɵɵelementEnd();
|
794
|
-
} if (rf & 2) {
|
795
|
-
const builtInFilterElement_r12 = i0.ɵɵreference(4);
|
796
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
797
|
-
i0.ɵɵadvance(2);
|
798
|
-
i0.ɵɵproperty("ngIf", ctx_r1.filterTemplate || ctx_r1._filterTemplate)("ngIfElse", builtInFilterElement_r12);
|
799
|
-
} }
|
800
|
-
function MultiSelect_ng_template_14_p_scroller_6_ng_template_2_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
801
|
-
i0.ɵɵelementContainer(0);
|
802
|
-
} }
|
803
|
-
function MultiSelect_ng_template_14_p_scroller_6_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
804
|
-
i0.ɵɵtemplate(0, MultiSelect_ng_template_14_p_scroller_6_ng_template_2_ng_container_0_Template, 1, 0, "ng-container", 29);
|
805
|
-
} if (rf & 2) {
|
806
|
-
const items_r14 = ctx.$implicit;
|
807
|
-
const scrollerOptions_r15 = ctx.options;
|
808
|
-
i0.ɵɵnextContext(2);
|
809
|
-
const buildInItems_r16 = i0.ɵɵreference(9);
|
810
|
-
i0.ɵɵproperty("ngTemplateOutlet", buildInItems_r16)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c36, items_r14, scrollerOptions_r15));
|
811
|
-
} }
|
812
|
-
function MultiSelect_ng_template_14_p_scroller_6_ng_container_4_ng_template_1_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
813
|
-
i0.ɵɵelementContainer(0);
|
814
|
-
} }
|
815
|
-
function MultiSelect_ng_template_14_p_scroller_6_ng_container_4_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
816
|
-
i0.ɵɵtemplate(0, MultiSelect_ng_template_14_p_scroller_6_ng_container_4_ng_template_1_ng_container_0_Template, 1, 0, "ng-container", 29);
|
817
|
-
} if (rf & 2) {
|
818
|
-
const scrollerOptions_r17 = ctx.options;
|
819
|
-
const ctx_r1 = i0.ɵɵnextContext(4);
|
820
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.loaderTemplate || ctx_r1._loaderTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c34, scrollerOptions_r17));
|
821
|
-
} }
|
822
|
-
function MultiSelect_ng_template_14_p_scroller_6_ng_container_4_Template(rf, ctx) { if (rf & 1) {
|
823
|
-
i0.ɵɵelementContainerStart(0);
|
824
|
-
i0.ɵɵtemplate(1, MultiSelect_ng_template_14_p_scroller_6_ng_container_4_ng_template_1_Template, 1, 4, "ng-template", null, 14, i0.ɵɵtemplateRefExtractor);
|
825
|
-
i0.ɵɵelementContainerEnd();
|
826
|
-
} }
|
827
|
-
function MultiSelect_ng_template_14_p_scroller_6_Template(rf, ctx) { if (rf & 1) {
|
828
|
-
const _r13 = i0.ɵɵgetCurrentView();
|
829
|
-
i0.ɵɵelementStart(0, "p-scroller", 56, 13);
|
830
|
-
i0.ɵɵlistener("onLazyLoad", function MultiSelect_ng_template_14_p_scroller_6_Template_p_scroller_onLazyLoad_0_listener($event) { i0.ɵɵrestoreView(_r13); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onLazyLoad.emit($event)); });
|
831
|
-
i0.ɵɵtemplate(2, MultiSelect_ng_template_14_p_scroller_6_ng_template_2_Template, 1, 5, "ng-template", null, 3, i0.ɵɵtemplateRefExtractor)(4, MultiSelect_ng_template_14_p_scroller_6_ng_container_4_Template, 3, 0, "ng-container", 20);
|
832
|
-
i0.ɵɵelementEnd();
|
833
|
-
} if (rf & 2) {
|
834
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
835
|
-
i0.ɵɵstyleMap(i0.ɵɵpureFunction1(9, _c0, ctx_r1.scrollHeight));
|
836
|
-
i0.ɵɵproperty("items", ctx_r1.visibleOptions())("itemSize", ctx_r1.virtualScrollItemSize || ctx_r1._itemSize)("autoSize", true)("tabindex", -1)("lazy", ctx_r1.lazy)("options", ctx_r1.virtualScrollOptions);
|
837
|
-
i0.ɵɵadvance(4);
|
838
|
-
i0.ɵɵproperty("ngIf", ctx_r1.loaderTemplate || ctx_r1._loaderTemplate);
|
839
|
-
} }
|
840
|
-
function MultiSelect_ng_template_14_ng_container_7_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
841
|
-
i0.ɵɵelementContainer(0);
|
842
|
-
} }
|
843
|
-
function MultiSelect_ng_template_14_ng_container_7_Template(rf, ctx) { if (rf & 1) {
|
844
|
-
i0.ɵɵelementContainerStart(0);
|
845
|
-
i0.ɵɵtemplate(1, MultiSelect_ng_template_14_ng_container_7_ng_container_1_Template, 1, 0, "ng-container", 29);
|
846
|
-
i0.ɵɵelementContainerEnd();
|
847
|
-
} if (rf & 2) {
|
848
|
-
i0.ɵɵnextContext();
|
849
|
-
const buildInItems_r16 = i0.ɵɵreference(9);
|
850
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
851
|
-
i0.ɵɵadvance();
|
852
|
-
i0.ɵɵproperty("ngTemplateOutlet", buildInItems_r16)("ngTemplateOutletContext", i0.ɵɵpureFunction2(3, _c36, ctx_r1.visibleOptions(), i0.ɵɵpureFunction0(2, _c37)));
|
853
|
-
} }
|
854
|
-
function MultiSelect_ng_template_14_ng_template_8_ng_template_2_ng_container_0_span_2_Template(rf, ctx) { if (rf & 1) {
|
855
|
-
i0.ɵɵelementStart(0, "span");
|
856
|
-
i0.ɵɵtext(1);
|
857
|
-
i0.ɵɵelementEnd();
|
858
|
-
} if (rf & 2) {
|
859
|
-
const option_r18 = i0.ɵɵnextContext(2).$implicit;
|
860
|
-
const ctx_r1 = i0.ɵɵnextContext(3);
|
861
|
-
i0.ɵɵadvance();
|
862
|
-
i0.ɵɵtextInterpolate(ctx_r1.getOptionGroupLabel(option_r18.optionGroup));
|
863
|
-
} }
|
864
|
-
function MultiSelect_ng_template_14_ng_template_8_ng_template_2_ng_container_0_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
865
|
-
i0.ɵɵelementContainer(0);
|
866
|
-
} }
|
867
|
-
function MultiSelect_ng_template_14_ng_template_8_ng_template_2_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
868
|
-
i0.ɵɵelementContainerStart(0);
|
869
|
-
i0.ɵɵelementStart(1, "li", 60);
|
870
|
-
i0.ɵɵtemplate(2, MultiSelect_ng_template_14_ng_template_8_ng_template_2_ng_container_0_span_2_Template, 2, 1, "span", 20)(3, MultiSelect_ng_template_14_ng_template_8_ng_template_2_ng_container_0_ng_container_3_Template, 1, 0, "ng-container", 29);
|
871
|
-
i0.ɵɵelementEnd();
|
872
|
-
i0.ɵɵelementContainerEnd();
|
873
|
-
} if (rf & 2) {
|
874
|
-
const ctx_r18 = i0.ɵɵnextContext();
|
875
|
-
const option_r18 = ctx_r18.$implicit;
|
876
|
-
const i_r20 = ctx_r18.index;
|
877
|
-
const scrollerOptions_r21 = i0.ɵɵnextContext().options;
|
878
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
879
|
-
i0.ɵɵadvance();
|
880
|
-
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(5, _c0, scrollerOptions_r21.itemSize + "px"));
|
881
|
-
i0.ɵɵattribute("id", ctx_r1.id + "_" + ctx_r1.getOptionIndex(i_r20, scrollerOptions_r21));
|
882
|
-
i0.ɵɵadvance();
|
883
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.groupTemplate);
|
884
|
-
i0.ɵɵadvance();
|
885
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.groupTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(7, _c2, option_r18.optionGroup));
|
886
|
-
} }
|
887
|
-
function MultiSelect_ng_template_14_ng_template_8_ng_template_2_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
888
|
-
const _r22 = i0.ɵɵgetCurrentView();
|
889
|
-
i0.ɵɵelementContainerStart(0);
|
890
|
-
i0.ɵɵelementStart(1, "p-multiselect-item", 61);
|
891
|
-
i0.ɵɵlistener("onClick", function MultiSelect_ng_template_14_ng_template_8_ng_template_2_ng_container_1_Template_p_multiselect_item_onClick_1_listener($event) { i0.ɵɵrestoreView(_r22); const i_r20 = i0.ɵɵnextContext().index; const scrollerOptions_r21 = i0.ɵɵnextContext().options; const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onOptionSelect($event, false, ctx_r1.getOptionIndex(i_r20, scrollerOptions_r21))); })("onMouseEnter", function MultiSelect_ng_template_14_ng_template_8_ng_template_2_ng_container_1_Template_p_multiselect_item_onMouseEnter_1_listener($event) { i0.ɵɵrestoreView(_r22); const i_r20 = i0.ɵɵnextContext().index; const scrollerOptions_r21 = i0.ɵɵnextContext().options; const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onOptionMouseEnter($event, ctx_r1.getOptionIndex(i_r20, scrollerOptions_r21))); });
|
892
|
-
i0.ɵɵelementEnd();
|
893
|
-
i0.ɵɵelementContainerEnd();
|
894
|
-
} if (rf & 2) {
|
895
|
-
const ctx_r18 = i0.ɵɵnextContext();
|
896
|
-
const option_r18 = ctx_r18.$implicit;
|
897
|
-
const i_r20 = ctx_r18.index;
|
898
|
-
const scrollerOptions_r21 = i0.ɵɵnextContext().options;
|
899
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
900
|
-
i0.ɵɵadvance();
|
901
|
-
i0.ɵɵproperty("id", ctx_r1.id + "_" + ctx_r1.getOptionIndex(i_r20, scrollerOptions_r21))("option", option_r18)("selected", ctx_r1.isSelected(option_r18))("label", ctx_r1.getOptionLabel(option_r18))("disabled", ctx_r1.isOptionDisabled(option_r18))("template", ctx_r1.itemTemplate || ctx_r1._itemTemplate)("checkIconTemplate", ctx_r1.checkIconTemplate || ctx_r1._checkIconTemplate)("itemCheckboxIconTemplate", ctx_r1.itemCheckboxIconTemplate || ctx_r1._itemCheckboxIconTemplate)("itemSize", scrollerOptions_r21.itemSize)("focused", ctx_r1.focusedOptionIndex() === ctx_r1.getOptionIndex(i_r20, scrollerOptions_r21))("ariaPosInset", ctx_r1.getAriaPosInset(ctx_r1.getOptionIndex(i_r20, scrollerOptions_r21)))("ariaSetSize", ctx_r1.ariaSetSize)("variant", ctx_r1.variant);
|
902
|
-
} }
|
903
|
-
function MultiSelect_ng_template_14_ng_template_8_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
904
|
-
i0.ɵɵtemplate(0, MultiSelect_ng_template_14_ng_template_8_ng_template_2_ng_container_0_Template, 4, 9, "ng-container", 20)(1, MultiSelect_ng_template_14_ng_template_8_ng_template_2_ng_container_1_Template, 2, 13, "ng-container", 20);
|
905
|
-
} if (rf & 2) {
|
906
|
-
const option_r18 = ctx.$implicit;
|
907
|
-
const ctx_r1 = i0.ɵɵnextContext(3);
|
908
|
-
i0.ɵɵproperty("ngIf", ctx_r1.isOptionGroup(option_r18));
|
909
|
-
i0.ɵɵadvance();
|
910
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.isOptionGroup(option_r18));
|
911
|
-
} }
|
912
|
-
function MultiSelect_ng_template_14_ng_template_8_li_3_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
913
|
-
i0.ɵɵtext(0);
|
914
|
-
} if (rf & 2) {
|
915
|
-
const ctx_r1 = i0.ɵɵnextContext(4);
|
916
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r1.emptyFilterMessageLabel, " ");
|
917
|
-
} }
|
918
|
-
function MultiSelect_ng_template_14_ng_template_8_li_3_Conditional_2_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
919
|
-
i0.ɵɵelementContainer(0);
|
920
|
-
} }
|
921
|
-
function MultiSelect_ng_template_14_ng_template_8_li_3_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
922
|
-
i0.ɵɵtemplate(0, MultiSelect_ng_template_14_ng_template_8_li_3_Conditional_2_ng_container_0_Template, 1, 0, "ng-container", 32);
|
923
|
-
} if (rf & 2) {
|
924
|
-
const ctx_r1 = i0.ɵɵnextContext(4);
|
925
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.emptyFilterTemplate || ctx_r1._emptyFilterTemplate || ctx_r1.emptyTemplate || ctx_r1._emptyFilterTemplate);
|
926
|
-
} }
|
927
|
-
function MultiSelect_ng_template_14_ng_template_8_li_3_Template(rf, ctx) { if (rf & 1) {
|
928
|
-
i0.ɵɵelementStart(0, "li", 62);
|
929
|
-
i0.ɵɵtemplate(1, MultiSelect_ng_template_14_ng_template_8_li_3_Conditional_1_Template, 1, 1)(2, MultiSelect_ng_template_14_ng_template_8_li_3_Conditional_2_Template, 1, 1, "ng-container");
|
930
|
-
i0.ɵɵelementEnd();
|
931
|
-
} if (rf & 2) {
|
932
|
-
const scrollerOptions_r21 = i0.ɵɵnextContext().options;
|
933
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
934
|
-
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(2, _c0, scrollerOptions_r21.itemSize + "px"));
|
935
|
-
i0.ɵɵadvance();
|
936
|
-
i0.ɵɵconditional(!ctx_r1.emptyFilterTemplate && !ctx_r1._emptyFilterTemplate && !ctx_r1.emptyTemplate && !ctx_r1._emptyTemplate ? 1 : 2);
|
937
|
-
} }
|
938
|
-
function MultiSelect_ng_template_14_ng_template_8_li_4_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
939
|
-
i0.ɵɵtext(0);
|
940
|
-
} if (rf & 2) {
|
941
|
-
const ctx_r1 = i0.ɵɵnextContext(4);
|
942
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r1.emptyMessageLabel, " ");
|
943
|
-
} }
|
944
|
-
function MultiSelect_ng_template_14_ng_template_8_li_4_Conditional_2_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
945
|
-
i0.ɵɵelementContainer(0);
|
946
|
-
} }
|
947
|
-
function MultiSelect_ng_template_14_ng_template_8_li_4_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
948
|
-
i0.ɵɵtemplate(0, MultiSelect_ng_template_14_ng_template_8_li_4_Conditional_2_ng_container_0_Template, 1, 0, "ng-container", 32);
|
949
|
-
} if (rf & 2) {
|
950
|
-
const ctx_r1 = i0.ɵɵnextContext(4);
|
951
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.emptyTemplate || ctx_r1._emptyTemplate);
|
952
|
-
} }
|
953
|
-
function MultiSelect_ng_template_14_ng_template_8_li_4_Template(rf, ctx) { if (rf & 1) {
|
954
|
-
i0.ɵɵelementStart(0, "li", 62);
|
955
|
-
i0.ɵɵtemplate(1, MultiSelect_ng_template_14_ng_template_8_li_4_Conditional_1_Template, 1, 1)(2, MultiSelect_ng_template_14_ng_template_8_li_4_Conditional_2_Template, 1, 1, "ng-container");
|
956
|
-
i0.ɵɵelementEnd();
|
957
|
-
} if (rf & 2) {
|
958
|
-
const scrollerOptions_r21 = i0.ɵɵnextContext().options;
|
959
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
960
|
-
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(2, _c0, scrollerOptions_r21.itemSize + "px"));
|
961
|
-
i0.ɵɵadvance();
|
962
|
-
i0.ɵɵconditional(!ctx_r1.emptyTemplate && !ctx_r1._emptyTemplate ? 1 : 2);
|
963
|
-
} }
|
964
|
-
function MultiSelect_ng_template_14_ng_template_8_Template(rf, ctx) { if (rf & 1) {
|
965
|
-
i0.ɵɵelementStart(0, "ul", 57, 15);
|
966
|
-
i0.ɵɵtemplate(2, MultiSelect_ng_template_14_ng_template_8_ng_template_2_Template, 2, 2, "ng-template", 58)(3, MultiSelect_ng_template_14_ng_template_8_li_3_Template, 3, 4, "li", 59)(4, MultiSelect_ng_template_14_ng_template_8_li_4_Template, 3, 4, "li", 59);
|
967
|
-
i0.ɵɵelementEnd();
|
968
|
-
} if (rf & 2) {
|
969
|
-
const items_r23 = ctx.$implicit;
|
970
|
-
const scrollerOptions_r21 = ctx.options;
|
971
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
972
|
-
i0.ɵɵstyleMap(scrollerOptions_r21.contentStyle);
|
973
|
-
i0.ɵɵproperty("ngClass", scrollerOptions_r21.contentStyleClass);
|
974
|
-
i0.ɵɵattribute("aria-label", ctx_r1.listLabel);
|
975
|
-
i0.ɵɵadvance(2);
|
976
|
-
i0.ɵɵproperty("ngForOf", items_r23);
|
977
|
-
i0.ɵɵadvance();
|
978
|
-
i0.ɵɵproperty("ngIf", ctx_r1.hasFilter() && ctx_r1.isEmpty());
|
979
|
-
i0.ɵɵadvance();
|
980
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.hasFilter() && ctx_r1.isEmpty());
|
981
|
-
} }
|
982
|
-
function MultiSelect_ng_template_14_div_10_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
983
|
-
i0.ɵɵelementContainer(0);
|
984
|
-
} }
|
985
|
-
function MultiSelect_ng_template_14_div_10_Template(rf, ctx) { if (rf & 1) {
|
986
|
-
i0.ɵɵelementStart(0, "div");
|
987
|
-
i0.ɵɵprojection(1, 1);
|
988
|
-
i0.ɵɵtemplate(2, MultiSelect_ng_template_14_div_10_ng_container_2_Template, 1, 0, "ng-container", 32);
|
989
|
-
i0.ɵɵelementEnd();
|
990
|
-
} if (rf & 2) {
|
991
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
992
|
-
i0.ɵɵadvance(2);
|
993
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.footerTemplate || ctx_r1._footerTemplate);
|
994
|
-
} }
|
995
|
-
function MultiSelect_ng_template_14_Template(rf, ctx) { if (rf & 1) {
|
996
|
-
const _r8 = i0.ɵɵgetCurrentView();
|
997
|
-
i0.ɵɵelementStart(0, "div", 43)(1, "span", 44, 6);
|
998
|
-
i0.ɵɵlistener("focus", function MultiSelect_ng_template_14_Template_span_focus_1_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onFirstHiddenFocus($event)); });
|
999
|
-
i0.ɵɵelementEnd();
|
1000
|
-
i0.ɵɵtemplate(3, MultiSelect_ng_template_14_ng_container_3_Template, 1, 0, "ng-container", 32)(4, MultiSelect_ng_template_14_div_4_Template, 5, 2, "div", 45);
|
1001
|
-
i0.ɵɵelementStart(5, "div", 46);
|
1002
|
-
i0.ɵɵtemplate(6, MultiSelect_ng_template_14_p_scroller_6_Template, 5, 11, "p-scroller", 47)(7, MultiSelect_ng_template_14_ng_container_7_Template, 2, 6, "ng-container", 20)(8, MultiSelect_ng_template_14_ng_template_8_Template, 5, 7, "ng-template", null, 7, i0.ɵɵtemplateRefExtractor);
|
1003
|
-
i0.ɵɵelementEnd();
|
1004
|
-
i0.ɵɵtemplate(10, MultiSelect_ng_template_14_div_10_Template, 3, 1, "div", 20);
|
1005
|
-
i0.ɵɵelementStart(11, "span", 44, 8);
|
1006
|
-
i0.ɵɵlistener("focus", function MultiSelect_ng_template_14_Template_span_focus_11_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onLastHiddenFocus($event)); });
|
1007
|
-
i0.ɵɵelementEnd()();
|
1008
|
-
} if (rf & 2) {
|
1009
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
1010
|
-
i0.ɵɵclassMap(ctx_r1.panelStyleClass);
|
1011
|
-
i0.ɵɵproperty("ngClass", "p-multiselect-overlay p-component")("ngStyle", ctx_r1.panelStyle);
|
1012
|
-
i0.ɵɵattribute("id", ctx_r1.id + "_list");
|
1013
|
-
i0.ɵɵadvance();
|
1014
|
-
i0.ɵɵattribute("tabindex", 0)("data-p-hidden-accessible", true)("data-p-hidden-focusable", true);
|
1015
|
-
i0.ɵɵadvance(2);
|
1016
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r1.headerTemplate || ctx_r1._headerTemplate);
|
1017
|
-
i0.ɵɵadvance();
|
1018
|
-
i0.ɵɵproperty("ngIf", ctx_r1.showHeader);
|
1019
|
-
i0.ɵɵadvance();
|
1020
|
-
i0.ɵɵstyleProp("max-height", ctx_r1.virtualScroll ? "auto" : ctx_r1.scrollHeight || "auto");
|
1021
|
-
i0.ɵɵadvance();
|
1022
|
-
i0.ɵɵproperty("ngIf", ctx_r1.virtualScroll);
|
1023
|
-
i0.ɵɵadvance();
|
1024
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.virtualScroll);
|
1025
|
-
i0.ɵɵadvance(3);
|
1026
|
-
i0.ɵɵproperty("ngIf", ctx_r1.footerFacet || ctx_r1.footerTemplate || ctx_r1._footerTemplate);
|
1027
|
-
i0.ɵɵadvance();
|
1028
|
-
i0.ɵɵattribute("tabindex", 0)("data-p-hidden-accessible", true)("data-p-hidden-focusable", true);
|
1029
|
-
} }
|
1030
396
|
const MULTISELECT_VALUE_ACCESSOR = {
|
1031
397
|
provide: NG_VALUE_ACCESSOR,
|
1032
398
|
useExisting: forwardRef(() => MultiSelect),
|
@@ -1064,35 +430,48 @@ class MultiSelectItem extends BaseComponent {
|
|
1064
430
|
selected: this.selected
|
1065
431
|
});
|
1066
432
|
}
|
1067
|
-
static ɵfac =
|
1068
|
-
static ɵcmp =
|
1069
|
-
|
1070
|
-
|
1071
|
-
|
1072
|
-
|
1073
|
-
|
1074
|
-
|
1075
|
-
|
1076
|
-
|
1077
|
-
|
1078
|
-
|
1079
|
-
|
1080
|
-
|
1081
|
-
|
1082
|
-
|
1083
|
-
|
1084
|
-
|
1085
|
-
|
1086
|
-
|
1087
|
-
|
433
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: MultiSelectItem, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
434
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "19.1.7", type: MultiSelectItem, isStandalone: true, selector: "p-multiSelectItem, p-multiselect-item", inputs: { id: "id", option: "option", selected: ["selected", "selected", booleanAttribute], label: "label", disabled: ["disabled", "disabled", booleanAttribute], itemSize: ["itemSize", "itemSize", numberAttribute], focused: ["focused", "focused", booleanAttribute], ariaPosInset: "ariaPosInset", ariaSetSize: "ariaSetSize", variant: "variant", template: "template", checkIconTemplate: "checkIconTemplate", itemCheckboxIconTemplate: "itemCheckboxIconTemplate" }, outputs: { onClick: "onClick", onMouseEnter: "onMouseEnter" }, usesInheritance: true, ngImport: i0, template: `
|
435
|
+
<li
|
436
|
+
pRipple
|
437
|
+
role="option"
|
438
|
+
[ngStyle]="{ height: itemSize + 'px' }"
|
439
|
+
[ngClass]="{
|
440
|
+
'p-multiselect-option': true,
|
441
|
+
'p-disabled': disabled,
|
442
|
+
'p-focus': focused
|
443
|
+
}"
|
444
|
+
[id]="id"
|
445
|
+
[attr.aria-label]="label"
|
446
|
+
[attr.aria-setsize]="ariaSetSize"
|
447
|
+
[attr.aria-posinset]="ariaPosInset"
|
448
|
+
[attr.aria-selected]="selected"
|
449
|
+
[attr.data-p-focused]="focused"
|
450
|
+
[attr.data-p-highlight]="selected"
|
451
|
+
[attr.data-p-disabled]="disabled"
|
452
|
+
[attr.aria-checked]="selected"
|
453
|
+
(click)="onOptionClick($event)"
|
454
|
+
(mouseenter)="onOptionMouseEnter($event)"
|
455
|
+
>
|
456
|
+
<p-checkbox [ngModel]="selected" [binary]="true" [tabindex]="-1" [variant]="variant" [ariaLabel]="label">
|
457
|
+
<ng-container *ngIf="itemCheckboxIconTemplate">
|
458
|
+
<ng-template #icon let-klass="class">
|
459
|
+
<ng-template *ngTemplateOutlet="itemCheckboxIconTemplate; context: { checked: selected, class: klass }"></ng-template>
|
460
|
+
</ng-template>
|
461
|
+
</ng-container>
|
462
|
+
</p-checkbox>
|
463
|
+
<span *ngIf="!template">{{ label ?? 'empty' }}</span>
|
464
|
+
<ng-container *ngTemplateOutlet="template; context: { $implicit: option }"></ng-container>
|
465
|
+
</li>
|
466
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { 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: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: Ripple, selector: "[pRipple]" }, { kind: "ngmodule", type: SharedModule }], encapsulation: i0.ViewEncapsulation.None });
|
1088
467
|
}
|
1089
|
-
(
|
1090
|
-
|
1091
|
-
|
1092
|
-
|
1093
|
-
|
1094
|
-
|
1095
|
-
|
468
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: MultiSelectItem, decorators: [{
|
469
|
+
type: Component,
|
470
|
+
args: [{
|
471
|
+
selector: 'p-multiSelectItem, p-multiselect-item',
|
472
|
+
standalone: true,
|
473
|
+
imports: [CommonModule, Checkbox, FormsModule, Ripple, SharedModule],
|
474
|
+
template: `
|
1096
475
|
<li
|
1097
476
|
pRipple
|
1098
477
|
role="option"
|
@@ -1125,44 +504,43 @@ class MultiSelectItem extends BaseComponent {
|
|
1125
504
|
<ng-container *ngTemplateOutlet="template; context: { $implicit: option }"></ng-container>
|
1126
505
|
</li>
|
1127
506
|
`,
|
1128
|
-
|
1129
|
-
|
1130
|
-
|
1131
|
-
|
1132
|
-
|
1133
|
-
|
1134
|
-
|
1135
|
-
|
1136
|
-
|
1137
|
-
|
1138
|
-
|
1139
|
-
|
1140
|
-
|
1141
|
-
|
1142
|
-
|
1143
|
-
|
1144
|
-
|
1145
|
-
|
1146
|
-
|
1147
|
-
|
1148
|
-
|
1149
|
-
|
1150
|
-
|
1151
|
-
|
1152
|
-
|
1153
|
-
|
1154
|
-
|
1155
|
-
|
1156
|
-
|
1157
|
-
|
1158
|
-
|
1159
|
-
|
1160
|
-
|
1161
|
-
|
1162
|
-
|
1163
|
-
|
1164
|
-
|
1165
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MultiSelectItem, { className: "MultiSelectItem", filePath: "multiselect.ts", lineNumber: 115 }); })();
|
507
|
+
encapsulation: ViewEncapsulation.None
|
508
|
+
}]
|
509
|
+
}], propDecorators: { id: [{
|
510
|
+
type: Input
|
511
|
+
}], option: [{
|
512
|
+
type: Input
|
513
|
+
}], selected: [{
|
514
|
+
type: Input,
|
515
|
+
args: [{ transform: booleanAttribute }]
|
516
|
+
}], label: [{
|
517
|
+
type: Input
|
518
|
+
}], disabled: [{
|
519
|
+
type: Input,
|
520
|
+
args: [{ transform: booleanAttribute }]
|
521
|
+
}], itemSize: [{
|
522
|
+
type: Input,
|
523
|
+
args: [{ transform: numberAttribute }]
|
524
|
+
}], focused: [{
|
525
|
+
type: Input,
|
526
|
+
args: [{ transform: booleanAttribute }]
|
527
|
+
}], ariaPosInset: [{
|
528
|
+
type: Input
|
529
|
+
}], ariaSetSize: [{
|
530
|
+
type: Input
|
531
|
+
}], variant: [{
|
532
|
+
type: Input
|
533
|
+
}], template: [{
|
534
|
+
type: Input
|
535
|
+
}], checkIconTemplate: [{
|
536
|
+
type: Input
|
537
|
+
}], itemCheckboxIconTemplate: [{
|
538
|
+
type: Input
|
539
|
+
}], onClick: [{
|
540
|
+
type: Output
|
541
|
+
}], onMouseEnter: [{
|
542
|
+
type: Output
|
543
|
+
}] } });
|
1166
544
|
// @ts-ignore
|
1167
545
|
/**
|
1168
546
|
* MultiSelect is used to select multiple items from a collection.
|
@@ -1549,8 +927,7 @@ class MultiSelect extends BaseComponent {
|
|
1549
927
|
* @group Props
|
1550
928
|
*/
|
1551
929
|
get options() {
|
1552
|
-
|
1553
|
-
return options;
|
930
|
+
return this._options();
|
1554
931
|
}
|
1555
932
|
set options(val) {
|
1556
933
|
if (!deepEquals(this._options(), val)) {
|
@@ -1646,11 +1023,13 @@ class MultiSelect extends BaseComponent {
|
|
1646
1023
|
onClear = new EventEmitter();
|
1647
1024
|
/**
|
1648
1025
|
* Callback to invoke when overlay panel becomes visible.
|
1026
|
+
* @param {AnimationEvent} event - Animation event.
|
1649
1027
|
* @group Emits
|
1650
1028
|
*/
|
1651
1029
|
onPanelShow = new EventEmitter();
|
1652
1030
|
/**
|
1653
1031
|
* Callback to invoke when overlay panel becomes hidden.
|
1032
|
+
* @param {AnimationEvent} event - Animation event.
|
1654
1033
|
* @group Emits
|
1655
1034
|
*/
|
1656
1035
|
onPanelHide = new EventEmitter();
|
@@ -1876,7 +1255,7 @@ class MultiSelect extends BaseComponent {
|
|
1876
1255
|
}
|
1877
1256
|
visibleOptions = computed(() => {
|
1878
1257
|
const options = this.getAllVisibleAndNonVisibleOptions();
|
1879
|
-
const isArrayOfObjects = isArray(options) && isObject(options[0]);
|
1258
|
+
const isArrayOfObjects = isArray(options) && ObjectUtils.isObject(options[0]);
|
1880
1259
|
if (this._filterValue()) {
|
1881
1260
|
let filteredOptions;
|
1882
1261
|
if (isArrayOfObjects) {
|
@@ -1935,10 +1314,10 @@ class MultiSelect extends BaseComponent {
|
|
1935
1314
|
this.overlayService = overlayService;
|
1936
1315
|
effect(() => {
|
1937
1316
|
const modelValue = this.modelValue();
|
1938
|
-
const
|
1939
|
-
if (
|
1317
|
+
const allVisibleAndNonVisibleOptions = this.getAllVisibleAndNonVisibleOptions();
|
1318
|
+
if (allVisibleAndNonVisibleOptions && isNotEmpty(allVisibleAndNonVisibleOptions)) {
|
1940
1319
|
if (this.optionValue && this.optionLabel && modelValue) {
|
1941
|
-
this.selectedOptions =
|
1320
|
+
this.selectedOptions = allVisibleAndNonVisibleOptions.filter((option) => modelValue.includes(option[this.optionLabel]) || modelValue.includes(option[this.optionValue]));
|
1942
1321
|
}
|
1943
1322
|
else {
|
1944
1323
|
this.selectedOptions = modelValue;
|
@@ -2335,6 +1714,7 @@ class MultiSelect extends BaseComponent {
|
|
2335
1714
|
}
|
2336
1715
|
onEscapeKey(event) {
|
2337
1716
|
this.overlayVisible && this.hide(true);
|
1717
|
+
event.stopPropagation();
|
2338
1718
|
event.preventDefault();
|
2339
1719
|
}
|
2340
1720
|
onDeleteKey(event) {
|
@@ -2552,39 +1932,38 @@ class MultiSelect extends BaseComponent {
|
|
2552
1932
|
unblockBodyScroll();
|
2553
1933
|
}
|
2554
1934
|
isFocus && focus(this.focusInputViewChild?.nativeElement);
|
2555
|
-
this.onPanelHide.emit();
|
2556
1935
|
this.cd.markForCheck();
|
2557
1936
|
}
|
2558
1937
|
onOverlayAnimationStart(event) {
|
2559
|
-
|
2560
|
-
|
2561
|
-
|
2562
|
-
|
2563
|
-
if (this.
|
2564
|
-
|
2565
|
-
|
2566
|
-
|
2567
|
-
this.scroller?.scrollToIndex(selectedIndex);
|
2568
|
-
}
|
2569
|
-
}
|
2570
|
-
else {
|
2571
|
-
let selectedListItem = findSingle(this.itemsWrapper, '[data-p-highlight="true"]');
|
2572
|
-
if (selectedListItem) {
|
2573
|
-
selectedListItem.scrollIntoView({ block: 'nearest', inline: 'nearest' });
|
2574
|
-
}
|
1938
|
+
if (event.toState === 'visible') {
|
1939
|
+
this.itemsWrapper = findSingle(this.overlayViewChild?.overlayViewChild?.nativeElement, this.virtualScroll ? '.p-scroller' : '.p-multiselect-list-container');
|
1940
|
+
this.virtualScroll && this.scroller?.setContentEl(this.itemsViewChild?.nativeElement);
|
1941
|
+
if (this.options && this.options.length) {
|
1942
|
+
if (this.virtualScroll) {
|
1943
|
+
const selectedIndex = this.modelValue() ? this.focusedOptionIndex() : -1;
|
1944
|
+
if (selectedIndex !== -1) {
|
1945
|
+
this.scroller?.scrollToIndex(selectedIndex);
|
2575
1946
|
}
|
2576
1947
|
}
|
2577
|
-
|
2578
|
-
this.
|
2579
|
-
if (
|
2580
|
-
|
1948
|
+
else {
|
1949
|
+
let selectedListItem = findSingle(this.itemsWrapper, '[data-p-highlight="true"]');
|
1950
|
+
if (selectedListItem) {
|
1951
|
+
selectedListItem.scrollIntoView({ block: 'nearest', inline: 'nearest' });
|
2581
1952
|
}
|
2582
1953
|
}
|
2583
|
-
|
2584
|
-
|
2585
|
-
this.
|
2586
|
-
this.
|
2587
|
-
|
1954
|
+
}
|
1955
|
+
if (this.filterInputChild && this.filterInputChild.nativeElement) {
|
1956
|
+
this.preventModelTouched = true;
|
1957
|
+
if (this.autofocusFilter) {
|
1958
|
+
this.filterInputChild.nativeElement.focus();
|
1959
|
+
}
|
1960
|
+
}
|
1961
|
+
this.onPanelShow.emit(event);
|
1962
|
+
}
|
1963
|
+
if (event.toState === 'void') {
|
1964
|
+
this.itemsWrapper = null;
|
1965
|
+
this.onModelTouched();
|
1966
|
+
this.onPanelHide.emit(event);
|
2588
1967
|
}
|
2589
1968
|
}
|
2590
1969
|
resetFilter() {
|
@@ -2723,129 +2102,277 @@ class MultiSelect extends BaseComponent {
|
|
2723
2102
|
hasFilter() {
|
2724
2103
|
return this._filterValue() && this._filterValue().trim().length > 0;
|
2725
2104
|
}
|
2726
|
-
static ɵfac =
|
2727
|
-
static ɵcmp =
|
2728
|
-
|
2729
|
-
|
2730
|
-
|
2731
|
-
|
2732
|
-
|
2733
|
-
|
2734
|
-
|
2735
|
-
|
2736
|
-
|
2737
|
-
|
2738
|
-
|
2739
|
-
|
2740
|
-
|
2741
|
-
|
2742
|
-
|
2743
|
-
|
2744
|
-
|
2745
|
-
|
2746
|
-
|
2747
|
-
|
2748
|
-
|
2749
|
-
|
2750
|
-
|
2751
|
-
|
2752
|
-
|
2753
|
-
|
2754
|
-
|
2755
|
-
|
2756
|
-
|
2757
|
-
|
2758
|
-
|
2759
|
-
|
2760
|
-
|
2761
|
-
|
2762
|
-
|
2763
|
-
|
2764
|
-
|
2765
|
-
|
2766
|
-
|
2767
|
-
|
2768
|
-
|
2769
|
-
|
2770
|
-
|
2771
|
-
|
2772
|
-
|
2773
|
-
|
2774
|
-
|
2775
|
-
|
2776
|
-
|
2777
|
-
|
2778
|
-
|
2779
|
-
|
2780
|
-
|
2781
|
-
|
2782
|
-
|
2783
|
-
|
2784
|
-
|
2785
|
-
|
2786
|
-
|
2787
|
-
|
2788
|
-
|
2789
|
-
|
2790
|
-
|
2791
|
-
|
2792
|
-
|
2793
|
-
|
2794
|
-
|
2795
|
-
|
2796
|
-
|
2797
|
-
|
2798
|
-
|
2799
|
-
|
2800
|
-
|
2801
|
-
|
2802
|
-
|
2803
|
-
|
2804
|
-
|
2805
|
-
|
2806
|
-
|
2807
|
-
|
2808
|
-
|
2809
|
-
|
2810
|
-
|
2811
|
-
|
2812
|
-
|
2813
|
-
|
2814
|
-
|
2815
|
-
|
2816
|
-
|
2817
|
-
|
2818
|
-
|
2819
|
-
|
2820
|
-
|
2821
|
-
|
2822
|
-
|
2823
|
-
|
2824
|
-
|
2825
|
-
|
2826
|
-
|
2827
|
-
|
2828
|
-
|
2829
|
-
|
2830
|
-
|
2831
|
-
|
2832
|
-
|
2833
|
-
|
2834
|
-
|
2835
|
-
|
2836
|
-
|
2837
|
-
|
2838
|
-
|
2839
|
-
|
2840
|
-
|
2105
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: MultiSelect, deps: [{ token: i0.NgZone }, { token: i3.FilterService }, { token: i3.OverlayService }], target: i0.ɵɵFactoryTarget.Component });
|
2106
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.7", type: MultiSelect, isStandalone: true, selector: "p-multiSelect, p-multiselect, p-multi-select", inputs: { id: "id", ariaLabel: "ariaLabel", style: "style", styleClass: "styleClass", panelStyle: "panelStyle", panelStyleClass: "panelStyleClass", inputId: "inputId", disabled: ["disabled", "disabled", booleanAttribute], fluid: ["fluid", "fluid", booleanAttribute], readonly: ["readonly", "readonly", booleanAttribute], group: ["group", "group", booleanAttribute], filter: ["filter", "filter", booleanAttribute], filterPlaceHolder: "filterPlaceHolder", filterLocale: "filterLocale", overlayVisible: ["overlayVisible", "overlayVisible", booleanAttribute], tabindex: ["tabindex", "tabindex", numberAttribute], variant: "variant", appendTo: "appendTo", dataKey: "dataKey", name: "name", ariaLabelledBy: "ariaLabelledBy", displaySelectedLabel: "displaySelectedLabel", maxSelectedLabels: "maxSelectedLabels", selectionLimit: ["selectionLimit", "selectionLimit", numberAttribute], selectedItemsLabel: "selectedItemsLabel", showToggleAll: ["showToggleAll", "showToggleAll", booleanAttribute], emptyFilterMessage: "emptyFilterMessage", emptyMessage: "emptyMessage", resetFilterOnHide: ["resetFilterOnHide", "resetFilterOnHide", booleanAttribute], dropdownIcon: "dropdownIcon", chipIcon: "chipIcon", optionLabel: "optionLabel", optionValue: "optionValue", optionDisabled: "optionDisabled", optionGroupLabel: "optionGroupLabel", optionGroupChildren: "optionGroupChildren", showHeader: ["showHeader", "showHeader", booleanAttribute], filterBy: "filterBy", scrollHeight: "scrollHeight", lazy: ["lazy", "lazy", booleanAttribute], virtualScroll: ["virtualScroll", "virtualScroll", booleanAttribute], loading: ["loading", "loading", booleanAttribute], virtualScrollItemSize: ["virtualScrollItemSize", "virtualScrollItemSize", numberAttribute], loadingIcon: "loadingIcon", virtualScrollOptions: "virtualScrollOptions", overlayOptions: "overlayOptions", ariaFilterLabel: "ariaFilterLabel", filterMatchMode: "filterMatchMode", tooltip: "tooltip", tooltipPosition: "tooltipPosition", tooltipPositionStyle: "tooltipPositionStyle", tooltipStyleClass: "tooltipStyleClass", autofocusFilter: ["autofocusFilter", "autofocusFilter", booleanAttribute], display: "display", autocomplete: "autocomplete", size: "size", showClear: ["showClear", "showClear", booleanAttribute], autofocus: ["autofocus", "autofocus", booleanAttribute], autoZIndex: "autoZIndex", baseZIndex: "baseZIndex", showTransitionOptions: "showTransitionOptions", hideTransitionOptions: "hideTransitionOptions", defaultLabel: "defaultLabel", placeholder: "placeholder", options: "options", filterValue: "filterValue", itemSize: "itemSize", selectAll: "selectAll", focusOnHover: ["focusOnHover", "focusOnHover", booleanAttribute], filterFields: "filterFields", selectOnFocus: ["selectOnFocus", "selectOnFocus", booleanAttribute], autoOptionFocus: ["autoOptionFocus", "autoOptionFocus", booleanAttribute] }, outputs: { onChange: "onChange", onFilter: "onFilter", onFocus: "onFocus", onBlur: "onBlur", onClick: "onClick", onClear: "onClear", onPanelShow: "onPanelShow", onPanelHide: "onPanelHide", onLazyLoad: "onLazyLoad", onRemove: "onRemove", onSelectAllChange: "onSelectAllChange" }, host: { listeners: { "click": "onContainerClick($event)" }, properties: { "attr.id": "id", "style": "style", "class.p-variant-filled": "variant === \"filled\" || config.inputVariant() === \"filled\" || config.inputStyle() === \"filled\" ", "class": "this.hostClasses" } }, providers: [MULTISELECT_VALUE_ACCESSOR, MultiSelectStyle], queries: [{ propertyName: "footerFacet", first: true, predicate: Footer, descendants: true }, { propertyName: "headerFacet", first: true, predicate: Header, descendants: true }, { propertyName: "itemTemplate", first: true, predicate: ["item"] }, { propertyName: "groupTemplate", first: true, predicate: ["group"] }, { propertyName: "loaderTemplate", first: true, predicate: ["loader"] }, { 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: "selectedItemsTemplate", first: true, predicate: ["selecteditems"] }, { propertyName: "checkIconTemplate", first: true, predicate: ["checkicon"] }, { propertyName: "loadingIconTemplate", first: true, predicate: ["loadingicon"] }, { propertyName: "filterIconTemplate", first: true, predicate: ["filtericon"] }, { propertyName: "removeTokenIconTemplate", first: true, predicate: ["removetokenicon"] }, { propertyName: "chipIconTemplate", first: true, predicate: ["chipicon"] }, { propertyName: "clearIconTemplate", first: true, predicate: ["clearicon"] }, { propertyName: "dropdownIconTemplate", first: true, predicate: ["dropdownicon"] }, { propertyName: "itemCheckboxIconTemplate", first: true, predicate: ["itemcheckboxicon"] }, { propertyName: "headerCheckboxIconTemplate", first: true, predicate: ["headercheckboxicon"] }, { propertyName: "templates", predicate: PrimeTemplate }], viewQueries: [{ propertyName: "overlayViewChild", first: true, predicate: ["overlay"], descendants: true }, { propertyName: "filterInputChild", first: true, predicate: ["filterInput"], descendants: true }, { propertyName: "focusInputViewChild", first: true, predicate: ["focusInput"], descendants: true }, { propertyName: "itemsViewChild", first: true, predicate: ["items"], descendants: true }, { propertyName: "scroller", first: true, predicate: ["scroller"], descendants: true }, { propertyName: "lastHiddenFocusableElementOnOverlay", first: true, predicate: ["lastHiddenFocusableEl"], descendants: true }, { propertyName: "firstHiddenFocusableElementOnOverlay", first: true, predicate: ["firstHiddenFocusableEl"], descendants: true }, { propertyName: "headerCheckboxViewChild", first: true, predicate: ["headerCheckbox"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
2107
|
+
<div class="p-hidden-accessible" [attr.data-p-hidden-accessible]="true">
|
2108
|
+
<input
|
2109
|
+
#focusInput
|
2110
|
+
[pTooltip]="tooltip"
|
2111
|
+
[tooltipPosition]="tooltipPosition"
|
2112
|
+
[positionStyle]="tooltipPositionStyle"
|
2113
|
+
[tooltipStyleClass]="tooltipStyleClass"
|
2114
|
+
[attr.aria-disabled]="disabled"
|
2115
|
+
[attr.id]="inputId"
|
2116
|
+
role="combobox"
|
2117
|
+
[attr.aria-label]="ariaLabel"
|
2118
|
+
[attr.aria-labelledby]="ariaLabelledBy"
|
2119
|
+
[attr.aria-haspopup]="'listbox'"
|
2120
|
+
[attr.aria-expanded]="overlayVisible ?? false"
|
2121
|
+
[attr.aria-controls]="overlayVisible ? id + '_list' : null"
|
2122
|
+
[attr.tabindex]="!disabled ? tabindex : -1"
|
2123
|
+
[attr.aria-activedescendant]="focused ? focusedOptionId : undefined"
|
2124
|
+
(focus)="onInputFocus($event)"
|
2125
|
+
(blur)="onInputBlur($event)"
|
2126
|
+
(keydown)="onKeyDown($event)"
|
2127
|
+
[pAutoFocus]="autofocus"
|
2128
|
+
[attr.value]="label() || 'empty'"
|
2129
|
+
/>
|
2130
|
+
</div>
|
2131
|
+
<div
|
2132
|
+
class="p-multiselect-label-container"
|
2133
|
+
[pTooltip]="tooltip"
|
2134
|
+
(mouseleave)="labelContainerMouseLeave()"
|
2135
|
+
[tooltipDisabled]="_disableTooltip"
|
2136
|
+
[tooltipPosition]="tooltipPosition"
|
2137
|
+
[positionStyle]="tooltipPositionStyle"
|
2138
|
+
[tooltipStyleClass]="tooltipStyleClass"
|
2139
|
+
>
|
2140
|
+
<div [ngClass]="labelClass">
|
2141
|
+
<ng-container *ngIf="!selectedItemsTemplate && !_selectedItemsTemplate">
|
2142
|
+
<ng-container *ngIf="display === 'comma'">{{ label() || 'empty' }}</ng-container>
|
2143
|
+
<ng-container *ngIf="display === 'chip'">
|
2144
|
+
<div #token *ngFor="let item of chipSelectedItems(); let i = index" class="p-multiselect-chip-item">
|
2145
|
+
<p-chip styleClass="p-multiselect-chip" [label]="getLabelByValue(item)" [removable]="true" (onRemove)="removeOption(item, $event)" [removeIcon]="chipIcon">
|
2146
|
+
<ng-container *ngIf="chipIconTemplate || _chipIconTemplate || removeTokenIconTemplate || _removeTokenIconTemplate">
|
2147
|
+
<ng-template #removeicon>
|
2148
|
+
<ng-container *ngIf="!disabled">
|
2149
|
+
<span
|
2150
|
+
class="p-multiselect-chip-icon"
|
2151
|
+
*ngIf="chipIconTemplate || _chipIconTemplate || removeTokenIconTemplate || _removeTokenIconTemplate"
|
2152
|
+
(click)="removeOption(item, $event)"
|
2153
|
+
[attr.data-pc-section]="'clearicon'"
|
2154
|
+
[attr.aria-hidden]="true"
|
2155
|
+
>
|
2156
|
+
<ng-container *ngTemplateOutlet="chipIconTemplate || _chipIconTemplate || removeTokenIconTemplate || _removeTokenIconTemplate; context: { class: 'p-multiselect-chip-icon' }"></ng-container>
|
2157
|
+
</span>
|
2158
|
+
</ng-container>
|
2159
|
+
</ng-template>
|
2160
|
+
</ng-container>
|
2161
|
+
</p-chip>
|
2162
|
+
</div>
|
2163
|
+
<ng-container *ngIf="!modelValue() || modelValue().length === 0">{{ placeholder() || defaultLabel || 'empty' }}</ng-container>
|
2164
|
+
</ng-container>
|
2165
|
+
</ng-container>
|
2166
|
+
<ng-container *ngIf="selectedItemsTemplate || _selectedItemsTemplate">
|
2167
|
+
<ng-container *ngTemplateOutlet="selectedItemsTemplate || _selectedItemsTemplate; context: { $implicit: selectedOptions, removeChip: removeOption.bind(this) }"></ng-container>
|
2168
|
+
<ng-container *ngIf="!modelValue() || modelValue().length === 0">{{ placeholder() || defaultLabel || 'empty' }}</ng-container>
|
2169
|
+
</ng-container>
|
2170
|
+
</div>
|
2171
|
+
</div>
|
2172
|
+
<ng-container *ngIf="isVisibleClearIcon">
|
2173
|
+
<TimesIcon *ngIf="!clearIconTemplate && !_clearIconTemplate" class="p-multiselect-clear-icon" (click)="clear($event)" [attr.data-pc-section]="'clearicon'" [attr.aria-hidden]="true" />
|
2174
|
+
<span *ngIf="clearIconTemplate || _clearIconTemplate" class="p-multiselect-clear-icon" (click)="clear($event)" [attr.data-pc-section]="'clearicon'" [attr.aria-hidden]="true">
|
2175
|
+
<ng-template *ngTemplateOutlet="clearIconTemplate || _clearIconTemplate"></ng-template>
|
2176
|
+
</span>
|
2177
|
+
</ng-container>
|
2178
|
+
<div class="p-multiselect-dropdown">
|
2179
|
+
<ng-container *ngIf="loading; else elseBlock">
|
2180
|
+
<ng-container *ngIf="loadingIconTemplate || _loadingIconTemplate">
|
2181
|
+
<ng-container *ngTemplateOutlet="loadingIconTemplate || _loadingIconTemplate"></ng-container>
|
2182
|
+
</ng-container>
|
2183
|
+
<ng-container *ngIf="!loadingIconTemplate && !_loadingIconTemplate">
|
2184
|
+
<span *ngIf="loadingIcon" [ngClass]="'p-multiselect-loading-icon pi-spin ' + loadingIcon" aria-hidden="true"></span>
|
2185
|
+
<span *ngIf="!loadingIcon" [class]="'p-multiselect-loading-icon pi pi-spinner pi-spin'" aria-hidden="true"></span>
|
2186
|
+
</ng-container>
|
2187
|
+
</ng-container>
|
2188
|
+
<ng-template #elseBlock>
|
2189
|
+
<ng-container *ngIf="!dropdownIconTemplate && !_dropdownIconTemplate">
|
2190
|
+
<span *ngIf="dropdownIcon" class="p-multiselect-dropdown-icon" [ngClass]="dropdownIcon" [attr.data-pc-section]="'triggericon'" [attr.aria-hidden]="true"></span>
|
2191
|
+
<ChevronDownIcon *ngIf="!dropdownIcon" [styleClass]="'p-multiselect-dropdown-icon'" [attr.data-pc-section]="'triggericon'" [attr.aria-hidden]="true" />
|
2192
|
+
</ng-container>
|
2193
|
+
<span *ngIf="dropdownIconTemplate || _dropdownIconTemplate" class="p-multiselect-dropdown-icon" [attr.data-pc-section]="'triggericon'" [attr.aria-hidden]="true">
|
2194
|
+
<ng-template *ngTemplateOutlet="dropdownIconTemplate || _dropdownIconTemplate"></ng-template>
|
2195
|
+
</span>
|
2196
|
+
</ng-template>
|
2197
|
+
</div>
|
2198
|
+
<p-overlay
|
2199
|
+
#overlay
|
2200
|
+
[(visible)]="overlayVisible"
|
2201
|
+
[options]="overlayOptions"
|
2202
|
+
[target]="'@parent'"
|
2203
|
+
[appendTo]="appendTo"
|
2204
|
+
[autoZIndex]="autoZIndex"
|
2205
|
+
[baseZIndex]="baseZIndex"
|
2206
|
+
[showTransitionOptions]="showTransitionOptions"
|
2207
|
+
[hideTransitionOptions]="hideTransitionOptions"
|
2208
|
+
(onAnimationStart)="onOverlayAnimationStart($event)"
|
2209
|
+
(onHide)="hide()"
|
2210
|
+
>
|
2211
|
+
<ng-template #content>
|
2212
|
+
<div [attr.id]="id + '_list'" [ngClass]="'p-multiselect-overlay p-component'" [ngStyle]="panelStyle" [class]="panelStyleClass">
|
2213
|
+
<span
|
2214
|
+
#firstHiddenFocusableEl
|
2215
|
+
role="presentation"
|
2216
|
+
class="p-hidden-accessible p-hidden-focusable"
|
2217
|
+
[attr.tabindex]="0"
|
2218
|
+
(focus)="onFirstHiddenFocus($event)"
|
2219
|
+
[attr.data-p-hidden-accessible]="true"
|
2220
|
+
[attr.data-p-hidden-focusable]="true"
|
2221
|
+
>
|
2222
|
+
</span>
|
2223
|
+
<ng-container *ngTemplateOutlet="headerTemplate || _headerTemplate"></ng-container>
|
2224
|
+
<div class="p-multiselect-header" *ngIf="showHeader">
|
2225
|
+
<ng-content select="p-header"></ng-content>
|
2226
|
+
<ng-container *ngIf="filterTemplate || _filterTemplate; else builtInFilterElement">
|
2227
|
+
<ng-container *ngTemplateOutlet="filterTemplate || _filterTemplate; context: { options: filterOptions }"></ng-container>
|
2228
|
+
</ng-container>
|
2229
|
+
<ng-template #builtInFilterElement>
|
2230
|
+
<p-checkbox [ngModel]="allSelected()" [ariaLabel]="toggleAllAriaLabel" [binary]="true" (onChange)="onToggleAll($event)" *ngIf="showToggleAll && !selectionLimit" [variant]="variant" [disabled]="disabled" #headerCheckbox>
|
2231
|
+
<ng-template #checkboxicon let-klass="class">
|
2232
|
+
<CheckIcon *ngIf="!headerCheckboxIconTemplate && !_headerCheckboxIconTemplate && allSelected()" [styleClass]="klass" [attr.data-pc-section]="'icon'" />
|
2233
|
+
<ng-template
|
2234
|
+
*ngTemplateOutlet="
|
2235
|
+
headerCheckboxIconTemplate || _headerCheckboxIconTemplate;
|
2236
|
+
context: {
|
2237
|
+
checked: allSelected(),
|
2238
|
+
partialSelected: partialSelected(),
|
2239
|
+
class: klass
|
2240
|
+
}
|
2241
|
+
"
|
2242
|
+
></ng-template>
|
2243
|
+
</ng-template>
|
2244
|
+
</p-checkbox>
|
2245
|
+
|
2246
|
+
<div class="p-multiselect-filter-container" *ngIf="filter">
|
2247
|
+
<p-iconfield>
|
2248
|
+
<input
|
2249
|
+
#filterInput
|
2250
|
+
pInputText
|
2251
|
+
[variant]="variant"
|
2252
|
+
type="text"
|
2253
|
+
[attr.autocomplete]="autocomplete"
|
2254
|
+
role="searchbox"
|
2255
|
+
[attr.aria-owns]="id + '_list'"
|
2256
|
+
[attr.aria-activedescendant]="focusedOptionId"
|
2257
|
+
[value]="_filterValue() || ''"
|
2258
|
+
(input)="onFilterInputChange($event)"
|
2259
|
+
(keydown)="onFilterKeyDown($event)"
|
2260
|
+
(click)="onInputClick($event)"
|
2261
|
+
(blur)="onFilterBlur($event)"
|
2262
|
+
class="p-multiselect-filter"
|
2263
|
+
[disabled]="disabled"
|
2264
|
+
[attr.placeholder]="filterPlaceHolder"
|
2265
|
+
[attr.aria-label]="ariaFilterLabel"
|
2266
|
+
/>
|
2267
|
+
<p-inputicon>
|
2268
|
+
<SearchIcon [styleClass]="'p-multiselect-filter-icon'" *ngIf="!filterIconTemplate && !_filterIconTemplate" />
|
2269
|
+
<span *ngIf="filterIconTemplate || _filterIconTemplate" class="p-multiselect-filter-icon">
|
2270
|
+
<ng-template *ngTemplateOutlet="filterIconTemplate || _filterIconTemplate"></ng-template>
|
2271
|
+
</span>
|
2272
|
+
</p-inputicon>
|
2273
|
+
</p-iconfield>
|
2274
|
+
</div>
|
2275
|
+
</ng-template>
|
2276
|
+
</div>
|
2277
|
+
<div class="p-multiselect-list-container" [style.max-height]="virtualScroll ? 'auto' : scrollHeight || 'auto'">
|
2278
|
+
<p-scroller
|
2279
|
+
*ngIf="virtualScroll"
|
2280
|
+
#scroller
|
2281
|
+
[items]="visibleOptions()"
|
2282
|
+
[style]="{ height: scrollHeight }"
|
2283
|
+
[itemSize]="virtualScrollItemSize || _itemSize"
|
2284
|
+
[autoSize]="true"
|
2285
|
+
[tabindex]="-1"
|
2286
|
+
[lazy]="lazy"
|
2287
|
+
(onLazyLoad)="onLazyLoad.emit($event)"
|
2288
|
+
[options]="virtualScrollOptions"
|
2289
|
+
>
|
2290
|
+
<ng-template #content let-items let-scrollerOptions="options">
|
2291
|
+
<ng-container *ngTemplateOutlet="buildInItems; context: { $implicit: items, options: scrollerOptions }"></ng-container>
|
2292
|
+
</ng-template>
|
2293
|
+
<ng-container *ngIf="loaderTemplate || _loaderTemplate">
|
2294
|
+
<ng-template #loader let-scrollerOptions="options">
|
2295
|
+
<ng-container *ngTemplateOutlet="loaderTemplate || _loaderTemplate; context: { options: scrollerOptions }"></ng-container>
|
2296
|
+
</ng-template>
|
2297
|
+
</ng-container>
|
2298
|
+
</p-scroller>
|
2299
|
+
<ng-container *ngIf="!virtualScroll">
|
2300
|
+
<ng-container *ngTemplateOutlet="buildInItems; context: { $implicit: visibleOptions(), options: {} }"></ng-container>
|
2301
|
+
</ng-container>
|
2302
|
+
|
2303
|
+
<ng-template #buildInItems let-items let-scrollerOptions="options">
|
2304
|
+
<ul #items class="p-multiselect-list" [ngClass]="scrollerOptions.contentStyleClass" [style]="scrollerOptions.contentStyle" role="listbox" aria-multiselectable="true" [attr.aria-label]="listLabel">
|
2305
|
+
<ng-template ngFor let-option [ngForOf]="items" let-i="index">
|
2306
|
+
<ng-container *ngIf="isOptionGroup(option)">
|
2307
|
+
<li [attr.id]="id + '_' + getOptionIndex(i, scrollerOptions)" class="p-multiselect-option-group" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option">
|
2308
|
+
<span *ngIf="!groupTemplate">{{ getOptionGroupLabel(option.optionGroup) }}</span>
|
2309
|
+
<ng-container *ngTemplateOutlet="groupTemplate; context: { $implicit: option.optionGroup }"></ng-container>
|
2310
|
+
</li>
|
2311
|
+
</ng-container>
|
2312
|
+
<ng-container *ngIf="!isOptionGroup(option)">
|
2313
|
+
<p-multiselect-item
|
2314
|
+
[id]="id + '_' + getOptionIndex(i, scrollerOptions)"
|
2315
|
+
[option]="option"
|
2316
|
+
[selected]="isSelected(option)"
|
2317
|
+
[label]="getOptionLabel(option)"
|
2318
|
+
[disabled]="isOptionDisabled(option)"
|
2319
|
+
[template]="itemTemplate || _itemTemplate"
|
2320
|
+
[checkIconTemplate]="checkIconTemplate || _checkIconTemplate"
|
2321
|
+
[itemCheckboxIconTemplate]="itemCheckboxIconTemplate || _itemCheckboxIconTemplate"
|
2322
|
+
[itemSize]="scrollerOptions.itemSize"
|
2323
|
+
[focused]="focusedOptionIndex() === getOptionIndex(i, scrollerOptions)"
|
2324
|
+
[ariaPosInset]="getAriaPosInset(getOptionIndex(i, scrollerOptions))"
|
2325
|
+
[ariaSetSize]="ariaSetSize"
|
2326
|
+
[variant]="variant"
|
2327
|
+
(onClick)="onOptionSelect($event, false, getOptionIndex(i, scrollerOptions))"
|
2328
|
+
(onMouseEnter)="onOptionMouseEnter($event, getOptionIndex(i, scrollerOptions))"
|
2329
|
+
></p-multiselect-item>
|
2330
|
+
</ng-container>
|
2331
|
+
</ng-template>
|
2332
|
+
|
2333
|
+
<li *ngIf="hasFilter() && isEmpty()" class="p-multiselect-empty-message" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option">
|
2334
|
+
@if (!emptyFilterTemplate && !_emptyFilterTemplate && !emptyTemplate && !_emptyTemplate) {
|
2335
|
+
{{ emptyFilterMessageLabel }}
|
2336
|
+
} @else {
|
2337
|
+
<ng-container *ngTemplateOutlet="emptyFilterTemplate || _emptyFilterTemplate || emptyTemplate || _emptyFilterTemplate"></ng-container>
|
2338
|
+
}
|
2339
|
+
</li>
|
2340
|
+
<li *ngIf="!hasFilter() && isEmpty()" class="p-multiselect-empty-message" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option">
|
2341
|
+
@if (!emptyTemplate && !_emptyTemplate) {
|
2342
|
+
{{ emptyMessageLabel }}
|
2343
|
+
} @else {
|
2344
|
+
<ng-container *ngTemplateOutlet="emptyTemplate || _emptyTemplate"></ng-container>
|
2345
|
+
}
|
2346
|
+
</li>
|
2347
|
+
</ul>
|
2348
|
+
</ng-template>
|
2349
|
+
</div>
|
2350
|
+
<div *ngIf="footerFacet || footerTemplate || _footerTemplate">
|
2351
|
+
<ng-content select="p-footer"></ng-content>
|
2352
|
+
<ng-container *ngTemplateOutlet="footerTemplate || _footerTemplate"></ng-container>
|
2353
|
+
</div>
|
2354
|
+
|
2355
|
+
<span
|
2356
|
+
#lastHiddenFocusableEl
|
2357
|
+
role="presentation"
|
2358
|
+
class="p-hidden-accessible p-hidden-focusable"
|
2359
|
+
[attr.tabindex]="0"
|
2360
|
+
(focus)="onLastHiddenFocus($event)"
|
2361
|
+
[attr.data-p-hidden-accessible]="true"
|
2362
|
+
[attr.data-p-hidden-focusable]="true"
|
2363
|
+
></span>
|
2364
|
+
</div>
|
2365
|
+
</ng-template>
|
2366
|
+
</p-overlay>
|
2367
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: MultiSelectItem, selector: "p-multiSelectItem, p-multiselect-item", inputs: ["id", "option", "selected", "label", "disabled", "itemSize", "focused", "ariaPosInset", "ariaSetSize", "variant", "template", "checkIconTemplate", "itemCheckboxIconTemplate"], outputs: ["onClick", "onMouseEnter"] }, { kind: "component", type: Overlay, selector: "p-overlay", inputs: ["visible", "mode", "style", "styleClass", "contentStyle", "contentStyleClass", "target", "appendTo", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "listener", "responsive", "options"], outputs: ["visibleChange", "onBeforeShow", "onShow", "onBeforeHide", "onHide", "onAnimationStart", "onAnimationDone"] }, { kind: "ngmodule", type: SharedModule }, { kind: "directive", type: Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { 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: "directive", type: AutoFocus, selector: "[pAutoFocus]", inputs: ["autofocus", "pAutoFocus"] }, { kind: "component", type: CheckIcon, selector: "CheckIcon" }, { kind: "component", type: SearchIcon, selector: "SearchIcon" }, { kind: "component", type: TimesIcon, selector: "TimesIcon" }, { kind: "component", type: ChevronDownIcon, selector: "ChevronDownIcon" }, { kind: "component", type: IconField, selector: "p-iconfield, p-iconField, p-icon-field", inputs: ["iconPosition", "styleClass"] }, { kind: "component", type: InputIcon, selector: "p-inputicon, p-inputIcon", inputs: ["styleClass"] }, { kind: "directive", type: InputText, selector: "[pInputText]", inputs: ["variant", "fluid", "pSize"] }, { kind: "component", type: Chip, selector: "p-chip", inputs: ["label", "icon", "image", "alt", "style", "styleClass", "removable", "removeIcon", "chipProps"], outputs: ["onRemove", "onImageError"] }, { 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: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
2841
2368
|
}
|
2842
|
-
(
|
2843
|
-
|
2844
|
-
|
2845
|
-
|
2846
|
-
|
2847
|
-
|
2848
|
-
|
2369
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: MultiSelect, decorators: [{
|
2370
|
+
type: Component,
|
2371
|
+
args: [{
|
2372
|
+
selector: 'p-multiSelect, p-multiselect, p-multi-select',
|
2373
|
+
standalone: true,
|
2374
|
+
imports: [CommonModule, MultiSelectItem, Overlay, SharedModule, Tooltip, Scroller, AutoFocus, CheckIcon, SearchIcon, TimesIcon, ChevronDownIcon, IconField, InputIcon, InputText, Chip, Checkbox, FormsModule],
|
2375
|
+
template: `
|
2849
2376
|
<div class="p-hidden-accessible" [attr.data-p-hidden-accessible]="true">
|
2850
2377
|
<input
|
2851
2378
|
#focusInput
|
@@ -3107,308 +2634,306 @@ class MultiSelect extends BaseComponent {
|
|
3107
2634
|
</ng-template>
|
3108
2635
|
</p-overlay>
|
3109
2636
|
`,
|
3110
|
-
|
3111
|
-
|
3112
|
-
|
3113
|
-
|
3114
|
-
|
3115
|
-
|
3116
|
-
|
3117
|
-
|
3118
|
-
|
3119
|
-
|
3120
|
-
|
3121
|
-
|
3122
|
-
|
3123
|
-
|
3124
|
-
|
3125
|
-
|
3126
|
-
|
3127
|
-
|
3128
|
-
|
3129
|
-
|
3130
|
-
|
3131
|
-
|
3132
|
-
|
3133
|
-
|
3134
|
-
|
3135
|
-
|
3136
|
-
|
3137
|
-
|
3138
|
-
|
3139
|
-
|
3140
|
-
|
3141
|
-
|
3142
|
-
|
3143
|
-
|
3144
|
-
|
3145
|
-
|
3146
|
-
|
3147
|
-
|
3148
|
-
|
3149
|
-
|
3150
|
-
|
3151
|
-
|
3152
|
-
|
3153
|
-
|
3154
|
-
|
3155
|
-
|
3156
|
-
|
3157
|
-
|
3158
|
-
|
3159
|
-
|
3160
|
-
|
3161
|
-
|
3162
|
-
|
3163
|
-
|
3164
|
-
|
3165
|
-
|
3166
|
-
|
3167
|
-
|
3168
|
-
|
3169
|
-
|
3170
|
-
|
3171
|
-
|
3172
|
-
|
3173
|
-
|
3174
|
-
|
3175
|
-
|
3176
|
-
|
3177
|
-
|
3178
|
-
|
3179
|
-
|
3180
|
-
|
3181
|
-
|
3182
|
-
|
3183
|
-
|
3184
|
-
|
3185
|
-
|
3186
|
-
|
3187
|
-
|
3188
|
-
|
3189
|
-
|
3190
|
-
|
3191
|
-
|
3192
|
-
|
3193
|
-
|
3194
|
-
|
3195
|
-
|
3196
|
-
|
3197
|
-
|
3198
|
-
|
3199
|
-
|
3200
|
-
|
3201
|
-
|
3202
|
-
|
3203
|
-
|
3204
|
-
|
3205
|
-
|
3206
|
-
|
3207
|
-
|
3208
|
-
|
3209
|
-
|
3210
|
-
|
3211
|
-
|
3212
|
-
|
3213
|
-
|
3214
|
-
|
3215
|
-
|
3216
|
-
|
3217
|
-
|
3218
|
-
|
3219
|
-
|
3220
|
-
|
3221
|
-
|
3222
|
-
|
3223
|
-
|
3224
|
-
|
3225
|
-
|
3226
|
-
|
3227
|
-
|
3228
|
-
|
3229
|
-
|
3230
|
-
|
3231
|
-
|
3232
|
-
|
3233
|
-
|
3234
|
-
|
3235
|
-
|
3236
|
-
|
3237
|
-
|
3238
|
-
|
3239
|
-
|
3240
|
-
|
3241
|
-
|
3242
|
-
|
3243
|
-
|
3244
|
-
|
3245
|
-
|
3246
|
-
|
3247
|
-
|
3248
|
-
|
3249
|
-
|
3250
|
-
|
3251
|
-
|
3252
|
-
|
3253
|
-
|
3254
|
-
|
3255
|
-
|
3256
|
-
|
3257
|
-
|
3258
|
-
|
3259
|
-
|
3260
|
-
|
3261
|
-
|
3262
|
-
|
3263
|
-
|
3264
|
-
|
3265
|
-
|
3266
|
-
|
3267
|
-
|
3268
|
-
|
3269
|
-
|
3270
|
-
|
3271
|
-
|
3272
|
-
|
3273
|
-
|
3274
|
-
|
3275
|
-
|
3276
|
-
|
3277
|
-
|
3278
|
-
|
3279
|
-
|
3280
|
-
|
3281
|
-
|
3282
|
-
|
3283
|
-
|
3284
|
-
|
3285
|
-
|
3286
|
-
|
3287
|
-
|
3288
|
-
|
3289
|
-
|
3290
|
-
|
3291
|
-
|
3292
|
-
|
3293
|
-
|
3294
|
-
|
3295
|
-
|
3296
|
-
|
3297
|
-
|
3298
|
-
|
3299
|
-
|
3300
|
-
|
3301
|
-
|
3302
|
-
|
3303
|
-
|
3304
|
-
|
3305
|
-
|
3306
|
-
|
3307
|
-
|
3308
|
-
|
3309
|
-
|
3310
|
-
|
3311
|
-
|
3312
|
-
|
3313
|
-
|
3314
|
-
|
3315
|
-
|
3316
|
-
|
3317
|
-
|
3318
|
-
|
3319
|
-
|
3320
|
-
|
3321
|
-
|
3322
|
-
|
3323
|
-
|
3324
|
-
|
3325
|
-
|
3326
|
-
|
3327
|
-
|
3328
|
-
|
3329
|
-
|
3330
|
-
|
3331
|
-
|
3332
|
-
|
3333
|
-
|
3334
|
-
|
3335
|
-
|
3336
|
-
|
3337
|
-
|
3338
|
-
|
3339
|
-
|
3340
|
-
|
3341
|
-
|
3342
|
-
|
3343
|
-
|
3344
|
-
|
3345
|
-
|
3346
|
-
|
3347
|
-
|
3348
|
-
|
3349
|
-
|
3350
|
-
|
3351
|
-
|
3352
|
-
|
3353
|
-
|
3354
|
-
|
3355
|
-
|
3356
|
-
|
3357
|
-
|
3358
|
-
|
3359
|
-
|
3360
|
-
|
3361
|
-
|
3362
|
-
|
3363
|
-
|
3364
|
-
|
3365
|
-
|
3366
|
-
|
3367
|
-
|
3368
|
-
|
3369
|
-
|
3370
|
-
|
3371
|
-
|
3372
|
-
|
3373
|
-
|
3374
|
-
|
3375
|
-
|
3376
|
-
|
3377
|
-
|
3378
|
-
|
3379
|
-
|
3380
|
-
|
3381
|
-
|
3382
|
-
|
3383
|
-
|
3384
|
-
|
3385
|
-
|
3386
|
-
|
3387
|
-
|
3388
|
-
|
3389
|
-
|
3390
|
-
|
3391
|
-
|
3392
|
-
|
3393
|
-
|
3394
|
-
|
3395
|
-
|
3396
|
-
|
3397
|
-
|
3398
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MultiSelect, { className: "MultiSelect", filePath: "multiselect.ts", lineNumber: 445 }); })();
|
2637
|
+
providers: [MULTISELECT_VALUE_ACCESSOR, MultiSelectStyle],
|
2638
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
2639
|
+
encapsulation: ViewEncapsulation.None,
|
2640
|
+
host: {
|
2641
|
+
'[attr.id]': 'id',
|
2642
|
+
'[style]': 'style',
|
2643
|
+
'(click)': 'onContainerClick($event)',
|
2644
|
+
'[class.p-variant-filled]': 'variant === "filled" || config.inputVariant() === "filled" || config.inputStyle() === "filled" '
|
2645
|
+
}
|
2646
|
+
}]
|
2647
|
+
}], ctorParameters: () => [{ type: i0.NgZone }, { type: i3.FilterService }, { type: i3.OverlayService }], propDecorators: { id: [{
|
2648
|
+
type: Input
|
2649
|
+
}], ariaLabel: [{
|
2650
|
+
type: Input
|
2651
|
+
}], style: [{
|
2652
|
+
type: Input
|
2653
|
+
}], styleClass: [{
|
2654
|
+
type: Input
|
2655
|
+
}], panelStyle: [{
|
2656
|
+
type: Input
|
2657
|
+
}], panelStyleClass: [{
|
2658
|
+
type: Input
|
2659
|
+
}], inputId: [{
|
2660
|
+
type: Input
|
2661
|
+
}], disabled: [{
|
2662
|
+
type: Input,
|
2663
|
+
args: [{ transform: booleanAttribute }]
|
2664
|
+
}], fluid: [{
|
2665
|
+
type: Input,
|
2666
|
+
args: [{ transform: booleanAttribute }]
|
2667
|
+
}], readonly: [{
|
2668
|
+
type: Input,
|
2669
|
+
args: [{ transform: booleanAttribute }]
|
2670
|
+
}], group: [{
|
2671
|
+
type: Input,
|
2672
|
+
args: [{ transform: booleanAttribute }]
|
2673
|
+
}], filter: [{
|
2674
|
+
type: Input,
|
2675
|
+
args: [{ transform: booleanAttribute }]
|
2676
|
+
}], filterPlaceHolder: [{
|
2677
|
+
type: Input
|
2678
|
+
}], filterLocale: [{
|
2679
|
+
type: Input
|
2680
|
+
}], overlayVisible: [{
|
2681
|
+
type: Input,
|
2682
|
+
args: [{ transform: booleanAttribute }]
|
2683
|
+
}], tabindex: [{
|
2684
|
+
type: Input,
|
2685
|
+
args: [{ transform: numberAttribute }]
|
2686
|
+
}], variant: [{
|
2687
|
+
type: Input
|
2688
|
+
}], appendTo: [{
|
2689
|
+
type: Input
|
2690
|
+
}], dataKey: [{
|
2691
|
+
type: Input
|
2692
|
+
}], name: [{
|
2693
|
+
type: Input
|
2694
|
+
}], ariaLabelledBy: [{
|
2695
|
+
type: Input
|
2696
|
+
}], displaySelectedLabel: [{
|
2697
|
+
type: Input
|
2698
|
+
}], maxSelectedLabels: [{
|
2699
|
+
type: Input
|
2700
|
+
}], selectionLimit: [{
|
2701
|
+
type: Input,
|
2702
|
+
args: [{ transform: numberAttribute }]
|
2703
|
+
}], selectedItemsLabel: [{
|
2704
|
+
type: Input
|
2705
|
+
}], showToggleAll: [{
|
2706
|
+
type: Input,
|
2707
|
+
args: [{ transform: booleanAttribute }]
|
2708
|
+
}], emptyFilterMessage: [{
|
2709
|
+
type: Input
|
2710
|
+
}], emptyMessage: [{
|
2711
|
+
type: Input
|
2712
|
+
}], resetFilterOnHide: [{
|
2713
|
+
type: Input,
|
2714
|
+
args: [{ transform: booleanAttribute }]
|
2715
|
+
}], dropdownIcon: [{
|
2716
|
+
type: Input
|
2717
|
+
}], chipIcon: [{
|
2718
|
+
type: Input
|
2719
|
+
}], optionLabel: [{
|
2720
|
+
type: Input
|
2721
|
+
}], optionValue: [{
|
2722
|
+
type: Input
|
2723
|
+
}], optionDisabled: [{
|
2724
|
+
type: Input
|
2725
|
+
}], optionGroupLabel: [{
|
2726
|
+
type: Input
|
2727
|
+
}], optionGroupChildren: [{
|
2728
|
+
type: Input
|
2729
|
+
}], showHeader: [{
|
2730
|
+
type: Input,
|
2731
|
+
args: [{ transform: booleanAttribute }]
|
2732
|
+
}], filterBy: [{
|
2733
|
+
type: Input
|
2734
|
+
}], scrollHeight: [{
|
2735
|
+
type: Input
|
2736
|
+
}], lazy: [{
|
2737
|
+
type: Input,
|
2738
|
+
args: [{ transform: booleanAttribute }]
|
2739
|
+
}], virtualScroll: [{
|
2740
|
+
type: Input,
|
2741
|
+
args: [{ transform: booleanAttribute }]
|
2742
|
+
}], loading: [{
|
2743
|
+
type: Input,
|
2744
|
+
args: [{ transform: booleanAttribute }]
|
2745
|
+
}], virtualScrollItemSize: [{
|
2746
|
+
type: Input,
|
2747
|
+
args: [{ transform: numberAttribute }]
|
2748
|
+
}], loadingIcon: [{
|
2749
|
+
type: Input
|
2750
|
+
}], virtualScrollOptions: [{
|
2751
|
+
type: Input
|
2752
|
+
}], overlayOptions: [{
|
2753
|
+
type: Input
|
2754
|
+
}], ariaFilterLabel: [{
|
2755
|
+
type: Input
|
2756
|
+
}], filterMatchMode: [{
|
2757
|
+
type: Input
|
2758
|
+
}], tooltip: [{
|
2759
|
+
type: Input
|
2760
|
+
}], tooltipPosition: [{
|
2761
|
+
type: Input
|
2762
|
+
}], tooltipPositionStyle: [{
|
2763
|
+
type: Input
|
2764
|
+
}], tooltipStyleClass: [{
|
2765
|
+
type: Input
|
2766
|
+
}], autofocusFilter: [{
|
2767
|
+
type: Input,
|
2768
|
+
args: [{ transform: booleanAttribute }]
|
2769
|
+
}], display: [{
|
2770
|
+
type: Input
|
2771
|
+
}], autocomplete: [{
|
2772
|
+
type: Input
|
2773
|
+
}], size: [{
|
2774
|
+
type: Input
|
2775
|
+
}], showClear: [{
|
2776
|
+
type: Input,
|
2777
|
+
args: [{ transform: booleanAttribute }]
|
2778
|
+
}], autofocus: [{
|
2779
|
+
type: Input,
|
2780
|
+
args: [{ transform: booleanAttribute }]
|
2781
|
+
}], autoZIndex: [{
|
2782
|
+
type: Input
|
2783
|
+
}], baseZIndex: [{
|
2784
|
+
type: Input
|
2785
|
+
}], showTransitionOptions: [{
|
2786
|
+
type: Input
|
2787
|
+
}], hideTransitionOptions: [{
|
2788
|
+
type: Input
|
2789
|
+
}], defaultLabel: [{
|
2790
|
+
type: Input
|
2791
|
+
}], placeholder: [{
|
2792
|
+
type: Input
|
2793
|
+
}], options: [{
|
2794
|
+
type: Input
|
2795
|
+
}], filterValue: [{
|
2796
|
+
type: Input
|
2797
|
+
}], itemSize: [{
|
2798
|
+
type: Input
|
2799
|
+
}], selectAll: [{
|
2800
|
+
type: Input
|
2801
|
+
}], focusOnHover: [{
|
2802
|
+
type: Input,
|
2803
|
+
args: [{ transform: booleanAttribute }]
|
2804
|
+
}], filterFields: [{
|
2805
|
+
type: Input
|
2806
|
+
}], selectOnFocus: [{
|
2807
|
+
type: Input,
|
2808
|
+
args: [{ transform: booleanAttribute }]
|
2809
|
+
}], autoOptionFocus: [{
|
2810
|
+
type: Input,
|
2811
|
+
args: [{ transform: booleanAttribute }]
|
2812
|
+
}], onChange: [{
|
2813
|
+
type: Output
|
2814
|
+
}], onFilter: [{
|
2815
|
+
type: Output
|
2816
|
+
}], onFocus: [{
|
2817
|
+
type: Output
|
2818
|
+
}], onBlur: [{
|
2819
|
+
type: Output
|
2820
|
+
}], onClick: [{
|
2821
|
+
type: Output
|
2822
|
+
}], onClear: [{
|
2823
|
+
type: Output
|
2824
|
+
}], onPanelShow: [{
|
2825
|
+
type: Output
|
2826
|
+
}], onPanelHide: [{
|
2827
|
+
type: Output
|
2828
|
+
}], onLazyLoad: [{
|
2829
|
+
type: Output
|
2830
|
+
}], onRemove: [{
|
2831
|
+
type: Output
|
2832
|
+
}], onSelectAllChange: [{
|
2833
|
+
type: Output
|
2834
|
+
}], overlayViewChild: [{
|
2835
|
+
type: ViewChild,
|
2836
|
+
args: ['overlay']
|
2837
|
+
}], filterInputChild: [{
|
2838
|
+
type: ViewChild,
|
2839
|
+
args: ['filterInput']
|
2840
|
+
}], focusInputViewChild: [{
|
2841
|
+
type: ViewChild,
|
2842
|
+
args: ['focusInput']
|
2843
|
+
}], itemsViewChild: [{
|
2844
|
+
type: ViewChild,
|
2845
|
+
args: ['items']
|
2846
|
+
}], scroller: [{
|
2847
|
+
type: ViewChild,
|
2848
|
+
args: ['scroller']
|
2849
|
+
}], lastHiddenFocusableElementOnOverlay: [{
|
2850
|
+
type: ViewChild,
|
2851
|
+
args: ['lastHiddenFocusableEl']
|
2852
|
+
}], firstHiddenFocusableElementOnOverlay: [{
|
2853
|
+
type: ViewChild,
|
2854
|
+
args: ['firstHiddenFocusableEl']
|
2855
|
+
}], headerCheckboxViewChild: [{
|
2856
|
+
type: ViewChild,
|
2857
|
+
args: ['headerCheckbox']
|
2858
|
+
}], footerFacet: [{
|
2859
|
+
type: ContentChild,
|
2860
|
+
args: [Footer]
|
2861
|
+
}], headerFacet: [{
|
2862
|
+
type: ContentChild,
|
2863
|
+
args: [Header]
|
2864
|
+
}], itemTemplate: [{
|
2865
|
+
type: ContentChild,
|
2866
|
+
args: ['item', { descendants: false }]
|
2867
|
+
}], groupTemplate: [{
|
2868
|
+
type: ContentChild,
|
2869
|
+
args: ['group', { descendants: false }]
|
2870
|
+
}], loaderTemplate: [{
|
2871
|
+
type: ContentChild,
|
2872
|
+
args: ['loader', { descendants: false }]
|
2873
|
+
}], headerTemplate: [{
|
2874
|
+
type: ContentChild,
|
2875
|
+
args: ['header', { descendants: false }]
|
2876
|
+
}], filterTemplate: [{
|
2877
|
+
type: ContentChild,
|
2878
|
+
args: ['filter', { descendants: false }]
|
2879
|
+
}], footerTemplate: [{
|
2880
|
+
type: ContentChild,
|
2881
|
+
args: ['footer', { descendants: false }]
|
2882
|
+
}], emptyFilterTemplate: [{
|
2883
|
+
type: ContentChild,
|
2884
|
+
args: ['emptyfilter', { descendants: false }]
|
2885
|
+
}], emptyTemplate: [{
|
2886
|
+
type: ContentChild,
|
2887
|
+
args: ['empty', { descendants: false }]
|
2888
|
+
}], selectedItemsTemplate: [{
|
2889
|
+
type: ContentChild,
|
2890
|
+
args: ['selecteditems', { descendants: false }]
|
2891
|
+
}], checkIconTemplate: [{
|
2892
|
+
type: ContentChild,
|
2893
|
+
args: ['checkicon', { descendants: false }]
|
2894
|
+
}], loadingIconTemplate: [{
|
2895
|
+
type: ContentChild,
|
2896
|
+
args: ['loadingicon', { descendants: false }]
|
2897
|
+
}], filterIconTemplate: [{
|
2898
|
+
type: ContentChild,
|
2899
|
+
args: ['filtericon', { descendants: false }]
|
2900
|
+
}], removeTokenIconTemplate: [{
|
2901
|
+
type: ContentChild,
|
2902
|
+
args: ['removetokenicon', { descendants: false }]
|
2903
|
+
}], chipIconTemplate: [{
|
2904
|
+
type: ContentChild,
|
2905
|
+
args: ['chipicon', { descendants: false }]
|
2906
|
+
}], clearIconTemplate: [{
|
2907
|
+
type: ContentChild,
|
2908
|
+
args: ['clearicon', { descendants: false }]
|
2909
|
+
}], dropdownIconTemplate: [{
|
2910
|
+
type: ContentChild,
|
2911
|
+
args: ['dropdownicon', { descendants: false }]
|
2912
|
+
}], itemCheckboxIconTemplate: [{
|
2913
|
+
type: ContentChild,
|
2914
|
+
args: ['itemcheckboxicon', { descendants: false }]
|
2915
|
+
}], headerCheckboxIconTemplate: [{
|
2916
|
+
type: ContentChild,
|
2917
|
+
args: ['headercheckboxicon', { descendants: false }]
|
2918
|
+
}], templates: [{
|
2919
|
+
type: ContentChildren,
|
2920
|
+
args: [PrimeTemplate]
|
2921
|
+
}], hostClasses: [{
|
2922
|
+
type: HostBinding,
|
2923
|
+
args: ['class']
|
2924
|
+
}] } });
|
3399
2925
|
class MultiSelectModule {
|
3400
|
-
static ɵfac =
|
3401
|
-
static ɵmod =
|
3402
|
-
static ɵinj =
|
2926
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: MultiSelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
2927
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.7", ngImport: i0, type: MultiSelectModule, imports: [MultiSelect, SharedModule], exports: [MultiSelect, SharedModule] });
|
2928
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: MultiSelectModule, imports: [MultiSelect, SharedModule, SharedModule] });
|
3403
2929
|
}
|
3404
|
-
(
|
3405
|
-
|
3406
|
-
|
3407
|
-
|
3408
|
-
|
3409
|
-
|
3410
|
-
|
3411
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(MultiSelectModule, { imports: [MultiSelect, SharedModule], exports: [MultiSelect, SharedModule] }); })();
|
2930
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: MultiSelectModule, decorators: [{
|
2931
|
+
type: NgModule,
|
2932
|
+
args: [{
|
2933
|
+
imports: [MultiSelect, SharedModule],
|
2934
|
+
exports: [MultiSelect, SharedModule]
|
2935
|
+
}]
|
2936
|
+
}] });
|
3412
2937
|
|
3413
2938
|
/**
|
3414
2939
|
* Generated bundle index. Do not edit.
|