@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
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export * from '@exhaustive-ui/core/types/scrollpanel';
|
|
2
2
|
import * as i2 from '@angular/common';
|
|
3
|
-
import {
|
|
3
|
+
import { CommonModule } from '@angular/common';
|
|
4
4
|
import * as i0 from '@angular/core';
|
|
5
|
-
import { Injectable,
|
|
5
|
+
import { Injectable, inject, afterNextRender, afterEveryRender, input, numberAttribute, viewChild, contentChild, contentChildren, computed, signal, NgZone, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
|
6
6
|
import { uuid, getHeight, addClass, removeClass } from '@exhaustive-ui/utils';
|
|
7
7
|
import { PrimeTemplate, SharedModule } from '@exhaustive-ui/core/api';
|
|
8
8
|
import { BaseComponent, PARENT_INSTANCE } from '@exhaustive-ui/core/basecomponent';
|
|
@@ -68,29 +68,34 @@ var ScrollPanelClasses;
|
|
|
68
68
|
ScrollPanelClasses["barY"] = "p-scrollpanel-bar-y";
|
|
69
69
|
})(ScrollPanelClasses || (ScrollPanelClasses = {}));
|
|
70
70
|
|
|
71
|
-
const SCROLLPANEL_INSTANCE = new InjectionToken('SCROLLPANEL_INSTANCE');
|
|
72
71
|
/**
|
|
73
72
|
* ScrollPanel is a cross browser, lightweight and themable alternative to native browser scrollbar.
|
|
74
73
|
* @group Components
|
|
75
74
|
*/
|
|
76
75
|
class ScrollPanel extends BaseComponent {
|
|
77
76
|
componentName = 'ScrollPanel';
|
|
78
|
-
$pcScrollPanel = inject(SCROLLPANEL_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;
|
|
79
77
|
bindDirectiveInstance = inject(Bind, { self: true });
|
|
80
|
-
|
|
81
|
-
|
|
78
|
+
constructor() {
|
|
79
|
+
super();
|
|
80
|
+
afterNextRender(() => {
|
|
81
|
+
this.zone.runOutsideAngular(() => {
|
|
82
|
+
this.moveBar();
|
|
83
|
+
this.windowResizeListener.set(this.renderer.listen(window, 'resize', this.moveBar.bind(this)));
|
|
84
|
+
this.contentScrollListener.set(this.renderer.listen(this.contentViewChild().nativeElement, 'scroll', this.moveBar.bind(this)));
|
|
85
|
+
this.mouseEnterListener.set(this.renderer.listen(this.contentViewChild().nativeElement, 'mouseenter', this.moveBar.bind(this)));
|
|
86
|
+
this.xBarMouseDownListener.set(this.renderer.listen(this.xBarViewChild().nativeElement, 'mousedown', this.onXBarMouseDown.bind(this)));
|
|
87
|
+
this.yBarMouseDownListener.set(this.renderer.listen(this.yBarViewChild().nativeElement, 'mousedown', this.onYBarMouseDown.bind(this)));
|
|
88
|
+
this.calculateContainerHeight();
|
|
89
|
+
this.initialized.set(true);
|
|
90
|
+
});
|
|
91
|
+
});
|
|
92
|
+
afterEveryRender(() => this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root'])));
|
|
82
93
|
}
|
|
83
|
-
/**
|
|
84
|
-
* Style class of the component.
|
|
85
|
-
* @deprecated since v20.0.0, use `class` instead.
|
|
86
|
-
* @group Props
|
|
87
|
-
*/
|
|
88
|
-
styleClass;
|
|
89
94
|
/**
|
|
90
95
|
* Step factor to scroll the content while pressing the arrow keys.
|
|
91
96
|
* @group Props
|
|
92
97
|
*/
|
|
93
|
-
step = 5;
|
|
98
|
+
step = input(5, { ...(ngDevMode ? { debugName: "step" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
94
99
|
contentViewChild = viewChild.required('content', /* @ts-ignore */
|
|
95
100
|
...(ngDevMode ? [{ debugName: "contentViewChild" }] : /* istanbul ignore next */ []));
|
|
96
101
|
xBarViewChild = viewChild.required('xBar', /* @ts-ignore */
|
|
@@ -104,63 +109,48 @@ class ScrollPanel extends BaseComponent {
|
|
|
104
109
|
contentTemplate = contentChild('content', { ...(ngDevMode ? { debugName: "contentTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
105
110
|
templates = contentChildren(PrimeTemplate, /* @ts-ignore */
|
|
106
111
|
...(ngDevMode ? [{ debugName: "templates" }] : /* istanbul ignore next */ []));
|
|
107
|
-
_contentTemplate
|
|
108
|
-
|
|
109
|
-
|
|
112
|
+
_contentTemplate = computed(() => this.templates().at(-1)?.template, /* @ts-ignore */
|
|
113
|
+
...(ngDevMode ? [{ debugName: "_contentTemplate" }] : /* istanbul ignore next */ []));
|
|
114
|
+
scrollYRatio = signal(undefined, /* @ts-ignore */
|
|
115
|
+
...(ngDevMode ? [{ debugName: "scrollYRatio" }] : /* istanbul ignore next */ []));
|
|
116
|
+
scrollXRatio = signal(undefined, /* @ts-ignore */
|
|
117
|
+
...(ngDevMode ? [{ debugName: "scrollXRatio" }] : /* istanbul ignore next */ []));
|
|
110
118
|
timeoutFrame = (fn) => setTimeout(fn, 0);
|
|
111
|
-
initialized = false
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
119
|
+
initialized = signal(false, /* @ts-ignore */
|
|
120
|
+
...(ngDevMode ? [{ debugName: "initialized" }] : /* istanbul ignore next */ []));
|
|
121
|
+
lastPageY = signal(undefined, /* @ts-ignore */
|
|
122
|
+
...(ngDevMode ? [{ debugName: "lastPageY" }] : /* istanbul ignore next */ []));
|
|
123
|
+
lastPageX = signal(undefined, /* @ts-ignore */
|
|
124
|
+
...(ngDevMode ? [{ debugName: "lastPageX" }] : /* istanbul ignore next */ []));
|
|
125
|
+
isXBarClicked = signal(false, /* @ts-ignore */
|
|
126
|
+
...(ngDevMode ? [{ debugName: "isXBarClicked" }] : /* istanbul ignore next */ []));
|
|
127
|
+
isYBarClicked = signal(false, /* @ts-ignore */
|
|
128
|
+
...(ngDevMode ? [{ debugName: "isYBarClicked" }] : /* istanbul ignore next */ []));
|
|
129
|
+
lastScrollLeft = signal(0, /* @ts-ignore */
|
|
130
|
+
...(ngDevMode ? [{ debugName: "lastScrollLeft" }] : /* istanbul ignore next */ []));
|
|
131
|
+
lastScrollTop = signal(0, /* @ts-ignore */
|
|
132
|
+
...(ngDevMode ? [{ debugName: "lastScrollTop" }] : /* istanbul ignore next */ []));
|
|
133
|
+
orientation = signal('vertical', /* @ts-ignore */
|
|
134
|
+
...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
|
|
135
|
+
timer = signal(undefined, /* @ts-ignore */
|
|
136
|
+
...(ngDevMode ? [{ debugName: "timer" }] : /* istanbul ignore next */ []));
|
|
137
|
+
contentId = uuid('pn_id_') + '_content';
|
|
138
|
+
windowResizeListener = signal(undefined, /* @ts-ignore */
|
|
139
|
+
...(ngDevMode ? [{ debugName: "windowResizeListener" }] : /* istanbul ignore next */ []));
|
|
140
|
+
contentScrollListener = signal(undefined, /* @ts-ignore */
|
|
141
|
+
...(ngDevMode ? [{ debugName: "contentScrollListener" }] : /* istanbul ignore next */ []));
|
|
142
|
+
mouseEnterListener = signal(undefined, /* @ts-ignore */
|
|
143
|
+
...(ngDevMode ? [{ debugName: "mouseEnterListener" }] : /* istanbul ignore next */ []));
|
|
144
|
+
xBarMouseDownListener = signal(undefined, /* @ts-ignore */
|
|
145
|
+
...(ngDevMode ? [{ debugName: "xBarMouseDownListener" }] : /* istanbul ignore next */ []));
|
|
146
|
+
yBarMouseDownListener = signal(undefined, /* @ts-ignore */
|
|
147
|
+
...(ngDevMode ? [{ debugName: "yBarMouseDownListener" }] : /* istanbul ignore next */ []));
|
|
148
|
+
documentMouseMoveListener = signal(undefined, /* @ts-ignore */
|
|
149
|
+
...(ngDevMode ? [{ debugName: "documentMouseMoveListener" }] : /* istanbul ignore next */ []));
|
|
150
|
+
documentMouseUpListener = signal(undefined, /* @ts-ignore */
|
|
151
|
+
...(ngDevMode ? [{ debugName: "documentMouseUpListener" }] : /* istanbul ignore next */ []));
|
|
128
152
|
_componentStyle = inject(ScrollPanelStyle);
|
|
129
153
|
zone = inject(NgZone);
|
|
130
|
-
onInit() {
|
|
131
|
-
this.contentId = uuid('pn_id_') + '_content';
|
|
132
|
-
}
|
|
133
|
-
onAfterViewInit() {
|
|
134
|
-
if (isPlatformBrowser(this.platformId)) {
|
|
135
|
-
this.zone.runOutsideAngular(() => {
|
|
136
|
-
this.moveBar();
|
|
137
|
-
this.moveBar = this.moveBar.bind(this);
|
|
138
|
-
this.onXBarMouseDown = this.onXBarMouseDown.bind(this);
|
|
139
|
-
this.onYBarMouseDown = this.onYBarMouseDown.bind(this);
|
|
140
|
-
this.onDocumentMouseMove = this.onDocumentMouseMove.bind(this);
|
|
141
|
-
this.onDocumentMouseUp = this.onDocumentMouseUp.bind(this);
|
|
142
|
-
this.windowResizeListener = this.renderer.listen(window, 'resize', this.moveBar);
|
|
143
|
-
this.contentScrollListener = this.renderer.listen(this.contentViewChild().nativeElement, 'scroll', this.moveBar);
|
|
144
|
-
this.mouseEnterListener = this.renderer.listen(this.contentViewChild().nativeElement, 'mouseenter', this.moveBar);
|
|
145
|
-
this.xBarMouseDownListener = this.renderer.listen(this.xBarViewChild().nativeElement, 'mousedown', this.onXBarMouseDown);
|
|
146
|
-
this.yBarMouseDownListener = this.renderer.listen(this.yBarViewChild().nativeElement, 'mousedown', this.onYBarMouseDown);
|
|
147
|
-
this.calculateContainerHeight();
|
|
148
|
-
this.initialized = true;
|
|
149
|
-
});
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
onAfterContentInit() {
|
|
153
|
-
this.templates().forEach((item) => {
|
|
154
|
-
switch (item.getType()) {
|
|
155
|
-
case 'content':
|
|
156
|
-
this._contentTemplate = item.template;
|
|
157
|
-
break;
|
|
158
|
-
default:
|
|
159
|
-
this._contentTemplate = item.template;
|
|
160
|
-
break;
|
|
161
|
-
}
|
|
162
|
-
});
|
|
163
|
-
}
|
|
164
154
|
calculateContainerHeight() {
|
|
165
155
|
let container = this.el.nativeElement;
|
|
166
156
|
let content = this.contentViewChild().nativeElement;
|
|
@@ -184,60 +174,59 @@ class ScrollPanel extends BaseComponent {
|
|
|
184
174
|
let totalWidth = content.scrollWidth;
|
|
185
175
|
let ownWidth = content.clientWidth;
|
|
186
176
|
let bottom = (container.clientHeight - xBar.clientHeight) * -1;
|
|
187
|
-
this.scrollXRatio
|
|
177
|
+
this.scrollXRatio.set(ownWidth / totalWidth);
|
|
188
178
|
/* vertical scroll */
|
|
189
179
|
let yBar = this.yBarViewChild().nativeElement;
|
|
190
180
|
let totalHeight = content.scrollHeight;
|
|
191
181
|
let ownHeight = content.clientHeight;
|
|
192
182
|
let right = (container.clientWidth - yBar.clientWidth) * -1;
|
|
193
|
-
this.scrollYRatio
|
|
183
|
+
this.scrollYRatio.set(ownHeight / totalHeight);
|
|
194
184
|
this.requestAnimationFrame(() => {
|
|
195
|
-
if (this.scrollXRatio >= 1) {
|
|
185
|
+
if (this.scrollXRatio() >= 1) {
|
|
196
186
|
xBar.setAttribute('data-p-scrollpanel-hidden', 'true');
|
|
197
187
|
!this.$unstyled() && addClass(xBar, 'p-scrollpanel-hidden');
|
|
198
188
|
}
|
|
199
189
|
else {
|
|
200
190
|
xBar.setAttribute('data-p-scrollpanel-hidden', 'false');
|
|
201
191
|
!this.$unstyled() && removeClass(xBar, 'p-scrollpanel-hidden');
|
|
202
|
-
const xBarWidth = Math.max(this.scrollXRatio * 100, 10);
|
|
192
|
+
const xBarWidth = Math.max(this.scrollXRatio() * 100, 10);
|
|
203
193
|
const xBarLeft = Math.abs((content.scrollLeft * (100 - xBarWidth)) / (totalWidth - ownWidth));
|
|
204
194
|
xBar.style.cssText = 'width:' + xBarWidth + '%; inset-inline-start:' + xBarLeft + '%;bottom:' + bottom + 'px;';
|
|
205
195
|
}
|
|
206
|
-
if (this.scrollYRatio >= 1) {
|
|
196
|
+
if (this.scrollYRatio() >= 1) {
|
|
207
197
|
yBar.setAttribute('data-p-scrollpanel-hidden', 'true');
|
|
208
198
|
!this.$unstyled() && addClass(yBar, 'p-scrollpanel-hidden');
|
|
209
199
|
}
|
|
210
200
|
else {
|
|
211
201
|
yBar.setAttribute('data-p-scrollpanel-hidden', 'false');
|
|
212
202
|
!this.$unstyled() && removeClass(yBar, 'p-scrollpanel-hidden');
|
|
213
|
-
const yBarHeight = Math.max(this.scrollYRatio * 100, 10);
|
|
203
|
+
const yBarHeight = Math.max(this.scrollYRatio() * 100, 10);
|
|
214
204
|
const yBarTop = (content.scrollTop * (100 - yBarHeight)) / (totalHeight - ownHeight);
|
|
215
205
|
yBar.style.cssText = 'height:' + yBarHeight + '%; top: calc(' + yBarTop + '% - ' + xBar.clientHeight + 'px); inset-inline-end:' + right + 'px;';
|
|
216
206
|
}
|
|
217
207
|
});
|
|
218
|
-
this.cd.markForCheck();
|
|
219
208
|
}
|
|
220
209
|
onScroll(event) {
|
|
221
|
-
if (this.lastScrollLeft !== event.target.scrollLeft) {
|
|
222
|
-
this.lastScrollLeft
|
|
223
|
-
this.orientation
|
|
210
|
+
if (this.lastScrollLeft() !== event.target.scrollLeft) {
|
|
211
|
+
this.lastScrollLeft.set(event.target.scrollLeft);
|
|
212
|
+
this.orientation.set('horizontal');
|
|
224
213
|
}
|
|
225
|
-
else if (this.lastScrollTop !== event.target.scrollTop) {
|
|
226
|
-
this.lastScrollTop
|
|
227
|
-
this.orientation
|
|
214
|
+
else if (this.lastScrollTop() !== event.target.scrollTop) {
|
|
215
|
+
this.lastScrollTop.set(event.target.scrollTop);
|
|
216
|
+
this.orientation.set('vertical');
|
|
228
217
|
}
|
|
229
218
|
this.moveBar();
|
|
230
219
|
}
|
|
231
220
|
onKeyDown(event) {
|
|
232
|
-
if (this.orientation === 'vertical') {
|
|
221
|
+
if (this.orientation() === 'vertical') {
|
|
233
222
|
switch (event.code) {
|
|
234
223
|
case 'ArrowDown': {
|
|
235
|
-
this.setTimer('scrollTop', this.step);
|
|
224
|
+
this.setTimer('scrollTop', this.step());
|
|
236
225
|
event.preventDefault();
|
|
237
226
|
break;
|
|
238
227
|
}
|
|
239
228
|
case 'ArrowUp': {
|
|
240
|
-
this.setTimer('scrollTop', this.step * -1);
|
|
229
|
+
this.setTimer('scrollTop', this.step() * -1);
|
|
241
230
|
event.preventDefault();
|
|
242
231
|
break;
|
|
243
232
|
}
|
|
@@ -251,15 +240,15 @@ class ScrollPanel extends BaseComponent {
|
|
|
251
240
|
break;
|
|
252
241
|
}
|
|
253
242
|
}
|
|
254
|
-
else if (this.orientation === 'horizontal') {
|
|
243
|
+
else if (this.orientation() === 'horizontal') {
|
|
255
244
|
switch (event.code) {
|
|
256
245
|
case 'ArrowRight': {
|
|
257
|
-
this.setTimer('scrollLeft', this.step);
|
|
246
|
+
this.setTimer('scrollLeft', this.step());
|
|
258
247
|
event.preventDefault();
|
|
259
248
|
break;
|
|
260
249
|
}
|
|
261
250
|
case 'ArrowLeft': {
|
|
262
|
-
this.setTimer('scrollLeft', this.step * -1);
|
|
251
|
+
this.setTimer('scrollLeft', this.step() * -1);
|
|
263
252
|
event.preventDefault();
|
|
264
253
|
break;
|
|
265
254
|
}
|
|
@@ -284,44 +273,48 @@ class ScrollPanel extends BaseComponent {
|
|
|
284
273
|
}
|
|
285
274
|
setTimer(bar, step) {
|
|
286
275
|
this.clearTimer();
|
|
287
|
-
this.timer
|
|
276
|
+
this.timer.set(setTimeout(() => {
|
|
288
277
|
this.repeat(bar, step);
|
|
289
|
-
}, 40);
|
|
278
|
+
}, 40));
|
|
290
279
|
}
|
|
291
280
|
clearTimer() {
|
|
292
|
-
if (this.timer) {
|
|
293
|
-
clearTimeout(this.timer);
|
|
281
|
+
if (this.timer()) {
|
|
282
|
+
clearTimeout(this.timer());
|
|
294
283
|
}
|
|
295
284
|
}
|
|
296
285
|
bindDocumentMouseListeners() {
|
|
297
|
-
if (!this.documentMouseMoveListener) {
|
|
298
|
-
|
|
286
|
+
if (!this.documentMouseMoveListener()) {
|
|
287
|
+
const documentMouseMoveListener = (e) => {
|
|
299
288
|
this.onDocumentMouseMove(e);
|
|
300
289
|
};
|
|
301
|
-
this.
|
|
290
|
+
this.documentMouseMoveListener.set(documentMouseMoveListener);
|
|
291
|
+
this.document.addEventListener('mousemove', documentMouseMoveListener);
|
|
302
292
|
}
|
|
303
|
-
if (!this.documentMouseUpListener) {
|
|
304
|
-
|
|
293
|
+
if (!this.documentMouseUpListener()) {
|
|
294
|
+
const documentMouseUpListener = (e) => {
|
|
305
295
|
this.onDocumentMouseUp(e);
|
|
306
296
|
};
|
|
307
|
-
this.
|
|
297
|
+
this.documentMouseUpListener.set(documentMouseUpListener);
|
|
298
|
+
this.document.addEventListener('mouseup', documentMouseUpListener);
|
|
308
299
|
}
|
|
309
300
|
}
|
|
310
301
|
unbindDocumentMouseListeners() {
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
this.documentMouseMoveListener
|
|
302
|
+
const documentMouseMoveListener = this.documentMouseMoveListener();
|
|
303
|
+
if (documentMouseMoveListener) {
|
|
304
|
+
this.document.removeEventListener('mousemove', documentMouseMoveListener);
|
|
305
|
+
this.documentMouseMoveListener.set(null);
|
|
314
306
|
}
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
307
|
+
const documentMouseUpListener = this.documentMouseUpListener();
|
|
308
|
+
if (documentMouseUpListener) {
|
|
309
|
+
document.removeEventListener('mouseup', documentMouseUpListener);
|
|
310
|
+
this.documentMouseUpListener.set(null);
|
|
318
311
|
}
|
|
319
312
|
}
|
|
320
313
|
onYBarMouseDown(e) {
|
|
321
|
-
this.isYBarClicked
|
|
314
|
+
this.isYBarClicked.set(true);
|
|
322
315
|
const yBarViewChild = this.yBarViewChild();
|
|
323
316
|
yBarViewChild.nativeElement.focus();
|
|
324
|
-
this.lastPageY
|
|
317
|
+
this.lastPageY.set(e.pageY);
|
|
325
318
|
yBarViewChild.nativeElement.setAttribute('data-p-scrollpanel-grabbed', 'true');
|
|
326
319
|
!this.$unstyled() && addClass(yBarViewChild.nativeElement, 'p-scrollpanel-grabbed');
|
|
327
320
|
this.document.body.setAttribute('data-p-scrollpanel-grabbed', 'true');
|
|
@@ -330,10 +323,10 @@ class ScrollPanel extends BaseComponent {
|
|
|
330
323
|
e.preventDefault();
|
|
331
324
|
}
|
|
332
325
|
onXBarMouseDown(e) {
|
|
333
|
-
this.isXBarClicked
|
|
326
|
+
this.isXBarClicked.set(true);
|
|
334
327
|
const xBarViewChild = this.xBarViewChild();
|
|
335
328
|
xBarViewChild.nativeElement.focus();
|
|
336
|
-
this.lastPageX
|
|
329
|
+
this.lastPageX.set(e.pageX);
|
|
337
330
|
xBarViewChild.nativeElement.setAttribute('data-p-scrollpanel-grabbed', 'false');
|
|
338
331
|
!this.$unstyled() && addClass(xBarViewChild.nativeElement, 'p-scrollpanel-grabbed');
|
|
339
332
|
this.document.body.setAttribute('data-p-scrollpanel-grabbed', 'false');
|
|
@@ -342,10 +335,10 @@ class ScrollPanel extends BaseComponent {
|
|
|
342
335
|
e.preventDefault();
|
|
343
336
|
}
|
|
344
337
|
onDocumentMouseMove(e) {
|
|
345
|
-
if (this.isXBarClicked) {
|
|
338
|
+
if (this.isXBarClicked()) {
|
|
346
339
|
this.onMouseMoveForXBar(e);
|
|
347
340
|
}
|
|
348
|
-
else if (this.isYBarClicked) {
|
|
341
|
+
else if (this.isYBarClicked()) {
|
|
349
342
|
this.onMouseMoveForYBar(e);
|
|
350
343
|
}
|
|
351
344
|
else {
|
|
@@ -354,17 +347,17 @@ class ScrollPanel extends BaseComponent {
|
|
|
354
347
|
}
|
|
355
348
|
}
|
|
356
349
|
onMouseMoveForXBar(e) {
|
|
357
|
-
let deltaX = e.pageX - this.lastPageX;
|
|
358
|
-
this.lastPageX
|
|
350
|
+
let deltaX = e.pageX - this.lastPageX();
|
|
351
|
+
this.lastPageX.set(e.pageX);
|
|
359
352
|
this.requestAnimationFrame(() => {
|
|
360
|
-
this.contentViewChild().nativeElement.scrollLeft += deltaX / this.scrollXRatio;
|
|
353
|
+
this.contentViewChild().nativeElement.scrollLeft += deltaX / this.scrollXRatio();
|
|
361
354
|
});
|
|
362
355
|
}
|
|
363
356
|
onMouseMoveForYBar(e) {
|
|
364
|
-
let deltaY = e.pageY - this.lastPageY;
|
|
365
|
-
this.lastPageY
|
|
357
|
+
let deltaY = e.pageY - this.lastPageY();
|
|
358
|
+
this.lastPageY.set(e.pageY);
|
|
366
359
|
this.requestAnimationFrame(() => {
|
|
367
|
-
this.contentViewChild().nativeElement.scrollTop += deltaY / this.scrollYRatio;
|
|
360
|
+
this.contentViewChild().nativeElement.scrollTop += deltaY / this.scrollYRatio();
|
|
368
361
|
});
|
|
369
362
|
}
|
|
370
363
|
/**
|
|
@@ -379,15 +372,15 @@ class ScrollPanel extends BaseComponent {
|
|
|
379
372
|
}
|
|
380
373
|
onFocus(event) {
|
|
381
374
|
if (this.xBarViewChild().nativeElement?.isSameNode(event.target)) {
|
|
382
|
-
this.orientation
|
|
375
|
+
this.orientation.set('horizontal');
|
|
383
376
|
}
|
|
384
377
|
else if (this.yBarViewChild().nativeElement?.isSameNode(event.target)) {
|
|
385
|
-
this.orientation
|
|
378
|
+
this.orientation.set('vertical');
|
|
386
379
|
}
|
|
387
380
|
}
|
|
388
381
|
onBlur() {
|
|
389
|
-
if (this.orientation === 'horizontal') {
|
|
390
|
-
this.orientation
|
|
382
|
+
if (this.orientation() === 'horizontal') {
|
|
383
|
+
this.orientation.set('vertical');
|
|
391
384
|
}
|
|
392
385
|
}
|
|
393
386
|
onDocumentMouseUp(e) {
|
|
@@ -400,37 +393,42 @@ class ScrollPanel extends BaseComponent {
|
|
|
400
393
|
this.document.body.setAttribute('data-p-scrollpanel-grabbed', 'false');
|
|
401
394
|
!this.$unstyled() && removeClass(this.document.body, 'p-scrollpanel-grabbed');
|
|
402
395
|
this.unbindDocumentMouseListeners();
|
|
403
|
-
this.isXBarClicked
|
|
404
|
-
this.isYBarClicked
|
|
396
|
+
this.isXBarClicked.set(false);
|
|
397
|
+
this.isYBarClicked.set(false);
|
|
405
398
|
}
|
|
406
399
|
requestAnimationFrame(f) {
|
|
407
400
|
let frame = window.requestAnimationFrame || this.timeoutFrame;
|
|
408
401
|
frame(f);
|
|
409
402
|
}
|
|
410
403
|
unbindListeners() {
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
404
|
+
const windowResizeListener = this.windowResizeListener();
|
|
405
|
+
if (windowResizeListener) {
|
|
406
|
+
windowResizeListener();
|
|
407
|
+
this.windowResizeListener.set(null);
|
|
414
408
|
}
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
409
|
+
const contentScrollListener = this.contentScrollListener();
|
|
410
|
+
if (contentScrollListener) {
|
|
411
|
+
contentScrollListener();
|
|
412
|
+
this.contentScrollListener.set(null);
|
|
418
413
|
}
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
414
|
+
const mouseEnterListener = this.mouseEnterListener();
|
|
415
|
+
if (mouseEnterListener) {
|
|
416
|
+
mouseEnterListener();
|
|
417
|
+
this.mouseEnterListener.set(null);
|
|
422
418
|
}
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
419
|
+
const xBarMouseDownListener = this.xBarMouseDownListener();
|
|
420
|
+
if (xBarMouseDownListener) {
|
|
421
|
+
xBarMouseDownListener();
|
|
422
|
+
this.xBarMouseDownListener.set(null);
|
|
426
423
|
}
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
424
|
+
const yBarMouseDownListener = this.yBarMouseDownListener();
|
|
425
|
+
if (yBarMouseDownListener) {
|
|
426
|
+
yBarMouseDownListener();
|
|
427
|
+
this.yBarMouseDownListener.set(null);
|
|
430
428
|
}
|
|
431
429
|
}
|
|
432
430
|
onDestroy() {
|
|
433
|
-
if (this.initialized) {
|
|
431
|
+
if (this.initialized()) {
|
|
434
432
|
this.unbindListeners();
|
|
435
433
|
}
|
|
436
434
|
}
|
|
@@ -441,14 +439,14 @@ class ScrollPanel extends BaseComponent {
|
|
|
441
439
|
refresh() {
|
|
442
440
|
this.moveBar();
|
|
443
441
|
}
|
|
444
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: ScrollPanel, deps:
|
|
445
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: ScrollPanel, isStandalone: true, selector: "p-scroll-panel, p-scrollPanel, p-scrollpanel", inputs: {
|
|
442
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: ScrollPanel, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
443
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.1", type: ScrollPanel, isStandalone: true, selector: "p-scroll-panel, p-scrollPanel, p-scrollpanel", inputs: { step: { classPropertyName: "step", publicName: "step", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "cx('root')" } }, providers: [ScrollPanelStyle, { provide: PARENT_INSTANCE, useExisting: ScrollPanel }], queries: [{ propertyName: "contentTemplate", first: true, predicate: ["content"], isSignal: true }, { propertyName: "templates", predicate: PrimeTemplate, isSignal: true }], viewQueries: [{ propertyName: "contentViewChild", first: true, predicate: ["content"], descendants: true, isSignal: true }, { propertyName: "xBarViewChild", first: true, predicate: ["xBar"], descendants: true, isSignal: true }, { propertyName: "yBarViewChild", first: true, predicate: ["yBar"], descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.Bind }], ngImport: i0, template: `
|
|
446
444
|
<div [pBind]="ptm('contentContainer')" [class]="cx('contentContainer')">
|
|
447
445
|
<div #content [pBind]="ptm('content')" [class]="cx('content')" (mouseenter)="moveBar()" (scroll)="onScroll($event)">
|
|
448
|
-
@if (!contentTemplate() && !_contentTemplate) {
|
|
446
|
+
@if (!contentTemplate() && !_contentTemplate()) {
|
|
449
447
|
<ng-content></ng-content>
|
|
450
448
|
}
|
|
451
|
-
<ng-container *ngTemplateOutlet="contentTemplate() || _contentTemplate"></ng-container>
|
|
449
|
+
<ng-container *ngTemplateOutlet="contentTemplate() || _contentTemplate()"></ng-container>
|
|
452
450
|
</div>
|
|
453
451
|
</div>
|
|
454
452
|
<div
|
|
@@ -458,7 +456,7 @@ class ScrollPanel extends BaseComponent {
|
|
|
458
456
|
tabindex="0"
|
|
459
457
|
role="scrollbar"
|
|
460
458
|
[attr.aria-orientation]="'horizontal'"
|
|
461
|
-
[attr.aria-valuenow]="lastScrollLeft"
|
|
459
|
+
[attr.aria-valuenow]="lastScrollLeft()"
|
|
462
460
|
[attr.aria-controls]="contentId"
|
|
463
461
|
[attr.data-pc-group-section]="'bar'"
|
|
464
462
|
(mousedown)="onXBarMouseDown($event)"
|
|
@@ -474,7 +472,7 @@ class ScrollPanel extends BaseComponent {
|
|
|
474
472
|
tabindex="0"
|
|
475
473
|
role="scrollbar"
|
|
476
474
|
[attr.aria-orientation]="'vertical'"
|
|
477
|
-
[attr.aria-valuenow]="lastScrollTop"
|
|
475
|
+
[attr.aria-valuenow]="lastScrollTop()"
|
|
478
476
|
[attr.aria-controls]="contentId"
|
|
479
477
|
(mousedown)="onYBarMouseDown($event)"
|
|
480
478
|
(keydown)="onKeyDown($event)"
|
|
@@ -488,15 +486,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
488
486
|
type: Component,
|
|
489
487
|
args: [{
|
|
490
488
|
selector: 'p-scroll-panel, p-scrollPanel, p-scrollpanel',
|
|
491
|
-
standalone: true,
|
|
492
489
|
imports: [CommonModule, SharedModule, BindModule],
|
|
493
490
|
template: `
|
|
494
491
|
<div [pBind]="ptm('contentContainer')" [class]="cx('contentContainer')">
|
|
495
492
|
<div #content [pBind]="ptm('content')" [class]="cx('content')" (mouseenter)="moveBar()" (scroll)="onScroll($event)">
|
|
496
|
-
@if (!contentTemplate() && !_contentTemplate) {
|
|
493
|
+
@if (!contentTemplate() && !_contentTemplate()) {
|
|
497
494
|
<ng-content></ng-content>
|
|
498
495
|
}
|
|
499
|
-
<ng-container *ngTemplateOutlet="contentTemplate() || _contentTemplate"></ng-container>
|
|
496
|
+
<ng-container *ngTemplateOutlet="contentTemplate() || _contentTemplate()"></ng-container>
|
|
500
497
|
</div>
|
|
501
498
|
</div>
|
|
502
499
|
<div
|
|
@@ -506,7 +503,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
506
503
|
tabindex="0"
|
|
507
504
|
role="scrollbar"
|
|
508
505
|
[attr.aria-orientation]="'horizontal'"
|
|
509
|
-
[attr.aria-valuenow]="lastScrollLeft"
|
|
506
|
+
[attr.aria-valuenow]="lastScrollLeft()"
|
|
510
507
|
[attr.aria-controls]="contentId"
|
|
511
508
|
[attr.data-pc-group-section]="'bar'"
|
|
512
509
|
(mousedown)="onXBarMouseDown($event)"
|
|
@@ -522,7 +519,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
522
519
|
tabindex="0"
|
|
523
520
|
role="scrollbar"
|
|
524
521
|
[attr.aria-orientation]="'vertical'"
|
|
525
|
-
[attr.aria-valuenow]="lastScrollTop"
|
|
522
|
+
[attr.aria-valuenow]="lastScrollTop()"
|
|
526
523
|
[attr.aria-controls]="contentId"
|
|
527
524
|
(mousedown)="onYBarMouseDown($event)"
|
|
528
525
|
(keydown)="onKeyDown($event)"
|
|
@@ -533,18 +530,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.1", ngImpor
|
|
|
533
530
|
`,
|
|
534
531
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
535
532
|
encapsulation: ViewEncapsulation.None,
|
|
536
|
-
providers: [ScrollPanelStyle, { provide:
|
|
533
|
+
providers: [ScrollPanelStyle, { provide: PARENT_INSTANCE, useExisting: ScrollPanel }],
|
|
537
534
|
host: {
|
|
538
|
-
'[class]':
|
|
535
|
+
'[class]': "cx('root')"
|
|
539
536
|
},
|
|
540
537
|
hostDirectives: [Bind]
|
|
541
538
|
}]
|
|
542
|
-
}], propDecorators: {
|
|
543
|
-
type: Input
|
|
544
|
-
}], step: [{
|
|
545
|
-
type: Input,
|
|
546
|
-
args: [{ transform: numberAttribute }]
|
|
547
|
-
}], contentViewChild: [{ type: i0.ViewChild, args: ['content', { isSignal: true }] }], xBarViewChild: [{ type: i0.ViewChild, args: ['xBar', { isSignal: true }] }], yBarViewChild: [{ type: i0.ViewChild, args: ['yBar', { isSignal: true }] }], contentTemplate: [{ type: i0.ContentChild, args: ['content', { ...{ descendants: false }, isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }] } });
|
|
539
|
+
}], ctorParameters: () => [], propDecorators: { step: [{ type: i0.Input, args: [{ isSignal: true, alias: "step", required: false }] }], contentViewChild: [{ type: i0.ViewChild, args: ['content', { isSignal: true }] }], xBarViewChild: [{ type: i0.ViewChild, args: ['xBar', { isSignal: true }] }], yBarViewChild: [{ type: i0.ViewChild, args: ['yBar', { isSignal: true }] }], contentTemplate: [{ type: i0.ContentChild, args: ['content', { ...{ descendants: false }, isSignal: true }] }], templates: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => PrimeTemplate), { isSignal: true }] }] } });
|
|
548
540
|
class ScrollPanelModule {
|
|
549
541
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.1", ngImport: i0, type: ScrollPanelModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
550
542
|
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.2.1", ngImport: i0, type: ScrollPanelModule, imports: [ScrollPanel, SharedModule, BindModule], exports: [ScrollPanel, SharedModule, BindModule] });
|