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,137 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { CSSTransition as CSSTransition$1 } from 'react-transition-group';
|
|
4
|
-
import { useUpdateEffect } from 'primereact/hooks';
|
|
5
|
-
import { ObjectUtils } from 'primereact/utils';
|
|
6
|
-
import PrimeReact, { PrimeReactContext } from 'primereact/api';
|
|
7
|
-
|
|
8
|
-
function _typeof(o) {
|
|
9
|
-
"@babel/helpers - typeof";
|
|
10
|
-
|
|
11
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
12
|
-
return typeof o;
|
|
13
|
-
} : function (o) {
|
|
14
|
-
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
15
|
-
}, _typeof(o);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
function _toPrimitive(input, hint) {
|
|
19
|
-
if (_typeof(input) !== "object" || input === null) return input;
|
|
20
|
-
var prim = input[Symbol.toPrimitive];
|
|
21
|
-
if (prim !== undefined) {
|
|
22
|
-
var res = prim.call(input, hint || "default");
|
|
23
|
-
if (_typeof(res) !== "object") return res;
|
|
24
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
25
|
-
}
|
|
26
|
-
return (hint === "string" ? String : Number)(input);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
function _toPropertyKey(arg) {
|
|
30
|
-
var key = _toPrimitive(arg, "string");
|
|
31
|
-
return _typeof(key) === "symbol" ? key : String(key);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
function _defineProperty(obj, key, value) {
|
|
35
|
-
key = _toPropertyKey(key);
|
|
36
|
-
if (key in obj) {
|
|
37
|
-
Object.defineProperty(obj, key, {
|
|
38
|
-
value: value,
|
|
39
|
-
enumerable: true,
|
|
40
|
-
configurable: true,
|
|
41
|
-
writable: true
|
|
42
|
-
});
|
|
43
|
-
} else {
|
|
44
|
-
obj[key] = value;
|
|
45
|
-
}
|
|
46
|
-
return obj;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
var CSSTransitionBase = {
|
|
50
|
-
defaultProps: {
|
|
51
|
-
__TYPE: 'CSSTransition',
|
|
52
|
-
children: undefined
|
|
53
|
-
},
|
|
54
|
-
getProps: function getProps(props) {
|
|
55
|
-
return ObjectUtils.getMergedProps(props, CSSTransitionBase.defaultProps);
|
|
56
|
-
},
|
|
57
|
-
getOtherProps: function getOtherProps(props) {
|
|
58
|
-
return ObjectUtils.getDiffProps(props, CSSTransitionBase.defaultProps);
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
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; }
|
|
63
|
-
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; }
|
|
64
|
-
var CSSTransition = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
65
|
-
var props = CSSTransitionBase.getProps(inProps);
|
|
66
|
-
var context = React.useContext(PrimeReactContext);
|
|
67
|
-
var disabled = props.disabled || props.options && props.options.disabled || context && !context.cssTransition || !PrimeReact.cssTransition;
|
|
68
|
-
var onEnter = function onEnter(node, isAppearing) {
|
|
69
|
-
props.onEnter && props.onEnter(node, isAppearing); // component
|
|
70
|
-
props.options && props.options.onEnter && props.options.onEnter(node, isAppearing); // user option
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
var onEntering = function onEntering(node, isAppearing) {
|
|
74
|
-
props.onEntering && props.onEntering(node, isAppearing); // component
|
|
75
|
-
props.options && props.options.onEntering && props.options.onEntering(node, isAppearing); // user option
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
var onEntered = function onEntered(node, isAppearing) {
|
|
79
|
-
props.onEntered && props.onEntered(node, isAppearing); // component
|
|
80
|
-
props.options && props.options.onEntered && props.options.onEntered(node, isAppearing); // user option
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
var onExit = function onExit(node) {
|
|
84
|
-
props.onExit && props.onExit(node); // component
|
|
85
|
-
props.options && props.options.onExit && props.options.onExit(node); // user option
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
var onExiting = function onExiting(node) {
|
|
89
|
-
props.onExiting && props.onExiting(node); // component
|
|
90
|
-
props.options && props.options.onExiting && props.options.onExiting(node); // user option
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
var onExited = function onExited(node) {
|
|
94
|
-
props.onExited && props.onExited(node); // component
|
|
95
|
-
props.options && props.options.onExited && props.options.onExited(node); // user option
|
|
96
|
-
};
|
|
97
|
-
|
|
98
|
-
useUpdateEffect(function () {
|
|
99
|
-
if (disabled) {
|
|
100
|
-
// no animation
|
|
101
|
-
var node = ObjectUtils.getRefElement(props.nodeRef);
|
|
102
|
-
if (props["in"]) {
|
|
103
|
-
onEnter(node, true);
|
|
104
|
-
onEntering(node, true);
|
|
105
|
-
onEntered(node, true);
|
|
106
|
-
} else {
|
|
107
|
-
onExit(node);
|
|
108
|
-
onExiting(node);
|
|
109
|
-
onExited(node);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
}, [props["in"]]);
|
|
113
|
-
if (disabled) {
|
|
114
|
-
return props["in"] ? props.children : null;
|
|
115
|
-
} else {
|
|
116
|
-
var immutableProps = {
|
|
117
|
-
nodeRef: props.nodeRef,
|
|
118
|
-
"in": props["in"],
|
|
119
|
-
onEnter: onEnter,
|
|
120
|
-
onEntering: onEntering,
|
|
121
|
-
onEntered: onEntered,
|
|
122
|
-
onExit: onExit,
|
|
123
|
-
onExiting: onExiting,
|
|
124
|
-
onExited: onExited
|
|
125
|
-
};
|
|
126
|
-
var mutableProps = {
|
|
127
|
-
classNames: props.classNames,
|
|
128
|
-
timeout: props.timeout,
|
|
129
|
-
unmountOnExit: props.unmountOnExit
|
|
130
|
-
};
|
|
131
|
-
var mergedProps = _objectSpread(_objectSpread(_objectSpread({}, mutableProps), props.options || {}), immutableProps);
|
|
132
|
-
return /*#__PURE__*/React.createElement(CSSTransition$1, mergedProps, props.children);
|
|
133
|
-
}
|
|
134
|
-
});
|
|
135
|
-
CSSTransition.displayName = 'CSSTransition';
|
|
136
|
-
|
|
137
|
-
export { CSSTransition };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as e from"react";import{PrimeReactContext as r,localeOption as t}from"primereact/api";import{ComponentBase as n,useHandleStyle as l}from"primereact/componentbase";import{useMountEffect as o,useUpdateEffect as a,useUnmountEffect as c}from"primereact/hooks";import{classNames as u,mergeProps as i,ObjectUtils as s}from"primereact/utils";function f(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function m(e){if(Array.isArray(e))return f(e)}function d(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function p(e,r){if(e){if("string"==typeof e)return f(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?f(e,r):void 0}}function y(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function h(e){return m(e)||d(e)||p(e)||y()}function v(e){if(Array.isArray(e))return e}function g(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,l,o,a,c=[],u=!0,i=!1;try{if(o=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;u=!1}else for(;!(u=(n=o.call(t)).done)&&(c.push(n.value),c.length!==r);u=!0);}catch(e){i=!0,l=e}finally{try{if(!u&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(i)throw l}}return c}}function b(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var w=n.extend({defaultProps:{__TYPE:"DataScroller",id:null,value:null,rows:0,inline:!1,scrollHeight:null,loader:!1,buffer:.9,style:null,className:null,onLazyLoad:null,emptyMessage:null,itemTemplate:null,header:null,footer:null,lazy:!1,children:void 0},css:{classes:{header:"p-datascroller-header",footer:"p-datascroller-footer",content:"p-datascroller-content",list:"p-datascroller-list",root:function(e){return u("p-datascroller p-component",{"p-datascroller-inline":e.props.inline})}},styles:"\n@layer primereact {\n .p-datascroller .p-datascroller-header {\n text-align: center;\n padding: .5em .75em;\n border-bottom: 0 none;\n }\n \n .p-datascroller .p-datascroller-footer {\n text-align: center;\n padding: .25em .625em;\n border-top: 0px none;\n }\n \n .p-datascroller .p-datascroller-content {\n padding: .25em .625em;\n }\n \n .p-datascroller-inline .p-datascroller-content {\n overflow: auto;\n }\n \n .p-datascroller .p-datascroller-list {\n list-style-type: none; \n margin: 0;\n padding: 0;\n }\n}\n",inlineStyles:{content:function(e){return{maxHeight:e.props.scrollHeight}}}}}),E=e.memo(e.forwardRef((function(n,f){var m,d,y=e.useContext(r),E=w.getProps(n,y),S=e.useState([]),x=(d=2,v(m=S)||g(m,d)||p(m,d)||b()),H=x[0],L=x[1],A=w.setMetaData({props:E}),N=A.ptm,T=A.cx,z=A.sx;l(w.css.styles,A.isUnstyled,{name:"datascroller"});var M=e.useRef(null),R=e.useRef(null),j=e.useRef(E.value),I=e.useRef([]),O=e.useRef(0),P=e.useRef(null),C=function(){if(E.lazy)E.onLazyLoad&&E.onLazyLoad(_()),O.current+=E.rows;else if(j.current){for(var e=O.current;e<O.current+E.rows&&!(e>=j.current.length);e++)I.current.push(j.current[e]);0!==j.current.length&&(O.current+=E.rows),L(h(I.current))}},D=function(){O.current=0,I.current=[],L(h(I.current)),C()},_=function(){return{first:O.current,rows:E.rows}},k=function(){P.current&&(E.inline&&R.current?R.current.removeEventListener("scroll",P.current):E.loader||window.removeEventListener("scroll",P.current)),P.current=null};o((function(){C(),E.loader||(E.inline?(P.current=function(){R.current.scrollTop>=R.current.scrollHeight*E.buffer-R.current.clientHeight&&C()},R.current.addEventListener("scroll",P.current)):(P.current=function(){var e=document.body,r=document.documentElement,t=window.pageYOffset||document.documentElement.scrollTop,n=r.clientHeight;t>=Math.max(e.scrollHeight,e.offsetHeight,n,r.scrollHeight,r.offsetHeight)*E.buffer-n&&C()},window.addEventListener("scroll",P.current)))})),a((function(){E.value&&(j.current=E.value,E.lazy||(O.current=0),I.current=[],E.lazy?(I.current=j.current,L(h(I.current))):C())}),[E.value]),a((function(){E.loader&&k()}),[E.loader]),c((function(){P.current&&k()})),e.useImperativeHandle(f,(function(){return{props:E,load:C,reset:D,getElement:function(){return M.current},getContent:function(){return R.current}}}));var U,Y,J=function(r,t){var n=i({key:t+"_datascrollitem"},N("item")),l=E.itemTemplate?E.itemTemplate(r):r;return e.createElement("li",n,l)},X=function(){var r=i(N("emptyMessage")),n=s.getJSXElement(E.emptyMessage,E)||t("emptyMessage");return e.createElement("li",r,n)},$=(U=i({className:T("header")},N("header")),E.header?e.createElement("div",U,E.header):null),q=(Y=i({className:T("footer")},N("footer")),E.footer?e.createElement("div",Y,E.footer):null),B=function(){var r=i({ref:R,className:T("content"),style:z("content")},N("content")),t=i({className:T("list")},N("list")),n=s.isNotEmpty(H)?H.map(J):X();return e.createElement("div",r,e.createElement("ul",t,n))}(),F=i({id:E.id,ref:M,className:u(E.className,T("root"))},w.getOtherProps(E),N("root"));return e.createElement("div",F,$,B,q)})));E.displayName="DataScroller";export{E as DataScroller};
|
|
@@ -1,319 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { PrimeReactContext, localeOption } from 'primereact/api';
|
|
4
|
-
import { ComponentBase, useHandleStyle } from 'primereact/componentbase';
|
|
5
|
-
import { useMountEffect, useUpdateEffect, useUnmountEffect } from 'primereact/hooks';
|
|
6
|
-
import { classNames, mergeProps, ObjectUtils } from 'primereact/utils';
|
|
7
|
-
|
|
8
|
-
function _arrayLikeToArray(arr, len) {
|
|
9
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
10
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
11
|
-
return arr2;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
function _arrayWithoutHoles(arr) {
|
|
15
|
-
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
function _iterableToArray(iter) {
|
|
19
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
23
|
-
if (!o) return;
|
|
24
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
25
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
26
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
27
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
28
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
function _nonIterableSpread() {
|
|
32
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
function _toConsumableArray(arr) {
|
|
36
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
function _arrayWithHoles(arr) {
|
|
40
|
-
if (Array.isArray(arr)) return arr;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
function _iterableToArrayLimit(r, l) {
|
|
44
|
-
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
45
|
-
if (null != t) {
|
|
46
|
-
var e,
|
|
47
|
-
n,
|
|
48
|
-
i,
|
|
49
|
-
u,
|
|
50
|
-
a = [],
|
|
51
|
-
f = !0,
|
|
52
|
-
o = !1;
|
|
53
|
-
try {
|
|
54
|
-
if (i = (t = t.call(r)).next, 0 === l) {
|
|
55
|
-
if (Object(t) !== t) return;
|
|
56
|
-
f = !1;
|
|
57
|
-
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
58
|
-
} catch (r) {
|
|
59
|
-
o = !0, n = r;
|
|
60
|
-
} finally {
|
|
61
|
-
try {
|
|
62
|
-
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
|
|
63
|
-
} finally {
|
|
64
|
-
if (o) throw n;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
return a;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
function _nonIterableRest() {
|
|
72
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
function _slicedToArray(arr, i) {
|
|
76
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
var classes = {
|
|
80
|
-
header: 'p-datascroller-header',
|
|
81
|
-
footer: 'p-datascroller-footer',
|
|
82
|
-
content: 'p-datascroller-content',
|
|
83
|
-
list: 'p-datascroller-list',
|
|
84
|
-
root: function root(_ref) {
|
|
85
|
-
var props = _ref.props;
|
|
86
|
-
return classNames('p-datascroller p-component', {
|
|
87
|
-
'p-datascroller-inline': props.inline
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
};
|
|
91
|
-
var styles = "\n@layer primereact {\n .p-datascroller .p-datascroller-header {\n text-align: center;\n padding: .5em .75em;\n border-bottom: 0 none;\n }\n \n .p-datascroller .p-datascroller-footer {\n text-align: center;\n padding: .25em .625em;\n border-top: 0px none;\n }\n \n .p-datascroller .p-datascroller-content {\n padding: .25em .625em;\n }\n \n .p-datascroller-inline .p-datascroller-content {\n overflow: auto;\n }\n \n .p-datascroller .p-datascroller-list {\n list-style-type: none; \n margin: 0;\n padding: 0;\n }\n}\n";
|
|
92
|
-
var inlineStyles = {
|
|
93
|
-
content: function content(_ref2) {
|
|
94
|
-
var props = _ref2.props;
|
|
95
|
-
return {
|
|
96
|
-
maxHeight: props.scrollHeight
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
};
|
|
100
|
-
var DataScrollerBase = ComponentBase.extend({
|
|
101
|
-
defaultProps: {
|
|
102
|
-
__TYPE: 'DataScroller',
|
|
103
|
-
id: null,
|
|
104
|
-
value: null,
|
|
105
|
-
rows: 0,
|
|
106
|
-
inline: false,
|
|
107
|
-
scrollHeight: null,
|
|
108
|
-
loader: false,
|
|
109
|
-
buffer: 0.9,
|
|
110
|
-
style: null,
|
|
111
|
-
className: null,
|
|
112
|
-
onLazyLoad: null,
|
|
113
|
-
emptyMessage: null,
|
|
114
|
-
itemTemplate: null,
|
|
115
|
-
header: null,
|
|
116
|
-
footer: null,
|
|
117
|
-
lazy: false,
|
|
118
|
-
children: undefined
|
|
119
|
-
},
|
|
120
|
-
css: {
|
|
121
|
-
classes: classes,
|
|
122
|
-
styles: styles,
|
|
123
|
-
inlineStyles: inlineStyles
|
|
124
|
-
}
|
|
125
|
-
});
|
|
126
|
-
|
|
127
|
-
var DataScroller = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
128
|
-
var context = React.useContext(PrimeReactContext);
|
|
129
|
-
var props = DataScrollerBase.getProps(inProps, context);
|
|
130
|
-
var _React$useState = React.useState([]),
|
|
131
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
132
|
-
dataToRenderState = _React$useState2[0],
|
|
133
|
-
setDataToRenderState = _React$useState2[1];
|
|
134
|
-
var _DataScrollerBase$set = DataScrollerBase.setMetaData({
|
|
135
|
-
props: props
|
|
136
|
-
}),
|
|
137
|
-
ptm = _DataScrollerBase$set.ptm,
|
|
138
|
-
cx = _DataScrollerBase$set.cx,
|
|
139
|
-
sx = _DataScrollerBase$set.sx,
|
|
140
|
-
isUnstyled = _DataScrollerBase$set.isUnstyled;
|
|
141
|
-
useHandleStyle(DataScrollerBase.css.styles, isUnstyled, {
|
|
142
|
-
name: 'datascroller'
|
|
143
|
-
});
|
|
144
|
-
var elementRef = React.useRef(null);
|
|
145
|
-
var contentRef = React.useRef(null);
|
|
146
|
-
var value = React.useRef(props.value);
|
|
147
|
-
var dataToRender = React.useRef([]);
|
|
148
|
-
var first = React.useRef(0);
|
|
149
|
-
var scrollFunction = React.useRef(null);
|
|
150
|
-
var handleDataChange = function handleDataChange() {
|
|
151
|
-
if (props.lazy) {
|
|
152
|
-
dataToRender.current = value.current;
|
|
153
|
-
setDataToRenderState(_toConsumableArray(dataToRender.current));
|
|
154
|
-
} else {
|
|
155
|
-
load();
|
|
156
|
-
}
|
|
157
|
-
};
|
|
158
|
-
var load = function load() {
|
|
159
|
-
if (props.lazy) {
|
|
160
|
-
if (props.onLazyLoad) {
|
|
161
|
-
props.onLazyLoad(createLazyLoadMetadata());
|
|
162
|
-
}
|
|
163
|
-
first.current += props.rows;
|
|
164
|
-
} else {
|
|
165
|
-
if (value.current) {
|
|
166
|
-
for (var i = first.current; i < first.current + props.rows; i++) {
|
|
167
|
-
if (i >= value.current.length) {
|
|
168
|
-
break;
|
|
169
|
-
}
|
|
170
|
-
dataToRender.current.push(value.current[i]);
|
|
171
|
-
}
|
|
172
|
-
if (value.current.length !== 0) {
|
|
173
|
-
first.current += props.rows;
|
|
174
|
-
}
|
|
175
|
-
setDataToRenderState(_toConsumableArray(dataToRender.current));
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
};
|
|
179
|
-
var reset = function reset() {
|
|
180
|
-
first.current = 0;
|
|
181
|
-
dataToRender.current = [];
|
|
182
|
-
setDataToRenderState(_toConsumableArray(dataToRender.current));
|
|
183
|
-
load();
|
|
184
|
-
};
|
|
185
|
-
var createLazyLoadMetadata = function createLazyLoadMetadata() {
|
|
186
|
-
return {
|
|
187
|
-
first: first.current,
|
|
188
|
-
rows: props.rows
|
|
189
|
-
};
|
|
190
|
-
};
|
|
191
|
-
var bindScrollListener = function bindScrollListener() {
|
|
192
|
-
if (props.inline) {
|
|
193
|
-
scrollFunction.current = function () {
|
|
194
|
-
var scrollTop = contentRef.current.scrollTop,
|
|
195
|
-
scrollHeight = contentRef.current.scrollHeight,
|
|
196
|
-
viewportHeight = contentRef.current.clientHeight;
|
|
197
|
-
if (scrollTop >= scrollHeight * props.buffer - viewportHeight) {
|
|
198
|
-
load();
|
|
199
|
-
}
|
|
200
|
-
};
|
|
201
|
-
contentRef.current.addEventListener('scroll', scrollFunction.current);
|
|
202
|
-
} else {
|
|
203
|
-
scrollFunction.current = function () {
|
|
204
|
-
var docBody = document.body,
|
|
205
|
-
docElement = document.documentElement,
|
|
206
|
-
scrollTop = window.pageYOffset || document.documentElement.scrollTop,
|
|
207
|
-
winHeight = docElement.clientHeight,
|
|
208
|
-
docHeight = Math.max(docBody.scrollHeight, docBody.offsetHeight, winHeight, docElement.scrollHeight, docElement.offsetHeight);
|
|
209
|
-
if (scrollTop >= docHeight * props.buffer - winHeight) {
|
|
210
|
-
load();
|
|
211
|
-
}
|
|
212
|
-
};
|
|
213
|
-
window.addEventListener('scroll', scrollFunction.current);
|
|
214
|
-
}
|
|
215
|
-
};
|
|
216
|
-
var unbindScrollListener = function unbindScrollListener() {
|
|
217
|
-
if (scrollFunction.current) {
|
|
218
|
-
if (props.inline && contentRef.current) {
|
|
219
|
-
contentRef.current.removeEventListener('scroll', scrollFunction.current);
|
|
220
|
-
} else if (!props.loader) {
|
|
221
|
-
window.removeEventListener('scroll', scrollFunction.current);
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
scrollFunction.current = null;
|
|
225
|
-
};
|
|
226
|
-
useMountEffect(function () {
|
|
227
|
-
load();
|
|
228
|
-
if (!props.loader) {
|
|
229
|
-
bindScrollListener();
|
|
230
|
-
}
|
|
231
|
-
});
|
|
232
|
-
useUpdateEffect(function () {
|
|
233
|
-
if (props.value) {
|
|
234
|
-
value.current = props.value;
|
|
235
|
-
if (!props.lazy) {
|
|
236
|
-
first.current = 0;
|
|
237
|
-
}
|
|
238
|
-
dataToRender.current = [];
|
|
239
|
-
handleDataChange();
|
|
240
|
-
}
|
|
241
|
-
}, [props.value]);
|
|
242
|
-
useUpdateEffect(function () {
|
|
243
|
-
if (props.loader) {
|
|
244
|
-
unbindScrollListener();
|
|
245
|
-
}
|
|
246
|
-
}, [props.loader]);
|
|
247
|
-
useUnmountEffect(function () {
|
|
248
|
-
if (scrollFunction.current) {
|
|
249
|
-
unbindScrollListener();
|
|
250
|
-
}
|
|
251
|
-
});
|
|
252
|
-
React.useImperativeHandle(ref, function () {
|
|
253
|
-
return {
|
|
254
|
-
props: props,
|
|
255
|
-
load: load,
|
|
256
|
-
reset: reset,
|
|
257
|
-
getElement: function getElement() {
|
|
258
|
-
return elementRef.current;
|
|
259
|
-
},
|
|
260
|
-
getContent: function getContent() {
|
|
261
|
-
return contentRef.current;
|
|
262
|
-
}
|
|
263
|
-
};
|
|
264
|
-
});
|
|
265
|
-
var createHeader = function createHeader() {
|
|
266
|
-
var headerProps = mergeProps({
|
|
267
|
-
className: cx('header')
|
|
268
|
-
}, ptm('header'));
|
|
269
|
-
if (props.header) {
|
|
270
|
-
return /*#__PURE__*/React.createElement("div", headerProps, props.header);
|
|
271
|
-
}
|
|
272
|
-
return null;
|
|
273
|
-
};
|
|
274
|
-
var createFooter = function createFooter() {
|
|
275
|
-
var footerProps = mergeProps({
|
|
276
|
-
className: cx('footer')
|
|
277
|
-
}, ptm('footer'));
|
|
278
|
-
if (props.footer) {
|
|
279
|
-
return /*#__PURE__*/React.createElement("div", footerProps, props.footer);
|
|
280
|
-
}
|
|
281
|
-
return null;
|
|
282
|
-
};
|
|
283
|
-
var createItem = function createItem(_value, index) {
|
|
284
|
-
var itemProps = mergeProps({
|
|
285
|
-
key: index + '_datascrollitem'
|
|
286
|
-
}, ptm('item'));
|
|
287
|
-
var content = props.itemTemplate ? props.itemTemplate(_value) : _value;
|
|
288
|
-
return /*#__PURE__*/React.createElement("li", itemProps, content);
|
|
289
|
-
};
|
|
290
|
-
var createEmptyMessage = function createEmptyMessage() {
|
|
291
|
-
var emptyMessageProps = mergeProps(ptm('emptyMessage'));
|
|
292
|
-
var content = ObjectUtils.getJSXElement(props.emptyMessage, props) || localeOption('emptyMessage');
|
|
293
|
-
return /*#__PURE__*/React.createElement("li", emptyMessageProps, content);
|
|
294
|
-
};
|
|
295
|
-
var createContent = function createContent() {
|
|
296
|
-
var contentProps = mergeProps({
|
|
297
|
-
ref: contentRef,
|
|
298
|
-
className: cx('content'),
|
|
299
|
-
style: sx('content')
|
|
300
|
-
}, ptm('content'));
|
|
301
|
-
var listProps = mergeProps({
|
|
302
|
-
className: cx('list')
|
|
303
|
-
}, ptm('list'));
|
|
304
|
-
var content = ObjectUtils.isNotEmpty(dataToRenderState) ? dataToRenderState.map(createItem) : createEmptyMessage();
|
|
305
|
-
return /*#__PURE__*/React.createElement("div", contentProps, /*#__PURE__*/React.createElement("ul", listProps, content));
|
|
306
|
-
};
|
|
307
|
-
var header = createHeader();
|
|
308
|
-
var footer = createFooter();
|
|
309
|
-
var content = createContent();
|
|
310
|
-
var rootProps = mergeProps({
|
|
311
|
-
id: props.id,
|
|
312
|
-
ref: elementRef,
|
|
313
|
-
className: classNames(props.className, cx('root'))
|
|
314
|
-
}, DataScrollerBase.getOtherProps(props), ptm('root'));
|
|
315
|
-
return /*#__PURE__*/React.createElement("div", rootProps, header, content, footer);
|
|
316
|
-
}));
|
|
317
|
-
DataScroller.displayName = 'DataScroller';
|
|
318
|
-
|
|
319
|
-
export { DataScroller };
|