primereact 8.7.3 → 9.0.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordion/accordion.cjs.js +69 -50
- package/accordion/accordion.cjs.min.js +1 -1
- package/accordion/accordion.d.ts +168 -25
- package/accordion/accordion.esm.js +70 -51
- package/accordion/accordion.esm.min.js +1 -1
- package/accordion/accordion.js +69 -50
- package/accordion/accordion.min.js +1 -1
- package/accordion/package.json +2 -1
- package/api/api.cjs.js +22 -20
- package/api/api.cjs.min.js +1 -1
- package/api/api.d.ts +11 -3
- package/api/api.esm.js +22 -20
- package/api/api.esm.min.js +1 -1
- package/api/api.js +22 -20
- package/api/api.min.js +1 -1
- package/api/package.json +2 -1
- package/autocomplete/autocomplete.cjs.js +98 -76
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.d.ts +385 -80
- package/autocomplete/autocomplete.esm.js +99 -77
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.js +98 -76
- package/autocomplete/autocomplete.min.js +1 -1
- package/autocomplete/package.json +2 -1
- package/avatar/avatar.cjs.js +29 -22
- package/avatar/avatar.cjs.min.js +1 -1
- package/avatar/avatar.d.ts +77 -15
- package/avatar/avatar.esm.js +29 -22
- package/avatar/avatar.esm.min.js +1 -1
- package/avatar/avatar.js +29 -22
- package/avatar/avatar.min.js +1 -1
- package/avatar/package.json +2 -1
- package/avatargroup/avatargroup.cjs.js +18 -7
- package/avatargroup/avatargroup.cjs.min.js +1 -1
- package/avatargroup/avatargroup.d.ts +33 -1
- package/avatargroup/avatargroup.esm.js +18 -7
- package/avatargroup/avatargroup.esm.min.js +1 -1
- package/avatargroup/avatargroup.js +18 -7
- package/avatargroup/avatargroup.min.js +1 -1
- package/avatargroup/package.json +2 -1
- package/badge/badge.cjs.js +21 -10
- package/badge/badge.cjs.min.js +1 -1
- package/badge/badge.d.ts +48 -8
- package/badge/badge.esm.js +21 -10
- package/badge/badge.esm.min.js +1 -1
- package/badge/badge.js +21 -10
- package/badge/badge.min.js +1 -1
- package/badge/package.json +2 -1
- package/blockui/blockui.cjs.js +30 -23
- package/blockui/blockui.cjs.min.js +1 -1
- package/blockui/blockui.d.ts +71 -10
- package/blockui/blockui.esm.js +31 -24
- package/blockui/blockui.esm.min.js +1 -1
- package/blockui/blockui.js +30 -23
- package/blockui/blockui.min.js +1 -1
- package/blockui/package.json +2 -1
- package/breadcrumb/breadcrumb.cjs.js +21 -10
- package/breadcrumb/breadcrumb.cjs.min.js +1 -1
- package/breadcrumb/breadcrumb.d.ts +41 -3
- package/breadcrumb/breadcrumb.esm.js +21 -10
- package/breadcrumb/breadcrumb.esm.min.js +1 -1
- package/breadcrumb/breadcrumb.js +21 -10
- package/breadcrumb/breadcrumb.min.js +1 -1
- package/breadcrumb/package.json +2 -1
- package/button/button.cjs.js +27 -16
- package/button/button.cjs.min.js +1 -1
- package/button/button.d.ts +67 -15
- package/button/button.esm.js +27 -16
- package/button/button.esm.min.js +1 -1
- package/button/button.js +27 -16
- package/button/button.min.js +1 -1
- package/button/package.json +2 -1
- package/calendar/calendar.cjs.js +120 -100
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.d.ts +585 -112
- package/calendar/calendar.esm.js +121 -101
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +120 -100
- package/calendar/calendar.min.js +1 -1
- package/calendar/package.json +2 -1
- package/card/card.cjs.js +23 -12
- package/card/card.cjs.min.js +1 -1
- package/card/card.d.ts +45 -7
- package/card/card.esm.js +23 -12
- package/card/card.esm.min.js +1 -1
- package/card/card.js +23 -12
- package/card/card.min.js +1 -1
- package/card/package.json +2 -1
- package/carousel/carousel.cjs.js +39 -32
- package/carousel/carousel.cjs.min.js +1 -1
- package/carousel/carousel.d.ts +138 -22
- package/carousel/carousel.esm.js +40 -33
- package/carousel/carousel.esm.min.js +1 -1
- package/carousel/carousel.js +39 -32
- package/carousel/carousel.min.js +1 -1
- package/carousel/package.json +2 -1
- package/cascadeselect/cascadeselect.cjs.js +53 -40
- package/cascadeselect/cascadeselect.cjs.min.js +1 -1
- package/cascadeselect/cascadeselect.d.ts +177 -29
- package/cascadeselect/cascadeselect.esm.js +54 -41
- package/cascadeselect/cascadeselect.esm.min.js +1 -1
- package/cascadeselect/cascadeselect.js +53 -40
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/cascadeselect/package.json +2 -1
- package/chart/chart.cjs.js +25 -14
- package/chart/chart.cjs.min.js +1 -1
- package/chart/chart.d.ts +88 -10
- package/chart/chart.esm.js +25 -14
- package/chart/chart.esm.min.js +1 -1
- package/chart/chart.js +25 -14
- package/chart/chart.min.js +1 -1
- package/chart/package.json +2 -1
- package/checkbox/checkbox.cjs.js +43 -32
- package/checkbox/checkbox.cjs.min.js +1 -1
- package/checkbox/checkbox.d.ts +137 -33
- package/checkbox/checkbox.esm.js +43 -32
- package/checkbox/checkbox.esm.min.js +1 -1
- package/checkbox/checkbox.js +43 -32
- package/checkbox/checkbox.min.js +1 -1
- package/checkbox/package.json +2 -1
- package/chip/chip.cjs.js +29 -22
- package/chip/chip.cjs.min.js +1 -1
- package/chip/chip.d.ts +75 -7
- package/chip/chip.esm.js +29 -22
- package/chip/chip.esm.min.js +1 -1
- package/chip/chip.js +29 -22
- package/chip/chip.min.js +1 -1
- package/chip/package.json +2 -1
- package/chips/chips.cjs.js +55 -45
- package/chips/chips.cjs.min.js +1 -1
- package/chips/chips.d.ts +188 -36
- package/chips/chips.esm.js +55 -45
- package/chips/chips.esm.min.js +1 -1
- package/chips/chips.js +55 -45
- package/chips/chips.min.js +1 -1
- package/chips/package.json +2 -1
- package/colorpicker/colorpicker.cjs.js +45 -33
- package/colorpicker/colorpicker.cjs.min.js +1 -1
- package/colorpicker/colorpicker.d.ts +148 -31
- package/colorpicker/colorpicker.esm.js +46 -34
- package/colorpicker/colorpicker.esm.min.js +1 -1
- package/colorpicker/colorpicker.js +45 -33
- package/colorpicker/colorpicker.min.js +1 -1
- package/colorpicker/package.json +2 -1
- package/column/column.cjs.js +0 -79
- package/column/column.cjs.min.js +1 -1
- package/column/column.d.ts +736 -134
- package/column/column.esm.js +0 -79
- package/column/column.esm.min.js +1 -1
- package/column/column.js +6 -85
- package/column/column.min.js +1 -1
- package/column/package.json +2 -1
- package/columngroup/columngroup.cjs.js +0 -3
- package/columngroup/columngroup.cjs.min.js +1 -1
- package/columngroup/columngroup.d.ts +30 -1
- package/columngroup/columngroup.esm.js +0 -3
- package/columngroup/columngroup.esm.min.js +1 -1
- package/columngroup/columngroup.js +6 -9
- package/columngroup/columngroup.min.js +1 -1
- package/columngroup/package.json +2 -1
- package/confirmdialog/confirmdialog.cjs.js +35 -28
- package/confirmdialog/confirmdialog.cjs.min.js +1 -1
- package/confirmdialog/confirmdialog.d.ts +142 -18
- package/confirmdialog/confirmdialog.esm.js +36 -29
- package/confirmdialog/confirmdialog.esm.min.js +1 -1
- package/confirmdialog/confirmdialog.js +35 -28
- package/confirmdialog/confirmdialog.min.js +1 -1
- package/confirmdialog/package.json +2 -1
- package/confirmpopup/confirmpopup.cjs.js +44 -34
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.d.ts +165 -22
- package/confirmpopup/confirmpopup.esm.js +45 -35
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.js +44 -34
- package/confirmpopup/confirmpopup.min.js +1 -1
- package/confirmpopup/package.json +2 -1
- package/contextmenu/contextmenu.cjs.js +33 -23
- package/contextmenu/contextmenu.cjs.min.js +1 -1
- package/contextmenu/contextmenu.d.ts +80 -12
- package/contextmenu/contextmenu.esm.js +34 -24
- package/contextmenu/contextmenu.esm.min.js +1 -1
- package/contextmenu/contextmenu.js +33 -23
- package/contextmenu/contextmenu.min.js +1 -1
- package/contextmenu/package.json +2 -1
- package/core/core.js +1745 -1085
- package/core/core.min.js +18 -18
- package/csstransition/csstransition.cjs.js +15 -4
- package/csstransition/csstransition.cjs.min.js +1 -1
- package/csstransition/csstransition.d.ts +31 -1
- package/csstransition/csstransition.esm.js +15 -4
- package/csstransition/csstransition.esm.min.js +1 -1
- package/csstransition/csstransition.js +15 -4
- package/csstransition/csstransition.min.js +1 -1
- package/csstransition/package.json +2 -1
- package/datascroller/datascroller.cjs.js +33 -26
- package/datascroller/datascroller.cjs.min.js +1 -1
- package/datascroller/datascroller.d.ts +102 -16
- package/datascroller/datascroller.esm.js +33 -26
- package/datascroller/datascroller.esm.min.js +1 -1
- package/datascroller/datascroller.js +33 -26
- package/datascroller/datascroller.min.js +1 -1
- package/datascroller/package.json +2 -1
- package/datatable/datatable.cjs.js +387 -233
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.d.ts +1270 -227
- package/datatable/datatable.esm.js +388 -234
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +388 -234
- package/datatable/datatable.min.js +1 -1
- package/datatable/package.json +2 -1
- package/dataview/dataview.cjs.js +69 -52
- package/dataview/dataview.cjs.min.js +1 -1
- package/dataview/dataview.d.ts +222 -43
- package/dataview/dataview.esm.js +69 -52
- package/dataview/dataview.esm.min.js +1 -1
- package/dataview/dataview.js +69 -52
- package/dataview/dataview.min.js +1 -1
- package/dataview/package.json +2 -1
- package/deferredcontent/deferredcontent.cjs.js +19 -12
- package/deferredcontent/deferredcontent.cjs.min.js +1 -1
- package/deferredcontent/deferredcontent.d.ts +37 -1
- package/deferredcontent/deferredcontent.esm.js +19 -12
- package/deferredcontent/deferredcontent.esm.min.js +1 -1
- package/deferredcontent/deferredcontent.js +19 -12
- package/deferredcontent/deferredcontent.min.js +1 -1
- package/deferredcontent/package.json +2 -1
- package/dialog/dialog.cjs.js +76 -75
- package/dialog/dialog.cjs.min.js +1 -1
- package/dialog/dialog.d.ts +282 -51
- package/dialog/dialog.esm.js +77 -76
- package/dialog/dialog.esm.min.js +1 -1
- package/dialog/dialog.js +76 -75
- package/dialog/dialog.min.css +1 -1
- package/dialog/dialog.min.js +1 -1
- package/dialog/package.json +2 -1
- package/divider/divider.cjs.js +21 -10
- package/divider/divider.cjs.min.js +1 -1
- package/divider/divider.d.ts +47 -10
- package/divider/divider.esm.js +21 -10
- package/divider/divider.esm.min.js +1 -1
- package/divider/divider.js +21 -10
- package/divider/divider.min.js +1 -1
- package/divider/package.json +2 -1
- package/dock/dock.cjs.js +26 -19
- package/dock/dock.cjs.min.js +1 -1
- package/dock/dock.d.ts +68 -12
- package/dock/dock.esm.js +26 -19
- package/dock/dock.esm.min.js +1 -1
- package/dock/dock.js +26 -19
- package/dock/dock.min.js +1 -1
- package/dock/package.json +2 -1
- package/dropdown/dropdown.cjs.js +103 -80
- package/dropdown/dropdown.cjs.min.js +1 -1
- package/dropdown/dropdown.d.ts +337 -83
- package/dropdown/dropdown.esm.js +104 -81
- package/dropdown/dropdown.esm.min.js +1 -1
- package/dropdown/dropdown.js +103 -80
- package/dropdown/dropdown.min.js +1 -1
- package/dropdown/package.json +2 -1
- package/editor/editor.cjs.js +31 -20
- package/editor/editor.cjs.min.js +1 -1
- package/editor/editor.d.ts +129 -12
- package/editor/editor.esm.js +32 -21
- package/editor/editor.esm.min.js +1 -1
- package/editor/editor.js +31 -20
- package/editor/editor.min.js +1 -1
- package/editor/package.json +2 -1
- package/fieldset/fieldset.cjs.js +29 -22
- package/fieldset/fieldset.cjs.min.js +1 -1
- package/fieldset/fieldset.d.ts +85 -7
- package/fieldset/fieldset.esm.js +30 -23
- package/fieldset/fieldset.esm.min.js +1 -1
- package/fieldset/fieldset.js +29 -22
- package/fieldset/fieldset.min.js +1 -1
- package/fieldset/package.json +2 -1
- package/fileupload/fileupload.cjs.js +87 -76
- package/fileupload/fileupload.cjs.min.js +1 -1
- package/fileupload/fileupload.d.ts +425 -62
- package/fileupload/fileupload.esm.js +87 -76
- package/fileupload/fileupload.esm.min.js +1 -1
- package/fileupload/fileupload.js +87 -76
- package/fileupload/fileupload.min.js +1 -1
- package/fileupload/package.json +2 -1
- package/galleria/galleria.cjs.js +51 -42
- package/galleria/galleria.cjs.min.js +1 -1
- package/galleria/galleria.d.ts +198 -30
- package/galleria/galleria.esm.js +52 -43
- package/galleria/galleria.esm.min.js +1 -1
- package/galleria/galleria.js +51 -42
- package/galleria/galleria.min.js +1 -1
- package/galleria/package.json +2 -1
- package/hooks/hooks.cjs.js +578 -148
- package/hooks/hooks.cjs.min.js +1 -1
- package/hooks/hooks.d.ts +194 -6
- package/hooks/hooks.esm.js +558 -135
- package/hooks/hooks.esm.min.js +1 -1
- package/hooks/hooks.js +869 -439
- package/hooks/hooks.min.js +1 -1
- package/hooks/package.json +2 -1
- package/image/image.cjs.js +32 -25
- package/image/image.cjs.min.js +1 -1
- package/image/image.d.ts +91 -11
- package/image/image.esm.js +33 -26
- package/image/image.esm.min.js +1 -1
- package/image/image.js +32 -25
- package/image/image.min.js +1 -1
- package/image/package.json +2 -1
- package/inplace/inplace.cjs.js +51 -37
- package/inplace/inplace.cjs.min.js +1 -1
- package/inplace/inplace.d.ts +101 -9
- package/inplace/inplace.esm.js +51 -37
- package/inplace/inplace.esm.min.js +1 -1
- package/inplace/inplace.js +51 -37
- package/inplace/inplace.min.js +1 -1
- package/inplace/package.json +2 -1
- package/inputmask/inputmask.cjs.js +50 -46
- package/inputmask/inputmask.cjs.min.js +1 -1
- package/inputmask/inputmask.d.ts +119 -27
- package/inputmask/inputmask.esm.js +51 -47
- package/inputmask/inputmask.esm.min.js +1 -1
- package/inputmask/inputmask.js +50 -46
- package/inputmask/inputmask.min.js +1 -1
- package/inputmask/package.json +2 -1
- package/inputnumber/inputnumber.cjs.js +78 -93
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.d.ts +265 -57
- package/inputnumber/inputnumber.esm.js +78 -93
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.js +78 -93
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputnumber/package.json +2 -1
- package/inputswitch/inputswitch.cjs.js +38 -28
- package/inputswitch/inputswitch.cjs.min.js +1 -1
- package/inputswitch/inputswitch.d.ts +118 -27
- package/inputswitch/inputswitch.esm.js +38 -28
- package/inputswitch/inputswitch.esm.min.js +1 -1
- package/inputswitch/inputswitch.js +38 -28
- package/inputswitch/inputswitch.min.js +1 -1
- package/inputswitch/package.json +2 -1
- package/inputtext/inputtext.cjs.js +23 -12
- package/inputtext/inputtext.cjs.min.js +1 -1
- package/inputtext/inputtext.d.ts +57 -6
- package/inputtext/inputtext.esm.js +23 -12
- package/inputtext/inputtext.esm.min.js +1 -1
- package/inputtext/inputtext.js +23 -12
- package/inputtext/inputtext.min.js +1 -1
- package/inputtext/package.json +2 -1
- package/inputtextarea/inputtextarea.cjs.js +27 -16
- package/inputtextarea/inputtextarea.cjs.min.js +1 -1
- package/inputtextarea/inputtextarea.d.ts +52 -6
- package/inputtextarea/inputtextarea.esm.js +27 -16
- package/inputtextarea/inputtextarea.esm.min.js +1 -1
- package/inputtextarea/inputtextarea.js +27 -16
- package/inputtextarea/inputtextarea.min.js +1 -1
- package/inputtextarea/package.json +2 -1
- package/keyfilter/keyfilter.cjs.js +1 -3
- package/keyfilter/keyfilter.esm.js +1 -3
- package/keyfilter/keyfilter.js +1 -3
- package/keyfilter/keyfilteroptions.d.ts +15 -0
- package/keyfilter/package.json +2 -1
- package/knob/knob.cjs.js +36 -29
- package/knob/knob.cjs.min.js +1 -1
- package/knob/knob.d.ts +127 -20
- package/knob/knob.esm.js +36 -29
- package/knob/knob.esm.min.js +1 -1
- package/knob/knob.js +36 -29
- package/knob/knob.min.js +1 -1
- package/knob/package.json +2 -1
- package/listbox/listbox.cjs.js +56 -46
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.d.ts +270 -48
- package/listbox/listbox.esm.js +56 -46
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.js +56 -46
- package/listbox/listbox.min.js +1 -1
- package/listbox/package.json +2 -1
- package/megamenu/megamenu.cjs.js +25 -18
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.d.ts +50 -11
- package/megamenu/megamenu.esm.js +26 -19
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +25 -18
- package/megamenu/megamenu.min.js +1 -1
- package/megamenu/package.json +2 -1
- package/mention/mention.cjs.js +74 -53
- package/mention/mention.cjs.min.js +1 -1
- package/mention/mention.d.ts +186 -32
- package/mention/mention.esm.js +74 -53
- package/mention/mention.esm.min.js +1 -1
- package/mention/mention.js +74 -53
- package/mention/mention.min.js +1 -1
- package/mention/package.json +2 -1
- package/menu/menu.cjs.js +32 -23
- package/menu/menu.cjs.min.js +1 -1
- package/menu/menu.d.ts +89 -12
- package/menu/menu.esm.js +33 -24
- package/menu/menu.esm.min.js +1 -1
- package/menu/menu.js +32 -23
- package/menu/menu.min.js +1 -1
- package/menu/package.json +2 -1
- package/menubar/menubar.cjs.js +24 -17
- package/menubar/menubar.cjs.min.js +1 -1
- package/menubar/menubar.d.ts +53 -8
- package/menubar/menubar.esm.js +25 -18
- package/menubar/menubar.esm.min.js +1 -1
- package/menubar/menubar.js +24 -17
- package/menubar/menubar.min.js +1 -1
- package/menubar/package.json +2 -1
- package/menuitem/menuitem.d.ts +114 -19
- package/menuitem/package.json +2 -1
- package/message/message.cjs.js +23 -12
- package/message/message.cjs.min.js +1 -1
- package/message/message.d.ts +50 -11
- package/message/message.esm.js +23 -12
- package/message/message.esm.min.js +1 -1
- package/message/message.js +23 -12
- package/message/message.min.js +1 -1
- package/message/package.json +2 -1
- package/messages/messages.cjs.js +24 -17
- package/messages/messages.cjs.min.js +1 -1
- package/messages/messages.d.ts +91 -11
- package/messages/messages.esm.js +25 -18
- package/messages/messages.esm.min.js +1 -1
- package/messages/messages.js +24 -17
- package/messages/messages.min.js +1 -1
- package/messages/package.json +2 -1
- package/multiselect/multiselect.cjs.js +127 -100
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.d.ts +429 -82
- package/multiselect/multiselect.esm.js +127 -100
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +127 -100
- package/multiselect/multiselect.min.js +1 -1
- package/multiselect/package.json +2 -1
- package/multistatecheckbox/multistatecheckbox.cjs.js +42 -28
- package/multistatecheckbox/multistatecheckbox.cjs.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.d.ts +161 -22
- package/multistatecheckbox/multistatecheckbox.esm.js +42 -28
- package/multistatecheckbox/multistatecheckbox.esm.min.js +1 -1
- package/multistatecheckbox/multistatecheckbox.js +42 -28
- package/multistatecheckbox/multistatecheckbox.min.js +1 -1
- package/multistatecheckbox/package.json +2 -1
- package/orderlist/orderlist.cjs.js +37 -30
- package/orderlist/orderlist.cjs.min.js +1 -1
- package/orderlist/orderlist.d.ts +113 -16
- package/orderlist/orderlist.esm.js +37 -30
- package/orderlist/orderlist.esm.min.js +1 -1
- package/orderlist/orderlist.js +38 -31
- package/orderlist/orderlist.min.js +1 -1
- package/orderlist/package.json +2 -1
- package/organizationchart/organizationchart.cjs.js +28 -21
- package/organizationchart/organizationchart.cjs.min.js +1 -1
- package/organizationchart/organizationchart.d.ts +107 -16
- package/organizationchart/organizationchart.esm.js +29 -22
- package/organizationchart/organizationchart.esm.min.js +1 -1
- package/organizationchart/organizationchart.js +28 -21
- package/organizationchart/organizationchart.min.js +1 -1
- package/organizationchart/package.json +2 -1
- package/overlaypanel/overlaypanel.cjs.js +33 -23
- package/overlaypanel/overlaypanel.cjs.min.js +1 -1
- package/overlaypanel/overlaypanel.d.ts +89 -15
- package/overlaypanel/overlaypanel.esm.js +34 -24
- package/overlaypanel/overlaypanel.esm.min.js +1 -1
- package/overlaypanel/overlaypanel.js +33 -23
- package/overlaypanel/overlaypanel.min.js +1 -1
- package/overlaypanel/package.json +2 -1
- package/overlayservice/overlayservice.d.ts +52 -7
- package/overlayservice/package.json +2 -1
- package/package.json +2 -2
- package/paginator/package.json +2 -1
- package/paginator/paginator.cjs.js +184 -97
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.d.ts +409 -44
- package/paginator/paginator.esm.js +184 -97
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +184 -97
- package/paginator/paginator.min.js +1 -1
- package/panel/package.json +2 -1
- package/panel/panel.cjs.js +32 -25
- package/panel/panel.cjs.min.js +1 -1
- package/panel/panel.d.ts +141 -15
- package/panel/panel.esm.js +32 -25
- package/panel/panel.esm.min.js +1 -1
- package/panel/panel.js +32 -25
- package/panel/panel.min.js +1 -1
- package/panelmenu/package.json +2 -1
- package/panelmenu/panelmenu.cjs.js +24 -17
- package/panelmenu/panelmenu.cjs.min.js +1 -1
- package/panelmenu/panelmenu.d.ts +47 -5
- package/panelmenu/panelmenu.esm.js +25 -18
- package/panelmenu/panelmenu.esm.min.js +1 -1
- package/panelmenu/panelmenu.js +24 -17
- package/panelmenu/panelmenu.min.js +1 -1
- package/password/package.json +2 -1
- package/password/password.cjs.js +53 -40
- package/password/password.cjs.min.js +1 -1
- package/password/password.d.ts +176 -36
- package/password/password.esm.js +53 -40
- package/password/password.esm.min.js +1 -1
- package/password/password.js +53 -40
- package/password/password.min.css +1 -1
- package/password/password.min.js +1 -1
- package/picklist/package.json +2 -1
- package/picklist/picklist.cjs.js +57 -50
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.d.ts +272 -46
- package/picklist/picklist.esm.js +58 -51
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +57 -50
- package/picklist/picklist.min.js +1 -1
- package/portal/package.json +2 -1
- package/portal/portal.cjs.js +22 -15
- package/portal/portal.cjs.min.js +1 -1
- package/portal/portal.esm.js +23 -16
- package/portal/portal.esm.min.js +1 -1
- package/portal/portal.js +22 -15
- package/portal/portal.min.js +1 -1
- package/primereact.all.cjs.js +4739 -3228
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +4733 -3227
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +4739 -3228
- package/primereact.all.min.js +1 -1
- package/progressbar/package.json +2 -1
- package/progressbar/progressbar.cjs.js +26 -15
- package/progressbar/progressbar.cjs.min.js +1 -1
- package/progressbar/progressbar.d.ts +60 -11
- package/progressbar/progressbar.esm.js +26 -15
- package/progressbar/progressbar.esm.min.js +1 -1
- package/progressbar/progressbar.js +26 -15
- package/progressbar/progressbar.min.js +1 -1
- package/progressspinner/package.json +2 -1
- package/progressspinner/progressspinner.cjs.js +22 -11
- package/progressspinner/progressspinner.cjs.min.js +1 -1
- package/progressspinner/progressspinner.d.ts +47 -4
- package/progressspinner/progressspinner.esm.js +22 -11
- package/progressspinner/progressspinner.esm.min.js +1 -1
- package/progressspinner/progressspinner.js +22 -11
- package/progressspinner/progressspinner.min.js +1 -1
- package/radiobutton/package.json +2 -1
- package/radiobutton/radiobutton.cjs.js +37 -26
- package/radiobutton/radiobutton.cjs.min.js +1 -1
- package/radiobutton/radiobutton.d.ts +99 -29
- package/radiobutton/radiobutton.esm.js +37 -26
- package/radiobutton/radiobutton.esm.min.js +1 -1
- package/radiobutton/radiobutton.js +37 -26
- package/radiobutton/radiobutton.min.js +1 -1
- package/rating/package.json +2 -1
- package/rating/rating.cjs.js +33 -22
- package/rating/rating.cjs.min.js +1 -1
- package/rating/rating.d.ts +101 -24
- package/rating/rating.esm.js +33 -22
- package/rating/rating.esm.min.js +1 -1
- package/rating/rating.js +33 -22
- package/rating/rating.min.js +1 -1
- package/resources/primereact.css +517 -506
- package/resources/primereact.min.css +1 -1
- package/resources/themes/arya-blue/theme.css +7 -9
- package/resources/themes/arya-green/theme.css +6 -10
- package/resources/themes/arya-orange/theme.css +6 -9
- package/resources/themes/arya-purple/theme.css +6 -9
- package/resources/themes/bootstrap4-dark-blue/theme.css +7 -10
- package/resources/themes/bootstrap4-dark-purple/theme.css +7 -10
- package/resources/themes/bootstrap4-light-blue/theme.css +7 -10
- package/resources/themes/bootstrap4-light-purple/theme.css +7 -11
- package/resources/themes/fluent-light/theme.css +7 -11
- package/resources/themes/lara-dark-blue/theme.css +6 -9
- package/resources/themes/lara-dark-indigo/theme.css +6 -10
- package/resources/themes/lara-dark-purple/theme.css +6 -9
- package/resources/themes/lara-dark-teal/theme.css +6 -10
- package/resources/themes/lara-light-blue/theme.css +6 -9
- package/resources/themes/lara-light-indigo/theme.css +6 -9
- package/resources/themes/lara-light-purple/theme.css +6 -9
- package/resources/themes/lara-light-teal/theme.css +6 -9
- package/resources/themes/luna-amber/theme.css +8 -10
- package/resources/themes/luna-blue/theme.css +7 -10
- package/resources/themes/luna-green/theme.css +8 -10
- package/resources/themes/luna-pink/theme.css +7 -10
- package/resources/themes/md-dark-deeppurple/theme.css +7 -10
- package/resources/themes/md-dark-indigo/theme.css +8 -10
- package/resources/themes/md-light-deeppurple/theme.css +8 -10
- package/resources/themes/md-light-indigo/theme.css +8 -10
- package/resources/themes/mdc-dark-deeppurple/theme.css +8 -10
- package/resources/themes/mdc-dark-indigo/theme.css +7 -10
- package/resources/themes/mdc-light-deeppurple/theme.css +8 -10
- package/resources/themes/mdc-light-indigo/theme.css +7 -10
- package/resources/themes/mira/fonts/Inter-Bold.woff +0 -0
- package/resources/themes/mira/fonts/Inter-Bold.woff2 +0 -0
- package/resources/themes/mira/fonts/Inter-Medium.woff +0 -0
- package/resources/themes/mira/fonts/Inter-Medium.woff2 +0 -0
- package/resources/themes/mira/fonts/Inter-Regular.woff +0 -0
- package/resources/themes/mira/fonts/Inter-Regular.woff2 +0 -0
- package/resources/themes/mira/fonts/Inter-SemiBold.woff +0 -0
- package/resources/themes/mira/fonts/Inter-SemiBold.woff2 +0 -0
- package/resources/themes/mira/theme.css +6239 -0
- package/resources/themes/nano/theme.css +6011 -0
- package/resources/themes/nova/theme.css +7 -10
- package/resources/themes/nova-accent/theme.css +8 -10
- package/resources/themes/nova-alt/theme.css +7 -10
- package/resources/themes/rhea/theme.css +8 -10
- package/resources/themes/saga-blue/theme.css +7 -10
- package/resources/themes/saga-green/theme.css +8 -10
- package/resources/themes/saga-orange/theme.css +8 -10
- package/resources/themes/saga-purple/theme.css +8 -10
- package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-300.woff +0 -0
- package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-300.woff2 +0 -0
- package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-700.woff +0 -0
- package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-700.woff2 +0 -0
- package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-regular.woff +0 -0
- package/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-regular.woff2 +0 -0
- package/resources/themes/soho-dark/theme.css +6004 -0
- package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-300.woff +0 -0
- package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-300.woff2 +0 -0
- package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-700.woff +0 -0
- package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-700.woff2 +0 -0
- package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-regular.woff +0 -0
- package/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-regular.woff2 +0 -0
- package/resources/themes/soho-light/theme.css +6058 -0
- package/resources/themes/vela-blue/theme.css +7 -10
- package/resources/themes/vela-green/theme.css +7 -10
- package/resources/themes/vela-orange/theme.css +7 -10
- package/resources/themes/vela-purple/theme.css +8 -10
- package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-300.woff +0 -0
- package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-300.woff2 +0 -0
- package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-600.woff +0 -0
- package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-600.woff2 +0 -0
- package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-700.woff +0 -0
- package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-700.woff2 +0 -0
- package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-regular.woff +0 -0
- package/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-regular.woff2 +0 -0
- package/resources/themes/viva-dark/theme.css +6166 -0
- package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-300.woff +0 -0
- package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-300.woff2 +0 -0
- package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-600.woff +0 -0
- package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-600.woff2 +0 -0
- package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-700.woff +0 -0
- package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-700.woff2 +0 -0
- package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-regular.woff +0 -0
- package/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-regular.woff2 +0 -0
- package/resources/themes/viva-light/theme.css +6166 -0
- package/ripple/package.json +2 -1
- package/ripple/ripple.cjs.js +0 -3
- package/ripple/ripple.cjs.min.js +1 -1
- package/ripple/ripple.d.ts +29 -1
- package/ripple/ripple.esm.js +0 -3
- package/ripple/ripple.esm.min.js +1 -1
- package/ripple/ripple.js +0 -3
- package/ripple/ripple.min.js +1 -1
- package/row/package.json +2 -1
- package/row/row.cjs.js +21 -7
- package/row/row.cjs.min.js +1 -1
- package/row/row.d.ts +37 -3
- package/row/row.esm.js +21 -7
- package/row/row.esm.min.js +1 -1
- package/row/row.js +21 -7
- package/row/row.min.js +1 -1
- package/scrollpanel/package.json +2 -1
- package/scrollpanel/scrollpanel.cjs.js +19 -8
- package/scrollpanel/scrollpanel.cjs.min.js +1 -1
- package/scrollpanel/scrollpanel.d.ts +45 -1
- package/scrollpanel/scrollpanel.esm.js +19 -8
- package/scrollpanel/scrollpanel.esm.min.js +1 -1
- package/scrollpanel/scrollpanel.js +19 -8
- package/scrollpanel/scrollpanel.min.js +1 -1
- package/scrolltop/package.json +2 -1
- package/scrolltop/scrolltop.cjs.js +27 -20
- package/scrolltop/scrolltop.cjs.min.js +1 -1
- package/scrolltop/scrolltop.d.ts +70 -10
- package/scrolltop/scrolltop.esm.js +28 -21
- package/scrolltop/scrolltop.esm.min.js +1 -1
- package/scrolltop/scrolltop.js +27 -20
- package/scrolltop/scrolltop.min.js +1 -1
- package/selectbutton/package.json +2 -1
- package/selectbutton/selectbutton.cjs.js +38 -28
- package/selectbutton/selectbutton.cjs.min.js +1 -1
- package/selectbutton/selectbutton.d.ts +111 -32
- package/selectbutton/selectbutton.esm.js +39 -29
- package/selectbutton/selectbutton.esm.min.js +1 -1
- package/selectbutton/selectbutton.js +38 -28
- package/selectbutton/selectbutton.min.js +1 -1
- package/selectitem/package.json +2 -1
- package/selectitem/selectitem.d.ts +34 -0
- package/sidebar/package.json +2 -1
- package/sidebar/sidebar.cjs.js +51 -32
- package/sidebar/sidebar.cjs.min.js +1 -1
- package/sidebar/sidebar.d.ts +120 -22
- package/sidebar/sidebar.esm.js +52 -33
- package/sidebar/sidebar.esm.min.js +1 -1
- package/sidebar/sidebar.js +51 -32
- package/sidebar/sidebar.min.js +1 -1
- package/skeleton/package.json +2 -1
- package/skeleton/skeleton.cjs.js +24 -13
- package/skeleton/skeleton.cjs.min.js +1 -1
- package/skeleton/skeleton.d.ts +61 -11
- package/skeleton/skeleton.esm.js +24 -13
- package/skeleton/skeleton.esm.min.js +1 -1
- package/skeleton/skeleton.js +24 -13
- package/skeleton/skeleton.min.js +1 -1
- package/slidemenu/package.json +2 -1
- package/slidemenu/slidemenu.cjs.js +35 -28
- package/slidemenu/slidemenu.cjs.min.js +1 -1
- package/slidemenu/slidemenu.d.ts +132 -18
- package/slidemenu/slidemenu.esm.js +36 -29
- package/slidemenu/slidemenu.esm.min.js +1 -1
- package/slidemenu/slidemenu.js +35 -28
- package/slidemenu/slidemenu.min.js +1 -1
- package/slider/package.json +2 -1
- package/slider/slider.cjs.js +31 -24
- package/slider/slider.cjs.min.js +1 -1
- package/slider/slider.d.ts +101 -18
- package/slider/slider.esm.js +31 -24
- package/slider/slider.esm.min.js +1 -1
- package/slider/slider.js +31 -24
- package/slider/slider.min.js +1 -1
- package/speeddial/package.json +2 -1
- package/speeddial/speeddial.cjs.js +43 -36
- package/speeddial/speeddial.cjs.min.js +1 -1
- package/speeddial/speeddial.d.ts +149 -20
- package/speeddial/speeddial.esm.js +44 -37
- package/speeddial/speeddial.esm.min.js +1 -1
- package/speeddial/speeddial.js +43 -36
- package/speeddial/speeddial.min.js +1 -1
- package/splitbutton/package.json +2 -1
- package/splitbutton/splitbutton.cjs.js +46 -38
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.d.ts +131 -23
- package/splitbutton/splitbutton.esm.js +47 -39
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +46 -38
- package/splitbutton/splitbutton.min.js +1 -1
- package/splitter/package.json +2 -1
- package/splitter/splitter.cjs.js +53 -33
- package/splitter/splitter.cjs.min.js +1 -1
- package/splitter/splitter.d.ts +98 -12
- package/splitter/splitter.esm.js +54 -34
- package/splitter/splitter.esm.min.js +1 -1
- package/splitter/splitter.js +53 -33
- package/splitter/splitter.min.js +1 -1
- package/steps/package.json +2 -1
- package/steps/steps.cjs.js +23 -12
- package/steps/steps.cjs.min.js +1 -1
- package/steps/steps.d.ts +67 -6
- package/steps/steps.esm.js +23 -12
- package/steps/steps.esm.min.js +1 -1
- package/steps/steps.js +23 -12
- package/steps/steps.min.js +1 -1
- package/styleclass/package.json +2 -1
- package/styleclass/styleclass.cjs.js +27 -20
- package/styleclass/styleclass.cjs.min.js +1 -1
- package/styleclass/styleclass.d.ts +77 -12
- package/styleclass/styleclass.esm.js +28 -21
- package/styleclass/styleclass.esm.min.js +1 -1
- package/styleclass/styleclass.js +27 -20
- package/styleclass/styleclass.min.js +1 -1
- package/tabmenu/package.json +2 -1
- package/tabmenu/tabmenu.cjs.js +29 -20
- package/tabmenu/tabmenu.cjs.min.js +1 -1
- package/tabmenu/tabmenu.d.ts +62 -5
- package/tabmenu/tabmenu.esm.js +29 -20
- package/tabmenu/tabmenu.esm.min.js +1 -1
- package/tabmenu/tabmenu.js +29 -20
- package/tabmenu/tabmenu.min.js +1 -1
- package/tabview/package.json +2 -1
- package/tabview/tabview.cjs.js +80 -58
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.d.ts +213 -27
- package/tabview/tabview.esm.js +81 -59
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +80 -58
- package/tabview/tabview.min.js +1 -1
- package/tag/package.json +2 -1
- package/tag/tag.cjs.js +22 -11
- package/tag/tag.cjs.min.js +1 -1
- package/tag/tag.d.ts +50 -6
- package/tag/tag.esm.js +22 -11
- package/tag/tag.esm.min.js +1 -1
- package/tag/tag.js +22 -11
- package/tag/tag.min.js +1 -1
- package/terminal/package.json +2 -1
- package/terminal/terminal.cjs.js +26 -16
- package/terminal/terminal.cjs.min.js +1 -1
- package/terminal/terminal.d.ts +45 -3
- package/terminal/terminal.esm.js +27 -17
- package/terminal/terminal.esm.min.js +1 -1
- package/terminal/terminal.js +26 -16
- package/terminal/terminal.min.js +1 -1
- package/terminalservice/package.json +2 -1
- package/terminalservice/terminalservice.d.ts +42 -4
- package/tieredmenu/package.json +2 -1
- package/tieredmenu/tieredmenu.cjs.js +32 -23
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.d.ts +77 -12
- package/tieredmenu/tieredmenu.esm.js +33 -24
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +32 -23
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/timeline/package.json +2 -1
- package/timeline/timeline.cjs.js +25 -18
- package/timeline/timeline.cjs.min.js +1 -1
- package/timeline/timeline.d.ts +62 -13
- package/timeline/timeline.esm.js +25 -18
- package/timeline/timeline.esm.min.js +1 -1
- package/timeline/timeline.js +25 -18
- package/timeline/timeline.min.js +1 -1
- package/toast/package.json +2 -1
- package/toast/toast.cjs.js +38 -26
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.d.ts +134 -27
- package/toast/toast.esm.js +40 -28
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +38 -26
- package/toast/toast.min.js +1 -1
- package/togglebutton/package.json +2 -1
- package/togglebutton/togglebutton.cjs.js +35 -21
- package/togglebutton/togglebutton.cjs.min.js +1 -1
- package/togglebutton/togglebutton.d.ts +122 -15
- package/togglebutton/togglebutton.esm.js +36 -22
- package/togglebutton/togglebutton.esm.min.js +1 -1
- package/togglebutton/togglebutton.js +35 -21
- package/togglebutton/togglebutton.min.js +1 -1
- package/toolbar/package.json +2 -1
- package/toolbar/toolbar.cjs.js +33 -16
- package/toolbar/toolbar.cjs.min.js +1 -1
- package/toolbar/toolbar.d.ts +55 -5
- package/toolbar/toolbar.esm.js +33 -16
- package/toolbar/toolbar.esm.min.js +1 -1
- package/toolbar/toolbar.js +33 -16
- package/toolbar/toolbar.min.css +1 -1
- package/toolbar/toolbar.min.js +1 -1
- package/tooltip/package.json +2 -1
- package/tooltip/tooltip.cjs.js +45 -38
- package/tooltip/tooltip.cjs.min.js +1 -1
- package/tooltip/tooltip.d.ts +73 -9
- package/tooltip/tooltip.esm.js +46 -39
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +45 -38
- package/tooltip/tooltip.min.js +1 -1
- package/tooltip/tooltipoptions.d.ts +350 -31
- package/tree/package.json +2 -1
- package/tree/tree.cjs.js +61 -54
- package/tree/tree.cjs.min.js +1 -1
- package/tree/tree.d.ts +435 -71
- package/tree/tree.esm.js +62 -55
- package/tree/tree.esm.min.js +1 -1
- package/tree/tree.js +61 -54
- package/tree/tree.min.js +1 -1
- package/treenode/package.json +2 -1
- package/treenode/treenode.d.ts +62 -13
- package/treeselect/package.json +2 -1
- package/treeselect/treeselect.cjs.js +69 -56
- package/treeselect/treeselect.cjs.min.js +1 -1
- package/treeselect/treeselect.d.ts +326 -77
- package/treeselect/treeselect.esm.js +70 -57
- package/treeselect/treeselect.esm.min.js +1 -1
- package/treeselect/treeselect.js +69 -56
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/package.json +2 -1
- package/treetable/treetable.cjs.js +290 -152
- package/treetable/treetable.cjs.min.js +1 -1
- package/treetable/treetable.d.ts +558 -112
- package/treetable/treetable.esm.js +291 -153
- package/treetable/treetable.esm.min.js +1 -1
- package/treetable/treetable.js +291 -153
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/package.json +2 -1
- package/tristatecheckbox/tristatecheckbox.cjs.js +31 -21
- package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.d.ts +72 -20
- package/tristatecheckbox/tristatecheckbox.esm.js +31 -21
- package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.js +31 -21
- package/tristatecheckbox/tristatecheckbox.min.js +1 -1
- package/ts-helpers.d.ts +24 -0
- package/utils/package.json +2 -1
- package/utils/utils.cjs.js +84 -37
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.d.ts +15 -1
- package/utils/utils.esm.js +84 -37
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +84 -37
- package/utils/utils.min.js +1 -1
- package/virtualscroller/package.json +2 -1
- package/virtualscroller/virtualscroller.cjs.js +44 -37
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.d.ts +351 -59
- package/virtualscroller/virtualscroller.esm.js +45 -38
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.js +44 -37
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +30 -6
- package/captcha/captcha.cjs.js +0 -141
- package/captcha/captcha.cjs.min.js +0 -1
- package/captcha/captcha.d.ts +0 -18
- package/captcha/captcha.esm.js +0 -117
- package/captcha/captcha.esm.min.js +0 -1
- package/captcha/captcha.js +0 -143
- package/captcha/captcha.min.js +0 -1
- package/captcha/package.json +0 -6
- package/gmap/gmap.cjs.js +0 -186
- package/gmap/gmap.cjs.min.js +0 -1
- package/gmap/gmap.d.ts +0 -26
- package/gmap/gmap.esm.js +0 -162
- package/gmap/gmap.esm.min.js +0 -1
- package/gmap/gmap.js +0 -188
- package/gmap/gmap.min.js +0 -1
- package/gmap/package.json +0 -6
package/card/card.d.ts
CHANGED
|
@@ -1,13 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Card is a flexible container component.
|
|
4
|
+
*
|
|
5
|
+
* [Live Demo](https://www.primefaces.org/primereact/card/)
|
|
6
|
+
*
|
|
7
|
+
* @module card
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
1
10
|
import * as React from 'react';
|
|
2
11
|
|
|
3
|
-
|
|
4
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Defines valid properties in Card component. In addition to these, all properties of HTMLDivElement can be used in this component.
|
|
14
|
+
* @group Properties
|
|
15
|
+
*/
|
|
5
16
|
export interface CardProps extends Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, 'ref' | 'title'> {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
17
|
+
/**
|
|
18
|
+
* Header of the card.
|
|
19
|
+
*/
|
|
20
|
+
header?: React.ReactNode | ((props: CardProps) => React.ReactNode);
|
|
21
|
+
/**
|
|
22
|
+
* Footer of the card.
|
|
23
|
+
*/
|
|
24
|
+
footer?: React.ReactNode | ((props: CardProps) => React.ReactNode);
|
|
25
|
+
/**
|
|
26
|
+
* Title of the card.
|
|
27
|
+
*/
|
|
28
|
+
title?: React.ReactNode | ((props: CardProps) => React.ReactNode);
|
|
29
|
+
/**
|
|
30
|
+
* Secondary title of the card.
|
|
31
|
+
*/
|
|
32
|
+
subTitle?: React.ReactNode | ((props: CardProps) => React.ReactNode);
|
|
33
|
+
/**
|
|
34
|
+
* Used to get the child elements of the component.
|
|
35
|
+
* @readonly
|
|
36
|
+
*/
|
|
37
|
+
children?: React.ReactNode | undefined;
|
|
11
38
|
}
|
|
12
39
|
|
|
40
|
+
/**
|
|
41
|
+
* **PrimeReact - Card**
|
|
42
|
+
*
|
|
43
|
+
* _Card is a flexible container component._
|
|
44
|
+
*
|
|
45
|
+
* [Live Demo](https://www.primefaces.org/primereact/card/)
|
|
46
|
+
* --- ---
|
|
47
|
+
* 
|
|
48
|
+
*
|
|
49
|
+
* @group Component
|
|
50
|
+
*/
|
|
13
51
|
export declare class Card extends React.Component<CardProps, any> {}
|
package/card/card.esm.js
CHANGED
|
@@ -16,7 +16,28 @@ function _extends() {
|
|
|
16
16
|
return _extends.apply(this, arguments);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var CardBase = {
|
|
20
|
+
defaultProps: {
|
|
21
|
+
__TYPE: 'Card',
|
|
22
|
+
id: null,
|
|
23
|
+
header: null,
|
|
24
|
+
footer: null,
|
|
25
|
+
title: null,
|
|
26
|
+
subTitle: null,
|
|
27
|
+
style: null,
|
|
28
|
+
className: null,
|
|
29
|
+
children: undefined
|
|
30
|
+
},
|
|
31
|
+
getProps: function getProps(props) {
|
|
32
|
+
return ObjectUtils.getMergedProps(props, CardBase.defaultProps);
|
|
33
|
+
},
|
|
34
|
+
getOtherProps: function getOtherProps(props) {
|
|
35
|
+
return ObjectUtils.getDiffProps(props, CardBase.defaultProps);
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
var Card = /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
40
|
+
var props = CardBase.getProps(inProps);
|
|
20
41
|
var elementRef = React.useRef(ref);
|
|
21
42
|
var createHeader = function createHeader() {
|
|
22
43
|
if (props.header) {
|
|
@@ -46,7 +67,7 @@ var Card = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
46
67
|
React.useEffect(function () {
|
|
47
68
|
ObjectUtils.combinedRefs(elementRef, ref);
|
|
48
69
|
}, [elementRef, ref]);
|
|
49
|
-
var otherProps =
|
|
70
|
+
var otherProps = CardBase.getOtherProps(props);
|
|
50
71
|
var className = classNames('p-card p-component', props.className);
|
|
51
72
|
var header = createHeader();
|
|
52
73
|
var body = createBody();
|
|
@@ -58,15 +79,5 @@ var Card = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
58
79
|
}, otherProps), header, body);
|
|
59
80
|
});
|
|
60
81
|
Card.displayName = 'Card';
|
|
61
|
-
Card.defaultProps = {
|
|
62
|
-
__TYPE: 'Card',
|
|
63
|
-
id: null,
|
|
64
|
-
header: null,
|
|
65
|
-
footer: null,
|
|
66
|
-
title: null,
|
|
67
|
-
subTitle: null,
|
|
68
|
-
style: null,
|
|
69
|
-
className: null
|
|
70
|
-
};
|
|
71
82
|
|
|
72
83
|
export { Card };
|
package/card/card.esm.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";import{ObjectUtils as t,classNames as
|
|
1
|
+
import*as e from"react";import{ObjectUtils as t,classNames as r}from"primereact/utils";function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},l.apply(this,arguments)}var a={defaultProps:{__TYPE:"Card",id:null,header:null,footer:null,title:null,subTitle:null,style:null,className:null,children:void 0},getProps:function(e){return t.getMergedProps(e,a.defaultProps)},getOtherProps:function(e){return t.getDiffProps(e,a.defaultProps)}},n=e.forwardRef((function(n,s){var c=a.getProps(n),i=e.useRef(s);e.useEffect((function(){t.combinedRefs(i,s)}),[i,s]);var o,d,u,m,p=a.getOtherProps(c),f=r("p-card p-component",c.className),g=c.header?e.createElement("div",{className:"p-card-header"},t.getJSXElement(c.header,c)):null,v=(o=c.title&&e.createElement("div",{className:"p-card-title"},t.getJSXElement(c.title,c)),d=c.subTitle&&e.createElement("div",{className:"p-card-subtitle"},t.getJSXElement(c.subTitle,c)),u=c.children&&e.createElement("div",{className:"p-card-content"},c.children),m=c.footer&&e.createElement("div",{className:"p-card-footer"},t.getJSXElement(c.footer,c)),e.createElement("div",{className:"p-card-body"},o,d,u,m));return e.createElement("div",l({id:c.id,ref:i,className:f,style:c.style},p),g,v)}));n.displayName="Card";export{n as Card};
|
package/card/card.js
CHANGED
|
@@ -37,7 +37,28 @@ this.primereact.card = (function (exports, React, utils) {
|
|
|
37
37
|
return _extends.apply(this, arguments);
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
var
|
|
40
|
+
var CardBase = {
|
|
41
|
+
defaultProps: {
|
|
42
|
+
__TYPE: 'Card',
|
|
43
|
+
id: null,
|
|
44
|
+
header: null,
|
|
45
|
+
footer: null,
|
|
46
|
+
title: null,
|
|
47
|
+
subTitle: null,
|
|
48
|
+
style: null,
|
|
49
|
+
className: null,
|
|
50
|
+
children: undefined
|
|
51
|
+
},
|
|
52
|
+
getProps: function getProps(props) {
|
|
53
|
+
return utils.ObjectUtils.getMergedProps(props, CardBase.defaultProps);
|
|
54
|
+
},
|
|
55
|
+
getOtherProps: function getOtherProps(props) {
|
|
56
|
+
return utils.ObjectUtils.getDiffProps(props, CardBase.defaultProps);
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
var Card = /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
61
|
+
var props = CardBase.getProps(inProps);
|
|
41
62
|
var elementRef = React__namespace.useRef(ref);
|
|
42
63
|
var createHeader = function createHeader() {
|
|
43
64
|
if (props.header) {
|
|
@@ -67,7 +88,7 @@ this.primereact.card = (function (exports, React, utils) {
|
|
|
67
88
|
React__namespace.useEffect(function () {
|
|
68
89
|
utils.ObjectUtils.combinedRefs(elementRef, ref);
|
|
69
90
|
}, [elementRef, ref]);
|
|
70
|
-
var otherProps =
|
|
91
|
+
var otherProps = CardBase.getOtherProps(props);
|
|
71
92
|
var className = utils.classNames('p-card p-component', props.className);
|
|
72
93
|
var header = createHeader();
|
|
73
94
|
var body = createBody();
|
|
@@ -79,16 +100,6 @@ this.primereact.card = (function (exports, React, utils) {
|
|
|
79
100
|
}, otherProps), header, body);
|
|
80
101
|
});
|
|
81
102
|
Card.displayName = 'Card';
|
|
82
|
-
Card.defaultProps = {
|
|
83
|
-
__TYPE: 'Card',
|
|
84
|
-
id: null,
|
|
85
|
-
header: null,
|
|
86
|
-
footer: null,
|
|
87
|
-
title: null,
|
|
88
|
-
subTitle: null,
|
|
89
|
-
style: null,
|
|
90
|
-
className: null
|
|
91
|
-
};
|
|
92
103
|
|
|
93
104
|
exports.Card = Card;
|
|
94
105
|
|
package/card/card.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primereact=this.primereact||{},this.primereact.card=function(e,t,r){"use strict";function
|
|
1
|
+
this.primereact=this.primereact||{},this.primereact.card=function(e,t,r){"use strict";function l(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var l=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,l.get?l:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var a=l(t);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},c.apply(this,arguments)}var n={defaultProps:{__TYPE:"Card",id:null,header:null,footer:null,title:null,subTitle:null,style:null,className:null,children:void 0},getProps:function(e){return r.ObjectUtils.getMergedProps(e,n.defaultProps)},getOtherProps:function(e){return r.ObjectUtils.getDiffProps(e,n.defaultProps)}},s=a.forwardRef((function(e,t){var l=n.getProps(e),s=a.useRef(t);a.useEffect((function(){r.ObjectUtils.combinedRefs(s,t)}),[s,t]);var i,o,u,d,f=n.getOtherProps(l),p=r.classNames("p-card p-component",l.className),m=l.header?a.createElement("div",{className:"p-card-header"},r.ObjectUtils.getJSXElement(l.header,l)):null,b=(i=l.title&&a.createElement("div",{className:"p-card-title"},r.ObjectUtils.getJSXElement(l.title,l)),o=l.subTitle&&a.createElement("div",{className:"p-card-subtitle"},r.ObjectUtils.getJSXElement(l.subTitle,l)),u=l.children&&a.createElement("div",{className:"p-card-content"},l.children),d=l.footer&&a.createElement("div",{className:"p-card-footer"},r.ObjectUtils.getJSXElement(l.footer,l)),a.createElement("div",{className:"p-card-body"},i,o,u,d));return a.createElement("div",c({id:l.id,ref:s,className:p,style:l.style},f),m,b)}));return s.displayName="Card",e.Card=s,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.utils);
|
package/card/package.json
CHANGED
package/carousel/carousel.cjs.js
CHANGED
|
@@ -48,9 +48,7 @@ function _extends() {
|
|
|
48
48
|
|
|
49
49
|
function _arrayLikeToArray(arr, len) {
|
|
50
50
|
if (len == null || len > arr.length) len = arr.length;
|
|
51
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
52
|
-
arr2[i] = arr[i];
|
|
53
|
-
}
|
|
51
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
54
52
|
return arr2;
|
|
55
53
|
}
|
|
56
54
|
|
|
@@ -97,9 +95,7 @@ function _iterableToArrayLimit(arr, i) {
|
|
|
97
95
|
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
|
98
96
|
if (Object(_i) !== _i) return;
|
|
99
97
|
_n = !1;
|
|
100
|
-
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0)
|
|
101
|
-
;
|
|
102
|
-
}
|
|
98
|
+
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
|
|
103
99
|
} catch (err) {
|
|
104
100
|
_d = !0, _e = err;
|
|
105
101
|
} finally {
|
|
@@ -121,6 +117,40 @@ function _slicedToArray(arr, i) {
|
|
|
121
117
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
122
118
|
}
|
|
123
119
|
|
|
120
|
+
var CarouselBase = {
|
|
121
|
+
defaultProps: {
|
|
122
|
+
__TYPE: 'Carousel',
|
|
123
|
+
id: null,
|
|
124
|
+
value: null,
|
|
125
|
+
page: 0,
|
|
126
|
+
header: null,
|
|
127
|
+
footer: null,
|
|
128
|
+
style: null,
|
|
129
|
+
className: null,
|
|
130
|
+
itemTemplate: null,
|
|
131
|
+
circular: false,
|
|
132
|
+
showIndicators: true,
|
|
133
|
+
showNavigators: true,
|
|
134
|
+
autoplayInterval: 0,
|
|
135
|
+
numVisible: 1,
|
|
136
|
+
numScroll: 1,
|
|
137
|
+
responsiveOptions: null,
|
|
138
|
+
orientation: 'horizontal',
|
|
139
|
+
verticalViewPortHeight: '300px',
|
|
140
|
+
contentClassName: null,
|
|
141
|
+
containerClassName: null,
|
|
142
|
+
indicatorsContentClassName: null,
|
|
143
|
+
onPageChange: null,
|
|
144
|
+
children: undefined
|
|
145
|
+
},
|
|
146
|
+
getProps: function getProps(props) {
|
|
147
|
+
return utils.ObjectUtils.getMergedProps(props, CarouselBase.defaultProps);
|
|
148
|
+
},
|
|
149
|
+
getOtherProps: function getOtherProps(props) {
|
|
150
|
+
return utils.ObjectUtils.getDiffProps(props, CarouselBase.defaultProps);
|
|
151
|
+
}
|
|
152
|
+
};
|
|
153
|
+
|
|
124
154
|
var CarouselItem = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
125
155
|
var content = props.template(props.item);
|
|
126
156
|
var className = utils.classNames(props.className, 'p-carousel-item', {
|
|
@@ -132,7 +162,8 @@ var CarouselItem = /*#__PURE__*/React__namespace.memo(function (props) {
|
|
|
132
162
|
className: className
|
|
133
163
|
}, content);
|
|
134
164
|
});
|
|
135
|
-
var Carousel = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.forwardRef(function (
|
|
165
|
+
var Carousel = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
166
|
+
var props = CarouselBase.getProps(inProps);
|
|
136
167
|
var _React$useState = React__namespace.useState(props.numVisible),
|
|
137
168
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
138
169
|
numVisibleState = _React$useState2[0],
|
|
@@ -611,7 +642,7 @@ var Carousel = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace
|
|
|
611
642
|
}
|
|
612
643
|
return null;
|
|
613
644
|
};
|
|
614
|
-
var otherProps =
|
|
645
|
+
var otherProps = CarouselBase.getOtherProps(props);
|
|
615
646
|
var className = utils.classNames('p-carousel p-component', {
|
|
616
647
|
'p-carousel-vertical': isVertical,
|
|
617
648
|
'p-carousel-horizontal': !isVertical
|
|
@@ -632,29 +663,5 @@ var Carousel = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace
|
|
|
632
663
|
}));
|
|
633
664
|
CarouselItem.displayName = 'CarouselItem';
|
|
634
665
|
Carousel.displayName = 'Carousel';
|
|
635
|
-
Carousel.defaultProps = {
|
|
636
|
-
__TYPE: 'Carousel',
|
|
637
|
-
id: null,
|
|
638
|
-
value: null,
|
|
639
|
-
page: 0,
|
|
640
|
-
header: null,
|
|
641
|
-
footer: null,
|
|
642
|
-
style: null,
|
|
643
|
-
className: null,
|
|
644
|
-
itemTemplate: null,
|
|
645
|
-
circular: false,
|
|
646
|
-
showIndicators: true,
|
|
647
|
-
showNavigators: true,
|
|
648
|
-
autoplayInterval: 0,
|
|
649
|
-
numVisible: 1,
|
|
650
|
-
numScroll: 1,
|
|
651
|
-
responsiveOptions: null,
|
|
652
|
-
orientation: 'horizontal',
|
|
653
|
-
verticalViewPortHeight: '300px',
|
|
654
|
-
contentClassName: null,
|
|
655
|
-
containerClassName: null,
|
|
656
|
-
indicatorsContentClassName: null,
|
|
657
|
-
onPageChange: null
|
|
658
|
-
};
|
|
659
666
|
|
|
660
667
|
exports.Carousel = Carousel;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("primereact/api"),n=require("primereact/hooks"),r=require("primereact/ripple"),a=require("primereact/utils");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function u(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var c=u(e),o=l(t);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function p(e){if(Array.isArray(e))return s(e)}function m(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function f(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function v(){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 d(e){if(Array.isArray(e))return e}function h(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,l,u,c=[],o=!0,i=!1;try{if(l=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;o=!1}else for(;!(o=(r=l.call(n)).done)&&(c.push(r.value),c.length!==t);o=!0);}catch(e){i=!0,a=e}finally{try{if(!o&&null!=n.return&&(u=n.return(),Object(u)!==u))return}finally{if(i)throw a}}return c}}function g(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function b(e,t){return d(e)||h(e,t)||f(e,t)||g()}var y=c.memo((function(e){var t=e.template(e.item),n=a.classNames(e.className,"p-carousel-item",{"p-carousel-item-active":e.active,"p-carousel-item-start":e.start,"p-carousel-item-end":e.end});return c.createElement("div",{className:n},t)})),N=c.memo(c.forwardRef((function(e,l){var u=b(c.useState(e.numVisible),2),s=u[0],d=u[1],h=b(c.useState(e.numScroll),2),g=h[0],E=h[1],C=b(c.useState(e.page*e.numScroll*-1),2),S=C[0],P=C[1],O=b(c.useState(e.page),2),w=O[0],I=O[1],j=c.useRef(null),k=c.useRef(null),R=c.useRef(0),T=c.useRef(!!e.autoplayInterval),x=c.useRef(""),M=c.useRef(20),A=c.useRef(null),V=c.useRef(null),D=c.useRef(null),L=c.useRef(!1),_=c.useRef(null),H=n.usePrevious(g),q=n.usePrevious(s),U=n.usePrevious(e.value),z=n.usePrevious(e.page),Y="vertical"===e.orientation,X=e.circular||!!e.autoplayInterval,F=X&&e.value&&e.value.length>=s,K=e.onPageChange?e.page:w,W=e.value?Math.max(Math.ceil((e.value.length-s)/g)+1,0):0,$=W&&e.autoplayInterval&&T.current,B=b(n.useResizeListener({listener:function(){J()},when:e.responsiveOptions}),1)[0],G=function(t,n){var r=S;null!=n?(r=g*n*-1,F&&(r-=s),L.current=!1):(r+=g*t,L.current&&(r+=R.current-g*t,L.current=!1),n=Math.abs(Math.floor((F?r+s:r)/g)));F&&w===W-1&&-1===t?(r=-1*(e.value.length+s),n=0):F&&0===w&&1===t?(r=0,n=W-1):n===W-1&&R.current>0&&(r+=-1*R.current-g*t,L.current=!0),k.current&&(a.DomHandler.removeClass(k.current,"p-items-hidden"),oe(r),k.current.style.transition="transform 500ms ease 0s"),e.onPageChange?(P(r),e.onPageChange({page:n})):(I(n),P(r))},J=function(){if(k.current&&_.current){for(var t=window.innerWidth,n={numVisible:e.numVisible,numScroll:e.numScroll},r=0;r<_.current.length;r++){var a=_.current[r];parseInt(a.breakpoint,10)>=t&&(n=a)}if(g!==n.numScroll){var l=Math.floor(K*g/n.numScroll),u=n.numScroll*l*-1;F&&(u-=n.numVisible),P(u),E(n.numScroll),e.onPageChange?e.onPageChange({page:l}):I(l)}s!==n.numVisible&&d(n.numVisible)}},Q=function(e,t){(X||0!==K)&&G(1,t),T.current=!1,e.cancelable&&e.preventDefault()},Z=function(e,t){(X||K<W-1)&&G(-1,t),T.current=!1,e.cancelable&&e.preventDefault()},ee=function(e,t){t>K?Z(e,t):t<K&&Q(e,t)},te=function(e){k.current&&"transform"===e.propertyName&&(a.DomHandler.addClass(k.current,"p-items-hidden"),k.current.style.transition="",0!==w&&w!==W-1||!F||oe(S))},ne=function(e){var t=e.changedTouches[0];A.current={x:t.pageX,y:t.pageY}},re=function(e){e.cancelable&&e.preventDefault()},ae=function(e){var t=e.changedTouches[0];le(e,Y?t.pageY-A.current.y:t.pageX-A.current.x)},le=function(e,t){Math.abs(t)>M&&(t<0?Z(e):Q(e))},ue=function(){V.current&&clearInterval(V.current)},ce=function(){D.current||(D.current=a.DomHandler.createInlineStyle(o.default.nonce));var t,n="\n .p-carousel[".concat(x.current,"] .p-carousel-item {\n flex: 1 0 ").concat(100/s,"%\n }\n ");if(e.responsiveOptions){_.current=p(t=e.responsiveOptions)||m(t)||f(t)||v(),_.current.sort((function(e,t){return a.ObjectUtils.sort(e.breakpoint,t.breakpoint,-1,o.default.locale,o.default.nullSortOrder)}));for(var r=0;r<_.current.length;r++){var l=_.current[r];n+="\n @media screen and (max-width: ".concat(l.breakpoint,") {\n .p-carousel[").concat(x.current,"] .p-carousel-item {\n flex: 1 0 ").concat(100/l.numVisible,"%\n }\n }\n ")}}D.current.innerHTML=n},oe=function(e){k.current&&(k.current.style.transform=Y?"translate3d(0, ".concat(e*(100/s),"%, 0)"):"translate3d(".concat(e*(100/s),"%, 0, 0)"))};c.useImperativeHandle(l,(function(){return{props:e,getElement:function(){return j.current}}})),n.useMountEffect((function(){j.current&&(x.current=a.UniqueComponentId(),j.current.setAttribute(x.current,"")),ce(),J(),oe(S),B()})),n.useUpdateEffect((function(){var t=!1,n=S;if(e.autoplayInterval&&ue(),H!==g||q!==s||e.value&&U&&U.length!==e.value.length){R.current=(e.value.length-s)%g;var r=K;0!==W&&r>=W&&(r=W-1,e.onPageChange?e.onPageChange({page:r}):I(r),t=!0),n=r*g*-1,F&&(n-=s),r===W-1&&R.current>0?(n+=-1*R.current+g,L.current=!0):L.current=!1,n!==S&&(P(n),t=!0),oe(n)}F&&(0===w?n=-1*s:0===n&&(n=-1*e.value.length,R.current>0&&(L.current=!0)),n!==S&&(P(n),t=!0)),z!==e.page&&(e.page>z&&e.page<=W-1?G(-1,e.page):e.page<z&&G(1,e.page)),!t&&$&&(V.current=setInterval((function(){G(-1,w===W-1?0:w+1)}),e.autoplayInterval))})),n.useUnmountEffect((function(){e.autoplayInterval&&ue()}));var ie=function(){if(e.value&&e.value.length){var t=null,n=null;if(F){var r=null;t=(r=e.value.slice(-1*s)).map((function(t,n){return c.createElement(y,{key:n+"_scloned",className:"p-carousel-item-cloned",template:e.itemTemplate,item:t,active:-1*S===e.value.length+s,start:0===n,end:n===r.length-1})})),n=(r=e.value.slice(0,s)).map((function(t,n){return c.createElement(y,{key:n+"_fcloned",className:"p-carousel-item-cloned",template:e.itemTemplate,item:t,active:0===S,start:0===n,end:n===r.length-1})}))}var a=e.value.map((function(t,n){var r=F?-1*(S+s):-1*S,a=r+s-1;return c.createElement(y,{key:n,template:e.itemTemplate,item:t,active:r<=n&&a>=n,start:r===n,end:a===n})}));return c.createElement(c.Fragment,null,t,a,n)}},se=function(){if(e.showNavigators){var n=(!X||e.value&&e.value.length<s)&&0===K,l=a.classNames("p-carousel-prev p-link",{"p-disabled":n}),u=a.classNames("p-carousel-prev-icon pi",{"pi-chevron-left":!Y,"pi-chevron-up":Y});return c.createElement("button",{type:"button",className:l,onClick:Q,disabled:n,"aria-label":t.ariaLabel("previousPageLabel")},c.createElement("span",{className:u}),c.createElement(r.Ripple,null))}return null},pe=function(){if(e.showNavigators){var n=(!X||e.value&&e.value.length<s)&&(K===W-1||0===W),l=a.classNames("p-carousel-next p-link",{"p-disabled":n}),u=a.classNames("p-carousel-next-icon pi",{"pi-chevron-right":!Y,"pi-chevron-down":Y});return c.createElement("button",{type:"button",className:l,onClick:Z,disabled:n,"aria-label":t.ariaLabel("nextPageLabel")},c.createElement("span",{className:u}),c.createElement(r.Ripple,null))}return null},me=function(e){var n="carousel-indicator-"+e,l=a.classNames("p-carousel-indicator",{"p-highlight":K===e});return c.createElement("li",{key:n,className:l},c.createElement("button",{type:"button",className:"p-link",onClick:function(t){return ee(t,e)},"aria-label":"".concat(t.ariaLabel("pageLabel")," ").concat(e+1)},c.createElement(r.Ripple,null)))},fe=a.ObjectUtils.findDiffKeys(e,N.defaultProps),ve=a.classNames("p-carousel p-component",{"p-carousel-vertical":Y,"p-carousel-horizontal":!Y},e.className),de=a.classNames("p-carousel-content",e.contentClassName),he=function(){var t=ie(),n=Y?e.verticalViewPortHeight:"auto",r=se(),l=pe(),u=a.classNames("p-carousel-container",e.containerClassName);return c.createElement("div",{className:u},r,c.createElement("div",{className:"p-carousel-items-content",style:{height:n},onTouchStart:ne,onTouchMove:re,onTouchEnd:ae},c.createElement("div",{ref:k,className:"p-carousel-items-container",onTransitionEnd:te},t)),l)}(),ge=function(){if(e.showIndicators){for(var t=a.classNames("p-carousel-indicators p-reset",e.indicatorsContentClassName),n=[],r=0;r<W;r++)n.push(me(r));return c.createElement("ul",{className:t},n)}return null}(),be=e.header?c.createElement("div",{className:"p-carousel-header"},e.header):null,ye=e.footer?c.createElement("div",{className:"p-carousel-footer"},e.footer):null;return c.createElement("div",i({ref:j,id:e.id,className:ve,style:e.style},fe),be,c.createElement("div",{className:de},he,ge),ye)})));y.displayName="CarouselItem",N.displayName="Carousel",N.defaultProps={__TYPE:"Carousel",id:null,value:null,page:0,header:null,footer:null,style:null,className:null,itemTemplate:null,circular:!1,showIndicators:!0,showNavigators:!0,autoplayInterval:0,numVisible:1,numScroll:1,responsiveOptions:null,orientation:"horizontal",verticalViewPortHeight:"300px",contentClassName:null,containerClassName:null,indicatorsContentClassName:null,onPageChange:null},exports.Carousel=N;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("primereact/api"),r=require("primereact/hooks"),n=require("primereact/ripple"),a=require("primereact/utils");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function u(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var c=u(e),o=l(t);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i.apply(this,arguments)}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function p(e){if(Array.isArray(e))return s(e)}function m(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function f(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}function v(){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 d(e){if(Array.isArray(e))return e}function h(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,l,u,c=[],o=!0,i=!1;try{if(l=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;o=!1}else for(;!(o=(n=l.call(r)).done)&&(c.push(n.value),c.length!==t);o=!0);}catch(e){i=!0,a=e}finally{try{if(!o&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(i)throw a}}return c}}function g(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function b(e,t){return d(e)||h(e,t)||f(e,t)||g()}var y={defaultProps:{__TYPE:"Carousel",id:null,value:null,page:0,header:null,footer:null,style:null,className:null,itemTemplate:null,circular:!1,showIndicators:!0,showNavigators:!0,autoplayInterval:0,numVisible:1,numScroll:1,responsiveOptions:null,orientation:"horizontal",verticalViewPortHeight:"300px",contentClassName:null,containerClassName:null,indicatorsContentClassName:null,onPageChange:null,children:void 0},getProps:function(e){return a.ObjectUtils.getMergedProps(e,y.defaultProps)},getOtherProps:function(e){return a.ObjectUtils.getDiffProps(e,y.defaultProps)}},N=c.memo((function(e){var t=e.template(e.item),r=a.classNames(e.className,"p-carousel-item",{"p-carousel-item-active":e.active,"p-carousel-item-start":e.start,"p-carousel-item-end":e.end});return c.createElement("div",{className:r},t)})),E=c.memo(c.forwardRef((function(e,l){var u=y.getProps(e),s=b(c.useState(u.numVisible),2),d=s[0],h=s[1],g=b(c.useState(u.numScroll),2),E=g[0],P=g[1],C=b(c.useState(u.page*u.numScroll*-1),2),O=C[0],S=C[1],w=b(c.useState(u.page),2),I=w[0],j=w[1],k=c.useRef(null),R=c.useRef(null),T=c.useRef(0),x=c.useRef(!!u.autoplayInterval),M=c.useRef(""),A=c.useRef(20),V=c.useRef(null),D=c.useRef(null),L=c.useRef(null),_=c.useRef(!1),H=c.useRef(null),U=r.usePrevious(E),q=r.usePrevious(d),z=r.usePrevious(u.value),Y=r.usePrevious(u.page),X="vertical"===u.orientation,F=u.circular||!!u.autoplayInterval,W=F&&u.value&&u.value.length>=d,$=u.onPageChange?u.page:I,B=u.value?Math.max(Math.ceil((u.value.length-d)/E)+1,0):0,G=B&&u.autoplayInterval&&x.current,J=b(r.useResizeListener({listener:function(){Q()},when:u.responsiveOptions}),1)[0],K=function(e,t){var r=O;null!=t?(r=E*t*-1,W&&(r-=d),_.current=!1):(r+=E*e,_.current&&(r+=T.current-E*e,_.current=!1),t=Math.abs(Math.floor((W?r+d:r)/E)));W&&I===B-1&&-1===e?(r=-1*(u.value.length+d),t=0):W&&0===I&&1===e?(r=0,t=B-1):t===B-1&&T.current>0&&(r+=-1*T.current-E*e,_.current=!0),R.current&&(a.DomHandler.removeClass(R.current,"p-items-hidden"),ie(r),R.current.style.transition="transform 500ms ease 0s"),u.onPageChange?(S(r),u.onPageChange({page:t})):(j(t),S(r))},Q=function(){if(R.current&&H.current){for(var e=window.innerWidth,t={numVisible:u.numVisible,numScroll:u.numScroll},r=0;r<H.current.length;r++){var n=H.current[r];parseInt(n.breakpoint,10)>=e&&(t=n)}if(E!==t.numScroll){var a=Math.floor($*E/t.numScroll),l=t.numScroll*a*-1;W&&(l-=t.numVisible),S(l),P(t.numScroll),u.onPageChange?u.onPageChange({page:a}):j(a)}d!==t.numVisible&&h(t.numVisible)}},Z=function(e,t){(F||0!==$)&&K(1,t),x.current=!1,e.cancelable&&e.preventDefault()},ee=function(e,t){(F||$<B-1)&&K(-1,t),x.current=!1,e.cancelable&&e.preventDefault()},te=function(e,t){t>$?ee(e,t):t<$&&Z(e,t)},re=function(e){R.current&&"transform"===e.propertyName&&(a.DomHandler.addClass(R.current,"p-items-hidden"),R.current.style.transition="",0!==I&&I!==B-1||!W||ie(O))},ne=function(e){var t=e.changedTouches[0];V.current={x:t.pageX,y:t.pageY}},ae=function(e){e.cancelable&&e.preventDefault()},le=function(e){var t=e.changedTouches[0];ue(e,X?t.pageY-V.current.y:t.pageX-V.current.x)},ue=function(e,t){Math.abs(t)>A&&(t<0?ee(e):Z(e))},ce=function(){D.current&&clearInterval(D.current)},oe=function(){L.current||(L.current=a.DomHandler.createInlineStyle(o.default.nonce));var e,t="\n .p-carousel[".concat(M.current,"] .p-carousel-item {\n flex: 1 0 ").concat(100/d,"%\n }\n ");if(u.responsiveOptions){H.current=p(e=u.responsiveOptions)||m(e)||f(e)||v(),H.current.sort((function(e,t){return a.ObjectUtils.sort(e.breakpoint,t.breakpoint,-1,o.default.locale,o.default.nullSortOrder)}));for(var r=0;r<H.current.length;r++){var n=H.current[r];t+="\n @media screen and (max-width: ".concat(n.breakpoint,") {\n .p-carousel[").concat(M.current,"] .p-carousel-item {\n flex: 1 0 ").concat(100/n.numVisible,"%\n }\n }\n ")}}L.current.innerHTML=t},ie=function(e){R.current&&(R.current.style.transform=X?"translate3d(0, ".concat(e*(100/d),"%, 0)"):"translate3d(".concat(e*(100/d),"%, 0, 0)"))};c.useImperativeHandle(l,(function(){return{props:u,getElement:function(){return k.current}}})),r.useMountEffect((function(){k.current&&(M.current=a.UniqueComponentId(),k.current.setAttribute(M.current,"")),oe(),Q(),ie(O),J()})),r.useUpdateEffect((function(){var e=!1,t=O;if(u.autoplayInterval&&ce(),U!==E||q!==d||u.value&&z&&z.length!==u.value.length){T.current=(u.value.length-d)%E;var r=$;0!==B&&r>=B&&(r=B-1,u.onPageChange?u.onPageChange({page:r}):j(r),e=!0),t=r*E*-1,W&&(t-=d),r===B-1&&T.current>0?(t+=-1*T.current+E,_.current=!0):_.current=!1,t!==O&&(S(t),e=!0),ie(t)}W&&(0===I?t=-1*d:0===t&&(t=-1*u.value.length,T.current>0&&(_.current=!0)),t!==O&&(S(t),e=!0)),Y!==u.page&&(u.page>Y&&u.page<=B-1?K(-1,u.page):u.page<Y&&K(1,u.page)),!e&&G&&(D.current=setInterval((function(){K(-1,I===B-1?0:I+1)}),u.autoplayInterval))})),r.useUnmountEffect((function(){u.autoplayInterval&&ce()}));var se=function(){if(u.value&&u.value.length){var e=null,t=null;if(W){var r=null;e=(r=u.value.slice(-1*d)).map((function(e,t){return c.createElement(N,{key:t+"_scloned",className:"p-carousel-item-cloned",template:u.itemTemplate,item:e,active:-1*O===u.value.length+d,start:0===t,end:t===r.length-1})})),t=(r=u.value.slice(0,d)).map((function(e,t){return c.createElement(N,{key:t+"_fcloned",className:"p-carousel-item-cloned",template:u.itemTemplate,item:e,active:0===O,start:0===t,end:t===r.length-1})}))}var n=u.value.map((function(e,t){var r=W?-1*(O+d):-1*O,n=r+d-1;return c.createElement(N,{key:t,template:u.itemTemplate,item:e,active:r<=t&&n>=t,start:r===t,end:n===t})}));return c.createElement(c.Fragment,null,e,n,t)}},pe=function(){if(u.showNavigators){var e=(!F||u.value&&u.value.length<d)&&0===$,r=a.classNames("p-carousel-prev p-link",{"p-disabled":e}),l=a.classNames("p-carousel-prev-icon pi",{"pi-chevron-left":!X,"pi-chevron-up":X});return c.createElement("button",{type:"button",className:r,onClick:Z,disabled:e,"aria-label":t.ariaLabel("previousPageLabel")},c.createElement("span",{className:l}),c.createElement(n.Ripple,null))}return null},me=function(){if(u.showNavigators){var e=(!F||u.value&&u.value.length<d)&&($===B-1||0===B),r=a.classNames("p-carousel-next p-link",{"p-disabled":e}),l=a.classNames("p-carousel-next-icon pi",{"pi-chevron-right":!X,"pi-chevron-down":X});return c.createElement("button",{type:"button",className:r,onClick:ee,disabled:e,"aria-label":t.ariaLabel("nextPageLabel")},c.createElement("span",{className:l}),c.createElement(n.Ripple,null))}return null},fe=function(e){var r="carousel-indicator-"+e,l=a.classNames("p-carousel-indicator",{"p-highlight":$===e});return c.createElement("li",{key:r,className:l},c.createElement("button",{type:"button",className:"p-link",onClick:function(t){return te(t,e)},"aria-label":"".concat(t.ariaLabel("pageLabel")," ").concat(e+1)},c.createElement(n.Ripple,null)))},ve=y.getOtherProps(u),de=a.classNames("p-carousel p-component",{"p-carousel-vertical":X,"p-carousel-horizontal":!X},u.className),he=a.classNames("p-carousel-content",u.contentClassName),ge=function(){var e=se(),t=X?u.verticalViewPortHeight:"auto",r=pe(),n=me(),l=a.classNames("p-carousel-container",u.containerClassName);return c.createElement("div",{className:l},r,c.createElement("div",{className:"p-carousel-items-content",style:{height:t},onTouchStart:ne,onTouchMove:ae,onTouchEnd:le},c.createElement("div",{ref:R,className:"p-carousel-items-container",onTransitionEnd:re},e)),n)}(),be=function(){if(u.showIndicators){for(var e=a.classNames("p-carousel-indicators p-reset",u.indicatorsContentClassName),t=[],r=0;r<B;r++)t.push(fe(r));return c.createElement("ul",{className:e},t)}return null}(),ye=u.header?c.createElement("div",{className:"p-carousel-header"},u.header):null,Ne=u.footer?c.createElement("div",{className:"p-carousel-footer"},u.footer):null;return c.createElement("div",i({ref:k,id:u.id,className:de,style:u.style},ve),ye,c.createElement("div",{className:he},ge,be),Ne)})));N.displayName="CarouselItem",E.displayName="Carousel",exports.Carousel=E;
|
package/carousel/carousel.d.ts
CHANGED
|
@@ -1,39 +1,155 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Carousel is a content slider featuring various customization options.
|
|
4
|
+
*
|
|
5
|
+
* [Live Demo](https://www.primefaces.org/primereact/carousel)
|
|
6
|
+
*
|
|
7
|
+
* @module carousel
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
1
10
|
import * as React from 'react';
|
|
2
11
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Custom responsive option
|
|
14
|
+
* @see {@link CarouselProps.responsiveOptions}
|
|
15
|
+
* @group Misc
|
|
16
|
+
*/
|
|
17
|
+
interface CarouselResponsiveOption {
|
|
18
|
+
/**
|
|
19
|
+
* The breakpoint to define the maximum width boundary.
|
|
20
|
+
*/
|
|
6
21
|
breakpoint: string;
|
|
22
|
+
/**
|
|
23
|
+
* Number of items per page.
|
|
24
|
+
*/
|
|
7
25
|
numVisible: number;
|
|
26
|
+
/**
|
|
27
|
+
* Number of items to scroll.
|
|
28
|
+
*/
|
|
8
29
|
numScroll: number;
|
|
9
30
|
}
|
|
10
31
|
|
|
11
|
-
|
|
32
|
+
/**
|
|
33
|
+
* Custom complete method event.
|
|
34
|
+
* @see {@link CarouselProps.onPageChange}
|
|
35
|
+
* @event
|
|
36
|
+
*/
|
|
37
|
+
interface CarouselPageChangeEvent {
|
|
38
|
+
/**
|
|
39
|
+
* Value of the new page.
|
|
40
|
+
*/
|
|
12
41
|
page: number;
|
|
13
42
|
}
|
|
14
43
|
|
|
44
|
+
/**
|
|
45
|
+
* Defines valid properties in Carousel component. In addition to these, all properties of HTMLDivElement can be used in this component.
|
|
46
|
+
* @group Properties
|
|
47
|
+
*/
|
|
15
48
|
export interface CarouselProps extends Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, 'ref'> {
|
|
49
|
+
/**
|
|
50
|
+
* An array of objects to display.
|
|
51
|
+
*/
|
|
16
52
|
value?: any[];
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
53
|
+
/**
|
|
54
|
+
* Index of the first item.
|
|
55
|
+
*/
|
|
56
|
+
page?: number | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* Label of header.
|
|
59
|
+
*/
|
|
60
|
+
header?: React.ReactNode | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* Label of footer.
|
|
63
|
+
*/
|
|
64
|
+
footer?: React.ReactNode | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* Function that gets an item in the value and returns the content for it.
|
|
67
|
+
* @param {*} item - Current item
|
|
68
|
+
*/
|
|
69
|
+
itemTemplate?(item: any): React.ReactNode | undefined;
|
|
70
|
+
/**
|
|
71
|
+
* Defines if scrolling would be infinite.
|
|
72
|
+
* @defaultValue false
|
|
73
|
+
*/
|
|
74
|
+
circular?: boolean | undefined;
|
|
75
|
+
/**
|
|
76
|
+
* Whether to display indicator container.
|
|
77
|
+
* @defaultValue true
|
|
78
|
+
*/
|
|
79
|
+
showIndicators?: boolean | undefined;
|
|
80
|
+
/**
|
|
81
|
+
* Whether to display navigation buttons in container.
|
|
82
|
+
* @defaultValue true
|
|
83
|
+
*/
|
|
84
|
+
showNavigators?: boolean | undefined;
|
|
85
|
+
/**
|
|
86
|
+
* Time in milliseconds to scroll items automatically.
|
|
87
|
+
*/
|
|
88
|
+
autoplayInterval?: number | undefined;
|
|
89
|
+
/**
|
|
90
|
+
* Number of items per page.
|
|
91
|
+
* @defaultValue 1
|
|
92
|
+
*/
|
|
93
|
+
numVisible?: number | undefined;
|
|
94
|
+
/**
|
|
95
|
+
* Number of items to scroll.
|
|
96
|
+
* @defaultValue 1
|
|
97
|
+
*/
|
|
98
|
+
numScroll?: number | undefined;
|
|
99
|
+
/**
|
|
100
|
+
* An array of options for responsive design.
|
|
101
|
+
* @type {CarouselResponsiveOption}
|
|
102
|
+
*/
|
|
103
|
+
responsiveOptions?: CarouselResponsiveOption[] | undefined;
|
|
104
|
+
/**
|
|
105
|
+
* Specifies the layout of the component, valid values are "horizontal" and "vertical".
|
|
106
|
+
* @defaultValue horizontal
|
|
107
|
+
*/
|
|
108
|
+
orientation?: 'vertical' | 'horizontal' | undefined;
|
|
109
|
+
/**
|
|
110
|
+
* Height of the viewport in vertical layout.
|
|
111
|
+
* @defaultValue 300px
|
|
112
|
+
*/
|
|
113
|
+
verticalViewPortHeight?: string | undefined;
|
|
114
|
+
/**
|
|
115
|
+
* Style class of main content.
|
|
116
|
+
*/
|
|
117
|
+
contentClassName?: string | undefined;
|
|
118
|
+
/**
|
|
119
|
+
* Style class of the viewport container.
|
|
120
|
+
*/
|
|
121
|
+
containerClassName?: string | undefined;
|
|
122
|
+
/**
|
|
123
|
+
* Style class of the paginator items.
|
|
124
|
+
*/
|
|
125
|
+
indicatorsContentClassName?: string | undefined;
|
|
126
|
+
/**
|
|
127
|
+
* Callback to invoke after scroll.
|
|
128
|
+
* @param {CarouselPageChangeEvent} event - Custom change event.
|
|
129
|
+
*/
|
|
130
|
+
onPageChange?(event: CarouselPageChangeEvent): void;
|
|
131
|
+
/**
|
|
132
|
+
* Used to get the child elements of the component.
|
|
133
|
+
* @readonly
|
|
134
|
+
*/
|
|
135
|
+
children?: React.ReactNode | undefined;
|
|
35
136
|
}
|
|
36
137
|
|
|
138
|
+
/**
|
|
139
|
+
* **PrimeReact - Carousel**
|
|
140
|
+
*
|
|
141
|
+
* _Carousel is a content slider featuring various customization options._
|
|
142
|
+
*
|
|
143
|
+
* [Live Demo](https://www.primefaces.org/primereact/carousel/)
|
|
144
|
+
* --- ---
|
|
145
|
+
* 
|
|
146
|
+
*
|
|
147
|
+
* @group Component
|
|
148
|
+
*/
|
|
37
149
|
export declare class Carousel extends React.Component<CarouselProps, any> {
|
|
150
|
+
/**
|
|
151
|
+
* Used to get container element.
|
|
152
|
+
* @return {HTMLDivElement} Container element
|
|
153
|
+
*/
|
|
38
154
|
public getElement(): HTMLDivElement;
|
|
39
155
|
}
|
package/carousel/carousel.esm.js
CHANGED
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import PrimeReact, { ariaLabel } from 'primereact/api';
|
|
3
3
|
import { usePrevious, useResizeListener, useMountEffect, useUpdateEffect, useUnmountEffect } from 'primereact/hooks';
|
|
4
4
|
import { Ripple } from 'primereact/ripple';
|
|
5
|
-
import { classNames, UniqueComponentId,
|
|
5
|
+
import { ObjectUtils, classNames, UniqueComponentId, DomHandler } from 'primereact/utils';
|
|
6
6
|
|
|
7
7
|
function _extends() {
|
|
8
8
|
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
@@ -21,9 +21,7 @@ function _extends() {
|
|
|
21
21
|
|
|
22
22
|
function _arrayLikeToArray(arr, len) {
|
|
23
23
|
if (len == null || len > arr.length) len = arr.length;
|
|
24
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
25
|
-
arr2[i] = arr[i];
|
|
26
|
-
}
|
|
24
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
27
25
|
return arr2;
|
|
28
26
|
}
|
|
29
27
|
|
|
@@ -70,9 +68,7 @@ function _iterableToArrayLimit(arr, i) {
|
|
|
70
68
|
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
|
71
69
|
if (Object(_i) !== _i) return;
|
|
72
70
|
_n = !1;
|
|
73
|
-
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0)
|
|
74
|
-
;
|
|
75
|
-
}
|
|
71
|
+
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
|
|
76
72
|
} catch (err) {
|
|
77
73
|
_d = !0, _e = err;
|
|
78
74
|
} finally {
|
|
@@ -94,6 +90,40 @@ function _slicedToArray(arr, i) {
|
|
|
94
90
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
95
91
|
}
|
|
96
92
|
|
|
93
|
+
var CarouselBase = {
|
|
94
|
+
defaultProps: {
|
|
95
|
+
__TYPE: 'Carousel',
|
|
96
|
+
id: null,
|
|
97
|
+
value: null,
|
|
98
|
+
page: 0,
|
|
99
|
+
header: null,
|
|
100
|
+
footer: null,
|
|
101
|
+
style: null,
|
|
102
|
+
className: null,
|
|
103
|
+
itemTemplate: null,
|
|
104
|
+
circular: false,
|
|
105
|
+
showIndicators: true,
|
|
106
|
+
showNavigators: true,
|
|
107
|
+
autoplayInterval: 0,
|
|
108
|
+
numVisible: 1,
|
|
109
|
+
numScroll: 1,
|
|
110
|
+
responsiveOptions: null,
|
|
111
|
+
orientation: 'horizontal',
|
|
112
|
+
verticalViewPortHeight: '300px',
|
|
113
|
+
contentClassName: null,
|
|
114
|
+
containerClassName: null,
|
|
115
|
+
indicatorsContentClassName: null,
|
|
116
|
+
onPageChange: null,
|
|
117
|
+
children: undefined
|
|
118
|
+
},
|
|
119
|
+
getProps: function getProps(props) {
|
|
120
|
+
return ObjectUtils.getMergedProps(props, CarouselBase.defaultProps);
|
|
121
|
+
},
|
|
122
|
+
getOtherProps: function getOtherProps(props) {
|
|
123
|
+
return ObjectUtils.getDiffProps(props, CarouselBase.defaultProps);
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
|
|
97
127
|
var CarouselItem = /*#__PURE__*/React.memo(function (props) {
|
|
98
128
|
var content = props.template(props.item);
|
|
99
129
|
var className = classNames(props.className, 'p-carousel-item', {
|
|
@@ -105,7 +135,8 @@ var CarouselItem = /*#__PURE__*/React.memo(function (props) {
|
|
|
105
135
|
className: className
|
|
106
136
|
}, content);
|
|
107
137
|
});
|
|
108
|
-
var Carousel = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
138
|
+
var Carousel = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
139
|
+
var props = CarouselBase.getProps(inProps);
|
|
109
140
|
var _React$useState = React.useState(props.numVisible),
|
|
110
141
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
111
142
|
numVisibleState = _React$useState2[0],
|
|
@@ -584,7 +615,7 @@ var Carousel = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
584
615
|
}
|
|
585
616
|
return null;
|
|
586
617
|
};
|
|
587
|
-
var otherProps =
|
|
618
|
+
var otherProps = CarouselBase.getOtherProps(props);
|
|
588
619
|
var className = classNames('p-carousel p-component', {
|
|
589
620
|
'p-carousel-vertical': isVertical,
|
|
590
621
|
'p-carousel-horizontal': !isVertical
|
|
@@ -605,29 +636,5 @@ var Carousel = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
605
636
|
}));
|
|
606
637
|
CarouselItem.displayName = 'CarouselItem';
|
|
607
638
|
Carousel.displayName = 'Carousel';
|
|
608
|
-
Carousel.defaultProps = {
|
|
609
|
-
__TYPE: 'Carousel',
|
|
610
|
-
id: null,
|
|
611
|
-
value: null,
|
|
612
|
-
page: 0,
|
|
613
|
-
header: null,
|
|
614
|
-
footer: null,
|
|
615
|
-
style: null,
|
|
616
|
-
className: null,
|
|
617
|
-
itemTemplate: null,
|
|
618
|
-
circular: false,
|
|
619
|
-
showIndicators: true,
|
|
620
|
-
showNavigators: true,
|
|
621
|
-
autoplayInterval: 0,
|
|
622
|
-
numVisible: 1,
|
|
623
|
-
numScroll: 1,
|
|
624
|
-
responsiveOptions: null,
|
|
625
|
-
orientation: 'horizontal',
|
|
626
|
-
verticalViewPortHeight: '300px',
|
|
627
|
-
contentClassName: null,
|
|
628
|
-
containerClassName: null,
|
|
629
|
-
indicatorsContentClassName: null,
|
|
630
|
-
onPageChange: null
|
|
631
|
-
};
|
|
632
639
|
|
|
633
640
|
export { Carousel };
|