primeng 19.1.3 → 20.0.0-beta.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 +83 -737
- 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 +44 -143
- 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 -269
- 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 +257 -252
- 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 +211 -242
- 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,2429 +0,0 @@
|
|
1
|
-
import * as i1 from '@angular/common';
|
2
|
-
import { CommonModule } from '@angular/common';
|
3
|
-
import * as i0 from '@angular/core';
|
4
|
-
import { Injectable, forwardRef, EventEmitter, booleanAttribute, numberAttribute, Output, Input, Component, inject, signal, computed, effect, ContentChildren, HostBinding, ViewChild, ViewEncapsulation, ChangeDetectionStrategy, NgModule } from '@angular/core';
|
5
|
-
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
6
|
-
import { deepEquals, isNotEmpty, isEmpty, uuid, findSingle, scrollInView, equals, resolveFieldData, focus, unblockBodyScroll, isPrintableCharacter, findLastIndex, getFirstFocusableElement, getLastFocusableElement, getFocusableElements } from '@primeuix/utils';
|
7
|
-
import * as i2 from 'primeng/api';
|
8
|
-
import { TranslationKeys, PrimeTemplate, SharedModule } from 'primeng/api';
|
9
|
-
import * as i5 from 'primeng/autofocus';
|
10
|
-
import { AutoFocusModule } from 'primeng/autofocus';
|
11
|
-
import { BaseComponent } from 'primeng/basecomponent';
|
12
|
-
import { IconField } from 'primeng/iconfield';
|
13
|
-
import { BlankIcon, CheckIcon, TimesIcon, ChevronDownIcon, SearchIcon } from 'primeng/icons';
|
14
|
-
import { InputIcon } from 'primeng/inputicon';
|
15
|
-
import * as i6 from 'primeng/inputtext';
|
16
|
-
import { InputTextModule } from 'primeng/inputtext';
|
17
|
-
import * as i3 from 'primeng/overlay';
|
18
|
-
import { OverlayModule } from 'primeng/overlay';
|
19
|
-
import { Ripple } from 'primeng/ripple';
|
20
|
-
import { Scroller } from 'primeng/scroller';
|
21
|
-
import * as i4 from 'primeng/tooltip';
|
22
|
-
import { TooltipModule } from 'primeng/tooltip';
|
23
|
-
import { BaseStyle } from 'primeng/base';
|
24
|
-
|
25
|
-
const theme = ({ dt }) => `
|
26
|
-
.p-select {
|
27
|
-
display: inline-flex;
|
28
|
-
cursor: pointer;
|
29
|
-
position: relative;
|
30
|
-
user-select: none;
|
31
|
-
background: ${dt('select.background')};
|
32
|
-
border: 1px solid ${dt('select.border.color')};
|
33
|
-
transition: background ${dt('select.transition.duration')}, color ${dt('select.transition.duration')}, border-color ${dt('select.transition.duration')},
|
34
|
-
outline-color ${dt('select.transition.duration')}, box-shadow ${dt('select.transition.duration')};
|
35
|
-
border-radius: ${dt('select.border.radius')};
|
36
|
-
outline-color: transparent;
|
37
|
-
box-shadow: ${dt('select.shadow')};
|
38
|
-
}
|
39
|
-
|
40
|
-
.p-select:not(.p-disabled):hover {
|
41
|
-
border-color: ${dt('select.hover.border.color')};
|
42
|
-
}
|
43
|
-
|
44
|
-
.p-select:not(.p-disabled).p-focus {
|
45
|
-
border-color: ${dt('select.focus.border.color')};
|
46
|
-
box-shadow: ${dt('select.focus.ring.shadow')};
|
47
|
-
outline: ${dt('select.focus.ring.width')} ${dt('select.focus.ring.style')} ${dt('select.focus.ring.color')};
|
48
|
-
outline-offset: ${dt('select.focus.ring.offset')};
|
49
|
-
}
|
50
|
-
|
51
|
-
.p-select.p-variant-filled {
|
52
|
-
background: ${dt('select.filled.background')};
|
53
|
-
}
|
54
|
-
|
55
|
-
.p-select.p-variant-filled.p-focus {
|
56
|
-
background: ${dt('select.filled.focus.background')};
|
57
|
-
}
|
58
|
-
|
59
|
-
.p-select.p-disabled {
|
60
|
-
opacity: 1;
|
61
|
-
background: ${dt('select.disabled.background')};
|
62
|
-
}
|
63
|
-
|
64
|
-
.p-select-clear-icon {
|
65
|
-
position: absolute;
|
66
|
-
top: 50%;
|
67
|
-
margin-top: -0.5rem;
|
68
|
-
color: ${dt('select.clear.icon.color')};
|
69
|
-
right: ${dt('select.dropdown.width')};
|
70
|
-
}
|
71
|
-
|
72
|
-
.p-select-dropdown {
|
73
|
-
display: flex;
|
74
|
-
align-items: center;
|
75
|
-
justify-content: center;
|
76
|
-
flex-shrink: 0;
|
77
|
-
background: transparent;
|
78
|
-
color: ${dt('select.dropdown.color')};
|
79
|
-
width: ${dt('select.dropdown.width')};
|
80
|
-
border-start-end-radius: ${dt('select.border.radius')};
|
81
|
-
border-end-end-radius: ${dt('select.border.radius')};
|
82
|
-
}
|
83
|
-
|
84
|
-
.p-select-label {
|
85
|
-
display: block;
|
86
|
-
white-space: nowrap;
|
87
|
-
overflow: hidden;
|
88
|
-
flex: 1 1 auto;
|
89
|
-
width: 1%;
|
90
|
-
padding: ${dt('select.padding.y')} ${dt('select.padding.x')};
|
91
|
-
text-overflow: ellipsis;
|
92
|
-
cursor: pointer;
|
93
|
-
color: ${dt('select.color')};
|
94
|
-
background: transparent;
|
95
|
-
border: 0 none;
|
96
|
-
outline: 0 none;
|
97
|
-
}
|
98
|
-
|
99
|
-
.p-select-label.p-placeholder {
|
100
|
-
color: ${dt('select.placeholder.color')};
|
101
|
-
}
|
102
|
-
|
103
|
-
.p-select:has(.p-select-clear-icon) .p-select-label {
|
104
|
-
padding-right: calc(1rem + ${dt('select.padding.x')});
|
105
|
-
}
|
106
|
-
|
107
|
-
.p-select.p-disabled .p-select-label {
|
108
|
-
color: ${dt('select.disabled.color')};
|
109
|
-
}
|
110
|
-
|
111
|
-
.p-select-label-empty {
|
112
|
-
overflow: hidden;
|
113
|
-
opacity: 0;
|
114
|
-
}
|
115
|
-
|
116
|
-
input.p-select-label {
|
117
|
-
cursor: default;
|
118
|
-
}
|
119
|
-
|
120
|
-
.p-select .p-select-overlay {
|
121
|
-
min-width: 100%;
|
122
|
-
}
|
123
|
-
|
124
|
-
.p-select-overlay {
|
125
|
-
position: absolute;
|
126
|
-
top: 0;
|
127
|
-
left: 0;
|
128
|
-
background: ${dt('select.overlay.background')};
|
129
|
-
color: ${dt('select.overlay.color')};
|
130
|
-
border: 1px solid ${dt('select.overlay.border.color')};
|
131
|
-
border-radius: ${dt('select.overlay.border.radius')};
|
132
|
-
box-shadow: ${dt('select.overlay.shadow')};
|
133
|
-
}
|
134
|
-
|
135
|
-
.p-select-header {
|
136
|
-
padding: ${dt('select.list.header.padding')};
|
137
|
-
}
|
138
|
-
|
139
|
-
.p-select-filter {
|
140
|
-
width: 100%;
|
141
|
-
}
|
142
|
-
|
143
|
-
.p-select-list-container {
|
144
|
-
overflow: auto;
|
145
|
-
}
|
146
|
-
|
147
|
-
.p-select-option-group {
|
148
|
-
cursor: auto;
|
149
|
-
margin: 0;
|
150
|
-
padding: ${dt('select.option.group.padding')};
|
151
|
-
background: ${dt('select.option.group.background')};
|
152
|
-
color: ${dt('select.option.group.color')};
|
153
|
-
font-weight: ${dt('select.option.group.font.weight')};
|
154
|
-
}
|
155
|
-
|
156
|
-
.p-select-list {
|
157
|
-
margin: 0;
|
158
|
-
padding: 0;
|
159
|
-
list-style-type: none;
|
160
|
-
padding: ${dt('select.list.padding')};
|
161
|
-
gap: ${dt('select.list.gap')};
|
162
|
-
display: flex;
|
163
|
-
flex-direction: column;
|
164
|
-
}
|
165
|
-
|
166
|
-
.p-select-option {
|
167
|
-
cursor: pointer;
|
168
|
-
font-weight: normal;
|
169
|
-
white-space: nowrap;
|
170
|
-
position: relative;
|
171
|
-
overflow: hidden;
|
172
|
-
display: flex;
|
173
|
-
align-items: center;
|
174
|
-
padding: ${dt('select.option.padding')};
|
175
|
-
border: 0 none;
|
176
|
-
color: ${dt('select.option.color')};
|
177
|
-
background: transparent;
|
178
|
-
transition: background ${dt('select.transition.duration')}, color ${dt('select.transition.duration')}, border-color ${dt('select.transition.duration')},
|
179
|
-
box-shadow ${dt('select.transition.duration')}, outline-color ${dt('select.transition.duration')};
|
180
|
-
border-radius: ${dt('select.option.border.radius')};
|
181
|
-
}
|
182
|
-
|
183
|
-
.p-select-option:not(.p-select-option-selected):not(.p-disabled).p-focus {
|
184
|
-
background: ${dt('select.option.focus.background')};
|
185
|
-
color: ${dt('select.option.focus.color')};
|
186
|
-
}
|
187
|
-
|
188
|
-
.p-select-option.p-select-option-selected {
|
189
|
-
background: ${dt('select.option.selected.background')};
|
190
|
-
color: ${dt('select.option.selected.color')};
|
191
|
-
}
|
192
|
-
|
193
|
-
.p-select-option.p-select-option-selected.p-focus {
|
194
|
-
background: ${dt('select.option.selected.focus.background')};
|
195
|
-
color: ${dt('select.option.selected.focus.color')};
|
196
|
-
}
|
197
|
-
|
198
|
-
.p-select-option-check-icon {
|
199
|
-
position: relative;
|
200
|
-
margin-inline-start: ${dt('select.checkmark.gutter.start')};
|
201
|
-
margin-inline-end: ${dt('select.checkmark.gutter.end')};
|
202
|
-
color: ${dt('select.checkmark.color')};
|
203
|
-
}
|
204
|
-
|
205
|
-
.p-select-empty-message {
|
206
|
-
padding: ${dt('select.empty.message.padding')};
|
207
|
-
}
|
208
|
-
|
209
|
-
.p-select-fluid {
|
210
|
-
display: flex;
|
211
|
-
}
|
212
|
-
|
213
|
-
/*For PrimeNG*/
|
214
|
-
|
215
|
-
.p-dropdown.ng-invalid.ng-dirty,
|
216
|
-
.p-select.ng-invalid.ng-dirty {
|
217
|
-
outline: 1px solid ${dt('select.invalid.border.color')};
|
218
|
-
outline-offset: 0;
|
219
|
-
}
|
220
|
-
|
221
|
-
.p-dropdown.ng-invalid.ng-dirty .p-dropdown-label.p-placeholder,
|
222
|
-
.p-select.ng-invalid.ng-dirty .p-select-label.p-placeholder {
|
223
|
-
color: ${dt('select.invalid.placeholder.color')};
|
224
|
-
}
|
225
|
-
`;
|
226
|
-
const classes = {
|
227
|
-
root: ({ instance }) => [
|
228
|
-
'p-dropdown p-select p-component p-inputwrapper',
|
229
|
-
{
|
230
|
-
'p-disabled': instance.disabled,
|
231
|
-
'p-variant-filled': instance.variant === 'filled' || instance.config.inputVariant() === 'filled' || instance.config.inputStyle() === 'filled',
|
232
|
-
'p-focus': instance.focused,
|
233
|
-
'p-inputwrapper-filled': instance.modelValue() !== undefined && instance.modelValue() !== null && !instance.modelValue().length,
|
234
|
-
'p-inputwrapper-focus': instance.focused || instance.overlayVisible,
|
235
|
-
'p-select-open': instance.overlayVisible,
|
236
|
-
'p-select-fluid': instance.hasFluid,
|
237
|
-
'p-select-sm p-inputfield-sm': instance.size === 'small',
|
238
|
-
'p-select-lg p-inputfield-lg': instance.size === 'large'
|
239
|
-
}
|
240
|
-
],
|
241
|
-
label: ({ instance, props }) => [
|
242
|
-
'p-select-label',
|
243
|
-
{
|
244
|
-
'p-placeholder': !props.editable && instance.label === props.placeholder,
|
245
|
-
'p-select-label-empty': !props.editable && !instance.$slots['value'] && (instance.label === 'p-emptylabel' || instance.label.length === 0)
|
246
|
-
}
|
247
|
-
],
|
248
|
-
clearIcon: 'p-select-clear-icon',
|
249
|
-
dropdown: 'p-select-dropdown',
|
250
|
-
loadingicon: 'p-select-loading-icon',
|
251
|
-
dropdownIcon: 'p-select-dropdown-icon',
|
252
|
-
overlay: 'p-select-overlay p-component',
|
253
|
-
header: 'p-select-header',
|
254
|
-
pcFilter: 'p-select-filter',
|
255
|
-
listContainer: 'p-select-list-container',
|
256
|
-
list: 'p-select-list',
|
257
|
-
optionGroup: 'p-select-option-group',
|
258
|
-
optionGroupLabel: 'p-select-option-group-label',
|
259
|
-
option: ({ instance, props, state, option, focusedOption }) => [
|
260
|
-
'p-select-option',
|
261
|
-
{
|
262
|
-
'p-select-option-selected': instance.isSelected(option) && props.highlightOnSelect,
|
263
|
-
'p-focus': state.focusedOptionIndex === focusedOption,
|
264
|
-
'p-disabled': instance.isOptionDisabled(option)
|
265
|
-
}
|
266
|
-
],
|
267
|
-
optionLabel: 'p-select-option-label',
|
268
|
-
optionCheckIcon: 'p-select-option-check-icon',
|
269
|
-
optionBlankIcon: 'p-select-option-blank-icon',
|
270
|
-
emptyMessage: 'p-select-empty-message'
|
271
|
-
};
|
272
|
-
class DropdownStyle extends BaseStyle {
|
273
|
-
name = 'select';
|
274
|
-
theme = theme;
|
275
|
-
classes = classes;
|
276
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: DropdownStyle, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
277
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: DropdownStyle });
|
278
|
-
}
|
279
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: DropdownStyle, decorators: [{
|
280
|
-
type: Injectable
|
281
|
-
}] });
|
282
|
-
var DropdownClasses;
|
283
|
-
(function (DropdownClasses) {
|
284
|
-
})(DropdownClasses || (DropdownClasses = {}));
|
285
|
-
|
286
|
-
const DROPDOWN_VALUE_ACCESSOR = {
|
287
|
-
provide: NG_VALUE_ACCESSOR,
|
288
|
-
useExisting: forwardRef(() => Dropdown),
|
289
|
-
multi: true
|
290
|
-
};
|
291
|
-
class DropdownItem extends BaseComponent {
|
292
|
-
id;
|
293
|
-
option;
|
294
|
-
selected;
|
295
|
-
focused;
|
296
|
-
label;
|
297
|
-
disabled;
|
298
|
-
visible;
|
299
|
-
itemSize;
|
300
|
-
ariaPosInset;
|
301
|
-
ariaSetSize;
|
302
|
-
template;
|
303
|
-
checkmark;
|
304
|
-
onClick = new EventEmitter();
|
305
|
-
onMouseEnter = new EventEmitter();
|
306
|
-
onOptionClick(event) {
|
307
|
-
this.onClick.emit(event);
|
308
|
-
}
|
309
|
-
onOptionMouseEnter(event) {
|
310
|
-
this.onMouseEnter.emit(event);
|
311
|
-
}
|
312
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: DropdownItem, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
313
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "19.2.10", type: DropdownItem, isStandalone: false, selector: "p-dropdownItem", inputs: { id: "id", option: "option", selected: ["selected", "selected", booleanAttribute], focused: ["focused", "focused", booleanAttribute], label: "label", disabled: ["disabled", "disabled", booleanAttribute], visible: ["visible", "visible", booleanAttribute], itemSize: ["itemSize", "itemSize", numberAttribute], ariaPosInset: "ariaPosInset", ariaSetSize: "ariaSetSize", template: "template", checkmark: ["checkmark", "checkmark", booleanAttribute] }, outputs: { onClick: "onClick", onMouseEnter: "onMouseEnter" }, usesInheritance: true, ngImport: i0, template: `
|
314
|
-
<li
|
315
|
-
[id]="id"
|
316
|
-
(click)="onOptionClick($event)"
|
317
|
-
(mouseenter)="onOptionMouseEnter($event)"
|
318
|
-
role="option"
|
319
|
-
pRipple
|
320
|
-
[attr.aria-label]="label"
|
321
|
-
[attr.aria-setsize]="ariaSetSize"
|
322
|
-
[attr.aria-posinset]="ariaPosInset"
|
323
|
-
[attr.aria-selected]="selected"
|
324
|
-
[attr.data-p-focused]="focused"
|
325
|
-
[attr.data-p-highlight]="selected"
|
326
|
-
[attr.data-p-disabled]="disabled"
|
327
|
-
[ngStyle]="{ height: itemSize + 'px' }"
|
328
|
-
[ngClass]="{
|
329
|
-
'p-select-option': true,
|
330
|
-
'p-select-option-selected': selected,
|
331
|
-
'p-disabled': disabled,
|
332
|
-
'p-focus': focused
|
333
|
-
}"
|
334
|
-
>
|
335
|
-
<ng-container *ngIf="checkmark">
|
336
|
-
<CheckIcon *ngIf="selected" [styleClass]="'p-select-option-check-icon'" />
|
337
|
-
<BlankIcon *ngIf="!selected" [styleClass]="'p-select-option-blank-icon'" />
|
338
|
-
</ng-container>
|
339
|
-
<span *ngIf="!template">{{ label ?? 'empty' }}</span>
|
340
|
-
<ng-container *ngTemplateOutlet="template; context: { $implicit: option }"></ng-container>
|
341
|
-
</li>
|
342
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i0.forwardRef(() => i1.NgClass), selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i0.forwardRef(() => i1.NgIf), selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i0.forwardRef(() => i1.NgTemplateOutlet), selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i0.forwardRef(() => i1.NgStyle), selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i0.forwardRef(() => Ripple), selector: "[pRipple]" }, { kind: "component", type: i0.forwardRef(() => BlankIcon), selector: "BlankIcon" }, { kind: "component", type: i0.forwardRef(() => CheckIcon), selector: "CheckIcon" }] });
|
343
|
-
}
|
344
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: DropdownItem, decorators: [{
|
345
|
-
type: Component,
|
346
|
-
args: [{
|
347
|
-
selector: 'p-dropdownItem',
|
348
|
-
standalone: false,
|
349
|
-
template: `
|
350
|
-
<li
|
351
|
-
[id]="id"
|
352
|
-
(click)="onOptionClick($event)"
|
353
|
-
(mouseenter)="onOptionMouseEnter($event)"
|
354
|
-
role="option"
|
355
|
-
pRipple
|
356
|
-
[attr.aria-label]="label"
|
357
|
-
[attr.aria-setsize]="ariaSetSize"
|
358
|
-
[attr.aria-posinset]="ariaPosInset"
|
359
|
-
[attr.aria-selected]="selected"
|
360
|
-
[attr.data-p-focused]="focused"
|
361
|
-
[attr.data-p-highlight]="selected"
|
362
|
-
[attr.data-p-disabled]="disabled"
|
363
|
-
[ngStyle]="{ height: itemSize + 'px' }"
|
364
|
-
[ngClass]="{
|
365
|
-
'p-select-option': true,
|
366
|
-
'p-select-option-selected': selected,
|
367
|
-
'p-disabled': disabled,
|
368
|
-
'p-focus': focused
|
369
|
-
}"
|
370
|
-
>
|
371
|
-
<ng-container *ngIf="checkmark">
|
372
|
-
<CheckIcon *ngIf="selected" [styleClass]="'p-select-option-check-icon'" />
|
373
|
-
<BlankIcon *ngIf="!selected" [styleClass]="'p-select-option-blank-icon'" />
|
374
|
-
</ng-container>
|
375
|
-
<span *ngIf="!template">{{ label ?? 'empty' }}</span>
|
376
|
-
<ng-container *ngTemplateOutlet="template; context: { $implicit: option }"></ng-container>
|
377
|
-
</li>
|
378
|
-
`
|
379
|
-
}]
|
380
|
-
}], propDecorators: { id: [{
|
381
|
-
type: Input
|
382
|
-
}], option: [{
|
383
|
-
type: Input
|
384
|
-
}], selected: [{
|
385
|
-
type: Input,
|
386
|
-
args: [{ transform: booleanAttribute }]
|
387
|
-
}], focused: [{
|
388
|
-
type: Input,
|
389
|
-
args: [{ transform: booleanAttribute }]
|
390
|
-
}], label: [{
|
391
|
-
type: Input
|
392
|
-
}], disabled: [{
|
393
|
-
type: Input,
|
394
|
-
args: [{ transform: booleanAttribute }]
|
395
|
-
}], visible: [{
|
396
|
-
type: Input,
|
397
|
-
args: [{ transform: booleanAttribute }]
|
398
|
-
}], itemSize: [{
|
399
|
-
type: Input,
|
400
|
-
args: [{ transform: numberAttribute }]
|
401
|
-
}], ariaPosInset: [{
|
402
|
-
type: Input
|
403
|
-
}], ariaSetSize: [{
|
404
|
-
type: Input
|
405
|
-
}], template: [{
|
406
|
-
type: Input
|
407
|
-
}], checkmark: [{
|
408
|
-
type: Input,
|
409
|
-
args: [{ transform: booleanAttribute }]
|
410
|
-
}], onClick: [{
|
411
|
-
type: Output
|
412
|
-
}], onMouseEnter: [{
|
413
|
-
type: Output
|
414
|
-
}] } });
|
415
|
-
/**
|
416
|
-
* Dropdown also known as Select, is used to choose an item from a collection of options.
|
417
|
-
* @group Components
|
418
|
-
*/
|
419
|
-
class Dropdown extends BaseComponent {
|
420
|
-
zone;
|
421
|
-
filterService;
|
422
|
-
/**
|
423
|
-
* Unique identifier of the component
|
424
|
-
* @group Props
|
425
|
-
*/
|
426
|
-
id;
|
427
|
-
/**
|
428
|
-
* Height of the viewport in pixels, a scrollbar is defined if height of list exceeds this value.
|
429
|
-
* @group Props
|
430
|
-
*/
|
431
|
-
scrollHeight = '200px';
|
432
|
-
/**
|
433
|
-
* When specified, displays an input field to filter the items on keyup.
|
434
|
-
* @group Props
|
435
|
-
*/
|
436
|
-
filter;
|
437
|
-
/**
|
438
|
-
* Name of the input element.
|
439
|
-
* @group Props
|
440
|
-
*/
|
441
|
-
name;
|
442
|
-
/**
|
443
|
-
* Inline style of the element.
|
444
|
-
* @group Props
|
445
|
-
*/
|
446
|
-
style;
|
447
|
-
/**
|
448
|
-
* Inline style of the overlay panel element.
|
449
|
-
* @group Props
|
450
|
-
*/
|
451
|
-
panelStyle;
|
452
|
-
/**
|
453
|
-
* Style class of the element.
|
454
|
-
* @group Props
|
455
|
-
*/
|
456
|
-
styleClass;
|
457
|
-
/**
|
458
|
-
* Style class of the overlay panel element.
|
459
|
-
* @group Props
|
460
|
-
*/
|
461
|
-
panelStyleClass;
|
462
|
-
/**
|
463
|
-
* When present, it specifies that the component cannot be edited.
|
464
|
-
* @group Props
|
465
|
-
*/
|
466
|
-
readonly;
|
467
|
-
/**
|
468
|
-
* When present, it specifies that an input field must be filled out before submitting the form.
|
469
|
-
* @group Props
|
470
|
-
*/
|
471
|
-
required;
|
472
|
-
/**
|
473
|
-
* When present, custom value instead of predefined options can be entered using the editable input field.
|
474
|
-
* @group Props
|
475
|
-
*/
|
476
|
-
editable;
|
477
|
-
/**
|
478
|
-
* 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).
|
479
|
-
* @group Props
|
480
|
-
*/
|
481
|
-
appendTo;
|
482
|
-
/**
|
483
|
-
* Index of the element in tabbing order.
|
484
|
-
* @group Props
|
485
|
-
*/
|
486
|
-
tabindex = 0;
|
487
|
-
/**
|
488
|
-
* Default text to display when no option is selected.
|
489
|
-
* @group Props
|
490
|
-
*/
|
491
|
-
set placeholder(val) {
|
492
|
-
this._placeholder.set(val);
|
493
|
-
}
|
494
|
-
get placeholder() {
|
495
|
-
return this._placeholder.asReadonly();
|
496
|
-
}
|
497
|
-
/**
|
498
|
-
* Icon to display in loading state.
|
499
|
-
* @group Props
|
500
|
-
*/
|
501
|
-
loadingIcon;
|
502
|
-
/**
|
503
|
-
* Placeholder text to show when filter input is empty.
|
504
|
-
* @group Props
|
505
|
-
*/
|
506
|
-
filterPlaceholder;
|
507
|
-
/**
|
508
|
-
* Locale to use in filtering. The default locale is the host environment's current locale.
|
509
|
-
* @group Props
|
510
|
-
*/
|
511
|
-
filterLocale;
|
512
|
-
/**
|
513
|
-
* Specifies the input variant of the component.
|
514
|
-
* @group Props
|
515
|
-
*/
|
516
|
-
variant;
|
517
|
-
/**
|
518
|
-
* Identifier of the accessible input element.
|
519
|
-
* @group Props
|
520
|
-
*/
|
521
|
-
inputId;
|
522
|
-
/**
|
523
|
-
* A property to uniquely identify a value in options.
|
524
|
-
* @group Props
|
525
|
-
*/
|
526
|
-
dataKey;
|
527
|
-
/**
|
528
|
-
* When filtering is enabled, filterBy decides which field or fields (comma separated) to search against.
|
529
|
-
* @group Props
|
530
|
-
*/
|
531
|
-
filterBy;
|
532
|
-
/**
|
533
|
-
* Fields used when filtering the options, defaults to optionLabel.
|
534
|
-
* @group Props
|
535
|
-
*/
|
536
|
-
filterFields;
|
537
|
-
/**
|
538
|
-
* When present, it specifies that the component should automatically get focus on load.
|
539
|
-
* @group Props
|
540
|
-
*/
|
541
|
-
autofocus;
|
542
|
-
/**
|
543
|
-
* Clears the filter value when hiding the dropdown.
|
544
|
-
* @group Props
|
545
|
-
*/
|
546
|
-
resetFilterOnHide = false;
|
547
|
-
/**
|
548
|
-
* Whether the selected option will be shown with a check mark.
|
549
|
-
* @group Props
|
550
|
-
*/
|
551
|
-
checkmark = false;
|
552
|
-
/**
|
553
|
-
* Icon class of the dropdown icon.
|
554
|
-
* @group Props
|
555
|
-
*/
|
556
|
-
dropdownIcon;
|
557
|
-
/**
|
558
|
-
* Whether the dropdown is in loading state.
|
559
|
-
* @group Props
|
560
|
-
*/
|
561
|
-
loading = false;
|
562
|
-
/**
|
563
|
-
* Name of the label field of an option.
|
564
|
-
* @group Props
|
565
|
-
*/
|
566
|
-
optionLabel;
|
567
|
-
/**
|
568
|
-
* Name of the value field of an option.
|
569
|
-
* @group Props
|
570
|
-
*/
|
571
|
-
optionValue;
|
572
|
-
/**
|
573
|
-
* Name of the disabled field of an option.
|
574
|
-
* @group Props
|
575
|
-
*/
|
576
|
-
optionDisabled;
|
577
|
-
/**
|
578
|
-
* Name of the label field of an option group.
|
579
|
-
* @group Props
|
580
|
-
*/
|
581
|
-
optionGroupLabel = 'label';
|
582
|
-
/**
|
583
|
-
* Name of the options field of an option group.
|
584
|
-
* @group Props
|
585
|
-
*/
|
586
|
-
optionGroupChildren = 'items';
|
587
|
-
/**
|
588
|
-
* Whether to display the first item as the label if no placeholder is defined and value is null.
|
589
|
-
* @deprecated since v17.3.0, set initial value by model instead.
|
590
|
-
* @group Props
|
591
|
-
*/
|
592
|
-
autoDisplayFirst = true;
|
593
|
-
/**
|
594
|
-
* Whether to display options as grouped when nested options are provided.
|
595
|
-
* @group Props
|
596
|
-
*/
|
597
|
-
group;
|
598
|
-
/**
|
599
|
-
* When enabled, a clear icon is displayed to clear the value.
|
600
|
-
* @group Props
|
601
|
-
*/
|
602
|
-
showClear;
|
603
|
-
/**
|
604
|
-
* Text to display when filtering does not return any results. Defaults to global value in i18n translation configuration.
|
605
|
-
* @group Props
|
606
|
-
*/
|
607
|
-
emptyFilterMessage = '';
|
608
|
-
/**
|
609
|
-
* Text to display when there is no data. Defaults to global value in i18n translation configuration.
|
610
|
-
* @group Props
|
611
|
-
*/
|
612
|
-
emptyMessage = '';
|
613
|
-
/**
|
614
|
-
* Defines if data is loaded and interacted with in lazy manner.
|
615
|
-
* @group Props
|
616
|
-
*/
|
617
|
-
lazy = false;
|
618
|
-
/**
|
619
|
-
* Whether the data should be loaded on demand during scroll.
|
620
|
-
* @group Props
|
621
|
-
*/
|
622
|
-
virtualScroll;
|
623
|
-
/**
|
624
|
-
* Height of an item in the list for VirtualScrolling.
|
625
|
-
* @group Props
|
626
|
-
*/
|
627
|
-
virtualScrollItemSize;
|
628
|
-
/**
|
629
|
-
* Whether to use the scroller feature. The properties of scroller component can be used like an object in it.
|
630
|
-
* @group Props
|
631
|
-
*/
|
632
|
-
virtualScrollOptions;
|
633
|
-
/**
|
634
|
-
* Whether to use overlay API feature. The properties of overlay API can be used like an object in it.
|
635
|
-
* @group Props
|
636
|
-
*/
|
637
|
-
overlayOptions;
|
638
|
-
/**
|
639
|
-
* Defines a string that labels the filter input.
|
640
|
-
* @group Props
|
641
|
-
*/
|
642
|
-
ariaFilterLabel;
|
643
|
-
/**
|
644
|
-
* Used to define a aria label attribute the current element.
|
645
|
-
* @group Props
|
646
|
-
*/
|
647
|
-
ariaLabel;
|
648
|
-
/**
|
649
|
-
* Establishes relationships between the component and label(s) where its value should be one or more element IDs.
|
650
|
-
* @group Props
|
651
|
-
*/
|
652
|
-
ariaLabelledBy;
|
653
|
-
/**
|
654
|
-
* Defines how the items are filtered.
|
655
|
-
* @group Props
|
656
|
-
*/
|
657
|
-
filterMatchMode = 'contains';
|
658
|
-
/**
|
659
|
-
* Maximum number of character allows in the editable input field.
|
660
|
-
* @group Props
|
661
|
-
*/
|
662
|
-
maxlength;
|
663
|
-
/**
|
664
|
-
* Advisory information to display in a tooltip on hover.
|
665
|
-
* @group Props
|
666
|
-
*/
|
667
|
-
tooltip = '';
|
668
|
-
/**
|
669
|
-
* Position of the tooltip.
|
670
|
-
* @group Props
|
671
|
-
*/
|
672
|
-
tooltipPosition = 'right';
|
673
|
-
/**
|
674
|
-
* Type of CSS position.
|
675
|
-
* @group Props
|
676
|
-
*/
|
677
|
-
tooltipPositionStyle = 'absolute';
|
678
|
-
/**
|
679
|
-
* Style class of the tooltip.
|
680
|
-
* @group Props
|
681
|
-
*/
|
682
|
-
tooltipStyleClass;
|
683
|
-
/**
|
684
|
-
* Fields used when filtering the options, defaults to optionLabel.
|
685
|
-
* @group Props
|
686
|
-
*/
|
687
|
-
focusOnHover = false;
|
688
|
-
/**
|
689
|
-
* Determines if the option will be selected on focus.
|
690
|
-
* @group Props
|
691
|
-
*/
|
692
|
-
selectOnFocus = false;
|
693
|
-
/**
|
694
|
-
* Whether to focus on the first visible or selected element when the overlay panel is shown.
|
695
|
-
* @group Props
|
696
|
-
*/
|
697
|
-
autoOptionFocus = true;
|
698
|
-
/**
|
699
|
-
* Applies focus to the filter element when the overlay is shown.
|
700
|
-
* @group Props
|
701
|
-
*/
|
702
|
-
autofocusFilter = true;
|
703
|
-
/**
|
704
|
-
* Whether the component should span the full width of its parent.
|
705
|
-
* @group Props
|
706
|
-
*/
|
707
|
-
fluid;
|
708
|
-
/**
|
709
|
-
* When present, it specifies that the component should be disabled.
|
710
|
-
* @group Props
|
711
|
-
*/
|
712
|
-
get disabled() {
|
713
|
-
return this._disabled;
|
714
|
-
}
|
715
|
-
set disabled(_disabled) {
|
716
|
-
if (_disabled) {
|
717
|
-
this.focused = false;
|
718
|
-
if (this.overlayVisible)
|
719
|
-
this.hide();
|
720
|
-
}
|
721
|
-
this._disabled = _disabled;
|
722
|
-
if (!this.cd.destroyed) {
|
723
|
-
this.cd.detectChanges();
|
724
|
-
}
|
725
|
-
}
|
726
|
-
/**
|
727
|
-
* Item size of item to be virtual scrolled.
|
728
|
-
* @group Props
|
729
|
-
* @deprecated use virtualScrollItemSize property instead.
|
730
|
-
*/
|
731
|
-
get itemSize() {
|
732
|
-
return this._itemSize;
|
733
|
-
}
|
734
|
-
set itemSize(val) {
|
735
|
-
this._itemSize = val;
|
736
|
-
console.log('The itemSize property is deprecated, use virtualScrollItemSize property instead.');
|
737
|
-
}
|
738
|
-
_itemSize;
|
739
|
-
/**
|
740
|
-
* Whether to automatically manage layering.
|
741
|
-
* @group Props
|
742
|
-
* @deprecated since v14.2.0, use overlayOptions property instead.
|
743
|
-
*/
|
744
|
-
get autoZIndex() {
|
745
|
-
return this._autoZIndex;
|
746
|
-
}
|
747
|
-
set autoZIndex(val) {
|
748
|
-
this._autoZIndex = val;
|
749
|
-
console.log('The autoZIndex property is deprecated since v14.2.0, use overlayOptions property instead.');
|
750
|
-
}
|
751
|
-
_autoZIndex;
|
752
|
-
/**
|
753
|
-
* Base zIndex value to use in layering.
|
754
|
-
* @group Props
|
755
|
-
* @deprecated since v14.2.0, use overlayOptions property instead.
|
756
|
-
*/
|
757
|
-
get baseZIndex() {
|
758
|
-
return this._baseZIndex;
|
759
|
-
}
|
760
|
-
set baseZIndex(val) {
|
761
|
-
this._baseZIndex = val;
|
762
|
-
console.log('The baseZIndex property is deprecated since v14.2.0, use overlayOptions property instead.');
|
763
|
-
}
|
764
|
-
_baseZIndex;
|
765
|
-
/**
|
766
|
-
* Transition options of the show animation.
|
767
|
-
* @group Props
|
768
|
-
* @deprecated since v14.2.0, use overlayOptions property instead.
|
769
|
-
*/
|
770
|
-
get showTransitionOptions() {
|
771
|
-
return this._showTransitionOptions;
|
772
|
-
}
|
773
|
-
set showTransitionOptions(val) {
|
774
|
-
this._showTransitionOptions = val;
|
775
|
-
console.log('The showTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.');
|
776
|
-
}
|
777
|
-
_showTransitionOptions;
|
778
|
-
/**
|
779
|
-
* Transition options of the hide animation.
|
780
|
-
* @group Props
|
781
|
-
* @deprecated since v14.2.0, use overlayOptions property instead.
|
782
|
-
*/
|
783
|
-
get hideTransitionOptions() {
|
784
|
-
return this._hideTransitionOptions;
|
785
|
-
}
|
786
|
-
set hideTransitionOptions(val) {
|
787
|
-
this._hideTransitionOptions = val;
|
788
|
-
console.log('The hideTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.');
|
789
|
-
}
|
790
|
-
_hideTransitionOptions;
|
791
|
-
/**
|
792
|
-
* When specified, filter displays with this value.
|
793
|
-
* @group Props
|
794
|
-
*/
|
795
|
-
get filterValue() {
|
796
|
-
return this._filterValue();
|
797
|
-
}
|
798
|
-
set filterValue(val) {
|
799
|
-
setTimeout(() => {
|
800
|
-
this._filterValue.set(val);
|
801
|
-
});
|
802
|
-
}
|
803
|
-
/**
|
804
|
-
* An array of objects to display as the available options.
|
805
|
-
* @group Props
|
806
|
-
*/
|
807
|
-
get options() {
|
808
|
-
const options = this._options();
|
809
|
-
return options;
|
810
|
-
}
|
811
|
-
set options(val) {
|
812
|
-
if (!deepEquals(val, this._options())) {
|
813
|
-
this._options.set(val);
|
814
|
-
}
|
815
|
-
}
|
816
|
-
/**
|
817
|
-
* Callback to invoke when value of dropdown changes.
|
818
|
-
* @param {DropdownChangeEvent} event - custom change event.
|
819
|
-
* @group Emits
|
820
|
-
*/
|
821
|
-
onChange = new EventEmitter();
|
822
|
-
/**
|
823
|
-
* Callback to invoke when data is filtered.
|
824
|
-
* @param {DropdownFilterEvent} event - custom filter event.
|
825
|
-
* @group Emits
|
826
|
-
*/
|
827
|
-
onFilter = new EventEmitter();
|
828
|
-
/**
|
829
|
-
* Callback to invoke when dropdown gets focus.
|
830
|
-
* @param {Event} event - Browser event.
|
831
|
-
* @group Emits
|
832
|
-
*/
|
833
|
-
onFocus = new EventEmitter();
|
834
|
-
/**
|
835
|
-
* Callback to invoke when dropdown loses focus.
|
836
|
-
* @param {Event} event - Browser event.
|
837
|
-
* @group Emits
|
838
|
-
*/
|
839
|
-
onBlur = new EventEmitter();
|
840
|
-
/**
|
841
|
-
* Callback to invoke when component is clicked.
|
842
|
-
* @param {MouseEvent} event - Mouse event.
|
843
|
-
* @group Emits
|
844
|
-
*/
|
845
|
-
onClick = new EventEmitter();
|
846
|
-
/**
|
847
|
-
* Callback to invoke when dropdown overlay gets visible.
|
848
|
-
* @param {AnimationEvent} event - Animation event.
|
849
|
-
* @group Emits
|
850
|
-
*/
|
851
|
-
onShow = new EventEmitter();
|
852
|
-
/**
|
853
|
-
* Callback to invoke when dropdown overlay gets hidden.
|
854
|
-
* @param {AnimationEvent} event - Animation event.
|
855
|
-
* @group Emits
|
856
|
-
*/
|
857
|
-
onHide = new EventEmitter();
|
858
|
-
/**
|
859
|
-
* Callback to invoke when dropdown clears the value.
|
860
|
-
* @param {Event} event - Browser event.
|
861
|
-
* @group Emits
|
862
|
-
*/
|
863
|
-
onClear = new EventEmitter();
|
864
|
-
/**
|
865
|
-
* Callback to invoke in lazy mode to load new data.
|
866
|
-
* @param {DropdownLazyLoadEvent} event - Lazy load event.
|
867
|
-
* @group Emits
|
868
|
-
*/
|
869
|
-
onLazyLoad = new EventEmitter();
|
870
|
-
_componentStyle = inject(DropdownStyle);
|
871
|
-
containerViewChild;
|
872
|
-
filterViewChild;
|
873
|
-
focusInputViewChild;
|
874
|
-
editableInputViewChild;
|
875
|
-
itemsViewChild;
|
876
|
-
scroller;
|
877
|
-
overlayViewChild;
|
878
|
-
firstHiddenFocusableElementOnOverlay;
|
879
|
-
lastHiddenFocusableElementOnOverlay;
|
880
|
-
// @todo to be refactored
|
881
|
-
get hostClass() {
|
882
|
-
const classes = this._componentStyle.classes
|
883
|
-
.root({ instance: this })
|
884
|
-
.map((cls) => {
|
885
|
-
if (typeof cls === 'string') {
|
886
|
-
return cls;
|
887
|
-
}
|
888
|
-
else {
|
889
|
-
return Object.keys(cls)
|
890
|
-
.filter((key) => cls[key])
|
891
|
-
.join(' ');
|
892
|
-
}
|
893
|
-
})
|
894
|
-
.join(' ');
|
895
|
-
return classes + ' ' + this.styleClass;
|
896
|
-
}
|
897
|
-
get hostStyle() {
|
898
|
-
return this.style;
|
899
|
-
}
|
900
|
-
_disabled;
|
901
|
-
itemsWrapper;
|
902
|
-
itemTemplate;
|
903
|
-
groupTemplate;
|
904
|
-
loaderTemplate;
|
905
|
-
selectedItemTemplate;
|
906
|
-
headerTemplate;
|
907
|
-
filterTemplate;
|
908
|
-
footerTemplate;
|
909
|
-
emptyFilterTemplate;
|
910
|
-
emptyTemplate;
|
911
|
-
dropdownIconTemplate;
|
912
|
-
loadingIconTemplate;
|
913
|
-
clearIconTemplate;
|
914
|
-
filterIconTemplate;
|
915
|
-
filterOptions;
|
916
|
-
_options = signal(null);
|
917
|
-
_placeholder = signal(undefined);
|
918
|
-
modelValue = signal(null);
|
919
|
-
value;
|
920
|
-
onModelChange = () => { };
|
921
|
-
onModelTouched = () => { };
|
922
|
-
hover;
|
923
|
-
focused;
|
924
|
-
overlayVisible;
|
925
|
-
optionsChanged;
|
926
|
-
panel;
|
927
|
-
selectedOptionUpdated;
|
928
|
-
_filterValue = signal(null);
|
929
|
-
searchValue;
|
930
|
-
searchTimeout;
|
931
|
-
preventModelTouched;
|
932
|
-
focusedOptionIndex = signal(-1);
|
933
|
-
clicked = signal(false);
|
934
|
-
get emptyMessageLabel() {
|
935
|
-
return this.emptyMessage || this.config.getTranslation(TranslationKeys.EMPTY_MESSAGE);
|
936
|
-
}
|
937
|
-
get emptyFilterMessageLabel() {
|
938
|
-
return this.emptyFilterMessage || this.config.getTranslation(TranslationKeys.EMPTY_FILTER_MESSAGE);
|
939
|
-
}
|
940
|
-
get isVisibleClearIcon() {
|
941
|
-
return this.modelValue() != null && this.hasSelectedOption() && this.showClear && !this.disabled;
|
942
|
-
}
|
943
|
-
get listLabel() {
|
944
|
-
return this.config.getTranslation(TranslationKeys.ARIA)['listLabel'];
|
945
|
-
}
|
946
|
-
get hasFluid() {
|
947
|
-
const nativeElement = this.el.nativeElement;
|
948
|
-
const fluidComponent = nativeElement.closest('p-fluid');
|
949
|
-
return this.fluid || !!fluidComponent;
|
950
|
-
}
|
951
|
-
get inputClass() {
|
952
|
-
const label = this.label();
|
953
|
-
return {
|
954
|
-
'p-select-label': true,
|
955
|
-
'p-placeholder': this.placeholder() && label === this.placeholder(),
|
956
|
-
'p-select-label-empty': !this.editable && !this.selectedItemTemplate && (label === undefined || label === null || label === 'p-emptylabel' || label.length === 0)
|
957
|
-
};
|
958
|
-
}
|
959
|
-
get focusedOptionId() {
|
960
|
-
return this.focusedOptionIndex() !== -1 ? `${this.id}_${this.focusedOptionIndex()}` : null;
|
961
|
-
}
|
962
|
-
visibleOptions = computed(() => {
|
963
|
-
const options = this.getAllVisibleAndNonVisibleOptions();
|
964
|
-
if (this._filterValue()) {
|
965
|
-
const _filterBy = this.filterBy || this.optionLabel;
|
966
|
-
const filteredOptions = !_filterBy && !this.filterFields && !this.optionValue
|
967
|
-
? this.options.filter((option) => {
|
968
|
-
if (option.label) {
|
969
|
-
return option.label.toString().toLowerCase().indexOf(this._filterValue().toLowerCase().trim()) !== -1;
|
970
|
-
}
|
971
|
-
return option.toString().toLowerCase().indexOf(this._filterValue().toLowerCase().trim()) !== -1;
|
972
|
-
})
|
973
|
-
: this.filterService.filter(options, this.searchFields(), this._filterValue().trim(), this.filterMatchMode, this.filterLocale);
|
974
|
-
if (this.group) {
|
975
|
-
const optionGroups = this.options || [];
|
976
|
-
const filtered = [];
|
977
|
-
optionGroups.forEach((group) => {
|
978
|
-
const groupChildren = this.getOptionGroupChildren(group);
|
979
|
-
const filteredItems = groupChildren.filter((item) => filteredOptions.includes(item));
|
980
|
-
if (filteredItems.length > 0)
|
981
|
-
filtered.push({
|
982
|
-
...group,
|
983
|
-
[typeof this.optionGroupChildren === 'string' ? this.optionGroupChildren : 'items']: [...filteredItems]
|
984
|
-
});
|
985
|
-
});
|
986
|
-
return this.flatOptions(filtered);
|
987
|
-
}
|
988
|
-
return filteredOptions;
|
989
|
-
}
|
990
|
-
return options;
|
991
|
-
});
|
992
|
-
label = computed(() => {
|
993
|
-
// use getAllVisibleAndNonVisibleOptions verses just visible options
|
994
|
-
// this will find the selected option whether or not the user is currently filtering because the filtered (i.e. visible) options, are a subset of all the options
|
995
|
-
const options = this.getAllVisibleAndNonVisibleOptions();
|
996
|
-
// use isOptionEqualsModelValue for the use case where the dropdown is initalized with a disabled option
|
997
|
-
const selectedOptionIndex = options.findIndex((option) => this.isOptionValueEqualsModelValue(option));
|
998
|
-
return selectedOptionIndex !== -1 ? this.getOptionLabel(options[selectedOptionIndex]) : this.placeholder() || 'p-emptylabel';
|
999
|
-
});
|
1000
|
-
filled = computed(() => {
|
1001
|
-
if (typeof this.modelValue() === 'string')
|
1002
|
-
return !!this.modelValue();
|
1003
|
-
return this.label() !== 'p-emptylabel' && this.modelValue() !== undefined && this.modelValue() !== null;
|
1004
|
-
});
|
1005
|
-
selectedOption;
|
1006
|
-
editableInputValue = computed(() => this.getOptionLabel(this.selectedOption) || this.modelValue() || '');
|
1007
|
-
constructor(zone, filterService) {
|
1008
|
-
super();
|
1009
|
-
this.zone = zone;
|
1010
|
-
this.filterService = filterService;
|
1011
|
-
effect(() => {
|
1012
|
-
const modelValue = this.modelValue();
|
1013
|
-
const visibleOptions = this.visibleOptions();
|
1014
|
-
if (visibleOptions && isNotEmpty(visibleOptions)) {
|
1015
|
-
const selectedOptionIndex = this.findSelectedOptionIndex();
|
1016
|
-
if (selectedOptionIndex !== -1 || modelValue === undefined || (typeof modelValue === 'string' && modelValue.length === 0) || this.isModelValueNotSet() || this.editable) {
|
1017
|
-
this.selectedOption = visibleOptions[selectedOptionIndex];
|
1018
|
-
}
|
1019
|
-
}
|
1020
|
-
if (isEmpty(visibleOptions) && (modelValue === undefined || this.isModelValueNotSet()) && isNotEmpty(this.selectedOption)) {
|
1021
|
-
this.selectedOption = null;
|
1022
|
-
}
|
1023
|
-
if (modelValue !== undefined && this.editable) {
|
1024
|
-
this.updateEditableLabel();
|
1025
|
-
}
|
1026
|
-
this.cd.markForCheck();
|
1027
|
-
});
|
1028
|
-
}
|
1029
|
-
isModelValueNotSet() {
|
1030
|
-
return this.modelValue() === null && !this.isOptionValueEqualsModelValue(this.selectedOption);
|
1031
|
-
}
|
1032
|
-
getAllVisibleAndNonVisibleOptions() {
|
1033
|
-
return this.group ? this.flatOptions(this.options) : this.options || [];
|
1034
|
-
}
|
1035
|
-
ngOnInit() {
|
1036
|
-
super.ngOnInit();
|
1037
|
-
console.log('Dropdown component is deprecated as of v18, use Select component instead.');
|
1038
|
-
this.id = this.id || uuid('pn_id_');
|
1039
|
-
this.autoUpdateModel();
|
1040
|
-
if (this.filterBy) {
|
1041
|
-
this.filterOptions = {
|
1042
|
-
filter: (value) => this.onFilterInputChange(value),
|
1043
|
-
reset: () => this.resetFilter()
|
1044
|
-
};
|
1045
|
-
}
|
1046
|
-
}
|
1047
|
-
ngAfterViewChecked() {
|
1048
|
-
if (this.optionsChanged && this.overlayVisible) {
|
1049
|
-
this.optionsChanged = false;
|
1050
|
-
this.zone.runOutsideAngular(() => {
|
1051
|
-
setTimeout(() => {
|
1052
|
-
if (this.overlayViewChild) {
|
1053
|
-
this.overlayViewChild.alignOverlay();
|
1054
|
-
}
|
1055
|
-
}, 1);
|
1056
|
-
});
|
1057
|
-
}
|
1058
|
-
if (this.selectedOptionUpdated && this.itemsWrapper) {
|
1059
|
-
let selectedItem = findSingle(this.overlayViewChild?.overlayViewChild?.nativeElement, 'li.p-highlight');
|
1060
|
-
if (selectedItem) {
|
1061
|
-
scrollInView(this.itemsWrapper, selectedItem);
|
1062
|
-
}
|
1063
|
-
this.selectedOptionUpdated = false;
|
1064
|
-
}
|
1065
|
-
}
|
1066
|
-
templates;
|
1067
|
-
ngAfterContentInit() {
|
1068
|
-
this.templates.forEach((item) => {
|
1069
|
-
switch (item.getType()) {
|
1070
|
-
case 'item':
|
1071
|
-
this.itemTemplate = item.template;
|
1072
|
-
break;
|
1073
|
-
case 'selectedItem':
|
1074
|
-
this.selectedItemTemplate = item.template;
|
1075
|
-
break;
|
1076
|
-
case 'header':
|
1077
|
-
this.headerTemplate = item.template;
|
1078
|
-
break;
|
1079
|
-
case 'filter':
|
1080
|
-
this.filterTemplate = item.template;
|
1081
|
-
break;
|
1082
|
-
case 'footer':
|
1083
|
-
this.footerTemplate = item.template;
|
1084
|
-
break;
|
1085
|
-
case 'emptyfilter':
|
1086
|
-
this.emptyFilterTemplate = item.template;
|
1087
|
-
break;
|
1088
|
-
case 'empty':
|
1089
|
-
this.emptyTemplate = item.template;
|
1090
|
-
break;
|
1091
|
-
case 'group':
|
1092
|
-
this.groupTemplate = item.template;
|
1093
|
-
break;
|
1094
|
-
case 'loader':
|
1095
|
-
this.loaderTemplate = item.template;
|
1096
|
-
break;
|
1097
|
-
case 'dropdownicon':
|
1098
|
-
this.dropdownIconTemplate = item.template;
|
1099
|
-
break;
|
1100
|
-
case 'loadingicon':
|
1101
|
-
this.loadingIconTemplate = item.template;
|
1102
|
-
break;
|
1103
|
-
case 'clearicon':
|
1104
|
-
this.clearIconTemplate = item.template;
|
1105
|
-
break;
|
1106
|
-
case 'filtericon':
|
1107
|
-
this.filterIconTemplate = item.template;
|
1108
|
-
break;
|
1109
|
-
default:
|
1110
|
-
this.itemTemplate = item.template;
|
1111
|
-
break;
|
1112
|
-
}
|
1113
|
-
});
|
1114
|
-
}
|
1115
|
-
flatOptions(options) {
|
1116
|
-
return (options || []).reduce((result, option, index) => {
|
1117
|
-
result.push({ optionGroup: option, group: true, index });
|
1118
|
-
const optionGroupChildren = this.getOptionGroupChildren(option);
|
1119
|
-
optionGroupChildren && optionGroupChildren.forEach((o) => result.push(o));
|
1120
|
-
return result;
|
1121
|
-
}, []);
|
1122
|
-
}
|
1123
|
-
autoUpdateModel() {
|
1124
|
-
if (this.selectOnFocus && this.autoOptionFocus && !this.hasSelectedOption()) {
|
1125
|
-
this.focusedOptionIndex.set(this.findFirstFocusedOptionIndex());
|
1126
|
-
this.onOptionSelect(null, this.visibleOptions()[this.focusedOptionIndex()], false);
|
1127
|
-
}
|
1128
|
-
if (this.autoDisplayFirst && (this.modelValue() === null || this.modelValue() === undefined)) {
|
1129
|
-
if (!this.placeholder()) {
|
1130
|
-
const ind = this.findFirstOptionIndex();
|
1131
|
-
this.onOptionSelect(null, this.visibleOptions()[ind], false, true);
|
1132
|
-
}
|
1133
|
-
}
|
1134
|
-
}
|
1135
|
-
onOptionSelect(event, option, isHide = true, preventChange = false) {
|
1136
|
-
if (!this.isSelected(option)) {
|
1137
|
-
const value = this.getOptionValue(option);
|
1138
|
-
this.updateModel(value, event);
|
1139
|
-
this.focusedOptionIndex.set(this.findSelectedOptionIndex());
|
1140
|
-
preventChange === false && this.onChange.emit({ originalEvent: event, value: value });
|
1141
|
-
}
|
1142
|
-
if (isHide) {
|
1143
|
-
this.hide(true);
|
1144
|
-
}
|
1145
|
-
}
|
1146
|
-
onOptionMouseEnter(event, index) {
|
1147
|
-
if (this.focusOnHover) {
|
1148
|
-
this.changeFocusedOptionIndex(event, index);
|
1149
|
-
}
|
1150
|
-
}
|
1151
|
-
updateModel(value, event) {
|
1152
|
-
this.value = value;
|
1153
|
-
this.onModelChange(value);
|
1154
|
-
this.modelValue.set(value);
|
1155
|
-
this.selectedOptionUpdated = true;
|
1156
|
-
}
|
1157
|
-
writeValue(value) {
|
1158
|
-
if (this.filter) {
|
1159
|
-
this.resetFilter();
|
1160
|
-
}
|
1161
|
-
this.value = value;
|
1162
|
-
this.allowModelChange() && this.onModelChange(value);
|
1163
|
-
this.modelValue.set(this.value);
|
1164
|
-
this.updateEditableLabel();
|
1165
|
-
this.cd.markForCheck();
|
1166
|
-
}
|
1167
|
-
allowModelChange() {
|
1168
|
-
return this.autoDisplayFirst && !this.placeholder() && (this.modelValue() === undefined || this.modelValue() === null) && !this.editable && this.options && this.options.length;
|
1169
|
-
}
|
1170
|
-
isSelected(option) {
|
1171
|
-
return this.isValidOption(option) && this.isOptionValueEqualsModelValue(option);
|
1172
|
-
}
|
1173
|
-
isOptionValueEqualsModelValue(option) {
|
1174
|
-
return equals(this.modelValue(), this.getOptionValue(option), this.equalityKey());
|
1175
|
-
}
|
1176
|
-
ngAfterViewInit() {
|
1177
|
-
super.ngAfterViewInit();
|
1178
|
-
if (this.editable) {
|
1179
|
-
this.updateEditableLabel();
|
1180
|
-
}
|
1181
|
-
this.updatePlaceHolderForFloatingLabel();
|
1182
|
-
}
|
1183
|
-
updatePlaceHolderForFloatingLabel() {
|
1184
|
-
const parentElement = this.el.nativeElement.parentElement;
|
1185
|
-
const isInFloatingLabel = parentElement?.classList.contains('p-float-label');
|
1186
|
-
if (parentElement && isInFloatingLabel && !this.selectedOption) {
|
1187
|
-
const label = parentElement.querySelector('label');
|
1188
|
-
if (label) {
|
1189
|
-
this._placeholder.set(label.textContent);
|
1190
|
-
}
|
1191
|
-
}
|
1192
|
-
}
|
1193
|
-
updateEditableLabel() {
|
1194
|
-
if (this.editableInputViewChild) {
|
1195
|
-
this.editableInputViewChild.nativeElement.value = this.getOptionLabel(this.selectedOption) || this.modelValue() || '';
|
1196
|
-
}
|
1197
|
-
}
|
1198
|
-
clearEditableLabel() {
|
1199
|
-
if (this.editableInputViewChild) {
|
1200
|
-
this.editableInputViewChild.nativeElement.value = '';
|
1201
|
-
}
|
1202
|
-
}
|
1203
|
-
getOptionIndex(index, scrollerOptions) {
|
1204
|
-
return this.virtualScrollerDisabled ? index : scrollerOptions && scrollerOptions.getItemOptions(index)['index'];
|
1205
|
-
}
|
1206
|
-
getOptionLabel(option) {
|
1207
|
-
return this.optionLabel !== undefined && this.optionLabel !== null ? resolveFieldData(option, this.optionLabel) : option && option.label !== undefined ? option.label : option;
|
1208
|
-
}
|
1209
|
-
getOptionValue(option) {
|
1210
|
-
return this.optionValue && this.optionValue !== null ? resolveFieldData(option, this.optionValue) : !this.optionLabel && option && option.value !== undefined ? option.value : option;
|
1211
|
-
}
|
1212
|
-
isOptionDisabled(option) {
|
1213
|
-
if (this.getOptionValue(this.modelValue()) === this.getOptionValue(option) || (this.getOptionLabel(this.modelValue() === this.getOptionLabel(option)) && option.disabled === false)) {
|
1214
|
-
return false;
|
1215
|
-
}
|
1216
|
-
else {
|
1217
|
-
return this.optionDisabled ? resolveFieldData(option, this.optionDisabled) : option && option.disabled !== undefined ? option.disabled : false;
|
1218
|
-
}
|
1219
|
-
}
|
1220
|
-
getOptionGroupLabel(optionGroup) {
|
1221
|
-
return this.optionGroupLabel !== undefined && this.optionGroupLabel !== null ? resolveFieldData(optionGroup, this.optionGroupLabel) : optionGroup && optionGroup.label !== undefined ? optionGroup.label : optionGroup;
|
1222
|
-
}
|
1223
|
-
getOptionGroupChildren(optionGroup) {
|
1224
|
-
return this.optionGroupChildren !== undefined && this.optionGroupChildren !== null ? resolveFieldData(optionGroup, this.optionGroupChildren) : optionGroup.items;
|
1225
|
-
}
|
1226
|
-
getAriaPosInset(index) {
|
1227
|
-
return ((this.optionGroupLabel
|
1228
|
-
? index -
|
1229
|
-
this.visibleOptions()
|
1230
|
-
.slice(0, index)
|
1231
|
-
.filter((option) => this.isOptionGroup(option)).length
|
1232
|
-
: index) + 1);
|
1233
|
-
}
|
1234
|
-
get ariaSetSize() {
|
1235
|
-
return this.visibleOptions().filter((option) => !this.isOptionGroup(option)).length;
|
1236
|
-
}
|
1237
|
-
/**
|
1238
|
-
* Callback to invoke on filter reset.
|
1239
|
-
* @group Method
|
1240
|
-
*/
|
1241
|
-
resetFilter() {
|
1242
|
-
this._filterValue.set(null);
|
1243
|
-
if (this.filterViewChild && this.filterViewChild.nativeElement) {
|
1244
|
-
this.filterViewChild.nativeElement.value = '';
|
1245
|
-
}
|
1246
|
-
}
|
1247
|
-
registerOnChange(fn) {
|
1248
|
-
this.onModelChange = fn;
|
1249
|
-
}
|
1250
|
-
registerOnTouched(fn) {
|
1251
|
-
this.onModelTouched = fn;
|
1252
|
-
}
|
1253
|
-
setDisabledState(val) {
|
1254
|
-
this.disabled = val;
|
1255
|
-
this.cd.markForCheck();
|
1256
|
-
}
|
1257
|
-
onContainerClick(event) {
|
1258
|
-
if (this.disabled || this.readonly || this.loading) {
|
1259
|
-
return;
|
1260
|
-
}
|
1261
|
-
this.focusInputViewChild?.nativeElement.focus({ preventScroll: true });
|
1262
|
-
if (event.target.tagName === 'INPUT' || event.target.getAttribute('data-pc-section') === 'clearicon' || event.target.closest('[data-pc-section="clearicon"]')) {
|
1263
|
-
return;
|
1264
|
-
}
|
1265
|
-
else if (!this.overlayViewChild || !this.overlayViewChild.el.nativeElement.contains(event.target)) {
|
1266
|
-
this.overlayVisible ? this.hide(true) : this.show(true);
|
1267
|
-
}
|
1268
|
-
this.onClick.emit(event);
|
1269
|
-
this.clicked.set(true);
|
1270
|
-
this.cd.detectChanges();
|
1271
|
-
}
|
1272
|
-
isEmpty() {
|
1273
|
-
return !this._options() || (this.visibleOptions() && this.visibleOptions().length === 0);
|
1274
|
-
}
|
1275
|
-
onEditableInput(event) {
|
1276
|
-
const value = event.target.value;
|
1277
|
-
this.searchValue = '';
|
1278
|
-
const matched = this.searchOptions(event, value);
|
1279
|
-
!matched && this.focusedOptionIndex.set(-1);
|
1280
|
-
this.onModelChange(value);
|
1281
|
-
this.updateModel(value, event);
|
1282
|
-
setTimeout(() => {
|
1283
|
-
this.onChange.emit({ originalEvent: event, value: value });
|
1284
|
-
}, 1);
|
1285
|
-
!this.overlayVisible && isNotEmpty(value) && this.show();
|
1286
|
-
}
|
1287
|
-
/**
|
1288
|
-
* Displays the panel.
|
1289
|
-
* @group Method
|
1290
|
-
*/
|
1291
|
-
show(isFocus) {
|
1292
|
-
this.overlayVisible = true;
|
1293
|
-
const focusedOptionIndex = this.focusedOptionIndex() !== -1 ? this.focusedOptionIndex() : this.autoOptionFocus ? this.findFirstFocusedOptionIndex() : this.editable ? -1 : this.findSelectedOptionIndex();
|
1294
|
-
this.focusedOptionIndex.set(focusedOptionIndex);
|
1295
|
-
if (isFocus) {
|
1296
|
-
focus(this.focusInputViewChild?.nativeElement);
|
1297
|
-
}
|
1298
|
-
this.cd.markForCheck();
|
1299
|
-
}
|
1300
|
-
onOverlayAnimationStart(event) {
|
1301
|
-
if (event.toState === 'visible') {
|
1302
|
-
this.itemsWrapper = findSingle(this.overlayViewChild?.overlayViewChild?.nativeElement, this.virtualScroll ? '.p-scroller' : '.p-dropdown-items-wrapper');
|
1303
|
-
this.virtualScroll && this.scroller?.setContentEl(this.itemsViewChild?.nativeElement);
|
1304
|
-
if (this.options && this.options.length) {
|
1305
|
-
if (this.virtualScroll) {
|
1306
|
-
const selectedIndex = this.modelValue() ? this.focusedOptionIndex() : -1;
|
1307
|
-
if (selectedIndex !== -1) {
|
1308
|
-
this.scroller?.scrollToIndex(selectedIndex);
|
1309
|
-
}
|
1310
|
-
}
|
1311
|
-
else {
|
1312
|
-
let selectedListItem = findSingle(this.itemsWrapper, '.p-dropdown-item.p-highlight');
|
1313
|
-
if (selectedListItem) {
|
1314
|
-
selectedListItem.scrollIntoView({ block: 'nearest', inline: 'nearest' });
|
1315
|
-
}
|
1316
|
-
}
|
1317
|
-
}
|
1318
|
-
if (this.filterViewChild && this.filterViewChild.nativeElement) {
|
1319
|
-
this.preventModelTouched = true;
|
1320
|
-
if (this.autofocusFilter && !this.editable) {
|
1321
|
-
this.filterViewChild.nativeElement.focus();
|
1322
|
-
}
|
1323
|
-
}
|
1324
|
-
this.onShow.emit(event);
|
1325
|
-
}
|
1326
|
-
if (event.toState === 'void') {
|
1327
|
-
this.itemsWrapper = null;
|
1328
|
-
this.onModelTouched();
|
1329
|
-
this.onHide.emit(event);
|
1330
|
-
}
|
1331
|
-
}
|
1332
|
-
/**
|
1333
|
-
* Hides the panel.
|
1334
|
-
* @group Method
|
1335
|
-
*/
|
1336
|
-
hide(isFocus) {
|
1337
|
-
this.overlayVisible = false;
|
1338
|
-
this.focusedOptionIndex.set(-1);
|
1339
|
-
this.clicked.set(false);
|
1340
|
-
this.searchValue = '';
|
1341
|
-
if (this.overlayOptions?.mode === 'modal') {
|
1342
|
-
unblockBodyScroll();
|
1343
|
-
}
|
1344
|
-
if (this.filter && this.resetFilterOnHide) {
|
1345
|
-
this.resetFilter();
|
1346
|
-
}
|
1347
|
-
if (isFocus) {
|
1348
|
-
if (this.focusInputViewChild) {
|
1349
|
-
focus(this.focusInputViewChild?.nativeElement);
|
1350
|
-
}
|
1351
|
-
if (this.editable && this.editableInputViewChild) {
|
1352
|
-
focus(this.editableInputViewChild?.nativeElement);
|
1353
|
-
}
|
1354
|
-
}
|
1355
|
-
this.cd.markForCheck();
|
1356
|
-
}
|
1357
|
-
onInputFocus(event) {
|
1358
|
-
if (this.disabled) {
|
1359
|
-
// For ScreenReaders
|
1360
|
-
return;
|
1361
|
-
}
|
1362
|
-
this.focused = true;
|
1363
|
-
const focusedOptionIndex = this.focusedOptionIndex() !== -1 ? this.focusedOptionIndex() : this.overlayVisible && this.autoOptionFocus ? this.findFirstFocusedOptionIndex() : -1;
|
1364
|
-
this.focusedOptionIndex.set(focusedOptionIndex);
|
1365
|
-
this.overlayVisible && this.scrollInView(this.focusedOptionIndex());
|
1366
|
-
this.onFocus.emit(event);
|
1367
|
-
}
|
1368
|
-
onInputBlur(event) {
|
1369
|
-
this.focused = false;
|
1370
|
-
this.onBlur.emit(event);
|
1371
|
-
if (!this.preventModelTouched) {
|
1372
|
-
this.onModelTouched();
|
1373
|
-
}
|
1374
|
-
this.preventModelTouched = false;
|
1375
|
-
}
|
1376
|
-
onKeyDown(event, search) {
|
1377
|
-
if (this.disabled || this.readonly || this.loading) {
|
1378
|
-
return;
|
1379
|
-
}
|
1380
|
-
switch (event.code) {
|
1381
|
-
//down
|
1382
|
-
case 'ArrowDown':
|
1383
|
-
this.onArrowDownKey(event);
|
1384
|
-
break;
|
1385
|
-
//up
|
1386
|
-
case 'ArrowUp':
|
1387
|
-
this.onArrowUpKey(event, this.editable);
|
1388
|
-
break;
|
1389
|
-
case 'ArrowLeft':
|
1390
|
-
case 'ArrowRight':
|
1391
|
-
this.onArrowLeftKey(event, this.editable);
|
1392
|
-
break;
|
1393
|
-
case 'Delete':
|
1394
|
-
this.onDeleteKey(event);
|
1395
|
-
break;
|
1396
|
-
case 'Home':
|
1397
|
-
this.onHomeKey(event, this.editable);
|
1398
|
-
break;
|
1399
|
-
case 'End':
|
1400
|
-
this.onEndKey(event, this.editable);
|
1401
|
-
break;
|
1402
|
-
case 'PageDown':
|
1403
|
-
this.onPageDownKey(event);
|
1404
|
-
break;
|
1405
|
-
case 'PageUp':
|
1406
|
-
this.onPageUpKey(event);
|
1407
|
-
break;
|
1408
|
-
//space
|
1409
|
-
case 'Space':
|
1410
|
-
this.onSpaceKey(event, search);
|
1411
|
-
break;
|
1412
|
-
//enter
|
1413
|
-
case 'Enter':
|
1414
|
-
case 'NumpadEnter':
|
1415
|
-
this.onEnterKey(event);
|
1416
|
-
break;
|
1417
|
-
//escape and tab
|
1418
|
-
case 'Escape':
|
1419
|
-
this.onEscapeKey(event);
|
1420
|
-
break;
|
1421
|
-
case 'Tab':
|
1422
|
-
this.onTabKey(event);
|
1423
|
-
break;
|
1424
|
-
case 'Backspace':
|
1425
|
-
this.onBackspaceKey(event, this.editable);
|
1426
|
-
break;
|
1427
|
-
case 'ShiftLeft':
|
1428
|
-
case 'ShiftRight':
|
1429
|
-
//NOOP
|
1430
|
-
break;
|
1431
|
-
default:
|
1432
|
-
if (!event.metaKey && isPrintableCharacter(event.key)) {
|
1433
|
-
!this.overlayVisible && this.show();
|
1434
|
-
!this.editable && this.searchOptions(event, event.key);
|
1435
|
-
}
|
1436
|
-
break;
|
1437
|
-
}
|
1438
|
-
this.clicked.set(false);
|
1439
|
-
}
|
1440
|
-
onFilterKeyDown(event) {
|
1441
|
-
switch (event.code) {
|
1442
|
-
case 'ArrowDown':
|
1443
|
-
this.onArrowDownKey(event);
|
1444
|
-
break;
|
1445
|
-
case 'ArrowUp':
|
1446
|
-
this.onArrowUpKey(event, true);
|
1447
|
-
break;
|
1448
|
-
case 'ArrowLeft':
|
1449
|
-
case 'ArrowRight':
|
1450
|
-
this.onArrowLeftKey(event, true);
|
1451
|
-
break;
|
1452
|
-
case 'Home':
|
1453
|
-
this.onHomeKey(event, true);
|
1454
|
-
break;
|
1455
|
-
case 'End':
|
1456
|
-
this.onEndKey(event, true);
|
1457
|
-
break;
|
1458
|
-
case 'Enter':
|
1459
|
-
case 'NumpadEnter':
|
1460
|
-
this.onEnterKey(event, true);
|
1461
|
-
break;
|
1462
|
-
case 'Escape':
|
1463
|
-
this.onEscapeKey(event);
|
1464
|
-
break;
|
1465
|
-
case 'Tab':
|
1466
|
-
this.onTabKey(event, true);
|
1467
|
-
break;
|
1468
|
-
default:
|
1469
|
-
break;
|
1470
|
-
}
|
1471
|
-
}
|
1472
|
-
onFilterBlur(event) {
|
1473
|
-
this.focusedOptionIndex.set(-1);
|
1474
|
-
}
|
1475
|
-
onArrowDownKey(event) {
|
1476
|
-
if (!this.overlayVisible) {
|
1477
|
-
this.show();
|
1478
|
-
this.editable && this.changeFocusedOptionIndex(event, this.findSelectedOptionIndex());
|
1479
|
-
}
|
1480
|
-
else {
|
1481
|
-
const optionIndex = this.focusedOptionIndex() !== -1 ? this.findNextOptionIndex(this.focusedOptionIndex()) : this.clicked() ? this.findFirstOptionIndex() : this.findFirstFocusedOptionIndex();
|
1482
|
-
this.changeFocusedOptionIndex(event, optionIndex);
|
1483
|
-
}
|
1484
|
-
// const optionIndex = this.focusedOptionIndex() !== -1 ? this.findNextOptionIndex(this.focusedOptionIndex()) : this.findFirstFocusedOptionIndex();
|
1485
|
-
// this.changeFocusedOptionIndex(event, optionIndex);
|
1486
|
-
// !this.overlayVisible && this.show();
|
1487
|
-
event.preventDefault();
|
1488
|
-
event.stopPropagation();
|
1489
|
-
}
|
1490
|
-
changeFocusedOptionIndex(event, index) {
|
1491
|
-
if (this.focusedOptionIndex() !== index) {
|
1492
|
-
this.focusedOptionIndex.set(index);
|
1493
|
-
this.scrollInView();
|
1494
|
-
if (this.selectOnFocus) {
|
1495
|
-
const option = this.visibleOptions()[index];
|
1496
|
-
this.onOptionSelect(event, option, false);
|
1497
|
-
}
|
1498
|
-
}
|
1499
|
-
}
|
1500
|
-
get virtualScrollerDisabled() {
|
1501
|
-
return !this.virtualScroll;
|
1502
|
-
}
|
1503
|
-
scrollInView(index = -1) {
|
1504
|
-
const id = index !== -1 ? `${this.id}_${index}` : this.focusedOptionId;
|
1505
|
-
if (this.itemsViewChild && this.itemsViewChild.nativeElement) {
|
1506
|
-
const element = findSingle(this.itemsViewChild.nativeElement, `li[id="${id}"]`);
|
1507
|
-
if (element) {
|
1508
|
-
element.scrollIntoView && element.scrollIntoView({ block: 'nearest', inline: 'nearest' });
|
1509
|
-
}
|
1510
|
-
else if (!this.virtualScrollerDisabled) {
|
1511
|
-
setTimeout(() => {
|
1512
|
-
this.virtualScroll && this.scroller?.scrollToIndex(index !== -1 ? index : this.focusedOptionIndex());
|
1513
|
-
}, 0);
|
1514
|
-
}
|
1515
|
-
}
|
1516
|
-
}
|
1517
|
-
hasSelectedOption() {
|
1518
|
-
return this.modelValue() !== undefined;
|
1519
|
-
}
|
1520
|
-
isValidSelectedOption(option) {
|
1521
|
-
return this.isValidOption(option) && this.isSelected(option);
|
1522
|
-
}
|
1523
|
-
equalityKey() {
|
1524
|
-
return this.optionValue ? null : this.dataKey;
|
1525
|
-
}
|
1526
|
-
findFirstFocusedOptionIndex() {
|
1527
|
-
const selectedIndex = this.findSelectedOptionIndex();
|
1528
|
-
return selectedIndex < 0 ? this.findFirstOptionIndex() : selectedIndex;
|
1529
|
-
}
|
1530
|
-
findFirstOptionIndex() {
|
1531
|
-
return this.visibleOptions().findIndex((option) => this.isValidOption(option));
|
1532
|
-
}
|
1533
|
-
findSelectedOptionIndex() {
|
1534
|
-
return this.hasSelectedOption() ? this.visibleOptions().findIndex((option) => this.isValidSelectedOption(option)) : -1;
|
1535
|
-
}
|
1536
|
-
findNextOptionIndex(index) {
|
1537
|
-
const matchedOptionIndex = index < this.visibleOptions().length - 1
|
1538
|
-
? this.visibleOptions()
|
1539
|
-
.slice(index + 1)
|
1540
|
-
.findIndex((option) => this.isValidOption(option))
|
1541
|
-
: -1;
|
1542
|
-
return matchedOptionIndex > -1 ? matchedOptionIndex + index + 1 : index;
|
1543
|
-
}
|
1544
|
-
findPrevOptionIndex(index) {
|
1545
|
-
const matchedOptionIndex = index > 0 ? findLastIndex(this.visibleOptions().slice(0, index), (option) => this.isValidOption(option)) : -1;
|
1546
|
-
return matchedOptionIndex > -1 ? matchedOptionIndex : index;
|
1547
|
-
}
|
1548
|
-
findLastOptionIndex() {
|
1549
|
-
return findLastIndex(this.visibleOptions(), (option) => this.isValidOption(option));
|
1550
|
-
}
|
1551
|
-
findLastFocusedOptionIndex() {
|
1552
|
-
const selectedIndex = this.findSelectedOptionIndex();
|
1553
|
-
return selectedIndex < 0 ? this.findLastOptionIndex() : selectedIndex;
|
1554
|
-
}
|
1555
|
-
isValidOption(option) {
|
1556
|
-
return option !== undefined && option !== null && !(this.isOptionDisabled(option) || this.isOptionGroup(option));
|
1557
|
-
}
|
1558
|
-
isOptionGroup(option) {
|
1559
|
-
return this.optionGroupLabel !== undefined && this.optionGroupLabel !== null && option.optionGroup !== undefined && option.optionGroup !== null && option.group;
|
1560
|
-
}
|
1561
|
-
onArrowUpKey(event, pressedInInputText = false) {
|
1562
|
-
if (event.altKey && !pressedInInputText) {
|
1563
|
-
if (this.focusedOptionIndex() !== -1) {
|
1564
|
-
const option = this.visibleOptions()[this.focusedOptionIndex()];
|
1565
|
-
this.onOptionSelect(event, option);
|
1566
|
-
}
|
1567
|
-
this.overlayVisible && this.hide();
|
1568
|
-
}
|
1569
|
-
else {
|
1570
|
-
const optionIndex = this.focusedOptionIndex() !== -1 ? this.findPrevOptionIndex(this.focusedOptionIndex()) : this.clicked() ? this.findLastOptionIndex() : this.findLastFocusedOptionIndex();
|
1571
|
-
this.changeFocusedOptionIndex(event, optionIndex);
|
1572
|
-
!this.overlayVisible && this.show();
|
1573
|
-
}
|
1574
|
-
event.preventDefault();
|
1575
|
-
event.stopPropagation();
|
1576
|
-
}
|
1577
|
-
onArrowLeftKey(event, pressedInInputText = false) {
|
1578
|
-
pressedInInputText && this.focusedOptionIndex.set(-1);
|
1579
|
-
}
|
1580
|
-
onDeleteKey(event) {
|
1581
|
-
if (this.showClear) {
|
1582
|
-
this.clear(event);
|
1583
|
-
event.preventDefault();
|
1584
|
-
}
|
1585
|
-
}
|
1586
|
-
onHomeKey(event, pressedInInputText = false) {
|
1587
|
-
if (pressedInInputText) {
|
1588
|
-
const target = event.currentTarget;
|
1589
|
-
if (event.shiftKey) {
|
1590
|
-
target.setSelectionRange(0, target.value.length);
|
1591
|
-
}
|
1592
|
-
else {
|
1593
|
-
target.setSelectionRange(0, 0);
|
1594
|
-
this.focusedOptionIndex.set(-1);
|
1595
|
-
}
|
1596
|
-
}
|
1597
|
-
else {
|
1598
|
-
this.changeFocusedOptionIndex(event, this.findFirstOptionIndex());
|
1599
|
-
!this.overlayVisible && this.show();
|
1600
|
-
}
|
1601
|
-
event.preventDefault();
|
1602
|
-
}
|
1603
|
-
onEndKey(event, pressedInInputText = false) {
|
1604
|
-
if (pressedInInputText) {
|
1605
|
-
const target = event.currentTarget;
|
1606
|
-
if (event.shiftKey) {
|
1607
|
-
target.setSelectionRange(0, target.value.length);
|
1608
|
-
}
|
1609
|
-
else {
|
1610
|
-
const len = target.value.length;
|
1611
|
-
target.setSelectionRange(len, len);
|
1612
|
-
this.focusedOptionIndex.set(-1);
|
1613
|
-
}
|
1614
|
-
}
|
1615
|
-
else {
|
1616
|
-
this.changeFocusedOptionIndex(event, this.findLastOptionIndex());
|
1617
|
-
!this.overlayVisible && this.show();
|
1618
|
-
}
|
1619
|
-
event.preventDefault();
|
1620
|
-
}
|
1621
|
-
onPageDownKey(event) {
|
1622
|
-
this.scrollInView(this.visibleOptions().length - 1);
|
1623
|
-
event.preventDefault();
|
1624
|
-
}
|
1625
|
-
onPageUpKey(event) {
|
1626
|
-
this.scrollInView(0);
|
1627
|
-
event.preventDefault();
|
1628
|
-
}
|
1629
|
-
onSpaceKey(event, pressedInInputText = false) {
|
1630
|
-
!this.editable && !pressedInInputText && this.onEnterKey(event);
|
1631
|
-
}
|
1632
|
-
onEnterKey(event, pressedInInput = false) {
|
1633
|
-
if (!this.overlayVisible) {
|
1634
|
-
this.focusedOptionIndex.set(-1);
|
1635
|
-
this.onArrowDownKey(event);
|
1636
|
-
}
|
1637
|
-
else {
|
1638
|
-
if (this.focusedOptionIndex() !== -1) {
|
1639
|
-
const option = this.visibleOptions()[this.focusedOptionIndex()];
|
1640
|
-
this.onOptionSelect(event, option);
|
1641
|
-
}
|
1642
|
-
!pressedInInput && this.hide();
|
1643
|
-
}
|
1644
|
-
event.preventDefault();
|
1645
|
-
}
|
1646
|
-
onEscapeKey(event) {
|
1647
|
-
this.overlayVisible && this.hide(true);
|
1648
|
-
event.preventDefault();
|
1649
|
-
}
|
1650
|
-
onTabKey(event, pressedInInputText = false) {
|
1651
|
-
if (!pressedInInputText) {
|
1652
|
-
if (this.overlayVisible && this.hasFocusableElements()) {
|
1653
|
-
focus(event.shiftKey ? this.lastHiddenFocusableElementOnOverlay.nativeElement : this.firstHiddenFocusableElementOnOverlay.nativeElement);
|
1654
|
-
event.preventDefault();
|
1655
|
-
}
|
1656
|
-
else {
|
1657
|
-
if (this.focusedOptionIndex() !== -1 && this.overlayVisible) {
|
1658
|
-
const option = this.visibleOptions()[this.focusedOptionIndex()];
|
1659
|
-
this.onOptionSelect(event, option);
|
1660
|
-
}
|
1661
|
-
this.overlayVisible && this.hide(this.filter);
|
1662
|
-
}
|
1663
|
-
}
|
1664
|
-
event.stopPropagation();
|
1665
|
-
}
|
1666
|
-
onFirstHiddenFocus(event) {
|
1667
|
-
const focusableEl = event.relatedTarget === this.focusInputViewChild?.nativeElement ? getFirstFocusableElement(this.overlayViewChild.el?.nativeElement, ':not(.p-hidden-focusable)') : this.focusInputViewChild?.nativeElement;
|
1668
|
-
focus(focusableEl);
|
1669
|
-
}
|
1670
|
-
onLastHiddenFocus(event) {
|
1671
|
-
const focusableEl = event.relatedTarget === this.focusInputViewChild?.nativeElement ? getLastFocusableElement(this.overlayViewChild?.overlayViewChild?.nativeElement, ':not([data-p-hidden-focusable="true"])') : this.focusInputViewChild?.nativeElement;
|
1672
|
-
focus(focusableEl);
|
1673
|
-
}
|
1674
|
-
hasFocusableElements() {
|
1675
|
-
return getFocusableElements(this.overlayViewChild.overlayViewChild.nativeElement, ':not([data-p-hidden-focusable="true"])').length > 0;
|
1676
|
-
}
|
1677
|
-
onBackspaceKey(event, pressedInInputText = false) {
|
1678
|
-
if (pressedInInputText) {
|
1679
|
-
!this.overlayVisible && this.show();
|
1680
|
-
}
|
1681
|
-
}
|
1682
|
-
searchFields() {
|
1683
|
-
return this.filterBy?.split(',') || this.filterFields || [this.optionLabel];
|
1684
|
-
}
|
1685
|
-
searchOptions(event, char) {
|
1686
|
-
this.searchValue = (this.searchValue || '') + char;
|
1687
|
-
let optionIndex = -1;
|
1688
|
-
let matched = false;
|
1689
|
-
optionIndex = this.visibleOptions().findIndex((option) => this.isOptionExactMatched(option));
|
1690
|
-
if (optionIndex === -1) {
|
1691
|
-
optionIndex = this.visibleOptions().findIndex((option) => this.isOptionStartsWith(option));
|
1692
|
-
}
|
1693
|
-
if (optionIndex !== -1) {
|
1694
|
-
matched = true;
|
1695
|
-
}
|
1696
|
-
if (optionIndex === -1 && this.focusedOptionIndex() === -1) {
|
1697
|
-
optionIndex = this.findFirstFocusedOptionIndex();
|
1698
|
-
}
|
1699
|
-
if (optionIndex !== -1) {
|
1700
|
-
this.changeFocusedOptionIndex(event, optionIndex);
|
1701
|
-
}
|
1702
|
-
if (this.searchTimeout) {
|
1703
|
-
clearTimeout(this.searchTimeout);
|
1704
|
-
}
|
1705
|
-
this.searchTimeout = setTimeout(() => {
|
1706
|
-
this.searchValue = '';
|
1707
|
-
this.searchTimeout = null;
|
1708
|
-
}, 500);
|
1709
|
-
return matched;
|
1710
|
-
}
|
1711
|
-
isOptionStartsWith(option) {
|
1712
|
-
return this.isValidOption(option) && this.getOptionLabel(option).toString().toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale));
|
1713
|
-
}
|
1714
|
-
isOptionExactMatched(option) {
|
1715
|
-
return this.isValidOption(option) && this.getOptionLabel(option).toString().toLocaleLowerCase(this.filterLocale) === this.searchValue.toLocaleLowerCase(this.filterLocale);
|
1716
|
-
}
|
1717
|
-
onFilterInputChange(event) {
|
1718
|
-
let value = event.target.value;
|
1719
|
-
this._filterValue.set(value);
|
1720
|
-
this.focusedOptionIndex.set(-1);
|
1721
|
-
this.onFilter.emit({ originalEvent: event, filter: this._filterValue() });
|
1722
|
-
!this.virtualScrollerDisabled && this.scroller.scrollToIndex(0);
|
1723
|
-
setTimeout(() => {
|
1724
|
-
this.overlayViewChild.alignOverlay();
|
1725
|
-
});
|
1726
|
-
this.cd.markForCheck();
|
1727
|
-
}
|
1728
|
-
applyFocus() {
|
1729
|
-
if (this.editable)
|
1730
|
-
findSingle(this.el.nativeElement, '.p-dropdown-label.p-inputtext').focus();
|
1731
|
-
else
|
1732
|
-
focus(this.focusInputViewChild?.nativeElement);
|
1733
|
-
}
|
1734
|
-
/**
|
1735
|
-
* Applies focus.
|
1736
|
-
* @group Method
|
1737
|
-
*/
|
1738
|
-
focus() {
|
1739
|
-
this.applyFocus();
|
1740
|
-
}
|
1741
|
-
/**
|
1742
|
-
* Clears the model.
|
1743
|
-
* @group Method
|
1744
|
-
*/
|
1745
|
-
clear(event) {
|
1746
|
-
this.updateModel(null, event);
|
1747
|
-
this.clearEditableLabel();
|
1748
|
-
this.onModelTouched();
|
1749
|
-
this.onChange.emit({ originalEvent: event, value: this.value });
|
1750
|
-
this.onClear.emit(event);
|
1751
|
-
this.resetFilter();
|
1752
|
-
}
|
1753
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: Dropdown, deps: [{ token: i0.NgZone }, { token: i2.FilterService }], target: i0.ɵɵFactoryTarget.Component });
|
1754
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.10", type: Dropdown, isStandalone: false, selector: "p-dropdown", inputs: { id: "id", scrollHeight: "scrollHeight", filter: ["filter", "filter", booleanAttribute], name: "name", style: "style", panelStyle: "panelStyle", styleClass: "styleClass", panelStyleClass: "panelStyleClass", readonly: ["readonly", "readonly", booleanAttribute], required: ["required", "required", booleanAttribute], editable: ["editable", "editable", booleanAttribute], appendTo: "appendTo", tabindex: ["tabindex", "tabindex", numberAttribute], placeholder: "placeholder", loadingIcon: "loadingIcon", filterPlaceholder: "filterPlaceholder", filterLocale: "filterLocale", variant: "variant", inputId: "inputId", dataKey: "dataKey", filterBy: "filterBy", filterFields: "filterFields", autofocus: ["autofocus", "autofocus", booleanAttribute], resetFilterOnHide: ["resetFilterOnHide", "resetFilterOnHide", booleanAttribute], checkmark: ["checkmark", "checkmark", booleanAttribute], dropdownIcon: "dropdownIcon", loading: ["loading", "loading", booleanAttribute], optionLabel: "optionLabel", optionValue: "optionValue", optionDisabled: "optionDisabled", optionGroupLabel: "optionGroupLabel", optionGroupChildren: "optionGroupChildren", autoDisplayFirst: ["autoDisplayFirst", "autoDisplayFirst", booleanAttribute], group: ["group", "group", booleanAttribute], showClear: ["showClear", "showClear", booleanAttribute], emptyFilterMessage: "emptyFilterMessage", emptyMessage: "emptyMessage", lazy: ["lazy", "lazy", booleanAttribute], virtualScroll: ["virtualScroll", "virtualScroll", booleanAttribute], virtualScrollItemSize: ["virtualScrollItemSize", "virtualScrollItemSize", numberAttribute], virtualScrollOptions: "virtualScrollOptions", overlayOptions: "overlayOptions", ariaFilterLabel: "ariaFilterLabel", ariaLabel: "ariaLabel", ariaLabelledBy: "ariaLabelledBy", filterMatchMode: "filterMatchMode", maxlength: ["maxlength", "maxlength", numberAttribute], tooltip: "tooltip", tooltipPosition: "tooltipPosition", tooltipPositionStyle: "tooltipPositionStyle", tooltipStyleClass: "tooltipStyleClass", focusOnHover: ["focusOnHover", "focusOnHover", booleanAttribute], selectOnFocus: ["selectOnFocus", "selectOnFocus", booleanAttribute], autoOptionFocus: ["autoOptionFocus", "autoOptionFocus", booleanAttribute], autofocusFilter: ["autofocusFilter", "autofocusFilter", booleanAttribute], fluid: ["fluid", "fluid", booleanAttribute], disabled: "disabled", itemSize: "itemSize", autoZIndex: "autoZIndex", baseZIndex: "baseZIndex", showTransitionOptions: "showTransitionOptions", hideTransitionOptions: "hideTransitionOptions", filterValue: "filterValue", options: "options" }, outputs: { onChange: "onChange", onFilter: "onFilter", onFocus: "onFocus", onBlur: "onBlur", onClick: "onClick", onShow: "onShow", onHide: "onHide", onClear: "onClear", onLazyLoad: "onLazyLoad" }, host: { listeners: { "click": "onContainerClick($event)" }, properties: { "attr.id": "id", "class": "this.hostClass", "style": "this.hostStyle" } }, providers: [DROPDOWN_VALUE_ACCESSOR, DropdownStyle], queries: [{ propertyName: "templates", predicate: PrimeTemplate }], viewQueries: [{ propertyName: "containerViewChild", first: true, predicate: ["container"], descendants: true }, { propertyName: "filterViewChild", first: true, predicate: ["filter"], descendants: true }, { propertyName: "focusInputViewChild", first: true, predicate: ["focusInput"], descendants: true }, { propertyName: "editableInputViewChild", first: true, predicate: ["editableInput"], descendants: true }, { propertyName: "itemsViewChild", first: true, predicate: ["items"], descendants: true }, { propertyName: "scroller", first: true, predicate: ["scroller"], descendants: true }, { propertyName: "overlayViewChild", first: true, predicate: ["overlay"], descendants: true }, { propertyName: "firstHiddenFocusableElementOnOverlay", first: true, predicate: ["firstHiddenFocusableEl"], descendants: true }, { propertyName: "lastHiddenFocusableElementOnOverlay", first: true, predicate: ["lastHiddenFocusableEl"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
1755
|
-
<span
|
1756
|
-
#focusInput
|
1757
|
-
[ngClass]="inputClass"
|
1758
|
-
*ngIf="!editable"
|
1759
|
-
[pTooltip]="tooltip"
|
1760
|
-
[tooltipPosition]="tooltipPosition"
|
1761
|
-
[positionStyle]="tooltipPositionStyle"
|
1762
|
-
[tooltipStyleClass]="tooltipStyleClass"
|
1763
|
-
[attr.aria-disabled]="disabled"
|
1764
|
-
[attr.id]="inputId"
|
1765
|
-
role="combobox"
|
1766
|
-
[attr.aria-label]="ariaLabel || (label() === 'p-emptylabel' ? undefined : label())"
|
1767
|
-
[attr.aria-labelledby]="ariaLabelledBy"
|
1768
|
-
[attr.aria-haspopup]="'listbox'"
|
1769
|
-
[attr.aria-expanded]="overlayVisible ?? false"
|
1770
|
-
[attr.aria-controls]="overlayVisible ? id + '_list' : null"
|
1771
|
-
[attr.tabindex]="!disabled ? tabindex : -1"
|
1772
|
-
[pAutoFocus]="autofocus"
|
1773
|
-
[attr.aria-activedescendant]="focused ? focusedOptionId : undefined"
|
1774
|
-
(focus)="onInputFocus($event)"
|
1775
|
-
(blur)="onInputBlur($event)"
|
1776
|
-
(keydown)="onKeyDown($event)"
|
1777
|
-
[attr.aria-required]="required"
|
1778
|
-
[attr.required]="required"
|
1779
|
-
>
|
1780
|
-
<ng-container *ngIf="!selectedItemTemplate; else defaultPlaceholder">{{ label() === 'p-emptylabel' ? ' ' : label() }}</ng-container>
|
1781
|
-
<ng-container *ngIf="selectedItemTemplate && selectedOption" [ngTemplateOutlet]="selectedItemTemplate" [ngTemplateOutletContext]="{ $implicit: selectedOption }"></ng-container>
|
1782
|
-
<ng-template #defaultPlaceholder>
|
1783
|
-
<span *ngIf="!selectedOption">{{ label() === 'p-emptylabel' ? ' ' : label() }}</span>
|
1784
|
-
</ng-template>
|
1785
|
-
</span>
|
1786
|
-
<input
|
1787
|
-
*ngIf="editable"
|
1788
|
-
#editableInput
|
1789
|
-
type="text"
|
1790
|
-
[attr.id]="inputId"
|
1791
|
-
[attr.maxlength]="maxlength"
|
1792
|
-
[ngClass]="inputClass"
|
1793
|
-
[disabled]="disabled"
|
1794
|
-
aria-haspopup="listbox"
|
1795
|
-
[attr.placeholder]="modelValue() === undefined || modelValue() === null ? placeholder() : undefined"
|
1796
|
-
[attr.aria-label]="ariaLabel || (label() === 'p-emptylabel' ? undefined : label())"
|
1797
|
-
(input)="onEditableInput($event)"
|
1798
|
-
(keydown)="onKeyDown($event)"
|
1799
|
-
[pAutoFocus]="autofocus"
|
1800
|
-
[attr.aria-activedescendant]="focused ? focusedOptionId : undefined"
|
1801
|
-
(focus)="onInputFocus($event)"
|
1802
|
-
(blur)="onInputBlur($event)"
|
1803
|
-
/>
|
1804
|
-
<ng-container *ngIf="isVisibleClearIcon">
|
1805
|
-
<TimesIcon class="p-select-clear-icon" (click)="clear($event)" *ngIf="!clearIconTemplate" [attr.data-pc-section]="'clearicon'" />
|
1806
|
-
<span class="p-select-clear-icon" (click)="clear($event)" *ngIf="clearIconTemplate" [attr.data-pc-section]="'clearicon'">
|
1807
|
-
<ng-template *ngTemplateOutlet="clearIconTemplate; context: { class: 'p-select-clear-icon' }"></ng-template>
|
1808
|
-
</span>
|
1809
|
-
</ng-container>
|
1810
|
-
|
1811
|
-
<div class="p-select-dropdown" role="button" aria-label="dropdown trigger" aria-haspopup="listbox" [attr.aria-expanded]="overlayVisible ?? false" [attr.data-pc-section]="'trigger'">
|
1812
|
-
<ng-container *ngIf="loading; else elseBlock">
|
1813
|
-
<ng-container *ngIf="loadingIconTemplate">
|
1814
|
-
<ng-container *ngTemplateOutlet="loadingIconTemplate"></ng-container>
|
1815
|
-
</ng-container>
|
1816
|
-
<ng-container *ngIf="!loadingIconTemplate">
|
1817
|
-
<span *ngIf="loadingIcon" [ngClass]="'p-select-loading-icon pi-spin ' + loadingIcon" aria-hidden="true"></span>
|
1818
|
-
<span *ngIf="!loadingIcon" [class]="'p-select-loading-icon pi pi-spinner pi-spin'" aria-hidden="true"></span>
|
1819
|
-
</ng-container>
|
1820
|
-
</ng-container>
|
1821
|
-
|
1822
|
-
<ng-template #elseBlock>
|
1823
|
-
<ng-container *ngIf="!dropdownIconTemplate">
|
1824
|
-
<span class="p-select-dropdown-icon" *ngIf="dropdownIcon" [ngClass]="dropdownIcon"></span>
|
1825
|
-
<ChevronDownIcon *ngIf="!dropdownIcon" [styleClass]="'p-select-dropdown-icon'" />
|
1826
|
-
</ng-container>
|
1827
|
-
<span *ngIf="dropdownIconTemplate" class="p-select-dropdown-icon">
|
1828
|
-
<ng-template *ngTemplateOutlet="dropdownIconTemplate; context: { class: 'p-select-dropdown-icon' }"></ng-template>
|
1829
|
-
</span>
|
1830
|
-
</ng-template>
|
1831
|
-
</div>
|
1832
|
-
|
1833
|
-
<p-overlay
|
1834
|
-
#overlay
|
1835
|
-
[(visible)]="overlayVisible"
|
1836
|
-
[options]="overlayOptions"
|
1837
|
-
[target]="'@parent'"
|
1838
|
-
[appendTo]="appendTo"
|
1839
|
-
[autoZIndex]="autoZIndex"
|
1840
|
-
[baseZIndex]="baseZIndex"
|
1841
|
-
[showTransitionOptions]="showTransitionOptions"
|
1842
|
-
[hideTransitionOptions]="hideTransitionOptions"
|
1843
|
-
(onAnimationStart)="onOverlayAnimationStart($event)"
|
1844
|
-
(onHide)="hide()"
|
1845
|
-
>
|
1846
|
-
<ng-template #content>
|
1847
|
-
<div [ngClass]="'p-select-overlay p-component'" [ngStyle]="panelStyle" [class]="panelStyleClass">
|
1848
|
-
<span
|
1849
|
-
#firstHiddenFocusableEl
|
1850
|
-
role="presentation"
|
1851
|
-
class="p-hidden-accessible p-hidden-focusable"
|
1852
|
-
[attr.tabindex]="0"
|
1853
|
-
(focus)="onFirstHiddenFocus($event)"
|
1854
|
-
[attr.data-p-hidden-accessible]="true"
|
1855
|
-
[attr.data-p-hidden-focusable]="true"
|
1856
|
-
>
|
1857
|
-
</span>
|
1858
|
-
<ng-container *ngTemplateOutlet="headerTemplate"></ng-container>
|
1859
|
-
<div class="p-select-header" *ngIf="filter" (click)="$event.stopPropagation()">
|
1860
|
-
<ng-container *ngIf="filterTemplate; else builtInFilterElement">
|
1861
|
-
<ng-container *ngTemplateOutlet="filterTemplate; context: { options: filterOptions }"></ng-container>
|
1862
|
-
</ng-container>
|
1863
|
-
<ng-template #builtInFilterElement>
|
1864
|
-
<p-iconfield>
|
1865
|
-
<input
|
1866
|
-
#filter
|
1867
|
-
pInputText
|
1868
|
-
type="text"
|
1869
|
-
role="searchbox"
|
1870
|
-
autocomplete="off"
|
1871
|
-
[value]="_filterValue() || ''"
|
1872
|
-
class="p-select-filter"
|
1873
|
-
[variant]="variant"
|
1874
|
-
[attr.placeholder]="filterPlaceholder"
|
1875
|
-
[attr.aria-owns]="id + '_list'"
|
1876
|
-
(input)="onFilterInputChange($event)"
|
1877
|
-
[attr.aria-label]="ariaFilterLabel"
|
1878
|
-
[attr.aria-activedescendant]="focusedOptionId"
|
1879
|
-
(keydown)="onFilterKeyDown($event)"
|
1880
|
-
(blur)="onFilterBlur($event)"
|
1881
|
-
/>
|
1882
|
-
<p-inputicon>
|
1883
|
-
<SearchIcon *ngIf="!filterIconTemplate" />
|
1884
|
-
<span *ngIf="filterIconTemplate">
|
1885
|
-
<ng-template *ngTemplateOutlet="filterIconTemplate"></ng-template>
|
1886
|
-
</span>
|
1887
|
-
</p-inputicon>
|
1888
|
-
</p-iconfield>
|
1889
|
-
</ng-template>
|
1890
|
-
</div>
|
1891
|
-
<div class="p-select-list-container" [style.max-height]="virtualScroll ? 'auto' : scrollHeight || 'auto'">
|
1892
|
-
<p-scroller
|
1893
|
-
*ngIf="virtualScroll"
|
1894
|
-
#scroller
|
1895
|
-
[items]="visibleOptions()"
|
1896
|
-
[style]="{ height: scrollHeight }"
|
1897
|
-
[itemSize]="virtualScrollItemSize || _itemSize"
|
1898
|
-
[autoSize]="true"
|
1899
|
-
[lazy]="lazy"
|
1900
|
-
(onLazyLoad)="onLazyLoad.emit($event)"
|
1901
|
-
[options]="virtualScrollOptions"
|
1902
|
-
>
|
1903
|
-
<ng-template #content let-items let-scrollerOptions="options">
|
1904
|
-
<ng-container *ngTemplateOutlet="buildInItems; context: { $implicit: items, options: scrollerOptions }"></ng-container>
|
1905
|
-
</ng-template>
|
1906
|
-
<ng-container *ngIf="loaderTemplate">
|
1907
|
-
<ng-template #loader let-scrollerOptions="options">
|
1908
|
-
<ng-container *ngTemplateOutlet="loaderTemplate; context: { options: scrollerOptions }"></ng-container>
|
1909
|
-
</ng-template>
|
1910
|
-
</ng-container>
|
1911
|
-
</p-scroller>
|
1912
|
-
<ng-container *ngIf="!virtualScroll">
|
1913
|
-
<ng-container *ngTemplateOutlet="buildInItems; context: { $implicit: visibleOptions(), options: {} }"></ng-container>
|
1914
|
-
</ng-container>
|
1915
|
-
|
1916
|
-
<ng-template #buildInItems let-items let-scrollerOptions="options">
|
1917
|
-
<ul #items [attr.id]="id + '_list'" [attr.aria-label]="listLabel" class="p-select-list" [ngClass]="scrollerOptions.contentStyleClass" [style]="scrollerOptions.contentStyle" role="listbox">
|
1918
|
-
<ng-template ngFor let-option [ngForOf]="items" let-i="index">
|
1919
|
-
<ng-container *ngIf="isOptionGroup(option)">
|
1920
|
-
<li class="p-select-option-group" [attr.id]="id + '_' + getOptionIndex(i, scrollerOptions)" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option">
|
1921
|
-
<span *ngIf="!groupTemplate">{{ getOptionGroupLabel(option.optionGroup) }}</span>
|
1922
|
-
<ng-container *ngTemplateOutlet="groupTemplate; context: { $implicit: option.optionGroup }"></ng-container>
|
1923
|
-
</li>
|
1924
|
-
</ng-container>
|
1925
|
-
<ng-container *ngIf="!isOptionGroup(option)">
|
1926
|
-
<p-dropdownItem
|
1927
|
-
[id]="id + '_' + getOptionIndex(i, scrollerOptions)"
|
1928
|
-
[option]="option"
|
1929
|
-
[checkmark]="checkmark"
|
1930
|
-
[selected]="isSelected(option)"
|
1931
|
-
[label]="getOptionLabel(option)"
|
1932
|
-
[disabled]="isOptionDisabled(option)"
|
1933
|
-
[template]="itemTemplate"
|
1934
|
-
[focused]="focusedOptionIndex() === getOptionIndex(i, scrollerOptions)"
|
1935
|
-
[ariaPosInset]="getAriaPosInset(getOptionIndex(i, scrollerOptions))"
|
1936
|
-
[ariaSetSize]="ariaSetSize"
|
1937
|
-
(onClick)="onOptionSelect($event, option)"
|
1938
|
-
(onMouseEnter)="onOptionMouseEnter($event, getOptionIndex(i, scrollerOptions))"
|
1939
|
-
></p-dropdownItem>
|
1940
|
-
</ng-container>
|
1941
|
-
</ng-template>
|
1942
|
-
<li *ngIf="filterValue && isEmpty()" class="p-select-empty-message" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option">
|
1943
|
-
@if (!emptyFilterTemplate && !emptyTemplate) {
|
1944
|
-
{{ emptyFilterMessageLabel }}
|
1945
|
-
} @else {
|
1946
|
-
<ng-container #emptyFilter *ngTemplateOutlet="emptyFilterTemplate || emptyTemplate"></ng-container>
|
1947
|
-
}
|
1948
|
-
</li>
|
1949
|
-
<li *ngIf="!filterValue && isEmpty()" class="p-select-empty-message" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option">
|
1950
|
-
@if (!emptyTemplate) {
|
1951
|
-
{{ emptyMessageLabel }}
|
1952
|
-
} @else {
|
1953
|
-
<ng-container *ngTemplateOutlet="emptyTemplate"></ng-container>
|
1954
|
-
}
|
1955
|
-
</li>
|
1956
|
-
</ul>
|
1957
|
-
</ng-template>
|
1958
|
-
</div>
|
1959
|
-
<ng-container *ngTemplateOutlet="footerTemplate"></ng-container>
|
1960
|
-
<span
|
1961
|
-
#lastHiddenFocusableEl
|
1962
|
-
role="presentation"
|
1963
|
-
class="p-hidden-accessible p-hidden-focusable"
|
1964
|
-
[attr.tabindex]="0"
|
1965
|
-
(focus)="onLastHiddenFocus($event)"
|
1966
|
-
[attr.data-p-hidden-accessible]="true"
|
1967
|
-
[attr.data-p-hidden-focusable]="true"
|
1968
|
-
></span>
|
1969
|
-
</div>
|
1970
|
-
</ng-template>
|
1971
|
-
</p-overlay>
|
1972
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i0.forwardRef(() => i1.NgClass), selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i0.forwardRef(() => i1.NgForOf), selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i0.forwardRef(() => i1.NgIf), selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i0.forwardRef(() => i1.NgTemplateOutlet), selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i0.forwardRef(() => i1.NgStyle), selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i0.forwardRef(() => i3.Overlay), selector: "p-overlay", inputs: ["visible", "mode", "style", "styleClass", "contentStyle", "contentStyleClass", "target", "appendTo", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "listener", "responsive", "options"], outputs: ["visibleChange", "onBeforeShow", "onShow", "onBeforeHide", "onHide", "onAnimationStart", "onAnimationDone"] }, { kind: "directive", type: i0.forwardRef(() => i4.Tooltip), selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "component", type: i0.forwardRef(() => 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: i0.forwardRef(() => i5.AutoFocus), selector: "[pAutoFocus]", inputs: ["autofocus", "pAutoFocus"] }, { kind: "component", type: i0.forwardRef(() => TimesIcon), selector: "TimesIcon" }, { kind: "component", type: i0.forwardRef(() => ChevronDownIcon), selector: "ChevronDownIcon" }, { kind: "component", type: i0.forwardRef(() => SearchIcon), selector: "SearchIcon" }, { kind: "directive", type: i0.forwardRef(() => i6.InputText), selector: "[pInputText]", inputs: ["variant", "fluid", "pSize"] }, { kind: "component", type: i0.forwardRef(() => IconField), selector: "p-iconfield, p-iconField, p-icon-field", inputs: ["iconPosition", "styleClass"] }, { kind: "component", type: i0.forwardRef(() => InputIcon), selector: "p-inputicon, p-inputIcon", inputs: ["styleClass"] }, { kind: "component", type: i0.forwardRef(() => DropdownItem), selector: "p-dropdownItem", inputs: ["id", "option", "selected", "focused", "label", "disabled", "visible", "itemSize", "ariaPosInset", "ariaSetSize", "template", "checkmark"], outputs: ["onClick", "onMouseEnter"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
1973
|
-
}
|
1974
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: Dropdown, decorators: [{
|
1975
|
-
type: Component,
|
1976
|
-
args: [{
|
1977
|
-
selector: 'p-dropdown',
|
1978
|
-
standalone: false,
|
1979
|
-
template: `
|
1980
|
-
<span
|
1981
|
-
#focusInput
|
1982
|
-
[ngClass]="inputClass"
|
1983
|
-
*ngIf="!editable"
|
1984
|
-
[pTooltip]="tooltip"
|
1985
|
-
[tooltipPosition]="tooltipPosition"
|
1986
|
-
[positionStyle]="tooltipPositionStyle"
|
1987
|
-
[tooltipStyleClass]="tooltipStyleClass"
|
1988
|
-
[attr.aria-disabled]="disabled"
|
1989
|
-
[attr.id]="inputId"
|
1990
|
-
role="combobox"
|
1991
|
-
[attr.aria-label]="ariaLabel || (label() === 'p-emptylabel' ? undefined : label())"
|
1992
|
-
[attr.aria-labelledby]="ariaLabelledBy"
|
1993
|
-
[attr.aria-haspopup]="'listbox'"
|
1994
|
-
[attr.aria-expanded]="overlayVisible ?? false"
|
1995
|
-
[attr.aria-controls]="overlayVisible ? id + '_list' : null"
|
1996
|
-
[attr.tabindex]="!disabled ? tabindex : -1"
|
1997
|
-
[pAutoFocus]="autofocus"
|
1998
|
-
[attr.aria-activedescendant]="focused ? focusedOptionId : undefined"
|
1999
|
-
(focus)="onInputFocus($event)"
|
2000
|
-
(blur)="onInputBlur($event)"
|
2001
|
-
(keydown)="onKeyDown($event)"
|
2002
|
-
[attr.aria-required]="required"
|
2003
|
-
[attr.required]="required"
|
2004
|
-
>
|
2005
|
-
<ng-container *ngIf="!selectedItemTemplate; else defaultPlaceholder">{{ label() === 'p-emptylabel' ? ' ' : label() }}</ng-container>
|
2006
|
-
<ng-container *ngIf="selectedItemTemplate && selectedOption" [ngTemplateOutlet]="selectedItemTemplate" [ngTemplateOutletContext]="{ $implicit: selectedOption }"></ng-container>
|
2007
|
-
<ng-template #defaultPlaceholder>
|
2008
|
-
<span *ngIf="!selectedOption">{{ label() === 'p-emptylabel' ? ' ' : label() }}</span>
|
2009
|
-
</ng-template>
|
2010
|
-
</span>
|
2011
|
-
<input
|
2012
|
-
*ngIf="editable"
|
2013
|
-
#editableInput
|
2014
|
-
type="text"
|
2015
|
-
[attr.id]="inputId"
|
2016
|
-
[attr.maxlength]="maxlength"
|
2017
|
-
[ngClass]="inputClass"
|
2018
|
-
[disabled]="disabled"
|
2019
|
-
aria-haspopup="listbox"
|
2020
|
-
[attr.placeholder]="modelValue() === undefined || modelValue() === null ? placeholder() : undefined"
|
2021
|
-
[attr.aria-label]="ariaLabel || (label() === 'p-emptylabel' ? undefined : label())"
|
2022
|
-
(input)="onEditableInput($event)"
|
2023
|
-
(keydown)="onKeyDown($event)"
|
2024
|
-
[pAutoFocus]="autofocus"
|
2025
|
-
[attr.aria-activedescendant]="focused ? focusedOptionId : undefined"
|
2026
|
-
(focus)="onInputFocus($event)"
|
2027
|
-
(blur)="onInputBlur($event)"
|
2028
|
-
/>
|
2029
|
-
<ng-container *ngIf="isVisibleClearIcon">
|
2030
|
-
<TimesIcon class="p-select-clear-icon" (click)="clear($event)" *ngIf="!clearIconTemplate" [attr.data-pc-section]="'clearicon'" />
|
2031
|
-
<span class="p-select-clear-icon" (click)="clear($event)" *ngIf="clearIconTemplate" [attr.data-pc-section]="'clearicon'">
|
2032
|
-
<ng-template *ngTemplateOutlet="clearIconTemplate; context: { class: 'p-select-clear-icon' }"></ng-template>
|
2033
|
-
</span>
|
2034
|
-
</ng-container>
|
2035
|
-
|
2036
|
-
<div class="p-select-dropdown" role="button" aria-label="dropdown trigger" aria-haspopup="listbox" [attr.aria-expanded]="overlayVisible ?? false" [attr.data-pc-section]="'trigger'">
|
2037
|
-
<ng-container *ngIf="loading; else elseBlock">
|
2038
|
-
<ng-container *ngIf="loadingIconTemplate">
|
2039
|
-
<ng-container *ngTemplateOutlet="loadingIconTemplate"></ng-container>
|
2040
|
-
</ng-container>
|
2041
|
-
<ng-container *ngIf="!loadingIconTemplate">
|
2042
|
-
<span *ngIf="loadingIcon" [ngClass]="'p-select-loading-icon pi-spin ' + loadingIcon" aria-hidden="true"></span>
|
2043
|
-
<span *ngIf="!loadingIcon" [class]="'p-select-loading-icon pi pi-spinner pi-spin'" aria-hidden="true"></span>
|
2044
|
-
</ng-container>
|
2045
|
-
</ng-container>
|
2046
|
-
|
2047
|
-
<ng-template #elseBlock>
|
2048
|
-
<ng-container *ngIf="!dropdownIconTemplate">
|
2049
|
-
<span class="p-select-dropdown-icon" *ngIf="dropdownIcon" [ngClass]="dropdownIcon"></span>
|
2050
|
-
<ChevronDownIcon *ngIf="!dropdownIcon" [styleClass]="'p-select-dropdown-icon'" />
|
2051
|
-
</ng-container>
|
2052
|
-
<span *ngIf="dropdownIconTemplate" class="p-select-dropdown-icon">
|
2053
|
-
<ng-template *ngTemplateOutlet="dropdownIconTemplate; context: { class: 'p-select-dropdown-icon' }"></ng-template>
|
2054
|
-
</span>
|
2055
|
-
</ng-template>
|
2056
|
-
</div>
|
2057
|
-
|
2058
|
-
<p-overlay
|
2059
|
-
#overlay
|
2060
|
-
[(visible)]="overlayVisible"
|
2061
|
-
[options]="overlayOptions"
|
2062
|
-
[target]="'@parent'"
|
2063
|
-
[appendTo]="appendTo"
|
2064
|
-
[autoZIndex]="autoZIndex"
|
2065
|
-
[baseZIndex]="baseZIndex"
|
2066
|
-
[showTransitionOptions]="showTransitionOptions"
|
2067
|
-
[hideTransitionOptions]="hideTransitionOptions"
|
2068
|
-
(onAnimationStart)="onOverlayAnimationStart($event)"
|
2069
|
-
(onHide)="hide()"
|
2070
|
-
>
|
2071
|
-
<ng-template #content>
|
2072
|
-
<div [ngClass]="'p-select-overlay p-component'" [ngStyle]="panelStyle" [class]="panelStyleClass">
|
2073
|
-
<span
|
2074
|
-
#firstHiddenFocusableEl
|
2075
|
-
role="presentation"
|
2076
|
-
class="p-hidden-accessible p-hidden-focusable"
|
2077
|
-
[attr.tabindex]="0"
|
2078
|
-
(focus)="onFirstHiddenFocus($event)"
|
2079
|
-
[attr.data-p-hidden-accessible]="true"
|
2080
|
-
[attr.data-p-hidden-focusable]="true"
|
2081
|
-
>
|
2082
|
-
</span>
|
2083
|
-
<ng-container *ngTemplateOutlet="headerTemplate"></ng-container>
|
2084
|
-
<div class="p-select-header" *ngIf="filter" (click)="$event.stopPropagation()">
|
2085
|
-
<ng-container *ngIf="filterTemplate; else builtInFilterElement">
|
2086
|
-
<ng-container *ngTemplateOutlet="filterTemplate; context: { options: filterOptions }"></ng-container>
|
2087
|
-
</ng-container>
|
2088
|
-
<ng-template #builtInFilterElement>
|
2089
|
-
<p-iconfield>
|
2090
|
-
<input
|
2091
|
-
#filter
|
2092
|
-
pInputText
|
2093
|
-
type="text"
|
2094
|
-
role="searchbox"
|
2095
|
-
autocomplete="off"
|
2096
|
-
[value]="_filterValue() || ''"
|
2097
|
-
class="p-select-filter"
|
2098
|
-
[variant]="variant"
|
2099
|
-
[attr.placeholder]="filterPlaceholder"
|
2100
|
-
[attr.aria-owns]="id + '_list'"
|
2101
|
-
(input)="onFilterInputChange($event)"
|
2102
|
-
[attr.aria-label]="ariaFilterLabel"
|
2103
|
-
[attr.aria-activedescendant]="focusedOptionId"
|
2104
|
-
(keydown)="onFilterKeyDown($event)"
|
2105
|
-
(blur)="onFilterBlur($event)"
|
2106
|
-
/>
|
2107
|
-
<p-inputicon>
|
2108
|
-
<SearchIcon *ngIf="!filterIconTemplate" />
|
2109
|
-
<span *ngIf="filterIconTemplate">
|
2110
|
-
<ng-template *ngTemplateOutlet="filterIconTemplate"></ng-template>
|
2111
|
-
</span>
|
2112
|
-
</p-inputicon>
|
2113
|
-
</p-iconfield>
|
2114
|
-
</ng-template>
|
2115
|
-
</div>
|
2116
|
-
<div class="p-select-list-container" [style.max-height]="virtualScroll ? 'auto' : scrollHeight || 'auto'">
|
2117
|
-
<p-scroller
|
2118
|
-
*ngIf="virtualScroll"
|
2119
|
-
#scroller
|
2120
|
-
[items]="visibleOptions()"
|
2121
|
-
[style]="{ height: scrollHeight }"
|
2122
|
-
[itemSize]="virtualScrollItemSize || _itemSize"
|
2123
|
-
[autoSize]="true"
|
2124
|
-
[lazy]="lazy"
|
2125
|
-
(onLazyLoad)="onLazyLoad.emit($event)"
|
2126
|
-
[options]="virtualScrollOptions"
|
2127
|
-
>
|
2128
|
-
<ng-template #content let-items let-scrollerOptions="options">
|
2129
|
-
<ng-container *ngTemplateOutlet="buildInItems; context: { $implicit: items, options: scrollerOptions }"></ng-container>
|
2130
|
-
</ng-template>
|
2131
|
-
<ng-container *ngIf="loaderTemplate">
|
2132
|
-
<ng-template #loader let-scrollerOptions="options">
|
2133
|
-
<ng-container *ngTemplateOutlet="loaderTemplate; context: { options: scrollerOptions }"></ng-container>
|
2134
|
-
</ng-template>
|
2135
|
-
</ng-container>
|
2136
|
-
</p-scroller>
|
2137
|
-
<ng-container *ngIf="!virtualScroll">
|
2138
|
-
<ng-container *ngTemplateOutlet="buildInItems; context: { $implicit: visibleOptions(), options: {} }"></ng-container>
|
2139
|
-
</ng-container>
|
2140
|
-
|
2141
|
-
<ng-template #buildInItems let-items let-scrollerOptions="options">
|
2142
|
-
<ul #items [attr.id]="id + '_list'" [attr.aria-label]="listLabel" class="p-select-list" [ngClass]="scrollerOptions.contentStyleClass" [style]="scrollerOptions.contentStyle" role="listbox">
|
2143
|
-
<ng-template ngFor let-option [ngForOf]="items" let-i="index">
|
2144
|
-
<ng-container *ngIf="isOptionGroup(option)">
|
2145
|
-
<li class="p-select-option-group" [attr.id]="id + '_' + getOptionIndex(i, scrollerOptions)" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option">
|
2146
|
-
<span *ngIf="!groupTemplate">{{ getOptionGroupLabel(option.optionGroup) }}</span>
|
2147
|
-
<ng-container *ngTemplateOutlet="groupTemplate; context: { $implicit: option.optionGroup }"></ng-container>
|
2148
|
-
</li>
|
2149
|
-
</ng-container>
|
2150
|
-
<ng-container *ngIf="!isOptionGroup(option)">
|
2151
|
-
<p-dropdownItem
|
2152
|
-
[id]="id + '_' + getOptionIndex(i, scrollerOptions)"
|
2153
|
-
[option]="option"
|
2154
|
-
[checkmark]="checkmark"
|
2155
|
-
[selected]="isSelected(option)"
|
2156
|
-
[label]="getOptionLabel(option)"
|
2157
|
-
[disabled]="isOptionDisabled(option)"
|
2158
|
-
[template]="itemTemplate"
|
2159
|
-
[focused]="focusedOptionIndex() === getOptionIndex(i, scrollerOptions)"
|
2160
|
-
[ariaPosInset]="getAriaPosInset(getOptionIndex(i, scrollerOptions))"
|
2161
|
-
[ariaSetSize]="ariaSetSize"
|
2162
|
-
(onClick)="onOptionSelect($event, option)"
|
2163
|
-
(onMouseEnter)="onOptionMouseEnter($event, getOptionIndex(i, scrollerOptions))"
|
2164
|
-
></p-dropdownItem>
|
2165
|
-
</ng-container>
|
2166
|
-
</ng-template>
|
2167
|
-
<li *ngIf="filterValue && isEmpty()" class="p-select-empty-message" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option">
|
2168
|
-
@if (!emptyFilterTemplate && !emptyTemplate) {
|
2169
|
-
{{ emptyFilterMessageLabel }}
|
2170
|
-
} @else {
|
2171
|
-
<ng-container #emptyFilter *ngTemplateOutlet="emptyFilterTemplate || emptyTemplate"></ng-container>
|
2172
|
-
}
|
2173
|
-
</li>
|
2174
|
-
<li *ngIf="!filterValue && isEmpty()" class="p-select-empty-message" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option">
|
2175
|
-
@if (!emptyTemplate) {
|
2176
|
-
{{ emptyMessageLabel }}
|
2177
|
-
} @else {
|
2178
|
-
<ng-container *ngTemplateOutlet="emptyTemplate"></ng-container>
|
2179
|
-
}
|
2180
|
-
</li>
|
2181
|
-
</ul>
|
2182
|
-
</ng-template>
|
2183
|
-
</div>
|
2184
|
-
<ng-container *ngTemplateOutlet="footerTemplate"></ng-container>
|
2185
|
-
<span
|
2186
|
-
#lastHiddenFocusableEl
|
2187
|
-
role="presentation"
|
2188
|
-
class="p-hidden-accessible p-hidden-focusable"
|
2189
|
-
[attr.tabindex]="0"
|
2190
|
-
(focus)="onLastHiddenFocus($event)"
|
2191
|
-
[attr.data-p-hidden-accessible]="true"
|
2192
|
-
[attr.data-p-hidden-focusable]="true"
|
2193
|
-
></span>
|
2194
|
-
</div>
|
2195
|
-
</ng-template>
|
2196
|
-
</p-overlay>
|
2197
|
-
`,
|
2198
|
-
host: {
|
2199
|
-
'[attr.id]': 'id',
|
2200
|
-
'(click)': 'onContainerClick($event)'
|
2201
|
-
},
|
2202
|
-
providers: [DROPDOWN_VALUE_ACCESSOR, DropdownStyle],
|
2203
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
2204
|
-
encapsulation: ViewEncapsulation.None
|
2205
|
-
}]
|
2206
|
-
}], ctorParameters: () => [{ type: i0.NgZone }, { type: i2.FilterService }], propDecorators: { id: [{
|
2207
|
-
type: Input
|
2208
|
-
}], scrollHeight: [{
|
2209
|
-
type: Input
|
2210
|
-
}], filter: [{
|
2211
|
-
type: Input,
|
2212
|
-
args: [{ transform: booleanAttribute }]
|
2213
|
-
}], name: [{
|
2214
|
-
type: Input
|
2215
|
-
}], style: [{
|
2216
|
-
type: Input
|
2217
|
-
}], panelStyle: [{
|
2218
|
-
type: Input
|
2219
|
-
}], styleClass: [{
|
2220
|
-
type: Input
|
2221
|
-
}], panelStyleClass: [{
|
2222
|
-
type: Input
|
2223
|
-
}], readonly: [{
|
2224
|
-
type: Input,
|
2225
|
-
args: [{ transform: booleanAttribute }]
|
2226
|
-
}], required: [{
|
2227
|
-
type: Input,
|
2228
|
-
args: [{ transform: booleanAttribute }]
|
2229
|
-
}], editable: [{
|
2230
|
-
type: Input,
|
2231
|
-
args: [{ transform: booleanAttribute }]
|
2232
|
-
}], appendTo: [{
|
2233
|
-
type: Input
|
2234
|
-
}], tabindex: [{
|
2235
|
-
type: Input,
|
2236
|
-
args: [{ transform: numberAttribute }]
|
2237
|
-
}], placeholder: [{
|
2238
|
-
type: Input
|
2239
|
-
}], loadingIcon: [{
|
2240
|
-
type: Input
|
2241
|
-
}], filterPlaceholder: [{
|
2242
|
-
type: Input
|
2243
|
-
}], filterLocale: [{
|
2244
|
-
type: Input
|
2245
|
-
}], variant: [{
|
2246
|
-
type: Input
|
2247
|
-
}], inputId: [{
|
2248
|
-
type: Input
|
2249
|
-
}], dataKey: [{
|
2250
|
-
type: Input
|
2251
|
-
}], filterBy: [{
|
2252
|
-
type: Input
|
2253
|
-
}], filterFields: [{
|
2254
|
-
type: Input
|
2255
|
-
}], autofocus: [{
|
2256
|
-
type: Input,
|
2257
|
-
args: [{ transform: booleanAttribute }]
|
2258
|
-
}], resetFilterOnHide: [{
|
2259
|
-
type: Input,
|
2260
|
-
args: [{ transform: booleanAttribute }]
|
2261
|
-
}], checkmark: [{
|
2262
|
-
type: Input,
|
2263
|
-
args: [{ transform: booleanAttribute }]
|
2264
|
-
}], dropdownIcon: [{
|
2265
|
-
type: Input
|
2266
|
-
}], loading: [{
|
2267
|
-
type: Input,
|
2268
|
-
args: [{ transform: booleanAttribute }]
|
2269
|
-
}], optionLabel: [{
|
2270
|
-
type: Input
|
2271
|
-
}], optionValue: [{
|
2272
|
-
type: Input
|
2273
|
-
}], optionDisabled: [{
|
2274
|
-
type: Input
|
2275
|
-
}], optionGroupLabel: [{
|
2276
|
-
type: Input
|
2277
|
-
}], optionGroupChildren: [{
|
2278
|
-
type: Input
|
2279
|
-
}], autoDisplayFirst: [{
|
2280
|
-
type: Input,
|
2281
|
-
args: [{ transform: booleanAttribute }]
|
2282
|
-
}], group: [{
|
2283
|
-
type: Input,
|
2284
|
-
args: [{ transform: booleanAttribute }]
|
2285
|
-
}], showClear: [{
|
2286
|
-
type: Input,
|
2287
|
-
args: [{ transform: booleanAttribute }]
|
2288
|
-
}], emptyFilterMessage: [{
|
2289
|
-
type: Input
|
2290
|
-
}], emptyMessage: [{
|
2291
|
-
type: Input
|
2292
|
-
}], lazy: [{
|
2293
|
-
type: Input,
|
2294
|
-
args: [{ transform: booleanAttribute }]
|
2295
|
-
}], virtualScroll: [{
|
2296
|
-
type: Input,
|
2297
|
-
args: [{ transform: booleanAttribute }]
|
2298
|
-
}], virtualScrollItemSize: [{
|
2299
|
-
type: Input,
|
2300
|
-
args: [{ transform: numberAttribute }]
|
2301
|
-
}], virtualScrollOptions: [{
|
2302
|
-
type: Input
|
2303
|
-
}], overlayOptions: [{
|
2304
|
-
type: Input
|
2305
|
-
}], ariaFilterLabel: [{
|
2306
|
-
type: Input
|
2307
|
-
}], ariaLabel: [{
|
2308
|
-
type: Input
|
2309
|
-
}], ariaLabelledBy: [{
|
2310
|
-
type: Input
|
2311
|
-
}], filterMatchMode: [{
|
2312
|
-
type: Input
|
2313
|
-
}], maxlength: [{
|
2314
|
-
type: Input,
|
2315
|
-
args: [{ transform: numberAttribute }]
|
2316
|
-
}], tooltip: [{
|
2317
|
-
type: Input
|
2318
|
-
}], tooltipPosition: [{
|
2319
|
-
type: Input
|
2320
|
-
}], tooltipPositionStyle: [{
|
2321
|
-
type: Input
|
2322
|
-
}], tooltipStyleClass: [{
|
2323
|
-
type: Input
|
2324
|
-
}], focusOnHover: [{
|
2325
|
-
type: Input,
|
2326
|
-
args: [{ transform: booleanAttribute }]
|
2327
|
-
}], selectOnFocus: [{
|
2328
|
-
type: Input,
|
2329
|
-
args: [{ transform: booleanAttribute }]
|
2330
|
-
}], autoOptionFocus: [{
|
2331
|
-
type: Input,
|
2332
|
-
args: [{ transform: booleanAttribute }]
|
2333
|
-
}], autofocusFilter: [{
|
2334
|
-
type: Input,
|
2335
|
-
args: [{ transform: booleanAttribute }]
|
2336
|
-
}], fluid: [{
|
2337
|
-
type: Input,
|
2338
|
-
args: [{ transform: booleanAttribute }]
|
2339
|
-
}], disabled: [{
|
2340
|
-
type: Input
|
2341
|
-
}], itemSize: [{
|
2342
|
-
type: Input
|
2343
|
-
}], autoZIndex: [{
|
2344
|
-
type: Input
|
2345
|
-
}], baseZIndex: [{
|
2346
|
-
type: Input
|
2347
|
-
}], showTransitionOptions: [{
|
2348
|
-
type: Input
|
2349
|
-
}], hideTransitionOptions: [{
|
2350
|
-
type: Input
|
2351
|
-
}], filterValue: [{
|
2352
|
-
type: Input
|
2353
|
-
}], options: [{
|
2354
|
-
type: Input
|
2355
|
-
}], onChange: [{
|
2356
|
-
type: Output
|
2357
|
-
}], onFilter: [{
|
2358
|
-
type: Output
|
2359
|
-
}], onFocus: [{
|
2360
|
-
type: Output
|
2361
|
-
}], onBlur: [{
|
2362
|
-
type: Output
|
2363
|
-
}], onClick: [{
|
2364
|
-
type: Output
|
2365
|
-
}], onShow: [{
|
2366
|
-
type: Output
|
2367
|
-
}], onHide: [{
|
2368
|
-
type: Output
|
2369
|
-
}], onClear: [{
|
2370
|
-
type: Output
|
2371
|
-
}], onLazyLoad: [{
|
2372
|
-
type: Output
|
2373
|
-
}], containerViewChild: [{
|
2374
|
-
type: ViewChild,
|
2375
|
-
args: ['container']
|
2376
|
-
}], filterViewChild: [{
|
2377
|
-
type: ViewChild,
|
2378
|
-
args: ['filter']
|
2379
|
-
}], focusInputViewChild: [{
|
2380
|
-
type: ViewChild,
|
2381
|
-
args: ['focusInput']
|
2382
|
-
}], editableInputViewChild: [{
|
2383
|
-
type: ViewChild,
|
2384
|
-
args: ['editableInput']
|
2385
|
-
}], itemsViewChild: [{
|
2386
|
-
type: ViewChild,
|
2387
|
-
args: ['items']
|
2388
|
-
}], scroller: [{
|
2389
|
-
type: ViewChild,
|
2390
|
-
args: ['scroller']
|
2391
|
-
}], overlayViewChild: [{
|
2392
|
-
type: ViewChild,
|
2393
|
-
args: ['overlay']
|
2394
|
-
}], firstHiddenFocusableElementOnOverlay: [{
|
2395
|
-
type: ViewChild,
|
2396
|
-
args: ['firstHiddenFocusableEl']
|
2397
|
-
}], lastHiddenFocusableElementOnOverlay: [{
|
2398
|
-
type: ViewChild,
|
2399
|
-
args: ['lastHiddenFocusableEl']
|
2400
|
-
}], hostClass: [{
|
2401
|
-
type: HostBinding,
|
2402
|
-
args: ['class']
|
2403
|
-
}], hostStyle: [{
|
2404
|
-
type: HostBinding,
|
2405
|
-
args: ['style']
|
2406
|
-
}], templates: [{
|
2407
|
-
type: ContentChildren,
|
2408
|
-
args: [PrimeTemplate]
|
2409
|
-
}] } });
|
2410
|
-
class DropdownModule {
|
2411
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: DropdownModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
2412
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.10", ngImport: i0, type: DropdownModule, declarations: [Dropdown, DropdownItem], imports: [CommonModule, OverlayModule, SharedModule, TooltipModule, Ripple, Scroller, AutoFocusModule, TimesIcon, ChevronDownIcon, SearchIcon, BlankIcon, CheckIcon, InputTextModule, IconField, InputIcon], exports: [Dropdown, OverlayModule, SharedModule, Scroller] });
|
2413
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: DropdownModule, imports: [CommonModule, OverlayModule, SharedModule, TooltipModule, Scroller, AutoFocusModule, TimesIcon, ChevronDownIcon, SearchIcon, BlankIcon, CheckIcon, InputTextModule, IconField, InputIcon, OverlayModule, SharedModule] });
|
2414
|
-
}
|
2415
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: DropdownModule, decorators: [{
|
2416
|
-
type: NgModule,
|
2417
|
-
args: [{
|
2418
|
-
imports: [CommonModule, OverlayModule, SharedModule, TooltipModule, Ripple, Scroller, AutoFocusModule, TimesIcon, ChevronDownIcon, SearchIcon, BlankIcon, CheckIcon, InputTextModule, IconField, InputIcon],
|
2419
|
-
exports: [Dropdown, OverlayModule, SharedModule, Scroller],
|
2420
|
-
declarations: [Dropdown, DropdownItem]
|
2421
|
-
}]
|
2422
|
-
}] });
|
2423
|
-
|
2424
|
-
/**
|
2425
|
-
* Generated bundle index. Do not edit.
|
2426
|
-
*/
|
2427
|
-
|
2428
|
-
export { DROPDOWN_VALUE_ACCESSOR, Dropdown, DropdownClasses, DropdownItem, DropdownModule, DropdownStyle };
|
2429
|
-
//# sourceMappingURL=primeng-dropdown.mjs.map
|