@exhaustive-ui/core 3.0.0-alpha.0 → 22.0.0-alpha.0
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/fesm2022/exhaustive-ui-core-accordion.mjs +51 -78
- package/fesm2022/exhaustive-ui-core-accordion.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-animateonscroll.mjs +72 -73
- package/fesm2022/exhaustive-ui-core-animateonscroll.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-api.mjs +10 -17
- package/fesm2022/exhaustive-ui-core-api.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-autocomplete.mjs +786 -928
- package/fesm2022/exhaustive-ui-core-autocomplete.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-autofocus.mjs +21 -31
- package/fesm2022/exhaustive-ui-core-autofocus.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-avatar.mjs +47 -63
- package/fesm2022/exhaustive-ui-core-avatar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-badge.mjs +88 -115
- package/fesm2022/exhaustive-ui-core-badge.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-blockui.mjs +58 -91
- package/fesm2022/exhaustive-ui-core-blockui.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-breadcrumb.mjs +155 -169
- package/fesm2022/exhaustive-ui-core-breadcrumb.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-button.mjs +280 -385
- package/fesm2022/exhaustive-ui-core-button.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-carousel.mjs +561 -599
- package/fesm2022/exhaustive-ui-core-carousel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-cascadeselect.mjs +388 -507
- package/fesm2022/exhaustive-ui-core-cascadeselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-chart.mjs +75 -91
- package/fesm2022/exhaustive-ui-core-chart.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-checkbox.mjs +109 -160
- package/fesm2022/exhaustive-ui-core-checkbox.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-chip.mjs +98 -137
- package/fesm2022/exhaustive-ui-core-chip.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-colorpicker.mjs +123 -190
- package/fesm2022/exhaustive-ui-core-colorpicker.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-confirmdialog.mjs +227 -394
- package/fesm2022/exhaustive-ui-core-confirmdialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-confirmpopup.mjs +255 -266
- package/fesm2022/exhaustive-ui-core-confirmpopup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-contextmenu.mjs +585 -653
- package/fesm2022/exhaustive-ui-core-contextmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dataview.mjs +225 -272
- package/fesm2022/exhaustive-ui-core-dataview.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-datepicker.mjs +1792 -1787
- package/fesm2022/exhaustive-ui-core-datepicker.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dialog.mjs +480 -577
- package/fesm2022/exhaustive-ui-core-dialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dock.mjs +87 -115
- package/fesm2022/exhaustive-ui-core-dock.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dragdrop.mjs +98 -105
- package/fesm2022/exhaustive-ui-core-dragdrop.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-drawer.mjs +174 -235
- package/fesm2022/exhaustive-ui-core-drawer.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs +42 -280
- package/fesm2022/exhaustive-ui-core-dynamicdialog.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-editor.mjs +109 -121
- package/fesm2022/exhaustive-ui-core-editor.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-fieldset.mjs +90 -132
- package/fesm2022/exhaustive-ui-core-fieldset.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-fileupload.mjs +774 -745
- package/fesm2022/exhaustive-ui-core-fileupload.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-floatlabel.mjs +13 -16
- package/fesm2022/exhaustive-ui-core-floatlabel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-focustrap.mjs +44 -40
- package/fesm2022/exhaustive-ui-core-focustrap.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-galleria.mjs +642 -853
- package/fesm2022/exhaustive-ui-core-galleria.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-iconfield.mjs +15 -27
- package/fesm2022/exhaustive-ui-core-iconfield.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angledoubledown.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angledoubledown.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angledoubleleft.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angledoubleleft.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angledoubleright.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angledoubleright.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angledoubleup.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angledoubleup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angledown.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angledown.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angleleft.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angleleft.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angleright.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angleright.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-angleup.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-angleup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-arrowdown.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-arrowdown.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-arrowdownleft.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-arrowdownleft.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-arrowdownright.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-arrowdownright.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-arrowleft.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-arrowleft.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-arrowright.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-arrowright.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-arrowup.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-arrowup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-ban.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-ban.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-bars.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-bars.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-baseicon.mjs +8 -13
- package/fesm2022/exhaustive-ui-core-icons-baseicon.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-blank.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-blank.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-calendar.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-calendar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-caretleft.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-caretleft.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-caretright.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-caretright.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-check.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-check.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-chevrondown.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-chevrondown.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-chevronleft.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-chevronleft.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-chevronright.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-chevronright.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-chevronup.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-chevronup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-exclamationtriangle.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-exclamationtriangle.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-eye.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-eye.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-eyeslash.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-eyeslash.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-filter.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-filter.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-filterfill.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-filterfill.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-filterslash.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-filterslash.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-home.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-home.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-infocircle.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-infocircle.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-minus.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-minus.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-pencil.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-pencil.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-plus.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-plus.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-refresh.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-refresh.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-search.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-search.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-searchminus.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-searchminus.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-searchplus.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-searchplus.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-sortalt.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-sortalt.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-sortamountdown.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-sortamountdown.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-sortamountupalt.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-sortamountupalt.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-spinner.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-spinner.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-star.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-star.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-starfill.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-starfill.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-thlarge.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-thlarge.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-times.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-times.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-timescircle.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-timescircle.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-trash.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-trash.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-undo.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-undo.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-upload.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-upload.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-windowmaximize.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-windowmaximize.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-icons-windowminimize.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-icons-windowminimize.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-image.mjs +209 -251
- package/fesm2022/exhaustive-ui-core-image.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-imagecompare.mjs +39 -48
- package/fesm2022/exhaustive-ui-core-imagecompare.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inplace.mjs +68 -102
- package/fesm2022/exhaustive-ui-core-inplace.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputgroup.mjs +10 -20
- package/fesm2022/exhaustive-ui-core-inputgroup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputgroupaddon.mjs +15 -24
- package/fesm2022/exhaustive-ui-core-inputgroupaddon.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputicon.mjs +11 -22
- package/fesm2022/exhaustive-ui-core-inputicon.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputmask.mjs +423 -392
- package/fesm2022/exhaustive-ui-core-inputmask.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputnumber.mjs +397 -469
- package/fesm2022/exhaustive-ui-core-inputnumber.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputotp.mjs +75 -95
- package/fesm2022/exhaustive-ui-core-inputotp.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-inputtext.mjs +27 -36
- package/fesm2022/exhaustive-ui-core-inputtext.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-keyfilter.mjs +29 -46
- package/fesm2022/exhaustive-ui-core-keyfilter.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-knob.mjs +140 -187
- package/fesm2022/exhaustive-ui-core-knob.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-listbox.mjs +591 -728
- package/fesm2022/exhaustive-ui-core-listbox.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-megamenu.mjs +324 -375
- package/fesm2022/exhaustive-ui-core-megamenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-menu.mjs +298 -348
- package/fesm2022/exhaustive-ui-core-menu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-menubar.mjs +277 -372
- package/fesm2022/exhaustive-ui-core-menubar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-metergroup.mjs +138 -166
- package/fesm2022/exhaustive-ui-core-metergroup.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-motion.mjs +2 -2
- package/fesm2022/exhaustive-ui-core-motion.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-multiselect.mjs +945 -1045
- package/fesm2022/exhaustive-ui-core-multiselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-orderlist.mjs +337 -409
- package/fesm2022/exhaustive-ui-core-orderlist.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-organizationchart.mjs +114 -175
- package/fesm2022/exhaustive-ui-core-organizationchart.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-overlaybadge.mjs +22 -47
- package/fesm2022/exhaustive-ui-core-overlaybadge.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-paginator.mjs +232 -320
- package/fesm2022/exhaustive-ui-core-paginator.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-panel.mjs +114 -174
- package/fesm2022/exhaustive-ui-core-panel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-panelmenu.mjs +171 -282
- package/fesm2022/exhaustive-ui-core-panelmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-password.mjs +317 -377
- package/fesm2022/exhaustive-ui-core-password.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-picklist.mjs +861 -879
- package/fesm2022/exhaustive-ui-core-picklist.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-popover.mjs +154 -181
- package/fesm2022/exhaustive-ui-core-popover.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-rating.mjs +87 -119
- package/fesm2022/exhaustive-ui-core-rating.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-scroller.mjs +465 -596
- package/fesm2022/exhaustive-ui-core-scroller.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-scrollpanel.mjs +147 -155
- package/fesm2022/exhaustive-ui-core-scrollpanel.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-scrolltop.mjs +81 -115
- package/fesm2022/exhaustive-ui-core-scrolltop.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-select.mjs +837 -986
- package/fesm2022/exhaustive-ui-core-select.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-selectbutton.mjs +84 -120
- package/fesm2022/exhaustive-ui-core-selectbutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-slider.mjs +322 -352
- package/fesm2022/exhaustive-ui-core-slider.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-speeddial.mjs +209 -268
- package/fesm2022/exhaustive-ui-core-speeddial.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-splitbutton.mjs +153 -249
- package/fesm2022/exhaustive-ui-core-splitbutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-splitter.mjs +221 -237
- package/fesm2022/exhaustive-ui-core-splitter.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-steps.mjs +56 -72
- package/fesm2022/exhaustive-ui-core-steps.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-styleclass.mjs +145 -146
- package/fesm2022/exhaustive-ui-core-styleclass.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-table.mjs +2435 -2721
- package/fesm2022/exhaustive-ui-core-table.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-terminal.mjs +50 -67
- package/fesm2022/exhaustive-ui-core-terminal.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-textarea.mjs +23 -36
- package/fesm2022/exhaustive-ui-core-textarea.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tieredmenu.mjs +604 -690
- package/fesm2022/exhaustive-ui-core-tieredmenu.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-timeline.mjs +56 -74
- package/fesm2022/exhaustive-ui-core-timeline.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-togglebutton.mjs +86 -129
- package/fesm2022/exhaustive-ui-core-togglebutton.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-toggleswitch.mjs +57 -94
- package/fesm2022/exhaustive-ui-core-toggleswitch.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-toolbar.mjs +36 -55
- package/fesm2022/exhaustive-ui-core-toolbar.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tooltip.mjs +264 -343
- package/fesm2022/exhaustive-ui-core-tooltip.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-tree.mjs +508 -639
- package/fesm2022/exhaustive-ui-core-tree.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-treeselect.mjs +333 -423
- package/fesm2022/exhaustive-ui-core-treeselect.mjs.map +1 -1
- package/fesm2022/exhaustive-ui-core-treetable.mjs +1267 -1473
- package/fesm2022/exhaustive-ui-core-treetable.mjs.map +1 -1
- package/package.json +11 -11
- package/schematics/migrations/remove-dead-inputs/migration.js +213 -7
- package/schematics/migrations/renamed-inputs/migration.js +97 -0
- package/schematics/migrations/styleclass-to-class/migration.js +92 -1
- package/schematics/migrations.json +11 -6
- package/schematics/utils/removed-inputs.js +0 -0
- package/schematics/utils/renamed-inputs.js +175 -0
- package/schematics/utils/styleclass.js +24 -8
- package/schematics/utils/versions.json +8 -8
- package/types/exhaustive-ui-core-accordion.d.ts +8 -24
- package/types/exhaustive-ui-core-animateonscroll.d.ts +19 -21
- package/types/exhaustive-ui-core-api.d.ts +2 -3
- package/types/exhaustive-ui-core-autocomplete.d.ts +103 -176
- package/types/exhaustive-ui-core-autofocus.d.ts +4 -7
- package/types/exhaustive-ui-core-avatar.d.ts +18 -25
- package/types/exhaustive-ui-core-badge.d.ts +13 -27
- package/types/exhaustive-ui-core-blockui.d.ts +18 -30
- package/types/exhaustive-ui-core-breadcrumb.d.ts +21 -22
- package/types/exhaustive-ui-core-button.d.ts +57 -89
- package/types/exhaustive-ui-core-carousel.d.ts +56 -82
- package/types/exhaustive-ui-core-cascadeselect.d.ts +77 -111
- package/types/exhaustive-ui-core-chart.d.ts +21 -29
- package/types/exhaustive-ui-core-checkbox.d.ts +25 -39
- package/types/exhaustive-ui-core-chip.d.ts +31 -38
- package/types/exhaustive-ui-core-colorpicker.d.ts +23 -57
- package/types/exhaustive-ui-core-confirmdialog.d.ts +39 -109
- package/types/exhaustive-ui-core-confirmpopup.d.ts +24 -43
- package/types/exhaustive-ui-core-contextmenu.d.ts +54 -71
- package/types/exhaustive-ui-core-dataview.d.ts +42 -65
- package/types/exhaustive-ui-core-datepicker.d.ts +109 -191
- package/types/exhaustive-ui-core-dialog.d.ts +73 -123
- package/types/exhaustive-ui-core-dock.d.ts +16 -25
- package/types/exhaustive-ui-core-dragdrop.d.ts +32 -36
- package/types/exhaustive-ui-core-drawer.d.ts +32 -64
- package/types/exhaustive-ui-core-dynamicdialog.d.ts +9 -54
- package/types/exhaustive-ui-core-editor.d.ts +15 -25
- package/types/exhaustive-ui-core-fieldset.d.ts +15 -35
- package/types/exhaustive-ui-core-fileupload.d.ts +69 -95
- package/types/exhaustive-ui-core-floatlabel.d.ts +4 -6
- package/types/exhaustive-ui-core-focustrap.d.ts +5 -10
- package/types/exhaustive-ui-core-galleria.d.ts +124 -194
- package/types/exhaustive-ui-core-iconfield.d.ts +5 -13
- package/types/exhaustive-ui-core-icons-baseicon.d.ts +4 -5
- package/types/exhaustive-ui-core-image.d.ts +35 -68
- package/types/exhaustive-ui-core-imagecompare.d.ts +19 -20
- package/types/exhaustive-ui-core-inplace.d.ts +30 -42
- package/types/exhaustive-ui-core-inputgroup.d.ts +2 -9
- package/types/exhaustive-ui-core-inputgroupaddon.d.ts +6 -10
- package/types/exhaustive-ui-core-inputicon.d.ts +4 -11
- package/types/exhaustive-ui-core-inputmask.d.ts +53 -66
- package/types/exhaustive-ui-core-inputnumber.d.ts +62 -84
- package/types/exhaustive-ui-core-inputotp.d.ts +16 -20
- package/types/exhaustive-ui-core-inputtext.d.ts +5 -8
- package/types/exhaustive-ui-core-keyfilter.d.ts +11 -15
- package/types/exhaustive-ui-core-knob.d.ts +45 -60
- package/types/exhaustive-ui-core-listbox.d.ts +90 -126
- package/types/exhaustive-ui-core-megamenu.d.ts +45 -66
- package/types/exhaustive-ui-core-menu.d.ts +33 -53
- package/types/exhaustive-ui-core-menubar.d.ts +38 -85
- package/types/exhaustive-ui-core-metergroup.d.ts +39 -48
- package/types/exhaustive-ui-core-multiselect.d.ts +166 -219
- package/types/exhaustive-ui-core-orderlist.d.ts +58 -81
- package/types/exhaustive-ui-core-organizationchart.d.ts +32 -67
- package/types/exhaustive-ui-core-overlaybadge.d.ts +10 -20
- package/types/exhaustive-ui-core-paginator.d.ts +41 -69
- package/types/exhaustive-ui-core-panel.d.ts +18 -45
- package/types/exhaustive-ui-core-panelmenu.d.ts +31 -76
- package/types/exhaustive-ui-core-password.d.ts +56 -93
- package/types/exhaustive-ui-core-picklist.d.ts +107 -121
- package/types/exhaustive-ui-core-popover.d.ts +23 -47
- package/types/exhaustive-ui-core-rating.d.ts +18 -26
- package/types/exhaustive-ui-core-scroller.d.ts +90 -120
- package/types/exhaustive-ui-core-scrollpanel.d.ts +35 -46
- package/types/exhaustive-ui-core-scrolltop.d.ts +28 -45
- package/types/exhaustive-ui-core-select.d.ts +137 -188
- package/types/exhaustive-ui-core-selectbutton.d.ts +35 -44
- package/types/exhaustive-ui-core-slider.d.ts +52 -67
- package/types/exhaustive-ui-core-speeddial.d.ts +40 -56
- package/types/exhaustive-ui-core-splitbutton.d.ts +31 -71
- package/types/exhaustive-ui-core-splitter.d.ts +47 -59
- package/types/exhaustive-ui-core-steps.d.ts +24 -31
- package/types/exhaustive-ui-core-styleclass.d.ts +27 -33
- package/types/exhaustive-ui-core-table.d.ts +349 -453
- package/types/exhaustive-ui-core-terminal.d.ts +10 -22
- package/types/exhaustive-ui-core-textarea.d.ts +7 -10
- package/types/exhaustive-ui-core-tieredmenu.d.ts +49 -84
- package/types/exhaustive-ui-core-timeline.d.ts +20 -28
- package/types/exhaustive-ui-core-togglebutton.d.ts +32 -48
- package/types/exhaustive-ui-core-toggleswitch.d.ts +26 -37
- package/types/exhaustive-ui-core-toolbar.d.ts +17 -25
- package/types/exhaustive-ui-core-tooltip.d.ts +53 -88
- package/types/exhaustive-ui-core-tree.d.ts +82 -119
- package/types/exhaustive-ui-core-treeselect.d.ts +63 -92
- package/types/exhaustive-ui-core-treetable.d.ts +203 -280
- package/types/exhaustive-ui-core-types-chip.d.ts +1 -1
|
@@ -2,7 +2,7 @@ export * from '@exhaustive-ui/core/types/popover';
|
|
|
2
2
|
import * as i2 from '@angular/common';
|
|
3
3
|
import { isPlatformBrowser, CommonModule } from '@angular/common';
|
|
4
4
|
import * as i0 from '@angular/core';
|
|
5
|
-
import { Injectable,
|
|
5
|
+
import { Injectable, inject, afterEveryRender, input, booleanAttribute, numberAttribute, computed, output, signal, contentChild, contentChildren, NgZone, HostListener, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
|
6
6
|
import { $dt } from '@exhaustive-ui/styled';
|
|
7
7
|
import { isIOS, appendChild, absolutePosition, getOffset, addClass, findSingle, isTouchDevice } from '@exhaustive-ui/utils';
|
|
8
8
|
import { PrimeTemplate, OverlayService, SharedModule } from '@exhaustive-ui/core/api';
|
|
@@ -35,43 +35,46 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
35
35
|
type: Injectable
|
|
36
36
|
}] });
|
|
37
37
|
|
|
38
|
-
const POPOVER_INSTANCE = new InjectionToken('POPOVER_INSTANCE');
|
|
39
38
|
/**
|
|
40
39
|
* Popover is a container component that can overlay other components on page.
|
|
41
40
|
* @group Components
|
|
42
41
|
*/
|
|
43
42
|
class Popover extends BaseComponent {
|
|
44
43
|
componentName = 'Popover';
|
|
45
|
-
$pcPopover = inject(POPOVER_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;
|
|
46
44
|
bindDirectiveInstance = inject(Bind, { self: true });
|
|
47
|
-
|
|
48
|
-
|
|
45
|
+
constructor() {
|
|
46
|
+
super();
|
|
47
|
+
afterEveryRender(() => this.bindDirectiveInstance.setAttrs(this.ptm('host')));
|
|
49
48
|
}
|
|
50
49
|
/**
|
|
51
50
|
* Defines a string that labels the input for accessibility.
|
|
52
51
|
* @group Props
|
|
53
52
|
*/
|
|
54
|
-
ariaLabel
|
|
53
|
+
ariaLabel = input(undefined, /* @ts-ignore */
|
|
54
|
+
...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
55
55
|
/**
|
|
56
56
|
* Establishes relationships between the component and label(s) where its value should be one or more element IDs.
|
|
57
57
|
* @group Props
|
|
58
58
|
*/
|
|
59
|
-
ariaLabelledBy
|
|
59
|
+
ariaLabelledBy = input(undefined, /* @ts-ignore */
|
|
60
|
+
...(ngDevMode ? [{ debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []));
|
|
60
61
|
/**
|
|
61
62
|
* Enables to hide the overlay when outside is clicked.
|
|
62
63
|
* @group Props
|
|
63
64
|
*/
|
|
64
|
-
dismissable = true;
|
|
65
|
+
dismissable = input(true, { ...(ngDevMode ? { debugName: "dismissable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
65
66
|
/**
|
|
66
67
|
* Inline style of the component.
|
|
67
68
|
* @group Props
|
|
68
69
|
*/
|
|
69
|
-
style
|
|
70
|
+
style = input(undefined, /* @ts-ignore */
|
|
71
|
+
...(ngDevMode ? [{ debugName: "style" }] : /* istanbul ignore next */ []));
|
|
70
72
|
/**
|
|
71
73
|
* Style class of the component.
|
|
72
74
|
* @group Props
|
|
73
75
|
*/
|
|
74
|
-
styleClass
|
|
76
|
+
styleClass = input(undefined, /* @ts-ignore */
|
|
77
|
+
...(ngDevMode ? [{ debugName: "styleClass" }] : /* istanbul ignore next */ []));
|
|
75
78
|
/**
|
|
76
79
|
* 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).
|
|
77
80
|
* @defaultValue 'self'
|
|
@@ -83,34 +86,17 @@ class Popover extends BaseComponent {
|
|
|
83
86
|
* Whether to automatically manage layering.
|
|
84
87
|
* @group Props
|
|
85
88
|
*/
|
|
86
|
-
autoZIndex = true;
|
|
87
|
-
/**
|
|
88
|
-
* Aria label of the close icon.
|
|
89
|
-
* @group Props
|
|
90
|
-
*/
|
|
91
|
-
ariaCloseLabel;
|
|
89
|
+
autoZIndex = input(true, { ...(ngDevMode ? { debugName: "autoZIndex" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
92
90
|
/**
|
|
93
91
|
* Base zIndex value to use in layering.
|
|
94
92
|
* @group Props
|
|
95
93
|
*/
|
|
96
|
-
baseZIndex = 0;
|
|
94
|
+
baseZIndex = input(0, { ...(ngDevMode ? { debugName: "baseZIndex" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
97
95
|
/**
|
|
98
96
|
* When enabled, first button receives focus on show.
|
|
99
97
|
* @group Props
|
|
100
98
|
*/
|
|
101
|
-
focusOnShow = true;
|
|
102
|
-
/**
|
|
103
|
-
* Transition options of the show animation.
|
|
104
|
-
* @group Props
|
|
105
|
-
* @deprecated since v21.0.0. Use `motionOptions` instead.
|
|
106
|
-
*/
|
|
107
|
-
showTransitionOptions = '.12s cubic-bezier(0, 0, 0.2, 1)';
|
|
108
|
-
/**
|
|
109
|
-
* Transition options of the hide animation.
|
|
110
|
-
* @group Props
|
|
111
|
-
* @deprecated since v21.0.0. Use `motionOptions` instead.
|
|
112
|
-
*/
|
|
113
|
-
hideTransitionOptions = '.1s linear';
|
|
99
|
+
focusOnShow = input(true, { ...(ngDevMode ? { debugName: "focusOnShow" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
114
100
|
/**
|
|
115
101
|
* The motion options.
|
|
116
102
|
* @group Props
|
|
@@ -136,15 +122,22 @@ class Popover extends BaseComponent {
|
|
|
136
122
|
onHide = output();
|
|
137
123
|
$appendTo = computed(() => this.appendTo() || this.config.overlayAppendTo(), /* @ts-ignore */
|
|
138
124
|
...(ngDevMode ? [{ debugName: "$appendTo" }] : /* istanbul ignore next */ []));
|
|
139
|
-
container
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
125
|
+
container = signal(undefined, /* @ts-ignore */
|
|
126
|
+
...(ngDevMode ? [{ debugName: "container" }] : /* istanbul ignore next */ []));
|
|
127
|
+
overlayVisible = signal(false, /* @ts-ignore */
|
|
128
|
+
...(ngDevMode ? [{ debugName: "overlayVisible" }] : /* istanbul ignore next */ []));
|
|
129
|
+
render = signal(false, /* @ts-ignore */
|
|
130
|
+
...(ngDevMode ? [{ debugName: "render" }] : /* istanbul ignore next */ []));
|
|
131
|
+
selfClick = signal(false, /* @ts-ignore */
|
|
132
|
+
...(ngDevMode ? [{ debugName: "selfClick" }] : /* istanbul ignore next */ []));
|
|
133
|
+
documentClickListener = signal(undefined, /* @ts-ignore */
|
|
134
|
+
...(ngDevMode ? [{ debugName: "documentClickListener" }] : /* istanbul ignore next */ []));
|
|
135
|
+
target = signal(undefined, /* @ts-ignore */
|
|
136
|
+
...(ngDevMode ? [{ debugName: "target" }] : /* istanbul ignore next */ []));
|
|
137
|
+
scrollHandler = signal(undefined, /* @ts-ignore */
|
|
138
|
+
...(ngDevMode ? [{ debugName: "scrollHandler" }] : /* istanbul ignore next */ []));
|
|
139
|
+
documentResizeListener = signal(undefined, /* @ts-ignore */
|
|
140
|
+
...(ngDevMode ? [{ debugName: "documentResizeListener" }] : /* istanbul ignore next */ []));
|
|
148
141
|
/**
|
|
149
142
|
* Custom content template.
|
|
150
143
|
* @param {PopoverContentTemplateContext} context - content context.
|
|
@@ -154,45 +147,43 @@ class Popover extends BaseComponent {
|
|
|
154
147
|
contentTemplate = contentChild('content', { ...(ngDevMode ? { debugName: "contentTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
155
148
|
templates = contentChildren(PrimeTemplate, /* @ts-ignore */
|
|
156
149
|
...(ngDevMode ? [{ debugName: "templates" }] : /* istanbul ignore next */ []));
|
|
157
|
-
_contentTemplate
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
150
|
+
_contentTemplate = computed(() => this.templates()
|
|
151
|
+
.filter((item) => item.getType() === 'content')
|
|
152
|
+
.at(-1)?.template, /* @ts-ignore */
|
|
153
|
+
...(ngDevMode ? [{ debugName: "_contentTemplate" }] : /* istanbul ignore next */ []));
|
|
154
|
+
destroyCallback = signal(undefined, /* @ts-ignore */
|
|
155
|
+
...(ngDevMode ? [{ debugName: "destroyCallback" }] : /* istanbul ignore next */ []));
|
|
156
|
+
overlayEventListener = signal(undefined, /* @ts-ignore */
|
|
157
|
+
...(ngDevMode ? [{ debugName: "overlayEventListener" }] : /* istanbul ignore next */ []));
|
|
158
|
+
overlaySubscription = signal(undefined, /* @ts-ignore */
|
|
159
|
+
...(ngDevMode ? [{ debugName: "overlaySubscription" }] : /* istanbul ignore next */ []));
|
|
161
160
|
_componentStyle = inject(PopoverStyle);
|
|
162
161
|
zone = inject(NgZone);
|
|
163
162
|
overlayService = inject(OverlayService);
|
|
164
|
-
onAfterContentInit() {
|
|
165
|
-
this.templates().forEach((item) => {
|
|
166
|
-
switch (item.getType()) {
|
|
167
|
-
case 'content':
|
|
168
|
-
this._contentTemplate = item.template;
|
|
169
|
-
break;
|
|
170
|
-
}
|
|
171
|
-
});
|
|
172
|
-
}
|
|
173
163
|
bindDocumentClickListener() {
|
|
174
164
|
if (isPlatformBrowser(this.platformId)) {
|
|
175
|
-
if (!this.documentClickListener) {
|
|
165
|
+
if (!this.documentClickListener()) {
|
|
176
166
|
let documentEvent = isIOS() ? 'touchstart' : 'click';
|
|
177
167
|
const documentTarget = this.el ? this.el.nativeElement.ownerDocument : this.document;
|
|
178
|
-
this.documentClickListener
|
|
179
|
-
if (!this.dismissable) {
|
|
168
|
+
this.documentClickListener.set(this.renderer.listen(documentTarget, documentEvent, (event) => {
|
|
169
|
+
if (!this.dismissable()) {
|
|
180
170
|
return;
|
|
181
171
|
}
|
|
182
|
-
|
|
172
|
+
const target = this.target();
|
|
173
|
+
if (!this.container()?.contains(event.target) && target !== event.target && !target.contains(event.target) && !this.selfClick()) {
|
|
183
174
|
this.hide();
|
|
184
175
|
}
|
|
185
|
-
this.selfClick
|
|
186
|
-
|
|
187
|
-
});
|
|
176
|
+
this.selfClick.set(false);
|
|
177
|
+
}));
|
|
188
178
|
}
|
|
189
179
|
}
|
|
190
180
|
}
|
|
191
181
|
unbindDocumentClickListener() {
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
this.
|
|
182
|
+
const documentClickListener = this.documentClickListener();
|
|
183
|
+
if (documentClickListener) {
|
|
184
|
+
documentClickListener();
|
|
185
|
+
this.documentClickListener.set(null);
|
|
186
|
+
this.selfClick.set(false);
|
|
196
187
|
}
|
|
197
188
|
}
|
|
198
189
|
/**
|
|
@@ -202,11 +193,11 @@ class Popover extends BaseComponent {
|
|
|
202
193
|
* @group Method
|
|
203
194
|
*/
|
|
204
195
|
toggle(event, target) {
|
|
205
|
-
if (this.overlayVisible) {
|
|
196
|
+
if (this.overlayVisible()) {
|
|
206
197
|
if (this.hasTargetChanged(event, target)) {
|
|
207
|
-
this.destroyCallback
|
|
198
|
+
this.destroyCallback.set(() => {
|
|
208
199
|
this.show(null, target || event.currentTarget || event.target);
|
|
209
|
-
};
|
|
200
|
+
});
|
|
210
201
|
}
|
|
211
202
|
this.hide();
|
|
212
203
|
}
|
|
@@ -223,105 +214,111 @@ class Popover extends BaseComponent {
|
|
|
223
214
|
show(event, target) {
|
|
224
215
|
target && event && event.stopPropagation();
|
|
225
216
|
// Clear container if it exists from previous show
|
|
226
|
-
if (this.container && !this.overlayVisible) {
|
|
227
|
-
this.container
|
|
217
|
+
if (this.container() && !this.overlayVisible()) {
|
|
218
|
+
this.container.set(null);
|
|
228
219
|
}
|
|
229
|
-
this.target
|
|
230
|
-
this.overlayVisible
|
|
231
|
-
this.render
|
|
232
|
-
this.cd.markForCheck();
|
|
220
|
+
this.target.set(target || event.currentTarget || event.target);
|
|
221
|
+
this.overlayVisible.set(true);
|
|
222
|
+
this.render.set(true);
|
|
233
223
|
}
|
|
234
224
|
onOverlayClick(event) {
|
|
235
225
|
this.overlayService.add({
|
|
236
226
|
originalEvent: event,
|
|
237
227
|
target: this.el.nativeElement
|
|
238
228
|
});
|
|
239
|
-
this.selfClick
|
|
229
|
+
this.selfClick.set(true);
|
|
240
230
|
}
|
|
241
231
|
onContentClick(event) {
|
|
242
232
|
const targetElement = event.target;
|
|
243
|
-
this.selfClick
|
|
233
|
+
this.selfClick.set(event.offsetX < targetElement.clientWidth && event.offsetY < targetElement.clientHeight);
|
|
244
234
|
}
|
|
245
235
|
hasTargetChanged(event, target) {
|
|
246
|
-
return this.target != null && this.target !== (target || event.currentTarget || event.target);
|
|
236
|
+
return this.target() != null && this.target() !== (target || event.currentTarget || event.target);
|
|
247
237
|
}
|
|
248
238
|
appendOverlay() {
|
|
249
239
|
if (this.$appendTo() && this.$appendTo() !== 'self') {
|
|
250
240
|
if (this.$appendTo() === 'body') {
|
|
251
|
-
appendChild(this.document.body, this.container);
|
|
241
|
+
appendChild(this.document.body, this.container());
|
|
252
242
|
}
|
|
253
243
|
else {
|
|
254
|
-
appendChild(this.$appendTo(), this.container);
|
|
244
|
+
appendChild(this.$appendTo(), this.container());
|
|
255
245
|
}
|
|
256
246
|
}
|
|
257
247
|
}
|
|
258
248
|
restoreAppend() {
|
|
259
|
-
|
|
260
|
-
|
|
249
|
+
const container = this.container();
|
|
250
|
+
if (container && this.$appendTo() && this.$appendTo() !== 'self') {
|
|
251
|
+
appendChild(this.el.nativeElement, container);
|
|
261
252
|
}
|
|
262
253
|
}
|
|
263
254
|
setZIndex() {
|
|
264
|
-
if (this.autoZIndex) {
|
|
265
|
-
ZIndexUtils.set('overlay', this.container, this.baseZIndex + this.config.zIndex.overlay);
|
|
255
|
+
if (this.autoZIndex()) {
|
|
256
|
+
ZIndexUtils.set('overlay', this.container(), this.baseZIndex() + this.config.zIndex.overlay);
|
|
266
257
|
}
|
|
267
258
|
}
|
|
268
259
|
align() {
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
const
|
|
260
|
+
const container = this.container();
|
|
261
|
+
const target = this.target();
|
|
262
|
+
if (target && container) {
|
|
263
|
+
absolutePosition(container, target, false);
|
|
264
|
+
const containerOffset = getOffset(container);
|
|
265
|
+
const targetOffset = getOffset(target);
|
|
266
|
+
const borderRadius = this.document.defaultView?.getComputedStyle(container).getPropertyValue('border-radius');
|
|
274
267
|
let arrowLeft = 0;
|
|
275
268
|
if (containerOffset.left < targetOffset.left) {
|
|
276
269
|
arrowLeft = targetOffset.left - containerOffset.left - parseFloat(borderRadius) * 2;
|
|
277
270
|
}
|
|
278
|
-
|
|
271
|
+
container.style.setProperty($dt('popover.arrow.left').name, `${arrowLeft}px`);
|
|
279
272
|
if (containerOffset.top < targetOffset.top) {
|
|
280
|
-
|
|
281
|
-
!this.$unstyled() && addClass(
|
|
273
|
+
container.setAttribute('data-p-popover-flipped', 'true');
|
|
274
|
+
!this.$unstyled() && addClass(container, 'p-popover-flipped');
|
|
282
275
|
}
|
|
283
276
|
}
|
|
284
277
|
}
|
|
285
278
|
onAnimationStart(event) {
|
|
286
|
-
|
|
287
|
-
this.container
|
|
279
|
+
const container = event.element;
|
|
280
|
+
this.container.set(container);
|
|
281
|
+
container?.setAttribute(this.$attrSelector, '');
|
|
288
282
|
this.appendOverlay();
|
|
289
283
|
this.align();
|
|
290
284
|
this.setZIndex();
|
|
291
285
|
this.bindDocumentClickListener();
|
|
292
286
|
this.bindDocumentResizeListener();
|
|
293
287
|
this.bindScrollListener();
|
|
294
|
-
if (this.focusOnShow) {
|
|
288
|
+
if (this.focusOnShow()) {
|
|
295
289
|
this.focus();
|
|
296
290
|
}
|
|
297
|
-
this.overlayEventListener
|
|
298
|
-
|
|
299
|
-
|
|
291
|
+
this.overlayEventListener.set((e) => {
|
|
292
|
+
const container = this.container();
|
|
293
|
+
if (container && container.contains(e.target)) {
|
|
294
|
+
this.selfClick.set(true);
|
|
300
295
|
}
|
|
301
|
-
};
|
|
302
|
-
this.overlaySubscription
|
|
296
|
+
});
|
|
297
|
+
this.overlaySubscription.set(this.overlayService.clickObservable.subscribe(this.overlayEventListener()));
|
|
303
298
|
this.onShow.emit(null);
|
|
304
299
|
}
|
|
305
300
|
onAnimationEnd() {
|
|
306
|
-
if (!this.overlayVisible) {
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
301
|
+
if (!this.overlayVisible()) {
|
|
302
|
+
const destroyCallback = this.destroyCallback();
|
|
303
|
+
if (destroyCallback) {
|
|
304
|
+
destroyCallback();
|
|
305
|
+
this.destroyCallback.set(null);
|
|
310
306
|
}
|
|
311
|
-
|
|
312
|
-
|
|
307
|
+
const overlaySubscription = this.overlaySubscription();
|
|
308
|
+
if (overlaySubscription) {
|
|
309
|
+
overlaySubscription.unsubscribe();
|
|
313
310
|
}
|
|
314
|
-
if (this.autoZIndex) {
|
|
315
|
-
ZIndexUtils.clear(this.container);
|
|
311
|
+
if (this.autoZIndex()) {
|
|
312
|
+
ZIndexUtils.clear(this.container());
|
|
316
313
|
}
|
|
317
314
|
this.onContainerDestroy();
|
|
318
315
|
this.onHide.emit({});
|
|
319
|
-
this.render
|
|
320
|
-
this.container
|
|
316
|
+
this.render.set(false);
|
|
317
|
+
this.container.set(null);
|
|
321
318
|
}
|
|
322
319
|
}
|
|
323
320
|
focus() {
|
|
324
|
-
let focusable = findSingle(this.container, '[autofocus]');
|
|
321
|
+
let focusable = findSingle(this.container(), '[autofocus]');
|
|
325
322
|
if (focusable) {
|
|
326
323
|
this.zone.runOutsideAngular(() => {
|
|
327
324
|
setTimeout(() => focusable.focus(), 5);
|
|
@@ -333,8 +330,7 @@ class Popover extends BaseComponent {
|
|
|
333
330
|
* @group Method
|
|
334
331
|
*/
|
|
335
332
|
hide() {
|
|
336
|
-
this.overlayVisible
|
|
337
|
-
this.cd.markForCheck();
|
|
333
|
+
this.overlayVisible.set(false);
|
|
338
334
|
}
|
|
339
335
|
onCloseClick(event) {
|
|
340
336
|
this.hide();
|
|
@@ -344,83 +340,87 @@ class Popover extends BaseComponent {
|
|
|
344
340
|
this.hide();
|
|
345
341
|
}
|
|
346
342
|
onWindowResize() {
|
|
347
|
-
if (this.overlayVisible && !isTouchDevice()) {
|
|
343
|
+
if (this.overlayVisible() && !isTouchDevice()) {
|
|
348
344
|
this.hide();
|
|
349
345
|
}
|
|
350
346
|
}
|
|
351
347
|
bindDocumentResizeListener() {
|
|
352
348
|
if (isPlatformBrowser(this.platformId)) {
|
|
353
|
-
if (!this.documentResizeListener) {
|
|
349
|
+
if (!this.documentResizeListener()) {
|
|
354
350
|
const window = this.document.defaultView;
|
|
355
|
-
this.documentResizeListener
|
|
351
|
+
this.documentResizeListener.set(this.renderer.listen(window, 'resize', this.onWindowResize.bind(this)));
|
|
356
352
|
}
|
|
357
353
|
}
|
|
358
354
|
}
|
|
359
355
|
unbindDocumentResizeListener() {
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
356
|
+
const documentResizeListener = this.documentResizeListener();
|
|
357
|
+
if (documentResizeListener) {
|
|
358
|
+
documentResizeListener();
|
|
359
|
+
this.documentResizeListener.set(null);
|
|
363
360
|
}
|
|
364
361
|
}
|
|
365
362
|
bindScrollListener() {
|
|
366
363
|
if (isPlatformBrowser(this.platformId)) {
|
|
367
|
-
if (!this.scrollHandler) {
|
|
368
|
-
this.scrollHandler
|
|
369
|
-
if (this.overlayVisible) {
|
|
364
|
+
if (!this.scrollHandler()) {
|
|
365
|
+
this.scrollHandler.set(new ConnectedOverlayScrollHandler(this.target(), () => {
|
|
366
|
+
if (this.overlayVisible()) {
|
|
370
367
|
this.hide();
|
|
371
368
|
}
|
|
372
|
-
});
|
|
369
|
+
}));
|
|
373
370
|
}
|
|
374
|
-
this.scrollHandler.bindScrollListener();
|
|
371
|
+
this.scrollHandler().bindScrollListener();
|
|
375
372
|
}
|
|
376
373
|
}
|
|
377
374
|
unbindScrollListener() {
|
|
378
|
-
|
|
379
|
-
|
|
375
|
+
const scrollHandler = this.scrollHandler();
|
|
376
|
+
if (scrollHandler) {
|
|
377
|
+
scrollHandler.unbindScrollListener();
|
|
380
378
|
}
|
|
381
379
|
}
|
|
382
380
|
onContainerDestroy() {
|
|
383
381
|
if (!this.cd.destroyed) {
|
|
384
|
-
this.target
|
|
382
|
+
this.target.set(null);
|
|
385
383
|
}
|
|
386
384
|
this.unbindDocumentClickListener();
|
|
387
385
|
this.unbindDocumentResizeListener();
|
|
388
386
|
this.unbindScrollListener();
|
|
389
387
|
}
|
|
390
388
|
onDestroy() {
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
389
|
+
const scrollHandler = this.scrollHandler();
|
|
390
|
+
if (scrollHandler) {
|
|
391
|
+
scrollHandler.destroy();
|
|
392
|
+
this.scrollHandler.set(null);
|
|
394
393
|
}
|
|
395
|
-
if (this.container && this.autoZIndex) {
|
|
396
|
-
ZIndexUtils.clear(this.container);
|
|
394
|
+
if (this.container() && this.autoZIndex()) {
|
|
395
|
+
ZIndexUtils.clear(this.container());
|
|
397
396
|
}
|
|
398
397
|
if (!this.cd.destroyed) {
|
|
399
|
-
this.target
|
|
398
|
+
this.target.set(null);
|
|
400
399
|
}
|
|
401
|
-
this.destroyCallback
|
|
402
|
-
if (this.container) {
|
|
400
|
+
this.destroyCallback.set(null);
|
|
401
|
+
if (this.container()) {
|
|
403
402
|
this.restoreAppend();
|
|
404
403
|
this.onContainerDestroy();
|
|
405
404
|
}
|
|
406
|
-
|
|
407
|
-
|
|
405
|
+
const overlaySubscription = this.overlaySubscription();
|
|
406
|
+
if (overlaySubscription) {
|
|
407
|
+
overlaySubscription.unsubscribe();
|
|
408
408
|
}
|
|
409
409
|
}
|
|
410
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: Popover, deps:
|
|
411
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: Popover, isStandalone: true, selector: "p-popover", inputs: { ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal:
|
|
412
|
-
@if (render) {
|
|
410
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: Popover, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
411
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: Popover, isStandalone: true, selector: "p-popover", inputs: { ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: true, isRequired: false, transformFunction: null }, dismissable: { classPropertyName: "dismissable", publicName: "dismissable", isSignal: true, isRequired: false, transformFunction: null }, style: { classPropertyName: "style", publicName: "style", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null }, autoZIndex: { classPropertyName: "autoZIndex", publicName: "autoZIndex", isSignal: true, isRequired: false, transformFunction: null }, baseZIndex: { classPropertyName: "baseZIndex", publicName: "baseZIndex", isSignal: true, isRequired: false, transformFunction: null }, focusOnShow: { classPropertyName: "focusOnShow", publicName: "focusOnShow", isSignal: true, isRequired: false, transformFunction: null }, motionOptions: { classPropertyName: "motionOptions", publicName: "motionOptions", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onShow: "onShow", onHide: "onHide" }, host: { listeners: { "document:keydown.escape": "onEscapeKeydown($event)" } }, providers: [PopoverStyle, { provide: PARENT_INSTANCE, useExisting: Popover }], queries: [{ propertyName: "contentTemplate", first: true, predicate: ["content"], isSignal: true }, { propertyName: "templates", predicate: PrimeTemplate, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
|
|
412
|
+
@if (render()) {
|
|
413
413
|
<div
|
|
414
414
|
[pBind]="ptm('root')"
|
|
415
|
-
[class]="cn(cx('root'), styleClass)"
|
|
415
|
+
[class]="cn(cx('root'), styleClass())"
|
|
416
416
|
[style]="sx('root')"
|
|
417
|
-
[ngStyle]="style"
|
|
417
|
+
[ngStyle]="style()"
|
|
418
418
|
(click)="onOverlayClick($event)"
|
|
419
419
|
role="dialog"
|
|
420
|
-
[attr.aria-modal]="overlayVisible"
|
|
421
|
-
[attr.aria-label]="ariaLabel"
|
|
422
|
-
[attr.aria-labelledBy]="ariaLabelledBy"
|
|
423
|
-
[pMotion]="overlayVisible"
|
|
420
|
+
[attr.aria-modal]="overlayVisible()"
|
|
421
|
+
[attr.aria-label]="ariaLabel()"
|
|
422
|
+
[attr.aria-labelledBy]="ariaLabelledBy()"
|
|
423
|
+
[pMotion]="overlayVisible()"
|
|
424
424
|
pMotionName="p-anchored-overlay"
|
|
425
425
|
[pMotionAppear]="true"
|
|
426
426
|
(pMotionOnEnter)="onAnimationStart($event)"
|
|
@@ -429,7 +429,7 @@ class Popover extends BaseComponent {
|
|
|
429
429
|
>
|
|
430
430
|
<div [pBind]="ptm('content')" [class]="cx('content')" (click)="onContentClick($event)" (mousedown)="onContentClick($event)">
|
|
431
431
|
<ng-content></ng-content>
|
|
432
|
-
<ng-template *ngTemplateOutlet="contentTemplate() || _contentTemplate; context: { closeCallback: onCloseClick.bind(this) }"></ng-template>
|
|
432
|
+
<ng-template *ngTemplateOutlet="contentTemplate() || _contentTemplate(); context: { closeCallback: onCloseClick.bind(this) }"></ng-template>
|
|
433
433
|
</div>
|
|
434
434
|
</div>
|
|
435
435
|
}
|
|
@@ -439,23 +439,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
439
439
|
type: Component,
|
|
440
440
|
args: [{
|
|
441
441
|
selector: 'p-popover',
|
|
442
|
-
standalone: true,
|
|
443
442
|
imports: [CommonModule, SharedModule, Bind, MotionModule],
|
|
444
|
-
providers: [PopoverStyle, { provide:
|
|
443
|
+
providers: [PopoverStyle, { provide: PARENT_INSTANCE, useExisting: Popover }],
|
|
445
444
|
hostDirectives: [Bind],
|
|
446
445
|
template: `
|
|
447
|
-
@if (render) {
|
|
446
|
+
@if (render()) {
|
|
448
447
|
<div
|
|
449
448
|
[pBind]="ptm('root')"
|
|
450
|
-
[class]="cn(cx('root'), styleClass)"
|
|
449
|
+
[class]="cn(cx('root'), styleClass())"
|
|
451
450
|
[style]="sx('root')"
|
|
452
|
-
[ngStyle]="style"
|
|
451
|
+
[ngStyle]="style()"
|
|
453
452
|
(click)="onOverlayClick($event)"
|
|
454
453
|
role="dialog"
|
|
455
|
-
[attr.aria-modal]="overlayVisible"
|
|
456
|
-
[attr.aria-label]="ariaLabel"
|
|
457
|
-
[attr.aria-labelledBy]="ariaLabelledBy"
|
|
458
|
-
[pMotion]="overlayVisible"
|
|
454
|
+
[attr.aria-modal]="overlayVisible()"
|
|
455
|
+
[attr.aria-label]="ariaLabel()"
|
|
456
|
+
[attr.aria-labelledBy]="ariaLabelledBy()"
|
|
457
|
+
[pMotion]="overlayVisible()"
|
|
459
458
|
pMotionName="p-anchored-overlay"
|
|
460
459
|
[pMotionAppear]="true"
|
|
461
460
|
(pMotionOnEnter)="onAnimationStart($event)"
|
|
@@ -464,7 +463,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
464
463
|
>
|
|
465
464
|
<div [pBind]="ptm('content')" [class]="cx('content')" (click)="onContentClick($event)" (mousedown)="onContentClick($event)">
|
|
466
465
|
<ng-content></ng-content>
|
|
467
|
-
<ng-template *ngTemplateOutlet="contentTemplate() || _contentTemplate; context: { closeCallback: onCloseClick.bind(this) }"></ng-template>
|
|
466
|
+
<ng-template *ngTemplateOutlet="contentTemplate() || _contentTemplate(); context: { closeCallback: onCloseClick.bind(this) }"></ng-template>
|
|
468
467
|
</div>
|
|
469
468
|
</div>
|
|
470
469
|
}
|
|
@@ -472,33 +471,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
472
471
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
473
472
|
encapsulation: ViewEncapsulation.None
|
|
474
473
|
}]
|
|
475
|
-
}], propDecorators: { ariaLabel: [{
|
|
476
|
-
type: Input
|
|
477
|
-
}], ariaLabelledBy: [{
|
|
478
|
-
type: Input
|
|
479
|
-
}], dismissable: [{
|
|
480
|
-
type: Input,
|
|
481
|
-
args: [{ transform: booleanAttribute }]
|
|
482
|
-
}], style: [{
|
|
483
|
-
type: Input
|
|
484
|
-
}], styleClass: [{
|
|
485
|
-
type: Input
|
|
486
|
-
}], appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], autoZIndex: [{
|
|
487
|
-
type: Input,
|
|
488
|
-
args: [{ transform: booleanAttribute }]
|
|
489
|
-
}], ariaCloseLabel: [{
|
|
490
|
-
type: Input
|
|
491
|
-
}], baseZIndex: [{
|
|
492
|
-
type: Input,
|
|
493
|
-
args: [{ transform: numberAttribute }]
|
|
494
|
-
}], focusOnShow: [{
|
|
495
|
-
type: Input,
|
|
496
|
-
args: [{ transform: booleanAttribute }]
|
|
497
|
-
}], showTransitionOptions: [{
|
|
498
|
-
type: Input
|
|
499
|
-
}], hideTransitionOptions: [{
|
|
500
|
-
type: Input
|
|
501
|
-
}], motionOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "motionOptions", required: false }] }], onShow: [{ type: i0.Output, args: ["onShow"] }], onHide: [{ type: i0.Output, args: ["onHide"] }], contentTemplate: [{ type: i0.ContentChild, args: ['content', { ...{ descendants: false }, isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }], onEscapeKeydown: [{
|
|
474
|
+
}], ctorParameters: () => [], propDecorators: { ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledBy", required: false }] }], dismissable: [{ type: i0.Input, args: [{ isSignal: true, alias: "dismissable", required: false }] }], style: [{ type: i0.Input, args: [{ isSignal: true, alias: "style", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], autoZIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoZIndex", required: false }] }], baseZIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "baseZIndex", required: false }] }], focusOnShow: [{ type: i0.Input, args: [{ isSignal: true, alias: "focusOnShow", required: false }] }], motionOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "motionOptions", required: false }] }], onShow: [{ type: i0.Output, args: ["onShow"] }], onHide: [{ type: i0.Output, args: ["onHide"] }], contentTemplate: [{ type: i0.ContentChild, args: ['content', { ...{ descendants: false }, isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }], onEscapeKeydown: [{
|
|
502
475
|
type: HostListener,
|
|
503
476
|
args: ['document:keydown.escape', ['$event']]
|
|
504
477
|
}] } });
|