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,1094 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import PrimeReact, { PrimeReactContext, localeOption } from 'primereact/api';
|
|
4
|
-
import { ComponentBase, useHandleStyle } from 'primereact/componentbase';
|
|
5
|
-
import { CSSTransition } from 'primereact/csstransition';
|
|
6
|
-
import { useMountEffect, usePrevious, useResizeListener, useUpdateEffect, useInterval, useUnmountEffect } from 'primereact/hooks';
|
|
7
|
-
import { TimesIcon } from 'primereact/icons/times';
|
|
8
|
-
import { Portal } from 'primereact/portal';
|
|
9
|
-
import { Ripple } from 'primereact/ripple';
|
|
10
|
-
import { classNames, mergeProps, IconUtils, UniqueComponentId, DomHandler, ObjectUtils, ZIndexUtils } from 'primereact/utils';
|
|
11
|
-
import { ChevronLeftIcon } from 'primereact/icons/chevronleft';
|
|
12
|
-
import { ChevronRightIcon } from 'primereact/icons/chevronright';
|
|
13
|
-
import { ChevronDownIcon } from 'primereact/icons/chevrondown';
|
|
14
|
-
import { ChevronUpIcon } from 'primereact/icons/chevronup';
|
|
15
|
-
|
|
16
|
-
function _extends() {
|
|
17
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
18
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
19
|
-
var source = arguments[i];
|
|
20
|
-
for (var key in source) {
|
|
21
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
22
|
-
target[key] = source[key];
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
return target;
|
|
27
|
-
};
|
|
28
|
-
return _extends.apply(this, arguments);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
function _typeof(o) {
|
|
32
|
-
"@babel/helpers - typeof";
|
|
33
|
-
|
|
34
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
35
|
-
return typeof o;
|
|
36
|
-
} : function (o) {
|
|
37
|
-
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
38
|
-
}, _typeof(o);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
function _toPrimitive(input, hint) {
|
|
42
|
-
if (_typeof(input) !== "object" || input === null) return input;
|
|
43
|
-
var prim = input[Symbol.toPrimitive];
|
|
44
|
-
if (prim !== undefined) {
|
|
45
|
-
var res = prim.call(input, hint || "default");
|
|
46
|
-
if (_typeof(res) !== "object") return res;
|
|
47
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
48
|
-
}
|
|
49
|
-
return (hint === "string" ? String : Number)(input);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
function _toPropertyKey(arg) {
|
|
53
|
-
var key = _toPrimitive(arg, "string");
|
|
54
|
-
return _typeof(key) === "symbol" ? key : String(key);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
function _defineProperty(obj, key, value) {
|
|
58
|
-
key = _toPropertyKey(key);
|
|
59
|
-
if (key in obj) {
|
|
60
|
-
Object.defineProperty(obj, key, {
|
|
61
|
-
value: value,
|
|
62
|
-
enumerable: true,
|
|
63
|
-
configurable: true,
|
|
64
|
-
writable: true
|
|
65
|
-
});
|
|
66
|
-
} else {
|
|
67
|
-
obj[key] = value;
|
|
68
|
-
}
|
|
69
|
-
return obj;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
function _arrayWithHoles(arr) {
|
|
73
|
-
if (Array.isArray(arr)) return arr;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
function _iterableToArrayLimit(r, l) {
|
|
77
|
-
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
78
|
-
if (null != t) {
|
|
79
|
-
var e,
|
|
80
|
-
n,
|
|
81
|
-
i,
|
|
82
|
-
u,
|
|
83
|
-
a = [],
|
|
84
|
-
f = !0,
|
|
85
|
-
o = !1;
|
|
86
|
-
try {
|
|
87
|
-
if (i = (t = t.call(r)).next, 0 === l) {
|
|
88
|
-
if (Object(t) !== t) return;
|
|
89
|
-
f = !1;
|
|
90
|
-
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
91
|
-
} catch (r) {
|
|
92
|
-
o = !0, n = r;
|
|
93
|
-
} finally {
|
|
94
|
-
try {
|
|
95
|
-
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
|
|
96
|
-
} finally {
|
|
97
|
-
if (o) throw n;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
return a;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
function _arrayLikeToArray(arr, len) {
|
|
105
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
106
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
107
|
-
return arr2;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
111
|
-
if (!o) return;
|
|
112
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
113
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
114
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
115
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
116
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
function _nonIterableRest() {
|
|
120
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
function _slicedToArray(arr, i) {
|
|
124
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
var classes = {
|
|
128
|
-
header: 'p-galleria-header',
|
|
129
|
-
footer: 'p-galleria-footer',
|
|
130
|
-
closeIcon: 'p-galleria-close-icon',
|
|
131
|
-
closeButton: 'p-galleria-close p-link',
|
|
132
|
-
root: function root(_ref) {
|
|
133
|
-
var props = _ref.props,
|
|
134
|
-
context = _ref.context,
|
|
135
|
-
thumbnailsPosClassName = _ref.thumbnailsPosClassName,
|
|
136
|
-
indicatorPosClassName = _ref.indicatorPosClassName;
|
|
137
|
-
return classNames('p-galleria p-component', {
|
|
138
|
-
'p-galleria-fullscreen': props.fullScreen,
|
|
139
|
-
'p-galleria-indicator-onitem': props.showIndicatorsOnItem,
|
|
140
|
-
'p-galleria-item-nav-onhover': props.showItemNavigatorsOnHover && !props.fullScreen,
|
|
141
|
-
'p-input-filled': context && context.inputStyle === 'filled' || PrimeReact.inputStyle === 'filled',
|
|
142
|
-
'p-ripple-disabled': context && context.ripple === false || PrimeReact.ripple === false
|
|
143
|
-
}, thumbnailsPosClassName, indicatorPosClassName);
|
|
144
|
-
},
|
|
145
|
-
content: 'p-galleria-content',
|
|
146
|
-
mask: function mask(_ref2) {
|
|
147
|
-
var visibleState = _ref2.visibleState;
|
|
148
|
-
return classNames('p-galleria-mask', {
|
|
149
|
-
'p-galleria-visible': visibleState
|
|
150
|
-
});
|
|
151
|
-
},
|
|
152
|
-
thumbnailItem: function thumbnailItem(_ref3) {
|
|
153
|
-
var subProps = _ref3.subProps;
|
|
154
|
-
return classNames('p-galleria-thumbnail-item', {
|
|
155
|
-
'p-galleria-thumbnail-item-current': subProps.current,
|
|
156
|
-
'p-galleria-thumbnail-item-active': subProps.active,
|
|
157
|
-
'p-galleria-thumbnail-item-start': subProps.start,
|
|
158
|
-
'p-galleria-thumbnail-item-end': subProps.end
|
|
159
|
-
});
|
|
160
|
-
},
|
|
161
|
-
thumbnailItemContent: 'p-galleria-thumbnail-item-content',
|
|
162
|
-
previousThumbnailIcon: 'p-galleria-thumbnail-prev-icon',
|
|
163
|
-
previousThumbnailButton: function previousThumbnailButton(_ref4) {
|
|
164
|
-
var isDisabled = _ref4.isDisabled;
|
|
165
|
-
return classNames('p-galleria-thumbnail-prev p-link', {
|
|
166
|
-
'p-disabled': isDisabled
|
|
167
|
-
});
|
|
168
|
-
},
|
|
169
|
-
nextThumbnailIcon: 'p-galleria-thumbnail-next-icon',
|
|
170
|
-
nextThumbnailButton: function nextThumbnailButton(_ref5) {
|
|
171
|
-
var isDisabled = _ref5.isDisabled;
|
|
172
|
-
return classNames('p-galleria-thumbnail-next p-link', {
|
|
173
|
-
'p-disabled': isDisabled
|
|
174
|
-
});
|
|
175
|
-
},
|
|
176
|
-
thumbnailContainer: 'p-galleria-thumbnail-container',
|
|
177
|
-
thumbnailItemsContainer: 'p-galleria-thumbnail-items-container',
|
|
178
|
-
thumbnailItems: 'p-galleria-thumbnail-items',
|
|
179
|
-
thumbnailWrapper: 'p-galleria-thumbnail-wrapper',
|
|
180
|
-
previousItemIcon: 'p-galleria-item-prev-icon',
|
|
181
|
-
previousItemButton: function previousItemButton(_ref6) {
|
|
182
|
-
var isDisabled = _ref6.isDisabled;
|
|
183
|
-
return classNames('p-galleria-item-prev p-galleria-item-nav p-link', {
|
|
184
|
-
'p-disabled': isDisabled
|
|
185
|
-
});
|
|
186
|
-
},
|
|
187
|
-
nextItemIcon: 'p-galleria-item-next-icon',
|
|
188
|
-
nextItemButton: function nextItemButton(_ref7) {
|
|
189
|
-
var isDisabled = _ref7.isDisabled;
|
|
190
|
-
return classNames('p-galleria-item-next p-galleria-item-nav p-link', {
|
|
191
|
-
'p-disabled': isDisabled
|
|
192
|
-
});
|
|
193
|
-
},
|
|
194
|
-
caption: 'p-galleria-caption',
|
|
195
|
-
indicator: function indicator(_ref8) {
|
|
196
|
-
var isActive = _ref8.isActive;
|
|
197
|
-
return classNames('p-galleria-indicator', {
|
|
198
|
-
'p-highlight': isActive
|
|
199
|
-
});
|
|
200
|
-
},
|
|
201
|
-
indicators: 'p-galleria-indicators p-reset',
|
|
202
|
-
itemWrapper: 'p-galleria-item-wrapper',
|
|
203
|
-
itemContainer: 'p-galleria-item-container',
|
|
204
|
-
item: 'p-galleria-item',
|
|
205
|
-
transition: 'p-galleria'
|
|
206
|
-
};
|
|
207
|
-
var styles = "\n@layer primereact {\n .p-galleria-content {\n display: flex;\n flex-direction: column;\n }\n \n .p-galleria-item-wrapper {\n display: flex;\n flex-direction: column;\n position: relative;\n }\n \n .p-galleria-item-container {\n position: relative;\n display: flex;\n height: 100%;\n }\n \n .p-galleria-item-nav {\n position: absolute;\n top: 50%;\n margin-top: -.5rem;\n display: inline-flex;\n justify-content: center;\n align-items: center;\n overflow: hidden;\n }\n \n .p-galleria-item-prev {\n left: 0;\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n }\n \n .p-galleria-item-next {\n right: 0;\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n }\n \n .p-galleria-item {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100%;\n width: 100%;\n }\n \n .p-galleria-item-nav-onhover .p-galleria-item-nav {\n pointer-events: none;\n opacity: 0;\n transition: opacity .2s ease-in-out;\n }\n \n .p-galleria-item-nav-onhover .p-galleria-item-wrapper:hover .p-galleria-item-nav {\n pointer-events: all;\n opacity: 1;\n }\n \n .p-galleria-item-nav-onhover .p-galleria-item-wrapper:hover .p-galleria-item-nav.p-disabled {\n pointer-events: none;\n }\n \n .p-galleria-caption {\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n }\n \n /* Thumbnails */\n .p-galleria-thumbnail-wrapper {\n display: flex;\n flex-direction: column;\n overflow: auto;\n flex-shrink: 0;\n }\n \n .p-galleria-thumbnail-prev,\n .p-galleria-thumbnail-next {\n align-self: center;\n flex: 0 0 auto;\n display: flex;\n justify-content: center;\n align-items: center;\n overflow: hidden;\n position: relative;\n }\n \n .p-galleria-thumbnail-prev span,\n .p-galleria-thumbnail-next span {\n display: flex;\n justify-content: center;\n align-items: center;\n }\n \n .p-galleria-thumbnail-container {\n display: flex;\n flex-direction: row;\n }\n \n .p-galleria-thumbnail-items-container {\n overflow: hidden;\n width: 100%;\n }\n \n .p-galleria-thumbnail-items {\n display: flex;\n }\n \n .p-galleria-thumbnail-item {\n overflow: auto;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n opacity: .5;\n }\n \n .p-galleria-thumbnail-item:hover {\n opacity: 1;\n transition: opacity .3s;\n }\n \n .p-galleria-thumbnail-item-current {\n opacity: 1;\n }\n \n /* Positions */\n /* Thumbnails */\n .p-galleria-thumbnails-left .p-galleria-content,\n .p-galleria-thumbnails-right .p-galleria-content {\n flex-direction: row;\n }\n \n .p-galleria-thumbnails-left .p-galleria-item-wrapper,\n .p-galleria-thumbnails-right .p-galleria-item-wrapper {\n flex-direction: row;\n }\n \n .p-galleria-thumbnails-left .p-galleria-item-wrapper,\n .p-galleria-thumbnails-top .p-galleria-item-wrapper {\n order: 2;\n }\n \n .p-galleria-thumbnails-left .p-galleria-thumbnail-wrapper,\n .p-galleria-thumbnails-top .p-galleria-thumbnail-wrapper {\n order: 1;\n }\n \n .p-galleria-thumbnails-left .p-galleria-thumbnail-container,\n .p-galleria-thumbnails-right .p-galleria-thumbnail-container {\n flex-direction: column;\n flex-grow: 1;\n }\n \n .p-galleria-thumbnails-left .p-galleria-thumbnail-items,\n .p-galleria-thumbnails-right .p-galleria-thumbnail-items {\n flex-direction: column;\n height: 100%;\n }\n \n /* Indicators */\n .p-galleria-indicators {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n \n .p-galleria-indicator > button {\n display: inline-flex;\n align-items: center;\n }\n \n .p-galleria-indicators-left .p-galleria-item-wrapper,\n .p-galleria-indicators-right .p-galleria-item-wrapper {\n flex-direction: row;\n align-items: center;\n }\n \n .p-galleria-indicators-left .p-galleria-item-container,\n .p-galleria-indicators-top .p-galleria-item-container {\n order: 2;\n }\n \n .p-galleria-indicators-left .p-galleria-indicators,\n .p-galleria-indicators-top .p-galleria-indicators {\n order: 1;\n }\n \n .p-galleria-indicators-left .p-galleria-indicators,\n .p-galleria-indicators-right .p-galleria-indicators {\n flex-direction: column;\n }\n \n .p-galleria-indicator-onitem .p-galleria-indicators {\n position: absolute;\n display: flex;\n }\n \n .p-galleria-indicator-onitem.p-galleria-indicators-top .p-galleria-indicators {\n top: 0;\n left: 0;\n width: 100%;\n align-items: flex-start;\n }\n \n .p-galleria-indicator-onitem.p-galleria-indicators-right .p-galleria-indicators {\n right: 0;\n top: 0;\n height: 100%;\n align-items: flex-end;\n }\n \n .p-galleria-indicator-onitem.p-galleria-indicators-bottom .p-galleria-indicators {\n bottom: 0;\n left: 0;\n width: 100%;\n align-items: flex-end;\n }\n \n .p-galleria-indicator-onitem.p-galleria-indicators-left .p-galleria-indicators {\n left: 0;\n top: 0;\n height: 100%;\n align-items: flex-start;\n }\n \n /* FullScreen */\n .p-galleria-mask {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n pointer-events: none;\n }\n \n .p-galleria-mask.p-component-overlay {\n pointer-events: auto;\n }\n \n .p-galleria-close {\n position: absolute;\n top: 0;\n right: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n overflow: hidden;\n }\n \n .p-galleria-mask .p-galleria-item-nav {\n position: fixed;\n top: 50%;\n margin-top: -.5rem;\n }\n \n /* Animation */\n .p-galleria-enter {\n opacity: 0;\n transform: scale(0.7);\n }\n \n .p-galleria-enter-active {\n opacity: 1;\n transform: scale(1);\n transition: all 150ms cubic-bezier(0, 0, 0.2, 1);\n }\n \n .p-galleria-enter-done {\n transform: none;\n }\n \n .p-galleria-exit {\n opacity: 1;\n }\n \n .p-galleria-exit-active {\n opacity: 0;\n transform: scale(0.7);\n transition: all 150ms cubic-bezier(0.4, 0.0, 0.2, 1);\n }\n \n .p-galleria-enter-active .p-galleria-item-nav {\n opacity: 0;\n }\n \n /* Keyboard Support */\n .p-items-hidden .p-galleria-thumbnail-item {\n visibility: hidden;\n }\n \n .p-items-hidden .p-galleria-thumbnail-item.p-galleria-thumbnail-item-active {\n visibility: visible;\n }\n}\n";
|
|
208
|
-
var inlineStyles = {
|
|
209
|
-
thumbnailItemsContainer: function thumbnailItemsContainer(_ref9) {
|
|
210
|
-
var height = _ref9.height;
|
|
211
|
-
return {
|
|
212
|
-
height: height
|
|
213
|
-
};
|
|
214
|
-
}
|
|
215
|
-
};
|
|
216
|
-
var GalleriaBase = ComponentBase.extend({
|
|
217
|
-
defaultProps: {
|
|
218
|
-
__TYPE: 'Galleria',
|
|
219
|
-
id: null,
|
|
220
|
-
value: null,
|
|
221
|
-
activeIndex: 0,
|
|
222
|
-
fullScreen: false,
|
|
223
|
-
item: null,
|
|
224
|
-
thumbnail: null,
|
|
225
|
-
indicator: null,
|
|
226
|
-
caption: null,
|
|
227
|
-
className: null,
|
|
228
|
-
closeIcon: null,
|
|
229
|
-
style: null,
|
|
230
|
-
header: null,
|
|
231
|
-
footer: null,
|
|
232
|
-
numVisible: 3,
|
|
233
|
-
responsiveOptions: null,
|
|
234
|
-
showItemNavigators: false,
|
|
235
|
-
showThumbnailNavigators: true,
|
|
236
|
-
showItemNavigatorsOnHover: false,
|
|
237
|
-
changeItemOnIndicatorHover: false,
|
|
238
|
-
circular: false,
|
|
239
|
-
autoPlay: false,
|
|
240
|
-
transitionInterval: 4000,
|
|
241
|
-
showThumbnails: true,
|
|
242
|
-
itemNextIcon: null,
|
|
243
|
-
itemPrevIcon: null,
|
|
244
|
-
nextThumbnailIcon: null,
|
|
245
|
-
prevThumbnailIcon: null,
|
|
246
|
-
thumbnailsPosition: 'bottom',
|
|
247
|
-
verticalThumbnailViewPortHeight: '300px',
|
|
248
|
-
showIndicators: false,
|
|
249
|
-
showIndicatorsOnItem: false,
|
|
250
|
-
indicatorsPosition: 'bottom',
|
|
251
|
-
baseZIndex: 0,
|
|
252
|
-
transitionOptions: null,
|
|
253
|
-
onItemChange: null,
|
|
254
|
-
children: undefined
|
|
255
|
-
},
|
|
256
|
-
css: {
|
|
257
|
-
classes: classes,
|
|
258
|
-
styles: styles,
|
|
259
|
-
inlineStyles: inlineStyles
|
|
260
|
-
}
|
|
261
|
-
});
|
|
262
|
-
|
|
263
|
-
function ownKeys$2(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
264
|
-
function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
265
|
-
var GalleriaItem = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
266
|
-
var ptm = props.ptm,
|
|
267
|
-
cx = props.cx;
|
|
268
|
-
var getPTOptions = function getPTOptions(key, options) {
|
|
269
|
-
return ptm(key, _objectSpread$2({
|
|
270
|
-
hostName: props.hostName
|
|
271
|
-
}, options));
|
|
272
|
-
};
|
|
273
|
-
var next = function next() {
|
|
274
|
-
var nextItemIndex = props.activeItemIndex + 1;
|
|
275
|
-
props.onActiveItemChange({
|
|
276
|
-
index: props.circular && props.value.length - 1 === props.activeItemIndex ? 0 : nextItemIndex
|
|
277
|
-
});
|
|
278
|
-
};
|
|
279
|
-
var prev = function prev() {
|
|
280
|
-
var prevItemIndex = props.activeItemIndex !== 0 ? props.activeItemIndex - 1 : 0;
|
|
281
|
-
props.onActiveItemChange({
|
|
282
|
-
index: props.circular && props.activeItemIndex === 0 ? props.value.length - 1 : prevItemIndex
|
|
283
|
-
});
|
|
284
|
-
};
|
|
285
|
-
var stopSlideShow = function stopSlideShow() {
|
|
286
|
-
if (props.slideShowActive && props.stopSlideShow) {
|
|
287
|
-
props.stopSlideShow();
|
|
288
|
-
}
|
|
289
|
-
};
|
|
290
|
-
var navBackward = function navBackward(e) {
|
|
291
|
-
stopSlideShow();
|
|
292
|
-
prev();
|
|
293
|
-
if (e && e.cancelable) {
|
|
294
|
-
e.preventDefault();
|
|
295
|
-
}
|
|
296
|
-
};
|
|
297
|
-
var navForward = function navForward(e) {
|
|
298
|
-
stopSlideShow();
|
|
299
|
-
next();
|
|
300
|
-
if (e && e.cancelable) {
|
|
301
|
-
e.preventDefault();
|
|
302
|
-
}
|
|
303
|
-
};
|
|
304
|
-
var onIndicatorClick = function onIndicatorClick(index) {
|
|
305
|
-
stopSlideShow();
|
|
306
|
-
props.onActiveItemChange({
|
|
307
|
-
index: index
|
|
308
|
-
});
|
|
309
|
-
};
|
|
310
|
-
var onIndicatorMouseEnter = function onIndicatorMouseEnter(index) {
|
|
311
|
-
if (props.changeItemOnIndicatorHover) {
|
|
312
|
-
stopSlideShow();
|
|
313
|
-
props.onActiveItemChange({
|
|
314
|
-
index: index
|
|
315
|
-
});
|
|
316
|
-
}
|
|
317
|
-
};
|
|
318
|
-
var onIndicatorKeyDown = function onIndicatorKeyDown(event, index) {
|
|
319
|
-
if (event.which === 13) {
|
|
320
|
-
stopSlideShow();
|
|
321
|
-
props.onActiveItemChange({
|
|
322
|
-
index: index
|
|
323
|
-
});
|
|
324
|
-
}
|
|
325
|
-
};
|
|
326
|
-
useMountEffect(function () {
|
|
327
|
-
if (props.autoPlay) {
|
|
328
|
-
props.startSlideShow();
|
|
329
|
-
}
|
|
330
|
-
});
|
|
331
|
-
var createBackwardNavigator = function createBackwardNavigator() {
|
|
332
|
-
if (props.showItemNavigators) {
|
|
333
|
-
var isDisabled = !props.circular && props.activeItemIndex === 0;
|
|
334
|
-
var previousItemIconProps = mergeProps({
|
|
335
|
-
className: cx('previousItemIcon')
|
|
336
|
-
}, getPTOptions('previousItemIcon'));
|
|
337
|
-
var icon = props.itemPrevIcon || /*#__PURE__*/React.createElement(ChevronLeftIcon, previousItemIconProps);
|
|
338
|
-
var itemPrevIcon = IconUtils.getJSXIcon(icon, _objectSpread$2({}, previousItemIconProps), {
|
|
339
|
-
props: props
|
|
340
|
-
});
|
|
341
|
-
var previousItemButtonProps = mergeProps({
|
|
342
|
-
type: 'button',
|
|
343
|
-
className: cx('previousItemButton', {
|
|
344
|
-
isDisabled: isDisabled
|
|
345
|
-
}),
|
|
346
|
-
onClick: navBackward,
|
|
347
|
-
disabled: isDisabled,
|
|
348
|
-
'data-p-disabled': isDisabled
|
|
349
|
-
}, getPTOptions('previousItemButton'));
|
|
350
|
-
return /*#__PURE__*/React.createElement("button", previousItemButtonProps, itemPrevIcon, /*#__PURE__*/React.createElement(Ripple, null));
|
|
351
|
-
}
|
|
352
|
-
return null;
|
|
353
|
-
};
|
|
354
|
-
var createForwardNavigator = function createForwardNavigator() {
|
|
355
|
-
if (props.showItemNavigators) {
|
|
356
|
-
var isDisabled = !props.circular && props.activeItemIndex === props.value.length - 1;
|
|
357
|
-
var nextItemIconProps = mergeProps({
|
|
358
|
-
className: cx('nextItemIcon')
|
|
359
|
-
}, getPTOptions('nextItemIcon'));
|
|
360
|
-
var icon = props.itemNextIcon || /*#__PURE__*/React.createElement(ChevronRightIcon, nextItemIconProps);
|
|
361
|
-
var itemNextIcon = IconUtils.getJSXIcon(icon, _objectSpread$2({}, nextItemIconProps), {
|
|
362
|
-
props: props
|
|
363
|
-
});
|
|
364
|
-
var nextItemButtonProps = mergeProps({
|
|
365
|
-
type: 'button',
|
|
366
|
-
className: cx('nextItemButton', {
|
|
367
|
-
isDisabled: isDisabled
|
|
368
|
-
}),
|
|
369
|
-
onClick: navForward,
|
|
370
|
-
disabled: isDisabled,
|
|
371
|
-
'data-p-disabled': isDisabled
|
|
372
|
-
}, getPTOptions('nextItemButton'));
|
|
373
|
-
return /*#__PURE__*/React.createElement("button", nextItemButtonProps, itemNextIcon, /*#__PURE__*/React.createElement(Ripple, null));
|
|
374
|
-
}
|
|
375
|
-
return null;
|
|
376
|
-
};
|
|
377
|
-
var createCaption = function createCaption() {
|
|
378
|
-
var captionProps = mergeProps({
|
|
379
|
-
className: cx('caption')
|
|
380
|
-
}, getPTOptions('caption'));
|
|
381
|
-
if (props.caption) {
|
|
382
|
-
var _content = props.caption(props.value[props.activeItemIndex]);
|
|
383
|
-
return /*#__PURE__*/React.createElement("div", captionProps, _content);
|
|
384
|
-
}
|
|
385
|
-
return null;
|
|
386
|
-
};
|
|
387
|
-
var createIndicator = function createIndicator(index) {
|
|
388
|
-
var key = 'p-galleria-indicator-' + index;
|
|
389
|
-
var isActive = props.activeItemIndex === index;
|
|
390
|
-
var indicator = props.indicator && props.indicator(index);
|
|
391
|
-
var indicatorProps = mergeProps({
|
|
392
|
-
className: cx('indicator', {
|
|
393
|
-
isActive: isActive
|
|
394
|
-
}),
|
|
395
|
-
key: key,
|
|
396
|
-
tabIndex: 0,
|
|
397
|
-
onClick: function onClick() {
|
|
398
|
-
return onIndicatorClick(index);
|
|
399
|
-
},
|
|
400
|
-
onMouseEnter: function onMouseEnter() {
|
|
401
|
-
return onIndicatorMouseEnter(index);
|
|
402
|
-
},
|
|
403
|
-
onKeyDown: function onKeyDown(e) {
|
|
404
|
-
return onIndicatorKeyDown(e, index);
|
|
405
|
-
},
|
|
406
|
-
'data-p-highlight': isActive
|
|
407
|
-
}, getPTOptions('indicator'));
|
|
408
|
-
if (!indicator) {
|
|
409
|
-
indicator = /*#__PURE__*/React.createElement("button", {
|
|
410
|
-
type: "button",
|
|
411
|
-
tabIndex: -1,
|
|
412
|
-
className: "p-link"
|
|
413
|
-
}, /*#__PURE__*/React.createElement(Ripple, null));
|
|
414
|
-
}
|
|
415
|
-
return /*#__PURE__*/React.createElement("li", indicatorProps, indicator);
|
|
416
|
-
};
|
|
417
|
-
var createIndicators = function createIndicators() {
|
|
418
|
-
if (props.showIndicators) {
|
|
419
|
-
var _indicators = [];
|
|
420
|
-
var indicatorsProps = mergeProps({
|
|
421
|
-
className: classNames(props.indicatorsContentClassName, cx('indicators'))
|
|
422
|
-
}, getPTOptions('indicators'));
|
|
423
|
-
for (var i = 0; i < props.value.length; i++) {
|
|
424
|
-
_indicators.push(createIndicator(i));
|
|
425
|
-
}
|
|
426
|
-
return /*#__PURE__*/React.createElement("ul", indicatorsProps, _indicators);
|
|
427
|
-
}
|
|
428
|
-
return null;
|
|
429
|
-
};
|
|
430
|
-
var content = props.itemTemplate && props.itemTemplate(props.value[props.activeItemIndex]);
|
|
431
|
-
var backwardNavigator = createBackwardNavigator();
|
|
432
|
-
var forwardNavigator = createForwardNavigator();
|
|
433
|
-
var caption = createCaption();
|
|
434
|
-
var indicators = createIndicators();
|
|
435
|
-
var itemWrapperProps = mergeProps({
|
|
436
|
-
ref: ref,
|
|
437
|
-
className: cx('itemWrapper')
|
|
438
|
-
}, getPTOptions('itemWrapper'));
|
|
439
|
-
var itemContainerProps = mergeProps({
|
|
440
|
-
className: cx('itemContainer')
|
|
441
|
-
}, getPTOptions('itemContainer'));
|
|
442
|
-
var itemProps = mergeProps({
|
|
443
|
-
className: cx('item')
|
|
444
|
-
}, getPTOptions('item'));
|
|
445
|
-
return /*#__PURE__*/React.createElement("div", itemWrapperProps, /*#__PURE__*/React.createElement("div", itemContainerProps, backwardNavigator, /*#__PURE__*/React.createElement("div", itemProps, content), forwardNavigator, caption), indicators);
|
|
446
|
-
}));
|
|
447
|
-
GalleriaItem.displayName = 'GalleriaItem';
|
|
448
|
-
|
|
449
|
-
function _arrayWithoutHoles(arr) {
|
|
450
|
-
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
function _iterableToArray(iter) {
|
|
454
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
455
|
-
}
|
|
456
|
-
|
|
457
|
-
function _nonIterableSpread() {
|
|
458
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
459
|
-
}
|
|
460
|
-
|
|
461
|
-
function _toConsumableArray(arr) {
|
|
462
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
463
|
-
}
|
|
464
|
-
|
|
465
|
-
function ownKeys$1(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
466
|
-
function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
467
|
-
var GalleriaThumbnailItem = /*#__PURE__*/React.memo(function (props) {
|
|
468
|
-
var ptm = props.ptm,
|
|
469
|
-
cx = props.cx;
|
|
470
|
-
var getPTOptions = function getPTOptions(key, options) {
|
|
471
|
-
return ptm(key, _objectSpread$1({
|
|
472
|
-
hostName: props.hostName
|
|
473
|
-
}, options));
|
|
474
|
-
};
|
|
475
|
-
var onItemClick = function onItemClick(event) {
|
|
476
|
-
props.onItemClick({
|
|
477
|
-
originalEvent: event,
|
|
478
|
-
index: props.index
|
|
479
|
-
});
|
|
480
|
-
};
|
|
481
|
-
var onItemKeyDown = function onItemKeyDown(event) {
|
|
482
|
-
if (event.which === 13) {
|
|
483
|
-
props.onItemClick({
|
|
484
|
-
originalEvent: event,
|
|
485
|
-
index: props.index
|
|
486
|
-
});
|
|
487
|
-
}
|
|
488
|
-
};
|
|
489
|
-
var tabIndex = props.active ? 0 : null;
|
|
490
|
-
var content = props.template && props.template(props.item);
|
|
491
|
-
var thumbnailItemProps = mergeProps({
|
|
492
|
-
className: classNames(props.className, cx('thumbnailItem', {
|
|
493
|
-
subProps: props
|
|
494
|
-
})),
|
|
495
|
-
'data-p-galleria-thumbnail-item-current': props.current,
|
|
496
|
-
'data-p-galleria-thumbnail-item-active': props.active,
|
|
497
|
-
'data-p-galleria-thumbnail-item-start': props.start,
|
|
498
|
-
'data-p-galleria-thumbnail-item-end': props.end
|
|
499
|
-
}, getPTOptions('thumbnailItem'));
|
|
500
|
-
var thumbnailItemContentProps = mergeProps({
|
|
501
|
-
className: cx('thumbnailItemContent'),
|
|
502
|
-
tabIndex: tabIndex,
|
|
503
|
-
onClick: onItemClick,
|
|
504
|
-
onKeyDown: onItemKeyDown
|
|
505
|
-
}, getPTOptions('thumbnailItemContent'));
|
|
506
|
-
return /*#__PURE__*/React.createElement("div", thumbnailItemProps, /*#__PURE__*/React.createElement("div", thumbnailItemContentProps, content));
|
|
507
|
-
});
|
|
508
|
-
var GalleriaThumbnails = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
509
|
-
var _React$useState = React.useState(props.numVisible),
|
|
510
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
511
|
-
numVisibleState = _React$useState2[0],
|
|
512
|
-
setNumVisibleState = _React$useState2[1];
|
|
513
|
-
var _React$useState3 = React.useState(0),
|
|
514
|
-
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
515
|
-
totalShiftedItemsState = _React$useState4[0],
|
|
516
|
-
setTotalShiftedItemsState = _React$useState4[1];
|
|
517
|
-
var itemsContainerRef = React.useRef(null);
|
|
518
|
-
var startPos = React.useRef(null);
|
|
519
|
-
var attributeSelector = React.useRef('');
|
|
520
|
-
var thumbnailsStyle = React.useRef(null);
|
|
521
|
-
var responsiveOptions = React.useRef(null);
|
|
522
|
-
var prevNumVisible = usePrevious(numVisibleState);
|
|
523
|
-
var prevActiveItemIndex = usePrevious(props.activeItemIndex);
|
|
524
|
-
var context = React.useContext(PrimeReactContext);
|
|
525
|
-
var ptm = props.ptm,
|
|
526
|
-
cx = props.cx,
|
|
527
|
-
sx = props.sx;
|
|
528
|
-
var getPTOptions = function getPTOptions(key, options) {
|
|
529
|
-
return ptm(key, _objectSpread$1({
|
|
530
|
-
hostName: props.hostName
|
|
531
|
-
}, options));
|
|
532
|
-
};
|
|
533
|
-
var _useResizeListener = useResizeListener({
|
|
534
|
-
listener: function listener() {
|
|
535
|
-
calculatePosition();
|
|
536
|
-
},
|
|
537
|
-
when: props.responsiveOptions
|
|
538
|
-
}),
|
|
539
|
-
_useResizeListener2 = _slicedToArray(_useResizeListener, 1),
|
|
540
|
-
bindWindowResizeListener = _useResizeListener2[0];
|
|
541
|
-
var step = function step(dir) {
|
|
542
|
-
var totalShiftedItems = totalShiftedItemsState + dir;
|
|
543
|
-
if (dir < 0 && -1 * totalShiftedItems + numVisibleState > props.value.length - 1) {
|
|
544
|
-
totalShiftedItems = numVisibleState - props.value.length;
|
|
545
|
-
} else if (dir > 0 && totalShiftedItems > 0) {
|
|
546
|
-
totalShiftedItems = 0;
|
|
547
|
-
}
|
|
548
|
-
if (props.circular) {
|
|
549
|
-
if (dir < 0 && props.value.length - 1 === props.activeItemIndex) {
|
|
550
|
-
totalShiftedItems = 0;
|
|
551
|
-
} else if (dir > 0 && props.activeItemIndex === 0) {
|
|
552
|
-
totalShiftedItems = numVisibleState - props.value.length;
|
|
553
|
-
}
|
|
554
|
-
}
|
|
555
|
-
if (itemsContainerRef.current) {
|
|
556
|
-
DomHandler.removeClass(itemsContainerRef.current, 'p-items-hidden');
|
|
557
|
-
itemsContainerRef.current.style.transform = props.isVertical ? "translate3d(0, ".concat(totalShiftedItems * (100 / numVisibleState), "%, 0)") : "translate3d(".concat(totalShiftedItems * (100 / numVisibleState), "%, 0, 0)");
|
|
558
|
-
itemsContainerRef.current.style.transition = 'transform 500ms ease 0s';
|
|
559
|
-
}
|
|
560
|
-
setTotalShiftedItemsState(totalShiftedItems);
|
|
561
|
-
};
|
|
562
|
-
var stopSlideShow = function stopSlideShow() {
|
|
563
|
-
if (props.slideShowActive && props.stopSlideShow) {
|
|
564
|
-
props.stopSlideShow();
|
|
565
|
-
}
|
|
566
|
-
};
|
|
567
|
-
var getMedianItemIndex = function getMedianItemIndex() {
|
|
568
|
-
var index = Math.floor(numVisibleState / 2);
|
|
569
|
-
return numVisibleState % 2 ? index : index - 1;
|
|
570
|
-
};
|
|
571
|
-
var navBackward = function navBackward(e) {
|
|
572
|
-
stopSlideShow();
|
|
573
|
-
var prevItemIndex = props.activeItemIndex !== 0 ? props.activeItemIndex - 1 : 0;
|
|
574
|
-
var diff = prevItemIndex + totalShiftedItemsState;
|
|
575
|
-
if (numVisibleState - diff - 1 > getMedianItemIndex() && (-1 * totalShiftedItemsState !== 0 || props.circular)) {
|
|
576
|
-
step(1);
|
|
577
|
-
}
|
|
578
|
-
props.onActiveItemChange({
|
|
579
|
-
index: props.circular && props.activeItemIndex === 0 ? props.value.length - 1 : prevItemIndex
|
|
580
|
-
});
|
|
581
|
-
if (e.cancelable) {
|
|
582
|
-
e.preventDefault();
|
|
583
|
-
}
|
|
584
|
-
};
|
|
585
|
-
var navForward = function navForward(e) {
|
|
586
|
-
stopSlideShow();
|
|
587
|
-
var nextItemIndex = props.activeItemIndex + 1;
|
|
588
|
-
if (nextItemIndex + totalShiftedItemsState > getMedianItemIndex() && (-1 * totalShiftedItemsState < getTotalPageNumber() - 1 || props.circular)) {
|
|
589
|
-
step(-1);
|
|
590
|
-
}
|
|
591
|
-
props.onActiveItemChange({
|
|
592
|
-
index: props.circular && props.value.length - 1 === props.activeItemIndex ? 0 : nextItemIndex
|
|
593
|
-
});
|
|
594
|
-
if (e.cancelable) {
|
|
595
|
-
e.preventDefault();
|
|
596
|
-
}
|
|
597
|
-
};
|
|
598
|
-
var onItemClick = function onItemClick(event) {
|
|
599
|
-
stopSlideShow();
|
|
600
|
-
var selectedItemIndex = event.index;
|
|
601
|
-
if (selectedItemIndex !== props.activeItemIndex) {
|
|
602
|
-
var diff = selectedItemIndex + totalShiftedItemsState;
|
|
603
|
-
var dir = 0;
|
|
604
|
-
if (selectedItemIndex < props.activeItemIndex) {
|
|
605
|
-
dir = numVisibleState - diff - 1 - getMedianItemIndex();
|
|
606
|
-
if (dir > 0 && -1 * totalShiftedItemsState !== 0) {
|
|
607
|
-
step(dir);
|
|
608
|
-
}
|
|
609
|
-
} else {
|
|
610
|
-
dir = getMedianItemIndex() - diff;
|
|
611
|
-
if (dir < 0 && -1 * totalShiftedItemsState < getTotalPageNumber() - 1) {
|
|
612
|
-
step(dir);
|
|
613
|
-
}
|
|
614
|
-
}
|
|
615
|
-
props.onActiveItemChange({
|
|
616
|
-
index: selectedItemIndex
|
|
617
|
-
});
|
|
618
|
-
}
|
|
619
|
-
};
|
|
620
|
-
var onTransitionEnd = function onTransitionEnd(e) {
|
|
621
|
-
if (itemsContainerRef.current && e.propertyName === 'transform') {
|
|
622
|
-
document.body.setAttribute('data-p-items-hidden', 'false');
|
|
623
|
-
!props.isUnstyled() && DomHandler.addClass(itemsContainerRef.current, 'p-items-hidden');
|
|
624
|
-
itemsContainerRef.current.style.transition = '';
|
|
625
|
-
}
|
|
626
|
-
};
|
|
627
|
-
var onTouchStart = function onTouchStart(e) {
|
|
628
|
-
var touchobj = e.changedTouches[0];
|
|
629
|
-
startPos.current = {
|
|
630
|
-
x: touchobj.pageX,
|
|
631
|
-
y: touchobj.pageY
|
|
632
|
-
};
|
|
633
|
-
};
|
|
634
|
-
var onTouchMove = function onTouchMove(e) {
|
|
635
|
-
if (e.cancelable) {
|
|
636
|
-
e.preventDefault();
|
|
637
|
-
}
|
|
638
|
-
};
|
|
639
|
-
var onTouchEnd = function onTouchEnd(e) {
|
|
640
|
-
var touchobj = e.changedTouches[0];
|
|
641
|
-
if (props.isVertical) {
|
|
642
|
-
changePageOnTouch(e, touchobj.pageY - startPos.current.y);
|
|
643
|
-
} else {
|
|
644
|
-
changePageOnTouch(e, touchobj.pageX - startPos.current.x);
|
|
645
|
-
}
|
|
646
|
-
};
|
|
647
|
-
var changePageOnTouch = function changePageOnTouch(e, diff) {
|
|
648
|
-
if (diff < 0) {
|
|
649
|
-
// left
|
|
650
|
-
navForward(e);
|
|
651
|
-
} else {
|
|
652
|
-
// right
|
|
653
|
-
navBackward(e);
|
|
654
|
-
}
|
|
655
|
-
};
|
|
656
|
-
var getTotalPageNumber = function getTotalPageNumber() {
|
|
657
|
-
return props.value.length > numVisibleState ? props.value.length - numVisibleState + 1 : 0;
|
|
658
|
-
};
|
|
659
|
-
var createStyle = function createStyle() {
|
|
660
|
-
if (!thumbnailsStyle.current) {
|
|
661
|
-
thumbnailsStyle.current = DomHandler.createInlineStyle(context && context.nonce || PrimeReact.nonce);
|
|
662
|
-
}
|
|
663
|
-
var innerHTML = "\n [data-pc-section=\"thumbnailitems\"][".concat(attributeSelector.current, "] {\n [data-pc-section=\"thumbnailitem\"] {\n flex: 1 0 ").concat(100 / numVisibleState, "%\n }\n } \n ");
|
|
664
|
-
if (props.responsiveOptions) {
|
|
665
|
-
var comparator = ObjectUtils.localeComparator(context && context.locale || PrimeReact.locale);
|
|
666
|
-
responsiveOptions.current = _toConsumableArray(props.responsiveOptions);
|
|
667
|
-
responsiveOptions.current.sort(function (data1, data2) {
|
|
668
|
-
var value1 = data1.breakpoint;
|
|
669
|
-
var value2 = data2.breakpoint;
|
|
670
|
-
return ObjectUtils.sort(value1, value2, -1, comparator, context && context.nullSortOrder || PrimeReact.nullSortOrder);
|
|
671
|
-
});
|
|
672
|
-
for (var i = 0; i < responsiveOptions.current.length; i++) {
|
|
673
|
-
var res = responsiveOptions.current[i];
|
|
674
|
-
innerHTML += "\n @media screen and (max-width: ".concat(res.breakpoint, ") {\n [data-pc-section=\"thumbnailitems\"][").concat(attributeSelector.current, "] {\n [data-pc-section=\"thumbnailitem\"] {\n flex: 1 0 ").concat(100 / res.numVisible, "%\n }\n } \n }\n ");
|
|
675
|
-
}
|
|
676
|
-
}
|
|
677
|
-
thumbnailsStyle.current.innerHTML = innerHTML;
|
|
678
|
-
};
|
|
679
|
-
var calculatePosition = function calculatePosition() {
|
|
680
|
-
if (itemsContainerRef.current && responsiveOptions.current) {
|
|
681
|
-
var windowWidth = window.innerWidth;
|
|
682
|
-
var matchedResponsiveData = {
|
|
683
|
-
numVisible: props.numVisible
|
|
684
|
-
};
|
|
685
|
-
for (var i = 0; i < responsiveOptions.current.length; i++) {
|
|
686
|
-
var res = responsiveOptions.current[i];
|
|
687
|
-
if (parseInt(res.breakpoint, 10) >= windowWidth) {
|
|
688
|
-
matchedResponsiveData = res;
|
|
689
|
-
}
|
|
690
|
-
}
|
|
691
|
-
if (numVisibleState !== matchedResponsiveData.numVisible) {
|
|
692
|
-
setNumVisibleState(matchedResponsiveData.numVisible);
|
|
693
|
-
}
|
|
694
|
-
}
|
|
695
|
-
};
|
|
696
|
-
useMountEffect(function () {
|
|
697
|
-
if (itemsContainerRef.current) {
|
|
698
|
-
attributeSelector.current = UniqueComponentId();
|
|
699
|
-
itemsContainerRef.current.setAttribute(attributeSelector.current, '');
|
|
700
|
-
}
|
|
701
|
-
createStyle();
|
|
702
|
-
calculatePosition();
|
|
703
|
-
bindWindowResizeListener();
|
|
704
|
-
});
|
|
705
|
-
useUpdateEffect(function () {
|
|
706
|
-
var totalShiftedItems = totalShiftedItemsState;
|
|
707
|
-
if (prevNumVisible !== numVisibleState || prevActiveItemIndex !== props.activeItemIndex) {
|
|
708
|
-
if (props.activeItemIndex <= getMedianItemIndex()) {
|
|
709
|
-
totalShiftedItems = 0;
|
|
710
|
-
} else if (props.value.length - numVisibleState + getMedianItemIndex() < props.activeItemIndex) {
|
|
711
|
-
totalShiftedItems = numVisibleState - props.value.length;
|
|
712
|
-
} else if (props.value.length - numVisibleState < props.activeItemIndex && numVisibleState % 2 === 0) {
|
|
713
|
-
totalShiftedItems = props.activeItemIndex * -1 + getMedianItemIndex() + 1;
|
|
714
|
-
} else {
|
|
715
|
-
totalShiftedItems = props.activeItemIndex * -1 + getMedianItemIndex();
|
|
716
|
-
}
|
|
717
|
-
if (totalShiftedItems !== totalShiftedItemsState) {
|
|
718
|
-
setTotalShiftedItemsState(totalShiftedItems);
|
|
719
|
-
}
|
|
720
|
-
itemsContainerRef.current.style.transform = props.isVertical ? "translate3d(0, ".concat(totalShiftedItems * (100 / numVisibleState), "%, 0)") : "translate3d(".concat(totalShiftedItems * (100 / numVisibleState), "%, 0, 0)");
|
|
721
|
-
if (prevActiveItemIndex !== props.activeItemIndex) {
|
|
722
|
-
document.body.setAttribute('data-p-items-hidden', 'false');
|
|
723
|
-
!props.isUnstyled() && DomHandler.removeClass(itemsContainerRef.current, 'p-items-hidden');
|
|
724
|
-
itemsContainerRef.current.style.transition = 'transform 500ms ease 0s';
|
|
725
|
-
}
|
|
726
|
-
}
|
|
727
|
-
});
|
|
728
|
-
var createItems = function createItems() {
|
|
729
|
-
return props.value.map(function (item, index) {
|
|
730
|
-
var firstIndex = totalShiftedItemsState * -1;
|
|
731
|
-
var lastIndex = firstIndex + numVisibleState - 1;
|
|
732
|
-
var isActive = firstIndex <= index && lastIndex >= index;
|
|
733
|
-
var start = firstIndex === index;
|
|
734
|
-
var end = lastIndex === index;
|
|
735
|
-
var current = props.activeItemIndex === index;
|
|
736
|
-
return /*#__PURE__*/React.createElement(GalleriaThumbnailItem, {
|
|
737
|
-
key: index,
|
|
738
|
-
index: index,
|
|
739
|
-
template: props.itemTemplate,
|
|
740
|
-
item: item,
|
|
741
|
-
active: isActive,
|
|
742
|
-
start: start,
|
|
743
|
-
end: end,
|
|
744
|
-
onItemClick: onItemClick,
|
|
745
|
-
current: current,
|
|
746
|
-
ptm: ptm,
|
|
747
|
-
cx: cx,
|
|
748
|
-
sx: sx
|
|
749
|
-
});
|
|
750
|
-
});
|
|
751
|
-
};
|
|
752
|
-
var createBackwardNavigator = function createBackwardNavigator() {
|
|
753
|
-
if (props.showThumbnailNavigators) {
|
|
754
|
-
var isDisabled = !props.circular && props.activeItemIndex === 0 || props.value.length <= numVisibleState;
|
|
755
|
-
var previousThumbnailIconProps = mergeProps({
|
|
756
|
-
className: cx('previousThumbnailIcon')
|
|
757
|
-
}, getPTOptions('previousThumbnailIcon'));
|
|
758
|
-
var icon = props.isVertical ? props.prevThumbnailIcon || /*#__PURE__*/React.createElement(ChevronUpIcon, previousThumbnailIconProps) : props.prevThumbnailIcon || /*#__PURE__*/React.createElement(ChevronLeftIcon, previousThumbnailIconProps);
|
|
759
|
-
var prevThumbnailIcon = IconUtils.getJSXIcon(icon, _objectSpread$1({}, previousThumbnailIconProps), {
|
|
760
|
-
props: props
|
|
761
|
-
});
|
|
762
|
-
var previousThumbnailButtonProps = mergeProps({
|
|
763
|
-
className: cx('previousThumbnailButton', {
|
|
764
|
-
isDisabled: isDisabled
|
|
765
|
-
}),
|
|
766
|
-
onClick: navBackward,
|
|
767
|
-
disabled: isDisabled,
|
|
768
|
-
'data-p-disabled': isDisabled
|
|
769
|
-
}, getPTOptions('previousThumbnailButton'));
|
|
770
|
-
return /*#__PURE__*/React.createElement("button", previousThumbnailButtonProps, prevThumbnailIcon, /*#__PURE__*/React.createElement(Ripple, null));
|
|
771
|
-
}
|
|
772
|
-
return null;
|
|
773
|
-
};
|
|
774
|
-
var createForwardNavigator = function createForwardNavigator() {
|
|
775
|
-
if (props.showThumbnailNavigators) {
|
|
776
|
-
var isDisabled = !props.circular && props.activeItemIndex === props.value.length - 1 || props.value.length <= numVisibleState;
|
|
777
|
-
var nextThumbnailIconProps = mergeProps({
|
|
778
|
-
className: cx('nextThumbnailIcon')
|
|
779
|
-
}, getPTOptions('nextThumbnailIcon'));
|
|
780
|
-
var icon = props.isVertical ? props.nextThumbnailIcon || /*#__PURE__*/React.createElement(ChevronDownIcon, nextThumbnailIconProps) : props.nextThumbnailIcon || /*#__PURE__*/React.createElement(ChevronRightIcon, nextThumbnailIconProps);
|
|
781
|
-
var nextThumbnailIcon = IconUtils.getJSXIcon(icon, _objectSpread$1({}, nextThumbnailIconProps), {
|
|
782
|
-
props: props
|
|
783
|
-
});
|
|
784
|
-
var nextThumbnailButtonProps = mergeProps({
|
|
785
|
-
className: cx('nextThumbnailButton', {
|
|
786
|
-
isDisabled: isDisabled
|
|
787
|
-
}),
|
|
788
|
-
onClick: navForward,
|
|
789
|
-
disabled: isDisabled,
|
|
790
|
-
'data-p-disabled': isDisabled
|
|
791
|
-
}, getPTOptions('nextThumbnailButton'));
|
|
792
|
-
return /*#__PURE__*/React.createElement("button", nextThumbnailButtonProps, nextThumbnailIcon, /*#__PURE__*/React.createElement(Ripple, null));
|
|
793
|
-
}
|
|
794
|
-
return null;
|
|
795
|
-
};
|
|
796
|
-
var createContent = function createContent() {
|
|
797
|
-
var items = createItems();
|
|
798
|
-
var height = props.isVertical ? props.contentHeight : '';
|
|
799
|
-
var backwardNavigator = createBackwardNavigator();
|
|
800
|
-
var forwardNavigator = createForwardNavigator();
|
|
801
|
-
var thumbnailContainerProps = mergeProps({
|
|
802
|
-
className: cx('thumbnailContainer')
|
|
803
|
-
}, getPTOptions('thumbnailContainer'));
|
|
804
|
-
var thumbnailItemsContainerProps = mergeProps({
|
|
805
|
-
className: cx('thumbnailItemsContainer'),
|
|
806
|
-
style: sx('thumbnailItemsContainer', {
|
|
807
|
-
height: height
|
|
808
|
-
})
|
|
809
|
-
}, getPTOptions('thumbnailItemsContainer'));
|
|
810
|
-
var thumbnailItemsProps = mergeProps({
|
|
811
|
-
ref: itemsContainerRef,
|
|
812
|
-
className: cx('thumbnailItems'),
|
|
813
|
-
onTransitionEnd: onTransitionEnd,
|
|
814
|
-
onTouchStart: onTouchStart,
|
|
815
|
-
onTouchMove: onTouchMove,
|
|
816
|
-
onTouchEnd: onTouchEnd
|
|
817
|
-
}, getPTOptions('thumbnailItems'));
|
|
818
|
-
return /*#__PURE__*/React.createElement("div", thumbnailContainerProps, backwardNavigator, /*#__PURE__*/React.createElement("div", thumbnailItemsContainerProps, /*#__PURE__*/React.createElement("div", thumbnailItemsProps, items)), forwardNavigator);
|
|
819
|
-
};
|
|
820
|
-
var content = createContent();
|
|
821
|
-
var thumbnailWrapperProps = mergeProps({
|
|
822
|
-
className: cx('thumbnailWrapper')
|
|
823
|
-
}, getPTOptions('thumbnailWrapper'));
|
|
824
|
-
return /*#__PURE__*/React.createElement("div", thumbnailWrapperProps, content);
|
|
825
|
-
}));
|
|
826
|
-
GalleriaThumbnailItem.displayName = 'GalleriaThumbnailItem';
|
|
827
|
-
GalleriaThumbnails.displayName = 'GalleriaThumbnails';
|
|
828
|
-
|
|
829
|
-
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; }
|
|
830
|
-
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; }
|
|
831
|
-
var Galleria = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
832
|
-
var context = React.useContext(PrimeReactContext);
|
|
833
|
-
var props = GalleriaBase.getProps(inProps, context);
|
|
834
|
-
var _React$useState = React.useState(false),
|
|
835
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
836
|
-
visibleState = _React$useState2[0],
|
|
837
|
-
setVisibleState = _React$useState2[1];
|
|
838
|
-
var _React$useState3 = React.useState(props.numVisible),
|
|
839
|
-
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
840
|
-
numVisibleState = _React$useState4[0],
|
|
841
|
-
setNumVisibleState = _React$useState4[1];
|
|
842
|
-
var _React$useState5 = React.useState(false),
|
|
843
|
-
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
844
|
-
slideShowActiveState = _React$useState6[0],
|
|
845
|
-
setSlideShowActiveState = _React$useState6[1];
|
|
846
|
-
var _React$useState7 = React.useState(props.activeIndex),
|
|
847
|
-
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
848
|
-
activeIndexState = _React$useState8[0],
|
|
849
|
-
setActiveIndexState = _React$useState8[1];
|
|
850
|
-
var elementRef = React.useRef(null);
|
|
851
|
-
var previewContentRef = React.useRef(null);
|
|
852
|
-
var maskRef = React.useRef(null);
|
|
853
|
-
var activeItemIndex = props.onItemChange ? props.activeIndex : activeIndexState;
|
|
854
|
-
var isVertical = props.thumbnailsPosition === 'left' || props.thumbnailsPosition === 'right';
|
|
855
|
-
var _GalleriaBase$setMeta = GalleriaBase.setMetaData({
|
|
856
|
-
props: props,
|
|
857
|
-
state: {
|
|
858
|
-
visible: visibleState,
|
|
859
|
-
numVisible: numVisibleState,
|
|
860
|
-
slideShowActive: slideShowActiveState,
|
|
861
|
-
activeIndex: activeIndexState
|
|
862
|
-
}
|
|
863
|
-
}),
|
|
864
|
-
ptm = _GalleriaBase$setMeta.ptm,
|
|
865
|
-
cx = _GalleriaBase$setMeta.cx,
|
|
866
|
-
sx = _GalleriaBase$setMeta.sx,
|
|
867
|
-
isUnstyled = _GalleriaBase$setMeta.isUnstyled;
|
|
868
|
-
useHandleStyle(GalleriaBase.css.styles, isUnstyled, {
|
|
869
|
-
name: 'galleria'
|
|
870
|
-
});
|
|
871
|
-
useInterval(function () {
|
|
872
|
-
onActiveItemChange({
|
|
873
|
-
index: props.circular && props.value.length - 1 === activeItemIndex ? 0 : activeItemIndex + 1
|
|
874
|
-
});
|
|
875
|
-
}, props.transitionInterval, slideShowActiveState);
|
|
876
|
-
var onActiveItemChange = function onActiveItemChange(event) {
|
|
877
|
-
if (event.index >= props.value.length) {
|
|
878
|
-
// #3973 AutoPlay without circular should stop the slideshow when it reaches the end
|
|
879
|
-
stopSlideShow();
|
|
880
|
-
return;
|
|
881
|
-
}
|
|
882
|
-
if (props.onItemChange) {
|
|
883
|
-
props.onItemChange(event);
|
|
884
|
-
} else {
|
|
885
|
-
setActiveIndexState(event.index);
|
|
886
|
-
}
|
|
887
|
-
};
|
|
888
|
-
var show = function show() {
|
|
889
|
-
setVisibleState(true);
|
|
890
|
-
};
|
|
891
|
-
var hide = function hide() {
|
|
892
|
-
setVisibleState(false);
|
|
893
|
-
};
|
|
894
|
-
var onEnter = function onEnter() {
|
|
895
|
-
DomHandler.addClass(document.body, 'p-overflow-hidden');
|
|
896
|
-
document.body.style.setProperty('--scrollbar-width', DomHandler.calculateScrollbarWidth() + 'px');
|
|
897
|
-
};
|
|
898
|
-
var onEntering = function onEntering() {
|
|
899
|
-
ZIndexUtils.set('modal', maskRef.current, context && context.autoZIndex || PrimeReact.autoZIndex, props.baseZIndex || context && context.zIndex['modal'] || PrimeReact.zIndex['modal']);
|
|
900
|
-
!isUnstyled() && DomHandler.addMultipleClasses(maskRef.current, 'p-component-overlay p-component-overlay-enter');
|
|
901
|
-
};
|
|
902
|
-
var onEntered = function onEntered() {
|
|
903
|
-
props.onShow && props.onShow();
|
|
904
|
-
};
|
|
905
|
-
var onExit = function onExit() {
|
|
906
|
-
DomHandler.removeClass(document.body, 'p-overflow-hidden');
|
|
907
|
-
document.body.style.removeProperty('--scrollbar-width');
|
|
908
|
-
!isUnstyled() && DomHandler.addClass(maskRef.current, 'p-component-overlay-leave');
|
|
909
|
-
};
|
|
910
|
-
var onExited = function onExited() {
|
|
911
|
-
ZIndexUtils.clear(maskRef.current);
|
|
912
|
-
props.onHide && props.onHide();
|
|
913
|
-
};
|
|
914
|
-
var isAutoPlayActive = function isAutoPlayActive() {
|
|
915
|
-
return slideShowActiveState;
|
|
916
|
-
};
|
|
917
|
-
var startSlideShow = function startSlideShow() {
|
|
918
|
-
setSlideShowActiveState(true);
|
|
919
|
-
};
|
|
920
|
-
var stopSlideShow = function stopSlideShow() {
|
|
921
|
-
setSlideShowActiveState(false);
|
|
922
|
-
};
|
|
923
|
-
var getPositionClassName = function getPositionClassName(preClassName, position) {
|
|
924
|
-
var positions = ['top', 'left', 'bottom', 'right'];
|
|
925
|
-
var pos = positions.find(function (item) {
|
|
926
|
-
return item === position;
|
|
927
|
-
});
|
|
928
|
-
return pos ? "".concat(preClassName, "-").concat(pos) : '';
|
|
929
|
-
};
|
|
930
|
-
React.useEffect(function () {
|
|
931
|
-
if (props.value && props.value.length < numVisibleState) {
|
|
932
|
-
setNumVisibleState(props.value.length);
|
|
933
|
-
}
|
|
934
|
-
}, [props.value, numVisibleState]);
|
|
935
|
-
React.useEffect(function () {
|
|
936
|
-
setNumVisibleState(props.numVisible);
|
|
937
|
-
}, [props.numVisible]);
|
|
938
|
-
useUnmountEffect(function () {
|
|
939
|
-
if (slideShowActiveState) {
|
|
940
|
-
stopSlideShow();
|
|
941
|
-
}
|
|
942
|
-
ZIndexUtils.clear(maskRef.current);
|
|
943
|
-
});
|
|
944
|
-
React.useImperativeHandle(ref, function () {
|
|
945
|
-
return {
|
|
946
|
-
props: props,
|
|
947
|
-
show: show,
|
|
948
|
-
hide: hide,
|
|
949
|
-
isAutoPlayActive: isAutoPlayActive,
|
|
950
|
-
startSlideShow: startSlideShow,
|
|
951
|
-
stopSlideShow: stopSlideShow,
|
|
952
|
-
getElement: function getElement() {
|
|
953
|
-
return elementRef.current;
|
|
954
|
-
},
|
|
955
|
-
getPreviewContent: function getPreviewContent() {
|
|
956
|
-
return previewContentRef.current;
|
|
957
|
-
}
|
|
958
|
-
};
|
|
959
|
-
});
|
|
960
|
-
var createHeader = function createHeader() {
|
|
961
|
-
var headerProps = mergeProps({
|
|
962
|
-
className: cx('header')
|
|
963
|
-
}, ptm('header'));
|
|
964
|
-
if (props.header) {
|
|
965
|
-
return /*#__PURE__*/React.createElement("div", headerProps, props.header);
|
|
966
|
-
}
|
|
967
|
-
return null;
|
|
968
|
-
};
|
|
969
|
-
var createFooter = function createFooter() {
|
|
970
|
-
var footerProps = mergeProps({
|
|
971
|
-
className: cx('footer')
|
|
972
|
-
}, ptm('footer'));
|
|
973
|
-
if (props.footer) {
|
|
974
|
-
return /*#__PURE__*/React.createElement("div", footerProps, props.footer);
|
|
975
|
-
}
|
|
976
|
-
return null;
|
|
977
|
-
};
|
|
978
|
-
var createElement = function createElement() {
|
|
979
|
-
var thumbnailsPosClassName = props.showThumbnails && getPositionClassName('p-galleria-thumbnails', props.thumbnailsPosition);
|
|
980
|
-
var indicatorPosClassName = props.showIndicators && getPositionClassName('p-galleria-indicators', props.indicatorsPosition);
|
|
981
|
-
var closeIconProps = mergeProps({
|
|
982
|
-
className: cx('closeIcon'),
|
|
983
|
-
'aria-hidden': true
|
|
984
|
-
}, ptm('closeIcon'));
|
|
985
|
-
var icon = props.closeIcon || /*#__PURE__*/React.createElement(TimesIcon, closeIconProps);
|
|
986
|
-
var closeIcon = IconUtils.getJSXIcon(icon, _objectSpread({}, closeIconProps), {
|
|
987
|
-
props: props
|
|
988
|
-
});
|
|
989
|
-
var closeButtonProps = mergeProps({
|
|
990
|
-
type: 'button',
|
|
991
|
-
className: cx('closeButton'),
|
|
992
|
-
'aria-label': localeOption('close'),
|
|
993
|
-
onClick: hide
|
|
994
|
-
}, ptm('closeButton'));
|
|
995
|
-
var closeButton = props.fullScreen && /*#__PURE__*/React.createElement("button", closeButtonProps, closeIcon, /*#__PURE__*/React.createElement(Ripple, null));
|
|
996
|
-
var header = createHeader();
|
|
997
|
-
var footer = createFooter();
|
|
998
|
-
var rootProps = mergeProps({
|
|
999
|
-
ref: elementRef,
|
|
1000
|
-
id: props.id,
|
|
1001
|
-
className: classNames(props.className, cx('root', {
|
|
1002
|
-
context: context,
|
|
1003
|
-
thumbnailsPosClassName: thumbnailsPosClassName,
|
|
1004
|
-
indicatorPosClassName: indicatorPosClassName
|
|
1005
|
-
})),
|
|
1006
|
-
style: props.style
|
|
1007
|
-
}, GalleriaBase.getOtherProps(props), ptm('root'));
|
|
1008
|
-
var contentProps = mergeProps({
|
|
1009
|
-
className: cx('content')
|
|
1010
|
-
}, ptm('content'));
|
|
1011
|
-
var element = /*#__PURE__*/React.createElement("div", rootProps, closeButton, header, /*#__PURE__*/React.createElement("div", contentProps, /*#__PURE__*/React.createElement(GalleriaItem, {
|
|
1012
|
-
hostName: "Galleria",
|
|
1013
|
-
ref: previewContentRef,
|
|
1014
|
-
value: props.value,
|
|
1015
|
-
activeItemIndex: activeItemIndex,
|
|
1016
|
-
onActiveItemChange: onActiveItemChange,
|
|
1017
|
-
itemTemplate: props.item,
|
|
1018
|
-
circular: props.circular,
|
|
1019
|
-
caption: props.caption,
|
|
1020
|
-
showIndicators: props.showIndicators,
|
|
1021
|
-
itemPrevIcon: props.itemPrevIcon,
|
|
1022
|
-
itemNextIcon: props.itemNextIcon,
|
|
1023
|
-
changeItemOnIndicatorHover: props.changeItemOnIndicatorHover,
|
|
1024
|
-
indicator: props.indicator,
|
|
1025
|
-
showItemNavigators: props.showItemNavigators,
|
|
1026
|
-
autoPlay: props.autoPlay,
|
|
1027
|
-
slideShowActive: slideShowActiveState,
|
|
1028
|
-
startSlideShow: startSlideShow,
|
|
1029
|
-
stopSlideShow: stopSlideShow,
|
|
1030
|
-
ptm: ptm,
|
|
1031
|
-
cx: cx
|
|
1032
|
-
}), props.showThumbnails && /*#__PURE__*/React.createElement(GalleriaThumbnails, {
|
|
1033
|
-
hostName: "Galleria",
|
|
1034
|
-
value: props.value,
|
|
1035
|
-
activeItemIndex: activeItemIndex,
|
|
1036
|
-
onActiveItemChange: onActiveItemChange,
|
|
1037
|
-
itemTemplate: props.thumbnail,
|
|
1038
|
-
numVisible: numVisibleState,
|
|
1039
|
-
nextThumbnailIcon: props.nextThumbnailIcon,
|
|
1040
|
-
prevThumbnailIcon: props.prevThumbnailIcon,
|
|
1041
|
-
responsiveOptions: props.responsiveOptions,
|
|
1042
|
-
circular: props.circular,
|
|
1043
|
-
isVertical: isVertical,
|
|
1044
|
-
contentHeight: props.verticalThumbnailViewPortHeight,
|
|
1045
|
-
showThumbnailNavigators: props.showThumbnailNavigators,
|
|
1046
|
-
autoPlay: props.autoPlay,
|
|
1047
|
-
slideShowActive: slideShowActiveState,
|
|
1048
|
-
stopSlideShow: stopSlideShow,
|
|
1049
|
-
isUnstyled: isUnstyled,
|
|
1050
|
-
ptm: ptm,
|
|
1051
|
-
cx: cx,
|
|
1052
|
-
sx: sx
|
|
1053
|
-
})), footer);
|
|
1054
|
-
return element;
|
|
1055
|
-
};
|
|
1056
|
-
var createGalleria = function createGalleria() {
|
|
1057
|
-
var element = createElement();
|
|
1058
|
-
if (props.fullScreen) {
|
|
1059
|
-
var maskProps = mergeProps({
|
|
1060
|
-
className: cx('mask', {
|
|
1061
|
-
visibleState: visibleState
|
|
1062
|
-
})
|
|
1063
|
-
}, ptm('mask'));
|
|
1064
|
-
var transitionProps = mergeProps({
|
|
1065
|
-
classNames: cx('transition'),
|
|
1066
|
-
"in": visibleState,
|
|
1067
|
-
timeout: {
|
|
1068
|
-
enter: 150,
|
|
1069
|
-
exit: 150
|
|
1070
|
-
},
|
|
1071
|
-
options: props.transitionOptions,
|
|
1072
|
-
unmountOnExit: true,
|
|
1073
|
-
onEnter: onEnter,
|
|
1074
|
-
onEntering: onEntering,
|
|
1075
|
-
onEntered: onEntered,
|
|
1076
|
-
onExit: onExit,
|
|
1077
|
-
onExited: onExited
|
|
1078
|
-
}, ptm('transition'));
|
|
1079
|
-
var galleriaWrapper = /*#__PURE__*/React.createElement("div", _extends({
|
|
1080
|
-
ref: maskRef
|
|
1081
|
-
}, maskProps), /*#__PURE__*/React.createElement(CSSTransition, _extends({
|
|
1082
|
-
nodeRef: elementRef
|
|
1083
|
-
}, transitionProps), element));
|
|
1084
|
-
return /*#__PURE__*/React.createElement(Portal, {
|
|
1085
|
-
element: galleriaWrapper
|
|
1086
|
-
});
|
|
1087
|
-
}
|
|
1088
|
-
return element;
|
|
1089
|
-
};
|
|
1090
|
-
return ObjectUtils.isNotEmpty(props.value) && createGalleria();
|
|
1091
|
-
}));
|
|
1092
|
-
Galleria.displayName = 'Galleria';
|
|
1093
|
-
|
|
1094
|
-
export { Galleria };
|