primeng 19.0.6 → 19.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordion/accordion.d.ts +1 -1
- package/basecomponent/basecomponent.d.ts +1 -0
- package/confirmdialog/confirmdialog.d.ts +2 -1
- package/dataview/dataview.interface.d.ts +9 -19
- package/dragdrop/dragdrop.d.ts +3 -2
- package/dynamicdialog/dynamicdialog.d.ts +1 -1
- package/fesm2022/primeng-accordion.mjs +358 -561
- package/fesm2022/primeng-accordion.mjs.map +1 -1
- package/fesm2022/primeng-animateonscroll.mjs +37 -40
- package/fesm2022/primeng-animateonscroll.mjs.map +1 -1
- package/fesm2022/primeng-api.mjs +79 -89
- package/fesm2022/primeng-api.mjs.map +1 -1
- package/fesm2022/primeng-autocomplete.mjs +505 -786
- package/fesm2022/primeng-autocomplete.mjs.map +1 -1
- package/fesm2022/primeng-autofocus.mjs +26 -27
- package/fesm2022/primeng-autofocus.mjs.map +1 -1
- package/fesm2022/primeng-avatar.mjs +70 -120
- package/fesm2022/primeng-avatar.mjs.map +1 -1
- package/fesm2022/primeng-avatargroup.mjs +44 -54
- package/fesm2022/primeng-avatargroup.mjs.map +1 -1
- package/fesm2022/primeng-badge.mjs +62 -71
- package/fesm2022/primeng-badge.mjs.map +1 -1
- package/fesm2022/primeng-base.mjs +6 -6
- package/fesm2022/primeng-base.mjs.map +1 -1
- package/fesm2022/primeng-basecomponent.mjs +19 -16
- package/fesm2022/primeng-basecomponent.mjs.map +1 -1
- package/fesm2022/primeng-blockui.mjs +66 -87
- package/fesm2022/primeng-blockui.mjs.map +1 -1
- package/fesm2022/primeng-breadcrumb.mjs +175 -386
- package/fesm2022/primeng-breadcrumb.mjs.map +1 -1
- package/fesm2022/primeng-button.mjs +223 -328
- package/fesm2022/primeng-button.mjs.map +1 -1
- package/fesm2022/primeng-buttongroup.mjs +36 -40
- package/fesm2022/primeng-buttongroup.mjs.map +1 -1
- package/fesm2022/primeng-calendar.mjs +727 -1127
- package/fesm2022/primeng-calendar.mjs.map +1 -1
- package/fesm2022/primeng-card.mjs +88 -192
- package/fesm2022/primeng-card.mjs.map +1 -1
- package/fesm2022/primeng-carousel.mjs +218 -405
- package/fesm2022/primeng-carousel.mjs.map +1 -1
- package/fesm2022/primeng-cascadeselect.mjs +392 -576
- package/fesm2022/primeng-cascadeselect.mjs.map +1 -1
- package/fesm2022/primeng-chart.mjs +57 -63
- package/fesm2022/primeng-chart.mjs.map +1 -1
- package/fesm2022/primeng-checkbox.mjs +131 -183
- package/fesm2022/primeng-checkbox.mjs.map +1 -1
- package/fesm2022/primeng-chip.mjs +92 -188
- package/fesm2022/primeng-chip.mjs.map +1 -1
- package/fesm2022/primeng-colorpicker.mjs +142 -167
- package/fesm2022/primeng-colorpicker.mjs.map +1 -1
- package/fesm2022/primeng-config.mjs +12 -12
- package/fesm2022/primeng-config.mjs.map +1 -1
- package/fesm2022/primeng-confirmdialog.mjs +232 -350
- package/fesm2022/primeng-confirmdialog.mjs.map +1 -1
- package/fesm2022/primeng-confirmpopup.mjs +161 -251
- package/fesm2022/primeng-confirmpopup.mjs.map +1 -1
- package/fesm2022/primeng-contextmenu.mjs +336 -450
- package/fesm2022/primeng-contextmenu.mjs.map +1 -1
- package/fesm2022/primeng-dataview.mjs +249 -352
- package/fesm2022/primeng-dataview.mjs.map +1 -1
- package/fesm2022/primeng-datepicker.mjs +740 -1136
- package/fesm2022/primeng-datepicker.mjs.map +1 -1
- package/fesm2022/primeng-defer.mjs +25 -31
- package/fesm2022/primeng-defer.mjs.map +1 -1
- package/fesm2022/primeng-dialog.mjs +277 -478
- package/fesm2022/primeng-dialog.mjs.map +1 -1
- package/fesm2022/primeng-divider.mjs +68 -77
- package/fesm2022/primeng-divider.mjs.map +1 -1
- package/fesm2022/primeng-dock.mjs +138 -167
- package/fesm2022/primeng-dock.mjs.map +1 -1
- package/fesm2022/primeng-dragdrop.mjs +85 -79
- package/fesm2022/primeng-dragdrop.mjs.map +1 -1
- package/fesm2022/primeng-drawer.mjs +171 -268
- package/fesm2022/primeng-drawer.mjs.map +1 -1
- package/fesm2022/primeng-dropdown.mjs +529 -867
- package/fesm2022/primeng-dropdown.mjs.map +1 -1
- package/fesm2022/primeng-dynamicdialog.mjs +152 -301
- package/fesm2022/primeng-dynamicdialog.mjs.map +1 -1
- package/fesm2022/primeng-editor.mjs +118 -156
- package/fesm2022/primeng-editor.mjs.map +1 -1
- package/fesm2022/primeng-fieldset.mjs +153 -247
- package/fesm2022/primeng-fieldset.mjs.map +1 -1
- package/fesm2022/primeng-fileupload.mjs +370 -687
- package/fesm2022/primeng-fileupload.mjs.map +1 -1
- package/fesm2022/primeng-floatlabel.mjs +38 -46
- package/fesm2022/primeng-floatlabel.mjs.map +1 -1
- package/fesm2022/primeng-fluid.mjs +33 -41
- package/fesm2022/primeng-fluid.mjs.map +1 -1
- package/fesm2022/primeng-focustrap.mjs +23 -24
- package/fesm2022/primeng-focustrap.mjs.map +1 -1
- package/fesm2022/primeng-galleria.mjs +529 -761
- package/fesm2022/primeng-galleria.mjs.map +1 -1
- package/fesm2022/primeng-iconfield.mjs +42 -51
- package/fesm2022/primeng-iconfield.mjs.map +1 -1
- package/fesm2022/primeng-icons-angledoubledown.mjs +19 -19
- package/fesm2022/primeng-icons-angledoubledown.mjs.map +1 -1
- package/fesm2022/primeng-icons-angledoubleleft.mjs +19 -19
- package/fesm2022/primeng-icons-angledoubleleft.mjs.map +1 -1
- package/fesm2022/primeng-icons-angledoubleright.mjs +19 -19
- package/fesm2022/primeng-icons-angledoubleright.mjs.map +1 -1
- package/fesm2022/primeng-icons-angledoubleup.mjs +19 -19
- package/fesm2022/primeng-icons-angledoubleup.mjs.map +1 -1
- package/fesm2022/primeng-icons-angledown.mjs +17 -19
- package/fesm2022/primeng-icons-angledown.mjs.map +1 -1
- package/fesm2022/primeng-icons-angleleft.mjs +17 -19
- package/fesm2022/primeng-icons-angleleft.mjs.map +1 -1
- package/fesm2022/primeng-icons-angleright.mjs +17 -19
- package/fesm2022/primeng-icons-angleright.mjs.map +1 -1
- package/fesm2022/primeng-icons-angleup.mjs +17 -19
- package/fesm2022/primeng-icons-angleup.mjs.map +1 -1
- package/fesm2022/primeng-icons-arrowdown.mjs +26 -26
- package/fesm2022/primeng-icons-arrowdown.mjs.map +1 -1
- package/fesm2022/primeng-icons-arrowdownleft.mjs +17 -19
- package/fesm2022/primeng-icons-arrowdownleft.mjs.map +1 -1
- package/fesm2022/primeng-icons-arrowdownright.mjs +17 -19
- package/fesm2022/primeng-icons-arrowdownright.mjs.map +1 -1
- package/fesm2022/primeng-icons-arrowleft.mjs +26 -26
- package/fesm2022/primeng-icons-arrowleft.mjs.map +1 -1
- package/fesm2022/primeng-icons-arrowright.mjs +19 -19
- package/fesm2022/primeng-icons-arrowright.mjs.map +1 -1
- package/fesm2022/primeng-icons-arrowup.mjs +26 -26
- package/fesm2022/primeng-icons-arrowup.mjs.map +1 -1
- package/fesm2022/primeng-icons-ban.mjs +24 -26
- package/fesm2022/primeng-icons-ban.mjs.map +1 -1
- package/fesm2022/primeng-icons-bars.mjs +19 -19
- package/fesm2022/primeng-icons-bars.mjs.map +1 -1
- package/fesm2022/primeng-icons-baseicon.mjs +28 -33
- package/fesm2022/primeng-icons-baseicon.mjs.map +1 -1
- package/fesm2022/primeng-icons-blank.mjs +14 -16
- package/fesm2022/primeng-icons-blank.mjs.map +1 -1
- package/fesm2022/primeng-icons-calendar.mjs +17 -19
- package/fesm2022/primeng-icons-calendar.mjs.map +1 -1
- package/fesm2022/primeng-icons-caretleft.mjs +17 -19
- package/fesm2022/primeng-icons-caretleft.mjs.map +1 -1
- package/fesm2022/primeng-icons-caretright.mjs +17 -19
- package/fesm2022/primeng-icons-caretright.mjs.map +1 -1
- package/fesm2022/primeng-icons-check.mjs +17 -19
- package/fesm2022/primeng-icons-check.mjs.map +1 -1
- package/fesm2022/primeng-icons-chevrondown.mjs +17 -19
- package/fesm2022/primeng-icons-chevrondown.mjs.map +1 -1
- package/fesm2022/primeng-icons-chevronleft.mjs +17 -19
- package/fesm2022/primeng-icons-chevronleft.mjs.map +1 -1
- package/fesm2022/primeng-icons-chevronright.mjs +17 -19
- package/fesm2022/primeng-icons-chevronright.mjs.map +1 -1
- package/fesm2022/primeng-icons-chevronup.mjs +17 -19
- package/fesm2022/primeng-icons-chevronup.mjs.map +1 -1
- package/fesm2022/primeng-icons-exclamationtriangle.mjs +32 -26
- package/fesm2022/primeng-icons-exclamationtriangle.mjs.map +1 -1
- package/fesm2022/primeng-icons-eye.mjs +19 -19
- package/fesm2022/primeng-icons-eye.mjs.map +1 -1
- package/fesm2022/primeng-icons-eyeslash.mjs +26 -26
- package/fesm2022/primeng-icons-eyeslash.mjs.map +1 -1
- package/fesm2022/primeng-icons-filter.mjs +24 -26
- package/fesm2022/primeng-icons-filter.mjs.map +1 -1
- package/fesm2022/primeng-icons-filterslash.mjs +26 -26
- package/fesm2022/primeng-icons-filterslash.mjs.map +1 -1
- package/fesm2022/primeng-icons-home.mjs +26 -26
- package/fesm2022/primeng-icons-home.mjs.map +1 -1
- package/fesm2022/primeng-icons-infocircle.mjs +26 -26
- package/fesm2022/primeng-icons-infocircle.mjs.map +1 -1
- package/fesm2022/primeng-icons-minus.mjs +17 -19
- package/fesm2022/primeng-icons-minus.mjs.map +1 -1
- package/fesm2022/primeng-icons-pencil.mjs +24 -26
- package/fesm2022/primeng-icons-pencil.mjs.map +1 -1
- package/fesm2022/primeng-icons-plus.mjs +24 -26
- package/fesm2022/primeng-icons-plus.mjs.map +1 -1
- package/fesm2022/primeng-icons-refresh.mjs +26 -26
- package/fesm2022/primeng-icons-refresh.mjs.map +1 -1
- package/fesm2022/primeng-icons-search.mjs +26 -26
- package/fesm2022/primeng-icons-search.mjs.map +1 -1
- package/fesm2022/primeng-icons-searchminus.mjs +26 -26
- package/fesm2022/primeng-icons-searchminus.mjs.map +1 -1
- package/fesm2022/primeng-icons-searchplus.mjs +26 -26
- package/fesm2022/primeng-icons-searchplus.mjs.map +1 -1
- package/fesm2022/primeng-icons-sortalt.mjs +30 -26
- package/fesm2022/primeng-icons-sortalt.mjs.map +1 -1
- package/fesm2022/primeng-icons-sortamountdown.mjs +24 -26
- package/fesm2022/primeng-icons-sortamountdown.mjs.map +1 -1
- package/fesm2022/primeng-icons-sortamountupalt.mjs +24 -26
- package/fesm2022/primeng-icons-sortamountupalt.mjs.map +1 -1
- package/fesm2022/primeng-icons-spinner.mjs +24 -26
- package/fesm2022/primeng-icons-spinner.mjs.map +1 -1
- package/fesm2022/primeng-icons-star.mjs +24 -26
- package/fesm2022/primeng-icons-star.mjs.map +1 -1
- package/fesm2022/primeng-icons-starfill.mjs +24 -26
- package/fesm2022/primeng-icons-starfill.mjs.map +1 -1
- package/fesm2022/primeng-icons-thlarge.mjs +26 -26
- package/fesm2022/primeng-icons-thlarge.mjs.map +1 -1
- package/fesm2022/primeng-icons-times.mjs +17 -19
- package/fesm2022/primeng-icons-times.mjs.map +1 -1
- package/fesm2022/primeng-icons-timescircle.mjs +26 -26
- package/fesm2022/primeng-icons-timescircle.mjs.map +1 -1
- package/fesm2022/primeng-icons-trash.mjs +26 -26
- package/fesm2022/primeng-icons-trash.mjs.map +1 -1
- package/fesm2022/primeng-icons-undo.mjs +26 -26
- package/fesm2022/primeng-icons-undo.mjs.map +1 -1
- package/fesm2022/primeng-icons-upload.mjs +26 -26
- package/fesm2022/primeng-icons-upload.mjs.map +1 -1
- package/fesm2022/primeng-icons-windowmaximize.mjs +26 -26
- package/fesm2022/primeng-icons-windowmaximize.mjs.map +1 -1
- package/fesm2022/primeng-icons-windowminimize.mjs +26 -26
- package/fesm2022/primeng-icons-windowminimize.mjs.map +1 -1
- package/fesm2022/primeng-iftalabel.mjs +34 -40
- package/fesm2022/primeng-iftalabel.mjs.map +1 -1
- package/fesm2022/primeng-image.mjs +189 -370
- package/fesm2022/primeng-image.mjs.map +1 -1
- package/fesm2022/primeng-imagecompare.mjs +57 -86
- package/fesm2022/primeng-imagecompare.mjs.map +1 -1
- package/fesm2022/primeng-inplace.mjs +108 -206
- package/fesm2022/primeng-inplace.mjs.map +1 -1
- package/fesm2022/primeng-inputgroup.mjs +40 -50
- package/fesm2022/primeng-inputgroup.mjs.map +1 -1
- package/fesm2022/primeng-inputgroupaddon.mjs +40 -51
- package/fesm2022/primeng-inputgroupaddon.mjs.map +1 -1
- package/fesm2022/primeng-inputicon.mjs +39 -48
- package/fesm2022/primeng-inputicon.mjs.map +1 -1
- package/fesm2022/primeng-inputmask.mjs +156 -181
- package/fesm2022/primeng-inputmask.mjs.map +1 -1
- package/fesm2022/primeng-inputnumber.mjs +299 -416
- package/fesm2022/primeng-inputnumber.mjs.map +1 -1
- package/fesm2022/primeng-inputotp.mjs +97 -121
- package/fesm2022/primeng-inputotp.mjs.map +1 -1
- package/fesm2022/primeng-inputswitch.mjs +87 -92
- package/fesm2022/primeng-inputswitch.mjs.map +1 -1
- package/fesm2022/primeng-inputtext.mjs +51 -57
- package/fesm2022/primeng-inputtext.mjs.map +1 -1
- package/fesm2022/primeng-inputtextarea.mjs +50 -55
- package/fesm2022/primeng-inputtextarea.mjs.map +1 -1
- package/fesm2022/primeng-keyfilter.mjs +44 -47
- package/fesm2022/primeng-keyfilter.mjs.map +1 -1
- package/fesm2022/primeng-knob.mjs +105 -111
- package/fesm2022/primeng-knob.mjs.map +1 -1
- package/fesm2022/primeng-listbox.mjs +473 -790
- package/fesm2022/primeng-listbox.mjs.map +1 -1
- package/fesm2022/primeng-megamenu.mjs +377 -611
- package/fesm2022/primeng-megamenu.mjs.map +1 -1
- package/fesm2022/primeng-menu.mjs +289 -460
- package/fesm2022/primeng-menu.mjs.map +1 -1
- package/fesm2022/primeng-menubar.mjs +357 -549
- package/fesm2022/primeng-menubar.mjs.map +1 -1
- package/fesm2022/primeng-message.mjs +158 -244
- package/fesm2022/primeng-message.mjs.map +1 -1
- package/fesm2022/primeng-messages.mjs +163 -279
- package/fesm2022/primeng-messages.mjs.map +1 -1
- package/fesm2022/primeng-metergroup.mjs +135 -264
- package/fesm2022/primeng-metergroup.mjs.map +1 -1
- package/fesm2022/primeng-multiselect.mjs +687 -1162
- package/fesm2022/primeng-multiselect.mjs.map +1 -1
- package/fesm2022/primeng-orderlist.mjs +228 -330
- package/fesm2022/primeng-orderlist.mjs.map +1 -1
- package/fesm2022/primeng-organizationchart.mjs +161 -311
- package/fesm2022/primeng-organizationchart.mjs.map +1 -1
- package/fesm2022/primeng-overlay.mjs +135 -147
- package/fesm2022/primeng-overlay.mjs.map +1 -1
- package/fesm2022/primeng-overlaybadge.mjs +50 -58
- package/fesm2022/primeng-overlaybadge.mjs.map +1 -1
- package/fesm2022/primeng-overlaypanel.mjs +138 -156
- package/fesm2022/primeng-overlaypanel.mjs.map +1 -1
- package/fesm2022/primeng-paginator.mjs +212 -447
- package/fesm2022/primeng-paginator.mjs.map +1 -1
- package/fesm2022/primeng-panel.mjs +219 -317
- package/fesm2022/primeng-panel.mjs.map +1 -1
- package/fesm2022/primeng-panelmenu.mjs +439 -783
- package/fesm2022/primeng-panelmenu.mjs.map +1 -1
- package/fesm2022/primeng-password.mjs +268 -408
- package/fesm2022/primeng-password.mjs.map +1 -1
- package/fesm2022/primeng-picklist.mjs +560 -856
- package/fesm2022/primeng-picklist.mjs.map +1 -1
- package/fesm2022/primeng-popover.mjs +133 -150
- package/fesm2022/primeng-popover.mjs.map +1 -1
- package/fesm2022/primeng-progressbar.mjs +83 -121
- package/fesm2022/primeng-progressbar.mjs.map +1 -1
- package/fesm2022/primeng-progressspinner.mjs +48 -58
- package/fesm2022/primeng-progressspinner.mjs.map +1 -1
- package/fesm2022/primeng-radiobutton.mjs +115 -106
- package/fesm2022/primeng-radiobutton.mjs.map +1 -1
- package/fesm2022/primeng-rating.mjs +120 -208
- package/fesm2022/primeng-rating.mjs.map +1 -1
- package/fesm2022/primeng-ripple.mjs +28 -29
- package/fesm2022/primeng-ripple.mjs.map +1 -1
- package/fesm2022/primeng-scroller.mjs +167 -295
- package/fesm2022/primeng-scroller.mjs.map +1 -1
- package/fesm2022/primeng-scrollpanel.mjs +96 -116
- package/fesm2022/primeng-scrollpanel.mjs.map +1 -1
- package/fesm2022/primeng-scrolltop.mjs +106 -150
- package/fesm2022/primeng-scrolltop.mjs.map +1 -1
- package/fesm2022/primeng-select.mjs +580 -955
- package/fesm2022/primeng-select.mjs.map +1 -1
- package/fesm2022/primeng-selectbutton.mjs +106 -133
- package/fesm2022/primeng-selectbutton.mjs.map +1 -1
- package/fesm2022/primeng-sidebar.mjs +151 -239
- package/fesm2022/primeng-sidebar.mjs.map +1 -1
- package/fesm2022/primeng-skeleton.mjs +46 -54
- package/fesm2022/primeng-skeleton.mjs.map +1 -1
- package/fesm2022/primeng-slider.mjs +186 -182
- package/fesm2022/primeng-slider.mjs.map +1 -1
- package/fesm2022/primeng-speeddial.mjs +192 -254
- package/fesm2022/primeng-speeddial.mjs.map +1 -1
- package/fesm2022/primeng-splitbutton.mjs +211 -231
- package/fesm2022/primeng-splitbutton.mjs.map +1 -1
- package/fesm2022/primeng-splitter.mjs +126 -159
- package/fesm2022/primeng-splitter.mjs.map +1 -1
- package/fesm2022/primeng-stepper.mjs +227 -342
- package/fesm2022/primeng-stepper.mjs.map +1 -1
- package/fesm2022/primeng-steps.mjs +117 -170
- package/fesm2022/primeng-steps.mjs.map +1 -1
- package/fesm2022/primeng-styleclass.mjs +50 -53
- package/fesm2022/primeng-styleclass.mjs.map +1 -1
- package/fesm2022/primeng-table.mjs +1808 -2584
- package/fesm2022/primeng-table.mjs.map +1 -1
- package/fesm2022/primeng-tabmenu.mjs +173 -319
- package/fesm2022/primeng-tabmenu.mjs.map +1 -1
- package/fesm2022/primeng-tabs.mjs +185 -300
- package/fesm2022/primeng-tabs.mjs.map +1 -1
- package/fesm2022/primeng-tabview.mjs +263 -435
- package/fesm2022/primeng-tabview.mjs.map +1 -1
- package/fesm2022/primeng-tag.mjs +63 -110
- package/fesm2022/primeng-tag.mjs.map +1 -1
- package/fesm2022/primeng-terminal.mjs +60 -104
- package/fesm2022/primeng-terminal.mjs.map +1 -1
- package/fesm2022/primeng-textarea.mjs +56 -61
- package/fesm2022/primeng-textarea.mjs.map +1 -1
- package/fesm2022/primeng-tieredmenu.mjs +338 -457
- package/fesm2022/primeng-tieredmenu.mjs.map +1 -1
- package/fesm2022/primeng-timeline.mjs +90 -156
- package/fesm2022/primeng-timeline.mjs.map +1 -1
- package/fesm2022/primeng-toast.mjs +251 -358
- package/fesm2022/primeng-toast.mjs.map +1 -1
- package/fesm2022/primeng-togglebutton.mjs +113 -150
- package/fesm2022/primeng-togglebutton.mjs.map +1 -1
- package/fesm2022/primeng-toggleswitch.mjs +98 -121
- package/fesm2022/primeng-toggleswitch.mjs.map +1 -1
- package/fesm2022/primeng-toolbar.mjs +62 -121
- package/fesm2022/primeng-toolbar.mjs.map +1 -1
- package/fesm2022/primeng-tooltip.mjs +73 -74
- package/fesm2022/primeng-tooltip.mjs.map +1 -1
- package/fesm2022/primeng-tree.mjs +441 -730
- package/fesm2022/primeng-tree.mjs.map +1 -1
- package/fesm2022/primeng-treeselect.mjs +342 -531
- package/fesm2022/primeng-treeselect.mjs.map +1 -1
- package/fesm2022/primeng-treetable.mjs +1026 -1583
- package/fesm2022/primeng-treetable.mjs.map +1 -1
- package/fesm2022/primeng-usestyle.mjs +6 -6
- package/fesm2022/primeng-usestyle.mjs.map +1 -1
- package/listbox/listbox.d.ts +2 -2
- package/multiselect/multiselect.d.ts +4 -2
- package/package.json +139 -140
- package/password/password.d.ts +7 -1
- package/picklist/picklist.d.ts +11 -1
@@ -1,8 +1,8 @@
|
|
1
|
-
import { trigger, state,
|
1
|
+
import { trigger, state, transition, style, animate } from '@angular/animations';
|
2
2
|
import * as i2 from '@angular/common';
|
3
3
|
import { CommonModule } from '@angular/common';
|
4
4
|
import * as i0 from '@angular/core';
|
5
|
-
import { Injectable, inject, forwardRef, model, input, computed,
|
5
|
+
import { Injectable, inject, forwardRef, model, input, computed, ViewEncapsulation, ChangeDetectionStrategy, Component, HostListener, ContentChild, EventEmitter, numberAttribute, booleanAttribute, ContentChildren, Output, Input, HostBinding, signal, NgModule } from '@angular/core';
|
6
6
|
import { findSingle, getAttribute, focus, uuid } from '@primeuix/utils';
|
7
7
|
import { Header, PrimeTemplate, SharedModule } from 'primeng/api';
|
8
8
|
import { BaseComponent } from 'primeng/basecomponent';
|
@@ -129,12 +129,12 @@ class AccordionStyle extends BaseStyle {
|
|
129
129
|
name = 'accordion';
|
130
130
|
theme = theme;
|
131
131
|
classes = classes;
|
132
|
-
static ɵfac =
|
133
|
-
static ɵprov =
|
132
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: AccordionStyle, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
133
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: AccordionStyle });
|
134
134
|
}
|
135
|
-
(
|
136
|
-
|
137
|
-
|
135
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: AccordionStyle, decorators: [{
|
136
|
+
type: Injectable
|
137
|
+
}] });
|
138
138
|
/**
|
139
139
|
*
|
140
140
|
* Accordion groups a collection of contents in tabs.
|
@@ -172,196 +172,6 @@ var AccordionClasses;
|
|
172
172
|
AccordionClasses["panel"] = "p-accordionpanel";
|
173
173
|
})(AccordionClasses || (AccordionClasses = {}));
|
174
174
|
|
175
|
-
const _c0 = ["*"];
|
176
|
-
const _c1 = ["toggleicon"];
|
177
|
-
const _c2 = a0 => ({ active: a0 });
|
178
|
-
function AccordionHeader_Conditional_1_0_ng_template_0_Template(rf, ctx) { }
|
179
|
-
function AccordionHeader_Conditional_1_0_Template(rf, ctx) { if (rf & 1) {
|
180
|
-
i0.ɵɵtemplate(0, AccordionHeader_Conditional_1_0_ng_template_0_Template, 0, 0, "ng-template");
|
181
|
-
} }
|
182
|
-
function AccordionHeader_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
183
|
-
i0.ɵɵtemplate(0, AccordionHeader_Conditional_1_0_Template, 1, 0, null, 0);
|
184
|
-
} if (rf & 2) {
|
185
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
186
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r0.toggleicon)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c2, ctx_r0.active()));
|
187
|
-
} }
|
188
|
-
function AccordionHeader_Conditional_2_ng_container_0_span_1_Template(rf, ctx) { if (rf & 1) {
|
189
|
-
i0.ɵɵelement(0, "span", 4);
|
190
|
-
} if (rf & 2) {
|
191
|
-
const ctx_r0 = i0.ɵɵnextContext(3);
|
192
|
-
i0.ɵɵclassMap(ctx_r0.pcAccordion.collapseIcon);
|
193
|
-
i0.ɵɵproperty("ngClass", ctx_r0.pcAccordion.iconClass);
|
194
|
-
i0.ɵɵattribute("aria-hidden", true);
|
195
|
-
} }
|
196
|
-
function AccordionHeader_Conditional_2_ng_container_0_ChevronDownIcon_2_Template(rf, ctx) { if (rf & 1) {
|
197
|
-
i0.ɵɵelement(0, "ChevronDownIcon", 4);
|
198
|
-
} if (rf & 2) {
|
199
|
-
const ctx_r0 = i0.ɵɵnextContext(3);
|
200
|
-
i0.ɵɵproperty("ngClass", ctx_r0.pcAccordion.iconClass);
|
201
|
-
i0.ɵɵattribute("aria-hidden", true);
|
202
|
-
} }
|
203
|
-
function AccordionHeader_Conditional_2_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
204
|
-
i0.ɵɵelementContainerStart(0);
|
205
|
-
i0.ɵɵtemplate(1, AccordionHeader_Conditional_2_ng_container_0_span_1_Template, 1, 4, "span", 2)(2, AccordionHeader_Conditional_2_ng_container_0_ChevronDownIcon_2_Template, 1, 2, "ChevronDownIcon", 3);
|
206
|
-
i0.ɵɵelementContainerEnd();
|
207
|
-
} if (rf & 2) {
|
208
|
-
const ctx_r0 = i0.ɵɵnextContext(2);
|
209
|
-
i0.ɵɵadvance();
|
210
|
-
i0.ɵɵproperty("ngIf", ctx_r0.pcAccordion.collapseIcon);
|
211
|
-
i0.ɵɵadvance();
|
212
|
-
i0.ɵɵproperty("ngIf", !ctx_r0.pcAccordion.collapseIcon);
|
213
|
-
} }
|
214
|
-
function AccordionHeader_Conditional_2_ng_container_1_span_1_Template(rf, ctx) { if (rf & 1) {
|
215
|
-
i0.ɵɵelement(0, "span", 4);
|
216
|
-
} if (rf & 2) {
|
217
|
-
const ctx_r0 = i0.ɵɵnextContext(3);
|
218
|
-
i0.ɵɵclassMap(ctx_r0.pcAccordion.expandIcon);
|
219
|
-
i0.ɵɵproperty("ngClass", ctx_r0.pcAccordion.iconClass);
|
220
|
-
i0.ɵɵattribute("aria-hidden", true);
|
221
|
-
} }
|
222
|
-
function AccordionHeader_Conditional_2_ng_container_1_ChevronUpIcon_2_Template(rf, ctx) { if (rf & 1) {
|
223
|
-
i0.ɵɵelement(0, "ChevronUpIcon", 4);
|
224
|
-
} if (rf & 2) {
|
225
|
-
const ctx_r0 = i0.ɵɵnextContext(3);
|
226
|
-
i0.ɵɵproperty("ngClass", ctx_r0.pcAccordion.iconClass);
|
227
|
-
i0.ɵɵattribute("aria-hidden", true);
|
228
|
-
} }
|
229
|
-
function AccordionHeader_Conditional_2_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
230
|
-
i0.ɵɵelementContainerStart(0);
|
231
|
-
i0.ɵɵtemplate(1, AccordionHeader_Conditional_2_ng_container_1_span_1_Template, 1, 4, "span", 2)(2, AccordionHeader_Conditional_2_ng_container_1_ChevronUpIcon_2_Template, 1, 2, "ChevronUpIcon", 3);
|
232
|
-
i0.ɵɵelementContainerEnd();
|
233
|
-
} if (rf & 2) {
|
234
|
-
const ctx_r0 = i0.ɵɵnextContext(2);
|
235
|
-
i0.ɵɵadvance();
|
236
|
-
i0.ɵɵproperty("ngIf", ctx_r0.pcAccordion.expandIcon);
|
237
|
-
i0.ɵɵadvance();
|
238
|
-
i0.ɵɵproperty("ngIf", !ctx_r0.pcAccordion.expandIcon);
|
239
|
-
} }
|
240
|
-
function AccordionHeader_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
241
|
-
i0.ɵɵtemplate(0, AccordionHeader_Conditional_2_ng_container_0_Template, 3, 2, "ng-container", 1)(1, AccordionHeader_Conditional_2_ng_container_1_Template, 3, 2, "ng-container", 1);
|
242
|
-
} if (rf & 2) {
|
243
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
244
|
-
i0.ɵɵproperty("ngIf", ctx_r0.active());
|
245
|
-
i0.ɵɵadvance();
|
246
|
-
i0.ɵɵproperty("ngIf", !ctx_r0.active());
|
247
|
-
} }
|
248
|
-
const _c3 = a0 => ({ transitionParams: a0 });
|
249
|
-
const _c4 = a0 => ({ value: "visible", params: a0 });
|
250
|
-
const _c5 = a0 => ({ value: "hidden", params: a0 });
|
251
|
-
const _c6 = ["header"];
|
252
|
-
const _c7 = ["icon"];
|
253
|
-
const _c8 = ["content"];
|
254
|
-
const _c9 = ["*", [["p-header"]]];
|
255
|
-
const _c10 = ["*", "p-header"];
|
256
|
-
const _c11 = a0 => ({ $implicit: a0 });
|
257
|
-
function AccordionTab_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
258
|
-
i0.ɵɵtext(0);
|
259
|
-
} if (rf & 2) {
|
260
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
261
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r0.header, " ");
|
262
|
-
} }
|
263
|
-
function AccordionTab_Conditional_2_Conditional_0_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
264
|
-
i0.ɵɵelementContainer(0);
|
265
|
-
} }
|
266
|
-
function AccordionTab_Conditional_2_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
267
|
-
i0.ɵɵtemplate(0, AccordionTab_Conditional_2_Conditional_0_ng_container_0_Template, 1, 0, "ng-container", 4);
|
268
|
-
} if (rf & 2) {
|
269
|
-
const ctx_r0 = i0.ɵɵnextContext(2);
|
270
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r0.headerTemplate || ctx_r0._headerTemplate);
|
271
|
-
} }
|
272
|
-
function AccordionTab_Conditional_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
273
|
-
i0.ɵɵprojection(0, 1);
|
274
|
-
} }
|
275
|
-
function AccordionTab_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
276
|
-
i0.ɵɵtemplate(0, AccordionTab_Conditional_2_Conditional_0_Template, 1, 1, "ng-container")(1, AccordionTab_Conditional_2_Conditional_1_Template, 1, 0);
|
277
|
-
} if (rf & 2) {
|
278
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
279
|
-
i0.ɵɵconditional(ctx_r0.headerTemplate || ctx_r0._headerTemplate ? 0 : -1);
|
280
|
-
i0.ɵɵadvance();
|
281
|
-
i0.ɵɵconditional(ctx_r0.headerFacet ? 1 : -1);
|
282
|
-
} }
|
283
|
-
function AccordionTab_Conditional_3_0_ng_template_0_Template(rf, ctx) { }
|
284
|
-
function AccordionTab_Conditional_3_0_Template(rf, ctx) { if (rf & 1) {
|
285
|
-
i0.ɵɵtemplate(0, AccordionTab_Conditional_3_0_ng_template_0_Template, 0, 0, "ng-template");
|
286
|
-
} }
|
287
|
-
function AccordionTab_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
288
|
-
i0.ɵɵtemplate(0, AccordionTab_Conditional_3_0_Template, 1, 0, null, 5);
|
289
|
-
} if (rf & 2) {
|
290
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
291
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r0.iconTemplate || ctx_r0._iconTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c11, ctx_r0.selected));
|
292
|
-
} }
|
293
|
-
function AccordionTab_Conditional_4_ng_container_0_span_1_Template(rf, ctx) { if (rf & 1) {
|
294
|
-
i0.ɵɵelement(0, "span", 8);
|
295
|
-
} if (rf & 2) {
|
296
|
-
const ctx_r0 = i0.ɵɵnextContext(3);
|
297
|
-
i0.ɵɵclassMap(ctx_r0.accordion.collapseIcon);
|
298
|
-
i0.ɵɵproperty("ngClass", ctx_r0.iconClass);
|
299
|
-
i0.ɵɵattribute("aria-hidden", true);
|
300
|
-
} }
|
301
|
-
function AccordionTab_Conditional_4_ng_container_0_ChevronDownIcon_2_Template(rf, ctx) { if (rf & 1) {
|
302
|
-
i0.ɵɵelement(0, "ChevronDownIcon", 8);
|
303
|
-
} if (rf & 2) {
|
304
|
-
const ctx_r0 = i0.ɵɵnextContext(3);
|
305
|
-
i0.ɵɵproperty("ngClass", ctx_r0.iconClass);
|
306
|
-
i0.ɵɵattribute("aria-hidden", true);
|
307
|
-
} }
|
308
|
-
function AccordionTab_Conditional_4_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
309
|
-
i0.ɵɵelementContainerStart(0);
|
310
|
-
i0.ɵɵtemplate(1, AccordionTab_Conditional_4_ng_container_0_span_1_Template, 1, 4, "span", 6)(2, AccordionTab_Conditional_4_ng_container_0_ChevronDownIcon_2_Template, 1, 2, "ChevronDownIcon", 7);
|
311
|
-
i0.ɵɵelementContainerEnd();
|
312
|
-
} if (rf & 2) {
|
313
|
-
const ctx_r0 = i0.ɵɵnextContext(2);
|
314
|
-
i0.ɵɵadvance();
|
315
|
-
i0.ɵɵproperty("ngIf", ctx_r0.accordion.collapseIcon);
|
316
|
-
i0.ɵɵadvance();
|
317
|
-
i0.ɵɵproperty("ngIf", !ctx_r0.accordion.collapseIcon);
|
318
|
-
} }
|
319
|
-
function AccordionTab_Conditional_4_ng_container_1_span_1_Template(rf, ctx) { if (rf & 1) {
|
320
|
-
i0.ɵɵelement(0, "span", 8);
|
321
|
-
} if (rf & 2) {
|
322
|
-
const ctx_r0 = i0.ɵɵnextContext(3);
|
323
|
-
i0.ɵɵclassMap(ctx_r0.accordion.expandIcon);
|
324
|
-
i0.ɵɵproperty("ngClass", ctx_r0.iconClass);
|
325
|
-
i0.ɵɵattribute("aria-hidden", true);
|
326
|
-
} }
|
327
|
-
function AccordionTab_Conditional_4_ng_container_1_ChevronUpIcon_2_Template(rf, ctx) { if (rf & 1) {
|
328
|
-
i0.ɵɵelement(0, "ChevronUpIcon", 8);
|
329
|
-
} if (rf & 2) {
|
330
|
-
const ctx_r0 = i0.ɵɵnextContext(3);
|
331
|
-
i0.ɵɵproperty("ngClass", ctx_r0.iconClass);
|
332
|
-
i0.ɵɵattribute("aria-hidden", true);
|
333
|
-
} }
|
334
|
-
function AccordionTab_Conditional_4_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
335
|
-
i0.ɵɵelementContainerStart(0);
|
336
|
-
i0.ɵɵtemplate(1, AccordionTab_Conditional_4_ng_container_1_span_1_Template, 1, 4, "span", 6)(2, AccordionTab_Conditional_4_ng_container_1_ChevronUpIcon_2_Template, 1, 2, "ChevronUpIcon", 7);
|
337
|
-
i0.ɵɵelementContainerEnd();
|
338
|
-
} if (rf & 2) {
|
339
|
-
const ctx_r0 = i0.ɵɵnextContext(2);
|
340
|
-
i0.ɵɵadvance();
|
341
|
-
i0.ɵɵproperty("ngIf", ctx_r0.accordion.expandIcon);
|
342
|
-
i0.ɵɵadvance();
|
343
|
-
i0.ɵɵproperty("ngIf", !ctx_r0.accordion.expandIcon);
|
344
|
-
} }
|
345
|
-
function AccordionTab_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
346
|
-
i0.ɵɵtemplate(0, AccordionTab_Conditional_4_ng_container_0_Template, 3, 2, "ng-container", 3)(1, AccordionTab_Conditional_4_ng_container_1_Template, 3, 2, "ng-container", 3);
|
347
|
-
} if (rf & 2) {
|
348
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
349
|
-
i0.ɵɵproperty("ngIf", ctx_r0.selected);
|
350
|
-
i0.ɵɵadvance();
|
351
|
-
i0.ɵɵproperty("ngIf", !ctx_r0.selected);
|
352
|
-
} }
|
353
|
-
function AccordionTab_ng_container_8_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
354
|
-
i0.ɵɵelementContainer(0);
|
355
|
-
} }
|
356
|
-
function AccordionTab_ng_container_8_Template(rf, ctx) { if (rf & 1) {
|
357
|
-
i0.ɵɵelementContainerStart(0);
|
358
|
-
i0.ɵɵtemplate(1, AccordionTab_ng_container_8_ng_container_1_Template, 1, 0, "ng-container", 4);
|
359
|
-
i0.ɵɵelementContainerEnd();
|
360
|
-
} if (rf & 2) {
|
361
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
362
|
-
i0.ɵɵadvance();
|
363
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r0.contentTemplate || ctx_r0._contentTemplate);
|
364
|
-
} }
|
365
175
|
/**
|
366
176
|
* AccordionPanel is a helper component for Accordion component.
|
367
177
|
* @group Components
|
@@ -387,35 +197,28 @@ class AccordionPanel extends BaseComponent {
|
|
387
197
|
}
|
388
198
|
return currentValue === value;
|
389
199
|
}
|
390
|
-
static ɵfac =
|
391
|
-
static ɵcmp =
|
392
|
-
i0.ɵɵattribute("data-pc-name", "accordionpanel")("data-p-disabled", ctx.disabled())("data-p-active", ctx.active());
|
393
|
-
i0.ɵɵclassProp("p-accordionpanel", true)("p-accordionpanel-active", ctx.active())("p-disabled", ctx.disabled());
|
394
|
-
} }, inputs: { value: [1, "value"], disabled: [1, "disabled"] }, outputs: { value: "valueChange" }, features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function AccordionPanel_Template(rf, ctx) { if (rf & 1) {
|
395
|
-
i0.ɵɵprojectionDef();
|
396
|
-
i0.ɵɵprojection(0);
|
397
|
-
} }, dependencies: [CommonModule], encapsulation: 2, changeDetection: 0 });
|
200
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: AccordionPanel, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
201
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.1.7", type: AccordionPanel, isStandalone: true, selector: "p-accordion-panel, p-accordionpanel", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, host: { properties: { "class.p-accordionpanel": "true", "class.p-accordionpanel-active": "active()", "class.p-disabled": "disabled()", "attr.data-pc-name": "\"accordionpanel\"", "attr.data-p-disabled": "disabled()", "attr.data-p-active": "active()" } }, usesInheritance: true, ngImport: i0, template: `<ng-content />`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
398
202
|
}
|
399
|
-
(
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(AccordionPanel, { className: "AccordionPanel", filePath: "accordion.ts", lineNumber: 93 }); })();
|
203
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: AccordionPanel, decorators: [{
|
204
|
+
type: Component,
|
205
|
+
args: [{
|
206
|
+
selector: 'p-accordion-panel, p-accordionpanel',
|
207
|
+
imports: [CommonModule],
|
208
|
+
standalone: true,
|
209
|
+
template: `<ng-content />`,
|
210
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
211
|
+
encapsulation: ViewEncapsulation.None,
|
212
|
+
host: {
|
213
|
+
'[class.p-accordionpanel]': 'true',
|
214
|
+
'[class.p-accordionpanel-active]': 'active()',
|
215
|
+
'[class.p-disabled]': 'disabled()',
|
216
|
+
'[attr.data-pc-name]': '"accordionpanel"',
|
217
|
+
'[attr.data-p-disabled]': 'disabled()',
|
218
|
+
'[attr.data-p-active]': 'active()'
|
219
|
+
}
|
220
|
+
}]
|
221
|
+
}] });
|
419
222
|
/**
|
420
223
|
* AccordionHeader is a helper component for Accordion component.
|
421
224
|
* @group Components
|
@@ -438,8 +241,18 @@ class AccordionHeader extends BaseComponent {
|
|
438
241
|
* @group Templates
|
439
242
|
*/
|
440
243
|
toggleicon;
|
441
|
-
onClick() {
|
244
|
+
onClick(event) {
|
245
|
+
const wasActive = this.active();
|
442
246
|
this.changeActiveValue();
|
247
|
+
const isActive = this.active();
|
248
|
+
const panels = this.pcAccordion.panelList ? this.pcAccordion.panelList.toArray() : [];
|
249
|
+
const index = panels.findIndex((panel) => panel === this.pcAccordionPanel);
|
250
|
+
if (!wasActive && isActive) {
|
251
|
+
this.pcAccordion.onOpen.emit({ originalEvent: event, index });
|
252
|
+
}
|
253
|
+
else if (wasActive && !isActive) {
|
254
|
+
this.pcAccordion.onClose.emit({ originalEvent: event, index });
|
255
|
+
}
|
443
256
|
}
|
444
257
|
onFocus() {
|
445
258
|
this.pcAccordion.selectOnFocus() && this.changeActiveValue();
|
@@ -517,34 +330,30 @@ class AccordionHeader extends BaseComponent {
|
|
517
330
|
this.changeActiveValue();
|
518
331
|
event.preventDefault();
|
519
332
|
}
|
520
|
-
static ɵfac =
|
521
|
-
static ɵcmp =
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
} if (rf & 2) {
|
537
|
-
i0.ɵɵadvance();
|
538
|
-
i0.ɵɵconditional(ctx.toggleicon ? 1 : 2);
|
539
|
-
} }, dependencies: [CommonModule, i2.NgClass, i2.NgIf, i2.NgTemplateOutlet, ChevronDownIcon, ChevronUpIcon], encapsulation: 2, changeDetection: 0 });
|
333
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: AccordionHeader, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
334
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.7", type: AccordionHeader, isStandalone: true, selector: "p-accordion-header, p-accordionheader", host: { listeners: { "click": "onClick($event)", "focus": "onFocus($event)", "keydown": "onKeydown($event)" }, properties: { "class.p-accordionheader": "true", "attr.id": "id()", "attr.aria-expanded": "active()", "attr.aria-controls": "ariaControls()", "attr.role": "\"button\"", "attr.tabindex": "\"0\"", "attr.data-p-active": "active()", "attr.data-p-disabled": "disabled()", "attr.data-pc-name": "\"accordionheader\"", "style.user-select": "\"none\"" } }, queries: [{ propertyName: "toggleicon", first: true, predicate: ["toggleicon"], descendants: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Ripple }], ngImport: i0, template: `
|
335
|
+
<ng-content />
|
336
|
+
@if (toggleicon) {
|
337
|
+
<ng-template *ngTemplateOutlet="toggleicon; context: { active: active() }"></ng-template>
|
338
|
+
} @else {
|
339
|
+
<ng-container *ngIf="active()">
|
340
|
+
<span *ngIf="pcAccordion.collapseIcon" [class]="pcAccordion.collapseIcon" [ngClass]="pcAccordion.iconClass" [attr.aria-hidden]="true"></span>
|
341
|
+
<ChevronDownIcon *ngIf="!pcAccordion.collapseIcon" [ngClass]="pcAccordion.iconClass" [attr.aria-hidden]="true" />
|
342
|
+
</ng-container>
|
343
|
+
<ng-container *ngIf="!active()">
|
344
|
+
<span *ngIf="pcAccordion.expandIcon" [class]="pcAccordion.expandIcon" [ngClass]="pcAccordion.iconClass" [attr.aria-hidden]="true"></span>
|
345
|
+
<ChevronUpIcon *ngIf="!pcAccordion.expandIcon" [ngClass]="pcAccordion.iconClass" [attr.aria-hidden]="true" />
|
346
|
+
</ng-container>
|
347
|
+
}
|
348
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: ChevronDownIcon, selector: "ChevronDownIcon" }, { kind: "component", type: ChevronUpIcon, selector: "ChevronUpIcon" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
540
349
|
}
|
541
|
-
(
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
350
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: AccordionHeader, decorators: [{
|
351
|
+
type: Component,
|
352
|
+
args: [{
|
353
|
+
selector: 'p-accordion-header, p-accordionheader',
|
354
|
+
imports: [CommonModule, ChevronDownIcon, ChevronUpIcon],
|
355
|
+
standalone: true,
|
356
|
+
template: `
|
548
357
|
<ng-content />
|
549
358
|
@if (toggleicon) {
|
550
359
|
<ng-template *ngTemplateOutlet="toggleicon; context: { active: active() }"></ng-template>
|
@@ -559,106 +368,97 @@ class AccordionHeader extends BaseComponent {
|
|
559
368
|
</ng-container>
|
560
369
|
}
|
561
370
|
`,
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(AccordionHeader, { className: "AccordionHeader", filePath: "accordion.ts", lineNumber: 156 }); })();
|
371
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
372
|
+
encapsulation: ViewEncapsulation.None,
|
373
|
+
host: {
|
374
|
+
'[class.p-accordionheader]': 'true',
|
375
|
+
'[attr.id]': 'id()',
|
376
|
+
'[attr.aria-expanded]': 'active()',
|
377
|
+
'[attr.aria-controls]': 'ariaControls()',
|
378
|
+
'[attr.role]': '"button"',
|
379
|
+
'[attr.tabindex]': '"0"',
|
380
|
+
'[attr.data-p-active]': 'active()',
|
381
|
+
'[attr.data-p-disabled]': 'disabled()',
|
382
|
+
'[attr.data-pc-name]': '"accordionheader"',
|
383
|
+
'[style.user-select]': '"none"'
|
384
|
+
},
|
385
|
+
hostDirectives: [Ripple]
|
386
|
+
}]
|
387
|
+
}], propDecorators: { toggleicon: [{
|
388
|
+
type: ContentChild,
|
389
|
+
args: ['toggleicon']
|
390
|
+
}], onClick: [{
|
391
|
+
type: HostListener,
|
392
|
+
args: ['click', ['$event']]
|
393
|
+
}], onFocus: [{
|
394
|
+
type: HostListener,
|
395
|
+
args: ['focus', ['$event']]
|
396
|
+
}], onKeydown: [{
|
397
|
+
type: HostListener,
|
398
|
+
args: ['keydown', ['$event']]
|
399
|
+
}] } });
|
592
400
|
class AccordionContent extends BaseComponent {
|
593
401
|
pcAccordion = inject(forwardRef(() => Accordion));
|
594
402
|
pcAccordionPanel = inject(forwardRef(() => AccordionPanel));
|
595
403
|
active = computed(() => this.pcAccordionPanel.active());
|
596
404
|
ariaLabelledby = computed(() => `${this.pcAccordion.id()}_accordionheader_${this.pcAccordionPanel.value()}`);
|
597
405
|
id = computed(() => `${this.pcAccordion.id()}_accordioncontent_${this.pcAccordionPanel.value()}`);
|
598
|
-
static ɵfac =
|
599
|
-
static ɵcmp =
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
height: '*',
|
616
|
-
visibility: 'visible'
|
617
|
-
})),
|
618
|
-
transition('visible <=> hidden', [animate('{{transitionParams}}')]),
|
619
|
-
transition('void => *', animate(0))
|
620
|
-
])
|
621
|
-
] }, changeDetection: 0 });
|
406
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: AccordionContent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
407
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.7", type: AccordionContent, isStandalone: true, selector: "p-accordion-content, p-accordioncontent", host: { properties: { "class.p-accordioncontent": "true", "attr.id": "id()", "attr.role": "\"region\"", "attr.data-pc-name": "\"accordioncontent\"", "attr.data-p-active": "active()", "attr.aria-labelledby": "ariaLabelledby()", "@content": "active()\n ? { value: 'visible', params: { transitionParams: pcAccordion.transitionOptions } }\n : { value: 'hidden', params: { transitionParams: pcAccordion.transitionOptions } }" } }, usesInheritance: true, ngImport: i0, template: ` <div class="p-accordioncontent-content">
|
408
|
+
<ng-content />
|
409
|
+
</div>`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }], animations: [
|
410
|
+
trigger('content', [
|
411
|
+
state('hidden', style({
|
412
|
+
height: '0',
|
413
|
+
visibility: 'hidden'
|
414
|
+
})),
|
415
|
+
state('visible', style({
|
416
|
+
height: '*',
|
417
|
+
visibility: 'visible'
|
418
|
+
})),
|
419
|
+
transition('visible <=> hidden', [animate('{{transitionParams}}')]),
|
420
|
+
transition('void => *', animate(0))
|
421
|
+
])
|
422
|
+
], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
622
423
|
}
|
623
|
-
(
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
|
628
|
-
|
629
|
-
|
424
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: AccordionContent, decorators: [{
|
425
|
+
type: Component,
|
426
|
+
args: [{
|
427
|
+
selector: 'p-accordion-content, p-accordioncontent',
|
428
|
+
imports: [CommonModule],
|
429
|
+
standalone: true,
|
430
|
+
template: ` <div class="p-accordioncontent-content">
|
630
431
|
<ng-content />
|
631
432
|
</div>`,
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
433
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
434
|
+
encapsulation: ViewEncapsulation.None,
|
435
|
+
host: {
|
436
|
+
'[class.p-accordioncontent]': 'true',
|
437
|
+
'[attr.id]': 'id()',
|
438
|
+
'[attr.role]': '"region"',
|
439
|
+
'[attr.data-pc-name]': '"accordioncontent"',
|
440
|
+
'[attr.data-p-active]': 'active()',
|
441
|
+
'[attr.aria-labelledby]': 'ariaLabelledby()',
|
442
|
+
'[@content]': `active()
|
642
443
|
? { value: 'visible', params: { transitionParams: pcAccordion.transitionOptions } }
|
643
444
|
: { value: 'hidden', params: { transitionParams: pcAccordion.transitionOptions } }`
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
|
661
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(AccordionContent, { className: "AccordionContent", filePath: "accordion.ts", lineNumber: 322 }); })();
|
445
|
+
},
|
446
|
+
animations: [
|
447
|
+
trigger('content', [
|
448
|
+
state('hidden', style({
|
449
|
+
height: '0',
|
450
|
+
visibility: 'hidden'
|
451
|
+
})),
|
452
|
+
state('visible', style({
|
453
|
+
height: '*',
|
454
|
+
visibility: 'visible'
|
455
|
+
})),
|
456
|
+
transition('visible <=> hidden', [animate('{{transitionParams}}')]),
|
457
|
+
transition('void => *', animate(0))
|
458
|
+
])
|
459
|
+
]
|
460
|
+
}]
|
461
|
+
}] });
|
662
462
|
/**
|
663
463
|
* AccordionTab is a helper component for Accordion.
|
664
464
|
* @deprecated Use AccordionPanel, AccordionHeader, AccordionContent instead.
|
@@ -871,72 +671,86 @@ class AccordionTab extends BaseComponent {
|
|
871
671
|
this.accordion.tabs.splice(this.findTabIndex(), 1);
|
872
672
|
super.ngOnDestroy();
|
873
673
|
}
|
874
|
-
static ɵfac =
|
875
|
-
static ɵcmp =
|
876
|
-
|
877
|
-
|
878
|
-
|
879
|
-
|
880
|
-
|
881
|
-
|
882
|
-
|
883
|
-
|
884
|
-
|
885
|
-
|
886
|
-
|
887
|
-
|
888
|
-
|
889
|
-
|
890
|
-
|
891
|
-
|
892
|
-
|
893
|
-
|
894
|
-
|
895
|
-
|
896
|
-
|
897
|
-
|
898
|
-
|
899
|
-
|
900
|
-
|
901
|
-
|
902
|
-
|
903
|
-
|
904
|
-
|
905
|
-
|
906
|
-
|
907
|
-
|
908
|
-
|
909
|
-
|
910
|
-
|
911
|
-
|
912
|
-
|
913
|
-
|
914
|
-
|
915
|
-
|
916
|
-
|
917
|
-
|
918
|
-
|
919
|
-
|
920
|
-
|
921
|
-
|
922
|
-
|
923
|
-
|
924
|
-
|
925
|
-
|
926
|
-
|
927
|
-
|
928
|
-
|
929
|
-
|
930
|
-
|
931
|
-
|
674
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: AccordionTab, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
675
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.7", type: AccordionTab, isStandalone: true, selector: "p-accordionTab, p-accordion-tab, p-accordiontab", inputs: { id: "id", header: "header", headerStyle: "headerStyle", tabStyle: "tabStyle", contentStyle: "contentStyle", tabStyleClass: "tabStyleClass", headerStyleClass: "headerStyleClass", contentStyleClass: "contentStyleClass", disabled: ["disabled", "disabled", booleanAttribute], cache: ["cache", "cache", booleanAttribute], transitionOptions: "transitionOptions", iconPos: "iconPos", selected: "selected", headerAriaLevel: ["headerAriaLevel", "headerAriaLevel", numberAttribute] }, outputs: { selectedChange: "selectedChange" }, host: { properties: { "class.p-accordionpanel": "true", "class.p-accordionpanel-active": "selected", "attr.data-pc-name": "\"accordiontab\"", "class": "this.hostClass", "style": "this.hostStyle" } }, providers: [AccordionStyle], queries: [{ propertyName: "headerTemplate", first: true, predicate: ["header"] }, { propertyName: "iconTemplate", first: true, predicate: ["icon"] }, { propertyName: "contentTemplate", first: true, predicate: ["content"] }, { propertyName: "headerFacet", predicate: Header }, { propertyName: "templates", predicate: PrimeTemplate }], usesInheritance: true, ngImport: i0, template: `
|
676
|
+
<button
|
677
|
+
class="p-accordionheader"
|
678
|
+
type="button"
|
679
|
+
[disabled]="disabled"
|
680
|
+
[attr.aria-expanded]="selected"
|
681
|
+
[attr.aria-level]="headerAriaLevel"
|
682
|
+
[class.p-disabled]="disabled"
|
683
|
+
[attr.data-p-disabled]="disabled"
|
684
|
+
[attr.data-pc-section]="'accordionheader'"
|
685
|
+
(click)="toggle($event)"
|
686
|
+
(keydown)="onKeydown($event)"
|
687
|
+
[ngClass]="headerStyleClass"
|
688
|
+
[ngStyle]="headerStyle"
|
689
|
+
[attr.tabindex]="disabled ? null : 0"
|
690
|
+
[attr.id]="getTabHeaderActionId(id)"
|
691
|
+
[attr.aria-controls]="getTabContentId(id)"
|
692
|
+
>
|
693
|
+
@if (!headerTemplate && !_headerTemplate) {
|
694
|
+
{{ header }}
|
695
|
+
} @else {
|
696
|
+
@if (headerTemplate || _headerTemplate) {
|
697
|
+
<ng-container *ngTemplateOutlet="headerTemplate || _headerTemplate"></ng-container>
|
698
|
+
}
|
699
|
+
@if (headerFacet) {
|
700
|
+
<ng-content select="p-header" />
|
701
|
+
}
|
702
|
+
}
|
703
|
+
@if (iconTemplate || _iconTemplate) {
|
704
|
+
<ng-template *ngTemplateOutlet="iconTemplate || _iconTemplate; context: { $implicit: selected }"></ng-template>
|
705
|
+
} @else {
|
706
|
+
<ng-container *ngIf="selected">
|
707
|
+
<span *ngIf="accordion.collapseIcon" [class]="accordion.collapseIcon" [ngClass]="iconClass" [attr.aria-hidden]="true"></span>
|
708
|
+
<ChevronDownIcon *ngIf="!accordion.collapseIcon" [ngClass]="iconClass" [attr.aria-hidden]="true" />
|
709
|
+
</ng-container>
|
710
|
+
<ng-container *ngIf="!selected">
|
711
|
+
<span *ngIf="accordion.expandIcon" [class]="accordion.expandIcon" [ngClass]="iconClass" [attr.aria-hidden]="true"></span>
|
712
|
+
<ChevronUpIcon *ngIf="!accordion.expandIcon" [ngClass]="iconClass" [attr.aria-hidden]="true" />
|
713
|
+
</ng-container>
|
714
|
+
}
|
715
|
+
</button>
|
716
|
+
<div
|
717
|
+
[attr.id]="getTabContentId(id)"
|
718
|
+
class="p-accordioncontent"
|
719
|
+
[@tabContent]="selected ? { value: 'visible', params: { transitionParams: transitionOptions } } : { value: 'hidden', params: { transitionParams: transitionOptions } }"
|
720
|
+
role="region"
|
721
|
+
[attr.aria-hidden]="!selected"
|
722
|
+
[attr.aria-labelledby]="getTabHeaderActionId(id)"
|
723
|
+
[attr.data-pc-section]="'toggleablecontent'"
|
724
|
+
>
|
725
|
+
<div class="p-accordioncontent-content" [ngClass]="contentStyleClass" [ngStyle]="contentStyle">
|
726
|
+
<ng-content />
|
727
|
+
<ng-container *ngIf="(contentTemplate || _contentTemplate) && (cache ? loaded : selected)">
|
728
|
+
<ng-container *ngTemplateOutlet="contentTemplate || _contentTemplate"></ng-container>
|
729
|
+
</ng-container>
|
730
|
+
</div>
|
731
|
+
</div>
|
732
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: ChevronDownIcon, selector: "ChevronDownIcon" }, { kind: "component", type: ChevronUpIcon, selector: "ChevronUpIcon" }], animations: [
|
733
|
+
trigger('tabContent', [
|
734
|
+
state('hidden', style({
|
735
|
+
height: '0',
|
736
|
+
visibility: 'hidden'
|
737
|
+
})),
|
738
|
+
state('visible', style({
|
739
|
+
height: '*',
|
740
|
+
visibility: 'visible'
|
741
|
+
})),
|
742
|
+
transition('visible <=> hidden', [animate('{{transitionParams}}')]),
|
743
|
+
transition('void => *', animate(0))
|
744
|
+
])
|
745
|
+
], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
932
746
|
}
|
933
|
-
(
|
934
|
-
|
935
|
-
|
936
|
-
|
937
|
-
|
938
|
-
|
939
|
-
|
747
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: AccordionTab, decorators: [{
|
748
|
+
type: Component,
|
749
|
+
args: [{
|
750
|
+
selector: 'p-accordionTab, p-accordion-tab, p-accordiontab',
|
751
|
+
standalone: true,
|
752
|
+
imports: [CommonModule, ChevronDownIcon, ChevronUpIcon],
|
753
|
+
template: `
|
940
754
|
<button
|
941
755
|
class="p-accordionheader"
|
942
756
|
type="button"
|
@@ -994,85 +808,84 @@ class AccordionTab extends BaseComponent {
|
|
994
808
|
</div>
|
995
809
|
</div>
|
996
810
|
`,
|
997
|
-
|
998
|
-
|
999
|
-
|
1000
|
-
|
1001
|
-
|
1002
|
-
|
1003
|
-
|
1004
|
-
|
1005
|
-
|
1006
|
-
|
1007
|
-
|
1008
|
-
|
1009
|
-
|
1010
|
-
|
1011
|
-
|
1012
|
-
|
1013
|
-
|
1014
|
-
|
1015
|
-
|
1016
|
-
|
1017
|
-
|
1018
|
-
|
1019
|
-
|
1020
|
-
|
1021
|
-
|
1022
|
-
|
1023
|
-
|
1024
|
-
|
1025
|
-
|
1026
|
-
|
1027
|
-
|
1028
|
-
|
1029
|
-
|
1030
|
-
|
1031
|
-
|
1032
|
-
|
1033
|
-
|
1034
|
-
|
1035
|
-
|
1036
|
-
|
1037
|
-
|
1038
|
-
|
1039
|
-
|
1040
|
-
|
1041
|
-
|
1042
|
-
|
1043
|
-
|
1044
|
-
|
1045
|
-
|
1046
|
-
|
1047
|
-
|
1048
|
-
|
1049
|
-
|
1050
|
-
|
1051
|
-
|
1052
|
-
|
1053
|
-
|
1054
|
-
|
1055
|
-
|
1056
|
-
|
1057
|
-
|
1058
|
-
|
1059
|
-
|
1060
|
-
|
1061
|
-
|
1062
|
-
|
1063
|
-
|
1064
|
-
|
1065
|
-
|
1066
|
-
|
1067
|
-
|
1068
|
-
|
1069
|
-
|
1070
|
-
|
1071
|
-
|
1072
|
-
|
1073
|
-
|
1074
|
-
|
1075
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(AccordionTab, { className: "AccordionTab", filePath: "accordion.ts", lineNumber: 430 }); })();
|
811
|
+
animations: [
|
812
|
+
trigger('tabContent', [
|
813
|
+
state('hidden', style({
|
814
|
+
height: '0',
|
815
|
+
visibility: 'hidden'
|
816
|
+
})),
|
817
|
+
state('visible', style({
|
818
|
+
height: '*',
|
819
|
+
visibility: 'visible'
|
820
|
+
})),
|
821
|
+
transition('visible <=> hidden', [animate('{{transitionParams}}')]),
|
822
|
+
transition('void => *', animate(0))
|
823
|
+
])
|
824
|
+
],
|
825
|
+
host: {
|
826
|
+
'[class.p-accordionpanel]': 'true',
|
827
|
+
'[class.p-accordionpanel-active]': 'selected',
|
828
|
+
'[attr.data-pc-name]': '"accordiontab"'
|
829
|
+
},
|
830
|
+
providers: [AccordionStyle],
|
831
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
832
|
+
encapsulation: ViewEncapsulation.None
|
833
|
+
}]
|
834
|
+
}], propDecorators: { hostClass: [{
|
835
|
+
type: HostBinding,
|
836
|
+
args: ['class']
|
837
|
+
}], hostStyle: [{
|
838
|
+
type: HostBinding,
|
839
|
+
args: ['style']
|
840
|
+
}], id: [{
|
841
|
+
type: Input
|
842
|
+
}], header: [{
|
843
|
+
type: Input
|
844
|
+
}], headerStyle: [{
|
845
|
+
type: Input
|
846
|
+
}], tabStyle: [{
|
847
|
+
type: Input
|
848
|
+
}], contentStyle: [{
|
849
|
+
type: Input
|
850
|
+
}], tabStyleClass: [{
|
851
|
+
type: Input
|
852
|
+
}], headerStyleClass: [{
|
853
|
+
type: Input
|
854
|
+
}], contentStyleClass: [{
|
855
|
+
type: Input
|
856
|
+
}], disabled: [{
|
857
|
+
type: Input,
|
858
|
+
args: [{ transform: booleanAttribute }]
|
859
|
+
}], cache: [{
|
860
|
+
type: Input,
|
861
|
+
args: [{ transform: booleanAttribute }]
|
862
|
+
}], transitionOptions: [{
|
863
|
+
type: Input
|
864
|
+
}], iconPos: [{
|
865
|
+
type: Input
|
866
|
+
}], selected: [{
|
867
|
+
type: Input
|
868
|
+
}], headerAriaLevel: [{
|
869
|
+
type: Input,
|
870
|
+
args: [{ transform: numberAttribute }]
|
871
|
+
}], selectedChange: [{
|
872
|
+
type: Output
|
873
|
+
}], headerFacet: [{
|
874
|
+
type: ContentChildren,
|
875
|
+
args: [Header]
|
876
|
+
}], headerTemplate: [{
|
877
|
+
type: ContentChild,
|
878
|
+
args: ['header', { descendants: false }]
|
879
|
+
}], iconTemplate: [{
|
880
|
+
type: ContentChild,
|
881
|
+
args: ['icon', { descendants: false }]
|
882
|
+
}], contentTemplate: [{
|
883
|
+
type: ContentChild,
|
884
|
+
args: ['content', { descendants: false }]
|
885
|
+
}], templates: [{
|
886
|
+
type: ContentChildren,
|
887
|
+
args: [PrimeTemplate]
|
888
|
+
}] } });
|
1076
889
|
/**
|
1077
890
|
* Accordion groups a collection of contents in tabs.
|
1078
891
|
* @group Components
|
@@ -1361,84 +1174,68 @@ class Accordion extends BaseComponent {
|
|
1361
1174
|
}
|
1362
1175
|
super.ngOnDestroy();
|
1363
1176
|
}
|
1364
|
-
static ɵfac =
|
1365
|
-
static ɵcmp =
|
1366
|
-
i0.ɵɵcontentQuery(dirIndex, AccordionTab, 5);
|
1367
|
-
} if (rf & 2) {
|
1368
|
-
let _t;
|
1369
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tabList = _t);
|
1370
|
-
} }, hostVars: 8, hostBindings: function Accordion_HostBindings(rf, ctx) { if (rf & 1) {
|
1371
|
-
i0.ɵɵlistener("keydown", function Accordion_keydown_HostBindingHandler($event) { return ctx.onKeydown($event); });
|
1372
|
-
} if (rf & 2) {
|
1373
|
-
i0.ɵɵstyleMap(ctx.hostStyle);
|
1374
|
-
i0.ɵɵclassMap(ctx.hostClass);
|
1375
|
-
i0.ɵɵclassProp("p-accordion", true)("p-component", true);
|
1376
|
-
} }, inputs: { value: [1, "value"], multiple: [1, "multiple"], style: "style", styleClass: "styleClass", expandIcon: "expandIcon", collapseIcon: "collapseIcon", selectOnFocus: [1, "selectOnFocus"], transitionOptions: "transitionOptions", activeIndex: "activeIndex", headerAriaLevel: "headerAriaLevel" }, outputs: { value: "valueChange", activeIndexChange: "activeIndexChange", onClose: "onClose", onOpen: "onOpen" }, features: [i0.ɵɵProvidersFeature([AccordionStyle]), i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0, decls: 1, vars: 0, template: function Accordion_Template(rf, ctx) { if (rf & 1) {
|
1377
|
-
i0.ɵɵprojectionDef();
|
1378
|
-
i0.ɵɵprojection(0);
|
1379
|
-
} }, dependencies: [CommonModule, SharedModule], encapsulation: 2, changeDetection: 0 });
|
1177
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: Accordion, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
1178
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.1.7", type: Accordion, isStandalone: true, selector: "p-accordion", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, style: { classPropertyName: "style", publicName: "style", isSignal: false, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: false, isRequired: false, transformFunction: null }, expandIcon: { classPropertyName: "expandIcon", publicName: "expandIcon", isSignal: false, isRequired: false, transformFunction: null }, collapseIcon: { classPropertyName: "collapseIcon", publicName: "collapseIcon", isSignal: false, isRequired: false, transformFunction: null }, selectOnFocus: { classPropertyName: "selectOnFocus", publicName: "selectOnFocus", isSignal: true, isRequired: false, transformFunction: null }, transitionOptions: { classPropertyName: "transitionOptions", publicName: "transitionOptions", isSignal: false, isRequired: false, transformFunction: null }, activeIndex: { classPropertyName: "activeIndex", publicName: "activeIndex", isSignal: false, isRequired: false, transformFunction: null }, headerAriaLevel: { classPropertyName: "headerAriaLevel", publicName: "headerAriaLevel", isSignal: false, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", activeIndexChange: "activeIndexChange", onClose: "onClose", onOpen: "onOpen" }, host: { listeners: { "keydown": "onKeydown($event)" }, properties: { "class.p-accordion": "true", "class.p-component": "true", "class": "this.hostClass", "style": "this.hostStyle" } }, providers: [AccordionStyle], queries: [{ propertyName: "tabList", predicate: AccordionTab, descendants: true }], usesInheritance: true, ngImport: i0, template: ` <ng-content /> `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: SharedModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
1380
1179
|
}
|
1381
|
-
(
|
1382
|
-
|
1383
|
-
|
1384
|
-
|
1385
|
-
|
1386
|
-
|
1387
|
-
|
1388
|
-
|
1389
|
-
|
1390
|
-
|
1391
|
-
|
1392
|
-
|
1393
|
-
|
1394
|
-
|
1395
|
-
|
1396
|
-
|
1397
|
-
|
1398
|
-
|
1399
|
-
|
1400
|
-
|
1401
|
-
|
1402
|
-
|
1403
|
-
|
1404
|
-
|
1405
|
-
|
1406
|
-
|
1407
|
-
|
1408
|
-
|
1409
|
-
|
1410
|
-
|
1411
|
-
|
1412
|
-
|
1413
|
-
|
1414
|
-
|
1415
|
-
|
1416
|
-
|
1417
|
-
|
1418
|
-
|
1419
|
-
|
1420
|
-
|
1421
|
-
|
1422
|
-
|
1423
|
-
|
1424
|
-
|
1425
|
-
|
1426
|
-
|
1427
|
-
|
1428
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(Accordion, { className: "Accordion", filePath: "accordion.ts", lineNumber: 682 }); })();
|
1180
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: Accordion, decorators: [{
|
1181
|
+
type: Component,
|
1182
|
+
args: [{
|
1183
|
+
selector: 'p-accordion',
|
1184
|
+
standalone: true,
|
1185
|
+
imports: [CommonModule, SharedModule],
|
1186
|
+
template: ` <ng-content /> `,
|
1187
|
+
host: {
|
1188
|
+
'[class.p-accordion]': 'true',
|
1189
|
+
'[class.p-component]': 'true'
|
1190
|
+
},
|
1191
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
1192
|
+
providers: [AccordionStyle]
|
1193
|
+
}]
|
1194
|
+
}], propDecorators: { hostClass: [{
|
1195
|
+
type: HostBinding,
|
1196
|
+
args: ['class']
|
1197
|
+
}], hostStyle: [{
|
1198
|
+
type: HostBinding,
|
1199
|
+
args: ['style']
|
1200
|
+
}], style: [{
|
1201
|
+
type: Input
|
1202
|
+
}], styleClass: [{
|
1203
|
+
type: Input
|
1204
|
+
}], expandIcon: [{
|
1205
|
+
type: Input
|
1206
|
+
}], collapseIcon: [{
|
1207
|
+
type: Input
|
1208
|
+
}], transitionOptions: [{
|
1209
|
+
type: Input
|
1210
|
+
}], activeIndexChange: [{
|
1211
|
+
type: Output
|
1212
|
+
}], onClose: [{
|
1213
|
+
type: Output
|
1214
|
+
}], onOpen: [{
|
1215
|
+
type: Output
|
1216
|
+
}], tabList: [{
|
1217
|
+
type: ContentChildren,
|
1218
|
+
args: [AccordionTab, { descendants: true }]
|
1219
|
+
}], activeIndex: [{
|
1220
|
+
type: Input
|
1221
|
+
}], headerAriaLevel: [{
|
1222
|
+
type: Input
|
1223
|
+
}], onKeydown: [{
|
1224
|
+
type: HostListener,
|
1225
|
+
args: ['keydown', ['$event']]
|
1226
|
+
}] } });
|
1429
1227
|
class AccordionModule {
|
1430
|
-
static ɵfac =
|
1431
|
-
static ɵmod =
|
1432
|
-
static ɵinj =
|
1228
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: AccordionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
1229
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.7", ngImport: i0, type: AccordionModule, imports: [Accordion, AccordionTab, SharedModule, AccordionPanel, AccordionHeader, AccordionContent], exports: [Accordion, AccordionTab, SharedModule, AccordionPanel, AccordionHeader, AccordionContent] });
|
1230
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: AccordionModule, imports: [Accordion, AccordionTab, SharedModule, AccordionPanel, AccordionHeader, AccordionContent, SharedModule] });
|
1433
1231
|
}
|
1434
|
-
(
|
1435
|
-
|
1436
|
-
|
1437
|
-
|
1438
|
-
|
1439
|
-
|
1440
|
-
|
1441
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(AccordionModule, { imports: [Accordion, AccordionTab, SharedModule, AccordionPanel, AccordionHeader, AccordionContent], exports: [Accordion, AccordionTab, SharedModule, AccordionPanel, AccordionHeader, AccordionContent] }); })();
|
1232
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: AccordionModule, decorators: [{
|
1233
|
+
type: NgModule,
|
1234
|
+
args: [{
|
1235
|
+
imports: [Accordion, AccordionTab, SharedModule, AccordionPanel, AccordionHeader, AccordionContent],
|
1236
|
+
exports: [Accordion, AccordionTab, SharedModule, AccordionPanel, AccordionHeader, AccordionContent]
|
1237
|
+
}]
|
1238
|
+
}] });
|
1442
1239
|
|
1443
1240
|
/**
|
1444
1241
|
* Generated bundle index. Do not edit.
|