primeng 19.1.3 → 20.0.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordion/index.d.ts +255 -3
- package/animateonscroll/index.d.ts +69 -3
- package/api/index.d.ts +1818 -3
- package/autocomplete/index.d.ts +922 -3
- package/autofocus/index.d.ts +29 -3
- package/avatar/index.d.ts +113 -3
- package/avatargroup/index.d.ts +58 -3
- package/badge/index.d.ts +154 -3
- package/base/index.d.ts +63 -5
- package/basecomponent/index.d.ts +54 -5
- package/baseeditableholder/index.d.ts +36 -0
- package/baseinput/index.d.ts +73 -0
- package/blockui/index.d.ts +112 -3
- package/breadcrumb/index.d.ts +177 -3
- package/button/index.d.ts +479 -3
- package/buttongroup/index.d.ts +41 -3
- package/card/index.d.ts +152 -3
- package/carousel/index.d.ts +441 -3
- package/cascadeselect/index.d.ts +725 -3
- package/chart/index.d.ts +125 -3
- package/checkbox/index.d.ts +244 -3
- package/chip/index.d.ts +163 -3
- package/colorpicker/index.d.ts +326 -3
- package/config/index.d.ts +89 -5
- package/confirmdialog/index.d.ts +356 -3
- package/confirmpopup/index.d.ts +216 -3
- package/contextmenu/index.d.ts +354 -3
- package/dataview/index.d.ts +537 -3
- package/datepicker/index.d.ts +1188 -3
- package/dialog/index.d.ts +528 -3
- package/divider/index.d.ts +112 -3
- package/dock/index.d.ts +199 -3
- package/dom/index.d.ts +107 -3
- package/dragdrop/index.d.ts +119 -3
- package/drawer/index.d.ts +307 -3
- package/dynamicdialog/index.d.ts +542 -3
- package/editor/index.d.ts +224 -3
- package/fesm2022/primeng-accordion.mjs +85 -748
- package/fesm2022/primeng-accordion.mjs.map +1 -1
- package/fesm2022/primeng-animateonscroll.mjs +10 -10
- package/fesm2022/primeng-animateonscroll.mjs.map +1 -1
- package/fesm2022/primeng-api.mjs +31 -31
- package/fesm2022/primeng-api.mjs.map +1 -1
- package/fesm2022/primeng-autocomplete.mjs +562 -915
- package/fesm2022/primeng-autocomplete.mjs.map +1 -1
- package/fesm2022/primeng-autofocus.mjs +9 -18
- package/fesm2022/primeng-autofocus.mjs.map +1 -1
- package/fesm2022/primeng-avatar.mjs +25 -123
- package/fesm2022/primeng-avatar.mjs.map +1 -1
- package/fesm2022/primeng-avatargroup.mjs +10 -10
- package/fesm2022/primeng-avatargroup.mjs.map +1 -1
- package/fesm2022/primeng-badge.mjs +45 -154
- package/fesm2022/primeng-badge.mjs.map +1 -1
- package/fesm2022/primeng-base.mjs +9 -9
- package/fesm2022/primeng-base.mjs.map +1 -1
- package/fesm2022/primeng-basecomponent.mjs +20 -27
- package/fesm2022/primeng-basecomponent.mjs.map +1 -1
- package/fesm2022/primeng-baseeditableholder.mjs +49 -0
- package/fesm2022/primeng-baseeditableholder.mjs.map +1 -0
- package/fesm2022/primeng-baseinput.mjs +85 -0
- package/fesm2022/primeng-baseinput.mjs.map +1 -0
- package/fesm2022/primeng-blockui.mjs +47 -73
- package/fesm2022/primeng-blockui.mjs.map +1 -1
- package/fesm2022/primeng-breadcrumb.mjs +137 -213
- package/fesm2022/primeng-breadcrumb.mjs.map +1 -1
- package/fesm2022/primeng-button.mjs +71 -748
- package/fesm2022/primeng-button.mjs.map +1 -1
- package/fesm2022/primeng-buttongroup.mjs +39 -96
- package/fesm2022/primeng-buttongroup.mjs.map +1 -1
- package/fesm2022/primeng-card.mjs +63 -84
- package/fesm2022/primeng-card.mjs.map +1 -1
- package/fesm2022/primeng-carousel.mjs +162 -339
- package/fesm2022/primeng-carousel.mjs.map +1 -1
- package/fesm2022/primeng-cascadeselect.mjs +144 -451
- package/fesm2022/primeng-cascadeselect.mjs.map +1 -1
- package/fesm2022/primeng-chart.mjs +59 -58
- package/fesm2022/primeng-chart.mjs.map +1 -1
- package/fesm2022/primeng-checkbox.mjs +106 -276
- package/fesm2022/primeng-checkbox.mjs.map +1 -1
- package/fesm2022/primeng-chip.mjs +27 -94
- package/fesm2022/primeng-chip.mjs.map +1 -1
- package/fesm2022/primeng-colorpicker.mjs +128 -315
- package/fesm2022/primeng-colorpicker.mjs.map +1 -1
- package/fesm2022/primeng-config.mjs +14 -7
- package/fesm2022/primeng-config.mjs.map +1 -1
- package/fesm2022/primeng-confirmdialog.mjs +22 -42
- package/fesm2022/primeng-confirmdialog.mjs.map +1 -1
- package/fesm2022/primeng-confirmpopup.mjs +51 -160
- package/fesm2022/primeng-confirmpopup.mjs.map +1 -1
- package/fesm2022/primeng-contextmenu.mjs +84 -267
- package/fesm2022/primeng-contextmenu.mjs.map +1 -1
- package/fesm2022/primeng-dataview.mjs +211 -253
- package/fesm2022/primeng-dataview.mjs.map +1 -1
- package/fesm2022/primeng-datepicker.mjs +861 -1445
- package/fesm2022/primeng-datepicker.mjs.map +1 -1
- package/fesm2022/primeng-dialog.mjs +84 -337
- package/fesm2022/primeng-dialog.mjs.map +1 -1
- package/fesm2022/primeng-divider.mjs +34 -139
- package/fesm2022/primeng-divider.mjs.map +1 -1
- package/fesm2022/primeng-dock.mjs +195 -315
- package/fesm2022/primeng-dock.mjs.map +1 -1
- package/fesm2022/primeng-dom.mjs +11 -1
- package/fesm2022/primeng-dom.mjs.map +1 -1
- package/fesm2022/primeng-dragdrop.mjs +10 -10
- package/fesm2022/primeng-dragdrop.mjs.map +1 -1
- package/fesm2022/primeng-drawer.mjs +102 -258
- package/fesm2022/primeng-drawer.mjs.map +1 -1
- package/fesm2022/primeng-dynamicdialog.mjs +16 -16
- package/fesm2022/primeng-dynamicdialog.mjs.map +1 -1
- package/fesm2022/primeng-editor.mjs +113 -1075
- package/fesm2022/primeng-editor.mjs.map +1 -1
- package/fesm2022/primeng-fieldset.mjs +48 -138
- package/fesm2022/primeng-fieldset.mjs.map +1 -1
- package/fesm2022/primeng-fileupload.mjs +310 -286
- package/fesm2022/primeng-fileupload.mjs.map +1 -1
- package/fesm2022/primeng-floatlabel.mjs +23 -109
- package/fesm2022/primeng-floatlabel.mjs.map +1 -1
- package/fesm2022/primeng-fluid.mjs +13 -17
- package/fesm2022/primeng-fluid.mjs.map +1 -1
- package/fesm2022/primeng-focustrap.mjs +7 -7
- package/fesm2022/primeng-focustrap.mjs.map +1 -1
- package/fesm2022/primeng-galleria.mjs +119 -674
- package/fesm2022/primeng-galleria.mjs.map +1 -1
- package/fesm2022/primeng-iconfield.mjs +22 -66
- package/fesm2022/primeng-iconfield.mjs.map +1 -1
- package/fesm2022/primeng-icons-angledoubledown.mjs +3 -3
- package/fesm2022/primeng-icons-angledoubledown.mjs.map +1 -1
- package/fesm2022/primeng-icons-angledoubleleft.mjs +3 -3
- package/fesm2022/primeng-icons-angledoubleleft.mjs.map +1 -1
- package/fesm2022/primeng-icons-angledoubleright.mjs +3 -3
- package/fesm2022/primeng-icons-angledoubleright.mjs.map +1 -1
- package/fesm2022/primeng-icons-angledoubleup.mjs +3 -3
- package/fesm2022/primeng-icons-angledoubleup.mjs.map +1 -1
- package/fesm2022/primeng-icons-angledown.mjs +3 -3
- package/fesm2022/primeng-icons-angledown.mjs.map +1 -1
- package/fesm2022/primeng-icons-angleleft.mjs +3 -3
- package/fesm2022/primeng-icons-angleleft.mjs.map +1 -1
- package/fesm2022/primeng-icons-angleright.mjs +3 -3
- package/fesm2022/primeng-icons-angleright.mjs.map +1 -1
- package/fesm2022/primeng-icons-angleup.mjs +3 -3
- package/fesm2022/primeng-icons-angleup.mjs.map +1 -1
- package/fesm2022/primeng-icons-arrowdown.mjs +3 -3
- package/fesm2022/primeng-icons-arrowdown.mjs.map +1 -1
- package/fesm2022/primeng-icons-arrowdownleft.mjs +3 -3
- package/fesm2022/primeng-icons-arrowdownleft.mjs.map +1 -1
- package/fesm2022/primeng-icons-arrowdownright.mjs +3 -3
- package/fesm2022/primeng-icons-arrowdownright.mjs.map +1 -1
- package/fesm2022/primeng-icons-arrowleft.mjs +3 -3
- package/fesm2022/primeng-icons-arrowleft.mjs.map +1 -1
- package/fesm2022/primeng-icons-arrowright.mjs +3 -3
- package/fesm2022/primeng-icons-arrowright.mjs.map +1 -1
- package/fesm2022/primeng-icons-arrowup.mjs +3 -3
- package/fesm2022/primeng-icons-arrowup.mjs.map +1 -1
- package/fesm2022/primeng-icons-ban.mjs +3 -3
- package/fesm2022/primeng-icons-ban.mjs.map +1 -1
- package/fesm2022/primeng-icons-bars.mjs +3 -3
- package/fesm2022/primeng-icons-bars.mjs.map +1 -1
- package/fesm2022/primeng-icons-baseicon.mjs +6 -6
- package/fesm2022/primeng-icons-baseicon.mjs.map +1 -1
- package/fesm2022/primeng-icons-blank.mjs +3 -3
- package/fesm2022/primeng-icons-blank.mjs.map +1 -1
- package/fesm2022/primeng-icons-calendar.mjs +3 -3
- package/fesm2022/primeng-icons-calendar.mjs.map +1 -1
- package/fesm2022/primeng-icons-caretleft.mjs +3 -3
- package/fesm2022/primeng-icons-caretleft.mjs.map +1 -1
- package/fesm2022/primeng-icons-caretright.mjs +3 -3
- package/fesm2022/primeng-icons-caretright.mjs.map +1 -1
- package/fesm2022/primeng-icons-check.mjs +3 -3
- package/fesm2022/primeng-icons-check.mjs.map +1 -1
- package/fesm2022/primeng-icons-chevrondown.mjs +3 -3
- package/fesm2022/primeng-icons-chevrondown.mjs.map +1 -1
- package/fesm2022/primeng-icons-chevronleft.mjs +3 -3
- package/fesm2022/primeng-icons-chevronleft.mjs.map +1 -1
- package/fesm2022/primeng-icons-chevronright.mjs +3 -3
- package/fesm2022/primeng-icons-chevronright.mjs.map +1 -1
- package/fesm2022/primeng-icons-chevronup.mjs +3 -3
- package/fesm2022/primeng-icons-chevronup.mjs.map +1 -1
- package/fesm2022/primeng-icons-exclamationtriangle.mjs +3 -3
- package/fesm2022/primeng-icons-exclamationtriangle.mjs.map +1 -1
- package/fesm2022/primeng-icons-eye.mjs +3 -3
- package/fesm2022/primeng-icons-eye.mjs.map +1 -1
- package/fesm2022/primeng-icons-eyeslash.mjs +3 -3
- package/fesm2022/primeng-icons-eyeslash.mjs.map +1 -1
- package/fesm2022/primeng-icons-filter.mjs +3 -3
- package/fesm2022/primeng-icons-filter.mjs.map +1 -1
- package/fesm2022/primeng-icons-filterfill.mjs +37 -0
- package/fesm2022/primeng-icons-filterfill.mjs.map +1 -0
- package/fesm2022/primeng-icons-filterslash.mjs +3 -3
- package/fesm2022/primeng-icons-filterslash.mjs.map +1 -1
- package/fesm2022/primeng-icons-home.mjs +3 -3
- package/fesm2022/primeng-icons-home.mjs.map +1 -1
- package/fesm2022/primeng-icons-infocircle.mjs +3 -3
- package/fesm2022/primeng-icons-infocircle.mjs.map +1 -1
- package/fesm2022/primeng-icons-minus.mjs +3 -3
- package/fesm2022/primeng-icons-minus.mjs.map +1 -1
- package/fesm2022/primeng-icons-pencil.mjs +3 -3
- package/fesm2022/primeng-icons-pencil.mjs.map +1 -1
- package/fesm2022/primeng-icons-plus.mjs +3 -3
- package/fesm2022/primeng-icons-plus.mjs.map +1 -1
- package/fesm2022/primeng-icons-refresh.mjs +3 -3
- package/fesm2022/primeng-icons-refresh.mjs.map +1 -1
- package/fesm2022/primeng-icons-search.mjs +3 -3
- package/fesm2022/primeng-icons-search.mjs.map +1 -1
- package/fesm2022/primeng-icons-searchminus.mjs +3 -3
- package/fesm2022/primeng-icons-searchminus.mjs.map +1 -1
- package/fesm2022/primeng-icons-searchplus.mjs +3 -3
- package/fesm2022/primeng-icons-searchplus.mjs.map +1 -1
- package/fesm2022/primeng-icons-sortalt.mjs +3 -3
- package/fesm2022/primeng-icons-sortalt.mjs.map +1 -1
- package/fesm2022/primeng-icons-sortamountdown.mjs +3 -3
- package/fesm2022/primeng-icons-sortamountdown.mjs.map +1 -1
- package/fesm2022/primeng-icons-sortamountupalt.mjs +3 -3
- package/fesm2022/primeng-icons-sortamountupalt.mjs.map +1 -1
- package/fesm2022/primeng-icons-spinner.mjs +3 -3
- package/fesm2022/primeng-icons-spinner.mjs.map +1 -1
- package/fesm2022/primeng-icons-star.mjs +3 -3
- package/fesm2022/primeng-icons-star.mjs.map +1 -1
- package/fesm2022/primeng-icons-starfill.mjs +3 -3
- package/fesm2022/primeng-icons-starfill.mjs.map +1 -1
- package/fesm2022/primeng-icons-thlarge.mjs +3 -3
- package/fesm2022/primeng-icons-thlarge.mjs.map +1 -1
- package/fesm2022/primeng-icons-times.mjs +3 -3
- package/fesm2022/primeng-icons-times.mjs.map +1 -1
- package/fesm2022/primeng-icons-timescircle.mjs +3 -3
- package/fesm2022/primeng-icons-timescircle.mjs.map +1 -1
- package/fesm2022/primeng-icons-trash.mjs +3 -3
- package/fesm2022/primeng-icons-trash.mjs.map +1 -1
- package/fesm2022/primeng-icons-undo.mjs +3 -3
- package/fesm2022/primeng-icons-undo.mjs.map +1 -1
- package/fesm2022/primeng-icons-upload.mjs +3 -3
- package/fesm2022/primeng-icons-upload.mjs.map +1 -1
- package/fesm2022/primeng-icons-windowmaximize.mjs +3 -3
- package/fesm2022/primeng-icons-windowmaximize.mjs.map +1 -1
- package/fesm2022/primeng-icons-windowminimize.mjs +3 -3
- package/fesm2022/primeng-icons-windowminimize.mjs.map +1 -1
- package/fesm2022/primeng-iftalabel.mjs +19 -78
- package/fesm2022/primeng-iftalabel.mjs.map +1 -1
- package/fesm2022/primeng-image.mjs +153 -284
- package/fesm2022/primeng-image.mjs.map +1 -1
- package/fesm2022/primeng-imagecompare.mjs +14 -99
- package/fesm2022/primeng-imagecompare.mjs.map +1 -1
- package/fesm2022/primeng-inplace.mjs +56 -86
- package/fesm2022/primeng-inplace.mjs.map +1 -1
- package/fesm2022/primeng-inputgroup.mjs +48 -130
- package/fesm2022/primeng-inputgroup.mjs.map +1 -1
- package/fesm2022/primeng-inputgroupaddon.mjs +10 -10
- package/fesm2022/primeng-inputgroupaddon.mjs.map +1 -1
- package/fesm2022/primeng-inputicon.mjs +13 -19
- package/fesm2022/primeng-inputicon.mjs.map +1 -1
- package/fesm2022/primeng-inputmask.mjs +93 -142
- package/fesm2022/primeng-inputmask.mjs.map +1 -1
- package/fesm2022/primeng-inputnumber.mjs +152 -438
- package/fesm2022/primeng-inputnumber.mjs.map +1 -1
- package/fesm2022/primeng-inputotp.mjs +58 -87
- package/fesm2022/primeng-inputotp.mjs.map +1 -1
- package/fesm2022/primeng-inputtext.mjs +52 -136
- package/fesm2022/primeng-inputtext.mjs.map +1 -1
- package/fesm2022/primeng-keyfilter.mjs +7 -7
- package/fesm2022/primeng-keyfilter.mjs.map +1 -1
- package/fesm2022/primeng-knob.mjs +93 -152
- package/fesm2022/primeng-knob.mjs.map +1 -1
- package/fesm2022/primeng-listbox.mjs +518 -625
- package/fesm2022/primeng-listbox.mjs.map +1 -1
- package/fesm2022/primeng-megamenu.mjs +174 -587
- package/fesm2022/primeng-megamenu.mjs.map +1 -1
- package/fesm2022/primeng-menu.mjs +171 -296
- package/fesm2022/primeng-menu.mjs.map +1 -1
- package/fesm2022/primeng-menubar.mjs +386 -694
- package/fesm2022/primeng-menubar.mjs.map +1 -1
- package/fesm2022/primeng-message.mjs +32 -336
- package/fesm2022/primeng-message.mjs.map +1 -1
- package/fesm2022/primeng-metergroup.mjs +106 -212
- package/fesm2022/primeng-metergroup.mjs.map +1 -1
- package/fesm2022/primeng-multiselect.mjs +247 -696
- package/fesm2022/primeng-multiselect.mjs.map +1 -1
- package/fesm2022/primeng-orderlist.mjs +156 -417
- package/fesm2022/primeng-orderlist.mjs.map +1 -1
- package/fesm2022/primeng-organizationchart.mjs +66 -198
- package/fesm2022/primeng-organizationchart.mjs.map +1 -1
- package/fesm2022/primeng-overlay.mjs +25 -30
- package/fesm2022/primeng-overlay.mjs.map +1 -1
- package/fesm2022/primeng-overlaybadge.mjs +11 -11
- package/fesm2022/primeng-overlaybadge.mjs.map +1 -1
- package/fesm2022/primeng-paginator.mjs +199 -338
- package/fesm2022/primeng-paginator.mjs.map +1 -1
- package/fesm2022/primeng-panel.mjs +182 -262
- package/fesm2022/primeng-panel.mjs.map +1 -1
- package/fesm2022/primeng-panelmenu.mjs +291 -450
- package/fesm2022/primeng-panelmenu.mjs.map +1 -1
- package/fesm2022/primeng-password.mjs +260 -389
- package/fesm2022/primeng-password.mjs.map +1 -1
- package/fesm2022/primeng-picklist.mjs +44 -272
- package/fesm2022/primeng-picklist.mjs.map +1 -1
- package/fesm2022/primeng-popover.mjs +15 -17
- package/fesm2022/primeng-popover.mjs.map +1 -1
- package/fesm2022/primeng-progressbar.mjs +36 -186
- package/fesm2022/primeng-progressbar.mjs.map +1 -1
- package/fesm2022/primeng-progressspinner.mjs +30 -104
- package/fesm2022/primeng-progressspinner.mjs.map +1 -1
- package/fesm2022/primeng-radiobutton.mjs +101 -307
- package/fesm2022/primeng-radiobutton.mjs.map +1 -1
- package/fesm2022/primeng-rating.mjs +115 -196
- package/fesm2022/primeng-rating.mjs.map +1 -1
- package/fesm2022/primeng-ripple.mjs +27 -36
- package/fesm2022/primeng-ripple.mjs.map +1 -1
- package/fesm2022/primeng-scroller.mjs +41 -51
- package/fesm2022/primeng-scroller.mjs.map +1 -1
- package/fesm2022/primeng-scrollpanel.mjs +97 -165
- package/fesm2022/primeng-scrollpanel.mjs.map +1 -1
- package/fesm2022/primeng-scrolltop.mjs +27 -68
- package/fesm2022/primeng-scrolltop.mjs.map +1 -1
- package/fesm2022/primeng-select.mjs +152 -587
- package/fesm2022/primeng-select.mjs.map +1 -1
- package/fesm2022/primeng-selectbutton.mjs +52 -87
- package/fesm2022/primeng-selectbutton.mjs.map +1 -1
- package/fesm2022/primeng-skeleton.mjs +27 -83
- package/fesm2022/primeng-skeleton.mjs.map +1 -1
- package/fesm2022/primeng-slider.mjs +229 -353
- package/fesm2022/primeng-slider.mjs.map +1 -1
- package/fesm2022/primeng-speeddial.mjs +43 -142
- package/fesm2022/primeng-speeddial.mjs.map +1 -1
- package/fesm2022/primeng-splitbutton.mjs +172 -241
- package/fesm2022/primeng-splitbutton.mjs.map +1 -1
- package/fesm2022/primeng-splitter.mjs +92 -243
- package/fesm2022/primeng-splitter.mjs.map +1 -1
- package/fesm2022/primeng-stepper.mjs +259 -261
- package/fesm2022/primeng-stepper.mjs.map +1 -1
- package/fesm2022/primeng-steps.mjs +40 -162
- package/fesm2022/primeng-steps.mjs.map +1 -1
- package/fesm2022/primeng-styleclass.mjs +15 -43
- package/fesm2022/primeng-styleclass.mjs.map +1 -1
- package/fesm2022/primeng-table.mjs +804 -1266
- package/fesm2022/primeng-table.mjs.map +1 -1
- package/fesm2022/primeng-tabs.mjs +213 -196
- package/fesm2022/primeng-tabs.mjs.map +1 -1
- package/fesm2022/primeng-tag.mjs +29 -109
- package/fesm2022/primeng-tag.mjs.map +1 -1
- package/fesm2022/primeng-terminal.mjs +53 -89
- package/fesm2022/primeng-terminal.mjs.map +1 -1
- package/fesm2022/primeng-textarea.mjs +53 -150
- package/fesm2022/primeng-textarea.mjs.map +1 -1
- package/fesm2022/primeng-tieredmenu.mjs +75 -230
- package/fesm2022/primeng-tieredmenu.mjs.map +1 -1
- package/fesm2022/primeng-timeline.mjs +28 -202
- package/fesm2022/primeng-timeline.mjs.map +1 -1
- package/fesm2022/primeng-toast.mjs +88 -350
- package/fesm2022/primeng-toast.mjs.map +1 -1
- package/fesm2022/primeng-togglebutton.mjs +71 -202
- package/fesm2022/primeng-togglebutton.mjs.map +1 -1
- package/fesm2022/primeng-toggleswitch.mjs +108 -220
- package/fesm2022/primeng-toggleswitch.mjs.map +1 -1
- package/fesm2022/primeng-toolbar.mjs +42 -65
- package/fesm2022/primeng-toolbar.mjs.map +1 -1
- package/fesm2022/primeng-tooltip.mjs +50 -89
- package/fesm2022/primeng-tooltip.mjs.map +1 -1
- package/fesm2022/primeng-tree.mjs +286 -501
- package/fesm2022/primeng-tree.mjs.map +1 -1
- package/fesm2022/primeng-treeselect.mjs +351 -562
- package/fesm2022/primeng-treeselect.mjs.map +1 -1
- package/fesm2022/primeng-treetable.mjs +619 -483
- package/fesm2022/primeng-treetable.mjs.map +1 -1
- package/fesm2022/primeng-usestyle.mjs +3 -3
- package/fesm2022/primeng-usestyle.mjs.map +1 -1
- package/fesm2022/primeng-utils.mjs.map +1 -1
- package/fieldset/index.d.ts +215 -3
- package/fileupload/index.d.ts +784 -3
- package/floatlabel/index.d.ts +57 -3
- package/fluid/index.d.ts +46 -3
- package/focustrap/index.d.ts +34 -3
- package/galleria/index.d.ts +708 -3
- package/iconfield/index.d.ts +62 -3
- package/icons/angledoubledown/index.d.ts +9 -5
- package/icons/angledoubleleft/index.d.ts +9 -5
- package/icons/angledoubleright/index.d.ts +9 -5
- package/icons/angledoubleup/index.d.ts +9 -5
- package/icons/angledown/index.d.ts +9 -5
- package/icons/angleleft/index.d.ts +9 -5
- package/icons/angleright/index.d.ts +9 -5
- package/icons/angleup/index.d.ts +9 -5
- package/icons/arrowdown/index.d.ts +12 -5
- package/icons/arrowdownleft/index.d.ts +9 -5
- package/icons/arrowdownright/index.d.ts +9 -5
- package/icons/arrowleft/index.d.ts +11 -5
- package/icons/arrowright/index.d.ts +9 -5
- package/icons/arrowup/index.d.ts +11 -5
- package/icons/ban/index.d.ts +11 -5
- package/icons/bars/index.d.ts +9 -5
- package/icons/baseicon/index.d.ts +38 -3
- package/icons/blank/index.d.ts +9 -5
- package/icons/calendar/index.d.ts +9 -5
- package/icons/caretleft/index.d.ts +9 -5
- package/icons/caretright/index.d.ts +9 -5
- package/icons/check/index.d.ts +9 -5
- package/icons/chevrondown/index.d.ts +9 -5
- package/icons/chevronleft/index.d.ts +9 -5
- package/icons/chevronright/index.d.ts +9 -5
- package/icons/chevronup/index.d.ts +9 -5
- package/icons/exclamationtriangle/index.d.ts +12 -5
- package/icons/eye/index.d.ts +9 -5
- package/icons/eyeslash/index.d.ts +11 -5
- package/icons/filter/index.d.ts +11 -5
- package/icons/filterfill/index.d.ts +9 -0
- package/icons/filterslash/index.d.ts +11 -5
- package/icons/home/index.d.ts +11 -5
- package/icons/index.d.ts +53 -5
- package/icons/infocircle/index.d.ts +11 -5
- package/icons/minus/index.d.ts +9 -5
- package/icons/pencil/index.d.ts +11 -5
- package/icons/plus/index.d.ts +11 -5
- package/icons/refresh/index.d.ts +11 -5
- package/icons/search/index.d.ts +11 -5
- package/icons/searchminus/index.d.ts +11 -5
- package/icons/searchplus/index.d.ts +11 -5
- package/icons/sortalt/index.d.ts +11 -5
- package/icons/sortamountdown/index.d.ts +11 -5
- package/icons/sortamountupalt/index.d.ts +11 -5
- package/icons/spinner/index.d.ts +11 -5
- package/icons/star/index.d.ts +11 -5
- package/icons/starfill/index.d.ts +11 -5
- package/icons/thlarge/index.d.ts +11 -5
- package/icons/times/index.d.ts +9 -5
- package/icons/timescircle/index.d.ts +11 -5
- package/icons/trash/index.d.ts +11 -5
- package/icons/undo/index.d.ts +11 -5
- package/icons/upload/index.d.ts +11 -5
- package/icons/windowmaximize/index.d.ts +11 -5
- package/icons/windowminimize/index.d.ts +11 -5
- package/iftalabel/index.d.ts +48 -3
- package/image/index.d.ts +374 -3
- package/imagecompare/index.d.ts +91 -3
- package/index.d.ts +2 -5
- package/inplace/index.d.ts +180 -3
- package/inputgroup/index.d.ts +56 -3
- package/inputgroupaddon/index.d.ts +43 -3
- package/inputicon/index.d.ts +34 -3
- package/inputmask/index.d.ts +281 -3
- package/inputnumber/index.d.ts +463 -3
- package/inputotp/index.d.ts +205 -3
- package/inputtext/index.d.ts +81 -3
- package/keyfilter/index.d.ts +64 -3
- package/knob/index.d.ts +202 -3
- package/listbox/index.d.ts +801 -3
- package/megamenu/index.d.ts +406 -3
- package/menu/index.d.ts +338 -3
- package/menubar/index.d.ts +418 -3
- package/message/index.d.ts +193 -3
- package/metergroup/index.d.ts +289 -3
- package/multiselect/index.d.ts +1057 -3
- package/orderlist/index.d.ts +462 -3
- package/organizationchart/index.d.ts +283 -3
- package/overlay/index.d.ts +255 -3
- package/overlaybadge/index.d.ts +73 -3
- package/package.json +179 -210
- package/paginator/index.d.ts +391 -3
- package/panel/index.d.ts +264 -3
- package/panelmenu/index.d.ts +378 -3
- package/password/index.d.ts +432 -3
- package/picklist/index.d.ts +894 -3
- package/popover/index.d.ts +176 -3
- package/progressbar/index.d.ts +110 -3
- package/progressspinner/index.d.ts +83 -3
- package/radiobutton/index.d.ts +197 -3
- package/rating/index.d.ts +215 -3
- package/ripple/index.d.ts +62 -3
- package/scroller/index.d.ts +610 -3
- package/scrollpanel/index.d.ts +159 -3
- package/scrolltop/index.d.ts +156 -3
- package/select/index.d.ts +920 -3
- package/selectbutton/index.d.ts +218 -3
- package/skeleton/index.d.ts +94 -3
- package/slider/index.d.ts +252 -3
- package/speeddial/index.d.ts +452 -3
- package/splitbutton/index.d.ts +304 -3
- package/splitter/index.d.ts +237 -3
- package/stepper/index.d.ts +291 -3
- package/steps/index.d.ts +150 -3
- package/styleclass/index.d.ts +94 -3
- package/table/index.d.ts +2919 -3
- package/tabs/index.d.ts +323 -3
- package/tag/index.d.ts +112 -3
- package/terminal/index.d.ts +132 -3
- package/textarea/index.d.ts +102 -3
- package/tieredmenu/index.d.ts +424 -3
- package/timeline/index.d.ts +168 -3
- package/toast/index.d.ts +318 -3
- package/togglebutton/index.d.ts +240 -3
- package/toggleswitch/index.d.ts +184 -3
- package/toolbar/index.d.ts +116 -3
- package/tooltip/index.d.ts +245 -3
- package/tree/index.d.ts +845 -3
- package/treeselect/index.d.ts +646 -3
- package/treetable/index.d.ts +1727 -3
- package/ts-helpers/index.d.ts +6 -5
- package/usestyle/index.d.ts +15 -5
- package/utils/index.d.ts +43 -5
- package/accordion/accordion.d.ts +0 -368
- package/accordion/public_api.d.ts +0 -2
- package/accordion/style/accordionstyle.d.ts +0 -50
- package/animateonscroll/animateonscroll.d.ts +0 -69
- package/animateonscroll/public_api.d.ts +0 -1
- package/api/blockableui.d.ts +0 -10
- package/api/confirmaeventtype.d.ts +0 -8
- package/api/confirmation.d.ts +0 -96
- package/api/confirmationservice.d.ts +0 -30
- package/api/contextmenuservice.d.ts +0 -11
- package/api/filtermatchmode.d.ts +0 -22
- package/api/filtermetadata.d.ts +0 -18
- package/api/filteroperator.d.ts +0 -4
- package/api/filterservice.d.ts +0 -10
- package/api/lazyloadevent.d.ts +0 -47
- package/api/lazyloadmeta.d.ts +0 -19
- package/api/megamenuitem.d.ts +0 -130
- package/api/menuitem.d.ts +0 -176
- package/api/messageservice.d.ts +0 -32
- package/api/overlayoptions.d.ts +0 -188
- package/api/overlayservice.d.ts +0 -8
- package/api/primeicons.d.ts +0 -313
- package/api/public_api.d.ts +0 -32
- package/api/scrolleroptions.d.ts +0 -126
- package/api/selectitem.d.ts +0 -12
- package/api/selectitemgroup.d.ts +0 -10
- package/api/shared.d.ts +0 -25
- package/api/sortevent.d.ts +0 -12
- package/api/sortmeta.d.ts +0 -8
- package/api/tablestate.d.ts +0 -60
- package/api/toastmessage.d.ts +0 -20
- package/api/tooltipoptions.d.ts +0 -69
- package/api/translation.d.ts +0 -137
- package/api/translationkeys.d.ts +0 -50
- package/api/treedragdropservice.d.ts +0 -12
- package/api/treenode.d.ts +0 -82
- package/api/treenodedragevent.d.ts +0 -27
- package/api/treetablenode.d.ts +0 -36
- package/autocomplete/autocomplete.d.ts +0 -688
- package/autocomplete/autocomplete.interface.d.ts +0 -181
- package/autocomplete/public_api.d.ts +0 -3
- package/autocomplete/style/autocompletestyle.d.ts +0 -131
- package/autofocus/autofocus.d.ts +0 -35
- package/autofocus/public_api.d.ts +0 -1
- package/avatar/avatar.d.ts +0 -74
- package/avatar/public_api.d.ts +0 -2
- package/avatar/style/avatarstyle.d.ts +0 -47
- package/avatargroup/avatargroup.d.ts +0 -34
- package/avatargroup/public_api.d.ts +0 -2
- package/avatargroup/style/avatargroupstyle.d.ts +0 -24
- package/badge/badge.d.ts +0 -123
- package/badge/public_api.d.ts +0 -2
- package/badge/style/badgestyle.d.ts +0 -45
- package/base/base.d.ts +0 -9
- package/base/public_api.d.ts +0 -2
- package/base/style/basestyle.d.ts +0 -51
- package/basecomponent/basecomponent.d.ts +0 -43
- package/basecomponent/public_api.d.ts +0 -2
- package/basecomponent/style/basecomponentstyle.d.ts +0 -7
- package/blockui/blockui.d.ts +0 -67
- package/blockui/blockui.interface.d.ts +0 -11
- package/blockui/public_api.d.ts +0 -3
- package/blockui/style/blockuistyle.d.ts +0 -30
- package/breadcrumb/breadcrumb.d.ts +0 -72
- package/breadcrumb/breadcrumb.interface.d.ts +0 -38
- package/breadcrumb/public_api.d.ts +0 -3
- package/breadcrumb/style/breadcrumbstyle.d.ts +0 -69
- package/button/button.d.ts +0 -372
- package/button/button.interface.d.ts +0 -60
- package/button/public_api.d.ts +0 -3
- package/button/style/buttonstyle.d.ts +0 -66
- package/buttongroup/buttongroup.d.ts +0 -13
- package/buttongroup/public_api.d.ts +0 -2
- package/buttongroup/style/buttongroupstyle.d.ts +0 -30
- package/calendar/calendar.d.ts +0 -792
- package/calendar/calendar.interface.d.ts +0 -204
- package/calendar/index.d.ts +0 -5
- package/calendar/public_api.d.ts +0 -3
- package/calendar/style/calendarstyle.d.ts +0 -100
- package/card/card.d.ts +0 -60
- package/card/card.interface.d.ts +0 -27
- package/card/public_api.d.ts +0 -3
- package/card/style/cardstyle.d.ts +0 -65
- package/carousel/carousel.d.ts +0 -254
- package/carousel/carousel.interface.d.ts +0 -63
- package/carousel/public_api.d.ts +0 -3
- package/carousel/style/carouselstyle.d.ts +0 -129
- package/cascadeselect/cascadeselect.d.ts +0 -526
- package/cascadeselect/cascadeselect.interface.d.ts +0 -115
- package/cascadeselect/public_api.d.ts +0 -3
- package/cascadeselect/style/cascadeselectstyle.d.ts +0 -130
- package/chart/chart.d.ts +0 -87
- package/chart/public_api.d.ts +0 -2
- package/chart/style/chartstyle.d.ts +0 -32
- package/checkbox/checkbox.d.ts +0 -196
- package/checkbox/checkbox.interface.d.ts +0 -26
- package/checkbox/public_api.d.ts +0 -3
- package/checkbox/style/checkboxstyle.d.ts +0 -53
- package/chip/chip.d.ts +0 -94
- package/chip/chip.interface.d.ts +0 -27
- package/chip/public_api.d.ts +0 -3
- package/chip/style/chipstyle.d.ts +0 -50
- package/chips/chips.d.ts +0 -237
- package/chips/chips.interface.d.ts +0 -66
- package/chips/index.d.ts +0 -5
- package/chips/public_api.d.ts +0 -2
- package/chips/style/chipsstyle.d.ts +0 -69
- package/colorpicker/colorpicker.d.ts +0 -243
- package/colorpicker/colorpicker.interface.d.ts +0 -15
- package/colorpicker/public_api.d.ts +0 -3
- package/colorpicker/style/colorpickerstyle.d.ts +0 -75
- package/config/primeng.d.ts +0 -45
- package/config/provideprimeng.d.ts +0 -4
- package/config/public_api.d.ts +0 -3
- package/config/themeprovider.d.ts +0 -28
- package/confirmdialog/confirmdialog.d.ts +0 -268
- package/confirmdialog/confirmdialog.interface.d.ts +0 -39
- package/confirmdialog/public_api.d.ts +0 -3
- package/confirmdialog/style/confirmdialogstyle.d.ts +0 -50
- package/confirmpopup/confirmpopup.d.ts +0 -126
- package/confirmpopup/confirmpopup.interface.d.ts +0 -27
- package/confirmpopup/public_api.d.ts +0 -3
- package/confirmpopup/style/confirmpopupstyle.d.ts +0 -60
- package/contextmenu/contextmenu.d.ts +0 -267
- package/contextmenu/public_api.d.ts +0 -2
- package/contextmenu/style/contextmenustyle.d.ts +0 -83
- package/dataview/dataview.d.ts +0 -294
- package/dataview/dataview.interface.d.ts +0 -173
- package/dataview/public_api.d.ts +0 -3
- package/dataview/style/dataviewstyle.d.ts +0 -62
- package/datepicker/datepicker.d.ts +0 -802
- package/datepicker/datepicker.interface.d.ts +0 -204
- package/datepicker/public_api.d.ts +0 -3
- package/datepicker/style/datepickerstyle.d.ts +0 -266
- package/defer/defer.d.ts +0 -34
- package/defer/index.d.ts +0 -5
- package/defer/public_api.d.ts +0 -1
- package/dialog/dialog.d.ts +0 -424
- package/dialog/dialog.interface.d.ts +0 -31
- package/dialog/public_api.d.ts +0 -3
- package/dialog/style/dialogstyle.d.ts +0 -102
- package/divider/divider.d.ts +0 -45
- package/divider/public_api.d.ts +0 -2
- package/divider/style/dividerstyle.d.ts +0 -75
- package/dock/dock.d.ts +0 -110
- package/dock/dock.interface.d.ts +0 -19
- package/dock/public_api.d.ts +0 -3
- package/dock/style/dockstyle.d.ts +0 -72
- package/dom/connectedoverlayscrollhandler.d.ts +0 -9
- package/dom/domhandler.d.ts +0 -95
- package/dom/public_api.d.ts +0 -2
- package/dragdrop/dragdrop.d.ts +0 -118
- package/dragdrop/public_api.d.ts +0 -1
- package/drawer/drawer.d.ts +0 -212
- package/drawer/drawer.interface.d.ts +0 -27
- package/drawer/public_api.d.ts +0 -3
- package/drawer/style/drawerstyle.d.ts +0 -83
- package/dropdown/dropdown.d.ts +0 -649
- package/dropdown/dropdown.interface.d.ts +0 -154
- package/dropdown/index.d.ts +0 -5
- package/dropdown/public_api.d.ts +0 -3
- package/dropdown/style/dropdownstyle.d.ts +0 -72
- package/dynamicdialog/dialogservice.d.ts +0 -35
- package/dynamicdialog/dynamicdialog-config.d.ts +0 -221
- package/dynamicdialog/dynamicdialog-injector.d.ts +0 -7
- package/dynamicdialog/dynamicdialog-ref.d.ts +0 -101
- package/dynamicdialog/dynamicdialog.d.ts +0 -120
- package/dynamicdialog/dynamicdialogcontent.d.ts +0 -8
- package/dynamicdialog/public_api.d.ts +0 -7
- package/dynamicdialog/style/dynamicdialogstyle.d.ts +0 -56
- package/editor/editor.d.ts +0 -116
- package/editor/editor.interface.d.ts +0 -64
- package/editor/public_api.d.ts +0 -3
- package/editor/style/editorstyle.d.ts +0 -40
- package/fesm2022/primeng-calendar.mjs +0 -4647
- package/fesm2022/primeng-calendar.mjs.map +0 -1
- package/fesm2022/primeng-chips.mjs +0 -930
- package/fesm2022/primeng-chips.mjs.map +0 -1
- package/fesm2022/primeng-defer.mjs +0 -101
- package/fesm2022/primeng-defer.mjs.map +0 -1
- package/fesm2022/primeng-dropdown.mjs +0 -2429
- package/fesm2022/primeng-dropdown.mjs.map +0 -1
- package/fesm2022/primeng-inputswitch.mjs +0 -370
- package/fesm2022/primeng-inputswitch.mjs.map +0 -1
- package/fesm2022/primeng-inputtextarea.mjs +0 -262
- package/fesm2022/primeng-inputtextarea.mjs.map +0 -1
- package/fesm2022/primeng-messages.mjs +0 -655
- package/fesm2022/primeng-messages.mjs.map +0 -1
- package/fesm2022/primeng-overlaypanel.mjs +0 -657
- package/fesm2022/primeng-overlaypanel.mjs.map +0 -1
- package/fesm2022/primeng-sidebar.mjs +0 -690
- package/fesm2022/primeng-sidebar.mjs.map +0 -1
- package/fesm2022/primeng-tabmenu.mjs +0 -807
- package/fesm2022/primeng-tabmenu.mjs.map +0 -1
- package/fesm2022/primeng-tabview.mjs +0 -1184
- package/fesm2022/primeng-tabview.mjs.map +0 -1
- package/fieldset/fieldset.d.ts +0 -110
- package/fieldset/fieldset.interface.d.ts +0 -46
- package/fieldset/public_api.d.ts +0 -3
- package/fieldset/style/fieldsetstyle.d.ts +0 -60
- package/fileupload/fileupload.d.ts +0 -428
- package/fileupload/fileupload.interface.d.ts +0 -235
- package/fileupload/public_api.d.ts +0 -3
- package/fileupload/style/fileuploadstyle.d.ts +0 -102
- package/floatlabel/floatlabel.d.ts +0 -23
- package/floatlabel/public_api.d.ts +0 -2
- package/floatlabel/style/floatlabelstyle.d.ts +0 -37
- package/fluid/fluid.d.ts +0 -17
- package/fluid/public_api.d.ts +0 -2
- package/fluid/style/fluidstyle.d.ts +0 -30
- package/focustrap/focustrap.d.ts +0 -33
- package/focustrap/public_api.d.ts +0 -1
- package/galleria/galleria.d.ts +0 -417
- package/galleria/galleria.interface.d.ts +0 -97
- package/galleria/public_api.d.ts +0 -3
- package/galleria/style/galleriastyle.d.ts +0 -197
- package/iconfield/iconfield.d.ts +0 -28
- package/iconfield/public_api.d.ts +0 -2
- package/iconfield/style/iconfieldstyle.d.ts +0 -30
- package/icons/angledoubledown/angledoubledown.d.ts +0 -6
- package/icons/angledoubledown/public_api.d.ts +0 -1
- package/icons/angledoubleleft/angledoubleleft.d.ts +0 -6
- package/icons/angledoubleleft/public_api.d.ts +0 -1
- package/icons/angledoubleright/angledoubleright.d.ts +0 -6
- package/icons/angledoubleright/public_api.d.ts +0 -1
- package/icons/angledoubleup/angledoubleup.d.ts +0 -6
- package/icons/angledoubleup/public_api.d.ts +0 -1
- package/icons/angledown/angledown.d.ts +0 -6
- package/icons/angledown/public_api.d.ts +0 -1
- package/icons/angleleft/angleleft.d.ts +0 -6
- package/icons/angleleft/public_api.d.ts +0 -1
- package/icons/angleright/angleright.d.ts +0 -6
- package/icons/angleright/public_api.d.ts +0 -1
- package/icons/angleup/angleup.d.ts +0 -6
- package/icons/angleup/public_api.d.ts +0 -1
- package/icons/arrowdown/arrowdown.d.ts +0 -9
- package/icons/arrowdown/public_api.d.ts +0 -1
- package/icons/arrowdownleft/arrowdownleft.d.ts +0 -6
- package/icons/arrowdownleft/public_api.d.ts +0 -1
- package/icons/arrowdownright/arrowdownright.d.ts +0 -6
- package/icons/arrowdownright/public_api.d.ts +0 -1
- package/icons/arrowleft/arrowleft.d.ts +0 -8
- package/icons/arrowleft/public_api.d.ts +0 -1
- package/icons/arrowright/arrowright.d.ts +0 -6
- package/icons/arrowright/public_api.d.ts +0 -1
- package/icons/arrowup/arrowup.d.ts +0 -8
- package/icons/arrowup/public_api.d.ts +0 -1
- package/icons/ban/ban.d.ts +0 -8
- package/icons/ban/public_api.d.ts +0 -1
- package/icons/bars/bars.d.ts +0 -6
- package/icons/bars/public_api.d.ts +0 -1
- package/icons/baseicon/baseicon.d.ts +0 -17
- package/icons/baseicon/public_api.d.ts +0 -2
- package/icons/baseicon/style/baseiconstyle.d.ts +0 -20
- package/icons/blank/blank.d.ts +0 -6
- package/icons/blank/public_api.d.ts +0 -1
- package/icons/calendar/calendar.d.ts +0 -6
- package/icons/calendar/public_api.d.ts +0 -1
- package/icons/caretleft/caretleft.d.ts +0 -6
- package/icons/caretleft/public_api.d.ts +0 -1
- package/icons/caretright/caretright.d.ts +0 -6
- package/icons/caretright/public_api.d.ts +0 -1
- package/icons/check/check.d.ts +0 -6
- package/icons/check/public_api.d.ts +0 -1
- package/icons/chevrondown/chevrondown.d.ts +0 -6
- package/icons/chevrondown/public_api.d.ts +0 -1
- package/icons/chevronleft/chevronleft.d.ts +0 -6
- package/icons/chevronleft/public_api.d.ts +0 -1
- package/icons/chevronright/chevronright.d.ts +0 -6
- package/icons/chevronright/public_api.d.ts +0 -1
- package/icons/chevronup/chevronup.d.ts +0 -6
- package/icons/chevronup/public_api.d.ts +0 -1
- package/icons/exclamationtriangle/exclamationtriangle.d.ts +0 -9
- package/icons/exclamationtriangle/public_api.d.ts +0 -1
- package/icons/eye/eye.d.ts +0 -6
- package/icons/eye/public_api.d.ts +0 -1
- package/icons/eyeslash/eyeslash.d.ts +0 -8
- package/icons/eyeslash/public_api.d.ts +0 -1
- package/icons/filter/filter.d.ts +0 -8
- package/icons/filter/public_api.d.ts +0 -1
- package/icons/filterslash/filterslash.d.ts +0 -8
- package/icons/filterslash/public_api.d.ts +0 -1
- package/icons/home/home.d.ts +0 -8
- package/icons/home/public_api.d.ts +0 -1
- package/icons/infocircle/infocircle.d.ts +0 -8
- package/icons/infocircle/public_api.d.ts +0 -1
- package/icons/minus/minus.d.ts +0 -6
- package/icons/minus/public_api.d.ts +0 -1
- package/icons/pencil/pencil.d.ts +0 -8
- package/icons/pencil/public_api.d.ts +0 -1
- package/icons/plus/plus.d.ts +0 -8
- package/icons/plus/public_api.d.ts +0 -1
- package/icons/public_api.d.ts +0 -57
- package/icons/refresh/public_api.d.ts +0 -1
- package/icons/refresh/refresh.d.ts +0 -8
- package/icons/search/public_api.d.ts +0 -1
- package/icons/search/search.d.ts +0 -8
- package/icons/searchminus/public_api.d.ts +0 -1
- package/icons/searchminus/searchminus.d.ts +0 -8
- package/icons/searchplus/public_api.d.ts +0 -1
- package/icons/searchplus/searchplus.d.ts +0 -8
- package/icons/sortalt/public_api.d.ts +0 -1
- package/icons/sortalt/sortalt.d.ts +0 -8
- package/icons/sortamountdown/public_api.d.ts +0 -1
- package/icons/sortamountdown/sortamountdown.d.ts +0 -8
- package/icons/sortamountupalt/public_api.d.ts +0 -1
- package/icons/sortamountupalt/sortamountupalt.d.ts +0 -8
- package/icons/spinner/public_api.d.ts +0 -1
- package/icons/spinner/spinner.d.ts +0 -8
- package/icons/star/public_api.d.ts +0 -1
- package/icons/star/star.d.ts +0 -8
- package/icons/starfill/public_api.d.ts +0 -1
- package/icons/starfill/starfill.d.ts +0 -8
- package/icons/thlarge/public_api.d.ts +0 -1
- package/icons/thlarge/thlarge.d.ts +0 -8
- package/icons/times/public_api.d.ts +0 -1
- package/icons/times/times.d.ts +0 -6
- package/icons/timescircle/public_api.d.ts +0 -1
- package/icons/timescircle/timescircle.d.ts +0 -8
- package/icons/trash/public_api.d.ts +0 -1
- package/icons/trash/trash.d.ts +0 -8
- package/icons/undo/public_api.d.ts +0 -1
- package/icons/undo/undo.d.ts +0 -8
- package/icons/upload/public_api.d.ts +0 -1
- package/icons/upload/upload.d.ts +0 -8
- package/icons/windowmaximize/public_api.d.ts +0 -1
- package/icons/windowmaximize/windowmaximize.d.ts +0 -8
- package/icons/windowminimize/public_api.d.ts +0 -1
- package/icons/windowminimize/windowminimize.d.ts +0 -8
- package/iftalabel/iftalabel.d.ts +0 -20
- package/iftalabel/public_api.d.ts +0 -2
- package/iftalabel/style/iftalabelstyle.d.ts +0 -30
- package/image/image.d.ts +0 -227
- package/image/image.interface.d.ts +0 -63
- package/image/public_api.d.ts +0 -3
- package/image/style/imagestyle.d.ts +0 -92
- package/imagecompare/imagecompare.d.ts +0 -57
- package/imagecompare/public_api.d.ts +0 -2
- package/imagecompare/style/imagecomparestyle.d.ts +0 -35
- package/inplace/inplace.d.ts +0 -122
- package/inplace/inplace.interface.d.ts +0 -19
- package/inplace/public_api.d.ts +0 -3
- package/inplace/style/inplacestyle.d.ts +0 -44
- package/inputgroup/inputgroup.d.ts +0 -30
- package/inputgroup/public_api.d.ts +0 -2
- package/inputgroup/style/inputgroupstyle.d.ts +0 -34
- package/inputgroupaddon/inputgroupaddon.d.ts +0 -33
- package/inputgroupaddon/public_api.d.ts +0 -2
- package/inputgroupaddon/style/inputgroupaddonstyle.d.ts +0 -10
- package/inputicon/inputicon.d.ts +0 -24
- package/inputicon/public_api.d.ts +0 -2
- package/inputicon/style/inputiconstyle.d.ts +0 -10
- package/inputmask/inputmask.d.ts +0 -270
- package/inputmask/inputmask.interface.d.ts +0 -19
- package/inputmask/public_api.d.ts +0 -3
- package/inputmask/style/inputmaskstyle.d.ts +0 -35
- package/inputnumber/inputnumber.d.ts +0 -440
- package/inputnumber/inputnumber.interface.d.ts +0 -38
- package/inputnumber/public_api.d.ts +0 -3
- package/inputnumber/style/inputnumberstyle.d.ts +0 -70
- package/inputotp/inputotp.d.ts +0 -176
- package/inputotp/public_api.d.ts +0 -2
- package/inputotp/style/inputotpstyle.d.ts +0 -35
- package/inputswitch/index.d.ts +0 -5
- package/inputswitch/inputswitch.d.ts +0 -106
- package/inputswitch/inputswitch.interface.d.ts +0 -15
- package/inputswitch/public_api.d.ts +0 -3
- package/inputswitch/style/inputswitchstyle.d.ts +0 -27
- package/inputtext/inputtext.d.ts +0 -44
- package/inputtext/public_api.d.ts +0 -2
- package/inputtext/style/inputtextstyle.d.ts +0 -40
- package/inputtextarea/index.d.ts +0 -5
- package/inputtextarea/inputtextarea.d.ts +0 -59
- package/inputtextarea/public_api.d.ts +0 -2
- package/inputtextarea/style/textareastyle.d.ts +0 -39
- package/keyfilter/keyfilter.d.ts +0 -57
- package/keyfilter/keyfilter.interface.d.ts +0 -5
- package/keyfilter/public_api.d.ts +0 -2
- package/knob/knob.d.ts +0 -176
- package/knob/public_api.d.ts +0 -2
- package/knob/style/knobstyle.d.ts +0 -49
- package/listbox/listbox.d.ts +0 -556
- package/listbox/listbox.interface.d.ts +0 -167
- package/listbox/public_api.d.ts +0 -3
- package/listbox/style/listboxstyle.d.ts +0 -91
- package/megamenu/megamenu.d.ts +0 -250
- package/megamenu/megamenu.interface.d.ts +0 -31
- package/megamenu/public_api.d.ts +0 -3
- package/megamenu/style/megamenustyle.d.ts +0 -132
- package/menu/menu.d.ts +0 -239
- package/menu/public_api.d.ts +0 -2
- package/menu/style/menustyle.d.ts +0 -89
- package/menubar/menubar.d.ts +0 -275
- package/menubar/menubar.interface.d.ts +0 -40
- package/menubar/public_api.d.ts +0 -3
- package/menubar/style/menubarstyle.d.ts +0 -102
- package/message/message.d.ts +0 -134
- package/message/public_api.d.ts +0 -2
- package/message/style/messagestyle.d.ts +0 -59
- package/messages/index.d.ts +0 -5
- package/messages/messages.d.ts +0 -110
- package/messages/messages.interface.d.ts +0 -11
- package/messages/public_api.d.ts +0 -3
- package/messages/style/messagesstyle.d.ts +0 -23
- package/metergroup/metergroup.d.ts +0 -107
- package/metergroup/metergroup.interface.d.ts +0 -122
- package/metergroup/public_api.d.ts +0 -3
- package/metergroup/style/metergroupstyle.d.ts +0 -75
- package/multiselect/multiselect.d.ts +0 -750
- package/multiselect/multiselect.interface.d.ts +0 -247
- package/multiselect/public_api.d.ts +0 -3
- package/multiselect/style/multiselectstyle.d.ts +0 -153
- package/orderlist/orderlist.d.ts +0 -346
- package/orderlist/orderlist.interface.d.ts +0 -110
- package/orderlist/public_api.d.ts +0 -3
- package/orderlist/style/orderliststyle.d.ts +0 -35
- package/organizationchart/organizationchart.d.ts +0 -136
- package/organizationchart/organizationchart.interface.d.ts +0 -59
- package/organizationchart/public_api.d.ts +0 -3
- package/organizationchart/style/organizationchartstyle.d.ts +0 -89
- package/overlay/overlay.d.ts +0 -245
- package/overlay/public_api.d.ts +0 -2
- package/overlay/style/overlaystyle.d.ts +0 -10
- package/overlaybadge/overlaybadge.d.ts +0 -60
- package/overlaybadge/public_api.d.ts +0 -2
- package/overlaybadge/style/overlaybadgestyle.d.ts +0 -13
- package/overlaypanel/index.d.ts +0 -5
- package/overlaypanel/overlaypanel.d.ts +0 -170
- package/overlaypanel/public_api.d.ts +0 -2
- package/overlaypanel/style/popoverstyle.d.ts +0 -35
- package/paginator/paginator.d.ts +0 -223
- package/paginator/paginator.interface.d.ts +0 -37
- package/paginator/public_api.d.ts +0 -3
- package/paginator/style/paginatorstyle.d.ts +0 -138
- package/panel/panel.d.ts +0 -204
- package/panel/public_api.d.ts +0 -2
- package/panel/style/panelstyle.d.ts +0 -67
- package/panelmenu/panelmenu.d.ts +0 -226
- package/panelmenu/panelmenu.interface.d.ts +0 -23
- package/panelmenu/public_api.d.ts +0 -3
- package/panelmenu/style/panelmenustyle.d.ts +0 -124
- package/password/password.d.ts +0 -372
- package/password/public_api.d.ts +0 -2
- package/password/style/passwordstyle.d.ts +0 -83
- package/picklist/picklist.d.ts +0 -616
- package/picklist/picklist.interface.d.ts +0 -242
- package/picklist/public_api.d.ts +0 -3
- package/picklist/style/pickliststyle.d.ts +0 -55
- package/popover/popover.d.ts +0 -162
- package/popover/public_api.d.ts +0 -2
- package/popover/style/popoverstyle.d.ts +0 -14
- package/progressbar/progressbar.d.ts +0 -72
- package/progressbar/public_api.d.ts +0 -2
- package/progressbar/style/progressbarstyle.d.ts +0 -45
- package/progressspinner/progressspinner.d.ts +0 -50
- package/progressspinner/public_api.d.ts +0 -2
- package/progressspinner/style/progressspinnerstyle.d.ts +0 -40
- package/public_api.d.ts +0 -2
- package/radiobutton/public_api.d.ts +0 -3
- package/radiobutton/radiobutton.d.ts +0 -151
- package/radiobutton/radiobutton.interface.d.ts +0 -15
- package/radiobutton/style/radiobuttonstyle.d.ts +0 -53
- package/rating/public_api.d.ts +0 -3
- package/rating/rating.d.ts +0 -137
- package/rating/rating.interface.d.ts +0 -34
- package/rating/style/ratingstyle.d.ts +0 -57
- package/ripple/public_api.d.ts +0 -2
- package/ripple/ripple.d.ts +0 -32
- package/ripple/style/ripplestyle.d.ts +0 -30
- package/scroller/public_api.d.ts +0 -3
- package/scroller/scroller.d.ts +0 -373
- package/scroller/scroller.interface.d.ts +0 -177
- package/scroller/style/scrollerstyle.d.ts +0 -43
- package/scrollpanel/public_api.d.ts +0 -3
- package/scrollpanel/scrollpanel.d.ts +0 -106
- package/scrollpanel/scrollpanel.interface.d.ts +0 -11
- package/scrollpanel/style/scrollpanelstyle.d.ts +0 -50
- package/scrolltop/public_api.d.ts +0 -3
- package/scrolltop/scrolltop.d.ts +0 -100
- package/scrolltop/scrolltop.interface.d.ts +0 -18
- package/scrolltop/style/scrolltopstyle.d.ts +0 -39
- package/select/public_api.d.ts +0 -3
- package/select/select.d.ts +0 -749
- package/select/select.interface.d.ts +0 -154
- package/select/style/selectstyle.d.ts +0 -143
- package/selectbutton/public_api.d.ts +0 -3
- package/selectbutton/selectbutton.d.ts +0 -145
- package/selectbutton/selectbutton.interface.d.ts +0 -45
- package/selectbutton/style/selectbuttonstyle.d.ts +0 -34
- package/sidebar/index.d.ts +0 -5
- package/sidebar/public_api.d.ts +0 -3
- package/sidebar/sidebar.d.ts +0 -189
- package/sidebar/sidebar.interface.d.ts +0 -27
- package/sidebar/style/drawerstyle.d.ts +0 -46
- package/skeleton/public_api.d.ts +0 -2
- package/skeleton/skeleton.d.ts +0 -66
- package/skeleton/style/skeletonstyle.d.ts +0 -40
- package/slider/public_api.d.ts +0 -3
- package/slider/slider.d.ts +0 -170
- package/slider/slider.interface.d.ts +0 -38
- package/slider/style/sliderstyle.d.ts +0 -54
- package/speeddial/public_api.d.ts +0 -3
- package/speeddial/speeddial.d.ts +0 -322
- package/speeddial/speeddial.interface.d.ts +0 -44
- package/speeddial/style/speeddialstyle.d.ts +0 -89
- package/splitbutton/public_api.d.ts +0 -3
- package/splitbutton/splitbutton.d.ts +0 -243
- package/splitbutton/splitbutton.interface.d.ts +0 -30
- package/splitbutton/style/splitbuttonstyle.d.ts +0 -46
- package/splitter/public_api.d.ts +0 -3
- package/splitter/splitter.d.ts +0 -166
- package/splitter/splitter.interface.d.ts +0 -34
- package/splitter/style/splitterstyle.d.ts +0 -42
- package/stepper/public_api.d.ts +0 -2
- package/stepper/stepper.d.ts +0 -175
- package/stepper/style/stepperstyle.d.ts +0 -39
- package/steps/public_api.d.ts +0 -2
- package/steps/steps.d.ts +0 -84
- package/steps/style/stepsstyle.d.ts +0 -66
- package/styleclass/public_api.d.ts +0 -1
- package/styleclass/styleclass.d.ts +0 -107
- package/table/columnfilter.interface.d.ts +0 -247
- package/table/public_api.d.ts +0 -4
- package/table/style/tablestyle.d.ts +0 -327
- package/table/table.d.ts +0 -1662
- package/table/table.interface.d.ts +0 -671
- package/tabmenu/index.d.ts +0 -5
- package/tabmenu/public_api.d.ts +0 -3
- package/tabmenu/style/tabmenustyle.d.ts +0 -51
- package/tabmenu/tabmenu.d.ts +0 -136
- package/tabmenu/tabmenu.interface.d.ts +0 -32
- package/tabs/public_api.d.ts +0 -6
- package/tabs/style/tabsstyle.d.ts +0 -66
- package/tabs/tab.d.ts +0 -54
- package/tabs/tablist.d.ts +0 -53
- package/tabs/tabpanel.d.ts +0 -20
- package/tabs/tabpanels.d.ts +0 -10
- package/tabs/tabs.d.ts +0 -64
- package/tabview/index.d.ts +0 -5
- package/tabview/public_api.d.ts +0 -3
- package/tabview/style/tabsstyle.d.ts +0 -66
- package/tabview/tabview.d.ts +0 -278
- package/tabview/tabview.interface.d.ts +0 -49
- package/tag/public_api.d.ts +0 -3
- package/tag/style/tagstyle.d.ts +0 -50
- package/tag/tag.d.ts +0 -64
- package/tag/tag.interface.d.ts +0 -11
- package/terminal/public_api.d.ts +0 -3
- package/terminal/style/terminalstyle.d.ts +0 -70
- package/terminal/terminal.d.ts +0 -56
- package/terminal/terminalservice.d.ts +0 -11
- package/textarea/public_api.d.ts +0 -2
- package/textarea/style/textareastyle.d.ts +0 -39
- package/textarea/textarea.d.ts +0 -64
- package/tieredmenu/public_api.d.ts +0 -3
- package/tieredmenu/style/tieredmenustyle.d.ts +0 -97
- package/tieredmenu/tieredmenu.d.ts +0 -292
- package/tieredmenu/tieredmenu.interface.d.ts +0 -27
- package/timeline/public_api.d.ts +0 -3
- package/timeline/style/timelinestyle.d.ts +0 -62
- package/timeline/timeline.d.ts +0 -70
- package/timeline/timeline.interface.d.ts +0 -43
- package/toast/public_api.d.ts +0 -3
- package/toast/style/toaststyle.d.ts +0 -106
- package/toast/toast.d.ts +0 -172
- package/toast/toast.interface.d.ts +0 -52
- package/togglebutton/public_api.d.ts +0 -3
- package/togglebutton/style/togglebuttonstyle.d.ts +0 -49
- package/togglebutton/togglebutton.d.ts +0 -137
- package/togglebutton/togglebutton.interface.d.ts +0 -51
- package/toggleswitch/public_api.d.ts +0 -3
- package/toggleswitch/style/toggleswitchstyle.d.ts +0 -53
- package/toggleswitch/toggleswitch.d.ts +0 -129
- package/toggleswitch/toggleswitch.interface.d.ts +0 -15
- package/toolbar/public_api.d.ts +0 -3
- package/toolbar/style/toolbarstyle.d.ts +0 -45
- package/toolbar/toolbar.d.ts +0 -58
- package/toolbar/toolbar.interface.d.ts +0 -19
- package/tooltip/public_api.d.ts +0 -2
- package/tooltip/style/tooltipstyle.d.ts +0 -40
- package/tooltip/tooltip.d.ts +0 -203
- package/tree/public_api.d.ts +0 -3
- package/tree/style/treestyle.d.ts +0 -116
- package/tree/tree.d.ts +0 -541
- package/tree/tree.interface.d.ts +0 -200
- package/treeselect/public_api.d.ts +0 -3
- package/treeselect/style/treeselectstyle.d.ts +0 -104
- package/treeselect/treeselect.d.ts +0 -482
- package/treeselect/treeselect.interface.d.ts +0 -108
- package/treetable/public_api.d.ts +0 -3
- package/treetable/style/treetablestyle.d.ts +0 -194
- package/treetable/treetable.d.ts +0 -1006
- package/treetable/treetable.interface.d.ts +0 -472
- package/ts-helpers/public_api.d.ts +0 -1
- package/ts-helpers/ts-helpers.d.ts +0 -4
- package/usestyle/public_api.d.ts +0 -1
- package/usestyle/usestyle.d.ts +0 -12
- package/utils/inpututils.d.ts +0 -2
- package/utils/objectutils.d.ts +0 -27
- package/utils/public_api.d.ts +0 -5
- package/utils/uniquecomponentid.d.ts +0 -2
- package/utils/zindexutils.d.ts +0 -9
@@ -1,17 +1,19 @@
|
|
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, Output, Input, ViewEncapsulation, Component,
|
4
|
+
import { Injectable, forwardRef, EventEmitter, inject, booleanAttribute, numberAttribute, Output, Input, ViewEncapsulation, Component, input, signal, computed, effect, 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, uuid, equals, focus, findLastIndex, resolveFieldData, isPrintableCharacter, getFirstFocusableElement, getLastFocusableElement, findSingle,
|
7
|
+
import { deepEquals, isNotEmpty, isArray, uuid, equals, focus, findLastIndex, resolveFieldData, isPrintableCharacter, getFirstFocusableElement, getLastFocusableElement, findSingle, 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';
|
11
11
|
import { BaseComponent } from 'primeng/basecomponent';
|
12
|
+
import { BaseEditableHolder } from 'primeng/baseeditableholder';
|
12
13
|
import { Checkbox } from 'primeng/checkbox';
|
13
14
|
import { Chip } from 'primeng/chip';
|
14
|
-
import { DomHandler } from 'primeng/dom';
|
15
|
+
import { DomHandler, unblockBodyScroll } from 'primeng/dom';
|
16
|
+
import { Fluid } from 'primeng/fluid';
|
15
17
|
import { IconField } from 'primeng/iconfield';
|
16
18
|
import { CheckIcon, SearchIcon, TimesIcon, ChevronDownIcon } from 'primeng/icons';
|
17
19
|
import { InputIcon } from 'primeng/inputicon';
|
@@ -21,257 +23,44 @@ import { Ripple } from 'primeng/ripple';
|
|
21
23
|
import { Scroller } from 'primeng/scroller';
|
22
24
|
import { Tooltip } from 'primeng/tooltip';
|
23
25
|
import { ObjectUtils } from 'primeng/utils';
|
26
|
+
import { css, dt } from '@primeuix/styled';
|
27
|
+
import { style } from '@primeuix/styles/multiselect';
|
24
28
|
import { BaseStyle } from 'primeng/base';
|
25
29
|
|
26
|
-
const theme =
|
27
|
-
|
28
|
-
display: inline-flex;
|
29
|
-
cursor: pointer;
|
30
|
-
position: relative;
|
31
|
-
user-select: none;
|
32
|
-
background: ${dt('multiselect.background')};
|
33
|
-
border: 1px solid ${dt('multiselect.border.color')};
|
34
|
-
transition: background ${dt('multiselect.transition.duration')}, color ${dt('multiselect.transition.duration')}, border-color ${dt('multiselect.transition.duration')}, outline-color ${dt('multiselect.transition.duration')}, box-shadow ${dt('multiselect.transition.duration')};
|
35
|
-
border-radius: ${dt('multiselect.border.radius')};
|
36
|
-
outline-color: transparent;
|
37
|
-
box-shadow: ${dt('multiselect.shadow')};
|
38
|
-
}
|
39
|
-
|
40
|
-
.p-multiselect.ng-invalid.ng-dirty {
|
41
|
-
border-color: ${dt('multiselect.invalid.border.color')};
|
42
|
-
}
|
43
|
-
|
44
|
-
.p-multiselect:not(.p-disabled):hover {
|
45
|
-
border-color: ${dt('multiselect.hover.border.color')};
|
46
|
-
}
|
47
|
-
|
48
|
-
.p-multiselect:not(.p-disabled).p-focus {
|
49
|
-
border-color: ${dt('multiselect.focus.border.color')};
|
50
|
-
box-shadow: ${dt('multiselect.focus.ring.shadow')};
|
51
|
-
outline: ${dt('multiselect.focus.ring.width')} ${dt('multiselect.focus.ring.style')} ${dt('multiselect.focus.ring.color')};
|
52
|
-
outline-offset: ${dt('multiselect.focus.ring.offset')};
|
53
|
-
}
|
54
|
-
|
55
|
-
.p-multiselect.p-variant-filled {
|
56
|
-
background: ${dt('multiselect.filled.background')};
|
57
|
-
}
|
58
|
-
|
59
|
-
.p-multiselect.p-variant-filled:not(.p-disabled):hover {
|
60
|
-
background: ${dt('multiselect.filled.hover.background')};
|
61
|
-
}
|
62
|
-
|
63
|
-
.p-multiselect.p-variant-filled.p-focus {
|
64
|
-
background: ${dt('multiselect.filled.focus.background')};
|
65
|
-
}
|
66
|
-
|
67
|
-
.p-multiselect.p-disabled {
|
68
|
-
opacity: 1;
|
69
|
-
background: ${dt('multiselect.disabled.background')};
|
70
|
-
}
|
71
|
-
|
72
|
-
.p-multiselect-dropdown {
|
73
|
-
display: flex;
|
74
|
-
align-items: center;
|
75
|
-
justify-content: center;
|
76
|
-
flex-shrink: 0;
|
77
|
-
background: transparent;
|
78
|
-
color: ${dt('multiselect.dropdown.color')};
|
79
|
-
width: ${dt('multiselect.dropdown.width')};
|
80
|
-
border-start-end-radius: ${dt('multiselect.border.radius')};
|
81
|
-
border-end-end-radius: ${dt('multiselect.border.radius')};
|
82
|
-
}
|
83
|
-
|
84
|
-
.p-multiselect-label-container {
|
85
|
-
overflow: hidden;
|
86
|
-
flex: 1 1 auto;
|
87
|
-
cursor: pointer;
|
88
|
-
}
|
89
|
-
|
90
|
-
.p-multiselect-label {
|
91
|
-
display: flex;
|
92
|
-
align-items-center;
|
93
|
-
gap: calc(${dt('multiselect.padding.y')} / 2);
|
94
|
-
white-space: nowrap;
|
95
|
-
cursor: pointer;
|
96
|
-
overflow: hidden;
|
97
|
-
text-overflow: ellipsis;
|
98
|
-
padding: ${dt('multiselect.padding.y')} ${dt('multiselect.padding.x')};
|
99
|
-
color: ${dt('multiselect.color')};
|
100
|
-
}
|
101
|
-
|
102
|
-
.p-multiselect-label.p-placeholder {
|
103
|
-
color: ${dt('multiselect.placeholder.color')};
|
104
|
-
}
|
105
|
-
|
106
|
-
p-multiSelect.ng-invalid.ng-dirty .p-multiselect-label.p-placeholder,
|
107
|
-
p-multi-select.ng-invalid.ng-dirty .p-multiselect-label.p-placeholder,
|
108
|
-
p-multiselect.ng-invalid.ng-dirty .p-multiselect-label.p-placeholder {
|
109
|
-
color: ${dt('multiselect.invalid.placeholder.color')};
|
110
|
-
}
|
111
|
-
|
112
|
-
.p-multiselect.p-disabled .p-multiselect-label {
|
113
|
-
color: ${dt('multiselect.disabled.color')};
|
114
|
-
}
|
115
|
-
|
116
|
-
.p-multiselect-label-empty {
|
117
|
-
overflow: hidden;
|
118
|
-
visibility: hidden;
|
119
|
-
}
|
120
|
-
|
121
|
-
.p-multiselect .p-multiselect-overlay {
|
122
|
-
min-width: 100%;
|
123
|
-
}
|
124
|
-
|
125
|
-
.p-multiselect-overlay {
|
126
|
-
background: ${dt('multiselect.overlay.background')};
|
127
|
-
color: ${dt('multiselect.overlay.color')};
|
128
|
-
border: 1px solid ${dt('multiselect.overlay.border.color')};
|
129
|
-
border-radius: ${dt('multiselect.overlay.border.radius')};
|
130
|
-
box-shadow: ${dt('multiselect.overlay.shadow')};
|
131
|
-
}
|
132
|
-
|
133
|
-
.p-multiselect-header {
|
134
|
-
display: flex;
|
135
|
-
align-items: center;
|
136
|
-
padding: ${dt('multiselect.list.header.padding')};
|
137
|
-
}
|
138
|
-
|
139
|
-
.p-multiselect-header .p-checkbox {
|
140
|
-
margin-inline-end: ${dt('multiselect.option.gap')};
|
141
|
-
}
|
142
|
-
|
143
|
-
.p-multiselect-filter-container {
|
144
|
-
flex: 1 1 auto;
|
145
|
-
}
|
146
|
-
|
147
|
-
.p-multiselect-filter {
|
148
|
-
width: 100%;
|
149
|
-
}
|
150
|
-
|
151
|
-
.p-multiselect-list-container {
|
152
|
-
overflow: auto;
|
153
|
-
}
|
154
|
-
|
155
|
-
.p-multiselect-list {
|
156
|
-
margin: 0;
|
157
|
-
padding: 0;
|
158
|
-
list-style-type: none;
|
159
|
-
padding: ${dt('multiselect.list.padding')};
|
160
|
-
display: flex;
|
161
|
-
flex-direction: column;
|
162
|
-
gap: ${dt('multiselect.list.gap')}
|
163
|
-
}
|
164
|
-
|
165
|
-
.p-multiselect-option {
|
166
|
-
cursor: pointer;
|
167
|
-
font-weight: normal;
|
168
|
-
white-space: nowrap;
|
169
|
-
position: relative;
|
170
|
-
overflow: hidden;
|
171
|
-
display: flex;
|
172
|
-
align-items: center;
|
173
|
-
gap: ${dt('multiselect.option.gap')};
|
174
|
-
padding: ${dt('multiselect.option.padding')};
|
175
|
-
border: 0 none;
|
176
|
-
color: ${dt('multiselect.option.color')};
|
177
|
-
background: transparent;
|
178
|
-
transition: background ${dt('multiselect.transition.duration')}, color ${dt('multiselect.transition.duration')}, border-color ${dt('multiselect.transition.duration')}, box-shadow ${dt('multiselect.transition.duration')}, outline-color ${dt('multiselect.transition.duration')};
|
179
|
-
border-radius: ${dt('multiselect.option.border.radius')}
|
180
|
-
}
|
181
|
-
|
182
|
-
.p-multiselect-option:not(.p-multiselect-option-selected):not(.p-disabled).p-focus {
|
183
|
-
background: ${dt('multiselect.option.focus.background')};
|
184
|
-
color: ${dt('multiselect.option.focus.color')};
|
185
|
-
}
|
186
|
-
|
187
|
-
.p-multiselect-option.p-multiselect-option-selected {
|
188
|
-
background: ${dt('multiselect.option.selected.background')};
|
189
|
-
color: ${dt('multiselect.option.selected.color')};
|
190
|
-
}
|
191
|
-
|
192
|
-
.p-multiselect-option.p-multiselect-option-selected.p-focus {
|
193
|
-
background: ${dt('multiselect.option.selected.focus.background')};
|
194
|
-
color: ${dt('multiselect.option.selected.focus.color')};
|
195
|
-
}
|
196
|
-
|
197
|
-
.p-multiselect-option-group {
|
198
|
-
cursor: auto;
|
199
|
-
margin: 0;
|
200
|
-
padding: ${dt('multiselect.option.group.padding')};
|
201
|
-
background: ${dt('multiselect.option.group.background')};
|
202
|
-
color: ${dt('multiselect.option.group.color')};
|
203
|
-
font-weight: ${dt('multiselect.option.group.font.weight')};
|
204
|
-
}
|
205
|
-
|
206
|
-
.p-multiselect-empty-message {
|
207
|
-
padding: ${dt('multiselect.empty.message.padding')};
|
208
|
-
}
|
30
|
+
const theme = css `
|
31
|
+
${style}
|
209
32
|
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
.p-multiselect-label
|
217
|
-
|
218
|
-
}
|
219
|
-
|
220
|
-
.p-multiselect-fluid {
|
221
|
-
display: flex;
|
222
|
-
}
|
223
|
-
|
224
|
-
.p-multiselect-sm .p-multiselect-label {
|
225
|
-
font-size: ${dt('multiselect.sm.font.size')};
|
226
|
-
padding-block: ${dt('multiselect.sm.padding.y')};
|
227
|
-
padding-inline: ${dt('multiselect.sm.padding.x')};
|
228
|
-
}
|
229
|
-
|
230
|
-
.p-multiselect-sm .p-multiselect-dropdown .p-icon {
|
231
|
-
font-size: ${dt('multiselect.sm.font.size')};
|
232
|
-
width: ${dt('multiselect.sm.font.size')};
|
233
|
-
height: ${dt('multiselect.sm.font.size')};
|
234
|
-
}
|
235
|
-
|
236
|
-
.p-multiselect-lg .p-multiselect-label {
|
237
|
-
font-size: ${dt('multiselect.lg.font.size')};
|
238
|
-
padding-block: ${dt('multiselect.lg.padding.y')};
|
239
|
-
padding-inline: ${dt('multiselect.lg.padding.x')};
|
240
|
-
}
|
241
|
-
|
242
|
-
.p-multiselect-lg .p-multiselect-dropdown .p-icon {
|
243
|
-
font-size: ${dt('multiselect.lg.font.size')};
|
244
|
-
width: ${dt('multiselect.lg.font.size')};
|
245
|
-
height: ${dt('multiselect.lg.font.size')};
|
246
|
-
}
|
247
|
-
|
248
|
-
.p-multiselect-clear-icon {
|
249
|
-
cursor: pointer;
|
250
|
-
display: flex;
|
251
|
-
align-items: center;
|
252
|
-
justify-content: center;
|
253
|
-
flex-shrink: 0;
|
254
|
-
background: transparent;
|
255
|
-
color: ${dt('multiselect.clear.icon.color')};
|
256
|
-
}`;
|
33
|
+
/* For PrimeNG */
|
34
|
+
.p-multiselect.ng-invalid.ng-dirty {
|
35
|
+
border-color: ${dt('multiselect.invalid.border.color')};
|
36
|
+
}
|
37
|
+
p-multiSelect.ng-invalid.ng-dirty .p-multiselect-label.p-placeholder,
|
38
|
+
p-multi-select.ng-invalid.ng-dirty .p-multiselect-label.p-placeholder,
|
39
|
+
p-multiselect.ng-invalid.ng-dirty .p-multiselect-label.p-placeholder {
|
40
|
+
color: ${dt('multiselect.invalid.placeholder.color')};
|
41
|
+
}
|
42
|
+
`;
|
257
43
|
const inlineStyles = {
|
258
|
-
root: ({
|
44
|
+
root: ({ instance }) => ({ position: instance.$appendTo() === 'self' ? 'relative' : undefined })
|
259
45
|
};
|
260
46
|
const classes = {
|
261
|
-
root: ({ instance }) =>
|
262
|
-
'p-multiselect p-component p-inputwrapper'
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
47
|
+
root: ({ instance }) => [
|
48
|
+
'p-multiselect p-component p-inputwrapper',
|
49
|
+
{
|
50
|
+
'p-multiselect p-component p-inputwrapper': true,
|
51
|
+
'p-multiselect-display-chip': instance.display === 'chip',
|
52
|
+
'p-disabled': instance.disabled(),
|
53
|
+
'p-invalid': instance.invalid(),
|
54
|
+
'p-variant-filled': instance.$variant(),
|
55
|
+
'p-focus': instance.focused,
|
56
|
+
'p-inputwrapper-filled': instance.$filled(),
|
57
|
+
'p-inputwrapper-focus': instance.focused || instance.overlayVisible,
|
58
|
+
'p-multiselect-open': instance.overlayVisible,
|
59
|
+
'p-multiselect-fluid': instance.hasFluid,
|
60
|
+
'p-multiselect-sm p-inputfield-sm': instance.size() === 'small',
|
61
|
+
'p-multiselect-lg p-inputfield-lg': instance.size() === 'large'
|
62
|
+
}
|
63
|
+
],
|
275
64
|
labelContainer: 'p-multiselect-label-container',
|
276
65
|
label: ({ instance }) => ({
|
277
66
|
'p-multiselect-label': true,
|
@@ -291,23 +80,24 @@ const classes = {
|
|
291
80
|
listContainer: 'p-multiselect-list-container',
|
292
81
|
list: 'p-multiselect-list',
|
293
82
|
optionGroup: 'p-multiselect-option-group',
|
294
|
-
option: ({ instance
|
83
|
+
option: ({ instance }) => ({
|
295
84
|
'p-multiselect-option': true,
|
296
|
-
'p-multiselect-option-selected': instance.
|
297
|
-
'p-
|
298
|
-
'p-
|
85
|
+
'p-multiselect-option-selected': instance.selected && instance.highlightOnSelect,
|
86
|
+
'p-disabled': instance.disabled,
|
87
|
+
'p-focus': instance.focused
|
299
88
|
}),
|
300
|
-
emptyMessage: 'p-multiselect-empty-message'
|
89
|
+
emptyMessage: 'p-multiselect-empty-message',
|
90
|
+
clearIcon: 'p-multiselect-clear-icon'
|
301
91
|
};
|
302
92
|
class MultiSelectStyle extends BaseStyle {
|
303
93
|
name = 'multiselect';
|
304
94
|
theme = theme;
|
305
95
|
classes = classes;
|
306
96
|
inlineStyles = inlineStyles;
|
307
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
308
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
97
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: MultiSelectStyle, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
98
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: MultiSelectStyle });
|
309
99
|
}
|
310
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
100
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: MultiSelectStyle, decorators: [{
|
311
101
|
type: Injectable
|
312
102
|
}] });
|
313
103
|
/**
|
@@ -393,6 +183,10 @@ var MultiSelectClasses;
|
|
393
183
|
* Class name of the empty message element
|
394
184
|
*/
|
395
185
|
MultiSelectClasses["emptyMessage"] = "p-multiselect-empty-message";
|
186
|
+
/**
|
187
|
+
* Class name of the clear icon
|
188
|
+
*/
|
189
|
+
MultiSelectClasses["clearIcon"] = "p-autocomplete-clear-icon";
|
396
190
|
})(MultiSelectClasses || (MultiSelectClasses = {}));
|
397
191
|
|
398
192
|
const MULTISELECT_VALUE_ACCESSOR = {
|
@@ -417,6 +211,7 @@ class MultiSelectItem extends BaseComponent {
|
|
417
211
|
highlightOnSelect;
|
418
212
|
onClick = new EventEmitter();
|
419
213
|
onMouseEnter = new EventEmitter();
|
214
|
+
_componentStyle = inject(MultiSelectStyle);
|
420
215
|
onOptionClick(event) {
|
421
216
|
this.onClick.emit({
|
422
217
|
originalEvent: event,
|
@@ -433,18 +228,13 @@ class MultiSelectItem extends BaseComponent {
|
|
433
228
|
selected: this.selected
|
434
229
|
});
|
435
230
|
}
|
436
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
437
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "
|
231
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: MultiSelectItem, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
232
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "20.0.6", 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", highlightOnSelect: ["highlightOnSelect", "highlightOnSelect", booleanAttribute] }, outputs: { onClick: "onClick", onMouseEnter: "onMouseEnter" }, providers: [MultiSelectStyle], usesInheritance: true, ngImport: i0, template: `
|
438
233
|
<li
|
439
234
|
pRipple
|
440
|
-
class="
|
235
|
+
[class]="cx('option')"
|
441
236
|
role="option"
|
442
237
|
[ngStyle]="{ height: itemSize + 'px' }"
|
443
|
-
[ngClass]="{
|
444
|
-
'p-multiselect-option-selected': selected && highlightOnSelect,
|
445
|
-
'p-disabled': disabled,
|
446
|
-
'p-focus': focused
|
447
|
-
}"
|
448
238
|
[id]="id"
|
449
239
|
[attr.aria-label]="label"
|
450
240
|
[attr.aria-setsize]="ariaSetSize"
|
@@ -467,9 +257,9 @@ class MultiSelectItem extends BaseComponent {
|
|
467
257
|
<span *ngIf="!template">{{ label ?? 'empty' }}</span>
|
468
258
|
<ng-container *ngTemplateOutlet="template; context: { $implicit: option }"></ng-container>
|
469
259
|
</li>
|
470
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.
|
260
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { 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", "binary", "ariaLabelledBy", "ariaLabel", "tabindex", "inputId", "inputStyle", "styleClass", "inputClass", "indeterminate", "formControl", "checkboxIcon", "readonly", "autofocus", "trueValue", "falseValue", "variant", "size"], 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 });
|
471
261
|
}
|
472
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
262
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: MultiSelectItem, decorators: [{
|
473
263
|
type: Component,
|
474
264
|
args: [{
|
475
265
|
selector: 'p-multiSelectItem, p-multiselect-item',
|
@@ -478,14 +268,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
478
268
|
template: `
|
479
269
|
<li
|
480
270
|
pRipple
|
481
|
-
class="
|
271
|
+
[class]="cx('option')"
|
482
272
|
role="option"
|
483
273
|
[ngStyle]="{ height: itemSize + 'px' }"
|
484
|
-
[ngClass]="{
|
485
|
-
'p-multiselect-option-selected': selected && highlightOnSelect,
|
486
|
-
'p-disabled': disabled,
|
487
|
-
'p-focus': focused
|
488
|
-
}"
|
489
274
|
[id]="id"
|
490
275
|
[attr.aria-label]="label"
|
491
276
|
[attr.aria-setsize]="ariaSetSize"
|
@@ -509,7 +294,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
509
294
|
<ng-container *ngTemplateOutlet="template; context: { $implicit: option }"></ng-container>
|
510
295
|
</li>
|
511
296
|
`,
|
512
|
-
encapsulation: ViewEncapsulation.None
|
297
|
+
encapsulation: ViewEncapsulation.None,
|
298
|
+
providers: [MultiSelectStyle]
|
513
299
|
}]
|
514
300
|
}], propDecorators: { id: [{
|
515
301
|
type: Input
|
@@ -549,12 +335,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
549
335
|
}], onMouseEnter: [{
|
550
336
|
type: Output
|
551
337
|
}] } });
|
552
|
-
// @ts-ignore
|
553
338
|
/**
|
554
339
|
* MultiSelect is used to select multiple items from a collection.
|
555
340
|
* @group Components
|
556
341
|
*/
|
557
|
-
class MultiSelect extends
|
342
|
+
class MultiSelect extends BaseEditableHolder {
|
558
343
|
zone;
|
559
344
|
filterService;
|
560
345
|
overlayService;
|
@@ -568,13 +353,9 @@ class MultiSelect extends BaseComponent {
|
|
568
353
|
* @group Props
|
569
354
|
*/
|
570
355
|
ariaLabel;
|
571
|
-
/**
|
572
|
-
* Inline style of the element.
|
573
|
-
* @group Props
|
574
|
-
*/
|
575
|
-
style;
|
576
356
|
/**
|
577
357
|
* Style class of the element.
|
358
|
+
* @deprecated since v20.0.0, use `class` instead.
|
578
359
|
* @group Props
|
579
360
|
*/
|
580
361
|
styleClass;
|
@@ -593,16 +374,6 @@ class MultiSelect extends BaseComponent {
|
|
593
374
|
* @group Props
|
594
375
|
*/
|
595
376
|
inputId;
|
596
|
-
/**
|
597
|
-
* When present, it specifies that the element should be disabled.
|
598
|
-
* @group Props
|
599
|
-
*/
|
600
|
-
disabled;
|
601
|
-
/**
|
602
|
-
* Spans 100% width of the container when enabled.
|
603
|
-
* @group Props
|
604
|
-
*/
|
605
|
-
fluid;
|
606
377
|
/**
|
607
378
|
* When present, it specifies that the component cannot be edited.
|
608
379
|
* @group Props
|
@@ -638,26 +409,11 @@ class MultiSelect extends BaseComponent {
|
|
638
409
|
* @group Props
|
639
410
|
*/
|
640
411
|
tabindex = 0;
|
641
|
-
/**
|
642
|
-
* Specifies the input variant of the component.
|
643
|
-
* @group Props
|
644
|
-
*/
|
645
|
-
variant;
|
646
|
-
/**
|
647
|
-
* Target element to attach the overlay, valid values are "body" or a local ng-template variable of another element (note: use binding with brackets for template variables, e.g. [appendTo]="mydiv" for a div element having #mydiv as variable name).
|
648
|
-
* @group Props
|
649
|
-
*/
|
650
|
-
appendTo;
|
651
412
|
/**
|
652
413
|
* A property to uniquely identify a value in options.
|
653
414
|
* @group Props
|
654
415
|
*/
|
655
416
|
dataKey;
|
656
|
-
/**
|
657
|
-
* Name of the input element.
|
658
|
-
* @group Props
|
659
|
-
*/
|
660
|
-
name;
|
661
417
|
/**
|
662
418
|
* Establishes relationships between the component and label(s) where its value should be one or more element IDs.
|
663
419
|
* @group Props
|
@@ -845,11 +601,6 @@ class MultiSelect extends BaseComponent {
|
|
845
601
|
* @group Props
|
846
602
|
*/
|
847
603
|
autocomplete = 'off';
|
848
|
-
/**
|
849
|
-
* Defines the size of the component.
|
850
|
-
* @group Props
|
851
|
-
*/
|
852
|
-
size;
|
853
604
|
/**
|
854
605
|
* When enabled, a clear icon is displayed to clear the value.
|
855
606
|
* @group Props
|
@@ -860,66 +611,6 @@ class MultiSelect extends BaseComponent {
|
|
860
611
|
* @group Props
|
861
612
|
*/
|
862
613
|
autofocus;
|
863
|
-
/**
|
864
|
-
* @deprecated since v14.2.0, use overlayOptions property instead.
|
865
|
-
* Whether to automatically manage layering.
|
866
|
-
* @group Props
|
867
|
-
*/
|
868
|
-
get autoZIndex() {
|
869
|
-
return this._autoZIndex;
|
870
|
-
}
|
871
|
-
set autoZIndex(val) {
|
872
|
-
this._autoZIndex = val;
|
873
|
-
console.log('The autoZIndex property is deprecated since v14.2.0, use overlayOptions property instead.');
|
874
|
-
}
|
875
|
-
/**
|
876
|
-
* @deprecated since v14.2.0, use overlayOptions property instead.
|
877
|
-
* Base zIndex value to use in layering.
|
878
|
-
* @group Props
|
879
|
-
*/
|
880
|
-
get baseZIndex() {
|
881
|
-
return this._baseZIndex;
|
882
|
-
}
|
883
|
-
set baseZIndex(val) {
|
884
|
-
this._baseZIndex = val;
|
885
|
-
console.log('The baseZIndex property is deprecated since v14.2.0, use overlayOptions property instead.');
|
886
|
-
}
|
887
|
-
/**
|
888
|
-
* Transition options of the show animation.
|
889
|
-
* @group Props
|
890
|
-
* @deprecated since v14.2.0, use overlayOptions property instead.
|
891
|
-
*/
|
892
|
-
get showTransitionOptions() {
|
893
|
-
return this._showTransitionOptions;
|
894
|
-
}
|
895
|
-
set showTransitionOptions(val) {
|
896
|
-
this._showTransitionOptions = val;
|
897
|
-
console.log('The showTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.');
|
898
|
-
}
|
899
|
-
/**
|
900
|
-
* Transition options of the hide animation.
|
901
|
-
* @group Props
|
902
|
-
* @deprecated since v14.2.0, use overlayOptions property instead.
|
903
|
-
*/
|
904
|
-
get hideTransitionOptions() {
|
905
|
-
return this._hideTransitionOptions;
|
906
|
-
}
|
907
|
-
set hideTransitionOptions(val) {
|
908
|
-
this._hideTransitionOptions = val;
|
909
|
-
console.log('The hideTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.');
|
910
|
-
}
|
911
|
-
/**
|
912
|
-
* Label to display when there are no selections.
|
913
|
-
* @group Props
|
914
|
-
* @deprecated Use placeholder instead.
|
915
|
-
*/
|
916
|
-
set defaultLabel(val) {
|
917
|
-
this._defaultLabel = val;
|
918
|
-
console.log('defaultLabel property is deprecated since 16.6.0, use placeholder instead');
|
919
|
-
}
|
920
|
-
get defaultLabel() {
|
921
|
-
return this._defaultLabel;
|
922
|
-
}
|
923
614
|
/**
|
924
615
|
* Label to display when there are no selections.
|
925
616
|
* @group Props
|
@@ -952,18 +643,6 @@ class MultiSelect extends BaseComponent {
|
|
952
643
|
set filterValue(val) {
|
953
644
|
this._filterValue.set(val);
|
954
645
|
}
|
955
|
-
/**
|
956
|
-
* Item size of item to be virtual scrolled.
|
957
|
-
* @group Props
|
958
|
-
* @deprecated use virtualScrollItemSize property instead.
|
959
|
-
*/
|
960
|
-
get itemSize() {
|
961
|
-
return this._itemSize;
|
962
|
-
}
|
963
|
-
set itemSize(val) {
|
964
|
-
this._itemSize = val;
|
965
|
-
console.log('The itemSize property is deprecated, use virtualScrollItemSize property instead.');
|
966
|
-
}
|
967
646
|
/**
|
968
647
|
* Whether all data is selected.
|
969
648
|
* @group Props
|
@@ -999,6 +678,30 @@ class MultiSelect extends BaseComponent {
|
|
999
678
|
* @group Props
|
1000
679
|
*/
|
1001
680
|
highlightOnSelect = true;
|
681
|
+
/**
|
682
|
+
* Specifies the size of the component.
|
683
|
+
* @defaultValue undefined
|
684
|
+
* @group Props
|
685
|
+
*/
|
686
|
+
size = input();
|
687
|
+
/**
|
688
|
+
* Specifies the input variant of the component.
|
689
|
+
* @defaultValue undefined
|
690
|
+
* @group Props
|
691
|
+
*/
|
692
|
+
variant = input();
|
693
|
+
/**
|
694
|
+
* Spans 100% width of the container when enabled.
|
695
|
+
* @defaultValue undefined
|
696
|
+
* @group Props
|
697
|
+
*/
|
698
|
+
fluid = input(undefined, { transform: booleanAttribute });
|
699
|
+
/**
|
700
|
+
* Target element to attach the overlay, valid values are "body" or a local ng-template variable of another element (note: use binding with brackets for template variables, e.g. [appendTo]="mydiv" for a div element having #mydiv as variable name).
|
701
|
+
* @defaultValue 'self'
|
702
|
+
* @group Props
|
703
|
+
*/
|
704
|
+
appendTo = input(undefined);
|
1002
705
|
/**
|
1003
706
|
* Callback to invoke when value changes.
|
1004
707
|
* @param {MultiSelectChangeEvent} event - Custom change event.
|
@@ -1078,20 +781,12 @@ class MultiSelect extends BaseComponent {
|
|
1078
781
|
searchValue;
|
1079
782
|
searchTimeout;
|
1080
783
|
_selectAll = null;
|
1081
|
-
_autoZIndex;
|
1082
|
-
_baseZIndex;
|
1083
|
-
_showTransitionOptions;
|
1084
|
-
_hideTransitionOptions;
|
1085
|
-
_defaultLabel;
|
1086
784
|
_placeholder = signal(undefined);
|
1087
|
-
_itemSize;
|
1088
|
-
_selectionLimit;
|
1089
785
|
_disableTooltip = false;
|
1090
786
|
value;
|
1091
787
|
_filteredOptions;
|
1092
788
|
onModelChange = () => { };
|
1093
789
|
onModelTouched = () => { };
|
1094
|
-
valuesAsString;
|
1095
790
|
focus;
|
1096
791
|
filtered;
|
1097
792
|
itemTemplate;
|
@@ -1103,7 +798,6 @@ class MultiSelect extends BaseComponent {
|
|
1103
798
|
emptyFilterTemplate;
|
1104
799
|
emptyTemplate;
|
1105
800
|
selectedItemsTemplate;
|
1106
|
-
checkIconTemplate;
|
1107
801
|
loadingIconTemplate;
|
1108
802
|
filterIconTemplate;
|
1109
803
|
removeTokenIconTemplate;
|
@@ -1122,7 +816,6 @@ class MultiSelect extends BaseComponent {
|
|
1122
816
|
_emptyFilterTemplate;
|
1123
817
|
_emptyTemplate;
|
1124
818
|
_selectedItemsTemplate;
|
1125
|
-
_checkIconTemplate;
|
1126
819
|
_loadingIconTemplate;
|
1127
820
|
_filterIconTemplate;
|
1128
821
|
_removeTokenIconTemplate;
|
@@ -1131,6 +824,12 @@ class MultiSelect extends BaseComponent {
|
|
1131
824
|
_dropdownIconTemplate;
|
1132
825
|
_itemCheckboxIconTemplate;
|
1133
826
|
_headerCheckboxIconTemplate;
|
827
|
+
$variant = computed(() => this.variant() || this.config.inputStyle() || this.config.inputVariant());
|
828
|
+
$appendTo = computed(() => this.appendTo() || this.config.overlayAppendTo());
|
829
|
+
pcFluid = inject(Fluid, { optional: true, host: true, skipSelf: true });
|
830
|
+
get hasFluid() {
|
831
|
+
return this.fluid() ?? !!this.pcFluid;
|
832
|
+
}
|
1134
833
|
ngAfterContentInit() {
|
1135
834
|
this.templates.forEach((item) => {
|
1136
835
|
switch (item.getType()) {
|
@@ -1162,10 +861,6 @@ class MultiSelect extends BaseComponent {
|
|
1162
861
|
case 'loader':
|
1163
862
|
this._loaderTemplate = item.template;
|
1164
863
|
break;
|
1165
|
-
case 'checkicon':
|
1166
|
-
this._checkIconTemplate = item.template;
|
1167
|
-
console.warn('checkicon is deprecated and will removed in future. Use itemcheckboxicon or headercheckboxicon templates instead.');
|
1168
|
-
break;
|
1169
864
|
case 'headercheckboxicon':
|
1170
865
|
this._headerCheckboxIconTemplate = item.template;
|
1171
866
|
break;
|
@@ -1199,7 +894,6 @@ class MultiSelect extends BaseComponent {
|
|
1199
894
|
headerCheckboxFocus;
|
1200
895
|
filterOptions;
|
1201
896
|
preventModelTouched;
|
1202
|
-
preventDocumentDefault;
|
1203
897
|
focused = false;
|
1204
898
|
itemsWrapper;
|
1205
899
|
_displaySelectedLabel = true;
|
@@ -1211,58 +905,21 @@ class MultiSelect extends BaseComponent {
|
|
1211
905
|
focusedOptionIndex = signal(-1);
|
1212
906
|
selectedOptions;
|
1213
907
|
clickInProgress = false;
|
1214
|
-
get hostClasses() {
|
1215
|
-
const classes = [];
|
1216
|
-
if (typeof this.rootClass === 'string') {
|
1217
|
-
classes.push(this.rootClass);
|
1218
|
-
}
|
1219
|
-
else if (Array.isArray(this.rootClass)) {
|
1220
|
-
classes.push(...this.rootClass);
|
1221
|
-
}
|
1222
|
-
else if (typeof this.rootClass === 'object') {
|
1223
|
-
Object.keys(this.rootClass)
|
1224
|
-
.filter((key) => this.rootClass[key])
|
1225
|
-
.forEach((key) => classes.push(key));
|
1226
|
-
}
|
1227
|
-
if (this.styleClass) {
|
1228
|
-
classes.push(this.styleClass);
|
1229
|
-
}
|
1230
|
-
return classes.join(' ');
|
1231
|
-
}
|
1232
|
-
get rootClass() {
|
1233
|
-
return this._componentStyle.classes.root({ instance: this });
|
1234
|
-
}
|
1235
|
-
get labelClass() {
|
1236
|
-
return this._componentStyle.classes.label({ instance: this });
|
1237
|
-
}
|
1238
908
|
get emptyMessageLabel() {
|
1239
909
|
return this.emptyMessage || this.config.getTranslation(TranslationKeys.EMPTY_MESSAGE);
|
1240
910
|
}
|
1241
911
|
get emptyFilterMessageLabel() {
|
1242
912
|
return this.emptyFilterMessage || this.config.getTranslation(TranslationKeys.EMPTY_FILTER_MESSAGE);
|
1243
913
|
}
|
1244
|
-
get filled() {
|
1245
|
-
if (typeof this.modelValue() === 'string')
|
1246
|
-
return !!this.modelValue();
|
1247
|
-
return isNotEmpty(this.modelValue());
|
1248
|
-
}
|
1249
914
|
get isVisibleClearIcon() {
|
1250
|
-
return this.modelValue() != null && this.modelValue() !== '' && isNotEmpty(this.modelValue()) && this.showClear && !this.disabled && !this.readonly && this
|
915
|
+
return this.modelValue() != null && this.modelValue() !== '' && isNotEmpty(this.modelValue()) && this.showClear && !this.disabled() && !this.readonly && this.$filled();
|
1251
916
|
}
|
1252
917
|
get toggleAllAriaLabel() {
|
1253
918
|
return this.config.translation.aria ? this.config.translation.aria[this.allSelected() ? 'selectAll' : 'unselectAll'] : undefined;
|
1254
919
|
}
|
1255
|
-
get closeAriaLabel() {
|
1256
|
-
return this.config.translation.aria ? this.config.translation.aria.close : undefined;
|
1257
|
-
}
|
1258
920
|
get listLabel() {
|
1259
921
|
return this.config.getTranslation(TranslationKeys.ARIA)['listLabel'];
|
1260
922
|
}
|
1261
|
-
get hasFluid() {
|
1262
|
-
const nativeElement = this.el.nativeElement;
|
1263
|
-
const fluidComponent = nativeElement.closest('p-fluid');
|
1264
|
-
return this.fluid || !!fluidComponent;
|
1265
|
-
}
|
1266
923
|
getAllVisibleAndNonVisibleOptions() {
|
1267
924
|
return this.group ? this.flatOptions(this.options) : this.options || [];
|
1268
925
|
}
|
@@ -1313,7 +970,7 @@ class MultiSelect extends BaseComponent {
|
|
1313
970
|
}
|
1314
971
|
}
|
1315
972
|
else {
|
1316
|
-
label = this.placeholder() ||
|
973
|
+
label = this.placeholder() || '';
|
1317
974
|
}
|
1318
975
|
return label;
|
1319
976
|
});
|
@@ -1391,7 +1048,7 @@ class MultiSelect extends BaseComponent {
|
|
1391
1048
|
updateModel(value, event) {
|
1392
1049
|
this.value = value;
|
1393
1050
|
this.onModelChange(value);
|
1394
|
-
this.
|
1051
|
+
this.writeValue(value);
|
1395
1052
|
}
|
1396
1053
|
onInputClick(event) {
|
1397
1054
|
event.stopPropagation();
|
@@ -1400,7 +1057,7 @@ class MultiSelect extends BaseComponent {
|
|
1400
1057
|
}
|
1401
1058
|
onOptionSelect(event, isFocus = false, index = -1) {
|
1402
1059
|
const { originalEvent, option } = event;
|
1403
|
-
if (this.disabled || this.isOptionDisabled(option)) {
|
1060
|
+
if (this.disabled() || this.isOptionDisabled(option)) {
|
1404
1061
|
return;
|
1405
1062
|
}
|
1406
1063
|
let selected = this.isSelected(option);
|
@@ -1546,7 +1203,7 @@ class MultiSelect extends BaseComponent {
|
|
1546
1203
|
return this.optionGroupChildren ? resolveFieldData(optionGroup, this.optionGroupChildren) : optionGroup.items;
|
1547
1204
|
}
|
1548
1205
|
onKeyDown(event) {
|
1549
|
-
if (this.disabled) {
|
1206
|
+
if (this.disabled()) {
|
1550
1207
|
event.preventDefault();
|
1551
1208
|
return;
|
1552
1209
|
}
|
@@ -1730,12 +1387,6 @@ class MultiSelect extends BaseComponent {
|
|
1730
1387
|
event.stopPropagation();
|
1731
1388
|
event.preventDefault();
|
1732
1389
|
}
|
1733
|
-
onDeleteKey(event) {
|
1734
|
-
if (this.showClear) {
|
1735
|
-
this.clear(event);
|
1736
|
-
event.preventDefault();
|
1737
|
-
}
|
1738
|
-
}
|
1739
1390
|
onTabKey(event, pressedInInputText = false) {
|
1740
1391
|
if (!pressedInInputText) {
|
1741
1392
|
if (this.overlayVisible && this.hasFocusableElements()) {
|
@@ -1754,7 +1405,7 @@ class MultiSelect extends BaseComponent {
|
|
1754
1405
|
this.startRangeIndex.set(this.focusedOptionIndex());
|
1755
1406
|
}
|
1756
1407
|
onContainerClick(event) {
|
1757
|
-
if (this.disabled || this.loading || this.readonly || event.target.isSameNode(this.focusInputViewChild?.nativeElement)) {
|
1408
|
+
if (this.disabled() || this.loading || this.readonly || event.target.isSameNode(this.focusInputViewChild?.nativeElement)) {
|
1758
1409
|
return;
|
1759
1410
|
}
|
1760
1411
|
if (!this.overlayViewChild || !this.overlayViewChild.el.nativeElement.contains(event.target)) {
|
@@ -1809,33 +1460,11 @@ class MultiSelect extends BaseComponent {
|
|
1809
1460
|
this.changeFocusedOptionIndex(event, index);
|
1810
1461
|
}
|
1811
1462
|
}
|
1812
|
-
onHeaderCheckboxKeyDown(event) {
|
1813
|
-
if (this.disabled) {
|
1814
|
-
event.preventDefault();
|
1815
|
-
return;
|
1816
|
-
}
|
1817
|
-
switch (event.code) {
|
1818
|
-
case 'Space':
|
1819
|
-
this.onToggleAll(event);
|
1820
|
-
break;
|
1821
|
-
case 'Enter':
|
1822
|
-
this.onToggleAll(event);
|
1823
|
-
break;
|
1824
|
-
default:
|
1825
|
-
break;
|
1826
|
-
}
|
1827
|
-
}
|
1828
1463
|
onFilterBlur(event) {
|
1829
1464
|
this.focusedOptionIndex.set(-1);
|
1830
1465
|
}
|
1831
|
-
onHeaderCheckboxFocus() {
|
1832
|
-
this.headerCheckboxFocus = true;
|
1833
|
-
}
|
1834
|
-
onHeaderCheckboxBlur() {
|
1835
|
-
this.headerCheckboxFocus = false;
|
1836
|
-
}
|
1837
1466
|
onToggleAll(event) {
|
1838
|
-
if (this.disabled || this.readonly) {
|
1467
|
+
if (this.disabled() || this.readonly) {
|
1839
1468
|
return;
|
1840
1469
|
}
|
1841
1470
|
if (this.selectAll != null) {
|
@@ -1900,7 +1529,7 @@ class MultiSelect extends BaseComponent {
|
|
1900
1529
|
}
|
1901
1530
|
writeValue(value) {
|
1902
1531
|
this.value = value;
|
1903
|
-
this.
|
1532
|
+
this.writeModelValue(value);
|
1904
1533
|
this.cd.markForCheck();
|
1905
1534
|
}
|
1906
1535
|
registerOnChange(fn) {
|
@@ -1909,10 +1538,6 @@ class MultiSelect extends BaseComponent {
|
|
1909
1538
|
registerOnTouched(fn) {
|
1910
1539
|
this.onModelTouched = fn;
|
1911
1540
|
}
|
1912
|
-
setDisabledState(val) {
|
1913
|
-
this.disabled = val;
|
1914
|
-
this.cd.markForCheck();
|
1915
|
-
}
|
1916
1541
|
allSelected() {
|
1917
1542
|
return this.selectAll !== null ? this.selectAll : isNotEmpty(this.visibleOptions()) && this.visibleOptions().every((option) => this.isOptionGroup(option) || this.isOptionDisabled(option) || this.isSelected(option));
|
1918
1543
|
}
|
@@ -2018,20 +1643,6 @@ class MultiSelect extends BaseComponent {
|
|
2018
1643
|
});
|
2019
1644
|
event && event.stopPropagation();
|
2020
1645
|
}
|
2021
|
-
findNextItem(item) {
|
2022
|
-
let nextItem = item.nextElementSibling;
|
2023
|
-
if (nextItem)
|
2024
|
-
return hasClass(nextItem.children[0], 'p-disabled') || isHidden(nextItem.children[0]) || hasClass(nextItem, 'p-multiselect-item-group') ? this.findNextItem(nextItem) : nextItem.children[0];
|
2025
|
-
else
|
2026
|
-
return null;
|
2027
|
-
}
|
2028
|
-
findPrevItem(item) {
|
2029
|
-
let prevItem = item.previousElementSibling;
|
2030
|
-
if (prevItem)
|
2031
|
-
return hasClass(prevItem.children[0], 'p-disabled') || isHidden(prevItem.children[0]) || hasClass(prevItem, 'p-multiselect-item-group') ? this.findPrevItem(prevItem) : prevItem.children[0];
|
2032
|
-
else
|
2033
|
-
return null;
|
2034
|
-
}
|
2035
1646
|
findNextOptionIndex(index) {
|
2036
1647
|
const matchedOptionIndex = index < this.visibleOptions().length - 1
|
2037
1648
|
? this.visibleOptions()
|
@@ -2090,34 +1701,14 @@ class MultiSelect extends BaseComponent {
|
|
2090
1701
|
}, 500);
|
2091
1702
|
return matched;
|
2092
1703
|
}
|
2093
|
-
activateFilter() {
|
2094
|
-
if (this.hasFilter() && this._options) {
|
2095
|
-
if (this.group) {
|
2096
|
-
let filteredGroups = [];
|
2097
|
-
for (let optgroup of this.options) {
|
2098
|
-
let filteredSubOptions = this.filterService.filter(this.getOptionGroupChildren(optgroup), this.searchFields(), this.filterValue, this.filterMatchMode, this.filterLocale);
|
2099
|
-
if (filteredSubOptions && filteredSubOptions.length) {
|
2100
|
-
filteredGroups.push({ ...optgroup, ...{ [this.optionGroupChildren]: filteredSubOptions } });
|
2101
|
-
}
|
2102
|
-
}
|
2103
|
-
this._filteredOptions = filteredGroups;
|
2104
|
-
}
|
2105
|
-
else {
|
2106
|
-
this._filteredOptions = this.filterService.filter(this.options, this.searchFields(), this.filterValue, this.filterMatchMode, this.filterLocale);
|
2107
|
-
}
|
2108
|
-
}
|
2109
|
-
else {
|
2110
|
-
this._filteredOptions = null;
|
2111
|
-
}
|
2112
|
-
}
|
2113
1704
|
hasFocusableElements() {
|
2114
1705
|
return getFocusableElements(this.overlayViewChild.overlayViewChild.nativeElement, ':not([data-p-hidden-focusable="true"])').length > 0;
|
2115
1706
|
}
|
2116
1707
|
hasFilter() {
|
2117
1708
|
return this._filterValue() && this._filterValue().trim().length > 0;
|
2118
1709
|
}
|
2119
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
2120
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.10", 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], highlightOnSelect: ["highlightOnSelect", "highlightOnSelect", 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: `
|
1710
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: MultiSelect, deps: [{ token: i0.NgZone }, { token: i3.FilterService }, { token: i3.OverlayService }], target: i0.ɵɵFactoryTarget.Component });
|
1711
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.6", type: MultiSelect, isStandalone: true, selector: "p-multiSelect, p-multiselect, p-multi-select", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: false, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: false, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: false, isRequired: false, transformFunction: null }, panelStyle: { classPropertyName: "panelStyle", publicName: "panelStyle", isSignal: false, isRequired: false, transformFunction: null }, panelStyleClass: { classPropertyName: "panelStyleClass", publicName: "panelStyleClass", isSignal: false, isRequired: false, transformFunction: null }, inputId: { classPropertyName: "inputId", publicName: "inputId", isSignal: false, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, group: { classPropertyName: "group", publicName: "group", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, filter: { classPropertyName: "filter", publicName: "filter", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, filterPlaceHolder: { classPropertyName: "filterPlaceHolder", publicName: "filterPlaceHolder", isSignal: false, isRequired: false, transformFunction: null }, filterLocale: { classPropertyName: "filterLocale", publicName: "filterLocale", isSignal: false, isRequired: false, transformFunction: null }, overlayVisible: { classPropertyName: "overlayVisible", publicName: "overlayVisible", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: false, isRequired: false, transformFunction: numberAttribute }, dataKey: { classPropertyName: "dataKey", publicName: "dataKey", isSignal: false, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: false, isRequired: false, transformFunction: null }, displaySelectedLabel: { classPropertyName: "displaySelectedLabel", publicName: "displaySelectedLabel", isSignal: false, isRequired: false, transformFunction: null }, maxSelectedLabels: { classPropertyName: "maxSelectedLabels", publicName: "maxSelectedLabels", isSignal: false, isRequired: false, transformFunction: null }, selectionLimit: { classPropertyName: "selectionLimit", publicName: "selectionLimit", isSignal: false, isRequired: false, transformFunction: numberAttribute }, selectedItemsLabel: { classPropertyName: "selectedItemsLabel", publicName: "selectedItemsLabel", isSignal: false, isRequired: false, transformFunction: null }, showToggleAll: { classPropertyName: "showToggleAll", publicName: "showToggleAll", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, emptyFilterMessage: { classPropertyName: "emptyFilterMessage", publicName: "emptyFilterMessage", isSignal: false, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: false, isRequired: false, transformFunction: null }, resetFilterOnHide: { classPropertyName: "resetFilterOnHide", publicName: "resetFilterOnHide", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, dropdownIcon: { classPropertyName: "dropdownIcon", publicName: "dropdownIcon", isSignal: false, isRequired: false, transformFunction: null }, chipIcon: { classPropertyName: "chipIcon", publicName: "chipIcon", isSignal: false, isRequired: false, transformFunction: null }, optionLabel: { classPropertyName: "optionLabel", publicName: "optionLabel", isSignal: false, isRequired: false, transformFunction: null }, optionValue: { classPropertyName: "optionValue", publicName: "optionValue", isSignal: false, isRequired: false, transformFunction: null }, optionDisabled: { classPropertyName: "optionDisabled", publicName: "optionDisabled", isSignal: false, isRequired: false, transformFunction: null }, optionGroupLabel: { classPropertyName: "optionGroupLabel", publicName: "optionGroupLabel", isSignal: false, isRequired: false, transformFunction: null }, optionGroupChildren: { classPropertyName: "optionGroupChildren", publicName: "optionGroupChildren", isSignal: false, isRequired: false, transformFunction: null }, showHeader: { classPropertyName: "showHeader", publicName: "showHeader", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, filterBy: { classPropertyName: "filterBy", publicName: "filterBy", isSignal: false, isRequired: false, transformFunction: null }, scrollHeight: { classPropertyName: "scrollHeight", publicName: "scrollHeight", isSignal: false, isRequired: false, transformFunction: null }, lazy: { classPropertyName: "lazy", publicName: "lazy", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, virtualScroll: { classPropertyName: "virtualScroll", publicName: "virtualScroll", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, virtualScrollItemSize: { classPropertyName: "virtualScrollItemSize", publicName: "virtualScrollItemSize", isSignal: false, isRequired: false, transformFunction: numberAttribute }, loadingIcon: { classPropertyName: "loadingIcon", publicName: "loadingIcon", isSignal: false, isRequired: false, transformFunction: null }, virtualScrollOptions: { classPropertyName: "virtualScrollOptions", publicName: "virtualScrollOptions", isSignal: false, isRequired: false, transformFunction: null }, overlayOptions: { classPropertyName: "overlayOptions", publicName: "overlayOptions", isSignal: false, isRequired: false, transformFunction: null }, ariaFilterLabel: { classPropertyName: "ariaFilterLabel", publicName: "ariaFilterLabel", isSignal: false, isRequired: false, transformFunction: null }, filterMatchMode: { classPropertyName: "filterMatchMode", publicName: "filterMatchMode", isSignal: false, isRequired: false, transformFunction: null }, tooltip: { classPropertyName: "tooltip", publicName: "tooltip", isSignal: false, isRequired: false, transformFunction: null }, tooltipPosition: { classPropertyName: "tooltipPosition", publicName: "tooltipPosition", isSignal: false, isRequired: false, transformFunction: null }, tooltipPositionStyle: { classPropertyName: "tooltipPositionStyle", publicName: "tooltipPositionStyle", isSignal: false, isRequired: false, transformFunction: null }, tooltipStyleClass: { classPropertyName: "tooltipStyleClass", publicName: "tooltipStyleClass", isSignal: false, isRequired: false, transformFunction: null }, autofocusFilter: { classPropertyName: "autofocusFilter", publicName: "autofocusFilter", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, display: { classPropertyName: "display", publicName: "display", isSignal: false, isRequired: false, transformFunction: null }, autocomplete: { classPropertyName: "autocomplete", publicName: "autocomplete", isSignal: false, isRequired: false, transformFunction: null }, showClear: { classPropertyName: "showClear", publicName: "showClear", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, autofocus: { classPropertyName: "autofocus", publicName: "autofocus", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: false, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: false, isRequired: false, transformFunction: null }, filterValue: { classPropertyName: "filterValue", publicName: "filterValue", isSignal: false, isRequired: false, transformFunction: null }, selectAll: { classPropertyName: "selectAll", publicName: "selectAll", isSignal: false, isRequired: false, transformFunction: null }, focusOnHover: { classPropertyName: "focusOnHover", publicName: "focusOnHover", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, filterFields: { classPropertyName: "filterFields", publicName: "filterFields", isSignal: false, isRequired: false, transformFunction: null }, selectOnFocus: { classPropertyName: "selectOnFocus", publicName: "selectOnFocus", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, autoOptionFocus: { classPropertyName: "autoOptionFocus", publicName: "autoOptionFocus", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, highlightOnSelect: { classPropertyName: "highlightOnSelect", publicName: "highlightOnSelect", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null } }, 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", "class": "cn(cx('root'), styleClass)", "style": "sx('root')" } }, 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: "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: `
|
2121
1712
|
<div class="p-hidden-accessible" [attr.data-p-hidden-accessible]="true">
|
2122
1713
|
<input
|
2123
1714
|
#focusInput
|
@@ -2125,7 +1716,7 @@ class MultiSelect extends BaseComponent {
|
|
2125
1716
|
[tooltipPosition]="tooltipPosition"
|
2126
1717
|
[positionStyle]="tooltipPositionStyle"
|
2127
1718
|
[tooltipStyleClass]="tooltipStyleClass"
|
2128
|
-
[attr.aria-disabled]="disabled"
|
1719
|
+
[attr.aria-disabled]="disabled()"
|
2129
1720
|
[attr.id]="inputId"
|
2130
1721
|
role="combobox"
|
2131
1722
|
[attr.aria-label]="ariaLabel"
|
@@ -2133,17 +1724,20 @@ class MultiSelect extends BaseComponent {
|
|
2133
1724
|
[attr.aria-haspopup]="'listbox'"
|
2134
1725
|
[attr.aria-expanded]="overlayVisible ?? false"
|
2135
1726
|
[attr.aria-controls]="overlayVisible ? id + '_list' : null"
|
2136
|
-
[attr.tabindex]="!disabled ? tabindex : -1"
|
1727
|
+
[attr.tabindex]="!disabled() ? tabindex : -1"
|
2137
1728
|
[attr.aria-activedescendant]="focused ? focusedOptionId : undefined"
|
2138
1729
|
(focus)="onInputFocus($event)"
|
2139
1730
|
(blur)="onInputBlur($event)"
|
2140
1731
|
(keydown)="onKeyDown($event)"
|
2141
1732
|
[pAutoFocus]="autofocus"
|
2142
|
-
[attr.value]="
|
1733
|
+
[attr.value]="modelValue()"
|
1734
|
+
[attr.name]="name()"
|
1735
|
+
[attr.required]="required() ? '' : undefined"
|
1736
|
+
[attr.disabled]="disabled() ? '' : undefined"
|
2143
1737
|
/>
|
2144
1738
|
</div>
|
2145
1739
|
<div
|
2146
|
-
class="
|
1740
|
+
[class]="cx('labelContainer')"
|
2147
1741
|
[pTooltip]="tooltip"
|
2148
1742
|
(mouseleave)="labelContainerMouseLeave()"
|
2149
1743
|
[tooltipDisabled]="_disableTooltip"
|
@@ -2151,20 +1745,20 @@ class MultiSelect extends BaseComponent {
|
|
2151
1745
|
[positionStyle]="tooltipPositionStyle"
|
2152
1746
|
[tooltipStyleClass]="tooltipStyleClass"
|
2153
1747
|
>
|
2154
|
-
<div [
|
1748
|
+
<div [class]="cx('label')">
|
2155
1749
|
<ng-container *ngIf="!selectedItemsTemplate && !_selectedItemsTemplate">
|
2156
1750
|
<ng-container *ngIf="display === 'comma'">{{ label() || 'empty' }}</ng-container>
|
2157
1751
|
<ng-container *ngIf="display === 'chip'">
|
2158
1752
|
@if (chipSelectedItems() && chipSelectedItems().length === maxSelectedLabels) {
|
2159
1753
|
{{ getSelectedItemsLabel() }}
|
2160
1754
|
} @else {
|
2161
|
-
<div #token *ngFor="let item of chipSelectedItems(); let i = index" class="
|
2162
|
-
<p-chip
|
1755
|
+
<div #token *ngFor="let item of chipSelectedItems(); let i = index" [class]="cx('chipItem')">
|
1756
|
+
<p-chip [class]="cx('pcChip')" [label]="getLabelByValue(item)" [removable]="!disabled() && !readonly" (onRemove)="removeOption(item, $event)" [removeIcon]="chipIcon">
|
2163
1757
|
<ng-container *ngIf="chipIconTemplate || _chipIconTemplate || removeTokenIconTemplate || _removeTokenIconTemplate">
|
2164
1758
|
<ng-template #removeicon>
|
2165
|
-
<ng-container *ngIf="!disabled && !readonly">
|
1759
|
+
<ng-container *ngIf="!disabled() && !readonly">
|
2166
1760
|
<span
|
2167
|
-
class="
|
1761
|
+
[class]="cx('chipIcon')"
|
2168
1762
|
*ngIf="chipIconTemplate || _chipIconTemplate || removeTokenIconTemplate || _removeTokenIconTemplate"
|
2169
1763
|
(click)="removeOption(item, $event)"
|
2170
1764
|
[attr.data-pc-section]="'clearicon'"
|
@@ -2178,56 +1772,44 @@ class MultiSelect extends BaseComponent {
|
|
2178
1772
|
</p-chip>
|
2179
1773
|
</div>
|
2180
1774
|
}
|
2181
|
-
<ng-container *ngIf="!modelValue() || modelValue().length === 0">{{ placeholder() ||
|
1775
|
+
<ng-container *ngIf="!modelValue() || modelValue().length === 0">{{ placeholder() || 'empty' }}</ng-container>
|
2182
1776
|
</ng-container>
|
2183
1777
|
</ng-container>
|
2184
1778
|
<ng-container *ngIf="selectedItemsTemplate || _selectedItemsTemplate">
|
2185
1779
|
<ng-container *ngTemplateOutlet="selectedItemsTemplate || _selectedItemsTemplate; context: { $implicit: selectedOptions, removeChip: removeOption.bind(this) }"></ng-container>
|
2186
|
-
<ng-container *ngIf="!modelValue() || modelValue().length === 0">{{ placeholder() ||
|
1780
|
+
<ng-container *ngIf="!modelValue() || modelValue().length === 0">{{ placeholder() || 'empty' }}</ng-container>
|
2187
1781
|
</ng-container>
|
2188
1782
|
</div>
|
2189
1783
|
</div>
|
2190
1784
|
<ng-container *ngIf="isVisibleClearIcon">
|
2191
|
-
<TimesIcon *ngIf="!clearIconTemplate && !_clearIconTemplate" class="
|
2192
|
-
<span *ngIf="clearIconTemplate || _clearIconTemplate" class="
|
1785
|
+
<TimesIcon *ngIf="!clearIconTemplate && !_clearIconTemplate" [class]="cx('clearIcon')" (click)="clear($event)" [attr.data-pc-section]="'clearicon'" [attr.aria-hidden]="true" />
|
1786
|
+
<span *ngIf="clearIconTemplate || _clearIconTemplate" [class]="cx('clearIcon')" (click)="clear($event)" [attr.data-pc-section]="'clearicon'" [attr.aria-hidden]="true">
|
2193
1787
|
<ng-template *ngTemplateOutlet="clearIconTemplate || _clearIconTemplate"></ng-template>
|
2194
1788
|
</span>
|
2195
1789
|
</ng-container>
|
2196
|
-
<div class="
|
1790
|
+
<div [class]="cx('dropdown')">
|
2197
1791
|
<ng-container *ngIf="loading; else elseBlock">
|
2198
1792
|
<ng-container *ngIf="loadingIconTemplate || _loadingIconTemplate">
|
2199
1793
|
<ng-container *ngTemplateOutlet="loadingIconTemplate || _loadingIconTemplate"></ng-container>
|
2200
1794
|
</ng-container>
|
2201
1795
|
<ng-container *ngIf="!loadingIconTemplate && !_loadingIconTemplate">
|
2202
|
-
<span *ngIf="loadingIcon" [
|
2203
|
-
<span *ngIf="!loadingIcon" [class]="'
|
1796
|
+
<span *ngIf="loadingIcon" [class]="cn(cx('loadingIcon'), 'pi-spin ' + loadingIcon)" aria-hidden="true"></span>
|
1797
|
+
<span *ngIf="!loadingIcon" [class]="cn(cx('loadingIcon'), 'pi pi-spinner pi-spin')" aria-hidden="true"></span>
|
2204
1798
|
</ng-container>
|
2205
1799
|
</ng-container>
|
2206
1800
|
<ng-template #elseBlock>
|
2207
1801
|
<ng-container *ngIf="!dropdownIconTemplate && !_dropdownIconTemplate">
|
2208
|
-
<span *ngIf="dropdownIcon" class="
|
2209
|
-
<ChevronDownIcon *ngIf="!dropdownIcon" [styleClass]="'
|
1802
|
+
<span *ngIf="dropdownIcon" [class]="cx('dropdownIcon')" [ngClass]="dropdownIcon" [attr.data-pc-section]="'triggericon'" [attr.aria-hidden]="true"></span>
|
1803
|
+
<ChevronDownIcon *ngIf="!dropdownIcon" [styleClass]="cx('dropdownIcon')" [attr.data-pc-section]="'triggericon'" [attr.aria-hidden]="true" />
|
2210
1804
|
</ng-container>
|
2211
|
-
<span *ngIf="dropdownIconTemplate || _dropdownIconTemplate" class="
|
1805
|
+
<span *ngIf="dropdownIconTemplate || _dropdownIconTemplate" [class]="cx('dropdownIcon')" [attr.data-pc-section]="'triggericon'" [attr.aria-hidden]="true">
|
2212
1806
|
<ng-template *ngTemplateOutlet="dropdownIconTemplate || _dropdownIconTemplate"></ng-template>
|
2213
1807
|
</span>
|
2214
1808
|
</ng-template>
|
2215
1809
|
</div>
|
2216
|
-
<p-overlay
|
2217
|
-
#overlay
|
2218
|
-
[(visible)]="overlayVisible"
|
2219
|
-
[options]="overlayOptions"
|
2220
|
-
[target]="'@parent'"
|
2221
|
-
[appendTo]="appendTo"
|
2222
|
-
[autoZIndex]="autoZIndex"
|
2223
|
-
[baseZIndex]="baseZIndex"
|
2224
|
-
[showTransitionOptions]="showTransitionOptions"
|
2225
|
-
[hideTransitionOptions]="hideTransitionOptions"
|
2226
|
-
(onAnimationStart)="onOverlayAnimationStart($event)"
|
2227
|
-
(onHide)="hide()"
|
2228
|
-
>
|
1810
|
+
<p-overlay #overlay [hostAttrSelector]="attrSelector" [(visible)]="overlayVisible" [options]="overlayOptions" [target]="'@parent'" [appendTo]="$appendTo()" (onAnimationStart)="onOverlayAnimationStart($event)" (onHide)="hide()">
|
2229
1811
|
<ng-template #content>
|
2230
|
-
<div [attr.id]="id + '_list'" [
|
1812
|
+
<div [attr.id]="id + '_list'" [class]="cn(cx('overlay'), panelStyleClass)" [ngStyle]="panelStyle">
|
2231
1813
|
<span
|
2232
1814
|
#firstHiddenFocusableEl
|
2233
1815
|
role="presentation"
|
@@ -2239,13 +1821,22 @@ class MultiSelect extends BaseComponent {
|
|
2239
1821
|
>
|
2240
1822
|
</span>
|
2241
1823
|
<ng-container *ngTemplateOutlet="headerTemplate || _headerTemplate"></ng-container>
|
2242
|
-
<div class="
|
1824
|
+
<div [class]="cx('header')" *ngIf="showHeader">
|
2243
1825
|
<ng-content select="p-header"></ng-content>
|
2244
1826
|
<ng-container *ngIf="filterTemplate || _filterTemplate; else builtInFilterElement">
|
2245
1827
|
<ng-container *ngTemplateOutlet="filterTemplate || _filterTemplate; context: { options: filterOptions }"></ng-container>
|
2246
1828
|
</ng-container>
|
2247
1829
|
<ng-template #builtInFilterElement>
|
2248
|
-
<p-checkbox
|
1830
|
+
<p-checkbox
|
1831
|
+
[ngModel]="allSelected()"
|
1832
|
+
[ariaLabel]="toggleAllAriaLabel"
|
1833
|
+
[binary]="true"
|
1834
|
+
(onChange)="onToggleAll($event)"
|
1835
|
+
*ngIf="showToggleAll && !selectionLimit"
|
1836
|
+
[variant]="$variant()"
|
1837
|
+
[disabled]="disabled()"
|
1838
|
+
#headerCheckbox
|
1839
|
+
>
|
2249
1840
|
<ng-template #checkboxicon let-klass="class">
|
2250
1841
|
<CheckIcon *ngIf="!headerCheckboxIconTemplate && !_headerCheckboxIconTemplate && allSelected()" [styleClass]="klass" [attr.data-pc-section]="'icon'" />
|
2251
1842
|
<ng-template
|
@@ -2261,44 +1852,42 @@ class MultiSelect extends BaseComponent {
|
|
2261
1852
|
</ng-template>
|
2262
1853
|
</p-checkbox>
|
2263
1854
|
|
2264
|
-
<
|
2265
|
-
<
|
2266
|
-
|
2267
|
-
|
2268
|
-
|
2269
|
-
|
2270
|
-
|
2271
|
-
|
2272
|
-
|
2273
|
-
|
2274
|
-
|
2275
|
-
|
2276
|
-
|
2277
|
-
|
2278
|
-
|
2279
|
-
|
2280
|
-
|
2281
|
-
|
2282
|
-
|
2283
|
-
|
2284
|
-
|
2285
|
-
<
|
2286
|
-
|
2287
|
-
<
|
2288
|
-
|
2289
|
-
|
2290
|
-
|
2291
|
-
</p-iconfield>
|
2292
|
-
</div>
|
1855
|
+
<p-iconfield *ngIf="filter" [class]="cx('pcFilterContainer')">
|
1856
|
+
<input
|
1857
|
+
#filterInput
|
1858
|
+
pInputText
|
1859
|
+
[variant]="$variant()"
|
1860
|
+
type="text"
|
1861
|
+
[attr.autocomplete]="autocomplete"
|
1862
|
+
role="searchbox"
|
1863
|
+
[attr.aria-owns]="id + '_list'"
|
1864
|
+
[attr.aria-activedescendant]="focusedOptionId"
|
1865
|
+
[value]="_filterValue() || ''"
|
1866
|
+
(input)="onFilterInputChange($event)"
|
1867
|
+
(keydown)="onFilterKeyDown($event)"
|
1868
|
+
(click)="onInputClick($event)"
|
1869
|
+
(blur)="onFilterBlur($event)"
|
1870
|
+
[class]="cx('pcFilter')"
|
1871
|
+
[attr.disabled]="disabled() ? '' : undefined"
|
1872
|
+
[attr.placeholder]="filterPlaceHolder"
|
1873
|
+
[attr.aria-label]="ariaFilterLabel"
|
1874
|
+
/>
|
1875
|
+
<p-inputicon>
|
1876
|
+
<SearchIcon *ngIf="!filterIconTemplate && !_filterIconTemplate" />
|
1877
|
+
<span *ngIf="filterIconTemplate || _filterIconTemplate" class="p-multiselect-filter-icon">
|
1878
|
+
<ng-template *ngTemplateOutlet="filterIconTemplate || _filterIconTemplate"></ng-template>
|
1879
|
+
</span>
|
1880
|
+
</p-inputicon>
|
1881
|
+
</p-iconfield>
|
2293
1882
|
</ng-template>
|
2294
1883
|
</div>
|
2295
|
-
<div class="
|
1884
|
+
<div [class]="cx('listContainer')" [style.max-height]="virtualScroll ? 'auto' : scrollHeight || 'auto'">
|
2296
1885
|
<p-scroller
|
2297
1886
|
*ngIf="virtualScroll"
|
2298
1887
|
#scroller
|
2299
1888
|
[items]="visibleOptions()"
|
2300
1889
|
[style]="{ height: scrollHeight }"
|
2301
|
-
[itemSize]="virtualScrollItemSize
|
1890
|
+
[itemSize]="virtualScrollItemSize"
|
2302
1891
|
[autoSize]="true"
|
2303
1892
|
[tabindex]="-1"
|
2304
1893
|
[lazy]="lazy"
|
@@ -2319,10 +1908,10 @@ class MultiSelect extends BaseComponent {
|
|
2319
1908
|
</ng-container>
|
2320
1909
|
|
2321
1910
|
<ng-template #buildInItems let-items let-scrollerOptions="options">
|
2322
|
-
<ul #items class="
|
1911
|
+
<ul #items [class]="cn(cx('list'), scrollerOptions.contentStyleClass)" [style]="scrollerOptions.contentStyle" role="listbox" aria-multiselectable="true" [attr.aria-label]="listLabel">
|
2323
1912
|
<ng-template ngFor let-option [ngForOf]="items" let-i="index">
|
2324
1913
|
<ng-container *ngIf="isOptionGroup(option)">
|
2325
|
-
<li [attr.id]="id + '_' + getOptionIndex(i, scrollerOptions)" class="
|
1914
|
+
<li [attr.id]="id + '_' + getOptionIndex(i, scrollerOptions)" [class]="cx('optionGroup')" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option">
|
2326
1915
|
<span *ngIf="!groupTemplate">{{ getOptionGroupLabel(option.optionGroup) }}</span>
|
2327
1916
|
<ng-container *ngTemplateOutlet="groupTemplate; context: { $implicit: option.optionGroup }"></ng-container>
|
2328
1917
|
</li>
|
@@ -2335,13 +1924,12 @@ class MultiSelect extends BaseComponent {
|
|
2335
1924
|
[label]="getOptionLabel(option)"
|
2336
1925
|
[disabled]="isOptionDisabled(option)"
|
2337
1926
|
[template]="itemTemplate || _itemTemplate"
|
2338
|
-
[checkIconTemplate]="checkIconTemplate || _checkIconTemplate"
|
2339
1927
|
[itemCheckboxIconTemplate]="itemCheckboxIconTemplate || _itemCheckboxIconTemplate"
|
2340
1928
|
[itemSize]="scrollerOptions.itemSize"
|
2341
1929
|
[focused]="focusedOptionIndex() === getOptionIndex(i, scrollerOptions)"
|
2342
1930
|
[ariaPosInset]="getAriaPosInset(getOptionIndex(i, scrollerOptions))"
|
2343
1931
|
[ariaSetSize]="ariaSetSize"
|
2344
|
-
[variant]="variant"
|
1932
|
+
[variant]="$variant()"
|
2345
1933
|
[highlightOnSelect]="highlightOnSelect"
|
2346
1934
|
(onClick)="onOptionSelect($event, false, getOptionIndex(i, scrollerOptions))"
|
2347
1935
|
(onMouseEnter)="onOptionMouseEnter($event, getOptionIndex(i, scrollerOptions))"
|
@@ -2349,14 +1937,14 @@ class MultiSelect extends BaseComponent {
|
|
2349
1937
|
</ng-container>
|
2350
1938
|
</ng-template>
|
2351
1939
|
|
2352
|
-
<li *ngIf="hasFilter() && isEmpty()" class="
|
1940
|
+
<li *ngIf="hasFilter() && isEmpty()" [class]="cx('emptyMessage')" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option">
|
2353
1941
|
@if (!emptyFilterTemplate && !_emptyFilterTemplate && !emptyTemplate && !_emptyTemplate) {
|
2354
1942
|
{{ emptyFilterMessageLabel }}
|
2355
1943
|
} @else {
|
2356
1944
|
<ng-container *ngTemplateOutlet="emptyFilterTemplate || _emptyFilterTemplate || emptyTemplate || _emptyFilterTemplate"></ng-container>
|
2357
1945
|
}
|
2358
1946
|
</li>
|
2359
|
-
<li *ngIf="!hasFilter() && isEmpty()" class="
|
1947
|
+
<li *ngIf="!hasFilter() && isEmpty()" [class]="cx('emptyMessage')" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option">
|
2360
1948
|
@if (!emptyTemplate && !_emptyTemplate) {
|
2361
1949
|
{{ emptyMessageLabel }}
|
2362
1950
|
} @else {
|
@@ -2383,9 +1971,9 @@ class MultiSelect extends BaseComponent {
|
|
2383
1971
|
</div>
|
2384
1972
|
</ng-template>
|
2385
1973
|
</p-overlay>
|
2386
|
-
`, 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", "highlightOnSelect"], outputs: ["onClick", "onMouseEnter"] }, { kind: "component", type: Overlay, selector: "p-overlay", inputs: ["visible", "mode", "style", "styleClass", "contentStyle", "contentStyleClass", "target", "
|
1974
|
+
`, 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", "highlightOnSelect"], outputs: ["onClick", "onMouseEnter"] }, { kind: "component", type: Overlay, selector: "p-overlay", inputs: ["visible", "mode", "style", "styleClass", "contentStyle", "contentStyleClass", "target", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "listener", "responsive", "options", "appendTo", "hostAttrSelector"], outputs: ["visibleChange", "onBeforeShow", "onShow", "onBeforeHide", "onHide", "onAnimationStart", "onAnimationDone"] }, { kind: "ngmodule", type: SharedModule }, { kind: "directive", type: Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo"] }, { 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: ["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: ["pSize", "variant", "fluid"] }, { kind: "component", type: Chip, selector: "p-chip", inputs: ["label", "icon", "image", "alt", "styleClass", "removable", "removeIcon", "chipProps"], outputs: ["onRemove", "onImageError"] }, { kind: "component", type: Checkbox, selector: "p-checkbox, p-checkBox, p-check-box", inputs: ["value", "binary", "ariaLabelledBy", "ariaLabel", "tabindex", "inputId", "inputStyle", "styleClass", "inputClass", "indeterminate", "formControl", "checkboxIcon", "readonly", "autofocus", "trueValue", "falseValue", "variant", "size"], 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 });
|
2387
1975
|
}
|
2388
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
1976
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: MultiSelect, decorators: [{
|
2389
1977
|
type: Component,
|
2390
1978
|
args: [{
|
2391
1979
|
selector: 'p-multiSelect, p-multiselect, p-multi-select',
|
@@ -2399,7 +1987,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
2399
1987
|
[tooltipPosition]="tooltipPosition"
|
2400
1988
|
[positionStyle]="tooltipPositionStyle"
|
2401
1989
|
[tooltipStyleClass]="tooltipStyleClass"
|
2402
|
-
[attr.aria-disabled]="disabled"
|
1990
|
+
[attr.aria-disabled]="disabled()"
|
2403
1991
|
[attr.id]="inputId"
|
2404
1992
|
role="combobox"
|
2405
1993
|
[attr.aria-label]="ariaLabel"
|
@@ -2407,17 +1995,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
2407
1995
|
[attr.aria-haspopup]="'listbox'"
|
2408
1996
|
[attr.aria-expanded]="overlayVisible ?? false"
|
2409
1997
|
[attr.aria-controls]="overlayVisible ? id + '_list' : null"
|
2410
|
-
[attr.tabindex]="!disabled ? tabindex : -1"
|
1998
|
+
[attr.tabindex]="!disabled() ? tabindex : -1"
|
2411
1999
|
[attr.aria-activedescendant]="focused ? focusedOptionId : undefined"
|
2412
2000
|
(focus)="onInputFocus($event)"
|
2413
2001
|
(blur)="onInputBlur($event)"
|
2414
2002
|
(keydown)="onKeyDown($event)"
|
2415
2003
|
[pAutoFocus]="autofocus"
|
2416
|
-
[attr.value]="
|
2004
|
+
[attr.value]="modelValue()"
|
2005
|
+
[attr.name]="name()"
|
2006
|
+
[attr.required]="required() ? '' : undefined"
|
2007
|
+
[attr.disabled]="disabled() ? '' : undefined"
|
2417
2008
|
/>
|
2418
2009
|
</div>
|
2419
2010
|
<div
|
2420
|
-
class="
|
2011
|
+
[class]="cx('labelContainer')"
|
2421
2012
|
[pTooltip]="tooltip"
|
2422
2013
|
(mouseleave)="labelContainerMouseLeave()"
|
2423
2014
|
[tooltipDisabled]="_disableTooltip"
|
@@ -2425,20 +2016,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
2425
2016
|
[positionStyle]="tooltipPositionStyle"
|
2426
2017
|
[tooltipStyleClass]="tooltipStyleClass"
|
2427
2018
|
>
|
2428
|
-
<div [
|
2019
|
+
<div [class]="cx('label')">
|
2429
2020
|
<ng-container *ngIf="!selectedItemsTemplate && !_selectedItemsTemplate">
|
2430
2021
|
<ng-container *ngIf="display === 'comma'">{{ label() || 'empty' }}</ng-container>
|
2431
2022
|
<ng-container *ngIf="display === 'chip'">
|
2432
2023
|
@if (chipSelectedItems() && chipSelectedItems().length === maxSelectedLabels) {
|
2433
2024
|
{{ getSelectedItemsLabel() }}
|
2434
2025
|
} @else {
|
2435
|
-
<div #token *ngFor="let item of chipSelectedItems(); let i = index" class="
|
2436
|
-
<p-chip
|
2026
|
+
<div #token *ngFor="let item of chipSelectedItems(); let i = index" [class]="cx('chipItem')">
|
2027
|
+
<p-chip [class]="cx('pcChip')" [label]="getLabelByValue(item)" [removable]="!disabled() && !readonly" (onRemove)="removeOption(item, $event)" [removeIcon]="chipIcon">
|
2437
2028
|
<ng-container *ngIf="chipIconTemplate || _chipIconTemplate || removeTokenIconTemplate || _removeTokenIconTemplate">
|
2438
2029
|
<ng-template #removeicon>
|
2439
|
-
<ng-container *ngIf="!disabled && !readonly">
|
2030
|
+
<ng-container *ngIf="!disabled() && !readonly">
|
2440
2031
|
<span
|
2441
|
-
class="
|
2032
|
+
[class]="cx('chipIcon')"
|
2442
2033
|
*ngIf="chipIconTemplate || _chipIconTemplate || removeTokenIconTemplate || _removeTokenIconTemplate"
|
2443
2034
|
(click)="removeOption(item, $event)"
|
2444
2035
|
[attr.data-pc-section]="'clearicon'"
|
@@ -2452,56 +2043,44 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
2452
2043
|
</p-chip>
|
2453
2044
|
</div>
|
2454
2045
|
}
|
2455
|
-
<ng-container *ngIf="!modelValue() || modelValue().length === 0">{{ placeholder() ||
|
2046
|
+
<ng-container *ngIf="!modelValue() || modelValue().length === 0">{{ placeholder() || 'empty' }}</ng-container>
|
2456
2047
|
</ng-container>
|
2457
2048
|
</ng-container>
|
2458
2049
|
<ng-container *ngIf="selectedItemsTemplate || _selectedItemsTemplate">
|
2459
2050
|
<ng-container *ngTemplateOutlet="selectedItemsTemplate || _selectedItemsTemplate; context: { $implicit: selectedOptions, removeChip: removeOption.bind(this) }"></ng-container>
|
2460
|
-
<ng-container *ngIf="!modelValue() || modelValue().length === 0">{{ placeholder() ||
|
2051
|
+
<ng-container *ngIf="!modelValue() || modelValue().length === 0">{{ placeholder() || 'empty' }}</ng-container>
|
2461
2052
|
</ng-container>
|
2462
2053
|
</div>
|
2463
2054
|
</div>
|
2464
2055
|
<ng-container *ngIf="isVisibleClearIcon">
|
2465
|
-
<TimesIcon *ngIf="!clearIconTemplate && !_clearIconTemplate" class="
|
2466
|
-
<span *ngIf="clearIconTemplate || _clearIconTemplate" class="
|
2056
|
+
<TimesIcon *ngIf="!clearIconTemplate && !_clearIconTemplate" [class]="cx('clearIcon')" (click)="clear($event)" [attr.data-pc-section]="'clearicon'" [attr.aria-hidden]="true" />
|
2057
|
+
<span *ngIf="clearIconTemplate || _clearIconTemplate" [class]="cx('clearIcon')" (click)="clear($event)" [attr.data-pc-section]="'clearicon'" [attr.aria-hidden]="true">
|
2467
2058
|
<ng-template *ngTemplateOutlet="clearIconTemplate || _clearIconTemplate"></ng-template>
|
2468
2059
|
</span>
|
2469
2060
|
</ng-container>
|
2470
|
-
<div class="
|
2061
|
+
<div [class]="cx('dropdown')">
|
2471
2062
|
<ng-container *ngIf="loading; else elseBlock">
|
2472
2063
|
<ng-container *ngIf="loadingIconTemplate || _loadingIconTemplate">
|
2473
2064
|
<ng-container *ngTemplateOutlet="loadingIconTemplate || _loadingIconTemplate"></ng-container>
|
2474
2065
|
</ng-container>
|
2475
2066
|
<ng-container *ngIf="!loadingIconTemplate && !_loadingIconTemplate">
|
2476
|
-
<span *ngIf="loadingIcon" [
|
2477
|
-
<span *ngIf="!loadingIcon" [class]="'
|
2067
|
+
<span *ngIf="loadingIcon" [class]="cn(cx('loadingIcon'), 'pi-spin ' + loadingIcon)" aria-hidden="true"></span>
|
2068
|
+
<span *ngIf="!loadingIcon" [class]="cn(cx('loadingIcon'), 'pi pi-spinner pi-spin')" aria-hidden="true"></span>
|
2478
2069
|
</ng-container>
|
2479
2070
|
</ng-container>
|
2480
2071
|
<ng-template #elseBlock>
|
2481
2072
|
<ng-container *ngIf="!dropdownIconTemplate && !_dropdownIconTemplate">
|
2482
|
-
<span *ngIf="dropdownIcon" class="
|
2483
|
-
<ChevronDownIcon *ngIf="!dropdownIcon" [styleClass]="'
|
2073
|
+
<span *ngIf="dropdownIcon" [class]="cx('dropdownIcon')" [ngClass]="dropdownIcon" [attr.data-pc-section]="'triggericon'" [attr.aria-hidden]="true"></span>
|
2074
|
+
<ChevronDownIcon *ngIf="!dropdownIcon" [styleClass]="cx('dropdownIcon')" [attr.data-pc-section]="'triggericon'" [attr.aria-hidden]="true" />
|
2484
2075
|
</ng-container>
|
2485
|
-
<span *ngIf="dropdownIconTemplate || _dropdownIconTemplate" class="
|
2076
|
+
<span *ngIf="dropdownIconTemplate || _dropdownIconTemplate" [class]="cx('dropdownIcon')" [attr.data-pc-section]="'triggericon'" [attr.aria-hidden]="true">
|
2486
2077
|
<ng-template *ngTemplateOutlet="dropdownIconTemplate || _dropdownIconTemplate"></ng-template>
|
2487
2078
|
</span>
|
2488
2079
|
</ng-template>
|
2489
2080
|
</div>
|
2490
|
-
<p-overlay
|
2491
|
-
#overlay
|
2492
|
-
[(visible)]="overlayVisible"
|
2493
|
-
[options]="overlayOptions"
|
2494
|
-
[target]="'@parent'"
|
2495
|
-
[appendTo]="appendTo"
|
2496
|
-
[autoZIndex]="autoZIndex"
|
2497
|
-
[baseZIndex]="baseZIndex"
|
2498
|
-
[showTransitionOptions]="showTransitionOptions"
|
2499
|
-
[hideTransitionOptions]="hideTransitionOptions"
|
2500
|
-
(onAnimationStart)="onOverlayAnimationStart($event)"
|
2501
|
-
(onHide)="hide()"
|
2502
|
-
>
|
2081
|
+
<p-overlay #overlay [hostAttrSelector]="attrSelector" [(visible)]="overlayVisible" [options]="overlayOptions" [target]="'@parent'" [appendTo]="$appendTo()" (onAnimationStart)="onOverlayAnimationStart($event)" (onHide)="hide()">
|
2503
2082
|
<ng-template #content>
|
2504
|
-
<div [attr.id]="id + '_list'" [
|
2083
|
+
<div [attr.id]="id + '_list'" [class]="cn(cx('overlay'), panelStyleClass)" [ngStyle]="panelStyle">
|
2505
2084
|
<span
|
2506
2085
|
#firstHiddenFocusableEl
|
2507
2086
|
role="presentation"
|
@@ -2513,13 +2092,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
2513
2092
|
>
|
2514
2093
|
</span>
|
2515
2094
|
<ng-container *ngTemplateOutlet="headerTemplate || _headerTemplate"></ng-container>
|
2516
|
-
<div class="
|
2095
|
+
<div [class]="cx('header')" *ngIf="showHeader">
|
2517
2096
|
<ng-content select="p-header"></ng-content>
|
2518
2097
|
<ng-container *ngIf="filterTemplate || _filterTemplate; else builtInFilterElement">
|
2519
2098
|
<ng-container *ngTemplateOutlet="filterTemplate || _filterTemplate; context: { options: filterOptions }"></ng-container>
|
2520
2099
|
</ng-container>
|
2521
2100
|
<ng-template #builtInFilterElement>
|
2522
|
-
<p-checkbox
|
2101
|
+
<p-checkbox
|
2102
|
+
[ngModel]="allSelected()"
|
2103
|
+
[ariaLabel]="toggleAllAriaLabel"
|
2104
|
+
[binary]="true"
|
2105
|
+
(onChange)="onToggleAll($event)"
|
2106
|
+
*ngIf="showToggleAll && !selectionLimit"
|
2107
|
+
[variant]="$variant()"
|
2108
|
+
[disabled]="disabled()"
|
2109
|
+
#headerCheckbox
|
2110
|
+
>
|
2523
2111
|
<ng-template #checkboxicon let-klass="class">
|
2524
2112
|
<CheckIcon *ngIf="!headerCheckboxIconTemplate && !_headerCheckboxIconTemplate && allSelected()" [styleClass]="klass" [attr.data-pc-section]="'icon'" />
|
2525
2113
|
<ng-template
|
@@ -2535,44 +2123,42 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
2535
2123
|
</ng-template>
|
2536
2124
|
</p-checkbox>
|
2537
2125
|
|
2538
|
-
<
|
2539
|
-
<
|
2540
|
-
|
2541
|
-
|
2542
|
-
|
2543
|
-
|
2544
|
-
|
2545
|
-
|
2546
|
-
|
2547
|
-
|
2548
|
-
|
2549
|
-
|
2550
|
-
|
2551
|
-
|
2552
|
-
|
2553
|
-
|
2554
|
-
|
2555
|
-
|
2556
|
-
|
2557
|
-
|
2558
|
-
|
2559
|
-
<
|
2560
|
-
|
2561
|
-
<
|
2562
|
-
|
2563
|
-
|
2564
|
-
|
2565
|
-
</p-iconfield>
|
2566
|
-
</div>
|
2126
|
+
<p-iconfield *ngIf="filter" [class]="cx('pcFilterContainer')">
|
2127
|
+
<input
|
2128
|
+
#filterInput
|
2129
|
+
pInputText
|
2130
|
+
[variant]="$variant()"
|
2131
|
+
type="text"
|
2132
|
+
[attr.autocomplete]="autocomplete"
|
2133
|
+
role="searchbox"
|
2134
|
+
[attr.aria-owns]="id + '_list'"
|
2135
|
+
[attr.aria-activedescendant]="focusedOptionId"
|
2136
|
+
[value]="_filterValue() || ''"
|
2137
|
+
(input)="onFilterInputChange($event)"
|
2138
|
+
(keydown)="onFilterKeyDown($event)"
|
2139
|
+
(click)="onInputClick($event)"
|
2140
|
+
(blur)="onFilterBlur($event)"
|
2141
|
+
[class]="cx('pcFilter')"
|
2142
|
+
[attr.disabled]="disabled() ? '' : undefined"
|
2143
|
+
[attr.placeholder]="filterPlaceHolder"
|
2144
|
+
[attr.aria-label]="ariaFilterLabel"
|
2145
|
+
/>
|
2146
|
+
<p-inputicon>
|
2147
|
+
<SearchIcon *ngIf="!filterIconTemplate && !_filterIconTemplate" />
|
2148
|
+
<span *ngIf="filterIconTemplate || _filterIconTemplate" class="p-multiselect-filter-icon">
|
2149
|
+
<ng-template *ngTemplateOutlet="filterIconTemplate || _filterIconTemplate"></ng-template>
|
2150
|
+
</span>
|
2151
|
+
</p-inputicon>
|
2152
|
+
</p-iconfield>
|
2567
2153
|
</ng-template>
|
2568
2154
|
</div>
|
2569
|
-
<div class="
|
2155
|
+
<div [class]="cx('listContainer')" [style.max-height]="virtualScroll ? 'auto' : scrollHeight || 'auto'">
|
2570
2156
|
<p-scroller
|
2571
2157
|
*ngIf="virtualScroll"
|
2572
2158
|
#scroller
|
2573
2159
|
[items]="visibleOptions()"
|
2574
2160
|
[style]="{ height: scrollHeight }"
|
2575
|
-
[itemSize]="virtualScrollItemSize
|
2161
|
+
[itemSize]="virtualScrollItemSize"
|
2576
2162
|
[autoSize]="true"
|
2577
2163
|
[tabindex]="-1"
|
2578
2164
|
[lazy]="lazy"
|
@@ -2593,10 +2179,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
2593
2179
|
</ng-container>
|
2594
2180
|
|
2595
2181
|
<ng-template #buildInItems let-items let-scrollerOptions="options">
|
2596
|
-
<ul #items class="
|
2182
|
+
<ul #items [class]="cn(cx('list'), scrollerOptions.contentStyleClass)" [style]="scrollerOptions.contentStyle" role="listbox" aria-multiselectable="true" [attr.aria-label]="listLabel">
|
2597
2183
|
<ng-template ngFor let-option [ngForOf]="items" let-i="index">
|
2598
2184
|
<ng-container *ngIf="isOptionGroup(option)">
|
2599
|
-
<li [attr.id]="id + '_' + getOptionIndex(i, scrollerOptions)" class="
|
2185
|
+
<li [attr.id]="id + '_' + getOptionIndex(i, scrollerOptions)" [class]="cx('optionGroup')" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option">
|
2600
2186
|
<span *ngIf="!groupTemplate">{{ getOptionGroupLabel(option.optionGroup) }}</span>
|
2601
2187
|
<ng-container *ngTemplateOutlet="groupTemplate; context: { $implicit: option.optionGroup }"></ng-container>
|
2602
2188
|
</li>
|
@@ -2609,13 +2195,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
2609
2195
|
[label]="getOptionLabel(option)"
|
2610
2196
|
[disabled]="isOptionDisabled(option)"
|
2611
2197
|
[template]="itemTemplate || _itemTemplate"
|
2612
|
-
[checkIconTemplate]="checkIconTemplate || _checkIconTemplate"
|
2613
2198
|
[itemCheckboxIconTemplate]="itemCheckboxIconTemplate || _itemCheckboxIconTemplate"
|
2614
2199
|
[itemSize]="scrollerOptions.itemSize"
|
2615
2200
|
[focused]="focusedOptionIndex() === getOptionIndex(i, scrollerOptions)"
|
2616
2201
|
[ariaPosInset]="getAriaPosInset(getOptionIndex(i, scrollerOptions))"
|
2617
2202
|
[ariaSetSize]="ariaSetSize"
|
2618
|
-
[variant]="variant"
|
2203
|
+
[variant]="$variant()"
|
2619
2204
|
[highlightOnSelect]="highlightOnSelect"
|
2620
2205
|
(onClick)="onOptionSelect($event, false, getOptionIndex(i, scrollerOptions))"
|
2621
2206
|
(onMouseEnter)="onOptionMouseEnter($event, getOptionIndex(i, scrollerOptions))"
|
@@ -2623,14 +2208,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
2623
2208
|
</ng-container>
|
2624
2209
|
</ng-template>
|
2625
2210
|
|
2626
|
-
<li *ngIf="hasFilter() && isEmpty()" class="
|
2211
|
+
<li *ngIf="hasFilter() && isEmpty()" [class]="cx('emptyMessage')" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option">
|
2627
2212
|
@if (!emptyFilterTemplate && !_emptyFilterTemplate && !emptyTemplate && !_emptyTemplate) {
|
2628
2213
|
{{ emptyFilterMessageLabel }}
|
2629
2214
|
} @else {
|
2630
2215
|
<ng-container *ngTemplateOutlet="emptyFilterTemplate || _emptyFilterTemplate || emptyTemplate || _emptyFilterTemplate"></ng-container>
|
2631
2216
|
}
|
2632
2217
|
</li>
|
2633
|
-
<li *ngIf="!hasFilter() && isEmpty()" class="
|
2218
|
+
<li *ngIf="!hasFilter() && isEmpty()" [class]="cx('emptyMessage')" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option">
|
2634
2219
|
@if (!emptyTemplate && !_emptyTemplate) {
|
2635
2220
|
{{ emptyMessageLabel }}
|
2636
2221
|
} @else {
|
@@ -2663,17 +2248,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
2663
2248
|
encapsulation: ViewEncapsulation.None,
|
2664
2249
|
host: {
|
2665
2250
|
'[attr.id]': 'id',
|
2666
|
-
'[style]': 'style',
|
2667
2251
|
'(click)': 'onContainerClick($event)',
|
2668
|
-
'[class
|
2252
|
+
'[class]': "cn(cx('root'), styleClass)",
|
2253
|
+
'[style]': "sx('root')"
|
2669
2254
|
}
|
2670
2255
|
}]
|
2671
2256
|
}], ctorParameters: () => [{ type: i0.NgZone }, { type: i3.FilterService }, { type: i3.OverlayService }], propDecorators: { id: [{
|
2672
2257
|
type: Input
|
2673
2258
|
}], ariaLabel: [{
|
2674
2259
|
type: Input
|
2675
|
-
}], style: [{
|
2676
|
-
type: Input
|
2677
2260
|
}], styleClass: [{
|
2678
2261
|
type: Input
|
2679
2262
|
}], panelStyle: [{
|
@@ -2682,12 +2265,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
2682
2265
|
type: Input
|
2683
2266
|
}], inputId: [{
|
2684
2267
|
type: Input
|
2685
|
-
}], disabled: [{
|
2686
|
-
type: Input,
|
2687
|
-
args: [{ transform: booleanAttribute }]
|
2688
|
-
}], fluid: [{
|
2689
|
-
type: Input,
|
2690
|
-
args: [{ transform: booleanAttribute }]
|
2691
2268
|
}], readonly: [{
|
2692
2269
|
type: Input,
|
2693
2270
|
args: [{ transform: booleanAttribute }]
|
@@ -2707,14 +2284,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
2707
2284
|
}], tabindex: [{
|
2708
2285
|
type: Input,
|
2709
2286
|
args: [{ transform: numberAttribute }]
|
2710
|
-
}], variant: [{
|
2711
|
-
type: Input
|
2712
|
-
}], appendTo: [{
|
2713
|
-
type: Input
|
2714
2287
|
}], dataKey: [{
|
2715
2288
|
type: Input
|
2716
|
-
}], name: [{
|
2717
|
-
type: Input
|
2718
2289
|
}], ariaLabelledBy: [{
|
2719
2290
|
type: Input
|
2720
2291
|
}], displaySelectedLabel: [{
|
@@ -2794,32 +2365,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
2794
2365
|
type: Input
|
2795
2366
|
}], autocomplete: [{
|
2796
2367
|
type: Input
|
2797
|
-
}], size: [{
|
2798
|
-
type: Input
|
2799
2368
|
}], showClear: [{
|
2800
2369
|
type: Input,
|
2801
2370
|
args: [{ transform: booleanAttribute }]
|
2802
2371
|
}], autofocus: [{
|
2803
2372
|
type: Input,
|
2804
2373
|
args: [{ transform: booleanAttribute }]
|
2805
|
-
}], autoZIndex: [{
|
2806
|
-
type: Input
|
2807
|
-
}], baseZIndex: [{
|
2808
|
-
type: Input
|
2809
|
-
}], showTransitionOptions: [{
|
2810
|
-
type: Input
|
2811
|
-
}], hideTransitionOptions: [{
|
2812
|
-
type: Input
|
2813
|
-
}], defaultLabel: [{
|
2814
|
-
type: Input
|
2815
2374
|
}], placeholder: [{
|
2816
2375
|
type: Input
|
2817
2376
|
}], options: [{
|
2818
2377
|
type: Input
|
2819
2378
|
}], filterValue: [{
|
2820
2379
|
type: Input
|
2821
|
-
}], itemSize: [{
|
2822
|
-
type: Input
|
2823
2380
|
}], selectAll: [{
|
2824
2381
|
type: Input
|
2825
2382
|
}], focusOnHover: [{
|
@@ -2915,9 +2472,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
2915
2472
|
}], selectedItemsTemplate: [{
|
2916
2473
|
type: ContentChild,
|
2917
2474
|
args: ['selecteditems', { descendants: false }]
|
2918
|
-
}], checkIconTemplate: [{
|
2919
|
-
type: ContentChild,
|
2920
|
-
args: ['checkicon', { descendants: false }]
|
2921
2475
|
}], loadingIconTemplate: [{
|
2922
2476
|
type: ContentChild,
|
2923
2477
|
args: ['loadingicon', { descendants: false }]
|
@@ -2945,16 +2499,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
2945
2499
|
}], templates: [{
|
2946
2500
|
type: ContentChildren,
|
2947
2501
|
args: [PrimeTemplate]
|
2948
|
-
}], hostClasses: [{
|
2949
|
-
type: HostBinding,
|
2950
|
-
args: ['class']
|
2951
2502
|
}] } });
|
2952
2503
|
class MultiSelectModule {
|
2953
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
2954
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
2955
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
2504
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: MultiSelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
2505
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.6", ngImport: i0, type: MultiSelectModule, imports: [MultiSelect, SharedModule], exports: [MultiSelect, SharedModule] });
|
2506
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: MultiSelectModule, imports: [MultiSelect, SharedModule, SharedModule] });
|
2956
2507
|
}
|
2957
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
2508
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: MultiSelectModule, decorators: [{
|
2958
2509
|
type: NgModule,
|
2959
2510
|
args: [{
|
2960
2511
|
imports: [MultiSelect, SharedModule],
|