primereact 10.0.0 → 10.0.2
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/README.md +1 -1
- package/accordion/accordion.esm.js +0 -1
- package/api/api.esm.js +0 -1
- package/autocomplete/autocomplete.esm.js +8 -7
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/avatar/avatar.esm.js +0 -1
- package/avatargroup/avatargroup.esm.js +0 -1
- package/badge/badge.esm.js +0 -1
- package/blockui/blockui.esm.js +3 -1
- package/blockui/blockui.esm.min.js +1 -1
- package/breadcrumb/breadcrumb.esm.js +0 -1
- package/button/button.esm.js +0 -1
- package/calendar/calendar.esm.js +2 -1
- package/calendar/calendar.esm.min.js +1 -1
- package/card/card.esm.js +0 -1
- package/carousel/carousel.esm.js +7 -8
- package/carousel/carousel.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.esm.js +0 -1
- package/chart/chart.esm.js +0 -1
- package/checkbox/checkbox.esm.js +0 -1
- package/chip/chip.esm.js +0 -1
- package/chips/chips.esm.js +0 -1
- package/colorpicker/colorpicker.esm.js +0 -1
- package/column/column.esm.js +0 -1
- package/columngroup/columngroup.esm.js +0 -1
- package/componentbase/componentbase.cjs.js +12 -7
- package/componentbase/componentbase.cjs.min.js +1 -1
- package/componentbase/componentbase.esm.js +23 -13
- package/componentbase/componentbase.esm.min.js +1 -1
- package/componentbase/componentbase.js +12 -7
- package/componentbase/componentbase.min.js +1 -1
- package/confirmdialog/confirmdialog.esm.js +0 -1
- package/confirmpopup/confirmpopup.esm.js +0 -1
- package/contextmenu/contextmenu.esm.js +0 -1
- package/core/core.js +12 -7
- package/core/core.min.js +1 -1
- package/csstransition/csstransition.esm.js +0 -1
- package/datascroller/datascroller.esm.js +0 -1
- package/datatable/datatable.esm.js +0 -1
- package/dataview/dataview.esm.js +0 -1
- package/deferredcontent/deferredcontent.esm.js +0 -1
- package/dialog/dialog.esm.js +2 -1
- package/dialog/dialog.esm.min.js +1 -1
- package/divider/divider.esm.js +0 -1
- package/dock/dock.esm.js +0 -1
- package/dropdown/dropdown.esm.js +0 -1
- package/editor/editor.esm.js +0 -1
- package/fieldset/fieldset.esm.js +0 -1
- package/fileupload/fileupload.esm.js +0 -1
- package/galleria/galleria.esm.js +11 -7
- package/galleria/galleria.esm.min.js +1 -1
- package/hooks/hooks.esm.js +0 -6
- package/iconbase/iconbase.esm.js +0 -1
- package/icons/angledoubledown/index.esm.js +0 -1
- package/icons/angledoubleleft/index.esm.js +0 -1
- package/icons/angledoubleright/index.esm.js +0 -1
- package/icons/angledoubleup/index.esm.js +0 -1
- package/icons/angledown/index.esm.js +0 -1
- package/icons/angleleft/index.esm.js +0 -1
- package/icons/angleright/index.esm.js +0 -1
- package/icons/angleup/index.esm.js +0 -1
- package/icons/arrowdown/index.esm.js +0 -1
- package/icons/arrowup/index.esm.js +0 -1
- package/icons/ban/index.esm.js +0 -1
- package/icons/bars/index.esm.js +0 -1
- package/icons/calendar/index.esm.js +0 -1
- package/icons/check/index.esm.js +0 -1
- package/icons/chevrondown/index.esm.js +0 -1
- package/icons/chevronleft/index.esm.js +0 -1
- package/icons/chevronright/index.esm.js +0 -1
- package/icons/chevronup/index.esm.js +0 -1
- package/icons/download/index.esm.js +0 -1
- package/icons/exclamationtriangle/index.esm.js +0 -1
- package/icons/eye/index.esm.js +0 -1
- package/icons/eyeslash/index.esm.js +0 -1
- package/icons/filter/index.esm.js +0 -1
- package/icons/filterslash/index.esm.js +0 -1
- package/icons/infocircle/index.esm.js +0 -1
- package/icons/minus/index.esm.js +0 -1
- package/icons/pencil/index.esm.js +0 -1
- package/icons/plus/index.esm.js +0 -1
- package/icons/refresh/index.esm.js +0 -1
- package/icons/search/index.esm.js +0 -1
- package/icons/searchminus/index.esm.js +0 -1
- package/icons/searchplus/index.esm.js +0 -1
- package/icons/sortalt/index.esm.js +0 -1
- package/icons/sortamountdown/index.esm.js +0 -1
- package/icons/sortamountupalt/index.esm.js +0 -1
- package/icons/spinner/index.esm.js +0 -1
- package/icons/star/index.esm.js +0 -1
- package/icons/starfill/index.esm.js +0 -1
- package/icons/thlarge/index.esm.js +0 -1
- package/icons/times/index.esm.js +0 -1
- package/icons/timescircle/index.esm.js +0 -1
- package/icons/trash/index.esm.js +0 -1
- package/icons/undo/index.esm.js +0 -1
- package/icons/upload/index.esm.js +0 -1
- package/icons/windowmaximize/index.esm.js +0 -1
- package/icons/windowminimize/index.esm.js +0 -1
- package/image/image.esm.js +2 -1
- package/image/image.esm.min.js +1 -1
- package/inplace/inplace.esm.js +0 -1
- package/inputmask/inputmask.esm.js +0 -1
- package/inputnumber/inputnumber.esm.js +0 -1
- package/inputswitch/inputswitch.esm.js +0 -1
- package/inputtext/inputtext.esm.js +0 -1
- package/inputtextarea/inputtextarea.esm.js +0 -1
- package/keyfilter/keyfilter.esm.js +0 -1
- package/knob/knob.esm.js +0 -1
- package/listbox/listbox.esm.js +0 -1
- package/megamenu/megamenu.esm.js +0 -1
- package/mention/mention.esm.js +0 -1
- package/menu/menu.esm.js +0 -1
- package/menubar/menubar.esm.js +0 -1
- package/message/message.esm.js +0 -1
- package/messages/messages.esm.js +1 -2
- package/messages/messages.esm.min.js +1 -1
- package/multiselect/multiselect.esm.js +0 -1
- package/multistatecheckbox/multistatecheckbox.esm.js +0 -1
- package/orderlist/orderlist.esm.js +9 -5
- package/orderlist/orderlist.esm.min.js +1 -1
- package/organizationchart/organizationchart.esm.js +0 -1
- package/overlaypanel/overlaypanel.esm.js +0 -1
- package/overlayservice/overlayservice.esm.js +0 -1
- package/package.json +2 -2
- package/paginator/paginator.esm.js +0 -1
- package/panel/panel.esm.js +0 -1
- package/panelmenu/panelmenu.esm.js +0 -1
- package/passthrough/index.esm.js +0 -1
- package/passthrough/tailwind/index.cjs.js +2 -4
- package/passthrough/tailwind/index.cjs.min.js +1 -1
- package/passthrough/tailwind/index.esm.js +149 -148
- package/passthrough/tailwind/index.esm.min.js +1 -1
- package/passthrough/tailwind/index.js +2 -4
- package/passthrough/tailwind/index.min.js +1 -1
- package/password/password.esm.js +0 -1
- package/picklist/picklist.esm.js +0 -1
- package/portal/portal.esm.js +0 -1
- package/primereact.all.cjs.js +12 -7
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +70 -42
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +12 -7
- package/primereact.all.min.js +1 -1
- package/progressbar/progressbar.esm.js +0 -1
- package/progressspinner/progressspinner.esm.js +0 -1
- package/radiobutton/radiobutton.esm.js +0 -1
- package/rating/rating.esm.js +0 -1
- package/ripple/ripple.esm.js +0 -1
- package/row/row.esm.js +0 -1
- package/scrollpanel/scrollpanel.esm.js +0 -1
- package/scrolltop/scrolltop.esm.js +0 -1
- package/selectbutton/selectbutton.esm.js +0 -1
- package/sidebar/sidebar.esm.js +2 -1
- package/sidebar/sidebar.esm.min.js +1 -1
- package/skeleton/skeleton.esm.js +0 -1
- package/slidemenu/slidemenu.esm.js +0 -1
- package/slider/slider.esm.js +0 -1
- package/speeddial/speeddial.esm.js +0 -1
- package/splitbutton/splitbutton.esm.js +0 -1
- package/splitter/splitter.esm.js +0 -1
- package/steps/steps.esm.js +0 -1
- package/styleclass/styleclass.esm.js +0 -1
- package/tabmenu/tabmenu.esm.js +0 -1
- package/tabview/tabview.esm.js +0 -1
- package/tag/tag.esm.js +0 -1
- package/terminal/terminal.esm.js +0 -1
- package/terminalservice/terminalservice.esm.js +0 -1
- package/tieredmenu/tieredmenu.esm.js +0 -1
- package/timeline/timeline.esm.js +0 -1
- package/toast/toast.esm.js +0 -1
- package/togglebutton/togglebutton.esm.js +0 -1
- package/toolbar/toolbar.esm.js +0 -1
- package/tooltip/tooltip.esm.js +0 -1
- package/tree/tree.esm.js +0 -1
- package/treeselect/treeselect.esm.js +0 -1
- package/treetable/treetable.esm.js +0 -1
- package/tristatecheckbox/tristatecheckbox.esm.js +0 -1
- package/utils/utils.esm.js +0 -1
- package/virtualscroller/virtualscroller.esm.js +0 -1
- package/web-types.json +1 -1
- package/accordion/accordion.esm.min.mjs +0 -1
- package/accordion/accordion.esm.mjs +0 -420
- package/api/api.esm.min.mjs +0 -1
- package/api/api.esm.mjs +0 -943
- package/autocomplete/autocomplete.esm.min.mjs +0 -1
- package/autocomplete/autocomplete.esm.mjs +0 -1128
- package/avatar/avatar.esm.min.mjs +0 -1
- package/avatar/avatar.esm.mjs +0 -244
- package/avatargroup/avatargroup.esm.min.mjs +0 -1
- package/avatargroup/avatargroup.esm.mjs +0 -54
- package/badge/badge.esm.min.mjs +0 -1
- package/badge/badge.esm.mjs +0 -109
- package/blockui/blockui.esm.min.mjs +0 -1
- package/blockui/blockui.esm.mjs +0 -267
- package/breadcrumb/breadcrumb.esm.min.mjs +0 -1
- package/breadcrumb/breadcrumb.esm.mjs +0 -350
- package/button/button.esm.min.mjs +0 -1
- package/button/button.esm.mjs +0 -294
- package/calendar/calendar.esm.min.mjs +0 -1
- package/calendar/calendar.esm.mjs +0 -3474
- package/card/card.esm.min.mjs +0 -1
- package/card/card.esm.mjs +0 -97
- package/carousel/carousel.esm.min.mjs +0 -1
- package/carousel/carousel.esm.mjs +0 -800
- package/cascadeselect/cascadeselect.esm.min.mjs +0 -1
- package/cascadeselect/cascadeselect.esm.mjs +0 -818
- package/chart/chart.esm.min.mjs +0 -1
- package/chart/chart.esm.mjs +0 -154
- package/checkbox/checkbox.esm.min.mjs +0 -1
- package/checkbox/checkbox.esm.mjs +0 -356
- package/chip/chip.esm.min.mjs +0 -1
- package/chip/chip.esm.mjs +0 -247
- package/chips/chips.esm.min.mjs +0 -1
- package/chips/chips.esm.mjs +0 -500
- package/colorpicker/colorpicker.esm.min.mjs +0 -1
- package/colorpicker/colorpicker.esm.mjs +0 -787
- package/column/column.esm.min.mjs +0 -1
- package/column/column.esm.mjs +0 -7
- package/columngroup/columngroup.esm.min.mjs +0 -1
- package/columngroup/columngroup.esm.mjs +0 -5
- package/componentbase/componentbase.esm.min.mjs +0 -1
- package/componentbase/componentbase.esm.mjs +0 -328
- package/confirmdialog/confirmdialog.esm.min.mjs +0 -1
- package/confirmdialog/confirmdialog.esm.mjs +0 -375
- package/confirmpopup/confirmpopup.esm.min.mjs +0 -1
- package/confirmpopup/confirmpopup.esm.mjs +0 -609
- package/contextmenu/contextmenu.esm.min.mjs +0 -1
- package/contextmenu/contextmenu.esm.mjs +0 -663
- package/csstransition/csstransition.esm.min.mjs +0 -1
- package/csstransition/csstransition.esm.mjs +0 -137
- package/datascroller/datascroller.esm.min.mjs +0 -1
- package/datascroller/datascroller.esm.mjs +0 -319
- package/datatable/datatable.esm.min.mjs +0 -1
- package/datatable/datatable.esm.mjs +0 -6635
- package/dataview/dataview.esm.min.mjs +0 -1
- package/dataview/dataview.esm.mjs +0 -505
- package/deferredcontent/deferredcontent.esm.min.mjs +0 -1
- package/deferredcontent/deferredcontent.esm.mjs +0 -132
- package/dialog/dialog.esm.min.mjs +0 -1
- package/dialog/dialog.esm.mjs +0 -984
- package/divider/divider.esm.min.mjs +0 -1
- package/divider/divider.esm.mjs +0 -78
- package/dock/dock.esm.min.mjs +0 -1
- package/dock/dock.esm.mjs +0 -347
- package/dropdown/dropdown.esm.min.mjs +0 -1
- package/dropdown/dropdown.esm.mjs +0 -1379
- package/editor/editor.esm.min.mjs +0 -1
- package/editor/editor.esm.mjs +0 -337
- package/fieldset/fieldset.esm.min.mjs +0 -1
- package/fieldset/fieldset.esm.mjs +0 -269
- package/fileupload/fileupload.esm.min.mjs +0 -1
- package/fileupload/fileupload.esm.mjs +0 -1004
- package/galleria/galleria.esm.min.mjs +0 -1
- package/galleria/galleria.esm.mjs +0 -1094
- package/hooks/hooks.esm.min.mjs +0 -1
- package/hooks/hooks.esm.mjs +0 -1036
- package/iconbase/iconbase.esm.min.mjs +0 -1
- package/iconbase/iconbase.esm.mjs +0 -32
- package/icons/angledoubledown/index.esm.min.mjs +0 -1
- package/icons/angledoubledown/index.esm.mjs +0 -38
- package/icons/angledoubleleft/index.esm.min.mjs +0 -1
- package/icons/angledoubleleft/index.esm.mjs +0 -38
- package/icons/angledoubleright/index.esm.min.mjs +0 -1
- package/icons/angledoubleright/index.esm.mjs +0 -38
- package/icons/angledoubleup/index.esm.min.mjs +0 -1
- package/icons/angledoubleup/index.esm.mjs +0 -38
- package/icons/angledown/index.esm.min.mjs +0 -1
- package/icons/angledown/index.esm.mjs +0 -36
- package/icons/angleleft/index.esm.min.mjs +0 -1
- package/icons/angleleft/index.esm.mjs +0 -36
- package/icons/angleright/index.esm.min.mjs +0 -1
- package/icons/angleright/index.esm.mjs +0 -36
- package/icons/angleup/index.esm.min.mjs +0 -1
- package/icons/angleup/index.esm.mjs +0 -36
- package/icons/arrowdown/index.esm.min.mjs +0 -1
- package/icons/arrowdown/index.esm.mjs +0 -660
- package/icons/arrowup/index.esm.min.mjs +0 -1
- package/icons/arrowup/index.esm.mjs +0 -660
- package/icons/ban/index.esm.min.mjs +0 -1
- package/icons/ban/index.esm.mjs +0 -658
- package/icons/bars/index.esm.min.mjs +0 -1
- package/icons/bars/index.esm.mjs +0 -38
- package/icons/calendar/index.esm.min.mjs +0 -1
- package/icons/calendar/index.esm.mjs +0 -36
- package/icons/check/index.esm.min.mjs +0 -1
- package/icons/check/index.esm.mjs +0 -36
- package/icons/chevrondown/index.esm.min.mjs +0 -1
- package/icons/chevrondown/index.esm.mjs +0 -36
- package/icons/chevronleft/index.esm.min.mjs +0 -1
- package/icons/chevronleft/index.esm.mjs +0 -36
- package/icons/chevronright/index.esm.min.mjs +0 -1
- package/icons/chevronright/index.esm.mjs +0 -36
- package/icons/chevronup/index.esm.min.mjs +0 -1
- package/icons/chevronup/index.esm.mjs +0 -36
- package/icons/download/index.esm.min.mjs +0 -1
- package/icons/download/index.esm.mjs +0 -660
- package/icons/exclamationtriangle/index.esm.min.mjs +0 -1
- package/icons/exclamationtriangle/index.esm.mjs +0 -664
- package/icons/eye/index.esm.min.mjs +0 -1
- package/icons/eye/index.esm.mjs +0 -38
- package/icons/eyeslash/index.esm.min.mjs +0 -1
- package/icons/eyeslash/index.esm.mjs +0 -660
- package/icons/filter/index.esm.min.mjs +0 -1
- package/icons/filter/index.esm.mjs +0 -658
- package/icons/filterslash/index.esm.min.mjs +0 -1
- package/icons/filterslash/index.esm.mjs +0 -660
- package/icons/infocircle/index.esm.min.mjs +0 -1
- package/icons/infocircle/index.esm.mjs +0 -660
- package/icons/minus/index.esm.min.mjs +0 -1
- package/icons/minus/index.esm.mjs +0 -36
- package/icons/pencil/index.esm.min.mjs +0 -1
- package/icons/pencil/index.esm.mjs +0 -658
- package/icons/plus/index.esm.min.mjs +0 -1
- package/icons/plus/index.esm.mjs +0 -658
- package/icons/refresh/index.esm.min.mjs +0 -1
- package/icons/refresh/index.esm.mjs +0 -660
- package/icons/search/index.esm.min.mjs +0 -1
- package/icons/search/index.esm.mjs +0 -660
- package/icons/searchminus/index.esm.min.mjs +0 -1
- package/icons/searchminus/index.esm.mjs +0 -660
- package/icons/searchplus/index.esm.min.mjs +0 -1
- package/icons/searchplus/index.esm.mjs +0 -660
- package/icons/sortalt/index.esm.min.mjs +0 -1
- package/icons/sortalt/index.esm.mjs +0 -667
- package/icons/sortamountdown/index.esm.min.mjs +0 -1
- package/icons/sortamountdown/index.esm.mjs +0 -673
- package/icons/sortamountupalt/index.esm.min.mjs +0 -1
- package/icons/sortamountupalt/index.esm.mjs +0 -673
- package/icons/spinner/index.esm.min.mjs +0 -1
- package/icons/spinner/index.esm.mjs +0 -658
- package/icons/star/index.esm.min.mjs +0 -1
- package/icons/star/index.esm.mjs +0 -658
- package/icons/starfill/index.esm.min.mjs +0 -1
- package/icons/starfill/index.esm.mjs +0 -658
- package/icons/thlarge/index.esm.min.mjs +0 -1
- package/icons/thlarge/index.esm.mjs +0 -660
- package/icons/times/index.esm.min.mjs +0 -1
- package/icons/times/index.esm.mjs +0 -36
- package/icons/timescircle/index.esm.min.mjs +0 -1
- package/icons/timescircle/index.esm.mjs +0 -660
- package/icons/trash/index.esm.min.mjs +0 -1
- package/icons/trash/index.esm.mjs +0 -660
- package/icons/undo/index.esm.min.mjs +0 -1
- package/icons/undo/index.esm.mjs +0 -660
- package/icons/upload/index.esm.min.mjs +0 -1
- package/icons/upload/index.esm.mjs +0 -660
- package/icons/windowmaximize/index.esm.min.mjs +0 -1
- package/icons/windowmaximize/index.esm.mjs +0 -660
- package/icons/windowminimize/index.esm.min.mjs +0 -1
- package/icons/windowminimize/index.esm.mjs +0 -660
- package/image/image.esm.min.mjs +0 -1
- package/image/image.esm.mjs +0 -1163
- package/inplace/inplace.esm.min.mjs +0 -1
- package/inplace/inplace.esm.mjs +0 -242
- package/inputmask/inputmask.esm.min.mjs +0 -1
- package/inputmask/inputmask.esm.mjs +0 -559
- package/inputnumber/inputnumber.esm.min.mjs +0 -1
- package/inputnumber/inputnumber.esm.mjs +0 -1208
- package/inputswitch/inputswitch.esm.min.mjs +0 -1
- package/inputswitch/inputswitch.esm.mjs +0 -290
- package/inputtext/inputtext.esm.min.mjs +0 -1
- package/inputtext/inputtext.esm.mjs +0 -170
- package/inputtextarea/inputtextarea.esm.min.mjs +0 -1
- package/inputtextarea/inputtextarea.esm.mjs +0 -219
- package/keyfilter/keyfilter.esm.min.mjs +0 -1
- package/keyfilter/keyfilter.esm.mjs +0 -107
- package/knob/knob.esm.min.mjs +0 -1
- package/knob/knob.esm.mjs +0 -317
- package/listbox/listbox.esm.min.mjs +0 -1
- package/listbox/listbox.esm.mjs +0 -809
- package/megamenu/megamenu.esm.min.mjs +0 -1
- package/megamenu/megamenu.esm.mjs +0 -715
- package/mention/mention.esm.min.mjs +0 -1
- package/mention/mention.esm.mjs +0 -770
- package/menu/menu.esm.min.mjs +0 -1
- package/menu/menu.esm.mjs +0 -484
- package/menubar/menubar.esm.min.mjs +0 -1
- package/menubar/menubar.esm.mjs +0 -583
- package/message/message.esm.min.mjs +0 -1
- package/message/message.esm.mjs +0 -168
- package/messages/messages.esm.min.mjs +0 -1
- package/messages/messages.esm.mjs +0 -438
- package/multiselect/multiselect.esm.min.mjs +0 -1
- package/multiselect/multiselect.esm.mjs +0 -1723
- package/multistatecheckbox/multistatecheckbox.esm.min.mjs +0 -1
- package/multistatecheckbox/multistatecheckbox.esm.mjs +0 -351
- package/orderlist/orderlist.esm.min.mjs +0 -1
- package/orderlist/orderlist.esm.mjs +0 -820
- package/organizationchart/organizationchart.esm.min.mjs +0 -1
- package/organizationchart/organizationchart.esm.mjs +0 -479
- package/overlaypanel/overlaypanel.esm.min.mjs +0 -1
- package/overlaypanel/overlaypanel.esm.mjs +0 -515
- package/overlayservice/overlayservice.esm.min.mjs +0 -1
- package/overlayservice/overlayservice.esm.mjs +0 -6
- package/paginator/paginator.esm.min.mjs +0 -1
- package/paginator/paginator.esm.mjs +0 -932
- package/panel/panel.esm.min.mjs +0 -1
- package/panel/panel.esm.mjs +0 -315
- package/panelmenu/panelmenu.esm.min.mjs +0 -1
- package/panelmenu/panelmenu.esm.mjs +0 -644
- package/passthrough/index.esm.min.mjs +0 -1
- package/passthrough/index.esm.mjs +0 -70
- package/passthrough/tailwind/index.esm.min.mjs +0 -1
- package/passthrough/tailwind/index.esm.mjs +0 -3513
- package/password/password.esm.min.mjs +0 -1
- package/password/password.esm.mjs +0 -566
- package/picklist/picklist.esm.min.mjs +0 -1
- package/picklist/picklist.esm.mjs +0 -1118
- package/portal/portal.esm.min.mjs +0 -1
- package/portal/portal.esm.mjs +0 -109
- package/primereact.all.esm.min.mjs +0 -1
- package/primereact.all.esm.mjs +0 -51669
- package/progressbar/progressbar.esm.min.mjs +0 -1
- package/progressbar/progressbar.esm.mjs +0 -189
- package/progressspinner/progressspinner.esm.min.mjs +0 -1
- package/progressspinner/progressspinner.esm.mjs +0 -87
- package/radiobutton/radiobutton.esm.min.mjs +0 -1
- package/radiobutton/radiobutton.esm.mjs +0 -328
- package/rating/rating.esm.min.mjs +0 -1
- package/rating/rating.esm.mjs +0 -272
- package/ripple/ripple.esm.min.mjs +0 -1
- package/ripple/ripple.esm.mjs +0 -99
- package/row/row.esm.min.mjs +0 -1
- package/row/row.esm.mjs +0 -35
- package/scrollpanel/scrollpanel.esm.min.mjs +0 -1
- package/scrollpanel/scrollpanel.esm.mjs +0 -209
- package/scrolltop/scrolltop.esm.min.mjs +0 -1
- package/scrolltop/scrolltop.esm.mjs +0 -268
- package/selectbutton/selectbutton.esm.min.mjs +0 -1
- package/selectbutton/selectbutton.esm.mjs +0 -326
- package/sidebar/sidebar.esm.min.mjs +0 -1
- package/sidebar/sidebar.esm.mjs +0 -544
- package/skeleton/skeleton.esm.min.mjs +0 -1
- package/skeleton/skeleton.esm.mjs +0 -124
- package/slidemenu/slidemenu.esm.min.mjs +0 -1
- package/slidemenu/slidemenu.esm.mjs +0 -688
- package/slider/slider.esm.min.mjs +0 -1
- package/slider/slider.esm.mjs +0 -477
- package/speeddial/speeddial.esm.min.mjs +0 -1
- package/speeddial/speeddial.esm.mjs +0 -520
- package/splitbutton/splitbutton.esm.min.mjs +0 -1
- package/splitbutton/splitbutton.esm.mjs +0 -544
- package/splitter/splitter.esm.min.mjs +0 -1
- package/splitter/splitter.esm.mjs +0 -465
- package/steps/steps.esm.min.mjs +0 -1
- package/steps/steps.esm.mjs +0 -293
- package/styleclass/styleclass.esm.min.mjs +0 -1
- package/styleclass/styleclass.esm.mjs +0 -268
- package/tabmenu/tabmenu.esm.min.mjs +0 -1
- package/tabmenu/tabmenu.esm.mjs +0 -331
- package/tabview/tabview.esm.min.mjs +0 -1
- package/tabview/tabview.esm.mjs +0 -677
- package/tag/tag.esm.min.mjs +0 -1
- package/tag/tag.esm.mjs +0 -116
- package/terminal/terminal.esm.min.mjs +0 -1
- package/terminal/terminal.esm.mjs +0 -279
- package/terminalservice/terminalservice.esm.min.mjs +0 -1
- package/terminalservice/terminalservice.esm.mjs +0 -6
- package/tieredmenu/tieredmenu.esm.min.mjs +0 -1
- package/tieredmenu/tieredmenu.esm.mjs +0 -698
- package/timeline/timeline.esm.min.mjs +0 -1
- package/timeline/timeline.esm.mjs +0 -163
- package/toast/toast.esm.min.mjs +0 -1
- package/toast/toast.esm.mjs +0 -738
- package/togglebutton/togglebutton.esm.min.mjs +0 -1
- package/togglebutton/togglebutton.esm.mjs +0 -216
- package/toolbar/toolbar.esm.min.mjs +0 -1
- package/toolbar/toolbar.esm.mjs +0 -78
- package/tooltip/tooltip.esm.min.mjs +0 -1
- package/tooltip/tooltip.esm.mjs +0 -695
- package/tree/tree.esm.min.mjs +0 -1
- package/tree/tree.esm.mjs +0 -1402
- package/treeselect/treeselect.esm.min.mjs +0 -1
- package/treeselect/treeselect.esm.mjs +0 -929
- package/treetable/treetable.esm.min.mjs +0 -1
- package/treetable/treetable.esm.mjs +0 -3093
- package/tristatecheckbox/tristatecheckbox.esm.min.mjs +0 -1
- package/tristatecheckbox/tristatecheckbox.esm.mjs +0 -291
- package/utils/utils.esm.min.mjs +0 -1
- package/utils/utils.esm.mjs +0 -2382
- package/virtualscroller/virtualscroller.esm.min.mjs +0 -1
- package/virtualscroller/virtualscroller.esm.mjs +0 -971
|
@@ -1,932 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { PrimeReactContext, ariaLabel, localeOption } from 'primereact/api';
|
|
4
|
-
import { ComponentBase, useHandleStyle } from 'primereact/componentbase';
|
|
5
|
-
import { useUpdateEffect } from 'primereact/hooks';
|
|
6
|
-
import { classNames, mergeProps, ObjectUtils, IconUtils } from 'primereact/utils';
|
|
7
|
-
import { AngleDoubleLeftIcon } from 'primereact/icons/angledoubleleft';
|
|
8
|
-
import { Ripple } from 'primereact/ripple';
|
|
9
|
-
import { InputNumber } from 'primereact/inputnumber';
|
|
10
|
-
import { AngleDoubleRightIcon } from 'primereact/icons/angledoubleright';
|
|
11
|
-
import { AngleRightIcon } from 'primereact/icons/angleright';
|
|
12
|
-
import { AngleLeftIcon } from 'primereact/icons/angleleft';
|
|
13
|
-
import { Dropdown } from 'primereact/dropdown';
|
|
14
|
-
|
|
15
|
-
function _arrayWithHoles(arr) {
|
|
16
|
-
if (Array.isArray(arr)) return arr;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
function _iterableToArrayLimit(r, l) {
|
|
20
|
-
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
21
|
-
if (null != t) {
|
|
22
|
-
var e,
|
|
23
|
-
n,
|
|
24
|
-
i,
|
|
25
|
-
u,
|
|
26
|
-
a = [],
|
|
27
|
-
f = !0,
|
|
28
|
-
o = !1;
|
|
29
|
-
try {
|
|
30
|
-
if (i = (t = t.call(r)).next, 0 === l) {
|
|
31
|
-
if (Object(t) !== t) return;
|
|
32
|
-
f = !1;
|
|
33
|
-
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
34
|
-
} catch (r) {
|
|
35
|
-
o = !0, n = r;
|
|
36
|
-
} finally {
|
|
37
|
-
try {
|
|
38
|
-
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
|
|
39
|
-
} finally {
|
|
40
|
-
if (o) throw n;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
return a;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
function _arrayLikeToArray(arr, len) {
|
|
48
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
49
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
50
|
-
return arr2;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
54
|
-
if (!o) return;
|
|
55
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
56
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
57
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
58
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
59
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
function _nonIterableRest() {
|
|
63
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
function _slicedToArray(arr, i) {
|
|
67
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
function _typeof(o) {
|
|
71
|
-
"@babel/helpers - typeof";
|
|
72
|
-
|
|
73
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
74
|
-
return typeof o;
|
|
75
|
-
} : function (o) {
|
|
76
|
-
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
77
|
-
}, _typeof(o);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
function _toPrimitive(input, hint) {
|
|
81
|
-
if (_typeof(input) !== "object" || input === null) return input;
|
|
82
|
-
var prim = input[Symbol.toPrimitive];
|
|
83
|
-
if (prim !== undefined) {
|
|
84
|
-
var res = prim.call(input, hint || "default");
|
|
85
|
-
if (_typeof(res) !== "object") return res;
|
|
86
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
87
|
-
}
|
|
88
|
-
return (hint === "string" ? String : Number)(input);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
function _toPropertyKey(arg) {
|
|
92
|
-
var key = _toPrimitive(arg, "string");
|
|
93
|
-
return _typeof(key) === "symbol" ? key : String(key);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
function _defineProperty(obj, key, value) {
|
|
97
|
-
key = _toPropertyKey(key);
|
|
98
|
-
if (key in obj) {
|
|
99
|
-
Object.defineProperty(obj, key, {
|
|
100
|
-
value: value,
|
|
101
|
-
enumerable: true,
|
|
102
|
-
configurable: true,
|
|
103
|
-
writable: true
|
|
104
|
-
});
|
|
105
|
-
} else {
|
|
106
|
-
obj[key] = value;
|
|
107
|
-
}
|
|
108
|
-
return obj;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
var classes = {
|
|
112
|
-
root: 'p-paginator p-component',
|
|
113
|
-
left: 'p-paginator-left-content',
|
|
114
|
-
end: 'p-paginator-right-content',
|
|
115
|
-
firstPageIcon: 'p-paginator-icon',
|
|
116
|
-
firstPageButton: function firstPageButton(_ref) {
|
|
117
|
-
var disabled = _ref.disabled;
|
|
118
|
-
return classNames('p-paginator-first p-paginator-element p-link', {
|
|
119
|
-
'p-disabled': disabled
|
|
120
|
-
});
|
|
121
|
-
},
|
|
122
|
-
prevPageIcon: 'p-paginator-icon',
|
|
123
|
-
prevPageButton: function prevPageButton(_ref2) {
|
|
124
|
-
var disabled = _ref2.disabled;
|
|
125
|
-
return classNames('p-paginator-prev p-paginator-element p-link', {
|
|
126
|
-
'p-disabled': disabled
|
|
127
|
-
});
|
|
128
|
-
},
|
|
129
|
-
nextPageIcon: 'p-paginator-icon',
|
|
130
|
-
nextPageButton: function nextPageButton(_ref3) {
|
|
131
|
-
var disabled = _ref3.disabled;
|
|
132
|
-
return classNames('p-paginator-next p-paginator-element p-link', {
|
|
133
|
-
'p-disabled': disabled
|
|
134
|
-
});
|
|
135
|
-
},
|
|
136
|
-
lastPageIcon: 'p-paginator-icon',
|
|
137
|
-
lastPageButton: function lastPageButton(_ref4) {
|
|
138
|
-
var disabled = _ref4.disabled;
|
|
139
|
-
return classNames('p-paginator-last p-paginator-element p-link', {
|
|
140
|
-
'p-disabled': disabled
|
|
141
|
-
});
|
|
142
|
-
},
|
|
143
|
-
pageButton: function pageButton(_ref5) {
|
|
144
|
-
var pageLink = _ref5.pageLink,
|
|
145
|
-
startPageInView = _ref5.startPageInView,
|
|
146
|
-
endPageInView = _ref5.endPageInView,
|
|
147
|
-
page = _ref5.page;
|
|
148
|
-
return classNames('p-paginator-page p-paginator-element p-link', {
|
|
149
|
-
'p-paginator-page-start': pageLink === startPageInView,
|
|
150
|
-
'p-paginator-page-end': pageLink === endPageInView,
|
|
151
|
-
'p-highlight': pageLink - 1 === page
|
|
152
|
-
});
|
|
153
|
-
},
|
|
154
|
-
pages: 'p-paginator-pages'
|
|
155
|
-
};
|
|
156
|
-
var styles = "\n@layer primereact {\n .p-paginator {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-wrap: wrap;\n }\n \n .p-paginator-left-content {\n margin-right: auto;\n }\n \n .p-paginator-right-content {\n margin-left: auto;\n }\n \n .p-paginator-page,\n .p-paginator-next,\n .p-paginator-last,\n .p-paginator-first,\n .p-paginator-prev,\n .p-paginator-current {\n cursor: pointer;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n line-height: 1;\n user-select: none;\n overflow: hidden;\n position: relative;\n }\n \n .p-paginator-element:focus {\n z-index: 1;\n position: relative;\n }\n}\n";
|
|
157
|
-
var PaginatorBase = ComponentBase.extend({
|
|
158
|
-
defaultProps: {
|
|
159
|
-
__TYPE: 'Paginator',
|
|
160
|
-
__parentMetadata: null,
|
|
161
|
-
totalRecords: 0,
|
|
162
|
-
rows: 0,
|
|
163
|
-
first: 0,
|
|
164
|
-
pageLinkSize: 5,
|
|
165
|
-
rowsPerPageOptions: null,
|
|
166
|
-
alwaysShow: true,
|
|
167
|
-
style: null,
|
|
168
|
-
className: null,
|
|
169
|
-
template: 'FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown',
|
|
170
|
-
onPageChange: null,
|
|
171
|
-
leftContent: null,
|
|
172
|
-
rightContent: null,
|
|
173
|
-
dropdownAppendTo: null,
|
|
174
|
-
currentPageReportTemplate: '({currentPage} of {totalPages})',
|
|
175
|
-
children: undefined
|
|
176
|
-
},
|
|
177
|
-
css: {
|
|
178
|
-
classes: classes,
|
|
179
|
-
styles: styles
|
|
180
|
-
}
|
|
181
|
-
});
|
|
182
|
-
var CurrentPageReportBase = ComponentBase.extend({
|
|
183
|
-
defaultProps: {
|
|
184
|
-
__TYPE: 'CurrentPageReport',
|
|
185
|
-
pageCount: null,
|
|
186
|
-
page: null,
|
|
187
|
-
first: null,
|
|
188
|
-
rows: null,
|
|
189
|
-
totalRecords: null,
|
|
190
|
-
reportTemplate: '({currentPage} of {totalPages})',
|
|
191
|
-
template: null,
|
|
192
|
-
children: undefined
|
|
193
|
-
}
|
|
194
|
-
});
|
|
195
|
-
var FirstPageLinkBase = ComponentBase.extend({
|
|
196
|
-
defaultProps: {
|
|
197
|
-
__TYPE: 'FirstPageLink',
|
|
198
|
-
disabled: false,
|
|
199
|
-
onClick: null,
|
|
200
|
-
template: null,
|
|
201
|
-
firstPageLinkIcon: null,
|
|
202
|
-
children: undefined
|
|
203
|
-
}
|
|
204
|
-
});
|
|
205
|
-
var JumpToPageInputBase = ComponentBase.extend({
|
|
206
|
-
defaultProps: {
|
|
207
|
-
__TYPE: 'JumpToPageInput',
|
|
208
|
-
page: null,
|
|
209
|
-
rows: null,
|
|
210
|
-
pageCount: null,
|
|
211
|
-
disabled: false,
|
|
212
|
-
template: null,
|
|
213
|
-
onChange: null,
|
|
214
|
-
children: undefined,
|
|
215
|
-
metaData: null,
|
|
216
|
-
ptm: null
|
|
217
|
-
}
|
|
218
|
-
});
|
|
219
|
-
var LastPageLinkBase = ComponentBase.extend({
|
|
220
|
-
defaultProps: {
|
|
221
|
-
__TYPE: 'LastPageLink',
|
|
222
|
-
disabled: false,
|
|
223
|
-
onClick: null,
|
|
224
|
-
template: null,
|
|
225
|
-
lastPageLinkIcon: null,
|
|
226
|
-
children: undefined
|
|
227
|
-
}
|
|
228
|
-
});
|
|
229
|
-
var NextPageLinkBase = ComponentBase.extend({
|
|
230
|
-
defaultProps: {
|
|
231
|
-
__TYPE: 'NextPageLink',
|
|
232
|
-
disabled: false,
|
|
233
|
-
onClick: null,
|
|
234
|
-
template: null,
|
|
235
|
-
nextPageLinkIcon: null,
|
|
236
|
-
children: undefined
|
|
237
|
-
}
|
|
238
|
-
});
|
|
239
|
-
var PageLinksBase = ComponentBase.extend({
|
|
240
|
-
defaultProps: {
|
|
241
|
-
__TYPE: 'PageLinks',
|
|
242
|
-
value: null,
|
|
243
|
-
page: null,
|
|
244
|
-
rows: null,
|
|
245
|
-
pageCount: null,
|
|
246
|
-
links: null,
|
|
247
|
-
template: null,
|
|
248
|
-
children: undefined
|
|
249
|
-
}
|
|
250
|
-
});
|
|
251
|
-
var PrevPageLinkBase = ComponentBase.extend({
|
|
252
|
-
defaultProps: {
|
|
253
|
-
__TYPE: 'PrevPageLink',
|
|
254
|
-
disabled: false,
|
|
255
|
-
onClick: null,
|
|
256
|
-
template: null,
|
|
257
|
-
prevPageLinkIcon: null,
|
|
258
|
-
children: undefined
|
|
259
|
-
}
|
|
260
|
-
});
|
|
261
|
-
var RowsPerPageDropdownBase = ComponentBase.extend({
|
|
262
|
-
defaultProps: {
|
|
263
|
-
__TYPE: 'RowsPerPageDropdown',
|
|
264
|
-
options: null,
|
|
265
|
-
value: null,
|
|
266
|
-
page: null,
|
|
267
|
-
pageCount: null,
|
|
268
|
-
totalRecords: 0,
|
|
269
|
-
appendTo: null,
|
|
270
|
-
onChange: null,
|
|
271
|
-
template: null,
|
|
272
|
-
disabled: false,
|
|
273
|
-
children: undefined
|
|
274
|
-
}
|
|
275
|
-
});
|
|
276
|
-
|
|
277
|
-
function ownKeys$5(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
278
|
-
function _objectSpread$5(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$5(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$5(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
279
|
-
var CurrentPageReport = /*#__PURE__*/React.memo(function (inProps) {
|
|
280
|
-
var context = React.useContext(PrimeReactContext);
|
|
281
|
-
var props = CurrentPageReportBase.getProps(inProps, context);
|
|
282
|
-
var report = {
|
|
283
|
-
currentPage: props.page + 1,
|
|
284
|
-
totalPages: props.pageCount,
|
|
285
|
-
first: Math.min(props.first + 1, props.totalRecords),
|
|
286
|
-
last: Math.min(props.first + props.rows, props.totalRecords),
|
|
287
|
-
rows: props.rows,
|
|
288
|
-
totalRecords: props.totalRecords
|
|
289
|
-
};
|
|
290
|
-
var text = props.reportTemplate.replace('{currentPage}', report.currentPage).replace('{totalPages}', report.totalPages).replace('{first}', report.first).replace('{last}', report.last).replace('{rows}', report.rows).replace('{totalRecords}', report.totalRecords);
|
|
291
|
-
var currentProps = mergeProps({
|
|
292
|
-
className: 'p-paginator-current'
|
|
293
|
-
}, props.ptm('current', {
|
|
294
|
-
hostName: props.hostName
|
|
295
|
-
}));
|
|
296
|
-
var element = /*#__PURE__*/React.createElement("span", currentProps, text);
|
|
297
|
-
if (props.template) {
|
|
298
|
-
var defaultOptions = _objectSpread$5(_objectSpread$5({}, report), {
|
|
299
|
-
className: 'p-paginator-current',
|
|
300
|
-
element: element,
|
|
301
|
-
props: props
|
|
302
|
-
});
|
|
303
|
-
return ObjectUtils.getJSXElement(props.template, defaultOptions);
|
|
304
|
-
}
|
|
305
|
-
return element;
|
|
306
|
-
});
|
|
307
|
-
CurrentPageReport.displayName = 'CurrentPageReport';
|
|
308
|
-
|
|
309
|
-
function ownKeys$4(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
310
|
-
function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$4(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$4(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
311
|
-
var FirstPageLink = /*#__PURE__*/React.memo(function (inProps) {
|
|
312
|
-
var context = React.useContext(PrimeReactContext);
|
|
313
|
-
var props = FirstPageLinkBase.getProps(inProps, context);
|
|
314
|
-
var ptm = props.ptm,
|
|
315
|
-
cx = props.cx;
|
|
316
|
-
var getPTOptions = function getPTOptions(key) {
|
|
317
|
-
return ptm(key, {
|
|
318
|
-
hostName: props.hostName,
|
|
319
|
-
context: {
|
|
320
|
-
disabled: props.disabled
|
|
321
|
-
}
|
|
322
|
-
});
|
|
323
|
-
};
|
|
324
|
-
var className = classNames('p-paginator-first p-paginator-element p-link', {
|
|
325
|
-
'p-disabled': props.disabled
|
|
326
|
-
});
|
|
327
|
-
var iconClassName = 'p-paginator-icon';
|
|
328
|
-
var firstPageIconProps = mergeProps({
|
|
329
|
-
className: cx('firstPageIcon')
|
|
330
|
-
}, getPTOptions('firstPageIcon'));
|
|
331
|
-
var icon = props.firstPageLinkIcon || /*#__PURE__*/React.createElement(AngleDoubleLeftIcon, firstPageIconProps);
|
|
332
|
-
var firstPageLinkIcon = IconUtils.getJSXIcon(icon, _objectSpread$4({}, firstPageIconProps), {
|
|
333
|
-
props: props
|
|
334
|
-
});
|
|
335
|
-
var firstPageButtonProps = mergeProps({
|
|
336
|
-
type: 'button',
|
|
337
|
-
className: cx('firstPageButton', {
|
|
338
|
-
disabled: props.disabled
|
|
339
|
-
}),
|
|
340
|
-
onClick: props.onClick,
|
|
341
|
-
disabled: props.disabled,
|
|
342
|
-
'aria-label': ariaLabel('firstPageLabel')
|
|
343
|
-
}, getPTOptions('firstPageButton'));
|
|
344
|
-
var element = /*#__PURE__*/React.createElement("button", firstPageButtonProps, firstPageLinkIcon, /*#__PURE__*/React.createElement(Ripple, null));
|
|
345
|
-
if (props.template) {
|
|
346
|
-
var defaultOptions = {
|
|
347
|
-
onClick: props.onClick,
|
|
348
|
-
className: className,
|
|
349
|
-
iconClassName: iconClassName,
|
|
350
|
-
disabled: props.disabled,
|
|
351
|
-
element: element,
|
|
352
|
-
props: props
|
|
353
|
-
};
|
|
354
|
-
return ObjectUtils.getJSXElement(props.template, defaultOptions);
|
|
355
|
-
}
|
|
356
|
-
return element;
|
|
357
|
-
});
|
|
358
|
-
FirstPageLink.displayName = 'FirstPageLink';
|
|
359
|
-
|
|
360
|
-
var JumpToPageInput = /*#__PURE__*/React.memo(function (inProps) {
|
|
361
|
-
var context = React.useContext(PrimeReactContext);
|
|
362
|
-
var props = JumpToPageInputBase.getProps(inProps, context);
|
|
363
|
-
var onChange = function onChange(event) {
|
|
364
|
-
if (props.onChange) {
|
|
365
|
-
props.onChange(props.rows * (event.value - 1), props.rows);
|
|
366
|
-
}
|
|
367
|
-
};
|
|
368
|
-
var value = props.pageCount > 0 ? props.page + 1 : 0;
|
|
369
|
-
var element = /*#__PURE__*/React.createElement(InputNumber, {
|
|
370
|
-
value: value,
|
|
371
|
-
onChange: onChange,
|
|
372
|
-
className: "p-paginator-page-input",
|
|
373
|
-
disabled: props.disabled,
|
|
374
|
-
pt: props.ptm('JTPInput'),
|
|
375
|
-
unstyled: props.unstyled,
|
|
376
|
-
__parentMetadata: {
|
|
377
|
-
parent: props.metaData
|
|
378
|
-
}
|
|
379
|
-
});
|
|
380
|
-
if (props.template) {
|
|
381
|
-
var defaultOptions = {
|
|
382
|
-
value: value,
|
|
383
|
-
onChange: onChange,
|
|
384
|
-
disabled: props.disabled,
|
|
385
|
-
className: 'p-paginator-page-input',
|
|
386
|
-
element: element,
|
|
387
|
-
props: props
|
|
388
|
-
};
|
|
389
|
-
return ObjectUtils.getJSXElement(props.template, defaultOptions);
|
|
390
|
-
}
|
|
391
|
-
return element;
|
|
392
|
-
});
|
|
393
|
-
JumpToPageInput.displayName = 'JumpToPageInput';
|
|
394
|
-
|
|
395
|
-
function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
396
|
-
function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$3(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
397
|
-
var LastPageLink = /*#__PURE__*/React.memo(function (inProps) {
|
|
398
|
-
var context = React.useContext(PrimeReactContext);
|
|
399
|
-
var props = LastPageLinkBase.getProps(inProps, context);
|
|
400
|
-
var ptm = props.ptm,
|
|
401
|
-
cx = props.cx;
|
|
402
|
-
var getPTOptions = function getPTOptions(key) {
|
|
403
|
-
return ptm(key, {
|
|
404
|
-
hostName: props.hostName,
|
|
405
|
-
context: {
|
|
406
|
-
disabled: props.disabled
|
|
407
|
-
}
|
|
408
|
-
});
|
|
409
|
-
};
|
|
410
|
-
var className = classNames('p-paginator-last p-paginator-element p-link', {
|
|
411
|
-
'p-disabled': props.disabled
|
|
412
|
-
});
|
|
413
|
-
var iconClassName = 'p-paginator-icon';
|
|
414
|
-
var lastPageIconProps = mergeProps({
|
|
415
|
-
className: cx('lastPageIcon')
|
|
416
|
-
}, getPTOptions('lastPageIcon'));
|
|
417
|
-
var icon = props.lastPageLinkIcon || /*#__PURE__*/React.createElement(AngleDoubleRightIcon, lastPageIconProps);
|
|
418
|
-
var lastPageLinkIcon = IconUtils.getJSXIcon(icon, _objectSpread$3({}, lastPageIconProps), {
|
|
419
|
-
props: props
|
|
420
|
-
});
|
|
421
|
-
var lastPageButtonProps = mergeProps({
|
|
422
|
-
type: 'button',
|
|
423
|
-
className: cx('lastPageButton', {
|
|
424
|
-
disabled: props.disabled
|
|
425
|
-
}),
|
|
426
|
-
onClick: props.onClick,
|
|
427
|
-
disabled: props.disabled,
|
|
428
|
-
'aria-label': ariaLabel('lastPageLabel')
|
|
429
|
-
}, getPTOptions('lastPageButton'));
|
|
430
|
-
var element = /*#__PURE__*/React.createElement("button", lastPageButtonProps, lastPageLinkIcon, /*#__PURE__*/React.createElement(Ripple, null));
|
|
431
|
-
if (props.template) {
|
|
432
|
-
var defaultOptions = {
|
|
433
|
-
onClick: props.onClick,
|
|
434
|
-
className: className,
|
|
435
|
-
iconClassName: iconClassName,
|
|
436
|
-
disabled: props.disabled,
|
|
437
|
-
element: element,
|
|
438
|
-
props: props
|
|
439
|
-
};
|
|
440
|
-
return ObjectUtils.getJSXElement(props.template, defaultOptions);
|
|
441
|
-
}
|
|
442
|
-
return element;
|
|
443
|
-
});
|
|
444
|
-
LastPageLink.displayName = 'LastPageLink';
|
|
445
|
-
|
|
446
|
-
function ownKeys$2(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
447
|
-
function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
448
|
-
var NextPageLink = /*#__PURE__*/React.memo(function (inProps) {
|
|
449
|
-
var context = React.useContext(PrimeReactContext);
|
|
450
|
-
var props = NextPageLinkBase.getProps(inProps, context);
|
|
451
|
-
var ptm = props.ptm,
|
|
452
|
-
cx = props.cx;
|
|
453
|
-
var getPTOptions = function getPTOptions(key) {
|
|
454
|
-
return ptm(key, {
|
|
455
|
-
hostName: props.hostName,
|
|
456
|
-
context: {
|
|
457
|
-
disabled: props.disabled
|
|
458
|
-
}
|
|
459
|
-
});
|
|
460
|
-
};
|
|
461
|
-
var className = classNames('p-paginator-next p-paginator-element p-link', {
|
|
462
|
-
'p-disabled': props.disabled
|
|
463
|
-
});
|
|
464
|
-
var iconClassName = 'p-paginator-icon';
|
|
465
|
-
var nextPageIconProps = mergeProps({
|
|
466
|
-
className: cx('nextPageIcon')
|
|
467
|
-
}, getPTOptions('nextPageIcon'));
|
|
468
|
-
var icon = props.nextPageLinkIcon || /*#__PURE__*/React.createElement(AngleRightIcon, nextPageIconProps);
|
|
469
|
-
var nextPageLinkIcon = IconUtils.getJSXIcon(icon, _objectSpread$2({}, nextPageIconProps), {
|
|
470
|
-
props: props
|
|
471
|
-
});
|
|
472
|
-
var nextPageButtonProps = mergeProps({
|
|
473
|
-
type: 'button',
|
|
474
|
-
className: cx('nextPageButton', {
|
|
475
|
-
disabled: props.disabled
|
|
476
|
-
}),
|
|
477
|
-
onClick: props.onClick,
|
|
478
|
-
disabled: props.disabled,
|
|
479
|
-
'aria-label': ariaLabel('nextPageLabel')
|
|
480
|
-
}, getPTOptions('nextPageButton'));
|
|
481
|
-
var element = /*#__PURE__*/React.createElement("button", nextPageButtonProps, nextPageLinkIcon, /*#__PURE__*/React.createElement(Ripple, null));
|
|
482
|
-
if (props.template) {
|
|
483
|
-
var defaultOptions = {
|
|
484
|
-
onClick: props.onClick,
|
|
485
|
-
className: className,
|
|
486
|
-
iconClassName: iconClassName,
|
|
487
|
-
disabled: props.disabled,
|
|
488
|
-
element: element,
|
|
489
|
-
nextPageLinkIcon: nextPageLinkIcon,
|
|
490
|
-
props: props
|
|
491
|
-
};
|
|
492
|
-
return ObjectUtils.getJSXElement(props.template, defaultOptions);
|
|
493
|
-
}
|
|
494
|
-
return element;
|
|
495
|
-
});
|
|
496
|
-
NextPageLink.displayName = 'NextPageLink';
|
|
497
|
-
|
|
498
|
-
var PageLinks = /*#__PURE__*/React.memo(function (inProps) {
|
|
499
|
-
var context = React.useContext(PrimeReactContext);
|
|
500
|
-
var props = PageLinksBase.getProps(inProps, context);
|
|
501
|
-
var ptm = props.ptm,
|
|
502
|
-
cx = props.cx;
|
|
503
|
-
var getPTOptions = function getPTOptions(pageLink, key) {
|
|
504
|
-
return ptm(key, {
|
|
505
|
-
hostName: props.hostName,
|
|
506
|
-
context: {
|
|
507
|
-
active: pageLink - 1 === props.page
|
|
508
|
-
}
|
|
509
|
-
});
|
|
510
|
-
};
|
|
511
|
-
var onPageLinkClick = function onPageLinkClick(event, pageLink) {
|
|
512
|
-
if (props.onClick) {
|
|
513
|
-
props.onClick({
|
|
514
|
-
originalEvent: event,
|
|
515
|
-
value: pageLink
|
|
516
|
-
});
|
|
517
|
-
}
|
|
518
|
-
event.preventDefault();
|
|
519
|
-
};
|
|
520
|
-
var elements;
|
|
521
|
-
if (props.value) {
|
|
522
|
-
var startPageInView = props.value[0];
|
|
523
|
-
var endPageInView = props.value[props.value.length - 1];
|
|
524
|
-
elements = props.value.map(function (pageLink) {
|
|
525
|
-
var className = classNames('p-paginator-page p-paginator-element p-link', {
|
|
526
|
-
'p-paginator-page-start': pageLink === startPageInView,
|
|
527
|
-
'p-paginator-page-end': pageLink === endPageInView,
|
|
528
|
-
'p-highlight': pageLink - 1 === props.page
|
|
529
|
-
});
|
|
530
|
-
var pageButtonProps = mergeProps({
|
|
531
|
-
type: 'button',
|
|
532
|
-
onClick: function onClick(e) {
|
|
533
|
-
return onPageLinkClick(e, pageLink);
|
|
534
|
-
},
|
|
535
|
-
className: cx('pageButton', {
|
|
536
|
-
pageLink: pageLink,
|
|
537
|
-
startPageInView: startPageInView,
|
|
538
|
-
endPageInView: endPageInView,
|
|
539
|
-
page: props.page
|
|
540
|
-
}),
|
|
541
|
-
disabled: props.disabled,
|
|
542
|
-
'aria-label': ariaLabel('pageLabel', {
|
|
543
|
-
page: pageLink
|
|
544
|
-
})
|
|
545
|
-
}, getPTOptions(pageLink, 'pageButton'));
|
|
546
|
-
var element = /*#__PURE__*/React.createElement("button", pageButtonProps, pageLink, /*#__PURE__*/React.createElement(Ripple, null));
|
|
547
|
-
if (props.template) {
|
|
548
|
-
var defaultOptions = {
|
|
549
|
-
onClick: function onClick(e) {
|
|
550
|
-
return onPageLinkClick(e, pageLink);
|
|
551
|
-
},
|
|
552
|
-
className: className,
|
|
553
|
-
view: {
|
|
554
|
-
startPage: startPageInView - 1,
|
|
555
|
-
endPage: endPageInView - 1
|
|
556
|
-
},
|
|
557
|
-
page: pageLink - 1,
|
|
558
|
-
currentPage: props.page,
|
|
559
|
-
totalPages: props.pageCount,
|
|
560
|
-
element: element,
|
|
561
|
-
props: props
|
|
562
|
-
};
|
|
563
|
-
element = ObjectUtils.getJSXElement(props.template, defaultOptions);
|
|
564
|
-
}
|
|
565
|
-
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
566
|
-
key: pageLink
|
|
567
|
-
}, element);
|
|
568
|
-
});
|
|
569
|
-
}
|
|
570
|
-
var pagesProps = mergeProps({
|
|
571
|
-
className: cx('pages')
|
|
572
|
-
}, ptm('pages', {
|
|
573
|
-
hostName: props.hostName
|
|
574
|
-
}));
|
|
575
|
-
return /*#__PURE__*/React.createElement("span", pagesProps, elements);
|
|
576
|
-
});
|
|
577
|
-
PageLinks.displayName = 'PageLinks';
|
|
578
|
-
|
|
579
|
-
function ownKeys$1(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
580
|
-
function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
581
|
-
var PrevPageLink = /*#__PURE__*/React.memo(function (inProps) {
|
|
582
|
-
var context = React.useContext(PrimeReactContext);
|
|
583
|
-
var props = PrevPageLinkBase.getProps(inProps, context);
|
|
584
|
-
var ptm = props.ptm,
|
|
585
|
-
cx = props.cx;
|
|
586
|
-
var getPTOptions = function getPTOptions(key) {
|
|
587
|
-
return ptm(key, {
|
|
588
|
-
hostName: props.hostName,
|
|
589
|
-
context: {
|
|
590
|
-
disabled: props.disabled
|
|
591
|
-
}
|
|
592
|
-
});
|
|
593
|
-
};
|
|
594
|
-
var className = classNames('p-paginator-prev p-paginator-element p-link', {
|
|
595
|
-
'p-disabled': props.disabled
|
|
596
|
-
});
|
|
597
|
-
var iconClassName = 'p-paginator-icon';
|
|
598
|
-
var prevPageIconProps = mergeProps({
|
|
599
|
-
className: cx('prevPageIcon')
|
|
600
|
-
}, getPTOptions('prevPageIcon'));
|
|
601
|
-
var icon = props.prevPageLinkIcon || /*#__PURE__*/React.createElement(AngleLeftIcon, prevPageIconProps);
|
|
602
|
-
var prevPageLinkIcon = IconUtils.getJSXIcon(icon, _objectSpread$1({}, prevPageIconProps), {
|
|
603
|
-
props: props
|
|
604
|
-
});
|
|
605
|
-
var prevPageButtonProps = mergeProps({
|
|
606
|
-
type: 'button',
|
|
607
|
-
className: cx('prevPageButton', {
|
|
608
|
-
disabled: props.disabled
|
|
609
|
-
}),
|
|
610
|
-
onClick: props.onClick,
|
|
611
|
-
disabled: props.disabled,
|
|
612
|
-
'aria-label': ariaLabel('previousPageLabel')
|
|
613
|
-
}, getPTOptions('prevPageButton'));
|
|
614
|
-
var element = /*#__PURE__*/React.createElement("button", prevPageButtonProps, prevPageLinkIcon, /*#__PURE__*/React.createElement(Ripple, null));
|
|
615
|
-
if (props.template) {
|
|
616
|
-
var defaultOptions = {
|
|
617
|
-
onClick: props.onClick,
|
|
618
|
-
className: className,
|
|
619
|
-
iconClassName: iconClassName,
|
|
620
|
-
disabled: props.disabled,
|
|
621
|
-
element: element,
|
|
622
|
-
props: props
|
|
623
|
-
};
|
|
624
|
-
return ObjectUtils.getJSXElement(props.template, defaultOptions);
|
|
625
|
-
}
|
|
626
|
-
return element;
|
|
627
|
-
});
|
|
628
|
-
PrevPageLink.displayName = 'PrevPageLink';
|
|
629
|
-
|
|
630
|
-
var RowsPerPageDropdown = /*#__PURE__*/React.memo(function (inProps) {
|
|
631
|
-
var context = React.useContext(PrimeReactContext);
|
|
632
|
-
var props = RowsPerPageDropdownBase.getProps(inProps, context);
|
|
633
|
-
var hasOptions = props.options && props.options.length > 0;
|
|
634
|
-
var options = hasOptions ? props.options.map(function (opt) {
|
|
635
|
-
return {
|
|
636
|
-
label: String(opt),
|
|
637
|
-
value: opt
|
|
638
|
-
};
|
|
639
|
-
}) : [];
|
|
640
|
-
var ariaLabel = localeOption('choose');
|
|
641
|
-
var element = hasOptions ? /*#__PURE__*/React.createElement(Dropdown, {
|
|
642
|
-
value: props.value,
|
|
643
|
-
options: options,
|
|
644
|
-
onChange: props.onChange,
|
|
645
|
-
appendTo: props.appendTo,
|
|
646
|
-
disabled: props.disabled,
|
|
647
|
-
placeholder: ariaLabel,
|
|
648
|
-
"aria-label": ariaLabel,
|
|
649
|
-
pt: props.ptm('RPPDropdown'),
|
|
650
|
-
unstyled: props.unstyled,
|
|
651
|
-
__parentMetadata: {
|
|
652
|
-
parent: props.metaData
|
|
653
|
-
}
|
|
654
|
-
}) : null;
|
|
655
|
-
if (props.template) {
|
|
656
|
-
var defaultOptions = {
|
|
657
|
-
value: props.value,
|
|
658
|
-
options: options,
|
|
659
|
-
onChange: props.onChange,
|
|
660
|
-
appendTo: props.appendTo,
|
|
661
|
-
currentPage: props.page,
|
|
662
|
-
totalPages: props.pageCount,
|
|
663
|
-
totalRecords: props.totalRecords,
|
|
664
|
-
disabled: props.disabled,
|
|
665
|
-
element: element,
|
|
666
|
-
props: props
|
|
667
|
-
};
|
|
668
|
-
return ObjectUtils.getJSXElement(props.template, defaultOptions);
|
|
669
|
-
}
|
|
670
|
-
return element;
|
|
671
|
-
});
|
|
672
|
-
RowsPerPageDropdown.displayName = 'RowsPerPageDropdown';
|
|
673
|
-
|
|
674
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
675
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
676
|
-
var Paginator = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
677
|
-
var context = React.useContext(PrimeReactContext);
|
|
678
|
-
var props = PaginatorBase.getProps(inProps, context);
|
|
679
|
-
var metaData = _objectSpread({
|
|
680
|
-
props: props
|
|
681
|
-
}, props.__parentMetadata);
|
|
682
|
-
var _PaginatorBase$setMet = PaginatorBase.setMetaData(metaData),
|
|
683
|
-
ptm = _PaginatorBase$setMet.ptm,
|
|
684
|
-
cx = _PaginatorBase$setMet.cx,
|
|
685
|
-
isUnstyled = _PaginatorBase$setMet.isUnstyled;
|
|
686
|
-
useHandleStyle(PaginatorBase.css.styles, isUnstyled, {
|
|
687
|
-
name: 'paginator'
|
|
688
|
-
});
|
|
689
|
-
var elementRef = React.useRef(null);
|
|
690
|
-
var page = Math.floor(props.first / props.rows);
|
|
691
|
-
var pageCount = Math.ceil(props.totalRecords / props.rows);
|
|
692
|
-
var isFirstPage = page === 0;
|
|
693
|
-
var isLastPage = page === pageCount - 1;
|
|
694
|
-
var isEmpty = pageCount === 0;
|
|
695
|
-
var calculatePageLinkBoundaries = function calculatePageLinkBoundaries() {
|
|
696
|
-
var numberOfPages = pageCount;
|
|
697
|
-
var visiblePages = Math.min(props.pageLinkSize, numberOfPages);
|
|
698
|
-
|
|
699
|
-
//calculate range, keep current in middle if necessary
|
|
700
|
-
var start = Math.max(0, Math.ceil(page - visiblePages / 2));
|
|
701
|
-
var end = Math.min(numberOfPages - 1, start + visiblePages - 1);
|
|
702
|
-
|
|
703
|
-
//check when approaching to last page
|
|
704
|
-
var delta = props.pageLinkSize - (end - start + 1);
|
|
705
|
-
start = Math.max(0, start - delta);
|
|
706
|
-
return [start, end];
|
|
707
|
-
};
|
|
708
|
-
var updatePageLinks = function updatePageLinks() {
|
|
709
|
-
var pageLinks = [];
|
|
710
|
-
var boundaries = calculatePageLinkBoundaries();
|
|
711
|
-
var start = boundaries[0];
|
|
712
|
-
var end = boundaries[1];
|
|
713
|
-
for (var i = start; i <= end; i++) {
|
|
714
|
-
pageLinks.push(i + 1);
|
|
715
|
-
}
|
|
716
|
-
return pageLinks;
|
|
717
|
-
};
|
|
718
|
-
var changePage = function changePage(first, rows) {
|
|
719
|
-
var pc = pageCount;
|
|
720
|
-
var p = Math.floor(first / rows);
|
|
721
|
-
if (p >= 0 && p < pc) {
|
|
722
|
-
var newPageState = {
|
|
723
|
-
first: first,
|
|
724
|
-
rows: rows,
|
|
725
|
-
page: p,
|
|
726
|
-
pageCount: pc
|
|
727
|
-
};
|
|
728
|
-
if (props.onPageChange) {
|
|
729
|
-
props.onPageChange(newPageState);
|
|
730
|
-
}
|
|
731
|
-
}
|
|
732
|
-
};
|
|
733
|
-
var changePageToFirst = function changePageToFirst(event) {
|
|
734
|
-
changePage(0, props.rows);
|
|
735
|
-
event.preventDefault();
|
|
736
|
-
};
|
|
737
|
-
var changePageToPrev = function changePageToPrev(event) {
|
|
738
|
-
changePage(props.first - props.rows, props.rows);
|
|
739
|
-
event.preventDefault();
|
|
740
|
-
};
|
|
741
|
-
var onPageLinkClick = function onPageLinkClick(event) {
|
|
742
|
-
changePage((event.value - 1) * props.rows, props.rows);
|
|
743
|
-
};
|
|
744
|
-
var changePageToNext = function changePageToNext(event) {
|
|
745
|
-
changePage(props.first + props.rows, props.rows);
|
|
746
|
-
event.preventDefault();
|
|
747
|
-
};
|
|
748
|
-
var changePageToLast = function changePageToLast(event) {
|
|
749
|
-
changePage((pageCount - 1) * props.rows, props.rows);
|
|
750
|
-
event.preventDefault();
|
|
751
|
-
};
|
|
752
|
-
var onRowsChange = function onRowsChange(event) {
|
|
753
|
-
var rows = event.value;
|
|
754
|
-
changePage(0, rows);
|
|
755
|
-
};
|
|
756
|
-
React.useImperativeHandle(ref, function () {
|
|
757
|
-
return {
|
|
758
|
-
props: props,
|
|
759
|
-
getElement: function getElement() {
|
|
760
|
-
return elementRef.current;
|
|
761
|
-
}
|
|
762
|
-
};
|
|
763
|
-
});
|
|
764
|
-
useUpdateEffect(function () {
|
|
765
|
-
if (page > 0 && props.first >= props.totalRecords) {
|
|
766
|
-
changePage((pageCount - 1) * props.rows, props.rows);
|
|
767
|
-
}
|
|
768
|
-
}, [props.totalRecords]);
|
|
769
|
-
var createElement = function createElement(key, template) {
|
|
770
|
-
var element;
|
|
771
|
-
switch (key) {
|
|
772
|
-
case 'FirstPageLink':
|
|
773
|
-
element = /*#__PURE__*/React.createElement(FirstPageLink, {
|
|
774
|
-
hostName: "Paginator",
|
|
775
|
-
key: key,
|
|
776
|
-
onClick: changePageToFirst,
|
|
777
|
-
disabled: isFirstPage || isEmpty,
|
|
778
|
-
template: template,
|
|
779
|
-
firstPageLinkIcon: props.firstPageLinkIcon,
|
|
780
|
-
ptm: ptm,
|
|
781
|
-
cx: cx
|
|
782
|
-
});
|
|
783
|
-
break;
|
|
784
|
-
case 'PrevPageLink':
|
|
785
|
-
element = /*#__PURE__*/React.createElement(PrevPageLink, {
|
|
786
|
-
hostName: "Paginator",
|
|
787
|
-
key: key,
|
|
788
|
-
onClick: changePageToPrev,
|
|
789
|
-
disabled: isFirstPage || isEmpty,
|
|
790
|
-
template: template,
|
|
791
|
-
prevPageLinkIcon: props.prevPageLinkIcon,
|
|
792
|
-
ptm: ptm,
|
|
793
|
-
cx: cx
|
|
794
|
-
});
|
|
795
|
-
break;
|
|
796
|
-
case 'NextPageLink':
|
|
797
|
-
element = /*#__PURE__*/React.createElement(NextPageLink, {
|
|
798
|
-
hostName: "Paginator",
|
|
799
|
-
key: key,
|
|
800
|
-
onClick: changePageToNext,
|
|
801
|
-
disabled: isLastPage || isEmpty,
|
|
802
|
-
template: template,
|
|
803
|
-
nextPageLinkIcon: props.nextPageLinkIcon,
|
|
804
|
-
ptm: ptm,
|
|
805
|
-
cx: cx
|
|
806
|
-
});
|
|
807
|
-
break;
|
|
808
|
-
case 'LastPageLink':
|
|
809
|
-
element = /*#__PURE__*/React.createElement(LastPageLink, {
|
|
810
|
-
hostName: "Paginator",
|
|
811
|
-
key: key,
|
|
812
|
-
onClick: changePageToLast,
|
|
813
|
-
disabled: isLastPage || isEmpty,
|
|
814
|
-
template: template,
|
|
815
|
-
lastPageLinkIcon: props.lastPageLinkIcon,
|
|
816
|
-
ptm: ptm,
|
|
817
|
-
cx: cx
|
|
818
|
-
});
|
|
819
|
-
break;
|
|
820
|
-
case 'PageLinks':
|
|
821
|
-
element = /*#__PURE__*/React.createElement(PageLinks, {
|
|
822
|
-
hostName: "Paginator",
|
|
823
|
-
key: key,
|
|
824
|
-
value: updatePageLinks(),
|
|
825
|
-
page: page,
|
|
826
|
-
rows: props.rows,
|
|
827
|
-
pageCount: pageCount,
|
|
828
|
-
onClick: onPageLinkClick,
|
|
829
|
-
template: template,
|
|
830
|
-
ptm: ptm,
|
|
831
|
-
cx: cx
|
|
832
|
-
});
|
|
833
|
-
break;
|
|
834
|
-
case 'RowsPerPageDropdown':
|
|
835
|
-
element = /*#__PURE__*/React.createElement(RowsPerPageDropdown, {
|
|
836
|
-
hostName: "Paginator",
|
|
837
|
-
key: key,
|
|
838
|
-
value: props.rows,
|
|
839
|
-
page: page,
|
|
840
|
-
pageCount: pageCount,
|
|
841
|
-
totalRecords: props.totalRecords,
|
|
842
|
-
options: props.rowsPerPageOptions,
|
|
843
|
-
onChange: onRowsChange,
|
|
844
|
-
appendTo: props.dropdownAppendTo,
|
|
845
|
-
template: template,
|
|
846
|
-
disabled: isEmpty,
|
|
847
|
-
unstyled: props.unstyled,
|
|
848
|
-
ptm: ptm,
|
|
849
|
-
cx: cx,
|
|
850
|
-
metaData: metaData
|
|
851
|
-
});
|
|
852
|
-
break;
|
|
853
|
-
case 'CurrentPageReport':
|
|
854
|
-
element = /*#__PURE__*/React.createElement(CurrentPageReport, {
|
|
855
|
-
hostName: "Paginator",
|
|
856
|
-
reportTemplate: props.currentPageReportTemplate,
|
|
857
|
-
key: key,
|
|
858
|
-
page: page,
|
|
859
|
-
pageCount: pageCount,
|
|
860
|
-
first: props.first,
|
|
861
|
-
rows: props.rows,
|
|
862
|
-
totalRecords: props.totalRecords,
|
|
863
|
-
template: template,
|
|
864
|
-
ptm: ptm
|
|
865
|
-
});
|
|
866
|
-
break;
|
|
867
|
-
case 'JumpToPageInput':
|
|
868
|
-
element = /*#__PURE__*/React.createElement(JumpToPageInput, {
|
|
869
|
-
hostName: "Paginator",
|
|
870
|
-
key: key,
|
|
871
|
-
rows: props.rows,
|
|
872
|
-
page: page,
|
|
873
|
-
pageCount: pageCount,
|
|
874
|
-
onChange: changePage,
|
|
875
|
-
disabled: isEmpty,
|
|
876
|
-
template: template,
|
|
877
|
-
ptm: ptm,
|
|
878
|
-
unstyled: props.unstyled,
|
|
879
|
-
metaData: metaData
|
|
880
|
-
});
|
|
881
|
-
break;
|
|
882
|
-
default:
|
|
883
|
-
element = null;
|
|
884
|
-
break;
|
|
885
|
-
}
|
|
886
|
-
return element;
|
|
887
|
-
};
|
|
888
|
-
var createElements = function createElements() {
|
|
889
|
-
var template = props.template;
|
|
890
|
-
if (template) {
|
|
891
|
-
if (_typeof(template) === 'object') {
|
|
892
|
-
return template.layout ? template.layout.split(' ').map(function (value) {
|
|
893
|
-
var key = value.trim();
|
|
894
|
-
return createElement(key, template[key]);
|
|
895
|
-
}) : Object.entries(template).map(function (_ref) {
|
|
896
|
-
var _ref2 = _slicedToArray(_ref, 2),
|
|
897
|
-
key = _ref2[0],
|
|
898
|
-
_template = _ref2[1];
|
|
899
|
-
return createElement(key, _template);
|
|
900
|
-
});
|
|
901
|
-
}
|
|
902
|
-
return template.split(' ').map(function (value) {
|
|
903
|
-
return createElement(value.trim());
|
|
904
|
-
});
|
|
905
|
-
}
|
|
906
|
-
return null;
|
|
907
|
-
};
|
|
908
|
-
if (!props.alwaysShow && pageCount <= 1) {
|
|
909
|
-
return null;
|
|
910
|
-
} else {
|
|
911
|
-
var leftContent = ObjectUtils.getJSXElement(props.leftContent, props);
|
|
912
|
-
var rightContent = ObjectUtils.getJSXElement(props.rightContent, props);
|
|
913
|
-
var elements = createElements();
|
|
914
|
-
var leftProps = mergeProps({
|
|
915
|
-
className: cx('left')
|
|
916
|
-
}, ptm('left'));
|
|
917
|
-
var leftElement = leftContent && /*#__PURE__*/React.createElement("div", leftProps, leftContent);
|
|
918
|
-
var endProps = mergeProps({
|
|
919
|
-
className: cx('end')
|
|
920
|
-
}, ptm('end'));
|
|
921
|
-
var rightElement = rightContent && /*#__PURE__*/React.createElement("div", endProps, rightContent);
|
|
922
|
-
var rootProps = mergeProps({
|
|
923
|
-
ref: elementRef,
|
|
924
|
-
className: classNames(props.className, cx('root')),
|
|
925
|
-
style: props.style
|
|
926
|
-
}, PaginatorBase.getOtherProps(props), ptm('root'));
|
|
927
|
-
return /*#__PURE__*/React.createElement("div", rootProps, leftElement, elements, rightElement);
|
|
928
|
-
}
|
|
929
|
-
}));
|
|
930
|
-
Paginator.displayName = 'Paginator';
|
|
931
|
-
|
|
932
|
-
export { Paginator };
|