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/timeline/timeline.cjs.js
CHANGED
|
@@ -81,8 +81,30 @@ function _defineProperty(obj, key, value) {
|
|
|
81
81
|
return obj;
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
var
|
|
84
|
+
var TimelineBase = {
|
|
85
|
+
defaultProps: {
|
|
86
|
+
__TYPE: 'Timeline',
|
|
87
|
+
align: 'left',
|
|
88
|
+
className: null,
|
|
89
|
+
content: null,
|
|
90
|
+
dataKey: null,
|
|
91
|
+
layout: 'vertical',
|
|
92
|
+
marker: null,
|
|
93
|
+
opposite: null,
|
|
94
|
+
value: null,
|
|
95
|
+
children: undefined
|
|
96
|
+
},
|
|
97
|
+
getProps: function getProps(props) {
|
|
98
|
+
return utils.ObjectUtils.getMergedProps(props, TimelineBase.defaultProps);
|
|
99
|
+
},
|
|
100
|
+
getOtherProps: function getOtherProps(props) {
|
|
101
|
+
return utils.ObjectUtils.getDiffProps(props, TimelineBase.defaultProps);
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
var Timeline = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
85
106
|
var _classNames;
|
|
107
|
+
var props = TimelineBase.getProps(inProps);
|
|
86
108
|
var elementRef = React__namespace.useRef(null);
|
|
87
109
|
var getKey = function getKey(item, index) {
|
|
88
110
|
return props.dataKey ? utils.ObjectUtils.resolveFieldData(item, props.dataKey) : "pr_id__".concat(index);
|
|
@@ -117,29 +139,14 @@ var Timeline = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace
|
|
|
117
139
|
}
|
|
118
140
|
};
|
|
119
141
|
});
|
|
120
|
-
var otherProps =
|
|
142
|
+
var otherProps = TimelineBase.getOtherProps(props);
|
|
121
143
|
var className = utils.classNames('p-timeline p-component', (_classNames = {}, _defineProperty(_classNames, "p-timeline-".concat(props.align), true), _defineProperty(_classNames, "p-timeline-".concat(props.layout), true), _classNames), props.className);
|
|
122
144
|
var events = createEvents();
|
|
123
145
|
return /*#__PURE__*/React__namespace.createElement("div", _extends({
|
|
124
|
-
id: props.id,
|
|
125
146
|
ref: elementRef,
|
|
126
|
-
className: className
|
|
127
|
-
style: props.style
|
|
147
|
+
className: className
|
|
128
148
|
}, otherProps), events);
|
|
129
149
|
}));
|
|
130
150
|
Timeline.displayName = 'Timeline';
|
|
131
|
-
Timeline.defaultProps = {
|
|
132
|
-
__TYPE: 'Timeline',
|
|
133
|
-
id: null,
|
|
134
|
-
value: null,
|
|
135
|
-
align: 'left',
|
|
136
|
-
layout: 'vertical',
|
|
137
|
-
dataKey: null,
|
|
138
|
-
className: null,
|
|
139
|
-
style: null,
|
|
140
|
-
opposite: null,
|
|
141
|
-
marker: null,
|
|
142
|
-
content: null
|
|
143
|
-
};
|
|
144
151
|
|
|
145
152
|
exports.Timeline = Timeline;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("primereact/utils");function
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("primereact/utils");function r(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 n=r(e);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 l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function a(e,t){if("object"!==l(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function o(e){var t=a(e,"string");return"symbol"===l(t)?t:String(t)}function c(e,t,r){return(t=o(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u={defaultProps:{__TYPE:"Timeline",align:"left",className:null,content:null,dataKey:null,layout:"vertical",marker:null,opposite:null,value:null,children:void 0},getProps:function(e){return t.ObjectUtils.getMergedProps(e,u.defaultProps)},getOtherProps:function(e){return t.ObjectUtils.getDiffProps(e,u.defaultProps)}},s=n.memo(n.forwardRef((function(e,r){var l,a=u.getProps(e),o=n.useRef(null),s=function(e,r){return a.dataKey?t.ObjectUtils.resolveFieldData(e,a.dataKey):"pr_id__".concat(r)};n.useImperativeHandle(r,(function(){return{props:a,getElement:function(){return o.current}}}));var m=u.getOtherProps(a),p=t.classNames("p-timeline p-component",(c(l={},"p-timeline-".concat(a.align),!0),c(l,"p-timeline-".concat(a.layout),!0),l),a.className),f=a.value&&a.value.map((function(e,r){var i=t.ObjectUtils.getJSXElement(a.opposite,e,r),l=t.ObjectUtils.getJSXElement(a.marker,e,r)||n.createElement("div",{className:"p-timeline-event-marker"}),o=r!==a.value.length-1&&n.createElement("div",{className:"p-timeline-event-connector"}),c=t.ObjectUtils.getJSXElement(a.content,e,r);return n.createElement("div",{key:s(e,r),className:"p-timeline-event"},n.createElement("div",{className:"p-timeline-event-opposite"},i),n.createElement("div",{className:"p-timeline-event-separator"},l,o),n.createElement("div",{className:"p-timeline-event-content"},c))}));return n.createElement("div",i({ref:o,className:p},m),f)})));s.displayName="Timeline",exports.Timeline=s;
|
package/timeline/timeline.d.ts
CHANGED
|
@@ -1,22 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Timeline visualizes a series of chained events.
|
|
4
|
+
*
|
|
5
|
+
* [Live Demo](https://www.primefaces.org/primereact/timeline/)
|
|
6
|
+
*
|
|
7
|
+
* @module timeline
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
1
10
|
import * as React from 'react';
|
|
2
11
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
type TimelineTemplateType = React.ReactNode | ((item: any, index: number) => React.ReactNode);
|
|
8
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Defines valid properties in Timeline component. In addition to these, all properties of HTMLDivElement can be used in this component.
|
|
14
|
+
* @group Properties
|
|
15
|
+
*/
|
|
9
16
|
export interface TimelineProps extends Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, 'ref'> {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
+
/**
|
|
18
|
+
* Position of the timeline bar relative to the content. Valid values are "left", "right for vertical layout and "top", "bottom" for horizontal layout.
|
|
19
|
+
* @defaultValue left
|
|
20
|
+
*/
|
|
21
|
+
align?: 'left' | 'right' | 'top' | 'bottom' | 'alternate' | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* Used to get the child elements of the component.
|
|
24
|
+
* @readonly
|
|
25
|
+
*/
|
|
17
26
|
children?: React.ReactNode;
|
|
27
|
+
/**
|
|
28
|
+
* Template of the content.
|
|
29
|
+
*/
|
|
30
|
+
content?: React.ReactNode | ((item: any, index: number) => React.ReactNode);
|
|
31
|
+
/**
|
|
32
|
+
* Name of the field that uniquely identifies a record in the data. Should be a unique business key to prevent re-rendering.
|
|
33
|
+
*/
|
|
34
|
+
dataKey?: string | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* Orientation of the timeline, valid values are "vertical" and "horizontal".
|
|
37
|
+
* @defaultValue vertical
|
|
38
|
+
*/
|
|
39
|
+
layout?: 'vertical' | 'horizontal' | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* Template content allows placing a custom event marker instead of the default one.
|
|
42
|
+
*/
|
|
43
|
+
marker?: React.ReactNode | ((item: any, index: number) => React.ReactNode);
|
|
44
|
+
/**
|
|
45
|
+
* Template content to be placed at the other side of the bar.
|
|
46
|
+
*/
|
|
47
|
+
opposite?: React.ReactNode | ((item: any, index: number) => React.ReactNode);
|
|
48
|
+
/**
|
|
49
|
+
* An array of events to display.
|
|
50
|
+
*/
|
|
51
|
+
value?: any[] | undefined;
|
|
18
52
|
}
|
|
19
53
|
|
|
54
|
+
/**
|
|
55
|
+
* **PrimeReact - Timeline**
|
|
56
|
+
*
|
|
57
|
+
* _Timeline visualizes a series of chained events._
|
|
58
|
+
*
|
|
59
|
+
* [Live Demo](https://www.primefaces.org/primereact/timeline/)
|
|
60
|
+
* --- ---
|
|
61
|
+
* 
|
|
62
|
+
*
|
|
63
|
+
* @group Component
|
|
64
|
+
*/
|
|
20
65
|
export declare class Timeline extends React.Component<TimelineProps, any> {
|
|
66
|
+
/**
|
|
67
|
+
* Used to get container element.
|
|
68
|
+
* @return {HTMLDivElement} Container element
|
|
69
|
+
*/
|
|
21
70
|
public getElement(): HTMLDivElement;
|
|
22
71
|
}
|
package/timeline/timeline.esm.js
CHANGED
|
@@ -57,8 +57,30 @@ function _defineProperty(obj, key, value) {
|
|
|
57
57
|
return obj;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
var
|
|
60
|
+
var TimelineBase = {
|
|
61
|
+
defaultProps: {
|
|
62
|
+
__TYPE: 'Timeline',
|
|
63
|
+
align: 'left',
|
|
64
|
+
className: null,
|
|
65
|
+
content: null,
|
|
66
|
+
dataKey: null,
|
|
67
|
+
layout: 'vertical',
|
|
68
|
+
marker: null,
|
|
69
|
+
opposite: null,
|
|
70
|
+
value: null,
|
|
71
|
+
children: undefined
|
|
72
|
+
},
|
|
73
|
+
getProps: function getProps(props) {
|
|
74
|
+
return ObjectUtils.getMergedProps(props, TimelineBase.defaultProps);
|
|
75
|
+
},
|
|
76
|
+
getOtherProps: function getOtherProps(props) {
|
|
77
|
+
return ObjectUtils.getDiffProps(props, TimelineBase.defaultProps);
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
var Timeline = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (inProps, ref) {
|
|
61
82
|
var _classNames;
|
|
83
|
+
var props = TimelineBase.getProps(inProps);
|
|
62
84
|
var elementRef = React.useRef(null);
|
|
63
85
|
var getKey = function getKey(item, index) {
|
|
64
86
|
return props.dataKey ? ObjectUtils.resolveFieldData(item, props.dataKey) : "pr_id__".concat(index);
|
|
@@ -93,29 +115,14 @@ var Timeline = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function (
|
|
|
93
115
|
}
|
|
94
116
|
};
|
|
95
117
|
});
|
|
96
|
-
var otherProps =
|
|
118
|
+
var otherProps = TimelineBase.getOtherProps(props);
|
|
97
119
|
var className = classNames('p-timeline p-component', (_classNames = {}, _defineProperty(_classNames, "p-timeline-".concat(props.align), true), _defineProperty(_classNames, "p-timeline-".concat(props.layout), true), _classNames), props.className);
|
|
98
120
|
var events = createEvents();
|
|
99
121
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
100
|
-
id: props.id,
|
|
101
122
|
ref: elementRef,
|
|
102
|
-
className: className
|
|
103
|
-
style: props.style
|
|
123
|
+
className: className
|
|
104
124
|
}, otherProps), events);
|
|
105
125
|
}));
|
|
106
126
|
Timeline.displayName = 'Timeline';
|
|
107
|
-
Timeline.defaultProps = {
|
|
108
|
-
__TYPE: 'Timeline',
|
|
109
|
-
id: null,
|
|
110
|
-
value: null,
|
|
111
|
-
align: 'left',
|
|
112
|
-
layout: 'vertical',
|
|
113
|
-
dataKey: null,
|
|
114
|
-
className: null,
|
|
115
|
-
style: null,
|
|
116
|
-
opposite: null,
|
|
117
|
-
marker: null,
|
|
118
|
-
content: null
|
|
119
|
-
};
|
|
120
127
|
|
|
121
128
|
export { Timeline };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";import{ObjectUtils as t,classNames as n}from"primereact/utils";function r(){return r=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},r.apply(this,arguments)}function
|
|
1
|
+
import*as e from"react";import{ObjectUtils as t,classNames as n}from"primereact/utils";function r(){return r=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},r.apply(this,arguments)}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function l(e,t){if("object"!==i(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function o(e){var t=l(e,"string");return"symbol"===i(t)?t:String(t)}function a(e,t,n){return(t=o(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u={defaultProps:{__TYPE:"Timeline",align:"left",className:null,content:null,dataKey:null,layout:"vertical",marker:null,opposite:null,value:null,children:void 0},getProps:function(e){return t.getMergedProps(e,u.defaultProps)},getOtherProps:function(e){return t.getDiffProps(e,u.defaultProps)}},c=e.memo(e.forwardRef((function(i,l){var o,c=u.getProps(i),m=e.useRef(null),p=function(e,n){return c.dataKey?t.resolveFieldData(e,c.dataKey):"pr_id__".concat(n)};e.useImperativeHandle(l,(function(){return{props:c,getElement:function(){return m.current}}}));var s=u.getOtherProps(c),f=n("p-timeline p-component",(a(o={},"p-timeline-".concat(c.align),!0),a(o,"p-timeline-".concat(c.layout),!0),o),c.className),v=c.value&&c.value.map((function(n,r){var i=t.getJSXElement(c.opposite,n,r),l=t.getJSXElement(c.marker,n,r)||e.createElement("div",{className:"p-timeline-event-marker"}),o=r!==c.value.length-1&&e.createElement("div",{className:"p-timeline-event-connector"}),a=t.getJSXElement(c.content,n,r);return e.createElement("div",{key:p(n,r),className:"p-timeline-event"},e.createElement("div",{className:"p-timeline-event-opposite"},i),e.createElement("div",{className:"p-timeline-event-separator"},l,o),e.createElement("div",{className:"p-timeline-event-content"},a))}));return e.createElement("div",r({ref:m,className:f},s),v)})));c.displayName="Timeline";export{c as Timeline};
|
package/timeline/timeline.js
CHANGED
|
@@ -78,8 +78,30 @@ this.primereact.timeline = (function (exports, React, utils) {
|
|
|
78
78
|
return obj;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
-
var
|
|
81
|
+
var TimelineBase = {
|
|
82
|
+
defaultProps: {
|
|
83
|
+
__TYPE: 'Timeline',
|
|
84
|
+
align: 'left',
|
|
85
|
+
className: null,
|
|
86
|
+
content: null,
|
|
87
|
+
dataKey: null,
|
|
88
|
+
layout: 'vertical',
|
|
89
|
+
marker: null,
|
|
90
|
+
opposite: null,
|
|
91
|
+
value: null,
|
|
92
|
+
children: undefined
|
|
93
|
+
},
|
|
94
|
+
getProps: function getProps(props) {
|
|
95
|
+
return utils.ObjectUtils.getMergedProps(props, TimelineBase.defaultProps);
|
|
96
|
+
},
|
|
97
|
+
getOtherProps: function getOtherProps(props) {
|
|
98
|
+
return utils.ObjectUtils.getDiffProps(props, TimelineBase.defaultProps);
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
var Timeline = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
82
103
|
var _classNames;
|
|
104
|
+
var props = TimelineBase.getProps(inProps);
|
|
83
105
|
var elementRef = React__namespace.useRef(null);
|
|
84
106
|
var getKey = function getKey(item, index) {
|
|
85
107
|
return props.dataKey ? utils.ObjectUtils.resolveFieldData(item, props.dataKey) : "pr_id__".concat(index);
|
|
@@ -114,30 +136,15 @@ this.primereact.timeline = (function (exports, React, utils) {
|
|
|
114
136
|
}
|
|
115
137
|
};
|
|
116
138
|
});
|
|
117
|
-
var otherProps =
|
|
139
|
+
var otherProps = TimelineBase.getOtherProps(props);
|
|
118
140
|
var className = utils.classNames('p-timeline p-component', (_classNames = {}, _defineProperty(_classNames, "p-timeline-".concat(props.align), true), _defineProperty(_classNames, "p-timeline-".concat(props.layout), true), _classNames), props.className);
|
|
119
141
|
var events = createEvents();
|
|
120
142
|
return /*#__PURE__*/React__namespace.createElement("div", _extends({
|
|
121
|
-
id: props.id,
|
|
122
143
|
ref: elementRef,
|
|
123
|
-
className: className
|
|
124
|
-
style: props.style
|
|
144
|
+
className: className
|
|
125
145
|
}, otherProps), events);
|
|
126
146
|
}));
|
|
127
147
|
Timeline.displayName = 'Timeline';
|
|
128
|
-
Timeline.defaultProps = {
|
|
129
|
-
__TYPE: 'Timeline',
|
|
130
|
-
id: null,
|
|
131
|
-
value: null,
|
|
132
|
-
align: 'left',
|
|
133
|
-
layout: 'vertical',
|
|
134
|
-
dataKey: null,
|
|
135
|
-
className: null,
|
|
136
|
-
style: null,
|
|
137
|
-
opposite: null,
|
|
138
|
-
marker: null,
|
|
139
|
-
content: null
|
|
140
|
-
};
|
|
141
148
|
|
|
142
149
|
exports.Timeline = Timeline;
|
|
143
150
|
|
package/timeline/timeline.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primereact=this.primereact||{},this.primereact.timeline=function(e,t,
|
|
1
|
+
this.primereact=this.primereact||{},this.primereact.timeline=function(e,t,r){"use strict";function n(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 i=n(t);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 n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},l.apply(this,arguments)}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function o(e,t){if("object"!==a(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function c(e){var t=o(e,"string");return"symbol"===a(t)?t:String(t)}function u(e,t,r){return(t=c(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var s={defaultProps:{__TYPE:"Timeline",align:"left",className:null,content:null,dataKey:null,layout:"vertical",marker:null,opposite:null,value:null,children:void 0},getProps:function(e){return r.ObjectUtils.getMergedProps(e,s.defaultProps)},getOtherProps:function(e){return r.ObjectUtils.getDiffProps(e,s.defaultProps)}},m=i.memo(i.forwardRef((function(e,t){var n,a=s.getProps(e),o=i.useRef(null),c=function(e,t){return a.dataKey?r.ObjectUtils.resolveFieldData(e,a.dataKey):"pr_id__".concat(t)};i.useImperativeHandle(t,(function(){return{props:a,getElement:function(){return o.current}}}));var m=s.getOtherProps(a),p=r.classNames("p-timeline p-component",(u(n={},"p-timeline-".concat(a.align),!0),u(n,"p-timeline-".concat(a.layout),!0),n),a.className),f=a.value&&a.value.map((function(e,t){var n=r.ObjectUtils.getJSXElement(a.opposite,e,t),l=r.ObjectUtils.getJSXElement(a.marker,e,t)||i.createElement("div",{className:"p-timeline-event-marker"}),o=t!==a.value.length-1&&i.createElement("div",{className:"p-timeline-event-connector"}),u=r.ObjectUtils.getJSXElement(a.content,e,t);return i.createElement("div",{key:c(e,t),className:"p-timeline-event"},i.createElement("div",{className:"p-timeline-event-opposite"},n),i.createElement("div",{className:"p-timeline-event-separator"},l,o),i.createElement("div",{className:"p-timeline-event-content"},u))}));return i.createElement("div",l({ref:o,className:p},m),f)})));return m.displayName="Timeline",e.Timeline=m,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.utils);
|
package/toast/package.json
CHANGED
package/toast/toast.cjs.js
CHANGED
|
@@ -51,9 +51,7 @@ function _extends() {
|
|
|
51
51
|
|
|
52
52
|
function _arrayLikeToArray(arr, len) {
|
|
53
53
|
if (len == null || len > arr.length) len = arr.length;
|
|
54
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
55
|
-
arr2[i] = arr[i];
|
|
56
|
-
}
|
|
54
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
57
55
|
return arr2;
|
|
58
56
|
}
|
|
59
57
|
|
|
@@ -100,9 +98,7 @@ function _iterableToArrayLimit(arr, i) {
|
|
|
100
98
|
if (_x = (_i = _i.call(arr)).next, 0 === i) {
|
|
101
99
|
if (Object(_i) !== _i) return;
|
|
102
100
|
_n = !1;
|
|
103
|
-
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0)
|
|
104
|
-
;
|
|
105
|
-
}
|
|
101
|
+
} else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
|
|
106
102
|
} catch (err) {
|
|
107
103
|
_d = !0, _e = err;
|
|
108
104
|
} finally {
|
|
@@ -124,6 +120,32 @@ function _slicedToArray(arr, i) {
|
|
|
124
120
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
125
121
|
}
|
|
126
122
|
|
|
123
|
+
var ToastBase = {
|
|
124
|
+
defaultProps: {
|
|
125
|
+
__TYPE: 'Toast',
|
|
126
|
+
id: null,
|
|
127
|
+
className: null,
|
|
128
|
+
style: null,
|
|
129
|
+
baseZIndex: 0,
|
|
130
|
+
position: 'top-right',
|
|
131
|
+
transitionOptions: null,
|
|
132
|
+
appendTo: 'self',
|
|
133
|
+
onClick: null,
|
|
134
|
+
onRemove: null,
|
|
135
|
+
onShow: null,
|
|
136
|
+
onHide: null,
|
|
137
|
+
onMouseEnter: null,
|
|
138
|
+
onMouseLeave: null,
|
|
139
|
+
children: undefined
|
|
140
|
+
},
|
|
141
|
+
getProps: function getProps(props) {
|
|
142
|
+
return utils.ObjectUtils.getMergedProps(props, ToastBase.defaultProps);
|
|
143
|
+
},
|
|
144
|
+
getOtherProps: function getOtherProps(props) {
|
|
145
|
+
return utils.ObjectUtils.getDiffProps(props, ToastBase.defaultProps);
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
|
|
127
149
|
function _typeof(obj) {
|
|
128
150
|
"@babel/helpers - typeof";
|
|
129
151
|
|
|
@@ -428,7 +450,8 @@ var ToastMessage = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__names
|
|
|
428
450
|
ToastMessage.displayName = 'ToastMessage';
|
|
429
451
|
|
|
430
452
|
var messageIdx = 0;
|
|
431
|
-
var Toast = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.forwardRef(function (
|
|
453
|
+
var Toast = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.forwardRef(function (inProps, ref) {
|
|
454
|
+
var props = ToastBase.getProps(inProps);
|
|
432
455
|
var _React$useState = React__namespace.useState([]),
|
|
433
456
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
434
457
|
messagesState = _React$useState2[0],
|
|
@@ -437,7 +460,6 @@ var Toast = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.fo
|
|
|
437
460
|
var show = function show(messageInfo) {
|
|
438
461
|
if (messageInfo) {
|
|
439
462
|
var messages = assignIdentifiers(messageInfo, true);
|
|
440
|
-
messagesState.length === 0 && utils.ZIndexUtils.set('toast', containerRef.current, PrimeReact__default["default"].autoZIndex, props.baseZIndex || PrimeReact__default["default"].zIndex['toast']);
|
|
441
463
|
setMessagesState(messages);
|
|
442
464
|
}
|
|
443
465
|
};
|
|
@@ -494,6 +516,9 @@ var Toast = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.fo
|
|
|
494
516
|
messagesState.length === 1 && utils.ZIndexUtils.clear(containerRef.current);
|
|
495
517
|
props.onHide && props.onHide();
|
|
496
518
|
};
|
|
519
|
+
hooks.useUpdateEffect(function () {
|
|
520
|
+
utils.ZIndexUtils.set('toast', containerRef.current, PrimeReact__default["default"].autoZIndex, props.baseZIndex || PrimeReact__default["default"].zIndex['toast']);
|
|
521
|
+
}, [messagesState, props.baseZIndex]);
|
|
497
522
|
hooks.useUnmountEffect(function () {
|
|
498
523
|
utils.ZIndexUtils.clear(containerRef.current);
|
|
499
524
|
});
|
|
@@ -510,8 +535,11 @@ var Toast = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.fo
|
|
|
510
535
|
};
|
|
511
536
|
});
|
|
512
537
|
var createElement = function createElement() {
|
|
513
|
-
var otherProps =
|
|
514
|
-
var className = utils.classNames('p-toast p-component p-toast-' + props.position, props.className
|
|
538
|
+
var otherProps = ToastBase.getOtherProps(props);
|
|
539
|
+
var className = utils.classNames('p-toast p-component p-toast-' + props.position, props.className, {
|
|
540
|
+
'p-input-filled': PrimeReact__default["default"].inputStyle === 'filled',
|
|
541
|
+
'p-ripple-disabled': PrimeReact__default["default"].ripple === false
|
|
542
|
+
});
|
|
515
543
|
return /*#__PURE__*/React__namespace.createElement("div", _extends({
|
|
516
544
|
ref: containerRef,
|
|
517
545
|
id: props.id,
|
|
@@ -548,21 +576,5 @@ var Toast = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.fo
|
|
|
548
576
|
});
|
|
549
577
|
}));
|
|
550
578
|
Toast.displayName = 'Toast';
|
|
551
|
-
Toast.defaultProps = {
|
|
552
|
-
__TYPE: 'Toast',
|
|
553
|
-
id: null,
|
|
554
|
-
className: null,
|
|
555
|
-
style: null,
|
|
556
|
-
baseZIndex: 0,
|
|
557
|
-
position: 'top-right',
|
|
558
|
-
transitionOptions: null,
|
|
559
|
-
appendTo: 'self',
|
|
560
|
-
onClick: null,
|
|
561
|
-
onRemove: null,
|
|
562
|
-
onShow: null,
|
|
563
|
-
onHide: null,
|
|
564
|
-
onMouseEnter: null,
|
|
565
|
-
onMouseLeave: null
|
|
566
|
-
};
|
|
567
579
|
|
|
568
580
|
exports.Toast = Toast;
|
package/toast/toast.cjs.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("react-transition-group"),n=require("primereact/api"),r=require("primereact/csstransition"),a=require("primereact/hooks"),o=require("primereact/portal"),l=require("primereact/utils"),s=require("primereact/ripple");function i(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),f=i(n);function m(){return m=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},m.apply(this,arguments)}function p(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 d(e){if(Array.isArray(e))return p(e)}function y(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function b(e,t){if(e){if("string"==typeof e)return p(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)?p(e,t):void 0}}function E(){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 v(e){return d(e)||y(e)||b(e)||E()}function T(e){if(Array.isArray(e))return e}function S(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,l,s=[],i=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);i=!0);}catch(e){u=!0,a=e}finally{try{if(!i&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw a}}return s}}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 N(e,t){return T(e)||S(e,t)||b(e,t)||g()}function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function A(e,t){if("object"!==h(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==h(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function O(e){var t=A(e,"string");return"symbol"===h(t)?t:String(t)}function _(e,t,n){return(t=O(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,O(r.key),r)}}function L(e,t,n){return t&&I(e.prototype,t),n&&I(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function C(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var M=Object.freeze({STARTS_WITH:"startsWith",CONTAINS:"contains",NOT_CONTAINS:"notContains",ENDS_WITH:"endsWith",EQUALS:"equals",NOT_EQUALS:"notEquals",IN:"in",LESS_THAN:"lt",LESS_THAN_OR_EQUAL_TO:"lte",GREATER_THAN:"gt",GREATER_THAN_OR_EQUAL_TO:"gte",BETWEEN:"between",DATE_IS:"dateIs",DATE_IS_NOT:"dateIsNot",DATE_BEFORE:"dateBefore",DATE_AFTER:"dateAfter",CUSTOM:"custom"}),R=L((function e(){C(this,e)}));_(R,"ripple",!1),_(R,"inputStyle","outlined"),_(R,"locale","en"),_(R,"appendTo",null),_(R,"cssTransition",!0),_(R,"autoZIndex",!0),_(R,"nonce",null),_(R,"nullSortOrder",1),_(R,"zIndex",{modal:1100,overlay:1e3,menu:1e3,tooltip:1100,toast:1200}),_(R,"filterMatchModeOptions",{text:[M.STARTS_WITH,M.CONTAINS,M.NOT_CONTAINS,M.ENDS_WITH,M.EQUALS,M.NOT_EQUALS],numeric:[M.EQUALS,M.NOT_EQUALS,M.LESS_THAN,M.LESS_THAN_OR_EQUAL_TO,M.GREATER_THAN,M.GREATER_THAN_OR_EQUAL_TO],date:[M.DATE_IS,M.DATE_IS_NOT,M.DATE_BEFORE,M.DATE_AFTER]});var w={en:{startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",filter:"Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",custom:"Custom",clear:"Clear",close:"Close",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",upload:"Upload",cancel:"Cancel",dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",weekHeader:"Wk",firstDayOfWeek:0,dateFormat:"mm/dd/yy",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyFilterMessage:"No available options",emptyMessage:"No results found",aria:{trueLabel:"True",falseLabel:"False",nullLabel:"Not Selected",pageLabel:"Page",firstPageLabel:"First Page",lastPageLabel:"Last Page",nextPageLabel:"Next Page",previousPageLabel:"Previous Page",selectLabel:"Select",unselectLabel:"Unselect",expandLabel:"Expand",collapseLabel:"Collapse"}}};function P(e,t){var n=t||R.locale;try{return j(n)[e]}catch(t){throw new Error("The ".concat(e," option is not found in the current locale('").concat(n,"')."))}}function j(e){return w[e||R.locale]}var x=c.memo(c.forwardRef((function(e,t){var n=e.messageInfo,r=n.message,o=r.severity,i=r.content,u=r.summary,f=r.detail,m=r.closable,p=r.life,d=r.sticky,y=r.className,b=r.style,E=r.contentClassName,v=r.contentStyle,T=N(c.useState(!1),2),S=T[1],g=N(a.useTimeout((function(){h()}),p||3e3,!d&&!T[0]),1)[0],h=function(){g(),e.onClose&&e.onClose(n)},A=function(t){!e.onClick||l.DomHandler.hasClass(t.target,"p-toast-icon-close")||l.DomHandler.hasClass(t.target,"p-toast-icon-close-icon")||e.onClick(n.message)},O=l.classNames("p-toast-message",_({},"p-toast-message-".concat(o),o),y),I=l.classNames("p-toast-message-content",E),L=function(){if(n){var e=l.ObjectUtils.getJSXElement(i,{message:n.message,onClick:A,onClose:h}),t=l.classNames("p-toast-message-icon pi",{"pi-info-circle":"info"===o,"pi-exclamation-triangle":"warn"===o,"pi-times":"error"===o,"pi-check":"success"===o});return e||c.createElement(c.Fragment,null,c.createElement("span",{className:t}),c.createElement("div",{className:"p-toast-message-text"},c.createElement("span",{className:"p-toast-summary"},u),f&&c.createElement("div",{className:"p-toast-detail"},f)))}return null}(),C=!1!==m?c.createElement("div",null,c.createElement("button",{type:"button",className:"p-toast-icon-close p-link",onClick:h,"aria-label":P("close")},c.createElement("span",{className:"p-toast-icon-close-icon pi pi-times","aria-hidden":"true"}),c.createElement(s.Ripple,null))):null;return c.createElement("div",{ref:t,className:O,style:b,role:"alert","aria-live":"assertive","aria-atomic":"true",onClick:A,onMouseEnter:function(t){e.onMouseEnter&&e.onMouseEnter(t),t.defaultPrevented||d||(g(),S(!0))},onMouseLeave:function(t){e.onMouseLeave&&e.onMouseLeave(t),t.defaultPrevented||d||S(!1)}},c.createElement("div",{className:I,style:v},L,C))})));x.displayName="ToastMessage";var D=0,U=c.memo(c.forwardRef((function(e,n){var s=N(c.useState([]),2),i=s[0],u=s[1],p=c.useRef(null),d=function(t){if(t){var n=y(t,!0);0===i.length&&l.ZIndexUtils.set("toast",p.current,f.default.autoZIndex,e.baseZIndex||f.default.zIndex.toast),u(n)}},y=function(e,t){var n;if(Array.isArray(e)){var r=e.reduce((function(e,t){return e.push({_pId:D++,message:t}),e}),[]);n=t&&i?[].concat(v(i),v(r)):r}else{var a={_pId:D++,message:e};n=t&&i?[].concat(v(i),[a]):[a]}return n},b=function(){l.ZIndexUtils.clear(p.current),u([])},E=function(e){var t=y(e,!1);u(t)},T=function(t){var n=i.filter((function(e){return e._pId!==t._pId}));u(n),e.onRemove&&e.onRemove(t.message)},S=function(e){T(e)},g=function(){e.onShow&&e.onShow()},h=function(){1===i.length&&l.ZIndexUtils.clear(p.current),e.onHide&&e.onHide()};a.useUnmountEffect((function(){l.ZIndexUtils.clear(p.current)})),c.useImperativeHandle(n,(function(){return{props:e,show:d,replace:E,remove:T,clear:b,getElement:function(){return p.current}}}));var A,O,_=(A=l.ObjectUtils.findDiffKeys(e,U.defaultProps),O=l.classNames("p-toast p-component p-toast-"+e.position,e.className),c.createElement("div",m({ref:p,id:e.id,className:O,style:e.style},A),c.createElement(t.TransitionGroup,null,i&&i.map((function(t){var n=c.createRef();return c.createElement(r.CSSTransition,{nodeRef:n,key:t._pId,classNames:"p-toast-message",unmountOnExit:!0,timeout:{enter:300,exit:300},onEntered:g,onExited:h,options:e.transitionOptions},c.createElement(x,{ref:n,messageInfo:t,onClick:e.onClick,onClose:S,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave}))})))));return c.createElement(o.Portal,{element:_,appendTo:e.appendTo})})));U.displayName="Toast",U.defaultProps={__TYPE:"Toast",id:null,className:null,style:null,baseZIndex:0,position:"top-right",transitionOptions:null,appendTo:"self",onClick:null,onRemove:null,onShow:null,onHide:null,onMouseEnter:null,onMouseLeave:null},exports.Toast=U;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("react-transition-group"),n=require("primereact/api"),r=require("primereact/csstransition"),a=require("primereact/hooks"),o=require("primereact/portal"),l=require("primereact/utils"),s=require("primereact/ripple");function i(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),f=i(n);function p(){return p=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},p.apply(this,arguments)}function m(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 d(e){if(Array.isArray(e))return m(e)}function y(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function b(e,t){if(e){if("string"==typeof e)return m(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)?m(e,t):void 0}}function E(){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 v(e){return d(e)||y(e)||b(e)||E()}function T(e){if(Array.isArray(e))return e}function g(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,l,s=[],i=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);i=!0);}catch(e){u=!0,a=e}finally{try{if(!i&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw a}}return s}}function S(){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 N(e,t){return T(e)||g(e,t)||b(e,t)||S()}var h={defaultProps:{__TYPE:"Toast",id:null,className:null,style:null,baseZIndex:0,position:"top-right",transitionOptions:null,appendTo:"self",onClick:null,onRemove:null,onShow:null,onHide:null,onMouseEnter:null,onMouseLeave:null,children:void 0},getProps:function(e){return l.ObjectUtils.getMergedProps(e,h.defaultProps)},getOtherProps:function(e){return l.ObjectUtils.getDiffProps(e,h.defaultProps)}};function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}function O(e,t){if("object"!==A(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==A(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function _(e){var t=O(e,"string");return"symbol"===A(t)?t:String(t)}function I(e,t,n){return(t=_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function L(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_(r.key),r)}}function M(e,t,n){return t&&L(e.prototype,t),n&&L(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function P(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var C=Object.freeze({STARTS_WITH:"startsWith",CONTAINS:"contains",NOT_CONTAINS:"notContains",ENDS_WITH:"endsWith",EQUALS:"equals",NOT_EQUALS:"notEquals",IN:"in",LESS_THAN:"lt",LESS_THAN_OR_EQUAL_TO:"lte",GREATER_THAN:"gt",GREATER_THAN_OR_EQUAL_TO:"gte",BETWEEN:"between",DATE_IS:"dateIs",DATE_IS_NOT:"dateIsNot",DATE_BEFORE:"dateBefore",DATE_AFTER:"dateAfter",CUSTOM:"custom"}),R=M((function e(){P(this,e)}));I(R,"ripple",!1),I(R,"inputStyle","outlined"),I(R,"locale","en"),I(R,"appendTo",null),I(R,"cssTransition",!0),I(R,"autoZIndex",!0),I(R,"nonce",null),I(R,"nullSortOrder",1),I(R,"zIndex",{modal:1100,overlay:1e3,menu:1e3,tooltip:1100,toast:1200}),I(R,"filterMatchModeOptions",{text:[C.STARTS_WITH,C.CONTAINS,C.NOT_CONTAINS,C.ENDS_WITH,C.EQUALS,C.NOT_EQUALS],numeric:[C.EQUALS,C.NOT_EQUALS,C.LESS_THAN,C.LESS_THAN_OR_EQUAL_TO,C.GREATER_THAN,C.GREATER_THAN_OR_EQUAL_TO],date:[C.DATE_IS,C.DATE_IS_NOT,C.DATE_BEFORE,C.DATE_AFTER]});var w={en:{startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",filter:"Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",custom:"Custom",clear:"Clear",close:"Close",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",upload:"Upload",cancel:"Cancel",dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",weekHeader:"Wk",firstDayOfWeek:0,dateFormat:"mm/dd/yy",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyFilterMessage:"No available options",emptyMessage:"No results found",aria:{trueLabel:"True",falseLabel:"False",nullLabel:"Not Selected",pageLabel:"Page",firstPageLabel:"First Page",lastPageLabel:"Last Page",nextPageLabel:"Next Page",previousPageLabel:"Previous Page",selectLabel:"Select",unselectLabel:"Unselect",expandLabel:"Expand",collapseLabel:"Collapse"}}};function j(e,t){var n=t||R.locale;try{return x(n)[e]}catch(t){throw new Error("The ".concat(e," option is not found in the current locale('").concat(n,"')."))}}function x(e){return w[e||R.locale]}var U=c.memo(c.forwardRef((function(e,t){var n=e.messageInfo,r=n.message,o=r.severity,i=r.content,u=r.summary,f=r.detail,p=r.closable,m=r.life,d=r.sticky,y=r.className,b=r.style,E=r.contentClassName,v=r.contentStyle,T=N(c.useState(!1),2),g=T[1],S=N(a.useTimeout((function(){h()}),m||3e3,!d&&!T[0]),1)[0],h=function(){S(),e.onClose&&e.onClose(n)},A=function(t){!e.onClick||l.DomHandler.hasClass(t.target,"p-toast-icon-close")||l.DomHandler.hasClass(t.target,"p-toast-icon-close-icon")||e.onClick(n.message)},O=l.classNames("p-toast-message",I({},"p-toast-message-".concat(o),o),y),_=l.classNames("p-toast-message-content",E),L=function(){if(n){var e=l.ObjectUtils.getJSXElement(i,{message:n.message,onClick:A,onClose:h}),t=l.classNames("p-toast-message-icon pi",{"pi-info-circle":"info"===o,"pi-exclamation-triangle":"warn"===o,"pi-times":"error"===o,"pi-check":"success"===o});return e||c.createElement(c.Fragment,null,c.createElement("span",{className:t}),c.createElement("div",{className:"p-toast-message-text"},c.createElement("span",{className:"p-toast-summary"},u),f&&c.createElement("div",{className:"p-toast-detail"},f)))}return null}(),M=!1!==p?c.createElement("div",null,c.createElement("button",{type:"button",className:"p-toast-icon-close p-link",onClick:h,"aria-label":j("close")},c.createElement("span",{className:"p-toast-icon-close-icon pi pi-times","aria-hidden":"true"}),c.createElement(s.Ripple,null))):null;return c.createElement("div",{ref:t,className:O,style:b,role:"alert","aria-live":"assertive","aria-atomic":"true",onClick:A,onMouseEnter:function(t){e.onMouseEnter&&e.onMouseEnter(t),t.defaultPrevented||d||(S(),g(!0))},onMouseLeave:function(t){e.onMouseLeave&&e.onMouseLeave(t),t.defaultPrevented||d||g(!1)}},c.createElement("div",{className:_,style:v},L,M))})));U.displayName="ToastMessage";var D=0,k=c.memo(c.forwardRef((function(e,n){var s=h.getProps(e),i=N(c.useState([]),2),u=i[0],m=i[1],d=c.useRef(null),y=function(e){if(e){var t=b(e,!0);m(t)}},b=function(e,t){var n;if(Array.isArray(e)){var r=e.reduce((function(e,t){return e.push({_pId:D++,message:t}),e}),[]);n=t&&u?[].concat(v(u),v(r)):r}else{var a={_pId:D++,message:e};n=t&&u?[].concat(v(u),[a]):[a]}return n},E=function(){l.ZIndexUtils.clear(d.current),m([])},T=function(e){var t=b(e,!1);m(t)},g=function(e){var t=u.filter((function(t){return t._pId!==e._pId}));m(t),s.onRemove&&s.onRemove(e.message)},S=function(e){g(e)},A=function(){s.onShow&&s.onShow()},O=function(){1===u.length&&l.ZIndexUtils.clear(d.current),s.onHide&&s.onHide()};a.useUpdateEffect((function(){l.ZIndexUtils.set("toast",d.current,f.default.autoZIndex,s.baseZIndex||f.default.zIndex.toast)}),[u,s.baseZIndex]),a.useUnmountEffect((function(){l.ZIndexUtils.clear(d.current)})),c.useImperativeHandle(n,(function(){return{props:s,show:y,replace:T,remove:g,clear:E,getElement:function(){return d.current}}}));var _,I,L=(_=h.getOtherProps(s),I=l.classNames("p-toast p-component p-toast-"+s.position,s.className,{"p-input-filled":"filled"===f.default.inputStyle,"p-ripple-disabled":!1===f.default.ripple}),c.createElement("div",p({ref:d,id:s.id,className:I,style:s.style},_),c.createElement(t.TransitionGroup,null,u&&u.map((function(e){var t=c.createRef();return c.createElement(r.CSSTransition,{nodeRef:t,key:e._pId,classNames:"p-toast-message",unmountOnExit:!0,timeout:{enter:300,exit:300},onEntered:A,onExited:O,options:s.transitionOptions},c.createElement(U,{ref:t,messageInfo:e,onClick:s.onClick,onClose:S,onMouseEnter:s.onMouseEnter,onMouseLeave:s.onMouseLeave}))})))));return c.createElement(o.Portal,{element:L,appendTo:s.appendTo})})));k.displayName="Toast",exports.Toast=k;
|