primereact 9.0.0-beta.1 → 9.0.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordion/accordion.cjs.js +69 -50
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.d.ts +1 -1
- package/accordion/accordion.esm.js +70 -51
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +69 -50
- package/accordion/accordion.min.js +1 -1
- package/accordion/package.json +2 -1
- package/api/api.cjs.js +21 -19
- package/api/api.cjs.min.js +1 -1
- package/api/api.d.ts +1 -1
- package/api/api.esm.js +21 -19
- package/api/api.esm.min.js +1 -1
- package/api/api.js +21 -19
- package/api/api.min.js +1 -1
- package/api/package.json +2 -1
- package/autocomplete/autocomplete.cjs.js +80 -73
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.d.ts +1 -1
- package/autocomplete/autocomplete.esm.js +81 -74
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +80 -73
- package/autocomplete/autocomplete.min.js +1 -1
- package/autocomplete/package.json +2 -1
- package/avatar/avatar.cjs.js +29 -22
- package/avatar/avatar.cjs.min.js +1 -1
- package/avatar/avatar.d.ts +1 -1
- package/avatar/avatar.esm.js +29 -22
- package/avatar/avatar.esm.min.js +1 -1
- package/avatar/avatar.js +29 -22
- package/avatar/avatar.min.js +1 -1
- package/avatar/package.json +2 -1
- package/avatargroup/avatargroup.cjs.js +18 -7
- package/avatargroup/avatargroup.cjs.min.js +1 -1
- package/avatargroup/avatargroup.d.ts +1 -1
- package/avatargroup/avatargroup.esm.js +18 -7
- package/avatargroup/avatargroup.esm.min.js +1 -1
- package/avatargroup/avatargroup.js +18 -7
- package/avatargroup/avatargroup.min.js +1 -1
- package/avatargroup/package.json +2 -1
- package/badge/badge.cjs.js +21 -10
- package/badge/badge.cjs.min.js +1 -1
- package/badge/badge.d.ts +1 -1
- package/badge/badge.esm.js +21 -10
- package/badge/badge.esm.min.js +1 -1
- package/badge/badge.js +21 -10
- package/badge/badge.min.js +1 -1
- package/badge/package.json +2 -1
- package/blockui/blockui.cjs.js +30 -23
- package/blockui/blockui.cjs.min.js +1 -1
- package/blockui/blockui.d.ts +1 -1
- package/blockui/blockui.esm.js +31 -24
- package/blockui/blockui.esm.min.js +1 -1
- package/blockui/blockui.js +30 -23
- package/blockui/blockui.min.js +1 -1
- package/blockui/package.json +2 -1
- package/breadcrumb/breadcrumb.cjs.js +21 -10
- package/breadcrumb/breadcrumb.cjs.min.js +1 -1
- package/breadcrumb/breadcrumb.d.ts +1 -1
- package/breadcrumb/breadcrumb.esm.js +21 -10
- package/breadcrumb/breadcrumb.esm.min.js +1 -1
- package/breadcrumb/breadcrumb.js +21 -10
- package/breadcrumb/breadcrumb.min.js +1 -1
- package/breadcrumb/package.json +2 -1
- package/button/button.cjs.js +27 -16
- package/button/button.cjs.min.js +1 -1
- package/button/button.esm.js +27 -16
- package/button/button.esm.min.js +1 -1
- package/button/button.js +27 -16
- package/button/button.min.js +1 -1
- package/button/package.json +2 -1
- package/calendar/calendar.cjs.js +104 -97
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.d.ts +1 -1
- package/calendar/calendar.esm.js +105 -98
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +104 -97
- package/calendar/calendar.min.js +1 -1
- package/calendar/package.json +2 -1
- package/card/card.cjs.js +23 -12
- package/card/card.cjs.min.js +1 -1
- package/card/card.d.ts +1 -1
- package/card/card.esm.js +23 -12
- package/card/card.esm.min.js +1 -1
- package/card/card.js +23 -12
- package/card/card.min.js +1 -1
- package/card/package.json +2 -1
- package/carousel/carousel.cjs.js +39 -32
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.d.ts +1 -1
- package/carousel/carousel.esm.js +40 -33
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +39 -32
- package/carousel/carousel.min.js +1 -1
- package/carousel/package.json +2 -1
- package/cascadeselect/cascadeselect.cjs.js +46 -39
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.d.ts +1 -1
- package/cascadeselect/cascadeselect.esm.js +47 -40
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +46 -39
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/cascadeselect/package.json +2 -1
- package/chart/chart.cjs.js +25 -14
- package/chart/chart.cjs.min.js +1 -1
- package/chart/chart.d.ts +1 -1
- package/chart/chart.esm.js +25 -14
- package/chart/chart.esm.min.js +1 -1
- package/chart/chart.js +25 -14
- package/chart/chart.min.js +1 -1
- package/chart/package.json +2 -1
- package/checkbox/checkbox.cjs.js +38 -31
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.d.ts +2 -2
- package/checkbox/checkbox.esm.js +39 -32
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +38 -31
- package/checkbox/checkbox.min.js +1 -1
- package/checkbox/package.json +2 -1
- package/chip/chip.cjs.js +29 -22
- package/chip/chip.cjs.min.js +1 -1
- package/chip/chip.d.ts +1 -1
- package/chip/chip.esm.js +29 -22
- package/chip/chip.esm.min.js +1 -1
- package/chip/chip.js +29 -22
- package/chip/chip.min.js +1 -1
- package/chip/package.json +2 -1
- package/chips/chips.cjs.js +44 -37
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.d.ts +1 -1
- package/chips/chips.esm.js +44 -37
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +44 -37
- package/chips/chips.min.js +1 -1
- package/chips/package.json +2 -1
- package/colorpicker/colorpicker.cjs.js +39 -32
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.d.ts +1 -1
- package/colorpicker/colorpicker.esm.js +40 -33
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +39 -32
- package/colorpicker/colorpicker.min.js +1 -1
- package/colorpicker/package.json +2 -1
- package/column/column.cjs.js +0 -79
- package/column/column.cjs.min.js +1 -1
- package/column/column.d.ts +1 -1
- package/column/column.esm.js +0 -79
- package/column/column.esm.min.js +1 -1
- package/column/column.js +6 -85
- package/column/column.min.js +1 -1
- package/column/package.json +2 -1
- package/columngroup/columngroup.cjs.js +0 -3
- package/columngroup/columngroup.cjs.min.js +1 -1
- package/columngroup/columngroup.d.ts +1 -1
- package/columngroup/columngroup.esm.js +0 -3
- package/columngroup/columngroup.esm.min.js +1 -1
- package/columngroup/columngroup.js +6 -9
- package/columngroup/columngroup.min.js +1 -1
- package/columngroup/package.json +2 -1
- package/confirmdialog/confirmdialog.cjs.js +35 -28
- package/confirmdialog/confirmdialog.cjs.min.js +1 -1
- package/confirmdialog/confirmdialog.d.ts +1 -1
- package/confirmdialog/confirmdialog.esm.js +36 -29
- package/confirmdialog/confirmdialog.esm.min.js +1 -1
- package/confirmdialog/confirmdialog.js +35 -28
- package/confirmdialog/confirmdialog.min.js +1 -1
- package/confirmdialog/package.json +2 -1
- package/confirmpopup/confirmpopup.cjs.js +39 -32
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.d.ts +1 -1
- package/confirmpopup/confirmpopup.esm.js +40 -33
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.js +39 -32
- package/confirmpopup/confirmpopup.min.js +1 -1
- package/confirmpopup/package.json +2 -1
- package/contextmenu/contextmenu.cjs.js +29 -22
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.d.ts +2 -2
- package/contextmenu/contextmenu.esm.js +30 -23
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +29 -22
- package/contextmenu/contextmenu.min.js +1 -1
- package/contextmenu/package.json +2 -1
- package/core/core.js +1663 -1010
- package/core/core.min.js +18 -18
- package/csstransition/csstransition.cjs.js +15 -4
- package/csstransition/csstransition.cjs.min.js +1 -1
- package/csstransition/csstransition.d.ts +1 -1
- package/csstransition/csstransition.esm.js +15 -4
- package/csstransition/csstransition.esm.min.js +1 -1
- package/csstransition/csstransition.js +15 -4
- package/csstransition/csstransition.min.js +1 -1
- package/csstransition/package.json +2 -1
- package/datascroller/datascroller.cjs.js +33 -26
- package/datascroller/datascroller.cjs.min.js +1 -1
- package/datascroller/datascroller.d.ts +1 -1
- package/datascroller/datascroller.esm.js +33 -26
- package/datascroller/datascroller.esm.min.js +1 -1
- package/datascroller/datascroller.js +33 -26
- package/datascroller/datascroller.min.js +1 -1
- package/datascroller/package.json +2 -1
- package/datatable/datatable.cjs.js +360 -218
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.d.ts +26 -11
- package/datatable/datatable.esm.js +361 -219
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +361 -219
- package/datatable/datatable.min.js +1 -1
- package/datatable/package.json +2 -1
- package/dataview/dataview.cjs.js +69 -52
- package/dataview/dataview.cjs.min.js +1 -1
- package/dataview/dataview.d.ts +1 -1
- package/dataview/dataview.esm.js +69 -52
- package/dataview/dataview.esm.min.js +1 -1
- package/dataview/dataview.js +69 -52
- package/dataview/dataview.min.js +1 -1
- package/dataview/package.json +2 -1
- package/deferredcontent/deferredcontent.cjs.js +19 -12
- package/deferredcontent/deferredcontent.cjs.min.js +1 -1
- package/deferredcontent/deferredcontent.d.ts +1 -1
- package/deferredcontent/deferredcontent.esm.js +19 -12
- package/deferredcontent/deferredcontent.esm.min.js +1 -1
- package/deferredcontent/deferredcontent.js +19 -12
- package/deferredcontent/deferredcontent.min.js +1 -1
- package/deferredcontent/package.json +2 -1
- package/dialog/dialog.cjs.js +63 -56
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.d.ts +1 -1
- package/dialog/dialog.esm.js +64 -57
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +63 -56
- package/dialog/dialog.min.js +1 -1
- package/dialog/package.json +2 -1
- package/divider/divider.cjs.js +21 -10
- package/divider/divider.cjs.min.js +1 -1
- package/divider/divider.d.ts +1 -1
- package/divider/divider.esm.js +21 -10
- package/divider/divider.esm.min.js +1 -1
- package/divider/divider.js +21 -10
- package/divider/divider.min.js +1 -1
- package/divider/package.json +2 -1
- package/dock/dock.cjs.js +26 -19
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.d.ts +1 -1
- package/dock/dock.esm.js +26 -19
- package/dock/dock.esm.min.js +1 -1
- package/dock/dock.js +26 -19
- package/dock/dock.min.js +1 -1
- package/dock/package.json +2 -1
- package/dropdown/dropdown.cjs.js +77 -70
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.d.ts +1 -1
- package/dropdown/dropdown.esm.js +78 -71
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +77 -70
- package/dropdown/dropdown.min.js +1 -1
- package/dropdown/package.json +2 -1
- package/editor/editor.cjs.js +31 -20
- package/editor/editor.cjs.min.js +1 -1
- package/editor/editor.d.ts +1 -1
- package/editor/editor.esm.js +32 -21
- package/editor/editor.esm.min.js +1 -1
- package/editor/editor.js +31 -20
- package/editor/editor.min.js +1 -1
- package/editor/package.json +2 -1
- package/fieldset/fieldset.cjs.js +29 -22
- package/fieldset/fieldset.cjs.min.js +1 -1
- package/fieldset/fieldset.d.ts +1 -1
- package/fieldset/fieldset.esm.js +30 -23
- package/fieldset/fieldset.esm.min.js +1 -1
- package/fieldset/fieldset.js +29 -22
- package/fieldset/fieldset.min.js +1 -1
- package/fieldset/package.json +2 -1
- package/fileupload/fileupload.cjs.js +83 -76
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.d.ts +1 -1
- package/fileupload/fileupload.esm.js +83 -76
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +83 -76
- package/fileupload/fileupload.min.js +1 -1
- package/fileupload/package.json +2 -1
- package/galleria/galleria.cjs.js +48 -41
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.d.ts +1 -1
- package/galleria/galleria.esm.js +49 -42
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +48 -41
- package/galleria/galleria.min.js +1 -1
- package/galleria/package.json +2 -1
- package/hooks/hooks.cjs.js +577 -146
- package/hooks/hooks.cjs.min.js +1 -1
- package/hooks/hooks.d.ts +81 -0
- package/hooks/hooks.esm.js +557 -133
- package/hooks/hooks.esm.min.js +1 -1
- package/hooks/hooks.js +869 -438
- package/hooks/hooks.min.js +1 -1
- package/hooks/package.json +2 -1
- package/image/image.cjs.js +32 -25
- package/image/image.cjs.min.js +1 -1
- package/image/image.d.ts +1 -1
- package/image/image.esm.js +33 -26
- package/image/image.esm.min.js +1 -1
- package/image/image.js +32 -25
- package/image/image.min.js +1 -1
- package/image/package.json +2 -1
- package/inplace/inplace.cjs.js +51 -37
- package/inplace/inplace.cjs.min.js +1 -1
- package/inplace/inplace.d.ts +1 -1
- package/inplace/inplace.esm.js +51 -37
- package/inplace/inplace.esm.min.js +1 -1
- package/inplace/inplace.js +51 -37
- package/inplace/inplace.min.js +1 -1
- package/inplace/package.json +2 -1
- package/inputmask/inputmask.cjs.js +44 -41
- package/inputmask/inputmask.cjs.min.js +1 -1
- package/inputmask/inputmask.d.ts +1 -1
- package/inputmask/inputmask.esm.js +45 -42
- package/inputmask/inputmask.esm.min.js +1 -1
- package/inputmask/inputmask.js +44 -41
- package/inputmask/inputmask.min.js +1 -1
- package/inputmask/package.json +2 -1
- package/inputnumber/inputnumber.cjs.js +67 -60
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.d.ts +1 -1
- package/inputnumber/inputnumber.esm.js +68 -61
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +67 -60
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputnumber/package.json +2 -1
- package/inputswitch/inputswitch.cjs.js +34 -27
- package/inputswitch/inputswitch.cjs.min.js +1 -1
- package/inputswitch/inputswitch.d.ts +2 -2
- package/inputswitch/inputswitch.esm.js +35 -28
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.js +34 -27
- package/inputswitch/inputswitch.min.js +1 -1
- package/inputswitch/package.json +2 -1
- package/inputtext/inputtext.cjs.js +23 -12
- package/inputtext/inputtext.cjs.min.js +1 -1
- package/inputtext/inputtext.d.ts +1 -1
- package/inputtext/inputtext.esm.js +23 -12
- package/inputtext/inputtext.esm.min.js +1 -1
- package/inputtext/inputtext.js +23 -12
- package/inputtext/inputtext.min.js +1 -1
- package/inputtext/package.json +2 -1
- package/inputtextarea/inputtextarea.cjs.js +27 -16
- package/inputtextarea/inputtextarea.cjs.min.js +1 -1
- package/inputtextarea/inputtextarea.d.ts +1 -1
- package/inputtextarea/inputtextarea.esm.js +27 -16
- package/inputtextarea/inputtextarea.esm.min.js +1 -1
- package/inputtextarea/inputtextarea.js +27 -16
- package/inputtextarea/inputtextarea.min.js +1 -1
- package/inputtextarea/package.json +2 -1
- package/keyfilter/keyfilter.cjs.js +1 -3
- package/keyfilter/keyfilter.esm.js +1 -3
- package/keyfilter/keyfilter.js +1 -3
- package/keyfilter/package.json +2 -1
- package/knob/knob.cjs.js +36 -29
- package/knob/knob.cjs.min.js +1 -1
- package/knob/knob.d.ts +1 -1
- package/knob/knob.esm.js +36 -29
- package/knob/knob.esm.min.js +1 -1
- package/knob/knob.js +36 -29
- package/knob/knob.min.js +1 -1
- package/knob/package.json +2 -1
- package/listbox/listbox.cjs.js +53 -46
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.d.ts +1 -1
- package/listbox/listbox.esm.js +53 -46
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +53 -46
- package/listbox/listbox.min.js +1 -1
- package/listbox/package.json +2 -1
- package/megamenu/megamenu.cjs.js +25 -18
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.d.ts +1 -1
- package/megamenu/megamenu.esm.js +26 -19
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +25 -18
- package/megamenu/megamenu.min.js +1 -1
- package/megamenu/package.json +2 -1
- package/mention/mention.cjs.js +71 -53
- package/mention/mention.cjs.min.js +1 -1
- package/mention/mention.d.ts +1 -1
- package/mention/mention.esm.js +71 -53
- package/mention/mention.esm.min.js +1 -1
- package/mention/mention.js +71 -53
- package/mention/mention.min.js +1 -1
- package/mention/package.json +2 -1
- package/menu/menu.cjs.js +29 -22
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.d.ts +1 -1
- package/menu/menu.esm.js +30 -23
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +29 -22
- package/menu/menu.min.js +1 -1
- package/menu/package.json +2 -1
- package/menubar/menubar.cjs.js +24 -17
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.d.ts +1 -1
- package/menubar/menubar.esm.js +25 -18
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +24 -17
- package/menubar/menubar.min.js +1 -1
- package/menubar/package.json +2 -1
- package/menuitem/package.json +2 -1
- package/message/message.cjs.js +23 -12
- package/message/message.cjs.min.js +1 -1
- package/message/message.d.ts +1 -1
- package/message/message.esm.js +23 -12
- package/message/message.esm.min.js +1 -1
- package/message/message.js +23 -12
- package/message/message.min.js +1 -1
- package/message/package.json +2 -1
- package/messages/messages.cjs.js +24 -17
- package/messages/messages.cjs.min.js +1 -1
- package/messages/messages.d.ts +1 -1
- package/messages/messages.esm.js +25 -18
- package/messages/messages.esm.min.js +1 -1
- package/messages/messages.js +24 -17
- package/messages/messages.min.js +1 -1
- package/messages/package.json +2 -1
- package/multiselect/multiselect.cjs.js +116 -98
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.d.ts +1 -1
- package/multiselect/multiselect.esm.js +117 -99
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +116 -98
- package/multiselect/multiselect.min.js +1 -1
- package/multiselect/package.json +2 -1
- package/multistatecheckbox/multistatecheckbox.cjs.js +39 -28
- package/multistatecheckbox/multistatecheckbox.cjs.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.d.ts +5 -1
- package/multistatecheckbox/multistatecheckbox.esm.js +40 -29
- package/multistatecheckbox/multistatecheckbox.esm.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.js +39 -28
- package/multistatecheckbox/multistatecheckbox.min.js +1 -1
- package/multistatecheckbox/package.json +2 -1
- package/orderlist/orderlist.cjs.js +37 -30
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.d.ts +1 -1
- package/orderlist/orderlist.esm.js +37 -30
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +38 -31
- package/orderlist/orderlist.min.js +1 -1
- package/orderlist/package.json +2 -1
- package/organizationchart/organizationchart.cjs.js +28 -21
- package/organizationchart/organizationchart.cjs.min.js +1 -1
- package/organizationchart/organizationchart.d.ts +1 -1
- package/organizationchart/organizationchart.esm.js +29 -22
- package/organizationchart/organizationchart.esm.min.js +1 -1
- package/organizationchart/organizationchart.js +28 -21
- package/organizationchart/organizationchart.min.js +1 -1
- package/organizationchart/package.json +2 -1
- package/overlaypanel/overlaypanel.cjs.js +29 -22
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.d.ts +1 -1
- package/overlaypanel/overlaypanel.esm.js +30 -23
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +29 -22
- package/overlaypanel/overlaypanel.min.js +1 -1
- package/overlaypanel/package.json +2 -1
- package/overlayservice/overlayservice.d.ts +1 -1
- package/overlayservice/package.json +2 -1
- package/package.json +2 -2
- package/paginator/package.json +2 -1
- package/paginator/paginator.cjs.js +184 -97
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.d.ts +1 -1
- package/paginator/paginator.esm.js +184 -97
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +184 -97
- package/paginator/paginator.min.js +1 -1
- package/panel/package.json +2 -1
- package/panel/panel.cjs.js +32 -25
- package/panel/panel.cjs.min.js +1 -1
- package/panel/panel.d.ts +2 -2
- package/panel/panel.esm.js +32 -25
- package/panel/panel.esm.min.js +1 -1
- package/panel/panel.js +32 -25
- package/panel/panel.min.js +1 -1
- package/panelmenu/package.json +2 -1
- package/panelmenu/panelmenu.cjs.js +24 -17
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.d.ts +2 -2
- package/panelmenu/panelmenu.esm.js +25 -18
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +24 -17
- package/panelmenu/panelmenu.min.js +1 -1
- package/password/package.json +2 -1
- package/password/password.cjs.js +46 -39
- package/password/password.cjs.min.js +1 -1
- package/password/password.d.ts +1 -1
- package/password/password.esm.js +46 -39
- package/password/password.esm.min.js +1 -1
- package/password/password.js +46 -39
- package/password/password.min.js +1 -1
- package/picklist/package.json +2 -1
- package/picklist/picklist.cjs.js +57 -50
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.d.ts +1 -1
- package/picklist/picklist.esm.js +58 -51
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +57 -50
- package/picklist/picklist.min.js +1 -1
- package/portal/package.json +2 -1
- package/portal/portal.cjs.js +22 -15
- package/portal/portal.cjs.min.js +1 -1
- package/portal/portal.esm.js +23 -16
- package/portal/portal.esm.min.js +1 -1
- package/portal/portal.js +22 -15
- package/portal/portal.min.js +1 -1
- package/primereact.all.cjs.js +4356 -2992
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +4350 -2991
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +4356 -2992
- package/primereact.all.min.js +1 -1
- package/progressbar/package.json +2 -1
- package/progressbar/progressbar.cjs.js +26 -15
- package/progressbar/progressbar.cjs.min.js +1 -1
- package/progressbar/progressbar.d.ts +1 -1
- package/progressbar/progressbar.esm.js +26 -15
- package/progressbar/progressbar.esm.min.js +1 -1
- package/progressbar/progressbar.js +26 -15
- package/progressbar/progressbar.min.js +1 -1
- package/progressspinner/package.json +2 -1
- package/progressspinner/progressspinner.cjs.js +22 -11
- package/progressspinner/progressspinner.cjs.min.js +1 -1
- package/progressspinner/progressspinner.d.ts +1 -1
- package/progressspinner/progressspinner.esm.js +22 -11
- package/progressspinner/progressspinner.esm.min.js +1 -1
- package/progressspinner/progressspinner.js +22 -11
- package/progressspinner/progressspinner.min.js +1 -1
- package/radiobutton/package.json +2 -1
- package/radiobutton/radiobutton.cjs.js +32 -25
- package/radiobutton/radiobutton.cjs.min.js +1 -1
- package/radiobutton/radiobutton.d.ts +1 -1
- package/radiobutton/radiobutton.esm.js +32 -25
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.js +32 -25
- package/radiobutton/radiobutton.min.js +1 -1
- package/rating/package.json +2 -1
- package/rating/rating.cjs.js +33 -22
- package/rating/rating.cjs.min.js +1 -1
- package/rating/rating.d.ts +1 -1
- package/rating/rating.esm.js +33 -22
- package/rating/rating.esm.min.js +1 -1
- package/rating/rating.js +33 -22
- package/rating/rating.min.js +1 -1
- package/resources/primereact.css +574 -574
- package/resources/primereact.min.css +1 -1
- package/resources/themes/arya-blue/theme.css +2 -0
- package/resources/themes/arya-green/theme.css +2 -0
- package/resources/themes/arya-orange/theme.css +2 -0
- package/resources/themes/arya-purple/theme.css +2 -0
- package/resources/themes/bootstrap4-dark-blue/theme.css +3 -1
- package/resources/themes/bootstrap4-dark-purple/theme.css +3 -1
- package/resources/themes/bootstrap4-light-blue/theme.css +3 -1
- package/resources/themes/bootstrap4-light-purple/theme.css +3 -1
- package/resources/themes/fluent-light/theme.css +3 -1
- package/resources/themes/lara-dark-blue/theme.css +2 -0
- package/resources/themes/lara-dark-indigo/theme.css +2 -0
- package/resources/themes/lara-dark-purple/theme.css +2 -0
- package/resources/themes/lara-dark-teal/theme.css +2 -0
- package/resources/themes/lara-light-blue/theme.css +2 -0
- package/resources/themes/lara-light-indigo/theme.css +2 -0
- package/resources/themes/lara-light-purple/theme.css +2 -0
- package/resources/themes/lara-light-teal/theme.css +2 -0
- package/resources/themes/luna-amber/theme.css +3 -1
- package/resources/themes/luna-blue/theme.css +3 -1
- package/resources/themes/luna-green/theme.css +3 -1
- package/resources/themes/luna-pink/theme.css +3 -1
- package/resources/themes/md-dark-deeppurple/theme.css +3 -1
- package/resources/themes/md-dark-indigo/theme.css +3 -1
- package/resources/themes/md-light-deeppurple/theme.css +3 -1
- package/resources/themes/md-light-indigo/theme.css +3 -1
- package/resources/themes/mdc-dark-deeppurple/theme.css +3 -1
- package/resources/themes/mdc-dark-indigo/theme.css +3 -1
- package/resources/themes/mdc-light-deeppurple/theme.css +3 -1
- package/resources/themes/mdc-light-indigo/theme.css +3 -1
- package/resources/themes/mira/theme.css +3 -1
- package/resources/themes/nano/theme.css +3 -1
- package/resources/themes/nova/theme.css +3 -1
- package/resources/themes/nova-accent/theme.css +3 -1
- package/resources/themes/nova-alt/theme.css +3 -1
- package/resources/themes/rhea/theme.css +3 -1
- package/resources/themes/saga-blue/theme.css +3 -1
- package/resources/themes/saga-green/theme.css +3 -1
- package/resources/themes/saga-orange/theme.css +3 -1
- package/resources/themes/saga-purple/theme.css +3 -1
- package/resources/themes/soho-dark/theme.css +3 -1
- package/resources/themes/soho-light/theme.css +3 -1
- package/resources/themes/vela-blue/theme.css +3 -1
- package/resources/themes/vela-green/theme.css +3 -1
- package/resources/themes/vela-orange/theme.css +3 -1
- package/resources/themes/vela-purple/theme.css +3 -1
- package/resources/themes/viva-dark/theme.css +3 -1
- package/resources/themes/viva-light/theme.css +3 -1
- package/ripple/package.json +2 -1
- package/ripple/ripple.cjs.js +0 -3
- package/ripple/ripple.cjs.min.js +1 -1
- package/ripple/ripple.d.ts +1 -1
- package/ripple/ripple.esm.js +0 -3
- package/ripple/ripple.esm.min.js +1 -1
- package/ripple/ripple.js +0 -3
- package/ripple/ripple.min.js +1 -1
- package/row/package.json +2 -1
- package/row/row.cjs.js +21 -7
- package/row/row.cjs.min.js +1 -1
- package/row/row.d.ts +1 -1
- package/row/row.esm.js +21 -7
- package/row/row.esm.min.js +1 -1
- package/row/row.js +21 -7
- package/row/row.min.js +1 -1
- package/scrollpanel/package.json +2 -1
- package/scrollpanel/scrollpanel.cjs.js +19 -8
- package/scrollpanel/scrollpanel.cjs.min.js +1 -1
- package/scrollpanel/scrollpanel.d.ts +1 -1
- package/scrollpanel/scrollpanel.esm.js +19 -8
- package/scrollpanel/scrollpanel.esm.min.js +1 -1
- package/scrollpanel/scrollpanel.js +19 -8
- package/scrollpanel/scrollpanel.min.js +1 -1
- package/scrolltop/package.json +2 -1
- package/scrolltop/scrolltop.cjs.js +27 -20
- package/scrolltop/scrolltop.cjs.min.js +1 -1
- package/scrolltop/scrolltop.d.ts +1 -1
- package/scrolltop/scrolltop.esm.js +28 -21
- package/scrolltop/scrolltop.esm.min.js +1 -1
- package/scrolltop/scrolltop.js +27 -20
- package/scrolltop/scrolltop.min.js +1 -1
- package/selectbutton/package.json +2 -1
- package/selectbutton/selectbutton.cjs.js +35 -28
- package/selectbutton/selectbutton.cjs.min.js +1 -1
- package/selectbutton/selectbutton.d.ts +1 -1
- package/selectbutton/selectbutton.esm.js +36 -29
- package/selectbutton/selectbutton.esm.min.js +1 -1
- package/selectbutton/selectbutton.js +35 -28
- package/selectbutton/selectbutton.min.js +1 -1
- package/selectitem/package.json +2 -1
- package/sidebar/package.json +2 -1
- package/sidebar/sidebar.cjs.js +38 -31
- package/sidebar/sidebar.cjs.min.js +1 -1
- package/sidebar/sidebar.d.ts +1 -1
- package/sidebar/sidebar.esm.js +39 -32
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.js +38 -31
- package/sidebar/sidebar.min.js +1 -1
- package/skeleton/package.json +2 -1
- package/skeleton/skeleton.cjs.js +24 -13
- package/skeleton/skeleton.cjs.min.js +1 -1
- package/skeleton/skeleton.d.ts +1 -1
- package/skeleton/skeleton.esm.js +24 -13
- package/skeleton/skeleton.esm.min.js +1 -1
- package/skeleton/skeleton.js +24 -13
- package/skeleton/skeleton.min.js +1 -1
- package/slidemenu/package.json +2 -1
- package/slidemenu/slidemenu.cjs.js +35 -28
- package/slidemenu/slidemenu.cjs.min.js +1 -1
- package/slidemenu/slidemenu.d.ts +1 -1
- package/slidemenu/slidemenu.esm.js +36 -29
- package/slidemenu/slidemenu.esm.min.js +1 -1
- package/slidemenu/slidemenu.js +35 -28
- package/slidemenu/slidemenu.min.js +1 -1
- package/slider/package.json +2 -1
- package/slider/slider.cjs.js +31 -24
- package/slider/slider.cjs.min.js +1 -1
- package/slider/slider.d.ts +1 -1
- package/slider/slider.esm.js +31 -24
- package/slider/slider.esm.min.js +1 -1
- package/slider/slider.js +31 -24
- package/slider/slider.min.js +1 -1
- package/speeddial/package.json +2 -1
- package/speeddial/speeddial.cjs.js +43 -36
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.d.ts +1 -1
- package/speeddial/speeddial.esm.js +44 -37
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +43 -36
- package/speeddial/speeddial.min.js +1 -1
- package/splitbutton/package.json +2 -1
- package/splitbutton/splitbutton.cjs.js +43 -36
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.d.ts +1 -1
- package/splitbutton/splitbutton.esm.js +44 -37
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +43 -36
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitter/package.json +2 -1
- package/splitter/splitter.cjs.js +53 -33
- package/splitter/splitter.cjs.min.js +1 -1
- package/splitter/splitter.d.ts +1 -1
- package/splitter/splitter.esm.js +54 -34
- package/splitter/splitter.esm.min.js +1 -1
- package/splitter/splitter.js +53 -33
- package/splitter/splitter.min.js +1 -1
- package/steps/package.json +2 -1
- package/steps/steps.cjs.js +23 -12
- package/steps/steps.cjs.min.js +1 -1
- package/steps/steps.d.ts +1 -1
- package/steps/steps.esm.js +23 -12
- package/steps/steps.esm.min.js +1 -1
- package/steps/steps.js +23 -12
- package/steps/steps.min.js +1 -1
- package/styleclass/package.json +2 -1
- package/styleclass/styleclass.cjs.js +27 -20
- package/styleclass/styleclass.cjs.min.js +1 -1
- package/styleclass/styleclass.d.ts +1 -1
- package/styleclass/styleclass.esm.js +28 -21
- package/styleclass/styleclass.esm.min.js +1 -1
- package/styleclass/styleclass.js +27 -20
- package/styleclass/styleclass.min.js +1 -1
- package/tabmenu/package.json +2 -1
- package/tabmenu/tabmenu.cjs.js +29 -20
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.d.ts +1 -1
- package/tabmenu/tabmenu.esm.js +29 -20
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +29 -20
- package/tabmenu/tabmenu.min.js +1 -1
- package/tabview/package.json +2 -1
- package/tabview/tabview.cjs.js +79 -57
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.d.ts +1 -1
- package/tabview/tabview.esm.js +80 -58
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +79 -57
- package/tabview/tabview.min.js +1 -1
- package/tag/package.json +2 -1
- package/tag/tag.cjs.js +22 -11
- package/tag/tag.cjs.min.js +1 -1
- package/tag/tag.d.ts +1 -1
- package/tag/tag.esm.js +22 -11
- package/tag/tag.esm.min.js +1 -1
- package/tag/tag.js +22 -11
- package/tag/tag.min.js +1 -1
- package/terminal/package.json +2 -1
- package/terminal/terminal.cjs.js +23 -16
- package/terminal/terminal.cjs.min.js +1 -1
- package/terminal/terminal.d.ts +1 -1
- package/terminal/terminal.esm.js +24 -17
- package/terminal/terminal.esm.min.js +1 -1
- package/terminal/terminal.js +23 -16
- package/terminal/terminal.min.js +1 -1
- package/terminalservice/package.json +2 -1
- package/terminalservice/terminalservice.d.ts +1 -1
- package/tieredmenu/package.json +2 -1
- package/tieredmenu/tieredmenu.cjs.js +29 -22
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.d.ts +1 -1
- package/tieredmenu/tieredmenu.esm.js +30 -23
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +29 -22
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/timeline/package.json +2 -1
- package/timeline/timeline.cjs.js +24 -13
- package/timeline/timeline.cjs.min.js +1 -1
- package/timeline/timeline.d.ts +1 -1
- package/timeline/timeline.esm.js +24 -13
- package/timeline/timeline.esm.min.js +1 -1
- package/timeline/timeline.js +24 -13
- package/timeline/timeline.min.js +1 -1
- package/toast/package.json +2 -1
- package/toast/toast.cjs.js +34 -25
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.d.ts +1 -1
- package/toast/toast.esm.js +36 -27
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +34 -25
- package/toast/toast.min.js +1 -1
- package/togglebutton/package.json +2 -1
- package/togglebutton/togglebutton.cjs.js +31 -20
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.d.ts +1 -1
- package/togglebutton/togglebutton.esm.js +32 -21
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +31 -20
- package/togglebutton/togglebutton.min.js +1 -1
- package/toolbar/package.json +2 -1
- package/toolbar/toolbar.cjs.js +24 -13
- package/toolbar/toolbar.cjs.min.js +1 -1
- package/toolbar/toolbar.d.ts +1 -1
- package/toolbar/toolbar.esm.js +24 -13
- package/toolbar/toolbar.esm.min.js +1 -1
- package/toolbar/toolbar.js +24 -13
- package/toolbar/toolbar.min.js +1 -1
- package/tooltip/package.json +2 -1
- package/tooltip/tooltip.cjs.js +45 -38
- package/tooltip/tooltip.cjs.min.js +1 -1
- package/tooltip/tooltip.d.ts +1 -1
- package/tooltip/tooltip.esm.js +46 -39
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +45 -38
- package/tooltip/tooltip.min.js +1 -1
- package/tooltip/tooltipoptions.d.ts +17 -17
- package/tree/package.json +2 -1
- package/tree/tree.cjs.js +61 -54
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.d.ts +1 -1
- package/tree/tree.esm.js +62 -55
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +61 -54
- package/tree/tree.min.js +1 -1
- package/treenode/package.json +2 -1
- package/treeselect/package.json +2 -1
- package/treeselect/treeselect.cjs.js +62 -55
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.d.ts +1 -1
- package/treeselect/treeselect.esm.js +63 -56
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +62 -55
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/package.json +2 -1
- package/treetable/treetable.cjs.js +287 -151
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.d.ts +58 -1
- package/treetable/treetable.esm.js +288 -152
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +288 -152
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/package.json +2 -1
- package/tristatecheckbox/tristatecheckbox.cjs.js +28 -21
- package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.d.ts +1 -1
- package/tristatecheckbox/tristatecheckbox.esm.js +29 -22
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.js +28 -21
- package/tristatecheckbox/tristatecheckbox.min.js +1 -1
- package/utils/package.json +2 -1
- package/utils/utils.cjs.js +57 -26
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.d.ts +7 -0
- package/utils/utils.esm.js +57 -26
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +57 -26
- package/utils/utils.min.js +1 -1
- package/virtualscroller/package.json +2 -1
- package/virtualscroller/virtualscroller.cjs.js +44 -37
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.d.ts +1 -1
- package/virtualscroller/virtualscroller.esm.js +45 -38
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +44 -37
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +9 -3
- package/captcha/captcha.cjs.js +0 -142
- package/captcha/captcha.cjs.min.js +0 -1
- package/captcha/captcha.d.ts +0 -88
- package/captcha/captcha.esm.js +0 -118
- package/captcha/captcha.esm.min.js +0 -1
- package/captcha/captcha.js +0 -144
- package/captcha/captcha.min.js +0 -1
- package/captcha/package.json +0 -6
- package/gmap/gmap.cjs.js +0 -186
- package/gmap/gmap.cjs.min.js +0 -1
- package/gmap/gmap.d.ts +0 -112
- package/gmap/gmap.esm.js +0 -162
- package/gmap/gmap.esm.min.js +0 -1
- package/gmap/gmap.js +0 -188
- package/gmap/gmap.min.js +0 -1
- package/gmap/package.json +0 -6
|
@@ -39,9 +39,7 @@ function _iterableToArrayLimit(arr, i) {
|
|
|
39
39
|
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
|
40
40
|
if (Object(_i) !== _i) return;
|
|
41
41
|
_n = !1;
|
|
42
|
-
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0)
|
|
43
|
-
;
|
|
44
|
-
}
|
|
42
|
+
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
|
|
45
43
|
} catch (err) {
|
|
46
44
|
_d = !0, _e = err;
|
|
47
45
|
} finally {
|
|
@@ -57,9 +55,7 @@ function _iterableToArrayLimit(arr, i) {
|
|
|
57
55
|
|
|
58
56
|
function _arrayLikeToArray(arr, len) {
|
|
59
57
|
if (len == null || len > arr.length) len = arr.length;
|
|
60
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
61
|
-
arr2[i] = arr[i];
|
|
62
|
-
}
|
|
58
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
63
59
|
return arr2;
|
|
64
60
|
}
|
|
65
61
|
|
|
@@ -121,9 +117,173 @@ function _defineProperty(obj, key, value) {
|
|
|
121
117
|
return obj;
|
|
122
118
|
}
|
|
123
119
|
|
|
120
|
+
var PaginatorBase = {
|
|
121
|
+
defaultProps: {
|
|
122
|
+
__TYPE: 'Paginator',
|
|
123
|
+
totalRecords: 0,
|
|
124
|
+
rows: 0,
|
|
125
|
+
first: 0,
|
|
126
|
+
pageLinkSize: 5,
|
|
127
|
+
rowsPerPageOptions: null,
|
|
128
|
+
alwaysShow: true,
|
|
129
|
+
style: null,
|
|
130
|
+
className: null,
|
|
131
|
+
template: 'FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown',
|
|
132
|
+
onPageChange: null,
|
|
133
|
+
leftContent: null,
|
|
134
|
+
rightContent: null,
|
|
135
|
+
dropdownAppendTo: null,
|
|
136
|
+
currentPageReportTemplate: '({currentPage} of {totalPages})',
|
|
137
|
+
children: undefined
|
|
138
|
+
},
|
|
139
|
+
getProps: function getProps(props) {
|
|
140
|
+
return ObjectUtils.getMergedProps(props, PaginatorBase.defaultProps);
|
|
141
|
+
},
|
|
142
|
+
getOtherProps: function getOtherProps(props) {
|
|
143
|
+
return ObjectUtils.getDiffProps(props, PaginatorBase.defaultProps);
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
var CurrentPageReportBase = {
|
|
147
|
+
defaultProps: {
|
|
148
|
+
__TYPE: 'CurrentPageReport',
|
|
149
|
+
pageCount: null,
|
|
150
|
+
page: null,
|
|
151
|
+
first: null,
|
|
152
|
+
rows: null,
|
|
153
|
+
totalRecords: null,
|
|
154
|
+
reportTemplate: '({currentPage} of {totalPages})',
|
|
155
|
+
template: null,
|
|
156
|
+
children: undefined
|
|
157
|
+
},
|
|
158
|
+
getProps: function getProps(props) {
|
|
159
|
+
return ObjectUtils.getMergedProps(props, CurrentPageReportBase.defaultProps);
|
|
160
|
+
},
|
|
161
|
+
getOtherProps: function getOtherProps(props) {
|
|
162
|
+
return ObjectUtils.getDiffProps(props, CurrentPageReportBase.defaultProps);
|
|
163
|
+
}
|
|
164
|
+
};
|
|
165
|
+
var FirstPageLinkBase = {
|
|
166
|
+
defaultProps: {
|
|
167
|
+
__TYPE: 'FirstPageLink',
|
|
168
|
+
disabled: false,
|
|
169
|
+
onClick: null,
|
|
170
|
+
template: null,
|
|
171
|
+
children: undefined
|
|
172
|
+
},
|
|
173
|
+
getProps: function getProps(props) {
|
|
174
|
+
return ObjectUtils.getMergedProps(props, FirstPageLinkBase.defaultProps);
|
|
175
|
+
},
|
|
176
|
+
getOtherProps: function getOtherProps(props) {
|
|
177
|
+
return ObjectUtils.getDiffProps(props, FirstPageLinkBase.defaultProps);
|
|
178
|
+
}
|
|
179
|
+
};
|
|
180
|
+
var JumpToPageInputBase = {
|
|
181
|
+
defaultProps: {
|
|
182
|
+
__TYPE: 'JumbToPageInput',
|
|
183
|
+
page: null,
|
|
184
|
+
rows: null,
|
|
185
|
+
pageCount: null,
|
|
186
|
+
disabled: false,
|
|
187
|
+
template: null,
|
|
188
|
+
onChange: null,
|
|
189
|
+
children: undefined
|
|
190
|
+
},
|
|
191
|
+
getProps: function getProps(props) {
|
|
192
|
+
return ObjectUtils.getMergedProps(props, JumpToPageInputBase.defaultProps);
|
|
193
|
+
},
|
|
194
|
+
getOtherProps: function getOtherProps(props) {
|
|
195
|
+
return ObjectUtils.getDiffProps(props, JumpToPageInputBase.defaultProps);
|
|
196
|
+
}
|
|
197
|
+
};
|
|
198
|
+
var LastPageLinkBase = {
|
|
199
|
+
defaultProps: {
|
|
200
|
+
__TYPE: 'LastPageLink',
|
|
201
|
+
disabled: false,
|
|
202
|
+
onClick: null,
|
|
203
|
+
template: null,
|
|
204
|
+
children: undefined
|
|
205
|
+
},
|
|
206
|
+
getProps: function getProps(props) {
|
|
207
|
+
return ObjectUtils.getMergedProps(props, LastPageLinkBase.defaultProps);
|
|
208
|
+
},
|
|
209
|
+
getOtherProps: function getOtherProps(props) {
|
|
210
|
+
return ObjectUtils.getDiffProps(props, LastPageLinkBase.defaultProps);
|
|
211
|
+
}
|
|
212
|
+
};
|
|
213
|
+
var NextPageLinkBase = {
|
|
214
|
+
defaultProps: {
|
|
215
|
+
__TYPE: 'NextPageLink',
|
|
216
|
+
disabled: false,
|
|
217
|
+
onClick: null,
|
|
218
|
+
template: null,
|
|
219
|
+
children: undefined
|
|
220
|
+
},
|
|
221
|
+
getProps: function getProps(props) {
|
|
222
|
+
return ObjectUtils.getMergedProps(props, NextPageLinkBase.defaultProps);
|
|
223
|
+
},
|
|
224
|
+
getOtherProps: function getOtherProps(props) {
|
|
225
|
+
return ObjectUtils.getDiffProps(props, NextPageLinkBase.defaultProps);
|
|
226
|
+
}
|
|
227
|
+
};
|
|
228
|
+
var PageLinksBase = {
|
|
229
|
+
defaultProps: {
|
|
230
|
+
__TYPE: 'PageLinks',
|
|
231
|
+
value: null,
|
|
232
|
+
page: null,
|
|
233
|
+
rows: null,
|
|
234
|
+
pageCount: null,
|
|
235
|
+
links: null,
|
|
236
|
+
template: null,
|
|
237
|
+
children: undefined
|
|
238
|
+
},
|
|
239
|
+
getProps: function getProps(props) {
|
|
240
|
+
return ObjectUtils.getMergedProps(props, PageLinksBase.defaultProps);
|
|
241
|
+
},
|
|
242
|
+
getOtherProps: function getOtherProps(props) {
|
|
243
|
+
return ObjectUtils.getDiffProps(props, PageLinksBase.defaultProps);
|
|
244
|
+
}
|
|
245
|
+
};
|
|
246
|
+
var PrevPageLinkBase = {
|
|
247
|
+
defaultProps: {
|
|
248
|
+
__TYPE: 'PrevPageLink',
|
|
249
|
+
disabled: false,
|
|
250
|
+
onClick: null,
|
|
251
|
+
template: null,
|
|
252
|
+
children: undefined
|
|
253
|
+
},
|
|
254
|
+
getProps: function getProps(props) {
|
|
255
|
+
return ObjectUtils.getMergedProps(props, PrevPageLinkBase.defaultProps);
|
|
256
|
+
},
|
|
257
|
+
getOtherProps: function getOtherProps(props) {
|
|
258
|
+
return ObjectUtils.getDiffProps(props, PrevPageLinkBase.defaultProps);
|
|
259
|
+
}
|
|
260
|
+
};
|
|
261
|
+
var RowsPerPageDropdownBase = {
|
|
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
|
+
getProps: function getProps(props) {
|
|
276
|
+
return ObjectUtils.getMergedProps(props, RowsPerPageDropdownBase.defaultProps);
|
|
277
|
+
},
|
|
278
|
+
getOtherProps: function getOtherProps(props) {
|
|
279
|
+
return ObjectUtils.getDiffProps(props, RowsPerPageDropdownBase.defaultProps);
|
|
280
|
+
}
|
|
281
|
+
};
|
|
282
|
+
|
|
124
283
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
125
284
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
126
|
-
var CurrentPageReport = /*#__PURE__*/React.memo(function (
|
|
285
|
+
var CurrentPageReport = /*#__PURE__*/React.memo(function (inProps) {
|
|
286
|
+
var props = CurrentPageReportBase.getProps(inProps);
|
|
127
287
|
var report = {
|
|
128
288
|
currentPage: props.page + 1,
|
|
129
289
|
totalPages: props.pageCount,
|
|
@@ -147,18 +307,9 @@ var CurrentPageReport = /*#__PURE__*/React.memo(function (props) {
|
|
|
147
307
|
return element;
|
|
148
308
|
});
|
|
149
309
|
CurrentPageReport.displayName = 'CurrentPageReport';
|
|
150
|
-
CurrentPageReport.defaultProps = {
|
|
151
|
-
__TYPE: 'CurrentPageReport',
|
|
152
|
-
pageCount: null,
|
|
153
|
-
page: null,
|
|
154
|
-
first: null,
|
|
155
|
-
rows: null,
|
|
156
|
-
totalRecords: null,
|
|
157
|
-
reportTemplate: '({currentPage} of {totalPages})',
|
|
158
|
-
template: null
|
|
159
|
-
};
|
|
160
310
|
|
|
161
|
-
var FirstPageLink = /*#__PURE__*/React.memo(function (
|
|
311
|
+
var FirstPageLink = /*#__PURE__*/React.memo(function (inProps) {
|
|
312
|
+
var props = FirstPageLinkBase.getProps(inProps);
|
|
162
313
|
var className = classNames('p-paginator-first p-paginator-element p-link', {
|
|
163
314
|
'p-disabled': props.disabled
|
|
164
315
|
});
|
|
@@ -186,14 +337,9 @@ var FirstPageLink = /*#__PURE__*/React.memo(function (props) {
|
|
|
186
337
|
return element;
|
|
187
338
|
});
|
|
188
339
|
FirstPageLink.displayName = 'FirstPageLink';
|
|
189
|
-
FirstPageLink.defaultProps = {
|
|
190
|
-
__TYPE: 'FirstPageLink',
|
|
191
|
-
disabled: false,
|
|
192
|
-
onClick: null,
|
|
193
|
-
template: null
|
|
194
|
-
};
|
|
195
340
|
|
|
196
|
-
var JumpToPageInput = /*#__PURE__*/React.memo(function (
|
|
341
|
+
var JumpToPageInput = /*#__PURE__*/React.memo(function (inProps) {
|
|
342
|
+
var props = JumpToPageInputBase.getProps(inProps);
|
|
197
343
|
var onChange = function onChange(event) {
|
|
198
344
|
if (props.onChange) {
|
|
199
345
|
props.onChange(props.rows * (event.value - 1), props.rows);
|
|
@@ -220,17 +366,9 @@ var JumpToPageInput = /*#__PURE__*/React.memo(function (props) {
|
|
|
220
366
|
return element;
|
|
221
367
|
});
|
|
222
368
|
JumpToPageInput.displayName = 'JumpToPageInput';
|
|
223
|
-
JumpToPageInput.defaultProps = {
|
|
224
|
-
__TYPE: 'JumbToPageInput',
|
|
225
|
-
page: null,
|
|
226
|
-
rows: null,
|
|
227
|
-
pageCount: null,
|
|
228
|
-
disabled: false,
|
|
229
|
-
template: null,
|
|
230
|
-
onChange: null
|
|
231
|
-
};
|
|
232
369
|
|
|
233
|
-
var LastPageLink = /*#__PURE__*/React.memo(function (
|
|
370
|
+
var LastPageLink = /*#__PURE__*/React.memo(function (inProps) {
|
|
371
|
+
var props = LastPageLinkBase.getProps(inProps);
|
|
234
372
|
var className = classNames('p-paginator-last p-paginator-element p-link', {
|
|
235
373
|
'p-disabled': props.disabled
|
|
236
374
|
});
|
|
@@ -258,14 +396,9 @@ var LastPageLink = /*#__PURE__*/React.memo(function (props) {
|
|
|
258
396
|
return element;
|
|
259
397
|
});
|
|
260
398
|
LastPageLink.displayName = 'LastPageLink';
|
|
261
|
-
LastPageLink.defaultProps = {
|
|
262
|
-
__TYPE: 'LastPageLink',
|
|
263
|
-
disabled: false,
|
|
264
|
-
onClick: null,
|
|
265
|
-
template: null
|
|
266
|
-
};
|
|
267
399
|
|
|
268
|
-
var NextPageLink = /*#__PURE__*/React.memo(function (
|
|
400
|
+
var NextPageLink = /*#__PURE__*/React.memo(function (inProps) {
|
|
401
|
+
var props = NextPageLinkBase.getProps(inProps);
|
|
269
402
|
var className = classNames('p-paginator-next p-paginator-element p-link', {
|
|
270
403
|
'p-disabled': props.disabled
|
|
271
404
|
});
|
|
@@ -293,14 +426,9 @@ var NextPageLink = /*#__PURE__*/React.memo(function (props) {
|
|
|
293
426
|
return element;
|
|
294
427
|
});
|
|
295
428
|
NextPageLink.displayName = 'NextPageLink';
|
|
296
|
-
NextPageLink.defaultProps = {
|
|
297
|
-
__TYPE: 'NextPageLink',
|
|
298
|
-
disabled: false,
|
|
299
|
-
onClick: null,
|
|
300
|
-
template: null
|
|
301
|
-
};
|
|
302
429
|
|
|
303
|
-
var PageLinks = /*#__PURE__*/React.memo(function (
|
|
430
|
+
var PageLinks = /*#__PURE__*/React.memo(function (inProps) {
|
|
431
|
+
var props = PageLinksBase.getProps(inProps);
|
|
304
432
|
var onPageLinkClick = function onPageLinkClick(event, pageLink) {
|
|
305
433
|
if (props.onClick) {
|
|
306
434
|
props.onClick({
|
|
@@ -356,17 +484,9 @@ var PageLinks = /*#__PURE__*/React.memo(function (props) {
|
|
|
356
484
|
}, elements);
|
|
357
485
|
});
|
|
358
486
|
PageLinks.displayName = 'PageLinks';
|
|
359
|
-
PageLinks.defaultProps = {
|
|
360
|
-
__TYPE: 'PageLinks',
|
|
361
|
-
value: null,
|
|
362
|
-
page: null,
|
|
363
|
-
rows: null,
|
|
364
|
-
pageCount: null,
|
|
365
|
-
links: null,
|
|
366
|
-
template: null
|
|
367
|
-
};
|
|
368
487
|
|
|
369
|
-
var PrevPageLink = /*#__PURE__*/React.memo(function (
|
|
488
|
+
var PrevPageLink = /*#__PURE__*/React.memo(function (inProps) {
|
|
489
|
+
var props = PrevPageLinkBase.getProps(inProps);
|
|
370
490
|
var className = classNames('p-paginator-prev p-paginator-element p-link', {
|
|
371
491
|
'p-disabled': props.disabled
|
|
372
492
|
});
|
|
@@ -394,14 +514,9 @@ var PrevPageLink = /*#__PURE__*/React.memo(function (props) {
|
|
|
394
514
|
return element;
|
|
395
515
|
});
|
|
396
516
|
PrevPageLink.displayName = 'PrevPageLink';
|
|
397
|
-
PrevPageLink.defaultProps = {
|
|
398
|
-
__TYPE: 'PrevPageLink',
|
|
399
|
-
disabled: false,
|
|
400
|
-
onClick: null,
|
|
401
|
-
template: null
|
|
402
|
-
};
|
|
403
517
|
|
|
404
|
-
var RowsPerPageDropdown = /*#__PURE__*/React.memo(function (
|
|
518
|
+
var RowsPerPageDropdown = /*#__PURE__*/React.memo(function (inProps) {
|
|
519
|
+
var props = RowsPerPageDropdownBase.getProps(inProps);
|
|
405
520
|
var hasOptions = props.options && props.options.length > 0;
|
|
406
521
|
var options = hasOptions ? props.options.map(function (opt) {
|
|
407
522
|
return {
|
|
@@ -437,20 +552,9 @@ var RowsPerPageDropdown = /*#__PURE__*/React.memo(function (props) {
|
|
|
437
552
|
return element;
|
|
438
553
|
});
|
|
439
554
|
RowsPerPageDropdown.displayName = 'RowsPerPageDropdown';
|
|
440
|
-
RowsPerPageDropdown.defaultProps = {
|
|
441
|
-
__TYPE: 'RowsPerPageDropdown',
|
|
442
|
-
options: null,
|
|
443
|
-
value: null,
|
|
444
|
-
page: null,
|
|
445
|
-
pageCount: null,
|
|
446
|
-
totalRecords: 0,
|
|
447
|
-
appendTo: null,
|
|
448
|
-
onChange: null,
|
|
449
|
-
template: null,
|
|
450
|
-
disabled: false
|
|
451
|
-
};
|
|
452
555
|
|
|
453
|
-
var Paginator = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
556
|
+
var Paginator = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
557
|
+
var props = PaginatorBase.getProps(inProps);
|
|
454
558
|
var elementRef = React.useRef(null);
|
|
455
559
|
var rppChanged = React.useRef(false);
|
|
456
560
|
var page = Math.floor(props.first / props.rows);
|
|
@@ -651,7 +755,7 @@ var Paginator = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
|
|
|
651
755
|
if (!props.alwaysShow && pageCount === 1) {
|
|
652
756
|
return null;
|
|
653
757
|
} else {
|
|
654
|
-
var otherProps =
|
|
758
|
+
var otherProps = PaginatorBase.getOtherProps(props);
|
|
655
759
|
var className = classNames('p-paginator p-component', props.className);
|
|
656
760
|
var leftContent = ObjectUtils.getJSXElement(props.leftContent, props);
|
|
657
761
|
var rightContent = ObjectUtils.getJSXElement(props.rightContent, props);
|
|
@@ -670,22 +774,5 @@ var Paginator = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function
|
|
|
670
774
|
}
|
|
671
775
|
}));
|
|
672
776
|
Paginator.displayName = 'Paginator';
|
|
673
|
-
Paginator.defaultProps = {
|
|
674
|
-
__TYPE: 'Paginator',
|
|
675
|
-
totalRecords: 0,
|
|
676
|
-
rows: 0,
|
|
677
|
-
first: 0,
|
|
678
|
-
pageLinkSize: 5,
|
|
679
|
-
rowsPerPageOptions: null,
|
|
680
|
-
alwaysShow: true,
|
|
681
|
-
style: null,
|
|
682
|
-
className: null,
|
|
683
|
-
template: 'FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown',
|
|
684
|
-
onPageChange: null,
|
|
685
|
-
leftContent: null,
|
|
686
|
-
rightContent: null,
|
|
687
|
-
dropdownAppendTo: null,
|
|
688
|
-
currentPageReportTemplate: '({currentPage} of {totalPages})'
|
|
689
|
-
};
|
|
690
777
|
|
|
691
778
|
export { Paginator };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";import{useUpdateEffect as t}from"primereact/hooks";import{ObjectUtils as a,classNames as n}from"primereact/utils";import{ariaLabel as r,localeOption as l}from"primereact/api";import{Ripple as o}from"primereact/ripple";import{InputNumber as i}from"primereact/inputnumber";import{Dropdown as p}from"primereact/dropdown";function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},s.apply(this,arguments)}function u(e){if(Array.isArray(e))return e}function c(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,r,l,o,i=[],p=!0,s=!1;try{if(l=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;p=!1}else for(;!(p=(n=l.call(a)).done)&&(i.push(n.value),i.length!==t);p=!0);}catch(e){s=!0,r=e}finally{try{if(!p&&null!=a.return&&(o=a.return(),Object(o)!==o))return}finally{if(s)throw r}}return i}}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}function g(e,t){if(e){if("string"==typeof e)return m(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?m(e,t):void 0}}function d(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function b(e,t){if("object"!==f(e)||null===e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var n=a.call(e,t||"default");if("object"!==f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function P(e){var t=b(e,"string");return"symbol"===f(t)?t:String(t)}function v(e,t,a){return(t=P(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function y(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function k(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?y(Object(a),!0).forEach((function(t){v(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):y(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var w=e.memo((function(t){var n={currentPage:t.page+1,totalPages:t.pageCount,first:Math.min(t.first+1,t.totalRecords),last:Math.min(t.first+t.rows,t.totalRecords),rows:t.rows,totalRecords:t.totalRecords},r=t.reportTemplate.replace("{currentPage}",n.currentPage).replace("{totalPages}",n.totalPages).replace("{first}",n.first).replace("{last}",n.last).replace("{rows}",n.rows).replace("{totalRecords}",n.totalRecords),l=e.createElement("span",{className:"p-paginator-current"},r);if(t.template){var o=k(k({},n),{className:"p-paginator-current",element:l,props:t});return a.getJSXElement(t.template,o)}return l}));w.displayName="CurrentPageReport",w.defaultProps={__TYPE:"CurrentPageReport",pageCount:null,page:null,first:null,rows:null,totalRecords:null,reportTemplate:"({currentPage} of {totalPages})",template:null};var C=e.memo((function(t){var l=n("p-paginator-first p-paginator-element p-link",{"p-disabled":t.disabled}),i="p-paginator-icon pi pi-angle-double-left",p=e.createElement("button",{type:"button",className:l,onClick:t.onClick,disabled:t.disabled,"aria-label":r("firstPageLabel")},e.createElement("span",{className:i}),e.createElement(o,null));return t.template?a.getJSXElement(t.template,{onClick:t.onClick,className:l,iconClassName:i,disabled:t.disabled,element:p,props:t}):p}));C.displayName="FirstPageLink",C.defaultProps={__TYPE:"FirstPageLink",disabled:!1,onClick:null,template:null};var h=e.memo((function(t){var n=function(e){t.onChange&&t.onChange(t.rows*(e.value-1),t.rows)},r=t.pageCount>0?t.page+1:0,l=e.createElement(i,{value:r,onChange:n,className:"p-paginator-page-input",disabled:t.disabled});return t.template?a.getJSXElement(t.template,{value:r,onChange:n,disabled:t.disabled,className:"p-paginator-page-input",element:l,props:t}):l}));h.displayName="JumpToPageInput",h.defaultProps={__TYPE:"JumbToPageInput",page:null,rows:null,pageCount:null,disabled:!1,template:null,onChange:null};var E=e.memo((function(t){var l=n("p-paginator-last p-paginator-element p-link",{"p-disabled":t.disabled}),i="p-paginator-icon pi pi-angle-double-right",p=e.createElement("button",{type:"button",className:l,onClick:t.onClick,disabled:t.disabled,"aria-label":r("lastPageLabel")},e.createElement("span",{className:i}),e.createElement(o,null));return t.template?a.getJSXElement(t.template,{onClick:t.onClick,className:l,iconClassName:i,disabled:t.disabled,element:p,props:t}):p}));E.displayName="LastPageLink",E.defaultProps={__TYPE:"LastPageLink",disabled:!1,onClick:null,template:null};var N=e.memo((function(t){var l=n("p-paginator-next p-paginator-element p-link",{"p-disabled":t.disabled}),i="p-paginator-icon pi pi-angle-right",p=e.createElement("button",{type:"button",className:l,onClick:t.onClick,disabled:t.disabled,"aria-label":r("nextPageLabel")},e.createElement("span",{className:i}),e.createElement(o,null));return t.template?a.getJSXElement(t.template,{onClick:t.onClick,className:l,iconClassName:i,disabled:t.disabled,element:p,props:t}):p}));N.displayName="NextPageLink",N.defaultProps={__TYPE:"NextPageLink",disabled:!1,onClick:null,template:null};var L=e.memo((function(t){var l,i=function(e,a){t.onClick&&t.onClick({originalEvent:e,value:a}),e.preventDefault()};if(t.value){var p=t.value[0],s=t.value[t.value.length-1];l=t.value.map((function(l){var u=n("p-paginator-page p-paginator-element p-link",{"p-paginator-page-start":l===p,"p-paginator-page-end":l===s,"p-highlight":l-1===t.page}),c=e.createElement("button",{type:"button",className:u,onClick:function(e){return i(e,l)},"aria-label":"".concat(r("pageLabel")," ").concat(l+1)},l,e.createElement(o,null));t.template&&(c=a.getJSXElement(t.template,{onClick:function(e){return i(e,l)},className:u,view:{startPage:p-1,endPage:s-1},page:l-1,currentPage:t.page,totalPages:t.pageCount,element:c,props:t}));return e.createElement(e.Fragment,{key:l},c)}))}return e.createElement("span",{className:"p-paginator-pages"},l)}));L.displayName="PageLinks",L.defaultProps={__TYPE:"PageLinks",value:null,page:null,rows:null,pageCount:null,links:null,template:null};var S=e.memo((function(t){var l=n("p-paginator-prev p-paginator-element p-link",{"p-disabled":t.disabled}),i="p-paginator-icon pi pi-angle-left",p=e.createElement("button",{type:"button",className:l,onClick:t.onClick,disabled:t.disabled,"aria-label":r("previousPageLabel")},e.createElement("span",{className:i}),e.createElement(o,null));return t.template?a.getJSXElement(t.template,{onClick:t.onClick,className:l,iconClassName:i,disabled:t.disabled,element:p,props:t}):p}));S.displayName="PrevPageLink",S.defaultProps={__TYPE:"PrevPageLink",disabled:!1,onClick:null,template:null};var R=e.memo((function(t){var n=t.options&&t.options.length>0,r=n?t.options.map((function(e){return{label:String(e),value:e}})):[],o=l("choose"),i=n?e.createElement(p,{value:t.value,options:r,onChange:t.onChange,appendTo:t.appendTo,disabled:t.disabled,placeholder:o,"aria-label":o}):null;return t.template?a.getJSXElement(t.template,{value:t.value,options:r,onChange:t.onChange,appendTo:t.appendTo,currentPage:t.page,totalPages:t.pageCount,totalRecords:t.totalRecords,disabled:t.disabled,element:i,props:t}):i}));R.displayName="RowsPerPageDropdown",R.defaultProps={__TYPE:"RowsPerPageDropdown",options:null,value:null,page:null,pageCount:null,totalRecords:0,appendTo:null,onChange:null,template:null,disabled:!1};var O=e.memo(e.forwardRef((function(r,l){var o=e.useRef(null),i=e.useRef(!1),p=Math.floor(r.first/r.rows),m=Math.ceil(r.totalRecords/r.rows),b=0===p,P=p===m-1,v=0===m,y=function(){var e=m,t=Math.min(r.pageLinkSize,e),a=Math.max(0,Math.ceil(p-t/2)),n=Math.min(e-1,a+t-1);return[a=Math.max(0,a-(r.pageLinkSize-(n-a+1))),n]},k=function(){for(var e=[],t=y(),a=t[1],n=t[0];n<=a;n++)e.push(n+1);return e},T=function(e,t){var a=m,n=Math.floor(e/t);n>=0&&n<a&&(r.onPageChange&&r.onPageChange({first:e,rows:t,page:n,pageCount:a}))},j=function(e){T(0,r.rows),e.preventDefault()},_=function(e){T(r.first-r.rows,r.rows),e.preventDefault()},D=function(e){T((e.value-1)*r.rows,r.rows)},J=function(e){T(r.first+r.rows,r.rows),e.preventDefault()},M=function(e){T((m-1)*r.rows,r.rows),e.preventDefault()},x=function(e){var t=e.value;i.current=t!==r.rows,T(0,t)};e.useImperativeHandle(l,(function(){return{props:r,getElement:function(){return o.current}}})),t((function(){i.current||T(r.first,r.rows),i.current=!1}),[r.rows]),t((function(){p>0&&r.first>=r.totalRecords&&T((m-1)*r.rows,r.rows)}),[r.totalRecords]);var X,Y=function(t,a){var n;switch(t){case"FirstPageLink":n=e.createElement(C,{key:t,onClick:j,disabled:b||v,template:a});break;case"PrevPageLink":n=e.createElement(S,{key:t,onClick:_,disabled:b||v,template:a});break;case"NextPageLink":n=e.createElement(N,{key:t,onClick:J,disabled:P||v,template:a});break;case"LastPageLink":n=e.createElement(E,{key:t,onClick:M,disabled:P||v,template:a});break;case"PageLinks":n=e.createElement(L,{key:t,value:k(),page:p,rows:r.rows,pageCount:m,onClick:D,template:a});break;case"RowsPerPageDropdown":n=e.createElement(R,{key:t,value:r.rows,page:p,pageCount:m,totalRecords:r.totalRecords,options:r.rowsPerPageOptions,onChange:x,appendTo:r.dropdownAppendTo,template:a,disabled:v});break;case"CurrentPageReport":n=e.createElement(w,{reportTemplate:r.currentPageReportTemplate,key:t,page:p,pageCount:m,first:r.first,rows:r.rows,totalRecords:r.totalRecords,template:a});break;case"JumpToPageInput":n=e.createElement(h,{key:t,rows:r.rows,page:p,pageCount:m,onChange:T,disabled:v,template:a});break;default:n=null}return n};if(r.alwaysShow||1!==m){var A=a.findDiffKeys(r,O.defaultProps),I=n("p-paginator p-component",r.className),F=a.getJSXElement(r.leftContent,r),z=a.getJSXElement(r.rightContent,r),H=(X=r.template)?"object"===f(X)?X.layout?X.layout.split(" ").map((function(e){var t=e.trim();return Y(t,X[t])})):Object.entries(X).map((function(e){var t,a,n=(a=2,u(t=e)||c(t,a)||g(t,a)||d());return Y(n[0],n[1])})):X.split(" ").map((function(e){return Y(e.trim())})):null,K=F&&e.createElement("div",{className:"p-paginator-left-content"},F),U=z&&e.createElement("div",{className:"p-paginator-right-content"},z);return e.createElement("div",s({ref:o,className:I,style:r.style},A),K,H,U)}return null})));O.displayName="Paginator",O.defaultProps={__TYPE:"Paginator",totalRecords:0,rows:0,first:0,pageLinkSize:5,rowsPerPageOptions:null,alwaysShow:!0,style:null,className:null,template:"FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown",onPageChange:null,leftContent:null,rightContent:null,dropdownAppendTo:null,currentPageReportTemplate:"({currentPage} of {totalPages})"};export{O as Paginator};
|
|
1
|
+
import*as e from"react";import{useUpdateEffect as t}from"primereact/hooks";import{ObjectUtils as r,classNames as a}from"primereact/utils";import{ariaLabel as n,localeOption as o}from"primereact/api";import{Ripple as l}from"primereact/ripple";import{InputNumber as i}from"primereact/inputnumber";import{Dropdown as p}from"primereact/dropdown";function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},s.apply(this,arguments)}function u(e){if(Array.isArray(e))return e}function c(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a,n,o,l,i=[],p=!0,s=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;p=!1}else for(;!(p=(a=o.call(r)).done)&&(i.push(a.value),i.length!==t);p=!0);}catch(e){s=!0,n=e}finally{try{if(!p&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(s)throw n}}return i}}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function m(e,t){if(e){if("string"==typeof e)return g(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?g(e,t):void 0}}function d(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function P(e,t){if("object"!==f(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!==f(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function b(e){var t=P(e,"string");return"symbol"===f(t)?t:String(t)}function v(e,t,r){return(t=b(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var h={defaultProps:{__TYPE:"Paginator",totalRecords:0,rows:0,first:0,pageLinkSize:5,rowsPerPageOptions:null,alwaysShow:!0,style:null,className:null,template:"FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown",onPageChange:null,leftContent:null,rightContent:null,dropdownAppendTo:null,currentPageReportTemplate:"({currentPage} of {totalPages})",children:void 0},getProps:function(e){return r.getMergedProps(e,h.defaultProps)},getOtherProps:function(e){return r.getDiffProps(e,h.defaultProps)}},y={defaultProps:{__TYPE:"CurrentPageReport",pageCount:null,page:null,first:null,rows:null,totalRecords:null,reportTemplate:"({currentPage} of {totalPages})",template:null,children:void 0},getProps:function(e){return r.getMergedProps(e,y.defaultProps)},getOtherProps:function(e){return r.getDiffProps(e,y.defaultProps)}},k={defaultProps:{__TYPE:"FirstPageLink",disabled:!1,onClick:null,template:null,children:void 0},getProps:function(e){return r.getMergedProps(e,k.defaultProps)},getOtherProps:function(e){return r.getDiffProps(e,k.defaultProps)}},w={defaultProps:{__TYPE:"JumbToPageInput",page:null,rows:null,pageCount:null,disabled:!1,template:null,onChange:null,children:void 0},getProps:function(e){return r.getMergedProps(e,w.defaultProps)},getOtherProps:function(e){return r.getDiffProps(e,w.defaultProps)}},C={defaultProps:{__TYPE:"LastPageLink",disabled:!1,onClick:null,template:null,children:void 0},getProps:function(e){return r.getMergedProps(e,C.defaultProps)},getOtherProps:function(e){return r.getDiffProps(e,C.defaultProps)}},E={defaultProps:{__TYPE:"NextPageLink",disabled:!1,onClick:null,template:null,children:void 0},getProps:function(e){return r.getMergedProps(e,E.defaultProps)},getOtherProps:function(e){return r.getDiffProps(e,E.defaultProps)}},N={defaultProps:{__TYPE:"PageLinks",value:null,page:null,rows:null,pageCount:null,links:null,template:null,children:void 0},getProps:function(e){return r.getMergedProps(e,N.defaultProps)},getOtherProps:function(e){return r.getDiffProps(e,N.defaultProps)}},O={defaultProps:{__TYPE:"PrevPageLink",disabled:!1,onClick:null,template:null,children:void 0},getProps:function(e){return r.getMergedProps(e,O.defaultProps)},getOtherProps:function(e){return r.getDiffProps(e,O.defaultProps)}},L={defaultProps:{__TYPE:"RowsPerPageDropdown",options:null,value:null,page:null,pageCount:null,totalRecords:0,appendTo:null,onChange:null,template:null,disabled:!1,children:void 0},getProps:function(e){return r.getMergedProps(e,L.defaultProps)},getOtherProps:function(e){return r.getDiffProps(e,L.defaultProps)}};function S(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function R(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?S(Object(r),!0).forEach((function(t){v(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):S(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var T=e.memo((function(t){var a=y.getProps(t),n={currentPage:a.page+1,totalPages:a.pageCount,first:Math.min(a.first+1,a.totalRecords),last:Math.min(a.first+a.rows,a.totalRecords),rows:a.rows,totalRecords:a.totalRecords},o=a.reportTemplate.replace("{currentPage}",n.currentPage).replace("{totalPages}",n.totalPages).replace("{first}",n.first).replace("{last}",n.last).replace("{rows}",n.rows).replace("{totalRecords}",n.totalRecords),l=e.createElement("span",{className:"p-paginator-current"},o);if(a.template){var i=R(R({},n),{className:"p-paginator-current",element:l,props:a});return r.getJSXElement(a.template,i)}return l}));T.displayName="CurrentPageReport";var j=e.memo((function(t){var o=k.getProps(t),i=a("p-paginator-first p-paginator-element p-link",{"p-disabled":o.disabled}),p="p-paginator-icon pi pi-angle-double-left",s=e.createElement("button",{type:"button",className:i,onClick:o.onClick,disabled:o.disabled,"aria-label":n("firstPageLabel")},e.createElement("span",{className:p}),e.createElement(l,null));return o.template?r.getJSXElement(o.template,{onClick:o.onClick,className:i,iconClassName:p,disabled:o.disabled,element:s,props:o}):s}));j.displayName="FirstPageLink";var D=e.memo((function(t){var a=w.getProps(t),n=function(e){a.onChange&&a.onChange(a.rows*(e.value-1),a.rows)},o=a.pageCount>0?a.page+1:0,l=e.createElement(i,{value:o,onChange:n,className:"p-paginator-page-input",disabled:a.disabled});return a.template?r.getJSXElement(a.template,{value:o,onChange:n,disabled:a.disabled,className:"p-paginator-page-input",element:l,props:a}):l}));D.displayName="JumpToPageInput";var M=e.memo((function(t){var o=C.getProps(t),i=a("p-paginator-last p-paginator-element p-link",{"p-disabled":o.disabled}),p="p-paginator-icon pi pi-angle-double-right",s=e.createElement("button",{type:"button",className:i,onClick:o.onClick,disabled:o.disabled,"aria-label":n("lastPageLabel")},e.createElement("span",{className:p}),e.createElement(l,null));return o.template?r.getJSXElement(o.template,{onClick:o.onClick,className:i,iconClassName:p,disabled:o.disabled,element:s,props:o}):s}));M.displayName="LastPageLink";var _=e.memo((function(t){var o=E.getProps(t),i=a("p-paginator-next p-paginator-element p-link",{"p-disabled":o.disabled}),p="p-paginator-icon pi pi-angle-right",s=e.createElement("button",{type:"button",className:i,onClick:o.onClick,disabled:o.disabled,"aria-label":n("nextPageLabel")},e.createElement("span",{className:p}),e.createElement(l,null));return o.template?r.getJSXElement(o.template,{onClick:o.onClick,className:i,iconClassName:p,disabled:o.disabled,element:s,props:o}):s}));_.displayName="NextPageLink";var J=e.memo((function(t){var o,i=N.getProps(t),p=function(e,t){i.onClick&&i.onClick({originalEvent:e,value:t}),e.preventDefault()};if(i.value){var s=i.value[0],u=i.value[i.value.length-1];o=i.value.map((function(t){var o=a("p-paginator-page p-paginator-element p-link",{"p-paginator-page-start":t===s,"p-paginator-page-end":t===u,"p-highlight":t-1===i.page}),c=e.createElement("button",{type:"button",className:o,onClick:function(e){return p(e,t)},"aria-label":"".concat(n("pageLabel")," ").concat(t+1)},t,e.createElement(l,null));i.template&&(c=r.getJSXElement(i.template,{onClick:function(e){return p(e,t)},className:o,view:{startPage:s-1,endPage:u-1},page:t-1,currentPage:i.page,totalPages:i.pageCount,element:c,props:i}));return e.createElement(e.Fragment,{key:t},c)}))}return e.createElement("span",{className:"p-paginator-pages"},o)}));J.displayName="PageLinks";var x=e.memo((function(t){var o=O.getProps(t),i=a("p-paginator-prev p-paginator-element p-link",{"p-disabled":o.disabled}),p="p-paginator-icon pi pi-angle-left",s=e.createElement("button",{type:"button",className:i,onClick:o.onClick,disabled:o.disabled,"aria-label":n("previousPageLabel")},e.createElement("span",{className:p}),e.createElement(l,null));return o.template?r.getJSXElement(o.template,{onClick:o.onClick,className:i,iconClassName:p,disabled:o.disabled,element:s,props:o}):s}));x.displayName="PrevPageLink";var X=e.memo((function(t){var a=L.getProps(t),n=a.options&&a.options.length>0,l=n?a.options.map((function(e){return{label:String(e),value:e}})):[],i=o("choose"),s=n?e.createElement(p,{value:a.value,options:l,onChange:a.onChange,appendTo:a.appendTo,disabled:a.disabled,placeholder:i,"aria-label":i}):null;return a.template?r.getJSXElement(a.template,{value:a.value,options:l,onChange:a.onChange,appendTo:a.appendTo,currentPage:a.page,totalPages:a.pageCount,totalRecords:a.totalRecords,disabled:a.disabled,element:s,props:a}):s}));X.displayName="RowsPerPageDropdown";var Y=e.memo(e.forwardRef((function(n,o){var l=h.getProps(n),i=e.useRef(null),p=e.useRef(!1),g=Math.floor(l.first/l.rows),P=Math.ceil(l.totalRecords/l.rows),b=0===g,v=g===P-1,y=0===P,k=function(){var e=P,t=Math.min(l.pageLinkSize,e),r=Math.max(0,Math.ceil(g-t/2)),a=Math.min(e-1,r+t-1);return[r=Math.max(0,r-(l.pageLinkSize-(a-r+1))),a]},w=function(){for(var e=[],t=k(),r=t[1],a=t[0];a<=r;a++)e.push(a+1);return e},C=function(e,t){var r=P,a=Math.floor(e/t);a>=0&&a<r&&(l.onPageChange&&l.onPageChange({first:e,rows:t,page:a,pageCount:r}))},E=function(e){C(0,l.rows),e.preventDefault()},N=function(e){C(l.first-l.rows,l.rows),e.preventDefault()},O=function(e){C((e.value-1)*l.rows,l.rows)},L=function(e){C(l.first+l.rows,l.rows),e.preventDefault()},S=function(e){C((P-1)*l.rows,l.rows),e.preventDefault()},R=function(e){var t=e.value;p.current=t!==l.rows,C(0,t)};e.useImperativeHandle(o,(function(){return{props:l,getElement:function(){return i.current}}})),t((function(){p.current||C(l.first,l.rows),p.current=!1}),[l.rows]),t((function(){g>0&&l.first>=l.totalRecords&&C((P-1)*l.rows,l.rows)}),[l.totalRecords]);var Y,A=function(t,r){var a;switch(t){case"FirstPageLink":a=e.createElement(j,{key:t,onClick:E,disabled:b||y,template:r});break;case"PrevPageLink":a=e.createElement(x,{key:t,onClick:N,disabled:b||y,template:r});break;case"NextPageLink":a=e.createElement(_,{key:t,onClick:L,disabled:v||y,template:r});break;case"LastPageLink":a=e.createElement(M,{key:t,onClick:S,disabled:v||y,template:r});break;case"PageLinks":a=e.createElement(J,{key:t,value:w(),page:g,rows:l.rows,pageCount:P,onClick:O,template:r});break;case"RowsPerPageDropdown":a=e.createElement(X,{key:t,value:l.rows,page:g,pageCount:P,totalRecords:l.totalRecords,options:l.rowsPerPageOptions,onChange:R,appendTo:l.dropdownAppendTo,template:r,disabled:y});break;case"CurrentPageReport":a=e.createElement(T,{reportTemplate:l.currentPageReportTemplate,key:t,page:g,pageCount:P,first:l.first,rows:l.rows,totalRecords:l.totalRecords,template:r});break;case"JumpToPageInput":a=e.createElement(D,{key:t,rows:l.rows,page:g,pageCount:P,onChange:C,disabled:y,template:r});break;default:a=null}return a};if(l.alwaysShow||1!==P){var I=h.getOtherProps(l),F=a("p-paginator p-component",l.className),z=r.getJSXElement(l.leftContent,l),H=r.getJSXElement(l.rightContent,l),U=(Y=l.template)?"object"===f(Y)?Y.layout?Y.layout.split(" ").map((function(e){var t=e.trim();return A(t,Y[t])})):Object.entries(Y).map((function(e){var t,r,a=(r=2,u(t=e)||c(t,r)||m(t,r)||d());return A(a[0],a[1])})):Y.split(" ").map((function(e){return A(e.trim())})):null,$=z&&e.createElement("div",{className:"p-paginator-left-content"},z),q=H&&e.createElement("div",{className:"p-paginator-right-content"},H);return e.createElement("div",s({ref:i,className:F,style:l.style},I),$,U,q)}return null})));Y.displayName="Paginator";export{Y as Paginator};
|